{"sample_id": "xalan-2.6-7408", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/res/XPATHErrorResources_hu.java", "language": "java", "name": "org.apache.xpath.res.XPATHErrorResources_hu", "code": "public class XPATHErrorResources_hu extends ListResourceBundle\n{\n\n/*\n * General notes to translators:\n *\n * This file contains error and warning messages related to XPath Error\n * Handling.\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n *  8) The context node is the node in the document with respect to which an\n *     XPath expression is being evaluated.\n *\n *  9) An iterator is an object that traverses nodes in the tree, one at a time.\n *\n *  10) NCName is an XML term used to describe a name that does not contain a\n *     colon (a \"no-colon name\").\n *\n *  11) QName is an XML term meaning \"qualified name\".\n */\n\n  /** Field MAX_CODE          */\n\n  /** Field MAX_WARNING          */\n\n  /** Field MAX_OTHERS          */\n  public static final int MAX_OTHERS = 20;\n\n  /** Field MAX_MESSAGES          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * static variables\n   */\n  public static final String ERROR0000 = \"ERROR0000\";\n  public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH =\n         \"ER_CURRENT_NOT_ALLOWED_IN_MATCH\";\n  public static final String ER_CURRENT_TAKES_NO_ARGS =\n         \"ER_CURRENT_TAKES_NO_ARGS\";\n  public static final String ER_DOCUMENT_REPLACED = \"ER_DOCUMENT_REPLACED\";\n  public static final String ER_CONTEXT_HAS_NO_OWNERDOC =\n         \"ER_CONTEXT_HAS_NO_OWNERDOC\";\n  public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS =\n         \"ER_LOCALNAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS =\n         \"ER_NAMESPACEURI_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS =\n         \"ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NUMBER_HAS_TOO_MANY_ARGS =\n         \"ER_NUMBER_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAME_HAS_TOO_MANY_ARGS =\n         \"ER_NAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRING_HAS_TOO_MANY_ARGS =\n         \"ER_STRING_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS =\n         \"ER_STRINGLENGTH_HAS_TOO_MANY_ARGS\";\n  public static final String ER_TRANSLATE_TAKES_3_ARGS =\n         \"ER_TRANSLATE_TAKES_3_ARGS\";\n  public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG =\n         \"ER_UNPARSEDENTITYURI_TAKES_1_ARG\";\n  public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED =\n         \"ER_NAMESPACEAXIS_NOT_IMPLEMENTED\";\n  public static final String ER_UNKNOWN_AXIS = \"ER_UNKNOWN_AXIS\";\n  public static final String ER_UNKNOWN_MATCH_OPERATION =\n         \"ER_UNKNOWN_MATCH_OPERATION\";\n  public static final String ER_INCORRECT_ARG_LENGTH =\"ER_INCORRECT_ARG_LENGTH\";\n  public static final String ER_CANT_CONVERT_TO_NUMBER =\n         \"ER_CANT_CONVERT_TO_NUMBER\";\n  public static final String ER_CANT_CONVERT_TO_NODELIST =\n         \"ER_CANT_CONVERT_TO_NODELIST\";\n  public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST =\n         \"ER_CANT_CONVERT_TO_MUTABLENODELIST\";\n  public static final String ER_CANT_CONVERT_TO_TYPE =\"ER_CANT_CONVERT_TO_TYPE\";\n  public static final String ER_EXPECTED_MATCH_PATTERN =\n         \"ER_EXPECTED_MATCH_PATTERN\";\n  public static final String ER_COULDNOT_GET_VAR_NAMED =\n         \"ER_COULDNOT_GET_VAR_NAMED\";\n  public static final String ER_UNKNOWN_OPCODE = \"ER_UNKNOWN_OPCODE\";\n  public static final String ER_EXTRA_ILLEGAL_TOKENS =\"ER_EXTRA_ILLEGAL_TOKENS\";\n  public static final String ER_EXPECTED_DOUBLE_QUOTE =\n         \"ER_EXPECTED_DOUBLE_QUOTE\";\n  public static final String ER_EXPECTED_SINGLE_QUOTE =\n         \"ER_EXPECTED_SINGLE_QUOTE\";\n  public static final String ER_EMPTY_EXPRESSION = \"ER_EMPTY_EXPRESSION\";\n  public static final String ER_EXPECTED_BUT_FOUND = \"ER_EXPECTED_BUT_FOUND\";\n  public static final String ER_INCORRECT_PROGRAMMER_ASSERTION =\n         \"ER_INCORRECT_PROGRAMMER_ASSERTION\";\n  public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL =\n         \"ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL\";\n  public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG\";\n  public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG\";\n  public static final String ER_PREDICATE_ILLEGAL_SYNTAX =\n         \"ER_PREDICATE_ILLEGAL_SYNTAX\";\n  public static final String ER_ILLEGAL_AXIS_NAME = \"ER_ILLEGAL_AXIS_NAME\";\n  public static final String ER_UNKNOWN_NODETYPE = \"ER_UNKNOWN_NODETYPE\";\n  public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED =\n         \"ER_PATTERN_LITERAL_NEEDS_BE_QUOTED\";\n  public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER =\n         \"ER_COULDNOT_BE_FORMATTED_TO_NUMBER\";\n  public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON =\n         \"ER_COULDNOT_CREATE_XMLPROCESSORLIAISON\";\n  public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP =\n         \"ER_DIDNOT_FIND_XPATH_SELECT_EXP\";\n  public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH =\n         \"ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH\";\n  public static final String ER_ERROR_OCCURED = \"ER_ERROR_OCCURED\";\n  public static final String ER_ILLEGAL_VARIABLE_REFERENCE =\n         \"ER_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String ER_AXES_NOT_ALLOWED = \"ER_AXES_NOT_ALLOWED\";\n  public static final String ER_KEY_HAS_TOO_MANY_ARGS =\n         \"ER_KEY_HAS_TOO_MANY_ARGS\";\n  public static final String ER_COUNT_TAKES_1_ARG = \"ER_COUNT_TAKES_1_ARG\";\n  public static final String ER_COULDNOT_FIND_FUNCTION =\n         \"ER_COULDNOT_FIND_FUNCTION\";\n  public static final String ER_UNSUPPORTED_ENCODING =\"ER_UNSUPPORTED_ENCODING\";\n  public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING =\n         \"ER_PROBLEM_IN_DTM_NEXTSIBLING\";\n  public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL =\n         \"ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL\";\n  public static final String ER_SETDOMFACTORY_NOT_SUPPORTED =\n         \"ER_SETDOMFACTORY_NOT_SUPPORTED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_PARSE_NOT_SUPPORTED = \"ER_PARSE_NOT_SUPPORTED\";\n  public static final String ER_SAX_API_NOT_HANDLED = \"ER_SAX_API_NOT_HANDLED\";\npublic static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =\n         \"ER_IGNORABLE_WHITESPACE_NOT_HANDLED\";\n  public static final String ER_DTM_CANNOT_HANDLE_NODES =\n         \"ER_DTM_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_CANNOT_HANDLE_NODES =\n         \"ER_XERCES_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_PARSE_ERROR_DETAILS =\n         \"ER_XERCES_PARSE_ERROR_DETAILS\";\n  public static final String ER_XERCES_PARSE_ERROR = \"ER_XERCES_PARSE_ERROR\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_CANNOT_CREATE_URL = \"ER_CANNOT_CREATE_URL\";\n  public static final String ER_XPATH_READOBJECT = \"ER_XPATH_READOBJECT\";\n public static final String ER_FUNCTION_TOKEN_NOT_FOUND =\n         \"ER_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String ER_CANNOT_DEAL_XPATH_TYPE =\n         \"ER_CANNOT_DEAL_XPATH_TYPE\";\n  public static final String ER_NODESET_NOT_MUTABLE = \"ER_NODESET_NOT_MUTABLE\";\n  public static final String ER_NODESETDTM_NOT_MUTABLE =\n         \"ER_NODESETDTM_NOT_MUTABLE\";\n   /**  Variable not resolvable:   */\n  public static final String ER_VAR_NOT_RESOLVABLE = \"ER_VAR_NOT_RESOLVABLE\";\n   /** Null error handler  */\n public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n   /**  Programmer's assertion: unknown opcode  */\n  public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE =\n         \"ER_PROG_ASSERT_UNKNOWN_OPCODE\";\n   /**  0 or 1   */\n  public static final String ER_ZERO_OR_ONE = \"ER_ZERO_OR_ONE\";\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =\n         \"ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = \"ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  fsb() not supported for XStringForChars   */\n  public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS =\n         \"ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS\";\n   /**  Could not find variable with the name of   */\n public static final String ER_COULD_NOT_FIND_VAR = \"ER_COULD_NOT_FIND_VAR\";\n   /**  XStringForChars can not take a string for an argument   */\n public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING =\n         \"ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING\";\n   /**  The FastStringBuffer argument can not be null   */\n public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL =\n         \"ER_FASTSTRINGBUFFER_CANNOT_BE_NULL\";\n   /**  2 or 3   */\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n   /** Variable accessed before it is bound! */\n  public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND =\n         \"ER_VARIABLE_ACCESSED_BEFORE_BIND\";\n   /** XStringForFSB can not take a string for an argument! */\n public static final String ER_FSB_CANNOT_TAKE_STRING =\n         \"ER_FSB_CANNOT_TAKE_STRING\";\n   /** Error! Setting the root of a walker to null! */\n  public static final String ER_SETTING_WALKER_ROOT_TO_NULL =\n         \"ER_SETTING_WALKER_ROOT_TO_NULL\";\n   /** This NodeSetDTM can not iterate to a previous node! */\n  public static final String ER_NODESETDTM_CANNOT_ITERATE =\n         \"ER_NODESETDTM_CANNOT_ITERATE\";\n  /** This NodeSet can not iterate to a previous node! */\n public static final String ER_NODESET_CANNOT_ITERATE =\n         \"ER_NODESET_CANNOT_ITERATE\";\n  /** This NodeSetDTM can not do indexing or counting functions! */\n  public static final String ER_NODESETDTM_CANNOT_INDEX =\n         \"ER_NODESETDTM_CANNOT_INDEX\";\n  /** This NodeSet can not do indexing or counting functions! */\n  public static final String ER_NODESET_CANNOT_INDEX =\n         \"ER_NODESET_CANNOT_INDEX\";\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n  public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE =\n         \"ER_CANNOT_CALL_SETSHOULDCACHENODE\";\n  /** {0} only allows {1} arguments */\n public static final String ER_ONLY_ALLOWS = \"ER_ONLY_ALLOWS\";\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n  public static final String ER_UNKNOWN_STEP = \"ER_UNKNOWN_STEP\";\n  /** Problem with RelativeLocationPath */\n  public static final String ER_EXPECTED_REL_LOC_PATH =\n         \"ER_EXPECTED_REL_LOC_PATH\";\n  /** Problem with LocationPath */\n  public static final String ER_EXPECTED_LOC_PATH = \"ER_EXPECTED_LOC_PATH\";\n  /** Problem with Step */\n  public static final String ER_EXPECTED_LOC_STEP = \"ER_EXPECTED_LOC_STEP\";\n  /** Problem with NodeTest */\n  public static final String ER_EXPECTED_NODE_TEST = \"ER_EXPECTED_NODE_TEST\";\n  /** Expected step pattern */\n  public static final String ER_EXPECTED_STEP_PATTERN =\n        \"ER_EXPECTED_STEP_PATTERN\";\n  /** Expected relative path pattern */\n  public static final String ER_EXPECTED_REL_PATH_PATTERN =\n         \"ER_EXPECTED_REL_PATH_PATTERN\";\n  /** localname in QNAME should be a valid NCName */\n  /** prefix in QNAME should be a valid NCName */\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n  public static final String ER_CANT_CONVERT_TO_BOOLEAN =\n         \"ER_CANT_CONVERT_TO_BOOLEAN\";\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n  public static final String ER_CANT_CONVERT_TO_SINGLENODE =\n         \"ER_CANT_CONVERT_TO_SINGLENODE\";\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n  public static final String ER_CANT_GET_SNAPSHOT_LENGTH =\n         \"ER_CANT_GET_SNAPSHOT_LENGTH\";\n  /** Field ER_NON_ITERATOR_TYPE                */\n  public static final String ER_NON_ITERATOR_TYPE = \"ER_NON_ITERATOR_TYPE\";\n  /** Field ER_DOC_MUTATED                      */\n  public static final String ER_DOC_MUTATED = \"ER_DOC_MUTATED\";\n  public static final String ER_INVALID_XPATH_TYPE = \"ER_INVALID_XPATH_TYPE\";\n  public static final String ER_EMPTY_XPATH_RESULT = \"ER_EMPTY_XPATH_RESULT\";\n  public static final String ER_INCOMPATIBLE_TYPES = \"ER_INCOMPATIBLE_TYPES\";\n  public static final String ER_NULL_RESOLVER = \"ER_NULL_RESOLVER\";\n  public static final String ER_CANT_CONVERT_TO_STRING =\n         \"ER_CANT_CONVERT_TO_STRING\";\n  public static final String ER_NON_SNAPSHOT_TYPE = \"ER_NON_SNAPSHOT_TYPE\";\n  public static final String ER_WRONG_DOCUMENT = \"ER_WRONG_DOCUMENT\";\n  /* Note to translators:  The XPath expression cannot be evaluated with respect\n   * to this type of node.\n   */\n  /** Field ER_WRONG_NODETYPE                    */\n  public static final String ER_WRONG_NODETYPE = \"ER_WRONG_NODETYPE\";\n  public static final String ER_XPATH_ERROR = \"ER_XPATH_ERROR\";\n\n  public static final String WG_LOCALE_NAME_NOT_HANDLED =\n         \"WG_LOCALE_NAME_NOT_HANDLED\";\n  public static final String WG_PROPERTY_NOT_SUPPORTED =\n         \"WG_PROPERTY_NOT_SUPPORTED\";\n  public static final String WG_DONT_DO_ANYTHING_WITH_NS =\n         \"WG_DONT_DO_ANYTHING_WITH_NS\";\n  public static final String WG_SECURITY_EXCEPTION = \"WG_SECURITY_EXCEPTION\";\n  public static final String WG_QUO_NO_LONGER_DEFINED =\n         \"WG_QUO_NO_LONGER_DEFINED\";\n  public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST =\n         \"WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST\";\n  public static final String WG_FUNCTION_TOKEN_NOT_FOUND =\n         \"WG_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String WG_COULDNOT_FIND_FUNCTION =\n         \"WG_COULDNOT_FIND_FUNCTION\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED =\n         \"WG_EXPAND_ENTITIES_NOT_SUPPORTED\";\n  public static final String WG_ILLEGAL_VARIABLE_REFERENCE =\n         \"WG_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String WG_UNSUPPORTED_ENCODING =\"WG_UNSUPPORTED_ENCODING\";\n\n\n\n  public static final Object[][] contents = {\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"A current() f\\u00fcggv\\u00e9ny nem megengedett az illeszt\\u00e9si mint\\u00e1ban!\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"A current() f\\u00fcggv\\u00e9ny nem fogad el argumentumokat!\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"A document() f\\u00fcggv\\u00e9ny megval\\u00f3s\\u00edt\\u00e1s\\u00e1t lecser\\u00e9lte az org.apache.xalan.xslt.FuncDocument!\"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"A k\\u00f6rnyezetnek nincs tulajdonos dokumentuma!\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"A local-name()-nek t\\u00fal sok argumentuma van.\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"A namespace-uri()-nek t\\u00fal sok argumentuma van.\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"A normalize-space()-nek t\\u00fal sok argumentuma van.\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"A number()-nek t\\u00fal sok argumentuma van.\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"A name()-nek t\\u00fal sok argumentuma van.\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"A string()-nek t\\u00fal sok argumentuma van.\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"A string-length()-nek t\\u00fal sok argumentuma van.\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"A translate() f\\u00fcggv\\u00e9ny h\\u00e1rom argumentumot k\\u00e9r!\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"Az unparsed-entity-uri f\\u00fcggv\\u00e9nyhez egy argumentum sz\\u00fcks\\u00e9ges!\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"A n\\u00e9vt\\u00e9r tengely m\\u00e9g nincs magval\\u00f3s\\u00edtva!\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"Ismeretlen tengely: {0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"ismeretlen illeszt\\u00e9si m\\u0171velet!\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"A processing-instruction() csom\\u00f3pont teszt argumentum\\u00e1nak hossza helytelen!\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"A(z) {0} nem konvert\\u00e1lhat\\u00f3 sz\\u00e1mm\\u00e1\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"A(z) {0} nem konvert\\u00e1lhat\\u00f3 NodeList-t\\u00e9!\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"A(z) {0} nem konvert\\u00e1lhat\\u00f3 NodeSetDTM-m\\u00e9!\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"{0} nem konvert\\u00e1lhat\\u00f3 type#{1} t\\u00edpuss\\u00e1\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"Illeszt\\u00e9si mint\\u00e1t v\\u00e1rtunk a getMatchScore-ban!\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"Nem lehet lek\\u00e9rni a(z) {0} nev\\u0171 v\\u00e1ltoz\\u00f3t\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"HIBA! Ismeretlen opk\\u00f3d: {0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"Extra tiltott tokenek: {0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"rosszul id\\u00e9zett liter\\u00e1l... dupla id\\u00e9z\\u0151jelet v\\u00e1rtunk!\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"rosszul id\\u00e9zett liter\\u00e1l... szimpla id\\u00e9z\\u0151jelet v\\u00e1rtunk!\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"\\u00dcres kifejez\\u00e9s!\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"{0}-t v\\u00e1rtunk, de ezt tal\\u00e1ltuk: {1}\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"A programoz\\u00f3 feltev\\u00e9se hib\\u00e1s! - {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"A boolean(...) argumentuma t\\u00f6bb\\u00e9 nem opcion\\u00e1lis az 19990709 XPath v\\u00e1zlat szerint.\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"','-t tal\\u00e1ltunk, de nincs el\\u0151tte argumentum!\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"','-t tal\\u00e1ltunk, de nincs ut\\u00e1na argumentum!\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"A '..[felt\\u00e9tel]' vagy '.[felt\\u00e9tel]' szintaktika tiltott.  Haszn\\u00e1lja ink\\u00e1bb a 'self::node()[predicate]' defin\\u00edci\\u00f3t.\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"Tiltott tengelyn\\u00e9v: {0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"Ismeretlen node-t\\u00edpus: {0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"A minta-liter\\u00e1lt ({0}) id\\u00e9z\\u0151jelek k\\u00f6z\\u00e9 kell tenni!\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"A(z) {0} nem form\\u00e1zhat\\u00f3 sz\\u00e1mm\\u00e1!\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"Nem lehet XML TransformerFactory Liaison-t l\\u00e9trehozni: {0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"Hiba! Az xpath kiv\\u00e1laszt\\u00e1si kifejez\\u00e9s nem tal\\u00e1lhat\\u00f3 (-select).\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"HIBA! Nem tal\\u00e1lhat\\u00f3 ENDOP az OP_LOCATIONPATH ut\\u00e1n\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"Hiba t\\u00f6rt\\u00e9nt!\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"A v\\u00e1ltoz\\u00f3ra adott VariableReference (v\\u00e1ltoz\\u00f3hivatkoz\\u00e1s) k\\u00edv\\u00fcl van a k\\u00f6rnyezeten vagy nincs defin\\u00edci\\u00f3ja!  N\\u00e9v = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"Csak a child:: \\u00e9s az attribute:: tengelyek illeszkedhetnek mint\\u00e1kra.  Zavar\\u00f3 tengelyek = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"A key()-nek nem megfelel\\u0151 sz\\u00e1m\\u00fa argumentuma van.\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"A count f\\u00fcggv\\u00e9nyhez csak egy argumentumot lehet megadni!\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"Nem tal\\u00e1lhat\\u00f3 a f\\u00fcggv\\u00e9ny: {0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"Nem t\\u00e1mogatott k\\u00f3dol\\u00e1s: {0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"Probl\\u00e9ma mer\\u00fclt fel a DTM-ben a getNextSibling-ben... megpr\\u00f3b\\u00e1ljuk helyrehozni\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"Programoz\\u00f3i hiba: az EmptyNodeList-be (\\u00fcres csom\\u00f3pontlist\\u00e1ba) nem lehet \\u00edrni.\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"A setDOMFactory-t nem t\\u00e1mogatja az XPathContext!\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"Az el\\u0151tagnak egy n\\u00e9vt\\u00e9rre kell felold\\u00f3dnia: {0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"Az elem\\u00e9s (InputSource forr\\u00e1s) nem t\\u00e1mogatott az XPathContext-ben! Nem lehet megnyitni a(z) {0}-t\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"SAX API characters(char ch[]... f\\u00fcggv\\u00e9nyt nem kezeli a DTM!\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"Az ignorableWhitespace(char ch[]... f\\u00fcggv\\u00e9nyt nem kezeli a DTM!\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"A DTMLiaison nem tud {0} t\\u00edpus\\u00fa csom\\u00f3pontokat kezelni\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"A DOM2Helper nem tud {0} t\\u00edpus\\u00fa csom\\u00f3pontokat kezelni\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"DOM2Helper.parse hiba: SystemID - {0} sor - {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"DOM2Helper.parse hiba\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"\\u00c9rv\\u00e9nytelen UTF-16 helyettes\\u00edt\\u00e9s: {0} ?\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"IO hiba\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"Nem lehet URL-t l\\u00e9trehozni ehhez: {0}\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"A XPath.readObject met\\u00f3dusban: {0}\"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"A f\\u00fcggv\\u00e9ny jelsor nem tal\\u00e1lhat\\u00f3.\"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"Nem lehet megbirk\\u00f3zni az XPath t\\u00edpussal: {0}\"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"Ez a NodeSet nem illeszthet\\u0151 be\"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"Ez a NodeSetDTM nem illeszthet\\u0151 be\"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"A v\\u00e1ltoz\\u00f3 nem oldhat\\u00f3 fel: {0}\"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"Null hibakezel\\u0151\"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"Programoz\\u00f3i \\u00e9rtes\\u00edt\\u00e9s: ismeretlen m\\u0171veletk\\u00f3d: {0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 vagy 1\"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"Az rtf()-et nem t\\u00e1mogatja az XRTreeFragSelectWrapper\"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"Az asNodeIterator()-t nem t\\u00e1mogatja az XRTreeFragSelectWrapper\"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"Az fsb() nem t\\u00e1mogatott az XStringForChars-n\\u00e1l\"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"Nem tal\\u00e1lhat\\u00f3 {0} nev\\u0171 v\\u00e1ltoz\\u00f3\"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"Az XStringForChars-nak nem adhat meg karakterl\\u00e1nc argumentumot\"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"A FastStringBuffer argumentum nem lehet null\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 vagy 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"V\\u00e1ltoz\\u00f3el\\u00e9r\\u00e9s \\u00e9rt\\u00e9kad\\u00e1s el\\u0151tt!\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"XStringForFSB nem kaphat sztring argumentumot!\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n !!!! Hiba! A bej\\u00e1r\\u00f3 gy\\u00f6ker\\u00e9t null-ra \\u00e1ll\\u00edtotta!!!\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"Ez a NodeSetDTM nem iter\\u00e1lhat egy kor\\u00e1bbi node-ra!\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"Ez a NodeSet nem iter\\u00e1lhat egy kor\\u00e1bbi node-ra!\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"Ez a NodeSetDTM nem indexelhet \\u00e9s nem sz\\u00e1ml\\u00e1lhatja a funkci\\u00f3kat!\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"Ez a NodeSet nem indexelhet \\u00e9s nem sz\\u00e1ml\\u00e1lhatja a funkci\\u00f3kat!\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"Nem h\\u00edvhat\\u00f3 setShouldCacheNodes nextNode h\\u00edv\\u00e1sa ut\\u00e1n!\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"{0} csak {1} argumentumot enged\\u00e9lyez\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"Programoz\\u00f3i \\u00e9rtes\\u00edt\\u00e9s getNextStepPos h\\u00edv\\u00e1sban: ismeretlen stepType: {0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"Egy hely \\u00fatvonalat v\\u00e1rtam, de a k\\u00f6vetkez\\u0151 tokent tal\\u00e1ltam\\u003a  {0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"Egy olyan node-tesztet v\\u00e1rtunk, ami vagy az NCName:*-ra vagy a QName-re illeszkedik.\"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"Egy l\\u00e9p\\u00e9smint\\u00e1t v\\u00e1rtunk, de '/' szerepelt.\"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"Relat\\u00edv \\u00fatvonalat v\\u00e1rtunk.\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"Nem lehet {0}-t logikaiv\\u00e1 konvert\\u00e1lni.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"Nem lehet {0}-t egyszer\\u0171 node-d\\u00e1 konvert\\u00e1lni. Ez a ford\\u00edt\\u00f3 az ANY_UNORDERED_NODE_TYPE \\u00e9s a FIRST_ORDERED_NODE_TYPE t\\u00edpusokra haszn\\u00e1lhat\\u00f3.\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"Nem lehet megkapni a pillanatk\\u00e9p hossz\\u00e1t a k\\u00f6vetkez\\u0151 t\\u00edpusra: {0}. Ez a ford\\u00edt\\u00f3 az UNORDERED_NODE_SNAPSHOT_TYPE \\u00e9s az ORDERED_NODE_SNAPSHOT_TYPE t\\u00edpusokra haszn\\u00e1lhat\\u00f3.\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"Nem lehet iter\\u00e1lni nem iter\\u00e1tor t\\u00edpust: {0}\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"A dokumentum megv\\u00e1ltozott, mi\\u00f3ta az eredm\\u00e9ny visszat\\u00e9rt. Az iter\\u00e1tor \\u00e9rv\\u00e9nytelen.\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"\\u00c9rv\\u00e9nytelen XPath t\\u00edpus-argumentum: {0}\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"\\u00dcres XPath eredm\\u00e9nyobjektum\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"A visszadott t\\u00edpus: {0} nem lehet a megadott t\\u00edpuss\\u00e1 v\\u00e1ltoztatni: {1}\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"Nem lehet feloldani a prefixet null prefix-felold\\u00f3val.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"Nem lehet {0} t\\u00edpust sztringg\\u00e9 konvert\\u00e1lni.\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"Nem lehet snapshotItem-et h\\u00edvni a k\\u00f6vetkez\\u0151 t\\u00edpusra: {0}. Ez a met\\u00f3dust az UNORDERED_NODE_SNAPSHOT_TYPE \\u00e9s ORDERED_NODE_SNAPSHOT_TYPE t\\u00edpusokra alkalmazhat\\u00f3.\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"A k\\u00f6rnyezeti node nem az XPathEvaluator-hoz tartoz\\u00f3 dokumentumhoz tartozik.\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"A k\\u00f6rnyezeti node t\\u00edpusa nem t\\u00e1mogatott.\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"Ismeretlen hiba az XPath-ban.\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"A locale-n\\u00e9v a format-number f\\u00fcggv\\u00e9nyben m\\u00e9g nincs kezelve!\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"Az XSL tulajdons\\u00e1g nem t\\u00e1mogatott: {0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"Jelenleg ne tegyen semmit a(z) {0} n\\u00e9vt\\u00e9rrel a tulajdons\\u00e1gban: {1}\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"SecurityException az XSL rendszertulajdons\\u00e1g el\\u00e9r\\u00e9s\\u00e9n\\u00e9l: {0}\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"A r\\u00e9gi szintaktika: quo(...) t\\u00f6bb\\u00e9 nincs defini\\u00e1lva az XPath-ban.\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"Az XPath-nak kell egy sz\\u00e1rmaztatott objektum a nodeTest-hez!\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"A f\\u00fcggv\\u00e9ny jelsor nem tal\\u00e1lhat\\u00f3.\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"Nem tal\\u00e1lhat\\u00f3 a f\\u00fcggv\\u00e9ny: {0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"Nem k\\u00e9sz\\u00edthet\\u0151 URL ebb\\u0151l: {0}\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"A -E opci\\u00f3 nem t\\u00e1mogatott a DTM elemz\\u0151h\\u00f6z\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"A v\\u00e1ltoz\\u00f3ra adott VariableReference (v\\u00e1ltoz\\u00f3hivatkoz\\u00e1s) k\\u00edv\\u00fcl van a k\\u00f6rnyezeten vagy nincs defin\\u00edci\\u00f3ja!  N\\u00e9v = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"Nem t\\u00e1mogatott k\\u00f3dol\\u00e1s: {0}\"},\n\n\n\n  { \"ui_language\", \"hu\"},\n  { \"help_language\", \"hu\"},\n  { \"language\", \"hu\"},\n  { \"BAD_CODE\", \"A createMessage param\\u00e9tere nincs a megfelel\\u0151 tartom\\u00e1nyban\"},\n  { \"FORMAT_FAILED\", \"Kiv\\u00e9tel t\\u00f6rt\\u00e9nt a messageFormat h\\u00edv\\u00e1s alatt\"},\n  { \"version\", \">>>>>>> Xalan verzi\\u00f3 \"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"igen\"},\n  { \"line\", \"Sor #\"},\n  { \"column\", \"Oszlop #\"},\n  { \"xsldone\", \"XSLProcessor: k\\u00e9sz\"},\n  { \"xpath_option\", \"xpath opci\\u00f3i: \"},\n  { \"optionIN\", \"   [-in bemenetiXMLURL]\"},\n  { \"optionSelect\", \"   [-select xpath kifejez\\u00e9s]\"},\n  { \"optionMatch\", \"   [-match illeszt\\u00e9si minta (az illeszt\\u00e9si diagnosztik\\u00e1hoz)]\"},\n  { \"optionAnyExpr\", \"Vagy csak egy xpath kifejez\\u00e9s megcsin\\u00e1l egy diagnosztikai dump-ot\"},\n  { \"noParsermsg1\", \"Az XSL processz sikertelen volt.\"},\n  { \"noParsermsg2\", \"** Az elemz\\u0151 nem tal\\u00e1lhat\\u00f3 **\"},\n  { \"noParsermsg3\", \"K\\u00e9rem, ellen\\u0151rizze az oszt\\u00e1ly el\\u00e9r\\u00e9si utat.\"},\n  { \"noParsermsg4\", \"Ha \\u00f6nnek nincs meg az IBM Java XML elemz\\u0151je, akkor let\\u00f6ltheti az\"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }\n\n  };\n\n\n\n  /** Field BAD_CODE          */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** Field FORMAT_FAILED          */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** Field ERROR_RESOURCES          */\n  public static final String ERROR_RESOURCES =\n    \"org.apache.xpath.res.XPATHErrorResources\";\n\n  /** Field ERROR_STRING          */\n  public static final String ERROR_STRING = \"#error\";\n\n  /** Field ERROR_HEADER          */\n  public static final String ERROR_HEADER = \"Hiba: \";\n\n  /** Field WARNING_HEADER          */\n  public static final String WARNING_HEADER = \"Figyelmeztet\\u00e9s: \";\n\n  /** Field XSL_HEADER          */\n  public static final String XSL_HEADER = \"XSL \";\n\n  /** Field XML_HEADER          */\n  public static final String XML_HEADER = \"XML \";\n\n  /** Field QUERY_HEADER          */\n  public static final String QUERY_HEADER = \"MINTA \";\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   * Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   * of ResourceBundle.getBundle().\n   *\n   * @param res the name of the resource to load.\n   * @param locale the locale to prefer when searching for the bundle\n   *\n   * @param className Name of local-specific subclass.\n   * @return the ResourceBundle\n   * @throws MissingResourceException\n   */\n  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"hu\", \"HU\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"hu\", \"HU\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "xalan-2.7-8593", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/TransletOutput.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.TransletOutput", "code": "final class TransletOutput extends Instruction {\n\n    private Expression _filename;\n    private boolean _append;\n\n    /**\n     * Displays the contents of this <xsltc:output> element.\n     */\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"TransletOutput: \" + _filename);\n    }\n\t\t\n    /**\n     * Parse the contents of this <xsltc:output> element. The only attribute\n     * we recognise is the 'file' attribute that contains teh output filename.\n     */\n    public void parseContents(Parser parser) {\n\tString filename = getAttribute(\"file\");\n        \n        String append   = getAttribute(\"append\");\n\n\tif ((filename == null) || (filename.equals(EMPTYSTRING))) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"file\");\n\t}\n\n\t_filename = AttributeValue.create(this, filename, parser);\n        \n        if (append != null && (append.toLowerCase().equals(\"yes\") ||\n            append.toLowerCase().equals(\"true\"))) {\n          _append = true;     \n        }\n        else\n          _append = false;\n          \n\tparseChildren(parser);\n    }\n    \n    /**\n     * Type checks the 'file' attribute (must be able to convert it to a str).\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type type = _filename.typeCheck(stable);\n\tif (type instanceof StringType == false) {\n\t    _filename = new CastExpr(_filename, Type.String);\n\t}\n\ttypeCheckContents(stable);\n\treturn Type.Void;\n    }\n    \n    /**\n     * Compile code that opens the give file for output, dumps the contents of\n     * the element to the file, then closes the file.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal boolean isSecureProcessing = classGen.getParser().getXSLTC()\n\t                                   .isSecureProcessing();\n\n\tif (isSecureProcessing) {\n\t    int index = cpg.addMethodref(BASIS_LIBRARY_CLASS,\n\t\t\t\t         \"unallowed_extension_elementF\",\n\t\t\t\t         \"(Ljava/lang/String;)V\");\n\t    il.append(new PUSH(cpg, \"redirect\"));\n\t    il.append(new INVOKESTATIC(index));\n\t    return; \t\n\t}\n\n\til.append(methodGen.loadHandler());\n\t\n\tfinal int open =  cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t   \"openOutputHandler\",\n                                           \"(\" + STRING_SIG + \"Z)\" +\n\t\t\t\t\t   TRANSLET_OUTPUT_SIG);\n\n\tfinal int close =  cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t    \"closeOutputHandler\",\n\t\t\t\t\t    \"(\"+TRANSLET_OUTPUT_SIG+\")V\");\n\n\til.append(classGen.loadTranslet());\n\t_filename.translate(classGen, methodGen);\n        il.append(new PUSH(cpg, _append));\n\til.append(new INVOKEVIRTUAL(open));\n\n\til.append(methodGen.storeHandler());\n\t\n\ttranslateContents(classGen, methodGen);\n\n\til.append(classGen.loadTranslet());\n\til.append(methodGen.loadHandler());\n\til.append(new INVOKEVIRTUAL(close));\n\n\til.append(methodGen.storeHandler());", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"TransletOutput: \" + _filename);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tString filename = getAttribute(\"file\");\n        \n        String append   = getAttribute(\"append\");\n\n\tif ((filename == null) || (filename.equals(EMPTYSTRING))) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"file\");\n\t}\n\n\t_filename = AttributeValue.create(this, filename, parser);\n        \n        if (append != null && (append.toLowerCase().equals(\"yes\") ||\n            append.toLowerCase().equals(\"true\"))) {\n          _append = true;     \n        }\n        else\n          _append = false;\n          \n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [1, 10], [7, 11], [7, 12], [8, 13], [9, 14], [9, 15], [3, 16], [4, 17], [10, 18], [1, 19], [11, 20], [11, 21], [12, 22], [2, 23], [15, 24], [16, 25], [17, 26], [19, 27], [20, 28], [21, 29], [23, 30], [28, 31], [29, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 1], [11, 7], [12, 7], [13, 8], [14, 9], [15, 9], [16, 3], [17, 4], [18, 10], [19, 1], [20, 11], [21, 11], [22, 12], [23, 2], [24, 15], [25, 16], [26, 17], [27, 19], [28, 20], [29, 21], [30, 23], [31, 28], [32, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type type = _filename.typeCheck(stable);\n\tif (type instanceof StringType == false) {\n\t    _filename = new CastExpr(_filename, Type.String);\n\t}\n\ttypeCheckContents(stable);\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [6, 8], [3, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 6], [9, 3], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal boolean isSecureProcessing = classGen.getParser().getXSLTC()\n\t                                   .isSecureProcessing();\n\n\tif (isSecureProcessing) {\n\t    int index = cpg.addMethodref(BASIS_LIBRARY_CLASS,\n\t\t\t\t         \"unallowed_extension_elementF\",\n\t\t\t\t         \"(Ljava/lang/String;)V\");\n\t    il.append(new PUSH(cpg, \"redirect\"));\n\t    il.append(new INVOKESTATIC(index));\n\t    return; \t\n\t}\n\n\til.append(methodGen.loadHandler());\n\t\n\tfinal int open =  cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t   \"openOutputHandler\",\n                                           \"(\" + STRING_SIG + \"Z)\" +\n\t\t\t\t\t   TRANSLET_OUTPUT_SIG);\n\n\tfinal int close =  cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t    \"closeOutputHandler\",\n\t\t\t\t\t    \"(\"+TRANSLET_OUTPUT_SIG+\")V\");\n\n\til.append(classGen.loadTranslet());\n\t_filename.translate(classGen, methodGen);\n        il.append(new PUSH(cpg, _append));\n\til.append(new INVOKEVIRTUAL(open));\n\n\til.append(methodGen.storeHandler());\n\t\n\ttranslateContents(classGen, methodGen);\n\n\til.append(classGen.loadTranslet());\n\til.append(methodGen.loadHandler());\n\til.append(new INVOKEVIRTUAL(close));\n\n\til.append(methodGen.storeHandler());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [9, 20], [10, 21], [11, 22], [12, 23], [14, 24], [15, 25], [16, 26], [18, 27], [1, 28], [2, 29], [19, 30], [3, 31], [3, 32], [4, 33], [5, 34], [6, 35], [28, 36], [28, 37], [29, 38], [29, 39], [3, 40], [3, 41], [33, 42], [33, 43], [36, 44], [36, 45], [38, 46], [40, 47], [41, 48], [32, 49], [45, 50], [46, 51], [46, 52], [48, 53], [49, 54], [49, 55], [52, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 9], [21, 10], [22, 11], [23, 12], [24, 14], [25, 15], [26, 16], [27, 18], [28, 1], [29, 2], [30, 19], [31, 3], [32, 3], [33, 4], [34, 5], [35, 6], [36, 28], [37, 28], [38, 29], [39, 29], [40, 3], [41, 3], [42, 33], [43, 33], [44, 36], [45, 36], [46, 38], [47, 40], [48, 41], [49, 32], [50, 45], [51, 46], [52, 46], [53, 48], [54, 49], [55, 49], [56, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}], "label": 1}
{"sample_id": "camel-1.6-2902", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/ThreadType.java", "language": "java", "name": "org.apache.camel.model.ThreadType", "code": "@XmlRootElement(name = \"thread\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class ThreadType extends ProcessorType<ProcessorType> {\n    @XmlAttribute(required = false)\n    private Integer coreSize = 1;\n    @XmlAttribute(required = false)\n    private Boolean daemon = Boolean.TRUE;\n    @XmlAttribute(required = false)\n    private Long keepAliveTime;\n    @XmlAttribute(required = false)\n    private Integer maxSize = 1;\n    @XmlAttribute(required = false)\n    private String name = \"Thread Processor\";\n    @XmlAttribute(required = false)\n    private Integer priority = Thread.NORM_PRIORITY;\n    @XmlAttribute(required = false)\n    private Long stackSize;\n    @XmlElementRef\n    private List<ProcessorType<?>> outputs = new ArrayList<ProcessorType<?>>();\n    @XmlTransient\n    private BlockingQueue<Runnable> taskQueue;\n    @XmlTransient\n    private ThreadGroup threadGroup;\n    @XmlTransient\n    private ThreadPoolExecutor executor;\n\n    public ThreadType() {\n    }\n\n    public ThreadType(int coreSize) {\n        this.coreSize = coreSize;\n        this.maxSize = coreSize;\n    }\n\n    public ThreadType(ThreadPoolExecutor executor) {\n        this.executor = executor;\n    }\n\n    @Override\n    public List<ProcessorType<?>> getOutputs() {\n        return outputs;\n    }\n\n    @Override\n    public String toString() {\n        return \"Thread[\" + name + \"]\";\n    }\n\n    @Override\n    public String getShortName() {\n        return \"thread\";\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        ThreadProcessor thread = new ThreadProcessor();\n        thread.setExecutor(executor);\n        if (coreSize != null) {\n            thread.setCoreSize(coreSize);\n        }\n        if (daemon != null) {\n            thread.setDaemon(daemon);\n        }\n        if (keepAliveTime != null) {\n            thread.setKeepAliveTime(keepAliveTime);\n        }\n        if (maxSize != null) {\n            thread.setMaxSize(maxSize);\n        }\n        thread.setName(name);\n        thread.setPriority(priority);\n        if (stackSize != null) {\n            thread.setStackSize(stackSize);\n        }\n        thread.setTaskQueue(taskQueue);\n        thread.setThreadGroup(threadGroup);\n\n        ArrayList<Processor> pipe = new ArrayList<Processor>(2);\n        pipe.add(thread);\n        pipe.add(createOutputsProcessor(routeContext, outputs));\n        return new Pipeline(pipe);\n    }\n\n    @Override\n    protected void configureChild(ProcessorType output) {\n        super.configureChild(output);\n        if (isInheritErrorHandler()) {\n            output.setErrorHandlerBuilder(getErrorHandlerBuilder());\n        }\n    }\n\n    @Override\n    public ProcessorType errorHandler(ErrorHandlerBuilder errorHandlerBuilder) {\n        throw new IllegalArgumentException(\"Setting errorHandler on ThreadType is not supported.\"\n            + \" Instead set the errorHandler on the parent.\");\n    }\n\n    public ThreadType coreSize(int coreSize) {\n        setCoreSize(coreSize);\n        return this;\n    }\n\n    public ThreadType daemon(boolean daemon) {\n        setDaemon(daemon);\n        return this;\n    }\n\n    public ThreadType keepAliveTime(long keepAliveTime) {\n        setKeepAliveTime(keepAliveTime);\n        return this;\n    }\n\n    public ThreadType maxSize(int maxSize) {\n        setMaxSize(maxSize);\n        return this;\n    }\n\n    public ThreadType name(String name) {\n        setName(name);\n        return this;\n    }\n\n    public ThreadType priority(int priority) {\n        setPriority(priority);\n        return this;\n    }\n\n    public ThreadType stackSize(long stackSize) {\n        setStackSize(stackSize);\n        return this;\n    }\n\n    public ThreadType taskQueue(BlockingQueue<Runnable> taskQueue) {\n        setTaskQueue(taskQueue);\n        return this;\n    }\n\n    public ThreadType threadGroup(ThreadGroup threadGroup) {\n        setThreadGroup(threadGroup);\n        return this;\n    }\n\n    public ThreadType executor(ThreadPoolExecutor executor) {\n        setExecutor(executor);\n        return this;\n    }\n\n\n    public void setCoreSize(int coreSize) {\n        this.coreSize = coreSize;\n    }\n\n    public void setDaemon(boolean daemon) {\n        this.daemon = daemon;\n    }\n\n    public void setKeepAliveTime(long keepAliveTime) {\n        this.keepAliveTime = keepAliveTime;\n    }\n\n    public void setMaxSize(int maxSize) {\n        this.maxSize = maxSize;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public void setPriority(int priority) {\n        this.priority = priority;\n    }\n\n    public void setStackSize(long stackSize) {\n        this.stackSize = stackSize;\n    }\n\n    public void setTaskQueue(BlockingQueue<Runnable> taskQueue) {\n        this.taskQueue = taskQueue;\n    }\n\n    public void setThreadGroup(ThreadGroup threadGroup) {\n        this.threadGroup = threadGroup;\n    }\n\n    public ThreadPoolExecutor getExecutor() {\n        return executor;\n    }\n\n    public void setExecutor(ThreadPoolExecutor executor) {\n        this.executor = executor;", "functions": [{"function_name": "getOutputs", "code": "    @Override\n    public List<ProcessorType<?>> getOutputs() {\n        return outputs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Thread[\" + name + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getShortName", "code": "    @Override\n    public String getShortName() {\n        return \"thread\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        ThreadProcessor thread = new ThreadProcessor();\n        thread.setExecutor(executor);\n        if (coreSize != null) {\n            thread.setCoreSize(coreSize);\n        }\n        if (daemon != null) {\n            thread.setDaemon(daemon);\n        }\n        if (keepAliveTime != null) {\n            thread.setKeepAliveTime(keepAliveTime);\n        }\n        if (maxSize != null) {\n            thread.setMaxSize(maxSize);\n        }\n        thread.setName(name);\n        thread.setPriority(priority);\n        if (stackSize != null) {\n            thread.setStackSize(stackSize);\n        }\n        thread.setTaskQueue(taskQueue);\n        thread.setThreadGroup(threadGroup);\n\n        ArrayList<Processor> pipe = new ArrayList<Processor>(2);\n        pipe.add(thread);\n        pipe.add(createOutputsProcessor(routeContext, outputs));\n        return new Pipeline(pipe);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [0, 13], [0, 14], [3, 15], [0, 16], [0, 17], [4, 18], [5, 19], [6, 20], [7, 21], [0, 22], [11, 23], [2, 24], [15, 25], [18, 26], [19, 27], [20, 28], [21, 29], [8, 30], [24, 31], [3, 32], [4, 33], [5, 34], [6, 35], [7, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 0], [14, 0], [15, 3], [16, 0], [17, 0], [18, 4], [19, 5], [20, 6], [21, 7], [22, 0], [23, 11], [24, 2], [25, 15], [26, 18], [27, 19], [28, 20], [29, 21], [30, 8], [31, 24], [32, 3], [33, 4], [34, 5], [35, 6], [36, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "configureChild", "code": "    @Override\n    protected void configureChild(ProcessorType output) {\n        super.configureChild(output);\n        if (isInheritErrorHandler()) {\n            output.setErrorHandlerBuilder(getErrorHandlerBuilder());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "errorHandler", "code": "    @Override\n    public ProcessorType errorHandler(ErrorHandlerBuilder errorHandlerBuilder) {\n        throw new IllegalArgumentException(\"Setting errorHandler on ThreadType is not supported.\"\n            + \" Instead set the errorHandler on the parent.\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "coreSize", "code": "    public ThreadType coreSize(int coreSize) {\n        setCoreSize(coreSize);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "daemon", "code": "    public ThreadType daemon(boolean daemon) {\n        setDaemon(daemon);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "keepAliveTime", "code": "    public ThreadType keepAliveTime(long keepAliveTime) {\n        setKeepAliveTime(keepAliveTime);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "maxSize", "code": "    public ThreadType maxSize(int maxSize) {\n        setMaxSize(maxSize);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "name", "code": "    public ThreadType name(String name) {\n        setName(name);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "priority", "code": "    public ThreadType priority(int priority) {\n        setPriority(priority);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "stackSize", "code": "    public ThreadType stackSize(long stackSize) {\n        setStackSize(stackSize);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "taskQueue", "code": "    public ThreadType taskQueue(BlockingQueue<Runnable> taskQueue) {\n        setTaskQueue(taskQueue);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "threadGroup", "code": "    public ThreadType threadGroup(ThreadGroup threadGroup) {\n        setThreadGroup(threadGroup);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "executor", "code": "    public ThreadType executor(ThreadPoolExecutor executor) {\n        setExecutor(executor);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setCoreSize", "code": "    public void setCoreSize(int coreSize) {\n        this.coreSize = coreSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDaemon", "code": "    public void setDaemon(boolean daemon) {\n        this.daemon = daemon;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setKeepAliveTime", "code": "    public void setKeepAliveTime(long keepAliveTime) {\n        this.keepAliveTime = keepAliveTime;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMaxSize", "code": "    public void setMaxSize(int maxSize) {\n        this.maxSize = maxSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPriority", "code": "    public void setPriority(int priority) {\n        this.priority = priority;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStackSize", "code": "    public void setStackSize(long stackSize) {\n        this.stackSize = stackSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTaskQueue", "code": "    public void setTaskQueue(BlockingQueue<Runnable> taskQueue) {\n        this.taskQueue = taskQueue;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setThreadGroup", "code": "    public void setThreadGroup(ThreadGroup threadGroup) {\n        this.threadGroup = threadGroup;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExecutor", "code": "    public ThreadPoolExecutor getExecutor() {\n        return executor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExecutor", "code": "    public void setExecutor(ThreadPoolExecutor executor) {\n        this.executor = executor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ThreadType", "code": "    public ThreadType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ThreadType", "code": "    public ThreadType(int coreSize) {\n        this.coreSize = coreSize;\n        this.maxSize = coreSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ThreadType", "code": "    public ThreadType(ThreadPoolExecutor executor) {\n        this.executor = executor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.3-54", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/RuntimeConfigurable.java", "language": "java", "name": "org.apache.tools.ant.RuntimeConfigurable", "code": "public class RuntimeConfigurable {\n\n    private Vector children = new Vector();\n    private Object wrappedObject = null;\n    private AttributeList attributes;\n    private StringBuffer characters = new StringBuffer();\n\n    /**\n     * @param proxy The element to wrap.\n     */\n    public RuntimeConfigurable(Object proxy) {\n        wrappedObject = proxy;\n    }\n\n    void setProxy(Object proxy) {\n        wrappedObject = proxy;\n    }\n\n    /**\n     * Set's the attributes for the wrapped element.\n     */\n    public void setAttributes(AttributeList attributes) {\n        this.attributes = new AttributeListImpl(attributes);\n    }\n\n    /**\n     * Returns the AttributeList of the wrapped element.\n     */\n    public AttributeList getAttributes() {\n        return attributes;\n    }\n\n    /**\n     * Adds child elements to the wrapped element.\n     */\n    public void addChild(RuntimeConfigurable child) {\n        children.addElement(child);\n    }\n\n    /**\n     * Returns the child with index <code>index</code>.\n     */\n    RuntimeConfigurable getChild(int index) {\n        return (RuntimeConfigurable) children.elementAt(index);\n    }\n\n    /**\n     * Add characters from #PCDATA areas to the wrapped element.\n     */\n    public void addText(String data) {\n        characters.append(data);\n    }\n\n    /**\n     * Add characters from #PCDATA areas to the wrapped element.\n     */\n    public void addText(char[] buf, int start, int end) {\n        addText(new String(buf, start, end));\n    }\n\n    /**\n     * Configure the wrapped element and all children.\n     */\n    public void maybeConfigure(Project p) throws BuildException {\n        if (attributes != null) {\n            ProjectHelper.configure(wrappedObject, attributes, p);\n            attributes = null;\n        }\n        if (characters.length() != 0) {\n            ProjectHelper.addText(wrappedObject, characters.toString());\n            characters.setLength(0);\n        }\n        Enumeration<RuntimeConfigurable> enum1 = children.elements();\n        while (enum1.hasMoreElements()) {\n            RuntimeConfigurable child = enum1.nextElement();\n            child.maybeConfigure(p);", "functions": [{"function_name": "setProxy", "code": "    void setProxy(Object proxy) {\n        wrappedObject = proxy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAttributes", "code": "    public void setAttributes(AttributeList attributes) {\n        this.attributes = new AttributeListImpl(attributes);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAttributes", "code": "    public AttributeList getAttributes() {\n        return attributes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addChild", "code": "    public void addChild(RuntimeConfigurable child) {\n        children.addElement(child);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getChild", "code": "    RuntimeConfigurable getChild(int index) {\n        return (RuntimeConfigurable) children.elementAt(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addText", "code": "    public void addText(String data) {\n        characters.append(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addText", "code": "    public void addText(char[] buf, int start, int end) {\n        addText(new String(buf, start, end));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "maybeConfigure", "code": "    public void maybeConfigure(Project p) throws BuildException {\n        if (attributes != null) {\n            ProjectHelper.configure(wrappedObject, attributes, p);\n            attributes = null;\n        }\n        if (characters.length() != 0) {\n            ProjectHelper.addText(wrappedObject, characters.toString());\n            characters.setLength(0);\n        }\n        Enumeration<RuntimeConfigurable> enum1 = children.elements();\n        while (enum1.hasMoreElements()) {\n            RuntimeConfigurable child = enum1.nextElement();\n            child.maybeConfigure(p);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [1, 9], [2, 10], [7, 11], [7, 12], [8, 13], [1, 14], [3, 15], [3, 16], [4, 17], [4, 18], [9, 19], [15, 20], [16, 21], [17, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 1], [10, 2], [11, 7], [12, 7], [13, 8], [14, 1], [15, 3], [16, 3], [17, 4], [18, 4], [19, 9], [20, 15], [21, 16], [22, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "RuntimeConfigurable", "code": "    public RuntimeConfigurable(Object proxy) {\n        wrappedObject = proxy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.0-1559", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/mail/MailConfiguration.java", "language": "java", "name": "org.apache.camel.component.mail.MailConfiguration", "code": "public class MailConfiguration implements Cloneable {\n    private String defaultEncoding;\n    private String host;\n    private Properties javaMailProperties;\n    private String password;\n    private String protocol;\n    private Session session;\n    private String username;\n    private int port = -1;\n    private String destination;\n    private String from = \"camel@localhost\";\n    private boolean deleteProcessedMessages = true;\n    private String folderName = \"INBOX\";\n\n    public MailConfiguration() {\n    }\n\n    /**\n     * Returns a copy of this configuration\n     */\n    public MailConfiguration copy() {\n        try {\n            return (MailConfiguration) clone();\n        }\n        catch (CloneNotSupportedException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    public void configure(URI uri) {\n        String value = uri.getHost();\n        if (value != null) {\n            setHost(value);\n        }\n\n        String scheme = uri.getScheme();\n        if (scheme != null) {\n            setProtocol(scheme);\n        }\n        String userInfo = uri.getUserInfo();\n        if (userInfo != null) {\n            setUsername(userInfo);\n        }\n        int port = uri.getPort();\n        if (port >= 0) {\n            setPort(port);\n        }\n\n\n        String fragment = uri.getFragment();\n        if (fragment == null || fragment.length() == 0) {\n            fragment = userInfo + \"@\" + host;\n        }\n        else {\n            setFolderName(fragment);\n        }\n        setDestination(fragment);\n    }\n\n    public JavaMailConnection createJavaMailConnection(MailEndpoint mailEndpoint) {\n        JavaMailConnection answer = new JavaMailConnection();\n        if (defaultEncoding != null) {\n            answer.setDefaultEncoding(defaultEncoding);\n        }\n        if (host != null) {\n            answer.setHost(host);\n        }\n        if (javaMailProperties != null) {\n            answer.setJavaMailProperties(javaMailProperties);\n        }\n        if (port >= 0) {\n            answer.setPort(port);\n        }\n        if (password != null) {\n            answer.setPassword(password);\n        }\n        if (protocol != null) {\n            answer.setProtocol(protocol);\n        }\n        if (session != null) {\n            answer.setSession(session);\n        }\n        if (username != null) {\n            answer.setUsername(username);\n        }\n        return answer;\n    }\n\n\n    public String getDefaultEncoding() {\n        return defaultEncoding;\n    }\n\n    public void setDefaultEncoding(String defaultEncoding) {\n        this.defaultEncoding = defaultEncoding;\n    }\n\n    public String getHost() {\n        return host;\n    }\n\n    public void setHost(String host) {\n        this.host = host;\n    }\n\n    public Properties getJavaMailProperties() {\n        return javaMailProperties;\n    }\n\n    public void setJavaMailProperties(Properties javaMailProperties) {\n        this.javaMailProperties = javaMailProperties;\n    }\n\n    public String getPassword() {\n        return password;\n    }\n\n    public void setPassword(String password) {\n        this.password = password;\n    }\n\n    public int getPort() {\n        return port;\n    }\n\n    public void setPort(int port) {\n        this.port = port;\n    }\n\n    public String getProtocol() {\n        return protocol;\n    }\n\n    public void setProtocol(String protocol) {\n        this.protocol = protocol;\n    }\n\n    public Session getSession() {\n        return session;\n    }\n\n    public void setSession(Session session) {\n        this.session = session;\n    }\n\n    public String getUsername() {\n        return username;\n    }\n\n    public void setUsername(String username) {\n        this.username = username;\n    }\n\n    public String getDestination() {\n        return destination;\n    }\n\n    public void setDestination(String destination) {\n        this.destination = destination;\n    }\n\n    public String getFrom() {\n        return from;\n    }\n\n    public void setFrom(String from) {\n        this.from = from;\n    }\n\n    public boolean isDeleteProcessedMessages() {\n        return deleteProcessedMessages;\n    }\n\n    public void setDeleteProcessedMessages(boolean deleteProcessedMessages) {\n        this.deleteProcessedMessages = deleteProcessedMessages;\n    }\n\n    public String getFolderName() {\n        return folderName;\n    }\n\n    public void setFolderName(String folderName) {\n        this.folderName = folderName;", "functions": [{"function_name": "copy", "code": "    public MailConfiguration copy() {\n        try {\n            return (MailConfiguration) clone();\n        }\n        catch (CloneNotSupportedException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [3, 6], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "configure", "code": "    public void configure(URI uri) {\n        String value = uri.getHost();\n        if (value != null) {\n            setHost(value);\n        }\n\n        String scheme = uri.getScheme();\n        if (scheme != null) {\n            setProtocol(scheme);\n        }\n        String userInfo = uri.getUserInfo();\n        if (userInfo != null) {\n            setUsername(userInfo);\n        }\n        int port = uri.getPort();\n        if (port >= 0) {\n            setPort(port);\n        }\n\n\n        String fragment = uri.getFragment();\n        if (fragment == null || fragment.length() == 0) {\n            fragment = userInfo + \"@\" + host;\n        }\n        else {\n            setFolderName(fragment);\n        }\n        setDestination(fragment);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [3, 14], [5, 15], [7, 16], [9, 17], [13, 18], [13, 19], [2, 20], [14, 21], [4, 22], [15, 23], [6, 24], [16, 25], [8, 26], [17, 27], [10, 28], [1, 29], [1, 30], [18, 31], [18, 32], [19, 33], [3, 34], [5, 35], [7, 36], [9, 37], [30, 38], [38, 39], [39, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 3], [15, 5], [16, 7], [17, 9], [18, 13], [19, 13], [20, 2], [21, 14], [22, 4], [23, 15], [24, 6], [25, 16], [26, 8], [27, 17], [28, 10], [29, 1], [30, 1], [31, 18], [32, 18], [33, 19], [34, 3], [35, 5], [36, 7], [37, 9], [38, 30], [39, 38], [40, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "createJavaMailConnection", "code": "    public JavaMailConnection createJavaMailConnection(MailEndpoint mailEndpoint) {\n        JavaMailConnection answer = new JavaMailConnection();\n        if (defaultEncoding != null) {\n            answer.setDefaultEncoding(defaultEncoding);\n        }\n        if (host != null) {\n            answer.setHost(host);\n        }\n        if (javaMailProperties != null) {\n            answer.setJavaMailProperties(javaMailProperties);\n        }\n        if (port >= 0) {\n            answer.setPort(port);\n        }\n        if (password != null) {\n            answer.setPassword(password);\n        }\n        if (protocol != null) {\n            answer.setProtocol(protocol);\n        }\n        if (session != null) {\n            answer.setSession(session);\n        }\n        if (username != null) {\n            answer.setUsername(username);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [4, 14], [5, 15], [6, 16], [7, 17], [8, 18], [9, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [18, 26], [19, 27], [10, 28], [2, 29], [3, 30], [4, 31], [5, 32], [6, 33], [7, 34], [8, 35], [9, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 4], [15, 5], [16, 6], [17, 7], [18, 8], [19, 9], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 18], [27, 19], [28, 10], [29, 2], [30, 3], [31, 4], [32, 5], [33, 6], [34, 7], [35, 8], [36, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getDefaultEncoding", "code": "    public String getDefaultEncoding() {\n        return defaultEncoding;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefaultEncoding", "code": "    public void setDefaultEncoding(String defaultEncoding) {\n        this.defaultEncoding = defaultEncoding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHost", "code": "    public String getHost() {\n        return host;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHost", "code": "    public void setHost(String host) {\n        this.host = host;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getJavaMailProperties", "code": "    public Properties getJavaMailProperties() {\n        return javaMailProperties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setJavaMailProperties", "code": "    public void setJavaMailProperties(Properties javaMailProperties) {\n        this.javaMailProperties = javaMailProperties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPassword", "code": "    public String getPassword() {\n        return password;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPassword", "code": "    public void setPassword(String password) {\n        this.password = password;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPort", "code": "    public int getPort() {\n        return port;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPort", "code": "    public void setPort(int port) {\n        this.port = port;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProtocol", "code": "    public String getProtocol() {\n        return protocol;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProtocol", "code": "    public void setProtocol(String protocol) {\n        this.protocol = protocol;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSession", "code": "    public Session getSession() {\n        return session;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSession", "code": "    public void setSession(Session session) {\n        this.session = session;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUsername", "code": "    public String getUsername() {\n        return username;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUsername", "code": "    public void setUsername(String username) {\n        this.username = username;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDestination", "code": "    public String getDestination() {\n        return destination;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDestination", "code": "    public void setDestination(String destination) {\n        this.destination = destination;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFrom", "code": "    public String getFrom() {\n        return from;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFrom", "code": "    public void setFrom(String from) {\n        this.from = from;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDeleteProcessedMessages", "code": "    public boolean isDeleteProcessedMessages() {\n        return deleteProcessedMessages;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDeleteProcessedMessages", "code": "    public void setDeleteProcessedMessages(boolean deleteProcessedMessages) {\n        this.deleteProcessedMessages = deleteProcessedMessages;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFolderName", "code": "    public String getFolderName() {\n        return folderName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFolderName", "code": "    public void setFolderName(String folderName) {\n        this.folderName = folderName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MailConfiguration", "code": "    public MailConfiguration() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.5-5664", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/model/DrawingManager.java", "language": "java", "name": "org.apache.poi.hssf.model.DrawingManager", "code": "public class DrawingManager\n{\n    EscherDggRecord dgg;\n\n    public DrawingManager( EscherDggRecord dgg )\n    {\n        this.dgg = dgg;\n    }\n\n    public EscherDgRecord createDgRecord()\n    {\n        EscherDgRecord dg = new EscherDgRecord();\n        dg.setRecordId( EscherDgRecord.RECORD_ID );\n        short dgId = findNewDrawingGroupId();\n        dg.setOptions( (short) ( dgId << 4 ) );\n        dg.setNumShapes( 0 );\n        dg.setLastMSOSPID( -1 );\n        dgg.addCluster( dgId, 0 );\n        dgg.setDrawingsSaved( dgg.getDrawingsSaved() + 1 );\n        dgMap.put( new Short( dgId ), dg );\n        return dg;\n    }\n\n    /**\n     * Allocates new shape id for the new drawing group id.\n     *\n     * @return a new shape id.\n     */\n    public int allocateShapeId(short drawingGroupId)\n    {\n        EscherDgRecord dg = (EscherDgRecord) dgMap.get(new Short(drawingGroupId));\n        int lastShapeId = dg.getLastMSOSPID();\n\n\n        int newShapeId = 0;\n        if (lastShapeId % 1024 == 1023)\n        {\n            newShapeId = findFreeSPIDBlock();\n            dgg.addCluster(drawingGroupId, 1);\n        }\n        else\n        {\n            for (int i = 0; i < dgg.getFileIdClusters().length; i++)\n            {\n                EscherDggRecord.FileIdCluster c = dgg.getFileIdClusters()[i];\n                if (c.getDrawingGroupId() == drawingGroupId)\n                {\n                    if (c.getNumShapeIdsUsed() != 1024)\n                    {\n                        c.incrementShapeId();\n                    }\n                }\n                if (dg.getLastMSOSPID() == -1)\n                {\n                    newShapeId = findFreeSPIDBlock();\n                }\n                else\n                {\n                    newShapeId = dg.getLastMSOSPID() + 1;\n                }\n            }\n        }\n        dgg.setNumShapesSaved(dgg.getNumShapesSaved() + 1);\n        if (newShapeId >= dgg.getShapeIdMax())\n        {\n            dgg.setShapeIdMax(newShapeId + 1);\n        }\n        dg.setLastMSOSPID(newShapeId);\n        dg.incrementShapeCount();\n\n\n        return newShapeId;\n    }\n\n    short findNewDrawingGroupId()\n    {\n        short dgId = 1;\n        while ( drawingGroupExists( dgId ) )\n            dgId++;\n        return dgId;\n    }\n\n    boolean drawingGroupExists( short dgId )\n    {\n        for ( int i = 0; i < dgg.getFileIdClusters().length; i++ )\n        {\n            if ( dgg.getFileIdClusters()[i].getDrawingGroupId() == dgId )\n                return true;\n        }\n        return false;\n    }\n\n    int findFreeSPIDBlock()\n    {\n        int max = dgg.getShapeIdMax();\n        int next = ( ( max / 1024 ) + 1 ) * 1024;\n        return next;\n    }\n\n    public EscherDggRecord getDgg()\n    {\n        return dgg;", "functions": [{"function_name": "createDgRecord", "code": "    public EscherDgRecord createDgRecord()\n    {\n        EscherDgRecord dg = new EscherDgRecord();\n        dg.setRecordId( EscherDgRecord.RECORD_ID );\n        short dgId = findNewDrawingGroupId();\n        dg.setOptions( (short) ( dgId << 4 ) );\n        dg.setNumShapes( 0 );\n        dg.setLastMSOSPID( -1 );\n        dgg.addCluster( dgId, 0 );\n        dgg.setDrawingsSaved( dgg.getDrawingsSaved() + 1 );\n        dgMap.put( new Short( dgId ), dg );\n        return dg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [4, 11], [5, 12], [6, 13], [7, 14], [8, 15], [2, 16], [3, 17], [12, 18], [12, 19], [9, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 4], [12, 5], [13, 6], [14, 7], [15, 8], [16, 2], [17, 3], [18, 12], [19, 12], [20, 9], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "allocateShapeId", "code": "    public int allocateShapeId(short drawingGroupId)\n    {\n        EscherDgRecord dg = (EscherDgRecord) dgMap.get(new Short(drawingGroupId));\n        int lastShapeId = dg.getLastMSOSPID();\n\n\n        int newShapeId = 0;\n        if (lastShapeId % 1024 == 1023)\n        {\n            newShapeId = findFreeSPIDBlock();\n            dgg.addCluster(drawingGroupId, 1);\n        }\n        else\n        {\n            for (int i = 0; i < dgg.getFileIdClusters().length; i++)\n            {\n                EscherDggRecord.FileIdCluster c = dgg.getFileIdClusters()[i];\n                if (c.getDrawingGroupId() == drawingGroupId)\n                {\n                    if (c.getNumShapeIdsUsed() != 1024)\n                    {\n                        c.incrementShapeId();\n                    }\n                }\n                if (dg.getLastMSOSPID() == -1)\n                {\n                    newShapeId = findFreeSPIDBlock();\n                }\n                else\n                {\n                    newShapeId = dg.getLastMSOSPID() + 1;\n                }\n            }\n        }\n        dgg.setNumShapesSaved(dgg.getNumShapesSaved() + 1);\n        if (newShapeId >= dgg.getShapeIdMax())\n        {\n            dgg.setShapeIdMax(newShapeId + 1);\n        }\n        dg.setLastMSOSPID(newShapeId);\n        dg.incrementShapeCount();\n\n\n        return newShapeId;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [3, 12], [10, 13], [11, 14], [3, 15], [12, 16], [12, 17], [4, 18], [5, 19], [2, 20], [14, 21], [14, 22], [15, 23], [3, 24], [3, 25], [17, 26], [6, 27], [20, 28], [15, 29], [15, 30], [15, 31], [23, 32], [24, 33], [25, 34], [27, 35], [28, 36], [29, 37], [30, 38], [15, 39], [37, 40], [37, 41], [30, 42], [38, 43], [31, 44], [29, 45], [29, 46], [42, 47], [45, 48], [46, 49], [47, 50], [47, 51], [48, 52], [48, 53], [42, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 3], [13, 10], [14, 11], [15, 3], [16, 12], [17, 12], [18, 4], [19, 5], [20, 2], [21, 14], [22, 14], [23, 15], [24, 3], [25, 3], [26, 17], [27, 6], [28, 20], [29, 15], [30, 15], [31, 15], [32, 23], [33, 24], [34, 25], [35, 27], [36, 28], [37, 29], [38, 30], [39, 15], [40, 37], [41, 37], [42, 30], [43, 38], [44, 31], [45, 29], [46, 29], [47, 42], [48, 45], [49, 46], [50, 47], [51, 47], [52, 48], [53, 48], [54, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "findNewDrawingGroupId", "code": "    short findNewDrawingGroupId()\n    {\n        short dgId = 1;\n        while ( drawingGroupExists( dgId ) )\n            dgId++;\n        return dgId;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "drawingGroupExists", "code": "    boolean drawingGroupExists( short dgId )\n    {\n        for ( int i = 0; i < dgg.getFileIdClusters().length; i++ )\n        {\n            if ( dgg.getFileIdClusters()[i].getDrawingGroupId() == dgId )\n                return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [2, 10], [8, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 2], [11, 8], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "findFreeSPIDBlock", "code": "    int findFreeSPIDBlock()\n    {\n        int max = dgg.getShapeIdMax();\n        int next = ( ( max / 1024 ) + 1 ) * 1024;\n        return next;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [4, 6], [4, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 4], [7, 4], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getDgg", "code": "    public EscherDggRecord getDgg()\n    {\n        return dgg;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DrawingManager", "code": "    public DrawingManager( EscherDggRecord dgg )\n    {\n        this.dgg = dgg;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.2-2001", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/mail/MailConsumer.java", "language": "java", "name": "org.apache.camel.component.mail.MailConsumer", "code": "public class MailConsumer extends ScheduledPollConsumer<MailExchange> implements MessageCountListener {\n    private static final transient Log LOG = LogFactory.getLog(MailConsumer.class);\n    private final MailEndpoint endpoint;\n    private final Folder folder;\n\n    public MailConsumer(MailEndpoint endpoint, Processor processor, Folder folder) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n        this.folder = folder;\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        ensureFolderIsOpen();\n        folder.addMessageCountListener(this);\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        folder.removeMessageCountListener(this);\n        folder.close(true);\n        super.doStop();\n    }\n\n    public void messagesAdded(MessageCountEvent event) {\n        Message[] messages = event.getMessages();\n        for (Message message : messages) {\n            try {\n                if (!message.getFlags().contains(Flags.Flag.DELETED)) {\n                    processMessage(message);\n\n                    flagMessageDeleted(message);\n                }\n            } catch (MessagingException e) {\n                handleException(e);\n            }\n        }\n    }\n\n    public void messagesRemoved(MessageCountEvent event) {\n        Message[] messages = event.getMessages();\n        for (Message message : messages) {\n            if (LOG.isDebugEnabled()) {\n                try {\n                    LOG.debug(\"Removing message: \" + message.getSubject());\n                } catch (MessagingException e) {\n                    LOG.debug(\"Ignored: \" + e);\n                }\n            }\n        }\n    }\n\n    protected void poll() throws Exception {\n        ensureFolderIsOpen();\n\n        int count = folder.getMessageCount();\n        if (count > 0) {\n            Message[] messages = folder.getMessages();\n            MessageCountEvent event = new MessageCountEvent(folder, MessageCountEvent.ADDED, true, messages);\n            messagesAdded(event);\n        } else if (count == -1) {\n            throw new MessagingException(\"Folder: \" + folder.getFullName() + \" is closed\");\n        }\n\n        folder.close(true);\n    }\n\n    protected void processMessage(Message message) {\n        try {\n            MailExchange exchange = endpoint.createExchange(message);\n            getProcessor().process(exchange);\n        } catch (Throwable e) {\n            handleException(e);\n        }\n    }\n\n    protected void ensureFolderIsOpen() throws MessagingException {\n        if (!folder.isOpen()) {\n            folder.open(Folder.READ_WRITE);\n        }\n    }\n\n    protected void flagMessageDeleted(Message message) throws MessagingException {\n        if (endpoint.getConfiguration().isDeleteProcessedMessages()) {\n            message.setFlag(Flags.Flag.DELETED, true);\n        } else {\n            message.setFlag(Flags.Flag.SEEN, true);", "functions": [{"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        ensureFolderIsOpen();\n        folder.addMessageCountListener(this);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        folder.removeMessageCountListener(this);\n        folder.close(true);\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "messagesAdded", "code": "    public void messagesAdded(MessageCountEvent event) {\n        Message[] messages = event.getMessages();\n        for (Message message : messages) {\n            try {\n                if (!message.getFlags().contains(Flags.Flag.DELETED)) {\n                    processMessage(message);\n\n                    flagMessageDeleted(message);\n                }\n            } catch (MessagingException e) {\n                handleException(e);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "TRY", "CALL", "CATCH", "IF", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [7, 8], [6, 9], [8, 10], [7, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 7], [9, 6], [10, 8], [11, 7], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "messagesRemoved", "code": "    public void messagesRemoved(MessageCountEvent event) {\n        Message[] messages = event.getMessages();\n        for (Message message : messages) {\n            if (LOG.isDebugEnabled()) {\n                try {\n                    LOG.debug(\"Removing message: \" + message.getSubject());\n                } catch (MessagingException e) {\n                    LOG.debug(\"Ignored: \" + e);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "IF", "CALL", "CALL", "TRY", "CATCH", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [7, 8], [7, 9], [8, 10], [9, 11], [10, 12], [11, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 7], [9, 7], [10, 8], [11, 9], [12, 10], [13, 11], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "poll", "code": "    protected void poll() throws Exception {\n        ensureFolderIsOpen();\n\n        int count = folder.getMessageCount();\n        if (count > 0) {\n            Message[] messages = folder.getMessages();\n            MessageCountEvent event = new MessageCountEvent(folder, MessageCountEvent.ADDED, true, messages);\n            messagesAdded(event);\n        } else if (count == -1) {\n            throw new MessagingException(\"Folder: \" + folder.getFullName() + \" is closed\");\n        }\n\n        folder.close(true);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [3, 7], [4, 8], [1, 9], [1, 10], [5, 11], [2, 12], [4, 13], [8, 14], [1, 15], [13, 16], [9, 17], [10, 18], [16, 19], [17, 20], [19, 21], [19, 22], [22, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 3], [8, 4], [9, 1], [10, 1], [11, 5], [12, 2], [13, 4], [14, 8], [15, 1], [16, 13], [17, 9], [18, 10], [19, 16], [20, 17], [21, 19], [22, 19], [23, 22], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "processMessage", "code": "    protected void processMessage(Message message) {\n        try {\n            MailExchange exchange = endpoint.createExchange(message);\n            getProcessor().process(exchange);\n        } catch (Throwable e) {\n            handleException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [4, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "ensureFolderIsOpen", "code": "    protected void ensureFolderIsOpen() throws MessagingException {\n        if (!folder.isOpen()) {\n            folder.open(Folder.READ_WRITE);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "flagMessageDeleted", "code": "    protected void flagMessageDeleted(Message message) throws MessagingException {\n        if (endpoint.getConfiguration().isDeleteProcessedMessages()) {\n            message.setFlag(Flags.Flag.DELETED, true);\n        } else {\n            message.setFlag(Flags.Flag.SEEN, true);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "MailConsumer", "code": "    public MailConsumer(MailEndpoint endpoint, Processor processor, Folder folder) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n        this.folder = folder;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.6-7482", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/util/NamedMethodGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.NamedMethodGenerator", "code": "public final class NamedMethodGenerator extends MethodGenerator {\n    protected static int CURRENT_INDEX  = 4;\n    \n    private static final int PARAM_START_INDEX = 5;\n\n    public NamedMethodGenerator(int access_flags, Type return_type,\n\t\t\t\tType[] arg_types, String[] arg_names,\n\t\t\t\tString method_name, String class_name,\n\t\t\t\tInstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n    }\n\n    public int getLocalIndex(String name) {\n\tif (name.equals(\"current\")) {\n\t    return CURRENT_INDEX;\n\t}\n\treturn super.getLocalIndex(name);\n    }\n\n    public Instruction loadParameter(int index) {\n        return new ALOAD(index + PARAM_START_INDEX);\n    }\n    \n    public Instruction storeParameter(int index) {\n        return new ASTORE(index + PARAM_START_INDEX);", "functions": [{"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {\n\tif (name.equals(\"current\")) {\n\t    return CURRENT_INDEX;\n\t}\n\treturn super.getLocalIndex(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "loadParameter", "code": "    public Instruction loadParameter(int index) {\n        return new ALOAD(index + PARAM_START_INDEX);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "storeParameter", "code": "    public Instruction storeParameter(int index) {\n        return new ASTORE(index + PARAM_START_INDEX);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "NamedMethodGenerator", "code": "    public NamedMethodGenerator(int access_flags, Type return_type,\n\t\t\t\tType[] arg_types, String[] arg_names,\n\t\t\t\tString method_name, String class_name,\n\t\t\t\tInstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "camel-1.2-1691", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/irc/IrcConsumer.java", "language": "java", "name": "org.apache.camel.component.irc.IrcConsumer", "code": "public class IrcConsumer extends DefaultConsumer<IrcExchange> {\n    private static final transient Log LOG = LogFactory.getLog(IrcConsumer.class);\n    \n    private final IrcConfiguration configuration;\n    private final IrcEndpoint endpoint;\n    private final IRCConnection connection;\n    private FilteredIRCEventAdapter listener;\n\n    public IrcConsumer(IrcEndpoint endpoint, Processor processor, IRCConnection connection) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n        this.connection = connection;\n        configuration = endpoint.getConfiguration();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        String target = endpoint.getConfiguration().getTarget();\n        connection.doPart(target);\n        connection.removeIRCEventListener(listener);\n\n        super.doStop();\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n\n        String target = endpoint.getConfiguration().getTarget();\n        connection.addIRCEventListener(new FilteredIRCEventAdapter(target));\n\n        LOG.debug(\"joining: \" + target);\n        connection.doJoin(target);\n    }\n\n    public IRCConnection getConnection() {\n        return connection;\n    }\n\n    class FilteredIRCEventAdapter extends IRCEventAdapter {\n        final String target;\n\n        public FilteredIRCEventAdapter(String target) {\n            this.target = target;\n        }\n\n        @Override\n        public void onNick(IRCUser user, String newNick) {\n            if (configuration.isOnNick()) {\n                IrcExchange exchange = endpoint.createOnNickExchange(user, newNick);\n                try {\n                    getProcessor().process(exchange);\n                } catch (Exception e) {\n                    e.printStackTrace();\n                }\n            }\n        }\n\n        @Override\n        public void onQuit(IRCUser user, String msg) {\n            if (configuration.isOnQuit()) {\n                IrcExchange exchange = endpoint.createOnQuitExchange(user, msg);\n                try {\n                    getProcessor().process(exchange);\n                } catch (Exception e) {\n                    e.printStackTrace();\n                }\n            }\n        }\n\n        @Override\n        public void onJoin(String channel, IRCUser user) {\n            if (configuration.isOnJoin()) {\n                if (channel.equals(configuration.getTarget())) {\n                    IrcExchange exchange = endpoint.createOnJoinExchange(channel, user);\n                    try {\n                        getProcessor().process(exchange);\n                    } catch (Exception e) {\n                        e.printStackTrace();\n                    }\n                }\n            }\n        }\n\n        @Override\n        public void onKick(String channel, IRCUser user, String passiveNick, String msg) {\n            if (configuration.isOnKick()) {\n                if (channel.equals(configuration.getTarget())) {\n                    IrcExchange exchange = endpoint.createOnKickExchange(channel, user, passiveNick, msg);\n                    try {\n                        getProcessor().process(exchange);\n                    } catch (Exception e) {\n                        e.printStackTrace();\n                    }\n                }\n            }\n        }\n\n        @Override\n        public void onMode(String channel, IRCUser user, IRCModeParser modeParser) {\n            if (configuration.isOnMode()) {\n                if (channel.equals(configuration.getTarget())) {\n                    IrcExchange exchange = endpoint.createOnModeExchange(channel, user, modeParser);\n                    try {\n                        getProcessor().process(exchange);\n                    } catch (Exception e) {\n                        e.printStackTrace();\n                    }\n                }\n            }\n        }\n\n        @Override\n        public void onPart(String channel, IRCUser user, String msg) {\n            if (configuration.isOnPart()) {\n                if (channel.equals(configuration.getTarget())) {\n                    IrcExchange exchange = endpoint.createOnPartExchange(channel, user, msg);\n                    try {\n                        getProcessor().process(exchange);\n                    } catch (Exception e) {\n                        e.printStackTrace();\n                    }\n                }\n            }\n        }\n\n        @Override\n        public void onTopic(String channel, IRCUser user, String topic) {\n            if (configuration.isOnTopic()) {\n                if (channel.equals(configuration.getTarget())) {\n                    IrcExchange exchange = endpoint.createOnTopicExchange(channel, user, topic);\n                    try {\n                        getProcessor().process(exchange);\n                    } catch (Exception e) {\n                        e.printStackTrace();\n                    }\n                }\n            }\n        }\n\n        @Override\n        public void onPrivmsg(String target, IRCUser user, String msg) {\n            if (configuration.isOnPrivmsg()) {\n                if (target.equals(configuration.getTarget())) {\n                    IrcExchange exchange = endpoint.createOnPrivmsgExchange(target, user, msg);\n                    try {\n                        getProcessor().process(exchange);\n                    } catch (Exception e) {\n                        e.printStackTrace();", "functions": [{"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        String target = endpoint.getConfiguration().getTarget();\n        connection.doPart(target);\n        connection.removeIRCEventListener(listener);\n\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n\n        String target = endpoint.getConfiguration().getTarget();\n        connection.addIRCEventListener(new FilteredIRCEventAdapter(target));\n\n        LOG.debug(\"joining: \" + target);\n        connection.doJoin(target);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 1], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getConnection", "code": "    public IRCConnection getConnection() {\n        return connection;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "IrcConsumer", "code": "    public IrcConsumer(IrcEndpoint endpoint, Processor processor, IRCConnection connection) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n        this.connection = connection;\n        configuration = endpoint.getConfiguration();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "poi-1.5-5280", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/util/POILogger.java", "language": "java", "name": "org.apache.poi.util.POILogger", "code": "public class POILogger\n{\n    private Log             log   = null;\n    public static final int DEBUG = 1;\n    public static final int INFO  = 3;\n    public static final int WARN  = 5;\n    public static final int ERROR = 7;\n    public static final int FATAL = 9;\n\n    /**\n     * package scope so it cannot be instantiated outside of the util\n     * package. You need a POILogger? Go to the POILogFactory for one\n     *\n     * @param log the object that does the real work of logging\n     */\n\n    POILogger(final Log log)\n    {\n        this.log = log;\n    }\n\n    /**\n     * Log a message\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 The object to log.\n     */\n\n    public void log(final int level, final Object obj1)\n    {\n        if(level==FATAL)\n        {\n          if(log.isFatalEnabled())\n          {\n            log.fatal(obj1);\n          }\n        }\n        else if(level==ERROR)\n        {\n          if(log.isErrorEnabled())\n          {\n            log.error(obj1);\n          }\n        }\n        else if(level==WARN)\n        {\n          if(log.isWarnEnabled())\n          {\n            log.warn(obj1);\n          }\n        }\n        else if(level==INFO)\n        {\n          if(log.isInfoEnabled())\n          {\n            log.info(obj1);\n          }\n        }\n        else if(level==DEBUG)\n        {\n          if(log.isDebugEnabled())\n          {\n            log.debug(obj1);\n          }\n        }\n        else\n        {\n          if(log.isTraceEnabled())\n          {\n            log.trace(obj1);\n          }\n        }\n\n    }\n\n    /**\n     * Check if a logger is enabled to log at the specified level\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 The logger to check.\n     */\n\n    public boolean check(final Log log, final int level)\n    {\n        if(level==FATAL)\n        {\n          if(log.isFatalEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==ERROR)\n        {\n          if(log.isErrorEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==WARN)\n        {\n          if(log.isWarnEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==INFO)\n        {\n          if(log.isInfoEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==DEBUG)\n        {\n          if(log.isDebugEnabled())\n          {\n            return true;\n          }\n        }\n\n        return false;\n\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first object to place in the message\n     * @param obj2 second object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2)\n    {\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(32).append(obj1).append(obj2));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level,\n                    new StringBuffer(48).append(obj1).append(obj2)\n                        .append(obj3));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     * @param obj4 fourth Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level,\n                    new StringBuffer(64).append(obj1).append(obj2)\n                        .append(obj3).append(obj4));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     * @param obj4 fourth Object to place in the message\n     * @param obj5 fifth Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level,\n                    new StringBuffer(80).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     * @param obj4 fourth Object to place in the message\n     * @param obj5 fifth Object to place in the message\n     * @param obj6 sixth Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level ,\n                    new StringBuffer(96).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     * @param obj4 fourth Object to place in the message\n     * @param obj5 fifth Object to place in the message\n     * @param obj6 sixth Object to place in the message\n     * @param obj7 seventh Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level,\n                    new StringBuffer(112).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6)\n                        .append(obj7));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     * @param obj4 fourth Object to place in the message\n     * @param obj5 fifth Object to place in the message\n     * @param obj6 sixth Object to place in the message\n     * @param obj7 seventh Object to place in the message\n     * @param obj8 eighth Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7, final Object obj8)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level,\n                    new StringBuffer(128).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6)\n                        .append(obj7).append(obj8));\n        }\n    }\n\n    /**\n     * Log a message\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 The object to log.  This is converted to a string.\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1,\n                    final Throwable exception)\n    {\n        log(level , obj1, exception);\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(32).append(obj1).append(obj2),\n                    exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param exception An error message to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(48).append(obj1).append(obj2)\n                .append(obj3), exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param obj4 fourth object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4,\n                    final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(64).append(obj1).append(obj2)\n                .append(obj3).append(obj4), exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param obj4 fourth object to place in the message\n     * @param obj5 fifth object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(80).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5), exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param obj4 fourth object to place in the message\n     * @param obj5 fifth object to place in the message\n     * @param obj6 sixth object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level , new StringBuffer(96).append(obj1)\n                .append(obj2).append(obj3).append(obj4).append(obj5)\n                .append(obj6), exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param obj4 fourth object to place in the message\n     * @param obj5 fifth object to place in the message\n     * @param obj6 sixth object to place in the message\n     * @param obj7 seventh object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7,\n                    final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(112).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5).append(obj6)\n                .append(obj7), exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param obj4 fourth object to place in the message\n     * @param obj5 fifth object to place in the message\n     * @param obj6 sixth object to place in the message\n     * @param obj7 seventh object to place in the message\n     * @param obj8 eighth object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7, final Object obj8,\n                    final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(128).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5).append(obj6)\n                .append(obj7).append(obj8), exception);\n        }\n    }\n\n    /**\n     * Logs a formated message. The message itself may contain %\n     * characters as place holders. This routine will attempt to match\n     * the placeholder by looking at the type of parameter passed to\n     * obj1.<p>\n     *\n     * If the parameter is an array, it traverses the array first and\n     * matches parameters sequentially against the array items.\n     * Otherwise the parameters after <code>message</code> are matched\n     * in order.<p>\n     *\n     * If the place holder matches against a number it is printed as a\n     * whole number. This can be overridden by specifying a precision\n     * in the form %n.m where n is the padding for the whole part and\n     * m is the number of decimal places to display. n can be excluded\n     * if desired. n and m may not be more than 9.<p>\n     *\n     * If the last parameter (after flattening) is a Throwable it is\n     * logged specially.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param message The message to log.\n     * @param obj1 The first object to match against.\n     */\n\n    public void logFormatted(final int level, final String message,\n                             final Object obj1)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1\n        });\n    }\n\n    /**\n     * Logs a formated message. The message itself may contain %\n     * characters as place holders. This routine will attempt to match\n     * the placeholder by looking at the type of parameter passed to\n     * obj1.<p>\n     *\n     * If the parameter is an array, it traverses the array first and\n     * matches parameters sequentially against the array items.\n     * Otherwise the parameters after <code>message</code> are matched\n     * in order.<p>\n     *\n     * If the place holder matches against a number it is printed as a\n     * whole number. This can be overridden by specifying a precision\n     * in the form %n.m where n is the padding for the whole part and\n     * m is the number of decimal places to display. n can be excluded\n     * if desired. n and m may not be more than 9.<p>\n     *\n     * If the last parameter (after flattening) is a Throwable it is\n     * logged specially.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param message The message to log.\n     * @param obj1 The first object to match against.\n     * @param obj2 The second object to match against.\n     */\n\n    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2\n        });\n    }\n\n    /**\n     * Logs a formated message. The message itself may contain %\n     * characters as place holders. This routine will attempt to match\n     * the placeholder by looking at the type of parameter passed to\n     * obj1.<p>\n     *\n     * If the parameter is an array, it traverses the array first and\n     * matches parameters sequentially against the array items.\n     * Otherwise the parameters after <code>message</code> are matched\n     * in order.<p>\n     *\n     * If the place holder matches against a number it is printed as a\n     * whole number. This can be overridden by specifying a precision\n     * in the form %n.m where n is the padding for the whole part and\n     * m is the number of decimal places to display. n can be excluded\n     * if desired. n and m may not be more than 9.<p>\n     *\n     * If the last parameter (after flattening) is a Throwable it is\n     * logged specially.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param message The message to log.\n     * @param obj1 The first object to match against.\n     * @param obj2 The second object to match against.\n     * @param obj3 The third object to match against.\n     */\n\n    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2,\n                             final Object obj3)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2, obj3\n        });\n    }\n\n    /**\n     * Logs a formated message. The message itself may contain %\n     * characters as place holders. This routine will attempt to match\n     * the placeholder by looking at the type of parameter passed to\n     * obj1.<p>\n     *\n     * If the parameter is an array, it traverses the array first and\n     * matches parameters sequentially against the array items.\n     * Otherwise the parameters after <code>message</code> are matched\n     * in order.<p>\n     *\n     * If the place holder matches against a number it is printed as a\n     * whole number. This can be overridden by specifying a precision\n     * in the form %n.m where n is the padding for the whole part and\n     * m is the number of decimal places to display. n can be excluded\n     * if desired. n and m may not be more than 9.<p>\n     *\n     * If the last parameter (after flattening) is a Throwable it is\n     * logged specially.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param message The message to log.\n     * @param obj1 The first object to match against.\n     * @param obj2 The second object to match against.\n     * @param obj3 The third object to match against.\n     * @param obj4 The forth object to match against.\n     */\n\n    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2,\n                             final Object obj3, final Object obj4)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2, obj3, obj4\n        });\n    }\n\n    private void commonLogFormatted(final int level, final String message,\n                                    final Object [] unflatParams)\n    {\n        \n\n        if (check(log, level))\n        {\n            Object[] params = flattenArrays(unflatParams);\n\n            if (params[ params.length - 1 ] instanceof Throwable)\n            {\n                log(level, StringUtil.format(message, params),\n                    ( Throwable ) params[ params.length - 1 ]);\n            }\n            else\n            {\n                log(level, StringUtil.format(message, params));\n            }\n        }\n    }\n\n    /**\n     * Flattens any contained objects. Only tranverses one level deep.\n     */\n\n    private Object [] flattenArrays(final Object [] objects)\n    {\n        List results = new ArrayList();\n\n        for (int i = 0; i < objects.length; i++)\n        {\n            results.addAll(objectToObjectArray(objects[ i ]));\n        }\n        return ( Object [] ) results.toArray(new Object[ results.size() ]);\n    }\n\n    private List objectToObjectArray(Object object)\n    {\n        List results = new ArrayList();\n\n        if (object instanceof byte [])\n        {\n            byte[] array = ( byte [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Byte(array[ j ]));\n            }\n        }\n        if (object instanceof char [])\n        {\n            char[] array = ( char [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Character(array[ j ]));\n            }\n        }\n        else if (object instanceof short [])\n        {\n            short[] array = ( short [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Short(array[ j ]));\n            }\n        }\n        else if (object instanceof int [])\n        {\n            int[] array = ( int [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Integer(array[ j ]));\n            }\n        }\n        else if (object instanceof long [])\n        {\n            long[] array = ( long [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Long(array[ j ]));\n            }\n        }\n        else if (object instanceof float [])\n        {\n            float[] array = ( float [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Float(array[ j ]));\n            }\n        }\n        else if (object instanceof double [])\n        {\n            double[] array = ( double [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Double(array[ j ]));\n            }\n        }\n        else if (object instanceof Object [])\n        {\n            Object[] array = ( Object [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(array[ j ]);\n            }\n        }\n        else\n        {\n            results.add(object);\n        }\n        return results;", "functions": [{"function_name": "log", "code": "    public void log(final int level, final Object obj1)\n    {\n        if(level==FATAL)\n        {\n          if(log.isFatalEnabled())\n          {\n            log.fatal(obj1);\n          }\n        }\n        else if(level==ERROR)\n        {\n          if(log.isErrorEnabled())\n          {\n            log.error(obj1);\n          }\n        }\n        else if(level==WARN)\n        {\n          if(log.isWarnEnabled())\n          {\n            log.warn(obj1);\n          }\n        }\n        else if(level==INFO)\n        {\n          if(log.isInfoEnabled())\n          {\n            log.info(obj1);\n          }\n        }\n        else if(level==DEBUG)\n        {\n          if(log.isDebugEnabled())\n          {\n            log.debug(obj1);\n          }\n        }\n        else\n        {\n          if(log.isTraceEnabled())\n          {\n            log.trace(obj1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "IF", "CALL", "IF", "BINARY_OP", "IF", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [6, 9], [6, 10], [4, 11], [8, 12], [9, 13], [9, 14], [6, 15], [11, 16], [13, 17], [9, 18], [15, 19], [8, 20], [13, 21], [13, 22], [18, 23], [11, 24], [21, 25], [22, 26], [15, 27], [18, 28], [21, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 6], [10, 6], [11, 4], [12, 8], [13, 9], [14, 9], [15, 6], [16, 11], [17, 13], [18, 9], [19, 15], [20, 8], [21, 13], [22, 13], [23, 18], [24, 11], [25, 21], [26, 22], [27, 15], [28, 18], [29, 21], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "check", "code": "    public boolean check(final Log log, final int level)\n    {\n        if(level==FATAL)\n        {\n          if(log.isFatalEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==ERROR)\n        {\n          if(log.isErrorEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==WARN)\n        {\n          if(log.isWarnEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==INFO)\n        {\n          if(log.isInfoEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==DEBUG)\n        {\n          if(log.isDebugEnabled())\n          {\n            return true;\n          }\n        }\n\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "IF", "CALL", "IF", "BINARY_OP", "IF", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [6, 9], [2, 10], [8, 11], [8, 12], [6, 13], [10, 14], [11, 15], [11, 16], [8, 17], [13, 18], [10, 19], [15, 20], [11, 21], [17, 22], [13, 23], [19, 24], [15, 25], [21, 26], [17, 27], [23, 28], [25, 29], [21, 30], [27, 31], [25, 32], [30, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 6], [10, 2], [11, 8], [12, 8], [13, 6], [14, 10], [15, 11], [16, 11], [17, 8], [18, 13], [19, 10], [20, 15], [21, 11], [22, 17], [23, 13], [24, 19], [25, 15], [26, 21], [27, 17], [28, 23], [29, 25], [30, 21], [31, 27], [32, 25], [33, 30], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2)\n    {\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(32).append(obj1).append(obj2));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [7, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [8, 7], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level,\n                    new StringBuffer(48).append(obj1).append(obj2)\n                        .append(obj3));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [7, 8], [8, 9], [8, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 7], [9, 8], [10, 8], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level,\n                    new StringBuffer(64).append(obj1).append(obj2)\n                        .append(obj3).append(obj4));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [8, 9], [9, 10], [9, 11], [9, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 8], [10, 9], [11, 9], [12, 9], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level,\n                    new StringBuffer(80).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [9, 10], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [10, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 9], [11, 10], [12, 10], [13, 10], [14, 10], [15, 10], [16, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level ,\n                    new StringBuffer(96).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [10, 11], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 10], [12, 11], [13, 11], [14, 11], [15, 11], [16, 11], [17, 11], [18, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level,\n                    new StringBuffer(112).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6)\n                        .append(obj7));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [11, 12], [12, 13], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 11], [13, 12], [14, 12], [15, 12], [16, 12], [17, 12], [18, 12], [19, 12], [20, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7, final Object obj8)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level,\n                    new StringBuffer(128).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6)\n                        .append(obj7).append(obj8));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [12, 13], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [13, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 12], [14, 13], [15, 13], [16, 13], [17, 13], [18, 13], [19, 13], [20, 13], [21, 13], [22, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1,\n                    final Throwable exception)\n    {\n        log(level , obj1, exception);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(32).append(obj1).append(obj2),\n                    exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [7, 8], [8, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 7], [9, 8], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(48).append(obj1).append(obj2)\n                .append(obj3), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [8, 9], [9, 10], [9, 11], [9, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 8], [10, 9], [11, 9], [12, 9], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4,\n                    final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(64).append(obj1).append(obj2)\n                .append(obj3).append(obj4), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [9, 10], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 9], [11, 10], [12, 10], [13, 10], [14, 10], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(80).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [10, 11], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 10], [12, 11], [13, 11], [14, 11], [15, 11], [16, 11], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level , new StringBuffer(96).append(obj1)\n                .append(obj2).append(obj3).append(obj4).append(obj5)\n                .append(obj6), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [11, 12], [12, 13], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 11], [13, 12], [14, 12], [15, 12], [16, 12], [17, 12], [18, 12], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7,\n                    final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(112).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5).append(obj6)\n                .append(obj7), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [12, 13], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 12], [14, 13], [15, 13], [16, 13], [17, 13], [18, 13], [19, 13], [20, 13], [21, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7, final Object obj8,\n                    final Throwable exception)\n    {\n        \n\n        if (check(log, level))\n        {\n            log(level, new StringBuffer(128).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5).append(obj6)\n                .append(obj7).append(obj8), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [13, 14], [14, 15], [14, 16], [14, 17], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [14, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 13], [15, 14], [16, 14], [17, 14], [18, 14], [19, 14], [20, 14], [21, 14], [22, 14], [23, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "logFormatted", "code": "    public void logFormatted(final int level, final String message,\n                             final Object obj1)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "logFormatted", "code": "    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "logFormatted", "code": "    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2,\n                             final Object obj3)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2, obj3", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "logFormatted", "code": "    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2,\n                             final Object obj3, final Object obj4)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2, obj3, obj4", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "commonLogFormatted", "code": "    private void commonLogFormatted(final int level, final String message,\n                                    final Object [] unflatParams)\n    {\n        \n\n        if (check(log, level))\n        {\n            Object[] params = flattenArrays(unflatParams);\n\n            if (params[ params.length - 1 ] instanceof Throwable)\n            {\n                log(level, StringUtil.format(message, params),\n                    ( Throwable ) params[ params.length - 1 ]);\n            }\n            else\n            {\n                log(level, StringUtil.format(message, params));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [7, 9], [6, 10], [6, 11], [10, 12], [11, 13], [8, 14], [14, 15], [11, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 7], [10, 6], [11, 6], [12, 10], [13, 11], [14, 8], [15, 14], [16, 11], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "flattenArrays", "code": "    private Object [] flattenArrays(final Object [] objects)\n    {\n        List results = new ArrayList();\n\n        for (int i = 0; i < objects.length; i++)\n        {\n            results.addAll(objectToObjectArray(objects[ i ]));\n        }\n        return ( Object [] ) results.toArray(new Object[ results.size() ]);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [3, 7], [2, 8], [2, 9], [6, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 3], [8, 2], [9, 2], [10, 6], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "objectToObjectArray", "code": "    private List objectToObjectArray(Object object)\n    {\n        List results = new ArrayList();\n\n        if (object instanceof byte [])\n        {\n            byte[] array = ( byte [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Byte(array[ j ]));\n            }\n        }\n        if (object instanceof char [])\n        {\n            char[] array = ( char [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Character(array[ j ]));\n            }\n        }\n        else if (object instanceof short [])\n        {\n            short[] array = ( short [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Short(array[ j ]));\n            }\n        }\n        else if (object instanceof int [])\n        {\n            int[] array = ( int [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Integer(array[ j ]));\n            }\n        }\n        else if (object instanceof long [])\n        {\n            long[] array = ( long [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Long(array[ j ]));\n            }\n        }\n        else if (object instanceof float [])\n        {\n            float[] array = ( float [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Float(array[ j ]));\n            }\n        }\n        else if (object instanceof double [])\n        {\n            double[] array = ( double [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Double(array[ j ]));\n            }\n        }\n        else if (object instanceof Object [])\n        {\n            Object[] array = ( Object [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(array[ j ]);\n            }\n        }\n        else\n        {\n            results.add(object);\n        }\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [6, 9], [6, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [9, 16], [9, 17], [6, 18], [6, 19], [11, 20], [13, 21], [16, 22], [16, 23], [9, 24], [9, 25], [18, 26], [22, 27], [22, 28], [16, 29], [16, 30], [24, 31], [11, 32], [11, 33], [13, 34], [13, 35], [27, 36], [27, 37], [22, 38], [22, 39], [29, 40], [18, 41], [18, 42], [32, 43], [34, 44], [36, 45], [27, 46], [27, 47], [38, 48], [24, 49], [24, 50], [41, 51], [36, 52], [36, 53], [46, 54], [29, 55], [29, 56], [49, 57], [36, 58], [52, 59], [38, 60], [38, 61], [55, 62], [46, 63], [46, 64], [60, 65], [52, 66], [52, 67], [63, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 6], [10, 6], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 9], [17, 9], [18, 6], [19, 6], [20, 11], [21, 13], [22, 16], [23, 16], [24, 9], [25, 9], [26, 18], [27, 22], [28, 22], [29, 16], [30, 16], [31, 24], [32, 11], [33, 11], [34, 13], [35, 13], [36, 27], [37, 27], [38, 22], [39, 22], [40, 29], [41, 18], [42, 18], [43, 32], [44, 34], [45, 36], [46, 27], [47, 27], [48, 38], [49, 24], [50, 24], [51, 41], [52, 36], [53, 36], [54, 46], [55, 29], [56, 29], [57, 49], [58, 36], [59, 52], [60, 38], [61, 38], [62, 55], [63, 46], [64, 46], [65, 60], [66, 52], [67, 52], [68, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "POILogger", "code": "    POILogger(final Log log)\n    {\n        this.log = log;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.2-2011", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/cxf/CxfSoapEndpoint.java", "language": "java", "name": "org.apache.camel.component.cxf.CxfSoapEndpoint", "code": "public class CxfSoapEndpoint implements Endpoint {\n\n    private final Endpoint endpoint;\n    private Resource wsdl;\n    private org.w3c.dom.Document description;\n    private Definition definition;\n    private QName service;\n    private Bus bus;\n\n    public CxfSoapEndpoint(Endpoint endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    protected Endpoint getInnerEndpoint() {\n        return endpoint;\n    }\n\n    public boolean isSingleton() {\n        return endpoint.isSingleton();\n    }\n\n    public String getEndpointUri() {\n        return endpoint.getEndpointUri();\n    }\n\n    public Exchange createExchange() {\n        return endpoint.createExchange();\n    }\n\n    public Exchange createExchange(ExchangePattern pattern) {\n        return endpoint.createExchange(pattern);\n    }\n\n    public Exchange createExchange(Exchange exchange) {\n        return endpoint.createExchange(exchange);\n    }\n\n    public CamelContext getContext() {\n        return endpoint.getContext();\n    }\n\n    public Producer createProducer() throws Exception {\n        return new CxfSoapProducer(this);\n    }\n\n    public Consumer createConsumer(Processor processor) throws Exception {\n        return new CxfSoapConsumer(this, processor);\n    }\n\n    public PollingConsumer createPollingConsumer() throws Exception {\n        throw new UnsupportedOperationException();\n    }\n\n    public void setWsdl(Resource wsdl) {\n        this.wsdl = wsdl;\n    }\n\n    public void init() throws Exception {\n        Assert.notNull(wsdl, \"soap.wsdl parameter must be set on the uri\");\n        description = DOMUtils.readXml(wsdl.getInputStream());\n        WSDLFactory wsdlFactory = WSDLFactory.newInstance();\n        WSDLReader reader = wsdlFactory.newWSDLReader();\n        reader.setFeature(\"javax.wsdl.verbose\", false);\n        definition = reader.readWSDL(wsdl.getURL().toString(), description);\n        service = (QName) definition.getServices().keySet().iterator().next();\n    }\n\n    protected Bus getBus() {\n        if (bus == null) {\n            bus = BusFactory.newInstance().createBus();\n        }\n        return bus;\n    }\n\n    public Definition getDefinition() {\n        return definition;\n    }\n\n    public QName getService() {\n        return service;", "functions": [{"function_name": "getInnerEndpoint", "code": "    protected Endpoint getInnerEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return endpoint.isSingleton();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndpointUri", "code": "    public String getEndpointUri() {\n        return endpoint.getEndpointUri();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExchange", "code": "    public Exchange createExchange() {\n        return endpoint.createExchange();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExchange", "code": "    public Exchange createExchange(ExchangePattern pattern) {\n        return endpoint.createExchange(pattern);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createExchange", "code": "    public Exchange createExchange(Exchange exchange) {\n        return endpoint.createExchange(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getContext", "code": "    public CamelContext getContext() {\n        return endpoint.getContext();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProducer", "code": "    public Producer createProducer() throws Exception {\n        return new CxfSoapProducer(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createConsumer", "code": "    public Consumer createConsumer(Processor processor) throws Exception {\n        return new CxfSoapConsumer(this, processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createPollingConsumer", "code": "    public PollingConsumer createPollingConsumer() throws Exception {\n        throw new UnsupportedOperationException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setWsdl", "code": "    public void setWsdl(Resource wsdl) {\n        this.wsdl = wsdl;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "init", "code": "    public void init() throws Exception {\n        Assert.notNull(wsdl, \"soap.wsdl parameter must be set on the uri\");\n        description = DOMUtils.readXml(wsdl.getInputStream());\n        WSDLFactory wsdlFactory = WSDLFactory.newInstance();\n        WSDLReader reader = wsdlFactory.newWSDLReader();\n        reader.setFeature(\"javax.wsdl.verbose\", false);\n        definition = reader.readWSDL(wsdl.getURL().toString(), description);\n        service = (QName) definition.getServices().keySet().iterator().next();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [5, 10], [1, 11], [2, 12], [6, 13], [7, 14], [3, 15], [8, 16], [13, 17], [15, 18], [15, 19], [15, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 5], [11, 1], [12, 2], [13, 6], [14, 7], [15, 3], [16, 8], [17, 13], [18, 15], [19, 15], [20, 15], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getBus", "code": "    protected Bus getBus() {\n        if (bus == null) {\n            bus = BusFactory.newInstance().createBus();\n        }\n        return bus;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDefinition", "code": "    public Definition getDefinition() {\n        return definition;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getService", "code": "    public QName getService() {\n        return service;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "CxfSoapEndpoint", "code": "    public CxfSoapEndpoint(Endpoint endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7876", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/utils/StringVector.java", "language": "java", "name": "org.apache.xml.utils.StringVector", "code": "public class StringVector implements java.io.Serializable\n{\n\n  /** @serial Size of blocks to allocate           */\n  protected int m_blocksize;\n\n  /** @serial Array of strings this contains          */\n  protected String m_map[];\n\n  /** @serial Number of strings this contains          */\n  protected int m_firstFree = 0;\n\n  /** @serial Size of the array          */\n  protected int m_mapSize;\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is very small, for small lists.\n   */\n  public StringVector()\n  {\n\n    m_blocksize = 8;\n    m_mapSize = m_blocksize;\n    m_map = new String[m_blocksize];\n  }\n\n  /**\n   * Construct a StringVector, using the given block size.\n   *\n   * @param blocksize Size of the blocks to allocate \n   */\n  public StringVector(int blocksize)\n  {\n\n    m_blocksize = blocksize;\n    m_mapSize = blocksize;\n    m_map = new String[blocksize];\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return Number of strings in the list \n   */\n  public int getLength()\n  {\n    return m_firstFree;\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return Number of strings in the list\n   */\n  public final int size()\n  {\n    return m_firstFree;\n  }\n\n  /**\n   * Append a string onto the vector.\n   *\n   * @param value Sting to add to the vector\n   */\n  public final void addElement(String value)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      String newMap[] = new String[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = value;\n\n    m_firstFree++;\n  }\n\n  /**\n   * Get the nth element.\n   *\n   * @param i Index of string to find\n   *\n   * @return String at given index\n   */\n  public final String elementAt(int i)\n  {\n    return m_map[i];\n  }\n\n  /**\n   * Tell if the table contains the given string.\n   *\n   * @param s String to look for\n   *\n   * @return True if the string is in this table  \n   */\n  public final boolean contains(String s)\n  {\n\n    if (null == s)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equals(s))\n        return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Tell if the table contains the given string. Ignore case.\n   *\n   * @param s String to find\n   *\n   * @return True if the String is in this vector\n   */\n  public final boolean containsIgnoreCase(String s)\n  {\n\n    if (null == s)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equalsIgnoreCase(s))\n        return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Tell if the table contains the given string.\n   *\n   * @param s String to push into the vector\n   */\n  public final void push(String s)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      String newMap[] = new String[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = s;\n\n    m_firstFree++;\n  }\n\n  /**\n   * Pop the tail of this vector.\n   *\n   * @return The String last added to this vector or null not found.\n   * The string is removed from the vector.\n   */\n  public final String pop()\n  {\n\n    if (m_firstFree <= 0)\n      return null;\n\n    m_firstFree--;\n\n    String s = m_map[m_firstFree];\n\n    m_map[m_firstFree] = null;\n\n    return s;\n  }\n\n  /**\n   * Get the string at the tail of this vector without popping.\n   *\n   * @return The string at the tail of this vector.\n   */\n  public final String peek()\n  {\n    return (m_firstFree <= 0) ? null : m_map[m_firstFree - 1];", "functions": [{"function_name": "getLength", "code": "  public int getLength()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "size", "code": "  public final int size()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addElement", "code": "  public final void addElement(String value)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      String newMap[] = new String[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = value;\n\n    m_firstFree++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [6, 10], [8, 11], [8, 12], [8, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 6], [11, 8], [12, 8], [13, 8], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "elementAt", "code": "  public final String elementAt(int i)\n  {\n    return m_map[i];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "contains", "code": "  public final boolean contains(String s)\n  {\n\n    if (null == s)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equals(s))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [2, 9], [7, 10], [8, 11], [9, 12], [2, 13], [12, 14], [9, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 2], [10, 7], [11, 8], [12, 9], [13, 2], [14, 12], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "containsIgnoreCase", "code": "  public final boolean containsIgnoreCase(String s)\n  {\n\n    if (null == s)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equalsIgnoreCase(s))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [2, 9], [7, 10], [8, 11], [9, 12], [2, 13], [12, 14], [9, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 2], [10, 7], [11, 8], [12, 9], [13, 2], [14, 12], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "push", "code": "  public final void push(String s)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      String newMap[] = new String[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = s;\n\n    m_firstFree++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [6, 10], [8, 11], [8, 12], [8, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 6], [11, 8], [12, 8], [13, 8], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "pop", "code": "  public final String pop()\n  {\n\n    if (m_firstFree <= 0)\n      return null;\n\n    m_firstFree--;\n\n    String s = m_map[m_firstFree];\n\n    m_map[m_firstFree] = null;\n\n    return s;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "peek", "code": "  public final String peek()\n  {\n    return (m_firstFree <= 0) ? null : m_map[m_firstFree - 1];", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "StringVector", "code": "  public StringVector()\n  {\n\n    m_blocksize = 8;\n    m_mapSize = m_blocksize;\n    m_map = new String[m_blocksize];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "StringVector", "code": "  public StringVector(int blocksize)\n  {\n\n    m_blocksize = blocksize;\n    m_mapSize = blocksize;\n    m_map = new String[blocksize];", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-3.2-3711", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "com/microstar/xml/XmlParser.java", "language": "java", "name": "com.microstar.xml.XmlParser", "code": "public class XmlParser {\n\n  //\n  // Use special cheats that speed up the code (currently about 50%),\n  // but may cause problems with future maintenance and add to the\n  // class file size (about 500 bytes).\n  //\n  private final static boolean USE_CHEATS = true;\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Constructors.\n  ////////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Construct a new parser with no associated handler.\n    * @see #setHandler\n    * @see #parse\n    */\n  public XmlParser ()\n  {\n  }\n\n\n  /**\n    * Set the handler that will receive parsing events.\n    * @param handler The handler to receive callback events.\n    * @see #parse\n    * @see XmlHandler\n    */\n  public void setHandler (XmlHandler handler)\n  {\n    this.handler = handler;\n  }\n\n\n  /**\n    * Parse an XML document from a URI.\n    * <p>You may parse a document more than once, but only one thread\n    * may call this method for an object at one time.\n    * @param systemId The URI of the document.\n    * @param publicId The public identifier of the document, or null.\n    * @param encoding The suggested encoding, or null if unknown.\n    * @exception java.lang.Exception Any exception thrown by your\n    *            own handlers, or any derivation of java.io.IOException\n    *            thrown by the parser itself.\n    */\n  public void parse (String systemId, String publicId, String encoding)\n    throws java.lang.Exception\n  {\n    doParse(systemId, publicId, null, null, encoding);\n  }\n\n\n  /**\n    * Parse an XML document from a byte stream.\n    * <p>The URI that you supply will become the base URI for\n    * resolving relative links, but &AElig;lfred will actually read\n    * the document from the supplied input stream.\n    * <p>You may parse a document more than once, but only one thread\n    * may call this method for an object at one time.\n    * @param systemId The base URI of the document, or null if not\n    *                 known.\n    * @param publicId The public identifier of the document, or null\n    *                 if not known.\n    * @param stream A byte input stream.\n    * @param encoding The suggested encoding, or null if unknown.\n    * @exception java.lang.Exception Any exception thrown by your\n    *            own handlers, or any derivation of java.io.IOException\n    *            thrown by the parser itself.\n    */\n  public void parse (String systemId, String publicId,\n\t\t     InputStream stream, String encoding)\n    throws java.lang.Exception\n  {\n    doParse(systemId, publicId, null, stream, encoding);\n  }\n\n\n  /**\n    * Parse an XML document from a character stream.\n    * <p>The URI that you supply will become the base URI for\n    * resolving relative links, but &AElig;lfred will actually read\n    * the document from the supplied input stream.\n    * <p>You may parse a document more than once, but only one thread\n    * may call this method for an object at one time.\n    * @param systemId The base URI of the document, or null if not\n    *                 known.\n    * @param publicId The public identifier of the document, or null\n    *                 if not known.\n    * @param reader A character stream.\n    * @exception java.lang.Exception Any exception thrown by your\n    *            own handlers, or any derivation of java.io.IOException\n    *            thrown by the parser itself.\n    */\n  public void parse (String systemId, String publicId, Reader reader)\n    throws java.lang.Exception\n  {\n    doParse(systemId, publicId, reader, null, null);\n  }\n\n\n  private synchronized void doParse (String systemId, String publicId,\n\t\t\t\t     Reader reader, InputStream stream,\n\t\t\t\t     String encoding)\n    throws java.lang.Exception\n  {\n    basePublicId = publicId;\n    baseURI = systemId;\n    baseReader = reader;\n    baseInputStream = stream;\n\n    initializeVariables();\n\n\t\t\t\t// Set the default entities here.\n    setInternalEntity(intern(\"amp\"), \"&#38;\");\n    setInternalEntity(intern(\"lt\"), \"&#60;\");\n    setInternalEntity(intern(\"gt\"), \"&#62;\");\n    setInternalEntity(intern(\"apos\"), \"&#39;\");\n    setInternalEntity(intern(\"quot\"), \"&#34;\");\n\n    if (handler != null) {\n      handler.startDocument();\n    }\n\n    pushURL(\"[document]\", basePublicId, baseURI, baseReader, baseInputStream,\n\t    encoding);\n\n    parseDocument();\n\n    if (handler != null) {\n      handler.endDocument();\n    }\n    cleanupVariables();\n  }\n\n\n\n\n  ////////////////////////////////////////////////////////////////////////\n  // Constants.\n  ////////////////////////////////////////////////////////////////////////\n\n  //\n  // Constants for element content type.\n  //\n\n  /**\n    * Constant: an element has not been declared.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_UNDECLARED = 0;\n\n  /**\n    * Constant: the element has a content model of ANY.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_ANY = 1;\n\n  /**\n    * Constant: the element has declared content of EMPTY.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_EMPTY = 2;\n\n  /**\n    * Constant: the element has mixed content.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_MIXED = 3;\n\n  /**\n    * Constant: the element has element content.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_ELEMENTS = 4;\n\n\n  //\n  // Constants for the entity type.\n  //\n\n  /**\n    * Constant: the entity has not been declared.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_UNDECLARED = 0;\n\n  /**\n    * Constant: the entity is internal.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_INTERNAL = 1;\n\n  /**\n    * Constant: the entity is external, non-XML data.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_NDATA = 2;\n\n  /**\n    * Constant: the entity is external XML data.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_TEXT = 3;\n\n\n  //\n  // Constants for attribute type.\n  //\n\n  /**\n    * Constant: the attribute has not been declared for this element type.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_UNDECLARED = 0;\n\n  /**\n    * Constant: the attribute value is a string value.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_CDATA = 1;\n\n  /**\n    * Constant: the attribute value is a unique identifier.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ID = 2;\n\n  /**\n    * Constant: the attribute value is a reference to a unique identifier.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_IDREF = 3;\n\n  /**\n    * Constant: the attribute value is a list of ID references.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_IDREFS = 4;\n\n  /**\n    * Constant: the attribute value is the name of an entity.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ENTITY = 5;\n\n  /**\n    * Constant: the attribute value is a list of entity names.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ENTITIES = 6;\n\n  /**\n    * Constant: the attribute value is a name token.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_NMTOKEN = 7;\n\n  /**\n    * Constant: the attribute value is a list of name tokens.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_NMTOKENS = 8;\n\n  /**\n    * Constant: the attribute value is a token from an enumeration.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ENUMERATED = 9;\n\n  /**\n    * Constant: the attribute is the name of a notation.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_NOTATION = 10;\n\n\n  //\n  // When the class is loaded, populate the hash table of\n  // attribute types.\n  //\n\n  /**\n    * Hash table of attribute types.\n    */\n  private static Hashtable attributeTypeHash;\n  static {\n    attributeTypeHash = new Hashtable();\n    attributeTypeHash.put(\"CDATA\", new Integer(ATTRIBUTE_CDATA));\n    attributeTypeHash.put(\"ID\", new Integer(ATTRIBUTE_ID));\n    attributeTypeHash.put(\"IDREF\", new Integer(ATTRIBUTE_IDREF));\n    attributeTypeHash.put(\"IDREFS\", new Integer(ATTRIBUTE_IDREFS));\n    attributeTypeHash.put(\"ENTITY\", new Integer(ATTRIBUTE_ENTITY));\n    attributeTypeHash.put(\"ENTITIES\", new Integer(ATTRIBUTE_ENTITIES));\n    attributeTypeHash.put(\"NMTOKEN\", new Integer(ATTRIBUTE_NMTOKEN));\n    attributeTypeHash.put(\"NMTOKENS\", new Integer(ATTRIBUTE_NMTOKENS));\n    attributeTypeHash.put(\"NOTATION\", new Integer(ATTRIBUTE_NOTATION));\n  }\n\n\n  //\n  // Constants for supported encodings.\n  //\n  private final static int ENCODING_UTF_8 = 1;\n  private final static int ENCODING_ISO_8859_1 = 2;\n  private final static int ENCODING_UCS_2_12 = 3;\n  private final static int ENCODING_UCS_2_21 = 4;\n  private final static int ENCODING_UCS_4_1234 = 5;\n  private final static int ENCODING_UCS_4_4321 = 6;\n  private final static int ENCODING_UCS_4_2143 = 7;\n  private final static int ENCODING_UCS_4_3412 = 8;\n\n\n  //\n  // Constants for attribute default value.\n  //\n\n  /**\n    * Constant: the attribute is not declared.\n    * @see #getAttributeDefaultValueType\n    */\n  public final static int ATTRIBUTE_DEFAULT_UNDECLARED = 0;\n\n  /**\n    * Constant: the attribute has a literal default value specified.\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    */\n  public final static int ATTRIBUTE_DEFAULT_SPECIFIED = 1;\n\n  /**\n    * Constant: the attribute was declared #IMPLIED.\n    * @see #getAttributeDefaultValueType\n    */\n  public final static int ATTRIBUTE_DEFAULT_IMPLIED = 2;\n\n  /**\n    * Constant: the attribute was declared #REQUIRED.\n    * @see #getAttributeDefaultValueType\n    */\n  public final static int ATTRIBUTE_DEFAULT_REQUIRED = 3;\n\n  /**\n    * Constant: the attribute was declared #FIXED.\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    */\n  public final static int ATTRIBUTE_DEFAULT_FIXED = 4;\n\n\n  //\n  // Constants for input.\n  //\n  private final static int INPUT_NONE = 0;\n  private final static int INPUT_INTERNAL = 1;\n  private final static int INPUT_EXTERNAL = 2;\n  private final static int INPUT_STREAM = 3;\n  private final static int INPUT_BUFFER = 4;\n  private final static int INPUT_READER = 5;\n\n\n  //\n  // Flags for reading literals.\n  //\n  private final static int LIT_CHAR_REF = 1;\n  private final static int LIT_ENTITY_REF = 2;\n  private final static int LIT_PE_REF = 4;\n  private final static int LIT_NORMALIZE = 8;\n\n\n  //\n  // Flags for parsing context.\n  //\n  private final static int CONTEXT_NONE = 0;\n  private final static int CONTEXT_DTD = 1;\n  private final static int CONTEXT_ENTITYVALUE = 2;\n  private final static int CONTEXT_ATTRIBUTEVALUE = 3;\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Error reporting.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Report an error.\n    * @param message The error message.\n    * @param textFound The text that caused the error (or null).\n    * @see XmlHandler#error\n    * @see #line\n    */\n  void error (String message, String textFound, String textExpected)\n    throws java.lang.Exception\n  {\n    errorCount++;\n    if (textFound != null) {\n      message = message + \" (found \\\"\" + textFound + \"\\\")\";\n    }\n    if (textExpected != null) {\n      message = message + \" (expected \\\"\" + textExpected + \"\\\")\";\n    }\n    if (handler != null) {\n      String uri = null;\n\n      if (externalEntity != null) {\n\turi = externalEntity.getURL().toString();\n      }\n      handler.error(message, uri, line, column);\n    }\n  }\n\n\n  /**\n    * Report a serious error.\n    * @param message The error message.\n    * @param textFound The text that caused the error (or null).\n    */\n  void error (String message, char textFound, String textExpected)\n    throws java.lang.Exception\n  {\n    error(message, new Character(textFound).toString(), textExpected);\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Major syntactic productions.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Parse an XML document.\n    * <pre>\n    * [1] document ::= prolog element Misc*\n    * </pre>\n    * <p>This is the top-level parsing function for a single XML\n    * document.  As a minimum, a well-formed document must have\n    * a document element, and a valid document must have a prolog\n    * as well.\n    */\n  void parseDocument ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    parseProlog();\n    require('<');\n    parseElement();\n    try\n      {\n      parseMisc();  //skip all white, PIs, and comments\n      c=readCh();   //if this doesn't throw an exception...\n      error(\"unexpected characters after document end\",c,null);\n      }\n    catch (EOFException e)\n      {return;}\n    }\n\n\n  /**\n    * Skip a comment.\n    * <pre>\n    * [18] Comment ::= '&lt;!--' ((Char - '-') | ('-' (Char - '-')))* \"-->\"\n    * </pre>\n    * <p>(The <code>&lt;!--</code> has already been read.)\n    */\n  void parseComment ()\n    throws java.lang.Exception\n  {\n    skipUntil(\"-->\");\n  }\n\n\n  /**\n    * Parse a processing instruction and do a call-back.\n    * <pre>\n    * [19] PI ::= '&lt;?' Name (S (Char* - (Char* '?&gt;' Char*)))? '?&gt;'\n    * </pre>\n    * <p>(The <code>&lt;?</code> has already been read.)\n    * <p>An XML processing instruction <em>must</em> begin with\n    * a Name, which is the instruction's target.\n    */\n  void parsePI ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    if (!tryRead(\"?>\")) {\n      requireWhitespace();\n      parseUntil(\"?>\");\n    }\n    if (handler != null) {\n      handler.processingInstruction(name, dataBufferToString());\n    }\n  }\n\n\n  /**\n    * Parse a CDATA marked section.\n    * <pre>\n    * [20] CDSect ::= CDStart CData CDEnd\n    * [21] CDStart ::= '&lt;![CDATA['\n    * [22] CData ::= (Char* - (Char* ']]&gt;' Char*))\n    * [23] CDEnd ::= ']]&gt;'\n    * </pre>\n    * <p>(The '&lt;![CDATA[' has already been read.)\n    * <p>Note that this just appends characters to the dataBuffer,\n    * without actually generating an event.\n    */\n  void parseCDSect ()\n    throws java.lang.Exception\n  {\n    parseUntil(\"]]>\");\n  }\n\n\n  /**\n    * Parse the prolog of an XML document.\n    * <pre>\n    * [24] prolog ::= XMLDecl? Misc* (Doctypedecl Misc*)?\n    * </pre>\n    * <p>There are a couple of tricks here.  First, it is necessary to\n    * declare the XML default attributes after the DTD (if present)\n    * has been read.  Second, it is not possible to expand general\n    * references in attribute value literals until after the entire\n    * DTD (if present) has been parsed.\n    * <p>We do not look for the XML declaration here, because it is\n    * handled by pushURL().\n    * @see pushURL\n    */\n  void parseProlog ()\n    throws java.lang.Exception\n  {\n    parseMisc();\n\n    if (tryRead(\"<!DOCTYPE\")) {\n      parseDoctypedecl();\n      parseMisc();\n    }\n  }\n\n\n  /**\n    * Parse the XML declaration.\n    * <pre>\n    * [25] XMLDecl ::= '&lt;?xml' VersionInfo EncodingDecl? SDDecl? S? '?&gt;'\n    * [26] VersionInfo ::= S 'version' Eq ('\"1.0\"' | \"'1.0'\")\n    * [33] SDDecl ::= S 'standalone' Eq \"'\" ('yes' | 'no') \"'\"\n    *               | S 'standalone' Eq '\"' (\"yes\" | \"no\") '\"'\n    * [78] EncodingDecl ::= S 'encoding' Eq QEncoding\n    * </pre>\n    * <p>([80] to [82] are also significant.)\n    * <p>(The <code>&lt;?xml</code> and whitespace have already been read.)\n    * <p>TODO: validate value of standalone.\n    * @see #parseTextDecl\n    * @see #checkEncoding\n    */\n  void parseXMLDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String version;\n    String encodingName = null;\n    String standalone = null;\n\n\t\t\t\t// Read the version.\n    require(\"version\");\n    parseEq();\n    version = readLiteral(0);\n    if (!version.equals(\"1.0\")) {\n      error(\"unsupported XML version\", version, \"1.0\");\n    }\n\n\t\t\t\t// Try reading an encoding declaration.\n    skipWhitespace();\n    if (tryRead(\"encoding\")) {\n      parseEq();\n      encodingName = readLiteral(0);\n      checkEncoding(encodingName, ignoreEncoding);\n    }\n\n\t\t\t\t// Try reading a standalone declaration\n    skipWhitespace();\n    if (tryRead(\"standalone\")) {\n      parseEq();\n      standalone = readLiteral(0);\n    }\n\n    skipWhitespace();\n    require(\"?>\");\n  }\n\n\n  /**\n    * Parse the Encoding PI.\n    * <pre>\n    * [78] EncodingDecl ::= S 'encoding' Eq QEncoding\n    * [79] EncodingPI ::= '&lt;?xml' S 'encoding' Eq QEncoding S? '?&gt;'\n    * [80] QEncoding ::= '\"' Encoding '\"' | \"'\" Encoding \"'\"\n    * [81] Encoding ::= LatinName\n    * [82] LatinName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*\n    * </pre>\n    * <p>(The <code>&lt;?xml</code>' and whitespace have already been read.)\n    * @see #parseXMLDecl\n    * @see #checkEncoding\n    */\n  void parseTextDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String encodingName = null;\n    \n\t\t\t\t// Read an optional version.\n    if (tryRead(\"version\")) {\n      String version;\n      parseEq();\n      version = readLiteral(0);\n      if (!version.equals(\"1.0\")) {\n\terror(\"unsupported XML version\", version, \"1.0\");\n      }\n      requireWhitespace();\n    }\n      \n\n\t\t\t\t// Read the encoding.\n    require(\"encoding\");\n    parseEq();\n    encodingName = readLiteral(0);\n    checkEncoding(encodingName, ignoreEncoding);\n\n    skipWhitespace();\n    require(\"?>\");\n  }\n\n\n  /**\n    * Check that the encoding specified makes sense.\n    * <p>Compare what the author has specified in the XML declaration\n    * or encoding PI with what we have detected.\n    * <p>This is also important for distinguishing among the various\n    * 7- and 8-bit encodings, such as ISO-LATIN-1 (I cannot autodetect\n    * those).\n    * @param encodingName The name of the encoding specified by the user.\n    * @see #parseXMLDecl\n    * @see #parseTextDecl\n    */\n  void checkEncoding (String encodingName, boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    encodingName = encodingName.toUpperCase();\n\n    if (ignoreEncoding) {\n      return;\n    }\n\n    switch (encoding) {\n\t\t\t\t// 8-bit encodings\n    case ENCODING_UTF_8:\n      if (encodingName.equals(\"ISO-8859-1\")) {\n\tencoding = ENCODING_ISO_8859_1;\n      } else if (!encodingName.equals(\"UTF-8\")) {\n\terror(\"unsupported 8-bit encoding\",\n\t      encodingName,\n\t      \"UTF-8 or ISO-8859-1\");\n      }\n      break;\n\t\t\t\t// 16-bit encodings\n    case ENCODING_UCS_2_12:\n    case ENCODING_UCS_2_21:\n      if (!encodingName.equals(\"ISO-10646-UCS-2\") &&\n\t  !encodingName.equals(\"UTF-16\")) {\n\terror(\"unsupported 16-bit encoding\",\n\t      encodingName,\n\t      \"ISO-10646-UCS-2\");\n      }\n      break;\n\t\t\t\t// 32-bit encodings\n    case ENCODING_UCS_4_1234:\n    case ENCODING_UCS_4_4321:\n    case ENCODING_UCS_4_2143:\n    case ENCODING_UCS_4_3412:\n      if (!encodingName.equals(\"ISO-10646-UCS-4\")) {\n\terror(\"unsupported 32-bit encoding\",\n\t      encodingName,\n\t      \"ISO-10646-UCS-4\");\n      }\n    }\n  }\n\n\n  /**\n    * Parse miscellaneous markup outside the document element and DOCTYPE\n    * declaration.\n    * <pre>\n    * [27] Misc ::= Comment | PI | S\n    * </pre>\n    */\n  void parseMisc ()\n    throws java.lang.Exception\n    {\n    while (true)\n      {\n      skipWhitespace();\n      if (tryRead(\"<?\"))\n        {parsePI();}\n      else if (tryRead(\"<!--\"))\n        {parseComment();}\n      else\n        {return;}\n      }\n    }\n\n\n  /**\n    * Parse a document type declaration.\n    * <pre>\n    * [28] doctypedecl ::= '&lt;!DOCTYPE' S Name (S ExternalID)? S?\n    *                      ('[' %markupdecl* ']' S?)? '&gt;'\n    * </pre>\n    * <p>(The <code>&lt;!DOCTYPE</code> has already been read.)\n    */\n  void parseDoctypedecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    String doctypeName, ids[];\n\n\t\t\t\t// Read the document type name.\n    requireWhitespace();\n    doctypeName = readNmtoken(true);\n\n\t\t\t\t// Read the ExternalIDs.\n    skipWhitespace();\n    ids = readExternalIds(false);\n\n\t\t\t\t// Look for a declaration subset.\n    skipWhitespace();\n    if (tryRead('[')) {\n\n\t\t\t\t// loop until the subset ends\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead(']')) {\n\t  break;\t\t// end of subset\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    }\n\n\t\t\t\t// Read the external subset, if any\n    if (ids[1] != null) {\n      pushURL(\"[external subset]\", ids[0], ids[1], null, null, null);\n\n\t\t\t\t// Loop until we end up back at '>'\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead('>')) {\n\t  break;\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    } else {\n\t\t\t\t// No external subset.\n      skipWhitespace();\n      require('>');\n    }\n\n    if (handler != null) {\n      handler.doctypeDecl(doctypeName, ids[0], ids[1]);\n    }\n\n\t\t\t\t// Expand general entities in\n\t\t\t\t// default values of attributes.\n\t\t\t\t// (Do this after the doctypeDecl\n\t\t\t\t// event!).\n    // expandAttributeDefaultValues();\n  }\n\n\n  /**\n    * Parse a markup declaration in the internal or external DTD subset.\n    * <pre>\n    * [29] markupdecl ::= ( %elementdecl | %AttlistDecl | %EntityDecl |\n    *                       %NotationDecl | %PI | %S | %Comment |\n    *                       InternalPERef )\n    * [30] InternalPERef ::= PEReference\n    * [31] extSubset ::= (%markupdecl | %conditionalSect)*\n    * </pre>\n    */\n  void parseMarkupdecl ()\n    throws java.lang.Exception\n  {\n    if (tryRead(\"<!ELEMENT\")) {\n      parseElementdecl();\n    } else if (tryRead(\"<!ATTLIST\")) {\n      parseAttlistDecl();\n    } else if (tryRead(\"<!ENTITY\")) {\n      parseEntityDecl();\n    } else if (tryRead(\"<!NOTATION\")) {\n      parseNotationDecl();\n    } else if (tryRead(\"<?\")) {\n      parsePI();\n    } else if (tryRead(\"<!--\")) {\n      parseComment();\n    } else if (tryRead(\"<![\")) {\n      parseConditionalSect();\n    } else {\n      error(\"expected markup declaration\", null, null);\n    }\n  }\n\n\n  /**\n    * Parse an element, with its tags.\n    * <pre>\n    * [33] STag ::= '&lt;' Name (S Attribute)* S? '&gt;' [WFC: unique Att spec]\n    * [38] element ::= EmptyElement | STag content ETag\n    * [39] EmptyElement ::= '&lt;' Name (S Attribute)* S? '/&gt;'\n    *                       [WFC: unique Att spec]\n    * </pre>\n    * <p>(The '&lt;' has already been read.)\n    * <p>NOTE: this method actually chains onto parseContent(), if necessary,\n    * and parseContent() will take care of calling parseETag().\n    */\n  void parseElement ()\n    throws java.lang.Exception\n  {\n    String gi;\n    char c;\n    int oldElementContent = currentElementContent;\n    String oldElement = currentElement;\n\n\t\t\t\t// This is the (global) counter for the\n\t\t\t\t// array of specified attributes.\n    tagAttributePos = 0;\n\n\t\t\t\t// Read the element type name.\n    gi = readNmtoken(true);\n\n\t\t\t\t// Determine the current content type.\n    currentElement = gi;\n    currentElementContent = getElementContentType(gi);\n    if (currentElementContent == CONTENT_UNDECLARED) {\n      currentElementContent = CONTENT_ANY;\n    }\n\n\t\t\t\t// Read the attributes, if any.\n\t\t\t\t// After this loop, we should be just\n\t\t\t\t// in front of the closing delimiter.\n    skipWhitespace();\n    c = readCh();\n    while (c != '/' && c != '>') {\n      unread(c);\n      parseAttribute(gi);\n      skipWhitespace();\n      c = readCh();\n    }\n    unread(c);\n\n\t\t\t\t// Supply any defaulted attributes.\n    Enumeration atts = declaredAttributes(gi);\n    if (atts != null) {\n      String aname;\n    loop: while (atts.hasMoreElements()) {\n      aname = (String)atts.nextElement();\n\t\t\t\t// See if it was specified.\n      for (int i = 0; i < tagAttributePos; i++) {\n\tif (tagAttributes[i] == aname) {\n\t  continue loop;\n\t}\n      }\n\t\t\t\t// I guess not...\n      if (handler != null) {\n\thandler.attribute(aname,\n\t\t\t  getAttributeExpandedValue(gi, aname),\n\t\t\t  false);\n      }\n    }\n    }\n\n\t\t\t\t// Figure out if this is a start tag\n\t\t\t\t// or an empty element, and dispatch an\n\t\t\t\t// event accordingly.\n    c = readCh();\n    switch (c) {\n    case '>':\n      if (handler != null) {\n\thandler.startElement(gi);\n      }\n      parseContent();\n      break;\n    case '/':\n      require('>');\n      if (handler != null) {\n\thandler.startElement(gi);\n\thandler.endElement(gi);\n      }\n      break;\n    }\n\n\t\t\t\t// Restore the previous state.\n    currentElement = oldElement;\n    currentElementContent = oldElementContent;\n  }\n\n\n  /**\n    * Parse an attribute assignment.\n    * <pre>\n    * [34] Attribute ::= Name Eq AttValue\n    * </pre>\n    * @param name The name of the attribute's element.\n    * @see XmlHandler#attribute\n    */\n  void parseAttribute (String name)\n    throws java.lang.Exception\n  {\n    String aname;\n    int type;\n    String value;\n\n\t\t\t\t// Read the attribute name.\n    aname = readNmtoken(true).intern();\n    type = getAttributeDefaultValueType(name, aname);\n\n\t\t\t\t// Parse '='\n    parseEq();\n\n\t\t\t\t// Read the value, normalizing whitespace\n\t\t\t\t// if it is not CDATA.\n    if (type == ATTRIBUTE_CDATA || type == ATTRIBUTE_UNDECLARED) {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF);\n    } else {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF | LIT_NORMALIZE);\n    }\n\n\t\t\t\t// Inform the handler about the\n\t\t\t\t// attribute.\n    if (handler != null) {\n      handler.attribute(aname, value, true);\n    }\n    dataBufferPos = 0;\n\n\t\t\t\t// Note that the attribute has been\n\t\t\t\t// specified.\n    if (tagAttributePos == tagAttributes.length) {\n      String newAttrib[] = new String[tagAttributes.length * 2];\n      System.arraycopy(tagAttributes, 0, newAttrib, 0, tagAttributePos);\n      tagAttributes = newAttrib;\n    }\n    tagAttributes[tagAttributePos++] = aname;\n  }\n\n\n  /**\n    * Parse an equals sign surrounded by optional whitespace.\n    * [35] Eq ::= S? '=' S?\n    */\n  void parseEq ()\n    throws java.lang.Exception\n  {\n    skipWhitespace();\n    require('=');\n    skipWhitespace();\n  }\n\n\n  /**\n    * Parse an end tag.\n    * [36] ETag ::= '</' Name S? '>'\n    * *NOTE: parseContent() chains to here.\n    */\n  void parseETag ()\n    throws java.lang.Exception\n  {\n    String name;\n    name = readNmtoken(true);\n    if (name != currentElement) {\n      error(\"mismatched end tag\", name, currentElement);\n    }\n    skipWhitespace();\n    require('>');\n    if (handler != null) {\n      handler.endElement(name);\n    }\n  }\n\n\n  /**\n    * Parse the content of an element.\n    * [37] content ::= (element | PCData | Reference | CDSect | PI | Comment)*\n    * [68] Reference ::= EntityRef | CharRef\n    */\n  void parseContent ()\n    throws java.lang.Exception\n  {\n    String data;\n    char c;\n\n    while (true) {\n\n      switch (currentElementContent) {\n      case CONTENT_ANY:\n      case CONTENT_MIXED:\n\tparsePCData();\n\tbreak;\n      case CONTENT_ELEMENTS:\n\tparseWhitespace();\n\tbreak;\n      }\n\n\t\t\t\t// Handle delimiters\n      c = readCh();\n      switch (c) {\n\n      case '&':\t\t\t// Found \"&\"\n\tc = readCh();\n\tif (c == '#') {\n\t  parseCharRef();\n\t} else {\n\t  unread(c);\n\t  parseEntityRef(true);\n\t}\n\tbreak;\n\n      case '<':\t\t\t// Found \"<\"\n\n\tc = readCh();\n\tswitch (c) {\n\n\tcase '!':\t\t// Found \"<!\"\n\t  c = readCh();\n\t  switch (c) {\n\t  case '-':\t\t// Found \"<!-\"\n\t    require('-');\n\t    parseComment();\n\t    break;\n\t  case '[':\t\t// Found \"<![\"\n\t    require(\"CDATA[\");\n\t    parseCDSect();\n\t    break;\n\t  default:\n\t    error(\"expected comment or CDATA section\", c, null);\n\t    break;\n\t  }\n\t  break;\n\n\tcase '?':\t\t// Found \"<?\"\n\t  dataBufferFlush();\n\t  parsePI();\n\t  break;\n\n\tcase '/':\t\t// Found \"</\"\n\t  dataBufferFlush();\n\t  parseETag();\n\t  return;\n\n\tdefault:\t\t// Found \"<\" followed by something else\n\t  dataBufferFlush();\n\t  unread(c);\n\t  parseElement();\n\t  break;\n\t}\n      }\n    }\n  }\n\n\n  /**\n    * Parse an element type declaration.\n    * [40] elementdecl ::= '<!ELEMENT' S %Name S (%S S)? %contentspec S? '>'\n    *                      [VC: Unique Element Declaration]\n    * *NOTE: the '<!ELEMENT' has already been read.\n    */\n  void parseElementdecl ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    requireWhitespace();\n\t\t\t\t// Read the element type name.\n    name = readNmtoken(true);\n\n    requireWhitespace();\n\t\t\t\t// Read the content model.\n    parseContentspec(name);\n\n    skipWhitespace();\n    require('>');\n  }\n\n\n  /**\n    * Content specification.\n    * [41] contentspec ::= 'EMPTY' | 'ANY' | Mixed | elements\n    */\n  void parseContentspec (String name)\n    throws java.lang.Exception\n  {\n    if (tryRead(\"EMPTY\")) {\n      setElement(name, CONTENT_EMPTY, null, null);\n      return;\n    } else if (tryRead(\"ANY\")) {\n      setElement(name, CONTENT_ANY, null, null);\n      return;\n    } else {\n      require('(');\n      dataBufferAppend('(');\n      skipWhitespace();\n      if (tryRead(\"#PCDATA\")) {\n\tdataBufferAppend(\"#PCDATA\");\n\tparseMixed();\n\tsetElement(name, CONTENT_MIXED, dataBufferToString(), null);\n      } else {\n\tparseElements();\n\tsetElement(name, CONTENT_ELEMENTS, dataBufferToString(), null);\n      }\n    }\n  }\n\n\n  /**\n    * Parse an element-content model.\n    * [42] elements ::= (choice | seq) ('?' | '*' | '+')?\n    * [44] cps ::= S? %cp S?\n    * [45] choice ::= '(' S? %ctokplus (S? '|' S? %ctoks)* S? ')'\n    * [46] ctokplus ::= cps ('|' cps)+\n    * [47] ctoks ::= cps ('|' cps)*\n    * [48] seq ::= '(' S? %stoks (S? ',' S? %stoks)* S? ')'\n    * [49] stoks ::= cps (',' cps)*\n    * *NOTE: the opening '(' and S have already been read.\n    * *TODO: go over parameter entity boundaries more carefully.\n    */\n  void parseElements ()\n    throws java.lang.Exception\n  {\n    char c;\n    char sep;\n\n\t\t\t\t// Parse the first content particle\n    skipWhitespace();\n    parseCp();\n\n\t\t\t\t// Check for end or for a separator.\n    skipWhitespace();\n    c = readCh();\n    switch (c) {\n    case ')':\n      dataBufferAppend(')');\n      c = readCh();\n      switch (c) {\n      case '*':\n      case '+':\n      case '?':\n\tdataBufferAppend(c);\n\tbreak;\n      default:\n\tunread(c);\n      }\n      return;\n    case ',':\t\t\t// Register the separator.\n    case '|':\n      sep = c;\n      dataBufferAppend(c);\n      break;\n    default:\n      error(\"bad separator in content model\", c, null);\n      return;\n    }\n\n\t\t\t\t// Parse the rest of the content model.\n    while (true) {\n      skipWhitespace();\n      parseCp();\n      skipWhitespace();\n      c = readCh();\n      if (c == ')') {\n\tdataBufferAppend(')');\n\tbreak;\n      } else if (c != sep) {\n\terror(\"bad separator in content model\", c, null);\n\treturn;\n      } else {\n\tdataBufferAppend(c);\n      }\n    }\n\n\t\t\t\t// Check for the occurrence indicator.\n    c = readCh();\n    switch (c) {\n    case '?':\n    case '*':\n    case '+':\n      dataBufferAppend(c);\n      return;\n    default:\n      unread(c);\n      return;\n    }\n  }\n\n\n  /**\n    * Parse a content particle.\n    * [43] cp ::= (Name | choice | seq) ('?' | '*' | '+')\n    * *NOTE: I actually use a slightly different production here:\n    *        cp ::= (elements | (Name ('?' | '*' | '+')?))\n    */\n  void parseCp ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (tryRead('(')) {\n      dataBufferAppend('(');\n      parseElements();\n    } else {\n      dataBufferAppend(readNmtoken(true));\n      c = readCh();\n      switch (c) {\n      case '?':\n      case '*':\n      case '+':\n\tdataBufferAppend(c);\n\tbreak;\n      default:\n\tunread(c);\n\tbreak;\n      }\n    }\n  }\n\n\n  /**\n    * Parse mixed content.\n    * [50] Mixed ::= '(' S? %( %'#PCDATA' (S? '|' S? %Mtoks)* ) S? ')*'\n    *              | '(' S? %('#PCDATA') S? ')'\n    * [51] Mtoks ::= %Name (S? '|' S? %Name)*\n    * *NOTE: the S and '#PCDATA' have already been read.\n    */\n  void parseMixed ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Check for PCDATA alone.\n    skipWhitespace();\n    if (tryRead(')')) {\n      dataBufferAppend(\")*\");\n      tryRead('*');\n      return;\n    }\n\n\t\t\t\t// Parse mixed content.\n    skipWhitespace();\n    while (!tryRead(\")*\")) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();\n      dataBufferAppend(readNmtoken(true));\n      skipWhitespace();\n    }\n    dataBufferAppend(\")*\");\n  }\n\n\n  /**\n    * Parse an attribute list declaration.\n    * [52] AttlistDecl ::= '<!ATTLIST' S %Name S? %AttDef+ S? '>'\n    * *NOTE: the '<!ATTLIST' has already been read.\n    */\n  void parseAttlistDecl ()\n    throws java.lang.Exception\n  {\n    String elementName;\n\n    requireWhitespace();\n    elementName = readNmtoken(true);\n    requireWhitespace();\n    while (!tryRead('>')) {\n      parseAttDef(elementName);\n      skipWhitespace();\n    }\n  }\n\n\n  /**\n    * Parse a single attribute definition.\n    * [53] AttDef ::= S %Name S %AttType S %Default\n    */\n  void parseAttDef (String elementName)\n    throws java.lang.Exception\n  {\n    String name;\n    int type;\n    String enum1 = null;\n\n\t\t\t\t// Read the attribute name.\n    name = readNmtoken(true);\n\n\t\t\t\t// Read the attribute type.\n    requireWhitespace();\n    type = readAttType();\n\n\t\t\t\t// Get the string of enumerated values\n\t\t\t\t// if necessary.\n    if (type == ATTRIBUTE_ENUMERATED || type == ATTRIBUTE_NOTATION) {\n      enum1 = dataBufferToString();\n    }\n\n\t\t\t\t// Read the default value.\n    requireWhitespace();\n    parseDefault(elementName, name, type, enum1);\n  }\n\n\n  /**\n    * Parse the attribute type.\n    * [54] AttType ::= StringType | TokenizedType | EnumeratedType\n    * [55] StringType ::= 'CDATA'\n    * [56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' |\n    *                        'NMTOKEN' | 'NMTOKENS'\n    * [57] EnumeratedType ::= NotationType | Enumeration\n    * *TODO: validate the type!!\n    */\n  int readAttType ()\n    throws java.lang.Exception\n  {\n    String typeString;\n    Integer type;\n\n    if (tryRead('(')) {\n      parseEnumeration();\n      return ATTRIBUTE_ENUMERATED;\n    } else {\n      typeString = readNmtoken(true);\n      if (typeString.equals(\"NOTATION\")) {\n\tparseNotationType();\n      }\n      type = (Integer)attributeTypeHash.get(typeString);\n      if (type == null) {\n\terror(\"illegal attribute type\", typeString, null);\n\treturn ATTRIBUTE_UNDECLARED;\n      } else {\n\treturn type.intValue();\n      }\n    }\n  }\n\n\n  /**\n    * Parse an enumeration.\n    * [60] Enumeration ::= '(' S? %Etoks (S? '|' S? %Etoks)* S? ')'\n    * [61] Etoks ::= %Nmtoken (S? '|' S? %Nmtoken)*\n    * *NOTE: the '(' has already been read.\n    */\n  void parseEnumeration ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    dataBufferAppend('(');\n\n\t\t\t\t// Read the first token.\n    skipWhitespace();\n    dataBufferAppend(readNmtoken(true));\n\t\t\t\t// Read the remaining tokens.\n    skipWhitespace();\n    while (!tryRead(')')) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();\n      dataBufferAppend(readNmtoken(true));\n      skipWhitespace();\n    }\n    dataBufferAppend(')');\n  }\n\n\n  /**\n    * Parse a notation type for an attribute.\n    * [58] NotationType ::= %'NOTATION' S '(' S? %Ntoks (S? '|' S? %Ntoks)*\n    *                       S? ')'\n    * [59] Ntoks ::= %Name (S? '|' S? %Name)\n    * *NOTE: the 'NOTATION' has already been read\n    */\n  void parseNotationType ()\n    throws java.lang.Exception\n  {\n    requireWhitespace();\n    require('(');\n\n    parseEnumeration();\n  }\n\n\n  /**\n    * Parse the default value for an attribute.\n    * [62] Default ::= '#REQUIRED' | '#IMPLIED' | ((%'#FIXED' S)? %AttValue\n    */\n  void parseDefault (String elementName, String name, int type, String enum1)\n    throws java.lang.Exception\n  {\n    int valueType = ATTRIBUTE_DEFAULT_SPECIFIED;\n    String value = null;\n    boolean normalizeWSFlag;\n\n    if (tryRead('#')) {\n      if (tryRead(\"FIXED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_FIXED;\n\trequireWhitespace();\n\tcontext = CONTEXT_ATTRIBUTEVALUE;\n\tvalue = readLiteral(LIT_CHAR_REF);\n\tcontext = CONTEXT_DTD;\n      } else if (tryRead(\"REQUIRED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_REQUIRED;\n      } else if (tryRead(\"IMPLIED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_IMPLIED;\n      } else {\n\terror(\"illegal keyword for attribute default value\", null, null);\n      }\n    } else {\n      context = CONTEXT_ATTRIBUTEVALUE;\n      value = readLiteral(LIT_CHAR_REF);\n      context = CONTEXT_DTD;\n    }\n    setAttribute(elementName, name, type, enum1, value, valueType);\n  }\n\n\n  /**\n    * Parse a conditional section.\n    * [63] conditionalSect ::= includeSect || ignoreSect\n    * [64] includeSect ::= '<![' %'INCLUDE' '[' (%markupdecl*)* ']]>'\n    * [65] ignoreSect ::= '<![' %'IGNORE' '[' ignoreSectContents* ']]>'\n    * [66] ignoreSectContents ::= ((SkipLit | Comment | PI) -(Char* ']]>'))\n    *                           | ('<![' ignoreSectContents* ']]>')\n    *                           | (Char - (']' | [<'\"]))\n    *                           | ('<!' (Char - ('-' | '[')))\n    * *NOTE: the '<![' has already been read.\n    * *TODO: verify that I am handling ignoreSectContents right.\n    */\n  void parseConditionalSect ()\n    throws java.lang.Exception\n  {\n    skipWhitespace();\n    if (tryRead(\"INCLUDE\")) {\n      skipWhitespace();\n      require('[');\n      skipWhitespace();\n      while (!tryRead(\"]]>\")) {\n\tparseMarkupdecl();\n\tskipWhitespace();\n      }\n    } else if (tryRead(\"IGNORE\")) {\n      skipWhitespace();\n      require('[');\n      int nesting = 1;\n      char c;\n      for (int nest = 1; nest > 0; ) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '<':\n\t  if (tryRead(\"![\")) {\n\t    nest++;\n\t  }\n\tcase ']':\n\t  if (tryRead(\"]>\")) {\n\t    nest--;\n\t  }\n\t}\n      }\n    } else {\n      error(\"conditional section must begin with INCLUDE or IGNORE\",\n\t    null, null);\n    }\n  }\n\n\n  /**\n    * Read a character reference.\n    * [67] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'\n    * *NOTE: the '&#' has already been read.\n    */\n  void parseCharRef ()\n    throws java.lang.Exception\n  {\n    int value = 0;\n    char c;\n\n    if (tryRead('x')) {\n      loop1: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\tcase 'a':\n\tcase 'A':\n\tcase 'b':\n\tcase 'B':\n\tcase 'c':\n\tcase 'C':\n\tcase 'd':\n\tcase 'D':\n\tcase 'e':\n\tcase 'E':\n\tcase 'f':\n\tcase 'F':\n\t  value *= 16;\n\t  value += Integer.parseInt(new Character(c).toString(), 16);\n\t  break;\n\tcase ';':\n\t  break loop1;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop1;\n\t}\n      }\n    } else {\n      loop2: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\t  value *= 10;\n\t  value += Integer.parseInt(new Character(c).toString(), 10);\n\t  break;\n\tcase ';':\n\t  break loop2;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop2;\n\t}\n      }\n    }\n\n    // Check for surrogates: 00000000 0000xxxx yyyyyyyy zzzzzzzz\n    //  (1101|10xx|xxyy|yyyy + 1101|11yy|zzzz|zzzz: \n    if (value <= 0x0000ffff) {\n\t\t\t\t// no surrogates needed\n      dataBufferAppend((char)value);\n    } else if (value <= 0x000fffff) {\n\t\t\t\t// > 16 bits, surrogate needed\n      dataBufferAppend((char)(0xd8 | ((value & 0x000ffc00) >> 10)));\n      dataBufferAppend((char)(0xdc | (value & 0x0003ff)));\n    } else {\n\t\t\t\t// too big for surrogate\n      error(\"character reference \" + value + \" is too large for UTF-16\",\n\t    new Integer(value).toString(), null);\n    }\n  }\n\n\n  /**\n    * Parse a reference.\n    * [69] EntityRef ::= '&' Name ';'\n    * *NOTE: the '&' has already been read.\n    * @param externalAllowed External entities are allowed here.\n    */\n  void parseEntityRef (boolean externalAllowed)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      pushString(name, getEntityValue(name));\n      break;\n    case ENTITY_TEXT:\n      if (externalAllowed) {\n\tpushURL(name, getEntityPublicId(name),\n\t\tgetEntitySystemId(name),\n\t\tnull, null, null);\n      } else {\n\terror(\"reference to external entity in attribute value.\", name, null);\n      }\n      break;\n    case ENTITY_NDATA:\n      if (externalAllowed) {\n\terror(\"data entity reference in content\", name, null);\n      } else {\n\terror(\"reference to external entity in attribute value.\", name, null);\n      }\n      break;\n    }\n  }\n\n\n  /**\n    * Parse a parameter entity reference.\n    * [70] PEReference ::= '%' Name ';'\n    * *NOTE: the '%' has already been read.\n    */\n  void parsePEReference (boolean isEntityValue)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = \"%\" + readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared parameter entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      if (isEntityValue) {\n\tpushString(name, getEntityValue(name));\n      } else {\n\tpushString(name, \" \" + getEntityValue(name) + ' ');\n      }\n      break;\n    case ENTITY_TEXT:\n      if (isEntityValue) {\n\tpushString(null, \" \");\n      }\n      pushURL(name, getEntityPublicId(name),\n\t      getEntitySystemId(name),\n\t      null, null, null);\n      if (isEntityValue) {\n\tpushString(null, \" \");\n      }\n      break;\n    }\n  }\n\n\n  /**\n    * Parse an entity declaration.\n    * [71] EntityDecl ::= '<!ENTITY' S %Name S %EntityDef S? '>'\n    *                   | '<!ENTITY' S '%' S %Name S %EntityDef S? '>'\n    * [72] EntityDef ::= EntityValue | ExternalDef\n    * [73] ExternalDef ::= ExternalID %NDataDecl?\n    * [74] ExternalID ::= 'SYSTEM' S SystemLiteral\n    *                   | 'PUBLIC' S PubidLiteral S SystemLiteral\n    * [75] NDataDecl ::= S %'NDATA' S %Name\n    * *NOTE: the '<!ENTITY' has already been read.\n    */\n  void parseEntityDecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    boolean peFlag = false;\n    String name, value, notationName, ids[];\n\n\t\t\t\t// Check for a parameter entity.\n    requireWhitespace();\n    if (tryRead('%')) {\n      peFlag = true;\n      requireWhitespace();\n    }\n\n\t\t\t\t// Read the entity name, and prepend\n\t\t\t\t// '%' if necessary.\n    name = readNmtoken(true);\n    if (peFlag) {\n      name = \"%\" + name;\n    }\n\n\t\t\t\t// Read the entity value.\n    requireWhitespace();\n    c = readCh();\n    unread(c);\n    if (c == '\"' || c == '\\'') {\n\t\t\t\t// Internal entity.\n      context = CONTEXT_ENTITYVALUE;\n      value = readLiteral(LIT_CHAR_REF|LIT_PE_REF);\n      context = CONTEXT_DTD;\n      setInternalEntity(name,value);\n    } else {\n\t\t\t\t// Read the external IDs\n      ids = readExternalIds(false);\n      if (ids[1] == null) {\n\terror(\"system identifer missing\", name, null);\n      }\n\n\t\t\t\t// Check for NDATA declaration.\n      skipWhitespace();\n      if (tryRead(\"NDATA\")) {\n\trequireWhitespace();\n\tnotationName = readNmtoken(true);\n\tsetExternalDataEntity(name, ids[0], ids[1], notationName);\n      } else {\n\tsetExternalTextEntity(name, ids[0], ids[1]);\n      }\n    }\n\n\t\t\t\t// Finish the declaration.\n    skipWhitespace();\n    require('>');\n  }\n\n\n  /**\n    * Parse a notation declaration.\n    * [81] NotationDecl ::= '<!NOTATION' S %Name S %ExternalID S? '>'\n    * *NOTE: the '<!NOTATION' has already been read.\n    */\n  void parseNotationDecl ()\n    throws java.lang.Exception\n  {\n    String nname, ids[];\n    \n\n    requireWhitespace();\n    nname = readNmtoken(true);\n\n    requireWhitespace();\n\n\t\t\t\t// Read the external identifiers.\n    ids = readExternalIds(true);\n    if (ids[0] == null && ids[1] == null) {\n      error(\"external identifer missing\", nname, null);\n    }\n\n\t\t\t\t// Register the notation.\n    setNotation(nname, ids[0], ids[1]);\n\n    skipWhitespace();\n    require('>');\n  }\n\n\n  /**\n    * Parse PCDATA.\n    * <pre>\n    * [16] PCData ::= [^&lt;&amp;]*\n    * </pre>\n    * <p>The trick here is that the data stays in the dataBuffer without\n    * necessarily being converted to a string right away.\n    */\n  void parsePCData ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Start with a little cheat -- in most\n\t\t\t\t// cases, the entire sequence of\n\t\t\t\t// character data will already be in\n\t\t\t\t// the readBuffer; if not, fall through to\n\t\t\t\t// the normal approach.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '&':\n\tcase '<':\n\t  int start = readBufferPos;\n\t  columnAugment++;\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  dataBufferAppend(readBuffer, start, i-start);\n\t  return;\n\tdefault:\n\t  columnAugment++;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, the cheat didn't work; start over\n\t\t\t\t// and do it by the book.\n    while (true) {\n      c = readCh();\n      switch (c) {\n      case '<':\n      case '&':\n\tunread(c);\n\treturn;\n      default:\n\tdataBufferAppend(c);\n\tbreak;\n      }\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // High-level reading and scanning methods.\n  //////////////////////////////////////////////////////////////////////\n\n  /**\n    * Require whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void requireWhitespace ()\n    throws java.lang.Exception\n  {\n    char c = readCh();\n    if (isWhitespace(c)) {\n      skipWhitespace();\n    } else {\n      error(\"whitespace expected\", c, null);\n    }\n  }\n\n\n  /**\n    * Parse whitespace characters, and leave them in the data buffer.\n    */\n  void parseWhitespace ()\n    throws java.lang.Exception\n  {\n    char c = readCh();\n    while (isWhitespace(c)) {\n      dataBufferAppend(c);\n      c = readCh();\n    }\n    unread(c);\n  }\n\n\n  /**\n    * Skip whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void skipWhitespace ()\n    throws java.lang.Exception\n  {\n\t\t\t\t// Start with a little cheat.  Most of\n\t\t\t\t// the time, the white space will fall\n\t\t\t\t// within the current read buffer; if\n\t\t\t\t// not, then fall through.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\t  columnAugment++;\n\t  break;\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tdefault:\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  return;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, do it by the book.\n    char c = readCh();\n    while (isWhitespace(c)) {\n      c = readCh();\n    }\n    unread(c);\n  }\n\n\n  /**\n    * Read a name or name token.\n    * [5] Name ::= (Letter | '_' | ':') (NameChar)*\n    * [7] Nmtoken ::= (NameChar)+\n    * *NOTE: [6] is implemented implicitly where required.\n    */\n  String readNmtoken (boolean isName)\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (USE_CHEATS) {\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tcase '<':\n\tcase '>':\n\tcase '&':\n\tcase ',':\n\tcase '|':\n\tcase '*':\n\tcase '+':\n\tcase '?':\n\tcase ')':\n\tcase '=':\n\tcase '\\'':\n\tcase '\"':\n\tcase '[':\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\tcase '\\n':\n\tcase ';':\n\tcase '/':\n\tcase '#':\n\t  int start = readBufferPos;\n\t  if (i == start) {\n\t    error(\"name expected\", readBuffer[i], null);\n\t  }\n\t  readBufferPos = i;\n\t  return intern(readBuffer, start, i - start);\n\t}\n      }\n    }\n\n    nameBufferPos = 0;\n\n\t\t\t\t// Read the first character.\n    loop: while (true) {\n      c = readCh();\n      switch (c) {\n      case '%':\n      case '<':\n      case '>':\n      case '&':\n      case ',':\n      case '|':\n      case '*':\n      case '+':\n      case '?':\n      case ')':\n      case '=':\n      case '\\'':\n      case '\"':\n      case '[':\n      case ' ':\n      case '\\t':\n      case '\\n':\n      case '\\r':\n      case ';':\n      case '/':\n\tunread(c);\n\tif (nameBufferPos == 0) {\n\t  error(\"name expected\", null, null);\n\t}\n\tString s = intern(nameBuffer,0,nameBufferPos);\n\tnameBufferPos = 0;\n\treturn s;\n      default:\n\tnameBuffer =\n\t  (char[])extendArray(nameBuffer, nameBuffer.length, nameBufferPos);\n\tnameBuffer[nameBufferPos++] = c;\n      }\n    }\n  }\n\n\n  /**\n    * Read a literal.\n    * [10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"'\n    *                 | \"'\" ([^<&'] | Reference)* \"'\"\n    * [11] SystemLiteral ::= '\"' URLchar* '\"' | \"'\" (URLchar - \"'\")* \"'\"\n    * [13] PubidLiteral ::= '\"' PubidChar* '\"' | \"'\" (PubidChar - \"'\")* \"'\"\n    * [9] EntityValue ::= '\"' ([^%&\"] | PEReference | Reference)* '\"'\n    *                   | \"'\" ([^%&'] | PEReference | Reference)* \"'\"\n    */\n  String readLiteral (int flags)\n    throws java.lang.Exception\n  {\n    char delim, c;\n    int startLine = line;\n\n\t\t\t\t// Find the delimiter.\n    delim = readCh();\n    if (delim != '\"' && delim != '\\'' && delim != (char)0) {\n      error(\"expected '\\\"' or \\\"'\\\"\", delim, null);\n      return null;\n    }\n\n\t\t\t\t// Read the literal.\n    try {\n      c = readCh();\n\n    loop: while (c != delim) {\n      switch (c) {\n\t\t\t\t// Literals never have line ends\n      case '\\n':\n      case '\\r':\n\tc = ' ';\n\tbreak;\n\t\t\t\t// References may be allowed\n      case '&':\n\tif ((flags & LIT_CHAR_REF) > 0) {\n\t  c = readCh();\n\t  if (c == '#') {\n\t    parseCharRef();\n\t    c = readCh();\n\t    continue loop;\t\t// check the next character\n\t  } else if ((flags & LIT_ENTITY_REF) > 0) {\n\t    unread(c);\n\t    parseEntityRef(false);\n\t    c = readCh();\n\t    continue loop;\n\t  } else {\n\t    dataBufferAppend('&');\n\t  }\n\t}\n\tbreak;\n\n      default:\n\tbreak;\n      }\n      dataBufferAppend(c);\n      c = readCh();\n    }\n    } catch (EOFException e) {\n      error(\"end of input while looking for delimiter (started on line \"\n\t    + startLine + ')', null, new Character(delim).toString());\n    }\n\n\t\t\t\t// Normalise whitespace if necessary.\n    if ((flags & LIT_NORMALIZE) > 0) {\n      dataBufferNormalize();\n    }\n\n\t\t\t\t// Return the value.\n    return dataBufferToString();\n  }\n\n\n  /**\n    * Try reading external identifiers.\n    * <p>The system identifier is not required for notations.\n    * @param inNotation Are we in a notation?\n    * @return A two-member String array containing the identifiers.\n    */\n  String[] readExternalIds (boolean inNotation)\n    throws java.lang.Exception\n  {\n    char c;\n    String ids[] = new String[2];\n\n    if (tryRead(\"PUBLIC\")) {\n      requireWhitespace();\n      ids[0] = readLiteral(LIT_NORMALIZE); // public id\n      if (inNotation) {\n\tskipWhitespace();\n\tif (tryRead('\"') || tryRead('\\'')) {\n\t  ids[1] = readLiteral(0);\n\t}\n      } else {\n\trequireWhitespace();\n\tids[1] = readLiteral(0); // system id\n      }\n    } else if (tryRead(\"SYSTEM\")) {\n      requireWhitespace();\n      ids[1] = readLiteral(0);\t// system id\n    }\n\n    return ids;\n  }\n\n\n  /**\n    * Test if a character is whitespace.\n    * <pre>\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    * </pre>\n    * @param c The character to test.\n    * @return true if the character is whitespace.\n    */\n  final boolean isWhitespace (char c)\n  {\n    switch ((int)c) {\n    case 0x20:\n    case 0x09:\n    case 0x0d:\n    case 0x0a:\n      return true;\n    default:\n      return false;\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Utility routines.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Add a character to the data buffer.\n    */\n  void dataBufferAppend (char c)\n  {\n\t\t\t\t// Expand buffer if necessary.\n    dataBuffer =\n      (char[])extendArray(dataBuffer, dataBuffer.length, dataBufferPos);\n    dataBuffer[dataBufferPos++] = c;\n  }\n\n\n  /** \n    * Add a string to the data buffer.\n    */\n  void dataBufferAppend (String s)\n  {\n    dataBufferAppend(s.toCharArray(), 0, s.length());\n  }\n\n\n  /**\n    * Append (part of) a character array to the data buffer.\n    */\n  void dataBufferAppend (char ch[], int start, int length)\n  {\n    dataBuffer =\n      (char[])extendArray(dataBuffer, dataBuffer.length,\n\t\t\t  dataBufferPos + length);\n    System.arraycopy((Object)ch, start,\n\t\t     (Object)dataBuffer, dataBufferPos,\n\t\t     length);\n    dataBufferPos += length;\n  }\n\n\n  /**\n    * Normalise whitespace in the data buffer.\n    */\n  void dataBufferNormalize ()\n  {\n    int i = 0;\n    int j = 0;\n    int end = dataBufferPos;\n\n\t\t\t\t// Skip whitespace at the start.\n    while (j < end && isWhitespace(dataBuffer[j])) {\n      j++;\n    }\n\n\t\t\t\t// Skip whitespace at the end.\n    while (end > j && isWhitespace(dataBuffer[end - 1])) {\n      end --;\n    }\n\n\t\t\t\t// Start copying to the left.\n    while (j < end) {\n\n      char c = dataBuffer[j++];\n\n\t\t\t\t// Normalise all other whitespace to\n\t\t\t\t// a single space.\n      if (isWhitespace(c)) {\n\twhile (j < end && isWhitespace(dataBuffer[j++])) {\n\t}\n\tdataBuffer[i++] = ' ';\n\tdataBuffer[i++] = dataBuffer[j-1];\n      } else {\n\tdataBuffer[i++] = c;\n      }\n    }\n\n\t\t\t\t// The new length is <= the old one.\n    dataBufferPos = i;\n  }\n\n\n  /**\n    * Convert the data buffer to a string.\n    * @param internFlag true if the contents should be interned.\n    * @see #intern(char[],int,int)\n    */\n  String dataBufferToString ()\n  {\n    String s = new String(dataBuffer, 0, dataBufferPos);\n    dataBufferPos = 0;\n    return s;\n  }\n\n\n  /**\n    * Flush the contents of the data buffer to the handler, if\n    * appropriate, and reset the buffer for new input.\n    */\n  void dataBufferFlush ()\n    throws java.lang.Exception\n  {\n    if (dataBufferPos > 0) {\n      switch (currentElementContent) {\n      case CONTENT_UNDECLARED:\n      case CONTENT_EMPTY:\n\t// do nothing\n\tbreak;\n      case CONTENT_MIXED:\n      case CONTENT_ANY:\n\tif (handler != null) {\n\t  handler.charData(dataBuffer, 0, dataBufferPos);\n\t}\n\tbreak;\n      case CONTENT_ELEMENTS:\n\tif (handler != null) {\n\t  handler.ignorableWhitespace(dataBuffer, 0, dataBufferPos);\n\t}\n\tbreak;\n      }\n      dataBufferPos = 0;\n    }\n  }\n\n\n  /**\n    * Require a string to appear, or throw an exception.\n    */\n  void require (String delim)\n    throws java.lang.Exception\n  {\n    char ch[] = delim.toCharArray();\n    for (int i = 0; i < ch.length; i++) {\n      require(ch[i]);\n    }\n  }\n\n\n  /**\n    * Require a character to appear, or throw an exception.\n    */\n  void require (char delim)\n       throws java.lang.Exception\n  {\n    char c = readCh();\n\n    if (c != delim) {\n      error(\"expected character\", c, new Character(delim).toString());\n    }\n  }\n\n\n  /**\n    * Return an internalised version of a string.\n    * <p>&AElig;lfred uses this method to create an internalised version\n    * of all names and attribute values, so that it can test equality\n    * with <code>==</code> instead of <code>String.equals()</code>.\n    * <p>If you want to be able to test for equality in the same way,\n    * you can use this method to internalise your own strings first:\n    * <pre>\n    * String PARA = handler.intern(\"PARA\");\n    * </pre>\n    * <p>Note that this will not return the same results as String.intern().\n    * @param s The string to internalise.\n    * @return An internalised version of the string.\n    * @see #intern(char[],int,int)\n    * @see java.lang.String#intern\n    */\n  public String intern (String s)\n  {\n    char ch[] = s.toCharArray();\n    return intern(ch, 0, ch.length);\n  }\n\n\n  /**\n    * Create an internalised string from a character array.\n    * <p>This is much more efficient than constructing a non-internalised\n    * string first, and then internalising it.\n    * <p>Note that this will not return the same results as String.intern().\n    * @param ch an array of characters for building the string.\n    * @param start the starting position in the array.\n    * @param length the number of characters to place in the string.\n    * @return an internalised string.\n    * @see #intern(String)\n    * @see java.lang.String#intern\n    */\n  public String intern (char ch[], int start, int length)\n  {\n    int index;\n    int hash = 0;\n\n\t\t\t\t// Generate a hash code.\n    for (int i = start; i < start + length; i++) {\n      hash = ((hash << 1) & 0xffffff) + (int)ch[i];\n    }\n\n    hash = hash % SYMBOL_TABLE_LENGTH;\n\n\t\t\t\t// Get the bucket.\n    Object bucket[] = (Object[])symbolTable[hash];\n    if (bucket == null) {\n      symbolTable[hash] = bucket = new Object[8];\n    }\n\n\t\t\t\t// Search for a matching tuple, and\n\t\t\t\t// return the string if we find one.\n    for (index = 0; index < bucket.length; index += 2) {\n      char chFound[] = (char[])bucket[index];\n\n\t\t\t\t// Stop when we hit a null index.\n      if (chFound == null) {\n\tbreak;\n      }\n\n\t\t\t\t// If they're the same length,\n\t\t\t\t// check for a match.\n\t\t\t\t// If the loop finishes, 'index' will\n\t\t\t\t// contain the current bucket\n\t\t\t\t// position.\n      if (chFound.length == length) {\n\tfor (int i = 0; i < chFound.length; i++) {\n\t\t\t\t// Stop if there are no more tuples.\n\t  if (ch[start+i] != chFound[i]) {\n\t    break;\n\t  } else if (i == length-1) {\n\t\t\t\t// That's it, we have a match!\n\t    return (String)bucket[index+1];\n\t  }\n\t}\n      }\n    }\n\n\t\t\t\t// Not found -- we'll have to add it.\n\n\t\t\t\t// Do we have to grow the bucket?\n    bucket =\n      (Object[])extendArray(bucket, bucket.length, index);\n\n\t\t\t\t// OK, add it to the end of the\n\t\t\t\t// bucket.\n    String s = new String(ch, start, length);\n    bucket[index] = s.toCharArray();\n    bucket[index+1] = s;\n    symbolTable[hash] = bucket;\n    return s;\n  }\n\n\n  /**\n    * Ensure the capacity of an array, allocating a new one if\n    * necessary.\n    */\n  Object extendArray (Object array, int currentSize, int requiredSize)\n  {\n    if (requiredSize < currentSize) {\n      return array;\n    } else {\n      Object newArray = null;\n      int newSize = currentSize * 2;\n\n      if (newSize <= requiredSize) {\n\tnewSize = requiredSize + 1;\n      }\n\n      if (array instanceof char[]) {\n\tnewArray = new char[currentSize * 2];\n      } else if (array instanceof Object[]) {\n\tnewArray = new Object[currentSize * 2];\n      }\n\n      System.arraycopy(array, 0, newArray, 0, currentSize);\n      return newArray;\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // XML query routines.\n  //////////////////////////////////////////////////////////////////////\n\n\n  //\n  // Elements\n  //\n\n  /**\n    * Get the declared elements for an XML document.\n    * <p>The results will be valid only after the DTD (if any) has been\n    * parsed.\n    * @return An enumeration of all element types declared for this\n    *         document (as Strings).\n    * @see #getElementContentType\n    * @see #getElementContentModel\n    */\n  public Enumeration declaredElements ()\n  {\n    return elementInfo.keys();\n  }\n\n\n  /**\n    * Look up the content type of an element.\n    * @param name The element type name.\n    * @return An integer constant representing the content type.\n    * @see #getElementContentModel\n    * @see #CONTENT_UNDECLARED\n    * @see #CONTENT_ANY\n    * @see #CONTENT_EMPTY\n    * @see #CONTENT_MIXED\n    * @see #CONTENT_ELEMENTS\n    */\n  public int getElementContentType (String name)\n  {\n    Object element[] = (Object[])elementInfo.get(name);\n    if (element == null) {\n      return CONTENT_UNDECLARED;\n    } else {\n      return ((Integer)element[0]).intValue();\n    }\n  }\n\n\n  /**\n    * Look up the content model of an element.\n    * <p>The result will always be null unless the content type is\n    * CONTENT_ELEMENTS or CONTENT_MIXED.\n    * @param name The element type name.\n    * @return The normalised content model, as a string.\n    * @see #getElementContentType\n    */\n  public String getElementContentModel (String name)\n  {\n    Object element[] = (Object[])elementInfo.get(name);\n    if (element == null) {\n      return null;\n    } else {\n      return (String)element[1];\n    }\n  }\n\n\n  /**\n    * Register an element.\n    * Array format:\n    *  element type\n    *  attribute hash table\n    */\n  void setElement (String name, int contentType,\n\t\t   String contentModel, Hashtable attributes)\n    throws java.lang.Exception\n  {\n    Object element[];\n\n\t\t\t\t// Try looking up the element\n    element = (Object[])elementInfo.get(name);\n\n\t\t\t\t// Make a new one if necessary.\n    if (element == null) {\n      element = new Object[3];\n      element[0] = new Integer(CONTENT_UNDECLARED);\n      element[1] = null;\n      element[2] = null;\n    } else if (contentType != CONTENT_UNDECLARED &&\n\t       ((Integer)element[0]).intValue() != CONTENT_UNDECLARED) {\n      error(\"multiple declarations for element type\", name, null);\n      return;\n    }\n\n\t\t\t\t// Insert the content type, if any.\n    if (contentType != CONTENT_UNDECLARED) {\n      element[0] = new Integer(contentType);\n    }\n\n\t\t\t\t// Insert the content model, if any.\n    if (contentModel != null) {\n      element[1] = contentModel;\n    }\n\n\t\t\t\t// Insert the attributes, if any.\n    if (attributes != null) {\n      element[2] =attributes;\n    }\n\n\t\t\t\t// Save the element info.\n    elementInfo.put(name,element);\n  }\n\n\n  /**\n    * Look up the attribute hash table for an element.\n    * The hash table is the second item in the element array.\n    */\n  Hashtable getElementAttributes (String name)\n  {\n    Object element[] = (Object[])elementInfo.get(name);\n    if (element == null) {\n      return null;\n    } else {\n      return (Hashtable)element[2];\n    }\n  }\n\n\n\n  //\n  // Attributes\n  //\n\n  /**\n    * Get the declared attributes for an element type.\n    * @param elname The name of the element type.\n    * @return An Enumeration of all the attributes declared for\n    *         a specific element type.  The results will be valid only\n    *         after the DTD (if any) has been parsed.\n    * @see #getAttributeType\n    * @see #getAttributeEnumeration\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    * @see #getAttributeExpandedValue\n    */\n  public Enumeration declaredAttributes (String elname)\n  {\n    Hashtable attlist = getElementAttributes(elname);\n\n    if (attlist == null) {\n      return null;\n    } else {\n      return attlist.keys();\n    }\n  }\n\n\n  /**\n    * Retrieve the declared type of an attribute.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return An integer constant representing the attribute type.\n    * @see #ATTRIBUTE_UNDECLARED\n    * @see #ATTRIBUTE_CDATA\n    * @see #ATTRIBUTE_ID\n    * @see #ATTRIBUTE_IDREF\n    * @see #ATTRIBUTE_IDREFS\n    * @see #ATTRIBUTE_ENTITY\n    * @see #ATTRIBUTE_ENTITIES\n    * @see #ATTRIBUTE_NMTOKEN\n    * @see #ATTRIBUTE_NMTOKENS\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */\n  public int getAttributeType (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return ATTRIBUTE_UNDECLARED;\n    } else {\n      return ((Integer)attribute[0]).intValue();\n    }\n  }\n\n\n  /**\n    * Retrieve the allowed values for an enumerated attribute type.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return A string containing the token list.\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */\n  public String getAttributeEnumeration (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else {\n      return (String)attribute[3];\n    }\n  }\n\n\n  /**\n    * Retrieve the default value of a declared attribute.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared and unspecified.\n    * @see #getAttributeExpandedValue\n    */\n  public String getAttributeDefaultValue (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else {\n      return (String)attribute[1];\n    }\n  }\n\n\n  /**\n    * Retrieve the expanded value of a declared attribute.\n    * <p>All general entities will be expanded.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The expanded default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared\n    * @see #getAttributeDefaultValue\n    */\n  public String getAttributeExpandedValue (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else if (attribute[4] == null && attribute[1] != null) {\n      try {\n\tpushString(null, (char)0 + (String)attribute[1] + (char)0);\n\tattribute[4] = readLiteral(LIT_NORMALIZE |\n\t\t\t\t   LIT_CHAR_REF |\n\t\t\t\t   LIT_ENTITY_REF);\n      } catch (Exception e) {}\n    }\n    return (String)attribute[4];\n  }\n\n\n  /**\n    * Retrieve the default value type of a declared attribute.\n    * @see #ATTRIBUTE_DEFAULT_SPECIFIED\n    * @see #ATTRIBUTE_DEFAULT_IMPLIED\n    * @see #ATTRIBUTE_DEFAULT_REQUIRED\n    * @see #ATTRIBUTE_DEFAULT_FIXED\n    */\n  public int getAttributeDefaultValueType (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return ATTRIBUTE_DEFAULT_UNDECLARED;\n    } else {\n      return ((Integer)attribute[2]).intValue();\n    }\n  }\n\n\n  /**\n    * Register an attribute declaration for later retrieval.\n    * Format:\n    * - String type\n    * - String default value\n    * - int value type\n    * *TODO: do something with attribute types.\n    */\n  void setAttribute (String elName, String name, int type, String enumeration,\n\t\t     String value, int valueType)\n    throws java.lang.Exception\n  {\n    Hashtable attlist;\n    Object attribute[];\n\n\t\t\t\t// Create a new hashtable if necessary.\n    attlist = getElementAttributes(elName);\n    if (attlist == null) {\n      attlist = new Hashtable();\n    }\n\n\t\t\t\t// Check that the attribute doesn't\n\t\t\t\t// already exist!\n    if (attlist.get(name) != null) {\n      return;\n    } else {\n      attribute = new Object[5];\n      attribute[0] = new Integer(type);\n      attribute[1] = value;\n      attribute[2] = new Integer(valueType);\n      attribute[3] = enumeration;\n      attribute[4] = null;\n      attlist.put(name.intern(), attribute);\n\n\t\t\t\t// Use CONTENT_UNDECLARED to avoid overwriting\n\t\t\t\t// existing element declaration.\n      setElement(elName,CONTENT_UNDECLARED, null, attlist);\n    }\n  }\n\n\n  /**\n    * Retrieve the three-member array representing an\n    * attribute declaration.\n    */\n  Object[] getAttribute (String elName, String name)\n  {\n    Hashtable attlist;\n    Object attribute[];\n\n    attlist = getElementAttributes(elName);\n    if (attlist == null) {\n      return null;\n    }\n\n    attribute = (Object[])attlist.get(name);\n    return attribute;\n  }\n\n\n  //\n  // Entities\n  //\n\n  /**\n    * Get declared entities.\n    * @return An Enumeration of all the entities declared for\n    *         this XML document.  The results will be valid only\n    *         after the DTD (if any) has been parsed.\n    * @see #getEntityType\n    * @see #getEntityPublicId\n    * @see #getEntitySystemId\n    * @see #getEntityValue\n    * @see #getEntityNotationName\n    */\n  public Enumeration declaredEntities ()\n  {\n    return entityInfo.keys();\n  }\n\n\n  /**\n    * Find the type of an entity.\n    * @returns An integer constant representing the entity type.\n    * @see #ENTITY_UNDECLARED\n    * @see #ENTITY_INTERNAL\n    * @see #ENTITY_NDATA\n    * @see #ENTITY_TEXT\n    */\n  public int getEntityType (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return ENTITY_UNDECLARED;\n    } else {\n      return ((Integer)entity[0]).intValue();\n    }\n  }\n\n\n  /**\n    * Return an external entity's public identifier, if any.\n    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, if it is not an\n    *         external entity, or if no public identifier was\n    *         provided.\n    * @see #getEntityType\n    */\n  public String getEntityPublicId (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[1];\n    }\n  }\n\n\n  /**\n    * Return an external entity's system identifier.\n    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, or if it is not an\n    *         external entity.\n    * @see #getEntityType\n    */\n  public String getEntitySystemId (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[2];\n    }\n  }\n\n\n  /**\n    * Return the value of an internal entity.\n    * @param ename The name of the internal entity.\n    * @return The entity's value, or null if the entity was\n    *         not declared, or if it is not an internal entity.\n    * @see #getEntityType\n    */\n  public String getEntityValue (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[3];\n    }\n  }\n\n\n  /**\n    * Get the notation name associated with an NDATA entity.\n    * @param ename The NDATA entity name.\n    * @return The associated notation name, or null if the\n    *         entity was not declared, or if it is not an\n    *         NDATA entity.\n    * @see #getEntityType\n    */\n  public String getEntityNotationName (String eName)\n  {\n    Object entity[] = (Object[])entityInfo.get(eName);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[4];\n    }\n  }\n\n\n  /**\n    * Register an entity declaration for later retrieval.\n    */\n  void setInternalEntity (String eName, String value)\n  {\n    setEntity(eName, ENTITY_INTERNAL, null, null, value, null);\n  }\n\n\n  /**\n    * Register an external data entity.\n    */\n  void setExternalDataEntity (String eName, String pubid,\n\t\t\t      String sysid, String nName)\n  {\n    setEntity(eName, ENTITY_NDATA, pubid, sysid, null, nName);\n  }\n\n\n  /**\n    * Register an external text entity.\n    */\n  void setExternalTextEntity (String eName, String pubid, String sysid)\n  {\n    setEntity(eName, ENTITY_TEXT, pubid, sysid, null, null);\n  }\n\n\n  /**\n    * Register an entity declaration for later retrieval.\n    */\n  void setEntity (String eName, int eClass,\n\t\t  String pubid, String sysid,\n\t\t  String value, String nName)\n  {\n    Object entity[];\n\n    if (entityInfo.get(eName) == null) {\n      entity = new Object[5];\n      entity[0] = new Integer(eClass);\n      entity[1] = pubid;\n      entity[2] = sysid;\n      entity[3] = value;\n      entity[4] = nName;\n\n      entityInfo.put(eName,entity);\n    }\n  }\n\n\n  //\n  // Notations.\n  //\n\n  /**\n    * Get declared notations.\n    * @return An Enumeration of all the notations declared for\n    *         this XML document.  The results will be valid only\n    *         after the DTD (if any) has been parsed.\n    * @see #getNotationPublicId\n    * @see #getNotationSystemId\n    */\n  public Enumeration declaredNotations ()\n  {\n    return notationInfo.keys();\n  }\n\n\n  /**\n    * Look up the public identifier for a notation.\n    * You will normally use this method to look up a notation\n    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the public identifier, or null\n    *         if none was provided or if no such notation was\n    *         declared.\n    * @see #getNotationSystemId\n    */\n  public String getNotationPublicId (String nname)\n  {\n    Object notation[] = (Object[])notationInfo.get(nname);\n    if (notation == null) {\n      return null;\n    } else {\n      return (String)notation[0];\n    }\n  }\n\n\n  /**\n    * Look up the system identifier for a notation.\n    * You will normally use this method to look up a notation\n    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the system identifier, or null\n    *         if no such notation was declared.\n    * @see #getNotationPublicId\n    */\n  public String getNotationSystemId (String nname)\n  {\n    Object notation[] = (Object[])notationInfo.get(nname);\n    if (notation == null) {\n      return null;\n    } else {\n      return (String)notation[1];\n    }\n  }\n\n\n  /**\n    * Register a notation declaration for later retrieval.\n    * Format:\n    * - public id\n    * - system id\n    */\n  void setNotation (String nname, String pubid, String sysid)\n    throws java.lang.Exception\n  {\n    Object notation[];\n\n    if (notationInfo.get(nname) == null) {\n      notation = new Object[2];\n      notation[0] = pubid;\n      notation[1] = sysid;\n      notationInfo.put(nname,notation);\n    } else {\n      error(\"multiple declarations of notation\", nname, null);\n    }\n  }\n\n\n  //\n  // Location.\n  //\n\n\n  /**\n    * Return the current line number.\n    */\n  public int getLineNumber ()\n  {\n    return line;\n  }\n\n\n  /**\n    * Return the current column number.\n    */\n  public int getColumnNumber ()\n  {\n    return column;\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // High-level I/O.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Read a single character from the readBuffer.\n    * <p>The readDataChunk() method maintains the buffer.\n    * <p>If we hit the end of an entity, try to pop the stack and\n    * keep going.\n    * <p>(This approach doesn't really enforce XML's rules about\n    * entity boundaries, but this is not currently a validating\n    * parser).\n    * <p>This routine also attempts to keep track of the current\n    * position in external entities, but it's not entirely accurate.\n    * @return The next available input character.\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #line\n    * @return The next character from the current input source.\n    */\n  char readCh ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    // As long as there's nothing in the\n    // read buffer, try reading more data\n    // (for an external entity) or popping\n    // the entity stack (for either).\n    while (readBufferPos >= readBufferLength)\n      {\n      switch (sourceType)\n        {\n        case INPUT_READER:\n        case INPUT_EXTERNAL:\n        case INPUT_STREAM:\n        readDataChunk();\n        while (readBufferLength < 1)\n          {\n          popInput();\n          if (readBufferLength <1)\n            {\n            readDataChunk();\n            }\n          }\n        break;\n\n        default:\n        popInput();\n        break;\n        }\n      }\n\n    c = readBuffer[readBufferPos++];\n\n    // This is a particularly nasty bit\n    // of code, that checks for a parameter\n    // entity reference but peeks ahead to\n    // catch the '%' in parameter entity\n    // declarations.\n    if\n      (\n      c == '%' && \n      (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE)\n      )\n      {\n      char c2 = readCh();\n      unread(c2);\n      if (!isWhitespace(c2))\n        {\n        parsePEReference(context == CONTEXT_ENTITYVALUE);\n        return readCh();\n        }\n      }\n\n    if (c == '\\n')\n      {\n      line++;\n      column = 0;\n      }\n    else\n      {\n      column++;\n      }\n\n    return c;\n    }\n\n\n  /**\n    * Push a single character back onto the current input stream.\n    * <p>This method usually pushes the character back onto\n    * the readBuffer, while the unread(String) method treats the\n    * string as a new internal entity.\n    * <p>I don't think that this would ever be called with \n    * readBufferPos = 0, because the methods always reads a character\n    * before unreading it, but just in case, I've added a boundary\n    * condition.\n    * @param c The character to push back.\n    * @see #readCh\n    * @see #unread(String)\n    * @see #unread(char[])\n    * @see #readBuffer\n    */\n  void unread (char c)\n    throws java.lang.Exception\n    {\n    // Normal condition.\n    if (c == '\\n')\n      {\n      line--;\n      column = -1;\n      }\n    if (readBufferPos > 0)\n      {\n      readBuffer[--readBufferPos] = c;\n      }\n    else\n      {\n      pushString(null, new Character(c).toString());\n      }\n    }\n\n\n  /**\n    * Push a char array back onto the current input stream.\n    * <p>NOTE: you must <em>never</em> push back characters that you\n    * haven't actually read: use pushString() instead.\n    * @see #readCh\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readBuffer\n    * @see #pushString\n    */\n  void unread (char ch[], int length) \n    throws java.lang.Exception\n    {\n    for (int i = 0; i < length; i++)\n        {\n        if (ch[i] == '\\n')\n          {line--;column = -1;}\n        }\n    if (length < readBufferPos)\n      {readBufferPos -= length;}\n    else\n      {\n      pushCharArray(null, ch, 0, length);\n      sourceType = INPUT_BUFFER;\n      }\n    }\n\n\n  /**\n    * Push a new external input source.\n    * <p>The source will be either an external text entity, or the DTD\n    * external subset.\n    * <p>TO DO: Right now, this method always attempts to autodetect\n    * the encoding; in the future, it should allow the caller to \n    * request an encoding explicitly, and it should also look at the\n    * headers with an HTTP connection.\n    * @param url The java.net.URL object for the entity.\n    * @see XmlHandler#resolveEntity\n    * @see #pushString\n    * @see #sourceType\n    * @see #pushInput\n    * @see #detectEncoding\n    * @see #sourceType\n    * @see #readBuffer\n    */\n  void pushURL (String ename, String publicId, String systemId,\n\t\tReader reader, InputStream stream, String encoding)\n    throws java.lang.Exception\n  {\n    URL url;\n    boolean ignoreEncoding = false;\n\n\t\t\t\t// Push the existing status.\n    pushInput(ename);\n\n\t\t\t\t// Create a new read buffer.\n\t\t\t\t// (Note the four-character margin)\n    readBuffer = new char[READ_BUFFER_MAX+4];\n    readBufferPos = 0;\n    readBufferLength = 0;\n    readBufferOverflow = -1;\n    is = null;\n    line = 1;\n\n    currentByteCount = 0;\n\n\t\t\t\t// Flush any remaining data.\n    dataBufferFlush();\n\n\t\t\t\t// Make the URL absolute.\n    if (systemId != null && externalEntity != null) {\n      systemId = new URL(externalEntity.getURL(), systemId).toString();\n    } else if (baseURI != null) {\n      try {\n\tsystemId = new URL(new URL(baseURI), systemId).toString();\n      } catch (Exception e) {}\n    }\n\n\t\t\t\t// See if the application wants to\n\t\t\t\t// redirect the system ID and/or\n\t\t\t\t// supply its own character stream.\n    if (systemId != null && handler != null) {\n      Object input = handler.resolveEntity(publicId, systemId);\n      if (input != null) {\n\tif (input instanceof String) {\n\t  systemId = (String)input;\n\t} else if (input instanceof InputStream) {\n\t  stream = (InputStream)input;\n\t} else if (input instanceof Reader) {\n\t  reader = (Reader)input;\n\t}\n      }\n    }\n\n\t\t\t\t// Start the entity.\n    if (handler != null) {\n      if (systemId != null) {\n\thandler.startExternalEntity(systemId);\n      } else {\n\thandler.startExternalEntity(\"[external stream]\");\n      }\n    }\n\n\t\t\t\t// Figure out what we're reading from.\n    if (reader != null) {\n\t\t\t\t// There's an explicit character stream.\n      sourceType = INPUT_READER;\n      this.reader = reader;\n      tryEncodingDecl(true);\n      return;\n    } else if (stream != null) {\n      sourceType = INPUT_STREAM;\n      is = stream;\n    } else {\n\t\t\t\t// We have to open our own stream\n\t\t\t\t// to the URL.\n\n\t\t\t\t// Set the new status\n      sourceType = INPUT_EXTERNAL;\n      url = new URL(systemId);\n\n      externalEntity = url.openConnection();\n      externalEntity.connect();\n      is = externalEntity.getInputStream();\n    }\n\n\t\t\t\t// If we get to here, there must be\n\t\t\t\t// an InputStream available.\n    if (!is.markSupported()) {\n      is = new BufferedInputStream(is);\n    }\n\n\t\t\t\t// Attempt to detect the encoding.\n    if (encoding == null && externalEntity != null) {\n      encoding = externalEntity.getContentEncoding();\n    }\n\n    if (encoding != null) {\n      checkEncoding(encoding, false);\n      ignoreEncoding = true;\n    } else {\n      detectEncoding();\n      ignoreEncoding = false;\n    }\n\n\t\t\t\t// Read an XML or text declaration.\n    tryEncodingDecl(ignoreEncoding);\n  }\n\n\n  /**\n    * Check for an encoding declaration.\n    */\n  void tryEncodingDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n\t\t\t\t// Read the XML/Encoding declaration.\n    if (tryRead(\"<?xml\")) {\n      if (tryWhitespace()) {\n\tif (inputStack.size() > 0) {\n\t  parseTextDecl(ignoreEncoding);\n\t} else {\n\t  parseXMLDecl(ignoreEncoding);\n\t}\n      } else {\n\tunread(\"xml\".toCharArray(), 3);\n\tparsePI();\n      }\n    }\n  }\n\n\n  /**\n    * Attempt to detect the encoding of an entity.\n    * <p>The trick here (as suggested in the XML standard) is that\n    * any entity not in UTF-8, or in UCS-2 with a byte-order mark, \n    * <b>must</b> begin with an XML declaration or an encoding\n    * declaration; we simply have to look for \"&lt;?XML\" in various\n    * encodings.\n    * <p>This method has no way to distinguish among 8-bit encodings.\n    * Instead, it assumes UTF-8, then (possibly) revises its assumption\n    * later in checkEncoding().  Any ASCII-derived 8-bit encoding\n    * should work, but most will be rejected later by checkEncoding().\n    * <p>I don't currently detect EBCDIC, since I'm concerned that it\n    * could also be a valid UTF-8 sequence; I'll have to do more checking\n    * later.\n    * @see #tryEncoding(byte[], byte, byte, byte, byte)\n    * @see #tryEncoding(byte[], byte, byte)\n    * @see #checkEncoding\n    * @see #read8bitEncodingDeclaration\n    */\n  void detectEncoding ()\n    throws java.lang.Exception\n  {\n    byte signature[] = new byte[4];\n\n\t\t\t\t// Read the first four bytes for\n\t\t\t\t// autodetection.\n    is.mark(4);\n    is.read(signature);\n    is.reset();\n\n\t\t\t\t// Look for a known signature.\n    if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t    (byte)0x00, (byte)0x3c)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x00 0x3c: UCS-4, big-endian (1234)\n      encoding = ENCODING_UCS_4_1234;\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x3c 0x00 0x00 0x00: UCS-4, little-endian (4321)\n      encoding = ENCODING_UCS_4_4321;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t\t   (byte)0x3c, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x3c 0x00: UCS-4, unusual (2143)\n      encoding = ENCODING_UCS_4_2143;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x3c 0x00 0x00: UCS-4, unusual (3421)\n      encoding = ENCODING_UCS_4_3412;\n    } else if (tryEncoding(signature, (byte)0xfe, (byte)0xff)) {\n      // UCS-2 with a byte-order marker.\n      // 0xfe 0xff: UCS-2, big-endian (12)\n      encoding = ENCODING_UCS_2_12;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0xff, (byte)0xfe)) {\n      // UCS-2 with a byte-order marker.\n      // 0xff 0xfe: UCS-2, little-endian (21)\n      encoding = ENCODING_UCS_2_21;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x3f)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x00 0x3c 0x00 0x3f: UCS-2, big-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_12;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x3f, (byte)0x00)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x3c 0x00 0x3f 0x00: UCS-2, little-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_21;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x3f,\n\t\t\t   (byte)0x78, (byte)0x6d)) {\n      // Some kind of 8-bit encoding with \"<?XML\"\n      // 0x3c 0x3f 0x78 0x6d: UTF-8 or other 8-bit markup (read ENCODING)\n      encoding = ENCODING_UTF_8;\n      read8bitEncodingDeclaration();\n    } else {\n      // Some kind of 8-bit encoding without \"<?XML\"\n      // (otherwise) UTF-8 without encoding/XML declaration\n      encoding = ENCODING_UTF_8;\n    }\n  }\n\n\n  /**\n    * Check for a four-byte signature.\n    * <p>Utility routine for detectEncoding().\n    * <p>Always looks for some part of \"<?XML\" in a specific encoding.\n    * @param sig The first four bytes read.\n    * @param b1 The first byte of the signature\n    * @param b2 The second byte of the signature\n    * @param b3 The third byte of the signature\n    * @param b4 The fourth byte of the signature\n    * @see #detectEncoding\n    */\n  boolean tryEncoding (byte sig[], byte b1, byte b2, byte b3, byte b4)\n  {\n    return (sig[0] == b1 && sig[1] == b2 && sig[2] == b3 && sig[3] == b4);\n  }\n\n\n  /**\n    * Check for a two-byte signature.\n    * <p>Looks for a UCS-2 byte-order mark.\n    * <p>Utility routine for detectEncoding().\n    * @param sig The first four bytes read.\n    * @param b1 The first byte of the signature\n    * @param b2 The second byte of the signature\n    * @see #detectEncoding\n    */\n  boolean tryEncoding (byte sig[], byte b1, byte b2)\n  {\n    return ((sig[0] == b1) && (sig[1] == b2));\n  }\n\n\n  /**\n    * This method pushes a string back onto input.\n    * <p>It is useful either as the expansion of an internal entity, \n    * or for backtracking during the parse.\n    * <p>Call pushCharArray() to do the actual work.\n    * @param s The string to push back onto input.\n    * @see #pushCharArray\n    */\n  void pushString (String ename, String s) \n    throws java.lang.Exception\n  {\n    char ch[] = s.toCharArray();\n    pushCharArray(ename, ch, 0, ch.length);\n  }\n\n\n  /**\n    * Push a new internal input source.\n    * <p>This method is useful for expanding an internal entity,\n    * or for unreading a string of characters.  It creates a new\n    * readBuffer containing the characters in the array, instead\n    * of characters converted from an input byte stream.\n    * <p>I've added a couple of optimisations: don't push zero-\n    * length strings, and just push back a single character\n    * for 1-character strings; this should save some time and memory.\n    * @param ch The char array to push.\n    * @see #pushString\n    * @see #pushURL\n    * @see #readBuffer\n    * @see #sourceType\n    * @see #pushInput\n    */\n  void pushCharArray (String ename, char ch[], int start, int length)\n    throws java.lang.Exception\n  {\n\t\t\t\t// Push the existing status\n    pushInput(ename);\n    sourceType = INPUT_INTERNAL;\n    readBuffer = ch;\n    readBufferPos = start;\n    readBufferLength = length;\n    readBufferOverflow = -1;\n  }\n\n\n  /**\n    * Save the current input source onto the stack.\n    * <p>This method saves all of the global variables associated with\n    * the current input source, so that they can be restored when a new\n    * input source has finished.  It also tests for entity recursion.\n    * <p>The method saves the following global variables onto a stack\n    * using a fixed-length array:\n    * <ol>\n    * <li>sourceType\n    * <li>externalEntity\n    * <li>readBuffer\n    * <li>readBufferPos\n    * <li>readBufferLength\n    * <li>line\n    * <li>encoding\n    * </ol>\n    * @param ename The name of the entity (if any) causing the new input.\n    * @see #popInput\n    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void pushInput (String ename)\n    throws java.lang.Exception\n  {\n    Object input[] = new Object[12];\n\n\t\t\t\t// Check for entity recursion.\n    if (ename != null) {\n      Enumeration entities = entityStack.elements();\n      while (entities.hasMoreElements()) {\n\tString e = (String)entities.nextElement();\n\tif (e == ename) {\n\t  error(\"recursive reference to entity\", ename, null);\n\t}\n      }\n    }\n    entityStack.push(ename);\n\n\t\t\t\t// Don't bother if there is no input.\n    if (sourceType == INPUT_NONE) {\n      return;\n    }\n\n\t\t\t\t// Set up a snapshot of the current\n\t\t\t\t// input source.\n    input[0] = new Integer(sourceType);\n    input[1] = externalEntity;\n    input[2] = readBuffer;\n    input[3] = new Integer(readBufferPos);\n    input[4] = new Integer(readBufferLength);\n    input[5] = new Integer(line);\n    input[6] = new Integer(encoding);\n    input[7] = new Integer(readBufferOverflow);\n    input[8] = is;\n    input[9] = new Integer(currentByteCount);\n    input[10] = new Integer(column);\n    input[11] = reader;\n\n\t\t\t\t// Push it onto the stack.\n    inputStack.push(input);\n  }\n\n\n  /**\n    * Restore a previous input source.\n    * <p>This method restores all of the global variables associated with\n    * the current input source.\n    * @exception java.io.EOFException\n    *    If there are no more entries on the input stack.\n    * @see #pushInput\n    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void popInput ()\n    throws java.lang.Exception\n  {\n    Object input[];\n\n\n    switch (sourceType) {\n\n    case INPUT_EXTERNAL:\n      dataBufferFlush();\n      if (handler != null && externalEntity != null) {\n\thandler.endExternalEntity(externalEntity.getURL().toString());\n      }\n      break;\n    case INPUT_STREAM:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    case INPUT_READER:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    }\n\n\t\t\t\t// Throw an EOFException if there\n\t\t\t\t// is nothing else to pop.\n    if (inputStack.isEmpty()) {\n      throw new EOFException();\n    } else {\n      String s;\n      input = (Object[])inputStack.pop();\n      s = (String)entityStack.pop();\n    }\n\n    sourceType = ((Integer)input[0]).intValue();\n    externalEntity = (URLConnection)input[1];\n    readBuffer = (char[])input[2];\n    readBufferPos = ((Integer)input[3]).intValue();\n    readBufferLength = ((Integer)input[4]).intValue();\n    line = ((Integer)input[5]).intValue();\n    encoding = ((Integer)input[6]).intValue();\n    readBufferOverflow = ((Integer)input[7]).intValue();\n    is = (InputStream)input[8];\n    currentByteCount = ((Integer)input[9]).intValue();\n    column = ((Integer)input[10]).intValue();\n    reader = (Reader)input[11];\n  }\n\n\n  /**\n    * Return true if we can read the expected character.\n    * <p>Note that the character will be removed from the input stream\n    * on success, but will be put back on failure.  Do not attempt to\n    * read the character again if the method succeeds.\n    * @param delim The character that should appear next.  For a\n    *              insensitive match, you must supply this in upper-case.\n    * @return true if the character was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(String)\n    */\n  boolean tryRead (char delim)\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Read the character\n    c = readCh();\n\n\t\t\t\t// Test for a match, and push the character\n\t\t\t\t// back if the match fails.\n    if (c == delim) {\n      return true;\n    } else {\n      unread(c);\n      return false;\n    }\n  }\n\n\n  /**\n    * Return true if we can read the expected string.\n    * <p>This is simply a convenience method.\n    * <p>Note that the string will be removed from the input stream\n    * on success, but will be put back on failure.  Do not attempt to\n    * read the string again if the method succeeds.\n    * <p>This method will push back a character rather than an\n    * array whenever possible (probably the majority of cases).\n    * <p><b>NOTE:</b> This method currently has a hard-coded limit\n    * of 100 characters for the delimiter.\n    * @param delim The string that should appear next.\n    * @return true if the string was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(char)\n    */\n  boolean tryRead (String delim)\n    throws java.lang.Exception\n    {\n    char ch[] = delim.toCharArray();\n    char c;\n\n    // Compare the input, character-\n    // by character.\n    \n    for (int i = 0; i < ch.length; i++)\n      {\n      c=readCh();\n      if (c!=ch[i])\n        {\n        unread(c);\n        if (i!=0)\n          {unread(ch,i);}\n        return false;\n        }\n      }\n    return true;\n    }\n\n\n\n  /**\n    * Return true if we can read some whitespace.\n    * <p>This is simply a convenience method.\n    * <p>This method will push back a character rather than an\n    * array whenever possible (probably the majority of cases).\n    * @return true if whitespace was found.\n    */\n  boolean tryWhitespace ()\n    throws java.lang.Exception\n  {\n    char c;\n    c = readCh();\n    if (isWhitespace(c)) {\n      skipWhitespace();\n      return true;\n    } else {\n      unread(c);\n      return false;\n    }\n  }\n\n\n  /**\n    * Read all data until we find the specified string.\n    * <p>This is especially useful for scanning marked sections.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter\n    * @see #tryRead(String, boolean)\n    * @see #readCh\n    */\n  void parseUntil (String delim)\n    throws java.lang.Exception\n  {\n    char c;\n    int startLine = line;\n\n    try {\n      while (!tryRead(delim)) {\n\tc = readCh();\n\tdataBufferAppend(c);\n      }\n    } catch (EOFException e) {\n      error(\"end of input while looking for delimiter (started on line \" +\n\t    startLine + ')', null, delim);\n    }\n  }\n\n\n  /**\n    * Skip all data until we find the specified string.\n    * <p>This is especially useful for scanning comments.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter\n    * @see #tryRead(String, boolean)\n    * @see #readCh\n    */\n  void skipUntil (String delim)\n    throws java.lang.Exception\n  {\n    while (!tryRead(delim)) {\n      readCh();\n    }\n  }\n\n\n  /**\n    * Read just the encoding declaration (or XML declaration) at the \n    * start of an external entity.\n    * When this method is called, we know that the declaration is\n    * present (or appears to be).  We also know that the entity is\n    * in some sort of ASCII-derived 8-bit encoding.\n    * The idea of this is to let us read what the 8-bit encoding is\n    * before we've committed to converting any more of the file; the\n    * XML or encoding declaration must be in 7-bit ASCII, so we're\n    * safe as long as we don't go past it.\n    */\n  void read8bitEncodingDeclaration ()\n    throws java.lang.Exception\n  {\n    int ch;\n    readBufferPos = readBufferLength = 0;\n\n    while (true) {\n      ch = is.read();\n      readBuffer[readBufferLength++] = (char)ch;\n      switch (ch) {\n      case (int)'>':\n\treturn;\n      case -1:\n\terror(\"end of file before end of XML or encoding declaration.\",\n\t      null, \"?>\");\n\treturn;\n      }\n      if (readBuffer.length == readBufferLength) {\n\terror(\"unfinished XML or encoding declaration\", null, null);\n      }\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Low-level I/O.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Read a chunk of data from an external input source.\n    * <p>This is simply a front-end that fills the rawReadBuffer\n    * with bytes, then calls the appropriate encoding handler.\n    * @see #encoding\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #filterCR\n    * @see #copyUtf8ReadBuffer\n    * @see #copyIso8859_1ReadBuffer\n    * @see #copyUcs_2ReadBuffer\n    * @see #copyUcs_4ReadBuffer\n    */\n  void readDataChunk ()\n    throws java.lang.Exception\n    {\n    int count, i, j;\n\n    // See if we have any overflow.\n    if (readBufferOverflow > -1)\n      {\n      readBuffer[0] = (char)readBufferOverflow;\n      readBufferOverflow = -1;\n      readBufferPos = 1;\n      sawCR = true;\n      }\n    else\n      {\n      readBufferPos = 0;\n      sawCR = false;\n      }\n\n    // Special situation -- we're taking\n    // input from a character stream.\n    if (sourceType == INPUT_READER)\n      {\n      count = reader.read(readBuffer, readBufferPos, READ_BUFFER_MAX-1);\n      if (count < 0)\n        {readBufferLength = -1;}\n      else\n        {\n        readBufferLength = readBufferPos+count;\n        filterCR();\n        sawCR = false;\n        }\n      return;\n      }\n\n    // Read as many bytes as possible\n    // into the read buffer.\n    count = is.read(rawReadBuffer, 0, READ_BUFFER_MAX);\n\n    // Dispatch to an encoding-specific\n    // reader method to populate the\n    // readBuffer.\n    switch (encoding)\n      {\n      case ENCODING_UTF_8:\n      copyUtf8ReadBuffer(count);\n      break;\n      \n      case ENCODING_ISO_8859_1:\n      copyIso8859_1ReadBuffer(count);\n      break;\n      \n      case ENCODING_UCS_2_12:\n      copyUcs2ReadBuffer(count, 8, 0);\n      break;\n      \n      case ENCODING_UCS_2_21:\n      copyUcs2ReadBuffer(count, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_1234:\n      copyUcs4ReadBuffer(count, 24, 16, 8, 0);\n      break;\n      \n      case ENCODING_UCS_4_4321:\n      copyUcs4ReadBuffer(count, 0, 8, 16, 24);\n      break;\n      \n      case ENCODING_UCS_4_2143:\n      copyUcs4ReadBuffer(count, 16, 24, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_3412:\n      copyUcs4ReadBuffer(count, 8, 0, 24, 16);\n      break;\n      }\n\n    // Filter out all carriage returns\n    // if we've seen any.\n    if (sawCR)\n      {\n      filterCR();\n      sawCR = false;\n      }\n    \n    // Reset the position.\n    readBufferPos = 0;\n    currentByteCount += count;\n    }\n\n\n  /**\n    * Filter carriage returns in the read buffer.\n    * <p>CRLF becomes LF; CR becomes LF.\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #readBufferOverflow\n    */\n  void filterCR ()\n    {\n    int i, j;\n    \n    readBufferOverflow = -1;\n    \n    loop: for (i = 0, j = 0; j < readBufferLength; i++, j++)\n      {\n      switch (readBuffer[j])\n        {\n        case '\\r':\n        if (j == readBufferLength - 1)\n          {\n          readBufferOverflow = '\\r';\n          readBufferLength--;\n          break loop;\n          }\n        else if (readBuffer[j+1] == '\\n')\n          {j++;}\n        readBuffer[i] = '\\n';\n        break;\n        \n        case '\\n':\n        default:\n        readBuffer[i] = readBuffer[j];\n        break;\n        }\n      }\n    readBufferLength = i;\n    }\n\n\n  /**\n    * Convert a buffer of UTF-8-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>The tricky part of this is dealing with UTF-8 multi-byte \n    * sequences, but it doesn't seem to slow things down too much.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #getNextUtf8Byte\n    */\n  void copyUtf8ReadBuffer (int count)\n    throws java.lang.Exception\n  {\n    int i = 0;\n    int j = readBufferPos;\n    int b1;\n    boolean isSurrogate = false;\n    while (i < count) {\n      b1 = rawReadBuffer[i++];\n      isSurrogate = false;\n\n\t\t\t\t// Determine whether we are dealing\n\t\t\t\t// with a one-, two-, three-, or four-\n\t\t\t\t// byte sequence.\n      if ((b1 & 0x80) == 0) {\n\t// 1-byte sequence: 000000000xxxxxxx = 0xxxxxxx\n\treadBuffer[j++] = (char)b1;\n      } else if ((b1 & 0xe0) == 0xc0) {\n\t// 2-byte sequence: 00000yyyyyxxxxxx = 110yyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x1f) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf0) == 0xe0) {\n\t// 3-byte sequence: zzzzyyyyyyxxxxxx = 1110zzzz 10yyyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x0f) << 12) |\n\t\t (getNextUtf8Byte(i++, count) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf8) == 0xf0) {\n\t// 4-byte sequence: 11101110wwwwzzzzyy + 110111yyyyxxxxxx\n\t//     = 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx\n\t// (uuuuu = wwww + 1)\n\tisSurrogate = true;\n\tint b2 = getNextUtf8Byte(i++, count);\n\tint b3 = getNextUtf8Byte(i++, count);\n\tint b4 = getNextUtf8Byte(i++, count);\n\treadBuffer[j++] =\n\t  (char)(0xd800 |\n\t\t ((((b1 & 0x07) << 2) | ((b2 & 0x30) >> 4) - 1) << 6) |\n\t\t ((b2 & 0x0f) << 2) |\n\t\t ((b3 & 0x30) >> 4));\n\treadBuffer[j++] =\n\t  (char)(0xdc |\n\t\t ((b3 & 0x0f) << 6) |\n\t\t b4);\n\t\t\t\t// TODO: test that surrogate value is legal.\n      } else {\n\t// Otherwise, the 8th bit may not be set in UTF-8\n\tencodingError(\"bad start for UTF-8 multi-byte sequence\", b1, i);\n      }\n      if (readBuffer[j-1] == '\\r') {\n\tsawCR = true;\n      }\n    }\n\t\t\t\t// How many characters have we read?\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Return the next byte value in a UTF-8 sequence.\n    * If it is not possible to get a byte from the current\n    * entity, throw an exception.\n    * @param pos The current position in the rawReadBuffer.\n    * @param count The number of bytes in the rawReadBuffer\n    * @return The significant six bits of a non-initial byte in\n    *         a UTF-8 sequence.\n    * @exception EOFException If the sequence is incomplete.\n    */\n  int getNextUtf8Byte (int pos, int count)\n    throws java.lang.Exception\n  {\n    int val;\n\n\t\t\t\t// Take a character from the buffer\n\t\t\t\t// or from the actual input stream.\n    if (pos < count) {\n      val = rawReadBuffer[pos];\n    } else {\n      val = is.read();\n      if (val == -1) {\n\tencodingError(\"unfinished multi-byte UTF-8 sequence at EOF\", -1, pos);\n      }\n    }\n\n\t\t\t\t// Check for the correct bits at the\n\t\t\t\t// start.\n    if ((val & 0xc0) != 0x80) {\n      encodingError(\"bad continuation of multi-byte UTF-8 sequence\", val,\n\t\t    pos + 1);\n    }\n\n\t\t\t\t// Return the significant bits.\n    return (val & 0x3f);\n  }\n\n\n  /**\n    * Convert a buffer of ISO-8859-1-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>This is a direct conversion, with no tricks.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyIso8859_1ReadBuffer (int count)\n  {\n    int i, j;\n    for (i = 0, j = readBufferPos; i < count; i++, j++) {\n      readBuffer[j] = (char)(rawReadBuffer[i] & 0xff);\n      if (readBuffer[j] == '\\r') {\n\tsawCR = true;\n      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Convert a buffer of UCS-2-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs2ReadBuffer (int count, int shift1, int shift2)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n\n    if (count > 0 && (count % 2) != 0) {\n      encodingError(\"odd number of bytes in UCS-2 encoding\", -1, count);\n    }\n    for (int i = 0; i < count; i+=2) {\n      readBuffer[j++] =\n\t(char)(((rawReadBuffer[i] & 0xff) << shift1) |\n\t       ((rawReadBuffer[i+1] & 0xff) << shift2));\n      if (readBuffer[j-1] == '\\r') {\n\tsawCR = true;\n      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Convert a buffer of UCS-4-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>Java has 16-bit chars, but this routine will attempt to use\n    * surrogates to encoding values between 0x00010000 and 0x000fffff.\n    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @param shift3 The number of bits to shift byte 2\n    * @param shift4 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs4ReadBuffer (int count, int shift1, int shift2,\n\t\t\t   int shift3, int shift4)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n    int value;\n\n    if (count > 0 && (count % 4) != 0) {\n      encodingError(\"number of bytes in UCS-4 encoding not divisible by 4\",\n\t\t    -1, count);\n    }\n    for (int i = 0; i < count; i+=4) {\n      value = (((rawReadBuffer[i] & 0xff) << shift1) |\n\t       ((rawReadBuffer[i+1] & 0xff) << shift2) |\n\t       ((rawReadBuffer[i+2] & 0xff) << shift3) |\n\t       ((rawReadBuffer[i+3] & 0xff) << shift4));\n      if (value < 0x0000ffff) {\n\treadBuffer[j++] = (char)value;\n\tif (value == (int)'\\r') {\n\t  sawCR = true;\n\t}\n      } else if (value < 0x000fffff) {\n\treadBuffer[j++] = (char)(0xd8 | ((value & 0x000ffc00) >> 10));\n\treadBuffer[j++] = (char)(0xdc | (value & 0x0003ff));\n      } else {\n\tencodingError(\"value cannot be represented in UTF-16\",\n\t\t      value, i);\n      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Report a character encoding error.\n    */\n  void encodingError (String message, int value, int offset)\n    throws java.lang.Exception\n  {\n    String uri;\n\n    if (value >= 0) {\n      message = message + \" (byte value: 0x\" +\n\tInteger.toHexString(value) + ')';\n    }\n    if (externalEntity != null) {\n      uri = externalEntity.getURL().toString();\n    } else {\n      uri = baseURI;\n    }\n    handler.error(message, uri, -1, offset + currentByteCount);\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Local Variables.\n  //////////////////////////////////////////////////////////////////////\n\n  /**\n    * Re-initialize the variables for each parse.\n    */\n  void initializeVariables ()\n  {\n\t\t\t\t// No errors; first line\n    errorCount = 0;\n    line = 1;\n    column = 0;\n\n\t\t\t\t// Set up the buffers for data and names\n    dataBufferPos = 0;\n    dataBuffer = new char[DATA_BUFFER_INITIAL];\n    nameBufferPos = 0;\n    nameBuffer = new char[NAME_BUFFER_INITIAL];\n\n\t\t\t\t// Set up the DTD hash tables\n    elementInfo = new Hashtable();\n    entityInfo = new Hashtable();\n    notationInfo = new Hashtable();\n\n\t\t\t\t// Set up the variables for the current\n\t\t\t\t// element context.\n    currentElement = null;\n    currentElementContent = CONTENT_UNDECLARED;\n\n\t\t\t\t// Set up the input variables\n    sourceType = INPUT_NONE;\n    inputStack = new Stack();\n    entityStack = new Stack();\n    externalEntity = null;\n    tagAttributePos = 0;\n    tagAttributes = new String[100];\n    rawReadBuffer = new byte[READ_BUFFER_MAX];\n    readBufferOverflow = -1;\n\n    context = CONTEXT_NONE;\n\n    symbolTable = new Object[SYMBOL_TABLE_LENGTH];\n  }\n\n\n  /**\n    * Clean up after the parse to allow some garbage collection.\n    * Leave around anything that might be useful for queries.\n    */\n  void cleanupVariables ()\n  {\n    errorCount = -1;\n    line = -1;\n    column = -1;\n    dataBuffer = null;\n    nameBuffer = null;\n    currentElement = null;\n    currentElementContent = CONTENT_UNDECLARED;\n    sourceType = INPUT_NONE;\n    inputStack = null;\n    externalEntity = null;\n    entityStack = null;\n  }\n\n  //\n  // The current XML handler interface.\n  //\n  XmlHandler handler;\n\n  //\n  // I/O information.\n  //\n  private Reader reader;\t// current reader\n  private InputStream is;\t// current input stream\n  private int line;\t\t// current line number\n  private int column;\t\t// current column number\n  private int sourceType;\t// type of input source\n  private Stack inputStack;\t// stack of input soruces\n  private URLConnection externalEntity;\t// current external entity\n  private int encoding;\t\t// current character encoding.\n  private int currentByteCount;\t// how many bytes read from current source.\n\n  //\n  // Maintain a count of errors.\n  //\n  private int errorCount;\n\n  //\n  // Buffers for decoded but unparsed character input.\n  //\n  private final static int READ_BUFFER_MAX = 16384;\n  private char readBuffer[];\n  private int readBufferPos;\n  private int readBufferLength;\n  private int readBufferOverflow; // overflow character from last data chunk.\n\n\n  //\n  // Buffer for undecoded raw byte input.\n  //\n  private byte rawReadBuffer[];\n\n\n  //\n  // Buffer for parsed character data.\n  //\n  private static int DATA_BUFFER_INITIAL = 4096;\n  private char dataBuffer[];\n  private int dataBufferPos;\n\n  //\n  // Buffer for parsed names.\n  //\n  private static int NAME_BUFFER_INITIAL = 1024;\n  private char nameBuffer[];\n  private int nameBufferPos;\n\n\n  //\n  // Hashtables for DTD information on elements, entities, and notations.\n  //\n  private Hashtable elementInfo;\n  private Hashtable entityInfo;\n  private Hashtable notationInfo;\n\n\n  //\n  // Element type currently in force.\n  //\n  private String currentElement;\n  private int currentElementContent;\n\n  //\n  // Base external identifiers for resolution.\n  //\n  private String basePublicId;\n  private String baseURI;\n  private int baseEncoding;\n  private Reader baseReader;\n  private InputStream baseInputStream;\n  private char baseInputBuffer[];\n  private int baseInputBufferStart;\n  private int baseInputBufferLength;\n\n  //\n  // Stack of entity names, to help detect recursion.\n  //\n  private Stack entityStack;\n\n  //\n  // Are we in a context where PEs are allowed?\n  //\n  private int context;\n\n  //\n  // Symbol table, for internalising names.\n  //\n  private Object symbolTable[];\n  private final static int SYMBOL_TABLE_LENGTH = 1087;\n\n  //\n  // Hash table of attributes found in current start tag.", "functions": [{"function_name": "setHandler", "code": "    */\n  public void setHandler (XmlHandler handler)\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parse", "code": "    */\n  public void parse (String systemId, String publicId, String encoding)\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parse", "code": "    */\n  public void parse (String systemId, String publicId,\n\t\t     InputStream stream, String encoding)\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parse", "code": "    */\n  public void parse (String systemId, String publicId, Reader reader)\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "doParse", "code": "\n  private synchronized void doParse (String systemId, String publicId,\n\t\t\t\t     Reader reader, InputStream stream,\n\t\t\t\t     String encoding)\n    throws java.lang.Exception\n  {\n    basePublicId = publicId;\n    baseURI = systemId;\n    baseReader = reader;\n    baseInputStream = stream;\n\n    initializeVariables();\n\n\t\t\t\t// Set the default entities here.\n    setInternalEntity(intern(\"amp\"), \"&#38;\");\n    setInternalEntity(intern(\"lt\"), \"&#60;\");\n    setInternalEntity(intern(\"gt\"), \"&#62;\");\n    setInternalEntity(intern(\"apos\"), \"&#39;\");\n    setInternalEntity(intern(\"quot\"), \"&#34;\");\n\n    if (handler != null) {\n      handler.startDocument();\n    }\n\n    pushURL(\"[document]\", basePublicId, baseURI, baseReader, baseInputStream,\n\t    encoding);\n\n    parseDocument();\n\n    if (handler != null) {\n      handler.endDocument();\n    }", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [2, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [9, 23], [11, 24], [12, 25], [13, 26], [13, 27], [14, 28], [14, 29], [15, 30], [15, 31], [16, 32], [16, 33], [17, 34], [17, 35], [1, 36], [2, 37], [27, 38], [29, 39], [31, 40], [33, 41], [35, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 2], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 9], [24, 11], [25, 12], [26, 13], [27, 13], [28, 14], [29, 14], [30, 15], [31, 15], [32, 16], [33, 16], [34, 17], [35, 17], [36, 1], [37, 2], [38, 27], [39, 29], [40, 31], [41, 33], [42, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "error", "code": "    * @see XmlHandler#error\n    * @see #line\n    */\n  void error (String message, String textFound, String textExpected)\n    throws java.lang.Exception\n  {\n    errorCount++;\n    if (textFound != null) {\n      message = message + \" (found \\\"\" + textFound + \"\\\")\";\n    }\n    if (textExpected != null) {\n      message = message + \" (expected \\\"\" + textExpected + \"\\\")\";\n    }\n    if (handler != null) {\n      String uri = null;\n\n      if (externalEntity != null) {", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [1, 10], [1, 11], [7, 12], [8, 13], [9, 14], [1, 15], [10, 16], [2, 17], [3, 18], [16, 19], [11, 20], [17, 21], [18, 22], [10, 23], [21, 24], [21, 25], [22, 26], [22, 27], [23, 28], [25, 29], [27, 30], [28, 31], [29, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 1], [11, 1], [12, 7], [13, 8], [14, 9], [15, 1], [16, 10], [17, 2], [18, 3], [19, 16], [20, 11], [21, 17], [22, 18], [23, 10], [24, 21], [25, 21], [26, 22], [27, 22], [28, 23], [29, 25], [30, 27], [31, 28], [32, 29], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "error", "code": "    * @param message The error message.\n    * @param textFound The text that caused the error (or null).\n    */\n  void error (String message, char textFound, String textExpected)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parseDocument", "code": "    * document.  As a minimum, a well-formed document must have\n    * a document element, and a valid document must have a prolog\n    * as well.\n    */\n  void parseDocument ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    parseProlog();\n    require('<');\n    parseElement();\n    try\n      {\n      parseMisc();  //skip all white, PIs, and comments\n      c=readCh();   //if this doesn't throw an exception...", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "CATCH", "CALL", "CALL", "CALL", "RETURN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [3, 7], [1, 8], [1, 9], [1, 10], [5, 11], [8, 12], [8, 13], [9, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 3], [8, 1], [9, 1], [10, 1], [11, 5], [12, 8], [13, 8], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "parseComment", "code": "    * [18] Comment ::= '&lt;!--' ((Char - '-') | ('-' (Char - '-')))* \"-->\"\n    * </pre>\n    * <p>(The <code>&lt;!--</code> has already been read.)\n    */", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parsePI", "code": "    * <p>(The <code>&lt;?</code> has already been read.)\n    * <p>An XML processing instruction <em>must</em> begin with\n    * a Name, which is the instruction's target.\n    */\n  void parsePI ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    if (!tryRead(\"?>\")) {\n      requireWhitespace();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [4, 7], [5, 8], [6, 9], [1, 10], [2, 11], [2, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 4], [8, 5], [9, 6], [10, 1], [11, 2], [12, 2], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "parseCDSect", "code": "    * <p>(The '&lt;![CDATA[' has already been read.)\n    * <p>Note that this just appends characters to the dataBuffer,\n    * without actually generating an event.\n    */", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseProlog", "code": "    * <p>We do not look for the XML declaration here, because it is\n    * handled by pushURL().\n    * @see pushURL\n    */\n  void parseProlog ()\n    throws java.lang.Exception\n  {\n    parseMisc();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [1, 5], [1, 6], [1, 0], [2, 1], [3, 0], [4, 2], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parseXMLDecl", "code": "    * <p>TODO: validate value of standalone.\n    * @see #parseTextDecl\n    * @see #checkEncoding\n    */\n  void parseXMLDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String version;\n    String encodingName = null;\n    String standalone = null;\n\n\t\t\t\t// Read the version.\n    require(\"version\");\n    parseEq();\n    version = readLiteral(0);\n    if (!version.equals(\"1.0\")) {\n      error(\"unsupported XML version\", version, \"1.0\");\n    }\n\n\t\t\t\t// Try reading an encoding declaration.\n    skipWhitespace();\n    if (tryRead(\"encoding\")) {\n      parseEq();\n      encodingName = readLiteral(0);\n      checkEncoding(encodingName, ignoreEncoding);\n    }\n\n\t\t\t\t// Try reading a standalone declaration\n    skipWhitespace();\n    if (tryRead(\"standalone\")) {\n      parseEq();\n      standalone = readLiteral(0);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [2, 12], [0, 13], [3, 14], [0, 15], [0, 16], [0, 17], [8, 18], [10, 19], [12, 20], [14, 21], [15, 22], [17, 23], [4, 24], [5, 25], [1, 26], [1, 27], [2, 28], [2, 29], [2, 30], [3, 31], [22, 32], [26, 33], [29, 34], [31, 35], [31, 36], [33, 37], [34, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 2], [13, 0], [14, 3], [15, 0], [16, 0], [17, 0], [18, 8], [19, 10], [20, 12], [21, 14], [22, 15], [23, 17], [24, 4], [25, 5], [26, 1], [27, 1], [28, 2], [29, 2], [30, 2], [31, 3], [32, 22], [33, 26], [34, 29], [35, 31], [36, 31], [37, 33], [38, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "parseTextDecl", "code": "    * <p>(The <code>&lt;?xml</code>' and whitespace have already been read.)\n    * @see #parseXMLDecl\n    * @see #checkEncoding\n    */\n  void parseTextDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String encodingName = null;\n    \n\t\t\t\t// Read an optional version.\n    if (tryRead(\"version\")) {\n      String version;\n      parseEq();\n      version = readLiteral(0);\n      if (!version.equals(\"1.0\")) {\n\terror(\"unsupported XML version\", version, \"1.0\");\n      }\n      requireWhitespace();\n    }\n      \n\n\t\t\t\t// Read the encoding.\n    require(\"encoding\");\n    parseEq();\n    encodingName = readLiteral(0);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [4, 11], [7, 12], [9, 13], [1, 14], [1, 15], [10, 16], [2, 17], [12, 18], [1, 19], [14, 20], [1, 21], [1, 22], [20, 23], [21, 24], [14, 25], [24, 26], [25, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 4], [12, 7], [13, 9], [14, 1], [15, 1], [16, 10], [17, 2], [18, 12], [19, 1], [20, 14], [21, 1], [22, 1], [23, 20], [24, 21], [25, 14], [26, 24], [27, 25], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "checkEncoding", "code": "    * @param encodingName The name of the encoding specified by the user.\n    * @see #parseXMLDecl\n    * @see #parseTextDecl\n    */\n  void checkEncoding (String encodingName, boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    encodingName = encodingName.toUpperCase();\n\n    if (ignoreEncoding) {\n      return;\n    }\n\n    switch (encoding) {\n\t\t\t\t// 8-bit encodings\n    case ENCODING_UTF_8:\n      if (encodingName.equals(\"ISO-8859-1\")) {\n\tencoding = ENCODING_ISO_8859_1;\n      } else if (!encodingName.equals(\"UTF-8\")) {\n\terror(\"unsupported 8-bit encoding\",\n\t      encodingName,\n\t      \"UTF-8 or ISO-8859-1\");\n      }\n      break;\n\t\t\t\t// 16-bit encodings\n    case ENCODING_UCS_2_12:\n    case ENCODING_UCS_2_21:\n      if (!encodingName.equals(\"ISO-10646-UCS-2\") &&\n\t  !encodingName.equals(\"UTF-16\")) {\n\terror(\"unsupported 16-bit encoding\",\n\t      encodingName,\n\t      \"ISO-10646-UCS-2\");\n      }\n      break;\n\t\t\t\t// 32-bit encodings\n    case ENCODING_UCS_4_1234:\n    case ENCODING_UCS_4_4321:\n    case ENCODING_UCS_4_2143:\n    case ENCODING_UCS_4_3412:", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "PARAM", "PARAM", "ASSIGN", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "RETURN", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [6, 13], [8, 14], [10, 15], [10, 16], [13, 17], [14, 18], [14, 19], [15, 20], [16, 21], [6, 22], [8, 23], [18, 24], [19, 25], [20, 26], [10, 27], [22, 28], [22, 29], [23, 30], [23, 31], [15, 32], [32, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 6], [14, 8], [15, 10], [16, 10], [17, 13], [18, 14], [19, 14], [20, 15], [21, 16], [22, 6], [23, 8], [24, 18], [25, 19], [26, 20], [27, 10], [28, 22], [29, 22], [30, 23], [31, 23], [32, 15], [33, 32], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "parseMisc", "code": "    * <pre>\n    * [27] Misc ::= Comment | PI | S\n    * </pre>\n    */\n  void parseMisc ()\n    throws java.lang.Exception\n    {\n    while (true)\n      {\n      skipWhitespace();\n      if (tryRead(\"<?\"))\n        {parsePI();}", "ast_nodes": ["FUNC_DECL", "LOOP", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [3, 5], [1, 6], [4, 7], [5, 8], [4, 9], [7, 10], [3, 11], [4, 12], [1, 0], [2, 1], [3, 1], [4, 3], [5, 3], [6, 1], [7, 4], [8, 5], [9, 4], [10, 7], [11, 3], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "parseDoctypedecl", "code": "    *                      ('[' %markupdecl* ']' S?)? '&gt;'\n    * </pre>\n    * <p>(The <code>&lt;!DOCTYPE</code> has already been read.)\n    */\n  void parseDoctypedecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    String doctypeName, ids[];\n\n\t\t\t\t// Read the document type name.\n    requireWhitespace();\n    doctypeName = readNmtoken(true);\n\n\t\t\t\t// Read the ExternalIDs.\n    skipWhitespace();\n    ids = readExternalIds(false);\n\n\t\t\t\t// Look for a declaration subset.\n    skipWhitespace();\n    if (tryRead('[')) {\n\n\t\t\t\t// loop until the subset ends\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead(']')) {\n\t  break;\t\t// end of subset\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    }\n\n\t\t\t\t// Read the external subset, if any\n    if (ids[1] != null) {\n      pushURL(\"[external subset]\", ids[0], ids[1], null, null, null);\n\n\t\t\t\t// Loop until we end up back at '>'\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead('>')) {\n\t  break;\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    } else {\n\t\t\t\t// No external subset.\n      skipWhitespace();\n      require('>');", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [6, 14], [2, 15], [7, 16], [3, 17], [8, 18], [10, 19], [12, 20], [1, 21], [2, 22], [2, 23], [15, 24], [2, 25], [17, 26], [19, 27], [20, 28], [22, 29], [15, 30], [25, 31], [25, 32], [25, 33], [25, 34], [7, 35], [17, 36], [30, 37], [15, 38], [15, 39], [15, 40], [36, 41], [17, 42], [17, 43], [17, 44], [21, 45], [21, 46], [30, 47], [37, 48], [25, 49], [25, 50], [36, 51], [41, 52], [30, 53], [30, 54], [30, 55], [36, 56], [36, 57], [36, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 6], [15, 2], [16, 7], [17, 3], [18, 8], [19, 10], [20, 12], [21, 1], [22, 2], [23, 2], [24, 15], [25, 2], [26, 17], [27, 19], [28, 20], [29, 22], [30, 15], [31, 25], [32, 25], [33, 25], [34, 25], [35, 7], [36, 17], [37, 30], [38, 15], [39, 15], [40, 15], [41, 36], [42, 17], [43, 17], [44, 17], [45, 21], [46, 21], [47, 30], [48, 37], [49, 25], [50, 25], [51, 36], [52, 41], [53, 30], [54, 30], [55, 30], [56, 36], [57, 36], [58, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "parseMarkupdecl", "code": "    * [30] InternalPERef ::= PEReference\n    * [31] extSubset ::= (%markupdecl | %conditionalSect)*\n    * </pre>\n    */\n  void parseMarkupdecl ()\n    throws java.lang.Exception\n  {\n    if (tryRead(\"<!ELEMENT\")) {\n      parseElementdecl();\n    } else if (tryRead(\"<!ATTLIST\")) {\n      parseAttlistDecl();\n    } else if (tryRead(\"<!ENTITY\")) {\n      parseEntityDecl();\n    } else if (tryRead(\"<!NOTATION\")) {\n      parseNotationDecl();\n    } else if (tryRead(\"<?\")) {\n      parsePI();\n    } else if (tryRead(\"<!--\")) {\n      parseComment();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [3, 6], [4, 7], [4, 8], [5, 9], [1, 10], [7, 11], [7, 12], [8, 13], [2, 14], [11, 15], [11, 16], [12, 17], [4, 18], [15, 19], [15, 20], [16, 21], [7, 22], [19, 23], [20, 24], [11, 25], [23, 26], [15, 27], [19, 28], [19, 29], [28, 30], [28, 31], [28, 32], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 3], [7, 4], [8, 4], [9, 5], [10, 1], [11, 7], [12, 7], [13, 8], [14, 2], [15, 11], [16, 11], [17, 12], [18, 4], [19, 15], [20, 15], [21, 16], [22, 7], [23, 19], [24, 20], [25, 11], [26, 23], [27, 15], [28, 19], [29, 19], [30, 28], [31, 28], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "parseElement", "code": "    * <p>(The '&lt;' has already been read.)\n    * <p>NOTE: this method actually chains onto parseContent(), if necessary,\n    * and parseContent() will take care of calling parseETag().\n    */\n  void parseElement ()\n    throws java.lang.Exception\n  {\n    String gi;\n    char c;\n    int oldElementContent = currentElementContent;\n    String oldElement = currentElement;\n\n\t\t\t\t// This is the (global) counter for the\n\t\t\t\t// array of specified attributes.\n    tagAttributePos = 0;\n\n\t\t\t\t// Read the element type name.\n    gi = readNmtoken(true);\n\n\t\t\t\t// Determine the current content type.\n    currentElement = gi;\n    currentElementContent = getElementContentType(gi);\n    if (currentElementContent == CONTENT_UNDECLARED) {\n      currentElementContent = CONTENT_ANY;\n    }\n\n\t\t\t\t// Read the attributes, if any.\n\t\t\t\t// After this loop, we should be just\n\t\t\t\t// in front of the closing delimiter.\n    skipWhitespace();\n    c = readCh();\n    while (c != '/' && c != '>') {\n      unread(c);\n      parseAttribute(gi);\n      skipWhitespace();\n      c = readCh();\n    }\n    unread(c);\n\n\t\t\t\t// Supply any defaulted attributes.\n    Enumeration atts = declaredAttributes(gi);\n    if (atts != null) {\n      String aname;\n    loop: while (atts.hasMoreElements()) {\n      aname = (String)atts.nextElement();\n\t\t\t\t// See if it was specified.\n      for (int i = 0; i < tagAttributePos; i++) {\n\tif (tagAttributes[i] == aname) {\n\t  continue loop;\n\t}\n      }\n\t\t\t\t// I guess not...\n      if (handler != null) {\n\thandler.attribute(aname,\n\t\t\t  getAttributeExpandedValue(gi, aname),\n\t\t\t  false);\n      }\n    }\n    }\n\n\t\t\t\t// Figure out if this is a start tag\n\t\t\t\t// or an empty element, and dispatch an\n\t\t\t\t// event accordingly.\n    c = readCh();\n    switch (c) {\n    case '>':\n      if (handler != null) {\n\thandler.startElement(gi);\n      }\n      parseContent();\n      break;\n    case '/':\n      require('>');\n      if (handler != null) {\n\thandler.startElement(gi);\n\thandler.endElement(gi);\n      }\n      break;\n    }", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LOOP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [0, 14], [4, 15], [0, 16], [0, 17], [5, 18], [0, 19], [0, 20], [0, 21], [0, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [12, 29], [2, 30], [2, 31], [13, 32], [3, 33], [15, 34], [15, 35], [16, 36], [19, 37], [21, 38], [22, 39], [24, 40], [1, 41], [1, 42], [27, 43], [30, 44], [4, 45], [4, 46], [4, 47], [4, 48], [34, 49], [35, 50], [5, 51], [38, 52], [40, 53], [41, 54], [43, 55], [30, 56], [30, 57], [45, 58], [24, 59], [24, 60], [27, 61], [56, 62], [57, 63], [30, 64], [62, 65], [57, 66], [56, 67], [66, 68], [57, 69], [64, 70], [67, 71], [67, 72], [66, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 0], [15, 4], [16, 0], [17, 0], [18, 5], [19, 0], [20, 0], [21, 0], [22, 0], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 12], [30, 2], [31, 2], [32, 13], [33, 3], [34, 15], [35, 15], [36, 16], [37, 19], [38, 21], [39, 22], [40, 24], [41, 1], [42, 1], [43, 27], [44, 30], [45, 4], [46, 4], [47, 4], [48, 4], [49, 34], [50, 35], [51, 5], [52, 38], [53, 40], [54, 41], [55, 43], [56, 30], [57, 30], [58, 45], [59, 24], [60, 24], [61, 27], [62, 56], [63, 57], [64, 30], [65, 62], [66, 57], [67, 56], [68, 66], [69, 57], [70, 64], [71, 67], [72, 67], [73, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "parseAttribute", "code": "    * </pre>\n    * @param name The name of the attribute's element.\n    * @see XmlHandler#attribute\n    */\n  void parseAttribute (String name)\n    throws java.lang.Exception\n  {\n    String aname;\n    int type;\n    String value;\n\n\t\t\t\t// Read the attribute name.\n    aname = readNmtoken(true).intern();\n    type = getAttributeDefaultValueType(name, aname);\n\n\t\t\t\t// Parse '='\n    parseEq();\n\n\t\t\t\t// Read the value, normalizing whitespace\n\t\t\t\t// if it is not CDATA.\n    if (type == ATTRIBUTE_CDATA || type == ATTRIBUTE_UNDECLARED) {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF);\n    } else {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF | LIT_NORMALIZE);\n    }\n\n\t\t\t\t// Inform the handler about the\n\t\t\t\t// attribute.\n    if (handler != null) {\n      handler.attribute(aname, value, true);\n    }\n    dataBufferPos = 0;\n\n\t\t\t\t// Note that the attribute has been\n\t\t\t\t// specified.\n    if (tagAttributePos == tagAttributes.length) {\n      String newAttrib[] = new String[tagAttributes.length * 2];", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [3, 12], [0, 13], [0, 14], [0, 15], [1, 16], [10, 17], [11, 18], [12, 19], [12, 20], [14, 21], [15, 22], [1, 23], [1, 24], [2, 25], [3, 26], [3, 27], [22, 28], [22, 29], [24, 30], [24, 31], [25, 32], [26, 33], [27, 34], [16, 35], [33, 36], [34, 37], [35, 38], [36, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 3], [13, 0], [14, 0], [15, 0], [16, 1], [17, 10], [18, 11], [19, 12], [20, 12], [21, 14], [22, 15], [23, 1], [24, 1], [25, 2], [26, 3], [27, 3], [28, 22], [29, 22], [30, 24], [31, 24], [32, 25], [33, 26], [34, 27], [35, 16], [36, 33], [37, 34], [38, 35], [39, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "parseEq", "code": "  /**\n    * Parse an equals sign surrounded by optional whitespace.\n    * [35] Eq ::= S? '=' S?\n    */\n  void parseEq ()\n    throws java.lang.Exception", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parseETag", "code": "    * Parse an end tag.\n    * [36] ETag ::= '</' Name S? '>'\n    * *NOTE: parseContent() chains to here.\n    */\n  void parseETag ()\n    throws java.lang.Exception\n  {\n    String name;\n    name = readNmtoken(true);\n    if (name != currentElement) {\n      error(\"mismatched end tag\", name, currentElement);\n    }", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [0, 8], [4, 9], [5, 10], [8, 11], [1, 12], [2, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 0], [9, 4], [10, 5], [11, 8], [12, 1], [13, 2], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "parseContent", "code": "    * Parse the content of an element.\n    * [37] content ::= (element | PCData | Reference | CDSect | PI | Comment)*\n    * [68] Reference ::= EntityRef | CharRef\n    */\n  void parseContent ()\n    throws java.lang.Exception\n  {\n    String data;\n    char c;\n\n    while (true) {\n\n      switch (currentElementContent) {\n      case CONTENT_ANY:\n      case CONTENT_MIXED:\n\tparsePCData();\n\tbreak;\n      case CONTENT_ELEMENTS:\n\tparseWhitespace();\n\tbreak;\n      }\n\n\t\t\t\t// Handle delimiters\n      c = readCh();\n      switch (c) {\n\n      case '&':\t\t\t// Found \"&\"\n\tc = readCh();\n\tif (c == '#') {\n\t  parseCharRef();\n\t} else {\n\t  unread(c);\n\t  parseEntityRef(true);\n\t}\n\tbreak;\n\n      case '<':\t\t\t// Found \"<\"\n\n\tc = readCh();\n\tswitch (c) {\n\n\tcase '!':\t\t// Found \"<!\"\n\t  c = readCh();\n\t  switch (c) {\n\t  case '-':\t\t// Found \"<!-\"\n\t    require('-');\n\t    parseComment();\n\t    break;\n\t  case '[':\t\t// Found \"<![\"\n\t    require(\"CDATA[\");\n\t    parseCDSect();\n\t    break;\n\t  default:\n\t    error(\"expected comment or CDATA section\", c, null);\n\t    break;\n\t  }\n\t  break;\n\n\tcase '?':\t\t// Found \"<?\"\n\t  dataBufferFlush();\n\t  parsePI();\n\t  break;\n\n\tcase '/':\t\t// Found \"</\"\n\t  dataBufferFlush();\n\t  parseETag();\n\t  return;\n\n\tdefault:\t\t// Found \"<\" followed by something else", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "SWITCH", "SWITCH", "ASSIGN", "SWITCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "SWITCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [7, 13], [6, 14], [6, 15], [5, 16], [11, 17], [5, 18], [6, 19], [6, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [16, 29], [17, 30], [18, 31], [8, 32], [8, 33], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 39], [11, 40], [11, 41], [11, 42], [27, 43], [27, 44], [27, 45], [27, 46], [27, 47], [39, 48], [40, 49], [27, 50], [27, 51], [27, 52], [27, 53], [27, 54], [50, 55], [50, 56], [52, 57], [54, 58], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 5], [11, 5], [12, 5], [13, 7], [14, 6], [15, 6], [16, 5], [17, 11], [18, 5], [19, 6], [20, 6], [21, 8], [22, 8], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 16], [30, 17], [31, 18], [32, 8], [33, 8], [34, 8], [35, 8], [36, 8], [37, 8], [38, 8], [39, 8], [40, 11], [41, 11], [42, 11], [43, 27], [44, 27], [45, 27], [46, 27], [47, 27], [48, 39], [49, 40], [50, 27], [51, 27], [52, 27], [53, 27], [54, 27], [55, 50], [56, 50], [57, 52], [58, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "parseElementdecl", "code": "    * [40] elementdecl ::= '<!ELEMENT' S %Name S (%S S)? %contentspec S? '>'\n    *                      [VC: Unique Element Declaration]\n    * *NOTE: the '<!ELEMENT' has already been read.\n    */\n  void parseElementdecl ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    requireWhitespace();\n\t\t\t\t// Read the element type name.\n    name = readNmtoken(true);\n\n    requireWhitespace();\n\t\t\t\t// Read the content model.", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "parseContentspec", "code": "  /**\n    * Content specification.\n    * [41] contentspec ::= 'EMPTY' | 'ANY' | Mixed | elements\n    */\n  void parseContentspec (String name)\n    throws java.lang.Exception\n  {\n    if (tryRead(\"EMPTY\")) {\n      setElement(name, CONTENT_EMPTY, null, null);\n      return;\n    } else if (tryRead(\"ANY\")) {\n      setElement(name, CONTENT_ANY, null, null);\n      return;\n    } else {\n      require('(');\n      dataBufferAppend('(');\n      skipWhitespace();\n      if (tryRead(\"#PCDATA\")) {\n\tdataBufferAppend(\"#PCDATA\");\n\tparseMixed();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [4, 7], [3, 8], [3, 9], [5, 10], [1, 11], [8, 12], [3, 13], [3, 14], [3, 15], [3, 16], [11, 17], [11, 18], [12, 19], [14, 20], [15, 21], [16, 22], [16, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [24, 29], [24, 30], [26, 31], [26, 32], [28, 33], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 4], [8, 3], [9, 3], [10, 5], [11, 1], [12, 8], [13, 3], [14, 3], [15, 3], [16, 3], [17, 11], [18, 11], [19, 12], [20, 14], [21, 15], [22, 16], [23, 16], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 24], [30, 24], [31, 26], [32, 26], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "parseElements", "code": "    * [49] stoks ::= cps (',' cps)*\n    * *NOTE: the opening '(' and S have already been read.\n    * *TODO: go over parameter entity boundaries more carefully.\n    */\n  void parseElements ()\n    throws java.lang.Exception\n  {\n    char c;\n    char sep;\n\n\t\t\t\t// Parse the first content particle\n    skipWhitespace();\n    parseCp();\n\n\t\t\t\t// Check for end or for a separator.\n    skipWhitespace();\n    c = readCh();\n    switch (c) {\n    case ')':\n      dataBufferAppend(')');\n      c = readCh();\n      switch (c) {\n      case '*':\n      case '+':\n      case '?':\n\tdataBufferAppend(c);\n\tbreak;\n      default:\n\tunread(c);\n      }\n      return;\n    case ',':\t\t\t// Register the separator.\n    case '|':\n      sep = c;\n      dataBufferAppend(c);\n      break;\n    default:\n      error(\"bad separator in content model\", c, null);\n      return;\n    }\n\n\t\t\t\t// Parse the rest of the content model.\n    while (true) {\n      skipWhitespace();\n      parseCp();\n      skipWhitespace();\n      c = readCh();\n      if (c == ')') {\n\tdataBufferAppend(')');\n\tbreak;\n      } else if (c != sep) {\n\terror(\"bad separator in content model\", c, null);\n\treturn;\n      } else {\n\tdataBufferAppend(c);\n      }\n    }\n\n\t\t\t\t// Check for the occurrence indicator.\n    c = readCh();\n    switch (c) {\n    case '?':\n    case '*':\n    case '+':\n      dataBufferAppend(c);", "ast_nodes": ["FUNC_DECL", "SWITCH", "LOOP", "SWITCH", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [6, 17], [2, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [8, 26], [1, 27], [1, 28], [18, 29], [18, 30], [2, 31], [2, 32], [2, 33], [2, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [29, 40], [18, 41], [30, 42], [31, 43], [35, 44], [35, 45], [24, 46], [24, 47], [24, 48], [24, 49], [38, 50], [39, 51], [29, 52], [18, 53], [24, 54], [24, 55], [29, 56], [29, 57], [53, 58], [57, 59], [57, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 6], [18, 2], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 8], [27, 1], [28, 1], [29, 18], [30, 18], [31, 2], [32, 2], [33, 2], [34, 2], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 29], [41, 18], [42, 30], [43, 31], [44, 35], [45, 35], [46, 24], [47, 24], [48, 24], [49, 24], [50, 38], [51, 39], [52, 29], [53, 18], [54, 24], [55, 24], [56, 29], [57, 29], [58, 53], [59, 57], [60, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "parseCp", "code": "    * [43] cp ::= (Name | choice | seq) ('?' | '*' | '+')\n    * *NOTE: I actually use a slightly different production here:\n    *        cp ::= (elements | (Name ('?' | '*' | '+')?))\n    */\n  void parseCp ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (tryRead('(')) {\n      dataBufferAppend('(');\n      parseElements();\n    } else {\n      dataBufferAppend(readNmtoken(true));\n      c = readCh();\n      switch (c) {\n      case '?':\n      case '*':\n      case '+':\n\tdataBufferAppend(c);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "SWITCH", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [6, 15], [7, 16], [9, 17], [4, 18], [4, 19], [16, 20], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 4], [12, 4], [13, 4], [14, 4], [15, 6], [16, 7], [17, 9], [18, 4], [19, 4], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "parseMixed", "code": "    *              | '(' S? %('#PCDATA') S? ')'\n    * [51] Mtoks ::= %Name (S? '|' S? %Name)*\n    * *NOTE: the S and '#PCDATA' have already been read.\n    */\n  void parseMixed ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Check for PCDATA alone.\n    skipWhitespace();\n    if (tryRead(')')) {\n      dataBufferAppend(\")*\");\n      tryRead('*');\n      return;\n    }\n\n\t\t\t\t// Parse mixed content.\n    skipWhitespace();\n    while (!tryRead(\")*\")) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [4, 9], [5, 10], [2, 11], [7, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [2, 19], [14, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 4], [10, 5], [11, 2], [12, 7], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 2], [20, 14], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "parseAttlistDecl", "code": "    * Parse an attribute list declaration.\n    * [52] AttlistDecl ::= '<!ATTLIST' S %Name S? %AttDef+ S? '>'\n    * *NOTE: the '<!ATTLIST' has already been read.\n    */\n  void parseAttlistDecl ()\n    throws java.lang.Exception\n  {\n    String elementName;\n\n    requireWhitespace();\n    elementName = readNmtoken(true);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [3, 7], [5, 8], [1, 9], [1, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 3], [8, 5], [9, 1], [10, 1], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "parseAttDef", "code": "  /**\n    * Parse a single attribute definition.\n    * [53] AttDef ::= S %Name S %AttType S %Default\n    */\n  void parseAttDef (String elementName)\n    throws java.lang.Exception\n  {\n    String name;\n    int type;\n    String enum1 = null;\n\n\t\t\t\t// Read the attribute name.\n    name = readNmtoken(true);\n\n\t\t\t\t// Read the attribute type.\n    requireWhitespace();\n    type = readAttType();\n\n\t\t\t\t// Get the string of enumerated values\n\t\t\t\t// if necessary.\n    if (type == ATTRIBUTE_ENUMERATED || type == ATTRIBUTE_NOTATION) {\n      enum1 = dataBufferToString();\n    }", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [8, 12], [8, 13], [9, 14], [11, 15], [2, 16], [1, 17], [15, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 8], [13, 8], [14, 9], [15, 11], [16, 2], [17, 1], [18, 15], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "readAttType", "code": "    *                        'NMTOKEN' | 'NMTOKENS'\n    * [57] EnumeratedType ::= NotationType | Enumeration\n    * *TODO: validate the type!!\n    */\n  int readAttType ()\n    throws java.lang.Exception\n  {\n    String typeString;\n    Integer type;\n\n    if (tryRead('(')) {\n      parseEnumeration();\n      return ATTRIBUTE_ENUMERATED;\n    } else {\n      typeString = readNmtoken(true);\n      if (typeString.equals(\"NOTATION\")) {\n\tparseNotationType();\n      }\n      type = (Integer)attributeTypeHash.get(typeString);\n      if (type == null) {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "IF", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [6, 11], [1, 12], [1, 13], [5, 14], [5, 15], [9, 16], [11, 17], [12, 18], [14, 19], [5, 20], [10, 21], [6, 22], [18, 23], [20, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 6], [12, 1], [13, 1], [14, 5], [15, 5], [16, 9], [17, 11], [18, 12], [19, 14], [20, 5], [21, 10], [22, 6], [23, 18], [24, 20], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "parseEnumeration", "code": "    * [60] Enumeration ::= '(' S? %Etoks (S? '|' S? %Etoks)* S? ')'\n    * [61] Etoks ::= %Nmtoken (S? '|' S? %Nmtoken)*\n    * *NOTE: the '(' has already been read.\n    */\n  void parseEnumeration ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    dataBufferAppend('(');\n\n\t\t\t\t// Read the first token.\n    skipWhitespace();\n    dataBufferAppend(readNmtoken(true));\n\t\t\t\t// Read the remaining tokens.\n    skipWhitespace();\n    while (!tryRead(')')) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [6, 11], [8, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [11, 18], [14, 19], [16, 20], [17, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 6], [12, 8], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 11], [19, 14], [20, 16], [21, 17], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "parseNotationType", "code": "    *                       S? ')'\n    * [59] Ntoks ::= %Name (S? '|' S? %Name)\n    * *NOTE: the 'NOTATION' has already been read\n    */\n  void parseNotationType ()\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parseDefault", "code": "  /**\n    * Parse the default value for an attribute.\n    * [62] Default ::= '#REQUIRED' | '#IMPLIED' | ((%'#FIXED' S)? %AttValue\n    */\n  void parseDefault (String elementName, String name, int type, String enum1)\n    throws java.lang.Exception\n  {\n    int valueType = ATTRIBUTE_DEFAULT_SPECIFIED;\n    String value = null;\n    boolean normalizeWSFlag;\n\n    if (tryRead('#')) {\n      if (tryRead(\"FIXED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_FIXED;\n\trequireWhitespace();\n\tcontext = CONTEXT_ATTRIBUTEVALUE;\n\tvalue = readLiteral(LIT_CHAR_REF);\n\tcontext = CONTEXT_DTD;\n      } else if (tryRead(\"REQUIRED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_REQUIRED;\n      } else if (tryRead(\"IMPLIED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_IMPLIED;\n      } else {\n\terror(\"illegal keyword for attribute default value\", null, null);\n      }\n    } else {\n      context = CONTEXT_ATTRIBUTEVALUE;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [10, 12], [3, 13], [1, 14], [1, 15], [1, 16], [11, 17], [11, 18], [15, 19], [17, 20], [17, 21], [18, 22], [20, 23], [21, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [23, 30], [17, 31], [26, 32], [20, 33], [20, 34], [33, 35], [33, 36], [33, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 10], [13, 3], [14, 1], [15, 1], [16, 1], [17, 11], [18, 11], [19, 15], [20, 17], [21, 17], [22, 18], [23, 20], [24, 21], [25, 11], [26, 11], [27, 11], [28, 11], [29, 11], [30, 23], [31, 17], [32, 26], [33, 20], [34, 20], [35, 33], [36, 33], [37, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "parseConditionalSect", "code": "    *                           | ('<!' (Char - ('-' | '[')))\n    * *NOTE: the '<![' has already been read.\n    * *TODO: verify that I am handling ignoreSectContents right.\n    */\n  void parseConditionalSect ()\n    throws java.lang.Exception\n  {\n    skipWhitespace();\n    if (tryRead(\"INCLUDE\")) {\n      skipWhitespace();\n      require('[');\n      skipWhitespace();\n      while (!tryRead(\"]]>\")) {\n\tparseMarkupdecl();\n\tskipWhitespace();\n      }\n    } else if (tryRead(\"IGNORE\")) {\n      skipWhitespace();\n      require('[');\n      int nesting = 1;\n      char c;\n      for (int nest = 1; nest > 0; ) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '<':\n\t  if (tryRead(\"![\")) {\n\t    nest++;\n\t  }\n\tcase ']':\n\t  if (tryRead(\"]>\")) {\n\t    nest--;\n\t  }\n\t}", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [0, 4], [2, 5], [1, 6], [3, 7], [2, 8], [2, 9], [2, 10], [5, 11], [6, 12], [1, 13], [1, 14], [1, 15], [2, 16], [8, 17], [2, 18], [2, 19], [12, 20], [14, 21], [16, 22], [16, 23], [16, 24], [8, 25], [17, 26], [10, 27], [18, 28], [6, 29], [6, 30], [8, 31], [8, 32], [25, 33], [25, 34], [25, 35], [25, 36], [31, 37], [33, 38], [35, 39], [38, 40], [39, 41], [1, 0], [2, 1], [3, 1], [4, 0], [5, 2], [6, 1], [7, 3], [8, 2], [9, 2], [10, 2], [11, 5], [12, 6], [13, 1], [14, 1], [15, 1], [16, 2], [17, 8], [18, 2], [19, 2], [20, 12], [21, 14], [22, 16], [23, 16], [24, 16], [25, 8], [26, 17], [27, 10], [28, 18], [29, 6], [30, 6], [31, 8], [32, 8], [33, 25], [34, 25], [35, 25], [36, 25], [37, 31], [38, 33], [39, 35], [40, 38], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "parseCharRef", "code": "    * Read a character reference.\n    * [67] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'\n    * *NOTE: the '&#' has already been read.\n    */\n  void parseCharRef ()\n    throws java.lang.Exception\n  {\n    int value = 0;\n    char c;\n\n    if (tryRead('x')) {\n      loop1: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\tcase 'a':\n\tcase 'A':\n\tcase 'b':\n\tcase 'B':\n\tcase 'c':\n\tcase 'C':\n\tcase 'd':\n\tcase 'D':\n\tcase 'e':\n\tcase 'E':\n\tcase 'f':\n\tcase 'F':\n\t  value *= 16;\n\t  value += Integer.parseInt(new Character(c).toString(), 16);\n\t  break;\n\tcase ';':\n\t  break loop1;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop1;\n\t}\n      }\n    } else {\n      loop2: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\t  value *= 10;\n\t  value += Integer.parseInt(new Character(c).toString(), 10);\n\t  break;\n\tcase ';':\n\t  break loop2;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop2;\n\t}\n      }\n    }\n\n    // Check for surrogates: 00000000 0000xxxx yyyyyyyy zzzzzzzz\n    //  (1101|10xx|xxyy|yyyy + 1101|11yy|zzzz|zzzz: \n    if (value <= 0x0000ffff) {\n\t\t\t\t// no surrogates needed\n      dataBufferAppend((char)value);\n    } else if (value <= 0x000fffff) {\n\t\t\t\t// > 16 bits, surrogate needed\n      dataBufferAppend((char)(0xd8 | ((value & 0x000ffc00) >> 10)));\n      dataBufferAppend((char)(0xdc | (value & 0x0003ff)));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [5, 8], [6, 9], [2, 10], [2, 11], [7, 12], [4, 13], [8, 14], [1, 15], [10, 16], [11, 17], [5, 18], [5, 19], [5, 20], [10, 21], [11, 22], [18, 23], [18, 24], [18, 25], [10, 26], [11, 27], [24, 28], [25, 29], [25, 30], [19, 31], [20, 32], [21, 33], [21, 34], [21, 35], [21, 36], [21, 37], [21, 38], [21, 39], [21, 40], [21, 41], [21, 42], [21, 43], [21, 44], [21, 45], [21, 46], [26, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 53], [22, 54], [22, 55], [22, 56], [22, 57], [22, 58], [22, 59], [22, 60], [22, 61], [22, 62], [22, 63], [22, 64], [22, 65], [22, 66], [22, 67], [22, 68], [22, 69], [22, 70], [22, 71], [22, 72], [22, 73], [27, 74], [30, 75], [31, 76], [31, 77], [32, 78], [32, 79], [21, 80], [21, 81], [21, 82], [22, 83], [22, 84], [22, 85], [76, 86], [78, 87], [78, 88], [80, 89], [80, 90], [81, 91], [82, 92], [83, 93], [83, 94], [84, 95], [85, 96], [88, 97], [91, 98], [91, 99], [95, 100], [95, 101], [99, 102], [101, 103], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 5], [9, 6], [10, 2], [11, 2], [12, 7], [13, 4], [14, 8], [15, 1], [16, 10], [17, 11], [18, 5], [19, 5], [20, 5], [21, 10], [22, 11], [23, 18], [24, 18], [25, 18], [26, 10], [27, 11], [28, 24], [29, 25], [30, 25], [31, 19], [32, 20], [33, 21], [34, 21], [35, 21], [36, 21], [37, 21], [38, 21], [39, 21], [40, 21], [41, 21], [42, 21], [43, 21], [44, 21], [45, 21], [46, 21], [47, 26], [48, 22], [49, 22], [50, 22], [51, 22], [52, 22], [53, 22], [54, 22], [55, 22], [56, 22], [57, 22], [58, 22], [59, 22], [60, 22], [61, 22], [62, 22], [63, 22], [64, 22], [65, 22], [66, 22], [67, 22], [68, 22], [69, 22], [70, 22], [71, 22], [72, 22], [73, 22], [74, 27], [75, 30], [76, 31], [77, 31], [78, 32], [79, 32], [80, 21], [81, 21], [82, 21], [83, 22], [84, 22], [85, 22], [86, 76], [87, 78], [88, 78], [89, 80], [90, 80], [91, 81], [92, 82], [93, 83], [94, 83], [95, 84], [96, 85], [97, 88], [98, 91], [99, 91], [100, 95], [101, 95], [102, 99], [103, 101], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103]]}, {"function_name": "parseEntityRef", "code": "    * [69] EntityRef ::= '&' Name ';'\n    * *NOTE: the '&' has already been read.\n    * @param externalAllowed External entities are allowed here.\n    */\n  void parseEntityRef (boolean externalAllowed)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      pushString(name, getEntityValue(name));\n      break;\n    case ENTITY_TEXT:\n      if (externalAllowed) {\n\tpushURL(name, getEntityPublicId(name),\n\t\tgetEntitySystemId(name),\n\t\tnull, null, null);\n      } else {\n\terror(\"reference to external entity in attribute value.\", name, null);\n      }\n      break;\n    case ENTITY_NDATA:\n      if (externalAllowed) {\n\terror(\"data entity reference in content\", name, null);", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [6, 14], [1, 15], [1, 16], [14, 17], [15, 18], [16, 19], [16, 20], [8, 21], [8, 22], [10, 23], [10, 24], [21, 25], [21, 26], [22, 27], [22, 28], [23, 29], [23, 30], [24, 31], [24, 32], [24, 33], [24, 34], [24, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 6], [15, 1], [16, 1], [17, 14], [18, 15], [19, 16], [20, 16], [21, 8], [22, 8], [23, 10], [24, 10], [25, 21], [26, 21], [27, 22], [28, 22], [29, 23], [30, 23], [31, 24], [32, 24], [33, 24], [34, 24], [35, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "parsePEReference", "code": "    * Parse a parameter entity reference.\n    * [70] PEReference ::= '%' Name ';'\n    * *NOTE: the '%' has already been read.\n    */\n  void parsePEReference (boolean isEntityValue)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = \"%\" + readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared parameter entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      if (isEntityValue) {\n\tpushString(name, getEntityValue(name));\n      } else {\n\tpushString(name, \" \" + getEntityValue(name) + ' ');\n      }\n      break;\n    case ENTITY_TEXT:\n      if (isEntityValue) {\n\tpushString(null, \" \");\n      }\n      pushURL(name, getEntityPublicId(name),\n\t      getEntitySystemId(name),\n\t      null, null, null);", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "IF", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [6, 14], [1, 15], [1, 16], [14, 17], [14, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [16, 24], [16, 25], [17, 26], [8, 27], [9, 28], [11, 29], [11, 30], [27, 31], [27, 32], [28, 33], [28, 34], [29, 35], [30, 36], [35, 37], [35, 38], [38, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 6], [15, 1], [16, 1], [17, 14], [18, 14], [19, 15], [20, 15], [21, 15], [22, 15], [23, 15], [24, 16], [25, 16], [26, 17], [27, 8], [28, 9], [29, 11], [30, 11], [31, 27], [32, 27], [33, 28], [34, 28], [35, 29], [36, 30], [37, 35], [38, 35], [39, 38], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "parseEntityDecl", "code": "    *                   | 'PUBLIC' S PubidLiteral S SystemLiteral\n    * [75] NDataDecl ::= S %'NDATA' S %Name\n    * *NOTE: the '<!ENTITY' has already been read.\n    */\n  void parseEntityDecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    boolean peFlag = false;\n    String name, value, notationName, ids[];\n\n\t\t\t\t// Check for a parameter entity.\n    requireWhitespace();\n    if (tryRead('%')) {\n      peFlag = true;\n      requireWhitespace();\n    }\n\n\t\t\t\t// Read the entity name, and prepend\n\t\t\t\t// '%' if necessary.\n    name = readNmtoken(true);\n    if (peFlag) {\n      name = \"%\" + name;\n    }\n\n\t\t\t\t// Read the entity value.\n    requireWhitespace();\n    c = readCh();\n    unread(c);\n    if (c == '\"' || c == '\\'') {\n\t\t\t\t// Internal entity.\n      context = CONTEXT_ENTITYVALUE;\n      value = readLiteral(LIT_CHAR_REF|LIT_PE_REF);\n      context = CONTEXT_DTD;\n      setInternalEntity(name,value);\n    } else {\n\t\t\t\t// Read the external IDs\n      ids = readExternalIds(false);\n      if (ids[1] == null) {\n\terror(\"system identifer missing\", name, null);\n      }\n\n\t\t\t\t// Check for NDATA declaration.\n      skipWhitespace();\n      if (tryRead(\"NDATA\")) {\n\trequireWhitespace();\n\tnotationName = readNmtoken(true);\n\tsetExternalDataEntity(name, ids[0], ids[1], notationName);\n      } else {\n\tsetExternalTextEntity(name, ids[0], ids[1]);\n      }\n    }", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [0, 15], [7, 16], [1, 17], [1, 18], [9, 19], [9, 20], [11, 21], [13, 22], [14, 23], [5, 24], [17, 25], [1, 26], [18, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [19, 33], [20, 34], [2, 35], [22, 36], [3, 37], [3, 38], [25, 39], [27, 40], [28, 41], [31, 42], [35, 43], [38, 44], [17, 45], [17, 46], [17, 47], [17, 48], [18, 49], [41, 50], [42, 51], [43, 52], [47, 53], [49, 54], [49, 55], [27, 56], [53, 57], [45, 58], [45, 59], [46, 60], [46, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 0], [16, 7], [17, 1], [18, 1], [19, 9], [20, 9], [21, 11], [22, 13], [23, 14], [24, 5], [25, 17], [26, 1], [27, 18], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 19], [34, 20], [35, 2], [36, 22], [37, 3], [38, 3], [39, 25], [40, 27], [41, 28], [42, 31], [43, 35], [44, 38], [45, 17], [46, 17], [47, 17], [48, 17], [49, 18], [50, 41], [51, 42], [52, 43], [53, 47], [54, 49], [55, 49], [56, 27], [57, 53], [58, 45], [59, 45], [60, 46], [61, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "parseNotationDecl", "code": "    * Parse a notation declaration.\n    * [81] NotationDecl ::= '<!NOTATION' S %Name S %ExternalID S? '>'\n    * *NOTE: the '<!NOTATION' has already been read.\n    */\n  void parseNotationDecl ()\n    throws java.lang.Exception\n  {\n    String nname, ids[];\n    \n\n    requireWhitespace();\n    nname = readNmtoken(true);\n\n    requireWhitespace();\n\n\t\t\t\t// Read the external identifiers.\n    ids = readExternalIds(true);\n    if (ids[0] == null && ids[1] == null) {\n      error(\"external identifer missing\", nname, null);\n    }\n\n\t\t\t\t// Register the notation.", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [6, 12], [6, 13], [7, 14], [9, 15], [1, 16], [12, 17], [13, 18], [14, 19], [15, 20], [5, 21], [5, 22], [16, 23], [16, 24], [12, 25], [13, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 6], [13, 6], [14, 7], [15, 9], [16, 1], [17, 12], [18, 13], [19, 14], [20, 15], [21, 5], [22, 5], [23, 16], [24, 16], [25, 12], [26, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "parsePCData", "code": "    * </pre>\n    * <p>The trick here is that the data stays in the dataBuffer without\n    * necessarily being converted to a string right away.\n    */\n  void parsePCData ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Start with a little cheat -- in most\n\t\t\t\t// cases, the entire sequence of\n\t\t\t\t// character data will already be in\n\t\t\t\t// the readBuffer; if not, fall through to\n\t\t\t\t// the normal approach.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '&':\n\tcase '<':\n\t  int start = readBufferPos;\n\t  columnAugment++;\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  dataBufferAppend(readBuffer, start, i-start);\n\t  return;\n\tdefault:\n\t  columnAugment++;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, the cheat didn't work; start over\n\t\t\t\t// and do it by the book.\n    while (true) {\n      c = readCh();\n      switch (c) {\n      case '<':\n      case '&':\n\tunread(c);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "SWITCH", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [2, 7], [2, 8], [1, 9], [6, 10], [5, 11], [5, 12], [5, 13], [5, 14], [9, 15], [6, 16], [7, 17], [8, 18], [5, 19], [5, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [22, 29], [16, 30], [16, 31], [28, 32], [29, 33], [31, 34], [22, 35], [22, 36], [22, 37], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 2], [8, 2], [9, 1], [10, 6], [11, 5], [12, 5], [13, 5], [14, 5], [15, 9], [16, 6], [17, 7], [18, 8], [19, 5], [20, 5], [21, 16], [22, 16], [23, 16], [24, 16], [25, 16], [26, 16], [27, 16], [28, 16], [29, 22], [30, 16], [31, 16], [32, 28], [33, 29], [34, 31], [35, 22], [36, 22], [37, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "requireWhitespace", "code": "\n  /**\n    * Require whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void requireWhitespace ()\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "parseWhitespace", "code": "\n\n  /**\n    * Parse whitespace characters, and leave them in the data buffer.\n    */\n  void parseWhitespace ()\n    throws java.lang.Exception\n  {\n    char c = readCh();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "skipWhitespace", "code": "\n  /**\n    * Skip whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void skipWhitespace ()\n    throws java.lang.Exception\n  {\n\t\t\t\t// Start with a little cheat.  Most of\n\t\t\t\t// the time, the white space will fall\n\t\t\t\t// within the current read buffer; if\n\t\t\t\t// not, then fall through.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\t  columnAugment++;\n\t  break;\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tdefault:\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  return;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, do it by the book.", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [3, 9], [1, 10], [7, 11], [10, 12], [7, 13], [8, 14], [9, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [17, 26], [13, 27], [18, 28], [13, 29], [26, 30], [18, 31], [28, 32], [28, 33], [29, 34], [17, 35], [17, 36], [17, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 3], [10, 1], [11, 7], [12, 10], [13, 7], [14, 8], [15, 9], [16, 13], [17, 13], [18, 13], [19, 13], [20, 13], [21, 13], [22, 13], [23, 13], [24, 13], [25, 13], [26, 17], [27, 13], [28, 18], [29, 13], [30, 26], [31, 18], [32, 28], [33, 28], [34, 29], [35, 17], [36, 17], [37, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "readNmtoken", "code": "    * Read a name or name token.\n    * [5] Name ::= (Letter | '_' | ':') (NameChar)*\n    * [7] Nmtoken ::= (NameChar)+\n    * *NOTE: [6] is implemented implicitly where required.\n    */\n  String readNmtoken (boolean isName)\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (USE_CHEATS) {\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tcase '<':\n\tcase '>':\n\tcase '&':\n\tcase ',':\n\tcase '|':\n\tcase '*':\n\tcase '+':\n\tcase '?':\n\tcase ')':\n\tcase '=':\n\tcase '\\'':\n\tcase '\"':\n\tcase '[':\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\tcase '\\n':\n\tcase ';':\n\tcase '/':\n\tcase '#':\n\t  int start = readBufferPos;\n\t  if (i == start) {\n\t    error(\"name expected\", readBuffer[i], null);\n\t  }\n\t  readBufferPos = i;\n\t  return intern(readBuffer, start, i - start);\n\t}\n      }\n    }\n\n    nameBufferPos = 0;\n\n\t\t\t\t// Read the first character.\n    loop: while (true) {\n      c = readCh();\n      switch (c) {\n      case '%':\n      case '<':\n      case '>':\n      case '&':\n      case ',':\n      case '|':\n      case '*':\n      case '+':\n      case '?':\n      case ')':\n      case '=':\n      case '\\'':\n      case '\"':\n      case '[':\n      case ' ':\n      case '\\t':\n      case '\\n':\n      case '\\r':\n      case ';':\n      case '/':\n\tunread(c);\n\tif (nameBufferPos == 0) {\n\t  error(\"name expected\", null, null);\n\t}\n\tString s = intern(nameBuffer,0,nameBufferPos);\n\tnameBufferPos = 0;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "SWITCH", "LITERAL_ANCHOR", "LOOP", "ASSIGN", "BINARY_OP", "RETURN", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "SWITCH", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [6, 8], [2, 9], [1, 10], [9, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [10, 35], [9, 36], [7, 37], [7, 38], [7, 39], [14, 40], [7, 41], [39, 42], [13, 43], [40, 44], [36, 45], [36, 46], [36, 47], [36, 48], [36, 49], [36, 50], [36, 51], [36, 52], [36, 53], [36, 54], [36, 55], [36, 56], [36, 57], [36, 58], [36, 59], [36, 60], [36, 61], [36, 62], [36, 63], [36, 64], [36, 65], [36, 66], [36, 67], [36, 68], [36, 69], [38, 70], [43, 71], [14, 72], [45, 73], [36, 74], [46, 75], [68, 76], [72, 77], [72, 78], [72, 79], [73, 80], [68, 81], [76, 82], [76, 83], [46, 84], [84, 85], [84, 86], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 6], [9, 2], [10, 1], [11, 9], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 7], [19, 7], [20, 7], [21, 7], [22, 7], [23, 7], [24, 7], [25, 7], [26, 7], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 7], [33, 7], [34, 7], [35, 10], [36, 9], [37, 7], [38, 7], [39, 7], [40, 14], [41, 7], [42, 39], [43, 13], [44, 40], [45, 36], [46, 36], [47, 36], [48, 36], [49, 36], [50, 36], [51, 36], [52, 36], [53, 36], [54, 36], [55, 36], [56, 36], [57, 36], [58, 36], [59, 36], [60, 36], [61, 36], [62, 36], [63, 36], [64, 36], [65, 36], [66, 36], [67, 36], [68, 36], [69, 36], [70, 38], [71, 43], [72, 14], [73, 45], [74, 36], [75, 46], [76, 68], [77, 72], [78, 72], [79, 72], [80, 73], [81, 68], [82, 76], [83, 76], [84, 46], [85, 84], [86, 84], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "readLiteral", "code": "    * [11] SystemLiteral ::= '\"' URLchar* '\"' | \"'\" (URLchar - \"'\")* \"'\"\n    * [13] PubidLiteral ::= '\"' PubidChar* '\"' | \"'\" (PubidChar - \"'\")* \"'\"\n    * [9] EntityValue ::= '\"' ([^%&\"] | PEReference | Reference)* '\"'\n    *                   | \"'\" ([^%&'] | PEReference | Reference)* \"'\"\n    */\n  String readLiteral (int flags)\n    throws java.lang.Exception\n  {\n    char delim, c;\n    int startLine = line;\n\n\t\t\t\t// Find the delimiter.\n    delim = readCh();\n    if (delim != '\"' && delim != '\\'' && delim != (char)0) {\n      error(\"expected '\\\"' or \\\"'\\\"\", delim, null);\n      return null;\n    }\n\n\t\t\t\t// Read the literal.\n    try {\n      c = readCh();\n\n    loop: while (c != delim) {\n      switch (c) {\n\t\t\t\t// Literals never have line ends\n      case '\\n':\n      case '\\r':\n\tc = ' ';\n\tbreak;\n\t\t\t\t// References may be allowed\n      case '&':\n\tif ((flags & LIT_CHAR_REF) > 0) {\n\t  c = readCh();\n\t  if (c == '#') {\n\t    parseCharRef();\n\t    c = readCh();\n\t    continue loop;\t\t// check the next character\n\t  } else if ((flags & LIT_ENTITY_REF) > 0) {\n\t    unread(c);\n\t    parseEntityRef(false);\n\t    c = readCh();\n\t    continue loop;\n\t  } else {\n\t    dataBufferAppend('&');\n\t  }\n\t}\n\tbreak;\n\n      default:\n\tbreak;\n      }\n      dataBufferAppend(c);\n      c = readCh();\n    }\n    } catch (EOFException e) {\n      error(\"end of input while looking for delimiter (started on line \"\n\t    + startLine + ')', null, new Character(delim).toString());\n    }\n\n\t\t\t\t// Normalise whitespace if necessary.\n    if ((flags & LIT_NORMALIZE) > 0) {", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CATCH", "LOOP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "SWITCH", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [3, 11], [4, 12], [0, 13], [9, 14], [9, 15], [11, 16], [3, 17], [4, 18], [12, 19], [12, 20], [13, 21], [2, 22], [10, 23], [11, 24], [17, 25], [18, 26], [4, 27], [20, 28], [20, 29], [23, 30], [23, 31], [23, 32], [11, 33], [11, 34], [27, 35], [27, 36], [19, 37], [28, 38], [29, 39], [30, 40], [32, 41], [32, 42], [33, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [24, 49], [24, 50], [42, 51], [46, 52], [24, 53], [46, 54], [52, 55], [52, 56], [53, 57], [54, 58], [54, 59], [46, 60], [58, 61], [54, 62], [59, 63], [60, 64], [58, 65], [61, 66], [61, 67], [54, 68], [54, 69], [58, 70], [58, 71], [58, 72], [58, 73], [68, 74], [70, 75], [71, 76], [72, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 3], [12, 4], [13, 0], [14, 9], [15, 9], [16, 11], [17, 3], [18, 4], [19, 12], [20, 12], [21, 13], [22, 2], [23, 10], [24, 11], [25, 17], [26, 18], [27, 4], [28, 20], [29, 20], [30, 23], [31, 23], [32, 23], [33, 11], [34, 11], [35, 27], [36, 27], [37, 19], [38, 28], [39, 29], [40, 30], [41, 32], [42, 32], [43, 33], [44, 24], [45, 24], [46, 24], [47, 24], [48, 24], [49, 24], [50, 24], [51, 42], [52, 46], [53, 24], [54, 46], [55, 52], [56, 52], [57, 53], [58, 54], [59, 54], [60, 46], [61, 58], [62, 54], [63, 59], [64, 60], [65, 58], [66, 61], [67, 61], [68, 54], [69, 54], [70, 58], [71, 58], [72, 58], [73, 58], [74, 68], [75, 70], [76, 71], [77, 72], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "readExternalIds", "code": "    * Try reading external identifiers.\n    * <p>The system identifier is not required for notations.\n    * @param inNotation Are we in a notation?\n    * @return A two-member String array containing the identifiers.\n    */\n  String[] readExternalIds (boolean inNotation)\n    throws java.lang.Exception\n  {\n    char c;\n    String ids[] = new String[2];\n\n    if (tryRead(\"PUBLIC\")) {\n      requireWhitespace();\n      ids[0] = readLiteral(LIT_NORMALIZE); // public id\n      if (inNotation) {\n\tskipWhitespace();\n\tif (tryRead('\"') || tryRead('\\'')) {\n\t  ids[1] = readLiteral(0);\n\t}\n      } else {\n\trequireWhitespace();\n\tids[1] = readLiteral(0); // system id\n      }\n    } else if (tryRead(\"SYSTEM\")) {", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "IF", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [2, 9], [7, 10], [8, 11], [2, 12], [2, 13], [3, 14], [6, 15], [6, 16], [9, 17], [12, 18], [15, 19], [9, 20], [9, 21], [17, 22], [9, 23], [19, 24], [20, 25], [22, 26], [22, 27], [12, 28], [15, 29], [25, 30], [17, 31], [26, 32], [27, 33], [20, 34], [31, 35], [35, 36], [31, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 2], [10, 7], [11, 8], [12, 2], [13, 2], [14, 3], [15, 6], [16, 6], [17, 9], [18, 12], [19, 15], [20, 9], [21, 9], [22, 17], [23, 9], [24, 19], [25, 20], [26, 22], [27, 22], [28, 12], [29, 15], [30, 25], [31, 17], [32, 26], [33, 27], [34, 20], [35, 31], [36, 35], [37, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "isWhitespace", "code": "    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    * </pre>\n    * @param c The character to test.\n    * @return true if the character is whitespace.\n    */\n  final boolean isWhitespace (char c)\n  {\n    switch ((int)c) {\n    case 0x20:\n    case 0x09:", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [4, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "dataBufferAppend", "code": "  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Add a character to the data buffer.\n    */", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "dataBufferAppend", "code": "  }\n\n", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "dataBufferAppend", "code": "  }\n\n\n  /**\n    * Append (part of) a character array to the data buffer.\n    */\n  void dataBufferAppend (char ch[], int start, int length)\n  {\n    dataBuffer =", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "dataBufferNormalize", "code": "  }\n\n\n  /**\n    * Normalise whitespace in the data buffer.\n    */\n  void dataBufferNormalize ()\n  {\n    int i = 0;\n    int j = 0;\n    int end = dataBufferPos;\n\n\t\t\t\t// Skip whitespace at the start.\n    while (j < end && isWhitespace(dataBuffer[j])) {\n      j++;\n    }\n\n\t\t\t\t// Skip whitespace at the end.\n    while (end > j && isWhitespace(dataBuffer[end - 1])) {\n      end --;\n    }\n\n\t\t\t\t// Start copying to the left.\n    while (j < end) {\n\n      char c = dataBuffer[j++];\n\n\t\t\t\t// Normalise all other whitespace to\n\t\t\t\t// a single space.\n      if (isWhitespace(c)) {\n\twhile (j < end && isWhitespace(dataBuffer[j++])) {\n\t}\n\tdataBuffer[i++] = ' ';\n\tdataBuffer[i++] = dataBuffer[j-1];\n      } else {", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LOOP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [1, 11], [1, 12], [9, 13], [9, 14], [10, 15], [10, 16], [5, 17], [6, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [20, 24], [13, 25], [23, 26], [24, 27], [24, 28], [25, 29], [22, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 1], [12, 1], [13, 9], [14, 9], [15, 10], [16, 10], [17, 5], [18, 6], [19, 11], [20, 11], [21, 11], [22, 11], [23, 11], [24, 20], [25, 13], [26, 23], [27, 24], [28, 24], [29, 25], [30, 22], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "dataBufferToString", "code": "\n  /**\n    * Convert the data buffer to a string.\n    * @param internFlag true if the contents should be interned.\n    * @see #intern(char[],int,int)", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "dataBufferFlush", "code": "\n\n  /**\n    * Flush the contents of the data buffer to the handler, if\n    * appropriate, and reset the buffer for new input.\n    */\n  void dataBufferFlush ()\n    throws java.lang.Exception\n  {\n    if (dataBufferPos > 0) {\n      switch (currentElementContent) {\n      case CONTENT_UNDECLARED:\n      case CONTENT_EMPTY:\n\t// do nothing\n\tbreak;\n      case CONTENT_MIXED:\n      case CONTENT_ANY:\n\tif (handler != null) {\n\t  handler.charData(dataBuffer, 0, dataBufferPos);\n\t}\n\tbreak;\n      case CONTENT_ELEMENTS:", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [5, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [8, 12], [10, 13], [12, 14], [13, 15], [8, 16], [10, 17], [16, 18], [17, 19], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 5], [7, 3], [8, 3], [9, 3], [10, 3], [11, 3], [12, 8], [13, 10], [14, 12], [15, 13], [16, 8], [17, 10], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "require", "code": "  }\n\n\n  /**\n    * Require a string to appear, or throw an exception.\n    */", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "require", "code": "  }\n\n\n  /**\n    * Require a character to appear, or throw an exception.\n    */\n  void require (char delim)", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [6, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 6], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "intern", "code": "    * <p>Note that this will not return the same results as String.intern().\n    * @param s The string to internalise.\n    * @return An internalised version of the string.\n    * @see #intern(char[],int,int)", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "intern", "code": "    * @param start the starting position in the array.\n    * @param length the number of characters to place in the string.\n    * @return an internalised string.\n    * @see #intern(String)\n    * @see java.lang.String#intern\n    */\n  public String intern (char ch[], int start, int length)\n  {\n    int index;\n    int hash = 0;\n\n\t\t\t\t// Generate a hash code.\n    for (int i = start; i < start + length; i++) {\n      hash = ((hash << 1) & 0xffffff) + (int)ch[i];\n    }\n\n    hash = hash % SYMBOL_TABLE_LENGTH;\n\n\t\t\t\t// Get the bucket.\n    Object bucket[] = (Object[])symbolTable[hash];\n    if (bucket == null) {\n      symbolTable[hash] = bucket = new Object[8];\n    }\n\n\t\t\t\t// Search for a matching tuple, and\n\t\t\t\t// return the string if we find one.\n    for (index = 0; index < bucket.length; index += 2) {\n      char chFound[] = (char[])bucket[index];\n\n\t\t\t\t// Stop when we hit a null index.\n      if (chFound == null) {\n\tbreak;\n      }\n\n\t\t\t\t// If they're the same length,\n\t\t\t\t// check for a match.\n\t\t\t\t// If the loop finishes, 'index' will\n\t\t\t\t// contain the current bucket\n\t\t\t\t// position.\n      if (chFound.length == length) {\n\tfor (int i = 0; i < chFound.length; i++) {\n\t\t\t\t// Stop if there are no more tuples.\n\t  if (ch[start+i] != chFound[i]) {\n\t    break;\n\t  } else if (i == length-1) {\n\t\t\t\t// That's it, we have a match!\n\t    return (String)bucket[index+1];\n\t  }\n\t}\n      }\n    }\n\n\t\t\t\t// Not found -- we'll have to add it.\n\n\t\t\t\t// Do we have to grow the bucket?\n    bucket =\n      (Object[])extendArray(bucket, bucket.length, index);\n\n\t\t\t\t// OK, add it to the end of the", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LOOP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [3, 16], [3, 17], [3, 18], [4, 19], [0, 20], [6, 21], [14, 22], [2, 23], [3, 24], [3, 25], [3, 26], [16, 27], [18, 28], [19, 29], [20, 30], [21, 31], [7, 32], [15, 33], [24, 34], [25, 35], [4, 36], [6, 37], [13, 38], [24, 39], [25, 40], [35, 41], [36, 42], [37, 43], [38, 44], [39, 45], [43, 46], [39, 47], [42, 48], [46, 49], [46, 50], [47, 51], [47, 52], [39, 53], [50, 54], [51, 55], [47, 56], [51, 57], [55, 58], [58, 59], [52, 60], [57, 61], [61, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 3], [17, 3], [18, 3], [19, 4], [20, 0], [21, 6], [22, 14], [23, 2], [24, 3], [25, 3], [26, 3], [27, 16], [28, 18], [29, 19], [30, 20], [31, 21], [32, 7], [33, 15], [34, 24], [35, 25], [36, 4], [37, 6], [38, 13], [39, 24], [40, 25], [41, 35], [42, 36], [43, 37], [44, 38], [45, 39], [46, 43], [47, 39], [48, 42], [49, 46], [50, 46], [51, 47], [52, 47], [53, 39], [54, 50], [55, 51], [56, 47], [57, 51], [58, 55], [59, 58], [60, 52], [61, 57], [62, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "extendArray", "code": "\n\n  /**\n    * Ensure the capacity of an array, allocating a new one if\n    * necessary.\n    */\n  Object extendArray (Object array, int currentSize, int requiredSize)\n  {\n    if (requiredSize < currentSize) {\n      return array;\n    } else {\n      Object newArray = null;\n      int newSize = currentSize * 2;\n\n      if (newSize <= requiredSize) {\n\tnewSize = requiredSize + 1;\n      }\n\n      if (array instanceof char[]) {\n\tnewArray = new char[currentSize * 2];", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [7, 13], [7, 14], [8, 15], [12, 16], [12, 17], [13, 18], [9, 19], [10, 20], [7, 21], [8, 22], [19, 23], [13, 24], [22, 25], [21, 26], [25, 27], [24, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 7], [14, 7], [15, 8], [16, 12], [17, 12], [18, 13], [19, 9], [20, 10], [21, 7], [22, 8], [23, 19], [24, 13], [25, 22], [26, 21], [27, 25], [28, 24], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "declaredElements", "code": "    * <p>The results will be valid only after the DTD (if any) has been\n    * parsed.\n    * @return An enumeration of all element types declared for this", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getElementContentType", "code": "    * @see #getElementContentModel\n    * @see #CONTENT_UNDECLARED\n    * @see #CONTENT_ANY\n    * @see #CONTENT_EMPTY\n    * @see #CONTENT_MIXED\n    * @see #CONTENT_ELEMENTS\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getElementContentModel", "code": "    * Look up the content model of an element.\n    * <p>The result will always be null unless the content type is\n    * CONTENT_ELEMENTS or CONTENT_MIXED.\n    * @param name The element type name.\n    * @return The normalised content model, as a string.\n    * @see #getElementContentType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setElement", "code": "\n  /**\n    * Register an element.\n    * Array format:\n    *  element type\n    *  attribute hash table\n    */\n  void setElement (String name, int contentType,\n\t\t   String contentModel, Hashtable attributes)\n    throws java.lang.Exception\n  {\n    Object element[];\n\n\t\t\t\t// Try looking up the element\n    element = (Object[])elementInfo.get(name);\n\n\t\t\t\t// Make a new one if necessary.\n    if (element == null) {\n      element = new Object[3];\n      element[0] = new Integer(CONTENT_UNDECLARED);\n      element[1] = null;\n      element[2] = null;\n    } else if (contentType != CONTENT_UNDECLARED &&\n\t       ((Integer)element[0]).intValue() != CONTENT_UNDECLARED) {\n      error(\"multiple declarations for element type\", name, null);\n      return;\n    }\n\n\t\t\t\t// Insert the content type, if any.\n    if (contentType != CONTENT_UNDECLARED) {\n      element[0] = new Integer(contentType);\n    }\n\n\t\t\t\t// Insert the content model, if any.\n    if (contentModel != null) {\n      element[1] = contentModel;\n    }\n", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [4, 14], [4, 15], [0, 16], [11, 17], [12, 18], [14, 19], [15, 20], [1, 21], [2, 22], [3, 23], [14, 24], [19, 25], [19, 26], [4, 27], [4, 28], [4, 29], [4, 30], [16, 31], [23, 32], [14, 33], [27, 34], [28, 35], [29, 36], [33, 37], [33, 38], [30, 39], [21, 40], [22, 41], [23, 42], [27, 43], [28, 44], [29, 45], [25, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 4], [15, 4], [16, 0], [17, 11], [18, 12], [19, 14], [20, 15], [21, 1], [22, 2], [23, 3], [24, 14], [25, 19], [26, 19], [27, 4], [28, 4], [29, 4], [30, 4], [31, 16], [32, 23], [33, 14], [34, 27], [35, 28], [36, 29], [37, 33], [38, 33], [39, 30], [40, 21], [41, 22], [42, 23], [43, 27], [44, 28], [45, 29], [46, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "getElementAttributes", "code": "  }\n\n\n  /**\n    * Look up the attribute hash table for an element.\n    * The hash table is the second item in the element array.\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "declaredAttributes", "code": "    *         after the DTD (if any) has been parsed.\n    * @see #getAttributeType\n    * @see #getAttributeEnumeration\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    * @see #getAttributeExpandedValue\n    */\n  public Enumeration declaredAttributes (String elname)", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getAttributeType", "code": "    * @see #ATTRIBUTE_ENTITY\n    * @see #ATTRIBUTE_ENTITIES\n    * @see #ATTRIBUTE_NMTOKEN\n    * @see #ATTRIBUTE_NMTOKENS\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getAttributeEnumeration", "code": "    * Retrieve the allowed values for an enumerated attribute type.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return A string containing the token list.\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [7, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 7], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getAttributeDefaultValue", "code": "    * Retrieve the default value of a declared attribute.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared and unspecified.\n    * @see #getAttributeExpandedValue\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [7, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 7], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getAttributeExpandedValue", "code": "    * <p>All general entities will be expanded.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The expanded default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared\n    * @see #getAttributeDefaultValue\n    */\n  public String getAttributeExpandedValue (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else if (attribute[4] == null && attribute[1] != null) {\n      try {", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "TRY", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [2, 9], [7, 10], [3, 11], [6, 12], [8, 13], [8, 14], [9, 15], [1, 16], [12, 17], [13, 18], [14, 19], [12, 20], [12, 21], [20, 22], [21, 23], [21, 24], [13, 25], [14, 26], [22, 27], [23, 28], [27, 29], [20, 30], [23, 31], [28, 32], [28, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 2], [10, 7], [11, 3], [12, 6], [13, 8], [14, 8], [15, 9], [16, 1], [17, 12], [18, 13], [19, 14], [20, 12], [21, 12], [22, 20], [23, 21], [24, 21], [25, 13], [26, 14], [27, 22], [28, 23], [29, 27], [30, 20], [31, 23], [32, 28], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getAttributeDefaultValueType", "code": "  /**\n    * Retrieve the default value type of a declared attribute.\n    * @see #ATTRIBUTE_DEFAULT_SPECIFIED\n    * @see #ATTRIBUTE_DEFAULT_IMPLIED\n    * @see #ATTRIBUTE_DEFAULT_REQUIRED\n    * @see #ATTRIBUTE_DEFAULT_FIXED\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setAttribute", "code": "    * Register an attribute declaration for later retrieval.\n    * Format:\n    * - String type\n    * - String default value\n    * - int value type\n    * *TODO: do something with attribute types.\n    */\n  void setAttribute (String elName, String name, int type, String enumeration,\n\t\t     String value, int valueType)\n    throws java.lang.Exception\n  {\n    Hashtable attlist;\n    Object attribute[];\n\n\t\t\t\t// Create a new hashtable if necessary.\n    attlist = getElementAttributes(elName);\n    if (attlist == null) {\n      attlist = new Hashtable();\n    }\n\n\t\t\t\t// Check that the attribute doesn't\n\t\t\t\t// already exist!\n    if (attlist.get(name) != null) {\n      return;\n    } else {\n      attribute = new Object[5];\n      attribute[0] = new Integer(type);\n      attribute[1] = value;\n      attribute[2] = new Integer(valueType);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [0, 13], [1, 14], [11, 15], [11, 16], [12, 17], [13, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [2, 27], [19, 28], [20, 29], [21, 30], [23, 31], [25, 32], [27, 33], [26, 34], [21, 35], [22, 36], [23, 37], [24, 38], [25, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 0], [14, 1], [15, 11], [16, 11], [17, 12], [18, 13], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 2], [28, 19], [29, 20], [30, 21], [31, 23], [32, 25], [33, 27], [34, 26], [35, 21], [36, 22], [37, 23], [38, 24], [39, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getAttribute", "code": "  }\n\n\n  /**\n    * Retrieve the three-member array representing an\n    * attribute declaration.\n    */\n  Object[] getAttribute (String elName, String name)\n  {\n    Hashtable attlist;\n    Object attribute[];\n", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [2, 10], [8, 11], [9, 12], [7, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 2], [11, 8], [12, 9], [13, 7], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "declaredEntities", "code": "    *         after the DTD (if any) has been parsed.\n    * @see #getEntityType\n    * @see #getEntityPublicId", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEntityType", "code": "    * Find the type of an entity.\n    * @returns An integer constant representing the entity type.\n    * @see #ENTITY_UNDECLARED\n    * @see #ENTITY_INTERNAL\n    * @see #ENTITY_NDATA\n    * @see #ENTITY_TEXT\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getEntityPublicId", "code": "    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, if it is not an\n    *         external entity, or if no public identifier was\n    *         provided.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getEntitySystemId", "code": "    * Return an external entity's system identifier.\n    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, or if it is not an\n    *         external entity.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getEntityValue", "code": "  /**\n    * Return the value of an internal entity.\n    * @param ename The name of the internal entity.\n    * @return The entity's value, or null if the entity was\n    *         not declared, or if it is not an internal entity.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getEntityNotationName", "code": "    * Get the notation name associated with an NDATA entity.\n    * @param ename The NDATA entity name.\n    * @return The associated notation name, or null if the\n    *         entity was not declared, or if it is not an\n    *         NDATA entity.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setInternalEntity", "code": "    }\n  }\n", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExternalDataEntity", "code": "    setEntity(eName, ENTITY_INTERNAL, null, null, value, null);\n  }\n\n", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExternalTextEntity", "code": "    setEntity(eName, ENTITY_NDATA, pubid, sysid, null, nName);\n  }\n", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setEntity", "code": "    setEntity(eName, ENTITY_TEXT, pubid, sysid, null, null);\n  }\n\n\n  /**\n    * Register an entity declaration for later retrieval.\n    */\n  void setEntity (String eName, int eClass,\n\t\t  String pubid, String sysid,\n\t\t  String value, String nName)\n  {\n    Object entity[];\n\n    if (entityInfo.get(eName) == null) {\n      entity = new Object[5];", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [9, 10], [9, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [17, 19], [18, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 9], [11, 9], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 17], [20, 18], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "declaredNotations", "code": "    * Get declared notations.\n    * @return An Enumeration of all the notations declared for\n    *         this XML document.  The results will be valid only", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNotationPublicId", "code": "    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the public identifier, or null\n    *         if none was provided or if no such notation was\n    *         declared.\n    * @see #getNotationSystemId\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNotationSystemId", "code": "    * You will normally use this method to look up a notation\n    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the system identifier, or null\n    *         if no such notation was declared.\n    * @see #getNotationPublicId\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setNotation", "code": "\n  /**\n    * Register a notation declaration for later retrieval.\n    * Format:\n    * - public id\n    * - system id\n    */\n  void setNotation (String nname, String pubid, String sysid)\n    throws java.lang.Exception\n  {\n    Object notation[];\n", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [9, 14], [9, 15], [13, 16], [11, 17], [12, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 9], [15, 9], [16, 13], [17, 11], [18, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getLineNumber", "code": "  // Location.\n  //\n", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getColumnNumber", "code": "    return line;\n  }\n", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "readCh", "code": "    * @return The next available input character.\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #line\n    * @return The next character from the current input source.\n    */\n  char readCh ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    // As long as there's nothing in the\n    // read buffer, try reading more data\n    // (for an external entity) or popping\n    // the entity stack (for either).\n    while (readBufferPos >= readBufferLength)\n      {\n      switch (sourceType)\n        {\n        case INPUT_READER:\n        case INPUT_EXTERNAL:\n        case INPUT_STREAM:\n        readDataChunk();\n        while (readBufferLength < 1)\n          {\n          popInput();\n          if (readBufferLength <1)\n            {\n            readDataChunk();\n            }\n          }\n        break;\n\n        default:\n        popInput();\n        break;\n        }\n      }\n\n    c = readBuffer[readBufferPos++];\n\n    // This is a particularly nasty bit\n    // of code, that checks for a parameter\n    // entity reference but peeks ahead to\n    // catch the '%' in parameter entity\n    // declarations.\n    if\n      (\n      c == '%' && \n      (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE)\n      )\n      {\n      char c2 = readCh();\n      unread(c2);\n      if (!isWhitespace(c2))\n        {\n        parsePEReference(context == CONTEXT_ENTITYVALUE);\n        return readCh();\n        }\n      }\n\n    if (c == '\\n')\n      {\n      line++;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "SWITCH", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LOOP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [0, 8], [4, 9], [6, 10], [3, 11], [3, 12], [7, 13], [7, 14], [4, 15], [2, 16], [11, 17], [3, 18], [13, 19], [13, 20], [14, 21], [16, 22], [11, 23], [12, 24], [15, 25], [15, 26], [15, 27], [23, 28], [11, 29], [15, 30], [27, 31], [15, 32], [29, 33], [27, 34], [31, 35], [34, 36], [27, 37], [36, 38], [34, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 0], [9, 4], [10, 6], [11, 3], [12, 3], [13, 7], [14, 7], [15, 4], [16, 2], [17, 11], [18, 3], [19, 13], [20, 13], [21, 14], [22, 16], [23, 11], [24, 12], [25, 15], [26, 15], [27, 15], [28, 23], [29, 11], [30, 15], [31, 27], [32, 15], [33, 29], [34, 27], [35, 31], [36, 34], [37, 27], [38, 36], [39, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "unread", "code": "    * before unreading it, but just in case, I've added a boundary\n    * condition.\n    * @param c The character to push back.\n    * @see #readCh\n    * @see #unread(String)\n    * @see #unread(char[])\n    * @see #readBuffer\n    */\n  void unread (char c)\n    throws java.lang.Exception\n    {\n    // Normal condition.\n    if (c == '\\n')\n      {\n      line--;\n      column = -1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [5, 7], [1, 8], [1, 9], [2, 10], [8, 11], [8, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 5], [8, 1], [9, 1], [10, 2], [11, 8], [12, 8], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "unread", "code": "    * <p>NOTE: you must <em>never</em> push back characters that you\n    * haven't actually read: use pushString() instead.\n    * @see #readCh\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readBuffer\n    * @see #pushString\n    */\n  void unread (char ch[], int length) \n    throws java.lang.Exception\n    {\n    for (int i = 0; i < length; i++)\n        {\n        if (ch[i] == '\\n')", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [1, 9], [1, 10], [7, 11], [2, 12], [9, 13], [9, 14], [11, 15], [7, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 1], [10, 1], [11, 7], [12, 2], [13, 9], [14, 9], [15, 11], [16, 7], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "pushURL", "code": "    * @see XmlHandler#resolveEntity\n    * @see #pushString\n    * @see #sourceType\n    * @see #pushInput\n    * @see #detectEncoding\n    * @see #sourceType\n    * @see #readBuffer\n    */\n  void pushURL (String ename, String publicId, String systemId,\n\t\tReader reader, InputStream stream, String encoding)\n    throws java.lang.Exception\n  {\n    URL url;\n    boolean ignoreEncoding = false;\n\n\t\t\t\t// Push the existing status.\n    pushInput(ename);\n\n\t\t\t\t// Create a new read buffer.\n\t\t\t\t// (Note the four-character margin)\n    readBuffer = new char[READ_BUFFER_MAX+4];\n    readBufferPos = 0;\n    readBufferLength = 0;\n    readBufferOverflow = -1;\n    is = null;\n    line = 1;\n\n    currentByteCount = 0;\n\n\t\t\t\t// Flush any remaining data.\n    dataBufferFlush();\n\n\t\t\t\t// Make the URL absolute.\n    if (systemId != null && externalEntity != null) {\n      systemId = new URL(externalEntity.getURL(), systemId).toString();\n    } else if (baseURI != null) {\n      try {\n\tsystemId = new URL(new URL(baseURI), systemId).toString();\n      } catch (Exception e) {}\n    }\n\n\t\t\t\t// See if the application wants to\n\t\t\t\t// redirect the system ID and/or\n\t\t\t\t// supply its own character stream.\n    if (systemId != null && handler != null) {\n      Object input = handler.resolveEntity(publicId, systemId);\n      if (input != null) {\n\tif (input instanceof String) {\n\t  systemId = (String)input;\n\t} else if (input instanceof InputStream) {\n\t  stream = (InputStream)input;\n\t} else if (input instanceof Reader) {\n\t  reader = (Reader)input;\n\t}\n      }\n    }\n\n\t\t\t\t// Start the entity.\n    if (handler != null) {\n      if (systemId != null) {\n\thandler.startExternalEntity(systemId);\n      } else {\n\thandler.startExternalEntity(\"[external stream]\");\n      }\n    }\n\n\t\t\t\t// Figure out what we're reading from.\n    if (reader != null) {\n\t\t\t\t// There's an explicit character stream.\n      sourceType = INPUT_READER;\n      this.reader = reader;\n      tryEncodingDecl(true);\n      return;\n    } else if (stream != null) {\n      sourceType = INPUT_STREAM;\n      is = stream;\n    } else {\n\t\t\t\t// We have to open our own stream\n\t\t\t\t// to the URL.\n\n\t\t\t\t// Set the new status\n      sourceType = INPUT_EXTERNAL;\n      url = new URL(systemId);\n\n      externalEntity = url.openConnection();\n      externalEntity.connect();\n      is = externalEntity.getInputStream();\n    }\n\n\t\t\t\t// If we get to here, there must be\n\t\t\t\t// an InputStream available.\n    if (!is.markSupported()) {\n      is = new BufferedInputStream(is);\n    }\n\n\t\t\t\t// Attempt to detect the encoding.\n    if (encoding == null && externalEntity != null) {\n      encoding = externalEntity.getContentEncoding();\n    }\n\n    if (encoding != null) {\n      checkEncoding(encoding, false);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [2, 18], [3, 19], [4, 20], [4, 21], [5, 22], [6, 23], [7, 24], [7, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [17, 35], [18, 36], [18, 37], [20, 38], [4, 39], [21, 40], [5, 41], [22, 42], [6, 43], [6, 44], [23, 45], [23, 46], [24, 47], [25, 48], [25, 49], [27, 50], [28, 51], [29, 52], [30, 53], [31, 54], [32, 55], [8, 56], [1, 57], [1, 58], [1, 59], [1, 60], [2, 61], [36, 62], [37, 63], [3, 64], [38, 65], [4, 66], [4, 67], [4, 68], [41, 69], [43, 70], [45, 71], [46, 72], [24, 73], [47, 74], [7, 75], [48, 76], [49, 77], [33, 78], [57, 79], [59, 80], [60, 81], [61, 82], [64, 83], [20, 84], [20, 85], [20, 86], [20, 87], [20, 88], [20, 89], [20, 90], [66, 91], [69, 92], [43, 93], [70, 94], [44, 95], [73, 96], [75, 97], [78, 98], [84, 99], [86, 100], [87, 101], [41, 102], [41, 103], [93, 104], [93, 105], [73, 106], [97, 107], [97, 108], [102, 109], [104, 110], [104, 111], [106, 112], [110, 113], [93, 114], [112, 115], [112, 116], [104, 117], [110, 118], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 2], [19, 3], [20, 4], [21, 4], [22, 5], [23, 6], [24, 7], [25, 7], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 17], [36, 18], [37, 18], [38, 20], [39, 4], [40, 21], [41, 5], [42, 22], [43, 6], [44, 6], [45, 23], [46, 23], [47, 24], [48, 25], [49, 25], [50, 27], [51, 28], [52, 29], [53, 30], [54, 31], [55, 32], [56, 8], [57, 1], [58, 1], [59, 1], [60, 1], [61, 2], [62, 36], [63, 37], [64, 3], [65, 38], [66, 4], [67, 4], [68, 4], [69, 41], [70, 43], [71, 45], [72, 46], [73, 24], [74, 47], [75, 7], [76, 48], [77, 49], [78, 33], [79, 57], [80, 59], [81, 60], [82, 61], [83, 64], [84, 20], [85, 20], [86, 20], [87, 20], [88, 20], [89, 20], [90, 20], [91, 66], [92, 69], [93, 43], [94, 70], [95, 44], [96, 73], [97, 75], [98, 78], [99, 84], [100, 86], [101, 87], [102, 41], [103, 41], [104, 93], [105, 93], [106, 73], [107, 97], [108, 97], [109, 102], [110, 104], [111, 104], [112, 106], [113, 110], [114, 93], [115, 112], [116, 112], [117, 104], [118, 110], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118]]}, {"function_name": "tryEncodingDecl", "code": "\t\t\t\t// Read an XML or text declaration.\n    tryEncodingDecl(ignoreEncoding);\n  }\n\n\n  /**\n    * Check for an encoding declaration.\n    */\n  void tryEncodingDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n\t\t\t\t// Read the XML/Encoding declaration.\n    if (tryRead(\"<?xml\")) {\n      if (tryWhitespace()) {", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [4, 8], [4, 9], [7, 10], [9, 11], [9, 12], [10, 13], [10, 14], [12, 15], [7, 16], [7, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 4], [9, 4], [10, 7], [11, 9], [12, 9], [13, 10], [14, 10], [15, 12], [16, 7], [17, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "detectEncoding", "code": "    * <p>I don't currently detect EBCDIC, since I'm concerned that it\n    * could also be a valid UTF-8 sequence; I'll have to do more checking\n    * later.\n    * @see #tryEncoding(byte[], byte, byte, byte, byte)\n    * @see #tryEncoding(byte[], byte, byte)\n    * @see #checkEncoding\n    * @see #read8bitEncodingDeclaration\n    */\n  void detectEncoding ()\n    throws java.lang.Exception\n  {\n    byte signature[] = new byte[4];\n\n\t\t\t\t// Read the first four bytes for\n\t\t\t\t// autodetection.\n    is.mark(4);\n    is.read(signature);\n    is.reset();\n\n\t\t\t\t// Look for a known signature.\n    if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t    (byte)0x00, (byte)0x3c)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x00 0x3c: UCS-4, big-endian (1234)\n      encoding = ENCODING_UCS_4_1234;\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x3c 0x00 0x00 0x00: UCS-4, little-endian (4321)\n      encoding = ENCODING_UCS_4_4321;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t\t   (byte)0x3c, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x3c 0x00: UCS-4, unusual (2143)\n      encoding = ENCODING_UCS_4_2143;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x3c 0x00 0x00: UCS-4, unusual (3421)\n      encoding = ENCODING_UCS_4_3412;\n    } else if (tryEncoding(signature, (byte)0xfe, (byte)0xff)) {\n      // UCS-2 with a byte-order marker.\n      // 0xfe 0xff: UCS-2, big-endian (12)\n      encoding = ENCODING_UCS_2_12;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0xff, (byte)0xfe)) {\n      // UCS-2 with a byte-order marker.\n      // 0xff 0xfe: UCS-2, little-endian (21)\n      encoding = ENCODING_UCS_2_21;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x3f)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x00 0x3c 0x00 0x3f: UCS-2, big-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_12;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x3f, (byte)0x00)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x3c 0x00 0x3f 0x00: UCS-2, little-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_21;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x3f,\n\t\t\t   (byte)0x78, (byte)0x6d)) {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [0, 6], [0, 7], [3, 8], [3, 9], [7, 10], [8, 11], [8, 12], [1, 13], [4, 14], [4, 15], [4, 16], [4, 17], [2, 18], [11, 19], [11, 20], [3, 21], [9, 22], [9, 23], [9, 24], [9, 25], [19, 26], [19, 27], [8, 28], [12, 29], [12, 30], [12, 31], [12, 32], [26, 33], [26, 34], [11, 35], [20, 36], [20, 37], [20, 38], [20, 39], [33, 40], [33, 41], [19, 42], [19, 43], [19, 44], [27, 45], [27, 46], [40, 47], [40, 48], [26, 49], [26, 50], [26, 51], [34, 52], [34, 53], [47, 54], [33, 55], [33, 56], [41, 57], [41, 58], [41, 59], [41, 60], [40, 61], [40, 62], [48, 63], [48, 64], [48, 65], [48, 66], [55, 67], [55, 68], [55, 69], [47, 70], [47, 71], [47, 72], [54, 73], [54, 74], [54, 75], [54, 76], [61, 77], [61, 78], [61, 79], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 0], [7, 0], [8, 3], [9, 3], [10, 7], [11, 8], [12, 8], [13, 1], [14, 4], [15, 4], [16, 4], [17, 4], [18, 2], [19, 11], [20, 11], [21, 3], [22, 9], [23, 9], [24, 9], [25, 9], [26, 19], [27, 19], [28, 8], [29, 12], [30, 12], [31, 12], [32, 12], [33, 26], [34, 26], [35, 11], [36, 20], [37, 20], [38, 20], [39, 20], [40, 33], [41, 33], [42, 19], [43, 19], [44, 19], [45, 27], [46, 27], [47, 40], [48, 40], [49, 26], [50, 26], [51, 26], [52, 34], [53, 34], [54, 47], [55, 33], [56, 33], [57, 41], [58, 41], [59, 41], [60, 41], [61, 40], [62, 40], [63, 48], [64, 48], [65, 48], [66, 48], [67, 55], [68, 55], [69, 55], [70, 47], [71, 47], [72, 47], [73, 54], [74, 54], [75, 54], [76, 54], [77, 61], [78, 61], [79, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "tryEncoding", "code": "    * <p>Always looks for some part of \"<?XML\" in a specific encoding.\n    * @param sig The first four bytes read.\n    * @param b1 The first byte of the signature", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [7, 9], [9, 10], [9, 11], [11, 12], [11, 13], [8, 14], [10, 15], [12, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 7], [10, 9], [11, 9], [12, 11], [13, 11], [14, 8], [15, 10], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "tryEncoding", "code": "    * Check for a two-byte signature.\n    * <p>Looks for a UCS-2 byte-order mark.\n    * <p>Utility routine for detectEncoding().", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "pushString", "code": "  /**\n    * This method pushes a string back onto input.\n    * <p>It is useful either as the expansion of an internal entity, \n    * or for backtracking during the parse.\n    * <p>Call pushCharArray() to do the actual work.", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "pushCharArray", "code": "    * for 1-character strings; this should save some time and memory.\n    * @param ch The char array to push.\n    * @see #pushString\n    * @see #pushURL\n    * @see #readBuffer\n    * @see #sourceType\n    * @see #pushInput\n    */\n  void pushCharArray (String ename, char ch[], int start, int length)\n    throws java.lang.Exception", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "pushInput", "code": "    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void pushInput (String ename)\n    throws java.lang.Exception\n  {\n    Object input[] = new Object[12];\n\n\t\t\t\t// Check for entity recursion.\n    if (ename != null) {\n      Enumeration entities = entityStack.elements();\n      while (entities.hasMoreElements()) {\n\tString e = (String)entities.nextElement();\n\tif (e == ename) {\n\t  error(\"recursive reference to entity\", ename, null);\n\t}\n      }\n    }\n    entityStack.push(ename);\n\n\t\t\t\t// Don't bother if there is no input.\n    if (sourceType == INPUT_NONE) {\n      return;\n    }\n\n\t\t\t\t// Set up a snapshot of the current\n\t\t\t\t// input source.\n    input[0] = new Integer(sourceType);\n    input[1] = externalEntity;\n    input[2] = readBuffer;\n    input[3] = new Integer(readBufferPos);\n    input[4] = new Integer(readBufferLength);\n    input[5] = new Integer(line);\n    input[6] = new Integer(encoding);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [0, 19], [2, 20], [7, 21], [8, 22], [10, 23], [11, 24], [12, 25], [13, 26], [14, 27], [17, 28], [1, 29], [2, 30], [2, 31], [20, 32], [30, 33], [3, 34], [6, 35], [7, 36], [8, 37], [9, 38], [10, 39], [11, 40], [12, 41], [13, 42], [14, 43], [15, 44], [16, 45], [17, 46], [30, 47], [30, 48], [31, 49], [47, 50], [47, 51], [48, 52], [51, 53], [51, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 0], [20, 2], [21, 7], [22, 8], [23, 10], [24, 11], [25, 12], [26, 13], [27, 14], [28, 17], [29, 1], [30, 2], [31, 2], [32, 20], [33, 30], [34, 3], [35, 6], [36, 7], [37, 8], [38, 9], [39, 10], [40, 11], [41, 12], [42, 13], [43, 14], [44, 15], [45, 16], [46, 17], [47, 30], [48, 30], [49, 31], [50, 47], [51, 47], [52, 48], [53, 51], [54, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "popInput", "code": "    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void popInput ()\n    throws java.lang.Exception\n  {\n    Object input[];\n\n\n    switch (sourceType) {\n\n    case INPUT_EXTERNAL:\n      dataBufferFlush();\n      if (handler != null && externalEntity != null) {\n\thandler.endExternalEntity(externalEntity.getURL().toString());\n      }\n      break;\n    case INPUT_STREAM:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    case INPUT_READER:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    }\n\n\t\t\t\t// Throw an EOFException if there\n\t\t\t\t// is nothing else to pop.\n    if (inputStack.isEmpty()) {\n      throw new EOFException();\n    } else {\n      String s;\n      input = (Object[])inputStack.pop();\n      s = (String)entityStack.pop();\n    }\n\n    sourceType = ((Integer)input[0]).intValue();\n    externalEntity = (URLConnection)input[1];\n    readBuffer = (char[])input[2];\n    readBufferPos = ((Integer)input[3]).intValue();", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "VAR_DECL", "THROW_RAISE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [1, 17], [1, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [1, 25], [1, 26], [18, 27], [20, 28], [2, 29], [22, 30], [2, 31], [24, 32], [2, 33], [20, 34], [28, 35], [22, 36], [30, 37], [32, 38], [32, 39], [4, 40], [5, 41], [6, 42], [7, 43], [8, 44], [9, 45], [10, 46], [11, 47], [12, 48], [13, 49], [14, 50], [15, 51], [25, 52], [26, 53], [34, 54], [36, 55], [24, 56], [38, 57], [39, 58], [54, 59], [55, 60], [56, 61], [34, 62], [36, 63], [61, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 1], [18, 1], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 1], [26, 1], [27, 18], [28, 20], [29, 2], [30, 22], [31, 2], [32, 24], [33, 2], [34, 20], [35, 28], [36, 22], [37, 30], [38, 32], [39, 32], [40, 4], [41, 5], [42, 6], [43, 7], [44, 8], [45, 9], [46, 10], [47, 11], [48, 12], [49, 13], [50, 14], [51, 15], [52, 25], [53, 26], [54, 34], [55, 36], [56, 24], [57, 38], [58, 39], [59, 54], [60, 55], [61, 56], [62, 34], [63, 36], [64, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "tryRead", "code": "    * on success, but will be put back on failure.  Do not attempt to\n    * read the character again if the method succeeds.\n    * @param delim The character that should appear next.  For a\n    *              insensitive match, you must supply this in upper-case.\n    * @return true if the character was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(String)\n    */\n  boolean tryRead (char delim)\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Read the character\n    c = readCh();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [5, 8], [6, 9], [1, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 5], [9, 6], [10, 1], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "tryRead", "code": "    * array whenever possible (probably the majority of cases).\n    * <p><b>NOTE:</b> This method currently has a hard-coded limit\n    * of 100 characters for the delimiter.\n    * @param delim The string that should appear next.\n    * @return true if the string was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(char)\n    */\n  boolean tryRead (String delim)\n    throws java.lang.Exception\n    {\n    char ch[] = delim.toCharArray();\n    char c;\n\n    // Compare the input, character-\n    // by character.\n    \n    for (int i = 0; i < ch.length; i++)\n      {\n      c=readCh();\n      if (c!=ch[i])", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [8, 10], [2, 11], [2, 12], [8, 13], [8, 14], [11, 15], [13, 16], [14, 17], [8, 18], [17, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 8], [11, 2], [12, 2], [13, 8], [14, 8], [15, 11], [16, 13], [17, 14], [18, 8], [19, 17], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "tryWhitespace", "code": "\n  /**\n    * Return true if we can read some whitespace.\n    * <p>This is simply a convenience method.\n    * <p>This method will push back a character rather than an\n    * array whenever possible (probably the majority of cases).\n    * @return true if whitespace was found.\n    */\n  boolean tryWhitespace ()\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "ASSIGN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 9], [6, 10], [1, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 4], [8, 5], [9, 1], [10, 6], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "parseUntil", "code": "    * Read all data until we find the specified string.\n    * <p>This is especially useful for scanning marked sections.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter\n    * @see #tryRead(String, boolean)\n    * @see #readCh\n    */\n  void parseUntil (String delim)\n    throws java.lang.Exception\n  {\n    char c;\n    int startLine = line;\n", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "LOOP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [5, 8], [8, 9], [8, 10], [6, 11], [6, 12], [10, 13], [10, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [8, 5], [9, 8], [10, 8], [11, 6], [12, 6], [13, 10], [14, 10], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "skipUntil", "code": "    * Skip all data until we find the specified string.\n    * <p>This is especially useful for scanning comments.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "read8bitEncodingDeclaration", "code": "    * When this method is called, we know that the declaration is\n    * present (or appears to be).  We also know that the entity is\n    * in some sort of ASCII-derived 8-bit encoding.\n    * The idea of this is to let us read what the 8-bit encoding is\n    * before we've committed to converting any more of the file; the\n    * XML or encoding declaration must be in 7-bit ASCII, so we're\n    * safe as long as we don't go past it.\n    */\n  void read8bitEncodingDeclaration ()\n    throws java.lang.Exception\n  {\n    int ch;\n    readBufferPos = readBufferLength = 0;\n\n    while (true) {\n      ch = is.read();\n      readBuffer[readBufferLength++] = (char)ch;\n      switch (ch) {\n      case (int)'>':", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "IF", "SWITCH", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 9], [1, 10], [7, 11], [6, 12], [6, 13], [6, 14], [10, 15], [5, 16], [6, 17], [6, 18], [16, 19], [16, 20], [16, 21], [17, 22], [17, 23], [17, 24], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 4], [8, 5], [9, 1], [10, 1], [11, 7], [12, 6], [13, 6], [14, 6], [15, 10], [16, 5], [17, 6], [18, 6], [19, 16], [20, 16], [21, 16], [22, 17], [23, 17], [24, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "readDataChunk", "code": "    * @see #encoding\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #filterCR\n    * @see #copyUtf8ReadBuffer\n    * @see #copyIso8859_1ReadBuffer\n    * @see #copyUcs_2ReadBuffer\n    * @see #copyUcs_4ReadBuffer\n    */\n  void readDataChunk ()\n    throws java.lang.Exception\n    {\n    int count, i, j;\n\n    // See if we have any overflow.\n    if (readBufferOverflow > -1)\n      {\n      readBuffer[0] = (char)readBufferOverflow;\n      readBufferOverflow = -1;\n      readBufferPos = 1;\n      sawCR = true;\n      }\n    else\n      {\n      readBufferPos = 0;\n      sawCR = false;\n      }\n\n    // Special situation -- we're taking\n    // input from a character stream.\n    if (sourceType == INPUT_READER)\n      {\n      count = reader.read(readBuffer, readBufferPos, READ_BUFFER_MAX-1);\n      if (count < 0)\n        {readBufferLength = -1;}\n      else\n        {\n        readBufferLength = readBufferPos+count;\n        filterCR();\n        sawCR = false;\n        }\n      return;\n      }\n\n    // Read as many bytes as possible\n    // into the read buffer.\n    count = is.read(rawReadBuffer, 0, READ_BUFFER_MAX);\n\n    // Dispatch to an encoding-specific\n    // reader method to populate the\n    // readBuffer.\n    switch (encoding)\n      {\n      case ENCODING_UTF_8:\n      copyUtf8ReadBuffer(count);\n      break;\n      \n      case ENCODING_ISO_8859_1:\n      copyIso8859_1ReadBuffer(count);\n      break;\n      \n      case ENCODING_UCS_2_12:\n      copyUcs2ReadBuffer(count, 8, 0);\n      break;\n      \n      case ENCODING_UCS_2_21:\n      copyUcs2ReadBuffer(count, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_1234:\n      copyUcs4ReadBuffer(count, 24, 16, 8, 0);\n      break;\n      \n      case ENCODING_UCS_4_4321:\n      copyUcs4ReadBuffer(count, 0, 8, 16, 24);\n      break;\n      \n      case ENCODING_UCS_4_2143:\n      copyUcs4ReadBuffer(count, 16, 24, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_3412:\n      copyUcs4ReadBuffer(count, 8, 0, 24, 16);\n      break;\n      }\n\n    // Filter out all carriage returns\n    // if we've seen any.", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "IF", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [8, 20], [3, 21], [3, 22], [10, 23], [1, 24], [1, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [20, 34], [22, 35], [3, 36], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [24, 43], [26, 44], [26, 45], [26, 46], [26, 47], [27, 48], [27, 49], [27, 50], [27, 51], [28, 52], [28, 53], [28, 54], [28, 55], [29, 56], [29, 57], [29, 58], [29, 59], [30, 60], [30, 61], [31, 62], [31, 63], [35, 64], [36, 65], [37, 66], [38, 67], [39, 68], [40, 69], [41, 70], [22, 71], [22, 72], [22, 73], [22, 74], [65, 75], [71, 76], [73, 77], [74, 78], [75, 79], [42, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 8], [21, 3], [22, 3], [23, 10], [24, 1], [25, 1], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 20], [35, 22], [36, 3], [37, 4], [38, 4], [39, 4], [40, 4], [41, 4], [42, 4], [43, 24], [44, 26], [45, 26], [46, 26], [47, 26], [48, 27], [49, 27], [50, 27], [51, 27], [52, 28], [53, 28], [54, 28], [55, 28], [56, 29], [57, 29], [58, 29], [59, 29], [60, 30], [61, 30], [62, 31], [63, 31], [64, 35], [65, 36], [66, 37], [67, 38], [68, 39], [69, 40], [70, 41], [71, 22], [72, 22], [73, 22], [74, 22], [75, 65], [76, 71], [77, 73], [78, 74], [79, 75], [80, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "filterCR", "code": "\n\n  /**\n    * Filter carriage returns in the read buffer.\n    * <p>CRLF becomes LF; CR becomes LF.\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #readBufferOverflow\n    */\n  void filterCR ()\n    {\n    int i, j;\n    \n    readBufferOverflow = -1;\n    \n    loop: for (i = 0, j = 0; j < readBufferLength; i++, j++)\n      {\n      switch (readBuffer[j])\n        {\n        case '\\r':\n        if (j == readBufferLength - 1)\n          {\n          readBufferOverflow = '\\r';\n          readBufferLength--;\n          break loop;\n          }\n        else if (readBuffer[j+1] == '\\n')\n          {j++;}\n        readBuffer[i] = '\\n';", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [1, 8], [5, 9], [6, 10], [7, 11], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [15, 19], [15, 20], [18, 21], [19, 22], [15, 23], [20, 24], [22, 25], [15, 26], [24, 27], [26, 28], [22, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 1], [9, 5], [10, 6], [11, 7], [12, 8], [13, 8], [14, 8], [15, 8], [16, 8], [17, 8], [18, 8], [19, 15], [20, 15], [21, 18], [22, 19], [23, 15], [24, 20], [25, 22], [26, 15], [27, 24], [28, 26], [29, 22], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "copyUtf8ReadBuffer", "code": "    * readBuffer.\n    * <p>The tricky part of this is dealing with UTF-8 multi-byte \n    * sequences, but it doesn't seem to slow things down too much.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #getNextUtf8Byte\n    */\n  void copyUtf8ReadBuffer (int count)\n    throws java.lang.Exception\n  {\n    int i = 0;\n    int j = readBufferPos;\n    int b1;\n    boolean isSurrogate = false;\n    while (i < count) {\n      b1 = rawReadBuffer[i++];\n      isSurrogate = false;\n\n\t\t\t\t// Determine whether we are dealing\n\t\t\t\t// with a one-, two-, three-, or four-\n\t\t\t\t// byte sequence.\n      if ((b1 & 0x80) == 0) {\n\t// 1-byte sequence: 000000000xxxxxxx = 0xxxxxxx\n\treadBuffer[j++] = (char)b1;\n      } else if ((b1 & 0xe0) == 0xc0) {\n\t// 2-byte sequence: 00000yyyyyxxxxxx = 110yyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x1f) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf0) == 0xe0) {\n\t// 3-byte sequence: zzzzyyyyyyxxxxxx = 1110zzzz 10yyyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x0f) << 12) |\n\t\t (getNextUtf8Byte(i++, count) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf8) == 0xf0) {\n\t// 4-byte sequence: 11101110wwwwzzzzyy + 110111yyyyxxxxxx\n\t//     = 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx\n\t// (uuuuu = wwww + 1)\n\tisSurrogate = true;\n\tint b2 = getNextUtf8Byte(i++, count);\n\tint b3 = getNextUtf8Byte(i++, count);\n\tint b4 = getNextUtf8Byte(i++, count);\n\treadBuffer[j++] =\n\t  (char)(0xd800 |\n\t\t ((((b1 & 0x07) << 2) | ((b2 & 0x30) >> 4) - 1) << 6) |\n\t\t ((b2 & 0x0f) << 2) |\n\t\t ((b3 & 0x30) >> 4));\n\treadBuffer[j++] =\n\t  (char)(0xdc |\n\t\t ((b3 & 0x0f) << 6) |\n\t\t b4);\n\t\t\t\t// TODO: test that surrogate value is legal.\n      } else {", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [9, 13], [10, 14], [10, 15], [1, 16], [1, 17], [13, 18], [14, 19], [14, 20], [15, 21], [15, 22], [16, 23], [9, 24], [19, 25], [19, 26], [20, 27], [20, 28], [10, 29], [22, 30], [24, 31], [13, 32], [25, 33], [26, 34], [26, 35], [14, 36], [28, 37], [32, 38], [25, 39], [25, 40], [25, 41], [33, 42], [33, 43], [19, 44], [35, 45], [25, 46], [25, 47], [25, 48], [25, 49], [43, 50], [36, 51], [46, 52], [39, 53], [40, 54], [41, 55], [49, 56], [44, 57], [51, 58], [51, 59], [47, 60], [48, 61], [57, 62], [57, 63], [59, 64], [59, 65], [60, 66], [61, 67], [61, 68], [63, 69], [63, 70], [65, 71], [66, 72], [66, 73], [67, 74], [67, 75], [68, 76], [68, 77], [69, 78], [69, 79], [70, 80], [70, 81], [72, 82], [72, 83], [75, 84], [76, 85], [76, 86], [77, 87], [77, 88], [81, 89], [83, 90], [86, 91], [87, 92], [87, 93], [93, 94], [93, 95], [94, 96], [94, 97], [95, 98], [95, 99], [97, 100], [97, 101], [99, 102], [101, 103], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 9], [14, 10], [15, 10], [16, 1], [17, 1], [18, 13], [19, 14], [20, 14], [21, 15], [22, 15], [23, 16], [24, 9], [25, 19], [26, 19], [27, 20], [28, 20], [29, 10], [30, 22], [31, 24], [32, 13], [33, 25], [34, 26], [35, 26], [36, 14], [37, 28], [38, 32], [39, 25], [40, 25], [41, 25], [42, 33], [43, 33], [44, 19], [45, 35], [46, 25], [47, 25], [48, 25], [49, 25], [50, 43], [51, 36], [52, 46], [53, 39], [54, 40], [55, 41], [56, 49], [57, 44], [58, 51], [59, 51], [60, 47], [61, 48], [62, 57], [63, 57], [64, 59], [65, 59], [66, 60], [67, 61], [68, 61], [69, 63], [70, 63], [71, 65], [72, 66], [73, 66], [74, 67], [75, 67], [76, 68], [77, 68], [78, 69], [79, 69], [80, 70], [81, 70], [82, 72], [83, 72], [84, 75], [85, 76], [86, 76], [87, 77], [88, 77], [89, 81], [90, 83], [91, 86], [92, 87], [93, 87], [94, 93], [95, 93], [96, 94], [97, 94], [98, 95], [99, 95], [100, 97], [101, 97], [102, 99], [103, 101], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103]]}, {"function_name": "getNextUtf8Byte", "code": "    * Return the next byte value in a UTF-8 sequence.\n    * If it is not possible to get a byte from the current\n    * entity, throw an exception.\n    * @param pos The current position in the rawReadBuffer.\n    * @param count The number of bytes in the rawReadBuffer\n    * @return The significant six bits of a non-initial byte in\n    *         a UTF-8 sequence.\n    * @exception EOFException If the sequence is incomplete.\n    */\n  int getNextUtf8Byte (int pos, int count)\n    throws java.lang.Exception\n  {\n    int val;\n\n\t\t\t\t// Take a character from the buffer\n\t\t\t\t// or from the actual input stream.\n    if (pos < count) {\n      val = rawReadBuffer[pos];\n    } else {\n      val = is.read();\n      if (val == -1) {\n\tencodingError(\"unfinished multi-byte UTF-8 sequence at EOF\", -1, pos);\n      }\n    }\n", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [7, 10], [8, 11], [8, 12], [3, 13], [2, 14], [12, 15], [13, 16], [3, 17], [3, 18], [14, 19], [14, 20], [16, 21], [17, 22], [19, 23], [13, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 7], [11, 8], [12, 8], [13, 3], [14, 2], [15, 12], [16, 13], [17, 3], [18, 3], [19, 14], [20, 14], [21, 16], [22, 17], [23, 19], [24, 13], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "copyIso8859_1ReadBuffer", "code": "    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>This is a direct conversion, with no tricks.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyIso8859_1ReadBuffer (int count)", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [8, 10], [1, 11], [10, 12], [8, 13], [11, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 8], [11, 1], [12, 10], [13, 8], [14, 11], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "copyUcs2ReadBuffer", "code": "    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs2ReadBuffer (int count, int shift1, int shift2)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n\n    if (count > 0 && (count % 2) != 0) {\n      encodingError(\"odd number of bytes in UCS-2 encoding\", -1, count);\n    }", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [2, 10], [1, 11], [8, 12], [10, 13], [10, 14], [11, 15], [1, 16], [1, 17], [2, 18], [13, 19], [13, 20], [14, 21], [15, 22], [18, 23], [18, 24], [20, 25], [11, 26], [16, 27], [26, 28], [15, 29], [27, 30], [27, 31], [29, 32], [30, 33], [31, 34], [33, 35], [34, 36], [33, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 2], [11, 1], [12, 8], [13, 10], [14, 10], [15, 11], [16, 1], [17, 1], [18, 2], [19, 13], [20, 13], [21, 14], [22, 15], [23, 18], [24, 18], [25, 20], [26, 11], [27, 16], [28, 26], [29, 15], [30, 27], [31, 27], [32, 29], [33, 30], [34, 31], [35, 33], [36, 34], [37, 33], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "copyUcs4ReadBuffer", "code": "    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @param shift3 The number of bits to shift byte 2\n    * @param shift4 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs4ReadBuffer (int count, int shift1, int shift2,\n\t\t\t   int shift3, int shift4)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n    int value;\n\n    if (count > 0 && (count % 4) != 0) {\n      encodingError(\"number of bytes in UCS-4 encoding not divisible by 4\",\n\t\t    -1, count);\n    }\n    for (int i = 0; i < count; i+=4) {\n      value = (((rawReadBuffer[i] & 0xff) << shift1) |\n\t       ((rawReadBuffer[i+1] & 0xff) << shift2) |\n\t       ((rawReadBuffer[i+2] & 0xff) << shift3) |\n\t       ((rawReadBuffer[i+3] & 0xff) << shift4));\n      if (value < 0x0000ffff) {\n\treadBuffer[j++] = (char)value;\n\tif (value == (int)'\\r') {\n\t  sawCR = true;\n\t}", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [2, 13], [1, 14], [11, 15], [13, 16], [13, 17], [14, 18], [14, 19], [1, 20], [1, 21], [2, 22], [16, 23], [16, 24], [17, 25], [18, 26], [14, 27], [19, 28], [20, 29], [22, 30], [22, 31], [24, 32], [26, 33], [27, 34], [14, 35], [29, 36], [29, 37], [18, 38], [18, 39], [18, 40], [36, 41], [37, 42], [37, 43], [38, 44], [27, 45], [34, 46], [41, 47], [42, 48], [43, 49], [43, 50], [39, 51], [40, 52], [45, 53], [48, 54], [49, 55], [50, 56], [51, 57], [51, 58], [52, 59], [52, 60], [41, 61], [55, 62], [56, 63], [57, 64], [59, 65], [59, 66], [61, 67], [48, 68], [66, 69], [68, 70], [55, 71], [71, 72], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 2], [14, 1], [15, 11], [16, 13], [17, 13], [18, 14], [19, 14], [20, 1], [21, 1], [22, 2], [23, 16], [24, 16], [25, 17], [26, 18], [27, 14], [28, 19], [29, 20], [30, 22], [31, 22], [32, 24], [33, 26], [34, 27], [35, 14], [36, 29], [37, 29], [38, 18], [39, 18], [40, 18], [41, 36], [42, 37], [43, 37], [44, 38], [45, 27], [46, 34], [47, 41], [48, 42], [49, 43], [50, 43], [51, 39], [52, 40], [53, 45], [54, 48], [55, 49], [56, 50], [57, 51], [58, 51], [59, 52], [60, 52], [61, 41], [62, 55], [63, 56], [64, 57], [65, 59], [66, 59], [67, 61], [68, 48], [69, 66], [70, 68], [71, 55], [72, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72]]}, {"function_name": "encodingError", "code": "      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Report a character encoding error.\n    */\n  void encodingError (String message, int value, int offset)\n    throws java.lang.Exception\n  {\n    String uri;\n\n    if (value >= 0) {", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [7, 10], [7, 11], [8, 12], [9, 13], [1, 14], [1, 15], [2, 16], [15, 17], [16, 18], [17, 19], [18, 20], [18, 21], [21, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 7], [11, 7], [12, 8], [13, 9], [14, 1], [15, 1], [16, 2], [17, 15], [18, 16], [19, 17], [20, 18], [21, 18], [22, 21], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "initializeVariables", "code": "\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Local Variables.\n  //////////////////////////////////////////////////////////////////////\n\n  /**\n    * Re-initialize the variables for each parse.\n    */\n  void initializeVariables ()\n  {\n\t\t\t\t// No errors; first line\n    errorCount = 0;\n    line = 1;\n    column = 0;\n\n\t\t\t\t// Set up the buffers for data and names\n    dataBufferPos = 0;\n    dataBuffer = new char[DATA_BUFFER_INITIAL];\n    nameBufferPos = 0;\n    nameBuffer = new char[NAME_BUFFER_INITIAL];\n\n\t\t\t\t// Set up the DTD hash tables\n    elementInfo = new Hashtable();\n    entityInfo = new Hashtable();\n    notationInfo = new Hashtable();\n\n\t\t\t\t// Set up the variables for the current\n\t\t\t\t// element context.\n    currentElement = null;\n    currentElementContent = CONTENT_UNDECLARED;\n\n\t\t\t\t// Set up the input variables\n    sourceType = INPUT_NONE;\n    inputStack = new Stack();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [3, 23], [6, 24], [7, 25], [8, 26], [9, 27], [12, 28], [13, 29], [14, 30], [15, 31], [17, 32], [19, 33], [20, 34], [21, 35], [22, 36], [5, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 3], [24, 6], [25, 7], [26, 8], [27, 9], [28, 12], [29, 13], [30, 14], [31, 15], [32, 17], [33, 19], [34, 20], [35, 21], [36, 22], [37, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "cleanupVariables", "code": "    context = CONTEXT_NONE;\n\n    symbolTable = new Object[SYMBOL_TABLE_LENGTH];\n  }\n\n\n  /**\n    * Clean up after the parse to allow some garbage collection.\n    * Leave around anything that might be useful for queries.\n    */\n  void cleanupVariables ()\n  {\n    errorCount = -1;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [3, 14], [6, 15], [7, 16], [8, 17], [9, 18], [10, 19], [11, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 3], [15, 6], [16, 7], [17, 8], [18, 9], [19, 10], [20, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "XmlParser", "code": "    */", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "log4j-1.2-5027", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/xml/DOMConfigurator.java", "language": "java", "name": "org.apache.log4j.xml.DOMConfigurator", "code": "public class DOMConfigurator implements Configurator {\n\n  static final String CONFIGURATION_TAG = \"log4j:configuration\";\n  static final String OLD_CONFIGURATION_TAG = \"configuration\";\n  static final String RENDERER_TAG      = \"renderer\";\n  private static final String THROWABLE_RENDERER_TAG = \"throwableRenderer\";\n  static final String APPENDER_TAG \t= \"appender\";\n  static final String APPENDER_REF_TAG \t= \"appender-ref\";  \n  static final String PARAM_TAG    \t= \"param\";\n  static final String LAYOUT_TAG\t= \"layout\";\n  static final String CATEGORY\t\t= \"category\";\n  static final String LOGGER\t\t= \"logger\";\n  static final String LOGGER_REF\t= \"logger-ref\";\n  static final String CATEGORY_FACTORY_TAG  = \"categoryFactory\";\n  static final String LOGGER_FACTORY_TAG  = \"loggerFactory\";\n  static final String NAME_ATTR\t\t= \"name\";\n  static final String CLASS_ATTR        = \"class\";\n  static final String VALUE_ATTR\t= \"value\";\n  static final String ROOT_TAG\t\t= \"root\";\n  static final String ROOT_REF\t\t= \"root-ref\";\n  static final String LEVEL_TAG\t        = \"level\";\n  static final String PRIORITY_TAG      = \"priority\";\n  static final String FILTER_TAG\t= \"filter\";\n  static final String ERROR_HANDLER_TAG\t= \"errorHandler\";\n  static final String REF_ATTR\t\t= \"ref\";\n  static final String ADDITIVITY_ATTR    = \"additivity\";  \n  static final String THRESHOLD_ATTR       = \"threshold\";\n  static final String CONFIG_DEBUG_ATTR  = \"configDebug\";\n  static final String INTERNAL_DEBUG_ATTR  = \"debug\";\n  private static final String RESET_ATTR  = \"reset\";\n  static final String RENDERING_CLASS_ATTR = \"renderingClass\";\n  static final String RENDERED_CLASS_ATTR = \"renderedClass\";\n\n  static final String EMPTY_STR = \"\";\n  static final Class[] ONE_STRING_PARAM = new Class[] {String.class};\n\n  final static String dbfKey = \"javax.xml.parsers.DocumentBuilderFactory\";\n\n  \n  // key: appenderName, value: appender\n  Hashtable appenderBag;\n\n  Properties props;\n  LoggerRepository repository;\n\n  protected LoggerFactory catFactory = null;\n\n  /**\n     No argument constructor.\n  */\n  public\n  DOMConfigurator () { \n    appenderBag = new Hashtable();\n  }\n\n  /**\n     Used internally to parse appenders by IDREF name.\n  */\n  protected\n  Appender findAppenderByName(Document doc, String appenderName)  {      \n    Appender appender = (Appender) appenderBag.get(appenderName);\n\n    if(appender != null) {\n      return appender;\n    } else {\n      // Doesn't work on DOM Level 1 :\n      // Element element = doc.getElementById(appenderName);\n                        \n      // Endre's hack:\n      Element element = null;\n      NodeList list = doc.getElementsByTagName(\"appender\");\n      for (int t=0; t < list.getLength(); t++) {\n\tNode node = list.item(t);\n\tNamedNodeMap map= node.getAttributes();\n\tNode attrNode = map.getNamedItem(\"name\");\n\tif (appenderName.equals(attrNode.getNodeValue())) {\n\t  element = (Element) node;\n\t  break;\n\t}\n      }\n      // Hack finished.\n\n      if(element == null) {\n\tLogLog.error(\"No appender named [\"+appenderName+\"] could be found.\"); \n\treturn null;\n      } else {\n\t      appender = parseAppender(element);\n          if (appender != null) {\n            appenderBag.put(appenderName, appender);\n          }\n    return appender;\n      }\n    } \n  }\n  /**\n     Used internally to parse appenders by IDREF element.\n   */\n  protected\n  Appender findAppenderByReference(Element appenderRef) {    \n    String appenderName = subst(appenderRef.getAttribute(REF_ATTR));    \n    Document doc = appenderRef.getOwnerDocument();\n    return findAppenderByName(doc, appenderName);\n  }\n\n    /**\n     * Delegates unrecognized content to created instance if\n     * it supports UnrecognizedElementParser.\n     * @since 1.2.15\n     * @param instance instance, may be null.\n     * @param element element, may not be null.\n     * @param props properties\n     * @throws IOException thrown if configuration of owner object\n     * should be abandoned.\n     */\n  private static void parseUnrecognizedElement(final Object instance,\n                                        final Element element,\n                                        final Properties props) throws Exception {\n      boolean recognized = false;\n      if (instance instanceof UnrecognizedElementHandler) {\n          recognized = ((UnrecognizedElementHandler) instance).parseUnrecognizedElement(\n                  element, props);\n      }\n      if (!recognized) {\n          LogLog.warn(\"Unrecognized element \" + element.getNodeName());\n      }\n  }\n\n    /**\n      * Delegates unrecognized content to created instance if\n      * it supports UnrecognizedElementParser and catches and\n     *  logs any exception.\n      * @since 1.2.15\n      * @param instance instance, may be null.\n      * @param element element, may not be null.\n      * @param props properties\n      */\n   private static void quietParseUnrecognizedElement(final Object instance,\n                                          final Element element,\n                                          final Properties props) {\n      try {\n          parseUnrecognizedElement(instance, element, props);\n      } catch (Exception ex) {\n          if (ex instanceof InterruptedException || ex instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n          LogLog.error(\"Error in extension content: \", ex);\n      }\n  }\n\n  /**\n     Used internally to parse an appender element.\n   */\n  protected\n  Appender parseAppender (Element appenderElement) {\n    String className = subst(appenderElement.getAttribute(CLASS_ATTR));\n    LogLog.debug(\"Class name: [\" + className+']');    \n    try {\n      Object instance \t= Loader.loadClass(className).newInstance();\n      Appender appender\t= (Appender)instance;\n      PropertySetter propSetter = new PropertySetter(appender);\n\n      appender.setName(subst(appenderElement.getAttribute(NAME_ATTR)));\n      \n      NodeList children\t= appenderElement.getChildNodes();\n      final int length \t= children.getLength();\n\n      for (int loop = 0; loop < length; loop++) {\n\tNode currentNode = children.item(loop);\n\n\t/* We're only interested in Elements */\n\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t  Element currentElement = (Element)currentNode;\n\n\t  // Parse appender parameters \n\t  if (currentElement.getTagName().equals(PARAM_TAG)) {\n            setParameter(currentElement, propSetter);\n\t  }\n\t  // Set appender layout\n\t  else if (currentElement.getTagName().equals(LAYOUT_TAG)) {\n\t    appender.setLayout(parseLayout(currentElement));\n\t  }\n\t  // Add filters\n\t  else if (currentElement.getTagName().equals(FILTER_TAG)) {\n\t    parseFilters(currentElement, appender);\n\t  }\n\t  else if (currentElement.getTagName().equals(ERROR_HANDLER_TAG)) {\n\t    parseErrorHandler(currentElement, appender);\n\t  }\n\t  else if (currentElement.getTagName().equals(APPENDER_REF_TAG)) {\n\t    String refName = subst(currentElement.getAttribute(REF_ATTR));\n\t    if(appender instanceof AppenderAttachable) {\n\t      AppenderAttachable aa = (AppenderAttachable) appender;\n\t      LogLog.debug(\"Attaching appender named [\"+ refName+\n\t\t\t   \"] to appender named [\"+ appender.getName()+\"].\");\n\t      aa.addAppender(findAppenderByReference(currentElement));\n\t    } else {\n\t      LogLog.error(\"Requesting attachment of appender named [\"+\n\t\t\t   refName+ \"] to appender named [\"+ appender.getName()+\n                \"] which does not implement org.apache.log4j.spi.AppenderAttachable.\");\n\t    }\n\t  } else {\n          parseUnrecognizedElement(instance, currentElement, props);\n      }\n\t}\n      }\n      propSetter.activate();\n      return appender;\n    }\n    /* Yes, it's ugly.  But all of these exceptions point to the same\n       problem: we can't create an Appender */\n    catch (Exception oops) {\n        if (oops instanceof InterruptedException || oops instanceof InterruptedIOException) {\n            Thread.currentThread().interrupt();\n        }\n      LogLog.error(\"Could not create an Appender. Reported error follows.\",\n\t\t   oops);\n      return null;\n    }\n  }\n\n  /**\n     Used internally to parse an {@link ErrorHandler} element.\n   */\n  protected\n  void parseErrorHandler(Element element, Appender appender) {\n    ErrorHandler eh = (ErrorHandler) OptionConverter.instantiateByClassName(\n                                       subst(element.getAttribute(CLASS_ATTR)),\n                                       org.apache.log4j.spi.ErrorHandler.class, \n \t\t\t\t       null);\n    \n    if(eh != null) {\n      eh.setAppender(appender);\n\n      PropertySetter propSetter = new PropertySetter(eh);\n      NodeList children = element.getChildNodes();\n      final int length \t= children.getLength();\n\n      for (int loop = 0; loop < length; loop++) {\n\tNode currentNode = children.item(loop);\n\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t  Element currentElement = (Element) currentNode;\n\t  String tagName = currentElement.getTagName();\n\t  if(tagName.equals(PARAM_TAG)) {\n            setParameter(currentElement, propSetter);\n\t  } else if(tagName.equals(APPENDER_REF_TAG)) {\n\t    eh.setBackupAppender(findAppenderByReference(currentElement));\n\t  } else if(tagName.equals(LOGGER_REF)) {\n\t    String loggerName = currentElement.getAttribute(REF_ATTR);\t    \n\t    Logger logger = (catFactory == null) ? repository.getLogger(loggerName)\n                : repository.getLogger(loggerName, catFactory);\n\t    eh.setLogger(logger);\n\t  } else if(tagName.equals(ROOT_REF)) {\n\t    Logger root = repository.getRootLogger();\n\t    eh.setLogger(root);\n\t  } else {\n          quietParseUnrecognizedElement(eh, currentElement, props);\n      }\n\t}\n      }\n      propSetter.activate();\n      appender.setErrorHandler(eh);\n    }\n  }\n  \n  /**\n     Used internally to parse a filter element.\n   */\n  protected\n  void parseFilters(Element element, Appender appender) {\n    String clazz = subst(element.getAttribute(CLASS_ATTR));\n    Filter filter = (Filter) OptionConverter.instantiateByClassName(clazz,\n                                                Filter.class, null);\n    \n    if(filter != null) {\n      PropertySetter propSetter = new PropertySetter(filter);\n      NodeList children = element.getChildNodes();\n      final int length \t= children.getLength();\n\n      for (int loop = 0; loop < length; loop++) {\n\tNode currentNode = children.item(loop);\n\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t  Element currentElement = (Element) currentNode;\n\t  String tagName = currentElement.getTagName();\n\t  if(tagName.equals(PARAM_TAG)) {\n            setParameter(currentElement, propSetter);\n\t  } else {\n            quietParseUnrecognizedElement(filter, currentElement, props);\n      }\n\t}\n      }\n      propSetter.activate();\n      LogLog.debug(\"Adding filter of type [\"+filter.getClass()\n\t\t   +\"] to appender named [\"+appender.getName()+\"].\");\n      appender.addFilter(filter);\n    }    \n  }\n  \n  /**\n     Used internally to parse an category element.\n  */\n  protected\n  void parseCategory (Element loggerElement) {\n    // Create a new org.apache.log4j.Category object from the <category> element.\n    String catName = subst(loggerElement.getAttribute(NAME_ATTR));\n\n    Logger cat;    \n\n    String className = subst(loggerElement.getAttribute(CLASS_ATTR));\n\n\n    if(EMPTY_STR.equals(className)) {\n      LogLog.debug(\"Retreiving an instance of org.apache.log4j.Logger.\");\n      cat = (catFactory == null) ? repository.getLogger(catName) : repository.getLogger(catName, catFactory);\n    }\n    else {\n      LogLog.debug(\"Desired logger sub-class: [\"+className+']');\n       try {\t \n\t Class clazz = Loader.loadClass(className);\n\t Method getInstanceMethod = clazz.getMethod(\"getLogger\", \n\t\t\t\t\t\t    ONE_STRING_PARAM);\n\t cat = (Logger) getInstanceMethod.invoke(null, new Object[] {catName});\n       } catch (InvocationTargetException oops) {\n          if (oops.getTargetException() instanceof InterruptedException\n                  || oops.getTargetException() instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n          LogLog.error(\"Could not retrieve category [\"+catName+\n\t\t      \"]. Reported error follows.\", oops);\n\t      return;\n       } catch (Exception oops) {\n\t      LogLog.error(\"Could not retrieve category [\"+catName+\n\t\t      \"]. Reported error follows.\", oops);\n\t      return;\n       }\n    }\n\n    // Setting up a category needs to be an atomic operation, in order\n    // to protect potential log operations while category\n    // configuration is in progress.\n    synchronized(cat) {\n      boolean additivity = OptionConverter.toBoolean(\n                           subst(loggerElement.getAttribute(ADDITIVITY_ATTR)),\n\t\t\t   true);\n    \n      LogLog.debug(\"Setting [\"+cat.getName()+\"] additivity to [\"+additivity+\"].\");\n      cat.setAdditivity(additivity);\n      parseChildrenOfLoggerElement(loggerElement, cat, false);\n    }\n  }\n\n\n  /**\n     Used internally to parse the category factory element.\n  */\n  protected\n  void parseCategoryFactory(Element factoryElement) {\n    String className = subst(factoryElement.getAttribute(CLASS_ATTR));\n\n    if(EMPTY_STR.equals(className)) {\n      LogLog.error(\"Category Factory tag \" + CLASS_ATTR + \" attribute not found.\");\n      LogLog.debug(\"No Category Factory configured.\");\n    }\n    else {\n      LogLog.debug(\"Desired category factory: [\"+className+']');\n      Object factory = OptionConverter.instantiateByClassName(className,\n                                                                 LoggerFactory.class, \n                                                                 null);\n      if (factory instanceof LoggerFactory) {\n          catFactory = (LoggerFactory) factory;\n      } else {\n          LogLog.error(\"Category Factory class \" + className + \" does not implement org.apache.log4j.LoggerFactory\");\n      }\n      PropertySetter propSetter = new PropertySetter(factory);\n\n      Element  currentElement = null;\n      Node     currentNode    = null;\n      NodeList children       = factoryElement.getChildNodes();\n      final int length        = children.getLength();\n\n      for (int loop=0; loop < length; loop++) {\n        currentNode = children.item(loop);\n\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t  currentElement = (Element)currentNode;\n\t  if (currentElement.getTagName().equals(PARAM_TAG)) {\n\t    setParameter(currentElement, propSetter);\n\t  } else {\n           quietParseUnrecognizedElement(factory, currentElement, props);\n      }\n\t}\n      }\n    }\n  }\n\n\n  /**\n     Used internally to parse the roor category element.\n  */\n  protected\n  void parseRoot (Element rootElement) {\n    Logger root = repository.getRootLogger();\n    // category configuration needs to be atomic\n    synchronized(root) {    \n      parseChildrenOfLoggerElement(rootElement, root, true);\n    }\n  }\n\n\n  /**\n     Used internally to parse the children of a category element.\n  */\n  protected\n  void parseChildrenOfLoggerElement(Element catElement,\n\t\t\t\t      Logger cat, boolean isRoot) {\n    \n    PropertySetter propSetter = new PropertySetter(cat);\n    \n    // Remove all existing appenders from cat. They will be\n    // reconstructed if need be.\n    cat.removeAllAppenders();\n\n\n    NodeList children \t= catElement.getChildNodes();\n    final int length \t= children.getLength();\n    \n    for (int loop = 0; loop < length; loop++) {\n      Node currentNode = children.item(loop);\n\n      if (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\tElement currentElement = (Element) currentNode;\n\tString tagName = currentElement.getTagName();\n\t\n\tif (tagName.equals(APPENDER_REF_TAG)) {\n\t  Element appenderRef = (Element) currentNode;\n\t  Appender appender = findAppenderByReference(appenderRef);\n\t  String refName =  subst(appenderRef.getAttribute(REF_ATTR));\n\t  if(appender != null)\n\t    LogLog.debug(\"Adding appender named [\"+ refName+ \n\t\t\t \"] to category [\"+cat.getName()+\"].\");\n\t  else \n\t    LogLog.debug(\"Appender named [\"+ refName + \"] not found.\");\n\t    \n\t  cat.addAppender(appender);\n\t  \n\t} else if(tagName.equals(LEVEL_TAG)) {\n\t  parseLevel(currentElement, cat, isRoot);\t\n\t} else if(tagName.equals(PRIORITY_TAG)) {\n\t  parseLevel(currentElement, cat, isRoot);\n\t} else if(tagName.equals(PARAM_TAG)) {\n          setParameter(currentElement, propSetter);\n\t} else {\n        quietParseUnrecognizedElement(cat, currentElement, props);\n    }\n      }\n    }\n    propSetter.activate();\n  }\n\n  /**\n     Used internally to parse a layout element.\n  */  \n  protected\n  Layout parseLayout (Element layout_element) {\n    String className = subst(layout_element.getAttribute(CLASS_ATTR));\n    LogLog.debug(\"Parsing layout of class: \\\"\"+className+\"\\\"\");\t\t \n    try {\n      Object instance \t= Loader.loadClass(className).newInstance();\n      Layout layout   \t= (Layout)instance;\n      PropertySetter propSetter = new PropertySetter(layout);\n      \n      NodeList params \t= layout_element.getChildNodes();\n      final int length \t= params.getLength();\n\n      for (int loop = 0; loop < length; loop++) {\n\tNode currentNode = (Node)params.item(loop);\n\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t  Element currentElement = (Element) currentNode;\n\t  String tagName = currentElement.getTagName();\n\t  if(tagName.equals(PARAM_TAG)) {\n            setParameter(currentElement, propSetter);\n\t  } else {\n          parseUnrecognizedElement(instance, currentElement, props);\n      }\n\t}\n      }\n      \n      propSetter.activate();\n      return layout;\n    }\n    catch (Exception oops) {\n        if (oops instanceof InterruptedException || oops instanceof InterruptedIOException) {\n            Thread.currentThread().interrupt();\n        }\n      LogLog.error(\"Could not create the Layout. Reported error follows.\",\n\t\t   oops);\n      return null;\n    }\n  }\n\n  protected \n  void parseRenderer(Element element) {\n    String renderingClass = subst(element.getAttribute(RENDERING_CLASS_ATTR));\n    String renderedClass = subst(element.getAttribute(RENDERED_CLASS_ATTR));\n    if(repository instanceof RendererSupport) {\n      RendererMap.addRenderer((RendererSupport) repository, renderedClass, \n\t\t\t      renderingClass);\n    }\n  }\n\n    /**\n     * Parses throwable renderer.\n     * @param element throwableRenderer element.\n     * @return configured throwable renderer.\n     * @since 1.2.16.\n     */\n    protected ThrowableRenderer parseThrowableRenderer(final Element element) {\n        String className = subst(element.getAttribute(CLASS_ATTR));\n        LogLog.debug(\"Parsing throwableRenderer of class: \\\"\"+className+\"\\\"\");\n        try {\n          Object instance \t= Loader.loadClass(className).newInstance();\n          ThrowableRenderer tr   \t= (ThrowableRenderer)instance;\n          PropertySetter propSetter = new PropertySetter(tr);\n\n          NodeList params \t= element.getChildNodes();\n          final int length \t= params.getLength();\n\n          for (int loop = 0; loop < length; loop++) {\n                Node currentNode = (Node)params.item(loop);\n                if (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n                    Element currentElement = (Element) currentNode;\n                    String tagName = currentElement.getTagName();\n                    if(tagName.equals(PARAM_TAG)) {\n                        setParameter(currentElement, propSetter);\n                    } else {\n                        parseUnrecognizedElement(instance, currentElement, props);\n                    }\n                }\n          }\n\n          propSetter.activate();\n          return tr;\n        }\n        catch (Exception oops) {\n            if (oops instanceof InterruptedException || oops instanceof InterruptedIOException) {\n                Thread.currentThread().interrupt();\n            }\n            LogLog.error(\"Could not create the ThrowableRenderer. Reported error follows.\",\n               oops);\n          return null;\n        }\n    }\n\n  /**\n     Used internally to parse a level  element.\n  */\n  protected\n  void parseLevel(Element element, Logger logger, boolean isRoot) {\n    String catName = logger.getName();\n    if(isRoot) {\n      catName = \"root\";\n    }\n\n    String priStr = subst(element.getAttribute(VALUE_ATTR));\n    LogLog.debug(\"Level value for \"+catName+\" is  [\"+priStr+\"].\");\n    \n    if(INHERITED.equalsIgnoreCase(priStr) || NULL.equalsIgnoreCase(priStr)) {\n      if(isRoot) {\n\tLogLog.error(\"Root level cannot be inherited. Ignoring directive.\");\n      } else {\n\tlogger.setLevel(null);\n      }\n    } else {\n      String className = subst(element.getAttribute(CLASS_ATTR));      \n      if(EMPTY_STR.equals(className)) {\t\n\tlogger.setLevel(OptionConverter.toLevel(priStr, Level.DEBUG));\n      } else {\n\tLogLog.debug(\"Desired Level sub-class: [\"+className+']');\n\ttry {\t \n\t  Class clazz = Loader.loadClass(className);\n\t  Method toLevelMethod = clazz.getMethod(\"toLevel\", \n\t\t\t\t\t\t    ONE_STRING_PARAM);\n\t  Level pri = (Level) toLevelMethod.invoke(null, \n\t\t\t\t\t\t    new Object[] {priStr});\n\t  logger.setLevel(pri);\n\t} catch (Exception oops) {\n        if (oops instanceof InterruptedException || oops instanceof InterruptedIOException) {\n            Thread.currentThread().interrupt();\n        }\n\t  LogLog.error(\"Could not create level [\"+priStr+\n\t\t       \"]. Reported error follows.\", oops);\n\t  return;\n\t}\n      }\n    }\n    LogLog.debug(catName + \" level set to \" + logger.getLevel());    \n  }\n\n  protected\n  void setParameter(Element elem, PropertySetter propSetter) {\n      String name = subst(elem.getAttribute(NAME_ATTR));\n      String value = (elem.getAttribute(VALUE_ATTR));\n      value = subst(OptionConverter.convertSpecialChars(value));\n      propSetter.setProperty(name, value);\n  }\n\n\n  /**\n     Configure log4j using a <code>configuration</code> element as\n     defined in the log4j.dtd. \n\n  */\n  static\n  public\n  void configure (Element element) {\n    DOMConfigurator configurator = new DOMConfigurator();\n    configurator.doConfigure(element,  LogManager.getLoggerRepository());\n  }\n\n /**\n     Like {@link #configureAndWatch(String, long)} except that the\n     default delay as defined by {@link FileWatchdog#DEFAULT_DELAY} is\n     used. \n\n     @param configFilename A log4j configuration file in XML format.\n\n  */\n  static\n  public\n  void configureAndWatch(String configFilename) {\n    configureAndWatch(configFilename, FileWatchdog.DEFAULT_DELAY);\n  }\n\n  /**\n     Read the configuration file <code>configFilename</code> if it\n     exists. Moreover, a thread will be created that will periodically\n     check if <code>configFilename</code> has been created or\n     modified. The period is determined by the <code>delay</code>\n     argument. If a change or file creation is detected, then\n     <code>configFilename</code> is read to configure log4j.  \n\n      @param configFilename A log4j configuration file in XML format.\n      @param delay The delay in milliseconds to wait between each check.\n  */\n  static\n  public\n  void configureAndWatch(String configFilename, long delay) {\n    XMLWatchdog xdog = new XMLWatchdog(configFilename);\n    xdog.setDelay(delay);\n    xdog.start();\n  }\n  \n  private interface ParseAction {\n      Document parse(final DocumentBuilder parser) throws SAXException, IOException;\n  }\n\n\n  public\n  void doConfigure(final String filename, LoggerRepository repository) {\n    ParseAction action = new ParseAction() {\n          public Document parse(final DocumentBuilder parser) throws SAXException, IOException {\n              return parser.parse(new File(filename));\n          }\n          public String toString() { \n              return \"file [\" + filename + \"]\"; \n          }\n    };\n    doConfigure(action, repository);\n  }\n  \n\n  public\n  void doConfigure(final URL url, LoggerRepository repository) {\n      ParseAction action = new ParseAction() {\n          public Document parse(final DocumentBuilder parser) throws SAXException, IOException {\n              URLConnection uConn = url.openConnection();\n              uConn.setUseCaches(false);\n              InputStream stream = uConn.getInputStream();\n              try {\n                InputSource src = new InputSource(stream);\n                src.setSystemId(url.toString());\n                return parser.parse(src);\n              } finally {\n                stream.close();\n              }\n          }\n          public String toString() { \n              return \"url [\" + url.toString() + \"]\"; \n          }\n      };\n      doConfigure(action, repository);\n  }\n\n  /**\n     Configure log4j by reading in a log4j.dtd compliant XML\n     configuration file.\n\n  */\n  public\n  void doConfigure(final InputStream inputStream, LoggerRepository repository) \n                                          throws FactoryConfigurationError {\n      ParseAction action = new ParseAction() {\n          public Document parse(final DocumentBuilder parser) throws SAXException, IOException {\n              InputSource inputSource = new InputSource(inputStream);\n              inputSource.setSystemId(\"dummy://log4j.dtd\");\n              return parser.parse(inputSource);\n          }\n          public String toString() { \n              return \"input stream [\" + inputStream.toString() + \"]\"; \n          }\n      };\n      doConfigure(action, repository);\n  }\n\n  /**\n     Configure log4j by reading in a log4j.dtd compliant XML\n     configuration file.\n\n  */\n  public\n  void doConfigure(final Reader reader, LoggerRepository repository) \n                                          throws FactoryConfigurationError {\n      ParseAction action = new ParseAction() {\n          public Document parse(final DocumentBuilder parser) throws SAXException, IOException {\n              InputSource inputSource = new InputSource(reader);\n              inputSource.setSystemId(\"dummy://log4j.dtd\");\n              return parser.parse(inputSource);\n          }\n          public String toString() { \n              return \"reader [\" + reader.toString() + \"]\"; \n          }\n      };\n    doConfigure(action, repository);\n  }\n\n  /**\n     Configure log4j by reading in a log4j.dtd compliant XML\n     configuration file.\n\n  */\n  protected\n  void doConfigure(final InputSource inputSource, LoggerRepository repository) \n                                          throws FactoryConfigurationError {\n      if (inputSource.getSystemId() == null) {\n          inputSource.setSystemId(\"dummy://log4j.dtd\");\n      }\n      ParseAction action = new ParseAction() {\n          public Document parse(final DocumentBuilder parser) throws SAXException, IOException {\n              return parser.parse(inputSource);\n          }\n          public String toString() { \n              return \"input source [\" + inputSource.toString() + \"]\"; \n          }\n      };\n      doConfigure(action, repository);\n    }\n    \n    \n  private final void doConfigure(final ParseAction action, final LoggerRepository repository)\n         throws FactoryConfigurationError {\n    DocumentBuilderFactory dbf = null;\n    this.repository = repository;\n    try { \n      LogLog.debug(\"System property is :\"+\n  \t                        OptionConverter.getSystemProperty(dbfKey, \n\t\t\t\t\t\t\t\t  null)); \n      dbf = DocumentBuilderFactory.newInstance();\n      LogLog.debug(\"Standard DocumentBuilderFactory search succeded.\");\n      LogLog.debug(\"DocumentBuilderFactory is: \"+dbf.getClass().getName());\n    } catch(FactoryConfigurationError fce) {\n      Exception e = fce.getException();\n      LogLog.debug(\"Could not instantiate a DocumentBuilderFactory.\", e);\n      throw fce;\n    }\n      \n    try {\n      dbf.setValidating(true);\n\n      DocumentBuilder docBuilder = dbf.newDocumentBuilder();\n\n      docBuilder.setErrorHandler(new SAXErrorHandler());      \n      docBuilder.setEntityResolver(new Log4jEntityResolver());\n         \n      Document doc = action.parse(docBuilder);     \n      parse(doc.getDocumentElement());\n    } catch (Exception e) {\n        if (e instanceof InterruptedException || e instanceof InterruptedIOException) {\n            Thread.currentThread().interrupt();\n        }\n      // I know this is miserable...\n      LogLog.error(\"Could not parse \"+ action.toString() + \".\", e);\n    }\n  }\n\n  /**\n     Configure by taking in an DOM element. \n  */\n  public void doConfigure(Element element, LoggerRepository repository) {\n    this.repository = repository;\n    parse(element);\n  }\n\n  \n  /**\n     A static version of {@link #doConfigure(String, LoggerRepository)}.  */\n  static\n  public\n  void configure(String filename) throws FactoryConfigurationError {\n    new DOMConfigurator().doConfigure(filename, \n\t\t\t\t      LogManager.getLoggerRepository());\n  }\n\n  /**\n     A static version of {@link #doConfigure(URL, LoggerRepository)}.\n   */\n  static\n  public\n  void configure(URL url) throws FactoryConfigurationError {\n    new DOMConfigurator().doConfigure(url, LogManager.getLoggerRepository());\n  }\n\n  /**\n     Used internally to configure the log4j framework by parsing a DOM\n     tree of XML elements based on <a\n     href=\"doc-files/log4j.dtd\">log4j.dtd</a>.\n     \n  */\n  protected\n  void parse(Element element) {\n\n    String rootElementName = element.getTagName();\n\n    if (!rootElementName.equals(CONFIGURATION_TAG)) {\n      if(rootElementName.equals(OLD_CONFIGURATION_TAG)) {\n\tLogLog.warn(\"The <\"+OLD_CONFIGURATION_TAG+\n\t\t     \"> element has been deprecated.\");\n\tLogLog.warn(\"Use the <\"+CONFIGURATION_TAG+\"> element instead.\");\n      } else {\n\tLogLog.error(\"DOM element is - not a <\"+CONFIGURATION_TAG+\"> element.\");\n\treturn;\n      }\n    }\n\n\n    String debugAttrib = subst(element.getAttribute(INTERNAL_DEBUG_ATTR));\n      \n    LogLog.debug(\"debug attribute= \\\"\" + debugAttrib +\"\\\".\");\n    // if the log4j.dtd is not specified in the XML file, then the\n    // \"debug\" attribute is returned as the empty string.\n    if(!debugAttrib.equals(\"\") && !debugAttrib.equals(\"null\")) {      \n      LogLog.setInternalDebugging(OptionConverter.toBoolean(debugAttrib, true));\n    } else {\n      LogLog.debug(\"Ignoring \" + INTERNAL_DEBUG_ATTR + \" attribute.\");\n    }\n\n      //\n      //   reset repository before configuration if reset=\"true\"\n      //       on configuration element.\n      //\n    String resetAttrib = subst(element.getAttribute(RESET_ATTR));\n    LogLog.debug(\"reset attribute= \\\"\" + resetAttrib +\"\\\".\");\n    if(!(\"\".equals(resetAttrib))) {\n         if (OptionConverter.toBoolean(resetAttrib, false)) {\n             repository.resetConfiguration();\n         }\n    }\n\n\n\n    String confDebug = subst(element.getAttribute(CONFIG_DEBUG_ATTR));\n    if(!confDebug.equals(\"\") && !confDebug.equals(\"null\")) {      \n      LogLog.warn(\"The \\\"\"+CONFIG_DEBUG_ATTR+\"\\\" attribute is deprecated.\");\n      LogLog.warn(\"Use the \\\"\"+INTERNAL_DEBUG_ATTR+\"\\\" attribute instead.\");\n      LogLog.setInternalDebugging(OptionConverter.toBoolean(confDebug, true));\n    }\n\n    String thresholdStr = subst(element.getAttribute(THRESHOLD_ATTR));\n    LogLog.debug(\"Threshold =\\\"\" + thresholdStr +\"\\\".\");\n    if(!\"\".equals(thresholdStr) && !\"null\".equals(thresholdStr)) {\n      repository.setThreshold(thresholdStr);\n    }\n\n    //Hashtable appenderBag = new Hashtable(11);\n\n    /* Building Appender objects, placing them in a local namespace\n       for future reference */\n\n    // First configure each category factory under the root element.\n    // Category factories need to be configured before any of\n    // categories they support.\n    //\n    String   tagName = null;\n    Element  currentElement = null;\n    Node     currentNode = null;\n    NodeList children = element.getChildNodes();\n    final int length = children.getLength();\n\n    for (int loop = 0; loop < length; loop++) {\n      currentNode = children.item(loop);\n      if (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\tcurrentElement = (Element) currentNode;\n\ttagName = currentElement.getTagName();\n\n\tif (tagName.equals(CATEGORY_FACTORY_TAG) || tagName.equals(LOGGER_FACTORY_TAG)) {\n\t  parseCategoryFactory(currentElement);\n\t}\n      }\n    }\n    \n    for (int loop = 0; loop < length; loop++) {\n      currentNode = children.item(loop);\n      if (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\tcurrentElement = (Element) currentNode;\n\ttagName = currentElement.getTagName();\n\n\tif (tagName.equals(CATEGORY) || tagName.equals(LOGGER)) {\n\t  parseCategory(currentElement);\n\t} else if (tagName.equals(ROOT_TAG)) {\n\t  parseRoot(currentElement);\n\t} else if(tagName.equals(RENDERER_TAG)) {\n\t  parseRenderer(currentElement);\n    } else if(tagName.equals(THROWABLE_RENDERER_TAG)) {\n        if (repository instanceof ThrowableRendererSupport) {\n            ThrowableRenderer tr = parseThrowableRenderer(currentElement);\n            if (tr != null) {\n                ((ThrowableRendererSupport) repository).setThrowableRenderer(tr);\n            }\n        }\n    } else if (!(tagName.equals(APPENDER_TAG)\n            || tagName.equals(CATEGORY_FACTORY_TAG)\n            || tagName.equals(LOGGER_FACTORY_TAG))) {\n        quietParseUnrecognizedElement(repository, currentElement, props);\n    }\n      }\n    }\n  }\n\n  \n  protected\n  String subst(final String value) {\n      return subst(value, props);\n  }\n\n    /**\n     * Substitutes property value for any references in expression.\n     *\n     * @param value value from configuration file, may contain\n     *              literal text, property references or both\n     * @param props properties.\n     * @return evaluated expression, may still contain expressions\n     *         if unable to expand.\n     * @since 1.2.15\n     */\n    public static String subst(final String value, final Properties props) {\n        try {\n            return OptionConverter.substVars(value, props);\n        } catch (IllegalArgumentException e) {\n            LogLog.warn(\"Could not perform variable substitution.\", e);\n            return value;\n        }\n    }\n\n\n    /**\n     * Sets a parameter based from configuration file content.\n     *\n     * @param elem       param element, may not be null.\n     * @param propSetter property setter, may not be null.\n     * @param props      properties\n     * @since 1.2.15\n     */\n    public static void setParameter(final Element elem,\n                                    final PropertySetter propSetter,\n                                    final Properties props) {\n        String name = subst(elem.getAttribute(\"name\"), props);\n        String value = (elem.getAttribute(\"value\"));\n        value = subst(OptionConverter.convertSpecialChars(value), props);\n        propSetter.setProperty(name, value);\n    }\n\n    /**\n     * Creates an object and processes any nested param elements\n     * but does not call activateOptions.  If the class also supports\n     * UnrecognizedElementParser, the parseUnrecognizedElement method\n     * will be call for any child elements other than param.\n     *\n     * @param element       element, may not be null.\n     * @param props         properties\n     * @param expectedClass interface or class expected to be implemented\n     *                      by created class\n     * @return created class or null.\n     * @throws Exception thrown if the contain object should be abandoned.\n     * @since 1.2.15\n     */\n    public static Object parseElement(final Element element,\n                                             final Properties props,\n                                             final Class expectedClass) throws Exception {\n        String clazz = subst(element.getAttribute(\"class\"), props);\n        Object instance = OptionConverter.instantiateByClassName(clazz,\n                expectedClass, null);\n\n        if (instance != null) {\n            PropertySetter propSetter = new PropertySetter(instance);\n            NodeList children = element.getChildNodes();\n            final int length = children.getLength();\n\n            for (int loop = 0; loop < length; loop++) {\n                Node currentNode = children.item(loop);\n                if (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n                    Element currentElement = (Element) currentNode;\n                    String tagName = currentElement.getTagName();\n                    if (tagName.equals(\"param\")) {\n                        setParameter(currentElement, propSetter, props);\n                    } else {\n                         parseUnrecognizedElement(instance, currentElement, props);\n                    }\n                }\n            }\n            return instance;\n        }\n        return null;", "functions": [{"function_name": "findAppenderByName", "code": "  Appender findAppenderByName(Document doc, String appenderName)  {      \n    Appender appender = (Appender) appenderBag.get(appenderName);\n\n    if(appender != null) {\n      return appender;\n    } else {\n      // Doesn't work on DOM Level 1 :\n      // Element element = doc.getElementById(appenderName);\n                        \n      // Endre's hack:\n      Element element = null;\n      NodeList list = doc.getElementsByTagName(\"appender\");\n      for (int t=0; t < list.getLength(); t++) {\n\tNode node = list.item(t);\n\tNamedNodeMap map= node.getAttributes();\n\tNode attrNode = map.getNamedItem(\"name\");\n\tif (appenderName.equals(attrNode.getNodeValue())) {\n\t  element = (Element) node;\n\t  break;\n\t}\n      }\n      // Hack finished.\n\n      if(element == null) {\n\tLogLog.error(\"No appender named [\"+appenderName+\"] could be found.\"); \n\treturn null;\n      } else {\n\t      appender = parseAppender(element);\n          if (appender != null) {\n            appenderBag.put(appenderName, appender);\n          }\n    return appender;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "IF", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [6, 12], [7, 13], [2, 14], [6, 15], [6, 16], [6, 17], [12, 18], [7, 19], [7, 20], [7, 21], [7, 22], [13, 23], [8, 24], [9, 25], [16, 26], [6, 27], [17, 28], [6, 29], [19, 30], [7, 31], [24, 32], [26, 33], [27, 34], [29, 35], [19, 36], [30, 37], [20, 38], [21, 39], [22, 40], [16, 41], [35, 42], [35, 43], [19, 44], [38, 45], [43, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 6], [13, 7], [14, 2], [15, 6], [16, 6], [17, 6], [18, 12], [19, 7], [20, 7], [21, 7], [22, 7], [23, 13], [24, 8], [25, 9], [26, 16], [27, 6], [28, 17], [29, 6], [30, 19], [31, 7], [32, 24], [33, 26], [34, 27], [35, 29], [36, 19], [37, 30], [38, 20], [39, 21], [40, 22], [41, 16], [42, 35], [43, 35], [44, 19], [45, 38], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "findAppenderByReference", "code": "  Appender findAppenderByReference(Element appenderRef) {    \n    String appenderName = subst(appenderRef.getAttribute(REF_ATTR));    \n    Document doc = appenderRef.getOwnerDocument();\n    return findAppenderByName(doc, appenderName);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "parseUnrecognizedElement", "code": "  private static void parseUnrecognizedElement(final Object instance,\n                                        final Element element,\n                                        final Properties props) throws Exception {\n      boolean recognized = false;\n      if (instance instanceof UnrecognizedElementHandler) {\n          recognized = ((UnrecognizedElementHandler) instance).parseUnrecognizedElement(\n                  element, props);\n      }\n      if (!recognized) {\n          LogLog.warn(\"Unrecognized element \" + element.getNodeName());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [1, 9], [2, 10], [9, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 1], [10, 2], [11, 9], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "quietParseUnrecognizedElement", "code": "   private static void quietParseUnrecognizedElement(final Object instance,\n                                          final Element element,\n                                          final Properties props) {\n      try {\n          parseUnrecognizedElement(instance, element, props);\n      } catch (Exception ex) {\n          if (ex instanceof InterruptedException || ex instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n          LogLog.error(\"Error in extension content: \", ex);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [5, 8], [6, 9], [8, 10], [9, 11], [9, 12], [6, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 5], [9, 6], [10, 8], [11, 9], [12, 9], [13, 6], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "parseAppender", "code": "  Appender parseAppender (Element appenderElement) {\n    String className = subst(appenderElement.getAttribute(CLASS_ATTR));\n    LogLog.debug(\"Class name: [\" + className+']');    \n    try {\n      Object instance \t= Loader.loadClass(className).newInstance();\n      Appender appender\t= (Appender)instance;\n      PropertySetter propSetter = new PropertySetter(appender);\n\n      appender.setName(subst(appenderElement.getAttribute(NAME_ATTR)));\n      \n      NodeList children\t= appenderElement.getChildNodes();\n      final int length \t= children.getLength();\n\n      for (int loop = 0; loop < length; loop++) {\n\tNode currentNode = children.item(loop);\n\n\t/* We're only interested in Elements */\n\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t  Element currentElement = (Element)currentNode;\n\n\t  // Parse appender parameters \n\t  if (currentElement.getTagName().equals(PARAM_TAG)) {\n            setParameter(currentElement, propSetter);\n\t  }\n\t  // Set appender layout\n\t  else if (currentElement.getTagName().equals(LAYOUT_TAG)) {\n\t    appender.setLayout(parseLayout(currentElement));\n\t  }\n\t  // Add filters\n\t  else if (currentElement.getTagName().equals(FILTER_TAG)) {\n\t    parseFilters(currentElement, appender);\n\t  }\n\t  else if (currentElement.getTagName().equals(ERROR_HANDLER_TAG)) {\n\t    parseErrorHandler(currentElement, appender);\n\t  }\n\t  else if (currentElement.getTagName().equals(APPENDER_REF_TAG)) {\n\t    String refName = subst(currentElement.getAttribute(REF_ATTR));\n\t    if(appender instanceof AppenderAttachable) {\n\t      AppenderAttachable aa = (AppenderAttachable) appender;\n\t      LogLog.debug(\"Attaching appender named [\"+ refName+\n\t\t\t   \"] to appender named [\"+ appender.getName()+\"].\");\n\t      aa.addAppender(findAppenderByReference(currentElement));\n\t    } else {\n\t      LogLog.error(\"Requesting attachment of appender named [\"+\n\t\t\t   refName+ \"] to appender named [\"+ appender.getName()+\n                \"] which does not implement org.apache.log4j.spi.AppenderAttachable.\");\n\t    }\n\t  } else {\n          parseUnrecognizedElement(instance, currentElement, props);\n      }\n\t}\n      }\n      propSetter.activate();\n      return appender;\n    }\n    /* Yes, it's ugly.  But all of these exceptions point to the same\n       problem: we can't create an Appender */\n    catch (Exception oops) {\n        if (oops instanceof InterruptedException || oops instanceof InterruptedIOException) {\n            Thread.currentThread().interrupt();\n        }\n      LogLog.error(\"Could not create an Appender. Reported error follows.\",\n\t\t   oops);\n      return null;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "IF", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "CALL", "IF", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [0, 12], [4, 13], [4, 14], [1, 15], [6, 16], [1, 17], [12, 18], [2, 19], [13, 20], [4, 21], [14, 22], [6, 23], [6, 24], [7, 25], [8, 26], [17, 27], [9, 28], [11, 29], [18, 30], [18, 31], [19, 32], [21, 33], [22, 34], [22, 35], [23, 36], [6, 37], [27, 38], [29, 39], [31, 40], [14, 41], [23, 42], [23, 43], [36, 44], [24, 45], [41, 46], [42, 47], [42, 48], [47, 49], [47, 50], [48, 51], [49, 52], [49, 53], [50, 54], [42, 55], [52, 56], [52, 57], [53, 58], [47, 59], [56, 60], [57, 61], [49, 62], [59, 63], [56, 64], [56, 65], [60, 66], [52, 67], [56, 68], [64, 69], [64, 70], [65, 71], [64, 72], [64, 73], [64, 74], [71, 75], [72, 76], [73, 77], [74, 78], [76, 79], [76, 80], [78, 81], [78, 82], [80, 83], [80, 84], [82, 85], [82, 86], [84, 87], [84, 88], [86, 89], [86, 90], [88, 91], [90, 92], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 0], [13, 4], [14, 4], [15, 1], [16, 6], [17, 1], [18, 12], [19, 2], [20, 13], [21, 4], [22, 14], [23, 6], [24, 6], [25, 7], [26, 8], [27, 17], [28, 9], [29, 11], [30, 18], [31, 18], [32, 19], [33, 21], [34, 22], [35, 22], [36, 23], [37, 6], [38, 27], [39, 29], [40, 31], [41, 14], [42, 23], [43, 23], [44, 36], [45, 24], [46, 41], [47, 42], [48, 42], [49, 47], [50, 47], [51, 48], [52, 49], [53, 49], [54, 50], [55, 42], [56, 52], [57, 52], [58, 53], [59, 47], [60, 56], [61, 57], [62, 49], [63, 59], [64, 56], [65, 56], [66, 60], [67, 52], [68, 56], [69, 64], [70, 64], [71, 65], [72, 64], [73, 64], [74, 64], [75, 71], [76, 72], [77, 73], [78, 74], [79, 76], [80, 76], [81, 78], [82, 78], [83, 80], [84, 80], [85, 82], [86, 82], [87, 84], [88, 84], [89, 86], [90, 86], [91, 88], [92, 90], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "parseErrorHandler", "code": "  void parseErrorHandler(Element element, Appender appender) {\n    ErrorHandler eh = (ErrorHandler) OptionConverter.instantiateByClassName(\n                                       subst(element.getAttribute(CLASS_ATTR)),\n                                       org.apache.log4j.spi.ErrorHandler.class, \n \t\t\t\t       null);\n    \n    if(eh != null) {\n      eh.setAppender(appender);\n\n      PropertySetter propSetter = new PropertySetter(eh);\n      NodeList children = element.getChildNodes();\n      final int length \t= children.getLength();\n\n      for (int loop = 0; loop < length; loop++) {\n\tNode currentNode = children.item(loop);\n\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t  Element currentElement = (Element) currentNode;\n\t  String tagName = currentElement.getTagName();\n\t  if(tagName.equals(PARAM_TAG)) {\n            setParameter(currentElement, propSetter);\n\t  } else if(tagName.equals(APPENDER_REF_TAG)) {\n\t    eh.setBackupAppender(findAppenderByReference(currentElement));\n\t  } else if(tagName.equals(LOGGER_REF)) {\n\t    String loggerName = currentElement.getAttribute(REF_ATTR);\t    \n\t    Logger logger = (catFactory == null) ? repository.getLogger(loggerName)\n                : repository.getLogger(loggerName, catFactory);\n\t    eh.setLogger(logger);\n\t  } else if(tagName.equals(ROOT_REF)) {\n\t    Logger root = repository.getRootLogger();\n\t    eh.setLogger(root);\n\t  } else {\n          quietParseUnrecognizedElement(eh, currentElement, props);\n      }\n\t}\n      }\n      propSetter.activate();\n      appender.setErrorHandler(eh);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "CALL", "IF", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [1, 11], [1, 12], [6, 13], [1, 14], [2, 15], [6, 16], [6, 17], [7, 18], [8, 19], [9, 20], [15, 21], [15, 22], [16, 23], [6, 24], [22, 25], [16, 26], [16, 27], [16, 28], [23, 29], [17, 30], [26, 31], [26, 32], [31, 33], [31, 34], [27, 35], [33, 36], [33, 37], [26, 38], [36, 39], [33, 40], [33, 41], [31, 42], [36, 43], [33, 44], [42, 45], [36, 46], [36, 47], [40, 48], [41, 49], [43, 50], [48, 51], [48, 52], [48, 53], [53, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 1], [12, 1], [13, 6], [14, 1], [15, 2], [16, 6], [17, 6], [18, 7], [19, 8], [20, 9], [21, 15], [22, 15], [23, 16], [24, 6], [25, 22], [26, 16], [27, 16], [28, 16], [29, 23], [30, 17], [31, 26], [32, 26], [33, 31], [34, 31], [35, 27], [36, 33], [37, 33], [38, 26], [39, 36], [40, 33], [41, 33], [42, 31], [43, 36], [44, 33], [45, 42], [46, 36], [47, 36], [48, 40], [49, 41], [50, 43], [51, 48], [52, 48], [53, 48], [54, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "parseFilters", "code": "  void parseFilters(Element element, Appender appender) {\n    String clazz = subst(element.getAttribute(CLASS_ATTR));\n    Filter filter = (Filter) OptionConverter.instantiateByClassName(clazz,\n                                                Filter.class, null);\n    \n    if(filter != null) {\n      PropertySetter propSetter = new PropertySetter(filter);\n      NodeList children = element.getChildNodes();\n      final int length \t= children.getLength();\n\n      for (int loop = 0; loop < length; loop++) {\n\tNode currentNode = children.item(loop);\n\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t  Element currentElement = (Element) currentNode;\n\t  String tagName = currentElement.getTagName();\n\t  if(tagName.equals(PARAM_TAG)) {\n            setParameter(currentElement, propSetter);\n\t  } else {\n            quietParseUnrecognizedElement(filter, currentElement, props);\n      }\n\t}\n      }\n      propSetter.activate();\n      LogLog.debug(\"Adding filter of type [\"+filter.getClass()\n\t\t   +\"] to appender named [\"+appender.getName()+\"].\");\n      appender.addFilter(filter);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [6, 11], [3, 12], [1, 13], [1, 14], [1, 15], [7, 16], [2, 17], [12, 18], [14, 19], [7, 20], [7, 21], [8, 22], [9, 23], [10, 24], [17, 25], [19, 26], [19, 27], [20, 28], [7, 29], [27, 30], [27, 31], [20, 32], [20, 33], [20, 34], [28, 35], [21, 36], [31, 37], [31, 38], [32, 39], [38, 40], [38, 41], [33, 42], [32, 43], [32, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 6], [12, 3], [13, 1], [14, 1], [15, 1], [16, 7], [17, 2], [18, 12], [19, 14], [20, 7], [21, 7], [22, 8], [23, 9], [24, 10], [25, 17], [26, 19], [27, 19], [28, 20], [29, 7], [30, 27], [31, 27], [32, 20], [33, 20], [34, 20], [35, 28], [36, 21], [37, 31], [38, 31], [39, 32], [40, 38], [41, 38], [42, 33], [43, 32], [44, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "parseCategory", "code": "  void parseCategory (Element loggerElement) {\n    // Create a new org.apache.log4j.Category object from the <category> element.\n    String catName = subst(loggerElement.getAttribute(NAME_ATTR));\n\n    Logger cat;    \n\n    String className = subst(loggerElement.getAttribute(CLASS_ATTR));\n\n\n    if(EMPTY_STR.equals(className)) {\n      LogLog.debug(\"Retreiving an instance of org.apache.log4j.Logger.\");\n      cat = (catFactory == null) ? repository.getLogger(catName) : repository.getLogger(catName, catFactory);\n    }\n    else {\n      LogLog.debug(\"Desired logger sub-class: [\"+className+']');\n       try {\t \n\t Class clazz = Loader.loadClass(className);\n\t Method getInstanceMethod = clazz.getMethod(\"getLogger\", \n\t\t\t\t\t\t    ONE_STRING_PARAM);\n\t cat = (Logger) getInstanceMethod.invoke(null, new Object[] {catName});\n       } catch (InvocationTargetException oops) {\n          if (oops.getTargetException() instanceof InterruptedException\n                  || oops.getTargetException() instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n          LogLog.error(\"Could not retrieve category [\"+catName+\n\t\t      \"]. Reported error follows.\", oops);\n\t      return;\n       } catch (Exception oops) {\n\t      LogLog.error(\"Could not retrieve category [\"+catName+\n\t\t      \"]. Reported error follows.\", oops);\n\t      return;\n       }\n    }\n\n    // Setting up a category needs to be an atomic operation, in order\n    // to protect potential log operations while category\n    // configuration is in progress.\n    synchronized(cat) {\n      boolean additivity = OptionConverter.toBoolean(\n                           subst(loggerElement.getAttribute(ADDITIVITY_ATTR)),\n\t\t\t   true);\n    \n      LogLog.debug(\"Setting [\"+cat.getName()+\"] additivity to [\"+additivity+\"].\");\n      cat.setAdditivity(additivity);\n      parseChildrenOfLoggerElement(loggerElement, cat, false);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "TRY", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CATCH", "CATCH", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "IF", "ASSIGN", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [4, 13], [8, 14], [10, 15], [6, 16], [11, 17], [11, 18], [11, 19], [11, 20], [1, 21], [1, 22], [1, 23], [12, 24], [13, 25], [15, 26], [15, 27], [16, 28], [16, 29], [17, 30], [18, 31], [18, 32], [11, 33], [21, 34], [22, 35], [23, 36], [27, 37], [29, 38], [17, 39], [18, 40], [32, 41], [19, 42], [20, 43], [34, 44], [34, 45], [35, 46], [35, 47], [35, 48], [37, 49], [37, 50], [39, 51], [40, 52], [41, 53], [41, 54], [33, 55], [42, 56], [45, 57], [48, 58], [50, 59], [50, 60], [51, 61], [51, 62], [52, 63], [52, 64], [32, 65], [53, 66], [54, 67], [55, 68], [62, 69], [64, 70], [65, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 4], [14, 8], [15, 10], [16, 6], [17, 11], [18, 11], [19, 11], [20, 11], [21, 1], [22, 1], [23, 1], [24, 12], [25, 13], [26, 15], [27, 15], [28, 16], [29, 16], [30, 17], [31, 18], [32, 18], [33, 11], [34, 21], [35, 22], [36, 23], [37, 27], [38, 29], [39, 17], [40, 18], [41, 32], [42, 19], [43, 20], [44, 34], [45, 34], [46, 35], [47, 35], [48, 35], [49, 37], [50, 37], [51, 39], [52, 40], [53, 41], [54, 41], [55, 33], [56, 42], [57, 45], [58, 48], [59, 50], [60, 50], [61, 51], [62, 51], [63, 52], [64, 52], [65, 32], [66, 53], [67, 54], [68, 55], [69, 62], [70, 64], [71, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "parseCategoryFactory", "code": "  void parseCategoryFactory(Element factoryElement) {\n    String className = subst(factoryElement.getAttribute(CLASS_ATTR));\n\n    if(EMPTY_STR.equals(className)) {\n      LogLog.error(\"Category Factory tag \" + CLASS_ATTR + \" attribute not found.\");\n      LogLog.debug(\"No Category Factory configured.\");\n    }\n    else {\n      LogLog.debug(\"Desired category factory: [\"+className+']');\n      Object factory = OptionConverter.instantiateByClassName(className,\n                                                                 LoggerFactory.class, \n                                                                 null);\n      if (factory instanceof LoggerFactory) {\n          catFactory = (LoggerFactory) factory;\n      } else {\n          LogLog.error(\"Category Factory class \" + className + \" does not implement org.apache.log4j.LoggerFactory\");\n      }\n      PropertySetter propSetter = new PropertySetter(factory);\n\n      Element  currentElement = null;\n      Node     currentNode    = null;\n      NodeList children       = factoryElement.getChildNodes();\n      final int length        = children.getLength();\n\n      for (int loop=0; loop < length; loop++) {\n        currentNode = children.item(loop);\n\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t  currentElement = (Element)currentNode;\n\t  if (currentElement.getTagName().equals(PARAM_TAG)) {\n\t    setParameter(currentElement, propSetter);\n\t  } else {\n           quietParseUnrecognizedElement(factory, currentElement, props);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [5, 14], [11, 15], [1, 16], [1, 17], [1, 18], [13, 19], [5, 20], [6, 21], [7, 22], [8, 23], [9, 24], [10, 25], [12, 26], [16, 27], [17, 28], [18, 29], [20, 30], [5, 31], [5, 32], [11, 33], [11, 34], [26, 35], [27, 36], [27, 37], [29, 38], [29, 39], [20, 40], [30, 41], [31, 42], [33, 43], [37, 44], [39, 45], [40, 46], [20, 47], [43, 48], [43, 49], [46, 50], [49, 51], [40, 52], [40, 53], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 5], [15, 11], [16, 1], [17, 1], [18, 1], [19, 13], [20, 5], [21, 6], [22, 7], [23, 8], [24, 9], [25, 10], [26, 12], [27, 16], [28, 17], [29, 18], [30, 20], [31, 5], [32, 5], [33, 11], [34, 11], [35, 26], [36, 27], [37, 27], [38, 29], [39, 29], [40, 20], [41, 30], [42, 31], [43, 33], [44, 37], [45, 39], [46, 40], [47, 20], [48, 43], [49, 43], [50, 46], [51, 49], [52, 40], [53, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "parseRoot", "code": "  void parseRoot (Element rootElement) {\n    Logger root = repository.getRootLogger();\n    // category configuration needs to be atomic\n    synchronized(root) {    \n      parseChildrenOfLoggerElement(rootElement, root, true);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "parseChildrenOfLoggerElement", "code": "  void parseChildrenOfLoggerElement(Element catElement,\n\t\t\t\t      Logger cat, boolean isRoot) {\n    \n    PropertySetter propSetter = new PropertySetter(cat);\n    \n    // Remove all existing appenders from cat. They will be\n    // reconstructed if need be.\n    cat.removeAllAppenders();\n\n\n    NodeList children \t= catElement.getChildNodes();\n    final int length \t= children.getLength();\n    \n    for (int loop = 0; loop < length; loop++) {\n      Node currentNode = children.item(loop);\n\n      if (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\tElement currentElement = (Element) currentNode;\n\tString tagName = currentElement.getTagName();\n\t\n\tif (tagName.equals(APPENDER_REF_TAG)) {\n\t  Element appenderRef = (Element) currentNode;\n\t  Appender appender = findAppenderByReference(appenderRef);\n\t  String refName =  subst(appenderRef.getAttribute(REF_ATTR));\n\t  if(appender != null)\n\t    LogLog.debug(\"Adding appender named [\"+ refName+ \n\t\t\t \"] to category [\"+cat.getName()+\"].\");\n\t  else \n\t    LogLog.debug(\"Appender named [\"+ refName + \"] not found.\");\n\t    \n\t  cat.addAppender(appender);\n\t  \n\t} else if(tagName.equals(LEVEL_TAG)) {\n\t  parseLevel(currentElement, cat, isRoot);\t\n\t} else if(tagName.equals(PRIORITY_TAG)) {\n\t  parseLevel(currentElement, cat, isRoot);\n\t} else if(tagName.equals(PARAM_TAG)) {\n          setParameter(currentElement, propSetter);\n\t} else {\n        quietParseUnrecognizedElement(cat, currentElement, props);\n    }\n      }\n    }\n    propSetter.activate();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "CALL", "IF", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [1, 11], [1, 12], [2, 13], [3, 14], [4, 15], [11, 16], [1, 17], [11, 18], [11, 19], [11, 20], [16, 21], [12, 22], [18, 23], [18, 24], [23, 25], [23, 26], [18, 27], [18, 28], [18, 29], [18, 30], [19, 31], [25, 32], [25, 33], [18, 34], [27, 35], [32, 36], [23, 37], [27, 38], [27, 39], [35, 40], [28, 41], [29, 42], [25, 43], [38, 44], [39, 45], [41, 46], [32, 47], [32, 48], [44, 49], [44, 50], [45, 51], [45, 52], [50, 53], [52, 54], [52, 55], [55, 56], [55, 57], [57, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 1], [12, 1], [13, 2], [14, 3], [15, 4], [16, 11], [17, 1], [18, 11], [19, 11], [20, 11], [21, 16], [22, 12], [23, 18], [24, 18], [25, 23], [26, 23], [27, 18], [28, 18], [29, 18], [30, 18], [31, 19], [32, 25], [33, 25], [34, 18], [35, 27], [36, 32], [37, 23], [38, 27], [39, 27], [40, 35], [41, 28], [42, 29], [43, 25], [44, 38], [45, 39], [46, 41], [47, 32], [48, 32], [49, 44], [50, 44], [51, 45], [52, 45], [53, 50], [54, 52], [55, 52], [56, 55], [57, 55], [58, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "parseLayout", "code": "  Layout parseLayout (Element layout_element) {\n    String className = subst(layout_element.getAttribute(CLASS_ATTR));\n    LogLog.debug(\"Parsing layout of class: \\\"\"+className+\"\\\"\");\t\t \n    try {\n      Object instance \t= Loader.loadClass(className).newInstance();\n      Layout layout   \t= (Layout)instance;\n      PropertySetter propSetter = new PropertySetter(layout);\n      \n      NodeList params \t= layout_element.getChildNodes();\n      final int length \t= params.getLength();\n\n      for (int loop = 0; loop < length; loop++) {\n\tNode currentNode = (Node)params.item(loop);\n\tif (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t  Element currentElement = (Element) currentNode;\n\t  String tagName = currentElement.getTagName();\n\t  if(tagName.equals(PARAM_TAG)) {\n            setParameter(currentElement, propSetter);\n\t  } else {\n          parseUnrecognizedElement(instance, currentElement, props);\n      }\n\t}\n      }\n      \n      propSetter.activate();\n      return layout;\n    }\n    catch (Exception oops) {\n        if (oops instanceof InterruptedException || oops instanceof InterruptedIOException) {\n            Thread.currentThread().interrupt();\n        }\n      LogLog.error(\"Could not create the Layout. Reported error follows.\",\n\t\t   oops);\n      return null;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [0, 12], [4, 13], [4, 14], [1, 15], [6, 16], [12, 17], [2, 18], [13, 19], [4, 20], [14, 21], [6, 22], [6, 23], [7, 24], [8, 25], [9, 26], [11, 27], [17, 28], [17, 29], [18, 30], [20, 31], [21, 32], [21, 33], [22, 34], [6, 35], [27, 36], [29, 37], [14, 38], [22, 39], [22, 40], [22, 41], [34, 42], [38, 43], [39, 44], [23, 45], [40, 46], [39, 47], [39, 48], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 0], [13, 4], [14, 4], [15, 1], [16, 6], [17, 12], [18, 2], [19, 13], [20, 4], [21, 14], [22, 6], [23, 6], [24, 7], [25, 8], [26, 9], [27, 11], [28, 17], [29, 17], [30, 18], [31, 20], [32, 21], [33, 21], [34, 22], [35, 6], [36, 27], [37, 29], [38, 14], [39, 22], [40, 22], [41, 22], [42, 34], [43, 38], [44, 39], [45, 23], [46, 40], [47, 39], [48, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "parseRenderer", "code": "  void parseRenderer(Element element) {\n    String renderingClass = subst(element.getAttribute(RENDERING_CLASS_ATTR));\n    String renderedClass = subst(element.getAttribute(RENDERED_CLASS_ATTR));\n    if(repository instanceof RendererSupport) {\n      RendererMap.addRenderer((RendererSupport) repository, renderedClass, \n\t\t\t      renderingClass);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 1], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "parseThrowableRenderer", "code": "    protected ThrowableRenderer parseThrowableRenderer(final Element element) {\n        String className = subst(element.getAttribute(CLASS_ATTR));\n        LogLog.debug(\"Parsing throwableRenderer of class: \\\"\"+className+\"\\\"\");\n        try {\n          Object instance \t= Loader.loadClass(className).newInstance();\n          ThrowableRenderer tr   \t= (ThrowableRenderer)instance;\n          PropertySetter propSetter = new PropertySetter(tr);\n\n          NodeList params \t= element.getChildNodes();\n          final int length \t= params.getLength();\n\n          for (int loop = 0; loop < length; loop++) {\n                Node currentNode = (Node)params.item(loop);\n                if (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n                    Element currentElement = (Element) currentNode;\n                    String tagName = currentElement.getTagName();\n                    if(tagName.equals(PARAM_TAG)) {\n                        setParameter(currentElement, propSetter);\n                    } else {\n                        parseUnrecognizedElement(instance, currentElement, props);\n                    }\n                }\n          }\n\n          propSetter.activate();\n          return tr;\n        }\n        catch (Exception oops) {\n            if (oops instanceof InterruptedException || oops instanceof InterruptedIOException) {\n                Thread.currentThread().interrupt();\n            }\n            LogLog.error(\"Could not create the ThrowableRenderer. Reported error follows.\",\n               oops);\n          return null;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [0, 12], [4, 13], [4, 14], [1, 15], [6, 16], [12, 17], [2, 18], [13, 19], [4, 20], [14, 21], [6, 22], [6, 23], [7, 24], [8, 25], [9, 26], [11, 27], [17, 28], [17, 29], [18, 30], [20, 31], [21, 32], [21, 33], [22, 34], [6, 35], [27, 36], [29, 37], [14, 38], [22, 39], [22, 40], [22, 41], [34, 42], [38, 43], [39, 44], [23, 45], [40, 46], [39, 47], [39, 48], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 0], [13, 4], [14, 4], [15, 1], [16, 6], [17, 12], [18, 2], [19, 13], [20, 4], [21, 14], [22, 6], [23, 6], [24, 7], [25, 8], [26, 9], [27, 11], [28, 17], [29, 17], [30, 18], [31, 20], [32, 21], [33, 21], [34, 22], [35, 6], [36, 27], [37, 29], [38, 14], [39, 22], [40, 22], [41, 22], [42, 34], [43, 38], [44, 39], [45, 23], [46, 40], [47, 39], [48, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "parseLevel", "code": "  void parseLevel(Element element, Logger logger, boolean isRoot) {\n    String catName = logger.getName();\n    if(isRoot) {\n      catName = \"root\";\n    }\n\n    String priStr = subst(element.getAttribute(VALUE_ATTR));\n    LogLog.debug(\"Level value for \"+catName+\" is  [\"+priStr+\"].\");\n    \n    if(INHERITED.equalsIgnoreCase(priStr) || NULL.equalsIgnoreCase(priStr)) {\n      if(isRoot) {\n\tLogLog.error(\"Root level cannot be inherited. Ignoring directive.\");\n      } else {\n\tlogger.setLevel(null);\n      }\n    } else {\n      String className = subst(element.getAttribute(CLASS_ATTR));      \n      if(EMPTY_STR.equals(className)) {\t\n\tlogger.setLevel(OptionConverter.toLevel(priStr, Level.DEBUG));\n      } else {\n\tLogLog.debug(\"Desired Level sub-class: [\"+className+']');\n\ttry {\t \n\t  Class clazz = Loader.loadClass(className);\n\t  Method toLevelMethod = clazz.getMethod(\"toLevel\", \n\t\t\t\t\t\t    ONE_STRING_PARAM);\n\t  Level pri = (Level) toLevelMethod.invoke(null, \n\t\t\t\t\t\t    new Object[] {priStr});\n\t  logger.setLevel(pri);\n\t} catch (Exception oops) {\n        if (oops instanceof InterruptedException || oops instanceof InterruptedIOException) {\n            Thread.currentThread().interrupt();\n        }\n\t  LogLog.error(\"Could not create level [\"+priStr+\n\t\t       \"]. Reported error follows.\", oops);\n\t  return;\n\t}\n      }\n    }\n    LogLog.debug(catName + \" level set to \" + logger.getLevel());    ", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "TRY", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [8, 11], [1, 12], [1, 13], [1, 14], [9, 15], [9, 16], [10, 17], [2, 18], [4, 19], [11, 20], [11, 21], [12, 22], [17, 23], [17, 24], [18, 25], [3, 26], [21, 27], [12, 28], [13, 29], [24, 30], [26, 31], [28, 32], [28, 33], [28, 34], [28, 35], [12, 36], [12, 37], [29, 38], [14, 39], [14, 40], [30, 41], [30, 42], [32, 43], [32, 44], [28, 45], [36, 46], [37, 47], [39, 48], [40, 49], [42, 50], [32, 51], [44, 52], [34, 53], [35, 54], [46, 55], [46, 56], [51, 57], [52, 58], [52, 59], [33, 60], [53, 61], [56, 62], [57, 63], [57, 64], [44, 65], [60, 66], [64, 67], [65, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 8], [12, 1], [13, 1], [14, 1], [15, 9], [16, 9], [17, 10], [18, 2], [19, 4], [20, 11], [21, 11], [22, 12], [23, 17], [24, 17], [25, 18], [26, 3], [27, 21], [28, 12], [29, 13], [30, 24], [31, 26], [32, 28], [33, 28], [34, 28], [35, 28], [36, 12], [37, 12], [38, 29], [39, 14], [40, 14], [41, 30], [42, 30], [43, 32], [44, 32], [45, 28], [46, 36], [47, 37], [48, 39], [49, 40], [50, 42], [51, 32], [52, 44], [53, 34], [54, 35], [55, 46], [56, 46], [57, 51], [58, 52], [59, 52], [60, 33], [61, 53], [62, 56], [63, 57], [64, 57], [65, 44], [66, 60], [67, 64], [68, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "setParameter", "code": "  void setParameter(Element elem, PropertySetter propSetter) {\n      String name = subst(elem.getAttribute(NAME_ATTR));\n      String value = (elem.getAttribute(VALUE_ATTR));\n      value = subst(OptionConverter.convertSpecialChars(value));\n      propSetter.setProperty(name, value);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 8], [2, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 1], [9, 2], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "configure", "code": "  void configure (Element element) {\n    DOMConfigurator configurator = new DOMConfigurator();\n    configurator.doConfigure(element,  LogManager.getLoggerRepository());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "configureAndWatch", "code": "  void configureAndWatch(String configFilename) {\n    configureAndWatch(configFilename, FileWatchdog.DEFAULT_DELAY);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "configureAndWatch", "code": "  void configureAndWatch(String configFilename, long delay) {\n    XMLWatchdog xdog = new XMLWatchdog(configFilename);\n    xdog.setDelay(delay);\n    xdog.start();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "doConfigure", "code": "  void doConfigure(final String filename, LoggerRepository repository) {\n    ParseAction action = new ParseAction() {\n          public Document parse(final DocumentBuilder parser) throws SAXException, IOException {\n              return parser.parse(new File(filename));\n          }\n          public String toString() { \n              return \"file [\" + filename + \"]\"; \n          }\n    };\n    doConfigure(action, repository);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [6, 8], [7, 9], [7, 10], [8, 11], [9, 12], [11, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 6], [9, 7], [10, 7], [11, 8], [12, 9], [13, 11], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "doConfigure", "code": "  void doConfigure(final URL url, LoggerRepository repository) {\n      ParseAction action = new ParseAction() {\n          public Document parse(final DocumentBuilder parser) throws SAXException, IOException {\n              URLConnection uConn = url.openConnection();\n              uConn.setUseCaches(false);\n              InputStream stream = uConn.getInputStream();\n              try {\n                InputSource src = new InputSource(stream);\n                src.setSystemId(url.toString());\n                return parser.parse(src);\n              } finally {\n                stream.close();\n              }\n          }\n          public String toString() { \n              return \"url [\" + url.toString() + \"]\"; \n          }\n      };\n      doConfigure(action, repository);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [6, 8], [7, 9], [7, 10], [7, 11], [7, 12], [8, 13], [9, 14], [9, 15], [7, 16], [13, 17], [13, 18], [9, 19], [14, 20], [9, 21], [10, 22], [16, 23], [11, 24], [18, 25], [18, 26], [21, 27], [15, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 6], [9, 7], [10, 7], [11, 7], [12, 7], [13, 8], [14, 9], [15, 9], [16, 7], [17, 13], [18, 13], [19, 9], [20, 14], [21, 9], [22, 10], [23, 16], [24, 11], [25, 18], [26, 18], [27, 21], [28, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "doConfigure", "code": "  void doConfigure(final InputStream inputStream, LoggerRepository repository) \n                                          throws FactoryConfigurationError {\n      ParseAction action = new ParseAction() {\n          public Document parse(final DocumentBuilder parser) throws SAXException, IOException {\n              InputSource inputSource = new InputSource(inputStream);\n              inputSource.setSystemId(\"dummy://log4j.dtd\");\n              return parser.parse(inputSource);\n          }\n          public String toString() { \n              return \"input stream [\" + inputStream.toString() + \"]\"; \n          }\n      };\n      doConfigure(action, repository);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [6, 8], [7, 9], [7, 10], [7, 11], [8, 12], [9, 13], [7, 14], [12, 15], [12, 16], [14, 17], [10, 18], [16, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 6], [9, 7], [10, 7], [11, 7], [12, 8], [13, 9], [14, 7], [15, 12], [16, 12], [17, 14], [18, 10], [19, 16], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "doConfigure", "code": "  void doConfigure(final Reader reader, LoggerRepository repository) \n                                          throws FactoryConfigurationError {\n      ParseAction action = new ParseAction() {\n          public Document parse(final DocumentBuilder parser) throws SAXException, IOException {\n              InputSource inputSource = new InputSource(reader);\n              inputSource.setSystemId(\"dummy://log4j.dtd\");\n              return parser.parse(inputSource);\n          }\n          public String toString() { \n              return \"reader [\" + reader.toString() + \"]\"; \n          }\n      };\n    doConfigure(action, repository);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [6, 8], [7, 9], [7, 10], [7, 11], [8, 12], [9, 13], [7, 14], [12, 15], [12, 16], [14, 17], [10, 18], [16, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 6], [9, 7], [10, 7], [11, 7], [12, 8], [13, 9], [14, 7], [15, 12], [16, 12], [17, 14], [18, 10], [19, 16], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "doConfigure", "code": "  void doConfigure(final InputSource inputSource, LoggerRepository repository) \n                                          throws FactoryConfigurationError {\n      if (inputSource.getSystemId() == null) {\n          inputSource.setSystemId(\"dummy://log4j.dtd\");\n      }\n      ParseAction action = new ParseAction() {\n          public Document parse(final DocumentBuilder parser) throws SAXException, IOException {\n              return parser.parse(inputSource);\n          }\n          public String toString() { \n              return \"input source [\" + inputSource.toString() + \"]\"; \n          }\n      };\n      doConfigure(action, repository);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "FUNC_DECL", "CALL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 7], [6, 8], [6, 9], [7, 10], [7, 11], [2, 12], [10, 13], [11, 14], [11, 15], [12, 16], [13, 17], [14, 18], [17, 19], [17, 20], [20, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 1], [8, 6], [9, 6], [10, 7], [11, 7], [12, 2], [13, 10], [14, 11], [15, 11], [16, 12], [17, 13], [18, 14], [19, 17], [20, 17], [21, 20], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "doConfigure", "code": "  private final void doConfigure(final ParseAction action, final LoggerRepository repository)\n         throws FactoryConfigurationError {\n    DocumentBuilderFactory dbf = null;\n    this.repository = repository;\n    try { \n      LogLog.debug(\"System property is :\"+\n  \t                        OptionConverter.getSystemProperty(dbfKey, \n\t\t\t\t\t\t\t\t  null)); \n      dbf = DocumentBuilderFactory.newInstance();\n      LogLog.debug(\"Standard DocumentBuilderFactory search succeded.\");\n      LogLog.debug(\"DocumentBuilderFactory is: \"+dbf.getClass().getName());\n    } catch(FactoryConfigurationError fce) {\n      Exception e = fce.getException();\n      LogLog.debug(\"Could not instantiate a DocumentBuilderFactory.\", e);\n      throw fce;\n    }\n      \n    try {\n      dbf.setValidating(true);\n\n      DocumentBuilder docBuilder = dbf.newDocumentBuilder();\n\n      docBuilder.setErrorHandler(new SAXErrorHandler());      \n      docBuilder.setEntityResolver(new Log4jEntityResolver());\n         \n      Document doc = action.parse(docBuilder);     \n      parse(doc.getDocumentElement());\n    } catch (Exception e) {\n        if (e instanceof InterruptedException || e instanceof InterruptedIOException) {\n            Thread.currentThread().interrupt();\n        }\n      // I know this is miserable...\n      LogLog.error(\"Could not parse \"+ action.toString() + \".\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "VAR_DECL", "PARAM", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "CATCH", "ASSIGN", "IF", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [0, 10], [6, 11], [1, 12], [1, 13], [1, 14], [1, 15], [9, 16], [9, 17], [2, 18], [2, 19], [2, 20], [2, 21], [3, 22], [6, 23], [11, 24], [12, 25], [7, 26], [13, 27], [14, 28], [8, 29], [15, 30], [9, 31], [18, 32], [19, 33], [20, 34], [21, 35], [23, 36], [24, 37], [24, 38], [31, 39], [17, 40], [32, 41], [32, 42], [35, 43], [35, 44], [36, 45], [36, 46], [11, 47], [41, 48], [43, 49], [46, 50], [46, 51], [47, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 0], [11, 6], [12, 1], [13, 1], [14, 1], [15, 1], [16, 9], [17, 9], [18, 2], [19, 2], [20, 2], [21, 2], [22, 3], [23, 6], [24, 11], [25, 12], [26, 7], [27, 13], [28, 14], [29, 8], [30, 15], [31, 9], [32, 18], [33, 19], [34, 20], [35, 21], [36, 23], [37, 24], [38, 24], [39, 31], [40, 17], [41, 32], [42, 32], [43, 35], [44, 35], [45, 36], [46, 36], [47, 11], [48, 41], [49, 43], [50, 46], [51, 46], [52, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "doConfigure", "code": "  public void doConfigure(Element element, LoggerRepository repository) {\n    this.repository = repository;\n    parse(element);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "configure", "code": "  void configure(String filename) throws FactoryConfigurationError {\n    new DOMConfigurator().doConfigure(filename, \n\t\t\t\t      LogManager.getLoggerRepository());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "configure", "code": "  void configure(URL url) throws FactoryConfigurationError {\n    new DOMConfigurator().doConfigure(url, LogManager.getLoggerRepository());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parse", "code": "  void parse(Element element) {\n\n    String rootElementName = element.getTagName();\n\n    if (!rootElementName.equals(CONFIGURATION_TAG)) {\n      if(rootElementName.equals(OLD_CONFIGURATION_TAG)) {\n\tLogLog.warn(\"The <\"+OLD_CONFIGURATION_TAG+\n\t\t     \"> element has been deprecated.\");\n\tLogLog.warn(\"Use the <\"+CONFIGURATION_TAG+\"> element instead.\");\n      } else {\n\tLogLog.error(\"DOM element is - not a <\"+CONFIGURATION_TAG+\"> element.\");\n\treturn;\n      }\n    }\n\n\n    String debugAttrib = subst(element.getAttribute(INTERNAL_DEBUG_ATTR));\n      \n    LogLog.debug(\"debug attribute= \\\"\" + debugAttrib +\"\\\".\");\n    // if the log4j.dtd is not specified in the XML file, then the\n    // \"debug\" attribute is returned as the empty string.\n    if(!debugAttrib.equals(\"\") && !debugAttrib.equals(\"null\")) {      \n      LogLog.setInternalDebugging(OptionConverter.toBoolean(debugAttrib, true));\n    } else {\n      LogLog.debug(\"Ignoring \" + INTERNAL_DEBUG_ATTR + \" attribute.\");\n    }\n\n      //\n      //   reset repository before configuration if reset=\"true\"\n      //       on configuration element.\n      //\n    String resetAttrib = subst(element.getAttribute(RESET_ATTR));\n    LogLog.debug(\"reset attribute= \\\"\" + resetAttrib +\"\\\".\");\n    if(!(\"\".equals(resetAttrib))) {\n         if (OptionConverter.toBoolean(resetAttrib, false)) {\n             repository.resetConfiguration();\n         }\n    }\n\n\n\n    String confDebug = subst(element.getAttribute(CONFIG_DEBUG_ATTR));\n    if(!confDebug.equals(\"\") && !confDebug.equals(\"null\")) {      \n      LogLog.warn(\"The \\\"\"+CONFIG_DEBUG_ATTR+\"\\\" attribute is deprecated.\");\n      LogLog.warn(\"Use the \\\"\"+INTERNAL_DEBUG_ATTR+\"\\\" attribute instead.\");\n      LogLog.setInternalDebugging(OptionConverter.toBoolean(confDebug, true));\n    }\n\n    String thresholdStr = subst(element.getAttribute(THRESHOLD_ATTR));\n    LogLog.debug(\"Threshold =\\\"\" + thresholdStr +\"\\\".\");\n    if(!\"\".equals(thresholdStr) && !\"null\".equals(thresholdStr)) {\n      repository.setThreshold(thresholdStr);\n    }\n\n    //Hashtable appenderBag = new Hashtable(11);\n\n    /* Building Appender objects, placing them in a local namespace\n       for future reference */\n\n    // First configure each category factory under the root element.\n    // Category factories need to be configured before any of\n    // categories they support.\n    //\n    String   tagName = null;\n    Element  currentElement = null;\n    Node     currentNode = null;\n    NodeList children = element.getChildNodes();\n    final int length = children.getLength();\n\n    for (int loop = 0; loop < length; loop++) {\n      currentNode = children.item(loop);\n      if (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\tcurrentElement = (Element) currentNode;\n\ttagName = currentElement.getTagName();\n\n\tif (tagName.equals(CATEGORY_FACTORY_TAG) || tagName.equals(LOGGER_FACTORY_TAG)) {\n\t  parseCategoryFactory(currentElement);\n\t}\n      }\n    }\n    \n    for (int loop = 0; loop < length; loop++) {\n      currentNode = children.item(loop);\n      if (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n\tcurrentElement = (Element) currentNode;\n\ttagName = currentElement.getTagName();\n\n\tif (tagName.equals(CATEGORY) || tagName.equals(LOGGER)) {\n\t  parseCategory(currentElement);\n\t} else if (tagName.equals(ROOT_TAG)) {\n\t  parseRoot(currentElement);\n\t} else if(tagName.equals(RENDERER_TAG)) {\n\t  parseRenderer(currentElement);\n    } else if(tagName.equals(THROWABLE_RENDERER_TAG)) {\n        if (repository instanceof ThrowableRendererSupport) {\n            ThrowableRenderer tr = parseThrowableRenderer(currentElement);\n            if (tr != null) {\n                ((ThrowableRendererSupport) repository).setThrowableRenderer(tr);\n            }\n        }\n    } else if (!(tagName.equals(APPENDER_TAG)\n            || tagName.equals(CATEGORY_FACTORY_TAG)\n            || tagName.equals(LOGGER_FACTORY_TAG))) {\n        quietParseUnrecognizedElement(repository, currentElement, props);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "RETURN", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 19], [2, 20], [8, 21], [0, 22], [10, 23], [12, 24], [0, 25], [14, 26], [0, 27], [16, 28], [1, 29], [2, 30], [3, 31], [4, 32], [5, 33], [6, 34], [7, 35], [21, 36], [21, 37], [22, 38], [9, 39], [23, 40], [23, 41], [11, 42], [12, 43], [25, 44], [13, 45], [26, 46], [26, 47], [27, 48], [15, 49], [16, 50], [17, 51], [29, 52], [1, 53], [1, 54], [30, 55], [2, 56], [2, 57], [8, 58], [36, 59], [37, 60], [38, 61], [38, 62], [39, 63], [10, 64], [10, 65], [10, 66], [40, 67], [41, 68], [42, 69], [43, 70], [44, 71], [44, 72], [45, 73], [14, 74], [14, 75], [46, 76], [47, 77], [48, 78], [48, 79], [49, 80], [50, 81], [29, 82], [52, 83], [53, 84], [30, 85], [55, 86], [56, 87], [62, 88], [64, 89], [65, 90], [66, 91], [70, 92], [72, 93], [74, 94], [75, 95], [79, 96], [50, 97], [82, 98], [82, 99], [29, 100], [29, 101], [85, 102], [30, 103], [30, 104], [89, 105], [90, 106], [90, 107], [91, 108], [91, 109], [43, 110], [94, 111], [94, 112], [95, 113], [50, 114], [50, 115], [50, 116], [98, 117], [98, 118], [99, 119], [99, 120], [100, 121], [102, 122], [102, 123], [103, 124], [107, 125], [109, 126], [112, 127], [114, 128], [115, 129], [116, 130], [117, 131], [117, 132], [82, 133], [85, 134], [128, 135], [128, 136], [129, 137], [129, 138], [130, 139], [130, 140], [131, 141], [131, 142], [98, 143], [136, 144], [138, 145], [140, 146], [141, 147], [131, 148], [117, 149], [147, 150], [147, 151], [148, 152], [141, 153], [151, 154], [151, 155], [148, 156], [148, 157], [156, 158], [158, 159], [157, 160], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 1], [20, 2], [21, 8], [22, 0], [23, 10], [24, 12], [25, 0], [26, 14], [27, 0], [28, 16], [29, 1], [30, 2], [31, 3], [32, 4], [33, 5], [34, 6], [35, 7], [36, 21], [37, 21], [38, 22], [39, 9], [40, 23], [41, 23], [42, 11], [43, 12], [44, 25], [45, 13], [46, 26], [47, 26], [48, 27], [49, 15], [50, 16], [51, 17], [52, 29], [53, 1], [54, 1], [55, 30], [56, 2], [57, 2], [58, 8], [59, 36], [60, 37], [61, 38], [62, 38], [63, 39], [64, 10], [65, 10], [66, 10], [67, 40], [68, 41], [69, 42], [70, 43], [71, 44], [72, 44], [73, 45], [74, 14], [75, 14], [76, 46], [77, 47], [78, 48], [79, 48], [80, 49], [81, 50], [82, 29], [83, 52], [84, 53], [85, 30], [86, 55], [87, 56], [88, 62], [89, 64], [90, 65], [91, 66], [92, 70], [93, 72], [94, 74], [95, 75], [96, 79], [97, 50], [98, 82], [99, 82], [100, 29], [101, 29], [102, 85], [103, 30], [104, 30], [105, 89], [106, 90], [107, 90], [108, 91], [109, 91], [110, 43], [111, 94], [112, 94], [113, 95], [114, 50], [115, 50], [116, 50], [117, 98], [118, 98], [119, 99], [120, 99], [121, 100], [122, 102], [123, 102], [124, 103], [125, 107], [126, 109], [127, 112], [128, 114], [129, 115], [130, 116], [131, 117], [132, 117], [133, 82], [134, 85], [135, 128], [136, 128], [137, 129], [138, 129], [139, 130], [140, 130], [141, 131], [142, 131], [143, 98], [144, 136], [145, 138], [146, 140], [147, 141], [148, 131], [149, 117], [150, 147], [151, 147], [152, 148], [153, 141], [154, 151], [155, 151], [156, 148], [157, 148], [158, 156], [159, 158], [160, 157], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160]]}, {"function_name": "subst", "code": "  String subst(final String value) {\n      return subst(value, props);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "subst", "code": "    public static String subst(final String value, final Properties props) {\n        try {\n            return OptionConverter.substVars(value, props);\n        } catch (IllegalArgumentException e) {\n            LogLog.warn(\"Could not perform variable substitution.\", e);\n            return value;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setParameter", "code": "    public static void setParameter(final Element elem,\n                                    final PropertySetter propSetter,\n                                    final Properties props) {\n        String name = subst(elem.getAttribute(\"name\"), props);\n        String value = (elem.getAttribute(\"value\"));\n        value = subst(OptionConverter.convertSpecialChars(value), props);\n        propSetter.setProperty(name, value);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [1, 9], [2, 10], [8, 11], [9, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [9, 1], [10, 2], [11, 8], [12, 9], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "parseElement", "code": "    public static Object parseElement(final Element element,\n                                             final Properties props,\n                                             final Class expectedClass) throws Exception {\n        String clazz = subst(element.getAttribute(\"class\"), props);\n        Object instance = OptionConverter.instantiateByClassName(clazz,\n                expectedClass, null);\n\n        if (instance != null) {\n            PropertySetter propSetter = new PropertySetter(instance);\n            NodeList children = element.getChildNodes();\n            final int length = children.getLength();\n\n            for (int loop = 0; loop < length; loop++) {\n                Node currentNode = children.item(loop);\n                if (currentNode.getNodeType() == Node.ELEMENT_NODE) {\n                    Element currentElement = (Element) currentNode;\n                    String tagName = currentElement.getTagName();\n                    if (tagName.equals(\"param\")) {\n                        setParameter(currentElement, propSetter, props);\n                    } else {\n                         parseUnrecognizedElement(instance, currentElement, props);\n                    }\n                }\n            }\n            return instance;\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [9, 15], [3, 16], [4, 17], [11, 18], [16, 19], [17, 20], [11, 21], [11, 22], [12, 23], [13, 24], [14, 25], [20, 26], [21, 27], [11, 28], [21, 29], [21, 30], [21, 31], [27, 32], [22, 33], [29, 34], [34, 35], [30, 36], [29, 37], [29, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 9], [16, 3], [17, 4], [18, 11], [19, 16], [20, 17], [21, 11], [22, 11], [23, 12], [24, 13], [25, 14], [26, 20], [27, 21], [28, 11], [29, 21], [30, 21], [31, 21], [32, 27], [33, 22], [34, 29], [35, 34], [36, 30], [37, 29], [38, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "DOMConfigurator", "code": "  DOMConfigurator () { \n    appenderBag = new Hashtable();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.2-1693", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/converter/jaxb/MessageType.java", "language": "java", "name": "org.apache.camel.converter.jaxb.MessageType", "code": "@XmlRootElement(name = \"message\")\n@XmlAccessorType(value = XmlAccessType.FIELD)\npublic class MessageType {\n    @XmlElementRef(type = HeaderType.class)\n    List<HeaderType> headers = new ArrayList<HeaderType>();\n    @XmlAnyElement(lax = true)\n    @XmlMixed\n    private List content = new ArrayList();\n    @XmlTransient\n    private Object body;\n\n    public Object getBody() {\n        if (body == null) {\n            if (content != null) {\n                if (content.size() == 1) {\n                    return content.get(0);\n                }\n                else {\n                    return content;\n                }\n            }\n        }\n        return body;\n    }\n\n    public void setBody(Object body) {\n        this.body = body;\n        if (body instanceof List) {\n            content = (List) body;\n        }\n        else {\n            content = new ArrayList();\n            content.add(body);\n        }\n    }\n\n    public List<HeaderType> getHeaders() {\n        return headers;\n    }\n\n    public void setHeaders(List<HeaderType> headers) {\n        this.headers = headers;\n    }\n\n    public Map<String, Object> getHeaderMap() {\n        Map<String, Object> answer = new HashMap<String, Object>();\n        for (HeaderType header : headers) {\n            answer.put(header.getName(), header.getValue());\n        }\n        return answer;\n    }\n\n    /**\n     * Copies the headers and body of this object from the given Camel message\n     *\n     * @param message the Camel message to read the headers and body from\n     */\n    public void copyFrom(Message message) {\n        headers.clear();\n        Set<Map.Entry<String, Object>> entries = message.getHeaders().entrySet();\n        for (Map.Entry<String, Object> entry : entries) {\n            Object value = entry.getValue();\n            if (value != null) {\n                headers.add(createHeader(entry.getKey(), value));\n            }\n        }\n        setBody(message.getBody());\n    }\n\n    /**\n     * Copies the headers and body of this object to the given Camel message\n     *\n     * @param message the camel message to overwrite its headers and body\n     */\n    public void copyTo(Message message) {\n        message.setHeaders(getHeaderMap());\n        message.setBody(getBody());\n    }\n\n    protected HeaderType createHeader(String key, Object value) {\n        if (value instanceof String) {\n            return new StringHeader(key, (String) value);\n        }\n        else if (value instanceof Integer) {\n            return new IntegerHeader(key, (Integer) value);\n        }\n        else if (value instanceof Long) {\n            return new LongHeader(key, (Long) value);\n        }\n        else {\n            return new StringHeader(key, value.toString());", "functions": [{"function_name": "getBody", "code": "    public Object getBody() {\n        if (body == null) {\n            if (content != null) {\n                if (content.size() == 1) {\n                    return content.get(0);\n                }\n                else {\n                    return content;\n                }\n            }\n        }\n        return body;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [6, 8], [7, 9], [7, 10], [7, 11], [9, 12], [9, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 6], [9, 7], [10, 7], [11, 7], [12, 9], [13, 9], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setBody", "code": "    public void setBody(Object body) {\n        this.body = body;\n        if (body instanceof List) {\n            content = (List) body;\n        }\n        else {\n            content = new ArrayList();\n            content.add(body);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getHeaders", "code": "    public List<HeaderType> getHeaders() {\n        return headers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHeaders", "code": "    public void setHeaders(List<HeaderType> headers) {\n        this.headers = headers;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeaderMap", "code": "    public Map<String, Object> getHeaderMap() {\n        Map<String, Object> answer = new HashMap<String, Object>();\n        for (HeaderType header : headers) {\n            answer.put(header.getName(), header.getValue());\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "copyFrom", "code": "    public void copyFrom(Message message) {\n        headers.clear();\n        Set<Map.Entry<String, Object>> entries = message.getHeaders().entrySet();\n        for (Map.Entry<String, Object> entry : entries) {\n            Object value = entry.getValue();\n            if (value != null) {\n                headers.add(createHeader(entry.getKey(), value));\n            }\n        }\n        setBody(message.getBody());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 7], [1, 8], [2, 9], [7, 10], [9, 11], [10, 12], [8, 13], [7, 14], [14, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 1], [8, 1], [9, 2], [10, 7], [11, 9], [12, 10], [13, 8], [14, 7], [15, 14], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "copyTo", "code": "    public void copyTo(Message message) {\n        message.setHeaders(getHeaderMap());\n        message.setBody(getBody());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createHeader", "code": "    protected HeaderType createHeader(String key, Object value) {\n        if (value instanceof String) {\n            return new StringHeader(key, (String) value);\n        }\n        else if (value instanceof Integer) {\n            return new IntegerHeader(key, (Integer) value);\n        }\n        else if (value instanceof Long) {\n            return new LongHeader(key, (Long) value);\n        }\n        else {\n            return new StringHeader(key, value.toString());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [6, 9], [4, 10], [8, 11], [6, 12], [6, 13], [10, 14], [12, 15], [13, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 6], [10, 4], [11, 8], [12, 6], [13, 6], [14, 10], [15, 12], [16, 13], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 0}
{"sample_id": "jedit-4.3-4569", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/io/Encoding.java", "language": "java", "name": "org.gjt.sp.jedit.io.Encoding", "code": "public interface Encoding\n{\n\t/**\n\t* Map an InputStream to a Reader.\n\t* Decode-error while reading from this Reader should be reported\n\t* by throwing an IOException.\n\t*/\n\tpublic Reader getTextReader(InputStream in) throws IOException;\n\t\n\t/**\n\t* Map an OutputStream to a Writer.\n\t* Encode-error while writing to this Writer should be reported\n\t* by throwing an IOException.\n\t*/\n\tpublic Writer getTextWriter(OutputStream out) throws IOException;\n\n\t/**\n\t* Map an InputStream to a Reader.\n\t* Decode-error while reading from this Reader should be ignored\n\t* or replaced.\n\t*/\n\tpublic Reader getPermissiveTextReader(InputStream in)", "functions": [{"function_name": "getTextReader", "code": "\tpublic Reader getTextReader(InputStream in) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTextWriter", "code": "\tpublic Writer getTextWriter(OutputStream out) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPermissiveTextReader", "code": "\tpublic Reader getPermissiveTextReader(InputStream in)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6480", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/trace/PrintTraceListener.java", "language": "java", "name": "org.apache.xalan.trace.PrintTraceListener", "code": "public class PrintTraceListener implements TraceListenerEx2\n{\n\n  /**\n   * Construct a trace listener.\n   *\n   * @param pw PrintWriter to use for tracing events\n   */\n  public PrintTraceListener(java.io.PrintWriter pw)\n  {\n    m_pw = pw;\n  }\n\n  /**\n   * The print writer where the events should be written.\n   */\n  java.io.PrintWriter m_pw;\n\n  /**\n   * This needs to be set to true if the listener is to print an event whenever a template is invoked.\n   */\n  public boolean m_traceTemplates = false;\n\n  /**\n   * Set to true if the listener is to print events that occur as each node is 'executed' in the stylesheet.\n   */\n  public boolean m_traceElements = false;\n\n  /**\n   * Set to true if the listener is to print information after each result-tree generation event.\n   */\n  public boolean m_traceGeneration = false;\n\n  /**\n   * Set to true if the listener is to print information after each selection event.\n   */\n  public boolean m_traceSelection = false;\n\n  /**\n   * Print information about a TracerEvent.\n   *\n   * @param ev the trace event.\n   */\n  public void _trace(TracerEvent ev)\n  {\n\n    switch (ev.m_styleNode.getXSLToken())\n    {\n    case Constants.ELEMNAME_TEXTLITERALRESULT :\n      if (m_traceElements)\n      {\n        m_pw.print(ev.m_styleNode.getSystemId()+ \" Line #\" + ev.m_styleNode.getLineNumber() + \", \"\n                   + \"Column #\" + ev.m_styleNode.getColumnNumber() + \" -- \"\n                   + ev.m_styleNode.getNodeName() + \": \");\n\n        ElemTextLiteral etl = (ElemTextLiteral) ev.m_styleNode;\n        String chars = new String(etl.getChars(), 0, etl.getChars().length);\n\n        m_pw.println(\"    \" + chars.trim());\n      }\n      break;\n    case Constants.ELEMNAME_TEMPLATE :\n      if (m_traceTemplates || m_traceElements)\n      {\n        ElemTemplate et = (ElemTemplate) ev.m_styleNode;\n\n        m_pw.print(et.getSystemId()+ \" Line #\" + et.getLineNumber() + \", \" + \"Column #\"\n                   + et.getColumnNumber() + \": \" + et.getNodeName() + \" \");\n\n        if (null != et.getMatch())\n        {\n          m_pw.print(\"match='\" + et.getMatch().getPatternString() + \"' \");\n        }\n\n        if (null != et.getName())\n        {\n          m_pw.print(\"name='\" + et.getName() + \"' \");\n        }\n\n        m_pw.println();\n      }\n      break;\n    default :\n      if (m_traceElements)\n      {\n        m_pw.println(ev.m_styleNode.getSystemId()+ \" Line #\" + ev.m_styleNode.getLineNumber() + \", \"\n                     + \"Column #\" + ev.m_styleNode.getColumnNumber() + \": \"\n                     + ev.m_styleNode.getNodeName());\n      }\n    }\n  }\n  \n  int m_indent = 0;\n  \n  /**\n   * Print information about a TracerEvent.\n   *\n   * @param ev the trace event.\n   */\n  public void trace(TracerEvent ev)\n  {\n\t_trace(ev);\n  }\n  \n  /**\n   * Method that is called when the end of a trace event occurs.\n   * The method is blocking.  It must return before processing continues.\n   *\n   * @param ev the trace event.\n   */\n  public void traceEnd(TracerEvent ev)\n  {\n  }\n\n\n  /**\n   * Method that is called just after a select attribute has been evaluated.\n   *\n   * @param ev the generate event.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public void selected(SelectionEvent ev) throws javax.xml.transform.TransformerException\n  {\n\n    if (m_traceSelection)\n    {\n      ElemTemplateElement ete = (ElemTemplateElement) ev.m_styleNode;\n      Node sourceNode = ev.m_sourceNode;\n      \n      SourceLocator locator = null;\n      if (sourceNode instanceof DTMNodeProxy)\n      {\n        int nodeHandler = ((DTMNodeProxy)sourceNode).getDTMNodeNumber();      \n        locator = ((DTMNodeProxy)sourceNode).getDTM().getSourceLocatorFor(nodeHandler);\n      }\n\n      if (locator != null)      \n        m_pw.println(\"Selected source node '\" + sourceNode.getNodeName()\n                 + \"', at \" + locator);\n      else\n        m_pw.println(\"Selected source node '\" + sourceNode.getNodeName() +\"'\");\n\n      if (ev.m_styleNode.getLineNumber() == 0)\n      {\n\n        ElemTemplateElement parent =\n          (ElemTemplateElement) ete.getParentElem();\n\n        if (parent == ete.getStylesheetRoot().getDefaultRootRule())\n        {\n          m_pw.print(\"(default root rule) \");\n        }\n        else if (parent == ete.getStylesheetRoot().getDefaultTextRule())\n        {\n          m_pw.print(\"(default text rule) \");\n        }\n        else if (parent == ete.getStylesheetRoot().getDefaultRule())\n        {\n          m_pw.print(\"(default rule) \");\n        }\n\n        m_pw.print(ete.getNodeName() + \", \" + ev.m_attributeName + \"='\"\n                   + ev.m_xpath.getPatternString() + \"': \");\n      }\n      else\n      {\n        m_pw.print(ev.m_styleNode.getSystemId()+ \" Line #\" + ev.m_styleNode.getLineNumber() + \", \"\n                   + \"Column #\" + ev.m_styleNode.getColumnNumber() + \": \"\n                   + ete.getNodeName() + \", \" + ev.m_attributeName + \"='\"\n                   + ev.m_xpath.getPatternString() + \"': \");\n      }\n\n                        if (ev.m_selection.getType() == ev.m_selection.CLASS_NODESET)\n                        {\n                                m_pw.println();\n                                \n                                org.apache.xml.dtm.DTMIterator nl = ev.m_selection.iter();\n\n                                try\n                                {\n                                        nl = nl.cloneWithReset();\n                                }\n                                catch(CloneNotSupportedException cnse)\n                                {\n                                        m_pw.println(\"     [Can't trace nodelist because it it threw a CloneNotSupportedException]\");\n                                        return;\n                                }\n                                int pos = nl.nextNode();\n\n                                if (DTM.NULL == pos)\n                                {\n                                        m_pw.println(\"     [empty node list]\");\n                                }\n                                else\n                                {\n                                        while (DTM.NULL != pos)\n                                        {\n                                                DTM dtm = ev.m_processor.getXPathContext().getDTM(pos);\n                                                m_pw.print(\"     \");\n                                                m_pw.print(Integer.toHexString(pos));\n                                                m_pw.print(\": \");\n                                                m_pw.println(dtm.getNodeName(pos));\n\n                                                pos = nl.nextNode();\n                                        }\n                                }        \n                        }\n      else\n      {\n        m_pw.println(ev.m_selection.str());\n      }\n    }\n  }\n  \n  /**\n   * Method that is called after an xsl:apply-templates or xsl:for-each \n   * selection occurs.\n   *\n   * @param ev the generate event.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public void selectEnd(EndSelectionEvent ev) \n     throws javax.xml.transform.TransformerException\n  {\n  }\n\n\n  /**\n   * Print information about a Generate event.\n   *\n   * @param ev the trace event.\n   */\n  public void generated(GenerateEvent ev)\n  {\n\n    if (m_traceGeneration)\n    {\n      switch (ev.m_eventtype)\n      {\n      case GenerateEvent.EVENTTYPE_STARTDOCUMENT :\n        m_pw.println(\"STARTDOCUMENT\");\n        break;\n      case GenerateEvent.EVENTTYPE_ENDDOCUMENT :\n        m_pw.println(\"ENDDOCUMENT\");\n        break;\n      case GenerateEvent.EVENTTYPE_STARTELEMENT :\n        m_pw.println(\"STARTELEMENT: \" + ev.m_name);\n        break;\n      case GenerateEvent.EVENTTYPE_ENDELEMENT :\n        m_pw.println(\"ENDELEMENT: \" + ev.m_name);\n        break;\n      case GenerateEvent.EVENTTYPE_CHARACTERS :\n      {\n        String chars = new String(ev.m_characters, ev.m_start, ev.m_length);\n\n        m_pw.println(\"CHARACTERS: \" + chars);\n      }\n      break;\n      case GenerateEvent.EVENTTYPE_CDATA :\n      {\n        String chars = new String(ev.m_characters, ev.m_start, ev.m_length);\n\n        m_pw.println(\"CDATA: \" + chars);\n      }\n      break;\n      case GenerateEvent.EVENTTYPE_COMMENT :\n        m_pw.println(\"COMMENT: \" + ev.m_data);\n        break;\n      case GenerateEvent.EVENTTYPE_PI :\n        m_pw.println(\"PI: \" + ev.m_name + \", \" + ev.m_data);\n        break;\n      case GenerateEvent.EVENTTYPE_ENTITYREF :\n        m_pw.println(\"ENTITYREF: \" + ev.m_name);\n        break;\n      case GenerateEvent.EVENTTYPE_IGNORABLEWHITESPACE :\n        m_pw.println(\"IGNORABLEWHITESPACE\");\n        break;", "functions": [{"function_name": "_trace", "code": "  public void _trace(TracerEvent ev)\n  {\n\n    switch (ev.m_styleNode.getXSLToken())\n    {\n    case Constants.ELEMNAME_TEXTLITERALRESULT :\n      if (m_traceElements)\n      {\n        m_pw.print(ev.m_styleNode.getSystemId()+ \" Line #\" + ev.m_styleNode.getLineNumber() + \", \"\n                   + \"Column #\" + ev.m_styleNode.getColumnNumber() + \" -- \"\n                   + ev.m_styleNode.getNodeName() + \": \");\n\n        ElemTextLiteral etl = (ElemTextLiteral) ev.m_styleNode;\n        String chars = new String(etl.getChars(), 0, etl.getChars().length);\n\n        m_pw.println(\"    \" + chars.trim());\n      }\n      break;\n    case Constants.ELEMNAME_TEMPLATE :\n      if (m_traceTemplates || m_traceElements)\n      {\n        ElemTemplate et = (ElemTemplate) ev.m_styleNode;\n\n        m_pw.print(et.getSystemId()+ \" Line #\" + et.getLineNumber() + \", \" + \"Column #\"\n                   + et.getColumnNumber() + \": \" + et.getNodeName() + \" \");\n\n        if (null != et.getMatch())\n        {\n          m_pw.print(\"match='\" + et.getMatch().getPatternString() + \"' \");\n        }\n\n        if (null != et.getName())\n        {\n          m_pw.print(\"name='\" + et.getName() + \"' \");\n        }\n\n        m_pw.println();\n      }\n      break;\n    default :\n      if (m_traceElements)\n      {\n        m_pw.println(ev.m_styleNode.getSystemId()+ \" Line #\" + ev.m_styleNode.getLineNumber() + \", \"\n                     + \"Column #\" + ev.m_styleNode.getColumnNumber() + \": \"\n                     + ev.m_styleNode.getNodeName());", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "CALL", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [6, 9], [6, 10], [6, 11], [6, 12], [8, 13], [8, 14], [4, 15], [6, 16], [10, 17], [11, 18], [6, 19], [8, 20], [8, 21], [15, 22], [17, 23], [17, 24], [18, 25], [18, 26], [19, 27], [20, 28], [13, 29], [21, 30], [22, 31], [22, 32], [10, 33], [11, 34], [27, 35], [27, 36], [28, 37], [28, 38], [29, 39], [29, 40], [29, 41], [30, 42], [30, 43], [32, 44], [32, 45], [33, 46], [34, 47], [36, 48], [36, 49], [43, 50], [43, 51], [45, 52], [45, 53], [46, 54], [46, 55], [47, 56], [47, 57], [49, 58], [49, 59], [51, 60], [51, 61], [53, 62], [53, 63], [55, 64], [55, 65], [57, 66], [57, 67], [59, 68], [59, 69], [61, 70], [61, 71], [63, 72], [63, 73], [66, 74], [69, 75], [69, 76], [71, 77], [71, 78], [73, 79], [73, 80], [76, 81], [76, 82], [78, 83], [78, 84], [80, 85], [80, 86], [82, 87], [82, 88], [84, 89], [84, 90], [88, 91], [88, 92], [90, 93], [90, 94], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 6], [10, 6], [11, 6], [12, 6], [13, 8], [14, 8], [15, 4], [16, 6], [17, 10], [18, 11], [19, 6], [20, 8], [21, 8], [22, 15], [23, 17], [24, 17], [25, 18], [26, 18], [27, 19], [28, 20], [29, 13], [30, 21], [31, 22], [32, 22], [33, 10], [34, 11], [35, 27], [36, 27], [37, 28], [38, 28], [39, 29], [40, 29], [41, 29], [42, 30], [43, 30], [44, 32], [45, 32], [46, 33], [47, 34], [48, 36], [49, 36], [50, 43], [51, 43], [52, 45], [53, 45], [54, 46], [55, 46], [56, 47], [57, 47], [58, 49], [59, 49], [60, 51], [61, 51], [62, 53], [63, 53], [64, 55], [65, 55], [66, 57], [67, 57], [68, 59], [69, 59], [70, 61], [71, 61], [72, 63], [73, 63], [74, 66], [75, 69], [76, 69], [77, 71], [78, 71], [79, 73], [80, 73], [81, 76], [82, 76], [83, 78], [84, 78], [85, 80], [86, 80], [87, 82], [88, 82], [89, 84], [90, 84], [91, 88], [92, 88], [93, 90], [94, 90], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "trace", "code": "  public void trace(TracerEvent ev)\n  {\n\t_trace(ev);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "traceEnd", "code": "  public void traceEnd(TracerEvent ev)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "selected", "code": "  public void selected(SelectionEvent ev) throws javax.xml.transform.TransformerException\n  {\n\n    if (m_traceSelection)\n    {\n      ElemTemplateElement ete = (ElemTemplateElement) ev.m_styleNode;\n      Node sourceNode = ev.m_sourceNode;\n      \n      SourceLocator locator = null;\n      if (sourceNode instanceof DTMNodeProxy)\n      {\n        int nodeHandler = ((DTMNodeProxy)sourceNode).getDTMNodeNumber();      \n        locator = ((DTMNodeProxy)sourceNode).getDTM().getSourceLocatorFor(nodeHandler);\n      }\n\n      if (locator != null)      \n        m_pw.println(\"Selected source node '\" + sourceNode.getNodeName()\n                 + \"', at \" + locator);\n      else\n        m_pw.println(\"Selected source node '\" + sourceNode.getNodeName() +\"'\");\n\n      if (ev.m_styleNode.getLineNumber() == 0)\n      {\n\n        ElemTemplateElement parent =\n          (ElemTemplateElement) ete.getParentElem();\n\n        if (parent == ete.getStylesheetRoot().getDefaultRootRule())\n        {\n          m_pw.print(\"(default root rule) \");\n        }\n        else if (parent == ete.getStylesheetRoot().getDefaultTextRule())\n        {\n          m_pw.print(\"(default text rule) \");\n        }\n        else if (parent == ete.getStylesheetRoot().getDefaultRule())\n        {\n          m_pw.print(\"(default rule) \");\n        }\n\n        m_pw.print(ete.getNodeName() + \", \" + ev.m_attributeName + \"='\"\n                   + ev.m_xpath.getPatternString() + \"': \");\n      }\n      else\n      {\n        m_pw.print(ev.m_styleNode.getSystemId()+ \" Line #\" + ev.m_styleNode.getLineNumber() + \", \"\n                   + \"Column #\" + ev.m_styleNode.getColumnNumber() + \": \"\n                   + ete.getNodeName() + \", \" + ev.m_attributeName + \"='\"\n                   + ev.m_xpath.getPatternString() + \"': \");\n      }\n\n                        if (ev.m_selection.getType() == ev.m_selection.CLASS_NODESET)\n                        {\n                                m_pw.println();\n                                \n                                org.apache.xml.dtm.DTMIterator nl = ev.m_selection.iter();\n\n                                try\n                                {\n                                        nl = nl.cloneWithReset();\n                                }\n                                catch(CloneNotSupportedException cnse)\n                                {\n                                        m_pw.println(\"     [Can't trace nodelist because it it threw a CloneNotSupportedException]\");\n                                        return;\n                                }\n                                int pos = nl.nextNode();\n\n                                if (DTM.NULL == pos)\n                                {\n                                        m_pw.println(\"     [empty node list]\");\n                                }\n                                else\n                                {\n                                        while (DTM.NULL != pos)\n                                        {\n                                                DTM dtm = ev.m_processor.getXPathContext().getDTM(pos);\n                                                m_pw.print(\"     \");\n                                                m_pw.print(Integer.toHexString(pos));\n                                                m_pw.print(\": \");\n                                                m_pw.println(dtm.getNodeName(pos));\n\n                                                pos = nl.nextNode();\n                                        }\n                                }        \n                        }\n      else\n      {\n        m_pw.println(ev.m_selection.str());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "TRY", "VAR_DECL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CATCH", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LOOP", "CALL", "RETURN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [4, 11], [5, 12], [6, 13], [3, 14], [3, 15], [3, 16], [3, 17], [10, 18], [4, 19], [4, 20], [11, 21], [11, 22], [5, 23], [5, 24], [12, 25], [6, 26], [7, 27], [3, 28], [14, 29], [16, 30], [3, 31], [4, 32], [4, 33], [19, 34], [19, 35], [23, 36], [24, 37], [6, 38], [28, 39], [14, 40], [15, 41], [30, 42], [16, 43], [17, 44], [32, 45], [33, 46], [34, 47], [34, 48], [35, 49], [36, 50], [36, 51], [37, 52], [40, 53], [14, 54], [30, 55], [43, 56], [45, 57], [45, 58], [46, 59], [46, 60], [47, 61], [48, 62], [19, 63], [49, 64], [20, 65], [51, 66], [51, 67], [52, 68], [52, 69], [40, 70], [54, 71], [55, 72], [58, 73], [58, 74], [60, 75], [60, 76], [61, 77], [34, 78], [62, 79], [63, 80], [69, 81], [69, 82], [40, 83], [40, 84], [40, 85], [40, 86], [40, 87], [74, 88], [74, 89], [76, 90], [76, 91], [47, 92], [77, 93], [78, 94], [83, 95], [84, 96], [85, 97], [86, 98], [87, 99], [70, 100], [89, 101], [91, 102], [92, 103], [100, 104], [101, 105], [101, 106], [102, 107], [102, 108], [106, 109], [106, 110], [110, 111], [110, 112], [112, 113], [112, 114], [114, 115], [114, 116], [116, 117], [116, 118], [118, 119], [118, 120], [120, 121], [120, 122], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 4], [12, 5], [13, 6], [14, 3], [15, 3], [16, 3], [17, 3], [18, 10], [19, 4], [20, 4], [21, 11], [22, 11], [23, 5], [24, 5], [25, 12], [26, 6], [27, 7], [28, 3], [29, 14], [30, 16], [31, 3], [32, 4], [33, 4], [34, 19], [35, 19], [36, 23], [37, 24], [38, 6], [39, 28], [40, 14], [41, 15], [42, 30], [43, 16], [44, 17], [45, 32], [46, 33], [47, 34], [48, 34], [49, 35], [50, 36], [51, 36], [52, 37], [53, 40], [54, 14], [55, 30], [56, 43], [57, 45], [58, 45], [59, 46], [60, 46], [61, 47], [62, 48], [63, 19], [64, 49], [65, 20], [66, 51], [67, 51], [68, 52], [69, 52], [70, 40], [71, 54], [72, 55], [73, 58], [74, 58], [75, 60], [76, 60], [77, 61], [78, 34], [79, 62], [80, 63], [81, 69], [82, 69], [83, 40], [84, 40], [85, 40], [86, 40], [87, 40], [88, 74], [89, 74], [90, 76], [91, 76], [92, 47], [93, 77], [94, 78], [95, 83], [96, 84], [97, 85], [98, 86], [99, 87], [100, 70], [101, 89], [102, 91], [103, 92], [104, 100], [105, 101], [106, 101], [107, 102], [108, 102], [109, 106], [110, 106], [111, 110], [112, 110], [113, 112], [114, 112], [115, 114], [116, 114], [117, 116], [118, 116], [119, 118], [120, 118], [121, 120], [122, 120], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122]]}, {"function_name": "selectEnd", "code": "  public void selectEnd(EndSelectionEvent ev) ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "generated", "code": "  public void generated(GenerateEvent ev)\n  {\n\n    if (m_traceGeneration)\n    {\n      switch (ev.m_eventtype)\n      {\n      case GenerateEvent.EVENTTYPE_STARTDOCUMENT :\n        m_pw.println(\"STARTDOCUMENT\");\n        break;\n      case GenerateEvent.EVENTTYPE_ENDDOCUMENT :\n        m_pw.println(\"ENDDOCUMENT\");\n        break;\n      case GenerateEvent.EVENTTYPE_STARTELEMENT :\n        m_pw.println(\"STARTELEMENT: \" + ev.m_name);\n        break;\n      case GenerateEvent.EVENTTYPE_ENDELEMENT :\n        m_pw.println(\"ENDELEMENT: \" + ev.m_name);\n        break;\n      case GenerateEvent.EVENTTYPE_CHARACTERS :\n      {\n        String chars = new String(ev.m_characters, ev.m_start, ev.m_length);\n\n        m_pw.println(\"CHARACTERS: \" + chars);\n      }\n      break;\n      case GenerateEvent.EVENTTYPE_CDATA :\n      {\n        String chars = new String(ev.m_characters, ev.m_start, ev.m_length);\n\n        m_pw.println(\"CDATA: \" + chars);\n      }\n      break;\n      case GenerateEvent.EVENTTYPE_COMMENT :\n        m_pw.println(\"COMMENT: \" + ev.m_data);\n        break;\n      case GenerateEvent.EVENTTYPE_PI :\n        m_pw.println(\"PI: \" + ev.m_name + \", \" + ev.m_data);\n        break;\n      case GenerateEvent.EVENTTYPE_ENTITYREF :\n        m_pw.println(\"ENTITYREF: \" + ev.m_name);\n        break;\n      case GenerateEvent.EVENTTYPE_IGNORABLEWHITESPACE :\n        m_pw.println(\"IGNORABLEWHITESPACE\");\n        break;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "SWITCH", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [14, 24], [15, 25], [16, 26], [17, 27], [3, 28], [3, 29], [20, 30], [21, 31], [22, 32], [23, 33], [25, 34], [26, 35], [27, 36], [28, 37], [18, 38], [29, 39], [19, 40], [30, 41], [31, 42], [35, 43], [35, 44], [37, 45], [39, 46], [44, 47], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 3], [8, 3], [9, 3], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 14], [25, 15], [26, 16], [27, 17], [28, 3], [29, 3], [30, 20], [31, 21], [32, 22], [33, 23], [34, 25], [35, 26], [36, 27], [37, 28], [38, 18], [39, 29], [40, 19], [41, 30], [42, 31], [43, 35], [44, 35], [45, 37], [46, 39], [47, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "PrintTraceListener", "code": "  public PrintTraceListener(java.io.PrintWriter pw)\n  {\n    m_pw = pw;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.4-6498", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/ElemLiteralResult.java", "language": "java", "name": "org.apache.xalan.templates.ElemLiteralResult", "code": "public class ElemLiteralResult extends ElemUse\n{\n\n  /**\n   * Tells if this element represents a root element\n   * that is also the stylesheet element.\n   * TODO: This should be a derived class.\n   * @serial\n   */\n  private boolean isLiteralResultAsStylesheet = false;\n\n  /**\n   * Set whether this element represents a root element\n   * that is also the stylesheet element.\n   *\n   *\n   * @param b boolean flag indicating whether this element\n   * represents a root element that is also the stylesheet element.\n   */\n  public void setIsLiteralResultAsStylesheet(boolean b)\n  {\n    isLiteralResultAsStylesheet = b;\n  }\n\n  /**\n   * Return whether this element represents a root element\n   * that is also the stylesheet element.\n   *\n   *\n   * @return boolean flag indicating whether this element\n   * represents a root element that is also the stylesheet element.\n   */\n  public boolean getIsLiteralResultAsStylesheet()\n  {\n    return isLiteralResultAsStylesheet;\n  }\n  \n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    StylesheetRoot.ComposeState cstate = sroot.getComposeState();\n    java.util.Vector vnames = cstate.getVariableNames();\n    if (null != m_avts)\n    {\n      int nAttrs = m_avts.size();\n\n      for (int i = (nAttrs - 1); i >= 0; i--)\n      {\n        AVT avt = (AVT) m_avts.elementAt(i);\n        avt.fixupVariables(vnames, cstate.getGlobalsSize());\n      } \n    }   \n  }\n  \n  /**\n   * The created element node will have the attribute nodes\n   * that were present on the element node in the stylesheet tree,\n   * other than attributes with names in the XSLT namespace.\n   * @serial\n   */\n  private Vector m_avts = null;\n\n  /** List of attributes with the XSLT namespace.\n   *  @serial */\n  private Vector m_xslAttr = null;\n\n  /**\n   * Set a literal result attribute (AVTs only).\n   *\n   * @param avt literal result attribute to add (AVT only)\n   */\n  public void addLiteralResultAttribute(AVT avt)\n  {\n\n    if (null == m_avts)\n      m_avts = new Vector();\n\n    m_avts.addElement(avt);\n  }\n\n  /**\n   * Set a literal result attribute (used for xsl attributes).\n   *\n   * @param att literal result attribute to add\n   */\n  public void addLiteralResultAttribute(String att)\n  {\n\n    if (null == m_xslAttr)\n      m_xslAttr = new Vector();\n\n    m_xslAttr.addElement(att);\n  }\n  \n  /**\n   * Set the \"xml:space\" attribute.\n   * A text node is preserved if an ancestor element of the text node\n   * has an xml:space attribute with a value of preserve, and\n   * no closer ancestor element has xml:space with a value of default.\n   *\n   * @param v  Enumerated value, either Constants.ATTRVAL_PRESERVE \n   * or Constants.ATTRVAL_STRIP.\n   */\n  public void setXmlSpace(AVT avt)\n  {\n    addLiteralResultAttribute(avt);\n    String val = avt.getSimpleString();\n    if(val.equals(\"default\"))\n    {\n      super.setXmlSpace(Constants.ATTRVAL_STRIP);\n    }\n    else if(val.equals(\"preserve\"))\n    {\n      super.setXmlSpace(Constants.ATTRVAL_PRESERVE);\n    }\n  }\n\n\n  /**\n   * Get a literal result attribute by name.\n   *\n   * @param name Name of literal result attribute to get\n   *\n   * @return literal result attribute (AVT)\n   */\n  public AVT getLiteralResultAttribute(String name)\n  {\n\n    if (null != m_avts)\n    {\n      int nAttrs = m_avts.size();\n\n      for (int i = (nAttrs - 1); i >= 0; i--)\n      {\n        AVT avt = (AVT) m_avts.elementAt(i);\n\n        if (avt.getRawName().equals(name))\n        {\n          return avt;\n        }\n\t  }\n    }\n\n    return null;\n  }\n\n  /**\n   * Get whether or not the passed URL is flagged by\n   * the \"extension-element-prefixes\" or \"exclude-result-prefixes\"\n   * properties.\n   *\n   * @param prefix non-null reference to prefix that might be excluded.(not currently used)\n   * @param uri reference to namespace that prefix maps to\n   *\n   * @return true if the prefix should normally be excluded.\n   */\n  public boolean containsExcludeResultPrefix(String prefix, String uri)\n  {\n    if (uri == null ||\n\t\t\t\t(null == m_excludeResultPrefixes &&\n\t\t\t\t null == m_ExtensionElementURIs)\n\t\t\t\t)\n      return super.containsExcludeResultPrefix(prefix, uri);\n\n    if (prefix.length() == 0)\n      prefix = Constants.ATTRVAL_DEFAULT_PREFIX;\n\n\t\tif(m_excludeResultPrefixes!=null)\n\t\t\tfor (int i =0; i< m_excludeResultPrefixes.size(); i++)\n\t\t\t{\n\t\t\t\tif (uri.equals(getNamespaceForPrefix(m_excludeResultPrefixes.elementAt(i))))\n\t\t\t\t\treturn true;\n\t\t\t}    \n\t\t\n    if(m_ExtensionElementURIs!=null && m_ExtensionElementURIs.contains(uri))\n       return true;\n\n\t\treturn super.containsExcludeResultPrefix(prefix, uri);\n  }\n\n  /**\n   * Augment resolvePrefixTables, resolving the namespace aliases once\n   * the superclass has resolved the tables.\n   *\n   * @throws TransformerException\n   */\n  public void resolvePrefixTables() throws TransformerException\n  {\n\n    super.resolvePrefixTables();\n\n    StylesheetRoot stylesheet = getStylesheetRoot();\n\n    if ((null != m_namespace) && (m_namespace.length() > 0))\n    {\n      NamespaceAlias nsa = stylesheet.getNamespaceAliasComposed(m_namespace);\n\n      if (null != nsa)\n      {\n        m_namespace = nsa.getResultNamespace();\n\n\n        if ((null != resultPrefix) && (resultPrefix.length() > 0))\n          m_rawName = resultPrefix + \":\" + m_localName;\n        else\n          m_rawName = m_localName;\n      }\n    }\n\n    if (null != m_avts)\n    {\n      int n = m_avts.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        AVT avt = (AVT) m_avts.elementAt(i);\n\n        String ns = avt.getURI();\n\n        if ((null != ns) && (ns.length() > 0))\n        {\n          NamespaceAlias nsa = 0;\n\n          if (null != nsa)\n          {\n            String namespace = nsa.getResultNamespace();\n\n            String rawName = avt.getName();\n\n            if ((null != resultPrefix) && (resultPrefix.length() > 0))\n              rawName = resultPrefix + \":\" + rawName;\n\n            avt.setURI(namespace);\n            avt.setRawName(rawName);\n          }\n        }\n      }\n    }\n  }\n\n  /**\n   * Return whether we need to check namespace prefixes\n   * against the exclude result prefixes or extensions lists.\n   * Note that this will create a new prefix table if one\n   * has not been created already.\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  boolean needToCheckExclude()\n  {\n    if (null == m_excludeResultPrefixes && null == m_prefixTable\n\t\t\t\t)\n      return false;\n    else\n    {\n\n      if (null == m_prefixTable)\n        m_prefixTable = new Vector();\n\n      return true;\n    }\n  }\n\n  /**\n   * The namespace of the element to be created.\n   * @serial\n   */\n  private String m_namespace;\n\n  /**\n   * Set the namespace URI of the result element to be created.\n   * Note that after resolvePrefixTables has been called, this will\n   * return the aliased result namespace, not the original stylesheet\n   * namespace.\n   *\n   * @param ns The Namespace URI, or the empty string if the\n   *        element has no Namespace URI.\n   */\n  public void setNamespace(String ns)\n  {\n      ns = \"\";\n    m_namespace = ns;\n  }\n\n  /**\n   * Get the original namespace of the Literal Result Element.\n   * \n   * %REVIEW% Why isn't this overriding the getNamespaceURI method\n   * rather than introducing a new one?\n   *\n   * @return The Namespace URI, or the empty string if the\n   *        element has no Namespace URI.\n   */\n  public String getNamespace()\n  {\n    return m_namespace;\n  }\n\n  /**\n   * The local name of the element to be created.\n   * @serial\n   */\n  private String m_localName;\n\n  /**\n   * Set the local name of the LRE.\n   *\n   * @param localName The local name (without prefix) of the result element\n   *                  to be created.\n   */\n  public void setLocalName(String localName)\n  {\n    m_localName = localName;\n  }\n\n  /**\n   * Get the local name of the Literal Result Element.\n   * Note that after resolvePrefixTables has been called, this will\n   * return the aliased name prefix, not the original stylesheet\n   * namespace prefix.\n   *\n   * @return The local name (without prefix) of the result element\n   *                  to be created.\n   */\n  public String getLocalName()\n  {\n    return m_localName;\n  }\n\n  /**\n   * The raw name of the element to be created.\n   * @serial\n   */\n  private String m_rawName;\n\n  /**\n   * Set the raw name of the LRE.\n   *\n   * @param rawName The qualified name (with prefix), or the\n   *        empty string if qualified names are not available.\n   */\n  public void setRawName(String rawName)\n  {\n    m_rawName = rawName;\n  }\n\n  /**\n   * Get the raw name of the Literal Result Element.\n   *\n   * @return  The qualified name (with prefix), or the\n   *        empty string if qualified names are not available.\n   */\n  public String getRawName()\n  {\n    return m_rawName;\n  }\n\t\n /**\n   * Get the prefix part of the raw name of the Literal Result Element.\n   *\n   * @return The prefix, or the empty string if noprefix was provided.\n   */\n  public String getPrefix()\n  {\n\t\tint len=m_rawName.length()-m_localName.length()-1;\n    return (len>0)\n\t\t\t? m_rawName.substring(0,len)\n\t\t\t: \"\";\n  }\n\n\n  /**\n   * The \"extension-element-prefixes\" property, actually contains URIs.\n   * @serial\n   */\n  private StringVector m_ExtensionElementURIs;\n\n  /**\n   * Set the \"extension-element-prefixes\" property.\n   *\n   * @param v Vector of URIs (not prefixes) to set as the \"extension-element-prefixes\" property\n   */\n  public void setExtensionElementPrefixes(StringVector v)\n  {\n    m_ExtensionElementURIs = v;\n  }\n\n  /**\n   * Get an \"extension-element-prefix\" property.\n   *\n   * @param i Index of URI (\"extension-element-prefix\" property) to get\n   *\n   * @return URI at given index (\"extension-element-prefix\" property)\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public String getExtensionElementPrefix(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_ExtensionElementURIs)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return m_ExtensionElementURIs.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"extension-element-prefixes\" Strings.\n   *\n   * @return the number of \"extension-element-prefixes\" Strings\n   */\n  public int getExtensionElementPrefixCount()\n  {\n    return (null != m_ExtensionElementURIs)\n           ? m_ExtensionElementURIs.size() : 0;\n  }\n\n  /**\n   * Find out if the given \"extension-element-prefix\" property is defined.\n   *\n   * @param uri The URI to find\n   *\n   * @return True if the given URI is found\n   */\n  public boolean containsExtensionElementURI(String uri)\n  {\n\n    if (null == m_ExtensionElementURIs)\n      return false;\n\n    return m_ExtensionElementURIs.contains(uri);\n  }\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_LITERALRESULT;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The element's name\n   */\n  public String getNodeName()\n  {\n\n    return m_rawName;\n  }\n\n  /**\n   * The XSLT version as specified by this element.\n   * @serial\n   */\n  private String m_version;\n\n  /**\n   * Set the \"version\" property.\n   *\n   * @param v Version property value to set\n   */\n  public void setVersion(String v)\n  {\n    m_version = v;\n  }\n  \n  /**\n   * Get the \"version\" property.\n   *\n   * @return Version property value\n   */\n  public String getVersion()\n  {\n    return m_version;\n  }\n\n  /**\n   * The \"exclude-result-prefixes\" property.\n   * @serial\n   */\n  private StringVector m_excludeResultPrefixes;\n\n  /**\n   * Set the \"exclude-result-prefixes\" property.\n   * The designation of a namespace as an excluded namespace is\n   * effective within the subtree of the stylesheet rooted at\n   * the element bearing the exclude-result-prefixes or\n   * xsl:exclude-result-prefixes attribute; a subtree rooted\n   * at an xsl:stylesheet element does not include any stylesheets\n   * imported or included by children of that xsl:stylesheet element.\n   *\n   * @param v vector of prefixes that are resolvable to strings.\n   */\n  public void setExcludeResultPrefixes(StringVector v)\n  {\n    m_excludeResultPrefixes = v;\n  }\n\n  /**\n   * Tell if the result namespace decl should be excluded.  Should be called before\n   * namespace aliasing (I think).\n   *\n   * @param prefix Prefix of namespace to check\n   * @param uri URI of namespace to check\n   *\n   * @return True if the given namespace should be excluded\n   *\n   * @throws TransformerException\n   */\n  private boolean excludeResultNSDecl(String prefix, String uri)\n          throws TransformerException\n  {\n\n    if (null != m_excludeResultPrefixes)\n    {\n      return containsExcludeResultPrefix(prefix, uri);\n    }\n\n    return false;\n  }\n  \n  /**\n   * Copy a Literal Result Element into the Result tree, copy the\n   * non-excluded namespace attributes, copy the attributes not\n   * of the XSLT namespace, and execute the children of the LRE.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    try\n    {\n      ResultTreeHandler rhandler = transformer.getResultTreeHandler();\n\t\t\t\n\t\t\trhandler.startPrefixMapping(getPrefix(),getNamespace());\n\n      executeNSDecls(transformer);\n      rhandler.startElement(getNamespace(), getLocalName(), getRawName(), null);\n\n      try\n      {\n\n        super.execute(transformer);\n\n        if (null != m_avts)\n        {\n          int nAttrs = m_avts.size();\n\n          for (int i = (nAttrs - 1); i >= 0; i--)\n          {\n            AVT avt = (AVT) m_avts.elementAt(i);\n            XPathContext xctxt = transformer.getXPathContext();\n            int sourceNode = xctxt.getCurrentNode();\n            String stringedValue = avt.evaluate(xctxt, sourceNode, this);\n\n            if (null != stringedValue)\n            {\n\n\t\t\t\t\t\t\t\n              rhandler.addAttribute(avt.getURI(), avt.getName(),\n                                    avt.getRawName(), \"CDATA\", stringedValue);\n            }\n\t\t  }\n        }\n\n        transformer.executeChildTemplates(this, true);\n      }\n      finally\n      {\n        rhandler.endElement(getNamespace(), getLocalName(), getRawName());\n        unexecuteNSDecls(transformer);\n\t\t\t\t\n\t\t\t\trhandler.endPrefixMapping(getPrefix());\n      }\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n  }\n\n  /**\n   * Compiling templates requires that we be able to list the AVTs\n   * ADDED 9/5/2000 to support compilation experiment\n   *\n   * @return an Enumeration of the literal result attributes associated\n   * with this element.\n   */\n  public Enumeration enumerateLiteralResultAttributes()\n  {\n    return (null == m_avts) ? null : m_avts.elements();\n  }\n  \n    /**\n     * Accept a visitor and call the appropriate method \n     * for this class.\n     * \n     * @param visitor The visitor whose appropriate method will be called.\n     * @return true if the children of the object should be visited.\n     */\n    protected boolean accept(XSLTVisitor visitor)\n    {\n      return visitor.visitLiteralResultElement(this);\n    }\n\n    /**\n     * Call the children visitors.\n     * @param visitor The visitor whose appropriate method will be called.\n     */\n    protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n    {\n      if (callAttrs && null != m_avts)\n      {\n        int nAttrs = m_avts.size();\n\n        for (int i = (nAttrs - 1); i >= 0; i--)\n        {\n          AVT avt = (AVT) m_avts.elementAt(i);\n          avt.callVisitors(visitor);\n        }\n      }\n      super.callChildVisitors(visitor, callAttrs);", "functions": [{"function_name": "setIsLiteralResultAsStylesheet", "code": "  public void setIsLiteralResultAsStylesheet(boolean b)\n  {\n    isLiteralResultAsStylesheet = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIsLiteralResultAsStylesheet", "code": "  public boolean getIsLiteralResultAsStylesheet()\n  {\n    return isLiteralResultAsStylesheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    StylesheetRoot.ComposeState cstate = sroot.getComposeState();\n    java.util.Vector vnames = cstate.getVariableNames();\n    if (null != m_avts)\n    {\n      int nAttrs = m_avts.size();\n\n      for (int i = (nAttrs - 1); i >= 0; i--)\n      {\n        AVT avt = (AVT) m_avts.elementAt(i);\n        avt.fixupVariables(vnames, cstate.getGlobalsSize());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [3, 10], [6, 11], [6, 12], [11, 13], [7, 14], [6, 15], [6, 16], [15, 17], [16, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 3], [11, 6], [12, 6], [13, 11], [14, 7], [15, 6], [16, 6], [17, 15], [18, 16], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "addLiteralResultAttribute", "code": "  public void addLiteralResultAttribute(AVT avt)\n  {\n\n    if (null == m_avts)\n      m_avts = new Vector();\n\n    m_avts.addElement(avt);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addLiteralResultAttribute", "code": "  public void addLiteralResultAttribute(String att)\n  {\n\n    if (null == m_xslAttr)\n      m_xslAttr = new Vector();\n\n    m_xslAttr.addElement(att);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setXmlSpace", "code": "  public void setXmlSpace(AVT avt)\n  {\n    addLiteralResultAttribute(avt);\n    String val = avt.getSimpleString();\n    if(val.equals(\"default\"))\n    {\n      super.setXmlSpace(Constants.ATTRVAL_STRIP);\n    }\n    else if(val.equals(\"preserve\"))\n    {\n      super.setXmlSpace(Constants.ATTRVAL_PRESERVE);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [5, 8], [2, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 5], [9, 2], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getLiteralResultAttribute", "code": "  public AVT getLiteralResultAttribute(String name)\n  {\n\n    if (null != m_avts)\n    {\n      int nAttrs = m_avts.size();\n\n      for (int i = (nAttrs - 1); i >= 0; i--)\n      {\n        AVT avt = (AVT) m_avts.elementAt(i);\n\n        if (avt.getRawName().equals(name))\n        {\n          return avt;\n        }\n\t  }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [9, 12], [7, 13], [10, 14], [6, 15], [10, 16], [14, 17], [15, 18], [11, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 9], [13, 7], [14, 10], [15, 6], [16, 10], [17, 14], [18, 15], [19, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "containsExcludeResultPrefix", "code": "  public boolean containsExcludeResultPrefix(String prefix, String uri)\n  {\n    if (uri == null ||\n\t\t\t\t(null == m_excludeResultPrefixes &&\n\t\t\t\t null == m_ExtensionElementURIs)\n\t\t\t\t)\n      return super.containsExcludeResultPrefix(prefix, uri);\n\n    if (prefix.length() == 0)\n      prefix = Constants.ATTRVAL_DEFAULT_PREFIX;\n\n\t\tif(m_excludeResultPrefixes!=null)\n\t\t\tfor (int i =0; i< m_excludeResultPrefixes.size(); i++)\n\t\t\t{\n\t\t\t\tif (uri.equals(getNamespaceForPrefix(m_excludeResultPrefixes.elementAt(i))))\n\t\t\t\t\treturn true;\n\t\t\t}    \n\t\t\n    if(m_ExtensionElementURIs!=null && m_ExtensionElementURIs.contains(uri))\n       return true;\n\n\t\treturn super.containsExcludeResultPrefix(prefix, uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "RETURN", "BINARY_OP", "LOOP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [3, 11], [4, 12], [5, 13], [5, 14], [8, 15], [9, 16], [9, 17], [10, 18], [11, 19], [4, 20], [12, 21], [12, 22], [14, 23], [14, 24], [17, 25], [10, 26], [18, 27], [23, 28], [23, 29], [24, 30], [26, 31], [26, 32], [10, 33], [28, 34], [29, 35], [31, 36], [32, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 3], [12, 4], [13, 5], [14, 5], [15, 8], [16, 9], [17, 9], [18, 10], [19, 11], [20, 4], [21, 12], [22, 12], [23, 14], [24, 14], [25, 17], [26, 10], [27, 18], [28, 23], [29, 23], [30, 24], [31, 26], [32, 26], [33, 10], [34, 28], [35, 29], [36, 31], [37, 32], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "resolvePrefixTables", "code": "  public void resolvePrefixTables() throws TransformerException\n  {\n\n    super.resolvePrefixTables();\n\n    StylesheetRoot stylesheet = getStylesheetRoot();\n\n    if ((null != m_namespace) && (m_namespace.length() > 0))\n    {\n      NamespaceAlias nsa = stylesheet.getNamespaceAliasComposed(m_namespace);\n\n      if (null != nsa)\n      {\n        m_namespace = nsa.getResultNamespace();\n\n\n        if ((null != resultPrefix) && (resultPrefix.length() > 0))\n          m_rawName = resultPrefix + \":\" + m_localName;\n        else\n          m_rawName = m_localName;\n      }\n    }\n\n    if (null != m_avts)\n    {\n      int n = m_avts.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        AVT avt = (AVT) m_avts.elementAt(i);\n\n        String ns = avt.getURI();\n\n        if ((null != ns) && (ns.length() > 0))\n        {\n          NamespaceAlias nsa = 0;\n\n          if (null != nsa)\n          {\n            String namespace = nsa.getResultNamespace();\n\n            String rawName = avt.getName();\n\n            if ((null != resultPrefix) && (resultPrefix.length() > 0))\n              rawName = resultPrefix + \":\" + rawName;\n\n            avt.setURI(namespace);\n            avt.setRawName(rawName);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [2, 9], [2, 10], [5, 11], [5, 12], [3, 13], [6, 14], [9, 15], [11, 16], [11, 17], [12, 18], [6, 19], [6, 20], [6, 21], [7, 22], [9, 23], [15, 24], [10, 25], [19, 26], [6, 27], [23, 28], [9, 29], [19, 30], [19, 31], [26, 32], [26, 33], [20, 34], [23, 35], [23, 36], [28, 37], [28, 38], [29, 39], [30, 40], [32, 41], [32, 42], [33, 43], [21, 44], [36, 45], [37, 46], [37, 47], [38, 48], [30, 49], [30, 50], [30, 51], [40, 52], [31, 53], [45, 54], [30, 55], [30, 56], [49, 57], [54, 58], [49, 59], [57, 60], [57, 61], [50, 62], [51, 63], [59, 64], [60, 65], [60, 66], [61, 67], [64, 68], [68, 69], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 2], [10, 2], [11, 5], [12, 5], [13, 3], [14, 6], [15, 9], [16, 11], [17, 11], [18, 12], [19, 6], [20, 6], [21, 6], [22, 7], [23, 9], [24, 15], [25, 10], [26, 19], [27, 6], [28, 23], [29, 9], [30, 19], [31, 19], [32, 26], [33, 26], [34, 20], [35, 23], [36, 23], [37, 28], [38, 28], [39, 29], [40, 30], [41, 32], [42, 32], [43, 33], [44, 21], [45, 36], [46, 37], [47, 37], [48, 38], [49, 30], [50, 30], [51, 30], [52, 40], [53, 31], [54, 45], [55, 30], [56, 30], [57, 49], [58, 54], [59, 49], [60, 57], [61, 57], [62, 50], [63, 51], [64, 59], [65, 60], [66, 60], [67, 61], [68, 64], [69, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "needToCheckExclude", "code": "  boolean needToCheckExclude()\n  {\n    if (null == m_excludeResultPrefixes && null == m_prefixTable\n\t\t\t\t)\n      return false;\n    else\n    {\n\n      if (null == m_prefixTable)\n        m_prefixTable = new Vector();\n\n      return true;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [3, 8], [4, 9], [5, 10], [7, 11], [8, 12], [5, 13], [10, 14], [13, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 3], [9, 4], [10, 5], [11, 7], [12, 8], [13, 5], [14, 10], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setNamespace", "code": "  public void setNamespace(String ns)\n  {\n      ns = \"\";\n    m_namespace = ns;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNamespace", "code": "  public String getNamespace()\n  {\n    return m_namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLocalName", "code": "  public void setLocalName(String localName)\n  {\n    m_localName = localName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalName", "code": "  public String getLocalName()\n  {\n    return m_localName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRawName", "code": "  public void setRawName(String rawName)\n  {\n    m_rawName = rawName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRawName", "code": "  public String getRawName()\n  {\n    return m_rawName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPrefix", "code": "  public String getPrefix()\n  {\n\t\tint len=m_rawName.length()-m_localName.length()-1;\n    return (len>0)\n\t\t\t? m_rawName.substring(0,len)\n\t\t\t: \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [2, 7], [5, 8], [6, 9], [7, 10], [7, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 2], [8, 5], [9, 6], [10, 7], [11, 7], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setExtensionElementPrefixes", "code": "  public void setExtensionElementPrefixes(StringVector v)\n  {\n    m_ExtensionElementURIs = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExtensionElementPrefix", "code": "  public String getExtensionElementPrefix(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_ExtensionElementURIs)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return m_ExtensionElementURIs.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExtensionElementPrefixCount", "code": "  public int getExtensionElementPrefixCount()\n  {\n    return (null != m_ExtensionElementURIs)\n           ? m_ExtensionElementURIs.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "containsExtensionElementURI", "code": "  public boolean containsExtensionElementURI(String uri)\n  {\n\n    if (null == m_ExtensionElementURIs)\n      return false;\n\n    return m_ExtensionElementURIs.contains(uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_LITERALRESULT;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n\n    return m_rawName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVersion", "code": "  public void setVersion(String v)\n  {\n    m_version = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVersion", "code": "  public String getVersion()\n  {\n    return m_version;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExcludeResultPrefixes", "code": "  public void setExcludeResultPrefixes(StringVector v)\n  {\n    m_excludeResultPrefixes = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "excludeResultNSDecl", "code": "  private boolean excludeResultNSDecl(String prefix, String uri)\n          throws TransformerException\n  {\n\n    if (null != m_excludeResultPrefixes)\n    {\n      return containsExcludeResultPrefix(prefix, uri);\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    try\n    {\n      ResultTreeHandler rhandler = transformer.getResultTreeHandler();\n\t\t\t\n\t\t\trhandler.startPrefixMapping(getPrefix(),getNamespace());\n\n      executeNSDecls(transformer);\n      rhandler.startElement(getNamespace(), getLocalName(), getRawName(), null);\n\n      try\n      {\n\n        super.execute(transformer);\n\n        if (null != m_avts)\n        {\n          int nAttrs = m_avts.size();\n\n          for (int i = (nAttrs - 1); i >= 0; i--)\n          {\n            AVT avt = (AVT) m_avts.elementAt(i);\n            XPathContext xctxt = transformer.getXPathContext();\n            int sourceNode = xctxt.getCurrentNode();\n            String stringedValue = avt.evaluate(xctxt, sourceNode, this);\n\n            if (null != stringedValue)\n            {\n\n\t\t\t\t\t\t\t\n              rhandler.addAttribute(avt.getURI(), avt.getName(),\n                                    avt.getRawName(), \"CDATA\", stringedValue);\n            }\n\t\t  }\n        }\n\n        transformer.executeChildTemplates(this, true);\n      }\n      finally\n      {\n        rhandler.endElement(getNamespace(), getLocalName(), getRawName());\n        unexecuteNSDecls(transformer);\n\t\t\t\t\n\t\t\t\trhandler.endPrefixMapping(getPrefix());\n      }\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "TRY", "VAR_DECL", "THROW_RAISE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [1, 8], [1, 9], [1, 10], [6, 11], [4, 12], [4, 13], [4, 14], [4, 15], [7, 16], [8, 17], [8, 18], [8, 19], [8, 20], [10, 21], [10, 22], [5, 23], [12, 24], [14, 25], [14, 26], [14, 27], [15, 28], [7, 29], [7, 30], [16, 31], [29, 32], [29, 33], [29, 34], [29, 35], [29, 36], [29, 37], [32, 38], [30, 39], [33, 40], [29, 41], [40, 42], [34, 43], [35, 44], [36, 45], [41, 46], [33, 47], [37, 48], [47, 49], [47, 50], [47, 51], [47, 52], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 1], [9, 1], [10, 1], [11, 6], [12, 4], [13, 4], [14, 4], [15, 4], [16, 7], [17, 8], [18, 8], [19, 8], [20, 8], [21, 10], [22, 10], [23, 5], [24, 12], [25, 14], [26, 14], [27, 14], [28, 15], [29, 7], [30, 7], [31, 16], [32, 29], [33, 29], [34, 29], [35, 29], [36, 29], [37, 29], [38, 32], [39, 30], [40, 33], [41, 29], [42, 40], [43, 34], [44, 35], [45, 36], [46, 41], [47, 33], [48, 37], [49, 47], [50, 47], [51, 47], [52, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "enumerateLiteralResultAttributes", "code": "  public Enumeration enumerateLiteralResultAttributes()\n  {\n    return (null == m_avts) ? null : m_avts.elements();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "accept", "code": "    protected boolean accept(XSLTVisitor visitor)\n    {\n      return visitor.visitLiteralResultElement(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "callChildVisitors", "code": "    protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n    {\n      if (callAttrs && null != m_avts)\n      {\n        int nAttrs = m_avts.size();\n\n        for (int i = (nAttrs - 1); i >= 0; i--)\n        {\n          AVT avt = (AVT) m_avts.elementAt(i);\n          avt.callVisitors(visitor);\n        }\n      }\n      super.callChildVisitors(visitor, callAttrs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [7, 9], [5, 10], [8, 11], [6, 12], [5, 13], [5, 14], [14, 15], [10, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 7], [10, 5], [11, 8], [12, 6], [13, 5], [14, 5], [15, 14], [16, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "camel-1.6-2813", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/stream/StreamEndpoint.java", "language": "java", "name": "org.apache.camel.component.stream.StreamEndpoint", "code": "public class StreamEndpoint extends DefaultEndpoint<Exchange> {\n    private static final transient Log LOG = LogFactory.getLog(StreamEndpoint.class);\n\n    private String uri;\n    private String file;\n    private String url;\n    private long delay;\n    private String encoding;\n\n    public StreamEndpoint(String endpointUri, Component component) throws Exception {\n        super(endpointUri, component);\n        this.uri = endpointUri;\n    }\n\n    public StreamEndpoint(String endpointUri) {\n        super(endpointUri);\n        this.uri = endpointUri;\n    }\n\n    public Consumer<Exchange> createConsumer(Processor processor) throws Exception {\n        return new StreamConsumer(this, processor, uri);\n    }\n\n    public Producer<Exchange> createProducer() throws Exception {\n        return new StreamProducer(this, uri);\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n\n    public String getFile() {\n        return file;\n    }\n\n    /**\n     * @deprecated use camel-file component. Will be removed in Camel 2.0\n     */\n    public void setFile(String file) {\n        this.file = file;\n    }\n\n    public String getUrl() {\n        return url;\n    }\n\n    /**\n     * @deprecated use camel-jetty or camel-http component. Will be removed in Camel 2.0\n     */\n    public void setUrl(String url) {\n        this.url = url;\n    }\n\n    public long getDelay() {\n        return delay;\n    }\n\n    public void setDelay(long delay) {\n        this.delay = delay;\n    }\n\n    public String getEncoding() {\n        return encoding;\n    }\n\n    public void setEncoding(String encoding) {\n        this.encoding = encoding;\n    }\n\n\n    Charset getCharset() {\n        if (encoding == null) {\n            encoding = Charset.defaultCharset().name();\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"No encoding parameter using default charset: \" + encoding);\n            }\n        }\n        if (!Charset.isSupported(encoding)) {\n            throw new IllegalArgumentException(\"The encoding: \" + encoding + \" is not supported\");\n        }\n\n        return Charset.forName(encoding);", "functions": [{"function_name": "createConsumer", "code": "    public Consumer<Exchange> createConsumer(Processor processor) throws Exception {\n        return new StreamConsumer(this, processor, uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createProducer", "code": "    public Producer<Exchange> createProducer() throws Exception {\n        return new StreamProducer(this, uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFile", "code": "    public String getFile() {\n        return file;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFile", "code": "    public void setFile(String file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUrl", "code": "    public String getUrl() {\n        return url;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUrl", "code": "    public void setUrl(String url) {\n        this.url = url;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDelay", "code": "    public long getDelay() {\n        return delay;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDelay", "code": "    public void setDelay(long delay) {\n        this.delay = delay;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEncoding", "code": "    public String getEncoding() {\n        return encoding;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEncoding", "code": "    public void setEncoding(String encoding) {\n        this.encoding = encoding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCharset", "code": "    Charset getCharset() {\n        if (encoding == null) {\n            encoding = Charset.defaultCharset().name();\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"No encoding parameter using default charset: \" + encoding);\n            }\n        }\n        if (!Charset.isSupported(encoding)) {\n            throw new IllegalArgumentException(\"The encoding: \" + encoding + \" is not supported\");\n        }\n\n        return Charset.forName(encoding);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [2, 7], [3, 8], [6, 9], [7, 10], [8, 11], [3, 12], [10, 13], [12, 14], [13, 15], [13, 16], [8, 17], [14, 18], [16, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 2], [8, 3], [9, 6], [10, 7], [11, 8], [12, 3], [13, 10], [14, 12], [15, 13], [16, 13], [17, 8], [18, 14], [19, 16], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "StreamEndpoint", "code": "    public StreamEndpoint(String endpointUri, Component component) throws Exception {\n        super(endpointUri, component);\n        this.uri = endpointUri;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "StreamEndpoint", "code": "    public StreamEndpoint(String endpointUri) {\n        super(endpointUri);\n        this.uri = endpointUri;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.5-451", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/util/JavaEnvUtils.java", "language": "java", "name": "org.apache.tools.ant.util.JavaEnvUtils", "code": "public class JavaEnvUtils {\n\n    /** Are we on a DOS-based system */\n    private static final boolean isDos = Os.isFamily(\"dos\");\n    /** Are we on Novell NetWare */\n    private static final boolean isNetware = Os.isName(\"netware\");\n    /** Are we on AIX */\n    private static final boolean isAix = Os.isName(\"aix\");\n\n    /** shortcut for System.getProperty(\"java.home\") */\n    private static final String javaHome = System.getProperty(\"java.home\");\n\n    /** FileUtils instance for path normalization */\n    private static final FileUtils fileUtils = FileUtils.newFileUtils();\n\n    /** Version of currently running VM. */\n    private static String javaVersion;\n\n    /** floating version of the JVM */\n    private static int javaVersionNumber;\n\n    /** Version constant for Java 1.0 */\n    public static final String JAVA_1_0 = \"1.0\";\n    /** Version constant for Java 1.1 */\n    public static final String JAVA_1_1 = \"1.1\";\n    /** Version constant for Java 1.2 */\n    public static final String JAVA_1_2 = \"1.2\";\n    /** Version constant for Java 1.3 */\n    public static final String JAVA_1_3 = \"1.3\";\n    /** Version constant for Java 1.4 */\n    public static final String JAVA_1_4 = \"1.4\";\n\n    /** array of packages in the runtime */\n    private static Vector jrePackages;\n\n\n    static {\n\n\n        try {\n            javaVersion = JAVA_1_0;\n            javaVersionNumber=10;\n            Class.forName(\"java.lang.Void\");\n            javaVersion = JAVA_1_1;\n            javaVersionNumber++;\n            Class.forName(\"java.lang.ThreadLocal\");\n            javaVersion = JAVA_1_2;\n            javaVersionNumber++;\n            Class.forName(\"java.lang.StrictMath\");\n            javaVersion = JAVA_1_3;\n            javaVersionNumber++;\n            Class.forName(\"java.lang.CharSequence\");\n            javaVersion = JAVA_1_4;\n            javaVersionNumber++;\n        } catch (Throwable t) {\n        }\n    }\n\n    /**\n     * Returns the version of Java this class is running under.\n     * @return the version of Java as a String, e.g. \"1.1\"\n     */\n    public static String getJavaVersion() {\n        return javaVersion;\n    }\n\n    /**\n     * Compares the current Java version to the passed in String -\n     * assumes the argument is one of the constants defined in this\n     * class.\n     * @return true if the version of Java is the same as the given\n     * version.\n     * @since Ant 1.5\n     */\n    public static boolean isJavaVersion(String version) {\n        return javaVersion == version;\n    }\n\n    /**\n     * Finds an executable that is part of a JRE installation based on\n     * the java.home system property.\n     *\n     * <p><code>java</code>, <code>keytool</code>,\n     * <code>policytool</code>, <code>orbd</code>, <code>rmid</code>,\n     * <code>rmiregistry</code>, <code>servertool</code> and\n     * <code>tnameserv</code> are JRE executables on Sun based\n     * JRE's.</p>\n     *\n     * <p>You typically find them in <code>JAVA_HOME/jre/bin</code> if\n     * <code>JAVA_HOME</code> points to your JDK installation.  JDK\n     * &lt; 1.2 has them in the same directory as the JDK\n     * executables.</p>\n     *\n     * @since Ant 1.5\n     */\n    public static String getJreExecutable(String command) {\n        if (isNetware) {\n            return command;\n        }\n\n        File jExecutable = null;\n\n        if (isAix) {\n            jExecutable = findInDir(javaHome + \"/sh\", command);\n        }\n\n        if (jExecutable == null) {\n            jExecutable = findInDir(javaHome + \"/bin\", command);\n        }\n\n        if (jExecutable != null) {\n            return jExecutable.getAbsolutePath();\n        } else {\n            return addExtension(command);\n        }\n    }\n\n    /**\n     * Finds an executable that is part of a JDK installation based on\n     * the java.home system property.\n     *\n     * <p>You typically find them in <code>JAVA_HOME/bin</code> if\n     * <code>JAVA_HOME</code> points to your JDK installation.</p>\n     *\n     * @since Ant 1.5\n     */\n    public static String getJdkExecutable(String command) {\n        if (isNetware) {\n            return command;\n        }\n\n        File jExecutable = null;\n\n        if (isAix) {\n            jExecutable = findInDir(javaHome + \"/../sh\", command);\n        }\n\n        if (jExecutable == null) {\n            jExecutable = findInDir(javaHome + \"/../bin\", command);\n        }\n\n        if (jExecutable != null) {\n            return jExecutable.getAbsolutePath();\n        } else {\n            return getJreExecutable(command);\n        }\n    }\n\n    /**\n     * Adds a system specific extension to the name of an executable.\n     *\n     * @since Ant 1.5\n     */\n    private static String addExtension(String command) {\n        return command + (isDos ? \".exe\" : \"\");\n    }\n\n    /**\n     * Look for an executable in a given directory.\n     *\n     * @return null if the executable cannot be found.\n     */\n    private static File findInDir(String dirName, String commandName) {\n        File dir = fileUtils.normalize(dirName);\n        File executable = null;\n        if (dir.exists()) {\n            executable = new File(dir, addExtension(commandName));\n            if (!executable.exists()) {\n                executable = null;\n            }\n        }\n        return executable;\n    }\n\n    /**\n     * demand creation of the package list.\n     * When you add a new package, add a new test below\n     */\n\n    private static void buildJrePackages() {\n        jrePackages=new Vector();\n        switch(javaVersionNumber) {\n            case 14:\n                jrePackages.addElement(\"org.apache.crimson\");\n                jrePackages.addElement(\"org.apache.xalan\");\n                jrePackages.addElement(\"org.apache.xml\");\n                jrePackages.addElement(\"org.apache.xpath\");\n                jrePackages.addElement(\"org.ietf.jgss\");\n                jrePackages.addElement(\"org.w3c.dom\");\n                jrePackages.addElement(\"org.xml.sax\");\n            case 13:\n                jrePackages.addElement(\"org.omg\");\n                jrePackages.addElement(\"com.sun.corba\");\n                jrePackages.addElement(\"com.sun.jndi\");\n                jrePackages.addElement(\"com.sun.media\");\n                jrePackages.addElement(\"com.sun.naming\");\n                jrePackages.addElement(\"com.sun.org.omg\");\n                jrePackages.addElement(\"com.sun.rmi\");\n                jrePackages.addElement(\"sunw.io\");\n                jrePackages.addElement(\"sunw.util\");\n            case 12:\n                jrePackages.addElement(\"com.sun.java\");\n                jrePackages.addElement(\"com.sun.image\");\n            case 11:\n            default:\n                jrePackages.addElement(\"sun\");\n                jrePackages.addElement(\"java\");\n                jrePackages.addElement(\"javax\");\n                break;\n        }\n    }\n\n    /**\n     * Testing helper method; kept here for unification of changes.\n     */\n    public static Vector getJrePackageTestCases() {\n        Vector tests=new Vector();\n        tests.addElement(\"java.lang.Object\");\n        switch(javaVersionNumber) {\n            case 14:\n                tests.addElement(\"sun.audio.AudioPlayer\");\n                tests.addElement(\"org.apache.crimson.parser.ContentModel\");\n                tests.addElement(\"org.apache.xalan.processor.ProcessorImport\");\n                tests.addElement(\"org.apache.xml.utils.URI\");\n                tests.addElement(\"org.apache.xpath.XPathFactory\");\n                tests.addElement(\"org.ietf.jgss.Oid\");\n                tests.addElement(\"org.w3c.dom.Attr\");\n                tests.addElement(\"org.xml.sax.XMLReader\");\n            case 13:\n                tests.addElement(\"org.omg.CORBA.Any\");\n                tests.addElement(\"com.sun.corba.se.internal.corba.AnyImpl\");\n                tests.addElement(\"com.sun.jndi.ldap.LdapURL\");\n                tests.addElement(\"com.sun.media.sound.Printer\");\n                tests.addElement(\"com.sun.naming.internal.VersionHelper\");\n                tests.addElement(\"com.sun.org.omg.CORBA.Initializer\");\n                tests.addElement(\"sunw.io.Serializable\");\n                tests.addElement(\"sunw.util.EventListener\");\n            case 12:\n                tests.addElement(\"javax.accessibility.Accessible\");\n                tests.addElement(\"sun.misc.BASE64Encoder\");\n                tests.addElement(\"com.sun.image.codec.jpeg.JPEGCodec\");\n            case 11:\n            default:\n                tests.addElement(\"sun.reflect.SerializationConstructorAccessorImpl\");\n                tests.addElement(\"sun.net.www.http.HttpClient\");\n                tests.addElement(\"sun.audio.AudioPlayer\");\n                break;\n        }\n        return tests;\n    }\n    /**\n     * get a vector of strings of packages built into\n     * that platforms runtime jar(s)\n     * @return list of packages\n     */\n    public static Vector getJrePackages() {\n        if(jrePackages==null) {\n            buildJrePackages();\n        }\n        return jrePackages;", "functions": [{"function_name": "getJavaVersion", "code": "    public static String getJavaVersion() {\n        return javaVersion;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isJavaVersion", "code": "    public static boolean isJavaVersion(String version) {\n        return javaVersion == version;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getJreExecutable", "code": "    public static String getJreExecutable(String command) {\n        if (isNetware) {\n            return command;\n        }\n\n        File jExecutable = null;\n\n        if (isAix) {\n            jExecutable = findInDir(javaHome + \"/sh\", command);\n        }\n\n        if (jExecutable == null) {\n            jExecutable = findInDir(javaHome + \"/bin\", command);\n        }\n\n        if (jExecutable != null) {\n            return jExecutable.getAbsolutePath();\n        } else {\n            return addExtension(command);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [1, 10], [7, 11], [8, 12], [4, 13], [5, 14], [9, 15], [10, 16], [2, 17], [3, 18], [17, 19], [18, 20], [19, 21], [20, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 1], [11, 7], [12, 8], [13, 4], [14, 5], [15, 9], [16, 10], [17, 2], [18, 3], [19, 17], [20, 18], [21, 19], [22, 20], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getJdkExecutable", "code": "    public static String getJdkExecutable(String command) {\n        if (isNetware) {\n            return command;\n        }\n\n        File jExecutable = null;\n\n        if (isAix) {\n            jExecutable = findInDir(javaHome + \"/../sh\", command);\n        }\n\n        if (jExecutable == null) {\n            jExecutable = findInDir(javaHome + \"/../bin\", command);\n        }\n\n        if (jExecutable != null) {\n            return jExecutable.getAbsolutePath();\n        } else {\n            return getJreExecutable(command);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [1, 10], [7, 11], [8, 12], [4, 13], [5, 14], [9, 15], [10, 16], [2, 17], [3, 18], [17, 19], [18, 20], [19, 21], [20, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 1], [11, 7], [12, 8], [13, 4], [14, 5], [15, 9], [16, 10], [17, 2], [18, 3], [19, 17], [20, 18], [21, 19], [22, 20], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "addExtension", "code": "    private static String addExtension(String command) {\n        return command + (isDos ? \".exe\" : \"\");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "findInDir", "code": "    private static File findInDir(String dirName, String commandName) {\n        File dir = fileUtils.normalize(dirName);\n        File executable = null;\n        if (dir.exists()) {\n            executable = new File(dir, addExtension(commandName));\n            if (!executable.exists()) {\n                executable = null;\n            }\n        }\n        return executable;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [4, 10], [8, 11], [2, 12], [12, 13], [8, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 4], [11, 8], [12, 2], [13, 12], [14, 8], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "buildJrePackages", "code": "    private static void buildJrePackages() {\n        jrePackages=new Vector();\n        switch(javaVersionNumber) {\n            case 14:\n                jrePackages.addElement(\"org.apache.crimson\");\n                jrePackages.addElement(\"org.apache.xalan\");\n                jrePackages.addElement(\"org.apache.xml\");\n                jrePackages.addElement(\"org.apache.xpath\");\n                jrePackages.addElement(\"org.ietf.jgss\");\n                jrePackages.addElement(\"org.w3c.dom\");\n                jrePackages.addElement(\"org.xml.sax\");\n            case 13:\n                jrePackages.addElement(\"org.omg\");\n                jrePackages.addElement(\"com.sun.corba\");\n                jrePackages.addElement(\"com.sun.jndi\");\n                jrePackages.addElement(\"com.sun.media\");\n                jrePackages.addElement(\"com.sun.naming\");\n                jrePackages.addElement(\"com.sun.org.omg\");\n                jrePackages.addElement(\"com.sun.rmi\");\n                jrePackages.addElement(\"sunw.io\");\n                jrePackages.addElement(\"sunw.util\");\n            case 12:\n                jrePackages.addElement(\"com.sun.java\");\n                jrePackages.addElement(\"com.sun.image\");\n            case 11:\n            default:\n                jrePackages.addElement(\"sun\");\n                jrePackages.addElement(\"java\");\n                jrePackages.addElement(\"javax\");\n                break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "ASSIGN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [9, 30], [10, 31], [11, 32], [12, 33], [13, 34], [14, 35], [15, 36], [16, 37], [17, 38], [18, 39], [19, 40], [20, 41], [21, 42], [22, 43], [23, 44], [24, 45], [25, 46], [26, 47], [27, 48], [28, 49], [29, 50], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 9], [31, 10], [32, 11], [33, 12], [34, 13], [35, 14], [36, 15], [37, 16], [38, 17], [39, 18], [40, 19], [41, 20], [42, 21], [43, 22], [44, 23], [45, 24], [46, 25], [47, 26], [48, 27], [49, 28], [50, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "getJrePackageTestCases", "code": "    public static Vector getJrePackageTestCases() {\n        Vector tests=new Vector();\n        tests.addElement(\"java.lang.Object\");\n        switch(javaVersionNumber) {\n            case 14:\n                tests.addElement(\"sun.audio.AudioPlayer\");\n                tests.addElement(\"org.apache.crimson.parser.ContentModel\");\n                tests.addElement(\"org.apache.xalan.processor.ProcessorImport\");\n                tests.addElement(\"org.apache.xml.utils.URI\");\n                tests.addElement(\"org.apache.xpath.XPathFactory\");\n                tests.addElement(\"org.ietf.jgss.Oid\");\n                tests.addElement(\"org.w3c.dom.Attr\");\n                tests.addElement(\"org.xml.sax.XMLReader\");\n            case 13:\n                tests.addElement(\"org.omg.CORBA.Any\");\n                tests.addElement(\"com.sun.corba.se.internal.corba.AnyImpl\");\n                tests.addElement(\"com.sun.jndi.ldap.LdapURL\");\n                tests.addElement(\"com.sun.media.sound.Printer\");\n                tests.addElement(\"com.sun.naming.internal.VersionHelper\");\n                tests.addElement(\"com.sun.org.omg.CORBA.Initializer\");\n                tests.addElement(\"sunw.io.Serializable\");\n                tests.addElement(\"sunw.util.EventListener\");\n            case 12:\n                tests.addElement(\"javax.accessibility.Accessible\");\n                tests.addElement(\"sun.misc.BASE64Encoder\");\n                tests.addElement(\"com.sun.image.codec.jpeg.JPEGCodec\");\n            case 11:\n            default:\n                tests.addElement(\"sun.reflect.SerializationConstructorAccessorImpl\");\n                tests.addElement(\"sun.net.www.http.HttpClient\");\n                tests.addElement(\"sun.audio.AudioPlayer\");\n                break;\n        }\n        return tests;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [4, 10], [3, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [12, 34], [13, 35], [14, 36], [15, 37], [16, 38], [17, 39], [18, 40], [19, 41], [20, 42], [21, 43], [22, 44], [23, 45], [24, 46], [25, 47], [26, 48], [27, 49], [28, 50], [29, 51], [30, 52], [31, 53], [32, 54], [33, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 4], [11, 3], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 12], [35, 13], [36, 14], [37, 15], [38, 16], [39, 17], [40, 18], [41, 19], [42, 20], [43, 21], [44, 22], [45, 23], [46, 24], [47, 25], [48, 26], [49, 27], [50, 28], [51, 29], [52, 30], [53, 31], [54, 32], [55, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "getJrePackages", "code": "    public static Vector getJrePackages() {\n        if(jrePackages==null) {\n            buildJrePackages();\n        }\n        return jrePackages;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "poi-2.0-5415", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/util/LongField.java", "language": "java", "name": "org.apache.poi.util.LongField", "code": "public class LongField\n    implements FixedField\n{\n    private long      _value;\n    private final int _offset;\n\n    /**\n     * construct the LongField with its offset into its containing\n     * byte array\n     *\n     * @param offset of the field within its byte array\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public LongField(final int offset)\n        throws ArrayIndexOutOfBoundsException\n    {\n        if (offset < 0)\n        {\n            throw new ArrayIndexOutOfBoundsException(\"Illegal offset: \"\n                                                     + offset);\n        }\n        _offset = offset;\n    }\n\n    /**\n     * construct the LongField with its offset into its containing\n     * byte array and initialize its value\n     *\n     * @param offset of the field within its byte array\n     * @param value the initial value\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public LongField(final int offset, final long value)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value);\n    }\n\n    /**\n     * Construct the LongField with its offset into its containing\n     * byte array and initialize its value from its byte array\n     *\n     * @param offset of the field within its byte array\n     * @param data the byte array to read the value from\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is not\n     *            within the range of 0..(data.length - 1)\n     */\n\n    public LongField(final int offset, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        readFromBytes(data);\n    }\n\n    /**\n     * construct the LongField with its offset into its containing\n     * byte array, initialize its value, and write the value to a byte\n     * array\n     *\n     * @param offset of the field within its byte array\n     * @param value the initial value\n     * @param data the byte array to write the value to\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public LongField(final int offset, final long value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value, data);\n    }\n\n    /**\n     * get the LongField's current value\n     *\n     * @return current value\n     */\n\n    public long get()\n    {\n        return _value;\n    }\n\n    /**\n     * set the LongField's current value\n     *\n     * @param value to be set\n     */\n\n    public void set(final long value)\n    {\n        _value = value;\n    }\n\n    /**\n     * set the LongField's current value and write it to a byte array\n     *\n     * @param value to be set\n     * @param data the byte array to write the value to\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of range\n     */\n\n    public void set(final long value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = value;\n        writeToBytes(data);\n    }\n\n    /* ********** START implementation of FixedField ********** */\n\n    /**\n     * set the value from its offset into an array of bytes\n     *\n     * @param data the byte array from which the value is to be read\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of range\n     */\n\n    public void readFromBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = LittleEndian.getLong(data, _offset);\n    }\n\n    /**\n     * set the value from an InputStream\n     *\n     * @param stream the InputStream from which the value is to be\n     *               read\n     *\n     * @exception BufferUnderrunException if there is not enough data\n     *            available from the InputStream\n     * @exception IOException if an IOException is thrown from reading\n     *            the InputStream\n     */\n\n    public void readFromStream(final InputStream stream)\n        throws IOException, BufferUnderrunException\n    {\n        _value = LittleEndian.readLong(stream);\n    }\n\n    /**\n     * write the value out to an array of bytes at the appropriate\n     * offset\n     *\n     * @param data the array of bytes to which the value is to be\n     *             written\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of range\n     */\n\n    public void writeToBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        LittleEndian.putLong(data, _offset, _value);\n    }\n\n    /**\n     * return the value as a String\n     *\n     * @return the value as a String\n     */\n\n    public String toString()\n    {\n        return String.valueOf(_value);", "functions": [{"function_name": "get", "code": "    public long get()\n    {\n        return _value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "set", "code": "    public void set(final long value)\n    {\n        _value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "set", "code": "    public void set(final long value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = value;\n        writeToBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readFromBytes", "code": "    public void readFromBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = LittleEndian.getLong(data, _offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "readFromStream", "code": "    public void readFromStream(final InputStream stream)\n        throws IOException, BufferUnderrunException\n    {\n        _value = LittleEndian.readLong(stream);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "writeToBytes", "code": "    public void writeToBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        LittleEndian.putLong(data, _offset, _value);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        return String.valueOf(_value);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LongField", "code": "    public LongField(final int offset)\n        throws ArrayIndexOutOfBoundsException\n    {\n        if (offset < 0)\n        {\n            throw new ArrayIndexOutOfBoundsException(\"Illegal offset: \"\n                                                     + offset);\n        }\n        _offset = offset;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "LongField", "code": "    public LongField(final int offset, final long value)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LongField", "code": "    public LongField(final int offset, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        readFromBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LongField", "code": "    public LongField(final int offset, final long value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-2673", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jms/JmsConfiguration.java", "language": "java", "name": "org.apache.camel.component.jms.JmsConfiguration", "code": "public class JmsConfiguration implements Cloneable {\n\n    public static final String QUEUE_PREFIX = \"queue:\";\n    public static final String TOPIC_PREFIX = \"topic:\";\n    public static final String TEMP_QUEUE_PREFIX = \"temp:queue:\";\n    public static final String TEMP_TOPIC_PREFIX = \"temp:topic:\";\n\n    protected static final String TRANSACTED = \"TRANSACTED\";\n    protected static final String CLIENT_ACKNOWLEDGE = \"CLIENT_ACKNOWLEDGE\";\n    protected static final String AUTO_ACKNOWLEDGE = \"AUTO_ACKNOWLEDGE\";\n    protected static final String DUPS_OK_ACKNOWLEDGE = \"DUPS_OK_ACKNOWLEDGE\";\n    protected static final String REPLYTO_TEMP_DEST_AFFINITY_PER_COMPONENT = \"component\";\n    protected static final String REPLYTO_TEMP_DEST_AFFINITY_PER_ENDPOINT = \"endpoint\";\n    protected static final String REPLYTO_TEMP_DEST_AFFINITY_PER_PRODUCER = \"producer\";\n\n    private static final transient Log LOG = LogFactory.getLog(JmsConfiguration.class);\n    private JmsOperations jmsOperations;\n    private DestinationResolver destinationResolver;\n    private ConnectionFactory connectionFactory;\n    private ConnectionFactory templateConnectionFactory;\n    private ConnectionFactory listenerConnectionFactory;\n    private int acknowledgementMode = -1;\n    private String acknowledgementModeName;\n    private ExceptionListener exceptionListener;\n    private ConsumerType consumerType = ConsumerType.Default;\n    private boolean autoStartup = true;\n    private boolean acceptMessagesWhileStopping;\n    private String clientId;\n    private String durableSubscriptionName;\n    private boolean subscriptionDurable;\n    private boolean exposeListenerSession = true;\n    private TaskExecutor taskExecutor;\n    private boolean pubSubNoLocal;\n    private int concurrentConsumers = 1;\n    private int maxMessagesPerTask = 1;\n    private ServerSessionFactory serverSessionFactory;\n    private int cacheLevel = -1;\n    private String cacheLevelName;\n    private long recoveryInterval = -1;\n    private long receiveTimeout = -1;\n    private long requestTimeout = 20000L;\n    private int idleTaskExecutionLimit = 1;\n    private int maxConcurrentConsumers = 1;\n    private boolean useVersion102;\n    private Boolean explicitQosEnabled;\n    private boolean deliveryPersistent = true;\n    private boolean replyToDeliveryPersistent = true;\n    private long timeToLive = -1;\n    private MessageConverter messageConverter;\n    private boolean messageIdEnabled = true;\n    private boolean messageTimestampEnabled = true;\n    private int priority = -1;\n    private boolean transacted;\n    private boolean transactedInOut;\n    private PlatformTransactionManager transactionManager;\n    private String transactionName;\n    private int transactionTimeout = -1;\n    private boolean preserveMessageQos;\n    private long requestMapPurgePollTimeMillis = 1000L;\n    private boolean disableReplyTo;\n    private boolean eagerLoadingOfProperties;\n    private boolean alwaysCopyMessage;\n    private boolean useMessageIDAsCorrelationID;\n    private JmsProviderMetadata providerMetadata = new JmsProviderMetadata();\n    private JmsOperations metadataJmsOperations;\n    private String replyToTempDestinationAffinity = REPLYTO_TEMP_DEST_AFFINITY_PER_ENDPOINT;\n    private String replyToDestination;\n    private String replyToDestinationSelectorName;\n\n    public JmsConfiguration() {\n    }\n\n    public JmsConfiguration(ConnectionFactory connectionFactory) {\n        this.connectionFactory = connectionFactory;\n    }\n\n    /**\n     * Returns a copy of this configuration\n     */\n    public JmsConfiguration copy() {\n        try {\n            return (JmsConfiguration)clone();\n        } catch (CloneNotSupportedException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n\n    public static interface MessageSentCallback {\n        void sent(Message message);\n    }\n\n    public static class CamelJmsTemplate extends JmsTemplate {\n        private JmsConfiguration config;\n\n        public CamelJmsTemplate(JmsConfiguration config, ConnectionFactory connectionFactory) {\n            super(connectionFactory);\n            this.config = config;\n        }\n\n        public void send(final String destinationName,\n                         final MessageCreator messageCreator,\n                         final MessageSentCallback callback) throws JmsException {\n            execute(new SessionCallback() {\n                public Object doInJms(Session session) throws JMSException {\n                    Destination destination = resolveDestinationName(session, destinationName);\n                    Assert.notNull(messageCreator, \"MessageCreator must not be null\");\n                    MessageProducer producer = createProducer(session, destination);\n                    Message message = null;\n                    try {\n                        message = messageCreator.createMessage(session);\n                        if (logger.isDebugEnabled()) {\n                            logger.debug(\"Sending created message: \" + message);\n                        }\n                        doSend(producer, message);\n                        if (session.getTransacted() && isSessionLocallyTransacted(session)) {\n                            JmsUtils.commitIfNecessary(session);\n                        }\n                    } finally {\n                        JmsUtils.closeMessageProducer(producer);\n                    }\n                    if (message != null && callback != null) {\n                        callback.sent(message);\n                    }\n                    return null;\n                }\n            }, false);\n        }\n\n        /**\n         * Override so we can support preserving the Qos settings that have\n         * been set on the message.\n         */\n        @Override\n        protected void doSend(MessageProducer producer, Message message) throws JMSException {\n            if (config.isPreserveMessageQos()) {\n                long ttl = message.getJMSExpiration();\n                if (ttl != 0) {\n                    ttl = ttl - System.currentTimeMillis();\n                    if (ttl <= 0) {\n                        ttl = 1;\n                    }\n                }\n                producer.send(message, message.getJMSDeliveryMode(), message.getJMSPriority(), ttl);\n            } else {\n                super.doSend(producer, message);\n            }\n        }\n    }\n\n    public static class CamelJmsTeemplate102 extends JmsTemplate102 {\n        private JmsConfiguration config;\n\n        public CamelJmsTeemplate102(JmsConfiguration config, ConnectionFactory connectionFactory, boolean pubSubDomain) {\n            super(connectionFactory, pubSubDomain);\n            this.config = config;\n        }\n\n        public void send(final String destinationName,\n                final MessageCreator messageCreator,\n                final MessageSentCallback callback) throws JmsException {\n            execute(new SessionCallback() {\n                public Object doInJms(Session session) throws JMSException {\n                    Destination destination = resolveDestinationName(session, destinationName);\n                    Assert.notNull(messageCreator, \"MessageCreator must not be null\");\n                    MessageProducer producer = createProducer(session, destination);\n                    Message message = null;\n                    try {\n                        message = messageCreator.createMessage(session);\n                        if (logger.isDebugEnabled()) {\n                            logger.debug(\"Sending created message: \" + message);\n                        }\n                        doSend(producer, message);\n                        if (session.getTransacted() && isSessionLocallyTransacted(session)) {\n                            JmsUtils.commitIfNecessary(session);\n                        }\n                    } finally {\n                        JmsUtils.closeMessageProducer(producer);\n                    }\n                    if (message != null && callback != null) {\n                        callback.sent(message);\n                    }\n                    return null;\n                }\n            }, false);\n        }\n\n        /**\n         * Override so we can support preserving the Qos settings that have\n         * been set on the message.\n         */\n        @Override\n        protected void doSend(MessageProducer producer, Message message) throws JMSException {\n            if (config.isPreserveMessageQos()) {\n                long ttl = message.getJMSExpiration();\n                if (ttl != 0) {\n                    ttl = ttl - System.currentTimeMillis();\n                    if (ttl <= 0) {\n                        ttl = 1;\n                    }\n                }\n                if (isPubSubDomain()) {\n                    ((TopicPublisher) producer).publish(message, message.getJMSDeliveryMode(),\n                                                        message.getJMSPriority(), ttl);\n                } else {\n                    ((QueueSender) producer).send(message, message.getJMSDeliveryMode(),\n                                                  message.getJMSPriority(), ttl);\n                }\n            } else {\n                super.doSend(producer, message);\n            }\n        }\n    }\n\n\n    /**\n     * Creates a {@link JmsOperations} object used for request/response using a request\n     * timeout value\n     */\n    public JmsOperations createInOutTemplate(JmsEndpoint endpoint, boolean pubSubDomain, String destination, long requestTimeout) {\n        JmsOperations answer = createInOnlyTemplate(endpoint, pubSubDomain, destination);\n        if (answer instanceof JmsTemplate && requestTimeout > 0) {\n            JmsTemplate jmsTemplate = (JmsTemplate)answer;\n            jmsTemplate.setExplicitQosEnabled(true);\n            jmsTemplate.setTimeToLive(requestTimeout);\n            jmsTemplate.setSessionTransacted(isTransactedInOut());\n            if (isTransactedInOut()) {\n                jmsTemplate.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n            } else {\n                if (acknowledgementMode >= 0) {\n                    jmsTemplate.setSessionAcknowledgeMode(acknowledgementMode);\n                } else if (acknowledgementModeName != null) {\n                    jmsTemplate.setSessionAcknowledgeModeName(acknowledgementModeName);\n                } else {\n                    jmsTemplate.setSessionAcknowledgeMode(Session.AUTO_ACKNOWLEDGE);\n                }\n            }\n        }\n        return answer;\n    }\n\n    /**\n     * Creates a {@link JmsOperations} object used for one way messaging\n     */\n    public JmsOperations createInOnlyTemplate(JmsEndpoint endpoint, boolean pubSubDomain, String destination) {\n\n        if (jmsOperations != null) {\n            return jmsOperations;\n        }\n\n        ConnectionFactory factory = getTemplateConnectionFactory();\n\n        JmsTemplate template = useVersion102\n            ? new CamelJmsTeemplate102(this, factory, pubSubDomain)\n            : new CamelJmsTemplate(this, factory);\n\n        template.setPubSubDomain(pubSubDomain);\n        if (destinationResolver != null) {\n            template.setDestinationResolver(destinationResolver);\n            if (endpoint instanceof DestinationEndpoint) {\n                LOG.debug(\"You are overloading the destinationResolver property on a DestinationEndpoint; are you sure you want to do that?\");\n            }\n        } else if (endpoint instanceof DestinationEndpoint) {\n            DestinationEndpoint destinationEndpoint = (DestinationEndpoint) endpoint;\n            template.setDestinationResolver(createDestinationResolver(destinationEndpoint));\n        }\n        template.setDefaultDestinationName(destination);\n\n        template.setExplicitQosEnabled(isExplicitQosEnabled());\n        template.setDeliveryPersistent(deliveryPersistent);\n        if (messageConverter != null) {\n            template.setMessageConverter(messageConverter);\n        }\n        template.setMessageIdEnabled(messageIdEnabled);\n        template.setMessageTimestampEnabled(messageTimestampEnabled);\n        if (priority >= 0) {\n            template.setPriority(priority);\n        }\n        template.setPubSubNoLocal(pubSubNoLocal);\n        if (receiveTimeout >= 0) {\n            template.setReceiveTimeout(receiveTimeout);\n        }\n        if (timeToLive >= 0) {\n            template.setTimeToLive(timeToLive);\n        }\n\n        template.setSessionTransacted(transacted);\n        if (transacted) {\n            template.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n        } else {\n            if (acknowledgementMode >= 0) {\n                template.setSessionAcknowledgeMode(acknowledgementMode);\n            } else if (acknowledgementModeName != null) {\n                template.setSessionAcknowledgeModeName(acknowledgementModeName);\n            }\n        }\n        return template;\n    }\n\n    public AbstractMessageListenerContainer createMessageListenerContainer(JmsEndpoint endpoint) {\n        AbstractMessageListenerContainer container = chooseMessageListenerContainerImplementation();\n        configureMessageListenerContainer(container, endpoint);\n        return container;\n    }\n\n\n    public ConnectionFactory getConnectionFactory() {\n        if (connectionFactory == null) {\n            connectionFactory = createConnectionFactory();\n        }\n        return connectionFactory;\n    }\n\n    /**\n     * Sets the default connection factory to be used if a connection factory is\n     * not specified for either\n     * {@link #setTemplateConnectionFactory(ConnectionFactory)} or\n     * {@link #setListenerConnectionFactory(ConnectionFactory)}\n     *\n     * @param connectionFactory the default connection factory to use\n     */\n    public void setConnectionFactory(ConnectionFactory connectionFactory) {\n        this.connectionFactory = connectionFactory;\n    }\n\n    public ConnectionFactory getListenerConnectionFactory() {\n        if (listenerConnectionFactory == null) {\n            listenerConnectionFactory = createListenerConnectionFactory();\n        }\n        return listenerConnectionFactory;\n    }\n\n    /**\n     * Sets the connection factory to be used for consuming messages via the\n     * {@link #createMessageListenerContainer(JmsEndpoint)}\n     *\n     * @param listenerConnectionFactory the connection factory to use for\n     *                consuming messages\n     */\n    public void setListenerConnectionFactory(ConnectionFactory listenerConnectionFactory) {\n        this.listenerConnectionFactory = listenerConnectionFactory;\n    }\n\n    public ConnectionFactory getTemplateConnectionFactory() {\n        if (templateConnectionFactory == null) {\n            templateConnectionFactory = createTemplateConnectionFactory();\n        }\n        return templateConnectionFactory;\n    }\n\n    /**\n     * Sets the connection factory to be used for sending messages via the\n     * {@link JmsTemplate} via {@link #createInOnlyTemplate(JmsEndpoint,boolean, String)}\n     *\n     * @param templateConnectionFactory the connection factory for sending\n     *                messages\n     */\n    public void setTemplateConnectionFactory(ConnectionFactory templateConnectionFactory) {\n        this.templateConnectionFactory = templateConnectionFactory;\n    }\n\n    public boolean isUseVersion102() {\n        return useVersion102;\n    }\n\n    public void setUseVersion102(boolean useVersion102) {\n        this.useVersion102 = useVersion102;\n    }\n\n    public boolean isAutoStartup() {\n        return autoStartup;\n    }\n\n    public void setAutoStartup(boolean autoStartup) {\n        this.autoStartup = autoStartup;\n    }\n\n    public boolean isAcceptMessagesWhileStopping() {\n        return acceptMessagesWhileStopping;\n    }\n\n    public void setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) {\n        this.acceptMessagesWhileStopping = acceptMessagesWhileStopping;\n    }\n\n    public String getClientId() {\n        return clientId;\n    }\n\n    public void setClientId(String consumerClientId) {\n        this.clientId = consumerClientId;\n    }\n\n    public String getDurableSubscriptionName() {\n        return durableSubscriptionName;\n    }\n\n    public void setDurableSubscriptionName(String durableSubscriptionName) {\n        this.durableSubscriptionName = durableSubscriptionName;\n    }\n\n    public ExceptionListener getExceptionListener() {\n        return exceptionListener;\n    }\n\n    public void setExceptionListener(ExceptionListener exceptionListener) {\n        this.exceptionListener = exceptionListener;\n    }\n\n    public boolean isSubscriptionDurable() {\n        return subscriptionDurable;\n    }\n\n    public void setSubscriptionDurable(boolean subscriptionDurable) {\n        this.subscriptionDurable = subscriptionDurable;\n    }\n\n    public String getAcknowledgementModeName() {\n        return acknowledgementModeName;\n    }\n\n    public void setAcknowledgementModeName(String consumerAcknowledgementMode) {\n        this.acknowledgementModeName = consumerAcknowledgementMode;\n        this.acknowledgementMode = -1;\n    }\n\n    public boolean isExposeListenerSession() {\n        return exposeListenerSession;\n    }\n\n    public void setExposeListenerSession(boolean exposeListenerSession) {\n        this.exposeListenerSession = exposeListenerSession;\n    }\n\n    public TaskExecutor getTaskExecutor() {\n        return taskExecutor;\n    }\n\n    public void setTaskExecutor(TaskExecutor taskExecutor) {\n        this.taskExecutor = taskExecutor;\n    }\n\n    public boolean isPubSubNoLocal() {\n        return pubSubNoLocal;\n    }\n\n    public void setPubSubNoLocal(boolean pubSubNoLocal) {\n        this.pubSubNoLocal = pubSubNoLocal;\n    }\n\n    public int getConcurrentConsumers() {\n        return concurrentConsumers;\n    }\n\n    public void setConcurrentConsumers(int concurrentConsumers) {\n        this.concurrentConsumers = concurrentConsumers;\n    }\n\n    public int getMaxMessagesPerTask() {\n        return maxMessagesPerTask;\n    }\n\n    public void setMaxMessagesPerTask(int maxMessagesPerTask) {\n        this.maxMessagesPerTask = maxMessagesPerTask;\n    }\n\n    public ServerSessionFactory getServerSessionFactory() {\n        return serverSessionFactory;\n    }\n\n    public void setServerSessionFactory(ServerSessionFactory serverSessionFactory) {\n        this.serverSessionFactory = serverSessionFactory;\n    }\n\n    public int getCacheLevel() {\n        return cacheLevel;\n    }\n\n    public void setCacheLevel(int cacheLevel) {\n        this.cacheLevel = cacheLevel;\n    }\n\n    public String getCacheLevelName() {\n        return cacheLevelName;\n    }\n\n    public void setCacheLevelName(String cacheName) {\n        this.cacheLevelName = cacheName;\n    }\n\n    public long getRecoveryInterval() {\n        return recoveryInterval;\n    }\n\n    public void setRecoveryInterval(long recoveryInterval) {\n        this.recoveryInterval = recoveryInterval;\n    }\n\n    public long getReceiveTimeout() {\n        return receiveTimeout;\n    }\n\n    public void setReceiveTimeout(long receiveTimeout) {\n        this.receiveTimeout = receiveTimeout;\n    }\n\n    public PlatformTransactionManager getTransactionManager() {\n        return transactionManager;\n    }\n\n    public void setTransactionManager(PlatformTransactionManager transactionManager) {\n        this.transactionManager = transactionManager;\n    }\n\n    public String getTransactionName() {\n        return transactionName;\n    }\n\n    public void setTransactionName(String transactionName) {\n        this.transactionName = transactionName;\n    }\n\n    public int getTransactionTimeout() {\n        return transactionTimeout;\n    }\n\n    public void setTransactionTimeout(int transactionTimeout) {\n        this.transactionTimeout = transactionTimeout;\n    }\n\n    public int getIdleTaskExecutionLimit() {\n        return idleTaskExecutionLimit;\n    }\n\n    public void setIdleTaskExecutionLimit(int idleTaskExecutionLimit) {\n        this.idleTaskExecutionLimit = idleTaskExecutionLimit;\n    }\n\n    public int getMaxConcurrentConsumers() {\n        return maxConcurrentConsumers;\n    }\n\n    public void setMaxConcurrentConsumers(int maxConcurrentConsumers) {\n        this.maxConcurrentConsumers = maxConcurrentConsumers;\n    }\n\n    public boolean isExplicitQosEnabled() {\n        return explicitQosEnabled != null ? explicitQosEnabled : false;\n    }\n\n    public void setExplicitQosEnabled(boolean explicitQosEnabled) {\n        this.explicitQosEnabled = explicitQosEnabled;\n    }\n\n    public boolean isDeliveryPersistent() {\n        return deliveryPersistent;\n    }\n\n    public void setDeliveryPersistent(boolean deliveryPersistent) {\n        this.deliveryPersistent = deliveryPersistent;\n        configuredQoS();\n    }\n\n    public boolean isReplyToDeliveryPersistent() {\n        return replyToDeliveryPersistent;\n    }\n\n    public void setReplyToDeliveryPersistent(boolean replyToDeliveryPersistent) {\n        this.replyToDeliveryPersistent = replyToDeliveryPersistent;\n    }\n\n    public long getTimeToLive() {\n        return timeToLive;\n    }\n\n    public void setTimeToLive(long timeToLive) {\n        this.timeToLive = timeToLive;\n        configuredQoS();\n    }\n\n    public MessageConverter getMessageConverter() {\n        return messageConverter;\n    }\n\n    public void setMessageConverter(MessageConverter messageConverter) {\n        this.messageConverter = messageConverter;\n    }\n\n    public boolean isMessageIdEnabled() {\n        return messageIdEnabled;\n    }\n\n    public void setMessageIdEnabled(boolean messageIdEnabled) {\n        this.messageIdEnabled = messageIdEnabled;\n    }\n\n    public boolean isMessageTimestampEnabled() {\n        return messageTimestampEnabled;\n    }\n\n    public void setMessageTimestampEnabled(boolean messageTimestampEnabled) {\n        this.messageTimestampEnabled = messageTimestampEnabled;\n    }\n\n    public int getPriority() {\n        return priority;\n    }\n\n    public void setPriority(int priority) {\n        this.priority = priority;\n        configuredQoS();\n    }\n\n    public ConsumerType getConsumerType() {\n        return consumerType;\n    }\n\n    public void setConsumerType(ConsumerType consumerType) {\n        this.consumerType = consumerType;\n    }\n\n    public int getAcknowledgementMode() {\n        return acknowledgementMode;\n    }\n\n    public void setAcknowledgementMode(int consumerAcknowledgementMode) {\n        this.acknowledgementMode = consumerAcknowledgementMode;\n        this.acknowledgementModeName = null;\n    }\n\n    public boolean isTransacted() {\n        return transacted;\n    }\n\n    public void setTransacted(boolean consumerTransacted) {\n        this.transacted = consumerTransacted;\n    }\n\n    /**\n     * Should InOut operations (request reply) default to using transacted mode?\n     *\n     * By default this is false as you need to commit the outgoing request before you can consume the input\n     *\n     * @return\n     */\n    public boolean isTransactedInOut() {\n        return transactedInOut;\n    }\n\n    public void setTransactedInOut(boolean transactedInOut) {\n        this.transactedInOut = transactedInOut;\n    }\n\n    public boolean isEagerLoadingOfProperties() {\n        return eagerLoadingOfProperties;\n    }\n\n    /**\n     * Enables eager loading of JMS properties as soon as a message is loaded\n     * which generally is inefficient as the JMS properties may not be required\n     * but sometimes can catch early any issues with the underlying JMS provider\n     * and the use of JMS properties\n     *\n     * @param eagerLoadingOfProperties whether or not to enable eager loading of\n     *                JMS properties on inbound messages\n     */\n    public void setEagerLoadingOfProperties(boolean eagerLoadingOfProperties) {\n        this.eagerLoadingOfProperties = eagerLoadingOfProperties;\n    }\n\n    public boolean isDisableReplyTo() {\n        return disableReplyTo;\n    }\n\n    /**\n     * Disables the use of the JMSReplyTo header for consumers so that inbound\n     * messages are treated as InOnly rather than InOut requests.\n     *\n     * @param disableReplyTo whether or not to disable the use of JMSReplyTo\n     *                header indicating an InOut\n     */\n    public void setDisableReplyTo(boolean disableReplyTo) {\n        this.disableReplyTo = disableReplyTo;\n    }\n\n    /**\n     * Set to true if you want to send message using the QoS settings specified\n     * on the message. Normally the QoS settings used are the one configured on\n     * this Object.\n     */\n    public void setPreserveMessageQos(boolean preserveMessageQos) {\n        this.preserveMessageQos = preserveMessageQos;\n    }\n\n    public JmsOperations getJmsOperations() {\n        return jmsOperations;\n    }\n\n    public void setJmsOperations(JmsOperations jmsOperations) {\n        this.jmsOperations = jmsOperations;\n    }\n\n    public DestinationResolver getDestinationResolver() {\n        return destinationResolver;\n    }\n\n    public void setDestinationResolver(DestinationResolver destinationResolver) {\n        this.destinationResolver = destinationResolver;\n    }\n\n    public long getRequestMapPurgePollTimeMillis() {\n        return requestMapPurgePollTimeMillis;\n    }\n\n    /**\n     * Sets the frequency that the requestMap for InOut exchanges is purged for\n     * timed out message exchanges\n     */\n    public void setRequestMapPurgePollTimeMillis(long requestMapPurgePollTimeMillis) {\n        this.requestMapPurgePollTimeMillis = requestMapPurgePollTimeMillis;\n    }\n    public JmsProviderMetadata getProviderMetadata() {\n        return providerMetadata;\n    }\n\n    /**\n     * Allows the provider metadata to be explicitly configured. Typically this is not required\n     * and Camel will auto-detect the provider metadata from the underlying provider.\n     */\n    public void setProviderMetadata(JmsProviderMetadata providerMetadata) {\n        this.providerMetadata = providerMetadata;\n    }\n\n    public JmsOperations getMetadataJmsOperations(JmsEndpoint endpoint) {\n        if (metadataJmsOperations == null) {\n            metadataJmsOperations = getJmsOperations();\n            if (metadataJmsOperations == null) {\n                metadataJmsOperations = createInOnlyTemplate(endpoint, false, null);\n            }\n        }\n        return metadataJmsOperations;\n    }\n\n    /**\n     * Sets the {@link JmsOperations} used to deduce the {@link JmsProviderMetadata} details which if none\n     * is customized one is lazily created on demand\n     */\n    public void setMetadataJmsOperations(JmsOperations metadataJmsOperations) {\n        this.metadataJmsOperations = metadataJmsOperations;\n    }\n\n\n\n    public static DestinationResolver createDestinationResolver(final DestinationEndpoint destinationEndpoint) {\n        return new DestinationResolver() {\n            public Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain) throws JMSException {\n                return destinationEndpoint.getJmsDestination(session);\n            }\n        };\n    }\n\n\n    protected void configureMessageListenerContainer(AbstractMessageListenerContainer container,\n                                                     JmsEndpoint endpoint) {\n        container.setConnectionFactory(getListenerConnectionFactory());\n        if (endpoint instanceof DestinationEndpoint) {\n            container.setDestinationResolver(createDestinationResolver((DestinationEndpoint) endpoint));\n        } else if (destinationResolver != null) {\n            container.setDestinationResolver(destinationResolver);\n        }\n        if (autoStartup) {\n            container.setAutoStartup(true);\n        }\n        if (clientId != null) {\n            container.setClientId(clientId);\n        }\n        container.setSubscriptionDurable(subscriptionDurable);\n        if (durableSubscriptionName != null) {\n            container.setDurableSubscriptionName(durableSubscriptionName);\n        }\n\n        if (durableSubscriptionName != null && clientId != null) {\n            container.setSubscriptionDurable(true);\n        }\n\n        if (exceptionListener != null) {\n            container.setExceptionListener(exceptionListener);\n        }\n\n        container.setAcceptMessagesWhileStopping(acceptMessagesWhileStopping);\n        container.setExposeListenerSession(exposeListenerSession);\n        container.setSessionTransacted(transacted);\n        if (transacted) {\n            container.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n        } else {\n            if (acknowledgementMode >= 0) {\n                container.setSessionAcknowledgeMode(acknowledgementMode);\n            } else if (acknowledgementModeName != null) {\n                container.setSessionAcknowledgeModeName(acknowledgementModeName);\n            }\n        }\n\n        if (endpoint.getSelector() != null && endpoint.getSelector().length() != 0) {\n            container.setMessageSelector(endpoint.getSelector());\n        }\n\n        if (container instanceof DefaultMessageListenerContainer) {\n            DefaultMessageListenerContainer listenerContainer = (DefaultMessageListenerContainer)container;\n            if (concurrentConsumers >= 0) {\n                listenerContainer.setConcurrentConsumers(concurrentConsumers);\n            }\n\n            if (cacheLevel >= 0) {\n                listenerContainer.setCacheLevel(cacheLevel);\n            } else if (cacheLevelName != null) {\n                listenerContainer.setCacheLevelName(cacheLevelName);\n            } else {\n                listenerContainer.setCacheLevel(defaultCacheLevel(endpoint));\n            }\n\n            if (idleTaskExecutionLimit >= 0) {\n                listenerContainer.setIdleTaskExecutionLimit(idleTaskExecutionLimit);\n            }\n            if (maxConcurrentConsumers >= 0) {\n                listenerContainer.setMaxConcurrentConsumers(maxConcurrentConsumers);\n            }\n            if (maxMessagesPerTask >= 0) {\n                listenerContainer.setMaxMessagesPerTask(maxMessagesPerTask);\n            }\n            listenerContainer.setPubSubNoLocal(pubSubNoLocal);\n            if (receiveTimeout >= 0) {\n                listenerContainer.setReceiveTimeout(receiveTimeout);\n            }\n            if (recoveryInterval >= 0) {\n                listenerContainer.setRecoveryInterval(recoveryInterval);\n            }\n            if (taskExecutor != null) {\n                listenerContainer.setTaskExecutor(taskExecutor);\n            }\n            PlatformTransactionManager tm = getTransactionManager();\n            if (tm != null && transacted) {\n                listenerContainer.setTransactionManager(tm);\n            } else if (transacted) {\n                throw new IllegalArgumentException(\"Property transacted is enabled but a transactionManager was not injected!\");\n            }\n            if (transactionName != null) {\n                listenerContainer.setTransactionName(transactionName);\n            }\n            if (transactionTimeout >= 0) {\n                listenerContainer.setTransactionTimeout(transactionTimeout);\n            }\n        } else if (container instanceof ServerSessionMessageListenerContainer) {\n            ServerSessionMessageListenerContainer listenerContainer = (ServerSessionMessageListenerContainer)container;\n            if (maxMessagesPerTask >= 0) {\n                listenerContainer.setMaxMessagesPerTask(maxMessagesPerTask);\n            }\n            if (serverSessionFactory != null) {\n                listenerContainer.setServerSessionFactory(serverSessionFactory);\n            }\n        } else if (container instanceof SimpleMessageListenerContainer) {\n            SimpleMessageListenerContainer listenerContainer = (SimpleMessageListenerContainer)container;\n            if (concurrentConsumers >= 0) {\n                listenerContainer.setConcurrentConsumers(concurrentConsumers);\n            }\n            listenerContainer.setPubSubNoLocal(pubSubNoLocal);\n            if (taskExecutor != null) {\n                listenerContainer.setTaskExecutor(taskExecutor);\n            }\n        }\n    }\n\n    public void configure(EndpointMessageListener listener) {\n        if (isDisableReplyTo()) {\n            listener.setDisableReplyTo(true);\n        }\n        if (isEagerLoadingOfProperties()) {\n            listener.setEagerLoadingOfProperties(true);\n        }\n        JmsOperations operations = listener.getTemplate();\n        if (operations instanceof JmsTemplate) {\n            JmsTemplate template = (JmsTemplate)operations;\n            template.setDeliveryPersistent(isReplyToDeliveryPersistent());\n        }\n    }\n\n    public AbstractMessageListenerContainer chooseMessageListenerContainerImplementation() {\n        switch (consumerType) {\n        case Simple:\n            return isUseVersion102()\n                ? new SimpleMessageListenerContainer102() : new SimpleMessageListenerContainer();\n        case ServerSessionPool:\n            return isUseVersion102()\n                ? new ServerSessionMessageListenerContainer102()\n                : new ServerSessionMessageListenerContainer();\n        case Default:\n            return isUseVersion102()\n                ? new DefaultMessageListenerContainer102() : new DefaultMessageListenerContainer();\n        default:\n            throw new IllegalArgumentException(\"Unknown consumer type: \" + consumerType);\n        }\n    }\n\n    /**\n     * Defaults the JMS cache level if none is explicitly specified. Note that\n     * due to this <a\n     * Bug</a> we cannot use CACHE_CONSUMER by default (which we should do as\n     * its most efficient) unless the spring version is 2.5.1 or later. Instead\n     * we use CACHE_CONNECTION - part from for non-durable topics which must use\n     * CACHE_CONSUMER to avoid missing messages (due to the consumer being\n     * created and destroyed per message).\n     *\n     * @param endpoint the endpoint\n     * @return the cacne level\n     */\n    protected int defaultCacheLevel(JmsEndpoint endpoint) {\n        if (PackageHelper.isValidVersion(\"org.springframework.jms\", 2.51D)) {\n            return DefaultMessageListenerContainer.CACHE_CONSUMER;\n        } else {\n            if (endpoint.isPubSubDomain() && !isSubscriptionDurable()) {\n                return DefaultMessageListenerContainer.CACHE_CONSUMER;\n            } else {\n                return DefaultMessageListenerContainer.CACHE_CONNECTION;\n            }\n        }\n    }\n\n    /**\n     * Factory method which allows derived classes to customize the lazy\n     * creation\n     */\n    protected ConnectionFactory createConnectionFactory() {\n        ObjectHelper.notNull(connectionFactory, \"connectionFactory\");\n        return null;\n    }\n\n    /**\n     * Factory method which allows derived classes to customize the lazy\n     * creation\n     */\n    protected ConnectionFactory createListenerConnectionFactory() {\n        return getConnectionFactory();\n    }\n\n    /**\n     * Factory method which allows derived classes to customize the lazy\n     * creation\n     */\n    protected ConnectionFactory createTemplateConnectionFactory() {\n        return getConnectionFactory();\n    }\n\n    public boolean isPreserveMessageQos() {\n        return preserveMessageQos;\n    }\n\n    /**\n     * When one of the QoS properties are configured such as {@link #setDeliveryPersistent(boolean)},\n     * {@link #setPriority(int)} or {@link #setTimeToLive(long)} then we should auto default the\n     * setting of {@link #setExplicitQosEnabled(boolean)} if its not been configured yet\n     */\n    protected void configuredQoS() {\n        if (explicitQosEnabled == null) {\n            explicitQosEnabled = true;\n        }\n    }\n\n\n    public boolean isAlwaysCopyMessage() {\n        return alwaysCopyMessage;\n    }\n\n    public void setAlwaysCopyMessage(boolean alwaysCopyMessage) {\n        this.alwaysCopyMessage = alwaysCopyMessage;\n    }\n\n    public boolean isUseMessageIDAsCorrelationID() {\n        return useMessageIDAsCorrelationID;\n    }\n\n    public void setUseMessageIDAsCorrelationID(boolean useMessageIDAsCorrelationID) {\n        this.useMessageIDAsCorrelationID = useMessageIDAsCorrelationID;\n    }\n\n    public String getReplyToTempDestinationAffinity() {\n        return replyToTempDestinationAffinity;\n    }\n\n    public void setReplyToTempDestinationAffinity(\n            String replyToTempDestinationAffinity) {\n        this.replyToTempDestinationAffinity = replyToTempDestinationAffinity;\n    }\n\n    public long getRequestTimeout() {\n        return requestTimeout;\n    }\n\n    /**\n     * Sets the timeout in milliseconds which requests should timeout after\n     */\n    public void setRequestTimeout(long requestTimeout) {\n        this.requestTimeout = requestTimeout;\n    }\n\n    public String getReplyTo() {\n        return replyToDestination;\n    }\n\n    public void setReplyTo(String replyToDestination) {\n        if (!replyToDestination.startsWith(QUEUE_PREFIX)) {\n            throw new IllegalArgumentException(\"ReplyTo destination value has to be of type queue; \"\n                                              + \"e.g: \\\"queue:replyQueue\\\"\");\n        }\n        this.replyToDestination =\n            removeStartingCharacters(replyToDestination.substring(QUEUE_PREFIX.length()), '/');\n    }\n\n    public String getReplyToDestinationSelectorName() {\n        return replyToDestinationSelectorName;\n    }\n\n    public void setReplyToDestinationSelectorName(String replyToDestinationSelectorName) {\n        this.replyToDestinationSelectorName = replyToDestinationSelectorName;\n        if (replyToDestinationSelectorName != null) {\n            setAlwaysCopyMessage(true);", "functions": [{"function_name": "copy", "code": "    public JmsConfiguration copy() {\n        try {\n            return (JmsConfiguration)clone();\n        } catch (CloneNotSupportedException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [3, 6], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createInOutTemplate", "code": "    public JmsOperations createInOutTemplate(JmsEndpoint endpoint, boolean pubSubDomain, String destination, long requestTimeout) {\n        JmsOperations answer = createInOnlyTemplate(endpoint, pubSubDomain, destination);\n        if (answer instanceof JmsTemplate && requestTimeout > 0) {\n            JmsTemplate jmsTemplate = (JmsTemplate)answer;\n            jmsTemplate.setExplicitQosEnabled(true);\n            jmsTemplate.setTimeToLive(requestTimeout);\n            jmsTemplate.setSessionTransacted(isTransactedInOut());\n            if (isTransactedInOut()) {\n                jmsTemplate.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n            } else {\n                if (acknowledgementMode >= 0) {\n                    jmsTemplate.setSessionAcknowledgeMode(acknowledgementMode);\n                } else if (acknowledgementModeName != null) {\n                    jmsTemplate.setSessionAcknowledgeModeName(acknowledgementModeName);\n                } else {\n                    jmsTemplate.setSessionAcknowledgeMode(Session.AUTO_ACKNOWLEDGE);\n                }\n            }\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [8, 11], [8, 12], [3, 13], [9, 14], [2, 15], [2, 16], [2, 17], [11, 18], [9, 19], [15, 20], [17, 21], [19, 22], [19, 23], [9, 24], [22, 25], [23, 26], [25, 27], [19, 28], [22, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 8], [12, 8], [13, 3], [14, 9], [15, 2], [16, 2], [17, 2], [18, 11], [19, 9], [20, 15], [21, 17], [22, 19], [23, 19], [24, 9], [25, 22], [26, 23], [27, 25], [28, 19], [29, 22], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "createInOnlyTemplate", "code": "    public JmsOperations createInOnlyTemplate(JmsEndpoint endpoint, boolean pubSubDomain, String destination) {\n\n        if (jmsOperations != null) {\n            return jmsOperations;\n        }\n\n        ConnectionFactory factory = getTemplateConnectionFactory();\n\n        JmsTemplate template = useVersion102\n            ? new CamelJmsTeemplate102(this, factory, pubSubDomain)\n            : new CamelJmsTemplate(this, factory);\n\n        template.setPubSubDomain(pubSubDomain);\n        if (destinationResolver != null) {\n            template.setDestinationResolver(destinationResolver);\n            if (endpoint instanceof DestinationEndpoint) {\n                LOG.debug(\"You are overloading the destinationResolver property on a DestinationEndpoint; are you sure you want to do that?\");\n            }\n        } else if (endpoint instanceof DestinationEndpoint) {\n            DestinationEndpoint destinationEndpoint = (DestinationEndpoint) endpoint;\n            template.setDestinationResolver(createDestinationResolver(destinationEndpoint));\n        }\n        template.setDefaultDestinationName(destination);\n\n        template.setExplicitQosEnabled(isExplicitQosEnabled());\n        template.setDeliveryPersistent(deliveryPersistent);\n        if (messageConverter != null) {\n            template.setMessageConverter(messageConverter);\n        }\n        template.setMessageIdEnabled(messageIdEnabled);\n        template.setMessageTimestampEnabled(messageTimestampEnabled);\n        if (priority >= 0) {\n            template.setPriority(priority);\n        }\n        template.setPubSubNoLocal(pubSubNoLocal);\n        if (receiveTimeout >= 0) {\n            template.setReceiveTimeout(receiveTimeout);\n        }\n        if (timeToLive >= 0) {\n            template.setTimeToLive(timeToLive);\n        }\n\n        template.setSessionTransacted(transacted);\n        if (transacted) {\n            template.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n        } else {\n            if (acknowledgementMode >= 0) {\n                template.setSessionAcknowledgeMode(acknowledgementMode);\n            } else if (acknowledgementModeName != null) {\n                template.setSessionAcknowledgeModeName(acknowledgementModeName);\n            }\n        }\n        return template;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [3, 15], [4, 16], [0, 17], [5, 18], [0, 19], [0, 20], [6, 21], [0, 22], [0, 23], [0, 24], [7, 25], [7, 26], [0, 27], [10, 28], [2, 29], [15, 30], [16, 31], [18, 32], [21, 33], [23, 34], [25, 35], [7, 36], [26, 37], [8, 38], [9, 39], [10, 40], [28, 41], [29, 42], [29, 43], [2, 44], [3, 45], [4, 46], [5, 47], [6, 48], [25, 49], [36, 50], [7, 51], [38, 52], [38, 53], [42, 54], [43, 55], [25, 56], [54, 57], [29, 58], [56, 59], [36, 60], [42, 61], [60, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 3], [16, 4], [17, 0], [18, 5], [19, 0], [20, 0], [21, 6], [22, 0], [23, 0], [24, 0], [25, 7], [26, 7], [27, 0], [28, 10], [29, 2], [30, 15], [31, 16], [32, 18], [33, 21], [34, 23], [35, 25], [36, 7], [37, 26], [38, 8], [39, 9], [40, 10], [41, 28], [42, 29], [43, 29], [44, 2], [45, 3], [46, 4], [47, 5], [48, 6], [49, 25], [50, 36], [51, 7], [52, 38], [53, 38], [54, 42], [55, 43], [56, 25], [57, 54], [58, 29], [59, 56], [60, 36], [61, 42], [62, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "createMessageListenerContainer", "code": "    public AbstractMessageListenerContainer createMessageListenerContainer(JmsEndpoint endpoint) {\n        AbstractMessageListenerContainer container = chooseMessageListenerContainerImplementation();\n        configureMessageListenerContainer(container, endpoint);\n        return container;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getConnectionFactory", "code": "    public ConnectionFactory getConnectionFactory() {\n        if (connectionFactory == null) {\n            connectionFactory = createConnectionFactory();\n        }\n        return connectionFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setConnectionFactory", "code": "    public void setConnectionFactory(ConnectionFactory connectionFactory) {\n        this.connectionFactory = connectionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getListenerConnectionFactory", "code": "    public ConnectionFactory getListenerConnectionFactory() {\n        if (listenerConnectionFactory == null) {\n            listenerConnectionFactory = createListenerConnectionFactory();\n        }\n        return listenerConnectionFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setListenerConnectionFactory", "code": "    public void setListenerConnectionFactory(ConnectionFactory listenerConnectionFactory) {\n        this.listenerConnectionFactory = listenerConnectionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTemplateConnectionFactory", "code": "    public ConnectionFactory getTemplateConnectionFactory() {\n        if (templateConnectionFactory == null) {\n            templateConnectionFactory = createTemplateConnectionFactory();\n        }\n        return templateConnectionFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setTemplateConnectionFactory", "code": "    public void setTemplateConnectionFactory(ConnectionFactory templateConnectionFactory) {\n        this.templateConnectionFactory = templateConnectionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isUseVersion102", "code": "    public boolean isUseVersion102() {\n        return useVersion102;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUseVersion102", "code": "    public void setUseVersion102(boolean useVersion102) {\n        this.useVersion102 = useVersion102;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAutoStartup", "code": "    public boolean isAutoStartup() {\n        return autoStartup;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoStartup", "code": "    public void setAutoStartup(boolean autoStartup) {\n        this.autoStartup = autoStartup;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAcceptMessagesWhileStopping", "code": "    public boolean isAcceptMessagesWhileStopping() {\n        return acceptMessagesWhileStopping;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAcceptMessagesWhileStopping", "code": "    public void setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) {\n        this.acceptMessagesWhileStopping = acceptMessagesWhileStopping;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getClientId", "code": "    public String getClientId() {\n        return clientId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setClientId", "code": "    public void setClientId(String consumerClientId) {\n        this.clientId = consumerClientId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDurableSubscriptionName", "code": "    public String getDurableSubscriptionName() {\n        return durableSubscriptionName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDurableSubscriptionName", "code": "    public void setDurableSubscriptionName(String durableSubscriptionName) {\n        this.durableSubscriptionName = durableSubscriptionName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExceptionListener", "code": "    public ExceptionListener getExceptionListener() {\n        return exceptionListener;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExceptionListener", "code": "    public void setExceptionListener(ExceptionListener exceptionListener) {\n        this.exceptionListener = exceptionListener;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSubscriptionDurable", "code": "    public boolean isSubscriptionDurable() {\n        return subscriptionDurable;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSubscriptionDurable", "code": "    public void setSubscriptionDurable(boolean subscriptionDurable) {\n        this.subscriptionDurable = subscriptionDurable;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAcknowledgementModeName", "code": "    public String getAcknowledgementModeName() {\n        return acknowledgementModeName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAcknowledgementModeName", "code": "    public void setAcknowledgementModeName(String consumerAcknowledgementMode) {\n        this.acknowledgementModeName = consumerAcknowledgementMode;\n        this.acknowledgementMode = -1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isExposeListenerSession", "code": "    public boolean isExposeListenerSession() {\n        return exposeListenerSession;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExposeListenerSession", "code": "    public void setExposeListenerSession(boolean exposeListenerSession) {\n        this.exposeListenerSession = exposeListenerSession;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTaskExecutor", "code": "    public TaskExecutor getTaskExecutor() {\n        return taskExecutor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTaskExecutor", "code": "    public void setTaskExecutor(TaskExecutor taskExecutor) {\n        this.taskExecutor = taskExecutor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isPubSubNoLocal", "code": "    public boolean isPubSubNoLocal() {\n        return pubSubNoLocal;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPubSubNoLocal", "code": "    public void setPubSubNoLocal(boolean pubSubNoLocal) {\n        this.pubSubNoLocal = pubSubNoLocal;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConcurrentConsumers", "code": "    public int getConcurrentConsumers() {\n        return concurrentConsumers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConcurrentConsumers", "code": "    public void setConcurrentConsumers(int concurrentConsumers) {\n        this.concurrentConsumers = concurrentConsumers;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaxMessagesPerTask", "code": "    public int getMaxMessagesPerTask() {\n        return maxMessagesPerTask;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMaxMessagesPerTask", "code": "    public void setMaxMessagesPerTask(int maxMessagesPerTask) {\n        this.maxMessagesPerTask = maxMessagesPerTask;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getServerSessionFactory", "code": "    public ServerSessionFactory getServerSessionFactory() {\n        return serverSessionFactory;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setServerSessionFactory", "code": "    public void setServerSessionFactory(ServerSessionFactory serverSessionFactory) {\n        this.serverSessionFactory = serverSessionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCacheLevel", "code": "    public int getCacheLevel() {\n        return cacheLevel;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCacheLevel", "code": "    public void setCacheLevel(int cacheLevel) {\n        this.cacheLevel = cacheLevel;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCacheLevelName", "code": "    public String getCacheLevelName() {\n        return cacheLevelName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCacheLevelName", "code": "    public void setCacheLevelName(String cacheName) {\n        this.cacheLevelName = cacheName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRecoveryInterval", "code": "    public long getRecoveryInterval() {\n        return recoveryInterval;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRecoveryInterval", "code": "    public void setRecoveryInterval(long recoveryInterval) {\n        this.recoveryInterval = recoveryInterval;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReceiveTimeout", "code": "    public long getReceiveTimeout() {\n        return receiveTimeout;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReceiveTimeout", "code": "    public void setReceiveTimeout(long receiveTimeout) {\n        this.receiveTimeout = receiveTimeout;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTransactionManager", "code": "    public PlatformTransactionManager getTransactionManager() {\n        return transactionManager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransactionManager", "code": "    public void setTransactionManager(PlatformTransactionManager transactionManager) {\n        this.transactionManager = transactionManager;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTransactionName", "code": "    public String getTransactionName() {\n        return transactionName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransactionName", "code": "    public void setTransactionName(String transactionName) {\n        this.transactionName = transactionName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTransactionTimeout", "code": "    public int getTransactionTimeout() {\n        return transactionTimeout;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransactionTimeout", "code": "    public void setTransactionTimeout(int transactionTimeout) {\n        this.transactionTimeout = transactionTimeout;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIdleTaskExecutionLimit", "code": "    public int getIdleTaskExecutionLimit() {\n        return idleTaskExecutionLimit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIdleTaskExecutionLimit", "code": "    public void setIdleTaskExecutionLimit(int idleTaskExecutionLimit) {\n        this.idleTaskExecutionLimit = idleTaskExecutionLimit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaxConcurrentConsumers", "code": "    public int getMaxConcurrentConsumers() {\n        return maxConcurrentConsumers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMaxConcurrentConsumers", "code": "    public void setMaxConcurrentConsumers(int maxConcurrentConsumers) {\n        this.maxConcurrentConsumers = maxConcurrentConsumers;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isExplicitQosEnabled", "code": "    public boolean isExplicitQosEnabled() {\n        return explicitQosEnabled != null ? explicitQosEnabled : false;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setExplicitQosEnabled", "code": "    public void setExplicitQosEnabled(boolean explicitQosEnabled) {\n        this.explicitQosEnabled = explicitQosEnabled;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDeliveryPersistent", "code": "    public boolean isDeliveryPersistent() {\n        return deliveryPersistent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDeliveryPersistent", "code": "    public void setDeliveryPersistent(boolean deliveryPersistent) {\n        this.deliveryPersistent = deliveryPersistent;\n        configuredQoS();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isReplyToDeliveryPersistent", "code": "    public boolean isReplyToDeliveryPersistent() {\n        return replyToDeliveryPersistent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplyToDeliveryPersistent", "code": "    public void setReplyToDeliveryPersistent(boolean replyToDeliveryPersistent) {\n        this.replyToDeliveryPersistent = replyToDeliveryPersistent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTimeToLive", "code": "    public long getTimeToLive() {\n        return timeToLive;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeToLive", "code": "    public void setTimeToLive(long timeToLive) {\n        this.timeToLive = timeToLive;\n        configuredQoS();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMessageConverter", "code": "    public MessageConverter getMessageConverter() {\n        return messageConverter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessageConverter", "code": "    public void setMessageConverter(MessageConverter messageConverter) {\n        this.messageConverter = messageConverter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isMessageIdEnabled", "code": "    public boolean isMessageIdEnabled() {\n        return messageIdEnabled;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessageIdEnabled", "code": "    public void setMessageIdEnabled(boolean messageIdEnabled) {\n        this.messageIdEnabled = messageIdEnabled;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isMessageTimestampEnabled", "code": "    public boolean isMessageTimestampEnabled() {\n        return messageTimestampEnabled;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessageTimestampEnabled", "code": "    public void setMessageTimestampEnabled(boolean messageTimestampEnabled) {\n        this.messageTimestampEnabled = messageTimestampEnabled;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPriority", "code": "    public int getPriority() {\n        return priority;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPriority", "code": "    public void setPriority(int priority) {\n        this.priority = priority;\n        configuredQoS();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getConsumerType", "code": "    public ConsumerType getConsumerType() {\n        return consumerType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConsumerType", "code": "    public void setConsumerType(ConsumerType consumerType) {\n        this.consumerType = consumerType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAcknowledgementMode", "code": "    public int getAcknowledgementMode() {\n        return acknowledgementMode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAcknowledgementMode", "code": "    public void setAcknowledgementMode(int consumerAcknowledgementMode) {\n        this.acknowledgementMode = consumerAcknowledgementMode;\n        this.acknowledgementModeName = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isTransacted", "code": "    public boolean isTransacted() {\n        return transacted;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransacted", "code": "    public void setTransacted(boolean consumerTransacted) {\n        this.transacted = consumerTransacted;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isTransactedInOut", "code": "    public boolean isTransactedInOut() {\n        return transactedInOut;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransactedInOut", "code": "    public void setTransactedInOut(boolean transactedInOut) {\n        this.transactedInOut = transactedInOut;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isEagerLoadingOfProperties", "code": "    public boolean isEagerLoadingOfProperties() {\n        return eagerLoadingOfProperties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEagerLoadingOfProperties", "code": "    public void setEagerLoadingOfProperties(boolean eagerLoadingOfProperties) {\n        this.eagerLoadingOfProperties = eagerLoadingOfProperties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDisableReplyTo", "code": "    public boolean isDisableReplyTo() {\n        return disableReplyTo;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDisableReplyTo", "code": "    public void setDisableReplyTo(boolean disableReplyTo) {\n        this.disableReplyTo = disableReplyTo;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPreserveMessageQos", "code": "    public void setPreserveMessageQos(boolean preserveMessageQos) {\n        this.preserveMessageQos = preserveMessageQos;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getJmsOperations", "code": "    public JmsOperations getJmsOperations() {\n        return jmsOperations;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setJmsOperations", "code": "    public void setJmsOperations(JmsOperations jmsOperations) {\n        this.jmsOperations = jmsOperations;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDestinationResolver", "code": "    public DestinationResolver getDestinationResolver() {\n        return destinationResolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDestinationResolver", "code": "    public void setDestinationResolver(DestinationResolver destinationResolver) {\n        this.destinationResolver = destinationResolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRequestMapPurgePollTimeMillis", "code": "    public long getRequestMapPurgePollTimeMillis() {\n        return requestMapPurgePollTimeMillis;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRequestMapPurgePollTimeMillis", "code": "    public void setRequestMapPurgePollTimeMillis(long requestMapPurgePollTimeMillis) {\n        this.requestMapPurgePollTimeMillis = requestMapPurgePollTimeMillis;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProviderMetadata", "code": "    public JmsProviderMetadata getProviderMetadata() {\n        return providerMetadata;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProviderMetadata", "code": "    public void setProviderMetadata(JmsProviderMetadata providerMetadata) {\n        this.providerMetadata = providerMetadata;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMetadataJmsOperations", "code": "    public JmsOperations getMetadataJmsOperations(JmsEndpoint endpoint) {\n        if (metadataJmsOperations == null) {\n            metadataJmsOperations = getJmsOperations();\n            if (metadataJmsOperations == null) {\n                metadataJmsOperations = createInOnlyTemplate(endpoint, false, null);\n            }\n        }\n        return metadataJmsOperations;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [2, 8], [7, 9], [8, 10], [5, 11], [11, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 2], [9, 7], [10, 8], [11, 5], [12, 11], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setMetadataJmsOperations", "code": "    public void setMetadataJmsOperations(JmsOperations metadataJmsOperations) {\n        this.metadataJmsOperations = metadataJmsOperations;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createDestinationResolver", "code": "    public static DestinationResolver createDestinationResolver(final DestinationEndpoint destinationEndpoint) {\n        return new DestinationResolver() {\n            public Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain) throws JMSException {\n                return destinationEndpoint.getJmsDestination(session);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [4, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 4], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "configureMessageListenerContainer", "code": "    protected void configureMessageListenerContainer(AbstractMessageListenerContainer container,\n                                                     JmsEndpoint endpoint) {\n        container.setConnectionFactory(getListenerConnectionFactory());\n        if (endpoint instanceof DestinationEndpoint) {\n            container.setDestinationResolver(createDestinationResolver((DestinationEndpoint) endpoint));\n        } else if (destinationResolver != null) {\n            container.setDestinationResolver(destinationResolver);\n        }\n        if (autoStartup) {\n            container.setAutoStartup(true);\n        }\n        if (clientId != null) {\n            container.setClientId(clientId);\n        }\n        container.setSubscriptionDurable(subscriptionDurable);\n        if (durableSubscriptionName != null) {\n            container.setDurableSubscriptionName(durableSubscriptionName);\n        }\n\n        if (durableSubscriptionName != null && clientId != null) {\n            container.setSubscriptionDurable(true);\n        }\n\n        if (exceptionListener != null) {\n            container.setExceptionListener(exceptionListener);\n        }\n\n        container.setAcceptMessagesWhileStopping(acceptMessagesWhileStopping);\n        container.setExposeListenerSession(exposeListenerSession);\n        container.setSessionTransacted(transacted);\n        if (transacted) {\n            container.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n        } else {\n            if (acknowledgementMode >= 0) {\n                container.setSessionAcknowledgeMode(acknowledgementMode);\n            } else if (acknowledgementModeName != null) {\n                container.setSessionAcknowledgeModeName(acknowledgementModeName);\n            }\n        }\n\n        if (endpoint.getSelector() != null && endpoint.getSelector().length() != 0) {\n            container.setMessageSelector(endpoint.getSelector());\n        }\n\n        if (container instanceof DefaultMessageListenerContainer) {\n            DefaultMessageListenerContainer listenerContainer = (DefaultMessageListenerContainer)container;\n            if (concurrentConsumers >= 0) {\n                listenerContainer.setConcurrentConsumers(concurrentConsumers);\n            }\n\n            if (cacheLevel >= 0) {\n                listenerContainer.setCacheLevel(cacheLevel);\n            } else if (cacheLevelName != null) {\n                listenerContainer.setCacheLevelName(cacheLevelName);\n            } else {\n                listenerContainer.setCacheLevel(defaultCacheLevel(endpoint));\n            }\n\n            if (idleTaskExecutionLimit >= 0) {\n                listenerContainer.setIdleTaskExecutionLimit(idleTaskExecutionLimit);\n            }\n            if (maxConcurrentConsumers >= 0) {\n                listenerContainer.setMaxConcurrentConsumers(maxConcurrentConsumers);\n            }\n            if (maxMessagesPerTask >= 0) {\n                listenerContainer.setMaxMessagesPerTask(maxMessagesPerTask);\n            }\n            listenerContainer.setPubSubNoLocal(pubSubNoLocal);\n            if (receiveTimeout >= 0) {\n                listenerContainer.setReceiveTimeout(receiveTimeout);\n            }\n            if (recoveryInterval >= 0) {\n                listenerContainer.setRecoveryInterval(recoveryInterval);\n            }\n            if (taskExecutor != null) {\n                listenerContainer.setTaskExecutor(taskExecutor);\n            }\n            PlatformTransactionManager tm = getTransactionManager();\n            if (tm != null && transacted) {\n                listenerContainer.setTransactionManager(tm);\n            } else if (transacted) {\n                throw new IllegalArgumentException(\"Property transacted is enabled but a transactionManager was not injected!\");\n            }\n            if (transactionName != null) {\n                listenerContainer.setTransactionName(transactionName);\n            }\n            if (transactionTimeout >= 0) {\n                listenerContainer.setTransactionTimeout(transactionTimeout);\n            }\n        } else if (container instanceof ServerSessionMessageListenerContainer) {\n            ServerSessionMessageListenerContainer listenerContainer = (ServerSessionMessageListenerContainer)container;\n            if (maxMessagesPerTask >= 0) {\n                listenerContainer.setMaxMessagesPerTask(maxMessagesPerTask);\n            }\n            if (serverSessionFactory != null) {\n                listenerContainer.setServerSessionFactory(serverSessionFactory);\n            }\n        } else if (container instanceof SimpleMessageListenerContainer) {\n            SimpleMessageListenerContainer listenerContainer = (SimpleMessageListenerContainer)container;\n            if (concurrentConsumers >= 0) {\n                listenerContainer.setConcurrentConsumers(concurrentConsumers);\n            }\n            listenerContainer.setPubSubNoLocal(pubSubNoLocal);\n            if (taskExecutor != null) {\n                listenerContainer.setTaskExecutor(taskExecutor);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [2, 14], [0, 15], [0, 16], [0, 17], [4, 18], [5, 19], [6, 20], [0, 21], [7, 22], [9, 23], [9, 24], [0, 25], [12, 26], [12, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [14, 41], [14, 42], [3, 43], [18, 44], [19, 45], [19, 46], [20, 47], [22, 48], [23, 49], [25, 50], [26, 51], [12, 52], [12, 53], [12, 54], [28, 55], [29, 56], [30, 57], [30, 58], [32, 59], [33, 60], [34, 61], [1, 62], [35, 63], [36, 64], [37, 65], [38, 66], [38, 67], [39, 68], [2, 69], [41, 70], [41, 71], [42, 72], [42, 73], [43, 74], [43, 75], [3, 76], [4, 77], [5, 78], [45, 79], [46, 80], [6, 81], [7, 82], [8, 83], [49, 84], [9, 85], [26, 86], [26, 87], [26, 88], [52, 89], [53, 90], [55, 91], [56, 92], [58, 93], [31, 94], [59, 95], [60, 96], [61, 97], [63, 98], [64, 99], [65, 100], [66, 101], [67, 102], [68, 103], [69, 104], [71, 105], [74, 106], [75, 107], [78, 108], [83, 109], [23, 110], [85, 111], [86, 112], [26, 113], [87, 114], [89, 115], [90, 116], [28, 117], [29, 118], [57, 119], [30, 120], [93, 121], [32, 122], [33, 123], [34, 124], [35, 125], [36, 126], [37, 127], [101, 128], [38, 129], [39, 130], [106, 131], [43, 132], [112, 133], [114, 134], [52, 135], [53, 136], [119, 137], [66, 138], [66, 139], [74, 140], [86, 141], [87, 142], [137, 143], [138, 144], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 2], [15, 0], [16, 0], [17, 0], [18, 4], [19, 5], [20, 6], [21, 0], [22, 7], [23, 9], [24, 9], [25, 0], [26, 12], [27, 12], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 14], [42, 14], [43, 3], [44, 18], [45, 19], [46, 19], [47, 20], [48, 22], [49, 23], [50, 25], [51, 26], [52, 12], [53, 12], [54, 12], [55, 28], [56, 29], [57, 30], [58, 30], [59, 32], [60, 33], [61, 34], [62, 1], [63, 35], [64, 36], [65, 37], [66, 38], [67, 38], [68, 39], [69, 2], [70, 41], [71, 41], [72, 42], [73, 42], [74, 43], [75, 43], [76, 3], [77, 4], [78, 5], [79, 45], [80, 46], [81, 6], [82, 7], [83, 8], [84, 49], [85, 9], [86, 26], [87, 26], [88, 26], [89, 52], [90, 53], [91, 55], [92, 56], [93, 58], [94, 31], [95, 59], [96, 60], [97, 61], [98, 63], [99, 64], [100, 65], [101, 66], [102, 67], [103, 68], [104, 69], [105, 71], [106, 74], [107, 75], [108, 78], [109, 83], [110, 23], [111, 85], [112, 86], [113, 26], [114, 87], [115, 89], [116, 90], [117, 28], [118, 29], [119, 57], [120, 30], [121, 93], [122, 32], [123, 33], [124, 34], [125, 35], [126, 36], [127, 37], [128, 101], [129, 38], [130, 39], [131, 106], [132, 43], [133, 112], [134, 114], [135, 52], [136, 53], [137, 119], [138, 66], [139, 66], [140, 74], [141, 86], [142, 87], [143, 137], [144, 138], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144]]}, {"function_name": "configure", "code": "    public void configure(EndpointMessageListener listener) {\n        if (isDisableReplyTo()) {\n            listener.setDisableReplyTo(true);\n        }\n        if (isEagerLoadingOfProperties()) {\n            listener.setEagerLoadingOfProperties(true);\n        }\n        JmsOperations operations = listener.getTemplate();\n        if (operations instanceof JmsTemplate) {\n            JmsTemplate template = (JmsTemplate)operations;\n            template.setDeliveryPersistent(isReplyToDeliveryPersistent());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [1, 9], [2, 10], [1, 11], [3, 12], [4, 13], [11, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 1], [10, 2], [11, 1], [12, 3], [13, 4], [14, 11], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "chooseMessageListenerContainerImplementation", "code": "    public AbstractMessageListenerContainer chooseMessageListenerContainerImplementation() {\n        switch (consumerType) {\n        case Simple:\n            return isUseVersion102()\n                ? new SimpleMessageListenerContainer102() : new SimpleMessageListenerContainer();\n        case ServerSessionPool:\n            return isUseVersion102()\n                ? new ServerSessionMessageListenerContainer102()\n                : new ServerSessionMessageListenerContainer();\n        case Default:\n            return isUseVersion102()\n                ? new DefaultMessageListenerContainer102() : new DefaultMessageListenerContainer();\n        default:\n            throw new IllegalArgumentException(\"Unknown consumer type: \" + consumerType);", "ast_nodes": ["FUNC_DECL", "SWITCH", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "CALL", "COND_EXPR", "COND_EXPR", "COND_EXPR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [7, 12], [7, 13], [8, 14], [8, 15], [8, 16], [9, 17], [9, 18], [9, 19], [10, 20], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 4], [9, 5], [10, 6], [11, 7], [12, 7], [13, 7], [14, 8], [15, 8], [16, 8], [17, 9], [18, 9], [19, 9], [20, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "defaultCacheLevel", "code": "    protected int defaultCacheLevel(JmsEndpoint endpoint) {\n        if (PackageHelper.isValidVersion(\"org.springframework.jms\", 2.51D)) {\n            return DefaultMessageListenerContainer.CACHE_CONSUMER;\n        } else {\n            if (endpoint.isPubSubDomain() && !isSubscriptionDurable()) {\n                return DefaultMessageListenerContainer.CACHE_CONSUMER;\n            } else {\n                return DefaultMessageListenerContainer.CACHE_CONNECTION;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [4, 9], [4, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 4], [10, 4], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createConnectionFactory", "code": "    protected ConnectionFactory createConnectionFactory() {\n        ObjectHelper.notNull(connectionFactory, \"connectionFactory\");\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createListenerConnectionFactory", "code": "    protected ConnectionFactory createListenerConnectionFactory() {\n        return getConnectionFactory();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createTemplateConnectionFactory", "code": "    protected ConnectionFactory createTemplateConnectionFactory() {\n        return getConnectionFactory();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isPreserveMessageQos", "code": "    public boolean isPreserveMessageQos() {\n        return preserveMessageQos;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "configuredQoS", "code": "    protected void configuredQoS() {\n        if (explicitQosEnabled == null) {\n            explicitQosEnabled = true;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isAlwaysCopyMessage", "code": "    public boolean isAlwaysCopyMessage() {\n        return alwaysCopyMessage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAlwaysCopyMessage", "code": "    public void setAlwaysCopyMessage(boolean alwaysCopyMessage) {\n        this.alwaysCopyMessage = alwaysCopyMessage;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isUseMessageIDAsCorrelationID", "code": "    public boolean isUseMessageIDAsCorrelationID() {\n        return useMessageIDAsCorrelationID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUseMessageIDAsCorrelationID", "code": "    public void setUseMessageIDAsCorrelationID(boolean useMessageIDAsCorrelationID) {\n        this.useMessageIDAsCorrelationID = useMessageIDAsCorrelationID;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReplyToTempDestinationAffinity", "code": "    public String getReplyToTempDestinationAffinity() {\n        return replyToTempDestinationAffinity;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplyToTempDestinationAffinity", "code": "    public void setReplyToTempDestinationAffinity(\n            String replyToTempDestinationAffinity) {\n        this.replyToTempDestinationAffinity = replyToTempDestinationAffinity;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRequestTimeout", "code": "    public long getRequestTimeout() {\n        return requestTimeout;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRequestTimeout", "code": "    public void setRequestTimeout(long requestTimeout) {\n        this.requestTimeout = requestTimeout;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReplyTo", "code": "    public String getReplyTo() {\n        return replyToDestination;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplyTo", "code": "    public void setReplyTo(String replyToDestination) {\n        if (!replyToDestination.startsWith(QUEUE_PREFIX)) {\n            throw new IllegalArgumentException(\"ReplyTo destination value has to be of type queue; \"\n                                              + \"e.g: \\\"queue:replyQueue\\\"\");\n        }\n        this.replyToDestination =\n            removeStartingCharacters(replyToDestination.substring(QUEUE_PREFIX.length()), '/');", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [5, 7], [5, 8], [6, 9], [8, 10], [9, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 5], [8, 5], [9, 6], [10, 8], [11, 9], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getReplyToDestinationSelectorName", "code": "    public String getReplyToDestinationSelectorName() {\n        return replyToDestinationSelectorName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplyToDestinationSelectorName", "code": "    public void setReplyToDestinationSelectorName(String replyToDestinationSelectorName) {\n        this.replyToDestinationSelectorName = replyToDestinationSelectorName;\n        if (replyToDestinationSelectorName != null) {\n            setAlwaysCopyMessage(true);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "JmsConfiguration", "code": "    public JmsConfiguration() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "JmsConfiguration", "code": "    public JmsConfiguration(ConnectionFactory connectionFactory) {\n        this.connectionFactory = connectionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.2-4508", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/pluginmgr/PluginList.java", "language": "java", "name": "org.gjt.sp.jedit.pluginmgr.PluginList", "code": "class PluginList\n{\n\t/**\n\t * Magic numbers used for auto-detecting GZIP files.\n\t */\n\tpublic static final int GZIP_MAGIC_1 = 0x1f;\n\tpublic static final int GZIP_MAGIC_2 = 0x8b;\n\n\tVector plugins;\n\tHashtable pluginHash;\n\tVector pluginSets;\n\n\t//{{{ PluginList constructor\n\tPluginList() throws Exception\n\t{\n\t\tplugins = new Vector();\n\t\tpluginHash = new Hashtable();\n\t\tpluginSets = new Vector();\n\n\t\tString path = jEdit.getProperty(\"plugin-manager.export-url\");\n\t\tString id = jEdit.getProperty(\"plugin-manager.mirror.id\");\n\t\tif (!id.equals(MirrorList.Mirror.NONE))\n\t\t\tpath += \"?mirror=\"+id;\n\t\tPluginListHandler handler = new PluginListHandler(this,path);\n\t\tXmlParser parser = new XmlParser();\n\t\tparser.setHandler(handler);\n\n\t\tInputStream in = new BufferedInputStream(new URL(path).openStream());\n\t\ttry\n\t\t{\n\t\t\tif(in.markSupported())\n\t\t\t{\n\t\t\t\tin.mark(2);\n\t\t\t\tint b1 = in.read();\n\t\t\t\tint b2 = in.read();\n\t\t\t\tin.reset();\n\n\t\t\t\tif(b1 == GZIP_MAGIC_1 && b2 == GZIP_MAGIC_2)\n\t\t\t\t\tin = new GZIPInputStream(in);\n\t\t\t}\n\n\t\t\tparser.parse(null,null,new InputStreamReader(in,\"UTF8\"));\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tin.close();\n\t\t}\n\t} //}}}\n\n\t//{{{ addPlugin() method\n\tvoid addPlugin(Plugin plugin)\n\t{\n\t\tplugin.checkIfInstalled();\n\t\tplugins.addElement(plugin);\n\t\tpluginHash.put(plugin.name,plugin);\n\t} //}}}\n\n\t//{{{ addPluginSet() method\n\tvoid addPluginSet(PluginSet set)\n\t{\n\t\tpluginSets.addElement(set);\n\t} //}}}\n\n\t//{{{ finished() method\n\tvoid finished()\n\t{\n\t\t// after the entire list is loaded, fill out plugin field\n\t\t// in dependencies\n\t\tfor(int i = 0; i < plugins.size(); i++)\n\t\t{\n\t\t\tPlugin plugin = (Plugin)plugins.elementAt(i);\n\t\t\tfor(int j = 0; j < plugin.branches.size(); j++)\n\t\t\t{\n\t\t\t\tBranch branch = (Branch)plugin.branches.elementAt(j);\n\t\t\t\tfor(int k = 0; k < branch.deps.size(); k++)\n\t\t\t\t{\n\t\t\t\t\tDependency dep = (Dependency)branch.deps.elementAt(k);\n\t\t\t\t\tif(dep.what.equals(\"plugin\"))\n\t\t\t\t\t\tdep.plugin = (Plugin)pluginHash.get(dep.pluginName);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ dump() method\n\tvoid dump()\n\t{\n\t\tfor(int i = 0; i < plugins.size(); i++)\n\t\t{\n\t\t\tSystem.err.println((Plugin)plugins.elementAt(i));\n\t\t\tSystem.err.println();\n\t\t}\n\t} //}}}\n\n\t//{{{ PluginSet class\n\tstatic class PluginSet\n\t{\n\t\tString name;\n\t\tString description;\n\t\tVector plugins = new Vector();\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn plugins.toString();\n\t\t}\n\t} //}}}\n\n\t//{{{ Plugin class\n\tstatic public class Plugin\n\t{\n\t\tString jar;\n\t\tString name;\n\t\tString description;\n\t\tString author;\n\t\tVector branches = new Vector();\n\t\t//String installed;\n\t\t//String installedVersion;\n\n\t\tvoid checkIfInstalled()\n\t\t{\n\t\t\t/* // check if the plugin is already installed.\n\t\t\t// this is a bit of hack\n\t\t\tPluginJAR[] jars = jEdit.getPluginJARs();\n\t\t\tfor(int i = 0; i < jars.length; i++)\n\t\t\t{\n\t\t\t\tString path = jars[i].getPath();\n\t\t\t\tif(!new File(path).exists())\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif(MiscUtilities.getFileName(path).equals(jar))\n\t\t\t\t{\n\t\t\t\t\tinstalled = path;\n\n\t\t\t\t\tEditPlugin plugin = jars[i].getPlugin();\n\t\t\t\t\tif(plugin != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tinstalledVersion = jEdit.getProperty(\n\t\t\t\t\t\t\t\"plugin.\" + plugin.getClassName()\n\t\t\t\t\t\t\t+ \".version\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString[] notLoaded = jEdit.getNotLoadedPluginJARs();\n\t\t\tfor(int i = 0; i < notLoaded.length; i++)\n\t\t\t{\n\t\t\t\tString path = notLoaded[i];\n\n\t\t\t\tif(MiscUtilities.getFileName(path).equals(jar))\n\t\t\t\t{\n\t\t\t\t\tinstalled = path;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} */\n\t\t}\n\n\t\tString getInstalledVersion()\n\t\t{\n\t\t\tPluginJAR[] jars = jEdit.getPluginJARs();\n\t\t\tfor(int i = 0; i < jars.length; i++)\n\t\t\t{\n\t\t\t\tString path = jars[i].getPath();\n\n\t\t\t\tif(MiscUtilities.getFileName(path).equals(jar))\n\t\t\t\t{\n\t\t\t\t\tEditPlugin plugin = jars[i].getPlugin();\n\t\t\t\t\tif(plugin != null)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn jEdit.getProperty(\n\t\t\t\t\t\t\t\"plugin.\" + plugin.getClassName()\n\t\t\t\t\t\t\t+ \".version\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\n\t\tString getInstalledPath()\n\t\t{\n\t\t\tPluginJAR[] jars = jEdit.getPluginJARs();\n\t\t\tfor(int i = 0; i < jars.length; i++)\n\t\t\t{\n\t\t\t\tString path = jars[i].getPath();\n\n\t\t\t\tif(MiscUtilities.getFileName(path).equals(jar))\n\t\t\t\t\treturn path;\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\n\t\t/**\n\t\t * Find the first branch compatible with the running jEdit release.\n\t\t */\n\t\tBranch getCompatibleBranch()\n\t\t{\n\t\t\tfor(int i = 0; i < branches.size(); i++)\n\t\t\t{\n\t\t\t\tBranch branch = (Branch)branches.elementAt(i);\n\t\t\t\tif(branch.canSatisfyDependencies())\n\t\t\t\t\treturn branch;\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\n\t\tboolean canBeInstalled()\n\t\t{\n\t\t\tBranch branch = getCompatibleBranch();\n\t\t\treturn branch != null && !branch.obsolete\n\t\t\t\t&& branch.canSatisfyDependencies();\n\t\t}\n\n\t\tvoid install(Roster roster, String installDirectory, boolean downloadSource)\n\t\t{\n\t\t\tString installed = getInstalledPath();\n\n\t\t\tBranch branch = getCompatibleBranch();\n\t\t\tif(branch.obsolete)\n\t\t\t{\n\t\t\t\tif(installed != null)\n\t\t\t\t\troster.addRemove(installed);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t//branch.satisfyDependencies(roster,installDirectory,\n\t\t\t//\tdownloadSource);\n\n\t\t\tif(installed != null)\n\t\t\t{\n\t\t\t\tinstallDirectory = MiscUtilities.getParentOfPath(\n\t\t\t\t\tinstalled);\n\t\t\t}\n\n\t\t\troster.addInstall(\n\t\t\t\tinstalled,\n\t\t\t\t(downloadSource ? branch.downloadSource : branch.download),\n\t\t\t\tinstallDirectory,\n\t\t\t\t(downloadSource ? branch.downloadSourceSize : branch.downloadSize));\n\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn name;\n\t\t}\n\t} //}}}\n\n\t//{{{ Branch class\n\tstatic class Branch\n\t{\n\t\tString version;\n\t\tString date;\n\t\tint downloadSize;\n\t\tString download;\n\t\tint downloadSourceSize;\n\t\tString downloadSource;\n\t\tboolean obsolete;\n\t\tVector deps = new Vector();\n\n\t\tboolean canSatisfyDependencies()\n\t\t{\n\t\t\tfor(int i = 0; i < deps.size(); i++)\n\t\t\t{\n\t\t\t\tDependency dep = (Dependency)deps.elementAt(i);\n\t\t\t\tif(!dep.canSatisfy())\n\t\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\tvoid satisfyDependencies(Roster roster, String installDirectory,\n\t\t\tboolean downloadSource)\n\t\t{\n\t\t\tfor(int i = 0; i < deps.size(); i++)\n\t\t\t{\n\t\t\t\tDependency dep = (Dependency)deps.elementAt(i);\n\t\t\t\tdep.satisfy(roster,installDirectory,downloadSource);\n\t\t\t}\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn \"[version=\" + version + \",download=\" + download\n\t\t\t\t+ \",obsolete=\" + obsolete + \",deps=\" + deps + \"]\";\n\t\t}\n\t} //}}}\n\n\t//{{{ Dependency class\n\tstatic class Dependency\n\t{\n\t\tString what;\n\t\tString from;\n\t\tString to;\n\t\t// only used if what is \"plugin\"\n\t\tString pluginName;\n\t\tPlugin plugin;\n\n\t\tDependency(String what, String from, String to, String pluginName)\n\t\t{\n\t\t\tthis.what = what;\n\t\t\tthis.from = from;\n\t\t\tthis.to = to;\n\t\t\tthis.pluginName = pluginName;\n\t\t}\n\n\t\tboolean isSatisfied()\n\t\t{\n\t\t\tif(what.equals(\"plugin\"))\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < plugin.branches.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tString installedVersion = plugin.getInstalledVersion();\n\t\t\t\t\tif(installedVersion != null\n\t\t\t\t\t\t&&\n\t\t\t\t\t(from == null || MiscUtilities.compareStrings(\n\t\t\t\t\t\tinstalledVersion,from,false) >= 0)\n\t\t\t\t\t\t&&\n\t\t\t\t\t   (to == null || MiscUtilities.compareStrings(\n\t\t\t\t\t   \tinstalledVersion,to,false) <= 0))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse if(what.equals(\"jdk\"))\n\t\t\t{\n\t\t\t\tString javaVersion = System.getProperty(\"java.version\").substring(0,3);\n\n\t\t\t\tif((from == null || MiscUtilities.compareStrings(\n\t\t\t\t\tjavaVersion,from,false) >= 0)\n\t\t\t\t\t&&\n\t\t\t\t   (to == null || MiscUtilities.compareStrings(\n\t\t\t\t   \tjavaVersion,to,false) <= 0))\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse if(what.equals(\"jedit\"))\n\t\t\t{\n\t\t\t\tString build = jEdit.getBuild();\n\n\t\t\t\tif((from == null || MiscUtilities.compareStrings(\n\t\t\t\t\tbuild,from,false) >= 0)\n\t\t\t\t\t&&\n\t\t\t\t   (to == null || MiscUtilities.compareStrings(\n\t\t\t\t   \tbuild,to,false) <= 0))\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,\"Invalid dependency: \" + what);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tboolean canSatisfy()\n\t\t{\n\t\t\tif(isSatisfied())\n\t\t\t\treturn true;\n\t\t\telse if(what.equals(\"plugin\"))\n\t\t\t{\n\t\t\t\treturn plugin.canBeInstalled();\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\n\t\tvoid satisfy(Roster roster, String installDirectory,\n\t\t\tboolean downloadSource)\n\t\t{\n\t\t\tif(what.equals(\"plugin\"))\n\t\t\t{\n\t\t\t\tString installedVersion = plugin.getInstalledVersion();\n\t\t\t\tfor(int i = 0; i < plugin.branches.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tBranch branch = (Branch)plugin.branches\n\t\t\t\t\t\t.elementAt(i);\n\t\t\t\t\tif((installedVersion == null\n\t\t\t\t\t\t||\n\t\t\t\t\tMiscUtilities.compareStrings(\n\t\t\t\t\t\tinstalledVersion,branch.version,false) < 0)\n\t\t\t\t\t\t&&\n\t\t\t\t\t(from == null || MiscUtilities.compareStrings(\n\t\t\t\t\t\tbranch.version,from,false) >= 0)\n\t\t\t\t\t\t&&\n\t\t\t\t\t   (to == null || MiscUtilities.compareStrings(\n\t\t\t\t\t   \tbranch.version,to,false) <= 0))\n\t\t\t\t\t{\n\t\t\t\t\t\tplugin.install(roster,installDirectory,\n\t\t\t\t\t\t\tdownloadSource);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn \"[what=\" + what + \",from=\" + from\n\t\t\t\t+ \",to=\" + to + \",plugin=\" + plugin + \"]\";", "functions": [{"function_name": "addPlugin", "code": "\tvoid addPlugin(Plugin plugin)\n\t{\n\t\tplugin.checkIfInstalled();\n\t\tplugins.addElement(plugin);\n\t\tpluginHash.put(plugin.name,plugin);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addPluginSet", "code": "\tvoid addPluginSet(PluginSet set)\n\t{\n\t\tpluginSets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "finished", "code": "\tvoid finished()\n\t{\n\t\t// after the entire list is loaded, fill out plugin field\n\t\t// in dependencies\n\t\tfor(int i = 0; i < plugins.size(); i++)\n\t\t{\n\t\t\tPlugin plugin = (Plugin)plugins.elementAt(i);\n\t\t\tfor(int j = 0; j < plugin.branches.size(); j++)\n\t\t\t{\n\t\t\t\tBranch branch = (Branch)plugin.branches.elementAt(j);\n\t\t\t\tfor(int k = 0; k < branch.deps.size(); k++)\n\t\t\t\t{\n\t\t\t\t\tDependency dep = (Dependency)branch.deps.elementAt(k);\n\t\t\t\t\tif(dep.what.equals(\"plugin\"))\n\t\t\t\t\t\tdep.plugin = (Plugin)pluginHash.get(dep.pluginName);", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [3, 8], [3, 9], [6, 10], [8, 11], [3, 12], [4, 13], [8, 14], [8, 15], [11, 16], [14, 17], [8, 18], [9, 19], [14, 20], [17, 21], [15, 22], [20, 23], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 3], [9, 3], [10, 6], [11, 8], [12, 3], [13, 4], [14, 8], [15, 8], [16, 11], [17, 14], [18, 8], [19, 9], [20, 14], [21, 17], [22, 15], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "dump", "code": "\tvoid dump()\n\t{\n\t\tfor(int i = 0; i < plugins.size(); i++)\n\t\t{\n\t\t\tSystem.err.println((Plugin)plugins.elementAt(i));\n\t\t\tSystem.err.println();", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "PluginList", "code": "\tPluginList() throws Exception\n\t{\n\t\tplugins = new Vector();\n\t\tpluginHash = new Hashtable();\n\t\tpluginSets = new Vector();\n\n\t\tString path = jEdit.getProperty(\"plugin-manager.export-url\");\n\t\tString id = jEdit.getProperty(\"plugin-manager.mirror.id\");\n\t\tif (!id.equals(MirrorList.Mirror.NONE))\n\t\t\tpath += \"?mirror=\"+id;\n\t\tPluginListHandler handler = new PluginListHandler(this,path);\n\t\tXmlParser parser = new XmlParser();\n\t\tparser.setHandler(handler);\n\n\t\tInputStream in = new BufferedInputStream(new URL(path).openStream());\n\t\ttry\n\t\t{\n\t\t\tif(in.markSupported())\n\t\t\t{\n\t\t\t\tin.mark(2);\n\t\t\t\tint b1 = in.read();\n\t\t\t\tint b2 = in.read();\n\t\t\t\tin.reset();\n\n\t\t\t\tif(b1 == GZIP_MAGIC_1 && b2 == GZIP_MAGIC_2)\n\t\t\t\t\tin = new GZIPInputStream(in);\n\t\t\t}\n\n\t\t\tparser.parse(null,null,new InputStreamReader(in,\"UTF8\"));\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tin.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [5, 10], [0, 11], [0, 12], [0, 13], [1, 14], [1, 15], [8, 16], [2, 17], [3, 18], [4, 19], [5, 20], [6, 21], [7, 22], [11, 23], [12, 24], [13, 25], [15, 26], [15, 27], [15, 28], [8, 29], [8, 30], [8, 31], [17, 32], [20, 33], [21, 34], [22, 35], [26, 36], [29, 37], [8, 38], [8, 39], [32, 40], [33, 41], [29, 42], [37, 43], [37, 44], [30, 45], [31, 46], [39, 47], [42, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 5], [11, 0], [12, 0], [13, 0], [14, 1], [15, 1], [16, 8], [17, 2], [18, 3], [19, 4], [20, 5], [21, 6], [22, 7], [23, 11], [24, 12], [25, 13], [26, 15], [27, 15], [28, 15], [29, 8], [30, 8], [31, 8], [32, 17], [33, 20], [34, 21], [35, 22], [36, 26], [37, 29], [38, 8], [39, 8], [40, 32], [41, 33], [42, 29], [43, 37], [44, 37], [45, 30], [46, 31], [47, 39], [48, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}], "label": 0}
{"sample_id": "xalan-2.7-8486", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/templates/RedundentExprEliminator.java", "language": "java", "name": "org.apache.xalan.templates.RedundentExprEliminator", "code": "public class RedundentExprEliminator extends XSLTVisitor\n{\n  Vector m_paths;\n  Vector m_absPaths;\n  boolean m_isSameContext;\n  AbsPathChecker m_absPathChecker = new AbsPathChecker();\n  \n  private static int m_uniquePseudoVarID = 1;\n  static final String PSUEDOVARNAMESPACE = Constants.S_VENDORURL+\"/xalan/psuedovar\";\n \n  public static final boolean DEBUG = false;\n  public static final boolean DIAGNOSE_NUM_PATHS_REDUCED = false;\n  public static final boolean DIAGNOSE_MULTISTEPLIST = false;\n\n  /**\n   * So we can reuse it over and over again.\n   */\n  VarNameCollector m_varNameCollector = new VarNameCollector();\n\n  /**\n   * Construct a RedundentExprEliminator.\n   */\n  public RedundentExprEliminator()\n  {\n    m_isSameContext = true;\n    m_absPaths = new Vector();\n    m_paths = null;\n  }\n  \n  \n  /**\n   * Method to be called after the all expressions within an  \n   * node context have been visited.  It eliminates redundent \n   * expressions by creating a variable in the psuedoVarRecipient \n   * for each redundent expression, and then rewriting the redundent \n   * expression to be a variable reference.\n   * \n   * @param psuedoVarRecipient The recipient of the psuedo vars.  The \n   * variables will be inserted as first children of the element, before \n   * any existing variables.\n   */\n  public void eleminateRedundentLocals(ElemTemplateElement psuedoVarRecipient)\n  {\n    eleminateRedundent(psuedoVarRecipient, m_paths);\n  }\n  \n  /**\n   * Method to be called after the all global expressions within a stylesheet \n   * have been collected.  It eliminates redundent \n   * expressions by creating a variable in the psuedoVarRecipient \n   * for each redundent expression, and then rewriting the redundent \n   * expression to be a variable reference.\n   * \n   */\n  public void eleminateRedundentGlobals(StylesheetRoot stylesheet)\n  {\n    eleminateRedundent(stylesheet, m_absPaths);\n  }\n\n  \n  /**\n   * Method to be called after the all expressions within an  \n   * node context have been visited.  It eliminates redundent \n   * expressions by creating a variable in the psuedoVarRecipient \n   * for each redundent expression, and then rewriting the redundent \n   * expression to be a variable reference.\n   * \n   * @param psuedoVarRecipient The owner of the subtree from where the \n   *                           paths were collected.\n   * @param paths A vector of paths that hold ExpressionOwner objects, \n   *              which must yield LocationPathIterators.\n   */\n  protected void eleminateRedundent(ElemTemplateElement psuedoVarRecipient, Vector paths)\n  {\n    int n = paths.size();\n    int numPathsEliminated = 0;\n    int numUniquePathsEliminated = 0;\n    for (int i = 0; i < n; i++)\n    {\n      ExpressionOwner owner = (ExpressionOwner) paths.elementAt(i);\n      if (null != owner)\n      {\n        int found = findAndEliminateRedundant(i + 1, i, owner, psuedoVarRecipient, paths);\n        if (found > 0)\n                  numUniquePathsEliminated++;\n        numPathsEliminated += found;\n      }\n    }\n    \n    eleminateSharedPartialPaths(psuedoVarRecipient, paths);\n    \n    if(DIAGNOSE_NUM_PATHS_REDUCED)\n\t\tdiagnoseNumPaths(paths, numPathsEliminated, numUniquePathsEliminated);\n  }\n  \n  /**\n   * Eliminate the shared partial paths in the expression list.\n   * \n   * @param psuedoVarRecipient The recipient of the psuedo vars.\n   * \n   * @param paths A vector of paths that hold ExpressionOwner objects, \n   *              which must yield LocationPathIterators.\n   */\n  protected void eleminateSharedPartialPaths(ElemTemplateElement psuedoVarRecipient, Vector paths)\n  {\n  \tMultistepExprHolder list = createMultistepExprList(paths);\n  \tif(null != list)\n  \t{\n  \t\tif(DIAGNOSE_MULTISTEPLIST)\n        \tlist.diagnose();\n        \t\n        boolean isGlobal = (paths == m_absPaths);\n        \t\n        int longestStepsCount = list.m_stepCount;\n    \tfor (int i = longestStepsCount-1; i >= 1; i--)\n    \t{\n    \t\tMultistepExprHolder next = list;\n        \twhile(null != next)\n        \t{\n        \t\tif(next.m_stepCount < i)\n        \t\t\tbreak;\n\t\t\t\tlist = matchAndEliminatePartialPaths(next, list, isGlobal, i, psuedoVarRecipient);\n\t\t\t\tnext = next.m_next;\n        \t}\n    \t}\n  \t}\n  }\n\n  /**\n   * For a given path, see if there are any partitial matches in the list, \n   * and, if there are, replace those partial paths with psuedo variable refs,\n   * and create the psuedo variable decl.\n   * \n   * @return The head of the list, which may have changed.\n   */\n  protected MultistepExprHolder matchAndEliminatePartialPaths(MultistepExprHolder testee, \n                                               MultistepExprHolder head,\n                                               boolean isGlobal,\n                                               int lengthToTest,\n                                               ElemTemplateElement varScope)\n  {  \t\n  \tif(null == testee.m_exprOwner)\n  \t\treturn head;\n  \t\t\n    WalkingIterator iter1 = (WalkingIterator) testee.m_exprOwner.getExpression();\n    if(partialIsVariable(testee, lengthToTest))\n    \treturn head;\n    MultistepExprHolder matchedPaths = null;\n    MultistepExprHolder matchedPathsTail = null;\n    MultistepExprHolder meh = head;\n    while( null != meh)\n    {\n      if ((meh != testee) && (null != meh.m_exprOwner))\n      {\n\t      WalkingIterator iter2 = (WalkingIterator) meh.m_exprOwner.getExpression();\n\t      if (stepsEqual(iter1, iter2, lengthToTest))\n\t      {\n\t        if (null == matchedPaths)\n\t        {\n\t          try\n\t          {\n\t          \tmatchedPaths = (MultistepExprHolder)testee.clone();\n\t          }\n\t          catch(CloneNotSupportedException cnse){}\n\t          matchedPathsTail = matchedPaths;\n\t          matchedPathsTail.m_next = null;\n\t        }\n\t       \n\t        try\n\t        {\n\t          matchedPathsTail.m_next = (MultistepExprHolder)meh.clone();\n\t        }\n\t        catch(CloneNotSupportedException cnse){}\n\t        matchedPathsTail = matchedPathsTail.m_next;\n\t        matchedPathsTail.m_next = null;\n\t      }\n      }\n      meh = meh.m_next;\n    }\n    \t\n\tint matchCount = 0;\n\tif(null != matchedPaths)\n\t{\n\t\tElemTemplateElement root = isGlobal ? varScope : findCommonAncestor(matchedPaths);\n\t\tWalkingIterator sharedIter = (WalkingIterator)matchedPaths.m_exprOwner.getExpression();\n\t\tWalkingIterator newIter = createIteratorFromSteps(sharedIter, lengthToTest);\n\t\tElemVariable var = createPseudoVarDecl(root, newIter, isGlobal);\n\t\tif(DIAGNOSE_MULTISTEPLIST)\n\t\t\tSystem.err.println(\"Created var: \"+var.getName()+(isGlobal ? \"(Global)\" : \"\"));\n\t\twhile(null != matchedPaths)\n\t\t{\n\t\t\tExpressionOwner owner = matchedPaths.m_exprOwner;\n\t\t\tWalkingIterator iter = (WalkingIterator)owner.getExpression();\n\t\t\t\n\t\t\tif(DIAGNOSE_MULTISTEPLIST)\n\t\t\t\tdiagnoseLineNumber(iter);\n\t\t\t\n\t\t\tLocPathIterator newIter2 = \n\t\t\t    changePartToRef(var.getName(), iter, lengthToTest, isGlobal);\n\t\t\towner.setExpression(newIter2);\n\t\t\t\n\t\t\tmatchedPaths = matchedPaths.m_next;\n\t\t}\n\t}\n\t\n\tif(DIAGNOSE_MULTISTEPLIST)\n\t\tdiagnoseMultistepList(matchCount, lengthToTest, isGlobal);\n    return head;\n  }\n  \n  /**\n   * Check if results of partial reduction will just be a variable, in \n   * which case, skip it.\n   */\n  boolean partialIsVariable(MultistepExprHolder testee, int lengthToTest)\n  {\n  \tif(1 == lengthToTest)\n  \t{\n  \t\tWalkingIterator wi = (WalkingIterator)testee.m_exprOwner.getExpression();\n  \t\tif(wi.getFirstWalker() instanceof FilterExprWalker)\n  \t\t\treturn true;\n  \t}\n  \treturn false;\n  }\n\n  /**\n   * Tell what line number belongs to a given expression.\n   */\n  protected void diagnoseLineNumber(Expression expr)\n  {\n    ElemTemplateElement e = getElemFromExpression(expr);\n    System.err.println(\"   \" + e.getSystemId() + \" Line \" + e.getLineNumber());\n  }\n      \n  /**\n   * Given a linked list of expressions, find the common ancestor that is \n   * suitable for holding a psuedo variable for shared access.\n   */\n  protected ElemTemplateElement findCommonAncestor(MultistepExprHolder head)\n  {\n  \tint numExprs = head.getLength();\n    ElemTemplateElement[] elems = new ElemTemplateElement[numExprs];\n    int[] ancestorCounts = new int[numExprs];\n    \n  \tMultistepExprHolder next = head;\n  \tint shortestAncestorCount = 10000;\n  \tfor(int i = 0; i < numExprs; i++)\n  \t{\n  \t\tElemTemplateElement elem = \n  \t\t\tgetElemFromExpression(next.m_exprOwner.getExpression());\n  \t\telems[i] = elem;\n  \t\tint numAncestors = countAncestors(elem);\n  \t\tancestorCounts[i] = numAncestors;\n  \t\tif(numAncestors < shortestAncestorCount)\n  \t\t{\n  \t\t\tshortestAncestorCount = numAncestors;\n  \t\t}\n  \t\tnext = next.m_next;\n  \t}\n  \t\n  \tfor(int i = 0; i < numExprs; i++)\n  \t{\n  \t\tif(ancestorCounts[i] > shortestAncestorCount)\n  \t\t{\n  \t\t\tint numStepCorrection = ancestorCounts[i] - shortestAncestorCount;\n  \t\t\tfor(int j = 0; j < numStepCorrection; j++)\n  \t\t\t{\n  \t\t\t\telems[i] = elems[i].getParentElem();\n  \t\t\t}\n  \t\t}\n  \t}\n  \t\n  \tElemTemplateElement first = null;\n  \twhile(shortestAncestorCount-- >= 0)\n  \t{\n  \t\tboolean areEqual = true;\n  \t\tfirst = elems[0];\n  \t\tfor(int i = 1; i < numExprs; i++)\n  \t\t{\n  \t\t\tif(first != elems[i])\n  \t\t\t{\n  \t\t\t\tareEqual = false;\n  \t\t\t\tbreak;\n  \t\t\t}\n  \t\t}\n  \t\tif(areEqual && isNotSameAsOwner(head, first) && first.canAcceptVariables())\n  \t\t{\n  \t\t\tif(DIAGNOSE_MULTISTEPLIST)\n  \t\t\t{\n  \t\t\t\tSystem.err.print(first.getClass().getName());\n  \t\t\t\tSystem.err.println(\" at   \" + first.getSystemId() + \" Line \" + first.getLineNumber());\n  \t\t\t}\n  \t\t\treturn first;\n  \t\t}\n   \t\t\t\n  \t\tfor(int i = 0; i < numExprs; i++)\n  \t\t{\n  \t\t\telems[i] = elems[i].getParentElem();\n  \t\t}\n  \t}\n  \t\n  \tassertion(false, \"Could not find common ancestor!!!\");\n  \treturn null;\n  }\n  \n  /**\n   * Find out if the given ElemTemplateElement is not the same as one of \n   * the ElemTemplateElement owners of the expressions.\n   * \n   * @param head Head of linked list of expression owners.\n   * @param ete The ElemTemplateElement that is a candidate for a psuedo \n   * variable parent.\n   * @return true if the given ElemTemplateElement is not the same as one of \n   * the ElemTemplateElement owners of the expressions.  This is to make sure \n   * we find an ElemTemplateElement that is in a viable position to hold \n   * psuedo variables that are visible to the references.\n   */\n  protected boolean isNotSameAsOwner(MultistepExprHolder head, ElemTemplateElement ete)\n  {\n  \tMultistepExprHolder next = head;\n  \twhile(null != next)\n  \t{\n  \t\tElemTemplateElement elemOwner = getElemFromExpression(next.m_exprOwner.getExpression());\n  \t\tif(elemOwner == ete)\n  \t\t\treturn false;\n  \t\tnext = next.m_next;\n  \t}\n  \treturn true;\n  }\n  \n  /**\n   * Count the number of ancestors that a ElemTemplateElement has.\n   * \n   * @param elem An representation of an element in an XSLT stylesheet.\n   * @return The number of ancestors of elem (including the element itself).\n   */\n  protected int countAncestors(ElemTemplateElement elem)\n  {\n  \tint count = 0;\n  \twhile(null != elem)\n  \t{\n  \t\tcount++;\n  \t\telem = elem.getParentElem();\n  \t}\n  \treturn count;\n  }\n\n  /**\n   * Print out diagnostics about partial multistep evaluation.\n   */\n  protected void diagnoseMultistepList(\n      int matchCount,\n      int lengthToTest,\n      boolean isGlobal)\n  {\n      if (matchCount > 0)\n        {\n        System.err.print(\n          \"Found multistep matches: \" + matchCount + \", \" + lengthToTest + \" length\");\n        if (isGlobal)\n              System.err.println(\" (global)\");\n        else\n              System.err.println();\n      }\n  }\n  \n  /**\n   * Change a given number of steps to a single variable reference.\n   * \n   * @param uniquePseudoVarName The name of the variable reference.\n   * @param wi The walking iterator that is to be changed.\n   * @param numSteps The number of steps to be changed.\n   * @param isGlobal true if this will be a global reference.\n   */\n  protected LocPathIterator changePartToRef(final QName uniquePseudoVarName, WalkingIterator wi, \n                                 final int numSteps, final boolean isGlobal)\n  {\n  \tVariable var = new Variable();\n  \tvar.setQName(uniquePseudoVarName);\n  \tvar.setIsGlobal(isGlobal);\n  \tif(isGlobal)\n  \t{\tElemTemplateElement elem = getElemFromExpression(wi);\n  \t\tStylesheetRoot root = elem.getStylesheetRoot();\n  \t\tVector vars = root.getVariablesAndParamsComposed();\n  \t\tvar.setIndex(vars.size()-1);\n  \t}\n  \t\n  \tAxesWalker walker = wi.getFirstWalker();\n  \tfor(int i = 0; i < numSteps; i++)\n  \t{\n  \t\tassertion(null != walker, \"Walker should not be null!\");\n  \t\twalker = walker.getNextWalker();\n  \t}\n  \t\n  \tif(null != walker)\n  \t{\n  \t\n  \t  FilterExprWalker few = new FilterExprWalker(wi);\n  \t  few.setInnerExpression(var);\n  \t  few.exprSetParent(wi);\n  \t  few.setNextWalker(walker);\n  \t  walker.setPrevWalker(few);\n  \t  wi.setFirstWalker(few);\n  \t  return wi;\n  \t}\n  \telse\n  \t{\n  \t  FilterExprIteratorSimple feis = new FilterExprIteratorSimple(var);\n  \t  feis.exprSetParent(wi.exprGetParent());\n  \t  return feis;\n  \t}\n  }\n  \n  /**\n   * Create a new WalkingIterator from the steps in another WalkingIterator.\n   * \n   * @param wi The iterator from where the steps will be taken.\n   * @param numSteps The number of steps from the first to copy into the new \n   *                 iterator.\n   * @return The new iterator.\n   */\n  protected WalkingIterator createIteratorFromSteps(final WalkingIterator wi, int numSteps)\n  {\n  \tWalkingIterator newIter = new WalkingIterator(wi.getPrefixResolver());\n  \ttry\n  \t{\n  \t\tAxesWalker walker = (AxesWalker)wi.getFirstWalker().clone();\n  \t\tnewIter.setFirstWalker(walker);\n  \t\twalker.setLocPathIterator(newIter);\n  \t\tfor(int i = 1; i < numSteps; i++)\n  \t\t{\n  \t\t\tAxesWalker next = (AxesWalker)walker.getNextWalker().clone();\n  \t\t\twalker.setNextWalker(next);\n  \t\t\tnext.setLocPathIterator(newIter);\n  \t\t\twalker = next;\n  \t\t}\n  \t\twalker.setNextWalker(null);\n  \t}\n  \tcatch(CloneNotSupportedException cnse)\n  \t{\n  \t\tthrow new WrappedRuntimeException(cnse);\n  \t}\n  \treturn newIter;\n  }\n    \n  /**\n   * Compare a given number of steps between two iterators, to see if they are equal.\n   * \n   * @param iter1 The first iterator to compare.\n   * @param iter2 The second iterator to compare.\n   * @param numSteps The number of steps to compare.\n   * @return true If the given number of steps are equal.\n   * \n   */\n  protected boolean stepsEqual(WalkingIterator iter1, WalkingIterator iter2, \n                                         int numSteps)\n  {\n  \tAxesWalker aw1 = iter1.getFirstWalker();\n  \tAxesWalker aw2 = iter2.getFirstWalker();\n  \t\n  \tfor(int i = 0; (i < numSteps); i++)\n  \t{\n  \t\tif((null == aw1) || (null == aw2))\n  \t\t \treturn false;\n  \t\t \t\n  \t\tif(!aw1.deepEquals(aw2))\n  \t\t\treturn false;\n  \t\t\n  \t\taw1 = aw1.getNextWalker();\n  \t\taw2 = aw2.getNextWalker();\n  \t}\n  \t\n  \tassertion((null != aw1) || (null != aw2), \"Total match is incorrect!\");\n  \t\n  \treturn true;\n  }\n  \n  /**\n   * For the reduction of location path parts, create a list of all \n   * the multistep paths with more than one step, sorted by the \n   * number of steps, with the most steps occuring earlier in the list.\n   * If the list is only one member, don't bother returning it.\n   * \n   * @param paths Vector of ExpressionOwner objects, which may contain null entries. \n   *              The ExpressionOwner objects must own LocPathIterator objects.\n   * @return null if no multipart paths are found or the list is only of length 1, \n   * otherwise the first MultistepExprHolder in a linked list of these objects.\n   */\n  protected MultistepExprHolder createMultistepExprList(Vector paths)\n  {\n  \tMultistepExprHolder first = null;\n  \tint n = paths.size();\n  \tfor(int i = 0; i < n; i++)\n  \t{\n  \t\tExpressionOwner eo = (ExpressionOwner)paths.elementAt(i);\n  \t\tif(null == eo)\n  \t\t\tcontinue;\n  \t\t\t\n  \t\tLocPathIterator lpi = (LocPathIterator)eo.getExpression();\n  \t\tint numPaths = countSteps(lpi);\n  \t\tif(numPaths > 1)\n  \t\t{\n  \t\t\tif(null == first)\n  \t\t\t\tfirst = new MultistepExprHolder(eo, numPaths, null);\n  \t\t\telse\n  \t\t\t\tfirst = first.addInSortedOrder(eo, numPaths);\n  \t\t}\n  \t}\n  \t\n  \tif((null == first) || (first.getLength() <= 1))\n  \t\treturn null;\n  \telse\n  \t\treturn first;\n  }\n  \n  /**\n   * Look through the vector from start point, looking for redundant occurances.\n   * When one or more are found, create a psuedo variable declaration, insert \n   * it into the stylesheet, and replace the occurance with a reference to \n   * the psuedo variable.  When a redundent variable is found, it's slot in \n   * the vector will be replaced by null.\n   * \n   * @param start The position to start looking in the vector.\n   * @param firstOccuranceIndex The position of firstOccuranceOwner.\n   * @param firstOccuranceOwner The owner of the expression we are looking for.\n   * @param psuedoVarRecipient Where to put the psuedo variables.\n   * \n   * @return The number of expression occurances that were modified.\n   */\n  protected int findAndEliminateRedundant(int start, int firstOccuranceIndex,\n                         ExpressionOwner firstOccuranceOwner, \n                         ElemTemplateElement psuedoVarRecipient,\n                         Vector paths) \n                 throws org.w3c.dom.DOMException \n  {\n\tMultistepExprHolder head = null;\n\tMultistepExprHolder tail = null;\n\tint numPathsFound = 0;\n\tint n = paths.size();\n\t\n\tExpression expr1 = firstOccuranceOwner.getExpression();\n\tif(DEBUG)\n\t\tassertIsLocPathIterator(expr1, firstOccuranceOwner);\n\tboolean isGlobal = (paths == m_absPaths);\n\tLocPathIterator lpi = (LocPathIterator)expr1;\n\tint stepCount = countSteps(lpi);\n\tfor(int j = start; j < n; j++)\n\t{\n\t\tExpressionOwner owner2 = (ExpressionOwner)paths.elementAt(j);\n\t\tif(null != owner2)\n\t\t{\n\t\t\tExpression expr2 = owner2.getExpression();\n\t\t\tboolean isEqual = expr2.deepEquals(lpi);\n\t\t\tif(isEqual)\n\t\t\t{  \t\t\n\t\t\t\tLocPathIterator lpi2  = (LocPathIterator)expr2;\t\t\t\t\n\t\t\t\tif(null == head)\n\t\t\t\t{\n\t\t\t\t\thead = new MultistepExprHolder(firstOccuranceOwner, stepCount, null);\n\t\t\t\t\ttail = head;\n\t\t\t\t\tnumPathsFound++;\n\t\t\t\t}\n\t\t\t\ttail.m_next = new MultistepExprHolder(owner2, stepCount, null);\n\t\t\t\ttail = tail.m_next;\n\t\n\t\t\t\tpaths.setElementAt(null, j);\n\t\t\t\t\n\t\t\t\tnumPathsFound++;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tif((0 == numPathsFound) && isGlobal)\n\t{\n      head = new MultistepExprHolder(firstOccuranceOwner, stepCount, null);\n      numPathsFound++;\n\t}\n\t\n\tif(null != head)\n\t{\n\t\tElemTemplateElement root = isGlobal ? psuedoVarRecipient : findCommonAncestor(head);\n\t\tLocPathIterator sharedIter = (LocPathIterator)head.m_exprOwner.getExpression();\n\t\tElemVariable var = createPseudoVarDecl(root, sharedIter, isGlobal);\n\t\tif(DIAGNOSE_MULTISTEPLIST)\n\t\t\tSystem.err.println(\"Created var: \"+var.getName()+(isGlobal ? \"(Global)\" : \"\"));\n\t\tQName uniquePseudoVarName = var.getName();\n\t\twhile(null != head)\n\t\t{\n\t\t\tExpressionOwner owner = head.m_exprOwner;\t\n\t\t\tif(DIAGNOSE_MULTISTEPLIST)\n\t\t\t\tdiagnoseLineNumber(owner.getExpression());\n\t\t\tchangeToVarRef(uniquePseudoVarName, owner, paths, root);\n\t\t\thead = head.m_next;\n\t\t}\n\t\tpaths.setElementAt(var.getSelect(), firstOccuranceIndex);\n\t}\n\t\n\treturn numPathsFound;\n  } \n  \n  /**\n   * To be removed.\n   */\n  protected int oldFindAndEliminateRedundant(int start, int firstOccuranceIndex,\n                         ExpressionOwner firstOccuranceOwner, \n                         ElemTemplateElement psuedoVarRecipient,\n                         Vector paths) \n                 throws org.w3c.dom.DOMException \n  {\n\tQName uniquePseudoVarName = null;\n\tboolean foundFirst = false;\n\tint numPathsFound = 0;\n\tint n = paths.size();\n\tExpression expr1 = firstOccuranceOwner.getExpression();\n\tif(DEBUG)\n\t\tassertIsLocPathIterator(expr1, firstOccuranceOwner);\n\tboolean isGlobal = (paths == m_absPaths);\n\tLocPathIterator lpi = (LocPathIterator)expr1;\n\tfor(int j = start; j < n; j++)\n\t{\n\t\tExpressionOwner owner2 = (ExpressionOwner)paths.elementAt(j);\n\t\tif(null != owner2)\n\t\t{\n\t\t\tExpression expr2 = owner2.getExpression();\n\t\t\tboolean isEqual = expr2.deepEquals(lpi);\n\t\t\tif(isEqual)\n\t\t\t{  \t\t\n\t\t\t\tLocPathIterator lpi2  = (LocPathIterator)expr2;\t\t\t\t\n\t\t\t\tif(!foundFirst)\n\t\t\t\t{\n\t\t\t\t\tfoundFirst = true;\n\t\t\t\t    ElemVariable var = createPseudoVarDecl(psuedoVarRecipient, lpi, isGlobal);\n\t\t\t\t    if(null == var)\n\t\t\t\t    \treturn 0;\n\t\t\t\t    uniquePseudoVarName = var.getName();\n\t\n\t\t\t\t\tchangeToVarRef(uniquePseudoVarName, firstOccuranceOwner, \n\t\t\t\t\t               paths, psuedoVarRecipient);\n\t\t\t\t\t               \n\t\t\t\t\tpaths.setElementAt(var.getSelect(), firstOccuranceIndex);\n\t\t\t\t\tnumPathsFound++;\n\t\t\t\t}\n\t\n\t\t\t\tchangeToVarRef(uniquePseudoVarName, owner2, paths, psuedoVarRecipient);\n\t\n\t\t\t\tpaths.setElementAt(null, j);\n\t\t\t\t\n\t\t\t\tnumPathsFound++;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tif((0 == numPathsFound) && (paths == m_absPaths))\n\t{\n      ElemVariable var = createPseudoVarDecl(psuedoVarRecipient, lpi, true);\n      if(null == var)\n        return 0;\n\t  uniquePseudoVarName = var.getName();\n      changeToVarRef(uniquePseudoVarName, firstOccuranceOwner, paths, psuedoVarRecipient);\n      paths.setElementAt(var.getSelect(), firstOccuranceIndex);\n      numPathsFound++;\n\t}\n\treturn numPathsFound;\n  }\n  \n  /**\n   * Count the steps in a given location path.\n   * \n   * @param lpi The location path iterator that owns the steps.\n   * @return The number of steps in the given location path.\n   */\n  protected int countSteps(LocPathIterator lpi)\n  {\n  \tif(lpi instanceof WalkingIterator)\n  \t{\n  \t\tWalkingIterator wi = (WalkingIterator)lpi;\n  \t\tAxesWalker aw = wi.getFirstWalker();\n  \t\tint count = 0;\n  \t\twhile(null != aw)\n  \t\t{\n  \t\t\tcount++;\n  \t\t\taw = aw.getNextWalker();\n  \t\t}\n  \t\treturn count;\n  \t}\n  \telse\n  \t\treturn 1;\n  }\n  \n  /**\n   * Change the expression owned by the owner argument to a variable reference \n   * of the given name.\n   * \n   * Warning: For global vars, this function relies on the variable declaration \n   * to which it refers having been added just prior to this function being called,\n   * so that the reference index can be determined from the size of the global variables \n   * list minus one.\n   * \n   * @param varName The name of the variable which will be referenced.\n   * @param owner The owner of the expression which will be replaced by a variable ref.\n   * @param paths The paths list that the iterator came from, mainly to determine\n   *              if this is a local or global reduction.\n   * @param psuedoVarRecipient The element within whose scope the variable is \n   *                           being inserted, possibly a StylesheetRoot.\n   */\n  protected void changeToVarRef(QName varName, ExpressionOwner owner, \n                                Vector paths, ElemTemplateElement psuedoVarRecipient) \n  {\n\tVariable varRef = (paths == m_absPaths) ? new VariableSafeAbsRef() : new Variable();\n\tvarRef.setQName(varName);\n\tif(paths == m_absPaths)\n\t{\n\t\tStylesheetRoot root = (StylesheetRoot)psuedoVarRecipient;\n\t\tVector globalVars = root.getVariablesAndParamsComposed();\n\t\tvarRef.setIndex(globalVars.size()-1);\n\t\tvarRef.setIsGlobal(true);\n\t}\n\towner.setExpression(varRef);\n  }\n   \n  private synchronized static int getPseudoVarID(){\n      return m_uniquePseudoVarID++; \n  }\n  \n  /**\n   * Create a psuedo variable reference that will represent the \n   * shared redundent XPath, and add it to the stylesheet.\n   * \n   * @param psuedoVarRecipient The broadest scope of where the variable \n   * should be inserted, usually an xsl:template or xsl:for-each.\n   * @param lpi The LocationPathIterator that the variable should represent.\n   * @param isGlobal true if the paths are global.\n   * @return The new psuedo var element.\n   */\n  protected ElemVariable createPseudoVarDecl(\n      ElemTemplateElement psuedoVarRecipient,\n      LocPathIterator lpi, boolean isGlobal)\n      throws org.w3c.dom.DOMException\n  {\n    QName uniquePseudoVarName = new QName (PSUEDOVARNAMESPACE, \"#\"+getPseudoVarID());\n  \t\t\n  \tif(isGlobal)\n  \t{\n  \t  return createGlobalPseudoVarDecl(uniquePseudoVarName, \n  \t                                  (StylesheetRoot)psuedoVarRecipient, lpi);\n  \t}\n  \telse\t\t\t\t\t\t\n      return createLocalPseudoVarDecl(uniquePseudoVarName, psuedoVarRecipient, lpi);\n  }\n  \n  /**\n   * Create a psuedo variable reference that will represent the \n   * shared redundent XPath, for a local reduction.\n   * \n   * @param uniquePseudoVarName The name of the new variable.\n   * @param stylesheetRoot The broadest scope of where the variable \n   *        should be inserted, which must be a StylesheetRoot element in this case.\n   * @param lpi The LocationPathIterator that the variable should represent.\n   * @return null if the decl was not created, otherwise the new Pseudo var  \n   *              element.\n   */\n  protected ElemVariable createGlobalPseudoVarDecl(QName uniquePseudoVarName,\n                                           StylesheetRoot stylesheetRoot, \n                                           LocPathIterator lpi) \n        throws org.w3c.dom.DOMException \n  {\n  \tElemVariable psuedoVar = new ElemVariable();\n  \tpsuedoVar.setIsTopLevel(true);\n\tXPath xpath = new XPath(lpi);\n\tpsuedoVar.setSelect(xpath);\n\tpsuedoVar.setName(uniquePseudoVarName);\n\t\n\tVector globalVars = stylesheetRoot.getVariablesAndParamsComposed();\n\tpsuedoVar.setIndex(globalVars.size());\n\tglobalVars.addElement(psuedoVar);\n\treturn psuedoVar;\n  }\n\n  \n  \n\n  /**\n   * Create a psuedo variable reference that will represent the \n   * shared redundent XPath, for a local reduction.\n   * \n   * @param uniquePseudoVarName The name of the new variable.\n   * @param psuedoVarRecipient The broadest scope of where the variable \n   * should be inserted, usually an xsl:template or xsl:for-each.\n   * @param lpi The LocationPathIterator that the variable should represent.\n   * @return null if the decl was not created, otherwise the new Pseudo var  \n   *              element.\n   */\n  protected ElemVariable createLocalPseudoVarDecl(QName uniquePseudoVarName,\n                                           ElemTemplateElement psuedoVarRecipient, \n                                           LocPathIterator lpi) \n        throws org.w3c.dom.DOMException \n  {\n\t\tElemVariable psuedoVar = new ElemVariablePsuedo();\n\t\t\n\t\tXPath xpath = new XPath(lpi);\n\t\tpsuedoVar.setSelect(xpath);\n\t\tpsuedoVar.setName(uniquePseudoVarName);\n\n\t\tElemVariable var = addVarDeclToElem(psuedoVarRecipient, lpi, psuedoVar);\n\t\t\n\t\tlpi.exprSetParent(var);\n\t\t\n\t\treturn var;\n  }\n\n  /**\n   * Add the given variable to the psuedoVarRecipient.\n   */\n  protected ElemVariable addVarDeclToElem(\n    ElemTemplateElement psuedoVarRecipient,\n    LocPathIterator lpi,\n    ElemVariable psuedoVar)\n    throws org.w3c.dom.DOMException\n  {\n    ElemTemplateElement ete = psuedoVarRecipient.getFirstChildElem();\n\n    lpi.callVisitors(null, m_varNameCollector);\n\n    if (m_varNameCollector.getVarCount() > 0)\n    {\n      ElemTemplateElement baseElem = getElemFromExpression(lpi);\n      ElemVariable varElem = getPrevVariableElem(baseElem);\n      while (null != varElem)\n      {\n        if (m_varNameCollector.doesOccur(varElem.getName()))\n          {\n          psuedoVarRecipient = varElem.getParentElem();\n          ete = varElem.getNextSiblingElem();\n          break;\n        }\n        varElem = getPrevVariableElem(varElem);\n      }\n    }\n\n    if ((null != ete) && (Constants.ELEMNAME_PARAMVARIABLE == ete.getXSLToken()))\n    {\n      if(isParam(lpi))\n        return null;\n\n      while (null != ete)\n      {\n        ete = ete.getNextSiblingElem();\n        if ((null != ete) && Constants.ELEMNAME_PARAMVARIABLE != ete.getXSLToken())\n            break;\n      }\n    }\n    psuedoVarRecipient.insertBefore(psuedoVar, ete);\n    m_varNameCollector.reset();\n    return psuedoVar;\n  }\n    \n  /**\n   * Tell if the expr param is contained within an xsl:param.\n   */\n  protected boolean isParam(ExpressionNode expr)\n  {\n  \twhile(null != expr)\n  \t{\n  \t\tif(expr instanceof ElemTemplateElement)\n  \t\t\tbreak;\n  \t\texpr = expr.exprGetParent();\n  \t}\n  \tif(null != expr)\n  \t{\n  \t\tElemTemplateElement ete = (ElemTemplateElement)expr;\n  \t\twhile(null != ete)\n  \t\t{\n  \t\t\tint type = ete.getXSLToken();\n  \t\t\tswitch(type)\n  \t\t\t{\n  \t\t\t\tcase Constants.ELEMNAME_PARAMVARIABLE:\n  \t\t\t\t\treturn true;\n  \t\t\t\tcase Constants.ELEMNAME_TEMPLATE:\n  \t\t\t\tcase Constants.ELEMNAME_STYLESHEET:\n  \t\t\t\t\treturn false;\n  \t\t\t}\n  \t\t\tete = ete.getParentElem();\n  \t\t}\n  \t}\n  \treturn false;\n  \t\n  }\n  \n  /**\n   * Find the previous occurance of a xsl:variable.  Stop \n   * the search when a xsl:for-each, xsl:template, or xsl:stylesheet is \n   * encountered.\n   * \n   * @param elem Should be non-null template element.\n   * @return The first previous occurance of an xsl:variable or xsl:param, \n   * or null if none is found.\n   */\n  protected ElemVariable getPrevVariableElem(ElemTemplateElement elem)\n  {\n  \twhile(null != (elem = getPrevElementWithinContext(elem)))\n  \t{\n  \t\tint type = elem.getXSLToken();\n  \t\t\t\n  \t\tif((Constants.ELEMNAME_VARIABLE == type) ||\n  \t\t   (Constants.ELEMNAME_PARAMVARIABLE == type))\n  \t\t{\n  \t\t\treturn (ElemVariable)elem;\n  \t\t}\n  \t}\n  \treturn null;\n  }\n  \n  /**\n   * Get the previous sibling or parent of the given template, stopping at \n   * xsl:for-each, xsl:template, or xsl:stylesheet.\n   * \n   * @param elem Should be non-null template element.\n   * @return previous sibling or parent, or null if previous is xsl:for-each, \n   * xsl:template, or xsl:stylesheet.\n   */\n  protected ElemTemplateElement getPrevElementWithinContext(ElemTemplateElement elem)\n  {\n  \tElemTemplateElement prev = elem.getPreviousSiblingElem();\n  \tif(null == prev)\n  \t\tprev = elem.getParentElem();\n  \tif(null != prev)\n  \t{\n  \t  int type = prev.getXSLToken();\n  \t  if((Constants.ELEMNAME_FOREACH == type) || \n  \t     (Constants.ELEMNAME_TEMPLATE == type) ||\n  \t     (Constants.ELEMNAME_STYLESHEET == type))\n  \t  {\n  \t  \tprev = null;\n  \t  }\n  \t}\n  \treturn prev;\n  }\n  \n  /**\n   * From an XPath expression component, get the ElemTemplateElement \n   * owner.\n   * \n   * @param expr Should be static expression with proper parentage.\n   * @return Valid ElemTemplateElement, or throw a runtime exception \n   * if it is not found.\n   */\n  protected ElemTemplateElement getElemFromExpression(Expression expr)\n  {\n  \tExpressionNode parent = expr.exprGetParent();\n  \twhile(null != parent)\n  \t{\n  \t\tif(parent instanceof ElemTemplateElement)\n  \t\t\treturn (ElemTemplateElement)parent;\n  \t\tparent = parent.exprGetParent();\n  \t}\n  \tthrow new RuntimeException(XSLMessages.createMessage(XSLTErrorResources.ER_ASSERT_NO_TEMPLATE_PARENT, null));\n  }\n      \n  /**\n   * Tell if the given LocPathIterator is relative to an absolute path, i.e. \n   * in not dependent on the context.\n   * \n   * @return true if the LocPathIterator is not dependent on the context node.\n   */\n  public boolean isAbsolute(LocPathIterator path)\n  {\n  \tint analysis = path.getAnalysisBits();\n    boolean isAbs = (WalkerFactory.isSet(analysis, WalkerFactory.BIT_ROOT) || \n           WalkerFactory.isSet(analysis, WalkerFactory.BIT_ANY_DESCENDANT_FROM_ROOT));\n    if(isAbs)\n    {\n    \tisAbs = m_absPathChecker.checkAbsolute(path);\n    }\n    return isAbs;\n  }\n\n\n  /**\n   * Visit a LocationPath.\n   * @param owner The owner of the expression, to which the expression can \n   *              be reset if rewriting takes place.\n   * @param path The LocationPath object.\n   * @return true if the sub expressions should be traversed.\n   */\n  public boolean visitLocationPath(ExpressionOwner owner, LocPathIterator path)\n  {\n  \tif(path instanceof SelfIteratorNoPredicate)\n  \t{\n  \t\treturn true;\n  \t}\n  \telse if(path instanceof WalkingIterator)\n  \t{\n  \t\tWalkingIterator wi = (WalkingIterator)path;\n  \t\tAxesWalker aw = wi.getFirstWalker();\n  \t\tif((aw instanceof FilterExprWalker) && (null == aw.getNextWalker()))\n  \t\t{\n  \t\t\tFilterExprWalker few = (FilterExprWalker)aw;\n  \t\t\tExpression exp = few.getInnerExpression();\n  \t\t\tif(exp instanceof Variable)\n  \t\t\t\treturn true;\n  \t\t}\n  \t}\n\n    if (isAbsolute(path) && (null != m_absPaths))\n    {\n      if(DEBUG)\n        validateNewAddition(m_absPaths, owner, path);\n      m_absPaths.addElement(owner);\n    }\n    else if (m_isSameContext && (null != m_paths))\n    {\n      if(DEBUG)\n        validateNewAddition(m_paths, owner, path);\n      m_paths.addElement(owner);\n    }\n\n    return true;\n  }\n\n  /**\n   * Visit a predicate within a location path.  Note that there isn't a \n   * proper unique component for predicates, and that the expression will \n   * be called also for whatever type Expression is.\n   * \n   * @param owner The owner of the expression, to which the expression can \n   *              be reset if rewriting takes place.\n   * @param pred The predicate object.\n   * @return true if the sub expressions should be traversed.\n   */\n  public boolean visitPredicate(ExpressionOwner owner, Expression pred)\n  {\n    boolean savedIsSame = m_isSameContext;\n    m_isSameContext = false;\n\n    pred.callVisitors(owner, this);\n\n    m_isSameContext = savedIsSame;\n\n    return false;\n  }\n  \n  /**\n   * Visit an XSLT top-level instruction.\n   * \n   * @param elem The xsl instruction element object.\n   * @return true if the sub expressions should be traversed.\n   */\n   public boolean visitTopLevelInstruction(ElemTemplateElement elem)\n   {\n     int type = elem.getXSLToken();\n     switch(type)\n     {\n       case Constants.ELEMNAME_TEMPLATE :\n         return visitInstruction(elem);\n       default:\n         return true;\n     }\n   }\n\n\n  /**\n   * Visit an XSLT instruction.  Any element that isn't called by one \n   * of the other visit methods, will be called by this method.\n   * \n   * @param elem The xsl instruction element object.\n   * @return true if the sub expressions should be traversed.\n   */\n  public boolean visitInstruction(ElemTemplateElement elem)\n  {\n    int type = elem.getXSLToken();\n    switch (type)\n    {\n      case Constants.ELEMNAME_CALLTEMPLATE :\n      case Constants.ELEMNAME_TEMPLATE :\n      case Constants.ELEMNAME_FOREACH :\n        {\n          \n          if(type == Constants.ELEMNAME_FOREACH)\n          {\n            ElemForEach efe = (ElemForEach) elem;\n   \t\t    \n  \t\t    Expression select = efe.getSelect();\n  \t\t    select.callVisitors(efe, this);\n          }\n         \n  \t\t  Vector savedPaths = m_paths;\n  \t\t  m_paths = new Vector();\n  \t\t    \n  \t\t  elem.callChildVisitors(this, false);  \t\t\n  \t\t  eleminateRedundentLocals(elem);\n  \t\t    \n  \t\t  m_paths = savedPaths;\n \n          return false;\n        }\n      case Constants.ELEMNAME_NUMBER :\n      case Constants.ELEMNAME_SORT :\n        boolean savedIsSame = m_isSameContext;\n        m_isSameContext = false;\n        elem.callChildVisitors(this);\n        m_isSameContext = savedIsSame;\n        return false;\n        \n      default :\n        return true;\n    }\n  }\n  \n  \n  /**\n   * Print out to std err the number of paths reduced.\n   */\n  protected void diagnoseNumPaths(Vector paths, int numPathsEliminated,  \n                                  int numUniquePathsEliminated) \n  {\n\t\tif (numPathsEliminated > 0)\n\t\t{ \n\t\t  if(paths == m_paths)\n\t\t  {\n\t\t    System.err.println(\"Eliminated \" + numPathsEliminated + \" total paths!\");\n\t\t    System.err.println(\n\t\t      \"Consolodated \" + numUniquePathsEliminated + \" redundent paths!\");\n\t\t  }\n\t\t  else\n\t\t  {\n\t\t    System.err.println(\"Eliminated \" + numPathsEliminated + \" total global paths!\");\n\t\t    System.err.println(\n\t\t      \"Consolodated \" + numUniquePathsEliminated + \" redundent global paths!\");\n\t\t  }\n\t\t}  \n  }\n\n\n  /**\n   * Assert that the expression is a LocPathIterator, and, if \n   * not, try to give some diagnostic info.\n   */\n  private final void assertIsLocPathIterator(Expression expr1, ExpressionOwner eo) \n    throws RuntimeException \n  {\n\t\tif(!(expr1 instanceof LocPathIterator))\n\t\t{\n\t\t\tString errMsg;\n\t\t\tif(expr1 instanceof Variable)\n\t\t\t{\n\t\t\t\terrMsg = \"Programmer's assertion: expr1 not an iterator: \"+\n\t\t\t\t          ((Variable)expr1).getQName();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\terrMsg = \"Programmer's assertion: expr1 not an iterator: \"+\n\t\t\t\t          expr1.getClass().getName();\n\t\t\t}\n\t\t\tthrow new RuntimeException(errMsg + \", \"+\n\t\t\t\t          eo.getClass().getName()+\" \"+\n\t\t\t\t          expr1.exprGetParent());\n\t\t}\n  }\n\n\n  /**\n   * Validate some assumptions about the new LocPathIterator and it's \n   * owner and the state of the list.\n   */\n  private static void validateNewAddition(Vector paths, ExpressionOwner owner, \n                                          LocPathIterator path) \n\t\tthrows RuntimeException \n  {\n  \tassertion(owner.getExpression() == path, \"owner.getExpression() != path!!!\");\n\tint n = paths.size();\n\tfor(int i = 0; i < n; i++)\n\t{\n\t\tExpressionOwner ew = (ExpressionOwner)paths.elementAt(i);\n\t\tassertion(ew != owner, \"duplicate owner on the list!!!\");\n\t\tassertion(ew.getExpression() != path, \"duplicate expression on the list!!!\");\n\t}\n  }\n  \n  /**\n   * Simple assertion.\n   */\n  protected static void assertion(boolean b, String msg)\n  {\n  \tif(!b)\n  \t{\n  \t\tthrow new RuntimeException(XSLMessages.createMessage(XSLTErrorResources.ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR, new Object[]{msg}));\n  \t}\n  }\n  \n  /**\n   * Since we want to sort multistep expressions by length, use \n   * a linked list with elements of type MultistepExprHolder.\n   */\n  class MultistepExprHolder implements Cloneable\n  {\n\tfinal int m_stepCount;\n\tMultistepExprHolder m_next;\n\t\n\t/**\n\t * Clone this object.\n\t */\n\tpublic Object clone()\n\t\tthrows CloneNotSupportedException\n\t{\n\t\treturn super.clone();\n\t}\n\t\n\t/**\n\t * Create a MultistepExprHolder.\n\t * \n\t * @param exprOwner the owner of the expression we are holding.\n\t *                  It must hold a LocationPathIterator.\n\t * @param stepCount The number of steps in the location path.\n\t */\n  \tMultistepExprHolder(ExpressionOwner exprOwner, int stepCount, MultistepExprHolder next)\n  \t{\n  \t\tm_exprOwner = exprOwner;\n  \t\tassertion(null != m_exprOwner, \"exprOwner can not be null!\");\n  \t\tm_stepCount = stepCount;\n  \t\tm_next = next;\n  \t}\n\t\n\t/**\n\t * Add a new MultistepExprHolder in sorted order in the list.\n\t * \n\t * @param exprOwner the owner of the expression we are holding.\n\t *                  It must hold a LocationPathIterator.\n\t * @param stepCount The number of steps in the location path.\n\t * @return The new head of the linked list.\n\t */\n\tMultistepExprHolder addInSortedOrder(ExpressionOwner exprOwner, int stepCount)\n\t{\n\t\tMultistepExprHolder first = this;\n\t\tMultistepExprHolder next = this;\n\t\tMultistepExprHolder prev = null;\n\t\twhile(null != next)\n\t\t{\n\t\t\tif(stepCount >= next.m_stepCount)\n\t\t\t{\n\t\t\t\tMultistepExprHolder newholder = new MultistepExprHolder(exprOwner, stepCount, next);\n\t\t\t\tif(null == prev)\n\t\t\t\t\tfirst = newholder;\n\t\t\t\telse\n\t\t\t\t\tprev.m_next = newholder;\n\t\t\t\t\t\n\t\t\t\treturn first;\n\t\t\t}\n\t\t\tprev = next;\n\t\t\tnext = next.m_next;\n\t\t}\n\t\t\n\t\tprev.m_next = new MultistepExprHolder(exprOwner, stepCount, null);\n\t\treturn first;\n\t}\n\t\n\t/**\n\t * Remove the given element from the list.  'this' should \n\t * be the head of the list.  If the item to be removed is not \n\t * found, an assertion will be made.\n\t * \n\t * @param itemToRemove The item to remove from the list.\n\t * @return The head of the list, which may have changed if itemToRemove \n\t * is the same as this element.  Null if the item to remove is the \n\t * only item in the list.\n\t */\n\tMultistepExprHolder unlink(MultistepExprHolder itemToRemove)\n\t{\n\t\tMultistepExprHolder first = this;\n\t\tMultistepExprHolder next = this;\n\t\tMultistepExprHolder prev = null;\n\t\twhile(null != next)\n\t\t{\n\t\t\tif(next == itemToRemove)\n\t\t\t{\n\t\t\t\tif(null == prev)\n\t\t\t\t\tfirst = next.m_next;\n\t\t\t\telse\n\t\t\t\t\tprev.m_next = next.m_next;\n\t\t\t\t\n\t\t\t\tnext.m_next = null;\n\t\t\t\t\t\n\t\t\t\treturn first;\n\t\t\t}\n\t\t\tprev = next;\n\t\t\tnext = next.m_next;\n\t\t}\n\t\t\n\t\tassertion(false, \"unlink failed!!!\");\n\t\treturn null;\n\t}\n\t\t\n\t/**\n\t * Get the number of linked list items.\n\t */\n\tint getLength()\n\t{\n\t\tint count = 0;\n\t\tMultistepExprHolder next = this;\n\t\twhile(null != next)\n\t\t{\n\t\t\tcount++;\n\t\t\tnext = next.m_next;\n\t\t}\n\t\treturn count;\n\t}\n\t\n    /**\n     * Print diagnostics out for the multistep list.\n     */\n    protected void diagnose()\n    {\n      System.err.print(\"Found multistep iterators: \" + this.getLength() + \"  \");\n      MultistepExprHolder next = this;\n      while (null != next)\n      {\n        System.err.print(\"\" + next.m_stepCount);\n        next = next.m_next;\n        if (null != next)\n              System.err.print(\", \");\n      }\n      System.err.println();", "functions": [{"function_name": "eleminateRedundentLocals", "code": "  public void eleminateRedundentLocals(ElemTemplateElement psuedoVarRecipient)\n  {\n    eleminateRedundent(psuedoVarRecipient, m_paths);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "eleminateRedundentGlobals", "code": "  public void eleminateRedundentGlobals(StylesheetRoot stylesheet)\n  {\n    eleminateRedundent(stylesheet, m_absPaths);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "eleminateRedundent", "code": "  protected void eleminateRedundent(ElemTemplateElement psuedoVarRecipient, Vector paths)\n  {\n    int n = paths.size();\n    int numPathsEliminated = 0;\n    int numUniquePathsEliminated = 0;\n    for (int i = 0; i < n; i++)\n    {\n      ExpressionOwner owner = (ExpressionOwner) paths.elementAt(i);\n      if (null != owner)\n      {\n        int found = findAndEliminateRedundant(i + 1, i, owner, psuedoVarRecipient, paths);\n        if (found > 0)\n                  numUniquePathsEliminated++;\n        numPathsEliminated += found;\n      }\n    }\n    \n    eleminateSharedPartialPaths(psuedoVarRecipient, paths);\n    \n    if(DIAGNOSE_NUM_PATHS_REDUCED)\n\t\tdiagnoseNumPaths(paths, numPathsEliminated, numUniquePathsEliminated);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 10], [2, 11], [2, 12], [3, 13], [4, 14], [5, 15], [11, 16], [2, 17], [11, 18], [11, 19], [16, 20], [11, 21], [18, 22], [12, 23], [22, 24], [19, 25], [25, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 1], [11, 2], [12, 2], [13, 3], [14, 4], [15, 5], [16, 11], [17, 2], [18, 11], [19, 11], [20, 16], [21, 11], [22, 18], [23, 12], [24, 22], [25, 19], [26, 25], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "eleminateSharedPartialPaths", "code": "  protected void eleminateSharedPartialPaths(ElemTemplateElement psuedoVarRecipient, Vector paths)\n  {\n  \tMultistepExprHolder list = createMultistepExprList(paths);\n  \tif(null != list)\n  \t{\n  \t\tif(DIAGNOSE_MULTISTEPLIST)\n        \tlist.diagnose();\n        \t\n        boolean isGlobal = (paths == m_absPaths);\n        \t\n        int longestStepsCount = list.m_stepCount;\n    \tfor (int i = longestStepsCount-1; i >= 1; i--)\n    \t{\n    \t\tMultistepExprHolder next = list;\n        \twhile(null != next)\n        \t{\n        \t\tif(next.m_stepCount < i)\n        \t\t\tbreak;\n\t\t\t\tlist = matchAndEliminatePartialPaths(next, list, isGlobal, i, psuedoVarRecipient);\n\t\t\t\tnext = next.m_next;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [2, 11], [6, 12], [6, 13], [6, 14], [12, 15], [8, 16], [9, 17], [13, 18], [6, 19], [13, 20], [18, 21], [19, 22], [13, 23], [13, 24], [20, 25], [20, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 2], [12, 6], [13, 6], [14, 6], [15, 12], [16, 8], [17, 9], [18, 13], [19, 6], [20, 13], [21, 18], [22, 19], [23, 13], [24, 13], [25, 20], [26, 20], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "matchAndEliminatePartialPaths", "code": "  protected MultistepExprHolder matchAndEliminatePartialPaths(MultistepExprHolder testee, \n                                               MultistepExprHolder head,\n                                               boolean isGlobal,\n                                               int lengthToTest,\n                                               ElemTemplateElement varScope)\n  {  \t\n  \tif(null == testee.m_exprOwner)\n  \t\treturn head;\n  \t\t\n    WalkingIterator iter1 = (WalkingIterator) testee.m_exprOwner.getExpression();\n    if(partialIsVariable(testee, lengthToTest))\n    \treturn head;\n    MultistepExprHolder matchedPaths = null;\n    MultistepExprHolder matchedPathsTail = null;\n    MultistepExprHolder meh = head;\n    while( null != meh)\n    {\n      if ((meh != testee) && (null != meh.m_exprOwner))\n      {\n\t      WalkingIterator iter2 = (WalkingIterator) meh.m_exprOwner.getExpression();\n\t      if (stepsEqual(iter1, iter2, lengthToTest))\n\t      {\n\t        if (null == matchedPaths)\n\t        {\n\t          try\n\t          {\n\t          \tmatchedPaths = (MultistepExprHolder)testee.clone();\n\t          }\n\t          catch(CloneNotSupportedException cnse){}\n\t          matchedPathsTail = matchedPaths;\n\t          matchedPathsTail.m_next = null;\n\t        }\n\t       \n\t        try\n\t        {\n\t          matchedPathsTail.m_next = (MultistepExprHolder)meh.clone();\n\t        }\n\t        catch(CloneNotSupportedException cnse){}\n\t        matchedPathsTail = matchedPathsTail.m_next;\n\t        matchedPathsTail.m_next = null;\n\t      }\n      }\n      meh = meh.m_next;\n    }\n    \t\n\tint matchCount = 0;\n\tif(null != matchedPaths)\n\t{\n\t\tElemTemplateElement root = isGlobal ? varScope : findCommonAncestor(matchedPaths);\n\t\tWalkingIterator sharedIter = (WalkingIterator)matchedPaths.m_exprOwner.getExpression();\n\t\tWalkingIterator newIter = createIteratorFromSteps(sharedIter, lengthToTest);\n\t\tElemVariable var = createPseudoVarDecl(root, newIter, isGlobal);\n\t\tif(DIAGNOSE_MULTISTEPLIST)\n\t\t\tSystem.err.println(\"Created var: \"+var.getName()+(isGlobal ? \"(Global)\" : \"\"));\n\t\twhile(null != matchedPaths)\n\t\t{\n\t\t\tExpressionOwner owner = matchedPaths.m_exprOwner;\n\t\t\tWalkingIterator iter = (WalkingIterator)owner.getExpression();\n\t\t\t\n\t\t\tif(DIAGNOSE_MULTISTEPLIST)\n\t\t\t\tdiagnoseLineNumber(iter);\n\t\t\t\n\t\t\tLocPathIterator newIter2 = \n\t\t\t    changePartToRef(var.getName(), iter, lengthToTest, isGlobal);\n\t\t\towner.setExpression(newIter2);\n\t\t\t\n\t\t\tmatchedPaths = matchedPaths.m_next;\n\t\t}\n\t}\n\t\n\tif(DIAGNOSE_MULTISTEPLIST)\n\t\tdiagnoseMultistepList(matchCount, lengthToTest, isGlobal);\n    return head;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "CALL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "COND_EXPR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "TRY", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CATCH", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "TRY", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CATCH", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [3, 17], [5, 18], [9, 19], [9, 20], [11, 21], [11, 22], [2, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [17, 30], [4, 31], [5, 32], [18, 33], [7, 34], [8, 35], [22, 36], [24, 37], [5, 38], [32, 39], [10, 40], [24, 41], [24, 42], [24, 43], [24, 44], [37, 45], [25, 46], [26, 47], [27, 48], [29, 49], [32, 50], [32, 51], [39, 52], [39, 53], [24, 54], [24, 55], [46, 56], [28, 57], [49, 58], [50, 59], [52, 60], [41, 61], [42, 62], [56, 63], [56, 64], [50, 65], [50, 66], [61, 67], [43, 68], [63, 69], [63, 70], [64, 71], [64, 72], [50, 73], [50, 74], [65, 75], [66, 76], [51, 77], [73, 78], [65, 79], [66, 80], [76, 81], [66, 82], [66, 83], [80, 84], [79, 85], [82, 86], [80, 87], [87, 88], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 3], [18, 5], [19, 9], [20, 9], [21, 11], [22, 11], [23, 2], [24, 3], [25, 3], [26, 3], [27, 3], [28, 3], [29, 3], [30, 17], [31, 4], [32, 5], [33, 18], [34, 7], [35, 8], [36, 22], [37, 24], [38, 5], [39, 32], [40, 10], [41, 24], [42, 24], [43, 24], [44, 24], [45, 37], [46, 25], [47, 26], [48, 27], [49, 29], [50, 32], [51, 32], [52, 39], [53, 39], [54, 24], [55, 24], [56, 46], [57, 28], [58, 49], [59, 50], [60, 52], [61, 41], [62, 42], [63, 56], [64, 56], [65, 50], [66, 50], [67, 61], [68, 43], [69, 63], [70, 63], [71, 64], [72, 64], [73, 50], [74, 50], [75, 65], [76, 66], [77, 51], [78, 73], [79, 65], [80, 66], [81, 76], [82, 66], [83, 66], [84, 80], [85, 79], [86, 82], [87, 80], [88, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "partialIsVariable", "code": "  boolean partialIsVariable(MultistepExprHolder testee, int lengthToTest)\n  {\n  \tif(1 == lengthToTest)\n  \t{\n  \t\tWalkingIterator wi = (WalkingIterator)testee.m_exprOwner.getExpression();\n  \t\tif(wi.getFirstWalker() instanceof FilterExprWalker)\n  \t\t\treturn true;\n  \t}\n  \treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [7, 10], [7, 11], [10, 12], [11, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 7], [11, 7], [12, 10], [13, 11], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "diagnoseLineNumber", "code": "  protected void diagnoseLineNumber(Expression expr)\n  {\n    ElemTemplateElement e = getElemFromExpression(expr);\n    System.err.println(\"   \" + e.getSystemId() + \" Line \" + e.getLineNumber());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [4, 6], [4, 7], [7, 8], [7, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 4], [7, 4], [8, 7], [9, 7], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "findCommonAncestor", "code": "  protected ElemTemplateElement findCommonAncestor(MultistepExprHolder head)\n  {\n  \tint numExprs = head.getLength();\n    ElemTemplateElement[] elems = new ElemTemplateElement[numExprs];\n    int[] ancestorCounts = new int[numExprs];\n    \n  \tMultistepExprHolder next = head;\n  \tint shortestAncestorCount = 10000;\n  \tfor(int i = 0; i < numExprs; i++)\n  \t{\n  \t\tElemTemplateElement elem = \n  \t\t\tgetElemFromExpression(next.m_exprOwner.getExpression());\n  \t\telems[i] = elem;\n  \t\tint numAncestors = countAncestors(elem);\n  \t\tancestorCounts[i] = numAncestors;\n  \t\tif(numAncestors < shortestAncestorCount)\n  \t\t{\n  \t\t\tshortestAncestorCount = numAncestors;\n  \t\t}\n  \t\tnext = next.m_next;\n  \t}\n  \t\n  \tfor(int i = 0; i < numExprs; i++)\n  \t{\n  \t\tif(ancestorCounts[i] > shortestAncestorCount)\n  \t\t{\n  \t\t\tint numStepCorrection = ancestorCounts[i] - shortestAncestorCount;\n  \t\t\tfor(int j = 0; j < numStepCorrection; j++)\n  \t\t\t{\n  \t\t\t\telems[i] = elems[i].getParentElem();\n  \t\t\t}\n  \t\t}\n  \t}\n  \t\n  \tElemTemplateElement first = null;\n  \twhile(shortestAncestorCount-- >= 0)\n  \t{\n  \t\tboolean areEqual = true;\n  \t\tfirst = elems[0];\n  \t\tfor(int i = 1; i < numExprs; i++)\n  \t\t{\n  \t\t\tif(first != elems[i])\n  \t\t\t{\n  \t\t\t\tareEqual = false;\n  \t\t\t\tbreak;\n  \t\t\t}\n  \t\t}\n  \t\tif(areEqual && isNotSameAsOwner(head, first) && first.canAcceptVariables())\n  \t\t{\n  \t\t\tif(DIAGNOSE_MULTISTEPLIST)\n  \t\t\t{\n  \t\t\t\tSystem.err.print(first.getClass().getName());\n  \t\t\t\tSystem.err.println(\" at   \" + first.getSystemId() + \" Line \" + first.getLineNumber());\n  \t\t\t}\n  \t\t\treturn first;\n  \t\t}\n   \t\t\t\n  \t\tfor(int i = 0; i < numExprs; i++)\n  \t\t{\n  \t\t\telems[i] = elems[i].getParentElem();\n  \t\t}\n  \t}\n  \t\n  \tassertion(false, \"Could not find common ancestor!!!\");\n  \treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [2, 14], [4, 15], [5, 16], [13, 17], [13, 18], [2, 19], [2, 20], [2, 21], [2, 22], [14, 23], [3, 24], [4, 25], [5, 26], [5, 27], [5, 28], [6, 29], [10, 30], [19, 31], [20, 32], [21, 33], [2, 34], [25, 35], [4, 36], [5, 37], [26, 38], [5, 39], [5, 40], [5, 41], [20, 42], [20, 43], [32, 44], [32, 45], [21, 46], [22, 47], [25, 48], [25, 49], [27, 50], [28, 51], [19, 52], [19, 53], [45, 54], [46, 55], [21, 56], [48, 57], [26, 58], [51, 59], [46, 60], [34, 61], [49, 62], [52, 63], [43, 64], [43, 65], [46, 66], [48, 67], [48, 68], [64, 69], [65, 70], [66, 71], [69, 72], [69, 73], [70, 74], [67, 75], [73, 76], [73, 77], [77, 78], [77, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 2], [15, 4], [16, 5], [17, 13], [18, 13], [19, 2], [20, 2], [21, 2], [22, 2], [23, 14], [24, 3], [25, 4], [26, 5], [27, 5], [28, 5], [29, 6], [30, 10], [31, 19], [32, 20], [33, 21], [34, 2], [35, 25], [36, 4], [37, 5], [38, 26], [39, 5], [40, 5], [41, 5], [42, 20], [43, 20], [44, 32], [45, 32], [46, 21], [47, 22], [48, 25], [49, 25], [50, 27], [51, 28], [52, 19], [53, 19], [54, 45], [55, 46], [56, 21], [57, 48], [58, 26], [59, 51], [60, 46], [61, 34], [62, 49], [63, 52], [64, 43], [65, 43], [66, 46], [67, 48], [68, 48], [69, 64], [70, 65], [71, 66], [72, 69], [73, 69], [74, 70], [75, 67], [76, 73], [77, 73], [78, 77], [79, 77], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "isNotSameAsOwner", "code": "  protected boolean isNotSameAsOwner(MultistepExprHolder head, ElemTemplateElement ete)\n  {\n  \tMultistepExprHolder next = head;\n  \twhile(null != next)\n  \t{\n  \t\tElemTemplateElement elemOwner = getElemFromExpression(next.m_exprOwner.getExpression());\n  \t\tif(elemOwner == ete)\n  \t\t\treturn false;\n  \t\tnext = next.m_next;\n  \t}\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [7, 10], [2, 11], [8, 12], [8, 13], [12, 14], [9, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 7], [11, 2], [12, 8], [13, 8], [14, 12], [15, 9], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "countAncestors", "code": "  protected int countAncestors(ElemTemplateElement elem)\n  {\n  \tint count = 0;\n  \twhile(null != elem)\n  \t{\n  \t\tcount++;\n  \t\telem = elem.getParentElem();\n  \t}\n  \treturn count;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "diagnoseMultistepList", "code": "  protected void diagnoseMultistepList(\n      int matchCount,\n      int lengthToTest,\n      boolean isGlobal)\n  {\n      if (matchCount > 0)\n        {\n        System.err.print(\n          \"Found multistep matches: \" + matchCount + \", \" + lengthToTest + \" length\");\n        if (isGlobal)\n              System.err.println(\" (global)\");\n        else\n              System.err.println();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [6, 9], [6, 10], [8, 11], [10, 12], [11, 13], [11, 14], [14, 15], [15, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 6], [10, 6], [11, 8], [12, 10], [13, 11], [14, 11], [15, 14], [16, 15], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "changePartToRef", "code": "  protected LocPathIterator changePartToRef(final QName uniquePseudoVarName, WalkingIterator wi, \n                                 final int numSteps, final boolean isGlobal)\n  {\n  \tVariable var = new Variable();\n  \tvar.setQName(uniquePseudoVarName);\n  \tvar.setIsGlobal(isGlobal);\n  \tif(isGlobal)\n  \t{\tElemTemplateElement elem = getElemFromExpression(wi);\n  \t\tStylesheetRoot root = elem.getStylesheetRoot();\n  \t\tVector vars = root.getVariablesAndParamsComposed();\n  \t\tvar.setIndex(vars.size()-1);\n  \t}\n  \t\n  \tAxesWalker walker = wi.getFirstWalker();\n  \tfor(int i = 0; i < numSteps; i++)\n  \t{\n  \t\tassertion(null != walker, \"Walker should not be null!\");\n  \t\twalker = walker.getNextWalker();\n  \t}\n  \t\n  \tif(null != walker)\n  \t{\n  \t\n  \t  FilterExprWalker few = new FilterExprWalker(wi);\n  \t  few.setInnerExpression(var);\n  \t  few.exprSetParent(wi);\n  \t  few.setNextWalker(walker);\n  \t  walker.setPrevWalker(few);\n  \t  wi.setFirstWalker(few);\n  \t  return wi;\n  \t}\n  \telse\n  \t{\n  \t  FilterExprIteratorSimple feis = new FilterExprIteratorSimple(var);\n  \t  feis.exprSetParent(wi.exprGetParent());\n  \t  return feis;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [0, 12], [0, 13], [1, 14], [1, 15], [1, 16], [1, 17], [10, 18], [3, 19], [4, 20], [4, 21], [4, 22], [5, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [2, 30], [2, 31], [2, 32], [4, 33], [24, 34], [15, 35], [17, 36], [30, 37], [31, 38], [31, 39], [33, 40], [20, 41], [21, 42], [22, 43], [39, 44], [40, 45], [40, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 0], [13, 0], [14, 1], [15, 1], [16, 1], [17, 1], [18, 10], [19, 3], [20, 4], [21, 4], [22, 4], [23, 5], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 2], [31, 2], [32, 2], [33, 4], [34, 24], [35, 15], [36, 17], [37, 30], [38, 31], [39, 31], [40, 33], [41, 20], [42, 21], [43, 22], [44, 39], [45, 40], [46, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "createIteratorFromSteps", "code": "  protected WalkingIterator createIteratorFromSteps(final WalkingIterator wi, int numSteps)\n  {\n  \tWalkingIterator newIter = new WalkingIterator(wi.getPrefixResolver());\n  \ttry\n  \t{\n  \t\tAxesWalker walker = (AxesWalker)wi.getFirstWalker().clone();\n  \t\tnewIter.setFirstWalker(walker);\n  \t\twalker.setLocPathIterator(newIter);\n  \t\tfor(int i = 1; i < numSteps; i++)\n  \t\t{\n  \t\t\tAxesWalker next = (AxesWalker)walker.getNextWalker().clone();\n  \t\t\twalker.setNextWalker(next);\n  \t\t\tnext.setLocPathIterator(newIter);\n  \t\t\twalker = next;\n  \t\t}\n  \t\twalker.setNextWalker(null);\n  \t}\n  \tcatch(CloneNotSupportedException cnse)\n  \t{\n  \t\tthrow new WrappedRuntimeException(cnse);\n  \t}\n  \treturn newIter;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "PARAM", "CATCH", "LOOP", "VAR_DECL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [2, 10], [7, 11], [2, 12], [2, 13], [3, 14], [9, 15], [10, 16], [7, 17], [14, 18], [7, 19], [7, 20], [7, 21], [7, 22], [8, 23], [23, 24], [17, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 2], [11, 7], [12, 2], [13, 2], [14, 3], [15, 9], [16, 10], [17, 7], [18, 14], [19, 7], [20, 7], [21, 7], [22, 7], [23, 8], [24, 23], [25, 17], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "stepsEqual", "code": "  protected boolean stepsEqual(WalkingIterator iter1, WalkingIterator iter2, \n                                         int numSteps)\n  {\n  \tAxesWalker aw1 = iter1.getFirstWalker();\n  \tAxesWalker aw2 = iter2.getFirstWalker();\n  \t\n  \tfor(int i = 0; (i < numSteps); i++)\n  \t{\n  \t\tif((null == aw1) || (null == aw2))\n  \t\t \treturn false;\n  \t\t \t\n  \t\tif(!aw1.deepEquals(aw2))\n  \t\t\treturn false;\n  \t\t\n  \t\taw1 = aw1.getNextWalker();\n  \t\taw2 = aw2.getNextWalker();\n  \t}\n  \t\n  \tassertion((null != aw1) || (null != aw2), \"Total match is incorrect!\");\n  \t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "RETURN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [2, 10], [9, 11], [9, 12], [2, 13], [2, 14], [3, 15], [4, 16], [12, 17], [12, 18], [2, 19], [2, 20], [13, 21], [13, 22], [14, 23], [14, 24], [2, 25], [17, 26], [18, 27], [19, 28], [20, 29], [21, 30], [23, 31], [24, 32], [24, 33], [32, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 2], [11, 9], [12, 9], [13, 2], [14, 2], [15, 3], [16, 4], [17, 12], [18, 12], [19, 2], [20, 2], [21, 13], [22, 13], [23, 14], [24, 14], [25, 2], [26, 17], [27, 18], [28, 19], [29, 20], [30, 21], [31, 23], [32, 24], [33, 24], [34, 32], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "createMultistepExprList", "code": "  protected MultistepExprHolder createMultistepExprList(Vector paths)\n  {\n  \tMultistepExprHolder first = null;\n  \tint n = paths.size();\n  \tfor(int i = 0; i < n; i++)\n  \t{\n  \t\tExpressionOwner eo = (ExpressionOwner)paths.elementAt(i);\n  \t\tif(null == eo)\n  \t\t\tcontinue;\n  \t\t\t\n  \t\tLocPathIterator lpi = (LocPathIterator)eo.getExpression();\n  \t\tint numPaths = countSteps(lpi);\n  \t\tif(numPaths > 1)\n  \t\t{\n  \t\t\tif(null == first)\n  \t\t\t\tfirst = new MultistepExprHolder(eo, numPaths, null);\n  \t\t\telse\n  \t\t\t\tfirst = first.addInSortedOrder(eo, numPaths);\n  \t\t}\n  \t}\n  \t\n  \tif((null == first) || (first.getLength() <= 1))\n  \t\treturn null;\n  \telse\n  \t\treturn first;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [7, 10], [8, 11], [8, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [3, 18], [4, 19], [11, 20], [11, 21], [12, 22], [13, 23], [16, 24], [16, 25], [2, 26], [13, 27], [23, 28], [14, 29], [25, 30], [27, 31], [15, 32], [17, 33], [27, 34], [27, 35], [31, 36], [34, 37], [35, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 7], [11, 8], [12, 8], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 3], [19, 4], [20, 11], [21, 11], [22, 12], [23, 13], [24, 16], [25, 16], [26, 2], [27, 13], [28, 23], [29, 14], [30, 25], [31, 27], [32, 15], [33, 17], [34, 27], [35, 27], [36, 31], [37, 34], [38, 35], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "findAndEliminateRedundant", "code": "  protected int findAndEliminateRedundant(int start, int firstOccuranceIndex,\n                         ExpressionOwner firstOccuranceOwner, \n                         ElemTemplateElement psuedoVarRecipient,\n                         Vector paths) \n                 throws org.w3c.dom.DOMException \n  {\n\tMultistepExprHolder head = null;\n\tMultistepExprHolder tail = null;\n\tint numPathsFound = 0;\n\tint n = paths.size();\n\t\n\tExpression expr1 = firstOccuranceOwner.getExpression();\n\tif(DEBUG)\n\t\tassertIsLocPathIterator(expr1, firstOccuranceOwner);\n\tboolean isGlobal = (paths == m_absPaths);\n\tLocPathIterator lpi = (LocPathIterator)expr1;\n\tint stepCount = countSteps(lpi);\n\tfor(int j = start; j < n; j++)\n\t{\n\t\tExpressionOwner owner2 = (ExpressionOwner)paths.elementAt(j);\n\t\tif(null != owner2)\n\t\t{\n\t\t\tExpression expr2 = owner2.getExpression();\n\t\t\tboolean isEqual = expr2.deepEquals(lpi);\n\t\t\tif(isEqual)\n\t\t\t{  \t\t\n\t\t\t\tLocPathIterator lpi2  = (LocPathIterator)expr2;\t\t\t\t\n\t\t\t\tif(null == head)\n\t\t\t\t{\n\t\t\t\t\thead = new MultistepExprHolder(firstOccuranceOwner, stepCount, null);\n\t\t\t\t\ttail = head;\n\t\t\t\t\tnumPathsFound++;\n\t\t\t\t}\n\t\t\t\ttail.m_next = new MultistepExprHolder(owner2, stepCount, null);\n\t\t\t\ttail = tail.m_next;\n\t\n\t\t\t\tpaths.setElementAt(null, j);\n\t\t\t\t\n\t\t\t\tnumPathsFound++;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tif((0 == numPathsFound) && isGlobal)\n\t{\n      head = new MultistepExprHolder(firstOccuranceOwner, stepCount, null);\n      numPathsFound++;\n\t}\n\t\n\tif(null != head)\n\t{\n\t\tElemTemplateElement root = isGlobal ? psuedoVarRecipient : findCommonAncestor(head);\n\t\tLocPathIterator sharedIter = (LocPathIterator)head.m_exprOwner.getExpression();\n\t\tElemVariable var = createPseudoVarDecl(root, sharedIter, isGlobal);\n\t\tif(DIAGNOSE_MULTISTEPLIST)\n\t\t\tSystem.err.println(\"Created var: \"+var.getName()+(isGlobal ? \"(Global)\" : \"\"));\n\t\tQName uniquePseudoVarName = var.getName();\n\t\twhile(null != head)\n\t\t{\n\t\t\tExpressionOwner owner = head.m_exprOwner;\t\n\t\t\tif(DIAGNOSE_MULTISTEPLIST)\n\t\t\t\tdiagnoseLineNumber(owner.getExpression());\n\t\t\tchangeToVarRef(uniquePseudoVarName, owner, paths, root);\n\t\t\thead = head.m_next;\n\t\t}\n\t\tpaths.setElementAt(var.getSelect(), firstOccuranceIndex);\n\t}\n\t\n\treturn numPathsFound;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [2, 19], [3, 20], [4, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [19, 28], [20, 29], [4, 30], [4, 31], [5, 32], [7, 33], [8, 34], [9, 35], [10, 36], [11, 37], [12, 38], [13, 39], [2, 40], [22, 41], [3, 42], [29, 43], [30, 44], [40, 45], [22, 46], [22, 47], [41, 48], [23, 49], [24, 50], [25, 51], [27, 52], [42, 53], [30, 54], [30, 55], [30, 56], [44, 57], [22, 58], [22, 59], [50, 60], [26, 61], [52, 62], [53, 63], [31, 64], [46, 65], [60, 66], [60, 67], [54, 68], [54, 69], [55, 70], [56, 71], [65, 72], [66, 73], [66, 74], [67, 75], [67, 76], [54, 77], [54, 78], [54, 79], [68, 80], [77, 81], [79, 82], [80, 83], [82, 84], [68, 85], [68, 86], [86, 87], [87, 88], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 2], [20, 3], [21, 4], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 19], [29, 20], [30, 4], [31, 4], [32, 5], [33, 7], [34, 8], [35, 9], [36, 10], [37, 11], [38, 12], [39, 13], [40, 2], [41, 22], [42, 3], [43, 29], [44, 30], [45, 40], [46, 22], [47, 22], [48, 41], [49, 23], [50, 24], [51, 25], [52, 27], [53, 42], [54, 30], [55, 30], [56, 30], [57, 44], [58, 22], [59, 22], [60, 50], [61, 26], [62, 52], [63, 53], [64, 31], [65, 46], [66, 60], [67, 60], [68, 54], [69, 54], [70, 55], [71, 56], [72, 65], [73, 66], [74, 66], [75, 67], [76, 67], [77, 54], [78, 54], [79, 54], [80, 68], [81, 77], [82, 79], [83, 80], [84, 82], [85, 68], [86, 68], [87, 86], [88, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "oldFindAndEliminateRedundant", "code": "  protected int oldFindAndEliminateRedundant(int start, int firstOccuranceIndex,\n                         ExpressionOwner firstOccuranceOwner, \n                         ElemTemplateElement psuedoVarRecipient,\n                         Vector paths) \n                 throws org.w3c.dom.DOMException \n  {\n\tQName uniquePseudoVarName = null;\n\tboolean foundFirst = false;\n\tint numPathsFound = 0;\n\tint n = paths.size();\n\tExpression expr1 = firstOccuranceOwner.getExpression();\n\tif(DEBUG)\n\t\tassertIsLocPathIterator(expr1, firstOccuranceOwner);\n\tboolean isGlobal = (paths == m_absPaths);\n\tLocPathIterator lpi = (LocPathIterator)expr1;\n\tfor(int j = start; j < n; j++)\n\t{\n\t\tExpressionOwner owner2 = (ExpressionOwner)paths.elementAt(j);\n\t\tif(null != owner2)\n\t\t{\n\t\t\tExpression expr2 = owner2.getExpression();\n\t\t\tboolean isEqual = expr2.deepEquals(lpi);\n\t\t\tif(isEqual)\n\t\t\t{  \t\t\n\t\t\t\tLocPathIterator lpi2  = (LocPathIterator)expr2;\t\t\t\t\n\t\t\t\tif(!foundFirst)\n\t\t\t\t{\n\t\t\t\t\tfoundFirst = true;\n\t\t\t\t    ElemVariable var = createPseudoVarDecl(psuedoVarRecipient, lpi, isGlobal);\n\t\t\t\t    if(null == var)\n\t\t\t\t    \treturn 0;\n\t\t\t\t    uniquePseudoVarName = var.getName();\n\t\n\t\t\t\t\tchangeToVarRef(uniquePseudoVarName, firstOccuranceOwner, \n\t\t\t\t\t               paths, psuedoVarRecipient);\n\t\t\t\t\t               \n\t\t\t\t\tpaths.setElementAt(var.getSelect(), firstOccuranceIndex);\n\t\t\t\t\tnumPathsFound++;\n\t\t\t\t}\n\t\n\t\t\t\tchangeToVarRef(uniquePseudoVarName, owner2, paths, psuedoVarRecipient);\n\t\n\t\t\t\tpaths.setElementAt(null, j);\n\t\t\t\t\n\t\t\t\tnumPathsFound++;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tif((0 == numPathsFound) && (paths == m_absPaths))\n\t{\n      ElemVariable var = createPseudoVarDecl(psuedoVarRecipient, lpi, true);\n      if(null == var)\n        return 0;\n\t  uniquePseudoVarName = var.getName();\n      changeToVarRef(uniquePseudoVarName, firstOccuranceOwner, paths, psuedoVarRecipient);\n      paths.setElementAt(var.getSelect(), firstOccuranceIndex);\n      numPathsFound++;\n\t}\n\treturn numPathsFound;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [2, 17], [3, 18], [2, 19], [2, 20], [17, 21], [17, 22], [3, 23], [3, 24], [5, 25], [6, 26], [7, 27], [8, 28], [9, 29], [10, 30], [11, 31], [2, 32], [2, 33], [2, 34], [19, 35], [19, 36], [22, 37], [23, 38], [32, 39], [34, 40], [35, 41], [36, 42], [20, 43], [23, 44], [23, 45], [23, 46], [38, 47], [43, 48], [24, 49], [44, 50], [44, 51], [45, 52], [46, 53], [44, 54], [44, 55], [54, 56], [50, 57], [50, 58], [50, 59], [50, 60], [50, 61], [57, 62], [57, 63], [50, 64], [59, 65], [61, 66], [62, 67], [63, 68], [58, 69], [64, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 2], [18, 3], [19, 2], [20, 2], [21, 17], [22, 17], [23, 3], [24, 3], [25, 5], [26, 6], [27, 7], [28, 8], [29, 9], [30, 10], [31, 11], [32, 2], [33, 2], [34, 2], [35, 19], [36, 19], [37, 22], [38, 23], [39, 32], [40, 34], [41, 35], [42, 36], [43, 20], [44, 23], [45, 23], [46, 23], [47, 38], [48, 43], [49, 24], [50, 44], [51, 44], [52, 45], [53, 46], [54, 44], [55, 44], [56, 54], [57, 50], [58, 50], [59, 50], [60, 50], [61, 50], [62, 57], [63, 57], [64, 50], [65, 59], [66, 61], [67, 62], [68, 63], [69, 58], [70, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "countSteps", "code": "  protected int countSteps(LocPathIterator lpi)\n  {\n  \tif(lpi instanceof WalkingIterator)\n  \t{\n  \t\tWalkingIterator wi = (WalkingIterator)lpi;\n  \t\tAxesWalker aw = wi.getFirstWalker();\n  \t\tint count = 0;\n  \t\twhile(null != aw)\n  \t\t{\n  \t\t\tcount++;\n  \t\t\taw = aw.getNextWalker();\n  \t\t}\n  \t\treturn count;\n  \t}\n  \telse\n  \t\treturn 1;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [11, 12], [8, 13], [9, 14], [7, 15], [15, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 11], [13, 8], [14, 9], [15, 7], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "changeToVarRef", "code": "  protected void changeToVarRef(QName varName, ExpressionOwner owner, \n                                Vector paths, ElemTemplateElement psuedoVarRecipient) \n  {\n\tVariable varRef = (paths == m_absPaths) ? new VariableSafeAbsRef() : new Variable();\n\tvarRef.setQName(varName);\n\tif(paths == m_absPaths)\n\t{\n\t\tStylesheetRoot root = (StylesheetRoot)psuedoVarRecipient;\n\t\tVector globalVars = root.getVariablesAndParamsComposed();\n\t\tvarRef.setIndex(globalVars.size()-1);\n\t\tvarRef.setIsGlobal(true);\n\t}\n\towner.setExpression(varRef);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "VAR_DECL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [1, 10], [1, 11], [2, 12], [1, 13], [1, 14], [12, 15], [12, 16], [12, 17], [13, 18], [14, 19], [10, 20], [19, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 1], [11, 1], [12, 2], [13, 1], [14, 1], [15, 12], [16, 12], [17, 12], [18, 13], [19, 14], [20, 10], [21, 19], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getPseudoVarID", "code": "  private synchronized static int getPseudoVarID(){\n      return m_uniquePseudoVarID++; ", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createPseudoVarDecl", "code": "  protected ElemVariable createPseudoVarDecl(\n      ElemTemplateElement psuedoVarRecipient,\n      LocPathIterator lpi, boolean isGlobal)\n      throws org.w3c.dom.DOMException\n  {\n    QName uniquePseudoVarName = new QName (PSUEDOVARNAMESPACE, \"#\"+getPseudoVarID());\n  \t\t\n  \tif(isGlobal)\n  \t{\n  \t  return createGlobalPseudoVarDecl(uniquePseudoVarName, \n  \t                                  (StylesheetRoot)psuedoVarRecipient, lpi);\n  \t}\n  \telse\t\t\t\t\t\t\n      return createLocalPseudoVarDecl(uniquePseudoVarName, psuedoVarRecipient, lpi);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "RETURN", "CALL", "RETURN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [2, 9], [8, 10], [9, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 2], [10, 8], [11, 9], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createGlobalPseudoVarDecl", "code": "  protected ElemVariable createGlobalPseudoVarDecl(QName uniquePseudoVarName,\n                                           StylesheetRoot stylesheetRoot, \n                                           LocPathIterator lpi) \n        throws org.w3c.dom.DOMException \n  {\n  \tElemVariable psuedoVar = new ElemVariable();\n  \tpsuedoVar.setIsTopLevel(true);\n\tXPath xpath = new XPath(lpi);\n\tpsuedoVar.setSelect(xpath);\n\tpsuedoVar.setName(uniquePseudoVarName);\n\t\n\tVector globalVars = stylesheetRoot.getVariablesAndParamsComposed();\n\tpsuedoVar.setIndex(globalVars.size());\n\tglobalVars.addElement(psuedoVar);\n\treturn psuedoVar;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [9, 13], [2, 14], [3, 15], [12, 16], [4, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 9], [14, 2], [15, 3], [16, 12], [17, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "createLocalPseudoVarDecl", "code": "  protected ElemVariable createLocalPseudoVarDecl(QName uniquePseudoVarName,\n                                           ElemTemplateElement psuedoVarRecipient, \n                                           LocPathIterator lpi) \n        throws org.w3c.dom.DOMException \n  {\n\t\tElemVariable psuedoVar = new ElemVariablePsuedo();\n\t\t\n\t\tXPath xpath = new XPath(lpi);\n\t\tpsuedoVar.setSelect(xpath);\n\t\tpsuedoVar.setName(uniquePseudoVarName);\n\n\t\tElemVariable var = addVarDeclToElem(psuedoVarRecipient, lpi, psuedoVar);\n\t\t\n\t\tlpi.exprSetParent(var);\n\t\t\n\t\treturn var;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [4, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "addVarDeclToElem", "code": "  protected ElemVariable addVarDeclToElem(\n    ElemTemplateElement psuedoVarRecipient,\n    LocPathIterator lpi,\n    ElemVariable psuedoVar)\n    throws org.w3c.dom.DOMException\n  {\n    ElemTemplateElement ete = psuedoVarRecipient.getFirstChildElem();\n\n    lpi.callVisitors(null, m_varNameCollector);\n\n    if (m_varNameCollector.getVarCount() > 0)\n    {\n      ElemTemplateElement baseElem = getElemFromExpression(lpi);\n      ElemVariable varElem = getPrevVariableElem(baseElem);\n      while (null != varElem)\n      {\n        if (m_varNameCollector.doesOccur(varElem.getName()))\n          {\n          psuedoVarRecipient = varElem.getParentElem();\n          ete = varElem.getNextSiblingElem();\n          break;\n        }\n        varElem = getPrevVariableElem(varElem);\n      }\n    }\n\n    if ((null != ete) && (Constants.ELEMNAME_PARAMVARIABLE == ete.getXSLToken()))\n    {\n      if(isParam(lpi))\n        return null;\n\n      while (null != ete)\n      {\n        ete = ete.getNextSiblingElem();\n        if ((null != ete) && Constants.ELEMNAME_PARAMVARIABLE != ete.getXSLToken())\n            break;\n      }\n    }\n    psuedoVarRecipient.insertBefore(psuedoVar, ete);\n    m_varNameCollector.reset();\n    return psuedoVar;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [0, 12], [2, 13], [2, 14], [10, 15], [10, 16], [3, 17], [3, 18], [3, 19], [11, 20], [11, 21], [12, 22], [4, 23], [13, 24], [14, 25], [14, 26], [15, 27], [16, 28], [17, 29], [13, 30], [24, 31], [25, 32], [17, 33], [29, 34], [18, 35], [19, 36], [30, 37], [30, 38], [13, 39], [17, 40], [33, 41], [38, 42], [38, 43], [39, 44], [40, 45], [33, 46], [41, 47], [42, 48], [43, 49], [33, 50], [33, 51], [50, 52], [51, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 0], [13, 2], [14, 2], [15, 10], [16, 10], [17, 3], [18, 3], [19, 3], [20, 11], [21, 11], [22, 12], [23, 4], [24, 13], [25, 14], [26, 14], [27, 15], [28, 16], [29, 17], [30, 13], [31, 24], [32, 25], [33, 17], [34, 29], [35, 18], [36, 19], [37, 30], [38, 30], [39, 13], [40, 17], [41, 33], [42, 38], [43, 38], [44, 39], [45, 40], [46, 33], [47, 41], [48, 42], [49, 43], [50, 33], [51, 33], [52, 50], [53, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "isParam", "code": "  protected boolean isParam(ExpressionNode expr)\n  {\n  \twhile(null != expr)\n  \t{\n  \t\tif(expr instanceof ElemTemplateElement)\n  \t\t\tbreak;\n  \t\texpr = expr.exprGetParent();\n  \t}\n  \tif(null != expr)\n  \t{\n  \t\tElemTemplateElement ete = (ElemTemplateElement)expr;\n  \t\twhile(null != ete)\n  \t\t{\n  \t\t\tint type = ete.getXSLToken();\n  \t\t\tswitch(type)\n  \t\t\t{\n  \t\t\t\tcase Constants.ELEMNAME_PARAMVARIABLE:\n  \t\t\t\t\treturn true;\n  \t\t\t\tcase Constants.ELEMNAME_TEMPLATE:\n  \t\t\t\tcase Constants.ELEMNAME_STYLESHEET:\n  \t\t\t\t\treturn false;\n  \t\t\t}\n  \t\t\tete = ete.getParentElem();\n  \t\t}\n  \t}\n  \treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "SWITCH", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [2, 9], [6, 10], [3, 11], [7, 12], [8, 13], [3, 14], [11, 15], [11, 16], [8, 17], [8, 18], [13, 19], [14, 20], [8, 21], [21, 22], [17, 23], [17, 24], [18, 25], [23, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 2], [10, 6], [11, 3], [12, 7], [13, 8], [14, 3], [15, 11], [16, 11], [17, 8], [18, 8], [19, 13], [20, 14], [21, 8], [22, 21], [23, 17], [24, 17], [25, 18], [26, 23], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getPrevVariableElem", "code": "  protected ElemVariable getPrevVariableElem(ElemTemplateElement elem)\n  {\n  \twhile(null != (elem = getPrevElementWithinContext(elem)))\n  \t{\n  \t\tint type = elem.getXSLToken();\n  \t\t\t\n  \t\tif((Constants.ELEMNAME_VARIABLE == type) ||\n  \t\t   (Constants.ELEMNAME_PARAMVARIABLE == type))\n  \t\t{\n  \t\t\treturn (ElemVariable)elem;\n  \t\t}\n  \t}\n  \treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [6, 10], [8, 11], [6, 12], [10, 13], [10, 14], [7, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 6], [11, 8], [12, 6], [13, 10], [14, 10], [15, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getPrevElementWithinContext", "code": "  protected ElemTemplateElement getPrevElementWithinContext(ElemTemplateElement elem)\n  {\n  \tElemTemplateElement prev = elem.getPreviousSiblingElem();\n  \tif(null == prev)\n  \t\tprev = elem.getParentElem();\n  \tif(null != prev)\n  \t{\n  \t  int type = prev.getXSLToken();\n  \t  if((Constants.ELEMNAME_FOREACH == type) || \n  \t     (Constants.ELEMNAME_TEMPLATE == type) ||\n  \t     (Constants.ELEMNAME_STYLESHEET == type))\n  \t  {\n  \t  \tprev = null;\n  \t  }\n  \t}\n  \treturn prev;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [2, 8], [2, 9], [6, 10], [3, 11], [7, 12], [4, 13], [8, 14], [11, 15], [14, 16], [14, 17], [9, 18], [8, 19], [17, 20], [17, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 2], [9, 2], [10, 6], [11, 3], [12, 7], [13, 4], [14, 8], [15, 11], [16, 14], [17, 14], [18, 9], [19, 8], [20, 17], [21, 17], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getElemFromExpression", "code": "  protected ElemTemplateElement getElemFromExpression(Expression expr)\n  {\n  \tExpressionNode parent = expr.exprGetParent();\n  \twhile(null != parent)\n  \t{\n  \t\tif(parent instanceof ElemTemplateElement)\n  \t\t\treturn (ElemTemplateElement)parent;\n  \t\tparent = parent.exprGetParent();\n  \t}\n  \tthrow new RuntimeException(XSLMessages.createMessage(XSLTErrorResources.ER_ASSERT_NO_TEMPLATE_PARENT, null));", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [6, 9], [3, 10], [7, 11], [2, 12], [8, 13], [8, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 6], [10, 3], [11, 7], [12, 2], [13, 8], [14, 8], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "isAbsolute", "code": "  public boolean isAbsolute(LocPathIterator path)\n  {\n  \tint analysis = path.getAnalysisBits();\n    boolean isAbs = (WalkerFactory.isSet(analysis, WalkerFactory.BIT_ROOT) || \n           WalkerFactory.isSet(analysis, WalkerFactory.BIT_ANY_DESCENDANT_FROM_ROOT));\n    if(isAbs)\n    {\n    \tisAbs = m_absPathChecker.checkAbsolute(path);\n    }\n    return isAbs;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [2, 8], [6, 9], [6, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 2], [9, 6], [10, 6], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "visitLocationPath", "code": "  public boolean visitLocationPath(ExpressionOwner owner, LocPathIterator path)\n  {\n  \tif(path instanceof SelfIteratorNoPredicate)\n  \t{\n  \t\treturn true;\n  \t}\n  \telse if(path instanceof WalkingIterator)\n  \t{\n  \t\tWalkingIterator wi = (WalkingIterator)path;\n  \t\tAxesWalker aw = wi.getFirstWalker();\n  \t\tif((aw instanceof FilterExprWalker) && (null == aw.getNextWalker()))\n  \t\t{\n  \t\t\tFilterExprWalker few = (FilterExprWalker)aw;\n  \t\t\tExpression exp = few.getInnerExpression();\n  \t\t\tif(exp instanceof Variable)\n  \t\t\t\treturn true;\n  \t\t}\n  \t}\n\n    if (isAbsolute(path) && (null != m_absPaths))\n    {\n      if(DEBUG)\n        validateNewAddition(m_absPaths, owner, path);\n      m_absPaths.addElement(owner);\n    }\n    else if (m_isSameContext && (null != m_paths))\n    {\n      if(DEBUG)\n        validateNewAddition(m_paths, owner, path);\n      m_paths.addElement(owner);\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [7, 11], [2, 12], [8, 13], [8, 14], [9, 15], [3, 16], [7, 17], [11, 18], [2, 19], [13, 20], [9, 21], [9, 22], [9, 23], [16, 24], [7, 25], [18, 26], [12, 27], [21, 28], [17, 29], [21, 30], [21, 31], [21, 32], [28, 33], [28, 34], [22, 35], [30, 36], [30, 37], [33, 38], [33, 39], [36, 40], [31, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 7], [12, 2], [13, 8], [14, 8], [15, 9], [16, 3], [17, 7], [18, 11], [19, 2], [20, 13], [21, 9], [22, 9], [23, 9], [24, 16], [25, 7], [26, 18], [27, 12], [28, 21], [29, 17], [30, 21], [31, 21], [32, 21], [33, 28], [34, 28], [35, 22], [36, 30], [37, 30], [38, 33], [39, 33], [40, 36], [41, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "visitPredicate", "code": "  public boolean visitPredicate(ExpressionOwner owner, Expression pred)\n  {\n    boolean savedIsSame = m_isSameContext;\n    m_isSameContext = false;\n\n    pred.callVisitors(owner, this);\n\n    m_isSameContext = savedIsSame;\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "visitTopLevelInstruction", "code": "   public boolean visitTopLevelInstruction(ElemTemplateElement elem)\n   {\n     int type = elem.getXSLToken();\n     switch(type)\n     {\n       case Constants.ELEMNAME_TEMPLATE :\n         return visitInstruction(elem);\n       default:\n         return true;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "visitInstruction", "code": "  public boolean visitInstruction(ElemTemplateElement elem)\n  {\n    int type = elem.getXSLToken();\n    switch (type)\n    {\n      case Constants.ELEMNAME_CALLTEMPLATE :\n      case Constants.ELEMNAME_TEMPLATE :\n      case Constants.ELEMNAME_FOREACH :\n        {\n          \n          if(type == Constants.ELEMNAME_FOREACH)\n          {\n            ElemForEach efe = (ElemForEach) elem;\n   \t\t    \n  \t\t    Expression select = efe.getSelect();\n  \t\t    select.callVisitors(efe, this);\n          }\n         \n  \t\t  Vector savedPaths = m_paths;\n  \t\t  m_paths = new Vector();\n  \t\t    \n  \t\t  elem.callChildVisitors(this, false);  \t\t\n  \t\t  eleminateRedundentLocals(elem);\n  \t\t    \n  \t\t  m_paths = savedPaths;\n \n          return false;\n        }\n      case Constants.ELEMNAME_NUMBER :\n      case Constants.ELEMNAME_SORT :\n        boolean savedIsSame = m_isSameContext;\n        m_isSameContext = false;\n        elem.callChildVisitors(this);\n        m_isSameContext = savedIsSame;\n        return false;\n        \n      default :\n        return true;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "RETURN", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "RETURN", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [4, 8], [5, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [12, 16], [13, 17], [1, 18], [1, 19], [1, 20], [1, 21], [15, 22], [20, 23], [21, 24], [15, 25], [15, 26], [15, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 4], [9, 5], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 12], [17, 13], [18, 1], [19, 1], [20, 1], [21, 1], [22, 15], [23, 20], [24, 21], [25, 15], [26, 15], [27, 15], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "diagnoseNumPaths", "code": "  protected void diagnoseNumPaths(Vector paths, int numPathsEliminated,  \n                                  int numUniquePathsEliminated) \n  {\n\t\tif (numPathsEliminated > 0)\n\t\t{ \n\t\t  if(paths == m_paths)\n\t\t  {\n\t\t    System.err.println(\"Eliminated \" + numPathsEliminated + \" total paths!\");\n\t\t    System.err.println(\n\t\t      \"Consolodated \" + numUniquePathsEliminated + \" redundent paths!\");\n\t\t  }\n\t\t  else\n\t\t  {\n\t\t    System.err.println(\"Eliminated \" + numPathsEliminated + \" total global paths!\");\n\t\t    System.err.println(\n\t\t      \"Consolodated \" + numUniquePathsEliminated + \" redundent global paths!\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [9, 13], [10, 14], [11, 15], [12, 16], [13, 17], [13, 18], [14, 19], [14, 20], [15, 21], [15, 22], [16, 23], [16, 24], [18, 25], [20, 26], [22, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 6], [11, 6], [12, 6], [13, 9], [14, 10], [15, 11], [16, 12], [17, 13], [18, 13], [19, 14], [20, 14], [21, 15], [22, 15], [23, 16], [24, 16], [25, 18], [26, 20], [27, 22], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "assertIsLocPathIterator", "code": "  private final void assertIsLocPathIterator(Expression expr1, ExpressionOwner eo) \n    throws RuntimeException \n  {\n\t\tif(!(expr1 instanceof LocPathIterator))\n\t\t{\n\t\t\tString errMsg;\n\t\t\tif(expr1 instanceof Variable)\n\t\t\t{\n\t\t\t\terrMsg = \"Programmer's assertion: expr1 not an iterator: \"+\n\t\t\t\t          ((Variable)expr1).getQName();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\terrMsg = \"Programmer's assertion: expr1 not an iterator: \"+\n\t\t\t\t          expr1.getClass().getName();\n\t\t\t}\n\t\t\tthrow new RuntimeException(errMsg + \", \"+\n\t\t\t\t          eo.getClass().getName()+\" \"+\n\t\t\t\t          expr1.exprGetParent());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [8, 10], [10, 11], [10, 12], [6, 13], [6, 14], [12, 15], [12, 16], [13, 17], [14, 18], [16, 19], [16, 20], [17, 21], [17, 22], [18, 23], [19, 24], [20, 25], [21, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 8], [11, 10], [12, 10], [13, 6], [14, 6], [15, 12], [16, 12], [17, 13], [18, 14], [19, 16], [20, 16], [21, 17], [22, 17], [23, 18], [24, 19], [25, 20], [26, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "validateNewAddition", "code": "  private static void validateNewAddition(Vector paths, ExpressionOwner owner, \n                                          LocPathIterator path) \n\t\tthrows RuntimeException \n  {\n  \tassertion(owner.getExpression() == path, \"owner.getExpression() != path!!!\");\n\tint n = paths.size();\n\tfor(int i = 0; i < n; i++)\n\t{\n\t\tExpressionOwner ew = (ExpressionOwner)paths.elementAt(i);\n\t\tassertion(ew != owner, \"duplicate owner on the list!!!\");\n\t\tassertion(ew.getExpression() != path, \"duplicate expression on the list!!!\");", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [1, 8], [2, 9], [7, 10], [7, 11], [1, 12], [1, 13], [1, 14], [11, 15], [12, 16], [12, 17], [13, 18], [13, 19], [17, 20], [8, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 1], [9, 2], [10, 7], [11, 7], [12, 1], [13, 1], [14, 1], [15, 11], [16, 12], [17, 12], [18, 13], [19, 13], [20, 17], [21, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "assertion", "code": "  protected static void assertion(boolean b, String msg)\n  {\n  \tif(!b)\n  \t{\n  \t\tthrow new RuntimeException(XSLMessages.createMessage(XSLTErrorResources.ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR, new Object[]{msg}));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "RedundentExprEliminator", "code": "  public RedundentExprEliminator()\n  {\n    m_isSameContext = true;\n    m_absPaths = new Vector();\n    m_paths = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "xalan-2.5-7157", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/UnresolvedRef.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.UnresolvedRef", "code": "final class UnresolvedRef extends VariableRefBase {\n\n    private QName           _variableName = null;\n    private VariableRefBase _ref = null;\n    private VariableBase    _var = null;\n    private Stylesheet      _sheet = null;\n\n    public UnresolvedRef(QName name) {\n\tsuper();\n\t_variableName = name;\n\t_sheet = getStylesheet();\n    }\n\n    public QName getName() {\n\treturn(_variableName);\n    }\n\n    private ErrorMsg reportError() {\n\tErrorMsg err = new ErrorMsg(ErrorMsg.VARIABLE_UNDEF_ERR,\n\t\t\t\t    _variableName, this);\n\tgetParser().reportError(Constants.ERROR, err);\n\treturn(err);\n    }\n\n    private VariableRefBase resolve(Parser parser, SymbolTable stable) {\n\tVariableBase ref = parser.lookupVariable(_variableName);\n\tif (ref == null) ref = (VariableBase)stable.lookupName(_variableName);\n\tif (ref == null) {\n\t    reportError();\n\t    return null;\n\t}\n\t\n\tif ((_var = findParentVariable()) != null) _var.addDependency(ref);\n\n\tif (ref instanceof Variable)\n\t    return(new VariableRef((Variable)ref));\n\telse if (ref instanceof Param)\n\t    return(new ParameterRef((Param)ref));\n\telse\n\t    return null;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_ref != null) {\n\t    final String name = _variableName.toString();\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.CIRCULAR_VARIABLE_ERR,\n\t\t\t\t\tname, this);\n\t}\n\tif ((_ref = resolve(getParser(), stable)) != null) {\n\t    return (_type = _ref.typeCheck(stable));\n\t}\n\tthrow new TypeCheckError(reportError());\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tif (_ref != null)\n\t    _ref.translate(classGen, methodGen);\n\telse\n\t    reportError();\n    }\n\n    public String toString() {\n\treturn \"unresolved-ref()\";", "functions": [{"function_name": "getName", "code": "    public QName getName() {\n\treturn(_variableName);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reportError", "code": "    private ErrorMsg reportError() {\n\tErrorMsg err = new ErrorMsg(ErrorMsg.VARIABLE_UNDEF_ERR,\n\t\t\t\t    _variableName, this);\n\tgetParser().reportError(Constants.ERROR, err);\n\treturn(err);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resolve", "code": "    private VariableRefBase resolve(Parser parser, SymbolTable stable) {\n\tVariableBase ref = parser.lookupVariable(_variableName);\n\tif (ref == null) ref = (VariableBase)stable.lookupName(_variableName);\n\tif (ref == null) {\n\t    reportError();\n\t    return null;\n\t}\n\t\n\tif ((_var = findParentVariable()) != null) _var.addDependency(ref);\n\n\tif (ref instanceof Variable)\n\t    return(new VariableRef((Variable)ref));\n\telse if (ref instanceof Param)\n\t    return(new ParameterRef((Param)ref));\n\telse\n\t    return null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [4, 13], [8, 14], [8, 15], [8, 16], [9, 17], [2, 18], [11, 19], [11, 20], [3, 21], [12, 22], [4, 23], [13, 24], [5, 25], [14, 26], [15, 27], [20, 28], [21, 29], [3, 30], [23, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 4], [14, 8], [15, 8], [16, 8], [17, 9], [18, 2], [19, 11], [20, 11], [21, 3], [22, 12], [23, 4], [24, 13], [25, 5], [26, 14], [27, 15], [28, 20], [29, 21], [30, 3], [31, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_ref != null) {\n\t    final String name = _variableName.toString();\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.CIRCULAR_VARIABLE_ERR,\n\t\t\t\t\tname, this);\n\t}\n\tif ((_ref = resolve(getParser(), stable)) != null) {\n\t    return (_type = _ref.typeCheck(stable));\n\t}\n\tthrow new TypeCheckError(reportError());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [5, 8], [2, 9], [6, 10], [6, 11], [3, 12], [3, 13], [7, 14], [9, 15], [11, 16], [15, 17], [16, 18], [12, 19], [13, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 5], [9, 2], [10, 6], [11, 6], [12, 3], [13, 3], [14, 7], [15, 9], [16, 11], [17, 15], [18, 16], [19, 12], [20, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tif (_ref != null)\n\t    _ref.translate(classGen, methodGen);\n\telse\n\t    reportError();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"unresolved-ref()\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "UnresolvedRef", "code": "    public UnresolvedRef(QName name) {\n\tsuper();\n\t_variableName = name;\n\t_sheet = getStylesheet();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.4-2411", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/cxf/interceptors/XMLMessageOutInterceptor.java", "language": "java", "name": "org.apache.camel.component.cxf.interceptors.XMLMessageOutInterceptor", "code": "public class XMLMessageOutInterceptor extends AbstractMessageOutInterceptor<XMLMessage> {\n    private static final Logger LOG = LogUtils.getL7dLogger(XMLMessageOutInterceptor.class);\n   \n\n    public XMLMessageOutInterceptor() {\n        super(Phase.PREPARE_SEND);        \n        addAfter(DOMOutInterceptor.class.getName());\n    }\n\n    protected Logger getLogger() {\n        return LOG;\n    }\n\n    @SuppressWarnings(\"unchecked\")\n    public void handleMessage(XMLMessage message) throws Fault {\n        Exchange exchange = message.getExchange();        \n        BindingMessageInfo bmi = exchange.get(BindingMessageInfo.class);\n\n        List<Element> payload = message.get(List.class);\n        if (bmi == null && payload.size() > 1) {\n            throw new Fault(new org.apache.cxf.common.i18n.Message(\n                            \"NO_XML_ROOT_NODE\", LOG));            \n        }\n        \n        if (bmi != null) {\n            Element header = message.get(Element.class);\n            if (header != null) {\n                if (LOG.isLoggable(Level.INFO)) {\n                    LOG.info(\"DOMOutInterceptor Copy Message Part related Headers to Payload.\");\n                }\n                moveHeaderPartToPayload(bmi, header, payload);\n            }\n    \n            XMLBindingMessageFormat msgFormat = \n                bmi.getExtensor(XMLBindingMessageFormat.class);\n            QName rootName = msgFormat != null ? msgFormat.getRootNode() : null;\n            \n            if (rootName == null) {\n                if (payload.size() > 1) {\n                    throw new Fault(new org.apache.cxf.common.i18n.Message(\n                                    \"NO_XML_ROOT_NODE\", LOG));\n                }\n            } else {\n                if (LOG.isLoggable(Level.INFO)) {\n                    LOG.info(\"DOMOutInterceptor Create xmlformat RootNode element\");\n                }                \n                Element el = createElement(rootName, payload);\n                payload = new ArrayList<Element>();\n                payload.add(el);\n            }\n\n            message.put(List.class, payload);\n            message.remove(Element.class);\n        }\n    }\n    \n    private void moveHeaderPartToPayload(BindingMessageInfo bmi,\n                                         Element header,\n                                         List<Element> payload) {\n        Collection<MessagePartInfo> bodyParts = bmi.getMessageParts();\n        NodeList nodes = header.getChildNodes();\n\n        for (int idx = 0; idx < nodes.getLength(); idx++) {\n            Node node = nodes.item(idx);\n            int index = 0;\n            for (MessagePartInfo mpi : bodyParts) {\n                QName name = mpi.getConcreteName();\n                if (name.getLocalPart().equals(node.getLocalName())\n                    && name.getNamespaceURI().equals(node.getNamespaceURI())) {\n                    payload.add(index, (Element)node);\n                    break;\n                } \n                ++index;", "functions": [{"function_name": "getLogger", "code": "    protected Logger getLogger() {\n        return LOG;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "handleMessage", "code": "    @SuppressWarnings(\"unchecked\")\n    public void handleMessage(XMLMessage message) throws Fault {\n        Exchange exchange = message.getExchange();        \n        BindingMessageInfo bmi = exchange.get(BindingMessageInfo.class);\n\n        List<Element> payload = message.get(List.class);\n        if (bmi == null && payload.size() > 1) {\n            throw new Fault(new org.apache.cxf.common.i18n.Message(\n                            \"NO_XML_ROOT_NODE\", LOG));            \n        }\n        \n        if (bmi != null) {\n            Element header = message.get(Element.class);\n            if (header != null) {\n                if (LOG.isLoggable(Level.INFO)) {\n                    LOG.info(\"DOMOutInterceptor Copy Message Part related Headers to Payload.\");\n                }\n                moveHeaderPartToPayload(bmi, header, payload);\n            }\n    \n            XMLBindingMessageFormat msgFormat = \n                bmi.getExtensor(XMLBindingMessageFormat.class);\n            QName rootName = msgFormat != null ? msgFormat.getRootNode() : null;\n            \n            if (rootName == null) {\n                if (payload.size() > 1) {\n                    throw new Fault(new org.apache.cxf.common.i18n.Message(\n                                    \"NO_XML_ROOT_NODE\", LOG));\n                }\n            } else {\n                if (LOG.isLoggable(Level.INFO)) {\n                    LOG.info(\"DOMOutInterceptor Create xmlformat RootNode element\");\n                }                \n                Element el = createElement(rootName, payload);\n                payload = new ArrayList<Element>();\n                payload.add(el);\n            }\n\n            message.put(List.class, payload);\n            message.remove(Element.class);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [8, 15], [2, 16], [9, 17], [9, 18], [3, 19], [4, 20], [5, 21], [1, 22], [1, 23], [10, 24], [13, 25], [16, 26], [17, 27], [17, 28], [18, 29], [10, 30], [10, 31], [10, 32], [24, 33], [11, 34], [12, 35], [13, 36], [25, 37], [14, 38], [26, 39], [10, 40], [10, 41], [31, 42], [32, 43], [34, 44], [34, 45], [34, 46], [13, 47], [36, 48], [39, 49], [41, 50], [30, 51], [32, 52], [43, 53], [43, 54], [46, 55], [31, 56], [52, 57], [36, 58], [56, 59], [57, 60], [58, 61], [60, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 8], [16, 2], [17, 9], [18, 9], [19, 3], [20, 4], [21, 5], [22, 1], [23, 1], [24, 10], [25, 13], [26, 16], [27, 17], [28, 17], [29, 18], [30, 10], [31, 10], [32, 10], [33, 24], [34, 11], [35, 12], [36, 13], [37, 25], [38, 14], [39, 26], [40, 10], [41, 10], [42, 31], [43, 32], [44, 34], [45, 34], [46, 34], [47, 13], [48, 36], [49, 39], [50, 41], [51, 30], [52, 32], [53, 43], [54, 43], [55, 46], [56, 31], [57, 52], [58, 36], [59, 56], [60, 57], [61, 58], [62, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "moveHeaderPartToPayload", "code": "    private void moveHeaderPartToPayload(BindingMessageInfo bmi,\n                                         Element header,\n                                         List<Element> payload) {\n        Collection<MessagePartInfo> bodyParts = bmi.getMessageParts();\n        NodeList nodes = header.getChildNodes();\n\n        for (int idx = 0; idx < nodes.getLength(); idx++) {\n            Node node = nodes.item(idx);\n            int index = 0;\n            for (MessagePartInfo mpi : bodyParts) {\n                QName name = mpi.getConcreteName();\n                if (name.getLocalPart().equals(node.getLocalName())\n                    && name.getNamespaceURI().equals(node.getNamespaceURI())) {\n                    payload.add(index, (Element)node);\n                    break;\n                } \n                ++index;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [2, 12], [3, 13], [1, 14], [8, 15], [8, 16], [9, 17], [10, 18], [15, 19], [15, 20], [19, 21], [19, 22], [16, 23], [15, 24], [21, 25], [22, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 2], [13, 3], [14, 1], [15, 8], [16, 8], [17, 9], [18, 10], [19, 15], [20, 15], [21, 19], [22, 19], [23, 16], [24, 15], [25, 21], [26, 22], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "XMLMessageOutInterceptor", "code": "    public XMLMessageOutInterceptor() {\n        super(Phase.PREPARE_SEND);        \n        addAfter(DOMOutInterceptor.class.getName());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.2-4441", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/ServiceListHandler.java", "language": "java", "name": "org.gjt.sp.jedit.ServiceListHandler", "code": "class ServiceListHandler extends HandlerBase\n{\n\t//{{{ ServiceListHandler constructor\n\tServiceListHandler(PluginJAR plugin, URL uri)\n\t{\n\t\tthis.plugin = plugin;\n\t\tthis.uri = uri;\n\t\tstateStack = new Stack();\n\t\tcachedServices = new LinkedList();\n\t} //}}}\n\n\t//{{{ resolveEntity() method\n\tpublic Object resolveEntity(String publicId, String systemId)\n\t{\n\t\tif(\"services.dtd\".equals(systemId))\n\t\t{\n\t\t\t// this will result in a slight speed up, since we\n\t\t\t// don't need to read the DTD anyway, as AElfred is\n\t\t\t// non-validating\n\t\t\treturn new StringReader(\"<!-- -->\");\n\n\t\t\t/* try\n\t\t\t{\n\t\t\t\treturn new BufferedReader(new InputStreamReader(\n\t\t\t\t\tgetClass().getResourceAsStream\n\t\t\t\t\t(\"/org/gjt/sp/jedit/services.dtd\")));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,\"Error while opening\"\n\t\t\t\t\t+ \" dockables.dtd:\");\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t} */\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ attribute() method\n\tpublic void attribute(String aname, String value, boolean isSpecified)\n\t{\n\t\tif(aname.equals(\"NAME\"))\n\t\t\tserviceName = value;\n\t\telse if(aname.equals(\"CLASS\"))\n\t\t\tserviceClass = value;\n\t} //}}}\n\n\t//{{{ doctypeDecl() method\n\tpublic void doctypeDecl(String name, String publicId,\n\t\tString systemId) throws Exception\n\t{\n\t\tif(\"SERVICES\".equals(name))\n\t\t\treturn;\n\n\t\tLog.log(Log.ERROR,this,uri + \": DOCTYPE must be SERVICES\");\n\t} //}}}\n\n\t//{{{ charData() method\n\tpublic void charData(char[] c, int off, int len)\n\t{\n\t\tString tag = peekElement();\n\t\tString text = new String(c, off, len);\n\n\t\tif (tag == \"SERVICE\")\n\t\t{\n\t\t\tcode = text;\n\t\t}\n\t} //}}}\n\n\t//{{{ startElement() method\n\tpublic void startElement(String tag)\n\t{\n\t\ttag = pushElement(tag);\n\t} //}}}\n\n\t//{{{ endElement() method\n\tpublic void endElement(String name)\n\t{\n\t\tif(name == null)\n\t\t\treturn;\n\n\t\tString tag = peekElement();\n\n\t\tif(name.equals(tag))\n\t\t{\n\t\t\tif(tag == \"SERVICE\")\n\t\t\t{\n\t\t\t\tServiceManager.Descriptor d =\n\t\t\t\t\tnew ServiceManager.Descriptor(\n\t\t\t\t\tserviceClass,serviceName,code,plugin);\n\t\t\t\tServiceManager.registerService(d);\n\t\t\t\tcachedServices.add(d);\n\t\t\t}\n\n\t\t\tpopElement();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// can't happen\n\t\t\tthrow new InternalError();\n\t\t}\n\t} //}}}\n\n\t//{{{ startDocument() method\n\tpublic void startDocument()\n\t{\n\t\ttry\n\t\t{\n\t\t\tpushElement(null);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t} //}}}\n\n\t//{{{ getCachedServices() method\n\tpublic ServiceManager.Descriptor[] getCachedServices()\n\t{\n\t\treturn (ServiceManager.Descriptor[])cachedServices.toArray(\n\t\t\tnew ServiceManager.Descriptor[cachedServices.size()]);\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate PluginJAR plugin;\n\tprivate URL uri;\n\n\tprivate String serviceName;\n\tprivate String serviceClass;\n\tprivate String code;\n\n\tprivate Stack stateStack;\n\n\tprivate List cachedServices;\n\t//}}}\n\n\t//{{{ pushElement() method\n\tprivate String pushElement(String name)\n\t{\n\t\tname = (name == null) ? null : name.intern();\n\n\t\tstateStack.push(name);\n\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ peekElement() method\n\tprivate String peekElement()\n\t{\n\t\treturn (String) stateStack.peek();\n\t} //}}}\n\n\t//{{{ popElement() method\n\tprivate String popElement()\n\t{\n\t\treturn (String) stateStack.pop();", "functions": [{"function_name": "resolveEntity", "code": "\tpublic Object resolveEntity(String publicId, String systemId)\n\t{\n\t\tif(\"services.dtd\".equals(systemId))\n\t\t{\n\t\t\t// this will result in a slight speed up, since we\n\t\t\t// don't need to read the DTD anyway, as AElfred is\n\t\t\t// non-validating\n\t\t\treturn new StringReader(\"<!-- -->\");\n\n\t\t\t/* try\n\t\t\t{\n\t\t\t\treturn new BufferedReader(new InputStreamReader(\n\t\t\t\t\tgetClass().getResourceAsStream\n\t\t\t\t\t(\"/org/gjt/sp/jedit/services.dtd\")));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,\"Error while opening\"\n\t\t\t\t\t+ \" dockables.dtd:\");\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t} */\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "attribute", "code": "\tpublic void attribute(String aname, String value, boolean isSpecified)\n\t{\n\t\tif(aname.equals(\"NAME\"))\n\t\t\tserviceName = value;\n\t\telse if(aname.equals(\"CLASS\"))\n\t\t\tserviceClass = value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [6, 9], [5, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 6], [10, 5], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "doctypeDecl", "code": "\tpublic void doctypeDecl(String name, String publicId,\n\t\tString systemId) throws Exception\n\t{\n\t\tif(\"SERVICES\".equals(name))\n\t\t\treturn;\n\n\t\tLog.log(Log.ERROR,this,uri + \": DOCTYPE must be SERVICES\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [5, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 5], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "charData", "code": "\tpublic void charData(char[] c, int off, int len)\n\t{\n\t\tString tag = peekElement();\n\t\tString text = new String(c, off, len);\n\n\t\tif (tag == \"SERVICE\")\n\t\t{\n\t\t\tcode = text;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [2, 9], [3, 10], [1, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 2], [10, 3], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "startElement", "code": "\tpublic void startElement(String tag)\n\t{\n\t\ttag = pushElement(tag);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "endElement", "code": "\tpublic void endElement(String name)\n\t{\n\t\tif(name == null)\n\t\t\treturn;\n\n\t\tString tag = peekElement();\n\n\t\tif(name.equals(tag))\n\t\t{\n\t\t\tif(tag == \"SERVICE\")\n\t\t\t{\n\t\t\t\tServiceManager.Descriptor d =\n\t\t\t\t\tnew ServiceManager.Descriptor(\n\t\t\t\t\tserviceClass,serviceName,code,plugin);\n\t\t\t\tServiceManager.registerService(d);\n\t\t\t\tcachedServices.add(d);\n\t\t\t}\n\n\t\t\tpopElement();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// can't happen\n\t\t\tthrow new InternalError();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "THROW_RAISE", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [3, 7], [1, 8], [1, 9], [2, 10], [7, 11], [8, 12], [1, 13], [9, 14], [9, 15], [14, 16], [9, 17], [9, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 3], [8, 1], [9, 1], [10, 2], [11, 7], [12, 8], [13, 1], [14, 9], [15, 9], [16, 14], [17, 9], [18, 9], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "startDocument", "code": "\tpublic void startDocument()\n\t{\n\t\ttry\n\t\t{\n\t\t\tpushElement(null);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getCachedServices", "code": "\tpublic ServiceManager.Descriptor[] getCachedServices()\n\t{\n\t\treturn (ServiceManager.Descriptor[])cachedServices.toArray(\n\t\t\tnew ServiceManager.Descriptor[cachedServices.size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "pushElement", "code": "\tprivate String pushElement(String name)\n\t{\n\t\tname = (name == null) ? null : name.intern();\n\n\t\tstateStack.push(name);\n\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "ASSIGN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [5, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 5], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "peekElement", "code": "\tprivate String peekElement()\n\t{\n\t\treturn (String) stateStack.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popElement", "code": "\tprivate String popElement()\n\t{\n\t\treturn (String) stateStack.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ServiceListHandler", "code": "\tServiceListHandler(PluginJAR plugin, URL uri)\n\t{\n\t\tthis.plugin = plugin;\n\t\tthis.uri = uri;\n\t\tstateStack = new Stack();\n\t\tcachedServices = new LinkedList();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "poi-2.5-5898", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/SaveRecalcRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.SaveRecalcRecord", "code": "public class SaveRecalcRecord\n    extends Record\n{\n    public final static short sid = 0x5f;\n    private short             field_1_recalc;\n\n    public SaveRecalcRecord()\n    {\n    }\n\n    /**\n     * Constructs an SaveRecalc record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x5f or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public SaveRecalcRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs an SaveRecalc record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x5f or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the the data\n     */\n\n    public SaveRecalcRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A Save Recalc RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_recalc = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set whether to recalculate formulas/etc before saving or not\n     * @param recalc - whether to recalculate or not\n     */\n\n    public void setRecalc(boolean recalc)\n    {\n        field_1_recalc = ( short ) ((recalc == true) ? 1\n                                                     : 0);\n    }\n\n    /**\n     * get whether to recalculate formulas/etc before saving or not\n     * @return recalc - whether to recalculate or not\n     */\n\n    public boolean getRecalc()\n    {\n        return (field_1_recalc == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[SAVERECALC]\\n\");\n        buffer.append(\"    .recalc         = \").append(getRecalc())\n            .append(\"\\n\");\n        buffer.append(\"[/SAVERECALC]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, field_1_recalc);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      SaveRecalcRecord rec = new SaveRecalcRecord();\n      rec.field_1_recalc = field_1_recalc;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A Save Recalc RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_recalc = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setRecalc", "code": "    public void setRecalc(boolean recalc)\n    {\n        field_1_recalc = ( short ) ((recalc == true) ? 1\n                                                     : 0);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getRecalc", "code": "    public boolean getRecalc()\n    {\n        return (field_1_recalc == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[SAVERECALC]\\n\");\n        buffer.append(\"    .recalc         = \").append(getRecalc())\n            .append(\"\\n\");\n        buffer.append(\"[/SAVERECALC]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, field_1_recalc);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [6, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 6], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      SaveRecalcRecord rec = new SaveRecalcRecord();\n      rec.field_1_recalc = field_1_recalc;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "SaveRecalcRecord", "code": "    public SaveRecalcRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SaveRecalcRecord", "code": "    public SaveRecalcRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SaveRecalcRecord", "code": "    public SaveRecalcRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-2.5-5743", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/util/POILogFactory.java", "language": "java", "name": "org.apache.poi.util.POILogFactory", "code": "public class POILogFactory\n{\n\n    private static Map          _loggers = new HashMap();;\n\n\n    /**\n     * construct a POILogFactory.\n     */\n\n    private POILogFactory()\n    {\n    }\n\n    /**\n     * Get a logger, based on a class name\n     *\n     * @param theclass the class whose name defines the log\n     *\n     * @return a POILogger for the specified class\n     */\n\n    public static POILogger getLogger(final Class theclass)\n    {\n        return getLogger(theclass.getName());\n    }\n    \n    /**\n     * Get a logger, based on a String\n     *\n     * @param cat the String that defines the log\n     *\n     * @return a POILogger for the specified class\n     */\n\n    public static POILogger getLogger(final String cat)\n    {\n        POILogger logger = null;\n\n        if (_loggers.containsKey(cat))\n        {\n            logger = ( POILogger ) _loggers.get(cat);\n        }\n        else\n        {\n            try{\n              String loggerClassName = System.getProperty(\"org.apache.poi.util.POILogger\");\n              Class loggerClass = Class.forName(loggerClassName);\n              logger = ( POILogger ) loggerClass.newInstance();\n            }\n            catch(Exception e){\n            \n              logger = new NullLogger();\n            }\n            \n            logger.initialize(cat);\n            \n            _loggers.put(cat, logger);\n        }\n        return logger;", "functions": [{"function_name": "getLogger", "code": "    public static POILogger getLogger(final Class theclass)\n    {\n        return getLogger(theclass.getName());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLogger", "code": "    public static POILogger getLogger(final String cat)\n    {\n        POILogger logger = null;\n\n        if (_loggers.containsKey(cat))\n        {\n            logger = ( POILogger ) _loggers.get(cat);\n        }\n        else\n        {\n            try{\n              String loggerClassName = System.getProperty(\"org.apache.poi.util.POILogger\");\n              Class loggerClass = Class.forName(loggerClassName);\n              logger = ( POILogger ) loggerClass.newInstance();\n            }\n            catch(Exception e){\n            \n              logger = new NullLogger();\n            }\n            \n            logger.initialize(cat);\n            \n            _loggers.put(cat, logger);\n        }\n        return logger;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [2, 8], [2, 9], [6, 10], [6, 11], [6, 12], [2, 13], [6, 14], [10, 15], [11, 16], [12, 17], [13, 18], [15, 19], [14, 20], [17, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 2], [9, 2], [10, 6], [11, 6], [12, 6], [13, 2], [14, 6], [15, 10], [16, 11], [17, 12], [18, 13], [19, 15], [20, 14], [21, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "POILogFactory", "code": "    private POILogFactory()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.0-1586", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/xmpp/XmppExchange.java", "language": "java", "name": "org.apache.camel.component.xmpp.XmppExchange", "code": "public class XmppExchange extends DefaultExchange {\n    private XmppBinding binding;\n\n    public XmppExchange(CamelContext context, XmppBinding binding) {\n        super(context);\n        this.binding = binding;\n    }\n\n    public XmppExchange(CamelContext context, XmppBinding binding, Message message) {\n        this(context, binding);\n        setIn(new XmppMessage(message));\n    }\n\n    @Override\n    public XmppMessage getIn() {\n        return (XmppMessage) super.getIn();\n    }\n\n    @Override\n    public XmppMessage getOut() {\n        return (XmppMessage) super.getOut();\n    }\n\n    @Override\n    public XmppMessage getOut(boolean lazyCreate) {\n        return (XmppMessage) super.getOut(lazyCreate);\n    }\n\n    @Override\n    public XmppMessage getFault() {\n        return (XmppMessage) super.getFault();\n    }\n\n    public XmppBinding getBinding() {\n        return binding;\n    }\n\n    @Override\n    public Exchange newInstance() {\n        return new XmppExchange(getContext(), binding);\n    }\n\n\n    /**\n     * Return the underlying XMPP In message\n     *\n     * @return the XMPP In message\n     */\n    public Message getInMessage() {\n        return getIn().getXmppMessage();\n    }\n\n    /**\n     * Return the underlying XMPP Out message\n     *\n     * @return the XMPP out message\n     */\n    public Message getOutMessage() {\n        return getOut().getXmppMessage();\n    }\n\n    /**\n     * Return the underlying XMPP Fault message\n     *\n     * @return the XMPP fault message\n     */\n    public Message getFaultMessage() {\n        return getOut().getXmppMessage();\n    }\n\n\n    @Override\n    protected XmppMessage createInMessage() {\n        return new XmppMessage();\n    }\n\n    @Override\n    protected XmppMessage createOutMessage() {\n        return new XmppMessage();", "functions": [{"function_name": "getIn", "code": "    @Override\n    public XmppMessage getIn() {\n        return (XmppMessage) super.getIn();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOut", "code": "    @Override\n    public XmppMessage getOut() {\n        return (XmppMessage) super.getOut();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOut", "code": "    @Override\n    public XmppMessage getOut(boolean lazyCreate) {\n        return (XmppMessage) super.getOut(lazyCreate);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFault", "code": "    @Override\n    public XmppMessage getFault() {\n        return (XmppMessage) super.getFault();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBinding", "code": "    public XmppBinding getBinding() {\n        return binding;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "newInstance", "code": "    @Override\n    public Exchange newInstance() {\n        return new XmppExchange(getContext(), binding);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getInMessage", "code": "    public Message getInMessage() {\n        return getIn().getXmppMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getOutMessage", "code": "    public Message getOutMessage() {\n        return getOut().getXmppMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFaultMessage", "code": "    public Message getFaultMessage() {\n        return getOut().getXmppMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createInMessage", "code": "    @Override\n    protected XmppMessage createInMessage() {\n        return new XmppMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createOutMessage", "code": "    @Override\n    protected XmppMessage createOutMessage() {\n        return new XmppMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "XmppExchange", "code": "    public XmppExchange(CamelContext context, XmppBinding binding) {\n        super(context);\n        this.binding = binding;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "XmppExchange", "code": "    public XmppExchange(CamelContext context, XmppBinding binding, Message message) {\n        this(context, binding);\n        setIn(new XmppMessage(message));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "ant-1.4-228", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/mail/SmtpResponseReader.java", "language": "java", "name": "org.apache.tools.mail.SmtpResponseReader", "code": "public class SmtpResponseReader {\n\n    protected BufferedReader reader = null;\n    private StringBuffer result = new StringBuffer();\n\n    /**\n     * Wrap this input stream.\n     */\n    public SmtpResponseReader(InputStream in) {\n        reader = new BufferedReader(new InputStreamReader(in)); \n    }\n\n    /**\n     * Read until the server indicates that the response is complete.\n     *\n     * @return Responsecode (3 digits) + Blank + Text from all\n     *         response line concatenated (with blanks replacing the \\r\\n\n     *         sequences).\n     */\n    public String getResponse() throws IOException {\n        result.setLength(0);\n        String line = reader.readLine();\n        if (line != null) {\n            result.append(line.substring(0, 3));\n            result.append(\" \");\n        }\n        \n        while (line != null) {\n            append(line);\n            if (!hasMoreLines(line)) {\n                break;\n            }\n            line = reader.readLine();\n        }\n        return result.toString().trim();\n    }\n\n    /**\n     * Closes the underlying stream.\n     */\n    public void close() throws IOException {\n        reader.close();\n    }\n\n    /**\n     * Should we expect more input?\n     */\n    protected boolean hasMoreLines(String line) {\n        return line.charAt(3) == '-';\n    }\n\n    /**\n     * Append the text from this line of the resonse.\n     */\n    private void append(String line) {\n        result.append(line.substring(4));\n        result.append(\" \");", "functions": [{"function_name": "getResponse", "code": "    public String getResponse() throws IOException {\n        result.setLength(0);\n        String line = reader.readLine();\n        if (line != null) {\n            result.append(line.substring(0, 3));\n            result.append(\" \");\n        }\n        \n        while (line != null) {\n            append(line);\n            if (!hasMoreLines(line)) {\n                break;\n            }\n            line = reader.readLine();\n        }\n        return result.toString().trim();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [0, 8], [5, 9], [2, 10], [6, 11], [7, 12], [4, 13], [8, 14], [2, 15], [10, 16], [2, 17], [3, 18], [3, 19], [15, 20], [10, 21], [18, 22], [19, 23], [23, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 0], [9, 5], [10, 2], [11, 6], [12, 7], [13, 4], [14, 8], [15, 2], [16, 10], [17, 2], [18, 3], [19, 3], [20, 15], [21, 10], [22, 18], [23, 19], [24, 23], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "close", "code": "    public void close() throws IOException {\n        reader.close();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hasMoreLines", "code": "    protected boolean hasMoreLines(String line) {\n        return line.charAt(3) == '-';", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "append", "code": "    private void append(String line) {\n        result.append(line.substring(4));\n        result.append(\" \");", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "SmtpResponseReader", "code": "    public SmtpResponseReader(InputStream in) {\n        reader = new BufferedReader(new InputStreamReader(in)); ", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.1-4047", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/EnhancedMenuItem.java", "language": "java", "name": "org.gjt.sp.jedit.gui.EnhancedMenuItem", "code": "public class EnhancedMenuItem extends JMenuItem\n{\n\t//{{{ EnhancedMenuItem constructor\n\t/**\n\t * Creates a new menu item. Most plugins should call\n\t * GUIUtilities.loadMenuItem() instead.\n\t * @param label The menu item label\n\t * @param action The edit action\n\t * @param actionCommand The action command\n\t */\n\tpublic EnhancedMenuItem(String label, EditAction action)\n\t{\n\t\tsuper(label);\n\n\t\tthis.action = action;\n\n\t\tif(action != null)\n\t\t{\n\t\t\tsetEnabled(true);\n\t\t\taddActionListener(new EditAction.Wrapper(action));\n\t\t\tshortcutProp1 = action.getName() + \".shortcut\";\n\t\t\tshortcutProp2 = action.getName() + \".shortcut2\";\n\n\t\t\taddMouseListener(new MouseHandler());\n\t\t}\n\t\telse\n\t\t\tsetEnabled(false);\n\t} //}}}\n\n\t//{{{ getPreferredSize() method\n\tpublic Dimension getPreferredSize()\n\t{\n\t\tDimension d = super.getPreferredSize();\n\n\t\tString shortcut = getShortcut();\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\td.width += (getFontMetrics(acceleratorFont)\n\t\t\t\t.stringWidth(shortcut) + 15);\n\t\t}\n\t\treturn d;\n\t} //}}}\n\n\t//{{{ paint() method\n\tpublic void paint(Graphics g)\n\t{\n\t\tsuper.paint(g);\n\n\t\tString shortcut = getShortcut();\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\tg.setFont(acceleratorFont);\n\t\t\tg.setColor(getModel().isArmed() ?\n\t\t\t\tacceleratorSelectionForeground :\n\t\t\t\tacceleratorForeground);\n\t\t\tFontMetrics fm = g.getFontMetrics();\n\t\t\tInsets insets = getInsets();\n\t\t\tg.drawString(shortcut,getWidth() - (fm.stringWidth(\n\t\t\t\tshortcut) + insets.right + insets.left + 5),\n\t\t\t\tgetFont().getSize() + (insets.top - \n\t\t\t\t(OperatingSystem.isMacOSLF() ? 0 : 1))\n\t\t\t\t/* XXX magic number */);\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate String shortcutProp1;\n\tprivate String shortcutProp2;\n\tprivate EditAction action;\n\tprivate static Font acceleratorFont;\n\tprivate static Color acceleratorForeground;\n\tprivate static Color acceleratorSelectionForeground;\n\t//}}}\n\n\t//{{{ getShortcut() method\n\tprivate String getShortcut()\n\t{\n\t\tif(action == null)\n\t\t\treturn null;\n\t\telse\n\t\t{\n\t\t\tString shortcut1 = jEdit.getProperty(shortcutProp1);\n\t\t\tString shortcut2 = jEdit.getProperty(shortcutProp2);\n\n\t\t\tif(shortcut1 == null || shortcut1.length() == 0)\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn shortcut1;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut1 + \" or \" + shortcut2;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ Class initializer\n\tstatic\n\t{\n\t\tString shortcutFont;\n\t\tif (OperatingSystem.isMacOSLF())\n\t\t\tshortcutFont = \"Lucida Grande\";\n\t\telse\n\t\t\tshortcutFont = \"Monospaced\";\n\t\t\n\t\tacceleratorFont = UIManager.getFont(\"MenuItem.acceleratorFont\");\n\t\tacceleratorFont = new Font(shortcutFont,\n\t\t\tacceleratorFont.getStyle(),\n\t\t\tacceleratorFont.getSize());\n\t\tacceleratorForeground = UIManager\n\t\t\t.getColor(\"MenuItem.acceleratorForeground\");\n\t\tacceleratorSelectionForeground = UIManager\n\t\t\t.getColor(\"MenuItem.acceleratorSelectionForeground\");\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ MouseHandler class\n\tclass MouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mouseReleased(MouseEvent evt)\n\t\t{\n\t\t\tGUIUtilities.getView((Component)evt.getSource())\n\t\t\t\t.getStatus().setMessage(null);\n\t\t}\n\n\t\tpublic void mouseEntered(MouseEvent evt)\n\t\t{\n\t\t\tString msg = action.getMouseOverText();\n\t\t\tif(msg != null)\n\t\t\t{\n\t\t\t\tGUIUtilities.getView((Component)evt.getSource())\n\t\t\t\t\t.getStatus().setMessage(msg);\n\t\t\t}\n\t\t}\n\n\t\tpublic void mouseExited(MouseEvent evt)\n\t\t{\n\t\t\tGUIUtilities.getView((Component)evt.getSource())\n\t\t\t\t.getStatus().setMessage(null);", "functions": [{"function_name": "getPreferredSize", "code": "\tpublic Dimension getPreferredSize()\n\t{\n\t\tDimension d = super.getPreferredSize();\n\n\t\tString shortcut = getShortcut();\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\td.width += (getFontMetrics(acceleratorFont)\n\t\t\t\t.stringWidth(shortcut) + 15);\n\t\t}\n\t\treturn d;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "paint", "code": "\tpublic void paint(Graphics g)\n\t{\n\t\tsuper.paint(g);\n\n\t\tString shortcut = getShortcut();\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\tg.setFont(acceleratorFont);\n\t\t\tg.setColor(getModel().isArmed() ?\n\t\t\t\tacceleratorSelectionForeground :\n\t\t\t\tacceleratorForeground);\n\t\t\tFontMetrics fm = g.getFontMetrics();\n\t\t\tInsets insets = getInsets();\n\t\t\tg.drawString(shortcut,getWidth() - (fm.stringWidth(\n\t\t\t\tshortcut) + insets.right + insets.left + 5),\n\t\t\t\tgetFont().getSize() + (insets.top - \n\t\t\t\t(OperatingSystem.isMacOSLF() ? 0 : 1))", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [1, 9], [1, 10], [1, 11], [9, 12], [9, 13], [5, 14], [6, 15], [10, 16], [12, 17], [12, 18], [13, 19], [13, 20], [16, 21], [17, 22], [18, 23], [19, 24], [19, 25], [21, 26], [22, 27], [22, 28], [22, 29], [25, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 1], [10, 1], [11, 1], [12, 9], [13, 9], [14, 5], [15, 6], [16, 10], [17, 12], [18, 12], [19, 13], [20, 13], [21, 16], [22, 17], [23, 18], [24, 19], [25, 19], [26, 21], [27, 22], [28, 22], [29, 22], [30, 25], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getShortcut", "code": "\tprivate String getShortcut()\n\t{\n\t\tif(action == null)\n\t\t\treturn null;\n\t\telse\n\t\t{\n\t\t\tString shortcut1 = jEdit.getProperty(shortcutProp1);\n\t\t\tString shortcut2 = jEdit.getProperty(shortcutProp2);\n\n\t\t\tif(shortcut1 == null || shortcut1.length() == 0)\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn shortcut1;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut1 + \" or \" + shortcut2;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [4, 9], [4, 10], [4, 11], [9, 12], [9, 13], [5, 14], [6, 15], [10, 16], [10, 17], [10, 18], [11, 19], [11, 20], [11, 21], [12, 22], [12, 23], [13, 24], [16, 25], [18, 26], [18, 27], [20, 28], [21, 29], [21, 30], [25, 31], [26, 32], [26, 33], [27, 34], [29, 35], [29, 36], [30, 37], [31, 38], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 4], [10, 4], [11, 4], [12, 9], [13, 9], [14, 5], [15, 6], [16, 10], [17, 10], [18, 10], [19, 11], [20, 11], [21, 11], [22, 12], [23, 12], [24, 13], [25, 16], [26, 18], [27, 18], [28, 20], [29, 21], [30, 21], [31, 25], [32, 26], [33, 26], [34, 27], [35, 29], [36, 29], [37, 30], [38, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "EnhancedMenuItem", "code": "\tpublic EnhancedMenuItem(String label, EditAction action)\n\t{\n\t\tsuper(label);\n\n\t\tthis.action = action;\n\n\t\tif(action != null)\n\t\t{\n\t\t\tsetEnabled(true);\n\t\t\taddActionListener(new EditAction.Wrapper(action));\n\t\t\tshortcutProp1 = action.getName() + \".shortcut\";\n\t\t\tshortcutProp2 = action.getName() + \".shortcut2\";\n\n\t\t\taddMouseListener(new MouseHandler());\n\t\t}\n\t\telse\n\t\t\tsetEnabled(false);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [6, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [15, 19], [15, 20], [16, 21], [16, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 6], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 15], [20, 15], [21, 16], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}], "label": 0}
{"sample_id": "xalan-2.5-7271", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/res/XPATHErrorResources.java", "language": "java", "name": "org.apache.xpath.res.XPATHErrorResources", "code": "public class XPATHErrorResources extends ListResourceBundle\n{\n\n/*\n * General notes to translators:\n *\n * This file contains error and warning messages related to XPath Error\n * Handling.\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n *  8) The context node is the node in the document with respect to which an\n *     XPath expression is being evaluated.\n *\n *  9) An iterator is an object that traverses nodes in the tree, one at a time.\n *\n *  10) NCName is an XML term used to describe a name that does not contain a\n *     colon (a \"no-colon name\").\n *\n *  11) QName is an XML term meaning \"qualified name\".\n */\n\n  /** Field MAX_CODE          */\n\n  /** Field MAX_WARNING          */\n\n  /** Field MAX_OTHERS          */\n  public static final int MAX_OTHERS = 20;\n\n  /** Field MAX_MESSAGES          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /* \n   * static variables\n   */\n  public static final String ERROR0000 = \"ERROR0000\";\n  public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH = \n\t \"ER_CURRENT_NOT_ALLOWED_IN_MATCH\";\n  public static final String ER_CURRENT_TAKES_NO_ARGS = \n\t \"ER_CURRENT_TAKES_NO_ARGS\";\n  public static final String ER_DOCUMENT_REPLACED = \"ER_DOCUMENT_REPLACED\";\n  public static final String ER_CONTEXT_HAS_NO_OWNERDOC = \n\t \"ER_CONTEXT_HAS_NO_OWNERDOC\";\n  public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS = \n\t \"ER_LOCALNAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = \n\t \"ER_NAMESPACEURI_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = \n\t \"ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NUMBER_HAS_TOO_MANY_ARGS = \n\t \"ER_NUMBER_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAME_HAS_TOO_MANY_ARGS = \n\t \"ER_NAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRING_HAS_TOO_MANY_ARGS = \n\t \"ER_STRING_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = \n\t \"ER_STRINGLENGTH_HAS_TOO_MANY_ARGS\";\n  public static final String ER_TRANSLATE_TAKES_3_ARGS = \n\t \"ER_TRANSLATE_TAKES_3_ARGS\";\n  public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG = \n\t \"ER_UNPARSEDENTITYURI_TAKES_1_ARG\";\n  public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED = \n\t \"ER_NAMESPACEAXIS_NOT_IMPLEMENTED\";\n  public static final String ER_UNKNOWN_AXIS = \"ER_UNKNOWN_AXIS\";\n  public static final String ER_UNKNOWN_MATCH_OPERATION = \n\t \"ER_UNKNOWN_MATCH_OPERATION\";\n  public static final String ER_INCORRECT_ARG_LENGTH =\"ER_INCORRECT_ARG_LENGTH\";\n  public static final String ER_CANT_CONVERT_TO_NUMBER = \n\t \"ER_CANT_CONVERT_TO_NUMBER\";\n  public static final String ER_CANT_CONVERT_TO_NODELIST = \n\t \"ER_CANT_CONVERT_TO_NODELIST\";\n  public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST = \n\t \"ER_CANT_CONVERT_TO_MUTABLENODELIST\";\n  public static final String ER_CANT_CONVERT_TO_TYPE =\"ER_CANT_CONVERT_TO_TYPE\";\n  public static final String ER_EXPECTED_MATCH_PATTERN = \n\t \"ER_EXPECTED_MATCH_PATTERN\";\n  public static final String ER_COULDNOT_GET_VAR_NAMED = \n\t \"ER_COULDNOT_GET_VAR_NAMED\";\n  public static final String ER_UNKNOWN_OPCODE = \"ER_UNKNOWN_OPCODE\";\n  public static final String ER_EXTRA_ILLEGAL_TOKENS =\"ER_EXTRA_ILLEGAL_TOKENS\";\n  public static final String ER_EXPECTED_DOUBLE_QUOTE = \n\t \"ER_EXPECTED_DOUBLE_QUOTE\";\n  public static final String ER_EXPECTED_SINGLE_QUOTE = \n\t \"ER_EXPECTED_SINGLE_QUOTE\";\n  public static final String ER_EMPTY_EXPRESSION = \"ER_EMPTY_EXPRESSION\";\n  public static final String ER_EXPECTED_BUT_FOUND = \"ER_EXPECTED_BUT_FOUND\";\n  public static final String ER_INCORRECT_PROGRAMMER_ASSERTION = \n\t \"ER_INCORRECT_PROGRAMMER_ASSERTION\";\n  public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = \n\t \"ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL\";\n  public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = \n\t \"ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG\";\n  public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = \n\t \"ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG\";\n  public static final String ER_PREDICATE_ILLEGAL_SYNTAX = \n\t \"ER_PREDICATE_ILLEGAL_SYNTAX\";\n  public static final String ER_ILLEGAL_AXIS_NAME = \"ER_ILLEGAL_AXIS_NAME\";\n  public static final String ER_UNKNOWN_NODETYPE = \"ER_UNKNOWN_NODETYPE\";\n  public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = \n\t \"ER_PATTERN_LITERAL_NEEDS_BE_QUOTED\";\n  public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER = \n\t \"ER_COULDNOT_BE_FORMATTED_TO_NUMBER\";\n  public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = \n\t \"ER_COULDNOT_CREATE_XMLPROCESSORLIAISON\";\n  public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP = \n\t \"ER_DIDNOT_FIND_XPATH_SELECT_EXP\";\n  public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = \n\t \"ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH\";\n  public static final String ER_ERROR_OCCURED = \"ER_ERROR_OCCURED\";\n  public static final String ER_ILLEGAL_VARIABLE_REFERENCE = \n\t \"ER_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String ER_AXES_NOT_ALLOWED = \"ER_AXES_NOT_ALLOWED\";\n  public static final String ER_KEY_HAS_TOO_MANY_ARGS = \n\t \"ER_KEY_HAS_TOO_MANY_ARGS\";\n  public static final String ER_COUNT_TAKES_1_ARG = \"ER_COUNT_TAKES_1_ARG\";\n  public static final String ER_COULDNOT_FIND_FUNCTION = \n\t \"ER_COULDNOT_FIND_FUNCTION\";\n  public static final String ER_UNSUPPORTED_ENCODING =\"ER_UNSUPPORTED_ENCODING\";\n  public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING = \n\t \"ER_PROBLEM_IN_DTM_NEXTSIBLING\";\n  public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = \n\t \"ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL\";\n  public static final String ER_SETDOMFACTORY_NOT_SUPPORTED = \n\t \"ER_SETDOMFACTORY_NOT_SUPPORTED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_PARSE_NOT_SUPPORTED = \"ER_PARSE_NOT_SUPPORTED\";\n  public static final String ER_SAX_API_NOT_HANDLED = \"ER_SAX_API_NOT_HANDLED\";\npublic static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED = \n\t \"ER_IGNORABLE_WHITESPACE_NOT_HANDLED\";\n  public static final String ER_DTM_CANNOT_HANDLE_NODES = \n\t \"ER_DTM_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_CANNOT_HANDLE_NODES = \n\t \"ER_XERCES_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_PARSE_ERROR_DETAILS = \n\t \"ER_XERCES_PARSE_ERROR_DETAILS\";\n  public static final String ER_XERCES_PARSE_ERROR = \"ER_XERCES_PARSE_ERROR\";\n  public static final String ER_INVALID_UTF16_SURROGATE = \n\t \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_CANNOT_CREATE_URL = \"ER_CANNOT_CREATE_URL\";\n  public static final String ER_XPATH_READOBJECT = \"ER_XPATH_READOBJECT\";\n public static final String ER_FUNCTION_TOKEN_NOT_FOUND = \n\t \"ER_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String ER_CANNOT_DEAL_XPATH_TYPE = \n\t \"ER_CANNOT_DEAL_XPATH_TYPE\";\n  public static final String ER_NODESET_NOT_MUTABLE = \"ER_NODESET_NOT_MUTABLE\";\n  public static final String ER_NODESETDTM_NOT_MUTABLE = \n\t \"ER_NODESETDTM_NOT_MUTABLE\";\n   /**  Variable not resolvable:   */\n  public static final String ER_VAR_NOT_RESOLVABLE = \"ER_VAR_NOT_RESOLVABLE\";\n   /** Null error handler  */\n public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n   /**  Programmer's assertion: unknown opcode  */\n  public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE = \n\t \"ER_PROG_ASSERT_UNKNOWN_OPCODE\";\n   /**  0 or 1   */\n  public static final String ER_ZERO_OR_ONE = \"ER_ZERO_OR_ONE\";\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = \n\t \"ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = \"ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  fsb() not supported for XStringForChars   */\n  public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = \n\t \"ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS\";\n   /**  Could not find variable with the name of   */\n public static final String ER_COULD_NOT_FIND_VAR = \"ER_COULD_NOT_FIND_VAR\";\n   /**  XStringForChars can not take a string for an argument   */\n public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = \n\t \"ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING\";\n   /**  The FastStringBuffer argument can not be null   */\n public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = \n\t \"ER_FASTSTRINGBUFFER_CANNOT_BE_NULL\";\n   /**  2 or 3   */\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n   /** Variable accessed before it is bound! */\n  public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND = \n\t \"ER_VARIABLE_ACCESSED_BEFORE_BIND\";\n   /** XStringForFSB can not take a string for an argument! */\n public static final String ER_FSB_CANNOT_TAKE_STRING = \n\t \"ER_FSB_CANNOT_TAKE_STRING\";\n   /** Error! Setting the root of a walker to null! */\n  public static final String ER_SETTING_WALKER_ROOT_TO_NULL = \n\t \"ER_SETTING_WALKER_ROOT_TO_NULL\";\n   /** This NodeSetDTM can not iterate to a previous node! */\n  public static final String ER_NODESETDTM_CANNOT_ITERATE = \n\t \"ER_NODESETDTM_CANNOT_ITERATE\";\n  /** This NodeSet can not iterate to a previous node! */\n public static final String ER_NODESET_CANNOT_ITERATE = \n\t \"ER_NODESET_CANNOT_ITERATE\";\n  /** This NodeSetDTM can not do indexing or counting functions! */\n  public static final String ER_NODESETDTM_CANNOT_INDEX = \n\t \"ER_NODESETDTM_CANNOT_INDEX\";\n  /** This NodeSet can not do indexing or counting functions! */\n  public static final String ER_NODESET_CANNOT_INDEX = \n\t \"ER_NODESET_CANNOT_INDEX\";\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n  public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE = \n\t \"ER_CANNOT_CALL_SETSHOULDCACHENODE\";\n  /** {0} only allows {1} arguments */\n public static final String ER_ONLY_ALLOWS = \"ER_ONLY_ALLOWS\";\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n  public static final String ER_UNKNOWN_STEP = \"ER_UNKNOWN_STEP\";\n  /** Problem with RelativeLocationPath */\n  public static final String ER_EXPECTED_REL_LOC_PATH = \n\t \"ER_EXPECTED_REL_LOC_PATH\";\n  /** Problem with LocationPath */\n  public static final String ER_EXPECTED_LOC_PATH = \"ER_EXPECTED_LOC_PATH\";\n  /** Problem with Step */\n  public static final String ER_EXPECTED_LOC_STEP = \"ER_EXPECTED_LOC_STEP\";\n  /** Problem with NodeTest */\n  public static final String ER_EXPECTED_NODE_TEST = \"ER_EXPECTED_NODE_TEST\";\n  /** Expected step pattern */\n  public static final String ER_EXPECTED_STEP_PATTERN = \n\t\"ER_EXPECTED_STEP_PATTERN\";\n  /** Expected relative path pattern */\n  public static final String ER_EXPECTED_REL_PATH_PATTERN = \n\t \"ER_EXPECTED_REL_PATH_PATTERN\";\n  /** localname in QNAME should be a valid NCName */\n  /** prefix in QNAME should be a valid NCName */\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n  public static final String ER_CANT_CONVERT_TO_BOOLEAN = \n\t \"ER_CANT_CONVERT_TO_BOOLEAN\";\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n  public static final String ER_CANT_CONVERT_TO_SINGLENODE = \n\t \"ER_CANT_CONVERT_TO_SINGLENODE\";\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n  public static final String ER_CANT_GET_SNAPSHOT_LENGTH = \n\t \"ER_CANT_GET_SNAPSHOT_LENGTH\";\n  /** Field ER_NON_ITERATOR_TYPE                */\n  public static final String ER_NON_ITERATOR_TYPE = \"ER_NON_ITERATOR_TYPE\";\n  /** Field ER_DOC_MUTATED                      */\n  public static final String ER_DOC_MUTATED = \"ER_DOC_MUTATED\";\n  public static final String ER_INVALID_XPATH_TYPE = \"ER_INVALID_XPATH_TYPE\";\n  public static final String ER_EMPTY_XPATH_RESULT = \"ER_EMPTY_XPATH_RESULT\";\n  public static final String ER_INCOMPATIBLE_TYPES = \"ER_INCOMPATIBLE_TYPES\";\n  public static final String ER_NULL_RESOLVER = \"ER_NULL_RESOLVER\";\n  public static final String ER_CANT_CONVERT_TO_STRING = \n\t \"ER_CANT_CONVERT_TO_STRING\";\n  public static final String ER_NON_SNAPSHOT_TYPE = \"ER_NON_SNAPSHOT_TYPE\";\n  public static final String ER_WRONG_DOCUMENT = \"ER_WRONG_DOCUMENT\";\n  /* Note to translators:  The XPath expression cannot be evaluated with respect\n   * to this type of node.\n   */\n  /** Field ER_WRONG_NODETYPE                    */\n  public static final String ER_WRONG_NODETYPE = \"ER_WRONG_NODETYPE\";\n  public static final String ER_XPATH_ERROR = \"ER_XPATH_ERROR\";\n\n  public static final String WG_LOCALE_NAME_NOT_HANDLED = \n\t \"WG_LOCALE_NAME_NOT_HANDLED\";\n  public static final String WG_PROPERTY_NOT_SUPPORTED = \n\t \"WG_PROPERTY_NOT_SUPPORTED\";\n  public static final String WG_DONT_DO_ANYTHING_WITH_NS = \n\t \"WG_DONT_DO_ANYTHING_WITH_NS\";\n  public static final String WG_SECURITY_EXCEPTION = \"WG_SECURITY_EXCEPTION\";\n  public static final String WG_QUO_NO_LONGER_DEFINED = \n\t \"WG_QUO_NO_LONGER_DEFINED\";\n  public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = \n\t \"WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST\";\n  public static final String WG_FUNCTION_TOKEN_NOT_FOUND = \n\t \"WG_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String WG_COULDNOT_FIND_FUNCTION = \n\t \"WG_COULDNOT_FIND_FUNCTION\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED = \n\t \"WG_EXPAND_ENTITIES_NOT_SUPPORTED\";\n  public static final String WG_ILLEGAL_VARIABLE_REFERENCE = \n\t \"WG_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String WG_UNSUPPORTED_ENCODING =\"WG_UNSUPPORTED_ENCODING\";\n\n\n\n  public static final Object[][] contents = {\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"The current() function is not allowed in a match pattern!\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"The current() function does not accept arguments!\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"document() function implementation has been replaced by org.apache.xalan.xslt.FuncDocument!\"},\n  \n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"context does not have an owner document!\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"local-name() has too many arguments.\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"namespace-uri() has too many arguments.\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"normalize-space() has too many arguments.\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"number() has too many arguments.\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"name() has too many arguments.\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"string() has too many arguments.\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"string-length() has too many arguments.\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"The translate() function takes three arguments!\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"The unparsed-entity-uri function should take one argument!\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"namespace axis not implemented yet!\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"unknown axis: {0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"unknown match operation!\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"Arg length of processing-instruction() node test is incorrect!\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"Can not convert {0} to a number\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"Can not convert {0} to a NodeList!\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"Can not convert {0} to a NodeSetDTM!\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"Can not convert {0} to a type#{1}\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"Expected match pattern in getMatchScore!\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"Could not get variable named {0}\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"ERROR! Unknown op code: {0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"Extra illegal tokens: {0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"misquoted literal... expected double quote!\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"misquoted literal... expected single quote!\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"Empty expression!\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"Expected {0}, but found: {1}\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"Programmer assertion is incorrect! - {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"boolean(...) argument is no longer optional with 19990709 XPath draft.\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"Found ',' but no preceding argument!\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"Found ',' but no following argument!\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"'..[predicate]' or '.[predicate]' is illegal syntax.  Use 'self::node()[predicate]' instead.\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"illegal axis name: {0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"Unknown nodetype: {0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"Pattern literal ({0}) needs to be quoted!\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"{0} could not be formatted to a number!\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"Could not create XML TransformerFactory Liaison: {0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"Error! Did not find xpath select expression (-select).\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"ERROR! Could not find ENDOP after OP_LOCATIONPATH\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"Error occured!\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"VariableReference given for variable out of context or without definition!  Name = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"Only child:: and attribute:: axes are allowed in match patterns!  Offending axes = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"key() has an incorrect number of arguments.\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"The count function should take one argument!\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"Could not find function: {0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"Unsupported encoding: {0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"Problem occured in DTM in getNextSibling... trying to recover\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"Programmer error: EmptyNodeList can not be written to.\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"setDOMFactory is not supported by XPathContext!\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"Prefix must resolve to a namespace: {0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"parse (InputSource source) not supported in XPathContext! Can not open {0}\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"SAX API characters(char ch[]... not handled by the DTM!\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"ignorableWhitespace(char ch[]... not handled by the DTM!\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison can not handle nodes of type {0}\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper can not handle nodes of type {0}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"DOM2Helper.parse error: SystemID - {0} line - {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"DOM2Helper.parse error\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"Invalid UTF-16 surrogate detected: {0} ?\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"IO error\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"Cannot create url for: {0}\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"In XPath.readObject: {0}\"},\n  \n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"function token not found.\"},\n  \n   /**  Argument 'localName' is null  */\n\n  \n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"Can not deal with XPath type: {0}\"},\n  \n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"This NodeSet is not mutable\"},\n  \n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"This NodeSetDTM is not mutable\"},\n  \n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"Variable not resolvable: {0}\"},\n  \n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"Null error handler\"},\n  \n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"Programmer''s assertion: unknown opcode: {0}\"},\n  \n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 or 1\"},\n  \n  \n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"rtf() not supported by XRTreeFragSelectWrapper\"},\n  \n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"asNodeIterator() not supported by XRTreeFragSelectWrapper\"},\n  \n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"fsb() not supported for XStringForChars\"},\n  \n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"Could not find variable with the name of {0}\"},\n  \n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"XStringForChars can not take a string for an argument\"},\n  \n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"The FastStringBuffer argument can not be null\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */ \n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 or 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"Variable accessed before it is bound!\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"XStringForFSB can not take a string for an argument!\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n !!!! Error! Setting the root of a walker to null!!!\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"This NodeSetDTM can not iterate to a previous node!\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"This NodeSet can not iterate to a previous node!\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"This NodeSetDTM can not do indexing or counting functions!\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"This NodeSet can not do indexing or counting functions!\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"Can not call setShouldCacheNodes after nextNode has been called!\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"{0} only allows {1} arguments\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"Programmer''s assertion in getNextStepPos: unknown stepType: {0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"A location path was expected, but the following token was encountered\\u003a  {0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"A node test that matches either NCName:* or QName was expected.\"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"A step pattern was expected, but '/' was encountered.\"},\n\n \n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"A relative path pattern was expected.\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n  \n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"Cannot convert {0} to a boolean.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"Cannot convert {0} to a single node. This getter applies to types ANY_UNORDERED_NODE_TYPE and FIRST_ORDERED_NODE_TYPE.\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"Cannot get snapshot length on type: {0}. This getter applies to types UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"Cannot iterate over non-iterator type: {0}\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"Document mutated since result was returned. Iterator is invalid.\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"Invalid XPath type argument: {0}\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"Empty XPath result object\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"The returned type: {0} cannot be coerced into the specified type: {1}\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"Unable to resolve prefix with null prefix resolver.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"Cannot convert {0} to a string.\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"Cannot call snapshotItem on type: {0}. This method applies to types UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"Context node does not belong to the document that is bound to this XPathEvaluator.\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"The context node type is not supported.\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"Unknown error in XPath.\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"locale name in the format-number function not yet handled!\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"XSL Property not supported: {0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"Do not currently do anything with namespace {0} in property: {1}\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"SecurityException when trying to access XSL system property: {0}\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"Old syntax: quo(...) is no longer defined in XPath.\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"XPath needs a derived object to implement nodeTest!\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"function token not found.\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"Could not find function: {0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"Can not make URL from: {0}\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"-E option not supported for DTM parser\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"VariableReference given for variable out of context or without definition!  Name = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"Unsupported encoding: {0}\"},\n\n\n\n  { \"ui_language\", \"en\"},\n  { \"help_language\", \"en\"},\n  { \"language\", \"en\"},\n  { \"BAD_CODE\", \"Parameter to createMessage was out of bounds\"},\n  { \"FORMAT_FAILED\", \"Exception thrown during messageFormat call\"},\n  { \"version\", \">>>>>>> Xalan Version \"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"yes\"},\n  { \"line\", \"Line #\"},\n  { \"column\", \"Column #\"},\n  { \"xsldone\", \"XSLProcessor: done\"},\n  { \"xpath_option\", \"xpath options: \"},\n  { \"optionIN\", \"   [-in inputXMLURL]\"},\n  { \"optionSelect\", \"   [-select xpath expression]\"},\n  { \"optionMatch\", \"   [-match match pattern (for match diagnostics)]\"},\n  { \"optionAnyExpr\", \"Or just an xpath expression will do a diagnostic dump\"},\n  { \"noParsermsg1\", \"XSL Process was not successful.\"},\n  { \"noParsermsg2\", \"** Could not find parser **\"},\n  { \"noParsermsg3\", \"Please check your classpath.\"},\n  { \"noParsermsg4\", \"If you don't have IBM's XML Parser for Java, you can download it from\"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }\n\n  };\n\n\n\n  /** Field BAD_CODE          */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** Field FORMAT_FAILED          */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** Field ERROR_RESOURCES          */\n  public static final String ERROR_RESOURCES =\n    \"org.apache.xpath.res.XPATHErrorResources\";\n\n  /** Field ERROR_STRING          */\n  public static final String ERROR_STRING = \"#error\";\n\n  /** Field ERROR_HEADER          */\n  public static final String ERROR_HEADER = \"Error: \";\n\n  /** Field WARNING_HEADER          */\n  public static final String WARNING_HEADER = \"Warning: \";\n\n  /** Field XSL_HEADER          */\n  public static final String XSL_HEADER = \"XSL \";\n\n  /** Field XML_HEADER          */\n  public static final String XML_HEADER = \"XML \";\n\n  /** Field QUERY_HEADER          */\n  public static final String QUERY_HEADER = \"PATTERN \";\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   * Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   * of ResourceBundle.getBundle().\n   *\n   * @param res the name of the resource to load.\n   * @param locale the locale to prefer when searching for the bundle\n   *\n   * @param className Name of local-specific subclass.\n   * @return the ResourceBundle\n   * @throws MissingResourceException\n   */\n  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"en\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"en\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "log4j-1.1-4887", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/xml/examples/XCategory.java", "language": "java", "name": "org.apache.log4j.xml.examples.XCategory", "code": "public class XCategory extends Category implements OptionHandler {\n\n  final private static String FQCN = XCategory.class.getName();\n\n  // It's enough to instantiate a factory once and for all.\n  private static XFactory factory = new XFactory();\n  \n  public static final String SUFFIX_OPTION = \"Suffix\";\n\n  String suffix = \"\";\n\n  /**\n     Just calls the parent constuctor.\n   */\n  protected XCategory(String name) {\n    super(name);\n  }\n\n  /** \n     Nothing to activate.\n   */\n  public\n  void activateOptions() {\n  }\n\n  /**\n     Overrides the standard debug method by appending the value of\n     suffix variable to each message.  \n  */\n  public \n  void debug(String message) {\n    super.debug(message + \" \" + suffix);\n  }\n\n  /**\n     This method overrides {@link Category#getInstance} by supplying\n     its own factory type as a parameter.\n\n   */\n  public \n  static\n  Category getInstance(String name) {\n    return Category.getInstance(name, factory); \n  }\n\n\n  /**\n     This method overrides {@link Category#getInstance(Class)} by supplying\n     its own factory type as a parameter.\n   */\n  public \n  static\n  Category getInstance(Class clazz) {\n    return getInstance(clazz.getName(), factory); \n  }\n\n /**\n    Retuns the option names for this component, namely the string\n    {@link #SUFFIX_OPTION}.\n */\n  public\n  String[] getOptionStrings() {\n    return (new String[] {SUFFIX_OPTION});\n  }\n\n\n  /**\n     We introduce a new printing method in order to support {@link\n     XPriority#LETHAL}.  */\n  public\n  void lethal(String message, Throwable t) { \n    // disable is a static variable defined in Category class\n    if(hierarchy.isDisabled(XPriority.LETHAL_INT)) \n      return;\n    if(XPriority.LETHAL.isGreaterOrEqual(this.getChainedPriority()))\n      forcedLog(FQCN, XPriority.LETHAL, message, t);\n  }\n\n  /**\n     We introduce a new printing method in order to support {@link\n     XPriority#LETHAL}.  */\n  public\n  void lethal(String message) { \n    // disable is a static variable defined in Category class\n    if(hierarchy.isDisabled(XPriority.LETHAL_INT)) \n      return;\n    if(XPriority.LETHAL.isGreaterOrEqual(this.getChainedPriority()))\n      forcedLog(FQCN, XPriority.LETHAL, message, null);\n  }\n\n\n /**\n     Set XCategory specific options.\n\n     <p>The <b>Suffix</b> option is the only recognized option. It\n     takes a string value.\n     */\n  public\n  void setOption(String option, String value) {\n    if(option == null) {\n      return;\n    }\n    if(option.equalsIgnoreCase(SUFFIX_OPTION)) {\n      this.suffix = value;\n      LogLog.debug(\"Setting suffix to\"+suffix);\n    }\n  }\n  \n  public\n  String getOption(String option) {\n    if(option.equalsIgnoreCase(SUFFIX_OPTION)) {\n      return this.suffix;\n    }\n    return null;\n  }\n\n  /**\n     We introduce a new printing method that takes the TRACE priority.\n  */\n  public\n  void trace(String message, Throwable t) { \n    // disable is defined in Category\n    if(hierarchy.isDisabled(XPriority.TRACE_INT))\n      return;   \n    if(XPriority.TRACE.isGreaterOrEqual(this.getChainedPriority()))\n      forcedLog(FQCN, XPriority.TRACE, message, t);\n  }\n\n  /**\n     We introduce a new printing method that takes the TRACE priority.\n  */\n  public\n  void trace(String message) { \n    // disable is defined in Category\n    if(hierarchy.isDisabled(XPriority.TRACE_INT))\n      return;   \n    if(XPriority.TRACE.isGreaterOrEqual(this.getChainedPriority()))\n      callAppenders(new LoggingEvent(FQCN, this, XPriority.TRACE, \n\t\t\t\t     message, null));\n  }\n\n\n\n  // Any sub-class of Category must also have its own implementation of \n  // CategoryFactory.\n  public static class XFactory implements CategoryFactory {\n    \n    public XFactory() {\n    }\n\n    public\n    Category makeNewCategoryInstance(String name) {\n      return new XCategory(name);", "functions": [{"function_name": "activateOptions", "code": "  void activateOptions() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "debug", "code": "  void debug(String message) {\n    super.debug(message + \" \" + suffix);", "ast_nodes": ["FUNC_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getInstance", "code": "  Category getInstance(String name) {\n    return Category.getInstance(name, factory); ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getInstance", "code": "  Category getInstance(Class clazz) {\n    return getInstance(clazz.getName(), factory); ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getOptionStrings", "code": "  String[] getOptionStrings() {\n    return (new String[] {SUFFIX_OPTION});", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "lethal", "code": "  void lethal(String message, Throwable t) { \n    // disable is a static variable defined in Category class\n    if(hierarchy.isDisabled(XPriority.LETHAL_INT)) \n      return;\n    if(XPriority.LETHAL.isGreaterOrEqual(this.getChainedPriority()))\n      forcedLog(FQCN, XPriority.LETHAL, message, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "lethal", "code": "  void lethal(String message) { \n    // disable is a static variable defined in Category class\n    if(hierarchy.isDisabled(XPriority.LETHAL_INT)) \n      return;\n    if(XPriority.LETHAL.isGreaterOrEqual(this.getChainedPriority()))\n      forcedLog(FQCN, XPriority.LETHAL, message, null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [7, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 7], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setOption", "code": "  void setOption(String option, String value) {\n    if(option == null) {\n      return;\n    }\n    if(option.equalsIgnoreCase(SUFFIX_OPTION)) {\n      this.suffix = value;\n      LogLog.debug(\"Setting suffix to\"+suffix);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 9], [1, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 1], [10, 1], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getOption", "code": "  String getOption(String option) {\n    if(option.equalsIgnoreCase(SUFFIX_OPTION)) {\n      return this.suffix;\n    }\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "trace", "code": "  void trace(String message, Throwable t) { \n    // disable is defined in Category\n    if(hierarchy.isDisabled(XPriority.TRACE_INT))\n      return;   \n    if(XPriority.TRACE.isGreaterOrEqual(this.getChainedPriority()))\n      forcedLog(FQCN, XPriority.TRACE, message, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "trace", "code": "  void trace(String message) { \n    // disable is defined in Category\n    if(hierarchy.isDisabled(XPriority.TRACE_INT))\n      return;   \n    if(XPriority.TRACE.isGreaterOrEqual(this.getChainedPriority()))\n      callAppenders(new LoggingEvent(FQCN, this, XPriority.TRACE, \n\t\t\t\t     message, null));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [7, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 7], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "XCategory", "code": "  protected XCategory(String name) {\n    super(name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.5-6855", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/transformer/KeyRefIterator.java", "language": "java", "name": "org.apache.xalan.transformer.KeyRefIterator", "code": "public class KeyRefIterator extends org.apache.xpath.axes.ChildTestIterator\n{\n  /**\n   * Constructor KeyRefIterator\n   *\n   *\n   * @param ref Key value to match\n   * @param ki The main key iterator used to walk the source tree \n   */\n  public KeyRefIterator(QName name, XMLString ref, Vector keyDecls, DTMIterator ki)\n  {\n    super(null);\n    m_name = name;\n    m_ref = ref;\n    m_keyDeclarations = keyDecls;\n    m_keysNodes = ki;\n    setWhatToShow(org.apache.xml.dtm.DTMFilter.SHOW_ALL);\n  }\n  \n  DTMIterator m_keysNodes;\n  \n  /**\n   * Get the next node via getNextXXX.  Bottlenecked for derived class override.\n   * @return The next node on the axis, or DTM.NULL.\n   */\n  protected int getNextNode()\n  {                  \n  \tint next;   \n    while(DTM.NULL != (next = m_keysNodes.nextNode()))\n    {\n    \tif(DTMIterator.FILTER_ACCEPT == filterNode(next))\n    \t\tbreak;\n    }\n    m_lastFetched = next;\n    \n    return next;\n  }\n\n\n  /**\n   *  Test whether a specified node is visible in the logical view of a\n   * TreeWalker or NodeIterator. This function will be called by the\n   * implementation of TreeWalker and NodeIterator; it is not intended to\n   * be called directly from user code.\n   * \n   * @param testnode  The node to check to see if it passes the filter or not.\n   *\n   * @return  a constant to determine whether the node is accepted,\n   *   rejected, or skipped, as defined  above .\n   */\n  public short filterNode(int testNode)\n  {\n    boolean foundKey = false;\n    Vector keys = m_keyDeclarations;\n\n    QName name = m_name;\n    KeyIterator ki = (KeyIterator)(((XNodeSet)m_keysNodes).getContainedIter());\n    org.apache.xpath.XPathContext xctxt = ki.getXPathContext();\n    \n    if(null == xctxt)\n    \tassertion(false, \"xctxt can not be null here!\");\n\n    try\n    {\n      XMLString lookupKey = m_ref;\n\n      int nDeclarations = keys.size();\n\n      for (int i = 0; i < nDeclarations; i++)\n      {\n        KeyDeclaration kd = (KeyDeclaration) keys.elementAt(i);\n\n        if (!kd.getName().equals(name))\n          continue;\n\n        foundKey = true;\n\n        XObject xuse = kd.getUse().execute(xctxt, testNode, ki.getPrefixResolver());\n\n        if (xuse.getType() != xuse.CLASS_NODESET)\n        {\n          XMLString exprResult = xuse.xstr();\n\n          if (lookupKey.equals(exprResult))\n            return DTMIterator.FILTER_ACCEPT;\n        }\n        else\n        {\n          DTMIterator nl = ((XNodeSet)xuse).iterRaw();\n          int useNode;\n          \n          while (DTM.NULL != (useNode = nl.nextNode()))\n          {\n            DTM dtm = getDTM(useNode);\n            XMLString exprResult = dtm.getStringValue(useNode);\n            if ((null != exprResult) && lookupKey.equals(exprResult))\n              return DTMIterator.FILTER_ACCEPT;\n          }\n        }\n\t  }\n    }\n    catch (javax.xml.transform.TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);\n    }\n\n    if (!foundKey)\n      throw new RuntimeException(\n        XSLMessages.createMessage(\n          XSLTErrorResources.ER_NO_XSLKEY_DECLARATION,\n          new Object[] { name.getLocalName()}));\n    return DTMIterator.FILTER_REJECT;\n  }\n\n  protected XMLString m_ref;\n  protected QName m_name;\n\n  /** Vector of Key declarations in the stylesheet.\n   *  @serial          */\n  protected Vector m_keyDeclarations;", "functions": [{"function_name": "getNextNode", "code": "  protected int getNextNode()\n  {                  \n  \tint next;   \n    while(DTM.NULL != (next = m_keysNodes.nextNode()))\n    {\n    \tif(DTMIterator.FILTER_ACCEPT == filterNode(next))\n    \t\tbreak;\n    }\n    m_lastFetched = next;\n    \n    return next;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "ASSIGN", "BINARY_OP", "IF", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "filterNode", "code": "  public short filterNode(int testNode)\n  {\n    boolean foundKey = false;\n    Vector keys = m_keyDeclarations;\n\n    QName name = m_name;\n    KeyIterator ki = (KeyIterator)(((XNodeSet)m_keysNodes).getContainedIter());\n    org.apache.xpath.XPathContext xctxt = ki.getXPathContext();\n    \n    if(null == xctxt)\n    \tassertion(false, \"xctxt can not be null here!\");\n\n    try\n    {\n      XMLString lookupKey = m_ref;\n\n      int nDeclarations = keys.size();\n\n      for (int i = 0; i < nDeclarations; i++)\n      {\n        KeyDeclaration kd = (KeyDeclaration) keys.elementAt(i);\n\n        if (!kd.getName().equals(name))\n          continue;\n\n        foundKey = true;\n\n        XObject xuse = kd.getUse().execute(xctxt, testNode, ki.getPrefixResolver());\n\n        if (xuse.getType() != xuse.CLASS_NODESET)\n        {\n          XMLString exprResult = xuse.xstr();\n\n          if (lookupKey.equals(exprResult))\n            return DTMIterator.FILTER_ACCEPT;\n        }\n        else\n        {\n          DTMIterator nl = ((XNodeSet)xuse).iterRaw();\n          int useNode;\n          \n          while (DTM.NULL != (useNode = nl.nextNode()))\n          {\n            DTM dtm = getDTM(useNode);\n            XMLString exprResult = dtm.getStringValue(useNode);\n            if ((null != exprResult) && lookupKey.equals(exprResult))\n              return DTMIterator.FILTER_ACCEPT;\n          }\n        }\n\t  }\n    }\n    catch (javax.xml.transform.TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);\n    }\n\n    if (!foundKey)\n      throw new RuntimeException(\n        XSLMessages.createMessage(\n          XSLTErrorResources.ER_NO_XSLKEY_DECLARATION,\n          new Object[] { name.getLocalName()}));\n    return DTMIterator.FILTER_REJECT;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "THROW_RAISE", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [3, 13], [3, 14], [3, 15], [4, 16], [11, 17], [12, 18], [13, 19], [4, 20], [16, 21], [5, 22], [9, 23], [17, 24], [18, 25], [13, 26], [13, 27], [13, 28], [13, 29], [14, 30], [20, 31], [20, 32], [26, 33], [13, 34], [28, 35], [28, 36], [13, 37], [26, 38], [26, 39], [26, 40], [26, 41], [26, 42], [33, 43], [27, 44], [34, 45], [36, 46], [24, 47], [38, 48], [41, 49], [41, 50], [44, 51], [29, 52], [38, 53], [38, 54], [38, 55], [48, 56], [42, 57], [51, 58], [53, 59], [53, 60], [56, 61], [60, 62], [60, 63], [54, 64], [55, 65], [63, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 3], [14, 3], [15, 3], [16, 4], [17, 11], [18, 12], [19, 13], [20, 4], [21, 16], [22, 5], [23, 9], [24, 17], [25, 18], [26, 13], [27, 13], [28, 13], [29, 13], [30, 14], [31, 20], [32, 20], [33, 26], [34, 13], [35, 28], [36, 28], [37, 13], [38, 26], [39, 26], [40, 26], [41, 26], [42, 26], [43, 33], [44, 27], [45, 34], [46, 36], [47, 24], [48, 38], [49, 41], [50, 41], [51, 44], [52, 29], [53, 38], [54, 38], [55, 38], [56, 48], [57, 42], [58, 51], [59, 53], [60, 53], [61, 56], [62, 60], [63, 60], [64, 54], [65, 55], [66, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "KeyRefIterator", "code": "  public KeyRefIterator(QName name, XMLString ref, Vector keyDecls, DTMIterator ki)\n  {\n    super(null);\n    m_name = name;\n    m_ref = ref;\n    m_keyDeclarations = keyDecls;\n    m_keysNodes = ki;\n    setWhatToShow(org.apache.xml.dtm.DTMFilter.SHOW_ALL);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 1}
{"sample_id": "ant-1.5-330", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/types/selectors/SelectorContainer.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.SelectorContainer", "code": "public interface SelectorContainer {\n\n    /**\n     * Indicates whether there are any selectors here.\n     *\n     * @return whether any selectors are in this container\n     */\n    public boolean hasSelectors();\n\n    /**\n     * Gives the count of the number of selectors in this container\n     *\n     * @return the number of selectors in this container\n     */\n    public int selectorCount();\n\n    /**\n     * Returns the set of selectors as an array.\n     *\n     * @return an array of selectors in this container\n     */\n    public FileSelector[] getSelectors(Project p);\n\n    /**\n     * Returns an enumerator for accessing the set of selectors.\n     *\n     * @return an enumerator that goes through each of the selectors\n     */\n    public Enumeration selectorElements();\n\n    /**\n     * Add a new selector into this container.\n     *\n     * @param selector the new selector to add\n     * @return the selector that was added\n     */\n    public void appendSelector(FileSelector selector);\n\n    /* Methods below all add specific selectors */\n\n    /**\n     * add a \"Select\" selector entry on the selector list\n     */\n    public void addSelector(SelectSelector selector);\n\n    /**\n     * add an \"And\" selector entry on the selector list\n     */\n    public void addAnd(AndSelector selector);\n\n    /**\n     * add an \"Or\" selector entry on the selector list\n     */\n    public void addOr(OrSelector selector);\n\n    /**\n     * add a \"Not\" selector entry on the selector list\n     */\n    public void addNot(NotSelector selector);\n\n    /**\n     * add a \"None\" selector entry on the selector list\n     */\n    public void addNone(NoneSelector selector);\n\n    /**\n     * add a majority selector entry on the selector list\n     */\n    public void addMajority(MajoritySelector selector);\n\n    /**\n     * add a selector date entry on the selector list\n     */\n    public void addDate(DateSelector selector);\n\n    /**\n     * add a selector size entry on the selector list\n     */\n    public void addSize(SizeSelector selector);\n\n    /**\n     * add a selector filename entry on the selector list\n     */\n    public void addFilename(FilenameSelector selector);\n\n    /**\n     * add an extended selector entry on the selector list\n     */\n    public void addCustom(ExtendSelector selector);\n\n    /**\n     * add a contains selector entry on the selector list\n     */\n    public void addContains(ContainsSelector selector);\n\n    /**\n     * add a present selector entry on the selector list\n     */\n    public void addPresent(PresentSelector selector);\n\n    /**\n     * add a depth selector entry on the selector list\n     */\n    public void addDepth(DepthSelector selector);\n\n    /**\n     * add a depends selector entry on the selector list\n     */\n    public void addDepend(DependSelector selector);", "functions": [{"function_name": "hasSelectors", "code": "    public boolean hasSelectors();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "selectorCount", "code": "    public int selectorCount();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getSelectors", "code": "    public FileSelector[] getSelectors(Project p);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "selectorElements", "code": "    public Enumeration selectorElements();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "appendSelector", "code": "    public void appendSelector(FileSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addSelector", "code": "    public void addSelector(SelectSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addAnd", "code": "    public void addAnd(AndSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addOr", "code": "    public void addOr(OrSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addNot", "code": "    public void addNot(NotSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addNone", "code": "    public void addNone(NoneSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addMajority", "code": "    public void addMajority(MajoritySelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addDate", "code": "    public void addDate(DateSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addSize", "code": "    public void addSize(SizeSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addFilename", "code": "    public void addFilename(FilenameSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addCustom", "code": "    public void addCustom(ExtendSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addContains", "code": "    public void addContains(ContainsSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addPresent", "code": "    public void addPresent(PresentSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addDepth", "code": "    public void addDepth(DepthSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addDepend", "code": "    public void addDepend(DependSelector selector);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ivy-2.0-3350", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/search/OrganisationEntry.java", "language": "java", "name": "org.apache.ivy.core.search.OrganisationEntry", "code": "public class OrganisationEntry {\n    private DependencyResolver resolver;\n\n    private String organisation;\n\n    public OrganisationEntry(DependencyResolver resolver, String organisation) {\n        this.resolver = resolver;\n        this.organisation = organisation;\n    }\n\n    public String getOrganisation() {\n        return organisation;\n    }\n\n    public DependencyResolver getResolver() {\n        return resolver;\n    }\n\n    public String toString() {\n        return organisation;", "functions": [{"function_name": "getOrganisation", "code": "    public String getOrganisation() {\n        return organisation;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getResolver", "code": "    public DependencyResolver getResolver() {\n        return resolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n        return organisation;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "OrganisationEntry", "code": "    public OrganisationEntry(DependencyResolver resolver, String organisation) {\n        this.resolver = resolver;\n        this.organisation = organisation;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.5-6999", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/objects/XMLStringFactoryImpl.java", "language": "java", "name": "org.apache.xpath.objects.XMLStringFactoryImpl", "code": "public class XMLStringFactoryImpl extends XMLStringFactory\n{\n  /** The XMLStringFactory to pass to DTM construction.   */\n  private static XMLStringFactory m_xstringfactory =\n    new XMLStringFactoryImpl();\n\n  /**\n   * Get the XMLStringFactory to pass to DTM construction.\n   *\n   *\n   * @return A never-null static reference to a String factory.\n   */\n  public static XMLStringFactory getFactory()\n  {\n    return m_xstringfactory;\n  }\n\n  /**\n   * Create a new XMLString from a Java string.\n   *\n   *\n   * @param string Java String reference, which must be non-null.\n   *\n   * @return An XMLString object that wraps the String reference.\n   */\n  public XMLString newstr(String string)\n  {\n    return new XString(string);\n  }\n\n  /**\n   * Create a XMLString from a FastStringBuffer.\n   *\n   *\n   * @param string FastStringBuffer reference, which must be non-null.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   *\n   * @return An XMLString object that wraps the FastStringBuffer reference.\n   */\n  public XMLString newstr(FastStringBuffer fsb, int start, int length)\n  {\n    return new XStringForFSB(fsb, start, length);\n  }\n  \n  /**\n   * Create a XMLString from a FastStringBuffer.\n   *\n   *\n   * @param string FastStringBuffer reference, which must be non-null.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   *\n   * @return An XMLString object that wraps the FastStringBuffer reference.\n   */\n  public XMLString newstr(char[] string, int start, int length)\n  {\n    return new XStringForChars(string, start, length);\n  }\n  \n  /**\n   * Get a cheap representation of an empty string.\n   * \n   * @return An non-null reference to an XMLString that represents \"\".\n   */\n  public XMLString emptystr()\n  {\n    return XString.EMPTYSTRING;", "functions": [{"function_name": "getFactory", "code": "  public static XMLStringFactory getFactory()\n  {\n    return m_xstringfactory;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "newstr", "code": "  public XMLString newstr(String string)\n  {\n    return new XString(string);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "newstr", "code": "  public XMLString newstr(FastStringBuffer fsb, int start, int length)\n  {\n    return new XStringForFSB(fsb, start, length);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "newstr", "code": "  public XMLString newstr(char[] string, int start, int length)\n  {\n    return new XStringForChars(string, start, length);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "emptystr", "code": "  public XMLString emptystr()\n  {\n    return XString.EMPTYSTRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.6-7946", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/cmdline/ObjectFactory.java", "language": "java", "name": "org.apache.xalan.xsltc.cmdline.ObjectFactory", "code": "class ObjectFactory {\n\n\n    private static final String DEFAULT_PROPERTIES_FILENAME =\n                                                     \"xalan.properties\";\n\n    private static final String SERVICES_PATH = \"META-INF/services/\";\n\n    /** Set to true for debugging */\n    private static final boolean DEBUG = false;\n\n    /** cache the contents of the xalan.properties file.\n     *  Until an attempt has been made to read this file, this will\n     * be null; if the file does not exist or we encounter some other error\n     * during the read, this will be empty.\n     */\n    private static Properties fXalanProperties = null;\n\n    /***\n     * Cache the time stamp of the xalan.properties file so\n     * that we know if it's been modified and can invalidate\n     * the cache when necessary.\n     */\n    private static long fLastModified = -1;\n\n\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);\n\t\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);\n        }\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);\n        }\n\t}\n    /**\n     * Finds the name of the required implementation class in the specified\n     * order.  The specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return name of class that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        FileInputStream fis =\n                                         ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                        fis.close();\n                    }\n\t            } catch (Exception x) {\n\t                fXalanProperties = null;\n\t                fLastModified = -1;\n\t            }\n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }\n        } else {\n            try {\n                FileInputStream fis =\n                           ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                fis.close();\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);\n\t}\n\n    /** Prints a message to standard error if debugging is enabled. */\n    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);\n        }\n\t}\n    /**\n     * Figure out which ClassLoader to use.  For JDK 1.2 and later use\n     * the context ClassLoader.\n     */\n    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;\n\t}\n    /**\n     * Create an instance of a class using the specified ClassLoader\n     */ \n    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);\n        }\n    }\n\n    /**\n     * Find a Class using the specified ClassLoader\n     */ \n    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n            if (security != null){\n                security.checkPackageAccess(className);\n             }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;\n    }\n\n    /**\n     * Find the name of service provider using Jar Service Provider Mechanism\n     *\n     * @return instance of provider class if found or null\n     */\n    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n            rd.close();\n        } catch (IOException x) {\n            return null;\n        }\n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;\n    }\n\n\n    /**\n     * A configuration error.\n     */\n    static class ConfigurationError \n        extends Error {\n\n\n        /** Exception. */\n        private Exception exception;\n\n\n        /**\n         * Construct a new instance with the specified detail string and\n         * exception.\n         */\n        ConfigurationError(String msg, Exception x) {\n            super(msg);\n            this.exception = x;\n\t\t}\n\n        /** Returns the exception associated to this error. */\n        Exception getException() {\n            return exception;", "functions": [{"function_name": "createObject", "code": "    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createObject", "code": "    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [7, 11], [1, 12], [2, 13], [10, 14], [3, 15], [11, 16], [12, 17], [9, 18], [13, 19], [16, 20], [17, 21], [19, 22], [19, 23], [20, 24], [23, 25], [23, 26], [24, 27], [24, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 7], [12, 1], [13, 2], [14, 10], [15, 3], [16, 11], [17, 12], [18, 9], [19, 13], [20, 16], [21, 17], [22, 19], [23, 19], [24, 20], [25, 23], [26, 23], [27, 24], [28, 24], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [8, 13], [9, 14], [1, 15], [12, 16], [3, 17], [4, 18], [13, 19], [14, 20], [15, 21], [11, 22], [2, 23], [19, 24], [20, 25], [21, 26], [22, 27], [24, 28], [25, 29], [25, 30], [26, 31], [26, 32], [28, 33], [28, 34], [30, 35], [32, 36], [34, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 8], [14, 9], [15, 1], [16, 12], [17, 3], [18, 4], [19, 13], [20, 14], [21, 15], [22, 11], [23, 2], [24, 19], [25, 20], [26, 21], [27, 22], [28, 24], [29, 25], [30, 25], [31, 26], [32, 26], [33, 28], [34, 28], [35, 30], [36, 32], [37, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "lookUpFactoryClassName", "code": "    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        FileInputStream fis =\n                                         ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                        fis.close();\n                    }\n\t            } catch (Exception x) {\n\t                fXalanProperties = null;\n\t                fLastModified = -1;\n\t            }\n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }\n        } else {\n            try {\n                FileInputStream fis =\n                           ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                fis.close();\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "TRY", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CATCH", "VAR_DECL", "VAR_DECL", "BINARY_OP", "TRY", "VAR_DECL", "CATCH", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CATCH", "IF", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [5, 13], [5, 14], [5, 15], [2, 16], [11, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [12, 23], [4, 24], [14, 25], [6, 26], [2, 27], [18, 28], [18, 29], [18, 30], [19, 31], [3, 32], [3, 33], [20, 34], [20, 35], [14, 36], [25, 37], [15, 38], [27, 39], [18, 40], [18, 41], [18, 42], [31, 43], [32, 44], [32, 45], [32, 46], [20, 47], [20, 48], [20, 49], [21, 50], [22, 51], [14, 52], [39, 53], [40, 54], [29, 55], [30, 56], [19, 57], [46, 58], [33, 59], [34, 60], [34, 61], [47, 62], [48, 63], [49, 64], [35, 65], [52, 66], [53, 67], [53, 68], [56, 69], [57, 70], [44, 71], [44, 72], [45, 73], [46, 74], [46, 75], [58, 76], [60, 77], [61, 78], [64, 79], [65, 80], [66, 81], [68, 82], [71, 83], [72, 84], [45, 85], [45, 86], [45, 87], [75, 88], [79, 89], [73, 90], [87, 91], [75, 92], [88, 93], [89, 94], [89, 95], [74, 96], [74, 97], [75, 98], [93, 99], [96, 100], [97, 101], [98, 102], [99, 103], [92, 104], [92, 105], [104, 106], [105, 107], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 5], [14, 5], [15, 5], [16, 2], [17, 11], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 12], [24, 4], [25, 14], [26, 6], [27, 2], [28, 18], [29, 18], [30, 18], [31, 19], [32, 3], [33, 3], [34, 20], [35, 20], [36, 14], [37, 25], [38, 15], [39, 27], [40, 18], [41, 18], [42, 18], [43, 31], [44, 32], [45, 32], [46, 32], [47, 20], [48, 20], [49, 20], [50, 21], [51, 22], [52, 14], [53, 39], [54, 40], [55, 29], [56, 30], [57, 19], [58, 46], [59, 33], [60, 34], [61, 34], [62, 47], [63, 48], [64, 49], [65, 35], [66, 52], [67, 53], [68, 53], [69, 56], [70, 57], [71, 44], [72, 44], [73, 45], [74, 46], [75, 46], [76, 58], [77, 60], [78, 61], [79, 64], [80, 65], [81, 66], [82, 68], [83, 71], [84, 72], [85, 45], [86, 45], [87, 45], [88, 75], [89, 79], [90, 73], [91, 87], [92, 75], [93, 88], [94, 89], [95, 89], [96, 74], [97, 74], [98, 75], [99, 93], [100, 96], [101, 97], [102, 98], [103, 99], [104, 92], [105, 92], [106, 104], [107, 105], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107]]}, {"function_name": "debugPrintln", "code": "    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "findClassLoader", "code": "    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [4, 10], [5, 11], [6, 12], [2, 13], [8, 14], [9, 15], [13, 16], [8, 17], [14, 18], [9, 19], [9, 20], [9, 21], [20, 22], [9, 23], [20, 24], [20, 25], [21, 26], [20, 27], [24, 28], [25, 29], [27, 30], [24, 31], [28, 32], [25, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 4], [11, 5], [12, 6], [13, 2], [14, 8], [15, 9], [16, 13], [17, 8], [18, 14], [19, 9], [20, 9], [21, 9], [22, 20], [23, 9], [24, 20], [25, 20], [26, 21], [27, 20], [28, 24], [29, 25], [30, 27], [31, 24], [32, 28], [33, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "newInstance", "code": "    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [6, 11], [1, 12], [10, 13], [11, 14], [12, 15], [8, 16], [9, 17], [13, 18], [14, 19], [15, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [21, 26], [21, 27], [23, 28], [25, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 6], [12, 1], [13, 10], [14, 11], [15, 12], [16, 8], [17, 9], [18, 13], [19, 14], [20, 15], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 21], [27, 21], [28, 23], [29, 25], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "findProviderClass", "code": "    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n            if (security != null){\n                security.checkPackageAccess(className);\n             }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "IF", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "CALL", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [4, 11], [2, 12], [9, 13], [10, 14], [11, 15], [5, 16], [12, 17], [2, 18], [15, 19], [17, 20], [12, 21], [18, 22], [11, 23], [21, 24], [20, 25], [20, 26], [20, 27], [26, 28], [26, 29], [28, 30], [29, 31], [27, 32], [28, 33], [26, 34], [28, 35], [28, 36], [34, 37], [35, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 4], [12, 2], [13, 9], [14, 10], [15, 11], [16, 5], [17, 12], [18, 2], [19, 15], [20, 17], [21, 12], [22, 18], [23, 11], [24, 21], [25, 20], [26, 20], [27, 20], [28, 26], [29, 26], [30, 28], [31, 29], [32, 27], [33, 28], [34, 26], [35, 28], [36, 28], [37, 34], [38, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "findJarServiceProviderName", "code": "    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n            rd.close();\n        } catch (IOException x) {\n            return null;\n        }\n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CATCH", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [5, 17], [0, 18], [7, 19], [8, 20], [0, 21], [2, 22], [15, 23], [15, 24], [16, 25], [3, 26], [3, 27], [4, 28], [5, 29], [18, 30], [7, 31], [19, 32], [8, 33], [8, 34], [20, 35], [21, 36], [9, 37], [10, 38], [11, 39], [12, 40], [2, 41], [23, 42], [24, 43], [25, 44], [27, 45], [17, 46], [29, 47], [30, 48], [31, 49], [33, 50], [41, 51], [46, 52], [47, 53], [48, 54], [48, 55], [34, 56], [51, 57], [52, 58], [53, 59], [55, 60], [33, 61], [33, 62], [61, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 5], [18, 0], [19, 7], [20, 8], [21, 0], [22, 2], [23, 15], [24, 15], [25, 16], [26, 3], [27, 3], [28, 4], [29, 5], [30, 18], [31, 7], [32, 19], [33, 8], [34, 8], [35, 20], [36, 21], [37, 9], [38, 10], [39, 11], [40, 12], [41, 2], [42, 23], [43, 24], [44, 25], [45, 27], [46, 17], [47, 29], [48, 30], [49, 31], [50, 33], [51, 41], [52, 46], [53, 47], [54, 48], [55, 48], [56, 34], [57, 51], [58, 52], [59, 53], [60, 55], [61, 33], [62, 33], [63, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}], "label": 0}
{"sample_id": "ant-1.6-497", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/selectors/NotSelector.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.NotSelector", "code": "public class NotSelector extends NoneSelector {\n\n    /**\n     * Default constructor.\n     */\n    public NotSelector() {\n    }\n\n    /**\n     * @return a string representation of the selector\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        if (hasSelectors()) {\n            buf.append(\"{notselect: \");\n            buf.append(super.toString());\n            buf.append(\"}\");\n        }\n        return buf.toString();\n    }\n\n    /**\n     * Makes sure that there is only one entry, sets an error message if\n     * not.\n     */\n    public void verifySettings() {\n        if (selectorCount() != 1) {\n            setError(\"One and only one selector is allowed within the \"\n                + \"<not> tag\");", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        if (hasSelectors()) {\n            buf.append(\"{notselect: \");\n            buf.append(super.toString());\n            buf.append(\"}\");\n        }\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [2, 7], [2, 8], [2, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 2], [8, 2], [9, 2], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "verifySettings", "code": "    public void verifySettings() {\n        if (selectorCount() != 1) {\n            setError(\"One and only one selector is allowed within the \"\n                + \"<not> tag\");", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 1], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "NotSelector", "code": "    public NotSelector() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.1-4106", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/BSHTypedVariableDeclaration.java", "language": "java", "name": "bsh.BSHTypedVariableDeclaration", "code": "class BSHTypedVariableDeclaration extends SimpleNode\n{\n    public boolean isFinal;\n\t\n    BSHTypedVariableDeclaration(int id) { super(id); }\n\n\t/**\n\t\tevaluate the type and one or more variable declarators, e.g.:\n\t\t\tint a, b=5, c;\n\n\t*/\n    public Object eval( CallStack callstack, Interpreter interpreter)  \n\t\tthrows EvalError\n    {\n\t\ttry {\n\t\t\tNameSpace namespace = callstack.top();\n\t\t\tBSHType typeNode = ((BSHType)jjtGetChild(0));\n\t\t\tClass type = typeNode.getType( namespace );\n\n\t\t\tint n = jjtGetNumChildren();\n\t\t\tfor (int i = 1; i < n; i++)\n\t\t\t{\n\t\t\t\tBSHVariableDeclarator dec = \n\t\t\t\t\t(BSHVariableDeclarator)jjtGetChild(i);\n\n\t\t\t\t// Type node is passed down the chain for array initializers\n\t\t\t\t// which need it under some circumstances\n\t\t\t\tObject value = dec.eval( typeNode, callstack, interpreter);\n\n\t\t\t\t// simple declaration with no value, e.g. int a;\n\t\t\t\t// null in value will prompt defaulting in setTypedVariable\n\t\t\t\tif ( value == Primitive.VOID ) \n\t\t\t\t\tvalue = null;\n\t\t\t\telse \n\t\t\t\t// true null value being assigned\n\t\t\t\tif ( value == Primitive.NULL ) {\n\t\t\t\t\t// leave as Primitive.NULL\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t// allow specific numeric conversions on declaration\n\t\t\t\tif ( canCastToDeclaredType( value, type ) )\n\t\t\t\t\tvalue = BSHCastExpression.castObject( value, type );\n\t\t\t\telse {\n\t\t\t\t\t// leave value alone\n\t\t\t\t}\n\n\t\t\t\tnamespace.setTypedVariable( dec.name, type, value, isFinal );\n\t\t\t}\n\t\t} catch ( EvalError e ) {\n\t\t\te.reThrow( \"Typed variable declaration\", this );\n\t\t}\n\n        return Primitive.VOID;\n    }\n\n\t/**\n\t\tDetermine if a cast would be legitimate in order to handle the \n\t\tspecial cases where a numeric declared var is assigned a type larger \n\t\tthan it can handle. (JLS cite??)\n\n\t\t\tbyte b = 5;\n\t\t\tbyte b1 = 5*10;\n\n\t\tNormally the above would be int types.\n\t*/\n\t/*\n\t\tNote: in theory this probably shouldn't be considered a cast, but \n\t\tshould be taken into account during literal and expression evaluation\n\t\twhere the result type is guided by the context.  However this is much\n\t\tsimpler to deal with and there is no other use for the other that I'm\n\t\taware of.\n\t*/\n\tboolean canCastToDeclaredType( Object value, Class toType ) {\n\t\tif ( !(value instanceof Primitive) )\n\t\t\treturn false;\n\t\tClass fromType = ((Primitive)value).getType();\n\t\t\n\t\tif ( (toType==Byte.TYPE || toType==Short.TYPE || toType==Character.TYPE)\n\t\t\t&& fromType == Integer.TYPE \n\t\t)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;", "functions": [{"function_name": "eval", "code": "    public Object eval( CallStack callstack, Interpreter interpreter)  \n\t\tthrows EvalError\n    {\n\t\ttry {\n\t\t\tNameSpace namespace = callstack.top();\n\t\t\tBSHType typeNode = ((BSHType)jjtGetChild(0));\n\t\t\tClass type = typeNode.getType( namespace );\n\n\t\t\tint n = jjtGetNumChildren();\n\t\t\tfor (int i = 1; i < n; i++)\n\t\t\t{\n\t\t\t\tBSHVariableDeclarator dec = \n\t\t\t\t\t(BSHVariableDeclarator)jjtGetChild(i);\n\n\t\t\t\t// Type node is passed down the chain for array initializers\n\t\t\t\t// which need it under some circumstances\n\t\t\t\tObject value = dec.eval( typeNode, callstack, interpreter);\n\n\t\t\t\t// simple declaration with no value, e.g. int a;\n\t\t\t\t// null in value will prompt defaulting in setTypedVariable\n\t\t\t\tif ( value == Primitive.VOID ) \n\t\t\t\t\tvalue = null;\n\t\t\t\telse \n\t\t\t\t// true null value being assigned\n\t\t\t\tif ( value == Primitive.NULL ) {\n\t\t\t\t\t// leave as Primitive.NULL\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t// allow specific numeric conversions on declaration\n\t\t\t\tif ( canCastToDeclaredType( value, type ) )\n\t\t\t\t\tvalue = BSHCastExpression.castObject( value, type );\n\t\t\t\telse {\n\t\t\t\t\t// leave value alone\n\t\t\t\t}\n\n\t\t\t\tnamespace.setTypedVariable( dec.name, type, value, isFinal );\n\t\t\t}\n\t\t} catch ( EvalError e ) {\n\t\t\te.reThrow( \"Typed variable declaration\", this );\n\t\t}\n\n        return Primitive.VOID;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [6, 11], [5, 12], [6, 13], [6, 14], [6, 15], [7, 16], [8, 17], [10, 18], [12, 19], [6, 20], [13, 21], [13, 22], [6, 23], [9, 24], [21, 25], [21, 26], [13, 27], [14, 28], [24, 29], [25, 30], [27, 31], [15, 32], [25, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 6], [12, 5], [13, 6], [14, 6], [15, 6], [16, 7], [17, 8], [18, 10], [19, 12], [20, 6], [21, 13], [22, 13], [23, 6], [24, 9], [25, 21], [26, 21], [27, 13], [28, 14], [29, 24], [30, 25], [31, 27], [32, 15], [33, 25], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "canCastToDeclaredType", "code": "\tboolean canCastToDeclaredType( Object value, Class toType ) {\n\t\tif ( !(value instanceof Primitive) )\n\t\t\treturn false;\n\t\tClass fromType = ((Primitive)value).getType();\n\t\t\n\t\tif ( (toType==Byte.TYPE || toType==Short.TYPE || toType==Character.TYPE)\n\t\t\t&& fromType == Integer.TYPE \n\t\t)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [3, 9], [3, 10], [6, 11], [7, 12], [8, 13], [8, 14], [9, 15], [14, 16], [14, 17], [17, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 3], [10, 3], [11, 6], [12, 7], [13, 8], [14, 8], [15, 9], [16, 14], [17, 14], [18, 17], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "BSHTypedVariableDeclaration", "code": "    BSHTypedVariableDeclaration(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.6-569", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/cvslib/RCSFile.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.cvslib.RCSFile", "code": "class RCSFile {\n    private String m_name;\n    private String m_revision;\n    private String m_previousRevision;\n\n\n    RCSFile(final String name, final String rev) {\n        this(name, rev, null);\n    }\n\n\n    RCSFile(final String name,\n                  final String revision,\n                  final String previousRevision) {\n        m_name = name;\n        m_revision = revision;\n        if (!revision.equals(previousRevision)) {\n            m_previousRevision = previousRevision;\n        }\n    }\n\n\n    String getName() {\n        return m_name;\n    }\n\n\n    String getRevision() {\n        return m_revision;\n    }\n\n\n    String getPreviousRevision() {\n        return m_previousRevision;", "functions": [{"function_name": "getName", "code": "    String getName() {\n        return m_name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRevision", "code": "    String getRevision() {\n        return m_revision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPreviousRevision", "code": "    String getPreviousRevision() {\n        return m_previousRevision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RCSFile", "code": "    RCSFile(final String name, final String rev) {\n        this(name, rev, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RCSFile", "code": "    RCSFile(final String name,\n                  final String revision,\n                  final String previousRevision) {\n        m_name = name;\n        m_revision = revision;\n        if (!revision.equals(previousRevision)) {\n            m_previousRevision = previousRevision;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "poi-2.0-5478", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hpsf/wellknown/SectionIDMap.java", "language": "java", "name": "org.apache.poi.hpsf.wellknown.SectionIDMap", "code": "public class SectionIDMap extends HashMap\n{\n\n    /**\n     * <p>The SummaryInformation's section's format ID.</p>\n     */\n    public final static byte[] SUMMARY_INFORMATION_ID = new byte[]\n    {\n\t(byte) 0xF2, (byte) 0x9F, (byte) 0x85, (byte) 0xE0,\n\t(byte) 0x4F, (byte) 0xF9, (byte) 0x10, (byte) 0x68,\n\t(byte) 0xAB, (byte) 0x91, (byte) 0x08, (byte) 0x00,\n\t(byte) 0x2B, (byte) 0x27, (byte) 0xB3, (byte) 0xD9\n    };\n\n    /**\n     * <p>The DocumentSummaryInformation's first section's format\n     * ID. The second section has a different format ID which is not\n     * well-known.</p>\n     */\n    public final static byte[] DOCUMENT_SUMMARY_INFORMATION_ID = new byte[]\n    {\n\t(byte) 0xD5, (byte) 0xCD, (byte) 0xD5, (byte) 0x02,\n\t(byte) 0x2E, (byte) 0x9C, (byte) 0x10, (byte) 0x1B,\n\t(byte) 0x93, (byte) 0x97, (byte) 0x08, (byte) 0x00,\n\t(byte) 0x2B, (byte) 0x2C, (byte) 0xF9, (byte) 0xAE\n    };\n\n    public final static String UNDEFINED = \"[undefined]\";\n\n    private static SectionIDMap defaultMap;\n\n\n\n    /**\n     * <p>Returns the singleton instance of the default {@link\n     * SectionIDMap}.</p>\n     *\n     * @return The instance value\n     */\n    public static SectionIDMap getInstance()\n    {\n        if (defaultMap == null)\n\t{\n            final SectionIDMap m = new SectionIDMap();\n            m.put(SUMMARY_INFORMATION_ID,\n\t\t  PropertyIDMap.getSummaryInformationProperties());\n            m.put(DOCUMENT_SUMMARY_INFORMATION_ID,\n\t\t  PropertyIDMap.getDocumentSummaryInformationProperties());\n            defaultMap = m;\n        }\n        return defaultMap;\n    }\n\n\n\n    /**\n     * <p>Returns the property ID string that is associated with a\n     * given property ID in a section format ID's namespace.</p>\n     *\n     * @param sectionFormatID Each section format ID has its own name\n     * space of property ID strings and thus must be specified.\n     * @param  pid The property ID\n     * @return The well-known property ID string associated with the\n     * property ID <var>pid</var> in the name space spanned by <var>\n     * sectionFormatID</var> . If the <var>pid</var>\n     * /<var>sectionFormatID </var> combination is not well-known, the\n     * string \"[undefined]\" is returned.\n     */\n    public static String getPIDString(final byte[] sectionFormatID,\n\t\t\t\t      final int pid)\n    {\n        final PropertyIDMap m =\n\t    (PropertyIDMap) getInstance().get(sectionFormatID);\n        if (m == null)\n            return UNDEFINED;\n        else\n\t{\n            final String s = (String) m.get(pid);\n            if (s == null)\n                return UNDEFINED;\n            return s;\n        }\n    }\n\n\n\n    /**\n     * <p>Returns the {@link PropertyIDMap} for a given section format\n     * ID.</p>\n     */\n    public PropertyIDMap get(final byte[] sectionFormatID)\n    {\n        return (PropertyIDMap) super.get(new String(sectionFormatID));\n    }\n\n\n\n    /**\n     * <p>Returns the {@link PropertyIDMap} for a given section format\n     * ID.</p>\n     *\n     * @param sectionFormatID A section format ID as a <tt>byte[]</tt> .\n     * @deprecated Use {@link #get(byte[])} instead!\n     */\n    public Object get(final Object sectionFormatID)\n    {\n        return get((byte[]) sectionFormatID);\n    }\n\n\n\n    /**\n     * <p>Associates a section format ID with a {@link\n     * PropertyIDMap}.</p>\n     */\n    public Object put(final byte[] sectionFormatID,\n\t\t      final PropertyIDMap propertyIDMap)\n    {\n        return super.put(new String(sectionFormatID), propertyIDMap);\n    }\n\n\n\n    /**\n     * @deprecated Use {@link #put(byte[], PropertyIDMap)} instead!\n     */\n    public Object put(final Object key, final Object value)\n    {\n        return put((byte[]) key, (PropertyIDMap) value);", "functions": [{"function_name": "getInstance", "code": "    public static SectionIDMap getInstance()\n    {\n        if (defaultMap == null)\n\t{\n            final SectionIDMap m = new SectionIDMap();\n            m.put(SUMMARY_INFORMATION_ID,\n\t\t  PropertyIDMap.getSummaryInformationProperties());\n            m.put(DOCUMENT_SUMMARY_INFORMATION_ID,\n\t\t  PropertyIDMap.getDocumentSummaryInformationProperties());\n            defaultMap = m;\n        }\n        return defaultMap;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [7, 9], [8, 10], [4, 11], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 7], [10, 8], [11, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getPIDString", "code": "    public static String getPIDString(final byte[] sectionFormatID,\n\t\t\t\t      final int pid)\n    {\n        final PropertyIDMap m =\n\t    (PropertyIDMap) getInstance().get(sectionFormatID);\n        if (m == null)\n            return UNDEFINED;\n        else\n\t{\n            final String s = (String) m.get(pid);\n            if (s == null)\n                return UNDEFINED;\n            return s;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [8, 11], [8, 12], [2, 13], [12, 14], [13, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 8], [12, 8], [13, 2], [14, 12], [15, 13], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "get", "code": "    public PropertyIDMap get(final byte[] sectionFormatID)\n    {\n        return (PropertyIDMap) super.get(new String(sectionFormatID));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "get", "code": "    public Object get(final Object sectionFormatID)\n    {\n        return get((byte[]) sectionFormatID);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "put", "code": "    public Object put(final byte[] sectionFormatID,\n\t\t      final PropertyIDMap propertyIDMap)\n    {\n        return super.put(new String(sectionFormatID), propertyIDMap);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "put", "code": "    public Object put(final Object key, final Object value)\n    {\n        return put((byte[]) key, (PropertyIDMap) value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.7-919", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/selectors/TypeSelector.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.TypeSelector", "code": "public class TypeSelector extends BaseExtendSelector {\n\n    private String type = null;\n\n    /** Key to used for parameterized custom selector */\n    public static final String TYPE_KEY = \"type\";\n\n    /**\n     * Creates a new <code>TypeSelector</code> instance.\n     *\n     */\n    public TypeSelector() {\n    }\n\n    /**\n     * @return a string describing this object\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer(\"{typeselector type: \");\n        buf.append(type);\n        buf.append(\"}\");\n        return buf.toString();\n    }\n\n    /**\n     * Set the type of file to require.\n     * @param fileTypes the type of file - file or dir\n     */\n    public void setType(FileType fileTypes) {\n        this.type = fileTypes.getValue();\n    }\n\n    /**\n     * When using this as a custom selector, this method will be called.\n     * It translates each parameter into the appropriate setXXX() call.\n     *\n     * @param parameters the complete set of parameters for this selector\n     */\n    public void setParameters(Parameter[] parameters) {\n        super.setParameters(parameters);\n        if (parameters != null) {\n            for (int i = 0; i < parameters.length; i++) {\n                String paramname = parameters[i].getName();\n                if (TYPE_KEY.equalsIgnoreCase(paramname)) {\n                    FileType t = new FileType();\n                    t.setValue(parameters[i].getValue());\n                    setType(t);\n                } else {\n                    setError(\"Invalid parameter \" + paramname);\n                }\n            }\n        }\n    }\n\n    /**\n     * Checks to make sure all settings are kosher. In this case, it\n     * means that the pattern attribute has been set.\n     *\n     */\n    public void verifySettings() {\n        if (type == null) {\n            setError(\"The type attribute is required\");\n        }\n    }\n\n    /**\n     * The heart of the matter. This is where the selector gets to decide\n     * on the inclusion of a file in a particular fileset.\n     *\n     * @param basedir the base directory the scan is being done from\n     * @param filename is the name of the file to check\n     * @param file is a java.io.File object the selector can use\n     * @return whether the file should be selected or not\n     */\n    public boolean isSelected(File basedir, String filename, File file) {\n\n        validate();\n\n        if (file.isDirectory()) {\n            return type.equals(FileType.DIR);\n        } else {\n            return type.equals(FileType.FILE);\n        }\n    }\n\n    /**\n     * Enumerated attribute with the values for types of file\n     */\n    public static class FileType extends EnumeratedAttribute {\n        /** the string value for file */\n        public static final String FILE = \"file\";\n        /** the string value for dir */\n        public static final String DIR = \"dir\";\n\n        /**\n         * @return the values as an array of strings\n         */\n        public String[] getValues() {\n            return new String[]{FILE, DIR};", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer(\"{typeselector type: \");\n        buf.append(type);\n        buf.append(\"}\");\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [4, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 4], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setType", "code": "    public void setType(FileType fileTypes) {\n        this.type = fileTypes.getValue();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setParameters", "code": "    public void setParameters(Parameter[] parameters) {\n        super.setParameters(parameters);\n        if (parameters != null) {\n            for (int i = 0; i < parameters.length; i++) {\n                String paramname = parameters[i].getName();\n                if (TYPE_KEY.equalsIgnoreCase(paramname)) {\n                    FileType t = new FileType();\n                    t.setValue(parameters[i].getValue());\n                    setType(t);\n                } else {\n                    setError(\"Invalid parameter \" + paramname);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [4, 8], [7, 9], [4, 10], [7, 11], [7, 12], [7, 13], [7, 14], [8, 15], [12, 16], [11, 17], [16, 18], [14, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 4], [9, 7], [10, 4], [11, 7], [12, 7], [13, 7], [14, 7], [15, 8], [16, 12], [17, 11], [18, 16], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "verifySettings", "code": "    public void verifySettings() {\n        if (type == null) {\n            setError(\"The type attribute is required\");", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isSelected", "code": "    public boolean isSelected(File basedir, String filename, File file) {\n\n        validate();\n\n        if (file.isDirectory()) {\n            return type.equals(FileType.DIR);\n        } else {\n            return type.equals(FileType.FILE);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "TypeSelector", "code": "    public TypeSelector() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.5-5618", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/ddf/EscherRecord.java", "language": "java", "name": "org.apache.poi.ddf.EscherRecord", "code": "abstract public class EscherRecord\n{\n    private short options;\n    private short recordId;\n\n    /**\n     * Create a new instance\n     */\n    public EscherRecord()\n    {\n    }\n\n    /**\n     * Delegates to fillFields(byte[], int, EscherRecordFactory)\n     *\n     * @see #fillFields(byte[], int, org.apache.poi.ddf.EscherRecordFactory)\n     */\n    protected int fillFields( byte[] data, EscherRecordFactory f )\n    {\n        return fillFields( data, 0, f );\n    }\n\n    /**\n     * The contract of this method is to deserialize an escher record including\n     * it's children.\n     *\n     * @param data      The byte array containing the serialized escher\n     *                  records.\n     * @param offset    The offset into the byte array.\n     * @param recordFactory     A factory for creating new escher records.\n     * @return          The number of bytes written.\n     */\n    public abstract int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory );\n\n    /**\n     * Reads the 8 byte header information and populates the <code>options</code>\n     * and <code>recordId</code> records.\n     *\n     * @param data      the byte array to read from\n     * @param offset    the offset to start reading from\n     * @return          the number of bytes remaining in this record.  This\n     *                  may include the children if this is a container.\n     */\n    protected int readHeader( byte[] data, int offset )\n    {\n        EscherRecordHeader header = EscherRecordHeader.readHeader(data, offset);\n        options = header.getOptions();\n        recordId = header.getRecordId();\n        return header.getRemainingBytes();\n    }\n\n    /**\n     * Determine whether this is a container record by inspecting the option\n     * field.\n     * @return  true is this is a container field.\n     */\n    public boolean isContainerRecord()\n    {\n        return (options & (short)0x000f) == (short)0x000f;\n    }\n\n    /**\n     * @return The options field for this record.  All records have one.\n     */\n    public short getOptions()\n    {\n        return options;\n    }\n\n    /**\n     * Set the options this this record.  Container records should have the\n     * last nibble set to 0xF.\n     */\n    public void setOptions( short options )\n    {\n        this.options = options;\n    }\n\n    /**\n     * Serializes to a new byte array.  This is done by delegating to\n     * serialize(int, byte[]);\n     *\n     * @return  the serialized record.\n     * @see #serialize(int, byte[])\n     */\n    public byte[] serialize()\n    {\n        byte[] retval = new byte[getRecordSize()];\n\n        serialize( 0, retval );\n        return retval;\n    }\n\n    /**\n     * Serializes to an existing byte array without serialization listener.\n     * This is done by delegating to serialize(int, byte[], EscherSerializationListener).\n     *\n     * @param offset    the offset within the data byte array.\n     * @param data      the data array to serialize to.\n     * @return          The number of bytes written.\n     *\n     * @see #serialize(int, byte[], org.apache.poi.ddf.EscherSerializationListener)\n     */\n    public int serialize( int offset, byte[] data)\n    {\n        return serialize( offset, data, new NullEscherSerializationListener() );\n    }\n\n    /**\n     * Serializes the record to an existing byte array.\n     *\n     * @param offset    the offset within the byte array\n     * @param data      the data array to serialize to\n     * @param listener  a listener for begin and end serialization events.  This\n     *                  is useful because the serialization is\n     *                  hierarchical/recursive and sometimes you need to be able\n     *                  break into that.\n     * @return the number of bytes written.\n     */\n    public abstract int serialize( int offset, byte[] data, EscherSerializationListener listener );\n\n    /**\n     * Subclasses should effeciently return the number of bytes required to\n     * serialize the record.\n     *\n     * @return  number of bytes\n     */\n    abstract public int getRecordSize();\n\n    /**\n     * Return the current record id.\n     *\n     * @return  The 16 bit record id.\n     */\n    public short getRecordId()\n    {\n        return recordId;\n    }\n\n    /**\n     * Sets the record id for this record.\n     */\n    public void setRecordId( short recordId )\n    {\n        this.recordId = recordId;\n    }\n\n    /**\n     * @return  Returns the children of this record.  By default this will\n     *          be an empty list.  EscherCotainerRecord is the only record\n     *          that may contain children.\n     *\n     * @see EscherContainerRecord\n     */\n    public List getChildRecords() { return Collections.EMPTY_LIST; }\n\n    /**\n     * Sets the child records for this record.  By default this will throw\n     * an exception as only EscherContainerRecords may have children.\n     *\n     * @param childRecords  Not used in base implementation.\n     */\n    public void setChildRecords( List childRecords ) { throw new IllegalArgumentException(\"This record does not support child records.\"); }\n\n    /**\n     * Escher records may need to be clonable in the future.\n     */\n    public Object clone()\n    {\n        throw new RuntimeException( \"The class \" + getClass().getName() + \" needs to define a clone method\" );\n    }\n\n    /**\n     * Returns the indexed child record.\n     */\n    public EscherRecord getChild( int index )\n    {\n        return (EscherRecord) getChildRecords().get(index);\n    }\n\n    /**\n     * The display methods allows escher variables to print the record names\n     * according to their hierarchy.\n     *\n     * @param w         The print writer to output to.\n     * @param indent    The current indent level.\n     */\n    public void display(PrintWriter w, int indent)\n    {\n        for (int i = 0; i < indent * 4; i++) w.print(' ');\n        w.println(getRecordName());\n    }\n\n    /**\n     * Subclasses should return the short name for this escher record.\n     */\n    public abstract String getRecordName();\n\n    /**\n     * Returns the instance part of the option record.\n     *\n     * @return The instance part of the record\n     */\n    public short getInstance()\n    {\n        return (short) ( options >> 4 );\n    }\n\n    /**\n     * This class reads the standard escher header.\n     */\n    static class EscherRecordHeader\n    {\n        private short options;\n        private short recordId;\n        private int remainingBytes;\n\n        private EscherRecordHeader()\n        {\n        }\n\n        public static EscherRecordHeader readHeader( byte[] data, int offset )\n        {\n            EscherRecordHeader header = new EscherRecordHeader();\n            header.options = LittleEndian.getShort(data, offset);\n            header.recordId = LittleEndian.getShort(data, offset + 2);\n            header.remainingBytes = LittleEndian.getInt( data, offset + 4 );\n            return header;\n        }\n\n\n        public short getOptions()\n        {\n            return options;\n        }\n\n        public short getRecordId()\n        {\n            return recordId;\n        }\n\n        public int getRemainingBytes()\n        {\n            return remainingBytes;\n        }\n\n        public String toString()\n        {\n            return \"EscherRecordHeader{\" +\n                    \"options=\" + options +\n                    \", recordId=\" + recordId +\n                    \", remainingBytes=\" + remainingBytes +\n                    \"}\";", "functions": [{"function_name": "fillFields", "code": "    protected int fillFields( byte[] data, EscherRecordFactory f )\n    {\n        return fillFields( data, 0, f );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "fillFields", "code": "    public abstract int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "readHeader", "code": "    protected int readHeader( byte[] data, int offset )\n    {\n        EscherRecordHeader header = EscherRecordHeader.readHeader(data, offset);\n        options = header.getOptions();\n        recordId = header.getRecordId();\n        return header.getRemainingBytes();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [6, 8], [7, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 6], [9, 7], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isContainerRecord", "code": "    public boolean isContainerRecord()\n    {\n        return (options & (short)0x000f) == (short)0x000f;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getOptions", "code": "    public short getOptions()\n    {\n        return options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOptions", "code": "    public void setOptions( short options )\n    {\n        this.options = options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "serialize", "code": "    public byte[] serialize()\n    {\n        byte[] retval = new byte[getRecordSize()];\n\n        serialize( 0, retval );\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data)\n    {\n        return serialize( offset, data, new NullEscherSerializationListener() );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "serialize", "code": "    public abstract int serialize( int offset, byte[] data, EscherSerializationListener listener );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRecordSize", "code": "    abstract public int getRecordSize();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getRecordId", "code": "    public short getRecordId()\n    {\n        return recordId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRecordId", "code": "    public void setRecordId( short recordId )\n    {\n        this.recordId = recordId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getChildRecords", "code": "    public List getChildRecords() { return Collections.EMPTY_LIST; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setChildRecords", "code": "    public void setChildRecords( List childRecords ) { throw new IllegalArgumentException(\"This record does not support child records.\"); }", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "clone", "code": "    public Object clone()\n    {\n        throw new RuntimeException( \"The class \" + getClass().getName() + \" needs to define a clone method\" );", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getChild", "code": "    public EscherRecord getChild( int index )\n    {\n        return (EscherRecord) getChildRecords().get(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "display", "code": "    public void display(PrintWriter w, int indent)\n    {\n        for (int i = 0; i < indent * 4; i++) w.print(' ');\n        w.println(getRecordName());", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [5, 8], [7, 9], [8, 10], [1, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 5], [9, 7], [10, 8], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getRecordName", "code": "    public abstract String getRecordName();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getInstance", "code": "    public short getInstance()\n    {\n        return (short) ( options >> 4 );", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "EscherRecord", "code": "    public EscherRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.6-501", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/SubAnt.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.SubAnt", "code": "public class SubAnt\n             extends Task {\n\n    private Path buildpath;\n\n    private Ant ant = null;\n    private String target = null;\n    private String antfile = \"build.xml\";\n    private File genericantfile = null;\n    private boolean verbose = false;\n    private boolean inheritAll = false;\n    private boolean inheritRefs = false;\n    private boolean failOnError = true;\n    private String output  = null;\n\n    private Vector properties = new Vector();\n    private Vector references = new Vector();\n    private Vector propertySets = new Vector();\n\n    /**\n     * Pass output sent to System.out to the new project.\n     *\n     * @param output a line of output\n     * @since Ant 1.6.2\n     */\n    public void handleOutput(String output) {\n        if (ant != null) {\n            ant.handleOutput(output);\n        } else {\n            super.handleOutput(output);\n        }\n    }\n\n    /**\n     * Process input into the ant task\n     *\n     * @param buffer the buffer into which data is to be read.\n     * @param offset the offset into the buffer at which data is stored.\n     * @param length the amount of data to read\n     *\n     * @return the number of bytes read\n     *\n     * @exception IOException if the data cannot be read\n     *\n     * @see Task#handleInput(byte[], int, int)\n     *\n     * @since Ant 1.6.2\n     */\n    public int handleInput(byte[] buffer, int offset, int length)\n        throws IOException {\n        if (ant != null) {\n            return ant.handleInput(buffer, offset, length);\n        } else {\n            return super.handleInput(buffer, offset, length);\n        }\n    }\n\n    /**\n     * Pass output sent to System.out to the new project.\n     *\n     * @param output The output to log. Should not be <code>null</code>.\n     *\n     * @since Ant 1.6.2\n     */\n    public void handleFlush(String output) {\n        if (ant != null) {\n            ant.handleFlush(output);\n        } else {\n            super.handleFlush(output);\n        }\n    }\n\n    /**\n     * Pass output sent to System.err to the new project.\n     *\n     * @param output The error output to log. Should not be <code>null</code>.\n     *\n     * @since Ant 1.6.2\n     */\n    public void handleErrorOutput(String output) {\n        if (ant != null) {\n            ant.handleErrorOutput(output);\n        } else {\n            super.handleErrorOutput(output);\n        }\n    }\n\n    /**\n     * Pass output sent to System.err to the new project.\n     *\n     * @param output The error output to log. Should not be <code>null</code>.\n     *\n     * @since Ant 1.6.2\n     */\n    public void handleErrorFlush(String output) {\n        if (ant != null) {\n            ant.handleErrorFlush(output);\n        } else {\n            super.handleErrorFlush(output);\n        }\n    }\n\n    /**\n     * Runs the various sub-builds.\n     */\n    public void execute() {\n        if (buildpath == null) {\n            throw new BuildException(\"No buildpath specified\");\n        }\n\n        final String[] filenames = buildpath.list();\n        final int count = filenames.length;\n        if (count < 1) {\n            log(\"No sub-builds to iterate on\", Project.MSG_WARN);\n            return;\n        }\n/*\n        if (target == null) {\n            target = getOwningTarget().getName();\n        }\n*/\n        BuildException buildException = null;\n        for (int i = 0; i < count; ++i) {\n            File file = null;\n            String subdirPath = null;\n            Throwable thrownException = null;\n            try {\n                File directory = null;\n                file = new File(filenames[i]);\n                if (file.isDirectory()) {\n                    if (verbose) {\n                        subdirPath = file.getPath();\n                        log(\"Entering directory: \" + subdirPath + \"\\n\", Project.MSG_INFO);\n                    }\n                    if (genericantfile != null) {\n                        directory = file;\n                        file = genericantfile;\n                    } else {\n                        file = new File(file, antfile);\n                    }\n                }\n                execute(file, directory);\n                if (verbose && subdirPath != null) {\n                    log(\"Leaving directory: \" + subdirPath + \"\\n\", Project.MSG_INFO);\n                }\n            } catch (RuntimeException ex) {\n                if (!(getProject().isKeepGoingMode())) {\n                    if (verbose && subdirPath != null) {\n                        log(\"Leaving directory: \" + subdirPath + \"\\n\", Project.MSG_INFO);\n                    }\n                }\n                thrownException = ex;\n            } catch (Throwable ex) {\n                if (!(getProject().isKeepGoingMode())) {\n                    if (verbose && subdirPath != null) {\n                        log(\"Leaving directory: \" + subdirPath + \"\\n\", Project.MSG_INFO);\n                    }\n                    throw new BuildException(ex);\n                }\n                thrownException = ex;\n            }\n            if (thrownException != null) {\n                if (thrownException instanceof BuildException) {\n                    log(\"File '\" + file\n                        + \"' failed with message '\"\n                        + thrownException.getMessage() + \"'.\", Project.MSG_ERR);\n                    if (buildException == null) {\n                        buildException = (BuildException) thrownException;\n                    }\n                } else {\n                    log(\"Target '\" + file\n                        + \"' failed with message '\"\n                        + thrownException.getMessage() + \"'.\", Project.MSG_ERR);\n                    thrownException.printStackTrace(System.err);\n                    if (buildException == null) {\n                        buildException =\n                            new BuildException(thrownException);\n                    }\n                }\n                if (verbose && subdirPath != null) {\n                    log(\"Leaving directory: \" + subdirPath + \"\\n\", Project.MSG_INFO);\n                }\n            }\n        }\n        if (buildException != null) {\n            throw buildException;\n        }\n    }\n\n    /**\n     * Runs the given target on the provided build file.\n     *\n     * @param  file the build file to execute\n     * @param  directory the directory of the current iteration\n     * @throws BuildException is the file cannot be found, read, is\n     *         a directory, or the target called failed, but only if\n     *         <code>failOnError</code> is <code>true</code>. Otherwise,\n     *         a warning log message is simply output.\n     */\n    private void execute(File file, File directory)\n                throws BuildException {\n        if (!file.exists() || file.isDirectory() || !file.canRead()) {\n            String msg = \"Invalid file: \" + file;\n            if (failOnError) {\n                throw new BuildException(msg);\n            }\n            log(msg, Project.MSG_WARN);\n            return;\n        }\n\n        ant = createAntTask(directory);\n        String antfilename = file.getAbsolutePath();\n        ant.setAntfile(antfilename);\n        try {\n            ant.execute();\n        } catch (BuildException e) {\n            if (failOnError) {\n                throw e;\n            }\n            log(\"Failure for target '\" + target\n               + \"' of: \" +  antfilename + \"\\n\"\n               + e.getMessage(), Project.MSG_WARN);\n        } catch (Throwable e) {\n            if (failOnError) {\n                throw new BuildException(e);\n            }\n            log(\"Failure for target '\" + target\n                + \"' of: \" + antfilename + \"\\n\"\n                + e.toString(),\n                Project.MSG_WARN);\n        } finally {\n            ant = null;\n        }        \n    }\n\n    /**\n     * This method builds the file name to use in conjunction with directories.\n     * \n     * <p>Defaults to \"build.xml\".\n     * If <code>genericantfile</code> is set, this attribute is ignored.</p>\n     *\n     * @param  antfile the short build file name. Defaults to \"build.xml\".\n     */\n    public void setAntfile(String antfile) {\n        this.antfile = antfile;\n    }\n\n    /**\n     * This method builds a file path to use in conjunction with directories.\n     * \n     * <p>Use <code>genericantfile</code>, in order to run the same build file\n     * with different basedirs.</p>\n     * If this attribute is set, <code>antfile</code> is ignored.\n     *\n     * @param afile (path of the generic ant file, absolute or relative to\n     *               project base directory)\n     * */\n    public void setGenericAntfile(File afile) {\n        this.genericantfile = afile;\n    }\n\n    /**\n     * Sets whether to fail with a build exception on error, or go on.\n     *\n     * @param  failOnError the new value for this boolean flag.\n     */\n    public void setFailonerror(boolean failOnError) {\n        this.failOnError = failOnError;\n    }\n\n    /**\n     * The target to call on the different sub-builds. Set to \"\" to execute\n     * the default target.\n     * @param target the target\n     * <p>\n     */\n    public void setTarget(String target) {\n        this.target = target;\n    }\n\n    /**\n     * Enable/ disable verbose log messages showing when each sub-build path is entered/ exited.\n     * The default value is \"false\".\n     * @param on true to enable verbose mode, false otherwise (default).\n     */\n    public void setVerbose(boolean on) {\n        this.verbose = on;\n    }\n\n    /**\n     * Corresponds to <code>&lt;ant&gt;</code>'s\n     * <code>output</code> attribute.\n     *\n     * @param  s the filename to write the output to.\n     */\n    public void setOutput(String s) {\n        this.output = s;\n    }\n\n    /**\n     * Corresponds to <code>&lt;ant&gt;</code>'s\n     * <code>inheritall</code> attribute.\n     *\n     * @param  b the new value for this boolean flag.\n     */\n    public void setInheritall(boolean b) {\n        this.inheritAll = b;\n    }\n\n    /**\n     * Corresponds to <code>&lt;ant&gt;</code>'s\n     * <code>inheritrefs</code> attribute.\n     *\n     * @param  b the new value for this boolean flag.\n     */\n    public void setInheritrefs(boolean b) {\n        this.inheritRefs = b;\n    }\n\n    /**\n     * Corresponds to <code>&lt;ant&gt;</code>'s\n     * nested <code>&lt;property&gt;</code> element.\n     *\n     * @param  p the property to pass on explicitly to the sub-build.\n     */\n    public void addProperty(Property p) {\n        properties.addElement(p);\n    }\n\n    /**\n     * Corresponds to <code>&lt;ant&gt;</code>'s\n     * nested <code>&lt;reference&gt;</code> element.\n     *\n     * @param  r the reference to pass on explicitly to the sub-build.\n     */\n    public void addReference(Ant.Reference r) {\n        references.addElement(r);\n    }\n\n    /**\n     * Corresponds to <code>&lt;ant&gt;</code>'s\n     * nested <code>&lt;propertyset&gt;</code> element.\n     * @param ps the propertset\n     */\n    public void addPropertyset(PropertySet ps) {\n        propertySets.addElement(ps);\n    }\n\n    /**\n     * Adds a directory set to the implicit build path.\n     * <p>\n     * <em>Note that the directories will be added to the build path\n     * in no particular order, so if order is significant, one should\n     * use a file list instead!</em>\n     *\n     * @param  set the directory set to add.\n     */\n    public void addDirset(DirSet set) {\n        getBuildpath().addDirset(set);\n    }\n\n    /**\n     * Adds a file set to the implicit build path.\n     * <p>\n     * <em>Note that the directories will be added to the build path\n     * in no particular order, so if order is significant, one should\n     * use a file list instead!</em>\n     *\n     * @param  set the file set to add.\n     */\n    public void addFileset(FileSet set) {\n        getBuildpath().addFileset(set);\n    }\n\n    /**\n     * Adds an ordered file list to the implicit build path.\n     * <p>\n     * <em>Note that contrary to file and directory sets, file lists\n     * can reference non-existent files or directories!</em>\n     *\n     * @param  list the file list to add.\n     */\n    public void addFilelist(FileList list) {\n        getBuildpath().addFilelist(list);\n    }\n\n    /**\n     * Set the buildpath to be used to find sub-projects.\n     *\n     * @param  s an Ant Path object containing the buildpath.\n     */\n    public void setBuildpath(Path s) {\n        getBuildpath().append(s);\n    }\n\n    /**\n     * Creates a nested build path, and add it to the implicit build path.\n     *\n     * @return the newly created nested build path.\n     */\n    public Path createBuildpath() {\n        return getBuildpath().createPath();\n    }\n\n    /**\n     * Creates a nested <code>&lt;buildpathelement&gt;</code>,\n     * and add it to the implicit build path.\n     *\n     * @return the newly created nested build path element.\n     */\n    public Path.PathElement createBuildpathElement() {\n        return getBuildpath().createPathElement();\n    }\n\n    /**\n     * Gets the implicit build path, creating it if <code>null</code>.\n     *\n     * @return the implicit build path.\n     */\n    private Path getBuildpath() {\n        if (buildpath == null) {\n            buildpath = new Path(getProject());\n        }\n        return buildpath;\n    }\n\n    /**\n     * Buildpath to use, by reference.\n     *\n     * @param  r a reference to an Ant Path object containing the buildpath.\n     */\n    public void setBuildpathRef(Reference r) {\n        createBuildpath().setRefid(r);\n    }\n\n    /**\n     * Creates the &lt;ant&gt; task configured to run a specific target.\n     *\n     * @param directory : if not null the directory where the build should run\n     *\n     * @return the ant task, configured with the explicit properties and\n     *         references necessary to run the sub-build.\n     */\n    private Ant createAntTask(File directory) {\n        Ant ant = (Ant) getProject().createTask(\"ant\");\n        ant.setOwningTarget(getOwningTarget());\n        ant.setTaskName(getTaskName());\n        ant.init();\n        if (target != null && target.length() > 0) {\n            ant.setTarget(target);\n        }\n\n\n        if (output != null) {\n            ant.setOutput(output);\n        }\n\n        if (directory != null) {\n            ant.setDir(directory);\n        }\n\n        ant.setInheritAll(inheritAll);\n        for (Enumeration i = properties.elements(); i.hasMoreElements();) {\n            copyProperty(ant.createProperty(), (Property) i.nextElement());\n        }\n\n        for (Enumeration i = propertySets.elements(); i.hasMoreElements();) {\n            ant.addPropertyset((PropertySet) i.nextElement());\n        }\n\n        ant.setInheritRefs(inheritRefs);\n        for (Enumeration i = references.elements(); i.hasMoreElements();) {\n            ant.addReference((Ant.Reference) i.nextElement());\n        }\n\n        return ant;\n    }\n\n    /**\n     * Assigns an Ant property to another.\n     *\n     * @param  to the destination property whose content is modified.\n     * @param  from the source property whose content is copied.\n     */\n    private static void copyProperty(Property to, Property from) {\n        to.setName(from.getName());\n\n        if (from.getValue() != null) {\n            to.setValue(from.getValue());\n        }\n        if (from.getFile() != null) {\n            to.setFile(from.getFile());\n        }\n        if (from.getResource() != null) {\n            to.setResource(from.getResource());\n        }\n        if (from.getPrefix() != null) {\n            to.setPrefix(from.getPrefix());\n        }\n        if (from.getRefid() != null) {\n            to.setRefid(from.getRefid());\n        }\n        if (from.getEnvironment() != null) {\n            to.setEnvironment(from.getEnvironment());\n        }\n        if (from.getClasspath() != null) {\n            to.setClasspath(from.getClasspath());", "functions": [{"function_name": "handleOutput", "code": "    public void handleOutput(String output) {\n        if (ant != null) {\n            ant.handleOutput(output);\n        } else {\n            super.handleOutput(output);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "handleInput", "code": "    public int handleInput(byte[] buffer, int offset, int length)\n        throws IOException {\n        if (ant != null) {\n            return ant.handleInput(buffer, offset, length);\n        } else {\n            return super.handleInput(buffer, offset, length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "handleFlush", "code": "    public void handleFlush(String output) {\n        if (ant != null) {\n            ant.handleFlush(output);\n        } else {\n            super.handleFlush(output);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "handleErrorOutput", "code": "    public void handleErrorOutput(String output) {\n        if (ant != null) {\n            ant.handleErrorOutput(output);\n        } else {\n            super.handleErrorOutput(output);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "handleErrorFlush", "code": "    public void handleErrorFlush(String output) {\n        if (ant != null) {\n            ant.handleErrorFlush(output);\n        } else {\n            super.handleErrorFlush(output);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "execute", "code": "    public void execute() {\n        if (buildpath == null) {\n            throw new BuildException(\"No buildpath specified\");\n        }\n\n        final String[] filenames = buildpath.list();\n        final int count = filenames.length;\n        if (count < 1) {\n            log(\"No sub-builds to iterate on\", Project.MSG_WARN);\n            return;\n        }\n/*\n        if (target == null) {\n            target = getOwningTarget().getName();\n        }\n*/\n        BuildException buildException = null;\n        for (int i = 0; i < count; ++i) {\n            File file = null;\n            String subdirPath = null;\n            Throwable thrownException = null;\n            try {\n                File directory = null;\n                file = new File(filenames[i]);\n                if (file.isDirectory()) {\n                    if (verbose) {\n                        subdirPath = file.getPath();\n                        log(\"Entering directory: \" + subdirPath + \"\\n\", Project.MSG_INFO);\n                    }\n                    if (genericantfile != null) {\n                        directory = file;\n                        file = genericantfile;\n                    } else {\n                        file = new File(file, antfile);\n                    }\n                }\n                execute(file, directory);\n                if (verbose && subdirPath != null) {\n                    log(\"Leaving directory: \" + subdirPath + \"\\n\", Project.MSG_INFO);\n                }\n            } catch (RuntimeException ex) {\n                if (!(getProject().isKeepGoingMode())) {\n                    if (verbose && subdirPath != null) {\n                        log(\"Leaving directory: \" + subdirPath + \"\\n\", Project.MSG_INFO);\n                    }\n                }\n                thrownException = ex;\n            } catch (Throwable ex) {\n                if (!(getProject().isKeepGoingMode())) {\n                    if (verbose && subdirPath != null) {\n                        log(\"Leaving directory: \" + subdirPath + \"\\n\", Project.MSG_INFO);\n                    }\n                    throw new BuildException(ex);\n                }\n                thrownException = ex;\n            }\n            if (thrownException != null) {\n                if (thrownException instanceof BuildException) {\n                    log(\"File '\" + file\n                        + \"' failed with message '\"\n                        + thrownException.getMessage() + \"'.\", Project.MSG_ERR);\n                    if (buildException == null) {\n                        buildException = (BuildException) thrownException;\n                    }\n                } else {\n                    log(\"Target '\" + file\n                        + \"' failed with message '\"\n                        + thrownException.getMessage() + \"'.\", Project.MSG_ERR);\n                    thrownException.printStackTrace(System.err);\n                    if (buildException == null) {\n                        buildException =\n                            new BuildException(thrownException);\n                    }\n                }\n                if (verbose && subdirPath != null) {\n                    log(\"Leaving directory: \" + subdirPath + \"\\n\", Project.MSG_INFO);\n                }\n            }\n        }\n        if (buildException != null) {\n            throw buildException;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CATCH", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "IF", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "THROW_RAISE", "IF", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [7, 11], [1, 12], [8, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [3, 19], [4, 20], [10, 21], [6, 22], [7, 23], [11, 24], [14, 25], [15, 26], [15, 27], [15, 28], [15, 29], [15, 30], [2, 31], [4, 32], [23, 33], [14, 34], [14, 35], [25, 36], [26, 37], [27, 38], [28, 39], [15, 40], [29, 41], [15, 42], [16, 43], [17, 44], [18, 45], [32, 46], [33, 47], [34, 48], [35, 49], [26, 50], [37, 51], [27, 52], [38, 53], [39, 54], [29, 55], [29, 56], [42, 57], [30, 58], [48, 59], [35, 60], [35, 61], [37, 62], [37, 63], [38, 64], [28, 65], [54, 66], [55, 67], [34, 68], [59, 69], [60, 70], [35, 71], [35, 72], [61, 73], [35, 74], [62, 75], [63, 76], [64, 77], [65, 78], [67, 79], [68, 80], [70, 81], [72, 82], [73, 83], [74, 84], [76, 85], [77, 86], [78, 87], [78, 88], [55, 89], [55, 90], [55, 91], [56, 92], [56, 93], [80, 94], [80, 95], [60, 96], [82, 97], [82, 98], [61, 99], [84, 100], [84, 101], [63, 102], [85, 103], [64, 104], [86, 105], [88, 106], [89, 107], [92, 108], [93, 109], [95, 110], [96, 111], [98, 112], [98, 113], [101, 114], [101, 115], [102, 116], [104, 117], [108, 118], [108, 119], [113, 120], [113, 121], [115, 122], [115, 123], [116, 124], [116, 125], [117, 126], [117, 127], [119, 128], [121, 129], [123, 130], [125, 131], [127, 132], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 7], [12, 1], [13, 8], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 3], [20, 4], [21, 10], [22, 6], [23, 7], [24, 11], [25, 14], [26, 15], [27, 15], [28, 15], [29, 15], [30, 15], [31, 2], [32, 4], [33, 23], [34, 14], [35, 14], [36, 25], [37, 26], [38, 27], [39, 28], [40, 15], [41, 29], [42, 15], [43, 16], [44, 17], [45, 18], [46, 32], [47, 33], [48, 34], [49, 35], [50, 26], [51, 37], [52, 27], [53, 38], [54, 39], [55, 29], [56, 29], [57, 42], [58, 30], [59, 48], [60, 35], [61, 35], [62, 37], [63, 37], [64, 38], [65, 28], [66, 54], [67, 55], [68, 34], [69, 59], [70, 60], [71, 35], [72, 35], [73, 61], [74, 35], [75, 62], [76, 63], [77, 64], [78, 65], [79, 67], [80, 68], [81, 70], [82, 72], [83, 73], [84, 74], [85, 76], [86, 77], [87, 78], [88, 78], [89, 55], [90, 55], [91, 55], [92, 56], [93, 56], [94, 80], [95, 80], [96, 60], [97, 82], [98, 82], [99, 61], [100, 84], [101, 84], [102, 63], [103, 85], [104, 64], [105, 86], [106, 88], [107, 89], [108, 92], [109, 93], [110, 95], [111, 96], [112, 98], [113, 98], [114, 101], [115, 101], [116, 102], [117, 104], [118, 108], [119, 108], [120, 113], [121, 113], [122, 115], [123, 115], [124, 116], [125, 116], [126, 117], [127, 117], [128, 119], [129, 121], [130, 123], [131, 125], [132, 127], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132]]}, {"function_name": "execute", "code": "    private void execute(File file, File directory)\n                throws BuildException {\n        if (!file.exists() || file.isDirectory() || !file.canRead()) {\n            String msg = \"Invalid file: \" + file;\n            if (failOnError) {\n                throw new BuildException(msg);\n            }\n            log(msg, Project.MSG_WARN);\n            return;\n        }\n\n        ant = createAntTask(directory);\n        String antfilename = file.getAbsolutePath();\n        ant.setAntfile(antfilename);\n        try {\n            ant.execute();\n        } catch (BuildException e) {\n            if (failOnError) {\n                throw e;\n            }\n            log(\"Failure for target '\" + target\n               + \"' of: \" +  antfilename + \"\\n\"\n               + e.getMessage(), Project.MSG_WARN);\n        } catch (Throwable e) {\n            if (failOnError) {\n                throw new BuildException(e);\n            }\n            log(\"Failure for target '\" + target\n                + \"' of: \" + antfilename + \"\\n\"\n                + e.toString(),\n                Project.MSG_WARN);\n        } finally {\n            ant = null;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "CATCH", "CATCH", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "IF", "CALL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [0, 9], [3, 10], [1, 11], [6, 12], [7, 13], [1, 14], [2, 15], [9, 16], [3, 17], [3, 18], [3, 19], [10, 20], [10, 21], [11, 22], [6, 23], [7, 24], [3, 25], [21, 26], [21, 27], [23, 28], [12, 29], [24, 30], [13, 31], [18, 32], [19, 33], [28, 34], [28, 35], [29, 36], [30, 37], [30, 38], [32, 39], [33, 40], [35, 41], [35, 42], [38, 43], [38, 44], [42, 45], [44, 46], [45, 47], [45, 48], [46, 49], [46, 50], [48, 51], [50, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 0], [10, 3], [11, 1], [12, 6], [13, 7], [14, 1], [15, 2], [16, 9], [17, 3], [18, 3], [19, 3], [20, 10], [21, 10], [22, 11], [23, 6], [24, 7], [25, 3], [26, 21], [27, 21], [28, 23], [29, 12], [30, 24], [31, 13], [32, 18], [33, 19], [34, 28], [35, 28], [36, 29], [37, 30], [38, 30], [39, 32], [40, 33], [41, 35], [42, 35], [43, 38], [44, 38], [45, 42], [46, 44], [47, 45], [48, 45], [49, 46], [50, 46], [51, 48], [52, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "setAntfile", "code": "    public void setAntfile(String antfile) {\n        this.antfile = antfile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setGenericAntfile", "code": "    public void setGenericAntfile(File afile) {\n        this.genericantfile = afile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFailonerror", "code": "    public void setFailonerror(boolean failOnError) {\n        this.failOnError = failOnError;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTarget", "code": "    public void setTarget(String target) {\n        this.target = target;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVerbose", "code": "    public void setVerbose(boolean on) {\n        this.verbose = on;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutput", "code": "    public void setOutput(String s) {\n        this.output = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setInheritall", "code": "    public void setInheritall(boolean b) {\n        this.inheritAll = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setInheritrefs", "code": "    public void setInheritrefs(boolean b) {\n        this.inheritRefs = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addProperty", "code": "    public void addProperty(Property p) {\n        properties.addElement(p);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addReference", "code": "    public void addReference(Ant.Reference r) {\n        references.addElement(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addPropertyset", "code": "    public void addPropertyset(PropertySet ps) {\n        propertySets.addElement(ps);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addDirset", "code": "    public void addDirset(DirSet set) {\n        getBuildpath().addDirset(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        getBuildpath().addFileset(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addFilelist", "code": "    public void addFilelist(FileList list) {\n        getBuildpath().addFilelist(list);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBuildpath", "code": "    public void setBuildpath(Path s) {\n        getBuildpath().append(s);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createBuildpath", "code": "    public Path createBuildpath() {\n        return getBuildpath().createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createBuildpathElement", "code": "    public Path.PathElement createBuildpathElement() {\n        return getBuildpath().createPathElement();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getBuildpath", "code": "    private Path getBuildpath() {\n        if (buildpath == null) {\n            buildpath = new Path(getProject());\n        }\n        return buildpath;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setBuildpathRef", "code": "    public void setBuildpathRef(Reference r) {\n        createBuildpath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createAntTask", "code": "    private Ant createAntTask(File directory) {\n        Ant ant = (Ant) getProject().createTask(\"ant\");\n        ant.setOwningTarget(getOwningTarget());\n        ant.setTaskName(getTaskName());\n        ant.init();\n        if (target != null && target.length() > 0) {\n            ant.setTarget(target);\n        }\n\n\n        if (output != null) {\n            ant.setOutput(output);\n        }\n\n        if (directory != null) {\n            ant.setDir(directory);\n        }\n\n        ant.setInheritAll(inheritAll);\n        for (Enumeration i = properties.elements(); i.hasMoreElements();) {\n            copyProperty(ant.createProperty(), (Property) i.nextElement());\n        }\n\n        for (Enumeration i = propertySets.elements(); i.hasMoreElements();) {\n            ant.addPropertyset((PropertySet) i.nextElement());\n        }\n\n        ant.setInheritRefs(inheritRefs);\n        for (Enumeration i = references.elements(); i.hasMoreElements();) {\n            ant.addReference((Ant.Reference) i.nextElement());\n        }\n\n        return ant;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "LOOP", "IF", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [3, 12], [4, 13], [0, 14], [5, 15], [6, 16], [7, 17], [0, 18], [0, 19], [0, 20], [15, 21], [16, 22], [17, 23], [17, 24], [19, 25], [20, 26], [2, 27], [2, 28], [3, 29], [3, 30], [4, 31], [4, 32], [5, 33], [6, 34], [7, 35], [23, 36], [23, 37], [24, 38], [8, 39], [31, 40], [39, 41], [27, 42], [29, 43], [31, 44], [41, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 3], [13, 4], [14, 0], [15, 5], [16, 6], [17, 7], [18, 0], [19, 0], [20, 0], [21, 15], [22, 16], [23, 17], [24, 17], [25, 19], [26, 20], [27, 2], [28, 2], [29, 3], [30, 3], [31, 4], [32, 4], [33, 5], [34, 6], [35, 7], [36, 23], [37, 23], [38, 24], [39, 8], [40, 31], [41, 39], [42, 27], [43, 29], [44, 31], [45, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "copyProperty", "code": "    private static void copyProperty(Property to, Property from) {\n        to.setName(from.getName());\n\n        if (from.getValue() != null) {\n            to.setValue(from.getValue());\n        }\n        if (from.getFile() != null) {\n            to.setFile(from.getFile());\n        }\n        if (from.getResource() != null) {\n            to.setResource(from.getResource());\n        }\n        if (from.getPrefix() != null) {\n            to.setPrefix(from.getPrefix());\n        }\n        if (from.getRefid() != null) {\n            to.setRefid(from.getRefid());\n        }\n        if (from.getEnvironment() != null) {\n            to.setEnvironment(from.getEnvironment());\n        }\n        if (from.getClasspath() != null) {\n            to.setClasspath(from.getClasspath());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [4, 13], [5, 14], [6, 15], [7, 16], [0, 17], [10, 18], [10, 19], [11, 20], [11, 21], [12, 22], [12, 23], [13, 24], [13, 25], [14, 26], [14, 27], [15, 28], [15, 29], [16, 30], [16, 31], [17, 32], [1, 33], [2, 34], [3, 35], [4, 36], [5, 37], [6, 38], [7, 39], [33, 40], [34, 41], [35, 42], [36, 43], [37, 44], [38, 45], [39, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 4], [14, 5], [15, 6], [16, 7], [17, 0], [18, 10], [19, 10], [20, 11], [21, 11], [22, 12], [23, 12], [24, 13], [25, 13], [26, 14], [27, 14], [28, 15], [29, 15], [30, 16], [31, 16], [32, 17], [33, 1], [34, 2], [35, 3], [36, 4], [37, 5], [38, 6], [39, 7], [40, 33], [41, 34], [42, 35], [43, 36], [44, 37], [45, 38], [46, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}], "label": 0}
{"sample_id": "jedit-4.0-3866", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/gui/ToolBarManager.java", "language": "java", "name": "org.gjt.sp.jedit.gui.ToolBarManager", "code": "public class ToolBarManager\n{\n\t//{{{ ToolBarManager constructor\n\tpublic ToolBarManager(Container top, Container bottom)\n\t{\n\t\tthis.top = top;\n\t\tthis.bottom = bottom;\n\t} //}}}\n\n\t//{{{ addToolBar() method\n\tpublic void addToolBar(int group, int layer, Component toolbar)\n\t{\n\t\tEntry entry = new Entry(layer, toolbar);\n\n\t\tif (group == View.TOP_GROUP)\n\t\t\taddToolBar(top, topToolBars, entry);\n\t\telse if (group == View.BOTTOM_GROUP)\n\t\t\taddToolBar(bottom, bottomToolBars, entry);\n\t\telse\n\t\t\tthrow new InternalError(\"Invalid tool bar group\");\n\t} //}}}\n\n\t//{{{ removeToolBar() method\n\tpublic void removeToolBar(Component toolbar)\n\t{\n\t\tremoveToolBar(top, topToolBars, toolbar);\n\t\tremoveToolBar(bottom, bottomToolBars, toolbar);\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate Container top;\n\tprivate Container bottom;\n\n\tprivate ArrayList topToolBars = new ArrayList();\n\tprivate ArrayList bottomToolBars = new ArrayList();\n\t//}}}\n\n\t//{{{ addToolBar() method\n\tprivate void addToolBar(Container group, ArrayList toolbars,\n\t\tEntry entry)\n\t{\n\t\t// See if we should place this toolbar before any others\n\t\tfor(int i = 0; i < toolbars.size(); i++)\n\t\t{\n\t\t\tif(entry.layer > ((Entry)toolbars.get(i)).layer)\n\t\t\t{\n\t\t\t\ttoolbars.add(i,entry);\n\t\t\t\tgroup.add(entry.toolbar,i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Place the toolbar at the bottom of the group\n\t\ttoolbars.add(entry);\n\n\t\tComponent comp = entry.toolbar;\n\t\t// Leave some room for OS X grow box\n\t\tif(OperatingSystem.isMacOS() && group == bottom)\n\t\t{\n\t\t\tBox box = new Box(BoxLayout.X_AXIS);\n\t\t\tbox.add(comp);\n\t\t\tbox.add(Box.createHorizontalStrut(18));\n\t\t\tgroup.add(box);\n\n\t\t\t// If there were other toolbars, remove the previously\n\t\t\t// lowest component from its Box\n\t\t\tint nComps = group.getComponentCount();\n\t\t\tif(nComps > 1)\n\t\t\t{\n\t\t\t\tbox = (Box)group.getComponent(nComps - 2);\n\t\t\t\tgroup.remove(nComps - 2);\n\t\t\t\tgroup.add(box.getComponent(0),nComps - 2);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgroup.add(comp);\n\t\t}\n\t} //}}}\n\n\t//{{{ removeToolBar() method\n\tprivate void removeToolBar(Container group, ArrayList toolbars,\n\t\tComponent toolbar)\n\t{\n\t\tfor(int i = 0; i < toolbars.size(); i++)\n\t\t{\n\t\t\tif(toolbar == ((Entry)toolbars.get(i)).toolbar)\n\t\t\t{\n\t\t\t\tif(OperatingSystem.isMacOS() && group == bottom\n\t\t\t\t\t&& i == toolbars.size() - 1)\n\t\t\t\t{\n\t\t\t\t\t// Remove the Box\n\t\t\t\t\tBox box = (Box)group.getComponent(i);\n\t\t\t\t\tgroup.remove(i);\n\n\t\t\t\t\tif (toolbars.size() > 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Remove ToolBar from Box\n\t\t\t\t\t\tbox.remove(0);\n\n\t\t\t\t\t\t// Get the penultimate tool bar\n\t\t\t\t\t\ttoolbar = group.getComponent(i - 1);\n\t\t\t\t\t\tgroup.remove(i - 1);\n\n\t\t\t\t\t\t// Put it in the box\n\t\t\t\t\t\tbox.add(toolbar,0);\n\n\t\t\t\t\t\t// Put the box back\n\t\t\t\t\t\tgroup.add(box);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tgroup.remove(toolbar);\n\t\t\t\t}\n\n\t\t\t\ttoolbars.remove(i);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Entry class\n\tstatic class Entry\n\t{\n\t\tint layer;\n\t\tComponent toolbar;\n\n\t\tEntry(int layer, Component toolbar)\n\t\t{\n\t\t\tthis.layer = layer;\n\t\t\tthis.toolbar = toolbar;", "functions": [{"function_name": "addToolBar", "code": "\tpublic void addToolBar(int group, int layer, Component toolbar)\n\t{\n\t\tEntry entry = new Entry(layer, toolbar);\n\n\t\tif (group == View.TOP_GROUP)\n\t\t\taddToolBar(top, topToolBars, entry);\n\t\telse if (group == View.BOTTOM_GROUP)\n\t\t\taddToolBar(bottom, bottomToolBars, entry);\n\t\telse\n\t\t\tthrow new InternalError(\"Invalid tool bar group\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [1, 10], [2, 11], [8, 12], [6, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 1], [11, 2], [12, 8], [13, 6], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "removeToolBar", "code": "\tpublic void removeToolBar(Component toolbar)\n\t{\n\t\tremoveToolBar(top, topToolBars, toolbar);\n\t\tremoveToolBar(bottom, bottomToolBars, toolbar);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addToolBar", "code": "\tprivate void addToolBar(Container group, ArrayList toolbars,\n\t\tEntry entry)\n\t{\n\t\t// See if we should place this toolbar before any others\n\t\tfor(int i = 0; i < toolbars.size(); i++)\n\t\t{\n\t\t\tif(entry.layer > ((Entry)toolbars.get(i)).layer)\n\t\t\t{\n\t\t\t\ttoolbars.add(i,entry);\n\t\t\t\tgroup.add(entry.toolbar,i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Place the toolbar at the bottom of the group\n\t\ttoolbars.add(entry);\n\n\t\tComponent comp = entry.toolbar;\n\t\t// Leave some room for OS X grow box\n\t\tif(OperatingSystem.isMacOS() && group == bottom)\n\t\t{\n\t\t\tBox box = new Box(BoxLayout.X_AXIS);\n\t\t\tbox.add(comp);\n\t\t\tbox.add(Box.createHorizontalStrut(18));\n\t\t\tgroup.add(box);\n\n\t\t\t// If there were other toolbars, remove the previously\n\t\t\t// lowest component from its Box\n\t\t\tint nComps = group.getComponentCount();\n\t\t\tif(nComps > 1)\n\t\t\t{\n\t\t\t\tbox = (Box)group.getComponent(nComps - 2);\n\t\t\t\tgroup.remove(nComps - 2);\n\t\t\t\tgroup.add(box.getComponent(0),nComps - 2);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgroup.add(comp);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [3, 9], [1, 10], [1, 11], [1, 12], [7, 13], [7, 14], [3, 15], [9, 16], [1, 17], [10, 18], [1, 19], [1, 20], [1, 21], [15, 22], [3, 23], [18, 24], [11, 25], [20, 26], [12, 27], [15, 28], [10, 29], [10, 30], [10, 31], [26, 32], [15, 33], [15, 34], [22, 35], [29, 36], [29, 37], [30, 38], [36, 39], [37, 40], [38, 41], [31, 42], [42, 43], [43, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 3], [10, 1], [11, 1], [12, 1], [13, 7], [14, 7], [15, 3], [16, 9], [17, 1], [18, 10], [19, 1], [20, 1], [21, 1], [22, 15], [23, 3], [24, 18], [25, 11], [26, 20], [27, 12], [28, 15], [29, 10], [30, 10], [31, 10], [32, 26], [33, 15], [34, 15], [35, 22], [36, 29], [37, 29], [38, 30], [39, 36], [40, 37], [41, 38], [42, 31], [43, 42], [44, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "removeToolBar", "code": "\tprivate void removeToolBar(Container group, ArrayList toolbars,\n\t\tComponent toolbar)\n\t{\n\t\tfor(int i = 0; i < toolbars.size(); i++)\n\t\t{\n\t\t\tif(toolbar == ((Entry)toolbars.get(i)).toolbar)\n\t\t\t{\n\t\t\t\tif(OperatingSystem.isMacOS() && group == bottom\n\t\t\t\t\t&& i == toolbars.size() - 1)\n\t\t\t\t{\n\t\t\t\t\t// Remove the Box\n\t\t\t\t\tBox box = (Box)group.getComponent(i);\n\t\t\t\t\tgroup.remove(i);\n\n\t\t\t\t\tif (toolbars.size() > 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Remove ToolBar from Box\n\t\t\t\t\t\tbox.remove(0);\n\n\t\t\t\t\t\t// Get the penultimate tool bar\n\t\t\t\t\t\ttoolbar = group.getComponent(i - 1);\n\t\t\t\t\t\tgroup.remove(i - 1);\n\n\t\t\t\t\t\t// Put it in the box\n\t\t\t\t\t\tbox.add(toolbar,0);\n\n\t\t\t\t\t\t// Put the box back\n\t\t\t\t\t\tgroup.add(box);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tgroup.remove(toolbar);\n\t\t\t\t}\n\n\t\t\t\ttoolbars.remove(i);\n\n\t\t\t\treturn;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 9], [6, 10], [6, 11], [6, 12], [11, 13], [8, 14], [11, 15], [11, 16], [13, 17], [13, 18], [11, 19], [15, 20], [11, 21], [17, 22], [18, 23], [18, 24], [20, 25], [20, 26], [22, 27], [22, 28], [15, 29], [15, 30], [15, 31], [15, 32], [15, 33], [16, 34], [30, 35], [31, 36], [32, 37], [33, 38], [36, 39], [37, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 1], [10, 6], [11, 6], [12, 6], [13, 11], [14, 8], [15, 11], [16, 11], [17, 13], [18, 13], [19, 11], [20, 15], [21, 11], [22, 17], [23, 18], [24, 18], [25, 20], [26, 20], [27, 22], [28, 22], [29, 15], [30, 15], [31, 15], [32, 15], [33, 15], [34, 16], [35, 30], [36, 31], [37, 32], [38, 33], [39, 36], [40, 37], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "ToolBarManager", "code": "\tpublic ToolBarManager(Container top, Container bottom)\n\t{\n\t\tthis.top = top;\n\t\tthis.bottom = bottom;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.0-1532", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/quartz/QuartzMessage.java", "language": "java", "name": "org.apache.camel.component.quartz.QuartzMessage", "code": "public class QuartzMessage extends DefaultMessage {\n    private final JobExecutionContext jobExecutionContext;\n\n    public QuartzMessage(QuartzExchange exchange, JobExecutionContext jobExecutionContext) {\n        this.jobExecutionContext = jobExecutionContext;\n        setExchange(exchange);\n        setBody(jobExecutionContext.getJobDetail());\n    }\n\n    public JobExecutionContext getJobExecutionContext() {\n        return jobExecutionContext;\n    }\n\n    @Override\n    protected void populateInitialHeaders(Map<String, Object> map) {\n        super.populateInitialHeaders(map);\n        if (jobExecutionContext != null) {\n            map.put(\"calendar\", jobExecutionContext.getCalendar());\n            map.put(\"fireTime\", jobExecutionContext.getFireTime());\n            map.put(\"jobDetail\", jobExecutionContext.getJobDetail());\n            map.put(\"jobInstance\", jobExecutionContext.getJobInstance());\n            map.put(\"jobRunTime\", jobExecutionContext.getJobRunTime());\n            map.put(\"mergedJobDataMap\", jobExecutionContext.getMergedJobDataMap());\n            map.put(\"nextFireTime\", jobExecutionContext.getNextFireTime());\n            map.put(\"previousFireTime\", jobExecutionContext.getPreviousFireTime());\n            map.put(\"refireCount\", jobExecutionContext.getRefireCount());\n            map.put(\"result\", jobExecutionContext.getResult());\n            map.put(\"scheduledFireTime\", jobExecutionContext.getScheduledFireTime());\n            map.put(\"scheduler\", jobExecutionContext.getScheduler());\n            Trigger trigger = jobExecutionContext.getTrigger();\n            map.put(\"trigger\", trigger);\n            map.put(\"triggerName\", trigger.getName());\n            map.put(\"triggerGroup\", trigger.getGroup());", "functions": [{"function_name": "getJobExecutionContext", "code": "    public JobExecutionContext getJobExecutionContext() {\n        return jobExecutionContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "populateInitialHeaders", "code": "    @Override\n    protected void populateInitialHeaders(Map<String, Object> map) {\n        super.populateInitialHeaders(map);\n        if (jobExecutionContext != null) {\n            map.put(\"calendar\", jobExecutionContext.getCalendar());\n            map.put(\"fireTime\", jobExecutionContext.getFireTime());\n            map.put(\"jobDetail\", jobExecutionContext.getJobDetail());\n            map.put(\"jobInstance\", jobExecutionContext.getJobInstance());\n            map.put(\"jobRunTime\", jobExecutionContext.getJobRunTime());\n            map.put(\"mergedJobDataMap\", jobExecutionContext.getMergedJobDataMap());\n            map.put(\"nextFireTime\", jobExecutionContext.getNextFireTime());\n            map.put(\"previousFireTime\", jobExecutionContext.getPreviousFireTime());\n            map.put(\"refireCount\", jobExecutionContext.getRefireCount());\n            map.put(\"result\", jobExecutionContext.getResult());\n            map.put(\"scheduledFireTime\", jobExecutionContext.getScheduledFireTime());\n            map.put(\"scheduler\", jobExecutionContext.getScheduler());\n            Trigger trigger = jobExecutionContext.getTrigger();\n            map.put(\"trigger\", trigger);\n            map.put(\"triggerName\", trigger.getName());\n            map.put(\"triggerGroup\", trigger.getGroup());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [6, 21], [6, 22], [7, 23], [7, 24], [8, 25], [4, 26], [9, 27], [9, 28], [10, 29], [10, 30], [11, 31], [11, 32], [12, 33], [12, 34], [13, 35], [13, 36], [14, 37], [14, 38], [15, 39], [15, 40], [16, 41], [16, 42], [17, 43], [17, 44], [18, 45], [18, 46], [19, 47], [19, 48], [20, 49], [20, 50], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 6], [22, 6], [23, 7], [24, 7], [25, 8], [26, 4], [27, 9], [28, 9], [29, 10], [30, 10], [31, 11], [32, 11], [33, 12], [34, 12], [35, 13], [36, 13], [37, 14], [38, 14], [39, 15], [40, 15], [41, 16], [42, 16], [43, 17], [44, 17], [45, 18], [46, 18], [47, 19], [48, 19], [49, 20], [50, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "QuartzMessage", "code": "    public QuartzMessage(QuartzExchange exchange, JobExecutionContext jobExecutionContext) {\n        this.jobExecutionContext = jobExecutionContext;\n        setExchange(exchange);\n        setBody(jobExecutionContext.getJobDetail());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "camel-1.6-2729", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/ErrorHandlerSupport.java", "language": "java", "name": "org.apache.camel.processor.ErrorHandlerSupport", "code": "public abstract class ErrorHandlerSupport extends ServiceSupport implements ErrorHandler {\n    private Map<ExceptionPolicyKey, ExceptionType> exceptionPolicies = new LinkedHashMap<ExceptionPolicyKey, ExceptionType>();\n    private ExceptionPolicyStrategy exceptionPolicy = createDefaultExceptionPolicyStrategy();\n\n    public void addExceptionPolicy(ExceptionType exceptionType) {\n        Processor processor = exceptionType.getErrorHandler();\n        addChildService(processor);\n\n        List<Class> list = exceptionType.getExceptionClasses();\n\n        for (Class clazz : list) {\n            ExceptionPolicyKey key = new ExceptionPolicyKey(clazz, exceptionType.getOnWhen());\n            exceptionPolicies.put(key, exceptionType);\n        }\n    }\n\n    /**\n     * Attempts to invoke the handler for this particular exception if one is available\n     */\n    protected boolean customProcessorForException(Exchange exchange, Throwable exception) throws Exception {\n        ExceptionType policy = getExceptionPolicy(exchange, exception);\n        if (policy != null) {\n            Processor processor = policy.getErrorHandler();\n            if (processor != null) {\n                processor.process(exchange);\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Attempts to find the best suited {@link ExceptionType} to be used for handling the given thrown exception.\n     *\n     * @param exchange  the exchange\n     * @param exception the exception that was thrown\n     * @return the best exception type to handle this exception, <tt>null</tt> if none found.\n     */\n    protected ExceptionType getExceptionPolicy(Exchange exchange, Throwable exception) {\n        if (exceptionPolicy == null) {\n            throw new IllegalStateException(\"The exception policy has not been set\");\n        }\n\n        return exceptionPolicy.getExceptionPolicy(exceptionPolicies, exchange, exception);\n    }\n\n    /**\n     * Sets the strategy to use for resolving the {@link ExceptionType} to use\n     * for handling thrown exceptions.\n     */\n    public void setExceptionPolicy(ExceptionPolicyStrategy exceptionPolicy) {\n        this.exceptionPolicy = exceptionPolicy;\n    }\n\n    /**\n     * Creates the default exception policy strategy to use.\n     */\n    public static ExceptionPolicyStrategy createDefaultExceptionPolicyStrategy() {\n        return new DefaultExceptionPolicyStrategy();", "functions": [{"function_name": "addExceptionPolicy", "code": "    public void addExceptionPolicy(ExceptionType exceptionType) {\n        Processor processor = exceptionType.getErrorHandler();\n        addChildService(processor);\n\n        List<Class> list = exceptionType.getExceptionClasses();\n\n        for (Class clazz : list) {\n            ExceptionPolicyKey key = new ExceptionPolicyKey(clazz, exceptionType.getOnWhen());\n            exceptionPolicies.put(key, exceptionType);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [1, 9], [6, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 1], [10, 6], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "customProcessorForException", "code": "    protected boolean customProcessorForException(Exchange exchange, Throwable exception) throws Exception {\n        ExceptionType policy = getExceptionPolicy(exchange, exception);\n        if (policy != null) {\n            Processor processor = policy.getErrorHandler();\n            if (processor != null) {\n                processor.process(exchange);\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [7, 10], [3, 11], [8, 12], [8, 13], [12, 14], [9, 15], [13, 16], [8, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 7], [11, 3], [12, 8], [13, 8], [14, 12], [15, 9], [16, 13], [17, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getExceptionPolicy", "code": "    protected ExceptionType getExceptionPolicy(Exchange exchange, Throwable exception) {\n        if (exceptionPolicy == null) {\n            throw new IllegalStateException(\"The exception policy has not been set\");\n        }\n\n        return exceptionPolicy.getExceptionPolicy(exceptionPolicies, exchange, exception);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setExceptionPolicy", "code": "    public void setExceptionPolicy(ExceptionPolicyStrategy exceptionPolicy) {\n        this.exceptionPolicy = exceptionPolicy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createDefaultExceptionPolicyStrategy", "code": "    public static ExceptionPolicyStrategy createDefaultExceptionPolicyStrategy() {\n        return new DefaultExceptionPolicyStrategy();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.7-8604", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/serializer/utils/WrappedRuntimeException.java", "language": "java", "name": "org.apache.xml.serializer.utils.WrappedRuntimeException", "code": "public final class WrappedRuntimeException extends RuntimeException\n{\n    static final long serialVersionUID = 7140414456714658073L;\n\n  /** Primary checked exception.\n   *  @serial          */\n  private Exception m_exception;\n\n  /**\n   * Construct a WrappedRuntimeException from a\n   * checked exception.\n   *\n   * @param e Primary checked exception\n   */\n  public WrappedRuntimeException(Exception e)\n  {\n\n    super(e.getMessage());\n\n    m_exception = e;\n  }\n\n  /**\n   * Constructor WrappedRuntimeException\n   *\n   *\n   * @param msg Exception information.\n   * @param e Primary checked exception\n   */\n  public WrappedRuntimeException(String msg, Exception e)\n  {\n\n    super(msg);\n\n    m_exception = e;\n  }\n  \n  /**\n   * Get the checked exception that this runtime exception wraps.\n   *\n   * @return The primary checked exception\n   */\n  public Exception getException()\n  {\n    return m_exception;", "functions": [{"function_name": "getException", "code": "  public Exception getException()\n  {\n    return m_exception;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "WrappedRuntimeException", "code": "  public WrappedRuntimeException(Exception e)\n  {\n\n    super(e.getMessage());\n\n    m_exception = e;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "WrappedRuntimeException", "code": "  public WrappedRuntimeException(String msg, Exception e)\n  {\n\n    super(msg);\n\n    m_exception = e;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.6-7557", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/DTMAxisIterator.java", "language": "java", "name": "org.apache.xml.dtm.DTMAxisIterator", "code": "public interface DTMAxisIterator extends Cloneable\n{\n\n  /** Specifies the end of the iteration, and is the same as DTM.NULL.  */\n  public static final int END = DTM.NULL;\n\n  /**\n   * Get the next node in the iteration.\n   *\n   * @return The next node handle in the iteration, or END.\n   */\n  public int next();  \n  \n\n  /**\n   * Resets the iterator to the last start node.\n   *\n   * @return A DTMAxisIterator, which may or may not be the same as this \n   *         iterator.\n   */\n  public DTMAxisIterator reset();\n\n  /**\n   * @return the number of nodes in this iterator.  This may be an expensive \n   * operation when called the first time.\n   */\n  public int getLast();\n\n  /**\n   * @return The position of the current node in the set, as defined by XPath.\n   */\n  public int getPosition();\n\n  /**\n   * Remembers the current node for the next call to gotoMark().\n   */\n  public void setMark();\n\n  /**\n   * Restores the current node remembered by setMark().\n   */\n  public void gotoMark();\n\n  /**\n   * Set start to END should 'close' the iterator,\n   * i.e. subsequent call to next() should return END.\n   *\n   * @param node Sets the root of the iteration.\n   *\n   * @return A DTMAxisIterator set to the start of the iteration.\n   */\n  public DTMAxisIterator setStartNode(int node);\n\n  /**\n   * Get start to END should 'close' the iterator,\n   * i.e. subsequent call to next() should return END.\n   *\n   * @return The root node of the iteration.\n   */\n  public int getStartNode();\n\n  /**\n   * @return true if this iterator has a reversed axis, else false.\n   */\n  public boolean isReverse();\n\n  /**\n   * @return a deep copy of this iterator. The clone should not be reset \n   * from its current position.\n   */\n  public DTMAxisIterator cloneIterator();\n  \n  /**\n   * Set if restartable.\n   */\n  public void setRestartable(boolean isRestartable);\n\n  /**\n   * Return the node at the given position.\n   * \n   * @param position The position\n   * @return The node at the given position.\n   */\n  public int getNodeByPosition(int position);", "functions": [{"function_name": "next", "code": "  public int next();  ", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "reset", "code": "  public DTMAxisIterator reset();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getLast", "code": "  public int getLast();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getPosition", "code": "  public int getPosition();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setMark", "code": "  public void setMark();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "gotoMark", "code": "  public void gotoMark();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setStartNode", "code": "  public DTMAxisIterator setStartNode(int node);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStartNode", "code": "  public int getStartNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isReverse", "code": "  public boolean isReverse();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "cloneIterator", "code": "  public DTMAxisIterator cloneIterator();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setRestartable", "code": "  public void setRestartable(boolean isRestartable);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeByPosition", "code": "  public int getNodeByPosition(int position);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.0-3936", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/util/IntegerArray.java", "language": "java", "name": "org.gjt.sp.util.IntegerArray", "code": "public class IntegerArray\n{\n\t//{{{ IntegerArray constructor\n\tpublic IntegerArray()\n\t{\n\t\tarray = new int[100];\n\t} //}}}\n\n\t//{{{ add() method\n\tpublic void add(int num)\n\t{\n\t\tif(len >= array.length)\n\t\t{\n\t\t\tint[] arrayN = new int[len * 2];\n\t\t\tSystem.arraycopy(array,0,arrayN,0,len);\n\t\t\tarray = arrayN;\n\t\t}\n\n\t\tarray[len++] = num;\n\t} //}}}\n\n\t//{{{ get() method\n\tpublic final int get(int index)\n\t{\n\t\treturn array[index];\n\t} //}}}\n\n\t//{{{ getSize() method\n\tpublic final int getSize()\n\t{\n\t\treturn len;\n\t} //}}}\n\n\t//{{{ setSize() method\n\tpublic final void setSize(int len)\n\t{\n\t\tthis.len = len;\n\t} //}}}\n\n\t//{{{ clear() method\n\tpublic final void clear()\n\t{\n\t\tlen = 0;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate int[] array;\n\tprivate int len;", "functions": [{"function_name": "add", "code": "\tpublic void add(int num)\n\t{\n\t\tif(len >= array.length)\n\t\t{\n\t\t\tint[] arrayN = new int[len * 2];\n\t\t\tSystem.arraycopy(array,0,arrayN,0,len);\n\t\t\tarray = arrayN;\n\t\t}\n\n\t\tarray[len++] = num;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [7, 8], [7, 9], [5, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 7], [9, 7], [10, 5], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "get", "code": "\tpublic final int get(int index)\n\t{\n\t\treturn array[index];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSize", "code": "\tpublic final int getSize()\n\t{\n\t\treturn len;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSize", "code": "\tpublic final void setSize(int len)\n\t{\n\t\tthis.len = len;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clear", "code": "\tpublic final void clear()\n\t{\n\t\tlen = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "IntegerArray", "code": "\tpublic IntegerArray()\n\t{\n\t\tarray = new int[100];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.5-5918", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/usermodel/HSSFCell.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFCell", "code": "public class HSSFCell\n{\n\n    /**\n     * Numeric Cell type (0)\n     * @see #setCellType(int)\n     * @see #getCellType()\n     */\n\n    public final static int          CELL_TYPE_NUMERIC           = 0;\n\n    /**\n     * String Cell type (1)\n     * @see #setCellType(int)\n     * @see #getCellType()\n     */\n\n    public final static int          CELL_TYPE_STRING            = 1;\n\n    /**\n     * Formula Cell type (2)\n     * @see #setCellType(int)\n     * @see #getCellType()\n     */\n\n    public final static int          CELL_TYPE_FORMULA           = 2;\n\n    /**\n     * Blank Cell type (3)\n     * @see #setCellType(int)\n     * @see #getCellType()\n     */\n\n    public final static int          CELL_TYPE_BLANK             = 3;\n\n    /**\n     * Boolean Cell type (4)\n     * @see #setCellType(int)\n     * @see #getCellType()\n     */\n\n    public final static int          CELL_TYPE_BOOLEAN           = 4;\n\n    /**\n     * Error Cell type (5)\n     * @see #setCellType(int)\n     * @see #getCellType()\n     */\n\n    public final static int          CELL_TYPE_ERROR             = 5;\n    public final static short        ENCODING_COMPRESSED_UNICODE = 0;\n    public final static short        ENCODING_UTF_16             = 1;\n    private short                    cellNum;\n    private int                      cellType;\n    private HSSFCellStyle            cellStyle;\n    private double                   cellValue;\n    private String                   stringValue;\n    private boolean                  booleanValue;\n    private byte                     errorValue;\n    private short                    encoding = ENCODING_COMPRESSED_UNICODE;\n    private Workbook                 book;\n    private Sheet                    sheet;\n    private int                    row;\n    private CellValueRecordInterface record;\n\n    /**\n     * Creates new Cell - Should only be called by HSSFRow.  This creates a cell\n     * from scratch.\n     * <p>\n     * When the cell is initially created it is set to CELL_TYPE_BLANK. Cell types\n     * can be changed/overwritten by calling setCellValue with the appropriate\n     * type as a parameter although conversions from one type to another may be\n     * prohibited.\n     *\n     * @param book - Workbook record of the workbook containing this cell\n     * @param sheet - Sheet record of the sheet containing this cell\n     * @param row   - the row of this cell\n     * @param col   - the column for this cell\n     *\n     * @see org.apache.poi.hssf.usermodel.HSSFRow#createCell(short)\n     */\n\n    protected HSSFCell(Workbook book, Sheet sheet, int row, short col)\n    {\n        checkBounds(col);\n        cellNum      = col;\n        this.row     = row;\n        cellStyle    = null;\n        cellValue    = 0;\n        stringValue  = null;\n        booleanValue = false;\n        errorValue   = ( byte ) 0;\n        this.book    = book;\n        this.sheet   = sheet;\n\n        setCellType(CELL_TYPE_BLANK, false);\n        ExtendedFormatRecord xf = book.getExFormatAt(0xf);\n\n        setCellStyle(new HSSFCellStyle(( short ) 0xf, xf));\n    }\n\n    /**\n     * Creates new Cell - Should only be called by HSSFRow.  This creates a cell\n     * from scratch.\n     *\n     * @param book - Workbook record of the workbook containing this cell\n     * @param sheet - Sheet record of the sheet containing this cell\n     * @param row   - the row of this cell\n     * @param col   - the column for this cell\n     * @param type  - CELL_TYPE_NUMERIC, CELL_TYPE_STRING, CELL_TYPE_FORMULA, CELL_TYPE_BLANK,\n     *                CELL_TYPE_BOOLEAN, CELL_TYPE_ERROR\n     *                Type of cell\n     * @see org.apache.poi.hssf.usermodel.HSSFRow#createCell(short,int)\n     * @deprecated As of 22-Jan-2002 use @see org.apache.poi.hssf.usermodel.HSSFRow#createCell(short)\n     * and use setCellValue to specify the type lazily.\n     */\n\n    protected HSSFCell(Workbook book, Sheet sheet, int row, short col,\n                       int type)\n    {\n        checkBounds(col);\n        cellNum      = col;\n        this.row     = row;\n        cellType     = type;\n        cellStyle    = null;\n        cellValue    = 0;\n        stringValue  = null;\n        booleanValue = false;\n        errorValue   = ( byte ) 0;\n        this.book    = book;\n        this.sheet   = sheet;\n        switch (type)\n        {\n\n            case CELL_TYPE_NUMERIC :\n                record = new NumberRecord();\n                (( NumberRecord ) record).setColumn(col);\n                (( NumberRecord ) record).setRow(row);\n                (( NumberRecord ) record).setValue(( short ) 0);\n                (( NumberRecord ) record).setXFIndex(( short ) 0);\n                break;\n\n            case CELL_TYPE_STRING :\n                record = new LabelSSTRecord();\n                (( LabelSSTRecord ) record).setColumn(col);\n                (( LabelSSTRecord ) record).setRow(row);\n                (( LabelSSTRecord ) record).setXFIndex(( short ) 0);\n                break;\n\n            case CELL_TYPE_BLANK :\n                record = new BlankRecord();\n                (( BlankRecord ) record).setColumn(col);\n                (( BlankRecord ) record).setRow(row);\n                (( BlankRecord ) record).setXFIndex(( short ) 0);\n                break;\n\n            case CELL_TYPE_FORMULA :\n                FormulaRecord formulaRecord = new FormulaRecord();\n                record = new FormulaRecordAggregate(formulaRecord,null);\n                formulaRecord.setColumn(col);\n                formulaRecord.setRow(row);\n                formulaRecord.setXFIndex(( short ) 0);\n            case CELL_TYPE_BOOLEAN :\n                record = new BoolErrRecord();\n                (( BoolErrRecord ) record).setColumn(col);\n                (( BoolErrRecord ) record).setRow(row);\n                (( BoolErrRecord ) record).setXFIndex(( short ) 0);\n                (( BoolErrRecord ) record).setValue(false);\n                break;\n\n            case CELL_TYPE_ERROR :\n                record = new BoolErrRecord();\n                (( BoolErrRecord ) record).setColumn(col);\n                (( BoolErrRecord ) record).setRow(row);\n                (( BoolErrRecord ) record).setXFIndex(( short ) 0);\n                (( BoolErrRecord ) record).setValue(( byte ) 0);\n                break;\n        }\n        ExtendedFormatRecord xf = book.getExFormatAt(0xf);\n\n        setCellStyle(new HSSFCellStyle(( short ) 0xf, xf));\n    }\n\n    /**\n     * Creates an HSSFCell from a CellValueRecordInterface.  HSSFSheet uses this when\n     * reading in cells from an existing sheet.\n     *\n     * @param book - Workbook record of the workbook containing this cell\n     * @param sheet - Sheet record of the sheet containing this cell\n     * @param cval - the Cell Value Record we wish to represent\n     */\n\n    protected HSSFCell(Workbook book, Sheet sheet, int row,\n                       CellValueRecordInterface cval)\n    {\n        cellNum     = cval.getColumn();\n        record      = cval;\n        this.row    = row;\n        cellType    = determineType(cval);\n        cellStyle   = null;\n        stringValue = null;\n        this.book   = book;\n        this.sheet  = sheet;\n        switch (cellType)\n        {\n\n            case CELL_TYPE_NUMERIC :\n                cellValue = (( NumberRecord ) cval).getValue();\n                break;\n\n            case CELL_TYPE_STRING :\n                stringValue =\n                    book.getSSTString( ( (LabelSSTRecord ) cval).getSSTIndex());\n                break;\n\n            case CELL_TYPE_BLANK :\n                break;\n\n            case CELL_TYPE_FORMULA :\n                cellValue = (( FormulaRecordAggregate ) cval).getFormulaRecord().getValue();\n                stringValue=((FormulaRecordAggregate) cval).getStringValue();\n                break;\n\n            case CELL_TYPE_BOOLEAN :\n                booleanValue = (( BoolErrRecord ) cval).getBooleanValue();\n                break;\n\n            case CELL_TYPE_ERROR :\n                errorValue = (( BoolErrRecord ) cval).getErrorValue();\n                break;\n        }\n        ExtendedFormatRecord xf = book.getExFormatAt(cval.getXFIndex());\n\n        setCellStyle(new HSSFCellStyle(( short ) cval.getXFIndex(), xf));\n    }\n\n    /**\n     * private constructor to prevent blank construction\n     */\n    private HSSFCell()\n    {\n    }\n\n    /**\n     * used internally -- given a cell value record, figure out its type\n     */\n    private int determineType(CellValueRecordInterface cval)\n    {\n        Record record = ( Record ) cval;\n        int    sid    = record.getSid();\n        int    retval = 0;\n\n        switch (sid)\n        {\n\n            case NumberRecord.sid :\n                retval = HSSFCell.CELL_TYPE_NUMERIC;\n                break;\n\n            case BlankRecord.sid :\n                retval = HSSFCell.CELL_TYPE_BLANK;\n                break;\n\n            case LabelSSTRecord.sid :\n                retval = HSSFCell.CELL_TYPE_STRING;\n                break;\n\n            case FormulaRecordAggregate.sid :\n                retval = HSSFCell.CELL_TYPE_FORMULA;\n                break;\n\n            case BoolErrRecord.sid :\n                BoolErrRecord boolErrRecord = ( BoolErrRecord ) record;\n\n                retval = (boolErrRecord.isBoolean())\n                         ? HSSFCell.CELL_TYPE_BOOLEAN\n                         : HSSFCell.CELL_TYPE_ERROR;\n                break;\n        }\n        return retval;\n    }\n\n    /**\n     * set the cell's number within the row (0 based)\n     * @param num  short the cell number\n     */\n\n    public void setCellNum(short num)\n    {\n        cellNum = num;\n        record.setColumn(num);\n    }\n\n    /**\n     *  get the cell's number within the row\n     * @return short reperesenting the column number (logical!)\n     */\n\n    public short getCellNum()\n    {\n        return cellNum;\n    }\n\n    /**\n     * set the cells type (numeric, formula or string) -- DONT USE FORMULAS IN THIS RELEASE\n     * WE'LL THROW YOU A RUNTIME EXCEPTION IF YOU DO\n     * @see #CELL_TYPE_NUMERIC\n     * @see #CELL_TYPE_STRING\n     * @see #CELL_TYPE_FORMULA\n     * @see #CELL_TYPE_BLANK\n     * @see #CELL_TYPE_BOOLEAN\n     * @see #CELL_TYPE_ERROR\n     */\n\n    public void setCellType(int cellType)\n    {\n        setCellType(cellType, true);\n    }\n\n    /**\n     * sets the cell type. The setValue flag indicates whether to bother about\n     *  trying to preserve the current value in the new record if one is created.\n     *  <p>\n     *  The @see #setCellValue method will call this method with false in setValue\n     *  since it will overwrite the cell value later\n     *\n     */\n\n    private void setCellType(int cellType, boolean setValue)\n    {\n\n        if (cellType > CELL_TYPE_ERROR)\n        {\n            throw new RuntimeException(\"I have no idea what type that is!\");\n        }\n        switch (cellType)\n        {\n\n            case CELL_TYPE_FORMULA :\n                FormulaRecordAggregate frec = null;\n\n                if (cellType != this.cellType)\n                {\n                    frec = new FormulaRecordAggregate(new FormulaRecord(),null);\n                }\n                else\n                {\n                    frec = ( FormulaRecordAggregate ) record;\n                }\n                frec.setColumn(getCellNum());\n                if (setValue)\n                {\n                    frec.getFormulaRecord().setValue(getNumericCellValue());\n                }\n                frec.setXFIndex(( short ) cellStyle.getIndex());\n                frec.setRow(row);\n                record = frec;\n                break;\n\n            case CELL_TYPE_NUMERIC :\n                NumberRecord nrec = null;\n\n                if (cellType != this.cellType)\n                {\n                    nrec = new NumberRecord();\n                }\n                else\n                {\n                    nrec = ( NumberRecord ) record;\n                }\n                nrec.setColumn(getCellNum());\n                if (setValue)\n                {\n                    nrec.setValue(getNumericCellValue());\n                }\n                nrec.setXFIndex(( short ) cellStyle.getIndex());\n                nrec.setRow(row);\n                record = nrec;\n                break;\n\n            case CELL_TYPE_STRING :\n                LabelSSTRecord lrec = null;\n\n                if (cellType != this.cellType)\n                {\n                    lrec = new LabelSSTRecord();\n                }\n                else\n                {\n                    lrec = ( LabelSSTRecord ) record;\n                }\n                lrec.setColumn(getCellNum());\n                lrec.setRow(row);\n                lrec.setXFIndex(( short ) cellStyle.getIndex());\n                if (setValue)\n                {\n                    if ((getStringCellValue() != null)\n                            && (!getStringCellValue().equals(\"\")))\n                    {\n                        int sst = 0;\n\n                        if (encoding == ENCODING_COMPRESSED_UNICODE)\n                        {\n                            sst = book.addSSTString(getStringCellValue());\n                        }\n                        if (encoding == ENCODING_UTF_16)\n                        {\n                            sst = book.addSSTString(getStringCellValue(),\n                                                    true);\n                        }\n                        lrec.setSSTIndex(sst);\n                    }\n                }\n                record = lrec;\n                break;\n\n            case CELL_TYPE_BLANK :\n                BlankRecord brec = null;\n\n                if (cellType != this.cellType)\n                {\n                    brec = new BlankRecord();\n                }\n                else\n                {\n                    brec = ( BlankRecord ) record;\n                }\n                brec.setColumn(getCellNum());\n\n                if (cellStyle != null)\n                {\n                    brec.setXFIndex(( short ) cellStyle.getIndex());\n                }\n                else\n                {\n                    brec.setXFIndex(( short ) 0);\n                }\n                brec.setRow(row);\n                record = brec;\n                break;\n\n            case CELL_TYPE_BOOLEAN :\n                BoolErrRecord boolRec = null;\n\n                if (cellType != this.cellType)\n                {\n                    boolRec = new BoolErrRecord();\n                }\n                else\n                {\n                    boolRec = ( BoolErrRecord ) record;\n                }\n                boolRec.setColumn(getCellNum());\n                if (setValue)\n                {\n                    boolRec.setValue(getBooleanCellValue());\n                }\n                boolRec.setXFIndex(( short ) cellStyle.getIndex());\n                boolRec.setRow(row);\n                record = boolRec;\n                break;\n\n            case CELL_TYPE_ERROR :\n                BoolErrRecord errRec = null;\n\n                if (cellType != this.cellType)\n                {\n                    errRec = new BoolErrRecord();\n                }\n                else\n                {\n                    errRec = ( BoolErrRecord ) record;\n                }\n                errRec.setColumn(getCellNum());\n                if (setValue)\n                {\n                    errRec.setValue(getErrorCellValue());\n                }\n                errRec.setXFIndex(( short ) cellStyle.getIndex());\n                errRec.setRow(row);\n                record = errRec;\n                break;\n        }\n        if (cellType != this.cellType)\n        {\n            int loc = sheet.getLoc();\n\n            sheet.replaceValueRecord(record);\n            sheet.setLoc(loc);\n        }\n        this.cellType = cellType;\n    }\n\n    /**\n     * get the cells type (numeric, formula or string)\n     * @see #CELL_TYPE_STRING\n     * @see #CELL_TYPE_NUMERIC\n     * @see #CELL_TYPE_FORMULA\n     * @see #CELL_TYPE_BOOLEAN\n     * @see #CELL_TYPE_ERROR\n     */\n\n    public int getCellType()\n    {\n        return cellType;\n    }\n\n    /**\n     * set a numeric value for the cell\n     *\n     * @param value  the numeric value to set this cell to.  For formulas we'll set the\n     *        precalculated value, for numerics we'll set its value. For other types we\n     *        will change the cell to a numeric cell and set its value.\n     */\n    public void setCellValue(double value)\n    {\n        if ((cellType != CELL_TYPE_NUMERIC) && (cellType != CELL_TYPE_FORMULA))\n        {\n            setCellType(CELL_TYPE_NUMERIC, false);\n        }\n        (( NumberRecord ) record).setValue(value);\n        cellValue = value;\n    }\n\n    /**\n     * set a date value for the cell. Excel treats dates as numeric so you will need to format the cell as\n     * a date.\n     *\n     * @param value  the date value to set this cell to.  For formulas we'll set the\n     *        precalculated value, for numerics we'll set its value. For other types we\n     *        will change the cell to a numeric cell and set its value.\n     */\n    public void setCellValue(Date value)\n    {\n        setCellValue(HSSFDateUtil.getExcelDate(value));\n    }\n\n    /**\n     * set a date value for the cell. Excel treats dates as numeric so you will need to format the cell as\n     * a date.\n     *\n     * @param value  the date value to set this cell to.  For formulas we'll set the\n     *        precalculated value, for numerics we'll set its value. For othertypes we\n     *        will change the cell to a numeric cell and set its value.\n     */\n    public void setCellValue(Calendar value)\n    {\n        setCellValue(value.getTime());\n    }\n\n    /**\n     * set a string value for the cell. Please note that if you are using\n     * full 16 bit unicode you should call <code>setEncoding()</code> first.\n     *\n     * @param value  value to set the cell to.  For formulas we'll set the formula\n     * string, for String cells we'll set its value.  For other types we will\n     * change the cell to a string cell and set its value.\n     * If value is null then we will change the cell to a Blank cell.\n     */\n\n    public void setCellValue(String value)\n    {\n        if (value == null)\n        {\n            setCellType(CELL_TYPE_BLANK, false);\n        }\n        else\n        {\n            if ((cellType != CELL_TYPE_STRING ) && ( cellType != CELL_TYPE_FORMULA))\n            {\n                setCellType(CELL_TYPE_STRING, false);\n            }\n            int index = 0;\n\n            if (encoding == ENCODING_COMPRESSED_UNICODE)\n            {\n                index = book.addSSTString(value);\n            }\n            if (encoding == ENCODING_UTF_16)\n            {\n                index = book.addSSTString(value, true);\n            }\n            (( LabelSSTRecord ) record).setSSTIndex(index);\n            stringValue = value;\n        }\n    }\n\n    public void setCellFormula(String formula) {\n        if (formula==null) {\n            setCellType(CELL_TYPE_BLANK,false);\n        } else {\n            setCellType(CELL_TYPE_FORMULA,false);\n            FormulaRecordAggregate rec = (FormulaRecordAggregate) record;\n            rec.getFormulaRecord().setOptions(( short ) 2);\n            rec.getFormulaRecord().setValue(0);\n            \n            if (rec.getXFIndex() == (short)0) rec.setXFIndex(( short ) 0x0f);\n            FormulaParser fp = new FormulaParser(formula+\";\",book);\n            fp.parse();\n            Ptg[] ptg  = fp.getRPNPtg();\n            int   size = 0;\n            for (int k = 0; k < ptg.length; k++) {\n                size += ptg[ k ].getSize();\n                rec.getFormulaRecord().pushExpressionToken(ptg[ k ]);\n            }\n            rec.getFormulaRecord().setExpressionLength(( short ) size);\n        }\n    }\n\n    public String getCellFormula() {\n        String retval = FormulaParser.toFormulaString(book, ((FormulaRecordAggregate)record).getFormulaRecord().getParsedExpression());\n        return retval;\n    }\n\n\n    /**\n     * get the value of the cell as a number.  For strings we throw an exception.\n     * For blank cells we return a 0.\n     */\n\n    public double getNumericCellValue()\n    {\n        if (cellType == CELL_TYPE_BLANK)\n        {\n            return 0;\n        }\n        if (cellType == CELL_TYPE_STRING)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a numeric value from a String based cell\");\n        }\n        if (cellType == CELL_TYPE_BOOLEAN)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a numeric value from a boolean cell\");\n        }\n        if (cellType == CELL_TYPE_ERROR)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a numeric value from an error cell\");\n        }\n        return cellValue;\n    }\n\n    /**\n     * get the value of the cell as a date.  For strings we throw an exception.\n     * For blank cells we return a null.\n     */\n    public Date getDateCellValue()\n    {\n        if (cellType == CELL_TYPE_BLANK)\n        {\n            return null;\n        }\n        if (cellType == CELL_TYPE_STRING)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a date value from a String based cell\");\n        }\n        if (cellType == CELL_TYPE_BOOLEAN)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a date value from a boolean cell\");\n        }\n        if (cellType == CELL_TYPE_ERROR)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a date value from an error cell\");\n        }\n        if (book.isUsing1904DateWindowing()) {\n            return HSSFDateUtil.getJavaDate(cellValue,true);\n        }\n        else {\n            return HSSFDateUtil.getJavaDate(cellValue,false);\n        }\n    }\n\n    /**\n     * get the value of the cell as a string - for numeric cells we throw an exception.\n     * For blank cells we return an empty string.\n     * For formulaCells that are not string Formulas, we return empty String\n     */\n\n    public String getStringCellValue()\n    {\n        if (cellType == CELL_TYPE_BLANK)\n        {\n            return \"\";\n        }\n        if (cellType == CELL_TYPE_NUMERIC)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a string value from a numeric cell\");\n        }\n        if (cellType == CELL_TYPE_BOOLEAN)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a string value from a boolean cell\");\n        }\n        if (cellType == CELL_TYPE_ERROR)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a string value from an error cell\");\n        }\n        if (cellType == CELL_TYPE_FORMULA) \n        {\n            if (stringValue==null) return \"\";\n        }\n        return stringValue;\n    }\n\n    /**\n     * set a boolean value for the cell\n     *\n     * @param value the boolean value to set this cell to.  For formulas we'll set the\n     *        precalculated value, for booleans we'll set its value. For other types we\n     *        will change the cell to a boolean cell and set its value.\n     */\n\n    public void setCellValue(boolean value)\n    {\n        if ((cellType != CELL_TYPE_BOOLEAN ) && ( cellType != CELL_TYPE_FORMULA))\n        {\n            setCellType(CELL_TYPE_BOOLEAN, false);\n        }\n        (( BoolErrRecord ) record).setValue(value);\n        booleanValue = value;\n    }\n\n    /**\n     * set a error value for the cell\n     *\n     * @param value the error value to set this cell to.  For formulas we'll set the\n     *        precalculated value ??? IS THIS RIGHT??? , for errors we'll set\n     *        its value. For other types we will change the cell to an error\n     *        cell and set its value.\n     */\n\n    public void setCellErrorValue(byte value)\n    {\n        if ((cellType != CELL_TYPE_ERROR) && (cellType != CELL_TYPE_FORMULA))\n        {\n            setCellType(CELL_TYPE_ERROR, false);\n        }\n        (( BoolErrRecord ) record).setValue(value);\n        errorValue = value;\n    }\n\n    /**\n     * get the value of the cell as a boolean.  For strings, numbers, and errors, we throw an exception.\n     * For blank cells we return a false.\n     */\n\n    public boolean getBooleanCellValue()\n    {\n        if (cellType == CELL_TYPE_BOOLEAN)\n        {\n            return booleanValue;\n        }\n        if (cellType == CELL_TYPE_BLANK)\n        {\n            return false;\n        }\n        throw new NumberFormatException(\n            \"You cannot get a boolean value from a non-boolean cell\");\n    }\n\n    /**\n     * get the value of the cell as an error code.  For strings, numbers, and booleans, we throw an exception.\n     * For blank cells we return a 0.\n     */\n\n    public byte getErrorCellValue()\n    {\n        if (cellType == CELL_TYPE_ERROR)\n        {\n            return errorValue;\n        }\n        if (cellType == CELL_TYPE_BLANK)\n        {\n            return ( byte ) 0;\n        }\n        throw new NumberFormatException(\n            \"You cannot get an error value from a non-error cell\");\n    }\n\n    /**\n     * set the style for the cell.  The style should be an HSSFCellStyle created/retreived from\n     * the HSSFWorkbook.\n     *\n     * @param style  reference contained in the workbook\n     * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createCellStyle()\n     * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getCellStyleAt(short)\n     */\n\n    public void setCellStyle(HSSFCellStyle style)\n    {\n        cellStyle = style;\n        record.setXFIndex(style.getIndex());\n    }\n\n    /**\n     * get the style for the cell.  This is a reference to a cell style contained in the workbook\n     * object.\n     * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getCellStyleAt(short)\n     */\n\n    public HSSFCellStyle getCellStyle()\n    {\n        return cellStyle;\n    }\n\n    /**\n     * used for internationalization, currently 0 for compressed unicode or 1 for 16-bit\n     *\n     * @see #ENCODING_COMPRESSED_UNICODE\n     * @see #ENCODING_UTF_16\n     *\n     * @return 1 or 0 for compressed or uncompressed (used only with String type)\n     */\n\n    public short getEncoding()\n    {\n        return encoding;\n    }\n\n    /**\n     * set the encoding to either 8 or 16 bit. (US/UK use 8-bit, rest of the western world use 16bit)\n     *\n     * @see #ENCODING_COMPRESSED_UNICODE\n     * @see #ENCODING_UTF_16\n     *\n     * @param encoding either ENCODING_COMPRESSED_UNICODE (0) or ENCODING_UTF_16 (1)\n     */\n\n    public void setEncoding(short encoding)\n    {\n        this.encoding = encoding;\n    }\n\n    /**\n     * Should only be used by HSSFSheet and friends.  Returns the low level CellValueRecordInterface record\n     *\n     * @return CellValueRecordInterface representing the cell via the low level api.\n     */\n\n    protected CellValueRecordInterface getCellValueRecord()\n    {\n        return record;\n    }\n\n    /**\n     * @throws RuntimeException if the bounds are exceeded.\n     */\n    private void checkBounds(int cellNum) {\n      if (cellNum > 255) {\n          throw new RuntimeException(\"You cannot have more than 255 columns \"+\n                    \"in a given row (IV).  Because Excel can't handle it\");\n      }\n      else if (cellNum < 0) {\n          throw new RuntimeException(\"You cannot reference columns with an index of less then 0.\");\n      }\n    }\n    \n    /**\n     * Sets this cell as the active cell for the worksheet\n     */\n    public void setAsActiveCell()\n    {\n        this.sheet.setActiveCellRow(this.row);\n        this.sheet.setActiveCellCol(this.cellNum);", "functions": [{"function_name": "determineType", "code": "    private int determineType(CellValueRecordInterface cval)\n    {\n        Record record = ( Record ) cval;\n        int    sid    = record.getSid();\n        int    retval = 0;\n\n        switch (sid)\n        {\n\n            case NumberRecord.sid :\n                retval = HSSFCell.CELL_TYPE_NUMERIC;\n                break;\n\n            case BlankRecord.sid :\n                retval = HSSFCell.CELL_TYPE_BLANK;\n                break;\n\n            case LabelSSTRecord.sid :\n                retval = HSSFCell.CELL_TYPE_STRING;\n                break;\n\n            case FormulaRecordAggregate.sid :\n                retval = HSSFCell.CELL_TYPE_FORMULA;\n                break;\n\n            case BoolErrRecord.sid :\n                BoolErrRecord boolErrRecord = ( BoolErrRecord ) record;\n\n                retval = (boolErrRecord.isBoolean())\n                         ? HSSFCell.CELL_TYPE_BOOLEAN\n                         : HSSFCell.CELL_TYPE_ERROR;\n                break;\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BREAK_CONTINUE", "VAR_DECL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "COND_EXPR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [3, 13], [4, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [15, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 3], [14, 4], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 15], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setCellNum", "code": "    public void setCellNum(short num)\n    {\n        cellNum = num;\n        record.setColumn(num);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCellNum", "code": "    public short getCellNum()\n    {\n        return cellNum;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCellType", "code": "    public void setCellType(int cellType)\n    {\n        setCellType(cellType, true);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setCellType", "code": "    private void setCellType(int cellType, boolean setValue)\n    {\n\n        if (cellType > CELL_TYPE_ERROR)\n        {\n            throw new RuntimeException(\"I have no idea what type that is!\");\n        }\n        switch (cellType)\n        {\n\n            case CELL_TYPE_FORMULA :\n                FormulaRecordAggregate frec = null;\n\n                if (cellType != this.cellType)\n                {\n                    frec = new FormulaRecordAggregate(new FormulaRecord(),null);\n                }\n                else\n                {\n                    frec = ( FormulaRecordAggregate ) record;\n                }\n                frec.setColumn(getCellNum());\n                if (setValue)\n                {\n                    frec.getFormulaRecord().setValue(getNumericCellValue());\n                }\n                frec.setXFIndex(( short ) cellStyle.getIndex());\n                frec.setRow(row);\n                record = frec;\n                break;\n\n            case CELL_TYPE_NUMERIC :\n                NumberRecord nrec = null;\n\n                if (cellType != this.cellType)\n                {\n                    nrec = new NumberRecord();\n                }\n                else\n                {\n                    nrec = ( NumberRecord ) record;\n                }\n                nrec.setColumn(getCellNum());\n                if (setValue)\n                {\n                    nrec.setValue(getNumericCellValue());\n                }\n                nrec.setXFIndex(( short ) cellStyle.getIndex());\n                nrec.setRow(row);\n                record = nrec;\n                break;\n\n            case CELL_TYPE_STRING :\n                LabelSSTRecord lrec = null;\n\n                if (cellType != this.cellType)\n                {\n                    lrec = new LabelSSTRecord();\n                }\n                else\n                {\n                    lrec = ( LabelSSTRecord ) record;\n                }\n                lrec.setColumn(getCellNum());\n                lrec.setRow(row);\n                lrec.setXFIndex(( short ) cellStyle.getIndex());\n                if (setValue)\n                {\n                    if ((getStringCellValue() != null)\n                            && (!getStringCellValue().equals(\"\")))\n                    {\n                        int sst = 0;\n\n                        if (encoding == ENCODING_COMPRESSED_UNICODE)\n                        {\n                            sst = book.addSSTString(getStringCellValue());\n                        }\n                        if (encoding == ENCODING_UTF_16)\n                        {\n                            sst = book.addSSTString(getStringCellValue(),\n                                                    true);\n                        }\n                        lrec.setSSTIndex(sst);\n                    }\n                }\n                record = lrec;\n                break;\n\n            case CELL_TYPE_BLANK :\n                BlankRecord brec = null;\n\n                if (cellType != this.cellType)\n                {\n                    brec = new BlankRecord();\n                }\n                else\n                {\n                    brec = ( BlankRecord ) record;\n                }\n                brec.setColumn(getCellNum());\n\n                if (cellStyle != null)\n                {\n                    brec.setXFIndex(( short ) cellStyle.getIndex());\n                }\n                else\n                {\n                    brec.setXFIndex(( short ) 0);\n                }\n                brec.setRow(row);\n                record = brec;\n                break;\n\n            case CELL_TYPE_BOOLEAN :\n                BoolErrRecord boolRec = null;\n\n                if (cellType != this.cellType)\n                {\n                    boolRec = new BoolErrRecord();\n                }\n                else\n                {\n                    boolRec = ( BoolErrRecord ) record;\n                }\n                boolRec.setColumn(getCellNum());\n                if (setValue)\n                {\n                    boolRec.setValue(getBooleanCellValue());\n                }\n                boolRec.setXFIndex(( short ) cellStyle.getIndex());\n                boolRec.setRow(row);\n                record = boolRec;\n                break;\n\n            case CELL_TYPE_ERROR :\n                BoolErrRecord errRec = null;\n\n                if (cellType != this.cellType)\n                {\n                    errRec = new BoolErrRecord();\n                }\n                else\n                {\n                    errRec = ( BoolErrRecord ) record;\n                }\n                errRec.setColumn(getCellNum());\n                if (setValue)\n                {\n                    errRec.setValue(getErrorCellValue());\n                }\n                errRec.setXFIndex(( short ) cellStyle.getIndex());\n                errRec.setRow(row);\n                record = errRec;\n                break;\n        }\n        if (cellType != this.cellType)\n        {\n            int loc = sheet.getLoc();\n\n            sheet.replaceValueRecord(record);\n            sheet.setLoc(loc);\n        }\n        this.cellType = cellType;", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "VAR_DECL", "BREAK_CONTINUE", "IF", "IF", "VAR_DECL", "BREAK_CONTINUE", "IF", "IF", "VAR_DECL", "BREAK_CONTINUE", "IF", "IF", "VAR_DECL", "BREAK_CONTINUE", "IF", "IF", "VAR_DECL", "BREAK_CONTINUE", "IF", "IF", "VAR_DECL", "BREAK_CONTINUE", "IF", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [1, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [3, 34], [1, 35], [1, 36], [2, 37], [2, 38], [2, 39], [2, 40], [12, 41], [2, 42], [2, 43], [2, 44], [2, 45], [16, 46], [2, 47], [2, 48], [19, 49], [2, 50], [20, 51], [2, 52], [2, 53], [2, 54], [2, 55], [24, 56], [2, 57], [2, 58], [2, 59], [2, 60], [28, 61], [2, 62], [2, 63], [2, 64], [2, 65], [32, 66], [34, 67], [9, 68], [40, 69], [13, 70], [45, 71], [17, 72], [49, 73], [50, 74], [21, 75], [23, 76], [55, 77], [25, 78], [60, 79], [29, 80], [65, 81], [33, 82], [67, 83], [39, 84], [11, 85], [12, 86], [12, 87], [44, 88], [15, 89], [16, 90], [16, 91], [19, 92], [19, 93], [20, 94], [20, 95], [76, 96], [53, 97], [24, 98], [24, 99], [59, 100], [27, 101], [28, 102], [28, 103], [64, 104], [31, 105], [32, 106], [32, 107], [85, 108], [87, 109], [89, 110], [91, 111], [95, 112], [76, 113], [76, 114], [76, 115], [96, 116], [96, 117], [99, 118], [101, 119], [103, 120], [105, 121], [107, 122], [92, 123], [93, 124], [76, 125], [113, 126], [114, 127], [117, 128], [117, 129], [121, 130], [122, 131], [122, 132], [115, 133], [113, 134], [114, 135], [134, 136], [135, 137], [136, 138], [136, 139], [137, 140], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 1], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 3], [35, 1], [36, 1], [37, 2], [38, 2], [39, 2], [40, 2], [41, 12], [42, 2], [43, 2], [44, 2], [45, 2], [46, 16], [47, 2], [48, 2], [49, 19], [50, 2], [51, 20], [52, 2], [53, 2], [54, 2], [55, 2], [56, 24], [57, 2], [58, 2], [59, 2], [60, 2], [61, 28], [62, 2], [63, 2], [64, 2], [65, 2], [66, 32], [67, 34], [68, 9], [69, 40], [70, 13], [71, 45], [72, 17], [73, 49], [74, 50], [75, 21], [76, 23], [77, 55], [78, 25], [79, 60], [80, 29], [81, 65], [82, 33], [83, 67], [84, 39], [85, 11], [86, 12], [87, 12], [88, 44], [89, 15], [90, 16], [91, 16], [92, 19], [93, 19], [94, 20], [95, 20], [96, 76], [97, 53], [98, 24], [99, 24], [100, 59], [101, 27], [102, 28], [103, 28], [104, 64], [105, 31], [106, 32], [107, 32], [108, 85], [109, 87], [110, 89], [111, 91], [112, 95], [113, 76], [114, 76], [115, 76], [116, 96], [117, 96], [118, 99], [119, 101], [120, 103], [121, 105], [122, 107], [123, 92], [124, 93], [125, 76], [126, 113], [127, 114], [128, 117], [129, 117], [130, 121], [131, 122], [132, 122], [133, 115], [134, 113], [135, 114], [136, 134], [137, 135], [138, 136], [139, 136], [140, 137], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140]]}, {"function_name": "getCellType", "code": "    public int getCellType()\n    {\n        return cellType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCellValue", "code": "    public void setCellValue(double value)\n    {\n        if ((cellType != CELL_TYPE_NUMERIC) && (cellType != CELL_TYPE_FORMULA))\n        {\n            setCellType(CELL_TYPE_NUMERIC, false);\n        }\n        (( NumberRecord ) record).setValue(value);\n        cellValue = value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setCellValue", "code": "    public void setCellValue(Date value)\n    {\n        setCellValue(HSSFDateUtil.getExcelDate(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setCellValue", "code": "    public void setCellValue(Calendar value)\n    {\n        setCellValue(value.getTime());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setCellValue", "code": "    public void setCellValue(String value)\n    {\n        if (value == null)\n        {\n            setCellType(CELL_TYPE_BLANK, false);\n        }\n        else\n        {\n            if ((cellType != CELL_TYPE_STRING ) && ( cellType != CELL_TYPE_FORMULA))\n            {\n                setCellType(CELL_TYPE_STRING, false);\n            }\n            int index = 0;\n\n            if (encoding == ENCODING_COMPRESSED_UNICODE)\n            {\n                index = book.addSSTString(value);\n            }\n            if (encoding == ENCODING_UTF_16)\n            {\n                index = book.addSSTString(value, true);\n            }\n            (( LabelSSTRecord ) record).setSSTIndex(index);\n            stringValue = value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [1, 9], [4, 10], [5, 11], [7, 12], [1, 13], [6, 14], [12, 15], [12, 16], [13, 17], [4, 18], [5, 19], [7, 20], [18, 21], [19, 22], [20, 23], [21, 24], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 1], [10, 4], [11, 5], [12, 7], [13, 1], [14, 6], [15, 12], [16, 12], [17, 13], [18, 4], [19, 5], [20, 7], [21, 18], [22, 19], [23, 20], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "setCellFormula", "code": "    public void setCellFormula(String formula) {\n        if (formula==null) {\n            setCellType(CELL_TYPE_BLANK,false);\n        } else {\n            setCellType(CELL_TYPE_FORMULA,false);\n            FormulaRecordAggregate rec = (FormulaRecordAggregate) record;\n            rec.getFormulaRecord().setOptions(( short ) 2);\n            rec.getFormulaRecord().setValue(0);\n            \n            if (rec.getXFIndex() == (short)0) rec.setXFIndex(( short ) 0x0f);\n            FormulaParser fp = new FormulaParser(formula+\";\",book);\n            fp.parse();\n            Ptg[] ptg  = fp.getRPNPtg();\n            int   size = 0;\n            for (int k = 0; k < ptg.length; k++) {\n                size += ptg[ k ].getSize();\n                rec.getFormulaRecord().pushExpressionToken(ptg[ k ]);\n            }\n            rec.getFormulaRecord().setExpressionLength(( short ) size);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [1, 11], [4, 12], [1, 13], [8, 14], [1, 15], [1, 16], [1, 17], [1, 18], [11, 19], [5, 20], [6, 21], [7, 22], [8, 23], [14, 24], [15, 25], [16, 26], [17, 27], [18, 28], [4, 29], [4, 30], [4, 31], [22, 32], [14, 33], [25, 34], [29, 35], [32, 36], [23, 37], [26, 38], [30, 39], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 1], [12, 4], [13, 1], [14, 8], [15, 1], [16, 1], [17, 1], [18, 1], [19, 11], [20, 5], [21, 6], [22, 7], [23, 8], [24, 14], [25, 15], [26, 16], [27, 17], [28, 18], [29, 4], [30, 4], [31, 4], [32, 22], [33, 14], [34, 25], [35, 29], [36, 32], [37, 23], [38, 26], [39, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getCellFormula", "code": "    public String getCellFormula() {\n        String retval = FormulaParser.toFormulaString(book, ((FormulaRecordAggregate)record).getFormulaRecord().getParsedExpression());\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNumericCellValue", "code": "    public double getNumericCellValue()\n    {\n        if (cellType == CELL_TYPE_BLANK)\n        {\n            return 0;\n        }\n        if (cellType == CELL_TYPE_STRING)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a numeric value from a String based cell\");\n        }\n        if (cellType == CELL_TYPE_BOOLEAN)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a numeric value from a boolean cell\");\n        }\n        if (cellType == CELL_TYPE_ERROR)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a numeric value from an error cell\");\n        }\n        return cellValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [2, 10], [3, 11], [4, 12], [5, 13], [10, 14], [11, 15], [12, 16], [13, 17], [14, 18], [15, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [10, 2], [11, 3], [12, 4], [13, 5], [14, 10], [15, 11], [16, 12], [17, 13], [18, 14], [19, 15], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getDateCellValue", "code": "    public Date getDateCellValue()\n    {\n        if (cellType == CELL_TYPE_BLANK)\n        {\n            return null;\n        }\n        if (cellType == CELL_TYPE_STRING)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a date value from a String based cell\");\n        }\n        if (cellType == CELL_TYPE_BOOLEAN)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a date value from a boolean cell\");\n        }\n        if (cellType == CELL_TYPE_ERROR)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a date value from an error cell\");\n        }\n        if (book.isUsing1904DateWindowing()) {\n            return HSSFDateUtil.getJavaDate(cellValue,true);\n        }\n        else {\n            return HSSFDateUtil.getJavaDate(cellValue,false);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [5, 10], [1, 11], [1, 12], [2, 13], [3, 14], [4, 15], [5, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [18, 24], [19, 25], [20, 26], [21, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 5], [11, 1], [12, 1], [13, 2], [14, 3], [15, 4], [16, 5], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 18], [25, 19], [26, 20], [27, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getStringCellValue", "code": "    public String getStringCellValue()\n    {\n        if (cellType == CELL_TYPE_BLANK)\n        {\n            return \"\";\n        }\n        if (cellType == CELL_TYPE_NUMERIC)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a string value from a numeric cell\");\n        }\n        if (cellType == CELL_TYPE_BOOLEAN)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a string value from a boolean cell\");\n        }\n        if (cellType == CELL_TYPE_ERROR)\n        {\n            throw new NumberFormatException(\n                \"You cannot get a string value from an error cell\");\n        }\n        if (cellType == CELL_TYPE_FORMULA) \n        {\n            if (stringValue==null) return \"\";\n        }\n        return stringValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [2, 12], [3, 13], [4, 14], [5, 15], [6, 16], [12, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [18, 24], [19, 25], [20, 26], [21, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [12, 2], [13, 3], [14, 4], [15, 5], [16, 6], [17, 12], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 18], [25, 19], [26, 20], [27, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "setCellValue", "code": "    public void setCellValue(boolean value)\n    {\n        if ((cellType != CELL_TYPE_BOOLEAN ) && ( cellType != CELL_TYPE_FORMULA))\n        {\n            setCellType(CELL_TYPE_BOOLEAN, false);\n        }\n        (( BoolErrRecord ) record).setValue(value);\n        booleanValue = value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setCellErrorValue", "code": "    public void setCellErrorValue(byte value)\n    {\n        if ((cellType != CELL_TYPE_ERROR) && (cellType != CELL_TYPE_FORMULA))\n        {\n            setCellType(CELL_TYPE_ERROR, false);\n        }\n        (( BoolErrRecord ) record).setValue(value);\n        errorValue = value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getBooleanCellValue", "code": "    public boolean getBooleanCellValue()\n    {\n        if (cellType == CELL_TYPE_BOOLEAN)\n        {\n            return booleanValue;\n        }\n        if (cellType == CELL_TYPE_BLANK)\n        {\n            return false;\n        }\n        throw new NumberFormatException(\n            \"You cannot get a boolean value from a non-boolean cell\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [2, 8], [3, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 4], [8, 2], [9, 3], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getErrorCellValue", "code": "    public byte getErrorCellValue()\n    {\n        if (cellType == CELL_TYPE_ERROR)\n        {\n            return errorValue;\n        }\n        if (cellType == CELL_TYPE_BLANK)\n        {\n            return ( byte ) 0;\n        }\n        throw new NumberFormatException(\n            \"You cannot get an error value from a non-error cell\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [2, 8], [3, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 4], [8, 2], [9, 3], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setCellStyle", "code": "    public void setCellStyle(HSSFCellStyle style)\n    {\n        cellStyle = style;\n        record.setXFIndex(style.getIndex());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCellStyle", "code": "    public HSSFCellStyle getCellStyle()\n    {\n        return cellStyle;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEncoding", "code": "    public short getEncoding()\n    {\n        return encoding;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEncoding", "code": "    public void setEncoding(short encoding)\n    {\n        this.encoding = encoding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCellValueRecord", "code": "    protected CellValueRecordInterface getCellValueRecord()\n    {\n        return record;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "checkBounds", "code": "    private void checkBounds(int cellNum) {\n      if (cellNum > 255) {\n          throw new RuntimeException(\"You cannot have more than 255 columns \"+\n                    \"in a given row (IV).  Because Excel can't handle it\");\n      }\n      else if (cellNum < 0) {\n          throw new RuntimeException(\"You cannot reference columns with an index of less then 0.\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [4, 7], [3, 8], [5, 9], [6, 10], [8, 11], [10, 12], [11, 13], [12, 14], [12, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 4], [8, 3], [9, 5], [10, 6], [11, 8], [12, 10], [13, 11], [14, 12], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setAsActiveCell", "code": "    public void setAsActiveCell()\n    {\n        this.sheet.setActiveCellRow(this.row);\n        this.sheet.setActiveCellCol(this.cellNum);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFCell", "code": "    protected HSSFCell(Workbook book, Sheet sheet, int row, short col)\n    {\n        checkBounds(col);\n        cellNum      = col;\n        this.row     = row;\n        cellStyle    = null;\n        cellValue    = 0;\n        stringValue  = null;\n        booleanValue = false;\n        errorValue   = ( byte ) 0;\n        this.book    = book;\n        this.sheet   = sheet;\n\n        setCellType(CELL_TYPE_BLANK, false);\n        ExtendedFormatRecord xf = book.getExFormatAt(0xf);\n\n        setCellStyle(new HSSFCellStyle(( short ) 0xf, xf));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [6, 18], [1, 19], [7, 20], [11, 21], [12, 22], [13, 23], [14, 24], [19, 25], [10, 26], [18, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 6], [19, 1], [20, 7], [21, 11], [22, 12], [23, 13], [24, 14], [25, 19], [26, 10], [27, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "HSSFCell", "code": "    protected HSSFCell(Workbook book, Sheet sheet, int row, short col,\n                       int type)\n    {\n        checkBounds(col);\n        cellNum      = col;\n        this.row     = row;\n        cellType     = type;\n        cellStyle    = null;\n        cellValue    = 0;\n        stringValue  = null;\n        booleanValue = false;\n        errorValue   = ( byte ) 0;\n        this.book    = book;\n        this.sheet   = sheet;\n        switch (type)\n        {\n\n            case CELL_TYPE_NUMERIC :\n                record = new NumberRecord();\n                (( NumberRecord ) record).setColumn(col);\n                (( NumberRecord ) record).setRow(row);\n                (( NumberRecord ) record).setValue(( short ) 0);\n                (( NumberRecord ) record).setXFIndex(( short ) 0);\n                break;\n\n            case CELL_TYPE_STRING :\n                record = new LabelSSTRecord();\n                (( LabelSSTRecord ) record).setColumn(col);\n                (( LabelSSTRecord ) record).setRow(row);\n                (( LabelSSTRecord ) record).setXFIndex(( short ) 0);\n                break;\n\n            case CELL_TYPE_BLANK :\n                record = new BlankRecord();\n                (( BlankRecord ) record).setColumn(col);\n                (( BlankRecord ) record).setRow(row);\n                (( BlankRecord ) record).setXFIndex(( short ) 0);\n                break;\n\n            case CELL_TYPE_FORMULA :\n                FormulaRecord formulaRecord = new FormulaRecord();\n                record = new FormulaRecordAggregate(formulaRecord,null);\n                formulaRecord.setColumn(col);\n                formulaRecord.setRow(row);\n                formulaRecord.setXFIndex(( short ) 0);\n            case CELL_TYPE_BOOLEAN :\n                record = new BoolErrRecord();\n                (( BoolErrRecord ) record).setColumn(col);\n                (( BoolErrRecord ) record).setRow(row);\n                (( BoolErrRecord ) record).setXFIndex(( short ) 0);\n                (( BoolErrRecord ) record).setValue(false);\n                break;\n\n            case CELL_TYPE_ERROR :\n                record = new BoolErrRecord();\n                (( BoolErrRecord ) record).setColumn(col);\n                (( BoolErrRecord ) record).setRow(row);\n                (( BoolErrRecord ) record).setXFIndex(( short ) 0);\n                (( BoolErrRecord ) record).setValue(( byte ) 0);\n                break;\n        }\n        ExtendedFormatRecord xf = book.getExFormatAt(0xf);\n\n        setCellStyle(new HSSFCellStyle(( short ) 0xf, xf));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "VAR_DECL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [8, 20], [1, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [12, 28], [13, 29], [14, 30], [15, 31], [21, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [11, 42], [20, 43], [33, 44], [34, 45], [38, 46], [24, 47], [39, 48], [40, 49], [41, 50], [35, 51], [46, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 8], [21, 1], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 12], [29, 13], [30, 14], [31, 15], [32, 21], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 11], [43, 20], [44, 33], [45, 34], [46, 38], [47, 24], [48, 39], [49, 40], [50, 41], [51, 35], [52, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "HSSFCell", "code": "    protected HSSFCell(Workbook book, Sheet sheet, int row,\n                       CellValueRecordInterface cval)\n    {\n        cellNum     = cval.getColumn();\n        record      = cval;\n        this.row    = row;\n        cellType    = determineType(cval);\n        cellStyle   = null;\n        stringValue = null;\n        this.book   = book;\n        this.sheet  = sheet;\n        switch (cellType)\n        {\n\n            case CELL_TYPE_NUMERIC :\n                cellValue = (( NumberRecord ) cval).getValue();\n                break;\n\n            case CELL_TYPE_STRING :\n                stringValue =\n                    book.getSSTString( ( (LabelSSTRecord ) cval).getSSTIndex());\n                break;\n\n            case CELL_TYPE_BLANK :\n                break;\n\n            case CELL_TYPE_FORMULA :\n                cellValue = (( FormulaRecordAggregate ) cval).getFormulaRecord().getValue();\n                stringValue=((FormulaRecordAggregate) cval).getStringValue();\n                break;\n\n            case CELL_TYPE_BOOLEAN :\n                booleanValue = (( BoolErrRecord ) cval).getBooleanValue();\n                break;\n\n            case CELL_TYPE_ERROR :\n                errorValue = (( BoolErrRecord ) cval).getErrorValue();\n                break;\n        }\n        ExtendedFormatRecord xf = book.getExFormatAt(cval.getXFIndex());\n\n        setCellStyle(new HSSFCellStyle(( short ) cval.getXFIndex(), xf));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [7, 16], [1, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [10, 24], [11, 25], [12, 26], [15, 27], [17, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [16, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 7], [17, 1], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 10], [25, 11], [26, 12], [27, 15], [28, 17], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 16], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "HSSFCell", "code": "    private HSSFCell()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "jedit-4.2-4468", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/menu/EnhancedMenuItem.java", "language": "java", "name": "org.gjt.sp.jedit.menu.EnhancedMenuItem", "code": "public class EnhancedMenuItem extends JMenuItem\n{\n\t//{{{ EnhancedMenuItem constructor\n\t/**\n\t * Creates a new menu item. Most plugins should call\n\t * GUIUtilities.loadMenuItem() instead.\n\t * @param label The menu item label\n\t * @param action The edit action\n\t * @param context An action context\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic EnhancedMenuItem(String label, String action, ActionContext context)\n\t{\n\t\tthis.action = action;\n\t\tthis.shortcut = getShortcut();\n\t\tif(OperatingSystem.hasScreenMenuBar() && shortcut != null)\n\t\t{\n\t\t\tsetText(label + \" (\" + shortcut + \")\");\n\t\t\tshortcut = null;\n\t\t}\n\t\telse\n\t\t\tsetText(label);\n\n\t\tif(action != null)\n\t\t{\n\t\t\tsetEnabled(true);\n\t\t\taddActionListener(new EditAction.Wrapper(context,action));\n\t\t\taddMouseListener(new MouseHandler());\n\t\t}\n\t\telse\n\t\t\tsetEnabled(false);\n\t} //}}}\n\n\t//{{{ getPreferredSize() method\n\tpublic Dimension getPreferredSize()\n\t{\n\t\tDimension d = super.getPreferredSize();\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\td.width += (getFontMetrics(acceleratorFont)\n\t\t\t\t.stringWidth(shortcut) + 15);\n\t\t}\n\t\treturn d;\n\t} //}}}\n\n\t//{{{ paint() method\n\tpublic void paint(Graphics g)\n\t{\n\t\tsuper.paint(g);\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\tg.setFont(acceleratorFont);\n\t\t\tg.setColor(getModel().isArmed() ?\n\t\t\t\tacceleratorSelectionForeground :\n\t\t\t\tacceleratorForeground);\n\t\t\tFontMetrics fm = g.getFontMetrics();\n\t\t\tInsets insets = getInsets();\n\t\t\tg.drawString(shortcut,getWidth() - (fm.stringWidth(\n\t\t\t\tshortcut) + insets.right + insets.left + 5),\n\t\t\t\tgetFont().getSize() + (insets.top - \n\t\t\t\t(OperatingSystem.isMacOSLF() ? 0 : 1))\n\t\t\t\t/* XXX magic number */);\n\t\t}\n\t} //}}}\n\n\t//{{{ Package-private members\n\tstatic Font acceleratorFont;\n\tstatic Color acceleratorForeground;\n\tstatic Color acceleratorSelectionForeground;\n\t//}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate String shortcut;\n\tprivate String action;\n\t//}}}\n\n\t//{{{ getShortcut() method\n\tprivate String getShortcut()\n\t{\n\t\tif(action == null)\n\t\t\treturn null;\n\t\telse\n\t\t{\n\t\t\tString shortcut1 = jEdit.getProperty(action + \".shortcut\");\n\t\t\tString shortcut2 = jEdit.getProperty(action + \".shortcut2\");\n\n\t\t\tif(shortcut1 == null || shortcut1.length() == 0)\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn shortcut1;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut1 + \" or \" + shortcut2;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ Class initializer\n\tstatic\n\t{\n\t\tString shortcutFont;\n\t\tif (OperatingSystem.isMacOSLF())\n\t\t\tshortcutFont = \"Lucida Grande\";\n\t\telse\n\t\t\tshortcutFont = \"Monospaced\";\n\t\t\n\t\tacceleratorFont = UIManager.getFont(\"MenuItem.acceleratorFont\");\n\t\tif(acceleratorFont == null)\n\t\t\tacceleratorFont = new Font(shortcutFont,Font.PLAIN,12);\n\t\telse\n\t\t{\n\t\t\tacceleratorFont = new Font(shortcutFont,\n\t\t\t\tacceleratorFont.getStyle(),\n\t\t\t\tacceleratorFont.getSize());\n\t\t}\n\t\tacceleratorForeground = UIManager\n\t\t\t.getColor(\"MenuItem.acceleratorForeground\");\n\t\tif(acceleratorForeground == null)\n\t\t\tacceleratorForeground = Color.black;\n\n\t\tacceleratorSelectionForeground = UIManager\n\t\t\t.getColor(\"MenuItem.acceleratorSelectionForeground\");\n\t\tif(acceleratorSelectionForeground == null)\n\t\t\tacceleratorSelectionForeground = Color.black;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ MouseHandler class\n\tclass MouseHandler extends MouseAdapter\n\t{\n\t\tboolean msgSet = false;\n\n\t\tpublic void mouseReleased(MouseEvent evt)\n\t\t{\n\t\t\tif(msgSet)\n\t\t\t{\n\t\t\t\tGUIUtilities.getView((Component)evt.getSource())\n\t\t\t\t\t.getStatus().setMessage(null);\n\t\t\t\tmsgSet = false;\n\t\t\t}\n\t\t}\n\n\t\tpublic void mouseEntered(MouseEvent evt)\n\t\t{\n\t\t\tString msg = jEdit.getProperty(action + \".mouse-over\");\n\t\t\tif(msg != null)\n\t\t\t{\n\t\t\t\tGUIUtilities.getView((Component)evt.getSource())\n\t\t\t\t\t.getStatus().setMessage(msg);\n\t\t\t\tmsgSet = true;\n\t\t\t}\n\t\t}\n\n\t\tpublic void mouseExited(MouseEvent evt)\n\t\t{\n\t\t\tif(msgSet)\n\t\t\t{\n\t\t\t\tGUIUtilities.getView((Component)evt.getSource())\n\t\t\t\t\t.getStatus().setMessage(null);\n\t\t\t\tmsgSet = false;", "functions": [{"function_name": "getPreferredSize", "code": "\tpublic Dimension getPreferredSize()\n\t{\n\t\tDimension d = super.getPreferredSize();\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\td.width += (getFontMetrics(acceleratorFont)\n\t\t\t\t.stringWidth(shortcut) + 15);\n\t\t}\n\t\treturn d;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [6, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "paint", "code": "\tpublic void paint(Graphics g)\n\t{\n\t\tsuper.paint(g);\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\tg.setFont(acceleratorFont);\n\t\t\tg.setColor(getModel().isArmed() ?\n\t\t\t\tacceleratorSelectionForeground :\n\t\t\t\tacceleratorForeground);\n\t\t\tFontMetrics fm = g.getFontMetrics();\n\t\t\tInsets insets = getInsets();\n\t\t\tg.drawString(shortcut,getWidth() - (fm.stringWidth(\n\t\t\t\tshortcut) + insets.right + insets.left + 5),\n\t\t\t\tgetFont().getSize() + (insets.top - \n\t\t\t\t(OperatingSystem.isMacOSLF() ? 0 : 1))", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 7], [1, 8], [1, 9], [7, 10], [7, 11], [4, 12], [5, 13], [8, 14], [10, 15], [10, 16], [11, 17], [11, 18], [14, 19], [15, 20], [16, 21], [17, 22], [17, 23], [19, 24], [20, 25], [20, 26], [20, 27], [23, 28], [28, 29], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 1], [8, 1], [9, 1], [10, 7], [11, 7], [12, 4], [13, 5], [14, 8], [15, 10], [16, 10], [17, 11], [18, 11], [19, 14], [20, 15], [21, 16], [22, 17], [23, 17], [24, 19], [25, 20], [26, 20], [27, 20], [28, 23], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getShortcut", "code": "\tprivate String getShortcut()\n\t{\n\t\tif(action == null)\n\t\t\treturn null;\n\t\telse\n\t\t{\n\t\t\tString shortcut1 = jEdit.getProperty(action + \".shortcut\");\n\t\t\tString shortcut2 = jEdit.getProperty(action + \".shortcut2\");\n\n\t\t\tif(shortcut1 == null || shortcut1.length() == 0)\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn shortcut1;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut1 + \" or \" + shortcut2;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [4, 9], [4, 10], [4, 11], [9, 12], [9, 13], [5, 14], [6, 15], [10, 16], [10, 17], [10, 18], [11, 19], [11, 20], [11, 21], [12, 22], [12, 23], [13, 24], [14, 25], [15, 26], [16, 27], [18, 28], [18, 29], [20, 30], [21, 31], [21, 32], [25, 33], [26, 34], [27, 35], [28, 36], [28, 37], [29, 38], [31, 39], [31, 40], [32, 41], [35, 42], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 4], [10, 4], [11, 4], [12, 9], [13, 9], [14, 5], [15, 6], [16, 10], [17, 10], [18, 10], [19, 11], [20, 11], [21, 11], [22, 12], [23, 12], [24, 13], [25, 14], [26, 15], [27, 16], [28, 18], [29, 18], [30, 20], [31, 21], [32, 21], [33, 25], [34, 26], [35, 27], [36, 28], [37, 28], [38, 29], [39, 31], [40, 31], [41, 32], [42, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "EnhancedMenuItem", "code": "\tpublic EnhancedMenuItem(String label, String action, ActionContext context)\n\t{\n\t\tthis.action = action;\n\t\tthis.shortcut = getShortcut();\n\t\tif(OperatingSystem.hasScreenMenuBar() && shortcut != null)\n\t\t{\n\t\t\tsetText(label + \" (\" + shortcut + \")\");\n\t\t\tshortcut = null;\n\t\t}\n\t\telse\n\t\t\tsetText(label);\n\n\t\tif(action != null)\n\t\t{\n\t\t\tsetEnabled(true);\n\t\t\taddActionListener(new EditAction.Wrapper(context,action));\n\t\t\taddMouseListener(new MouseHandler());\n\t\t}\n\t\telse\n\t\t\tsetEnabled(false);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [1, 10], [6, 11], [2, 12], [7, 13], [7, 14], [8, 15], [10, 16], [1, 17], [1, 18], [1, 19], [2, 20], [2, 21], [13, 22], [17, 23], [18, 24], [19, 25], [20, 26], [21, 27], [27, 28], [27, 29], [29, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 1], [11, 6], [12, 2], [13, 7], [14, 7], [15, 8], [16, 10], [17, 1], [18, 1], [19, 1], [20, 2], [21, 2], [22, 13], [23, 17], [24, 18], [25, 19], [26, 20], [27, 21], [28, 27], [29, 27], [30, 29], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}], "label": 0}
{"sample_id": "camel-1.2-1834", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/mina/MinaEndpoint.java", "language": "java", "name": "org.apache.camel.component.mina.MinaEndpoint", "code": "public class MinaEndpoint extends DefaultEndpoint<MinaExchange> {\n    private final IoAcceptor acceptor;\n    private final SocketAddress address;\n    private final IoConnector connector;\n    private final IoServiceConfig config;\n\n    public MinaEndpoint(String endpointUri, MinaComponent component, SocketAddress address, IoAcceptor acceptor, IoConnector connector, IoServiceConfig config) {\n        super(endpointUri, component);\n        this.config = config;\n        this.address = address;\n        this.acceptor = acceptor;\n        this.connector = connector;\n    }\n\n    public Producer<MinaExchange> createProducer() throws Exception {\n        return new MinaProducer(this);\n    }\n\n    public Consumer<MinaExchange> createConsumer(Processor processor) throws Exception {\n        return new MinaConsumer(this, processor);\n    }\n\n    @Override\n    public MinaExchange createExchange(ExchangePattern pattern) {\n        return new MinaExchange(getContext(), pattern);\n    }\n\n    public MinaExchange createExchange(IoSession session, Object object) {\n        MinaExchange exchange = new MinaExchange(getContext(), getExchangePattern());\n        exchange.getIn().setBody(object);\n        return exchange;\n    }\n\n    public IoAcceptor getAcceptor() {\n        return acceptor;\n    }\n\n    public SocketAddress getAddress() {\n        return address;\n    }\n\n    public IoConnector getConnector() {\n        return connector;\n    }\n\n    public IoServiceConfig getConfig() {\n        return config;\n    }\n\n    public boolean isSingleton() {\n        return true;", "functions": [{"function_name": "createProducer", "code": "    public Producer<MinaExchange> createProducer() throws Exception {\n        return new MinaProducer(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createConsumer", "code": "    public Consumer<MinaExchange> createConsumer(Processor processor) throws Exception {\n        return new MinaConsumer(this, processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createExchange", "code": "    @Override\n    public MinaExchange createExchange(ExchangePattern pattern) {\n        return new MinaExchange(getContext(), pattern);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createExchange", "code": "    public MinaExchange createExchange(IoSession session, Object object) {\n        MinaExchange exchange = new MinaExchange(getContext(), getExchangePattern());\n        exchange.getIn().setBody(object);\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [2, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 2], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getAcceptor", "code": "    public IoAcceptor getAcceptor() {\n        return acceptor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAddress", "code": "    public SocketAddress getAddress() {\n        return address;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getConnector", "code": "    public IoConnector getConnector() {\n        return connector;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getConfig", "code": "    public IoServiceConfig getConfig() {\n        return config;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MinaEndpoint", "code": "    public MinaEndpoint(String endpointUri, MinaComponent component, SocketAddress address, IoAcceptor acceptor, IoConnector connector, IoServiceConfig config) {\n        super(endpointUri, component);\n        this.config = config;\n        this.address = address;\n        this.acceptor = acceptor;\n        this.connector = connector;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "xalan-2.6-7483", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/res/XSLTErrorResources_zh_CN.java", "language": "java", "name": "org.apache.xalan.res.XSLTErrorResources_zh_CN", "code": "public class XSLTErrorResources_zh_CN extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 201;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 29;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 55;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Static variables\n   */\n  public static final String ER_NO_CURLYBRACE = \"ER_NO_CURLYBRACE\";;\n  public static final String ER_ILLEGAL_ATTRIBUTE = \"ER_ILLEGAL_ATTRIBUTE\";\n  public static final String ER_NULL_SOURCENODE_APPLYIMPORTS = \"ER_NULL_SOURCENODE_APPLYIMPORTS\";\n  public static final String ER_CANNOT_ADD = \"ER_CANNOT_ADD\";\n  public static final String ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES=\"ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES\";\n  public static final String ER_NO_NAME_ATTRIB = \"ER_NO_NAME_ATTRIB\";\n  public static final String ER_TEMPLATE_NOT_FOUND = \"ER_TEMPLATE_NOT_FOUND\";\n  public static final String ER_CANT_RESOLVE_NAME_AVT = \"ER_CANT_RESOLVE_NAME_AVT\";\n  public static final String ER_REQUIRES_ATTRIB = \"ER_REQUIRES_ATTRIB\";\n  public static final String ER_MUST_HAVE_TEST_ATTRIB = \"ER_MUST_HAVE_TEST_ATTRIB\";\n  public static final String ER_BAD_VAL_ON_LEVEL_ATTRIB =\n         \"ER_BAD_VAL_ON_LEVEL_ATTRIB\";\n  public static final String ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =\n         \"ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML\";\n  public static final String ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =\n         \"ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME\";\n  public static final String ER_NEED_MATCH_ATTRIB = \"ER_NEED_MATCH_ATTRIB\";\n  public static final String ER_NEED_NAME_OR_MATCH_ATTRIB =\n         \"ER_NEED_NAME_OR_MATCH_ATTRIB\";\n  public static final String ER_CANT_RESOLVE_NSPREFIX =\n         \"ER_CANT_RESOLVE_NSPREFIX\";\n  public static final String ER_ILLEGAL_VALUE = \"ER_ILLEGAL_VALUE\";\n  public static final String ER_NO_OWNERDOC = \"ER_NO_OWNERDOC\";\n  public static final String ER_ELEMTEMPLATEELEM_ERR =\"ER_ELEMTEMPLATEELEM_ERR\";\n  public static final String ER_NULL_CHILD = \"ER_NULL_CHILD\";\n  public static final String ER_NEED_SELECT_ATTRIB = \"ER_NEED_SELECT_ATTRIB\";\n  public static final String ER_NEED_TEST_ATTRIB = \"ER_NEED_TEST_ATTRIB\";\n  public static final String ER_NEED_NAME_ATTRIB = \"ER_NEED_NAME_ATTRIB\";\n  public static final String ER_NO_CONTEXT_OWNERDOC = \"ER_NO_CONTEXT_OWNERDOC\";\n  public static final String ER_COULD_NOT_CREATE_XML_PROC_LIAISON =\n         \"ER_COULD_NOT_CREATE_XML_PROC_LIAISON\";\n  public static final String ER_PROCESS_NOT_SUCCESSFUL =\n         \"ER_PROCESS_NOT_SUCCESSFUL\";\n  public static final String ER_NOT_SUCCESSFUL = \"ER_NOT_SUCCESSFUL\";\n  public static final String ER_ENCODING_NOT_SUPPORTED =\n         \"ER_ENCODING_NOT_SUPPORTED\";\n  public static final String ER_COULD_NOT_CREATE_TRACELISTENER =\n         \"ER_COULD_NOT_CREATE_TRACELISTENER\";\n  public static final String ER_KEY_REQUIRES_NAME_ATTRIB =\n         \"ER_KEY_REQUIRES_NAME_ATTRIB\";\n  public static final String ER_KEY_REQUIRES_MATCH_ATTRIB =\n         \"ER_KEY_REQUIRES_MATCH_ATTRIB\";\n  public static final String ER_KEY_REQUIRES_USE_ATTRIB =\n         \"ER_KEY_REQUIRES_USE_ATTRIB\";\n  public static final String ER_REQUIRES_ELEMENTS_ATTRIB =\n         \"ER_REQUIRES_ELEMENTS_ATTRIB\";\n  public static final String ER_MISSING_PREFIX_ATTRIB =\n         \"ER_MISSING_PREFIX_ATTRIB\";\n  public static final String ER_BAD_STYLESHEET_URL = \"ER_BAD_STYLESHEET_URL\";\n  public static final String ER_FILE_NOT_FOUND = \"ER_FILE_NOT_FOUND\";\n  public static final String ER_IOEXCEPTION = \"ER_IOEXCEPTION\";\n  public static final String ER_NO_HREF_ATTRIB = \"ER_NO_HREF_ATTRIB\";\n  public static final String ER_STYLESHEET_INCLUDES_ITSELF =\n         \"ER_STYLESHEET_INCLUDES_ITSELF\";\n  public static final String ER_PROCESSINCLUDE_ERROR =\"ER_PROCESSINCLUDE_ERROR\";\n  public static final String ER_MISSING_LANG_ATTRIB = \"ER_MISSING_LANG_ATTRIB\";\n  public static final String ER_MISSING_CONTAINER_ELEMENT_COMPONENT =\n         \"ER_MISSING_CONTAINER_ELEMENT_COMPONENT\";\n  public static final String ER_CAN_ONLY_OUTPUT_TO_ELEMENT =\n         \"ER_CAN_ONLY_OUTPUT_TO_ELEMENT\";\n  public static final String ER_PROCESS_ERROR = \"ER_PROCESS_ERROR\";\n  public static final String ER_UNIMPLNODE_ERROR = \"ER_UNIMPLNODE_ERROR\";\n  public static final String ER_NO_SELECT_EXPRESSION =\"ER_NO_SELECT_EXPRESSION\";\n  public static final String ER_CANNOT_SERIALIZE_XSLPROCESSOR =\n         \"ER_CANNOT_SERIALIZE_XSLPROCESSOR\";\n  public static final String ER_NO_INPUT_STYLESHEET = \"ER_NO_INPUT_STYLESHEET\";\n  public static final String ER_FAILED_PROCESS_STYLESHEET =\n         \"ER_FAILED_PROCESS_STYLESHEET\";\n  public static final String ER_COULDNT_PARSE_DOC = \"ER_COULDNT_PARSE_DOC\";\n  public static final String ER_COULDNT_FIND_FRAGMENT =\n         \"ER_COULDNT_FIND_FRAGMENT\";\n  public static final String ER_NODE_NOT_ELEMENT = \"ER_NODE_NOT_ELEMENT\";\n  public static final String ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB =\n         \"ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB\";\n  public static final String ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB =\n         \"ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB\";\n  public static final String ER_NO_CLONE_OF_DOCUMENT_FRAG =\n         \"ER_NO_CLONE_OF_DOCUMENT_FRAG\";\n  public static final String ER_CANT_CREATE_ITEM = \"ER_CANT_CREATE_ITEM\";\n  public static final String ER_XMLSPACE_ILLEGAL_VALUE =\n         \"ER_XMLSPACE_ILLEGAL_VALUE\";\n  public static final String ER_NO_XSLKEY_DECLARATION =\n         \"ER_NO_XSLKEY_DECLARATION\";\n  public static final String ER_CANT_CREATE_URL = \"ER_CANT_CREATE_URL\";\n  public static final String ER_XSLFUNCTIONS_UNSUPPORTED =\n         \"ER_XSLFUNCTIONS_UNSUPPORTED\";\n  public static final String ER_PROCESSOR_ERROR = \"ER_PROCESSOR_ERROR\";\n  public static final String ER_NOT_ALLOWED_INSIDE_STYLESHEET =\n         \"ER_NOT_ALLOWED_INSIDE_STYLESHEET\";\n  public static final String ER_RESULTNS_NOT_SUPPORTED =\n         \"ER_RESULTNS_NOT_SUPPORTED\";\n  public static final String ER_DEFAULTSPACE_NOT_SUPPORTED =\n         \"ER_DEFAULTSPACE_NOT_SUPPORTED\";\n  public static final String ER_INDENTRESULT_NOT_SUPPORTED =\n         \"ER_INDENTRESULT_NOT_SUPPORTED\";\n  public static final String ER_ILLEGAL_ATTRIB = \"ER_ILLEGAL_ATTRIB\";\n  public static final String ER_UNKNOWN_XSL_ELEM = \"ER_UNKNOWN_XSL_ELEM\";\n  public static final String ER_BAD_XSLSORT_USE = \"ER_BAD_XSLSORT_USE\";\n  public static final String ER_MISPLACED_XSLWHEN = \"ER_MISPLACED_XSLWHEN\";\n  public static final String ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE =\n         \"ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE\";\n  public static final String ER_MISPLACED_XSLOTHERWISE =\n         \"ER_MISPLACED_XSLOTHERWISE\";\n  public static final String ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE =\n         \"ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE\";\n  public static final String ER_NOT_ALLOWED_INSIDE_TEMPLATE =\n         \"ER_NOT_ALLOWED_INSIDE_TEMPLATE\";\n  public static final String ER_UNKNOWN_EXT_NS_PREFIX =\n         \"ER_UNKNOWN_EXT_NS_PREFIX\";\n  public static final String ER_IMPORTS_AS_FIRST_ELEM =\n         \"ER_IMPORTS_AS_FIRST_ELEM\";\n  public static final String ER_IMPORTING_ITSELF = \"ER_IMPORTING_ITSELF\";\n  public static final String ER_XMLSPACE_ILLEGAL_VAL =\"ER_XMLSPACE_ILLEGAL_VAL\";\n  public static final String ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL =\n         \"ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL\";\n  public static final String ER_SAX_EXCEPTION = \"ER_SAX_EXCEPTION\";\n  public static final String ER_XSLT_ERROR = \"ER_XSLT_ERROR\";\n  public static final String ER_CURRENCY_SIGN_ILLEGAL=\n         \"ER_CURRENCY_SIGN_ILLEGAL\";\n  public static final String ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM =\n         \"ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM\";\n  public static final String ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER =\n         \"ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER\";\n  public static final String ER_REDIRECT_COULDNT_GET_FILENAME =\n         \"ER_REDIRECT_COULDNT_GET_FILENAME\";\n  public static final String ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT =\n         \"ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT\";\n  public static final String ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX =\n         \"ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX\";\n  public static final String ER_MISSING_NS_URI = \"ER_MISSING_NS_URI\";\n  public static final String ER_MISSING_ARG_FOR_OPTION =\n         \"ER_MISSING_ARG_FOR_OPTION\";\n  public static final String ER_INVALID_OPTION = \"ER_INVALID_OPTION\";\n  public static final String ER_MALFORMED_FORMAT_STRING =\n         \"ER_MALFORMED_FORMAT_STRING\";\n  public static final String ER_STYLESHEET_REQUIRES_VERSION_ATTRIB =\n         \"ER_STYLESHEET_REQUIRES_VERSION_ATTRIB\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_VALUE =\n         \"ER_ILLEGAL_ATTRIBUTE_VALUE\";\n  public static final String ER_CHOOSE_REQUIRES_WHEN =\"ER_CHOOSE_REQUIRES_WHEN\";\n  public static final String ER_NO_APPLY_IMPORT_IN_FOR_EACH =\n         \"ER_NO_APPLY_IMPORT_IN_FOR_EACH\";\n  public static final String ER_CANT_USE_DTM_FOR_OUTPUT =\n         \"ER_CANT_USE_DTM_FOR_OUTPUT\";\n  public static final String ER_CANT_USE_DTM_FOR_INPUT =\n         \"ER_CANT_USE_DTM_FOR_INPUT\";\n  public static final String ER_CALL_TO_EXT_FAILED = \"ER_CALL_TO_EXT_FAILED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_XSLATTRSET_USED_ITSELF =\n         \"ER_XSLATTRSET_USED_ITSELF\";\n  public static final String ER_CANNOT_MIX_XERCESDOM =\"ER_CANNOT_MIX_XERCESDOM\";\n  public static final String ER_TOO_MANY_LISTENERS = \"ER_TOO_MANY_LISTENERS\";\n  public static final String ER_IN_ELEMTEMPLATEELEM_READOBJECT =\n         \"ER_IN_ELEMTEMPLATEELEM_READOBJECT\";\n  public static final String ER_DUPLICATE_NAMED_TEMPLATE =\n         \"ER_DUPLICATE_NAMED_TEMPLATE\";\n  public static final String ER_INVALID_KEY_CALL = \"ER_INVALID_KEY_CALL\";\n  public static final String ER_REFERENCING_ITSELF = \"ER_REFERENCING_ITSELF\";\n  public static final String ER_ILLEGAL_DOMSOURCE_INPUT =\n         \"ER_ILLEGAL_DOMSOURCE_INPUT\";\n  public static final String ER_CLASS_NOT_FOUND_FOR_OPTION =\n         \"ER_CLASS_NOT_FOUND_FOR_OPTION\";\n  public static final String ER_REQUIRED_ELEM_NOT_FOUND =\n         \"ER_REQUIRED_ELEM_NOT_FOUND\";\n  public static final String ER_INPUT_CANNOT_BE_NULL =\"ER_INPUT_CANNOT_BE_NULL\";\n  public static final String ER_URI_CANNOT_BE_NULL = \"ER_URI_CANNOT_BE_NULL\";\n  public static final String ER_FILE_CANNOT_BE_NULL = \"ER_FILE_CANNOT_BE_NULL\";\n  public static final String ER_SOURCE_CANNOT_BE_NULL =\n         \"ER_SOURCE_CANNOT_BE_NULL\";\n  public static final String ER_CANNOT_INIT_BSFMGR = \"ER_CANNOT_INIT_BSFMGR\";\n  public static final String ER_CANNOT_CMPL_EXTENSN = \"ER_CANNOT_CMPL_EXTENSN\";\n  public static final String ER_CANNOT_CREATE_EXTENSN =\n         \"ER_CANNOT_CREATE_EXTENSN\";\n  public static final String ER_INSTANCE_MTHD_CALL_REQUIRES =\n         \"ER_INSTANCE_MTHD_CALL_REQUIRES\";\n  public static final String ER_INVALID_ELEMENT_NAME =\"ER_INVALID_ELEMENT_NAME\";\n  public static final String ER_ELEMENT_NAME_METHOD_STATIC =\n         \"ER_ELEMENT_NAME_METHOD_STATIC\";\n  public static final String ER_EXTENSION_FUNC_UNKNOWN =\n         \"ER_EXTENSION_FUNC_UNKNOWN\";\n  public static final String ER_MORE_MATCH_CONSTRUCTOR =\n         \"ER_MORE_MATCH_CONSTRUCTOR\";\n  public static final String ER_MORE_MATCH_METHOD = \"ER_MORE_MATCH_METHOD\";\n  public static final String ER_MORE_MATCH_ELEMENT = \"ER_MORE_MATCH_ELEMENT\";\n  public static final String ER_INVALID_CONTEXT_PASSED =\n         \"ER_INVALID_CONTEXT_PASSED\";\n  public static final String ER_POOL_EXISTS = \"ER_POOL_EXISTS\";\n  public static final String ER_NO_DRIVER_NAME = \"ER_NO_DRIVER_NAME\";\n  public static final String ER_NO_URL = \"ER_NO_URL\";\n  public static final String ER_POOL_SIZE_LESSTHAN_ONE =\n         \"ER_POOL_SIZE_LESSTHAN_ONE\";\n  public static final String ER_INVALID_DRIVER = \"ER_INVALID_DRIVER\";\n  public static final String ER_NO_STYLESHEETROOT = \"ER_NO_STYLESHEETROOT\";\n  public static final String ER_ILLEGAL_XMLSPACE_VALUE =\n         \"ER_ILLEGAL_XMLSPACE_VALUE\";\n  public static final String ER_PROCESSFROMNODE_FAILED =\n         \"ER_PROCESSFROMNODE_FAILED\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD =\n         \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO =\n         \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_UNKNOWN_ERROR_CALLING_EXTENSION =\n         \"ER_UNKNOWN_ERROR_CALLING_EXTENSION\";\n  public static final String ER_NO_NAMESPACE_DECL = \"ER_NO_NAMESPACE_DECL\";\n  public static final String ER_ELEM_CONTENT_NOT_ALLOWED =\n         \"ER_ELEM_CONTENT_NOT_ALLOWED\";\n  public static final String ER_STYLESHEET_DIRECTED_TERMINATION =\n         \"ER_STYLESHEET_DIRECTED_TERMINATION\";\n  public static final String ER_ONE_OR_TWO = \"ER_ONE_OR_TWO\";\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE =\n         \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_CANNOT_INIT_DEFAULT_TEMPLATES =\n         \"ER_CANNOT_INIT_DEFAULT_TEMPLATES\";\n  public static final String ER_RESULT_NULL = \"ER_RESULT_NULL\";\n  public static final String ER_RESULT_COULD_NOT_BE_SET =\n         \"ER_RESULT_COULD_NOT_BE_SET\";\n  public static final String ER_NO_OUTPUT_SPECIFIED = \"ER_NO_OUTPUT_SPECIFIED\";\n  public static final String ER_CANNOT_TRANSFORM_TO_RESULT_TYPE =\n         \"ER_CANNOT_TRANSFORM_TO_RESULT_TYPE\";\n  public static final String ER_CANNOT_TRANSFORM_SOURCE_TYPE =\n         \"ER_CANNOT_TRANSFORM_SOURCE_TYPE\";\n  public static final String ER_NULL_CONTENT_HANDLER =\"ER_NULL_CONTENT_HANDLER\";\n  public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n  public static final String ER_CANNOT_CALL_PARSE = \"ER_CANNOT_CALL_PARSE\";\n  public static final String ER_NO_PARENT_FOR_FILTER =\"ER_NO_PARENT_FOR_FILTER\";\n  public static final String ER_NO_STYLESHEET_IN_MEDIA =\n         \"ER_NO_STYLESHEET_IN_MEDIA\";\n  public static final String ER_NO_STYLESHEET_PI = \"ER_NO_STYLESHEET_PI\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_PROPERTY_VALUE_BOOLEAN =\n         \"ER_PROPERTY_VALUE_BOOLEAN\";\n  public static final String ER_COULD_NOT_FIND_EXTERN_SCRIPT =\n         \"ER_COULD_NOT_FIND_EXTERN_SCRIPT\";\n  public static final String ER_RESOURCE_COULD_NOT_FIND =\n         \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_OUTPUT_PROPERTY_NOT_RECOGNIZED =\n         \"ER_OUTPUT_PROPERTY_NOT_RECOGNIZED\";\n  public static final String ER_FAILED_CREATING_ELEMLITRSLT =\n         \"ER_FAILED_CREATING_ELEMLITRSLT\";\n  public static final String ER_VALUE_SHOULD_BE_NUMBER =\n         \"ER_VALUE_SHOULD_BE_NUMBER\";\n  public static final String ER_VALUE_SHOULD_EQUAL = \"ER_VALUE_SHOULD_EQUAL\";\n  public static final String ER_FAILED_CALLING_METHOD =\n         \"ER_FAILED_CALLING_METHOD\";\n  public static final String ER_FAILED_CREATING_ELEMTMPL =\n         \"ER_FAILED_CREATING_ELEMTMPL\";\n  public static final String ER_CHARS_NOT_ALLOWED = \"ER_CHARS_NOT_ALLOWED\";\n  public static final String ER_ATTR_NOT_ALLOWED = \"ER_ATTR_NOT_ALLOWED\";\n  public static final String ER_BAD_VALUE = \"ER_BAD_VALUE\";\n  public static final String ER_ATTRIB_VALUE_NOT_FOUND =\n         \"ER_ATTRIB_VALUE_NOT_FOUND\";\n  public static final String ER_ATTRIB_VALUE_NOT_RECOGNIZED =\n         \"ER_ATTRIB_VALUE_NOT_RECOGNIZED\";\n  public static final String ER_NULL_URI_NAMESPACE = \"ER_NULL_URI_NAMESPACE\";\n  public static final String ER_NUMBER_TOO_BIG = \"ER_NUMBER_TOO_BIG\";\n  public static final String  ER_CANNOT_FIND_SAX1_DRIVER =\n         \"ER_CANNOT_FIND_SAX1_DRIVER\";\n  public static final String  ER_SAX1_DRIVER_NOT_LOADED =\n         \"ER_SAX1_DRIVER_NOT_LOADED\";\n  public static final String  ER_SAX1_DRIVER_NOT_INSTANTIATED =\n         \"ER_SAX1_DRIVER_NOT_INSTANTIATED\" ;\n  public static final String ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER =\n         \"ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER\";\n  public static final String  ER_PARSER_PROPERTY_NOT_SPECIFIED =\n         \"ER_PARSER_PROPERTY_NOT_SPECIFIED\";\n  public static final String  ER_PARSER_ARG_CANNOT_BE_NULL =\n         \"ER_PARSER_ARG_CANNOT_BE_NULL\" ;\n  public static final String  ER_FEATURE = \"ER_FEATURE\";\n  public static final String ER_PROPERTY = \"ER_PROPERTY\" ;\n  public static final String ER_NULL_ENTITY_RESOLVER =\"ER_NULL_ENTITY_RESOLVER\";\n  public static final String  ER_NULL_DTD_HANDLER = \"ER_NULL_DTD_HANDLER\" ;\n  public static final String ER_NO_DRIVER_NAME_SPECIFIED =\n         \"ER_NO_DRIVER_NAME_SPECIFIED\";\n  public static final String ER_NO_URL_SPECIFIED = \"ER_NO_URL_SPECIFIED\";\n  public static final String ER_POOLSIZE_LESS_THAN_ONE =\n         \"ER_POOLSIZE_LESS_THAN_ONE\";\n  public static final String ER_INVALID_DRIVER_NAME = \"ER_INVALID_DRIVER_NAME\";\n  public static final String ER_ERRORLISTENER = \"ER_ERRORLISTENER\";\n  public static final String ER_ASSERT_NO_TEMPLATE_PARENT =\n         \"ER_ASSERT_NO_TEMPLATE_PARENT\";\n  public static final String ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR =\n         \"ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR\";\n  public static final String ER_NOT_ALLOWED_IN_POSITION =\n         \"ER_NOT_ALLOWED_IN_POSITION\";\n  public static final String ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION =\n         \"ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION\";\n  public static final String INVALID_TCHAR = \"INVALID_TCHAR\";\n  public static final String INVALID_QNAME = \"INVALID_QNAME\";\n  public static final String INVALID_ENUM = \"INVALID_ENUM\";\n  public static final String INVALID_NMTOKEN = \"INVALID_NMTOKEN\";\n  public static final String INVALID_NCNAME = \"INVALID_NCNAME\";\n  public static final String INVALID_BOOLEAN = \"INVALID_BOOLEAN\";\n  public static final String INVALID_NUMBER = \"INVALID_NUMBER\";\n  public static final String ER_ARG_LITERAL = \"ER_ARG_LITERAL\";\n  public static final String ER_DUPLICATE_GLOBAL_VAR =\"ER_DUPLICATE_GLOBAL_VAR\";\n  public static final String ER_DUPLICATE_VAR = \"ER_DUPLICATE_VAR\";\n  public static final String ER_TEMPLATE_NAME_MATCH = \"ER_TEMPLATE_NAME_MATCH\";\n  public static final String ER_INVALID_PREFIX = \"ER_INVALID_PREFIX\";\n  public static final String ER_NO_ATTRIB_SET = \"ER_NO_ATTRIB_SET\";\n\n  public static final String WG_FOUND_CURLYBRACE = \"WG_FOUND_CURLYBRACE\";\n  public static final String WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR =\n         \"WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR\";\n  public static final String WG_EXPR_ATTRIB_CHANGED_TO_SELECT =\n         \"WG_EXPR_ATTRIB_CHANGED_TO_SELECT\";\n  public static final String WG_NO_LOCALE_IN_FORMATNUMBER =\n         \"WG_NO_LOCALE_IN_FORMATNUMBER\";\n  public static final String WG_LOCALE_NOT_FOUND = \"WG_LOCALE_NOT_FOUND\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_CANNOT_LOAD_REQUESTED_DOC =\n         \"WG_CANNOT_LOAD_REQUESTED_DOC\";\n  public static final String WG_CANNOT_FIND_COLLATOR =\"WG_CANNOT_FIND_COLLATOR\";\n  public static final String WG_FUNCTIONS_SHOULD_USE_URL =\n         \"WG_FUNCTIONS_SHOULD_USE_URL\";\n  public static final String WG_ENCODING_NOT_SUPPORTED_USING_UTF8 =\n         \"WG_ENCODING_NOT_SUPPORTED_USING_UTF8\";\n  public static final String WG_ENCODING_NOT_SUPPORTED_USING_JAVA =\n         \"WG_ENCODING_NOT_SUPPORTED_USING_JAVA\";\n  public static final String WG_SPECIFICITY_CONFLICTS =\n         \"WG_SPECIFICITY_CONFLICTS\";\n  public static final String WG_PARSING_AND_PREPARING =\n         \"WG_PARSING_AND_PREPARING\";\n  public static final String WG_ATTR_TEMPLATE = \"WG_ATTR_TEMPLATE\";\n  public static final String WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = \"WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESP\";\n  public static final String WG_ATTRIB_NOT_HANDLED = \"WG_ATTRIB_NOT_HANDLED\";\n  public static final String WG_NO_DECIMALFORMAT_DECLARATION =\n         \"WG_NO_DECIMALFORMAT_DECLARATION\";\n  public static final String WG_OLD_XSLT_NS = \"WG_OLD_XSLT_NS\";\n  public static final String WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED =\n         \"WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED\";\n  public static final String WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE =\n         \"WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE\";\n  public static final String WG_ILLEGAL_ATTRIBUTE = \"WG_ILLEGAL_ATTRIBUTE\";\n  public static final String WG_COULD_NOT_RESOLVE_PREFIX =\n         \"WG_COULD_NOT_RESOLVE_PREFIX\";\n  public static final String WG_STYLESHEET_REQUIRES_VERSION_ATTRIB =\n         \"WG_STYLESHEET_REQUIRES_VERSION_ATTRIB\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_NAME =\n         \"WG_ILLEGAL_ATTRIBUTE_NAME\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_VALUE =\n         \"WG_ILLEGAL_ATTRIBUTE_VALUE\";\n  public static final String WG_EMPTY_SECOND_ARG = \"WG_EMPTY_SECOND_ARG\";\n  public static final String WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =\n         \"WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML\";\n  public static final String WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =\n         \"WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_POSITION =\n         \"WG_ILLEGAL_ATTRIBUTE_POSITION\";\n\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /** The lookup table for error messages.   */\n  public static final Object[][] contents = {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n  {\"ER0000\" , \"{0}\" },\n\n\n  /** ER_NO_CURLYBRACE          */\n\n\n    { ER_NO_CURLYBRACE,\n      \"\\u9519\\u8bef\\uff1a\\u8868\\u8fbe\\u5f0f\\u4e2d\\u4e0d\\u80fd\\u6709\\u201c{\\u201d\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE          */\n\n    { ER_ILLEGAL_ATTRIBUTE ,\n     \"{0} \\u6709\\u4e00\\u4e2a\\u975e\\u6cd5\\u5c5e\\u6027\\uff1a{1}\"},\n\n  /** ER_NULL_SOURCENODE_APPLYIMPORTS          */\n\n  {ER_NULL_SOURCENODE_APPLYIMPORTS ,\n      \"sourceNode \\u5728 xsl:apply-imports \\u4e2d\\u4e3a\\u7a7a\\uff01\"},\n\n  /** ER_CANNOT_ADD          */\n\n  {ER_CANNOT_ADD,\n      \"\\u65e0\\u6cd5\\u5c06 {0} \\u6dfb\\u52a0\\u5230 {1}\"},\n\n\n  /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES          */\n\n\n    { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES,\n      \"sourceNode \\u5728 handleApplyTemplatesInstruction \\u4e2d\\u4e3a\\u7a7a\\uff01\"},\n\n  /** ER_NO_NAME_ATTRIB          */\n\n\n    { ER_NO_NAME_ATTRIB,\n     \"{0} \\u5fc5\\u987b\\u6709 name \\u5c5e\\u6027\\u3002\"},\n\n  /** ER_TEMPLATE_NOT_FOUND          */\n\n\n    {ER_TEMPLATE_NOT_FOUND,\n     \"\\u627e\\u4e0d\\u5230\\u4ee5\\u4e0b\\u540d\\u79f0\\u7684\\u6a21\\u677f\\uff1a{0}\"},\n\n  /** ER_CANT_RESOLVE_NAME_AVT          */\n\n    {ER_CANT_RESOLVE_NAME_AVT,\n      \"\\u65e0\\u6cd5\\u89e3\\u6790 xsl:call-template \\u4e2d\\u7684\\u540d\\u79f0 AVT\\u3002\"},\n\n  /** ER_REQUIRES_ATTRIB          */\n\n\n    {ER_REQUIRES_ATTRIB,\n     \"{0} \\u9700\\u8981\\u5c5e\\u6027\\uff1a{1}\"},\n\n  /** ER_MUST_HAVE_TEST_ATTRIB          */\n\n\n    { ER_MUST_HAVE_TEST_ATTRIB,\n      \"{0} \\u5fc5\\u987b\\u6709\\u201ctest\\u201d\\u5c5e\\u6027\\u3002\"},\n\n  /** ER_BAD_VAL_ON_LEVEL_ATTRIB          */\n\n\n    {ER_BAD_VAL_ON_LEVEL_ATTRIB,\n      \"\\u7ea7\\u522b\\u5c5e\\u6027 {0} \\u4e0a\\u7684\\u503c\\u9519\\u8bef\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n\n\n    {ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"processing-instruction \\u540d\\u79f0\\u4e0d\\u80fd\\u662f\\u201cxml\\u201d\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n\n\n    { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"processing-instruction \\u540d\\u79f0\\u5fc5\\u987b\\u662f\\u6709\\u6548\\u7684 NCName\\uff1a{0}\"},\n\n  /** ER_NEED_MATCH_ATTRIB          */\n\n\n    { ER_NEED_MATCH_ATTRIB,\n      \"{0} \\u5982\\u679c\\u6709\\u67d0\\u79cd\\u65b9\\u5f0f\\uff0c\\u5c31\\u5fc5\\u987b\\u6709 match \\u5c5e\\u6027\\u3002\"},\n\n  /** ER_NEED_NAME_OR_MATCH_ATTRIB          */\n\n\n    { ER_NEED_NAME_OR_MATCH_ATTRIB,\n      \"{0} \\u9700\\u8981 name \\u5c5e\\u6027\\u6216 match \\u5c5e\\u6027\\u3002\"},\n\n  /** ER_CANT_RESOLVE_NSPREFIX          */\n\n\n    {ER_CANT_RESOLVE_NSPREFIX,\n      \"\\u65e0\\u6cd5\\u89e3\\u6790\\u540d\\u79f0\\u7a7a\\u95f4\\u524d\\u7f00\\uff1a{0}\"},\n\n  /** ER_ILLEGAL_VALUE          */\n\n\n    { ER_ILLEGAL_VALUE,\n     \"xml:space \\u6709\\u975e\\u6cd5\\u7684\\u503c\\uff1a{0}\"},\n\n  /** ER_NO_OWNERDOC          */\n\n\n    { ER_NO_OWNERDOC,\n      \"\\u5b50\\u8282\\u70b9\\u6ca1\\u6709\\u6240\\u6709\\u8005\\u6587\\u6863\\uff01\"},\n\n  /** ER_ELEMTEMPLATEELEM_ERR          */\n\n\n    { ER_ELEMTEMPLATEELEM_ERR,\n     \"ElemTemplateElement \\u9519\\u8bef\\uff1a{0}\"},\n\n  /** ER_NULL_CHILD          */\n\n\n    { ER_NULL_CHILD,\n     \"\\u6b63\\u5728\\u5c1d\\u8bd5\\u6dfb\\u52a0\\u7a7a\\u7684\\u5b50\\u4ee3\\uff01\"},\n\n  /** ER_NEED_SELECT_ATTRIB          */\n\n\n    { ER_NEED_SELECT_ATTRIB,\n     \"{0} \\u9700\\u8981 select \\u5c5e\\u6027\\u3002\"},\n\n  /** ER_NEED_TEST_ATTRIB          */\n\n\n    { ER_NEED_TEST_ATTRIB ,\n      \"xsl:when \\u5fc5\\u987b\\u6709\\u201ctest\\u201d\\u5c5e\\u6027\\u3002\"},\n\n  /** ER_NEED_NAME_ATTRIB          */\n\n\n    { ER_NEED_NAME_ATTRIB,\n      \"xsl:with-param \\u5fc5\\u987b\\u6709\\u201cname\\u201d\\u5c5e\\u6027\\u3002\"},\n\n  /** ER_NO_CONTEXT_OWNERDOC          */\n\n\n    { ER_NO_CONTEXT_OWNERDOC,\n      \"\\u4e0a\\u4e0b\\u6587\\u6ca1\\u6709\\u6240\\u6709\\u8005\\u6587\\u6863\\uff01\"},\n\n  /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON          */\n\n\n    {ER_COULD_NOT_CREATE_XML_PROC_LIAISON,\n      \"\\u65e0\\u6cd5\\u521b\\u5efa XML TransformerFactory \\u8054\\u7cfb\\uff1a{0}\"},\n\n  /** ER_PROCESS_NOT_SUCCESSFUL          */\n\n\n    {ER_PROCESS_NOT_SUCCESSFUL,\n      \"Xalan: Process \\u4e0d\\u6210\\u529f\\u3002\"},\n\n  /** ER_NOT_SUCCESSFUL          */\n\n\n    { ER_NOT_SUCCESSFUL,\n     \"Xalan: \\u4e0d\\u6210\\u529f\\u3002\"},\n\n  /** ER_ENCODING_NOT_SUPPORTED          */\n\n\n    { ER_ENCODING_NOT_SUPPORTED,\n     \"\\u4e0d\\u652f\\u6301\\u7f16\\u7801\\uff1a{0}\"},\n\n  /** ER_COULD_NOT_CREATE_TRACELISTENER          */\n\n\n    {ER_COULD_NOT_CREATE_TRACELISTENER,\n      \"\\u65e0\\u6cd5\\u521b\\u5efa TraceListener\\uff1a{0}\"},\n\n  /** ER_KEY_REQUIRES_NAME_ATTRIB          */\n\n\n    {ER_KEY_REQUIRES_NAME_ATTRIB,\n      \"xsl:key \\u9700\\u8981\\u201cname\\u201d\\u5c5e\\u6027\\uff01\"},\n\n  /** ER_KEY_REQUIRES_MATCH_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_MATCH_ATTRIB,\n      \"xsl:key \\u9700\\u8981\\u201cmatch\\u201d\\u5c5e\\u6027\\uff01\"},\n\n  /** ER_KEY_REQUIRES_USE_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_USE_ATTRIB,\n      \"xsl:key \\u9700\\u8981\\u201cuse\\u201d\\u5c5e\\u6027\\uff01\"},\n\n  /** ER_REQUIRES_ELEMENTS_ATTRIB          */\n\n\n    { ER_REQUIRES_ELEMENTS_ATTRIB,\n      \"\\uff08StylesheetHandler\\uff09{0} \\u9700\\u8981\\u201celements\\u201d\\u5c5e\\u6027\\uff01\"},\n\n  /** ER_MISSING_PREFIX_ATTRIB          */\n\n\n    { ER_MISSING_PREFIX_ATTRIB,\n      \"\\uff08StylesheetHandler\\uff09{0} \\u5c5e\\u6027\\u201cprefix\\u201d\\u4e22\\u5931\"},\n\n  /** ER_BAD_STYLESHEET_URL          */\n\n\n    { ER_BAD_STYLESHEET_URL,\n     \"\\u6837\\u5f0f\\u8868 URL \\u9519\\u8bef\\uff1a{0}\"},\n\n  /** ER_FILE_NOT_FOUND          */\n\n\n    { ER_FILE_NOT_FOUND,\n     \"\\u627e\\u4e0d\\u5230\\u6837\\u5f0f\\u8868\\u6587\\u4ef6\\uff1a{0}\"},\n\n  /** ER_IOEXCEPTION          */\n\n\n    { ER_IOEXCEPTION,\n      \"\\u6837\\u5f0f\\u8868\\u6587\\u4ef6\\u53d1\\u751f IO \\u5f02\\u5e38\\uff1a{0}\"},\n\n  /** ER_NO_HREF_ATTRIB          */\n\n\n    { ER_NO_HREF_ATTRIB,\n      \"\\uff08StylesheetHandler\\uff09\\u65e0\\u6cd5\\u4e3a {0} \\u627e\\u5230 href \\u5c5e\\u6027\"},\n\n  /** ER_STYLESHEET_INCLUDES_ITSELF          */\n\n\n    { ER_STYLESHEET_INCLUDES_ITSELF,\n      \"\\uff08StylesheetHandler\\uff09{0} \\u6b63\\u5728\\u76f4\\u63a5\\u6216\\u95f4\\u63a5\\u5730\\u5305\\u542b\\u5b83\\u81ea\\u8eab\\uff01\"},\n\n  /** ER_PROCESSINCLUDE_ERROR          */\n\n\n    { ER_PROCESSINCLUDE_ERROR,\n      \"StylesheetHandler.processInclude \\u9519\\u8bef\\uff0c{0}\"},\n\n  /** ER_MISSING_LANG_ATTRIB          */\n\n\n    { ER_MISSING_LANG_ATTRIB,\n      \"\\uff08StylesheetHandler\\uff09{0} \\u5c5e\\u6027\\u201clang\\u201d\\u4e22\\u5931\"},\n\n  /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT          */\n\n    { ER_MISSING_CONTAINER_ELEMENT_COMPONENT,\n      \"\\uff08StylesheetHandler\\uff09{0} \\u5143\\u7d20\\u9519\\u653e\\uff1f\\u7f3a\\u5c11\\u5bb9\\u5668\\u5143\\u7d20\\u201ccomponent\\u201d\"},\n\n  /** ER_CAN_ONLY_OUTPUT_TO_ELEMENT          */\n\n    { ER_CAN_ONLY_OUTPUT_TO_ELEMENT,\n      \"\\u53ea\\u80fd\\u8f93\\u51fa\\u5230 Element\\u3001DocumentFragment\\u3001Document \\u6216 PrintWriter\\u3002\"},\n\n  /** ER_PROCESS_ERROR          */\n\n    { ER_PROCESS_ERROR,\n     \"StylesheetRoot.process \\u9519\\u8bef\"},\n\n  /** ER_UNIMPLNODE_ERROR          */\n\n    { ER_UNIMPLNODE_ERROR,\n     \"UnImplNode \\u9519\\u8bef\\uff1a{0}\"},\n\n  /** ER_NO_SELECT_EXPRESSION          */\n\n    { ER_NO_SELECT_EXPRESSION,\n      \"\\u9519\\u8bef\\uff01\\u627e\\u4e0d\\u5230 xpath \\u9009\\u62e9\\u8868\\u8fbe\\u5f0f\\uff08-select\\uff09\\u3002\"},\n\n  /** ER_CANNOT_SERIALIZE_XSLPROCESSOR          */\n\n    { ER_CANNOT_SERIALIZE_XSLPROCESSOR,\n      \"\\u65e0\\u6cd5\\u5e8f\\u5217\\u5316 XSLProcessor\\uff01\"},\n\n  /** ER_NO_INPUT_STYLESHEET          */\n\n    { ER_NO_INPUT_STYLESHEET,\n      \"\\u6ca1\\u6709\\u6307\\u5b9a\\u6837\\u5f0f\\u8868\\u8f93\\u5165\\uff01\"},\n\n  /** ER_FAILED_PROCESS_STYLESHEET          */\n\n    { ER_FAILED_PROCESS_STYLESHEET,\n      \"\\u65e0\\u6cd5\\u5904\\u7406\\u6837\\u5f0f\\u8868\\uff01\"},\n\n  /** ER_COULDNT_PARSE_DOC          */\n\n    { ER_COULDNT_PARSE_DOC,\n     \"\\u65e0\\u6cd5\\u5206\\u6790 {0} \\u6587\\u6863\\uff01\"},\n\n  /** ER_COULDNT_FIND_FRAGMENT          */\n\n    { ER_COULDNT_FIND_FRAGMENT,\n     \"\\u627e\\u4e0d\\u5230\\u7247\\u6bb5\\uff1a{0}\"},\n\n  /** ER_NODE_NOT_ELEMENT          */\n\n    { ER_NODE_NOT_ELEMENT,\n      \"\\u7247\\u6bb5\\u6807\\u8bc6\\u6307\\u5411\\u7684\\u8282\\u70b9\\u4e0d\\u662f\\u5143\\u7d20\\uff1a{0}\"},\n\n  /** ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB,\n      \"for-each \\u5fc5\\u987b\\u6709 match \\u5c5e\\u6027\\u6216 name \\u5c5e\\u6027\"},\n\n  /** ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB,\n      \"templates \\u5fc5\\u987b\\u6709 match \\u5c5e\\u6027\\u6216 name \\u5c5e\\u6027\"},\n\n  /** ER_NO_CLONE_OF_DOCUMENT_FRAG          */\n\n    { ER_NO_CLONE_OF_DOCUMENT_FRAG,\n      \"\\u65e0\\u6587\\u6863\\u7247\\u6bb5\\u7684\\u514b\\u9686\\uff01\"},\n\n  /** ER_CANT_CREATE_ITEM          */\n\n    { ER_CANT_CREATE_ITEM,\n      \"\\u65e0\\u6cd5\\u5728\\u7ed3\\u679c\\u6811\\u4e2d\\u521b\\u5efa\\u9879\\uff1a{0}\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VALUE          */\n\n    { ER_XMLSPACE_ILLEGAL_VALUE,\n      \"\\u6e90 XML \\u4e2d\\u7684 xml:space \\u6709\\u975e\\u6cd5\\u503c\\uff1a{0}\"},\n\n  /** ER_NO_XSLKEY_DECLARATION          */\n\n    { ER_NO_XSLKEY_DECLARATION,\n      \"\\u6ca1\\u6709 {0} \\u7684 xsl:key \\u8bf4\\u660e\\uff01\"},\n\n  /** ER_CANT_CREATE_URL          */\n\n    { ER_CANT_CREATE_URL,\n     \"\\u9519\\u8bef\\uff01\\u65e0\\u6cd5\\u4e3a {0} \\u521b\\u5efa URL\"},\n\n  /** ER_XSLFUNCTIONS_UNSUPPORTED          */\n\n    { ER_XSLFUNCTIONS_UNSUPPORTED,\n     \"\\u4e0d\\u652f\\u6301 xsl:functions\"},\n\n  /** ER_PROCESSOR_ERROR          */\n\n    { ER_PROCESSOR_ERROR,\n     \"XSLT TransformerFactory \\u9519\\u8bef\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_STYLESHEET          */\n\n    { ER_NOT_ALLOWED_INSIDE_STYLESHEET,\n      \"\\uff08StylesheetHandler\\uff09\\u6837\\u5f0f\\u8868\\u5185\\u4e0d\\u5141\\u8bb8 {0}\\uff01\"},\n\n  /** ER_RESULTNS_NOT_SUPPORTED          */\n\n    { ER_RESULTNS_NOT_SUPPORTED,\n      \"\\u4e0d\\u518d\\u652f\\u6301 result-ns\\uff01\\u8bf7\\u6539\\u4e3a\\u4f7f\\u7528 xsl:output\\u3002\"},\n\n  /** ER_DEFAULTSPACE_NOT_SUPPORTED          */\n\n    { ER_DEFAULTSPACE_NOT_SUPPORTED,\n      \"\\u4e0d\\u518d\\u652f\\u6301 default-space\\uff01\\u8bf7\\u6539\\u4e3a\\u4f7f\\u7528 xsl:strip-space \\u6216 xsl:preserve-space\\u3002\"},\n\n  /** ER_INDENTRESULT_NOT_SUPPORTED          */\n\n    { ER_INDENTRESULT_NOT_SUPPORTED,\n      \"\\u4e0d\\u518d\\u652f\\u6301 indent-result\\uff01\\u8bf7\\u6539\\u4e3a\\u4f7f\\u7528 xsl:output\\u3002\"},\n\n  /** ER_ILLEGAL_ATTRIB          */\n\n    { ER_ILLEGAL_ATTRIB,\n      \"\\uff08StylesheetHandler\\uff09{0} \\u6709\\u975e\\u6cd5\\u5c5e\\u6027\\uff1a{1}\"},\n\n  /** ER_UNKNOWN_XSL_ELEM          */\n\n    { ER_UNKNOWN_XSL_ELEM,\n     \"\\u672a\\u77e5 XSL \\u5143\\u7d20\\uff1a{0}\"},\n\n  /** ER_BAD_XSLSORT_USE          */\n\n    { ER_BAD_XSLSORT_USE,\n      \"\\uff08StylesheetHandler\\uff09xsl:sort \\u53ea\\u80fd\\u4e0e xsl:apply-templates \\u6216 xsl:for-each \\u4e00\\u8d77\\u4f7f\\u7528\\u3002\"},\n\n  /** ER_MISPLACED_XSLWHEN          */\n\n    { ER_MISPLACED_XSLWHEN,\n      \"\\uff08StylesheetHandler\\uff09\\u9519\\u653e\\u4e86 xsl:when\\uff01\"},\n\n  /** ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE,\n      \"\\uff08StylesheetHandler\\uff09xsl:choose \\u4e0d\\u662f xsl:when \\u7684\\u7236\\u4ee3\\uff01\"},\n\n  /** ER_MISPLACED_XSLOTHERWISE          */\n\n    { ER_MISPLACED_XSLOTHERWISE,\n      \"\\uff08StylesheetHandler\\uff09\\u9519\\u653e\\u4e86 xsl:otherwise\\uff01\"},\n\n  /** ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE,\n      \"\\uff08StylesheetHandler\\uff09xsl:choose \\u4e0d\\u662f xsl:otherwise \\u7684\\u7236\\u4ee3\\uff01\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_TEMPLATE          */\n\n    { ER_NOT_ALLOWED_INSIDE_TEMPLATE,\n      \"\\uff08StylesheetHandler\\uff09\\u6a21\\u677f\\u5185\\u4e0d\\u5141\\u8bb8 {0}\\uff01\"},\n\n  /** ER_UNKNOWN_EXT_NS_PREFIX          */\n\n    { ER_UNKNOWN_EXT_NS_PREFIX,\n      \"\\uff08StylesheetHandler\\uff09{0} \\u6269\\u5c55\\u540d\\u79f0\\u7a7a\\u95f4\\u524d\\u7f00 {1} \\u672a\\u77e5\"},\n\n  /** ER_IMPORTS_AS_FIRST_ELEM          */\n\n    { ER_IMPORTS_AS_FIRST_ELEM,\n      \"\\uff08StylesheetHandler\\uff09\\u5bfc\\u5165\\u53ea\\u80fd\\u4f5c\\u4e3a\\u6837\\u5f0f\\u8868\\u4e2d\\u6700\\u524d\\u9762\\u7684\\u5143\\u7d20\\u53d1\\u751f\\uff01\"},\n\n  /** ER_IMPORTING_ITSELF          */\n\n    { ER_IMPORTING_ITSELF,\n      \"\\uff08StylesheetHandler\\uff09{0} \\u6b63\\u5728\\u76f4\\u63a5\\u6216\\u95f4\\u63a5\\u5730\\u5bfc\\u5165\\u5b83\\u81ea\\u8eab\\uff01\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VAL          */\n\n    { ER_XMLSPACE_ILLEGAL_VAL,\n      \"\\uff08StylesheetHandler\\uff09\\u201c+\\u201dxml:space \\u6709\\u975e\\u6cd5\\u503c\\uff1a{0}\"},\n\n  /** ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL          */\n\n    { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL,\n      \"processStylesheet \\u4e0d\\u6210\\u529f\\uff01\"},\n\n  /** ER_SAX_EXCEPTION          */\n\n    { ER_SAX_EXCEPTION,\n     \"SAX \\u5f02\\u5e38\"},\n\n  /** ER_FUNCTION_NOT_SUPPORTED          */\n\n\n  /** ER_XSLT_ERROR          */\n\n    { ER_XSLT_ERROR,\n     \"XSLT \\u9519\\u8bef\"},\n\n  /** ER_CURRENCY_SIGN_ILLEGAL          */\n\n    { ER_CURRENCY_SIGN_ILLEGAL,\n      \"\\u683c\\u5f0f\\u6a21\\u5f0f\\u5b57\\u7b26\\u4e32\\u4e2d\\u4e0d\\u5141\\u8bb8\\u5b58\\u5728\\u8d27\\u5e01\\u7b26\\u53f7\"},\n\n  /** ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM          */\n\n    { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM,\n      \"\\u6837\\u5f0f\\u8868 DOM \\u4e2d\\u4e0d\\u652f\\u6301\\u6587\\u6863\\u51fd\\u6570\\uff01\"},\n\n  /** ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER          */\n\n    { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER,\n      \"\\u65e0\\u6cd5\\u89e3\\u6790\\u975e\\u524d\\u7f00\\u89e3\\u6790\\u7a0b\\u5e8f\\u7684\\u524d\\u7f00\\uff01\"},\n\n  /** ER_REDIRECT_COULDNT_GET_FILENAME          */\n\n    { ER_REDIRECT_COULDNT_GET_FILENAME,\n      \"\\u91cd\\u5b9a\\u5411\\u6269\\u5c55\\uff1a\\u65e0\\u6cd5\\u83b7\\u53d6\\u6587\\u4ef6\\u540d \\u2015 \\u6587\\u4ef6\\u6216 select \\u5c5e\\u6027\\u5fc5\\u987b\\u8fd4\\u56de\\u6709\\u6548\\u5b57\\u7b26\\u4e32\\u3002\"},\n\n  /** ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT          */\n\n    { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT,\n      \"\\u65e0\\u6cd5\\u5728\\u91cd\\u5b9a\\u5411\\u6269\\u5c55\\u4e2d\\u6784\\u5efa FormatterListener\\uff01\"},\n\n  /** ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX          */\n\n    { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX,\n      \"exclude-result-prefixes \\u4e2d\\u7684\\u524d\\u7f00\\u65e0\\u6548\\uff1a{0}\"},\n\n  /** ER_MISSING_NS_URI          */\n\n    { ER_MISSING_NS_URI,\n      \"\\u7f3a\\u5c11\\u6307\\u5b9a\\u524d\\u7f00\\u7684\\u540d\\u79f0\\u7a7a\\u95f4 URI\"},\n\n  /** ER_MISSING_ARG_FOR_OPTION          */\n\n    { ER_MISSING_ARG_FOR_OPTION,\n      \"\\u7f3a\\u5c11\\u9009\\u9879\\u7684\\u81ea\\u53d8\\u91cf\\uff1a{0}\"},\n\n  /** ER_INVALID_OPTION          */\n\n    { ER_INVALID_OPTION,\n     \"\\u65e0\\u6548\\u7684\\u9009\\u9879\\uff1a{0}\"},\n\n  /** ER_MALFORMED_FORMAT_STRING          */\n\n    { ER_MALFORMED_FORMAT_STRING,\n     \"\\u683c\\u5f0f\\u4e0d\\u597d\\u7684\\u683c\\u5f0f\\u5b57\\u7b26\\u4e32\\uff1a{0}\"},\n\n  /** ER_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n\n    { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"xsl:stylesheet \\u9700\\u8981\\u201cversion\\u201d\\u5c5e\\u6027\\uff01\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE_VALUE          */\n\n    { ER_ILLEGAL_ATTRIBUTE_VALUE,\n      \"\\u5c5e\\u6027\\uff1a{0} \\u6709\\u975e\\u6cd5\\u7684\\u503c\\uff1a{1}\"},\n\n  /** ER_CHOOSE_REQUIRES_WHEN          */\n\n    { ER_CHOOSE_REQUIRES_WHEN,\n     \"xsl:choose \\u9700\\u8981 xsl:when\"},\n\n  /** ER_NO_APPLY_IMPORT_IN_FOR_EACH          */\n\n    { ER_NO_APPLY_IMPORT_IN_FOR_EACH,\n      \"xsl:for-each \\u4e2d\\u4e0d\\u5141\\u8bb8 xsl:apply-imports\"},\n\n  /** ER_CANT_USE_DTM_FOR_OUTPUT          */\n\n    { ER_CANT_USE_DTM_FOR_OUTPUT,\n      \"\\u65e0\\u6cd5\\u5c06 DTMLiaison \\u7528\\u4e8e\\u8f93\\u51fa DOM \\u8282\\u70b9... \\u6539\\u4e3a\\u4f20\\u9012 org.apache.xpath.DOM2Helper\\uff01\"},\n\n  /** ER_CANT_USE_DTM_FOR_INPUT          */\n\n    { ER_CANT_USE_DTM_FOR_INPUT,\n      \"\\u65e0\\u6cd5\\u5c06 DTMLiaison \\u7528\\u4e8e\\u8f93\\u5165 DOM \\u8282\\u70b9... \\u6539\\u4e3a\\u4f20\\u9012 org.apache.xpath.DOM2Helper\\uff01\"},\n\n  /** ER_CALL_TO_EXT_FAILED          */\n\n    { ER_CALL_TO_EXT_FAILED,\n      \"\\u8c03\\u7528\\u6269\\u5c55\\u5143\\u7d20\\u5931\\u8d25\\uff1a{0}\"},\n\n  /** ER_PREFIX_MUST_RESOLVE          */\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"\\u524d\\u7f00\\u5fc5\\u987b\\u89e3\\u6790\\u4e3a\\u540d\\u79f0\\u7a7a\\u95f4\\uff1a{0}\"},\n\n  /** ER_INVALID_UTF16_SURROGATE          */\n\n    { ER_INVALID_UTF16_SURROGATE,\n      \"\\u68c0\\u6d4b\\u5230\\u65e0\\u6548\\u7684 UTF-16 \\u66ff\\u4ee3\\u8005\\uff1a{0}\\uff1f\"},\n\n  /** ER_XSLATTRSET_USED_ITSELF          */\n\n    { ER_XSLATTRSET_USED_ITSELF,\n      \"xsl:attribute-set {0} \\u4f7f\\u7528\\u4e86\\u81ea\\u8eab\\uff0c\\u8fd9\\u5c06\\u5bfc\\u81f4\\u65e0\\u9650\\u5faa\\u73af\\u3002\"},\n\n  /** ER_CANNOT_MIX_XERCESDOM          */\n\n    { ER_CANNOT_MIX_XERCESDOM,\n      \"\\u65e0\\u6cd5\\u5c06\\u975e Xerces-DOM \\u8f93\\u5165\\u4e0e Xerces-DOM \\u8f93\\u51fa\\u6df7\\u5408\\uff01\"},\n\n  /** ER_TOO_MANY_LISTENERS          */\n\n    { ER_TOO_MANY_LISTENERS,\n      \"addTraceListenersToStylesheet \\u2015 TooManyListenersException\"},\n\n  /** ER_IN_ELEMTEMPLATEELEM_READOBJECT          */\n\n    { ER_IN_ELEMTEMPLATEELEM_READOBJECT,\n      \"\\u5728 ElemTemplateElement.readObject \\u4e2d\\uff1a{0}\"},\n\n  /** ER_DUPLICATE_NAMED_TEMPLATE          */\n\n    { ER_DUPLICATE_NAMED_TEMPLATE,\n      \"\\u627e\\u5230\\u591a\\u4e2a\\u540d\\u4e3a {0} \\u7684\\u6a21\\u677f\"},\n\n  /** ER_INVALID_KEY_CALL          */\n\n    { ER_INVALID_KEY_CALL,\n      \"\\u65e0\\u6548\\u7684\\u51fd\\u6570\\u8c03\\u7528\\uff1a\\u4e0d\\u5141\\u8bb8\\u5faa\\u73af key() \\u8c03\\u7528\"},\n\n  /** Variable is referencing itself          */\n\n    { ER_REFERENCING_ITSELF,\n      \"\\u53d8\\u91cf {0} \\u6b63\\u5728\\u76f4\\u63a5\\u6216\\u95f4\\u63a5\\u5730\\u5f15\\u7528\\u5b83\\u81ea\\u8eab\\uff01\"},\n\n  /** Illegal DOMSource input          */\n\n    { ER_ILLEGAL_DOMSOURCE_INPUT,\n      \"\\u8f93\\u5165\\u8282\\u70b9\\u5bf9\\u4e8e newTemplates \\u7684 DOMSource \\u4e0d\\u80fd\\u4e3a\\u7a7a\\uff01\"},\n\n        /** Class not found for option         */\n\n    { ER_CLASS_NOT_FOUND_FOR_OPTION,\n        \"\\u627e\\u4e0d\\u5230\\u9009\\u9879 {0} \\u7684\\u7c7b\\u6587\\u4ef6\"},\n\n        /** Required Element not found         */\n\n    { ER_REQUIRED_ELEM_NOT_FOUND,\n        \"\\u627e\\u4e0d\\u5230\\u5fc5\\u9700\\u7684\\u5143\\u7d20\\uff1a{0}\"},\n\n  /** InputStream cannot be null         */\n\n    { ER_INPUT_CANNOT_BE_NULL,\n        \"InputStream \\u4e0d\\u80fd\\u4e3a\\u7a7a\"},\n\n  /** URI cannot be null         */\n\n    { ER_URI_CANNOT_BE_NULL,\n        \"URI \\u4e0d\\u80fd\\u4e3a\\u7a7a\"},\n\n  /** File cannot be null         */\n\n    { ER_FILE_CANNOT_BE_NULL,\n        \"File \\u4e0d\\u80fd\\u4e3a\\u7a7a\"},\n\n   /** InputSource cannot be null         */\n\n    { ER_SOURCE_CANNOT_BE_NULL,\n                \"InputSource \\u4e0d\\u80fd\\u4e3a\\u7a7a\"},\n\n  /** Can't overwrite cause         */\n\n\n  /** Could not initialize BSF Manager        */\n\n    { ER_CANNOT_INIT_BSFMGR,\n                \"\\u65e0\\u6cd5\\u521d\\u59cb\\u5316 BSF Manager\"},\n\n  /** Could not compile extension       */\n\n    { ER_CANNOT_CMPL_EXTENSN,\n                \"\\u65e0\\u6cd5\\u7f16\\u8bd1\\u6269\\u5c55\"},\n\n  /** Could not create extension       */\n\n    { ER_CANNOT_CREATE_EXTENSN,\n      \"\\u7531\\u4e8e {1}\\uff0c\\u65e0\\u6cd5\\u521b\\u5efa\\u6269\\u5c55 {0}\"},\n\n  /** Instance method call to method {0} requires an Object instance as first argument       */\n\n    { ER_INSTANCE_MTHD_CALL_REQUIRES,\n      \"\\u5bf9\\u65b9\\u6cd5 {0} \\u7684\\u5b9e\\u4f8b\\u65b9\\u6cd5\\u8c03\\u7528\\u8981\\u6c42\\u4ee5\\u5bf9\\u8c61\\u5b9e\\u4f8b\\u4f5c\\u4e3a\\u7b2c\\u4e00\\u81ea\\u53d8\\u91cf\"},\n\n  /** Invalid element name specified       */\n\n    { ER_INVALID_ELEMENT_NAME,\n      \"\\u6307\\u5b9a\\u4e86\\u65e0\\u6548\\u7684\\u5143\\u7d20\\u540d\\u79f0 {0}\"},\n\n   /** Element name method must be static      */\n\n    { ER_ELEMENT_NAME_METHOD_STATIC,\n      \"\\u5143\\u7d20\\u540d\\u79f0\\u65b9\\u6cd5\\u5fc5\\u987b\\u662f static {0}\"},\n\n   /** Extension function {0} : {1} is unknown      */\n\n    { ER_EXTENSION_FUNC_UNKNOWN,\n             \"\\u6269\\u5c55\\u51fd\\u6570 {0}\\uff1a{1} \\u672a\\u77e5\"},\n\n   /** More than one best match for constructor for       */\n\n    { ER_MORE_MATCH_CONSTRUCTOR,\n             \"\\u5bf9\\u4e8e {0}\\uff0c\\u6784\\u9020\\u51fd\\u6570\\u6709\\u591a\\u4e2a\\u6700\\u4f73\\u5339\\u914d\"},\n\n   /** More than one best match for method      */\n\n    { ER_MORE_MATCH_METHOD,\n             \"\\u65b9\\u6cd5 {0} \\u6709\\u591a\\u4e2a\\u6700\\u4f73\\u5339\\u914d\"},\n\n   /** More than one best match for element method      */\n\n    { ER_MORE_MATCH_ELEMENT,\n             \"element \\u65b9\\u6cd5 {0} \\u6709\\u591a\\u4e2a\\u6700\\u4f73\\u5339\\u914d\"},\n\n   /** Invalid context passed to evaluate       */\n\n    { ER_INVALID_CONTEXT_PASSED,\n             \"\\u4f20\\u9012\\u4e86\\u65e0\\u6548\\u7684\\u4e0a\\u4e0b\\u6587\\u6765\\u6c42\\u503c {0}\"},\n\n   /** Pool already exists       */\n\n    { ER_POOL_EXISTS,\n             \"\\u6c60\\u5df2\\u7ecf\\u5b58\\u5728\"},\n\n   /** No driver Name specified      */\n\n    { ER_NO_DRIVER_NAME,\n             \"\\u672a\\u6307\\u5b9a\\u9a71\\u52a8\\u7a0b\\u5e8f\\u540d\\u79f0\"},\n\n   /** No URL specified     */\n\n    { ER_NO_URL,\n             \"\\u672a\\u6307\\u5b9a URL\"},\n\n   /** Pool size is less than one    */\n\n    { ER_POOL_SIZE_LESSTHAN_ONE,\n             \"\\u6c60\\u5927\\u5c0f\\u5c0f\\u4e8e 1\\uff01\"},\n\n   /** Invalid driver name specified    */\n\n    { ER_INVALID_DRIVER,\n             \"\\u6307\\u5b9a\\u4e86\\u65e0\\u6548\\u7684\\u9a71\\u52a8\\u7a0b\\u5e8f\\u540d\\u79f0\\uff01\"},\n\n   /** Did not find the stylesheet root    */\n\n    { ER_NO_STYLESHEETROOT,\n             \"\\u627e\\u4e0d\\u5230\\u6837\\u5f0f\\u8868\\u6839\\u76ee\\u5f55\\uff01\"},\n\n   /** Illegal value for xml:space     */\n\n    { ER_ILLEGAL_XMLSPACE_VALUE,\n         \"xml:space \\u7684\\u503c\\u975e\\u6cd5\"},\n\n   /** processFromNode failed     */\n\n    { ER_PROCESSFROMNODE_FAILED,\n         \"processFromNode \\u5931\\u8d25\"},\n\n   /** The resource [] could not load:     */\n\n    { ER_RESOURCE_COULD_NOT_LOAD,\n        \"\\u8d44\\u6e90 [ {0} ] \\u65e0\\u6cd5\\u88c5\\u5165\\uff1a{1} \\n {2} \\t {3}\"},\n\n\n   /** Buffer size <=0     */\n\n    { ER_BUFFER_SIZE_LESSTHAN_ZERO,\n        \"\\u7f13\\u51b2\\u533a\\u5927\\u5c0f <=0\"},\n\n   /** Unknown error when calling extension    */\n\n    { ER_UNKNOWN_ERROR_CALLING_EXTENSION,\n        \"\\u8c03\\u7528\\u6269\\u5c55\\u65f6\\u53d1\\u751f\\u672a\\u77e5\\u9519\\u8bef\"},\n\n   /** Prefix {0} does not have a corresponding namespace declaration    */\n\n    { ER_NO_NAMESPACE_DECL,\n        \"\\u524d\\u7f00 {0} \\u6ca1\\u6709\\u76f8\\u5e94\\u7684\\u540d\\u79f0\\u7a7a\\u95f4\\u8bf4\\u660e\"},\n\n   /** Element content not allowed for lang=javaclass   */\n\n    { ER_ELEM_CONTENT_NOT_ALLOWED,\n        \"lang=javaclass {0} \\u4e0d\\u5141\\u8bb8\\u5143\\u7d20\\u5185\\u5bb9\"},\n\n   /** Stylesheet directed termination   */\n\n    { ER_STYLESHEET_DIRECTED_TERMINATION,\n        \"\\u6837\\u5f0f\\u8868\\u5b9a\\u5411\\u7684\\u7ec8\\u6b62\"},\n\n   /** 1 or 2   */\n\n    { ER_ONE_OR_TWO,\n        \"1 \\u6216 2\"},\n\n   /** 2 or 3   */\n\n    { ER_TWO_OR_THREE,\n        \"2 \\u6216 3\"},\n\n   /** Could not load {0} (check CLASSPATH), now using just the defaults   */\n\n    { ER_COULD_NOT_LOAD_RESOURCE,\n        \"\\u65e0\\u6cd5\\u88c5\\u5165 {0}\\uff08\\u68c0\\u67e5 CLASSPATH\\uff09\\uff0c\\u73b0\\u5728\\u53ea\\u4f7f\\u7528\\u7f3a\\u7701\\u503c\"},\n\n   /** Cannot initialize default templates   */\n\n    { ER_CANNOT_INIT_DEFAULT_TEMPLATES,\n        \"\\u65e0\\u6cd5\\u521d\\u59cb\\u5316\\u7f3a\\u7701\\u6a21\\u677f\"},\n\n   /** Result should not be null   */\n\n    { ER_RESULT_NULL,\n        \"\\u7ed3\\u679c\\u4e0d\\u5e94\\u4e3a\\u7a7a\"},\n\n   /** Result could not be set   */\n\n    { ER_RESULT_COULD_NOT_BE_SET,\n        \"\\u65e0\\u6cd5\\u8bbe\\u7f6e\\u7ed3\\u679c\"},\n\n   /** No output specified   */\n\n    { ER_NO_OUTPUT_SPECIFIED,\n        \"\\u672a\\u6307\\u5b9a\\u8f93\\u51fa\"},\n\n   /** Can't transform to a Result of type   */\n\n    { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE,\n        \"\\u65e0\\u6cd5\\u8f6c\\u6362\\u5230\\u7c7b\\u578b\\u4e3a {0} \\u7684\\u7ed3\\u679c\"},\n\n   /** Can't transform to a Source of type   */\n\n    { ER_CANNOT_TRANSFORM_SOURCE_TYPE,\n        \"\\u65e0\\u6cd5\\u8f6c\\u6362\\u7c7b\\u578b\\u4e3a {0} \\u7684\\u6e90\"},\n\n   /** Null content handler  */\n\n    { ER_NULL_CONTENT_HANDLER,\n        \"\\u5185\\u5bb9\\u5904\\u7406\\u7a0b\\u5e8f\\u4e3a\\u7a7a\"},\n\n   /** Null error handler  */\n    { ER_NULL_ERROR_HANDLER,\n        \"\\u9519\\u8bef\\u5904\\u7406\\u7a0b\\u5e8f\\u4e3a\\u7a7a\"},\n\n   /** parse can not be called if the ContentHandler has not been set */\n\n    { ER_CANNOT_CALL_PARSE,\n        \"\\u5982\\u679c\\u6ca1\\u6709\\u8bbe\\u7f6e ContentHandler\\uff0c\\u5219\\u65e0\\u6cd5\\u8c03\\u7528\\u5206\\u6790\"},\n\n   /**  No parent for filter */\n\n    { ER_NO_PARENT_FOR_FILTER,\n        \"\\u8fc7\\u6ee4\\u5668\\u65e0\\u7236\\u4ee3\"},\n\n\n   /**  No stylesheet found in: {0}, media */\n\n    { ER_NO_STYLESHEET_IN_MEDIA,\n         \"\\u5728 {0} \\u4e2d\\u627e\\u4e0d\\u5230\\u6837\\u5f0f\\u8868\\uff0c\\u4ecb\\u8d28 = {1}\"},\n\n   /**  No xml-stylesheet PI found in */\n\n    { ER_NO_STYLESHEET_PI,\n         \"\\u5728 {0} \\u4e2d\\u627e\\u4e0d\\u5230 xml-stylesheet PI\"},\n\n   /**  No default implementation found */\n\n\n   /**  ChunkedIntArray({0}) not currently supported */\n\n\n   /**  Offset bigger than slot */\n\n\n   /**  Coroutine not available, id= */\n\n\n   /**  CoroutineManager recieved co_exit() request */\n\n\n   /**  co_joinCoroutineSet() failed */\n\n\n   /**  Coroutine parameter error () */\n\n\n   /**  UNEXPECTED: Parser doTerminate answers  */\n\n\n   /**  parse may not be called while parsing */\n\n\n   /**  Error: typed iterator for axis  {0} not implemented  */\n\n\n   /**  Error: iterator for axis {0} not implemented  */\n\n\n   /**  Iterator clone not supported  */\n\n\n   /**  Unknown axis traversal type  */\n\n\n   /**  Axis traverser not supported  */\n\n\n   /**  No more DTM IDs are available  */\n\n\n   /**  Not supported  */\n\n    { ER_NOT_SUPPORTED,\n       \"\\u4e0d\\u652f\\u6301\\uff1a{0}\"},\n\n   /**  node must be non-null for getDTMHandleFromNode  */\n\n\n   /**  Could not resolve the node to a handle  */\n\n\n   /**  startParse may not be called while parsing */\n\n\n   /**  startParse needs a non-null SAXParser  */\n\n\n   /**  could not initialize parser with */\n\n   /**  Value for property {0} should be a Boolean instance  */\n\n    { ER_PROPERTY_VALUE_BOOLEAN,\n       \"\\u7279\\u6027 {0} \\u7684\\u503c\\u5e94\\u5f53\\u662f\\u5e03\\u5c14\\u5b9e\\u4f8b\"},\n\n   /**  exception creating new instance for pool  */\n\n\n   /**  Path contains invalid escape sequence  */\n\n\n   /**  Scheme is required!  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  Path contains invalid character:   */\n\n\n   /**  Cannot set scheme from null string  */\n\n\n   /**  The scheme is not conformant. */\n\n\n   /**  Host is not a well formed address  */\n\n\n   /**  Port cannot be set when host is null  */\n\n\n   /**  Invalid port number  */\n\n\n   /**  Fragment can only be set for a generic URI  */\n\n\n   /**  Fragment cannot be set when path is null  */\n\n\n   /**  Fragment contains invalid character  */\n\n\n\n\n   /** Parser is already in use  */\n\n\n   /** Parser is already in use  */\n\n\n   /** Self-causation not permitted  */\n\n\n   /** src attribute not yet supported for  */\n\n    { ER_COULD_NOT_FIND_EXTERN_SCRIPT,\n         \"\\u65e0\\u6cd5\\u62b5\\u8fbe {0} \\u4e0a\\u7684\\u5916\\u90e8\\u811a\\u672c\"},\n\n  /** The resource [] could not be found     */\n\n    { ER_RESOURCE_COULD_NOT_FIND,\n        \"\\u627e\\u4e0d\\u5230\\u8d44\\u6e90 [ {0} ]\\u3002\\n {1}\"},\n\n   /** output property not recognized:  */\n\n    { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED,\n        \"\\u6ca1\\u6709\\u8bc6\\u522b\\u8f93\\u51fa\\u5c5e\\u6027\\uff1a{0}\"},\n\n   /** Userinfo may not be specified if host is not specified   */\n\n\n   /** Port may not be specified if host is not specified   */\n\n\n   /** Query string cannot be specified in path and query string   */\n\n\n   /** Fragment cannot be specified in both the path and fragment   */\n\n\n   /** Cannot initialize URI with empty parameters   */\n\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMLITRSLT,\n        \"\\u521b\\u5efa ElemLiteralResult \\u5b9e\\u4f8b\\u5931\\u8d25\"},\n\n\n   /** Priority value does not contain a parsable number   */\n\n    { ER_VALUE_SHOULD_BE_NUMBER,\n        \"{0} \\u7684\\u503c\\u5e94\\u5f53\\u5305\\u542b\\u53ef\\u8fdb\\u884c\\u5206\\u6790\\u7684\\u6570\\u503c\"},\n\n   /**  Value for {0} should equal 'yes' or 'no'   */\n\n    { ER_VALUE_SHOULD_EQUAL,\n        \"{0} \\u7684\\u503c\\u5e94\\u5f53\\u7b49\\u4e8e yes \\u6216 no\"},\n\n   /**  Failed calling {0} method   */\n\n    { ER_FAILED_CALLING_METHOD,\n        \"\\u8c03\\u7528 {0} \\u65b9\\u6cd5\\u5931\\u8d25\"},\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMTMPL,\n        \"\\u521b\\u5efa ElemTemplateElement \\u5b9e\\u4f8b\\u5931\\u8d25\"},\n\n   /**  Characters are not allowed at this point in the document   */\n\n    { ER_CHARS_NOT_ALLOWED,\n        \"\\u6587\\u6863\\u4e2d\\u6b64\\u65f6\\u4e0d\\u5141\\u8bb8\\u5b58\\u5728\\u5b57\\u7b26\"},\n\n  /**  attribute is not allowed on the element   */\n    { ER_ATTR_NOT_ALLOWED,\n        \"{1} \\u5143\\u7d20\\u4e0a\\u4e0d\\u5141\\u8bb8\\u5b58\\u5728\\u201c{0}\\u201d\\u5c5e\\u6027\\uff01\"},\n\n  /**  Method not yet supported    */\n\n\n  /**  Bad value    */\n\n    { ER_BAD_VALUE,\n     \"{0} \\u9519\\u8bef\\u503c {1}\"},\n\n  /**  attribute value not found   */\n\n    { ER_ATTRIB_VALUE_NOT_FOUND,\n     \"\\u627e\\u4e0d\\u5230 {0} \\u5c5e\\u6027\\u503c\"},\n\n  /**  attribute value not recognized    */\n\n    { ER_ATTRIB_VALUE_NOT_RECOGNIZED,\n     \"\\u6ca1\\u6709\\u8bc6\\u522b\\u51fa {0} \\u5c5e\\u6027\\u503c\"},\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NULL_URI_NAMESPACE,\n     \"\\u6b63\\u5728\\u8bd5\\u56fe\\u4ee5\\u7a7a\\u7684 URI \\u751f\\u6210\\u540d\\u79f0\\u7a7a\\u95f4\\u524d\\u7f00\"},\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NUMBER_TOO_BIG,\n     \"\\u6b63\\u5728\\u8bd5\\u56fe\\u683c\\u5f0f\\u5316\\u5927\\u4e8e\\u6700\\u5927\\u957f\\u6574\\u6570\\u7684\\u6570\\u503c\"},\n\n\n\n    { ER_CANNOT_FIND_SAX1_DRIVER,\n     \"\\u627e\\u4e0d\\u5230 SAX1 \\u9a71\\u52a8\\u7a0b\\u5e8f\\u7c7b {0}\"},\n\n\n    { ER_SAX1_DRIVER_NOT_LOADED,\n     \"\\u627e\\u5230\\u4e86 SAX1 \\u9a71\\u52a8\\u7a0b\\u5e8f\\u7c7b {0}\\uff0c\\u4f46\\u65e0\\u6cd5\\u88c5\\u5165\\u5b83\"},\n\n\n    { ER_SAX1_DRIVER_NOT_INSTANTIATED,\n     \"\\u88c5\\u5165\\u4e86 SAX1 \\u9a71\\u52a8\\u7a0b\\u5e8f\\u7c7b {0}\\uff0c\\u4f46\\u65e0\\u6cd5\\u5c06\\u5b83\\u5b9e\\u4f8b\\u5316\"},\n\n\n\n    { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER,\n     \"SAX1 \\u9a71\\u52a8\\u7a0b\\u5e8f\\u7c7b {0} \\u4e0d\\u5b9e\\u73b0 org.xml.sax.Parser\"},\n\n\n    { ER_PARSER_PROPERTY_NOT_SPECIFIED,\n     \"\\u6ca1\\u6709\\u6307\\u5b9a\\u7cfb\\u7edf\\u5c5e\\u6027 org.xml.sax.parser\"},\n\n\n    { ER_PARSER_ARG_CANNOT_BE_NULL,\n     \"\\u89e3\\u6790\\u5668\\u81ea\\u53d8\\u91cf\\u4e0d\\u5f97\\u4e3a\\u7a7a\"},\n\n\n\n    { ER_FEATURE,\n     \"\\u529f\\u80fd\\u90e8\\u4ef6\\uff1a{0}\"},\n\n\n\n    { ER_PROPERTY,\n     \"\\u5c5e\\u6027\\uff1a{0}\"},\n\n\n    { ER_NULL_ENTITY_RESOLVER,\n     \"\\u5b9e\\u4f53\\u89e3\\u6790\\u7a0b\\u5e8f\\u4e3a\\u7a7a\"},\n\n\n    { ER_NULL_DTD_HANDLER,\n     \"DTD \\u5904\\u7406\\u7a0b\\u5e8f\\u4e3a\\u7a7a\"},\n\n    { ER_NO_DRIVER_NAME_SPECIFIED,\n     \"\\u672a\\u6307\\u5b9a\\u9a71\\u52a8\\u7a0b\\u5e8f\\u540d\\u79f0\\uff01\"},\n\n\n    { ER_NO_URL_SPECIFIED,\n     \"\\u672a\\u6307\\u5b9a URL\\uff01\"},\n\n\n    { ER_POOLSIZE_LESS_THAN_ONE,\n     \"\\u6c60\\u5927\\u5c0f\\u5c0f\\u4e8e 1\\uff01\"},\n\n\n    { ER_INVALID_DRIVER_NAME,\n     \"\\u6307\\u5b9a\\u4e86\\u65e0\\u6548\\u7684\\u9a71\\u52a8\\u7a0b\\u5e8f\\u540d\\u79f0\\uff01\"},\n\n\n\n    { ER_ERRORLISTENER,\n     \"ErrorListener\"},\n\n\n    { ER_ASSERT_NO_TEMPLATE_PARENT,\n     \"\\u7a0b\\u5e8f\\u5458\\u7684\\u9519\\u8bef\\uff01expr \\u6ca1\\u6709 ElemTemplateElement \\u7236\\u4ee3\\uff01\"},\n\n\n    { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR,\n     \"\\u7a0b\\u5e8f\\u5458\\u5728 RundundentExprEliminator \\u4e2d\\u7684\\u65ad\\u8a00\\uff1a{0}\"},\n\n\n\n    { ER_NOT_ALLOWED_IN_POSITION,\n     \"\\u6837\\u5f0f\\u8868\\u4e2d\\u5728\\u6b64\\u4f4d\\u7f6e\\u4e0d\\u5141\\u8bb8 {0}\\uff01\"},\n\n    { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,\n     \"\\u6837\\u5f0f\\u8868\\u4e2d\\u5728\\u6b64\\u4f4d\\u7f6e\\u4e0d\\u5141\\u8bb8\\u975e\\u7a7a\\u767d\\u7a7a\\u95f4\\u7684\\u6587\\u672c\\uff01\"},\n\n    { INVALID_TCHAR,\n     \"\\u7528\\u4e8e CHAR \\u5c5e\\u6027 {0} \\u7684\\u503c {1} \\u975e\\u6cd5\\u3002\\u7c7b\\u578b CHAR \\u7684\\u5c5e\\u6027\\u5fc5\\u987b\\u53ea\\u6709\\u4e00\\u4e2a\\u5b57\\u7b26\\uff01\"},\n\n\n\n\n    { INVALID_QNAME,\n     \"\\u7528\\u4e8e QNAME \\u5c5e\\u6027 {0} \\u7684\\u503c {1} \\u975e\\u6cd5\"},\n\n\n    { INVALID_ENUM,\n     \"\\u7528\\u4e8e ENUM \\u5c5e\\u6027 {0} \\u7684\\u503c {1} \\u975e\\u6cd5\\u3002\\u6709\\u6548\\u7684\\u503c\\u662f\\uff1a{2}\\u3002\"},\n\n\n    { INVALID_NMTOKEN,\n     \"\\u7528\\u4e8e NMTOKEN \\u5c5e\\u6027 {0} \\u7684\\u503c {1} \\u975e\\u6cd5\"},\n\n\n    { INVALID_NCNAME,\n     \"\\u7528\\u4e8e NCNAME \\u5c5e\\u6027 {0} \\u7684\\u503c {1} \\u975e\\u6cd5\"},\n\n\n\n    { INVALID_BOOLEAN,\n     \"\\u7528\\u4e8e boolean \\u5c5e\\u6027 {0} \\u7684\\u503c {1} \\u975e\\u6cd5\"},\n\n\n     { INVALID_NUMBER,\n     \"\\u7528\\u4e8e number \\u5c5e\\u6027 {0} \\u7684\\u503c {1} \\u975e\\u6cd5\"},\n\n\n\n\n    { ER_ARG_LITERAL,\n     \"\\u5339\\u914d\\u6a21\\u5f0f\\u4e2d {0} \\u7684\\u81ea\\u53d8\\u91cf\\u5fc5\\u987b\\u662f\\u6587\\u5b57\\u3002\"},\n\n\n    { ER_DUPLICATE_GLOBAL_VAR,\n     \"\\u5168\\u5c40\\u53d8\\u91cf\\u8bf4\\u660e\\u91cd\\u590d\\u3002\"},\n\n\n\n    { ER_DUPLICATE_VAR,\n     \"\\u53d8\\u91cf\\u8bf4\\u660e\\u91cd\\u590d\\u3002\"},\n\n\n    { ER_TEMPLATE_NAME_MATCH,\n     \"xsl:template \\u5fc5\\u987b\\u6709\\u4e00\\u4e2a name \\u6216 match \\u5c5e\\u6027\\uff08\\u6216\\u4e24\\u8005\\u517c\\u6709\\uff09\"},\n\n\n    { ER_INVALID_PREFIX,\n     \"exclude-result-prefixes \\u4e2d\\u7684\\u524d\\u7f00\\u65e0\\u6548\\uff1a{0}\"},\n\n\n    { ER_NO_ATTRIB_SET,\n     \"\\u540d\\u4e3a {0} \\u7684\\u5c5e\\u6027\\u96c6\\u4e0d\\u5b58\\u5728\"},\n\n\n\n\n\n\n  /** WG_FOUND_CURLYBRACE          */\n    { WG_FOUND_CURLYBRACE,\n      \"\\u627e\\u5230\\u201c}\\u201d\\uff0c\\u4f46\\u6ca1\\u6709\\u6253\\u5f00\\u5c5e\\u6027\\u6a21\\u677f\\uff01\"},\n\n  /** WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR          */\n\n    { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,\n      \"\\u8b66\\u544a\\uff1acount \\u5c5e\\u6027\\u4e0e xsl:number \\u4e2d\\u7684\\u4e0a\\u7ea7\\u4e0d\\u5339\\u914d\\uff01\\u76ee\\u6807 = {0}\"},\n\n  /** WG_EXPR_ATTRIB_CHANGED_TO_SELECT          */\n\n    { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,\n      \"\\u65e7\\u8bed\\u6cd5\\uff1a\\u201cexpr\\u201d\\u5c5e\\u6027\\u7684\\u540d\\u79f0\\u5df2\\u7ecf\\u66f4\\u6539\\u4e3a\\u201cselect\\u201d\\u3002\"},\n\n  /** WG_NO_LOCALE_IN_FORMATNUMBER          */\n\n    { WG_NO_LOCALE_IN_FORMATNUMBER,\n      \"Xalan \\u5728 format-number \\u51fd\\u6570\\u4e2d\\u5c1a\\u672a\\u5904\\u7406\\u8bed\\u8a00\\u73af\\u5883\\u540d\\u3002\"},\n\n  /** WG_LOCALE_NOT_FOUND          */\n\n    { WG_LOCALE_NOT_FOUND,\n      \"\\u8b66\\u544a\\uff1a\\u627e\\u4e0d\\u5230 xml:lang={0} \\u7684\\u8bed\\u8a00\\u73af\\u5883\"},\n\n  /** WG_CANNOT_MAKE_URL_FROM          */\n\n    { WG_CANNOT_MAKE_URL_FROM,\n      \"\\u65e0\\u6cd5\\u4ece {0} \\u751f\\u6210 URL\"},\n\n  /** WG_CANNOT_LOAD_REQUESTED_DOC          */\n\n    { WG_CANNOT_LOAD_REQUESTED_DOC,\n      \"\\u65e0\\u6cd5\\u88c5\\u5165\\u8bf7\\u6c42\\u7684\\u6587\\u6863\\uff1a{0}\"},\n\n  /** WG_CANNOT_FIND_COLLATOR          */\n    { WG_CANNOT_FIND_COLLATOR,\n      \"\\u627e\\u4e0d\\u5230 <sort xml:lang={0} \\u7684\\u6574\\u7406\\u5668\"},\n\n  /** WG_FUNCTIONS_SHOULD_USE_URL          */\n\n    { WG_FUNCTIONS_SHOULD_USE_URL,\n      \"\\u65e7\\u8bed\\u6cd5\\uff1a\\u51fd\\u6570\\u6307\\u4ee4\\u5e94\\u5f53\\u4f7f\\u7528 {0} \\u7684 URL\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_UTF8          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,\n      \"\\u4e0d\\u652f\\u6301\\u7f16\\u7801\\uff1a{0}\\uff0c\\u6b63\\u5728\\u4f7f\\u7528 UTF-8\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_JAVA          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,\n      \"\\u4e0d\\u652f\\u6301\\u7f16\\u7801\\uff1a{0}\\uff0c\\u6b63\\u5728\\u4f7f\\u7528 Java {1}\"},\n\n  /** WG_SPECIFICITY_CONFLICTS          */\n\n    { WG_SPECIFICITY_CONFLICTS,\n      \"\\u53d1\\u73b0\\u7279\\u6027\\u51b2\\u7a81\\uff1a\\u5c06\\u4f7f\\u7528\\u6837\\u5f0f\\u8868\\u4e2d\\u6700\\u540e\\u627e\\u5230\\u7684 {0}\\u3002\"},\n\n  /** WG_PARSING_AND_PREPARING          */\n\n    { WG_PARSING_AND_PREPARING,\n      \"========= \\u5206\\u6790\\u548c\\u51c6\\u5907 {0} ==========\"},\n\n  /** WG_ATTR_TEMPLATE          */\n\n    { WG_ATTR_TEMPLATE,\n     \"Attr \\u6a21\\u677f\\uff0c{0}\"},\n\n  /** WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE          */\n\n    { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,\n      \"xsl:strip-space \\u548c xsl:preserve-space \\u4e4b\\u95f4\\u7684\\u5339\\u914d\\u51b2\\u7a81\"},\n\n  /** WG_ATTRIB_NOT_HANDLED          */\n\n    { WG_ATTRIB_NOT_HANDLED,\n      \"Xalan \\u5c1a\\u672a\\u5904\\u7406 {0} \\u5c5e\\u6027\\uff01\"},\n\n  /** WG_NO_DECIMALFORMAT_DECLARATION          */\n\n    { WG_NO_DECIMALFORMAT_DECLARATION,\n      \"\\u627e\\u4e0d\\u5230\\u5341\\u8fdb\\u5236\\u683c\\u5f0f\\u7684\\u8bf4\\u660e\\uff1a{0}\"},\n\n  /** WG_OLD_XSLT_NS          */\n\n    { WG_OLD_XSLT_NS,\n     \"XSLT \\u540d\\u79f0\\u7a7a\\u95f4\\u4e22\\u5931\\u6216\\u4e0d\\u6b63\\u786e\\u3002\"},\n\n  /** WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED          */\n\n    { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,\n      \"\\u53ea\\u5141\\u8bb8\\u4e00\\u4e2a\\u7f3a\\u7701\\u7684 xsl:decimal-format \\u8bf4\\u660e\\u3002\"},\n\n  /** WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE          */\n\n    { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,\n      \"xsl:decimal-format \\u540d\\u79f0\\u5fc5\\u987b\\u552f\\u4e00\\u3002\\u540d\\u79f0\\u201c{0}\\u201d\\u6709\\u91cd\\u590d\\u3002\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE          */\n\n    { WG_ILLEGAL_ATTRIBUTE,\n      \"{0} \\u6709\\u4e00\\u4e2a\\u975e\\u6cd5\\u5c5e\\u6027\\uff1a{1}\"},\n\n  /** WG_COULD_NOT_RESOLVE_PREFIX          */\n\n    { WG_COULD_NOT_RESOLVE_PREFIX,\n      \"\\u65e0\\u6cd5\\u89e3\\u6790\\u540d\\u79f0\\u7a7a\\u95f4\\u524d\\u7f00\\uff1a{0}\\u3002\\u5c06\\u5ffd\\u7565\\u8282\\u70b9\\u3002\"},\n\n  /** WG_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n    { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"xsl:stylesheet \\u9700\\u8981\\u201cversion\\u201d\\u5c5e\\u6027\\uff01\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_NAME          */\n\n    { WG_ILLEGAL_ATTRIBUTE_NAME,\n      \"\\u975e\\u6cd5\\u5c5e\\u6027\\u540d\\u79f0\\uff1a{0}\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_VALUE          */\n    { WG_ILLEGAL_ATTRIBUTE_VALUE,\n      \"\\u7528\\u4e8e\\u5c5e\\u6027 {0} \\u7684\\u503c\\u975e\\u6cd5\\uff1a{1}\"},\n\n  /** WG_EMPTY_SECOND_ARG          */\n\n    { WG_EMPTY_SECOND_ARG,\n      \"\\u4ece\\u6587\\u6863\\u51fd\\u6570\\u7684\\u7b2c\\u4e8c\\u81ea\\u53d8\\u91cf\\u4ea7\\u751f\\u7684\\u8282\\u70b9\\u96c6\\u662f\\u7a7a\\u7684\\u3002\\u8fd4\\u56de\\u4e00\\u4e2a\\u7a7a\\u8282\\u70b9\\u96c6\\u3002\"},\n\n\n\n\n  /** WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n    { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"xsl:processing-instruction \\u540d\\u79f0\\u7684\\u201cname\\u201d\\u5c5e\\u6027\\u7684\\u503c\\u4e0d\\u5f97\\u4e3a\\u201cxml\\u201d\"},\n\n\n  /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n    { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"xsl:processing-instruction \\u7684\\u201cname\\u201d\\u5c5e\\u6027\\u7684\\u503c\\u5fc5\\u987b\\u662f\\u6709\\u6548\\u7684 NCName\\uff1a{0}\"},\n\n\n  /** WG_ILLEGAL_ATTRIBUTE_POSITION         */\n    { WG_ILLEGAL_ATTRIBUTE_POSITION,\n      \"\\u5728\\u751f\\u6210\\u5b50\\u8282\\u70b9\\u4e4b\\u540e\\u6216\\u5728\\u751f\\u6210\\u5143\\u7d20\\u4e4b\\u524d\\u65e0\\u6cd5\\u6dfb\\u52a0\\u5c5e\\u6027 {0}\\u3002\\u5c06\\u5ffd\\u7565\\u5c5e\\u6027\\u3002\"},\n\n\n  { \"ui_language\", \"zh\"},\n  {  \"help_language\",  \"zh\" },\n  {  \"language\",  \"zh\" },\n  { \"BAD_CODE\", \"createMessage \\u7684\\u53c2\\u6570\\u8d85\\u51fa\\u8303\\u56f4\"},\n  {  \"FORMAT_FAILED\", \"\\u5728 messageFormat \\u8c03\\u7528\\u8fc7\\u7a0b\\u4e2d\\u629b\\u51fa\\u7684\\u5f02\\u5e38\"},\n  {  \"version\", \">>>>>>> Xalan \\u7248\\u672c\"},\n  {  \"version2\",  \"<<<<<<<\"},\n  {  \"yes\", \"\\u662f\"},\n  { \"line\", \"\\u884c\\u53f7\"},\n  { \"column\",\"\\u5217\\u53f7\"},\n  { \"xsldone\", \"XSLProcessor\\uff1a\\u5b8c\\u6210\"},\n\n\n  { \"xslProc_option\", \"Xalan-J \\u547d\\u4ee4\\u884c Process \\u7c7b\\u9009\\u9879\\uff1a\"},\n  { \"xslProc_option\", \"Xalan-J \\u547d\\u4ee4\\u884c Process \\u7c7b\\u9009\\u9879\\uff1a\"},\n  { \"xslProc_invalid_xsltc_option\", \"\\u5728 XSLTC \\u65b9\\u5f0f\\u4e2d\\uff0c\\u4e0d\\u652f\\u6301\\u9009\\u9879 {0}\\u3002\"},\n  { \"xslProc_invalid_xalan_option\", \"\\u9009\\u9879 {0} \\u53ea\\u80fd\\u4e0e -XSLTC \\u4e00\\u8d77\\u4f7f\\u7528\\u3002\"},\n  { \"xslProc_no_input\", \"\\u9519\\u8bef\\uff1a\\u6ca1\\u6709\\u6307\\u5b9a\\u6837\\u5f0f\\u8868\\u6216\\u8f93\\u5165 xml\\u3002\\u4e0d\\u5e26\\u4efb\\u4f55\\u9009\\u9879\\u8fd0\\u884c\\u6b64\\u547d\\u4ee4\\uff0c\\u4ee5\\u4e86\\u89e3\\u7528\\u6cd5\\u7684\\u6307\\u793a\\u4fe1\\u606f\\u3002\"},\n  { \"xslProc_common_options\", \"\\u2015 \\u516c\\u5171\\u9009\\u9879 \\u2015\"},\n  { \"xslProc_xalan_options\", \"\\u2015 Xalan \\u9009\\u9879 \\u2015\"},\n  { \"xslProc_xsltc_options\", \"\\u2015 XSLTC \\u9009\\u9879 \\u2015\"},\n  { \"xslProc_return_to_continue\", \"\\uff08\\u8bf7\\u6309 <return> \\u952e\\u7ee7\\u7eed\\uff09\"},\n\n  { \"optionXSLTC\", \"   [-XSLTC \\uff08\\u4f7f\\u7528 XSLTC \\u8f6c\\u6362\\uff09]\"},\n  { \"optionIN\", \"   [-IN inputXMLURL]\"},\n  { \"optionXSL\", \"[-XSL XSLTransformationURL]\"},\n  { \"optionOUT\",  \"[-OUT outputFileName]\"},\n  { \"optionLXCIN\", \"[-LXCIN compiledStylesheetFileNameIn]\"},\n  { \"optionLXCOUT\", \"[-LXCOUT compiledStylesheetFileNameOutOut]\"},\n  { \"optionPARSER\", \"   [-PARSER fully qualified class name of parser liaison]\"},\n  {  \"optionE\", \"[-E \\uff08\\u4e0d\\u8981\\u5c55\\u5f00\\u5b9e\\u4f53 refs\\uff09]\"},\n  {  \"optionV\",  \"[-E \\uff08\\u4e0d\\u8981\\u5c55\\u5f00\\u5b9e\\u4f53 refs\\uff09]\"},\n  {  \"optionQC\", \"[-QC \\uff08\\u4e0d\\u663e\\u793a\\u51b2\\u7a81\\u8b66\\u544a\\uff09]\"},\n  {  \"optionQ\", \"[-Q \\uff08\\u4e0d\\u663e\\u793a\\u6a21\\u5f0f\\uff09]\"},\n  {  \"optionLF\", \"[-LF \\uff08\\u8f93\\u51fa\\u65f6\\u4ec5\\u4f7f\\u7528 linefeeds {default is CR/LF}\\uff09]\"},\n  {  \"optionCR\", \"[-CR \\uff08\\u8f93\\u51fa\\u65f6\\u4ec5\\u4f7f\\u7528 carriage returns {default is CR/LF}\\uff09]\"},\n  { \"optionESCAPE\", \"[-ESCAPE \\uff08\\u8bbe\\u7f6e\\u8f6c\\u4e49\\u5b57\\u7b26{default is <>&\\\"\\'\\\\r\\\\n}\\uff09]\"},\n  { \"optionINDENT\", \"[-INDENT \\uff08\\u63a7\\u5236\\u7f29\\u8fdb\\u591a\\u5c11\\u7a7a\\u683c{default is 0}\\uff09]\"},\n  { \"optionTT\", \"[-TT \\uff08\\u5728\\u6a21\\u677f\\u88ab\\u8c03\\u7528\\u65f6\\u8ddf\\u8e2a\\u6a21\\u677f\\u3002\\uff09]\"},\n  { \"optionTG\", \"[-TG \\uff08\\u8ddf\\u8e2a\\u6bcf\\u4e00\\u4e2a\\u751f\\u6210\\u4e8b\\u4ef6\\u3002\\uff09]\"},\n  { \"optionTS\", \"[-TS \\uff08\\u8ddf\\u8e2a\\u6bcf\\u4e00\\u4e2a\\u9009\\u62e9\\u4e8b\\u4ef6\\u3002\\uff09]\"},\n  {  \"optionTTC\", \"[-TTC \\uff08\\u5728\\u5b50\\u6a21\\u677f\\u88ab\\u5904\\u7406\\u65f6\\u5bf9\\u5176\\u8fdb\\u884c\\u8ddf\\u8e2a\\u3002\\uff09]\"},\n  { \"optionTCLASS\", \"[-TCLASS \\uff08\\u8ddf\\u8e2a\\u6269\\u5c55\\u7684 TraceListener \\u7c7b\\u3002\\uff09]\"},\n  { \"optionVALIDATE\", \"[-VALIDATE \\uff08\\u8bbe\\u7f6e\\u662f\\u5426\\u51fa\\u73b0\\u9a8c\\u8bc1\\u3002\\u7f3a\\u7701\\u65f6\\u9a8c\\u8bc1\\u662f\\u5173\\u95ed\\u7684\\u3002\\uff09]\"},\n  { \"optionEDUMP\", \"[-EDUMP {optional filename} \\uff08\\u53d1\\u751f\\u9519\\u8bef\\u65f6\\u5806\\u6808\\u8f6c\\u50a8\\u3002\\uff09]\"},\n  {  \"optionXML\", \"[-XML \\uff08\\u4f7f\\u7528 XML \\u683c\\u5f0f\\u5316\\u7a0b\\u5e8f\\u5e76\\u6dfb\\u52a0 XML \\u5934\\u3002\\uff09]\"},\n  {  \"optionTEXT\", \"[-TEXT \\uff08\\u4f7f\\u7528\\u7b80\\u5355\\u6587\\u672c\\u683c\\u5f0f\\u5316\\u7a0b\\u5e8f\\u3002\\uff09]\"},\n  {  \"optionHTML\", \"[-HTML \\uff08\\u4f7f\\u7528 HTML \\u683c\\u5f0f\\u5316\\u7a0b\\u5e8f\\uff09]\"},\n  {  \"optionPARAM\", \"[-PARAM name expression \\uff08\\u8bbe\\u7f6e\\u6837\\u8bc6\\u8868\\u53c2\\u6570\\uff09]\"},\n  {  \"noParsermsg1\", \"XSL \\u5904\\u7406\\u4e0d\\u6210\\u529f\\u3002\"},\n  {  \"noParsermsg2\", \"** \\u627e\\u4e0d\\u5230\\u89e3\\u6790\\u5668 **\"},\n  { \"noParsermsg3\",  \"\\u8bf7\\u68c0\\u67e5\\u60a8\\u7684\\u7c7b\\u8def\\u5f84\\u3002\"},\n  { \"noParsermsg4\", \"\\u5982\\u679c\\u6ca1\\u6709 IBM \\u7684 XML Parser for Java\\uff0c\\u60a8\\u53ef\\u4ee5\\u4ece\\u4ee5\\u4e0b\\u4f4d\\u7f6e\\u4e0b\\u8f7d\\u5b83\\uff1a\"},\n  { \"optionURIRESOLVER\", \"[-URIRESOLVER full class name \\uff08\\u4f7f\\u7528 URIResolver \\u89e3\\u6790 URI\\uff09]\"},\n  { \"optionENTITYRESOLVER\",  \"[-ENTITYRESOLVER full class name \\uff08\\u4f7f\\u7528 EntityResolver \\u89e3\\u6790 \\u5b9e\\u4f53\\uff09]\"},\n  { \"optionCONTENTHANDLER\",  \"[-CONTENTHANDLER full class name \\uff08\\u4f7f\\u7528 ContentHandler \\u4e32\\u884c\\u5316\\u8f93\\u51fa\\uff09]\"},\n  {  \"optionLINENUMBERS\",  \"[-L use line numbers for source document]\"},\n\n\n\n  {  \"optionMEDIA\",  \"   [-MEDIA mediaType \\uff08\\u4f7f\\u7528 media \\u5c5e\\u6027\\u67e5\\u627e\\u4e0e\\u6587\\u6863\\u5173\\u8054\\u7684\\u6837\\u5f0f\\u8868\\u3002\\uff09]\"},\n  { \"optionDIAG\", \"[-DIAG \\uff08\\u663e\\u793a\\u5168\\u90e8\\u6beb\\u79d2\\u8f6c\\u6362\\u6807\\u8bb0\\u3002\\uff09]\"},\n  { \"optionRL\",  \"   [-RL recursionlimit \\uff08\\u65ad\\u8a00\\u6837\\u5f0f\\u8868\\u9012\\u5f52\\u6df1\\u5ea6\\u7684\\u6570\\u5b57\\u6781\\u9650\\u3002\\uff09]\"},\n  {   \"optionXO\",  \"[-XO [transletName] \\uff08\\u65ad\\u8a00\\u751f\\u6210 translet \\u7684\\u540d\\u5b57\\uff09]\"},\n  {  \"optionXD\", \"[-XD destinationDirectory \\uff08\\u6307\\u5b9a translet \\u76ee\\u6807\\u76ee\\u5f55\\uff09]\"},\n  {  \"optionXJ\",  \"[-XJ jarfile \\uff08\\u5c06\\u7c7b translet \\u6210\\u540d\\u5b57\\u4e3a <jarfile> jar \\u6587\\u4ef6\\u7684\\u5305\\uff09]\"},\n  {   \"optionXP\",  \"[-XP package \\uff08\\u6307\\u51fa\\u6240\\u6709\\u751f\\u6210 translet \\u7c7b\\u7684\\u5305\\u540d\\u5b57\\u524d\\u7f00\\uff09]\"},\n\n  { \"optionXN\",  \"[-XN \\uff08\\u5f00\\u542f\\u6a21\\u677f\\u5185\\u8054\\uff09]\" },\n  { \"optionXX\",  \"[-XX \\uff08\\u6253\\u5f00\\u9644\\u52a0\\u8c03\\u8bd5\\u4fe1\\u606f\\u8f93\\u51fa\\uff09]\"},\n  { \"optionXT\" , \"[-XT \\uff08\\u82e5\\u53ef\\u80fd\\u4f7f\\u7528 translet \\u8fdb\\u884c\\u8f6c\\u6362\\uff09]\"},\n  { \"diagTiming\",\"--------- {0} \\u901a\\u8fc7 {1} \\u7684\\u8f6c\\u6362\\u8017\\u65f6 {2} \\u6beb\\u79d2\" },\n  { \"recursionTooDeep\",\"\\u6a21\\u677f\\u5d4c\\u5957\\u592a\\u6df1\\u3002\\u5d4c\\u5957 = {0}\\uff0c\\u6a21\\u677f {1} {2}\" },\n  { \"nameIs\", \"\\u540d\\u79f0\\u4e3a\" },\n  { \"matchPatternIs\", \"\\u5339\\u914d\\u6a21\\u5f0f\\u4e3a\" }\n\n  };\n\n\n  /** String for use when a bad error code was encountered.    */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** String for use when formatting of the error string failed.   */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** General error string.   */\n  public static final String ERROR_STRING = \"#\\u9519\\u8bef\";\n\n  /** String to prepend to error messages.  */\n  public static final String ERROR_HEADER = \"\\u9519\\u8bef:\";\n\n  /** String to prepend to warning messages.    */\n  public static final String WARNING_HEADER = \"\\u8b66\\u544a:\";\n\n  /** String to specify the XSLT module.  */\n  public static final String XSL_HEADER = \"XSLT \";\n\n  /** String to specify the XML parser module.  */\n  public static final String XML_HEADER = \"XML \";\n\n  /** I don't think this is used any more.\n   * @deprecated  */\n  public static final String QUERY_HEADER = \"PATTERN \";\n\n  /**\n   * Get the lookup table.\n   *\n   * @return The int to message lookup table.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XSLTErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XSLTErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XSLTErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"zh\", \"CN\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"\\u65e0\\u6cd5\\u88c5\\u5165\\u4efb\\u4f55\\u8d44\\u6e90\\u5305\\u3002\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XSLTErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XSLTErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XSLTErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"zh\", \"CN\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"\\u65e0\\u6cd5\\u88c5\\u5165\\u4efb\\u4f55\\u8d44\\u6e90\\u5305\\u3002\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "jedit-4.1-4127", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/browser/FileCellRenderer.java", "language": "java", "name": "org.gjt.sp.jedit.browser.FileCellRenderer", "code": "public class FileCellRenderer extends DefaultTreeCellRenderer\n{\n\tpublic static Icon fileIcon = GUIUtilities.loadIcon(\"File.png\");\n\tpublic static Icon openFileIcon = GUIUtilities.loadIcon(\"OpenFile.png\");\n\tpublic static Icon dirIcon = GUIUtilities.loadIcon(\"Folder.png\");\n\tpublic static Icon openDirIcon = GUIUtilities.loadIcon(\"OpenFolder.png\");\n\tpublic static Icon filesystemIcon = GUIUtilities.loadIcon(\"DriveSmall.png\");\n\tpublic static Icon loadingIcon = GUIUtilities.loadIcon(\"ReloadSmall.png\");\n\n\t//{{{ FileCellRenderer constructor\n\tpublic FileCellRenderer()\n\t{\n\t\tplainFont = UIManager.getFont(\"Tree.font\");\n\t\tboldFont = plainFont.deriveFont(Font.BOLD);\n\t\tsetBorder(new EmptyBorder(1,0,1,0));\n\t} //}}}\n\n\t//{{{ getTreeCellRendererComponent() method\n\tpublic Component getTreeCellRendererComponent(JTree tree, Object value,\n\t\tboolean sel, boolean expanded, boolean leaf, int row,\n\t\tboolean focus)\n\t{\n\t\tsuper.getTreeCellRendererComponent(tree,value,sel,expanded,\n\t\t\tleaf,row,focus);\n\n\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)value;\n\t\tObject userObject = treeNode.getUserObject();\n\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t{\n\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)userObject;\n\n\t\t\tunderlined = (jEdit.getBuffer(file.path) != null);\n\n\t\t\tsetIcon(showIcons\n\t\t\t\t? getIconForFile(file,expanded)\n\t\t\t\t: null);\n\t\t\tsetFont(file.type == VFS.DirectoryEntry.FILE\n\t\t\t\t? plainFont : boldFont);\n\t\t\tsetText(file.name);\n\n\t\t\tif(!sel)\n\t\t\t{\n\t\t\t\tColor color = file.getColor();\n\n\t\t\t\tsetForeground(color == null\n\t\t\t\t\t? UIManager.getColor(\"Tree.foreground\")\n\t\t\t\t\t: color);\n\t\t\t}\n\t\t}\n\t\telse if(userObject instanceof BrowserView.LoadingPlaceholder)\n\t\t{\n\t\t\tsetIcon(showIcons ? loadingIcon : null);\n\t\t\tsetFont(plainFont);\n\t\t\tsetText(jEdit.getProperty(\"vfs.browser.tree.loading\"));\n\t\t\tunderlined = false;\n\t\t}\n\t\telse if(userObject instanceof String)\n\t\t{\n\t\t\tsetIcon(showIcons ? dirIcon : null);\n\t\t\tsetFont(boldFont);\n\t\t\tsetText((String)userObject);\n\t\t\tunderlined = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// userObject is null?\n\t\t\tsetIcon(null);\n\t\t\tsetText(null);\n\t\t}\n\n\t\treturn this;\n\t} //}}}\n\n\t//{{{ paintComponent() method\n\tpublic void paintComponent(Graphics g)\n\t{\n\t\tif(underlined)\n\t\t{\n\t\t\tFont font = getFont();\n\n\t\t\tFontMetrics fm = getFontMetrics(font);\n\t\t\tint x, y;\n\t\t\tif(getIcon() == null)\n\t\t\t{\n\t\t\t\tx = 0;\n\t\t\t\ty = fm.getAscent() + 2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = getIcon().getIconWidth() + getIconTextGap();\n\t\t\t\ty = Math.max(fm.getAscent() + 2,16);\n\t\t\t}\n\t\t\tg.setColor(getForeground());\n\t\t\tg.drawLine(x,y,x + fm.stringWidth(getText()),y);\n\t\t}\n\n\t\tsuper.paintComponent(g);\n\t} //}}}\n\n\t//{{{ getIconForFile() method\n\tpublic static Icon getIconForFile(VFS.DirectoryEntry file, boolean expanded)\n\t{\n\t\tif(file.type == VFS.DirectoryEntry.DIRECTORY)\n\t\t\treturn (expanded ? openDirIcon : dirIcon);\n\t\telse if(file.type == VFS.DirectoryEntry.FILESYSTEM)\n\t\t\treturn filesystemIcon;\n\t\telse if(jEdit.getBuffer(file.path) != null)\n\t\t\treturn openFileIcon;\n\t\telse\n\t\t\treturn fileIcon;\n\t} //}}}\n\n\t//{{{ Package-private members\n\tboolean showIcons;\n\n\t//{{{ propertiesChanged() method\n\tvoid propertiesChanged()\n\t{\n\t\tshowIcons = jEdit.getBooleanProperty(\"vfs.browser.showIcons\");\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\tprivate Font plainFont;\n\tprivate Font boldFont;\n\n\tprivate boolean underlined;", "functions": [{"function_name": "getTreeCellRendererComponent", "code": "\tpublic Component getTreeCellRendererComponent(JTree tree, Object value,\n\t\tboolean sel, boolean expanded, boolean leaf, int row,\n\t\tboolean focus)\n\t{\n\t\tsuper.getTreeCellRendererComponent(tree,value,sel,expanded,\n\t\t\tleaf,row,focus);\n\n\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)value;\n\t\tObject userObject = treeNode.getUserObject();\n\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t{\n\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)userObject;\n\n\t\t\tunderlined = (jEdit.getBuffer(file.path) != null);\n\n\t\t\tsetIcon(showIcons\n\t\t\t\t? getIconForFile(file,expanded)\n\t\t\t\t: null);\n\t\t\tsetFont(file.type == VFS.DirectoryEntry.FILE\n\t\t\t\t? plainFont : boldFont);\n\t\t\tsetText(file.name);\n\n\t\t\tif(!sel)\n\t\t\t{\n\t\t\t\tColor color = file.getColor();\n\n\t\t\t\tsetForeground(color == null\n\t\t\t\t\t? UIManager.getColor(\"Tree.foreground\")\n\t\t\t\t\t: color);\n\t\t\t}\n\t\t}\n\t\telse if(userObject instanceof BrowserView.LoadingPlaceholder)\n\t\t{\n\t\t\tsetIcon(showIcons ? loadingIcon : null);\n\t\t\tsetFont(plainFont);\n\t\t\tsetText(jEdit.getProperty(\"vfs.browser.tree.loading\"));\n\t\t\tunderlined = false;\n\t\t}\n\t\telse if(userObject instanceof String)\n\t\t{\n\t\t\tsetIcon(showIcons ? dirIcon : null);\n\t\t\tsetFont(boldFont);\n\t\t\tsetText((String)userObject);\n\t\t\tunderlined = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// userObject is null?\n\t\t\tsetIcon(null);\n\t\t\tsetText(null);\n\t\t}\n\n\t\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "VAR_DECL", "COND_EXPR", "COND_EXPR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [2, 13], [12, 14], [12, 15], [2, 16], [2, 17], [3, 18], [14, 19], [2, 20], [2, 21], [2, 22], [2, 23], [12, 24], [12, 25], [12, 26], [12, 27], [16, 28], [21, 29], [22, 30], [23, 31], [14, 32], [14, 33], [14, 34], [14, 35], [14, 36], [14, 37], [24, 38], [25, 39], [27, 40], [16, 41], [29, 42], [30, 43], [30, 44], [31, 45], [31, 46], [32, 47], [33, 48], [34, 49], [37, 50], [39, 51], [40, 52], [41, 53], [28, 54], [50, 55], [53, 56], [53, 57], [56, 58], [57, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 2], [14, 12], [15, 12], [16, 2], [17, 2], [18, 3], [19, 14], [20, 2], [21, 2], [22, 2], [23, 2], [24, 12], [25, 12], [26, 12], [27, 12], [28, 16], [29, 21], [30, 22], [31, 23], [32, 14], [33, 14], [34, 14], [35, 14], [36, 14], [37, 14], [38, 24], [39, 25], [40, 27], [41, 16], [42, 29], [43, 30], [44, 30], [45, 31], [46, 31], [47, 32], [48, 33], [49, 34], [50, 37], [51, 39], [52, 40], [53, 41], [54, 28], [55, 50], [56, 53], [57, 53], [58, 56], [59, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "paintComponent", "code": "\tpublic void paintComponent(Graphics g)\n\t{\n\t\tif(underlined)\n\t\t{\n\t\t\tFont font = getFont();\n\n\t\t\tFontMetrics fm = getFontMetrics(font);\n\t\t\tint x, y;\n\t\t\tif(getIcon() == null)\n\t\t\t{\n\t\t\t\tx = 0;\n\t\t\t\ty = fm.getAscent() + 2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = getIcon().getIconWidth() + getIconTextGap();\n\t\t\t\ty = Math.max(fm.getAscent() + 2,16);\n\t\t\t}\n\t\t\tg.setColor(getForeground());\n\t\t\tg.drawLine(x,y,x + fm.stringWidth(getText()),y);\n\t\t}\n\n\t\tsuper.paintComponent(g);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [7, 10], [8, 11], [9, 12], [9, 13], [5, 14], [6, 15], [10, 16], [3, 17], [3, 18], [3, 19], [3, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [22, 26], [22, 27], [23, 28], [23, 29], [24, 30], [24, 31], [27, 32], [27, 33], [29, 34], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 7], [11, 8], [12, 9], [13, 9], [14, 5], [15, 6], [16, 10], [17, 3], [18, 3], [19, 3], [20, 3], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [26, 22], [27, 22], [28, 23], [29, 23], [30, 24], [31, 24], [32, 27], [33, 27], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getIconForFile", "code": "\tpublic static Icon getIconForFile(VFS.DirectoryEntry file, boolean expanded)\n\t{\n\t\tif(file.type == VFS.DirectoryEntry.DIRECTORY)\n\t\t\treturn (expanded ? openDirIcon : dirIcon);\n\t\telse if(file.type == VFS.DirectoryEntry.FILESYSTEM)\n\t\t\treturn filesystemIcon;\n\t\telse if(jEdit.getBuffer(file.path) != null)\n\t\t\treturn openFileIcon;\n\t\telse\n\t\t\treturn fileIcon;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "COND_EXPR", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [5, 10], [7, 11], [7, 12], [7, 13], [13, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 5], [11, 7], [12, 7], [13, 7], [14, 13], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "propertiesChanged", "code": "\tvoid propertiesChanged()\n\t{\n\t\tshowIcons = jEdit.getBooleanProperty(\"vfs.browser.showIcons\");", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FileCellRenderer", "code": "\tpublic FileCellRenderer()\n\t{\n\t\tplainFont = UIManager.getFont(\"Tree.font\");\n\t\tboldFont = plainFont.deriveFont(Font.BOLD);\n\t\tsetBorder(new EmptyBorder(1,0,1,0));", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [4, 8], [4, 9], [4, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 4], [8, 4], [9, 4], [10, 4], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 1}
{"sample_id": "ant-1.7-1309", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/Location.java", "language": "java", "name": "org.apache.tools.ant.Location", "code": "public class Location implements Serializable {\n\n    /** Name of the file. */\n    private String fileName;\n    /** Line number within the file. */\n    private int lineNumber;\n    /** Column number within the file. */\n    private int columnNumber;\n\n    /** Location to use when one is needed but no information is available */\n    public static final Location UNKNOWN_LOCATION = new Location();\n\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n\n    /**\n     * Creates an \"unknown\" location.\n     */\n    private Location() {\n        this(null, 0, 0);\n    }\n\n    /**\n     * Creates a location consisting of a file name but no line number or\n     * column number.\n     *\n     * @param fileName The name of the file. May be <code>null</code>,\n     *                 in which case the location is equivalent to\n     *                 {@link #UNKNOWN_LOCATION UNKNOWN_LOCATION}.\n     */\n    public Location(String fileName) {\n        this(fileName, 0, 0);\n    }\n\n    /**\n     * Creates a location from the SAX locator using the system ID as\n     * the filename.\n     *\n     * @param loc Must not be <code>null</code>.\n     *\n     * @since Ant 1.6\n     */\n    public Location(Locator loc) {\n        this(loc.getSystemId(), loc.getLineNumber(), loc.getColumnNumber());\n    }\n\n    /**\n     * Creates a location consisting of a file name, line number and\n     * column number.\n     *\n     * @param fileName The name of the file. May be <code>null</code>,\n     *                 in which case the location is equivalent to\n     *                 {@link #UNKNOWN_LOCATION UNKNOWN_LOCATION}.\n     *\n     * @param lineNumber Line number within the file. Use 0 for unknown\n     *                   positions within a file.\n     * @param columnNumber Column number within the line.\n     */\n    public Location(String fileName, int lineNumber, int columnNumber) {\n        if (fileName != null && fileName.startsWith(\"file:\")) {\n            this.fileName = FILE_UTILS.fromURI(fileName);\n        } else {\n            this.fileName = fileName;\n        }\n        this.lineNumber = lineNumber;\n        this.columnNumber = columnNumber;\n    }\n\n    /**\n     * @return the filename portion of the location\n     * @since Ant 1.6\n     */\n    public String getFileName() {\n        return fileName;\n    }\n\n    /**\n     * @return the line number\n     * @since Ant 1.6\n     */\n    public int getLineNumber() {\n        return lineNumber;\n    }\n\n    /**\n     * @return the column number\n     * @since Ant 1.7\n     */\n    public int getColumnNumber() {\n        return columnNumber;\n    }\n\n    /**\n     * Returns the file name, line number, a colon and a trailing space.\n     * An error message can be appended easily. For unknown locations, an\n     * empty string is returned.\n     *\n     * @return a String of the form <code>\"fileName:lineNumber: \"</code>\n     *         if both file name and line number are known,\n     *         <code>\"fileName: \"</code> if only the file name is known,\n     *         and the empty string for unknown locations.\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer();\n\n        if (fileName != null) {\n            buf.append(fileName);\n\n            if (lineNumber != 0) {\n                buf.append(\":\");\n                buf.append(lineNumber);\n            }\n\n            buf.append(\": \");\n        }\n\n        return buf.toString();\n    }\n\n    /**\n     * Equality operation.\n     * @param other the object to compare to.\n     * @return true if the other object contains the same information\n     *              as this object.\n     * @since Ant 1.6.3\n     */\n    public boolean equals(Object other) {\n        if (this == other) {\n            return true;\n        }\n        if (other == null) {\n            return false;\n        }\n        if (!(other.getClass() == getClass())) {\n            return false;\n        }\n        return toString().equals(other.toString());\n    }\n\n    /**\n     * Hash operation.\n     * @return a hash code value for this location.\n     * @since Ant 1.6.3\n     */\n    public int hashCode() {\n        return toString().hashCode();", "functions": [{"function_name": "getFileName", "code": "    public String getFileName() {\n        return fileName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLineNumber", "code": "    public int getLineNumber() {\n        return lineNumber;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getColumnNumber", "code": "    public int getColumnNumber() {\n        return columnNumber;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer();\n\n        if (fileName != null) {\n            buf.append(fileName);\n\n            if (lineNumber != 0) {\n                buf.append(\":\");\n                buf.append(lineNumber);\n            }\n\n            buf.append(\": \");\n        }\n\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [3, 8], [2, 9], [6, 10], [2, 11], [9, 12], [10, 13], [6, 14], [6, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 3], [9, 2], [10, 6], [11, 2], [12, 9], [13, 10], [14, 6], [15, 6], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "equals", "code": "    public boolean equals(Object other) {\n        if (this == other) {\n            return true;\n        }\n        if (other == null) {\n            return false;\n        }\n        if (!(other.getClass() == getClass())) {\n            return false;\n        }\n        return toString().equals(other.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [6, 10], [2, 11], [7, 12], [7, 13], [3, 14], [8, 15], [4, 16], [10, 17], [11, 18], [14, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 6], [11, 2], [12, 7], [13, 7], [14, 3], [15, 8], [16, 4], [17, 10], [18, 11], [19, 14], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "hashCode", "code": "    public int hashCode() {\n        return toString().hashCode();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Location", "code": "    private Location() {\n        this(null, 0, 0);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Location", "code": "    public Location(String fileName) {\n        this(fileName, 0, 0);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Location", "code": "    public Location(Locator loc) {\n        this(loc.getSystemId(), loc.getLineNumber(), loc.getColumnNumber());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Location", "code": "    public Location(String fileName, int lineNumber, int columnNumber) {\n        if (fileName != null && fileName.startsWith(\"file:\")) {\n            this.fileName = FILE_UTILS.fromURI(fileName);\n        } else {\n            this.fileName = fileName;\n        }\n        this.lineNumber = lineNumber;\n        this.columnNumber = columnNumber;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [7, 9], [1, 10], [1, 11], [8, 12], [9, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 7], [10, 1], [11, 1], [12, 8], [13, 9], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "poi-2.5-5650", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/RecalcIdRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.RecalcIdRecord", "code": "public class RecalcIdRecord\n    extends Record\n{\n    public final static short sid = 0x1c1;\n    public short[]            field_1_recalcids;\n\n    private boolean isNeeded = false;\n\n    public RecalcIdRecord()\n    {\n    }\n\n    /**\n     * Constructs a RECALCID record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x13d or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public RecalcIdRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a RECALCID record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x13d or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record\n     */\n\n    public RecalcIdRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A RECALCID RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_recalcids = new short[ size / 2 ];\n        for (int k = 0; k < field_1_recalcids.length; k++)\n        {\n            field_1_recalcids[ k ] = LittleEndian.getShort(data,\n                                                        (k * 2) + offset);\n        }\n    }\n\n    /**\n     * set the recalc array.\n     * @param array of recalc id's\n     */\n\n    public void setRecalcIdArray(short [] array)\n    {\n        field_1_recalcids = array;\n    }\n\n    /**\n     * get the recalc array.\n     * @return array of recalc id's\n     */\n\n    public short [] getRecalcIdArray()\n    {\n        return field_1_recalcids;\n    }\n\n    public void setIsNeeded(boolean isNeeded) {\n        this.isNeeded = isNeeded;\n    }\n\n    public boolean isNeeded() {\n        return isNeeded;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[RECALCID]\\n\");\n        buffer.append(\"    .elements        = \").append(field_1_recalcids.length)\n            .append(\"\\n\");\n        for (int k = 0; k < field_1_recalcids.length; k++)\n        {\n            buffer.append(\"    .element_\" + k + \"       = \")\n                .append(field_1_recalcids[ k ]).append(\"\\n\");\n        }\n        buffer.append(\"[/RECALCID]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        short[] tabids     = getRecalcIdArray();\n        short   length     = ( short ) (tabids.length * 2);\n        int     byteoffset = 4;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,\n                              (( short ) length));\n\n        for (int k = 0; k < (length / 2); k++)\n        {\n            LittleEndian.putShort(data, byteoffset + offset, tabids[ k ]);\n            byteoffset += 2;\n        }\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 4 + (getRecalcIdArray().length * 2);\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A RECALCID RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_recalcids = new short[ size / 2 ];\n        for (int k = 0; k < field_1_recalcids.length; k++)\n        {\n            field_1_recalcids[ k ] = LittleEndian.getShort(data,\n                                                        (k * 2) + offset);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [1, 8], [6, 9], [7, 10], [9, 11], [10, 12], [12, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 1], [9, 6], [10, 7], [11, 9], [12, 10], [13, 12], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setRecalcIdArray", "code": "    public void setRecalcIdArray(short [] array)\n    {\n        field_1_recalcids = array;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRecalcIdArray", "code": "    public short [] getRecalcIdArray()\n    {\n        return field_1_recalcids;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIsNeeded", "code": "    public void setIsNeeded(boolean isNeeded) {\n        this.isNeeded = isNeeded;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNeeded", "code": "    public boolean isNeeded() {\n        return isNeeded;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[RECALCID]\\n\");\n        buffer.append(\"    .elements        = \").append(field_1_recalcids.length)\n            .append(\"\\n\");\n        for (int k = 0; k < field_1_recalcids.length; k++)\n        {\n            buffer.append(\"    .element_\" + k + \"       = \")\n                .append(field_1_recalcids[ k ]).append(\"\\n\");\n        }\n        buffer.append(\"[/RECALCID]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [0, 8], [5, 9], [7, 10], [7, 11], [7, 12], [8, 13], [3, 14], [2, 15], [2, 16], [11, 17], [15, 18], [15, 19], [15, 20], [18, 21], [18, 22], [19, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 0], [9, 5], [10, 7], [11, 7], [12, 7], [13, 8], [14, 3], [15, 2], [16, 2], [17, 11], [18, 15], [19, 15], [20, 15], [21, 18], [22, 18], [23, 19], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        short[] tabids     = getRecalcIdArray();\n        short   length     = ( short ) (tabids.length * 2);\n        int     byteoffset = 4;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,\n                              (( short ) length));\n\n        for (int k = 0; k < (length / 2); k++)\n        {\n            LittleEndian.putShort(data, byteoffset + offset, tabids[ k ]);\n            byteoffset += 2;\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [0, 10], [0, 11], [9, 12], [10, 13], [11, 14], [3, 15], [5, 16], [2, 17], [2, 18], [12, 19], [2, 20], [13, 21], [14, 22], [4, 23], [17, 24], [18, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 0], [11, 0], [12, 9], [13, 10], [14, 11], [15, 3], [16, 5], [17, 2], [18, 2], [19, 12], [20, 2], [21, 13], [22, 14], [23, 4], [24, 17], [25, 18], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4 + (getRecalcIdArray().length * 2);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RecalcIdRecord", "code": "    public RecalcIdRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "RecalcIdRecord", "code": "    public RecalcIdRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RecalcIdRecord", "code": "    public RecalcIdRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.7-1149", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/GZipResource.java", "language": "java", "name": "org.apache.tools.ant.types.resources.GZipResource", "code": "public class GZipResource extends CompressedResource {\n\n    /** A no-arg constructor */\n    public GZipResource() {\n    }\n\n    /**\n     * Constructor with another resource to wrap.\n     * @param other the resource to wrap.\n     */\n    public GZipResource(org.apache.tools.ant.types.ResourceCollection other) {\n        super(other);\n    }\n\n    /**\n     * Decompress on the fly using java.util.zip.GZIPInputStream.\n     * @param in the stream to wrap.\n     * @return the wrapped stream.\n     * @throws IOException if there is a problem.\n     */\n    protected InputStream wrapStream(InputStream in) throws IOException {\n        return new GZIPInputStream(in);\n    }\n\n    /**\n     * Compress on the fly using java.util.zip.GZIPOutStream.\n     * @param out the stream to wrap.\n     * @return the wrapped stream.\n     * @throws IOException if there is a problem.\n     */\n     protected OutputStream wrapStream(OutputStream out) throws IOException {\n        return new GZIPOutputStream(out);\n    }\n\n    /**\n     * Get the name of the compression method.\n     * @return the string \"GZip\".\n     */\n    protected String getCompressionName() {\n        return \"GZip\";", "functions": [{"function_name": "wrapStream", "code": "    protected InputStream wrapStream(InputStream in) throws IOException {\n        return new GZIPInputStream(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "wrapStream", "code": "     protected OutputStream wrapStream(OutputStream out) throws IOException {\n        return new GZIPOutputStream(out);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCompressionName", "code": "    protected String getCompressionName() {\n        return \"GZip\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "GZipResource", "code": "    public GZipResource() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "GZipResource", "code": "    public GZipResource(org.apache.tools.ant.types.ResourceCollection other) {\n        super(other);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.1-3977", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/BSHBlock.java", "language": "java", "name": "bsh.BSHBlock", "code": "class BSHBlock extends SimpleNode\n{\n\tBSHBlock(int id) { super(id); }\n\n\tpublic Object eval( CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError\n\t{\n\t\treturn eval( callstack, interpreter, false );\n\t}\n\n\t/**\n\t\t@param overrideNamespace if set to true the block will be executed\n\t\tin the current namespace (not a subordinate one).\n\t\t<p>\n\t\tIf true *no* new BlockNamespace will be swapped onto the stack and \n\t\tthe eval will happen in the current\n\t\ttop namespace.  This is used by BshMethod, TryStatement, etc.  \n\t\twhich must intialize the block first and also for those that perform \n\t\tmultiple passes in the same block.\n\t*/\n\tpublic Object eval( \n\t\tCallStack callstack, Interpreter interpreter, \n\t\tboolean overrideNamespace ) \n\t\tthrows EvalError\n\t{\n\t\tObject ret = Primitive.VOID;\n\t\tint statements = jjtGetNumChildren();\n\n\t\tNameSpace enclosingNameSpace = null;\n\t\tif ( !overrideNamespace ) \n\t\t{\n\t\t\tenclosingNameSpace= callstack.top();\n\t\t\tBlockNameSpace bodyNameSpace = \n\t\t\t\tnew BlockNameSpace( enclosingNameSpace );\n\n/*\n// Experiment - clone callstack before swap for thread safety\ncallstack = (CallStack)callstack.clone();\n*/\n\n\t\t\tcallstack.swap( bodyNameSpace );\n\t\t}\n\n\t\ttry {\n\t\t\tfor(int i=0; i<statements; i++)\n\t\t\t{\n\t\t\t\tSimpleNode node = ((SimpleNode)jjtGetChild(i));\n\t\t\t\tret = node.eval( callstack, interpreter );\n\n\t\t\t\t// some statement or embedded block evaluated a return statement\n\t\t\t\tif (ret instanceof ReturnControl)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} finally {\n\t\t\t// make sure we put the namespace back when we leave.\n\t\t\tif ( !overrideNamespace ) \n\t\t\t\tcallstack.swap( enclosingNameSpace );\n\t\t}\n\n\t\treturn ret;", "functions": [{"function_name": "eval", "code": "\tpublic Object eval( CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError\n\t{\n\t\treturn eval( callstack, interpreter, false );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "eval", "code": "\tpublic Object eval( \n\t\tCallStack callstack, Interpreter interpreter, \n\t\tboolean overrideNamespace ) \n\t\tthrows EvalError\n\t{\n\t\tObject ret = Primitive.VOID;\n\t\tint statements = jjtGetNumChildren();\n\n\t\tNameSpace enclosingNameSpace = null;\n\t\tif ( !overrideNamespace ) \n\t\t{\n\t\t\tenclosingNameSpace= callstack.top();\n\t\t\tBlockNameSpace bodyNameSpace = \n\t\t\t\tnew BlockNameSpace( enclosingNameSpace );\n\n/*\n// Experiment - clone callstack before swap for thread safety\ncallstack = (CallStack)callstack.clone();\n*/\n\n\t\t\tcallstack.swap( bodyNameSpace );\n\t\t}\n\n\t\ttry {\n\t\t\tfor(int i=0; i<statements; i++)\n\t\t\t{\n\t\t\t\tSimpleNode node = ((SimpleNode)jjtGetChild(i));\n\t\t\t\tret = node.eval( callstack, interpreter );\n\n\t\t\t\t// some statement or embedded block evaluated a return statement\n\t\t\t\tif (ret instanceof ReturnControl)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} finally {\n\t\t\t// make sure we put the namespace back when we leave.\n\t\t\tif ( !overrideNamespace ) \n\t\t\t\tcallstack.swap( enclosingNameSpace );\n\t\t}\n\n\t\treturn ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "LOOP", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [11, 12], [3, 13], [4, 14], [5, 15], [10, 16], [11, 17], [11, 18], [3, 19], [3, 20], [17, 21], [17, 22], [11, 23], [11, 24], [13, 25], [20, 26], [23, 27], [18, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 11], [13, 3], [14, 4], [15, 5], [16, 10], [17, 11], [18, 11], [19, 3], [20, 3], [21, 17], [22, 17], [23, 11], [24, 11], [25, 13], [26, 20], [27, 23], [28, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "BSHBlock", "code": "\tBSHBlock(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-3.2-3691", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/options/ContextOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.ContextOptionPane", "code": "public class ContextOptionPane extends AbstractOptionPane\n{\n\tpublic ContextOptionPane()\n\t{\n\t\tsuper(\"context\");\n\t}\n\n\t// protected members\n\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\n\t\tJLabel caption = new JLabel(jEdit.getProperty(\n\t\t\t\"options.context.caption\"));\n\t\tadd(BorderLayout.NORTH,caption);\n\n\t\tString contextMenu = jEdit.getProperty(\"view.context\");\n\t\tStringTokenizer st = new StringTokenizer(contextMenu);\n\t\tlistModel = new DefaultListModel();\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString actionName = (String)st.nextToken();\n\t\t\tString label = getActionLabel(actionName);\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\t\t\tlistModel.addElement(new MenuItem(actionName,label));\n\t\t}\n\t\tlist = new JList(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.addListSelectionListener(new ListHandler());\n\n\t\tadd(BorderLayout.CENTER,new JScrollPane(list));\n\n\t\tJPanel buttons = new JPanel();\n\t\tbuttons.setBorder(new EmptyBorder(3,0,0,0));\n\t\tbuttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));\n\t\tbuttons.add(Box.createGlue());\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tadd = new JButton(jEdit.getProperty(\"options.context.add\"));\n\t\tadd.addActionListener(actionHandler);\n\t\tbuttons.add(add);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tremove = new JButton(jEdit.getProperty(\"options.context.remove\"));\n\t\tremove.addActionListener(actionHandler);\n\t\tbuttons.add(remove);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveUp = new JButton(jEdit.getProperty(\"options.context.moveUp\"));\n\t\tmoveUp.addActionListener(actionHandler);\n\t\tbuttons.add(moveUp);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveDown = new JButton(jEdit.getProperty(\"options.context.moveDown\"));\n\t\tmoveDown.addActionListener(actionHandler);\n\t\tbuttons.add(moveDown);\n\t\tbuttons.add(Box.createGlue());\n\n\t\tupdateButtons();\n\t\tadd(BorderLayout.SOUTH,buttons);\n\n\t\t// create actions list\n\t\tEditAction[] actions = jEdit.getActions();\n\t\tVector vector = new Vector(actions.length);\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tString actionName = actions[i].getName();\n\t\t\tString label = jEdit.getProperty(actionName + \".label\");\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\t\t\tvector.addElement(new MenuItem(actionName,label));\n\t\t}\n\t\tMiscUtilities.quicksort(vector,new MenuItemCompare());\n\n\t\tactionsList = new DefaultListModel();\n\t\tactionsList.ensureCapacity(vector.size());\n\t\tfor(int i = 0; i < vector.size(); i++)\n\t\t{\n\t\t\tactionsList.addElement(vector.elementAt(i));\n\t\t}\n\t}\n\n\tclass MenuItemCompare implements MiscUtilities.Compare\n\t{\n\t\tpublic int compare(Object obj1, Object obj2)\n\t\t{\n\t\t\treturn ((MenuItem)obj1).label.toLowerCase().compareTo(\n\t\t\t\t((MenuItem)obj2).label.toLowerCase());\n\t\t}\n\t}\n\n\tprotected void _save()\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor(int i = 0; i < listModel.getSize(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(' ');\n\t\t\tbuf.append(((MenuItem)listModel.elementAt(i)).actionName);\n\t\t}\n\t\tjEdit.setProperty(\"view.context\",buf.toString());\n\t}\n\n\t// package-private members\n\tstatic String getActionLabel(String actionName)\n\t{\n\t\tif(actionName.equals(\"-\"))\n\t\t\treturn \"-\";\n\t\telse\n\t\t{\n\t\t\tif(actionName.startsWith(\"play-macro@\"))\n\t\t\t{\n\t\t\t\tint index = Math.max(11,actionName\n\t\t\t\t\t.indexOf('/') + 1);\n\t\t\t\treturn actionName.substring(index)\n\t\t\t\t\t.replace('_',' ');\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn jEdit.getProperty(actionName + \".label\");\n\t\t}\n\t}\n\n\t// private members\n\tprivate DefaultListModel listModel;\n\tprivate JList list;\n\tprivate JButton add;\n\tprivate JButton remove;\n\tprivate JButton moveUp, moveDown;\n\n\tprivate DefaultListModel actionsList;\n\n\tprivate void updateButtons()\n\t{\n\t\tint index = list.getSelectedIndex();\n\t\tremove.setEnabled(index != -1 && listModel.getSize() != 0);\n\t\tmoveUp.setEnabled(index > 0);\n\t\tmoveDown.setEnabled(index != -1 && index != listModel.getSize() - 1);\n\t}\n\n\tstatic class MenuItem\n\t{\n\t\tString actionName;\n\t\tString label;\n\n\t\tMenuItem(String actionName, String label)\n\t\t{\n\t\t\tthis.actionName = actionName;\n\t\t\tif(label.equals(\"-\"))\n\t\t\t\tthis.label = label;\n\t\t\telse\n\t\t\t\tthis.label = GUIUtilities.prettifyMenuLabel(label);\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn label;\n\t\t}\n\t}\n\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\n\t\t\tif(source == add)\n\t\t\t{\n\t\t\t\tContextAddDialog dialog = new ContextAddDialog(\n\t\t\t\t\tContextOptionPane.this,\n\t\t\t\t\tactionsList);\n\t\t\t\tMenuItem selection = dialog.getSelection();\n\t\t\t\tif(selection == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tif(index == -1)\n\t\t\t\t\tindex = listModel.getSize();\n\t\t\t\telse\n\t\t\t\t\tindex++;\n\n\t\t\t\tlistModel.insertElementAt(selection,index);\n\t\t\t\tlist.setSelectedIndex(index);\n\t\t\t}\n\t\t\telse if(source == remove)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tupdateButtons();\n\t\t\t}\n\t\t\telse if(source == moveUp)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tObject selected = list.getSelectedValue();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tlistModel.insertElementAt(selected,index-1);\n\t\t\t\tlist.setSelectedIndex(index-1);\n\t\t\t}\n\t\t\telse if(source == moveDown)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tObject selected = list.getSelectedValue();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tlistModel.insertElementAt(selected,index+1);\n\t\t\t\tlist.setSelectedIndex(index+1);\n\t\t\t}\n\t\t}\n\t}\n\n\tclass ListHandler implements ListSelectionListener\n\t{\n\t\tpublic void valueChanged(ListSelectionEvent evt)\n\t\t{\n\t\t\tupdateButtons();", "functions": [{"function_name": "_init", "code": "\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\n\t\tJLabel caption = new JLabel(jEdit.getProperty(\n\t\t\t\"options.context.caption\"));\n\t\tadd(BorderLayout.NORTH,caption);\n\n\t\tString contextMenu = jEdit.getProperty(\"view.context\");\n\t\tStringTokenizer st = new StringTokenizer(contextMenu);\n\t\tlistModel = new DefaultListModel();\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString actionName = (String)st.nextToken();\n\t\t\tString label = getActionLabel(actionName);\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\t\t\tlistModel.addElement(new MenuItem(actionName,label));\n\t\t}\n\t\tlist = new JList(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.addListSelectionListener(new ListHandler());\n\n\t\tadd(BorderLayout.CENTER,new JScrollPane(list));\n\n\t\tJPanel buttons = new JPanel();\n\t\tbuttons.setBorder(new EmptyBorder(3,0,0,0));\n\t\tbuttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));\n\t\tbuttons.add(Box.createGlue());\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tadd = new JButton(jEdit.getProperty(\"options.context.add\"));\n\t\tadd.addActionListener(actionHandler);\n\t\tbuttons.add(add);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tremove = new JButton(jEdit.getProperty(\"options.context.remove\"));\n\t\tremove.addActionListener(actionHandler);\n\t\tbuttons.add(remove);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveUp = new JButton(jEdit.getProperty(\"options.context.moveUp\"));\n\t\tmoveUp.addActionListener(actionHandler);\n\t\tbuttons.add(moveUp);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveDown = new JButton(jEdit.getProperty(\"options.context.moveDown\"));\n\t\tmoveDown.addActionListener(actionHandler);\n\t\tbuttons.add(moveDown);\n\t\tbuttons.add(Box.createGlue());\n\n\t\tupdateButtons();\n\t\tadd(BorderLayout.SOUTH,buttons);\n\n\t\t// create actions list\n\t\tEditAction[] actions = jEdit.getActions();\n\t\tVector vector = new Vector(actions.length);\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tString actionName = actions[i].getName();\n\t\t\tString label = jEdit.getProperty(actionName + \".label\");\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\t\t\tvector.addElement(new MenuItem(actionName,label));\n\t\t}\n\t\tMiscUtilities.quicksort(vector,new MenuItemCompare());\n\n\t\tactionsList = new DefaultListModel();\n\t\tactionsList.ensureCapacity(vector.size());\n\t\tfor(int i = 0; i < vector.size(); i++)\n\t\t{\n\t\t\tactionsList.addElement(vector.elementAt(i));", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [0, 13], [0, 14], [2, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [7, 41], [0, 42], [0, 43], [0, 44], [11, 45], [12, 46], [13, 47], [14, 48], [2, 49], [2, 50], [2, 51], [3, 52], [4, 53], [18, 54], [21, 55], [22, 56], [25, 57], [26, 58], [29, 59], [30, 60], [33, 61], [5, 62], [34, 63], [35, 64], [36, 65], [6, 66], [37, 67], [38, 68], [40, 69], [7, 70], [7, 71], [7, 72], [42, 73], [8, 74], [9, 75], [10, 76], [44, 77], [1, 78], [1, 79], [2, 80], [49, 81], [49, 82], [2, 83], [55, 84], [56, 85], [57, 86], [58, 87], [59, 88], [60, 89], [61, 90], [65, 91], [65, 92], [65, 93], [65, 94], [7, 95], [70, 96], [70, 97], [75, 98], [76, 99], [78, 100], [80, 101], [82, 102], [50, 103], [84, 104], [86, 105], [88, 106], [90, 107], [95, 108], [97, 109], [71, 110], [99, 111], [103, 112], [51, 113], [72, 114], [112, 115], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 0], [14, 0], [15, 2], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 7], [42, 0], [43, 0], [44, 0], [45, 11], [46, 12], [47, 13], [48, 14], [49, 2], [50, 2], [51, 2], [52, 3], [53, 4], [54, 18], [55, 21], [56, 22], [57, 25], [58, 26], [59, 29], [60, 30], [61, 33], [62, 5], [63, 34], [64, 35], [65, 36], [66, 6], [67, 37], [68, 38], [69, 40], [70, 7], [71, 7], [72, 7], [73, 42], [74, 8], [75, 9], [76, 10], [77, 44], [78, 1], [79, 1], [80, 2], [81, 49], [82, 49], [83, 2], [84, 55], [85, 56], [86, 57], [87, 58], [88, 59], [89, 60], [90, 61], [91, 65], [92, 65], [93, 65], [94, 65], [95, 7], [96, 70], [97, 70], [98, 75], [99, 76], [100, 78], [101, 80], [102, 82], [103, 50], [104, 84], [105, 86], [106, 88], [107, 90], [108, 95], [109, 97], [110, 71], [111, 99], [112, 103], [113, 51], [114, 72], [115, 112], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115]]}, {"function_name": "_save", "code": "\tprotected void _save()\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor(int i = 0; i < listModel.getSize(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(' ');\n\t\t\tbuf.append(((MenuItem)listModel.elementAt(i)).actionName);\n\t\t}\n\t\tjEdit.setProperty(\"view.context\",buf.toString());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [3, 6], [1, 7], [4, 8], [2, 9], [1, 10], [7, 11], [1, 12], [7, 13], [11, 14], [10, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 3], [7, 1], [8, 4], [9, 2], [10, 1], [11, 7], [12, 1], [13, 7], [14, 11], [15, 10], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getActionLabel", "code": "\tstatic String getActionLabel(String actionName)\n\t{\n\t\tif(actionName.equals(\"-\"))\n\t\t\treturn \"-\";\n\t\telse\n\t\t{\n\t\t\tif(actionName.startsWith(\"play-macro@\"))\n\t\t\t{\n\t\t\t\tint index = Math.max(11,actionName\n\t\t\t\t\t.indexOf('/') + 1);\n\t\t\t\treturn actionName.substring(index)\n\t\t\t\t\t.replace('_',' ');\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn jEdit.getProperty(actionName + \".label\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [5, 9], [8, 10], [5, 11], [5, 12], [9, 13], [10, 14], [11, 15], [14, 16], [15, 17], [12, 18], [17, 19], [17, 20], [18, 21], [18, 22], [21, 23], [21, 24], [24, 25], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 5], [10, 8], [11, 5], [12, 5], [13, 9], [14, 10], [15, 11], [16, 14], [17, 15], [18, 12], [19, 17], [20, 17], [21, 18], [22, 18], [23, 21], [24, 21], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "updateButtons", "code": "\tprivate void updateButtons()\n\t{\n\t\tint index = list.getSelectedIndex();\n\t\tremove.setEnabled(index != -1 && listModel.getSize() != 0);\n\t\tmoveUp.setEnabled(index > 0);\n\t\tmoveDown.setEnabled(index != -1 && index != listModel.getSize() - 1);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 8], [5, 9], [5, 10], [6, 11], [7, 12], [7, 13], [9, 14], [10, 15], [12, 16], [12, 17], [13, 18], [14, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 1], [9, 5], [10, 5], [11, 6], [12, 7], [13, 7], [14, 9], [15, 10], [16, 12], [17, 12], [18, 13], [19, 14], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "ContextOptionPane", "code": "\tpublic ContextOptionPane()\n\t{\n\t\tsuper(\"context\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.6-7648", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/extensions/SecuritySupport.java", "language": "java", "name": "org.apache.xalan.extensions.SecuritySupport", "code": "class SecuritySupport {\n\n    /*\n     * Make this of type Object so that the verifier won't try to\n     * prove its type, thus possibly trying to load the SecuritySupport12\n     * class.\n     */\n    private static final Object securitySupport;\n\n    static {\n\tSecuritySupport ss = null;\n\ttry {\n\t    Class c = Class.forName(\"java.security.AccessController\");\n\t    /*\n\t    c = Class.forName(\"javax.mail.SecuritySupport12\");\n\t    Constructor cons = c.getConstructor(new Class[] { });\n\t    ss = (SecuritySupport)cons.newInstance(new Object[] { });\n\t    */\n\t    /*\n\t     * Unfortunately, we can't load the class using reflection\n\t     * because the class is package private.  And the class has\n\t     * to be package private so the APIs aren't exposed to other\n\t     * code that could use them to circumvent security.  Thus,\n\t     * we accept the risk that the direct reference might fail\n\t     * on some JDK 1.1 JVMs, even though we would never execute\n\t     * this code in such a case.  Sigh...\n\t     */\n\t    ss = new SecuritySupport12();\n\t} catch (Exception ex) {\n\t} finally {\n\t    if (ss == null)\n\t\tss = new SecuritySupport();\n\t    securitySupport = ss;\n\t}\n    }\n\n    /**\n     * Return an appropriate instance of this class, depending on whether\n     * we're on a JDK 1.1 or J2SE 1.2 (or later) system.\n     */\n    static SecuritySupport getInstance() {\n\treturn (SecuritySupport)securitySupport;\n    }\n\n    ClassLoader getContextClassLoader() {\n\treturn null;\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return null;\n    }\n\n    ClassLoader getParentClassLoader(ClassLoader cl) {\n        return null;\n    }\n\n    String getSystemProperty(String propName) {\n        return System.getProperty(propName);\n    }\n\n    FileInputStream getFileInputStream(File file)\n        throws FileNotFoundException\n    {\n        return new FileInputStream(file);\n    }\n\n    InputStream getResourceAsStream(ClassLoader cl, String name) {\n        InputStream ris;\n        if (cl == null) {\n            ris = ClassLoader.getSystemResourceAsStream(name);\n        } else {\n            ris = cl.getResourceAsStream(name);\n        }\n        return ris;\n    }\n    \n    boolean getFileExists(File f) {\n        return f.exists();\n    }\n    \n    long getLastModified(File f) {\n        return f.lastModified();", "functions": [{"function_name": "getInstance", "code": "    static SecuritySupport getInstance() {\n\treturn (SecuritySupport)securitySupport;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(ClassLoader cl) {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(String propName) {\n        return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(File file)\n        throws FileNotFoundException\n    {\n        return new FileInputStream(file);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(ClassLoader cl, String name) {\n        InputStream ris;\n        if (cl == null) {\n            ris = ClassLoader.getSystemResourceAsStream(name);\n        } else {\n            ris = cl.getResourceAsStream(name);\n        }\n        return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [2, 8], [2, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 2], [9, 2], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(File f) {\n        return f.exists();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLastModified", "code": "    long getLastModified(File f) {\n        return f.lastModified();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "jedit-4.2-4256", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/gui/TextAreaDialog.java", "language": "java", "name": "org.gjt.sp.jedit.gui.TextAreaDialog", "code": "public class TextAreaDialog extends EnhancedDialog\n{\n\t//{{{ TextAreaDialog constructor\n\tpublic TextAreaDialog(Frame frame, String title, String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tinit(caption,icon,text);\n\t} //}}}\n\n\t//{{{ TextAreaDialog constructor\n\tpublic TextAreaDialog(Frame frame, String name, Throwable t)\n\t{\n\t\tthis(frame,jEdit.getProperty(name + \".title\"),\n\t\t\tjEdit.getProperty(name + \".message\"),\n\t\t\tUIManager.getIcon(\"OptionPane.errorIcon\"),\n\t\t\tMiscUtilities.throwableToString(t));\n\t} //}}}\n\n\t//{{{ TextAreaDialog constructor\n\tpublic TextAreaDialog(Dialog frame, String title, String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tinit(caption,icon,text);\n\t} //}}}\n\n\t//{{{ TextAreaDialog constructor\n\tpublic TextAreaDialog(Dialog frame, String name, Throwable t)\n\t{\n\t\tthis(frame,jEdit.getProperty(name + \".title\"),\n\t\t\tjEdit.getProperty(name + \".message\"),\n\t\t\tUIManager.getIcon(\"OptionPane.errorIcon\"),\n\t\t\tMiscUtilities.throwableToString(t));\n\t} //}}}\n\n\t//{{{ init() method\n\tprivate void init(String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tBox iconBox = new Box(BoxLayout.Y_AXIS);\n\t\ticonBox.add(new JLabel(icon));\n\t\ticonBox.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.WEST,iconBox);\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout(6,6));\n\n\t\tcenterPanel.add(BorderLayout.NORTH,\n\t\t\tGUIUtilities.createMultilineLabel(caption));\n\n\t\tJTextArea textArea = new JTextArea(10,80);\n\n\t\ttextArea.setText(text);\n\t\ttextArea.setLineWrap(true);\n\t\ttextArea.setCaretPosition(0);\n\t\tcenterPanel.add(BorderLayout.CENTER,new JScrollPane(textArea));\n\n\t\tcontent.add(BorderLayout.CENTER,centerPanel);\n\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\t\tbuttons.add(Box.createGlue());\n\t\tJButton ok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(new ActionHandler());\n\t\tbuttons.add(ok);\n\t\tbuttons.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(getParent());\n\t\tsetVisible(true);\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\t//{{{ actionPerformed() method\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tdispose();", "functions": [{"function_name": "init", "code": "\tprivate void init(String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tBox iconBox = new Box(BoxLayout.Y_AXIS);\n\t\ticonBox.add(new JLabel(icon));\n\t\ticonBox.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.WEST,iconBox);\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout(6,6));\n\n\t\tcenterPanel.add(BorderLayout.NORTH,\n\t\t\tGUIUtilities.createMultilineLabel(caption));\n\n\t\tJTextArea textArea = new JTextArea(10,80);\n\n\t\ttextArea.setText(text);\n\t\ttextArea.setLineWrap(true);\n\t\ttextArea.setCaretPosition(0);\n\t\tcenterPanel.add(BorderLayout.CENTER,new JScrollPane(textArea));\n\n\t\tcontent.add(BorderLayout.CENTER,centerPanel);\n\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\t\tbuttons.add(Box.createGlue());\n\t\tJButton ok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(new ActionHandler());\n\t\tbuttons.add(ok);\n\t\tbuttons.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(getParent());\n\t\tsetVisible(true);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [10, 30], [11, 31], [13, 32], [15, 33], [17, 34], [1, 35], [18, 36], [2, 37], [20, 38], [21, 39], [22, 40], [3, 41], [24, 42], [4, 43], [26, 44], [27, 45], [5, 46], [29, 47], [6, 48], [35, 49], [41, 50], [41, 51], [43, 52], [47, 53], [47, 54], [47, 55], [47, 56], [48, 57], [49, 58], [52, 59], [52, 60], [57, 61], [57, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 10], [31, 11], [32, 13], [33, 15], [34, 17], [35, 1], [36, 18], [37, 2], [38, 20], [39, 21], [40, 22], [41, 3], [42, 24], [43, 4], [44, 26], [45, 27], [46, 5], [47, 29], [48, 6], [49, 35], [50, 41], [51, 41], [52, 43], [53, 47], [54, 47], [55, 47], [56, 47], [57, 48], [58, 49], [59, 52], [60, 52], [61, 57], [62, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "TextAreaDialog", "code": "\tpublic TextAreaDialog(Frame frame, String title, String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tinit(caption,icon,text);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "TextAreaDialog", "code": "\tpublic TextAreaDialog(Frame frame, String name, Throwable t)\n\t{\n\t\tthis(frame,jEdit.getProperty(name + \".title\"),\n\t\t\tjEdit.getProperty(name + \".message\"),\n\t\t\tUIManager.getIcon(\"OptionPane.errorIcon\"),\n\t\t\tMiscUtilities.throwableToString(t));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "TextAreaDialog", "code": "\tpublic TextAreaDialog(Dialog frame, String title, String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tinit(caption,icon,text);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "TextAreaDialog", "code": "\tpublic TextAreaDialog(Dialog frame, String name, Throwable t)\n\t{\n\t\tthis(frame,jEdit.getProperty(name + \".title\"),\n\t\t\tjEdit.getProperty(name + \".message\"),\n\t\t\tUIManager.getIcon(\"OptionPane.errorIcon\"),\n\t\t\tMiscUtilities.throwableToString(t));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "camel-1.6-3111", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/util/MainSupport.java", "language": "java", "name": "org.apache.camel.util.MainSupport", "code": "public abstract class MainSupport extends ServiceSupport {\n    protected static final Log LOG = LogFactory.getLog(MainSupport.class);\n    protected String dotOutputDir;\n    private List<Option> options = new ArrayList<Option>();\n    private CountDownLatch latch = new CountDownLatch(1);\n    private AtomicBoolean completed = new AtomicBoolean(false);\n    private long duration = -1;\n    private TimeUnit timeUnit = TimeUnit.MILLISECONDS;    \n    private String routesOutputFile;\n    private boolean aggregateDot;\n    private boolean debug;\n    private boolean trace;\n    private List<RouteBuilder> routeBuilders = new ArrayList<RouteBuilder>();\n    private List<CamelContext> camelContexts = new ArrayList<CamelContext>();\n    private ProducerTemplate camelTemplate;\n\n    protected MainSupport() {\n        addOption(new Option(\"h\", \"help\", \"Displays the help screen\") {\n            protected void doProcess(String arg, LinkedList<String> remainingArgs) {\n                showOptions();\n                completed();\n            }\n        });\n        addOption(new ParameterOption(\"o\", \"outdir\",\n                \"Sets the DOT output directory where the visual representations of the routes are generated\",\n                \"dot\") {\n            protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) {\n                setDotOutputDir(parameter);\n            }\n        });\n        addOption(new ParameterOption(\"ad\", \"aggregate-dot\",\n                \"Aggregates all routes (in addition to individual route generation) into one context to create one monolithic DOT file for visual representations the entire system.\",\n                \"aggregate-dot\") {\n            protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) {\n                setAggregateDot(\"true\".equals(parameter));\n            }\n        });\n        addOption(new ParameterOption(\"d\", \"duration\",\n                \"Sets the time duration that the applicaiton will run for, by default in milliseconds. You can use '10s' for 10 seconds etc\",\n                \"duration\") {\n            protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) {\n                String value = parameter.toUpperCase();\n                if (value.endsWith(\"S\")) {\n                    value = value.substring(0, value.length() - 1);\n                    setTimeUnit(TimeUnit.SECONDS);\n                }\n                setDuration(Integer.parseInt(value));\n            }\n        });\n\n        addOption(new Option(\"x\", \"debug\", \"Enables the debugger\") {\n            protected void doProcess(String arg, LinkedList<String> remainingArgs) {\n                enableDebug();\n            }\n        });\n        addOption(new Option(\"t\", \"trace\", \"Enables tracing\") {\n            protected void doProcess(String arg, LinkedList<String> remainingArgs) {\n                enableTrace();\n            }\n        });\n        addOption(new ParameterOption(\"out\", \"output\", \"Output all routes to the specified XML file\", \"filename\") {\n            protected void doProcess(String arg, String parameter,\n                    LinkedList<String> remainingArgs) {\n                setRoutesOutputFile(parameter);\n            }\n        });\n    }\n\n    /**\n     * Runs this process with the given arguments\n     */\n    public void run() {\n        if (!completed.get()) {\n            try {\n                start();\n                waitUntilCompleted();\n                stop();\n            } catch (Exception e) {\n                LOG.error(\"Failed: \" + e, e);\n            }\n        }\n    }\n\n    /**\n     * Marks this process as being completed\n     */\n    public void completed() {\n        completed.set(true);\n        latch.countDown();\n    }\n\n    /**\n     * Displays the command line options\n     */\n    public void showOptions() {\n        showOptionsHeader();\n\n        for (Option option : options) {\n            System.out.println(option.getInformation());\n        }\n    }\n\n    /**\n     * Parses the command line arguments\n     */\n    public void parseArguments(String[] arguments) {\n        LinkedList<String> args = new LinkedList<String>(Arrays.asList(arguments));\n\n        boolean valid = true;\n        while (!args.isEmpty()) {\n            String arg = args.removeFirst();\n\n            boolean handled = false;\n            for (Option option : options) {\n                if (option.processOption(arg, args)) {\n                    handled = true;\n                    break;\n                }\n            }\n            if (!handled) {\n                System.out.println(\"Unknown option: \" + arg);\n                System.out.println();\n                valid = false;\n                break;\n            }\n        }\n        if (!valid) {\n            showOptions();\n            completed();\n        }\n    }\n\n    public void addOption(Option option) {\n        options.add(option);\n    }\n\n    public long getDuration() {\n        return duration;\n    }\n\n    /**\n     * Sets the duration to run the application for in milliseconds until it\n     * should be terminated. Defaults to -1. Any value <= 0 will run forever.\n     */\n    public void setDuration(long duration) {\n        this.duration = duration;\n    }\n\n    public TimeUnit getTimeUnit() {\n        return timeUnit;\n    }\n\n    /**\n     * Sets the time unit duration\n     */\n    public void setTimeUnit(TimeUnit timeUnit) {\n        this.timeUnit = timeUnit;\n    }\n\n    public String getDotOutputDir() {\n        return dotOutputDir;\n    }\n\n    /**\n     * Sets the output directory of the generated DOT Files to show the visual\n     * representation of the routes. A null value disables the dot file\n     * generation\n     */\n    public void setDotOutputDir(String dotOutputDir) {\n        this.dotOutputDir = dotOutputDir;\n    }\n\n    public void setAggregateDot(boolean aggregateDot) {\n        this.aggregateDot = aggregateDot;\n    }\n\n    public boolean isAggregateDot() {\n        return aggregateDot;\n    }\n\n    public boolean isDebug() {\n        return debug;\n    }\n\n    public void enableDebug() {\n        this.debug = true;\n    }\n\n    public boolean isTrace() {\n        return trace;\n    }\n\n    public void enableTrace() {\n        this.trace = true;\n    }\n\n    public void setRoutesOutputFile(String routesOutputFile) {\n        this.routesOutputFile = routesOutputFile;\n    }\n\n    public String getRoutesOutputFile() {\n        return routesOutputFile;\n    }\n\n    /**\n     * Returns the currently active debugger if one is enabled\n     *\n     * @return the current debugger or null if none is active\n     * @see #enableDebug()\n     */\n    public Debugger getDebugger() {\n        for (CamelContext camelContext : camelContexts) {\n            Debugger debugger = Debugger.getDebugger(camelContext);\n            if (debugger != null) {\n                return debugger;\n            }\n        }\n        return null;\n    }\n\n    protected void doStop() throws Exception {\n        LOG.info(\"Apache Camel \" + getVersion() + \" stopping\");\n        completed();\n    }\n\n    protected void doStart() throws Exception {\n        LOG.info(\"Apache Camel \" + getVersion() + \" starting\");\n    }\n\n    protected void waitUntilCompleted() {\n        while (!completed.get()) {\n            try {\n                if (duration > 0) {\n                    TimeUnit unit = getTimeUnit();\n                    LOG.info(\"Waiting for: \" + duration + \" \" + unit);\n                    latch.await(duration, unit);\n                    completed.set(true);\n                } else {\n                    latch.await();\n                }\n            } catch (InterruptedException e) {\n                Thread.currentThread().interrupt();\n            }\n        }\n    }\n\n    /**\n     * Parses the command line arguments then runs the program\n     */\n    public void run(String[] args) {\n        parseArguments(args);\n        run();\n    }\n\n    /**\n     * Displays the header message for the command line options\n     */\n    public void showOptionsHeader() {\n        System.out.println(\"Apache Camel Runner takes the following options\");\n        System.out.println();\n    }\n\n    public List<CamelContext> getCamelContexts() {\n        return camelContexts;\n    }\n\n    public List<RouteBuilder> getRouteBuilders() {\n        return routeBuilders;\n    }\n\n    public void setRouteBuilders(List<RouteBuilder> routeBuilders) {\n        this.routeBuilders = routeBuilders;\n    }\n\n    public List<RouteType> getRouteDefinitions() {\n        List<RouteType> answer = new ArrayList<RouteType>();\n        for (CamelContext camelContext : camelContexts) {\n            answer.addAll(camelContext.getRouteDefinitions());\n        }\n        return answer;\n    }\n\n    /**\n     * Returns a {@link org.apache.camel.ProducerTemplate} from the Spring {@link org.springframework.context.ApplicationContext} instances\n     * or lazily creates a new one dynamically\n     */\n    public ProducerTemplate getCamelTemplate() {\n        if (camelTemplate == null) {\n            camelTemplate = findOrCreateCamelTemplate();\n        }\n        return camelTemplate;\n    }\n\n    protected abstract ProducerTemplate findOrCreateCamelTemplate();\n\n    protected abstract Map<String, CamelContext> getCamelContextMap();\n\n    protected void postProcessContext() throws Exception {\n        Map<String, CamelContext> map = getCamelContextMap();\n        Set<Map.Entry<String, CamelContext>> entries = map.entrySet();\n        int size = entries.size();\n        for (Map.Entry<String, CamelContext> entry : entries) {\n            String name = entry.getKey();\n            CamelContext camelContext = entry.getValue();\n            camelContexts.add(camelContext);\n            generateDot(name, camelContext, size);\n            postProcesCamelContext(camelContext);\n        }\n\n        if (isAggregateDot()) {\n            generateDot(\"aggregate\", aggregateCamelContext(), 1);\n        }\n\n        if (!\"\".equals(getRoutesOutputFile())) {\n            outputRoutesToFile();\n        }\n    }\n\n    protected void outputRoutesToFile() throws IOException, JAXBException {\n        if (ObjectHelper.isNotNullAndNonEmpty(getRoutesOutputFile())) {\n            LOG.info(\"Generating routes as XML in the file named: \" + getRoutesOutputFile());\n            ModelFileGenerator generator = createModelFileGenerator();\n            generator.marshalRoutesUsingJaxb(getRoutesOutputFile(), getRouteDefinitions());\n        }\n    }\n\n    protected abstract ModelFileGenerator createModelFileGenerator() throws JAXBException;\n\n    protected void generateDot(String name, CamelContext camelContext, int size) throws IOException {\n        String outputDir = dotOutputDir;\n        if (ObjectHelper.isNotNullAndNonEmpty(outputDir)) {\n            if (size > 1) {\n                outputDir += \"/\" + name;\n            }\n            RouteDotGenerator generator = new RouteDotGenerator(outputDir);\n            LOG.info(\"Generating DOT file for routes: \" + outputDir + \" for: \" + camelContext + \" with name: \" + name);\n            generator.drawRoutes(camelContext);\n        }\n    }\n\n    /**\n     * Used for aggregate dot generation, generate a single camel context containing all of the available contexts\n     */\n    private CamelContext aggregateCamelContext() throws Exception {\n        if (camelContexts.size() == 1) {\n            return camelContexts.get(0);\n        } else {\n            DefaultCamelContext answer = new DefaultCamelContext();\n            for (CamelContext camelContext : camelContexts) {\n                answer.addRouteDefinitions(camelContext.getRouteDefinitions());\n            }\n            return answer;\n        }\n    }\n\n    protected void postProcesCamelContext(CamelContext camelContext) throws Exception {\n        for (RouteBuilder routeBuilder : routeBuilders) {\n            camelContext.addRoutes(routeBuilder);\n        }\n    }\n\n    public void addRouteBuilder(RouteBuilder routeBuilder) {\n        getRouteBuilders().add(routeBuilder);\n    }\n\n    public abstract class Option {\n        private String abbreviation;\n        private String fullName;\n        private String description;\n\n        protected Option(String abbreviation, String fullName, String description) {\n            this.abbreviation = \"-\" + abbreviation;\n            this.fullName = \"-\" + fullName;\n            this.description = description;\n        }\n\n        public boolean processOption(String arg, LinkedList<String> remainingArgs) {\n            if (arg.equalsIgnoreCase(abbreviation) || fullName.startsWith(arg)) {\n                doProcess(arg, remainingArgs);\n                return true;\n            }\n            return false;\n        }\n\n        public String getAbbreviation() {\n            return abbreviation;\n        }\n\n        public String getDescription() {\n            return description;\n        }\n\n        public String getFullName() {\n            return fullName;\n        }\n\n        public String getInformation() {\n            return \"  \" + getAbbreviation() + \" or \" + getFullName() + \" = \" + getDescription();\n        }\n\n        protected abstract void doProcess(String arg, LinkedList<String> remainingArgs);\n    }\n\n    public abstract class ParameterOption extends Option {\n        private String parameterName;\n\n        protected ParameterOption(String abbreviation, String fullName, String description,\n                String parameterName) {\n            super(abbreviation, fullName, description);\n            this.parameterName = parameterName;\n        }\n\n        protected void doProcess(String arg, LinkedList<String> remainingArgs) {\n            if (remainingArgs.isEmpty()) {\n                System.err.println(\"Expected fileName for \");\n                showOptions();\n                completed();\n            } else {\n                String parameter = remainingArgs.removeFirst();\n                doProcess(arg, parameter, remainingArgs);\n            }\n        }\n\n        public String getInformation() {\n            return \"  \" + getAbbreviation() + \" or \" + getFullName()\n                    + \" <\" + parameterName + \"> = \" + getDescription();\n        }\n\n        protected abstract void doProcess(String arg, String parameter, LinkedList<String> remainingArgs);", "functions": [{"function_name": "run", "code": "    public void run() {\n        if (!completed.get()) {\n            try {\n                start();\n                waitUntilCompleted();\n                stop();\n            } catch (Exception e) {\n                LOG.error(\"Failed: \" + e, e);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "TRY", "CATCH", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [3, 5], [3, 6], [3, 7], [4, 8], [8, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 3], [5, 3], [6, 3], [7, 3], [8, 4], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "completed", "code": "    public void completed() {\n        completed.set(true);\n        latch.countDown();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "showOptions", "code": "    public void showOptions() {\n        showOptionsHeader();\n\n        for (Option option : options) {\n            System.out.println(option.getInformation());", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parseArguments", "code": "    public void parseArguments(String[] arguments) {\n        LinkedList<String> args = new LinkedList<String>(Arrays.asList(arguments));\n\n        boolean valid = true;\n        while (!args.isEmpty()) {\n            String arg = args.removeFirst();\n\n            boolean handled = false;\n            for (Option option : options) {\n                if (option.processOption(arg, args)) {\n                    handled = true;\n                    break;\n                }\n            }\n            if (!handled) {\n                System.out.println(\"Unknown option: \" + arg);\n                System.out.println();\n                valid = false;\n                break;\n            }\n        }\n        if (!valid) {\n            showOptions();\n            completed();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [3, 11], [4, 12], [1, 13], [1, 14], [12, 15], [7, 16], [8, 17], [9, 18], [10, 19], [7, 20], [7, 21], [7, 22], [17, 23], [20, 24], [22, 25], [17, 26], [25, 27], [17, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 3], [12, 4], [13, 1], [14, 1], [15, 12], [16, 7], [17, 8], [18, 9], [19, 10], [20, 7], [21, 7], [22, 7], [23, 17], [24, 20], [25, 22], [26, 17], [27, 25], [28, 17], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "addOption", "code": "    public void addOption(Option option) {\n        options.add(option);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDuration", "code": "    public long getDuration() {\n        return duration;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDuration", "code": "    public void setDuration(long duration) {\n        this.duration = duration;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTimeUnit", "code": "    public TimeUnit getTimeUnit() {\n        return timeUnit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeUnit", "code": "    public void setTimeUnit(TimeUnit timeUnit) {\n        this.timeUnit = timeUnit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDotOutputDir", "code": "    public String getDotOutputDir() {\n        return dotOutputDir;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDotOutputDir", "code": "    public void setDotOutputDir(String dotOutputDir) {\n        this.dotOutputDir = dotOutputDir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAggregateDot", "code": "    public void setAggregateDot(boolean aggregateDot) {\n        this.aggregateDot = aggregateDot;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAggregateDot", "code": "    public boolean isAggregateDot() {\n        return aggregateDot;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isDebug", "code": "    public boolean isDebug() {\n        return debug;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "enableDebug", "code": "    public void enableDebug() {\n        this.debug = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isTrace", "code": "    public boolean isTrace() {\n        return trace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "enableTrace", "code": "    public void enableTrace() {\n        this.trace = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRoutesOutputFile", "code": "    public void setRoutesOutputFile(String routesOutputFile) {\n        this.routesOutputFile = routesOutputFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRoutesOutputFile", "code": "    public String getRoutesOutputFile() {\n        return routesOutputFile;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDebugger", "code": "    public Debugger getDebugger() {\n        for (CamelContext camelContext : camelContexts) {\n            Debugger debugger = Debugger.getDebugger(camelContext);\n            if (debugger != null) {\n                return debugger;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [4, 7], [6, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 4], [8, 6], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        LOG.info(\"Apache Camel \" + getVersion() + \" stopping\");\n        completed();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        LOG.info(\"Apache Camel \" + getVersion() + \" starting\");", "ast_nodes": ["FUNC_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "waitUntilCompleted", "code": "    protected void waitUntilCompleted() {\n        while (!completed.get()) {\n            try {\n                if (duration > 0) {\n                    TimeUnit unit = getTimeUnit();\n                    LOG.info(\"Waiting for: \" + duration + \" \" + unit);\n                    latch.await(duration, unit);\n                    completed.set(true);\n                } else {\n                    latch.await();\n                }\n            } catch (InterruptedException e) {\n                Thread.currentThread().interrupt();", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "TRY", "CATCH", "IF", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [3, 5], [5, 6], [4, 7], [5, 8], [6, 9], [7, 10], [5, 11], [5, 12], [5, 13], [5, 14], [12, 15], [14, 16], [8, 17], [16, 18], [18, 19], [18, 20], [20, 21], [1, 0], [2, 1], [3, 1], [4, 3], [5, 3], [6, 5], [7, 4], [8, 5], [9, 6], [10, 7], [11, 5], [12, 5], [13, 5], [14, 5], [15, 12], [16, 14], [17, 8], [18, 16], [19, 18], [20, 18], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "run", "code": "    public void run(String[] args) {\n        parseArguments(args);\n        run();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "showOptionsHeader", "code": "    public void showOptionsHeader() {\n        System.out.println(\"Apache Camel Runner takes the following options\");\n        System.out.println();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCamelContexts", "code": "    public List<CamelContext> getCamelContexts() {\n        return camelContexts;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRouteBuilders", "code": "    public List<RouteBuilder> getRouteBuilders() {\n        return routeBuilders;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRouteBuilders", "code": "    public void setRouteBuilders(List<RouteBuilder> routeBuilders) {\n        this.routeBuilders = routeBuilders;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRouteDefinitions", "code": "    public List<RouteType> getRouteDefinitions() {\n        List<RouteType> answer = new ArrayList<RouteType>();\n        for (CamelContext camelContext : camelContexts) {\n            answer.addAll(camelContext.getRouteDefinitions());\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getCamelTemplate", "code": "    public ProducerTemplate getCamelTemplate() {\n        if (camelTemplate == null) {\n            camelTemplate = findOrCreateCamelTemplate();\n        }\n        return camelTemplate;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "findOrCreateCamelTemplate", "code": "    protected abstract ProducerTemplate findOrCreateCamelTemplate();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getCamelContextMap", "code": "    protected abstract Map<String, CamelContext> getCamelContextMap();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "postProcessContext", "code": "    protected void postProcessContext() throws Exception {\n        Map<String, CamelContext> map = getCamelContextMap();\n        Set<Map.Entry<String, CamelContext>> entries = map.entrySet();\n        int size = entries.size();\n        for (Map.Entry<String, CamelContext> entry : entries) {\n            String name = entry.getKey();\n            CamelContext camelContext = entry.getValue();\n            camelContexts.add(camelContext);\n            generateDot(name, camelContext, size);\n            postProcesCamelContext(camelContext);\n        }\n\n        if (isAggregateDot()) {\n            generateDot(\"aggregate\", aggregateCamelContext(), 1);\n        }\n\n        if (!\"\".equals(getRoutesOutputFile())) {\n            outputRoutesToFile();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [3, 10], [3, 11], [4, 12], [5, 13], [6, 14], [1, 15], [9, 16], [2, 17], [3, 18], [3, 19], [3, 20], [17, 21], [17, 22], [17, 23], [10, 24], [11, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 3], [11, 3], [12, 4], [13, 5], [14, 6], [15, 1], [16, 9], [17, 2], [18, 3], [19, 3], [20, 3], [21, 17], [22, 17], [23, 17], [24, 10], [25, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "outputRoutesToFile", "code": "    protected void outputRoutesToFile() throws IOException, JAXBException {\n        if (ObjectHelper.isNotNullAndNonEmpty(getRoutesOutputFile())) {\n            LOG.info(\"Generating routes as XML in the file named: \" + getRoutesOutputFile());\n            ModelFileGenerator generator = createModelFileGenerator();\n            generator.marshalRoutesUsingJaxb(getRoutesOutputFile(), getRouteDefinitions());", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [1, 6], [5, 7], [5, 8], [3, 9], [6, 10], [10, 11], [10, 12], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 1], [7, 5], [8, 5], [9, 3], [10, 6], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createModelFileGenerator", "code": "    protected abstract ModelFileGenerator createModelFileGenerator() throws JAXBException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "generateDot", "code": "    protected void generateDot(String name, CamelContext camelContext, int size) throws IOException {\n        String outputDir = dotOutputDir;\n        if (ObjectHelper.isNotNullAndNonEmpty(outputDir)) {\n            if (size > 1) {\n                outputDir += \"/\" + name;\n            }\n            RouteDotGenerator generator = new RouteDotGenerator(outputDir);\n            LOG.info(\"Generating DOT file for routes: \" + outputDir + \" for: \" + camelContext + \" with name: \" + name);\n            generator.drawRoutes(camelContext);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [8, 11], [10, 12], [7, 13], [11, 14], [12, 15], [8, 16], [15, 17], [15, 18], [16, 19], [18, 20], [19, 21], [20, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 8], [12, 10], [13, 7], [14, 11], [15, 12], [16, 8], [17, 15], [18, 15], [19, 16], [20, 18], [21, 19], [22, 20], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "aggregateCamelContext", "code": "    private CamelContext aggregateCamelContext() throws Exception {\n        if (camelContexts.size() == 1) {\n            return camelContexts.get(0);\n        } else {\n            DefaultCamelContext answer = new DefaultCamelContext();\n            for (CamelContext camelContext : camelContexts) {\n                answer.addRouteDefinitions(camelContext.getRouteDefinitions());\n            }\n            return answer;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [6, 9], [5, 10], [9, 11], [4, 12], [12, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 6], [10, 5], [11, 9], [12, 4], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "postProcesCamelContext", "code": "    protected void postProcesCamelContext(CamelContext camelContext) throws Exception {\n        for (RouteBuilder routeBuilder : routeBuilders) {\n            camelContext.addRoutes(routeBuilder);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addRouteBuilder", "code": "    public void addRouteBuilder(RouteBuilder routeBuilder) {\n        getRouteBuilders().add(routeBuilder);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "MainSupport", "code": "    protected MainSupport() {\n        addOption(new Option(\"h\", \"help\", \"Displays the help screen\") {\n            protected void doProcess(String arg, LinkedList<String> remainingArgs) {\n                showOptions();\n                completed();\n            }\n        });\n        addOption(new ParameterOption(\"o\", \"outdir\",\n                \"Sets the DOT output directory where the visual representations of the routes are generated\",\n                \"dot\") {\n            protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) {\n                setDotOutputDir(parameter);\n            }\n        });\n        addOption(new ParameterOption(\"ad\", \"aggregate-dot\",\n                \"Aggregates all routes (in addition to individual route generation) into one context to create one monolithic DOT file for visual representations the entire system.\",\n                \"aggregate-dot\") {\n            protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) {\n                setAggregateDot(\"true\".equals(parameter));\n            }\n        });\n        addOption(new ParameterOption(\"d\", \"duration\",\n                \"Sets the time duration that the applicaiton will run for, by default in milliseconds. You can use '10s' for 10 seconds etc\",\n                \"duration\") {\n            protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) {\n                String value = parameter.toUpperCase();\n                if (value.endsWith(\"S\")) {\n                    value = value.substring(0, value.length() - 1);\n                    setTimeUnit(TimeUnit.SECONDS);\n                }\n                setDuration(Integer.parseInt(value));\n            }\n        });\n\n        addOption(new Option(\"x\", \"debug\", \"Enables the debugger\") {\n            protected void doProcess(String arg, LinkedList<String> remainingArgs) {\n                enableDebug();\n            }\n        });\n        addOption(new Option(\"t\", \"trace\", \"Enables tracing\") {\n            protected void doProcess(String arg, LinkedList<String> remainingArgs) {\n                enableTrace();\n            }\n        });\n        addOption(new ParameterOption(\"out\", \"output\", \"Output all routes to the specified XML file\", \"filename\") {\n            protected void doProcess(String arg, String parameter,\n                    LinkedList<String> remainingArgs) {\n                setRoutesOutputFile(parameter);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [4, 11], [5, 12], [6, 13], [7, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [9, 20], [9, 21], [9, 22], [9, 23], [10, 24], [10, 25], [10, 26], [10, 27], [11, 28], [11, 29], [11, 30], [11, 31], [11, 32], [12, 33], [12, 34], [12, 35], [12, 36], [12, 37], [13, 38], [13, 39], [13, 40], [13, 41], [13, 42], [14, 43], [14, 44], [14, 45], [14, 46], [15, 47], [15, 48], [15, 49], [20, 50], [20, 51], [24, 52], [24, 53], [28, 54], [28, 55], [28, 56], [28, 57], [28, 58], [33, 59], [33, 60], [33, 61], [38, 62], [38, 63], [38, 64], [43, 65], [43, 66], [15, 67], [20, 68], [24, 69], [28, 70], [54, 71], [33, 72], [38, 73], [43, 74], [43, 75], [70, 76], [71, 77], [55, 78], [72, 79], [54, 80], [54, 81], [79, 82], [81, 83], [83, 84], [83, 85], [84, 86], [84, 87], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 4], [12, 5], [13, 6], [14, 7], [15, 8], [16, 8], [17, 8], [18, 8], [19, 8], [20, 9], [21, 9], [22, 9], [23, 9], [24, 10], [25, 10], [26, 10], [27, 10], [28, 11], [29, 11], [30, 11], [31, 11], [32, 11], [33, 12], [34, 12], [35, 12], [36, 12], [37, 12], [38, 13], [39, 13], [40, 13], [41, 13], [42, 13], [43, 14], [44, 14], [45, 14], [46, 14], [47, 15], [48, 15], [49, 15], [50, 20], [51, 20], [52, 24], [53, 24], [54, 28], [55, 28], [56, 28], [57, 28], [58, 28], [59, 33], [60, 33], [61, 33], [62, 38], [63, 38], [64, 38], [65, 43], [66, 43], [67, 15], [68, 20], [69, 24], [70, 28], [71, 54], [72, 33], [73, 38], [74, 43], [75, 43], [76, 70], [77, 71], [78, 55], [79, 72], [80, 54], [81, 54], [82, 79], [83, 81], [84, 83], [85, 83], [86, 84], [87, 84], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}], "label": 0}
{"sample_id": "ant-1.7-1266", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/filters/PrefixLines.java", "language": "java", "name": "org.apache.tools.ant.filters.PrefixLines", "code": "public final class PrefixLines\n    extends BaseParamFilterReader\n    implements ChainableReader {\n    /** Parameter name for the prefix. */\n    private static final String PREFIX_KEY = \"prefix\";\n\n    /** The prefix to be used. */\n    private String prefix = null;\n\n    /** Data that must be read from, if not null. */\n    private String queuedData = null;\n\n    /**\n     * Constructor for \"dummy\" instances.\n     *\n     * @see BaseFilterReader#BaseFilterReader()\n     */\n    public PrefixLines() {\n        super();\n    }\n\n    /**\n     * Creates a new filtered reader.\n     *\n     * @param in A Reader object providing the underlying stream.\n     *           Must not be <code>null</code>.\n     */\n    public PrefixLines(final Reader in) {\n        super(in);\n    }\n\n    /**\n     * Returns the next character in the filtered stream. One line is read\n     * from the original input, and the prefix added. The resulting\n     * line is then used until it ends, at which point the next original line\n     * is read, etc.\n     *\n     * @return the next character in the resulting stream, or -1\n     * if the end of the resulting stream has been reached\n     *\n     * @exception IOException if the underlying stream throws an IOException\n     * during reading\n     */\n    public int read() throws IOException {\n        if (!getInitialized()) {\n            initialize();\n            setInitialized(true);\n        }\n\n        int ch = -1;\n\n        if (queuedData != null && queuedData.length() == 0) {\n            queuedData = null;\n        }\n\n        if (queuedData != null) {\n            ch = queuedData.charAt(0);\n            queuedData = queuedData.substring(1);\n            if (queuedData.length() == 0) {\n                queuedData = null;\n            }\n        } else {\n            queuedData = readLine();\n            if (queuedData == null) {\n                ch = -1;\n            } else {\n                if (prefix != null) {\n                    queuedData = prefix + queuedData;\n                }\n                return read();\n            }\n        }\n        return ch;\n    }\n\n    /**\n     * Sets the prefix to add at the start of each input line.\n     *\n     * @param prefix The prefix to add at the start of each input line.\n     *               May be <code>null</code>, in which case no prefix\n     *               is added.\n     */\n    public void setPrefix(final String prefix) {\n        this.prefix = prefix;\n    }\n\n    /**\n     * Returns the prefix which will be added at the start of each input line.\n     *\n     * @return the prefix which will be added at the start of each input line\n     */\n    private String getPrefix() {\n        return prefix;\n    }\n\n    /**\n     * Creates a new PrefixLines filter using the passed in\n     * Reader for instantiation.\n     *\n     * @param rdr A Reader object providing the underlying stream.\n     *            Must not be <code>null</code>.\n     *\n     * @return a new filter based on this configuration, but filtering\n     *         the specified reader\n     */\n    public Reader chain(final Reader rdr) {\n        PrefixLines newFilter = new PrefixLines(rdr);\n        newFilter.setPrefix(getPrefix());\n        newFilter.setInitialized(true);\n        return newFilter;\n    }\n\n    /**\n     * Initializes the prefix if it is available from the parameters.\n     */\n    private void initialize() {\n        Parameter[] params = getParameters();\n        if (params != null) {\n            for (int i = 0; i < params.length; i++) {\n                if (PREFIX_KEY.equals(params[i].getName())) {\n                    prefix = params[i].getValue();\n                    break;", "functions": [{"function_name": "read", "code": "    public int read() throws IOException {\n        if (!getInitialized()) {\n            initialize();\n            setInitialized(true);\n        }\n\n        int ch = -1;\n\n        if (queuedData != null && queuedData.length() == 0) {\n            queuedData = null;\n        }\n\n        if (queuedData != null) {\n            ch = queuedData.charAt(0);\n            queuedData = queuedData.substring(1);\n            if (queuedData.length() == 0) {\n                queuedData = null;\n            }\n        } else {\n            queuedData = readLine();\n            if (queuedData == null) {\n                ch = -1;\n            } else {\n                if (prefix != null) {\n                    queuedData = prefix + queuedData;\n                }\n                return read();\n            }\n        }\n        return ch;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [5, 8], [2, 9], [2, 10], [6, 11], [7, 12], [7, 13], [4, 14], [9, 15], [2, 16], [10, 17], [2, 18], [2, 19], [3, 20], [12, 21], [12, 22], [13, 23], [5, 24], [5, 25], [9, 26], [9, 27], [15, 28], [16, 29], [17, 30], [17, 31], [18, 32], [19, 33], [20, 34], [24, 35], [26, 36], [27, 37], [9, 38], [10, 39], [32, 40], [33, 41], [37, 42], [38, 43], [39, 44], [27, 45], [45, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 5], [9, 2], [10, 2], [11, 6], [12, 7], [13, 7], [14, 4], [15, 9], [16, 2], [17, 10], [18, 2], [19, 2], [20, 3], [21, 12], [22, 12], [23, 13], [24, 5], [25, 5], [26, 9], [27, 9], [28, 15], [29, 16], [30, 17], [31, 17], [32, 18], [33, 19], [34, 20], [35, 24], [36, 26], [37, 27], [38, 9], [39, 10], [40, 32], [41, 33], [42, 37], [43, 38], [44, 39], [45, 27], [46, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "setPrefix", "code": "    public void setPrefix(final String prefix) {\n        this.prefix = prefix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPrefix", "code": "    private String getPrefix() {\n        return prefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "chain", "code": "    public Reader chain(final Reader rdr) {\n        PrefixLines newFilter = new PrefixLines(rdr);\n        newFilter.setPrefix(getPrefix());\n        newFilter.setInitialized(true);\n        return newFilter;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "initialize", "code": "    private void initialize() {\n        Parameter[] params = getParameters();\n        if (params != null) {\n            for (int i = 0; i < params.length; i++) {\n                if (PREFIX_KEY.equals(params[i].getName())) {\n                    prefix = params[i].getValue();\n                    break;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [4, 7], [4, 8], [8, 9], [4, 10], [8, 11], [8, 12], [9, 13], [12, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 4], [8, 4], [9, 8], [10, 4], [11, 8], [12, 8], [13, 9], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "PrefixLines", "code": "    public PrefixLines() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PrefixLines", "code": "    public PrefixLines(final Reader in) {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.1-4007", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/BSHLHSPrimarySuffix.java", "language": "java", "name": "bsh.BSHLHSPrimarySuffix", "code": "class BSHLHSPrimarySuffix extends SimpleNode\n{\n\tpublic static final int\n\t\tINDEX = 1,\n\t\tNAME = 2,\n\t\tPROPERTY = 3;\n\n\tpublic int operation;\t// field access or index\n\tObject index;\t\t\t// the index value if any\n\t/*\n\t\tIf this is a simple field access field is the field\n\t\tIf we're hopscotching a method to a field, method is the\n\t\tmethod name and field is the field of the resulting object\n\t*/\n\tpublic String field;\n\tpublic String method;\n\n\tBSHLHSPrimarySuffix(int id) { super(id); }\n\n\tpublic LHS doLHSSuffix(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError\n\t{\n\t\ttry\n\t\t{\n\t\t\tswitch(operation)\n\t\t\t{\n\t\t\t\tcase INDEX:\n\t\t\t\t\treturn doIndex(obj, callstack, interpreter);\n\n\t\t\t\tcase NAME:\n\t\t\t\t\treturn doName(obj, callstack, interpreter);\n\n\t\t\t\tcase PROPERTY:\n\t\t\t\t\treturn doProperty(obj, callstack, interpreter);\n\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new InterpreterError(\"LHS suffix\");\n\t\t\t}\n\t\t}\n\t\tcatch(ReflectError e)\n\t\t{\n\t\t\tthrow new EvalError(\"reflection error: \" + e, this);\n\t\t}\n\t\tcatch(InvocationTargetException e)\n\t\t{\n\t\t\tthrow new TargetError(\n\t\t\t\t\"target exception\", e.getTargetException(), this, true);\n\t\t}\n\t}\n\n\tprivate LHS doName(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError, ReflectError, InvocationTargetException \n\t{\n\t\tif (jjtGetNumChildren() == 0)\n\t\t\t// simple field access\n\t\t\treturn Reflect.getLHSObjectField(obj, field);\n\t\telse {\n\t\t\t// intermediate method invocation, and field access\n\t\t\tObject[] oa = ((BSHArguments)jjtGetChild(0)).getArguments(\n\t\t\t\tcallstack, interpreter);\n\t\t\ttry {\n\t\t\t\tobj = Reflect.invokeObjectMethod(interpreter, obj, method, oa, this);\n\t\t\t} catch ( EvalError ee ) {\n\t\t\t\t// catch and re-throw to get line number right\n\t\t\t\tthrow new EvalError( ee.getMessage(), this );\n\t\t\t}\n\t\t\treturn Reflect.getLHSObjectField(obj, field);\n\t\t}\n\t}\n\n\tprivate LHS doIndex(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError, ReflectError\n\t{\n\t\tint index = BSHPrimarySuffix.getIndexAux( \n\t\t\tobj, callstack, interpreter, this );\n\t\treturn new LHS(obj, index);\n\t}\n\n\tprivate LHS doProperty(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError, ReflectError\n\t{\n\t\tif(obj == Primitive.VOID)\n\t\t\tthrow new EvalError(\"Attempt to access property on a void type\", this);\n\n\t\telse if(obj instanceof Primitive)\n\t\t\tthrow new EvalError(\"Attempt to access property on a primitive\", this);\n\n\t\tObject value = ((SimpleNode)jjtGetChild(0)).eval(\n\t\t\tcallstack, interpreter);\n\n\t\tif(!(value instanceof String))\n\t\t\tthrow new EvalError(\"Property expression must be a String or identifier.\", this);\n\n\t\tif ( Interpreter.DEBUG ) Interpreter.debug(\"LHS property access: \");\n\t\treturn new LHS(obj, (String)value);", "functions": [{"function_name": "doLHSSuffix", "code": "\tpublic LHS doLHSSuffix(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError\n\t{\n\t\ttry\n\t\t{\n\t\t\tswitch(operation)\n\t\t\t{\n\t\t\t\tcase INDEX:\n\t\t\t\t\treturn doIndex(obj, callstack, interpreter);\n\n\t\t\t\tcase NAME:\n\t\t\t\t\treturn doName(obj, callstack, interpreter);\n\n\t\t\t\tcase PROPERTY:\n\t\t\t\t\treturn doProperty(obj, callstack, interpreter);\n\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new InterpreterError(\"LHS suffix\");\n\t\t\t}\n\t\t}\n\t\tcatch(ReflectError e)\n\t\t{\n\t\t\tthrow new EvalError(\"reflection error: \" + e, this);\n\t\t}\n\t\tcatch(InvocationTargetException e)\n\t\t{\n\t\t\tthrow new TargetError(\n\t\t\t\t\"target exception\", e.getTargetException(), this, true);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "SWITCH", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [8, 10], [9, 11], [7, 12], [7, 13], [7, 14], [7, 15], [10, 16], [10, 17], [10, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [19, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 8], [11, 9], [12, 7], [13, 7], [14, 7], [15, 7], [16, 10], [17, 10], [18, 10], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 19], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "doName", "code": "\tprivate LHS doName(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError, ReflectError, InvocationTargetException \n\t{\n\t\tif (jjtGetNumChildren() == 0)\n\t\t\t// simple field access\n\t\t\treturn Reflect.getLHSObjectField(obj, field);\n\t\telse {\n\t\t\t// intermediate method invocation, and field access\n\t\t\tObject[] oa = ((BSHArguments)jjtGetChild(0)).getArguments(\n\t\t\t\tcallstack, interpreter);\n\t\t\ttry {\n\t\t\t\tobj = Reflect.invokeObjectMethod(interpreter, obj, method, oa, this);\n\t\t\t} catch ( EvalError ee ) {\n\t\t\t\t// catch and re-throw to get line number right\n\t\t\t\tthrow new EvalError( ee.getMessage(), this );\n\t\t\t}\n\t\t\treturn Reflect.getLHSObjectField(obj, field);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "TRY", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [6, 11], [6, 12], [7, 13], [8, 14], [14, 15], [8, 16], [15, 17], [16, 18], [9, 19], [17, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 6], [12, 6], [13, 7], [14, 8], [15, 14], [16, 8], [17, 15], [18, 16], [19, 9], [20, 17], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "doIndex", "code": "\tprivate LHS doIndex(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError, ReflectError\n\t{\n\t\tint index = BSHPrimarySuffix.getIndexAux( \n\t\t\tobj, callstack, interpreter, this );\n\t\treturn new LHS(obj, index);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "doProperty", "code": "\tprivate LHS doProperty(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError, ReflectError\n\t{\n\t\tif(obj == Primitive.VOID)\n\t\t\tthrow new EvalError(\"Attempt to access property on a void type\", this);\n\n\t\telse if(obj instanceof Primitive)\n\t\t\tthrow new EvalError(\"Attempt to access property on a primitive\", this);\n\n\t\tObject value = ((SimpleNode)jjtGetChild(0)).eval(\n\t\t\tcallstack, interpreter);\n\n\t\tif(!(value instanceof String))\n\t\t\tthrow new EvalError(\"Property expression must be a String or identifier.\", this);\n\n\t\tif ( Interpreter.DEBUG ) Interpreter.debug(\"LHS property access: \");\n\t\treturn new LHS(obj, (String)value);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [3, 11], [5, 12], [5, 13], [5, 14], [2, 15], [10, 16], [12, 17], [12, 18], [13, 19], [15, 20], [16, 21], [4, 22], [17, 23], [19, 24], [22, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 3], [12, 5], [13, 5], [14, 5], [15, 2], [16, 10], [17, 12], [18, 12], [19, 13], [20, 15], [21, 16], [22, 4], [23, 17], [24, 19], [25, 22], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "BSHLHSPrimarySuffix", "code": "\tBSHLHSPrimarySuffix(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.0-3748", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/options/ModeOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.ModeOptionPane", "code": "public class ModeOptionPane extends AbstractOptionPane\n{\n\t//{{{ ModeOptionPane constructor\n\tpublic ModeOptionPane()\n\t{\n\t\tsuper(\"mode\");\n\t} //}}}\n\n\t//{{{ _init() method\n\tprotected void _init()\n\t{\n\t\tMode[] modes = jEdit.getModes();\n\t\tString[] modeNames = new String[modes.length];\n\t\tmodeProps = new ModeProperties[modes.length];\n\t\tfor(int i = 0; i < modes.length; i++)\n\t\t{\n\t\t\tmodeProps[i] = new ModeProperties(modes[i]);\n\t\t\tmodeNames[i] = modes[i].getName();\n\t\t}\n\t\tmode = new JComboBox(modeNames);\n\t\tmode.addActionListener(new ActionHandler());\n\n\t\taddComponent(jEdit.getProperty(\"options.mode.mode\"),mode);\n\n\t\tuseDefaults = new JCheckBox(jEdit.getProperty(\"options.mode.useDefaults\"));\n\t\tuseDefaults.addActionListener(new ActionHandler());\n\t\taddComponent(useDefaults);\n\n\t\taddComponent(jEdit.getProperty(\"options.mode.filenameGlob\"),\n\t\t\tfilenameGlob = new JTextField());\n\n\t\taddComponent(jEdit.getProperty(\"options.mode.firstlineGlob\"),\n\t\t\tfirstlineGlob = new JTextField());\n\n\t\taddComponent(jEdit.getProperty(\"options.editing.noWordSep\"),\n\t\t\tnoWordSep = new JTextField());\n\n\t\tString[] foldModes = FoldHandler.getFoldModes();\n\t\taddComponent(jEdit.getProperty(\"options.editing.folding\"),\n\t\t\tfolding = new JComboBox(foldModes));\n\n\t\taddComponent(jEdit.getProperty(\"options.editing.collapseFolds\"),\n\t\t\tcollapseFolds = new JTextField());\n\n\t\tString[] wrapModes = {\n\t\t\t\"none\",\n\t\t\t\"soft\",\n\t\t\t\"hard\"\n\t\t};\n\t\taddComponent(jEdit.getProperty(\"options.editing.wrap\"),\n\t\t\twrap = new JComboBox(wrapModes));\n\n\t\tString[] lineLens = { \"0\", \"72\", \"76\", \"80\" };\n\t\taddComponent(jEdit.getProperty(\"options.editing.maxLineLen\"),\n\t\t\tmaxLineLen = new JComboBox(lineLens));\n\t\tmaxLineLen.setEditable(true);\n\n\t\tString[] tabSizes = { \"2\", \"4\", \"8\" };\n\t\taddComponent(jEdit.getProperty(\"options.editing.tabSize\"),\n\t\t\ttabSize = new JComboBox(tabSizes));\n\t\ttabSize.setEditable(true);\n\n\t\taddComponent(jEdit.getProperty(\"options.editing.indentSize\"),\n\t\t\tindentSize = new JComboBox(tabSizes));\n\t\tindentSize.setEditable(true);\n\n\t\taddComponent(noTabs = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.editing.noTabs\")));\n\n\t\taddComponent(indentOnTab = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.editing.indentOnTab\")));\n\n\t\taddComponent(indentOnEnter = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.editing.indentOnEnter\")));\n\n\t\tselectMode();\n\t} //}}}\n\n\t//{{{ _save() method\n\tprotected void _save()\n\t{\n\t\tsaveMode();\n\n\t\tfor(int i = 0; i < modeProps.length; i++)\n\t\t{\n\t\t\tmodeProps[i].save();\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate ModeProperties[] modeProps;\n\tprivate ModeProperties current;\n\tprivate JComboBox mode;\n\tprivate JCheckBox useDefaults;\n\tprivate JTextField filenameGlob;\n\tprivate JTextField firstlineGlob;\n\tprivate JTextField noWordSep;\n\tprivate JComboBox folding;\n\tprivate JTextField collapseFolds;\n\tprivate JComboBox wrap;\n\tprivate JComboBox maxLineLen;\n\tprivate JComboBox tabSize;\n\tprivate JComboBox indentSize;\n\tprivate JCheckBox noTabs;\n\tprivate JCheckBox indentOnTab;\n\tprivate JCheckBox indentOnEnter;\n\t//}}}\n\n\t//{{{ saveMode() method\n\tprivate void saveMode()\n\t{\n\t\tcurrent.useDefaults = useDefaults.isSelected();\n\t\tcurrent.filenameGlob = filenameGlob.getText();\n\t\tcurrent.firstlineGlob = firstlineGlob.getText();\n\t\tcurrent.noWordSep = noWordSep.getText();\n\t\tcurrent.folding = (String)folding.getSelectedItem();\n\t\tcurrent.collapseFolds = collapseFolds.getText();\n\t\tcurrent.wrap = (String)wrap.getSelectedItem();\n\t\tcurrent.maxLineLen = (String)maxLineLen.getSelectedItem();\n\t\tcurrent.tabSize = (String)tabSize.getSelectedItem();\n\t\tcurrent.indentSize = (String)indentSize.getSelectedItem();\n\t\tcurrent.noTabs = noTabs.isSelected();\n\t\tcurrent.indentOnEnter = indentOnEnter.isSelected();\n\t\tcurrent.indentOnTab = indentOnTab.isSelected();\n\t} //}}}\n\n\t//{{{ selectMode() method\n\tprivate void selectMode()\n\t{\n\t\tcurrent = modeProps[mode.getSelectedIndex()];\n\t\tcurrent.edited = true;\n\t\tcurrent.load();\n\n\t\tuseDefaults.setSelected(current.useDefaults);\n\t\tfilenameGlob.setText(current.filenameGlob);\n\t\tfirstlineGlob.setText(current.firstlineGlob);\n\t\tnoWordSep.setText(current.noWordSep);\n\t\tfolding.setSelectedItem(current.folding);\n\t\tcollapseFolds.setText(current.collapseFolds);\n\t\twrap.setSelectedItem(current.wrap);\n\t\tmaxLineLen.setSelectedItem(current.maxLineLen);\n\t\ttabSize.setSelectedItem(current.tabSize);\n\t\tindentSize.setSelectedItem(current.indentSize);\n\t\tnoTabs.setSelected(current.noTabs);\n\t\tindentOnTab.setSelected(current.indentOnTab);\n\t\tindentOnEnter.setSelected(current.indentOnEnter);\n\n\t\tupdateEnabled();\n\t} //}}}\n\n\t//{{{ updateEnabled() method\n\tprivate void updateEnabled()\n\t{\n\t\tboolean enabled = !modeProps[mode.getSelectedIndex()].useDefaults;\n\t\tfilenameGlob.setEnabled(enabled);\n\t\tfirstlineGlob.setEnabled(enabled);\n\t\tnoWordSep.setEnabled(enabled);\n\t\tfolding.setEnabled(enabled);\n\t\tcollapseFolds.setEnabled(enabled);\n\t\twrap.setEnabled(enabled);\n\t\tmaxLineLen.setEnabled(enabled);\n\t\ttabSize.setEnabled(enabled);\n\t\tindentSize.setEnabled(enabled);\n\t\tnoTabs.setEnabled(enabled);\n\t\tindentOnTab.setEnabled(enabled);\n\t\tindentOnEnter.setEnabled(enabled);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == mode)\n\t\t\t{\n\t\t\t\tsaveMode();\n\t\t\t\tselectMode();\n\t\t\t}\n\t\t\telse if(evt.getSource() == useDefaults)\n\t\t\t{\n\t\t\t\tmodeProps[mode.getSelectedIndex()].useDefaults =\n\t\t\t\t\tuseDefaults.isSelected();\n\t\t\t\tupdateEnabled();\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ ModeProperties class\n\tclass ModeProperties\n\t{\n\t\t//{{{ Instance variables\n\t\tMode mode;\n\t\tboolean edited;\n\t\tboolean loaded;\n\n\t\tboolean useDefaults;\n\t\tString filenameGlob;\n\t\tString firstlineGlob;\n\t\tString noWordSep;\n\t\tString folding;\n\t\tString collapseFolds;\n\t\tString wrap;\n\t\tString maxLineLen;\n\t\tString tabSize;\n\t\tString indentSize;\n\t\tboolean noTabs;\n\t\tboolean indentOnTab;\n\t\tboolean indentOnEnter;\n\t\t//}}}\n\n\t\t//{{{ ModeProperties constructor\n\t\tModeProperties(Mode mode)\n\t\t{\n\t\t\tthis.mode = mode;\n\t\t} //}}}\n\n\t\t//{{{ load() method\n\t\tvoid load()\n\t\t{\n\t\t\tif(loaded)\n\t\t\t\treturn;\n\n\t\t\tloaded = true;\n\n\t\t\tmode.loadIfNecessary();\n\n\t\t\tuseDefaults = !jEdit.getBooleanProperty(\"mode.\"\n\t\t\t\t+ mode.getName() + \".customSettings\");\n\t\t\tfilenameGlob = (String)mode.getProperty(\"filenameGlob\");\n\t\t\tfirstlineGlob = (String)mode.getProperty(\"firstlineGlob\");\n\t\t\tnoWordSep = (String)mode.getProperty(\"noWordSep\");\n\t\t\tfolding = mode.getProperty(\"folding\").toString();\n\t\t\tcollapseFolds = mode.getProperty(\"collapseFolds\").toString();\n\t\t\twrap = mode.getProperty(\"wrap\").toString();\n\t\t\tmaxLineLen = mode.getProperty(\"maxLineLen\").toString();\n\t\t\ttabSize = mode.getProperty(\"tabSize\").toString();\n\t\t\tindentSize = mode.getProperty(\"indentSize\").toString();\n\t\t\tnoTabs = mode.getBooleanProperty(\"noTabs\");\n\t\t\tindentOnTab = mode.getBooleanProperty(\"indentOnTab\");\n\t\t\tindentOnEnter = mode.getBooleanProperty(\"indentOnEnter\");\n\t\t} //}}}\n\n\t\t//{{{ save() method\n\t\tvoid save()\n\t\t{\n\t\t\t// don't do anything if the user didn't change\n\t\t\t// any settings\n\t\t\tif(!edited)\n\t\t\t\treturn;\n\n\t\t\tString prefix = \"mode.\" + mode.getName() + \".\";\n\t\t\tjEdit.setBooleanProperty(prefix + \"customSettings\",!useDefaults);\n\n\t\t\tif(useDefaults)\n\t\t\t{\n\t\t\t\tjEdit.resetProperty(prefix + \"filenameGlob\");\n\t\t\t\tjEdit.resetProperty(prefix + \"firstlineGlob\");\n\t\t\t\tjEdit.resetProperty(prefix + \"noWordSep\");\n\t\t\t\tjEdit.resetProperty(prefix + \"folding\");\n\t\t\t\tjEdit.resetProperty(prefix + \"collapseFolds\");\n\t\t\t\tjEdit.resetProperty(prefix + \"wrap\");\n\t\t\t\tjEdit.resetProperty(prefix + \"maxLineLen\");\n\t\t\t\tjEdit.resetProperty(prefix + \"tabSize\");\n\t\t\t\tjEdit.resetProperty(prefix + \"indentSize\");\n\t\t\t\tjEdit.resetProperty(prefix + \"noTabs\");\n\t\t\t\tjEdit.resetProperty(prefix + \"indentOnTab\");\n\t\t\t\tjEdit.resetProperty(prefix + \"indentOnEnter\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tjEdit.setProperty(prefix + \"filenameGlob\",filenameGlob);\n\t\t\t\tjEdit.setProperty(prefix + \"firstlineGlob\",firstlineGlob);\n\t\t\t\tjEdit.setProperty(prefix + \"noWordSep\",noWordSep);\n\t\t\t\tjEdit.setProperty(prefix + \"folding\",folding);\n\t\t\t\tjEdit.setProperty(prefix + \"collapseFolds\",collapseFolds);\n\t\t\t\tjEdit.setProperty(prefix + \"wrap\",wrap);\n\t\t\t\tjEdit.setProperty(prefix + \"maxLineLen\",maxLineLen);\n\t\t\t\tjEdit.setProperty(prefix + \"tabSize\",tabSize);\n\t\t\t\tjEdit.setProperty(prefix + \"indentSize\",indentSize);\n\t\t\t\tjEdit.setBooleanProperty(prefix + \"noTabs\",noTabs);\n\t\t\t\tjEdit.setBooleanProperty(prefix + \"indentOnTab\",indentOnTab);\n\t\t\t\tjEdit.setBooleanProperty(prefix + \"indentOnEnter\",indentOnEnter);", "functions": [{"function_name": "_init", "code": "\tprotected void _init()\n\t{\n\t\tMode[] modes = jEdit.getModes();\n\t\tString[] modeNames = new String[modes.length];\n\t\tmodeProps = new ModeProperties[modes.length];\n\t\tfor(int i = 0; i < modes.length; i++)\n\t\t{\n\t\t\tmodeProps[i] = new ModeProperties(modes[i]);\n\t\t\tmodeNames[i] = modes[i].getName();\n\t\t}\n\t\tmode = new JComboBox(modeNames);\n\t\tmode.addActionListener(new ActionHandler());\n\n\t\taddComponent(jEdit.getProperty(\"options.mode.mode\"),mode);\n\n\t\tuseDefaults = new JCheckBox(jEdit.getProperty(\"options.mode.useDefaults\"));\n\t\tuseDefaults.addActionListener(new ActionHandler());\n\t\taddComponent(useDefaults);\n\n\t\taddComponent(jEdit.getProperty(\"options.mode.filenameGlob\"),\n\t\t\tfilenameGlob = new JTextField());\n\n\t\taddComponent(jEdit.getProperty(\"options.mode.firstlineGlob\"),\n\t\t\tfirstlineGlob = new JTextField());\n\n\t\taddComponent(jEdit.getProperty(\"options.editing.noWordSep\"),\n\t\t\tnoWordSep = new JTextField());\n\n\t\tString[] foldModes = FoldHandler.getFoldModes();\n\t\taddComponent(jEdit.getProperty(\"options.editing.folding\"),\n\t\t\tfolding = new JComboBox(foldModes));\n\n\t\taddComponent(jEdit.getProperty(\"options.editing.collapseFolds\"),\n\t\t\tcollapseFolds = new JTextField());\n\n\t\tString[] wrapModes = {\n\t\t\t\"none\",\n\t\t\t\"soft\",\n\t\t\t\"hard\"\n\t\t};\n\t\taddComponent(jEdit.getProperty(\"options.editing.wrap\"),\n\t\t\twrap = new JComboBox(wrapModes));\n\n\t\tString[] lineLens = { \"0\", \"72\", \"76\", \"80\" };\n\t\taddComponent(jEdit.getProperty(\"options.editing.maxLineLen\"),\n\t\t\tmaxLineLen = new JComboBox(lineLens));\n\t\tmaxLineLen.setEditable(true);\n\n\t\tString[] tabSizes = { \"2\", \"4\", \"8\" };\n\t\taddComponent(jEdit.getProperty(\"options.editing.tabSize\"),\n\t\t\ttabSize = new JComboBox(tabSizes));\n\t\ttabSize.setEditable(true);\n\n\t\taddComponent(jEdit.getProperty(\"options.editing.indentSize\"),\n\t\t\tindentSize = new JComboBox(tabSizes));\n\t\tindentSize.setEditable(true);\n\n\t\taddComponent(noTabs = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.editing.noTabs\")));\n\n\t\taddComponent(indentOnTab = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.editing.indentOnTab\")));\n\n\t\taddComponent(indentOnEnter = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.editing.indentOnEnter\")));\n\n\t\tselectMode();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [5, 30], [0, 31], [9, 32], [10, 33], [11, 34], [12, 35], [13, 36], [13, 37], [14, 38], [15, 39], [15, 40], [16, 41], [17, 42], [17, 43], [18, 44], [18, 45], [19, 46], [19, 47], [20, 48], [20, 49], [4, 50], [21, 51], [21, 52], [22, 53], [22, 54], [23, 55], [23, 56], [25, 57], [26, 58], [27, 59], [28, 60], [29, 61], [7, 62], [32, 63], [33, 64], [34, 65], [36, 66], [37, 67], [39, 68], [40, 69], [1, 70], [1, 71], [1, 72], [42, 73], [43, 74], [2, 75], [2, 76], [2, 77], [2, 78], [44, 79], [45, 80], [3, 81], [3, 82], [3, 83], [46, 84], [47, 85], [48, 86], [49, 87], [51, 88], [52, 89], [53, 90], [54, 91], [55, 92], [56, 93], [58, 94], [59, 95], [5, 96], [5, 97], [5, 98], [63, 99], [64, 100], [65, 101], [94, 102], [97, 103], [99, 104], [100, 105], [101, 106], [96, 107], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 5], [31, 0], [32, 9], [33, 10], [34, 11], [35, 12], [36, 13], [37, 13], [38, 14], [39, 15], [40, 15], [41, 16], [42, 17], [43, 17], [44, 18], [45, 18], [46, 19], [47, 19], [48, 20], [49, 20], [50, 4], [51, 21], [52, 21], [53, 22], [54, 22], [55, 23], [56, 23], [57, 25], [58, 26], [59, 27], [60, 28], [61, 29], [62, 7], [63, 32], [64, 33], [65, 34], [66, 36], [67, 37], [68, 39], [69, 40], [70, 1], [71, 1], [72, 1], [73, 42], [74, 43], [75, 2], [76, 2], [77, 2], [78, 2], [79, 44], [80, 45], [81, 3], [82, 3], [83, 3], [84, 46], [85, 47], [86, 48], [87, 49], [88, 51], [89, 52], [90, 53], [91, 54], [92, 55], [93, 56], [94, 58], [95, 59], [96, 5], [97, 5], [98, 5], [99, 63], [100, 64], [101, 65], [102, 94], [103, 97], [104, 99], [105, 100], [106, 101], [107, 96], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107]]}, {"function_name": "_save", "code": "\tprotected void _save()\n\t{\n\t\tsaveMode();\n\n\t\tfor(int i = 0; i < modeProps.length; i++)\n\t\t{\n\t\t\tmodeProps[i].save();", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "saveMode", "code": "\tprivate void saveMode()\n\t{\n\t\tcurrent.useDefaults = useDefaults.isSelected();\n\t\tcurrent.filenameGlob = filenameGlob.getText();\n\t\tcurrent.firstlineGlob = firstlineGlob.getText();\n\t\tcurrent.noWordSep = noWordSep.getText();\n\t\tcurrent.folding = (String)folding.getSelectedItem();\n\t\tcurrent.collapseFolds = collapseFolds.getText();\n\t\tcurrent.wrap = (String)wrap.getSelectedItem();\n\t\tcurrent.maxLineLen = (String)maxLineLen.getSelectedItem();\n\t\tcurrent.tabSize = (String)tabSize.getSelectedItem();\n\t\tcurrent.indentSize = (String)indentSize.getSelectedItem();\n\t\tcurrent.noTabs = noTabs.isSelected();\n\t\tcurrent.indentOnEnter = indentOnEnter.isSelected();\n\t\tcurrent.indentOnTab = indentOnTab.isSelected();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [8, 17], [10, 18], [11, 19], [12, 20], [13, 21], [4, 22], [5, 23], [6, 24], [7, 25], [9, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 8], [18, 10], [19, 11], [20, 12], [21, 13], [22, 4], [23, 5], [24, 6], [25, 7], [26, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "selectMode", "code": "\tprivate void selectMode()\n\t{\n\t\tcurrent = modeProps[mode.getSelectedIndex()];\n\t\tcurrent.edited = true;\n\t\tcurrent.load();\n\n\t\tuseDefaults.setSelected(current.useDefaults);\n\t\tfilenameGlob.setText(current.filenameGlob);\n\t\tfirstlineGlob.setText(current.firstlineGlob);\n\t\tnoWordSep.setText(current.noWordSep);\n\t\tfolding.setSelectedItem(current.folding);\n\t\tcollapseFolds.setText(current.collapseFolds);\n\t\twrap.setSelectedItem(current.wrap);\n\t\tmaxLineLen.setSelectedItem(current.maxLineLen);\n\t\ttabSize.setSelectedItem(current.tabSize);\n\t\tindentSize.setSelectedItem(current.indentSize);\n\t\tnoTabs.setSelected(current.noTabs);\n\t\tindentOnTab.setSelected(current.indentOnTab);\n\t\tindentOnEnter.setSelected(current.indentOnEnter);\n\n\t\tupdateEnabled();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "updateEnabled", "code": "\tprivate void updateEnabled()\n\t{\n\t\tboolean enabled = !modeProps[mode.getSelectedIndex()].useDefaults;\n\t\tfilenameGlob.setEnabled(enabled);\n\t\tfirstlineGlob.setEnabled(enabled);\n\t\tnoWordSep.setEnabled(enabled);\n\t\tfolding.setEnabled(enabled);\n\t\tcollapseFolds.setEnabled(enabled);\n\t\twrap.setEnabled(enabled);\n\t\tmaxLineLen.setEnabled(enabled);\n\t\ttabSize.setEnabled(enabled);\n\t\tindentSize.setEnabled(enabled);\n\t\tnoTabs.setEnabled(enabled);\n\t\tindentOnTab.setEnabled(enabled);\n\t\tindentOnEnter.setEnabled(enabled);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "ModeOptionPane", "code": "\tpublic ModeOptionPane()\n\t{\n\t\tsuper(\"mode\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "log4j-1.1-4935", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/helpers/LogLog.java", "language": "java", "name": "org.apache.log4j.helpers.LogLog", "code": "public class LogLog {\n\n  /**\n     Defining this value makes log4j print log4j-internal debug\n     statements to <code>System.out</code>.\n     \n    <p> The value of this string is <b>log4j.debug</b>.\n    \n    <p>Note that the search for all option names is case sensitive.  */\n  public static final String DEBUG_KEY=\"log4j.debug\";\n\n \n  /**\n     Defining this value makes log4j components print log4j-internal\n     debug statements to <code>System.out</code>.\n     \n    <p> The value of this string is <b>log4j.configDebug</b>.\n    \n    <p>Note that the search for all option names is case sensitive.  \n\n    @deprecated Use {@link #DEBUG_KEY} instead.\n  */\n  public static final String CONFIG_DEBUG_KEY=\"log4j.configDebug\";\n\n  protected static boolean debugEnabled = false;  \n\n  /**\n     In quietMode not even errors generate any output.\n   */\n  private static boolean quietMode = false;\n\n  private static final String PREFIX = \"log4j: \";\n  private static final String ERR_PREFIX = \"log4j:ERROR \";\n  private static final String WARN_PREFIX = \"log4j:WARN \";\n\n  static {\n    String key = OptionConverter.getSystemProperty(DEBUG_KEY, null);\n\n    if(key == null) {\n      key = OptionConverter.getSystemProperty(CONFIG_DEBUG_KEY, null);\n    }\n\n    if(key != null) { \n      debugEnabled = OptionConverter.toBoolean(key, true);\n    }\n  }\n\n  /**\n     Allows to enable/disable log4j internal logging.\n   */\n  static\n  public\n  void setInternalDebugging(boolean enabled) {\n    debugEnabled = enabled;\n  }\n\n  /**\n     This method is used to output log4j internal debug\n     statements. Output goes to <code>System.out</code>.\n  */\n  public\n  static\n  void debug(String msg) {\n    if(debugEnabled && !quietMode) {\n      System.out.println(PREFIX+msg);\n    }\n  }\n\n  /**\n     This method is used to output log4j internal debug\n     statements. Output goes to <code>System.out</code>.\n  */\n  public\n  static\n  void debug(String msg, Throwable t) {\n    if(debugEnabled && !quietMode) {\n      System.out.println(PREFIX+msg);\n      if(t != null)\n\tt.printStackTrace(System.out);\n    }\n  }\n  \n\n  /**\n     This method is used to output log4j internal error\n     statements. There is no way to disable error statements.\n     Output goes to <code>System.err</code>.\n  */\n  public\n  static\n  void error(String msg) {\n    if(quietMode)\n      return;\n    System.err.println(ERR_PREFIX+msg);\n  }  \n\n  /**\n     This method is used to output log4j internal error\n     statements. There is no way to disable error statements.\n     Output goes to <code>System.err</code>.  \n  */\n  public\n  static\n  void error(String msg, Throwable t) {\n    if(quietMode)\n      return;\n\n    System.err.println(ERR_PREFIX+msg);\n    if(t != null) {\n      t.printStackTrace();\n    }\n  }  \n\n  /**\n     In quite mode no LogLog generates strictly no output, not even\n     for errors. \n\n     @param quietMode A true for not\n  */\n  public\n  static\n  void setQuietMode(boolean quietMode) {\n    LogLog.quietMode = quietMode;\n  }\n\n  /**\n     This method is used to output log4j internal warning\n     statements. There is no way to disable warning statements.\n     Output goes to <code>System.err</code>.  */\n  public\n  static\n  void warn(String msg) {\n    if(quietMode)\n      return;\n\n    System.err.println(WARN_PREFIX+msg);\n  }  \n\n  /**\n     This method is used to output log4j internal warnings. There is\n     no way to disable warning statements.  Output goes to\n     <code>System.err</code>.  */\n  public\n  static\n  void warn(String msg, Throwable t) {\n    if(quietMode)\n      return;\n\n    System.err.println(WARN_PREFIX+msg);\n    if(t != null) {\n      t.printStackTrace();", "functions": [{"function_name": "setInternalDebugging", "code": "  void setInternalDebugging(boolean enabled) {\n    debugEnabled = enabled;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "debug", "code": "  void debug(String msg) {\n    if(debugEnabled && !quietMode) {\n      System.out.println(PREFIX+msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "debug", "code": "  void debug(String msg, Throwable t) {\n    if(debugEnabled && !quietMode) {\n      System.out.println(PREFIX+msg);\n      if(t != null)\n\tt.printStackTrace(System.out);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 1], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "error", "code": "  void error(String msg) {\n    if(quietMode)\n      return;\n    System.err.println(ERR_PREFIX+msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "error", "code": "  void error(String msg, Throwable t) {\n    if(quietMode)\n      return;\n\n    System.err.println(ERR_PREFIX+msg);\n    if(t != null) {\n      t.printStackTrace();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [5, 8], [6, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 5], [9, 6], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setQuietMode", "code": "  void setQuietMode(boolean quietMode) {\n    LogLog.quietMode = quietMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "warn", "code": "  void warn(String msg) {\n    if(quietMode)\n      return;\n\n    System.err.println(WARN_PREFIX+msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "warn", "code": "  void warn(String msg, Throwable t) {\n    if(quietMode)\n      return;\n\n    System.err.println(WARN_PREFIX+msg);\n    if(t != null) {\n      t.printStackTrace();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [5, 8], [6, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 5], [9, 6], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "xalan-2.6-7777", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/dom/StepIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.StepIterator", "code": "public class StepIterator extends DTMAxisIteratorBase {\n\n    /**\n     * A reference to the \"outer\" iterator.\n     */\n    protected DTMAxisIterator _source;\n\n    /**\n     * A reference to the \"inner\" iterator.\n     */\n    protected DTMAxisIterator _iterator;\n\n    /**\n     * Temp variable to store a marked position.\n     */\n    private int _pos = -1;\n\n    public StepIterator(DTMAxisIterator source, DTMAxisIterator iterator) {\n\t_source = source;\n\t_iterator = iterator;\n    }\n\n\n    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);\n    }\n\n    public DTMAxisIterator cloneIterator() {\n\t_isRestartable = false;\n\ttry {\n\t    final StepIterator clone = (StepIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._iterator = _iterator.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;\n\t}\n    }\n    \n    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(_startNode = node);\n\n\t    _iterator.setStartNode(_includeSelf ? _startNode : _source.next());\n\t    return resetPosition();\n\t}\n\treturn this;\n    }\n\n    public DTMAxisIterator reset() {\n\t_source.reset();\n\t_iterator.setStartNode(_includeSelf ? _startNode : _source.next());\n\treturn resetPosition();\n    }\n    \n    public int next() {\n\tfor (int node;;) {\n\t    if ((node = _iterator.next()) != END) {\n\t\treturn returnNode(node);\n\t    }\n\t    else if ((node = _source.next()) == END) {\n\t\treturn END;\n\t    }\n\t    else {\n\t\t_iterator.setStartNode(node);\n\t    }\n\t}\n    }\n\n    public void setMark() {\n\t_source.setMark();\n\t_iterator.setMark();\n    }\n\n    public void gotoMark() {\n\t_source.gotoMark();\n\t_iterator.gotoMark();", "functions": [{"function_name": "setRestartable", "code": "    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "cloneIterator", "code": "    public DTMAxisIterator cloneIterator() {\n\t_isRestartable = false;\n\ttry {\n\t    final StepIterator clone = (StepIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._iterator = _iterator.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "ASSIGN", "RETURN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [0, 5], [2, 6], [3, 7], [1, 8], [1, 9], [1, 10], [5, 11], [6, 12], [2, 13], [8, 14], [9, 15], [10, 16], [13, 17], [1, 0], [2, 1], [3, 1], [4, 1], [5, 0], [6, 2], [7, 3], [8, 1], [9, 1], [10, 1], [11, 5], [12, 6], [13, 2], [14, 8], [15, 9], [16, 10], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(_startNode = node);\n\n\t    _iterator.setStartNode(_includeSelf ? _startNode : _source.next());\n\t    return resetPosition();\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "CALL", "CALL", "CALL", "COND_EXPR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [6, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 6], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n\t_source.reset();\n\t_iterator.setStartNode(_includeSelf ? _startNode : _source.next());\n\treturn resetPosition();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "COND_EXPR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [3, 5], [5, 6], [1, 0], [2, 1], [3, 0], [4, 0], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "next", "code": "    public int next() {\n\tfor (int node;;) {\n\t    if ((node = _iterator.next()) != END) {\n\t\treturn returnNode(node);\n\t    }\n\t    else if ((node = _source.next()) == END) {\n\t\treturn END;\n\t    }\n\t    else {\n\t\t_iterator.setStartNode(node);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "RETURN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [2, 6], [4, 7], [3, 8], [5, 9], [6, 10], [7, 11], [3, 12], [9, 13], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 2], [7, 4], [8, 3], [9, 5], [10, 6], [11, 7], [12, 3], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_source.setMark();\n\t_iterator.setMark();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_source.gotoMark();\n\t_iterator.gotoMark();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "StepIterator", "code": "    public StepIterator(DTMAxisIterator source, DTMAxisIterator iterator) {\n\t_source = source;\n\t_iterator = iterator;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.6-7640", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/axes/AttributeIterator.java", "language": "java", "name": "org.apache.xpath.axes.AttributeIterator", "code": "public class AttributeIterator extends ChildTestIterator\n{\n\n  /**\n   * Create a AttributeIterator object.\n   *\n   * @param compiler A reference to the Compiler that contains the op map.\n   * @param opPos The position within the op map, which contains the\n   * location path expression for this itterator.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  AttributeIterator(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis);\n  }\n    \n  /**\n   * Get the next node via getFirstAttribute && getNextAttribute.\n   */\n  protected int getNextNode()\n  {\n    m_lastFetched = (DTM.NULL == m_lastFetched)\n                     ? m_cdtm.getFirstAttribute(m_context)\n                     : m_cdtm.getNextAttribute(m_lastFetched);\n    return m_lastFetched;\n  }\n  \n  /**\n   * Returns the axis being iterated, if it is known.\n   * \n   * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple \n   * types.\n   */\n  public int getAxis()\n  {\n    return org.apache.xml.dtm.Axis.ATTRIBUTE;", "functions": [{"function_name": "getNextNode", "code": "  protected int getNextNode()\n  {\n    m_lastFetched = (DTM.NULL == m_lastFetched)\n                     ? m_cdtm.getFirstAttribute(m_context)\n                     : m_cdtm.getNextAttribute(m_lastFetched);\n    return m_lastFetched;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "COND_EXPR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getAxis", "code": "  public int getAxis()\n  {\n    return org.apache.xml.dtm.Axis.ATTRIBUTE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "AttributeIterator", "code": "  AttributeIterator(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "ant-1.7-821", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/AntClassLoader.java", "language": "java", "name": "org.apache.tools.ant.AntClassLoader", "code": "public class AntClassLoader extends ClassLoader implements SubBuildListener {\n\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n\n    /**\n     * An enumeration of all resources of a given name found within the\n     * classpath of this class loader. This enumeration is used by the\n     * ClassLoader.findResources method, which is in\n     * turn used by the ClassLoader.getResources method.\n     *\n     * @see AntClassLoader#findResources(String)\n     * @see java.lang.ClassLoader#getResources(String)\n     */\n    private class ResourceEnumeration implements Enumeration {\n        /**\n         * The name of the resource being searched for.\n         */\n        private String resourceName;\n\n        /**\n         * The index of the next classpath element to search.\n         */\n        private int pathElementsIndex;\n\n        /**\n         * The URL of the next resource to return in the enumeration. If this\n         * field is <code>null</code> then the enumeration has been completed,\n         * i.e., there are no more elements to return.\n         */\n        private URL nextResource;\n\n        /**\n         * Constructs a new enumeration of resources of the given name found\n         * within this class loader's classpath.\n         *\n         * @param name the name of the resource to search for.\n         */\n        ResourceEnumeration(String name) {\n            this.resourceName = name;\n            this.pathElementsIndex = 0;\n            findNextResource();\n        }\n\n        /**\n         * Indicates whether there are more elements in the enumeration to\n         * return.\n         *\n         * @return <code>true</code> if there are more elements in the\n         *         enumeration; <code>false</code> otherwise.\n         */\n        public boolean hasMoreElements() {\n            return (this.nextResource != null);\n        }\n\n        /**\n         * Returns the next resource in the enumeration.\n         *\n         * @return the next resource in the enumeration\n         */\n        public Object nextElement() {\n            URL ret = this.nextResource;\n            findNextResource();\n            return ret;\n        }\n\n        /**\n         * Locates the next resource of the correct name in the classpath and\n         * sets <code>nextResource</code> to the URL of that resource. If no\n         * more resources can be found, <code>nextResource</code> is set to\n         * <code>null</code>.\n         */\n        private void findNextResource() {\n            URL url = null;\n            while ((pathElementsIndex < pathComponents.size())\n                   && (url == null)) {\n                try {\n                    File pathComponent\n                        = (File) pathComponents.elementAt(pathElementsIndex);\n                    url = getResourceURL(pathComponent, this.resourceName);\n                    pathElementsIndex++;\n                } catch (BuildException e) {\n                }\n            }\n            this.nextResource = url;\n        }\n    }\n\n    /**\n     * The size of buffers to be used in this classloader.\n     */\n    private static final int BUFFER_SIZE = 8192;\n    /**\n     * Number of array elements in a test array of strings\n     */\n    private static final int NUMBER_OF_STRINGS = 256;\n\n    /**\n     * The components of the classpath that the classloader searches\n     * for classes.\n     */\n    private Vector pathComponents  = new Vector();\n\n    /**\n     * The project to which this class loader belongs.\n     */\n    private Project project;\n\n    /**\n     * Indicates whether the parent class loader should be\n     * consulted before trying to load with this class loader.\n     */\n    private boolean parentFirst = true;\n\n    /**\n     * These are the package roots that are to be loaded by the parent class\n     * loader regardless of whether the parent class loader is being searched\n     * first or not.\n     */\n    private Vector systemPackages = new Vector();\n\n    /**\n     * These are the package roots that are to be loaded by this class loader\n     * regardless of whether the parent class loader is being searched first\n     * or not.\n     */\n    private Vector loaderPackages = new Vector();\n\n    /**\n     * Whether or not this classloader will ignore the base\n     * classloader if it can't find a class.\n     *\n     * @see #setIsolated(boolean)\n     */\n    private boolean ignoreBase = false;\n\n    /**\n     * The parent class loader, if one is given or can be determined.\n     */\n    private ClassLoader parent = null;\n\n    /**\n     * A hashtable of zip files opened by the classloader (File to ZipFile).\n     */\n    private Hashtable zipFiles = new Hashtable();\n\n    /** Static map of jar file/time to manifest class-path entries */\n    private static Map/*<String,String>*/ pathMap = Collections.synchronizedMap(new HashMap());\n\n    /**\n     * The context loader saved when setting the thread's current\n     * context loader.\n     */\n    private ClassLoader savedContextLoader = null;\n    /**\n     * Whether or not the context loader is currently saved.\n     */\n    private boolean isContextLoaderSaved = false;\n\n    /**\n     * Create an Ant ClassLoader for a given project, with\n     * a parent classloader and an initial classpath.\n     * @since Ant 1.7.\n     * @param parent the parent for this classloader.\n     * @param project The project to which this classloader is to\n     *                belong.\n     * @param classpath The classpath to use to load classes.\n     */\n    public AntClassLoader(\n        ClassLoader parent, Project project, Path classpath) {\n        setParent(parent);\n        setClassPath(classpath);\n        setProject(project);\n    }\n\n    /**\n     * Create an Ant Class Loader\n     */\n    public AntClassLoader() {\n        setParent(null);\n    }\n\n    /**\n     * Creates a classloader for the given project using the classpath given.\n     *\n     * @param project The project to which this classloader is to belong.\n     *                Must not be <code>null</code>.\n     * @param classpath The classpath to use to load the classes.  This\n     *                is combined with the system classpath in a manner\n     *                determined by the value of ${build.sysclasspath}.\n     *                May be <code>null</code>, in which case no path\n     *                elements are set up to start with.\n     */\n    public AntClassLoader(Project project, Path classpath) {\n        setParent(null);\n        setProject(project);\n        setClassPath(classpath);\n    }\n\n    /**\n     * Creates a classloader for the given project using the classpath given.\n     *\n     * @param parent The parent classloader to which unsatisfied loading\n     *               attempts are delegated. May be <code>null</code>,\n     *               in which case the classloader which loaded this\n     *               class is used as the parent.\n     * @param project The project to which this classloader is to belong.\n     *                Must not be <code>null</code>.\n     * @param classpath the classpath to use to load the classes.\n     *                  May be <code>null</code>, in which case no path\n     *                  elements are set up to start with.\n     * @param parentFirst If <code>true</code>, indicates that the parent\n     *                    classloader should be consulted  before trying to\n     *                    load the a class through this loader.\n     */\n    public AntClassLoader(ClassLoader parent, Project project, Path classpath,\n                          boolean parentFirst) {\n        this(project, classpath);\n        if (parent != null) {\n            setParent(parent);\n        }\n        setParentFirst(parentFirst);\n        addJavaLibraries();\n    }\n\n\n    /**\n     * Creates a classloader for the given project using the classpath given.\n     *\n     * @param project The project to which this classloader is to belong.\n     *                Must not be <code>null</code>.\n     * @param classpath The classpath to use to load the classes. May be\n     *                  <code>null</code>, in which case no path\n     *                  elements are set up to start with.\n     * @param parentFirst If <code>true</code>, indicates that the parent\n     *                    classloader should be consulted before trying to\n     *                    load the a class through this loader.\n     */\n    public AntClassLoader(Project project, Path classpath,\n                          boolean parentFirst) {\n        this(null, project, classpath, parentFirst);\n    }\n\n    /**\n     * Creates an empty class loader. The classloader should be configured\n     * with path elements to specify where the loader is to look for\n     * classes.\n     *\n     * @param parent The parent classloader to which unsatisfied loading\n     *               attempts are delegated. May be <code>null</code>,\n     *               in which case the classloader which loaded this\n     *               class is used as the parent.\n     * @param parentFirst If <code>true</code>, indicates that the parent\n     *                    classloader should be consulted before trying to\n     *                    load the a class through this loader.\n     */\n    public AntClassLoader(ClassLoader parent, boolean parentFirst) {\n        setParent(parent);\n        project = null;\n        this.parentFirst = parentFirst;\n    }\n\n    /**\n     * Set the project associated with this class loader\n     *\n     * @param project the project instance\n     */\n    public void setProject(Project project) {\n        this.project = project;\n        if (project != null) {\n            project.addBuildListener(this);\n        }\n    }\n\n    /**\n     * Set the classpath to search for classes to load. This should not be\n     * changed once the classloader starts to server classes\n     *\n     * @param classpath the search classpath consisting of directories and\n     *        jar/zip files.\n     */\n    public void setClassPath(Path classpath) {\n        pathComponents.removeAllElements();\n        if (classpath != null) {\n            Path actualClasspath = classpath.concatSystemClasspath(\"ignore\");\n            String[] pathElements = actualClasspath.list();\n            for (int i = 0; i < pathElements.length; ++i) {\n                try {\n                    addPathElement(pathElements[i]);\n                } catch (BuildException e) {\n                }\n            }\n        }\n    }\n\n    /**\n     * Set the parent for this class loader. This is the class loader to which\n     * this class loader will delegate to load classes\n     *\n     * @param parent the parent class loader.\n     */\n    public void setParent(ClassLoader parent) {\n        if (parent == null) {\n            this.parent = AntClassLoader.class.getClassLoader();\n        } else {\n            this.parent = parent;\n        }\n    }\n\n    /**\n     * Control whether class lookup is delegated to the parent loader first\n     * or after this loader. Use with extreme caution. Setting this to\n     * false violates the class loader hierarchy and can lead to Linkage errors\n     *\n     * @param parentFirst if true, delegate initial class search to the parent\n     *                    classloader.\n     */\n    public void setParentFirst(boolean parentFirst) {\n        this.parentFirst = parentFirst;\n    }\n\n\n    /**\n     * Logs a message through the project object if one has been provided.\n     *\n     * @param message The message to log.\n     *                Should not be <code>null</code>.\n     *\n     * @param priority The logging priority of the message.\n     */\n    protected void log(String message, int priority) {\n        if (project != null) {\n            project.log(message, priority);\n        }\n    }\n\n    /**\n     * Sets the current thread's context loader to this classloader, storing\n     * the current loader value for later resetting.\n     */\n    public void setThreadContextLoader() {\n        if (isContextLoaderSaved) {\n            throw new BuildException(\"Context loader has not been reset\");\n        }\n        if (LoaderUtils.isContextLoaderAvailable()) {\n            savedContextLoader = LoaderUtils.getContextClassLoader();\n            ClassLoader loader = this;\n            if (project != null\n                && \"only\".equals(project.getProperty(\"build.sysclasspath\"))) {\n                loader = this.getClass().getClassLoader();\n            }\n            LoaderUtils.setContextClassLoader(loader);\n            isContextLoaderSaved = true;\n        }\n    }\n\n    /**\n     * Resets the current thread's context loader to its original value.\n     */\n    public void resetThreadContextLoader() {\n        if (LoaderUtils.isContextLoaderAvailable()\n            && isContextLoaderSaved) {\n            LoaderUtils.setContextClassLoader(savedContextLoader);\n            savedContextLoader = null;\n            isContextLoaderSaved = false;\n        }\n    }\n\n\n    /**\n     * Adds an element to the classpath to be searched.\n     *\n     * @param pathElement The path element to add. Must not be\n     *                    <code>null</code>.\n     *\n     * @exception BuildException if the given path element cannot be resolved\n     *                           against the project.\n     */\n    public void addPathElement(String pathElement) throws BuildException {\n        File pathComponent\n            = project != null ? project.resolveFile(pathElement)\n            : new File(pathElement);\n        try {\n            addPathFile(pathComponent);\n        } catch (IOException e) {\n            throw new BuildException(e);\n        }\n    }\n\n    /**\n     * Add a path component.\n     * This simply adds the file, unlike addPathElement\n     * it does not open jar files and load files from\n     * their CLASSPATH entry in the manifest file.\n     * @param file the jar file or directory to add.\n     */\n    public void addPathComponent(File file) {\n        if (pathComponents.contains(file)) {\n            return;\n        }\n        pathComponents.addElement(file);\n    }\n\n    /**\n     * Add a file to the path.\n     * Reads the manifest, if available, and adds any additional class path jars\n     * specified in the manifest.\n     *\n     * @param pathComponent the file which is to be added to the path for\n     *                      this class loader\n     *\n     * @throws IOException if data needed from the file cannot be read.\n     */\n    protected void addPathFile(File pathComponent) throws IOException {\n        pathComponents.addElement(pathComponent);\n        if (pathComponent.isDirectory()) {\n            return;\n        }\n\n        String absPathPlusTimeAndLength =\n            pathComponent.getAbsolutePath() + pathComponent.lastModified() + \"-\"\n            + pathComponent.length();\n        String classpath = (String) pathMap.get(absPathPlusTimeAndLength);\n        if (classpath == null) {\n            ZipFile jarFile = null;\n            InputStream manifestStream = null;\n            try {\n                jarFile = new ZipFile(pathComponent);\n                manifestStream\n                    = jarFile.getInputStream(new ZipEntry(\"META-INF/MANIFEST.MF\"));\n\n                if (manifestStream == null) {\n                    return;\n                }\n                Reader manifestReader\n                    = new InputStreamReader(manifestStream, \"UTF-8\");\n                org.apache.tools.ant.taskdefs.Manifest manifest\n                    = new org.apache.tools.ant.taskdefs.Manifest(manifestReader);\n                classpath\n                    = manifest.getMainSection().getAttributeValue(\"Class-Path\");\n\n            } catch (org.apache.tools.ant.taskdefs.ManifestException e) {\n            } finally {\n                FileUtils.close(manifestStream);\n                if (jarFile != null) {\n                    jarFile.close();\n                }\n            }\n            if (classpath == null) {\n                classpath = \"\";\n            }\n            pathMap.put(absPathPlusTimeAndLength, classpath);\n        }\n\n        if (!\"\".equals(classpath)) {\n            URL baseURL = FILE_UTILS.getFileURL(pathComponent);\n            StringTokenizer st = new StringTokenizer(classpath);\n            while (st.hasMoreTokens()) {\n                String classpathElement = st.nextToken();\n                URL libraryURL = new URL(baseURL, classpathElement);\n                if (!libraryURL.getProtocol().equals(\"file\")) {\n                    log(\"Skipping jar library \" + classpathElement\n                        + \" since only relative URLs are supported by this\"\n                        + \" loader\", Project.MSG_VERBOSE);\n                    continue;\n                }\n                String decodedPath = Locator.decodeUri(libraryURL.getFile());\n                File libraryFile = new File(decodedPath);\n                if (libraryFile.exists() && !isInPath(libraryFile)) {\n                    addPathFile(libraryFile);\n                }\n            }\n        }\n    }\n\n    /**\n     * Returns the classpath this classloader will consult.\n     *\n     * @return the classpath used for this classloader, with elements\n     *         separated by the path separator for the system.\n     */\n    public String getClasspath() {\n        StringBuffer sb = new StringBuffer();\n        boolean firstPass = true;\n        Enumeration componentEnum = pathComponents.elements();\n        while (componentEnum.hasMoreElements()) {\n            if (!firstPass) {\n                sb.append(System.getProperty(\"path.separator\"));\n            } else {\n                firstPass = false;\n            }\n            sb.append(((File) componentEnum.nextElement()).getAbsolutePath());\n        }\n        return sb.toString();\n    }\n\n    /**\n     * Sets whether this classloader should run in isolated mode. In\n     * isolated mode, classes not found on the given classpath will\n     * not be referred to the parent class loader but will cause a\n     * ClassNotFoundException.\n     *\n     * @param isolated Whether or not this classloader should run in\n     *                 isolated mode.\n     */\n    public synchronized void setIsolated(boolean isolated) {\n        ignoreBase = isolated;\n    }\n\n    /**\n     * Forces initialization of a class in a JDK 1.1 compatible, albeit hacky\n     * way.\n     *\n     * @param theClass The class to initialize.\n     *                 Must not be <code>null</code>.\n     *\n     * @deprecated since 1.6.x.\n     *             Use Class.forName with initialize=true instead.\n     */\n    public static void initializeClass(Class theClass) {\n\n        final Constructor[] cons = theClass.getDeclaredConstructors();\n        if (cons != null) {\n            if (cons.length > 0 && cons[0] != null) {\n                final String[] strs = new String[NUMBER_OF_STRINGS];\n                try {\n                    cons[0].newInstance((Object[]) strs);\n                } catch (Exception e) {\n                }\n            }\n        }\n    }\n\n    /**\n     * Adds a package root to the list of packages which must be loaded on the\n     * parent loader.\n     *\n     * All subpackages are also included.\n     *\n     * @param packageRoot The root of all packages to be included.\n     *                    Should not be <code>null</code>.\n     */\n    public void addSystemPackageRoot(String packageRoot) {\n        systemPackages.addElement(packageRoot\n                                  + (packageRoot.endsWith(\".\") ? \"\" : \".\"));\n    }\n\n    /**\n     * Adds a package root to the list of packages which must be loaded using\n     * this loader.\n     *\n     * All subpackages are also included.\n     *\n     * @param packageRoot The root of all packages to be included.\n     *                    Should not be <code>null</code>.\n     */\n    public void addLoaderPackageRoot(String packageRoot) {\n        loaderPackages.addElement(packageRoot\n                                  + (packageRoot.endsWith(\".\") ? \"\" : \".\"));\n    }\n\n    /**\n     * Loads a class through this class loader even if that class is available\n     * on the parent classpath.\n     *\n     * This ensures that any classes which are loaded by the returned class\n     * will use this classloader.\n     *\n     * @param classname The name of the class to be loaded.\n     *                  Must not be <code>null</code>.\n     *\n     * @return the required Class object\n     *\n     * @exception ClassNotFoundException if the requested class does not exist\n     *                                   on this loader's classpath.\n     */\n    public Class forceLoadClass(String classname)\n        throws ClassNotFoundException {\n        log(\"force loading \" + classname, Project.MSG_DEBUG);\n\n        Class theClass = findLoadedClass(classname);\n\n        if (theClass == null) {\n            theClass = findClass(classname);\n        }\n\n        return theClass;\n    }\n\n    /**\n     * Loads a class through this class loader but defer to the parent class\n     * loader.\n     *\n     * This ensures that instances of the returned class will be compatible\n     * with instances which have already been loaded on the parent\n     * loader.\n     *\n     * @param classname The name of the class to be loaded.\n     *                  Must not be <code>null</code>.\n     *\n     * @return the required Class object\n     *\n     * @exception ClassNotFoundException if the requested class does not exist\n     * on this loader's classpath.\n     */\n    public Class forceLoadSystemClass(String classname)\n        throws ClassNotFoundException {\n        log(\"force system loading \" + classname, Project.MSG_DEBUG);\n\n        Class theClass = findLoadedClass(classname);\n\n        if (theClass == null) {\n            theClass = findBaseClass(classname);\n        }\n\n        return theClass;\n    }\n\n    /**\n     * Returns a stream to read the requested resource name.\n     *\n     * @param name The name of the resource for which a stream is required.\n     *             Must not be <code>null</code>.\n     *\n     * @return a stream to the required resource or <code>null</code> if the\n     *         resource cannot be found on the loader's classpath.\n     */\n    public InputStream getResourceAsStream(String name) {\n\n        InputStream resourceStream = null;\n        if (isParentFirst(name)) {\n            resourceStream = loadBaseResource(name);\n            if (resourceStream != null) {\n                log(\"ResourceStream for \" + name\n                    + \" loaded from parent loader\", Project.MSG_DEBUG);\n\n            } else {\n                resourceStream = loadResource(name);\n                if (resourceStream != null) {\n                    log(\"ResourceStream for \" + name\n                        + \" loaded from ant loader\", Project.MSG_DEBUG);\n                }\n            }\n        } else {\n            resourceStream = loadResource(name);\n            if (resourceStream != null) {\n                log(\"ResourceStream for \" + name\n                    + \" loaded from ant loader\", Project.MSG_DEBUG);\n\n            } else {\n                resourceStream = loadBaseResource(name);\n                if (resourceStream != null) {\n                    log(\"ResourceStream for \" + name\n                        + \" loaded from parent loader\", Project.MSG_DEBUG);\n                }\n            }\n        }\n\n        if (resourceStream == null) {\n            log(\"Couldn't load ResourceStream for \" + name,\n                Project.MSG_DEBUG);\n        }\n\n        return resourceStream;\n    }\n\n    /**\n     * Returns a stream to read the requested resource name from this loader.\n     *\n     * @param name The name of the resource for which a stream is required.\n     *             Must not be <code>null</code>.\n     *\n     * @return a stream to the required resource or <code>null</code> if\n     *         the resource cannot be found on the loader's classpath.\n     */\n    private InputStream loadResource(String name) {\n        InputStream stream = null;\n\n        Enumeration e = pathComponents.elements();\n        while (e.hasMoreElements() && stream == null) {\n            File pathComponent = (File) e.nextElement();\n            stream = getResourceStream(pathComponent, name);\n        }\n        return stream;\n    }\n\n    /**\n     * Finds a system resource (which should be loaded from the parent\n     * classloader).\n     *\n     * @param name The name of the system resource to load.\n     *             Must not be <code>null</code>.\n     *\n     * @return a stream to the named resource, or <code>null</code> if\n     *         the resource cannot be found.\n     */\n    private InputStream loadBaseResource(String name) {\n        if (parent == null) {\n            return getSystemResourceAsStream(name);\n        } else {\n            return parent.getResourceAsStream(name);\n        }\n    }\n\n    /**\n     * Returns an inputstream to a given resource in the given file which may\n     * either be a directory or a zip file.\n     *\n     * @param file the file (directory or jar) in which to search for the\n     *             resource. Must not be <code>null</code>.\n     * @param resourceName The name of the resource for which a stream is\n     *                     required. Must not be <code>null</code>.\n     *\n     * @return a stream to the required resource or <code>null</code> if\n     *         the resource cannot be found in the given file.\n     */\n    private InputStream getResourceStream(File file, String resourceName) {\n        try {\n            ZipFile zipFile = (ZipFile) zipFiles.get(file);\n            if (zipFile == null && file.isDirectory()) {\n                File resource = new File(file, resourceName);\n\n                if (resource.exists()) {\n                    return new FileInputStream(resource);\n                }\n            } else {\n                if (zipFile == null) {\n                    if (file.exists()) {\n\n                        zipFile = new ZipFile(file);\n                        zipFiles.put(file, zipFile);\n                    } else {\n                        return null;\n                    }\n                    zipFile = (ZipFile) zipFiles.get(file);\n                }\n                ZipEntry entry = zipFile.getEntry(resourceName);\n                if (entry != null) {\n                    return zipFile.getInputStream(entry);\n                }\n            }\n        } catch (Exception e) {\n            log(\"Ignoring Exception \" + e.getClass().getName() + \": \"\n                    + e.getMessage() + \" reading resource \" + resourceName\n                    + \" from \" + file, Project.MSG_VERBOSE);\n        }\n\n        return null;\n    }\n\n    /**\n     * Tests whether or not the parent classloader should be checked for a\n     * resource before this one. If the resource matches both the \"use parent\n     * classloader first\" and the \"use this classloader first\" lists, the latter\n     * takes priority.\n     *\n     * @param resourceName\n     *            The name of the resource to check. Must not be\n     *            <code>null</code>.\n     *\n     * @return whether or not the parent classloader should be checked for a\n     *         resource before this one is.\n     */\n    private boolean isParentFirst(String resourceName) {\n\n\n        boolean useParentFirst = parentFirst;\n\n        for (Enumeration e = systemPackages.elements(); e.hasMoreElements();) {\n            String packageName = (String) e.nextElement();\n            if (resourceName.startsWith(packageName)) {\n                useParentFirst = true;\n                break;\n            }\n        }\n\n        for (Enumeration e = loaderPackages.elements(); e.hasMoreElements();) {\n            String packageName = (String) e.nextElement();\n            if (resourceName.startsWith(packageName)) {\n                useParentFirst = false;\n                break;\n            }\n        }\n\n        return useParentFirst;\n    }\n\n    /**\n     * Used for isolated resource seaching.\n     * @return the root classloader of AntClassLoader.\n     */\n    private ClassLoader getRootLoader() {\n        ClassLoader ret = getClass().getClassLoader();\n        while (ret != null && ret.getParent() != null) {\n            ret = ret.getParent();\n        }\n        return ret;\n    }\n\n    /**\n     * Finds the resource with the given name. A resource is\n     * some data (images, audio, text, etc) that can be accessed by class\n     * code in a way that is independent of the location of the code.\n     *\n     * @param name The name of the resource for which a stream is required.\n     *             Must not be <code>null</code>.\n     *\n     * @return a URL for reading the resource, or <code>null</code> if the\n     *         resource could not be found or the caller doesn't have\n     *         adequate privileges to get the resource.\n     */\n    public URL getResource(String name) {\n        URL url = null;\n        if (isParentFirst(name)) {\n            url = (parent == null) ? super.getResource(name)\n                : parent.getResource(name);\n        }\n\n        if (url != null) {\n            log(\"Resource \" + name + \" loaded from parent loader\",\n                Project.MSG_DEBUG);\n\n        } else {\n            Enumeration e = pathComponents.elements();\n            while (e.hasMoreElements() && url == null) {\n                File pathComponent = (File) e.nextElement();\n                url = getResourceURL(pathComponent, name);\n                if (url != null) {\n                    log(\"Resource \" + name\n                        + \" loaded from ant loader\",\n                        Project.MSG_DEBUG);\n                }\n            }\n        }\n\n        if (url == null && !isParentFirst(name)) {\n            if (ignoreBase) {\n                url = (getRootLoader() == null) ? null\n                    : getRootLoader().getResource(name);\n            } else {\n                url = (parent == null) ? super.getResource(name)\n                    : parent.getResource(name);\n            }\n            if (url != null) {\n                log(\"Resource \" + name + \" loaded from parent loader\",\n                    Project.MSG_DEBUG);\n            }\n        }\n\n        if (url == null) {\n            log(\"Couldn't load Resource \" + name, Project.MSG_DEBUG);\n        }\n\n        return url;\n    }\n\n    /**\n     * Returns an enumeration of URLs representing all the resources with the\n     * given name by searching the class loader's classpath.\n     *\n     * @param name The resource name to search for.\n     *             Must not be <code>null</code>.\n     * @return an enumeration of URLs for the resources\n     * @exception IOException if I/O errors occurs (can't happen)\n     */\n    protected Enumeration/*<URL>*/ findResources(String name) throws IOException {\n        Enumeration/*<URL>*/ mine = new ResourceEnumeration(name);\n        Enumeration/*<URL>*/ base;\n        if (parent != null && parent != getParent()) {\n            base = parent.getResources(name);\n        } else {\n            base = new CollectionUtils.EmptyEnumeration();\n        }\n        if (isParentFirst(name)) {\n            return CollectionUtils.append(base, mine);\n        } else if (ignoreBase) {\n            return getRootLoader() == null\n                ? mine\n                : CollectionUtils.append(\n                    mine, getRootLoader().getResources(name));\n        } else {\n            return CollectionUtils.append(mine, base);\n        }\n    }\n\n    /**\n     * Returns the URL of a given resource in the given file which may\n     * either be a directory or a zip file.\n     *\n     * @param file The file (directory or jar) in which to search for\n     *             the resource. Must not be <code>null</code>.\n     * @param resourceName The name of the resource for which a stream\n     *                     is required. Must not be <code>null</code>.\n     *\n     * @return a stream to the required resource or <code>null</code> if the\n     *         resource cannot be found in the given file object.\n     */\n    protected URL getResourceURL(File file, String resourceName) {\n        try {\n            ZipFile zipFile = (ZipFile) zipFiles.get(file);\n            if (zipFile == null && file.isDirectory()) {\n                File resource = new File(file, resourceName);\n\n                if (resource.exists()) {\n                    try {\n                        return FILE_UTILS.getFileURL(resource);\n                    } catch (MalformedURLException ex) {\n                        return null;\n                    }\n                }\n            } else {\n                if (zipFile == null) {\n                    if (file.exists()) {\n                        zipFile = new ZipFile(file);\n                        zipFiles.put(file, zipFile);\n                    } else {\n                        return null;\n                    }\n                }\n                ZipEntry entry = zipFile.getEntry(resourceName);\n                if (entry != null) {\n                    try {\n                        return new URL(\"jar:\" + FILE_UTILS.getFileURL(file)\n                                       + \"!/\" + entry);\n                    } catch (MalformedURLException ex) {\n                        return null;\n                    }\n                }\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n\n        return null;\n    }\n\n    /**\n     * Loads a class with this class loader.\n     *\n     * This class attempts to load the class in an order determined by whether\n     * or not the class matches the system/loader package lists, with the\n     * loader package list taking priority. If the classloader is in isolated\n     * mode, failure to load the class in this loader will result in a\n     * ClassNotFoundException.\n     *\n     * @param classname The name of the class to be loaded.\n     *                  Must not be <code>null</code>.\n     * @param resolve <code>true</code> if all classes upon which this class\n     *                depends are to be loaded.\n     *\n     * @return the required Class object\n     *\n     * @exception ClassNotFoundException if the requested class does not exist\n     * on the system classpath (when not in isolated mode) or this loader's\n     * classpath.\n     */\n    protected synchronized Class loadClass(String classname, boolean resolve)\n        throws ClassNotFoundException {\n\n        Class theClass = findLoadedClass(classname);\n        if (theClass != null) {\n            return theClass;\n        }\n\n        if (isParentFirst(classname)) {\n            try {\n                theClass = findBaseClass(classname);\n                log(\"Class \" + classname + \" loaded from parent loader \"\n                    + \"(parentFirst)\", Project.MSG_DEBUG);\n            } catch (ClassNotFoundException cnfe) {\n                theClass = findClass(classname);\n                log(\"Class \" + classname + \" loaded from ant loader \"\n                    + \"(parentFirst)\", Project.MSG_DEBUG);\n            }\n        } else {\n            try {\n                theClass = findClass(classname);\n                log(\"Class \" + classname + \" loaded from ant loader\",\n                    Project.MSG_DEBUG);\n            } catch (ClassNotFoundException cnfe) {\n                if (ignoreBase) {\n                    throw cnfe;\n                }\n                theClass = findBaseClass(classname);\n                log(\"Class \" + classname + \" loaded from parent loader\",\n                    Project.MSG_DEBUG);\n            }\n        }\n\n        if (resolve) {\n            resolveClass(theClass);\n        }\n\n        return theClass;\n    }\n\n    /**\n     * Converts the class dot notation to a filesystem equivalent for\n     * searching purposes.\n     *\n     * @param classname The class name in dot format (eg java.lang.Integer).\n     *                  Must not be <code>null</code>.\n     *\n     * @return the classname in filesystem format (eg java/lang/Integer.class)\n     */\n    private String getClassFilename(String classname) {\n        return classname.replace('.', '/') + \".class\";\n    }\n\n    /**\n     * Define a class given its bytes\n     *\n     * @param container the container from which the class data has been read\n     *                  may be a directory or a jar/zip file.\n     *\n     * @param classData the bytecode data for the class\n     * @param classname the name of the class\n     *\n     * @return the Class instance created from the given data\n     *\n     * @throws IOException if the class data cannot be read.\n     */\n    protected Class defineClassFromData(File container, byte[] classData,\n                                        String classname) throws IOException {\n        definePackage(container, classname);\n        return defineClass(classname, classData, 0, classData.length,\n                           Project.class.getProtectionDomain());\n    }\n\n    /**\n     * Define the package information associated with a class.\n     *\n     * @param container the file containing the class definition.\n     * @param className the class name of for which the package information\n     *        is to be determined.\n     *\n     * @exception IOException if the package information cannot be read from the\n     *            container.\n     */\n    protected void definePackage(File container, String className)\n        throws IOException {\n        int classIndex = className.lastIndexOf('.');\n        if (classIndex == -1) {\n            return;\n        }\n\n        String packageName = className.substring(0, classIndex);\n        if (getPackage(packageName) != null) {\n            return;\n        }\n\n        Manifest manifest = getJarManifest(container);\n\n        if (manifest == null) {\n            definePackage(packageName, null, null, null, null, null,\n                          null, null);\n        } else {\n            definePackage(container, packageName, manifest);\n        }\n    }\n\n    /**\n     * Get the manifest from the given jar, if it is indeed a jar and it has a\n     * manifest\n     *\n     * @param container the File from which a manifest is required.\n     *\n     * @return the jar's manifest or null is the container is not a jar or it\n     *         has no manifest.\n     *\n     * @exception IOException if the manifest cannot be read.\n     */\n    private Manifest getJarManifest(File container) throws IOException {\n        if (container.isDirectory()) {\n            return null;\n        }\n        JarFile jarFile = null;\n        try {\n            jarFile = new JarFile(container);\n            return jarFile.getManifest();\n        } finally {\n            if (jarFile != null) {\n                jarFile.close();\n            }\n        }\n    }\n\n    /**\n     * Define the package information when the class comes from a\n     * jar with a manifest\n     *\n     * @param container the jar file containing the manifest\n     * @param packageName the name of the package being defined.\n     * @param manifest the jar's manifest\n     */\n    protected void definePackage(File container, String packageName,\n                                 Manifest manifest) {\n        String sectionName = packageName.replace('.', '/') + \"/\";\n\n        String specificationTitle = null;\n        String specificationVendor = null;\n        String specificationVersion = null;\n        String implementationTitle = null;\n        String implementationVendor = null;\n        String implementationVersion = null;\n        String sealedString = null;\n        URL sealBase = null;\n\n        Attributes sectionAttributes = manifest.getAttributes(sectionName);\n        if (sectionAttributes != null) {\n            specificationTitle\n                = sectionAttributes.getValue(Name.SPECIFICATION_TITLE);\n            specificationVendor\n                = sectionAttributes.getValue(Name.SPECIFICATION_VENDOR);\n            specificationVersion\n                = sectionAttributes.getValue(Name.SPECIFICATION_VERSION);\n            implementationTitle\n                = sectionAttributes.getValue(Name.IMPLEMENTATION_TITLE);\n            implementationVendor\n                = sectionAttributes.getValue(Name.IMPLEMENTATION_VENDOR);\n            implementationVersion\n                = sectionAttributes.getValue(Name.IMPLEMENTATION_VERSION);\n            sealedString\n                = sectionAttributes.getValue(Name.SEALED);\n        }\n\n        Attributes mainAttributes = manifest.getMainAttributes();\n        if (mainAttributes != null) {\n            if (specificationTitle == null) {\n                specificationTitle\n                    = mainAttributes.getValue(Name.SPECIFICATION_TITLE);\n            }\n            if (specificationVendor == null) {\n                specificationVendor\n                    = mainAttributes.getValue(Name.SPECIFICATION_VENDOR);\n            }\n            if (specificationVersion == null) {\n                specificationVersion\n                    = mainAttributes.getValue(Name.SPECIFICATION_VERSION);\n            }\n            if (implementationTitle == null) {\n                implementationTitle\n                    = mainAttributes.getValue(Name.IMPLEMENTATION_TITLE);\n            }\n            if (implementationVendor == null) {\n                implementationVendor\n                    = mainAttributes.getValue(Name.IMPLEMENTATION_VENDOR);\n            }\n            if (implementationVersion == null) {\n                implementationVersion\n                    = mainAttributes.getValue(Name.IMPLEMENTATION_VERSION);\n            }\n            if (sealedString == null) {\n                sealedString\n                    = mainAttributes.getValue(Name.SEALED);\n            }\n        }\n\n        if (sealedString != null\n                && sealedString.toLowerCase(Locale.ENGLISH).equals(\"true\")) {\n            try {\n                sealBase = new URL(FileUtils.getFileUtils().toURI(container.getAbsolutePath()));\n            } catch (MalformedURLException e) {\n            }\n        }\n\n        definePackage(packageName, specificationTitle, specificationVersion,\n                      specificationVendor, implementationTitle,\n                      implementationVersion, implementationVendor, sealBase);\n    }\n\n\n    /**\n     * Reads a class definition from a stream.\n     *\n     * @param stream The stream from which the class is to be read.\n     *               Must not be <code>null</code>.\n     * @param classname The name of the class in the stream.\n     *                  Must not be <code>null</code>.\n     * @param container the file or directory containing the class.\n     *\n     * @return the Class object read from the stream.\n     *\n     * @exception IOException if there is a problem reading the class from the\n     * stream.\n     * @exception SecurityException if there is a security problem while\n     * reading the class from the stream.\n     */\n    private Class getClassFromStream(InputStream stream, String classname,\n                                     File container)\n        throws IOException, SecurityException {\n        ByteArrayOutputStream baos = new ByteArrayOutputStream();\n        int bytesRead = -1;\n        byte[] buffer = new byte[BUFFER_SIZE];\n\n        while ((bytesRead = stream.read(buffer, 0, BUFFER_SIZE)) != -1) {\n            baos.write(buffer, 0, bytesRead);\n        }\n\n        byte[] classData = baos.toByteArray();\n        return defineClassFromData(container, classData, classname);\n    }\n\n    /**\n     * Searches for and load a class on the classpath of this class loader.\n     *\n     * @param name The name of the class to be loaded. Must not be\n     *             <code>null</code>.\n     *\n     * @return the required Class object\n     *\n     * @exception ClassNotFoundException if the requested class does not exist\n     *                                   on this loader's classpath.\n     */\n    public Class findClass(String name) throws ClassNotFoundException {\n        log(\"Finding class \" + name, Project.MSG_DEBUG);\n\n        return findClassInComponents(name);\n    }\n\n    /**\n     * Indicate if the given file is in this loader's path\n     *\n     * @param component the file which is to be checked\n     *\n     * @return true if the file is in the class path\n     */\n    protected boolean isInPath(File component) {\n        for (Enumeration e = pathComponents.elements(); e.hasMoreElements();) {\n            File pathComponent = (File) e.nextElement();\n            if (pathComponent.equals(component)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n\n    /**\n     * Finds a class on the given classpath.\n     *\n     * @param name The name of the class to be loaded. Must not be\n     *             <code>null</code>.\n     *\n     * @return the required Class object\n     *\n     * @exception ClassNotFoundException if the requested class does not exist\n     * on this loader's classpath.\n     */\n    private Class findClassInComponents(String name)\n        throws ClassNotFoundException {\n        InputStream stream = null;\n        String classFilename = getClassFilename(name);\n        try {\n            Enumeration e = pathComponents.elements();\n            while (e.hasMoreElements()) {\n                File pathComponent = (File) e.nextElement();\n                try {\n                    stream = getResourceStream(pathComponent, classFilename);\n                    if (stream != null) {\n                        log(\"Loaded from \" + pathComponent + \" \"\n                            + classFilename, Project.MSG_DEBUG);\n                        return getClassFromStream(stream, name, pathComponent);\n                    }\n                } catch (SecurityException se) {\n                    throw se;\n                } catch (IOException ioe) {\n                    log(\"Exception reading component \" + pathComponent\n                        + \" (reason: \" + ioe.getMessage() + \")\",\n                        Project.MSG_VERBOSE);\n                }\n            }\n\n            throw new ClassNotFoundException(name);\n        } finally {\n        \tFileUtils.close(stream);\n        }\n    }\n\n    /**\n     * Finds a system class (which should be loaded from the same classloader\n     * as the Ant core).\n     *\n     * For JDK 1.1 compatibility, this uses the findSystemClass method if\n     * no parent classloader has been specified.\n     *\n     * @param name The name of the class to be loaded.\n     *             Must not be <code>null</code>.\n     *\n     * @return the required Class object\n     *\n     * @exception ClassNotFoundException if the requested class does not exist\n     * on this loader's classpath.\n     */\n    private Class findBaseClass(String name) throws ClassNotFoundException {\n        if (parent == null) {\n            return findSystemClass(name);\n        } else {\n            return parent.loadClass(name);\n        }\n    }\n\n    /**\n     * Cleans up any resources held by this classloader. Any open archive\n     * files are closed.\n     */\n    public synchronized void cleanup() {\n        for (Enumeration e = zipFiles.elements(); e.hasMoreElements();) {\n            ZipFile zipFile = (ZipFile) e.nextElement();\n            try {\n                zipFile.close();\n            } catch (IOException ioe) {\n            }\n        }\n        zipFiles = new Hashtable();\n        if (project != null) {\n            project.removeBuildListener(this);\n        }\n        project = null;\n    }\n\n    /**\n     * Empty implementation to satisfy the BuildListener interface.\n     *\n     * @param event the buildStarted event\n     */\n    public void buildStarted(BuildEvent event) {\n    }\n\n    /**\n     * Cleans up any resources held by this classloader at the end\n     * of a build.\n     *\n     * @param event the buildFinished event\n     */\n    public void buildFinished(BuildEvent event) {\n        cleanup();\n    }\n\n    /**\n     * Cleans up any resources held by this classloader at the end of\n     * a subbuild if it has been created for the subbuild's project\n     * instance.\n     *\n     * @param event the buildFinished event\n     *\n     * @since Ant 1.6.2\n     */\n    public void subBuildFinished(BuildEvent event) {\n        if (event.getProject() == project) {\n            cleanup();\n        }\n    }\n\n    /**\n     * Empty implementation to satisfy the BuildListener interface.\n     *\n     * @param event the buildStarted event\n     *\n     * @since Ant 1.6.2\n     */\n    public void subBuildStarted(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation to satisfy the BuildListener interface.\n     *\n     * @param event the targetStarted event\n     */\n    public void targetStarted(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation to satisfy the BuildListener interface.\n     *\n     * @param event the targetFinished event\n     */\n    public void targetFinished(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation to satisfy the BuildListener interface.\n     *\n     * @param event the taskStarted event\n     */\n    public void taskStarted(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation to satisfy the BuildListener interface.\n     *\n     * @param event the taskFinished event\n     */\n    public void taskFinished(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation to satisfy the BuildListener interface.\n     *\n     * @param event the messageLogged event\n     */\n    public void messageLogged(BuildEvent event) {\n    }\n\n    /**\n     * add any libraries that come with different java versions\n     * here\n     */\n    public void addJavaLibraries() {\n        Vector packages = JavaEnvUtils.getJrePackages();\n        Enumeration e = packages.elements();\n        while (e.hasMoreElements()) {\n            String packageName = (String) e.nextElement();\n            addSystemPackageRoot(packageName);\n        }\n    }\n\n    /**\n     * Returns a <code>String</code> representing this loader.\n     * @return the path that this classloader has.\n     */\n    public String toString() {\n        return \"AntClassLoader[\" + getClasspath() + \"]\";", "functions": [{"function_name": "setProject", "code": "    public void setProject(Project project) {\n        this.project = project;\n        if (project != null) {\n            project.addBuildListener(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setClassPath", "code": "    public void setClassPath(Path classpath) {\n        pathComponents.removeAllElements();\n        if (classpath != null) {\n            Path actualClasspath = classpath.concatSystemClasspath(\"ignore\");\n            String[] pathElements = actualClasspath.list();\n            for (int i = 0; i < pathElements.length; ++i) {\n                try {\n                    addPathElement(pathElements[i]);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [3, 8], [5, 9], [5, 10], [6, 11], [7, 12], [10, 13], [5, 14], [12, 15], [10, 16], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 3], [9, 5], [10, 5], [11, 6], [12, 7], [13, 10], [14, 5], [15, 12], [16, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setParent", "code": "    public void setParent(ClassLoader parent) {\n        if (parent == null) {\n            this.parent = AntClassLoader.class.getClassLoader();\n        } else {\n            this.parent = parent;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setParentFirst", "code": "    public void setParentFirst(boolean parentFirst) {\n        this.parentFirst = parentFirst;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "log", "code": "    protected void log(String message, int priority) {\n        if (project != null) {\n            project.log(message, priority);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setThreadContextLoader", "code": "    public void setThreadContextLoader() {\n        if (isContextLoaderSaved) {\n            throw new BuildException(\"Context loader has not been reset\");\n        }\n        if (LoaderUtils.isContextLoaderAvailable()) {\n            savedContextLoader = LoaderUtils.getContextClassLoader();\n            ClassLoader loader = this;\n            if (project != null\n                && \"only\".equals(project.getProperty(\"build.sysclasspath\"))) {\n                loader = this.getClass().getClassLoader();\n            }\n            LoaderUtils.setContextClassLoader(loader);\n            isContextLoaderSaved = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "IF", "VAR_DECL", "THROW_RAISE", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [2, 6], [1, 7], [1, 8], [4, 9], [1, 10], [6, 11], [7, 12], [9, 13], [9, 14], [10, 15], [11, 16], [4, 17], [13, 18], [14, 19], [18, 20], [17, 21], [17, 22], [20, 23], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 2], [7, 1], [8, 1], [9, 4], [10, 1], [11, 6], [12, 7], [13, 9], [14, 9], [15, 10], [16, 11], [17, 4], [18, 13], [19, 14], [20, 18], [21, 17], [22, 17], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "resetThreadContextLoader", "code": "    public void resetThreadContextLoader() {\n        if (LoaderUtils.isContextLoaderAvailable()\n            && isContextLoaderSaved) {\n            LoaderUtils.setContextClassLoader(savedContextLoader);\n            savedContextLoader = null;\n            isContextLoaderSaved = false;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addPathElement", "code": "    public void addPathElement(String pathElement) throws BuildException {\n        File pathComponent\n            = project != null ? project.resolveFile(pathElement)\n            : new File(pathElement);\n        try {\n            addPathFile(pathComponent);\n        } catch (IOException e) {\n            throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "THROW_RAISE", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [2, 7], [5, 8], [7, 9], [7, 10], [7, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 2], [8, 5], [9, 7], [10, 7], [11, 7], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "addPathComponent", "code": "    public void addPathComponent(File file) {\n        if (pathComponents.contains(file)) {\n            return;\n        }\n        pathComponents.addElement(file);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addPathFile", "code": "    protected void addPathFile(File pathComponent) throws IOException {\n        pathComponents.addElement(pathComponent);\n        if (pathComponent.isDirectory()) {\n            return;\n        }\n\n        String absPathPlusTimeAndLength =\n            pathComponent.getAbsolutePath() + pathComponent.lastModified() + \"-\"\n            + pathComponent.length();\n        String classpath = (String) pathMap.get(absPathPlusTimeAndLength);\n        if (classpath == null) {\n            ZipFile jarFile = null;\n            InputStream manifestStream = null;\n            try {\n                jarFile = new ZipFile(pathComponent);\n                manifestStream\n                    = jarFile.getInputStream(new ZipEntry(\"META-INF/MANIFEST.MF\"));\n\n                if (manifestStream == null) {\n                    return;\n                }\n                Reader manifestReader\n                    = new InputStreamReader(manifestStream, \"UTF-8\");\n                org.apache.tools.ant.taskdefs.Manifest manifest\n                    = new org.apache.tools.ant.taskdefs.Manifest(manifestReader);\n                classpath\n                    = manifest.getMainSection().getAttributeValue(\"Class-Path\");\n\n            } catch (org.apache.tools.ant.taskdefs.ManifestException e) {\n            } finally {\n                FileUtils.close(manifestStream);\n                if (jarFile != null) {\n                    jarFile.close();\n                }\n            }\n            if (classpath == null) {\n                classpath = \"\";\n            }\n            pathMap.put(absPathPlusTimeAndLength, classpath);\n        }\n\n        if (!\"\".equals(classpath)) {\n            URL baseURL = FILE_UTILS.getFileURL(pathComponent);\n            StringTokenizer st = new StringTokenizer(classpath);\n            while (st.hasMoreTokens()) {\n                String classpathElement = st.nextToken();\n                URL libraryURL = new URL(baseURL, classpathElement);\n                if (!libraryURL.getProtocol().equals(\"file\")) {\n                    log(\"Skipping jar library \" + classpathElement\n                        + \" since only relative URLs are supported by this\"\n                        + \" loader\", Project.MSG_VERBOSE);\n                    continue;\n                }\n                String decodedPath = Locator.decodeUri(libraryURL.getFile());\n                File libraryFile = new File(decodedPath);\n                if (libraryFile.exists() && !isInPath(libraryFile)) {\n                    addPathFile(libraryFile);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "CALL", "BINARY_OP", "IF", "CATCH", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [5, 9], [0, 10], [1, 11], [1, 12], [1, 13], [7, 14], [2, 15], [2, 16], [2, 17], [2, 18], [8, 19], [4, 20], [5, 21], [11, 22], [2, 23], [15, 24], [16, 25], [16, 26], [16, 27], [16, 28], [16, 29], [3, 30], [20, 31], [20, 32], [11, 33], [11, 34], [11, 35], [11, 36], [11, 37], [11, 38], [12, 39], [13, 40], [24, 41], [25, 42], [16, 43], [16, 44], [29, 45], [16, 46], [16, 47], [17, 48], [18, 49], [32, 50], [32, 51], [33, 52], [36, 53], [15, 54], [42, 55], [44, 56], [27, 57], [28, 58], [29, 59], [45, 60], [46, 61], [47, 62], [51, 63], [51, 64], [52, 65], [52, 66], [34, 67], [35, 68], [36, 69], [53, 70], [37, 71], [38, 72], [54, 73], [25, 74], [56, 75], [58, 76], [61, 77], [33, 78], [68, 79], [36, 80], [70, 81], [75, 82], [77, 83], [80, 84], [84, 85], [84, 86], [86, 87], [86, 88], [88, 89], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 5], [10, 0], [11, 1], [12, 1], [13, 1], [14, 7], [15, 2], [16, 2], [17, 2], [18, 2], [19, 8], [20, 4], [21, 5], [22, 11], [23, 2], [24, 15], [25, 16], [26, 16], [27, 16], [28, 16], [29, 16], [30, 3], [31, 20], [32, 20], [33, 11], [34, 11], [35, 11], [36, 11], [37, 11], [38, 11], [39, 12], [40, 13], [41, 24], [42, 25], [43, 16], [44, 16], [45, 29], [46, 16], [47, 16], [48, 17], [49, 18], [50, 32], [51, 32], [52, 33], [53, 36], [54, 15], [55, 42], [56, 44], [57, 27], [58, 28], [59, 29], [60, 45], [61, 46], [62, 47], [63, 51], [64, 51], [65, 52], [66, 52], [67, 34], [68, 35], [69, 36], [70, 53], [71, 37], [72, 38], [73, 54], [74, 25], [75, 56], [76, 58], [77, 61], [78, 33], [79, 68], [80, 36], [81, 70], [82, 75], [83, 77], [84, 80], [85, 84], [86, 84], [87, 86], [88, 86], [89, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89]]}, {"function_name": "getClasspath", "code": "    public String getClasspath() {\n        StringBuffer sb = new StringBuffer();\n        boolean firstPass = true;\n        Enumeration componentEnum = pathComponents.elements();\n        while (componentEnum.hasMoreElements()) {\n            if (!firstPass) {\n                sb.append(System.getProperty(\"path.separator\"));\n            } else {\n                firstPass = false;\n            }\n            sb.append(((File) componentEnum.nextElement()).getAbsolutePath());\n        }\n        return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [4, 10], [5, 11], [2, 12], [12, 13], [8, 14], [8, 15], [14, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 4], [11, 5], [12, 2], [13, 12], [14, 8], [15, 8], [16, 14], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setIsolated", "code": "    public synchronized void setIsolated(boolean isolated) {\n        ignoreBase = isolated;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "initializeClass", "code": "    public static void initializeClass(Class theClass) {\n\n        final Constructor[] cons = theClass.getDeclaredConstructors();\n        if (cons != null) {\n            if (cons.length > 0 && cons[0] != null) {\n                final String[] strs = new String[NUMBER_OF_STRINGS];\n                try {\n                    cons[0].newInstance((Object[]) strs);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "TRY", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [5, 8], [5, 9], [5, 10], [8, 11], [8, 12], [9, 13], [11, 14], [12, 15], [9, 16], [11, 17], [9, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 5], [9, 5], [10, 5], [11, 8], [12, 8], [13, 9], [14, 11], [15, 12], [16, 9], [17, 11], [18, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "addSystemPackageRoot", "code": "    public void addSystemPackageRoot(String packageRoot) {\n        systemPackages.addElement(packageRoot\n                                  + (packageRoot.endsWith(\".\") ? \"\" : \".\"));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addLoaderPackageRoot", "code": "    public void addLoaderPackageRoot(String packageRoot) {\n        loaderPackages.addElement(packageRoot\n                                  + (packageRoot.endsWith(\".\") ? \"\" : \".\"));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "forceLoadClass", "code": "    public Class forceLoadClass(String classname)\n        throws ClassNotFoundException {\n        log(\"force loading \" + classname, Project.MSG_DEBUG);\n\n        Class theClass = findLoadedClass(classname);\n\n        if (theClass == null) {\n            theClass = findClass(classname);\n        }\n\n        return theClass;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [5, 7], [3, 8], [6, 9], [2, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 5], [8, 3], [9, 6], [10, 2], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "forceLoadSystemClass", "code": "    public Class forceLoadSystemClass(String classname)\n        throws ClassNotFoundException {\n        log(\"force system loading \" + classname, Project.MSG_DEBUG);\n\n        Class theClass = findLoadedClass(classname);\n\n        if (theClass == null) {\n            theClass = findBaseClass(classname);\n        }\n\n        return theClass;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [5, 7], [3, 8], [6, 9], [2, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 5], [8, 3], [9, 6], [10, 2], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getResourceAsStream", "code": "    public InputStream getResourceAsStream(String name) {\n\n        InputStream resourceStream = null;\n        if (isParentFirst(name)) {\n            resourceStream = loadBaseResource(name);\n            if (resourceStream != null) {\n                log(\"ResourceStream for \" + name\n                    + \" loaded from parent loader\", Project.MSG_DEBUG);\n\n            } else {\n                resourceStream = loadResource(name);\n                if (resourceStream != null) {\n                    log(\"ResourceStream for \" + name\n                        + \" loaded from ant loader\", Project.MSG_DEBUG);\n                }\n            }\n        } else {\n            resourceStream = loadResource(name);\n            if (resourceStream != null) {\n                log(\"ResourceStream for \" + name\n                    + \" loaded from ant loader\", Project.MSG_DEBUG);\n\n            } else {\n                resourceStream = loadBaseResource(name);\n                if (resourceStream != null) {\n                    log(\"ResourceStream for \" + name\n                        + \" loaded from parent loader\", Project.MSG_DEBUG);\n                }\n            }\n        }\n\n        if (resourceStream == null) {\n            log(\"Couldn't load ResourceStream for \" + name,\n                Project.MSG_DEBUG);\n        }\n\n        return resourceStream;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [6, 8], [3, 9], [3, 10], [4, 11], [2, 12], [9, 13], [3, 14], [10, 15], [3, 16], [12, 17], [9, 18], [13, 19], [14, 20], [10, 21], [15, 22], [16, 23], [17, 24], [18, 25], [9, 26], [9, 27], [21, 28], [10, 29], [10, 30], [25, 31], [26, 32], [27, 33], [28, 34], [29, 35], [30, 36], [18, 37], [33, 38], [33, 39], [21, 40], [36, 41], [36, 42], [37, 43], [39, 44], [40, 45], [42, 46], [43, 47], [43, 48], [45, 49], [45, 50], [48, 51], [50, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 6], [9, 3], [10, 3], [11, 4], [12, 2], [13, 9], [14, 3], [15, 10], [16, 3], [17, 12], [18, 9], [19, 13], [20, 14], [21, 10], [22, 15], [23, 16], [24, 17], [25, 18], [26, 9], [27, 9], [28, 21], [29, 10], [30, 10], [31, 25], [32, 26], [33, 27], [34, 28], [35, 29], [36, 30], [37, 18], [38, 33], [39, 33], [40, 21], [41, 36], [42, 36], [43, 37], [44, 39], [45, 40], [46, 42], [47, 43], [48, 43], [49, 45], [50, 45], [51, 48], [52, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "loadResource", "code": "    private InputStream loadResource(String name) {\n        InputStream stream = null;\n\n        Enumeration e = pathComponents.elements();\n        while (e.hasMoreElements() && stream == null) {\n            File pathComponent = (File) e.nextElement();\n            stream = getResourceStream(pathComponent, name);\n        }\n        return stream;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [6, 9], [3, 10], [4, 11], [2, 12], [8, 13], [12, 14], [7, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 6], [10, 3], [11, 4], [12, 2], [13, 8], [14, 12], [15, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "loadBaseResource", "code": "    private InputStream loadBaseResource(String name) {\n        if (parent == null) {\n            return getSystemResourceAsStream(name);\n        } else {\n            return parent.getResourceAsStream(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getResourceStream", "code": "    private InputStream getResourceStream(File file, String resourceName) {\n        try {\n            ZipFile zipFile = (ZipFile) zipFiles.get(file);\n            if (zipFile == null && file.isDirectory()) {\n                File resource = new File(file, resourceName);\n\n                if (resource.exists()) {\n                    return new FileInputStream(resource);\n                }\n            } else {\n                if (zipFile == null) {\n                    if (file.exists()) {\n\n                        zipFile = new ZipFile(file);\n                        zipFiles.put(file, zipFile);\n                    } else {\n                        return null;\n                    }\n                    zipFile = (ZipFile) zipFiles.get(file);\n                }\n                ZipEntry entry = zipFile.getEntry(resourceName);\n                if (entry != null) {\n                    return zipFile.getInputStream(entry);\n                }\n            }\n        } catch (Exception e) {\n            log(\"Ignoring Exception \" + e.getClass().getName() + \": \"\n                    + e.getMessage() + \" reading resource \" + resourceName\n                    + \" from \" + file, Project.MSG_VERBOSE);\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [7, 9], [6, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [9, 16], [9, 17], [10, 18], [11, 19], [13, 20], [14, 21], [17, 22], [8, 23], [18, 24], [11, 25], [19, 26], [12, 27], [13, 28], [20, 29], [14, 30], [15, 31], [24, 32], [24, 33], [25, 34], [13, 35], [28, 36], [30, 37], [33, 38], [28, 39], [38, 40], [38, 41], [35, 42], [39, 43], [28, 44], [28, 45], [41, 46], [41, 47], [45, 48], [47, 49], [47, 50], [50, 51], [50, 52], [51, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 7], [10, 6], [11, 7], [12, 7], [13, 7], [14, 7], [15, 7], [16, 9], [17, 9], [18, 10], [19, 11], [20, 13], [21, 14], [22, 17], [23, 8], [24, 18], [25, 11], [26, 19], [27, 12], [28, 13], [29, 20], [30, 14], [31, 15], [32, 24], [33, 24], [34, 25], [35, 13], [36, 28], [37, 30], [38, 33], [39, 28], [40, 38], [41, 38], [42, 35], [43, 39], [44, 28], [45, 28], [46, 41], [47, 41], [48, 45], [49, 47], [50, 47], [51, 50], [52, 50], [53, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "isParentFirst", "code": "    private boolean isParentFirst(String resourceName) {\n\n\n        boolean useParentFirst = parentFirst;\n\n        for (Enumeration e = systemPackages.elements(); e.hasMoreElements();) {\n            String packageName = (String) e.nextElement();\n            if (resourceName.startsWith(packageName)) {\n                useParentFirst = true;\n                break;\n            }\n        }\n\n        for (Enumeration e = loaderPackages.elements(); e.hasMoreElements();) {\n            String packageName = (String) e.nextElement();\n            if (resourceName.startsWith(packageName)) {\n                useParentFirst = false;\n                break;\n            }\n        }\n\n        return useParentFirst;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [2, 8], [2, 9], [3, 10], [3, 11], [8, 12], [2, 13], [10, 14], [3, 15], [8, 16], [10, 17], [8, 18], [9, 19], [10, 20], [11, 21], [18, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 2], [9, 2], [10, 3], [11, 3], [12, 8], [13, 2], [14, 10], [15, 3], [16, 8], [17, 10], [18, 8], [19, 9], [20, 10], [21, 11], [22, 18], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getRootLoader", "code": "    private ClassLoader getRootLoader() {\n        ClassLoader ret = getClass().getClassLoader();\n        while (ret != null && ret.getParent() != null) {\n            ret = ret.getParent();\n        }\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [4, 6], [3, 7], [2, 8], [5, 9], [5, 10], [6, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 4], [7, 3], [8, 2], [9, 5], [10, 5], [11, 6], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getResource", "code": "    public URL getResource(String name) {\n        URL url = null;\n        if (isParentFirst(name)) {\n            url = (parent == null) ? super.getResource(name)\n                : parent.getResource(name);\n        }\n\n        if (url != null) {\n            log(\"Resource \" + name + \" loaded from parent loader\",\n                Project.MSG_DEBUG);\n\n        } else {\n            Enumeration e = pathComponents.elements();\n            while (e.hasMoreElements() && url == null) {\n                File pathComponent = (File) e.nextElement();\n                url = getResourceURL(pathComponent, name);\n                if (url != null) {\n                    log(\"Resource \" + name\n                        + \" loaded from ant loader\",\n                        Project.MSG_DEBUG);\n                }\n            }\n        }\n\n        if (url == null && !isParentFirst(name)) {\n            if (ignoreBase) {\n                url = (getRootLoader() == null) ? null\n                    : getRootLoader().getResource(name);\n            } else {\n                url = (parent == null) ? super.getResource(name)\n                    : parent.getResource(name);\n            }\n            if (url != null) {\n                log(\"Resource \" + name + \" loaded from parent loader\",\n                    Project.MSG_DEBUG);\n            }\n        }\n\n        if (url == null) {\n            log(\"Couldn't load Resource \" + name, Project.MSG_DEBUG);\n        }\n\n        return url;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [5, 11], [8, 12], [3, 13], [3, 14], [9, 15], [9, 16], [4, 17], [4, 18], [10, 19], [6, 20], [2, 21], [13, 22], [16, 23], [17, 24], [4, 25], [5, 26], [21, 27], [22, 28], [17, 29], [17, 30], [24, 31], [24, 32], [18, 33], [25, 34], [26, 35], [27, 36], [13, 37], [14, 38], [14, 39], [29, 40], [17, 41], [31, 42], [34, 43], [34, 44], [35, 45], [35, 46], [37, 47], [38, 48], [39, 49], [40, 50], [41, 51], [44, 52], [46, 53], [47, 54], [47, 55], [48, 56], [48, 57], [49, 58], [49, 59], [49, 60], [29, 61], [30, 62], [55, 63], [57, 64], [58, 65], [60, 66], [60, 67], [61, 68], [68, 69], [68, 70], [70, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 5], [12, 8], [13, 3], [14, 3], [15, 9], [16, 9], [17, 4], [18, 4], [19, 10], [20, 6], [21, 2], [22, 13], [23, 16], [24, 17], [25, 4], [26, 5], [27, 21], [28, 22], [29, 17], [30, 17], [31, 24], [32, 24], [33, 18], [34, 25], [35, 26], [36, 27], [37, 13], [38, 14], [39, 14], [40, 29], [41, 17], [42, 31], [43, 34], [44, 34], [45, 35], [46, 35], [47, 37], [48, 38], [49, 39], [50, 40], [51, 41], [52, 44], [53, 46], [54, 47], [55, 47], [56, 48], [57, 48], [58, 49], [59, 49], [60, 49], [61, 29], [62, 30], [63, 55], [64, 57], [65, 58], [66, 60], [67, 60], [68, 61], [69, 68], [70, 68], [71, 70], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "findResources", "code": "    protected Enumeration/*<URL>*/ findResources(String name) throws IOException {\n        Enumeration/*<URL>*/ mine = new ResourceEnumeration(name);\n        Enumeration/*<URL>*/ base;\n        if (parent != null && parent != getParent()) {\n            base = parent.getResources(name);\n        } else {\n            base = new CollectionUtils.EmptyEnumeration();\n        }\n        if (isParentFirst(name)) {\n            return CollectionUtils.append(base, mine);\n        } else if (ignoreBase) {\n            return getRootLoader() == null\n                ? mine\n                : CollectionUtils.append(\n                    mine, getRootLoader().getResources(name));\n        } else {\n            return CollectionUtils.append(mine, base);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "RETURN", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [1, 9], [8, 10], [8, 11], [4, 12], [6, 13], [6, 14], [9, 15], [2, 16], [2, 17], [10, 18], [11, 19], [13, 20], [14, 21], [16, 22], [17, 23], [21, 24], [21, 25], [24, 26], [25, 27], [25, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 1], [10, 8], [11, 8], [12, 4], [13, 6], [14, 6], [15, 9], [16, 2], [17, 2], [18, 10], [19, 11], [20, 13], [21, 14], [22, 16], [23, 17], [24, 21], [25, 21], [26, 24], [27, 25], [28, 25], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getResourceURL", "code": "    protected URL getResourceURL(File file, String resourceName) {\n        try {\n            ZipFile zipFile = (ZipFile) zipFiles.get(file);\n            if (zipFile == null && file.isDirectory()) {\n                File resource = new File(file, resourceName);\n\n                if (resource.exists()) {\n                    try {\n                        return FILE_UTILS.getFileURL(resource);\n                    } catch (MalformedURLException ex) {\n                        return null;\n                    }\n                }\n            } else {\n                if (zipFile == null) {\n                    if (file.exists()) {\n                        zipFile = new ZipFile(file);\n                        zipFiles.put(file, zipFile);\n                    } else {\n                        return null;\n                    }\n                }\n                ZipEntry entry = zipFile.getEntry(resourceName);\n                if (entry != null) {\n                    try {\n                        return new URL(\"jar:\" + FILE_UTILS.getFileURL(file)\n                                       + \"!/\" + entry);\n                    } catch (MalformedURLException ex) {\n                        return null;\n                    }\n                }\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "TRY", "CALL", "CATCH", "RETURN", "CALL", "CATCH", "RETURN", "RETURN", "CALL", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [7, 9], [6, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [9, 16], [9, 17], [11, 18], [13, 19], [14, 20], [17, 21], [8, 22], [11, 23], [18, 24], [12, 25], [13, 26], [19, 27], [14, 28], [15, 29], [23, 30], [23, 31], [26, 32], [28, 33], [28, 34], [30, 35], [31, 36], [26, 37], [33, 38], [34, 39], [35, 40], [36, 41], [37, 42], [26, 43], [26, 44], [38, 45], [41, 46], [44, 47], [46, 48], [46, 49], [49, 50], [49, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 7], [10, 6], [11, 7], [12, 7], [13, 7], [14, 7], [15, 7], [16, 9], [17, 9], [18, 11], [19, 13], [20, 14], [21, 17], [22, 8], [23, 11], [24, 18], [25, 12], [26, 13], [27, 19], [28, 14], [29, 15], [30, 23], [31, 23], [32, 26], [33, 28], [34, 28], [35, 30], [36, 31], [37, 26], [38, 33], [39, 34], [40, 35], [41, 36], [42, 37], [43, 26], [44, 26], [45, 38], [46, 41], [47, 44], [48, 46], [49, 46], [50, 49], [51, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "loadClass", "code": "    protected synchronized Class loadClass(String classname, boolean resolve)\n        throws ClassNotFoundException {\n\n        Class theClass = findLoadedClass(classname);\n        if (theClass != null) {\n            return theClass;\n        }\n\n        if (isParentFirst(classname)) {\n            try {\n                theClass = findBaseClass(classname);\n                log(\"Class \" + classname + \" loaded from parent loader \"\n                    + \"(parentFirst)\", Project.MSG_DEBUG);\n            } catch (ClassNotFoundException cnfe) {\n                theClass = findClass(classname);\n                log(\"Class \" + classname + \" loaded from ant loader \"\n                    + \"(parentFirst)\", Project.MSG_DEBUG);\n            }\n        } else {\n            try {\n                theClass = findClass(classname);\n                log(\"Class \" + classname + \" loaded from ant loader\",\n                    Project.MSG_DEBUG);\n            } catch (ClassNotFoundException cnfe) {\n                if (ignoreBase) {\n                    throw cnfe;\n                }\n                theClass = findBaseClass(classname);\n                log(\"Class \" + classname + \" loaded from parent loader\",\n                    Project.MSG_DEBUG);\n            }\n        }\n\n        if (resolve) {\n            resolveClass(theClass);\n        }\n\n        return theClass;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "TRY", "TRY", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "CATCH", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [4, 9], [3, 10], [3, 11], [4, 12], [9, 13], [5, 14], [2, 15], [10, 16], [11, 17], [16, 18], [10, 19], [10, 20], [11, 21], [11, 22], [16, 23], [16, 24], [19, 25], [20, 26], [17, 27], [17, 28], [21, 29], [22, 30], [23, 31], [24, 32], [18, 33], [25, 34], [25, 35], [27, 36], [28, 37], [29, 38], [29, 39], [31, 40], [31, 41], [35, 42], [36, 43], [36, 44], [39, 45], [39, 46], [41, 47], [44, 48], [44, 49], [46, 50], [49, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 4], [10, 3], [11, 3], [12, 4], [13, 9], [14, 5], [15, 2], [16, 10], [17, 11], [18, 16], [19, 10], [20, 10], [21, 11], [22, 11], [23, 16], [24, 16], [25, 19], [26, 20], [27, 17], [28, 17], [29, 21], [30, 22], [31, 23], [32, 24], [33, 18], [34, 25], [35, 25], [36, 27], [37, 28], [38, 29], [39, 29], [40, 31], [41, 31], [42, 35], [43, 36], [44, 36], [45, 39], [46, 39], [47, 41], [48, 44], [49, 44], [50, 46], [51, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "getClassFilename", "code": "    private String getClassFilename(String classname) {\n        return classname.replace('.', '/') + \".class\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "defineClassFromData", "code": "    protected Class defineClassFromData(File container, byte[] classData,\n                                        String classname) throws IOException {\n        definePackage(container, classname);\n        return defineClass(classname, classData, 0, classData.length,\n                           Project.class.getProtectionDomain());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "definePackage", "code": "    protected void definePackage(File container, String className)\n        throws IOException {\n        int classIndex = className.lastIndexOf('.');\n        if (classIndex == -1) {\n            return;\n        }\n\n        String packageName = className.substring(0, classIndex);\n        if (getPackage(packageName) != null) {\n            return;\n        }\n\n        Manifest manifest = getJarManifest(container);\n\n        if (manifest == null) {\n            definePackage(packageName, null, null, null, null, null,\n                          null, null);\n        } else {\n            definePackage(container, packageName, manifest);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [5, 11], [9, 12], [2, 13], [3, 14], [10, 15], [10, 16], [4, 17], [5, 18], [11, 19], [6, 20], [1, 21], [1, 22], [17, 23], [20, 24], [22, 25], [22, 26], [22, 27], [22, 28], [22, 29], [22, 30], [22, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 5], [12, 9], [13, 2], [14, 3], [15, 10], [16, 10], [17, 4], [18, 5], [19, 11], [20, 6], [21, 1], [22, 1], [23, 17], [24, 20], [25, 22], [26, 22], [27, 22], [28, 22], [29, 22], [30, 22], [31, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getJarManifest", "code": "    private Manifest getJarManifest(File container) throws IOException {\n        if (container.isDirectory()) {\n            return null;\n        }\n        JarFile jarFile = null;\n        try {\n            jarFile = new JarFile(container);\n            return jarFile.getManifest();\n        } finally {\n            if (jarFile != null) {\n                jarFile.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "IF", "RETURN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [3, 7], [5, 8], [6, 9], [1, 10], [2, 11], [3, 12], [8, 13], [10, 14], [12, 15], [5, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 3], [8, 5], [9, 6], [10, 1], [11, 2], [12, 3], [13, 8], [14, 10], [15, 12], [16, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "definePackage", "code": "    protected void definePackage(File container, String packageName,\n                                 Manifest manifest) {\n        String sectionName = packageName.replace('.', '/') + \"/\";\n\n        String specificationTitle = null;\n        String specificationVendor = null;\n        String specificationVersion = null;\n        String implementationTitle = null;\n        String implementationVendor = null;\n        String implementationVersion = null;\n        String sealedString = null;\n        URL sealBase = null;\n\n        Attributes sectionAttributes = manifest.getAttributes(sectionName);\n        if (sectionAttributes != null) {\n            specificationTitle\n                = sectionAttributes.getValue(Name.SPECIFICATION_TITLE);\n            specificationVendor\n                = sectionAttributes.getValue(Name.SPECIFICATION_VENDOR);\n            specificationVersion\n                = sectionAttributes.getValue(Name.SPECIFICATION_VERSION);\n            implementationTitle\n                = sectionAttributes.getValue(Name.IMPLEMENTATION_TITLE);\n            implementationVendor\n                = sectionAttributes.getValue(Name.IMPLEMENTATION_VENDOR);\n            implementationVersion\n                = sectionAttributes.getValue(Name.IMPLEMENTATION_VERSION);\n            sealedString\n                = sectionAttributes.getValue(Name.SEALED);\n        }\n\n        Attributes mainAttributes = manifest.getMainAttributes();\n        if (mainAttributes != null) {\n            if (specificationTitle == null) {\n                specificationTitle\n                    = mainAttributes.getValue(Name.SPECIFICATION_TITLE);\n            }\n            if (specificationVendor == null) {\n                specificationVendor\n                    = mainAttributes.getValue(Name.SPECIFICATION_VENDOR);\n            }\n            if (specificationVersion == null) {\n                specificationVersion\n                    = mainAttributes.getValue(Name.SPECIFICATION_VERSION);\n            }\n            if (implementationTitle == null) {\n                implementationTitle\n                    = mainAttributes.getValue(Name.IMPLEMENTATION_TITLE);\n            }\n            if (implementationVendor == null) {\n                implementationVendor\n                    = mainAttributes.getValue(Name.IMPLEMENTATION_VENDOR);\n            }\n            if (implementationVersion == null) {\n                implementationVersion\n                    = mainAttributes.getValue(Name.IMPLEMENTATION_VERSION);\n            }\n            if (sealedString == null) {\n                sealedString\n                    = mainAttributes.getValue(Name.SEALED);\n            }\n        }\n\n        if (sealedString != null\n                && sealedString.toLowerCase(Locale.ENGLISH).equals(\"true\")) {\n            try {\n                sealBase = new URL(FileUtils.getFileUtils().toURI(container.getAbsolutePath()));\n            } catch (MalformedURLException e) {\n            }\n        }\n\n        definePackage(packageName, specificationTitle, specificationVersion,\n                      specificationVendor, implementationTitle,\n                      implementationVersion, implementationVendor, sealBase);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "TRY", "CALL", "BINARY_OP", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 19], [2, 20], [4, 21], [1, 22], [19, 23], [19, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [20, 32], [3, 33], [21, 34], [5, 35], [6, 36], [7, 37], [8, 38], [9, 39], [10, 40], [11, 41], [12, 42], [13, 43], [14, 44], [22, 45], [23, 46], [24, 47], [25, 48], [26, 49], [27, 50], [28, 51], [29, 52], [30, 53], [31, 54], [4, 55], [4, 56], [4, 57], [4, 58], [4, 59], [4, 60], [4, 61], [44, 62], [44, 63], [22, 64], [46, 65], [48, 66], [49, 67], [50, 68], [51, 69], [52, 70], [53, 71], [54, 72], [55, 73], [56, 74], [57, 75], [58, 76], [59, 77], [60, 78], [61, 79], [63, 80], [63, 81], [64, 82], [25, 83], [26, 84], [27, 85], [28, 86], [29, 87], [30, 88], [31, 89], [82, 90], [83, 91], [84, 92], [85, 93], [86, 94], [87, 95], [88, 96], [89, 97], [90, 98], [98, 99], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 1], [20, 2], [21, 4], [22, 1], [23, 19], [24, 19], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 20], [33, 3], [34, 21], [35, 5], [36, 6], [37, 7], [38, 8], [39, 9], [40, 10], [41, 11], [42, 12], [43, 13], [44, 14], [45, 22], [46, 23], [47, 24], [48, 25], [49, 26], [50, 27], [51, 28], [52, 29], [53, 30], [54, 31], [55, 4], [56, 4], [57, 4], [58, 4], [59, 4], [60, 4], [61, 4], [62, 44], [63, 44], [64, 22], [65, 46], [66, 48], [67, 49], [68, 50], [69, 51], [70, 52], [71, 53], [72, 54], [73, 55], [74, 56], [75, 57], [76, 58], [77, 59], [78, 60], [79, 61], [80, 63], [81, 63], [82, 64], [83, 25], [84, 26], [85, 27], [86, 28], [87, 29], [88, 30], [89, 31], [90, 82], [91, 83], [92, 84], [93, 85], [94, 86], [95, 87], [96, 88], [97, 89], [98, 90], [99, 98], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99]]}, {"function_name": "getClassFromStream", "code": "    private Class getClassFromStream(InputStream stream, String classname,\n                                     File container)\n        throws IOException, SecurityException {\n        ByteArrayOutputStream baos = new ByteArrayOutputStream();\n        int bytesRead = -1;\n        byte[] buffer = new byte[BUFFER_SIZE];\n\n        while ((bytesRead = stream.read(buffer, 0, BUFFER_SIZE)) != -1) {\n            baos.write(buffer, 0, bytesRead);\n        }\n\n        byte[] classData = baos.toByteArray();\n        return defineClassFromData(container, classData, classname);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [2, 12], [11, 13], [11, 14], [5, 15], [6, 16], [3, 17], [14, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 2], [13, 11], [14, 11], [15, 5], [16, 6], [17, 3], [18, 14], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "findClass", "code": "    public Class findClass(String name) throws ClassNotFoundException {\n        log(\"Finding class \" + name, Project.MSG_DEBUG);\n\n        return findClassInComponents(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isInPath", "code": "    protected boolean isInPath(File component) {\n        for (Enumeration e = pathComponents.elements(); e.hasMoreElements();) {\n            File pathComponent = (File) e.nextElement();\n            if (pathComponent.equals(component)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [2, 9], [6, 10], [10, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 2], [10, 6], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "findClassInComponents", "code": "    private Class findClassInComponents(String name)\n        throws ClassNotFoundException {\n        InputStream stream = null;\n        String classFilename = getClassFilename(name);\n        try {\n            Enumeration e = pathComponents.elements();\n            while (e.hasMoreElements()) {\n                File pathComponent = (File) e.nextElement();\n                try {\n                    stream = getResourceStream(pathComponent, classFilename);\n                    if (stream != null) {\n                        log(\"Loaded from \" + pathComponent + \" \"\n                            + classFilename, Project.MSG_DEBUG);\n                        return getClassFromStream(stream, name, pathComponent);\n                    }\n                } catch (SecurityException se) {\n                    throw se;\n                } catch (IOException ioe) {\n                    log(\"Exception reading component \" + pathComponent\n                        + \" (reason: \" + ioe.getMessage() + \")\",\n                        Project.MSG_VERBOSE);\n                }\n            }\n\n            throw new ClassNotFoundException(name);\n        } finally {\n        \tFileUtils.close(stream);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "THROW_RAISE", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "CALL", "CATCH", "CATCH", "IF", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [6, 10], [2, 11], [3, 12], [6, 13], [6, 14], [7, 15], [13, 16], [13, 17], [13, 18], [17, 19], [18, 20], [13, 21], [16, 22], [18, 23], [20, 24], [21, 25], [14, 26], [22, 27], [23, 28], [18, 29], [27, 30], [27, 31], [29, 32], [31, 33], [31, 34], [32, 35], [34, 36], [34, 37], [35, 38], [35, 39], [37, 40], [39, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 6], [11, 2], [12, 3], [13, 6], [14, 6], [15, 7], [16, 13], [17, 13], [18, 13], [19, 17], [20, 18], [21, 13], [22, 16], [23, 18], [24, 20], [25, 21], [26, 14], [27, 22], [28, 23], [29, 18], [30, 27], [31, 27], [32, 29], [33, 31], [34, 31], [35, 32], [36, 34], [37, 34], [38, 35], [39, 35], [40, 37], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "findBaseClass", "code": "    private Class findBaseClass(String name) throws ClassNotFoundException {\n        if (parent == null) {\n            return findSystemClass(name);\n        } else {\n            return parent.loadClass(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "cleanup", "code": "    public synchronized void cleanup() {\n        for (Enumeration e = zipFiles.elements(); e.hasMoreElements();) {\n            ZipFile zipFile = (ZipFile) e.nextElement();\n            try {\n                zipFile.close();\n            } catch (IOException ioe) {\n            }\n        }\n        zipFiles = new Hashtable();\n        if (project != null) {\n            project.removeBuildListener(this);\n        }\n        project = null;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "CALL", "CATCH", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [2, 10], [2, 11], [1, 12], [10, 13], [2, 14], [10, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [10, 2], [11, 2], [12, 1], [13, 10], [14, 2], [15, 10], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        cleanup();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "subBuildFinished", "code": "    public void subBuildFinished(BuildEvent event) {\n        if (event.getProject() == project) {\n            cleanup();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "subBuildStarted", "code": "    public void subBuildStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addJavaLibraries", "code": "    public void addJavaLibraries() {\n        Vector packages = JavaEnvUtils.getJrePackages();\n        Enumeration e = packages.elements();\n        while (e.hasMoreElements()) {\n            String packageName = (String) e.nextElement();\n            addSystemPackageRoot(packageName);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [3, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 3], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"AntClassLoader[\" + getClasspath() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "AntClassLoader", "code": "    public AntClassLoader(\n        ClassLoader parent, Project project, Path classpath) {\n        setParent(parent);\n        setClassPath(classpath);\n        setProject(project);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "AntClassLoader", "code": "    public AntClassLoader() {\n        setParent(null);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AntClassLoader", "code": "    public AntClassLoader(Project project, Path classpath) {\n        setParent(null);\n        setProject(project);\n        setClassPath(classpath);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "AntClassLoader", "code": "    public AntClassLoader(ClassLoader parent, Project project, Path classpath,\n                          boolean parentFirst) {\n        this(project, classpath);\n        if (parent != null) {\n            setParent(parent);\n        }\n        setParentFirst(parentFirst);\n        addJavaLibraries();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "AntClassLoader", "code": "    public AntClassLoader(Project project, Path classpath,\n                          boolean parentFirst) {\n        this(null, project, classpath, parentFirst);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "AntClassLoader", "code": "    public AntClassLoader(ClassLoader parent, boolean parentFirst) {\n        setParent(parent);\n        project = null;\n        this.parentFirst = parentFirst;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "camel-1.6-3166", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jpa/JpaEndpoint.java", "language": "java", "name": "org.apache.camel.component.jpa.JpaEndpoint", "code": "public class JpaEndpoint extends ScheduledPollEndpoint<Exchange> {\n    private EntityManagerFactory entityManagerFactory;\n    private String persistenceUnit = \"camel\";\n    private JpaTemplate template;\n    private Expression<Exchange> producerExpression;\n    private int maximumResults = -1;\n    private Class<?> entityType;\n    private Map entityManagerProperties;\n    private boolean consumeDelete = true;\n    private boolean consumeLockEntity = true;\n    private boolean flushOnSend = true;\n\n    public JpaEndpoint(String uri, JpaComponent component) {\n        super(uri, component);\n        entityManagerFactory = component.getEntityManagerFactory();\n    }\n\n    public JpaEndpoint(String endpointUri, EntityManagerFactory entityManagerFactory) {\n        super(endpointUri);\n        this.entityManagerFactory = entityManagerFactory;\n    }\n\n    public JpaEndpoint(String endpointUri) {\n        super(endpointUri);\n    }\n\n    public Producer<Exchange> createProducer() throws Exception {\n        validate();\n        return new JpaProducer(this, getProducerExpression());\n    }\n\n    public Consumer<Exchange> createConsumer(Processor processor) throws Exception {\n        validate();\n        JpaConsumer consumer = new JpaConsumer(this, processor);\n        configureConsumer(consumer);\n        return consumer;\n    }\n\n    @Override\n    public void configureProperties(Map options) {\n        super.configureProperties(options);\n        Map emProperties = IntrospectionSupport.extractProperties(options, \"emf.\");\n        if (emProperties != null) {\n            setEntityManagerProperties(emProperties);\n        }\n    }\n\n    public boolean isSingleton() {\n        return false;\n    }\n\n    public JpaTemplate getTemplate() {\n        if (template == null) {\n            template = createTemplate();\n        }\n        return template;\n    }\n\n    public void setTemplate(JpaTemplate template) {\n        this.template = template;\n    }\n\n    public Expression<Exchange> getProducerExpression() {\n        if (producerExpression == null) {\n            producerExpression = createProducerExpression();\n        }\n        return producerExpression;\n    }\n\n    public void setProducerExpression(Expression<Exchange> producerExpression) {\n        this.producerExpression = producerExpression;\n    }\n\n    public int getMaximumResults() {\n        return maximumResults;\n    }\n\n    public void setMaximumResults(int maximumResults) {\n        this.maximumResults = maximumResults;\n    }\n\n    public Class<?> getEntityType() {\n        return entityType;\n    }\n\n    public void setEntityType(Class<?> entityType) {\n        this.entityType = entityType;\n    }\n\n    public EntityManagerFactory getEntityManagerFactory() {\n        if (entityManagerFactory == null) {\n            entityManagerFactory = createEntityManagerFactory();\n        }\n        return entityManagerFactory;\n    }\n\n    public void setEntityManagerFactory(EntityManagerFactory entityManagerFactory) {\n        this.entityManagerFactory = entityManagerFactory;\n    }\n\n    public Map getEntityManagerProperties() {\n        if (entityManagerProperties == null) {\n            entityManagerProperties = System.getProperties();\n        }\n        return entityManagerProperties;\n    }\n\n    public void setEntityManagerProperties(Map entityManagerProperties) {\n        this.entityManagerProperties = entityManagerProperties;\n    }\n\n    public String getPersistenceUnit() {\n        return persistenceUnit;\n    }\n\n    public void setPersistenceUnit(String persistenceUnit) {\n        this.persistenceUnit = persistenceUnit;\n    }\n\n    public boolean isConsumeDelete() {\n        return consumeDelete;\n    }\n\n    public void setConsumeDelete(boolean consumeDelete) {\n        this.consumeDelete = consumeDelete;\n    }\n\n    public boolean isConsumeLockEntity() {\n        return consumeLockEntity;\n    }\n\n    public void setConsumeLockEntity(boolean consumeLockEntity) {\n        this.consumeLockEntity = consumeLockEntity;\n    }\n\n    public boolean isFlushOnSend() {\n        return flushOnSend;\n    }\n\n    public void setFlushOnSend(boolean flushOnSend) {\n        this.flushOnSend = flushOnSend;\n    }\n\n    protected void validate() {\n        ObjectHelper.notNull(getEntityManagerFactory(), \"entityManagerFactory property\");\n    }\n\n    protected JpaTemplate createTemplate() {\n        return new JpaTemplate(getEntityManagerFactory());\n    }\n\n    protected EntityManagerFactory createEntityManagerFactory() {\n        return Persistence.createEntityManagerFactory(persistenceUnit, getEntityManagerProperties());\n    }\n\n    protected EntityManager createEntityManager() {\n        return getEntityManagerFactory().createEntityManager();\n    }\n\n    protected TransactionStrategy createTransactionStrategy() {\n        EntityManagerFactory emf = getEntityManagerFactory();\n        return JpaTemplateTransactionStrategy.newInstance(emf, getTemplate());\n    }\n\n    protected Expression<Exchange> createProducerExpression() {\n        final Class<?> type = getEntityType();\n        if (type == null) {\n            return ExpressionBuilder.bodyExpression();\n        } else {\n            return new Expression<Exchange>() {\n                public Object evaluate(Exchange exchange) {\n                    Object answer = exchange.getIn().getBody(type);\n                    if (answer == null) {\n                        Object defaultValue = exchange.getIn().getBody();\n                        if (defaultValue != null) {\n                            throw new NoTypeConversionAvailableException(defaultValue, type);\n                        }\n\n                        answer = exchange.getContext().getInjector().newInstance(type);\n                    }\n                    return answer;", "functions": [{"function_name": "createProducer", "code": "    public Producer<Exchange> createProducer() throws Exception {\n        validate();\n        return new JpaProducer(this, getProducerExpression());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [1, 0], [2, 1], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createConsumer", "code": "    public Consumer<Exchange> createConsumer(Processor processor) throws Exception {\n        validate();\n        JpaConsumer consumer = new JpaConsumer(this, processor);\n        configureConsumer(consumer);\n        return consumer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "configureProperties", "code": "    @Override\n    public void configureProperties(Map options) {\n        super.configureProperties(options);\n        Map emProperties = IntrospectionSupport.extractProperties(options, \"emf.\");\n        if (emProperties != null) {\n            setEntityManagerProperties(emProperties);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTemplate", "code": "    public JpaTemplate getTemplate() {\n        if (template == null) {\n            template = createTemplate();\n        }\n        return template;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setTemplate", "code": "    public void setTemplate(JpaTemplate template) {\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProducerExpression", "code": "    public Expression<Exchange> getProducerExpression() {\n        if (producerExpression == null) {\n            producerExpression = createProducerExpression();\n        }\n        return producerExpression;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setProducerExpression", "code": "    public void setProducerExpression(Expression<Exchange> producerExpression) {\n        this.producerExpression = producerExpression;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaximumResults", "code": "    public int getMaximumResults() {\n        return maximumResults;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMaximumResults", "code": "    public void setMaximumResults(int maximumResults) {\n        this.maximumResults = maximumResults;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEntityType", "code": "    public Class<?> getEntityType() {\n        return entityType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEntityType", "code": "    public void setEntityType(Class<?> entityType) {\n        this.entityType = entityType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEntityManagerFactory", "code": "    public EntityManagerFactory getEntityManagerFactory() {\n        if (entityManagerFactory == null) {\n            entityManagerFactory = createEntityManagerFactory();\n        }\n        return entityManagerFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setEntityManagerFactory", "code": "    public void setEntityManagerFactory(EntityManagerFactory entityManagerFactory) {\n        this.entityManagerFactory = entityManagerFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEntityManagerProperties", "code": "    public Map getEntityManagerProperties() {\n        if (entityManagerProperties == null) {\n            entityManagerProperties = System.getProperties();\n        }\n        return entityManagerProperties;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setEntityManagerProperties", "code": "    public void setEntityManagerProperties(Map entityManagerProperties) {\n        this.entityManagerProperties = entityManagerProperties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPersistenceUnit", "code": "    public String getPersistenceUnit() {\n        return persistenceUnit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPersistenceUnit", "code": "    public void setPersistenceUnit(String persistenceUnit) {\n        this.persistenceUnit = persistenceUnit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isConsumeDelete", "code": "    public boolean isConsumeDelete() {\n        return consumeDelete;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConsumeDelete", "code": "    public void setConsumeDelete(boolean consumeDelete) {\n        this.consumeDelete = consumeDelete;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isConsumeLockEntity", "code": "    public boolean isConsumeLockEntity() {\n        return consumeLockEntity;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConsumeLockEntity", "code": "    public void setConsumeLockEntity(boolean consumeLockEntity) {\n        this.consumeLockEntity = consumeLockEntity;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFlushOnSend", "code": "    public boolean isFlushOnSend() {\n        return flushOnSend;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFlushOnSend", "code": "    public void setFlushOnSend(boolean flushOnSend) {\n        this.flushOnSend = flushOnSend;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "validate", "code": "    protected void validate() {\n        ObjectHelper.notNull(getEntityManagerFactory(), \"entityManagerFactory property\");", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createTemplate", "code": "    protected JpaTemplate createTemplate() {\n        return new JpaTemplate(getEntityManagerFactory());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createEntityManagerFactory", "code": "    protected EntityManagerFactory createEntityManagerFactory() {\n        return Persistence.createEntityManagerFactory(persistenceUnit, getEntityManagerProperties());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createEntityManager", "code": "    protected EntityManager createEntityManager() {\n        return getEntityManagerFactory().createEntityManager();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createTransactionStrategy", "code": "    protected TransactionStrategy createTransactionStrategy() {\n        EntityManagerFactory emf = getEntityManagerFactory();\n        return JpaTemplateTransactionStrategy.newInstance(emf, getTemplate());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createProducerExpression", "code": "    protected Expression<Exchange> createProducerExpression() {\n        final Class<?> type = getEntityType();\n        if (type == null) {\n            return ExpressionBuilder.bodyExpression();\n        } else {\n            return new Expression<Exchange>() {\n                public Object evaluate(Exchange exchange) {\n                    Object answer = exchange.getIn().getBody(type);\n                    if (answer == null) {\n                        Object defaultValue = exchange.getIn().getBody();\n                        if (defaultValue != null) {\n                            throw new NoTypeConversionAvailableException(defaultValue, type);\n                        }\n\n                        answer = exchange.getContext().getInjector().newInstance(type);\n                    }\n                    return answer;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [2, 7], [4, 8], [5, 9], [8, 10], [10, 11], [10, 12], [10, 13], [10, 14], [12, 15], [12, 16], [12, 17], [15, 18], [13, 19], [12, 20], [16, 21], [19, 22], [20, 23], [16, 24], [21, 25], [17, 26], [23, 27], [23, 28], [24, 29], [26, 30], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 2], [8, 4], [9, 5], [10, 8], [11, 10], [12, 10], [13, 10], [14, 10], [15, 12], [16, 12], [17, 12], [18, 15], [19, 13], [20, 12], [21, 16], [22, 19], [23, 20], [24, 16], [25, 21], [26, 17], [27, 23], [28, 23], [29, 24], [30, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "JpaEndpoint", "code": "    public JpaEndpoint(String uri, JpaComponent component) {\n        super(uri, component);\n        entityManagerFactory = component.getEntityManagerFactory();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "JpaEndpoint", "code": "    public JpaEndpoint(String endpointUri, EntityManagerFactory entityManagerFactory) {\n        super(endpointUri);\n        this.entityManagerFactory = entityManagerFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "JpaEndpoint", "code": "    public JpaEndpoint(String endpointUri) {\n        super(endpointUri);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6544", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/TemplateList.java", "language": "java", "name": "org.apache.xalan.templates.TemplateList", "code": "public class TemplateList implements java.io.Serializable\n{\n\n  /**\n   * Construct a TemplateList object. Needs to be public so it can\n   * be invoked from the CompilingStylesheetHandler.\n   */\n  public TemplateList()\n  {\n    super();\n  }\n\n  /**\n   * Add a template to the table of named templates and/or the table of templates\n   * with match patterns.  This routine should\n   * be called in decreasing order of precedence but it checks nonetheless.\n   *\n   * @param template\n   */\n  public void setTemplate(ElemTemplate template)\n  {\n    if (null != template.getName())\n    {\n      ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName());\n      if (null == existingTemplate)\n      {\n        m_namedTemplates.put(template.getName(), template);\n      }\n      else\n      {\n        int existingPrecedence =\n                        existingTemplate.getStylesheetComposed().getImportCountComposed();\n        int newPrecedence = template.getStylesheetComposed().getImportCountComposed();\n        if (newPrecedence > existingPrecedence)\n        {\n          m_namedTemplates.put(template.getName(), template);\n        }\n        else if (newPrecedence == existingPrecedence)\n          template.error(XSLTErrorResources.ER_DUPLICATE_NAMED_TEMPLATE,\n                       new Object[]{ template.getName() });\n      }\n    }\n\n    XPath matchXPath = template.getMatch();\n\n    if (null != matchXPath)\n    {\n      Expression matchExpr = matchXPath.getExpression();\n\n      if (matchExpr instanceof StepPattern)\n      {\n        insertPatternInTable((StepPattern) matchExpr, template);\n      }\n      else if (matchExpr instanceof UnionPattern)\n      {\n        UnionPattern upat = (UnionPattern) matchExpr;\n        StepPattern[] pats = upat.getPatterns();\n        int n = pats.length;\n\n        for (int i = 0; i < n; i++)\n        {\n          insertPatternInTable(pats[i], template);\n        }\n      }\n      else\n      {\n\n      }\n    }\n  }\n\n  /** Flag to indicate whether in DEBUG mode          */\n  static boolean DEBUG = false;\n\n  /**\n   * Dump all patterns and elements that match those patterns\n   *\n   */\n  void dumpAssociationTables()\n  {\n\n    Enumeration associations = m_patternTable.elements();\n\n    while (associations.hasMoreElements())\n    {\n      TemplateSubPatternAssociation head =\n        (TemplateSubPatternAssociation) associations.nextElement();\n\n      while (null != head)\n      {\n        System.out.print(\"(\" + head.getTargetString() + \", \"\n                         + head.getPattern() + \")\");\n\n        head = head.getNext();\n      }\n\n      System.out.println(\"\\n.....\");\n    }\n\n    TemplateSubPatternAssociation head = m_wildCardPatterns;\n\n    System.out.print(\"wild card list: \");\n\n    while (null != head)\n    {\n      System.out.print(\"(\" + head.getTargetString() + \", \"\n                       + head.getPattern() + \")\");\n\n      head = head.getNext();\n    }\n\n    System.out.println(\"\\n.....\");\n  }\n\n  /**\n   * After all templates have been added, this function\n   * should be called.\n   */\n  public void compose(StylesheetRoot sroot)\n  {\n\n    if (DEBUG)\n    {\n      System.out.println(\"Before wildcard insert...\");\n      dumpAssociationTables();\n    }\n\n    if (null != m_wildCardPatterns)\n    {\n      Enumeration associations = m_patternTable.elements();\n\n      while (associations.hasMoreElements())\n      {\n        TemplateSubPatternAssociation head =\n          (TemplateSubPatternAssociation) associations.nextElement();\n        TemplateSubPatternAssociation wild = m_wildCardPatterns;\n\n        while (null != wild)\n        {\n          try\n          {\n            head = insertAssociationIntoList(\n              head, (TemplateSubPatternAssociation) wild.clone(), true);\n          }\n          catch (CloneNotSupportedException cnse){}\n\n          wild = wild.getNext();\n        }\n      }\n    }\n\n    if (DEBUG)\n    {\n      System.out.println(\"After wildcard insert...\");\n      dumpAssociationTables();\n    }\n  }\n\n  /**\n   * Insert the given TemplateSubPatternAssociation into the the linked\n   * list.  Sort by import precedence, then priority, then by document order.\n   *\n   * @param head The first TemplateSubPatternAssociation in the linked list.\n   * @param item The item that we want to insert into the proper place.\n   * @param isWildCardInsert <code>true</code> if we are inserting a wild card \n   *             template onto this list.\n   * @return the new head of the list.\n   */\n  private TemplateSubPatternAssociation\n              insertAssociationIntoList(TemplateSubPatternAssociation head,\n                                         TemplateSubPatternAssociation item,\n                                         boolean isWildCardInsert)\n  {\n\n\n    double priority = getPriorityOrScore(item);\n    double workPriority;\n    int importLevel = item.getImportLevel();\n    int docOrder = item.getDocOrderPos();\n    TemplateSubPatternAssociation insertPoint = head;\n    TemplateSubPatternAssociation next;\n\n\n    while (true)\n    {\n      next = insertPoint.getNext();\n      if (null == next)\n        break;\n      else\n      {\n        workPriority = getPriorityOrScore(next);\n        if (importLevel > next.getImportLevel())\n          break;\n        else if (importLevel < next.getImportLevel()){\n          insertPoint = next;\n          break;\n        }else if (priority < workPriority){\n          insertPoint = next;\n          break;\n        }else\n          insertPoint = next;\n      }\n    }\n\tif (true)\n    {\n      workPriority = getPriorityOrScore(insertPoint);\n      if (importLevel > insertPoint.getImportLevel())\n        insertBefore = true;\n      else if (importLevel < insertPoint.getImportLevel())\n        insertBefore = false;\n      else if (priority > workPriority)\n        insertBefore = true;\n      else if (priority < workPriority)\n        insertBefore = false;\n      else if (docOrder >= insertPoint.getDocOrderPos())\n        insertBefore = true;\n      else\n        insertBefore = false;\n    }\n    else\n      insertBefore = false;\n\n    \n    if (isWildCardInsert)\n    {\n      if (insertBefore)\n      {\n        item.setNext(insertPoint);\n\n        String key = insertPoint.getTargetString();\n\n        item.setTargetString(key);\n        putHead(key, item);\n        return item;\n      }\n      else\n      {\n        item.setNext(next);\n        insertPoint.setNext(item);\n        return head;\n      }\n    }\n    else\n    {\n      if (insertBefore)\n      {\n        item.setNext(insertPoint);\n\n        if (insertPoint.isWild() || item.isWild())\n          m_wildCardPatterns = item;\n        else\n          putHead(item.getTargetString(), item);\n        return item;\n      }\n      else\n      {\n        item.setNext(next);\n        insertPoint.setNext(item);\n        return head;\n      }\n    }\n  }\n\n  /**\n   * Add a template to the template list.\n   *\n   * @param pattern\n   * @param template\n   */\n  private void insertPatternInTable(StepPattern pattern, ElemTemplate template)\n  {\n\n    String target = pattern.getTargetString();\n\n    if (null != target)\n    {\n      String pstring = template.getMatch().getPatternString();\n      TemplateSubPatternAssociation association =\n        new TemplateSubPatternAssociation(template, pattern, pstring);\n\n      boolean isWildCard = association.isWild();\n      TemplateSubPatternAssociation head = isWildCard\n                                           ? m_wildCardPatterns\n                                           : getHead(target);\n\n      if (null == head)\n      {\n        if (isWildCard)\n          m_wildCardPatterns = association;\n        else\n          putHead(target, association);\n      }\n      else\n      {\n        insertAssociationIntoList(head, association, false);\n      }\n    }\n  }\n\n  /**\n   * Given a match pattern and template association, return the \n   * score of that match.  This score or priority can always be \n   * statically calculated.\n   *\n   * @param matchPat The match pattern to template association.\n   *\n   * @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST}, \n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE}, \n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD}, \n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_QNAME}, or\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_OTHER}, or \n   *         the value defined by the priority attribute of the template.\n   *\n   */\n  private double getPriorityOrScore(TemplateSubPatternAssociation matchPat)\n  {\n\n    double priority = matchPat.getTemplate().getPriority();\n\n    if (priority == XPath.MATCH_SCORE_NONE)\n    {\n      Expression ex = matchPat.getStepPattern();\n\n      if (ex instanceof NodeTest)\n      {\n        return ((NodeTest) ex).getDefaultScore();\n      }\n    }\n\n    return priority;\n  }\n\n  /**\n   * Locate a named template.\n   *\n   * @param qname  Qualified name of the template.\n   *\n   * @return Template argument with the requested name, or null if not found.\n   */\n  public ElemTemplate getTemplate(QName qname)\n  {\n    return (ElemTemplate) m_namedTemplates.get(qname);\n  }\n\n  /**\n   * Get the head of the most likely list of associations to check, based on \n   * the name and type of the targetNode argument.\n   *\n   * @param xctxt The XPath runtime context.\n   * @param targetNode The target node that will be checked for a match.\n   * @param dtm The dtm owner for the target node.\n   *\n   * @return The head of a linked list that contains all possible match pattern to \n   * template associations.\n   */\n  public TemplateSubPatternAssociation getHead(XPathContext xctxt, \n                                               int targetNode, DTM dtm)\n  {\n    short targetNodeType = dtm.getNodeType(targetNode);\n    TemplateSubPatternAssociation head;\n\n    switch (targetNodeType)\n    {\n    case DTM.ELEMENT_NODE :\n    case DTM.ATTRIBUTE_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.TEXT_NODE :\n    case DTM.CDATA_SECTION_NODE :\n      head = m_textPatterns;\n      break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    case DTM.ENTITY_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n      break;\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.COMMENT_NODE :\n      head = m_commentPatterns;\n      break;\n    case DTM.DOCUMENT_NODE :\n    case DTM.DOCUMENT_FRAGMENT_NODE :\n      head = m_docPatterns;\n      break;\n    case DTM.NOTATION_NODE :\n    default :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n    }\n\n    return (null == head) ? m_wildCardPatterns : head;\n  }\n  \n  /**\n   * Given a target element, find the template that best\n   * matches in the given XSL document, according\n   * to the rules specified in the xsl draft.  This variation of getTemplate \n   * assumes the current node and current expression node have already been \n   * pushed. \n   *\n   * @param xctxt\n   * @param targetNode\n   * @param mode A string indicating the display mode.\n   * @param maxImportLevel The maximum importCountComposed that we should consider or -1\n   *        if we should consider all import levels.  This is used by apply-imports to\n   *        access templates that have been overridden.\n   * @param quietConflictWarnings\n   * @return Rule that best matches targetElem.\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   */\n  public ElemTemplate getTemplateFast(XPathContext xctxt,\n                                int targetNode,\n                                int expTypeID,\n                                QName mode,\n                                int maxImportLevel,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n    \n    TemplateSubPatternAssociation head;\n\n    switch (dtm.getNodeType(targetNode))\n    {\n    case DTM.ELEMENT_NODE :\n    case DTM.ATTRIBUTE_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalNameFromExpandedNameID(expTypeID));\n      break;\n    case DTM.TEXT_NODE :\n    case DTM.CDATA_SECTION_NODE :\n      head = m_textPatterns;\n      break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    case DTM.ENTITY_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n      break;\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.COMMENT_NODE :\n      head = m_commentPatterns;\n      break;\n    case DTM.DOCUMENT_NODE :\n    case DTM.DOCUMENT_FRAGMENT_NODE :\n      head = m_docPatterns;\n      break;\n    case DTM.NOTATION_NODE :\n    default :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n    }\n\n    if(null == head)\n    {\n      head = m_wildCardPatterns;\n      if(null == head)\n        return null;\n    }                                              \n\n    xctxt.pushNamespaceContextNull();\n    try\n    {\n      do\n      {\n        if ( (maxImportLevel > -1) && (head.getImportLevel() > maxImportLevel) )\n        {\n          continue;\n        }\n        ElemTemplate template = head.getTemplate();        \n        xctxt.setNamespaceContext(template);\n        \n        if ((head.m_stepPattern.execute(xctxt, targetNode, dtm, expTypeID) != NodeTest.SCORE_NONE)\n                && head.matchMode(mode))\n        {\n          if (quietConflictWarnings)\n            checkConflicts(head, xctxt, targetNode, mode);\n\n          return template;\n        }\n      }\n      while (null != (head = head.getNext()));\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n    }\n\n    return null;\n  }\n  /**\n   * Given a target element, find the template that best\n   * matches in the given XSL document, according\n   * to the rules specified in the xsl draft.\n   *\n   * @param xctxt\n   * @param targetNode\n   * @param mode A string indicating the display mode.\n   * @param quietConflictWarnings\n   * @return Rule that best matches targetElem.\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   */\n  public ElemTemplate getTemplate(XPathContext xctxt,\n                                int targetNode,\n                                QName mode,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n\n    TemplateSubPatternAssociation head = getHead(xctxt, targetNode, dtm);\n\n    if (null != head)\n    {\n      xctxt.pushNamespaceContextNull();\n      xctxt.pushCurrentNodeAndExpression(targetNode, targetNode);\n      try\n      {\n        do\n        {\n          ElemTemplate template = head.getTemplate();        \n          xctxt.setNamespaceContext(template);\n          \n          if ((head.m_stepPattern.execute(xctxt, targetNode) != NodeTest.SCORE_NONE)\n                  && head.matchMode(mode))\n          {\n            if (quietConflictWarnings)\n              checkConflicts(head, xctxt, targetNode, mode);\n\n            return template;\n          }\n        }\n        while (null != (head = head.getNext()));\n      }\n      finally\n      {\n        xctxt.popCurrentNodeAndExpression();\n        xctxt.popNamespaceContext();\n      }\n    }\n\n    return null;\n  }\n  /**\n   * Given a target element, find the template that best\n   * matches in the given XSL document, according\n   * to the rules specified in the xsl draft.\n   *\n   * @param xctxt\n   * @param targetNode\n   * @param mode A string indicating the display mode.\n   * @param maxImportLevel The maximum importCountComposed that we should consider or -1\n   *        if we should consider all import levels.  This is used by apply-imports to\n   *        access templates that have been overridden.\n   * @param maxEndImportLevel The count of composed imports\n   * @param quietConflictWarnings\n   * @return Rule that best matches targetElem.\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   */\n  public ElemTemplate getTemplate(XPathContext xctxt,\n                                int targetNode,\n                                QName mode,\n                                int maxImportLevel, int endImportLevel,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n\n    TemplateSubPatternAssociation head = getHead(xctxt, targetNode, dtm);\n\n    if (null != head)\n    {\n      xctxt.pushNamespaceContextNull();\n      xctxt.pushCurrentNodeAndExpression(targetNode, targetNode);\n      try\n      {\n        do\n        {\n          if ( (maxImportLevel > -1) && (head.getImportLevel() > maxImportLevel))\n          {\n            continue;\n          }\n          if (head.getImportLevel()<= maxImportLevel - endImportLevel)\n            return null;\n          ElemTemplate template = head.getTemplate();        \n          xctxt.setNamespaceContext(template);\n          \n          if ((head.m_stepPattern.execute(xctxt, targetNode) != NodeTest.SCORE_NONE)\n                  && head.matchMode(mode))\n          {\n            if (quietConflictWarnings)\n              checkConflicts(head, xctxt, targetNode, mode);\n\n            return template;\n          }\n        }\n        while (null != (head = head.getNext()));\n      }\n      finally\n      {\n        xctxt.popCurrentNodeAndExpression();\n        xctxt.popNamespaceContext();\n      }\n    }\n\n    return null;\n  }\n  /**\n   * Get a TemplateWalker for use by a compiler.  See the documentation for\n   * the TreeWalker inner class for further details.\n   */\n  public TemplateWalker getWalker()\n  {\n    return new TemplateWalker();\n  }\n\n  /**\n   * Check for match conflicts, and warn the stylesheet author.\n   *\n   * @param head Template pattern\n   * @param xctxt Current XPath context\n   * @param targetNode Node matching the pattern\n   */\n  private void checkConflicts(TemplateSubPatternAssociation head,\n                              XPathContext xctxt, int targetNode, QName mode)\n  {\n\n  }\n\n  /**\n   * Add object to vector if not already there.\n   *\n   * @param obj\n   * @param v\n   */\n  private void addObjectIfNotFound(Object obj, Vector v)\n  {\n\n    int n = v.size();\n    boolean addIt = true;\n\n    for (int i = 0; i < n; i++)\n    {\n      if (v.elementAt(i) == obj)\n      {\n        addIt = false;\n\n        break;\n      }\n    }\n\n    if (addIt)\n    {\n      v.addElement(obj);\n    }\n  }\n\n  /**\n   * Keyed on string macro names, and holding values\n   * that are macro elements in the XSL DOM tree.\n   * Initialized in initMacroLookupTable, and used in\n   * findNamedTemplate.\n   * @serial\n   */\n  private Hashtable m_namedTemplates = new Hashtable(89);\n\n  /**\n   * This table is keyed on the target elements\n   * of patterns, and contains linked lists of\n   * the actual patterns that match the target element\n   * to some degree of specifity.\n   * @serial\n   */\n  private Hashtable m_patternTable = new Hashtable(89);\n\n  /** Wildcard patterns.\n   *  @serial          */\n  private TemplateSubPatternAssociation m_wildCardPatterns = null;\n\n  /** Text Patterns.\n   *  @serial          */\n  private TemplateSubPatternAssociation m_textPatterns = null;\n\n  /** Root document Patterns.\n   *  @serial          */\n  private TemplateSubPatternAssociation m_docPatterns = null;\n\n  /** Comment Patterns.\n   *  @serial          */\n  private TemplateSubPatternAssociation m_commentPatterns = null;\n\n  /**\n   * Get table of named Templates.\n   * These are keyed on template names, and holding values\n   * that are template elements.\n   *\n   * @return A Hashtable dictionary that contains {@link java.lang.String}s \n   * as the keys, and {@link org.apache.xalan.templates.ElemTemplate}s as the \n   * values. \n   */\n  private Hashtable getNamedTemplates()\n  {\n    return m_namedTemplates;\n  }\n\n  /**\n   * Set table of named Templates.\n   * These are keyed on string macro names, and holding values\n   * that are template elements in the XSL DOM tree.\n   *\n   * @param v Hashtable dictionary that contains {@link java.lang.String}s \n   * as the keys, and {@link org.apache.xalan.templates.ElemTemplate}s as the \n   * values.\n   */\n  private void setNamedTemplates(Hashtable v)\n  {\n    m_namedTemplates = v;\n  }\n\n  /**\n   * Get the head of the assocation list that is keyed by target.\n   *\n   * @param key The name of a node. \n   *\n   * @return The head of a linked list that contains all possible match pattern to \n   * template associations for the given key.\n   */\n  private TemplateSubPatternAssociation getHead(String key)\n  {\n    return (TemplateSubPatternAssociation) m_patternTable.get(key);\n  }\n\n  /**\n   * Get the head of the assocation list that is keyed by target.\n   *\n   * @param key\n   * @param assoc\n   */\n  private void putHead(String key, TemplateSubPatternAssociation assoc)\n  {\n\n    if (key.equals(PsuedoNames.PSEUDONAME_TEXT))\n      m_textPatterns = assoc;\n    else if (key.equals(PsuedoNames.PSEUDONAME_ROOT))\n      m_docPatterns = assoc;\n    else if (key.equals(PsuedoNames.PSEUDONAME_COMMENT))\n      m_commentPatterns = assoc;\n\n    m_patternTable.put(key, assoc);\n  }\n\n  /**\n   * An inner class used by a compiler to iterate over all of the ElemTemplates\n   * stored in this TemplateList.  The compiler can replace returned templates\n   * with their compiled equivalent.\n   */\n  public class TemplateWalker\n  {\n    private Enumeration hashIterator;\n    private boolean inPatterns;\n    private TemplateSubPatternAssociation curPattern;\n\n    private Hashtable m_compilerCache = new Hashtable();\n\n    private TemplateWalker()\n    {\n      hashIterator = m_patternTable.elements();\n      inPatterns = true;\n      curPattern = null;\n    }\n\n    public ElemTemplate next()\n    {\n\n      ElemTemplate retValue = null;\n      ElemTemplate ct;\n\n      while (true)\n      {\n        if (inPatterns)\n        {\n          if (null != curPattern)\n            curPattern = curPattern.getNext();\n\n          if (null != curPattern)\n            retValue = curPattern.getTemplate();\n          else\n          {\n            if (hashIterator.hasMoreElements())\n            {\n              curPattern = (TemplateSubPatternAssociation) hashIterator.nextElement();\n              retValue =  curPattern.getTemplate();\n            }\n            else\n            {\n              inPatterns = false;\n              hashIterator = m_namedTemplates.elements();\n            }\n          }\n        }\n\n        if (!inPatterns)\n        {\n          if (hashIterator.hasMoreElements())\n            retValue = (ElemTemplate) hashIterator.nextElement();\n          else\n            return null;\n        }\n\n        ct = (ElemTemplate) m_compilerCache.get(new Integer(retValue.getUid()));\n        if (null == ct)\n        {\n          m_compilerCache.put(new Integer(retValue.getUid()), retValue);\n          return retValue;", "functions": [{"function_name": "setTemplate", "code": "  public void setTemplate(ElemTemplate template)\n  {\n    if (null != template.getName())\n    {\n      ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName());\n      if (null == existingTemplate)\n      {\n        m_namedTemplates.put(template.getName(), template);\n      }\n      else\n      {\n        int existingPrecedence =\n                        existingTemplate.getStylesheetComposed().getImportCountComposed();\n        int newPrecedence = template.getStylesheetComposed().getImportCountComposed();\n        if (newPrecedence > existingPrecedence)\n        {\n          m_namedTemplates.put(template.getName(), template);\n        }\n        else if (newPrecedence == existingPrecedence)\n          template.error(XSLTErrorResources.ER_DUPLICATE_NAMED_TEMPLATE,\n                       new Object[]{ template.getName() });\n      }\n    }\n\n    XPath matchXPath = template.getMatch();\n\n    if (null != matchXPath)\n    {\n      Expression matchExpr = matchXPath.getExpression();\n\n      if (matchExpr instanceof StepPattern)\n      {\n        insertPatternInTable((StepPattern) matchExpr, template);\n      }\n      else if (matchExpr instanceof UnionPattern)\n      {\n        UnionPattern upat = (UnionPattern) matchExpr;\n        StepPattern[] pats = upat.getPatterns();\n        int n = pats.length;\n\n        for (int i = 0; i < n; i++)\n        {\n          insertPatternInTable(pats[i], template);\n        }\n      }\n      else\n      {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [1, 8], [5, 9], [2, 10], [3, 11], [3, 12], [6, 13], [6, 14], [7, 15], [7, 16], [11, 17], [15, 18], [8, 19], [11, 20], [11, 21], [11, 22], [17, 23], [15, 24], [15, 25], [15, 26], [15, 27], [7, 28], [20, 29], [20, 30], [11, 31], [12, 32], [24, 33], [29, 34], [21, 35], [22, 36], [31, 37], [32, 38], [26, 39], [29, 40], [20, 41], [35, 42], [36, 43], [24, 44], [24, 45], [41, 46], [40, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 1], [9, 5], [10, 2], [11, 3], [12, 3], [13, 6], [14, 6], [15, 7], [16, 7], [17, 11], [18, 15], [19, 8], [20, 11], [21, 11], [22, 11], [23, 17], [24, 15], [25, 15], [26, 15], [27, 15], [28, 7], [29, 20], [30, 20], [31, 11], [32, 12], [33, 24], [34, 29], [35, 21], [36, 22], [37, 31], [38, 32], [39, 26], [40, 29], [41, 20], [42, 35], [43, 36], [44, 24], [45, 24], [46, 41], [47, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "dumpAssociationTables", "code": "  void dumpAssociationTables()\n  {\n\n    Enumeration associations = m_patternTable.elements();\n\n    while (associations.hasMoreElements())\n    {\n      TemplateSubPatternAssociation head =\n        (TemplateSubPatternAssociation) associations.nextElement();\n\n      while (null != head)\n      {\n        System.out.print(\"(\" + head.getTargetString() + \", \"\n                         + head.getPattern() + \")\");\n\n        head = head.getNext();\n      }\n\n      System.out.println(\"\\n.....\");\n    }\n\n    TemplateSubPatternAssociation head = m_wildCardPatterns;\n\n    System.out.print(\"wild card list: \");\n\n    while (null != head)\n    {\n      System.out.print(\"(\" + head.getTargetString() + \", \"\n                       + head.getPattern() + \")\");\n\n      head = head.getNext();\n    }\n\n    System.out.println(\"\\n.....\");", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [3, 8], [5, 9], [6, 10], [7, 11], [3, 12], [3, 13], [4, 14], [1, 15], [1, 16], [3, 17], [12, 18], [15, 19], [16, 20], [17, 21], [18, 22], [20, 23], [20, 24], [12, 25], [12, 26], [13, 27], [24, 28], [24, 29], [25, 30], [26, 31], [29, 32], [29, 33], [31, 34], [31, 35], [33, 36], [33, 37], [35, 38], [35, 39], [39, 40], [39, 41], [41, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 3], [9, 5], [10, 6], [11, 7], [12, 3], [13, 3], [14, 4], [15, 1], [16, 1], [17, 3], [18, 12], [19, 15], [20, 16], [21, 17], [22, 18], [23, 20], [24, 20], [25, 12], [26, 12], [27, 13], [28, 24], [29, 24], [30, 25], [31, 26], [32, 29], [33, 29], [34, 31], [35, 31], [36, 33], [37, 33], [38, 35], [39, 35], [40, 39], [41, 39], [42, 41], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot)\n  {\n\n    if (DEBUG)\n    {\n      System.out.println(\"Before wildcard insert...\");\n      dumpAssociationTables();\n    }\n\n    if (null != m_wildCardPatterns)\n    {\n      Enumeration associations = m_patternTable.elements();\n\n      while (associations.hasMoreElements())\n      {\n        TemplateSubPatternAssociation head =\n          (TemplateSubPatternAssociation) associations.nextElement();\n        TemplateSubPatternAssociation wild = m_wildCardPatterns;\n\n        while (null != wild)\n        {\n          try\n          {\n            head = insertAssociationIntoList(\n              head, (TemplateSubPatternAssociation) wild.clone(), true);\n          }\n          catch (CloneNotSupportedException cnse){}\n\n          wild = wild.getNext();\n        }\n      }\n    }\n\n    if (DEBUG)\n    {\n      System.out.println(\"After wildcard insert...\");\n      dumpAssociationTables();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [1, 9], [1, 10], [6, 11], [3, 12], [3, 13], [10, 14], [6, 15], [6, 16], [6, 17], [7, 18], [13, 19], [15, 20], [15, 21], [20, 22], [15, 23], [21, 24], [17, 25], [23, 26], [21, 27], [27, 28], [28, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 1], [10, 1], [11, 6], [12, 3], [13, 3], [14, 10], [15, 6], [16, 6], [17, 6], [18, 7], [19, 13], [20, 15], [21, 15], [22, 20], [23, 15], [24, 21], [25, 17], [26, 23], [27, 21], [28, 27], [29, 28], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "insertAssociationIntoList", "code": "  private TemplateSubPatternAssociation\n              insertAssociationIntoList(TemplateSubPatternAssociation head,\n                                         TemplateSubPatternAssociation item,\n                                         boolean isWildCardInsert)\n  {\n\n\n    double priority = getPriorityOrScore(item);\n    double workPriority;\n    int importLevel = item.getImportLevel();\n    int docOrder = item.getDocOrderPos();\n    TemplateSubPatternAssociation insertPoint = head;\n    TemplateSubPatternAssociation next;\n\n\n    while (true)\n    {\n      next = insertPoint.getNext();\n      if (null == next)\n        break;\n      else\n      {\n        workPriority = getPriorityOrScore(next);\n        if (importLevel > next.getImportLevel())\n          break;\n        else if (importLevel < next.getImportLevel()){\n          insertPoint = next;\n          break;\n        }else if (priority < workPriority){\n          insertPoint = next;\n          break;\n        }else\n          insertPoint = next;\n      }\n    }\n\tif (true)\n    {\n      workPriority = getPriorityOrScore(insertPoint);\n      if (importLevel > insertPoint.getImportLevel())\n        insertBefore = true;\n      else if (importLevel < insertPoint.getImportLevel())\n        insertBefore = false;\n      else if (priority > workPriority)\n        insertBefore = true;\n      else if (priority < workPriority)\n        insertBefore = false;\n      else if (docOrder >= insertPoint.getDocOrderPos())\n        insertBefore = true;\n      else\n        insertBefore = false;\n    }\n    else\n      insertBefore = false;\n\n    \n    if (isWildCardInsert)\n    {\n      if (insertBefore)\n      {\n        item.setNext(insertPoint);\n\n        String key = insertPoint.getTargetString();\n\n        item.setTargetString(key);\n        putHead(key, item);\n        return item;\n      }\n      else\n      {\n        item.setNext(next);\n        insertPoint.setNext(item);\n        return head;\n      }\n    }\n    else\n    {\n      if (insertBefore)\n      {\n        item.setNext(insertPoint);\n\n        if (insertPoint.isWild() || item.isWild())\n          m_wildCardPatterns = item;\n        else\n          putHead(item.getTargetString(), item);\n        return item;\n      }\n      else\n      {\n        item.setNext(next);\n        insertPoint.setNext(item);\n        return head;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "ASSIGN", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "RETURN", "RETURN", "IF", "RETURN", "RETURN", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [3, 14], [1, 15], [1, 16], [2, 17], [2, 18], [3, 19], [6, 20], [7, 21], [9, 22], [17, 23], [18, 24], [18, 25], [2, 26], [19, 27], [19, 28], [3, 29], [15, 30], [15, 31], [15, 32], [16, 33], [16, 34], [16, 35], [24, 36], [24, 37], [18, 38], [25, 39], [26, 40], [19, 41], [28, 42], [29, 43], [15, 44], [15, 45], [32, 46], [15, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [36, 53], [36, 54], [24, 55], [37, 56], [38, 57], [41, 58], [41, 59], [41, 60], [19, 61], [32, 62], [32, 63], [46, 64], [46, 65], [35, 66], [53, 67], [53, 68], [36, 69], [55, 70], [58, 71], [58, 72], [60, 73], [61, 74], [62, 75], [67, 76], [53, 77], [69, 78], [71, 79], [58, 80], [72, 81], [67, 82], [67, 83], [76, 84], [77, 85], [71, 86], [71, 87], [58, 88], [82, 89], [83, 90], [71, 91], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 3], [15, 1], [16, 1], [17, 2], [18, 2], [19, 3], [20, 6], [21, 7], [22, 9], [23, 17], [24, 18], [25, 18], [26, 2], [27, 19], [28, 19], [29, 3], [30, 15], [31, 15], [32, 15], [33, 16], [34, 16], [35, 16], [36, 24], [37, 24], [38, 18], [39, 25], [40, 26], [41, 19], [42, 28], [43, 29], [44, 15], [45, 15], [46, 32], [47, 15], [48, 16], [49, 16], [50, 16], [51, 16], [52, 16], [53, 36], [54, 36], [55, 24], [56, 37], [57, 38], [58, 41], [59, 41], [60, 41], [61, 19], [62, 32], [63, 32], [64, 46], [65, 46], [66, 35], [67, 53], [68, 53], [69, 36], [70, 55], [71, 58], [72, 58], [73, 60], [74, 61], [75, 62], [76, 67], [77, 53], [78, 69], [79, 71], [80, 58], [81, 72], [82, 67], [83, 67], [84, 76], [85, 77], [86, 71], [87, 71], [88, 58], [89, 82], [90, 83], [91, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91]]}, {"function_name": "insertPatternInTable", "code": "  private void insertPatternInTable(StepPattern pattern, ElemTemplate template)\n  {\n\n    String target = pattern.getTargetString();\n\n    if (null != target)\n    {\n      String pstring = template.getMatch().getPatternString();\n      TemplateSubPatternAssociation association =\n        new TemplateSubPatternAssociation(template, pattern, pstring);\n\n      boolean isWildCard = association.isWild();\n      TemplateSubPatternAssociation head = isWildCard\n                                           ? m_wildCardPatterns\n                                           : getHead(target);\n\n      if (null == head)\n      {\n        if (isWildCard)\n          m_wildCardPatterns = association;\n        else\n          putHead(target, association);\n      }\n      else\n      {\n        insertAssociationIntoList(head, association, false);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [2, 12], [6, 13], [6, 14], [13, 15], [7, 16], [8, 17], [9, 18], [10, 19], [6, 20], [16, 21], [19, 22], [20, 23], [14, 24], [14, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 2], [13, 6], [14, 6], [15, 13], [16, 7], [17, 8], [18, 9], [19, 10], [20, 6], [21, 16], [22, 19], [23, 20], [24, 14], [25, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getPriorityOrScore", "code": "  private double getPriorityOrScore(TemplateSubPatternAssociation matchPat)\n  {\n\n    double priority = matchPat.getTemplate().getPriority();\n\n    if (priority == XPath.MATCH_SCORE_NONE)\n    {\n      Expression ex = matchPat.getStepPattern();\n\n      if (ex instanceof NodeTest)\n      {\n        return ((NodeTest) ex).getDefaultScore();\n      }\n    }\n\n    return priority;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [3, 8], [6, 9], [8, 10], [6, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 3], [9, 6], [10, 8], [11, 6], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getTemplate", "code": "  public ElemTemplate getTemplate(QName qname)\n  {\n    return (ElemTemplate) m_namedTemplates.get(qname);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getHead", "code": "  public TemplateSubPatternAssociation getHead(XPathContext xctxt, \n                                               int targetNode, DTM dtm)\n  {\n    short targetNodeType = dtm.getNodeType(targetNode);\n    TemplateSubPatternAssociation head;\n\n    switch (targetNodeType)\n    {\n    case DTM.ELEMENT_NODE :\n    case DTM.ATTRIBUTE_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.TEXT_NODE :\n    case DTM.CDATA_SECTION_NODE :\n      head = m_textPatterns;\n      break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    case DTM.ENTITY_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n      break;\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.COMMENT_NODE :\n      head = m_commentPatterns;\n      break;\n    case DTM.DOCUMENT_NODE :\n    case DTM.DOCUMENT_FRAGMENT_NODE :\n      head = m_docPatterns;\n      break;\n    case DTM.NOTATION_NODE :\n    default :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n    }\n\n    return (null == head) ? m_wildCardPatterns : head;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [4, 16], [9, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [18, 25], [21, 26], [22, 27], [24, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 4], [17, 9], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 18], [26, 21], [27, 22], [28, 24], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getTemplateFast", "code": "  public ElemTemplate getTemplateFast(XPathContext xctxt,\n                                int targetNode,\n                                int expTypeID,\n                                QName mode,\n                                int maxImportLevel,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n    \n    TemplateSubPatternAssociation head;\n\n    switch (dtm.getNodeType(targetNode))\n    {\n    case DTM.ELEMENT_NODE :\n    case DTM.ATTRIBUTE_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalNameFromExpandedNameID(expTypeID));\n      break;\n    case DTM.TEXT_NODE :\n    case DTM.CDATA_SECTION_NODE :\n      head = m_textPatterns;\n      break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    case DTM.ENTITY_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n      break;\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.COMMENT_NODE :\n      head = m_commentPatterns;\n      break;\n    case DTM.DOCUMENT_NODE :\n    case DTM.DOCUMENT_FRAGMENT_NODE :\n      head = m_docPatterns;\n      break;\n    case DTM.NOTATION_NODE :\n    default :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n    }\n\n    if(null == head)\n    {\n      head = m_wildCardPatterns;\n      if(null == head)\n        return null;\n    }                                              \n\n    xctxt.pushNamespaceContextNull();\n    try\n    {\n      do\n      {\n        if ( (maxImportLevel > -1) && (head.getImportLevel() > maxImportLevel) )\n        {\n          continue;\n        }\n        ElemTemplate template = head.getTemplate();        \n        xctxt.setNamespaceContext(template);\n        \n        if ((head.m_stepPattern.execute(xctxt, targetNode, dtm, expTypeID) != NodeTest.SCORE_NONE)\n                && head.matchMode(mode))\n        {\n          if (quietConflictWarnings)\n            checkConflicts(head, xctxt, targetNode, mode);\n\n          return template;\n        }\n      }\n      while (null != (head = head.getNext()));\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LOOP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "VAR_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [0, 15], [3, 16], [4, 17], [2, 18], [14, 19], [3, 20], [16, 21], [4, 22], [4, 23], [4, 24], [4, 25], [4, 26], [4, 27], [14, 28], [14, 29], [14, 30], [19, 31], [19, 32], [20, 33], [20, 34], [3, 35], [4, 36], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [28, 43], [14, 44], [30, 45], [31, 46], [33, 47], [34, 48], [28, 49], [28, 50], [43, 51], [43, 52], [29, 53], [30, 54], [45, 55], [45, 56], [36, 57], [39, 58], [40, 59], [42, 60], [52, 61], [55, 62], [56, 63], [58, 64], [60, 65], [50, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 0], [16, 3], [17, 4], [18, 2], [19, 14], [20, 3], [21, 16], [22, 4], [23, 4], [24, 4], [25, 4], [26, 4], [27, 4], [28, 14], [29, 14], [30, 14], [31, 19], [32, 19], [33, 20], [34, 20], [35, 3], [36, 4], [37, 4], [38, 4], [39, 4], [40, 4], [41, 4], [42, 4], [43, 28], [44, 14], [45, 30], [46, 31], [47, 33], [48, 34], [49, 28], [50, 28], [51, 43], [52, 43], [53, 29], [54, 30], [55, 45], [56, 45], [57, 36], [58, 39], [59, 40], [60, 42], [61, 52], [62, 55], [63, 56], [64, 58], [65, 60], [66, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "getTemplate", "code": "  public ElemTemplate getTemplate(XPathContext xctxt,\n                                int targetNode,\n                                QName mode,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n\n    TemplateSubPatternAssociation head = getHead(xctxt, targetNode, dtm);\n\n    if (null != head)\n    {\n      xctxt.pushNamespaceContextNull();\n      xctxt.pushCurrentNodeAndExpression(targetNode, targetNode);\n      try\n      {\n        do\n        {\n          ElemTemplate template = head.getTemplate();        \n          xctxt.setNamespaceContext(template);\n          \n          if ((head.m_stepPattern.execute(xctxt, targetNode) != NodeTest.SCORE_NONE)\n                  && head.matchMode(mode))\n          {\n            if (quietConflictWarnings)\n              checkConflicts(head, xctxt, targetNode, mode);\n\n            return template;\n          }\n        }\n        while (null != (head = head.getNext()));\n      }\n      finally\n      {\n        xctxt.popCurrentNodeAndExpression();\n        xctxt.popNamespaceContext();\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "LOOP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "RETURN", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [10, 12], [3, 13], [11, 14], [2, 15], [2, 16], [11, 17], [11, 18], [14, 19], [14, 20], [14, 21], [19, 22], [19, 23], [20, 24], [14, 25], [22, 26], [20, 27], [20, 28], [24, 29], [24, 30], [21, 31], [30, 32], [28, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 10], [13, 3], [14, 11], [15, 2], [16, 2], [17, 11], [18, 11], [19, 14], [20, 14], [21, 14], [22, 19], [23, 19], [24, 20], [25, 14], [26, 22], [27, 20], [28, 20], [29, 24], [30, 24], [31, 21], [32, 30], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getTemplate", "code": "  public ElemTemplate getTemplate(XPathContext xctxt,\n                                int targetNode,\n                                QName mode,\n                                int maxImportLevel, int endImportLevel,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n\n    TemplateSubPatternAssociation head = getHead(xctxt, targetNode, dtm);\n\n    if (null != head)\n    {\n      xctxt.pushNamespaceContextNull();\n      xctxt.pushCurrentNodeAndExpression(targetNode, targetNode);\n      try\n      {\n        do\n        {\n          if ( (maxImportLevel > -1) && (head.getImportLevel() > maxImportLevel))\n          {\n            continue;\n          }\n          if (head.getImportLevel()<= maxImportLevel - endImportLevel)\n            return null;\n          ElemTemplate template = head.getTemplate();        \n          xctxt.setNamespaceContext(template);\n          \n          if ((head.m_stepPattern.execute(xctxt, targetNode) != NodeTest.SCORE_NONE)\n                  && head.matchMode(mode))\n          {\n            if (quietConflictWarnings)\n              checkConflicts(head, xctxt, targetNode, mode);\n\n            return template;\n          }\n        }\n        while (null != (head = head.getNext()));\n      }\n      finally\n      {\n        xctxt.popCurrentNodeAndExpression();\n        xctxt.popNamespaceContext();\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "LOOP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "IF", "IF", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [2, 13], [12, 14], [3, 15], [13, 16], [2, 17], [2, 18], [13, 19], [13, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [21, 26], [21, 27], [22, 28], [16, 29], [24, 30], [24, 31], [25, 32], [26, 33], [22, 34], [22, 35], [28, 36], [28, 37], [23, 38], [30, 39], [31, 40], [31, 41], [25, 42], [32, 43], [32, 44], [37, 45], [43, 46], [44, 47], [35, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 2], [14, 12], [15, 3], [16, 13], [17, 2], [18, 2], [19, 13], [20, 13], [21, 16], [22, 16], [23, 16], [24, 16], [25, 16], [26, 21], [27, 21], [28, 22], [29, 16], [30, 24], [31, 24], [32, 25], [33, 26], [34, 22], [35, 22], [36, 28], [37, 28], [38, 23], [39, 30], [40, 31], [41, 31], [42, 25], [43, 32], [44, 32], [45, 37], [46, 43], [47, 44], [48, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "getWalker", "code": "  public TemplateWalker getWalker()\n  {\n    return new TemplateWalker();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "checkConflicts", "code": "  private void checkConflicts(TemplateSubPatternAssociation head,\n                              XPathContext xctxt, int targetNode, QName mode)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addObjectIfNotFound", "code": "  private void addObjectIfNotFound(Object obj, Vector v)\n  {\n\n    int n = v.size();\n    boolean addIt = true;\n\n    for (int i = 0; i < n; i++)\n    {\n      if (v.elementAt(i) == obj)\n      {\n        addIt = false;\n\n        break;\n      }\n    }\n\n    if (addIt)\n    {\n      v.addElement(obj);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [4, 10], [1, 11], [8, 12], [2, 13], [8, 14], [12, 15], [8, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 4], [11, 1], [12, 8], [13, 2], [14, 8], [15, 12], [16, 8], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getNamedTemplates", "code": "  private Hashtable getNamedTemplates()\n  {\n    return m_namedTemplates;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamedTemplates", "code": "  private void setNamedTemplates(Hashtable v)\n  {\n    m_namedTemplates = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHead", "code": "  private TemplateSubPatternAssociation getHead(String key)\n  {\n    return (TemplateSubPatternAssociation) m_patternTable.get(key);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "putHead", "code": "  private void putHead(String key, TemplateSubPatternAssociation assoc)\n  {\n\n    if (key.equals(PsuedoNames.PSEUDONAME_TEXT))\n      m_textPatterns = assoc;\n    else if (key.equals(PsuedoNames.PSEUDONAME_ROOT))\n      m_docPatterns = assoc;\n    else if (key.equals(PsuedoNames.PSEUDONAME_COMMENT))\n      m_commentPatterns = assoc;\n\n    m_patternTable.put(key, assoc);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "IF", "CALL", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [1, 9], [7, 10], [5, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 1], [10, 7], [11, 5], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "TemplateList", "code": "  public TemplateList()\n  {\n    super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.5-340", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/types/selectors/DepthSelector.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.DepthSelector", "code": "public class DepthSelector extends BaseExtendSelector {\n\n    public int min = -1;\n    public int max = -1;\n    public final static String MIN_KEY = \"min\";\n    public final static String MAX_KEY = \"max\";\n\n    public DepthSelector() {\n    }\n\n    public String toString() {\n        StringBuffer buf = new StringBuffer(\"{depthselector min: \");\n        buf.append(min);\n        buf.append(\" max: \");\n        buf.append(max);\n        buf.append(\"}\");\n        return buf.toString();\n    }\n\n    /**\n     * The minimum depth below the basedir before a file is selected.\n     *\n     * @param min minimum directory levels below basedir to go\n     */\n    public void setMin(int min) {\n        this.min = min;\n    }\n\n    /**\n     * The minimum depth below the basedir before a file is selected.\n     *\n     * @param min maximum directory levels below basedir to go\n     */\n    public void setMax(int max) {\n        this.max = max;\n    }\n\n    /**\n     * When using this as a custom selector, this method will be called.\n     * It translates each parameter into the appropriate setXXX() call.\n     *\n     * @param parameters the complete set of parameters for this selector\n     */\n    public void setParameters(Parameter[] parameters) {\n        super.setParameters(parameters);\n        if (parameters != null) {\n            for (int i = 0; i < parameters.length; i++) {\n                String paramname = parameters[i].getName();\n                if (MIN_KEY.equalsIgnoreCase(paramname)) {\n                    try {\n                        setMin(Integer.parseInt(parameters[i].getValue()));\n                    }\n                    catch (NumberFormatException nfe1) {\n                        setError(\"Invalid minimum value \"\n                            + parameters[i].getValue());\n                    }\n                }\n                else if (MAX_KEY.equalsIgnoreCase(paramname)) {\n                    try {\n                        setMax(Integer.parseInt(parameters[i].getValue()));\n                    }\n                    catch (NumberFormatException nfe1) {\n                        setError(\"Invalid maximum value \"\n                            + parameters[i].getValue());\n                    }\n                }\n                else {\n                    setError(\"Invalid parameter \" + paramname);\n                }\n            }\n        }\n    }\n\n    /**\n     * Checks to make sure all settings are kosher. In this case, it\n     * means that the max depth is not lower than the min depth.\n     */\n    public void verifySettings() {\n        if (min < 0 && max < 0) {\n            setError(\"You must set at least one of the min or the \" +\n                    \"max levels.\");\n        }\n        if (max < min && max > -1) {\n            setError(\"The maximum depth is lower than the minimum.\");\n        }\n    }\n\n    /**\n     * The heart of the matter. This is where the selector gets to decide\n     * on the inclusion of a file in a particular fileset. Most of the work\n     * for this selector is offloaded into SelectorUtils, a static class\n     * that provides the same services for both FilenameSelector and\n     * DirectoryScanner.\n     *\n     * @param basedir the base directory the scan is being done from\n     * @param filename is the name of the file to check\n     * @param file is a java.io.File object the selector can use\n     * @return whether the file should be selected or not\n     */\n    public boolean isSelected(File basedir, String filename, File file) {\n\n        validate();\n\n        int depth = -1;\n        String abs_base = basedir.getAbsolutePath();\n        String abs_file = file.getAbsolutePath();\n        StringTokenizer tok_base = new StringTokenizer(abs_base, File.separator);\n        StringTokenizer tok_file = new StringTokenizer(abs_file, File.separator);\n        while (tok_file.hasMoreTokens()) {\n            String filetoken = tok_file.nextToken();\n            if (tok_base.hasMoreTokens()) {\n                String basetoken = tok_base.nextToken();\n                if (!basetoken.equals(filetoken)) {\n                    throw new BuildException(\"File \" + filename +\n                        \" does not appear within \" + abs_base + \"directory\");\n                }\n            }\n            else {\n                depth += 1;\n                if (max > -1 && depth > max) {\n                    return false;\n                }\n            }\n        }\n        if (tok_base.hasMoreTokens()) {\n            throw new BuildException(\"File \" + filename +\n                \" is outside of \" + abs_base + \"directory tree\");\n        }\n        if (min > -1 && depth < min) {\n            return false;\n        }\n        return true;", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer(\"{depthselector min: \");\n        buf.append(min);\n        buf.append(\" max: \");\n        buf.append(max);\n        buf.append(\"}\");\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [6, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 6], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setMin", "code": "    public void setMin(int min) {\n        this.min = min;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMax", "code": "    public void setMax(int max) {\n        this.max = max;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setParameters", "code": "    public void setParameters(Parameter[] parameters) {\n        super.setParameters(parameters);\n        if (parameters != null) {\n            for (int i = 0; i < parameters.length; i++) {\n                String paramname = parameters[i].getName();\n                if (MIN_KEY.equalsIgnoreCase(paramname)) {\n                    try {\n                        setMin(Integer.parseInt(parameters[i].getValue()));\n                    }\n                    catch (NumberFormatException nfe1) {\n                        setError(\"Invalid minimum value \"\n                            + parameters[i].getValue());\n                    }\n                }\n                else if (MAX_KEY.equalsIgnoreCase(paramname)) {\n                    try {\n                        setMax(Integer.parseInt(parameters[i].getValue()));\n                    }\n                    catch (NumberFormatException nfe1) {\n                        setError(\"Invalid maximum value \"\n                            + parameters[i].getValue());\n                    }\n                }\n                else {\n                    setError(\"Invalid parameter \" + paramname);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "TRY", "CATCH", "CALL", "CALL", "CATCH", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [4, 8], [7, 9], [7, 10], [4, 11], [9, 12], [7, 13], [9, 14], [13, 15], [8, 16], [9, 17], [14, 18], [13, 19], [17, 20], [14, 21], [15, 22], [19, 23], [20, 24], [18, 25], [21, 26], [22, 27], [25, 28], [27, 29], [23, 30], [28, 31], [26, 32], [27, 33], [28, 34], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 4], [9, 7], [10, 7], [11, 4], [12, 9], [13, 7], [14, 9], [15, 13], [16, 8], [17, 9], [18, 14], [19, 13], [20, 17], [21, 14], [22, 15], [23, 19], [24, 20], [25, 18], [26, 21], [27, 22], [28, 25], [29, 27], [30, 23], [31, 28], [32, 26], [33, 27], [34, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "verifySettings", "code": "    public void verifySettings() {\n        if (min < 0 && max < 0) {\n            setError(\"You must set at least one of the min or the \" +\n                    \"max levels.\");\n        }\n        if (max < min && max > -1) {\n            setError(\"The maximum depth is lower than the minimum.\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [1, 9], [5, 10], [2, 11], [7, 12], [8, 13], [9, 14], [11, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 1], [10, 5], [11, 2], [12, 7], [13, 8], [14, 9], [15, 11], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "isSelected", "code": "    public boolean isSelected(File basedir, String filename, File file) {\n\n        validate();\n\n        int depth = -1;\n        String abs_base = basedir.getAbsolutePath();\n        String abs_file = file.getAbsolutePath();\n        StringTokenizer tok_base = new StringTokenizer(abs_base, File.separator);\n        StringTokenizer tok_file = new StringTokenizer(abs_file, File.separator);\n        while (tok_file.hasMoreTokens()) {\n            String filetoken = tok_file.nextToken();\n            if (tok_base.hasMoreTokens()) {\n                String basetoken = tok_base.nextToken();\n                if (!basetoken.equals(filetoken)) {\n                    throw new BuildException(\"File \" + filename +\n                        \" does not appear within \" + abs_base + \"directory\");\n                }\n            }\n            else {\n                depth += 1;\n                if (max > -1 && depth > max) {\n                    return false;\n                }\n            }\n        }\n        if (tok_base.hasMoreTokens()) {\n            throw new BuildException(\"File \" + filename +\n                \" is outside of \" + abs_base + \"directory tree\");\n        }\n        if (min > -1 && depth < min) {\n            return false;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [3, 15], [4, 16], [0, 17], [2, 18], [14, 19], [14, 20], [3, 21], [4, 22], [4, 23], [5, 24], [6, 25], [7, 26], [8, 27], [9, 28], [18, 29], [20, 30], [21, 31], [22, 32], [31, 33], [22, 34], [22, 35], [22, 36], [23, 37], [33, 38], [33, 39], [34, 40], [22, 41], [35, 42], [39, 43], [34, 44], [40, 45], [40, 46], [41, 47], [35, 48], [36, 49], [43, 50], [43, 51], [44, 52], [46, 53], [48, 54], [51, 55], [54, 56], [56, 57], [56, 58], [58, 59], [59, 60], [59, 61], [61, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 3], [16, 4], [17, 0], [18, 2], [19, 14], [20, 14], [21, 3], [22, 4], [23, 4], [24, 5], [25, 6], [26, 7], [27, 8], [28, 9], [29, 18], [30, 20], [31, 21], [32, 22], [33, 31], [34, 22], [35, 22], [36, 22], [37, 23], [38, 33], [39, 33], [40, 34], [41, 22], [42, 35], [43, 39], [44, 34], [45, 40], [46, 40], [47, 41], [48, 35], [49, 36], [50, 43], [51, 43], [52, 44], [53, 46], [54, 48], [55, 51], [56, 54], [57, 56], [58, 56], [59, 58], [60, 59], [61, 59], [62, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "DepthSelector", "code": "    public DepthSelector() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.6-2837", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/language/juel/JuelExpression.java", "language": "java", "name": "org.apache.camel.language.juel.JuelExpression", "code": "public class JuelExpression extends ExpressionSupport<Exchange> {\n    private final String expression;\n    private final Class<?> type;\n    private ExpressionFactory expressionFactory;\n    private Properties expressionFactoryProperties;\n\n    public JuelExpression(String expression, Class<?> type) {\n        this.expression = expression;\n        this.type = type;\n    }\n\n    public static JuelExpression el(String expression) {\n        return new JuelExpression(expression, Object.class);\n    }\n\n    public Object evaluate(Exchange exchange) {\n        ELContext context = populateContext(createContext(), exchange);\n        ValueExpression valueExpression = getExpressionFactory().createValueExpression(context, expression, type);\n        return valueExpression.getValue(context);\n    }\n\n    public ExpressionFactory getExpressionFactory() {\n        if (expressionFactory == null) {\n            Properties properties = getExpressionFactoryProperties();\n            expressionFactory = ExpressionFactory.newInstance(properties);\n        }\n        return expressionFactory;\n    }\n\n    public void setExpressionFactory(ExpressionFactory expressionFactory) {\n        this.expressionFactory = expressionFactory;\n    }\n\n    public Properties getExpressionFactoryProperties() {\n        if (expressionFactoryProperties == null) {\n            expressionFactoryProperties = new Properties();\n            populateDefaultExpressionProperties(expressionFactoryProperties);\n        }\n        return expressionFactoryProperties;\n    }\n\n    public void setExpressionFactoryProperties(Properties expressionFactoryProperties) {\n        this.expressionFactoryProperties = expressionFactoryProperties;\n    }\n\n    protected ELContext populateContext(ELContext context, Exchange exchange) {\n        setVariable(context, \"exchange\", exchange, Exchange.class);\n        setVariable(context, \"in\", exchange.getIn(), Message.class);\n        Message out = exchange.getOut(false);\n        setVariable(context, \"out\", out, Message.class);\n        return context;\n    }\n\n    /**\n     * A Strategy Method to populate the default properties used to create the expression factory\n     */\n    protected void populateDefaultExpressionProperties(Properties properties) {\n        properties.setProperty(\"javax.el.methodInvocations\", \"true\");\n    }\n\n    protected void setVariable(ELContext context, String name, Object value, Class<?> type) {\n        ValueExpression valueExpression = getExpressionFactory().createValueExpression(value, type);\n        SimpleContext simpleContext = (SimpleContext) context;\n        simpleContext.setVariable(name, valueExpression);\n    }\n\n    /**\n     * Factory method to create the EL context\n     */\n    protected ELContext createContext() {\n        ELResolver resolver = new CompositeELResolver() {\n            {\n                add(new ArrayELResolver(false));\n                add(new ListELResolver(false));\n                add(new MapELResolver(false));\n                add(new ResourceBundleELResolver());\n                add(new BeanAndMethodELResolver());\n            }\n        };\n        return new SimpleContext(resolver);\n    }\n\n    protected String assertionFailureMessage(Exchange exchange) {\n        return expression;", "functions": [{"function_name": "el", "code": "    public static JuelExpression el(String expression) {\n        return new JuelExpression(expression, Object.class);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "evaluate", "code": "    public Object evaluate(Exchange exchange) {\n        ELContext context = populateContext(createContext(), exchange);\n        ValueExpression valueExpression = getExpressionFactory().createValueExpression(context, expression, type);\n        return valueExpression.getValue(context);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getExpressionFactory", "code": "    public ExpressionFactory getExpressionFactory() {\n        if (expressionFactory == null) {\n            Properties properties = getExpressionFactoryProperties();\n            expressionFactory = ExpressionFactory.newInstance(properties);\n        }\n        return expressionFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [2, 6], [6, 7], [4, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 2], [7, 6], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setExpressionFactory", "code": "    public void setExpressionFactory(ExpressionFactory expressionFactory) {\n        this.expressionFactory = expressionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExpressionFactoryProperties", "code": "    public Properties getExpressionFactoryProperties() {\n        if (expressionFactoryProperties == null) {\n            expressionFactoryProperties = new Properties();\n            populateDefaultExpressionProperties(expressionFactoryProperties);\n        }\n        return expressionFactoryProperties;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setExpressionFactoryProperties", "code": "    public void setExpressionFactoryProperties(Properties expressionFactoryProperties) {\n        this.expressionFactoryProperties = expressionFactoryProperties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "populateContext", "code": "    protected ELContext populateContext(ELContext context, Exchange exchange) {\n        setVariable(context, \"exchange\", exchange, Exchange.class);\n        setVariable(context, \"in\", exchange.getIn(), Message.class);\n        Message out = exchange.getOut(false);\n        setVariable(context, \"out\", out, Message.class);\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [2, 9], [6, 10], [6, 11], [7, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 2], [10, 6], [11, 6], [12, 7], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "populateDefaultExpressionProperties", "code": "    protected void populateDefaultExpressionProperties(Properties properties) {\n        properties.setProperty(\"javax.el.methodInvocations\", \"true\");", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setVariable", "code": "    protected void setVariable(ELContext context, String name, Object value, Class<?> type) {\n        ValueExpression valueExpression = getExpressionFactory().createValueExpression(value, type);\n        SimpleContext simpleContext = (SimpleContext) context;\n        simpleContext.setVariable(name, valueExpression);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createContext", "code": "    protected ELContext createContext() {\n        ELResolver resolver = new CompositeELResolver() {\n            {\n                add(new ArrayELResolver(false));\n                add(new ListELResolver(false));\n                add(new MapELResolver(false));\n                add(new ResourceBundleELResolver());\n                add(new BeanAndMethodELResolver());\n            }\n        };\n        return new SimpleContext(resolver);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "assertionFailureMessage", "code": "    protected String assertionFailureMessage(Exchange exchange) {\n        return expression;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JuelExpression", "code": "    public JuelExpression(String expression, Class<?> type) {\n        this.expression = expression;\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.6-7571", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/UnsupportedElement.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.UnsupportedElement", "code": "final class UnsupportedElement extends SyntaxTreeNode {\n\n    private Vector _fallbacks = null;\n    private ErrorMsg _message = null;\n    private boolean _isExtension = false;\n\n    /**\n     * Basic consutrcor - stores element uri/prefix/localname\n     */\n    public UnsupportedElement(String uri, String prefix, String local, boolean isExtension) {\n\tsuper(uri, prefix, local);\n\t_isExtension = isExtension;\n    }\n\n    /**\n     * There are different categories of unsupported elements (believe it\n     * or not): there are elements within the XSLT namespace (these would\n     * be elements that are not yet implemented), there are extensions of\n     * other XSLT processors and there are unrecognised extension elements\n     * of this XSLT processor. The error message passed to this method\n     * should describe the unsupported element itself and what category\n     * the element belongs in.\n     */\n    public void setErrorMessage(ErrorMsg message) {\n\t_message = message;\n    }\n\n    /**\n     * Displays the contents of this element\n     */\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"Unsupported element = \" + _qname.getNamespace() +\n\t\t     \":\" + _qname.getLocalPart());\n\tdisplayContents(indent + IndentIncrement);\n    }\n\n\n    /**\n     * Scan and process all fallback children of the unsupported element.\n     */\n    private void processFallbacks(Parser parser) {\n\n\tVector children = getContents();\n\tif (children != null) {\n\t    final int count = children.size();\n\t    for (int i = 0; i < count; i++) {\n\t\tSyntaxTreeNode child = (SyntaxTreeNode)children.elementAt(i);\n\t\tif (child instanceof Fallback) {\n\t\t    Fallback fallback = (Fallback)child;\n\t\t    fallback.activate();\n\t\t    fallback.parseContents(parser);\n\t\t    if (_fallbacks == null) {\n\t\t    \t_fallbacks = new Vector();\n\t\t    }\n\t\t    _fallbacks.addElement(child);\n\t\t}\n\t    }\n\t}\n    }\n\n    /**\n     * Find any fallback in the descendant nodes; then activate & parse it\n     */\n    public void parseContents(Parser parser) {\n    \tprocessFallbacks(parser);\n    }\n\n    /**\n     * Run type check on the fallback element (if any).\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\t\n\tif (_fallbacks != null) {\n\t    int count = _fallbacks.size();\n\t    for (int i = 0; i < count; i++) {\n\t        Fallback fallback = (Fallback)_fallbacks.elementAt(i);\n\t        fallback.typeCheck(stable);\n\t    }\n\t}\n\treturn Type.Void;\n    }\n\n    /**\n     * Translate the fallback element (if any).\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tif (_fallbacks != null) {\n\t    int count = _fallbacks.size();\n\t    for (int i = 0; i < count; i++) {\n\t        Fallback fallback = (Fallback)_fallbacks.elementAt(i);\n\t        fallback.translate(classGen, methodGen);\n\t    }\n\t}\n\telse {\t\t\n\t    ConstantPoolGen cpg = classGen.getConstantPool();\n\t    InstructionList il = methodGen.getInstructionList();\n\t    \n\t    final int unsupportedElem = cpg.addMethodref(BASIS_LIBRARY_CLASS, \"unsupported_ElementF\",\n                                                         \"(\" + STRING_SIG + \"Z)V\");\t \n\t    il.append(new PUSH(cpg, getQName().toString()));\n\t    il.append(new PUSH(cpg, _isExtension));\n\t    il.append(new INVOKESTATIC(unsupportedElem));\t\t", "functions": [{"function_name": "setErrorMessage", "code": "    public void setErrorMessage(ErrorMsg message) {\n\t_message = message;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"Unsupported element = \" + _qname.getNamespace() +\n\t\t     \":\" + _qname.getLocalPart());\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "processFallbacks", "code": "    private void processFallbacks(Parser parser) {\n\n\tVector children = getContents();\n\tif (children != null) {\n\t    final int count = children.size();\n\t    for (int i = 0; i < count; i++) {\n\t\tSyntaxTreeNode child = (SyntaxTreeNode)children.elementAt(i);\n\t\tif (child instanceof Fallback) {\n\t\t    Fallback fallback = (Fallback)child;\n\t\t    fallback.activate();\n\t\t    fallback.parseContents(parser);\n\t\t    if (_fallbacks == null) {\n\t\t    \t_fallbacks = new Vector();\n\t\t    }\n\t\t    _fallbacks.addElement(child);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [5, 10], [5, 11], [6, 12], [10, 13], [5, 14], [10, 15], [10, 16], [10, 17], [15, 18], [10, 19], [10, 20], [11, 21], [18, 22], [15, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 5], [11, 5], [12, 6], [13, 10], [14, 5], [15, 10], [16, 10], [17, 10], [18, 15], [19, 10], [20, 10], [21, 11], [22, 18], [23, 15], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n    \tprocessFallbacks(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\t\n\tif (_fallbacks != null) {\n\t    int count = _fallbacks.size();\n\t    for (int i = 0; i < count; i++) {\n\t        Fallback fallback = (Fallback)_fallbacks.elementAt(i);\n\t        fallback.typeCheck(stable);\n\t    }\n\t}\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [5, 8], [5, 9], [6, 10], [5, 11], [5, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 5], [9, 5], [10, 6], [11, 5], [12, 5], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tif (_fallbacks != null) {\n\t    int count = _fallbacks.size();\n\t    for (int i = 0; i < count; i++) {\n\t        Fallback fallback = (Fallback)_fallbacks.elementAt(i);\n\t        fallback.translate(classGen, methodGen);\n\t    }\n\t}\n\telse {\t\t\n\t    ConstantPoolGen cpg = classGen.getConstantPool();\n\t    InstructionList il = methodGen.getInstructionList();\n\t    \n\t    final int unsupportedElem = cpg.addMethodref(BASIS_LIBRARY_CLASS, \"unsupported_ElementF\",\n                                                         \"(\" + STRING_SIG + \"Z)V\");\t \n\t    il.append(new PUSH(cpg, getQName().toString()));\n\t    il.append(new PUSH(cpg, _isExtension));\n\t    il.append(new INVOKESTATIC(unsupportedElem));\t\t", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [1, 11], [1, 12], [1, 13], [8, 14], [11, 15], [12, 16], [13, 17], [5, 18], [6, 19], [7, 20], [8, 21], [9, 22], [17, 23], [18, 24], [18, 25], [8, 26], [8, 27], [23, 28], [24, 29], [24, 30], [30, 31], [21, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 1], [12, 1], [13, 1], [14, 8], [15, 11], [16, 12], [17, 13], [18, 5], [19, 6], [20, 7], [21, 8], [22, 9], [23, 17], [24, 18], [25, 18], [26, 8], [27, 8], [28, 23], [29, 24], [30, 24], [31, 30], [32, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "UnsupportedElement", "code": "    public UnsupportedElement(String uri, String prefix, String local, boolean isExtension) {\n\tsuper(uri, prefix, local);\n\t_isExtension = isExtension;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-4.2-4451", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/gui/DockableWindowManager.java", "language": "java", "name": "org.gjt.sp.jedit.gui.DockableWindowManager", "code": "public class DockableWindowManager extends JPanel implements EBComponent\n{\n\t//{{{ Static part of class\n\n\t//{{{ Constants\n\t/**\n\t * Floating position.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic static final String FLOATING = \"floating\";\n\n\t/**\n\t * Top position.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic static final String TOP = \"top\";\n\n\t/**\n\t * Left position.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic static final String LEFT = \"left\";\n\n\t/**\n\t * Bottom position.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic static final String BOTTOM = \"bottom\";\n\n\t/**\n\t * Right position.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic static final String RIGHT = \"right\";\n\t//}}}\n\n\t//{{{ loadDockableWindows() method\n\t/**\n\t * Plugins shouldn't need to call this method.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static void loadDockableWindows(PluginJAR plugin, URL uri,\n\t\tPluginJAR.PluginCacheEntry cache)\n\t{\n\t\tReader in = null;\n\n\t\ttry\n\t\t{\n\t\t\tLog.log(Log.DEBUG,DockableWindowManager.class,\n\t\t\t\t\"Loading dockables from \" + uri);\n\n\t\t\tDockableListHandler dh = new DockableListHandler(plugin,uri);\n\t\t\tin = new BufferedReader(\n\t\t\t\tnew InputStreamReader(\n\t\t\t\turi.openStream()));\n\t\t\tXmlParser parser = new XmlParser();\n\t\t\tparser.setHandler(dh);\n\t\t\tparser.parse(null, null, in);\n\t\t\tif(cache != null)\n\t\t\t{\n\t\t\t\tcache.cachedDockableNames = dh.getCachedDockableNames();\n\t\t\t\tcache.cachedDockableActionFlags = dh.getCachedDockableActionFlags();\n\t\t\t}\n\t\t}\n\t\tcatch(XmlException xe)\n\t\t{\n\t\t\tint line = xe.getLine();\n\t\t\tString message = xe.getMessage();\n\t\t\tLog.log(Log.ERROR,DockableWindowManager.class,uri + \":\" + line\n\t\t\t\t+ \": \" + message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,DockableWindowManager.class,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(in != null)\n\t\t\t\t\tin.close();\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,DockableWindowManager.class,io);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ unloadDockableWindows() method\n\t/**\n\t * Plugins shouldn't need to call this method.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static void unloadDockableWindows(PluginJAR plugin)\n\t{\n\t\tIterator entries = dockableWindowFactories.entrySet().iterator();\n\t\twhile(entries.hasNext())\n\t\t{\n\t\t\tMap.Entry entry = (Map.Entry)entries.next();\n\t\t\tFactory factory = (Factory)entry.getValue();\n\t\t\tif(factory.plugin == plugin)\n\t\t\t\tentries.remove();\n\t\t}\n\t} //}}}\n\n\t//{{{ cacheDockableWindows() method\n\t/**\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static void cacheDockableWindows(PluginJAR plugin,\n\t\tString[] name, boolean[] actions)\n\t{\n\t\tfor(int i = 0; i < name.length; i++)\n\t\t{\n\t\t\tFactory factory = new Factory(plugin,\n\t\t\t\tname[i],null,actions[i]);\n\t\t\tdockableWindowFactories.put(name[i],factory);\n\t\t}\n\t} //}}}\n\n\t//{{{ registerDockableWindow() method\n\tpublic static void registerDockableWindow(PluginJAR plugin,\n\t\tString name, String code, boolean actions)\n\t{\n\t\tFactory factory = (Factory)dockableWindowFactories.get(name);\n\t\tif(factory != null)\n\t\t{\n\t\t\tfactory.code = code;\n\t\t\tfactory.loaded = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfactory = new Factory(plugin,name,code,actions);\n\t\t\tdockableWindowFactories.put(name,factory);\n\t\t}\n\t} //}}}\n\n\t//{{{ getRegisteredDockableWindows() method\n\tpublic static String[] getRegisteredDockableWindows()\n\t{\n\t\tString[] retVal = new String[dockableWindowFactories.size()];\n\t\tIterator entries = dockableWindowFactories.values().iterator();\n\t\tint i = 0;\n\t\twhile(entries.hasNext())\n\t\t{\n\t\t\tFactory factory = (Factory)entries.next();\n\t\t\tretVal[i++] = factory.name;\n\t\t}\n\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ DockableListHandler class\n\tstatic class DockableListHandler extends HandlerBase\n\t{\n\t\t//{{{ DockableListHandler constructor\n\t\tDockableListHandler(PluginJAR plugin, URL uri)\n\t\t{\n\t\t\tthis.plugin = plugin;\n\t\t\tthis.uri = uri;\n\t\t\tstateStack = new Stack();\n\t\t\tactions = true;\n\n\t\t\tcachedDockableNames = new LinkedList();\n\t\t\tcachedDockableActionFlags = new LinkedList();\n\t\t} //}}}\n\n\t\t//{{{ resolveEntity() method\n\t\tpublic Object resolveEntity(String publicId, String systemId)\n\t\t{\n\t\t\tif(\"dockables.dtd\".equals(systemId))\n\t\t\t{\n\t\t\t\t// this will result in a slight speed up, since we\n\t\t\t\t// don't need to read the DTD anyway, as AElfred is\n\t\t\t\t// non-validating\n\t\t\t\treturn new StringReader(\"<!-- -->\");\n\n\t\t\t\t/* try\n\t\t\t\t{\n\t\t\t\t\treturn new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tgetClass().getResourceAsStream\n\t\t\t\t\t\t(\"/org/gjt/sp/jedit/dockables.dtd\")));\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,\"Error while opening\"\n\t\t\t\t\t\t+ \" dockables.dtd:\");\n\t\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t\t} */\n\t\t\t}\n\n\t\t\treturn null;\n\t\t} //}}}\n\n\t\t//{{{ attribute() method\n\t\tpublic void attribute(String aname, String value, boolean isSpecified)\n\t\t{\n\t\t\taname = (aname == null) ? null : aname.intern();\n\t\t\tvalue = (value == null) ? null : value.intern();\n\n\t\t\tif(aname == \"NAME\")\n\t\t\t\tdockableName = value;\n\t\t\telse if(aname == \"NO_ACTIONS\")\n\t\t\t\tactions = (value == \"FALSE\");\n\t\t} //}}}\n\n\t\t//{{{ doctypeDecl() method\n\t\tpublic void doctypeDecl(String name, String publicId,\n\t\t\tString systemId) throws Exception\n\t\t{\n\t\t\tif(\"DOCKABLES\".equals(name))\n\t\t\t\treturn;\n\n\t\t\tLog.log(Log.ERROR,this,uri + \": DOCTYPE must be DOCKABLES\");\n\t\t} //}}}\n\n\t\t//{{{ charData() method\n\t\tpublic void charData(char[] c, int off, int len)\n\t\t{\n\t\t\tString tag = peekElement();\n\t\t\tString text = new String(c, off, len);\n\n\t\t\tif (tag == \"DOCKABLE\")\n\t\t\t{\n\t\t\t\tcode = text;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ startElement() method\n\t\tpublic void startElement(String tag)\n\t\t{\n\t\t\ttag = pushElement(tag);\n\t\t} //}}}\n\n\t\t//{{{ endElement() method\n\t\tpublic void endElement(String name)\n\t\t{\n\t\t\tif(name == null)\n\t\t\t\treturn;\n\n\t\t\tString tag = peekElement();\n\n\t\t\tif(name.equals(tag))\n\t\t\t{\n\t\t\t\tif(tag == \"DOCKABLE\")\n\t\t\t\t{\n\t\t\t\t\tregisterDockableWindow(plugin,\n\t\t\t\t\t\tdockableName,code,actions);\n\t\t\t\t\tcachedDockableNames.add(dockableName);\n\t\t\t\t\tcachedDockableActionFlags.add(\n\t\t\t\t\t\tnew Boolean(actions));\n\t\t\t\t\t// make default be true for the next\n\t\t\t\t\t// action\n\t\t\t\t\tactions = true;\n\t\t\t\t}\n\n\t\t\t\tpopElement();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// can't happen\n\t\t\t\tthrow new InternalError();\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ startDocument() method\n\t\tpublic void startDocument()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpushElement(null);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ getCachedDockableNames() method\n\t\tpublic String[] getCachedDockableNames()\n\t\t{\n\t\t\treturn (String[])cachedDockableNames.toArray(new String[cachedDockableNames.size()]);\n\t\t} //}}}\n\n\t\t//{{{ getCachedDockableActionFlags() method\n\t\tpublic boolean[] getCachedDockableActionFlags()\n\t\t{\n\t\t\tboolean[] returnValue = new boolean[\n\t\t\t\tcachedDockableActionFlags.size()];\n\t\t\tIterator iter = cachedDockableActionFlags.iterator();\n\t\t\tint i = 0;\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tboolean flag = ((Boolean)iter.next())\n\t\t\t\t\t.booleanValue();\n\t\t\t\treturnValue[i++] = flag;\n\t\t\t}\n\n\t\t\treturn returnValue;\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\n\t\t//{{{ Instance variables\n\t\tprivate PluginJAR plugin;\n\t\tprivate URL uri;\n\n\t\tprivate java.util.List cachedDockableNames;\n\t\tprivate java.util.List cachedDockableActionFlags;\n\n\t\tprivate String dockableName;\n\t\tprivate String code;\n\t\tprivate boolean actions;\n\n\t\tprivate Stack stateStack;\n\t\t//}}}\n\n\t\t//{{{ pushElement() method\n\t\tprivate String pushElement(String name)\n\t\t{\n\t\t\tname = (name == null) ? null : name.intern();\n\n\t\t\tstateStack.push(name);\n\n\t\t\treturn name;\n\t\t} //}}}\n\n\t\t//{{{ peekElement() method\n\t\tprivate String peekElement()\n\t\t{\n\t\t\treturn (String) stateStack.peek();\n\t\t} //}}}\n\n\t\t//{{{ popElement() method\n\t\tprivate String popElement()\n\t\t{\n\t\t\treturn (String) stateStack.pop();\n\t\t} //}}}\n\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ Factory class\n\tstatic class Factory\n\t{\n\t\tPluginJAR plugin;\n\t\tString name;\n\t\tString code;\n\t\tboolean loaded;\n\n\t\t//{{{ Factory constructor\n\t\tFactory(PluginJAR plugin, String name, String code,\n\t\t\tboolean actions)\n\t\t{\n\t\t\tthis.plugin = plugin;\n\t\t\tthis.name = name;\n\t\t\tthis.code = code;\n\n\t\t\tif(code != null)\n\t\t\t\tloaded = true;\n\n\t\t\tif(actions)\n\t\t\t{\n\t\t\t\tActionSet actionSet = (plugin == null\n\t\t\t\t\t? jEdit.getBuiltInActionSet()\n\t\t\t\t\t: plugin.getActionSet());\n\t\t\t\tactionSet.addAction(new OpenAction(name));\n\t\t\t\tactionSet.addAction(new ToggleAction(name));\n\t\t\t\tactionSet.addAction(new FloatAction(name));\n\n\t\t\t\tString label = jEdit.getProperty(name\n\t\t\t\t\t+ \".label\");\n\t\t\t\tif(label == null)\n\t\t\t\t\tlabel = \"NO LABEL PROPERTY: \" + name;\n\n\t\t\t\tString[] args = { label };\n\t\t\t\tjEdit.setTemporaryProperty(name + \".label\",\n\t\t\t\t\tlabel);\n\t\t\t\tjEdit.setTemporaryProperty(name\n\t\t\t\t\t+ \"-toggle.label\",\n\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\"view.docking.toggle.label\",args));\n\t\t\t\tjEdit.setTemporaryProperty(name\n\t\t\t\t\t+ \"-toggle.toggle\",\"true\");\n\t\t\t\tjEdit.setTemporaryProperty(name\n\t\t\t\t\t+ \"-float.label\",\n\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\"view.docking.float.label\",args));\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ load() method\n\t\tvoid load()\n\t\t{\n\t\t\tif(loaded)\n\t\t\t\treturn;\n\n\t\t\tloadDockableWindows(plugin,plugin.getDockablesURI(),null);\n\t\t} //}}}\n\n\t\t//{{{ createDockableWindow() method\n\t\tJComponent createDockableWindow(View view, String position)\n\t\t{\n\t\t\tload();\n\n\t\t\tif(!loaded)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,this,\"Outdated cache\");\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tNameSpace nameSpace = new NameSpace(\n\t\t\t\tBeanShell.getNameSpace(),\n\t\t\t\t\"DockableWindowManager.Factory\"\n\t\t\t\t+ \".createDockableWindow()\");\n\t\t\ttry\n\t\t\t{\n\t\t\t\tnameSpace.setVariable(\n\t\t\t\t\t\"position\",position);\n\t\t\t}\n\t\t\tcatch(UtilEvalError e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t}\n\t\t\tJComponent win = (JComponent)BeanShell.eval(view,\n\t\t\t\tnameSpace,code);\n\t\t\treturn win;\n\t\t} //}}}\n\n\t\t//{{{ OpenAction class\n\t\tstatic class OpenAction extends EditAction\n\t\t{\n\t\t\tprivate String dockable;\n\n\t\t\t//{{{ OpenAction constructor\n\t\t\tOpenAction(String name)\n\t\t\t{\n\t\t\t\tsuper(name);\n\t\t\t\tthis.dockable = name;\n\t\t\t} //}}}\n\n\t\t\t//{{{ invoke() method\n\t\t\tpublic void invoke(View view)\n\t\t\t{\n\t\t\t\tview.getDockableWindowManager()\n\t\t\t\t\t.showDockableWindow(dockable);\n\t\t\t} //}}}\n\n\t\t\t//{{{ getCode() method\n\t\t\tpublic String getCode()\n\t\t\t{\n\t\t\t\treturn \"view.getDockableWindowManager()\"\n\t\t\t\t\t+ \".showDockableWindow(\\\"\" + dockable + \"\\\");\";\n\t\t\t} //}}}\n\t\t} //}}}\n\n\t\t//{{{ ToggleAction class\n\t\tstatic class ToggleAction extends EditAction\n\t\t{\n\t\t\tprivate String dockable;\n\n\t\t\t//{{{ ToggleAction constructor\n\t\t\tToggleAction(String name)\n\t\t\t{\n\t\t\t\tsuper(name + \"-toggle\");\n\t\t\t\tthis.dockable = name;\n\t\t\t} //}}}\n\n\t\t\t//{{{ invoke() method\n\t\t\tpublic void invoke(View view)\n\t\t\t{\n\t\t\t\tview.getDockableWindowManager()\n\t\t\t\t\t.toggleDockableWindow(dockable);\n\t\t\t} //}}}\n\n\t\t\t//{{{ isSelected() method\n\t\t\tpublic boolean isSelected(View view)\n\t\t\t{\n\t\t\t\treturn view.getDockableWindowManager()\n\t\t\t\t\t.isDockableWindowVisible(dockable);\n\t\t\t} //}}}\n\n\t\t\t//{{{ getCode() method\n\t\t\tpublic String getCode()\n\t\t\t{\n\t\t\t\treturn \"view.getDockableWindowManager()\"\n\t\t\t\t\t+ \".toggleDockableWindow(\\\"\" + dockable + \"\\\");\";\n\t\t\t} //}}}\n\t\t} //}}}\n\n\t\t//{{{ FloatAction class\n\t\tstatic class FloatAction extends EditAction\n\t\t{\n\t\t\tprivate String dockable;\n\n\t\t\t//{{{ FloatAction constructor\n\t\t\tFloatAction(String name)\n\t\t\t{\n\t\t\t\tsuper(name + \"-float\");\n\t\t\t\tthis.dockable = name;\n\t\t\t} //}}}\n\n\t\t\t//{{{ invoke() method\n\t\t\tpublic void invoke(View view)\n\t\t\t{\n\t\t\t\tview.getDockableWindowManager()\n\t\t\t\t\t.floatDockableWindow(dockable);\n\t\t\t} //}}}\n\n\t\t\t//{{{ getCode() method\n\t\t\tpublic String getCode()\n\t\t\t{\n\t\t\t\treturn \"view.getDockableWindowManager()\"\n\t\t\t\t\t+ \".floatDockableWindow(\\\"\" + dockable + \"\\\");\";\n\t\t\t} //}}}\n\t\t} //}}}\n\t} //}}}\n\n\tprivate static HashMap dockableWindowFactories;\n\n\t//{{{ Static initializer\n\tstatic\n\t{\n\t\tdockableWindowFactories = new HashMap();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Instance part of class\n\n\t//{{{ DockableWindowManager constructor\n\t/**\n\t * Creates a new dockable window manager.\n\t * @param view The view\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic DockableWindowManager(View view, View.ViewConfig config)\n\t{\n\t\tsetLayout(new DockableLayout());\n\t\tthis.view = view;\n\t\twindows = new Hashtable();\n\t\tclones = new ArrayList();\n\n\t\ttop = new PanelWindowContainer(this,TOP,config.topPos);\n\t\tleft = new PanelWindowContainer(this,LEFT,config.leftPos);\n\t\tbottom = new PanelWindowContainer(this,BOTTOM,config.bottomPos);\n\t\tright = new PanelWindowContainer(this,RIGHT,config.rightPos);\n\n\t\tadd(DockableLayout.TOP_BUTTONS,top.buttonPanel);\n\t\tadd(DockableLayout.LEFT_BUTTONS,left.buttonPanel);\n\t\tadd(DockableLayout.BOTTOM_BUTTONS,bottom.buttonPanel);\n\t\tadd(DockableLayout.RIGHT_BUTTONS,right.buttonPanel);\n\n\t\tadd(TOP,top.dockablePanel);\n\t\tadd(LEFT,left.dockablePanel);\n\t\tadd(BOTTOM,bottom.dockablePanel);\n\t\tadd(RIGHT,right.dockablePanel);\n\t} //}}}\n\n\t//{{{ init() method\n\t/**\n\t * Initialises dockable window manager. Do not call this method directly.\n\t */\n\tpublic void init()\n\t{\n\t\tEditBus.addToBus(this);\n\n\t\tIterator entries = dockableWindowFactories.values().iterator();\n\n\t\twhile(entries.hasNext())\n\t\t\taddEntry((Factory)entries.next());\n\n\t\tpropertiesChanged();\n\t} //}}}\n\n\t//{{{ getView() method\n\t/**\n\t * Returns this dockable window manager's view.\n\t * @since jEdit 4.0pre2\n\t */\n\tpublic View getView()\n\t{\n\t\treturn view;\n\t} //}}}\n\n\t//{{{ floatDockableWindow() method\n\t/**\n\t * Opens a new instance of the specified dockable window in a floating\n\t * container.\n\t * @param name The dockable window name\n\t * @return The new dockable window instance\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic JComponent floatDockableWindow(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Unknown dockable window: \" + name);\n\t\t\treturn null;\n\t\t}\n\n\t\t// create a copy of this dockable window and float it\n\t\tEntry newEntry = new Entry(entry.factory,FLOATING);\n\t\tnewEntry.win = newEntry.factory.createDockableWindow(view,FLOATING);\n\t\tif(newEntry.win != null)\n\t\t{\n\t\t\tnewEntry.container = new FloatingWindowContainer(this,true);\n\t\t\tnewEntry.container.register(newEntry);\n\t\t\tnewEntry.container.show(newEntry);\n\t\t}\n\n\t\tclones.add(newEntry);\n\t\treturn newEntry.win;\n\t} //}}}\n\n\t//{{{ showDockableWindow() method\n\t/**\n\t * Opens the specified dockable window.\n\t * @param name The dockable window name\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic void showDockableWindow(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Unknown dockable window: \" + name);\n\t\t\treturn;\n\t\t}\n\n\t\tif(entry.win == null)\n\t\t{\n\t\t\tentry.win = entry.factory.createDockableWindow(\n\t\t\t\tview,entry.position);\n\t\t}\n\n\t\tif(entry.win != null)\n\t\t{\n\t\t\tif(entry.position.equals(FLOATING)\n\t\t\t\t&& entry.container == null)\n\t\t\t{\n\t\t\t\tentry.container = new FloatingWindowContainer(\n\t\t\t\t\tthis,view.isPlainView());\n\t\t\t\tentry.container.register(entry);\n\t\t\t}\n\n\t\t\tentry.container.show(entry);\n\t\t}\n\t\telse\n\t\t\t/* an error occurred */;\n\t} //}}}\n\n\t//{{{ addDockableWindow() method\n\t/**\n\t * Opens the specified dockable window. As of jEdit 4.0pre1, has the\n\t * same effect as calling showDockableWindow().\n\t * @param name The dockable window name\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic void addDockableWindow(String name)\n\t{\n\t\tshowDockableWindow(name);\n\t} //}}}\n\n\t//{{{ hideDockableWindow() method\n\t/**\n\t * Hides the specified dockable window.\n\t * @param name The dockable window name\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic void hideDockableWindow(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Unknown dockable window: \" + name);\n\t\t\treturn;\n\t\t}\n\n\t\tif(entry.win == null)\n\t\t\treturn;\n\n\t\tentry.container.show(null);\n\t} //}}}\n\n\t//{{{ removeDockableWindow() method\n\t/**\n\t * Hides the specified dockable window. As of jEdit 4.2pre1, has the\n\t * same effect as calling hideDockableWindow().\n\t * @param name The dockable window name\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void removeDockableWindow(String name)\n\t{\n\t\thideDockableWindow(name);\n\t} //}}}\n\n\t//{{{ toggleDockableWindow() method\n\t/**\n\t * Toggles the visibility of the specified dockable window.\n\t * @param name The dockable window name\n\t */\n\tpublic void toggleDockableWindow(String name)\n\t{\n\t\tif(isDockableWindowVisible(name))\n\t\t\tremoveDockableWindow(name);\n\t\telse\n\t\t\taddDockableWindow(name);\n\t} //}}}\n\n\t//{{{ getDockableWindow() method\n\t/**\n\t * Returns the specified dockable window.\n\t *\n\t * Note that this method\n\t * will return null if the dockable has not been added yet.\n\t * Make sure you call {@link #addDockableWindow(String)} first.\n\t *\n\t * @param name The name of the dockable window\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic JComponent getDockableWindow(String name)\n\t{\n\t\treturn getDockable(name);\n\t} //}}}\n\n\t//{{{ getDockable() method\n\t/**\n\t * Returns the specified dockable window.\n\t *\n\t * Note that this method\n\t * will return null if the dockable has not been added yet.\n\t * Make sure you call {@link #addDockableWindow(String)} first.\n\t *\n\t * For historical reasons, this\n\t * does the same thing as {@link #getDockableWindow(String)}.\n\t *\n\t * @param name The name of the dockable window\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic JComponent getDockable(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null || entry.win == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn entry.win;\n\t} //}}}\n\n\t//{{{ getDockableTitle() method\n\t/**\n\t * Returns the title of the specified dockable window.\n\t * @param name The name of the dockable window.\n\t * @since jEdit 4.1pre5\n\t */\n\tpublic String getDockableTitle(String name)\n\t{\n\t\tString title = jEdit.getProperty(name + \".title\");\n\t\tif(title == null)\n\t\t\treturn \"NO TITLE PROPERTY: \" + name;\n\t\telse\n\t\t\treturn title;\n\t} //}}}\n\n\t//{{{ isDockableWindowVisible() method\n\t/**\n\t * Returns if the specified dockable window is visible.\n\t * @param name The dockable window name\n\t */\n\tpublic boolean isDockableWindowVisible(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null || entry.win == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn entry.container.isVisible(entry);\n\t} //}}}\n\n\t//{{{ isDockableWindowDocked() method\n\t/**\n\t * Returns if the specified dockable window is docked into the\n\t * view.\n\t * @param name The dockable's name\n\t * @since jEdit 4.0pre2\n\t */\n\tpublic boolean isDockableWindowDocked(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn !entry.position.equals(FLOATING);\n\t} //}}}\n\n\t//{{{ closeCurrentArea() method\n\t/**\n\t * Closes the currently focused docking area.\n\t * @since jEdit 4.1pre3\n\t */\n\tpublic void closeCurrentArea()\n\t{\n\t\t// I don't know of any other way to fix this, since invoking this\n\t\t// command from a menu results in the focus owner being the menu\n\t\t// until the menu goes away.\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tComponent comp = view.getFocusOwner();\n\t\t\t\twhile(comp != null)\n\t\t\t\t{\n\t\t\t\t\t//System.err.println(comp.getClass());\n\t\t\t\t\tif(comp instanceof PanelWindowContainer\n\t\t\t\t\t\t.DockablePanel)\n\t\t\t\t\t{\n\t\t\t\t\t\tPanelWindowContainer container =\n\t\t\t\t\t\t\t((PanelWindowContainer.DockablePanel)\n\t\t\t\t\t\t\tcomp).getWindowContainer();\n\t\t\t\t\t\tcontainer.show(null);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tcomp = comp.getParent();\n\t\t\t\t}\n\n\t\t\t\tgetToolkit().beep();\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ close() method\n\t/**\n\t * Called when the view is being closed.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic void close()\n\t{\n\t\tEditBus.removeFromBus(this);\n\n\t\tIterator iter = windows.values().iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tEntry entry = (Entry)iter.next();\n\t\t\tif(entry.win != null)\n\t\t\t{\n\t\t\t\tentry.container.unregister(entry);\n\t\t\t}\n\t\t}\n\n\t\titer = clones.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tEntry entry = (Entry)iter.next();\n\t\t\tif(entry.win != null)\n\t\t\t{\n\t\t\t\tentry.container.unregister(entry);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ getTopDockingArea() method\n\tpublic PanelWindowContainer getTopDockingArea()\n\t{\n\t\treturn top;\n\t} //}}}\n\n\t//{{{ getLeftDockingArea() method\n\tpublic PanelWindowContainer getLeftDockingArea()\n\t{\n\t\treturn left;\n\t} //}}}\n\n\t//{{{ getBottomDockingArea() method\n\tpublic PanelWindowContainer getBottomDockingArea()\n\t{\n\t\treturn bottom;\n\t} //}}}\n\n\t//{{{ getRightDockingArea() method\n\tpublic PanelWindowContainer getRightDockingArea()\n\t{\n\t\treturn right;\n\t} //}}}\n\n\t//{{{ createPopupMenu() method\n\tpublic JPopupMenu createPopupMenu(\n\t\tfinal DockableWindowContainer container,\n\t\tfinal String dockable,\n\t\tfinal boolean clone)\n\t{\n\t\tJPopupMenu popup = new JPopupMenu();\n\t\tif(dockable == null && container instanceof PanelWindowContainer)\n\t\t{\n\t\t\tActionListener listener = new ActionListener()\n\t\t\t{\n\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t{\n\t\t\t\t\tshowDockableWindow(evt.getActionCommand());\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tString[] dockables = ((PanelWindowContainer)\n\t\t\t\tcontainer).getDockables();\n\t\t\tfor(int i = 0; i < dockables.length; i++)\n\t\t\t{\n\t\t\t\tString name = dockables[i];\n\t\t\t\tJMenuItem item = new JMenuItem(getDockableTitle(name));\n\t\t\t\titem.setActionCommand(name);\n\t\t\t\titem.addActionListener(listener);\n\t\t\t\tpopup.add(item);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJMenuItem caption = new JMenuItem(getDockableTitle(dockable));\n\t\t\tcaption.setEnabled(false);\n\t\t\tpopup.add(caption);\n\t\t\tpopup.addSeparator();\n\t\t\tString currentPos = jEdit.getProperty(dockable + \".dock-position\",FLOATING);\n\t\t\tif(!clone)\n\t\t\t{\n\t\t\t\tString[] positions = { FLOATING, TOP, LEFT, BOTTOM, RIGHT };\n\t\t\t\tfor(int i = 0; i < positions.length; i++)\n\t\t\t\t{\n\t\t\t\t\tfinal String pos = positions[i];\n\t\t\t\t\tif(pos.equals(currentPos))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tJMenuItem moveMenuItem = new JMenuItem(jEdit.getProperty(\"view.docking.menu-\"\n\t\t\t\t\t\t+ pos));\n\n\t\t\t\t\tmoveMenuItem.addActionListener(new ActionListener()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tjEdit.setProperty(dockable + \".dock-position\",pos);\n\t\t\t\t\t\t\tEditBus.send(new DockableWindowUpdate(\n\t\t\t\t\t\t\t\tDockableWindowManager.this,\n\t\t\t\t\t\t\t\tDockableWindowUpdate.PROPERTIES_CHANGED,\n\t\t\t\t\t\t\t\tnull\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\tshowDockableWindow(dockable);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tpopup.add(moveMenuItem);\n\t\t\t\t}\n\n\t\t\t\tpopup.addSeparator();\n\t\t\t}\n\n\t\t\tJMenuItem cloneMenuItem = new JMenuItem(jEdit.getProperty(\"view.docking.menu-clone\"));\n\n\t\t\tcloneMenuItem.addActionListener(new ActionListener()\n\t\t\t{\n\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t{\n\t\t\t\t\tfloatDockableWindow(dockable);\n\t\t\t\t}\n\t\t\t});\n\t\t\tpopup.add(cloneMenuItem);\n\n\t\t\tpopup.addSeparator();\n\n\t\t\tJMenuItem closeMenuItem = new JMenuItem(jEdit.getProperty(\"view.docking.menu-close\"));\n\n\t\t\tcloseMenuItem.addActionListener(new ActionListener()\n\t\t\t{\n\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t{\n\t\t\t\t\tif(clone)\n\t\t\t\t\t\t((FloatingWindowContainer)container).dispose();\n\t\t\t\t\telse\n\t\t\t\t\t\tremoveDockableWindow(dockable);\n\t\t\t\t}\n\t\t\t});\n\t\t\tpopup.add(closeMenuItem);\n\n\t\t\tif(!(clone || currentPos.equals(FLOATING)))\n\t\t\t{\n\t\t\t\tJMenuItem undockMenuItem = new JMenuItem(jEdit.getProperty(\"view.docking.menu-undock\"));\n\n\t\t\t\tundockMenuItem.addActionListener(new ActionListener()\n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t\t{\n\t\t\t\t\t\tjEdit.setProperty(dockable + \".dock-position\",FLOATING);\n\t\t\t\t\t\tEditBus.send(new DockableWindowUpdate(\n\t\t\t\t\t\t\tDockableWindowManager.this,\n\t\t\t\t\t\t\tDockableWindowUpdate.PROPERTIES_CHANGED,\n\t\t\t\t\t\t\tnull\n\t\t\t\t\t\t));\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tpopup.add(undockMenuItem);\n\t\t\t}\n\t\t}\n\n\t\treturn popup;\n\t} //}}}\n\n\t//{{{ paintChildren() method\n\tpublic void paintChildren(Graphics g)\n\t{\n\t\tsuper.paintChildren(g);\n\n\t\tif(resizeRect != null)\n\t\t{\n\t\t\tg.setColor(Color.darkGray);\n\t\t\tg.fillRect(resizeRect.x,resizeRect.y,\n\t\t\t\tresizeRect.width,resizeRect.height);\n\t\t}\n\t} //}}}\n\n\t//{{{ handleMessage() method\n\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof DockableWindowUpdate)\n\t\t{\n\t\t\tif(((DockableWindowUpdate)msg).getWhat()\n\t\t\t\t== DockableWindowUpdate.PROPERTIES_CHANGED)\n\t\t\t\tpropertiesChanged();\n\t\t}\n\t\telse if(msg instanceof PropertiesChanged)\n\t\t\tpropertiesChanged();\n\t\telse if(msg instanceof PluginUpdate)\n\t\t{\n\t\t\tPluginUpdate pmsg = (PluginUpdate)msg;\n\t\t\tif(pmsg.getWhat() == PluginUpdate.LOADED)\n\t\t\t{\n\t\t\t\tIterator iter = dockableWindowFactories\n\t\t\t\t\t.values().iterator();\n\n\t\t\t\twhile(iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tFactory factory = (Factory)iter.next();\n\t\t\t\t\tif(factory.plugin == pmsg.getPluginJAR())\n\t\t\t\t\t\taddEntry(factory);\n\t\t\t\t}\n\n\t\t\t\tpropertiesChanged();\n\t\t\t}\n\t\t\telse if(pmsg.isExiting())\n\t\t\t{\n\t\t\t\t// we don't care\n\t\t\t}\n\t\t\telse if(pmsg.getWhat() == PluginUpdate.DEACTIVATED)\n\t\t\t{\n\t\t\t\tIterator iter = getAllPluginEntries(\n\t\t\t\t\tpmsg.getPluginJAR(),false);\n\t\t\t\twhile(iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tEntry entry = (Entry)iter.next();\n\t\t\t\t\tif(entry.container != null)\n\t\t\t\t\t\tentry.container.remove(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(pmsg.getWhat() == PluginUpdate.UNLOADED)\n\t\t\t{\n\t\t\t\tIterator iter = getAllPluginEntries(\n\t\t\t\t\tpmsg.getPluginJAR(),true);\n\t\t\t\twhile(iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tEntry entry = (Entry)iter.next();\n\t\t\t\t\tif(entry.container != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tentry.container.unregister(entry);\n\t\t\t\t\t\tentry.win = null;\n\t\t\t\t\t\tentry.container = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ Package-private members\n\tint resizePos;\n\tRectangle resizeRect;\n\n\t//{{{ setResizePos() method\n\tvoid setResizePos(int resizePos, PanelWindowContainer resizing)\n\t{\n\t\tthis.resizePos = resizePos;\n\n\t\tif(resizePos < 0)\n\t\t\tresizePos = 0;\n\n\t\tRectangle newResizeRect = new Rectangle(0,0,\n\t\t\tPanelWindowContainer.SPLITTER_WIDTH - 2,\n\t\t\tPanelWindowContainer.SPLITTER_WIDTH - 2);\n\t\tif(resizing == top)\n\t\t{\n\t\t\tresizePos = Math.min(resizePos,getHeight()\n\t\t\t\t- top.buttonPanel.getHeight()\n\t\t\t\t- bottom.dockablePanel.getHeight()\n\t\t\t\t- bottom.buttonPanel.getHeight()\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH);\n\t\t\tnewResizeRect.x = top.dockablePanel.getX() + 1;\n\t\t\tnewResizeRect.y = resizePos + top.buttonPanel.getHeight() + 1;\n\t\t\tnewResizeRect.width = top.dockablePanel.getWidth() - 2;\n\t\t}\n\t\telse if(resizing == left)\n\t\t{\n\t\t\tresizePos = Math.min(resizePos,getWidth()\n\t\t\t\t- left.buttonPanel.getWidth()\n\t\t\t\t- right.dockablePanel.getWidth()\n\t\t\t\t- right.buttonPanel.getWidth()\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH);\n\t\t\tnewResizeRect.x = resizePos + left.buttonPanel.getWidth() + 1;\n\t\t\tnewResizeRect.y = left.dockablePanel.getY() + 1;\n\t\t\tnewResizeRect.height = left.dockablePanel.getHeight() - 2;\n\t\t}\n\t\telse if(resizing == bottom)\n\t\t{\n\t\t\tresizePos = Math.min(resizePos,getHeight()\n\t\t\t\t- bottom.buttonPanel.getHeight()\n\t\t\t\t- top.dockablePanel.getHeight()\n\t\t\t\t- top.buttonPanel.getHeight()\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH);\n\t\t\tnewResizeRect.x = bottom.dockablePanel.getX() + 1;\n\t\t\tnewResizeRect.y = getHeight() - bottom.buttonPanel.getHeight() - resizePos\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH + 2;\n\t\t\tnewResizeRect.width = bottom.dockablePanel.getWidth() - 2;\n\t\t}\n\t\telse if(resizing == right)\n\t\t{\n\t\t\tresizePos = Math.min(resizePos,getWidth()\n\t\t\t\t- right.buttonPanel.getWidth()\n\t\t\t\t- left.dockablePanel.getWidth()\n\t\t\t\t- left.buttonPanel.getWidth()\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH);\n\t\t\tnewResizeRect.x = getWidth() - right.buttonPanel.getWidth() - resizePos\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH + 1;\n\t\t\tnewResizeRect.y = right.dockablePanel.getY() + 1;\n\t\t\tnewResizeRect.height = right.dockablePanel.getHeight() - 2;\n\t\t}\n\n\t\tRectangle toRepaint;\n\t\tif(resizeRect == null)\n\t\t\ttoRepaint = newResizeRect;\n\t\telse\n\t\t\ttoRepaint = resizeRect.union(newResizeRect);\n\t\tresizeRect = newResizeRect;\n\t\trepaint(toRepaint);\n\t} //}}}\n\n\t//{{{ finishResizing() method\n\tvoid finishResizing()\n\t{\n\t\tresizeRect = null;\n\t\trepaint();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\tprivate View view;\n\tprivate Hashtable windows;\n\tprivate boolean alternateLayout;\n\tprivate PanelWindowContainer left;\n\tprivate PanelWindowContainer right;\n\tprivate PanelWindowContainer top;\n\tprivate PanelWindowContainer bottom;\n\tprivate ArrayList clones;\n\n\t//{{{ propertiesChanged() method\n\tprivate void propertiesChanged()\n\t{\n\t\tif(view.isPlainView())\n\t\t\treturn;\n\n\t\talternateLayout = jEdit.getBooleanProperty(\"view.docking.alternateLayout\");\n\n\t\tString[] windowList = getRegisteredDockableWindows();\n\n\t\tfor(int i = 0; i < windowList.length; i++)\n\t\t{\n\t\t\tString dockable = windowList[i];\n\t\t\tEntry entry = (Entry)windows.get(dockable);\n\n\t\t\tString newPosition = jEdit.getProperty(dockable\n\t\t\t\t+ \".dock-position\",FLOATING);\n\t\t\tif(newPosition.equals(entry.position))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tentry.position = newPosition;\n\t\t\tif(entry.container != null)\n\t\t\t{\n\t\t\t\tentry.container.unregister(entry);\n\t\t\t\tentry.container = null;\n\t\t\t\tentry.win = null;\n\t\t\t}\n\n\t\t\tif(newPosition.equals(FLOATING))\n\t\t\t\t/* do nothing */;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(newPosition.equals(TOP))\n\t\t\t\t\tentry.container = top;\n\t\t\t\telse if(newPosition.equals(LEFT))\n\t\t\t\t\tentry.container = left;\n\t\t\t\telse if(newPosition.equals(BOTTOM))\n\t\t\t\t\tentry.container = bottom;\n\t\t\t\telse if(newPosition.equals(RIGHT))\n\t\t\t\t\tentry.container = right;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.WARNING,this,\n\t\t\t\t\t\t\"Unknown position: \"\n\t\t\t\t\t\t+ newPosition);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tentry.container.register(entry);\n\t\t\t}\n\t\t}\n\n\t\ttop.sortDockables();\n\t\tleft.sortDockables();\n\t\tbottom.sortDockables();\n\t\tright.sortDockables();\n\n\t\trevalidate();\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ addEntry() method\n\tprivate void addEntry(Factory factory)\n\t{\n\t\tEntry e;\n\t\tif(view.isPlainView())\n\t\t{\n\t\t\t// don't show menu items to dock into a plain view\n\t\t\te = new Entry(factory,FLOATING);\n\t\t}\n\t\telse\n\t\t{\n\t\t\te = new Entry(factory);\n\t\t\tif(e.position.equals(FLOATING))\n\t\t\t\t/* nothing to do */;\n\t\t\telse if(e.position.equals(TOP))\n\t\t\t\te.container = top;\n\t\t\telse if(e.position.equals(LEFT))\n\t\t\t\te.container = left;\n\t\t\telse if(e.position.equals(BOTTOM))\n\t\t\t\te.container = bottom;\n\t\t\telse if(e.position.equals(RIGHT))\n\t\t\t\te.container = right;\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,this,\n\t\t\t\t\t\"Unknown position: \"\n\t\t\t\t\t+ e.position);\n\t\t\t}\n\n\t\t\tif(e.container != null)\n\t\t\t\te.container.register(e);\n\t\t}\n\t\twindows.put(factory.name,e);\n\t} //}}}\n\n\t//{{{ getAllPluginEntries() method\n\t/**\n\t * If remove is false, only remove from clones list, otherwise remove\n\t * from both entries and clones.\n\t */\n\tprivate Iterator getAllPluginEntries(PluginJAR plugin, boolean remove)\n\t{\n\t\tjava.util.List returnValue = new LinkedList();\n\t\tIterator iter = windows.values().iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tEntry entry = (Entry)iter.next();\n\t\t\tif(entry.factory.plugin == plugin)\n\t\t\t{\n\t\t\t\treturnValue.add(entry);\n\t\t\t\tif(remove)\n\t\t\t\t\titer.remove();\n\t\t\t}\n\t\t}\n\n\t\titer = clones.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tEntry entry = (Entry)iter.next();\n\t\t\tif(entry.factory.plugin == plugin)\n\t\t\t{\n\t\t\t\treturnValue.add(entry);\n\t\t\t\titer.remove();\n\t\t\t}\n\t\t}\n\n\t\treturn returnValue.iterator();\n\t} //}}}\n\n\t//}}}\n\n\t//}}}\n\n\t//{{{ DockableLayout class\n\tpublic class DockableLayout implements LayoutManager2\n\t{\n\t\t// for backwards compatibility with plugins that fiddle with\n\t\t// jEdit's UI layout\n\t\tstatic final String CENTER = BorderLayout.CENTER;\n\n\t\tpublic static final String TOP_TOOLBARS = \"top-toolbars\";\n\t\tpublic static final String BOTTOM_TOOLBARS = \"bottom-toolbars\";\n\n\t\tstatic final String TOP_BUTTONS = \"top-buttons\";\n\t\tstatic final String LEFT_BUTTONS = \"left-buttons\";\n\t\tstatic final String BOTTOM_BUTTONS = \"bottom-buttons\";\n\t\tstatic final String RIGHT_BUTTONS = \"right-buttons\";\n\n\t\tComponent topToolbars, bottomToolbars;\n\t\tComponent center;\n\t\tComponent top, left, bottom, right;\n\t\tComponent topButtons, leftButtons, bottomButtons, rightButtons;\n\n\t\t//{{{ addLayoutComponent() method\n\t\tpublic void addLayoutComponent(String name, Component comp)\n\t\t{\n\t\t\taddLayoutComponent(comp,name);\n\t\t} //}}}\n\n\t\t//{{{ addLayoutComponent() method\n\t\tpublic void addLayoutComponent(Component comp, Object cons)\n\t\t{\n\t\t\tif(cons == null || CENTER.equals(cons))\n\t\t\t\tcenter = comp;\n\t\t\telse if(TOP_TOOLBARS.equals(cons))\n\t\t\t\ttopToolbars = comp;\n\t\t\telse if(BOTTOM_TOOLBARS.equals(cons))\n\t\t\t\tbottomToolbars = comp;\n\t\t\telse if(TOP.equals(cons))\n\t\t\t\ttop = comp;\n\t\t\telse if(LEFT.equals(cons))\n\t\t\t\tleft = comp;\n\t\t\telse if(BOTTOM.equals(cons))\n\t\t\t\tbottom = comp;\n\t\t\telse if(RIGHT.equals(cons))\n\t\t\t\tright = comp;\n\t\t\telse if(TOP_BUTTONS.equals(cons))\n\t\t\t\ttopButtons = comp;\n\t\t\telse if(LEFT_BUTTONS.equals(cons))\n\t\t\t\tleftButtons = comp;\n\t\t\telse if(BOTTOM_BUTTONS.equals(cons))\n\t\t\t\tbottomButtons = comp;\n\t\t\telse if(RIGHT_BUTTONS.equals(cons))\n\t\t\t\trightButtons = comp;\n\t\t} //}}}\n\n\t\t//{{{ removeLayoutComponent() method\n\t\tpublic void removeLayoutComponent(Component comp)\n\t\t{\n\t\t\tif(center == comp)\n\t\t\t\tcenter = null;\n\t\t\tif(comp == topToolbars)\n\t\t\t\ttopToolbars = null;\n\t\t\tif(comp == bottomToolbars)\n\t\t\t\tbottomToolbars = null;\n\t\t\t{\n\t\t\t\t// none of the others are ever meant to be\n\t\t\t\t// removed. retarded, eh? this needs to be\n\t\t\t\t// fixed eventually, for plugins might\n\t\t\t\t// want to do weird stuff to jEdit's UI\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ preferredLayoutSize() method\n\t\tpublic Dimension preferredLayoutSize(Container parent)\n\t\t{\n\t\t\tDimension prefSize = new Dimension(0,0);\n\t\t\tDimension _top = top.getPreferredSize();\n\t\t\tDimension _left = left.getPreferredSize();\n\t\t\tDimension _bottom = bottom.getPreferredSize();\n\t\t\tDimension _right = right.getPreferredSize();\n\t\t\tDimension _topButtons = topButtons.getPreferredSize();\n\t\t\tDimension _leftButtons = leftButtons.getPreferredSize();\n\t\t\tDimension _bottomButtons = bottomButtons.getPreferredSize();\n\t\t\tDimension _rightButtons = rightButtons.getPreferredSize();\n\t\t\tDimension _center = (center == null\n\t\t\t\t? new Dimension(0,0)\n\t\t\t\t: center.getPreferredSize());\n\t\t\tDimension _topToolbars = (topToolbars == null\n\t\t\t\t? new Dimension(0,0)\n\t\t\t\t: topToolbars.getPreferredSize());\n\t\t\tDimension _bottomToolbars = (bottomToolbars == null\n\t\t\t\t? new Dimension(0,0)\n\t\t\t\t: bottomToolbars.getPreferredSize());\n\n\t\t\tprefSize.height = _top.height + _bottom.height + _center.height\n\t\t\t\t+ _topButtons.height + _bottomButtons.height\n\t\t\t\t+ _topToolbars.height + _bottomToolbars.height;\n\t\t\tprefSize.width = _left.width + _right.width\n\t\t\t\t+ Math.max(_center.width,\n\t\t\t\tMath.max(_topToolbars.width,_bottomToolbars.width))\n\t\t\t\t+ _leftButtons.width + _rightButtons.width;\n\n\t\t\treturn prefSize;\n\t\t} //}}}\n\n\t\t//{{{ minimumLayoutSize() method\n\t\tpublic Dimension minimumLayoutSize(Container parent)\n\t\t{\n\t\t\t// I'm lazy\n\t\t\treturn preferredLayoutSize(parent);\n\t\t} //}}}\n\n\t\t//{{{ maximumLayoutSize() method\n\t\tpublic Dimension maximumLayoutSize(Container parent)\n\t\t{\n\t\t\treturn new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE);\n\t\t} //}}}\n\n\t\t//{{{ layoutContainer() method\n\t\tpublic void layoutContainer(Container parent)\n\t\t{\n\t\t\tDimension size = parent.getSize();\n\n\t\t\tDimension _topToolbars = (topToolbars == null\n\t\t\t\t? new Dimension(0,0)\n\t\t\t\t: topToolbars.getPreferredSize());\n\t\t\tDimension _bottomToolbars = (bottomToolbars == null\n\t\t\t\t? new Dimension(0,0)\n\t\t\t\t: bottomToolbars.getPreferredSize());\n\n\t\t\tint topButtonHeight = -1;\n\t\t\tint bottomButtonHeight = -1;\n\t\t\tint leftButtonWidth = -1;\n\t\t\tint rightButtonWidth = -1;\n\n\t\t\tDimension _top = top.getPreferredSize();\n\t\t\tDimension _left = left.getPreferredSize();\n\t\t\tDimension _bottom = bottom.getPreferredSize();\n\t\t\tDimension _right = right.getPreferredSize();\n\n\t\t\tint topHeight = _top.height;\n\t\t\tint bottomHeight = _bottom.height;\n\t\t\tint leftWidth = _left.width;\n\t\t\tint rightWidth = _right.width;\n\n\t\t\tboolean topEmpty = ((Container)topButtons)\n\t\t\t\t.getComponentCount() <= 2;\n\t\t\tboolean leftEmpty = ((Container)leftButtons)\n\t\t\t\t.getComponentCount() <= 2;\n\t\t\tboolean bottomEmpty = ((Container)bottomButtons)\n\t\t\t\t.getComponentCount() <= 2;\n\t\t\tboolean rightEmpty = ((Container)rightButtons)\n\t\t\t\t.getComponentCount() <= 2;\n\n\t\t\tDimension closeBoxSize;\n\t\t\tif(((Container)topButtons).getComponentCount() == 0)\n\t\t\t\tcloseBoxSize = new Dimension(0,0);\n\t\t\telse\n\t\t\t{\n\t\t\t\tcloseBoxSize = ((Container)topButtons)\n\t\t\t\t\t.getComponent(0).getPreferredSize();\n\t\t\t}\n\n\t\t\tint closeBoxWidth = Math.max(closeBoxSize.width,\n\t\t\t\tcloseBoxSize.height) + 1;\n\n\t\t\tif(alternateLayout)\n\t\t\t{\n\t\t\t\t//{{{ Lay out independent buttons\n\t\t\t\tint _width = size.width;\n\n\t\t\t\tint padding = (leftEmpty&&rightEmpty)\n\t\t\t\t\t? 0 : closeBoxWidth;\n\n\t\t\t\ttopButtonHeight = DockableWindowManager.this.\n\t\t\t\t\ttop.getWrappedDimension(_width\n\t\t\t\t\t- closeBoxWidth * 2);\n\t\t\t\ttopButtons.setBounds(\n\t\t\t\t\tpadding,\n\t\t\t\t\t0,\n\t\t\t\t\tsize.width - padding * 2,\n\t\t\t\t\ttopButtonHeight);\n\n\t\t\t\tbottomButtonHeight = DockableWindowManager.this.\n\t\t\t\t\tbottom.getWrappedDimension(_width);\n\t\t\t\tbottomButtons.setBounds(\n\t\t\t\t\tpadding,\n\t\t\t\t\tsize.height - bottomButtonHeight,\n\t\t\t\t\tsize.width - padding * 2,\n\t\t\t\t\tbottomButtonHeight);\n\n\t\t\t\tint _height = size.height\n\t\t\t\t\t- topButtonHeight\n\t\t\t\t\t- bottomButtonHeight;\n\t\t\t\t//}}}\n\n\t\t\t\t//{{{ Lay out dependent buttons\n\t\t\t\tleftButtonWidth = DockableWindowManager.this.\n\t\t\t\t\tleft.getWrappedDimension(_height);\n\t\t\t\tleftButtons.setBounds(\n\t\t\t\t\t0,\n\t\t\t\t\ttopHeight + topButtonHeight,\n\t\t\t\t\tleftButtonWidth,\n\t\t\t\t\t_height - topHeight - bottomHeight);\n\n\t\t\t\trightButtonWidth = DockableWindowManager.this.\n\t\t\t\t\tright.getWrappedDimension(_height);\n\t\t\t\trightButtons.setBounds(\n\t\t\t\t\tsize.width - rightButtonWidth,\n\t\t\t\t\ttopHeight + topButtonHeight,\n\t\t\t\t\trightButtonWidth,\n\t\t\t\t\t_height - topHeight - bottomHeight);\n\t\t\t\t//}}}\n\n\t\t\t\tint[] dimensions = adjustDockingAreasToFit(\n\t\t\t\t\tsize,\n\t\t\t\t\ttopHeight,\n\t\t\t\t\tleftWidth,\n\t\t\t\t\tbottomHeight,\n\t\t\t\t\trightWidth,\n\t\t\t\t\ttopButtonHeight,\n\t\t\t\t\tleftButtonWidth,\n\t\t\t\t\tbottomButtonHeight,\n\t\t\t\t\trightButtonWidth,\n\t\t\t\t\t_topToolbars,\n\t\t\t\t\t_bottomToolbars);\n\n\t\t\t\ttopHeight = dimensions[0];\n\t\t\t\tleftWidth = dimensions[1];\n\t\t\t\tbottomHeight = dimensions[2];\n\t\t\t\trightWidth = dimensions[3];\n\n\t\t\t\t//{{{ Lay out docking areas\n\t\t\t\ttop.setBounds(\n\t\t\t\t\t0,\n\t\t\t\t\ttopButtonHeight,\n\t\t\t\t\tsize.width,\n\t\t\t\t\ttopHeight);\n\n\t\t\t\tbottom.setBounds(\n\t\t\t\t\t0,\n\t\t\t\t\tsize.height\n\t\t\t\t\t- bottomHeight\n\t\t\t\t\t- bottomButtonHeight,\n\t\t\t\t\tsize.width,\n\t\t\t\t\tbottomHeight);\n\n\t\t\t\tleft.setBounds(\n\t\t\t\t\tleftButtonWidth,\n\t\t\t\t\ttopButtonHeight + topHeight,\n\t\t\t\t\tleftWidth,\n\t\t\t\t\t_height - topHeight - bottomHeight);\n\n\t\t\t\tright.setBounds(\n\t\t\t\t\t_width - rightButtonWidth - rightWidth,\n\t\t\t\t\ttopButtonHeight + topHeight,\n\t\t\t\t\trightWidth,\n\t\t\t\t\t_height - topHeight - bottomHeight); //}}}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//{{{ Lay out independent buttons\n\t\t\t\tint _height = size.height;\n\n\t\t\t\tint padding = (topEmpty && bottomEmpty\n\t\t\t\t\t? 0 : closeBoxWidth);\n\n\t\t\t\tleftButtonWidth = DockableWindowManager.this.\n\t\t\t\t\tleft.getWrappedDimension(_height\n\t\t\t\t\t- closeBoxWidth * 2);\n\t\t\t\tleftButtons.setBounds(\n\t\t\t\t\t0,\n\t\t\t\t\tpadding,\n\t\t\t\t\tleftButtonWidth,\n\t\t\t\t\t_height - padding * 2);\n\n\t\t\t\trightButtonWidth = DockableWindowManager.this.\n\t\t\t\t\tright.getWrappedDimension(_height);\n\t\t\t\trightButtons.setBounds(\n\t\t\t\t\tsize.width - rightButtonWidth,\n\t\t\t\t\tpadding,\n\t\t\t\t\trightButtonWidth,\n\t\t\t\t\t_height - padding * 2);\n\n\t\t\t\tint _width = size.width\n\t\t\t\t\t- leftButtonWidth\n\t\t\t\t\t- rightButtonWidth;\n\t\t\t\t//}}}\n\n\t\t\t\t//{{{ Lay out dependent buttons\n\t\t\t\ttopButtonHeight = DockableWindowManager.this.\n\t\t\t\t\ttop.getWrappedDimension(_width);\n\t\t\t\ttopButtons.setBounds(\n\t\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t\t0,\n\t\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\t\ttopButtonHeight);\n\n\t\t\t\tbottomButtonHeight = DockableWindowManager.this.\n\t\t\t\t\tbottom.getWrappedDimension(_width);\n\t\t\t\tbottomButtons.setBounds(\n\t\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t\t_height - bottomButtonHeight,\n\t\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\t\tbottomButtonHeight); //}}}\n\n\t\t\t\tint[] dimensions = adjustDockingAreasToFit(\n\t\t\t\t\tsize,\n\t\t\t\t\ttopHeight,\n\t\t\t\t\tleftWidth,\n\t\t\t\t\tbottomHeight,\n\t\t\t\t\trightWidth,\n\t\t\t\t\ttopButtonHeight,\n\t\t\t\t\tleftButtonWidth,\n\t\t\t\t\tbottomButtonHeight,\n\t\t\t\t\trightButtonWidth,\n\t\t\t\t\t_topToolbars,\n\t\t\t\t\t_bottomToolbars);\n\n\t\t\t\ttopHeight = dimensions[0];\n\t\t\t\tleftWidth = dimensions[1];\n\t\t\t\tbottomHeight = dimensions[2];\n\t\t\t\trightWidth = dimensions[3];\n\n\t\t\t\t//{{{ Lay out docking areas\n\t\t\t\ttop.setBounds(\n\t\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t\ttopButtonHeight,\n\t\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\t\ttopHeight);\n\n\t\t\t\tbottom.setBounds(\n\t\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t\tsize.height - bottomHeight - bottomButtonHeight,\n\t\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\t\tbottomHeight);\n\n\t\t\t\tleft.setBounds(\n\t\t\t\t\tleftButtonWidth,\n\t\t\t\t\t0,\n\t\t\t\t\tleftWidth,\n\t\t\t\t\t_height);\n\n\t\t\t\tright.setBounds(\n\t\t\t\t\tsize.width - rightWidth - rightButtonWidth,\n\t\t\t\t\t0,\n\t\t\t\t\trightWidth,\n\t\t\t\t\t_height); //}}}\n\t\t\t}\n\n\t\t\t//{{{ Position tool bars if they are managed by us\n\t\t\tif(topToolbars != null)\n\t\t\t{\n\t\t\t\ttopToolbars.setBounds(\n\t\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t\ttopButtonHeight + topHeight,\n\t\t\t\t\tsize.width - leftWidth - rightWidth\n\t\t\t\t\t- leftButtonWidth - rightButtonWidth,\n\t\t\t\t\t_topToolbars.height);\n\t\t\t}\n\n\t\t\tif(bottomToolbars != null)\n\t\t\t{\n\t\t\t\tbottomToolbars.setBounds(\n\t\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t\tsize.height - bottomHeight\n\t\t\t\t\t- bottomButtonHeight\n\t\t\t\t\t- _bottomToolbars.height\n\t\t\t\t\t+ topButtonHeight\n\t\t\t\t\t+ topHeight,\n\t\t\t\t\tsize.width - leftWidth - rightWidth\n\t\t\t\t\t- leftButtonWidth - rightButtonWidth,\n\t\t\t\t\t_bottomToolbars.height);\n\t\t\t} //}}}\n\n\t\t\t//{{{ Position center (edit pane, or split pane)\n\t\t\tif(center != null)\n\t\t\t{\n\t\t\t\tcenter.setBounds(\n\t\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t\ttopButtonHeight + topHeight\n\t\t\t\t\t+ _topToolbars.height,\n\t\t\t\t\tsize.width\n\t\t\t\t\t- leftWidth\n\t\t\t\t\t- rightWidth\n\t\t\t\t\t- leftButtonWidth\n\t\t\t\t\t- rightButtonWidth,\n\t\t\t\t\tsize.height\n\t\t\t\t\t- topHeight\n\t\t\t\t\t- topButtonHeight\n\t\t\t\t\t- bottomHeight\n\t\t\t\t\t- bottomButtonHeight\n\t\t\t\t\t- _topToolbars.height\n\t\t\t\t\t- _bottomToolbars.height);\n\t\t\t} //}}}\n\t\t} //}}}\n\n\t\t//{{{ adjustDockingAreasToFit() method\n\t\tprivate int[] adjustDockingAreasToFit(\n\t\t\tDimension size,\n\t\t\tint topHeight,\n\t\t\tint leftWidth,\n\t\t\tint bottomHeight,\n\t\t\tint rightWidth,\n\t\t\tint topButtonHeight,\n\t\t\tint leftButtonWidth,\n\t\t\tint bottomButtonHeight,\n\t\t\tint rightButtonWidth,\n\t\t\tDimension _topToolbars,\n\t\t\tDimension _bottomToolbars)\n\t\t{\n\t\t\tint maxTopHeight = size.height - bottomHeight\n\t\t\t\t- topButtonHeight - bottomButtonHeight\n\t\t\t\t- _topToolbars.height - _bottomToolbars.height;\n\t\t\ttopHeight = Math.min(Math.max(0,maxTopHeight),\n\t\t\t\ttopHeight);\n\t\t\tleftWidth = Math.min(Math.max(0,\n\t\t\t\tsize.width - leftButtonWidth\n\t\t\t\t- rightButtonWidth - rightWidth),leftWidth);\n\t\t\tint maxBottomHeight = size.height - topHeight\n\t\t\t\t- topButtonHeight - bottomButtonHeight\n\t\t\t\t- _topToolbars.height - _bottomToolbars.height;\n\t\t\tbottomHeight = Math.min(Math.max(0,maxBottomHeight),\n\t\t\t\tbottomHeight);\n\t\t\trightWidth = Math.min(Math.max(0,\n\t\t\t\tsize.width - leftButtonWidth\n\t\t\t\t- rightButtonWidth - leftWidth),rightWidth);\n\n\t\t\tDockableWindowManager.this.top.setDimension(topHeight);\n\t\t\tDockableWindowManager.this.left.setDimension(leftWidth);\n\t\t\tDockableWindowManager.this.bottom.setDimension(bottomHeight);\n\t\t\tDockableWindowManager.this.right.setDimension(rightWidth);\n\n\t\t\treturn new int[] {\n\t\t\t\ttopHeight,\n\t\t\t\tleftWidth,\n\t\t\t\tbottomHeight,\n\t\t\t\trightWidth\n\t\t\t};\n\t\t} //}}}\n\n\t\t//{{{ getLayoutAlignmentX() method\n\t\tpublic float getLayoutAlignmentX(Container target)\n\t\t{\n\t\t\treturn 0.5f;\n\t\t} //}}}\n\n\t\t//{{{ getLayoutAlignmentY() method\n\t\tpublic float getLayoutAlignmentY(Container target)\n\t\t{\n\t\t\treturn 0.5f;\n\t\t} //}}}\n\n\t\t//{{{ invalidateLayout() method\n\t\tpublic void invalidateLayout(Container target) {}\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ Entry class\n\tclass Entry\n\t{\n\t\tFactory factory;\n\n\t\tString title;\n\t\tString position;\n\t\tDockableWindowContainer container;\n\n\t\t// only set if open\n\t\tJComponent win;\n\n\t\t// only for docked\n\t\tAbstractButton btn;\n\n\t\t//{{{ Entry constructor\n\t\tEntry(Factory factory)\n\t\t{\n\t\t\tthis(factory,jEdit.getProperty(factory.name\n\t\t\t\t+ \".dock-position\",FLOATING));\n\t\t} //}}}\n\n\t\t//{{{ Entry constructor\n\t\tEntry(Factory factory, String position)\n\t\t{\n\t\t\tthis.factory = factory;\n\t\t\tthis.position = position;\n\n\t\t\t// get the title here, not in the factory constructor,\n\t\t\t// since the factory might be created before a plugin's\n\t\t\t// props are loaded\n\t\t\ttitle = getDockableTitle(factory.name);", "functions": [{"function_name": "loadDockableWindows", "code": "\tpublic static void loadDockableWindows(PluginJAR plugin, URL uri,\n\t\tPluginJAR.PluginCacheEntry cache)\n\t{\n\t\tReader in = null;\n\n\t\ttry\n\t\t{\n\t\t\tLog.log(Log.DEBUG,DockableWindowManager.class,\n\t\t\t\t\"Loading dockables from \" + uri);\n\n\t\t\tDockableListHandler dh = new DockableListHandler(plugin,uri);\n\t\t\tin = new BufferedReader(\n\t\t\t\tnew InputStreamReader(\n\t\t\t\turi.openStream()));\n\t\t\tXmlParser parser = new XmlParser();\n\t\t\tparser.setHandler(dh);\n\t\t\tparser.parse(null, null, in);\n\t\t\tif(cache != null)\n\t\t\t{\n\t\t\t\tcache.cachedDockableNames = dh.getCachedDockableNames();\n\t\t\t\tcache.cachedDockableActionFlags = dh.getCachedDockableActionFlags();\n\t\t\t}\n\t\t}\n\t\tcatch(XmlException xe)\n\t\t{\n\t\t\tint line = xe.getLine();\n\t\t\tString message = xe.getMessage();\n\t\t\tLog.log(Log.ERROR,DockableWindowManager.class,uri + \":\" + line\n\t\t\t\t+ \": \" + message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,DockableWindowManager.class,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(in != null)\n\t\t\t\t\tin.close();\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,DockableWindowManager.class,io);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "TRY", "CATCH", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [6, 12], [6, 13], [8, 14], [8, 15], [9, 16], [1, 17], [1, 18], [1, 19], [1, 20], [2, 21], [13, 22], [7, 23], [8, 24], [16, 25], [17, 26], [17, 27], [10, 28], [19, 29], [11, 30], [20, 31], [12, 32], [13, 33], [22, 34], [24, 35], [14, 36], [15, 37], [9, 38], [9, 39], [29, 40], [31, 41], [35, 42], [38, 43], [39, 44], [40, 45], [42, 46], [42, 47], [47, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 6], [13, 6], [14, 8], [15, 8], [16, 9], [17, 1], [18, 1], [19, 1], [20, 1], [21, 2], [22, 13], [23, 7], [24, 8], [25, 16], [26, 17], [27, 17], [28, 10], [29, 19], [30, 11], [31, 20], [32, 12], [33, 13], [34, 22], [35, 24], [36, 14], [37, 15], [38, 9], [39, 9], [40, 29], [41, 31], [42, 35], [43, 38], [44, 39], [45, 40], [46, 42], [47, 42], [48, 47], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "unloadDockableWindows", "code": "\tpublic static void unloadDockableWindows(PluginJAR plugin)\n\t{\n\t\tIterator entries = dockableWindowFactories.entrySet().iterator();\n\t\twhile(entries.hasNext())\n\t\t{\n\t\t\tMap.Entry entry = (Map.Entry)entries.next();\n\t\t\tFactory factory = (Factory)entry.getValue();\n\t\t\tif(factory.plugin == plugin)\n\t\t\t\tentries.remove();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [5, 9], [8, 10], [5, 11], [6, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 5], [10, 8], [11, 5], [12, 6], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "cacheDockableWindows", "code": "\tpublic static void cacheDockableWindows(PluginJAR plugin,\n\t\tString[] name, boolean[] actions)\n\t{\n\t\tfor(int i = 0; i < name.length; i++)\n\t\t{\n\t\t\tFactory factory = new Factory(plugin,\n\t\t\t\tname[i],null,actions[i]);\n\t\t\tdockableWindowFactories.put(name[i],factory);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "registerDockableWindow", "code": "\tpublic static void registerDockableWindow(PluginJAR plugin,\n\t\tString name, String code, boolean actions)\n\t{\n\t\tFactory factory = (Factory)dockableWindowFactories.get(name);\n\t\tif(factory != null)\n\t\t{\n\t\t\tfactory.code = code;\n\t\t\tfactory.loaded = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfactory = new Factory(plugin,name,code,actions);\n\t\t\tdockableWindowFactories.put(name,factory);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getRegisteredDockableWindows", "code": "\tpublic static String[] getRegisteredDockableWindows()\n\t{\n\t\tString[] retVal = new String[dockableWindowFactories.size()];\n\t\tIterator entries = dockableWindowFactories.values().iterator();\n\t\tint i = 0;\n\t\twhile(entries.hasNext())\n\t\t{\n\t\t\tFactory factory = (Factory)entries.next();\n\t\t\tretVal[i++] = factory.name;\n\t\t}\n\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [4, 9], [2, 10], [9, 11], [5, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 4], [10, 2], [11, 9], [12, 5], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "init", "code": "\tpublic void init()\n\t{\n\t\tEditBus.addToBus(this);\n\n\t\tIterator entries = dockableWindowFactories.values().iterator();\n\n\t\twhile(entries.hasNext())\n\t\t\taddEntry((Factory)entries.next());\n\n\t\tpropertiesChanged();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [2, 7], [7, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 2], [8, 7], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getView", "code": "\tpublic View getView()\n\t{\n\t\treturn view;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "floatDockableWindow", "code": "\tpublic JComponent floatDockableWindow(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Unknown dockable window: \" + name);\n\t\t\treturn null;\n\t\t}\n\n\t\t// create a copy of this dockable window and float it\n\t\tEntry newEntry = new Entry(entry.factory,FLOATING);\n\t\tnewEntry.win = newEntry.factory.createDockableWindow(view,FLOATING);\n\t\tif(newEntry.win != null)\n\t\t{\n\t\t\tnewEntry.container = new FloatingWindowContainer(this,true);\n\t\t\tnewEntry.container.register(newEntry);\n\t\t\tnewEntry.container.show(newEntry);\n\t\t}\n\n\t\tclones.add(newEntry);\n\t\treturn newEntry.win;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [4, 10], [8, 11], [9, 12], [3, 13], [4, 14], [10, 15], [2, 16], [2, 17], [2, 18], [14, 19], [4, 20], [5, 21], [18, 22], [20, 23], [22, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 4], [11, 8], [12, 9], [13, 3], [14, 4], [15, 10], [16, 2], [17, 2], [18, 2], [19, 14], [20, 4], [21, 5], [22, 18], [23, 20], [24, 22], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "showDockableWindow", "code": "\tpublic void showDockableWindow(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Unknown dockable window: \" + name);\n\t\t\treturn;\n\t\t}\n\n\t\tif(entry.win == null)\n\t\t{\n\t\t\tentry.win = entry.factory.createDockableWindow(\n\t\t\t\tview,entry.position);\n\t\t}\n\n\t\tif(entry.win != null)\n\t\t{\n\t\t\tif(entry.position.equals(FLOATING)\n\t\t\t\t&& entry.container == null)\n\t\t\t{\n\t\t\t\tentry.container = new FloatingWindowContainer(\n\t\t\t\t\tthis,view.isPlainView());\n\t\t\t\tentry.container.register(entry);\n\t\t\t}\n\n\t\t\tentry.container.show(entry);\n\t\t}\n\t\telse\n\t\t\t/* an error occurred */;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [1, 9], [6, 10], [7, 11], [3, 12], [8, 13], [1, 14], [9, 15], [2, 16], [3, 17], [4, 18], [15, 19], [15, 20], [16, 21], [17, 22], [9, 23], [9, 24], [19, 25], [22, 26], [24, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 1], [10, 6], [11, 7], [12, 3], [13, 8], [14, 1], [15, 9], [16, 2], [17, 3], [18, 4], [19, 15], [20, 15], [21, 16], [22, 17], [23, 9], [24, 9], [25, 19], [26, 22], [27, 24], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "addDockableWindow", "code": "\tpublic void addDockableWindow(String name)\n\t{\n\t\tshowDockableWindow(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hideDockableWindow", "code": "\tpublic void hideDockableWindow(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Unknown dockable window: \" + name);\n\t\t\treturn;\n\t\t}\n\n\t\tif(entry.win == null)\n\t\t\treturn;\n\n\t\tentry.container.show(null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [5, 9], [7, 10], [2, 11], [8, 12], [2, 13], [3, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 5], [10, 7], [11, 2], [12, 8], [13, 2], [14, 3], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "removeDockableWindow", "code": "\tpublic void removeDockableWindow(String name)\n\t{\n\t\thideDockableWindow(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toggleDockableWindow", "code": "\tpublic void toggleDockableWindow(String name)\n\t{\n\t\tif(isDockableWindowVisible(name))\n\t\t\tremoveDockableWindow(name);\n\t\telse\n\t\t\taddDockableWindow(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDockableWindow", "code": "\tpublic JComponent getDockableWindow(String name)\n\t{\n\t\treturn getDockable(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDockable", "code": "\tpublic JComponent getDockable(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null || entry.win == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn entry.win;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [8, 10], [9, 11], [2, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 8], [11, 9], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getDockableTitle", "code": "\tpublic String getDockableTitle(String name)\n\t{\n\t\tString title = jEdit.getProperty(name + \".title\");\n\t\tif(title == null)\n\t\t\treturn \"NO TITLE PROPERTY: \" + name;\n\t\telse\n\t\t\treturn title;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [2, 9], [7, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [9, 2], [10, 7], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "isDockableWindowVisible", "code": "\tpublic boolean isDockableWindowVisible(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null || entry.win == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn entry.container.isVisible(entry);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [6, 10], [9, 11], [10, 12], [2, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 6], [11, 9], [12, 10], [13, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "isDockableWindowDocked", "code": "\tpublic boolean isDockableWindowDocked(String name)\n\t{\n\t\tEntry entry = (Entry)windows.get(name);\n\t\tif(entry == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn !entry.position.equals(FLOATING);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "closeCurrentArea", "code": "\tpublic void closeCurrentArea()\n\t{\n\t\t// I don't know of any other way to fix this, since invoking this\n\t\t// command from a menu results in the focus owner being the menu\n\t\t// until the menu goes away.\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tComponent comp = view.getFocusOwner();\n\t\t\t\twhile(comp != null)\n\t\t\t\t{\n\t\t\t\t\t//System.err.println(comp.getClass());\n\t\t\t\t\tif(comp instanceof PanelWindowContainer\n\t\t\t\t\t\t.DockablePanel)\n\t\t\t\t\t{\n\t\t\t\t\t\tPanelWindowContainer container =\n\t\t\t\t\t\t\t((PanelWindowContainer.DockablePanel)\n\t\t\t\t\t\t\tcomp).getWindowContainer();\n\t\t\t\t\t\tcontainer.show(null);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tcomp = comp.getParent();\n\t\t\t\t}\n\n\t\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [3, 6], [4, 7], [6, 8], [4, 9], [7, 10], [5, 11], [4, 12], [9, 13], [12, 14], [9, 15], [9, 16], [9, 17], [17, 18], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 3], [7, 4], [8, 6], [9, 4], [10, 7], [11, 5], [12, 4], [13, 9], [14, 12], [15, 9], [16, 9], [17, 9], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "close", "code": "\tpublic void close()\n\t{\n\t\tEditBus.removeFromBus(this);\n\n\t\tIterator iter = windows.values().iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tEntry entry = (Entry)iter.next();\n\t\t\tif(entry.win != null)\n\t\t\t{\n\t\t\t\tentry.container.unregister(entry);\n\t\t\t}\n\t\t}\n\n\t\titer = clones.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tEntry entry = (Entry)iter.next();\n\t\t\tif(entry.win != null)\n\t\t\t{\n\t\t\t\tentry.container.unregister(entry);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [1, 8], [1, 9], [5, 10], [2, 11], [2, 12], [3, 13], [8, 14], [11, 15], [13, 16], [14, 17], [15, 18], [8, 19], [9, 20], [11, 21], [12, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 1], [9, 1], [10, 5], [11, 2], [12, 2], [13, 3], [14, 8], [15, 11], [16, 13], [17, 14], [18, 15], [19, 8], [20, 9], [21, 11], [22, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getTopDockingArea", "code": "\tpublic PanelWindowContainer getTopDockingArea()\n\t{\n\t\treturn top;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLeftDockingArea", "code": "\tpublic PanelWindowContainer getLeftDockingArea()\n\t{\n\t\treturn left;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBottomDockingArea", "code": "\tpublic PanelWindowContainer getBottomDockingArea()\n\t{\n\t\treturn bottom;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRightDockingArea", "code": "\tpublic PanelWindowContainer getRightDockingArea()\n\t{\n\t\treturn right;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createPopupMenu", "code": "\tpublic JPopupMenu createPopupMenu(\n\t\tfinal DockableWindowContainer container,\n\t\tfinal String dockable,\n\t\tfinal boolean clone)\n\t{\n\t\tJPopupMenu popup = new JPopupMenu();\n\t\tif(dockable == null && container instanceof PanelWindowContainer)\n\t\t{\n\t\t\tActionListener listener = new ActionListener()\n\t\t\t{\n\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t{\n\t\t\t\t\tshowDockableWindow(evt.getActionCommand());\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tString[] dockables = ((PanelWindowContainer)\n\t\t\t\tcontainer).getDockables();\n\t\t\tfor(int i = 0; i < dockables.length; i++)\n\t\t\t{\n\t\t\t\tString name = dockables[i];\n\t\t\t\tJMenuItem item = new JMenuItem(getDockableTitle(name));\n\t\t\t\titem.setActionCommand(name);\n\t\t\t\titem.addActionListener(listener);\n\t\t\t\tpopup.add(item);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJMenuItem caption = new JMenuItem(getDockableTitle(dockable));\n\t\t\tcaption.setEnabled(false);\n\t\t\tpopup.add(caption);\n\t\t\tpopup.addSeparator();\n\t\t\tString currentPos = jEdit.getProperty(dockable + \".dock-position\",FLOATING);\n\t\t\tif(!clone)\n\t\t\t{\n\t\t\t\tString[] positions = { FLOATING, TOP, LEFT, BOTTOM, RIGHT };\n\t\t\t\tfor(int i = 0; i < positions.length; i++)\n\t\t\t\t{\n\t\t\t\t\tfinal String pos = positions[i];\n\t\t\t\t\tif(pos.equals(currentPos))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tJMenuItem moveMenuItem = new JMenuItem(jEdit.getProperty(\"view.docking.menu-\"\n\t\t\t\t\t\t+ pos));\n\n\t\t\t\t\tmoveMenuItem.addActionListener(new ActionListener()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tjEdit.setProperty(dockable + \".dock-position\",pos);\n\t\t\t\t\t\t\tEditBus.send(new DockableWindowUpdate(\n\t\t\t\t\t\t\t\tDockableWindowManager.this,\n\t\t\t\t\t\t\t\tDockableWindowUpdate.PROPERTIES_CHANGED,\n\t\t\t\t\t\t\t\tnull\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\tshowDockableWindow(dockable);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tpopup.add(moveMenuItem);\n\t\t\t\t}\n\n\t\t\t\tpopup.addSeparator();\n\t\t\t}\n\n\t\t\tJMenuItem cloneMenuItem = new JMenuItem(jEdit.getProperty(\"view.docking.menu-clone\"));\n\n\t\t\tcloneMenuItem.addActionListener(new ActionListener()\n\t\t\t{\n\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t{\n\t\t\t\t\tfloatDockableWindow(dockable);\n\t\t\t\t}\n\t\t\t});\n\t\t\tpopup.add(cloneMenuItem);\n\n\t\t\tpopup.addSeparator();\n\n\t\t\tJMenuItem closeMenuItem = new JMenuItem(jEdit.getProperty(\"view.docking.menu-close\"));\n\n\t\t\tcloseMenuItem.addActionListener(new ActionListener()\n\t\t\t{\n\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t{\n\t\t\t\t\tif(clone)\n\t\t\t\t\t\t((FloatingWindowContainer)container).dispose();\n\t\t\t\t\telse\n\t\t\t\t\t\tremoveDockableWindow(dockable);\n\t\t\t\t}\n\t\t\t});\n\t\t\tpopup.add(closeMenuItem);\n\n\t\t\tif(!(clone || currentPos.equals(FLOATING)))\n\t\t\t{\n\t\t\t\tJMenuItem undockMenuItem = new JMenuItem(jEdit.getProperty(\"view.docking.menu-undock\"));\n\n\t\t\t\tundockMenuItem.addActionListener(new ActionListener()\n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t\t{\n\t\t\t\t\t\tjEdit.setProperty(dockable + \".dock-position\",FLOATING);\n\t\t\t\t\t\tEditBus.send(new DockableWindowUpdate(\n\t\t\t\t\t\t\tDockableWindowManager.this,\n\t\t\t\t\t\t\tDockableWindowUpdate.PROPERTIES_CHANGED,\n\t\t\t\t\t\t\tnull\n\t\t\t\t\t\t));\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tpopup.add(undockMenuItem);\n\t\t\t}\n\t\t}\n\n\t\treturn popup;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL", "FUNC_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "CALL", "CALL", "IF", "PARAM", "LITERAL_ANCHOR", "PARAM", "LITERAL_ANCHOR", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "PARAM", "FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL", "CALL", "BINARY_OP", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [7, 17], [7, 18], [3, 19], [8, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [14, 29], [18, 30], [8, 31], [20, 32], [22, 33], [9, 34], [25, 35], [10, 36], [11, 37], [11, 38], [12, 39], [28, 40], [13, 41], [14, 42], [14, 43], [16, 44], [8, 45], [8, 46], [33, 47], [34, 48], [35, 49], [36, 50], [11, 51], [37, 52], [39, 53], [41, 54], [14, 55], [14, 56], [14, 57], [14, 58], [44, 59], [46, 60], [31, 61], [47, 62], [47, 63], [48, 64], [49, 65], [50, 66], [37, 67], [37, 68], [37, 69], [53, 70], [42, 71], [59, 72], [60, 73], [61, 74], [49, 75], [37, 76], [37, 77], [68, 78], [68, 79], [37, 80], [71, 81], [59, 82], [73, 83], [74, 84], [62, 85], [77, 86], [67, 87], [82, 88], [73, 89], [73, 90], [86, 91], [87, 92], [89, 93], [90, 94], [91, 95], [92, 96], [93, 97], [94, 98], [91, 99], [91, 100], [91, 101], [96, 102], [100, 103], [101, 104], [103, 105], [104, 106], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 7], [18, 7], [19, 3], [20, 8], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 14], [30, 18], [31, 8], [32, 20], [33, 22], [34, 9], [35, 25], [36, 10], [37, 11], [38, 11], [39, 12], [40, 28], [41, 13], [42, 14], [43, 14], [44, 16], [45, 8], [46, 8], [47, 33], [48, 34], [49, 35], [50, 36], [51, 11], [52, 37], [53, 39], [54, 41], [55, 14], [56, 14], [57, 14], [58, 14], [59, 44], [60, 46], [61, 31], [62, 47], [63, 47], [64, 48], [65, 49], [66, 50], [67, 37], [68, 37], [69, 37], [70, 53], [71, 42], [72, 59], [73, 60], [74, 61], [75, 49], [76, 37], [77, 37], [78, 68], [79, 68], [80, 37], [81, 71], [82, 59], [83, 73], [84, 74], [85, 62], [86, 77], [87, 67], [88, 82], [89, 73], [90, 73], [91, 86], [92, 87], [93, 89], [94, 90], [95, 91], [96, 92], [97, 93], [98, 94], [99, 91], [100, 91], [101, 91], [102, 96], [103, 100], [104, 101], [105, 103], [106, 104], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106]]}, {"function_name": "paintChildren", "code": "\tpublic void paintChildren(Graphics g)\n\t{\n\t\tsuper.paintChildren(g);\n\n\t\tif(resizeRect != null)\n\t\t{\n\t\t\tg.setColor(Color.darkGray);\n\t\t\tg.fillRect(resizeRect.x,resizeRect.y,\n\t\t\t\tresizeRect.width,resizeRect.height);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "handleMessage", "code": "\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof DockableWindowUpdate)\n\t\t{\n\t\t\tif(((DockableWindowUpdate)msg).getWhat()\n\t\t\t\t== DockableWindowUpdate.PROPERTIES_CHANGED)\n\t\t\t\tpropertiesChanged();\n\t\t}\n\t\telse if(msg instanceof PropertiesChanged)\n\t\t\tpropertiesChanged();\n\t\telse if(msg instanceof PluginUpdate)\n\t\t{\n\t\t\tPluginUpdate pmsg = (PluginUpdate)msg;\n\t\t\tif(pmsg.getWhat() == PluginUpdate.LOADED)\n\t\t\t{\n\t\t\t\tIterator iter = dockableWindowFactories\n\t\t\t\t\t.values().iterator();\n\n\t\t\t\twhile(iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tFactory factory = (Factory)iter.next();\n\t\t\t\t\tif(factory.plugin == pmsg.getPluginJAR())\n\t\t\t\t\t\taddEntry(factory);\n\t\t\t\t}\n\n\t\t\t\tpropertiesChanged();\n\t\t\t}\n\t\t\telse if(pmsg.isExiting())\n\t\t\t{\n\t\t\t\t// we don't care\n\t\t\t}\n\t\t\telse if(pmsg.getWhat() == PluginUpdate.DEACTIVATED)\n\t\t\t{\n\t\t\t\tIterator iter = getAllPluginEntries(\n\t\t\t\t\tpmsg.getPluginJAR(),false);\n\t\t\t\twhile(iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tEntry entry = (Entry)iter.next();\n\t\t\t\t\tif(entry.container != null)\n\t\t\t\t\t\tentry.container.remove(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(pmsg.getWhat() == PluginUpdate.UNLOADED)\n\t\t\t{\n\t\t\t\tIterator iter = getAllPluginEntries(\n\t\t\t\t\tpmsg.getPluginJAR(),true);\n\t\t\t\twhile(iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tEntry entry = (Entry)iter.next();\n\t\t\t\t\tif(entry.container != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tentry.container.unregister(entry);\n\t\t\t\t\t\tentry.win = null;\n\t\t\t\t\t\tentry.container = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "IF", "CALL", "LOOP", "VAR_DECL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "IF", "VAR_DECL", "CALL", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [5, 8], [3, 9], [7, 10], [5, 11], [5, 12], [7, 13], [11, 14], [11, 15], [14, 16], [14, 17], [11, 18], [11, 19], [15, 20], [16, 21], [16, 22], [11, 23], [18, 24], [21, 25], [16, 26], [16, 27], [22, 28], [18, 29], [18, 30], [19, 31], [21, 32], [21, 33], [25, 34], [26, 35], [29, 36], [31, 37], [32, 38], [26, 39], [26, 40], [27, 41], [29, 42], [36, 43], [32, 44], [32, 45], [33, 46], [39, 47], [41, 48], [41, 49], [30, 50], [44, 51], [46, 52], [46, 53], [39, 54], [47, 55], [51, 56], [40, 57], [44, 58], [44, 59], [44, 60], [45, 61], [58, 62], [59, 63], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 5], [9, 3], [10, 7], [11, 5], [12, 5], [13, 7], [14, 11], [15, 11], [16, 14], [17, 14], [18, 11], [19, 11], [20, 15], [21, 16], [22, 16], [23, 11], [24, 18], [25, 21], [26, 16], [27, 16], [28, 22], [29, 18], [30, 18], [31, 19], [32, 21], [33, 21], [34, 25], [35, 26], [36, 29], [37, 31], [38, 32], [39, 26], [40, 26], [41, 27], [42, 29], [43, 36], [44, 32], [45, 32], [46, 33], [47, 39], [48, 41], [49, 41], [50, 30], [51, 44], [52, 46], [53, 46], [54, 39], [55, 47], [56, 51], [57, 40], [58, 44], [59, 44], [60, 44], [61, 45], [62, 58], [63, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "setResizePos", "code": "\tvoid setResizePos(int resizePos, PanelWindowContainer resizing)\n\t{\n\t\tthis.resizePos = resizePos;\n\n\t\tif(resizePos < 0)\n\t\t\tresizePos = 0;\n\n\t\tRectangle newResizeRect = new Rectangle(0,0,\n\t\t\tPanelWindowContainer.SPLITTER_WIDTH - 2,\n\t\t\tPanelWindowContainer.SPLITTER_WIDTH - 2);\n\t\tif(resizing == top)\n\t\t{\n\t\t\tresizePos = Math.min(resizePos,getHeight()\n\t\t\t\t- top.buttonPanel.getHeight()\n\t\t\t\t- bottom.dockablePanel.getHeight()\n\t\t\t\t- bottom.buttonPanel.getHeight()\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH);\n\t\t\tnewResizeRect.x = top.dockablePanel.getX() + 1;\n\t\t\tnewResizeRect.y = resizePos + top.buttonPanel.getHeight() + 1;\n\t\t\tnewResizeRect.width = top.dockablePanel.getWidth() - 2;\n\t\t}\n\t\telse if(resizing == left)\n\t\t{\n\t\t\tresizePos = Math.min(resizePos,getWidth()\n\t\t\t\t- left.buttonPanel.getWidth()\n\t\t\t\t- right.dockablePanel.getWidth()\n\t\t\t\t- right.buttonPanel.getWidth()\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH);\n\t\t\tnewResizeRect.x = resizePos + left.buttonPanel.getWidth() + 1;\n\t\t\tnewResizeRect.y = left.dockablePanel.getY() + 1;\n\t\t\tnewResizeRect.height = left.dockablePanel.getHeight() - 2;\n\t\t}\n\t\telse if(resizing == bottom)\n\t\t{\n\t\t\tresizePos = Math.min(resizePos,getHeight()\n\t\t\t\t- bottom.buttonPanel.getHeight()\n\t\t\t\t- top.dockablePanel.getHeight()\n\t\t\t\t- top.buttonPanel.getHeight()\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH);\n\t\t\tnewResizeRect.x = bottom.dockablePanel.getX() + 1;\n\t\t\tnewResizeRect.y = getHeight() - bottom.buttonPanel.getHeight() - resizePos\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH + 2;\n\t\t\tnewResizeRect.width = bottom.dockablePanel.getWidth() - 2;\n\t\t}\n\t\telse if(resizing == right)\n\t\t{\n\t\t\tresizePos = Math.min(resizePos,getWidth()\n\t\t\t\t- right.buttonPanel.getWidth()\n\t\t\t\t- left.dockablePanel.getWidth()\n\t\t\t\t- left.buttonPanel.getWidth()\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH);\n\t\t\tnewResizeRect.x = getWidth() - right.buttonPanel.getWidth() - resizePos\n\t\t\t\t- PanelWindowContainer.SPLITTER_WIDTH + 1;\n\t\t\tnewResizeRect.y = right.dockablePanel.getY() + 1;\n\t\t\tnewResizeRect.height = right.dockablePanel.getHeight() - 2;\n\t\t}\n\n\t\tRectangle toRepaint;\n\t\tif(resizeRect == null)\n\t\t\ttoRepaint = newResizeRect;\n\t\telse\n\t\t\ttoRepaint = resizeRect.union(newResizeRect);\n\t\tresizeRect = newResizeRect;\n\t\trepaint(toRepaint);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [3, 12], [5, 13], [0, 14], [1, 15], [1, 16], [10, 17], [11, 18], [11, 19], [4, 20], [5, 21], [13, 22], [15, 23], [18, 24], [18, 25], [3, 26], [3, 27], [3, 28], [3, 29], [20, 30], [20, 31], [20, 32], [20, 33], [21, 34], [24, 35], [11, 36], [11, 37], [11, 38], [11, 39], [26, 40], [27, 41], [28, 42], [29, 43], [30, 44], [31, 45], [18, 46], [18, 47], [18, 48], [18, 49], [36, 50], [37, 51], [38, 52], [39, 53], [40, 54], [40, 55], [41, 56], [41, 57], [42, 58], [42, 59], [43, 60], [24, 61], [24, 62], [24, 63], [24, 64], [46, 65], [47, 66], [48, 67], [49, 68], [50, 69], [50, 70], [51, 71], [51, 72], [52, 73], [52, 74], [53, 75], [57, 76], [60, 77], [61, 78], [62, 79], [63, 80], [64, 81], [65, 82], [65, 83], [66, 84], [66, 85], [67, 86], [67, 87], [68, 88], [74, 89], [75, 90], [77, 91], [77, 92], [78, 93], [78, 94], [79, 95], [79, 96], [80, 97], [80, 98], [81, 99], [85, 100], [88, 101], [90, 102], [90, 103], [92, 104], [92, 105], [98, 106], [99, 107], [100, 108], [101, 109], [101, 110], [103, 111], [103, 112], [105, 113], [105, 114], [106, 115], [107, 116], [107, 117], [108, 118], [108, 119], [110, 120], [110, 121], [112, 122], [112, 123], [115, 124], [115, 125], [117, 126], [117, 127], [121, 128], [121, 129], [127, 130], [127, 131], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 3], [13, 5], [14, 0], [15, 1], [16, 1], [17, 10], [18, 11], [19, 11], [20, 4], [21, 5], [22, 13], [23, 15], [24, 18], [25, 18], [26, 3], [27, 3], [28, 3], [29, 3], [30, 20], [31, 20], [32, 20], [33, 20], [34, 21], [35, 24], [36, 11], [37, 11], [38, 11], [39, 11], [40, 26], [41, 27], [42, 28], [43, 29], [44, 30], [45, 31], [46, 18], [47, 18], [48, 18], [49, 18], [50, 36], [51, 37], [52, 38], [53, 39], [54, 40], [55, 40], [56, 41], [57, 41], [58, 42], [59, 42], [60, 43], [61, 24], [62, 24], [63, 24], [64, 24], [65, 46], [66, 47], [67, 48], [68, 49], [69, 50], [70, 50], [71, 51], [72, 51], [73, 52], [74, 52], [75, 53], [76, 57], [77, 60], [78, 61], [79, 62], [80, 63], [81, 64], [82, 65], [83, 65], [84, 66], [85, 66], [86, 67], [87, 67], [88, 68], [89, 74], [90, 75], [91, 77], [92, 77], [93, 78], [94, 78], [95, 79], [96, 79], [97, 80], [98, 80], [99, 81], [100, 85], [101, 88], [102, 90], [103, 90], [104, 92], [105, 92], [106, 98], [107, 99], [108, 100], [109, 101], [110, 101], [111, 103], [112, 103], [113, 105], [114, 105], [115, 106], [116, 107], [117, 107], [118, 108], [119, 108], [120, 110], [121, 110], [122, 112], [123, 112], [124, 115], [125, 115], [126, 117], [127, 117], [128, 121], [129, 121], [130, 127], [131, 127], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131]]}, {"function_name": "finishResizing", "code": "\tvoid finishResizing()\n\t{\n\t\tresizeRect = null;\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "propertiesChanged", "code": "\tprivate void propertiesChanged()\n\t{\n\t\tif(view.isPlainView())\n\t\t\treturn;\n\n\t\talternateLayout = jEdit.getBooleanProperty(\"view.docking.alternateLayout\");\n\n\t\tString[] windowList = getRegisteredDockableWindows();\n\n\t\tfor(int i = 0; i < windowList.length; i++)\n\t\t{\n\t\t\tString dockable = windowList[i];\n\t\t\tEntry entry = (Entry)windows.get(dockable);\n\n\t\t\tString newPosition = jEdit.getProperty(dockable\n\t\t\t\t+ \".dock-position\",FLOATING);\n\t\t\tif(newPosition.equals(entry.position))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tentry.position = newPosition;\n\t\t\tif(entry.container != null)\n\t\t\t{\n\t\t\t\tentry.container.unregister(entry);\n\t\t\t\tentry.container = null;\n\t\t\t\tentry.win = null;\n\t\t\t}\n\n\t\t\tif(newPosition.equals(FLOATING))\n\t\t\t\t/* do nothing */;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(newPosition.equals(TOP))\n\t\t\t\t\tentry.container = top;\n\t\t\t\telse if(newPosition.equals(LEFT))\n\t\t\t\t\tentry.container = left;\n\t\t\t\telse if(newPosition.equals(BOTTOM))\n\t\t\t\t\tentry.container = bottom;\n\t\t\t\telse if(newPosition.equals(RIGHT))\n\t\t\t\t\tentry.container = right;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.WARNING,this,\n\t\t\t\t\t\t\"Unknown position: \"\n\t\t\t\t\t\t+ newPosition);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tentry.container.register(entry);\n\t\t\t}\n\t\t}\n\n\t\ttop.sortDockables();\n\t\tleft.sortDockables();\n\t\tbottom.sortDockables();\n\t\tright.sortDockables();\n\n\t\trevalidate();\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "RETURN", "CALL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "CALL", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [3, 12], [3, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [2, 20], [11, 21], [14, 22], [15, 23], [1, 24], [16, 25], [1, 26], [21, 27], [14, 28], [23, 29], [16, 30], [17, 31], [14, 32], [28, 33], [28, 34], [15, 35], [15, 36], [15, 37], [31, 38], [18, 39], [33, 40], [33, 41], [28, 42], [35, 43], [36, 44], [38, 45], [40, 46], [40, 47], [33, 48], [46, 49], [40, 50], [46, 51], [46, 52], [46, 53], [53, 54], [54, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 3], [13, 3], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 2], [21, 11], [22, 14], [23, 15], [24, 1], [25, 16], [26, 1], [27, 21], [28, 14], [29, 23], [30, 16], [31, 17], [32, 14], [33, 28], [34, 28], [35, 15], [36, 15], [37, 15], [38, 31], [39, 18], [40, 33], [41, 33], [42, 28], [43, 35], [44, 36], [45, 38], [46, 40], [47, 40], [48, 33], [49, 46], [50, 40], [51, 46], [52, 46], [53, 46], [54, 53], [55, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "addEntry", "code": "\tprivate void addEntry(Factory factory)\n\t{\n\t\tEntry e;\n\t\tif(view.isPlainView())\n\t\t{\n\t\t\t// don't show menu items to dock into a plain view\n\t\t\te = new Entry(factory,FLOATING);\n\t\t}\n\t\telse\n\t\t{\n\t\t\te = new Entry(factory);\n\t\t\tif(e.position.equals(FLOATING))\n\t\t\t\t/* nothing to do */;\n\t\t\telse if(e.position.equals(TOP))\n\t\t\t\te.container = top;\n\t\t\telse if(e.position.equals(LEFT))\n\t\t\t\te.container = left;\n\t\t\telse if(e.position.equals(BOTTOM))\n\t\t\t\te.container = bottom;\n\t\t\telse if(e.position.equals(RIGHT))\n\t\t\t\te.container = right;\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,this,\n\t\t\t\t\t\"Unknown position: \"\n\t\t\t\t\t+ e.position);\n\t\t\t}\n\n\t\t\tif(e.container != null)\n\t\t\t\te.container.register(e);\n\t\t}\n\t\twindows.put(factory.name,e);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "IF", "IF", "BINARY_OP", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [7, 9], [7, 10], [1, 11], [1, 12], [6, 13], [8, 14], [9, 15], [9, 16], [11, 17], [12, 18], [15, 19], [15, 20], [9, 21], [19, 22], [19, 23], [15, 24], [22, 25], [19, 26], [22, 27], [22, 28], [28, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 7], [10, 7], [11, 1], [12, 1], [13, 6], [14, 8], [15, 9], [16, 9], [17, 11], [18, 12], [19, 15], [20, 15], [21, 9], [22, 19], [23, 19], [24, 15], [25, 22], [26, 19], [27, 22], [28, 22], [29, 28], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getAllPluginEntries", "code": "\tprivate Iterator getAllPluginEntries(PluginJAR plugin, boolean remove)\n\t{\n\t\tjava.util.List returnValue = new LinkedList();\n\t\tIterator iter = windows.values().iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tEntry entry = (Entry)iter.next();\n\t\t\tif(entry.factory.plugin == plugin)\n\t\t\t{\n\t\t\t\treturnValue.add(entry);\n\t\t\t\tif(remove)\n\t\t\t\t\titer.remove();\n\t\t\t}\n\t\t}\n\n\t\titer = clones.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tEntry entry = (Entry)iter.next();\n\t\t\tif(entry.factory.plugin == plugin)\n\t\t\t{\n\t\t\t\treturnValue.add(entry);\n\t\t\t\titer.remove();\n\t\t\t}\n\t\t}\n\n\t\treturn returnValue.iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [0, 10], [3, 11], [2, 12], [2, 13], [10, 14], [3, 15], [3, 16], [4, 17], [5, 18], [12, 19], [15, 20], [17, 21], [15, 22], [12, 23], [12, 24], [13, 25], [15, 26], [16, 27], [22, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 0], [11, 3], [12, 2], [13, 2], [14, 10], [15, 3], [16, 3], [17, 4], [18, 5], [19, 12], [20, 15], [21, 17], [22, 15], [23, 12], [24, 12], [25, 13], [26, 15], [27, 16], [28, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "DockableWindowManager", "code": "\tpublic DockableWindowManager(View view, View.ViewConfig config)\n\t{\n\t\tsetLayout(new DockableLayout());\n\t\tthis.view = view;\n\t\twindows = new Hashtable();\n\t\tclones = new ArrayList();\n\n\t\ttop = new PanelWindowContainer(this,TOP,config.topPos);\n\t\tleft = new PanelWindowContainer(this,LEFT,config.leftPos);\n\t\tbottom = new PanelWindowContainer(this,BOTTOM,config.bottomPos);\n\t\tright = new PanelWindowContainer(this,RIGHT,config.rightPos);\n\n\t\tadd(DockableLayout.TOP_BUTTONS,top.buttonPanel);\n\t\tadd(DockableLayout.LEFT_BUTTONS,left.buttonPanel);\n\t\tadd(DockableLayout.BOTTOM_BUTTONS,bottom.buttonPanel);\n\t\tadd(DockableLayout.RIGHT_BUTTONS,right.buttonPanel);\n\n\t\tadd(TOP,top.dockablePanel);\n\t\tadd(LEFT,left.dockablePanel);\n\t\tadd(BOTTOM,bottom.dockablePanel);\n\t\tadd(RIGHT,right.dockablePanel);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [18, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}], "label": 1}
{"sample_id": "ant-1.6-696", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/Pack.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Pack", "code": "public abstract class Pack extends Task {\n\n    protected File zipFile;\n    protected File source;\n\n    /**\n     * the required destination file.\n     * @param zipFile\n     */\n    public void setZipfile(File zipFile) {\n        this.zipFile = zipFile;\n    }\n\n    /**\n     * the required destination file.\n     * @param zipFile\n     */\n    public void setDestfile(File zipFile) {\n        setZipfile(zipFile);\n    }\n\n    /**\n     * the file to compress; required.\n     * @param src\n     */\n    public void setSrc(File src) {\n        source = src;\n    }\n\n\n    /**\n     * validation routine\n     * @throws BuildException if anything is invalid\n     */\n    private void validate() throws BuildException {\n        if (zipFile == null) {\n            throw new BuildException(\"zipfile attribute is required\", getLocation());\n        }\n\n        if (zipFile.isDirectory()) {\n            throw new BuildException(\"zipfile attribute must not \"\n                                    + \"represent a directory!\", getLocation());\n        }\n\n        if (source == null) {\n            throw new BuildException(\"src attribute is required\", getLocation());\n        }\n\n        if (source.isDirectory()) {\n            throw new BuildException(\"Src attribute must not \"\n                                    + \"represent a directory!\", getLocation());\n        }\n    }\n\n    /**\n     * validate, then hand off to the subclass\n     * @throws BuildException\n     */\n    public void execute() throws BuildException {\n        validate();\n\n        if (!source.exists()) {\n            log(\"Nothing to do: \" + source.getAbsolutePath()\n                + \" doesn't exist.\");\n        } else if (zipFile.lastModified() < source.lastModified()) {\n            log(\"Building: \" + zipFile.getAbsolutePath());\n            pack();\n        } else {\n            log(\"Nothing to do: \" + zipFile.getAbsolutePath()\n                + \" is up to date.\");\n        }\n    }\n\n    /**\n     * zip a stream to an output stream\n     * @param in\n     * @param zOut\n     * @throws IOException\n     */\n    private void zipFile(InputStream in, OutputStream zOut)\n        throws IOException {\n        byte[] buffer = new byte[8 * 1024];\n        int count = 0;\n        do {\n            zOut.write(buffer, 0, count);\n            count = in.read(buffer, 0, buffer.length);\n        } while (count != -1);\n    }\n\n    /**\n     * zip a file to an output stream\n     * @param file\n     * @param zOut\n     * @throws IOException\n     */\n    protected void zipFile(File file, OutputStream zOut)\n        throws IOException {\n        FileInputStream fIn = new FileInputStream(file);\n        try {\n            zipFile(fIn, zOut);\n        } finally {\n            fIn.close();\n        }\n    }\n\n    /**\n     * subclasses must implement this method to do their compression\n     */\n    protected abstract void pack();", "functions": [{"function_name": "setZipfile", "code": "    public void setZipfile(File zipFile) {\n        this.zipFile = zipFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDestfile", "code": "    public void setDestfile(File zipFile) {\n        setZipfile(zipFile);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSrc", "code": "    public void setSrc(File src) {\n        source = src;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "validate", "code": "    private void validate() throws BuildException {\n        if (zipFile == null) {\n            throw new BuildException(\"zipfile attribute is required\", getLocation());\n        }\n\n        if (zipFile.isDirectory()) {\n            throw new BuildException(\"zipfile attribute must not \"\n                                    + \"represent a directory!\", getLocation());\n        }\n\n        if (source == null) {\n            throw new BuildException(\"src attribute is required\", getLocation());\n        }\n\n        if (source.isDirectory()) {\n            throw new BuildException(\"Src attribute must not \"\n                                    + \"represent a directory!\", getLocation());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [1, 9], [2, 10], [6, 11], [3, 12], [4, 13], [8, 14], [9, 15], [10, 16], [12, 17], [13, 18], [15, 19], [15, 20], [16, 21], [16, 22], [17, 23], [17, 24], [18, 25], [18, 26], [20, 27], [20, 28], [24, 29], [24, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 1], [10, 2], [11, 6], [12, 3], [13, 4], [14, 8], [15, 9], [16, 10], [17, 12], [18, 13], [19, 15], [20, 15], [21, 16], [22, 16], [23, 17], [24, 17], [25, 18], [26, 18], [27, 20], [28, 20], [29, 24], [30, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        validate();\n\n        if (!source.exists()) {\n            log(\"Nothing to do: \" + source.getAbsolutePath()\n                + \" doesn't exist.\");\n        } else if (zipFile.lastModified() < source.lastModified()) {\n            log(\"Building: \" + zipFile.getAbsolutePath());\n            pack();\n        } else {\n            log(\"Nothing to do: \" + zipFile.getAbsolutePath()\n                + \" is up to date.\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [0, 4], [2, 5], [5, 6], [5, 7], [1, 8], [2, 9], [2, 10], [2, 11], [8, 12], [9, 13], [11, 14], [12, 15], [12, 16], [13, 17], [13, 18], [14, 19], [14, 20], [16, 21], [16, 22], [18, 23], [18, 24], [1, 0], [2, 1], [3, 1], [4, 0], [5, 2], [6, 5], [7, 5], [8, 1], [9, 2], [10, 2], [11, 2], [12, 8], [13, 9], [14, 11], [15, 12], [16, 12], [17, 13], [18, 13], [19, 14], [20, 14], [21, 16], [22, 16], [23, 18], [24, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "zipFile", "code": "    private void zipFile(InputStream in, OutputStream zOut)\n        throws IOException {\n        byte[] buffer = new byte[8 * 1024];\n        int count = 0;\n        do {\n            zOut.write(buffer, 0, count);\n            count = in.read(buffer, 0, buffer.length);\n        } while (count != -1);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [1, 9], [1, 10], [3, 11], [9, 12], [10, 13], [11, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 1], [10, 1], [11, 3], [12, 9], [13, 10], [14, 11], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "zipFile", "code": "    protected void zipFile(File file, OutputStream zOut)\n        throws IOException {\n        FileInputStream fIn = new FileInputStream(file);\n        try {\n            zipFile(fIn, zOut);\n        } finally {\n            fIn.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "pack", "code": "    protected abstract void pack();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.5-6989", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/objects/XString.java", "language": "java", "name": "org.apache.xpath.objects.XString", "code": "public class XString extends XObject implements XMLString\n{\n\n  /** Empty string XString object */\n  public static XString EMPTYSTRING = new XString(\"\");\n\n  /**\n   * Construct a XString object.  This constructor exists for derived classes.\n   *\n   * @param val String object this will wrap.\n   */\n  protected XString(Object val)\n  {\n    super(val);\n  }\n\n  /**\n   * Construct a XNodeSet object.\n   *\n   * @param val String object this will wrap.\n   */\n  public XString(String val)\n  {\n    super(val);\n  }\n\n  /**\n   * Tell that this is a CLASS_STRING.\n   *\n   * @return type CLASS_STRING\n   */\n  public int getType()\n  {\n    return CLASS_STRING;\n  }\n\n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return type string \"#STRING\"\n   */\n  public String getTypeString()\n  {\n    return \"#STRING\";\n  }\n\n  /**\n   * Tell if this object contains a java String object.\n   *\n   * @return true if this XMLString can return a string without creating one.\n   */\n  public boolean hasString()\n  {\n    return true;\n  }\n\n  /**\n   * Cast result object to a number.\n   *\n   * @return 0.0 if this string is null, numeric value of this string\n   * or NaN\n   */\n  public double num()\n  {\n    return toDouble();\n  }\n\n  /**\n   * Convert a string to a double -- Allowed input is in fixed\n   * notation ddd.fff.\n   *\n   * @return A double value representation of the string, or return Double.NaN\n   * if the string can not be converted.\n   */\n  public double toDouble()\n  {\n    int end = length();\n    \n    if(0 == end)\n      return Double.NaN;\n\n    double result = 0.0;\n    int start = 0;\n    int punctPos = end-1;\n\n    for (int i = start; i < end; i++)\n    {\n      char c = charAt(i);\n\n      if (!XMLCharacterRecognizer.isWhiteSpace(c))\n      {\n        break;\n      }\n      else\n        start++;\n    }\n\n    double sign = 1.0;\n\n    if (start < end && charAt(start) == '-')\n    {\n      sign = -1.0;\n\n      start++;\n    }\n\n    int digitsFound = 0;\n\n    {\n      char c = charAt(i);\n\n      if (c != '.')\n      {\n        if (XMLCharacterRecognizer.isWhiteSpace(c))\n          break;\n        else if (Character.isDigit(c))\n        {\n          result = result * 10.0 + (c - 0x30);\n\n          digitsFound++;\n        }\n        else\n        {\n          return Double.NaN;\n        }\n      }\n      else\n      {\n        punctPos = i;\n\n        break;\n      }\n    }\n\n    {\n      double fractPart = 0.0;\n\n      for (int i = end - 1; i > punctPos; i--)\n      {\n        char c = charAt(i);\n\n        if (XMLCharacterRecognizer.isWhiteSpace(c))\n          break;\n        else if (Character.isDigit(c))\n        {\n          fractPart = fractPart / 10.0 + (c - 0x30);\n\n          digitsFound++;\n        }\n        else\n        {\n          return Double.NaN;\n        }\n      }\n\n      result += fractPart / 10.0;\n    }\n\n    if (0 == digitsFound)\n      return Double.NaN;\n\n    return result * sign;\n  }\n\n  /**\n   * Cast result object to a boolean.\n   *\n   * @return True if the length of this string object is greater\n   * than 0.\n   */\n  public boolean bool()\n  {\n    return str().length() > 0;\n  }\n\n  /**\n   * Cast result object to a string.\n   *\n   * @return The string this wraps or the empty string if null\n   */\n  public XMLString xstr()\n  {\n    return this;\n  }\n\n  /**\n   * Cast result object to a string.\n   *\n   * @return The string this wraps or the empty string if null\n   */\n  public String str()\n  {\n    return (null != m_obj) ? ((String) m_obj) : \"\";\n  }\n\n  /**\n   * Cast result object to a result tree fragment.\n   *\n   * @param support Xpath context to use for the conversion\n   *\n   * @return A document fragment with this string as a child node\n   */\n  public int rtf(XPathContext support)\n  {\n\n    DTM frag = support.createDocumentFragment();\n\n    frag.appendTextChild(str());\n\n    return frag.getDocument();\n  }\n\n  /**\n   * Directly call the\n   * characters method on the passed ContentHandler for the\n   * string-value. Multiple calls to the\n   * ContentHandler's characters methods may well occur for a single call to\n   * this method.\n   *\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n\n    String str = str();\n\n    ch.characters(str.toCharArray(), 0, str.length());\n  }\n\n  /**\n   * Directly call the\n   * comment method on the passed LexicalHandler for the\n   * string-value.\n   *\n   * @param lh A non-null reference to a LexicalHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchAsComment(org.xml.sax.ext.LexicalHandler lh)\n          throws org.xml.sax.SAXException\n  {\n\n    String str = str();\n\n    lh.comment(str.toCharArray(), 0, str.length());\n  }\n\n  /**\n   * Returns the length of this string.\n   *\n   * @return  the length of the sequence of characters represented by this\n   *          object.\n   */\n  public int length()\n  {\n    return str().length();\n  }\n\n  /**\n   * Returns the character at the specified index. An index ranges\n   * from <code>0</code> to <code>length() - 1</code>. The first character\n   * of the sequence is at index <code>0</code>, the next at index\n   * <code>1</code>, and so on, as for array indexing.\n   *\n   * @param      index   the index of the character.\n   * @return     the character at the specified index of this string.\n   *             The first character is at index <code>0</code>.\n   * @exception  IndexOutOfBoundsException  if the <code>index</code>\n   *             argument is negative or not less than the length of this\n   *             string.\n   */\n  public char charAt(int index)\n  {\n    return str().charAt(index);\n  }\n\n  /**\n   * Copies characters from this string into the destination character\n   * array.\n   *\n   * @param      srcBegin   index of the first character in the string\n   *                        to copy.\n   * @param      srcEnd     index after the last character in the string\n   *                        to copy.\n   * @param      dst        the destination array.\n   * @param      dstBegin   the start offset in the destination array.\n   * @exception IndexOutOfBoundsException If any of the following\n   *            is true:\n   *            <ul><li><code>srcBegin</code> is negative.\n   *            <li><code>srcBegin</code> is greater than <code>srcEnd</code>\n   *            <li><code>srcEnd</code> is greater than the length of this\n   *                string\n   *            <li><code>dstBegin</code> is negative\n   *            <li><code>dstBegin+(srcEnd-srcBegin)</code> is larger than\n   *                <code>dst.length</code></ul>\n   * @exception NullPointerException if <code>dst</code> is <code>null</code>\n   */\n  public void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin)\n  {\n    str().getChars(srcBegin, srcEnd, dst, dstBegin);\n  }\n\n  /**\n   * Tell if two objects are functionally equal.\n   *\n   * @param obj2 Object to compare this to\n   *\n   * @return true if the two objects are equal\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean equals(XObject obj2)\n  {\n\n    int t = obj2.getType();\n    try\n    {\n\t    if (XObject.CLASS_NODESET == t)\n\t      return obj2.equals(this);\n\t    else if(XObject.CLASS_BOOLEAN == t)\n\t    \treturn obj2.bool() == bool();\n\t    else if(XObject.CLASS_NUMBER == t)\n\t    \treturn obj2.num() == num();\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n    \tthrow new org.apache.xml.utils.WrappedRuntimeException(te);\n    }\n\n    return xstr().equals(obj2.xstr());\n  }\n\n  /**\n   * Compares this string to the specified object.\n   * The result is <code>true</code> if and only if the argument is not\n   * <code>null</code> and is a <code>String</code> object that represents\n   * the same sequence of characters as this object.\n   *\n   * @param obj2   the object to compare this <code>String</code>\n   *                     against.\n   * @return  <code>true</code> if the <code>String </code>are equal;\n   *          <code>false</code> otherwise.\n   * @see     java.lang.String#compareTo(java.lang.String)\n   * @see     java.lang.String#equalsIgnoreCase(java.lang.String)\n   */\n  public boolean equals(XMLString obj2)\n  {\n\n    if (!obj2.hasString())\n      return obj2.equals(this);\n    else\n      return str().equals(obj2.toString());\n  }\n\n  /**\n   * Compares this string to the specified object.\n   * The result is <code>true</code> if and only if the argument is not\n   * <code>null</code> and is a <code>String</code> object that represents\n   * the same sequence of characters as this object.\n   *\n   * @param   anObject   the object to compare this <code>String</code>\n   *                     against.\n   *\n   * NEEDSDOC @param obj2\n   * @return  <code>true</code> if the <code>String </code>are equal;\n   *          <code>false</code> otherwise.\n   * @see     java.lang.String#compareTo(java.lang.String)\n   * @see     java.lang.String#equalsIgnoreCase(java.lang.String)\n   */\n  public boolean equals(Object obj2)\n  {\n\n    if (null == obj2)\n      return false;\n\n    else if (obj2 instanceof XNodeSet)\n      return obj2.equals(this);\n    else if(obj2 instanceof XNumber)\n    \treturn obj2.equals(this);\n    else\n      return str().equals(obj2.toString());\n  }\n\n  /**\n   * Compares this <code>String</code> to another <code>String</code>,\n   * ignoring case considerations.  Two strings are considered equal\n   * ignoring case if they are of the same length, and corresponding\n   * characters in the two strings are equal ignoring case.\n   *\n   * @param   anotherString   the <code>String</code> to compare this\n   *                          <code>String</code> against.\n   * @return  <code>true</code> if the argument is not <code>null</code>\n   *          and the <code>String</code>s are equal,\n   *          ignoring case; <code>false</code> otherwise.\n   * @see     #equals(Object)\n   * @see     java.lang.Character#toLowerCase(char)\n   * @see java.lang.Character#toUpperCase(char)\n   */\n  public boolean equalsIgnoreCase(String anotherString)\n  {\n    return str().equalsIgnoreCase(anotherString);\n  }\n\n  /**\n   * Compares two strings lexicographically.\n   *\n   * @param   anotherString   the <code>String</code> to be compared.\n   *\n   * NEEDSDOC @param xstr\n   * @return  the value <code>0</code> if the argument string is equal to\n   *          this string; a value less than <code>0</code> if this string\n   *          is lexicographically less than the string argument; and a\n   *          value greater than <code>0</code> if this string is\n   *          lexicographically greater than the string argument.\n   * @exception java.lang.NullPointerException if <code>anotherString</code>\n   *          is <code>null</code>.\n   */\n  public int compareTo(XMLString xstr)\n  {\n\n    int len1 = this.length();\n    int len2 = xstr.length();\n    int n = Math.min(len1, len2);\n    int i = 0;\n    int j = 0;\n\n    while (n-- != 0)\n    {\n      char c1 = this.charAt(i);\n      char c2 = xstr.charAt(j);\n\n      if (c1 != c2)\n      {\n        return c1 - c2;\n      }\n\n      i++;\n      j++;\n    }\n\n    return len1 - len2;\n  }\n\n  /**\n   * Compares two strings lexicographically, ignoring case considerations.\n   * This method returns an integer whose sign is that of\n   * <code>this.toUpperCase().toLowerCase().compareTo(\n   * str.toUpperCase().toLowerCase())</code>.\n   * <p>\n   * Note that this method does <em>not</em> take locale into account,\n   * and will result in an unsatisfactory ordering for certain locales.\n   * The java.text package provides <em>collators</em> to allow\n   * locale-sensitive ordering.\n   *\n   * @param   str   the <code>String</code> to be compared.\n   * @return  a negative integer, zero, or a positive integer as the\n   *          the specified String is greater than, equal to, or less\n   *          than this String, ignoring case considerations.\n   * @see     java.text.Collator#compare(String, String)\n   * @since   1.2\n   */\n  public int compareToIgnoreCase(XMLString str)\n  {\n    \n    throw new org.apache.xml.utils.WrappedRuntimeException(\n      new java.lang.NoSuchMethodException(\n        \"Java 1.2 method, not yet implemented\"));\n  }\n\n  /**\n   * Tests if this string starts with the specified prefix beginning\n   * a specified index.\n   *\n   * @param   prefix    the prefix.\n   * @param   toffset   where to begin looking in the string.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a prefix of the substring of this object starting\n   *          at index <code>toffset</code>; <code>false</code> otherwise.\n   *          The result is <code>false</code> if <code>toffset</code> is\n   *          negative or greater than the length of this\n   *          <code>String</code> object; otherwise the result is the same\n   *          as the result of the expression\n   *          <pre>\n   *          this.subString(toffset).startsWith(prefix)\n   *          </pre>\n   * @exception java.lang.NullPointerException if <code>prefix</code> is\n   *          <code>null</code>.\n   */\n  public boolean startsWith(String prefix, int toffset)\n  {\n    return str().startsWith(prefix, toffset);\n  }\n\n  /**\n   * Tests if this string starts with the specified prefix.\n   *\n   * @param   prefix   the prefix.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a prefix of the character sequence represented by\n   *          this string; <code>false</code> otherwise.\n   *          Note also that <code>true</code> will be returned if the\n   *          argument is an empty string or is equal to this\n   *          <code>String</code> object as determined by the\n   *          {@link #equals(Object)} method.\n   * @exception java.lang.NullPointerException if <code>prefix</code> is\n   *          <code>null</code>.\n   */\n  public boolean startsWith(String prefix)\n  {\n    return startsWith(prefix, 0);\n  }\n\n  /**\n   * Tests if this string starts with the specified prefix beginning\n   * a specified index.\n   *\n   * @param   prefix    the prefix.\n   * @param   toffset   where to begin looking in the string.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a prefix of the substring of this object starting\n   *          at index <code>toffset</code>; <code>false</code> otherwise.\n   *          The result is <code>false</code> if <code>toffset</code> is\n   *          negative or greater than the length of this\n   *          <code>String</code> object; otherwise the result is the same\n   *          as the result of the expression\n   *          <pre>\n   *          this.subString(toffset).startsWith(prefix)\n   *          </pre>\n   * @exception java.lang.NullPointerException if <code>prefix</code> is\n   *          <code>null</code>.\n   */\n  public boolean startsWith(XMLString prefix, int toffset)\n  {\n\n    int to = toffset;\n    int tlim = this.length();\n    int po = 0;\n    int pc = prefix.length();\n\n    if ((toffset < 0) || (toffset > tlim - pc))\n    {\n      return false;\n    }\n\n    while (--pc >= 0)\n    {\n      if (this.charAt(to) != prefix.charAt(po))\n      {\n        return false;\n      }\n\n      to++;\n      po++;\n    }\n\n    return true;\n  }\n\n  /**\n   * Tests if this string starts with the specified prefix.\n   *\n   * @param   prefix   the prefix.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a prefix of the character sequence represented by\n   *          this string; <code>false</code> otherwise.\n   *          Note also that <code>true</code> will be returned if the\n   *          argument is an empty string or is equal to this\n   *          <code>String</code> object as determined by the\n   *          {@link #equals(Object)} method.\n   * @exception java.lang.NullPointerException if <code>prefix</code> is\n   *          <code>null</code>.\n   */\n  public boolean startsWith(XMLString prefix)\n  {\n    return startsWith(prefix, 0);\n  }\n\n  /**\n   * Tests if this string ends with the specified suffix.\n   *\n   * @param   suffix   the suffix.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a suffix of the character sequence represented by\n   *          this object; <code>false</code> otherwise. Note that the\n   *          result will be <code>true</code> if the argument is the\n   *          empty string or is equal to this <code>String</code> object\n   *          as determined by the {@link #equals(Object)} method.\n   * @exception java.lang.NullPointerException if <code>suffix</code> is\n   *          <code>null</code>.\n   */\n  public boolean endsWith(String suffix)\n  {\n    return str().endsWith(suffix);\n  }\n\n  /**\n   * Returns a hashcode for this string. The hashcode for a\n   * <code>String</code> object is computed as\n   * <blockquote><pre>\n   * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]\n   * </pre></blockquote>\n   * using <code>int</code> arithmetic, where <code>s[i]</code> is the\n   * <i>i</i>th character of the string, <code>n</code> is the length of\n   * the string, and <code>^</code> indicates exponentiation.\n   * (The hash value of the empty string is zero.)\n   *\n   * @return  a hash code value for this object.\n   */\n  public int hashCode()\n  {\n    return str().hashCode();\n  }\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified character. If a character with value <code>ch</code> occurs\n   * in the character sequence represented by this <code>String</code>\n   * object, then the index of the first such occurrence is returned --\n   * that is, the smallest value <i>k</i> such that:\n   * <blockquote><pre>\n   * this.charAt(<i>k</i>) == ch\n   * </pre></blockquote>\n   * is <code>true</code>. If no such character occurs in this string,\n   * then <code>-1</code> is returned.\n   *\n   * @param   ch   a character.\n   * @return  the index of the first occurrence of the character in the\n   *          character sequence represented by this object, or\n   *          <code>-1</code> if the character does not occur.\n   */\n  public int indexOf(int ch)\n  {\n    return str().indexOf(ch);\n  }\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified character, starting the search at the specified index.\n   * <p>\n   * If a character with value <code>ch</code> occurs in the character\n   * sequence represented by this <code>String</code> object at an index\n   * no smaller than <code>fromIndex</code>, then the index of the first\n   * such occurrence is returned--that is, the smallest value <i>k</i>\n   * such that:\n   * <blockquote><pre>\n   * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)\n   * </pre></blockquote>\n   * is true. If no such character occurs in this string at or after\n   * position <code>fromIndex</code>, then <code>-1</code> is returned.\n   * <p>\n   * There is no restriction on the value of <code>fromIndex</code>. If it\n   * is negative, it has the same effect as if it were zero: this entire\n   * string may be searched. If it is greater than the length of this\n   * string, it has the same effect as if it were equal to the length of\n   * this string: <code>-1</code> is returned.\n   *\n   * @param   ch          a character.\n   * @param   fromIndex   the index to start the search from.\n   * @return  the index of the first occurrence of the character in the\n   *          character sequence represented by this object that is greater\n   *          than or equal to <code>fromIndex</code>, or <code>-1</code>\n   *          if the character does not occur.\n   */\n  public int indexOf(int ch, int fromIndex)\n  {\n    return str().indexOf(ch, fromIndex);\n  }\n\n  /**\n   * Returns the index within this string of the last occurrence of the\n   * specified character. That is, the index returned is the largest\n   * value <i>k</i> such that:\n   * <blockquote><pre>\n   * this.charAt(<i>k</i>) == ch\n   * </pre></blockquote>\n   * is true.\n   * The String is searched backwards starting at the last character.\n   *\n   * @param   ch   a character.\n   * @return  the index of the last occurrence of the character in the\n   *          character sequence represented by this object, or\n   *          <code>-1</code> if the character does not occur.\n   */\n  public int lastIndexOf(int ch)\n  {\n    return str().lastIndexOf(ch);\n  }\n\n  /**\n   * Returns the index within this string of the last occurrence of the\n   * specified character, searching backward starting at the specified\n   * index. That is, the index returned is the largest value <i>k</i>\n   * such that:\n   * <blockquote><pre>\n   * this.charAt(k) == ch) && (k <= fromIndex)\n   * </pre></blockquote>\n   * is true.\n   *\n   * @param   ch          a character.\n   * @param   fromIndex   the index to start the search from. There is no\n   *          restriction on the value of <code>fromIndex</code>. If it is\n   *          greater than or equal to the length of this string, it has\n   *          the same effect as if it were equal to one less than the\n   *          length of this string: this entire string may be searched.\n   *          If it is negative, it has the same effect as if it were -1:\n   *          -1 is returned.\n   * @return  the index of the last occurrence of the character in the\n   *          character sequence represented by this object that is less\n   *          than or equal to <code>fromIndex</code>, or <code>-1</code>\n   *          if the character does not occur before that point.\n   */\n  public int lastIndexOf(int ch, int fromIndex)\n  {\n    return str().lastIndexOf(ch, fromIndex);\n  }\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified substring. The integer returned is the smallest value\n   * <i>k</i> such that:\n   * <blockquote><pre>\n   * this.startsWith(str, <i>k</i>)\n   * </pre></blockquote>\n   * is <code>true</code>.\n   *\n   * @param   str   any string.\n   * @return  if the string argument occurs as a substring within this\n   *          object, then the index of the first character of the first\n   *          such substring is returned; if it does not occur as a\n   *          substring, <code>-1</code> is returned.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public int indexOf(String str)\n  {\n    return str().indexOf(str);\n  }\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified substring. The integer returned is the smallest value\n   * <i>k</i> such that:\n   * <blockquote><pre>\n   * this.startsWith(str, <i>k</i>)\n   * </pre></blockquote>\n   * is <code>true</code>.\n   *\n   * @param   str   any string.\n   * @return  if the string argument occurs as a substring within this\n   *          object, then the index of the first character of the first\n   *          such substring is returned; if it does not occur as a\n   *          substring, <code>-1</code> is returned.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public int indexOf(XMLString str)\n  {\n    return str().indexOf(str.toString());\n  }\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified substring, starting at the specified index. The integer\n   * returned is the smallest value <i>k</i> such that:\n   * <blockquote><pre>\n   * this.startsWith(str, <i>k</i>) && (<i>k</i> >= fromIndex)\n   * </pre></blockquote>\n   * is <code>true</code>.\n   * <p>\n   * There is no restriction on the value of <code>fromIndex</code>. If\n   * it is negative, it has the same effect as if it were zero: this entire\n   * string may be searched. If it is greater than the length of this\n   * string, it has the same effect as if it were equal to the length of\n   * this string: <code>-1</code> is returned.\n   *\n   * @param   str         the substring to search for.\n   * @param   fromIndex   the index to start the search from.\n   * @return  If the string argument occurs as a substring within this\n   *          object at a starting index no smaller than\n   *          <code>fromIndex</code>, then the index of the first character\n   *          of the first such substring is returned. If it does not occur\n   *          as a substring starting at <code>fromIndex</code> or beyond,\n   *          <code>-1</code> is returned.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>\n   */\n  public int indexOf(String str, int fromIndex)\n  {\n    return str().indexOf(str, fromIndex);\n  }\n\n  /**\n   * Returns the index within this string of the rightmost occurrence\n   * of the specified substring.  The rightmost empty string \"\" is\n   * considered to occur at the index value <code>this.length()</code>.\n   * The returned index is the largest value <i>k</i> such that\n   * <blockquote><pre>\n   * this.startsWith(str, k)\n   * </pre></blockquote>\n   * is true.\n   *\n   * @param   str   the substring to search for.\n   * @return  if the string argument occurs one or more times as a substring\n   *          within this object, then the index of the first character of\n   *          the last such substring is returned. If it does not occur as\n   *          a substring, <code>-1</code> is returned.\n   * @exception java.lang.NullPointerException  if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public int lastIndexOf(String str)\n  {\n    return str().lastIndexOf(str);\n  }\n\n  /**\n   * Returns the index within this string of the last occurrence of\n   * the specified substring.\n   *\n   * @param   str         the substring to search for.\n   * @param   fromIndex   the index to start the search from. There is no\n   *          restriction on the value of fromIndex. If it is greater than\n   *          the length of this string, it has the same effect as if it\n   *          were equal to the length of this string: this entire string\n   *          may be searched. If it is negative, it has the same effect\n   *          as if it were -1: -1 is returned.\n   * @return  If the string argument occurs one or more times as a substring\n   *          within this object at a starting index no greater than\n   *          <code>fromIndex</code>, then the index of the first character of\n   *          the last such substring is returned. If it does not occur as a\n   *          substring starting at <code>fromIndex</code> or earlier,\n   *          <code>-1</code> is returned.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public int lastIndexOf(String str, int fromIndex)\n  {\n    return str().lastIndexOf(str, fromIndex);\n  }\n\n  /**\n   * Returns a new string that is a substring of this string. The\n   * substring begins with the character at the specified index and\n   * extends to the end of this string. <p>\n   * Examples:\n   * <blockquote><pre>\n   * \"unhappy\".substring(2) returns \"happy\"\n   * \"Harbison\".substring(3) returns \"bison\"\n   * \"emptiness\".substring(9) returns \"\" (an empty string)\n   * </pre></blockquote>\n   *\n   * @param      beginIndex   the beginning index, inclusive.\n   * @return     the specified substring.\n   * @exception  IndexOutOfBoundsException  if\n   *             <code>beginIndex</code> is negative or larger than the\n   *             length of this <code>String</code> object.\n   */\n  public XMLString substring(int beginIndex)\n  {\n    return new XString(str().substring(beginIndex));\n  }\n\n  /**\n   * Returns a new string that is a substring of this string. The\n   * substring begins at the specified <code>beginIndex</code> and\n   * extends to the character at index <code>endIndex - 1</code>.\n   * Thus the length of the substring is <code>endIndex-beginIndex</code>.\n   *\n   * @param      beginIndex   the beginning index, inclusive.\n   * @param      endIndex     the ending index, exclusive.\n   * @return     the specified substring.\n   * @exception  IndexOutOfBoundsException  if the\n   *             <code>beginIndex</code> is negative, or\n   *             <code>endIndex</code> is larger than the length of\n   *             this <code>String</code> object, or\n   *             <code>beginIndex</code> is larger than\n   *             <code>endIndex</code>.\n   */\n  public XMLString substring(int beginIndex, int endIndex)\n  {\n    return new XString(str().substring(beginIndex, endIndex));\n  }\n\n  /**\n   * Concatenates the specified string to the end of this string.\n   *\n   * @param   str   the <code>String</code> that is concatenated to the end\n   *                of this <code>String</code>.\n   * @return  a string that represents the concatenation of this object's\n   *          characters followed by the string argument's characters.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public XMLString concat(String str)\n  {\n\n    return new XString(str().concat(str));\n  }\n\n  /**\n   * Converts all of the characters in this <code>String</code> to lower\n   * case using the rules of the given <code>Locale</code>.\n   *\n   * @param locale use the case transformation rules for this locale\n   * @return the String, converted to lowercase.\n   * @see     java.lang.Character#toLowerCase(char)\n   * @see     java.lang.String#toUpperCase(Locale)\n   */\n  public XMLString toLowerCase(Locale locale)\n  {\n    return new XString(str().toLowerCase(locale));\n  }\n\n  /**\n   * Converts all of the characters in this <code>String</code> to lower\n   * case using the rules of the default locale, which is returned\n   * by <code>Locale.getDefault</code>.\n   * <p>\n   *\n   * @return  the string, converted to lowercase.\n   * @see     java.lang.Character#toLowerCase(char)\n   * @see     java.lang.String#toLowerCase(Locale)\n   */\n  public XMLString toLowerCase()\n  {\n    return new XString(str().toLowerCase());\n  }\n\n  /**\n   * Converts all of the characters in this <code>String</code> to upper\n   * case using the rules of the given locale.\n   * @param locale use the case transformation rules for this locale\n   * @return the String, converted to uppercase.\n   * @see     java.lang.Character#toUpperCase(char)\n   * @see     java.lang.String#toLowerCase(Locale)\n   */\n  public XMLString toUpperCase(Locale locale)\n  {\n    return new XString(str().toUpperCase(locale));\n  }\n\n  /**\n   * Converts all of the characters in this <code>String</code> to upper\n   * case using the rules of the default locale, which is returned\n   * by <code>Locale.getDefault</code>.\n   *\n   * <p>\n   * If no character in this string has a different uppercase version,\n   * based on calling the <code>toUpperCase</code> method defined by\n   * <code>Character</code>, then the original string is returned.\n   * <p>\n   * Otherwise, this method creates a new <code>String</code> object\n   * representing a character sequence identical in length to the\n   * character sequence represented by this <code>String</code> object and\n   * with every character equal to the result of applying the method\n   * <code>Character.toUpperCase</code> to the corresponding character of\n   * this <code>String</code> object. <p>\n   * Examples:\n   * <blockquote><pre>\n   * \"Fahrvergnügen\".toUpperCase() returns \"FAHRVERGNÜGEN\"\n   * \"Visit Ljubinje!\".toUpperCase() returns \"VISIT LJUBINJE!\"\n   * </pre></blockquote>\n   *\n   * @return  the string, converted to uppercase.\n   * @see     java.lang.Character#toUpperCase(char)\n   * @see     java.lang.String#toUpperCase(Locale)\n   */\n  public XMLString toUpperCase()\n  {\n    return new XString(str().toUpperCase());\n  }\n\n  /**\n   * Removes white space from both ends of this string.\n   *\n   * @return  this string, with white space removed from the front and end.\n   */\n  public XMLString trim()\n  {\n    return new XString(str().trim());\n  }\n\n  /**\n   * Returns whether the specified <var>ch</var> conforms to the XML 1.0 definition\n   * the definition of <CODE>S</CODE></A> for details.\n   * @param   ch      Character to check as XML whitespace.\n   * @return          =true if <var>ch</var> is XML whitespace; otherwise =false.\n   */\n  private static boolean isSpace(char ch)\n  {\n  }\n\n  /**\n   * Conditionally trim all leading and trailing whitespace in the specified String.\n   * All strings of white space are\n   * replaced by a single space character (#x20), except spaces after punctuation which\n   * receive double spaces if doublePunctuationSpaces is true.\n   * This function may be useful to a formatter, but to get first class\n   * results, the formatter should probably do it's own white space handling\n   * based on the semantics of the formatting object.\n   *\n   * @param   trimHead    Trim leading whitespace?\n   * @param   trimTail    Trim trailing whitespace?\n   * @param   doublePunctuationSpaces    Use double spaces for punctuation?\n   * @return              The trimmed string.\n   */\n  public XMLString fixWhiteSpace(boolean trimHead, boolean trimTail,\n                                 boolean doublePunctuationSpaces)\n  {\n\n    int len = this.length();\n    char[] buf = new char[len];\n\n    this.getChars(0, len, buf, 0);\n\n    boolean edit = false;\n    int s;\n\n    for (s = 0; s < len; s++)\n    {\n      if (isSpace(buf[s]))\n      {\n        break;\n      }\n    }\n\n    /* replace S to ' '. and ' '+ -> single ' '. */\n    int d = s;\n    boolean pres = false;\n\n    for (; s < len; s++)\n    {\n      char c = buf[s];\n\n      if (isSpace(c))\n      {\n        if (!pres)\n        {\n          if (' ' != c)\n          {\n            edit = true;\n          }\n\n          buf[d++] = ' ';\n\n          if (doublePunctuationSpaces && (s != 0))\n          {\n            char prevChar = buf[s - 1];\n\n            if (!((prevChar == '.') || (prevChar == '!')\n                  || (prevChar == '?')))\n            {\n              pres = true;\n            }\n          }\n          else\n          {\n            pres = true;\n          }\n        }\n        else\n        {\n          edit = true;\n          pres = true;\n        }\n      }\n      else\n      {\n        buf[d++] = c;\n        pres = false;\n      }\n    }\n\n    if (trimTail && 1 <= d && ' ' == buf[d - 1])\n    {\n      edit = true;\n\n      d--;\n    }\n\n    int start = 0;\n\n    if (trimHead && 0 < d && ' ' == buf[0])\n    {\n      edit = true;\n\n      start++;\n    }\n\n    XMLStringFactory xsf = XMLStringFactoryImpl.getFactory();\n\n    return edit ? xsf.newstr(new String(buf, start, d - start)) : this;\n  }\n  \n  /**\n   * @see XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitStringLiteral(owner, this);", "functions": [{"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"#STRING\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasString", "code": "  public boolean hasString()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "num", "code": "  public double num()\n  {\n    return toDouble();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toDouble", "code": "  public double toDouble()\n  {\n    int end = length();\n    \n    if(0 == end)\n      return Double.NaN;\n\n    double result = 0.0;\n    int start = 0;\n    int punctPos = end-1;\n\n    for (int i = start; i < end; i++)\n    {\n      char c = charAt(i);\n\n      if (!XMLCharacterRecognizer.isWhiteSpace(c))\n      {\n        break;\n      }\n      else\n        start++;\n    }\n\n    double sign = 1.0;\n\n    if (start < end && charAt(start) == '-')\n    {\n      sign = -1.0;\n\n      start++;\n    }\n\n    int digitsFound = 0;\n\n    {\n      char c = charAt(i);\n\n      if (c != '.')\n      {\n        if (XMLCharacterRecognizer.isWhiteSpace(c))\n          break;\n        else if (Character.isDigit(c))\n        {\n          result = result * 10.0 + (c - 0x30);\n\n          digitsFound++;\n        }\n        else\n        {\n          return Double.NaN;\n        }\n      }\n      else\n      {\n        punctPos = i;\n\n        break;\n      }\n    }\n\n    {\n      double fractPart = 0.0;\n\n      for (int i = end - 1; i > punctPos; i--)\n      {\n        char c = charAt(i);\n\n        if (XMLCharacterRecognizer.isWhiteSpace(c))\n          break;\n        else if (Character.isDigit(c))\n        {\n          fractPart = fractPart / 10.0 + (c - 0x30);\n\n          digitsFound++;\n        }\n        else\n        {\n          return Double.NaN;\n        }\n      }\n\n      result += fractPart / 10.0;\n    }\n\n    if (0 == digitsFound)\n      return Double.NaN;\n\n    return result * sign;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "BINARY_OP", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "IF", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [0, 15], [0, 16], [0, 17], [0, 18], [4, 19], [6, 20], [10, 21], [10, 22], [14, 23], [0, 24], [15, 25], [17, 26], [3, 27], [19, 28], [19, 29], [5, 30], [6, 31], [6, 32], [7, 33], [8, 34], [9, 35], [22, 36], [11, 37], [24, 38], [15, 39], [15, 40], [16, 41], [17, 42], [17, 43], [26, 44], [18, 45], [4, 46], [28, 47], [28, 48], [31, 49], [33, 50], [38, 51], [39, 52], [39, 53], [39, 54], [15, 55], [17, 56], [43, 57], [43, 58], [43, 59], [46, 60], [31, 61], [32, 62], [52, 63], [40, 64], [55, 65], [57, 66], [52, 67], [57, 68], [52, 69], [57, 70], [69, 71], [70, 72], [71, 73], [71, 74], [72, 75], [72, 76], [73, 77], [74, 78], [75, 79], [76, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 0], [16, 0], [17, 0], [18, 0], [19, 4], [20, 6], [21, 10], [22, 10], [23, 14], [24, 0], [25, 15], [26, 17], [27, 3], [28, 19], [29, 19], [30, 5], [31, 6], [32, 6], [33, 7], [34, 8], [35, 9], [36, 22], [37, 11], [38, 24], [39, 15], [40, 15], [41, 16], [42, 17], [43, 17], [44, 26], [45, 18], [46, 4], [47, 28], [48, 28], [49, 31], [50, 33], [51, 38], [52, 39], [53, 39], [54, 39], [55, 15], [56, 17], [57, 43], [58, 43], [59, 43], [60, 46], [61, 31], [62, 32], [63, 52], [64, 40], [65, 55], [66, 57], [67, 52], [68, 57], [69, 52], [70, 57], [71, 69], [72, 70], [73, 71], [74, 71], [75, 72], [76, 72], [77, 73], [78, 74], [79, 75], [80, 76], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "bool", "code": "  public boolean bool()\n  {\n    return str().length() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "xstr", "code": "  public XMLString xstr()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "str", "code": "  public String str()\n  {\n    return (null != m_obj) ? ((String) m_obj) : \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "rtf", "code": "  public int rtf(XPathContext support)\n  {\n\n    DTM frag = support.createDocumentFragment();\n\n    frag.appendTextChild(str());\n\n    return frag.getDocument();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "dispatchCharactersEvents", "code": "  public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n\n    String str = str();\n\n    ch.characters(str.toCharArray(), 0, str.length());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [3, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 3], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "dispatchAsComment", "code": "  public void dispatchAsComment(org.xml.sax.ext.LexicalHandler lh)\n          throws org.xml.sax.SAXException\n  {\n\n    String str = str();\n\n    lh.comment(str.toCharArray(), 0, str.length());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [3, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 3], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "length", "code": "  public int length()\n  {\n    return str().length();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "charAt", "code": "  public char charAt(int index)\n  {\n    return str().charAt(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getChars", "code": "  public void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin)\n  {\n    str().getChars(srcBegin, srcEnd, dst, dstBegin);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "equals", "code": "  public boolean equals(XObject obj2)\n  {\n\n    int t = obj2.getType();\n    try\n    {\n\t    if (XObject.CLASS_NODESET == t)\n\t      return obj2.equals(this);\n\t    else if(XObject.CLASS_BOOLEAN == t)\n\t    \treturn obj2.bool() == bool();\n\t    else if(XObject.CLASS_NUMBER == t)\n\t    \treturn obj2.num() == num();\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n    \tthrow new org.apache.xml.utils.WrappedRuntimeException(te);\n    }\n\n    return xstr().equals(obj2.xstr());", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "CALL", "CATCH", "IF", "CALL", "THROW_RAISE", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [5, 8], [6, 9], [7, 10], [7, 11], [7, 12], [3, 13], [8, 14], [9, 15], [10, 16], [10, 17], [10, 18], [11, 19], [16, 20], [16, 21], [17, 22], [20, 23], [22, 24], [22, 25], [23, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 5], [9, 6], [10, 7], [11, 7], [12, 7], [13, 3], [14, 8], [15, 9], [16, 10], [17, 10], [18, 10], [19, 11], [20, 16], [21, 16], [22, 17], [23, 20], [24, 22], [25, 22], [26, 23], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "equals", "code": "  public boolean equals(XMLString obj2)\n  {\n\n    if (!obj2.hasString())\n      return obj2.equals(this);\n    else\n      return str().equals(obj2.toString());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "equals", "code": "  public boolean equals(Object obj2)\n  {\n\n    if (null == obj2)\n      return false;\n\n    else if (obj2 instanceof XNodeSet)\n      return obj2.equals(this);\n    else if(obj2 instanceof XNumber)\n    \treturn obj2.equals(this);\n    else\n      return str().equals(obj2.toString());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [3, 8], [4, 9], [5, 10], [6, 11], [6, 12], [6, 13], [7, 14], [11, 15], [12, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 3], [9, 4], [10, 5], [11, 6], [12, 6], [13, 6], [14, 7], [15, 11], [16, 12], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "equalsIgnoreCase", "code": "  public boolean equalsIgnoreCase(String anotherString)\n  {\n    return str().equalsIgnoreCase(anotherString);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "compareTo", "code": "  public int compareTo(XMLString xstr)\n  {\n\n    int len1 = this.length();\n    int len2 = xstr.length();\n    int n = Math.min(len1, len2);\n    int i = 0;\n    int j = 0;\n\n    while (n-- != 0)\n    {\n      char c1 = this.charAt(i);\n      char c2 = xstr.charAt(j);\n\n      if (c1 != c2)\n      {\n        return c1 - c2;\n      }\n\n      i++;\n      j++;\n    }\n\n    return len1 - len2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [2, 12], [2, 13], [10, 14], [3, 15], [4, 16], [5, 17], [6, 18], [11, 19], [7, 20], [11, 21], [12, 22], [21, 23], [13, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 2], [13, 2], [14, 10], [15, 3], [16, 4], [17, 5], [18, 6], [19, 11], [20, 7], [21, 11], [22, 12], [23, 21], [24, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "compareToIgnoreCase", "code": "  public int compareToIgnoreCase(XMLString str)\n  {\n    \n    throw new org.apache.xml.utils.WrappedRuntimeException(\n      new java.lang.NoSuchMethodException(\n        \"Java 1.2 method, not yet implemented\"));", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "startsWith", "code": "  public boolean startsWith(String prefix, int toffset)\n  {\n    return str().startsWith(prefix, toffset);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "startsWith", "code": "  public boolean startsWith(String prefix)\n  {\n    return startsWith(prefix, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startsWith", "code": "  public boolean startsWith(XMLString prefix, int toffset)\n  {\n\n    int to = toffset;\n    int tlim = this.length();\n    int po = 0;\n    int pc = prefix.length();\n\n    if ((toffset < 0) || (toffset > tlim - pc))\n    {\n      return false;\n    }\n\n    while (--pc >= 0)\n    {\n      if (this.charAt(to) != prefix.charAt(po))\n      {\n        return false;\n      }\n\n      to++;\n      po++;\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [2, 13], [11, 14], [3, 15], [12, 16], [12, 17], [4, 18], [5, 19], [13, 20], [15, 21], [16, 22], [17, 23], [6, 24], [13, 25], [20, 26], [25, 27], [20, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 2], [14, 11], [15, 3], [16, 12], [17, 12], [18, 4], [19, 5], [20, 13], [21, 15], [22, 16], [23, 17], [24, 6], [25, 13], [26, 20], [27, 25], [28, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "startsWith", "code": "  public boolean startsWith(XMLString prefix)\n  {\n    return startsWith(prefix, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "endsWith", "code": "  public boolean endsWith(String suffix)\n  {\n    return str().endsWith(suffix);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "hashCode", "code": "  public int hashCode()\n  {\n    return str().hashCode();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "indexOf", "code": "  public int indexOf(int ch)\n  {\n    return str().indexOf(ch);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "indexOf", "code": "  public int indexOf(int ch, int fromIndex)\n  {\n    return str().indexOf(ch, fromIndex);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lastIndexOf", "code": "  public int lastIndexOf(int ch)\n  {\n    return str().lastIndexOf(ch);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "lastIndexOf", "code": "  public int lastIndexOf(int ch, int fromIndex)\n  {\n    return str().lastIndexOf(ch, fromIndex);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "indexOf", "code": "  public int indexOf(String str)\n  {\n    return str().indexOf(str);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "indexOf", "code": "  public int indexOf(XMLString str)\n  {\n    return str().indexOf(str.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "indexOf", "code": "  public int indexOf(String str, int fromIndex)\n  {\n    return str().indexOf(str, fromIndex);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lastIndexOf", "code": "  public int lastIndexOf(String str)\n  {\n    return str().lastIndexOf(str);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "lastIndexOf", "code": "  public int lastIndexOf(String str, int fromIndex)\n  {\n    return str().lastIndexOf(str, fromIndex);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "substring", "code": "  public XMLString substring(int beginIndex)\n  {\n    return new XString(str().substring(beginIndex));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "substring", "code": "  public XMLString substring(int beginIndex, int endIndex)\n  {\n    return new XString(str().substring(beginIndex, endIndex));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "concat", "code": "  public XMLString concat(String str)\n  {\n\n    return new XString(str().concat(str));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toLowerCase", "code": "  public XMLString toLowerCase(Locale locale)\n  {\n    return new XString(str().toLowerCase(locale));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toLowerCase", "code": "  public XMLString toLowerCase()\n  {\n    return new XString(str().toLowerCase());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toUpperCase", "code": "  public XMLString toUpperCase(Locale locale)\n  {\n    return new XString(str().toUpperCase(locale));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toUpperCase", "code": "  public XMLString toUpperCase()\n  {\n    return new XString(str().toUpperCase());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "trim", "code": "  public XMLString trim()\n  {\n    return new XString(str().trim());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isSpace", "code": "  private static boolean isSpace(char ch)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixWhiteSpace", "code": "  public XMLString fixWhiteSpace(boolean trimHead, boolean trimTail,\n                                 boolean doublePunctuationSpaces)\n  {\n\n    int len = this.length();\n    char[] buf = new char[len];\n\n    this.getChars(0, len, buf, 0);\n\n    boolean edit = false;\n    int s;\n\n    for (s = 0; s < len; s++)\n    {\n      if (isSpace(buf[s]))\n      {\n        break;\n      }\n    }\n\n    /* replace S to ' '. and ' '+ -> single ' '. */\n    int d = s;\n    boolean pres = false;\n\n    for (; s < len; s++)\n    {\n      char c = buf[s];\n\n      if (isSpace(c))\n      {\n        if (!pres)\n        {\n          if (' ' != c)\n          {\n            edit = true;\n          }\n\n          buf[d++] = ' ';\n\n          if (doublePunctuationSpaces && (s != 0))\n          {\n            char prevChar = buf[s - 1];\n\n            if (!((prevChar == '.') || (prevChar == '!')\n                  || (prevChar == '?')))\n            {\n              pres = true;\n            }\n          }\n          else\n          {\n            pres = true;\n          }\n        }\n        else\n        {\n          edit = true;\n          pres = true;\n        }\n      }\n      else\n      {\n        buf[d++] = c;\n        pres = false;\n      }\n    }\n\n    if (trimTail && 1 <= d && ' ' == buf[d - 1])\n    {\n      edit = true;\n\n      d--;\n    }\n\n    int start = 0;\n\n    if (trimHead && 0 < d && ' ' == buf[0])\n    {\n      edit = true;\n\n      start++;\n    }\n\n    XMLStringFactory xsf = XMLStringFactoryImpl.getFactory();\n\n    return edit ? xsf.newstr(new String(buf, start, d - start)) : this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [3, 18], [5, 19], [6, 20], [9, 21], [9, 22], [17, 23], [2, 24], [18, 25], [18, 26], [4, 27], [19, 28], [19, 29], [6, 30], [6, 31], [7, 32], [9, 33], [22, 34], [11, 35], [0, 36], [23, 37], [3, 38], [25, 39], [26, 40], [5, 41], [28, 42], [29, 43], [30, 44], [33, 45], [36, 46], [36, 47], [13, 48], [37, 49], [38, 50], [40, 51], [41, 52], [43, 53], [30, 54], [33, 55], [25, 56], [28, 57], [30, 58], [30, 59], [57, 60], [58, 61], [54, 62], [54, 63], [54, 64], [54, 65], [62, 66], [54, 67], [63, 68], [64, 69], [65, 70], [62, 71], [62, 72], [66, 73], [67, 74], [68, 75], [62, 76], [71, 77], [73, 78], [63, 79], [76, 80], [77, 81], [77, 82], [79, 83], [71, 84], [81, 85], [82, 86], [82, 87], [84, 88], [86, 89], [87, 90], [72, 91], [91, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 3], [19, 5], [20, 6], [21, 9], [22, 9], [23, 17], [24, 2], [25, 18], [26, 18], [27, 4], [28, 19], [29, 19], [30, 6], [31, 6], [32, 7], [33, 9], [34, 22], [35, 11], [36, 0], [37, 23], [38, 3], [39, 25], [40, 26], [41, 5], [42, 28], [43, 29], [44, 30], [45, 33], [46, 36], [47, 36], [48, 13], [49, 37], [50, 38], [51, 40], [52, 41], [53, 43], [54, 30], [55, 33], [56, 25], [57, 28], [58, 30], [59, 30], [60, 57], [61, 58], [62, 54], [63, 54], [64, 54], [65, 54], [66, 62], [67, 54], [68, 63], [69, 64], [70, 65], [71, 62], [72, 62], [73, 66], [74, 67], [75, 68], [76, 62], [77, 71], [78, 73], [79, 63], [80, 76], [81, 77], [82, 77], [83, 79], [84, 71], [85, 81], [86, 82], [87, 82], [88, 84], [89, 86], [90, 87], [91, 72], [92, 91], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitStringLiteral(owner, this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "XString", "code": "  protected XString(Object val)\n  {\n    super(val);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XString", "code": "  public XString(String val)\n  {\n    super(val);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "poi-3.0-6099", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/DBCellRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DBCellRecord", "code": "public class DBCellRecord\n    extends Record\n{\n    public final static int BLOCK_SIZE = 32;\n    public final static short sid = 0xd7;\n    private int               field_1_row_offset;\n    private short[]           field_2_cell_offsets;\n\n    public DBCellRecord()\n    {\n    }\n\n    /**\n     * Constructs a DBCellRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0xd7 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public DBCellRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A valid DBCell RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_row_offset   = in.readUShort();\n        int size = in.remaining();        \n        field_2_cell_offsets = new short[ size / 2 ];\n\n        for (int i=0;i<field_2_cell_offsets.length;i++)\n        {\n            field_2_cell_offsets[ i ] = in.readShort();\n        }\n    }\n\n    /**\n     * sets offset from the start of this DBCellRecord to the start of the first cell in\n     * the next DBCell block.\n     *\n     * @param offset    offset to the start of the first cell in the next DBCell block\n     */\n\n    public void setRowOffset(int offset)\n    {\n        field_1_row_offset = offset;\n    }\n\n    public void addCellOffset(short offset)\n    {\n        if (field_2_cell_offsets == null)\n        {\n            field_2_cell_offsets = new short[ 1 ];\n        }\n        else\n        {\n            short[] temp = new short[ field_2_cell_offsets.length + 1 ];\n\n            System.arraycopy(field_2_cell_offsets, 0, temp, 0,\n                             field_2_cell_offsets.length);\n            field_2_cell_offsets = temp;\n        }\n        field_2_cell_offsets[ field_2_cell_offsets.length - 1 ] = offset;\n    }\n\n    /**\n     * gets offset from the start of this DBCellRecord to the start of the first cell in\n     * the next DBCell block.\n     *\n     * @return rowoffset to the start of the first cell in the next DBCell block\n     */\n\n    public int getRowOffset()\n    {\n        return field_1_row_offset;\n    }\n\n    /**\n     * return the cell offset in the array\n     *\n     * @param index of the cell offset to retrieve\n     * @return celloffset from the celloffset array\n     */\n\n    public short getCellOffsetAt(int index)\n    {\n        return field_2_cell_offsets[ index ];\n    }\n\n    /**\n     * get the number of cell offsets in the celloffset array\n     *\n     * @return number of cell offsets\n     */\n\n    public int getNumCellOffsets()\n    {\n        return field_2_cell_offsets.length;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DBCELL]\\n\");\n        buffer.append(\"    .rowoffset       = \")\n            .append(Integer.toHexString(getRowOffset())).append(\"\\n\");\n        for (int k = 0; k < getNumCellOffsets(); k++)\n        {\n            buffer.append(\"    .cell_\" + k + \"          = \")\n                .append(Integer.toHexString(getCellOffsetAt(k))).append(\"\\n\");\n        }\n        buffer.append(\"[/DBCELL]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        if (field_2_cell_offsets == null)\n        {\n            field_2_cell_offsets = new short[ 0 ];\n        }\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,\n                              (( short ) (4 + (getNumCellOffsets() * 2))));\n        LittleEndian.putInt(data, 4 + offset, getRowOffset());\n        for (int k = 0; k < getNumCellOffsets(); k++)\n        {\n            LittleEndian.putShort(data, 8 + 2*k + offset, getCellOffsetAt(k));\n        }\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 8 + (getNumCellOffsets() * 2);\n    }\n    \n    /** Returns the size of a DBCellRecord when it needs to reference a certain number of rows*/\n    public static int getRecordSizeForRows(int rows) {\n      return 8 + (rows * 2);\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public boolean isInValueSection()\n    {\n        return true;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A valid DBCell RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_row_offset   = in.readUShort();\n        int size = in.remaining();        \n        field_2_cell_offsets = new short[ size / 2 ];\n\n        for (int i=0;i<field_2_cell_offsets.length;i++)\n        {\n            field_2_cell_offsets[ i ] = in.readShort();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [6, 8], [1, 9], [1, 10], [5, 11], [9, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 6], [9, 1], [10, 1], [11, 5], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setRowOffset", "code": "    public void setRowOffset(int offset)\n    {\n        field_1_row_offset = offset;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addCellOffset", "code": "    public void addCellOffset(short offset)\n    {\n        if (field_2_cell_offsets == null)\n        {\n            field_2_cell_offsets = new short[ 1 ];\n        }\n        else\n        {\n            short[] temp = new short[ field_2_cell_offsets.length + 1 ];\n\n            System.arraycopy(field_2_cell_offsets, 0, temp, 0,\n                             field_2_cell_offsets.length);\n            field_2_cell_offsets = temp;\n        }\n        field_2_cell_offsets[ field_2_cell_offsets.length - 1 ] = offset;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [3, 10], [8, 11], [8, 12], [10, 13], [5, 14], [9, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 3], [11, 8], [12, 8], [13, 10], [14, 5], [15, 9], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getRowOffset", "code": "    public int getRowOffset()\n    {\n        return field_1_row_offset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCellOffsetAt", "code": "    public short getCellOffsetAt(int index)\n    {\n        return field_2_cell_offsets[ index ];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumCellOffsets", "code": "    public int getNumCellOffsets()\n    {\n        return field_2_cell_offsets.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DBCELL]\\n\");\n        buffer.append(\"    .rowoffset       = \")\n            .append(Integer.toHexString(getRowOffset())).append(\"\\n\");\n        for (int k = 0; k < getNumCellOffsets(); k++)\n        {\n            buffer.append(\"    .cell_\" + k + \"          = \")\n                .append(Integer.toHexString(getCellOffsetAt(k))).append(\"\\n\");\n        }\n        buffer.append(\"[/DBCELL]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [7, 12], [7, 13], [8, 14], [3, 15], [2, 16], [2, 17], [12, 18], [13, 19], [16, 20], [16, 21], [16, 22], [19, 23], [20, 24], [20, 25], [21, 26], [22, 27], [25, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 7], [13, 7], [14, 8], [15, 3], [16, 2], [17, 2], [18, 12], [19, 13], [20, 16], [21, 16], [22, 16], [23, 19], [24, 20], [25, 20], [26, 21], [27, 22], [28, 25], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        if (field_2_cell_offsets == null)\n        {\n            field_2_cell_offsets = new short[ 0 ];\n        }\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,\n                              (( short ) (4 + (getNumCellOffsets() * 2))));\n        LittleEndian.putInt(data, 4 + offset, getRowOffset());\n        for (int k = 0; k < getNumCellOffsets(); k++)\n        {\n            LittleEndian.putShort(data, 8 + 2*k + offset, getCellOffsetAt(k));\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [0, 10], [3, 11], [7, 12], [8, 13], [8, 14], [9, 15], [10, 16], [11, 17], [2, 18], [2, 19], [14, 20], [9, 21], [15, 22], [16, 23], [3, 24], [18, 25], [18, 26], [21, 27], [21, 28], [26, 29], [27, 30], [27, 31], [24, 32], [29, 33], [29, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 0], [11, 3], [12, 7], [13, 8], [14, 8], [15, 9], [16, 10], [17, 11], [18, 2], [19, 2], [20, 14], [21, 9], [22, 15], [23, 16], [24, 3], [25, 18], [26, 18], [27, 21], [28, 21], [29, 26], [30, 27], [31, 27], [32, 24], [33, 29], [34, 29], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 8 + (getNumCellOffsets() * 2);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getRecordSizeForRows", "code": "    public static int getRecordSizeForRows(int rows) {\n      return 8 + (rows * 2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isInValueSection", "code": "    public boolean isInValueSection()\n    {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DBCellRecord", "code": "    public DBCellRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DBCellRecord", "code": "    public DBCellRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ant-1.7-810", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/LogOutputStream.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.LogOutputStream", "code": "public class LogOutputStream extends LineOrientedOutputStream {\n\n    private ProjectComponent pc;\n    private int level = Project.MSG_INFO;\n\n    /**\n     * Create a new LogOutputStream for the specified ProjectComponent.\n     *\n     * @param pc the project component for whom to log\n     * @since Ant 1.7.1\n     */\n    public LogOutputStream(ProjectComponent pc) {\n        this.pc = pc;\n    }\n\n    /**\n     * Creates a new instance of this class.\n     *\n     * @param task the task for whom to log\n     * @param level loglevel used to log data written to this stream.\n     */\n    public LogOutputStream(Task task, int level) {\n        this((ProjectComponent) task, level);\n    }\n\n    /**\n     * Creates a new instance of this class.\n     *\n     * @param pc the project component for whom to log\n     * @param level loglevel used to log data written to this stream.\n     * @since Ant 1.6.3\n     */\n    public LogOutputStream(ProjectComponent pc, int level) {\n        this(pc);\n        this.level = level;\n    }\n\n    /**\n     * Converts the buffer to a string and sends it to <code>processLine</code>\n     */\n    protected void processBuffer() {\n        try {\n            super.processBuffer();\n        } catch (IOException e) {\n            throw new RuntimeException(\"Impossible IOException caught: \" + e);\n        }\n    }\n\n    /**\n     * Logs a line to the log system of ant.\n     *\n     * @param line the line to log.\n     */\n    protected void processLine(String line) {\n        processLine(line, level);\n    }\n\n    /**\n     * Logs a line to the log system of ant.\n     *\n     * @param line the line to log.\n     * @param level the logging level to use.\n     */\n    protected void processLine(String line, int level) {\n        pc.log(line, level);\n    }\n\n    /**\n     * Get the level.\n     * @return the log level.\n     */\n    public int getMessageLevel() {\n        return level;", "functions": [{"function_name": "processBuffer", "code": "    protected void processBuffer() {\n        try {\n            super.processBuffer();\n        } catch (IOException e) {\n            throw new RuntimeException(\"Impossible IOException caught: \" + e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "processLine", "code": "    protected void processLine(String line) {\n        processLine(line, level);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "processLine", "code": "    protected void processLine(String line, int level) {\n        pc.log(line, level);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMessageLevel", "code": "    public int getMessageLevel() {\n        return level;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "LogOutputStream", "code": "    public LogOutputStream(ProjectComponent pc) {\n        this.pc = pc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LogOutputStream", "code": "    public LogOutputStream(Task task, int level) {\n        this((ProjectComponent) task, level);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LogOutputStream", "code": "    public LogOutputStream(ProjectComponent pc, int level) {\n        this(pc);\n        this.level = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "ant-1.7-1285", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter", "code": "public class PlainJUnitResultFormatter implements JUnitResultFormatter {\n\n    private static final double ONE_SECOND = 1000.0;\n\n    /**\n     * Formatter for timings.\n     */\n    private NumberFormat nf = NumberFormat.getInstance();\n    /**\n     * Timing helper.\n     */\n    private Hashtable testStarts = new Hashtable();\n    /**\n     * Where to write the log to.\n     */\n    private OutputStream out;\n    /**\n     * Helper to store intermediate output.\n     */\n    private StringWriter inner;\n    /**\n     * Convenience layer on top of {@link #inner inner}.\n     */\n    private PrintWriter wri;\n    /**\n     * Suppress endTest if testcase failed.\n     */\n    private Hashtable failed = new Hashtable();\n\n    private String systemOutput = null;\n    private String systemError = null;\n\n    /** No arg constructor */\n    public PlainJUnitResultFormatter() {\n        inner = new StringWriter();\n        wri = new PrintWriter(inner);\n    }\n\n    /** {@inheritDoc}. */\n    public void setOutput(OutputStream out) {\n        this.out = out;\n    }\n\n    /** {@inheritDoc}. */\n    public void setSystemOutput(String out) {\n        systemOutput = out;\n    }\n\n    /** {@inheritDoc}. */\n    public void setSystemError(String err) {\n        systemError = err;\n    }\n\n    /**\n     * The whole testsuite started.\n     * @param suite the test suite\n     * @throws BuildException if unable to write the output\n     */\n    public void startTestSuite(JUnitTest suite) throws BuildException {\n        if (out == null) {\n        }\n        StringBuffer sb = new StringBuffer(\"Testsuite: \");\n        sb.append(suite.getName());\n        sb.append(StringUtils.LINE_SEP);\n        try {\n            out.write(sb.toString().getBytes());\n            out.flush();\n        } catch (IOException ex) {\n            throw new BuildException(\"Unable to write output\", ex);\n        }\n    }\n\n    /**\n     * The whole testsuite ended.\n     * @param suite the test suite\n     * @throws BuildException if unable to write the output\n     */\n    public void endTestSuite(JUnitTest suite) throws BuildException {\n        StringBuffer sb = new StringBuffer(\"Tests run: \");\n        sb.append(suite.runCount());\n        sb.append(\", Failures: \");\n        sb.append(suite.failureCount());\n        sb.append(\", Errors: \");\n        sb.append(suite.errorCount());\n        sb.append(\", Time elapsed: \");\n        sb.append(nf.format(suite.getRunTime() / ONE_SECOND));\n        sb.append(\" sec\");\n        sb.append(StringUtils.LINE_SEP);\n\n        if (systemOutput != null && systemOutput.length() > 0) {\n            sb.append(\"------------- Standard Output ---------------\")\n                .append(StringUtils.LINE_SEP)\n                .append(systemOutput)\n                .append(\"------------- ---------------- ---------------\")\n                .append(StringUtils.LINE_SEP);\n        }\n\n        if (systemError != null && systemError.length() > 0) {\n            sb.append(\"------------- Standard Error -----------------\")\n                .append(StringUtils.LINE_SEP)\n                .append(systemError)\n                .append(\"------------- ---------------- ---------------\")\n                .append(StringUtils.LINE_SEP);\n        }\n\n        sb.append(StringUtils.LINE_SEP);\n\n        if (out != null) {\n            try {\n                out.write(sb.toString().getBytes());\n                wri.close();\n                out.write(inner.toString().getBytes());\n                out.flush();\n            } catch (IOException ioex) {\n                throw new BuildException(\"Unable to write output\", ioex);\n            } finally {\n                if (out != System.out && out != System.err) {\n                    FileUtils.close(out);\n                }\n            }\n        }\n    }\n\n    /**\n     * Interface TestListener.\n     *\n     * <p>A new Test is started.\n     * @param t the test.\n     */\n    public void startTest(Test t) {\n        testStarts.put(t, new Long(System.currentTimeMillis()));\n        failed.put(t, Boolean.FALSE);\n    }\n\n    /**\n     * Interface TestListener.\n     *\n     * <p>A Test is finished.\n     * @param test the test.\n     */\n    public void endTest(Test test) {\n        if (Boolean.TRUE.equals(failed.get(test))) {\n            return;\n        }\n        synchronized (wri) {\n            wri.print(\"Testcase: \"\n                      + JUnitVersionHelper.getTestCaseName(test));\n            Long l = (Long) testStarts.get(test);\n            double seconds = 0;\n            if (l != null) {\n                seconds =\n                    (System.currentTimeMillis() - l.longValue()) / ONE_SECOND;\n            }\n\n            wri.println(\" took \" + nf.format(seconds) + \" sec\");\n        }\n    }\n\n    /**\n     * Interface TestListener for JUnit &lt;= 3.4.\n     *\n     * <p>A Test failed.\n     * @param test the test.\n     * @param t the exception.\n     */\n    public void addFailure(Test test, Throwable t) {\n        formatError(\"\\tFAILED\", test, t);\n    }\n\n    /**\n     * Interface TestListener for JUnit &gt; 3.4.\n     *\n     * <p>A Test failed.\n     * @param test the test.\n     * @param t  the assertion that failed.\n     */\n    public void addFailure(Test test, AssertionFailedError t) {\n        addFailure(test, (Throwable) t);\n    }\n\n    /**\n     * Interface TestListener.\n     *\n     * <p>An error occurred while running the test.\n     * @param test the test.\n     * @param t    the exception.\n     */\n    public void addError(Test test, Throwable t) {\n        formatError(\"\\tCaused an ERROR\", test, t);\n    }\n\n    private void formatError(String type, Test test, Throwable t) {\n        synchronized (wri) {\n            if (test != null) {\n                endTest(test);\n                failed.put(test, Boolean.TRUE);\n            }\n\n            wri.println(type);\n            wri.println(t.getMessage());\n            String strace = JUnitTestRunner.getFilteredTrace(t);\n            wri.print(strace);\n            wri.println(\"\");", "functions": [{"function_name": "setOutput", "code": "    public void setOutput(OutputStream out) {\n        this.out = out;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSystemOutput", "code": "    public void setSystemOutput(String out) {\n        systemOutput = out;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSystemError", "code": "    public void setSystemError(String err) {\n        systemError = err;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startTestSuite", "code": "    public void startTestSuite(JUnitTest suite) throws BuildException {\n        if (out == null) {\n        }\n        StringBuffer sb = new StringBuffer(\"Testsuite: \");\n        sb.append(suite.getName());\n        sb.append(StringUtils.LINE_SEP);\n        try {\n            out.write(sb.toString().getBytes());\n            out.flush();\n        } catch (IOException ex) {\n            throw new BuildException(\"Unable to write output\", ex);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "CATCH", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [3, 8], [5, 9], [1, 10], [1, 11], [7, 12], [2, 13], [8, 14], [9, 15], [11, 16], [13, 17], [15, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 3], [9, 5], [10, 1], [11, 1], [12, 7], [13, 2], [14, 8], [15, 9], [16, 11], [17, 13], [18, 15], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "endTestSuite", "code": "    public void endTestSuite(JUnitTest suite) throws BuildException {\n        StringBuffer sb = new StringBuffer(\"Tests run: \");\n        sb.append(suite.runCount());\n        sb.append(\", Failures: \");\n        sb.append(suite.failureCount());\n        sb.append(\", Errors: \");\n        sb.append(suite.errorCount());\n        sb.append(\", Time elapsed: \");\n        sb.append(nf.format(suite.getRunTime() / ONE_SECOND));\n        sb.append(\" sec\");\n        sb.append(StringUtils.LINE_SEP);\n\n        if (systemOutput != null && systemOutput.length() > 0) {\n            sb.append(\"------------- Standard Output ---------------\")\n                .append(StringUtils.LINE_SEP)\n                .append(systemOutput)\n                .append(\"------------- ---------------- ---------------\")\n                .append(StringUtils.LINE_SEP);\n        }\n\n        if (systemError != null && systemError.length() > 0) {\n            sb.append(\"------------- Standard Error -----------------\")\n                .append(StringUtils.LINE_SEP)\n                .append(systemError)\n                .append(\"------------- ---------------- ---------------\")\n                .append(StringUtils.LINE_SEP);\n        }\n\n        sb.append(StringUtils.LINE_SEP);\n\n        if (out != null) {\n            try {\n                out.write(sb.toString().getBytes());\n                wri.close();\n                out.write(inner.toString().getBytes());\n                out.flush();\n            } catch (IOException ioex) {\n                throw new BuildException(\"Unable to write output\", ioex);\n            } finally {\n                if (out != System.out && out != System.err) {\n                    FileUtils.close(out);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 19], [6, 20], [8, 21], [8, 22], [9, 23], [9, 24], [11, 25], [12, 26], [13, 27], [14, 28], [15, 29], [16, 30], [17, 31], [18, 32], [4, 33], [19, 34], [19, 35], [2, 36], [21, 37], [21, 38], [22, 39], [3, 40], [23, 41], [23, 42], [24, 43], [26, 44], [33, 45], [34, 46], [35, 47], [19, 48], [19, 49], [19, 50], [19, 51], [36, 52], [36, 53], [36, 54], [36, 55], [36, 56], [40, 57], [40, 58], [40, 59], [40, 60], [40, 61], [44, 62], [46, 63], [46, 64], [47, 65], [49, 66], [51, 67], [54, 68], [59, 69], [34, 70], [65, 71], [66, 72], [67, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 1], [20, 6], [21, 8], [22, 8], [23, 9], [24, 9], [25, 11], [26, 12], [27, 13], [28, 14], [29, 15], [30, 16], [31, 17], [32, 18], [33, 4], [34, 19], [35, 19], [36, 2], [37, 21], [38, 21], [39, 22], [40, 3], [41, 23], [42, 23], [43, 24], [44, 26], [45, 33], [46, 34], [47, 35], [48, 19], [49, 19], [50, 19], [51, 19], [52, 36], [53, 36], [54, 36], [55, 36], [56, 36], [57, 40], [58, 40], [59, 40], [60, 40], [61, 40], [62, 44], [63, 46], [64, 46], [65, 47], [66, 49], [67, 51], [68, 54], [69, 59], [70, 34], [71, 65], [72, 66], [73, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "startTest", "code": "    public void startTest(Test t) {\n        testStarts.put(t, new Long(System.currentTimeMillis()));\n        failed.put(t, Boolean.FALSE);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endTest", "code": "    public void endTest(Test test) {\n        if (Boolean.TRUE.equals(failed.get(test))) {\n            return;\n        }\n        synchronized (wri) {\n            wri.print(\"Testcase: \"\n                      + JUnitVersionHelper.getTestCaseName(test));\n            Long l = (Long) testStarts.get(test);\n            double seconds = 0;\n            if (l != null) {\n                seconds =\n                    (System.currentTimeMillis() - l.longValue()) / ONE_SECOND;\n            }\n\n            wri.println(\" took \" + nf.format(seconds) + \" sec\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [3, 8], [0, 9], [1, 10], [6, 11], [7, 12], [8, 13], [4, 14], [9, 15], [12, 16], [12, 17], [3, 18], [5, 19], [15, 20], [15, 21], [17, 22], [17, 23], [18, 24], [24, 25], [25, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 3], [9, 0], [10, 1], [11, 6], [12, 7], [13, 8], [14, 4], [15, 9], [16, 12], [17, 12], [18, 3], [19, 5], [20, 15], [21, 15], [22, 17], [23, 17], [24, 18], [25, 24], [26, 25], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "addFailure", "code": "    public void addFailure(Test test, Throwable t) {\n        formatError(\"\\tFAILED\", test, t);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addFailure", "code": "    public void addFailure(Test test, AssertionFailedError t) {\n        addFailure(test, (Throwable) t);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addError", "code": "    public void addError(Test test, Throwable t) {\n        formatError(\"\\tCaused an ERROR\", test, t);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "formatError", "code": "    private void formatError(String type, Test test, Throwable t) {\n        synchronized (wri) {\n            if (test != null) {\n                endTest(test);\n                failed.put(test, Boolean.TRUE);\n            }\n\n            wri.println(type);\n            wri.println(t.getMessage());\n            String strace = JUnitTestRunner.getFilteredTrace(t);\n            wri.print(strace);\n            wri.println(\"\");", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [5, 10], [6, 11], [4, 12], [8, 13], [10, 14], [5, 15], [5, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 5], [11, 6], [12, 4], [13, 8], [14, 10], [15, 5], [16, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "PlainJUnitResultFormatter", "code": "    public PlainJUnitResultFormatter() {\n        inner = new StringWriter();\n        wri = new PrintWriter(inner);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.0-1470", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/spring/util/MethodInfo.java", "language": "java", "name": "org.apache.camel.spring.util.MethodInfo", "code": "public class MethodInfo {\n    private Class type;\n    private Method method;\n    private Expression parametersExpression;\n\n    public MethodInfo(Class type, Method method, Expression parametersExpression) {\n        this.type = type;\n        this.method = method;\n        this.parametersExpression = parametersExpression;\n    }\n\n    public MethodInvocation createMethodInvocation(final Object pojo, final Exchange messageExchange) {\n        final Object[] arguments = (Object[]) parametersExpression.evaluate(messageExchange);\n        return new MethodInvocation() {\n            public Method getMethod() {\n                return method;\n            }\n\n            public Object[] getArguments() {\n                return arguments;\n            }\n\n            public Object proceed() throws Throwable {\n                return invoke(method, pojo, arguments, messageExchange);\n            }\n\n            public Object getThis() {\n                return pojo;\n            }\n\n            public AccessibleObject getStaticPart() {\n                return method;\n            }\n        };\n    }\n\n    public Class getType() {\n        return type;\n    }\n\n    public Method getMethod() {\n        return method;\n    }\n\n    public Expression getParametersExpression() {\n        return parametersExpression;\n    }\n\n    protected Object invoke(Method mth, Object pojo, Object[] arguments, Exchange exchange) throws IllegalAccessException, InvocationTargetException {\n        return mth.invoke(pojo, arguments);", "functions": [{"function_name": "createMethodInvocation", "code": "    public MethodInvocation createMethodInvocation(final Object pojo, final Exchange messageExchange) {\n        final Object[] arguments = (Object[]) parametersExpression.evaluate(messageExchange);\n        return new MethodInvocation() {\n            public Method getMethod() {\n                return method;\n            }\n\n            public Object[] getArguments() {\n                return arguments;\n            }\n\n            public Object proceed() throws Throwable {\n                return invoke(method, pojo, arguments, messageExchange);\n            }\n\n            public Object getThis() {\n                return pojo;\n            }\n\n            public AccessibleObject getStaticPart() {\n                return method;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [2, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 5], [9, 5], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 2], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getType", "code": "    public Class getType() {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMethod", "code": "    public Method getMethod() {\n        return method;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getParametersExpression", "code": "    public Expression getParametersExpression() {\n        return parametersExpression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "invoke", "code": "    protected Object invoke(Method mth, Object pojo, Object[] arguments, Exchange exchange) throws IllegalAccessException, InvocationTargetException {\n        return mth.invoke(pojo, arguments);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "MethodInfo", "code": "    public MethodInfo(Class type, Method method, Expression parametersExpression) {\n        this.type = type;\n        this.method = method;\n        this.parametersExpression = parametersExpression;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-1.5-5227", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/AreaFormatRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.AreaFormatRecord", "code": "public class AreaFormatRecord\n    extends Record\n{\n    public final static short      sid                             = 0x100a;\n    private  int        field_1_foregroundColor;\n    private  int        field_2_backgroundColor;\n    private  short      field_3_pattern;\n    private  short      field_4_formatFlags;\n    private BitField   automatic                                  = new BitField(0x1);\n    private BitField   invert                                     = new BitField(0x2);\n    private  short      field_5_forecolorIndex;\n    private  short      field_6_backcolorIndex;\n\n\n    public AreaFormatRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a AreaFormat record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x100a or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public AreaFormatRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a AreaFormat record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x100a or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public AreaFormatRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a AreaFormat record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_foregroundColor         = LittleEndian.getInt(data, 0x0 + offset);\n        field_2_backgroundColor         = LittleEndian.getInt(data, 0x4 + offset);\n        field_3_pattern                 = LittleEndian.getShort(data, 0x8 + offset);\n        field_4_formatFlags             = LittleEndian.getShort(data, 0xa + offset);\n        field_5_forecolorIndex          = LittleEndian.getShort(data, 0xc + offset);\n        field_6_backcolorIndex          = LittleEndian.getShort(data, 0xe + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AreaFormat]\\n\");\n\n        buffer.append(\"    .foregroundColor      = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getForegroundColor()))\n            .append(\" (\").append(getForegroundColor()).append(\" )\\n\");\n\n        buffer.append(\"    .backgroundColor      = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getBackgroundColor()))\n            .append(\" (\").append(getBackgroundColor()).append(\" )\\n\");\n\n        buffer.append(\"    .pattern              = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getPattern()))\n            .append(\" (\").append(getPattern()).append(\" )\\n\");\n\n        buffer.append(\"    .formatFlags          = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getFormatFlags()))\n            .append(\" (\").append(getFormatFlags()).append(\" )\\n\");\n        buffer.append(\"         .automatic                = \").append(isAutomatic           ()).append('\\n');\n        buffer.append(\"         .invert                   = \").append(isInvert              ()).append('\\n');\n\n        buffer.append(\"    .forecolorIndex       = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getForecolorIndex()))\n            .append(\" (\").append(getForecolorIndex()).append(\" )\\n\");\n\n        buffer.append(\"    .backcolorIndex       = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getBackcolorIndex()))\n            .append(\" (\").append(getBackcolorIndex()).append(\" )\\n\");\n\n        buffer.append(\"[/AreaFormat]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset, field_1_foregroundColor);\n        LittleEndian.putInt(data, 8 + offset, field_2_backgroundColor);\n        LittleEndian.putShort(data, 12 + offset, field_3_pattern);\n        LittleEndian.putShort(data, 14 + offset, field_4_formatFlags);\n        LittleEndian.putShort(data, 16 + offset, field_5_forecolorIndex);\n        LittleEndian.putShort(data, 18 + offset, field_6_backcolorIndex);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4 + 4 + 4 + 2 + 2 + 2 + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n\n    /**\n     * Get the foreground color field for the AreaFormat record.\n     */\n    public int getForegroundColor()\n    {\n        return field_1_foregroundColor;\n    }\n\n    /**\n     * Set the foreground color field for the AreaFormat record.\n     */\n    public void setForegroundColor(int field_1_foregroundColor)\n    {\n        this.field_1_foregroundColor = field_1_foregroundColor;\n    }\n\n    /**\n     * Get the background color field for the AreaFormat record.\n     */\n    public int getBackgroundColor()\n    {\n        return field_2_backgroundColor;\n    }\n\n    /**\n     * Set the background color field for the AreaFormat record.\n     */\n    public void setBackgroundColor(int field_2_backgroundColor)\n    {\n        this.field_2_backgroundColor = field_2_backgroundColor;\n    }\n\n    /**\n     * Get the pattern field for the AreaFormat record.\n     */\n    public short getPattern()\n    {\n        return field_3_pattern;\n    }\n\n    /**\n     * Set the pattern field for the AreaFormat record.\n     */\n    public void setPattern(short field_3_pattern)\n    {\n        this.field_3_pattern = field_3_pattern;\n    }\n\n    /**\n     * Get the format flags field for the AreaFormat record.\n     */\n    public short getFormatFlags()\n    {\n        return field_4_formatFlags;\n    }\n\n    /**\n     * Set the format flags field for the AreaFormat record.\n     */\n    public void setFormatFlags(short field_4_formatFlags)\n    {\n        this.field_4_formatFlags = field_4_formatFlags;\n    }\n\n    /**\n     * Get the forecolor index field for the AreaFormat record.\n     */\n    public short getForecolorIndex()\n    {\n        return field_5_forecolorIndex;\n    }\n\n    /**\n     * Set the forecolor index field for the AreaFormat record.\n     */\n    public void setForecolorIndex(short field_5_forecolorIndex)\n    {\n        this.field_5_forecolorIndex = field_5_forecolorIndex;\n    }\n\n    /**\n     * Get the backcolor index field for the AreaFormat record.\n     */\n    public short getBackcolorIndex()\n    {\n        return field_6_backcolorIndex;\n    }\n\n    /**\n     * Set the backcolor index field for the AreaFormat record.\n     */\n    public void setBackcolorIndex(short field_6_backcolorIndex)\n    {\n        this.field_6_backcolorIndex = field_6_backcolorIndex;\n    }\n\n    /**\n     * Sets the automatic field value.\n     * automatic formatting\n     */\n    public void setAutomatic(boolean value)\n    {\n        field_4_formatFlags = automatic.setShortBoolean(field_4_formatFlags, value);\n    }\n\n    /**\n     * automatic formatting\n     * @return  the automatic field value.\n     */\n    public boolean isAutomatic()\n    {\n        return automatic.isSet(field_4_formatFlags);\n    }\n\n    /**\n     * Sets the invert field value.\n     * swap foreground and background colours when data is negative\n     */\n    public void setInvert(boolean value)\n    {\n        field_4_formatFlags = invert.setShortBoolean(field_4_formatFlags, value);\n    }\n\n    /**\n     * swap foreground and background colours when data is negative\n     * @return  the invert field value.\n     */\n    public boolean isInvert()\n    {\n        return invert.isSet(field_4_formatFlags);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a AreaFormat record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_foregroundColor         = LittleEndian.getInt(data, 0x0 + offset);\n        field_2_backgroundColor         = LittleEndian.getInt(data, 0x4 + offset);\n        field_3_pattern                 = LittleEndian.getShort(data, 0x8 + offset);\n        field_4_formatFlags             = LittleEndian.getShort(data, 0xa + offset);\n        field_5_forecolorIndex          = LittleEndian.getShort(data, 0xc + offset);\n        field_6_backcolorIndex          = LittleEndian.getShort(data, 0xe + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [18, 24], [19, 25], [20, 26], [21, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 18], [25, 19], [26, 20], [27, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AreaFormat]\\n\");\n\n        buffer.append(\"    .foregroundColor      = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getForegroundColor()))\n            .append(\" (\").append(getForegroundColor()).append(\" )\\n\");\n\n        buffer.append(\"    .backgroundColor      = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getBackgroundColor()))\n            .append(\" (\").append(getBackgroundColor()).append(\" )\\n\");\n\n        buffer.append(\"    .pattern              = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getPattern()))\n            .append(\" (\").append(getPattern()).append(\" )\\n\");\n\n        buffer.append(\"    .formatFlags          = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getFormatFlags()))\n            .append(\" (\").append(getFormatFlags()).append(\" )\\n\");\n        buffer.append(\"         .automatic                = \").append(isAutomatic           ()).append('\\n');\n        buffer.append(\"         .invert                   = \").append(isInvert              ()).append('\\n');\n\n        buffer.append(\"    .forecolorIndex       = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getForecolorIndex()))\n            .append(\" (\").append(getForecolorIndex()).append(\" )\\n\");\n\n        buffer.append(\"    .backcolorIndex       = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getBackcolorIndex()))\n            .append(\" (\").append(getBackcolorIndex()).append(\" )\\n\");\n\n        buffer.append(\"[/AreaFormat]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [4, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [7, 27], [7, 28], [7, 29], [8, 30], [8, 31], [8, 32], [9, 33], [9, 34], [9, 35], [9, 36], [9, 37], [9, 38], [10, 39], [10, 40], [10, 41], [10, 42], [10, 43], [10, 44], [11, 45], [11, 46], [11, 47], [11, 48], [11, 49], [11, 50], [12, 51], [12, 52], [12, 53], [12, 54], [12, 55], [12, 56], [13, 57], [2, 58], [16, 59], [17, 60], [18, 61], [19, 62], [20, 63], [22, 64], [23, 65], [24, 66], [25, 67], [26, 68], [28, 69], [29, 70], [31, 71], [32, 72], [34, 73], [35, 74], [36, 75], [37, 76], [38, 77], [40, 78], [41, 79], [42, 80], [43, 81], [44, 82], [46, 83], [47, 84], [48, 85], [49, 86], [50, 87], [52, 88], [53, 89], [54, 90], [55, 91], [56, 92], [62, 93], [67, 94], [76, 95], [81, 96], [86, 97], [91, 98], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 4], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 6], [23, 6], [24, 6], [25, 6], [26, 6], [27, 7], [28, 7], [29, 7], [30, 8], [31, 8], [32, 8], [33, 9], [34, 9], [35, 9], [36, 9], [37, 9], [38, 9], [39, 10], [40, 10], [41, 10], [42, 10], [43, 10], [44, 10], [45, 11], [46, 11], [47, 11], [48, 11], [49, 11], [50, 11], [51, 12], [52, 12], [53, 12], [54, 12], [55, 12], [56, 12], [57, 13], [58, 2], [59, 16], [60, 17], [61, 18], [62, 19], [63, 20], [64, 22], [65, 23], [66, 24], [67, 25], [68, 26], [69, 28], [70, 29], [71, 31], [72, 32], [73, 34], [74, 35], [75, 36], [76, 37], [77, 38], [78, 40], [79, 41], [80, 42], [81, 43], [82, 44], [83, 46], [84, 47], [85, 48], [86, 49], [87, 50], [88, 52], [89, 53], [90, 54], [91, 55], [92, 56], [93, 62], [94, 67], [95, 76], [96, 81], [97, 86], [98, 91], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset, field_1_foregroundColor);\n        LittleEndian.putInt(data, 8 + offset, field_2_backgroundColor);\n        LittleEndian.putShort(data, 12 + offset, field_3_pattern);\n        LittleEndian.putShort(data, 14 + offset, field_4_formatFlags);\n        LittleEndian.putShort(data, 16 + offset, field_5_forecolorIndex);\n        LittleEndian.putShort(data, 18 + offset, field_6_backcolorIndex);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [5, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [18, 26], [11, 27], [19, 28], [20, 29], [27, 30], [27, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 5], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 18], [27, 11], [28, 19], [29, 20], [30, 27], [31, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4 + 4 + 4 + 2 + 2 + 2 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getForegroundColor", "code": "    public int getForegroundColor()\n    {\n        return field_1_foregroundColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setForegroundColor", "code": "    public void setForegroundColor(int field_1_foregroundColor)\n    {\n        this.field_1_foregroundColor = field_1_foregroundColor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBackgroundColor", "code": "    public int getBackgroundColor()\n    {\n        return field_2_backgroundColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBackgroundColor", "code": "    public void setBackgroundColor(int field_2_backgroundColor)\n    {\n        this.field_2_backgroundColor = field_2_backgroundColor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPattern", "code": "    public short getPattern()\n    {\n        return field_3_pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPattern", "code": "    public void setPattern(short field_3_pattern)\n    {\n        this.field_3_pattern = field_3_pattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFormatFlags", "code": "    public short getFormatFlags()\n    {\n        return field_4_formatFlags;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFormatFlags", "code": "    public void setFormatFlags(short field_4_formatFlags)\n    {\n        this.field_4_formatFlags = field_4_formatFlags;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getForecolorIndex", "code": "    public short getForecolorIndex()\n    {\n        return field_5_forecolorIndex;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setForecolorIndex", "code": "    public void setForecolorIndex(short field_5_forecolorIndex)\n    {\n        this.field_5_forecolorIndex = field_5_forecolorIndex;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBackcolorIndex", "code": "    public short getBackcolorIndex()\n    {\n        return field_6_backcolorIndex;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBackcolorIndex", "code": "    public void setBackcolorIndex(short field_6_backcolorIndex)\n    {\n        this.field_6_backcolorIndex = field_6_backcolorIndex;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutomatic", "code": "    public void setAutomatic(boolean value)\n    {\n        field_4_formatFlags = automatic.setShortBoolean(field_4_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutomatic", "code": "    public boolean isAutomatic()\n    {\n        return automatic.isSet(field_4_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setInvert", "code": "    public void setInvert(boolean value)\n    {\n        field_4_formatFlags = invert.setShortBoolean(field_4_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isInvert", "code": "    public boolean isInvert()\n    {\n        return invert.isSet(field_4_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AreaFormatRecord", "code": "    public AreaFormatRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AreaFormatRecord", "code": "    public AreaFormatRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AreaFormatRecord", "code": "    public AreaFormatRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.6-2620", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/view/XmlGraphGenerator.java", "language": "java", "name": "org.apache.camel.view.XmlGraphGenerator", "code": "public class XmlGraphGenerator extends GraphGeneratorSupport {\n    private boolean addUrl = true;\n\n    public XmlGraphGenerator(String dir) {\n        super(dir, \".xml\");\n    }\n\n    protected void generateFile(PrintWriter writer, Map<String, List<RouteType>> map) {\n        writer.println(\"<?xml version='1.0' encoding='UTF-8'?>\");\n        writer.println(\"<Graph>\");\n        writer.println();\n\n        if (map.size() > 0) {\n            writer.println(\"<Node id='root' name='Camel Routes' description='Collection of Camel Routes' nodeType='root'/>\");\n        }\n        printRoutes(writer, map);\n\n        writer.println();\n        writer.println(\"</Graph>\");\n    }\n\n    protected void printRoutes(PrintWriter writer, Map<String, List<RouteType>> map) {\n        Set<Map.Entry<String, List<RouteType>>> entries = map.entrySet();\n        for (Map.Entry<String, List<RouteType>> entry : entries) {\n            String group = entry.getKey();\n            printRoutes(writer, group, entry.getValue());\n        }\n    }\n\n    protected void printRoutes(PrintWriter writer, String group, List<RouteType> routes) {\n        group = encode(group);\n        if (group != null) {\n            int idx = group.lastIndexOf('.');\n            String name = group;\n            if (idx > 0 && idx < group.length() - 1) {\n                name = group.substring(idx + 1);\n            }\n            writer.println(\"<Node id='\" + group + \"' name='\" + name + \"' description='\" + group + \"' nodeType='group'/>\");\n            writer.println(\"<Edge fromID='root' toID='\" + group + \"'/>\");\n        }\n        for (RouteType route : routes) {\n            List<FromType> inputs = route.getInputs();\n            boolean first = true;\n            for (FromType input : inputs) {\n                NodeData nodeData = getNodeData(input);\n                if (first) {\n                    first = false;\n                    if (group != null) {\n                        writer.println(\"<Edge fromID='\" + group + \"' toID='\" + encode(nodeData.id) + \"'/>\");\n                    }\n                }\n                printRoute(writer, route, nodeData);\n            }\n            writer.println();\n        }\n    }\n\n    protected void printRoute(PrintWriter writer, final RouteType route, NodeData nodeData) {\n        printNode(writer, nodeData);\n\n\n        NodeData from = nodeData;\n        for (ProcessorType output : route.getOutputs()) {\n            NodeData newData = printNode(writer, from, output);\n            from = newData;\n        }\n    }\n\n    protected NodeData printNode(PrintWriter writer, NodeData fromData, ProcessorType node) {\n        if (node instanceof MulticastType) {\n            List<ProcessorType> outputs = node.getOutputs();\n            for (ProcessorType output : outputs) {\n                printNode(writer, fromData, output);\n            }\n            return fromData;\n        }\n        NodeData toData = getNodeData(node);\n\n        printNode(writer, toData);\n\n        if (fromData != null) {\n            writer.print(\"<Edge fromID=\\\"\");\n            writer.print(encode(fromData.id));\n            writer.print(\"\\\" toID=\\\"\");\n            writer.print(encode(toData.id));\n            String association = toData.edgeLabel;\n            if (isNullOrBlank(association)) {\n                writer.print(\"\\\" association=\\\"\");\n                writer.print(encode(association));\n            }\n            writer.println(\"\\\"/>\");\n        }\n\n        List<ProcessorType> outputs = toData.outputs;\n        if (outputs != null) {\n            for (ProcessorType output : outputs) {\n                NodeData newData = printNode(writer, toData, output);\n                if (!isMulticastNode(node)) {\n                    toData = newData;\n                }\n            }\n        }\n        return toData;\n    }\n\n    protected void printNode(PrintWriter writer, NodeData data) {\n        if (!data.nodeWritten) {\n            data.nodeWritten = true;\n\n            writer.println();\n            writer.print(\"<Node id=\\\"\");\n            writer.print(encode(data.id));\n            writer.print(\"\\\" name=\\\"\");\n            String name = data.label;\n            if (isNullOrBlank(name)) {\n                name = data.tooltop;\n            }\n            writer.print(encode(name));\n            writer.print(\"\\\" nodeType=\\\"\");\n            String nodeType = data.image;\n            if (isNullOrBlank(nodeType)) {\n                nodeType = data.shape;\n                if (isNullOrBlank(nodeType)) {\n                    nodeType = \"node\";\n                }\n            }\n            writer.print(encode(nodeType));\n            writer.print(\"\\\" description=\\\"\");\n            writer.print(encode(data.tooltop));\n            if (addUrl) {\n                writer.print(\"\\\" url=\\\"\");\n                writer.print(encode(data.url));\n            }\n            writer.println(\"\\\"/>\");\n        }\n    }\n\n    protected String encode(String text) {\n        if (text == null) {\n            return \"\";\n        }\n        return text.replaceAll(\"\\\"\", \"&quot;\").replaceAll(\"<\", \"&lt;\").\n                replaceAll(\">\", \"&gt;\").replaceAll(\"&\", \"&amp;\");", "functions": [{"function_name": "generateFile", "code": "    protected void generateFile(PrintWriter writer, Map<String, List<RouteType>> map) {\n        writer.println(\"<?xml version='1.0' encoding='UTF-8'?>\");\n        writer.println(\"<Graph>\");\n        writer.println();\n\n        if (map.size() > 0) {\n            writer.println(\"<Node id='root' name='Camel Routes' description='Collection of Camel Routes' nodeType='root'/>\");\n        }\n        printRoutes(writer, map);\n\n        writer.println();\n        writer.println(\"</Graph>\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [4, 11], [7, 12], [7, 13], [9, 14], [10, 15], [1, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 4], [12, 7], [13, 7], [14, 9], [15, 10], [16, 1], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "printRoutes", "code": "    protected void printRoutes(PrintWriter writer, Map<String, List<RouteType>> map) {\n        Set<Map.Entry<String, List<RouteType>>> entries = map.entrySet();\n        for (Map.Entry<String, List<RouteType>> entry : entries) {\n            String group = entry.getKey();\n            printRoutes(writer, group, entry.getValue());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [7, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 7], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "printRoutes", "code": "    protected void printRoutes(PrintWriter writer, String group, List<RouteType> routes) {\n        group = encode(group);\n        if (group != null) {\n            int idx = group.lastIndexOf('.');\n            String name = group;\n            if (idx > 0 && idx < group.length() - 1) {\n                name = group.substring(idx + 1);\n            }\n            writer.println(\"<Node id='\" + group + \"' name='\" + name + \"' description='\" + group + \"' nodeType='group'/>\");\n            writer.println(\"<Edge fromID='root' toID='\" + group + \"'/>\");\n        }\n        for (RouteType route : routes) {\n            List<FromType> inputs = route.getInputs();\n            boolean first = true;\n            for (FromType input : inputs) {\n                NodeData nodeData = getNodeData(input);\n                if (first) {\n                    first = false;\n                    if (group != null) {\n                        writer.println(\"<Edge fromID='\" + group + \"' toID='\" + encode(nodeData.id) + \"'/>\");\n                    }\n                }\n                printRoute(writer, route, nodeData);\n            }\n            writer.println();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [2, 12], [2, 13], [6, 14], [7, 15], [1, 16], [2, 17], [2, 18], [11, 19], [8, 20], [8, 21], [9, 22], [10, 23], [17, 24], [18, 25], [19, 26], [19, 27], [13, 28], [8, 29], [24, 30], [24, 31], [25, 32], [25, 33], [11, 34], [26, 35], [27, 36], [28, 37], [20, 38], [21, 39], [31, 40], [33, 41], [34, 42], [35, 43], [35, 44], [38, 45], [20, 46], [41, 47], [41, 48], [42, 49], [45, 50], [46, 51], [48, 52], [49, 53], [38, 54], [52, 55], [52, 56], [54, 57], [56, 58], [57, 59], [57, 60], [60, 61], [60, 62], [62, 63], [62, 64], [64, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 2], [13, 2], [14, 6], [15, 7], [16, 1], [17, 2], [18, 2], [19, 11], [20, 8], [21, 8], [22, 9], [23, 10], [24, 17], [25, 18], [26, 19], [27, 19], [28, 13], [29, 8], [30, 24], [31, 24], [32, 25], [33, 25], [34, 11], [35, 26], [36, 27], [37, 28], [38, 20], [39, 21], [40, 31], [41, 33], [42, 34], [43, 35], [44, 35], [45, 38], [46, 20], [47, 41], [48, 41], [49, 42], [50, 45], [51, 46], [52, 48], [53, 49], [54, 38], [55, 52], [56, 52], [57, 54], [58, 56], [59, 57], [60, 57], [61, 60], [62, 60], [63, 62], [64, 62], [65, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "printRoute", "code": "    protected void printRoute(PrintWriter writer, final RouteType route, NodeData nodeData) {\n        printNode(writer, nodeData);\n\n\n        NodeData from = nodeData;\n        for (ProcessorType output : route.getOutputs()) {\n            NodeData newData = printNode(writer, from, output);\n            from = newData;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "printNode", "code": "    protected NodeData printNode(PrintWriter writer, NodeData fromData, ProcessorType node) {\n        if (node instanceof MulticastType) {\n            List<ProcessorType> outputs = node.getOutputs();\n            for (ProcessorType output : outputs) {\n                printNode(writer, fromData, output);\n            }\n            return fromData;\n        }\n        NodeData toData = getNodeData(node);\n\n        printNode(writer, toData);\n\n        if (fromData != null) {\n            writer.print(\"<Edge fromID=\\\"\");\n            writer.print(encode(fromData.id));\n            writer.print(\"\\\" toID=\\\"\");\n            writer.print(encode(toData.id));\n            String association = toData.edgeLabel;\n            if (isNullOrBlank(association)) {\n                writer.print(\"\\\" association=\\\"\");\n                writer.print(encode(association));\n            }\n            writer.println(\"\\\"/>\");\n        }\n\n        List<ProcessorType> outputs = toData.outputs;\n        if (outputs != null) {\n            for (ProcessorType output : outputs) {\n                NodeData newData = printNode(writer, toData, output);\n                if (!isMulticastNode(node)) {\n                    toData = newData;\n                }\n            }\n        }\n        return toData;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [4, 11], [0, 12], [6, 13], [2, 14], [10, 15], [4, 16], [4, 17], [11, 18], [5, 19], [6, 20], [6, 21], [6, 22], [4, 23], [16, 24], [4, 25], [4, 26], [4, 27], [4, 28], [14, 29], [14, 30], [23, 31], [25, 32], [26, 33], [27, 34], [28, 35], [22, 36], [29, 37], [16, 38], [16, 39], [21, 40], [30, 41], [38, 42], [39, 43], [29, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 4], [12, 0], [13, 6], [14, 2], [15, 10], [16, 4], [17, 4], [18, 11], [19, 5], [20, 6], [21, 6], [22, 6], [23, 4], [24, 16], [25, 4], [26, 4], [27, 4], [28, 4], [29, 14], [30, 14], [31, 23], [32, 25], [33, 26], [34, 27], [35, 28], [36, 22], [37, 29], [38, 16], [39, 16], [40, 21], [41, 30], [42, 38], [43, 39], [44, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "printNode", "code": "    protected void printNode(PrintWriter writer, NodeData data) {\n        if (!data.nodeWritten) {\n            data.nodeWritten = true;\n\n            writer.println();\n            writer.print(\"<Node id=\\\"\");\n            writer.print(encode(data.id));\n            writer.print(\"\\\" name=\\\"\");\n            String name = data.label;\n            if (isNullOrBlank(name)) {\n                name = data.tooltop;\n            }\n            writer.print(encode(name));\n            writer.print(\"\\\" nodeType=\\\"\");\n            String nodeType = data.image;\n            if (isNullOrBlank(nodeType)) {\n                nodeType = data.shape;\n                if (isNullOrBlank(nodeType)) {\n                    nodeType = \"node\";\n                }\n            }\n            writer.print(encode(nodeType));\n            writer.print(\"\\\" description=\\\"\");\n            writer.print(encode(data.tooltop));\n            if (addUrl) {\n                writer.print(\"\\\" url=\\\"\");\n                writer.print(encode(data.url));\n            }\n            writer.println(\"\\\"/>\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [1, 14], [1, 15], [7, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [9, 22], [10, 23], [11, 24], [12, 25], [5, 26], [14, 27], [15, 28], [17, 29], [18, 30], [19, 31], [21, 32], [4, 33], [4, 34], [26, 35], [5, 36], [7, 37], [33, 38], [34, 39], [26, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 1], [15, 1], [16, 7], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 9], [23, 10], [24, 11], [25, 12], [26, 5], [27, 14], [28, 15], [29, 17], [30, 18], [31, 19], [32, 21], [33, 4], [34, 4], [35, 26], [36, 5], [37, 7], [38, 33], [39, 34], [40, 26], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "encode", "code": "    protected String encode(String text) {\n        if (text == null) {\n            return \"\";\n        }\n        return text.replaceAll(\"\\\"\", \"&quot;\").replaceAll(\"<\", \"&lt;\").\n                replaceAll(\">\", \"&gt;\").replaceAll(\"&\", \"&amp;\");", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [2, 11], [5, 12], [8, 13], [8, 14], [9, 15], [9, 16], [10, 17], [10, 18], [11, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 2], [12, 5], [13, 8], [14, 8], [15, 9], [16, 9], [17, 10], [18, 10], [19, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "XmlGraphGenerator", "code": "    public XmlGraphGenerator(String dir) {\n        super(dir, \".xml\");", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6082", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/MemAreaPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.MemAreaPtg", "code": "public class MemAreaPtg\n    extends Ptg\n{\n    public final static short sid  = 0x26;\n    private final static int  SIZE = 7;\n    private int               field_1_reserved;\n    private short             field_2_subex_len;\n\n    /** Creates new MemAreaPtg */\n\n    public MemAreaPtg()\n    {\n    }\n\n    public MemAreaPtg(RecordInputStream in)\n    {\n        field_1_reserved  = in.readInt();\n        field_2_subex_len = in.readShort();\n    }\n\n    public void setReserved(int res)\n    {\n        field_1_reserved = res;\n    }\n\n    public int getReserved()\n    {\n        return field_1_reserved;\n    }\n\n    public void setSubexpressionLength(short subexlen)\n    {\n        field_2_subex_len = subexlen;\n    }\n\n    public short getSubexpressionLength()\n    {\n        return field_2_subex_len;\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n        array[offset] = (byte) (sid + ptgClass);\n        LittleEndian.putInt(array, offset + 1, field_1_reserved);\n        LittleEndian.putShort(array, offset + 5, field_2_subex_len);\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public String toFormulaString(Workbook book)\n    {\n    }\n\n    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}\n\n    public Object clone() {\n      MemAreaPtg ptg = new MemAreaPtg();\n      ptg.field_1_reserved = field_1_reserved;\n      ptg.field_2_subex_len = field_2_subex_len;\n      return ptg;", "functions": [{"function_name": "setReserved", "code": "    public void setReserved(int res)\n    {\n        field_1_reserved = res;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReserved", "code": "    public int getReserved()\n    {\n        return field_1_reserved;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSubexpressionLength", "code": "    public void setSubexpressionLength(short subexlen)\n    {\n        field_2_subex_len = subexlen;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSubexpressionLength", "code": "    public short getSubexpressionLength()\n    {\n        return field_2_subex_len;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[offset] = (byte) (sid + ptgClass);\n        LittleEndian.putInt(array, offset + 1, field_1_reserved);\n        LittleEndian.putShort(array, offset + 5, field_2_subex_len);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [6, 8], [7, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 6], [9, 7], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      MemAreaPtg ptg = new MemAreaPtg();\n      ptg.field_1_reserved = field_1_reserved;\n      ptg.field_2_subex_len = field_2_subex_len;\n      return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "MemAreaPtg", "code": "    public MemAreaPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "MemAreaPtg", "code": "    public MemAreaPtg(RecordInputStream in)\n    {\n        field_1_reserved  = in.readInt();\n        field_2_subex_len = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "ant-1.4-116", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/JikesOutputParser.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.JikesOutputParser", "code": "public class JikesOutputParser implements ExecuteStreamHandler {\n    protected Task task;\n    protected int errors,warnings;\n    protected boolean error = false;\n    protected boolean emacsMode;\n    \n    protected BufferedReader br;\n\n    /**\n     * Ignore.\n     */\n    public void setProcessInputStream(OutputStream os) {}\n\n    /**\n     * Ignore.\n     */\n    public void setProcessErrorStream(InputStream is) {}\n\n    /**\n     * Set the inputstream\n     */\n    public void setProcessOutputStream(InputStream is) throws IOException {\n        br = new BufferedReader(new InputStreamReader(is));\n    }\n\n    /**\n     * Invokes parseOutput.\n     */\n    public void start() throws IOException {\n        parseOutput(br);\n    }\n\n    /**\n     * Ignore.\n     */\n    public void stop() {}\n\n    /**\n     * Construct a new Parser object\n     * @param task - task in whichs context we are called\n     */\n    protected JikesOutputParser(Task task, boolean emacsMode) {\n        super();\n        this.task = task;\n        this.emacsMode = emacsMode;\n    }\n\n    /**\n     * Parse the output of a jikes compiler\n     * @param reader - Reader used to read jikes's output\n     */\n    protected void parseOutput(BufferedReader reader) throws IOException {\n       if (emacsMode)\n           parseEmacsOutput(reader);\n       else\n           parseStandardOutput(reader);\n    }\n\n    private void parseStandardOutput(BufferedReader reader) throws IOException {\n        String line;\n        String lower;\n        \n\n        while ((line = reader.readLine()) != null) {\n            lower = line.toLowerCase();\n            if (line.trim().equals(\"\"))\n                continue;\n            if (lower.indexOf(\"error\") != -1)\n                setError(true);\n            else if (lower.indexOf(\"warning\") != -1)\n                setError(false);\n            else {\n                if (emacsMode)\n                    setError(true);\n            }\n            log(line);\n        }\n    }\n\n    private void parseEmacsOutput(BufferedReader reader) throws IOException {\n       parseStandardOutput(reader);\n    }\n\n    private void setError(boolean err) {\n        error = err;\n        if(error)\n            errorFlag = true;\n    }\n\n    private void log(String line) {\n       if (!emacsMode) {\n           task.log(\"\", (error ? Project.MSG_ERR : Project.MSG_WARN));\n       }\n       task.log(line, (error ? Project.MSG_ERR : Project.MSG_WARN));\n    }\n\n    /**\n     * Indicate if there were errors during the compile\n     * @return if errors ocured\n     */\n    protected boolean getErrorFlag() {\n        return errorFlag;", "functions": [{"function_name": "setProcessInputStream", "code": "    public void setProcessInputStream(OutputStream os) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessErrorStream", "code": "    public void setProcessErrorStream(InputStream is) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessOutputStream", "code": "    public void setProcessOutputStream(InputStream is) throws IOException {\n        br = new BufferedReader(new InputStreamReader(is));", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "start", "code": "    public void start() throws IOException {\n        parseOutput(br);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "stop", "code": "    public void stop() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "parseOutput", "code": "    protected void parseOutput(BufferedReader reader) throws IOException {\n       if (emacsMode)\n           parseEmacsOutput(reader);\n       else\n           parseStandardOutput(reader);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parseStandardOutput", "code": "    private void parseStandardOutput(BufferedReader reader) throws IOException {\n        String line;\n        String lower;\n        \n\n        while ((line = reader.readLine()) != null) {\n            lower = line.toLowerCase();\n            if (line.trim().equals(\"\"))\n                continue;\n            if (lower.indexOf(\"error\") != -1)\n                setError(true);\n            else if (lower.indexOf(\"warning\") != -1)\n                setError(false);\n            else {\n                if (emacsMode)\n                    setError(true);\n            }\n            log(line);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "IF", "BINARY_OP", "BREAK_CONTINUE", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [1, 10], [6, 11], [6, 12], [7, 13], [7, 14], [1, 15], [9, 16], [11, 17], [6, 18], [12, 19], [12, 20], [14, 21], [15, 22], [11, 23], [11, 24], [17, 25], [17, 26], [18, 27], [20, 28], [21, 29], [24, 30], [26, 31], [23, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 1], [11, 6], [12, 6], [13, 7], [14, 7], [15, 1], [16, 9], [17, 11], [18, 6], [19, 12], [20, 12], [21, 14], [22, 15], [23, 11], [24, 11], [25, 17], [26, 17], [27, 18], [28, 20], [29, 21], [30, 24], [31, 26], [32, 23], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "parseEmacsOutput", "code": "    private void parseEmacsOutput(BufferedReader reader) throws IOException {\n       parseStandardOutput(reader);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setError", "code": "    private void setError(boolean err) {\n        error = err;\n        if(error)\n            errorFlag = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "log", "code": "    private void log(String line) {\n       if (!emacsMode) {\n           task.log(\"\", (error ? Project.MSG_ERR : Project.MSG_WARN));\n       }\n       task.log(line, (error ? Project.MSG_ERR : Project.MSG_WARN));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getErrorFlag", "code": "    protected boolean getErrorFlag() {\n        return errorFlag;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "JikesOutputParser", "code": "    protected JikesOutputParser(Task task, boolean emacsMode) {\n        super();\n        this.task = task;\n        this.emacsMode = emacsMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ivy-2.0-3384", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/namespace/Namespace.java", "language": "java", "name": "org.apache.ivy.plugins.namespace.Namespace", "code": "public class Namespace {\n    public static final Namespace SYSTEM_NAMESPACE;\n    static {\n        SYSTEM_NAMESPACE = new Namespace();\n    }\n\n    private List rules = new ArrayList();\n\n    private String name;\n\n    private boolean chainRules = false;\n\n    private NamespaceTransformer fromSystemTransformer = new NamespaceTransformer() {\n        public ModuleRevisionId transform(ModuleRevisionId mrid) {\n            if (mrid == null) {\n                return null;\n            }\n            for (Iterator iter = rules.iterator(); iter.hasNext();) {\n                NamespaceRule rule = (NamespaceRule) iter.next();\n                ModuleRevisionId nmrid = rule.getFromSystem().transform(mrid);\n                if (chainRules) {\n                    mrid = nmrid;\n                } else if (!nmrid.equals(mrid)) {\n                    return nmrid;\n                }\n            }\n            return mrid;\n        }\n\n        public boolean isIdentity() {\n            return rules.isEmpty();\n        }\n    };\n\n    private NamespaceTransformer toSystemTransformer = new NamespaceTransformer() {\n        public ModuleRevisionId transform(ModuleRevisionId mrid) {\n            if (mrid == null) {\n                return null;\n            }\n            for (Iterator iter = rules.iterator(); iter.hasNext();) {\n                NamespaceRule rule = (NamespaceRule) iter.next();\n                ModuleRevisionId nmrid = rule.getToSystem().transform(mrid);\n                if (chainRules) {\n                    mrid = nmrid;\n                } else if (!nmrid.equals(mrid)) {\n                    return nmrid;\n                }\n            }\n            return mrid;\n        }\n\n        public boolean isIdentity() {\n            return rules.isEmpty();\n        }\n    };\n\n    public void addRule(NamespaceRule rule) {\n        rules.add(rule);\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public NamespaceTransformer getFromSystemTransformer() {\n        return fromSystemTransformer;\n    }\n\n    public NamespaceTransformer getToSystemTransformer() {\n        return toSystemTransformer;\n    }\n\n    public boolean isChainrules() {\n        return chainRules;\n    }\n\n    public void setChainrules(boolean chainRules) {\n        this.chainRules = chainRules;", "functions": [{"function_name": "addRule", "code": "    public void addRule(NamespaceRule rule) {\n        rules.add(rule);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFromSystemTransformer", "code": "    public NamespaceTransformer getFromSystemTransformer() {\n        return fromSystemTransformer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getToSystemTransformer", "code": "    public NamespaceTransformer getToSystemTransformer() {\n        return toSystemTransformer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isChainrules", "code": "    public boolean isChainrules() {\n        return chainRules;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setChainrules", "code": "    public void setChainrules(boolean chainRules) {\n        this.chainRules = chainRules;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.6-638", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/Environment.java", "language": "java", "name": "org.apache.tools.ant.types.Environment", "code": "public class Environment {\n\n    /**\n     * a vector of type Enviromment.Variable\n     * @see Variable\n     */\n    protected Vector variables;\n\n    /**\n     * representation of a single env value\n     */\n    public static class Variable {\n\n        /**\n         * env key and value pair; everything gets expanded to a string\n         * during assignment\n         */\n        private String key, value;\n\n        /**\n         * Constructor for variable\n         *\n         */\n        public Variable() {\n            super();\n        }\n\n        /**\n         * set the key\n         * @param key string\n         */\n        public void setKey(String key) {\n            this.key = key;\n        }\n\n        /**\n         * set the value\n         * @param value string value\n         */\n        public void setValue(String value) {\n            this.value = value;\n        }\n\n        /**\n         * key accessor\n         * @return key\n         */\n        public String getKey() {\n            return this.key;\n        }\n\n        /**\n         * value accessor\n         * @return value\n         */\n        public String getValue() {\n            return this.value;\n        }\n\n        /**\n         * stringify path and assign to the value.\n         * The value will contain all path elements separated by the appropriate\n         * separator\n         * @param path path\n         */\n        public void setPath(Path path) {\n            this.value = path.toString();\n        }\n\n        /**\n         * get the absolute path of a file and assign it to the value\n         * @param file file to use as the value\n         */\n        public void setFile(java.io.File file) {\n            this.value = file.getAbsolutePath();\n        }\n\n        /**\n         * get the assigment string\n         * This is not ready for insertion into a property file without following\n         * the escaping rules of the properties class.\n         * @return a string of the form key=value.\n         * @throws BuildException if key or value are unassigned\n         */\n        public String getContent() throws BuildException {\n            validate();\n            StringBuffer sb = new StringBuffer(key.trim());\n            sb.append(\"=\").append(value.trim());\n            return sb.toString();\n        }\n\n        /**\n         * checks whether all required attributes have been specified.\n         * @throws BuildException if key or value are unassigned\n         */\n        public void validate() {\n            if (key == null || value == null) {\n                throw new BuildException(\"key and value must be specified \"\n                    + \"for environment variables.\");\n            }\n        }\n    }\n\n    /**\n     * constructor\n     */\n    public Environment() {\n        variables = new Vector();\n    }\n\n    /**\n     * add a variable.\n     * Validity checking is <i>not</i> performed at this point. Duplicates\n     * are not caught either.\n     * @param var new variable.\n     */\n    public void addVariable(Variable var) {\n        variables.addElement(var);\n    }\n\n    /**\n     * get the variable list as an array\n     * @return array of key=value assignment strings\n     * @throws BuildException if any variable is misconfigured\n     */\n    public String[] getVariables() throws BuildException {\n        if (variables.size() == 0) {\n            return null;\n        }\n        String[] result = new String[variables.size()];\n        for (int i = 0; i < result.length; i++) {\n            result[i] = ((Variable) variables.elementAt(i)).getContent();\n        }\n        return result;", "functions": [{"function_name": "addVariable", "code": "    public void addVariable(Variable var) {\n        variables.addElement(var);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVariables", "code": "    public String[] getVariables() throws BuildException {\n        if (variables.size() == 0) {\n            return null;\n        }\n        String[] result = new String[variables.size()];\n        for (int i = 0; i < result.length; i++) {\n            result[i] = ((Variable) variables.elementAt(i)).getContent();\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [4, 7], [6, 8], [6, 9], [2, 10], [2, 11], [3, 12], [7, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [7, 4], [8, 6], [9, 6], [10, 2], [11, 2], [12, 3], [13, 7], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "Environment", "code": "    public Environment() {\n        variables = new Vector();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.2-1776", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/jms/JmsMessage.java", "language": "java", "name": "org.apache.camel.component.jms.JmsMessage", "code": "public class JmsMessage extends DefaultMessage {\n    private static final transient Log LOG = LogFactory.getLog(JmsMessage.class);\n    private Message jmsMessage;\n\n    public JmsMessage() {\n    }\n\n    public JmsMessage(Message jmsMessage) {\n        setJmsMessage(jmsMessage);\n    }\n\n    @Override\n    public String toString() {\n        if (jmsMessage != null) {\n            return \"JmsMessage: \" + jmsMessage;\n        } else {\n            return \"JmsMessage: \" + getBody();\n        }\n    }\n\n    /**\n     * Returns the underlying JMS message\n     * \n     * @return the underlying JMS message\n     */\n    public Message getJmsMessage() {\n        return jmsMessage;\n    }\n\n    public void setJmsMessage(Message jmsMessage) {\n        this.jmsMessage = jmsMessage;\n        try {\n            String id = getDestinationAsString(jmsMessage.getJMSDestination());\n            id += getSanitizedString(jmsMessage.getJMSMessageID());\n            setMessageId(id);\n        } catch (JMSException e) {\n            LOG.error(\"Failed to get message id from message \" + jmsMessage, e);\n        }\n    }\n\n    public Object getHeader(String name) {\n        Object answer = null;\n        \n        if (jmsMessage != null && !name.startsWith(\"JMS\")) {\n            try {\n                answer = jmsMessage.getObjectProperty(name);\n            } catch (JMSException e) {\n                throw new MessagePropertyAccessException(name, e);\n            }\n        }\n        if (answer == null) {\n            answer = super.getHeader(name);\n        }\n        return answer;\n    }\n\n    @Override\n    public JmsMessage newInstance() {\n        return new JmsMessage();\n    }\n\n    @Override\n    protected Object createBody() {\n        if (jmsMessage != null && getExchange() instanceof JmsExchange) {\n            JmsExchange exchange = (JmsExchange)getExchange();\n            return exchange.getBinding().extractBodyFromJms(exchange, jmsMessage);\n        }\n        return null;\n    }\n\n    @Override\n    protected void populateInitialHeaders(Map<String, Object> map) {\n        if (jmsMessage != null) {\n            try {\n                map.put(\"JMSCorrelationID\", jmsMessage.getJMSCorrelationID());\n                map.put(\"JMSDeliveryMode\", jmsMessage.getJMSDeliveryMode());\n                map.put(\"JMSDestination\", jmsMessage.getJMSDestination());\n                map.put(\"JMSExpiration\", jmsMessage.getJMSExpiration());\n                map.put(\"JMSMessageID\", jmsMessage.getJMSMessageID());\n                map.put(\"JMSPriority\", jmsMessage.getJMSPriority());\n                map.put(\"JMSRedelivered\", jmsMessage.getJMSRedelivered());\n                map.put(\"JMSReplyTo\", jmsMessage.getJMSReplyTo());\n                map.put(\"JMSTimestamp\", jmsMessage.getJMSTimestamp());\n                map.put(\"JMSType\", jmsMessage.getJMSType());\n\n                map.put(\"JMSXGroupID\", jmsMessage.getStringProperty(\"JMSXGroupID\"));\n\n            }\n            catch (JMSException e) {\n                throw new MessageJMSPropertyAccessException(e);\n            }\n\n            Enumeration names;\n            try {\n                names = jmsMessage.getPropertyNames();\n            } catch (JMSException e) {\n                throw new MessagePropertyNamesAccessException(e);\n            }\n            while (names.hasMoreElements()) {\n                String name = names.nextElement().toString();\n                try {\n                    Object value = jmsMessage.getObjectProperty(name);\n                    map.put(name, value);\n                } catch (JMSException e) {\n                    throw new MessagePropertyAccessException(name, e);\n                }\n            }\n        }\n    }\n\n    private String getDestinationAsString(Destination destination) throws JMSException {\n        String result = \"\";\n        if (destination == null) {\n            result = \"null destination!\";\n        } else if (destination instanceof Topic) {\n            result += \"topic\" + File.separator + getSanitizedString(((Topic)destination).getTopicName());\n        } else {\n            result += \"queue\" + File.separator + getSanitizedString(((Queue)destination).getQueueName());\n        }\n        result += File.separator;\n        return result;\n    }\n\n    private String getSanitizedString(Object value) {\n        return value != null ? value.toString().replaceAll(\"[^a-zA-Z0-9\\\\.\\\\_\\\\-]\", \"_\") : \"\";", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        if (jmsMessage != null) {\n            return \"JmsMessage: \" + jmsMessage;\n        } else {\n            return \"JmsMessage: \" + getBody();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getJmsMessage", "code": "    public Message getJmsMessage() {\n        return jmsMessage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setJmsMessage", "code": "    public void setJmsMessage(Message jmsMessage) {\n        this.jmsMessage = jmsMessage;\n        try {\n            String id = getDestinationAsString(jmsMessage.getJMSDestination());\n            id += getSanitizedString(jmsMessage.getJMSMessageID());\n            setMessageId(id);\n        } catch (JMSException e) {\n            LOG.error(\"Failed to get message id from message \" + jmsMessage, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [1, 6], [1, 7], [3, 8], [7, 9], [4, 10], [8, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 1], [7, 1], [8, 3], [9, 7], [10, 4], [11, 8], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getHeader", "code": "    public Object getHeader(String name) {\n        Object answer = null;\n        \n        if (jmsMessage != null && !name.startsWith(\"JMS\")) {\n            try {\n                answer = jmsMessage.getObjectProperty(name);\n            } catch (JMSException e) {\n                throw new MessagePropertyAccessException(name, e);\n            }\n        }\n        if (answer == null) {\n            answer = super.getHeader(name);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [6, 8], [3, 9], [7, 10], [7, 11], [4, 12], [2, 13], [9, 14], [10, 15], [11, 16], [14, 17], [9, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 6], [9, 3], [10, 7], [11, 7], [12, 4], [13, 2], [14, 9], [15, 10], [16, 11], [17, 14], [18, 9], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "newInstance", "code": "    @Override\n    public JmsMessage newInstance() {\n        return new JmsMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createBody", "code": "    @Override\n    protected Object createBody() {\n        if (jmsMessage != null && getExchange() instanceof JmsExchange) {\n            JmsExchange exchange = (JmsExchange)getExchange();\n            return exchange.getBinding().extractBodyFromJms(exchange, jmsMessage);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [4, 7], [4, 8], [5, 9], [7, 10], [8, 11], [9, 12], [6, 13], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 4], [8, 4], [9, 5], [10, 7], [11, 8], [12, 9], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "populateInitialHeaders", "code": "    @Override\n    protected void populateInitialHeaders(Map<String, Object> map) {\n        if (jmsMessage != null) {\n            try {\n                map.put(\"JMSCorrelationID\", jmsMessage.getJMSCorrelationID());\n                map.put(\"JMSDeliveryMode\", jmsMessage.getJMSDeliveryMode());\n                map.put(\"JMSDestination\", jmsMessage.getJMSDestination());\n                map.put(\"JMSExpiration\", jmsMessage.getJMSExpiration());\n                map.put(\"JMSMessageID\", jmsMessage.getJMSMessageID());\n                map.put(\"JMSPriority\", jmsMessage.getJMSPriority());\n                map.put(\"JMSRedelivered\", jmsMessage.getJMSRedelivered());\n                map.put(\"JMSReplyTo\", jmsMessage.getJMSReplyTo());\n                map.put(\"JMSTimestamp\", jmsMessage.getJMSTimestamp());\n                map.put(\"JMSType\", jmsMessage.getJMSType());\n\n                map.put(\"JMSXGroupID\", jmsMessage.getStringProperty(\"JMSXGroupID\"));\n\n            }\n            catch (JMSException e) {\n                throw new MessageJMSPropertyAccessException(e);\n            }\n\n            Enumeration names;\n            try {\n                names = jmsMessage.getPropertyNames();\n            } catch (JMSException e) {\n                throw new MessagePropertyNamesAccessException(e);\n            }\n            while (names.hasMoreElements()) {\n                String name = names.nextElement().toString();\n                try {\n                    Object value = jmsMessage.getObjectProperty(name);\n                    map.put(name, value);\n                } catch (JMSException e) {\n                    throw new MessagePropertyAccessException(name, e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "TRY", "VAR_DECL", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "TRY", "VAR_DECL", "THROW_RAISE", "ASSIGN", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [4, 9], [5, 10], [7, 11], [4, 12], [4, 13], [10, 14], [5, 15], [11, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [12, 28], [12, 29], [14, 30], [15, 31], [16, 32], [17, 33], [17, 34], [18, 35], [18, 36], [19, 37], [19, 38], [20, 39], [20, 40], [21, 41], [21, 42], [22, 43], [22, 44], [23, 45], [23, 46], [24, 47], [24, 48], [25, 49], [25, 50], [26, 51], [26, 52], [27, 53], [27, 54], [28, 55], [12, 56], [13, 57], [33, 58], [55, 59], [29, 60], [57, 61], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 4], [10, 5], [11, 7], [12, 4], [13, 4], [14, 10], [15, 5], [16, 11], [17, 7], [18, 7], [19, 7], [20, 7], [21, 7], [22, 7], [23, 7], [24, 7], [25, 7], [26, 7], [27, 7], [28, 12], [29, 12], [30, 14], [31, 15], [32, 16], [33, 17], [34, 17], [35, 18], [36, 18], [37, 19], [38, 19], [39, 20], [40, 20], [41, 21], [42, 21], [43, 22], [44, 22], [45, 23], [46, 23], [47, 24], [48, 24], [49, 25], [50, 25], [51, 26], [52, 26], [53, 27], [54, 27], [55, 28], [56, 12], [57, 13], [58, 33], [59, 55], [60, 29], [61, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "getDestinationAsString", "code": "    private String getDestinationAsString(Destination destination) throws JMSException {\n        String result = \"\";\n        if (destination == null) {\n            result = \"null destination!\";\n        } else if (destination instanceof Topic) {\n            result += \"topic\" + File.separator + getSanitizedString(((Topic)destination).getTopicName());\n        } else {\n            result += \"queue\" + File.separator + getSanitizedString(((Queue)destination).getQueueName());\n        }\n        result += File.separator;\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [7, 9], [3, 10], [2, 11], [6, 12], [6, 13], [11, 14], [12, 15], [13, 16], [15, 17], [15, 18], [16, 19], [16, 20], [18, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 7], [10, 3], [11, 2], [12, 6], [13, 6], [14, 11], [15, 12], [16, 13], [17, 15], [18, 15], [19, 16], [20, 16], [21, 18], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getSanitizedString", "code": "    private String getSanitizedString(Object value) {\n        return value != null ? value.toString().replaceAll(\"[^a-zA-Z0-9\\\\.\\\\_\\\\-]\", \"_\") : \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [5, 7], [6, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 5], [8, 6], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "JmsMessage", "code": "    public JmsMessage() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "JmsMessage", "code": "    public JmsMessage(Message jmsMessage) {\n        setJmsMessage(jmsMessage);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1010", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/sound/AntSoundPlayer.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.sound.AntSoundPlayer", "code": "public class AntSoundPlayer implements LineListener, BuildListener {\n\n    private File fileSuccess = null;\n    private int loopsSuccess = 0;\n    private Long durationSuccess = null;\n\n    private File fileFail = null;\n    private int loopsFail = 0;\n    private Long durationFail = null;\n\n    /** Constructor for AntSoundPlayer. */\n    public AntSoundPlayer() {\n    }\n\n    /**\n     * @param file the location of the audio file to be played when the\n     *        build is successful\n     * @param loops the number of times the file should be played when\n     *        the build is successful\n     * @param duration the number of milliseconds the file should be\n     *        played when the build is successful\n     */\n    public void addBuildSuccessfulSound(File file, int loops, Long duration) {\n        this.fileSuccess = file;\n        this.loopsSuccess = loops;\n        this.durationSuccess = duration;\n    }\n\n\n    /**\n     * @param fileFail the location of the audio file to be played\n     *        when the build fails\n     * @param loopsFail the number of times the file should be played\n     *        when the build is fails\n     * @param durationFail the number of milliseconds the file should be\n     *        played when the build fails\n     */\n    public void addBuildFailedSound(File fileFail, int loopsFail, Long durationFail) {\n        this.fileFail = fileFail;\n        this.loopsFail = loopsFail;\n        this.durationFail = durationFail;\n    }\n\n    /**\n     * Plays the file for duration milliseconds or loops.\n     */\n    private void play(Project project, File file, int loops, Long duration) {\n\n        Clip audioClip = null;\n\n        AudioInputStream audioInputStream = null;\n\n\n        try {\n            audioInputStream = AudioSystem.getAudioInputStream(file);\n        } catch (UnsupportedAudioFileException uafe) {\n            project.log(\"Audio format is not yet supported: \"\n                + uafe.getMessage());\n        } catch (IOException ioe) {\n            ioe.printStackTrace();\n        }\n\n        if (audioInputStream != null) {\n            AudioFormat format = audioInputStream.getFormat();\n            DataLine.Info   info = new DataLine.Info(Clip.class, format,\n                                             AudioSystem.NOT_SPECIFIED);\n            try {\n                audioClip = (Clip) AudioSystem.getLine(info);\n                audioClip.addLineListener(this);\n                audioClip.open(audioInputStream);\n            } catch (LineUnavailableException e) {\n                project.log(\"The sound device is currently unavailable\");\n                return;\n            } catch (IOException e) {\n                e.printStackTrace();\n            }\n\n            if (duration != null) {\n                playClip(audioClip, duration.longValue());\n            } else {\n                playClip(audioClip, loops);\n            }\n            audioClip.drain();\n            audioClip.close();\n        } else {\n            project.log(\"Can't get data from file \" + file.getName());\n        }\n    }\n\n    private void playClip(Clip clip, int loops) {\n\n        clip.loop(loops);\n        while (clip.isRunning()) {\n        }\n    }\n\n    private void playClip(Clip clip, long duration) {\n        clip.loop(Clip.LOOP_CONTINUOUSLY);\n        try {\n            Thread.sleep(duration);\n        } catch (InterruptedException e) {\n        }\n    }\n\n    /**\n     * This is implemented to listen for any line events and closes the\n     * clip if required.\n     * @param event the line event to follow\n     */\n    public void update(LineEvent event) {\n        if (event.getType().equals(LineEvent.Type.STOP)) {\n            Line line = event.getLine();\n            line.close();\n        } else if (event.getType().equals(LineEvent.Type.CLOSE)) {\n            /*\n             *  There is a bug in JavaSound 0.90 (jdk1.3beta).\n             *  It prevents correct termination of the VM.\n             *  So we have to exit ourselves.\n             */\n        }\n    }\n\n\n    /**\n     *  Fired before any targets are started.\n     * @param event ignored\n     */\n    public void buildStarted(BuildEvent event) {\n    }\n\n    /**\n     *  Fired after the last target has finished. This event\n     *  will still be thrown if an error occurred during the build.\n     * @param event the build finished event.\n     *  @see BuildEvent#getException()\n     */\n    public void buildFinished(BuildEvent event) {\n        if (event.getException() == null && fileSuccess != null) {\n            play(event.getProject(), fileSuccess, loopsSuccess, durationSuccess);\n        } else if (event.getException() != null && fileFail != null) {\n            play(event.getProject(), fileFail, loopsFail, durationFail);\n        }\n    }\n\n    /**\n     *  Fired when a target is started.\n     * @param event ignored.\n     *  @see BuildEvent#getTarget()\n     */\n    public void targetStarted(BuildEvent event) {\n    }\n\n    /**\n     *  Fired when a target has finished. This event will\n     *  still be thrown if an error occurred during the build.\n     * @param event ignored.\n     *  @see BuildEvent#getException()\n     */\n    public void targetFinished(BuildEvent event) {\n    }\n\n    /**\n     *  Fired when a task is started.\n     * @param event ignored.\n     *  @see BuildEvent#getTask()\n     */\n    public void taskStarted(BuildEvent event) {\n    }\n\n    /**\n     *  Fired when a task has finished. This event will still\n     *  be throw if an error occurred during the build.\n     * @param event ignored.\n     *  @see BuildEvent#getException()\n     */\n    public void taskFinished(BuildEvent event) {\n    }\n\n    /**\n     *  Fired whenever a message is logged.\n     *  @param event the build event\n     *  @see BuildEvent#getMessage()\n     *  @see BuildEvent#getPriority()\n     */\n    public void messageLogged(BuildEvent event) {", "functions": [{"function_name": "addBuildSuccessfulSound", "code": "    public void addBuildSuccessfulSound(File file, int loops, Long duration) {\n        this.fileSuccess = file;\n        this.loopsSuccess = loops;\n        this.durationSuccess = duration;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addBuildFailedSound", "code": "    public void addBuildFailedSound(File fileFail, int loopsFail, Long durationFail) {\n        this.fileFail = fileFail;\n        this.loopsFail = loopsFail;\n        this.durationFail = durationFail;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "play", "code": "    private void play(Project project, File file, int loops, Long duration) {\n\n        Clip audioClip = null;\n\n        AudioInputStream audioInputStream = null;\n\n\n        try {\n            audioInputStream = AudioSystem.getAudioInputStream(file);\n        } catch (UnsupportedAudioFileException uafe) {\n            project.log(\"Audio format is not yet supported: \"\n                + uafe.getMessage());\n        } catch (IOException ioe) {\n            ioe.printStackTrace();\n        }\n\n        if (audioInputStream != null) {\n            AudioFormat format = audioInputStream.getFormat();\n            DataLine.Info   info = new DataLine.Info(Clip.class, format,\n                                             AudioSystem.NOT_SPECIFIED);\n            try {\n                audioClip = (Clip) AudioSystem.getLine(info);\n                audioClip.addLineListener(this);\n                audioClip.open(audioInputStream);\n            } catch (LineUnavailableException e) {\n                project.log(\"The sound device is currently unavailable\");\n                return;\n            } catch (IOException e) {\n                e.printStackTrace();\n            }\n\n            if (duration != null) {\n                playClip(audioClip, duration.longValue());\n            } else {\n                playClip(audioClip, loops);\n            }\n            audioClip.drain();\n            audioClip.close();\n        } else {\n            project.log(\"Can't get data from file \" + file.getName());", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "CATCH", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CATCH", "CATCH", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [1, 12], [1, 13], [1, 14], [1, 15], [9, 16], [2, 17], [3, 18], [4, 19], [1, 20], [1, 21], [1, 22], [12, 23], [13, 24], [13, 25], [10, 26], [11, 27], [17, 28], [20, 29], [23, 30], [25, 31], [13, 32], [13, 33], [13, 34], [14, 35], [15, 36], [27, 37], [29, 38], [29, 39], [12, 40], [12, 41], [24, 42], [25, 43], [37, 44], [37, 45], [41, 46], [43, 47], [34, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 1], [13, 1], [14, 1], [15, 1], [16, 9], [17, 2], [18, 3], [19, 4], [20, 1], [21, 1], [22, 1], [23, 12], [24, 13], [25, 13], [26, 10], [27, 11], [28, 17], [29, 20], [30, 23], [31, 25], [32, 13], [33, 13], [34, 13], [35, 14], [36, 15], [37, 27], [38, 29], [39, 29], [40, 12], [41, 12], [42, 24], [43, 25], [44, 37], [45, 37], [46, 41], [47, 43], [48, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "playClip", "code": "    private void playClip(Clip clip, int loops) {\n\n        clip.loop(loops);\n        while (clip.isRunning()) {", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "playClip", "code": "    private void playClip(Clip clip, long duration) {\n        clip.loop(Clip.LOOP_CONTINUOUSLY);\n        try {\n            Thread.sleep(duration);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "update", "code": "    public void update(LineEvent event) {\n        if (event.getType().equals(LineEvent.Type.STOP)) {\n            Line line = event.getLine();\n            line.close();\n        } else if (event.getType().equals(LineEvent.Type.CLOSE)) {", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [4, 7], [5, 8], [1, 9], [6, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 4], [8, 5], [9, 1], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        if (event.getException() == null && fileSuccess != null) {\n            play(event.getProject(), fileSuccess, loopsSuccess, durationSuccess);\n        } else if (event.getException() != null && fileFail != null) {\n            play(event.getProject(), fileFail, loopsFail, durationFail);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [5, 8], [5, 9], [1, 10], [6, 11], [7, 12], [7, 13], [3, 14], [8, 15], [9, 16], [9, 17], [10, 18], [14, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 5], [9, 5], [10, 1], [11, 6], [12, 7], [13, 7], [14, 3], [15, 8], [16, 9], [17, 9], [18, 10], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "AntSoundPlayer", "code": "    public AntSoundPlayer() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.5-7011", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/StringToIntTable.java", "language": "java", "name": "org.apache.xml.utils.StringToIntTable", "code": "public class StringToIntTable\n{\n\n  public static final int INVALID_KEY = -10000;\n  \n  /** Block size to allocate          */\n  private int m_blocksize;\n\n  /** Array of strings this table points to. Associated with ints\n   * in m_values         */\n  private String m_map[];\n\n  /** Array of ints this table points. Associated with strings from\n   * m_map.         */\n  private int m_values[];\n\n  /** Number of ints in the table          */\n  private int m_firstFree = 0;\n\n  /** Size of this table         */\n  private int m_mapSize;\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is very small, for small lists.\n   */\n  public StringToIntTable()\n  {\n\n    m_blocksize = 8;\n    m_mapSize = m_blocksize;\n    m_map = new String[m_blocksize];\n    m_values = new int[m_blocksize];\n  }\n\n  /**\n   * Construct a StringToIntTable, using the given block size.\n   *\n   * @param blocksize Size of block to allocate\n   */\n  public StringToIntTable(int blocksize)\n  {\n\n    m_blocksize = blocksize;\n    m_mapSize = blocksize;\n    m_map = new String[blocksize];\n    m_values = new int[m_blocksize];\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return the length of the list \n   */\n  public final int getLength()\n  {\n    return m_firstFree;\n  }\n\n  /**\n   * Append a string onto the vector.\n   *\n   * @param key String to append\n   * @param value The int value of the string\n   */\n  public final void put(String key, int value)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      String newMap[] = new String[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n\n      int newValues[] = new int[m_mapSize];\n\n      System.arraycopy(m_values, 0, newValues, 0, m_firstFree + 1);\n\n      m_values = newValues;\n    }\n\n    m_map[m_firstFree] = key;\n    m_values[m_firstFree] = value;\n\n    m_firstFree++;\n  }\n\n  /**\n   * Tell if the table contains the given string.\n   *\n   * @param key String to look for\n   *\n   * @return The String's int value\n   * \n   */\n  public final int get(String key)\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equals(key))\n        return m_values[i];\n    }\n\n\treturn INVALID_KEY;\n  }\n\n  /**\n   * Tell if the table contains the given string. Ignore case.\n   *\n   * @param key String to look for\n   *\n   * @return The string's int value\n   */\n  public final int getIgnoreCase(String key)\n  {\n\n    if (null == key)\n        return INVALID_KEY;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equalsIgnoreCase(key))\n        return m_values[i];\n    }\n\n    return INVALID_KEY;\n  }\n\n  /**\n   * Tell if the table contains the given string.\n   *\n   * @param key String to look for\n   *\n   * @return True if the string is in the table\n   */\n  public final boolean contains(String key)\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equals(key))\n        return true;\n    }\n\n    return false;\n  }\n  \n  /**\n   * Return array of keys in the table.\n   * \n   * @return Array of strings\n   */\n  public final String[] keys()\n  {\n    String [] keysArr = new String[m_firstFree];\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      keysArr[i] = m_map[i];\n    }\n\n    return keysArr;", "functions": [{"function_name": "getLength", "code": "  public final int getLength()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "put", "code": "  public final void put(String key, int value)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      String newMap[] = new String[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n\n      int newValues[] = new int[m_mapSize];\n\n      System.arraycopy(m_values, 0, newValues, 0, m_firstFree + 1);\n\n      m_values = newValues;\n    }\n\n    m_map[m_firstFree] = key;\n    m_values[m_firstFree] = value;\n\n    m_firstFree++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [9, 15], [11, 16], [11, 17], [11, 18], [13, 19], [13, 20], [13, 21], [16, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 9], [16, 11], [17, 11], [18, 11], [19, 13], [20, 13], [21, 13], [22, 16], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "get", "code": "  public final int get(String key)\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equals(key))\n        return m_values[i];\n    }\n\n\treturn INVALID_KEY;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "BINARY_OP", "IF", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [2, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [7, 2], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getIgnoreCase", "code": "  public final int getIgnoreCase(String key)\n  {\n\n    if (null == key)\n        return INVALID_KEY;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equalsIgnoreCase(key))\n        return m_values[i];\n    }\n\n    return INVALID_KEY;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [3, 7], [2, 8], [7, 9], [8, 10], [2, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 3], [8, 2], [9, 7], [10, 8], [11, 2], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "contains", "code": "  public final boolean contains(String key)\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equals(key))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [2, 8], [7, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 2], [9, 7], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "keys", "code": "  public final String[] keys()\n  {\n    String [] keysArr = new String[m_firstFree];\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      keysArr[i] = m_map[i];\n    }\n\n    return keysArr;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "StringToIntTable", "code": "  public StringToIntTable()\n  {\n\n    m_blocksize = 8;\n    m_mapSize = m_blocksize;\n    m_map = new String[m_blocksize];\n    m_values = new int[m_blocksize];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "StringToIntTable", "code": "  public StringToIntTable(int blocksize)\n  {\n\n    m_blocksize = blocksize;\n    m_mapSize = blocksize;\n    m_map = new String[blocksize];\n    m_values = new int[m_blocksize];", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "xalan-2.7-8544", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/lib/sql/ObjectArray.java", "language": "java", "name": "org.apache.xalan.lib.sql.ObjectArray", "code": "public class ObjectArray\n{\n  /**\n   */\n  private int m_minArraySize = 10;\n  /**\n   * The container of all the sub arrays\n   */\n  private Vector m_Arrays = new Vector(200);\n\n  /**\n   * An index that porvides the Vector entry for the current Array that is\n   * being appended to.\n   */\n  private _ObjectArray m_currentArray;\n\n\n  /**\n   * The next offset in the current Array to append a new object\n   */\n  private int m_nextSlot;\n\n\n  /**\n   */\n  public ObjectArray( )\n  {\n    init(10);\n  }\n\n  /**\n   * @param minArraySize The size of the Arrays stored in the Vector\n   */\n  public ObjectArray( final int minArraySize )\n  {\n    init(minArraySize);\n  }\n\n  /**\n   * @param size\n   *\n   */\n  private void init( int size )\n  {\n    m_minArraySize = size;\n    m_currentArray = new _ObjectArray(m_minArraySize);\n  }\n\n  /**\n   * @param idx Index of the Object in the Array\n   *\n   */\n  public Object getAt( final int idx )\n  {\n    int arrayIndx = idx / m_minArraySize;\n    int arrayOffset = idx - (arrayIndx * m_minArraySize);\n\n    if (arrayIndx < m_Arrays.size())\n    {\n      _ObjectArray a = (_ObjectArray)m_Arrays.elementAt(arrayIndx);\n      return a.objects[arrayOffset];\n    }\n    else\n    {\n\n      return m_currentArray.objects[arrayOffset];\n    }\n  }\n\n  /**\n   * @param idx Index of the Object in the Array\n   * @param obj , The value to set in the Array\n   *\n   */\n  public void setAt( final int idx, final Object obj )\n  {\n    int arrayIndx = idx / m_minArraySize;\n    int arrayOffset = idx - (arrayIndx * m_minArraySize);\n\n    if (arrayIndx < m_Arrays.size())\n    {\n      _ObjectArray a = (_ObjectArray)m_Arrays.elementAt(arrayIndx);\n      a.objects[arrayOffset] = obj;\n    }\n    else\n    {\n\n      m_currentArray.objects[arrayOffset] = obj;\n    }\n  }\n\n\n\n  /**\n   * @param o Object to be appended to the Array\n   *\n   */\n  public int append( Object o )\n  {\n    if (m_nextSlot >= m_minArraySize)\n    {\n      m_Arrays.addElement(m_currentArray);\n      m_nextSlot = 0;\n      m_currentArray = new _ObjectArray(m_minArraySize);\n    }\n\n    m_currentArray.objects[m_nextSlot] = o;\n\n    int pos = (m_Arrays.size() * m_minArraySize) + m_nextSlot;\n\n    m_nextSlot++;\n\n    return pos;\n  }\n\n\n  /**\n   */\n  class _ObjectArray\n  {\n    /**\n     */\n    public Object[] objects;\n    /**\n     * @param size\n     */\n    public _ObjectArray( int size )\n    {\n      objects = new Object[size];\n    }\n  }\n\n  /**\n   * @param args\n   *\n   */\n  public static void main( String[] args )\n  {\n    String[] word={\n      \"Zero\",\"One\",\"Two\",\"Three\",\"Four\",\"Five\",\n      \"Six\",\"Seven\",\"Eight\",\"Nine\",\"Ten\",\n      \"Eleven\",\"Twelve\",\"Thirteen\",\"Fourteen\",\"Fifteen\",\n      \"Sixteen\",\"Seventeen\",\"Eighteen\",\"Nineteen\",\"Twenty\",\n      \"Twenty-One\",\"Twenty-Two\",\"Twenty-Three\",\"Twenty-Four\",\n      \"Twenty-Five\",\"Twenty-Six\",\"Twenty-Seven\",\"Twenty-Eight\",\n      \"Twenty-Nine\",\"Thirty\",\"Thirty-One\",\"Thirty-Two\",\n      \"Thirty-Three\",\"Thirty-Four\",\"Thirty-Five\",\"Thirty-Six\",\n      \"Thirty-Seven\",\"Thirty-Eight\",\"Thirty-Nine\"};\n\n    ObjectArray m_ObjectArray = new ObjectArray();\n    for (int x =0; x< word.length; x++)\n    {\n      System.out.print(\" - \" + m_ObjectArray.append(word[x]));\n    }\n\n    System.out.println(\"\\n\");\n    for (int x =0; x< word.length; x++)\n    {\n      String s = (String) m_ObjectArray.getAt(x);\n      System.out.println(s);\n    }\n\n    System.out.println((String) m_ObjectArray.getAt(5));\n    System.out.println((String) m_ObjectArray.getAt(10));\n    System.out.println((String) m_ObjectArray.getAt(20));\n    System.out.println((String) m_ObjectArray.getAt(2));\n    System.out.println((String) m_ObjectArray.getAt(15));\n    System.out.println((String) m_ObjectArray.getAt(30));\n    System.out.println((String) m_ObjectArray.getAt(6));\n    System.out.println((String) m_ObjectArray.getAt(8));\n\n    System.out.println((String) m_ObjectArray.getAt(40));", "functions": [{"function_name": "init", "code": "  private void init( int size )\n  {\n    m_minArraySize = size;\n    m_currentArray = new _ObjectArray(m_minArraySize);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAt", "code": "  public Object getAt( final int idx )\n  {\n    int arrayIndx = idx / m_minArraySize;\n    int arrayOffset = idx - (arrayIndx * m_minArraySize);\n\n    if (arrayIndx < m_Arrays.size())\n    {\n      _ObjectArray a = (_ObjectArray)m_Arrays.elementAt(arrayIndx);\n      return a.objects[arrayOffset];\n    }\n    else\n    {\n\n      return m_currentArray.objects[arrayOffset];", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [2, 10], [3, 11], [10, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 2], [11, 3], [12, 10], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setAt", "code": "  public void setAt( final int idx, final Object obj )\n  {\n    int arrayIndx = idx / m_minArraySize;\n    int arrayOffset = idx - (arrayIndx * m_minArraySize);\n\n    if (arrayIndx < m_Arrays.size())\n    {\n      _ObjectArray a = (_ObjectArray)m_Arrays.elementAt(arrayIndx);\n      a.objects[arrayOffset] = obj;\n    }\n    else\n    {\n\n      m_currentArray.objects[arrayOffset] = obj;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [3, 10], [1, 11], [1, 12], [9, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 3], [11, 1], [12, 1], [13, 9], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "append", "code": "  public int append( Object o )\n  {\n    if (m_nextSlot >= m_minArraySize)\n    {\n      m_Arrays.addElement(m_currentArray);\n      m_nextSlot = 0;\n      m_currentArray = new _ObjectArray(m_minArraySize);\n    }\n\n    m_currentArray.objects[m_nextSlot] = o;\n\n    int pos = (m_Arrays.size() * m_minArraySize) + m_nextSlot;\n\n    m_nextSlot++;\n\n    return pos;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [2, 7], [7, 8], [3, 9], [3, 10], [3, 11], [8, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 2], [8, 7], [9, 3], [10, 3], [11, 3], [12, 8], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "main", "code": "  public static void main( String[] args )\n  {\n    String[] word={\n      \"Zero\",\"One\",\"Two\",\"Three\",\"Four\",\"Five\",\n      \"Six\",\"Seven\",\"Eight\",\"Nine\",\"Ten\",\n      \"Eleven\",\"Twelve\",\"Thirteen\",\"Fourteen\",\"Fifteen\",\n      \"Sixteen\",\"Seventeen\",\"Eighteen\",\"Nineteen\",\"Twenty\",\n      \"Twenty-One\",\"Twenty-Two\",\"Twenty-Three\",\"Twenty-Four\",\n      \"Twenty-Five\",\"Twenty-Six\",\"Twenty-Seven\",\"Twenty-Eight\",\n      \"Twenty-Nine\",\"Thirty\",\"Thirty-One\",\"Thirty-Two\",\n      \"Thirty-Three\",\"Thirty-Four\",\"Thirty-Five\",\"Thirty-Six\",\n      \"Thirty-Seven\",\"Thirty-Eight\",\"Thirty-Nine\"};\n\n    ObjectArray m_ObjectArray = new ObjectArray();\n    for (int x =0; x< word.length; x++)\n    {\n      System.out.print(\" - \" + m_ObjectArray.append(word[x]));\n    }\n\n    System.out.println(\"\\n\");\n    for (int x =0; x< word.length; x++)\n    {\n      String s = (String) m_ObjectArray.getAt(x);\n      System.out.println(s);\n    }\n\n    System.out.println((String) m_ObjectArray.getAt(5));\n    System.out.println((String) m_ObjectArray.getAt(10));\n    System.out.println((String) m_ObjectArray.getAt(20));\n    System.out.println((String) m_ObjectArray.getAt(2));\n    System.out.println((String) m_ObjectArray.getAt(15));\n    System.out.println((String) m_ObjectArray.getAt(30));\n    System.out.println((String) m_ObjectArray.getAt(6));\n    System.out.println((String) m_ObjectArray.getAt(8));\n\n    System.out.println((String) m_ObjectArray.getAt(40));", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [0, 16], [2, 17], [1, 18], [16, 19], [3, 20], [6, 21], [7, 22], [8, 23], [9, 24], [10, 25], [11, 26], [12, 27], [13, 28], [14, 29], [1, 30], [1, 31], [2, 32], [2, 33], [4, 34], [4, 35], [4, 36], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [4, 43], [4, 44], [4, 45], [4, 46], [4, 47], [4, 48], [4, 49], [4, 50], [4, 51], [4, 52], [4, 53], [4, 54], [4, 55], [4, 56], [4, 57], [4, 58], [4, 59], [4, 60], [4, 61], [4, 62], [4, 63], [4, 64], [4, 65], [4, 66], [4, 67], [4, 68], [4, 69], [4, 70], [4, 71], [4, 72], [4, 73], [21, 74], [22, 75], [23, 76], [24, 77], [25, 78], [26, 79], [27, 80], [28, 81], [29, 82], [32, 83], [18, 84], [83, 85], [83, 86], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 0], [17, 2], [18, 1], [19, 16], [20, 3], [21, 6], [22, 7], [23, 8], [24, 9], [25, 10], [26, 11], [27, 12], [28, 13], [29, 14], [30, 1], [31, 1], [32, 2], [33, 2], [34, 4], [35, 4], [36, 4], [37, 4], [38, 4], [39, 4], [40, 4], [41, 4], [42, 4], [43, 4], [44, 4], [45, 4], [46, 4], [47, 4], [48, 4], [49, 4], [50, 4], [51, 4], [52, 4], [53, 4], [54, 4], [55, 4], [56, 4], [57, 4], [58, 4], [59, 4], [60, 4], [61, 4], [62, 4], [63, 4], [64, 4], [65, 4], [66, 4], [67, 4], [68, 4], [69, 4], [70, 4], [71, 4], [72, 4], [73, 4], [74, 21], [75, 22], [76, 23], [77, 24], [78, 25], [79, 26], [80, 27], [81, 28], [82, 29], [83, 32], [84, 18], [85, 83], [86, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "ObjectArray", "code": "  public ObjectArray( )\n  {\n    init(10);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ObjectArray", "code": "  public ObjectArray( final int minArraySize )\n  {\n    init(minArraySize);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.3-4638", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/options/TextAreaOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.TextAreaOptionPane", "code": "public class TextAreaOptionPane extends AbstractOptionPane\n{\n\t//{{{ TextAreaOptionPane constructor\n\tpublic TextAreaOptionPane()\n\t{\n\t\tsuper(\"textarea\");\n\t} //}}}\n\n\t//{{{ _init() method\n\tpublic void _init()\n\t{\n\t\t/* Font */\n\t\tfont = new FontSelector(jEdit.getFontProperty(\"view.font\"));\n\n\t\taddComponent(jEdit.getProperty(\"options.textarea.font\"),font);\n\n\t\t/* Text color */\n\t\taddComponent(jEdit.getProperty(\"options.textarea.foreground\"),\n\t\t\tforegroundColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.fgColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Background color */\n\t\taddComponent(jEdit.getProperty(\"options.textarea.background\"),\n\t\t\tbackgroundColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.bgColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Caret color, caret blink, block caret */\n\t\tblinkCaret = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".blinkCaret\"));\n\t\tblinkCaret.setSelected(jEdit.getBooleanProperty(\"view.caretBlink\"));\n\n\t\tblockCaret = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".blockCaret\"));\n\t\tblockCaret.setSelected(jEdit.getBooleanProperty(\"view.blockCaret\"));\n\n\t\tthickCaret = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".thickCaret\"));\n\t\tthickCaret.setSelected(jEdit.getBooleanProperty(\"view.thickCaret\"));\n\n\t\tBox caretSettings = new Box(BoxLayout.X_AXIS);\n\t\tcaretSettings.add(new JLabel(jEdit.getProperty(\n\t\t\t\"options.textarea.caret\")));\n\t\tcaretSettings.add(Box.createHorizontalStrut(6));\n\t\tcaretSettings.add(blinkCaret);\n\t\tcaretSettings.add(blockCaret);\n\t\tcaretSettings.add(thickCaret);\n\n\t\taddComponent(caretSettings,caretColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.caretColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Selection color */\n\t\taddComponent(jEdit.getProperty(\"options.textarea.selection\"),\n\t\t\tselectionColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.selectionColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Multiple selection color */\n\t\taddComponent(jEdit.getProperty(\"options.textarea.multipleSelection\"),\n\t\t\tmultipleSelectionColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.multipleSelectionColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Line highlight */\n\t\tlineHighlight = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".lineHighlight\"));\n\t\tlineHighlight.setSelected(jEdit.getBooleanProperty(\"view.lineHighlight\"));\n\t\taddComponent(lineHighlight,lineHighlightColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.lineHighlightColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Structure highlight */\n\t\tstructureHighlight = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".structureHighlight\"));\n\t\tstructureHighlight.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.structureHighlight\"));\n\t\taddComponent(structureHighlight,structureHighlightColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.structureHighlightColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* EOL markers */\n\t\teolMarkers = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".eolMarkers\"));\n\t\teolMarkers.setSelected(jEdit.getBooleanProperty(\"view.eolMarkers\"));\n\t\taddComponent(eolMarkers,eolMarkerColor =new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.eolMarkerColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Wrap guide */\n\t\twrapGuide = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".wrapGuide\"));\n\t\twrapGuide.setSelected(jEdit.getBooleanProperty(\"view.wrapGuide\"));\n\t\taddComponent(wrapGuide,wrapGuideColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.wrapGuideColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Electric borders */\n\t\telectricBorders = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".electricBorders\"));\n\t\telectricBorders.setSelected(!\"0\".equals(jEdit.getProperty(\n\t\t\t\"view.electricBorders\")));\n\t\taddComponent(electricBorders);\n\n\t\t/* Anti-aliasing */\n\n\t\tantiAlias = new JComboBox(AntiAlias.comboChoices);\n\t\tantiAlias.setToolTipText(jEdit.getProperty(\"options.textarea.antiAlias.tooltip\"));\n\t\tAntiAlias antiAliasValue = new AntiAlias(jEdit.getProperty(\"view.antiAlias\"));\n\t\tfont.setAntiAliasEnabled(antiAliasValue.val()>0);\n\t\tantiAlias.addActionListener(new ActionListener()\n\t\t\t{\n\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t{\n\t\t\t\t\tint idx = antiAlias.getSelectedIndex();\n\t\t\t\t\tfont.setAntiAliasEnabled(idx > 0);\n\t\t\t\t\tfont.repaint();\n\t\t\t\t}\n\t\t\t});\n\t\tantiAlias.setSelectedIndex(antiAliasValue.val());\n\t\taddComponent(jEdit.getProperty(\"options.textarea\"+ \".antiAlias\"), antiAlias);\n\n\t\t/* Fractional font metrics */\n\t\tfracFontMetrics = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".fracFontMetrics\"));\n\t\tfracFontMetrics.setSelected(jEdit.getBooleanProperty(\"view.fracFontMetrics\"));\n\t\taddComponent(fracFontMetrics);\n\n\t\t/* Strip trailing EOL */\n\t\tstripTrailingEOL = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.textArea.stripTrailingEOL\"));\n\t\tstripTrailingEOL.setSelected(jEdit.getBooleanProperty(\"stripTrailingEOL\"));\n\t\taddComponent(stripTrailingEOL);\n\n\t\tcompleteFromAllBuffers = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.textArea.completeFromAllBuffers\"));\n\t\tcompleteFromAllBuffers.setSelected(jEdit.getBooleanProperty(\"completeFromAllBuffers\"));\n\t\taddComponent(completeFromAllBuffers);\n\n\t} //}}}\n\n\t//{{{ _save() method\n\tpublic void _save()\n\t{\n\t\tjEdit.setFontProperty(\"view.font\",font.getFont());\n\n\t\tjEdit.setColorProperty(\"view.fgColor\",foregroundColor\n\t\t\t.getSelectedColor());\n\t\tjEdit.setColorProperty(\"view.bgColor\",backgroundColor\n\t\t\t.getSelectedColor());\n\t\tjEdit.setBooleanProperty(\"view.caretBlink\",blinkCaret.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.blockCaret\",blockCaret.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.thickCaret\",thickCaret.isSelected());\n\t\tjEdit.setColorProperty(\"view.caretColor\",caretColor\n\t\t\t.getSelectedColor());\n\t\tjEdit.setColorProperty(\"view.selectionColor\",selectionColor\n\t\t\t.getSelectedColor());\n\t\tjEdit.setColorProperty(\"view.multipleSelectionColor\",multipleSelectionColor\n\t\t\t.getSelectedColor());\n\t\tjEdit.setBooleanProperty(\"view.lineHighlight\",lineHighlight\n\t\t\t.isSelected());\n\t\tjEdit.setColorProperty(\"view.lineHighlightColor\",\n\t\t\tlineHighlightColor.getSelectedColor());\n\t\tjEdit.setBooleanProperty(\"view.structureHighlight\",structureHighlight\n\t\t\t.isSelected());\n\t\tjEdit.setColorProperty(\"view.structureHighlightColor\",\n\t\t\tstructureHighlightColor.getSelectedColor());\n\t\tjEdit.setBooleanProperty(\"view.eolMarkers\",eolMarkers\n\t\t\t.isSelected());\n\t\tjEdit.setColorProperty(\"view.eolMarkerColor\",\n\t\t\teolMarkerColor.getSelectedColor());\n\t\tjEdit.setBooleanProperty(\"view.wrapGuide\",wrapGuide\n\t\t\t.isSelected());\n\t\tjEdit.setColorProperty(\"view.wrapGuideColor\",\n\t\t\twrapGuideColor.getSelectedColor());\n\t\tjEdit.setIntegerProperty(\"view.electricBorders\",electricBorders\n\t\t\t.isSelected() ? 3 : 0);\n\t\tAntiAlias nv = new AntiAlias(jEdit.getProperty(\"view.antiAlias\"));\n\t\tnv.set(antiAlias.getSelectedIndex());\n\t\tjEdit.setProperty(\"view.antiAlias\", nv.toString());\n\t\tjEdit.setBooleanProperty(\"view.fracFontMetrics\",fracFontMetrics.isSelected());\n\t\tjEdit.setBooleanProperty(\"stripTrailingEOL\", stripTrailingEOL.isSelected());\n\t\tjEdit.setBooleanProperty(\"completeFromAllBuffers\", completeFromAllBuffers.isSelected());\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate FontSelector font;\n\tprivate ColorWellButton foregroundColor;\n\tprivate ColorWellButton backgroundColor;\n\tprivate JCheckBox blinkCaret;\n\tprivate JCheckBox blockCaret;\n\tprivate JCheckBox thickCaret;\n\tprivate ColorWellButton caretColor;\n\tprivate ColorWellButton selectionColor;\n\tprivate ColorWellButton multipleSelectionColor;\n\tprivate JCheckBox lineHighlight;\n\tprivate ColorWellButton lineHighlightColor;\n\tprivate JCheckBox structureHighlight;\n\tprivate ColorWellButton structureHighlightColor;\n\tprivate JCheckBox eolMarkers;\n\tprivate ColorWellButton eolMarkerColor;\n\tprivate JCheckBox wrapGuide;\n\tprivate ColorWellButton wrapGuideColor;\n\tprivate JCheckBox electricBorders;\n\t// private JCheckBox antiAlias;\n\tprivate JComboBox antiAlias;\n\tprivate JCheckBox fracFontMetrics;\n\tprivate JCheckBox stripTrailingEOL;\n\tprivate JCheckBox completeFromAllBuffers;", "functions": [{"function_name": "_init", "code": "\tpublic void _init()\n\t{\n\t\t/* Font */\n\t\tfont = new FontSelector(jEdit.getFontProperty(\"view.font\"));\n\n\t\taddComponent(jEdit.getProperty(\"options.textarea.font\"),font);\n\n\t\t/* Text color */\n\t\taddComponent(jEdit.getProperty(\"options.textarea.foreground\"),\n\t\t\tforegroundColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.fgColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Background color */\n\t\taddComponent(jEdit.getProperty(\"options.textarea.background\"),\n\t\t\tbackgroundColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.bgColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Caret color, caret blink, block caret */\n\t\tblinkCaret = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".blinkCaret\"));\n\t\tblinkCaret.setSelected(jEdit.getBooleanProperty(\"view.caretBlink\"));\n\n\t\tblockCaret = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".blockCaret\"));\n\t\tblockCaret.setSelected(jEdit.getBooleanProperty(\"view.blockCaret\"));\n\n\t\tthickCaret = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".thickCaret\"));\n\t\tthickCaret.setSelected(jEdit.getBooleanProperty(\"view.thickCaret\"));\n\n\t\tBox caretSettings = new Box(BoxLayout.X_AXIS);\n\t\tcaretSettings.add(new JLabel(jEdit.getProperty(\n\t\t\t\"options.textarea.caret\")));\n\t\tcaretSettings.add(Box.createHorizontalStrut(6));\n\t\tcaretSettings.add(blinkCaret);\n\t\tcaretSettings.add(blockCaret);\n\t\tcaretSettings.add(thickCaret);\n\n\t\taddComponent(caretSettings,caretColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.caretColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Selection color */\n\t\taddComponent(jEdit.getProperty(\"options.textarea.selection\"),\n\t\t\tselectionColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.selectionColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Multiple selection color */\n\t\taddComponent(jEdit.getProperty(\"options.textarea.multipleSelection\"),\n\t\t\tmultipleSelectionColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.multipleSelectionColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Line highlight */\n\t\tlineHighlight = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".lineHighlight\"));\n\t\tlineHighlight.setSelected(jEdit.getBooleanProperty(\"view.lineHighlight\"));\n\t\taddComponent(lineHighlight,lineHighlightColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.lineHighlightColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Structure highlight */\n\t\tstructureHighlight = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".structureHighlight\"));\n\t\tstructureHighlight.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.structureHighlight\"));\n\t\taddComponent(structureHighlight,structureHighlightColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.structureHighlightColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* EOL markers */\n\t\teolMarkers = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".eolMarkers\"));\n\t\teolMarkers.setSelected(jEdit.getBooleanProperty(\"view.eolMarkers\"));\n\t\taddComponent(eolMarkers,eolMarkerColor =new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.eolMarkerColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Wrap guide */\n\t\twrapGuide = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".wrapGuide\"));\n\t\twrapGuide.setSelected(jEdit.getBooleanProperty(\"view.wrapGuide\"));\n\t\taddComponent(wrapGuide,wrapGuideColor = new ColorWellButton(\n\t\t\tjEdit.getColorProperty(\"view.wrapGuideColor\")),\n\t\t\tGridBagConstraints.VERTICAL);\n\n\t\t/* Electric borders */\n\t\telectricBorders = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".electricBorders\"));\n\t\telectricBorders.setSelected(!\"0\".equals(jEdit.getProperty(\n\t\t\t\"view.electricBorders\")));\n\t\taddComponent(electricBorders);\n\n\t\t/* Anti-aliasing */\n\n\t\tantiAlias = new JComboBox(AntiAlias.comboChoices);\n\t\tantiAlias.setToolTipText(jEdit.getProperty(\"options.textarea.antiAlias.tooltip\"));\n\t\tAntiAlias antiAliasValue = new AntiAlias(jEdit.getProperty(\"view.antiAlias\"));\n\t\tfont.setAntiAliasEnabled(antiAliasValue.val()>0);\n\t\tantiAlias.addActionListener(new ActionListener()\n\t\t\t{\n\t\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t\t{\n\t\t\t\t\tint idx = antiAlias.getSelectedIndex();\n\t\t\t\t\tfont.setAntiAliasEnabled(idx > 0);\n\t\t\t\t\tfont.repaint();\n\t\t\t\t}\n\t\t\t});\n\t\tantiAlias.setSelectedIndex(antiAliasValue.val());\n\t\taddComponent(jEdit.getProperty(\"options.textarea\"+ \".antiAlias\"), antiAlias);\n\n\t\t/* Fractional font metrics */\n\t\tfracFontMetrics = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".fracFontMetrics\"));\n\t\tfracFontMetrics.setSelected(jEdit.getBooleanProperty(\"view.fracFontMetrics\"));\n\t\taddComponent(fracFontMetrics);\n\n\t\t/* Strip trailing EOL */\n\t\tstripTrailingEOL = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.textArea.stripTrailingEOL\"));\n\t\tstripTrailingEOL.setSelected(jEdit.getBooleanProperty(\"stripTrailingEOL\"));\n\t\taddComponent(stripTrailingEOL);\n\n\t\tcompleteFromAllBuffers = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.textArea.completeFromAllBuffers\"));\n\t\tcompleteFromAllBuffers.setSelected(jEdit.getBooleanProperty(\"completeFromAllBuffers\"));\n\t\taddComponent(completeFromAllBuffers);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [4, 51], [5, 52], [7, 53], [8, 54], [10, 55], [11, 56], [12, 57], [13, 58], [14, 59], [15, 60], [1, 61], [16, 62], [17, 63], [19, 64], [20, 65], [21, 66], [22, 67], [23, 68], [24, 69], [25, 70], [26, 71], [27, 72], [28, 73], [29, 74], [30, 75], [31, 76], [32, 77], [33, 78], [33, 79], [34, 80], [34, 81], [35, 82], [39, 83], [40, 84], [2, 85], [41, 86], [42, 87], [43, 88], [44, 89], [45, 90], [46, 91], [47, 92], [47, 93], [48, 94], [48, 95], [49, 96], [50, 97], [51, 98], [52, 99], [53, 100], [54, 101], [55, 102], [56, 103], [57, 104], [59, 105], [60, 106], [60, 107], [61, 108], [62, 109], [64, 110], [65, 111], [66, 112], [67, 113], [68, 114], [69, 115], [70, 116], [71, 117], [72, 118], [73, 119], [74, 120], [75, 121], [76, 122], [77, 123], [78, 124], [79, 125], [80, 126], [81, 127], [82, 128], [83, 129], [84, 130], [86, 131], [87, 132], [88, 133], [89, 134], [90, 135], [91, 136], [92, 137], [93, 138], [94, 139], [95, 140], [96, 141], [97, 142], [99, 143], [101, 144], [103, 145], [104, 146], [104, 147], [105, 148], [105, 149], [108, 150], [110, 151], [111, 152], [112, 153], [114, 154], [115, 155], [117, 156], [118, 157], [120, 158], [121, 159], [123, 160], [124, 161], [126, 162], [128, 163], [130, 164], [132, 165], [134, 166], [136, 167], [137, 168], [139, 169], [142, 170], [145, 171], [145, 172], [105, 173], [105, 174], [151, 175], [152, 176], [152, 177], [153, 178], [154, 179], [154, 180], [155, 181], [156, 182], [156, 183], [157, 184], [158, 185], [158, 186], [159, 187], [160, 188], [160, 189], [161, 190], [162, 191], [163, 192], [165, 193], [165, 194], [166, 195], [166, 196], [167, 197], [167, 198], [168, 199], [169, 200], [174, 201], [148, 202], [201, 203], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 4], [52, 5], [53, 7], [54, 8], [55, 10], [56, 11], [57, 12], [58, 13], [59, 14], [60, 15], [61, 1], [62, 16], [63, 17], [64, 19], [65, 20], [66, 21], [67, 22], [68, 23], [69, 24], [70, 25], [71, 26], [72, 27], [73, 28], [74, 29], [75, 30], [76, 31], [77, 32], [78, 33], [79, 33], [80, 34], [81, 34], [82, 35], [83, 39], [84, 40], [85, 2], [86, 41], [87, 42], [88, 43], [89, 44], [90, 45], [91, 46], [92, 47], [93, 47], [94, 48], [95, 48], [96, 49], [97, 50], [98, 51], [99, 52], [100, 53], [101, 54], [102, 55], [103, 56], [104, 57], [105, 59], [106, 60], [107, 60], [108, 61], [109, 62], [110, 64], [111, 65], [112, 66], [113, 67], [114, 68], [115, 69], [116, 70], [117, 71], [118, 72], [119, 73], [120, 74], [121, 75], [122, 76], [123, 77], [124, 78], [125, 79], [126, 80], [127, 81], [128, 82], [129, 83], [130, 84], [131, 86], [132, 87], [133, 88], [134, 89], [135, 90], [136, 91], [137, 92], [138, 93], [139, 94], [140, 95], [141, 96], [142, 97], [143, 99], [144, 101], [145, 103], [146, 104], [147, 104], [148, 105], [149, 105], [150, 108], [151, 110], [152, 111], [153, 112], [154, 114], [155, 115], [156, 117], [157, 118], [158, 120], [159, 121], [160, 123], [161, 124], [162, 126], [163, 128], [164, 130], [165, 132], [166, 134], [167, 136], [168, 137], [169, 139], [170, 142], [171, 145], [172, 145], [173, 105], [174, 105], [175, 151], [176, 152], [177, 152], [178, 153], [179, 154], [180, 154], [181, 155], [182, 156], [183, 156], [184, 157], [185, 158], [186, 158], [187, 159], [188, 160], [189, 160], [190, 161], [191, 162], [192, 163], [193, 165], [194, 165], [195, 166], [196, 166], [197, 167], [198, 167], [199, 168], [200, 169], [201, 174], [202, 148], [203, 201], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203]]}, {"function_name": "_save", "code": "\tpublic void _save()\n\t{\n\t\tjEdit.setFontProperty(\"view.font\",font.getFont());\n\n\t\tjEdit.setColorProperty(\"view.fgColor\",foregroundColor\n\t\t\t.getSelectedColor());\n\t\tjEdit.setColorProperty(\"view.bgColor\",backgroundColor\n\t\t\t.getSelectedColor());\n\t\tjEdit.setBooleanProperty(\"view.caretBlink\",blinkCaret.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.blockCaret\",blockCaret.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.thickCaret\",thickCaret.isSelected());\n\t\tjEdit.setColorProperty(\"view.caretColor\",caretColor\n\t\t\t.getSelectedColor());\n\t\tjEdit.setColorProperty(\"view.selectionColor\",selectionColor\n\t\t\t.getSelectedColor());\n\t\tjEdit.setColorProperty(\"view.multipleSelectionColor\",multipleSelectionColor\n\t\t\t.getSelectedColor());\n\t\tjEdit.setBooleanProperty(\"view.lineHighlight\",lineHighlight\n\t\t\t.isSelected());\n\t\tjEdit.setColorProperty(\"view.lineHighlightColor\",\n\t\t\tlineHighlightColor.getSelectedColor());\n\t\tjEdit.setBooleanProperty(\"view.structureHighlight\",structureHighlight\n\t\t\t.isSelected());\n\t\tjEdit.setColorProperty(\"view.structureHighlightColor\",\n\t\t\tstructureHighlightColor.getSelectedColor());\n\t\tjEdit.setBooleanProperty(\"view.eolMarkers\",eolMarkers\n\t\t\t.isSelected());\n\t\tjEdit.setColorProperty(\"view.eolMarkerColor\",\n\t\t\teolMarkerColor.getSelectedColor());\n\t\tjEdit.setBooleanProperty(\"view.wrapGuide\",wrapGuide\n\t\t\t.isSelected());\n\t\tjEdit.setColorProperty(\"view.wrapGuideColor\",\n\t\t\twrapGuideColor.getSelectedColor());\n\t\tjEdit.setIntegerProperty(\"view.electricBorders\",electricBorders\n\t\t\t.isSelected() ? 3 : 0);\n\t\tAntiAlias nv = new AntiAlias(jEdit.getProperty(\"view.antiAlias\"));\n\t\tnv.set(antiAlias.getSelectedIndex());\n\t\tjEdit.setProperty(\"view.antiAlias\", nv.toString());\n\t\tjEdit.setBooleanProperty(\"view.fracFontMetrics\",fracFontMetrics.isSelected());\n\t\tjEdit.setBooleanProperty(\"stripTrailingEOL\", stripTrailingEOL.isSelected());\n\t\tjEdit.setBooleanProperty(\"completeFromAllBuffers\", completeFromAllBuffers.isSelected());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [2, 25], [2, 26], [3, 27], [3, 28], [4, 29], [4, 30], [5, 31], [5, 32], [6, 33], [1, 34], [7, 35], [7, 36], [8, 37], [8, 38], [9, 39], [9, 40], [10, 41], [10, 42], [11, 43], [11, 44], [12, 45], [12, 46], [13, 47], [13, 48], [14, 49], [14, 50], [15, 51], [15, 52], [16, 53], [16, 54], [17, 55], [17, 56], [18, 57], [18, 58], [19, 59], [19, 60], [20, 61], [20, 62], [21, 63], [21, 64], [22, 65], [22, 66], [23, 67], [23, 68], [24, 69], [24, 70], [34, 71], [35, 72], [35, 73], [35, 74], [71, 75], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 2], [26, 2], [27, 3], [28, 3], [29, 4], [30, 4], [31, 5], [32, 5], [33, 6], [34, 1], [35, 7], [36, 7], [37, 8], [38, 8], [39, 9], [40, 9], [41, 10], [42, 10], [43, 11], [44, 11], [45, 12], [46, 12], [47, 13], [48, 13], [49, 14], [50, 14], [51, 15], [52, 15], [53, 16], [54, 16], [55, 17], [56, 17], [57, 18], [58, 18], [59, 19], [60, 19], [61, 20], [62, 20], [63, 21], [64, 21], [65, 22], [66, 22], [67, 23], [68, 23], [69, 24], [70, 24], [71, 34], [72, 35], [73, 35], [74, 35], [75, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "TextAreaOptionPane", "code": "\tpublic TextAreaOptionPane()\n\t{\n\t\tsuper(\"textarea\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.6-601", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/util/CollectionUtils.java", "language": "java", "name": "org.apache.tools.ant.util.CollectionUtils", "code": "public class CollectionUtils {\n\n    /**\n     * Please use Vector.equals() or List.equals()\n     *\n     * @since Ant 1.5\n     * @deprecated\n     */\n    public static boolean equals(Vector v1, Vector v2) {\n        if (v1 == v2) {\n            return true;\n        }\n\n        if (v1 == null || v2 == null) {\n            return false;\n        }\n\n        return v1.equals(v2);\n    }\n\n    /**\n     * Dictionary does not have an equals.\n     * Please use  Map.equals()\n     *\n     * <p>Follows the equals contract of Java 2's Map.</p>\n     *\n     * @since Ant 1.5\n     * @deprecated\n     */\n    public static boolean equals(Dictionary d1, Dictionary d2) {\n        if (d1 == d2) {\n            return true;\n        }\n\n        if (d1 == null || d2 == null) {\n            return false;\n        }\n\n        if (d1.size() != d2.size()) {\n            return false;\n        }\n\n        Enumeration e1 = d1.keys();\n        while (e1.hasMoreElements()) {\n            Object key = e1.nextElement();\n            Object value1 = d1.get(key);\n            Object value2 = d2.get(key);\n            if (value2 == null || !value1.equals(value2)) {\n                return false;\n            }\n        }\n\n\n        return true;\n    }\n\n    /**\n     * Dictionary does not know the putAll method. Please use Map.putAll().\n     *\n     * @since Ant 1.6\n     * @deprecated\n     */\n    public static void putAll(Dictionary m1, Dictionary m2) {\n        for (Enumeration it = m2.keys(); it.hasMoreElements();) {\n            Object key = it.nextElement();\n            m1.put(key, m2.get(key));\n        }\n    }\n\n    /**\n     * @since Ant 1.6\n     */\n    public static final class EmptyEnumeration implements Enumeration {\n        public EmptyEnumeration() {\n        }\n\n        public boolean hasMoreElements() {\n            return false;\n        }\n\n        public Object nextElement() throws NoSuchElementException {\n            throw new NoSuchElementException();\n        }\n    }\n\n    /**\n     * Append one enumeration to another.\n     * Elements are evaluated lazily.\n     * @param e1 the first enumeration\n     * @param e2 the subsequent enumeration\n     * @return an enumeration representing e1 followed by e2\n     * @since Ant 1.6.3\n     */\n    public static Enumeration append(Enumeration e1, Enumeration e2) {\n        return new CompoundEnumeration(e1, e2);\n    }\n\n    private static final class CompoundEnumeration implements Enumeration {\n\n        private final Enumeration e1, e2;\n\n        public CompoundEnumeration(Enumeration e1, Enumeration e2) {\n            this.e1 = e1;\n            this.e2 = e2;\n        }\n\n        public boolean hasMoreElements() {\n            return e1.hasMoreElements() || e2.hasMoreElements();\n        }\n\n        public Object nextElement() throws NoSuchElementException {\n            if (e1.hasMoreElements()) {\n                return e1.nextElement();\n            } else {\n                return e2.nextElement();", "functions": [{"function_name": "equals", "code": "    public static boolean equals(Vector v1, Vector v2) {\n        if (v1 == v2) {\n            return true;\n        }\n\n        if (v1 == null || v2 == null) {\n            return false;\n        }\n\n        return v1.equals(v2);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [7, 10], [7, 11], [3, 12], [9, 13], [10, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 7], [11, 7], [12, 3], [13, 9], [14, 10], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "equals", "code": "    public static boolean equals(Dictionary d1, Dictionary d2) {\n        if (d1 == d2) {\n            return true;\n        }\n\n        if (d1 == null || d2 == null) {\n            return false;\n        }\n\n        if (d1.size() != d2.size()) {\n            return false;\n        }\n\n        Enumeration e1 = d1.keys();\n        while (e1.hasMoreElements()) {\n            Object key = e1.nextElement();\n            Object value1 = d1.get(key);\n            Object value2 = d2.get(key);\n            if (value2 == null || !value1.equals(value2)) {\n                return false;\n            }\n        }\n\n\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [4, 11], [5, 12], [6, 13], [2, 14], [2, 15], [2, 16], [2, 17], [3, 18], [4, 19], [11, 20], [11, 21], [5, 22], [12, 23], [12, 24], [6, 25], [14, 26], [19, 27], [22, 28], [23, 29], [24, 30], [25, 31], [14, 32], [26, 33], [26, 34], [15, 35], [16, 36], [17, 37], [32, 38], [34, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 4], [12, 5], [13, 6], [14, 2], [15, 2], [16, 2], [17, 2], [18, 3], [19, 4], [20, 11], [21, 11], [22, 5], [23, 12], [24, 12], [25, 6], [26, 14], [27, 19], [28, 22], [29, 23], [30, 24], [31, 25], [32, 14], [33, 26], [34, 26], [35, 15], [36, 16], [37, 17], [38, 32], [39, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "putAll", "code": "    public static void putAll(Dictionary m1, Dictionary m2) {\n        for (Enumeration it = m2.keys(); it.hasMoreElements();) {\n            Object key = it.nextElement();\n            m1.put(key, m2.get(key));", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [6, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 6], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "append", "code": "    public static Enumeration append(Enumeration e1, Enumeration e2) {\n        return new CompoundEnumeration(e1, e2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.7-8088", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/WrappedRuntimeException.java", "language": "java", "name": "org.apache.xml.utils.WrappedRuntimeException", "code": "public class WrappedRuntimeException extends RuntimeException\n{\n    static final long serialVersionUID = 7140414456714658073L;\n\n  /** Primary checked exception.\n   *  @serial          */\n  private Exception m_exception;\n\n  /**\n   * Construct a WrappedRuntimeException from a\n   * checked exception.\n   *\n   * @param e Primary checked exception\n   */\n  public WrappedRuntimeException(Exception e)\n  {\n\n    super(e.getMessage());\n\n    m_exception = e;\n  }\n\n  /**\n   * Constructor WrappedRuntimeException\n   *\n   *\n   * @param msg Exception information.\n   * @param e Primary checked exception\n   */\n  public WrappedRuntimeException(String msg, Exception e)\n  {\n\n    super(msg);\n\n    m_exception = e;\n  }\n  \n  /**\n   * Get the checked exception that this runtime exception wraps.\n   *\n   * @return The primary checked exception\n   */\n  public Exception getException()\n  {\n    return m_exception;", "functions": [{"function_name": "getException", "code": "  public Exception getException()\n  {\n    return m_exception;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "WrappedRuntimeException", "code": "  public WrappedRuntimeException(Exception e)\n  {\n\n    super(e.getMessage());\n\n    m_exception = e;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "WrappedRuntimeException", "code": "  public WrappedRuntimeException(String msg, Exception e)\n  {\n\n    super(msg);\n\n    m_exception = e;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.4-6753", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/util/NodeType.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.NodeType", "code": "public final class NodeType extends Type {\n    private final int _type;\n\n    protected NodeType() {\n\tthis(NodeTest.ANODE);\n    }\n\n    protected NodeType(int type) {\n\t_type = type;\n    }\n\n    public int getType() {\n\treturn _type;\n    }\n\n    public String toString() {\n\treturn \"node-type\";\n    }\n\n    public boolean identicalTo(Type other) {\n\treturn other instanceof NodeType;\n    }\n\n    public int hashCode() {\n\treturn _type;\n    }\n\n    public String toSignature() {\n\treturn \"I\";\n    }\n\n    public org.apache.bcel.generic.Type toJCType() {\n\treturn org.apache.bcel.generic.Type.INT;\n    }\n\n    /**\n     * Translates a node into an object of internal type <code>type</code>.\n     * The translation to int is undefined since nodes are always converted\n     * to reals in arithmetic expressions.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse if (type == Type.Boolean) {\n\t    translateTo(classGen, methodGen, (BooleanType) type);\n\t}\n\telse if (type == Type.Real) {\n\t    translateTo(classGen, methodGen, (RealType) type);\n\t}\n\telse if (type == Type.NodeSet) {\n\t    translateTo(classGen, methodGen, (NodeSetType) type);\n\t}\n\telse if (type == Type.Reference) {\n\t    translateTo(classGen, methodGen, (ReferenceType) type);\n\t}\n\telse if (type == Type.Object) {\n\t    translateTo(classGen, methodGen, (ObjectType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n\n    /**\n     * Expects a node on the stack and pushes its string value. \n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tswitch (_type) {\n\tcase NodeTest.ROOT:\n\tcase NodeTest.ELEMENT:\n\t    il.append(methodGen.loadDOM());\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  GET_ELEMENT_VALUE,\n\t\t\t\t\t\t  GET_ELEMENT_VALUE_SIG);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t    break;\n\n\tcase NodeTest.ANODE:\n\tcase NodeTest.COMMENT:\n\tcase NodeTest.ATTRIBUTE:\n\tcase NodeTest.PI:\n\t    il.append(methodGen.loadDOM());\n\t    index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t      GET_NODE_VALUE,\n\t\t\t\t\t      GET_NODE_VALUE_SIG);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t    break;\n\t    \n\tdefault:\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t    break;\n\t}\n    }\n\n    /**\n     * Translates a node into a synthesized boolean.\n     * If the expression is \"@attr\", \n     * then \"true\" is pushed iff \"attr\" is an attribute of the current node.\n     * If the expression is \".\", the result is always \"true\".\t\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    BooleanType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tFlowList falsel = translateToDesynthesized(classGen, methodGen, type);\n\til.append(ICONST_1);\n\tfinal BranchHandle truec = il.append(new GOTO(null));\n\tfalsel.backPatch(il.append(ICONST_0));\n\ttruec.setTarget(il.append(NOP));\n    }\n\n    /**\n     * Expects a node on the stack and pushes a real.\n     * First the node is converted to string, and from string to real.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    RealType type) {\n\ttranslateTo(classGen, methodGen, Type.String);\n\tType.String.translateTo(classGen, methodGen, Type.Real);\t\n    }\n\n    /**\n     * Expects a node on the stack and pushes a singleton node-set. Singleton\n     * iterators are already started after construction.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    NodeSetType type) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\n\til.append(new NEW(cpg.addClass(SINGLETON_ITERATOR)));\n\til.append(DUP_X1);\n\til.append(SWAP);\n\tfinal int init = cpg.addMethodref(SINGLETON_ITERATOR, \"<init>\",\n\t\t\t\t\t  \"(\" + NODE_SIG +\")V\");\n\til.append(new INVOKESPECIAL(init));\n    }\n\n    /**\n     * Subsume Node into ObjectType.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ObjectType type) {\n\t    methodGen.getInstructionList().append(NOP);\t\n    }\n\n    /**\n     * Translates a node into a non-synthesized boolean. It does not push a \n     * 0 or a 1 but instead returns branchhandle list to be appended to the \n     * false list.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateToDesynthesized\n     */\n    public FlowList translateToDesynthesized(ClassGenerator classGen, \n\t\t\t\t\t     MethodGenerator methodGen, \n\t\t\t\t\t     BooleanType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\treturn new FlowList(il.append(new IFEQ(null)));\n    }\n\n    /**\n     * Expects a node on the stack and pushes a boxed node. Boxed nodes\n     * are represented by an instance of <code>org.apache.xalan.xsltc.dom.Node</code>.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ReferenceType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new NEW(cpg.addClass(RUNTIME_NODE_CLASS)));\n\til.append(DUP_X1);\n\til.append(SWAP);\n\til.append(new PUSH(cpg, _type));\n\til.append(new INVOKESPECIAL(cpg.addMethodref(RUNTIME_NODE_CLASS,\n\t\t\t\t\t\t     \"<init>\", \"(II)V\")));\n    }\n\n    /**\n     * Translates a node into the Java type denoted by <code>clazz</code>. \n     * Expects a node on the stack and pushes an object of the appropriate\n     * type after coercion.\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Class clazz) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadDOM());\n\n\tString className = clazz.getName();\n\tif (className.equals(\"org.w3c.dom.Node\")) {\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE,\n\t\t\t\t\t\t  MAKE_NODE_SIG);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse if (className.equals(\"org.w3c.dom.NodeList\")) {\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE_LIST,\n\t\t\t\t\t\t  MAKE_NODE_LIST_SIG);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), className);\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n\n    /**\n     * Translates an object of this type to its boxed representation.\n     */ \n    public void translateBox(ClassGenerator classGen,\n\t\t\t     MethodGenerator methodGen) {\n\ttranslateTo(classGen, methodGen, Type.Reference);\n    }\n\n    /**\n     * Translates an object of this type to its unboxed representation.\n     */ \n    public void translateUnBox(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new CHECKCAST(cpg.addClass(RUNTIME_NODE_CLASS)));\n\til.append(new GETFIELD(cpg.addFieldref(RUNTIME_NODE_CLASS,\n\t\t\t\t\t       NODE_FIELD,\n\t\t\t\t\t       NODE_FIELD_SIG)));\n    }\n\n    /**\n     * Returns the class name of an internal type's external representation.\n     */\n    public String getClassName() {\n\treturn(RUNTIME_NODE_CLASS);\n    }\n\n    public Instruction LOAD(int slot) {\n\treturn new ILOAD(slot);\n    }\n\t\n    public Instruction STORE(int slot) {\n\treturn new ISTORE(slot);", "functions": [{"function_name": "getType", "code": "    public int getType() {\n\treturn _type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"node-type\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "identicalTo", "code": "    public boolean identicalTo(Type other) {\n\treturn other instanceof NodeType;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hashCode", "code": "    public int hashCode() {\n\treturn _type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toSignature", "code": "    public String toSignature() {\n\treturn \"I\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toJCType", "code": "    public org.apache.bcel.generic.Type toJCType() {\n\treturn org.apache.bcel.generic.Type.INT;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse if (type == Type.Boolean) {\n\t    translateTo(classGen, methodGen, (BooleanType) type);\n\t}\n\telse if (type == Type.Real) {\n\t    translateTo(classGen, methodGen, (RealType) type);\n\t}\n\telse if (type == Type.NodeSet) {\n\t    translateTo(classGen, methodGen, (NodeSetType) type);\n\t}\n\telse if (type == Type.Reference) {\n\t    translateTo(classGen, methodGen, (ReferenceType) type);\n\t}\n\telse if (type == Type.Object) {\n\t    translateTo(classGen, methodGen, (ObjectType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [7, 9], [7, 10], [1, 11], [9, 12], [9, 13], [5, 14], [12, 15], [12, 16], [7, 17], [15, 18], [9, 19], [15, 20], [12, 21], [15, 22], [15, 23], [22, 24], [20, 25], [25, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 7], [10, 7], [11, 1], [12, 9], [13, 9], [14, 5], [15, 12], [16, 12], [17, 7], [18, 15], [19, 9], [20, 15], [21, 12], [22, 15], [23, 15], [24, 22], [25, 20], [26, 25], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tswitch (_type) {\n\tcase NodeTest.ROOT:\n\tcase NodeTest.ELEMENT:\n\t    il.append(methodGen.loadDOM());\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  GET_ELEMENT_VALUE,\n\t\t\t\t\t\t  GET_ELEMENT_VALUE_SIG);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t    break;\n\n\tcase NodeTest.ANODE:\n\tcase NodeTest.COMMENT:\n\tcase NodeTest.ATTRIBUTE:\n\tcase NodeTest.PI:\n\t    il.append(methodGen.loadDOM());\n\t    index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t      GET_NODE_VALUE,\n\t\t\t\t\t      GET_NODE_VALUE_SIG);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t    break;\n\t    \n\tdefault:\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t    break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BREAK_CONTINUE", "VAR_DECL", "BREAK_CONTINUE", "BREAK_CONTINUE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [3, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [14, 20], [8, 21], [15, 22], [16, 23], [17, 24], [18, 25], [11, 26], [19, 27], [21, 28], [21, 29], [22, 30], [25, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 3], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 14], [21, 8], [22, 15], [23, 16], [24, 17], [25, 18], [26, 11], [27, 19], [28, 21], [29, 21], [30, 22], [31, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    BooleanType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tFlowList falsel = translateToDesynthesized(classGen, methodGen, type);\n\til.append(ICONST_1);\n\tfinal BranchHandle truec = il.append(new GOTO(null));\n\tfalsel.backPatch(il.append(ICONST_0));\n\ttruec.setTarget(il.append(NOP));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [8, 11], [1, 12], [2, 13], [3, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 8], [12, 1], [13, 2], [14, 3], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    RealType type) {\n\ttranslateTo(classGen, methodGen, Type.String);\n\tType.String.translateTo(classGen, methodGen, Type.Real);\t", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    NodeSetType type) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\n\til.append(new NEW(cpg.addClass(SINGLETON_ITERATOR)));\n\til.append(DUP_X1);\n\til.append(SWAP);\n\tfinal int init = cpg.addMethodref(SINGLETON_ITERATOR, \"<init>\",\n\t\t\t\t\t  \"(\" + NODE_SIG +\")V\");\n\til.append(new INVOKESPECIAL(init));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [7, 11], [1, 12], [10, 13], [2, 14], [3, 15], [12, 16], [12, 17], [13, 18], [16, 19], [16, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 7], [12, 1], [13, 10], [14, 2], [15, 3], [16, 12], [17, 12], [18, 13], [19, 16], [20, 16], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ObjectType type) {\n\t    methodGen.getInstructionList().append(NOP);\t", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translateToDesynthesized", "code": "    public FlowList translateToDesynthesized(ClassGenerator classGen, \n\t\t\t\t\t     MethodGenerator methodGen, \n\t\t\t\t\t     BooleanType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\treturn new FlowList(il.append(new IFEQ(null)));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ReferenceType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new NEW(cpg.addClass(RUNTIME_NODE_CLASS)));\n\til.append(DUP_X1);\n\til.append(SWAP);\n\til.append(new PUSH(cpg, _type));\n\til.append(new INVOKESPECIAL(cpg.addMethodref(RUNTIME_NODE_CLASS,\n\t\t\t\t\t\t     \"<init>\", \"(II)V\")));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [10, 13], [1, 14], [2, 15], [11, 16], [13, 17], [16, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 10], [14, 1], [15, 2], [16, 11], [17, 13], [18, 16], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Class clazz) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadDOM());\n\n\tString className = clazz.getName();\n\tif (className.equals(\"org.w3c.dom.Node\")) {\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE,\n\t\t\t\t\t\t  MAKE_NODE_SIG);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse if (className.equals(\"org.w3c.dom.NodeList\")) {\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE_LIST,\n\t\t\t\t\t\t  MAKE_NODE_LIST_SIG);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), className);\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [0, 10], [8, 11], [1, 12], [9, 13], [2, 14], [10, 15], [3, 16], [4, 17], [8, 18], [8, 19], [11, 20], [1, 21], [8, 22], [8, 23], [21, 24], [12, 25], [22, 26], [18, 27], [23, 28], [19, 29], [24, 30], [27, 31], [28, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 0], [11, 8], [12, 1], [13, 9], [14, 2], [15, 10], [16, 3], [17, 4], [18, 8], [19, 8], [20, 11], [21, 1], [22, 8], [23, 8], [24, 21], [25, 12], [26, 22], [27, 18], [28, 23], [29, 19], [30, 24], [31, 27], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "translateBox", "code": "    public void translateBox(ClassGenerator classGen,\n\t\t\t     MethodGenerator methodGen) {\n\ttranslateTo(classGen, methodGen, Type.Reference);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translateUnBox", "code": "    public void translateUnBox(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new CHECKCAST(cpg.addClass(RUNTIME_NODE_CLASS)));\n\til.append(new GETFIELD(cpg.addFieldref(RUNTIME_NODE_CLASS,\n\t\t\t\t\t       NODE_FIELD,\n\t\t\t\t\t       NODE_FIELD_SIG)));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 9], [2, 10], [7, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 1], [10, 2], [11, 7], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getClassName", "code": "    public String getClassName() {\n\treturn(RUNTIME_NODE_CLASS);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "LOAD", "code": "    public Instruction LOAD(int slot) {\n\treturn new ILOAD(slot);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "STORE", "code": "    public Instruction STORE(int slot) {\n\treturn new ISTORE(slot);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "NodeType", "code": "    protected NodeType() {\n\tthis(NodeTest.ANODE);", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NodeType", "code": "    protected NodeType(int type) {\n\t_type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8480", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/extensions/ExtensionHandlerJavaPackage.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionHandlerJavaPackage", "code": "public class ExtensionHandlerJavaPackage extends ExtensionHandlerJava\n{\n\n  /**\n   * Construct a new extension namespace handler given all the information\n   * needed. \n   * \n   * @param namespaceUri the extension namespace URI that I'm implementing\n   * @param scriptLang   language of code implementing the extension\n   * @param className    the beginning of the class name of the class.  This\n   *                     should be followed by a dot (.)\n   */\n  public ExtensionHandlerJavaPackage(String namespaceUri,\n                                     String scriptLang,\n                                     String className)\n  {\n    super(namespaceUri, scriptLang, className);\n  }\n\n\n  /**\n   * Tests whether a certain function name is known within this namespace.\n   * Since this is for a package, we concatenate the package name used when\n   * this handler was created and the function name specified in the argument.\n   * There is\n   * no information regarding the arguments to the function call or\n   * whether the method implementing the function is a static method or\n   * an instance method.\n   * @param function name of the function being tested\n   * @return true if its known, false if not.\n   */\n\n  public boolean isFunctionAvailable(String function) \n  {\n    try\n    {\n      String fullName = m_className + function;\n      int lastDot = fullName.lastIndexOf(\".\");\n      if (lastDot >= 0)\n      {\n        Class myClass = getClassForName(fullName.substring(0, lastDot));\n        Method[] methods = myClass.getMethods();\n        int nMethods = methods.length;\n        function = fullName.substring(lastDot + 1);\n        for (int i = 0; i < nMethods; i++)\n        {\n          if (methods[i].getName().equals(function))\n            return true;\n        }\n      }\n    }\n    catch (ClassNotFoundException cnfe) {}\n\n    return false;\n  }\n\n\n  /**\n   * Tests whether a certain element name is known within this namespace.\n   * Looks for a method with the appropriate name and signature.\n   * This method examines both static and instance methods.\n   * @param element name of the element being tested\n   * @return true if its known, false if not.\n   */\n\n  public boolean isElementAvailable(String element) \n  {\n    try\n    {\n      String fullName = m_className + element;\n      int lastDot = fullName.lastIndexOf(\".\");\n      if (lastDot >= 0)\n      {\n        Class myClass = getClassForName(fullName.substring(0, lastDot));\n        Method[] methods = myClass.getMethods();\n        int nMethods = methods.length;\n        element = fullName.substring(lastDot + 1);\n        for (int i = 0; i < nMethods; i++)\n        {\n          if (methods[i].getName().equals(element))\n          {\n            Class[] paramTypes = methods[i].getParameterTypes();\n            if ( (paramTypes.length == 2)\n              && paramTypes[0].isAssignableFrom(\n                                     org.apache.xalan.extensions.XSLProcessorContext.class)\n              && paramTypes[1].isAssignableFrom(\n                                       org.apache.xalan.templates.ElemExtensionCall.class) )\n            {\n              return true;\n            }\n          }\n        }\n      }\n    }\n    catch (ClassNotFoundException cnfe) {}\n\n    return false;\n  }\n\n\n  /**\n   * Process a call to a function in the package java namespace.\n   * There are three possible types of calls:\n   * <pre>\n   *   Constructor:\n   *     packagens:class.name.new(arg1, arg2, ...)\n   *\n   *   Static method:\n   *     packagens:class.name.method(arg1, arg2, ...)\n   *\n   *   Instance method:\n   *     packagens:method(obj, arg1, arg2, ...)\n   * </pre>\n   * We use the following rules to determine the type of call made:\n   * <ol type=\"1\">\n   * <li>If the function name ends with a \".new\", call the best constructor for\n   *     class whose name is formed by concatenating the value specified on\n   *     the namespace with the value specified in the function invocation\n   *     before \".new\".</li>\n   * <li>If the function name contains a period, call the best static method \"method\"\n   *     in the class whose name is formed by concatenating the value specified on\n   *     the namespace with the value specified in the function invocation.</li>\n   * <li>Otherwise, call the best instance method \"method\"\n   *     in the class whose name is formed by concatenating the value specified on\n   *     the namespace with the value specified in the function invocation.\n   *     Note that a static method of the same\n   *     name will <i>not</i> be called in the current implementation.  This\n   *     module does not verify that the obj argument is a member of the\n   *     package namespace.</li>\n   * </ol>\n   *\n   * @param funcName Function name.\n   * @param args     The arguments of the function call.\n   * @param methodKey A key that uniquely identifies this class and method call.\n   * @param exprContext The context in which this expression is being executed.\n   * @return the return value of the function evaluation.\n   *\n   * @throws TransformerException          if parsing trouble\n   */\n\n  public Object callFunction (String funcName, \n                              Vector args, \n                              Object methodKey,\n                              ExpressionContext exprContext)\n    throws TransformerException \n  {\n\n    String className;\n    String methodName;\n    Class  classObj;\n    Object targetObject;\n    int lastDot = funcName.lastIndexOf(\".\");\n    Object[] methodArgs;\n    Object[][] convertedArgs;\n    Class[] paramTypes;\n\n    try\n    {\n      TransformerImpl trans = (exprContext != null) ?\n        (TransformerImpl)exprContext.getXPathContext().getOwnerObject() : null;\n\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        \n        Constructor c = (methodKey != null) ?\n          (Constructor) getFromCache(methodKey, null, methodArgs) : null;\n        \n        if (c != null)\n        {\n          try\n          {\n            paramTypes = c.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            return c.newInstance(convertedArgs[0]);\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n        className = m_className + funcName.substring(0, lastDot);\n        try\n        {\n          classObj = getClassForName(className);\n        }\n        catch (ClassNotFoundException e) \n        {\n          throw new TransformerException(e);\n        }\n        c = MethodResolver.getConstructor(classObj, \n                                          methodArgs,\n                                          convertedArgs,\n                                          exprContext);\n        if (methodKey != null)\n          putToCache(methodKey, null, methodArgs, c);\n        \n        if (trans != null && trans.getDebug()) {\n            trans.getTraceManager().fireExtensionEvent(new ExtensionEvent(trans, c, convertedArgs[0]));            \n            Object result;\n            try {\n                result = c.newInstance(convertedArgs[0]);\n            } catch (Exception e) {\n                throw e;\n            } finally {\n                trans.getTraceManager().fireExtensionEndEvent(new ExtensionEvent(trans, c, convertedArgs[0]));\n            }\n            return result;\n        } else\n            return c.newInstance(convertedArgs[0]);\n      \n\n\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        Method m = (methodKey != null) ?\n          (Method) getFromCache(methodKey, null, methodArgs) : null;\n        \n        if (m != null && !trans.getDebug())\n        {\n          try\n          {\n            paramTypes = m.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            return m.invoke(null, convertedArgs[0]);\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n        className = m_className + funcName.substring(0, lastDot);\n        methodName = funcName.substring(lastDot + 1);\n        try\n        {\n          classObj = getClassForName(className);\n        }\n        catch (ClassNotFoundException e) \n        {\n          throw new TransformerException(e);\n        }\n        m = MethodResolver.getMethod(classObj,\n                                     methodName,\n                                     methodArgs, \n                                     convertedArgs,\n                                     exprContext,\n                                     MethodResolver.STATIC_ONLY);\n        if (methodKey != null)\n          putToCache(methodKey, null, methodArgs, m);\n        \n        if (trans != null && trans.getDebug()) {\n            trans.getTraceManager().fireExtensionEvent(m, null, convertedArgs[0]);            \n            Object result;\n            try {\n                result = m.invoke(null, convertedArgs[0]);\n            } catch (Exception e) {\n                throw e;\n            } finally {\n                trans.getTraceManager().fireExtensionEndEvent(m, null, convertedArgs[0]);\n            }\n            return result;\n        }\n        else\n            return m.invoke(null, convertedArgs[0]);\n      \n\n\n        if (args.size() < 1)\n        {\n        }\n        targetObject = args.elementAt(0);\n          targetObject = ((XObject) targetObject).object();\n        methodArgs = new Object[args.size() - 1];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i+1);\n        }\n        Method m = (methodKey != null) ?\n          (Method) getFromCache(methodKey, targetObject, methodArgs) : null;\n        \n        if (m != null)\n        {\n          try\n          {\n            paramTypes = m.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            return m.invoke(targetObject, convertedArgs[0]);\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n        classObj = targetObject.getClass();\n        m = MethodResolver.getMethod(classObj,\n                                     funcName,\n                                     methodArgs, \n                                     convertedArgs,\n                                     exprContext,\n                                     MethodResolver.INSTANCE_ONLY);\n        if (methodKey != null)\n          putToCache(methodKey, targetObject, methodArgs, m);\n        \n        if (trans != null && trans.getDebug()) {\n            trans.getTraceManager().fireExtensionEvent(m, targetObject, convertedArgs[0]);            \n            Object result;\n            try {\n                result = m.invoke(targetObject, convertedArgs[0]);\n            } catch (Exception e) {\n                throw e;\n            } finally {\n                trans.getTraceManager().fireExtensionEndEvent(m, targetObject, convertedArgs[0]);\n            }\n            return result;\n        } else       \n            return m.invoke(targetObject, convertedArgs[0]);\n      \n    }\n    catch (InvocationTargetException ite)\n    {\n      Throwable resultException = ite;\n      Throwable targetException = ite.getTargetException();\n \n      if (targetException instanceof TransformerException)\n        throw ((TransformerException)targetException);\n      else if (targetException != null)\n        resultException = targetException;\n            \n      throw new TransformerException(resultException);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException(e);\n    }\n  }\n\n  /**\n   * Process a call to an XPath extension function\n   *\n   * @param extFunction The XPath extension function\n   * @param args The arguments of the function call.\n   * @param exprContext The context in which this expression is being executed.\n   * @return the return value of the function evaluation.\n   * @throws TransformerException\n   */\n  public Object callFunction(FuncExtFunction extFunction,\n                             Vector args,\n                             ExpressionContext exprContext)\n      throws TransformerException\n  {\n    return callFunction(extFunction.getFunctionName(), args, \n                        extFunction.getMethodKey(), exprContext);\n  }\n\n  /**\n   * Process a call to this extension namespace via an element. As a side\n   * effect, the results are sent to the TransformerImpl's result tree.\n   * For this namespace, only static element methods are currently supported.\n   * If instance methods are needed, please let us know your requirements.\n   * @param localPart      Element name's local part.\n   * @param element        The extension element being processed.\n   * @param transformer      Handle to TransformerImpl.\n   * @param stylesheetTree The compiled stylesheet tree.\n   * @param methodKey      A key that uniquely identifies this element call.\n   * @throws IOException           if loading trouble\n   * @throws TransformerException          if parsing trouble\n   */\n\n  public void processElement (String localPart,\n                              ElemTemplateElement element,\n                              TransformerImpl transformer,\n                              Stylesheet stylesheetTree,\n                              Object methodKey)\n    throws TransformerException, IOException\n  {\n    Object result = null;\n    Class classObj;\n\n    Method m = (Method) getFromCache(methodKey, null, null);\n    if (null == m)\n    {\n      try\n      {\n        String fullName = m_className + localPart;\n        int lastDot = fullName.lastIndexOf(\".\");\n        if (lastDot < 0)\n        try\n        {\n          classObj = getClassForName(fullName.substring(0, lastDot));\n        }\n        catch (ClassNotFoundException e) \n        {\n          throw new TransformerException(e);\n        }\n        localPart = fullName.substring(lastDot + 1);\n        m = MethodResolver.getElementMethod(classObj, localPart);\n        if (!Modifier.isStatic(m.getModifiers())){}\n      }\n      catch (Exception e)\n      {\n        throw new TransformerException (e);\n      }\n      putToCache(methodKey, null, null, m);\n    }\n\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, \n                                                      stylesheetTree);\n\n    try\n    {\n      if (transformer.getDebug()) {\n          transformer.getTraceManager().fireExtensionEvent(m, null, new Object[] {xpc, element});\n        try {\n            result = m.invoke(null, new Object[] {xpc, element});\n        } catch (Exception e) {\n            throw e;\n        } finally {            \n            transformer.getTraceManager().fireExtensionEndEvent(m, null, new Object[] {xpc, element});\n        }\n      } else\n        result = m.invoke(null, new Object[] {xpc, element});\n    }\n    catch (InvocationTargetException ite)\n    {\n      Throwable resultException = ite;\n      Throwable targetException = ite.getTargetException();\n \n      if (targetException instanceof TransformerException)\n        throw ((TransformerException)targetException);\n      else if (targetException != null)\n        resultException = targetException;\n            \n      throw new TransformerException(resultException);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException (e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree (stylesheetTree, result);", "functions": [{"function_name": "isFunctionAvailable", "code": "  public boolean isFunctionAvailable(String function) \n  {\n    try\n    {\n      String fullName = m_className + function;\n      int lastDot = fullName.lastIndexOf(\".\");\n      if (lastDot >= 0)\n      {\n        Class myClass = getClassForName(fullName.substring(0, lastDot));\n        Method[] methods = myClass.getMethods();\n        int nMethods = methods.length;\n        function = fullName.substring(lastDot + 1);\n        for (int i = 0; i < nMethods; i++)\n        {\n          if (methods[i].getName().equals(function))\n            return true;\n        }\n      }\n    }\n    catch (ClassNotFoundException cnfe) {}\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [9, 14], [7, 15], [8, 16], [10, 17], [6, 18], [15, 19], [10, 20], [18, 21], [12, 22], [13, 23], [20, 24], [10, 25], [21, 26], [23, 27], [24, 28], [20, 29], [20, 30], [26, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 6], [10, 6], [11, 6], [12, 6], [13, 6], [14, 9], [15, 7], [16, 8], [17, 10], [18, 6], [19, 15], [20, 10], [21, 18], [22, 12], [23, 13], [24, 20], [25, 10], [26, 21], [27, 23], [28, 24], [29, 20], [30, 20], [31, 26], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "isElementAvailable", "code": "  public boolean isElementAvailable(String element) \n  {\n    try\n    {\n      String fullName = m_className + element;\n      int lastDot = fullName.lastIndexOf(\".\");\n      if (lastDot >= 0)\n      {\n        Class myClass = getClassForName(fullName.substring(0, lastDot));\n        Method[] methods = myClass.getMethods();\n        int nMethods = methods.length;\n        element = fullName.substring(lastDot + 1);\n        for (int i = 0; i < nMethods; i++)\n        {\n          if (methods[i].getName().equals(element))\n          {\n            Class[] paramTypes = methods[i].getParameterTypes();\n            if ( (paramTypes.length == 2)\n              && paramTypes[0].isAssignableFrom(\n                                     org.apache.xalan.extensions.XSLProcessorContext.class)\n              && paramTypes[1].isAssignableFrom(\n                                       org.apache.xalan.templates.ElemExtensionCall.class) )\n            {\n              return true;\n            }\n          }\n        }\n      }\n    }\n    catch (ClassNotFoundException cnfe) {}\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [9, 14], [7, 15], [8, 16], [10, 17], [6, 18], [15, 19], [10, 20], [18, 21], [12, 22], [13, 23], [10, 24], [21, 25], [23, 26], [20, 27], [20, 28], [20, 29], [20, 30], [25, 31], [26, 32], [27, 33], [27, 34], [33, 35], [34, 36], [33, 37], [35, 38], [28, 39], [33, 40], [35, 41], [38, 42], [35, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 6], [10, 6], [11, 6], [12, 6], [13, 6], [14, 9], [15, 7], [16, 8], [17, 10], [18, 6], [19, 15], [20, 10], [21, 18], [22, 12], [23, 13], [24, 10], [25, 21], [26, 23], [27, 20], [28, 20], [29, 20], [30, 20], [31, 25], [32, 26], [33, 27], [34, 27], [35, 33], [36, 34], [37, 33], [38, 35], [39, 28], [40, 33], [41, 35], [42, 38], [43, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "callFunction", "code": "  public Object callFunction (String funcName, \n                              Vector args, \n                              Object methodKey,\n                              ExpressionContext exprContext)\n    throws TransformerException \n  {\n\n    String className;\n    String methodName;\n    Class  classObj;\n    Object targetObject;\n    int lastDot = funcName.lastIndexOf(\".\");\n    Object[] methodArgs;\n    Object[][] convertedArgs;\n    Class[] paramTypes;\n\n    try\n    {\n      TransformerImpl trans = (exprContext != null) ?\n        (TransformerImpl)exprContext.getXPathContext().getOwnerObject() : null;\n\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        \n        Constructor c = (methodKey != null) ?\n          (Constructor) getFromCache(methodKey, null, methodArgs) : null;\n        \n        if (c != null)\n        {\n          try\n          {\n            paramTypes = c.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            return c.newInstance(convertedArgs[0]);\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n        className = m_className + funcName.substring(0, lastDot);\n        try\n        {\n          classObj = getClassForName(className);\n        }\n        catch (ClassNotFoundException e) \n        {\n          throw new TransformerException(e);\n        }\n        c = MethodResolver.getConstructor(classObj, \n                                          methodArgs,\n                                          convertedArgs,\n                                          exprContext);\n        if (methodKey != null)\n          putToCache(methodKey, null, methodArgs, c);\n        \n        if (trans != null && trans.getDebug()) {\n            trans.getTraceManager().fireExtensionEvent(new ExtensionEvent(trans, c, convertedArgs[0]));            \n            Object result;\n            try {\n                result = c.newInstance(convertedArgs[0]);\n            } catch (Exception e) {\n                throw e;\n            } finally {\n                trans.getTraceManager().fireExtensionEndEvent(new ExtensionEvent(trans, c, convertedArgs[0]));\n            }\n            return result;\n        } else\n            return c.newInstance(convertedArgs[0]);\n      \n\n\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        Method m = (methodKey != null) ?\n          (Method) getFromCache(methodKey, null, methodArgs) : null;\n        \n        if (m != null && !trans.getDebug())\n        {\n          try\n          {\n            paramTypes = m.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            return m.invoke(null, convertedArgs[0]);\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n        className = m_className + funcName.substring(0, lastDot);\n        methodName = funcName.substring(lastDot + 1);\n        try\n        {\n          classObj = getClassForName(className);\n        }\n        catch (ClassNotFoundException e) \n        {\n          throw new TransformerException(e);\n        }\n        m = MethodResolver.getMethod(classObj,\n                                     methodName,\n                                     methodArgs, \n                                     convertedArgs,\n                                     exprContext,\n                                     MethodResolver.STATIC_ONLY);\n        if (methodKey != null)\n          putToCache(methodKey, null, methodArgs, m);\n        \n        if (trans != null && trans.getDebug()) {\n            trans.getTraceManager().fireExtensionEvent(m, null, convertedArgs[0]);            \n            Object result;\n            try {\n                result = m.invoke(null, convertedArgs[0]);\n            } catch (Exception e) {\n                throw e;\n            } finally {\n                trans.getTraceManager().fireExtensionEndEvent(m, null, convertedArgs[0]);\n            }\n            return result;\n        }\n        else\n            return m.invoke(null, convertedArgs[0]);\n      \n\n\n        if (args.size() < 1)\n        {\n        }\n        targetObject = args.elementAt(0);\n          targetObject = ((XObject) targetObject).object();\n        methodArgs = new Object[args.size() - 1];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i+1);\n        }\n        Method m = (methodKey != null) ?\n          (Method) getFromCache(methodKey, targetObject, methodArgs) : null;\n        \n        if (m != null)\n        {\n          try\n          {\n            paramTypes = m.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            return m.invoke(targetObject, convertedArgs[0]);\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n        classObj = targetObject.getClass();\n        m = MethodResolver.getMethod(classObj,\n                                     funcName,\n                                     methodArgs, \n                                     convertedArgs,\n                                     exprContext,\n                                     MethodResolver.INSTANCE_ONLY);\n        if (methodKey != null)\n          putToCache(methodKey, targetObject, methodArgs, m);\n        \n        if (trans != null && trans.getDebug()) {\n            trans.getTraceManager().fireExtensionEvent(m, targetObject, convertedArgs[0]);            \n            Object result;\n            try {\n                result = m.invoke(targetObject, convertedArgs[0]);\n            } catch (Exception e) {\n                throw e;\n            } finally {\n                trans.getTraceManager().fireExtensionEndEvent(m, targetObject, convertedArgs[0]);\n            }\n            return result;\n        } else       \n            return m.invoke(targetObject, convertedArgs[0]);\n      \n    }\n    catch (InvocationTargetException ite)\n    {\n      Throwable resultException = ite;\n      Throwable targetException = ite.getTargetException();\n \n      if (targetException instanceof TransformerException)\n        throw ((TransformerException)targetException);\n      else if (targetException != null)\n        resultException = targetException;\n            \n      throw new TransformerException(resultException);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "IF", "IF", "VAR_DECL", "LOOP", "IF", "IF", "IF", "TRY", "IF", "VAR_DECL", "LOOP", "IF", "IF", "TRY", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CATCH", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "RETURN", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "BINARY_OP", "TRY", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "RETURN", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CATCH", "CATCH", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CATCH", "CATCH", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "CATCH", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [14, 35], [15, 36], [15, 37], [15, 38], [15, 39], [16, 40], [16, 41], [17, 42], [1, 43], [1, 44], [18, 45], [20, 46], [1, 47], [1, 48], [1, 49], [1, 50], [21, 51], [22, 52], [22, 53], [23, 54], [1, 55], [24, 56], [1, 57], [1, 58], [25, 59], [27, 60], [1, 61], [1, 62], [28, 63], [28, 64], [29, 65], [1, 66], [30, 67], [1, 68], [31, 69], [33, 70], [1, 71], [1, 72], [5, 73], [35, 74], [36, 75], [37, 76], [37, 77], [37, 78], [40, 79], [16, 80], [16, 81], [16, 82], [41, 83], [41, 84], [17, 85], [42, 86], [43, 87], [44, 88], [18, 89], [45, 90], [19, 91], [50, 92], [51, 93], [51, 94], [52, 95], [22, 96], [22, 97], [22, 98], [53, 99], [53, 100], [23, 101], [54, 102], [55, 103], [56, 104], [24, 105], [57, 106], [58, 107], [25, 108], [59, 109], [59, 110], [26, 111], [63, 112], [28, 113], [28, 114], [28, 115], [64, 116], [64, 117], [29, 118], [65, 119], [66, 120], [67, 121], [30, 122], [68, 123], [31, 124], [69, 125], [32, 126], [34, 127], [73, 128], [76, 129], [38, 130], [81, 131], [16, 132], [84, 133], [89, 134], [89, 135], [89, 136], [91, 137], [91, 138], [20, 139], [20, 140], [47, 141], [48, 142], [92, 143], [95, 144], [97, 145], [22, 146], [100, 147], [101, 148], [104, 149], [105, 150], [106, 151], [107, 152], [108, 153], [108, 154], [108, 155], [110, 156], [111, 157], [111, 158], [27, 159], [27, 160], [61, 161], [62, 162], [114, 163], [28, 164], [117, 165], [118, 166], [121, 167], [122, 168], [123, 169], [124, 170], [124, 171], [124, 172], [126, 173], [126, 174], [33, 175], [33, 176], [71, 177], [72, 178], [127, 179], [127, 180], [76, 181], [129, 182], [81, 183], [131, 184], [81, 185], [132, 186], [135, 187], [136, 188], [89, 189], [89, 190], [91, 191], [138, 192], [139, 193], [142, 194], [142, 195], [97, 196], [145, 197], [97, 198], [146, 199], [151, 200], [152, 201], [154, 202], [155, 203], [108, 204], [108, 205], [111, 206], [158, 207], [159, 208], [114, 209], [163, 210], [114, 211], [164, 212], [169, 213], [171, 214], [172, 215], [124, 216], [124, 217], [126, 218], [174, 219], [175, 220], [127, 221], [180, 222], [79, 223], [183, 224], [185, 225], [190, 226], [193, 227], [95, 228], [196, 229], [198, 230], [199, 231], [203, 232], [205, 233], [206, 234], [112, 235], [209, 236], [211, 237], [212, 238], [217, 239], [218, 240], [221, 241], [227, 242], [229, 243], [230, 244], [236, 245], [186, 246], [188, 247], [199, 248], [203, 249], [215, 250], [224, 251], [225, 252], [229, 253], [230, 254], [237, 255], [238, 256], [245, 257], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 14], [36, 15], [37, 15], [38, 15], [39, 15], [40, 16], [41, 16], [42, 17], [43, 1], [44, 1], [45, 18], [46, 20], [47, 1], [48, 1], [49, 1], [50, 1], [51, 21], [52, 22], [53, 22], [54, 23], [55, 1], [56, 24], [57, 1], [58, 1], [59, 25], [60, 27], [61, 1], [62, 1], [63, 28], [64, 28], [65, 29], [66, 1], [67, 30], [68, 1], [69, 31], [70, 33], [71, 1], [72, 1], [73, 5], [74, 35], [75, 36], [76, 37], [77, 37], [78, 37], [79, 40], [80, 16], [81, 16], [82, 16], [83, 41], [84, 41], [85, 17], [86, 42], [87, 43], [88, 44], [89, 18], [90, 45], [91, 19], [92, 50], [93, 51], [94, 51], [95, 52], [96, 22], [97, 22], [98, 22], [99, 53], [100, 53], [101, 23], [102, 54], [103, 55], [104, 56], [105, 24], [106, 57], [107, 58], [108, 25], [109, 59], [110, 59], [111, 26], [112, 63], [113, 28], [114, 28], [115, 28], [116, 64], [117, 64], [118, 29], [119, 65], [120, 66], [121, 67], [122, 30], [123, 68], [124, 31], [125, 69], [126, 32], [127, 34], [128, 73], [129, 76], [130, 38], [131, 81], [132, 16], [133, 84], [134, 89], [135, 89], [136, 89], [137, 91], [138, 91], [139, 20], [140, 20], [141, 47], [142, 48], [143, 92], [144, 95], [145, 97], [146, 22], [147, 100], [148, 101], [149, 104], [150, 105], [151, 106], [152, 107], [153, 108], [154, 108], [155, 108], [156, 110], [157, 111], [158, 111], [159, 27], [160, 27], [161, 61], [162, 62], [163, 114], [164, 28], [165, 117], [166, 118], [167, 121], [168, 122], [169, 123], [170, 124], [171, 124], [172, 124], [173, 126], [174, 126], [175, 33], [176, 33], [177, 71], [178, 72], [179, 127], [180, 127], [181, 76], [182, 129], [183, 81], [184, 131], [185, 81], [186, 132], [187, 135], [188, 136], [189, 89], [190, 89], [191, 91], [192, 138], [193, 139], [194, 142], [195, 142], [196, 97], [197, 145], [198, 97], [199, 146], [200, 151], [201, 152], [202, 154], [203, 155], [204, 108], [205, 108], [206, 111], [207, 158], [208, 159], [209, 114], [210, 163], [211, 114], [212, 164], [213, 169], [214, 171], [215, 172], [216, 124], [217, 124], [218, 126], [219, 174], [220, 175], [221, 127], [222, 180], [223, 79], [224, 183], [225, 185], [226, 190], [227, 193], [228, 95], [229, 196], [230, 198], [231, 199], [232, 203], [233, 205], [234, 206], [235, 112], [236, 209], [237, 211], [238, 212], [239, 217], [240, 218], [241, 221], [242, 227], [243, 229], [244, 230], [245, 236], [246, 186], [247, 188], [248, 199], [249, 203], [250, 215], [251, 224], [252, 225], [253, 229], [254, 230], [255, 237], [256, 238], [257, 245], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257]]}, {"function_name": "callFunction", "code": "  public Object callFunction(FuncExtFunction extFunction,\n                             Vector args,\n                             ExpressionContext exprContext)\n      throws TransformerException\n  {\n    return callFunction(extFunction.getFunctionName(), args, \n                        extFunction.getMethodKey(), exprContext);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "processElement", "code": "  public void processElement (String localPart,\n                              ElemTemplateElement element,\n                              TransformerImpl transformer,\n                              Stylesheet stylesheetTree,\n                              Object methodKey)\n    throws TransformerException, IOException\n  {\n    Object result = null;\n    Class classObj;\n\n    Method m = (Method) getFromCache(methodKey, null, null);\n    if (null == m)\n    {\n      try\n      {\n        String fullName = m_className + localPart;\n        int lastDot = fullName.lastIndexOf(\".\");\n        if (lastDot < 0)\n        try\n        {\n          classObj = getClassForName(fullName.substring(0, lastDot));\n        }\n        catch (ClassNotFoundException e) \n        {\n          throw new TransformerException(e);\n        }\n        localPart = fullName.substring(lastDot + 1);\n        m = MethodResolver.getElementMethod(classObj, localPart);\n        if (!Modifier.isStatic(m.getModifiers())){}\n      }\n      catch (Exception e)\n      {\n        throw new TransformerException (e);\n      }\n      putToCache(methodKey, null, null, m);\n    }\n\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, \n                                                      stylesheetTree);\n\n    try\n    {\n      if (transformer.getDebug()) {\n          transformer.getTraceManager().fireExtensionEvent(m, null, new Object[] {xpc, element});\n        try {\n            result = m.invoke(null, new Object[] {xpc, element});\n        } catch (Exception e) {\n            throw e;\n        } finally {            \n            transformer.getTraceManager().fireExtensionEndEvent(m, null, new Object[] {xpc, element});\n        }\n      } else\n        result = m.invoke(null, new Object[] {xpc, element});\n    }\n    catch (InvocationTargetException ite)\n    {\n      Throwable resultException = ite;\n      Throwable targetException = ite.getTargetException();\n \n      if (targetException instanceof TransformerException)\n        throw ((TransformerException)targetException);\n      else if (targetException != null)\n        resultException = targetException;\n            \n      throw new TransformerException(resultException);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException (e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree (stylesheetTree, result);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "CATCH", "IF", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "THROW_RAISE", "BINARY_OP", "ASSIGN", "TRY", "CALL", "CATCH", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "ASSIGN", "ASSIGN", "TRY", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [2, 15], [2, 16], [4, 17], [13, 18], [14, 19], [15, 20], [15, 21], [15, 22], [15, 23], [16, 24], [3, 25], [4, 26], [17, 27], [7, 28], [1, 29], [19, 30], [20, 31], [21, 32], [21, 33], [21, 34], [16, 35], [16, 36], [4, 37], [26, 38], [26, 39], [26, 40], [26, 41], [26, 42], [5, 43], [32, 44], [22, 45], [35, 46], [36, 47], [16, 48], [37, 49], [37, 50], [38, 51], [39, 52], [26, 53], [26, 54], [40, 55], [40, 56], [43, 57], [43, 58], [32, 59], [44, 60], [46, 61], [36, 62], [47, 63], [36, 64], [48, 65], [51, 66], [52, 67], [53, 68], [54, 69], [55, 70], [56, 71], [41, 72], [42, 73], [62, 74], [64, 75], [65, 76], [69, 77], [70, 78], [55, 79], [72, 80], [74, 81], [75, 82], [77, 83], [78, 84], [79, 85], [85, 86], [86, 87], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 2], [16, 2], [17, 4], [18, 13], [19, 14], [20, 15], [21, 15], [22, 15], [23, 15], [24, 16], [25, 3], [26, 4], [27, 17], [28, 7], [29, 1], [30, 19], [31, 20], [32, 21], [33, 21], [34, 21], [35, 16], [36, 16], [37, 4], [38, 26], [39, 26], [40, 26], [41, 26], [42, 26], [43, 5], [44, 32], [45, 22], [46, 35], [47, 36], [48, 16], [49, 37], [50, 37], [51, 38], [52, 39], [53, 26], [54, 26], [55, 40], [56, 40], [57, 43], [58, 43], [59, 32], [60, 44], [61, 46], [62, 36], [63, 47], [64, 36], [65, 48], [66, 51], [67, 52], [68, 53], [69, 54], [70, 55], [71, 56], [72, 41], [73, 42], [74, 62], [75, 64], [76, 65], [77, 69], [78, 70], [79, 55], [80, 72], [81, 74], [82, 75], [83, 77], [84, 78], [85, 79], [86, 85], [87, 86], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}, {"function_name": "ExtensionHandlerJavaPackage", "code": "  public ExtensionHandlerJavaPackage(String namespaceUri,\n                                     String scriptLang,\n                                     String className)\n  {\n    super(namespaceUri, scriptLang, className);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.5-6896", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/ValueOf.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.ValueOf", "code": "final class ValueOf extends Instruction {\n    private Expression _select;\n    private boolean _escaping = true;\n    private boolean _isString = false;\n\n    public void display(int indent) {\n        indent(indent);\n        Util.println(\"ValueOf\");\n        indent(indent + IndentIncrement);\n        Util.println(\"select \" + _select.toString());\n    }\n\n    public void parseContents(Parser parser) {\n        _select = parser.parseExpression(this, \"select\", null);\n\n        if (_select.isDummy()) {\n            reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"select\");\n            return;\n        }\n        final String str = getAttribute(\"disable-output-escaping\");\n        if ((str != null) && (str.equals(\"yes\"))) _escaping = false;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n        Type type = _select.typeCheck(stable);\n\n        if (type != null && !type.identicalTo(Type.Node)) {\n            /***\n             *** %HZ% Would like to treat result-tree fragments in the same\n             *** %HZ% way as node sets for value-of, but that's running into\n             *** %HZ% some snags.  Instead, they'll be converted to String\n            if (type.identicalTo(Type.ResultTree)) {\n                _select = new CastExpr(new CastExpr(_select, Type.NodeSet),\n                                       Type.Node);\n            } else\n            ***/\n            if (type.identicalTo(Type.NodeSet)) {\n                _select = new CastExpr(_select, Type.Node);\n            } else {\n                _isString = true;\n                if (!type.identicalTo(Type.String)) {\n                    _select = new CastExpr(_select, Type.String);\n                }\n                _isString = true;\n            }\n        }\n        return Type.Void;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n        final ConstantPoolGen cpg = classGen.getConstantPool();\n        final InstructionList il = methodGen.getInstructionList();\n        final int setEscaping = cpg.addInterfaceMethodref(OUTPUT_HANDLER,\n                                                          \"setEscaping\",\"(Z)Z\");\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(new PUSH(cpg,false));\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n        }\n\n        if (_isString) {\n            final int characters = cpg.addMethodref(TRANSLET_CLASS,\n                                                    CHARACTERSW,\n                                                    CHARACTERSW_SIG);\n\n            il.append(classGen.loadTranslet());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEVIRTUAL(characters));\n        } else {\n            final int characters = cpg.addInterfaceMethodref(DOM_INTF,\n                                                             CHARACTERS,\n                                                             CHARACTERS_SIG);\n\n            il.append(methodGen.loadDOM());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEINTERFACE(characters, 3));\n        }\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(SWAP);\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n            il.append(POP);", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n        indent(indent);\n        Util.println(\"ValueOf\");\n        indent(indent + IndentIncrement);\n        Util.println(\"select \" + _select.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n        _select = parser.parseExpression(this, \"select\", null);\n\n        if (_select.isDummy()) {\n            reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"select\");\n            return;\n        }\n        final String str = getAttribute(\"disable-output-escaping\");\n        if ((str != null) && (str.equals(\"yes\"))) _escaping = false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [0, 7], [1, 8], [5, 9], [5, 10], [2, 11], [3, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [3, 18], [13, 19], [13, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 0], [8, 1], [9, 5], [10, 5], [11, 2], [12, 3], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 3], [19, 13], [20, 13], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n        Type type = _select.typeCheck(stable);\n\n        if (type != null && !type.identicalTo(Type.Node)) {\n            /***\n             *** %HZ% Would like to treat result-tree fragments in the same\n             *** %HZ% way as node sets for value-of, but that's running into\n             *** %HZ% some snags.  Instead, they'll be converted to String\n            if (type.identicalTo(Type.ResultTree)) {\n                _select = new CastExpr(new CastExpr(_select, Type.NodeSet),\n                                       Type.Node);\n            } else\n            ***/\n            if (type.identicalTo(Type.NodeSet)) {\n                _select = new CastExpr(_select, Type.Node);\n            } else {\n                _isString = true;\n                if (!type.identicalTo(Type.String)) {\n                    _select = new CastExpr(_select, Type.String);\n                }\n                _isString = true;\n            }\n        }\n        return Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [6, 10], [8, 11], [6, 12], [6, 13], [12, 14], [6, 15], [6, 16], [13, 17], [15, 18], [16, 19], [12, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 6], [11, 8], [12, 6], [13, 6], [14, 12], [15, 6], [16, 6], [17, 13], [18, 15], [19, 16], [20, 12], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n        final ConstantPoolGen cpg = classGen.getConstantPool();\n        final InstructionList il = methodGen.getInstructionList();\n        final int setEscaping = cpg.addInterfaceMethodref(OUTPUT_HANDLER,\n                                                          \"setEscaping\",\"(Z)Z\");\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(new PUSH(cpg,false));\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n        }\n\n        if (_isString) {\n            final int characters = cpg.addMethodref(TRANSLET_CLASS,\n                                                    CHARACTERSW,\n                                                    CHARACTERSW_SIG);\n\n            il.append(classGen.loadTranslet());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEVIRTUAL(characters));\n        } else {\n            final int characters = cpg.addInterfaceMethodref(DOM_INTF,\n                                                             CHARACTERS,\n                                                             CHARACTERS_SIG);\n\n            il.append(methodGen.loadDOM());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEINTERFACE(characters, 3));\n        }\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(SWAP);\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n            il.append(POP);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [4, 11], [5, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [3, 26], [3, 27], [3, 28], [11, 29], [11, 30], [15, 31], [17, 32], [18, 33], [19, 34], [21, 35], [9, 36], [22, 37], [23, 38], [25, 39], [10, 40], [26, 41], [27, 42], [28, 43], [31, 44], [33, 45], [41, 46], [42, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 4], [12, 5], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 3], [27, 3], [28, 3], [29, 11], [30, 11], [31, 15], [32, 17], [33, 18], [34, 19], [35, 21], [36, 9], [37, 22], [38, 23], [39, 25], [40, 10], [41, 26], [42, 27], [43, 28], [44, 31], [45, 33], [46, 41], [47, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}], "label": 0}
{"sample_id": "xalan-2.5-7314", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/templates/ElemWhen.java", "language": "java", "name": "org.apache.xalan.templates.ElemWhen", "code": "public class ElemWhen extends ElemTemplateElement\n{\n\n  /**\n   * Each xsl:when element has a single attribute, test,\n   * which specifies an expression.\n   * @serial\n   */\n  private XPath m_test;\n\n  /**\n   * Set the \"test\" attribute.\n   * Each xsl:when element has a single attribute, test,\n   * which specifies an expression.\n   *\n   * @param v Value to set for the \"test\" attribute.\n   */\n  public void setTest(XPath v)\n  {\n    m_test = v;\n  }\n\n  /**\n   * Get the \"test\" attribute.\n   * Each xsl:when element has a single attribute, test,\n   * which specifies an expression.\n   *\n   * @return Value of the \"test\" attribute.\n   */\n  public XPath getTest()\n  {\n    return m_test;\n  }\n\n  /**\n   * Get an integer representation of the element type.\n   *\n   * @return An integer representation of the element, defined in the\n   *     Constants class.\n   * @see org.apache.xalan.templates.Constants\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_WHEN;\n  }\n  \n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) \n    throws javax.xml.transform.TransformerException\n  {\n    super.compose(sroot);\n    java.util.Vector vnames = sroot.getComposeState().getVariableNames();\n    if(null != m_test)\n      m_test.fixupVariables(vnames, sroot.getComposeState().getGlobalsSize());\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The node name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_WHEN_STRING;\n  }\n\n  /**\n   * Constructor ElemWhen\n   *\n   */\n  public ElemWhen(){}\n  \n  /**\n   * Call the children visitors.\n   * @param visitor The visitor whose appropriate method will be called.\n   */\n  protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n  {\n  \tif(callAttrs)\n  \t\tm_test.getExpression().callVisitors(m_test, visitor);\n    super.callChildVisitors(visitor, callAttrs);", "functions": [{"function_name": "setTest", "code": "  public void setTest(XPath v)\n  {\n    m_test = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTest", "code": "  public XPath getTest()\n  {\n    return m_test;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_WHEN;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) \n    throws javax.xml.transform.TransformerException\n  {\n    super.compose(sroot);\n    java.util.Vector vnames = sroot.getComposeState().getVariableNames();\n    if(null != m_test)\n      m_test.fixupVariables(vnames, sroot.getComposeState().getGlobalsSize());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [5, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 5], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_WHEN_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "callChildVisitors", "code": "  protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n  {\n  \tif(callAttrs)\n  \t\tm_test.getExpression().callVisitors(m_test, visitor);\n    super.callChildVisitors(visitor, callAttrs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ElemWhen", "code": "  public ElemWhen(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.2-1934", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/impl/LoggingExceptionHandler.java", "language": "java", "name": "org.apache.camel.impl.LoggingExceptionHandler", "code": "public class LoggingExceptionHandler implements ExceptionHandler {\n    private final Logger logger;\n\n    public LoggingExceptionHandler(Class ownerType) {\n        this(new Logger(LogFactory.getLog(ownerType), LoggingLevel.ERROR));\n    }\n\n    public LoggingExceptionHandler(Logger logger) {\n        this.logger = logger;\n    }\n\n    public void handleException(Throwable exception) {\n        logger.log(exception.getMessage(), exception);", "functions": [{"function_name": "handleException", "code": "    public void handleException(Throwable exception) {\n        logger.log(exception.getMessage(), exception);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LoggingExceptionHandler", "code": "    public LoggingExceptionHandler(Class ownerType) {\n        this(new Logger(LogFactory.getLog(ownerType), LoggingLevel.ERROR));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LoggingExceptionHandler", "code": "    public LoggingExceptionHandler(Logger logger) {\n        this.logger = logger;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.3-1", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/DefaultLogger.java", "language": "java", "name": "org.apache.tools.ant.DefaultLogger", "code": "public class DefaultLogger implements BuildLogger {\n    private static int LEFT_COLUMN_SIZE = 12;\n\n    protected PrintStream out;\n    protected PrintStream err;\n    protected int msgOutputLevel = Project.MSG_ERR;\n    private long startTime = System.currentTimeMillis();\n\n    protected static String lSep = System.getProperty(\"line.separator\");\n\n    protected boolean emacsMode = false;\n\n    /**\n     * Set the msgOutputLevel this logger is to respond to.\n     *\n     * Only messages with a message level lower than or equal to the given level are \n     * output to the log.\n     * <P>\n     * Constants for the message levels are in Project.java. The order of\n     * the levels, from least to most verbose, is MSG_ERR, MSG_WARN,\n     * MSG_INFO, MSG_VERBOSE, MSG_DEBUG.\n     *\n     * The default message level for DefaultLogger is Project.MSG_ERR.\n     *\n     * @param level the logging level for the logger.\n     */\n    public void setMessageOutputLevel(int level) {\n        this.msgOutputLevel = level;\n    }\n\n    \n    /**\n     * Set the output stream to which this logger is to send its output.\n     *\n     * @param output the output stream for the logger.\n     */\n    public void setOutputPrintStream(PrintStream output) {\n        this.out = output;\n    }\n\n    /**\n     * Set the output stream to which this logger is to send error messages.\n     *\n     * @param err the error stream for the logger.\n     */\n    public void setErrorPrintStream(PrintStream err) {\n        this.err = err;\n    }\n\n    /**\n     * Set this logger to produce emacs (and other editor) friendly output.\n     *\n     * @param emacsMode true if output is to be unadorned so that emacs and other\n     * editors can parse files names, etc.\n     */\n    public void setEmacsMode(boolean emacsMode) {\n        this.emacsMode = emacsMode;\n    }\n\n\n    public void buildStarted(BuildEvent event) {\n        startTime = System.currentTimeMillis();\n    }\n\n    /**\n     *  Prints whether the build succeeded or failed, and\n     *  any errors the occured during the build.\n     */\n    public void buildFinished(BuildEvent event) {\n        Throwable error = event.getException();\n\n        if (error == null) {\n            out.println(lSep + \"BUILD SUCCESSFUL\");\n        }\n        else {\n            err.println(lSep + \"BUILD FAILED\" + lSep);\n\n            error.printStackTrace(err);\n        }\n\n        out.println(lSep + \"Total time: \" + formatTime(System.currentTimeMillis() - startTime));\n    }\n\n    public void targetStarted(BuildEvent event) {\n        if (Project.MSG_INFO <= msgOutputLevel) {\n            out.println(lSep + event.getTarget().getName() + \":\");\n        }\n    }\n\n    public void targetFinished(BuildEvent event) {\n    }\n\n    public void taskStarted(BuildEvent event) {}\n    public void taskFinished(BuildEvent event) {}\n\n    public void messageLogged(BuildEvent event) {\n\n        PrintStream logTo = event.getPriority() == Project.MSG_ERR ? err : out;\n\n        if (event.getPriority() <= msgOutputLevel) {\n\n            if (event.getTask() != null) {\n                String name = event.getTask().getTaskName();\n\n                if (!emacsMode) {\n                    String msg = \"[\" + name + \"] \";\n                    for (int i = 0; i < (LEFT_COLUMN_SIZE - msg.length()); i++) {\n                        logTo.print(\" \");\n                    }\n                    logTo.print(msg);\n                }\n            }\n\n            logTo.println(event.getMessage());\n        }\n    }\n\n    protected static String formatTime(long millis) {\n        long seconds = millis / 1000;\n        long minutes = seconds / 60;\n\n\n        if (minutes > 0) {\n            return Long.toString(minutes) + \" minute\"\n                + (minutes == 1 ? \" \" : \"s \")\n                + Long.toString(seconds%60) + \" second\"\n                + (seconds%60 == 1 ? \"\" : \"s\");\n        }\n        else {\n            return Long.toString(seconds) + \" second\"\n                + (seconds%60 == 1 ? \"\" : \"s\");", "functions": [{"function_name": "setMessageOutputLevel", "code": "    public void setMessageOutputLevel(int level) {\n        this.msgOutputLevel = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutputPrintStream", "code": "    public void setOutputPrintStream(PrintStream output) {\n        this.out = output;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorPrintStream", "code": "    public void setErrorPrintStream(PrintStream err) {\n        this.err = err;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setEmacsMode", "code": "    public void setEmacsMode(boolean emacsMode) {\n        this.emacsMode = emacsMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {\n        startTime = System.currentTimeMillis();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        Throwable error = event.getException();\n\n        if (error == null) {\n            out.println(lSep + \"BUILD SUCCESSFUL\");\n        }\n        else {\n            err.println(lSep + \"BUILD FAILED\" + lSep);\n\n            error.printStackTrace(err);\n        }\n\n        out.println(lSep + \"Total time: \" + formatTime(System.currentTimeMillis() - startTime));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [5, 7], [2, 8], [6, 9], [6, 10], [1, 11], [1, 12], [1, 13], [9, 14], [10, 15], [12, 16], [13, 17], [14, 18], [16, 19], [17, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 5], [8, 2], [9, 6], [10, 6], [11, 1], [12, 1], [13, 1], [14, 9], [15, 10], [16, 12], [17, 13], [18, 14], [19, 16], [20, 17], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {\n        if (Project.MSG_INFO <= msgOutputLevel) {\n            out.println(lSep + event.getTarget().getName() + \":\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {\n\n        PrintStream logTo = event.getPriority() == Project.MSG_ERR ? err : out;\n\n        if (event.getPriority() <= msgOutputLevel) {\n\n            if (event.getTask() != null) {\n                String name = event.getTask().getTaskName();\n\n                if (!emacsMode) {\n                    String msg = \"[\" + name + \"] \";\n                    for (int i = 0; i < (LEFT_COLUMN_SIZE - msg.length()); i++) {\n                        logTo.print(\" \");\n                    }\n                    logTo.print(msg);\n                }\n            }\n\n            logTo.println(event.getMessage());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [1, 8], [5, 9], [7, 10], [8, 11], [5, 12], [5, 13], [9, 14], [9, 15], [10, 16], [12, 17], [12, 18], [13, 19], [12, 20], [17, 21], [19, 22], [21, 23], [18, 24], [17, 25], [23, 26], [17, 27], [24, 28], [24, 29], [25, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 1], [9, 5], [10, 7], [11, 8], [12, 5], [13, 5], [14, 9], [15, 9], [16, 10], [17, 12], [18, 12], [19, 13], [20, 12], [21, 17], [22, 19], [23, 21], [24, 18], [25, 17], [26, 23], [27, 17], [28, 24], [29, 24], [30, 25], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "formatTime", "code": "    protected static String formatTime(long millis) {\n        long seconds = millis / 1000;\n        long minutes = seconds / 60;\n\n\n        if (minutes > 0) {\n            return Long.toString(minutes) + \" minute\"\n                + (minutes == 1 ? \" \" : \"s \")\n                + Long.toString(seconds%60) + \" second\"\n                + (seconds%60 == 1 ? \"\" : \"s\");\n        }\n        else {\n            return Long.toString(seconds) + \" second\"\n                + (seconds%60 == 1 ? \"\" : \"s\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [3, 10], [6, 11], [7, 12], [9, 13], [10, 14], [11, 15], [11, 16], [12, 17], [12, 18], [15, 19], [15, 20], [15, 21], [16, 22], [16, 23], [17, 24], [17, 25], [17, 26], [18, 27], [18, 28], [21, 29], [21, 30], [26, 31], [26, 32], [28, 33], [28, 34], [30, 35], [32, 36], [33, 37], [34, 38], [34, 39], [37, 40], [38, 41], [38, 42], [38, 43], [39, 44], [39, 45], [43, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 3], [11, 6], [12, 7], [13, 9], [14, 10], [15, 11], [16, 11], [17, 12], [18, 12], [19, 15], [20, 15], [21, 15], [22, 16], [23, 16], [24, 17], [25, 17], [26, 17], [27, 18], [28, 18], [29, 21], [30, 21], [31, 26], [32, 26], [33, 28], [34, 28], [35, 30], [36, 32], [37, 33], [38, 34], [39, 34], [40, 37], [41, 38], [42, 38], [43, 38], [44, 39], [45, 39], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}], "label": 1}
{"sample_id": "ivy-2.0-3543", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/ant/IvyPublish.java", "language": "java", "name": "org.apache.ivy.ant.IvyPublish", "code": "public class IvyPublish extends IvyTask {\n    private String organisation;\n\n    private String module;\n\n    private String revision;\n\n    private String pubRevision;\n\n    private String srcivypattern;\n\n    private String status;\n\n    private String conf = null;\n\n    private String pubdate;\n\n    private String deliverTarget;\n\n    private String publishResolverName = null;\n\n    private List artifactspattern = new ArrayList();\n\n    private File deliveryList;\n\n    private boolean publishivy = true;\n\n    private boolean warnonmissing = true;\n\n    private boolean haltonmissing = true;\n\n    private boolean overwrite = false;\n\n    private boolean update = false;\n\n    private boolean replacedynamicrev = true;\n\n    private boolean forcedeliver;\n\n    private Collection artifacts = new ArrayList();\n\n    private String pubBranch;\n\n    public void setCache(File cache) {\n        cacheAttributeNotSupported();\n    }\n\n    public String getSrcivypattern() {\n        return srcivypattern;\n    }\n\n    public void setSrcivypattern(String destivypattern) {\n        srcivypattern = destivypattern;\n    }\n\n    /**\n     * @deprecated use {@link #getSrcivypattern()} instead.\n     */\n    public String getDeliverivypattern() {\n        return srcivypattern;\n    }\n\n    /**\n     * @deprecated use {@link #setSrcivypattern(String)} instead.\n     */\n    public void setDeliverivypattern(String destivypattern) {\n        srcivypattern = destivypattern;\n    }\n\n    public String getModule() {\n        return module;\n    }\n\n    public void setModule(String module) {\n        this.module = module;\n    }\n\n    public String getOrganisation() {\n        return organisation;\n    }\n\n    public void setOrganisation(String organisation) {\n        this.organisation = organisation;\n    }\n\n    public String getPubdate() {\n        return pubdate;\n    }\n\n    public void setPubdate(String pubdate) {\n        this.pubdate = pubdate;\n    }\n\n    public String getPubrevision() {\n        return pubRevision;\n    }\n\n    public void setPubrevision(String pubRevision) {\n        this.pubRevision = pubRevision;\n    }\n\n    public String getPubbranch() {\n        return pubBranch;\n    }\n    \n    public void setPubbranch(String pubBranch) {\n        this.pubBranch = pubBranch;\n    }\n\n    public String getRevision() {\n        return revision;\n    }\n\n    public void setRevision(String revision) {\n        this.revision = revision;\n    }\n\n    public String getStatus() {\n        return status;\n    }\n\n    public void setStatus(String status) {\n        this.status = status;\n    }\n\n    public void setConf(String conf) {\n        this.conf = conf;\n    }\n\n    public void setDelivertarget(String deliverTarget) {\n        this.deliverTarget = deliverTarget;\n    }\n\n    public void setDeliveryList(File deliveryList) {\n        this.deliveryList = deliveryList;\n    }\n\n    public String getResolver() {\n        return publishResolverName;\n    }\n\n    public void setResolver(String publishResolverName) {\n        this.publishResolverName = publishResolverName;\n    }\n\n    public String getArtifactspattern() {\n        return (String) (artifactspattern.isEmpty() ? null : artifactspattern.get(0));\n    }\n\n    public void setArtifactspattern(String artifactsPattern) {\n        artifactspattern.clear();\n        artifactspattern.add(artifactsPattern);\n    }\n\n    public void addArtifactspattern(String artifactsPattern) {\n        artifactspattern.add(artifactsPattern);\n    }\n\n    public void addConfiguredArtifacts(ArtifactsPattern p) {\n        artifactspattern.add(p.getPattern());\n    }\n\n    public boolean isReplacedynamicrev() {\n        return replacedynamicrev;\n    }\n\n    public void setReplacedynamicrev(boolean replacedynamicrev) {\n        this.replacedynamicrev = replacedynamicrev;\n    }\n\n    public void doExecute() throws BuildException {\n        Ivy ivy = getIvyInstance();\n        IvySettings settings = ivy.getSettings();\n\n        organisation = getProperty(organisation, settings, \"ivy.organisation\");\n        module = getProperty(module, settings, \"ivy.module\");\n        revision = getProperty(revision, settings, \"ivy.revision\");\n        pubBranch = getProperty(pubBranch, settings, \"ivy.deliver.branch\");\n        pubRevision = getProperty(pubRevision, settings, \"ivy.deliver.revision\");\n        if (artifactspattern.isEmpty()) {\n            String p = getProperty(null, settings, \"ivy.publish.src.artifacts.pattern\");\n            if (p != null) {\n                artifactspattern.add(p);\n            }\n        }\n        if (srcivypattern == null) {\n            srcivypattern = getArtifactspattern();\n        }\n        status = getProperty(status, settings, \"ivy.status\");\n        if (organisation == null) {\n            throw new BuildException(\n                    \"no organisation provided for ivy publish task: \"\n                    + \"It can either be set explicitely via the attribute 'organisation' \"\n                    + \"or via 'ivy.organisation' property or a prior call to <resolve/>\");\n        }\n        if (module == null) {\n            throw new BuildException(\n                    \"no module name provided for ivy publish task: \"\n                    + \"It can either be set explicitely via the attribute 'module' \"\n                    + \"or via 'ivy.module' property or a prior call to <resolve/>\");\n        }\n        if (revision == null) {\n            throw new BuildException(\n                    \"no module revision provided for ivy publish task: \"\n                    + \"It can either be set explicitely via the attribute 'revision' \"\n                    + \"or via 'ivy.revision' property or a prior call to <resolve/>\");\n        }\n        if (artifactspattern.isEmpty()) {\n            throw new BuildException(\n                    \"no artifacts pattern: either provide it through parameter or \"\n                    + \"through ivy.publish.src.artifacts.pattern property\");\n        }\n        if (publishResolverName == null) {\n            throw new BuildException(\n                    \"no publish deliver name: please provide it through parameter 'resolver'\");\n        }\n        if (\"working\".equals(revision)) {\n            revision = Ivy.getWorkingRevision();\n        }\n        Date pubdate = getPubDate(this.pubdate, new Date());\n        if (pubRevision == null) {\n            if (revision.startsWith(\"working@\")) {\n                pubRevision = Ivy.DATE_FORMAT.format(pubdate);\n            } else {\n                pubRevision = revision;\n            }\n        }\n        if (status == null) {\n            throw new BuildException(\n                    \"no status provided: either provide it as parameter \"\n                    + \"or through the ivy.status.default property\");\n        }\n        ModuleRevisionId mrid = ModuleRevisionId.newInstance(organisation, module, revision);\n        try {\n            File ivyFile = getProject().resolveFile(IvyPatternHelper.substitute(\n                    srcivypattern, organisation, module, pubRevision, \"ivy\", \"ivy\", \"xml\"));\n            if (publishivy && (!ivyFile.exists() || forcedeliver)) {\n                IvyDeliver deliver = new IvyDeliver();\n                deliver.setSettingsRef(getSettingsRef());\n                deliver.setTaskName(getTaskName());\n                deliver.setProject(getProject());\n                deliver.setDeliverpattern(getSrcivypattern());\n                deliver.setDelivertarget(deliverTarget);\n                deliver.setDeliveryList(deliveryList);\n                deliver.setModule(getModule());\n                deliver.setOrganisation(getOrganisation());\n                deliver.setPubdate(Ivy.DATE_FORMAT.format(pubdate));\n                deliver.setPubrevision(getPubrevision());\n                deliver.setPubbranch(getPubbranch());\n                deliver.setRevision(getRevision());\n                deliver.setStatus(getStatus());\n                deliver.setValidate(doValidate(settings));\n                deliver.setReplacedynamicrev(isReplacedynamicrev());\n                deliver.setConf(conf);\n\n                deliver.execute();\n            }\n\n            ivy.publish(mrid, artifactspattern, publishResolverName,\n                new PublishOptions()\n                    .setPubrevision(getPubrevision())\n                    .setPubbranch(getPubbranch())\n                    .setSrcIvyPattern(publishivy ? srcivypattern : null)\n                    .setStatus(getStatus())\n                    .setPubdate(pubdate)\n                    .setExtraArtifacts(\n                        (Artifact[]) artifacts.toArray(new Artifact[artifacts.size()]))\n                    .setValidate(doValidate(settings))\n                    .setOverwrite(overwrite)\n                    .setUpdate(update)\n                    .setWarnOnMissing(warnonmissing)\n                    .setHaltOnMissing(haltonmissing)\n                    .setConfs(splitConfs(conf)));\n        } catch (Exception e) {\n            if (e instanceof BuildException) {\n                throw (BuildException) e;\n            }\n            throw new BuildException(\"impossible to publish artifacts for \" + mrid + \": \" + e, e);\n        }\n    }\n\n    public PublishArtifact createArtifact() {\n        PublishArtifact art = new PublishArtifact();\n        artifacts.add(art);\n        return art;\n    }\n\n    public boolean isPublishivy() {\n        return publishivy;\n    }\n\n    public void setPublishivy(boolean publishivy) {\n        this.publishivy = publishivy;\n    }\n\n    public boolean isWarnonmissing() {\n        return warnonmissing;\n    }\n\n    public void setWarnonmissing(boolean warnonmissing) {\n        this.warnonmissing = warnonmissing;\n    }\n\n    public boolean isHaltonmissing() {\n        return haltonmissing;\n    }\n\n    public void setHaltonmissing(boolean haltonmissing) {\n        this.haltonmissing = haltonmissing;\n    }\n\n    public boolean isOverwrite() {\n        return overwrite;\n    }\n\n    public void setOverwrite(boolean overwrite) {\n        this.overwrite = overwrite;\n    }\n\n    public void setForcedeliver(boolean b) {\n        forcedeliver = b;\n    }\n\n    public boolean isForcedeliver() {\n        return forcedeliver;\n    }\n\n    public boolean isUpdate() {\n        return update;\n    }\n\n    public void setUpdate(boolean update) {\n        this.update = update;\n    }\n\n    public class PublishArtifact implements Artifact {\n        private String ext;\n\n        private String name;\n\n        private String type;\n\n        public String[] getConfigurations() {\n            return null;\n        }\n\n        public String getExt() {\n            return ext == null ? type : ext;\n        }\n\n        public ArtifactRevisionId getId() {\n            return null;\n        }\n\n        public ModuleRevisionId getModuleRevisionId() {\n            return null;\n        }\n\n        public String getName() {\n            return name;\n        }\n\n        public Date getPublicationDate() {\n            return null;\n        }\n\n        public String getType() {\n            return type;\n        }\n\n        public URL getUrl() {\n            return null;\n        }\n\n        public void setExt(String ext) {\n            this.ext = ext;\n        }\n\n        public void setName(String name) {\n            this.name = name;\n        }\n\n        public void setType(String type) {\n            this.type = type;\n        }\n\n        public String getAttribute(String attName) {\n            return null;\n        }\n\n        public Map getAttributes() {\n            return new HashMap();\n        }\n\n        public String getExtraAttribute(String attName) {\n            return null;\n        }\n\n        public Map getExtraAttributes() {\n            return new HashMap();\n        }\n        \n        public Map getQualifiedExtraAttributes() {\n            return new HashMap();\n        }\n\n        public String getStandardAttribute(String attName) {\n            return null;\n        }\n\n        public Map getStandardAttributes() {\n            return new HashMap();\n        }\n        \n        public boolean isMetadata() {\n            return false;\n        }\n    }\n\n    public static class ArtifactsPattern {\n        private String pattern;\n\n        public String getPattern() {\n            return pattern;\n        }\n\n        public void setPattern(String pattern) {\n            this.pattern = pattern;", "functions": [{"function_name": "setCache", "code": "    public void setCache(File cache) {\n        cacheAttributeNotSupported();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSrcivypattern", "code": "    public String getSrcivypattern() {\n        return srcivypattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSrcivypattern", "code": "    public void setSrcivypattern(String destivypattern) {\n        srcivypattern = destivypattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDeliverivypattern", "code": "    public String getDeliverivypattern() {\n        return srcivypattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDeliverivypattern", "code": "    public void setDeliverivypattern(String destivypattern) {\n        srcivypattern = destivypattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getModule", "code": "    public String getModule() {\n        return module;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setModule", "code": "    public void setModule(String module) {\n        this.module = module;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOrganisation", "code": "    public String getOrganisation() {\n        return organisation;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOrganisation", "code": "    public void setOrganisation(String organisation) {\n        this.organisation = organisation;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPubdate", "code": "    public String getPubdate() {\n        return pubdate;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPubdate", "code": "    public void setPubdate(String pubdate) {\n        this.pubdate = pubdate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPubrevision", "code": "    public String getPubrevision() {\n        return pubRevision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPubrevision", "code": "    public void setPubrevision(String pubRevision) {\n        this.pubRevision = pubRevision;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPubbranch", "code": "    public String getPubbranch() {\n        return pubBranch;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPubbranch", "code": "    public void setPubbranch(String pubBranch) {\n        this.pubBranch = pubBranch;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRevision", "code": "    public String getRevision() {\n        return revision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRevision", "code": "    public void setRevision(String revision) {\n        this.revision = revision;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStatus", "code": "    public String getStatus() {\n        return status;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStatus", "code": "    public void setStatus(String status) {\n        this.status = status;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setConf", "code": "    public void setConf(String conf) {\n        this.conf = conf;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDelivertarget", "code": "    public void setDelivertarget(String deliverTarget) {\n        this.deliverTarget = deliverTarget;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDeliveryList", "code": "    public void setDeliveryList(File deliveryList) {\n        this.deliveryList = deliveryList;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResolver", "code": "    public String getResolver() {\n        return publishResolverName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResolver", "code": "    public void setResolver(String publishResolverName) {\n        this.publishResolverName = publishResolverName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getArtifactspattern", "code": "    public String getArtifactspattern() {\n        return (String) (artifactspattern.isEmpty() ? null : artifactspattern.get(0));", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setArtifactspattern", "code": "    public void setArtifactspattern(String artifactsPattern) {\n        artifactspattern.clear();\n        artifactspattern.add(artifactsPattern);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addArtifactspattern", "code": "    public void addArtifactspattern(String artifactsPattern) {\n        artifactspattern.add(artifactsPattern);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addConfiguredArtifacts", "code": "    public void addConfiguredArtifacts(ArtifactsPattern p) {\n        artifactspattern.add(p.getPattern());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isReplacedynamicrev", "code": "    public boolean isReplacedynamicrev() {\n        return replacedynamicrev;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplacedynamicrev", "code": "    public void setReplacedynamicrev(boolean replacedynamicrev) {\n        this.replacedynamicrev = replacedynamicrev;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doExecute", "code": "    public void doExecute() throws BuildException {\n        Ivy ivy = getIvyInstance();\n        IvySettings settings = ivy.getSettings();\n\n        organisation = getProperty(organisation, settings, \"ivy.organisation\");\n        module = getProperty(module, settings, \"ivy.module\");\n        revision = getProperty(revision, settings, \"ivy.revision\");\n        pubBranch = getProperty(pubBranch, settings, \"ivy.deliver.branch\");\n        pubRevision = getProperty(pubRevision, settings, \"ivy.deliver.revision\");\n        if (artifactspattern.isEmpty()) {\n            String p = getProperty(null, settings, \"ivy.publish.src.artifacts.pattern\");\n            if (p != null) {\n                artifactspattern.add(p);\n            }\n        }\n        if (srcivypattern == null) {\n            srcivypattern = getArtifactspattern();\n        }\n        status = getProperty(status, settings, \"ivy.status\");\n        if (organisation == null) {\n            throw new BuildException(\n                    \"no organisation provided for ivy publish task: \"\n                    + \"It can either be set explicitely via the attribute 'organisation' \"\n                    + \"or via 'ivy.organisation' property or a prior call to <resolve/>\");\n        }\n        if (module == null) {\n            throw new BuildException(\n                    \"no module name provided for ivy publish task: \"\n                    + \"It can either be set explicitely via the attribute 'module' \"\n                    + \"or via 'ivy.module' property or a prior call to <resolve/>\");\n        }\n        if (revision == null) {\n            throw new BuildException(\n                    \"no module revision provided for ivy publish task: \"\n                    + \"It can either be set explicitely via the attribute 'revision' \"\n                    + \"or via 'ivy.revision' property or a prior call to <resolve/>\");\n        }\n        if (artifactspattern.isEmpty()) {\n            throw new BuildException(\n                    \"no artifacts pattern: either provide it through parameter or \"\n                    + \"through ivy.publish.src.artifacts.pattern property\");\n        }\n        if (publishResolverName == null) {\n            throw new BuildException(\n                    \"no publish deliver name: please provide it through parameter 'resolver'\");\n        }\n        if (\"working\".equals(revision)) {\n            revision = Ivy.getWorkingRevision();\n        }\n        Date pubdate = getPubDate(this.pubdate, new Date());\n        if (pubRevision == null) {\n            if (revision.startsWith(\"working@\")) {\n                pubRevision = Ivy.DATE_FORMAT.format(pubdate);\n            } else {\n                pubRevision = revision;\n            }\n        }\n        if (status == null) {\n            throw new BuildException(\n                    \"no status provided: either provide it as parameter \"\n                    + \"or through the ivy.status.default property\");\n        }\n        ModuleRevisionId mrid = ModuleRevisionId.newInstance(organisation, module, revision);\n        try {\n            File ivyFile = getProject().resolveFile(IvyPatternHelper.substitute(\n                    srcivypattern, organisation, module, pubRevision, \"ivy\", \"ivy\", \"xml\"));\n            if (publishivy && (!ivyFile.exists() || forcedeliver)) {\n                IvyDeliver deliver = new IvyDeliver();\n                deliver.setSettingsRef(getSettingsRef());\n                deliver.setTaskName(getTaskName());\n                deliver.setProject(getProject());\n                deliver.setDeliverpattern(getSrcivypattern());\n                deliver.setDelivertarget(deliverTarget);\n                deliver.setDeliveryList(deliveryList);\n                deliver.setModule(getModule());\n                deliver.setOrganisation(getOrganisation());\n                deliver.setPubdate(Ivy.DATE_FORMAT.format(pubdate));\n                deliver.setPubrevision(getPubrevision());\n                deliver.setPubbranch(getPubbranch());\n                deliver.setRevision(getRevision());\n                deliver.setStatus(getStatus());\n                deliver.setValidate(doValidate(settings));\n                deliver.setReplacedynamicrev(isReplacedynamicrev());\n                deliver.setConf(conf);\n\n                deliver.execute();\n            }\n\n            ivy.publish(mrid, artifactspattern, publishResolverName,\n                new PublishOptions()\n                    .setPubrevision(getPubrevision())\n                    .setPubbranch(getPubbranch())\n                    .setSrcIvyPattern(publishivy ? srcivypattern : null)\n                    .setStatus(getStatus())\n                    .setPubdate(pubdate)\n                    .setExtraArtifacts(\n                        (Artifact[]) artifacts.toArray(new Artifact[artifacts.size()]))\n                    .setValidate(doValidate(settings))\n                    .setOverwrite(overwrite)\n                    .setUpdate(update)\n                    .setWarnOnMissing(warnonmissing)\n                    .setHaltOnMissing(haltonmissing)\n                    .setConfs(splitConfs(conf)));\n        } catch (Exception e) {\n            if (e instanceof BuildException) {\n                throw (BuildException) e;\n            }\n            throw new BuildException(\"impossible to publish artifacts for \" + mrid + \": \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "IF", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [1, 17], [1, 18], [3, 19], [4, 20], [6, 21], [7, 22], [8, 23], [9, 24], [10, 25], [11, 26], [0, 27], [12, 28], [13, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [16, 35], [16, 36], [1, 37], [17, 38], [2, 39], [3, 40], [19, 41], [4, 42], [20, 43], [5, 44], [21, 45], [7, 46], [22, 47], [8, 48], [9, 49], [24, 50], [10, 51], [25, 52], [11, 53], [26, 54], [27, 55], [28, 56], [13, 57], [13, 58], [30, 59], [31, 60], [32, 61], [33, 62], [34, 63], [14, 64], [15, 65], [35, 66], [36, 67], [37, 68], [17, 69], [38, 70], [18, 71], [40, 72], [42, 73], [44, 74], [6, 75], [46, 76], [48, 77], [49, 78], [51, 79], [53, 80], [55, 81], [12, 82], [57, 83], [59, 84], [60, 85], [61, 86], [62, 87], [63, 88], [66, 89], [36, 90], [68, 91], [68, 92], [68, 93], [68, 94], [68, 95], [68, 96], [68, 97], [68, 98], [68, 99], [68, 100], [68, 101], [68, 102], [17, 103], [17, 104], [17, 105], [17, 106], [17, 107], [17, 108], [17, 109], [17, 110], [17, 111], [17, 112], [17, 113], [17, 114], [17, 115], [17, 116], [17, 117], [17, 118], [17, 119], [70, 120], [71, 121], [72, 122], [73, 123], [75, 124], [76, 125], [77, 126], [78, 127], [79, 128], [80, 129], [82, 130], [83, 131], [58, 132], [89, 133], [91, 134], [96, 135], [99, 136], [100, 137], [101, 138], [102, 139], [105, 140], [106, 141], [107, 142], [108, 143], [109, 144], [110, 145], [111, 146], [112, 147], [113, 148], [116, 149], [117, 150], [118, 151], [119, 152], [69, 153], [121, 154], [122, 155], [122, 156], [42, 157], [42, 158], [126, 159], [126, 160], [127, 161], [127, 162], [128, 163], [128, 164], [129, 165], [129, 166], [57, 167], [132, 168], [132, 169], [133, 170], [133, 171], [97, 172], [137, 173], [154, 174], [154, 175], [154, 176], [158, 177], [162, 178], [162, 179], [164, 180], [164, 181], [166, 182], [166, 183], [171, 184], [172, 185], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 1], [18, 1], [19, 3], [20, 4], [21, 6], [22, 7], [23, 8], [24, 9], [25, 10], [26, 11], [27, 0], [28, 12], [29, 13], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 16], [36, 16], [37, 1], [38, 17], [39, 2], [40, 3], [41, 19], [42, 4], [43, 20], [44, 5], [45, 21], [46, 7], [47, 22], [48, 8], [49, 9], [50, 24], [51, 10], [52, 25], [53, 11], [54, 26], [55, 27], [56, 28], [57, 13], [58, 13], [59, 30], [60, 31], [61, 32], [62, 33], [63, 34], [64, 14], [65, 15], [66, 35], [67, 36], [68, 37], [69, 17], [70, 38], [71, 18], [72, 40], [73, 42], [74, 44], [75, 6], [76, 46], [77, 48], [78, 49], [79, 51], [80, 53], [81, 55], [82, 12], [83, 57], [84, 59], [85, 60], [86, 61], [87, 62], [88, 63], [89, 66], [90, 36], [91, 68], [92, 68], [93, 68], [94, 68], [95, 68], [96, 68], [97, 68], [98, 68], [99, 68], [100, 68], [101, 68], [102, 68], [103, 17], [104, 17], [105, 17], [106, 17], [107, 17], [108, 17], [109, 17], [110, 17], [111, 17], [112, 17], [113, 17], [114, 17], [115, 17], [116, 17], [117, 17], [118, 17], [119, 17], [120, 70], [121, 71], [122, 72], [123, 73], [124, 75], [125, 76], [126, 77], [127, 78], [128, 79], [129, 80], [130, 82], [131, 83], [132, 58], [133, 89], [134, 91], [135, 96], [136, 99], [137, 100], [138, 101], [139, 102], [140, 105], [141, 106], [142, 107], [143, 108], [144, 109], [145, 110], [146, 111], [147, 112], [148, 113], [149, 116], [150, 117], [151, 118], [152, 119], [153, 69], [154, 121], [155, 122], [156, 122], [157, 42], [158, 42], [159, 126], [160, 126], [161, 127], [162, 127], [163, 128], [164, 128], [165, 129], [166, 129], [167, 57], [168, 132], [169, 132], [170, 133], [171, 133], [172, 97], [173, 137], [174, 154], [175, 154], [176, 154], [177, 158], [178, 162], [179, 162], [180, 164], [181, 164], [182, 166], [183, 166], [184, 171], [185, 172], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185]]}, {"function_name": "createArtifact", "code": "    public PublishArtifact createArtifact() {\n        PublishArtifact art = new PublishArtifact();\n        artifacts.add(art);\n        return art;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isPublishivy", "code": "    public boolean isPublishivy() {\n        return publishivy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPublishivy", "code": "    public void setPublishivy(boolean publishivy) {\n        this.publishivy = publishivy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isWarnonmissing", "code": "    public boolean isWarnonmissing() {\n        return warnonmissing;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWarnonmissing", "code": "    public void setWarnonmissing(boolean warnonmissing) {\n        this.warnonmissing = warnonmissing;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isHaltonmissing", "code": "    public boolean isHaltonmissing() {\n        return haltonmissing;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHaltonmissing", "code": "    public void setHaltonmissing(boolean haltonmissing) {\n        this.haltonmissing = haltonmissing;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isOverwrite", "code": "    public boolean isOverwrite() {\n        return overwrite;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOverwrite", "code": "    public void setOverwrite(boolean overwrite) {\n        this.overwrite = overwrite;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setForcedeliver", "code": "    public void setForcedeliver(boolean b) {\n        forcedeliver = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isForcedeliver", "code": "    public boolean isForcedeliver() {\n        return forcedeliver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isUpdate", "code": "    public boolean isUpdate() {\n        return update;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUpdate", "code": "    public void setUpdate(boolean update) {\n        this.update = update;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7534", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/lib/sql/SQLQueryParser.java", "language": "java", "name": "org.apache.xalan.lib.sql.SQLQueryParser", "code": "public class SQLQueryParser\n{\n  /**\n   * If the parser used inline parser to pull out variables then\n   * this will be true. The default is not to use the Inline Parser.\n   */\n  private boolean           m_InlineVariables  = false;\n\n  /**\n   *\n   */\n  private boolean           m_IsCallable = false;\n\n  /**\n   *\n   */\n  private String            m_OrigQuery = null;\n\n  /**\n   *\n   */\n  private StringBuffer      m_ParsedQuery = null;\n\n  /**\n   *\n   */\n  private Vector            m_Parameters = null;\n\n  /**\n   *\n   */\n  private boolean           m_hasOutput = false;\n\n  /**\n   *\n   */\n  private boolean           m_HasParameters;\n\n  public static final int         NO_OVERRIDE = 0;\n  public static final int         NO_INLINE_PARSER = 1;\n  public static final int         INLINE_PARSER  = 2;\n\n  /**\n   * The SQLStatement Parser will be created as a psuedo SINGLETON per\n   * XConnection. Since we are only caching the Query and its parsed results\n   * we may be able to use this as a real SINGLETON. It all depends on how\n   * Statement Caching will play out.\n   */\n  public SQLQueryParser()\n  {\n    init();\n  }\n\n  /**\n   * Constructor, used to create a new parser entry\n   */\n  private SQLQueryParser(String query)\n  {\n    m_OrigQuery = query;\n  }\n\n  /**\n   * On a per Xconnection basis, we will create a SQLStatemenetParser, from\n   * this parser, individual parsers will be created. The Init method is defined\n   * to initialize all the internal structures that maintains the pool of parsers.\n   */\n  private void init()\n  {\n  }\n\n  /**\n   * Produce an SQL Statement Parser based on the incomming query.\n   *\n   * For now we will just create a new object, in the future we may have this\n   * interface cache the queries so that we can take advantage of a preparsed\n   * String.\n   *\n   * If the Inline Parser is not enabled in the Options, no action will be\n   * taken on the parser. This option can be set by the Stylesheet. If the\n   * option is not set or cleared, a default value will be set determined\n   * by the way variables were passed into the system.\n   */\n  public SQLQueryParser parse(XConnection xconn, String query, int override)\n  {\n    SQLQueryParser parser = new SQLQueryParser(query);\n\n    parser.parse(xconn, override);\n\n    return parser;\n  }\n\n\n\n  /**\n   * Produce an SQL Statement Parser based on the incomming query.\n   *\n   * For now we will just create a new object, in the future we may have this\n   * interface cache the queries so that we can take advantage of a preparsed\n   * String.\n   *\n   * If the Inline Parser is not enabled in the Options, no action will be\n   * taken on the parser. This option can be set by the Stylesheet. If the\n   * option is not set or cleared, a default value will be set determined\n   * by the way variables were passed into the system.\n   */\n  private void parse(XConnection xconn, int override)\n  {\n\n    m_InlineVariables = \"true\".equals(xconn.getFeature(\"inline-variables\"));\n    if (override == NO_INLINE_PARSER) m_InlineVariables = false;\n    else if (override == INLINE_PARSER) m_InlineVariables = true;\n\n    if (m_InlineVariables) inlineParser();\n\n  }\n\n  /**\n   * If a SQL Statement does not have any parameters, then it can be executed\n   * directly. Most SQL Servers use this as a performance advantage since no\n   * parameters need to be parsed then bound.\n   */\n  public boolean hasParameters()\n  {\n    return m_HasParameters;\n  }\n\n  /**\n   * If the Inline Parser is used, the parser will note if this stastement is\n   * a plain SQL Statement or a Called Procedure. Called Procudures generally\n   * have output parameters and require special handling.\n   *\n   * Called Procudures that are not processed with the Inline Parser will\n   * still be executed but under the context of a PreparedStatement and\n   * not a CallableStatement. Called Procudures that have output parameters\n   * MUST be handled with the Inline Parser.\n   */\n  public boolean isCallable()\n  {\n    return m_IsCallable;\n  }\n\n\n  /**\n   *\n   */\n  public Vector getParameters()\n  {\n    return m_Parameters;\n  }\n\n  /**\n   * The XConnection will use this method to store the Parameters\n   * that were supplied by the style sheet in the case where the\n   * inline parser was not used\n   */\n  public void setParameters(Vector p)\n  {\n    m_HasParameters = true;\n    m_Parameters = p;\n  }\n\n  /**\n   * Return a copy of the parsed SQL query that will be set to the\n   * Database system to execute. If the inline parser was not used,\n   * then the original query will be returned.\n   */\n  public String getSQLQuery()\n  {\n    if (m_InlineVariables) return m_ParsedQuery.toString();\n    else return m_OrigQuery;\n  }\n\n\n  /**\n   * The SQL Statement Parser, when an Inline Parser is used, tracks the XSL\n   * variables used to populate a statement. The data use to popoulate a\n   * can also be provided. If the data is provided, it will overide the\n   * populastion using XSL variables. When the Inline PArser is not used, then\n   * the Data will always be provided.\n   *\n   */\n  public void populateStatement(PreparedStatement stmt, ExpressionContext ctx)\n  {\n\n    for ( int indx = 0 ; indx < m_Parameters.size() ; indx++ )\n    {\n      QueryParameter parm = (QueryParameter) m_Parameters.elementAt(indx);\n\n      try\n      {\n\n        if (m_InlineVariables)\n        {\n          XObject value = (XObject)ctx.getVariableOrParam(new QName(parm.getName()));\n\n          if (value != null)\n          {\n            stmt.setObject(\n              indx + 1,\n              value.object());\n          }\n          else\n          {\n            stmt.setNull(indx + 1, parm.getType());\n          }\n        }\n        else\n        {\n          String value = parm.getValue();\n\n          if (value != null)\n          {\n            stmt.setObject(\n              indx + 1,\n              value);\n          }\n          else\n          {\n            stmt.setNull(indx + 1, parm.getType());\n          }\n        }\n      }\n      catch (Exception tx)\n      {\n      }\n    }\n\n  }\n\n  public void registerOutputParameters(CallableStatement cstmt) throws SQLException\n  {\n    if ( m_IsCallable && m_hasOutput )\n    {\n      for ( int indx = 0 ; indx < m_Parameters.size() ; indx++ )\n      {\n        QueryParameter parm = (QueryParameter) m_Parameters.elementAt(indx);\n        if ( parm.isOutput() )\n        {\n          cstmt.registerOutParameter(indx + 1, parm.getType());\n        }\n      }\n    }\n }\n\n  /**\n   *\n   */\n  protected void inlineParser()\n  {\n    QueryParameter  curParm = null;\n    int\t            state = 0;\n    StringBuffer    tok = new StringBuffer();\n    boolean         firstword = true;\n\n    if (m_Parameters == null) m_Parameters = new Vector();\n\n    if (m_ParsedQuery == null) m_ParsedQuery = new StringBuffer();\n\n    for ( int idx = 0 ; idx < m_OrigQuery.length() ; idx++ )\n    {\n      char ch = m_OrigQuery.charAt(idx);\n      switch ( state )\n      {\n\t\tcase '':\n          if ( ch == '\\'' ) state = 1;\n          else if ( ch == '?' ) state = 4;\n          else if ( firstword && (Character.isLetterOrDigit(ch) || ch == '#') )\n          {\n            tok.append(ch);\n            state = 3;\n          }\n          m_ParsedQuery.append(ch);\n          break;\n\t\tcase '':\n          if ( ch == '\\'' ) state = 0;\n          else if ( ch == '\\\\' ) state = 2;\n          m_ParsedQuery.append(ch);\n          break;\n\t\tcase '':\n          state = 1;\n          m_ParsedQuery.append(ch);\n          break;\n\t\tcase '':\n          if ( Character.isLetterOrDigit(ch) || ch == '#' || ch == '_' ) tok.append(ch);\n          else\n          {\n            if ( tok.toString().equalsIgnoreCase(\"call\") )\n            {\n              m_IsCallable = true;\n              if ( curParm != null )\n              {\n                curParm.setIsOutput(true);\n              }\n            }\n            firstword = false;\n            tok = new StringBuffer();\n            if ( ch == '\\'' ) state = 1;\n            else if ( ch == '?' ) state = 4;\n            else state = 0;\n          }\n\t\tcase '':\n          m_ParsedQuery.append(ch);\n          break;\n\t\tcase '':\n          if ( ch == '[' ) state = 5;\n          break;\n\t\tcase '':\n          if ( !Character.isWhitespace(ch) && ch != '=' )\n          {\n            tok.append(Character.toUpperCase(ch));\n          }\n          else if ( tok.length() > 0 )\n          {\n            m_HasParameters = true;\n\n            curParm = new QueryParameter();\n\n            curParm.setTypeName(tok.toString());\n            m_Parameters.addElement(curParm);\n            tok = new StringBuffer();\n            if ( ch == '=' ) state = 7;\n            else state = 6;\n          }\n          break;\n\t\tcase '':\n          if ( ch == '=' ) state = 7;\n          break;\n\t\tcase '':\n          if ( !Character.isWhitespace(ch) && ch != ']' ) tok.append(ch);\n          else if ( tok.length() > 0 )\n          {\n            curParm.setName(tok.toString());\n            tok = new StringBuffer();\n            if ( ch == ']' )\n            {\n              state = 0;\n            }\n            else state = 8;\n          }\n          break;\n\t\tcase '':\n          if ( !Character.isWhitespace(ch) && ch != ']' )\n          {\n            tok.append(ch);\n          }\n          else if ( tok.length() > 0 )\n          {\n            tok.setLength(3);\n            if ( tok.toString().equalsIgnoreCase(\"OUT\") )\n            {\n              curParm.setIsOutput(true);\n              m_hasOutput = true;\n            }\n\n            tok = new StringBuffer();\n            if ( ch == ']' )\n            {\n              state = 0;\n            }\n          }\n          break;\n      }\n    }\n\n\n    if ( m_IsCallable )\n    {\n      m_ParsedQuery.insert(0, '{');\n      m_ParsedQuery.append('}');", "functions": [{"function_name": "init", "code": "  private void init()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "parse", "code": "  public SQLQueryParser parse(XConnection xconn, String query, int override)\n  {\n    SQLQueryParser parser = new SQLQueryParser(query);\n\n    parser.parse(xconn, override);\n\n    return parser;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "parse", "code": "  private void parse(XConnection xconn, int override)\n  {\n\n    m_InlineVariables = \"true\".equals(xconn.getFeature(\"inline-variables\"));\n    if (override == NO_INLINE_PARSER) m_InlineVariables = false;\n    else if (override == INLINE_PARSER) m_InlineVariables = true;\n\n    if (m_InlineVariables) inlineParser();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [0, 7], [1, 8], [5, 9], [2, 10], [7, 11], [5, 12], [10, 13], [11, 14], [12, 15], [14, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 0], [8, 1], [9, 5], [10, 2], [11, 7], [12, 5], [13, 10], [14, 11], [15, 12], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "hasParameters", "code": "  public boolean hasParameters()\n  {\n    return m_HasParameters;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isCallable", "code": "  public boolean isCallable()\n  {\n    return m_IsCallable;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getParameters", "code": "  public Vector getParameters()\n  {\n    return m_Parameters;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParameters", "code": "  public void setParameters(Vector p)\n  {\n    m_HasParameters = true;\n    m_Parameters = p;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSQLQuery", "code": "  public String getSQLQuery()\n  {\n    if (m_InlineVariables) return m_ParsedQuery.toString();\n    else return m_OrigQuery;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [1, 0], [2, 1], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "populateStatement", "code": "  public void populateStatement(PreparedStatement stmt, ExpressionContext ctx)\n  {\n\n    for ( int indx = 0 ; indx < m_Parameters.size() ; indx++ )\n    {\n      QueryParameter parm = (QueryParameter) m_Parameters.elementAt(indx);\n\n      try\n      {\n\n        if (m_InlineVariables)\n        {\n          XObject value = (XObject)ctx.getVariableOrParam(new QName(parm.getName()));\n\n          if (value != null)\n          {\n            stmt.setObject(\n              indx + 1,\n              value.object());\n          }\n          else\n          {\n            stmt.setNull(indx + 1, parm.getType());\n          }\n        }\n        else\n        {\n          String value = parm.getValue();\n\n          if (value != null)\n          {\n            stmt.setObject(\n              indx + 1,\n              value);\n          }\n          else\n          {\n            stmt.setNull(indx + 1, parm.getType());", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "CALL", "CATCH", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [5, 9], [1, 10], [9, 11], [9, 12], [9, 13], [9, 14], [6, 15], [11, 16], [13, 17], [16, 18], [12, 19], [17, 20], [11, 21], [11, 22], [13, 23], [13, 24], [14, 25], [21, 26], [21, 27], [22, 28], [23, 29], [23, 30], [24, 31], [24, 32], [25, 33], [27, 34], [28, 35], [30, 36], [32, 37], [33, 38], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 5], [10, 1], [11, 9], [12, 9], [13, 9], [14, 9], [15, 6], [16, 11], [17, 13], [18, 16], [19, 12], [20, 17], [21, 11], [22, 11], [23, 13], [24, 13], [25, 14], [26, 21], [27, 21], [28, 22], [29, 23], [30, 23], [31, 24], [32, 24], [33, 25], [34, 27], [35, 28], [36, 30], [37, 32], [38, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "registerOutputParameters", "code": "  public void registerOutputParameters(CallableStatement cstmt) throws SQLException\n  {\n    if ( m_IsCallable && m_hasOutput )\n    {\n      for ( int indx = 0 ; indx < m_Parameters.size() ; indx++ )\n      {\n        QueryParameter parm = (QueryParameter) m_Parameters.elementAt(indx);\n        if ( parm.isOutput() )\n        {\n          cstmt.registerOutParameter(indx + 1, parm.getType());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [4, 6], [4, 7], [5, 8], [6, 9], [4, 10], [6, 11], [7, 12], [11, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 4], [7, 4], [8, 5], [9, 6], [10, 4], [11, 6], [12, 7], [13, 11], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "inlineParser", "code": "  protected void inlineParser()\n  {\n    QueryParameter  curParm = null;\n    int\t            state = 0;\n    StringBuffer    tok = new StringBuffer();\n    boolean         firstword = true;\n\n    if (m_Parameters == null) m_Parameters = new Vector();\n\n    if (m_ParsedQuery == null) m_ParsedQuery = new StringBuffer();\n\n    for ( int idx = 0 ; idx < m_OrigQuery.length() ; idx++ )\n    {\n      char ch = m_OrigQuery.charAt(idx);\n      switch ( state )\n      {\n\t\tcase '':\n          if ( ch == '\\'' ) state = 1;\n          else if ( ch == '?' ) state = 4;\n          else if ( firstword && (Character.isLetterOrDigit(ch) || ch == '#') )\n          {\n            tok.append(ch);\n            state = 3;\n          }\n          m_ParsedQuery.append(ch);\n          break;\n\t\tcase '':\n          if ( ch == '\\'' ) state = 0;\n          else if ( ch == '\\\\' ) state = 2;\n          m_ParsedQuery.append(ch);\n          break;\n\t\tcase '':\n          state = 1;\n          m_ParsedQuery.append(ch);\n          break;\n\t\tcase '':\n          if ( Character.isLetterOrDigit(ch) || ch == '#' || ch == '_' ) tok.append(ch);\n          else\n          {\n            if ( tok.toString().equalsIgnoreCase(\"call\") )\n            {\n              m_IsCallable = true;\n              if ( curParm != null )\n              {\n                curParm.setIsOutput(true);\n              }\n            }\n            firstword = false;\n            tok = new StringBuffer();\n            if ( ch == '\\'' ) state = 1;\n            else if ( ch == '?' ) state = 4;\n            else state = 0;\n          }\n\t\tcase '':\n          m_ParsedQuery.append(ch);\n          break;\n\t\tcase '':\n          if ( ch == '[' ) state = 5;\n          break;\n\t\tcase '':\n          if ( !Character.isWhitespace(ch) && ch != '=' )\n          {\n            tok.append(Character.toUpperCase(ch));\n          }\n          else if ( tok.length() > 0 )\n          {\n            m_HasParameters = true;\n\n            curParm = new QueryParameter();\n\n            curParm.setTypeName(tok.toString());\n            m_Parameters.addElement(curParm);\n            tok = new StringBuffer();\n            if ( ch == '=' ) state = 7;\n            else state = 6;\n          }\n          break;\n\t\tcase '':\n          if ( ch == '=' ) state = 7;\n          break;\n\t\tcase '':\n          if ( !Character.isWhitespace(ch) && ch != ']' ) tok.append(ch);\n          else if ( tok.length() > 0 )\n          {\n            curParm.setName(tok.toString());\n            tok = new StringBuffer();\n            if ( ch == ']' )\n            {\n              state = 0;\n            }\n            else state = 8;\n          }\n          break;\n\t\tcase '':\n          if ( !Character.isWhitespace(ch) && ch != ']' )\n          {\n            tok.append(ch);\n          }\n          else if ( tok.length() > 0 )\n          {\n            tok.setLength(3);\n            if ( tok.toString().equalsIgnoreCase(\"OUT\") )\n            {\n              curParm.setIsOutput(true);\n              m_hasOutput = true;\n            }\n\n            tok = new StringBuffer();\n            if ( ch == ']' )\n            {\n              state = 0;\n            }\n          }\n          break;\n      }\n    }\n\n\n    if ( m_IsCallable )\n    {\n      m_ParsedQuery.insert(0, '{');\n      m_ParsedQuery.append('}');", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [2, 12], [2, 13], [9, 14], [3, 15], [10, 16], [4, 17], [11, 18], [5, 19], [6, 20], [7, 21], [8, 22], [1, 23], [1, 24], [2, 25], [15, 26], [17, 27], [23, 28], [24, 29], [24, 30], [12, 31], [12, 32], [12, 33], [12, 34], [12, 35], [12, 36], [12, 37], [12, 38], [12, 39], [12, 40], [12, 41], [12, 42], [12, 43], [12, 44], [12, 45], [12, 46], [12, 47], [12, 48], [12, 49], [12, 50], [12, 51], [12, 52], [12, 53], [12, 54], [12, 55], [12, 56], [12, 57], [13, 58], [32, 59], [32, 60], [35, 61], [35, 62], [38, 63], [41, 64], [41, 65], [44, 66], [12, 67], [48, 68], [12, 69], [12, 70], [12, 71], [53, 72], [53, 73], [12, 74], [56, 75], [56, 76], [59, 77], [60, 78], [60, 79], [61, 80], [35, 81], [62, 82], [62, 83], [38, 84], [63, 85], [64, 86], [65, 87], [65, 88], [44, 89], [66, 90], [48, 91], [48, 92], [48, 93], [68, 94], [68, 95], [70, 96], [72, 97], [53, 98], [73, 99], [75, 100], [75, 101], [56, 102], [76, 103], [59, 104], [59, 105], [77, 106], [77, 107], [32, 108], [78, 109], [61, 110], [80, 111], [80, 112], [82, 113], [84, 114], [64, 115], [86, 116], [86, 117], [41, 118], [87, 119], [89, 120], [91, 121], [91, 122], [48, 123], [48, 124], [92, 125], [94, 126], [95, 127], [95, 128], [72, 129], [97, 130], [98, 131], [100, 132], [75, 133], [101, 134], [102, 135], [104, 136], [59, 137], [105, 138], [59, 139], [110, 140], [61, 141], [61, 142], [115, 143], [64, 144], [64, 145], [64, 146], [64, 147], [64, 148], [118, 149], [121, 150], [91, 151], [122, 152], [123, 153], [124, 154], [92, 155], [125, 156], [127, 157], [129, 158], [132, 159], [133, 160], [136, 161], [137, 162], [138, 163], [139, 164], [110, 165], [140, 166], [141, 167], [142, 168], [115, 169], [115, 170], [143, 171], [144, 172], [146, 173], [147, 174], [148, 175], [121, 176], [121, 177], [150, 178], [151, 179], [155, 180], [92, 181], [156, 182], [100, 183], [100, 184], [159, 185], [159, 186], [104, 187], [105, 188], [105, 189], [163, 190], [165, 191], [110, 192], [169, 193], [170, 194], [176, 195], [177, 196], [180, 197], [181, 198], [183, 199], [185, 200], [187, 201], [188, 202], [189, 203], [192, 204], [155, 205], [205, 206], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 2], [13, 2], [14, 9], [15, 3], [16, 10], [17, 4], [18, 11], [19, 5], [20, 6], [21, 7], [22, 8], [23, 1], [24, 1], [25, 2], [26, 15], [27, 17], [28, 23], [29, 24], [30, 24], [31, 12], [32, 12], [33, 12], [34, 12], [35, 12], [36, 12], [37, 12], [38, 12], [39, 12], [40, 12], [41, 12], [42, 12], [43, 12], [44, 12], [45, 12], [46, 12], [47, 12], [48, 12], [49, 12], [50, 12], [51, 12], [52, 12], [53, 12], [54, 12], [55, 12], [56, 12], [57, 12], [58, 13], [59, 32], [60, 32], [61, 35], [62, 35], [63, 38], [64, 41], [65, 41], [66, 44], [67, 12], [68, 48], [69, 12], [70, 12], [71, 12], [72, 53], [73, 53], [74, 12], [75, 56], [76, 56], [77, 59], [78, 60], [79, 60], [80, 61], [81, 35], [82, 62], [83, 62], [84, 38], [85, 63], [86, 64], [87, 65], [88, 65], [89, 44], [90, 66], [91, 48], [92, 48], [93, 48], [94, 68], [95, 68], [96, 70], [97, 72], [98, 53], [99, 73], [100, 75], [101, 75], [102, 56], [103, 76], [104, 59], [105, 59], [106, 77], [107, 77], [108, 32], [109, 78], [110, 61], [111, 80], [112, 80], [113, 82], [114, 84], [115, 64], [116, 86], [117, 86], [118, 41], [119, 87], [120, 89], [121, 91], [122, 91], [123, 48], [124, 48], [125, 92], [126, 94], [127, 95], [128, 95], [129, 72], [130, 97], [131, 98], [132, 100], [133, 75], [134, 101], [135, 102], [136, 104], [137, 59], [138, 105], [139, 59], [140, 110], [141, 61], [142, 61], [143, 115], [144, 64], [145, 64], [146, 64], [147, 64], [148, 64], [149, 118], [150, 121], [151, 91], [152, 122], [153, 123], [154, 124], [155, 92], [156, 125], [157, 127], [158, 129], [159, 132], [160, 133], [161, 136], [162, 137], [163, 138], [164, 139], [165, 110], [166, 140], [167, 141], [168, 142], [169, 115], [170, 115], [171, 143], [172, 144], [173, 146], [174, 147], [175, 148], [176, 121], [177, 121], [178, 150], [179, 151], [180, 155], [181, 92], [182, 156], [183, 100], [184, 100], [185, 159], [186, 159], [187, 104], [188, 105], [189, 105], [190, 163], [191, 165], [192, 110], [193, 169], [194, 170], [195, 176], [196, 177], [197, 180], [198, 181], [199, 183], [200, 185], [201, 187], [202, 188], [203, 189], [204, 192], [205, 155], [206, 205], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206]]}, {"function_name": "SQLQueryParser", "code": "  public SQLQueryParser()\n  {\n    init();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SQLQueryParser", "code": "  private SQLQueryParser(String query)\n  {\n    m_OrigQuery = query;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.3-4774", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/org/objectweb/asm/ByteVector.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.org.objectweb.asm.ByteVector", "code": "final class ByteVector {\n\n  /**\n   * The content of this vector.\n   */\n\n  byte[] data;\n\n  /**\n   * Actual number of bytes in this vector.\n   */\n\n  int length;\n\n  /**\n   * Constructs a new {@link ByteVector ByteVector} with a default initial size.\n   */\n\n  public ByteVector () {\n    data = new byte[64];\n  }\n\n  /**\n   * Constructs a new {@link ByteVector ByteVector} with the given initial size.\n   *\n   * @param initialSize the initial size of the byte vector to be constructed.\n   */\n\n  public ByteVector (final int initialSize) {\n    data = new byte[initialSize];\n  }\n\n  /**\n   * Puts a byte into this byte vector. The byte vector is automatically\n   * enlarged if necessary.\n   *\n   * @param b a byte.\n   * @return this byte vector.\n   */\n\n  public ByteVector put1 (final int b) {\n    int length = this.length;\n    if (length + 1 > data.length) {\n      enlarge(1);\n    }\n    data[length++] = (byte)b;\n    this.length = length;\n    return this;\n  }\n\n  /**\n   * Puts two bytes into this byte vector. The byte vector is automatically\n   * enlarged if necessary.\n   *\n   * @param b1 a byte.\n   * @param b2 another byte.\n   * @return this byte vector.\n   */\n\n  public ByteVector put11 (final int b1, final int b2) {\n    int length = this.length;\n    if (length + 2 > data.length) {\n      enlarge(2);\n    }\n    byte[] data = this.data;\n    data[length++] = (byte)b1;\n    data[length++] = (byte)b2;\n    this.length = length;\n    return this;\n  }\n\n  /**\n   * Puts a short into this byte vector. The byte vector is automatically\n   * enlarged if necessary.\n   *\n   * @param s a short.\n   * @return this byte vector.\n   */\n\n  public ByteVector put2 (final int s) {\n    int length = this.length;\n    if (length + 2 > data.length) {\n      enlarge(2);\n    }\n    byte[] data = this.data;\n    data[length++] = (byte)(s >>> 8);\n    data[length++] = (byte)s;\n    this.length = length;\n    return this;\n  }\n\n  /**\n   * Puts a byte and a short into this byte vector. The byte vector is\n   * automatically enlarged if necessary.\n   *\n   * @param b a byte.\n   * @param s a short.\n   * @return this byte vector.\n   */\n\n  public ByteVector put12 (final int b, final int s) {\n    int length = this.length;\n    if (length + 3 > data.length) {\n      enlarge(3);\n    }\n    byte[] data = this.data;\n    data[length++] = (byte)b;\n    data[length++] = (byte)(s >>> 8);\n    data[length++] = (byte)s;\n    this.length = length;\n    return this;\n  }\n\n  /**\n   * Puts an int into this byte vector. The byte vector is automatically\n   * enlarged if necessary.\n   *\n   * @param i an int.\n   * @return this byte vector.\n   */\n\n  public ByteVector put4 (final int i) {\n    int length = this.length;\n    if (length + 4 > data.length) {\n      enlarge(4);\n    }\n    byte[] data = this.data;\n    data[length++] = (byte)(i >>> 24);\n    data[length++] = (byte)(i >>> 16);\n    data[length++] = (byte)(i >>> 8);\n    data[length++] = (byte)i;\n    this.length = length;\n    return this;\n  }\n\n  /**\n   * Puts a long into this byte vector. The byte vector is automatically\n   * enlarged if necessary.\n   *\n   * @param l a long.\n   * @return this byte vector.\n   */\n\n  public ByteVector put8 (final long l) {\n    int length = this.length;\n    if (length + 8 > data.length) {\n      enlarge(8);\n    }\n    byte[] data = this.data;\n    int i = (int)(l >>> 32);\n    data[length++] = (byte)(i >>> 24);\n    data[length++] = (byte)(i >>> 16);\n    data[length++] = (byte)(i >>> 8);\n    data[length++] = (byte)i;\n    i = (int)l;\n    data[length++] = (byte)(i >>> 24);\n    data[length++] = (byte)(i >>> 16);\n    data[length++] = (byte)(i >>> 8);\n    data[length++] = (byte)i;\n    this.length = length;\n    return this;\n  }\n\n  /**\n   * Puts a String in UTF format into this byte vector. The byte vector is\n   * automatically enlarged if necessary.\n   *\n   * @param s a String.\n   * @return this byte vector.\n   */\n\n  public ByteVector putUTF (final String s) {\n    int charLength = s.length();\n    int byteLength = 0;\n    for (int i = 0; i < charLength; ++i) {\n      char c = s.charAt(i);\n      if (c >= '\\001' && c <= '\\177') {\n        byteLength++;\n      } else if (c > '\\u07FF') {\n        byteLength += 3;\n      } else {\n        byteLength += 2;\n      }\n    }\n    if (byteLength > 65535) {\n      throw new IllegalArgumentException();\n    }\n    int length = this.length;\n    if (length + 2 + byteLength > data.length) {\n      enlarge(2 + byteLength);\n    }\n    byte[] data = this.data;\n    data[length++] = (byte)(byteLength >>> 8);\n    data[length++] = (byte)(byteLength);\n    for (int i = 0; i < charLength; ++i) {\n      char c = s.charAt(i);\n      if (c >= '\\001' && c <= '\\177') {\n        data[length++] = (byte)c;\n      } else if (c > '\\u07FF') {\n        data[length++] = (byte)(0xE0 | c >> 12 & 0xF);\n        data[length++] = (byte)(0x80 | c >> 6 & 0x3F);\n        data[length++] = (byte)(0x80 | c & 0x3F);\n      } else {\n        data[length++] = (byte)(0xC0 | c >> 6 & 0x1F);\n        data[length++] = (byte)(0x80 | c & 0x3F);\n      }\n    }\n    this.length = length;\n    return this;\n  }\n\n  /**\n   * Puts an array of bytes into this byte vector. The byte vector is\n   * automatically enlarged if necessary.\n   *\n   * @param b an array of bytes. May be <tt>null</tt> to put <tt>len</tt> null\n   *      bytes into this byte vector.\n   * @param off index of the fist byte of b that must be copied.\n   * @param len number of bytes of b that must be copied.\n   * @return this byte vector.\n   */\n\n  public ByteVector putByteArray (\n    final byte[] b,\n    final int off,\n    final int len)\n  {\n    if (length + len > data.length) {\n      enlarge(len);\n    }\n    if (b != null) {\n      System.arraycopy(b, off, data, length, len);\n    }\n    length += len;\n    return this;\n  }\n\n  /**\n   * Enlarge this byte vector so that it can receive n more bytes.\n   *\n   * @param size number of additional bytes that this byte vector should be\n   *      able to receive.\n   */\n\n  private void enlarge (final int size) {\n    byte[] newData = new byte[Math.max(2*data.length, length + size)];\n    System.arraycopy(data, 0, newData, 0, length);\n    data = newData;", "functions": [{"function_name": "put1", "code": "  public ByteVector put1 (final int b) {\n    int length = this.length;\n    if (length + 1 > data.length) {\n      enlarge(1);\n    }\n    data[length++] = (byte)b;\n    this.length = length;\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [7, 8], [2, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 7], [9, 2], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "put11", "code": "  public ByteVector put11 (final int b1, final int b2) {\n    int length = this.length;\n    if (length + 2 > data.length) {\n      enlarge(2);\n    }\n    byte[] data = this.data;\n    data[length++] = (byte)b1;\n    data[length++] = (byte)b2;\n    this.length = length;\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [10, 11], [3, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 10], [12, 3], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "put2", "code": "  public ByteVector put2 (final int s) {\n    int length = this.length;\n    if (length + 2 > data.length) {\n      enlarge(2);\n    }\n    byte[] data = this.data;\n    data[length++] = (byte)(s >>> 8);\n    data[length++] = (byte)s;\n    this.length = length;\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [9, 10], [8, 11], [3, 12], [10, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 9], [11, 8], [12, 3], [13, 10], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "put12", "code": "  public ByteVector put12 (final int b, final int s) {\n    int length = this.length;\n    if (length + 3 > data.length) {\n      enlarge(3);\n    }\n    byte[] data = this.data;\n    data[length++] = (byte)b;\n    data[length++] = (byte)(s >>> 8);\n    data[length++] = (byte)s;\n    this.length = length;\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [11, 12], [9, 13], [3, 14], [12, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 11], [13, 9], [14, 3], [15, 12], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "put4", "code": "  public ByteVector put4 (final int i) {\n    int length = this.length;\n    if (length + 4 > data.length) {\n      enlarge(4);\n    }\n    byte[] data = this.data;\n    data[length++] = (byte)(i >>> 24);\n    data[length++] = (byte)(i >>> 16);\n    data[length++] = (byte)(i >>> 8);\n    data[length++] = (byte)i;\n    this.length = length;\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [11, 12], [8, 13], [9, 14], [10, 15], [3, 16], [12, 17], [13, 18], [14, 19], [15, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 11], [13, 8], [14, 9], [15, 10], [16, 3], [17, 12], [18, 13], [19, 14], [20, 15], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "put8", "code": "  public ByteVector put8 (final long l) {\n    int length = this.length;\n    if (length + 8 > data.length) {\n      enlarge(8);\n    }\n    byte[] data = this.data;\n    int i = (int)(l >>> 32);\n    data[length++] = (byte)(i >>> 24);\n    data[length++] = (byte)(i >>> 16);\n    data[length++] = (byte)(i >>> 8);\n    data[length++] = (byte)i;\n    i = (int)l;\n    data[length++] = (byte)(i >>> 24);\n    data[length++] = (byte)(i >>> 16);\n    data[length++] = (byte)(i >>> 8);\n    data[length++] = (byte)i;\n    this.length = length;\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [4, 17], [17, 18], [9, 19], [10, 20], [11, 21], [14, 22], [15, 23], [16, 24], [2, 25], [4, 26], [18, 27], [19, 28], [20, 29], [21, 30], [22, 31], [23, 32], [24, 33], [25, 34], [26, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 4], [18, 17], [19, 9], [20, 10], [21, 11], [22, 14], [23, 15], [24, 16], [25, 2], [26, 4], [27, 18], [28, 19], [29, 20], [30, 21], [31, 22], [32, 23], [33, 24], [34, 25], [35, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "putUTF", "code": "  public ByteVector putUTF (final String s) {\n    int charLength = s.length();\n    int byteLength = 0;\n    for (int i = 0; i < charLength; ++i) {\n      char c = s.charAt(i);\n      if (c >= '\\001' && c <= '\\177') {\n        byteLength++;\n      } else if (c > '\\u07FF') {\n        byteLength += 3;\n      } else {\n        byteLength += 2;\n      }\n    }\n    if (byteLength > 65535) {\n      throw new IllegalArgumentException();\n    }\n    int length = this.length;\n    if (length + 2 + byteLength > data.length) {\n      enlarge(2 + byteLength);\n    }\n    byte[] data = this.data;\n    data[length++] = (byte)(byteLength >>> 8);\n    data[length++] = (byte)(byteLength);\n    for (int i = 0; i < charLength; ++i) {\n      char c = s.charAt(i);\n      if (c >= '\\001' && c <= '\\177') {\n        data[length++] = (byte)c;\n      } else if (c > '\\u07FF') {\n        data[length++] = (byte)(0xE0 | c >> 12 & 0xF);\n        data[length++] = (byte)(0x80 | c >> 6 & 0x3F);\n        data[length++] = (byte)(0x80 | c & 0x3F);\n      } else {\n        data[length++] = (byte)(0xC0 | c >> 6 & 0x1F);\n        data[length++] = (byte)(0x80 | c & 0x3F);\n      }\n    }\n    this.length = length;\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [0, 13], [0, 14], [4, 15], [6, 16], [7, 17], [2, 18], [2, 19], [15, 20], [6, 21], [16, 22], [7, 23], [7, 24], [8, 25], [9, 26], [18, 27], [18, 28], [2, 29], [14, 30], [4, 31], [20, 32], [21, 33], [23, 34], [23, 35], [7, 36], [27, 37], [28, 38], [28, 39], [19, 40], [30, 41], [31, 42], [32, 43], [34, 44], [35, 45], [35, 46], [24, 47], [37, 48], [18, 49], [38, 50], [39, 51], [42, 52], [44, 53], [45, 54], [46, 55], [27, 56], [27, 57], [27, 58], [27, 59], [27, 60], [34, 61], [34, 62], [61, 63], [62, 64], [56, 65], [57, 66], [58, 67], [59, 68], [60, 69], [65, 70], [65, 71], [66, 72], [66, 73], [67, 74], [67, 75], [68, 76], [68, 77], [69, 78], [69, 79], [70, 80], [72, 81], [72, 82], [74, 83], [76, 84], [76, 85], [78, 86], [78, 87], [82, 88], [85, 89], [87, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 0], [14, 0], [15, 4], [16, 6], [17, 7], [18, 2], [19, 2], [20, 15], [21, 6], [22, 16], [23, 7], [24, 7], [25, 8], [26, 9], [27, 18], [28, 18], [29, 2], [30, 14], [31, 4], [32, 20], [33, 21], [34, 23], [35, 23], [36, 7], [37, 27], [38, 28], [39, 28], [40, 19], [41, 30], [42, 31], [43, 32], [44, 34], [45, 35], [46, 35], [47, 24], [48, 37], [49, 18], [50, 38], [51, 39], [52, 42], [53, 44], [54, 45], [55, 46], [56, 27], [57, 27], [58, 27], [59, 27], [60, 27], [61, 34], [62, 34], [63, 61], [64, 62], [65, 56], [66, 57], [67, 58], [68, 59], [69, 60], [70, 65], [71, 65], [72, 66], [73, 66], [74, 67], [75, 67], [76, 68], [77, 68], [78, 69], [79, 69], [80, 70], [81, 72], [82, 72], [83, 74], [84, 76], [85, 76], [86, 78], [87, 78], [88, 82], [89, 85], [90, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "putByteArray", "code": "  public ByteVector putByteArray (\n    final byte[] b,\n    final int off,\n    final int len)\n  {\n    if (length + len > data.length) {\n      enlarge(len);\n    }\n    if (b != null) {\n      System.arraycopy(b, off, data, length, len);\n    }\n    length += len;\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [8, 10], [9, 11], [2, 12], [3, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 8], [11, 9], [12, 2], [13, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "enlarge", "code": "  private void enlarge (final int size) {\n    byte[] newData = new byte[Math.max(2*data.length, length + size)];\n    System.arraycopy(data, 0, newData, 0, length);\n    data = newData;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [7, 1], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "ByteVector", "code": "  public ByteVector () {\n    data = new byte[64];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ByteVector", "code": "  public ByteVector (final int initialSize) {\n    data = new byte[initialSize];", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6469", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/WithParam.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.WithParam", "code": "final class WithParam extends Instruction {\n\n    private QName _name;\n    private Expression _select;\n\n    /**\n     * Displays the contents of this element\n     */\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"with-param \" + _name);\n\tif (_select != null) {\n\t    indent(indent + IndentIncrement);\n\t    Util.println(\"select \" + _select.toString());\n\t}\n\tdisplayContents(indent + IndentIncrement);\n    }\n\n    /**\n     * The contents of a <xsl:with-param> elements are either in the element's\n     * 'select' attribute (this has precedence) or in the element body.\n     */\n    public void parseContents(Parser parser) {\n\tfinal String name = getAttribute(\"name\");\n\tif (name.length() > 0) {\n\t    _name = parser.getQName(name);\n\t}\n        else {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\n        }\n\t\n\tfinal String select = getAttribute(\"select\");\n\tif (select.length() > 0) {\n\t    _select = parser.parseExpression(this, \"select\", null);\n\t}\n\t\n\tparseChildren(parser);\n    }\n\n    /**\n     * Type-check either the select attribute or the element body, depending\n     * on which is in use.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_select != null) {\n\t    final Type tselect = _select.typeCheck(stable);\n\t    if (tselect instanceof ReferenceType == false) {\n\t\t_select = new CastExpr(_select, Type.Reference);\n\t    }\n\t}\n\telse {\n\t    typeCheckContents(stable);\n\t}\n\treturn Type.Void;\n    }\n\n    /**\n     * Compile the value of the parameter, which is either in an expression in\n     * a 'select' attribute, or in the with-param element's body\n     */\n    public void translateValue(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tif (_select != null) {\n\t    _select.translate(classGen, methodGen);\n\t    _select.startResetIterator(classGen, methodGen);\n\t}\n\telse if (hasContents()) {\n\t    compileResultTree(classGen, methodGen);\n\t}\n\telse {\n\t    final ConstantPoolGen cpg = classGen.getConstantPool();\n\t    final InstructionList il = methodGen.getInstructionList();\n\t    il.append(new PUSH(cpg, Constants.EMPTYSTRING));\n\t}\n    }\n\n    /**\n     * This code generates a sequence of bytecodes that call the\n     * addParameter() method in AbstractTranslet. The method call will add\n     * (or update) the parameter frame with the new parameter value.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tString name = Util.escape(_name.getLocalPart());\n\n\til.append(classGen.loadTranslet());\n\n\ttranslateValue(classGen, methodGen);\n\til.append(new PUSH(cpg, false));\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t     ADD_PARAMETER,\n\t\t\t\t\t\t     ADD_PARAMETER_SIG)));", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"with-param \" + _name);\n\tif (_select != null) {\n\t    indent(indent + IndentIncrement);\n\t    Util.println(\"select \" + _select.toString());\n\t}\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [3, 7], [4, 8], [5, 9], [1, 10], [1, 11], [9, 12], [10, 13], [11, 14], [13, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 3], [8, 4], [9, 5], [10, 1], [11, 1], [12, 9], [13, 10], [14, 11], [15, 13], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tfinal String name = getAttribute(\"name\");\n\tif (name.length() > 0) {\n\t    _name = parser.getQName(name);\n\t}\n        else {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\n        }\n\t\n\tfinal String select = getAttribute(\"select\");\n\tif (select.length() > 0) {\n\t    _select = parser.parseExpression(this, \"select\", null);\n\t}\n\t\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [7, 9], [7, 10], [2, 11], [8, 12], [8, 13], [4, 14], [1, 15], [11, 16], [3, 17], [3, 18], [14, 19], [15, 20], [17, 21], [18, 22], [20, 23], [20, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 7], [10, 7], [11, 2], [12, 8], [13, 8], [14, 4], [15, 1], [16, 11], [17, 3], [18, 3], [19, 14], [20, 15], [21, 17], [22, 18], [23, 20], [24, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_select != null) {\n\t    final Type tselect = _select.typeCheck(stable);\n\t    if (tselect instanceof ReferenceType == false) {\n\t\t_select = new CastExpr(_select, Type.Reference);\n\t    }\n\t}\n\telse {\n\t    typeCheckContents(stable);\n\t}\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [2, 8], [5, 9], [9, 10], [9, 11], [6, 12], [5, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 2], [9, 5], [10, 9], [11, 9], [12, 6], [13, 5], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "translateValue", "code": "    public void translateValue(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tif (_select != null) {\n\t    _select.translate(classGen, methodGen);\n\t    _select.startResetIterator(classGen, methodGen);\n\t}\n\telse if (hasContents()) {\n\t    compileResultTree(classGen, methodGen);\n\t}\n\telse {\n\t    final ConstantPoolGen cpg = classGen.getConstantPool();\n\t    final InstructionList il = methodGen.getInstructionList();\n\t    il.append(new PUSH(cpg, Constants.EMPTYSTRING));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [4, 8], [4, 9], [1, 10], [1, 11], [4, 12], [4, 13], [12, 14], [8, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 4], [9, 4], [10, 1], [11, 1], [12, 4], [13, 4], [14, 12], [15, 8], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tString name = Util.escape(_name.getLocalPart());\n\n\til.append(classGen.loadTranslet());\n\n\ttranslateValue(classGen, methodGen);\n\til.append(new PUSH(cpg, false));\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t     ADD_PARAMETER,\n\t\t\t\t\t\t     ADD_PARAMETER_SIG)));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [9, 12], [1, 13], [2, 14], [3, 15], [10, 16], [11, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 9], [13, 1], [14, 2], [15, 3], [16, 10], [17, 11], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}], "label": 0}
{"sample_id": "xalan-2.6-7753", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/SymbolTable.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.SymbolTable", "code": "final class SymbolTable {\n\n    private final Hashtable _stylesheets = new Hashtable();\n    private final Hashtable _primops     = new Hashtable();\n\n    private Hashtable _variables = null;\n    private Hashtable _templates = null;\n    private Hashtable _attributeSets = null;\n    private Hashtable _aliases = null;\n    private Hashtable _excludedURI = null;\n    private Hashtable _decimalFormats = null;\n\n    public DecimalFormatting getDecimalFormatting(QName name) {\n\tif (_decimalFormats == null) return null;\n\treturn((DecimalFormatting)_decimalFormats.get(name));\n    }\n\n    public void addDecimalFormatting(QName name, DecimalFormatting symbols) {\n\tif (_decimalFormats == null) _decimalFormats = new Hashtable();\n\t_decimalFormats.put(name, symbols);\n    }\n\n    public Stylesheet addStylesheet(QName name, Stylesheet node) {\n\treturn (Stylesheet)_stylesheets.put(name, node);\n    }\n\t\n    public Stylesheet lookupStylesheet(QName name) {\n\treturn (Stylesheet)_stylesheets.get(name);\n    }\n\n    public Template addTemplate(Template template) {\n\tfinal QName name = template.getName();\n\tif (_templates == null) _templates = new Hashtable();\n\treturn (Template)_templates.put(name, template);\n    }\n\t\n    public Template lookupTemplate(QName name) {\n\tif (_templates == null) return null;\n\treturn (Template)_templates.get(name);\n    }\n\n    public Variable addVariable(Variable variable) {\n\tif (_variables == null) _variables = new Hashtable();\n\tfinal String name = variable.getName().getStringRep();\n\treturn (Variable)_variables.put(name, variable);\n    }\n\t\n    public Param addParam(Param parameter) {\n\tif (_variables == null) _variables = new Hashtable();\n\tfinal String name = parameter.getName().getStringRep();\n\treturn (Param)_variables.put(name, parameter);\n    }\n\t\n    public Variable lookupVariable(QName qname) {\n\tif (_variables == null) return null;\n\tfinal String name = qname.getStringRep();\n\tfinal Object obj = _variables.get(name);\n\treturn obj instanceof Variable ? (Variable)obj : null;\n    }\n\n    public Param lookupParam(QName qname) {\n\tif (_variables == null) return null;\n\tfinal String name = qname.getStringRep();\n\tfinal Object obj = _variables.get(name);\n\treturn obj instanceof Param ? (Param)obj : null;\n    }\n\t\n    public SyntaxTreeNode lookupName(QName qname) {\n\tif (_variables == null) return null;\n\tfinal String name = qname.getStringRep();\n\treturn (SyntaxTreeNode)_variables.get(name);\n    }\n\n    public AttributeSet addAttributeSet(AttributeSet atts) {\n\tif (_attributeSets == null) _attributeSets = new Hashtable();\n\treturn (AttributeSet)_attributeSets.put(atts.getName(), atts);\n    }\n\n    public AttributeSet lookupAttributeSet(QName name) {\n\tif (_attributeSets == null) return null;\n\treturn (AttributeSet)_attributeSets.get(name);\n    }\n\n    /**\n     * Add a primitive operator or function to the symbol table. To avoid\n     * name clashes with user-defined names, the prefix <tt>PrimopPrefix</tt>\n     * is prepended.\n     */\n    public void addPrimop(String name, MethodType mtype) {\n\tVector methods = (Vector)_primops.get(name);\n\tif (methods == null) {\n\t    _primops.put(name, methods = new Vector());\n\t}\n\tmethods.addElement(mtype);\n    }\n\t\n    /**\n     * Lookup a primitive operator or function in the symbol table by\n     * prepending the prefix <tt>PrimopPrefix</tt>.\n     */\n    public Vector lookupPrimop(String name) {\n\treturn (Vector)_primops.get(name);\n    }\n\n    /**\n     * This is used for xsl:attribute elements that have a \"namespace\"\n     * attribute that is currently not defined using xmlns:\n     */\n    private int _nsCounter = 0;\n\n    public String generateNamespacePrefix() {\n\treturn(new String(\"ns\"+(_nsCounter++)));\n    }\n\n    /**\n     * Use a namespace prefix to lookup a namespace URI\n     */\n    private SyntaxTreeNode _current = null;\n\n    public void setCurrentNode(SyntaxTreeNode node) {\n\t_current = node;\n    }\n\n    public String lookupNamespace(String prefix) {\n\tif (_current == null) return(Constants.EMPTYSTRING);\n\treturn(_current.lookupNamespace(prefix));\n    }\n\n    /**\n     * Adds an alias for a namespace prefix\n     */ \n    public void addPrefixAlias(String prefix, String alias) {\n\tif (_aliases == null) _aliases = new Hashtable();\n\t_aliases.put(prefix,alias);\n    }\n\n    /**\n     * Retrieves any alias for a given namespace prefix\n     */ \n    public String lookupPrefixAlias(String prefix) {\n\tif (_aliases == null) return null;\n\treturn (String)_aliases.get(prefix);\n    }\n\n    /**\n     * Register a namespace URI so that it will not be declared in the output\n     * unless it is actually referenced in the output.\n     */\n    public void excludeURI(String uri) {\n\tif (uri == null) return;\n\n\tif (_excludedURI == null) _excludedURI = new Hashtable();\n\n\tInteger refcnt = (Integer)_excludedURI.get(uri);\n\tif (refcnt == null)\n\t    refcnt = new Integer(1);\n\telse\n\t    refcnt = new Integer(refcnt.intValue() + 1);\n\t_excludedURI.put(uri,refcnt);\n    }\n\n    /**\n     * Exclude a series of namespaces given by a list of whitespace\n     * separated namespace prefixes.\n     */\n    public void excludeNamespaces(String prefixes) {\n\tif (prefixes != null) {\n\t    StringTokenizer tokens = new StringTokenizer(prefixes);\n\t    while (tokens.hasMoreTokens()) {\n\t\tfinal String prefix = tokens.nextToken();\n\t\tfinal String uri;\n\t\tif (prefix.equals(\"#default\"))\n\t\t    uri = lookupNamespace(Constants.EMPTYSTRING);\n\t\telse\n\t\t    uri = lookupNamespace(prefix);\n\t\tif (uri != null) excludeURI(uri);\n\t    }\n\t}\n    }\n\n    /**\n     * Check if a namespace should not be declared in the output (unless used)\n     */\n    public boolean isExcludedNamespace(String uri) {\n\tif (uri != null && _excludedURI != null) {\n\t    final Integer refcnt = (Integer)_excludedURI.get(uri);\n\t    return (refcnt != null && refcnt.intValue() > 0);\n\t}\n\treturn false;\n    }\n\n    /**\n     * Turn of namespace declaration exclusion\n     */\n    public void unExcludeNamespaces(String prefixes) {\n\tif (_excludedURI == null) return;\n\tif (prefixes != null) {\n\t    StringTokenizer tokens = new StringTokenizer(prefixes);\n\t    while (tokens.hasMoreTokens()) {\n\t\tfinal String prefix = tokens.nextToken();\n\t\tfinal String uri;\n\t\tif (prefix.equals(\"#default\"))\n\t\t    uri = lookupNamespace(Constants.EMPTYSTRING);\n\t\telse\n\t\t    uri = lookupNamespace(prefix);\n\t\tInteger refcnt = (Integer)_excludedURI.get(uri);\n\t\tif (refcnt != null)\n\t\t    _excludedURI.put(uri, new Integer(refcnt.intValue() - 1));", "functions": [{"function_name": "getDecimalFormatting", "code": "    public DecimalFormatting getDecimalFormatting(QName name) {\n\tif (_decimalFormats == null) return null;\n\treturn((DecimalFormatting)_decimalFormats.get(name));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addDecimalFormatting", "code": "    public void addDecimalFormatting(QName name, DecimalFormatting symbols) {\n\tif (_decimalFormats == null) _decimalFormats = new Hashtable();\n\t_decimalFormats.put(name, symbols);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addStylesheet", "code": "    public Stylesheet addStylesheet(QName name, Stylesheet node) {\n\treturn (Stylesheet)_stylesheets.put(name, node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "lookupStylesheet", "code": "    public Stylesheet lookupStylesheet(QName name) {\n\treturn (Stylesheet)_stylesheets.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addTemplate", "code": "    public Template addTemplate(Template template) {\n\tfinal QName name = template.getName();\n\tif (_templates == null) _templates = new Hashtable();\n\treturn (Template)_templates.put(name, template);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [2, 7], [5, 8], [3, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 2], [8, 5], [9, 3], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "lookupTemplate", "code": "    public Template lookupTemplate(QName name) {\n\tif (_templates == null) return null;\n\treturn (Template)_templates.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addVariable", "code": "    public Variable addVariable(Variable variable) {\n\tif (_variables == null) _variables = new Hashtable();\n\tfinal String name = variable.getName().getStringRep();\n\treturn (Variable)_variables.put(name, variable);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 6], [2, 7], [3, 8], [5, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 1], [7, 2], [8, 3], [9, 5], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "addParam", "code": "    public Param addParam(Param parameter) {\n\tif (_variables == null) _variables = new Hashtable();\n\tfinal String name = parameter.getName().getStringRep();\n\treturn (Param)_variables.put(name, parameter);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 6], [2, 7], [3, 8], [5, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 1], [7, 2], [8, 3], [9, 5], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "lookupVariable", "code": "    public Variable lookupVariable(QName qname) {\n\tif (_variables == null) return null;\n\tfinal String name = qname.getStringRep();\n\tfinal Object obj = _variables.get(name);\n\treturn obj instanceof Variable ? (Variable)obj : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "COND_EXPR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [4, 8], [6, 9], [6, 10], [2, 11], [3, 12], [7, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 4], [9, 6], [10, 6], [11, 2], [12, 3], [13, 7], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "lookupParam", "code": "    public Param lookupParam(QName qname) {\n\tif (_variables == null) return null;\n\tfinal String name = qname.getStringRep();\n\tfinal Object obj = _variables.get(name);\n\treturn obj instanceof Param ? (Param)obj : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "COND_EXPR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [4, 8], [6, 9], [6, 10], [2, 11], [3, 12], [7, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 4], [9, 6], [10, 6], [11, 2], [12, 3], [13, 7], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "lookupName", "code": "    public SyntaxTreeNode lookupName(QName qname) {\n\tif (_variables == null) return null;\n\tfinal String name = qname.getStringRep();\n\treturn (SyntaxTreeNode)_variables.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [1, 7], [2, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 1], [8, 2], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addAttributeSet", "code": "    public AttributeSet addAttributeSet(AttributeSet atts) {\n\tif (_attributeSets == null) _attributeSets = new Hashtable();\n\treturn (AttributeSet)_attributeSets.put(atts.getName(), atts);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "lookupAttributeSet", "code": "    public AttributeSet lookupAttributeSet(QName name) {\n\tif (_attributeSets == null) return null;\n\treturn (AttributeSet)_attributeSets.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addPrimop", "code": "    public void addPrimop(String name, MethodType mtype) {\n\tVector methods = (Vector)_primops.get(name);\n\tif (methods == null) {\n\t    _primops.put(name, methods = new Vector());\n\t}\n\tmethods.addElement(mtype);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [2, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 2], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "lookupPrimop", "code": "    public Vector lookupPrimop(String name) {\n\treturn (Vector)_primops.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "generateNamespacePrefix", "code": "    public String generateNamespacePrefix() {\n\treturn(new String(\"ns\"+(_nsCounter++)));", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setCurrentNode", "code": "    public void setCurrentNode(SyntaxTreeNode node) {\n\t_current = node;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "lookupNamespace", "code": "    public String lookupNamespace(String prefix) {\n\tif (_current == null) return(Constants.EMPTYSTRING);\n\treturn(_current.lookupNamespace(prefix));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addPrefixAlias", "code": "    public void addPrefixAlias(String prefix, String alias) {\n\tif (_aliases == null) _aliases = new Hashtable();\n\t_aliases.put(prefix,alias);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "lookupPrefixAlias", "code": "    public String lookupPrefixAlias(String prefix) {\n\tif (_aliases == null) return null;\n\treturn (String)_aliases.get(prefix);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "excludeURI", "code": "    public void excludeURI(String uri) {\n\tif (uri == null) return;\n\n\tif (_excludedURI == null) _excludedURI = new Hashtable();\n\n\tInteger refcnt = (Integer)_excludedURI.get(uri);\n\tif (refcnt == null)\n\t    refcnt = new Integer(1);\n\telse\n\t    refcnt = new Integer(refcnt.intValue() + 1);\n\t_excludedURI.put(uri,refcnt);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [1, 11], [1, 12], [7, 13], [3, 14], [8, 15], [10, 16], [11, 17], [12, 18], [2, 19], [14, 20], [17, 21], [18, 22], [21, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 1], [12, 1], [13, 7], [14, 3], [15, 8], [16, 10], [17, 11], [18, 12], [19, 2], [20, 14], [21, 17], [22, 18], [23, 21], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "excludeNamespaces", "code": "    public void excludeNamespaces(String prefixes) {\n\tif (prefixes != null) {\n\t    StringTokenizer tokens = new StringTokenizer(prefixes);\n\t    while (tokens.hasMoreTokens()) {\n\t\tfinal String prefix = tokens.nextToken();\n\t\tfinal String uri;\n\t\tif (prefix.equals(\"#default\"))\n\t\t    uri = lookupNamespace(Constants.EMPTYSTRING);\n\t\telse\n\t\t    uri = lookupNamespace(prefix);\n\t\tif (uri != null) excludeURI(uri);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [5, 12], [8, 13], [9, 14], [8, 15], [13, 16], [9, 17], [9, 18], [14, 19], [11, 20], [17, 21], [18, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 4], [10, 4], [11, 4], [12, 5], [13, 8], [14, 9], [15, 8], [16, 13], [17, 9], [18, 9], [19, 14], [20, 11], [21, 17], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "isExcludedNamespace", "code": "    public boolean isExcludedNamespace(String uri) {\n\tif (uri != null && _excludedURI != null) {\n\t    final Integer refcnt = (Integer)_excludedURI.get(uri);\n\t    return (refcnt != null && refcnt.intValue() > 0);\n\t}\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [6, 10], [8, 11], [9, 12], [10, 13], [10, 14], [13, 15], [13, 16], [14, 17], [7, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 6], [11, 8], [12, 9], [13, 10], [14, 10], [15, 13], [16, 13], [17, 14], [18, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "unExcludeNamespaces", "code": "    public void unExcludeNamespaces(String prefixes) {\n\tif (_excludedURI == null) return;\n\tif (prefixes != null) {\n\t    StringTokenizer tokens = new StringTokenizer(prefixes);\n\t    while (tokens.hasMoreTokens()) {\n\t\tfinal String prefix = tokens.nextToken();\n\t\tfinal String uri;\n\t\tif (prefix.equals(\"#default\"))\n\t\t    uri = lookupNamespace(Constants.EMPTYSTRING);\n\t\telse\n\t\t    uri = lookupNamespace(prefix);\n\t\tInteger refcnt = (Integer)_excludedURI.get(uri);\n\t\tif (refcnt != null)\n\t\t    _excludedURI.put(uri, new Integer(refcnt.intValue() - 1));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [4, 9], [6, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [8, 17], [12, 18], [14, 19], [12, 20], [18, 21], [14, 22], [14, 23], [19, 24], [16, 25], [20, 26], [13, 27], [22, 28], [23, 29], [26, 30], [30, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 4], [10, 6], [11, 7], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 8], [18, 12], [19, 14], [20, 12], [21, 18], [22, 14], [23, 14], [24, 19], [25, 16], [26, 20], [27, 13], [28, 22], [29, 23], [30, 26], [31, 30], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}], "label": 0}
{"sample_id": "ivy-2.0-3541", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/module/id/ArtifactId.java", "language": "java", "name": "org.apache.ivy.core.module.id.ArtifactId", "code": "public class ArtifactId {\n    private ModuleId mid;\n\n    private String name;\n\n    private String type;\n\n    private String ext;\n\n    /**\n     * @param mid  The ModuleId, which is the base of this artifact.\n     * @param name  The name of the artifact.\n     * @param type  The type of the artifact.\n     */\n    public ArtifactId(ModuleId mid, String name, String type, String ext) {\n        this.mid = mid;\n        this.name = name;\n        this.type = type;\n        this.ext = ext;\n    }\n\n    /** {@inheritDoc} */\n    public boolean equals(Object obj) {\n        if (!(obj instanceof ArtifactId)) {\n            return false;\n        }\n        ArtifactId aid = (ArtifactId) obj;\n        return getModuleId().equals(aid.getModuleId()) && getName().equals(aid.getName())\n                && getExt().equals(aid.getExt()) && getType().equals(aid.getType());\n    }\n\n    /** {@inheritDoc} */\n    public int hashCode() {\n        //CheckStyle:MagicNumber| OFF\n        int hash = 17;\n        hash += getModuleId().hashCode() * 37;\n        hash += getName().hashCode() * 37;\n        hash += getType().hashCode() * 37;\n        //CheckStyle:MagicNumber| OFF\n        return hash;\n    }\n\n    /** {@inheritDoc} */\n    public String toString() {\n        return getModuleId()\n            + \"!\" + getName() + \".\" + getExt() \n            + (getType().equals(getExt()) ? \"\" : \"(\" + getType() + \")\");\n}\n\n    /**\n     * @return Returns the module id.\n     */\n    public ModuleId getModuleId() {\n        return mid;\n    }\n\n    /**\n     * @return Returns the name.\n     */\n    public String getName() {\n        return name;\n    }\n\n    /**\n     * @return Returns the type.\n     */\n    public String getType() {\n        return type;\n    }\n\n    /**\n     * @return Returns the ext.\n     */\n    public String getExt() {\n        return ext;", "functions": [{"function_name": "equals", "code": "    public boolean equals(Object obj) {\n        if (!(obj instanceof ArtifactId)) {\n            return false;\n        }\n        ArtifactId aid = (ArtifactId) obj;\n        return getModuleId().equals(aid.getModuleId()) && getName().equals(aid.getName())\n                && getExt().equals(aid.getExt()) && getType().equals(aid.getType());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [5, 8], [3, 9], [7, 10], [8, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [12, 17], [15, 18], [16, 19], [17, 20], [19, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 5], [9, 3], [10, 7], [11, 8], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [17, 12], [18, 15], [19, 16], [20, 17], [21, 19], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "hashCode", "code": "    public int hashCode() {\n        //CheckStyle:MagicNumber| OFF\n        int hash = 17;\n        hash += getModuleId().hashCode() * 37;\n        hash += getName().hashCode() * 37;\n        hash += getType().hashCode() * 37;\n        //CheckStyle:MagicNumber| OFF\n        return hash;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [5, 8], [2, 9], [6, 10], [6, 11], [7, 12], [7, 13], [8, 14], [8, 15], [11, 16], [13, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 5], [9, 2], [10, 6], [11, 6], [12, 7], [13, 7], [14, 8], [15, 8], [16, 11], [17, 13], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "toString", "code": "    public String toString() {\n        return getModuleId()\n            + \"!\" + getName() + \".\" + getExt() \n            + (getType().equals(getExt()) ? \"\" : \"(\" + getType() + \")\");", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [3, 7], [4, 8], [4, 9], [5, 10], [5, 11], [7, 12], [9, 13], [9, 14], [11, 15], [11, 16], [12, 17], [14, 18], [14, 19], [19, 20], [19, 21], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 3], [8, 4], [9, 4], [10, 5], [11, 5], [12, 7], [13, 9], [14, 9], [15, 11], [16, 11], [17, 12], [18, 14], [19, 14], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getModuleId", "code": "    public ModuleId getModuleId() {\n        return mid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public String getType() {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExt", "code": "    public String getExt() {\n        return ext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ArtifactId", "code": "    public ArtifactId(ModuleId mid, String name, String type, String ext) {\n        this.mid = mid;\n        this.name = name;\n        this.type = type;\n        this.ext = ext;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.6-7646", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/trace/GenerateEvent.java", "language": "java", "name": "org.apache.xalan.trace.GenerateEvent", "code": "public class GenerateEvent implements java.util.EventListener\n{\n\n  /**\n   * The XSLT Transformer, which either directly or indirectly contains most needed information.\n   *\n   * @see org.apache.xalan.transformer.TransformerImpl\n   */\n  public TransformerImpl m_processor;\n\n  /**\n   * The type of SAX event that was generated, as enumerated in the EVENTTYPE_XXX constants below.\n   */\n  public int m_eventtype;\n\n\n  /**\n   * Character data from a character or cdata event.\n   */\n  public char m_characters[];\n\n  /**\n   * The start position of the current data in m_characters.\n   */\n  public int m_start;\n\n  /**\n   * The length of the current data in m_characters.\n   */\n  public int m_length;\n\n  /**\n   * The name of the element or PI.\n   */\n  public String m_name;\n\n  /**\n   * The string data in the element (comments and PIs).\n   */\n  public String m_data;\n\n  /**\n   * The current attribute list.\n   */\n  public Attributes m_atts;\n\n  /**\n   * Constructor for startDocument, endDocument events.\n   *\n   * @param processor The XSLT TransformerFactory instance.\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   */\n  public GenerateEvent(TransformerImpl processor, int eventType)\n  {\n    m_processor = processor;\n    m_eventtype = eventType;\n  }\n\n  /**\n   * Constructor for startElement, endElement events.\n   *\n   * @param processor The XSLT TransformerFactory Instance.\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param name The name of the element.\n   * @param atts The SAX attribute list.\n   */\n  public GenerateEvent(TransformerImpl processor, int eventType, String name,\n                       Attributes atts)\n  {\n\n    m_name = name;\n    m_atts = atts;\n    m_processor = processor;\n    m_eventtype = eventType;\n  }\n\n  /**\n   * Constructor for characters, cdate events.\n   *\n   * @param processor The XSLT TransformerFactory instance.\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param ch The char array from the SAX event.\n   * @param start The start offset to be used in the char array.\n   * @param length The end offset to be used in the chara array.\n   */\n  public GenerateEvent(TransformerImpl processor, int eventType, char ch[],\n                       int start, int length)\n  {\n\n    m_characters = ch;\n    m_start = start;\n    m_length = length;\n    m_processor = processor;\n    m_eventtype = eventType;\n  }\n\n  /**\n   * Constructor for processingInstruction events.\n   *\n   * @param processor The instance of the XSLT processor.\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param name The name of the processing instruction.\n   * @param data The processing instruction data.\n   */\n  public GenerateEvent(TransformerImpl processor, int eventType, String name,\n                       String data)\n  {\n\n    m_name = name;\n    m_data = data;\n    m_processor = processor;\n    m_eventtype = eventType;\n  }\n\n  /**\n   * Constructor for comment and entity ref events.\n   *\n   * @param processor The XSLT processor instance.\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param data The comment or entity ref data.\n   */\n  public GenerateEvent(TransformerImpl processor, int eventType, String data)\n  {\n\n    m_data = data;\n    m_processor = processor;\n    m_eventtype = eventType;", "functions": [{"function_name": "GenerateEvent", "code": "  public GenerateEvent(TransformerImpl processor, int eventType)\n  {\n    m_processor = processor;\n    m_eventtype = eventType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "GenerateEvent", "code": "  public GenerateEvent(TransformerImpl processor, int eventType, String name,\n                       Attributes atts)\n  {\n\n    m_name = name;\n    m_atts = atts;\n    m_processor = processor;\n    m_eventtype = eventType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "GenerateEvent", "code": "  public GenerateEvent(TransformerImpl processor, int eventType, char ch[],\n                       int start, int length)\n  {\n\n    m_characters = ch;\n    m_start = start;\n    m_length = length;\n    m_processor = processor;\n    m_eventtype = eventType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "GenerateEvent", "code": "  public GenerateEvent(TransformerImpl processor, int eventType, String name,\n                       String data)\n  {\n\n    m_name = name;\n    m_data = data;\n    m_processor = processor;\n    m_eventtype = eventType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "GenerateEvent", "code": "  public GenerateEvent(TransformerImpl processor, int eventType, String data)\n  {\n\n    m_data = data;\n    m_processor = processor;\n    m_eventtype = eventType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "camel-1.0-1580", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/direct/DirectComponent.java", "language": "java", "name": "org.apache.camel.component.direct.DirectComponent", "code": "public class DirectComponent<E extends Exchange> implements Component<E> {\n\n\tprivate CamelContext context;\n\n\tpublic CamelContext getCamelContext() {\n\t\treturn context;\n\t}\n\n\tpublic ScheduledExecutorService getExecutorService() {\n\t\treturn null;\n\t}\n\n\tpublic Endpoint<E> createEndpoint(String uri) throws Exception {\n\n        ObjectHelper.notNull(getCamelContext(), \"camelContext\");        \n        URI u = new URI(uri);\n        Map parameters = URISupport.parseParamters(u);\n\n        Endpoint<E> endpoint = new DirectEndpoint<E>(uri,this);\n        if (parameters != null) {\n            IntrospectionSupport.setProperties(endpoint, parameters);\n        }\n        return endpoint;\n\t}\n\n\tpublic void setCamelContext(CamelContext context) {\n\t\tthis.context = context;", "functions": [{"function_name": "getCamelContext", "code": "\tpublic CamelContext getCamelContext() {\n\t\treturn context;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExecutorService", "code": "\tpublic ScheduledExecutorService getExecutorService() {\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createEndpoint", "code": "\tpublic Endpoint<E> createEndpoint(String uri) throws Exception {\n\n        ObjectHelper.notNull(getCamelContext(), \"camelContext\");        \n        URI u = new URI(uri);\n        Map parameters = URISupport.parseParamters(u);\n\n        Endpoint<E> endpoint = new DirectEndpoint<E>(uri,this);\n        if (parameters != null) {\n            IntrospectionSupport.setProperties(endpoint, parameters);\n        }\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [7, 9], [3, 10], [4, 11], [5, 12], [8, 13], [8, 14], [2, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 7], [10, 3], [11, 4], [12, 5], [13, 8], [14, 8], [15, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setCamelContext", "code": "\tpublic void setCamelContext(CamelContext context) {\n\t\tthis.context = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6645", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/extensions/MethodResolver.java", "language": "java", "name": "org.apache.xalan.extensions.MethodResolver", "code": "public class MethodResolver\n{\n\n  /**\n   * Specifies a search for static methods only.\n   */\n  public static final int STATIC_ONLY         = 1;\n\n  /**\n   * Specifies a search for instance methods only.\n   */\n  public static final int INSTANCE_ONLY       = 2;\n\n  /**\n   * Specifies a search for both static and instance methods.\n   */\n  public static final int STATIC_AND_INSTANCE = 3;\n\n  /**\n   * Specifies a Dynamic method search.  If the method being\n   * evaluated is a static method, all arguments are used.\n   * Otherwise, it is an instance method and only arguments\n   * beginning with the second argument are used.\n   */\n  public static final int DYNAMIC             = 4;\n\n  /**\n   * Given a class, figure out the resolution of \n   * the Java Constructor from the XSLT argument types, and perform the \n   * conversion of the arguments.\n   * @param classObj the Class of the object to be constructed.\n   * @param argsIn An array of XSLT/XPath arguments.\n   * @param argsOut An array of the exact size as argsIn, which will be \n   * populated with converted arguments if a suitable method is found.\n   * @return A constructor that will work with the argsOut array.\n   * @throws TransformerException may be thrown for Xalan conversion\n   * exceptions.\n   */\n  public static Constructor getConstructor(Class classObj, \n                                           Object[] argsIn, \n                                           Object[][] argsOut,\n                                           ExpressionContext exprContext)\n    throws NoSuchMethodException,\n           SecurityException,\n           TransformerException\n  {\n    Constructor bestConstructor = null;\n    Class[] bestParamTypes = null;\n    Constructor[] constructors = classObj.getConstructors();\n    int nMethods = constructors.length;\n    int bestScore = Integer.MAX_VALUE;\n    int bestScoreCount = 0;\n    for(int i = 0; i < nMethods; i++)\n    {\n      Constructor ctor = constructors[i];\n      Class[] paramTypes = ctor.getParameterTypes();\n      int numberMethodParams = paramTypes.length;\n      int paramStart = 0;\n      boolean isFirstExpressionContext = false;\n      int scoreStart;\n      if(numberMethodParams == (argsIn.length+1))\n      {\n        Class javaClass = paramTypes[0];\n        if(ExpressionContext.class.isAssignableFrom(javaClass))\n        {\n          isFirstExpressionContext = true;\n          scoreStart = 0;\n          paramStart++;\n        }\n        else\n          continue;\n      }\n      else\n          scoreStart = 1000;\n      \n      if(argsIn.length == (numberMethodParams - paramStart))\n      {\n        int score = scoreMatch(paramTypes, paramStart, argsIn, scoreStart);\n        if(-1 == score)\t\n          continue;\n        if(score < bestScore)\n        {\n          bestConstructor = ctor;\n          bestParamTypes = paramTypes;\n          bestScore = score;\n          bestScoreCount = 1;\n        }\n        else if (score == bestScore)\n          bestScoreCount++;\n      }\n    }\n\n    if(null == bestConstructor)\n    {\n      throw new NoSuchMethodException(errString(\"function\", \"constructor\", classObj,\n                                                                        \"\", 0, argsIn));\n    }\n    /*** This is commented out until we can do a better object -> object scoring \n    else if (bestScoreCount > 1)\n                                                                   + classObj.getName());\n    ***/\n    else\n      convertParams(argsIn, argsOut, bestParamTypes, exprContext);\n    \n    return bestConstructor;\n  }\n\n  \n  /**\n   * Given the name of a method, figure out the resolution of \n   * the Java Method from the XSLT argument types, and perform the \n   * conversion of the arguments.\n   * @param classObj The Class of the object that should have the method.\n   * @param name The name of the method to be invoked.\n   * @param argsIn An array of XSLT/XPath arguments.\n   * @param argsOut An array of the exact size as argsIn, which will be \n   * populated with converted arguments if a suitable method is found.\n   * @return A method that will work with the argsOut array.\n   * @throws TransformerException may be thrown for Xalan conversion\n   * exceptions.\n   */\n  public static Method getMethod(Class classObj,\n                                 String name, \n                                 Object[] argsIn, \n                                 Object[][] argsOut,\n                                 ExpressionContext exprContext,\n                                 int searchMethod)\n    throws NoSuchMethodException,\n           SecurityException,\n           TransformerException\n  {\n    if (name.indexOf(\"-\")>0)\n      name = replaceDash(name);\n    Method bestMethod = null;\n    Class[] bestParamTypes = null;\n    Method[] methods = classObj.getMethods();\n    int nMethods = methods.length;\n    int bestScore = Integer.MAX_VALUE;\n    int bestScoreCount = 0;\n    boolean isStatic;\n    for(int i = 0; i < nMethods; i++)\n    {\n      Method method = methods[i];\n      int xsltParamStart = 0;\n      if(method.getName().equals(name))\n      {\n        isStatic = Modifier.isStatic(method.getModifiers());\n        switch(searchMethod)\n        {\n          case STATIC_ONLY:\n            if (!isStatic)\n            {\n              continue;\n            }\n            break;\n\n          case INSTANCE_ONLY:\n            if (isStatic)\n            {\n              continue;\n            }\n            break;\n\n          case STATIC_AND_INSTANCE:\n            break;\n\n          case DYNAMIC:\n            if (!isStatic)\n              xsltParamStart = 1;\n        }\n        int javaParamStart = 0;\n        Class[] paramTypes = method.getParameterTypes();\n        int numberMethodParams = paramTypes.length;\n        boolean isFirstExpressionContext = false;\n        int scoreStart;\n        int argsLen = (null != argsIn) ? argsIn.length : 0;\n        if(numberMethodParams == (argsLen-xsltParamStart+1))\n        {\n          Class javaClass = paramTypes[0];\n          if(ExpressionContext.class.isAssignableFrom(javaClass))\n          {\n            isFirstExpressionContext = true;\n            scoreStart = 0;\n            javaParamStart++;\n          }\n          else\n          {\n            continue;\n          }\n        }\n        else\n            scoreStart = 1000;\n        \n        if((argsLen - xsltParamStart) == (numberMethodParams - javaParamStart))\n        {\n          int score = scoreMatch(paramTypes, javaParamStart, argsIn, scoreStart);\n          if(-1 == score)\n            continue;\n          if(score < bestScore)\n          {\n            bestMethod = method;\n            bestParamTypes = paramTypes;\n            bestScore = score;\n            bestScoreCount = 1;\n          }\n          else if (score == bestScore)\n            bestScoreCount++;\n        }\n      }\n    }\n    \n    if (null == bestMethod)\n    {\n      throw new NoSuchMethodException(errString(\"function\", \"method\", classObj,\n                                                                name, searchMethod, argsIn));\n    }\n    /*** This is commented out until we can do a better object -> object scoring \n    else if (bestScoreCount > 1)\n    ***/\n    else\n      convertParams(argsIn, argsOut, bestParamTypes, exprContext);\n    \n    return bestMethod;\n  }\n  \n  /**\n   * To support EXSLT extensions, convert names with dash to allowable Java names: \n   * e.g., convert abc-xyz to abcXyz.\n   * Note: dashes only appear in middle of an EXSLT function or element name.\n   */\n  private static String replaceDash(String name)\n  {\n    char dash = '-';\n    StringBuffer buff = new StringBuffer(\"\");\n    for (int i=0; i<name.length(); i++)\n    {\n      if (name.charAt(i) == dash)\n      {}\n      else if (i > 0 && name.charAt(i-1) == dash)\n        buff.append(Character.toUpperCase(name.charAt(i)));\n      else\n        buff.append(name.charAt(i));\n    }\n    return buff.toString();\n  }\n  \n  /**\n   * Given the name of a method, figure out the resolution of \n   * the Java Method\n   * @param classObj The Class of the object that should have the method.\n   * @param name The name of the method to be invoked.\n   * @return A method that will work to be called as an element.\n   * @throws TransformerException may be thrown for Xalan conversion\n   * exceptions.\n   */\n  public static Method getElementMethod(Class classObj,\n                                        String name)\n    throws NoSuchMethodException,\n           SecurityException,\n           TransformerException\n  {\n    Method bestMethod = null;\n    Method[] methods = classObj.getMethods();\n    int nMethods = methods.length;\n    int bestScoreCount = 0;\n    for(int i = 0; i < nMethods; i++)\n    {\n      Method method = methods[i];\n      if(method.getName().equals(name))\n      {\n        Class[] paramTypes = method.getParameterTypes();\n        if ( (paramTypes.length == 2)\n           && paramTypes[1].isAssignableFrom(org.apache.xalan.templates.ElemExtensionCall.class)\n                                         && paramTypes[0].isAssignableFrom(org.apache.xalan.extensions.XSLProcessorContext.class) )\n        {\n          if ( ++bestScoreCount == 1 )\n            bestMethod = method;\n          else\n            break;\n        }\n      }\n    }\n    \n    if (null == bestMethod)\n    {\n      throw new NoSuchMethodException(errString(\"element\", \"method\", classObj,\n                                                                        name, 0, null));\n    }\n    else if (bestScoreCount > 1)\n    \n    return bestMethod;\n  }\n  \n\n  /**\n   * Convert a set of parameters based on a set of paramTypes.\n   * @param argsIn An array of XSLT/XPath arguments.\n   * @param argsOut An array of the exact size as argsIn, which will be \n   * populated with converted arguments.\n   * @param paramTypes An array of class objects, of the exact same \n   * size as argsIn and argsOut.\n   * @throws TransformerException may be thrown for Xalan conversion\n   * exceptions.\n   */\n  public static void convertParams(Object[] argsIn, \n                                   Object[][] argsOut, Class[] paramTypes,\n                                   ExpressionContext exprContext)\n    throws javax.xml.transform.TransformerException\n  {\n    if (paramTypes == null)\n      argsOut[0] = null;\n    else\n    {\n      int nParams = paramTypes.length;\n      argsOut[0] = new Object[nParams];\n      int paramIndex = 0;\n      if((nParams > 0) \n         && ExpressionContext.class.isAssignableFrom(paramTypes[0]))\n      {\n        argsOut[0][0] = exprContext;\n        paramIndex++;\n      }\n\n      if (argsIn != null)\n      {\n        for(int i = argsIn.length - nParams + paramIndex ; paramIndex < nParams; i++, paramIndex++)\n        {\n          argsOut[0][paramIndex] = convert(argsIn[i], paramTypes[paramIndex]);\n        }\n      }\n    }\n  }\n  \n  /**\n   * Simple class to hold information about allowed conversions \n   * and their relative scores, for use by the table below.\n   */\n  static class ConversionInfo\n  {\n    ConversionInfo(Class cl, int score)\n    {\n      m_class = cl;\n      m_score = score;\n    }\n    \n  }\n  \n  private static final int SCOREBASE=1;\n  \n  /**\n   * Specification of conversions from XSLT type CLASS_UNKNOWN\n   * (i.e. some unknown Java object) to allowed Java types.\n   */\n  static ConversionInfo[] m_javaObjConversions = {\n    new ConversionInfo(Double.TYPE, 11),\n    new ConversionInfo(Float.TYPE, 12),\n    new ConversionInfo(Long.TYPE, 13),\n    new ConversionInfo(Integer.TYPE, 14),\n    new ConversionInfo(Short.TYPE, 15),\n    new ConversionInfo(Character.TYPE, 16),\n    new ConversionInfo(Byte.TYPE, 17),\n    new ConversionInfo(java.lang.String.class, 18)\n  };\n  \n  /**\n   * Specification of conversions from XSLT type CLASS_BOOLEAN\n   * to allowed Java types.\n   */\n  static ConversionInfo[] m_booleanConversions = {\n    new ConversionInfo(Boolean.TYPE, 0),\n    new ConversionInfo(java.lang.Boolean.class, 1),\n    new ConversionInfo(java.lang.Object.class, 2),\n    new ConversionInfo(java.lang.String.class, 3)\n  };\n\n  /**\n   * Specification of conversions from XSLT type CLASS_NUMBER\n   * to allowed Java types.\n   */\n  static ConversionInfo[] m_numberConversions = {\n    new ConversionInfo(Double.TYPE, 0),\n    new ConversionInfo(java.lang.Double.class, 1),\n    new ConversionInfo(Float.TYPE, 3),\n    new ConversionInfo(Long.TYPE, 4),\n    new ConversionInfo(Integer.TYPE, 5),\n    new ConversionInfo(Short.TYPE, 6),\n    new ConversionInfo(Character.TYPE, 7),\n    new ConversionInfo(Byte.TYPE, 8),\n    new ConversionInfo(Boolean.TYPE, 9),\n    new ConversionInfo(java.lang.String.class, 10),\n    new ConversionInfo(java.lang.Object.class, 11)\n  };\n\n  /**\n   * Specification of conversions from XSLT type CLASS_STRING\n   * to allowed Java types.\n   */\n  static ConversionInfo[] m_stringConversions = {\n    new ConversionInfo(java.lang.String.class, 0),\n    new ConversionInfo(java.lang.Object.class, 1),\n    new ConversionInfo(Character.TYPE, 2),\n    new ConversionInfo(Double.TYPE, 3),\n    new ConversionInfo(Float.TYPE, 3),\n    new ConversionInfo(Long.TYPE, 3),\n    new ConversionInfo(Integer.TYPE, 3),\n    new ConversionInfo(Short.TYPE, 3),\n    new ConversionInfo(Byte.TYPE, 3),\n    new ConversionInfo(Boolean.TYPE, 4)\n  };\n\n  /**\n   * Specification of conversions from XSLT type CLASS_RTREEFRAG\n   * to allowed Java types.\n   */\n  static ConversionInfo[] m_rtfConversions = {\n    new ConversionInfo(org.w3c.dom.traversal.NodeIterator.class, 0),\n    new ConversionInfo(org.w3c.dom.NodeList.class, 1),\n    new ConversionInfo(org.w3c.dom.Node.class, 2),\n    new ConversionInfo(java.lang.String.class, 3),\n    new ConversionInfo(java.lang.Object.class, 5),\n    new ConversionInfo(Character.TYPE, 6),\n    new ConversionInfo(Double.TYPE, 7),\n    new ConversionInfo(Float.TYPE, 7),\n    new ConversionInfo(Long.TYPE, 7),\n    new ConversionInfo(Integer.TYPE, 7),\n    new ConversionInfo(Short.TYPE, 7),\n    new ConversionInfo(Byte.TYPE, 7),\n    new ConversionInfo(Boolean.TYPE, 8)\n  };\n  \n  /**\n   * Specification of conversions from XSLT type CLASS_NODESET\n   * to allowed Java types.  (This is the same as for CLASS_RTREEFRAG)\n   */\n  static ConversionInfo[] m_nodesetConversions = {\n    new ConversionInfo(org.w3c.dom.traversal.NodeIterator.class, 0),\n    new ConversionInfo(org.w3c.dom.NodeList.class, 1),\n    new ConversionInfo(org.w3c.dom.Node.class, 2),\n    new ConversionInfo(java.lang.String.class, 3),\n    new ConversionInfo(java.lang.Object.class, 5),\n    new ConversionInfo(Character.TYPE, 6),\n    new ConversionInfo(Double.TYPE, 7),\n    new ConversionInfo(Float.TYPE, 7),\n    new ConversionInfo(Long.TYPE, 7),\n    new ConversionInfo(Integer.TYPE, 7),\n    new ConversionInfo(Short.TYPE, 7),\n    new ConversionInfo(Byte.TYPE, 7),\n    new ConversionInfo(Boolean.TYPE, 8)\n  };\n  \n  /**\n   * Order is significant in the list below, based on \n   * XObject.CLASS_XXX values.\n   */\n  static ConversionInfo[][] m_conversions = \n  {\n  };\n  \n  /**\n   * Score the conversion of a set of XSLT arguments to a \n   * given set of Java parameters.\n   * If any invocations of this function for a method with \n   * the same name return the same positive value, then a conflict \n   * has occured, and an error should be signaled.\n   * @param javaParamTypes Must be filled with valid class names, and \n   * of the same length as xsltArgs.\n   * @param xsltArgs Must be filled with valid object instances, and \n   * of the same length as javeParamTypes.\n   * @return -1 for no allowed conversion, or a positive score \n   * that is closer to zero for more preferred, or further from \n   * zero for less preferred.\n   */\n  public static int scoreMatch(Class[] javaParamTypes, int javaParamsStart,\n                               Object[] xsltArgs, int score)\n  {\n    if ((xsltArgs == null) || (javaParamTypes == null))\n      return score;\n    int nParams = xsltArgs.length;\n    for(int i = nParams - javaParamTypes.length + javaParamsStart, javaParamTypesIndex = javaParamsStart; \n        i < nParams; \n        i++, javaParamTypesIndex++)\n    {\n      Object xsltObj = xsltArgs[i];\n      int xsltClassType = (xsltObj instanceof XObject) \n                          ? ((XObject)xsltObj).getType() \n                            : XObject.CLASS_UNKNOWN;\n      Class javaClass = javaParamTypes[javaParamTypesIndex];\n      \n      \n      if(xsltClassType == XObject.CLASS_NULL)\n      {\n        if(!javaClass.isPrimitive())\n        {\n          score += 10;\n          continue;\n        }\n        \n      }\n      \n      ConversionInfo[] convInfo = m_conversions[xsltClassType];\n      int nConversions = convInfo.length;\n      int k;\n      for(k = 0; k < nConversions; k++)\n      {\n        ConversionInfo cinfo = convInfo[k];\n        if(javaClass.isAssignableFrom(cinfo.m_class))\n        {\n          score += cinfo.m_score;\n        }\n      }\n\n      if (k == nConversions)\n      {\n\n\n                                \n\n        if (XObject.CLASS_UNKNOWN == xsltClassType)\n        {\n          Class realClass = null;\n\n          if (xsltObj instanceof XObject)\n          {\n            Object realObj = ((XObject) xsltObj).object();\n            if (null != realObj)\n            {\n              realClass = realObj.getClass();\n            }\n            else\n            {\n              score += 10;\n              continue;\n            }\n          }\n          else\n          {\n            realClass = xsltObj.getClass();\n          }\n\n          if (javaClass.isAssignableFrom(realClass))\n          {\n          }\n          else\n            return -1;\n        }\n        else\n          return -1;\n      }\n    }\n    return score;\n  }\n  \n  /**\n   * Convert the given XSLT object to an object of \n   * the given class.\n   * @param xsltObj The XSLT object that needs conversion.\n   * @param javaClass The type of object to convert to.\n   * @returns An object suitable for passing to the Method.invoke \n   * function in the args array, which may be null in some cases.\n   * @throws TransformerException may be thrown for Xalan conversion\n   * exceptions.\n   */\n  static Object convert(Object xsltObj, Class javaClass)\n    throws javax.xml.transform.TransformerException\n  {\n    if(xsltObj instanceof XObject)\n    {\n      XObject xobj = ((XObject)xsltObj);\n      int xsltClassType = xobj.getType();\n\n      switch(xsltClassType)\n      {\n      case XObject.CLASS_NULL:\n        return null;\n        \n      case XObject.CLASS_BOOLEAN:\n        {\n          if(javaClass == java.lang.String.class)\n            return xobj.str();\n          else\n            return new Boolean(xobj.bool());\n        }\n      case XObject.CLASS_NUMBER:\n        {\n          if(javaClass == java.lang.String.class)\n            return xobj.str();\n          else if(javaClass == Boolean.TYPE)\n            return new Boolean(xobj.bool());\n          else \n          {\n            return convertDoubleToNumber(xobj.num(), javaClass);\n          }\n        }\n        \n      case XObject.CLASS_STRING:\n        {\n          if((javaClass == java.lang.String.class) ||\n             (javaClass == java.lang.Object.class))\n            return xobj.str();\n          else if(javaClass == Character.TYPE)\n          {\n            String str = xobj.str();\n            if(str.length() > 0)\n              return new Character(str.charAt(0));\n            \n          }\n          else if(javaClass == Boolean.TYPE)\n            return new Boolean(xobj.bool());\n          else \n          {\n            return convertDoubleToNumber(xobj.num(), javaClass);\n          }\n        }\n        \n      case XObject.CLASS_RTREEFRAG:\n        {\n          if ( (javaClass == NodeIterator.class) ||\n               (javaClass == java.lang.Object.class) )\n          {\n            DTMIterator dtmIter = ((XRTreeFrag) xobj).asNodeIterator();\n            return new DTMNodeIterator(dtmIter);\n          }\n          else if (javaClass == NodeList.class)\n          {\n            return ((XRTreeFrag) xobj).convertToNodeset();\n          }\n          else if(javaClass == Node.class)\n          {\n            DTMIterator iter = ((XRTreeFrag) xobj).asNodeIterator();\n            int rootHandle = iter.nextNode();\n            DTM dtm = iter.getDTM(rootHandle);\n            return dtm.getNode(dtm.getFirstChild(rootHandle));\n          }\n          else if(javaClass == java.lang.String.class)\n          {\n            return xobj.str();\n          }\n          else if(javaClass == Boolean.TYPE)\n          {\n            return new Boolean(xobj.bool());\n          }\n          else if(javaClass.isPrimitive())\n          {\n            return convertDoubleToNumber(xobj.num(), javaClass);\n          }\n          else\n          {\n            DTMIterator iter = ((XRTreeFrag) xobj).asNodeIterator();\n            int rootHandle = iter.nextNode();\n            DTM dtm = iter.getDTM(rootHandle);\n            Node child = dtm.getNode(dtm.getFirstChild(rootHandle));\n\n            if(javaClass.isAssignableFrom(child.getClass()))\n              return child;\n            else\n              return null;\n          }\n        }\n        \n      case XObject.CLASS_NODESET:\n        {\n          if ( (javaClass == NodeIterator.class) ||\n               (javaClass == java.lang.Object.class) )\n          {\n            return xobj.nodeset();\n          }\n          else if(javaClass == NodeList.class)\n          {\n            return xobj.nodelist();\n          }\n          else if(javaClass == Node.class)\n          {\n            DTMIterator ni = xobj.iter();\n            int handle = ni.nextNode();           \n          }\n          else if(javaClass == java.lang.String.class)\n          {\n            return xobj.str();\n          }\n          else if(javaClass == Boolean.TYPE)\n          {\n            return new Boolean(xobj.bool());\n          }\n          else if(javaClass.isPrimitive())\n          {\n            return convertDoubleToNumber(xobj.num(), javaClass);\n          }\n          else\n          {\n            DTMIterator iter = xobj.iter();\n            int childHandle = iter.nextNode();\n            DTM dtm = iter.getDTM(childHandle);\n            Node child = dtm.getNode(childHandle);\n            if(javaClass.isAssignableFrom(child.getClass()))\n              return child;\n            else\n              return null;\n          }\n        }\n\t  }\n      xsltObj = xobj.object();\n\t}\n    \n    if (null != xsltObj)\n    {\n      if(javaClass == java.lang.String.class)\n      {\n        return xsltObj.toString();\n      }\n      else if(javaClass.isPrimitive())\n      {\n        XString xstr = new XString(xsltObj.toString());\n        double num = xstr.num();\n        return convertDoubleToNumber(num, javaClass);\n      }\n      else if(javaClass == java.lang.Class.class)\n      {\n        return xsltObj.getClass();\n      }\n      else\n      {\n        return xsltObj;\n      }\n                }\n    else\n    {\n      return xsltObj;\n    }\n  }\n  \n  /**\n   * Do a standard conversion of a double to the specified type.\n   * @param num The number to be converted.\n   * @param javaClass The class type to be converted to.\n   * @return An object specified by javaClass, or a Double instance.\n   */\n  static Object convertDoubleToNumber(double num, Class javaClass)\n  {\n    if((javaClass == Double.TYPE) ||\n       (javaClass == java.lang.Double.class))\n      return new Double(num);\n    else if(javaClass == Float.TYPE)\n      return new Float(num);\n    else if(javaClass == Long.TYPE)\n    {\n      return new Long((long)num);\n    }\n    else if(javaClass == Integer.TYPE)\n    {\n      return new Integer((int)num);\n    }\n    else if(javaClass == Short.TYPE)\n    {\n      return new Short((short)num);\n    }\n    else if(javaClass == Character.TYPE)\n    {\n      return new Character((char)num);\n    }\n    else if(javaClass == Byte.TYPE)\n    {\n      return new Byte((byte)num);\n    }\n    {\n      return new Double(num);\n    }\n  }\n\n\n  private static String errArgs(Object[] xsltArgs, int startingArg)\n  {\n    StringBuffer returnArgs = new StringBuffer();\n    for (int i = startingArg; i < xsltArgs.length; i++)\n    {\n      if (i != startingArg)\n        returnArgs.append(\", \");\n      if (xsltArgs[i] instanceof XObject)\n        returnArgs.append(((XObject) xsltArgs[i]).getTypeString());      \n      else\n        returnArgs.append(xsltArgs[i].getClass().getName());\n    }\n    return returnArgs.toString();", "functions": [{"function_name": "getConstructor", "code": "  public static Constructor getConstructor(Class classObj, \n                                           Object[] argsIn, \n                                           Object[][] argsOut,\n                                           ExpressionContext exprContext)\n    throws NoSuchMethodException,\n           SecurityException,\n           TransformerException\n  {\n    Constructor bestConstructor = null;\n    Class[] bestParamTypes = null;\n    Constructor[] constructors = classObj.getConstructors();\n    int nMethods = constructors.length;\n    int bestScore = Integer.MAX_VALUE;\n    int bestScoreCount = 0;\n    for(int i = 0; i < nMethods; i++)\n    {\n      Constructor ctor = constructors[i];\n      Class[] paramTypes = ctor.getParameterTypes();\n      int numberMethodParams = paramTypes.length;\n      int paramStart = 0;\n      boolean isFirstExpressionContext = false;\n      int scoreStart;\n      if(numberMethodParams == (argsIn.length+1))\n      {\n        Class javaClass = paramTypes[0];\n        if(ExpressionContext.class.isAssignableFrom(javaClass))\n        {\n          isFirstExpressionContext = true;\n          scoreStart = 0;\n          paramStart++;\n        }\n        else\n          continue;\n      }\n      else\n          scoreStart = 1000;\n      \n      if(argsIn.length == (numberMethodParams - paramStart))\n      {\n        int score = scoreMatch(paramTypes, paramStart, argsIn, scoreStart);\n        if(-1 == score)\t\n          continue;\n        if(score < bestScore)\n        {\n          bestConstructor = ctor;\n          bestParamTypes = paramTypes;\n          bestScore = score;\n          bestScoreCount = 1;\n        }\n        else if (score == bestScore)\n          bestScoreCount++;\n      }\n    }\n\n    if(null == bestConstructor)\n    {\n      throw new NoSuchMethodException(errString(\"function\", \"constructor\", classObj,\n                                                                        \"\", 0, argsIn));\n    }\n    /*** This is commented out until we can do a better object -> object scoring \n    else if (bestScoreCount > 1)\n                                                                   + classObj.getName());\n    ***/\n    else\n      convertParams(argsIn, argsOut, bestParamTypes, exprContext);\n    \n    return bestConstructor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [3, 15], [2, 16], [2, 17], [14, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [4, 27], [7, 28], [8, 29], [9, 30], [17, 31], [19, 32], [20, 33], [3, 34], [31, 35], [19, 36], [19, 37], [19, 38], [32, 39], [20, 40], [20, 41], [20, 42], [33, 43], [22, 44], [23, 45], [25, 46], [35, 47], [35, 48], [35, 49], [35, 50], [36, 51], [36, 52], [37, 53], [37, 54], [40, 55], [41, 56], [41, 57], [43, 58], [51, 59], [54, 60], [38, 61], [36, 62], [36, 63], [36, 64], [36, 65], [41, 66], [41, 67], [62, 68], [66, 69], [67, 70], [42, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 3], [16, 2], [17, 2], [18, 14], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 3], [27, 4], [28, 7], [29, 8], [30, 9], [31, 17], [32, 19], [33, 20], [34, 3], [35, 31], [36, 19], [37, 19], [38, 19], [39, 32], [40, 20], [41, 20], [42, 20], [43, 33], [44, 22], [45, 23], [46, 25], [47, 35], [48, 35], [49, 35], [50, 35], [51, 36], [52, 36], [53, 37], [54, 37], [55, 40], [56, 41], [57, 41], [58, 43], [59, 51], [60, 54], [61, 38], [62, 36], [63, 36], [64, 36], [65, 36], [66, 41], [67, 41], [68, 62], [69, 66], [70, 67], [71, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "getMethod", "code": "  public static Method getMethod(Class classObj,\n                                 String name, \n                                 Object[] argsIn, \n                                 Object[][] argsOut,\n                                 ExpressionContext exprContext,\n                                 int searchMethod)\n    throws NoSuchMethodException,\n           SecurityException,\n           TransformerException\n  {\n    if (name.indexOf(\"-\")>0)\n      name = replaceDash(name);\n    Method bestMethod = null;\n    Class[] bestParamTypes = null;\n    Method[] methods = classObj.getMethods();\n    int nMethods = methods.length;\n    int bestScore = Integer.MAX_VALUE;\n    int bestScoreCount = 0;\n    boolean isStatic;\n    for(int i = 0; i < nMethods; i++)\n    {\n      Method method = methods[i];\n      int xsltParamStart = 0;\n      if(method.getName().equals(name))\n      {\n        isStatic = Modifier.isStatic(method.getModifiers());\n        switch(searchMethod)\n        {\n          case STATIC_ONLY:\n            if (!isStatic)\n            {\n              continue;\n            }\n            break;\n\n          case INSTANCE_ONLY:\n            if (isStatic)\n            {\n              continue;\n            }\n            break;\n\n          case STATIC_AND_INSTANCE:\n            break;\n\n          case DYNAMIC:\n            if (!isStatic)\n              xsltParamStart = 1;\n        }\n        int javaParamStart = 0;\n        Class[] paramTypes = method.getParameterTypes();\n        int numberMethodParams = paramTypes.length;\n        boolean isFirstExpressionContext = false;\n        int scoreStart;\n        int argsLen = (null != argsIn) ? argsIn.length : 0;\n        if(numberMethodParams == (argsLen-xsltParamStart+1))\n        {\n          Class javaClass = paramTypes[0];\n          if(ExpressionContext.class.isAssignableFrom(javaClass))\n          {\n            isFirstExpressionContext = true;\n            scoreStart = 0;\n            javaParamStart++;\n          }\n          else\n          {\n            continue;\n          }\n        }\n        else\n            scoreStart = 1000;\n        \n        if((argsLen - xsltParamStart) == (numberMethodParams - javaParamStart))\n        {\n          int score = scoreMatch(paramTypes, javaParamStart, argsIn, scoreStart);\n          if(-1 == score)\n            continue;\n          if(score < bestScore)\n          {\n            bestMethod = method;\n            bestParamTypes = paramTypes;\n            bestScore = score;\n            bestScoreCount = 1;\n          }\n          else if (score == bestScore)\n            bestScoreCount++;\n        }\n      }\n    }\n    \n    if (null == bestMethod)\n    {\n      throw new NoSuchMethodException(errString(\"function\", \"method\", classObj,\n                                                                name, searchMethod, argsIn));\n    }\n    /*** This is commented out until we can do a better object -> object scoring \n    else if (bestScoreCount > 1)\n    ***/\n    else\n      convertParams(argsIn, argsOut, bestParamTypes, exprContext);\n    \n    return bestMethod;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "SWITCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "IF", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "BREAK_CONTINUE", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [2, 18], [3, 19], [11, 20], [2, 21], [2, 22], [18, 23], [3, 24], [3, 25], [3, 26], [5, 27], [8, 28], [9, 29], [10, 30], [11, 31], [20, 32], [20, 33], [22, 34], [24, 35], [3, 36], [31, 37], [33, 38], [34, 39], [24, 40], [24, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [35, 49], [25, 50], [39, 51], [39, 52], [40, 53], [41, 54], [24, 55], [40, 56], [40, 57], [40, 58], [53, 59], [53, 60], [41, 61], [41, 62], [41, 63], [54, 64], [42, 65], [44, 66], [46, 67], [47, 68], [48, 69], [48, 70], [48, 71], [48, 72], [48, 73], [48, 74], [55, 75], [56, 76], [56, 77], [57, 78], [57, 79], [61, 80], [62, 81], [64, 82], [64, 83], [65, 84], [65, 85], [75, 86], [76, 87], [79, 88], [58, 89], [62, 90], [85, 91], [69, 92], [72, 93], [74, 94], [56, 95], [56, 96], [56, 97], [56, 98], [62, 99], [62, 100], [92, 101], [95, 102], [99, 103], [100, 104], [63, 105], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 2], [19, 3], [20, 11], [21, 2], [22, 2], [23, 18], [24, 3], [25, 3], [26, 3], [27, 5], [28, 8], [29, 9], [30, 10], [31, 11], [32, 20], [33, 20], [34, 22], [35, 24], [36, 3], [37, 31], [38, 33], [39, 34], [40, 24], [41, 24], [42, 24], [43, 24], [44, 24], [45, 24], [46, 24], [47, 24], [48, 24], [49, 35], [50, 25], [51, 39], [52, 39], [53, 40], [54, 41], [55, 24], [56, 40], [57, 40], [58, 40], [59, 53], [60, 53], [61, 41], [62, 41], [63, 41], [64, 54], [65, 42], [66, 44], [67, 46], [68, 47], [69, 48], [70, 48], [71, 48], [72, 48], [73, 48], [74, 48], [75, 55], [76, 56], [77, 56], [78, 57], [79, 57], [80, 61], [81, 62], [82, 64], [83, 64], [84, 65], [85, 65], [86, 75], [87, 76], [88, 79], [89, 58], [90, 62], [91, 85], [92, 69], [93, 72], [94, 74], [95, 56], [96, 56], [97, 56], [98, 56], [99, 62], [100, 62], [101, 92], [102, 95], [103, 99], [104, 100], [105, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105]]}, {"function_name": "replaceDash", "code": "  private static String replaceDash(String name)\n  {\n    char dash = '-';\n    StringBuffer buff = new StringBuffer(\"\");\n    for (int i=0; i<name.length(); i++)\n    {\n      if (name.charAt(i) == dash)\n      {}\n      else if (i > 0 && name.charAt(i-1) == dash)\n        buff.append(Character.toUpperCase(name.charAt(i)));\n      else\n        buff.append(name.charAt(i));\n    }\n    return buff.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [3, 10], [4, 11], [8, 12], [8, 13], [2, 14], [10, 15], [12, 16], [13, 17], [12, 18], [12, 19], [16, 20], [16, 21], [18, 22], [19, 23], [20, 24], [21, 25], [23, 26], [24, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 3], [11, 4], [12, 8], [13, 8], [14, 2], [15, 10], [16, 12], [17, 13], [18, 12], [19, 12], [20, 16], [21, 16], [22, 18], [23, 19], [24, 20], [25, 21], [26, 23], [27, 24], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "getElementMethod", "code": "  public static Method getElementMethod(Class classObj,\n                                        String name)\n    throws NoSuchMethodException,\n           SecurityException,\n           TransformerException\n  {\n    Method bestMethod = null;\n    Method[] methods = classObj.getMethods();\n    int nMethods = methods.length;\n    int bestScoreCount = 0;\n    for(int i = 0; i < nMethods; i++)\n    {\n      Method method = methods[i];\n      if(method.getName().equals(name))\n      {\n        Class[] paramTypes = method.getParameterTypes();\n        if ( (paramTypes.length == 2)\n           && paramTypes[1].isAssignableFrom(org.apache.xalan.templates.ElemExtensionCall.class)\n                                         && paramTypes[0].isAssignableFrom(org.apache.xalan.extensions.XSLProcessorContext.class) )\n        {\n          if ( ++bestScoreCount == 1 )\n            bestMethod = method;\n          else\n            break;\n        }\n      }\n    }\n    \n    if (null == bestMethod)\n    {\n      throw new NoSuchMethodException(errString(\"element\", \"method\", classObj,\n                                                                        name, 0, null));\n    }\n    else if (bestScoreCount > 1)\n    \n    return bestMethod;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [2, 11], [9, 12], [9, 13], [1, 14], [10, 15], [2, 16], [2, 17], [3, 18], [5, 19], [6, 20], [13, 21], [14, 22], [16, 23], [2, 24], [22, 25], [16, 26], [16, 27], [23, 28], [25, 29], [25, 30], [25, 31], [25, 32], [26, 33], [26, 34], [33, 35], [27, 36], [34, 37], [34, 38], [33, 39], [35, 40], [34, 41], [38, 42], [33, 43], [35, 44], [40, 45], [35, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 2], [12, 9], [13, 9], [14, 1], [15, 10], [16, 2], [17, 2], [18, 3], [19, 5], [20, 6], [21, 13], [22, 14], [23, 16], [24, 2], [25, 22], [26, 16], [27, 16], [28, 23], [29, 25], [30, 25], [31, 25], [32, 25], [33, 26], [34, 26], [35, 33], [36, 27], [37, 34], [38, 34], [39, 33], [40, 35], [41, 34], [42, 38], [43, 33], [44, 35], [45, 40], [46, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "convertParams", "code": "  public static void convertParams(Object[] argsIn, \n                                   Object[][] argsOut, Class[] paramTypes,\n                                   ExpressionContext exprContext)\n    throws javax.xml.transform.TransformerException\n  {\n    if (paramTypes == null)\n      argsOut[0] = null;\n    else\n    {\n      int nParams = paramTypes.length;\n      argsOut[0] = new Object[nParams];\n      int paramIndex = 0;\n      if((nParams > 0) \n         && ExpressionContext.class.isAssignableFrom(paramTypes[0]))\n      {\n        argsOut[0][0] = exprContext;\n        paramIndex++;\n      }\n\n      if (argsIn != null)\n      {\n        for(int i = argsIn.length - nParams + paramIndex ; paramIndex < nParams; i++, paramIndex++)\n        {\n          argsOut[0][paramIndex] = convert(argsIn[i], paramTypes[paramIndex]);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [6, 12], [7, 13], [8, 14], [1, 15], [11, 16], [7, 17], [13, 18], [14, 19], [14, 20], [9, 21], [17, 22], [8, 23], [20, 24], [11, 25], [15, 26], [17, 27], [17, 28], [19, 29], [27, 30], [28, 31], [23, 32], [23, 33], [27, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 6], [13, 7], [14, 8], [15, 1], [16, 11], [17, 7], [18, 13], [19, 14], [20, 14], [21, 9], [22, 17], [23, 8], [24, 20], [25, 11], [26, 15], [27, 17], [28, 17], [29, 19], [30, 27], [31, 28], [32, 23], [33, 23], [34, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "scoreMatch", "code": "  public static int scoreMatch(Class[] javaParamTypes, int javaParamsStart,\n                               Object[] xsltArgs, int score)\n  {\n    if ((xsltArgs == null) || (javaParamTypes == null))\n      return score;\n    int nParams = xsltArgs.length;\n    for(int i = nParams - javaParamTypes.length + javaParamsStart, javaParamTypesIndex = javaParamsStart; \n        i < nParams; \n        i++, javaParamTypesIndex++)\n    {\n      Object xsltObj = xsltArgs[i];\n      int xsltClassType = (xsltObj instanceof XObject) \n                          ? ((XObject)xsltObj).getType() \n                            : XObject.CLASS_UNKNOWN;\n      Class javaClass = javaParamTypes[javaParamTypesIndex];\n      \n      \n      if(xsltClassType == XObject.CLASS_NULL)\n      {\n        if(!javaClass.isPrimitive())\n        {\n          score += 10;\n          continue;\n        }\n        \n      }\n      \n      ConversionInfo[] convInfo = m_conversions[xsltClassType];\n      int nConversions = convInfo.length;\n      int k;\n      for(k = 0; k < nConversions; k++)\n      {\n        ConversionInfo cinfo = convInfo[k];\n        if(javaClass.isAssignableFrom(cinfo.m_class))\n        {\n          score += cinfo.m_score;\n        }\n      }\n\n      if (k == nConversions)\n      {\n\n\n                                \n\n        if (XObject.CLASS_UNKNOWN == xsltClassType)\n        {\n          Class realClass = null;\n\n          if (xsltObj instanceof XObject)\n          {\n            Object realObj = ((XObject) xsltObj).object();\n            if (null != realObj)\n            {\n              realClass = realObj.getClass();\n            }\n            else\n            {\n              score += 10;\n              continue;\n            }\n          }\n          else\n          {\n            realClass = xsltObj.getClass();\n          }\n\n          if (javaClass.isAssignableFrom(realClass))\n          {\n          }\n          else\n            return -1;\n        }\n        else\n          return -1;\n      }\n    }\n    return score;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "COND_EXPR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "BREAK_CONTINUE", "RETURN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [4, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [11, 21], [11, 22], [12, 23], [13, 24], [13, 25], [17, 26], [2, 27], [21, 28], [22, 29], [12, 30], [13, 31], [13, 32], [25, 33], [17, 34], [19, 35], [27, 36], [30, 37], [30, 38], [31, 39], [34, 40], [35, 41], [37, 42], [30, 43], [30, 44], [30, 45], [34, 46], [43, 47], [43, 48], [44, 49], [31, 50], [34, 51], [47, 52], [44, 53], [44, 54], [45, 55], [51, 56], [44, 57], [53, 58], [57, 59], [53, 60], [58, 61], [53, 62], [53, 63], [62, 64], [63, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 4], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 11], [22, 11], [23, 12], [24, 13], [25, 13], [26, 17], [27, 2], [28, 21], [29, 22], [30, 12], [31, 13], [32, 13], [33, 25], [34, 17], [35, 19], [36, 27], [37, 30], [38, 30], [39, 31], [40, 34], [41, 35], [42, 37], [43, 30], [44, 30], [45, 30], [46, 34], [47, 43], [48, 43], [49, 44], [50, 31], [51, 34], [52, 47], [53, 44], [54, 44], [55, 45], [56, 51], [57, 44], [58, 53], [59, 57], [60, 53], [61, 58], [62, 53], [63, 53], [64, 62], [65, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "convert", "code": "  static Object convert(Object xsltObj, Class javaClass)\n    throws javax.xml.transform.TransformerException\n  {\n    if(xsltObj instanceof XObject)\n    {\n      XObject xobj = ((XObject)xsltObj);\n      int xsltClassType = xobj.getType();\n\n      switch(xsltClassType)\n      {\n      case XObject.CLASS_NULL:\n        return null;\n        \n      case XObject.CLASS_BOOLEAN:\n        {\n          if(javaClass == java.lang.String.class)\n            return xobj.str();\n          else\n            return new Boolean(xobj.bool());\n        }\n      case XObject.CLASS_NUMBER:\n        {\n          if(javaClass == java.lang.String.class)\n            return xobj.str();\n          else if(javaClass == Boolean.TYPE)\n            return new Boolean(xobj.bool());\n          else \n          {\n            return convertDoubleToNumber(xobj.num(), javaClass);\n          }\n        }\n        \n      case XObject.CLASS_STRING:\n        {\n          if((javaClass == java.lang.String.class) ||\n             (javaClass == java.lang.Object.class))\n            return xobj.str();\n          else if(javaClass == Character.TYPE)\n          {\n            String str = xobj.str();\n            if(str.length() > 0)\n              return new Character(str.charAt(0));\n            \n          }\n          else if(javaClass == Boolean.TYPE)\n            return new Boolean(xobj.bool());\n          else \n          {\n            return convertDoubleToNumber(xobj.num(), javaClass);\n          }\n        }\n        \n      case XObject.CLASS_RTREEFRAG:\n        {\n          if ( (javaClass == NodeIterator.class) ||\n               (javaClass == java.lang.Object.class) )\n          {\n            DTMIterator dtmIter = ((XRTreeFrag) xobj).asNodeIterator();\n            return new DTMNodeIterator(dtmIter);\n          }\n          else if (javaClass == NodeList.class)\n          {\n            return ((XRTreeFrag) xobj).convertToNodeset();\n          }\n          else if(javaClass == Node.class)\n          {\n            DTMIterator iter = ((XRTreeFrag) xobj).asNodeIterator();\n            int rootHandle = iter.nextNode();\n            DTM dtm = iter.getDTM(rootHandle);\n            return dtm.getNode(dtm.getFirstChild(rootHandle));\n          }\n          else if(javaClass == java.lang.String.class)\n          {\n            return xobj.str();\n          }\n          else if(javaClass == Boolean.TYPE)\n          {\n            return new Boolean(xobj.bool());\n          }\n          else if(javaClass.isPrimitive())\n          {\n            return convertDoubleToNumber(xobj.num(), javaClass);\n          }\n          else\n          {\n            DTMIterator iter = ((XRTreeFrag) xobj).asNodeIterator();\n            int rootHandle = iter.nextNode();\n            DTM dtm = iter.getDTM(rootHandle);\n            Node child = dtm.getNode(dtm.getFirstChild(rootHandle));\n\n            if(javaClass.isAssignableFrom(child.getClass()))\n              return child;\n            else\n              return null;\n          }\n        }\n        \n      case XObject.CLASS_NODESET:\n        {\n          if ( (javaClass == NodeIterator.class) ||\n               (javaClass == java.lang.Object.class) )\n          {\n            return xobj.nodeset();\n          }\n          else if(javaClass == NodeList.class)\n          {\n            return xobj.nodelist();\n          }\n          else if(javaClass == Node.class)\n          {\n            DTMIterator ni = xobj.iter();\n            int handle = ni.nextNode();           \n          }\n          else if(javaClass == java.lang.String.class)\n          {\n            return xobj.str();\n          }\n          else if(javaClass == Boolean.TYPE)\n          {\n            return new Boolean(xobj.bool());\n          }\n          else if(javaClass.isPrimitive())\n          {\n            return convertDoubleToNumber(xobj.num(), javaClass);\n          }\n          else\n          {\n            DTMIterator iter = xobj.iter();\n            int childHandle = iter.nextNode();\n            DTM dtm = iter.getDTM(childHandle);\n            Node child = dtm.getNode(childHandle);\n            if(javaClass.isAssignableFrom(child.getClass()))\n              return child;\n            else\n              return null;\n          }\n        }\n\t  }\n      xsltObj = xobj.object();\n\t}\n    \n    if (null != xsltObj)\n    {\n      if(javaClass == java.lang.String.class)\n      {\n        return xsltObj.toString();\n      }\n      else if(javaClass.isPrimitive())\n      {\n        XString xstr = new XString(xsltObj.toString());\n        double num = xstr.num();\n        return convertDoubleToNumber(num, javaClass);\n      }\n      else if(javaClass == java.lang.Class.class)\n      {\n        return xsltObj.getClass();\n      }\n      else\n      {\n        return xsltObj;\n      }\n                }\n    else\n    {\n      return xsltObj;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "SWITCH", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "IF", "CALL", "RETURN", "CALL", "RETURN", "CALL", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "RETURN", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "RETURN", "CALL", "IF", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "RETURN", "CALL", "CALL", "IF", "BINARY_OP", "VAR_DECL", "VAR_DECL", "CALL", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "RETURN", "IF", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "RETURN", "CALL", "CALL", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [1, 8], [5, 9], [2, 10], [2, 11], [2, 12], [8, 13], [8, 14], [2, 15], [13, 16], [13, 17], [8, 18], [15, 19], [10, 20], [11, 21], [16, 22], [13, 23], [13, 24], [13, 25], [18, 26], [10, 27], [10, 28], [10, 29], [10, 30], [10, 31], [20, 32], [16, 33], [16, 34], [23, 35], [27, 36], [27, 37], [28, 38], [28, 39], [29, 40], [29, 41], [29, 42], [30, 43], [30, 44], [30, 45], [31, 46], [31, 47], [31, 48], [34, 49], [24, 50], [25, 51], [36, 52], [36, 53], [27, 54], [37, 55], [37, 56], [38, 57], [38, 58], [28, 59], [28, 60], [39, 61], [39, 62], [40, 63], [40, 64], [41, 65], [42, 66], [42, 67], [43, 68], [43, 69], [44, 70], [46, 71], [47, 72], [51, 73], [52, 74], [52, 75], [36, 76], [54, 77], [57, 78], [57, 79], [38, 80], [59, 81], [63, 82], [63, 83], [40, 84], [40, 85], [43, 86], [68, 87], [71, 88], [74, 89], [74, 90], [52, 91], [52, 92], [76, 93], [78, 94], [78, 95], [57, 96], [57, 97], [57, 98], [57, 99], [63, 100], [82, 101], [84, 102], [84, 103], [86, 104], [87, 105], [89, 106], [89, 107], [74, 108], [94, 109], [94, 110], [78, 111], [96, 112], [100, 113], [101, 114], [102, 115], [103, 116], [103, 117], [85, 118], [104, 119], [106, 120], [89, 121], [108, 122], [91, 123], [92, 124], [109, 125], [94, 126], [111, 127], [112, 128], [97, 129], [98, 130], [113, 131], [115, 132], [106, 133], [106, 134], [106, 135], [106, 136], [106, 137], [106, 138], [121, 139], [109, 140], [109, 141], [109, 142], [109, 143], [109, 144], [109, 145], [126, 146], [132, 147], [133, 148], [133, 149], [133, 150], [138, 151], [139, 152], [140, 153], [140, 154], [140, 155], [145, 156], [146, 157], [148, 158], [150, 159], [134, 160], [135, 161], [136, 162], [137, 163], [151, 164], [153, 165], [155, 166], [141, 167], [142, 168], [143, 169], [156, 170], [167, 171], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 1], [9, 5], [10, 2], [11, 2], [12, 2], [13, 8], [14, 8], [15, 2], [16, 13], [17, 13], [18, 8], [19, 15], [20, 10], [21, 11], [22, 16], [23, 13], [24, 13], [25, 13], [26, 18], [27, 10], [28, 10], [29, 10], [30, 10], [31, 10], [32, 20], [33, 16], [34, 16], [35, 23], [36, 27], [37, 27], [38, 28], [39, 28], [40, 29], [41, 29], [42, 29], [43, 30], [44, 30], [45, 30], [46, 31], [47, 31], [48, 31], [49, 34], [50, 24], [51, 25], [52, 36], [53, 36], [54, 27], [55, 37], [56, 37], [57, 38], [58, 38], [59, 28], [60, 28], [61, 39], [62, 39], [63, 40], [64, 40], [65, 41], [66, 42], [67, 42], [68, 43], [69, 43], [70, 44], [71, 46], [72, 47], [73, 51], [74, 52], [75, 52], [76, 36], [77, 54], [78, 57], [79, 57], [80, 38], [81, 59], [82, 63], [83, 63], [84, 40], [85, 40], [86, 43], [87, 68], [88, 71], [89, 74], [90, 74], [91, 52], [92, 52], [93, 76], [94, 78], [95, 78], [96, 57], [97, 57], [98, 57], [99, 57], [100, 63], [101, 82], [102, 84], [103, 84], [104, 86], [105, 87], [106, 89], [107, 89], [108, 74], [109, 94], [110, 94], [111, 78], [112, 96], [113, 100], [114, 101], [115, 102], [116, 103], [117, 103], [118, 85], [119, 104], [120, 106], [121, 89], [122, 108], [123, 91], [124, 92], [125, 109], [126, 94], [127, 111], [128, 112], [129, 97], [130, 98], [131, 113], [132, 115], [133, 106], [134, 106], [135, 106], [136, 106], [137, 106], [138, 106], [139, 121], [140, 109], [141, 109], [142, 109], [143, 109], [144, 109], [145, 109], [146, 126], [147, 132], [148, 133], [149, 133], [150, 133], [151, 138], [152, 139], [153, 140], [154, 140], [155, 140], [156, 145], [157, 146], [158, 148], [159, 150], [160, 134], [161, 135], [162, 136], [163, 137], [164, 151], [165, 153], [166, 155], [167, 141], [168, 142], [169, 143], [170, 156], [171, 167], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171]]}, {"function_name": "convertDoubleToNumber", "code": "  static Object convertDoubleToNumber(double num, Class javaClass)\n  {\n    if((javaClass == Double.TYPE) ||\n       (javaClass == java.lang.Double.class))\n      return new Double(num);\n    else if(javaClass == Float.TYPE)\n      return new Float(num);\n    else if(javaClass == Long.TYPE)\n    {\n      return new Long((long)num);\n    }\n    else if(javaClass == Integer.TYPE)\n    {\n      return new Integer((int)num);\n    }\n    else if(javaClass == Short.TYPE)\n    {\n      return new Short((short)num);\n    }\n    else if(javaClass == Character.TYPE)\n    {\n      return new Character((char)num);\n    }\n    else if(javaClass == Byte.TYPE)\n    {\n      return new Byte((byte)num);\n    }\n    {\n      return new Double(num);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "RETURN", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "RETURN", "IF", "BINARY_OP", "RETURN", "CALL", "IF", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [5, 10], [5, 11], [6, 12], [7, 13], [7, 14], [9, 15], [9, 16], [10, 17], [15, 18], [15, 19], [9, 20], [18, 21], [18, 22], [15, 23], [20, 24], [21, 25], [21, 26], [18, 27], [23, 28], [25, 29], [21, 30], [27, 31], [25, 32], [30, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 5], [11, 5], [12, 6], [13, 7], [14, 7], [15, 9], [16, 9], [17, 10], [18, 15], [19, 15], [20, 9], [21, 18], [22, 18], [23, 15], [24, 20], [25, 21], [26, 21], [27, 18], [28, 23], [29, 25], [30, 21], [31, 27], [32, 25], [33, 30], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "errArgs", "code": "  private static String errArgs(Object[] xsltArgs, int startingArg)\n  {\n    StringBuffer returnArgs = new StringBuffer();\n    for (int i = startingArg; i < xsltArgs.length; i++)\n    {\n      if (i != startingArg)\n        returnArgs.append(\", \");\n      if (xsltArgs[i] instanceof XObject)\n        returnArgs.append(((XObject) xsltArgs[i]).getTypeString());      \n      else\n        returnArgs.append(xsltArgs[i].getClass().getName());\n    }\n    return returnArgs.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [3, 10], [8, 11], [9, 12], [8, 13], [8, 14], [9, 15], [15, 16], [13, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 3], [11, 8], [12, 9], [13, 8], [14, 8], [15, 9], [16, 15], [17, 13], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}], "label": 1}
{"sample_id": "ant-1.7-1204", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/DOMUtils.java", "language": "java", "name": "org.apache.tools.ant.util.DOMUtils", "code": "public class DOMUtils {\n\n    /**\n     * Get a new Document instance,\n     * @return the document.\n     * @since Ant 1.6.3\n     */\n    public static Document newDocument() {\n        return JAXPUtils.getDocumentBuilder().newDocument();\n    }\n\n    /**\n     * Creates a named Element and appends it to the given element,\n     * returns it.\n     *\n     * <p>This means\n     * <pre>createChildElement(&lt;a&gt;, \"b\")</pre>\n     * creates\n     * <pre>\n     * &lt;a&gt;\n     *   &lt;b/&gt;\n     * &lt;/a&gt;\n     * </pre>\n     * and returns <code>&lt;b&gt;</code>.</p>\n     *\n     * @param parent element that will receive the new element as child.\n     * @param name name of the new element.\n     * @return the new element.\n     *\n     * @since Ant 1.6.3\n     */\n    public static Element createChildElement(Element parent, String name) {\n        Document doc = parent.getOwnerDocument();\n        Element e = doc.createElement(name);\n        parent.appendChild(e);\n        return e;\n    }\n\n    /**\n     * Adds nested text.\n     *\n     * <p>This means\n     * <pre>appendText(&lt;a&gt;, \"b\")</pre>\n     * creates\n     * <pre>\n     * &lt;a&gt;b&lt;/a&gt;\n     * </pre>\n     * </p>\n     *\n     * @param parent element that will receive the new element as child.\n     * @param content text content.\n     *\n     * @since Ant 1.6.3\n     */\n    public static void appendText(Element parent, String content) {\n        Document doc = parent.getOwnerDocument();\n        Text t = doc.createTextNode(content);\n        parent.appendChild(t);\n    }\n\n    /**\n     * Adds a nested CDATA section.\n     *\n     * <p>This means\n     * <pre>appendCDATA(&lt;a&gt;, \"b\")</pre>\n     * creates\n     * <pre>\n     * &lt;a&gt;&lt;[!CDATA[b]]&gt;&lt;/a&gt;\n     * </pre>\n     * </p>\n     *\n     * @param parent element that will receive the new element as child.\n     * @param content text content.\n     *\n     * @since Ant 1.6.3\n     */\n    public static void appendCDATA(Element parent, String content) {\n        Document doc = parent.getOwnerDocument();\n        CDATASection c = doc.createCDATASection(content);\n        parent.appendChild(c);\n    }\n\n    /**\n     * Adds nested text in a new child element.\n     *\n     * <p>This means\n     * <pre>appendTextElement(&lt;a&gt;, \"b\", \"c\")</pre>\n     * creates\n     * <pre>\n     * &lt;a&gt;\n     *   &lt;b&gt;c&lt;/b&gt;\n     * &lt;/a&gt;\n     * </pre>\n     * </p>\n     *\n     * @param parent element that will receive the new element as child.\n     * @param name of the child element.\n     * @param content text content.\n     *\n     * @since Ant 1.6.3\n     */\n    public static void appendTextElement(Element parent, String name,\n                                         String content) {\n        Element e = createChildElement(parent, name);\n        appendText(e, content);\n    }\n\n    /**\n     * Adds a nested CDATA section in a new child element.\n     *\n     * <p>This means\n     * <pre>appendCDATAElement(&lt;a&gt;, \"b\", \"c\")</pre>\n     * creates\n     * <pre>\n     * &lt;a&gt;\n     *   &lt;b&gt;&lt;![CDATA[c]]>&lt;/b&gt;\n     * &lt;/a&gt;\n     * </pre>\n     * </pre>\n     * </p>\n     *\n     * @param parent element that will receive the new element as child.\n     * @param name of the child element.\n     * @param content text content.\n     *\n     * @since Ant 1.6.3\n     */\n    public static void appendCDATAElement(Element parent, String name,\n                                          String content) {\n        Element e = createChildElement(parent, name);\n        appendCDATA(e, content);", "functions": [{"function_name": "newDocument", "code": "    public static Document newDocument() {\n        return JAXPUtils.getDocumentBuilder().newDocument();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createChildElement", "code": "    public static Element createChildElement(Element parent, String name) {\n        Document doc = parent.getOwnerDocument();\n        Element e = doc.createElement(name);\n        parent.appendChild(e);\n        return e;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "appendText", "code": "    public static void appendText(Element parent, String content) {\n        Document doc = parent.getOwnerDocument();\n        Text t = doc.createTextNode(content);\n        parent.appendChild(t);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "appendCDATA", "code": "    public static void appendCDATA(Element parent, String content) {\n        Document doc = parent.getOwnerDocument();\n        CDATASection c = doc.createCDATASection(content);\n        parent.appendChild(c);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "appendTextElement", "code": "    public static void appendTextElement(Element parent, String name,\n                                         String content) {\n        Element e = createChildElement(parent, name);\n        appendText(e, content);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "appendCDATAElement", "code": "    public static void appendCDATAElement(Element parent, String name,\n                                          String content) {\n        Element e = createChildElement(parent, name);\n        appendCDATA(e, content);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "log4j-1.2-5003", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/spi/ThrowableInformation.java", "language": "java", "name": "org.apache.log4j.spi.ThrowableInformation", "code": "public class ThrowableInformation implements java.io.Serializable {\n\n  static final long serialVersionUID = -4748765566864322735L;\n\n  private transient Throwable throwable;\n  private transient Category category;\n  private String[] rep;\n\n  public\n  ThrowableInformation(Throwable throwable) {\n    this.throwable = throwable;\n  }\n\n    /**\n     * Create a new instance.\n     * @param throwable throwable, may not be null.\n     * @param category category used to obtain ThrowableRenderer, may be null.\n     * @since 1.2.16\n     */\n  public ThrowableInformation(Throwable throwable, Category category) {\n      this.throwable = throwable;\n      this.category = category;\n  }\n\n    /**\n     * Create new instance.\n     * @since 1.2.15\n     * @param r String representation of throwable.\n     */\n  public ThrowableInformation(final String[] r) {\n      if (r != null) {\n        rep = (String[]) r.clone();\n      }\n  }\n\n\n  public\n  Throwable getThrowable() {\n    return throwable;\n  }\n\n  public synchronized String[] getThrowableStrRep() {\n    if(rep == null) {\n      ThrowableRenderer renderer = null;\n      if (category != null) {\n          LoggerRepository repo = category.getLoggerRepository();\n          if (repo instanceof ThrowableRendererSupport) {\n              renderer = ((ThrowableRendererSupport) repo).getThrowableRenderer();\n          }\n      }\n      if (renderer == null) {\n          rep = DefaultThrowableRenderer.render(throwable);\n      } else {\n          rep = renderer.doRender(throwable);\n      }\n    }\n    return (String[]) rep.clone();", "functions": [{"function_name": "getThrowable", "code": "  Throwable getThrowable() {\n    return throwable;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getThrowableStrRep", "code": "  public synchronized String[] getThrowableStrRep() {\n    if(rep == null) {\n      ThrowableRenderer renderer = null;\n      if (category != null) {\n          LoggerRepository repo = category.getLoggerRepository();\n          if (repo instanceof ThrowableRendererSupport) {\n              renderer = ((ThrowableRendererSupport) repo).getThrowableRenderer();\n          }\n      }\n      if (renderer == null) {\n          rep = DefaultThrowableRenderer.render(throwable);\n      } else {\n          rep = renderer.doRender(throwable);\n      }\n    }\n    return (String[]) rep.clone();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [2, 5], [2, 6], [2, 7], [3, 8], [5, 9], [6, 10], [9, 11], [6, 12], [6, 13], [10, 14], [7, 15], [5, 16], [5, 17], [12, 18], [16, 19], [17, 20], [13, 21], [12, 22], [1, 0], [2, 0], [3, 2], [4, 1], [5, 2], [6, 2], [7, 2], [8, 3], [9, 5], [10, 6], [11, 9], [12, 6], [13, 6], [14, 10], [15, 7], [16, 5], [17, 5], [18, 12], [19, 16], [20, 17], [21, 13], [22, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "ThrowableInformation", "code": "  ThrowableInformation(Throwable throwable) {\n    this.throwable = throwable;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ThrowableInformation", "code": "  public ThrowableInformation(Throwable throwable, Category category) {\n      this.throwable = throwable;\n      this.category = category;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ThrowableInformation", "code": "  public ThrowableInformation(final String[] r) {\n      if (r != null) {\n        rep = (String[]) r.clone();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "xalan-2.6-7518", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/lib/ExsltStrings.java", "language": "java", "name": "org.apache.xalan.lib.ExsltStrings", "code": "public class ExsltStrings extends ExsltBase\n{\n  /**\n   * The str:align function aligns a string within another string. \n   * <p>\n   * The first argument gives the target string to be aligned. The second argument gives \n   * the padding string within which it is to be aligned. \n   * <p>\n   * If the target string is shorter than the padding string then a range of characters \n   * in the padding string are repaced with those in the target string. Which characters \n   * are replaced depends on the value of the third argument, which gives the type of \n   * alignment. It can be one of 'left', 'right' or 'center'. If no third argument is \n   * given or if it is not one of these values, then it defaults to left alignment. \n   * <p>\n   * With left alignment, the range of characters replaced by the target string begins \n   * with the first character in the padding string. With right alignment, the range of \n   * characters replaced by the target string ends with the last character in the padding \n   * string. With center alignment, the range of characters replaced by the target string \n   * is in the middle of the padding string, such that either the number of unreplaced \n   * characters on either side of the range is the same or there is one less on the left \n   * than there is on the right. \n   * <p>\n   * If the target string is longer than the padding string, then it is truncated to be \n   * the same length as the padding string and returned.\n   *\n   * @param targetStr The target string\n   * @param paddingStr The padding string\n   * @param type The type of alignment\n   * \n   * @return The string after alignment\n   */\n  public static String align(String targetStr, String paddingStr, String type)\n  {\n    if (targetStr.length() >= paddingStr.length())\n      return targetStr.substring(0, paddingStr.length());\n    \n    if (type.equals(\"right\"))\n    {\n      return paddingStr.substring(0, paddingStr.length() - targetStr.length()) + targetStr;\n    }\n    else if (type.equals(\"center\"))\n    {\n      int startIndex = (paddingStr.length() - targetStr.length()) / 2;\n      return paddingStr.substring(0, startIndex) + targetStr + paddingStr.substring(startIndex + targetStr.length());\n    }\n    else\n    {\n      return targetStr + paddingStr.substring(targetStr.length());\n    }    \n  }\n\n  /**\n   * See above\n   */\n  public static String align(String targetStr, String paddingStr)\n  {\n    return align(targetStr, paddingStr, \"left\");\n  }\n  \n  /**\n   * The str:concat function takes a node set and returns the concatenation of the \n   * string values of the nodes in that node set. If the node set is empty, it returns \n   * an empty string.\n   *\n   * @param nl A node set\n   * @return The concatenation of the string values of the nodes in that node set\n   */\n  public static String concat(NodeList nl)\n  {\n    StringBuffer sb = new StringBuffer();\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node node = nl.item(i);\n      String value = toString(node);\n      \n      if (value != null && value.length() > 0)\n        sb.append(value);\n    }\n    \n    return sb.toString();\n  }\n    \n  /**\n   * The str:padding function creates a padding string of a certain length. \n   * The first argument gives the length of the padding string to be created. \n   * The second argument gives a string to be used to create the padding. This \n   * string is repeated as many times as is necessary to create a string of the \n   * length specified by the first argument; if the string is more than a character \n   * long, it may have to be truncated to produce the required length. If no second \n   * argument is specified, it defaults to a space (' '). If the second argument is \n   * an empty string, str:padding returns an empty string.\n   *\n   * @param length The length of the padding string to be created\n   * @param pattern The string to be used as pattern\n   *\n   * @return A padding string of the given length\n   */\n  public static String padding(double length, String pattern)\n  {\n    if (pattern == null || pattern.length() == 0)\n      return \"\";\n    \n    StringBuffer sb = new StringBuffer();\n    int len = (int)length;\n    int numAdded = 0;\n    int index = 0;\n    while (numAdded < len)\n    {\n      if (index == pattern.length())\n        index = 0;\n        \n      sb.append(pattern.charAt(index));\n      index++;\n      numAdded++;\n    }\n  \n    return sb.toString();\n  }\n\n  /**\n   * See above\n   */\n  public static String padding(double length)\n  {\n    return padding(length, \" \");\n  }\n    \n  /**\n   * The str:split function splits up a string and returns a node set of token \n   * elements, each containing one token from the string. \n   * <p>\n   * The first argument is the string to be split. The second argument is a pattern \n   * string. The string given by the first argument is split at any occurrence of \n   * this pattern. For example: \n   * <pre>\n   * str:split('a, simple, list', ', ') gives the node set consisting of: \n   *\n   * <token>a</token>\n   * <token>simple</token>\n   * <token>list</token>\n   * </pre>\n   * If the second argument is omitted, the default is the string '&#x20;' (i.e. a space).\n   *\n   * @param str The string to be split\n   * @param pattern The pattern\n   *\n   * @return A node set of split tokens\n   */\n  public static NodeList split(String str, String pattern)\n  {\n\n    \n    NodeSet resultSet = new NodeSet();\n    resultSet.setShouldCacheNodes(true);\n    \n    boolean done = false;\n    int fromIndex = 0;\n    int matchIndex = 0;\n    String token = null;\n    \n    while (!done && fromIndex < str.length())\n    {\n      matchIndex = str.indexOf(pattern, fromIndex);\n      if (matchIndex >= 0)\n      {\n\ttoken = str.substring(fromIndex, matchIndex);\n\tfromIndex = matchIndex + pattern.length();\n      }\n      else\n      {\n        done = true;\n        token = str.substring(fromIndex);\n      }\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        Element element = doc.createElement(\"token\");\n        Text text = doc.createTextNode(token);\n        element.appendChild(text);\n        resultSet.addNode(element);      \n      }\n    }\n    \n    return resultSet;\n  }\n  \n  /**\n   * See above\n   */\n  public static NodeList split(String str)\n  {\n    return split(str, \" \");\n  }\n\n  /**\n   * The str:tokenize function splits up a string and returns a node set of token \n   * elements, each containing one token from the string. \n   * <p>\n   * The first argument is the string to be tokenized. The second argument is a \n   * string consisting of a number of characters. Each character in this string is \n   * taken as a delimiting character. The string given by the first argument is split \n   * at any occurrence of any of these characters. For example: \n   * <pre>\n   * str:tokenize('2001-06-03T11:40:23', '-T:') gives the node set consisting of: \n   *\n   * <token>2001</token>\n   * <token>06</token>\n   * <token>03</token>\n   * <token>11</token>\n   * <token>40</token>\n   * <token>23</token>\n   * </pre>\n   * If the second argument is omitted, the default is the string '&#x9;&#xA;&#xD;&#x20;' \n   * (i.e. whitespace characters). \n   * <p>\n   * If the second argument is an empty string, the function returns a set of token \n   * elements, each of which holds a single character.\n   * <p>\n   * Note: This one is different from the tokenize extension function in the Xalan\n   * namespace. The one in Xalan returns a set of Text nodes, while this one wraps\n   * the Text nodes inside the token Element nodes.\n   *\n   * @param toTokenize The string to be tokenized\n   * @param delims The delimiter string\n   *\n   * @return A node set of split token elements\n   */\n  public static NodeList tokenize(String toTokenize, String delims)\n  {\n\n\n    NodeSet resultSet = new NodeSet();\n    \n    if (delims != null && delims.length() > 0)\n    {\n      StringTokenizer lTokenizer = new StringTokenizer(toTokenize, delims);\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        while (lTokenizer.hasMoreTokens())\n        {\n          Element element = doc.createElement(\"token\");\n          element.appendChild(doc.createTextNode(lTokenizer.nextToken()));\n          resultSet.addNode(element);      \n        }\n      }\n    }\n    else\n    {\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        for (int i = 0; i < toTokenize.length(); i++)\n        {\n          Element element = doc.createElement(\"token\");\n          element.appendChild(doc.createTextNode(toTokenize.substring(i, i+1)));\n          resultSet.addNode(element);              \n        }\n      }\n    }\n\n    return resultSet;\n  }\n\n  /**\n   * See above\n   */\n  public static NodeList tokenize(String toTokenize)\n  {\n    return tokenize(toTokenize, \" \\t\\n\\r\");\n  }\n    /**\n     * This class is not loaded until first referenced (see Java Language\n     * Specification by Gosling/Joy/Steele, section 12.4.1)\n     *\n     * The static members are created when this class is first referenced, as a\n     * lazy initialization not needing checking against null or any\n     * synchronization.\n     *\n     */\n    private static class DocumentHolder \n    {\n        private static final Document m_doc;", "functions": [{"function_name": "align", "code": "  public static String align(String targetStr, String paddingStr, String type)\n  {\n    if (targetStr.length() >= paddingStr.length())\n      return targetStr.substring(0, paddingStr.length());\n    \n    if (type.equals(\"right\"))\n    {\n      return paddingStr.substring(0, paddingStr.length() - targetStr.length()) + targetStr;\n    }\n    else if (type.equals(\"center\"))\n    {\n      int startIndex = (paddingStr.length() - targetStr.length()) / 2;\n      return paddingStr.substring(0, startIndex) + targetStr + paddingStr.substring(startIndex + targetStr.length());\n    }\n    else\n    {\n      return targetStr + paddingStr.substring(targetStr.length());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [2, 9], [6, 10], [1, 11], [7, 12], [8, 13], [9, 14], [9, 15], [6, 16], [6, 17], [6, 18], [10, 19], [11, 20], [13, 21], [13, 22], [16, 23], [17, 24], [20, 25], [23, 26], [24, 27], [24, 28], [18, 29], [25, 30], [25, 31], [26, 32], [27, 33], [28, 34], [29, 35], [29, 36], [30, 37], [30, 38], [33, 39], [34, 40], [36, 41], [36, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 2], [10, 6], [11, 1], [12, 7], [13, 8], [14, 9], [15, 9], [16, 6], [17, 6], [18, 6], [19, 10], [20, 11], [21, 13], [22, 13], [23, 16], [24, 17], [25, 20], [26, 23], [27, 24], [28, 24], [29, 18], [30, 25], [31, 25], [32, 26], [33, 27], [34, 28], [35, 29], [36, 29], [37, 30], [38, 30], [39, 33], [40, 34], [41, 36], [42, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "align", "code": "  public static String align(String targetStr, String paddingStr)\n  {\n    return align(targetStr, paddingStr, \"left\");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "concat", "code": "  public static String concat(NodeList nl)\n  {\n    StringBuffer sb = new StringBuffer();\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node node = nl.item(i);\n      String value = toString(node);\n      \n      if (value != null && value.length() > 0)\n        sb.append(value);\n    }\n    \n    return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [3, 11], [7, 12], [2, 13], [7, 14], [12, 15], [12, 16], [8, 17], [9, 18], [15, 19], [15, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 3], [12, 7], [13, 2], [14, 7], [15, 12], [16, 12], [17, 8], [18, 9], [19, 15], [20, 15], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "padding", "code": "  public static String padding(double length, String pattern)\n  {\n    if (pattern == null || pattern.length() == 0)\n      return \"\";\n    \n    StringBuffer sb = new StringBuffer();\n    int len = (int)length;\n    int numAdded = 0;\n    int index = 0;\n    while (numAdded < len)\n    {\n      if (index == pattern.length())\n        index = 0;\n        \n      sb.append(pattern.charAt(index));\n      index++;\n      numAdded++;\n    }\n  \n    return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [7, 12], [7, 13], [2, 14], [3, 15], [4, 16], [6, 17], [12, 18], [13, 19], [13, 20], [2, 21], [14, 22], [19, 23], [19, 24], [20, 25], [21, 26], [14, 27], [22, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 7], [13, 7], [14, 2], [15, 3], [16, 4], [17, 6], [18, 12], [19, 13], [20, 13], [21, 2], [22, 14], [23, 19], [24, 19], [25, 20], [26, 21], [27, 14], [28, 22], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "padding", "code": "  public static String padding(double length)\n  {\n    return padding(length, \" \");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "split", "code": "  public static NodeList split(String str, String pattern)\n  {\n\n    \n    NodeSet resultSet = new NodeSet();\n    resultSet.setShouldCacheNodes(true);\n    \n    boolean done = false;\n    int fromIndex = 0;\n    int matchIndex = 0;\n    String token = null;\n    \n    while (!done && fromIndex < str.length())\n    {\n      matchIndex = str.indexOf(pattern, fromIndex);\n      if (matchIndex >= 0)\n      {\n\ttoken = str.substring(fromIndex, matchIndex);\n\tfromIndex = matchIndex + pattern.length();\n      }\n      else\n      {\n        done = true;\n        token = str.substring(fromIndex);\n      }\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        Element element = doc.createElement(\"token\");\n        Text text = doc.createTextNode(token);\n        element.appendChild(text);\n        resultSet.addNode(element);      \n      }\n    }\n    \n    return resultSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [2, 12], [2, 13], [10, 14], [3, 15], [4, 16], [5, 17], [6, 18], [11, 19], [7, 20], [2, 21], [2, 22], [13, 23], [2, 24], [14, 25], [2, 26], [2, 27], [23, 28], [24, 29], [21, 30], [22, 31], [13, 32], [13, 33], [13, 34], [13, 35], [31, 36], [32, 37], [33, 38], [34, 39], [35, 40], [39, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 2], [13, 2], [14, 10], [15, 3], [16, 4], [17, 5], [18, 6], [19, 11], [20, 7], [21, 2], [22, 2], [23, 13], [24, 2], [25, 14], [26, 2], [27, 2], [28, 23], [29, 24], [30, 21], [31, 22], [32, 13], [33, 13], [34, 13], [35, 13], [36, 31], [37, 32], [38, 33], [39, 34], [40, 35], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "split", "code": "  public static NodeList split(String str)\n  {\n    return split(str, \" \");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "tokenize", "code": "  public static NodeList tokenize(String toTokenize, String delims)\n  {\n\n\n    NodeSet resultSet = new NodeSet();\n    \n    if (delims != null && delims.length() > 0)\n    {\n      StringTokenizer lTokenizer = new StringTokenizer(toTokenize, delims);\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        while (lTokenizer.hasMoreTokens())\n        {\n          Element element = doc.createElement(\"token\");\n          element.appendChild(doc.createTextNode(lTokenizer.nextToken()));\n          resultSet.addNode(element);      \n        }\n      }\n    }\n    else\n    {\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        for (int i = 0; i < toTokenize.length(); i++)\n        {\n          Element element = doc.createElement(\"token\");\n          element.appendChild(doc.createTextNode(toTokenize.substring(i, i+1)));\n          resultSet.addNode(element);              \n        }\n      }\n    }\n\n    return resultSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [6, 11], [3, 12], [2, 13], [2, 14], [10, 15], [10, 16], [11, 17], [13, 18], [14, 19], [9, 20], [13, 21], [18, 22], [14, 23], [13, 24], [13, 25], [13, 26], [14, 27], [14, 28], [25, 29], [21, 30], [28, 31], [23, 32], [29, 33], [30, 34], [31, 35], [32, 36], [33, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 6], [12, 3], [13, 2], [14, 2], [15, 10], [16, 10], [17, 11], [18, 13], [19, 14], [20, 9], [21, 13], [22, 18], [23, 14], [24, 13], [25, 13], [26, 13], [27, 14], [28, 14], [29, 25], [30, 21], [31, 28], [32, 23], [33, 29], [34, 30], [35, 31], [36, 32], [37, 33], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "tokenize", "code": "  public static NodeList tokenize(String toTokenize)\n  {\n    return tokenize(toTokenize, \" \\t\\n\\r\");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-2714", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/spring/spi/TransactionInterceptor.java", "language": "java", "name": "org.apache.camel.spring.spi.TransactionInterceptor", "code": "public class TransactionInterceptor extends DelegateProcessor {\n    public static final ExchangeProperty<Boolean> TRANSACTED =\n        new ExchangeProperty<Boolean>(\"transacted\", \"org.apache.camel.transacted\", Boolean.class);\n    private static final transient Log LOG = LogFactory.getLog(TransactionInterceptor.class);\n    private final TransactionTemplate transactionTemplate;\n    private RedeliveryPolicy redeliveryPolicy;\n    private DelayPolicy delayPolicy;\n\n    public TransactionInterceptor(TransactionTemplate transactionTemplate) {\n        this.transactionTemplate = transactionTemplate;\n    }\n\n    public TransactionInterceptor(Processor processor, TransactionTemplate transactionTemplate) {\n        super(processor);\n        this.transactionTemplate = transactionTemplate;\n    }\n\n    /**\n     * @deprecated use DelayPolicy. Will be removed in Camel 2.0\n     */\n    public TransactionInterceptor(Processor processor, TransactionTemplate transactionTemplate, RedeliveryPolicy redeliveryPolicy) {\n        this(processor, transactionTemplate);\n        this.redeliveryPolicy = redeliveryPolicy;\n        this.delayPolicy = redeliveryPolicy;\n    }\n\n    public TransactionInterceptor(Processor processor, TransactionTemplate transactionTemplate, DelayPolicy delayPolicy) {\n        this(processor, transactionTemplate);\n        this.delayPolicy = delayPolicy;\n    }\n\n    @Override\n    public String toString() {\n        return \"TransactionInterceptor:\"\n            + propagationBehaviorToString(transactionTemplate.getPropagationBehavior())\n            + \"[\" + getProcessor() + \"]\";\n    }\n\n    public void process(final Exchange exchange) {\n        transactionTemplate.execute(new TransactionCallbackWithoutResult() {\n            protected void doInTransactionWithoutResult(TransactionStatus status) {\n\n                RuntimeCamelException rce = null;\n\n                boolean activeTx = false;\n                try {\n                    activeTx = TransactionSynchronizationManager.isActualTransactionActive();\n                    if (!activeTx) {\n                        activeTx = status.isNewTransaction() && !status.isCompleted();\n                        if (!activeTx) {\n                            if (DefaultTransactionStatus.class.isAssignableFrom(status.getClass())) {\n                                DefaultTransactionStatus defStatus =\n                                        DefaultTransactionStatus.class.cast(status);\n                                activeTx = defStatus.hasTransaction() && !status.isCompleted();\n                            }\n                        }\n                    }\n                    if (LOG.isTraceEnabled()) {\n                        LOG.trace(\"Is actual transaction active: \" + activeTx);\n                    }\n\n                    if (activeTx) {\n                        TRANSACTED.set(exchange, Boolean.TRUE);\n                    }\n\n                    processNext(exchange);\n\n                    if (exchange.getException() != null) {\n                        rce = wrapRuntimeCamelException(exchange.getException());\n                    }\n                } catch (Exception e) {\n                    rce = wrapRuntimeCamelException(e);\n                }\n\n                if (rce != null) {\n                    delayBeforeRedelivery();\n                    if (activeTx) {\n                        status.setRollbackOnly();\n                        LOG.debug(\"Setting transaction to rollbackOnly due to exception being thrown: \" + rce.getMessage());\n                    }\n                    throw rce;\n                }\n            }\n        });\n    }\n\n    /**\n     * Sleeps before the transaction is set as rollback and the caused exception is rethrown to let the\n     * Spring TransactionManager handle the rollback.\n     */\n    protected void delayBeforeRedelivery() {\n        long delay = 0;\n        if (redeliveryPolicy != null) {\n            delay = redeliveryPolicy.getDelay();\n        } else if (delayPolicy != null) {\n            delay = delayPolicy.getDelay();\n        }\n\n        if (delay > 0) {\n            try {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Sleeping for: \" + delay + \" millis until attempting redelivery\");\n                }\n                Thread.sleep(delay);\n            } catch (InterruptedException e) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Thread interrupted: \" + e, e);\n                }\n            }\n        }\n    }\n\n    /**\n     * @deprecated use DelayPolicy. Will be removed in Camel 2.0\n     */\n    public RedeliveryPolicy getRedeliveryPolicy() {\n        return redeliveryPolicy;\n    }\n\n    /**\n     * @deprecated use DelayPolicy. Will be removed in Camel 2.0\n     */\n    public void setRedeliveryPolicy(RedeliveryPolicy redeliveryPolicy) {\n        this.redeliveryPolicy = redeliveryPolicy;\n    }\n\n    public DelayPolicy getDelayPolicy() {\n        return delayPolicy;\n    }\n\n    public void setDelayPolicy(DelayPolicy delayPolicy) {\n        this.delayPolicy = delayPolicy;\n    }\n\n    protected String propagationBehaviorToString(int propagationBehavior) {\n        String rc;\n        switch (propagationBehavior) {\n        case TransactionDefinition.PROPAGATION_MANDATORY:\n            rc = \"PROPAGATION_MANDATORY\";\n            break;\n        case TransactionDefinition.PROPAGATION_NESTED:\n            rc = \"PROPAGATION_NESTED\";\n            break;\n        case TransactionDefinition.PROPAGATION_NEVER:\n            rc = \"PROPAGATION_NEVER\";\n            break;\n        case TransactionDefinition.PROPAGATION_NOT_SUPPORTED:\n            rc = \"PROPAGATION_NOT_SUPPORTED\";\n            break;\n        case TransactionDefinition.PROPAGATION_REQUIRED:\n            rc = \"PROPAGATION_REQUIRED\";\n            break;\n        case TransactionDefinition.PROPAGATION_REQUIRES_NEW:\n            rc = \"PROPAGATION_REQUIRES_NEW\";\n            break;\n        case TransactionDefinition.PROPAGATION_SUPPORTS:\n            rc = \"PROPAGATION_SUPPORTS\";\n            break;\n        default:\n            rc = \"UNKNOWN\";\n        }\n        return rc;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"TransactionInterceptor:\"\n            + propagationBehaviorToString(transactionTemplate.getPropagationBehavior())\n            + \"[\" + getProcessor() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [9, 11], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "process", "code": "    public void process(final Exchange exchange) {\n        transactionTemplate.execute(new TransactionCallbackWithoutResult() {\n            protected void doInTransactionWithoutResult(TransactionStatus status) {\n\n                RuntimeCamelException rce = null;\n\n                boolean activeTx = false;\n                try {\n                    activeTx = TransactionSynchronizationManager.isActualTransactionActive();\n                    if (!activeTx) {\n                        activeTx = status.isNewTransaction() && !status.isCompleted();\n                        if (!activeTx) {\n                            if (DefaultTransactionStatus.class.isAssignableFrom(status.getClass())) {\n                                DefaultTransactionStatus defStatus =\n                                        DefaultTransactionStatus.class.cast(status);\n                                activeTx = defStatus.hasTransaction() && !status.isCompleted();\n                            }\n                        }\n                    }\n                    if (LOG.isTraceEnabled()) {\n                        LOG.trace(\"Is actual transaction active: \" + activeTx);\n                    }\n\n                    if (activeTx) {\n                        TRANSACTED.set(exchange, Boolean.TRUE);\n                    }\n\n                    processNext(exchange);\n\n                    if (exchange.getException() != null) {\n                        rce = wrapRuntimeCamelException(exchange.getException());\n                    }\n                } catch (Exception e) {\n                    rce = wrapRuntimeCamelException(e);\n                }\n\n                if (rce != null) {\n                    delayBeforeRedelivery();\n                    if (activeTx) {\n                        status.setRollbackOnly();\n                        LOG.debug(\"Setting transaction to rollbackOnly due to exception being thrown: \" + rce.getMessage());\n                    }\n                    throw rce;", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "FUNC_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CATCH", "IF", "IF", "IF", "IF", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [5, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [5, 16], [5, 17], [10, 18], [12, 19], [6, 20], [14, 21], [6, 22], [7, 23], [8, 24], [5, 25], [11, 26], [19, 27], [19, 28], [15, 29], [22, 30], [26, 31], [12, 32], [13, 33], [14, 34], [15, 35], [17, 36], [17, 37], [32, 38], [34, 39], [29, 40], [35, 41], [36, 42], [38, 43], [39, 44], [40, 45], [41, 46], [41, 47], [42, 48], [42, 49], [40, 50], [45, 51], [40, 52], [52, 53], [50, 54], [53, 55], [53, 56], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 4], [9, 4], [10, 5], [11, 6], [12, 6], [13, 6], [14, 6], [15, 6], [16, 5], [17, 5], [18, 10], [19, 12], [20, 6], [21, 14], [22, 6], [23, 7], [24, 8], [25, 5], [26, 11], [27, 19], [28, 19], [29, 15], [30, 22], [31, 26], [32, 12], [33, 13], [34, 14], [35, 15], [36, 17], [37, 17], [38, 32], [39, 34], [40, 29], [41, 35], [42, 36], [43, 38], [44, 39], [45, 40], [46, 41], [47, 41], [48, 42], [49, 42], [50, 40], [51, 45], [52, 40], [53, 52], [54, 50], [55, 53], [56, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "delayBeforeRedelivery", "code": "    protected void delayBeforeRedelivery() {\n        long delay = 0;\n        if (redeliveryPolicy != null) {\n            delay = redeliveryPolicy.getDelay();\n        } else if (delayPolicy != null) {\n            delay = delayPolicy.getDelay();\n        }\n\n        if (delay > 0) {\n            try {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Sleeping for: \" + delay + \" millis until attempting redelivery\");\n                }\n                Thread.sleep(delay);\n            } catch (InterruptedException e) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Thread interrupted: \" + e, e);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "IF", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [4, 8], [5, 9], [6, 10], [3, 11], [7, 12], [7, 13], [9, 14], [2, 15], [12, 16], [7, 17], [13, 18], [5, 19], [15, 20], [16, 21], [19, 22], [13, 23], [16, 24], [23, 25], [24, 26], [25, 27], [25, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 4], [9, 5], [10, 6], [11, 3], [12, 7], [13, 7], [14, 9], [15, 2], [16, 12], [17, 7], [18, 13], [19, 5], [20, 15], [21, 16], [22, 19], [23, 13], [24, 16], [25, 23], [26, 24], [27, 25], [28, 25], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getRedeliveryPolicy", "code": "    public RedeliveryPolicy getRedeliveryPolicy() {\n        return redeliveryPolicy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRedeliveryPolicy", "code": "    public void setRedeliveryPolicy(RedeliveryPolicy redeliveryPolicy) {\n        this.redeliveryPolicy = redeliveryPolicy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDelayPolicy", "code": "    public DelayPolicy getDelayPolicy() {\n        return delayPolicy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDelayPolicy", "code": "    public void setDelayPolicy(DelayPolicy delayPolicy) {\n        this.delayPolicy = delayPolicy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "propagationBehaviorToString", "code": "    protected String propagationBehaviorToString(int propagationBehavior) {\n        String rc;\n        switch (propagationBehavior) {\n        case TransactionDefinition.PROPAGATION_MANDATORY:\n            rc = \"PROPAGATION_MANDATORY\";\n            break;\n        case TransactionDefinition.PROPAGATION_NESTED:\n            rc = \"PROPAGATION_NESTED\";\n            break;\n        case TransactionDefinition.PROPAGATION_NEVER:\n            rc = \"PROPAGATION_NEVER\";\n            break;\n        case TransactionDefinition.PROPAGATION_NOT_SUPPORTED:\n            rc = \"PROPAGATION_NOT_SUPPORTED\";\n            break;\n        case TransactionDefinition.PROPAGATION_REQUIRED:\n            rc = \"PROPAGATION_REQUIRED\";\n            break;\n        case TransactionDefinition.PROPAGATION_REQUIRES_NEW:\n            rc = \"PROPAGATION_REQUIRES_NEW\";\n            break;\n        case TransactionDefinition.PROPAGATION_SUPPORTS:\n            rc = \"PROPAGATION_SUPPORTS\";\n            break;\n        default:\n            rc = \"UNKNOWN\";\n        }\n        return rc;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [18, 26], [19, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 18], [27, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "TransactionInterceptor", "code": "    public TransactionInterceptor(TransactionTemplate transactionTemplate) {\n        this.transactionTemplate = transactionTemplate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TransactionInterceptor", "code": "    public TransactionInterceptor(Processor processor, TransactionTemplate transactionTemplate) {\n        super(processor);\n        this.transactionTemplate = transactionTemplate;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "TransactionInterceptor", "code": "    public TransactionInterceptor(Processor processor, TransactionTemplate transactionTemplate, RedeliveryPolicy redeliveryPolicy) {\n        this(processor, transactionTemplate);\n        this.redeliveryPolicy = redeliveryPolicy;\n        this.delayPolicy = redeliveryPolicy;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "TransactionInterceptor", "code": "    public TransactionInterceptor(Processor processor, TransactionTemplate transactionTemplate, DelayPolicy delayPolicy) {\n        this(processor, transactionTemplate);\n        this.delayPolicy = delayPolicy;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.5-6893", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/templates/ElemFallback.java", "language": "java", "name": "org.apache.xalan.templates.ElemFallback", "code": "public class ElemFallback extends ElemTemplateElement\n{\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_FALLBACK;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The Element's name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_FALLBACK_STRING;\n  }\n\n  /**\n   * This is the normal call when xsl:fallback is instantiated.\n   * In accordance with the XSLT 1.0 Recommendation, chapter 15,\n   * \"Normally, instantiating an xsl:fallback element does nothing.\"\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n  }\n\n  /**\n   * Execute the fallback elements.  This must be explicitly called to\n   * instantiate the content of an xsl:fallback element.\n   * When an XSLT transformer performs fallback for an instruction\n   * element, if the instruction element has one or more xsl:fallback\n   * children, then the content of each of the xsl:fallback children\n   * must be instantiated in sequence; otherwise, an error must\n   * be signaled. The content of an xsl:fallback element is a template.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void executeFallback(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    if (Constants.ELEMNAME_EXTENSIONCALL == m_parentNode.getXSLToken())\n    {\n\n      if (TransformerImpl.S_DEBUG)\n        transformer.getTraceManager().fireTraceEvent(this);\n\n      transformer.executeChildTemplates(this, true);\n\n      if (TransformerImpl.S_DEBUG)\n\t    transformer.getTraceManager().fireTraceEndEvent(this); \n    }\n    else\n    {\n\n      System.out.println(\n        \"Error!  parent of xsl:fallback must be an extension element!\");", "functions": [{"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_FALLBACK;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_FALLBACK_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "executeFallback", "code": "  public void executeFallback(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    if (Constants.ELEMNAME_EXTENSIONCALL == m_parentNode.getXSLToken())\n    {\n\n      if (TransformerImpl.S_DEBUG)\n        transformer.getTraceManager().fireTraceEvent(this);\n\n      transformer.executeChildTemplates(this, true);\n\n      if (TransformerImpl.S_DEBUG)\n\t    transformer.getTraceManager().fireTraceEndEvent(this); \n    }\n    else\n    {\n\n      System.out.println(\n        \"Error!  parent of xsl:fallback must be an extension element!\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 7], [1, 8], [7, 9], [4, 10], [8, 11], [5, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 1], [8, 1], [9, 7], [10, 4], [11, 8], [12, 5], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "ant-1.5-323", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/filters/ReplaceTokens.java", "language": "java", "name": "org.apache.tools.ant.filters.ReplaceTokens", "code": "public final class ReplaceTokens\n    extends BaseParamFilterReader\n    implements ChainableReader {\n    /** Default \"begin token\" character. */\n    private static final char DEFAULT_BEGIN_TOKEN = '@';\n\n    /** Default \"end token\" character. */\n    private static final char DEFAULT_END_TOKEN = '@';\n\n    /** Data to be used before reading from stream again */\n    private String queuedData = null;\n\n    /** replacement test from a token */\n    private String replaceData = null;\n\n    /** Index into replacement data */\n    private int replaceIndex = -1;\n    \n    /** Index into queue data */\n    private int queueIndex = -1;\n    \n    /** Hashtable to hold the replacee-replacer pairs (String to String). */\n    private Hashtable hash = new Hashtable();\n\n    /** Character marking the beginning of a token. */\n    private char beginToken = DEFAULT_BEGIN_TOKEN;\n\n    /** Character marking the end of a token. */\n    private char endToken = DEFAULT_END_TOKEN;\n\n    /**\n     * Constructor for \"dummy\" instances.\n     * \n     * @see BaseFilterReader#BaseFilterReader()\n     */\n    public ReplaceTokens() {\n        super();\n    }\n\n    /**\n     * Creates a new filtered reader.\n     *\n     * @param in A Reader object providing the underlying stream.\n     *           Must not be <code>null</code>.\n     */\n    public ReplaceTokens(final Reader in) {\n        super(in);\n    }\n\n    private int getNextChar() throws IOException {\n        if (queueIndex != -1) {\n            final int ch = queuedData.charAt(queueIndex++);\n            if (queueIndex >= queuedData.length()) {\n                queueIndex = -1;\n            }\n            return ch;\n        }\n        \n        return in.read();\n    }\n    \n    /**\n     * Returns the next character in the filtered stream, replacing tokens\n     * from the original stream.\n     * \n     * @return the next character in the resulting stream, or -1\n     * if the end of the resulting stream has been reached\n     * \n     * @exception IOException if the underlying stream throws an IOException\n     * during reading     \n     */\n    public final int read() throws IOException {\n        if (!getInitialized()) {\n            initialize();\n            setInitialized(true);\n        }\n\n        if (replaceIndex != -1) {\n            final int ch = replaceData.charAt(replaceIndex++);\n            if (replaceIndex >= replaceData.length()) {\n                replaceIndex = -1;\n            }\n            return ch;\n        }\n        \n        int ch = getNextChar();\n\n        if (ch == beginToken) {\n            final StringBuffer key = new StringBuffer(\"\");\n            do  {\n                ch = getNextChar();\n                if (ch != -1) {\n                    key.append((char) ch);\n                } else {\n                    break;\n                }\n            } while (ch != endToken);\n\n            if (ch == -1) {\n                if (queuedData == null || queueIndex == -1) {\n                    queuedData = key.toString();\n                } else {\n                    queuedData \n                        = key.toString() + queuedData.substring(queueIndex);\n                }\n                queueIndex = 0;\n                return beginToken;\n            } else {\n                key.setLength(key.length() - 1);\n                \n                final String replaceWith = (String) hash.get(key.toString());\n                if (replaceWith != null) {\n                    replaceData = replaceWith;\n                    replaceIndex = 0;\n                    return read();\n                } else {\n                    String newData = key.toString() + endToken;\n                    if (queuedData == null || queueIndex == -1) {\n                        queuedData = newData;\n                    } else {\n                        queuedData = newData + queuedData.substring(queueIndex);\n                    }\n                    queueIndex = 0;\n                    return beginToken;\n                }\n            }\n        }\n        return ch;\n    }\n\n    /**\n     * Sets the \"begin token\" character.\n     * \n     * @param beginToken the character used to denote the beginning of a token\n     */\n    public final void setBeginToken(final char beginToken) {\n        this.beginToken = beginToken;\n    }\n\n    /**\n     * Returns the \"begin token\" character.\n     * \n     * @return the character used to denote the beginning of a token\n     */\n    private final char getBeginToken() {\n        return beginToken;\n    }\n\n    /**\n     * Sets the \"end token\" character.\n     * \n     * @param endToken the character used to denote the end of a token\n     */\n    public final void setEndToken(final char endToken) {\n        this.endToken = endToken;\n    }\n\n    /**\n     * Returns the \"end token\" character.\n     * \n     * @return the character used to denote the end of a token\n     */\n    private final char getEndToken() {\n        return endToken;\n    }\n\n    /**\n     * Adds a token element to the map of tokens to replace.\n     * \n     * @param token The token to add to the map of replacements.\n     *              Must not be <code>null</code>.\n     */\n    public final void addConfiguredToken(final Token token) {\n        hash.put(token.getKey(), token.getValue());\n    }\n\n    /**\n     * Sets the map of tokens to replace.\n     * \n     * @param hash A map (String->String) of token keys to replacement\n     * values. Must not be <code>null</code>.\n     */\n    private void setTokens(final Hashtable hash) {\n        this.hash = hash;\n    }\n\n    /**\n     * Returns the map of tokens which will be replaced.\n     * \n     * @return a map (String->String) of token keys to replacement\n     * values\n     */\n    private final Hashtable getTokens() {\n        return hash;\n    }\n\n    /**\n     * Creates a new ReplaceTokens using the passed in\n     * Reader for instantiation.\n     * \n     * @param rdr A Reader object providing the underlying stream.\n     *            Must not be <code>null</code>.\n     * \n     * @return a new filter based on this configuration, but filtering\n     *         the specified reader\n     */\n    public final Reader chain(final Reader rdr) {\n        ReplaceTokens newFilter = new ReplaceTokens(rdr);\n        newFilter.setBeginToken(getBeginToken());\n        newFilter.setEndToken(getEndToken());\n        newFilter.setTokens(getTokens());\n        newFilter.setInitialized(true);\n        return newFilter;\n    }\n\n    /**\n     * Initializes tokens and loads the replacee-replacer hashtable.\n     */\n    private final void initialize() {\n        Parameter[] params = getParameters();\n        if (params != null) {\n            for (int i = 0; i < params.length; i++) {\n                if (params[i] != null) {\n                    final String type = params[i].getType();\n                    if (\"tokenchar\".equals(type)) {\n                        final String name = params[i].getName();\n                        String value = params[i].getValue();\n                        if (\"begintoken\".equals(name)) {\n                            if (value.length() == 0) {\n                                throw new BuildException(\"Begin token cannot \" \n                                    + \"be empty\");\n                            }\n                            beginToken = params[i].getValue().charAt(0);\n                        } else if (\"endtoken\".equals(name)) {\n                            if (value.length() == 0) {\n                                throw new BuildException(\"End token cannot \" \n                                    + \"be empty\");\n                            }\n                            endToken = params[i].getValue().charAt(0);\n                        }\n                    } else if (\"token\".equals(type)) {\n                        final String name = params[i].getName();\n                        final String value = params[i].getValue();\n                        hash.put(name, value);\n                    }\n                }\n            }\n        }\n    }\n\n    /**\n     * Holds a token\n     */\n    public static class Token {\n\n        /** Token key */\n        private String key;\n\n        /** Token value */\n        private String value;\n\n        /**\n         * Sets the token key\n         * \n         * @param key The key for this token. Must not be <code>null</code>.\n         */\n        public final void setKey(String key) {\n            this.key = key;\n        }\n\n        /**\n         * Sets the token value\n         * \n         * @param value The value for this token. Must not be <code>null</code>.\n         */\n        public final void setValue(String value) {\n            this.value = value;\n        }\n\n        /**\n         * Returns the key for this token.\n         * \n         * @return the key for this token\n         */\n        public final String getKey() {\n            return key;\n        }\n\n        /**\n         * Returns the value for this token.\n         * \n         * @return the value for this token\n         */\n        public final String getValue() {\n            return value;", "functions": [{"function_name": "getNextChar", "code": "    private int getNextChar() throws IOException {\n        if (queueIndex != -1) {\n            final int ch = queuedData.charAt(queueIndex++);\n            if (queueIndex >= queuedData.length()) {\n                queueIndex = -1;\n            }\n            return ch;\n        }\n        \n        return in.read();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [2, 7], [4, 8], [6, 9], [9, 10], [7, 11], [6, 12], [12, 13], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 2], [8, 4], [9, 6], [10, 9], [11, 7], [12, 6], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "read", "code": "    public final int read() throws IOException {\n        if (!getInitialized()) {\n            initialize();\n            setInitialized(true);\n        }\n\n        if (replaceIndex != -1) {\n            final int ch = replaceData.charAt(replaceIndex++);\n            if (replaceIndex >= replaceData.length()) {\n                replaceIndex = -1;\n            }\n            return ch;\n        }\n        \n        int ch = getNextChar();\n\n        if (ch == beginToken) {\n            final StringBuffer key = new StringBuffer(\"\");\n            do  {\n                ch = getNextChar();\n                if (ch != -1) {\n                    key.append((char) ch);\n                } else {\n                    break;\n                }\n            } while (ch != endToken);\n\n            if (ch == -1) {\n                if (queuedData == null || queueIndex == -1) {\n                    queuedData = key.toString();\n                } else {\n                    queuedData \n                        = key.toString() + queuedData.substring(queueIndex);\n                }\n                queueIndex = 0;\n                return beginToken;\n            } else {\n                key.setLength(key.length() - 1);\n                \n                final String replaceWith = (String) hash.get(key.toString());\n                if (replaceWith != null) {\n                    replaceData = replaceWith;\n                    replaceIndex = 0;\n                    return read();\n                } else {\n                    String newData = key.toString() + endToken;\n                    if (queuedData == null || queueIndex == -1) {\n                        queuedData = newData;\n                    } else {\n                        queuedData = newData + queuedData.substring(queueIndex);\n                    }\n                    queueIndex = 0;\n                    return beginToken;\n                }\n            }\n        }\n        return ch;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LOOP", "VAR_DECL", "CALL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [5, 8], [2, 9], [2, 10], [2, 11], [3, 12], [4, 13], [4, 14], [4, 15], [7, 16], [9, 17], [10, 18], [14, 19], [5, 20], [5, 21], [9, 22], [9, 23], [9, 24], [9, 25], [17, 26], [10, 27], [11, 28], [19, 29], [15, 30], [20, 31], [22, 32], [9, 33], [9, 34], [25, 35], [27, 36], [10, 37], [28, 38], [14, 39], [22, 40], [22, 41], [22, 42], [22, 43], [32, 44], [33, 45], [34, 46], [35, 47], [35, 48], [27, 49], [36, 50], [37, 51], [39, 52], [22, 53], [41, 54], [43, 55], [22, 56], [22, 57], [23, 58], [45, 59], [45, 60], [25, 61], [25, 62], [47, 63], [48, 64], [27, 65], [53, 66], [54, 67], [54, 68], [42, 69], [56, 70], [58, 71], [61, 72], [62, 73], [41, 74], [41, 75], [67, 76], [68, 77], [69, 78], [72, 79], [72, 80], [74, 81], [81, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 5], [9, 2], [10, 2], [11, 2], [12, 3], [13, 4], [14, 4], [15, 4], [16, 7], [17, 9], [18, 10], [19, 14], [20, 5], [21, 5], [22, 9], [23, 9], [24, 9], [25, 9], [26, 17], [27, 10], [28, 11], [29, 19], [30, 15], [31, 20], [32, 22], [33, 9], [34, 9], [35, 25], [36, 27], [37, 10], [38, 28], [39, 14], [40, 22], [41, 22], [42, 22], [43, 22], [44, 32], [45, 33], [46, 34], [47, 35], [48, 35], [49, 27], [50, 36], [51, 37], [52, 39], [53, 22], [54, 41], [55, 43], [56, 22], [57, 22], [58, 23], [59, 45], [60, 45], [61, 25], [62, 25], [63, 47], [64, 48], [65, 27], [66, 53], [67, 54], [68, 54], [69, 42], [70, 56], [71, 58], [72, 61], [73, 62], [74, 41], [75, 41], [76, 67], [77, 68], [78, 69], [79, 72], [80, 72], [81, 74], [82, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "setBeginToken", "code": "    public final void setBeginToken(final char beginToken) {\n        this.beginToken = beginToken;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeginToken", "code": "    private final char getBeginToken() {\n        return beginToken;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEndToken", "code": "    public final void setEndToken(final char endToken) {\n        this.endToken = endToken;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndToken", "code": "    private final char getEndToken() {\n        return endToken;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addConfiguredToken", "code": "    public final void addConfiguredToken(final Token token) {\n        hash.put(token.getKey(), token.getValue());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setTokens", "code": "    private void setTokens(final Hashtable hash) {\n        this.hash = hash;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTokens", "code": "    private final Hashtable getTokens() {\n        return hash;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "chain", "code": "    public final Reader chain(final Reader rdr) {\n        ReplaceTokens newFilter = new ReplaceTokens(rdr);\n        newFilter.setBeginToken(getBeginToken());\n        newFilter.setEndToken(getEndToken());\n        newFilter.setTokens(getTokens());\n        newFilter.setInitialized(true);\n        return newFilter;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [7, 11], [2, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 7], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "initialize", "code": "    private final void initialize() {\n        Parameter[] params = getParameters();\n        if (params != null) {\n            for (int i = 0; i < params.length; i++) {\n                if (params[i] != null) {\n                    final String type = params[i].getType();\n                    if (\"tokenchar\".equals(type)) {\n                        final String name = params[i].getName();\n                        String value = params[i].getValue();\n                        if (\"begintoken\".equals(name)) {\n                            if (value.length() == 0) {\n                                throw new BuildException(\"Begin token cannot \" \n                                    + \"be empty\");\n                            }\n                            beginToken = params[i].getValue().charAt(0);\n                        } else if (\"endtoken\".equals(name)) {\n                            if (value.length() == 0) {\n                                throw new BuildException(\"End token cannot \" \n                                    + \"be empty\");\n                            }\n                            endToken = params[i].getValue().charAt(0);\n                        }\n                    } else if (\"token\".equals(type)) {\n                        final String name = params[i].getName();\n                        final String value = params[i].getValue();\n                        hash.put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "IF", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [4, 7], [4, 8], [8, 9], [4, 10], [8, 11], [8, 12], [9, 13], [11, 14], [11, 15], [14, 16], [11, 17], [11, 18], [11, 19], [15, 20], [14, 21], [14, 22], [16, 23], [17, 24], [17, 25], [12, 26], [14, 27], [24, 28], [17, 29], [25, 30], [24, 31], [28, 32], [17, 33], [29, 34], [18, 35], [19, 36], [21, 37], [22, 38], [24, 39], [31, 40], [29, 41], [34, 42], [34, 43], [31, 44], [40, 45], [40, 46], [33, 47], [33, 48], [41, 49], [39, 50], [39, 51], [44, 52], [47, 53], [49, 54], [50, 55], [52, 56], [54, 57], [54, 58], [56, 59], [56, 60], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 4], [8, 4], [9, 8], [10, 4], [11, 8], [12, 8], [13, 9], [14, 11], [15, 11], [16, 14], [17, 11], [18, 11], [19, 11], [20, 15], [21, 14], [22, 14], [23, 16], [24, 17], [25, 17], [26, 12], [27, 14], [28, 24], [29, 17], [30, 25], [31, 24], [32, 28], [33, 17], [34, 29], [35, 18], [36, 19], [37, 21], [38, 22], [39, 24], [40, 31], [41, 29], [42, 34], [43, 34], [44, 31], [45, 40], [46, 40], [47, 33], [48, 33], [49, 41], [50, 39], [51, 39], [52, 44], [53, 47], [54, 49], [55, 50], [56, 52], [57, 54], [58, 54], [59, 56], [60, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "ReplaceTokens", "code": "    public ReplaceTokens() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ReplaceTokens", "code": "    public ReplaceTokens(final Reader in) {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.0-3766", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/search/SearchDialog.java", "language": "java", "name": "org.gjt.sp.jedit.search.SearchDialog", "code": "public class SearchDialog extends EnhancedDialog implements EBComponent\n{\n\t//{{{ Constants\n\t/**\n\t * Default file set.\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static final int CURRENT_BUFFER = 0;\n\tpublic static final int ALL_BUFFERS = 1;\n\tpublic static final int DIRECTORY = 2;\n\t//}}}\n\n\t//{{{ showSearchDialog() method\n\t/**\n\t * Displays a search and replace dialog box, reusing an existing one\n\t * if necessary.\n\t * @param view The view\n\t * @param searchString The search string\n\t * @param searchIn One of CURRENT_BUFFER, ALL_BUFFERS, or DIRECTORY\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic static void showSearchDialog(View view, String searchString,\n\t\tint searchIn)\n\t{\n\t\tSearchDialog dialog = (SearchDialog)viewHash.get(view);\n\t\tif(dialog != null)\n\t\t{\n\t\t\t// ugly workaround\n\t\t\tif(OperatingSystem.isUnix() && !OperatingSystem.isMacOS())\n\t\t\t{\n\t\t\t\tdialog.setVisible(false);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t}\n\n\t\t\tdialog.setSearchString(searchString,searchIn);\n\t\t\tGUIUtilities.requestFocus(dialog,dialog.find);\n\t\t\tdialog.toFront();\n\t\t\tdialog.requestFocus();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialog = new SearchDialog(view,searchString,searchIn);\n\t\t\tviewHash.put(view,dialog);\n\t\t}\n\t} //}}}\n\n\t//{{{ SearchDialog constructor\n\t/**\n\t * Creates a new search and replace dialog box.\n\t * @param view The view\n\t * @param searchString The search string\n\t */\n\tpublic SearchDialog(View view, String searchString)\n\t{\n\t\tthis(view,searchString,CURRENT_BUFFER);\n\t} //}}}\n\n\t//{{{ SearchDialog constructor\n\t/**\n\t * Creates a new search and replace dialog box.\n\t * @param view The view\n\t * @param searchString The search string\n\t * @param searchIn One of CURRENT_BUFFER, ALL_BUFFERS, or DIRECTORY\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic SearchDialog(View view, String searchString, int searchIn)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"search.title\"),false);\n\n\t\tthis.view = view;\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(0,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout());\n\t\tcenterPanel.add(BorderLayout.NORTH,createFieldPanel());\n\t\tcenterPanel.add(BorderLayout.CENTER,createSearchSettingsPanel());\n\t\tcontent.add(BorderLayout.CENTER,centerPanel);\n\t\tcontent.add(BorderLayout.SOUTH,createMultiFilePanel());\n\n\t\tcontent.add(BorderLayout.EAST,createButtonsPanel());\n\n\t\tignoreCase.setSelected(SearchAndReplace.getIgnoreCase());\n\t\tregexp.setSelected(SearchAndReplace.getRegexp());\n\t\twrap.setSelected(SearchAndReplace.getAutoWrapAround());\n\n\t\tif(SearchAndReplace.getReverseSearch())\n\t\t\tsearchBack.setSelected(true);\n\t\telse\n\t\t\tsearchForward.setSelected(true);\n\n\t\tif(SearchAndReplace.getBeanShellReplace())\n\t\t{\n\t\t\treplace.setModel(\"replace.script\");\n\t\t\tbeanShellReplace.setSelected(true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treplace.setModel(\"replace\");\n\t\t\tstringReplace.setSelected(true);\n\t\t}\n\n\t\tSearchFileSet fileset = SearchAndReplace.getSearchFileSet();\n\n\t\tif(fileset instanceof DirectoryListSet)\n\t\t{\n\t\t\tfilter.setText(((DirectoryListSet)fileset)\n\t\t\t\t.getFileFilter());\n\t\t\tdirectory.setText(((DirectoryListSet)fileset)\n\t\t\t\t.getDirectory());\n\t\t\tsearchSubDirectories.setSelected(((DirectoryListSet)fileset)\n\t\t\t\t.isRecursive());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString path;\n\t\t\tif(view.getBuffer().getVFS() instanceof FileVFS)\n\t\t\t{\n\t\t\t\tpath = MiscUtilities.getParentOfPath(\n\t\t\t\t\tview.getBuffer().getPath());\n\t\t\t}\n\t\t\telse\n\t\t\t\tpath = System.getProperty(\"user.dir\");\n\t\t\tdirectory.setText(path);\n\n\t\t\tif(fileset instanceof AllBufferSet)\n\t\t\t{\n\t\t\t\tfilter.setText(((AllBufferSet)fileset)\n\t\t\t\t\t.getFileFilter());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfilter.setText(\"*\" + MiscUtilities\n\t\t\t\t\t.getFileExtension(view.getBuffer()\n\t\t\t\t\t.getName()));\n\t\t\t}\n\n\t\t\tsearchSubDirectories.setSelected(true);\n\t\t}\n\n\t\tdirectory.addCurrentToHistory();\n\n\t\tkeepDialog.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"search.keepDialog.toggle\"));\n\n\t\tsetSearchString(searchString,searchIn);\n\n\t\tpack();\n\t\tjEdit.unsetProperty(\"search.width\");\n\t\tjEdit.unsetProperty(\"search.d-width\");\n\t\tjEdit.unsetProperty(\"search.height\");\n\t\tjEdit.unsetProperty(\"search.d-height\");\n\t\tGUIUtilities.loadGeometry(this,\"search\");\n\t\tshow();\n\n\t\tEditBus.addToBus(this);\n\n\t\tGUIUtilities.requestFocus(this,find);\n\t} //}}}\n\n\t//{{{ setSearchString() method\n\t/**\n\t * Sets the search string.\n\t * @since jEdit 4.0pre5\n\t */\n\tpublic void setSearchString(String searchString, int searchIn)\n\t{\n\t\tif(searchString == null)\n\t\t\tfind.setText(null);\n\t\telse\n\t\t{\n\t\t\tif(searchString.indexOf('\\n') == -1)\n\t\t\t{\n\t\t\t\tfind.setText(searchString);\n\t\t\t\tfind.selectAll();\n\t\t\t}\n\t\t\telse if(searchIn == CURRENT_BUFFER)\n\t\t\t{\n\t\t\t\tsearchSelection.setSelected(true);\n\t\t\t\thyperSearch.setSelected(true);\n\t\t\t}\n\t\t}\n\n\t\tif(searchIn == CURRENT_BUFFER)\n\t\t{\n\t\t\tif(!searchSelection.isSelected())\n\t\t\t{\n\t\t\t\t// might be already selected, see above.\n\t\t\t\tsearchCurrentBuffer.setSelected(true);\n\n\t\t\t\t/* this property is only loaded and saved if\n\t\t\t\t * the 'current buffer' file set is selected.\n\t\t\t\t * otherwise, it defaults to on. */\n\t\t\t\thyperSearch.setSelected(jEdit.getBooleanProperty(\n\t\t\t\t\t\"search.hypersearch.toggle\"));\n\t\t\t}\n\t\t}\n\t\telse if(searchIn == ALL_BUFFERS)\n\t\t{\n\t\t\tsearchAllBuffers.setSelected(true);\n\t\t\thyperSearch.setSelected(true);\n\t\t}\n\t\telse if(searchIn == DIRECTORY)\n\t\t{\n\t\t\thyperSearch.setSelected(true);\n\t\t\tsearchDirectory.setSelected(true);\n\t\t}\n\n\t\tupdateEnabled();\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\n\t\t\tif(!save())\n\t\t\t\treturn;\n\n\t\t\tif(hyperSearch.isSelected() || searchSelection.isSelected())\n\t\t\t{\n\t\t\t\tif(SearchAndReplace.hyperSearch(view,\n\t\t\t\t\tsearchSelection.isSelected()));\n\t\t\t\t\tcloseOrKeepDialog();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(SearchAndReplace.find(view))\n\t\t\t\t\tcloseOrKeepDialog();\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n\t\t}\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tsave();\n\t\tGUIUtilities.saveGeometry(this,\"search\");\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ handleMessage() method\n\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof SearchSettingsChanged)\n\t\t{\n\t\t\tignoreCase.setSelected(SearchAndReplace.getIgnoreCase());\n\t\t\tregexp.setSelected(SearchAndReplace.getRegexp());\n\t\t}\n\t\telse if(msg instanceof ViewUpdate)\n\t\t{\n\t\t\tViewUpdate vmsg = (ViewUpdate)msg;\n\t\t\tif(vmsg.getView() == view\n\t\t\t\t&& vmsg.getWhat() == ViewUpdate.CLOSED)\n\t\t\t{\n\t\t\t\tviewHash.remove(view);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ dispose() method\n\tpublic void dispose()\n\t{\n\t\tEditBus.removeFromBus(this);\n\t\tviewHash.remove(view);\n\t\tsuper.dispose();\n\t} //}}}\n\n\t//{{{ Private members\n\n\tprivate static HashMap viewHash = new HashMap();\n\n\t//{{{ Instance variables\n\tprivate View view;\n\n\t// fields\n\tprivate HistoryTextField find, replace;\n\n\tprivate JRadioButton stringReplace, beanShellReplace;\n\n\t// search settings\n\tprivate JCheckBox keepDialog, ignoreCase, regexp, hyperSearch,\n\t\twrap;\n\tprivate JRadioButton searchBack, searchForward;\n\tprivate JRadioButton searchSelection, searchCurrentBuffer, searchAllBuffers,\n\t\tsearchDirectory;\n\n\t// multifile settings\n\tprivate HistoryTextField filter, directory;\n\tprivate JCheckBox searchSubDirectories;\n\tprivate JButton choose;\n\n\t// buttons\n\tprivate JButton findBtn, /* replaceBtn, */ replaceAndFindBtn, replaceAllBtn,\n\t\tcloseBtn;\n\t//}}}\n\n\t//{{{ createFieldPanel() method\n\tprivate JPanel createFieldPanel()\n\t{\n\t\tButtonActionHandler actionHandler = new ButtonActionHandler();\n\n\t\tJPanel fieldPanel = new JPanel(new VariableGridLayout(\n\t\t\tVariableGridLayout.FIXED_NUM_COLUMNS,1));\n\t\tfieldPanel.setBorder(new EmptyBorder(0,0,12,12));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"search.find\"));\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\"search.find.mnemonic\")\n\t\t\t.charAt(0));\n\t\tfind = new HistoryTextField(\"find\");\n\n\t\t// don't want it to be too wide due to long strings\n\t\tDimension size = find.getPreferredSize();\n\t\tsize.width = find.getFontMetrics(find.getFont())\n\t\t\t.charWidth('a') * 25;\n\t\tfind.setPreferredSize(size);\n\n\t\tfind.addActionListener(actionHandler);\n\t\tlabel.setLabelFor(find);\n\t\tlabel.setBorder(new EmptyBorder(12,0,2,0));\n\t\tfieldPanel.add(label);\n\t\tfieldPanel.add(find);\n\n\t\tlabel = new JLabel(jEdit.getProperty(\"search.replace\"));\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\"search.replace.mnemonic\")\n\t\t\t.charAt(0));\n\t\tlabel.setBorder(new EmptyBorder(12,0,0,0));\n\t\tfieldPanel.add(label);\n\n\t\tButtonGroup grp = new ButtonGroup();\n\t\tReplaceActionHandler replaceActionHandler = new ReplaceActionHandler();\n\n\t\t// we use a custom JRadioButton subclass that returns\n\t\t// false for isFocusTraversable() so that the user can\n\t\t// tab from the search field to the replace field with\n\t\t// one keystroke\n\n\t\tBox replaceModeBox = new Box(BoxLayout.X_AXIS);\n\t\tstringReplace = new MyJRadioButton(jEdit.getProperty(\n\t\t\t\"search.string-replace-btn\"));\n\t\tstringReplace.addActionListener(replaceActionHandler);\n\t\tgrp.add(stringReplace);\n\t\treplaceModeBox.add(stringReplace);\n\n\t\treplaceModeBox.add(Box.createHorizontalStrut(12));\n\n\t\tbeanShellReplace = new MyJRadioButton(jEdit.getProperty(\n\t\t\t\"search.beanshell-replace-btn\"));\n\t\tbeanShellReplace.addActionListener(replaceActionHandler);\n\t\tgrp.add(beanShellReplace);\n\t\treplaceModeBox.add(beanShellReplace);\n\n\t\tfieldPanel.add(replaceModeBox);\n\n\t\tfieldPanel.add(Box.createVerticalStrut(3));\n\n\t\treplace = new HistoryTextField(\"replace\");\n\t\treplace.addActionListener(actionHandler);\n\t\tlabel.setLabelFor(replace);\n\t\tfieldPanel.add(replace);\n\n\t\treturn fieldPanel;\n\t} //}}}\n\n\t//{{{ createSearchSettingsPanel() method\n\tprivate JPanel createSearchSettingsPanel()\n\t{\n\t\tJPanel searchSettings = new JPanel(new VariableGridLayout(\n\t\t\tVariableGridLayout.FIXED_NUM_COLUMNS,3));\n\t\tsearchSettings.setBorder(new EmptyBorder(0,0,12,12));\n\n\t\tSettingsActionHandler actionHandler = new SettingsActionHandler();\n\t\tButtonGroup fileset = new ButtonGroup();\n\t\tButtonGroup direction = new ButtonGroup();\n\n\t\tsearchSettings.add(new JLabel(jEdit.getProperty(\"search.fileset\")));\n\n\t\tsearchSettings.add(new JLabel(jEdit.getProperty(\"search.settings\")));\n\n\t\tsearchSettings.add(new JLabel(jEdit.getProperty(\"search.direction\")));\n\n\t\tsearchSelection = new JRadioButton(jEdit.getProperty(\"search.selection\"));\n\t\tsearchSelection.setMnemonic(jEdit.getProperty(\"search.selection.mnemonic\")\n\t\t\t.charAt(0));\n\t\tfileset.add(searchSelection);\n\t\tsearchSettings.add(searchSelection);\n\t\tsearchSelection.addActionListener(actionHandler);\n\n\t\tkeepDialog = new JCheckBox(jEdit.getProperty(\"search.keep\"));\n\t\tkeepDialog.setMnemonic(jEdit.getProperty(\"search.keep.mnemonic\")\n\t\t\t.charAt(0));\n\t\tsearchSettings.add(keepDialog);\n\n\t\tsearchBack = new JRadioButton(jEdit.getProperty(\"search.back\"));\n\t\tsearchBack.setMnemonic(jEdit.getProperty(\"search.back.mnemonic\")\n\t\t\t.charAt(0));\n\t\tdirection.add(searchBack);\n\t\tsearchSettings.add(searchBack);\n\t\tsearchBack.addActionListener(actionHandler);\n\n\t\tsearchCurrentBuffer = new JRadioButton(jEdit.getProperty(\"search.current\"));\n\t\tsearchCurrentBuffer.setMnemonic(jEdit.getProperty(\"search.current.mnemonic\")\n\t\t\t.charAt(0));\n\t\tfileset.add(searchCurrentBuffer);\n\t\tsearchSettings.add(searchCurrentBuffer);\n\t\tsearchCurrentBuffer.addActionListener(actionHandler);\n\n\t\tignoreCase = new JCheckBox(jEdit.getProperty(\"search.case\"));\n\t\tignoreCase.setMnemonic(jEdit.getProperty(\"search.case.mnemonic\")\n\t\t\t.charAt(0));\n\t\tsearchSettings.add(ignoreCase);\n\t\tignoreCase.addActionListener(actionHandler);\n\n\t\tsearchForward = new JRadioButton(jEdit.getProperty(\"search.forward\"));\n\t\tsearchForward.setMnemonic(jEdit.getProperty(\"search.forward.mnemonic\")\n\t\t\t.charAt(0));\n\t\tdirection.add(searchForward);\n\t\tsearchSettings.add(searchForward);\n\t\tsearchForward.addActionListener(actionHandler);\n\n\t\tsearchAllBuffers = new JRadioButton(jEdit.getProperty(\"search.all\"));\n\t\tsearchAllBuffers.setMnemonic(jEdit.getProperty(\"search.all.mnemonic\")\n\t\t\t.charAt(0));\n\t\tfileset.add(searchAllBuffers);\n\t\tsearchSettings.add(searchAllBuffers);\n\t\tsearchAllBuffers.addActionListener(actionHandler);\n\n\t\tregexp = new JCheckBox(jEdit.getProperty(\"search.regexp\"));\n\t\tregexp.setMnemonic(jEdit.getProperty(\"search.regexp.mnemonic\")\n\t\t\t.charAt(0));\n\t\tsearchSettings.add(regexp);\n\t\tregexp.addActionListener(actionHandler);\n\n\t\twrap = new JCheckBox(jEdit.getProperty(\"search.wrap\"));\n\t\twrap.setMnemonic(jEdit.getProperty(\"search.wrap.mnemonic\")\n\t\t\t.charAt(0));\n\t\tsearchSettings.add(wrap);\n\t\twrap.addActionListener(actionHandler);\n\n\t\tsearchDirectory = new JRadioButton(jEdit.getProperty(\"search.directory\"));\n\t\tsearchDirectory.setMnemonic(jEdit.getProperty(\"search.directory.mnemonic\")\n\t\t\t.charAt(0));\n\t\tfileset.add(searchDirectory);\n\t\tsearchSettings.add(searchDirectory);\n\t\tsearchDirectory.addActionListener(actionHandler);\n\n\t\thyperSearch = new JCheckBox(jEdit.getProperty(\"search.hypersearch\"));\n\t\thyperSearch.setMnemonic(jEdit.getProperty(\"search.hypersearch.mnemonic\")\n\t\t\t.charAt(0));\n\t\tsearchSettings.add(hyperSearch);\n\t\thyperSearch.addActionListener(actionHandler);\n\n\t\treturn searchSettings;\n\t} //}}}\n\n\t//{{{ createMultiFilePanel() method\n\tprivate JPanel createMultiFilePanel()\n\t{\n\t\tJPanel multifile = new JPanel();\n\n\t\tGridBagLayout layout = new GridBagLayout();\n\t\tmultifile.setLayout(layout);\n\n\t\tGridBagConstraints cons = new GridBagConstraints();\n\t\tcons.gridy = cons.gridwidth = cons.gridheight = 1;\n\t\tcons.anchor = GridBagConstraints.WEST;\n\t\tcons.fill = GridBagConstraints.HORIZONTAL;\n\n\t\tMultiFileActionHandler actionListener = new MultiFileActionHandler();\n\t\tfilter = new HistoryTextField(\"search.filter\");\n\t\tfilter.addActionListener(actionListener);\n\n\t\tcons.insets = new Insets(0,0,3,0);\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"search.filterField\"),\n\t\t\tSwingConstants.RIGHT);\n\t\tlabel.setBorder(new EmptyBorder(0,0,0,12));\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\"search.filterField.mnemonic\")\n\t\t\t.charAt(0));\n\t\tlabel.setLabelFor(filter);\n\t\tcons.weightx = 0.0f;\n\t\tlayout.setConstraints(label,cons);\n\t\tmultifile.add(label);\n\n\t\tcons.insets = new Insets(0,0,3,6);\n\t\tcons.weightx = 1.0f;\n\t\tlayout.setConstraints(filter,cons);\n\t\tmultifile.add(filter);\n\n\t\tcons.gridy++;\n\n\t\tdirectory = new HistoryTextField(\"search.directory\");\n\t\tdirectory.addActionListener(actionListener);\n\n\t\tlabel = new JLabel(jEdit.getProperty(\"search.directoryField\"),\n\t\t\tSwingConstants.RIGHT);\n\t\tlabel.setBorder(new EmptyBorder(0,0,0,12));\n\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\"search.directoryField.mnemonic\")\n\t\t\t.charAt(0));\n\t\tlabel.setLabelFor(directory);\n\t\tcons.insets = new Insets(0,0,3,0);\n\t\tcons.weightx = 0.0f;\n\t\tlayout.setConstraints(label,cons);\n\t\tmultifile.add(label);\n\n\t\tcons.insets = new Insets(0,0,3,6);\n\t\tcons.weightx = 1.0f;\n\t\tcons.gridwidth = 2;\n\t\tlayout.setConstraints(directory,cons);\n\t\tmultifile.add(directory);\n\n\t\tchoose = new JButton(jEdit.getProperty(\"search.choose\"));\n\t\tchoose.setMnemonic(jEdit.getProperty(\"search.choose.mnemonic\")\n\t\t\t.charAt(0));\n\t\tcons.insets = new Insets(0,0,3,0);\n\t\tcons.weightx = 0.0f;\n\t\tcons.gridwidth = 1;\n\t\tlayout.setConstraints(choose,cons);\n\t\tmultifile.add(choose);\n\t\tchoose.addActionListener(actionListener);\n\n\t\tcons.insets = new Insets(0,0,0,0);\n\t\tcons.gridy++;\n\t\tcons.gridwidth = 4;\n\n\t\tsearchSubDirectories = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.subdirs\"));\n\t\tsearchSubDirectories.setMnemonic(jEdit.getProperty(\"search.subdirs.mnemonic\")\n\t\t\t.charAt(0));\n\t\tlayout.setConstraints(searchSubDirectories,cons);\n\t\tmultifile.add(searchSubDirectories);\n\n\t\treturn multifile;\n\t} //}}}\n\n\t//{{{ createButtonsPanel() method\n\tprivate Box createButtonsPanel()\n\t{\n\t\tBox box = new Box(BoxLayout.Y_AXIS);\n\n\t\tButtonActionHandler actionHandler = new ButtonActionHandler();\n\n\t\tbox.add(Box.createVerticalStrut(12));\n\n\t\tJPanel grid = new JPanel(new GridLayout(5,1,0,12));\n\n\t\tfindBtn = new JButton(jEdit.getProperty(\"search.findBtn\"));\n\t\tgetRootPane().setDefaultButton(findBtn);\n\t\tgrid.add(findBtn);\n\t\tfindBtn.addActionListener(actionHandler);\n\n\t\t/* replaceBtn = new JButton(jEdit.getProperty(\"search.replaceBtn\"));\n\t\treplaceBtn.setMnemonic(jEdit.getProperty(\"search.replaceBtn.mnemonic\")\n\t\t\t.charAt(0));\n\t\tgrid.add(replaceBtn);\n\t\treplaceBtn.addActionListener(actionHandler); */\n\n\t\treplaceAndFindBtn = new JButton(jEdit.getProperty(\"search.replaceAndFindBtn\"));\n\t\treplaceAndFindBtn.setMnemonic(jEdit.getProperty(\"search.replaceAndFindBtn.mnemonic\")\n\t\t\t.charAt(0));\n\t\tgrid.add(replaceAndFindBtn);\n\t\treplaceAndFindBtn.addActionListener(actionHandler);\n\n\t\treplaceAllBtn = new JButton(jEdit.getProperty(\"search.replaceAllBtn\"));\n\t\treplaceAllBtn.setMnemonic(jEdit.getProperty(\"search.replaceAllBtn.mnemonic\")\n\t\t\t.charAt(0));\n\t\tgrid.add(replaceAllBtn);\n\t\treplaceAllBtn.addActionListener(actionHandler);\n\n\t\tcloseBtn = new JButton(jEdit.getProperty(\"common.close\"));\n\t\tgrid.add(closeBtn);\n\t\tcloseBtn.addActionListener(actionHandler);\n\n\t\tgrid.setMaximumSize(grid.getPreferredSize());\n\n\t\tbox.add(grid);\n\t\tbox.add(Box.createGlue());\n\n\t\treturn box;\n\t} //}}}\n\n\t//{{{ updateEnabled() method\n\tprivate void updateEnabled()\n\t{\n\t\twrap.setEnabled(!hyperSearch.isSelected()\n\t\t\t&& !searchSelection.isSelected());\n\n\t\tboolean reverseEnabled = !hyperSearch.isSelected()\n\t\t\t&& searchCurrentBuffer.isSelected();\n\t\tsearchBack.setEnabled(reverseEnabled && !regexp.isSelected());\n\t\tsearchForward.setEnabled(reverseEnabled);\n\t\tif(!reverseEnabled)\n\t\t\tsearchForward.setSelected(true);\n\n\t\tfilter.setEnabled(searchAllBuffers.isSelected()\n\t\t\t|| searchDirectory.isSelected());\n\n\t\tboolean directoryEnabled = searchDirectory.isSelected();\n\n\t\tdirectory.setEnabled(directoryEnabled);\n\t\tchoose.setEnabled(directoryEnabled);\n\t\tsearchSubDirectories.setEnabled(directoryEnabled);\n\n\t\tfindBtn.setEnabled(!searchSelection.isSelected()\n\t\t\t|| hyperSearch.isSelected());\n\t\treplaceAndFindBtn.setEnabled(!hyperSearch.isSelected()\n\t\t\t&& !searchSelection.isSelected());\n\t} //}}}\n\n\t//{{{ save() method\n\tprivate boolean save()\n\t{\n\t\tString filter = this.filter.getText();\n\t\tthis.filter.addCurrentToHistory();\n\t\tif(filter.length() == 0)\n\t\t\tfilter = \"*\";\n\n\t\tSearchFileSet fileset = SearchAndReplace.getSearchFileSet();\n\n\t\tif(searchSelection.isSelected())\n\t\t\tfileset = new CurrentBufferSet();\n\t\telse if(searchCurrentBuffer.isSelected())\n\t\t{\n\t\t\tfileset = new CurrentBufferSet();\n\n\t\t\tjEdit.setBooleanProperty(\"search.hypersearch.toggle\",\n\t\t\t\thyperSearch.isSelected());\n\t\t}\n\t\telse if(searchAllBuffers.isSelected())\n\t\t\tfileset = new AllBufferSet(filter);\n\t\telse if(searchDirectory.isSelected())\n\t\t{\n\t\t\tString directory = this.directory.getText();\n\t\t\tthis.directory.addCurrentToHistory();\n\t\t\tboolean recurse = searchSubDirectories.isSelected();\n\n\t\t\tif(fileset instanceof DirectoryListSet)\n\t\t\t{\n\t\t\t\tDirectoryListSet dset = (DirectoryListSet)fileset;\n\t\t\t\tif(!dset.getDirectory().equals(directory)\n\t\t\t\t\t|| !dset.getFileFilter().equals(filter)\n\t\t\t\t\t|| !dset.isRecursive() == recurse)\n\t\t\t\t\tfileset = new DirectoryListSet(directory,filter,recurse);\n\t\t\t}\n\t\t\telse\n\t\t\t\tfileset = new DirectoryListSet(directory,filter,recurse);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// can't happen\n\t\t\tfileset = null;\n\t\t}\n\n\t\tjEdit.setBooleanProperty(\"search.keepDialog.toggle\",\n\t\t\tkeepDialog.isSelected());\n\n\t\tboolean ok = true;\n\n\t\tif(fileset.getFileCount() == 0)\n\t\t{\n\t\t\t// oops\n\t\t\tGUIUtilities.error(this,\"empty-fileset\",null);\n\t\t\tok = false;\n\t\t}\n\t\telse\n\t\t\tSearchAndReplace.setSearchFileSet(fileset);\n\n\t\tif(find.getText().length() != 0)\n\t\t{\n\t\t\tfind.addCurrentToHistory();\n\t\t\tSearchAndReplace.setSearchString(find.getText());\n\t\t\treplace.addCurrentToHistory();\n\n\t\t\tSearchAndReplace.setReplaceString(replace.getText());\n\t\t}\n\t\telse\n\t\t\tok = false;\n\n\t\treturn ok;\n\t} //}}}\n\n\t//{{{ closeOrKeepDialog() method\n\tprivate void closeOrKeepDialog()\n\t{\n\t\tif(keepDialog.isSelected())\n\t\t{\n\t\t\t// Windows bug workaround in case a YES/NO confirm\n\t\t\t// was shown\n\n\t\t\t// ... but if HyperSearch results window is floating,\n\t\t\t// the workaround causes problems!\n\t\t\tif(!hyperSearch.isSelected())\n\t\t\t{\n\t\t\t\ttoFront();\n\t\t\t\trequestFocus();\n\t\t\t\tfind.requestFocus();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGUIUtilities.saveGeometry(this,\"search\");\n\t\t\tdispose();\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ MyJRadioButton class\n\n\t// used for the stringReplace and beanShell replace radio buttons,\n\t// so that the user can press tab to go from the find field to the\n\t// replace field in one go\n\tclass MyJRadioButton extends JRadioButton\n\t{\n\t\tMyJRadioButton(String label)\n\t\t{\n\t\t\tsuper(label);\n\t\t}\n\n\t\tpublic boolean isFocusTraversable()\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t} //}}}\n\n\t//{{{ ReplaceActionHandler class\n\tclass ReplaceActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\treplace.setModel(beanShellReplace.isSelected()\n\t\t\t\t? \"replace.script\"\n\t\t\t\t: \"replace\");\n\t\t\tSearchAndReplace.setBeanShellReplace(\n\t\t\t\tbeanShellReplace.isSelected());\n\t\t}\n\t} //}}}\n\n\t//{{{ SettingsActionHandler class\n\tclass SettingsActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\n\t\t\tif(source == ignoreCase)\n\t\t\t\tSearchAndReplace.setIgnoreCase(ignoreCase.isSelected());\n\t\t\telse if(source == regexp)\n\t\t\t\tSearchAndReplace.setRegexp(regexp.isSelected());\n\t\t\telse if(source == searchBack || source == searchForward)\n\t\t\t\tSearchAndReplace.setReverseSearch(searchBack.isSelected());\n\t\t\telse if(source == wrap)\n\t\t\t\tSearchAndReplace.setAutoWrapAround(wrap.isSelected());\n\t\t\telse if(source == searchCurrentBuffer)\n\t\t\t\thyperSearch.setSelected(false);\n\t\t\telse if(source == searchSelection\n\t\t\t\t|| source == searchAllBuffers\n\t\t\t\t|| source == searchDirectory)\n\t\t\t\thyperSearch.setSelected(true);\n\n\t\t\tupdateEnabled();\n\t\t}\n\t} //}}}\n\n\t//{{{ MultiFileActionHandler class\n\tclass MultiFileActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == choose)\n\t\t\t{\n\t\t\t\tFile dir = new File(directory.getText());\n\t\t\t\tJFileChooser chooser = new JFileChooser(dir.getParent());\n\t\t\t\tchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t\t\tchooser.setSelectedFile(dir);\n\n\t\t\t\tif(chooser.showOpenDialog(SearchDialog.this)\n\t\t\t\t\t== JFileChooser.APPROVE_OPTION)\n\t\t\t\t\tdirectory.setText(chooser.getSelectedFile().getPath());\n\t\t\t}\n\t\t\telse // source is directory or filter field\n\t\t\t{\n\t\t\t\t// just as if Enter was pressed in another\n\t\t\t\t// text field\n\t\t\t\tok();\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ ButtonActionHandler class\n\tclass ButtonActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\n\t\t\tif(source == closeBtn)\n\t\t\t\tcancel();\n\t\t\telse if(source == findBtn || source == find\n\t\t\t\t|| source == replace)\n\t\t\t{\n\t\t\t\tok();\n\t\t\t}\n\t\t\telse if(source == replaceAndFindBtn)\n\t\t\t{\n\t\t\t\tsave();\n\t\t\t\tif(SearchAndReplace.replace(view))\n\t\t\t\t\tok();\n\t\t\t\telse\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t}\n\t\t\telse if(source == replaceAllBtn)\n\t\t\t{\n\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\n\t\t\t\tsave();\n\n\t\t\t\tif(searchSelection.isSelected())\n\t\t\t\t{\n\t\t\t\t\tif(SearchAndReplace.replace(view))\n\t\t\t\t\t\tcloseOrKeepDialog();\n\t\t\t\t\telse\n\t\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(SearchAndReplace.replaceAll(view))\n\t\t\t\t\t\tcloseOrKeepDialog();\n\t\t\t\t\telse\n\t\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t}\n\n\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));", "functions": [{"function_name": "showSearchDialog", "code": "\tpublic static void showSearchDialog(View view, String searchString,\n\t\tint searchIn)\n\t{\n\t\tSearchDialog dialog = (SearchDialog)viewHash.get(view);\n\t\tif(dialog != null)\n\t\t{\n\t\t\t// ugly workaround\n\t\t\tif(OperatingSystem.isUnix() && !OperatingSystem.isMacOS())\n\t\t\t{\n\t\t\t\tdialog.setVisible(false);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t}\n\n\t\t\tdialog.setSearchString(searchString,searchIn);\n\t\t\tGUIUtilities.requestFocus(dialog,dialog.find);\n\t\t\tdialog.toFront();\n\t\t\tdialog.requestFocus();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialog = new SearchDialog(view,searchString,searchIn);\n\t\t\tviewHash.put(view,dialog);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [7, 15], [2, 16], [10, 17], [15, 18], [15, 19], [7, 20], [7, 21], [20, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 7], [16, 2], [17, 10], [18, 15], [19, 15], [20, 7], [21, 7], [22, 20], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "setSearchString", "code": "\tpublic void setSearchString(String searchString, int searchIn)\n\t{\n\t\tif(searchString == null)\n\t\t\tfind.setText(null);\n\t\telse\n\t\t{\n\t\t\tif(searchString.indexOf('\\n') == -1)\n\t\t\t{\n\t\t\t\tfind.setText(searchString);\n\t\t\t\tfind.selectAll();\n\t\t\t}\n\t\t\telse if(searchIn == CURRENT_BUFFER)\n\t\t\t{\n\t\t\t\tsearchSelection.setSelected(true);\n\t\t\t\thyperSearch.setSelected(true);\n\t\t\t}\n\t\t}\n\n\t\tif(searchIn == CURRENT_BUFFER)\n\t\t{\n\t\t\tif(!searchSelection.isSelected())\n\t\t\t{\n\t\t\t\t// might be already selected, see above.\n\t\t\t\tsearchCurrentBuffer.setSelected(true);\n\n\t\t\t\t/* this property is only loaded and saved if\n\t\t\t\t * the 'current buffer' file set is selected.\n\t\t\t\t * otherwise, it defaults to on. */\n\t\t\t\thyperSearch.setSelected(jEdit.getBooleanProperty(\n\t\t\t\t\t\"search.hypersearch.toggle\"));\n\t\t\t}\n\t\t}\n\t\telse if(searchIn == ALL_BUFFERS)\n\t\t{\n\t\t\tsearchAllBuffers.setSelected(true);\n\t\t\thyperSearch.setSelected(true);\n\t\t}\n\t\telse if(searchIn == DIRECTORY)\n\t\t{\n\t\t\thyperSearch.setSelected(true);\n\t\t\tsearchDirectory.setSelected(true);\n\t\t}\n\n\t\tupdateEnabled();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [6, 9], [6, 10], [1, 11], [2, 12], [2, 13], [8, 14], [9, 15], [11, 16], [12, 17], [12, 18], [13, 19], [6, 20], [6, 21], [17, 22], [18, 23], [18, 24], [9, 25], [9, 26], [20, 27], [21, 28], [11, 29], [11, 30], [12, 31], [12, 32], [24, 33], [25, 34], [26, 35], [29, 36], [30, 37], [17, 38], [17, 39], [36, 40], [38, 41], [39, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 6], [10, 6], [11, 1], [12, 2], [13, 2], [14, 8], [15, 9], [16, 11], [17, 12], [18, 12], [19, 13], [20, 6], [21, 6], [22, 17], [23, 18], [24, 18], [25, 9], [26, 9], [27, 20], [28, 21], [29, 11], [30, 11], [31, 12], [32, 12], [33, 24], [34, 25], [35, 26], [36, 29], [37, 30], [38, 17], [39, 17], [40, 36], [41, 38], [42, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\n\t\t\tif(!save())\n\t\t\t\treturn;\n\n\t\t\tif(hyperSearch.isSelected() || searchSelection.isSelected())\n\t\t\t{\n\t\t\t\tif(SearchAndReplace.hyperSearch(view,\n\t\t\t\t\tsearchSelection.isSelected()));\n\t\t\t\t\tcloseOrKeepDialog();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(SearchAndReplace.find(view))\n\t\t\t\t\tcloseOrKeepDialog();\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [3, 7], [1, 8], [4, 9], [2, 10], [2, 11], [5, 12], [5, 13], [8, 14], [10, 15], [2, 16], [11, 17], [10, 18], [17, 19], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 3], [8, 1], [9, 4], [10, 2], [11, 2], [12, 5], [13, 5], [14, 8], [15, 10], [16, 2], [17, 11], [18, 10], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tsave();\n\t\tGUIUtilities.saveGeometry(this,\"search\");\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "handleMessage", "code": "\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof SearchSettingsChanged)\n\t\t{\n\t\t\tignoreCase.setSelected(SearchAndReplace.getIgnoreCase());\n\t\t\tregexp.setSelected(SearchAndReplace.getRegexp());\n\t\t}\n\t\telse if(msg instanceof ViewUpdate)\n\t\t{\n\t\t\tViewUpdate vmsg = (ViewUpdate)msg;\n\t\t\tif(vmsg.getView() == view\n\t\t\t\t&& vmsg.getWhat() == ViewUpdate.CLOSED)\n\t\t\t{\n\t\t\t\tviewHash.remove(view);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [3, 7], [1, 8], [1, 9], [6, 10], [8, 11], [9, 12], [10, 13], [10, 14], [6, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 3], [8, 1], [9, 1], [10, 6], [11, 8], [12, 9], [13, 10], [14, 10], [15, 6], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "dispose", "code": "\tpublic void dispose()\n\t{\n\t\tEditBus.removeFromBus(this);\n\t\tviewHash.remove(view);\n\t\tsuper.dispose();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createFieldPanel", "code": "\tprivate JPanel createFieldPanel()\n\t{\n\t\tButtonActionHandler actionHandler = new ButtonActionHandler();\n\n\t\tJPanel fieldPanel = new JPanel(new VariableGridLayout(\n\t\t\tVariableGridLayout.FIXED_NUM_COLUMNS,1));\n\t\tfieldPanel.setBorder(new EmptyBorder(0,0,12,12));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"search.find\"));\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\"search.find.mnemonic\")\n\t\t\t.charAt(0));\n\t\tfind = new HistoryTextField(\"find\");\n\n\t\t// don't want it to be too wide due to long strings\n\t\tDimension size = find.getPreferredSize();\n\t\tsize.width = find.getFontMetrics(find.getFont())\n\t\t\t.charWidth('a') * 25;\n\t\tfind.setPreferredSize(size);\n\n\t\tfind.addActionListener(actionHandler);\n\t\tlabel.setLabelFor(find);\n\t\tlabel.setBorder(new EmptyBorder(12,0,2,0));\n\t\tfieldPanel.add(label);\n\t\tfieldPanel.add(find);\n\n\t\tlabel = new JLabel(jEdit.getProperty(\"search.replace\"));\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\"search.replace.mnemonic\")\n\t\t\t.charAt(0));\n\t\tlabel.setBorder(new EmptyBorder(12,0,0,0));\n\t\tfieldPanel.add(label);\n\n\t\tButtonGroup grp = new ButtonGroup();\n\t\tReplaceActionHandler replaceActionHandler = new ReplaceActionHandler();\n\n\t\t// we use a custom JRadioButton subclass that returns\n\t\t// false for isFocusTraversable() so that the user can\n\t\t// tab from the search field to the replace field with\n\t\t// one keystroke\n\n\t\tBox replaceModeBox = new Box(BoxLayout.X_AXIS);\n\t\tstringReplace = new MyJRadioButton(jEdit.getProperty(\n\t\t\t\"search.string-replace-btn\"));\n\t\tstringReplace.addActionListener(replaceActionHandler);\n\t\tgrp.add(stringReplace);\n\t\treplaceModeBox.add(stringReplace);\n\n\t\treplaceModeBox.add(Box.createHorizontalStrut(12));\n\n\t\tbeanShellReplace = new MyJRadioButton(jEdit.getProperty(\n\t\t\t\"search.beanshell-replace-btn\"));\n\t\tbeanShellReplace.addActionListener(replaceActionHandler);\n\t\tgrp.add(beanShellReplace);\n\t\treplaceModeBox.add(beanShellReplace);\n\n\t\tfieldPanel.add(replaceModeBox);\n\n\t\tfieldPanel.add(Box.createVerticalStrut(3));\n\n\t\treplace = new HistoryTextField(\"replace\");\n\t\treplace.addActionListener(actionHandler);\n\t\tlabel.setLabelFor(replace);\n\t\tfieldPanel.add(replace);\n\n\t\treturn fieldPanel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [12, 38], [13, 39], [18, 40], [19, 41], [23, 42], [2, 43], [3, 44], [4, 45], [25, 46], [26, 47], [27, 48], [30, 49], [34, 50], [5, 51], [35, 52], [36, 53], [6, 54], [37, 55], [7, 56], [8, 57], [38, 58], [39, 59], [40, 60], [41, 61], [42, 62], [46, 63], [46, 64], [46, 65], [46, 66], [47, 67], [47, 68], [48, 69], [49, 70], [49, 71], [49, 72], [49, 73], [50, 74], [50, 75], [52, 76], [53, 77], [53, 78], [54, 79], [55, 80], [55, 81], [55, 82], [55, 83], [56, 84], [60, 85], [62, 86], [68, 87], [69, 88], [75, 89], [75, 90], [78, 91], [79, 92], [84, 93], [90, 94], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 12], [39, 13], [40, 18], [41, 19], [42, 23], [43, 2], [44, 3], [45, 4], [46, 25], [47, 26], [48, 27], [49, 30], [50, 34], [51, 5], [52, 35], [53, 36], [54, 6], [55, 37], [56, 7], [57, 8], [58, 38], [59, 39], [60, 40], [61, 41], [62, 42], [63, 46], [64, 46], [65, 46], [66, 46], [67, 47], [68, 47], [69, 48], [70, 49], [71, 49], [72, 49], [73, 49], [74, 50], [75, 50], [76, 52], [77, 53], [78, 53], [79, 54], [80, 55], [81, 55], [82, 55], [83, 55], [84, 56], [85, 60], [86, 62], [87, 68], [88, 69], [89, 75], [90, 75], [91, 78], [92, 79], [93, 84], [94, 90], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "createSearchSettingsPanel", "code": "\tprivate JPanel createSearchSettingsPanel()\n\t{\n\t\tJPanel searchSettings = new JPanel(new VariableGridLayout(\n\t\t\tVariableGridLayout.FIXED_NUM_COLUMNS,3));\n\t\tsearchSettings.setBorder(new EmptyBorder(0,0,12,12));\n\n\t\tSettingsActionHandler actionHandler = new SettingsActionHandler();\n\t\tButtonGroup fileset = new ButtonGroup();\n\t\tButtonGroup direction = new ButtonGroup();\n\n\t\tsearchSettings.add(new JLabel(jEdit.getProperty(\"search.fileset\")));\n\n\t\tsearchSettings.add(new JLabel(jEdit.getProperty(\"search.settings\")));\n\n\t\tsearchSettings.add(new JLabel(jEdit.getProperty(\"search.direction\")));\n\n\t\tsearchSelection = new JRadioButton(jEdit.getProperty(\"search.selection\"));\n\t\tsearchSelection.setMnemonic(jEdit.getProperty(\"search.selection.mnemonic\")\n\t\t\t.charAt(0));\n\t\tfileset.add(searchSelection);\n\t\tsearchSettings.add(searchSelection);\n\t\tsearchSelection.addActionListener(actionHandler);\n\n\t\tkeepDialog = new JCheckBox(jEdit.getProperty(\"search.keep\"));\n\t\tkeepDialog.setMnemonic(jEdit.getProperty(\"search.keep.mnemonic\")\n\t\t\t.charAt(0));\n\t\tsearchSettings.add(keepDialog);\n\n\t\tsearchBack = new JRadioButton(jEdit.getProperty(\"search.back\"));\n\t\tsearchBack.setMnemonic(jEdit.getProperty(\"search.back.mnemonic\")\n\t\t\t.charAt(0));\n\t\tdirection.add(searchBack);\n\t\tsearchSettings.add(searchBack);\n\t\tsearchBack.addActionListener(actionHandler);\n\n\t\tsearchCurrentBuffer = new JRadioButton(jEdit.getProperty(\"search.current\"));\n\t\tsearchCurrentBuffer.setMnemonic(jEdit.getProperty(\"search.current.mnemonic\")\n\t\t\t.charAt(0));\n\t\tfileset.add(searchCurrentBuffer);\n\t\tsearchSettings.add(searchCurrentBuffer);\n\t\tsearchCurrentBuffer.addActionListener(actionHandler);\n\n\t\tignoreCase = new JCheckBox(jEdit.getProperty(\"search.case\"));\n\t\tignoreCase.setMnemonic(jEdit.getProperty(\"search.case.mnemonic\")\n\t\t\t.charAt(0));\n\t\tsearchSettings.add(ignoreCase);\n\t\tignoreCase.addActionListener(actionHandler);\n\n\t\tsearchForward = new JRadioButton(jEdit.getProperty(\"search.forward\"));\n\t\tsearchForward.setMnemonic(jEdit.getProperty(\"search.forward.mnemonic\")\n\t\t\t.charAt(0));\n\t\tdirection.add(searchForward);\n\t\tsearchSettings.add(searchForward);\n\t\tsearchForward.addActionListener(actionHandler);\n\n\t\tsearchAllBuffers = new JRadioButton(jEdit.getProperty(\"search.all\"));\n\t\tsearchAllBuffers.setMnemonic(jEdit.getProperty(\"search.all.mnemonic\")\n\t\t\t.charAt(0));\n\t\tfileset.add(searchAllBuffers);\n\t\tsearchSettings.add(searchAllBuffers);\n\t\tsearchAllBuffers.addActionListener(actionHandler);\n\n\t\tregexp = new JCheckBox(jEdit.getProperty(\"search.regexp\"));\n\t\tregexp.setMnemonic(jEdit.getProperty(\"search.regexp.mnemonic\")\n\t\t\t.charAt(0));\n\t\tsearchSettings.add(regexp);\n\t\tregexp.addActionListener(actionHandler);\n\n\t\twrap = new JCheckBox(jEdit.getProperty(\"search.wrap\"));\n\t\twrap.setMnemonic(jEdit.getProperty(\"search.wrap.mnemonic\")\n\t\t\t.charAt(0));\n\t\tsearchSettings.add(wrap);\n\t\twrap.addActionListener(actionHandler);\n\n\t\tsearchDirectory = new JRadioButton(jEdit.getProperty(\"search.directory\"));\n\t\tsearchDirectory.setMnemonic(jEdit.getProperty(\"search.directory.mnemonic\")\n\t\t\t.charAt(0));\n\t\tfileset.add(searchDirectory);\n\t\tsearchSettings.add(searchDirectory);\n\t\tsearchDirectory.addActionListener(actionHandler);\n\n\t\thyperSearch = new JCheckBox(jEdit.getProperty(\"search.hypersearch\"));\n\t\thyperSearch.setMnemonic(jEdit.getProperty(\"search.hypersearch.mnemonic\")\n\t\t\t.charAt(0));\n\t\tsearchSettings.add(hyperSearch);\n\t\thyperSearch.addActionListener(actionHandler);\n\n\t\treturn searchSettings;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [0, 54], [0, 55], [0, 56], [0, 57], [0, 58], [8, 59], [9, 60], [13, 61], [14, 62], [17, 63], [18, 64], [21, 65], [22, 66], [26, 67], [27, 68], [31, 69], [32, 70], [35, 71], [36, 72], [40, 73], [41, 74], [45, 75], [46, 76], [48, 77], [49, 78], [53, 79], [54, 80], [55, 81], [56, 82], [57, 83], [2, 84], [3, 85], [4, 86], [58, 87], [5, 88], [59, 89], [59, 90], [60, 91], [61, 92], [61, 93], [62, 94], [63, 95], [63, 96], [64, 97], [65, 98], [65, 99], [66, 100], [67, 101], [67, 102], [68, 103], [69, 104], [69, 105], [70, 106], [71, 107], [71, 108], [72, 109], [73, 110], [73, 111], [74, 112], [75, 113], [75, 114], [76, 115], [77, 116], [77, 117], [78, 118], [79, 119], [79, 120], [80, 121], [81, 122], [82, 123], [83, 124], [87, 125], [87, 126], [87, 127], [87, 128], [88, 129], [90, 130], [91, 131], [93, 132], [94, 133], [96, 134], [97, 135], [99, 136], [100, 137], [102, 138], [103, 139], [105, 140], [106, 141], [108, 142], [109, 143], [111, 144], [112, 145], [114, 146], [115, 147], [117, 148], [118, 149], [120, 150], [121, 151], [122, 152], [123, 153], [124, 154], [129, 155], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 0], [55, 0], [56, 0], [57, 0], [58, 0], [59, 8], [60, 9], [61, 13], [62, 14], [63, 17], [64, 18], [65, 21], [66, 22], [67, 26], [68, 27], [69, 31], [70, 32], [71, 35], [72, 36], [73, 40], [74, 41], [75, 45], [76, 46], [77, 48], [78, 49], [79, 53], [80, 54], [81, 55], [82, 56], [83, 57], [84, 2], [85, 3], [86, 4], [87, 58], [88, 5], [89, 59], [90, 59], [91, 60], [92, 61], [93, 61], [94, 62], [95, 63], [96, 63], [97, 64], [98, 65], [99, 65], [100, 66], [101, 67], [102, 67], [103, 68], [104, 69], [105, 69], [106, 70], [107, 71], [108, 71], [109, 72], [110, 73], [111, 73], [112, 74], [113, 75], [114, 75], [115, 76], [116, 77], [117, 77], [118, 78], [119, 79], [120, 79], [121, 80], [122, 81], [123, 82], [124, 83], [125, 87], [126, 87], [127, 87], [128, 87], [129, 88], [130, 90], [131, 91], [132, 93], [133, 94], [134, 96], [135, 97], [136, 99], [137, 100], [138, 102], [139, 103], [140, 105], [141, 106], [142, 108], [143, 109], [144, 111], [145, 112], [146, 114], [147, 115], [148, 117], [149, 118], [150, 120], [151, 121], [152, 122], [153, 123], [154, 124], [155, 129], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155]]}, {"function_name": "createMultiFilePanel", "code": "\tprivate JPanel createMultiFilePanel()\n\t{\n\t\tJPanel multifile = new JPanel();\n\n\t\tGridBagLayout layout = new GridBagLayout();\n\t\tmultifile.setLayout(layout);\n\n\t\tGridBagConstraints cons = new GridBagConstraints();\n\t\tcons.gridy = cons.gridwidth = cons.gridheight = 1;\n\t\tcons.anchor = GridBagConstraints.WEST;\n\t\tcons.fill = GridBagConstraints.HORIZONTAL;\n\n\t\tMultiFileActionHandler actionListener = new MultiFileActionHandler();\n\t\tfilter = new HistoryTextField(\"search.filter\");\n\t\tfilter.addActionListener(actionListener);\n\n\t\tcons.insets = new Insets(0,0,3,0);\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"search.filterField\"),\n\t\t\tSwingConstants.RIGHT);\n\t\tlabel.setBorder(new EmptyBorder(0,0,0,12));\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\"search.filterField.mnemonic\")\n\t\t\t.charAt(0));\n\t\tlabel.setLabelFor(filter);\n\t\tcons.weightx = 0.0f;\n\t\tlayout.setConstraints(label,cons);\n\t\tmultifile.add(label);\n\n\t\tcons.insets = new Insets(0,0,3,6);\n\t\tcons.weightx = 1.0f;\n\t\tlayout.setConstraints(filter,cons);\n\t\tmultifile.add(filter);\n\n\t\tcons.gridy++;\n\n\t\tdirectory = new HistoryTextField(\"search.directory\");\n\t\tdirectory.addActionListener(actionListener);\n\n\t\tlabel = new JLabel(jEdit.getProperty(\"search.directoryField\"),\n\t\t\tSwingConstants.RIGHT);\n\t\tlabel.setBorder(new EmptyBorder(0,0,0,12));\n\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\"search.directoryField.mnemonic\")\n\t\t\t.charAt(0));\n\t\tlabel.setLabelFor(directory);\n\t\tcons.insets = new Insets(0,0,3,0);\n\t\tcons.weightx = 0.0f;\n\t\tlayout.setConstraints(label,cons);\n\t\tmultifile.add(label);\n\n\t\tcons.insets = new Insets(0,0,3,6);\n\t\tcons.weightx = 1.0f;\n\t\tcons.gridwidth = 2;\n\t\tlayout.setConstraints(directory,cons);\n\t\tmultifile.add(directory);\n\n\t\tchoose = new JButton(jEdit.getProperty(\"search.choose\"));\n\t\tchoose.setMnemonic(jEdit.getProperty(\"search.choose.mnemonic\")\n\t\t\t.charAt(0));\n\t\tcons.insets = new Insets(0,0,3,0);\n\t\tcons.weightx = 0.0f;\n\t\tcons.gridwidth = 1;\n\t\tlayout.setConstraints(choose,cons);\n\t\tmultifile.add(choose);\n\t\tchoose.addActionListener(actionListener);\n\n\t\tcons.insets = new Insets(0,0,0,0);\n\t\tcons.gridy++;\n\t\tcons.gridwidth = 4;\n\n\t\tsearchSubDirectories = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.subdirs\"));\n\t\tsearchSubDirectories.setMnemonic(jEdit.getProperty(\"search.subdirs.mnemonic\")\n\t\t\t.charAt(0));\n\t\tlayout.setConstraints(searchSubDirectories,cons);\n\t\tmultifile.add(searchSubDirectories);\n\n\t\treturn multifile;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [9, 53], [10, 54], [11, 55], [12, 56], [16, 57], [17, 58], [18, 59], [19, 60], [20, 61], [23, 62], [24, 63], [25, 64], [28, 65], [29, 66], [31, 67], [32, 68], [33, 69], [35, 70], [38, 71], [39, 72], [42, 73], [44, 74], [45, 75], [2, 76], [46, 77], [48, 78], [3, 79], [51, 80], [4, 81], [5, 82], [6, 83], [53, 84], [53, 85], [54, 86], [56, 87], [56, 88], [56, 89], [56, 90], [59, 91], [59, 92], [59, 93], [59, 94], [60, 95], [60, 96], [61, 97], [64, 98], [64, 99], [64, 100], [64, 101], [66, 102], [66, 103], [66, 104], [66, 105], [67, 106], [67, 107], [68, 108], [68, 109], [68, 110], [68, 111], [69, 112], [70, 113], [72, 114], [72, 115], [72, 116], [72, 117], [74, 118], [74, 119], [75, 120], [75, 121], [75, 122], [75, 123], [76, 124], [77, 125], [77, 126], [77, 127], [77, 128], [78, 129], [80, 130], [85, 131], [86, 132], [96, 133], [97, 134], [107, 135], [112, 136], [119, 137], [124, 138], [130, 139], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 9], [54, 10], [55, 11], [56, 12], [57, 16], [58, 17], [59, 18], [60, 19], [61, 20], [62, 23], [63, 24], [64, 25], [65, 28], [66, 29], [67, 31], [68, 32], [69, 33], [70, 35], [71, 38], [72, 39], [73, 42], [74, 44], [75, 45], [76, 2], [77, 46], [78, 48], [79, 3], [80, 51], [81, 4], [82, 5], [83, 6], [84, 53], [85, 53], [86, 54], [87, 56], [88, 56], [89, 56], [90, 56], [91, 59], [92, 59], [93, 59], [94, 59], [95, 60], [96, 60], [97, 61], [98, 64], [99, 64], [100, 64], [101, 64], [102, 66], [103, 66], [104, 66], [105, 66], [106, 67], [107, 67], [108, 68], [109, 68], [110, 68], [111, 68], [112, 69], [113, 70], [114, 72], [115, 72], [116, 72], [117, 72], [118, 74], [119, 74], [120, 75], [121, 75], [122, 75], [123, 75], [124, 76], [125, 77], [126, 77], [127, 77], [128, 77], [129, 78], [130, 80], [131, 85], [132, 86], [133, 96], [134, 97], [135, 107], [136, 112], [137, 119], [138, 124], [139, 130], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139]]}, {"function_name": "createButtonsPanel", "code": "\tprivate Box createButtonsPanel()\n\t{\n\t\tBox box = new Box(BoxLayout.Y_AXIS);\n\n\t\tButtonActionHandler actionHandler = new ButtonActionHandler();\n\n\t\tbox.add(Box.createVerticalStrut(12));\n\n\t\tJPanel grid = new JPanel(new GridLayout(5,1,0,12));\n\n\t\tfindBtn = new JButton(jEdit.getProperty(\"search.findBtn\"));\n\t\tgetRootPane().setDefaultButton(findBtn);\n\t\tgrid.add(findBtn);\n\t\tfindBtn.addActionListener(actionHandler);\n\n\t\t/* replaceBtn = new JButton(jEdit.getProperty(\"search.replaceBtn\"));\n\t\treplaceBtn.setMnemonic(jEdit.getProperty(\"search.replaceBtn.mnemonic\")\n\t\t\t.charAt(0));\n\t\tgrid.add(replaceBtn);\n\t\treplaceBtn.addActionListener(actionHandler); */\n\n\t\treplaceAndFindBtn = new JButton(jEdit.getProperty(\"search.replaceAndFindBtn\"));\n\t\treplaceAndFindBtn.setMnemonic(jEdit.getProperty(\"search.replaceAndFindBtn.mnemonic\")\n\t\t\t.charAt(0));\n\t\tgrid.add(replaceAndFindBtn);\n\t\treplaceAndFindBtn.addActionListener(actionHandler);\n\n\t\treplaceAllBtn = new JButton(jEdit.getProperty(\"search.replaceAllBtn\"));\n\t\treplaceAllBtn.setMnemonic(jEdit.getProperty(\"search.replaceAllBtn.mnemonic\")\n\t\t\t.charAt(0));\n\t\tgrid.add(replaceAllBtn);\n\t\treplaceAllBtn.addActionListener(actionHandler);\n\n\t\tcloseBtn = new JButton(jEdit.getProperty(\"common.close\"));\n\t\tgrid.add(closeBtn);\n\t\tcloseBtn.addActionListener(actionHandler);\n\n\t\tgrid.setMaximumSize(grid.getPreferredSize());\n\n\t\tbox.add(grid);\n\t\tbox.add(Box.createGlue());\n\n\t\treturn box;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [5, 24], [7, 25], [10, 26], [13, 27], [14, 28], [17, 29], [18, 30], [21, 31], [22, 32], [2, 33], [23, 34], [3, 35], [4, 36], [26, 37], [27, 38], [27, 39], [28, 40], [29, 41], [29, 42], [30, 43], [32, 44], [33, 45], [34, 46], [37, 47], [39, 48], [40, 49], [42, 50], [43, 51], [44, 52], [45, 53], [45, 54], [45, 55], [45, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 5], [25, 7], [26, 10], [27, 13], [28, 14], [29, 17], [30, 18], [31, 21], [32, 22], [33, 2], [34, 23], [35, 3], [36, 4], [37, 26], [38, 27], [39, 27], [40, 28], [41, 29], [42, 29], [43, 30], [44, 32], [45, 33], [46, 34], [47, 37], [48, 39], [49, 40], [50, 42], [51, 43], [52, 44], [53, 45], [54, 45], [55, 45], [56, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "updateEnabled", "code": "\tprivate void updateEnabled()\n\t{\n\t\twrap.setEnabled(!hyperSearch.isSelected()\n\t\t\t&& !searchSelection.isSelected());\n\n\t\tboolean reverseEnabled = !hyperSearch.isSelected()\n\t\t\t&& searchCurrentBuffer.isSelected();\n\t\tsearchBack.setEnabled(reverseEnabled && !regexp.isSelected());\n\t\tsearchForward.setEnabled(reverseEnabled);\n\t\tif(!reverseEnabled)\n\t\t\tsearchForward.setSelected(true);\n\n\t\tfilter.setEnabled(searchAllBuffers.isSelected()\n\t\t\t|| searchDirectory.isSelected());\n\n\t\tboolean directoryEnabled = searchDirectory.isSelected();\n\n\t\tdirectory.setEnabled(directoryEnabled);\n\t\tchoose.setEnabled(directoryEnabled);\n\t\tsearchSubDirectories.setEnabled(directoryEnabled);\n\n\t\tfindBtn.setEnabled(!searchSelection.isSelected()\n\t\t\t|| hyperSearch.isSelected());\n\t\treplaceAndFindBtn.setEnabled(!hyperSearch.isSelected()\n\t\t\t&& !searchSelection.isSelected());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [4, 13], [5, 14], [1, 15], [9, 16], [2, 17], [11, 18], [3, 19], [12, 20], [13, 21], [13, 22], [14, 23], [14, 24], [16, 25], [16, 26], [17, 27], [18, 28], [19, 29], [19, 30], [20, 31], [20, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 4], [14, 5], [15, 1], [16, 9], [17, 2], [18, 11], [19, 3], [20, 12], [21, 13], [22, 13], [23, 14], [24, 14], [25, 16], [26, 16], [27, 17], [28, 18], [29, 19], [30, 19], [31, 20], [32, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "save", "code": "\tprivate boolean save()\n\t{\n\t\tString filter = this.filter.getText();\n\t\tthis.filter.addCurrentToHistory();\n\t\tif(filter.length() == 0)\n\t\t\tfilter = \"*\";\n\n\t\tSearchFileSet fileset = SearchAndReplace.getSearchFileSet();\n\n\t\tif(searchSelection.isSelected())\n\t\t\tfileset = new CurrentBufferSet();\n\t\telse if(searchCurrentBuffer.isSelected())\n\t\t{\n\t\t\tfileset = new CurrentBufferSet();\n\n\t\t\tjEdit.setBooleanProperty(\"search.hypersearch.toggle\",\n\t\t\t\thyperSearch.isSelected());\n\t\t}\n\t\telse if(searchAllBuffers.isSelected())\n\t\t\tfileset = new AllBufferSet(filter);\n\t\telse if(searchDirectory.isSelected())\n\t\t{\n\t\t\tString directory = this.directory.getText();\n\t\t\tthis.directory.addCurrentToHistory();\n\t\t\tboolean recurse = searchSubDirectories.isSelected();\n\n\t\t\tif(fileset instanceof DirectoryListSet)\n\t\t\t{\n\t\t\t\tDirectoryListSet dset = (DirectoryListSet)fileset;\n\t\t\t\tif(!dset.getDirectory().equals(directory)\n\t\t\t\t\t|| !dset.getFileFilter().equals(filter)\n\t\t\t\t\t|| !dset.isRecursive() == recurse)\n\t\t\t\t\tfileset = new DirectoryListSet(directory,filter,recurse);\n\t\t\t}\n\t\t\telse\n\t\t\t\tfileset = new DirectoryListSet(directory,filter,recurse);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// can't happen\n\t\t\tfileset = null;\n\t\t}\n\n\t\tjEdit.setBooleanProperty(\"search.keepDialog.toggle\",\n\t\t\tkeepDialog.isSelected());\n\n\t\tboolean ok = true;\n\n\t\tif(fileset.getFileCount() == 0)\n\t\t{\n\t\t\t// oops\n\t\t\tGUIUtilities.error(this,\"empty-fileset\",null);\n\t\t\tok = false;\n\t\t}\n\t\telse\n\t\t\tSearchAndReplace.setSearchFileSet(fileset);\n\n\t\tif(find.getText().length() != 0)\n\t\t{\n\t\t\tfind.addCurrentToHistory();\n\t\t\tSearchAndReplace.setSearchString(find.getText());\n\t\t\treplace.addCurrentToHistory();\n\n\t\t\tSearchAndReplace.setReplaceString(replace.getText());\n\t\t}\n\t\telse\n\t\t\tok = false;\n\n\t\treturn ok;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [0, 11], [5, 12], [5, 13], [7, 14], [2, 15], [9, 16], [9, 17], [3, 18], [10, 19], [10, 20], [4, 21], [11, 22], [11, 23], [12, 24], [12, 25], [5, 26], [6, 27], [7, 28], [14, 29], [14, 30], [0, 31], [15, 32], [2, 33], [2, 34], [2, 35], [2, 36], [17, 37], [3, 38], [3, 39], [24, 40], [24, 41], [26, 42], [28, 43], [8, 44], [33, 45], [35, 46], [38, 47], [39, 48], [39, 49], [40, 50], [24, 51], [12, 52], [12, 53], [40, 54], [40, 55], [40, 56], [51, 57], [52, 58], [52, 59], [53, 60], [40, 61], [54, 62], [61, 63], [54, 64], [54, 65], [54, 66], [55, 67], [40, 68], [64, 69], [65, 70], [56, 71], [65, 72], [70, 73], [70, 74], [72, 75], [73, 76], [74, 77], [74, 78], [77, 79], [78, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 0], [12, 5], [13, 5], [14, 7], [15, 2], [16, 9], [17, 9], [18, 3], [19, 10], [20, 10], [21, 4], [22, 11], [23, 11], [24, 12], [25, 12], [26, 5], [27, 6], [28, 7], [29, 14], [30, 14], [31, 0], [32, 15], [33, 2], [34, 2], [35, 2], [36, 2], [37, 17], [38, 3], [39, 3], [40, 24], [41, 24], [42, 26], [43, 28], [44, 8], [45, 33], [46, 35], [47, 38], [48, 39], [49, 39], [50, 40], [51, 24], [52, 12], [53, 12], [54, 40], [55, 40], [56, 40], [57, 51], [58, 52], [59, 52], [60, 53], [61, 40], [62, 54], [63, 61], [64, 54], [65, 54], [66, 54], [67, 55], [68, 40], [69, 64], [70, 65], [71, 56], [72, 65], [73, 70], [74, 70], [75, 72], [76, 73], [77, 74], [78, 74], [79, 77], [80, 78], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "closeOrKeepDialog", "code": "\tprivate void closeOrKeepDialog()\n\t{\n\t\tif(keepDialog.isSelected())\n\t\t{\n\t\t\t// Windows bug workaround in case a YES/NO confirm\n\t\t\t// was shown\n\n\t\t\t// ... but if HyperSearch results window is floating,\n\t\t\t// the workaround causes problems!\n\t\t\tif(!hyperSearch.isSelected())\n\t\t\t{\n\t\t\t\ttoFront();\n\t\t\t\trequestFocus();\n\t\t\t\tfind.requestFocus();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGUIUtilities.saveGeometry(this,\"search\");\n\t\t\tdispose();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [4, 9], [4, 10], [4, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 4], [10, 4], [11, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "SearchDialog", "code": "\tpublic SearchDialog(View view, String searchString)\n\t{\n\t\tthis(view,searchString,CURRENT_BUFFER);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SearchDialog", "code": "\tpublic SearchDialog(View view, String searchString, int searchIn)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"search.title\"),false);\n\n\t\tthis.view = view;\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(0,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout());\n\t\tcenterPanel.add(BorderLayout.NORTH,createFieldPanel());\n\t\tcenterPanel.add(BorderLayout.CENTER,createSearchSettingsPanel());\n\t\tcontent.add(BorderLayout.CENTER,centerPanel);\n\t\tcontent.add(BorderLayout.SOUTH,createMultiFilePanel());\n\n\t\tcontent.add(BorderLayout.EAST,createButtonsPanel());\n\n\t\tignoreCase.setSelected(SearchAndReplace.getIgnoreCase());\n\t\tregexp.setSelected(SearchAndReplace.getRegexp());\n\t\twrap.setSelected(SearchAndReplace.getAutoWrapAround());\n\n\t\tif(SearchAndReplace.getReverseSearch())\n\t\t\tsearchBack.setSelected(true);\n\t\telse\n\t\t\tsearchForward.setSelected(true);\n\n\t\tif(SearchAndReplace.getBeanShellReplace())\n\t\t{\n\t\t\treplace.setModel(\"replace.script\");\n\t\t\tbeanShellReplace.setSelected(true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treplace.setModel(\"replace\");\n\t\t\tstringReplace.setSelected(true);\n\t\t}\n\n\t\tSearchFileSet fileset = SearchAndReplace.getSearchFileSet();\n\n\t\tif(fileset instanceof DirectoryListSet)\n\t\t{\n\t\t\tfilter.setText(((DirectoryListSet)fileset)\n\t\t\t\t.getFileFilter());\n\t\t\tdirectory.setText(((DirectoryListSet)fileset)\n\t\t\t\t.getDirectory());\n\t\t\tsearchSubDirectories.setSelected(((DirectoryListSet)fileset)\n\t\t\t\t.isRecursive());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString path;\n\t\t\tif(view.getBuffer().getVFS() instanceof FileVFS)\n\t\t\t{\n\t\t\t\tpath = MiscUtilities.getParentOfPath(\n\t\t\t\t\tview.getBuffer().getPath());\n\t\t\t}\n\t\t\telse\n\t\t\t\tpath = System.getProperty(\"user.dir\");\n\t\t\tdirectory.setText(path);\n\n\t\t\tif(fileset instanceof AllBufferSet)\n\t\t\t{\n\t\t\t\tfilter.setText(((AllBufferSet)fileset)\n\t\t\t\t\t.getFileFilter());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfilter.setText(\"*\" + MiscUtilities\n\t\t\t\t\t.getFileExtension(view.getBuffer()\n\t\t\t\t\t.getName()));\n\t\t\t}\n\n\t\t\tsearchSubDirectories.setSelected(true);\n\t\t}\n\n\t\tdirectory.addCurrentToHistory();\n\n\t\tkeepDialog.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"search.keepDialog.toggle\"));\n\n\t\tsetSearchString(searchString,searchIn);\n\n\t\tpack();\n\t\tjEdit.unsetProperty(\"search.width\");\n\t\tjEdit.unsetProperty(\"search.d-width\");\n\t\tjEdit.unsetProperty(\"search.height\");\n\t\tjEdit.unsetProperty(\"search.d-height\");\n\t\tGUIUtilities.loadGeometry(this,\"search\");\n\t\tshow();\n\n\t\tEditBus.addToBus(this);\n\n\t\tGUIUtilities.requestFocus(this,find);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [1, 22], [3, 23], [4, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [13, 38], [14, 39], [15, 40], [16, 41], [17, 42], [20, 43], [1, 44], [1, 45], [1, 46], [2, 47], [4, 48], [4, 49], [25, 50], [26, 51], [27, 52], [28, 53], [29, 54], [31, 55], [32, 56], [5, 57], [34, 58], [6, 59], [37, 60], [43, 61], [1, 62], [44, 63], [1, 64], [45, 65], [1, 66], [1, 67], [1, 68], [3, 69], [3, 70], [3, 71], [3, 72], [48, 73], [49, 74], [57, 75], [58, 76], [58, 77], [58, 78], [58, 79], [59, 80], [62, 81], [45, 82], [65, 83], [69, 84], [70, 85], [71, 86], [72, 87], [44, 88], [44, 89], [82, 90], [45, 91], [83, 92], [88, 93], [90, 94], [91, 95], [93, 96], [93, 97], [95, 98], [96, 99], [98, 100], [99, 101], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 1], [23, 3], [24, 4], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 13], [39, 14], [40, 15], [41, 16], [42, 17], [43, 20], [44, 1], [45, 1], [46, 1], [47, 2], [48, 4], [49, 4], [50, 25], [51, 26], [52, 27], [53, 28], [54, 29], [55, 31], [56, 32], [57, 5], [58, 34], [59, 6], [60, 37], [61, 43], [62, 1], [63, 44], [64, 1], [65, 45], [66, 1], [67, 1], [68, 1], [69, 3], [70, 3], [71, 3], [72, 3], [73, 48], [74, 49], [75, 57], [76, 58], [77, 58], [78, 58], [79, 58], [80, 59], [81, 62], [82, 45], [83, 65], [84, 69], [85, 70], [86, 71], [87, 72], [88, 44], [89, 44], [90, 82], [91, 45], [92, 83], [93, 88], [94, 90], [95, 91], [96, 93], [97, 93], [98, 95], [99, 96], [100, 98], [101, 99], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101]]}], "label": 1}
{"sample_id": "jedit-4.0-3750", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/options/GeneralOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.GeneralOptionPane", "code": "public class GeneralOptionPane extends AbstractOptionPane\n{\n\tpublic GeneralOptionPane()\n\t{\n\t\tsuper(\"general\");\n\t}\n\n\t// protected members\n\tprotected void _init()\n\t{\n\t\t/* History count */\n\t\thistory = new JTextField(jEdit.getProperty(\"history\"));\n\t\taddComponent(jEdit.getProperty(\"options.general.history\"),history);\n\n\t\t/* Save caret positions */\n\t\tsaveCaret = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.saveCaret\"));\n\t\tsaveCaret.setSelected(jEdit.getBooleanProperty(\"saveCaret\"));\n\t\taddComponent(saveCaret);\n\n\t\t/* Sort buffers */\n\t\tsortBuffers = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.sortBuffers\"));\n\t\tsortBuffers.setSelected(jEdit.getBooleanProperty(\"sortBuffers\"));\n\t\tsortBuffers.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tsortByName.setEnabled(sortBuffers.isSelected());\n\t\t\t}\n\t\t});\n\n\t\taddComponent(sortBuffers);\n\n\t\t/* Sort buffers by names */\n\t\tsortByName = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.sortByName\"));\n\t\tsortByName.setSelected(jEdit.getBooleanProperty(\"sortByName\"));\n\t\tsortByName.setEnabled(sortBuffers.isSelected());\n\t\taddComponent(sortByName);\n\n\t\t/* Sort recent file list */\n\t\tsortRecent = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.sortRecent\"));\n\t\tsortRecent.setSelected(jEdit.getBooleanProperty(\"sortRecent\"));\n\t\taddComponent(sortRecent);\n\n\t\t/* Check mod status on focus */\n\t\tcheckModStatus = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.checkModStatus\"));\n\t\tcheckModStatus.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.checkModStatus\"));\n\t\taddComponent(checkModStatus);\n\n\t\t/* Show full path */\n\t\tshowFullPath = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.showFullPath\"));\n\t\tshowFullPath.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.showFullPath\"));\n\t\taddComponent(showFullPath);\n\n\t\t/* Show search bar */\n\t\tshowSearchbar = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.showSearchbar\"));\n\t\tshowSearchbar.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.showSearchbar\"));\n\t\taddComponent(showSearchbar);\n\n\t\t/* Beep on search auto wrap */\n\t\tbeepOnSearchAutoWrap = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.beepOnSearchAutoWrap\"));\n\t\tbeepOnSearchAutoWrap.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"search.beepOnSearchAutoWrap\"));\n\t\taddComponent(beepOnSearchAutoWrap);\n\n\t\t/* Show buffer switcher */\n\t\tshowBufferSwitcher = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.showBufferSwitcher\"));\n\t\tshowBufferSwitcher.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.showBufferSwitcher\"));\n\t\taddComponent(showBufferSwitcher);\n\n\t\t/* Show tip of the day */\n\t\tshowTips = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.showTips\"));\n\t\tshowTips.setSelected(jEdit.getBooleanProperty(\"tip.show\"));\n\t\taddComponent(showTips);\n\n\t\t/* Show splash screen */\n\t\tshowSplash = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.showSplash\"));\n\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\tif(settingsDirectory == null)\n\t\t\tshowSplash.setSelected(true);\n\t\telse\n\t\t\tshowSplash.setSelected(!new File(settingsDirectory,\"nosplash\").exists());\n\t\taddComponent(showSplash);\n\t}\n\n\tprotected void _save()\n\t{\n\t\tjEdit.setProperty(\"history\",history.getText());\n\t\tjEdit.setBooleanProperty(\"saveCaret\",saveCaret.isSelected());\n\t\tjEdit.setBooleanProperty(\"sortBuffers\",sortBuffers.isSelected());\n\t\tjEdit.setBooleanProperty(\"sortByName\",sortByName.isSelected());\n\t\tjEdit.setBooleanProperty(\"sortRecent\",sortRecent.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.checkModStatus\",checkModStatus\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.showFullPath\",showFullPath\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.showSearchbar\",showSearchbar\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"search.beepOnSearchAutoWrap\",beepOnSearchAutoWrap\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.showBufferSwitcher\",\n\t\t\tshowBufferSwitcher.isSelected());\n\t\tjEdit.setBooleanProperty(\"tip.show\",showTips.isSelected());\n\n\t\t// this is handled a little differently from other jEdit settings\n\t\t// as the splash screen flag needs to be known very early in the\n\t\t// startup sequence, before the user properties have been loaded\n\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile file = new File(settingsDirectory,\"nosplash\");\n\t\t\tif(showSplash.isSelected())\n\t\t\t\tfile.delete();\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFileOutputStream out = new FileOutputStream(file);\n\t\t\t\t\tout.write('\\n');\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// private members\n\tprivate JTextField history;\n\tprivate JCheckBox saveCaret;\n\tprivate JCheckBox sortBuffers;\n\tprivate JCheckBox sortByName;\n\tprivate JCheckBox sortRecent;\n\tprivate JCheckBox checkModStatus;\n\tprivate JCheckBox showFullPath;\n\tprivate JCheckBox showSearchbar;\n  private JCheckBox beepOnSearchAutoWrap;\n\tprivate JCheckBox showBufferSwitcher;\n\tprivate JCheckBox showTips;\n\tprivate JCheckBox showSplash;", "functions": [{"function_name": "_init", "code": "\tprotected void _init()\n\t{\n\t\t/* History count */\n\t\thistory = new JTextField(jEdit.getProperty(\"history\"));\n\t\taddComponent(jEdit.getProperty(\"options.general.history\"),history);\n\n\t\t/* Save caret positions */\n\t\tsaveCaret = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.saveCaret\"));\n\t\tsaveCaret.setSelected(jEdit.getBooleanProperty(\"saveCaret\"));\n\t\taddComponent(saveCaret);\n\n\t\t/* Sort buffers */\n\t\tsortBuffers = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.sortBuffers\"));\n\t\tsortBuffers.setSelected(jEdit.getBooleanProperty(\"sortBuffers\"));\n\t\tsortBuffers.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tsortByName.setEnabled(sortBuffers.isSelected());\n\t\t\t}\n\t\t});\n\n\t\taddComponent(sortBuffers);\n\n\t\t/* Sort buffers by names */\n\t\tsortByName = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.sortByName\"));\n\t\tsortByName.setSelected(jEdit.getBooleanProperty(\"sortByName\"));\n\t\tsortByName.setEnabled(sortBuffers.isSelected());\n\t\taddComponent(sortByName);\n\n\t\t/* Sort recent file list */\n\t\tsortRecent = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.sortRecent\"));\n\t\tsortRecent.setSelected(jEdit.getBooleanProperty(\"sortRecent\"));\n\t\taddComponent(sortRecent);\n\n\t\t/* Check mod status on focus */\n\t\tcheckModStatus = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.checkModStatus\"));\n\t\tcheckModStatus.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.checkModStatus\"));\n\t\taddComponent(checkModStatus);\n\n\t\t/* Show full path */\n\t\tshowFullPath = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.showFullPath\"));\n\t\tshowFullPath.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.showFullPath\"));\n\t\taddComponent(showFullPath);\n\n\t\t/* Show search bar */\n\t\tshowSearchbar = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.showSearchbar\"));\n\t\tshowSearchbar.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.showSearchbar\"));\n\t\taddComponent(showSearchbar);\n\n\t\t/* Beep on search auto wrap */\n\t\tbeepOnSearchAutoWrap = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.beepOnSearchAutoWrap\"));\n\t\tbeepOnSearchAutoWrap.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"search.beepOnSearchAutoWrap\"));\n\t\taddComponent(beepOnSearchAutoWrap);\n\n\t\t/* Show buffer switcher */\n\t\tshowBufferSwitcher = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.showBufferSwitcher\"));\n\t\tshowBufferSwitcher.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.showBufferSwitcher\"));\n\t\taddComponent(showBufferSwitcher);\n\n\t\t/* Show tip of the day */\n\t\tshowTips = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.showTips\"));\n\t\tshowTips.setSelected(jEdit.getBooleanProperty(\"tip.show\"));\n\t\taddComponent(showTips);\n\n\t\t/* Show splash screen */\n\t\tshowSplash = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.showSplash\"));\n\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\tif(settingsDirectory == null)\n\t\t\tshowSplash.setSelected(true);\n\t\telse\n\t\t\tshowSplash.setSelected(!new File(settingsDirectory,\"nosplash\").exists());\n\t\taddComponent(showSplash);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [1, 40], [1, 41], [4, 42], [2, 43], [5, 44], [7, 45], [8, 46], [10, 47], [11, 48], [13, 49], [14, 50], [16, 51], [17, 52], [19, 53], [20, 54], [22, 55], [23, 56], [25, 57], [26, 58], [28, 59], [29, 60], [30, 61], [32, 62], [33, 63], [34, 64], [36, 65], [37, 66], [38, 67], [39, 68], [40, 69], [41, 70], [44, 71], [45, 72], [46, 73], [47, 74], [48, 75], [49, 76], [50, 77], [51, 78], [52, 79], [53, 80], [54, 81], [55, 82], [56, 83], [57, 84], [58, 85], [60, 86], [61, 87], [62, 88], [63, 89], [64, 90], [65, 91], [66, 92], [67, 93], [68, 94], [69, 95], [69, 96], [71, 97], [73, 98], [75, 99], [77, 100], [79, 101], [81, 102], [83, 103], [85, 104], [87, 105], [88, 106], [90, 107], [92, 108], [94, 109], [88, 110], [110, 111], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 1], [41, 1], [42, 4], [43, 2], [44, 5], [45, 7], [46, 8], [47, 10], [48, 11], [49, 13], [50, 14], [51, 16], [52, 17], [53, 19], [54, 20], [55, 22], [56, 23], [57, 25], [58, 26], [59, 28], [60, 29], [61, 30], [62, 32], [63, 33], [64, 34], [65, 36], [66, 37], [67, 38], [68, 39], [69, 40], [70, 41], [71, 44], [72, 45], [73, 46], [74, 47], [75, 48], [76, 49], [77, 50], [78, 51], [79, 52], [80, 53], [81, 54], [82, 55], [83, 56], [84, 57], [85, 58], [86, 60], [87, 61], [88, 62], [89, 63], [90, 64], [91, 65], [92, 66], [93, 67], [94, 68], [95, 69], [96, 69], [97, 71], [98, 73], [99, 75], [100, 77], [101, 79], [102, 81], [103, 83], [104, 85], [105, 87], [106, 88], [107, 90], [108, 92], [109, 94], [110, 88], [111, 110], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111]]}, {"function_name": "_save", "code": "\tprotected void _save()\n\t{\n\t\tjEdit.setProperty(\"history\",history.getText());\n\t\tjEdit.setBooleanProperty(\"saveCaret\",saveCaret.isSelected());\n\t\tjEdit.setBooleanProperty(\"sortBuffers\",sortBuffers.isSelected());\n\t\tjEdit.setBooleanProperty(\"sortByName\",sortByName.isSelected());\n\t\tjEdit.setBooleanProperty(\"sortRecent\",sortRecent.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.checkModStatus\",checkModStatus\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.showFullPath\",showFullPath\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.showSearchbar\",showSearchbar\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"search.beepOnSearchAutoWrap\",beepOnSearchAutoWrap\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.showBufferSwitcher\",\n\t\t\tshowBufferSwitcher.isSelected());\n\t\tjEdit.setBooleanProperty(\"tip.show\",showTips.isSelected());\n\n\t\t// this is handled a little differently from other jEdit settings\n\t\t// as the splash screen flag needs to be known very early in the\n\t\t// startup sequence, before the user properties have been loaded\n\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile file = new File(settingsDirectory,\"nosplash\");\n\t\t\tif(showSplash.isSelected())\n\t\t\t\tfile.delete();\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFileOutputStream out = new FileOutputStream(file);\n\t\t\t\t\tout.write('\\n');\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,io);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "CALL", "CALL", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [1, 16], [3, 17], [2, 18], [4, 19], [4, 20], [5, 21], [5, 22], [6, 23], [6, 24], [7, 25], [7, 26], [8, 27], [8, 28], [9, 29], [9, 30], [10, 31], [10, 32], [11, 33], [11, 34], [12, 35], [12, 36], [13, 37], [13, 38], [14, 39], [14, 40], [15, 41], [15, 42], [15, 43], [16, 44], [42, 45], [42, 46], [44, 47], [42, 48], [42, 49], [45, 50], [49, 51], [46, 52], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 1], [17, 3], [18, 2], [19, 4], [20, 4], [21, 5], [22, 5], [23, 6], [24, 6], [25, 7], [26, 7], [27, 8], [28, 8], [29, 9], [30, 9], [31, 10], [32, 10], [33, 11], [34, 11], [35, 12], [36, 12], [37, 13], [38, 13], [39, 14], [40, 14], [41, 15], [42, 15], [43, 15], [44, 16], [45, 42], [46, 42], [47, 44], [48, 42], [49, 42], [50, 45], [51, 49], [52, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "GeneralOptionPane", "code": "\tpublic GeneralOptionPane()\n\t{\n\t\tsuper(\"general\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.4-2084", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/dataformat/XStreamDataFormat.java", "language": "java", "name": "org.apache.camel.model.dataformat.XStreamDataFormat", "code": "@XmlRootElement(name = \"xstream\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class XStreamDataFormat extends DataFormatType {\n    @XmlAttribute(required = false)\n    private Boolean prettyPrint;\n\n    public XStreamDataFormat() {\n        super(\"org.apache.camel.dataformat.xstream.XStreamDataFormat\");\n    }\n\n    public Boolean getPrettyPrint() {\n        return prettyPrint;\n    }\n\n    public void setPrettyPrint(Boolean prettyPrint) {\n        this.prettyPrint = prettyPrint;", "functions": [{"function_name": "getPrettyPrint", "code": "    public Boolean getPrettyPrint() {\n        return prettyPrint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPrettyPrint", "code": "    public void setPrettyPrint(Boolean prettyPrint) {\n        this.prettyPrint = prettyPrint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "XStreamDataFormat", "code": "    public XStreamDataFormat() {\n        super(\"org.apache.camel.dataformat.xstream.XStreamDataFormat\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ivy-2.0-3539", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/conflict/AbstractConflictManager.java", "language": "java", "name": "org.apache.ivy.plugins.conflict.AbstractConflictManager", "code": "public abstract class AbstractConflictManager implements ConflictManager, IvySettingsAware {\n    private String name;\n\n    private IvySettings settings;\n\n    public IvySettings getSettings() {\n        return settings;\n    }\n\n    public void setSettings(IvySettings settings) {\n        this.settings = settings;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public String toString() {\n        return name;\n    }\n    \n    public void handleAllBlacklistedRevisions(\n            DependencyDescriptor dd, Collection foundBlacklisted) {", "functions": [{"function_name": "getSettings", "code": "    public IvySettings getSettings() {\n        return settings;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSettings", "code": "    public void setSettings(IvySettings settings) {\n        this.settings = settings;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "handleAllBlacklistedRevisions", "code": "    public void handleAllBlacklistedRevisions(\n            DependencyDescriptor dd, Collection foundBlacklisted) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.3-4548", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/DockingLayoutManager.java", "language": "java", "name": "org.gjt.sp.jedit.gui.DockingLayoutManager", "code": "public class DockingLayoutManager implements EBComponent\n{\n\n\tprivate static final String NO_SETTINGS_MESSAGE = \"no-settings.message\";\n\tprivate static final String SAVE_LAYOUT_FAILED = \"save-layout-failed.message\";\n\tprivate static final String LOAD_LAYOUT_TITLE = \"load-layout.title\";\n\tprivate static final String LOAD_LAYOUT_MESSAGE = \"load-layout.message\";\n\tprivate static final String SAVE_LAYOUT_TITLE = \"save-layout.title\";\n\tprivate static final String SAVE_LAYOUT_MESSAGE = \"save-layout.message\";\n\tprivate static ActionSet actions;\n\tprivate static DockingLayoutManager instance;\n\tprivate Map<View, String> currentMode;\n\t\n\tprivate DockingLayoutManager()\n\t{\n\t\tcurrentMode = new HashMap<View, String>();\n\t}\n\tprivate static boolean save(View view, String layoutName)\n\t{\n\t\tDockingLayout docking = view.getViewConfig().docking; \n\t\tif (docking != null)\n\t\t{\n\t\t\tboolean ret = docking.saveLayout(layoutName, DockingLayout.NO_VIEW_INDEX);\n\t\t\tif (! ret)\n\t\t\t\treturn false;\n\t\t\taddAction(layoutName);\n\t\t}\n\t\treturn true;\n\t}\n\t\n\tpublic static void saveAs(View view)\n\t{\n\t\tif (jEdit.getSettingsDirectory() == null)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(view, jEdit.getProperty(NO_SETTINGS_MESSAGE));\n\t\t\treturn;\n\t\t}\n\t\tString layoutName = JOptionPane.showInputDialog(view,\n\t\t\tjEdit.getProperty(SAVE_LAYOUT_MESSAGE),\n\t\t\tjEdit.getProperty(SAVE_LAYOUT_TITLE),\n\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\tif (layoutName == null)\n\t\t\treturn;\n\t\tif (! save(view, layoutName))\n\t\t\tJOptionPane.showMessageDialog(view, jEdit.getProperty(SAVE_LAYOUT_FAILED));\n\t}\n\t\n\tprivate static void load(View view, String layoutName)\n\t{\n\t\tDockingLayout docking = View.getDockingFrameworkProvider().createDockingLayout();\n\t\tif (docking.loadLayout(layoutName, DockingLayout.NO_VIEW_INDEX))\n\t\t\tview.getDockableWindowManager().setDockingLayout(docking);\n\t}\n\t\n\tpublic static void load(View view)\n\t{\n\t\tif (jEdit.getSettingsDirectory() == null)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(view, jEdit.getProperty(NO_SETTINGS_MESSAGE));\n\t\t\treturn;\n\t\t}\n\t\tString layoutName = (String) JOptionPane.showInputDialog(view,\n\t\t\tjEdit.getProperty(LOAD_LAYOUT_MESSAGE),\n\t\t\tjEdit.getProperty(LOAD_LAYOUT_TITLE),\n\t\t\tJOptionPane.QUESTION_MESSAGE,\n\t\t\tnull,\n\t\t\tgetSavedLayouts(),\n\t\t\tnull);\n\t\tif (layoutName == null)\n\t\t\treturn;\n\t\tload(view, layoutName);\n\t}\n\n\tprivate static String[] getSavedLayouts()\n\t{\n\t\tDockingLayout docking = View.getDockingFrameworkProvider().createDockingLayout();\n\t\tString[] layouts = null;\n\t\tif (docking != null)\n\t\t\tlayouts = docking.getSavedLayouts();\n\t\tif (layouts == null)\n\t\t\treturn new String[0];\n\t\treturn layouts;\n\t}\n\t\n\tprivate static void addAction(String layoutName)\n\t{\n\t\tif ((actions != null) && (! actions.contains(layoutName)))\n\t\t\tactions.addAction(new LoadPerspectiveAction(layoutName));\n\t}\n\t\n\tpublic static void init()\n\t{\n\t\tcreateActions();\n\t\tinstance = new DockingLayoutManager();\n\t\tEditBus.addToBus(instance);\n\t}\n\t\n\tprivate static void createActions()\n\t{\n\t\tactions = new ActionSet(\"Docking Layouts\");\n\t\tString[] layouts = getSavedLayouts();\n\t\tfor (String layout: layouts)\n\t\t\taddAction(layout);\n\t\tjEdit.addActionSet(actions);\n\t\tactions.initKeyBindings();\n\t}\n\t\n\tpublic static void removeActions()\n\t{\n\t\tjEdit.removeActionSet(actions);\n\t}\n\n\tprivate static class LoadPerspectiveAction extends EditAction\n\t{\n\t\tprivate static final String LOAD_PREFIX = \"load-\";\n\n\t\tpublic LoadPerspectiveAction(String layoutName)\n\t\t{\n\t\t\tsuper(LOAD_PREFIX + layoutName, new String[] { layoutName });\n\t\t\tjEdit.setTemporaryProperty(LOAD_PREFIX + layoutName + \".label\", LOAD_PREFIX + layoutName);\n\t\t}\n\t\t\n\t\t@Override\n\t\tpublic void invoke(View view)\n\t\t{\n\t\t\tDockingLayoutManager.load(view, (String) args[0]);\n\t\t}\n\t}\n\n\tprivate boolean canChangeEditMode(EBMessage message)\n\t{\n\t\tif (message instanceof BufferUpdate)\n\t\t{\n\t\t\tBufferUpdate bu = (BufferUpdate) message;\n\t\t\tObject what = bu.getWhat();\n\t\t\tif ((what == BufferUpdate.CLOSED) ||\n\t\t\t\t(what == BufferUpdate.CREATED) ||\n\t\t\t\t(what == BufferUpdate.PROPERTIES_CHANGED))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse if (message instanceof EditPaneUpdate)\n\t\t{\n\t\t\tEditPaneUpdate ep = (EditPaneUpdate) message;\n\t\t\tObject what = ep.getWhat();\n\t\t\tif ((what == EditPaneUpdate.BUFFER_CHANGED) ||\n\t\t\t\t(what == EditPaneUpdate.CREATED))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tpublic void handleMessage(EBMessage message)\n\t{\n\t\tboolean autoLoadModeLayout = jEdit.getBooleanProperty(\n\t\t\tDockingOptionPane.AUTO_LOAD_MODE_LAYOUT_PROP, false);\n\t\tif (! autoLoadModeLayout)\n\t\t\treturn;\n\t\tif (message instanceof ViewUpdate)\n\t\t{\n\t\t\tViewUpdate vu = (ViewUpdate) message;\n\t\t\tif (vu.getWhat() == ViewUpdate.CLOSED)\n\t\t\t{\n\t\t\t\tView view = jEdit.getActiveView();\n\t\t\t\tString mode = currentMode.get(view);\n\t\t\t\tsaveModeLayout(view, mode);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Check for a change in the edit mode\n\t\tView view = jEdit.getActiveView();\n\t\tif (view == null)\n\t\t\treturn;\n\t\tif (! canChangeEditMode(message))\n\t\t\treturn;\n\t\tString newMode = getCurrentEditMode(view);\n\t\tString mode = currentMode.get(view);\n\t\tboolean sameMode =\n\t\t\t(mode == null && newMode == null) ||\n\t\t\t(mode != null && mode.equals(newMode));\n\t\tif (! sameMode)\n\t\t{\n\t\t\tboolean autoSaveModeLayout = jEdit.getBooleanProperty(\n\t\t\t\tDockingOptionPane.AUTO_SAVE_MODE_LAYOUT_PROP, false);\n\t\t\tif (autoSaveModeLayout)\n\t\t\t\tsaveModeLayout(view, mode);\n\t\t\tcurrentMode.put(view, newMode);\n\t\t\tloadModeLayout(view, newMode);\n\t\t}\n\t}\n\n\tprivate String getCurrentEditMode(View view)\n\t{\n\t\tBuffer buffer = view.getBuffer();\n\t\tif (buffer == null)\n\t\t\treturn null;\n\t\tMode bufferMode = buffer.getMode();\n\t\tif (bufferMode == null)\n\t\t\treturn null;\n\t\treturn bufferMode.getName();\n\t}\n\n\tprivate static final String GLOBAL_MODE = \"DEFAULT\";\n\t\n\tprivate void saveModeLayout(View view, String mode)\n\t{\n\t\tString modeLayout = getModePerspective(mode);\n\t\tif (modeLayout == null)\n\t\t\treturn;\n\t\tsave(view, modeLayout);\n\t}\n\t\n\tprivate void loadModeLayout(View view, String mode)\n\t{\n\t\tString modeLayout = getModePerspective(mode);\n\t\tif (modeLayout == null)\n\t\t\treturn;\n\t\tload(view, modeLayout);\n\t}\n\n\tpublic static void loadCurrentModeLayout(View view)\n\t{\n\t\tif (view == null)\n\t\t\treturn;\n\t\tString mode = instance.getCurrentEditMode(view);\n\t\tinstance.loadModeLayout(view, mode);\n\t}\n\t\n\tpublic static void saveCurrentModeLayout(View view)\n\t{\n\t\tif (view == null)\n\t\t\treturn;\n\t\tString mode = instance.getCurrentEditMode(view);\n\t\tinstance.saveModeLayout(view, mode);\n\t}\n\t\n\tprivate String getModePerspective(String mode)\n\t{\n\t\tif (mode == null)\n\t\t\tmode = GLOBAL_MODE;\n\t\treturn \"mode-\" + mode;", "functions": [{"function_name": "save", "code": "\tprivate static boolean save(View view, String layoutName)\n\t{\n\t\tDockingLayout docking = view.getViewConfig().docking; \n\t\tif (docking != null)\n\t\t{\n\t\t\tboolean ret = docking.saveLayout(layoutName, DockingLayout.NO_VIEW_INDEX);\n\t\t\tif (! ret)\n\t\t\t\treturn false;\n\t\t\taddAction(layoutName);\n\t\t}\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [7, 10], [3, 11], [2, 12], [8, 13], [13, 14], [9, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 7], [11, 3], [12, 2], [13, 8], [14, 13], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "saveAs", "code": "\tpublic static void saveAs(View view)\n\t{\n\t\tif (jEdit.getSettingsDirectory() == null)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(view, jEdit.getProperty(NO_SETTINGS_MESSAGE));\n\t\t\treturn;\n\t\t}\n\t\tString layoutName = JOptionPane.showInputDialog(view,\n\t\t\tjEdit.getProperty(SAVE_LAYOUT_MESSAGE),\n\t\t\tjEdit.getProperty(SAVE_LAYOUT_TITLE),\n\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\tif (layoutName == null)\n\t\t\treturn;\n\t\tif (! save(view, layoutName))\n\t\t\tJOptionPane.showMessageDialog(view, jEdit.getProperty(SAVE_LAYOUT_FAILED));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [1, 10], [8, 11], [3, 12], [4, 13], [9, 14], [9, 15], [10, 16], [12, 17], [12, 18], [4, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 1], [11, 8], [12, 3], [13, 4], [14, 9], [15, 9], [16, 10], [17, 12], [18, 12], [19, 4], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "load", "code": "\tprivate static void load(View view, String layoutName)\n\t{\n\t\tDockingLayout docking = View.getDockingFrameworkProvider().createDockingLayout();\n\t\tif (docking.loadLayout(layoutName, DockingLayout.NO_VIEW_INDEX))\n\t\t\tview.getDockableWindowManager().setDockingLayout(docking);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "load", "code": "\tpublic static void load(View view)\n\t{\n\t\tif (jEdit.getSettingsDirectory() == null)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(view, jEdit.getProperty(NO_SETTINGS_MESSAGE));\n\t\t\treturn;\n\t\t}\n\t\tString layoutName = (String) JOptionPane.showInputDialog(view,\n\t\t\tjEdit.getProperty(LOAD_LAYOUT_MESSAGE),\n\t\t\tjEdit.getProperty(LOAD_LAYOUT_TITLE),\n\t\t\tJOptionPane.QUESTION_MESSAGE,\n\t\t\tnull,\n\t\t\tgetSavedLayouts(),\n\t\t\tnull);\n\t\tif (layoutName == null)\n\t\t\treturn;\n\t\tload(view, layoutName);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [7, 9], [3, 10], [8, 11], [8, 12], [2, 13], [3, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 7], [10, 3], [11, 8], [12, 8], [13, 2], [14, 3], [15, 13], [16, 13], [17, 13], [18, 13], [19, 13], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getSavedLayouts", "code": "\tprivate static String[] getSavedLayouts()\n\t{\n\t\tDockingLayout docking = View.getDockingFrameworkProvider().createDockingLayout();\n\t\tString[] layouts = null;\n\t\tif (docking != null)\n\t\t\tlayouts = docking.getSavedLayouts();\n\t\tif (layouts == null)\n\t\t\treturn new String[0];\n\t\treturn layouts;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [7, 9], [3, 10], [8, 11], [4, 12], [5, 13], [6, 14], [10, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 7], [10, 3], [11, 8], [12, 4], [13, 5], [14, 6], [15, 10], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "addAction", "code": "\tprivate static void addAction(String layoutName)\n\t{\n\t\tif ((actions != null) && (! actions.contains(layoutName)))\n\t\t\tactions.addAction(new LoadPerspectiveAction(layoutName));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "init", "code": "\tpublic static void init()\n\t{\n\t\tcreateActions();\n\t\tinstance = new DockingLayoutManager();\n\t\tEditBus.addToBus(instance);", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createActions", "code": "\tprivate static void createActions()\n\t{\n\t\tactions = new ActionSet(\"Docking Layouts\");\n\t\tString[] layouts = getSavedLayouts();\n\t\tfor (String layout: layouts)\n\t\t\taddAction(layout);\n\t\tjEdit.addActionSet(actions);\n\t\tactions.initKeyBindings();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "removeActions", "code": "\tpublic static void removeActions()\n\t{\n\t\tjEdit.removeActionSet(actions);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "canChangeEditMode", "code": "\tprivate boolean canChangeEditMode(EBMessage message)\n\t{\n\t\tif (message instanceof BufferUpdate)\n\t\t{\n\t\t\tBufferUpdate bu = (BufferUpdate) message;\n\t\t\tObject what = bu.getWhat();\n\t\t\tif ((what == BufferUpdate.CLOSED) ||\n\t\t\t\t(what == BufferUpdate.CREATED) ||\n\t\t\t\t(what == BufferUpdate.PROPERTIES_CHANGED))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse if (message instanceof EditPaneUpdate)\n\t\t{\n\t\t\tEditPaneUpdate ep = (EditPaneUpdate) message;\n\t\t\tObject what = ep.getWhat();\n\t\t\tif ((what == EditPaneUpdate.BUFFER_CHANGED) ||\n\t\t\t\t(what == EditPaneUpdate.CREATED))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [2, 8], [2, 9], [2, 10], [5, 11], [5, 12], [5, 13], [8, 14], [11, 15], [8, 16], [14, 17], [14, 18], [9, 19], [11, 20], [15, 21], [15, 22], [12, 23], [16, 24], [18, 25], [18, 26], [20, 27], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 2], [9, 2], [10, 2], [11, 5], [12, 5], [13, 5], [14, 8], [15, 11], [16, 8], [17, 14], [18, 14], [19, 9], [20, 11], [21, 15], [22, 15], [23, 12], [24, 16], [25, 18], [26, 18], [27, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "handleMessage", "code": "\tpublic void handleMessage(EBMessage message)\n\t{\n\t\tboolean autoLoadModeLayout = jEdit.getBooleanProperty(\n\t\t\tDockingOptionPane.AUTO_LOAD_MODE_LAYOUT_PROP, false);\n\t\tif (! autoLoadModeLayout)\n\t\t\treturn;\n\t\tif (message instanceof ViewUpdate)\n\t\t{\n\t\t\tViewUpdate vu = (ViewUpdate) message;\n\t\t\tif (vu.getWhat() == ViewUpdate.CLOSED)\n\t\t\t{\n\t\t\t\tView view = jEdit.getActiveView();\n\t\t\t\tString mode = currentMode.get(view);\n\t\t\t\tsaveModeLayout(view, mode);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Check for a change in the edit mode\n\t\tView view = jEdit.getActiveView();\n\t\tif (view == null)\n\t\t\treturn;\n\t\tif (! canChangeEditMode(message))\n\t\t\treturn;\n\t\tString newMode = getCurrentEditMode(view);\n\t\tString mode = currentMode.get(view);\n\t\tboolean sameMode =\n\t\t\t(mode == null && newMode == null) ||\n\t\t\t(mode != null && mode.equals(newMode));\n\t\tif (! sameMode)\n\t\t{\n\t\t\tboolean autoSaveModeLayout = jEdit.getBooleanProperty(\n\t\t\t\tDockingOptionPane.AUTO_SAVE_MODE_LAYOUT_PROP, false);\n\t\t\tif (autoSaveModeLayout)\n\t\t\t\tsaveModeLayout(view, mode);\n\t\t\tcurrentMode.put(view, newMode);\n\t\t\tloadModeLayout(view, newMode);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "RETURN", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [5, 12], [5, 13], [6, 14], [6, 15], [8, 16], [9, 17], [1, 18], [1, 19], [2, 20], [3, 21], [4, 22], [15, 23], [7, 24], [8, 25], [8, 26], [10, 27], [1, 28], [1, 29], [20, 30], [20, 31], [25, 32], [27, 33], [18, 34], [19, 35], [30, 36], [30, 37], [31, 38], [31, 39], [25, 40], [25, 41], [25, 42], [32, 43], [35, 44], [37, 45], [38, 46], [39, 47], [25, 48], [41, 49], [42, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 5], [13, 5], [14, 6], [15, 6], [16, 8], [17, 9], [18, 1], [19, 1], [20, 2], [21, 3], [22, 4], [23, 15], [24, 7], [25, 8], [26, 8], [27, 10], [28, 1], [29, 1], [30, 20], [31, 20], [32, 25], [33, 27], [34, 18], [35, 19], [36, 30], [37, 30], [38, 31], [39, 31], [40, 25], [41, 25], [42, 25], [43, 32], [44, 35], [45, 37], [46, 38], [47, 39], [48, 25], [49, 41], [50, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "getCurrentEditMode", "code": "\tprivate String getCurrentEditMode(View view)\n\t{\n\t\tBuffer buffer = view.getBuffer();\n\t\tif (buffer == null)\n\t\t\treturn null;\n\t\tMode bufferMode = buffer.getMode();\n\t\tif (bufferMode == null)\n\t\t\treturn null;\n\t\treturn bufferMode.getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [4, 10], [4, 11], [8, 12], [9, 13], [3, 14], [10, 15], [11, 16], [5, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 4], [11, 4], [12, 8], [13, 9], [14, 3], [15, 10], [16, 11], [17, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "saveModeLayout", "code": "\tprivate void saveModeLayout(View view, String mode)\n\t{\n\t\tString modeLayout = getModePerspective(mode);\n\t\tif (modeLayout == null)\n\t\t\treturn;\n\t\tsave(view, modeLayout);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [7, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 7], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "loadModeLayout", "code": "\tprivate void loadModeLayout(View view, String mode)\n\t{\n\t\tString modeLayout = getModePerspective(mode);\n\t\tif (modeLayout == null)\n\t\t\treturn;\n\t\tload(view, modeLayout);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [7, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 7], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "loadCurrentModeLayout", "code": "\tpublic static void loadCurrentModeLayout(View view)\n\t{\n\t\tif (view == null)\n\t\t\treturn;\n\t\tString mode = instance.getCurrentEditMode(view);\n\t\tinstance.loadModeLayout(view, mode);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "saveCurrentModeLayout", "code": "\tpublic static void saveCurrentModeLayout(View view)\n\t{\n\t\tif (view == null)\n\t\t\treturn;\n\t\tString mode = instance.getCurrentEditMode(view);\n\t\tinstance.saveModeLayout(view, mode);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getModePerspective", "code": "\tprivate String getModePerspective(String mode)\n\t{\n\t\tif (mode == null)\n\t\t\tmode = GLOBAL_MODE;\n\t\treturn \"mode-\" + mode;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "DockingLayoutManager", "code": "\tprivate DockingLayoutManager()\n\t{\n\t\tcurrentMode = new HashMap<View, String>();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.0-1387", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/file/FileComponent.java", "language": "java", "name": "org.apache.camel.component.file.FileComponent", "code": "public class FileComponent extends DefaultComponent<FileExchange> {\n    public FileComponent() {\n    }\n\n    public FileComponent(CamelContext context) {\n        super(context);\n    }\n\n    protected Endpoint<FileExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        File file = new File(remaining);\n        FileEndpoint result = new FileEndpoint(file, remaining, this);\n        IntrospectionSupport.setProperties(result, parameters);\n        return result;", "functions": [{"function_name": "createEndpoint", "code": "    protected Endpoint<FileExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        File file = new File(remaining);\n        FileEndpoint result = new FileEndpoint(file, remaining, this);\n        IntrospectionSupport.setProperties(result, parameters);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "FileComponent", "code": "    public FileComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FileComponent", "code": "    public FileComponent(CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.5-6847", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/WithParam.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.WithParam", "code": "final class WithParam extends Instruction {\n\n    private QName _name;\n    private Expression _select;\n\n    /**\n     * Displays the contents of this element\n     */\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"with-param \" + _name);\n\tif (_select != null) {\n\t    indent(indent + IndentIncrement);\n\t    Util.println(\"select \" + _select.toString());\n\t}\n\tdisplayContents(indent + IndentIncrement);\n    }\n\n    /**\n     * The contents of a <xsl:with-param> elements are either in the element's\n     * 'select' attribute (this has precedence) or in the element body.\n     */\n    public void parseContents(Parser parser) {\n\tfinal String name = getAttribute(\"name\");\n\tif (name.length() > 0) {\n\t    _name = parser.getQName(name);\n\t}\n        else {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\n        }\n\t\n\tfinal String select = getAttribute(\"select\");\n\tif (select.length() > 0) {\n\t    _select = parser.parseExpression(this, \"select\", null);\n\t}\n\t\n\tparseChildren(parser);\n    }\n\n    /**\n     * Type-check either the select attribute or the element body, depending\n     * on which is in use.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_select != null) {\n\t    final Type tselect = _select.typeCheck(stable);\n\t    if (tselect instanceof ReferenceType == false) {\n\t\t_select = new CastExpr(_select, Type.Reference);\n\t    }\n\t}\n\telse {\n\t    typeCheckContents(stable);\n\t}\n\treturn Type.Void;\n    }\n\n    /**\n     * Compile the value of the parameter, which is either in an expression in\n     * a 'select' attribute, or in the with-param element's body\n     */\n    public void translateValue(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tif (_select != null) {\n\t    _select.translate(classGen, methodGen);\n\t    _select.startResetIterator(classGen, methodGen);\n\t}\n\telse if (hasContents()) {\n\t    compileResultTree(classGen, methodGen);\n\t}\n\telse {\n\t    final ConstantPoolGen cpg = classGen.getConstantPool();\n\t    final InstructionList il = methodGen.getInstructionList();\n\t    il.append(new PUSH(cpg, Constants.EMPTYSTRING));\n\t}\n    }\n\n    /**\n     * This code generates a sequence of bytecodes that call the\n     * addParameter() method in AbstractTranslet. The method call will add\n     * (or update) the parameter frame with the new parameter value.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tString name = Util.escape(_name.getLocalPart());\n\n\til.append(classGen.loadTranslet());\n\n\ttranslateValue(classGen, methodGen);\n\til.append(new PUSH(cpg, false));\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t     ADD_PARAMETER,\n\t\t\t\t\t\t     ADD_PARAMETER_SIG)));", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"with-param \" + _name);\n\tif (_select != null) {\n\t    indent(indent + IndentIncrement);\n\t    Util.println(\"select \" + _select.toString());\n\t}\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [3, 7], [4, 8], [5, 9], [1, 10], [1, 11], [9, 12], [10, 13], [11, 14], [13, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 3], [8, 4], [9, 5], [10, 1], [11, 1], [12, 9], [13, 10], [14, 11], [15, 13], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tfinal String name = getAttribute(\"name\");\n\tif (name.length() > 0) {\n\t    _name = parser.getQName(name);\n\t}\n        else {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\n        }\n\t\n\tfinal String select = getAttribute(\"select\");\n\tif (select.length() > 0) {\n\t    _select = parser.parseExpression(this, \"select\", null);\n\t}\n\t\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [7, 9], [7, 10], [2, 11], [8, 12], [8, 13], [4, 14], [1, 15], [11, 16], [3, 17], [3, 18], [14, 19], [15, 20], [17, 21], [18, 22], [20, 23], [20, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 7], [10, 7], [11, 2], [12, 8], [13, 8], [14, 4], [15, 1], [16, 11], [17, 3], [18, 3], [19, 14], [20, 15], [21, 17], [22, 18], [23, 20], [24, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_select != null) {\n\t    final Type tselect = _select.typeCheck(stable);\n\t    if (tselect instanceof ReferenceType == false) {\n\t\t_select = new CastExpr(_select, Type.Reference);\n\t    }\n\t}\n\telse {\n\t    typeCheckContents(stable);\n\t}\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [2, 8], [5, 9], [9, 10], [9, 11], [6, 12], [5, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 2], [9, 5], [10, 9], [11, 9], [12, 6], [13, 5], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "translateValue", "code": "    public void translateValue(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tif (_select != null) {\n\t    _select.translate(classGen, methodGen);\n\t    _select.startResetIterator(classGen, methodGen);\n\t}\n\telse if (hasContents()) {\n\t    compileResultTree(classGen, methodGen);\n\t}\n\telse {\n\t    final ConstantPoolGen cpg = classGen.getConstantPool();\n\t    final InstructionList il = methodGen.getInstructionList();\n\t    il.append(new PUSH(cpg, Constants.EMPTYSTRING));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [4, 8], [4, 9], [1, 10], [1, 11], [4, 12], [4, 13], [12, 14], [8, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 4], [9, 4], [10, 1], [11, 1], [12, 4], [13, 4], [14, 12], [15, 8], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tString name = Util.escape(_name.getLocalPart());\n\n\til.append(classGen.loadTranslet());\n\n\ttranslateValue(classGen, methodGen);\n\til.append(new PUSH(cpg, false));\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t     ADD_PARAMETER,\n\t\t\t\t\t\t     ADD_PARAMETER_SIG)));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [9, 12], [1, 13], [2, 14], [3, 15], [10, 16], [11, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 9], [13, 1], [14, 2], [15, 3], [16, 10], [17, 11], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}], "label": 1}
{"sample_id": "poi-2.5-5623", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/ddf/EscherBoolProperty.java", "language": "java", "name": "org.apache.poi.ddf.EscherBoolProperty", "code": "public class EscherBoolProperty\n        extends EscherSimpleProperty\n{\n    /**\n     * Create an instance of an escher boolean property.\n     *\n     * @param propertyNumber The property number\n     * @param value      The 32 bit value of this bool property\n     */\n    public EscherBoolProperty( short propertyNumber, int value )\n    {\n        super( propertyNumber, false, false, value );\n    }\n\n    /**\n     * Whether this boolean property is true\n     */\n    public boolean isTrue()\n    {\n        return propertyValue != 0;\n    }\n\n    /**\n     * Whether this boolean property is false\n     */\n    public boolean isFalse()\n    {\n        return propertyValue == 0;", "functions": [{"function_name": "isTrue", "code": "    public boolean isTrue()\n    {\n        return propertyValue != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isFalse", "code": "    public boolean isFalse()\n    {\n        return propertyValue == 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "EscherBoolProperty", "code": "    public EscherBoolProperty( short propertyNumber, int value )\n    {\n        super( propertyNumber, false, false, value );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.7-1043", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/input/MultipleChoiceInputRequest.java", "language": "java", "name": "org.apache.tools.ant.input.MultipleChoiceInputRequest", "code": "public class MultipleChoiceInputRequest extends InputRequest {\n    private Vector choices = new Vector();\n\n    /**\n     * @param prompt The prompt to show to the user.  Must not be null.\n     * @param choices holds all input values that are allowed.\n     *                Must not be null.\n     */\n    public MultipleChoiceInputRequest(String prompt, Vector choices) {\n        super(prompt);\n        if (choices == null) {\n            throw new IllegalArgumentException(\"choices must not be null\");\n        }\n        this.choices = choices;\n    }\n\n    /**\n     * @return The possible values.\n     */\n    public Vector getChoices() {\n        return choices;\n    }\n\n    /**\n     * @return true if the input is one of the allowed values.\n     */\n    public boolean isInputValid() {\n        return choices.contains(getInput()) || (\"\".equals(getInput()) && getDefaultValue() != null);", "functions": [{"function_name": "getChoices", "code": "    public Vector getChoices() {\n        return choices;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isInputValid", "code": "    public boolean isInputValid() {\n        return choices.contains(getInput()) || (\"\".equals(getInput()) && getDefaultValue() != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [5, 8], [5, 9], [6, 10], [10, 11], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 5], [9, 5], [10, 6], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "MultipleChoiceInputRequest", "code": "    public MultipleChoiceInputRequest(String prompt, Vector choices) {\n        super(prompt);\n        if (choices == null) {\n            throw new IllegalArgumentException(\"choices must not be null\");\n        }\n        this.choices = choices;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "xalan-2.5-7286", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/operations/UnaryOperation.java", "language": "java", "name": "org.apache.xpath.operations.UnaryOperation", "code": "public abstract class UnaryOperation extends Expression implements ExpressionOwner\n{\n\n  /** The operand for the operation.\n   *  @serial */\n  protected Expression m_right;\n  \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_right.fixupVariables(vars, globalsSize);\n  }\n  \n  /**\n   * Tell if this expression or it's subexpressions can traverse outside\n   * the current subtree.\n   *\n   * @return true if traversal outside the context node's subtree can occur.\n   */\n  public boolean canTraverseOutsideSubtree()\n  {\n\n    if (null != m_right && m_right.canTraverseOutsideSubtree())\n      return true;\n\n    return false;\n  }\n\n  /**\n   * Set the expression operand for the operation.\n   *\n   *\n   * @param r The expression operand to which the unary operation will be \n   *          applied.\n   */\n  public void setRight(Expression r)\n  {\n    m_right = r;\n    r.exprSetParent(this);\n  }\n\n  /**\n   * Execute the operand and apply the unary operation to the result.\n   *\n   *\n   * @param xctxt The runtime execution context.\n   *\n   * @return An XObject that represents the result of applying the unary \n   *         operation to the evaluated operand.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    return operate(m_right.execute(xctxt));\n  }\n\n  /**\n   * Apply the operation to two operands, and return the result.\n   *\n   *\n   * @param right non-null reference to the evaluated right operand.\n   *\n   * @return non-null reference to the XObject that represents the result of the operation.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public abstract XObject operate(XObject right)\n    throws javax.xml.transform.TransformerException;\n\n  /** @return the operand of unary operation, as an Expression.\n   */\n  public Expression getOperand(){\n    return m_right;\n  }\n  \n  /**\n   * @see XPathVisitable#callVisitors(XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tif(visitor.visitUnaryOperation(owner, this))\n  \t{\n  \t\tm_right.callVisitors(this, visitor);\n  \t}\n  }\n\n\n  /**\n   * @see ExpressionOwner#getExpression()\n   */\n  public Expression getExpression()\n  {\n    return m_right;\n  }\n\n  /**\n   * @see ExpressionOwner#setExpression(Expression)\n   */\n  public void setExpression(Expression exp)\n  {\n  \texp.exprSetParent(this);\n  \tm_right = exp;\n  }\n  \n  /**\n   * @see Expression#deepEquals(Expression)\n   */\n  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \tif(!m_right.deepEquals(((UnaryOperation)expr).m_right))\n  \t\treturn false;\n  \t\t\n  \treturn true;", "functions": [{"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_right.fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "canTraverseOutsideSubtree", "code": "  public boolean canTraverseOutsideSubtree()\n  {\n\n    if (null != m_right && m_right.canTraverseOutsideSubtree())\n      return true;\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setRight", "code": "  public void setRight(Expression r)\n  {\n    m_right = r;\n    r.exprSetParent(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    return operate(m_right.execute(xctxt));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "operate", "code": "  public abstract XObject operate(XObject right)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOperand", "code": "  public Expression getOperand(){\n    return m_right;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tif(visitor.visitUnaryOperation(owner, this))\n  \t{\n  \t\tm_right.callVisitors(this, visitor);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getExpression", "code": "  public Expression getExpression()\n  {\n    return m_right;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExpression", "code": "  public void setExpression(Expression exp)\n  {\n  \texp.exprSetParent(this);\n  \tm_right = exp;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "deepEquals", "code": "  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \tif(!m_right.deepEquals(((UnaryOperation)expr).m_right))\n  \t\treturn false;\n  \t\t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [6, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 6], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "xalan-2.7-8126", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/SuballocatedIntVector.java", "language": "java", "name": "org.apache.xml.utils.SuballocatedIntVector", "code": "public class SuballocatedIntVector\n{\n  /** Size of blocks to allocate          */\n  protected int m_blocksize;\n\n  /** Bitwise addressing (much faster than div/remainder */\n  protected int m_SHIFT, m_MASK;\n  \n  /** The default number of blocks to (over)allocate by */\n  protected static final int NUMBLOCKS_DEFAULT = 32;\n  \n  /** The number of blocks to (over)allocate by */\n  protected int m_numblocks = NUMBLOCKS_DEFAULT;\n  \n  /** Array of arrays of ints          */\n  protected int m_map[][];\n\n  /** Number of ints in array          */\n  protected int m_firstFree = 0;\n\n  /** \"Shortcut\" handle to m_map[0]. Surprisingly helpful for short vectors. */\n  protected int m_map0[];\n\n  /** \"Shortcut\" handle to most recently added row of m_map.\n   * Very helpful during construction.\n   * @xsl.usage internal\n   */\n  protected int m_buildCache[];\n  protected int m_buildCacheStartIndex;\n\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is currently 2K, which may be overkill for\n   * small lists and undershootng for large ones.\n   */\n  public SuballocatedIntVector()\n  {\n    this(2048);\n  }\n\n  /**\n   * Construct a IntVector, using the given block size and number\n   * of blocks. For efficiency, we will round the requested size \n   * off to a power of two.\n   *\n   * @param blocksize Size of block to allocate\n   * @param numblocks Number of blocks to allocate\n   * */\n  public SuballocatedIntVector(int blocksize, int numblocks)\n  {\n    for(m_SHIFT=0;0!=(blocksize>>>=1);++m_SHIFT)\n      ;\n    m_blocksize=1<<m_SHIFT;\n    m_MASK=m_blocksize-1;\n    m_numblocks = numblocks;\n    \t\n    m_map0=new int[m_blocksize];\n    m_map = new int[numblocks][];\n    m_map[0]=m_map0;\n    m_buildCache = m_map0;\n    m_buildCacheStartIndex = 0;\n  }\n\t\n  /** Construct a IntVector, using the given block size and\n   * the default number of blocks (32).\n   *\n   * @param blocksize Size of block to allocate\n   * */\n  public SuballocatedIntVector(int blocksize)\n  {\n    this(blocksize, NUMBLOCKS_DEFAULT);\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return length of the list\n   */\n  public int size()\n  {\n    return m_firstFree;\n  }\n  \n  /**\n   * Set the length of the list. This will only work to truncate the list, and\n   * even then it has not been heavily tested and may not be trustworthy.\n   *\n   * @return length of the list\n   */\n  public void setSize(int sz)\n  {\n      m_firstFree = sz;\n  }\n\n  /**\n   * Append a int onto the vector.\n   *\n   * @param value Int to add to the list \n   */\n  public  void addElement(int value)\n  {\n    int indexRelativeToCache = m_firstFree - m_buildCacheStartIndex;\n\n    if(indexRelativeToCache >= 0 && indexRelativeToCache < m_blocksize) {\n      m_buildCache[indexRelativeToCache]=value;\n      ++m_firstFree;\n    } else {\n\n      int index=m_firstFree>>>m_SHIFT;\n      int offset=m_firstFree&m_MASK;\n\n      if(index>=m_map.length)\n      {\n\tint newsize=index+m_numblocks;\n\tint[][] newMap=new int[newsize][];\n\tSystem.arraycopy(m_map, 0, newMap, 0, m_map.length);\n\tm_map=newMap;\n      }\n      int[] block=m_map[index];\n      if(null==block)\n\tblock=m_map[index]=new int[m_blocksize];\n      block[offset]=value;\n\n      m_buildCache = block;\n      m_buildCacheStartIndex = m_firstFree-offset;\n\n      ++m_firstFree;\n    }\n  }\n\n  /**\n   * Append several int values onto the vector.\n   *\n   * @param value Int to add to the list \n   */\n  private  void addElements(int value, int numberOfElements)\n  {\n    if(m_firstFree+numberOfElements<m_blocksize)\n      for (int i = 0; i < numberOfElements; i++) \n      {\n        m_map0[m_firstFree++]=value;\n      }\n    else\n    {\n      int index=m_firstFree>>>m_SHIFT;\n      int offset=m_firstFree&m_MASK;\n      m_firstFree+=numberOfElements;\n      while( numberOfElements>0)\n      {\n        if(index>=m_map.length)\n        {\n          int newsize=index+m_numblocks;\n          int[][] newMap=new int[newsize][];\n          System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n          m_map=newMap;\n        }\n        int[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new int[m_blocksize];\n        int copied=(m_blocksize-offset < numberOfElements)\n          ? m_blocksize-offset : numberOfElements;\n        numberOfElements-=copied;\n        while(copied-- > 0)\n          block[offset++]=value;\n\n        ++index;offset=0;\n      }\n    }\n  }\n  \n  /**\n   * Append several slots onto the vector, but do not set the values.\n   * Note: \"Not Set\" means the value is unspecified.\n   *\n   * @param numberOfElements Int to add to the list \n   */\n  private  void addElements(int numberOfElements)\n  {\n    int newlen=m_firstFree+numberOfElements;\n    if(newlen>m_blocksize)\n    {\n      int index=m_firstFree>>>m_SHIFT;\n      int newindex=(m_firstFree+numberOfElements)>>>m_SHIFT;\n      for(int i=index+1;i<=newindex;++i)\n        m_map[i]=new int[m_blocksize];\n    }\n    m_firstFree=newlen;\n  }\n  \n  /**\n   * Inserts the specified node in this vector at the specified index.\n   * Each component in this vector with an index greater or equal to\n   * the specified index is shifted upward to have an index one greater\n   * than the value it had previously.\n   *\n   * Insertion may be an EXPENSIVE operation!\n   *\n   * @param value Int to insert\n   * @param at Index of where to insert \n   */\n  private  void insertElementAt(int value, int at)\n  {\n    if(at==m_firstFree)\n      addElement(value);\n    else if (at>m_firstFree)\n    {\n      int index=at>>>m_SHIFT;\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        int[][] newMap=new int[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      int[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new int[m_blocksize];\n      int offset=at&m_MASK;\n          block[offset]=value;\n          m_firstFree=offset+1;\n        }\n    else\n    {\n      int index=at>>>m_SHIFT;\n      ++m_firstFree;\n      int offset=at&m_MASK;\n      int push;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        int[] block=m_map[index];\n        if(null==block)\n        {\n          push=0;\n          block=m_map[index]=new int[m_blocksize];\n        }\n        else\n        {\n          push=block[m_blocksize-1];\n          System.arraycopy(block, offset , block, offset+1, copylen);\n        }\n        block[offset]=value;\n        value=push;\n        offset=0;\n        ++index;\n      }\n    }\n  }\n\n  /**\n   * Wipe it out. Currently defined as equivalent to setSize(0).\n   */\n  public void removeAllElements()\n  {\n    m_firstFree = 0;\n    m_buildCache = m_map0;\n    m_buildCacheStartIndex = 0;\n  }\n\n  /**\n   * Removes the first occurrence of the argument from this vector.\n   * If the object is found in this vector, each component in the vector\n   * with an index greater or equal to the object's index is shifted\n   * downward to have an index one smaller than the value it had\n   * previously.\n   *\n   * @param s Int to remove from array\n   *\n   * @return True if the int was removed, false if it was not found\n   */\n  private  boolean removeElement(int s)\n  {\n    int at=indexOf(s,0);\n    if(at<0)\n      return false;\n    removeElementAt(at);\n    return true;\n  }\n\n  /**\n   * Deletes the component at the specified index. Each component in\n   * this vector with an index greater or equal to the specified\n   * index is shifted downward to have an index one smaller than\n   * the value it had previously.\n   *\n   * @param i index of where to remove and int\n   */\n  private  void removeElementAt(int at)\n  {\n    if(at<m_firstFree)\n    {\n      int index=at>>>m_SHIFT;\n      int maxindex=m_firstFree>>>m_SHIFT;\n      int offset=at&m_MASK;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        int[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new int[m_blocksize];\n        else\n          System.arraycopy(block, offset+1, block, offset, copylen);\n        if(index<maxindex)\n        {\n          int[] next=m_map[index+1];\n          if(next!=null)\n            block[m_blocksize-1]=(next!=null) ? next[0] : 0;\n        }\n        else\n          block[m_blocksize-1]=0;\n        offset=0;\n        ++index;\n      }\n    }\n    --m_firstFree;\n  }\n\n  /**\n   * Sets the component at the specified index of this vector to be the\n   * specified object. The previous component at that position is discarded.\n   *\n   * The index must be a value greater than or equal to 0 and less\n   * than the current size of the vector.\n   *\n   * @param value object to set\n   * @param at    Index of where to set the object\n   */\n  public void setElementAt(int value, int at)\n  {\n    if(at<m_blocksize)\n      m_map0[at]=value;\n    else\n    {\n      int index=at>>>m_SHIFT;\n      int offset=at&m_MASK;\n        \n      if(index>=m_map.length)\n      {\n\tint newsize=index+m_numblocks;\n\tint[][] newMap=new int[newsize][];\n\tSystem.arraycopy(m_map, 0, newMap, 0, m_map.length);\n\tm_map=newMap;\n      }\n\n      int[] block=m_map[index];\n      if(null==block)\n\tblock=m_map[index]=new int[m_blocksize];\n      block[offset]=value;\n    }\n\n    if(at>=m_firstFree)\n      m_firstFree=at+1;\n  }\n  \n\n  /**\n   * Get the nth element. This is often at the innermost loop of an\n   * application, so performance is critical.\n   *\n   * @param i index of value to get\n   *\n   * @return value at given index. If that value wasn't previously set,\n   * the result is undefined for performance reasons. It may throw an\n   * exception (see below), may return zero, or (if setSize has previously\n   * been used) may return stale data.\n   *\n   * @throws ArrayIndexOutOfBoundsException if the index was _clearly_\n   * unreasonable (negative, or past the highest block).\n   *\n   * @throws NullPointerException if the index points to a block that could\n   * have existed (based on the highest index used) but has never had anything\n   * set into it.\n   * %REVIEW% Could add a catch to create the block in that case, or return 0.\n   * Try/Catch is _supposed_ to be nearly free when not thrown to. Do we\n   * believe that? Should we have a separate safeElementAt?\n   */\n  public int elementAt(int i)\n  {\n    if(i<m_blocksize)\n      return m_map0[i];\n\n    return m_map[i>>>m_SHIFT][i&m_MASK];\n  }\n\n  /**\n   * Tell if the table contains the given node.\n   *\n   * @param s object to look for\n   *\n   * @return true if the object is in the list\n   */\n  private  boolean contains(int s)\n  {\n    return (indexOf(s,0) >= 0);\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem object to look for\n   * @param index Index of where to begin search\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(int elem, int index)\n  {\n        if(index>=m_firstFree)\n                return -1;\n          \n    int bindex=index>>>m_SHIFT;\n    int boffset=index&m_MASK;\n    int maxindex=m_firstFree>>>m_SHIFT;\n    int[] block;\n    \n    for(;bindex<maxindex;++bindex)\n    {\n      block=m_map[bindex];\n      if(block!=null)\n        for(int offset=boffset;offset<m_blocksize;++offset)\n          if(block[offset]==elem)\n            return offset+bindex*m_blocksize;\n    }\n    int maxoffset=m_firstFree&m_MASK;\n    block=m_map[maxindex];\n    for(int offset=boffset;offset<maxoffset;++offset)\n      if(block[offset]==elem)\n        return offset+maxindex*m_blocksize;\n\n    return -1;    \n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem object to look for\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(int elem)\n  {\n    return indexOf(elem,0);\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem Object to look for\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  private  int lastIndexOf(int elem)\n  {\n    int boffset=m_firstFree&m_MASK;\n    for(int index=m_firstFree>>>m_SHIFT;\n        index>=0;\n        --index)\n    {\n      int[] block=m_map[index];\n      if(block!=null)\n        for(int offset=boffset; offset>=0; --offset)\n          if(block[offset]==elem)\n            return offset+index*m_blocksize;\n    }\n    return -1;\n  }\n  \n  /**\n   * Return the internal m_map0 array\n   * @return the m_map0 array\n   */\n  public final int[] getMap0()\n  {\n    return m_map0;\n  }\n  \n  /**\n   * Return the m_map double array\n   * @return the internal map of array of arrays \n   */\n  public final int[][] getMap()\n  {\n    return m_map;", "functions": [{"function_name": "size", "code": "  public int size()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSize", "code": "  public void setSize(int sz)\n  {\n      m_firstFree = sz;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addElement", "code": "  public  void addElement(int value)\n  {\n    int indexRelativeToCache = m_firstFree - m_buildCacheStartIndex;\n\n    if(indexRelativeToCache >= 0 && indexRelativeToCache < m_blocksize) {\n      m_buildCache[indexRelativeToCache]=value;\n      ++m_firstFree;\n    } else {\n\n      int index=m_firstFree>>>m_SHIFT;\n      int offset=m_firstFree&m_MASK;\n\n      if(index>=m_map.length)\n      {\n\tint newsize=index+m_numblocks;\n\tint[][] newMap=new int[newsize][];\n\tSystem.arraycopy(m_map, 0, newMap, 0, m_map.length);\n\tm_map=newMap;\n      }\n      int[] block=m_map[index];\n      if(null==block)\n\tblock=m_map[index]=new int[m_blocksize];\n      block[offset]=value;\n\n      m_buildCache = block;\n      m_buildCacheStartIndex = m_firstFree-offset;\n\n      ++m_firstFree;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [4, 11], [2, 12], [1, 13], [1, 14], [1, 15], [5, 16], [7, 17], [1, 18], [11, 19], [13, 20], [5, 21], [16, 22], [7, 23], [7, 24], [8, 25], [9, 26], [21, 27], [7, 28], [7, 29], [29, 30], [29, 31], [24, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 4], [12, 2], [13, 1], [14, 1], [15, 1], [16, 5], [17, 7], [18, 1], [19, 11], [20, 13], [21, 5], [22, 16], [23, 7], [24, 7], [25, 8], [26, 9], [27, 21], [28, 7], [29, 7], [30, 29], [31, 29], [32, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "addElements", "code": "  private  void addElements(int value, int numberOfElements)\n  {\n    if(m_firstFree+numberOfElements<m_blocksize)\n      for (int i = 0; i < numberOfElements; i++) \n      {\n        m_map0[m_firstFree++]=value;\n      }\n    else\n    {\n      int index=m_firstFree>>>m_SHIFT;\n      int offset=m_firstFree&m_MASK;\n      m_firstFree+=numberOfElements;\n      while( numberOfElements>0)\n      {\n        if(index>=m_map.length)\n        {\n          int newsize=index+m_numblocks;\n          int[][] newMap=new int[newsize][];\n          System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n          m_map=newMap;\n        }\n        int[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new int[m_blocksize];\n        int copied=(m_blocksize-offset < numberOfElements)\n          ? m_blocksize-offset : numberOfElements;\n        numberOfElements-=copied;\n        while(copied-- > 0)\n          block[offset++]=value;\n\n        ++index;offset=0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "LOOP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [5, 10], [6, 11], [1, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [11, 18], [7, 19], [8, 20], [4, 21], [4, 22], [6, 23], [13, 24], [6, 25], [15, 26], [17, 27], [23, 28], [13, 29], [24, 30], [14, 31], [15, 32], [26, 33], [17, 34], [17, 35], [31, 36], [31, 37], [32, 38], [17, 39], [17, 40], [37, 41], [40, 42], [40, 43], [35, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 5], [11, 6], [12, 1], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 11], [19, 7], [20, 8], [21, 4], [22, 4], [23, 6], [24, 13], [25, 6], [26, 15], [27, 17], [28, 23], [29, 13], [30, 24], [31, 14], [32, 15], [33, 26], [34, 17], [35, 17], [36, 31], [37, 31], [38, 32], [39, 17], [40, 17], [41, 37], [42, 40], [43, 40], [44, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "addElements", "code": "  private  void addElements(int numberOfElements)\n  {\n    int newlen=m_firstFree+numberOfElements;\n    if(newlen>m_blocksize)\n    {\n      int index=m_firstFree>>>m_SHIFT;\n      int newindex=(m_firstFree+numberOfElements)>>>m_SHIFT;\n      for(int i=index+1;i<=newindex;++i)\n        m_map[i]=new int[m_blocksize];\n    }\n    m_firstFree=newlen;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [6, 10], [6, 11], [7, 12], [8, 13], [6, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 6], [11, 6], [12, 7], [13, 8], [14, 6], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "insertElementAt", "code": "  private  void insertElementAt(int value, int at)\n  {\n    if(at==m_firstFree)\n      addElement(value);\n    else if (at>m_firstFree)\n    {\n      int index=at>>>m_SHIFT;\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        int[][] newMap=new int[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      int[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new int[m_blocksize];\n      int offset=at&m_MASK;\n          block[offset]=value;\n          m_firstFree=offset+1;\n        }\n    else\n    {\n      int index=at>>>m_SHIFT;\n      ++m_firstFree;\n      int offset=at&m_MASK;\n      int push;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        int[] block=m_map[index];\n        if(null==block)\n        {\n          push=0;\n          block=m_map[index]=new int[m_blocksize];\n        }\n        else\n        {\n          push=block[m_blocksize-1];\n          System.arraycopy(block, offset , block, offset+1, copylen);\n        }\n        block[offset]=value;\n        value=push;\n        offset=0;\n        ++index;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 16], [8, 17], [4, 18], [4, 19], [13, 20], [15, 21], [8, 22], [8, 23], [8, 24], [10, 25], [11, 26], [18, 27], [12, 28], [13, 29], [20, 30], [15, 31], [15, 32], [16, 33], [8, 34], [8, 35], [8, 36], [22, 37], [27, 38], [29, 39], [15, 40], [15, 41], [34, 42], [37, 43], [24, 44], [41, 45], [41, 46], [32, 47], [22, 48], [22, 49], [22, 50], [22, 51], [44, 52], [44, 53], [48, 54], [50, 55], [51, 56], [54, 57], [49, 58], [58, 59], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 4], [14, 4], [15, 4], [16, 4], [17, 8], [18, 4], [19, 4], [20, 13], [21, 15], [22, 8], [23, 8], [24, 8], [25, 10], [26, 11], [27, 18], [28, 12], [29, 13], [30, 20], [31, 15], [32, 15], [33, 16], [34, 8], [35, 8], [36, 8], [37, 22], [38, 27], [39, 29], [40, 15], [41, 15], [42, 34], [43, 37], [44, 24], [45, 41], [46, 41], [47, 32], [48, 22], [49, 22], [50, 22], [51, 22], [52, 44], [53, 44], [54, 48], [55, 50], [56, 51], [57, 54], [58, 49], [59, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "removeAllElements", "code": "  public void removeAllElements()\n  {\n    m_firstFree = 0;\n    m_buildCache = m_map0;\n    m_buildCacheStartIndex = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "removeElement", "code": "  private  boolean removeElement(int s)\n  {\n    int at=indexOf(s,0);\n    if(at<0)\n      return false;\n    removeElementAt(at);\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [2, 8], [7, 9], [8, 10], [3, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 2], [9, 7], [10, 8], [11, 3], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "removeElementAt", "code": "  private  void removeElementAt(int at)\n  {\n    if(at<m_firstFree)\n    {\n      int index=at>>>m_SHIFT;\n      int maxindex=m_firstFree>>>m_SHIFT;\n      int offset=at&m_MASK;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        int[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new int[m_blocksize];\n        else\n          System.arraycopy(block, offset+1, block, offset, copylen);\n        if(index<maxindex)\n        {\n          int[] next=m_map[index+1];\n          if(next!=null)\n            block[m_blocksize-1]=(next!=null) ? next[0] : 0;\n        }\n        else\n          block[m_blocksize-1]=0;\n        offset=0;\n        ++index;\n      }\n    }\n    --m_firstFree;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [5, 13], [6, 14], [7, 15], [4, 16], [9, 17], [10, 18], [16, 19], [9, 20], [9, 21], [9, 22], [10, 23], [10, 24], [18, 25], [12, 26], [20, 27], [21, 28], [23, 29], [24, 30], [26, 31], [26, 32], [21, 33], [28, 34], [29, 35], [20, 36], [33, 37], [36, 38], [37, 39], [37, 40], [22, 41], [40, 42], [33, 43], [41, 44], [37, 45], [43, 46], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 5], [14, 6], [15, 7], [16, 4], [17, 9], [18, 10], [19, 16], [20, 9], [21, 9], [22, 9], [23, 10], [24, 10], [25, 18], [26, 12], [27, 20], [28, 21], [29, 23], [30, 24], [31, 26], [32, 26], [33, 21], [34, 28], [35, 29], [36, 20], [37, 33], [38, 36], [39, 37], [40, 37], [41, 22], [42, 40], [43, 33], [44, 41], [45, 37], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "setElementAt", "code": "  public void setElementAt(int value, int at)\n  {\n    if(at<m_blocksize)\n      m_map0[at]=value;\n    else\n    {\n      int index=at>>>m_SHIFT;\n      int offset=at&m_MASK;\n        \n      if(index>=m_map.length)\n      {\n\tint newsize=index+m_numblocks;\n\tint[][] newMap=new int[newsize][];\n\tSystem.arraycopy(m_map, 0, newMap, 0, m_map.length);\n\tm_map=newMap;\n      }\n\n      int[] block=m_map[index];\n      if(null==block)\n\tblock=m_map[index]=new int[m_blocksize];\n      block[offset]=value;\n    }\n\n    if(at>=m_firstFree)\n      m_firstFree=at+1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [7, 14], [2, 15], [8, 16], [10, 17], [14, 18], [8, 19], [16, 20], [10, 21], [10, 22], [11, 23], [12, 24], [19, 25], [10, 26], [10, 27], [27, 28], [27, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 7], [15, 2], [16, 8], [17, 10], [18, 14], [19, 8], [20, 16], [21, 10], [22, 10], [23, 11], [24, 12], [25, 19], [26, 10], [27, 10], [28, 27], [29, 27], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "elementAt", "code": "  public int elementAt(int i)\n  {\n    if(i<m_blocksize)\n      return m_map0[i];\n\n    return m_map[i>>>m_SHIFT][i&m_MASK];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "contains", "code": "  private  boolean contains(int s)\n  {\n    return (indexOf(s,0) >= 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "indexOf", "code": "  public int indexOf(int elem, int index)\n  {\n        if(index>=m_firstFree)\n                return -1;\n          \n    int bindex=index>>>m_SHIFT;\n    int boffset=index&m_MASK;\n    int maxindex=m_firstFree>>>m_SHIFT;\n    int[] block;\n    \n    for(;bindex<maxindex;++bindex)\n    {\n      block=m_map[bindex];\n      if(block!=null)\n        for(int offset=boffset;offset<m_blocksize;++offset)\n          if(block[offset]==elem)\n            return offset+bindex*m_blocksize;\n    }\n    int maxoffset=m_firstFree&m_MASK;\n    block=m_map[maxindex];\n    for(int offset=boffset;offset<maxoffset;++offset)\n      if(block[offset]==elem)\n        return offset+maxindex*m_blocksize;\n\n    return -1;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [0, 15], [4, 16], [9, 17], [9, 18], [13, 19], [13, 20], [3, 21], [4, 22], [6, 23], [7, 24], [8, 25], [17, 26], [19, 27], [22, 28], [22, 29], [4, 30], [27, 31], [28, 32], [28, 33], [29, 34], [32, 35], [32, 36], [35, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 0], [16, 4], [17, 9], [18, 9], [19, 13], [20, 13], [21, 3], [22, 4], [23, 6], [24, 7], [25, 8], [26, 17], [27, 19], [28, 22], [29, 22], [30, 4], [31, 27], [32, 28], [33, 28], [34, 29], [35, 32], [36, 32], [37, 35], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "indexOf", "code": "  public int indexOf(int elem)\n  {\n    return indexOf(elem,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "lastIndexOf", "code": "  private  int lastIndexOf(int elem)\n  {\n    int boffset=m_firstFree&m_MASK;\n    for(int index=m_firstFree>>>m_SHIFT;\n        index>=0;\n        --index)\n    {\n      int[] block=m_map[index];\n      if(block!=null)\n        for(int offset=boffset; offset>=0; --offset)\n          if(block[offset]==elem)\n            return offset+index*m_blocksize;\n    }\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [2, 13], [11, 14], [11, 15], [12, 16], [14, 17], [14, 18], [15, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 2], [14, 11], [15, 11], [16, 12], [17, 14], [18, 14], [19, 15], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getMap0", "code": "  public final int[] getMap0()\n  {\n    return m_map0;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMap", "code": "  public final int[][] getMap()\n  {\n    return m_map;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SuballocatedIntVector", "code": "  public SuballocatedIntVector()\n  {\n    this(2048);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SuballocatedIntVector", "code": "  public SuballocatedIntVector(int blocksize, int numblocks)\n  {\n    for(m_SHIFT=0;0!=(blocksize>>>=1);++m_SHIFT)\n      ;\n    m_blocksize=1<<m_SHIFT;\n    m_MASK=m_blocksize-1;\n    m_numblocks = numblocks;\n    \t\n    m_map0=new int[m_blocksize];\n    m_map = new int[numblocks][];\n    m_map[0]=m_map0;\n    m_buildCache = m_map0;\n    m_buildCacheStartIndex = 0;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [4, 14], [10, 15], [11, 16], [12, 17], [12, 18], [13, 19], [15, 20], [16, 21], [17, 22], [6, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 4], [15, 10], [16, 11], [17, 12], [18, 12], [19, 13], [20, 15], [21, 16], [22, 17], [23, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "SuballocatedIntVector", "code": "  public SuballocatedIntVector(int blocksize)\n  {\n    this(blocksize, NUMBLOCKS_DEFAULT);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.5-7039", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/templates/ElemCopy.java", "language": "java", "name": "org.apache.xalan.templates.ElemCopy", "code": "public class ElemCopy extends ElemUse\n{\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID for this element \n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_COPY;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return This element's name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_COPY_STRING;\n  }\n\n  /**\n   * The xsl:copy element provides an easy way of copying the current node.\n   * Executing this function creates a copy of the current node into the\n   * result tree.\n   * <p>The namespace nodes of the current node are automatically\n   * copied as well, but the attributes and children of the node are not\n   * automatically copied. The content of the xsl:copy element is a\n   * template for the attributes and children of the created node;\n   * the content is instantiated only for nodes of types that can have\n   * attributes or children (i.e. root nodes and element nodes).</p>\n   * <p>The root node is treated specially because the root node of the\n   * result tree is created implicitly. When the current node is the\n   * root node, xsl:copy will not create a root node, but will just use\n   * the content template.</p>\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n                XPathContext xctxt = transformer.getXPathContext();\n      \n    try\n    {\n      int sourceNode = xctxt.getCurrentNode();\n      xctxt.pushCurrentNode(sourceNode);\n      DTM dtm = xctxt.getDTM(sourceNode);\n      short nodeType = dtm.getNodeType(sourceNode);\n\n      if ((DTM.DOCUMENT_NODE != nodeType) && (DTM.DOCUMENT_FRAGMENT_NODE != nodeType))\n      {\n        SerializationHandler rthandler = transformer.getSerializationHandler();\n\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEvent(this);\n            \n        ClonerToResultTree.cloneToResultTree(sourceNode, nodeType, dtm, \n                                             rthandler, false);\n\n        if (DTM.ELEMENT_NODE == nodeType)\n        {\n          super.execute(transformer);\n          SerializerUtils.processNSDecls(rthandler, sourceNode, nodeType, dtm);\n          transformer.executeChildTemplates(this, true);\n          \n          String ns = dtm.getNamespaceURI(sourceNode);\n          String localName = dtm.getLocalName(sourceNode);\n          transformer.getResultTreeHandler().endElement(ns, localName,\n                                                        dtm.getNodeName(sourceNode));\n        }\n        if (TransformerImpl.S_DEBUG)\n\t\t  transformer.getTraceManager().fireTraceEndEvent(this);         \n      }\n      else\n      {\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEvent(this);\n\n        super.execute(transformer);\n        transformer.executeChildTemplates(this, true);\n\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEndEvent(this);\n      }\n    }\n    catch(org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n    finally\n    {\n      xctxt.popCurrentNode();", "functions": [{"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_COPY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_COPY_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n                XPathContext xctxt = transformer.getXPathContext();\n      \n    try\n    {\n      int sourceNode = xctxt.getCurrentNode();\n      xctxt.pushCurrentNode(sourceNode);\n      DTM dtm = xctxt.getDTM(sourceNode);\n      short nodeType = dtm.getNodeType(sourceNode);\n\n      if ((DTM.DOCUMENT_NODE != nodeType) && (DTM.DOCUMENT_FRAGMENT_NODE != nodeType))\n      {\n        SerializationHandler rthandler = transformer.getSerializationHandler();\n\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEvent(this);\n            \n        ClonerToResultTree.cloneToResultTree(sourceNode, nodeType, dtm, \n                                             rthandler, false);\n\n        if (DTM.ELEMENT_NODE == nodeType)\n        {\n          super.execute(transformer);\n          SerializerUtils.processNSDecls(rthandler, sourceNode, nodeType, dtm);\n          transformer.executeChildTemplates(this, true);\n          \n          String ns = dtm.getNamespaceURI(sourceNode);\n          String localName = dtm.getLocalName(sourceNode);\n          transformer.getResultTreeHandler().endElement(ns, localName,\n                                                        dtm.getNodeName(sourceNode));\n        }\n        if (TransformerImpl.S_DEBUG)\n\t\t  transformer.getTraceManager().fireTraceEndEvent(this);         \n      }\n      else\n      {\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEvent(this);\n\n        super.execute(transformer);\n        transformer.executeChildTemplates(this, true);\n\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEndEvent(this);\n      }\n    }\n    catch(org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n    finally\n    {\n      xctxt.popCurrentNode();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [5, 11], [1, 12], [2, 13], [10, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [11, 21], [11, 22], [6, 23], [7, 24], [8, 25], [5, 26], [18, 27], [5, 28], [15, 29], [26, 30], [16, 31], [17, 32], [18, 33], [18, 34], [28, 35], [19, 36], [20, 37], [29, 38], [31, 39], [32, 40], [18, 41], [18, 42], [18, 43], [36, 44], [41, 45], [33, 46], [34, 47], [42, 48], [45, 49], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 5], [12, 1], [13, 2], [14, 10], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 11], [22, 11], [23, 6], [24, 7], [25, 8], [26, 5], [27, 18], [28, 5], [29, 15], [30, 26], [31, 16], [32, 17], [33, 18], [34, 18], [35, 28], [36, 19], [37, 20], [38, 29], [39, 31], [40, 32], [41, 18], [42, 18], [43, 18], [44, 36], [45, 41], [46, 33], [47, 34], [48, 42], [49, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}], "label": 1}
{"sample_id": "xalan-2.6-7410", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/res/XSLTErrorResources_cs.java", "language": "java", "name": "org.apache.xalan.res.XSLTErrorResources_cs", "code": "public class XSLTErrorResources_cs extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 201;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 29;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 55;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Static variables\n   */\n  public static final String ER_NO_CURLYBRACE = \"ER_NO_CURLYBRACE\";;\n  public static final String ER_ILLEGAL_ATTRIBUTE = \"ER_ILLEGAL_ATTRIBUTE\";\n  public static final String ER_NULL_SOURCENODE_APPLYIMPORTS = \"ER_NULL_SOURCENODE_APPLYIMPORTS\";\n  public static final String ER_CANNOT_ADD = \"ER_CANNOT_ADD\";\n  public static final String ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES=\"ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES\";\n  public static final String ER_NO_NAME_ATTRIB = \"ER_NO_NAME_ATTRIB\";\n  public static final String ER_TEMPLATE_NOT_FOUND = \"ER_TEMPLATE_NOT_FOUND\";\n  public static final String ER_CANT_RESOLVE_NAME_AVT = \"ER_CANT_RESOLVE_NAME_AVT\";\n  public static final String ER_REQUIRES_ATTRIB = \"ER_REQUIRES_ATTRIB\";\n  public static final String ER_MUST_HAVE_TEST_ATTRIB = \"ER_MUST_HAVE_TEST_ATTRIB\";\n  public static final String ER_BAD_VAL_ON_LEVEL_ATTRIB =\n         \"ER_BAD_VAL_ON_LEVEL_ATTRIB\";\n  public static final String ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =\n         \"ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML\";\n  public static final String ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =\n         \"ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME\";\n  public static final String ER_NEED_MATCH_ATTRIB = \"ER_NEED_MATCH_ATTRIB\";\n  public static final String ER_NEED_NAME_OR_MATCH_ATTRIB =\n         \"ER_NEED_NAME_OR_MATCH_ATTRIB\";\n  public static final String ER_CANT_RESOLVE_NSPREFIX =\n         \"ER_CANT_RESOLVE_NSPREFIX\";\n  public static final String ER_ILLEGAL_VALUE = \"ER_ILLEGAL_VALUE\";\n  public static final String ER_NO_OWNERDOC = \"ER_NO_OWNERDOC\";\n  public static final String ER_ELEMTEMPLATEELEM_ERR =\"ER_ELEMTEMPLATEELEM_ERR\";\n  public static final String ER_NULL_CHILD = \"ER_NULL_CHILD\";\n  public static final String ER_NEED_SELECT_ATTRIB = \"ER_NEED_SELECT_ATTRIB\";\n  public static final String ER_NEED_TEST_ATTRIB = \"ER_NEED_TEST_ATTRIB\";\n  public static final String ER_NEED_NAME_ATTRIB = \"ER_NEED_NAME_ATTRIB\";\n  public static final String ER_NO_CONTEXT_OWNERDOC = \"ER_NO_CONTEXT_OWNERDOC\";\n  public static final String ER_COULD_NOT_CREATE_XML_PROC_LIAISON =\n         \"ER_COULD_NOT_CREATE_XML_PROC_LIAISON\";\n  public static final String ER_PROCESS_NOT_SUCCESSFUL =\n         \"ER_PROCESS_NOT_SUCCESSFUL\";\n  public static final String ER_NOT_SUCCESSFUL = \"ER_NOT_SUCCESSFUL\";\n  public static final String ER_ENCODING_NOT_SUPPORTED =\n         \"ER_ENCODING_NOT_SUPPORTED\";\n  public static final String ER_COULD_NOT_CREATE_TRACELISTENER =\n         \"ER_COULD_NOT_CREATE_TRACELISTENER\";\n  public static final String ER_KEY_REQUIRES_NAME_ATTRIB =\n         \"ER_KEY_REQUIRES_NAME_ATTRIB\";\n  public static final String ER_KEY_REQUIRES_MATCH_ATTRIB =\n         \"ER_KEY_REQUIRES_MATCH_ATTRIB\";\n  public static final String ER_KEY_REQUIRES_USE_ATTRIB =\n         \"ER_KEY_REQUIRES_USE_ATTRIB\";\n  public static final String ER_REQUIRES_ELEMENTS_ATTRIB =\n         \"ER_REQUIRES_ELEMENTS_ATTRIB\";\n  public static final String ER_MISSING_PREFIX_ATTRIB =\n         \"ER_MISSING_PREFIX_ATTRIB\";\n  public static final String ER_BAD_STYLESHEET_URL = \"ER_BAD_STYLESHEET_URL\";\n  public static final String ER_FILE_NOT_FOUND = \"ER_FILE_NOT_FOUND\";\n  public static final String ER_IOEXCEPTION = \"ER_IOEXCEPTION\";\n  public static final String ER_NO_HREF_ATTRIB = \"ER_NO_HREF_ATTRIB\";\n  public static final String ER_STYLESHEET_INCLUDES_ITSELF =\n         \"ER_STYLESHEET_INCLUDES_ITSELF\";\n  public static final String ER_PROCESSINCLUDE_ERROR =\"ER_PROCESSINCLUDE_ERROR\";\n  public static final String ER_MISSING_LANG_ATTRIB = \"ER_MISSING_LANG_ATTRIB\";\n  public static final String ER_MISSING_CONTAINER_ELEMENT_COMPONENT =\n         \"ER_MISSING_CONTAINER_ELEMENT_COMPONENT\";\n  public static final String ER_CAN_ONLY_OUTPUT_TO_ELEMENT =\n         \"ER_CAN_ONLY_OUTPUT_TO_ELEMENT\";\n  public static final String ER_PROCESS_ERROR = \"ER_PROCESS_ERROR\";\n  public static final String ER_UNIMPLNODE_ERROR = \"ER_UNIMPLNODE_ERROR\";\n  public static final String ER_NO_SELECT_EXPRESSION =\"ER_NO_SELECT_EXPRESSION\";\n  public static final String ER_CANNOT_SERIALIZE_XSLPROCESSOR =\n         \"ER_CANNOT_SERIALIZE_XSLPROCESSOR\";\n  public static final String ER_NO_INPUT_STYLESHEET = \"ER_NO_INPUT_STYLESHEET\";\n  public static final String ER_FAILED_PROCESS_STYLESHEET =\n         \"ER_FAILED_PROCESS_STYLESHEET\";\n  public static final String ER_COULDNT_PARSE_DOC = \"ER_COULDNT_PARSE_DOC\";\n  public static final String ER_COULDNT_FIND_FRAGMENT =\n         \"ER_COULDNT_FIND_FRAGMENT\";\n  public static final String ER_NODE_NOT_ELEMENT = \"ER_NODE_NOT_ELEMENT\";\n  public static final String ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB =\n         \"ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB\";\n  public static final String ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB =\n         \"ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB\";\n  public static final String ER_NO_CLONE_OF_DOCUMENT_FRAG =\n         \"ER_NO_CLONE_OF_DOCUMENT_FRAG\";\n  public static final String ER_CANT_CREATE_ITEM = \"ER_CANT_CREATE_ITEM\";\n  public static final String ER_XMLSPACE_ILLEGAL_VALUE =\n         \"ER_XMLSPACE_ILLEGAL_VALUE\";\n  public static final String ER_NO_XSLKEY_DECLARATION =\n         \"ER_NO_XSLKEY_DECLARATION\";\n  public static final String ER_CANT_CREATE_URL = \"ER_CANT_CREATE_URL\";\n  public static final String ER_XSLFUNCTIONS_UNSUPPORTED =\n         \"ER_XSLFUNCTIONS_UNSUPPORTED\";\n  public static final String ER_PROCESSOR_ERROR = \"ER_PROCESSOR_ERROR\";\n  public static final String ER_NOT_ALLOWED_INSIDE_STYLESHEET =\n         \"ER_NOT_ALLOWED_INSIDE_STYLESHEET\";\n  public static final String ER_RESULTNS_NOT_SUPPORTED =\n         \"ER_RESULTNS_NOT_SUPPORTED\";\n  public static final String ER_DEFAULTSPACE_NOT_SUPPORTED =\n         \"ER_DEFAULTSPACE_NOT_SUPPORTED\";\n  public static final String ER_INDENTRESULT_NOT_SUPPORTED =\n         \"ER_INDENTRESULT_NOT_SUPPORTED\";\n  public static final String ER_ILLEGAL_ATTRIB = \"ER_ILLEGAL_ATTRIB\";\n  public static final String ER_UNKNOWN_XSL_ELEM = \"ER_UNKNOWN_XSL_ELEM\";\n  public static final String ER_BAD_XSLSORT_USE = \"ER_BAD_XSLSORT_USE\";\n  public static final String ER_MISPLACED_XSLWHEN = \"ER_MISPLACED_XSLWHEN\";\n  public static final String ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE =\n         \"ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE\";\n  public static final String ER_MISPLACED_XSLOTHERWISE =\n         \"ER_MISPLACED_XSLOTHERWISE\";\n  public static final String ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE =\n         \"ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE\";\n  public static final String ER_NOT_ALLOWED_INSIDE_TEMPLATE =\n         \"ER_NOT_ALLOWED_INSIDE_TEMPLATE\";\n  public static final String ER_UNKNOWN_EXT_NS_PREFIX =\n         \"ER_UNKNOWN_EXT_NS_PREFIX\";\n  public static final String ER_IMPORTS_AS_FIRST_ELEM =\n         \"ER_IMPORTS_AS_FIRST_ELEM\";\n  public static final String ER_IMPORTING_ITSELF = \"ER_IMPORTING_ITSELF\";\n  public static final String ER_XMLSPACE_ILLEGAL_VAL =\"ER_XMLSPACE_ILLEGAL_VAL\";\n  public static final String ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL =\n         \"ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL\";\n  public static final String ER_SAX_EXCEPTION = \"ER_SAX_EXCEPTION\";\n  public static final String ER_XSLT_ERROR = \"ER_XSLT_ERROR\";\n  public static final String ER_CURRENCY_SIGN_ILLEGAL=\n         \"ER_CURRENCY_SIGN_ILLEGAL\";\n  public static final String ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM =\n         \"ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM\";\n  public static final String ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER =\n         \"ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER\";\n  public static final String ER_REDIRECT_COULDNT_GET_FILENAME =\n         \"ER_REDIRECT_COULDNT_GET_FILENAME\";\n  public static final String ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT =\n         \"ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT\";\n  public static final String ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX =\n         \"ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX\";\n  public static final String ER_MISSING_NS_URI = \"ER_MISSING_NS_URI\";\n  public static final String ER_MISSING_ARG_FOR_OPTION =\n         \"ER_MISSING_ARG_FOR_OPTION\";\n  public static final String ER_INVALID_OPTION = \"ER_INVALID_OPTION\";\n  public static final String ER_MALFORMED_FORMAT_STRING =\n         \"ER_MALFORMED_FORMAT_STRING\";\n  public static final String ER_STYLESHEET_REQUIRES_VERSION_ATTRIB =\n         \"ER_STYLESHEET_REQUIRES_VERSION_ATTRIB\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_VALUE =\n         \"ER_ILLEGAL_ATTRIBUTE_VALUE\";\n  public static final String ER_CHOOSE_REQUIRES_WHEN =\"ER_CHOOSE_REQUIRES_WHEN\";\n  public static final String ER_NO_APPLY_IMPORT_IN_FOR_EACH =\n         \"ER_NO_APPLY_IMPORT_IN_FOR_EACH\";\n  public static final String ER_CANT_USE_DTM_FOR_OUTPUT =\n         \"ER_CANT_USE_DTM_FOR_OUTPUT\";\n  public static final String ER_CANT_USE_DTM_FOR_INPUT =\n         \"ER_CANT_USE_DTM_FOR_INPUT\";\n  public static final String ER_CALL_TO_EXT_FAILED = \"ER_CALL_TO_EXT_FAILED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_XSLATTRSET_USED_ITSELF =\n         \"ER_XSLATTRSET_USED_ITSELF\";\n  public static final String ER_CANNOT_MIX_XERCESDOM =\"ER_CANNOT_MIX_XERCESDOM\";\n  public static final String ER_TOO_MANY_LISTENERS = \"ER_TOO_MANY_LISTENERS\";\n  public static final String ER_IN_ELEMTEMPLATEELEM_READOBJECT =\n         \"ER_IN_ELEMTEMPLATEELEM_READOBJECT\";\n  public static final String ER_DUPLICATE_NAMED_TEMPLATE =\n         \"ER_DUPLICATE_NAMED_TEMPLATE\";\n  public static final String ER_INVALID_KEY_CALL = \"ER_INVALID_KEY_CALL\";\n  public static final String ER_REFERENCING_ITSELF = \"ER_REFERENCING_ITSELF\";\n  public static final String ER_ILLEGAL_DOMSOURCE_INPUT =\n         \"ER_ILLEGAL_DOMSOURCE_INPUT\";\n  public static final String ER_CLASS_NOT_FOUND_FOR_OPTION =\n         \"ER_CLASS_NOT_FOUND_FOR_OPTION\";\n  public static final String ER_REQUIRED_ELEM_NOT_FOUND =\n         \"ER_REQUIRED_ELEM_NOT_FOUND\";\n  public static final String ER_INPUT_CANNOT_BE_NULL =\"ER_INPUT_CANNOT_BE_NULL\";\n  public static final String ER_URI_CANNOT_BE_NULL = \"ER_URI_CANNOT_BE_NULL\";\n  public static final String ER_FILE_CANNOT_BE_NULL = \"ER_FILE_CANNOT_BE_NULL\";\n  public static final String ER_SOURCE_CANNOT_BE_NULL =\n         \"ER_SOURCE_CANNOT_BE_NULL\";\n  public static final String ER_CANNOT_INIT_BSFMGR = \"ER_CANNOT_INIT_BSFMGR\";\n  public static final String ER_CANNOT_CMPL_EXTENSN = \"ER_CANNOT_CMPL_EXTENSN\";\n  public static final String ER_CANNOT_CREATE_EXTENSN =\n         \"ER_CANNOT_CREATE_EXTENSN\";\n  public static final String ER_INSTANCE_MTHD_CALL_REQUIRES =\n         \"ER_INSTANCE_MTHD_CALL_REQUIRES\";\n  public static final String ER_INVALID_ELEMENT_NAME =\"ER_INVALID_ELEMENT_NAME\";\n  public static final String ER_ELEMENT_NAME_METHOD_STATIC =\n         \"ER_ELEMENT_NAME_METHOD_STATIC\";\n  public static final String ER_EXTENSION_FUNC_UNKNOWN =\n         \"ER_EXTENSION_FUNC_UNKNOWN\";\n  public static final String ER_MORE_MATCH_CONSTRUCTOR =\n         \"ER_MORE_MATCH_CONSTRUCTOR\";\n  public static final String ER_MORE_MATCH_METHOD = \"ER_MORE_MATCH_METHOD\";\n  public static final String ER_MORE_MATCH_ELEMENT = \"ER_MORE_MATCH_ELEMENT\";\n  public static final String ER_INVALID_CONTEXT_PASSED =\n         \"ER_INVALID_CONTEXT_PASSED\";\n  public static final String ER_POOL_EXISTS = \"ER_POOL_EXISTS\";\n  public static final String ER_NO_DRIVER_NAME = \"ER_NO_DRIVER_NAME\";\n  public static final String ER_NO_URL = \"ER_NO_URL\";\n  public static final String ER_POOL_SIZE_LESSTHAN_ONE =\n         \"ER_POOL_SIZE_LESSTHAN_ONE\";\n  public static final String ER_INVALID_DRIVER = \"ER_INVALID_DRIVER\";\n  public static final String ER_NO_STYLESHEETROOT = \"ER_NO_STYLESHEETROOT\";\n  public static final String ER_ILLEGAL_XMLSPACE_VALUE =\n         \"ER_ILLEGAL_XMLSPACE_VALUE\";\n  public static final String ER_PROCESSFROMNODE_FAILED =\n         \"ER_PROCESSFROMNODE_FAILED\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD =\n         \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO =\n         \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_UNKNOWN_ERROR_CALLING_EXTENSION =\n         \"ER_UNKNOWN_ERROR_CALLING_EXTENSION\";\n  public static final String ER_NO_NAMESPACE_DECL = \"ER_NO_NAMESPACE_DECL\";\n  public static final String ER_ELEM_CONTENT_NOT_ALLOWED =\n         \"ER_ELEM_CONTENT_NOT_ALLOWED\";\n  public static final String ER_STYLESHEET_DIRECTED_TERMINATION =\n         \"ER_STYLESHEET_DIRECTED_TERMINATION\";\n  public static final String ER_ONE_OR_TWO = \"ER_ONE_OR_TWO\";\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE =\n         \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_CANNOT_INIT_DEFAULT_TEMPLATES =\n         \"ER_CANNOT_INIT_DEFAULT_TEMPLATES\";\n  public static final String ER_RESULT_NULL = \"ER_RESULT_NULL\";\n  public static final String ER_RESULT_COULD_NOT_BE_SET =\n         \"ER_RESULT_COULD_NOT_BE_SET\";\n  public static final String ER_NO_OUTPUT_SPECIFIED = \"ER_NO_OUTPUT_SPECIFIED\";\n  public static final String ER_CANNOT_TRANSFORM_TO_RESULT_TYPE =\n         \"ER_CANNOT_TRANSFORM_TO_RESULT_TYPE\";\n  public static final String ER_CANNOT_TRANSFORM_SOURCE_TYPE =\n         \"ER_CANNOT_TRANSFORM_SOURCE_TYPE\";\n  public static final String ER_NULL_CONTENT_HANDLER =\"ER_NULL_CONTENT_HANDLER\";\n  public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n  public static final String ER_CANNOT_CALL_PARSE = \"ER_CANNOT_CALL_PARSE\";\n  public static final String ER_NO_PARENT_FOR_FILTER =\"ER_NO_PARENT_FOR_FILTER\";\n  public static final String ER_NO_STYLESHEET_IN_MEDIA =\n         \"ER_NO_STYLESHEET_IN_MEDIA\";\n  public static final String ER_NO_STYLESHEET_PI = \"ER_NO_STYLESHEET_PI\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_PROPERTY_VALUE_BOOLEAN =\n         \"ER_PROPERTY_VALUE_BOOLEAN\";\n  public static final String ER_COULD_NOT_FIND_EXTERN_SCRIPT =\n         \"ER_COULD_NOT_FIND_EXTERN_SCRIPT\";\n  public static final String ER_RESOURCE_COULD_NOT_FIND =\n         \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_OUTPUT_PROPERTY_NOT_RECOGNIZED =\n         \"ER_OUTPUT_PROPERTY_NOT_RECOGNIZED\";\n  public static final String ER_FAILED_CREATING_ELEMLITRSLT =\n         \"ER_FAILED_CREATING_ELEMLITRSLT\";\n  public static final String ER_VALUE_SHOULD_BE_NUMBER =\n         \"ER_VALUE_SHOULD_BE_NUMBER\";\n  public static final String ER_VALUE_SHOULD_EQUAL = \"ER_VALUE_SHOULD_EQUAL\";\n  public static final String ER_FAILED_CALLING_METHOD =\n         \"ER_FAILED_CALLING_METHOD\";\n  public static final String ER_FAILED_CREATING_ELEMTMPL =\n         \"ER_FAILED_CREATING_ELEMTMPL\";\n  public static final String ER_CHARS_NOT_ALLOWED = \"ER_CHARS_NOT_ALLOWED\";\n  public static final String ER_ATTR_NOT_ALLOWED = \"ER_ATTR_NOT_ALLOWED\";\n  public static final String ER_BAD_VALUE = \"ER_BAD_VALUE\";\n  public static final String ER_ATTRIB_VALUE_NOT_FOUND =\n         \"ER_ATTRIB_VALUE_NOT_FOUND\";\n  public static final String ER_ATTRIB_VALUE_NOT_RECOGNIZED =\n         \"ER_ATTRIB_VALUE_NOT_RECOGNIZED\";\n  public static final String ER_NULL_URI_NAMESPACE = \"ER_NULL_URI_NAMESPACE\";\n  public static final String ER_NUMBER_TOO_BIG = \"ER_NUMBER_TOO_BIG\";\n  public static final String  ER_CANNOT_FIND_SAX1_DRIVER =\n         \"ER_CANNOT_FIND_SAX1_DRIVER\";\n  public static final String  ER_SAX1_DRIVER_NOT_LOADED =\n         \"ER_SAX1_DRIVER_NOT_LOADED\";\n  public static final String  ER_SAX1_DRIVER_NOT_INSTANTIATED =\n         \"ER_SAX1_DRIVER_NOT_INSTANTIATED\" ;\n  public static final String ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER =\n         \"ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER\";\n  public static final String  ER_PARSER_PROPERTY_NOT_SPECIFIED =\n         \"ER_PARSER_PROPERTY_NOT_SPECIFIED\";\n  public static final String  ER_PARSER_ARG_CANNOT_BE_NULL =\n         \"ER_PARSER_ARG_CANNOT_BE_NULL\" ;\n  public static final String  ER_FEATURE = \"ER_FEATURE\";\n  public static final String ER_PROPERTY = \"ER_PROPERTY\" ;\n  public static final String ER_NULL_ENTITY_RESOLVER =\"ER_NULL_ENTITY_RESOLVER\";\n  public static final String  ER_NULL_DTD_HANDLER = \"ER_NULL_DTD_HANDLER\" ;\n  public static final String ER_NO_DRIVER_NAME_SPECIFIED =\n         \"ER_NO_DRIVER_NAME_SPECIFIED\";\n  public static final String ER_NO_URL_SPECIFIED = \"ER_NO_URL_SPECIFIED\";\n  public static final String ER_POOLSIZE_LESS_THAN_ONE =\n         \"ER_POOLSIZE_LESS_THAN_ONE\";\n  public static final String ER_INVALID_DRIVER_NAME = \"ER_INVALID_DRIVER_NAME\";\n  public static final String ER_ERRORLISTENER = \"ER_ERRORLISTENER\";\n  public static final String ER_ASSERT_NO_TEMPLATE_PARENT =\n         \"ER_ASSERT_NO_TEMPLATE_PARENT\";\n  public static final String ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR =\n         \"ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR\";\n  public static final String ER_NOT_ALLOWED_IN_POSITION =\n         \"ER_NOT_ALLOWED_IN_POSITION\";\n  public static final String ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION =\n         \"ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION\";\n  public static final String INVALID_TCHAR = \"INVALID_TCHAR\";\n  public static final String INVALID_QNAME = \"INVALID_QNAME\";\n  public static final String INVALID_ENUM = \"INVALID_ENUM\";\n  public static final String INVALID_NMTOKEN = \"INVALID_NMTOKEN\";\n  public static final String INVALID_NCNAME = \"INVALID_NCNAME\";\n  public static final String INVALID_BOOLEAN = \"INVALID_BOOLEAN\";\n  public static final String INVALID_NUMBER = \"INVALID_NUMBER\";\n  public static final String ER_ARG_LITERAL = \"ER_ARG_LITERAL\";\n  public static final String ER_DUPLICATE_GLOBAL_VAR =\"ER_DUPLICATE_GLOBAL_VAR\";\n  public static final String ER_DUPLICATE_VAR = \"ER_DUPLICATE_VAR\";\n  public static final String ER_TEMPLATE_NAME_MATCH = \"ER_TEMPLATE_NAME_MATCH\";\n  public static final String ER_INVALID_PREFIX = \"ER_INVALID_PREFIX\";\n  public static final String ER_NO_ATTRIB_SET = \"ER_NO_ATTRIB_SET\";\n\n  public static final String WG_FOUND_CURLYBRACE = \"WG_FOUND_CURLYBRACE\";\n  public static final String WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR =\n         \"WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR\";\n  public static final String WG_EXPR_ATTRIB_CHANGED_TO_SELECT =\n         \"WG_EXPR_ATTRIB_CHANGED_TO_SELECT\";\n  public static final String WG_NO_LOCALE_IN_FORMATNUMBER =\n         \"WG_NO_LOCALE_IN_FORMATNUMBER\";\n  public static final String WG_LOCALE_NOT_FOUND = \"WG_LOCALE_NOT_FOUND\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_CANNOT_LOAD_REQUESTED_DOC =\n         \"WG_CANNOT_LOAD_REQUESTED_DOC\";\n  public static final String WG_CANNOT_FIND_COLLATOR =\"WG_CANNOT_FIND_COLLATOR\";\n  public static final String WG_FUNCTIONS_SHOULD_USE_URL =\n         \"WG_FUNCTIONS_SHOULD_USE_URL\";\n  public static final String WG_ENCODING_NOT_SUPPORTED_USING_UTF8 =\n         \"WG_ENCODING_NOT_SUPPORTED_USING_UTF8\";\n  public static final String WG_ENCODING_NOT_SUPPORTED_USING_JAVA =\n         \"WG_ENCODING_NOT_SUPPORTED_USING_JAVA\";\n  public static final String WG_SPECIFICITY_CONFLICTS =\n         \"WG_SPECIFICITY_CONFLICTS\";\n  public static final String WG_PARSING_AND_PREPARING =\n         \"WG_PARSING_AND_PREPARING\";\n  public static final String WG_ATTR_TEMPLATE = \"WG_ATTR_TEMPLATE\";\n  public static final String WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = \"WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESP\";\n  public static final String WG_ATTRIB_NOT_HANDLED = \"WG_ATTRIB_NOT_HANDLED\";\n  public static final String WG_NO_DECIMALFORMAT_DECLARATION =\n         \"WG_NO_DECIMALFORMAT_DECLARATION\";\n  public static final String WG_OLD_XSLT_NS = \"WG_OLD_XSLT_NS\";\n  public static final String WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED =\n         \"WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED\";\n  public static final String WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE =\n         \"WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE\";\n  public static final String WG_ILLEGAL_ATTRIBUTE = \"WG_ILLEGAL_ATTRIBUTE\";\n  public static final String WG_COULD_NOT_RESOLVE_PREFIX =\n         \"WG_COULD_NOT_RESOLVE_PREFIX\";\n  public static final String WG_STYLESHEET_REQUIRES_VERSION_ATTRIB =\n         \"WG_STYLESHEET_REQUIRES_VERSION_ATTRIB\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_NAME =\n         \"WG_ILLEGAL_ATTRIBUTE_NAME\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_VALUE =\n         \"WG_ILLEGAL_ATTRIBUTE_VALUE\";\n  public static final String WG_EMPTY_SECOND_ARG = \"WG_EMPTY_SECOND_ARG\";\n  public static final String WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =\n         \"WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML\";\n  public static final String WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =\n         \"WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_POSITION =\n         \"WG_ILLEGAL_ATTRIBUTE_POSITION\";\n\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /** The lookup table for error messages.   */\n  public static final Object[][] contents = {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n  {\"ER0000\" , \"{0}\" },\n\n\n  /** ER_NO_CURLYBRACE          */\n\n\n    { ER_NO_CURLYBRACE,\n      \"Chyba: Ve v\\u00fdrazu nelze pou\\u017e\\u00edt znak '{'\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE          */\n\n    { ER_ILLEGAL_ATTRIBUTE ,\n     \"{0} m\\u00e1 neplatn\\u00fd atribut: {1}\"},\n\n  /** ER_NULL_SOURCENODE_APPLYIMPORTS          */\n\n  {ER_NULL_SOURCENODE_APPLYIMPORTS ,\n      \"Funkce sourceNode m\\u00e1 v prvku xsl:apply-imports hodnotu null!\"},\n\n  /** ER_CANNOT_ADD          */\n\n  {ER_CANNOT_ADD,\n      \"Nelze p\\u0159idat {0} do {1}\"},\n\n\n  /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES          */\n\n\n    { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES,\n      \"Funkce sourceNode m\\u00e1 v instrukci handleApplyTemplatesInstruction hodnotu null!\"},\n\n  /** ER_NO_NAME_ATTRIB          */\n\n\n    { ER_NO_NAME_ATTRIB,\n     \"{0} mus\\u00ed m\\u00edt jmenn\\u00fd atribut\"},\n\n  /** ER_TEMPLATE_NOT_FOUND          */\n\n\n    {ER_TEMPLATE_NOT_FOUND,\n     \"Nelze nal\\u00e9zt \\u0161ablonu s n\\u00e1zvem: {0}\"},\n\n  /** ER_CANT_RESOLVE_NAME_AVT          */\n\n    {ER_CANT_RESOLVE_NAME_AVT,\n      \"Nelze nal\\u00e9zt n\\u00e1zev AVT v \\u0161ablon\\u011b xsl:call-template.\"},\n\n  /** ER_REQUIRES_ATTRIB          */\n\n\n    {ER_REQUIRES_ATTRIB,\n     \"{0} mus\\u00ed m\\u00edt atribut: {1}\"},\n\n  /** ER_MUST_HAVE_TEST_ATTRIB          */\n\n\n    { ER_MUST_HAVE_TEST_ATTRIB,\n      \"{0} mus\\u00ed obsahovat atribut ''test''.\"},\n\n  /** ER_BAD_VAL_ON_LEVEL_ATTRIB          */\n\n\n    {ER_BAD_VAL_ON_LEVEL_ATTRIB,\n      \"Nespr\\u00e1vn\\u00e1 hodnota atributu \\u00farovn\\u011b: {0}\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n\n\n    {ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"n\\u00e1zev instrukce processing-instruction nem\\u016f\\u017ee b\\u00fdt 'xml'\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n\n\n    { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"n\\u00e1zev instrukce processing-instruction mus\\u00ed b\\u00fdt platn\\u00fd n\\u00e1zev NCName: {0}\"},\n\n  /** ER_NEED_MATCH_ATTRIB          */\n\n\n    { ER_NEED_MATCH_ATTRIB,\n      \"M\\u00e1-li {0} re\\u017eim, mus\\u00ed m\\u00edt vyhovuj\\u00edc\\u00ed atribut.\"},\n\n  /** ER_NEED_NAME_OR_MATCH_ATTRIB          */\n\n\n    { ER_NEED_NAME_OR_MATCH_ATTRIB,\n      \"{0} vy\\u017eaduje bu\\u010f n\\u00e1zev, nebo vyhovuj\\u00edc\\u00ed atribut.\"},\n\n  /** ER_CANT_RESOLVE_NSPREFIX          */\n\n\n    {ER_CANT_RESOLVE_NSPREFIX,\n      \"Nelze p\\u0159elo\\u017eit p\\u0159edponu oboru n\\u00e1zv\\u016f: {0}\"},\n\n  /** ER_ILLEGAL_VALUE          */\n\n\n    { ER_ILLEGAL_VALUE,\n     \"Nepovolen\\u00e1 hodnota prvku xml:space: {0}\"},\n\n  /** ER_NO_OWNERDOC          */\n\n\n    { ER_NO_OWNERDOC,\n      \"Uzel potomka nem\\u00e1 dokument vlastn\\u00edka!\"},\n\n  /** ER_ELEMTEMPLATEELEM_ERR          */\n\n\n    { ER_ELEMTEMPLATEELEM_ERR,\n     \"Chyba funkce ElemTemplateElement: {0}\"},\n\n  /** ER_NULL_CHILD          */\n\n\n    { ER_NULL_CHILD,\n     \"Pokus o p\\u0159id\\u00e1n\\u00ed potomka s hodnotou null!\"},\n\n  /** ER_NEED_SELECT_ATTRIB          */\n\n\n    { ER_NEED_SELECT_ATTRIB,\n     \"{0} vy\\u017eaduje atribut select.\"},\n\n  /** ER_NEED_TEST_ATTRIB          */\n\n\n    { ER_NEED_TEST_ATTRIB ,\n      \"Prvek xsl:when mus\\u00ed obsahovat atribut 'test'.\"},\n\n  /** ER_NEED_NAME_ATTRIB          */\n\n\n    { ER_NEED_NAME_ATTRIB,\n      \"Prvek xsl:with-param mus\\u00ed obsahovat atribut 'name'.\"},\n\n  /** ER_NO_CONTEXT_OWNERDOC          */\n\n\n    { ER_NO_CONTEXT_OWNERDOC,\n      \"Parametr context nem\\u00e1 dokument vlastn\\u00edka!\"},\n\n  /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON          */\n\n\n    {ER_COULD_NOT_CREATE_XML_PROC_LIAISON,\n      \"Nelze vytvo\\u0159it prvek XML TransformerFactory Liaison: {0}\"},\n\n  /** ER_PROCESS_NOT_SUCCESSFUL          */\n\n\n    {ER_PROCESS_NOT_SUCCESSFUL,\n      \"Xalan: Proces nebyl \\u00fasp\\u011b\\u0161n\\u00fd.\"},\n\n  /** ER_NOT_SUCCESSFUL          */\n\n\n    { ER_NOT_SUCCESSFUL,\n     \"Xalan: nebylo \\u00fasp\\u011b\\u0161n\\u00e9.\"},\n\n  /** ER_ENCODING_NOT_SUPPORTED          */\n\n\n    { ER_ENCODING_NOT_SUPPORTED,\n     \"K\\u00f3dov\\u00e1n\\u00ed nen\\u00ed podporov\\u00e1no: {0}\"},\n\n  /** ER_COULD_NOT_CREATE_TRACELISTENER          */\n\n\n    {ER_COULD_NOT_CREATE_TRACELISTENER,\n      \"Nelze vytvo\\u0159it TraceListener: {0}\"},\n\n  /** ER_KEY_REQUIRES_NAME_ATTRIB          */\n\n\n    {ER_KEY_REQUIRES_NAME_ATTRIB,\n      \"Prvek xsl:key vy\\u017eaduje atribut 'name'!\"},\n\n  /** ER_KEY_REQUIRES_MATCH_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_MATCH_ATTRIB,\n      \"Prvek xsl:key vy\\u017eaduje atribut 'match'!\"},\n\n  /** ER_KEY_REQUIRES_USE_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_USE_ATTRIB,\n      \"Prvek xsl:key vy\\u017eaduje atribut 'use'!\"},\n\n  /** ER_REQUIRES_ELEMENTS_ATTRIB          */\n\n\n    { ER_REQUIRES_ELEMENTS_ATTRIB,\n      \"(StylesheetHandler) {0} vy\\u017eaduje atribut ''elements''!\"},\n\n  /** ER_MISSING_PREFIX_ATTRIB          */\n\n\n    { ER_MISSING_PREFIX_ATTRIB,\n      \"(StylesheetHandler) {0} - chyb\\u00ed atribut ''prefix''\"},\n\n  /** ER_BAD_STYLESHEET_URL          */\n\n\n    { ER_BAD_STYLESHEET_URL,\n     \"Nespr\\u00e1vn\\u00e1 adresa URL p\\u0159edlohy se styly: {0}\"},\n\n  /** ER_FILE_NOT_FOUND          */\n\n\n    { ER_FILE_NOT_FOUND,\n     \"Soubor p\\u0159edlohy se styly nebyl nalezen: {0}\"},\n\n  /** ER_IOEXCEPTION          */\n\n\n    { ER_IOEXCEPTION,\n      \"Soubor p\\u0159edlohy se styly m\\u00e1 v\\u00fdjimku vstupu/v\\u00fdstupu: {0}\"},\n\n  /** ER_NO_HREF_ATTRIB          */\n\n\n    { ER_NO_HREF_ATTRIB,\n      \"(StylesheetHandler) Pro {0} nelze naj\\u00edt atribut href\"},\n\n  /** ER_STYLESHEET_INCLUDES_ITSELF          */\n\n\n    { ER_STYLESHEET_INCLUDES_ITSELF,\n      \"(StylesheetHandler) {0}: p\\u0159\\u00edmo nebo nep\\u0159\\u00edmo zahrnuje sebe sama!\"},\n\n  /** ER_PROCESSINCLUDE_ERROR          */\n\n\n    { ER_PROCESSINCLUDE_ERROR,\n      \"Chyba: StylesheetHandler.processInclude {0}\"},\n\n  /** ER_MISSING_LANG_ATTRIB          */\n\n\n    { ER_MISSING_LANG_ATTRIB,\n      \"(StylesheetHandler) {0} - chyb\\u00ed atribut ''lang''\"},\n\n  /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT          */\n\n    { ER_MISSING_CONTAINER_ELEMENT_COMPONENT,\n      \"(StylesheetHandler) Nespr\\u00e1vn\\u011b um\\u00edst\\u011bn\\u00fd prvek {0}?? Chyb\\u00ed prvek po\\u0159ada\\u010de ''component''\"},\n\n  /** ER_CAN_ONLY_OUTPUT_TO_ELEMENT          */\n\n    { ER_CAN_ONLY_OUTPUT_TO_ELEMENT,\n      \"U atribut\\u016f Element, DocumentFragment, Document a PrintWriter lze volat pouze v\\u00fdstup.\"},\n\n  /** ER_PROCESS_ERROR          */\n\n    { ER_PROCESS_ERROR,\n     \"Chyba: StylesheetRoot.process\"},\n\n  /** ER_UNIMPLNODE_ERROR          */\n\n    { ER_UNIMPLNODE_ERROR,\n     \"Chyba: UnImplNode: {0}\"},\n\n  /** ER_NO_SELECT_EXPRESSION          */\n\n    { ER_NO_SELECT_EXPRESSION,\n      \"Chyba! Nebyl nalezen v\\u00fdraz v\\u00fdb\\u011bru xpath (-select).\"},\n\n  /** ER_CANNOT_SERIALIZE_XSLPROCESSOR          */\n\n    { ER_CANNOT_SERIALIZE_XSLPROCESSOR,\n      \"Nelze serializovat XSLProcessor!\"},\n\n  /** ER_NO_INPUT_STYLESHEET          */\n\n    { ER_NO_INPUT_STYLESHEET,\n      \"Nebyl zad\\u00e1n vstup p\\u0159edlohy se styly!\"},\n\n  /** ER_FAILED_PROCESS_STYLESHEET          */\n\n    { ER_FAILED_PROCESS_STYLESHEET,\n      \"Nepoda\\u0159ilo se zpracovat p\\u0159edlohu se styly!\"},\n\n  /** ER_COULDNT_PARSE_DOC          */\n\n    { ER_COULDNT_PARSE_DOC,\n     \"Nelze analyzovat dokument {0}!\"},\n\n  /** ER_COULDNT_FIND_FRAGMENT          */\n\n    { ER_COULDNT_FIND_FRAGMENT,\n     \"Nelze nal\\u00e9zt fragment: {0}\"},\n\n  /** ER_NODE_NOT_ELEMENT          */\n\n    { ER_NODE_NOT_ELEMENT,\n      \"Uzel, na kter\\u00fd odkazuje identifik\\u00e1tor fragmentu, nen\\u00ed prvek: {0}\"},\n\n  /** ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB,\n      \"atribut for-each mus\\u00ed m\\u00edt bu\\u010f shodu nebo n\\u00e1zev atributu\"},\n\n  /** ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB,\n      \"atribut templates mus\\u00ed m\\u00edt bu\\u010f shodu nebo n\\u00e1zev atributu\"},\n\n  /** ER_NO_CLONE_OF_DOCUMENT_FRAG          */\n\n    { ER_NO_CLONE_OF_DOCUMENT_FRAG,\n      \"\\u017d\\u00e1dn\\u00fd klon fragmentu dokumentu!\"},\n\n  /** ER_CANT_CREATE_ITEM          */\n\n    { ER_CANT_CREATE_ITEM,\n      \"Ve stromu v\\u00fdsledk\\u016f nelze vytvo\\u0159it polo\\u017eku: {0}\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VALUE          */\n\n    { ER_XMLSPACE_ILLEGAL_VALUE,\n      \"Parametr xml:space ve zdrojov\\u00e9m XML m\\u00e1 neplatnou hodnotu: {0}\"},\n\n  /** ER_NO_XSLKEY_DECLARATION          */\n\n    { ER_NO_XSLKEY_DECLARATION,\n      \"{0} nem\\u00e1 deklarov\\u00e1n \\u017e\\u00e1dn\\u00fd parametr xsl:key!\"},\n\n  /** ER_CANT_CREATE_URL          */\n\n    { ER_CANT_CREATE_URL,\n     \"Chyba! Nelze vytvo\\u0159it url pro: {0}\"},\n\n  /** ER_XSLFUNCTIONS_UNSUPPORTED          */\n\n    { ER_XSLFUNCTIONS_UNSUPPORTED,\n     \"Nepodporovan\\u00e1 funkce xsl:functions\"},\n\n  /** ER_PROCESSOR_ERROR          */\n\n    { ER_PROCESSOR_ERROR,\n     \"Chyba: XSLT TransformerFactory\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_STYLESHEET          */\n\n    { ER_NOT_ALLOWED_INSIDE_STYLESHEET,\n      \"(StylesheetHandler) {0} - nen\\u00ed v r\\u00e1mci p\\u0159edlohy se styly povoleno!\"},\n\n  /** ER_RESULTNS_NOT_SUPPORTED          */\n\n    { ER_RESULTNS_NOT_SUPPORTED,\n      \"Parametr result-ns ji\\u017e nen\\u00ed podporov\\u00e1n! M\\u00edsto toho pou\\u017eijte parametr xsl:output.\"},\n\n  /** ER_DEFAULTSPACE_NOT_SUPPORTED          */\n\n    { ER_DEFAULTSPACE_NOT_SUPPORTED,\n      \"Parametr default-space ji\\u017e nen\\u00ed podporov\\u00e1n! M\\u00edsto toho pou\\u017eijte parametr xsl:strip-space nebo xsl:preserve-space.\"},\n\n  /** ER_INDENTRESULT_NOT_SUPPORTED          */\n\n    { ER_INDENTRESULT_NOT_SUPPORTED,\n      \"Parametr indent-result ji\\u017e nen\\u00ed podporov\\u00e1n! M\\u00edsto toho pou\\u017eijte parametr xsl:output.\"},\n\n  /** ER_ILLEGAL_ATTRIB          */\n\n    { ER_ILLEGAL_ATTRIB,\n      \"(StylesheetHandler) {0} m\\u00e1 neplatn\\u00fd atribut: {1}\"},\n\n  /** ER_UNKNOWN_XSL_ELEM          */\n\n    { ER_UNKNOWN_XSL_ELEM,\n     \"Nezn\\u00e1m\\u00fd prvek XSL: {0}\"},\n\n  /** ER_BAD_XSLSORT_USE          */\n\n    { ER_BAD_XSLSORT_USE,\n      \"(StylesheetHandler) Parametr xsl:sort lze pou\\u017e\\u00edt pouze s parametrem xsl:apply-templates nebo xsl:for-each.\"},\n\n  /** ER_MISPLACED_XSLWHEN          */\n\n    { ER_MISPLACED_XSLWHEN,\n      \"(StylesheetHandler) Nespr\\u00e1vn\\u011b um\\u00edst\\u011bn\\u00fd prvek xsl:when!\"},\n\n  /** ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE,\n      \"(StylesheetHandler) Prvkek xsl:when nem\\u00e1 v parametru xsl:choose \\u017e\\u00e1dn\\u00e9ho rodi\\u010de!\"},\n\n  /** ER_MISPLACED_XSLOTHERWISE          */\n\n    { ER_MISPLACED_XSLOTHERWISE,\n      \"(StylesheetHandler) Nespr\\u00e1vn\\u011b um\\u00edst\\u011bn\\u00fd prvek xsl:otherwise!\"},\n\n  /** ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE,\n      \"(StylesheetHandler) Prvek xsl:otherwise nem\\u00e1 v parametru xsl:choose \\u017e\\u00e1dn\\u00e9ho rodi\\u010de!\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_TEMPLATE          */\n\n    { ER_NOT_ALLOWED_INSIDE_TEMPLATE,\n      \"(StylesheetHandler) {0} - nen\\u00ed v r\\u00e1mci \\u0161ablony povoleno!\"},\n\n  /** ER_UNKNOWN_EXT_NS_PREFIX          */\n\n    { ER_UNKNOWN_EXT_NS_PREFIX,\n      \"(StylesheetHandler) {0}: nezn\\u00e1m\\u00e1 p\\u0159edpona {1} p\\u0159\\u00edpony oboru n\\u00e1zv\\u016f\"},\n\n  /** ER_IMPORTS_AS_FIRST_ELEM          */\n\n    { ER_IMPORTS_AS_FIRST_ELEM,\n      \"(StylesheetHandler) Importy mus\\u00ed b\\u00fdt v r\\u00e1mci \\u0161ablony se styly na prvn\\u00edch m\\u00edstech!\"},\n\n  /** ER_IMPORTING_ITSELF          */\n\n    { ER_IMPORTING_ITSELF,\n      \"(StylesheetHandler) {0}: p\\u0159\\u00edmo nebo nep\\u0159\\u00edmo importuje samo sebe!\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VAL          */\n\n    { ER_XMLSPACE_ILLEGAL_VAL,\n      \"(StylesheetHandler) Parametr xml:space m\\u00e1 neplatnou hodnotu: {0}\"},\n\n  /** ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL          */\n\n    { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL,\n      \"Ne\\u00fasp\\u011b\\u0161n\\u00fd proces processStylesheet!\"},\n\n  /** ER_SAX_EXCEPTION          */\n\n    { ER_SAX_EXCEPTION,\n     \"V\\u00fdjimka SAX\"},\n\n  /** ER_FUNCTION_NOT_SUPPORTED          */\n\n\n  /** ER_XSLT_ERROR          */\n\n    { ER_XSLT_ERROR,\n     \"Chyba XSLT\"},\n\n  /** ER_CURRENCY_SIGN_ILLEGAL          */\n\n    { ER_CURRENCY_SIGN_ILLEGAL,\n      \"znak m\\u011bny nen\\u00ed v \\u0159et\\u011bzci vzorku form\\u00e1tu povolen\"},\n\n  /** ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM          */\n\n    { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM,\n      \"Funkce Document nen\\u00ed v p\\u0159edloze se styly DOM podporov\\u00e1na!\"},\n\n  /** ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER          */\n\n    { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER,\n      \"Nelze p\\u0159elo\\u017eit p\\u0159edponu p\\u0159eklada\\u010de non-Prefix!\"},\n\n  /** ER_REDIRECT_COULDNT_GET_FILENAME          */\n\n    { ER_REDIRECT_COULDNT_GET_FILENAME,\n      \"P\\u0159esm\\u011brov\\u00e1n\\u00ed p\\u0159\\u00edpony: Nelze z\\u00edskat n\\u00e1zev souboru - atribut file nebo select mus\\u00ed vr\\u00e1tit platn\\u00fd \\u0159et\\u011bzec.\"},\n\n  /** ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT          */\n\n    { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT,\n      \"V p\\u0159\\u00edpon\\u011b Redirect nelze vytvo\\u0159it FormatterListener!\"},\n\n  /** ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX          */\n\n    { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX,\n      \"Neplatn\\u00e1 p\\u0159edpona ve funkci exclude-result-prefixes: {0}\"},\n\n  /** ER_MISSING_NS_URI          */\n\n    { ER_MISSING_NS_URI,\n      \"U zadan\\u00e9 p\\u0159edpony chyb\\u00ed obor n\\u00e1zv\\u016f URI\"},\n\n  /** ER_MISSING_ARG_FOR_OPTION          */\n\n    { ER_MISSING_ARG_FOR_OPTION,\n      \"Chyb\\u011bj\\u00edc\\u00ed argument volby: {0}\"},\n\n  /** ER_INVALID_OPTION          */\n\n    { ER_INVALID_OPTION,\n     \"Neplatn\\u00e1 volba: {0}\"},\n\n  /** ER_MALFORMED_FORMAT_STRING          */\n\n    { ER_MALFORMED_FORMAT_STRING,\n     \"Vadn\\u00fd form\\u00e1tovac\\u00ed \\u0159et\\u011bzec: {0}\"},\n\n  /** ER_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n\n    { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"Prvek xsl:stylesheet vy\\u017eaduje atribut 'version'!\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE_VALUE          */\n\n    { ER_ILLEGAL_ATTRIBUTE_VALUE,\n      \"Parametr Attribute: {0} m\\u00e1 neplatnou hodnotu: {1}\"},\n\n  /** ER_CHOOSE_REQUIRES_WHEN          */\n\n    { ER_CHOOSE_REQUIRES_WHEN,\n     \"Prvek xsl:choose vy\\u017eaduje parametr xsl:when\"},\n\n  /** ER_NO_APPLY_IMPORT_IN_FOR_EACH          */\n\n    { ER_NO_APPLY_IMPORT_IN_FOR_EACH,\n      \"Parametr xsl:for-each nen\\u00ed v xsl:apply-imports povolen\"},\n\n  /** ER_CANT_USE_DTM_FOR_OUTPUT          */\n\n    { ER_CANT_USE_DTM_FOR_OUTPUT,\n      \"Nelze pou\\u017e\\u00edt DTMLiaison u v\\u00fdstupu uzlu DOM node... M\\u00edsto toho pou\\u017eijte org.apache.xpath.DOM2Helper!\"},\n\n  /** ER_CANT_USE_DTM_FOR_INPUT          */\n\n    { ER_CANT_USE_DTM_FOR_INPUT,\n      \"Nelze pou\\u017e\\u00edt DTMLiaison u vstupu uzlu DOM node... M\\u00edsto toho pou\\u017eijte org.apache.xpath.DOM2Helper!\"},\n\n  /** ER_CALL_TO_EXT_FAILED          */\n\n    { ER_CALL_TO_EXT_FAILED,\n      \"Ne\\u00fasp\\u011b\\u0161n\\u00e9 vol\\u00e1n\\u00ed prvku p\\u0159\\u00edpony: {0}\"},\n\n  /** ER_PREFIX_MUST_RESOLVE          */\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"P\\u0159edponu mus\\u00ed b\\u00fdt mo\\u017eno p\\u0159elo\\u017eit do oboru n\\u00e1zv\\u016f: {0}\"},\n\n  /** ER_INVALID_UTF16_SURROGATE          */\n\n    { ER_INVALID_UTF16_SURROGATE,\n      \"Byla zji\\u0161t\\u011bna neplatn\\u00e1 n\\u00e1hrada UTF-16: {0} ?\"},\n\n  /** ER_XSLATTRSET_USED_ITSELF          */\n\n    { ER_XSLATTRSET_USED_ITSELF,\n      \"Prvek xsl:attribute-set {0} pou\\u017e\\u00edv\\u00e1 s\\u00e1m sebe, co\\u017e zp\\u016fsob\\u00ed nekone\\u010dnou smy\\u010dku.\"},\n\n  /** ER_CANNOT_MIX_XERCESDOM          */\n\n    { ER_CANNOT_MIX_XERCESDOM,\n      \"Vstup Xerces-DOM nelze sm\\u011b\\u0161ovat s v\\u00fdstupem Xerces-DOM!\"},\n\n  /** ER_TOO_MANY_LISTENERS          */\n\n    { ER_TOO_MANY_LISTENERS,\n      \"addTraceListenersToStylesheet - TooManyListenersException\"},\n\n  /** ER_IN_ELEMTEMPLATEELEM_READOBJECT          */\n\n    { ER_IN_ELEMTEMPLATEELEM_READOBJECT,\n      \"V ElemTemplateElement.readObject: {0}\"},\n\n  /** ER_DUPLICATE_NAMED_TEMPLATE          */\n\n    { ER_DUPLICATE_NAMED_TEMPLATE,\n      \"Nalezena v\\u00edce ne\\u017e jedna \\u0161ablona s n\\u00e1zvem: {0}\"},\n\n  /** ER_INVALID_KEY_CALL          */\n\n    { ER_INVALID_KEY_CALL,\n      \"Neplatn\\u00e9 vol\\u00e1n\\u00ed funkce: rekurzivn\\u00ed vol\\u00e1n\\u00ed funkce key() nen\\u00ed povoleno\"},\n\n  /** Variable is referencing itself          */\n\n    { ER_REFERENCING_ITSELF,\n      \"Prom\\u011bnn\\u00e1 {0} odkazuje p\\u0159\\u00edmo \\u010di nep\\u0159\\u00edmo sama na sebe!\"},\n\n  /** Illegal DOMSource input          */\n\n    { ER_ILLEGAL_DOMSOURCE_INPUT,\n      \"Vstupn\\u00ed uzel DOMSource pro newTemplates nesm\\u00ed m\\u00edt hodnotu null!\"},\n\n        /** Class not found for option         */\n\n    { ER_CLASS_NOT_FOUND_FOR_OPTION,\n        \"Nebyl nalezen soubor t\\u0159\\u00eddy pro volbu {0}\"},\n\n        /** Required Element not found         */\n\n    { ER_REQUIRED_ELEM_NOT_FOUND,\n        \"Nebyl nalezen po\\u017eadovan\\u00fd prvek: {0}\"},\n\n  /** InputStream cannot be null         */\n\n    { ER_INPUT_CANNOT_BE_NULL,\n        \"Parametr InputStream nesm\\u00ed m\\u00edt hodnotu null\"},\n\n  /** URI cannot be null         */\n\n    { ER_URI_CANNOT_BE_NULL,\n        \"Parametr URI nesm\\u00ed m\\u00edt hodnotu null\"},\n\n  /** File cannot be null         */\n\n    { ER_FILE_CANNOT_BE_NULL,\n        \"Parametr File nesm\\u00ed m\\u00edt hodnotu null\"},\n\n   /** InputSource cannot be null         */\n\n    { ER_SOURCE_CANNOT_BE_NULL,\n                \"Parametr InputSource nesm\\u00ed m\\u00edt hodnotu null\"},\n\n  /** Can't overwrite cause         */\n\n\n  /** Could not initialize BSF Manager        */\n\n    { ER_CANNOT_INIT_BSFMGR,\n                \"Nelze inicializovat BSF Manager\"},\n\n  /** Could not compile extension       */\n\n    { ER_CANNOT_CMPL_EXTENSN,\n                \"P\\u0159\\u00edponu nelze kompilovat\"},\n\n  /** Could not create extension       */\n\n    { ER_CANNOT_CREATE_EXTENSN,\n      \"Nelze vytvo\\u0159it p\\u0159\\u00edponu: {0}, proto\\u017ee: {1}\"},\n\n  /** Instance method call to method {0} requires an Object instance as first argument       */\n\n    { ER_INSTANCE_MTHD_CALL_REQUIRES,\n      \"Vol\\u00e1n\\u00ed metody {0} metodou Instance vy\\u017eaduje jako prvn\\u00ed argument instanci Object\"},\n\n  /** Invalid element name specified       */\n\n    { ER_INVALID_ELEMENT_NAME,\n      \"Byl zad\\u00e1n neplatn\\u00fd n\\u00e1zev prvku {0}\"},\n\n   /** Element name method must be static      */\n\n    { ER_ELEMENT_NAME_METHOD_STATIC,\n      \"N\\u00e1zev metody prvku mus\\u00ed b\\u00fdt static {0}\"},\n\n   /** Extension function {0} : {1} is unknown      */\n\n    { ER_EXTENSION_FUNC_UNKNOWN,\n             \"Funkce v\\u00fdjimky {0} : {1} je nezn\\u00e1m\\u00e1\"},\n\n   /** More than one best match for constructor for       */\n\n    { ER_MORE_MATCH_CONSTRUCTOR,\n             \"Konstruktor {0} m\\u00e1 v\\u00edce nejlep\\u0161\\u00edch shod.\"},\n\n   /** More than one best match for method      */\n\n    { ER_MORE_MATCH_METHOD,\n             \"Metoda {0} m\\u00e1 v\\u00edce nejlep\\u0161\\u00edch shod.\"},\n\n   /** More than one best match for element method      */\n\n    { ER_MORE_MATCH_ELEMENT,\n             \"Metoda prvku {0} m\\u00e1 v\\u00edce nejlep\\u0161\\u00edch shod.\"},\n\n   /** Invalid context passed to evaluate       */\n\n    { ER_INVALID_CONTEXT_PASSED,\n             \"Do vyhodnocen\\u00ed byl p\\u0159ed\\u00e1n neplatn\\u00fd kontext {0}.\"},\n\n   /** Pool already exists       */\n\n    { ER_POOL_EXISTS,\n             \"Spole\\u010dn\\u00e1 oblast ji\\u017e existuje.\"},\n\n   /** No driver Name specified      */\n\n    { ER_NO_DRIVER_NAME,\n             \"Nebylo zad\\u00e1no \\u017e\\u00e1dn\\u00e9 jm\\u00e9no ovlada\\u010de.\"},\n\n   /** No URL specified     */\n\n    { ER_NO_URL,\n             \"Nebyla specifikov\\u00e1na \\u017e\\u00e1dn\\u00e1 adresa URL.\"},\n\n   /** Pool size is less than one    */\n\n    { ER_POOL_SIZE_LESSTHAN_ONE,\n             \"Velikost spole\\u010dn\\u00e9 oblasti je men\\u0161\\u00ed ne\\u017e jedna!\"},\n\n   /** Invalid driver name specified    */\n\n    { ER_INVALID_DRIVER,\n             \"Byl zad\\u00e1n neplatn\\u00fd n\\u00e1zev ovlada\\u010de!\"},\n\n   /** Did not find the stylesheet root    */\n\n    { ER_NO_STYLESHEETROOT,\n             \"Nebyl nalezen ko\\u0159en p\\u0159edlohy se styly!\"},\n\n   /** Illegal value for xml:space     */\n\n    { ER_ILLEGAL_XMLSPACE_VALUE,\n         \"Neplatn\\u00e1 hodnota parametru xml:space\"},\n\n   /** processFromNode failed     */\n\n    { ER_PROCESSFROMNODE_FAILED,\n         \"Selh\\u00e1n\\u00ed procesu processFromNode\"},\n\n   /** The resource [] could not load:     */\n\n    { ER_RESOURCE_COULD_NOT_LOAD,\n        \"Nelze zav\\u00e9st zdroj [ {0} ]: {1} \\n {2} \\t {3}\"},\n\n\n   /** Buffer size <=0     */\n\n    { ER_BUFFER_SIZE_LESSTHAN_ZERO,\n        \"Velikost vyrovn\\u00e1vac\\u00ed pam\\u011bti <=0\"},\n\n   /** Unknown error when calling extension    */\n\n    { ER_UNKNOWN_ERROR_CALLING_EXTENSION,\n        \"P\\u0159i vol\\u00e1n\\u00ed p\\u0159\\u00edpony do\\u0161lo k nezn\\u00e1m\\u00e9 chyb\\u011b\"},\n\n   /** Prefix {0} does not have a corresponding namespace declaration    */\n\n    { ER_NO_NAMESPACE_DECL,\n        \"P\\u0159edpona {0} nem\\u00e1 deklarov\\u00e1n odpov\\u00eddaj\\u00edc\\u00ed obor n\\u00e1zv\\u016f\"},\n\n   /** Element content not allowed for lang=javaclass   */\n\n    { ER_ELEM_CONTENT_NOT_ALLOWED,\n        \"Obsah prvku nen\\u00ed povolen pro lang=javaclass {0}\"},\n\n   /** Stylesheet directed termination   */\n\n    { ER_STYLESHEET_DIRECTED_TERMINATION,\n        \"Ukon\\u010den\\u00ed sm\\u011brovan\\u00e9 na p\\u0159edlohu se styly.\"},\n\n   /** 1 or 2   */\n\n    { ER_ONE_OR_TWO,\n        \"1 nebo 2\"},\n\n   /** 2 or 3   */\n\n    { ER_TWO_OR_THREE,\n        \"2 nebo 3\"},\n\n   /** Could not load {0} (check CLASSPATH), now using just the defaults   */\n\n    { ER_COULD_NOT_LOAD_RESOURCE,\n        \"Nelze zav\\u00e9st {0} (zkontrolujte prom\\u011bnnou CLASSPATH) - proto se pou\\u017e\\u00edvaj\\u00ed pouze v\\u00fdchoz\\u00ed hodnoty\"},\n\n   /** Cannot initialize default templates   */\n\n    { ER_CANNOT_INIT_DEFAULT_TEMPLATES,\n        \"Nelze aktualizovat v\\u00fdchoz\\u00ed \\u0161ablony.\"},\n\n   /** Result should not be null   */\n\n    { ER_RESULT_NULL,\n        \"V\\u00fdsledek by nem\\u011bl m\\u00edt hodnotu null\"},\n\n   /** Result could not be set   */\n\n    { ER_RESULT_COULD_NOT_BE_SET,\n        \"Nelze nastavit v\\u00fdsledek\"},\n\n   /** No output specified   */\n\n    { ER_NO_OUTPUT_SPECIFIED,\n        \"Nebyl ur\\u010den \\u017e\\u00e1dn\\u00fd v\\u00fdstup\"},\n\n   /** Can't transform to a Result of type   */\n\n    { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE,\n        \"Nelze p\\u0159ev\\u00e9st na v\\u00fdsledek typu {0}\"},\n\n   /** Can't transform to a Source of type   */\n\n    { ER_CANNOT_TRANSFORM_SOURCE_TYPE,\n        \"Nelze p\\u0159ev\\u00e9st na zdroj typu {0}\"},\n\n   /** Null content handler  */\n\n    { ER_NULL_CONTENT_HANDLER,\n        \"Obslu\\u017en\\u00fd program obsahu hodnoty null\"},\n\n   /** Null error handler  */\n    { ER_NULL_ERROR_HANDLER,\n        \"Obslu\\u017en\\u00fd program pro zpracov\\u00e1n\\u00ed chyb hodnoty null\"},\n\n   /** parse can not be called if the ContentHandler has not been set */\n\n    { ER_CANNOT_CALL_PARSE,\n        \"Nen\\u00ed-li nastaven obslu\\u017en\\u00fd program ContentHandler, nelze volat analyz\\u00e1tor.\"},\n\n   /**  No parent for filter */\n\n    { ER_NO_PARENT_FOR_FILTER,\n        \"Filtr nem\\u00e1 rodi\\u010de.\"},\n\n\n   /**  No stylesheet found in: {0}, media */\n\n    { ER_NO_STYLESHEET_IN_MEDIA,\n         \"Nebyla nalezena p\\u0159edloha se styly v: {0}, m\\u00e9dium= {1}\"},\n\n   /**  No xml-stylesheet PI found in */\n\n    { ER_NO_STYLESHEET_PI,\n         \"Nebyla nalezena p\\u0159edloha se styly xml-stylesheet PI v: {0}\"},\n\n   /**  No default implementation found */\n\n\n   /**  ChunkedIntArray({0}) not currently supported */\n\n\n   /**  Offset bigger than slot */\n\n\n   /**  Coroutine not available, id= */\n\n\n   /**  CoroutineManager recieved co_exit() request */\n\n\n   /**  co_joinCoroutineSet() failed */\n\n\n   /**  Coroutine parameter error () */\n\n\n   /**  UNEXPECTED: Parser doTerminate answers  */\n\n\n   /**  parse may not be called while parsing */\n\n\n   /**  Error: typed iterator for axis  {0} not implemented  */\n\n\n   /**  Error: iterator for axis {0} not implemented  */\n\n\n   /**  Iterator clone not supported  */\n\n\n   /**  Unknown axis traversal type  */\n\n\n   /**  Axis traverser not supported  */\n\n\n   /**  No more DTM IDs are available  */\n\n\n   /**  Not supported  */\n\n    { ER_NOT_SUPPORTED,\n       \"Nepodporov\\u00e1no: {0}\"},\n\n   /**  node must be non-null for getDTMHandleFromNode  */\n\n\n   /**  Could not resolve the node to a handle  */\n\n\n   /**  startParse may not be called while parsing */\n\n\n   /**  startParse needs a non-null SAXParser  */\n\n\n   /**  could not initialize parser with */\n\n   /**  Value for property {0} should be a Boolean instance  */\n\n    { ER_PROPERTY_VALUE_BOOLEAN,\n       \"Hodnota vlastnosti {0} by m\\u011bla b\\u00fdt booleovsk\\u00e1 instance\"},\n\n   /**  exception creating new instance for pool  */\n\n\n   /**  Path contains invalid escape sequence  */\n\n\n   /**  Scheme is required!  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  Path contains invalid character:   */\n\n\n   /**  Cannot set scheme from null string  */\n\n\n   /**  The scheme is not conformant. */\n\n\n   /**  Host is not a well formed address  */\n\n\n   /**  Port cannot be set when host is null  */\n\n\n   /**  Invalid port number  */\n\n\n   /**  Fragment can only be set for a generic URI  */\n\n\n   /**  Fragment cannot be set when path is null  */\n\n\n   /**  Fragment contains invalid character  */\n\n\n\n\n   /** Parser is already in use  */\n\n\n   /** Parser is already in use  */\n\n\n   /** Self-causation not permitted  */\n\n\n   /** src attribute not yet supported for  */\n\n    { ER_COULD_NOT_FIND_EXTERN_SCRIPT,\n         \"Z {0} nelze z\\u00edskat extern\\u00ed skript.\"},\n\n  /** The resource [] could not be found     */\n\n    { ER_RESOURCE_COULD_NOT_FIND,\n        \"Nelze naj\\u00edt zdroj [ {0} ].\\n {1}\"},\n\n   /** output property not recognized:  */\n\n    { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED,\n        \"Nezn\\u00e1m\\u00e1 vlastnost v\\u00fdstupu: {0}\"},\n\n   /** Userinfo may not be specified if host is not specified   */\n\n\n   /** Port may not be specified if host is not specified   */\n\n\n   /** Query string cannot be specified in path and query string   */\n\n\n   /** Fragment cannot be specified in both the path and fragment   */\n\n\n   /** Cannot initialize URI with empty parameters   */\n\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMLITRSLT,\n        \"Nepoda\\u0159ilo se vytvo\\u0159it instanci ElemLiteralResult\"},\n\n\n   /** Priority value does not contain a parsable number   */\n\n    { ER_VALUE_SHOULD_BE_NUMBER,\n        \"Hodnota pro {0} by m\\u011bla obsahovat analyzovateln\\u00e9 \\u010d\\u00edslo\"},\n\n   /**  Value for {0} should equal 'yes' or 'no'   */\n\n    { ER_VALUE_SHOULD_EQUAL,\n        \"Hodnota {0} mus\\u00ed b\\u00fdt yes nebo no.\"},\n\n   /**  Failed calling {0} method   */\n\n    { ER_FAILED_CALLING_METHOD,\n        \"Vol\\u00e1n\\u00ed metody {0} selhalo.\"},\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMTMPL,\n        \"Nepoda\\u0159ilo se vytvo\\u0159it instanci ElemTemplateElement.\"},\n\n   /**  Characters are not allowed at this point in the document   */\n\n    { ER_CHARS_NOT_ALLOWED,\n        \"V t\\u00e9to \\u010d\\u00e1sti dokumentu nejsou znaky povoleny.\"},\n\n  /**  attribute is not allowed on the element   */\n    { ER_ATTR_NOT_ALLOWED,\n        \"Atribut \\\"{0}\\\" nen\\u00ed u prvku {1} povolen!\"},\n\n  /**  Method not yet supported    */\n\n\n  /**  Bad value    */\n\n    { ER_BAD_VALUE,\n     \"{0}: nespr\\u00e1vn\\u00e1 hodnota {1} \"},\n\n  /**  attribute value not found   */\n\n    { ER_ATTRIB_VALUE_NOT_FOUND,\n     \"Atribut hodnoty ({0}) nebyl nalezen \"},\n\n  /**  attribute value not recognized    */\n\n    { ER_ATTRIB_VALUE_NOT_RECOGNIZED,\n     \"Atribut hodnoty ({0}) nebyl rozpozn\\u00e1n \"},\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NULL_URI_NAMESPACE,\n     \"Pokus o generov\\u00e1n\\u00ed oboru n\\u00e1zv\\u016f s URI s hodnotou null.\"},\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NUMBER_TOO_BIG,\n     \"Pokus o form\\u00e1tov\\u00e1n\\u00ed v\\u011bt\\u0161\\u00edho \\u010d\\u00edsla, ne\\u017e je nejv\\u011bt\\u0161\\u00ed dlouh\\u00e9 cel\\u00e9 \\u010d\\u00edslo.\"},\n\n\n\n    { ER_CANNOT_FIND_SAX1_DRIVER,\n     \"Nelze naj\\u00edt t\\u0159\\u00eddu ovlada\\u010de SAX1  {0}\"},\n\n\n    { ER_SAX1_DRIVER_NOT_LOADED,\n     \"T\\u0159\\u00edda ovlada\\u010de SAX1 {0} byla nalezena, ale nebylo mo\\u017eno ji zav\\u00e9st.\"},\n\n\n    { ER_SAX1_DRIVER_NOT_INSTANTIATED,\n     \"T\\u0159\\u00edda ovlada\\u010de SAX1 {0} byla nalezena, ale nebylo mo\\u017eno s n\\u00ed zalo\\u017eit instanci.\"},\n\n\n\n    { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER,\n     \"T\\u0159\\u00edda ovlada\\u010de SAX1 {0} neimplementuje org.xml.sax.Parser.\"},\n\n\n    { ER_PARSER_PROPERTY_NOT_SPECIFIED,\n     \"Nebyla ur\\u010dena vlastnost syst\\u00e9mu org.xml.sax.parser.\"},\n\n\n    { ER_PARSER_ARG_CANNOT_BE_NULL,\n     \"Argument analyz\\u00e1toru nesm\\u00ed m\\u00edt hodnotu null.\"},\n\n\n\n    { ER_FEATURE,\n     \"Funkce: {0}\"},\n\n\n\n    { ER_PROPERTY,\n     \"Vlastnost: {0}\"},\n\n\n    { ER_NULL_ENTITY_RESOLVER,\n     \"\\u0158e\\u0161itel s hodnotou entity null\"},\n\n\n    { ER_NULL_DTD_HANDLER,\n     \"Obslu\\u017en\\u00fd program DTD s hodnotou null\"},\n\n    { ER_NO_DRIVER_NAME_SPECIFIED,\n     \"Nebyl zad\\u00e1n n\\u00e1zev ovlada\\u010de!\"},\n\n\n    { ER_NO_URL_SPECIFIED,\n     \"Nebyla specifikov\\u00e1na adresa URL!\"},\n\n\n    { ER_POOLSIZE_LESS_THAN_ONE,\n     \"Velikost spole\\u010dn\\u00e9 oblasti je men\\u0161\\u00ed ne\\u017e 1!\"},\n\n\n    { ER_INVALID_DRIVER_NAME,\n     \"Zad\\u00e1n neplatn\\u00fd n\\u00e1zev ovlada\\u010de!\"},\n\n\n\n    { ER_ERRORLISTENER,\n     \"ErrorListener\"},\n\n\n    { ER_ASSERT_NO_TEMPLATE_PARENT,\n     \"Chyba program\\u00e1tora! V\\u00fdraz nem\\u00e1 rodi\\u010de ElemTemplateElement!\"},\n\n\n    { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR,\n     \"Tvrzen\\u00ed program\\u00e1tora v RundundentExprEliminator: {0}\"},\n\n\n\n    { ER_NOT_ALLOWED_IN_POSITION,\n     \"{0} - nen\\u00ed povoleno v tomto stylu na dan\\u00e9m m\\u00edst\\u011b!\"},\n\n    { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,\n     \"Nepr\\u00e1zdn\\u00fd text nen\\u00ed povolen v tomto stylu na dan\\u00e9m m\\u00edst\\u011b!\"},\n\n    { INVALID_TCHAR,\n     \"Neplatn\\u00e1 hodnota: {1} pou\\u017eito pro atribut CHAR: {0}. Atribut typu CHAR sm\\u00ed m\\u00edt pouze jeden znak.\"},\n\n\n\n\n    { INVALID_QNAME,\n     \"Neplatn\\u00e1 hodnota: {1} pou\\u017eito pro atribut QNAME: {0}\"},\n\n\n    { INVALID_ENUM,\n     \"Neplatn\\u00e1 hodnota: {1} pou\\u017eito pro atribut ENUM {0}. Platn\\u00e9 hodnoty jsou: {2}.\"},\n\n\n    { INVALID_NMTOKEN,\n     \"Neplatn\\u00e1 hodnota: {1} pou\\u017eito pro atribut NMTOKEN: {0} \"},\n\n\n    { INVALID_NCNAME,\n     \"Neplatn\\u00e1 hodnota: {1} pou\\u017eito pro atribut NCNAME: {0} \"},\n\n\n\n    { INVALID_BOOLEAN,\n     \"Neplatn\\u00e1 hodnota: {1} pou\\u017eito pro booleovsk\\u00fd atribut: {0} \"},\n\n\n     { INVALID_NUMBER,\n     \"Neplatn\\u00e1 hodnota: {1} pou\\u017eito pro atribut \\u010d\\u00edsla: {0} \"},\n\n\n\n\n    { ER_ARG_LITERAL,\n     \"Argument pro {0} ve vyhovuj\\u00edc\\u00edm vzorku mus\\u00ed b\\u00fdt typu literal.\"},\n\n\n    { ER_DUPLICATE_GLOBAL_VAR,\n     \"Duplicitn\\u00ed deklarace glob\\u00e1ln\\u00ed prom\\u011bnn\\u00e9.\"},\n\n\n\n    { ER_DUPLICATE_VAR,\n     \"Duplicitn\\u00ed deklarace prom\\u011bnn\\u00e9.\"},\n\n\n    { ER_TEMPLATE_NAME_MATCH,\n     \"Prvek xsl:template mus\\u00ed m\\u00edt n\\u00e1zev nebo odpov\\u00eddaj\\u00edc\\u00ed atribut (nebo oboj\\u00ed)\"},\n\n\n    { ER_INVALID_PREFIX,\n     \"Neplatn\\u00e1 p\\u0159edpona ve funkci exclude-result-prefixes: {0}\"},\n\n\n    { ER_NO_ATTRIB_SET,\n     \"sada atribut\\u016f pojmenovan\\u00e1 {0} neexistuje\"},\n\n\n\n\n\n\n  /** WG_FOUND_CURLYBRACE          */\n    { WG_FOUND_CURLYBRACE,\n      \"Byl nalezen znak '}', ale nen\\u00ed otev\\u0159ena \\u017e\\u00e1dn\\u00e1 \\u0161ablona atributu!\"},\n\n  /** WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR          */\n\n    { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,\n      \"Varov\\u00e1n\\u00ed: \\u010d\\u00edta\\u010d atributu se neshoduje s p\\u0159edch\\u016fdcem v xsl:number! C\\u00edl = {0}\"},\n\n  /** WG_EXPR_ATTRIB_CHANGED_TO_SELECT          */\n\n    { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,\n      \"Star\\u00e1 syntaxe: N\\u00e1zev atributu 'expr' byl zm\\u011bn\\u011bn na 'select'.\"},\n\n  /** WG_NO_LOCALE_IN_FORMATNUMBER          */\n\n    { WG_NO_LOCALE_IN_FORMATNUMBER,\n      \"Xalan je\\u0161t\\u011b neobsluhuje n\\u00e1zev n\\u00e1rodn\\u00edho prost\\u0159ed\\u00ed ve funkci format-number.\"},\n\n  /** WG_LOCALE_NOT_FOUND          */\n\n    { WG_LOCALE_NOT_FOUND,\n      \"Varov\\u00e1n\\u00ed: Nebylo nalezeno n\\u00e1rodn\\u00ed prost\\u0159ed\\u00ed pro parametr xml:lang={0}\"},\n\n  /** WG_CANNOT_MAKE_URL_FROM          */\n\n    { WG_CANNOT_MAKE_URL_FROM,\n      \"Nelze vytvo\\u0159it adresu URL z: {0}\"},\n\n  /** WG_CANNOT_LOAD_REQUESTED_DOC          */\n\n    { WG_CANNOT_LOAD_REQUESTED_DOC,\n      \"Po\\u017eadovan\\u00fd dokument nelze na\\u010d\\u00edst: {0}\"},\n\n  /** WG_CANNOT_FIND_COLLATOR          */\n    { WG_CANNOT_FIND_COLLATOR,\n      \"Nelze naj\\u00edt funkci Collator pro <sort xml:lang={0}\"},\n\n  /** WG_FUNCTIONS_SHOULD_USE_URL          */\n\n    { WG_FUNCTIONS_SHOULD_USE_URL,\n      \"Star\\u00e1 syntaxe: instrukce funkc\\u00ed by m\\u011bla pou\\u017e\\u00edvat adresu url {0}\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_UTF8          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,\n      \"nepodporovan\\u00e9 k\\u00f3dov\\u00e1n\\u00ed: {0}, pou\\u017eito k\\u00f3dov\\u00e1n\\u00ed UTF-8\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_JAVA          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,\n      \"nepodporovan\\u00e9 k\\u00f3dov\\u00e1n\\u00ed: {0}, pou\\u017eita Java {1}\"},\n\n  /** WG_SPECIFICITY_CONFLICTS          */\n\n    { WG_SPECIFICITY_CONFLICTS,\n      \"Byl nalezen konflikt specifi\\u010dnosti: {0} Bude pou\\u017eit naposledy nalezen\\u00fd v\\u00fdskyt z p\\u0159edlohy se styly.\"},\n\n  /** WG_PARSING_AND_PREPARING          */\n\n    { WG_PARSING_AND_PREPARING,\n      \"========= Anal\\u00fdza a p\\u0159\\u00edprava {0} ==========\"},\n\n  /** WG_ATTR_TEMPLATE          */\n\n    { WG_ATTR_TEMPLATE,\n     \"\\u0160ablona atribut\\u016f, {0}\"},\n\n  /** WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE          */\n\n    { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,\n      \"Konflikt souladu funkc\\u00ed xsl:strip-space a xsl:preserve-space\"},\n\n  /** WG_ATTRIB_NOT_HANDLED          */\n\n    { WG_ATTRIB_NOT_HANDLED,\n      \"Xalan prozat\\u00edm neobsluhuje atribut {0}!\"},\n\n  /** WG_NO_DECIMALFORMAT_DECLARATION          */\n\n    { WG_NO_DECIMALFORMAT_DECLARATION,\n      \"U desetinn\\u00e9ho form\\u00e1tu nebyla nalezena \\u017e\\u00e1dn\\u00e1 deklarace: {0}\"},\n\n  /** WG_OLD_XSLT_NS          */\n\n    { WG_OLD_XSLT_NS,\n     \"Chyb\\u011bj\\u00edc\\u00ed nebo nespr\\u00e1vn\\u00fd obor n\\u00e1zv\\u016f XSLT. \"},\n\n  /** WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED          */\n\n    { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,\n      \"Povolena je pouze v\\u00fdchoz\\u00ed deklarace prvku xsl:decimal-format.\"},\n\n  /** WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE          */\n\n    { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,\n      \"N\\u00e1zvy prvk\\u016f xsl:decimal-format mus\\u00ed b\\u00fdt jedine\\u010dn\\u00e9. Byla vytvo\\u0159ena kopie n\\u00e1zvu \\\"{0}\\\".\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE          */\n\n    { WG_ILLEGAL_ATTRIBUTE,\n      \"{0} m\\u00e1 neplatn\\u00fd atribut: {1}\"},\n\n  /** WG_COULD_NOT_RESOLVE_PREFIX          */\n\n    { WG_COULD_NOT_RESOLVE_PREFIX,\n      \"Nelze p\\u0159elo\\u017eit p\\u0159edponu oboru n\\u00e1zv\\u016f: {0}. Uzel bude ignorov\\u00e1n.\"},\n\n  /** WG_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n    { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"Prvek xsl:stylesheet vy\\u017eaduje atribut 'version'!\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_NAME          */\n\n    { WG_ILLEGAL_ATTRIBUTE_NAME,\n      \"Neplatn\\u00fd n\\u00e1zev atributu: {0}\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_VALUE          */\n    { WG_ILLEGAL_ATTRIBUTE_VALUE,\n      \"V atributu {0} byla pou\\u017eita neplatn\\u00e1 hodnota: {1}\"},\n\n  /** WG_EMPTY_SECOND_ARG          */\n\n    { WG_EMPTY_SECOND_ARG,\n      \"V\\u00fdsledn\\u00e9 nastaven\\u00ed uzlu z druh\\u00e9ho argumentu dokumentu je pr\\u00e1zdn\\u00e9. Vr\\u00e1t\\u00ed se pr\\u00e1zdn\\u00e1 sada uzl\\u016f.\"},\n\n\n\n\n  /** WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n    { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"Hodnota atributu 'name' n\\u00e1zvu prvku xsl:processing-instruction nesm\\u00ed b\\u00fdt 'xml'\"},\n\n\n  /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n    { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"Hodnota atributu 'name' instrukce xsl:processing-instruction mus\\u00ed b\\u00fdt platn\\u00fdm n\\u00e1zvem NCName: {0}\"},\n\n\n  /** WG_ILLEGAL_ATTRIBUTE_POSITION         */\n    { WG_ILLEGAL_ATTRIBUTE_POSITION,\n      \"Nelze p\\u0159idat atribut {0} po uzlech potomk\\u016f ani p\\u0159ed t\\u00edm, ne\\u017e je vytvo\\u0159en prvek. Atribut bude ignorov\\u00e1n.\"},\n\n\n  { \"ui_language\", \"cs\"},\n  {  \"help_language\",  \"cs\" },\n  {  \"language\",  \"cs\" },\n  { \"BAD_CODE\", \"Parametr funkce createMessage je mimo limit\"},\n  {  \"FORMAT_FAILED\", \"P\\u0159i vol\\u00e1n\\u00ed funkce messageFormat do\\u0161lo k v\\u00fdjimce\"},\n  {  \"version\", \">>>>>>> Verze Xalan \"},\n  {  \"version2\",  \"<<<<<<<\"},\n  {  \"yes\", \"ano\"},\n  { \"line\", \"\\u0158\\u00e1dek #\"},\n  { \"column\",\"Sloupec #\"},\n  { \"xsldone\", \"XSLProcessor: hotovo\"},\n\n\n  { \"xslProc_option\", \"P\\u0159\\u00edkazov\\u00fd \\u0159\\u00e1dek Xalan-J: Zpracov\\u00e1n\\u00ed voleb t\\u0159\\u00eddy:\"},\n  { \"xslProc_option\", \"P\\u0159\\u00edkazov\\u00fd \\u0159\\u00e1dek Xalan-J: Zpracov\\u00e1n\\u00ed voleb t\\u0159\\u00eddy\\u003a\"},\n  { \"xslProc_invalid_xsltc_option\", \"Volba {0} nen\\u00ed v re\\u017eimu XSLTC podporovan\\u00e1.\"},\n  { \"xslProc_invalid_xalan_option\", \"Volba {0} m\\u016f\\u017ee b\\u00fdt pou\\u017eita pouze s -XSLTC.\"},\n  { \"xslProc_no_input\", \"Chyba: \\u017d\\u00e1dn\\u00e1 p\\u0159edloha stylu ani vstup xml nejsou ur\\u010deny. K zobrazen\\u00ed pokyn\\u016f spus\\u0165te tento p\\u0159\\u00edkaz bez jak\\u00e9koliv volby.\"},\n  { \"xslProc_common_options\", \"-Obecn\\u00e9 volby-\"},\n  { \"xslProc_xalan_options\", \"-Volby pro Xalan-\"},\n  { \"xslProc_xsltc_options\", \"-Volby pro XSLTC-\"},\n  { \"xslProc_return_to_continue\", \"(pokra\\u010dujte stisknut\\u00edm kl\\u00e1vesy <Enter>)\"},\n\n  { \"optionXSLTC\", \"   [-XSLTC (pou\\u017eije XSLTC pro transformaci)]\"},\n  { \"optionIN\", \"   [-IN inputXMLURL]\"},\n  { \"optionXSL\", \"   [-XSL XSLTransformationURL]\"},\n  { \"optionOUT\",  \"   [-OUT outputFileName]\"},\n  { \"optionLXCIN\", \"   [-LXCIN compiledStylesheetFileNameIn]\"},\n  { \"optionLXCOUT\", \"   [-LXCOUT compiledStylesheetFileNameOutOut]\"},\n  { \"optionPARSER\", \"   [-PARSER pln\\u011b kvalifikovan\\u00fd n\\u00e1zev t\\u0159\\u00eddy spojen\\u00ed analyz\\u00e1toru]\"},\n  {  \"optionE\", \"   [-E (neroz\\u0161i\\u0159ovat odkazy entity)]\"},\n  {  \"optionV\",  \"   [-E (neroz\\u0161i\\u0159ovat odkazy entity)]\"},\n  {  \"optionQC\", \"   [-QC (varov\\u00e1n\\u00ed p\\u0159ed konflikty vzorkov\\u00e1n\\u00ed v tich\\u00e9m re\\u017eimu)]\"},\n  {  \"optionQ\", \"   [-Q  (tich\\u00fd re\\u017eim)]\"},\n  {  \"optionLF\", \"   [-LF (ve v\\u00fdstupu pou\\u017e\\u00edt pouze \\u0159\\u00e1dkov\\u00e1n\\u00ed - LF {v\\u00fdchoz\\u00ed nastaven\\u00ed je CR/LF})]\"},\n  {  \"optionCR\", \"   [-CR (ve v\\u00fdstupu pou\\u017e\\u00edt pouze znak nov\\u00fd \\u0159\\u00e1dek - CR {v\\u00fdchoz\\u00ed nastaven\\u00ed je CR/LF})]\"},\n  { \"optionESCAPE\", \"   [-ESCAPE (nastaven\\u00ed znak\\u016f escape sekvence {v\\u00fdchoz\\u00ed nastaven\\u00ed je <>&\\\"\\'\\\\r\\\\n}]\"},\n  { \"optionINDENT\", \"   [-INDENT (ovliv\\u0148uje po\\u010det znak\\u016f odsazen\\u00ed {v\\u00fdchoz\\u00ed nastaven\\u00ed je 0})]\"},\n  { \"optionTT\", \"   [-TT (trasuje \\u0161ablony p\\u0159i vol\\u00e1n\\u00ed)]\"},\n  { \"optionTG\", \"   [-TG (trasuje v\\u0161echny ud\\u00e1losti generov\\u00e1n\\u00ed)]\"},\n  { \"optionTS\", \"   [-TS (trasuje v\\u0161echny ud\\u00e1losti v\\u00fdb\\u011bru)]\"},\n  {  \"optionTTC\", \"   [-TTC (trasuje potomky \\u0161ablony v pr\\u016fb\\u011bhu jejich zpracov\\u00e1n\\u00ed)]\"},\n  { \"optionTCLASS\", \"   [-TCLASS (t\\u0159\\u00edda TraceListener p\\u0159\\u00edpon trasov\\u00e1n\\u00ed)]\"},\n  { \"optionVALIDATE\", \"   [-VALIDATE (zap\\u00edn\\u00e1/vyp\\u00edn\\u00e1 validaci;  v\\u00fdchoz\\u00ed nastaven\\u00ed je vypnuto)]\"},\n  { \"optionEDUMP\", \"   [-EDUMP {voliteln\\u00fd n\\u00e1zev souboru} (p\\u0159i chyb\\u011b vyp\\u00ed\\u0161e obsah z\\u00e1sobn\\u00edku)]\"},\n  {  \"optionXML\", \"   [-XML (pou\\u017eije program pro form\\u00e1tov\\u00e1n\\u00ed XML a p\\u0159id\\u00e1 z\\u00e1hlav\\u00ed XML)]\"},\n  {  \"optionTEXT\", \"   [-TEXT (pou\\u017eije jednoduch\\u00fd program pro form\\u00e1tov\\u00e1n\\u00ed textu)]\"},\n  {  \"optionHTML\", \"   [-HTML (pou\\u017eije program pro form\\u00e1tov\\u00e1n\\u00ed HTML)]\"},\n  {  \"optionPARAM\", \"   [-PARAM n\\u00e1zev v\\u00fdrazu (nastav\\u00ed parametr p\\u0159edlohy se styly)]\"},\n  {  \"noParsermsg1\", \"Proces XSL nebyl \\u00fasp\\u011b\\u0161n\\u00fd.\"},\n  {  \"noParsermsg2\", \"** Nelze naj\\u00edt analyz\\u00e1tor **\"},\n  { \"noParsermsg3\",  \"Zkontrolujte cestu classpath.\"},\n  { \"noParsermsg4\", \"Nem\\u00e1te-li analyz\\u00e1tor XML jazyka Java spole\\u010dnosti IBM, m\\u016f\\u017eete si jej st\\u00e1hnout z adresy:\"},\n  { \"optionURIRESOLVER\", \"   [-URIRESOLVER cel\\u00e9 jm\\u00e9no t\\u0159\\u00eddy (pro p\\u0159eklad URI pou\\u017eije funkci URIResolver)]\"},\n  { \"optionENTITYRESOLVER\",  \"   [-ENTITYRESOLVER cel\\u00e9 jm\\u00e9no t\\u0159\\u00eddy (pro p\\u0159eklad entit pou\\u017eije funkci EntityResolver)]\"},\n  { \"optionCONTENTHANDLER\",  \"   [-CONTENTHANDLER cel\\u00e9 jm\\u00e9no t\\u0159\\u00eddy (pro serializaci v\\u00fdstupu pou\\u017eije funkci ContentHandler)]\"},\n  {  \"optionLINENUMBERS\",  \"   [-L ve zdrojov\\u00e9m dokumentu pou\\u017eije \\u010d\\u00edsla \\u0159\\u00e1dk\\u016f]\"},\n\n\n\n  {  \"optionMEDIA\",  \"   [-MEDIA mediaType (k vyhled\\u00e1n\\u00ed p\\u0159edlohy se styly p\\u0159i\\u0159azen\\u00e9 dokumentu pou\\u017eije atribut m\\u00e9dia)]\"},\n  { \"optionDIAG\", \"   [-DIAG (vytiskne \\u010das transformace v milisekund\\u00e1ch)]\"},\n  { \"optionRL\",  \"   [-RL recursionlimit (potvrd\\u00ed \\u010d\\u00edseln\\u00fd limit hloubky p\\u0159edlohy se styly)]\"},\n  {   \"optionXO\",  \"   [-XO [transletName] (p\\u0159i\\u0159ad\\u00ed n\\u00e1zev k generovan\\u00e9mu transletu)]\"},\n  {  \"optionXD\", \"   [-XD destinationDirectory (ur\\u010duje c\\u00edlov\\u00fd adres\\u00e1\\u0159 pro translet)]\"},\n  {  \"optionXJ\",  \"   [-XJ jarfile (zabal\\u00ed t\\u0159\\u00eddy transletu do souboru jar s n\\u00e1zvem <jarfile>)]\"},\n  {   \"optionXP\",  \"   [-XP package (ur\\u010d\\u00ed p\\u0159edponu n\\u00e1zvu sady pro v\\u0161echny generovan\\u00e9 t\\u0159\\u00eddy transletu)]\"},\n\n  { \"optionXN\",  \"   [-XN (povol\\u00ed zarovn\\u00e1n\\u00ed \\u0161ablon)]\" },\n  { \"optionXX\",  \"   [-XX (zapne dal\\u0161\\u00ed v\\u00fdstup zpr\\u00e1v lad\\u011bn\\u00ed)]\"},\n  { \"optionXT\" , \"   [-XT (Pou\\u017eije translet k transformaci, je-li to mo\\u017en\\u00e9)]\"},\n  { \"diagTiming\",\" --------- Transformace {0} pomoc\\u00ed {1} trvala {2} ms.\" },\n  { \"recursionTooDeep\",\"Vno\\u0159en\\u00ed \\u0161ablon je p\\u0159\\u00edli\\u0161 hlubok\\u00e9. Vno\\u0159en\\u00ed = {0}, \\u0161ablona {1} {2}\" },\n  { \"nameIs\", \"n\\u00e1zev je\" },\n  { \"matchPatternIs\", \"vzorek shody je\" }\n\n  };\n\n\n  /** String for use when a bad error code was encountered.    */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** String for use when formatting of the error string failed.   */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** General error string.   */\n  public static final String ERROR_STRING = \"#chyba\";\n\n  /** String to prepend to error messages.  */\n  public static final String ERROR_HEADER = \"Chyba: \";\n\n  /** String to prepend to warning messages.    */\n  public static final String WARNING_HEADER = \"Varov\\u00e1n\\u00ed: \";\n\n  /** String to specify the XSLT module.  */\n  public static final String XSL_HEADER = \"XSLT \";\n\n  /** String to specify the XML parser module.  */\n  public static final String XML_HEADER = \"XML \";\n\n  /** I don't think this is used any more.\n   * @deprecated  */\n  public static final String QUERY_HEADER = \"PATTERN \";\n\n  /**\n   * Get the lookup table.\n   *\n   * @return The int to message lookup table.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XSLTErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XSLTErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XSLTErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"cs\", \"CZ\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XSLTErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XSLTErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XSLTErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"cs\", \"CZ\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "xalan-2.7-8150", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/AbsoluteLocationPath.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.AbsoluteLocationPath", "code": "final class AbsoluteLocationPath extends Expression {\n\n    public AbsoluteLocationPath() {\n\t_path = null;\n    }\n\n    public AbsoluteLocationPath(Expression path) {\n\t_path = path;\n\tif (path != null) {\n\t    _path.setParent(this);\n\t}\n    }\n\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tif (_path != null) {\n\t    _path.setParser(parser);\n\t}\n    }\n\n    public Expression getPath() {\n\treturn(_path);\n    }\n    \n    public String toString() {\n\treturn \"AbsoluteLocationPath(\" +\n\t    (_path != null ? _path.toString() : \"null\") + ')';\n    }\n\t\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_path != null) {\n\t    final Type ptype = _path.typeCheck(stable);\n\t\t_path = new CastExpr(_path, Type.NodeSet);\n\t    \n\t}\n\treturn _type = Type.NodeSet;\t\n    }\n\t\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tif (_path != null) {\n\t    final int initAI = cpg.addMethodref(ABSOLUTE_ITERATOR,\n\t\t\t\t\t\t\"<init>\",\n\t\t\t\t\t\t\"(\"\n\t\t\t\t\t\t+ NODE_ITERATOR_SIG\n\t\t\t\t\t\t+ \")V\");\n\n\t    _path.translate(classGen, methodGen);\n            LocalVariableGen relPathIterator\n                    = methodGen.addLocalVariable(\"abs_location_path_tmp\",\n                                       Util.getJCRefType(NODE_ITERATOR_SIG),\n                                       il.getEnd(), null);\n            il.append(new ASTORE(relPathIterator.getIndex()));\n\n\t    il.append(new NEW(cpg.addClass(ABSOLUTE_ITERATOR)));\n\t    il.append(DUP);\n            il.append(new ALOAD(relPathIterator.getIndex()));\n\n\t    il.append(new INVOKESPECIAL(initAI));\n\t}\n\telse {\n\t    final int gitr = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t       \"getIterator\",\n\t\t\t\t\t\t       \"()\"+NODE_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(new INVOKEINTERFACE(gitr, 1));", "functions": [{"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tif (_path != null) {\n\t    _path.setParser(parser);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getPath", "code": "    public Expression getPath() {\n\treturn(_path);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"AbsoluteLocationPath(\" +\n\t    (_path != null ? _path.toString() : \"null\") + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [5, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_path != null) {\n\t    final Type ptype = _path.typeCheck(stable);\n\t\t_path = new CastExpr(_path, Type.NodeSet);\n\t    \n\t}\n\treturn _type = Type.NodeSet;\t", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [2, 8], [8, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 2], [9, 8], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tif (_path != null) {\n\t    final int initAI = cpg.addMethodref(ABSOLUTE_ITERATOR,\n\t\t\t\t\t\t\"<init>\",\n\t\t\t\t\t\t\"(\"\n\t\t\t\t\t\t+ NODE_ITERATOR_SIG\n\t\t\t\t\t\t+ \")V\");\n\n\t    _path.translate(classGen, methodGen);\n            LocalVariableGen relPathIterator\n                    = methodGen.addLocalVariable(\"abs_location_path_tmp\",\n                                       Util.getJCRefType(NODE_ITERATOR_SIG),\n                                       il.getEnd(), null);\n            il.append(new ASTORE(relPathIterator.getIndex()));\n\n\t    il.append(new NEW(cpg.addClass(ABSOLUTE_ITERATOR)));\n\t    il.append(DUP);\n            il.append(new ALOAD(relPathIterator.getIndex()));\n\n\t    il.append(new INVOKESPECIAL(initAI));\n\t}\n\telse {\n\t    final int gitr = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t       \"getIterator\",\n\t\t\t\t\t\t       \"()\"+NODE_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(new INVOKEINTERFACE(gitr, 1));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [2, 11], [3, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [13, 21], [14, 22], [7, 23], [15, 24], [16, 25], [18, 26], [19, 27], [8, 28], [9, 29], [21, 30], [23, 31], [23, 32], [25, 33], [26, 34], [27, 35], [28, 36], [28, 37], [28, 38], [28, 39], [29, 40], [29, 41], [31, 42], [40, 43], [40, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 2], [12, 3], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 13], [22, 14], [23, 7], [24, 15], [25, 16], [26, 18], [27, 19], [28, 8], [29, 9], [30, 21], [31, 23], [32, 23], [33, 25], [34, 26], [35, 27], [36, 28], [37, 28], [38, 28], [39, 28], [40, 29], [41, 29], [42, 31], [43, 40], [44, 40], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "AbsoluteLocationPath", "code": "    public AbsoluteLocationPath() {\n\t_path = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AbsoluteLocationPath", "code": "    public AbsoluteLocationPath(Expression path) {\n\t_path = path;\n\tif (path != null) {\n\t    _path.setParent(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "poi-2.5-5905", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hpsf/wellknown/SectionIDMap.java", "language": "java", "name": "org.apache.poi.hpsf.wellknown.SectionIDMap", "code": "public class SectionIDMap extends HashMap\n{\n\n    /**\n     * <p>The SummaryInformation's section's format ID.</p>\n     */\n    public final static byte[] SUMMARY_INFORMATION_ID = new byte[]\n    {\n\t(byte) 0xF2, (byte) 0x9F, (byte) 0x85, (byte) 0xE0,\n\t(byte) 0x4F, (byte) 0xF9, (byte) 0x10, (byte) 0x68,\n\t(byte) 0xAB, (byte) 0x91, (byte) 0x08, (byte) 0x00,\n\t(byte) 0x2B, (byte) 0x27, (byte) 0xB3, (byte) 0xD9\n    };\n\n    /**\n     * <p>The DocumentSummaryInformation's first section's format\n     * ID. The second section has a different format ID which is not\n     * well-known.</p>\n     */\n    public final static byte[] DOCUMENT_SUMMARY_INFORMATION_ID = new byte[]\n    {\n\t(byte) 0xD5, (byte) 0xCD, (byte) 0xD5, (byte) 0x02,\n\t(byte) 0x2E, (byte) 0x9C, (byte) 0x10, (byte) 0x1B,\n\t(byte) 0x93, (byte) 0x97, (byte) 0x08, (byte) 0x00,\n\t(byte) 0x2B, (byte) 0x2C, (byte) 0xF9, (byte) 0xAE\n    };\n\n    public final static String UNDEFINED = \"[undefined]\";\n\n    private static SectionIDMap defaultMap;\n\n\n\n    /**\n     * <p>Returns the singleton instance of the default {@link\n     * SectionIDMap}.</p>\n     *\n     * @return The instance value\n     */\n    public static SectionIDMap getInstance()\n    {\n        if (defaultMap == null)\n\t{\n            final SectionIDMap m = new SectionIDMap();\n            m.put(SUMMARY_INFORMATION_ID,\n\t\t  PropertyIDMap.getSummaryInformationProperties());\n            m.put(DOCUMENT_SUMMARY_INFORMATION_ID,\n\t\t  PropertyIDMap.getDocumentSummaryInformationProperties());\n            defaultMap = m;\n        }\n        return defaultMap;\n    }\n\n\n\n    /**\n     * <p>Returns the property ID string that is associated with a\n     * given property ID in a section format ID's namespace.</p>\n     *\n     * @param sectionFormatID Each section format ID has its own name\n     * space of property ID strings and thus must be specified.\n     * @param  pid The property ID\n     * @return The well-known property ID string associated with the\n     * property ID <var>pid</var> in the name space spanned by <var>\n     * sectionFormatID</var> . If the <var>pid</var>\n     * /<var>sectionFormatID </var> combination is not well-known, the\n     * string \"[undefined]\" is returned.\n     */\n    public static String getPIDString(final byte[] sectionFormatID,\n\t\t\t\t      final int pid)\n    {\n        final PropertyIDMap m =\n\t    (PropertyIDMap) getInstance().get(sectionFormatID);\n        if (m == null)\n            return UNDEFINED;\n        else\n\t{\n            final String s = (String) m.get(pid);\n            if (s == null)\n                return UNDEFINED;\n            return s;\n        }\n    }\n\n\n\n    /**\n     * <p>Returns the {@link PropertyIDMap} for a given section format\n     * ID.</p>\n     */\n    public PropertyIDMap get(final byte[] sectionFormatID)\n    {\n        return (PropertyIDMap) super.get(new String(sectionFormatID));\n    }\n\n\n\n    /**\n     * <p>Returns the {@link PropertyIDMap} for a given section format\n     * ID.</p>\n     *\n     * @param sectionFormatID A section format ID as a <tt>byte[]</tt> .\n     * @deprecated Use {@link #get(byte[])} instead!\n     */\n    public Object get(final Object sectionFormatID)\n    {\n        return get((byte[]) sectionFormatID);\n    }\n\n\n\n    /**\n     * <p>Associates a section format ID with a {@link\n     * PropertyIDMap}.</p>\n     */\n    public Object put(final byte[] sectionFormatID,\n\t\t      final PropertyIDMap propertyIDMap)\n    {\n        return super.put(new String(sectionFormatID), propertyIDMap);\n    }\n\n\n\n    /**\n     * @deprecated Use {@link #put(byte[], PropertyIDMap)} instead!\n     */\n    public Object put(final Object key, final Object value)\n    {\n        return put((byte[]) key, (PropertyIDMap) value);", "functions": [{"function_name": "getInstance", "code": "    public static SectionIDMap getInstance()\n    {\n        if (defaultMap == null)\n\t{\n            final SectionIDMap m = new SectionIDMap();\n            m.put(SUMMARY_INFORMATION_ID,\n\t\t  PropertyIDMap.getSummaryInformationProperties());\n            m.put(DOCUMENT_SUMMARY_INFORMATION_ID,\n\t\t  PropertyIDMap.getDocumentSummaryInformationProperties());\n            defaultMap = m;\n        }\n        return defaultMap;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [7, 9], [8, 10], [4, 11], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 7], [10, 8], [11, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getPIDString", "code": "    public static String getPIDString(final byte[] sectionFormatID,\n\t\t\t\t      final int pid)\n    {\n        final PropertyIDMap m =\n\t    (PropertyIDMap) getInstance().get(sectionFormatID);\n        if (m == null)\n            return UNDEFINED;\n        else\n\t{\n            final String s = (String) m.get(pid);\n            if (s == null)\n                return UNDEFINED;\n            return s;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [8, 11], [8, 12], [2, 13], [12, 14], [13, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 8], [12, 8], [13, 2], [14, 12], [15, 13], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "get", "code": "    public PropertyIDMap get(final byte[] sectionFormatID)\n    {\n        return (PropertyIDMap) super.get(new String(sectionFormatID));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "get", "code": "    public Object get(final Object sectionFormatID)\n    {\n        return get((byte[]) sectionFormatID);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "put", "code": "    public Object put(final byte[] sectionFormatID,\n\t\t      final PropertyIDMap propertyIDMap)\n    {\n        return super.put(new String(sectionFormatID), propertyIDMap);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "put", "code": "    public Object put(final Object key, final Object value)\n    {\n        return put((byte[]) key, (PropertyIDMap) value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.4-2226", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/management/Counter.java", "language": "java", "name": "org.apache.camel.management.Counter", "code": "@ManagedResource(description = \"Counter\", currencyTimeLimit = 15)\npublic class Counter {\n\n    protected AtomicLong numExchanges = new AtomicLong(0L);\n\n    @ManagedOperation(description = \"Reset counters\")\n    public void reset() {\n        numExchanges.set(0L);\n    }\n\n    @ManagedAttribute(description = \"Total number of exchanges\")\n    public long getNumExchanges() throws Exception {\n        return numExchanges.get();\n    }\n\n    public long increment() {\n        return numExchanges.incrementAndGet();", "functions": [{"function_name": "reset", "code": "    @ManagedOperation(description = \"Reset counters\")\n    public void reset() {\n        numExchanges.set(0L);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNumExchanges", "code": "    @ManagedAttribute(description = \"Total number of exchanges\")\n    public long getNumExchanges() throws Exception {\n        return numExchanges.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "increment", "code": "    public long increment() {\n        return numExchanges.incrementAndGet();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-2639", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/cxf/util/NullDestinationFactory.java", "language": "java", "name": "org.apache.camel.component.cxf.util.NullDestinationFactory", "code": "public class NullDestinationFactory implements DestinationFactory {\n\n    public Destination getDestination(EndpointInfo ei) throws IOException {\n        ei.getBinding().setProperty(AbstractBindingFactory.DATABINDING_DISABLED, Boolean.TRUE);\n        return new NullDestination();\n    }\n\n    public List<String> getTransportIds() {\n        return null;\n    }\n\n    public Set<String> getUriPrefixes() {\n        return null;", "functions": [{"function_name": "getDestination", "code": "    public Destination getDestination(EndpointInfo ei) throws IOException {\n        ei.getBinding().setProperty(AbstractBindingFactory.DATABINDING_DISABLED, Boolean.TRUE);\n        return new NullDestination();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getTransportIds", "code": "    public List<String> getTransportIds() {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUriPrefixes", "code": "    public Set<String> getUriPrefixes() {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.5-7135", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/serialize/SerializerUtils.java", "language": "java", "name": "org.apache.xalan.serialize.SerializerUtils", "code": "public class SerializerUtils\n{\n\n    /**\n     * Copy an DOM attribute to the created output element, executing\n     * attribute templates as need be, and processing the xsl:use\n     * attribute.\n     *\n     * @param handler SerializationHandler to which the attributes are added.\n     * @param attr Attribute node to add to SerializationHandler.\n     *\n     * @throws TransformerException\n     */\n    public static void addAttribute(SerializationHandler handler, int attr)\n        throws TransformerException\n    {\n\n        TransformerImpl transformer =\n            (TransformerImpl) handler.getTransformer();\n        DTM dtm = transformer.getXPathContext().getDTM(attr);\n\n        if (SerializerUtils.isDefinedNSDecl(handler, attr, dtm))\n            return;\n\n        String ns = dtm.getNamespaceURI(attr);\n\n        if (ns == null)\n            ns = \"\";\n\n        try\n        {\n            handler.addAttribute(\n                ns,\n                dtm.getLocalName(attr),\n                dtm.getNodeName(attr),\n                \"CDATA\",\n                dtm.getNodeValue(attr));\n        }\n        catch (SAXException e)\n        {\n        }\n\t}\n    /**\n     * Copy DOM attributes to the result element.\n     *\n     * @param src Source node with the attributes\n     *\n     * @throws TransformerException\n     */\n    public static void addAttributes(SerializationHandler handler, int src)\n        throws TransformerException\n    {\n\n        TransformerImpl transformer =\n            (TransformerImpl) handler.getTransformer();\n        DTM dtm = transformer.getXPathContext().getDTM(src);\n\n        for (int node = dtm.getFirstAttribute(src);\n            DTM.NULL != node;\n            node = dtm.getNextAttribute(node))\n        {\n            addAttribute(handler, node);\n        }\n    }\n\n    /**\n     * Given a result tree fragment, walk the tree and\n     * output it to the SerializationHandler.\n     *\n     * @param obj Result tree fragment object\n     * @param support XPath context for the result tree fragment\n     *\n     * @throws org.xml.sax.SAXException\n     */\n    public static void outputResultTreeFragment(\n        SerializationHandler handler,\n        XObject obj,\n        XPathContext support)\n        throws org.xml.sax.SAXException\n    {\n\n        int doc = obj.rtf();\n        DTM dtm = support.getDTM(doc);\n\n        if (null != dtm)\n        {\n            for (int n = dtm.getFirstChild(doc);\n                DTM.NULL != n;\n                n = dtm.getNextSibling(n))\n            {\n                handler.flushPending();\n                if (dtm.getNamespaceURI(n) == null)\n                    handler.startPrefixMapping(\"\", \"\");\n                dtm.dispatchToEvents(n, handler);\n            }\n        }\n    }\n\n    /**\n     * Copy <KBD>xmlns:</KBD> attributes in if not already in scope.\n     *\n     * As a quick hack to support ClonerToResultTree, this can also be used\n     * to copy an individual namespace node.\n     *\n     * @param src Source Node\n     * NEEDSDOC @param type\n     * NEEDSDOC @param dtm\n     *\n     * @throws TransformerException\n     */\n    public static void processNSDecls(\n        SerializationHandler handler,\n        int src,\n        int type,\n        DTM dtm)\n        throws TransformerException\n    {\n\n        try\n        {\n            if (type == DTM.ELEMENT_NODE)\n            {\n                for (int namespace = dtm.getFirstNamespaceNode(src, true);\n                    DTM.NULL != namespace;\n                    namespace = dtm.getNextNamespaceNode(src, namespace, true))\n                {\n\n                    String prefix = dtm.getNodeNameX(namespace);\n                    String desturi = handler.getNamespaceURIFromPrefix(prefix);\n                    String srcURI = dtm.getNodeValue(namespace);\n\n                    if (!srcURI.equalsIgnoreCase(desturi))\n                    {\n                        handler.startPrefixMapping(prefix, srcURI, false);\n                    }\n                }\n            }\n            else if (type == DTM.NAMESPACE_NODE)\n            {\n                String prefix = dtm.getNodeNameX(src);\n                String desturi = handler.getNamespaceURIFromPrefix(prefix);\n                String srcURI = dtm.getNodeValue(src);\n\n                if (!srcURI.equalsIgnoreCase(desturi))\n                {\n                    handler.startPrefixMapping(prefix, srcURI, false);\n                }\n            }\n        }\n        catch (org.xml.sax.SAXException se)\n        {\n            throw new TransformerException(se);\n        }\n    }\n\n    /**\n     * Returns whether a namespace is defined\n     *\n     *\n     * @param attr Namespace attribute node\n     * @param dtm The DTM that owns attr.\n     *\n     * @return True if the namespace is already defined in\n     * list of namespaces\n     */\n    public static boolean isDefinedNSDecl(\n        SerializationHandler serializer,\n        int attr,\n        DTM dtm)\n    {\n\n        if (DTM.NAMESPACE_NODE == dtm.getNodeType(attr))\n        {\n\n            String prefix = dtm.getNodeNameX(attr);\n            String uri = serializer.getNamespaceURIFromPrefix(prefix);\n\n            if ((null != uri) && uri.equals(dtm.getStringValue(attr)))\n                return true;\n        }\n\n        return false;\n    }\n\n    /**\n     * This function checks to make sure a given prefix is really\n     * declared.  It might not be, because it may be an excluded prefix.\n     * If it's not, it still needs to be declared at this point.\n     * TODO: This needs to be done at an earlier stage in the game... -sb\n     *\n     * @param ns Namespace URI of the element\n     * @param rawName Raw name of element (with prefix)\n     *\n     * NEEDSDOC @param dtm\n     * NEEDSDOC @param namespace\n     *\n     * @throws org.xml.sax.SAXException\n     */\n    public static void ensureNamespaceDeclDeclared(\n        SerializationHandler handler,\n        DTM dtm,\n        int namespace)\n        throws org.xml.sax.SAXException\n    {\n\n        String uri = dtm.getNodeValue(namespace);\n        String prefix = dtm.getNodeNameX(namespace);\n\n        if ((uri != null && uri.length() > 0) && (null != prefix))\n        {\n            String foundURI;\n            NamespaceMappings ns = handler.getNamespaceMappings();\n            if (ns != null)\n            {\n\n                foundURI = ns.lookupNamespace(prefix);\n                if ((null == foundURI) || !foundURI.equals(uri))\n                {\n                    handler.startPrefixMapping(prefix, uri, false);", "functions": [{"function_name": "addAttribute", "code": "    public static void addAttribute(SerializationHandler handler, int attr)\n        throws TransformerException\n    {\n\n        TransformerImpl transformer =\n            (TransformerImpl) handler.getTransformer();\n        DTM dtm = transformer.getXPathContext().getDTM(attr);\n\n        if (SerializerUtils.isDefinedNSDecl(handler, attr, dtm))\n            return;\n\n        String ns = dtm.getNamespaceURI(attr);\n\n        if (ns == null)\n            ns = \"\";\n\n        try\n        {\n            handler.addAttribute(\n                ns,\n                dtm.getLocalName(attr),\n                dtm.getNodeName(attr),\n                \"CDATA\",\n                dtm.getNodeValue(attr));", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "BINARY_OP", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [4, 11], [4, 12], [1, 13], [2, 14], [10, 15], [3, 16], [5, 17], [13, 18], [13, 19], [13, 20], [13, 21], [14, 22], [17, 23], [6, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 4], [12, 4], [13, 1], [14, 2], [15, 10], [16, 3], [17, 5], [18, 13], [19, 13], [20, 13], [21, 13], [22, 14], [23, 17], [24, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "addAttributes", "code": "    public static void addAttributes(SerializationHandler handler, int src)\n        throws TransformerException\n    {\n\n        TransformerImpl transformer =\n            (TransformerImpl) handler.getTransformer();\n        DTM dtm = transformer.getXPathContext().getDTM(src);\n\n        for (int node = dtm.getFirstAttribute(src);\n            DTM.NULL != node;\n            node = dtm.getNextAttribute(node))\n        {\n            addAttribute(handler, node);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [1, 10], [1, 11], [9, 12], [3, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 1], [11, 1], [12, 9], [13, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "outputResultTreeFragment", "code": "    public static void outputResultTreeFragment(\n        SerializationHandler handler,\n        XObject obj,\n        XPathContext support)\n        throws org.xml.sax.SAXException\n    {\n\n        int doc = obj.rtf();\n        DTM dtm = support.getDTM(doc);\n\n        if (null != dtm)\n        {\n            for (int n = dtm.getFirstChild(doc);\n                DTM.NULL != n;\n                n = dtm.getNextSibling(n))\n            {\n                handler.flushPending();\n                if (dtm.getNamespaceURI(n) == null)\n                    handler.startPrefixMapping(\"\", \"\");\n                dtm.dispatchToEvents(n, handler);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [2, 10], [3, 11], [8, 12], [8, 13], [8, 14], [12, 15], [8, 16], [14, 17], [8, 18], [8, 19], [14, 20], [17, 21], [17, 22], [20, 23], [20, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 2], [11, 3], [12, 8], [13, 8], [14, 8], [15, 12], [16, 8], [17, 14], [18, 8], [19, 8], [20, 14], [21, 17], [22, 17], [23, 20], [24, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "processNSDecls", "code": "    public static void processNSDecls(\n        SerializationHandler handler,\n        int src,\n        int type,\n        DTM dtm)\n        throws TransformerException\n    {\n\n        try\n        {\n            if (type == DTM.ELEMENT_NODE)\n            {\n                for (int namespace = dtm.getFirstNamespaceNode(src, true);\n                    DTM.NULL != namespace;\n                    namespace = dtm.getNextNamespaceNode(src, namespace, true))\n                {\n\n                    String prefix = dtm.getNodeNameX(namespace);\n                    String desturi = handler.getNamespaceURIFromPrefix(prefix);\n                    String srcURI = dtm.getNodeValue(namespace);\n\n                    if (!srcURI.equalsIgnoreCase(desturi))\n                    {\n                        handler.startPrefixMapping(prefix, srcURI, false);\n                    }\n                }\n            }\n            else if (type == DTM.NAMESPACE_NODE)\n            {\n                String prefix = dtm.getNodeNameX(src);\n                String desturi = handler.getNamespaceURIFromPrefix(prefix);\n                String srcURI = dtm.getNodeValue(src);\n\n                if (!srcURI.equalsIgnoreCase(desturi))\n                {\n                    handler.startPrefixMapping(prefix, srcURI, false);\n                }\n            }\n        }\n        catch (org.xml.sax.SAXException se)\n        {\n            throw new TransformerException(se);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "THROW_RAISE", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [7, 9], [7, 10], [8, 11], [9, 12], [7, 13], [9, 14], [9, 15], [9, 16], [9, 17], [13, 18], [13, 19], [14, 20], [13, 21], [13, 22], [13, 23], [13, 24], [18, 25], [15, 26], [16, 27], [17, 28], [21, 29], [25, 30], [13, 31], [14, 32], [22, 33], [23, 34], [24, 35], [31, 36], [32, 37], [21, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 7], [10, 7], [11, 8], [12, 9], [13, 7], [14, 9], [15, 9], [16, 9], [17, 9], [18, 13], [19, 13], [20, 14], [21, 13], [22, 13], [23, 13], [24, 13], [25, 18], [26, 15], [27, 16], [28, 17], [29, 21], [30, 25], [31, 13], [32, 14], [33, 22], [34, 23], [35, 24], [36, 31], [37, 32], [38, 21], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "isDefinedNSDecl", "code": "    public static boolean isDefinedNSDecl(\n        SerializationHandler serializer,\n        int attr,\n        DTM dtm)\n    {\n\n        if (DTM.NAMESPACE_NODE == dtm.getNodeType(attr))\n        {\n\n            String prefix = dtm.getNodeNameX(attr);\n            String uri = serializer.getNamespaceURIFromPrefix(prefix);\n\n            if ((null != uri) && uri.equals(dtm.getStringValue(attr)))\n                return true;\n        }\n\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [8, 12], [8, 13], [12, 14], [13, 15], [13, 16], [9, 17], [10, 18], [15, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 8], [13, 8], [14, 12], [15, 13], [16, 13], [17, 9], [18, 10], [19, 15], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "ensureNamespaceDeclDeclared", "code": "    public static void ensureNamespaceDeclDeclared(\n        SerializationHandler handler,\n        DTM dtm,\n        int namespace)\n        throws org.xml.sax.SAXException\n    {\n\n        String uri = dtm.getNodeValue(namespace);\n        String prefix = dtm.getNodeNameX(namespace);\n\n        if ((uri != null && uri.length() > 0) && (null != prefix))\n        {\n            String foundURI;\n            NamespaceMappings ns = handler.getNamespaceMappings();\n            if (ns != null)\n            {\n\n                foundURI = ns.lookupNamespace(prefix);\n                if ((null == foundURI) || !foundURI.equals(uri))\n                {\n                    handler.startPrefixMapping(prefix, uri, false);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [7, 12], [2, 13], [3, 14], [8, 15], [11, 16], [12, 17], [12, 18], [8, 19], [15, 20], [9, 21], [17, 22], [17, 23], [18, 24], [19, 25], [8, 26], [25, 27], [25, 28], [26, 29], [19, 30], [28, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 7], [13, 2], [14, 3], [15, 8], [16, 11], [17, 12], [18, 12], [19, 8], [20, 15], [21, 9], [22, 17], [23, 17], [24, 18], [25, 19], [26, 8], [27, 25], [28, 25], [29, 26], [30, 19], [31, 28], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}], "label": 1}
{"sample_id": "ant-1.4-186", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/ExecuteStreamHandler.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.ExecuteStreamHandler", "code": "public interface ExecuteStreamHandler {\n\n    /**\n     * Install a handler for the input stream of the subprocess.\n     *\n     * @param os output stream to write to the standard input stream of the\n     *           subprocess\n     */\n    public void setProcessInputStream(OutputStream os) throws IOException;\n\n    /**\n     * Install a handler for the error stream of the subprocess.\n     *\n     * @param is input stream to read from the error stream from the subprocess\n     */\n    public void setProcessErrorStream(InputStream is) throws IOException;\n\n    /**\n     * Install a handler for the output stream of the subprocess.\n     *\n     * @param is input stream to read from the error stream from the subprocess\n     */\n    public void setProcessOutputStream(InputStream is) throws IOException;\n\n    /**\n     * Start handling of the streams.\n     */\n    public void start() throws IOException;\n\n    /**\n     * Stop handling of the streams - will not be restarted.\n     */\n    public void stop();", "functions": [{"function_name": "setProcessInputStream", "code": "    public void setProcessInputStream(OutputStream os) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessErrorStream", "code": "    public void setProcessErrorStream(InputStream is) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessOutputStream", "code": "    public void setProcessOutputStream(InputStream is) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "start", "code": "    public void start() throws IOException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "stop", "code": "    public void stop();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-1.5-5143", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/poifs/storage/HeaderBlockReader.java", "language": "java", "name": "org.apache.poi.poifs.storage.HeaderBlockReader", "code": "public class HeaderBlockReader\n    implements HeaderBlockConstants\n{\n\n    private IntegerField _bat_count;\n\n    private IntegerField _property_start;\n\n    private IntegerField _sbat_start;\n\n    private IntegerField _xbat_start;\n    private IntegerField _xbat_count;\n    private byte[]       _data;\n\n    /**\n     * create a new HeaderBlockReader from an InputStream\n     *\n     * @param stream the source InputStream\n     *\n     * @exception IOException on errors or bad data\n     */\n\n    public HeaderBlockReader(final InputStream stream)\n        throws IOException\n    {\n        _data = new byte[ POIFSConstants.BIG_BLOCK_SIZE ];\n        int byte_count = stream.read(_data);\n\n        if (byte_count != POIFSConstants.BIG_BLOCK_SIZE)\n        {\n            String type = \" byte\" + ((byte_count == 1) ? (\"\")\n                                                       : (\"s\"));\n\n            throw new IOException(\"Unable to read entire header; \"\n                                  + byte_count + type + \" read; expected \"\n                                  + POIFSConstants.BIG_BLOCK_SIZE + \" bytes\");\n        }\n\n        LongField signature = new LongField(_signature_offset, _data);\n\n        if (signature.get() != _signature)\n        {\n            throw new IOException(\"Invalid header signature; read \"\n                                  + signature.get() + \", expected \"\n                                  + _signature);\n        }\n        _bat_count      = new IntegerField(_bat_count_offset, _data);\n        _property_start = new IntegerField(_property_start_offset, _data);\n        _sbat_start     = new IntegerField(_sbat_start_offset, _data);\n        _xbat_start     = new IntegerField(_xbat_start_offset, _data);\n        _xbat_count     = new IntegerField(_xbat_count_offset, _data);\n    }\n\n    /**\n     * get start of Property Table\n     *\n     * @return the index of the first block of the Property Table\n     */\n\n    public int getPropertyStart()\n    {\n        return _property_start.get();\n    }\n\n    /**\n     * @return start of small block allocation table\n     */\n\n    public int getSBATStart()\n    {\n        return _sbat_start.get();\n    }\n\n    /**\n     * @return number of BAT blocks\n     */\n\n    public int getBATCount()\n    {\n        return _bat_count.get();\n    }\n\n    /**\n     * @return BAT array\n     */\n\n    public int [] getBATArray()\n    {\n        int[] result = new int[ _max_bats_in_header ];\n        int   offset = _bat_array_offset;\n\n        for (int j = 0; j < _max_bats_in_header; j++)\n        {\n            result[ j ] = LittleEndian.getInt(_data, offset);\n            offset      += LittleEndianConsts.INT_SIZE;\n        }\n        return result;\n    }\n\n    /**\n     * @return XBAT count\n     */\n\n    public int getXBATCount()\n    {\n        return _xbat_count.get();\n    }\n\n    /**\n     * @return XBAT index\n     */\n\n    public int getXBATIndex()\n    {\n        return _xbat_start.get();", "functions": [{"function_name": "getPropertyStart", "code": "    public int getPropertyStart()\n    {\n        return _property_start.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSBATStart", "code": "    public int getSBATStart()\n    {\n        return _sbat_start.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBATCount", "code": "    public int getBATCount()\n    {\n        return _bat_count.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBATArray", "code": "    public int [] getBATArray()\n    {\n        int[] result = new int[ _max_bats_in_header ];\n        int   offset = _bat_array_offset;\n\n        for (int j = 0; j < _max_bats_in_header; j++)\n        {\n            result[ j ] = LittleEndian.getInt(_data, offset);\n            offset      += LittleEndianConsts.INT_SIZE;\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getXBATCount", "code": "    public int getXBATCount()\n    {\n        return _xbat_count.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXBATIndex", "code": "    public int getXBATIndex()\n    {\n        return _xbat_start.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HeaderBlockReader", "code": "    public HeaderBlockReader(final InputStream stream)\n        throws IOException\n    {\n        _data = new byte[ POIFSConstants.BIG_BLOCK_SIZE ];\n        int byte_count = stream.read(_data);\n\n        if (byte_count != POIFSConstants.BIG_BLOCK_SIZE)\n        {\n            String type = \" byte\" + ((byte_count == 1) ? (\"\")\n                                                       : (\"s\"));\n\n            throw new IOException(\"Unable to read entire header; \"\n                                  + byte_count + type + \" read; expected \"\n                                  + POIFSConstants.BIG_BLOCK_SIZE + \" bytes\");\n        }\n\n        LongField signature = new LongField(_signature_offset, _data);\n\n        if (signature.get() != _signature)\n        {\n            throw new IOException(\"Invalid header signature; read \"\n                                  + signature.get() + \", expected \"\n                                  + _signature);\n        }\n        _bat_count      = new IntegerField(_bat_count_offset, _data);\n        _property_start = new IntegerField(_property_start_offset, _data);\n        _sbat_start     = new IntegerField(_sbat_start_offset, _data);\n        _xbat_start     = new IntegerField(_xbat_start_offset, _data);\n        _xbat_count     = new IntegerField(_xbat_count_offset, _data);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [3, 12], [0, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [1, 19], [11, 20], [2, 21], [3, 22], [3, 23], [4, 24], [19, 25], [22, 26], [25, 27], [26, 28], [23, 29], [27, 30], [28, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [32, 37], [33, 38], [33, 39], [33, 40], [36, 41], [36, 42], [37, 43], [37, 44], [40, 45], [44, 46], [46, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 3], [13, 0], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 1], [20, 11], [21, 2], [22, 3], [23, 3], [24, 4], [25, 19], [26, 22], [27, 25], [28, 26], [29, 23], [30, 27], [31, 28], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 32], [38, 33], [39, 33], [40, 33], [41, 36], [42, 36], [43, 37], [44, 37], [45, 40], [46, 44], [47, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}], "label": 1}
{"sample_id": "jedit-4.1-4111", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/options/FirewallOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.FirewallOptionPane", "code": "public class FirewallOptionPane extends AbstractOptionPane {\n\n\t//{{{ FirewallOptionPane constructor\n\tpublic FirewallOptionPane()\n\t{\n\t\tsuper(\"firewall\");\n\t} //}}}\n\n\t//{{{ _init() method\n\tpublic void _init()\n\t{\n\t\t// checkbox\n\t\taddComponent(httpEnabled = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.firewall.http.enabled\")));\n\t\t// proxy host\n\t\taddComponent(jEdit.getProperty(\"options.firewall.http.host\"), \n\t\t\thttpHost = new JTextField(jEdit.getProperty(\"firewall.host\"), 15));\n\t\t// proxy port\n\t\taddComponent(jEdit.getProperty(\"options.firewall.http.port\"), \n\t\t\thttpPort = new JTextField(jEdit.getProperty(\"firewall.port\"), 15));\n\t\t// proxy username\n\t\taddComponent(jEdit.getProperty(\"options.firewall.http.user\"),\n\t\t\thttpUser = new JTextField(jEdit.getProperty(\"firewall.user\"), 15));\n\t\t// proxy password\n\t\taddComponent(jEdit.getProperty(\"options.firewall.http.password\"),\n\t\t\thttpPass = new JPasswordField(jEdit.getProperty(\"firewall.password\"), 15));\n\t\t// no proxy for\n\t\taddComponent(jEdit.getProperty(\"options.firewall.http.nonProxy\"),\n\t\t\thttpNonProxy = new JTextField(jEdit.getProperty(\"firewall.nonProxyHosts\"), 15));\n\n\t\tboolean enabled = jEdit.getBooleanProperty(\"firewall.enabled\");\n\t\thttpEnabled.setSelected(enabled);\n\t\thttpHost.setEnabled(enabled);\n\t\thttpPort.setEnabled(enabled);\n\t\thttpUser.setEnabled(enabled);\n\t\thttpPass.setEnabled(enabled);\n\t\thttpNonProxy.setEnabled(enabled);\n\n\t\thttpEnabled.addActionListener(new ActionHandler());\n\n\t\t// checkbox\n\t\taddComponent(socksEnabled = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.firewall.socks.enabled\")));\n\t\t// proxy host\n\t\taddComponent(jEdit.getProperty(\"options.firewall.socks.host\"), \n\t\t\tsocksHost = new JTextField(jEdit.getProperty(\"firewall.socks.host\"), 15));\n\t\t// proxy port\n\t\taddComponent(jEdit.getProperty(\"options.firewall.socks.port\"), \n\t\t\tsocksPort = new JTextField(jEdit.getProperty(\"firewall.socks.port\"), 15));\n\n\t\tenabled = jEdit.getBooleanProperty(\"firewall.socks.enabled\");\n\t\tsocksEnabled.setSelected(enabled);\n\t\tsocksHost.setEnabled(enabled);\n\t\tsocksPort.setEnabled(enabled);\n\n\t\tsocksEnabled.addActionListener(new ActionHandler());\n\t} //}}}\n\n\t//{{{ _save() method\n\tpublic void _save() {\n\t\tjEdit.setBooleanProperty(\"firewall.enabled\", httpEnabled.isSelected());\n\t\tjEdit.setProperty(\"firewall.host\", httpHost.getText());\n\t\tjEdit.setProperty(\"firewall.port\", httpPort.getText());\n\t\tjEdit.setProperty(\"firewall.user\", httpUser.getText());\n\t\tjEdit.setProperty(\"firewall.password\", new String(httpPass.getPassword()));\n\t\tjEdit.setProperty(\"firewall.nonProxyHosts\", httpNonProxy.getText());\n\n\t\tjEdit.setBooleanProperty(\"firewall.socks.enabled\", socksEnabled.isSelected());\n\t\tjEdit.setProperty(\"firewall.socks.host\", socksHost.getText());\n\t\tjEdit.setProperty(\"firewall.socks.port\", socksPort.getText());\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate JCheckBox httpEnabled;\n\tprivate JTextField httpHost;\n\tprivate JTextField httpPort;\n\tprivate JTextField httpUser;\n\tprivate JPasswordField httpPass;\n\tprivate JTextField httpNonProxy;\n\tprivate JCheckBox socksEnabled;\n\tprivate JTextField socksHost;\n\tprivate JTextField socksPort;\n\t//}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\thttpHost.setEnabled(httpEnabled.isSelected());\n\t\t\thttpPort.setEnabled(httpEnabled.isSelected());\n\t\t\thttpUser.setEnabled(httpEnabled.isSelected());\n\t\t\thttpPass.setEnabled(httpEnabled.isSelected());\n\t\t\thttpNonProxy.setEnabled(httpEnabled.isSelected());\n\t\t\tsocksHost.setEnabled(socksEnabled.isSelected());\n\t\t\tsocksPort.setEnabled(socksEnabled.isSelected());", "functions": [{"function_name": "_init", "code": "\tpublic void _init()\n\t{\n\t\t// checkbox\n\t\taddComponent(httpEnabled = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.firewall.http.enabled\")));\n\t\t// proxy host\n\t\taddComponent(jEdit.getProperty(\"options.firewall.http.host\"), \n\t\t\thttpHost = new JTextField(jEdit.getProperty(\"firewall.host\"), 15));\n\t\t// proxy port\n\t\taddComponent(jEdit.getProperty(\"options.firewall.http.port\"), \n\t\t\thttpPort = new JTextField(jEdit.getProperty(\"firewall.port\"), 15));\n\t\t// proxy username\n\t\taddComponent(jEdit.getProperty(\"options.firewall.http.user\"),\n\t\t\thttpUser = new JTextField(jEdit.getProperty(\"firewall.user\"), 15));\n\t\t// proxy password\n\t\taddComponent(jEdit.getProperty(\"options.firewall.http.password\"),\n\t\t\thttpPass = new JPasswordField(jEdit.getProperty(\"firewall.password\"), 15));\n\t\t// no proxy for\n\t\taddComponent(jEdit.getProperty(\"options.firewall.http.nonProxy\"),\n\t\t\thttpNonProxy = new JTextField(jEdit.getProperty(\"firewall.nonProxyHosts\"), 15));\n\n\t\tboolean enabled = jEdit.getBooleanProperty(\"firewall.enabled\");\n\t\thttpEnabled.setSelected(enabled);\n\t\thttpHost.setEnabled(enabled);\n\t\thttpPort.setEnabled(enabled);\n\t\thttpUser.setEnabled(enabled);\n\t\thttpPass.setEnabled(enabled);\n\t\thttpNonProxy.setEnabled(enabled);\n\n\t\thttpEnabled.addActionListener(new ActionHandler());\n\n\t\t// checkbox\n\t\taddComponent(socksEnabled = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.firewall.socks.enabled\")));\n\t\t// proxy host\n\t\taddComponent(jEdit.getProperty(\"options.firewall.socks.host\"), \n\t\t\tsocksHost = new JTextField(jEdit.getProperty(\"firewall.socks.host\"), 15));\n\t\t// proxy port\n\t\taddComponent(jEdit.getProperty(\"options.firewall.socks.port\"), \n\t\t\tsocksPort = new JTextField(jEdit.getProperty(\"firewall.socks.port\"), 15));\n\n\t\tenabled = jEdit.getBooleanProperty(\"firewall.socks.enabled\");\n\t\tsocksEnabled.setSelected(enabled);\n\t\tsocksHost.setEnabled(enabled);\n\t\tsocksPort.setEnabled(enabled);\n\n\t\tsocksEnabled.addActionListener(new ActionHandler());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [2, 23], [6, 24], [7, 25], [7, 26], [8, 27], [8, 28], [9, 29], [10, 30], [1, 31], [17, 32], [17, 33], [18, 34], [18, 35], [19, 36], [19, 37], [20, 38], [20, 39], [21, 40], [21, 41], [22, 42], [24, 43], [25, 44], [26, 45], [27, 46], [28, 47], [29, 48], [31, 49], [32, 50], [33, 51], [34, 52], [35, 53], [36, 54], [37, 55], [38, 56], [39, 57], [40, 58], [41, 59], [42, 60], [44, 61], [44, 62], [46, 63], [46, 64], [48, 65], [50, 66], [50, 67], [52, 68], [52, 69], [54, 70], [54, 71], [56, 72], [56, 73], [58, 74], [58, 75], [60, 76], [62, 77], [64, 78], [65, 79], [67, 80], [69, 81], [71, 82], [73, 83], [75, 84], [76, 85], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 2], [24, 6], [25, 7], [26, 7], [27, 8], [28, 8], [29, 9], [30, 10], [31, 1], [32, 17], [33, 17], [34, 18], [35, 18], [36, 19], [37, 19], [38, 20], [39, 20], [40, 21], [41, 21], [42, 22], [43, 24], [44, 25], [45, 26], [46, 27], [47, 28], [48, 29], [49, 31], [50, 32], [51, 33], [52, 34], [53, 35], [54, 36], [55, 37], [56, 38], [57, 39], [58, 40], [59, 41], [60, 42], [61, 44], [62, 44], [63, 46], [64, 46], [65, 48], [66, 50], [67, 50], [68, 52], [69, 52], [70, 54], [71, 54], [72, 56], [73, 56], [74, 58], [75, 58], [76, 60], [77, 62], [78, 64], [79, 65], [80, 67], [81, 69], [82, 71], [83, 73], [84, 75], [85, 76], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "_save", "code": "\tpublic void _save() {\n\t\tjEdit.setBooleanProperty(\"firewall.enabled\", httpEnabled.isSelected());\n\t\tjEdit.setProperty(\"firewall.host\", httpHost.getText());\n\t\tjEdit.setProperty(\"firewall.port\", httpPort.getText());\n\t\tjEdit.setProperty(\"firewall.user\", httpUser.getText());\n\t\tjEdit.setProperty(\"firewall.password\", new String(httpPass.getPassword()));\n\t\tjEdit.setProperty(\"firewall.nonProxyHosts\", httpNonProxy.getText());\n\n\t\tjEdit.setBooleanProperty(\"firewall.socks.enabled\", socksEnabled.isSelected());\n\t\tjEdit.setProperty(\"firewall.socks.host\", socksHost.getText());\n\t\tjEdit.setProperty(\"firewall.socks.port\", socksPort.getText());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [2, 12], [2, 13], [3, 14], [3, 15], [4, 16], [4, 17], [5, 18], [5, 19], [6, 20], [6, 21], [7, 22], [7, 23], [8, 24], [8, 25], [9, 26], [9, 27], [18, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 2], [13, 2], [14, 3], [15, 3], [16, 4], [17, 4], [18, 5], [19, 5], [20, 6], [21, 6], [22, 7], [23, 7], [24, 8], [25, 8], [26, 9], [27, 9], [28, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "FirewallOptionPane", "code": "\tpublic FirewallOptionPane()\n\t{\n\t\tsuper(\"firewall\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8178", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/jaxp/JAXPPrefixResolver.java", "language": "java", "name": "org.apache.xpath.jaxp.JAXPPrefixResolver", "code": "public class JAXPPrefixResolver implements PrefixResolver\n{\n\n    private NamespaceContext namespaceContext;\n    \n\n    public JAXPPrefixResolver ( NamespaceContext nsContext ) {\n        this.namespaceContext = nsContext;\n    } \n\n\n    public String getNamespaceForPrefix( String prefix ) {\n        return namespaceContext.getNamespaceURI( prefix );\n    }\n\n    /**\n     * Return the base identifier.\n     *\n     * @return null\n     */\n    public String getBaseIdentifier() {\n        return null;\n    }\n\n    /**\n     * @see PrefixResolver#handlesNullPrefixes() \n     */\n    public boolean handlesNullPrefixes() {\n        return false;\n    }\n\n\n    /**\n     * The URI for the XML namespace.\n     * (Duplicate of that found in org.apache.xpath.XPathContext). \n     */\n     \n    public static final String S_XMLNAMESPACEURI = '';\n\n\n    /**\n     * Given a prefix and a Context Node, get the corresponding namespace.\n     * Warning: This will not work correctly if namespaceContext\n     * is an attribute node.\n     * @param prefix Prefix to resolve.\n     * @param namespaceContext Node from which to start searching for a\n     * xmlns attribute that binds a prefix to a namespace.\n     * @return Namespace that prefix resolves to, or null if prefix\n     * is not bound.\n     */\n    public String getNamespaceForPrefix(String prefix,\n                                      org.w3c.dom.Node namespaceContext) {\n        Node parent = namespaceContext;\n        String namespace = null;\n\n        if (prefix.equals(\"xml\")) {\n            namespace = S_XMLNAMESPACEURI;\n        } else {\n            int type;\n\n            while ((null != parent) && (null == namespace)\n                && (((type = parent.getNodeType()) == Node.ELEMENT_NODE)\n                    || (type == Node.ENTITY_REFERENCE_NODE))) {\n\n                if (type == Node.ELEMENT_NODE) {\n                    NamedNodeMap nnm = parent.getAttributes();\n\n                    for (int i = 0; i < nnm.getLength(); i++) {\n                        Node attr = nnm.item(i);\n                        String aname = attr.getNodeName();\n                        boolean isPrefix = aname.startsWith(\"xmlns:\");\n\n                        if (isPrefix || aname.equals(\"xmlns\")) {\n                            int index = aname.indexOf(':');\n                            String p =isPrefix ?aname.substring(index + 1) :\"\";\n\n                            if (p.equals(prefix)) {\n                                namespace = attr.getNodeValue();\n                                break;\n                            }\n                        }\n                    }\n                }\n\n                parent = parent.getParentNode();\n            }\n        }\n        return namespace;", "functions": [{"function_name": "getNamespaceForPrefix", "code": "    public String getNamespaceForPrefix( String prefix ) {\n        return namespaceContext.getNamespaceURI( prefix );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getBaseIdentifier", "code": "    public String getBaseIdentifier() {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "handlesNullPrefixes", "code": "    public boolean handlesNullPrefixes() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamespaceForPrefix", "code": "    public String getNamespaceForPrefix(String prefix,\n                                      org.w3c.dom.Node namespaceContext) {\n        Node parent = namespaceContext;\n        String namespace = null;\n\n        if (prefix.equals(\"xml\")) {\n            namespace = S_XMLNAMESPACEURI;\n        } else {\n            int type;\n\n            while ((null != parent) && (null == namespace)\n                && (((type = parent.getNodeType()) == Node.ELEMENT_NODE)\n                    || (type == Node.ENTITY_REFERENCE_NODE))) {\n\n                if (type == Node.ELEMENT_NODE) {\n                    NamedNodeMap nnm = parent.getAttributes();\n\n                    for (int i = 0; i < nnm.getLength(); i++) {\n                        Node attr = nnm.item(i);\n                        String aname = attr.getNodeName();\n                        boolean isPrefix = aname.startsWith(\"xmlns:\");\n\n                        if (isPrefix || aname.equals(\"xmlns\")) {\n                            int index = aname.indexOf(':');\n                            String p =isPrefix ?aname.substring(index + 1) :\"\";\n\n                            if (p.equals(prefix)) {\n                                namespace = attr.getNodeValue();\n                                break;\n                            }\n                        }\n                    }\n                }\n\n                parent = parent.getParentNode();\n            }\n        }\n        return namespace;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "COND_EXPR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [3, 11], [8, 12], [2, 13], [8, 14], [12, 15], [12, 16], [8, 17], [14, 18], [15, 19], [15, 20], [16, 21], [16, 22], [17, 23], [14, 24], [14, 25], [20, 26], [21, 27], [22, 28], [24, 29], [26, 30], [24, 31], [24, 32], [24, 33], [24, 34], [29, 35], [25, 36], [31, 37], [24, 38], [31, 39], [31, 40], [31, 41], [37, 42], [32, 43], [33, 44], [34, 45], [39, 46], [42, 47], [43, 48], [39, 49], [40, 50], [41, 51], [39, 52], [50, 53], [50, 54], [51, 55], [52, 56], [54, 57], [57, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 3], [12, 8], [13, 2], [14, 8], [15, 12], [16, 12], [17, 8], [18, 14], [19, 15], [20, 15], [21, 16], [22, 16], [23, 17], [24, 14], [25, 14], [26, 20], [27, 21], [28, 22], [29, 24], [30, 26], [31, 24], [32, 24], [33, 24], [34, 24], [35, 29], [36, 25], [37, 31], [38, 24], [39, 31], [40, 31], [41, 31], [42, 37], [43, 32], [44, 33], [45, 34], [46, 39], [47, 42], [48, 43], [49, 39], [50, 40], [51, 41], [52, 39], [53, 50], [54, 50], [55, 51], [56, 52], [57, 54], [58, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "JAXPPrefixResolver", "code": "    public JAXPPrefixResolver ( NamespaceContext nsContext ) {\n        this.namespaceContext = nsContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.7-1039", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/helper/ProjectHelperImpl.java", "language": "java", "name": "org.apache.tools.ant.helper.ProjectHelperImpl", "code": "public class ProjectHelperImpl extends ProjectHelper {\n\n    /**\n     * helper for path -> URI and URI -> path conversions.\n     */\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n\n    /**\n     * SAX 1 style parser used to parse the given file. This may\n     * in fact be a SAX 2 XMLReader wrapped in an XMLReaderAdapter.\n     */\n    private org.xml.sax.Parser parser;\n\n    /** The project to configure. */\n    private Project project;\n    /** The configuration file to parse. */\n    private File buildFile;\n    /**\n     * Parent directory of the build file. Used for resolving entities\n     * and setting the project's base directory.\n     */\n    private File buildFileParent;\n    /**\n     * Locator for the configuration file parser.\n     * Used for giving locations of errors etc.\n     */\n    private Locator locator;\n    /**\n     * Target that all other targets will depend upon implicitly.\n     *\n     * <p>This holds all tasks and data type definitions that have\n     * been placed outside of targets.</p>\n     */\n    private Target implicitTarget = new Target();\n\n    /**\n     * default constructor\n     */\n    public ProjectHelperImpl() {\n        implicitTarget.setName(\"\");\n    }\n\n    /**\n     * Parses the project file, configuring the project as it goes.\n     *\n     * @param project project instance to be configured.\n     * @param source the source from which the project is read.\n     * @exception BuildException if the configuration is invalid or cannot\n     *                           be read.\n     */\n    public void parse(Project project, Object source) throws BuildException {\n        if (!(source instanceof File)) {\n            throw new BuildException(\"Only File source supported by \"\n                + \"default plugin\");\n        }\n        File bFile = (File) source;\n        FileInputStream inputStream = null;\n        InputSource inputSource = null;\n\n        this.project = project;\n        this.buildFile = new File(bFile.getAbsolutePath());\n        buildFileParent = new File(this.buildFile.getParent());\n\n        try {\n            try {\n                parser = JAXPUtils.getParser();\n            } catch (BuildException e) {\n                parser = new XMLReaderAdapter(JAXPUtils.getXMLReader());\n            }\n\n\n            String uri = FILE_UTILS.toURI(bFile.getAbsolutePath());\n            inputStream = new FileInputStream(bFile);\n            inputSource = new InputSource(inputStream);\n            inputSource.setSystemId(uri);\n            project.log(\"parsing buildfile \" + bFile + \" with URI = \"\n                + uri, Project.MSG_VERBOSE);\n            HandlerBase hb = new RootHandler(this);\n            parser.setDocumentHandler(hb);\n            parser.setEntityResolver(hb);\n            parser.setErrorHandler(hb);\n            parser.setDTDHandler(hb);\n            parser.parse(inputSource);\n        } catch (SAXParseException exc) {\n            Location location =\n                new Location(exc.getSystemId(), exc.getLineNumber(),\n                    exc.getColumnNumber());\n\n            Throwable t = exc.getException();\n            if (t instanceof BuildException) {\n                BuildException be = (BuildException) t;\n                if (be.getLocation() == Location.UNKNOWN_LOCATION) {\n                    be.setLocation(location);\n                }\n                throw be;\n            }\n\n            throw new BuildException(exc.getMessage(), t, location);\n        } catch (SAXException exc) {\n            Throwable t = exc.getException();\n            if (t instanceof BuildException) {\n                throw (BuildException) t;\n            }\n            throw new BuildException(exc.getMessage(), t);\n        } catch (FileNotFoundException exc) {\n            throw new BuildException(exc);\n        } catch (UnsupportedEncodingException exc) {\n            throw new BuildException(\"Encoding of project file is invalid.\",\n                                     exc);\n        } catch (IOException exc) {\n            throw new BuildException(\"Error reading project file: \"\n                                     + exc.getMessage(), exc);\n        } finally {\n            FileUtils.close(inputStream);\n        }\n    }\n\n    /**\n     * The common superclass for all SAX event handlers used to parse\n     * the configuration file. Each method just throws an exception,\n     * so subclasses should override what they can handle.\n     *\n     * Each type of XML element (task, target, etc.) in Ant has\n     * a specific subclass.\n     *\n     * In the constructor, this class takes over the handling of SAX\n     * events from the parent handler and returns\n     * control back to the parent in the endElement method.\n     */\n    static class AbstractHandler extends HandlerBase {\n\n        /**\n         * Previous handler for the document.\n         * When the next element is finished, control returns\n         * to this handler.\n         */\n        protected DocumentHandler parentHandler;\n\n        /** Helper impl. With non-static internal classes, the compiler will generate\n            this automatically - but this will fail with some compilers ( reporting\n            \"Expecting to find object/array on stack\" ). If we pass it\n            explicitly it'll work with more compilers.\n        */\n        ProjectHelperImpl helperImpl;\n\n        /**\n         * Creates a handler and sets the parser to use it\n         * for the current element.\n         *\n         * @param helperImpl the ProjectHelperImpl instance associated\n         *                   with this handler.\n         *\n         * @param parentHandler The handler which should be restored to the\n         *                      parser at the end of the element.\n         *                      Must not be <code>null</code>.\n         */\n        public AbstractHandler(ProjectHelperImpl helperImpl, DocumentHandler parentHandler) {\n            this.parentHandler = parentHandler;\n            this.helperImpl = helperImpl;\n\n            helperImpl.parser.setDocumentHandler(this);\n        }\n\n        /**\n         * Handles the start of an element. This base implementation just\n         * throws an exception.\n         *\n         * @param tag The name of the element being started.\n         *            Will not be <code>null</code>.\n         * @param attrs Attributes of the element being started.\n         *              Will not be <code>null</code>.\n         *\n         * @exception SAXParseException if this method is not overridden, or in\n         *                              case of error in an overridden version\n         */\n        public void startElement(String tag, AttributeList attrs) throws SAXParseException {\n            throw new SAXParseException(\"Unexpected element \\\"\" + tag + \"\\\"\", helperImpl.locator);\n        }\n\n        /**\n         * Handles text within an element. This base implementation just\n         * throws an exception.\n         *\n         * @param buf A character array of the text within the element.\n         *            Will not be <code>null</code>.\n         * @param start The start element in the array.\n         * @param count The number of characters to read from the array.\n         *\n         * @exception SAXParseException if this method is not overridden, or in\n         *                              case of error in an overridden version\n         */\n        public void characters(char[] buf, int start, int count) throws SAXParseException {\n            String s = new String(buf, start, count).trim();\n\n            if (s.length() > 0) {\n                throw new SAXParseException(\"Unexpected text \\\"\" + s + \"\\\"\", helperImpl.locator);\n            }\n        }\n\n        /**\n         * Handles the end of an element. Any required clean-up is performed\n         * by the finished() method and then the original handler is restored to\n         * the parser.\n         *\n         * @param name The name of the element which is ending.\n         *             Will not be <code>null</code>.\n         *\n         * @exception SAXException in case of error (not thrown in\n         *                         this implementation)\n         */\n        public void endElement(String name) throws SAXException {\n            helperImpl.parser.setDocumentHandler(parentHandler);\n        }\n    }\n\n    /**\n     * Handler for the root element. Its only child must be the \"project\" element.\n     */\n    static class RootHandler extends HandlerBase {\n        ProjectHelperImpl helperImpl;\n\n        public RootHandler(ProjectHelperImpl helperImpl) {\n            this.helperImpl = helperImpl;\n        }\n\n        /**\n         * Resolves file: URIs relative to the build file.\n         *\n         * @param publicId The public identifier, or <code>null</code>\n         *                 if none is available. Ignored in this\n         *                 implementation.\n         * @param systemId The system identifier provided in the XML\n         *                 document. Will not be <code>null</code>.\n         */\n        public InputSource resolveEntity(String publicId,\n                                         String systemId) {\n\n            helperImpl.project.log(\"resolving systemId: \" + systemId, Project.MSG_VERBOSE);\n\n            if (systemId.startsWith(\"file:\")) {\n                String path = FILE_UTILS.fromURI(systemId);\n\n                File file = new File(path);\n                if (!file.isAbsolute()) {\n                    file = FILE_UTILS.resolveFile(helperImpl.buildFileParent, path);\n                    helperImpl.project.log(\n                            \"Warning: '\" + systemId + \"' in \" + helperImpl.buildFile\n                            + \" should be expressed simply as '\" + path.replace('\\\\', '/')\n                            + \"' for compliance with other XML tools\",\n                            Project.MSG_WARN);\n                }\n                try {\n                    InputSource inputSource = new InputSource(new FileInputStream(file));\n                    inputSource.setSystemId(FILE_UTILS.toURI(file.getAbsolutePath()));\n                    return inputSource;\n                } catch (FileNotFoundException fne) {\n                    helperImpl.project.log(file.getAbsolutePath() + \" could not be found\",\n                                Project.MSG_WARN);\n                }\n            }\n            return null;\n        }\n\n        /**\n         * Handles the start of a project element. A project handler is created\n         * and initialised with the element name and attributes.\n         *\n         * @param tag The name of the element being started.\n         *            Will not be <code>null</code>.\n         * @param attrs Attributes of the element being started.\n         *              Will not be <code>null</code>.\n         *\n         * @exception SAXParseException if the tag given is not\n         *                              <code>\"project\"</code>\n         */\n        public void startElement(String tag, AttributeList attrs) throws SAXParseException {\n            if (tag.equals(\"project\")) {\n                new ProjectHandler(helperImpl, this).init(tag, attrs);\n            } else {\n                throw new SAXParseException(\"Config file is not of expected \"\n                    + \"XML type\", helperImpl.locator);\n            }\n        }\n\n        /**\n         * Sets the locator in the project helper for future reference.\n         *\n         * @param locator The locator used by the parser.\n         *                Will not be <code>null</code>.\n         */\n        public void setDocumentLocator(Locator locator) {\n            helperImpl.locator = locator;\n        }\n    }\n\n    /**\n     * Handler for the top level \"project\" element.\n     */\n    static class ProjectHandler extends AbstractHandler {\n\n        /**\n         * Constructor which just delegates to the superconstructor.\n         *\n         * @param parentHandler The handler which should be restored to the\n         *                      parser at the end of the element.\n         *                      Must not be <code>null</code>.\n         */\n        public ProjectHandler(ProjectHelperImpl helperImpl, DocumentHandler parentHandler) {\n            super(helperImpl, parentHandler);\n        }\n\n        /**\n         * Initialisation routine called after handler creation\n         * with the element name and attributes. The attributes which\n         * this handler can deal with are: <code>\"default\"</code>,\n         * <code>\"name\"</code>, <code>\"id\"</code> and <code>\"basedir\"</code>.\n         *\n         * @param tag Name of the element which caused this handler\n         *            to be created. Should not be <code>null</code>.\n         *            Ignored in this implementation.\n         * @param attrs Attributes of the element which caused this\n         *              handler to be created. Must not be <code>null</code>.\n         *\n         * @exception SAXParseException if an unexpected attribute is\n         *            encountered or if the <code>\"default\"</code> attribute\n         *            is missing.\n         */\n        public void init(String tag, AttributeList attrs) throws SAXParseException {\n            String def = null;\n            String name = null;\n            String id = null;\n            String baseDir = null;\n\n            for (int i = 0; i < attrs.getLength(); i++) {\n                String key = attrs.getName(i);\n                String value = attrs.getValue(i);\n\n                if (key.equals(\"default\")) {\n                    def = value;\n                } else if (key.equals(\"name\")) {\n                    name = value;\n                } else if (key.equals(\"id\")) {\n                    id = value;\n                } else if (key.equals(\"basedir\")) {\n                    baseDir = value;\n                } else {\n                    throw new SAXParseException(\"Unexpected attribute \\\"\" + attrs.getName(i) + \"\\\"\",\n                                                helperImpl.locator);\n                }\n            }\n\n            if (def != null && !def.equals(\"\")) {\n                helperImpl.project.setDefaultTarget(def);\n            } else {\n                throw new BuildException(\"The default attribute is required\");\n            }\n\n            if (name != null) {\n                helperImpl.project.setName(name);\n                helperImpl.project.addReference(name, helperImpl.project);\n            }\n\n            if (id != null) {\n                helperImpl.project.addReference(id, helperImpl.project);\n            }\n\n            if (helperImpl.project.getProperty(\"basedir\") != null) {\n                helperImpl.project.setBasedir(helperImpl.project.getProperty(\"basedir\"));\n            } else {\n                if (baseDir == null) {\n                    helperImpl.project.setBasedir(helperImpl.buildFileParent.getAbsolutePath());\n                } else {\n                    if ((new File(baseDir)).isAbsolute()) {\n                        helperImpl.project.setBasedir(baseDir);\n                    } else {\n                        File resolvedBaseDir = FILE_UTILS.resolveFile(\n                                helperImpl.buildFileParent, baseDir);\n                        helperImpl.project.setBaseDir(resolvedBaseDir);\n                    }\n                }\n            }\n\n            helperImpl.project.addTarget(\"\", helperImpl.implicitTarget);\n        }\n\n        /**\n         * Handles the start of a top-level element within the project. An\n         * appropriate handler is created and initialised with the details\n         * of the element.\n         *\n         * @param name The name of the element being started.\n         *            Will not be <code>null</code>.\n         * @param attrs Attributes of the element being started.\n         *              Will not be <code>null</code>.\n         *\n         * @exception SAXParseException if the tag given is not\n         *            <code>\"taskdef\"</code>, <code>\"typedef\"</code>,\n         *            <code>\"property\"</code>, <code>\"target\"</code>\n         *            or a data type definition\n         */\n        public void startElement(String name, AttributeList attrs) throws SAXParseException {\n            if (name.equals(\"target\")) {\n                handleTarget(name, attrs);\n            } else {\n                handleElement(helperImpl, this, helperImpl.implicitTarget,\n                              name, attrs);\n            }\n        }\n\n        /**\n         * Handles a target definition element by creating a target handler\n         * and initialising is with the details of the element.\n         *\n         * @param tag The name of the element to be handled.\n         *            Will not be <code>null</code>.\n         * @param attrs Attributes of the element to be handled.\n         *              Will not be <code>null</code>.\n         *\n         * @exception SAXParseException if an error occurs initialising\n         *                              the handler\n         */\n        private void handleTarget(String tag, AttributeList attrs) throws SAXParseException {\n            new TargetHandler(helperImpl, this).init(tag, attrs);\n        }\n\n    }\n\n    /**\n     * Handler for \"target\" elements.\n     */\n    static class TargetHandler extends AbstractHandler {\n        private Target target;\n\n        /**\n         * Constructor which just delegates to the superconstructor.\n         *\n         * @param parentHandler The handler which should be restored to the\n         *                      parser at the end of the element.\n         *                      Must not be <code>null</code>.\n         */\n        public TargetHandler(ProjectHelperImpl helperImpl, DocumentHandler parentHandler) {\n            super(helperImpl, parentHandler);\n        }\n\n        /**\n         * Initialisation routine called after handler creation\n         * with the element name and attributes. The attributes which\n         * this handler can deal with are: <code>\"name\"</code>,\n         * <code>\"depends\"</code>, <code>\"if\"</code>,\n         * <code>\"unless\"</code>, <code>\"id\"</code> and\n         * <code>\"description\"</code>.\n         *\n         * @param tag Name of the element which caused this handler\n         *            to be created. Should not be <code>null</code>.\n         *            Ignored in this implementation.\n         * @param attrs Attributes of the element which caused this\n         *              handler to be created. Must not be <code>null</code>.\n         *\n         * @exception SAXParseException if an unexpected attribute is encountered\n         *            or if the <code>\"name\"</code> attribute is missing.\n         */\n        public void init(String tag, AttributeList attrs) throws SAXParseException {\n            String name = null;\n            String depends = \"\";\n            String ifCond = null;\n            String unlessCond = null;\n            String id = null;\n            String description = null;\n\n            for (int i = 0; i < attrs.getLength(); i++) {\n                String key = attrs.getName(i);\n                String value = attrs.getValue(i);\n\n                if (key.equals(\"name\")) {\n                    name = value;\n                    if (name.equals(\"\")) {\n                        throw new BuildException(\"name attribute must not\"\n                                                 + \" be empty\",\n                                                 new Location(helperImpl.locator));\n                    }\n                } else if (key.equals(\"depends\")) {\n                    depends = value;\n                } else if (key.equals(\"if\")) {\n                    ifCond = value;\n                } else if (key.equals(\"unless\")) {\n                    unlessCond = value;\n                } else if (key.equals(\"id\")) {\n                    id = value;\n                } else if (key.equals(\"description\")) {\n                    description = value;\n                } else {\n                    throw new SAXParseException(\"Unexpected attribute \\\"\"\n                        + key + \"\\\"\", helperImpl.locator);\n                }\n            }\n\n            if (name == null) {\n                throw new SAXParseException(\"target element appears without a name attribute\",\n                                            helperImpl.locator);\n            }\n\n            target = new Target();\n\n            target.addDependency(\"\");\n\n            target.setName(name);\n            target.setIf(ifCond);\n            target.setUnless(unlessCond);\n            target.setDescription(description);\n            helperImpl.project.addTarget(name, target);\n\n            if (id != null && !id.equals(\"\")) {\n                helperImpl.project.addReference(id, target);\n            }\n\n\n            if (depends.length() > 0) {\n                target.setDepends(depends);\n            }\n        }\n\n        /**\n         * Handles the start of an element within a target.\n         *\n         * @param name The name of the element being started.\n         *            Will not be <code>null</code>.\n         * @param attrs Attributes of the element being started.\n         *              Will not be <code>null</code>.\n         *\n         * @exception SAXParseException if an error occurs when initialising\n         *                              the appropriate child handler\n         */\n        public void startElement(String name, AttributeList attrs) throws SAXParseException {\n            handleElement(helperImpl, this, target, name, attrs);\n        }\n    }\n\n    /**\n     * Start a new DataTypeHandler if element is known to be a\n     * data-type and a TaskHandler otherwise.\n     *\n     * <p>Factored out of TargetHandler.</p>\n     *\n     * @since Ant 1.6\n     */\n    private static void handleElement(ProjectHelperImpl helperImpl,\n                                      DocumentHandler parent,\n                                      Target target, String elementName,\n                                      AttributeList attrs)\n        throws SAXParseException {\n        if (elementName.equals(\"description\")) {\n            new DescriptionHandler(helperImpl, parent);\n        } else if (helperImpl.project.getDataTypeDefinitions()\n                   .get(elementName) != null) {\n            new DataTypeHandler(helperImpl, parent, target)\n                .init(elementName, attrs);\n        } else {\n            new TaskHandler(helperImpl, parent, target, null, target)\n                .init(elementName, attrs);\n        }\n    }\n\n    /**\n     * Handler for \"description\" elements.\n     */\n    static class DescriptionHandler extends AbstractHandler {\n\n        /**\n         * Constructor which just delegates to the superconstructor.\n         *\n         * @param parentHandler The handler which should be restored to the\n         *                      parser at the end of the element.\n         *                      Must not be <code>null</code>.\n         */\n        public DescriptionHandler(ProjectHelperImpl helperImpl,\n                                  DocumentHandler parentHandler) {\n            super(helperImpl, parentHandler);\n        }\n\n        /**\n         * Adds the text as description to the project.\n         *\n         * @param buf A character array of the text within the element.\n         *            Will not be <code>null</code>.\n         * @param start The start element in the array.\n         * @param count The number of characters to read from the array.\n         */\n        public void characters(char[] buf, int start, int count) {\n            String text = new String(buf, start, count);\n            String currentDescription = helperImpl.project.getDescription();\n            if (currentDescription == null) {\n                helperImpl.project.setDescription(text);\n            } else {\n                helperImpl.project.setDescription(currentDescription + text);\n            }\n        }\n\n    }\n\n    /**\n     * Handler for all task elements.\n     */\n    static class TaskHandler extends AbstractHandler {\n        /** Containing target, if any. */\n        private Target target;\n        /**\n         * Container for the task, if any. If target is\n         * non-<code>null</code>, this must be too.\n         */\n        private TaskContainer container;\n        /**\n         * Task created by this handler.\n         */\n        private Task task;\n        /**\n         * Wrapper for the parent element, if any. The wrapper for this\n         * element will be added to this wrapper as a child.\n         */\n        private RuntimeConfigurable parentWrapper;\n        /**\n         * Wrapper for this element which takes care of actually configuring\n         * the element, if this element is contained within a target.\n         * Otherwise the configuration is performed with the configure method.\n         * @see ProjectHelper#configure(Object,AttributeList,Project)\n         */\n        private RuntimeConfigurable wrapper = null;\n\n        /**\n         * Constructor.\n         *\n         * @param parentHandler The handler which should be restored to the\n         *                      parser at the end of the element.\n         *                      Must not be <code>null</code>.\n         *\n         * @param container     Container for the element.\n         *                      Must not be <code>null</code>.\n         *\n         * @param parentWrapper Wrapper for the parent element, if any.\n         *                      May be <code>null</code>.\n         *\n         * @param target        Target this element is part of.\n         *                      Must not be <code>null</code>.\n         */\n        public TaskHandler(ProjectHelperImpl helperImpl, DocumentHandler parentHandler,\n                           TaskContainer container,\n                           RuntimeConfigurable parentWrapper, Target target) {\n            super(helperImpl, parentHandler);\n            this.container = container;\n            this.parentWrapper = parentWrapper;\n            this.target = target;\n        }\n\n        /**\n         * Initialisation routine called after handler creation\n         * with the element name and attributes. This configures\n         * the element with its attributes and sets it up with\n         * its parent container (if any). Nested elements are then\n         * added later as the parser encounters them.\n         *\n         * @param tag Name of the element which caused this handler\n         *            to be created. Must not be <code>null</code>.\n         *\n         * @param attrs Attributes of the element which caused this\n         *              handler to be created. Must not be <code>null</code>.\n         *\n         * @exception SAXParseException in case of error (not thrown in\n         *                              this implementation)\n         */\n        public void init(String tag, AttributeList attrs) throws SAXParseException {\n            try {\n                task = helperImpl.project.createTask(tag);\n            } catch (BuildException e) {\n            }\n\n            if (task == null) {\n                task = new UnknownElement(tag);\n                task.setProject(helperImpl.project);\n                task.setTaskName(tag);\n            }\n\n            task.setLocation(new Location(helperImpl.locator));\n            helperImpl.configureId(task, attrs);\n\n            task.setOwningTarget(target);\n            container.addTask(task);\n            task.init();\n            wrapper = task.getRuntimeConfigurableWrapper();\n            wrapper.setAttributes(attrs);\n            if (parentWrapper != null) {\n                parentWrapper.addChild(wrapper);\n            }\n        }\n\n        /**\n         * Adds text to the task, using the wrapper.\n         *\n         * @param buf A character array of the text within the element.\n         *            Will not be <code>null</code>.\n         * @param start The start element in the array.\n         * @param count The number of characters to read from the array.\n         */\n        public void characters(char[] buf, int start, int count) {\n            wrapper.addText(buf, start, count);\n        }\n\n        /**\n         * Handles the start of an element within a target. Task containers\n         * will always use another task handler, and all other tasks\n         * will always use a nested element handler.\n         *\n         * @param name The name of the element being started.\n         *            Will not be <code>null</code>.\n         * @param attrs Attributes of the element being started.\n         *              Will not be <code>null</code>.\n         *\n         * @exception SAXParseException if an error occurs when initialising\n         *                              the appropriate child handler\n         */\n        public void startElement(String name, AttributeList attrs) throws SAXParseException {\n            if (task instanceof TaskContainer) {\n                new TaskHandler(helperImpl, this, (TaskContainer) task,\n                    wrapper, target).init(name, attrs);\n            } else {\n                new NestedElementHandler(helperImpl, this, task,\n                    wrapper, target).init(name, attrs);\n            }\n        }\n    }\n\n    /**\n     * Handler for all nested properties.\n     */\n    static class NestedElementHandler extends AbstractHandler {\n        /** Parent object (task/data type/etc). */\n        private Object parent;\n        /** The nested element itself. */\n        private Object child;\n        /**\n         * Wrapper for the parent element, if any. The wrapper for this\n         * element will be added to this wrapper as a child.\n         */\n        private RuntimeConfigurable parentWrapper;\n        /**\n         * Wrapper for this element which takes care of actually configuring\n         * the element, if a parent wrapper is provided.\n         * Otherwise the configuration is performed with the configure method.\n         * @see ProjectHelper#configure(Object,AttributeList,Project)\n         */\n        private RuntimeConfigurable childWrapper = null;\n        /** Target this element is part of, if any. */\n        private Target target;\n\n        /**\n         * Constructor.\n         *\n         * @param parentHandler The handler which should be restored to the\n         *                      parser at the end of the element.\n         *                      Must not be <code>null</code>.\n         *\n         * @param parent        Parent of this element (task/data type/etc).\n         *                      Must not be <code>null</code>.\n         *\n         * @param parentWrapper Wrapper for the parent element, if any.\n         *                      Must not be <code>null</code>.\n         *\n         * @param target        Target this element is part of.\n         *                      Must not be <code>null</code>.\n         */\n        public NestedElementHandler(ProjectHelperImpl helperImpl,\n                                    DocumentHandler parentHandler,\n                                    Object parent,\n                                    RuntimeConfigurable parentWrapper,\n                                    Target target) {\n            super(helperImpl, parentHandler);\n\n            if (parent instanceof TypeAdapter) {\n                this.parent = ((TypeAdapter) parent).getProxy();\n            } else {\n                this.parent = parent;\n            }\n            this.parentWrapper = parentWrapper;\n            this.target = target;\n        }\n\n        /**\n         * Initialisation routine called after handler creation\n         * with the element name and attributes. This configures\n         * the element with its attributes and sets it up with\n         * its parent container (if any). Nested elements are then\n         * added later as the parser encounters them.\n         *\n         * @param propType Name of the element which caused this handler\n         *            to be created. Must not be <code>null</code>.\n         *\n         * @param attrs Attributes of the element which caused this\n         *              handler to be created. Must not be <code>null</code>.\n         *\n         * @exception SAXParseException in case of error, such as a\n         *            BuildException being thrown during configuration.\n         */\n        public void init(String propType, AttributeList attrs) throws SAXParseException {\n            Class parentClass = parent.getClass();\n            IntrospectionHelper ih =\n                IntrospectionHelper.getHelper(helperImpl.project, parentClass);\n\n            try {\n                String elementName = propType.toLowerCase(Locale.US);\n                if (parent instanceof UnknownElement) {\n                    UnknownElement uc = new UnknownElement(elementName);\n                    uc.setProject(helperImpl.project);\n                    ((UnknownElement) parent).addChild(uc);\n                    child = uc;\n                } else {\n                    child = ih.createElement(helperImpl.project, parent, elementName);\n                }\n\n                helperImpl.configureId(child, attrs);\n\n                childWrapper = new RuntimeConfigurable(child, propType);\n                childWrapper.setAttributes(attrs);\n                parentWrapper.addChild(childWrapper);\n            } catch (BuildException exc) {\n                throw new SAXParseException(exc.getMessage(), helperImpl.locator, exc);\n            }\n        }\n\n        /**\n         * Adds text to the element, using the wrapper.\n         *\n         * @param buf A character array of the text within the element.\n         *            Will not be <code>null</code>.\n         * @param start The start element in the array.\n         * @param count The number of characters to read from the array.\n         */\n        public void characters(char[] buf, int start, int count) {\n            childWrapper.addText(buf, start, count);\n        }\n\n        /**\n         * Handles the start of an element within this one. Task containers\n         * will always use a task handler, and all other elements\n         * will always use another nested element handler.\n         *\n         * @param name The name of the element being started.\n         *            Will not be <code>null</code>.\n         * @param attrs Attributes of the element being started.\n         *              Will not be <code>null</code>.\n         *\n         * @exception SAXParseException if an error occurs when initialising\n         *                              the appropriate child handler\n         */\n        public void startElement(String name, AttributeList attrs) throws SAXParseException {\n            if (child instanceof TaskContainer) {\n                new TaskHandler(helperImpl, this, (TaskContainer) child,\n                    childWrapper, target).init(name, attrs);\n            } else {\n                new NestedElementHandler(helperImpl, this, child,\n                    childWrapper, target).init(name, attrs);\n            }\n        }\n    }\n\n    /**\n     * Handler for all data types directly subordinate to project or target.\n     */\n    static class DataTypeHandler extends AbstractHandler {\n        /** Parent target, if any. */\n        private Target target;\n        /** The element being configured. */\n        private Object element;\n        /** Wrapper for this element, if it's part of a target. */\n        private RuntimeConfigurable wrapper = null;\n\n        /**\n         * Constructor with a target specified.\n         *\n         * @param parentHandler The handler which should be restored to the\n         *                      parser at the end of the element.\n         *                      Must not be <code>null</code>.\n         *\n         * @param target The parent target of this element.\n         *               Must not be <code>null</code>.\n         */\n        public DataTypeHandler(ProjectHelperImpl helperImpl,\n                               DocumentHandler parentHandler, Target target) {\n            super(helperImpl, parentHandler);\n            this.target = target;\n        }\n\n        /**\n         * Initialisation routine called after handler creation\n         * with the element name and attributes. This configures\n         * the element with its attributes and sets it up with\n         * its parent container (if any). Nested elements are then\n         * added later as the parser encounters them.\n         *\n         * @param propType Name of the element which caused this handler\n         *            to be created. Must not be <code>null</code>.\n         *\n         * @param attrs Attributes of the element which caused this\n         *              handler to be created. Must not be <code>null</code>.\n         *\n         * @exception SAXParseException in case of error, such as a\n         *            BuildException being thrown during configuration.\n         */\n        public void init(String propType, AttributeList attrs) throws SAXParseException {\n            try {\n                element = helperImpl.project.createDataType(propType);\n                if (element == null) {\n                    throw new BuildException(\"Unknown data type \" + propType);\n                }\n\n                wrapper = new RuntimeConfigurable(element, propType);\n                wrapper.setAttributes(attrs);\n                target.addDataType(wrapper);\n            } catch (BuildException exc) {\n                throw new SAXParseException(exc.getMessage(), helperImpl.locator, exc);\n            }\n        }\n\n        /**\n         * Adds text to the using the wrapper.\n         *\n         * @param buf A character array of the text within the element.\n         *            Will not be <code>null</code>.\n         * @param start The start element in the array.\n         * @param count The number of characters to read from the array.\n         *\n         * @see ProjectHelper#addText(Project,Object,char[],int,int)\n         */\n        public void characters(char[] buf, int start, int count) {\n            wrapper.addText(buf, start, count);\n        }\n\n        /**\n         * Handles the start of an element within this one.\n         * This will always use a nested element handler.\n         *\n         * @param name The name of the element being started.\n         *            Will not be <code>null</code>.\n         * @param attrs Attributes of the element being started.\n         *              Will not be <code>null</code>.\n         *\n         * @exception SAXParseException if an error occurs when initialising\n         *                              the child handler\n         */\n        public void startElement(String name, AttributeList attrs) throws SAXParseException {\n            new NestedElementHandler(helperImpl, this, element, wrapper, target).init(name, attrs);\n        }\n    }\n\n    /**\n     * Scans an attribute list for the <code>id</code> attribute and\n     * stores a reference to the target object in the project if an\n     * id is found.\n     * <p>\n     * This method was moved out of the configure method to allow\n     * it to be executed at parse time.\n     *\n     * @see #configure(Object,AttributeList,Project)\n     */\n    private void configureId(Object target, AttributeList attr) {\n        String id = attr.getValue(\"id\");\n        if (id != null) {\n            project.addReference(id, target);", "functions": [{"function_name": "parse", "code": "    public void parse(Project project, Object source) throws BuildException {\n        if (!(source instanceof File)) {\n            throw new BuildException(\"Only File source supported by \"\n                + \"default plugin\");\n        }\n        File bFile = (File) source;\n        FileInputStream inputStream = null;\n        InputSource inputSource = null;\n\n        this.project = project;\n        this.buildFile = new File(bFile.getAbsolutePath());\n        buildFileParent = new File(this.buildFile.getParent());\n\n        try {\n            try {\n                parser = JAXPUtils.getParser();\n            } catch (BuildException e) {\n                parser = new XMLReaderAdapter(JAXPUtils.getXMLReader());\n            }\n\n\n            String uri = FILE_UTILS.toURI(bFile.getAbsolutePath());\n            inputStream = new FileInputStream(bFile);\n            inputSource = new InputSource(inputStream);\n            inputSource.setSystemId(uri);\n            project.log(\"parsing buildfile \" + bFile + \" with URI = \"\n                + uri, Project.MSG_VERBOSE);\n            HandlerBase hb = new RootHandler(this);\n            parser.setDocumentHandler(hb);\n            parser.setEntityResolver(hb);\n            parser.setErrorHandler(hb);\n            parser.setDTDHandler(hb);\n            parser.parse(inputSource);\n        } catch (SAXParseException exc) {\n            Location location =\n                new Location(exc.getSystemId(), exc.getLineNumber(),\n                    exc.getColumnNumber());\n\n            Throwable t = exc.getException();\n            if (t instanceof BuildException) {\n                BuildException be = (BuildException) t;\n                if (be.getLocation() == Location.UNKNOWN_LOCATION) {\n                    be.setLocation(location);\n                }\n                throw be;\n            }\n\n            throw new BuildException(exc.getMessage(), t, location);\n        } catch (SAXException exc) {\n            Throwable t = exc.getException();\n            if (t instanceof BuildException) {\n                throw (BuildException) t;\n            }\n            throw new BuildException(exc.getMessage(), t);\n        } catch (FileNotFoundException exc) {\n            throw new BuildException(exc);\n        } catch (UnsupportedEncodingException exc) {\n            throw new BuildException(\"Encoding of project file is invalid.\",\n                                     exc);\n        } catch (IOException exc) {\n            throw new BuildException(\"Error reading project file: \"\n                                     + exc.getMessage(), exc);\n        } finally {\n            FileUtils.close(inputStream);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "VAR_DECL", "VAR_DECL", "TRY", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "IF", "VAR_DECL", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [0, 16], [0, 17], [0, 18], [5, 19], [1, 20], [8, 21], [9, 22], [10, 23], [11, 24], [11, 25], [11, 26], [12, 27], [12, 28], [12, 29], [12, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [15, 40], [16, 41], [17, 42], [2, 43], [3, 44], [5, 45], [21, 46], [22, 47], [23, 48], [24, 49], [25, 50], [27, 51], [28, 52], [13, 53], [36, 54], [38, 55], [39, 56], [14, 57], [15, 58], [42, 59], [45, 60], [46, 61], [47, 62], [49, 63], [25, 64], [26, 65], [51, 66], [28, 67], [28, 68], [28, 69], [29, 70], [30, 71], [54, 72], [57, 73], [40, 74], [58, 75], [41, 76], [60, 77], [61, 78], [61, 79], [68, 80], [71, 81], [71, 82], [71, 83], [72, 84], [72, 85], [74, 86], [77, 87], [77, 88], [80, 89], [85, 90], [86, 91], [68, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 0], [17, 0], [18, 0], [19, 5], [20, 1], [21, 8], [22, 9], [23, 10], [24, 11], [25, 11], [26, 11], [27, 12], [28, 12], [29, 12], [30, 12], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 15], [41, 16], [42, 17], [43, 2], [44, 3], [45, 5], [46, 21], [47, 22], [48, 23], [49, 24], [50, 25], [51, 27], [52, 28], [53, 13], [54, 36], [55, 38], [56, 39], [57, 14], [58, 15], [59, 42], [60, 45], [61, 46], [62, 47], [63, 49], [64, 25], [65, 26], [66, 51], [67, 28], [68, 28], [69, 28], [70, 29], [71, 30], [72, 54], [73, 57], [74, 40], [75, 58], [76, 41], [77, 60], [78, 61], [79, 61], [80, 68], [81, 71], [82, 71], [83, 71], [84, 72], [85, 72], [86, 74], [87, 77], [88, 77], [89, 80], [90, 85], [91, 86], [92, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "handleElement", "code": "    private static void handleElement(ProjectHelperImpl helperImpl,\n                                      DocumentHandler parent,\n                                      Target target, String elementName,\n                                      AttributeList attrs)\n        throws SAXParseException {\n        if (elementName.equals(\"description\")) {\n            new DescriptionHandler(helperImpl, parent);\n        } else if (helperImpl.project.getDataTypeDefinitions()\n                   .get(elementName) != null) {\n            new DataTypeHandler(helperImpl, parent, target)\n                .init(elementName, attrs);\n        } else {\n            new TaskHandler(helperImpl, parent, target, null, target)\n                .init(elementName, attrs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [9, 11], [9, 12], [1, 13], [7, 14], [7, 15], [12, 16], [14, 17], [14, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 9], [12, 9], [13, 1], [14, 7], [15, 7], [16, 12], [17, 14], [18, 14], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "configureId", "code": "    private void configureId(Object target, AttributeList attr) {\n        String id = attr.getValue(\"id\");\n        if (id != null) {\n            project.addReference(id, target);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ProjectHelperImpl", "code": "    public ProjectHelperImpl() {\n        implicitTarget.setName(\"\");", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-3.2-3709", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/pluginmgr/PluginManagerProgress.java", "language": "java", "name": "org.gjt.sp.jedit.pluginmgr.PluginManagerProgress", "code": "public class PluginManagerProgress extends JDialog\n{\n\tpublic PluginManagerProgress(JDialog dialog, String caption, Roster roster)\n\t{\n\t\tsuper(JOptionPane.getFrameForComponent(dialog),caption,true);\n\n\t\tthis.roster = roster;\n\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tglobalProgress = new JProgressBar();\n\t\tglobalProgress.setStringPainted(true);\n\t\tglobalProgress.setString(caption);\n\n\t\tcount = roster.getOperationCount();\n\n\t\tglobalProgress.setMaximum(count);\n\t\tcontent.add(BorderLayout.NORTH,globalProgress);\n\n\t\tlocalProgress = new JProgressBar();\n\t\tlocalProgress.setStringPainted(true);\n\t\tcontent.add(BorderLayout.CENTER,localProgress);\n\n\t\tstop = new JButton(jEdit.getProperty(\"plugin-manager.progress.stop\"));\n\t\tstop.addActionListener(new ActionHandler());\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.add(Box.createGlue());\n\t\tpanel.add(stop);\n\t\tpanel.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,panel);\n\n\t\taddWindowListener(new WindowHandler());\n\n\t\tpack();\n\n\t\tDimension screen = getToolkit().getScreenSize();\n\t\tDimension size = getSize();\n\t\tsize.width = Math.max(size.width,500);\n\t\tsetSize(size);\n\t\tsetLocationRelativeTo(dialog);\n\n\t\tshow();\n\t}\n\n\tpublic void removing(String plugin)\n\t{\n\t\tString[] args = { plugin };\n\t\tshowMessage(jEdit.getProperty(\"plugin-manager.progress.removing\",args));\n\t\tstop.setEnabled(true);\n\t}\n\n\tpublic void downloading(String plugin)\n\t{\n\t\tString[] args = { plugin };\n\t\tshowMessage(jEdit.getProperty(\"plugin-manager.progress.downloading\",args));\n\t\tstop.setEnabled(true);\n\t}\n\n\tpublic void installing(String plugin)\n\t{\n\t\tString[] args = { plugin };\n\t\tshowMessage(jEdit.getProperty(\"plugin-manager.progress.installing\",args));\n\t\tstop.setEnabled(false);\n\t}\n\n\tpublic void setMaximum(final int total)\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tlocalProgress.setMaximum(total);\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic void setValue(final int value)\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tlocalProgress.setValue(value);\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic void done(final boolean ok)\n\t{\n\t\tthis.ok |= ok;\n\n\t\ttry\n\t\t{\n\t\t\tif(!ok || done == count)\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeAndWait(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tdispose();\n\t\t\t\t\t\tif(ok)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tGUIUtilities.message(PluginManagerProgress.this,\n\t\t\t\t\t\t\t\t\"plugin-manager.done\",null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// user will see an error in any case\n\n\t\t\t\t\t\t\t//GUIUtilities.message(PluginManagerProgress.this,\n\t\t\t\t\t\t\t//\t\"plugin-manager.failed\",null);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeAndWait(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tglobalProgress.setValue(done++);\n\t\t\t\t\t\tlocalProgress.setValue(0);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t}\n\t}\n\n\tpublic boolean isOK()\n\t{\n\t\treturn ok;\n\t}\n\n\t// private members\n\tprivate Thread thread;\n\n\tprivate JProgressBar globalProgress, localProgress;\n\tprivate JButton stop;\n\tprivate int count;\n\tprivate int done = 1;\n\n\tprivate boolean ok;\n\n\tprivate Roster roster;\n\n\tprivate void showMessage(final String msg)\n\t{\n\t\ttry\n\t\t{\n\t\t\tSwingUtilities.invokeAndWait(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tlocalProgress.setString(msg);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t}\n\n\t\tThread.yield();\n\t}\n\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == stop)\n\t\t\t{\n\t\t\t\tthread.interrupt();\n\t\t\t\tdispose();\n\t\t\t}\n\t\t}\n\t}\n\n\tclass WindowHandler extends WindowAdapter\n\t{\n\t\tboolean done;\n\n\t\tpublic void windowActivated(WindowEvent evt)\n\t\t{\n\t\t\tif(done)\n\t\t\t\treturn;\n\n\t\t\tdone = true;\n\t\t\tthread = new RosterThread();\n\t\t\tthread.start();\n\t\t}\n\n\t\tpublic void windowClosing(WindowEvent evt)\n\t\t{\n\t\t\tthread.interrupt();\n\t\t\tdispose();\n\t\t}\n\t}\n\n\tclass RosterThread extends Thread\n\t{\n\t\tRosterThread()\n\t\t{\n\t\t\tsuper(\"Plugin manager thread\");\n\t\t}\n\n\t\tpublic void run()\n\t\t{\n\t\t\troster.performOperations(PluginManagerProgress.this);", "functions": [{"function_name": "removing", "code": "\tpublic void removing(String plugin)\n\t{\n\t\tString[] args = { plugin };\n\t\tshowMessage(jEdit.getProperty(\"plugin-manager.progress.removing\",args));\n\t\tstop.setEnabled(true);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "downloading", "code": "\tpublic void downloading(String plugin)\n\t{\n\t\tString[] args = { plugin };\n\t\tshowMessage(jEdit.getProperty(\"plugin-manager.progress.downloading\",args));\n\t\tstop.setEnabled(true);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "installing", "code": "\tpublic void installing(String plugin)\n\t{\n\t\tString[] args = { plugin };\n\t\tshowMessage(jEdit.getProperty(\"plugin-manager.progress.installing\",args));\n\t\tstop.setEnabled(false);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setMaximum", "code": "\tpublic void setMaximum(final int total)\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tlocalProgress.setMaximum(total);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setValue", "code": "\tpublic void setValue(final int value)\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tlocalProgress.setValue(value);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "done", "code": "\tpublic void done(final boolean ok)\n\t{\n\t\tthis.ok |= ok;\n\n\t\ttry\n\t\t{\n\t\t\tif(!ok || done == count)\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeAndWait(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tdispose();\n\t\t\t\t\t\tif(ok)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tGUIUtilities.message(PluginManagerProgress.this,\n\t\t\t\t\t\t\t\t\"plugin-manager.done\",null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// user will see an error in any case\n\n\t\t\t\t\t\t\t//GUIUtilities.message(PluginManagerProgress.this,\n\t\t\t\t\t\t\t//\t\"plugin-manager.failed\",null);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeAndWait(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tglobalProgress.setValue(done++);\n\t\t\t\t\t\tlocalProgress.setValue(0);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [4, 6], [6, 7], [4, 8], [4, 9], [8, 10], [9, 11], [10, 12], [11, 13], [13, 14], [12, 15], [12, 16], [13, 17], [15, 18], [14, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 4], [7, 6], [8, 4], [9, 4], [10, 8], [11, 9], [12, 10], [13, 11], [14, 13], [15, 12], [16, 12], [17, 13], [18, 15], [19, 14], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "isOK", "code": "\tpublic boolean isOK()\n\t{\n\t\treturn ok;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "showMessage", "code": "\tprivate void showMessage(final String msg)\n\t{\n\t\ttry\n\t\t{\n\t\t\tSwingUtilities.invokeAndWait(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tlocalProgress.setString(msg);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t}\n\n\t\tThread.yield();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CALL", "CATCH", "CALL", "CALL", "FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "PluginManagerProgress", "code": "\tpublic PluginManagerProgress(JDialog dialog, String caption, Roster roster)\n\t{\n\t\tsuper(JOptionPane.getFrameForComponent(dialog),caption,true);\n\n\t\tthis.roster = roster;\n\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tglobalProgress = new JProgressBar();\n\t\tglobalProgress.setStringPainted(true);\n\t\tglobalProgress.setString(caption);\n\n\t\tcount = roster.getOperationCount();\n\n\t\tglobalProgress.setMaximum(count);\n\t\tcontent.add(BorderLayout.NORTH,globalProgress);\n\n\t\tlocalProgress = new JProgressBar();\n\t\tlocalProgress.setStringPainted(true);\n\t\tcontent.add(BorderLayout.CENTER,localProgress);\n\n\t\tstop = new JButton(jEdit.getProperty(\"plugin-manager.progress.stop\"));\n\t\tstop.addActionListener(new ActionHandler());\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.add(Box.createGlue());\n\t\tpanel.add(stop);\n\t\tpanel.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,panel);\n\n\t\taddWindowListener(new WindowHandler());\n\n\t\tpack();\n\n\t\tDimension screen = getToolkit().getScreenSize();\n\t\tDimension size = getSize();\n\t\tsize.width = Math.max(size.width,500);\n\t\tsetSize(size);\n\t\tsetLocationRelativeTo(dialog);\n\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [11, 35], [1, 36], [2, 37], [13, 38], [15, 39], [17, 40], [18, 41], [3, 42], [19, 43], [20, 44], [22, 45], [23, 46], [26, 47], [28, 48], [29, 49], [31, 50], [4, 51], [35, 52], [37, 53], [44, 54], [50, 55], [50, 56], [50, 57], [50, 58], [51, 59], [54, 60], [59, 61], [59, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 11], [36, 1], [37, 2], [38, 13], [39, 15], [40, 17], [41, 18], [42, 3], [43, 19], [44, 20], [45, 22], [46, 23], [47, 26], [48, 28], [49, 29], [50, 31], [51, 4], [52, 35], [53, 37], [54, 44], [55, 50], [56, 50], [57, 50], [58, 50], [59, 51], [60, 54], [61, 59], [62, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}], "label": 1}
{"sample_id": "jedit-4.2-4242", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "bsh/JavaCharStream.java", "language": "java", "name": "bsh.JavaCharStream", "code": "public class JavaCharStream\n{\n  public static final boolean staticFlag = false;\n  static final int hexval(char c) throws java.io.IOException {\n    switch(c)\n    {\n       case '0' :\n          return 0;\n       case '1' :\n          return 1;\n       case '2' :\n          return 2;\n       case '3' :\n          return 3;\n       case '4' :\n          return 4;\n       case '5' :\n          return 5;\n       case '6' :\n          return 6;\n       case '7' :\n          return 7;\n       case '8' :\n          return 8;\n       case '9' :\n          return 9;\n\n       case 'a' :\n       case 'A' :\n          return 10;\n       case 'b' :\n       case 'B' :\n          return 11;\n       case 'c' :\n       case 'C' :\n          return 12;\n       case 'd' :\n       case 'D' :\n          return 13;\n       case 'e' :\n       case 'E' :\n          return 14;\n       case 'f' :\n       case 'F' :\n          return 15;\n    }\n\n    throw new java.io.IOException(); // Should never come here\n  }\n\n  public int bufpos = -1;\n  int bufsize;\n  int available;\n  int tokenBegin;\n  protected int bufline[];\n  protected int bufcolumn[];\n\n  protected int column = 0;\n  protected int line = 1;\n\n  protected boolean prevCharIsCR = false;\n  protected boolean prevCharIsLF = false;\n\n  protected java.io.Reader inputStream;\n\n  protected char[] nextCharBuf;\n  protected char[] buffer;\n  protected int maxNextCharInd = 0;\n  protected int nextCharInd = -1;\n  protected int inBuf = 0;\n\n  protected void ExpandBuff(boolean wrapAround)\n  {\n     char[] newbuffer = new char[bufsize + 2048];\n     int newbufline[] = new int[bufsize + 2048];\n     int newbufcolumn[] = new int[bufsize + 2048];\n\n     try\n     {\n        if (wrapAround)\n        {\n           System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin);\n           System.arraycopy(buffer, 0, newbuffer,\n                                             bufsize - tokenBegin, bufpos);\n           buffer = newbuffer;\n\n           System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);\n           System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos);\n           bufline = newbufline;\n\n           System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin);\n           System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos);\n           bufcolumn = newbufcolumn;\n\n           bufpos += (bufsize - tokenBegin);\n        }\n        else\n        {\n           System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin);\n           buffer = newbuffer;\n\n           System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);\n           bufline = newbufline;\n\n           System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin);\n           bufcolumn = newbufcolumn;\n\n           bufpos -= tokenBegin;\n        }\n     }\n     catch (Throwable t)\n     {\n        throw new Error(t.getMessage());\n     }\n\n     available = (bufsize += 2048);\n     tokenBegin = 0;\n  }\n\n  protected void FillBuff() throws java.io.IOException\n  {\n     int i;\n     if (maxNextCharInd == 4096)\n        maxNextCharInd = nextCharInd = 0;\n\n     try {\n        if ((i = inputStream.read(nextCharBuf, maxNextCharInd,\n                                            4096 - maxNextCharInd)) == -1)\n        {\n           inputStream.close();\n           throw new java.io.IOException();\n        }\n        else\n           maxNextCharInd += i;\n        return;\n     }\n     catch(java.io.IOException e) {\n        if (bufpos != 0)\n        {\n           --bufpos;\n           backup(0);\n        }\n        else\n        {\n           bufline[bufpos] = line;\n           bufcolumn[bufpos] = column;\n        }\n        throw e;\n     }\n  }\n\n  protected char ReadByte() throws java.io.IOException\n  {\n     if (++nextCharInd >= maxNextCharInd)\n        FillBuff();\n\n     return nextCharBuf[nextCharInd];\n  }\n\n  public char BeginToken() throws java.io.IOException\n  {     \n     if (inBuf > 0)\n     {\n        --inBuf;\n\n        if (++bufpos == bufsize)\n           bufpos = 0;\n\n        tokenBegin = bufpos;\n        return buffer[bufpos];\n     }\n\n     tokenBegin = 0;\n     bufpos = -1;\n\n     return readChar();\n  }     \n\n  protected void AdjustBuffSize()\n  {\n     if (available == bufsize)\n     {\n        if (tokenBegin > 2048)\n        {\n           bufpos = 0;\n           available = tokenBegin;\n        }\n        else\n           ExpandBuff(false);\n     }\n     else if (available > tokenBegin)\n        available = bufsize;\n     else if ((tokenBegin - available) < 2048)\n        ExpandBuff(true);\n     else\n        available = tokenBegin;\n  }\n\n  protected void UpdateLineColumn(char c)\n  {\n     column++;\n\n     if (prevCharIsLF)\n     {\n        prevCharIsLF = false;\n        line += (column = 1);\n     }\n     else if (prevCharIsCR)\n     {\n        prevCharIsCR = false;\n        if (c == '\\n')\n        {\n           prevCharIsLF = true;\n        }\n        else\n           line += (column = 1);\n     }\n\n     switch (c)\n     {\n        case '\\r' :\n           prevCharIsCR = true;\n           break;\n        case '\\n' :\n           prevCharIsLF = true;\n           break;\n        case '\\t' :\n           column--;\n           column += (8 - (column & 07));\n           break;\n        default :\n           break;\n     }\n\n     bufline[bufpos] = line;\n     bufcolumn[bufpos] = column;\n  }\n\n  public char readChar() throws java.io.IOException\n  {\n     if (inBuf > 0)\n     {\n        --inBuf;\n\n        if (++bufpos == bufsize)\n           bufpos = 0;\n\n        return buffer[bufpos];\n     }\n\n     char c;\n\n     if (++bufpos == available)\n        AdjustBuffSize();\n\n     if ((buffer[bufpos] = c = ReadByte()) == '\\\\')\n     {\n        UpdateLineColumn(c);\n\n        int backSlashCnt = 1;\n\n        for (;;) // Read all the backslashes\n        {\n           if (++bufpos == available)\n              AdjustBuffSize();\n\n           try\n           {\n              if ((buffer[bufpos] = c = ReadByte()) != '\\\\')\n              {\n                 UpdateLineColumn(c);\n                 // found a non-backslash char.\n                 if ((c == 'u') && ((backSlashCnt & 1) == 1))\n                 {\n                    if (--bufpos < 0)\n                       bufpos = bufsize - 1;\n\n                    break;\n                 }\n\n                 backup(backSlashCnt);\n                 return '\\\\';\n              }\n           }\n           catch(java.io.IOException e)\n           {\n              if (backSlashCnt > 1)\n                 backup(backSlashCnt);\n\n              return '\\\\';\n           }\n\n           UpdateLineColumn(c);\n           backSlashCnt++;\n        }\n\n        // Here, we have seen an odd number of backslash's followed by a 'u'\n        try\n        {\n           while ((c = ReadByte()) == 'u')\n              ++column;\n\n           buffer[bufpos] = c = (char)(hexval(c) << 12 |\n                                       hexval(ReadByte()) << 8 |\n                                       hexval(ReadByte()) << 4 |\n                                       hexval(ReadByte()));\n\n           column += 4;\n        }\n        catch(java.io.IOException e)\n        {\n           throw new Error(\"Invalid escape character at line \" + line +\n                                         \" column \" + column + \".\");\n        }\n\n        if (backSlashCnt == 1)\n           return c;\n        else\n        {\n           backup(backSlashCnt - 1);\n           return '\\\\';\n        }\n     }\n     else\n     {\n        UpdateLineColumn(c);\n        return (c);\n     }\n  }\n\n  /**\n   * @deprecated \n   * @see #getEndColumn\n   */\n\n  public int getColumn() {\n     return bufcolumn[bufpos];\n  }\n\n  /**\n   * @deprecated \n   * @see #getEndLine\n   */\n\n  public int getLine() {\n     return bufline[bufpos];\n  }\n\n  public int getEndColumn() {\n     return bufcolumn[bufpos];\n  }\n\n  public int getEndLine() {\n     return bufline[bufpos];\n  }\n\n  public int getBeginColumn() {\n     return bufcolumn[tokenBegin];\n  }\n\n  public int getBeginLine() {\n     return bufline[tokenBegin];\n  }\n\n  public void backup(int amount) {\n\n    inBuf += amount;\n    if ((bufpos -= amount) < 0)\n       bufpos += bufsize;\n  }\n\n  public JavaCharStream(java.io.Reader dstream,\n                 int startline, int startcolumn, int buffersize)\n  {\n    inputStream = dstream;\n    line = startline;\n    column = startcolumn - 1;\n\n    available = bufsize = buffersize;\n    buffer = new char[buffersize];\n    bufline = new int[buffersize];\n    bufcolumn = new int[buffersize];\n    nextCharBuf = new char[4096];\n  }\n\n  public JavaCharStream(java.io.Reader dstream,\n                                        int startline, int startcolumn)\n  {\n     this(dstream, startline, startcolumn, 4096);\n  }\n\n  public JavaCharStream(java.io.Reader dstream)\n  {\n     this(dstream, 1, 1, 4096);\n  }\n  public void ReInit(java.io.Reader dstream,\n                 int startline, int startcolumn, int buffersize)\n  {\n    inputStream = dstream;\n    line = startline;\n    column = startcolumn - 1;\n\n    if (buffer == null || buffersize != buffer.length)\n    {\n      available = bufsize = buffersize;\n      buffer = new char[buffersize];\n      bufline = new int[buffersize];\n      bufcolumn = new int[buffersize];\n      nextCharBuf = new char[4096];\n    }\n    prevCharIsLF = prevCharIsCR = false;\n    tokenBegin = inBuf = maxNextCharInd = 0;\n    nextCharInd = bufpos = -1;\n  }\n\n  public void ReInit(java.io.Reader dstream,\n                                        int startline, int startcolumn)\n  {\n     ReInit(dstream, startline, startcolumn, 4096);\n  }\n\n  public void ReInit(java.io.Reader dstream)\n  {\n     ReInit(dstream, 1, 1, 4096);\n  }\n  public JavaCharStream(java.io.InputStream dstream, int startline,\n  int startcolumn, int buffersize)\n  {\n     this(new java.io.InputStreamReader(dstream), startline, startcolumn, 4096);\n  }\n\n  public JavaCharStream(java.io.InputStream dstream, int startline,\n                                                           int startcolumn)\n  {\n     this(dstream, startline, startcolumn, 4096);\n  }\n\n  public JavaCharStream(java.io.InputStream dstream)\n  {\n     this(dstream, 1, 1, 4096);\n  }\n\n  public void ReInit(java.io.InputStream dstream, int startline,\n  int startcolumn, int buffersize)\n  {\n     ReInit(new java.io.InputStreamReader(dstream), startline, startcolumn, 4096);\n  }\n  public void ReInit(java.io.InputStream dstream, int startline,\n                                                           int startcolumn)\n  {\n     ReInit(dstream, startline, startcolumn, 4096);\n  }\n  public void ReInit(java.io.InputStream dstream)\n  {\n     ReInit(dstream, 1, 1, 4096);\n  }\n\n  public String GetImage()\n  {\n     if (bufpos >= tokenBegin)\n        return new String(buffer, tokenBegin, bufpos - tokenBegin + 1);\n     else\n        return new String(buffer, tokenBegin, bufsize - tokenBegin) +\n                              new String(buffer, 0, bufpos + 1);\n  }\n\n  public char[] GetSuffix(int len)\n  {\n     char[] ret = new char[len];\n\n     if ((bufpos + 1) >= len)\n        System.arraycopy(buffer, bufpos - len + 1, ret, 0, len);\n     else\n     {\n        System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0,\n                                                          len - bufpos - 1);\n        System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1);\n     }\n\n     return ret;\n  }\n\n  public void Done()\n  {\n     nextCharBuf = null;\n     buffer = null;\n     bufline = null;\n     bufcolumn = null;\n  }\n\n  /**\n   * Method to adjust line and column numbers for the start of a token.<BR>\n   */\n  public void adjustBeginLineColumn(int newLine, int newCol)\n  {\n     int start = tokenBegin;\n     int len;\n\n     if (bufpos >= tokenBegin)\n     {\n        len = bufpos - tokenBegin + inBuf + 1;\n     }\n     else\n     {\n        len = bufsize - tokenBegin + bufpos + 1 + inBuf;\n     }\n\n     int i = 0, j = 0, k = 0;\n     int nextColDiff = 0, columnDiff = 0;\n\n     while (i < len &&\n            bufline[j = start % bufsize] == bufline[k = ++start % bufsize])\n     {\n        bufline[j] = newLine;\n        nextColDiff = columnDiff + bufcolumn[k] - bufcolumn[j];\n        bufcolumn[j] = newCol + columnDiff;\n        columnDiff = nextColDiff;\n        i++;\n     } \n\n     if (i < len)\n     {\n        bufline[j] = newLine++;\n        bufcolumn[j] = newCol + columnDiff;\n\n        while (i++ < len)\n        {\n           if (bufline[j = start % bufsize] != bufline[++start % bufsize])\n              bufline[j] = newLine++;\n           else\n              bufline[j] = newLine;\n        }\n     }\n\n     line = bufline[j];\n     column = bufcolumn[j];", "functions": [{"function_name": "hexval", "code": "  static final int hexval(char c) throws java.io.IOException {\n    switch(c)\n    {\n       case '0' :\n          return 0;\n       case '1' :\n          return 1;\n       case '2' :\n          return 2;\n       case '3' :\n          return 3;\n       case '4' :\n          return 4;\n       case '5' :\n          return 5;\n       case '6' :\n          return 6;\n       case '7' :\n          return 7;\n       case '8' :\n          return 8;\n       case '9' :\n          return 9;\n\n       case 'a' :\n       case 'A' :\n          return 10;\n       case 'b' :\n       case 'B' :\n          return 11;\n       case 'c' :\n       case 'C' :\n          return 12;\n       case 'd' :\n       case 'D' :\n          return 13;\n       case 'e' :\n       case 'E' :\n          return 14;\n       case 'f' :\n       case 'F' :\n          return 15;\n    }\n\n    throw new java.io.IOException(); // Should never come here", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "PARAM", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [5, 43], [8, 44], [11, 45], [14, 46], [17, 47], [20, 48], [23, 49], [25, 50], [27, 51], [29, 52], [31, 53], [33, 54], [35, 55], [37, 56], [39, 57], [41, 58], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 5], [44, 8], [45, 11], [46, 14], [47, 17], [48, 20], [49, 23], [50, 25], [51, 27], [52, 29], [53, 31], [54, 33], [55, 35], [56, 37], [57, 39], [58, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "ExpandBuff", "code": "  protected void ExpandBuff(boolean wrapAround)\n  {\n     char[] newbuffer = new char[bufsize + 2048];\n     int newbufline[] = new int[bufsize + 2048];\n     int newbufcolumn[] = new int[bufsize + 2048];\n\n     try\n     {\n        if (wrapAround)\n        {\n           System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin);\n           System.arraycopy(buffer, 0, newbuffer,\n                                             bufsize - tokenBegin, bufpos);\n           buffer = newbuffer;\n\n           System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);\n           System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos);\n           bufline = newbufline;\n\n           System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin);\n           System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos);\n           bufcolumn = newbufcolumn;\n\n           bufpos += (bufsize - tokenBegin);\n        }\n        else\n        {\n           System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin);\n           buffer = newbuffer;\n\n           System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);\n           bufline = newbufline;\n\n           System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin);\n           bufcolumn = newbufcolumn;\n\n           bufpos -= tokenBegin;\n        }\n     }\n     catch (Throwable t)\n     {\n        throw new Error(t.getMessage());\n     }\n\n     available = (bufsize += 2048);\n     tokenBegin = 0;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "CATCH", "IF", "LITERAL_ANCHOR", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [6, 10], [7, 11], [8, 12], [11, 13], [12, 14], [2, 15], [3, 16], [4, 17], [14, 18], [9, 19], [9, 20], [9, 21], [9, 22], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [9, 28], [9, 29], [9, 30], [9, 31], [9, 32], [9, 33], [9, 34], [9, 35], [15, 36], [16, 37], [17, 38], [21, 39], [21, 40], [23, 41], [23, 42], [25, 43], [25, 44], [26, 45], [28, 46], [28, 47], [29, 48], [29, 49], [31, 50], [31, 51], [32, 52], [32, 53], [34, 54], [34, 55], [35, 56], [35, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 6], [11, 7], [12, 8], [13, 11], [14, 12], [15, 2], [16, 3], [17, 4], [18, 14], [19, 9], [20, 9], [21, 9], [22, 9], [23, 9], [24, 9], [25, 9], [26, 9], [27, 9], [28, 9], [29, 9], [30, 9], [31, 9], [32, 9], [33, 9], [34, 9], [35, 9], [36, 15], [37, 16], [38, 17], [39, 21], [40, 21], [41, 23], [42, 23], [43, 25], [44, 25], [45, 26], [46, 28], [47, 28], [48, 29], [49, 29], [50, 31], [51, 31], [52, 32], [53, 32], [54, 34], [55, 34], [56, 35], [57, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "FillBuff", "code": "  protected void FillBuff() throws java.io.IOException\n  {\n     int i;\n     if (maxNextCharInd == 4096)\n        maxNextCharInd = nextCharInd = 0;\n\n     try {\n        if ((i = inputStream.read(nextCharBuf, maxNextCharInd,\n                                            4096 - maxNextCharInd)) == -1)\n        {\n           inputStream.close();\n           throw new java.io.IOException();\n        }\n        else\n           maxNextCharInd += i;\n        return;\n     }\n     catch(java.io.IOException e) {\n        if (bufpos != 0)\n        {\n           --bufpos;\n           backup(0);\n        }\n        else\n        {\n           bufline[bufpos] = line;\n           bufcolumn[bufpos] = column;\n        }\n        throw e;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "CATCH", "RETURN", "IF", "BINARY_OP", "THROW_RAISE", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [4, 8], [4, 9], [6, 10], [2, 11], [7, 12], [9, 13], [6, 14], [6, 15], [10, 16], [10, 17], [11, 18], [13, 19], [15, 20], [6, 21], [17, 22], [18, 23], [9, 24], [9, 25], [9, 26], [22, 27], [26, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 4], [9, 4], [10, 6], [11, 2], [12, 7], [13, 9], [14, 6], [15, 6], [16, 10], [17, 10], [18, 11], [19, 13], [20, 15], [21, 6], [22, 17], [23, 18], [24, 9], [25, 9], [26, 9], [27, 22], [28, 26], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "ReadByte", "code": "  protected char ReadByte() throws java.io.IOException\n  {\n     if (++nextCharInd >= maxNextCharInd)\n        FillBuff();\n\n     return nextCharBuf[nextCharInd];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "BeginToken", "code": "  public char BeginToken() throws java.io.IOException\n  {     \n     if (inBuf > 0)\n     {\n        --inBuf;\n\n        if (++bufpos == bufsize)\n           bufpos = 0;\n\n        tokenBegin = bufpos;\n        return buffer[bufpos];\n     }\n\n     tokenBegin = 0;\n     bufpos = -1;\n\n     return readChar();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [2, 6], [4, 7], [5, 8], [2, 9], [2, 10], [6, 11], [2, 12], [10, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 2], [7, 4], [8, 5], [9, 2], [10, 2], [11, 6], [12, 2], [13, 10], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "AdjustBuffSize", "code": "  protected void AdjustBuffSize()\n  {\n     if (available == bufsize)\n     {\n        if (tokenBegin > 2048)\n        {\n           bufpos = 0;\n           available = tokenBegin;\n        }\n        else\n           ExpandBuff(false);\n     }\n     else if (available > tokenBegin)\n        available = bufsize;\n     else if ((tokenBegin - available) < 2048)\n        ExpandBuff(true);\n     else\n        available = tokenBegin;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [1, 6], [4, 7], [2, 8], [6, 9], [4, 10], [4, 11], [7, 12], [7, 13], [6, 14], [9, 15], [11, 16], [14, 17], [6, 18], [6, 19], [19, 20], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 1], [7, 4], [8, 2], [9, 6], [10, 4], [11, 4], [12, 7], [13, 7], [14, 6], [15, 9], [16, 11], [17, 14], [18, 6], [19, 6], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "UpdateLineColumn", "code": "  protected void UpdateLineColumn(char c)\n  {\n     column++;\n\n     if (prevCharIsLF)\n     {\n        prevCharIsLF = false;\n        line += (column = 1);\n     }\n     else if (prevCharIsCR)\n     {\n        prevCharIsCR = false;\n        if (c == '\\n')\n        {\n           prevCharIsLF = true;\n        }\n        else\n           line += (column = 1);\n     }\n\n     switch (c)\n     {\n        case '\\r' :\n           prevCharIsCR = true;\n           break;\n        case '\\n' :\n           prevCharIsLF = true;\n           break;\n        case '\\t' :\n           column--;\n           column += (8 - (column & 07));\n           break;\n        default :\n           break;\n     }\n\n     bufline[bufpos] = line;\n     bufcolumn[bufpos] = column;", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "PARAM", "ASSIGN", "ASSIGN", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [6, 17], [2, 18], [2, 19], [14, 20], [15, 21], [16, 22], [17, 23], [6, 24], [18, 25], [19, 26], [20, 27], [20, 28], [17, 29], [23, 30], [24, 31], [25, 32], [27, 33], [29, 34], [17, 35], [34, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 6], [18, 2], [19, 2], [20, 14], [21, 15], [22, 16], [23, 17], [24, 6], [25, 18], [26, 19], [27, 20], [28, 20], [29, 17], [30, 23], [31, 24], [32, 25], [33, 27], [34, 29], [35, 17], [36, 34], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "readChar", "code": "  public char readChar() throws java.io.IOException\n  {\n     if (inBuf > 0)\n     {\n        --inBuf;\n\n        if (++bufpos == bufsize)\n           bufpos = 0;\n\n        return buffer[bufpos];\n     }\n\n     char c;\n\n     if (++bufpos == available)\n        AdjustBuffSize();\n\n     if ((buffer[bufpos] = c = ReadByte()) == '\\\\')\n     {\n        UpdateLineColumn(c);\n\n        int backSlashCnt = 1;\n\n        for (;;) // Read all the backslashes\n        {\n           if (++bufpos == available)\n              AdjustBuffSize();\n\n           try\n           {\n              if ((buffer[bufpos] = c = ReadByte()) != '\\\\')\n              {\n                 UpdateLineColumn(c);\n                 // found a non-backslash char.\n                 if ((c == 'u') && ((backSlashCnt & 1) == 1))\n                 {\n                    if (--bufpos < 0)\n                       bufpos = bufsize - 1;\n\n                    break;\n                 }\n\n                 backup(backSlashCnt);\n                 return '\\\\';\n              }\n           }\n           catch(java.io.IOException e)\n           {\n              if (backSlashCnt > 1)\n                 backup(backSlashCnt);\n\n              return '\\\\';\n           }\n\n           UpdateLineColumn(c);\n           backSlashCnt++;\n        }\n\n        // Here, we have seen an odd number of backslash's followed by a 'u'\n        try\n        {\n           while ((c = ReadByte()) == 'u')\n              ++column;\n\n           buffer[bufpos] = c = (char)(hexval(c) << 12 |\n                                       hexval(ReadByte()) << 8 |\n                                       hexval(ReadByte()) << 4 |\n                                       hexval(ReadByte()));\n\n           column += 4;\n        }\n        catch(java.io.IOException e)\n        {\n           throw new Error(\"Invalid escape character at line \" + line +\n                                         \" column \" + column + \".\");\n        }\n\n        if (backSlashCnt == 1)\n           return c;\n        else\n        {\n           backup(backSlashCnt - 1);\n           return '\\\\';\n        }\n     }\n     else\n     {\n        UpdateLineColumn(c);\n        return (c);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "TRY", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "CATCH", "LOOP", "CALL", "ASSIGN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "ASSIGN", "BINARY_OP", "TRY", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CATCH", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [5, 14], [2, 15], [4, 16], [4, 17], [7, 18], [1, 19], [9, 20], [9, 21], [10, 22], [10, 23], [1, 24], [14, 25], [17, 26], [9, 27], [21, 28], [22, 29], [10, 30], [10, 31], [23, 32], [11, 33], [11, 34], [12, 35], [25, 36], [17, 37], [27, 38], [9, 39], [29, 40], [30, 41], [31, 42], [32, 43], [32, 44], [11, 45], [33, 46], [33, 47], [34, 48], [37, 49], [39, 50], [40, 51], [44, 52], [46, 53], [46, 54], [47, 55], [34, 56], [50, 57], [51, 58], [51, 59], [42, 60], [53, 61], [54, 62], [47, 63], [47, 64], [55, 65], [55, 66], [59, 67], [60, 68], [60, 69], [54, 70], [62, 71], [63, 72], [47, 73], [64, 74], [47, 75], [66, 76], [67, 77], [67, 78], [68, 79], [69, 80], [69, 81], [64, 82], [64, 83], [74, 84], [74, 85], [76, 86], [78, 87], [80, 88], [80, 89], [81, 90], [81, 91], [83, 92], [84, 93], [84, 94], [85, 95], [89, 96], [90, 97], [90, 98], [91, 99], [91, 100], [83, 101], [92, 102], [94, 103], [98, 104], [101, 105], [105, 106], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 5], [15, 2], [16, 4], [17, 4], [18, 7], [19, 1], [20, 9], [21, 9], [22, 10], [23, 10], [24, 1], [25, 14], [26, 17], [27, 9], [28, 21], [29, 22], [30, 10], [31, 10], [32, 23], [33, 11], [34, 11], [35, 12], [36, 25], [37, 17], [38, 27], [39, 9], [40, 29], [41, 30], [42, 31], [43, 32], [44, 32], [45, 11], [46, 33], [47, 33], [48, 34], [49, 37], [50, 39], [51, 40], [52, 44], [53, 46], [54, 46], [55, 47], [56, 34], [57, 50], [58, 51], [59, 51], [60, 42], [61, 53], [62, 54], [63, 47], [64, 47], [65, 55], [66, 55], [67, 59], [68, 60], [69, 60], [70, 54], [71, 62], [72, 63], [73, 47], [74, 64], [75, 47], [76, 66], [77, 67], [78, 67], [79, 68], [80, 69], [81, 69], [82, 64], [83, 64], [84, 74], [85, 74], [86, 76], [87, 78], [88, 80], [89, 80], [90, 81], [91, 81], [92, 83], [93, 84], [94, 84], [95, 85], [96, 89], [97, 90], [98, 90], [99, 91], [100, 91], [101, 83], [102, 92], [103, 94], [104, 98], [105, 101], [106, 105], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106]]}, {"function_name": "getColumn", "code": "  public int getColumn() {\n     return bufcolumn[bufpos];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLine", "code": "  public int getLine() {\n     return bufline[bufpos];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEndColumn", "code": "  public int getEndColumn() {\n     return bufcolumn[bufpos];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEndLine", "code": "  public int getEndLine() {\n     return bufline[bufpos];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBeginColumn", "code": "  public int getBeginColumn() {\n     return bufcolumn[tokenBegin];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBeginLine", "code": "  public int getBeginLine() {\n     return bufline[tokenBegin];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "backup", "code": "  public void backup(int amount) {\n\n    inBuf += amount;\n    if ((bufpos -= amount) < 0)\n       bufpos += bufsize;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [3, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.Reader dstream,\n                 int startline, int startcolumn, int buffersize)\n  {\n    inputStream = dstream;\n    line = startline;\n    column = startcolumn - 1;\n\n    if (buffer == null || buffersize != buffer.length)\n    {\n      available = bufsize = buffersize;\n      buffer = new char[buffersize];\n      bufline = new int[buffersize];\n      bufcolumn = new int[buffersize];\n      nextCharBuf = new char[4096];\n    }\n    prevCharIsLF = prevCharIsCR = false;\n    tokenBegin = inBuf = maxNextCharInd = 0;\n    nextCharInd = bufpos = -1;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [6, 13], [7, 14], [8, 15], [9, 16], [9, 17], [10, 18], [13, 19], [14, 20], [15, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [17, 27], [18, 28], [20, 29], [26, 30], [22, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 6], [14, 7], [15, 8], [16, 9], [17, 9], [18, 10], [19, 13], [20, 14], [21, 15], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 17], [28, 18], [29, 20], [30, 26], [31, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.Reader dstream,\n                                        int startline, int startcolumn)\n  {\n     ReInit(dstream, startline, startcolumn, 4096);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.Reader dstream)\n  {\n     ReInit(dstream, 1, 1, 4096);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.InputStream dstream, int startline,\n  int startcolumn, int buffersize)\n  {\n     ReInit(new java.io.InputStreamReader(dstream), startline, startcolumn, 4096);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.InputStream dstream, int startline,\n                                                           int startcolumn)\n  {\n     ReInit(dstream, startline, startcolumn, 4096);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.InputStream dstream)\n  {\n     ReInit(dstream, 1, 1, 4096);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "GetImage", "code": "  public String GetImage()\n  {\n     if (bufpos >= tokenBegin)\n        return new String(buffer, tokenBegin, bufpos - tokenBegin + 1);\n     else\n        return new String(buffer, tokenBegin, bufsize - tokenBegin) +\n                              new String(buffer, 0, bufpos + 1);", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [5, 7], [5, 8], [6, 9], [7, 10], [7, 11], [8, 12], [9, 13], [9, 14], [10, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 5], [8, 5], [9, 6], [10, 7], [11, 7], [12, 8], [13, 9], [14, 9], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "GetSuffix", "code": "  public char[] GetSuffix(int len)\n  {\n     char[] ret = new char[len];\n\n     if ((bufpos + 1) >= len)\n        System.arraycopy(buffer, bufpos - len + 1, ret, 0, len);\n     else\n     {\n        System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0,\n                                                          len - bufpos - 1);\n        System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1);\n     }\n\n     return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [2, 8], [2, 9], [6, 10], [6, 11], [7, 12], [8, 13], [8, 14], [8, 15], [9, 16], [9, 17], [9, 18], [11, 19], [11, 20], [13, 21], [14, 22], [14, 23], [16, 24], [16, 25], [18, 26], [26, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 2], [9, 2], [10, 6], [11, 6], [12, 7], [13, 8], [14, 8], [15, 8], [16, 9], [17, 9], [18, 9], [19, 11], [20, 11], [21, 13], [22, 14], [23, 14], [24, 16], [25, 16], [26, 18], [27, 26], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "Done", "code": "  public void Done()\n  {\n     nextCharBuf = null;\n     buffer = null;\n     bufline = null;\n     bufcolumn = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "adjustBeginLineColumn", "code": "  public void adjustBeginLineColumn(int newLine, int newCol)\n  {\n     int start = tokenBegin;\n     int len;\n\n     if (bufpos >= tokenBegin)\n     {\n        len = bufpos - tokenBegin + inBuf + 1;\n     }\n     else\n     {\n        len = bufsize - tokenBegin + bufpos + 1 + inBuf;\n     }\n\n     int i = 0, j = 0, k = 0;\n     int nextColDiff = 0, columnDiff = 0;\n\n     while (i < len &&\n            bufline[j = start % bufsize] == bufline[k = ++start % bufsize])\n     {\n        bufline[j] = newLine;\n        nextColDiff = columnDiff + bufcolumn[k] - bufcolumn[j];\n        bufcolumn[j] = newCol + columnDiff;\n        columnDiff = nextColDiff;\n        i++;\n     } \n\n     if (i < len)\n     {\n        bufline[j] = newLine++;\n        bufcolumn[j] = newCol + columnDiff;\n\n        while (i++ < len)\n        {\n           if (bufline[j = start % bufsize] != bufline[++start % bufsize])\n              bufline[j] = newLine++;\n           else\n              bufline[j] = newLine;\n        }\n     }\n\n     line = bufline[j];\n     column = bufcolumn[j];", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LOOP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [5, 14], [1, 15], [13, 16], [13, 17], [3, 18], [3, 19], [4, 20], [4, 21], [4, 22], [15, 23], [1, 24], [1, 25], [2, 26], [2, 27], [2, 28], [2, 29], [5, 30], [5, 31], [15, 32], [24, 33], [27, 34], [28, 35], [30, 36], [31, 37], [32, 38], [35, 39], [16, 40], [16, 41], [36, 42], [37, 43], [37, 44], [32, 45], [32, 46], [40, 47], [41, 48], [42, 49], [42, 50], [44, 51], [50, 52], [38, 53], [38, 54], [54, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 5], [15, 1], [16, 13], [17, 13], [18, 3], [19, 3], [20, 4], [21, 4], [22, 4], [23, 15], [24, 1], [25, 1], [26, 2], [27, 2], [28, 2], [29, 2], [30, 5], [31, 5], [32, 15], [33, 24], [34, 27], [35, 28], [36, 30], [37, 31], [38, 32], [39, 35], [40, 16], [41, 16], [42, 36], [43, 37], [44, 37], [45, 32], [46, 32], [47, 40], [48, 41], [49, 42], [50, 42], [51, 44], [52, 50], [53, 38], [54, 38], [55, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "JavaCharStream", "code": "  public JavaCharStream(java.io.Reader dstream,\n                 int startline, int startcolumn, int buffersize)\n  {\n    inputStream = dstream;\n    line = startline;\n    column = startcolumn - 1;\n\n    available = bufsize = buffersize;\n    buffer = new char[buffersize];\n    bufline = new int[buffersize];\n    bufcolumn = new int[buffersize];\n    nextCharBuf = new char[4096];", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [9, 13], [10, 14], [5, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 9], [14, 10], [15, 5], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "JavaCharStream", "code": "  public JavaCharStream(java.io.Reader dstream,\n                                        int startline, int startcolumn)\n  {\n     this(dstream, startline, startcolumn, 4096);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "JavaCharStream", "code": "  public JavaCharStream(java.io.Reader dstream)\n  {\n     this(dstream, 1, 1, 4096);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "JavaCharStream", "code": "  public JavaCharStream(java.io.InputStream dstream, int startline,\n  int startcolumn, int buffersize)\n  {\n     this(new java.io.InputStreamReader(dstream), startline, startcolumn, 4096);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "JavaCharStream", "code": "  public JavaCharStream(java.io.InputStream dstream, int startline,\n                                                           int startcolumn)\n  {\n     this(dstream, startline, startcolumn, 4096);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "JavaCharStream", "code": "  public JavaCharStream(java.io.InputStream dstream)\n  {\n     this(dstream, 1, 1, 4096);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.3-13", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/types/EnumeratedAttribute.java", "language": "java", "name": "org.apache.tools.ant.types.EnumeratedAttribute", "code": "public abstract class EnumeratedAttribute {\n\n    protected String value;\n\n    /**\n     * This is the only method a subclass needs to implement.\n     *\n     * @return an array holding all possible values of the enumeration.\n     */\n    public abstract String[] getValues();\n\n    public EnumeratedAttribute() {}\n\n    /**\n     * Invoked by {@link org.apache.tools.ant.IntrospectionHelper IntrospectionHelper}.\n     */\n    public final void setValue(String value) throws BuildException {\n        if (!containsValue(value)) {\n            throw new BuildException(value+\" is not a legal value for this attribute\");\n        }\n        this.value = value;\n    }\n\n    /**\n     * Is this value included in the enumeration?\n     */\n    public final boolean containsValue(String value) {\n        String[] values = getValues();\n        if (values == null || value == null) {\n            return false;\n        }\n        \n        for (int i=0; i<values.length; i++) {\n            if (value.equals(values[i])) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Retrieves the value.\n     */\n    public final String getValue() {\n        return value;", "functions": [{"function_name": "getValues", "code": "    public abstract String[] getValues();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setValue", "code": "    public final void setValue(String value) throws BuildException {\n        if (!containsValue(value)) {\n            throw new BuildException(value+\" is not a legal value for this attribute\");\n        }\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "containsValue", "code": "    public final boolean containsValue(String value) {\n        String[] values = getValues();\n        if (values == null || value == null) {\n            return false;\n        }\n        \n        for (int i=0; i<values.length; i++) {\n            if (value.equals(values[i])) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [3, 10], [8, 11], [8, 12], [4, 13], [9, 14], [2, 15], [10, 16], [11, 17], [12, 18], [9, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 3], [11, 8], [12, 8], [13, 4], [14, 9], [15, 2], [16, 10], [17, 11], [18, 12], [19, 9], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getValue", "code": "    public final String getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "EnumeratedAttribute", "code": "    public EnumeratedAttribute() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.4-2341", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/interceptor/TraceFormatter.java", "language": "java", "name": "org.apache.camel.processor.interceptor.TraceFormatter", "code": "public class TraceFormatter {\n    private boolean showBreadCrumb = true;\n    private boolean showNode = true;\n    private boolean showExchangeId;\n    private boolean showProperties = true;\n    private boolean showHeaders = true;\n    private boolean showBody = true;\n    private boolean showBodyType = true;\n\n    public Object format(TraceInterceptor interceptor, Exchange exchange) {\n        Message in = exchange.getIn();\n        Throwable exception = exchange.getException();\n        return (showBreadCrumb ? getBreadCrumbID(exchange) + \" \" : \"\")\n                + \"-> \" + getNodeMessage(interceptor) + \" \"\n                + (showNode ? interceptor.getNode() + \" \" : \"\")\n                + exchange.getPattern()\n                + (showExchangeId ? \" Id: \" + exchange.getExchangeId() : \"\")\n                + (showProperties ? \" Properties:\" + exchange.getProperties() : \"\")\n                + (showHeaders ? \" Headers:\" + in.getHeaders() : \"\")\n                + (showBodyType ? \" BodyType:\" + getBodyTypeAsString(in) : \"\")\n                + (showBody ? \" Body:\" + getBodyAsString(in) : \"\")\n                + (exception != null ? \" Exception: \" + exception : \"\");\n    }\n\n    public boolean isShowBody() {\n        return showBody;\n    }\n\n    public void setShowBody(boolean showBody) {\n        this.showBody = showBody;\n    }\n\n    public boolean isShowBodyType() {\n        return showBodyType;\n    }\n\n    public void setShowBodyType(boolean showBodyType) {\n        this.showBodyType = showBodyType;\n    }\n\n    public boolean isShowBreadCrumb() {\n        return showBreadCrumb;\n    }\n\n    public void setShowBreadCrumb(boolean showBreadCrumb) {\n        this.showBreadCrumb = showBreadCrumb;\n    }\n\n    public boolean isShowExchangeId() {\n        return showExchangeId;\n    }\n\n    public void setShowExchangeId(boolean showExchangeId) {\n        this.showExchangeId = showExchangeId;\n    }\n\n    public boolean isShowHeaders() {\n        return showHeaders;\n    }\n\n    public void setShowHeaders(boolean showHeaders) {\n        this.showHeaders = showHeaders;\n    }\n\n    public boolean isShowProperties() {\n        return showProperties;\n    }\n\n    public void setShowProperties(boolean showProperties) {\n        this.showProperties = showProperties;\n    }\n\n    public boolean isShowNode() {\n        return showNode;\n    }\n\n    public void setShowNode(boolean showNode) {\n        this.showNode = showNode;\n    }\n\n    protected Object getBreadCrumbID(Exchange exchange) {\n        UnitOfWork unitOfWork = exchange.getUnitOfWork();\n        return unitOfWork.getId();\n    }\n\n    protected Object getBodyAsString(Message in) {\n        Object answer = in.getBody(String.class);\n        if (answer == null) {\n            answer = in.getBody();\n        }\n        return answer;\n    }\n\n    protected Object getBodyTypeAsString(Message message) {\n        String answer = ObjectHelper.className(message.getBody());\n        if (answer.startsWith(\"java.lang.\")) {\n            return answer.substring(10);\n        }\n        return answer;\n    }\n\n    protected String getNodeMessage(TraceInterceptor interceptor) {\n        return interceptor.getNode().idOrCreate();", "functions": [{"function_name": "format", "code": "    public Object format(TraceInterceptor interceptor, Exchange exchange) {\n        Message in = exchange.getIn();\n        Throwable exception = exchange.getException();\n        return (showBreadCrumb ? getBreadCrumbID(exchange) + \" \" : \"\")\n                + \"-> \" + getNodeMessage(interceptor) + \" \"\n                + (showNode ? interceptor.getNode() + \" \" : \"\")\n                + exchange.getPattern()\n                + (showExchangeId ? \" Id: \" + exchange.getExchangeId() : \"\")\n                + (showProperties ? \" Properties:\" + exchange.getProperties() : \"\")\n                + (showHeaders ? \" Headers:\" + in.getHeaders() : \"\")\n                + (showBodyType ? \" BodyType:\" + getBodyTypeAsString(in) : \"\")\n                + (showBody ? \" Body:\" + getBodyAsString(in) : \"\")\n                + (exception != null ? \" Exception: \" + exception : \"\");", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "COND_EXPR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [2, 9], [3, 10], [7, 11], [7, 12], [7, 13], [8, 14], [8, 15], [12, 16], [13, 17], [14, 18], [14, 19], [15, 20], [15, 21], [19, 22], [19, 23], [20, 24], [20, 25], [21, 26], [21, 27], [25, 28], [25, 29], [26, 30], [26, 31], [27, 32], [27, 33], [31, 34], [31, 35], [32, 36], [32, 37], [33, 38], [33, 39], [37, 40], [37, 41], [38, 42], [38, 43], [39, 44], [39, 45], [43, 46], [43, 47], [45, 48], [45, 49], [48, 50], [48, 51], [49, 52], [49, 53], [51, 54], [51, 55], [53, 56], [53, 57], [57, 58], [57, 59], [59, 60], [59, 61], [61, 62], [61, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 2], [10, 3], [11, 7], [12, 7], [13, 7], [14, 8], [15, 8], [16, 12], [17, 13], [18, 14], [19, 14], [20, 15], [21, 15], [22, 19], [23, 19], [24, 20], [25, 20], [26, 21], [27, 21], [28, 25], [29, 25], [30, 26], [31, 26], [32, 27], [33, 27], [34, 31], [35, 31], [36, 32], [37, 32], [38, 33], [39, 33], [40, 37], [41, 37], [42, 38], [43, 38], [44, 39], [45, 39], [46, 43], [47, 43], [48, 45], [49, 45], [50, 48], [51, 48], [52, 49], [53, 49], [54, 51], [55, 51], [56, 53], [57, 53], [58, 57], [59, 57], [60, 59], [61, 59], [62, 61], [63, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "isShowBody", "code": "    public boolean isShowBody() {\n        return showBody;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShowBody", "code": "    public void setShowBody(boolean showBody) {\n        this.showBody = showBody;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isShowBodyType", "code": "    public boolean isShowBodyType() {\n        return showBodyType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShowBodyType", "code": "    public void setShowBodyType(boolean showBodyType) {\n        this.showBodyType = showBodyType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isShowBreadCrumb", "code": "    public boolean isShowBreadCrumb() {\n        return showBreadCrumb;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShowBreadCrumb", "code": "    public void setShowBreadCrumb(boolean showBreadCrumb) {\n        this.showBreadCrumb = showBreadCrumb;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isShowExchangeId", "code": "    public boolean isShowExchangeId() {\n        return showExchangeId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShowExchangeId", "code": "    public void setShowExchangeId(boolean showExchangeId) {\n        this.showExchangeId = showExchangeId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isShowHeaders", "code": "    public boolean isShowHeaders() {\n        return showHeaders;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShowHeaders", "code": "    public void setShowHeaders(boolean showHeaders) {\n        this.showHeaders = showHeaders;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isShowProperties", "code": "    public boolean isShowProperties() {\n        return showProperties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShowProperties", "code": "    public void setShowProperties(boolean showProperties) {\n        this.showProperties = showProperties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isShowNode", "code": "    public boolean isShowNode() {\n        return showNode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShowNode", "code": "    public void setShowNode(boolean showNode) {\n        this.showNode = showNode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBreadCrumbID", "code": "    protected Object getBreadCrumbID(Exchange exchange) {\n        UnitOfWork unitOfWork = exchange.getUnitOfWork();\n        return unitOfWork.getId();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getBodyAsString", "code": "    protected Object getBodyAsString(Message in) {\n        Object answer = in.getBody(String.class);\n        if (answer == null) {\n            answer = in.getBody();\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getBodyTypeAsString", "code": "    protected Object getBodyTypeAsString(Message message) {\n        String answer = ObjectHelper.className(message.getBody());\n        if (answer.startsWith(\"java.lang.\")) {\n            return answer.substring(10);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getNodeMessage", "code": "    protected String getNodeMessage(TraceInterceptor interceptor) {\n        return interceptor.getNode().idOrCreate();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-3.0-6257", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/usermodel/HSSFShape.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFShape", "code": "public abstract class HSSFShape\n{\n    public static final int LINEWIDTH_ONE_PT = 12700;\n    public static final int LINEWIDTH_DEFAULT = 9525;\n\n    public static final int LINESTYLE_NONE = -1;\n\n    HSSFShape parent;\n    HSSFAnchor anchor;\n    int lineStyleColor = 0x08000040;\n    int fillColor = 0x08000009;\n    int lineStyle = LINESTYLE_SOLID;\n    boolean noFill = false;\n\n    /**\n     * Create a new shape with the specified parent and anchor.\n     */\n    HSSFShape( HSSFShape parent, HSSFAnchor anchor )\n    {\n        this.parent = parent;\n        this.anchor = anchor;\n    }\n\n    /**\n     * Gets the parent shape.\n     */\n    public HSSFShape getParent()\n    {\n        return parent;\n    }\n\n    /**\n     * @return  the anchor that is used by this shape.\n     */\n    public HSSFAnchor getAnchor()\n    {\n        return anchor;\n    }\n\n    /**\n     * Sets a particular anchor.  A top-level shape must have an anchor of\n     * HSSFClientAnchor.  A child anchor must have an anchor of HSSFChildAnchor\n     *\n     * @param anchor    the anchor to use.\n     * @throws IllegalArgumentException     when the wrong anchor is used for\n     *                                      this particular shape.\n     *\n     * @see HSSFChildAnchor\n     * @see HSSFClientAnchor\n     */\n    public void setAnchor( HSSFAnchor anchor )\n    {\n        if ( parent == null )\n        {\n            if ( anchor instanceof HSSFChildAnchor )\n                throw new IllegalArgumentException( \"Must use client anchors for shapes directly attached to sheet.\" );\n        }\n        else\n        {\n            if ( anchor instanceof HSSFClientAnchor )\n                throw new IllegalArgumentException( \"Must use child anchors for shapes attached to groups.\" );\n        }\n\n        this.anchor = anchor;\n    }\n\n    /**\n     * The color applied to the lines of this shape.\n     */\n    public int getLineStyleColor()\n    {\n        return lineStyleColor;\n    }\n\n    /**\n     * The color applied to the lines of this shape.\n     */\n    public void setLineStyleColor( int lineStyleColor )\n    {\n        this.lineStyleColor = lineStyleColor;\n    }\n\n    /**\n     * The color applied to the lines of this shape.\n     */\n    public void setLineStyleColor( int red, int green, int blue )\n    {\n        this.lineStyleColor = ((blue) << 16) | ((green) << 8) | red;\n    }\n\n    /**\n     * The color used to fill this shape.\n     */\n    public int getFillColor()\n    {\n        return fillColor;\n    }\n\n    /**\n     * The color used to fill this shape.\n     */\n    public void setFillColor( int fillColor )\n    {\n        this.fillColor = fillColor;\n    }\n\n    /**\n     * The color used to fill this shape.\n     */\n    public void setFillColor( int red, int green, int blue )\n    {\n        this.fillColor = ((blue) << 16) | ((green) << 8) | red;\n    }\n\n    /**\n     * @return  returns with width of the line in EMUs.  12700 = 1 pt.\n     */\n    public int getLineWidth()\n    {\n        return lineWidth;\n    }\n\n    /**\n     * Sets the width of the line.  12700 = 1 pt.\n     *\n     * @param lineWidth width in EMU's.  12700EMU's = 1 pt\n     *\n     * @see HSSFShape#LINEWIDTH_ONE_PT\n     */\n    public void setLineWidth( int lineWidth )\n    {\n        this.lineWidth = lineWidth;\n    }\n\n    /**\n     * @return One of the constants in LINESTYLE_*\n     */\n    public int getLineStyle()\n    {\n        return lineStyle;\n    }\n\n    /**\n     * Sets the line style.\n     *\n     * @param lineStyle     One of the constants in LINESTYLE_*\n     */\n    public void setLineStyle( int lineStyle )\n    {\n        this.lineStyle = lineStyle;\n    }\n\n    /**\n     * @return  true if this shape is not filled with a color.\n     */\n    public boolean isNoFill()\n    {\n        return noFill;\n    }\n\n    /**\n     * Sets whether this shape is filled or transparent.\n     */\n    public void setNoFill( boolean noFill )\n    {\n        this.noFill = noFill;\n    }\n\n    /**\n     * Count of all children and their childrens children.\n     */\n    public int countOfAllChildren()\n    {\n        return 1;", "functions": [{"function_name": "getParent", "code": "    public HSSFShape getParent()\n    {\n        return parent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAnchor", "code": "    public HSSFAnchor getAnchor()\n    {\n        return anchor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAnchor", "code": "    public void setAnchor( HSSFAnchor anchor )\n    {\n        if ( parent == null )\n        {\n            if ( anchor instanceof HSSFChildAnchor )\n                throw new IllegalArgumentException( \"Must use client anchors for shapes directly attached to sheet.\" );\n        }\n        else\n        {\n            if ( anchor instanceof HSSFClientAnchor )\n                throw new IllegalArgumentException( \"Must use child anchors for shapes attached to groups.\" );\n        }\n\n        this.anchor = anchor;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [5, 9], [6, 10], [6, 11], [8, 12], [10, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 5], [10, 6], [11, 6], [12, 8], [13, 10], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getLineStyleColor", "code": "    public int getLineStyleColor()\n    {\n        return lineStyleColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLineStyleColor", "code": "    public void setLineStyleColor( int lineStyleColor )\n    {\n        this.lineStyleColor = lineStyleColor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLineStyleColor", "code": "    public void setLineStyleColor( int red, int green, int blue )\n    {\n        this.lineStyleColor = ((blue) << 16) | ((green) << 8) | red;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [6, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [8, 6], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getFillColor", "code": "    public int getFillColor()\n    {\n        return fillColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFillColor", "code": "    public void setFillColor( int fillColor )\n    {\n        this.fillColor = fillColor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFillColor", "code": "    public void setFillColor( int red, int green, int blue )\n    {\n        this.fillColor = ((blue) << 16) | ((green) << 8) | red;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [6, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [8, 6], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getLineWidth", "code": "    public int getLineWidth()\n    {\n        return lineWidth;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLineWidth", "code": "    public void setLineWidth( int lineWidth )\n    {\n        this.lineWidth = lineWidth;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLineStyle", "code": "    public int getLineStyle()\n    {\n        return lineStyle;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLineStyle", "code": "    public void setLineStyle( int lineStyle )\n    {\n        this.lineStyle = lineStyle;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNoFill", "code": "    public boolean isNoFill()\n    {\n        return noFill;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNoFill", "code": "    public void setNoFill( boolean noFill )\n    {\n        this.noFill = noFill;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "countOfAllChildren", "code": "    public int countOfAllChildren()\n    {\n        return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFShape", "code": "    HSSFShape( HSSFShape parent, HSSFAnchor anchor )\n    {\n        this.parent = parent;\n        this.anchor = anchor;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.2-1775", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/commons/logging/impl/Jdk14Logger.java", "language": "java", "name": "org.apache.commons.logging.impl.Jdk14Logger", "code": "public class Jdk14Logger implements Log, Serializable {\n\n    /** Serializable version identifier. */\n    private static final long serialVersionUID = 4784713551416303804L;\n\n    /**\n     * This member variable simply ensures that any attempt to initialise\n     * this class in a pre-1.4 JVM will result in an ExceptionInInitializerError.\n     * It must not be private, as an optimising compiler could detect that it\n     * is not used and optimise it away.\n     */\n    protected static final Level dummyLevel = Level.FINE;\n\n\n    /**\n     * Construct a named instance of this Logger.\n     *\n     * @param name Name of the logger to be constructed\n     */\n    public Jdk14Logger(String name) {\n        this.name = name;\n        logger = getLogger();\n    }\n\n\n    /**\n     * The underlying Logger implementation we are using.\n     */\n    protected transient Logger logger = null;\n\n    /**\n     * The name of the logger we are wrapping.\n     */\n    protected String name = null;\n\n\n    protected void log( Level level, String msg, Throwable ex ) {\n        Logger logger = getLogger();\n        if (logger.isLoggable(level)) {\n            Throwable dummyException = new Throwable();\n            StackTraceElement locations[] = dummyException.getStackTrace();\n            String cname = name;\n            String method = \"unknown\";\n            if( locations != null && locations.length > 2 ) {\n                StackTraceElement caller = locations[2];\n                method = caller.getMethodName();\n            }\n            if( ex == null ) {\n                logger.logp( level, cname, method, msg );\n            } else {\n                logger.logp( level, cname, method, msg, ex );\n            }\n        }\n    }\n\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.FINE</code>.\n     *\n     * @param message to log\n     * @see org.apache.commons.logging.Log#debug(Object)\n     */\n    public void debug(Object message) {\n        log(Level.FINE, String.valueOf(message), null);\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.FINE</code>.\n     *\n     * @param message to log\n     * @param exception log this cause\n     * @see org.apache.commons.logging.Log#debug(Object, Throwable)\n     */\n    public void debug(Object message, Throwable exception) {\n        log(Level.FINE, String.valueOf(message), exception);\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.SEVERE</code>.\n     *\n     * @param message to log\n     * @see org.apache.commons.logging.Log#error(Object)\n     */\n    public void error(Object message) {\n        log(Level.SEVERE, String.valueOf(message), null);\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.SEVERE</code>.\n     *\n     * @param message to log\n     * @param exception log this cause\n     * @see org.apache.commons.logging.Log#error(Object, Throwable)\n     */\n    public void error(Object message, Throwable exception) {\n        log(Level.SEVERE, String.valueOf(message), exception);\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.SEVERE</code>.\n     *\n     * @param message to log\n     * @see org.apache.commons.logging.Log#fatal(Object)\n     */\n    public void fatal(Object message) {\n        log(Level.SEVERE, String.valueOf(message), null);\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.SEVERE</code>.\n     *\n     * @param message to log\n     * @param exception log this cause\n     * @see org.apache.commons.logging.Log#fatal(Object, Throwable)\n     */\n    public void fatal(Object message, Throwable exception) {\n        log(Level.SEVERE, String.valueOf(message), exception);\n    }\n\n    /**\n     * Return the native Logger instance we are using.\n     */\n    public Logger getLogger() {\n        if (logger == null) {\n            logger = Logger.getLogger(name);\n        }\n        return logger;\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.INFO</code>.\n     *\n     * @param message to log\n     * @see org.apache.commons.logging.Log#info(Object)\n     */\n    public void info(Object message) {\n        log(Level.INFO, String.valueOf(message), null);\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.INFO</code>.\n     *\n     * @param message to log\n     * @param exception log this cause\n     * @see org.apache.commons.logging.Log#info(Object, Throwable)\n     */\n    public void info(Object message, Throwable exception) {\n        log(Level.INFO, String.valueOf(message), exception);\n    }\n\n    /**\n     * Is debug logging currently enabled?\n     */\n    public boolean isDebugEnabled() {\n        return getLogger().isLoggable(Level.FINE);\n    }\n\n    /**\n     * Is error logging currently enabled?\n     */\n    public boolean isErrorEnabled() {\n        return getLogger().isLoggable(Level.SEVERE);\n    }\n\n    /**\n     * Is fatal logging currently enabled?\n     */\n    public boolean isFatalEnabled() {\n        return getLogger().isLoggable(Level.SEVERE);\n    }\n\n    /**\n     * Is info logging currently enabled?\n     */\n    public boolean isInfoEnabled() {\n        return getLogger().isLoggable(Level.INFO);\n    }\n\n    /**\n     * Is trace logging currently enabled?\n     */\n    public boolean isTraceEnabled() {\n        return getLogger().isLoggable(Level.FINEST);\n    }\n\n    /**\n     * Is warn logging currently enabled?\n     */\n    public boolean isWarnEnabled() {\n        return getLogger().isLoggable(Level.WARNING);\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.FINEST</code>.\n     *\n     * @param message to log\n     * @see org.apache.commons.logging.Log#trace(Object)\n     */\n    public void trace(Object message) {\n        log(Level.FINEST, String.valueOf(message), null);\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.FINEST</code>.\n     *\n     * @param message to log\n     * @param exception log this cause\n     * @see org.apache.commons.logging.Log#trace(Object, Throwable)\n     */\n    public void trace(Object message, Throwable exception) {\n        log(Level.FINEST, String.valueOf(message), exception);\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.WARNING</code>.\n     *\n     * @param message to log\n     * @see org.apache.commons.logging.Log#warn(Object)\n     */\n    public void warn(Object message) {\n        log(Level.WARNING, String.valueOf(message), null);\n    }\n\n    /**\n     * Logs a message with <code>java.util.logging.Level.WARNING</code>.\n     *\n     * @param message to log\n     * @param exception log this cause\n     * @see org.apache.commons.logging.Log#warn(Object, Throwable)\n     */\n    public void warn(Object message, Throwable exception) {\n        log(Level.WARNING, String.valueOf(message), exception);", "functions": [{"function_name": "log", "code": "    protected void log( Level level, String msg, Throwable ex ) {\n        Logger logger = getLogger();\n        if (logger.isLoggable(level)) {\n            Throwable dummyException = new Throwable();\n            StackTraceElement locations[] = dummyException.getStackTrace();\n            String cname = name;\n            String method = \"unknown\";\n            if( locations != null && locations.length > 2 ) {\n                StackTraceElement caller = locations[2];\n                method = caller.getMethodName();\n            }\n            if( ex == null ) {\n                logger.logp( level, cname, method, msg );\n            } else {\n                logger.logp( level, cname, method, msg, ex );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [7, 14], [8, 15], [14, 16], [8, 17], [15, 18], [15, 19], [9, 20], [11, 21], [12, 22], [7, 23], [7, 24], [8, 25], [18, 26], [19, 27], [25, 28], [17, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 7], [15, 8], [16, 14], [17, 8], [18, 15], [19, 15], [20, 9], [21, 11], [22, 12], [23, 7], [24, 7], [25, 8], [26, 18], [27, 19], [28, 25], [29, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "debug", "code": "    public void debug(Object message) {\n        log(Level.FINE, String.valueOf(message), null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "debug", "code": "    public void debug(Object message, Throwable exception) {\n        log(Level.FINE, String.valueOf(message), exception);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "error", "code": "    public void error(Object message) {\n        log(Level.SEVERE, String.valueOf(message), null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "error", "code": "    public void error(Object message, Throwable exception) {\n        log(Level.SEVERE, String.valueOf(message), exception);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "fatal", "code": "    public void fatal(Object message) {\n        log(Level.SEVERE, String.valueOf(message), null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "fatal", "code": "    public void fatal(Object message, Throwable exception) {\n        log(Level.SEVERE, String.valueOf(message), exception);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLogger", "code": "    public Logger getLogger() {\n        if (logger == null) {\n            logger = Logger.getLogger(name);\n        }\n        return logger;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "info", "code": "    public void info(Object message) {\n        log(Level.INFO, String.valueOf(message), null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "info", "code": "    public void info(Object message, Throwable exception) {\n        log(Level.INFO, String.valueOf(message), exception);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isDebugEnabled", "code": "    public boolean isDebugEnabled() {\n        return getLogger().isLoggable(Level.FINE);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isErrorEnabled", "code": "    public boolean isErrorEnabled() {\n        return getLogger().isLoggable(Level.SEVERE);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isFatalEnabled", "code": "    public boolean isFatalEnabled() {\n        return getLogger().isLoggable(Level.SEVERE);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isInfoEnabled", "code": "    public boolean isInfoEnabled() {\n        return getLogger().isLoggable(Level.INFO);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isTraceEnabled", "code": "    public boolean isTraceEnabled() {\n        return getLogger().isLoggable(Level.FINEST);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isWarnEnabled", "code": "    public boolean isWarnEnabled() {\n        return getLogger().isLoggable(Level.WARNING);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "trace", "code": "    public void trace(Object message) {\n        log(Level.FINEST, String.valueOf(message), null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "trace", "code": "    public void trace(Object message, Throwable exception) {\n        log(Level.FINEST, String.valueOf(message), exception);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "warn", "code": "    public void warn(Object message) {\n        log(Level.WARNING, String.valueOf(message), null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "warn", "code": "    public void warn(Object message, Throwable exception) {\n        log(Level.WARNING, String.valueOf(message), exception);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Jdk14Logger", "code": "    public Jdk14Logger(String name) {\n        this.name = name;\n        logger = getLogger();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.7-8215", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/domapi/XPathEvaluatorImpl.java", "language": "java", "name": "org.apache.xpath.domapi.XPathEvaluatorImpl", "code": "public final class XPathEvaluatorImpl implements XPathEvaluator {\n\n\t/**\n\t * This prefix resolver is created whenever null is passed to the \n\t * evaluate method.  Its purpose is to satisfy the DOM L3 XPath API\n\t * requirement that if a null prefix resolver is used, an exception \n\t * should only be thrown when an attempt is made to resolve a prefix.\n\t */\n\tprivate class DummyPrefixResolver implements PrefixResolver {\n\n\t\t/**\n\t\t * Constructor for DummyPrefixResolver.\n\t\t */\n\t\tDummyPrefixResolver() {}\n\t\t\t\n\t\t/**\n\t\t * @exception DOMException\n    \t *   NAMESPACE_ERR: Always throws this exceptionn\n\t\t *\n\t\t * @see org.apache.xml.utils.PrefixResolver#getNamespaceForPrefix(String, Node)\n\t\t */\n\t\tpublic String getNamespaceForPrefix(String prefix, Node context) {\n            String fmsg = XPATHMessages.createXPATHMessage(XPATHErrorResources.ER_NULL_RESOLVER, null);       \n\t\t}\n\n\t\t/**\n\t\t * @exception DOMException\n    \t *   NAMESPACE_ERR: Always throws this exceptionn\n    \t * \n\t\t * @see org.apache.xml.utils.PrefixResolver#getNamespaceForPrefix(String)\n\t\t */\n\t\tpublic String getNamespaceForPrefix(String prefix) {\n\t\t\treturn getNamespaceForPrefix(prefix,null);\n\t\t}\n\n\t\t/**\n\t\t * @see org.apache.xml.utils.PrefixResolver#handlesNullPrefixes()\n\t\t */\n\t\tpublic boolean handlesNullPrefixes() {\n\t\t\treturn false;\n\t\t}\n\n\t\t/**\n\t\t * @see org.apache.xml.utils.PrefixResolver#getBaseIdentifier()\n\t\t */\n\t\tpublic String getBaseIdentifier() {\n\t\t\treturn null;\n\t\t}\n\n\t}\n\n    /**\n     * The document to be searched to parallel the case where the XPathEvaluator\n     * is obtained by casting a Document.\n     */  \n    private final Document m_doc;\n    \n    /**\n     * Constructor for XPathEvaluatorImpl.\n     * \n     * @param doc The document to be searched, to parallel the case where''\n     *            the XPathEvaluator is obtained by casting the document.\n     */\n    public XPathEvaluatorImpl(Document doc) {\n        m_doc = doc;\n    }\n    \n    /**\n     * Constructor in the case that the XPath expression can be evaluated\n     * without needing an XML document at all.\n     *\n     */\n    public XPathEvaluatorImpl() {\n            m_doc = null;\n    }\n\n\t/**\n     * Creates a parsed XPath expression with resolved namespaces. This is \n     * useful when an expression will be reused in an application since it \n     * makes it possible to compile the expression string into a more \n     * efficient internal form and preresolve all namespace prefixes which \n     * occur within the expression.\n     * \n     * @param expression The XPath expression string to be parsed.\n     * @param resolver The <code>resolver</code> permits translation of \n     *   prefixes within the XPath expression into appropriate namespace URIs\n     *   . If this is specified as <code>null</code>, any namespace prefix \n     *   within the expression will result in <code>DOMException</code> \n     *   being thrown with the code <code>NAMESPACE_ERR</code>.\n     * @return The compiled form of the XPath expression.\n     * @exception XPathException\n     *   INVALID_EXPRESSION_ERR: Raised if the expression is not legal \n     *   according to the rules of the <code>XPathEvaluator</code>i\n     * @exception DOMException\n     *   NAMESPACE_ERR: Raised if the expression contains namespace prefixes \n     *   which cannot be resolved by the specified \n     *   <code>XPathNSResolver</code>.\t\n     *  \n\t * @see org.w3c.dom.xpath.XPathEvaluator#createExpression(String, XPathNSResolver)\n\t */\n\tpublic XPathExpression createExpression(\n\t\tString expression,\n\t\tXPathNSResolver resolver)\n\t\tthrows XPathException, DOMException {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tXPath xpath =  new XPath(expression,null,\n\t\t\t     ((null == resolver) ? new DummyPrefixResolver() : ((PrefixResolver)resolver)), \n\t\t\t      XPath.SELECT);\n                  \n            return new XPathExpressionImpl(xpath, m_doc);\n\t\t\t\n\t\t} catch (TransformerException e) {\n\t\t\tif(e instanceof XPathStylesheetDOM3Exception)\n\t\t\t\tthrow new DOMException(DOMException.NAMESPACE_ERR,e.getMessageAndLocation());\n\t\t\telse\n\t\t\t\tthrow new XPathException(XPathException.INVALID_EXPRESSION_ERR,e.getMessageAndLocation());\n\t\t\t\t\n\t\t}\n\t}\n\n\t/**\n     * Adapts any DOM node to resolve namespaces so that an XPath expression \n     * can be easily evaluated relative to the context of the node where it \n     * appeared within the document. This adapter works like the DOM Level 3 \n     * method <code>lookupNamespaceURI</code> on nodes in resolving the \n     * namespaceURI from a given prefix using the current information available \n     * in the node's hierarchy at the time lookupNamespaceURI is called, also \n     * correctly resolving the implicit xml prefix.\n     *\n     * @param nodeResolver The node to be used as a context for namespace \n     *   resolution.\n     * @return <code>XPathNSResolver</code> which resolves namespaces with \n     *   respect to the definitions in scope for a specified node.\n     *  \n\t * @see org.w3c.dom.xpath.XPathEvaluator#createNSResolver(Node)\n\t */\n\tpublic XPathNSResolver createNSResolver(Node nodeResolver) {\n\t\n\t\treturn new XPathNSResolverImpl((nodeResolver.getNodeType() == Node.DOCUMENT_NODE)\n\t           ? ((Document) nodeResolver).getDocumentElement() : nodeResolver);\n\t}\n\n\t/**\n     * Evaluates an XPath expression string and returns a result of the \n     * specified type if possible.\n     * \n     * @param expression The XPath expression string to be parsed and \n     *   evaluated.\n     * @param contextNode The <code>context</code> is context node for the \n     *   evaluation of this XPath expression. If the XPathEvaluator was \n     *   obtained by casting the <code>Document</code> then this must be \n     *   owned by the same document and must be a <code>Document</code>, \n     *   <code>Element</code>, <code>Attribute</code>, <code>Text</code>, \n     *   <code>CDATASection</code>, <code>Comment</code>, \n     *   <code>ProcessingInstruction</code>, or <code>XPathNamespace</code> \n     *   node. If the context node is a <code>Text</code> or a \n     *   <code>CDATASection</code>, then the context is interpreted as the \n     *   whole logical text node as seen by XPath, unless the node is empty \n     *   in which case it may not serve as the XPath context.\n     * @param resolver The <code>resolver</code> permits translation of \n     *   prefixes within the XPath expression into appropriate namespace URIs\n     *   . If this is specified as <code>null</code>, any namespace prefix \n     *   within the expression will result in <code>DOMException</code> \n     *   being thrown with the code <code>NAMESPACE_ERR</code>.\n     * @param type If a specific <code>type</code> is specified, then the \n     *   result will be coerced to return the specified type relying on \n     *   XPath type conversions and fail if the desired coercion is not \n     *   possible. This must be one of the type codes of \n     *   <code>XPathResult</code>.\n     * @param result The <code>result</code> specifies a specific result \n     *   object which may be reused and returned by this method. If this is \n     *   specified as <code>null</code>or the implementation does not reuse \n     *   the specified result, a new result object will be constructed and \n     *   returned.For XPath 1.0 results, this object will be of type \n     *   <code>XPathResult</code>.\n     * @return The result of the evaluation of the XPath expression.For XPath \n     *   1.0 results, this object will be of type <code>XPathResult</code>.\n     * @exception XPathException\n     *   INVALID_EXPRESSION_ERR: Raised if the expression is not legal \n     *   according to the rules of the <code>XPathEvaluator</code>i\n     *   <br>TYPE_ERR: Raised if the result cannot be converted to return the \n     *   specified type.\n     * @exception DOMException\n     *   NAMESPACE_ERR: Raised if the expression contains namespace prefixes \n     *   which cannot be resolved by the specified \n     *   <code>XPathNSResolver</code>.\n     *   <br>WRONG_DOCUMENT_ERR: The Node is from a document that is not \n     *   supported by this XPathEvaluator.\n     *   <br>NOT_SUPPORTED_ERR: The Node is not a type permitted as an XPath \n     *   context node.\n\t * \n\t * @see org.w3c.dom.xpath.XPathEvaluator#evaluate(String, Node, XPathNSResolver, short, XPathResult)\n\t */\n\tpublic Object evaluate(\n\t\tString expression,\n\t\tNode contextNode,\n\t\tXPathNSResolver resolver,\n\t\tshort type,\n\t\tObject result)\n\t\tthrows XPathException, DOMException {\n\t\t\t\n\t\tXPathExpression xpathExpression = createExpression(expression, resolver);\n\t\t\n\t\treturn\txpathExpression.evaluate(contextNode, type, result);", "functions": [{"function_name": "createExpression", "code": "\tpublic XPathExpression createExpression(\n\t\tString expression,\n\t\tXPathNSResolver resolver)\n\t\tthrows XPathException, DOMException {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tXPath xpath =  new XPath(expression,null,\n\t\t\t     ((null == resolver) ? new DummyPrefixResolver() : ((PrefixResolver)resolver)), \n\t\t\t      XPath.SELECT);\n                  \n            return new XPathExpressionImpl(xpath, m_doc);\n\t\t\t\n\t\t} catch (TransformerException e) {\n\t\t\tif(e instanceof XPathStylesheetDOM3Exception)\n\t\t\t\tthrow new DOMException(DOMException.NAMESPACE_ERR,e.getMessageAndLocation());\n\t\t\telse\n\t\t\t\tthrow new XPathException(XPathException.INVALID_EXPRESSION_ERR,e.getMessageAndLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "IF", "CALL", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [7, 9], [7, 10], [7, 11], [6, 12], [9, 13], [10, 14], [12, 15], [12, 16], [13, 17], [14, 18], [15, 19], [15, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 7], [10, 7], [11, 7], [12, 6], [13, 9], [14, 10], [15, 12], [16, 12], [17, 13], [18, 14], [19, 15], [20, 15], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createNSResolver", "code": "\tpublic XPathNSResolver createNSResolver(Node nodeResolver) {\n\t\n\t\treturn new XPathNSResolverImpl((nodeResolver.getNodeType() == Node.DOCUMENT_NODE)\n\t           ? ((Document) nodeResolver).getDocumentElement() : nodeResolver);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "COND_EXPR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "evaluate", "code": "\tpublic Object evaluate(\n\t\tString expression,\n\t\tNode contextNode,\n\t\tXPathNSResolver resolver,\n\t\tshort type,\n\t\tObject result)\n\t\tthrows XPathException, DOMException {\n\t\t\t\n\t\tXPathExpression xpathExpression = createExpression(expression, resolver);\n\t\t\n\t\treturn\txpathExpression.evaluate(contextNode, type, result);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "XPathEvaluatorImpl", "code": "    public XPathEvaluatorImpl(Document doc) {\n        m_doc = doc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "XPathEvaluatorImpl", "code": "    public XPathEvaluatorImpl() {\n            m_doc = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.7-8121", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/axes/ChildIterator.java", "language": "java", "name": "org.apache.xpath.axes.ChildIterator", "code": "public class ChildIterator extends LocPathIterator\n{\n    static final long serialVersionUID = -6935428015142993583L;\n\n  /**\n   * Create a ChildIterator object.\n   *\n   * @param compiler A reference to the Compiler that contains the op map.\n   * @param opPos The position within the op map, which contains the\n   * location path expression for this itterator.\n   * @param analysis Analysis bits of the entire pattern.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  ChildIterator(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis, false);\n\n    initNodeTest(DTMFilter.SHOW_ALL);\n  }\n  \n  /**\n   * Return the first node out of the nodeset, if this expression is \n   * a nodeset expression.  This is the default implementation for \n   * nodesets.\n   * <p>WARNING: Do not mutate this class from this function!</p>\n   * @param xctxt The XPath runtime context.\n   * @return the first node out of the nodeset, or DTM.NULL.\n   */\n  public int asNode(XPathContext xctxt)\n    throws javax.xml.transform.TransformerException\n  {\n    int current = xctxt.getCurrentNode();\n    \n    DTM dtm = xctxt.getDTM(current);\n    \n    return dtm.getFirstChild(current);\n  }\n\n  /**\n   *  Returns the next node in the set and advances the position of the\n   * iterator in the set. After a NodeIterator is created, the first call\n   * to nextNode() returns the first node in the set.\n   *\n   * @return  The next <code>Node</code> in the set being iterated over, or\n   *   <code>null</code> if there are no more members in that set.\n   */\n  public int nextNode()\n  {\n  \tif(m_foundLast)\n  \t\treturn DTM.NULL;\n\n    int next;\n\n    m_lastFetched = next = (DTM.NULL == m_lastFetched)\n                           ? m_cdtm.getFirstChild(m_context)\n                           : m_cdtm.getNextSibling(m_lastFetched);\n\n    if (DTM.NULL != next)\n    {\n      m_pos++;\n      return next;\n    }\n    else\n    {\n      m_foundLast = true;\n\n      return DTM.NULL;\n    }\n  }\n  \n  /**\n   * Returns the axis being iterated, if it is known.\n   * \n   * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple \n   * types.\n   */\n  public int getAxis()\n  {\n    return org.apache.xml.dtm.Axis.CHILD;", "functions": [{"function_name": "asNode", "code": "  public int asNode(XPathContext xctxt)\n    throws javax.xml.transform.TransformerException\n  {\n    int current = xctxt.getCurrentNode();\n    \n    DTM dtm = xctxt.getDTM(current);\n    \n    return dtm.getFirstChild(current);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "nextNode", "code": "  public int nextNode()\n  {\n  \tif(m_foundLast)\n  \t\treturn DTM.NULL;\n\n    int next;\n\n    m_lastFetched = next = (DTM.NULL == m_lastFetched)\n                           ? m_cdtm.getFirstChild(m_context)\n                           : m_cdtm.getNextSibling(m_lastFetched);\n\n    if (DTM.NULL != next)\n    {\n      m_pos++;\n      return next;\n    }\n    else\n    {\n      m_foundLast = true;\n\n      return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "RETURN", "RETURN", "RETURN", "ASSIGN", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [1, 7], [1, 8], [5, 9], [1, 10], [9, 11], [10, 12], [11, 13], [11, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 1], [8, 1], [9, 5], [10, 1], [11, 9], [12, 10], [13, 11], [14, 11], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getAxis", "code": "  public int getAxis()\n  {\n    return org.apache.xml.dtm.Axis.CHILD;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ChildIterator", "code": "  ChildIterator(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis, false);\n\n    initNodeTest(DTMFilter.SHOW_ALL);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "poi-3.0-6238", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hpsf/TypeWriter.java", "language": "java", "name": "org.apache.poi.hpsf.TypeWriter", "code": "public class TypeWriter\n{\n\n    /**\n     * <p>Writes a two-byte value (short) to an output stream.</p>\n     *\n     * @param out The stream to write to.\n     * @param n The value to write.\n     * @return The number of bytes that have been written.\n     * @exception IOException if an I/O error occurs\n     */\n    public static int writeToStream(final OutputStream out, final short n)\n        throws IOException\n    {\n        final int length = LittleEndian.SHORT_SIZE;\n        byte[] buffer = new byte[length];\n        out.write(buffer, 0, length);\n        return length;\n    }\n\n\n\n    /**\n     * <p>Writes a four-byte value to an output stream.</p>\n     *\n     * @param out The stream to write to.\n     * @param n The value to write.\n     * @exception IOException if an I/O error occurs\n     * @return The number of bytes written to the output stream. \n     */\n    public static int writeToStream(final OutputStream out, final int n)\n        throws IOException\n    {\n        final int l = LittleEndian.INT_SIZE;\n        final byte[] buffer = new byte[l];\n        LittleEndian.putInt(buffer, 0, n);\n        out.write(buffer, 0, l);\n        return l;\n        \n    }\n\n\n\n    /**\n     * <p>Writes a eight-byte value to an output stream.</p>\n     *\n     * @param out The stream to write to.\n     * @param n The value to write.\n     * @exception IOException if an I/O error occurs\n     * @return The number of bytes written to the output stream. \n     */\n    public static int writeToStream(final OutputStream out, final long n)\n        throws IOException\n    {\n        final int l = LittleEndian.LONG_SIZE;\n        final byte[] buffer = new byte[l];\n        LittleEndian.putLong(buffer, 0, n);\n        out.write(buffer, 0, l);\n        return l;\n        \n    }\n\n\n\n    /**\n     * <p>Writes an unsigned two-byte value to an output stream.</p>\n     *\n     * @param out The stream to write to\n     * @param n The value to write\n     * @exception IOException if an I/O error occurs\n     */\n    public static void writeUShortToStream(final OutputStream out, final int n)\n        throws IOException\n    {\n        int high = n & 0xFFFF0000;\n        if (high != 0)\n            throw new IllegalPropertySetDataException\n                (\"Value \" + n + \" cannot be represented by 2 bytes.\");\n        writeToStream(out, (short) n);\n    }\n\n\n\n    /**\n     * <p>Writes an unsigned four-byte value to an output stream.</p>\n     *\n     * @param out The stream to write to.\n     * @param n The value to write.\n     * @return The number of bytes that have been written to the output stream.\n     * @exception IOException if an I/O error occurs\n     */\n    public static int writeUIntToStream(final OutputStream out, final long n)\n        throws IOException\n    {\n        long high = n & 0xFFFFFFFF00000000L;\n        if (high != 0 && high != 0xFFFFFFFF00000000L)\n            throw new IllegalPropertySetDataException\n                (\"Value \" + n + \" cannot be represented by 4 bytes.\");\n        return writeToStream(out, (int) n);\n    }\n\n\n\n    /**\n     * <p>Writes a 16-byte {@link ClassID} to an output stream.</p>\n     *\n     * @param out The stream to write to\n     * @param n The value to write\n     * @return The number of bytes written\n     * @exception IOException if an I/O error occurs\n     */\n    public static int writeToStream(final OutputStream out, final ClassID n)\n        throws IOException\n    {\n        byte[] b = new byte[16];\n        n.write(b, 0);\n        out.write(b, 0, b.length);\n        return b.length;\n    }\n\n\n\n    /**\n     * <p>Writes an array of {@link Property} instances to an output stream\n     * according to the Horrible Property Stream Format.</p>\n     * \n     * @param out The stream to write to\n     * @param properties The array to write to the stream\n     * @param codepage The codepage number to use for writing strings\n     * @exception IOException if an I/O error occurs\n     * @throws UnsupportedVariantTypeException if HPSF does not support some\n     *         variant type.\n     */\n    public static void writeToStream(final OutputStream out,\n                                     final Property[] properties,\n                                     final int codepage)\n        throws IOException, UnsupportedVariantTypeException\n    {\n        /* If there are no properties don't write anything. */\n        if (properties == null)\n            return;\n\n        /* Write the property list. This is a list containing pairs of property\n         * ID and offset into the stream. */\n        for (int i = 0; i < properties.length; i++)\n        {\n            final Property p = properties[i];\n            writeUIntToStream(out, p.getID());\n            writeUIntToStream(out, p.getSize());\n        }\n\n        /* Write the properties themselves. */\n        for (int i = 0; i < properties.length; i++)\n        {\n            final Property p = properties[i];\n            long type = p.getType();\n            writeUIntToStream(out, type);\n            VariantSupport.write(out, (int) type, p.getValue(), codepage);\n        }\n    }\n\n\n\n    /**\n     * <p>Writes a double value value to an output stream.</p>\n     *\n     * @param out The stream to write to.\n     * @param n The value to write.\n     * @exception IOException if an I/O error occurs\n     * @return The number of bytes written to the output stream. \n     */\n    public static int writeToStream(final OutputStream out, final double n)\n        throws IOException\n    {\n        final int l = LittleEndian.DOUBLE_SIZE;\n        final byte[] buffer = new byte[l];\n        LittleEndian.putDouble(buffer, 0, n);\n        out.write(buffer, 0, l);\n        return l;", "functions": [{"function_name": "writeToStream", "code": "    public static int writeToStream(final OutputStream out, final short n)\n        throws IOException\n    {\n        final int length = LittleEndian.SHORT_SIZE;\n        byte[] buffer = new byte[length];\n        out.write(buffer, 0, length);\n        return length;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "writeToStream", "code": "    public static int writeToStream(final OutputStream out, final int n)\n        throws IOException\n    {\n        final int l = LittleEndian.INT_SIZE;\n        final byte[] buffer = new byte[l];\n        LittleEndian.putInt(buffer, 0, n);\n        out.write(buffer, 0, l);\n        return l;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "writeToStream", "code": "    public static int writeToStream(final OutputStream out, final long n)\n        throws IOException\n    {\n        final int l = LittleEndian.LONG_SIZE;\n        final byte[] buffer = new byte[l];\n        LittleEndian.putLong(buffer, 0, n);\n        out.write(buffer, 0, l);\n        return l;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "writeUShortToStream", "code": "    public static void writeUShortToStream(final OutputStream out, final int n)\n        throws IOException\n    {\n        int high = n & 0xFFFF0000;\n        if (high != 0)\n            throw new IllegalPropertySetDataException\n                (\"Value \" + n + \" cannot be represented by 2 bytes.\");\n        writeToStream(out, (short) n);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [7, 9], [2, 10], [8, 11], [10, 12], [11, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 7], [10, 2], [11, 8], [12, 10], [13, 11], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "writeUIntToStream", "code": "    public static int writeUIntToStream(final OutputStream out, final long n)\n        throws IOException\n    {\n        long high = n & 0xFFFFFFFF00000000L;\n        if (high != 0 && high != 0xFFFFFFFF00000000L)\n            throw new IllegalPropertySetDataException\n                (\"Value \" + n + \" cannot be represented by 4 bytes.\");\n        return writeToStream(out, (int) n);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [8, 10], [8, 11], [3, 12], [9, 13], [10, 14], [11, 15], [12, 16], [13, 17], [13, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 8], [11, 8], [12, 3], [13, 9], [14, 10], [15, 11], [16, 12], [17, 13], [18, 13], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "writeToStream", "code": "    public static int writeToStream(final OutputStream out, final ClassID n)\n        throws IOException\n    {\n        byte[] b = new byte[16];\n        n.write(b, 0);\n        out.write(b, 0, b.length);\n        return b.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "writeToStream", "code": "    public static void writeToStream(final OutputStream out,\n                                     final Property[] properties,\n                                     final int codepage)\n        throws IOException, UnsupportedVariantTypeException\n    {\n        /* If there are no properties don't write anything. */\n        if (properties == null)\n            return;\n\n        /* Write the property list. This is a list containing pairs of property\n         * ID and offset into the stream. */\n        for (int i = 0; i < properties.length; i++)\n        {\n            final Property p = properties[i];\n            writeUIntToStream(out, p.getID());\n            writeUIntToStream(out, p.getSize());\n        }\n\n        /* Write the properties themselves. */\n        for (int i = 0; i < properties.length; i++)\n        {\n            final Property p = properties[i];\n            long type = p.getType();\n            writeUIntToStream(out, type);\n            VariantSupport.write(out, (int) type, p.getValue(), codepage);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [3, 10], [1, 11], [1, 12], [2, 13], [10, 14], [1, 15], [1, 16], [1, 17], [2, 18], [2, 19], [2, 20], [15, 21], [11, 22], [18, 23], [19, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 3], [11, 1], [12, 1], [13, 2], [14, 10], [15, 1], [16, 1], [17, 1], [18, 2], [19, 2], [20, 2], [21, 15], [22, 11], [23, 18], [24, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "writeToStream", "code": "    public static int writeToStream(final OutputStream out, final double n)\n        throws IOException\n    {\n        final int l = LittleEndian.DOUBLE_SIZE;\n        final byte[] buffer = new byte[l];\n        LittleEndian.putDouble(buffer, 0, n);\n        out.write(buffer, 0, l);\n        return l;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "poi-3.0-6309", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/UnaryMinusPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.UnaryMinusPtg", "code": "public class UnaryMinusPtg extends OperationPtg\n{\n    public final static int  SIZE = 1;\n    public final static byte sid  = 0x13;\n    \n    private final static String MINUS = \"-\";\n\n    /** Creates new AddPtg */\n\n    public UnaryMinusPtg()\n    {\n    }\n\n    public UnaryMinusPtg(RecordInputStream in)\n    {\n\n    }\n    \n   \n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public int getType()\n    {\n        return this.TYPE_UNARY;\n    }\n\n    public int getNumberOfOperands()\n    {\n        return 1;\n    }\n    \n    /** Implementation of method from Ptg */\n    public String toFormulaString(Workbook book)\n    {\n        return \"+\";\n    }\n       \n   /** implementation of method from OperationsPtg*/  \n    public String toFormulaString(String[] operands) {\n        StringBuffer buffer = new StringBuffer();\n        buffer.append(MINUS);\n        buffer.append(operands[ 0]);\n        return buffer.toString();\n    }\n    \n    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}\n           \n    public Object clone() {\n      return new UnaryPlusPtg();", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return this.TYPE_UNARY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfOperands", "code": "    public int getNumberOfOperands()\n    {\n        return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \"+\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(String[] operands) {\n        StringBuffer buffer = new StringBuffer();\n        buffer.append(MINUS);\n        buffer.append(operands[ 0]);\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      return new UnaryPlusPtg();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "UnaryMinusPtg", "code": "    public UnaryMinusPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "UnaryMinusPtg", "code": "    public UnaryMinusPtg(RecordInputStream in)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.6-7683", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/runtime/output/StringOutputBuffer.java", "language": "java", "name": "org.apache.xalan.xsltc.runtime.output.StringOutputBuffer", "code": "class StringOutputBuffer implements OutputBuffer {\n    private StringBuffer _buffer;\n\n    public StringOutputBuffer() {\n\t_buffer = new StringBuffer();\n    }\n\n    public String close() {\n\treturn _buffer.toString();\n    }\n\n    public OutputBuffer append(String s) {\n\t_buffer.append(s);\n\treturn this;\n    }\n\n    public OutputBuffer append(char[] s, int from, int to) {\n\t_buffer.append(s, from, to);\n\treturn this;\n    }\n\n    public OutputBuffer append(char ch) {\n\t_buffer.append(ch);\n\treturn this;", "functions": [{"function_name": "close", "code": "    public String close() {\n\treturn _buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "append", "code": "    public OutputBuffer append(String s) {\n\t_buffer.append(s);\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "append", "code": "    public OutputBuffer append(char[] s, int from, int to) {\n\t_buffer.append(s, from, to);\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "append", "code": "    public OutputBuffer append(char ch) {\n\t_buffer.append(ch);\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "StringOutputBuffer", "code": "    public StringOutputBuffer() {\n\t_buffer = new StringBuffer();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.0-1541", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/jms/JmsProducer.java", "language": "java", "name": "org.apache.camel.component.jms.JmsProducer", "code": "public class JmsProducer extends DefaultProducer {\n    private static final transient Log log = LogFactory.getLog(JmsProducer.class);\n    private final JmsEndpoint endpoint;\n    private final JmsOperations template;\n\n    public JmsProducer(JmsEndpoint endpoint, JmsOperations template) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        this.template = template;\n    }\n\n    public void process(final Exchange exchange) {\n        template.send(endpoint.getDestination(), new MessageCreator() {\n            public Message createMessage(Session session) throws JMSException {\n                Message message = endpoint.getBinding().makeJmsMessage(exchange, session);\n                if (log.isDebugEnabled()) {\n                    log.debug(endpoint + \" sending JMS message: \" + message);\n                }\n                return message;\n            }\n        });\n    }\n\n    public JmsOperations getTemplate() {\n        return template;", "functions": [{"function_name": "process", "code": "    public void process(final Exchange exchange) {\n        template.send(endpoint.getDestination(), new MessageCreator() {\n            public Message createMessage(Session session) throws JMSException {\n                Message message = endpoint.getBinding().makeJmsMessage(exchange, session);\n                if (log.isDebugEnabled()) {\n                    log.debug(endpoint + \" sending JMS message: \" + message);\n                }\n                return message;", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [5, 6], [5, 7], [5, 8], [5, 9], [7, 10], [8, 11], [7, 12], [11, 13], [12, 14], [14, 15], [15, 16], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 5], [7, 5], [8, 5], [9, 5], [10, 7], [11, 8], [12, 7], [13, 11], [14, 12], [15, 14], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getTemplate", "code": "    public JmsOperations getTemplate() {\n        return template;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "JmsProducer", "code": "    public JmsProducer(JmsEndpoint endpoint, JmsOperations template) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.1-4164", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "gnu/regexp/REMatch.java", "language": "java", "name": "gnu.regexp.REMatch", "code": "public final class REMatch implements Serializable, Cloneable {\n    private String matchedText;\n\n    // These variables are package scope for fast access within the engine\n    int eflags; // execution flags this match was made using\n\n    // Offset in source text where match was tried.  This is zero-based;\n    // the actual position in the source text is given by (offset + anchor).\n    int offset;\n\n    // Anchor position refers to the index into the source input\n    // at which the matching operation began.\n    // This is also useful for the ANCHORINDEX option.\n    int anchor;\n\n    // Package scope; used by RE.\n    int index; // used while matching to mark current match position in input\n    int[] start; // start positions (relative to offset) for each (sub)exp.\n    int[] end;   // end positions for the same\n    REMatch next; // other possibility (to avoid having to use arrays)\n\n    public Object clone() {\n\ttry {\n\t    REMatch copy = (REMatch) super.clone();\n\t    copy.next = null;\n\n\t    copy.start = (int[]) start.clone();\n\t    copy.end = (int[]) end.clone();\n\n\t    return copy;\n\t} catch (CloneNotSupportedException e) {\n\t    throw new Error(); // doesn't happen\n\t}\n    }\n\n    void assignFrom(REMatch other) {\n\tstart = other.start;\n\tend = other.end;\n\tindex = other.index;\n\t// need to deep clone?\n\tnext = other.next;\n    }\n\n    REMatch(int subs, int anchor, int eflags) {\n\tstart = new int[subs+1];\n\tend = new int[subs+1];\n\tthis.anchor = anchor;\n\tthis.eflags = eflags;\n\tclear(anchor);\n    }\n\n    void finish(CharIndexed text) {\n\tstart[0] = 0;\n\tStringBuffer sb = new StringBuffer();\n\tint i;\n\tfor (i = 0; i < end[0]; i++)\n\t    sb.append(text.charAt(i));\n\tmatchedText = sb.toString();\n\tfor (i = 0; i < start.length; i++) {\n\t    // If any subexpressions didn't terminate, they don't count\n\t    // TODO check if this code ever gets hit\n\t    if ((start[i] == -1) ^ (end[i] == -1)) {\n\t\tstart[i] = -1;\n\t\tend[i] = -1;\n\t    }\n\t}\n\tnext = null; // cut off alternates\n    }\n    \n    /** Clears the current match and moves the offset to the new index. */\n    void clear(int index) {\n\toffset = index;\n\tthis.index = 0;\n\tfor (int i = 0; i < start.length; i++) {\n\t    start[i] = end[i] = -1;\n\t}\n\tnext = null; // cut off alternates\n    }\n    \n    /**\n     * Returns the string matching the pattern.  This makes it convenient\n     * to write code like the following:\n     * <P>\n     * <code> \n     * REMatch myMatch = myExpression.getMatch(myString);<br>\n     * if (myMatch != null) System.out.println(\"Regexp found: \"+myMatch);\n     * </code>\n     */\n    public String toString() {\n\treturn matchedText;\n    }\n    \n    /**\n     * Returns the index within the input text where the match in its entirety\n     * began.\n     */\n    public int getStartIndex() {\n\treturn offset + start[0];\n    }\n    \n    /**\n     * Returns the index within the input string where the match in\n     * its entirety ends.  The return value is the next position after\n     * the end of the string; therefore, a match created by the\n     * following call:\n     *\n     * <P>\n     * <code>REMatch myMatch = myExpression.getMatch(myString);</code>\n     * <P>\n     * can be viewed (given that myMatch is not null) by creating\n     * <P>\n     * <code>String theMatch = myString.substring(myMatch.getStartIndex(),\n     * myMatch.getEndIndex());</code>\n     * <P>\n     * But you can save yourself that work, since the <code>toString()</code>\n     * method (above) does exactly that for you.  \n     */\n    public int getEndIndex() {\n\treturn offset + end[0];\n    }\n  \n    /**\n     * Returns the string matching the given subexpression.  The subexpressions\n     * are indexed starting with one, not zero.  That is, the subexpression\n     * identified by the first set of parentheses in a regular expression\n     * could be retrieved from an REMatch by calling match.toString(1).\n     *\n     * @param sub Index of the subexpression.\n     */\n    public String toString(int sub) {\n\tif ((sub >= start.length) || (start[sub] == -1)) return \"\";\n\treturn (matchedText.substring(start[sub],end[sub]));\n    }\n    \n    /** \n     * Returns the index within the input string used to generate this match\n     * where subexpression number <i>sub</i> begins, or <code>-1</code> if\n     * the subexpression does not exist.  The initial position is zero.\n     *\n     * @param sub Subexpression index\n     * @deprecated Use getStartIndex(int) instead.\n     */\n    public int getSubStartIndex(int sub) {\n\tif (sub >= start.length) return -1;\n\tint x = start[sub];\n\treturn (x == -1) ? x : offset + x;\n    }\n    \n    /** \n     * Returns the index within the input string used to generate this match\n     * where subexpression number <i>sub</i> begins, or <code>-1</code> if\n     * the subexpression does not exist.  The initial position is zero.\n     *\n     * @param sub Subexpression index\n     * @since gnu.regexp 1.1.0\n     */\n    public int getStartIndex(int sub) {\n\tif (sub >= start.length) return -1;\n\tint x = start[sub];\n\treturn (x == -1) ? x : offset + x;\n    }\n  \n    /** \n     * Returns the index within the input string used to generate this match\n     * where subexpression number <i>sub</i> ends, or <code>-1</code> if\n     * the subexpression does not exist.  The initial position is zero.\n     *\n     * @param sub Subexpression index\n     * @deprecated Use getEndIndex(int) instead\n     */\n    public int getSubEndIndex(int sub) {\n\tif (sub >= start.length) return -1;\n\tint x = end[sub];\n\treturn (x == -1) ? x : offset + x;\n    }\n    \n    /** \n     * Returns the index within the input string used to generate this match\n     * where subexpression number <i>sub</i> ends, or <code>-1</code> if\n     * the subexpression does not exist.  The initial position is zero.\n     *\n     * @param sub Subexpression index\n     */\n    public int getEndIndex(int sub) {\n\tif (sub >= start.length) return -1;\n\tint x = end[sub];\n\treturn (x == -1) ? x : offset + x;\n    }\n    \n    /**\n     * Substitute the results of this match to create a new string.\n     * This is patterned after PERL, so the tokens to watch out for are\n     * <code>$0</code> through <code>$9</code>.  <code>$0</code> matches\n     * the full substring matched; <code>$<i>n</i></code> matches\n     * subexpression number <i>n</i>.\n     *\n     * @param input A string consisting of literals and <code>$<i>n</i></code> tokens.\n     */\n    public String substituteInto(String input) {\n\t// a la Perl, $0 is whole thing, $1 - $9 are subexpressions\n\tStringBuffer output = new StringBuffer();\n\tint pos;\n\tfor (pos = 0; pos < input.length()-1; pos++) {\n\t    if ((input.charAt(pos) == '$') && (Character.isDigit(input.charAt(pos+1)))) {\n\t\tint val = Character.digit(input.charAt(++pos),10);\n\t\tif (val < start.length) {\n\t\t    output.append(toString(val));\n\t\t} \n\t    } else output.append(input.charAt(pos));\n\t}\n\tif (pos < input.length()) output.append(input.charAt(pos));\n\treturn output.toString();", "functions": [{"function_name": "clone", "code": "    public Object clone() {\n\ttry {\n\t    REMatch copy = (REMatch) super.clone();\n\t    copy.next = null;\n\n\t    copy.start = (int[]) start.clone();\n\t    copy.end = (int[]) end.clone();\n\n\t    return copy;\n\t} catch (CloneNotSupportedException e) {\n\t    throw new Error(); // doesn't happen", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 8], [5, 9], [8, 10], [6, 11], [7, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 1], [7, 1], [8, 1], [9, 5], [10, 8], [11, 6], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "assignFrom", "code": "    void assignFrom(REMatch other) {\n\tstart = other.start;\n\tend = other.end;\n\tindex = other.index;\n\t// need to deep clone?\n\tnext = other.next;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "finish", "code": "    void finish(CharIndexed text) {\n\tstart[0] = 0;\n\tStringBuffer sb = new StringBuffer();\n\tint i;\n\tfor (i = 0; i < end[0]; i++)\n\t    sb.append(text.charAt(i));\n\tmatchedText = sb.toString();\n\tfor (i = 0; i < start.length; i++) {\n\t    // If any subexpressions didn't terminate, they don't count\n\t    // TODO check if this code ever gets hit\n\t    if ((start[i] == -1) ^ (end[i] == -1)) {\n\t\tstart[i] = -1;\n\t\tend[i] = -1;\n\t    }\n\t}\n\tnext = null; // cut off alternates", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [0, 9], [2, 10], [2, 11], [0, 12], [6, 13], [1, 14], [8, 15], [9, 16], [2, 17], [11, 18], [4, 19], [12, 20], [14, 21], [17, 22], [21, 23], [21, 24], [10, 25], [12, 26], [14, 27], [14, 28], [23, 29], [24, 30], [27, 31], [28, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 0], [10, 2], [11, 2], [12, 0], [13, 6], [14, 1], [15, 8], [16, 9], [17, 2], [18, 11], [19, 4], [20, 12], [21, 14], [22, 17], [23, 21], [24, 21], [25, 10], [26, 12], [27, 14], [28, 14], [29, 23], [30, 24], [31, 27], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "clear", "code": "    void clear(int index) {\n\toffset = index;\n\tthis.index = 0;\n\tfor (int i = 0; i < start.length; i++) {\n\t    start[i] = end[i] = -1;\n\t}\n\tnext = null; // cut off alternates", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [3, 7], [5, 8], [1, 9], [1, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 3], [8, 5], [9, 1], [10, 1], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn matchedText;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStartIndex", "code": "    public int getStartIndex() {\n\treturn offset + start[0];", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEndIndex", "code": "    public int getEndIndex() {\n\treturn offset + end[0];", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString(int sub) {\n\tif ((sub >= start.length) || (start[sub] == -1)) return \"\";\n\treturn (matchedText.substring(start[sub],end[sub]));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getSubStartIndex", "code": "    public int getSubStartIndex(int sub) {\n\tif (sub >= start.length) return -1;\n\tint x = start[sub];\n\treturn (x == -1) ? x : offset + x;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "COND_EXPR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [3, 7], [5, 8], [5, 9], [6, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 3], [8, 5], [9, 5], [10, 6], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getStartIndex", "code": "    public int getStartIndex(int sub) {\n\tif (sub >= start.length) return -1;\n\tint x = start[sub];\n\treturn (x == -1) ? x : offset + x;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "COND_EXPR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [3, 7], [5, 8], [5, 9], [6, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 3], [8, 5], [9, 5], [10, 6], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getSubEndIndex", "code": "    public int getSubEndIndex(int sub) {\n\tif (sub >= start.length) return -1;\n\tint x = end[sub];\n\treturn (x == -1) ? x : offset + x;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "COND_EXPR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [3, 7], [5, 8], [5, 9], [6, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 3], [8, 5], [9, 5], [10, 6], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getEndIndex", "code": "    public int getEndIndex(int sub) {\n\tif (sub >= start.length) return -1;\n\tint x = end[sub];\n\treturn (x == -1) ? x : offset + x;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "COND_EXPR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [3, 7], [5, 8], [5, 9], [6, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 3], [8, 5], [9, 5], [10, 6], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "substituteInto", "code": "    public String substituteInto(String input) {\n\t// a la Perl, $0 is whole thing, $1 - $9 are subexpressions\n\tStringBuffer output = new StringBuffer();\n\tint pos;\n\tfor (pos = 0; pos < input.length()-1; pos++) {\n\t    if ((input.charAt(pos) == '$') && (Character.isDigit(input.charAt(pos+1)))) {\n\t\tint val = Character.digit(input.charAt(++pos),10);\n\t\tif (val < start.length) {\n\t\t    output.append(toString(val));\n\t\t} \n\t    } else output.append(input.charAt(pos));\n\t}\n\tif (pos < input.length()) output.append(input.charAt(pos));\n\treturn output.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [3, 10], [2, 11], [8, 12], [3, 13], [9, 14], [10, 15], [5, 16], [11, 17], [13, 18], [14, 19], [14, 20], [13, 21], [13, 22], [13, 23], [18, 24], [18, 25], [21, 26], [22, 27], [24, 28], [25, 29], [25, 30], [23, 31], [28, 32], [22, 33], [31, 34], [31, 35], [32, 36], [33, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 3], [11, 2], [12, 8], [13, 3], [14, 9], [15, 10], [16, 5], [17, 11], [18, 13], [19, 14], [20, 14], [21, 13], [22, 13], [23, 13], [24, 18], [25, 18], [26, 21], [27, 22], [28, 24], [29, 25], [30, 25], [31, 23], [32, 28], [33, 22], [34, 31], [35, 31], [36, 32], [37, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "REMatch", "code": "    REMatch(int subs, int anchor, int eflags) {\n\tstart = new int[subs+1];\n\tend = new int[subs+1];\n\tthis.anchor = anchor;\n\tthis.eflags = eflags;\n\tclear(anchor);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [7, 9], [8, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 7], [10, 8], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "ant-1.7-1116", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/OutputStreamFunneler.java", "language": "java", "name": "org.apache.tools.ant.util.OutputStreamFunneler", "code": "public class OutputStreamFunneler {\n\n    /**\n     * Default timeout.\n     * @see #setTimeout(long)\n     */\n    public static final long DEFAULT_TIMEOUT_MILLIS = 1000;\n\n    private final class Funnel extends OutputStream {\n        private boolean closed = false;\n\n        private Funnel() {\n            synchronized (OutputStreamFunneler.this) {\n                ++count;\n            }\n        }\n\n        public void flush() throws IOException {\n            synchronized (OutputStreamFunneler.this) {\n                dieIfClosed();\n                out.flush();\n            }\n        }\n\n        public void write(int b) throws IOException {\n            synchronized (OutputStreamFunneler.this) {\n                dieIfClosed();\n                out.write(b);\n            }\n        }\n\n        public void write(byte[] b) throws IOException {\n            synchronized (OutputStreamFunneler.this) {\n                dieIfClosed();\n                out.write(b);\n            }\n        }\n\n        public void write(byte[] b, int off, int len) throws IOException {\n            synchronized (OutputStreamFunneler.this) {\n                dieIfClosed();\n                out.write(b, off, len);\n            }\n        }\n\n        public void close() throws IOException {\n            release(this);\n        }\n    }\n\n    private OutputStream out;\n    private int count = 0;\n    private boolean closed;\n    private long timeoutMillis;\n\n    /**\n     * Create a new <code>OutputStreamFunneler</code> for\n     * the specified <code>OutputStream</code>.\n     * @param out   <code>OutputStream</code>.\n     */\n    public OutputStreamFunneler(OutputStream out) {\n        this(out, DEFAULT_TIMEOUT_MILLIS);\n    }\n\n    /**\n     * Create a new <code>OutputStreamFunneler</code> for\n     * the specified <code>OutputStream</code>, with the\n     * specified timeout value.\n     * @param out             <code>OutputStream</code>.\n     * @param timeoutMillis   <code>long</code>.\n     * @see #setTimeout(long)\n     */\n    public OutputStreamFunneler(OutputStream out, long timeoutMillis) {\n        if (out == null) {\n            throw new IllegalArgumentException(\n                \"OutputStreamFunneler.<init>:  out == null\");\n        }\n        this.out = out;\n        setTimeout(timeoutMillis);\n    }\n\n    /**\n     * Set the timeout for this <code>OutputStreamFunneler</code>.\n     * This is the maximum time that may elapse between the closure\n     * of the last &quot;funnel&quot; and the next call to\n     * <code>getOutputStream()</code> without closing the\n     * underlying stream.\n     * @param timeoutMillis   <code>long</code> timeout value.\n     */\n    public synchronized void setTimeout(long timeoutMillis) {\n        this.timeoutMillis = timeoutMillis;\n    }\n\n    /**\n     * Get a &quot;funnel&quot; <code>OutputStream</code> instance to\n     * write to this <code>OutputStreamFunneler</code>'s underlying\n     * <code>OutputStream</code>.\n     * @return <code>OutputStream</code>.\n     * @throws IOException if unable to create the funnel.\n     */\n    public synchronized OutputStream getFunnelInstance()\n        throws IOException {\n        dieIfClosed();\n        try {\n            return new Funnel();\n        } finally {\n            notifyAll();\n        }\n    }\n\n    private synchronized void release(Funnel funnel) throws IOException {\n        if (!funnel.closed) {\n            try {\n                if (timeoutMillis > 0) {\n                    try {\n                        wait(timeoutMillis);\n                    } catch (InterruptedException eyeEx) {\n                    }\n                }\n                if (--count == 0) {\n                    close();\n                }\n            } finally {\n                funnel.closed = true;\n            }\n        }\n   }\n\n    private synchronized void close() throws IOException {\n        try {\n            dieIfClosed();\n            out.close();\n        } finally {\n            closed = true;\n        }\n    }\n\n    private synchronized void dieIfClosed() throws IOException {\n        if (closed) {\n            throw new IOException(\"The funneled OutputStream has been closed.\");", "functions": [{"function_name": "setTimeout", "code": "    public synchronized void setTimeout(long timeoutMillis) {\n        this.timeoutMillis = timeoutMillis;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFunnelInstance", "code": "    public synchronized OutputStream getFunnelInstance()\n        throws IOException {\n        dieIfClosed();\n        try {\n            return new Funnel();\n        } finally {\n            notifyAll();", "ast_nodes": ["FUNC_DECL", "TRY", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "release", "code": "    private synchronized void release(Funnel funnel) throws IOException {\n        if (!funnel.closed) {\n            try {\n                if (timeoutMillis > 0) {\n                    try {\n                        wait(timeoutMillis);\n                    } catch (InterruptedException eyeEx) {\n                    }\n                }\n                if (--count == 0) {\n                    close();\n                }\n            } finally {\n                funnel.closed = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "TRY", "IF", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [5, 11], [8, 12], [4, 13], [11, 14], [11, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 5], [12, 8], [13, 4], [14, 11], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "close", "code": "    private synchronized void close() throws IOException {\n        try {\n            dieIfClosed();\n            out.close();\n        } finally {\n            closed = true;", "ast_nodes": ["FUNC_DECL", "TRY", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "dieIfClosed", "code": "    private synchronized void dieIfClosed() throws IOException {\n        if (closed) {\n            throw new IOException(\"The funneled OutputStream has been closed.\");", "ast_nodes": ["FUNC_DECL", "IF", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "OutputStreamFunneler", "code": "    public OutputStreamFunneler(OutputStream out) {\n        this(out, DEFAULT_TIMEOUT_MILLIS);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "OutputStreamFunneler", "code": "    public OutputStreamFunneler(OutputStream out, long timeoutMillis) {\n        if (out == null) {\n            throw new IllegalArgumentException(\n                \"OutputStreamFunneler.<init>:  out == null\");\n        }\n        this.out = out;\n        setTimeout(timeoutMillis);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "log4j-1.2-4979", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/WriterAppender.java", "language": "java", "name": "org.apache.log4j.WriterAppender", "code": "public class WriterAppender extends AppenderSkeleton {\n\n\n  /**\n     Immediate flush means that the underlying writer or output stream\n     will be flushed at the end of each append operation unless shouldFlush()\n     is overridden. Immediate\n     flush is slower but ensures that each append request is actually\n     written. If <code>immediateFlush</code> is set to\n     <code>false</code>, then there is a good chance that the last few\n     logs events are not actually written to persistent media if and\n     when the application crashes.\n\n     <p>The <code>immediateFlush</code> variable is set to\n     <code>true</code> by default.\n\n  */\n  protected boolean immediateFlush = true;\n\n  /**\n     The encoding to use when writing.  <p>The\n     <code>encoding</code> variable is set to <code>null</null> by\n     default which results in the utilization of the system's default\n     encoding.  */\n  protected String encoding;\n\n  /**\n     This is the {@link QuietWriter quietWriter} where we will write\n     to.\n  */\n  protected QuietWriter qw;\n\n\n  /**\n     This default constructor does nothing.  */\n  public\n  WriterAppender() {\n  }\n\n  /**\n     Instantiate a WriterAppender and set the output destination to a\n     new {@link OutputStreamWriter} initialized with <code>os</code>\n     as its {@link OutputStream}.  */\n  public\n  WriterAppender(Layout layout, OutputStream os) {\n    this(layout, new OutputStreamWriter(os));\n  }\n\n  /**\n     Instantiate a WriterAppender and set the output destination to\n     <code>writer</code>.\n\n     <p>The <code>writer</code> must have been previously opened by\n     the user.  */\n  public\n  WriterAppender(Layout layout, Writer writer) {\n    this.layout = layout;\n    this.setWriter(writer);\n  }\n\n  /**\n     If the <b>ImmediateFlush</b> option is set to\n     <code>true</code>, the appender will flush at the end of each\n     write. This is the default behavior. If the option is set to\n     <code>false</code>, then the underlying stream can defer writing\n     to physical medium to a later time.\n\n     <p>Avoiding the flush operation at the end of each append results in\n     a performance gain of 10 to 20 percent. However, there is safety\n     tradeoff involved in skipping flushing. Indeed, when flushing is\n     skipped, then it is likely that the last few log events will not\n     be recorded on disk when the application exits. This is a high\n     price to pay even for a 20% performance gain.\n   */\n  public\n  void setImmediateFlush(boolean value) {\n    immediateFlush = value;\n  }\n\n  /**\n     Returns value of the <b>ImmediateFlush</b> option.\n   */\n  public\n  boolean getImmediateFlush() {\n    return immediateFlush;\n  }\n\n  /**\n     Does nothing.\n  */\n  public\n  void activateOptions() {\n  }\n\n\n  /**\n     This method is called by the {@link AppenderSkeleton#doAppend}\n     method.\n\n     <p>If the output stream exists and is writable then write a log\n     statement to the output stream. Otherwise, write a single warning\n     message to <code>System.err</code>.\n\n     <p>The format of the output will depend on this appender's\n     layout.\n\n  */\n  public\n  void append(LoggingEvent event) {\n\n    // Reminder: the nesting of calls is:\n    //\n    //    doAppend()\n    //      - check threshold\n    //      - filter\n    //      - append();\n    //        - checkEntryConditions();\n    //        - subAppend();\n\n    if(!checkEntryConditions()) {\n      return;\n    }\n    subAppend(event);\n   }\n\n  /**\n     This method determines if there is a sense in attempting to append.\n\n     <p>It checks whether there is a set output target and also if\n     there is a set layout. If these checks fail, then the boolean\n     value <code>false</code> is returned. */\n  protected\n  boolean checkEntryConditions() {\n    if(this.closed) {\n      LogLog.warn(\"Not allowed to write to a closed appender.\");\n      return false;\n    }\n\n    if(this.qw == null) {\n      errorHandler.error(\"No output stream or file set for the appender named [\"+\n\t\t\tname+\"].\");\n      return false;\n    }\n\n    if(this.layout == null) {\n      errorHandler.error(\"No layout set for the appender named [\"+ name+\"].\");\n      return false;\n    }\n    return true;\n  }\n\n\n  /**\n     Close this appender instance. The underlying stream or writer is\n     also closed.\n\n     <p>Closed appenders cannot be reused.\n\n     @see #setWriter\n     @since 0.8.4 */\n  public\n  synchronized\n  void close() {\n    if(this.closed)\n      return;\n    this.closed = true;\n    writeFooter();\n    reset();\n  }\n\n  /**\n   * Close the underlying {@link java.io.Writer}.\n   * */\n  protected void closeWriter() {\n    if(qw != null) {\n      try {\n\tqw.close();\n      } catch(IOException e) {\n          if (e instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n\t// There is do need to invoke an error handler at this late\n\t// stage.\n\tLogLog.error(\"Could not close \" + qw, e);\n      }\n    }\n  }\n\n  /**\n     Returns an OutputStreamWriter when passed an OutputStream.  The\n     encoding used will depend on the value of the\n     <code>encoding</code> property.  If the encoding value is\n     specified incorrectly the writer will be opened using the default\n     system encoding (an error message will be printed to the loglog.  */\n  protected\n  OutputStreamWriter createWriter(OutputStream os) {\n    OutputStreamWriter retval = null;\n\n    String enc = getEncoding();\n    if(enc != null) {\n      try {\n\tretval = new OutputStreamWriter(os, enc);\n      } catch(IOException e) {\n          if (e instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n\t      LogLog.warn(\"Error initializing output writer.\");\n\t      LogLog.warn(\"Unsupported encoding?\");\n      }\n    }\n    if(retval == null) {\n      retval = new OutputStreamWriter(os);\n    }\n    return retval;\n  }\n\n  public String getEncoding() {\n    return encoding;\n  }\n\n  public void setEncoding(String value) {\n    encoding = value;\n  }\n\n\n\n\n  /**\n     Set the {@link ErrorHandler} for this WriterAppender and also the\n     underlying {@link QuietWriter} if any. */\n  public synchronized void setErrorHandler(ErrorHandler eh) {\n    if(eh == null) {\n      LogLog.warn(\"You have tried to set a null error-handler.\");\n    } else {\n      this.errorHandler = eh;\n      if(this.qw != null) {\n\tthis.qw.setErrorHandler(eh);\n      }\n    }\n  }\n\n  /**\n    <p>Sets the Writer where the log output will go. The\n    specified Writer must be opened by the user and be\n    writable.\n\n    <p>The <code>java.io.Writer</code> will be closed when the\n    appender instance is closed.\n\n\n    <p><b>WARNING:</b> Logging to an unopened Writer will fail.\n    <p>\n    @param writer An already opened Writer.  */\n  public synchronized void setWriter(Writer writer) {\n    reset();\n    this.qw = new QuietWriter(writer, errorHandler);\n    //this.tp = new TracerPrintWriter(qw);\n    writeHeader();\n  }\n\n\n  /**\n     Actual writing occurs here.\n\n     <p>Most subclasses of <code>WriterAppender</code> will need to\n     override this method.\n\n     @since 0.9.0 */\n  protected\n  void subAppend(LoggingEvent event) {\n    this.qw.write(this.layout.format(event));\n\n    if(layout.ignoresThrowable()) {\n      String[] s = event.getThrowableStrRep();\n      if (s != null) {\n\tint len = s.length;\n\tfor(int i = 0; i < len; i++) {\n\t  this.qw.write(s[i]);\n\t  this.qw.write(Layout.LINE_SEP);\n\t}\n      }\n    }\n\n    if(shouldFlush(event)) {\n      this.qw.flush();\n    }\n  }\n\n\n\n  /**\n     The WriterAppender requires a layout. Hence, this method returns\n     <code>true</code>.\n  */\n  public\n  boolean requiresLayout() {\n    return true;\n  }\n\n  /**\n     Clear internal references to the writer and other variables.\n\n     Subclasses can override this method for an alternate closing\n     behavior.  */\n  protected\n  void reset() {\n    closeWriter();\n    this.qw = null;\n    //this.tp = null;\n  }\n\n\n  /**\n     Write a footer as produced by the embedded layout's {@link\n     Layout#getFooter} method.  */\n  protected\n  void writeFooter() {\n    if(layout != null) {\n      String f = layout.getFooter();\n      if(f != null && this.qw != null) {\n\tthis.qw.write(f);\n\tthis.qw.flush();\n      }\n    }\n  }\n\n  /**\n     Write a header as produced by the embedded layout's {@link\n     Layout#getHeader} method.  */\n  protected\n  void writeHeader() {\n    if(layout != null) {\n      String h = layout.getHeader();\n      if(h != null && this.qw != null)\n\tthis.qw.write(h);\n    }\n  }\n  \n  /**\n   * Determines whether the writer should be flushed after\n   * this event is written.\n   * \n   * @since 1.2.16\n   */\n  protected boolean shouldFlush(final LoggingEvent event) {\n     return immediateFlush;", "functions": [{"function_name": "setImmediateFlush", "code": "  void setImmediateFlush(boolean value) {\n    immediateFlush = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getImmediateFlush", "code": "  boolean getImmediateFlush() {\n    return immediateFlush;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "activateOptions", "code": "  void activateOptions() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "append", "code": "  void append(LoggingEvent event) {\n\n    // Reminder: the nesting of calls is:\n    //\n    //    doAppend()\n    //      - check threshold\n    //      - filter\n    //      - append();\n    //        - checkEntryConditions();\n    //        - subAppend();\n\n    if(!checkEntryConditions()) {\n      return;\n    }\n    subAppend(event);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "checkEntryConditions", "code": "  boolean checkEntryConditions() {\n    if(this.closed) {\n      LogLog.warn(\"Not allowed to write to a closed appender.\");\n      return false;\n    }\n\n    if(this.qw == null) {\n      errorHandler.error(\"No output stream or file set for the appender named [\"+\n\t\t\tname+\"].\");\n      return false;\n    }\n\n    if(this.layout == null) {\n      errorHandler.error(\"No layout set for the appender named [\"+ name+\"].\");\n      return false;\n    }\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [6, 9], [3, 10], [7, 11], [4, 12], [8, 13], [2, 14], [10, 15], [3, 16], [12, 17], [4, 18], [14, 19], [16, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [23, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 6], [10, 3], [11, 7], [12, 4], [13, 8], [14, 2], [15, 10], [16, 3], [17, 12], [18, 4], [19, 14], [20, 16], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 23], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "close", "code": "  void close() {\n    if(this.closed)\n      return;\n    this.closed = true;\n    writeFooter();\n    reset();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "ASSIGN", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "closeWriter", "code": "  protected void closeWriter() {\n    if(qw != null) {\n      try {\n\tqw.close();\n      } catch(IOException e) {\n          if (e instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n\t// There is do need to invoke an error handler at this late\n\t// stage.\n\tLogLog.error(\"Could not close \" + qw, e);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [5, 6], [3, 7], [5, 8], [6, 9], [8, 10], [10, 11], [6, 12], [12, 13], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 5], [7, 3], [8, 5], [9, 6], [10, 8], [11, 10], [12, 6], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createWriter", "code": "  OutputStreamWriter createWriter(OutputStream os) {\n    OutputStreamWriter retval = null;\n\n    String enc = getEncoding();\n    if(enc != null) {\n      try {\n\tretval = new OutputStreamWriter(os, enc);\n      } catch(IOException e) {\n          if (e instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n\t      LogLog.warn(\"Error initializing output writer.\");\n\t      LogLog.warn(\"Unsupported encoding?\");\n      }\n    }\n    if(retval == null) {\n      retval = new OutputStreamWriter(os);\n    }\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "CALL", "IF", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [7, 9], [3, 10], [8, 11], [4, 12], [5, 13], [2, 14], [10, 15], [14, 16], [15, 17], [10, 18], [15, 19], [15, 20], [17, 21], [18, 22], [19, 23], [20, 24], [17, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 7], [10, 3], [11, 8], [12, 4], [13, 5], [14, 2], [15, 10], [16, 14], [17, 15], [18, 10], [19, 15], [20, 15], [21, 17], [22, 18], [23, 19], [24, 20], [25, 17], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getEncoding", "code": "  public String getEncoding() {\n    return encoding;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEncoding", "code": "  public void setEncoding(String value) {\n    encoding = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorHandler", "code": "  public synchronized void setErrorHandler(ErrorHandler eh) {\n    if(eh == null) {\n      LogLog.warn(\"You have tried to set a null error-handler.\");\n    } else {\n      this.errorHandler = eh;\n      if(this.qw != null) {\n\tthis.qw.setErrorHandler(eh);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [1, 8], [6, 9], [8, 10], [4, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 1], [9, 6], [10, 8], [11, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setWriter", "code": "  public synchronized void setWriter(Writer writer) {\n    reset();\n    this.qw = new QuietWriter(writer, errorHandler);\n    //this.tp = new TracerPrintWriter(qw);\n    writeHeader();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "subAppend", "code": "  void subAppend(LoggingEvent event) {\n    this.qw.write(this.layout.format(event));\n\n    if(layout.ignoresThrowable()) {\n      String[] s = event.getThrowableStrRep();\n      if (s != null) {\n\tint len = s.length;\n\tfor(int i = 0; i < len; i++) {\n\t  this.qw.write(s[i]);\n\t  this.qw.write(Layout.LINE_SEP);\n\t}\n      }\n    }\n\n    if(shouldFlush(event)) {\n      this.qw.flush();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [0, 8], [6, 9], [1, 10], [6, 11], [6, 12], [9, 13], [7, 14], [8, 15], [11, 16], [11, 17], [11, 18], [11, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 0], [9, 6], [10, 1], [11, 6], [12, 6], [13, 9], [14, 7], [15, 8], [16, 11], [17, 11], [18, 11], [19, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "requiresLayout", "code": "  boolean requiresLayout() {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "reset", "code": "  void reset() {\n    closeWriter();\n    this.qw = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "writeFooter", "code": "  void writeFooter() {\n    if(layout != null) {\n      String f = layout.getFooter();\n      if(f != null && this.qw != null) {\n\tthis.qw.write(f);\n\tthis.qw.flush();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [6, 7], [6, 8], [4, 9], [7, 10], [8, 11], [3, 12], [3, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 6], [8, 6], [9, 4], [10, 7], [11, 8], [12, 3], [13, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "writeHeader", "code": "  void writeHeader() {\n    if(layout != null) {\n      String h = layout.getHeader();\n      if(h != null && this.qw != null)\n\tthis.qw.write(h);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [6, 7], [6, 8], [4, 9], [3, 10], [7, 11], [8, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 6], [8, 6], [9, 4], [10, 3], [11, 7], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "shouldFlush", "code": "  protected boolean shouldFlush(final LoggingEvent event) {\n     return immediateFlush;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "WriterAppender", "code": "  WriterAppender() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "WriterAppender", "code": "  WriterAppender(Layout layout, OutputStream os) {\n    this(layout, new OutputStreamWriter(os));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "WriterAppender", "code": "  WriterAppender(Layout layout, Writer writer) {\n    this.layout = layout;\n    this.setWriter(writer);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-4.1-4167", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/syntax/DisplayTokenHandler.java", "language": "java", "name": "org.gjt.sp.jedit.syntax.DisplayTokenHandler", "code": "public class DisplayTokenHandler extends DefaultTokenHandler\n{\n\t//{{{ init() method\n\tpublic void init(Segment seg, SyntaxStyle[] styles,\n\t\tFontRenderContext fontRenderContext,\n\t\tTabExpander expander)\n\t{\n\t\tsuper.init();\n\n\t\tx = 0.0f;\n\n\t\tthis.seg = seg;\n\t\tthis.styles = styles;\n\t\tthis.fontRenderContext = fontRenderContext;\n\t\tthis.expander = expander;\n\t} //}}}\n\n\t//{{{ setMonospacedCharWidth() method\n\tpublic void setMonospacedCharWidth(float charWidth)\n\t{\n\t\tthis.charWidth = charWidth;\n\t} //}}}\n\n\t//{{{ getChunks() method\n\t/**\n\t * Returns the first chunk.\n\t * @since jEdit 4.1pre1\n\t */\n\tpublic Chunk getChunks()\n\t{\n\t\treturn (Chunk)firstToken;\n\t} //}}}\n\n\t//{{{ Protected members\n\tprotected Segment seg;\n\tprotected SyntaxStyle[] styles;\n\tprotected FontRenderContext fontRenderContext;\n\tprotected TabExpander expander;\n\tprotected float x;\n\tprotected float charWidth;\n\n\t//{{{ createToken() method\n\tprotected Token createToken(byte id, int offset, int length,\n\t\tTokenMarker.LineContext context)\n\t{\n\t\tif(id == Token.END)\n\t\t\treturn null;\n\n\t\tChunk chunk = new Chunk(id,offset,length,getParserRuleSet(context));\n\t\tchunk.init(seg,expander,x,styles,fontRenderContext,\n\t\t\tcontext.rules.getDefault(),charWidth);\n\n\t\tx += chunk.width;\n\n\t\treturn chunk;", "functions": [{"function_name": "init", "code": "\tpublic void init(Segment seg, SyntaxStyle[] styles,\n\t\tFontRenderContext fontRenderContext,\n\t\tTabExpander expander)\n\t{\n\t\tsuper.init();\n\n\t\tx = 0.0f;\n\n\t\tthis.seg = seg;\n\t\tthis.styles = styles;\n\t\tthis.fontRenderContext = fontRenderContext;\n\t\tthis.expander = expander;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setMonospacedCharWidth", "code": "\tpublic void setMonospacedCharWidth(float charWidth)\n\t{\n\t\tthis.charWidth = charWidth;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getChunks", "code": "\tpublic Chunk getChunks()\n\t{\n\t\treturn (Chunk)firstToken;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createToken", "code": "\tprotected Token createToken(byte id, int offset, int length,\n\t\tTokenMarker.LineContext context)\n\t{\n\t\tif(id == Token.END)\n\t\t\treturn null;\n\n\t\tChunk chunk = new Chunk(id,offset,length,getParserRuleSet(context));\n\t\tchunk.init(seg,expander,x,styles,fontRenderContext,\n\t\t\tcontext.rules.getDefault(),charWidth);\n\n\t\tx += chunk.width;\n\n\t\treturn chunk;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [3, 11], [9, 12], [2, 13], [10, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 3], [12, 9], [13, 2], [14, 10], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}], "label": 0}
{"sample_id": "ant-1.4-209", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/Sleep.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Sleep", "code": "public class Sleep extends Task {\n    /**\n     * failure flag\n     */\n    private boolean failOnError = true;\n\n    /**\n     * Description of the Field\n     */\n    private int seconds = 0;\n    /**\n     * Description of the Field\n     */\n    private int hours = 0;\n    /**\n     * Description of the Field\n     */\n    private int minutes = 0;\n    /**\n     * Description of the Field\n     */\n    private int milliseconds = 0;\n\n\n\n    /**\n     * Creates new instance\n     */\n    public Sleep() {\n    }\n\n\n    /**\n     * Sets the Seconds attribute of the Sleep object\n     *\n     * @param seconds The new Seconds value\n     */\n    public void setSeconds(int seconds) {\n        this.seconds = seconds;\n    }\n\n\n    /**\n     * Sets the Hours attribute of the Sleep object\n     *\n     * @param hours The new Hours value\n     */\n    public void setHours(int hours) {\n        this.hours = hours;\n    }\n\n\n    /**\n     * Sets the Minutes attribute of the Sleep object\n     *\n     * @param minutes The new Minutes value\n     */\n    public void setMinutes(int minutes) {\n        this.minutes = minutes;\n    }\n\n\n    /**\n     * Sets the Milliseconds attribute of the Sleep object\n     *\n     * @param milliseconds The new Milliseconds value\n     */\n    public void setMilliseconds(int milliseconds) {\n        this.milliseconds = milliseconds;\n    }\n\n\n    /**\n     * sleep for a period of time\n     *\n     * @param millis time to sleep\n     */\n    public void doSleep(long millis) {\n        try {\n            Thread.currentThread().sleep(millis);\n        }\n        catch (InterruptedException ie) {\n        }\n    }\n\n\n    /**\n     * Sets the FailOnError attribute of the MimeMail object\n     *\n     * @param failOnError The new FailOnError value\n     */\n    public void setFailOnError(boolean failOnError) {\n        this.failOnError = failOnError;\n    }\n\n\n    /**\n     * return time to sleep\n     *\n     * @return sleep time. if below 0 then there is an error\n     */\n\n    private long getSleepTime() {\n        return ((((long) hours * 60) + minutes) * 60 + seconds) * 1000 + milliseconds;\n    }\n\n\n    /**\n     * verify parameters\n     *\n     * @throws BuildException if something is invalid\n     */\n    public void validate() \n        throws BuildException {\n        long sleepTime = getSleepTime();\n        if (getSleepTime() < 0) {\n            throw new BuildException(\"Negative sleep periods are not supported\");\n        }\n    }\n\n\n    /**\n     * Executes this build task. throws org.apache.tools.ant.BuildException\n     * if there is an error during task execution.\n     *\n     * @exception BuildException Description of Exception\n     */\n    public void execute()\n        throws BuildException {\n        try {\n            validate();\n            long sleepTime=getSleepTime();\n            log(\"sleeping for \"+sleepTime+\" milliseconds\",\n                Project.MSG_VERBOSE);\n            doSleep(sleepTime);\n        }\n        catch (Exception e) {\n            if (failOnError) {\n                throw new BuildException(e);\n            }\n            else {\n                String text = e.toString();\n                log(text, Project.MSG_ERR);", "functions": [{"function_name": "setSeconds", "code": "    public void setSeconds(int seconds) {\n        this.seconds = seconds;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHours", "code": "    public void setHours(int hours) {\n        this.hours = hours;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMinutes", "code": "    public void setMinutes(int minutes) {\n        this.minutes = minutes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMilliseconds", "code": "    public void setMilliseconds(int milliseconds) {\n        this.milliseconds = milliseconds;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doSleep", "code": "    public void doSleep(long millis) {\n        try {\n            Thread.currentThread().sleep(millis);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setFailOnError", "code": "    public void setFailOnError(boolean failOnError) {\n        this.failOnError = failOnError;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSleepTime", "code": "    private long getSleepTime() {\n        return ((((long) hours * 60) + minutes) * 60 + seconds) * 1000 + milliseconds;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [6, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [7, 6], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "validate", "code": "    public void validate() \n        throws BuildException {\n        long sleepTime = getSleepTime();\n        if (getSleepTime() < 0) {\n            throw new BuildException(\"Negative sleep periods are not supported\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [2, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 2], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "execute", "code": "    public void execute()\n        throws BuildException {\n        try {\n            validate();\n            long sleepTime=getSleepTime();\n            log(\"sleeping for \"+sleepTime+\" milliseconds\",\n                Project.MSG_VERBOSE);\n            doSleep(sleepTime);\n        }\n        catch (Exception e) {\n            if (failOnError) {\n                throw new BuildException(e);\n            }\n            else {\n                String text = e.toString();\n                log(text, Project.MSG_ERR);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [1, 6], [1, 7], [6, 8], [3, 9], [4, 10], [4, 11], [8, 12], [8, 13], [4, 14], [11, 15], [13, 16], [10, 17], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 1], [7, 1], [8, 6], [9, 3], [10, 4], [11, 4], [12, 8], [13, 8], [14, 4], [15, 11], [16, 13], [17, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "Sleep", "code": "    public Sleep() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.6-765", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/selectors/SelectorUtils.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.SelectorUtils", "code": "public final class SelectorUtils {\n\n    private static SelectorUtils instance = new SelectorUtils();\n\n    /**\n     * Private Constructor\n     */\n    private SelectorUtils() {\n    }\n\n    /**\n     * Retrieves the instance of the Singleton.\n     * @return singleton instance\n     */\n    public static SelectorUtils getInstance() {\n        return instance;\n    }\n\n    /**\n     * Tests whether or not a given path matches the start of a given\n     * pattern up to the first \"**\".\n     * <p>\n     * This is not a general purpose test and should only be used if you\n     * can live with false positives. For example, <code>pattern=**\\a</code>\n     * and <code>str=b</code> will yield <code>true</code>.\n     *\n     * @param pattern The pattern to match against. Must not be\n     *                <code>null</code>.\n     * @param str     The path to match, as a String. Must not be\n     *                <code>null</code>.\n     *\n     * @return whether or not a given path matches the start of a given\n     * pattern up to the first \"**\".\n     */\n    public static boolean matchPatternStart(String pattern, String str) {\n        return matchPatternStart(pattern, str, true);\n    }\n\n    /**\n     * Tests whether or not a given path matches the start of a given\n     * pattern up to the first \"**\".\n     * <p>\n     * This is not a general purpose test and should only be used if you\n     * can live with false positives. For example, <code>pattern=**\\a</code>\n     * and <code>str=b</code> will yield <code>true</code>.\n     *\n     * @param pattern The pattern to match against. Must not be\n     *                <code>null</code>.\n     * @param str     The path to match, as a String. Must not be\n     *                <code>null</code>.\n     * @param isCaseSensitive Whether or not matching should be performed\n     *                        case sensitively.\n     *\n     * @return whether or not a given path matches the start of a given\n     * pattern up to the first \"**\".\n     */\n    public static boolean matchPatternStart(String pattern, String str,\n                                            boolean isCaseSensitive) {\n        if (str.startsWith(File.separator)\n                != pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        String[] patDirs = tokenizePathAsArray(pattern);\n        String[] strDirs = tokenizePathAsArray(str);\n\n        int patIdxStart = 0;\n        int patIdxEnd = patDirs.length - 1;\n        int strIdxStart = 0;\n        int strIdxEnd = strDirs.length - 1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = patDirs[patIdxStart];\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir, strDirs[strIdxStart], isCaseSensitive)) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n\n        if (strIdxStart > strIdxEnd) {\n            return true;\n        } else if (patIdxStart > patIdxEnd) {\n            return false;\n        } else {\n            return true;\n        }\n    }\n\n    /**\n     * Tests whether or not a given path matches a given pattern.\n     *\n     * @param pattern The pattern to match against. Must not be\n     *                <code>null</code>.\n     * @param str     The path to match, as a String. Must not be\n     *                <code>null</code>.\n     *\n     * @return <code>true</code> if the pattern matches against the string,\n     *         or <code>false</code> otherwise.\n     */\n    public static boolean matchPath(String pattern, String str) {\n        return matchPath(pattern, str, true);\n    }\n\n    /**\n     * Tests whether or not a given path matches a given pattern.\n     *\n     * @param pattern The pattern to match against. Must not be\n     *                <code>null</code>.\n     * @param str     The path to match, as a String. Must not be\n     *                <code>null</code>.\n     * @param isCaseSensitive Whether or not matching should be performed\n     *                        case sensitively.\n     *\n     * @return <code>true</code> if the pattern matches against the string,\n     *         or <code>false</code> otherwise.\n     */\n    public static boolean matchPath(String pattern, String str,\n                                    boolean isCaseSensitive) {\n        if (str.startsWith(File.separator)\n                != pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        String[] patDirs = tokenizePathAsArray(pattern);\n        String[] strDirs = tokenizePathAsArray(str);\n\n        int patIdxStart = 0;\n        int patIdxEnd = patDirs.length - 1;\n        int strIdxStart = 0;\n        int strIdxEnd = strDirs.length - 1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = patDirs[patIdxStart];\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir, strDirs[strIdxStart], isCaseSensitive)) {\n                patDirs = null;\n                strDirs = null;\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs[i].equals(\"**\")) {\n                    patDirs = null;\n                    strDirs = null;\n                    return false;\n                }\n            }\n            return true;\n        } else {\n            if (patIdxStart > patIdxEnd) {\n                patDirs = null;\n                strDirs = null;\n                return false;\n            }\n        }\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = patDirs[patIdxEnd];\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir, strDirs[strIdxEnd], isCaseSensitive)) {\n                patDirs = null;\n                strDirs = null;\n                return false;\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs[i].equals(\"**\")) {\n                    patDirs = null;\n                    strDirs = null;\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart + 1; i <= patIdxEnd; i++) {\n                if (patDirs[i].equals(\"**\")) {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart + 1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp - patIdxStart - 1);\n            int strLength = (strIdxEnd - strIdxStart + 1);\n            int foundIdx = -1;\n            strLoop:\n                        for (int i = 0; i <= strLength - patLength; i++) {\n                            for (int j = 0; j < patLength; j++) {\n                                String subPat = patDirs[patIdxStart + j + 1];\n                                String subStr = strDirs[strIdxStart + i + j];\n                                if (!match(subPat, subStr, isCaseSensitive)) {\n                                    continue strLoop;\n                                }\n                            }\n\n                            foundIdx = strIdxStart + i;\n                            break;\n                        }\n\n            if (foundIdx == -1) {\n                patDirs = null;\n                strDirs = null;\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx + patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (!patDirs[i].equals(\"**\")) {\n                patDirs = null;\n                strDirs = null;\n                return false;\n            }\n        }\n\n        return true;\n    }\n\n    /**\n     * Tests whether or not a string matches against a pattern.\n     * The pattern may contain two special characters:<br>\n     * '*' means zero or more characters<br>\n     * '?' means one and only one character\n     *\n     * @param pattern The pattern to match against.\n     *                Must not be <code>null</code>.\n     * @param str     The string which must be matched against the pattern.\n     *                Must not be <code>null</code>.\n     *\n     * @return <code>true</code> if the string matches against the pattern,\n     *         or <code>false</code> otherwise.\n     */\n    public static boolean match(String pattern, String str) {\n        return match(pattern, str, true);\n    }\n\n    /**\n     * Tests whether or not a string matches against a pattern.\n     * The pattern may contain two special characters:<br>\n     * '*' means zero or more characters<br>\n     * '?' means one and only one character\n     *\n     * @param pattern The pattern to match against.\n     *                Must not be <code>null</code>.\n     * @param str     The string which must be matched against the pattern.\n     *                Must not be <code>null</code>.\n     * @param isCaseSensitive Whether or not matching should be performed\n     *                        case sensitively.\n     *\n     *\n     * @return <code>true</code> if the string matches against the pattern,\n     *         or <code>false</code> otherwise.\n     */\n    public static boolean match(String pattern, String str,\n                                boolean isCaseSensitive) {\n        char[] patArr = pattern.toCharArray();\n        char[] strArr = str.toCharArray();\n        int patIdxStart = 0;\n        int patIdxEnd = patArr.length - 1;\n        int strIdxStart = 0;\n        int strIdxEnd = strArr.length - 1;\n        char ch;\n\n        boolean containsStar = false;\n        for (int i = 0; i < patArr.length; i++) {\n            if (patArr[i] == '*') {\n                containsStar = true;\n                break;\n            }\n        }\n\n        if (!containsStar) {\n            if (patIdxEnd != strIdxEnd) {\n            }\n            for (int i = 0; i <= patIdxEnd; i++) {\n                ch = patArr[i];\n                if (ch != '?') {\n                    if (isCaseSensitive && ch != strArr[i]) {\n                    }\n                    if (!isCaseSensitive && Character.toUpperCase(ch)\n                            != Character.toUpperCase(strArr[i])) {\n                    }\n                }\n            }\n        }\n\n        if (patIdxEnd == 0) {\n        }\n\n        while ((ch = patArr[patIdxStart]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?') {\n                if (isCaseSensitive && ch != strArr[strIdxStart]) {\n                }\n                if (!isCaseSensitive && Character.toUpperCase(ch)\n                        != Character.toUpperCase(strArr[strIdxStart])) {\n                }\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while ((ch = patArr[patIdxEnd]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?') {\n                if (isCaseSensitive && ch != strArr[strIdxEnd]) {\n                }\n                if (!isCaseSensitive && Character.toUpperCase(ch)\n                        != Character.toUpperCase(strArr[strIdxEnd])) {\n                }\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart + 1; i <= patIdxEnd; i++) {\n                if (patArr[i] == '*') {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart + 1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp - patIdxStart - 1);\n            int strLength = (strIdxEnd - strIdxStart + 1);\n            int foundIdx = -1;\n            strLoop:\n            for (int i = 0; i <= strLength - patLength; i++) {\n                for (int j = 0; j < patLength; j++) {\n                    ch = patArr[patIdxStart + j + 1];\n                    if (ch != '?') {\n                        if (isCaseSensitive && ch != strArr[strIdxStart + i\n                                + j]) {\n                            continue strLoop;\n                        }\n                        if (!isCaseSensitive\n                            && Character.toUpperCase(ch)\n                                != Character.toUpperCase(strArr[strIdxStart + i + j])) {\n                            continue strLoop;\n                        }\n                    }\n                }\n\n                foundIdx = strIdxStart + i;\n                break;\n            }\n\n            if (foundIdx == -1) {\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx + patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (patArr[i] != '*') {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * Breaks a path up into a Vector of path elements, tokenizing on\n     * <code>File.separator</code>.\n     *\n     * @param path Path to tokenize. Must not be <code>null</code>.\n     *\n     * @return a Vector of path elements from the tokenized path\n     */\n    public static Vector tokenizePath (String path) {\n        return tokenizePath(path, File.separator);\n    }\n\n    /**\n     * Breaks a path up into a Vector of path elements, tokenizing on\n     *\n     * @param path Path to tokenize. Must not be <code>null</code>.\n     * @param separator the separator against which to tokenize.\n     *\n     * @return a Vector of path elements from the tokenized path\n     * @since Ant 1.6\n     */\n    public static Vector tokenizePath (String path, String separator) {\n        Vector ret = new Vector();\n        StringTokenizer st = new StringTokenizer(path, separator);\n        while (st.hasMoreTokens()) {\n            ret.addElement(st.nextToken());\n        }\n        return ret;\n    }\n\n    /**\n     * Same as {@link #tokenizePath tokenizePath} but hopefully faster.\n     */\n    private static String[] tokenizePathAsArray(String path) {\n        char sep = File.separatorChar;\n        int start = 0;\n        int len = path.length();\n        int count = 0;\n        for (int pos = 0; pos < len; pos++) {\n            if (path.charAt(pos) == sep) {\n                if (pos != start) {\n                    count++;\n                }\n                start = pos + 1;\n            }\n        }\n        if (len != start) {\n            count++;\n        }\n        String[] l = new String[count];\n        count = 0;\n        start = 0;\n        for (int pos = 0; pos < len; pos++) {\n            if (path.charAt(pos) == sep) {\n                if (pos != start) {\n                    String tok = path.substring(start, pos);\n                    l[count++] = tok;\n                }\n                start = pos + 1;\n            }\n        }\n        if (len != start) {\n            String tok = path.substring(start);\n            l[count/*++*/] = tok;\n        }\n        return l;\n    }\n\n\n    /**\n     * Returns dependency information on these two files. If src has been\n     * modified later than target, it returns true. If target doesn't exist,\n     * it likewise returns true. Otherwise, target is newer than src and\n     * is not out of date, thus the method returns false. It also returns\n     * false if the src file doesn't even exist, since how could the\n     * target then be out of date.\n     *\n     * @param src the original file\n     * @param target the file being compared against\n     * @param granularity the amount in seconds of slack we will give in\n     *        determining out of dateness\n     * @return whether the target is out of date\n     */\n    public static boolean isOutOfDate(File src, File target, int granularity) {\n        if (!src.exists()) {\n            return false;\n        }\n        if (!target.exists()) {\n            return true;\n        }\n        if ((src.lastModified() - granularity) > target.lastModified()) {\n            return true;\n        }\n        return false;\n    }\n\n    /**\n     * Returns dependency information on these two resources. If src has been\n     * modified later than target, it returns true. If target doesn't exist,\n     * it likewise returns true. Otherwise, target is newer than src and\n     * is not out of date, thus the method returns false. It also returns\n     * false if the src file doesn't even exist, since how could the\n     * target then be out of date.\n     *\n     * @param src the original resource\n     * @param target the resource being compared against\n     * @param granularity the amount in seconds of slack we will give in\n     *        determining out of dateness\n     * @return whether the target is out of date\n     */\n    public static boolean isOutOfDate(Resource src, Resource target,\n                                      int granularity) {\n        if (!src.isExists()) {\n            return false;\n        }\n        if (!target.isExists()) {\n            return true;\n        }\n        if ((src.getLastModified() - granularity) > target.getLastModified()) {\n            return true;\n        }\n        return false;\n    }\n\n    /**\n     * \"Flattens\" a string by removing all whitespace (space, tab, linefeed,\n     * carriage return, and formfeed). This uses StringTokenizer and the\n     * default set of tokens as documented in the single arguement constructor.\n     *\n     * @param input a String to remove all whitespace.\n     * @return a String that has had all whitespace removed.\n     */\n    public static String removeWhitespace(String input) {\n        StringBuffer result = new StringBuffer();\n        if (input != null) {\n            StringTokenizer st = new StringTokenizer(input);\n            while (st.hasMoreTokens()) {\n                result.append(st.nextToken());\n            }\n        }\n        return result.toString();\n    }\n\n    /**\n     * Tests if a string contains stars or question marks\n     * @param input a String which one wants to test for containing wildcard\n     * @return true if the string contains at least a star or a question mark\n     */\n    public static boolean hasWildcards(String input) {\n        return (input.indexOf('*') != -1 || input.indexOf('?') != -1);\n    }\n\n    /**\n     * removes from a pattern all tokens to the right containing wildcards\n     * @param input the input string\n     * @return the leftmost part of the pattern without wildcards\n     */\n    public static String rtrimWildcardTokens(String input) {\n        Vector v = tokenizePath(input, File.separator);\n        StringBuffer sb = new StringBuffer();\n        for (int counter = 0; counter < v.size(); counter++) {\n            if (hasWildcards((String) v.elementAt(counter))) {\n                break;\n            }\n            if (counter > 0) {\n                sb.append(File.separator);\n            }\n            sb.append((String) v.elementAt(counter));\n        }\n        return sb.toString();", "functions": [{"function_name": "getInstance", "code": "    public static SelectorUtils getInstance() {\n        return instance;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "matchPatternStart", "code": "    public static boolean matchPatternStart(String pattern, String str) {\n        return matchPatternStart(pattern, str, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "matchPatternStart", "code": "    public static boolean matchPatternStart(String pattern, String str,\n                                            boolean isCaseSensitive) {\n        if (str.startsWith(File.separator)\n                != pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        String[] patDirs = tokenizePathAsArray(pattern);\n        String[] strDirs = tokenizePathAsArray(str);\n\n        int patIdxStart = 0;\n        int patIdxEnd = patDirs.length - 1;\n        int strIdxStart = 0;\n        int strIdxEnd = strDirs.length - 1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = patDirs[patIdxStart];\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir, strDirs[strIdxStart], isCaseSensitive)) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n\n        if (strIdxStart > strIdxEnd) {\n            return true;\n        } else if (patIdxStart > patIdxEnd) {\n            return false;\n        } else {\n            return true;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [1, 14], [2, 15], [9, 16], [13, 17], [1, 18], [2, 19], [2, 20], [2, 21], [15, 22], [15, 23], [3, 24], [4, 25], [5, 26], [6, 27], [7, 28], [8, 29], [9, 30], [16, 31], [16, 32], [13, 33], [13, 34], [18, 35], [19, 36], [20, 37], [24, 38], [26, 39], [30, 40], [33, 41], [34, 42], [19, 43], [20, 44], [37, 45], [43, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 1], [15, 2], [16, 9], [17, 13], [18, 1], [19, 2], [20, 2], [21, 2], [22, 15], [23, 15], [24, 3], [25, 4], [26, 5], [27, 6], [28, 7], [29, 8], [30, 9], [31, 16], [32, 16], [33, 13], [34, 13], [35, 18], [36, 19], [37, 20], [38, 24], [39, 26], [40, 30], [41, 33], [42, 34], [43, 19], [44, 20], [45, 37], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "matchPath", "code": "    public static boolean matchPath(String pattern, String str) {\n        return matchPath(pattern, str, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "matchPath", "code": "    public static boolean matchPath(String pattern, String str,\n                                    boolean isCaseSensitive) {\n        if (str.startsWith(File.separator)\n                != pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        String[] patDirs = tokenizePathAsArray(pattern);\n        String[] strDirs = tokenizePathAsArray(str);\n\n        int patIdxStart = 0;\n        int patIdxEnd = patDirs.length - 1;\n        int strIdxStart = 0;\n        int strIdxEnd = strDirs.length - 1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = patDirs[patIdxStart];\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir, strDirs[strIdxStart], isCaseSensitive)) {\n                patDirs = null;\n                strDirs = null;\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs[i].equals(\"**\")) {\n                    patDirs = null;\n                    strDirs = null;\n                    return false;\n                }\n            }\n            return true;\n        } else {\n            if (patIdxStart > patIdxEnd) {\n                patDirs = null;\n                strDirs = null;\n                return false;\n            }\n        }\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = patDirs[patIdxEnd];\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir, strDirs[strIdxEnd], isCaseSensitive)) {\n                patDirs = null;\n                strDirs = null;\n                return false;\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs[i].equals(\"**\")) {\n                    patDirs = null;\n                    strDirs = null;\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart + 1; i <= patIdxEnd; i++) {\n                if (patDirs[i].equals(\"**\")) {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart + 1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp - patIdxStart - 1);\n            int strLength = (strIdxEnd - strIdxStart + 1);\n            int foundIdx = -1;\n            strLoop:\n                        for (int i = 0; i <= strLength - patLength; i++) {\n                            for (int j = 0; j < patLength; j++) {\n                                String subPat = patDirs[patIdxStart + j + 1];\n                                String subStr = strDirs[strIdxStart + i + j];\n                                if (!match(subPat, subStr, isCaseSensitive)) {\n                                    continue strLoop;\n                                }\n                            }\n\n                            foundIdx = strIdxStart + i;\n                            break;\n                        }\n\n            if (foundIdx == -1) {\n                patDirs = null;\n                strDirs = null;\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx + patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (!patDirs[i].equals(\"**\")) {\n                patDirs = null;\n                strDirs = null;\n                return false;\n            }\n        }\n\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "IF", "LOOP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "RETURN", "LOOP", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN", "IF", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [2, 19], [3, 20], [4, 21], [5, 22], [6, 23], [7, 24], [14, 25], [2, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 32], [3, 33], [3, 34], [20, 35], [20, 36], [4, 37], [4, 38], [5, 39], [5, 40], [5, 41], [22, 42], [22, 43], [6, 44], [6, 45], [6, 46], [7, 47], [7, 48], [7, 49], [24, 50], [24, 51], [8, 52], [9, 53], [10, 54], [11, 55], [12, 56], [13, 57], [14, 58], [25, 59], [25, 60], [3, 61], [3, 62], [27, 63], [28, 64], [32, 65], [33, 66], [37, 67], [38, 68], [39, 69], [40, 70], [44, 71], [45, 72], [46, 73], [47, 74], [48, 75], [52, 76], [54, 77], [58, 78], [26, 79], [26, 80], [61, 81], [27, 82], [63, 83], [28, 84], [28, 85], [64, 86], [29, 87], [30, 88], [31, 89], [32, 90], [65, 91], [33, 92], [34, 93], [38, 94], [39, 95], [40, 96], [70, 97], [44, 98], [46, 99], [47, 100], [48, 101], [75, 102], [79, 103], [26, 104], [26, 105], [80, 106], [82, 107], [27, 108], [27, 109], [28, 110], [85, 111], [28, 112], [88, 113], [88, 114], [89, 115], [89, 116], [91, 117], [33, 118], [95, 119], [39, 120], [39, 121], [98, 122], [44, 123], [44, 124], [100, 125], [47, 126], [47, 127], [104, 128], [105, 129], [108, 130], [109, 131], [110, 132], [85, 133], [85, 134], [85, 135], [92, 136], [92, 137], [118, 138], [94, 139], [94, 140], [120, 141], [121, 142], [123, 143], [124, 144], [99, 145], [99, 146], [126, 147], [127, 148], [133, 149], [85, 150], [92, 151], [137, 152], [139, 153], [94, 154], [94, 155], [140, 156], [145, 157], [99, 158], [99, 159], [146, 160], [133, 161], [154, 162], [155, 163], [158, 164], [159, 165], [134, 166], [135, 167], [166, 168], [167, 169], [167, 170], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 2], [20, 3], [21, 4], [22, 5], [23, 6], [24, 7], [25, 14], [26, 2], [27, 3], [28, 3], [29, 3], [30, 3], [31, 3], [32, 3], [33, 3], [34, 3], [35, 20], [36, 20], [37, 4], [38, 4], [39, 5], [40, 5], [41, 5], [42, 22], [43, 22], [44, 6], [45, 6], [46, 6], [47, 7], [48, 7], [49, 7], [50, 24], [51, 24], [52, 8], [53, 9], [54, 10], [55, 11], [56, 12], [57, 13], [58, 14], [59, 25], [60, 25], [61, 3], [62, 3], [63, 27], [64, 28], [65, 32], [66, 33], [67, 37], [68, 38], [69, 39], [70, 40], [71, 44], [72, 45], [73, 46], [74, 47], [75, 48], [76, 52], [77, 54], [78, 58], [79, 26], [80, 26], [81, 61], [82, 27], [83, 63], [84, 28], [85, 28], [86, 64], [87, 29], [88, 30], [89, 31], [90, 32], [91, 65], [92, 33], [93, 34], [94, 38], [95, 39], [96, 40], [97, 70], [98, 44], [99, 46], [100, 47], [101, 48], [102, 75], [103, 79], [104, 26], [105, 26], [106, 80], [107, 82], [108, 27], [109, 27], [110, 28], [111, 85], [112, 28], [113, 88], [114, 88], [115, 89], [116, 89], [117, 91], [118, 33], [119, 95], [120, 39], [121, 39], [122, 98], [123, 44], [124, 44], [125, 100], [126, 47], [127, 47], [128, 104], [129, 105], [130, 108], [131, 109], [132, 110], [133, 85], [134, 85], [135, 85], [136, 92], [137, 92], [138, 118], [139, 94], [140, 94], [141, 120], [142, 121], [143, 123], [144, 124], [145, 99], [146, 99], [147, 126], [148, 127], [149, 133], [150, 85], [151, 92], [152, 137], [153, 139], [154, 94], [155, 94], [156, 140], [157, 145], [158, 99], [159, 99], [160, 146], [161, 133], [162, 154], [163, 155], [164, 158], [165, 159], [166, 134], [167, 135], [168, 166], [169, 167], [170, 167], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170]]}, {"function_name": "match", "code": "    public static boolean match(String pattern, String str) {\n        return match(pattern, str, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "match", "code": "    public static boolean match(String pattern, String str,\n                                boolean isCaseSensitive) {\n        char[] patArr = pattern.toCharArray();\n        char[] strArr = str.toCharArray();\n        int patIdxStart = 0;\n        int patIdxEnd = patArr.length - 1;\n        int strIdxStart = 0;\n        int strIdxEnd = strArr.length - 1;\n        char ch;\n\n        boolean containsStar = false;\n        for (int i = 0; i < patArr.length; i++) {\n            if (patArr[i] == '*') {\n                containsStar = true;\n                break;\n            }\n        }\n\n        if (!containsStar) {\n            if (patIdxEnd != strIdxEnd) {\n            }\n            for (int i = 0; i <= patIdxEnd; i++) {\n                ch = patArr[i];\n                if (ch != '?') {\n                    if (isCaseSensitive && ch != strArr[i]) {\n                    }\n                    if (!isCaseSensitive && Character.toUpperCase(ch)\n                            != Character.toUpperCase(strArr[i])) {\n                    }\n                }\n            }\n        }\n\n        if (patIdxEnd == 0) {\n        }\n\n        while ((ch = patArr[patIdxStart]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?') {\n                if (isCaseSensitive && ch != strArr[strIdxStart]) {\n                }\n                if (!isCaseSensitive && Character.toUpperCase(ch)\n                        != Character.toUpperCase(strArr[strIdxStart])) {\n                }\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while ((ch = patArr[patIdxEnd]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?') {\n                if (isCaseSensitive && ch != strArr[strIdxEnd]) {\n                }\n                if (!isCaseSensitive && Character.toUpperCase(ch)\n                        != Character.toUpperCase(strArr[strIdxEnd])) {\n                }\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart + 1; i <= patIdxEnd; i++) {\n                if (patArr[i] == '*') {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart + 1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp - patIdxStart - 1);\n            int strLength = (strIdxEnd - strIdxStart + 1);\n            int foundIdx = -1;\n            strLoop:\n            for (int i = 0; i <= strLength - patLength; i++) {\n                for (int j = 0; j < patLength; j++) {\n                    ch = patArr[patIdxStart + j + 1];\n                    if (ch != '?') {\n                        if (isCaseSensitive && ch != strArr[strIdxStart + i\n                                + j]) {\n                            continue strLoop;\n                        }\n                        if (!isCaseSensitive\n                            && Character.toUpperCase(ch)\n                                != Character.toUpperCase(strArr[strIdxStart + i + j])) {\n                            continue strLoop;\n                        }\n                    }\n                }\n\n                foundIdx = strIdxStart + i;\n                break;\n            }\n\n            if (foundIdx == -1) {\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx + patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (patArr[i] != '*') {\n                return false;\n            }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "IF", "LOOP", "IF", "LOOP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [1, 22], [2, 23], [3, 24], [4, 25], [5, 26], [6, 27], [7, 28], [8, 29], [10, 30], [2, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [24, 40], [24, 41], [4, 42], [4, 43], [5, 44], [26, 45], [26, 46], [6, 47], [6, 48], [7, 49], [28, 50], [28, 51], [29, 52], [9, 53], [9, 54], [10, 55], [11, 56], [13, 57], [14, 58], [15, 59], [16, 60], [17, 61], [18, 62], [31, 63], [3, 64], [3, 65], [32, 66], [33, 67], [37, 68], [38, 69], [42, 70], [43, 71], [44, 72], [46, 73], [46, 74], [47, 75], [48, 76], [49, 77], [51, 78], [51, 79], [53, 80], [54, 81], [55, 82], [10, 83], [57, 84], [59, 85], [31, 86], [63, 87], [64, 88], [32, 89], [66, 90], [33, 91], [33, 92], [67, 93], [34, 94], [35, 95], [36, 96], [37, 97], [68, 98], [38, 99], [39, 100], [43, 101], [44, 102], [44, 103], [72, 104], [48, 105], [49, 106], [49, 107], [77, 108], [53, 109], [55, 110], [82, 111], [86, 112], [89, 113], [33, 114], [92, 115], [33, 116], [95, 117], [95, 118], [96, 119], [96, 120], [98, 121], [99, 122], [38, 123], [101, 124], [102, 125], [103, 126], [105, 127], [106, 128], [107, 129], [109, 130], [53, 131], [53, 132], [55, 133], [114, 134], [92, 135], [99, 136], [122, 137], [123, 138], [101, 139], [124, 140], [125, 141], [126, 142], [105, 143], [127, 144], [128, 145], [129, 146], [109, 147], [109, 148], [130, 149], [133, 150], [135, 151], [92, 152], [92, 153], [99, 154], [139, 155], [141, 156], [141, 157], [143, 158], [145, 159], [145, 160], [147, 161], [148, 162], [135, 163], [135, 164], [151, 165], [161, 166], [162, 167], [163, 168], [164, 169], [166, 170], [166, 171], [163, 172], [168, 173], [164, 174], [169, 175], [152, 176], [173, 177], [173, 178], [176, 179], [176, 180], [175, 181], [177, 182], [181, 183], [182, 184], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 1], [23, 2], [24, 3], [25, 4], [26, 5], [27, 6], [28, 7], [29, 8], [30, 10], [31, 2], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 24], [41, 24], [42, 4], [43, 4], [44, 5], [45, 26], [46, 26], [47, 6], [48, 6], [49, 7], [50, 28], [51, 28], [52, 29], [53, 9], [54, 9], [55, 10], [56, 11], [57, 13], [58, 14], [59, 15], [60, 16], [61, 17], [62, 18], [63, 31], [64, 3], [65, 3], [66, 32], [67, 33], [68, 37], [69, 38], [70, 42], [71, 43], [72, 44], [73, 46], [74, 46], [75, 47], [76, 48], [77, 49], [78, 51], [79, 51], [80, 53], [81, 54], [82, 55], [83, 10], [84, 57], [85, 59], [86, 31], [87, 63], [88, 64], [89, 32], [90, 66], [91, 33], [92, 33], [93, 67], [94, 34], [95, 35], [96, 36], [97, 37], [98, 68], [99, 38], [100, 39], [101, 43], [102, 44], [103, 44], [104, 72], [105, 48], [106, 49], [107, 49], [108, 77], [109, 53], [110, 55], [111, 82], [112, 86], [113, 89], [114, 33], [115, 92], [116, 33], [117, 95], [118, 95], [119, 96], [120, 96], [121, 98], [122, 99], [123, 38], [124, 101], [125, 102], [126, 103], [127, 105], [128, 106], [129, 107], [130, 109], [131, 53], [132, 53], [133, 55], [134, 114], [135, 92], [136, 99], [137, 122], [138, 123], [139, 101], [140, 124], [141, 125], [142, 126], [143, 105], [144, 127], [145, 128], [146, 129], [147, 109], [148, 109], [149, 130], [150, 133], [151, 135], [152, 92], [153, 92], [154, 99], [155, 139], [156, 141], [157, 141], [158, 143], [159, 145], [160, 145], [161, 147], [162, 148], [163, 135], [164, 135], [165, 151], [166, 161], [167, 162], [168, 163], [169, 164], [170, 166], [171, 166], [172, 163], [173, 168], [174, 164], [175, 169], [176, 152], [177, 173], [178, 173], [179, 176], [180, 176], [181, 175], [182, 177], [183, 181], [184, 182], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184]]}, {"function_name": "tokenizePath", "code": "    public static Vector tokenizePath (String path) {\n        return tokenizePath(path, File.separator);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "tokenizePath", "code": "    public static Vector tokenizePath (String path, String separator) {\n        Vector ret = new Vector();\n        StringTokenizer st = new StringTokenizer(path, separator);\n        while (st.hasMoreTokens()) {\n            ret.addElement(st.nextToken());\n        }\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "tokenizePathAsArray", "code": "    private static String[] tokenizePathAsArray(String path) {\n        char sep = File.separatorChar;\n        int start = 0;\n        int len = path.length();\n        int count = 0;\n        for (int pos = 0; pos < len; pos++) {\n            if (path.charAt(pos) == sep) {\n                if (pos != start) {\n                    count++;\n                }\n                start = pos + 1;\n            }\n        }\n        if (len != start) {\n            count++;\n        }\n        String[] l = new String[count];\n        count = 0;\n        start = 0;\n        for (int pos = 0; pos < len; pos++) {\n            if (path.charAt(pos) == sep) {\n                if (pos != start) {\n                    String tok = path.substring(start, pos);\n                    l[count++] = tok;\n                }\n                start = pos + 1;\n            }\n        }\n        if (len != start) {\n            String tok = path.substring(start);\n            l[count/*++*/] = tok;\n        }\n        return l;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [0, 14], [0, 15], [5, 16], [6, 17], [2, 18], [3, 19], [14, 20], [15, 21], [6, 22], [7, 23], [8, 24], [9, 25], [2, 26], [19, 27], [3, 28], [22, 29], [6, 30], [18, 31], [19, 32], [27, 33], [22, 34], [29, 35], [19, 36], [32, 37], [22, 38], [34, 39], [36, 40], [32, 41], [38, 42], [40, 43], [32, 44], [42, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 0], [15, 0], [16, 5], [17, 6], [18, 2], [19, 3], [20, 14], [21, 15], [22, 6], [23, 7], [24, 8], [25, 9], [26, 2], [27, 19], [28, 3], [29, 22], [30, 6], [31, 18], [32, 19], [33, 27], [34, 22], [35, 29], [36, 19], [37, 32], [38, 22], [39, 34], [40, 36], [41, 32], [42, 38], [43, 40], [44, 32], [45, 42], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "isOutOfDate", "code": "    public static boolean isOutOfDate(File src, File target, int granularity) {\n        if (!src.exists()) {\n            return false;\n        }\n        if (!target.exists()) {\n            return true;\n        }\n        if ((src.lastModified() - granularity) > target.lastModified()) {\n            return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [4, 11], [2, 12], [9, 13], [9, 14], [3, 15], [4, 16], [12, 17], [14, 18], [15, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 4], [12, 2], [13, 9], [14, 9], [15, 3], [16, 4], [17, 12], [18, 14], [19, 15], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "isOutOfDate", "code": "    public static boolean isOutOfDate(Resource src, Resource target,\n                                      int granularity) {\n        if (!src.isExists()) {\n            return false;\n        }\n        if (!target.isExists()) {\n            return true;\n        }\n        if ((src.getLastModified() - granularity) > target.getLastModified()) {\n            return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [4, 11], [2, 12], [9, 13], [9, 14], [3, 15], [4, 16], [12, 17], [14, 18], [15, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 4], [12, 2], [13, 9], [14, 9], [15, 3], [16, 4], [17, 12], [18, 14], [19, 15], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "removeWhitespace", "code": "    public static String removeWhitespace(String input) {\n        StringBuffer result = new StringBuffer();\n        if (input != null) {\n            StringTokenizer st = new StringTokenizer(input);\n            while (st.hasMoreTokens()) {\n                result.append(st.nextToken());\n            }\n        }\n        return result.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [8, 12], [7, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 8], [13, 7], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "hasWildcards", "code": "    public static boolean hasWildcards(String input) {\n        return (input.indexOf('*') != -1 || input.indexOf('?') != -1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [5, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 5], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "rtrimWildcardTokens", "code": "    public static String rtrimWildcardTokens(String input) {\n        Vector v = tokenizePath(input, File.separator);\n        StringBuffer sb = new StringBuffer();\n        for (int counter = 0; counter < v.size(); counter++) {\n            if (hasWildcards((String) v.elementAt(counter))) {\n                break;\n            }\n            if (counter > 0) {\n                sb.append(File.separator);\n            }\n            sb.append((String) v.elementAt(counter));\n        }\n        return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [7, 10], [3, 11], [4, 12], [2, 13], [8, 14], [9, 15], [2, 16], [14, 17], [9, 18], [13, 19], [8, 20], [15, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 7], [11, 3], [12, 4], [13, 2], [14, 8], [15, 9], [16, 2], [17, 14], [18, 9], [19, 13], [20, 8], [21, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "SelectorUtils", "code": "    private SelectorUtils() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.2-4467", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/Marker.java", "language": "java", "name": "org.gjt.sp.jedit.Marker", "code": "public class Marker\n{\n\t//{{{ getShortcut() method\n\t/**\n\t * Returns the marker's shortcut character.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic char getShortcut()\n\t{\n\t\treturn shortcut;\n\t} //}}}\n\n\t//{{{ getPosition() method\n\t/**\n\t * Returns the position of this marker.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic int getPosition()\n\t{\n\t\treturn (position == null ? pos : position.getOffset());\n\t} //}}}\n\n\t//{{{ Package-private members\n\n\t//{{{ Marker constructor\n\tMarker(Buffer buffer, char shortcut, int position)\n\t{\n\t\tthis.buffer = buffer;\n\t\tthis.shortcut = shortcut;\n\t\tthis.pos = position;\n\t} //}}}\n\n\t//{{{ setShortcut() method\n\t/**\n\t * Sets the marker's shortcut.\n\t * @param shortcut The new shortcut\n\t * @since jEdit 3.2pre1\n\t */\n\tvoid setShortcut(char shortcut)\n\t{\n\t\tthis.shortcut = shortcut;\n\t} //}}}\n\n\t//{{{ createPosition() method\n\tvoid createPosition()\n\t{\n\t\tposition = buffer.createPosition(pos);\n\t} //}}}\n\n\t//{{{ removePosition() method\n\tvoid removePosition()\n\t{\n\t\t// forget the cached Position instance\n\t\tif(position != null)\n\t\t{\n\t\t\tpos = position.getOffset();\n\t\t\tposition = null;\n\t\t}\n\t} //}}}\n\n\t//{{{ setPosition() method\n\t/**\n\t * Sets the position of this marker.\n\t * @since jEdit 4.0pre5\n\t */\n\tvoid setPosition(int pos)\n\t{\n\t\tthis.pos = pos;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\tprivate Buffer buffer;\n\tprivate char shortcut;\n\tprivate int pos;\n\tprivate Position position;", "functions": [{"function_name": "getShortcut", "code": "\tpublic char getShortcut()\n\t{\n\t\treturn shortcut;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPosition", "code": "\tpublic int getPosition()\n\t{\n\t\treturn (position == null ? pos : position.getOffset());", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setShortcut", "code": "\tvoid setShortcut(char shortcut)\n\t{\n\t\tthis.shortcut = shortcut;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createPosition", "code": "\tvoid createPosition()\n\t{\n\t\tposition = buffer.createPosition(pos);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removePosition", "code": "\tvoid removePosition()\n\t{\n\t\t// forget the cached Position instance\n\t\tif(position != null)\n\t\t{\n\t\t\tpos = position.getOffset();\n\t\t\tposition = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setPosition", "code": "\tvoid setPosition(int pos)\n\t{\n\t\tthis.pos = pos;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Marker", "code": "\tMarker(Buffer buffer, char shortcut, int position)\n\t{\n\t\tthis.buffer = buffer;\n\t\tthis.shortcut = shortcut;\n\t\tthis.pos = position;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.6-7794", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/templates/ElemSort.java", "language": "java", "name": "org.apache.xalan.templates.ElemSort", "code": "public class ElemSort extends ElemTemplateElement\n{\n\n  /**\n   * xsl:sort has a select attribute whose value is an expression.\n   * @serial\n   */\n  private XPath m_selectExpression = null;\n\n  /**\n   * Set the \"select\" attribute.\n   * xsl:sort has a select attribute whose value is an expression.\n   * For each node to be processed, the expression is evaluated\n   * with that node as the current node and with the complete\n   * list of nodes being processed in unsorted order as the current\n   * node list. The resulting object is converted to a string as if\n   * by a call to the string function; this string is used as the\n   * sort key for that node. The default value of the select attribute\n   * is ., which will cause the string-value of the current node to\n   * be used as the sort key.\n   *\n   * @param v Value to set for the \"select\" attribute\n   */\n  public void setSelect(XPath v)\n  {\n\n    if (v.getPatternString().indexOf(\"{\") < 0)\n      m_selectExpression = v;\n    else\n      error(XSLTErrorResources.ER_NO_CURLYBRACE, null);\n  }\n\n  /**\n   * Get the \"select\" attribute.\n   * xsl:sort has a select attribute whose value is an expression.\n   * For each node to be processed, the expression is evaluated\n   * with that node as the current node and with the complete\n   * list of nodes being processed in unsorted order as the current\n   * node list. The resulting object is converted to a string as if\n   * by a call to the string function; this string is used as the\n   * sort key for that node. The default value of the select attribute\n   * is ., which will cause the string-value of the current node to\n   * be used as the sort key.\n   *\n   * @return The value of the \"select\" attribute\n   */\n  public XPath getSelect()\n  {\n    return m_selectExpression;\n  }\n\n  /**\n   * lang specifies the language of the sort keys.\n   * @serial\n   */\n  private AVT m_lang_avt = null;\n\n  /**\n   * Set the \"lang\" attribute.\n   * lang specifies the language of the sort keys; it has the same\n   * range of values as xml:lang [XML]; if no lang value is\n   * specified, the language should be determined from the system environment.\n   *\n   * @param v The value to set for the \"lang\" attribute\n   */\n  public void setLang(AVT v)\n  {\n    m_lang_avt = v;\n  }\n\n  /**\n   * Get the \"lang\" attribute.\n   * lang specifies the language of the sort keys; it has the same\n   * range of values as xml:lang [XML]; if no lang value is\n   * specified, the language should be determined from the system environment.\n   *\n   * @return The value of the \"lang\" attribute\n   */\n  public AVT getLang()\n  {\n    return m_lang_avt;\n  }\n\n  /**\n   * data-type specifies the data type of the\n   * strings to be sorted.\n   * @serial\n   */\n  private AVT m_dataType_avt = null;\n\n  /**\n   * Set the \"data-type\" attribute.\n   * <code>data-type</code> specifies the data type of the\n   * strings; the following values are allowed:\n   * <ul>\n   * <li>\n   * <code>text</code> specifies that the sort keys should be\n   * sorted lexicographically in the culturally correct manner for the\n   * language specified by <code>lang</code>.\n   * </li>\n   * <li>\n   * <code>number</code> specifies that the sort keys should be\n   * converted to numbers and then sorted according to the numeric value;\n   * the sort key is converted to a number as if by a call to the\n   * attribute is ignored.\n   * </li>\n   * <li>\n   * in <a href=\"#qname\">[<b>2.4 Qualified Names</b>]</a>; the expanded-name identifies the data-type;\n   * the behavior in this case is not specified by this document.\n   * </li>\n   * </ul>\n   * <p>The default value is <code>text</code>.</p>\n   * <blockquote>\n   * <b>NOTE: </b>The XSL Working Group plans that future versions of XSLT will\n   * leverage XML Schemas to define further values for this\n   * attribute.</blockquote>\n   *\n   * @param v Value to set for the \"data-type\" attribute\n   */\n  public void setDataType(AVT v)\n  {\n    m_dataType_avt = v;\n  }\n\n  /**\n   * Get the \"data-type\" attribute.\n   * <code>data-type</code> specifies the data type of the\n   * strings; the following values are allowed:\n   * <ul>\n   * <li>\n   * <code>text</code> specifies that the sort keys should be\n   * sorted lexicographically in the culturally correct manner for the\n   * language specified by <code>lang</code>.\n   * </li>\n   * <li>\n   * <code>number</code> specifies that the sort keys should be\n   * converted to numbers and then sorted according to the numeric value;\n   * the sort key is converted to a number as if by a call to the\n   * attribute is ignored.\n   * </li>\n   * <li>\n   * in <a href=\"#qname\">[<b>2.4 Qualified Names</b>]</a>; the expanded-name identifies the data-type;\n   * the behavior in this case is not specified by this document.\n   * </li>\n   * </ul>\n   * <p>The default value is <code>text</code>.</p>\n   * <blockquote>\n   * <b>NOTE: </b>The XSL Working Group plans that future versions of XSLT will\n   * leverage XML Schemas to define further values for this\n   * attribute.</blockquote>\n   *\n   * @return The value of the \"data-type\" attribute\n   */\n  public AVT getDataType()\n  {\n    return m_dataType_avt;\n  }\n\n  /**\n   * order specifies whether the strings should be sorted in ascending\n   * or descending order.\n   * @serial\n   */\n  private AVT m_order_avt = null;\n\n  /**\n   * Set the \"order\" attribute.\n   * order specifies whether the strings should be sorted in ascending\n   * or descending order; ascending specifies ascending order; descending\n   * specifies descending order; the default is ascending.\n   *\n   * @param v The value to set for the \"order\" attribute\n   */\n  public void setOrder(AVT v)\n  {\n    m_order_avt = v;\n  }\n\n  /**\n   * Get the \"order\" attribute.\n   * order specifies whether the strings should be sorted in ascending\n   * or descending order; ascending specifies ascending order; descending\n   * specifies descending order; the default is ascending.\n   *\n   * @return The value of the \"order\" attribute\n   */\n  public AVT getOrder()\n  {\n    return m_order_avt;\n  }\n\n  /**\n   * case-order has the value upper-first or lower-first.\n   * The default value is language dependent.\n   * @serial\n   */\n  private AVT m_caseorder_avt = null;\n\n  /**\n   * Set the \"case-order\" attribute.\n   * case-order has the value upper-first or lower-first; this applies\n   * when data-type=\"text\", and specifies that upper-case letters should\n   * sort before lower-case letters or vice-versa respectively.\n   * For example, if lang=\"en\", then A a B b are sorted with\n   * case-order=\"upper-first\" and a A b B are sorted with case-order=\"lower-first\".\n   * The default value is language dependent.\n   *\n   * @param v The value to set for the \"case-order\" attribute\n   * \n   * @serial\n   */\n  public void setCaseOrder(AVT v)\n  {\n    m_caseorder_avt = v;\n  }\n\n  /**\n   * Get the \"case-order\" attribute.\n   * case-order has the value upper-first or lower-first; this applies\n   * when data-type=\"text\", and specifies that upper-case letters should\n   * sort before lower-case letters or vice-versa respectively.\n   * For example, if lang=\"en\", then A a B b are sorted with\n   * case-order=\"upper-first\" and a A b B are sorted with case-order=\"lower-first\".\n   * The default value is language dependent.\n   *\n   * @return The value of the \"case-order\" attribute\n   */\n  public AVT getCaseOrder()\n  {\n    return m_caseorder_avt;\n  }\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID of the element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_SORT;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The element's name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_SORT_STRING;\n  }\n\n  /**\n   * Add a child to the child list.\n   *\n   * @param newChild Child to add to the child list\n   *\n   * @return Child just added to the child list\n   *\n   * @throws DOMException\n   */\n  public Node appendChild(Node newChild) throws DOMException\n  {\n\n    error(XSLTErrorResources.ER_CANNOT_ADD,\n          new Object[]{ newChild.getNodeName()});\n\n    return null;\n  }\n  \n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) \n    throws javax.xml.transform.TransformerException\n  {\n    super.compose(sroot);\n    StylesheetRoot.ComposeState cstate = sroot.getComposeState();\n    java.util.Vector vnames = cstate.getVariableNames();\n    if(null != m_caseorder_avt)\n      m_caseorder_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_dataType_avt)\n      m_dataType_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_lang_avt)\n      m_lang_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_order_avt)\n      m_order_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_selectExpression)\n      m_selectExpression.fixupVariables(vnames, cstate.getGlobalsSize());", "functions": [{"function_name": "setSelect", "code": "  public void setSelect(XPath v)\n  {\n\n    if (v.getPatternString().indexOf(\"{\") < 0)\n      m_selectExpression = v;\n    else\n      error(XSLTErrorResources.ER_NO_CURLYBRACE, null);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getSelect", "code": "  public XPath getSelect()\n  {\n    return m_selectExpression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLang", "code": "  public void setLang(AVT v)\n  {\n    m_lang_avt = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLang", "code": "  public AVT getLang()\n  {\n    return m_lang_avt;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDataType", "code": "  public void setDataType(AVT v)\n  {\n    m_dataType_avt = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDataType", "code": "  public AVT getDataType()\n  {\n    return m_dataType_avt;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOrder", "code": "  public void setOrder(AVT v)\n  {\n    m_order_avt = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOrder", "code": "  public AVT getOrder()\n  {\n    return m_order_avt;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCaseOrder", "code": "  public void setCaseOrder(AVT v)\n  {\n    m_caseorder_avt = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCaseOrder", "code": "  public AVT getCaseOrder()\n  {\n    return m_caseorder_avt;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_SORT;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_SORT_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "appendChild", "code": "  public Node appendChild(Node newChild) throws DOMException\n  {\n\n    error(XSLTErrorResources.ER_CANNOT_ADD,\n          new Object[]{ newChild.getNodeName()});\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) \n    throws javax.xml.transform.TransformerException\n  {\n    super.compose(sroot);\n    StylesheetRoot.ComposeState cstate = sroot.getComposeState();\n    java.util.Vector vnames = cstate.getVariableNames();\n    if(null != m_caseorder_avt)\n      m_caseorder_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_dataType_avt)\n      m_dataType_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_lang_avt)\n      m_lang_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_order_avt)\n      m_order_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_selectExpression)\n      m_selectExpression.fixupVariables(vnames, cstate.getGlobalsSize());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [5, 13], [1, 14], [9, 15], [2, 16], [10, 17], [3, 18], [11, 19], [4, 20], [12, 21], [5, 22], [13, 23], [6, 24], [7, 25], [14, 26], [16, 27], [18, 28], [20, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 4], [13, 5], [14, 1], [15, 9], [16, 2], [17, 10], [18, 3], [19, 11], [20, 4], [21, 12], [22, 5], [23, 13], [24, 6], [25, 7], [26, 14], [27, 16], [28, 18], [29, 20], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}], "label": 0}
{"sample_id": "camel-1.4-2310", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/Producer.java", "language": "java", "name": "org.apache.camel.Producer", "code": "public interface Producer<E extends Exchange> extends Processor, Service {\n\n    Endpoint<E> getEndpoint();\n\n    /**\n     * Creates a new exchange to send to this endpoint\n     * \n     * @return a newly created exchange\n     */\n    E createExchange();\n\n    /**\n     * Creates a new exchange of the given pattern to send to this endpoint\n     *\n     * @return a newly created exchange\n     */\n    E createExchange(ExchangePattern pattern);\n\n    /**\n     * Creates a new exchange for communicating with this exchange using the\n     * given exchange to pre-populate the values of the headers and messages\n     */\n    E createExchange(E exchange);", "functions": [{"function_name": "getEndpoint", "code": "    Endpoint<E> getEndpoint();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "createExchange", "code": "    E createExchange();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "createExchange", "code": "    E createExchange(ExchangePattern pattern);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createExchange", "code": "    E createExchange(E exchange);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ivy-2.0-3378", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/resolver/RepositoryResolver.java", "language": "java", "name": "org.apache.ivy.plugins.resolver.RepositoryResolver", "code": "public class RepositoryResolver extends AbstractPatternsBasedResolver {\n\n    private Repository repository;\n\n    private Boolean alwaysCheckExactRevision = null;\n\n    public RepositoryResolver() {\n    }\n\n    public Repository getRepository() {\n        return repository;\n    }\n\n    public void setRepository(Repository repository) {\n        this.repository = repository;\n    }\n\n    public void setName(String name) {\n        super.setName(name);\n        if (repository instanceof AbstractRepository) {\n            ((AbstractRepository) repository).setName(name);\n        }\n    }\n\n    protected ResolvedResource findResourceUsingPattern(ModuleRevisionId mrid, String pattern,\n            Artifact artifact, ResourceMDParser rmdparser, Date date) {\n        String name = getName();\n        VersionMatcher versionMatcher = getSettings().getVersionMatcher();\n        try {\n            if (!versionMatcher.isDynamic(mrid) || isAlwaysCheckExactRevision()) {\n                String resourceName = IvyPatternHelper.substitute(pattern, mrid, artifact);\n                Message.debug(\"\\t trying \" + resourceName);\n                logAttempt(resourceName);\n                Resource res = repository.getResource(resourceName);\n                boolean reachable = res.exists();\n                if (reachable) {\n                    String revision;\n                    if (pattern.indexOf(IvyPatternHelper.REVISION_KEY) == -1) {\n                        if (\"ivy\".equals(artifact.getType()) || \"pom\".equals(artifact.getType())) {\n                            // we can't determine the revision from the pattern, get it\n                            // from the moduledescriptor itself\n                            File temp = File.createTempFile(\"ivy\", artifact.getExt());\n                            temp.deleteOnExit();\n                            repository.get(res.getName(), temp);\n                            ModuleDescriptorParser parser = \n                                ModuleDescriptorParserRegistry.getInstance().getParser(res);\n                            ModuleDescriptor md = \n                                parser.parseDescriptor(\n                                    getSettings(), temp.toURI().toURL(), res, false);\n                            revision = md.getRevision();\n                            if ((revision == null) || (revision.length() == 0)) {\n                                revision = \"working@\" + name;\n                            }\n                        } else {\n                            revision = \"working@\" + name;\n                        }\n                    } else {\n                        revision = mrid.getRevision();\n                    }\n                    return new ResolvedResource(res, revision);\n                } else if (versionMatcher.isDynamic(mrid)) {\n                    return findDynamicResourceUsingPattern(\n                        rmdparser, mrid, pattern, artifact, date);\n                } else {\n                    Message.debug(\"\\t\" + name + \": resource not reachable for \" + mrid + \": res=\"\n                            + res);\n                    return null;\n                }\n            } else {\n                return findDynamicResourceUsingPattern(rmdparser, mrid, pattern, artifact, date);\n            }\n        } catch (IOException ex) {\n            throw new RuntimeException(name + \": unable to get resource for \" + mrid + \": res=\"\n                    + IvyPatternHelper.substitute(pattern, mrid, artifact) + \": \" + ex, ex);\n        } catch (ParseException ex) {\n            throw new RuntimeException(name + \": unable to get resource for \" + mrid + \": res=\"\n                    + IvyPatternHelper.substitute(pattern, mrid, artifact) + \": \" + ex, ex);\n        }\n    }\n\n    private ResolvedResource findDynamicResourceUsingPattern(\n            ResourceMDParser rmdparser, ModuleRevisionId mrid, String pattern, Artifact artifact,\n            Date date) {\n        String name = getName();\n        logAttempt(IvyPatternHelper.substitute(pattern, ModuleRevisionId.newInstance(mrid,\n            IvyPatternHelper.getTokenString(IvyPatternHelper.REVISION_KEY)), artifact));\n        ResolvedResource[] rress = listResources(repository, mrid, pattern, artifact);\n        if (rress == null) {\n            Message.debug(\"\\t\" + name + \": unable to list resources for \" + mrid + \": pattern=\"\n                    + pattern);\n            return null;\n        } else {\n            ResolvedResource found = findResource(rress, rmdparser, mrid, date);\n            if (found == null) {\n                Message.debug(\"\\t\" + name + \": no resource found for \" + mrid + \": pattern=\"\n                        + pattern);\n            }\n            return found;\n        }\n    }\n    \n    protected Resource getResource(String source) throws IOException {\n        return repository.getResource(source);\n    }\n\n    /**\n     * List all revisions as resolved resources for the given artifact in the given repository using\n     * the given pattern, and using the given mrid except its revision.\n     * \n     * @param repository\n     *            the repository in which revisions should be located\n     * @param mrid\n     *            the module revision id to look for (except revision)\n     * @param pattern\n     *            the pattern to use to locate the revisions\n     * @param artifact\n     *            the artifact to find\n     * @return an array of ResolvedResource, all pointing to a different revision of the given\n     *         Artifact.\n     */\n    protected ResolvedResource[] listResources(\n            Repository repository, ModuleRevisionId mrid, String pattern, Artifact artifact) {\n        return ResolverHelper.findAll(repository, mrid, pattern, artifact);\n    }\n\n    protected long get(Resource resource, File dest) throws IOException {\n        Message.verbose(\"\\t\" + getName() + \": downloading \" + resource.getName());\n        Message.debug(\"\\t\\tto \" + dest);\n        if (dest.getParentFile() != null) {\n            dest.getParentFile().mkdirs();\n        }\n        repository.get(resource.getName(), dest);\n        return dest.length();\n    }\n\n    public void publish(Artifact artifact, File src, boolean overwrite) throws IOException {\n        String destPattern;\n        if (\"ivy\".equals(artifact.getType()) && !getIvyPatterns().isEmpty()) {\n            destPattern = (String) getIvyPatterns().get(0);\n        } else if (!getArtifactPatterns().isEmpty()) {\n            destPattern = (String) getArtifactPatterns().get(0);\n        } else {\n            throw new IllegalStateException(\"impossible to publish \" + artifact + \" using \" + this\n                    + \": no artifact pattern defined\");\n        }\n        // Check for m2 compatibility\n        ModuleRevisionId mrid = artifact.getModuleRevisionId();\n        if (isM2compatible()) {\n            mrid = convertM2IdForResourceSearch(mrid);\n        }\n\n        String dest = getDestination(destPattern, artifact, mrid);\n\n        put(artifact, src, dest, overwrite);\n        Message.info(\"\\tpublished \" + artifact.getName() + \" to \" + hidePassword(dest));\n    }\n\n    protected String getDestination(String pattern, Artifact artifact, ModuleRevisionId mrid) {\n        return IvyPatternHelper.substitute(pattern, mrid, artifact);\n    }\n\n    protected void put(Artifact artifact, File src, String dest, boolean overwrite)\n            throws IOException {\n        repository.put(artifact, src, dest, overwrite);\n        String[] checksums = getChecksumAlgorithms();\n        for (int i = 0; i < checksums.length; i++) {\n            putChecksum(artifact, src, dest, overwrite, checksums[i]);\n        }\n    }\n\n    protected void putChecksum(Artifact artifact, File src, String dest, boolean overwrite,\n            String algorithm) throws IOException {\n        File csFile = File.createTempFile(\"ivytemp\", algorithm);\n        try {\n            FileUtil.copy(new ByteArrayInputStream(ChecksumHelper.computeAsString(src, algorithm)\n                    .getBytes()), csFile, null);\n            repository.put(DefaultArtifact.cloneWithAnotherTypeAndExt(artifact, algorithm,\n                artifact.getExt() + \".\" + algorithm), csFile, dest + \".\" + algorithm, overwrite);\n        } finally {\n            csFile.delete();\n        }\n    }\n\n    public DownloadReport download(Artifact[] artifacts, DownloadOptions options) {\n        EventManager eventManager = getEventManager();\n        try {\n            if (eventManager != null) {\n                repository.addTransferListener(eventManager);\n            }\n            return super.download(artifacts, options);\n        } finally {\n            if (eventManager != null) {\n                repository.removeTransferListener(eventManager);\n            }\n        }\n    }\n\n    protected void findTokenValues(Collection names, List patterns, Map tokenValues, String token) {\n        for (Iterator iter = patterns.iterator(); iter.hasNext();) {\n            String pattern = (String) iter.next();\n            String partiallyResolvedPattern = IvyPatternHelper.substituteTokens(pattern,\n                tokenValues);\n            String[] values = ResolverHelper.listTokenValues(repository, partiallyResolvedPattern,\n                token);\n            if (values != null) {\n                names.addAll(filterNames(new ArrayList(Arrays.asList(values))));\n            }\n        }\n    }\n\n    protected String[] listTokenValues(String pattern, String token) {\n        return ResolverHelper.listTokenValues(repository, pattern, token);\n    }\n    \n    protected boolean exist(String path) {\n        try {\n            Resource resource = repository.getResource(path);\n            return resource.exists();\n        } catch (IOException e) {\n            return false;\n        }\n    }\n    \n    public String getTypeName() {\n        return \"repository\";\n    }\n\n    public void dumpSettings() {\n        super.dumpSettings();\n        Message.debug(\"\\t\\trepository: \" + getRepository());\n    }\n\n    public void setSettings(ResolverSettings settings) {\n        super.setSettings(settings);\n        if (settings != null) {\n            if (alwaysCheckExactRevision == null) {\n                alwaysCheckExactRevision = Boolean.valueOf(settings\n                        .getVariable(\"ivy.default.always.check.exact.revision\"));\n            }\n        }\n    }\n\n    public boolean isAlwaysCheckExactRevision() {\n        return alwaysCheckExactRevision == null ? true : alwaysCheckExactRevision.booleanValue();\n    }\n\n    public void setAlwaysCheckExactRevision(boolean alwaysCheckExactRevision) {\n        this.alwaysCheckExactRevision = Boolean.valueOf(alwaysCheckExactRevision);", "functions": [{"function_name": "getRepository", "code": "    public Repository getRepository() {\n        return repository;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRepository", "code": "    public void setRepository(Repository repository) {\n        this.repository = repository;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        super.setName(name);\n        if (repository instanceof AbstractRepository) {\n            ((AbstractRepository) repository).setName(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "findResourceUsingPattern", "code": "    protected ResolvedResource findResourceUsingPattern(ModuleRevisionId mrid, String pattern,\n            Artifact artifact, ResourceMDParser rmdparser, Date date) {\n        String name = getName();\n        VersionMatcher versionMatcher = getSettings().getVersionMatcher();\n        try {\n            if (!versionMatcher.isDynamic(mrid) || isAlwaysCheckExactRevision()) {\n                String resourceName = IvyPatternHelper.substitute(pattern, mrid, artifact);\n                Message.debug(\"\\t trying \" + resourceName);\n                logAttempt(resourceName);\n                Resource res = repository.getResource(resourceName);\n                boolean reachable = res.exists();\n                if (reachable) {\n                    String revision;\n                    if (pattern.indexOf(IvyPatternHelper.REVISION_KEY) == -1) {\n                        if (\"ivy\".equals(artifact.getType()) || \"pom\".equals(artifact.getType())) {\n                            // we can't determine the revision from the pattern, get it\n                            // from the moduledescriptor itself\n                            File temp = File.createTempFile(\"ivy\", artifact.getExt());\n                            temp.deleteOnExit();\n                            repository.get(res.getName(), temp);\n                            ModuleDescriptorParser parser = \n                                ModuleDescriptorParserRegistry.getInstance().getParser(res);\n                            ModuleDescriptor md = \n                                parser.parseDescriptor(\n                                    getSettings(), temp.toURI().toURL(), res, false);\n                            revision = md.getRevision();\n                            if ((revision == null) || (revision.length() == 0)) {\n                                revision = \"working@\" + name;\n                            }\n                        } else {\n                            revision = \"working@\" + name;\n                        }\n                    } else {\n                        revision = mrid.getRevision();\n                    }\n                    return new ResolvedResource(res, revision);\n                } else if (versionMatcher.isDynamic(mrid)) {\n                    return findDynamicResourceUsingPattern(\n                        rmdparser, mrid, pattern, artifact, date);\n                } else {\n                    Message.debug(\"\\t\" + name + \": resource not reachable for \" + mrid + \": res=\"\n                            + res);\n                    return null;\n                }\n            } else {\n                return findDynamicResourceUsingPattern(rmdparser, mrid, pattern, artifact, date);\n            }\n        } catch (IOException ex) {\n            throw new RuntimeException(name + \": unable to get resource for \" + mrid + \": res=\"\n                    + IvyPatternHelper.substitute(pattern, mrid, artifact) + \": \" + ex, ex);\n        } catch (ParseException ex) {\n            throw new RuntimeException(name + \": unable to get resource for \" + mrid + \": res=\"\n                    + IvyPatternHelper.substitute(pattern, mrid, artifact) + \": \" + ex, ex);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [9, 12], [10, 13], [11, 14], [2, 15], [3, 16], [12, 17], [13, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [14, 24], [14, 25], [15, 26], [17, 27], [18, 28], [19, 29], [20, 30], [11, 31], [11, 32], [27, 33], [28, 34], [30, 35], [20, 36], [20, 37], [20, 38], [21, 39], [22, 40], [32, 41], [23, 42], [33, 43], [33, 44], [34, 45], [34, 46], [30, 47], [30, 48], [36, 49], [37, 50], [41, 51], [44, 52], [44, 53], [46, 54], [46, 55], [47, 56], [30, 57], [48, 58], [37, 59], [50, 60], [50, 61], [53, 62], [53, 63], [55, 64], [55, 65], [57, 66], [37, 67], [59, 68], [63, 69], [65, 70], [66, 71], [67, 72], [59, 73], [59, 74], [59, 75], [59, 76], [68, 77], [68, 78], [69, 79], [70, 80], [71, 81], [71, 82], [59, 83], [73, 84], [59, 85], [59, 86], [59, 87], [77, 88], [78, 89], [82, 90], [83, 91], [84, 92], [84, 93], [85, 94], [74, 95], [75, 96], [86, 97], [76, 98], [88, 99], [89, 100], [90, 101], [90, 102], [91, 103], [73, 104], [92, 105], [92, 106], [93, 107], [95, 108], [95, 109], [95, 110], [96, 111], [98, 112], [98, 113], [102, 114], [104, 115], [109, 116], [115, 117], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 9], [13, 10], [14, 11], [15, 2], [16, 3], [17, 12], [18, 13], [19, 11], [20, 11], [21, 11], [22, 11], [23, 11], [24, 14], [25, 14], [26, 15], [27, 17], [28, 18], [29, 19], [30, 20], [31, 11], [32, 11], [33, 27], [34, 28], [35, 30], [36, 20], [37, 20], [38, 20], [39, 21], [40, 22], [41, 32], [42, 23], [43, 33], [44, 33], [45, 34], [46, 34], [47, 30], [48, 30], [49, 36], [50, 37], [51, 41], [52, 44], [53, 44], [54, 46], [55, 46], [56, 47], [57, 30], [58, 48], [59, 37], [60, 50], [61, 50], [62, 53], [63, 53], [64, 55], [65, 55], [66, 57], [67, 37], [68, 59], [69, 63], [70, 65], [71, 66], [72, 67], [73, 59], [74, 59], [75, 59], [76, 59], [77, 68], [78, 68], [79, 69], [80, 70], [81, 71], [82, 71], [83, 59], [84, 73], [85, 59], [86, 59], [87, 59], [88, 77], [89, 78], [90, 82], [91, 83], [92, 84], [93, 84], [94, 85], [95, 74], [96, 75], [97, 86], [98, 76], [99, 88], [100, 89], [101, 90], [102, 90], [103, 91], [104, 73], [105, 92], [106, 92], [107, 93], [108, 95], [109, 95], [110, 95], [111, 96], [112, 98], [113, 98], [114, 102], [115, 104], [116, 109], [117, 115], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117]]}, {"function_name": "findDynamicResourceUsingPattern", "code": "    private ResolvedResource findDynamicResourceUsingPattern(\n            ResourceMDParser rmdparser, ModuleRevisionId mrid, String pattern, Artifact artifact,\n            Date date) {\n        String name = getName();\n        logAttempt(IvyPatternHelper.substitute(pattern, ModuleRevisionId.newInstance(mrid,\n            IvyPatternHelper.getTokenString(IvyPatternHelper.REVISION_KEY)), artifact));\n        ResolvedResource[] rress = listResources(repository, mrid, pattern, artifact);\n        if (rress == null) {\n            Message.debug(\"\\t\" + name + \": unable to list resources for \" + mrid + \": pattern=\"\n                    + pattern);\n            return null;\n        } else {\n            ResolvedResource found = findResource(rress, rmdparser, mrid, date);\n            if (found == null) {\n                Message.debug(\"\\t\" + name + \": no resource found for \" + mrid + \": pattern=\"\n                        + pattern);\n            }\n            return found;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "RETURN", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [1, 11], [1, 12], [1, 13], [1, 14], [9, 15], [2, 16], [10, 17], [3, 18], [12, 19], [14, 20], [1, 21], [17, 22], [19, 23], [13, 24], [21, 25], [22, 26], [12, 27], [25, 28], [27, 29], [28, 30], [28, 31], [29, 32], [31, 33], [32, 34], [32, 35], [33, 36], [33, 37], [35, 38], [37, 39], [38, 40], [38, 41], [41, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 1], [12, 1], [13, 1], [14, 1], [15, 9], [16, 2], [17, 10], [18, 3], [19, 12], [20, 14], [21, 1], [22, 17], [23, 19], [24, 13], [25, 21], [26, 22], [27, 12], [28, 25], [29, 27], [30, 28], [31, 28], [32, 29], [33, 31], [34, 32], [35, 32], [36, 33], [37, 33], [38, 35], [39, 37], [40, 38], [41, 38], [42, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getResource", "code": "    protected Resource getResource(String source) throws IOException {\n        return repository.getResource(source);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "listResources", "code": "    protected ResolvedResource[] listResources(\n            Repository repository, ModuleRevisionId mrid, String pattern, Artifact artifact) {\n        return ResolverHelper.findAll(repository, mrid, pattern, artifact);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "get", "code": "    protected long get(Resource resource, File dest) throws IOException {\n        Message.verbose(\"\\t\" + getName() + \": downloading \" + resource.getName());\n        Message.debug(\"\\t\\tto \" + dest);\n        if (dest.getParentFile() != null) {\n            dest.getParentFile().mkdirs();\n        }\n        repository.get(resource.getName(), dest);\n        return dest.length();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [7, 12], [8, 13], [9, 14], [2, 15], [13, 16], [14, 17], [14, 18], [15, 19], [18, 20], [18, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 7], [13, 8], [14, 9], [15, 2], [16, 13], [17, 14], [18, 14], [19, 15], [20, 18], [21, 18], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "publish", "code": "    public void publish(Artifact artifact, File src, boolean overwrite) throws IOException {\n        String destPattern;\n        if (\"ivy\".equals(artifact.getType()) && !getIvyPatterns().isEmpty()) {\n            destPattern = (String) getIvyPatterns().get(0);\n        } else if (!getArtifactPatterns().isEmpty()) {\n            destPattern = (String) getArtifactPatterns().get(0);\n        } else {\n            throw new IllegalStateException(\"impossible to publish \" + artifact + \" using \" + this\n                    + \": no artifact pattern defined\");\n        }\n        // Check for m2 compatibility\n        ModuleRevisionId mrid = artifact.getModuleRevisionId();\n        if (isM2compatible()) {\n            mrid = convertM2IdForResourceSearch(mrid);\n        }\n\n        String dest = getDestination(destPattern, artifact, mrid);\n\n        put(artifact, src, dest, overwrite);\n        Message.info(\"\\tpublished \" + artifact.getName() + \" to \" + hidePassword(dest));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "THROW_RAISE", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [4, 12], [4, 13], [9, 14], [1, 15], [3, 16], [12, 17], [13, 18], [13, 19], [14, 20], [14, 21], [2, 22], [12, 23], [17, 24], [4, 25], [18, 26], [19, 27], [21, 28], [21, 29], [22, 30], [23, 31], [12, 32], [27, 33], [29, 34], [29, 35], [31, 36], [25, 37], [36, 38], [36, 39], [32, 40], [37, 41], [39, 42], [40, 43], [41, 44], [42, 45], [42, 46], [43, 47], [46, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 4], [13, 4], [14, 9], [15, 1], [16, 3], [17, 12], [18, 13], [19, 13], [20, 14], [21, 14], [22, 2], [23, 12], [24, 17], [25, 4], [26, 18], [27, 19], [28, 21], [29, 21], [30, 22], [31, 23], [32, 12], [33, 27], [34, 29], [35, 29], [36, 31], [37, 25], [38, 36], [39, 36], [40, 32], [41, 37], [42, 39], [43, 40], [44, 41], [45, 42], [46, 42], [47, 43], [48, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "getDestination", "code": "    protected String getDestination(String pattern, Artifact artifact, ModuleRevisionId mrid) {\n        return IvyPatternHelper.substitute(pattern, mrid, artifact);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "put", "code": "    protected void put(Artifact artifact, File src, String dest, boolean overwrite)\n            throws IOException {\n        repository.put(artifact, src, dest, overwrite);\n        String[] checksums = getChecksumAlgorithms();\n        for (int i = 0; i < checksums.length; i++) {\n            putChecksum(artifact, src, dest, overwrite, checksums[i]);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [1, 10], [1, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 1], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "putChecksum", "code": "    protected void putChecksum(Artifact artifact, File src, String dest, boolean overwrite,\n            String algorithm) throws IOException {\n        File csFile = File.createTempFile(\"ivytemp\", algorithm);\n        try {\n            FileUtil.copy(new ByteArrayInputStream(ChecksumHelper.computeAsString(src, algorithm)\n                    .getBytes()), csFile, null);\n            repository.put(DefaultArtifact.cloneWithAnotherTypeAndExt(artifact, algorithm,\n                artifact.getExt() + \".\" + algorithm), csFile, dest + \".\" + algorithm, overwrite);\n        } finally {\n            csFile.delete();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [9, 12], [9, 13], [10, 14], [10, 15], [11, 16], [12, 17], [13, 18], [15, 19], [17, 20], [18, 21], [19, 22], [21, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 9], [13, 9], [14, 10], [15, 10], [16, 11], [17, 12], [18, 13], [19, 15], [20, 17], [21, 18], [22, 19], [23, 21], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "download", "code": "    public DownloadReport download(Artifact[] artifacts, DownloadOptions options) {\n        EventManager eventManager = getEventManager();\n        try {\n            if (eventManager != null) {\n                repository.addTransferListener(eventManager);\n            }\n            return super.download(artifacts, options);\n        } finally {\n            if (eventManager != null) {\n                repository.removeTransferListener(eventManager);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "IF", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [7, 9], [2, 10], [8, 11], [9, 12], [5, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 7], [10, 2], [11, 8], [12, 9], [13, 5], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "findTokenValues", "code": "    protected void findTokenValues(Collection names, List patterns, Map tokenValues, String token) {\n        for (Iterator iter = patterns.iterator(); iter.hasNext();) {\n            String pattern = (String) iter.next();\n            String partiallyResolvedPattern = IvyPatternHelper.substituteTokens(pattern,\n                tokenValues);\n            String[] values = ResolverHelper.listTokenValues(repository, partiallyResolvedPattern,\n                token);\n            if (values != null) {\n                names.addAll(filterNames(new ArrayList(Arrays.asList(values))));", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [1, 12], [11, 13], [8, 14], [9, 15], [7, 16], [10, 17], [16, 18], [18, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 1], [13, 11], [14, 8], [15, 9], [16, 7], [17, 10], [18, 16], [19, 18], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "listTokenValues", "code": "    protected String[] listTokenValues(String pattern, String token) {\n        return ResolverHelper.listTokenValues(repository, pattern, token);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "exist", "code": "    protected boolean exist(String path) {\n        try {\n            Resource resource = repository.getResource(path);\n            return resource.exists();\n        } catch (IOException e) {\n            return false;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "VAR_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [6, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 6], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getTypeName", "code": "    public String getTypeName() {\n        return \"repository\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "dumpSettings", "code": "    public void dumpSettings() {\n        super.dumpSettings();\n        Message.debug(\"\\t\\trepository: \" + getRepository());", "ast_nodes": ["FUNC_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setSettings", "code": "    public void setSettings(ResolverSettings settings) {\n        super.setSettings(settings);\n        if (settings != null) {\n            if (alwaysCheckExactRevision == null) {\n                alwaysCheckExactRevision = Boolean.valueOf(settings\n                        .getVariable(\"ivy.default.always.check.exact.revision\"));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [6, 7], [4, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 6], [8, 4], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "isAlwaysCheckExactRevision", "code": "    public boolean isAlwaysCheckExactRevision() {\n        return alwaysCheckExactRevision == null ? true : alwaysCheckExactRevision.booleanValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setAlwaysCheckExactRevision", "code": "    public void setAlwaysCheckExactRevision(boolean alwaysCheckExactRevision) {\n        this.alwaysCheckExactRevision = Boolean.valueOf(alwaysCheckExactRevision);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RepositoryResolver", "code": "    public RepositoryResolver() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.4-6653", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/ElemForEach.java", "language": "java", "name": "org.apache.xalan.templates.ElemForEach", "code": "public class ElemForEach extends ElemTemplateElement implements ExpressionOwner\n{\n  /** Set true to request some basic status reports */\n  static final boolean DEBUG = false;\n  \n  /**\n   * This is set by an \"xalan:doc-cache-off\" pi.  It tells the engine that\n   * documents created in the location paths executed by this element\n   * will not be reparsed. It's set by StylesheetHandler during\n   * construction. Note that this feature applies _only_ to xsl:for-each\n   * elements in its current incarnation; a more general cache management\n   * solution is desperately needed.\n   */\n  public boolean m_doc_cache_off=false;\n  \n  /**\n   * Construct a element representing xsl:for-each.\n   */\n  public ElemForEach(){}\n\n  /**\n   * The \"select\" expression.\n   * @serial\n   */\n  protected Expression m_selectExpression = null;\n\n  /**\n   * Set the \"select\" attribute.\n   *\n   * @param xpath The XPath expression for the \"select\" attribute.\n   */\n  public void setSelect(XPath xpath)\n  {\n    m_selectExpression = xpath.getExpression();\n  }\n\n  /**\n   * Get the \"select\" attribute.\n   *\n   * @return The XPath expression for the \"select\" attribute.\n   */\n  public Expression getSelect()\n  {\n    return m_selectExpression;\n  }\n\n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   *\n   * NEEDSDOC @param sroot\n   *\n   * @throws TransformerException\n   */\n  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n\n    super.compose(sroot);\n\n    int length = getSortElemCount();\n\n    for (int i = 0; i < length; i++)\n    {\n      getSortElem(i).compose(sroot);\n    }\n\n    java.util.Vector vnames = sroot.getComposeState().getVariableNames();\n\n    if (null != m_selectExpression)\n      m_selectExpression.fixupVariables(\n        vnames, sroot.getComposeState().getGlobalsSize());\n    else\n    {\n      m_selectExpression =\n        getStylesheetRoot().m_selectDefault.getExpression();\n    }\n  }\n  \n  /**\n   * This after the template's children have been composed.\n   */\n  public void endCompose(StylesheetRoot sroot) throws TransformerException\n  {\n    int length = getSortElemCount();\n\n    for (int i = 0; i < length; i++)\n    {\n      getSortElem(i).endCompose(sroot);\n    }\n    \n    super.endCompose(sroot);\n  }\n\n\n\n  /**\n   * Vector containing the xsl:sort elements associated with this element.\n   *  @serial\n   */\n  protected Vector m_sortElems = null;\n\n  /**\n   * Get the count xsl:sort elements associated with this element.\n   * @return The number of xsl:sort elements.\n   */\n  public int getSortElemCount()\n  {\n    return (m_sortElems == null) ? 0 : m_sortElems.size();\n  }\n\n  /**\n   * Get a xsl:sort element associated with this element.\n   *\n   * @param i Index of xsl:sort element to get\n   *\n   * @return xsl:sort element at given index\n   */\n  public ElemSort getSortElem(int i)\n  {\n    return (ElemSort) m_sortElems.elementAt(i);\n  }\n\n  /**\n   * Set a xsl:sort element associated with this element.\n   *\n   * @param sortElem xsl:sort element to set\n   */\n  public void setSortElem(ElemSort sortElem)\n  {\n\n    if (null == m_sortElems)\n      m_sortElems = new Vector();\n\n    m_sortElems.addElement(sortElem);\n  }\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_FOREACH;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The element's name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_FOREACH_STRING;\n  }\n\n  /**\n   * Execute the xsl:for-each transformation\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(TransformerImpl transformer) throws TransformerException\n  {\n\n    transformer.pushCurrentTemplateRuleIsNull(true);    \n    if (TransformerImpl.S_DEBUG)\n      transformer.getTraceManager().fireTraceEvent(this);\n\n    try\n    {\n      transformSelectedNodes(transformer);\n    }\n    finally\n    {\n      if (TransformerImpl.S_DEBUG)\n\t    transformer.getTraceManager().fireTraceEndEvent(this); \n      transformer.popCurrentTemplateRuleIsNull();\n    }\n  }\n\n  /**\n   * Get template element associated with this\n   *\n   *\n   * @return template element associated with this (itself)\n   */\n  protected ElemTemplateElement getTemplateMatch()\n  {\n    return this;\n  }\n\n  /**\n   * Sort given nodes\n   *\n   *\n   * @param xctxt The XPath runtime state for the sort.\n   * @param keys Vector of sort keyx\n   * @param sourceNodes Iterator of nodes to sort\n   *\n   * @return iterator of sorted nodes\n   *\n   * @throws TransformerException\n   */\n  public DTMIterator sortNodes(\n          XPathContext xctxt, Vector keys, DTMIterator sourceNodes)\n            throws TransformerException\n  {\n\n    NodeSorter sorter = new NodeSorter(xctxt);\n    sourceNodes.setShouldCacheNodes(true);\n    sourceNodes.runTo(-1);\n    xctxt.pushContextNodeList(sourceNodes);\n\n    try\n    {\n      sorter.sort(sourceNodes, keys, xctxt);\n      sourceNodes.setCurrentPos(0);\n    }\n    finally\n    {\n      xctxt.popContextNodeList();\n    }\n\n    return sourceNodes;\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"advanced\"/>\n   * Perform a query if needed, and call transformNode for each child.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   * @param template The owning template context.\n   *\n   * @throws TransformerException Thrown in a variety of circumstances.\n   */\n  public void transformSelectedNodes(TransformerImpl transformer)\n          throws TransformerException\n  {\n\n    final XPathContext xctxt = transformer.getXPathContext();\n    final int sourceNode = xctxt.getCurrentNode();\n    DTMIterator sourceNodes = m_selectExpression.asIterator(xctxt,\n            sourceNode);\n\n    try\n    {\n\n      final Vector keys = (m_sortElems == null)\n              ? null\n              : transformer.processSortKeys(this, sourceNode);\n\n      if (null != keys)\n        sourceNodes = sortNodes(xctxt, keys, sourceNodes);\n\n      if (TransformerImpl.S_DEBUG)\n      {\n        transformer.getTraceManager().fireSelectedEvent(sourceNode, this,\n                \"select\", new XPath(m_selectExpression),\n                new org.apache.xpath.objects.XNodeSet(sourceNodes));\n      }\n\n      final ResultTreeHandler rth = transformer.getResultTreeHandler();\n      ContentHandler chandler = rth.getContentHandler();\n\n      xctxt.pushCurrentNode(DTM.NULL);\n\n      int[] currentNodes = xctxt.getCurrentNodeStack();\n      int currentNodePos = xctxt.getCurrentNodeFirstFree() - 1;\n\n      xctxt.pushCurrentExpressionNode(DTM.NULL);\n\n      int[] currentExpressionNodes = xctxt.getCurrentExpressionNodeStack();\n      int currentExpressionNodePos =\n              xctxt.getCurrentExpressionNodesFirstFree() - 1;\n\n      xctxt.pushSAXLocatorNull();\n      xctxt.pushContextNodeList(sourceNodes);\n      transformer.pushElemTemplateElement(null);\n\n      DTM dtm = xctxt.getDTM(sourceNode);\n      int docID = sourceNode & DTMManager.IDENT_DTM_DEFAULT;\n      int child;\n\n      while (DTM.NULL != (child = sourceNodes.nextNode()))\n      {\n        currentNodes[currentNodePos] = child;\n        currentExpressionNodes[currentExpressionNodePos] = child;\n\n        if ((child & DTMManager.IDENT_DTM_DEFAULT) != docID)\n        {\n          dtm = xctxt.getDTM(child);\n          docID = sourceNode & DTMManager.IDENT_DTM_DEFAULT;\n        }\n\n        final int nodeType = dtm.getNodeType(child); \n\n        if (TransformerImpl.S_DEBUG)\n        {\n           transformer.getTraceManager().fireTraceEvent(this);\n        }\n\n        for (ElemTemplateElement t = this.m_firstChild; t != null;\n             t = t.m_nextSibling)\n        {\n          xctxt.setSAXLocator(t);\n          transformer.setCurrentElement(t);\n          t.execute(transformer);\n        }\n        \n        if (TransformerImpl.S_DEBUG)\n        {\n          transformer.setCurrentElement(null);\n          transformer.getTraceManager().fireTraceEndEvent(this);\n        }\n\n\n\t \tif(m_doc_cache_off)\n\t\t{\n\t \t  if(DEBUG)\n\t \t    System.out.println(\"JJK***** CACHE RELEASE *****\\n\"+\n\t\t\t\t       \"\\tdtm=\"+dtm.getDocumentBaseURI());\n\t \t  xctxt.getSourceTreeManager().removeDocumentFromCache(dtm.getDocument());\n\t \t  xctxt.release(dtm,false);\n\t \t}\n      }\n    }\n    finally\n    {\n      if (TransformerImpl.S_DEBUG)\n        transformer.getTraceManager().fireSelectedEndEvent(sourceNode, this,\n                \"select\", new XPath(m_selectExpression),\n                new org.apache.xpath.objects.XNodeSet(sourceNodes));\n\n      xctxt.popSAXLocator();\n      xctxt.popContextNodeList();\n      transformer.popElemTemplateElement();\n      xctxt.popCurrentExpressionNode();\n      xctxt.popCurrentNode();\n      sourceNodes.detach();\n    }\n  }\n\n  /**\n   * Add a child to the child list.\n   * <!ELEMENT xsl:apply-templates (xsl:sort|xsl:with-param)*>\n   * <!ATTLIST xsl:apply-templates\n   *   select %expr; \"node()\"\n   *   mode %qname; #IMPLIED\n   * >\n   *\n   * @param newChild Child to add to child list\n   *\n   * @return Child just added to child list\n   */\n  public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n  {\n\n    int type = ((ElemTemplateElement) newChild).getXSLToken();\n\n    if (Constants.ELEMNAME_SORT == type)\n    {\n      setSortElem((ElemSort) newChild);\n\n      return newChild;\n    }\n    else\n      return super.appendChild(newChild);\n  }\n  \n  /**\n   * Call the children visitors.\n   * @param visitor The visitor whose appropriate method will be called.\n   */\n  public void callChildVisitors(XSLTVisitor visitor, boolean callAttributes)\n  {\n  \tif(callAttributes && (null != m_selectExpression))\n  \t\tm_selectExpression.callVisitors(this, visitor);\n  \t\t\n    int length = getSortElemCount();\n\n    for (int i = 0; i < length; i++)\n    {\n      getSortElem(i).callVisitors(visitor);\n    }\n\n    super.callChildVisitors(visitor, callAttributes);\n  }\n\n  /**\n   * @see ExpressionOwner#getExpression()\n   */\n  public Expression getExpression()\n  {\n    return m_selectExpression;\n  }\n\n  /**\n   * @see ExpressionOwner#setExpression(Expression)\n   */\n  public void setExpression(Expression exp)\n  {\n  \texp.exprSetParent(this);\n  \tm_selectExpression = exp;", "functions": [{"function_name": "setSelect", "code": "  public void setSelect(XPath xpath)\n  {\n    m_selectExpression = xpath.getExpression();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSelect", "code": "  public Expression getSelect()\n  {\n    return m_selectExpression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n\n    super.compose(sroot);\n\n    int length = getSortElemCount();\n\n    for (int i = 0; i < length; i++)\n    {\n      getSortElem(i).compose(sroot);\n    }\n\n    java.util.Vector vnames = sroot.getComposeState().getVariableNames();\n\n    if (null != m_selectExpression)\n      m_selectExpression.fixupVariables(\n        vnames, sroot.getComposeState().getGlobalsSize());\n    else\n    {\n      m_selectExpression =\n        getStylesheetRoot().m_selectDefault.getExpression();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [1, 8], [6, 9], [2, 10], [4, 11], [1, 12], [8, 13], [10, 14], [3, 15], [3, 16], [12, 17], [13, 18], [15, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 1], [9, 6], [10, 2], [11, 4], [12, 1], [13, 8], [14, 10], [15, 3], [16, 3], [17, 12], [18, 13], [19, 15], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "endCompose", "code": "  public void endCompose(StylesheetRoot sroot) throws TransformerException\n  {\n    int length = getSortElemCount();\n\n    for (int i = 0; i < length; i++)\n    {\n      getSortElem(i).endCompose(sroot);\n    }\n    \n    super.endCompose(sroot);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSortElemCount", "code": "  public int getSortElemCount()\n  {\n    return (m_sortElems == null) ? 0 : m_sortElems.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSortElem", "code": "  public ElemSort getSortElem(int i)\n  {\n    return (ElemSort) m_sortElems.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSortElem", "code": "  public void setSortElem(ElemSort sortElem)\n  {\n\n    if (null == m_sortElems)\n      m_sortElems = new Vector();\n\n    m_sortElems.addElement(sortElem);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_FOREACH;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_FOREACH_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public void execute(TransformerImpl transformer) throws TransformerException\n  {\n\n    transformer.pushCurrentTemplateRuleIsNull(true);    \n    if (TransformerImpl.S_DEBUG)\n      transformer.getTraceManager().fireTraceEvent(this);\n\n    try\n    {\n      transformSelectedNodes(transformer);\n    }\n    finally\n    {\n      if (TransformerImpl.S_DEBUG)\n\t    transformer.getTraceManager().fireTraceEndEvent(this); \n      transformer.popCurrentTemplateRuleIsNull();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "IF", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [2, 8], [5, 9], [4, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 2], [9, 5], [10, 4], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getTemplateMatch", "code": "  protected ElemTemplateElement getTemplateMatch()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "sortNodes", "code": "  public DTMIterator sortNodes(\n          XPathContext xctxt, Vector keys, DTMIterator sourceNodes)\n            throws TransformerException\n  {\n\n    NodeSorter sorter = new NodeSorter(xctxt);\n    sourceNodes.setShouldCacheNodes(true);\n    sourceNodes.runTo(-1);\n    xctxt.pushContextNodeList(sourceNodes);\n\n    try\n    {\n      sorter.sort(sourceNodes, keys, xctxt);\n      sourceNodes.setCurrentPos(0);\n    }\n    finally\n    {\n      xctxt.popContextNodeList();\n    }\n\n    return sourceNodes;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [2, 12], [8, 13], [9, 14], [3, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 2], [13, 8], [14, 9], [15, 3], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "transformSelectedNodes", "code": "  public void transformSelectedNodes(TransformerImpl transformer)\n          throws TransformerException\n  {\n\n    final XPathContext xctxt = transformer.getXPathContext();\n    final int sourceNode = xctxt.getCurrentNode();\n    DTMIterator sourceNodes = m_selectExpression.asIterator(xctxt,\n            sourceNode);\n\n    try\n    {\n\n      final Vector keys = (m_sortElems == null)\n              ? null\n              : transformer.processSortKeys(this, sourceNode);\n\n      if (null != keys)\n        sourceNodes = sortNodes(xctxt, keys, sourceNodes);\n\n      if (TransformerImpl.S_DEBUG)\n      {\n        transformer.getTraceManager().fireSelectedEvent(sourceNode, this,\n                \"select\", new XPath(m_selectExpression),\n                new org.apache.xpath.objects.XNodeSet(sourceNodes));\n      }\n\n      final ResultTreeHandler rth = transformer.getResultTreeHandler();\n      ContentHandler chandler = rth.getContentHandler();\n\n      xctxt.pushCurrentNode(DTM.NULL);\n\n      int[] currentNodes = xctxt.getCurrentNodeStack();\n      int currentNodePos = xctxt.getCurrentNodeFirstFree() - 1;\n\n      xctxt.pushCurrentExpressionNode(DTM.NULL);\n\n      int[] currentExpressionNodes = xctxt.getCurrentExpressionNodeStack();\n      int currentExpressionNodePos =\n              xctxt.getCurrentExpressionNodesFirstFree() - 1;\n\n      xctxt.pushSAXLocatorNull();\n      xctxt.pushContextNodeList(sourceNodes);\n      transformer.pushElemTemplateElement(null);\n\n      DTM dtm = xctxt.getDTM(sourceNode);\n      int docID = sourceNode & DTMManager.IDENT_DTM_DEFAULT;\n      int child;\n\n      while (DTM.NULL != (child = sourceNodes.nextNode()))\n      {\n        currentNodes[currentNodePos] = child;\n        currentExpressionNodes[currentExpressionNodePos] = child;\n\n        if ((child & DTMManager.IDENT_DTM_DEFAULT) != docID)\n        {\n          dtm = xctxt.getDTM(child);\n          docID = sourceNode & DTMManager.IDENT_DTM_DEFAULT;\n        }\n\n        final int nodeType = dtm.getNodeType(child); \n\n        if (TransformerImpl.S_DEBUG)\n        {\n           transformer.getTraceManager().fireTraceEvent(this);\n        }\n\n        for (ElemTemplateElement t = this.m_firstChild; t != null;\n             t = t.m_nextSibling)\n        {\n          xctxt.setSAXLocator(t);\n          transformer.setCurrentElement(t);\n          t.execute(transformer);\n        }\n        \n        if (TransformerImpl.S_DEBUG)\n        {\n          transformer.setCurrentElement(null);\n          transformer.getTraceManager().fireTraceEndEvent(this);\n        }\n\n\n\t \tif(m_doc_cache_off)\n\t\t{\n\t \t  if(DEBUG)\n\t \t    System.out.println(\"JJK***** CACHE RELEASE *****\\n\"+\n\t\t\t\t       \"\\tdtm=\"+dtm.getDocumentBaseURI());\n\t \t  xctxt.getSourceTreeManager().removeDocumentFromCache(dtm.getDocument());\n\t \t  xctxt.release(dtm,false);\n\t \t}\n      }\n    }\n    finally\n    {\n      if (TransformerImpl.S_DEBUG)\n        transformer.getTraceManager().fireSelectedEndEvent(sourceNode, this,\n                \"select\", new XPath(m_selectExpression),\n                new org.apache.xpath.objects.XNodeSet(sourceNodes));\n\n      xctxt.popSAXLocator();\n      xctxt.popContextNodeList();\n      transformer.popElemTemplateElement();\n      xctxt.popCurrentExpressionNode();\n      xctxt.popCurrentNode();\n      sourceNodes.detach();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "LOOP", "IF", "VAR_DECL", "IF", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [7, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [18, 32], [2, 33], [3, 34], [4, 35], [6, 36], [7, 37], [7, 38], [7, 39], [7, 40], [7, 41], [7, 42], [26, 43], [9, 44], [10, 45], [27, 46], [11, 47], [12, 48], [13, 49], [14, 50], [15, 51], [16, 52], [18, 53], [32, 54], [19, 55], [36, 56], [39, 57], [39, 58], [42, 59], [7, 60], [7, 61], [43, 62], [47, 63], [47, 64], [49, 65], [49, 66], [17, 67], [53, 68], [55, 69], [55, 70], [55, 71], [56, 72], [56, 73], [56, 74], [37, 75], [58, 76], [41, 77], [59, 78], [67, 79], [71, 80], [37, 81], [37, 82], [38, 83], [38, 84], [39, 85], [39, 86], [39, 87], [40, 88], [42, 89], [42, 90], [79, 91], [79, 92], [79, 93], [81, 94], [82, 95], [75, 96], [83, 97], [84, 98], [88, 99], [89, 100], [90, 101], [95, 102], [96, 103], [103, 104], [103, 105], [105, 106], [105, 107], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 7], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 18], [33, 2], [34, 3], [35, 4], [36, 6], [37, 7], [38, 7], [39, 7], [40, 7], [41, 7], [42, 7], [43, 26], [44, 9], [45, 10], [46, 27], [47, 11], [48, 12], [49, 13], [50, 14], [51, 15], [52, 16], [53, 18], [54, 32], [55, 19], [56, 36], [57, 39], [58, 39], [59, 42], [60, 7], [61, 7], [62, 43], [63, 47], [64, 47], [65, 49], [66, 49], [67, 17], [68, 53], [69, 55], [70, 55], [71, 55], [72, 56], [73, 56], [74, 56], [75, 37], [76, 58], [77, 41], [78, 59], [79, 67], [80, 71], [81, 37], [82, 37], [83, 38], [84, 38], [85, 39], [86, 39], [87, 39], [88, 40], [89, 42], [90, 42], [91, 79], [92, 79], [93, 79], [94, 81], [95, 82], [96, 75], [97, 83], [98, 84], [99, 88], [100, 89], [101, 90], [102, 95], [103, 96], [104, 103], [105, 103], [106, 105], [107, 105], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107]]}, {"function_name": "appendChild", "code": "  public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n  {\n\n    int type = ((ElemTemplateElement) newChild).getXSLToken();\n\n    if (Constants.ELEMNAME_SORT == type)\n    {\n      setSortElem((ElemSort) newChild);\n\n      return newChild;\n    }\n    else\n      return super.appendChild(newChild);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "callChildVisitors", "code": "  public void callChildVisitors(XSLTVisitor visitor, boolean callAttributes)\n  {\n  \tif(callAttributes && (null != m_selectExpression))\n  \t\tm_selectExpression.callVisitors(this, visitor);\n  \t\t\n    int length = getSortElemCount();\n\n    for (int i = 0; i < length; i++)\n    {\n      getSortElem(i).callVisitors(visitor);\n    }\n\n    super.callChildVisitors(visitor, callAttributes);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [2, 8], [3, 9], [7, 10], [1, 11], [1, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 2], [9, 3], [10, 7], [11, 1], [12, 1], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getExpression", "code": "  public Expression getExpression()\n  {\n    return m_selectExpression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExpression", "code": "  public void setExpression(Expression exp)\n  {\n  \texp.exprSetParent(this);\n  \tm_selectExpression = exp;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ElemForEach", "code": "  public ElemForEach(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "jedit-4.3-4672", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/textarea/RangeMap.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.RangeMap", "code": "class RangeMap\n{\n\t//{{{ RangeMap constructor\n\tRangeMap()\n\t{\n\t\tfvm = new int[2];\n\t\tlastfvmget = -1;\n\t} //}}}\n\n\t//{{{ RangeMap constructor\n\tRangeMap(RangeMap copy)\n\t{\n\t\tthis.fvm = copy.fvm.clone();\n\t\tthis.fvmcount = copy.fvmcount;\n\t} //}}}\n\n\t//{{{ reset() method\n\tvoid reset(int lines)\n\t{\n\t\tlastfvmget = -1;\n\t\tfvmcount = 2;\n\t\tfvm[0] = 0;\n\t\tfvm[1] = lines;\n\t} //}}}\n\n\t//{{{ first() method\n\tint first()\n\t{\n\t\treturn fvm[0];\n\t} //}}}\n\n\t//{{{ last() method\n\tint last()\n\t{\n\t\treturn fvm[fvmcount - 1] - 1;\n\t} //}}}\n\n\t//{{{ lookup() method\n\tint lookup(int index)\n\t{\n\t\treturn fvm[index];\n\t} //}}}\n\n\t//{{{ search() method\n\t/**\n\t * Returns the fold visibility map index for the given line.\n\t */\n\tint search(int line)\n\t{\n\t\tif(line < fvm[0])\n\t\t\treturn -1;\n\t\tif(line >= fvm[fvmcount - 1])\n\t\t\treturn fvmcount - 1;\n\n\t\tif(lastfvmget != -1)\n\t\t{\n\t\t\tif(line >= fvm[lastfvmget])\n\t\t\t{\n\t\t\t\tif(lastfvmget == fvmcount - 1\n\t\t\t\t\t|| line < fvm[lastfvmget + 1])\n\t\t\t\t{\n\t\t\t\t\treturn lastfvmget;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint start = 0;\n\t\tint end = fvmcount - 1;\n\nloop:\t\tfor(;;)\n\t\t{\n\t\t\tswitch(end - start)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tlastfvmget = start;\n\t\t\t\tbreak loop;\n\t\t\tcase 1:\n\t\t\t\tint value = fvm[end];\n\t\t\t\tif(value <= line)\n\t\t\t\t\tlastfvmget = end;\n\t\t\t\telse\n\t\t\t\t\tlastfvmget = start;\n\t\t\t\tbreak loop;\n\t\t\tdefault:\n\t\t\t\tint pivot = (end + start) / 2;\n\t\t\t\tvalue = fvm[pivot];\n\t\t\t\tif(value == line)\n\t\t\t\t{\n\t\t\t\t\tlastfvmget = pivot;\n\t\t\t\t\tbreak loop;\n\t\t\t\t}\n\t\t\t\telse if(value < line)\n\t\t\t\t\tstart = pivot;\n\t\t\t\telse\n\t\t\t\t\tend = pivot - 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn lastfvmget;\n\t} //}}}\n\n\t//{{{ put() method\n\t/**\n\t * Replaces from <code>start</code> to <code>end-1</code> inclusive with\n\t * <code>put</code>. Update <code>fvmcount</code>.\n\t */\n\tvoid put(int start, int end, int[] put)\n\t{\n\t\tif(Debug.FOLD_VIS_DEBUG)\n\t\t{\n\t\t\tStringBuilder buf = new StringBuilder(50);\n\t\t\tbuf.append(\"fvmput(\").append(start).append(',');\n\t\t\tbuf.append(end).append(',');\n\t\t\tbuf.append('{');\n\t\t\tif(put != null)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < put.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(i != 0)\n\t\t\t\t\t\tbuf.append(',');\n\t\t\t\t\tbuf.append(put[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuf.append(\"})\");\n\t\t\tLog.log(Log.DEBUG,this,buf.toString());\n\t\t}\n\t\tint putl = put == null ? 0 : put.length;\n\n\t\tint delta = putl - (end - start);\n\t\tif(fvmcount + delta > fvm.length)\n\t\t{\n\t\t\tint[] newfvm = new int[(fvm.length << 1) + 1];\n\t\t\tSystem.arraycopy(fvm,0,newfvm,0,fvmcount);\n\t\t\tfvm = newfvm;\n\t\t}\n\n\t\tif(delta != 0)\n\t\t{\n\t\t\tSystem.arraycopy(fvm,end,fvm,start + putl,\n\t\t\t\tfvmcount - end);\n\t\t}\n\n\t\tif(putl != 0)\n\t\t{\n\t\t\tSystem.arraycopy(put,0,fvm,start,put.length);\n\t\t}\n\n\t\tfvmcount += delta;\n\n\t\tdump();\n\n\t\tif(fvmcount == 0)\n\t\t\tthrow new InternalError();\n\t} //}}}\n\n\t//{{{ put2() method\n\t/**\n\t * Merge previous and next entry if necessary.\n\t */\n\tvoid put2(int starti, int endi, int start, int end)\n\t{\n\t\tif(Debug.FOLD_VIS_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"*fvmput2(\" + starti + \",\"\n\t\t\t\t+ endi + \",\" + start + \",\" + end + \")\");\n\t\t}\n\t\tif(starti != -1 && fvm[starti] == start)\n\t\t{\n\t\t\tif(endi <= fvmcount - 2 && fvm[endi + 1]\n\t\t\t\t== end + 1)\n\t\t\t{\n\t\t\t\tput(starti,endi + 2,null);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tput(starti,endi + 1,\n\t\t\t\t\tnew int[] { end + 1 });\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(endi != fvmcount - 1 && fvm[endi + 1]\n\t\t\t\t== end + 1)\n\t\t\t{\n\t\t\t\tput(starti + 1,endi + 2,\n\t\t\t\t\tnew int[] { start });\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tput(starti + 1,endi + 1,\n\t\t\t\t\tnew int[] { start,\n\t\t\t\t\tend + 1 });\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ next() method\n\tint next(int line)\n\t{\n\t\tint index = search(line);\n\t\t/* in collapsed range */\n\t\tif(index % 2 != 0)\n\t\t{\n\t\t\t/* beyond last visible line */\n\t\t\tif(fvmcount == index + 1)\n\t\t\t\treturn - 1;\n\t\t\t/* start of next expanded range */\n\t\t\telse\n\t\t\t\treturn fvm[index + 1];\n\t\t}\n\t\t/* last in expanded range */\n\t\telse if(line == fvm[index + 1] - 1)\n\t\t{\n\t\t\t/* equal to last visible line */\n\t\t\tif(fvmcount == index + 2)\n\t\t\t\treturn -1;\n\t\t\t/* start of next expanded range */\n\t\t\telse\n\t\t\t\treturn fvm[index + 2];\n\t\t}\n\t\t/* next in expanded range */\n\t\telse\n\t\t\treturn line + 1;\n\t} //}}}\n\n\t//{{{ prev() method\n\tint prev(int line)\n\t{\n\t\tint index = search(line);\n\t\t/* before first visible line */\n\t\tif(index == -1)\n\t\t\treturn -1;\n\t\t/* in collapsed range */\n\t\telse if(index % 2 == 1)\n\t\t{\n\t\t\t/* end of prev expanded range */\n\t\t\treturn fvm[index] - 1;\n\t\t}\n\t\t/* first in expanded range */\n\t\telse if(line == fvm[index])\n\t\t{\n\t\t\t/* equal to first visible line */\n\t\t\tif(index == 0)\n\t\t\t\treturn -1;\n\t\t\t/* end of prev expanded range */\n\t\t\telse\n\t\t\t\treturn fvm[index - 1] - 1;\n\t\t}\n\t\t/* prev in expanded range */\n\t\telse\n\t\t\treturn line - 1;\n\t} //}}}\n\n\t//{{{ show() method\n\tvoid show(int start, int end)\n\t{\n\t\tint starti = search(start);\n\t\tint endi = search(end);\n\n\t\tif(starti % 2 == 0)\n\t\t{\n\t\t\tif(endi % 2 == 0)\n\t\t\t\tput(starti + 1,endi + 1,null);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(endi != fvmcount - 1\n\t\t\t\t\t&& fvm[endi + 1] == end + 1)\n\t\t\t\t\tput(starti + 1,endi + 2,null);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tput(starti + 1,endi,null);\n\t\t\t\t\tfvm[starti + 1] = end + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(endi % 2 == 0)\n\t\t\t{\n\t\t\t\tif(starti != -1 && fvm[starti] == start)\n\t\t\t\t\tput(starti,endi + 1,null);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tput(starti + 1,endi,null);\n\t\t\t\t\tfvm[starti + 1] = start;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tput2(starti,endi,start,end);\n\t\t}\n\n\t\tlastfvmget = -1;\n\t} //}}}\n\t\n\t//{{{ hide() method\n\tvoid hide(int start, int end)\n\t{\n\t\tint starti = search(start);\n\t\tint endi = search(end);\n\n\t\tif(starti % 2 == 0)\n\t\t{\n\t\t\tif(endi % 2 == 0)\n\t\t\t\tput2(starti,endi,start,end);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(start == fvm[0])\n\t\t\t\t\tput(starti,endi + 1,null);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tput(starti + 1,endi,null);\n\t\t\t\t\tfvm[starti + 1] = start;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(endi % 2 == 0)\n\t\t\t{\n\t\t\t\tif(end + 1 == fvm[fvmcount - 1])\n\t\t\t\t\tput(starti + 1,endi + 2,null);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tput(starti + 1,endi,null);\n\t\t\t\t\tfvm[starti + 1] = end + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tput(starti + 1,endi + 1,null);\n\t\t}\n\n\t\tlastfvmget = -1;\n\t} //}}}\n\n\t//{{{ count() method\n\tint count()\n\t{\n\t\treturn fvmcount;\n\t} //}}}\n\n\t//{{{ dump() method\n\tvoid dump()\n\t{\n\t\tif(Debug.FOLD_VIS_DEBUG)\n\t\t{\n\t\t\tStringBuilder buf = new StringBuilder(\"{\");\n\t\t\tfor(int i = 0; i < fvmcount; i++)\n\t\t\t{\n\t\t\t\tif(i != 0)\n\t\t\t\t\tbuf.append(',');\n\t\t\t\tbuf.append(fvm[i]);\n\t\t\t}\n\t\t\tbuf.append('}');\n\t\t\tLog.log(Log.DEBUG,this,\"fvm = \" + buf);\n\t\t}\n\t} //}}}\n\n\t//{{{ contentInserted() method\n\tvoid contentInserted(int startLine, int numLines)\n\t{\n\t\tif(numLines != 0)\n\t\t{\n\t\t\tint index = search(startLine);\n\t\t\tint start = index + 1;\n\n\t\t\tfor(int i = start; i < fvmcount; i++)\n\t\t\t\tfvm[i] += numLines;\n\n\t\t\tlastfvmget = -1;\n\t\t\tdump();\n\t\t}\n\t} //}}}\n\n\t//{{{ preContentRemoved() method\n\t/**\n\t * @return If the anchors should be reset.\n\t */\n\tboolean preContentRemoved(int startLine, int numLines)\n\t{\n\t\tboolean returnValue = false;\n\n\t\tint endLine = startLine + numLines;\n\n\t\t/* update fold visibility map. */\n\t\tint starti = search(startLine);\n\t\tint endi = search(endLine);\n\n\t\t/* both have same visibility; just remove\n\t\t * anything in between. */\n\t\tif(Math.abs(starti % 2) == Math.abs(endi % 2))\n\t\t{\n\t\t\tif(endi - starti == fvmcount)\n\t\t\t{\n\t\t\t\t// we're removing from before\n\t\t\t\t// the first visible to after\n\t\t\t\t// the last visible\n\t\t\t\treturnValue = true;\n\t\t\t\tstarti = 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tput(starti + 1,endi + 1,null);\n\t\t\t\tstarti++;\n\t\t\t}\n\t\t}\n\t\t/* collapse 2 */\n\t\telse if(starti != -1 && fvm[starti] == startLine)\n\t\t{\n\t\t\tif(endi - starti == fvmcount - 1)\n\t\t\t{\n\t\t\t\t// we're removing from\n\t\t\t\t// the first visible to after\n\t\t\t\t// the last visible\n\t\t\t\treturnValue = true;\n\t\t\t\tstarti = 1;\n\t\t\t}\n\t\t\telse\n\t\t\t\tput(starti,endi + 1,null);\n\t\t}\n\t\t/* shift */\n\t\telse\n\t\t{\n\t\t\tput(starti + 1,endi,null);\n\t\t\tfvm[starti + 1] = startLine;\n\t\t\tstarti += 2;\n\t\t}\n\n\t\t/* update */\n\t\tfor(int i = starti; i < fvmcount; i++)\n\t\t\tfvm[i] -= numLines;\n\n\t\tlastfvmget = -1;\n\t\tdump();\n\n\t\treturn returnValue;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate int[] fvm;\n\tprivate int fvmcount;\n\tprivate int lastfvmget;", "functions": [{"function_name": "reset", "code": "\tvoid reset(int lines)\n\t{\n\t\tlastfvmget = -1;\n\t\tfvmcount = 2;\n\t\tfvm[0] = 0;\n\t\tfvm[1] = lines;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [5, 8], [2, 9], [3, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 5], [9, 2], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "first", "code": "\tint first()\n\t{\n\t\treturn fvm[0];", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "last", "code": "\tint last()\n\t{\n\t\treturn fvm[fvmcount - 1] - 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookup", "code": "\tint lookup(int index)\n\t{\n\t\treturn fvm[index];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "search", "code": "\tint search(int line)\n\t{\n\t\tif(line < fvm[0])\n\t\t\treturn -1;\n\t\tif(line >= fvm[fvmcount - 1])\n\t\t\treturn fvmcount - 1;\n\n\t\tif(lastfvmget != -1)\n\t\t{\n\t\t\tif(line >= fvm[lastfvmget])\n\t\t\t{\n\t\t\t\tif(lastfvmget == fvmcount - 1\n\t\t\t\t\t|| line < fvm[lastfvmget + 1])\n\t\t\t\t{\n\t\t\t\t\treturn lastfvmget;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint start = 0;\n\t\tint end = fvmcount - 1;\n\nloop:\t\tfor(;;)\n\t\t{\n\t\t\tswitch(end - start)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tlastfvmget = start;\n\t\t\t\tbreak loop;\n\t\t\tcase 1:\n\t\t\t\tint value = fvm[end];\n\t\t\t\tif(value <= line)\n\t\t\t\t\tlastfvmget = end;\n\t\t\t\telse\n\t\t\t\t\tlastfvmget = start;\n\t\t\t\tbreak loop;\n\t\t\tdefault:\n\t\t\t\tint pivot = (end + start) / 2;\n\t\t\t\tvalue = fvm[pivot];\n\t\t\t\tif(value == line)\n\t\t\t\t{\n\t\t\t\t\tlastfvmget = pivot;\n\t\t\t\t\tbreak loop;\n\t\t\t\t}\n\t\t\t\telse if(value < line)\n\t\t\t\t\tstart = pivot;\n\t\t\t\telse\n\t\t\t\t\tend = pivot - 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn lastfvmget;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "VAR_DECL", "BREAK_CONTINUE", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [6, 11], [7, 12], [7, 13], [2, 14], [3, 15], [4, 16], [5, 17], [9, 18], [10, 19], [12, 20], [14, 21], [15, 22], [17, 23], [19, 24], [14, 25], [14, 26], [14, 27], [14, 28], [14, 29], [14, 30], [14, 31], [14, 32], [14, 33], [17, 34], [11, 35], [13, 36], [26, 37], [26, 38], [14, 39], [29, 40], [14, 41], [34, 42], [35, 43], [37, 44], [26, 45], [27, 46], [29, 47], [29, 48], [34, 49], [42, 50], [42, 51], [37, 52], [37, 53], [26, 54], [46, 55], [46, 56], [51, 57], [52, 58], [57, 59], [58, 60], [50, 61], [61, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 6], [12, 7], [13, 7], [14, 2], [15, 3], [16, 4], [17, 5], [18, 9], [19, 10], [20, 12], [21, 14], [22, 15], [23, 17], [24, 19], [25, 14], [26, 14], [27, 14], [28, 14], [29, 14], [30, 14], [31, 14], [32, 14], [33, 14], [34, 17], [35, 11], [36, 13], [37, 26], [38, 26], [39, 14], [40, 29], [41, 14], [42, 34], [43, 35], [44, 37], [45, 26], [46, 27], [47, 29], [48, 29], [49, 34], [50, 42], [51, 42], [52, 37], [53, 37], [54, 26], [55, 46], [56, 46], [57, 51], [58, 52], [59, 57], [60, 58], [61, 50], [62, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "put", "code": "\tvoid put(int start, int end, int[] put)\n\t{\n\t\tif(Debug.FOLD_VIS_DEBUG)\n\t\t{\n\t\t\tStringBuilder buf = new StringBuilder(50);\n\t\t\tbuf.append(\"fvmput(\").append(start).append(',');\n\t\t\tbuf.append(end).append(',');\n\t\t\tbuf.append('{');\n\t\t\tif(put != null)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < put.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(i != 0)\n\t\t\t\t\t\tbuf.append(',');\n\t\t\t\t\tbuf.append(put[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuf.append(\"})\");\n\t\t\tLog.log(Log.DEBUG,this,buf.toString());\n\t\t}\n\t\tint putl = put == null ? 0 : put.length;\n\n\t\tint delta = putl - (end - start);\n\t\tif(fvmcount + delta > fvm.length)\n\t\t{\n\t\t\tint[] newfvm = new int[(fvm.length << 1) + 1];\n\t\t\tSystem.arraycopy(fvm,0,newfvm,0,fvmcount);\n\t\t\tfvm = newfvm;\n\t\t}\n\n\t\tif(delta != 0)\n\t\t{\n\t\t\tSystem.arraycopy(fvm,end,fvm,start + putl,\n\t\t\t\tfvmcount - end);\n\t\t}\n\n\t\tif(putl != 0)\n\t\t{\n\t\t\tSystem.arraycopy(put,0,fvm,start,put.length);\n\t\t}\n\n\t\tfvmcount += delta;\n\n\t\tdump();\n\n\t\tif(fvmcount == 0)\n\t\t\tthrow new InternalError();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [0, 13], [0, 14], [2, 15], [3, 16], [4, 17], [11, 18], [12, 19], [15, 20], [16, 21], [4, 22], [17, 23], [5, 24], [6, 25], [7, 26], [7, 27], [2, 28], [3, 29], [4, 30], [4, 31], [24, 32], [25, 33], [25, 34], [7, 35], [7, 36], [26, 37], [7, 38], [7, 39], [7, 40], [28, 41], [29, 42], [29, 43], [31, 44], [31, 45], [34, 46], [35, 47], [36, 48], [26, 49], [37, 50], [38, 51], [39, 52], [40, 53], [40, 54], [40, 55], [27, 56], [22, 57], [49, 58], [52, 59], [54, 60], [56, 61], [57, 62], [57, 63], [49, 64], [63, 65], [49, 66], [64, 67], [49, 68], [64, 69], [67, 70], [69, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 0], [14, 0], [15, 2], [16, 3], [17, 4], [18, 11], [19, 12], [20, 15], [21, 16], [22, 4], [23, 17], [24, 5], [25, 6], [26, 7], [27, 7], [28, 2], [29, 3], [30, 4], [31, 4], [32, 24], [33, 25], [34, 25], [35, 7], [36, 7], [37, 26], [38, 7], [39, 7], [40, 7], [41, 28], [42, 29], [43, 29], [44, 31], [45, 31], [46, 34], [47, 35], [48, 36], [49, 26], [50, 37], [51, 38], [52, 39], [53, 40], [54, 40], [55, 40], [56, 27], [57, 22], [58, 49], [59, 52], [60, 54], [61, 56], [62, 57], [63, 57], [64, 49], [65, 63], [66, 49], [67, 64], [68, 49], [69, 64], [70, 67], [71, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "put2", "code": "\tvoid put2(int starti, int endi, int start, int end)\n\t{\n\t\tif(Debug.FOLD_VIS_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"*fvmput2(\" + starti + \",\"\n\t\t\t\t+ endi + \",\" + start + \",\" + end + \")\");\n\t\t}\n\t\tif(starti != -1 && fvm[starti] == start)\n\t\t{\n\t\t\tif(endi <= fvmcount - 2 && fvm[endi + 1]\n\t\t\t\t== end + 1)\n\t\t\t{\n\t\t\t\tput(starti,endi + 2,null);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tput(starti,endi + 1,\n\t\t\t\t\tnew int[] { end + 1 });\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(endi != fvmcount - 1 && fvm[endi + 1]\n\t\t\t\t== end + 1)\n\t\t\t{\n\t\t\t\tput(starti + 1,endi + 2,\n\t\t\t\t\tnew int[] { start });\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tput(starti + 1,endi + 1,\n\t\t\t\t\tnew int[] { start,\n\t\t\t\t\tend + 1 });", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [7, 11], [8, 12], [9, 13], [11, 14], [2, 15], [12, 16], [12, 17], [13, 18], [13, 19], [15, 20], [8, 21], [8, 22], [16, 23], [17, 24], [9, 25], [9, 26], [18, 27], [19, 28], [20, 29], [20, 30], [21, 31], [21, 32], [22, 33], [22, 34], [23, 35], [24, 36], [25, 37], [26, 38], [26, 39], [27, 40], [28, 41], [30, 42], [31, 43], [32, 44], [33, 45], [34, 46], [16, 47], [37, 48], [39, 49], [18, 50], [42, 51], [42, 52], [21, 53], [47, 54], [25, 55], [50, 56], [52, 57], [53, 58], [55, 59], [57, 60], [57, 61], [61, 62], [62, 63], [62, 64], [64, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 7], [12, 8], [13, 9], [14, 11], [15, 2], [16, 12], [17, 12], [18, 13], [19, 13], [20, 15], [21, 8], [22, 8], [23, 16], [24, 17], [25, 9], [26, 9], [27, 18], [28, 19], [29, 20], [30, 20], [31, 21], [32, 21], [33, 22], [34, 22], [35, 23], [36, 24], [37, 25], [38, 26], [39, 26], [40, 27], [41, 28], [42, 30], [43, 31], [44, 32], [45, 33], [46, 34], [47, 16], [48, 37], [49, 39], [50, 18], [51, 42], [52, 42], [53, 21], [54, 47], [55, 25], [56, 50], [57, 52], [58, 53], [59, 55], [60, 57], [61, 57], [62, 61], [63, 62], [64, 62], [65, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "next", "code": "\tint next(int line)\n\t{\n\t\tint index = search(line);\n\t\t/* in collapsed range */\n\t\tif(index % 2 != 0)\n\t\t{\n\t\t\t/* beyond last visible line */\n\t\t\tif(fvmcount == index + 1)\n\t\t\t\treturn - 1;\n\t\t\t/* start of next expanded range */\n\t\t\telse\n\t\t\t\treturn fvm[index + 1];\n\t\t}\n\t\t/* last in expanded range */\n\t\telse if(line == fvm[index + 1] - 1)\n\t\t{\n\t\t\t/* equal to last visible line */\n\t\t\tif(fvmcount == index + 2)\n\t\t\t\treturn -1;\n\t\t\t/* start of next expanded range */\n\t\t\telse\n\t\t\t\treturn fvm[index + 2];\n\t\t}\n\t\t/* next in expanded range */\n\t\telse\n\t\t\treturn line + 1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [5, 9], [5, 10], [2, 11], [6, 12], [4, 13], [7, 14], [8, 15], [8, 16], [8, 17], [10, 18], [12, 19], [13, 20], [13, 21], [13, 22], [14, 23], [16, 24], [17, 25], [21, 26], [22, 27], [25, 28], [27, 29], [14, 30], [15, 31], [20, 32], [30, 33], [31, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 5], [10, 5], [11, 2], [12, 6], [13, 4], [14, 7], [15, 8], [16, 8], [17, 8], [18, 10], [19, 12], [20, 13], [21, 13], [22, 13], [23, 14], [24, 16], [25, 17], [26, 21], [27, 22], [28, 25], [29, 27], [30, 14], [31, 15], [32, 20], [33, 30], [34, 31], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "prev", "code": "\tint prev(int line)\n\t{\n\t\tint index = search(line);\n\t\t/* before first visible line */\n\t\tif(index == -1)\n\t\t\treturn -1;\n\t\t/* in collapsed range */\n\t\telse if(index % 2 == 1)\n\t\t{\n\t\t\t/* end of prev expanded range */\n\t\t\treturn fvm[index] - 1;\n\t\t}\n\t\t/* first in expanded range */\n\t\telse if(line == fvm[index])\n\t\t{\n\t\t\t/* equal to first visible line */\n\t\t\tif(index == 0)\n\t\t\t\treturn -1;\n\t\t\t/* end of prev expanded range */\n\t\t\telse\n\t\t\t\treturn fvm[index - 1] - 1;\n\t\t}\n\t\t/* prev in expanded range */\n\t\telse\n\t\t\treturn line - 1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [5, 9], [6, 10], [2, 11], [7, 12], [7, 13], [4, 14], [8, 15], [8, 16], [12, 17], [7, 18], [14, 19], [16, 20], [17, 21], [18, 22], [18, 23], [18, 24], [19, 25], [22, 26], [23, 27], [24, 28], [26, 29], [26, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 5], [10, 6], [11, 2], [12, 7], [13, 7], [14, 4], [15, 8], [16, 8], [17, 12], [18, 7], [19, 14], [20, 16], [21, 17], [22, 18], [23, 18], [24, 18], [25, 19], [26, 22], [27, 23], [28, 24], [29, 26], [30, 26], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "show", "code": "\tvoid show(int start, int end)\n\t{\n\t\tint starti = search(start);\n\t\tint endi = search(end);\n\n\t\tif(starti % 2 == 0)\n\t\t{\n\t\t\tif(endi % 2 == 0)\n\t\t\t\tput(starti + 1,endi + 1,null);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(endi != fvmcount - 1\n\t\t\t\t\t&& fvm[endi + 1] == end + 1)\n\t\t\t\t\tput(starti + 1,endi + 2,null);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tput(starti + 1,endi,null);\n\t\t\t\t\tfvm[starti + 1] = end + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(endi % 2 == 0)\n\t\t\t{\n\t\t\t\tif(starti != -1 && fvm[starti] == start)\n\t\t\t\t\tput(starti,endi + 1,null);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tput(starti + 1,endi,null);\n\t\t\t\t\tfvm[starti + 1] = start;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tput2(starti,endi,start,end);\n\t\t}\n\n\t\tlastfvmget = -1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [6, 8], [1, 9], [1, 10], [7, 11], [7, 12], [2, 13], [3, 14], [9, 15], [10, 16], [12, 17], [9, 18], [9, 19], [15, 20], [15, 21], [10, 22], [10, 23], [16, 24], [16, 25], [19, 26], [21, 27], [22, 28], [23, 29], [23, 30], [23, 31], [25, 32], [19, 33], [26, 34], [26, 35], [22, 36], [28, 37], [28, 38], [30, 39], [31, 40], [19, 41], [19, 42], [33, 43], [33, 44], [35, 45], [22, 46], [22, 47], [36, 48], [36, 49], [36, 50], [37, 51], [38, 52], [42, 53], [42, 54], [44, 55], [46, 56], [47, 57], [47, 58], [49, 59], [50, 60], [51, 61], [52, 62], [54, 63], [56, 64], [58, 65], [37, 66], [41, 67], [46, 68], [66, 69], [67, 70], [68, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 6], [9, 1], [10, 1], [11, 7], [12, 7], [13, 2], [14, 3], [15, 9], [16, 10], [17, 12], [18, 9], [19, 9], [20, 15], [21, 15], [22, 10], [23, 10], [24, 16], [25, 16], [26, 19], [27, 21], [28, 22], [29, 23], [30, 23], [31, 23], [32, 25], [33, 19], [34, 26], [35, 26], [36, 22], [37, 28], [38, 28], [39, 30], [40, 31], [41, 19], [42, 19], [43, 33], [44, 33], [45, 35], [46, 22], [47, 22], [48, 36], [49, 36], [50, 36], [51, 37], [52, 38], [53, 42], [54, 42], [55, 44], [56, 46], [57, 47], [58, 47], [59, 49], [60, 50], [61, 51], [62, 52], [63, 54], [64, 56], [65, 58], [66, 37], [67, 41], [68, 46], [69, 66], [70, 67], [71, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "hide", "code": "\tvoid hide(int start, int end)\n\t{\n\t\tint starti = search(start);\n\t\tint endi = search(end);\n\n\t\tif(starti % 2 == 0)\n\t\t{\n\t\t\tif(endi % 2 == 0)\n\t\t\t\tput2(starti,endi,start,end);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(start == fvm[0])\n\t\t\t\t\tput(starti,endi + 1,null);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tput(starti + 1,endi,null);\n\t\t\t\t\tfvm[starti + 1] = start;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(endi % 2 == 0)\n\t\t\t{\n\t\t\t\tif(end + 1 == fvm[fvmcount - 1])\n\t\t\t\t\tput(starti + 1,endi + 2,null);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tput(starti + 1,endi,null);\n\t\t\t\t\tfvm[starti + 1] = end + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tput(starti + 1,endi + 1,null);\n\t\t}\n\n\t\tlastfvmget = -1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [6, 8], [1, 9], [1, 10], [7, 11], [7, 12], [2, 13], [3, 14], [9, 15], [10, 16], [12, 17], [9, 18], [9, 19], [15, 20], [15, 21], [10, 22], [10, 23], [16, 24], [16, 25], [18, 26], [18, 27], [18, 28], [19, 29], [21, 30], [22, 31], [25, 32], [27, 33], [28, 34], [19, 35], [29, 36], [22, 37], [19, 38], [19, 39], [35, 40], [35, 41], [35, 42], [36, 43], [22, 44], [22, 45], [37, 46], [37, 47], [38, 48], [39, 49], [39, 50], [41, 51], [42, 52], [29, 53], [45, 54], [45, 55], [47, 56], [31, 57], [48, 58], [50, 59], [53, 60], [55, 61], [38, 62], [44, 63], [62, 64], [63, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 6], [9, 1], [10, 1], [11, 7], [12, 7], [13, 2], [14, 3], [15, 9], [16, 10], [17, 12], [18, 9], [19, 9], [20, 15], [21, 15], [22, 10], [23, 10], [24, 16], [25, 16], [26, 18], [27, 18], [28, 18], [29, 19], [30, 21], [31, 22], [32, 25], [33, 27], [34, 28], [35, 19], [36, 29], [37, 22], [38, 19], [39, 19], [40, 35], [41, 35], [42, 35], [43, 36], [44, 22], [45, 22], [46, 37], [47, 37], [48, 38], [49, 39], [50, 39], [51, 41], [52, 42], [53, 29], [54, 45], [55, 45], [56, 47], [57, 31], [58, 48], [59, 50], [60, 53], [61, 55], [62, 38], [63, 44], [64, 62], [65, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "count", "code": "\tint count()\n\t{\n\t\treturn fvmcount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dump", "code": "\tvoid dump()\n\t{\n\t\tif(Debug.FOLD_VIS_DEBUG)\n\t\t{\n\t\t\tStringBuilder buf = new StringBuilder(\"{\");\n\t\t\tfor(int i = 0; i < fvmcount; i++)\n\t\t\t{\n\t\t\t\tif(i != 0)\n\t\t\t\t\tbuf.append(',');\n\t\t\t\tbuf.append(fvm[i]);\n\t\t\t}\n\t\t\tbuf.append('}');\n\t\t\tLog.log(Log.DEBUG,this,\"fvm = \" + buf);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [5, 8], [2, 9], [3, 10], [7, 11], [2, 12], [9, 13], [2, 14], [10, 15], [9, 16], [13, 17], [16, 18], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 5], [9, 2], [10, 3], [11, 7], [12, 2], [13, 9], [14, 2], [15, 10], [16, 9], [17, 13], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "contentInserted", "code": "\tvoid contentInserted(int startLine, int numLines)\n\t{\n\t\tif(numLines != 0)\n\t\t{\n\t\t\tint index = search(startLine);\n\t\t\tint start = index + 1;\n\n\t\t\tfor(int i = start; i < fvmcount; i++)\n\t\t\t\tfvm[i] += numLines;\n\n\t\t\tlastfvmget = -1;\n\t\t\tdump();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [1, 9], [1, 10], [5, 11], [10, 12], [5, 13], [6, 14], [7, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 1], [10, 1], [11, 5], [12, 10], [13, 5], [14, 6], [15, 7], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "preContentRemoved", "code": "\tboolean preContentRemoved(int startLine, int numLines)\n\t{\n\t\tboolean returnValue = false;\n\n\t\tint endLine = startLine + numLines;\n\n\t\t/* update fold visibility map. */\n\t\tint starti = search(startLine);\n\t\tint endi = search(endLine);\n\n\t\t/* both have same visibility; just remove\n\t\t * anything in between. */\n\t\tif(Math.abs(starti % 2) == Math.abs(endi % 2))\n\t\t{\n\t\t\tif(endi - starti == fvmcount)\n\t\t\t{\n\t\t\t\t// we're removing from before\n\t\t\t\t// the first visible to after\n\t\t\t\t// the last visible\n\t\t\t\treturnValue = true;\n\t\t\t\tstarti = 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tput(starti + 1,endi + 1,null);\n\t\t\t\tstarti++;\n\t\t\t}\n\t\t}\n\t\t/* collapse 2 */\n\t\telse if(starti != -1 && fvm[starti] == startLine)\n\t\t{\n\t\t\tif(endi - starti == fvmcount - 1)\n\t\t\t{\n\t\t\t\t// we're removing from\n\t\t\t\t// the first visible to after\n\t\t\t\t// the last visible\n\t\t\t\treturnValue = true;\n\t\t\t\tstarti = 1;\n\t\t\t}\n\t\t\telse\n\t\t\t\tput(starti,endi + 1,null);\n\t\t}\n\t\t/* shift */\n\t\telse\n\t\t{\n\t\t\tput(starti + 1,endi,null);\n\t\t\tfvm[starti + 1] = startLine;\n\t\t\tstarti += 2;\n\t\t}\n\n\t\t/* update */\n\t\tfor(int i = starti; i < fvmcount; i++)\n\t\t\tfvm[i] -= numLines;\n\n\t\tlastfvmget = -1;\n\t\tdump();\n\n\t\treturn returnValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [3, 14], [11, 15], [2, 16], [13, 17], [3, 18], [14, 19], [14, 20], [4, 21], [5, 22], [6, 23], [7, 24], [13, 25], [17, 26], [17, 27], [18, 28], [19, 29], [20, 30], [13, 31], [13, 32], [13, 33], [25, 34], [27, 35], [28, 36], [29, 37], [30, 38], [31, 39], [33, 40], [33, 41], [25, 42], [34, 43], [34, 44], [18, 45], [18, 46], [18, 47], [41, 48], [42, 49], [42, 50], [25, 51], [25, 52], [43, 53], [45, 54], [45, 55], [45, 56], [46, 57], [47, 58], [32, 59], [50, 60], [51, 61], [52, 62], [55, 63], [56, 64], [59, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 3], [15, 11], [16, 2], [17, 13], [18, 3], [19, 14], [20, 14], [21, 4], [22, 5], [23, 6], [24, 7], [25, 13], [26, 17], [27, 17], [28, 18], [29, 19], [30, 20], [31, 13], [32, 13], [33, 13], [34, 25], [35, 27], [36, 28], [37, 29], [38, 30], [39, 31], [40, 33], [41, 33], [42, 25], [43, 34], [44, 34], [45, 18], [46, 18], [47, 18], [48, 41], [49, 42], [50, 42], [51, 25], [52, 25], [53, 43], [54, 45], [55, 45], [56, 45], [57, 46], [58, 47], [59, 32], [60, 50], [61, 51], [62, 52], [63, 55], [64, 56], [65, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "RangeMap", "code": "\tRangeMap()\n\t{\n\t\tfvm = new int[2];\n\t\tlastfvmget = -1;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RangeMap", "code": "\tRangeMap(RangeMap copy)\n\t{\n\t\tthis.fvm = copy.fvm.clone();\n\t\tthis.fvmcount = copy.fvmcount;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-2.5-5887", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/usermodel/HSSFRichTextString.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFRichTextString", "code": "public class HSSFRichTextString\n        implements Comparable\n{\n    /** Place holder for indicating that NO_FONT has been applied here */\n    public static final short NO_FONT = -1;\n\n    String string;\n    SortedMap formattingRuns = new TreeMap();\n\n    public HSSFRichTextString()\n    {\n        this(\"\");\n    }\n\n    public HSSFRichTextString( String string )\n    {\n        this.string = string;\n        this.formattingRuns.put(new Integer(0), new Short(NO_FONT));\n    }\n\n    /**\n     * Applies a font to the specified characters of a string.\n     *\n     * @param startIndex    The start index to apply the font to (inclusive)\n     * @param endIndex      The end index to apply the font to (exclusive)\n     * @param fontIndex     The font to use.\n     */\n    public void applyFont(int startIndex, int endIndex, short fontIndex)\n    {\n        if (startIndex > endIndex)\n            throw new IllegalArgumentException(\"Start index must be less than end index.\");\n        if (startIndex < 0 || endIndex > length())\n            throw new IllegalArgumentException(\"Start and end index not in range.\");\n        if (startIndex == endIndex)\n            return;\n\n        Integer from = new Integer(startIndex);\n        Integer to = new Integer(endIndex);\n        short fontAtIndex = NO_FONT;\n        if (endIndex != length())\n            fontAtIndex = getFontAtIndex(endIndex);\n        formattingRuns.subMap(from, to).clear();\n        formattingRuns.put(from, new Short(fontIndex));\n        if (endIndex != length())\n        {\n            if (fontIndex != fontAtIndex)\n                formattingRuns.put(to, new Short(fontAtIndex));\n        }\n    }\n\n    /**\n     * Applies a font to the specified characters of a string.\n     *\n     * @param startIndex    The start index to apply the font to (inclusive)\n     * @param endIndex      The end index to apply to font to (exclusive)\n     * @param font          The index of the font to use.\n     */\n    public void applyFont(int startIndex, int endIndex, HSSFFont font)\n    {\n        applyFont(startIndex, endIndex, font.getIndex());\n    }\n\n    /**\n     * Sets the font of the entire string.\n     * @param font          The font to use.\n     */\n    public void applyFont(HSSFFont font)\n    {\n        applyFont(0, string.length(), font);\n    }\n\n    /**\n     * Returns the plain string representation.\n     */\n    public String getString()\n    {\n        return string;\n    }\n\n    /**\n     * @return  the number of characters in the font.\n     */\n    public int length()\n    {\n        return string.length();\n    }\n\n    /**\n     * Returns the font in use at a particular index.\n     *\n     * @param index         The index.\n     * @return              The font that's currently being applied at that\n     *                      index or null if no font is being applied or the\n     *                      index is out of range.\n     */\n    public short getFontAtIndex( int index )\n    {\n        if (index < 0 || index >= string.length())\n            throw new ArrayIndexOutOfBoundsException(\"Font index \" + index + \" out of bounds of string\");\n        Integer key = new Integer(index + 1);\n        SortedMap head = formattingRuns.headMap(key);\n        if (head.isEmpty())\n            throw new IllegalStateException(\"Should not reach here.  No font found.\");\n        else\n            return ((Short) head.get(head.lastKey())).shortValue();\n    }\n\n    /**\n     * @return  The number of formatting runs used. There will always be at\n     *          least one of font NO_FONT.\n     *\n     * @see #NO_FONT\n     */\n    public int numFormattingRuns()\n    {\n        return formattingRuns.size();\n    }\n\n    /**\n     * The index within the string to which the specified formatting run applies.\n     * @param index     the index of the formatting run\n     * @return  the index within the string.\n     */\n    public int getIndexOfFormattingRun(int index)\n    {\n        Map.Entry[] runs = (Map.Entry[]) formattingRuns.entrySet().toArray(new Map.Entry[formattingRuns.size()] );\n        return ((Integer)runs[index].getKey()).intValue();\n    }\n\n    /**\n     * Gets the font used in a particular formatting run.\n     *\n     * @param index     the index of the formatting run\n     * @return  the font number used.\n     */\n    public short getFontOfFormattingRun(int index)\n    {\n        Map.Entry[] runs = (Map.Entry[]) formattingRuns.entrySet().toArray(new Map.Entry[formattingRuns.size()] );\n        return ((Short)(runs[index].getValue())).shortValue();\n    }\n\n    /**\n     * Compares one rich text string to another.\n     */\n    public int compareTo( Object o )\n    {\n    }\n\n    /**\n     * @return  the plain text representation of this string.\n     */\n    public String toString()\n    {\n        return string;\n    }\n\n    /**\n     * Applies the specified font to the entire string.\n     *\n     * @param fontIndex  the font to apply.\n     */\n    public void applyFont( short fontIndex )\n    {\n        applyFont(0, string.length(), fontIndex);", "functions": [{"function_name": "applyFont", "code": "    public void applyFont(int startIndex, int endIndex, short fontIndex)\n    {\n        if (startIndex > endIndex)\n            throw new IllegalArgumentException(\"Start index must be less than end index.\");\n        if (startIndex < 0 || endIndex > length())\n            throw new IllegalArgumentException(\"Start and end index not in range.\");\n        if (startIndex == endIndex)\n            return;\n\n        Integer from = new Integer(startIndex);\n        Integer to = new Integer(endIndex);\n        short fontAtIndex = NO_FONT;\n        if (endIndex != length())\n            fontAtIndex = getFontAtIndex(endIndex);\n        formattingRuns.subMap(from, to).clear();\n        formattingRuns.put(from, new Short(fontIndex));\n        if (endIndex != length())\n        {\n            if (fontIndex != fontAtIndex)\n                formattingRuns.put(to, new Short(fontAtIndex));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [0, 14], [2, 15], [6, 16], [6, 17], [7, 18], [7, 19], [8, 20], [8, 21], [1, 22], [12, 23], [13, 24], [14, 25], [2, 26], [15, 27], [4, 28], [5, 29], [18, 30], [19, 31], [19, 32], [20, 33], [22, 34], [26, 35], [30, 36], [31, 37], [32, 38], [33, 39], [22, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 0], [15, 2], [16, 6], [17, 6], [18, 7], [19, 7], [20, 8], [21, 8], [22, 1], [23, 12], [24, 13], [25, 14], [26, 2], [27, 15], [28, 4], [29, 5], [30, 18], [31, 19], [32, 19], [33, 20], [34, 22], [35, 26], [36, 30], [37, 31], [38, 32], [39, 33], [40, 22], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "applyFont", "code": "    public void applyFont(int startIndex, int endIndex, HSSFFont font)\n    {\n        applyFont(startIndex, endIndex, font.getIndex());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "applyFont", "code": "    public void applyFont(HSSFFont font)\n    {\n        applyFont(0, string.length(), font);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getString", "code": "    public String getString()\n    {\n        return string;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "length", "code": "    public int length()\n    {\n        return string.length();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFontAtIndex", "code": "    public short getFontAtIndex( int index )\n    {\n        if (index < 0 || index >= string.length())\n            throw new ArrayIndexOutOfBoundsException(\"Font index \" + index + \" out of bounds of string\");\n        Integer key = new Integer(index + 1);\n        SortedMap head = formattingRuns.headMap(key);\n        if (head.isEmpty())\n            throw new IllegalStateException(\"Should not reach here.  No font found.\");\n        else\n            return ((Short) head.get(head.lastKey())).shortValue();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "RETURN", "THROW_RAISE", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [4, 9], [4, 10], [7, 11], [2, 12], [3, 13], [9, 14], [10, 15], [10, 16], [6, 17], [11, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [19, 24], [20, 25], [20, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 4], [10, 4], [11, 7], [12, 2], [13, 3], [14, 9], [15, 10], [16, 10], [17, 6], [18, 11], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 19], [25, 20], [26, 20], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "numFormattingRuns", "code": "    public int numFormattingRuns()\n    {\n        return formattingRuns.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIndexOfFormattingRun", "code": "    public int getIndexOfFormattingRun(int index)\n    {\n        Map.Entry[] runs = (Map.Entry[]) formattingRuns.entrySet().toArray(new Map.Entry[formattingRuns.size()] );\n        return ((Integer)runs[index].getKey()).intValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFontOfFormattingRun", "code": "    public short getFontOfFormattingRun(int index)\n    {\n        Map.Entry[] runs = (Map.Entry[]) formattingRuns.entrySet().toArray(new Map.Entry[formattingRuns.size()] );\n        return ((Short)(runs[index].getValue())).shortValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "compareTo", "code": "    public int compareTo( Object o )", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        return string;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "applyFont", "code": "    public void applyFont( short fontIndex )\n    {\n        applyFont(0, string.length(), fontIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "HSSFRichTextString", "code": "    public HSSFRichTextString()\n    {\n        this(\"\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HSSFRichTextString", "code": "    public HSSFRichTextString( String string )\n    {\n        this.string = string;\n        this.formattingRuns.put(new Integer(0), new Short(NO_FONT));", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "xalan-2.5-7235", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/Trie.java", "language": "java", "name": "org.apache.xml.utils.Trie", "code": "public class Trie\n{\n\n  /** Size of the m_nextChar array.  */\n  public static final int ALPHA_SIZE = 128;\n\n  /** The root node of the tree.    */\n  Node m_Root;\n\n  /**\n   * Construct the trie.\n   */\n  public Trie()\n  {\n    m_Root = new Node();\n  }\n\n  /**\n   * Put an object into the trie for lookup.\n   *\n   * @param key must be a 7-bit ASCII string\n   * @param value any java object.\n   *\n   * @return The old object that matched key, or null.\n   */\n  public Object put(String key, Object value)\n  {\n\n    final int len = key.length();\n    Node node = m_Root;\n\n    for (int i = 0; i < len; i++)\n    {\n      Node nextNode = node.m_nextChar[Character.toUpperCase(key.charAt(i))];\n\n      if (nextNode != null)\n      {\n        node = nextNode;\n      }\n      else\n      {\n        for (; i < len; i++)\n        {\n          Node newNode = new Node();\n\n          node.m_nextChar[Character.toUpperCase(key.charAt(i))] = newNode;\n          node = newNode;\n        }\n\n        break;\n      }\n    }\n\n    Object ret = node.m_Value;\n\n    node.m_Value = value;\n\n    return ret;\n  }\n\n  /**\n   * Get an object that matches the key.\n   *\n   * @param key must be a 7-bit ASCII string\n   *\n   * @return The object that matches the key, or null.\n   */\n  public Object get(String key)\n  {\n\n    final int len = key.length();\n    Node node = m_Root;\n\n    for (int i = 0; i < len; i++)\n    {\n      try\n      {\n        node = node.m_nextChar[Character.toUpperCase(key.charAt(i))];\n      }\n      catch (ArrayIndexOutOfBoundsException e)\n      {\n\n        node = null;\n      }\n\n      if (node == null)\n        return null;\n    }\n\n    return node.m_Value;\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"internal\"/>\n   * The node representation for the trie.\n   */\n  class Node\n  {\n\n    /**\n     * Constructor, creates a Node[ALPHA_SIZE].\n     */\n    Node()\n    {\n      m_nextChar = new Node[ALPHA_SIZE];\n      m_Value = null;\n    }\n\n    /** The next nodes.   */\n    Node m_nextChar[];\n\n    /** The value.   */\n    Object m_Value;", "functions": [{"function_name": "put", "code": "  public Object put(String key, Object value)\n  {\n\n    final int len = key.length();\n    Node node = m_Root;\n\n    for (int i = 0; i < len; i++)\n    {\n      Node nextNode = node.m_nextChar[Character.toUpperCase(key.charAt(i))];\n\n      if (nextNode != null)\n      {\n        node = nextNode;\n      }\n      else\n      {\n        for (; i < len; i++)\n        {\n          Node newNode = new Node();\n\n          node.m_nextChar[Character.toUpperCase(key.charAt(i))] = newNode;\n          node = newNode;\n        }\n\n        break;\n      }\n    }\n\n    Object ret = node.m_Value;\n\n    node.m_Value = value;\n\n    return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [3, 10], [3, 11], [5, 12], [10, 13], [3, 14], [10, 15], [10, 16], [13, 17], [16, 18], [10, 19], [16, 20], [11, 21], [16, 22], [16, 23], [21, 24], [20, 25], [23, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 3], [11, 3], [12, 5], [13, 10], [14, 3], [15, 10], [16, 10], [17, 13], [18, 16], [19, 10], [20, 16], [21, 11], [22, 16], [23, 16], [24, 21], [25, 20], [26, 23], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "get", "code": "  public Object get(String key)\n  {\n\n    final int len = key.length();\n    Node node = m_Root;\n\n    for (int i = 0; i < len; i++)\n    {\n      try\n      {\n        node = node.m_nextChar[Character.toUpperCase(key.charAt(i))];\n      }\n      catch (ArrayIndexOutOfBoundsException e)\n      {\n\n        node = null;\n      }\n\n      if (node == null)\n        return null;\n    }\n\n    return node.m_Value;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "TRY", "CALL", "RETURN", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [4, 9], [7, 10], [7, 11], [8, 12], [2, 13], [10, 14], [11, 15], [8, 16], [12, 17], [17, 18], [16, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 4], [10, 7], [11, 7], [12, 8], [13, 2], [14, 10], [15, 11], [16, 8], [17, 12], [18, 17], [19, 16], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "Trie", "code": "  public Trie()\n  {\n    m_Root = new Node();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-2666", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/converter/jaxb/JaxbDataFormat.java", "language": "java", "name": "org.apache.camel.converter.jaxb.JaxbDataFormat", "code": "public class JaxbDataFormat implements DataFormat {\n    private JAXBContext context;\n    private String contextPath;\n    private boolean prettyPrint = true;\n    private boolean ignoreJAXBElement = true;\n    private Marshaller marshaller;\n    private Unmarshaller unmarshaller;\n\n    public JaxbDataFormat() {\n    }\n\n    public JaxbDataFormat(JAXBContext context) {\n        this.context = context;\n    }\n\n    public JaxbDataFormat(String contextPath) {\n        this.contextPath = contextPath;\n    }\n\n    public void marshal(Exchange exchange, Object graph, OutputStream stream) throws IOException {\n        try {\n            getMarshaller().marshal(graph, stream);\n        } catch (JAXBException e) {\n            throw IOHelper.createIOException(e);\n        }\n    }\n\n    public Object unmarshal(Exchange exchange, InputStream stream) throws IOException, ClassNotFoundException {\n        try {\n            Object answer = getUnmarshaller().unmarshal(stream);\n            if (answer instanceof JAXBElement && isIgnoreJAXBElement()) {\n                answer = ((JAXBElement)answer).getValue();\n            }\n            return answer;\n        } catch (JAXBException e) {\n            throw IOHelper.createIOException(e);\n        }\n    }    \n\n    public boolean isIgnoreJAXBElement() {        \n        return ignoreJAXBElement;\n    }\n    \n    public void setIgnoreJAXBElement(boolean flag) {\n        ignoreJAXBElement = flag;\n    }\n    \n    public JAXBContext getContext() throws JAXBException {\n        if (context == null) {\n            context = createContext();\n        }\n        return context;\n    }\n\n    public void setContext(JAXBContext context) {\n        this.context = context;\n    }\n\n    public String getContextPath() {\n        return contextPath;\n    }\n\n    public void setContextPath(String contextPath) {\n        this.contextPath = contextPath;\n    }\n\n    public Marshaller getMarshaller() throws JAXBException {\n        if (marshaller == null) {\n            marshaller = getContext().createMarshaller();\n        }\n        return marshaller;\n    }\n\n    public void setMarshaller(Marshaller marshaller) {\n        this.marshaller = marshaller;\n    }\n\n    public boolean isPrettyPrint() {\n        return prettyPrint;\n    }\n\n    public void setPrettyPrint(boolean prettyPrint) {\n        this.prettyPrint = prettyPrint;\n    }\n\n    public Unmarshaller getUnmarshaller() throws JAXBException {\n        if (unmarshaller == null) {\n            unmarshaller = getContext().createUnmarshaller();\n        }\n        return unmarshaller;\n    }\n\n    public void setUnmarshaller(Unmarshaller unmarshaller) {\n        this.unmarshaller = unmarshaller;\n    }\n\n    protected JAXBContext createContext() throws JAXBException {\n        if (contextPath != null) {\n            return JAXBContext.newInstance(contextPath);\n        } else {\n            return JAXBContext.newInstance();", "functions": [{"function_name": "marshal", "code": "    public void marshal(Exchange exchange, Object graph, OutputStream stream) throws IOException {\n        try {\n            getMarshaller().marshal(graph, stream);\n        } catch (JAXBException e) {\n            throw IOHelper.createIOException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "unmarshal", "code": "    public Object unmarshal(Exchange exchange, InputStream stream) throws IOException, ClassNotFoundException {\n        try {\n            Object answer = getUnmarshaller().unmarshal(stream);\n            if (answer instanceof JAXBElement && isIgnoreJAXBElement()) {\n                answer = ((JAXBElement)answer).getValue();\n            }\n            return answer;\n        } catch (JAXBException e) {\n            throw IOHelper.createIOException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [6, 9], [8, 10], [9, 11], [9, 12], [7, 13], [6, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 6], [10, 8], [11, 9], [12, 9], [13, 7], [14, 6], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "isIgnoreJAXBElement", "code": "    public boolean isIgnoreJAXBElement() {        \n        return ignoreJAXBElement;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreJAXBElement", "code": "    public void setIgnoreJAXBElement(boolean flag) {\n        ignoreJAXBElement = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getContext", "code": "    public JAXBContext getContext() throws JAXBException {\n        if (context == null) {\n            context = createContext();\n        }\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setContext", "code": "    public void setContext(JAXBContext context) {\n        this.context = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getContextPath", "code": "    public String getContextPath() {\n        return contextPath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setContextPath", "code": "    public void setContextPath(String contextPath) {\n        this.contextPath = contextPath;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMarshaller", "code": "    public Marshaller getMarshaller() throws JAXBException {\n        if (marshaller == null) {\n            marshaller = getContext().createMarshaller();\n        }\n        return marshaller;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setMarshaller", "code": "    public void setMarshaller(Marshaller marshaller) {\n        this.marshaller = marshaller;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isPrettyPrint", "code": "    public boolean isPrettyPrint() {\n        return prettyPrint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPrettyPrint", "code": "    public void setPrettyPrint(boolean prettyPrint) {\n        this.prettyPrint = prettyPrint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUnmarshaller", "code": "    public Unmarshaller getUnmarshaller() throws JAXBException {\n        if (unmarshaller == null) {\n            unmarshaller = getContext().createUnmarshaller();\n        }\n        return unmarshaller;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setUnmarshaller", "code": "    public void setUnmarshaller(Unmarshaller unmarshaller) {\n        this.unmarshaller = unmarshaller;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createContext", "code": "    protected JAXBContext createContext() throws JAXBException {\n        if (contextPath != null) {\n            return JAXBContext.newInstance(contextPath);\n        } else {\n            return JAXBContext.newInstance();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "JaxbDataFormat", "code": "    public JaxbDataFormat() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "JaxbDataFormat", "code": "    public JaxbDataFormat(JAXBContext context) {\n        this.context = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JaxbDataFormat", "code": "    public JaxbDataFormat(String contextPath) {\n        this.contextPath = contextPath;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.2-1635", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/RuntimeCamelException.java", "language": "java", "name": "org.apache.camel.RuntimeCamelException", "code": "public class RuntimeCamelException extends RuntimeException {\n    private static final long serialVersionUID = 8046489554418284257L;\n\n    public RuntimeCamelException() {\n    }\n\n    public RuntimeCamelException(String message) {\n        super(message);\n    }\n\n    public RuntimeCamelException(String message, Throwable cause) {\n        super(message, cause);\n    }\n\n    public RuntimeCamelException(Throwable cause) {\n        super(cause);", "functions": [{"function_name": "RuntimeCamelException", "code": "    public RuntimeCamelException() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "RuntimeCamelException", "code": "    public RuntimeCamelException(String message) {\n        super(message);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RuntimeCamelException", "code": "    public RuntimeCamelException(String message, Throwable cause) {\n        super(message, cause);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RuntimeCamelException", "code": "    public RuntimeCamelException(Throwable cause) {\n        super(cause);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "poi-1.5-5292", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/util/LittleEndian.java", "language": "java", "name": "org.apache.poi.util.LittleEndian", "code": "public class LittleEndian\n        implements LittleEndianConsts\n{\n\n    private LittleEndian()\n    {\n    }\n\n    /**\n     * get a short value from a byte array\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     *\n     * @return the short (16-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static short getShort(final byte[] data, final int offset)\n    {\n        return (short) getNumber(data, offset, SHORT_SIZE);\n    }\n\n    /**\n     * get a short array from a byte array.\n     */\n    public static short[] getSimpleShortArray(final byte[] data, final int offset, final int size)\n    {\n        short[] results = new short[size];\n        for (int i = 0; i < size; i++)\n        {\n            results[i] = getShort(data, offset + 2 + (i * 2));\n        }\n        return results;\n    }\n    /**\n     * get a short array from a byte array.  The short array is assumed\n     * to start with a word describing the length of the array.\n     */\n    public static short[] getShortArray(final byte[] data, final int offset)\n    {\n        int size = (short) getNumber(data, offset, SHORT_SIZE);\n        short[] results = getSimpleShortArray(data, offset, size);\n        return results;\n    }\n\n    /**\n     * get a short value from the beginning of a byte array\n     *\n     * @param data the byte array\n     *\n     * @return the short (16-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static short getShort(final byte[] data)\n    {\n        return getShort(data, 0);\n    }\n\n    /**\n     * get an int value from a byte array\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     *\n     * @return the int (32-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static int getInt(final byte[] data, final int offset)\n    {\n        return (int) getNumber(data, offset, INT_SIZE);\n    }\n\n    /**\n     * get an int value from the beginning of a byte array\n     *\n     * @param data the byte array\n     *\n     * @return the int (32-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static int getInt(final byte[] data)\n    {\n        return getInt(data, 0);\n    }\n\n    /**\n     * get a long value from a byte array\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     *\n     * @return the long (64-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static long getLong(final byte[] data, final int offset)\n    {\n        return getNumber(data, offset, LONG_SIZE);\n    }\n\n    /**\n     * get a long value from the beginning of a byte array\n     *\n     * @param data the byte array\n     *\n     * @return the long (64-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static long getLong(final byte[] data)\n    {\n        return getLong(data, 0);\n    }\n\n    /**\n     * get a double value from a byte array, reads it in little endian format\n     * then converts the resulting revolting IEEE 754 (curse them) floating\n     * point number to a happy java double\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     *\n     * @return the double (64-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static double getDouble(final byte[] data, final int offset)\n    {\n        return Double.longBitsToDouble(getNumber(data, offset, DOUBLE_SIZE));\n    }\n\n    /**\n     * get a double value from the beginning of a byte array\n     *\n     * @param data the byte array\n     *\n     * @return the double (64-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static double getDouble(final byte[] data)\n    {\n        return getDouble(data, 0);\n    }\n\n    /**\n     * put a short value into a byte array\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     * @param value the short (16-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static void putShort(final byte[] data, final int offset,\n                                final short value)\n    {\n        putNumber(data, offset, value, SHORT_SIZE);\n    }\n\n    /**\n     * put a array of shorts into a byte array\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     * @param value the short array\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n    public static void putShortArray(final byte[] data, final int offset, final short[] value)\n    {\n        putNumber(data, offset, value.length, SHORT_SIZE);\n        for (int i = 0; i < value.length; i++)\n        {\n            putNumber(data, offset + 2 + (i * 2), value[i], SHORT_SIZE);\n        }\n    }\n\n    /**\n     * put a short value into beginning of a byte array\n     *\n     * @param data the byte array\n     * @param value the short (16-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static void putShort(final byte[] data, final short value)\n    {\n        putShort(data, 0, value);\n    }\n\n    /**\n     * put an int value into a byte array\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     * @param value the int (32-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static void putInt(final byte[] data, final int offset,\n                              final int value)\n    {\n        putNumber(data, offset, value, INT_SIZE);\n    }\n\n    /**\n     * put an int value into beginning of a byte array\n     *\n     * @param data the byte array\n     * @param value the int (32-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static void putInt(final byte[] data, final int value)\n    {\n        putInt(data, 0, value);\n    }\n\n    /**\n     * put a long value into a byte array\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     * @param value the long (64-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static void putLong(final byte[] data, final int offset,\n                               final long value)\n    {\n        putNumber(data, offset, value, LONG_SIZE);\n    }\n\n    /**\n     * put a long value into beginning of a byte array\n     *\n     * @param data the byte array\n     * @param value the long (64-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static void putLong(final byte[] data, final long value)\n    {\n        putLong(data, 0, value);\n    }\n\n    /**\n     * put a double value into a byte array\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     * @param value the double (64-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static void putDouble(final byte[] data, final int offset,\n                                 final double value)\n    {\n        putNumber(data, offset, Double.doubleToLongBits(value), DOUBLE_SIZE);\n    }\n\n    /**\n     * put a double value into beginning of a byte array\n     *\n     * @param data the byte array\n     * @param value the double (64-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n\n    public static void putDouble(final byte[] data, final double value)\n    {\n        putDouble(data, 0, value);\n    }\n\n    /**\n     * Exception to handle buffer underruns\n     *\n     * @author Marc Johnson (mjohnson at apache dot org)\n     */\n\n    public static class BufferUnderrunException\n            extends IOException\n    {\n\n        /**\n         * simple constructor\n         */\n\n        BufferUnderrunException()\n        {\n            super(\"buffer underrun\");\n        }\n    }\n\n    /**\n     * get a short value from an InputStream\n     *\n     * @param stream the InputStream from which the short is to be\n     *               read\n     *\n     * @return the short (16-bit) value\n     *\n     * @exception IOException will be propagated back to the caller\n     * @exception BufferUnderrunException if the stream cannot provide\n     *            enough bytes\n     */\n\n    public static short readShort(final InputStream stream)\n            throws IOException, BufferUnderrunException\n    {\n        return getShort(readFromStream(stream, SHORT_SIZE));\n    }\n\n    /**\n     * get an int value from an InputStream\n     *\n     * @param stream the InputStream from which the int is to be read\n     *\n     * @return the int (32-bit) value\n     *\n     * @exception IOException will be propagated back to the caller\n     * @exception BufferUnderrunException if the stream cannot provide\n     *            enough bytes\n     */\n\n    public static int readInt(final InputStream stream)\n            throws IOException, BufferUnderrunException\n    {\n        return getInt(readFromStream(stream, INT_SIZE));\n    }\n\n    /**\n     * get a long value from an InputStream\n     *\n     * @param stream the InputStream from which the long is to be read\n     *\n     * @return the long (64-bit) value\n     *\n     * @exception IOException will be propagated back to the caller\n     * @exception BufferUnderrunException if the stream cannot provide\n     *            enough bytes\n     */\n\n    public static long readLong(final InputStream stream)\n            throws IOException, BufferUnderrunException\n    {\n        return getLong(readFromStream(stream, LONG_SIZE));\n    }\n\n    private static final byte[] _short_buffer = new byte[SHORT_SIZE];\n    private static final byte[] _int_buffer = new byte[INT_SIZE];\n    private static final byte[] _long_buffer = new byte[LONG_SIZE];\n\n    /**\n     * Read the appropriate number of bytes from the stream and return\n     * them to the caller.\n     * <p>\n     * It should be noted that, in an attempt to improve system\n     * performance and to prevent a transient explosion of discarded\n     * byte arrays to be garbage collected, static byte arrays are\n     * employed for the standard cases of reading a short, an int, or\n     * a long.\n     * <p>\n     * <b>THIS INTRODUCES A RISK FOR THREADED OPERATIONS!</b>\n     * <p>\n     * However, for the purposes of the POI project, this risk is\n     * deemed negligible. It is, however, so noted.\n     *\n     * @param stream the InputStream we're reading from\n     * @param size the number of bytes to read; in 99.99% of cases,\n     *             this will be SHORT_SIZE, INT_SIZE, or LONG_SIZE --\n     *             but it doesn't have to be.\n     *\n     * @return the byte array containing the required number of\n     *         bytes. The array will contain all zero's on end of\n     *         stream\n     *\n     * @exception IOException will be propagated back to the caller\n     * @exception BufferUnderrunException if the stream cannot provide\n     *            enough bytes\n     */\n\n    public static byte[] readFromStream(final InputStream stream,\n                                        final int size)\n            throws IOException, BufferUnderrunException\n    {\n        byte[] buffer = null;\n\n        switch (size)\n        {\n\n            case SHORT_SIZE:\n                buffer = _short_buffer;\n                break;\n\n            case INT_SIZE:\n                buffer = _int_buffer;\n                break;\n\n            case LONG_SIZE:\n                buffer = _long_buffer;\n                break;\n\n            default :\n                buffer = new byte[size];\n                break;\n        }\n        int count = stream.read(buffer);\n\n        if (count == -1)\n        {\n\n            Arrays.fill(buffer, (byte) 0);\n        } else if (count != size)\n        {\n            throw new BufferUnderrunException();\n        }\n        return buffer;\n    }\n\n    private static long getNumber(final byte[] data, final int offset,\n                                  final int size)\n    {\n        long result = 0;\n\n        for (int j = offset + size - 1; j >= offset; j--)\n        {\n            result <<= 8;\n            result |= 0xff & data[j];\n        }\n        return result;\n    }\n\n    private static void putNumber(final byte[] data, final int offset,\n                                  final long value, final int size)\n    {\n        int limit = size + offset;\n        long v = value;\n\n        for (int j = offset; j < limit; j++)\n        {\n            data[j] = (byte) (v & 0xFF);\n            v >>= 8;\n        }\n    }\n\n    /**\n     * Convert an 'unsigned' byte to an integer.  ie, don't carry across the sign.\n     */\n    public static int ubyteToInt(byte b)\n    {\n        return ((b & 0x80) == 0 ? (int) b : (int) (b & (byte) 0x7f) + 0x80);\n    }\n\n    /**\n     * get the unsigned value of a byte.\n     *\n     * @param data the byte array.\n     * @param offset a starting offset into the byte array.\n     *\n     * @return the unsigned value of the byte as a 32 bit integer\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n    public static int getUnsignedByte(final byte[] data, final int offset)\n    {\n        return (int) getNumber(data, offset, BYTE_SIZE);\n    }\n\n    /**\n     * get the unsigned value of a byte.\n     *\n     * @param data the byte array\n     *\n     * @return the unsigned value of the byte as a 32 bit integer\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n    public static int getUnsignedByte(final byte[] data)\n    {\n        return getUnsignedByte(data, 0);\n    }\n    /**\n     * Copy a portion of a byte array\n     *\n     * @param data the original byte array\n     * @param offset Where to start copying from.\n     * @param size Number of bytes to copy.\n     *\n     * @throws IndexOutOfBoundsException - if copying would cause access of data\n     *                                     outside array bounds.\n     */\n    public static byte[] getByteArray(final byte[] data, int offset, int size)\n    {\n        byte[] copy = new byte[size];\n        System.arraycopy(data, offset, copy, 0, size);\n\n        return copy;", "functions": [{"function_name": "getShort", "code": "    public static short getShort(final byte[] data, final int offset)\n    {\n        return (short) getNumber(data, offset, SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSimpleShortArray", "code": "    public static short[] getSimpleShortArray(final byte[] data, final int offset, final int size)\n    {\n        short[] results = new short[size];\n        for (int i = 0; i < size; i++)\n        {\n            results[i] = getShort(data, offset + 2 + (i * 2));\n        }\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [8, 10], [10, 11], [11, 12], [11, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 8], [11, 10], [12, 11], [13, 11], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getShortArray", "code": "    public static short[] getShortArray(final byte[] data, final int offset)\n    {\n        int size = (short) getNumber(data, offset, SHORT_SIZE);\n        short[] results = getSimpleShortArray(data, offset, size);\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getShort", "code": "    public static short getShort(final byte[] data)\n    {\n        return getShort(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getInt", "code": "    public static int getInt(final byte[] data, final int offset)\n    {\n        return (int) getNumber(data, offset, INT_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getInt", "code": "    public static int getInt(final byte[] data)\n    {\n        return getInt(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLong", "code": "    public static long getLong(final byte[] data, final int offset)\n    {\n        return getNumber(data, offset, LONG_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLong", "code": "    public static long getLong(final byte[] data)\n    {\n        return getLong(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDouble", "code": "    public static double getDouble(final byte[] data, final int offset)\n    {\n        return Double.longBitsToDouble(getNumber(data, offset, DOUBLE_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDouble", "code": "    public static double getDouble(final byte[] data)\n    {\n        return getDouble(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putShort", "code": "    public static void putShort(final byte[] data, final int offset,\n                                final short value)\n    {\n        putNumber(data, offset, value, SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putShortArray", "code": "    public static void putShortArray(final byte[] data, final int offset, final short[] value)\n    {\n        putNumber(data, offset, value.length, SHORT_SIZE);\n        for (int i = 0; i < value.length; i++)\n        {\n            putNumber(data, offset + 2 + (i * 2), value[i], SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [1, 8], [7, 9], [9, 10], [9, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 1], [9, 7], [10, 9], [11, 9], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "putShort", "code": "    public static void putShort(final byte[] data, final short value)\n    {\n        putShort(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putInt", "code": "    public static void putInt(final byte[] data, final int offset,\n                              final int value)\n    {\n        putNumber(data, offset, value, INT_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putInt", "code": "    public static void putInt(final byte[] data, final int value)\n    {\n        putInt(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putLong", "code": "    public static void putLong(final byte[] data, final int offset,\n                               final long value)\n    {\n        putNumber(data, offset, value, LONG_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putLong", "code": "    public static void putLong(final byte[] data, final long value)\n    {\n        putLong(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putDouble", "code": "    public static void putDouble(final byte[] data, final int offset,\n                                 final double value)\n    {\n        putNumber(data, offset, Double.doubleToLongBits(value), DOUBLE_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "putDouble", "code": "    public static void putDouble(final byte[] data, final double value)\n    {\n        putDouble(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readShort", "code": "    public static short readShort(final InputStream stream)\n            throws IOException, BufferUnderrunException\n    {\n        return getShort(readFromStream(stream, SHORT_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readInt", "code": "    public static int readInt(final InputStream stream)\n            throws IOException, BufferUnderrunException\n    {\n        return getInt(readFromStream(stream, INT_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readLong", "code": "    public static long readLong(final InputStream stream)\n            throws IOException, BufferUnderrunException\n    {\n        return getLong(readFromStream(stream, LONG_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readFromStream", "code": "    public static byte[] readFromStream(final InputStream stream,\n                                        final int size)\n            throws IOException, BufferUnderrunException\n    {\n        byte[] buffer = null;\n\n        switch (size)\n        {\n\n            case SHORT_SIZE:\n                buffer = _short_buffer;\n                break;\n\n            case INT_SIZE:\n                buffer = _int_buffer;\n                break;\n\n            case LONG_SIZE:\n                buffer = _long_buffer;\n                break;\n\n            default :\n                buffer = new byte[size];\n                break;\n        }\n        int count = stream.read(buffer);\n\n        if (count == -1)\n        {\n\n            Arrays.fill(buffer, (byte) 0);\n        } else if (count != size)\n        {\n            throw new BufferUnderrunException();\n        }\n        return buffer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [8, 10], [9, 11], [3, 12], [4, 13], [4, 14], [4, 15], [4, 16], [5, 17], [8, 18], [2, 19], [4, 20], [4, 21], [4, 22], [4, 23], [18, 24], [19, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 8], [11, 9], [12, 3], [13, 4], [14, 4], [15, 4], [16, 4], [17, 5], [18, 8], [19, 2], [20, 4], [21, 4], [22, 4], [23, 4], [24, 18], [25, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getNumber", "code": "    private static long getNumber(final byte[] data, final int offset,\n                                  final int size)\n    {\n        long result = 0;\n\n        for (int j = offset + size - 1; j >= offset; j--)\n        {\n            result <<= 8;\n            result |= 0xff & data[j];\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [2, 10], [2, 11], [9, 12], [10, 13], [11, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 2], [11, 2], [12, 9], [13, 10], [14, 11], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "putNumber", "code": "    private static void putNumber(final byte[] data, final int offset,\n                                  final long value, final int size)\n    {\n        int limit = size + offset;\n        long v = value;\n\n        for (int j = offset; j < limit; j++)\n        {\n            data[j] = (byte) (v & 0xFF);\n            v >>= 8;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [1, 10], [1, 11], [10, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 1], [11, 1], [12, 10], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "ubyteToInt", "code": "    public static int ubyteToInt(byte b)\n    {\n        return ((b & 0x80) == 0 ? (int) b : (int) (b & (byte) 0x7f) + 0x80);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [4, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 4], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getUnsignedByte", "code": "    public static int getUnsignedByte(final byte[] data, final int offset)\n    {\n        return (int) getNumber(data, offset, BYTE_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUnsignedByte", "code": "    public static int getUnsignedByte(final byte[] data)\n    {\n        return getUnsignedByte(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getByteArray", "code": "    public static byte[] getByteArray(final byte[] data, int offset, int size)\n    {\n        byte[] copy = new byte[size];\n        System.arraycopy(data, offset, copy, 0, size);\n\n        return copy;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "LittleEndian", "code": "    private LittleEndian()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.6-3257", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/osgi/Activator.java", "language": "java", "name": "org.apache.camel.osgi.Activator", "code": "public class Activator implements BundleActivator, SynchronousBundleListener {\n    public static final String META_INF_TYPE_CONVERTER = \"META-INF/services/org/apache/camel/TypeConverter\";\n    public static final String META_INF_COMPONENT = \"META-INF/services/org/apache/camel/component/\";\n    public static final String META_INF_LANGUAGE = \"META-INF/services/org/apache/camel/language/\";\n    private static final transient Log LOG = LogFactory.getLog(Activator.class);    \n    private static final Map<String, ComponentEntry> COMPONENTS = new HashMap<String, ComponentEntry>();\n    private static final Map<URL, TypeConverterEntry> TYPE_CONVERTERS = new HashMap<URL, TypeConverterEntry>();\n    private static final Map<String, ComponentEntry> LANGUAGES = new HashMap<String, ComponentEntry>();\n    private static Bundle bundle;\n    \n    private class ComponentEntry {\n        Bundle bundle;\n        String path;\n        String name;\n        Class type;\n    }\n    \n    private class TypeConverterEntry {\n        Bundle bundle;\n        URL resource;\n        Set<String> converterPackages;\n    }\n    \n    public void bundleChanged(BundleEvent event) {\n        try {\n            Bundle bundle = event.getBundle();\n            if (event.getType() == BundleEvent.RESOLVED) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Bundle resolved: \" + bundle.getSymbolicName());\n                }\n                mayBeAddComponentAndLanguageFor(bundle);                \n                mayBeAddTypeConverterFor(bundle);\n            } else if (event.getType() == BundleEvent.UNRESOLVED) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Bundle unresolved: \" + bundle.getSymbolicName());\n                }\n                mayBeRemoveComponentAndLanguageFor(bundle);                \n                mayBeRemoveTypeConverterFor(bundle);\n            }\n        } catch (Throwable e) {\n            LOG.fatal(\"Exception handing bundle changed event\", e);\n        }\n        \n    }\n\n    protected synchronized void addComponentEntry(String entryPath, Bundle bundle, Map<String, ComponentEntry> entries) {\n        Enumeration e = bundle.getEntryPaths(entryPath);\n        if (e != null) {\n            while (e.hasMoreElements()) {\n                String path = (String)e.nextElement();\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Found entry: \" + path + \" in bundle \" + bundle.getSymbolicName());\n                }\n                ComponentEntry entry = new ComponentEntry();\n                entry.bundle = bundle;\n                entry.path = path;\n                entry.name = path.substring(path.lastIndexOf(\"/\") + 1);\n                entries.put(entry.name, entry);\n            }\n        }\n        \n    }\n\n    protected void mayBeAddComponentAndLanguageFor(Bundle bundle) {        \n        addComponentEntry(META_INF_COMPONENT, bundle, COMPONENTS);\n        addComponentEntry(META_INF_LANGUAGE, bundle, LANGUAGES);\n    }\n    \n    protected synchronized void mayBeAddTypeConverterFor(Bundle bundle) {\n        try {\n            Enumeration e = bundle.getResources(META_INF_TYPE_CONVERTER);\n            if (e != null) {\n                while (e.hasMoreElements()) {\n                    URL resource = (URL)e.nextElement();\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Found entry: \" + resource + \" in bundle \" + bundle.getSymbolicName());\n                    }\n                    TypeConverterEntry entry = new TypeConverterEntry();\n                    entry.bundle = bundle;                   \n                    entry.resource = resource;\n                    entry.converterPackages = getConverterPackages(resource);\n                    TYPE_CONVERTERS.put(resource, entry);\n                }\n            }\n        } catch (IOException ignore) {\n        }\n    }\n\n    protected void mayBeRemoveComponentAndLanguageFor(Bundle bundle) {\n        removeComponentEntry(bundle, COMPONENTS);\n        removeComponentEntry(bundle, LANGUAGES);        \n    }\n    \n    protected void removeComponentEntry(Bundle bundle, Map<String, ComponentEntry> entries) {\n        ComponentEntry[] entriesArray = entries.values().toArray(new ComponentEntry[0]);\n        for (ComponentEntry entry : entriesArray) {        \n            if (entry.bundle == bundle) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Removing entry: \" + entry.path + \" in bundle \" + bundle.getSymbolicName());\n                }\n                entries.remove(entry.name);\n            }\n        }        \n    }\n    \n    protected synchronized void mayBeRemoveTypeConverterFor(Bundle bundle) {\n        TypeConverterEntry[] entriesArray = TYPE_CONVERTERS.values().toArray(new TypeConverterEntry[0]);\n        for (TypeConverterEntry entry : entriesArray) {\n            if (entry.bundle == bundle) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Removing entry: \" + entry.resource + \" in bundle \" + bundle.getSymbolicName());\n                }\n                COMPONENTS.remove(entry.resource);\n            }\n        }\n    }\n\n    public void start(BundleContext context) throws Exception {\n        bundle = context.getBundle();       \n        context.addBundleListener(this);\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"checking existing bundles\");\n        }\n        for (Bundle bundle : context.getBundles()) {\n            if (bundle.getState() == Bundle.RESOLVED || bundle.getState() == Bundle.STARTING\n                || bundle.getState() == Bundle.ACTIVE || bundle.getState() == Bundle.STOPPING) {\n                mayBeAddComponentAndLanguageFor(bundle);\n                mayBeAddTypeConverterFor(bundle);\n            }\n        }\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"actived\");\n        }\n        \n    }    \n\n    public void stop(BundleContext context) throws Exception {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"removing the components of existing bundles\");\n        }\n        for (Bundle bundle : context.getBundles()) {\n            if (bundle.getState() == Bundle.RESOLVED || bundle.getState() == Bundle.STARTING \n                || bundle.getState() == Bundle.ACTIVE || bundle.getState() == Bundle.STOPPING) {\n                mayBeRemoveComponentAndLanguageFor(bundle);\n                mayBeRemoveTypeConverterFor(bundle);\n            }\n        }\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"stopped\");\n        }\n    }\n    \n    protected Set<String> getConverterPackages(URL resource) {\n        Set<String> packages = new HashSet<String>();\n        if (resource != null) {\n            BufferedReader reader = null;\n            try {\n                reader = new BufferedReader(new InputStreamReader(resource.openStream()));\n                while (true) {\n                    String line = reader.readLine();\n                    if (line == null) {\n                        break;\n                    }\n                    line = line.trim();\n                    if (line.startsWith(\"#\") || line.length() == 0) {\n                        continue;\n                    }\n                    tokenize(packages, line);\n                }\n            } catch (Exception ignore) {\n            } finally {\n                if (reader != null) {\n                    ObjectHelper.close(reader, null, LOG);\n                }\n            }\n        }\n        return packages;\n    }\n    \n    protected void tokenize(Set<String> packages, String line) {\n        StringTokenizer iter = new StringTokenizer(line, \",\");\n        while (iter.hasMoreTokens()) {\n            String name = iter.nextToken().trim();\n            if (name.length() > 0) {\n                packages.add(name);\n            }\n        }\n    }\n    \n    protected static Bundle getBundle() {\n        return bundle;\n    }\n    \n    protected static synchronized String[] findTypeConverterPackageNames() {\n        Set<String> packages = new HashSet<String>();\n        for (TypeConverterEntry entry : TYPE_CONVERTERS.values()) {\n            for (String packageName : entry.converterPackages) {\n                packages.add(packageName);\n            }\n        }\n        return packages.toArray(new String[packages.size()]);\n    }\n        \n    public static synchronized Class getComponent(String name) throws Exception {\n        return getClassFromEntries(name, COMPONENTS);\n    }\n    \n    public static synchronized Class getLanguage(String name) throws Exception {\n        return getClassFromEntries(name, LANGUAGES);\n    }\n    \n    protected static synchronized Class getClassFromEntries(String name, Map<String, ComponentEntry> entries) throws Exception {\n        ComponentEntry entry = entries.get(name);\n        if (entry == null) {\n            return null;\n        }\n        if (entry.type == null) {\n            URL url = entry.bundle.getEntry(entry.path);\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"The entry \" + name + \"'s url is\" + url);\n            }\n            Properties properties = new Properties();\n            BufferedInputStream reader = null;\n            try {\n                reader = new BufferedInputStream(url.openStream());\n                properties.load(reader);\n            } finally {\n                try {\n                    if (reader != null) {\n                        reader.close();\n                    }\n                } catch (Exception ignore) {\n                }\n            }\n            String classname = (String)properties.get(\"class\");\n            ClassLoader loader = BundleDelegatingClassLoader.createBundleClassLoaderFor(entry.bundle);\n            entry.type = loader.loadClass(classname);\n        }\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Found entry: \" + name + \" via type: \" + entry.type.getName());\n        }\n        return entry.type;", "functions": [{"function_name": "bundleChanged", "code": "    public void bundleChanged(BundleEvent event) {\n        try {\n            Bundle bundle = event.getBundle();\n            if (event.getType() == BundleEvent.RESOLVED) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Bundle resolved: \" + bundle.getSymbolicName());\n                }\n                mayBeAddComponentAndLanguageFor(bundle);                \n                mayBeAddTypeConverterFor(bundle);\n            } else if (event.getType() == BundleEvent.UNRESOLVED) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Bundle unresolved: \" + bundle.getSymbolicName());\n                }\n                mayBeRemoveComponentAndLanguageFor(bundle);                \n                mayBeRemoveTypeConverterFor(bundle);\n            }\n        } catch (Throwable e) {\n            LOG.fatal(\"Exception handing bundle changed event\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "VAR_DECL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [4, 7], [3, 8], [6, 9], [4, 10], [7, 11], [5, 12], [8, 13], [6, 14], [9, 15], [4, 16], [4, 17], [10, 18], [6, 19], [6, 20], [14, 21], [10, 22], [14, 23], [22, 24], [23, 25], [24, 26], [24, 27], [25, 28], [25, 29], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 4], [8, 3], [9, 6], [10, 4], [11, 7], [12, 5], [13, 8], [14, 6], [15, 9], [16, 4], [17, 4], [18, 10], [19, 6], [20, 6], [21, 14], [22, 10], [23, 14], [24, 22], [25, 23], [26, 24], [27, 24], [28, 25], [29, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "addComponentEntry", "code": "    protected synchronized void addComponentEntry(String entryPath, Bundle bundle, Map<String, ComponentEntry> entries) {\n        Enumeration e = bundle.getEntryPaths(entryPath);\n        if (e != null) {\n            while (e.hasMoreElements()) {\n                String path = (String)e.nextElement();\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Found entry: \" + path + \" in bundle \" + bundle.getSymbolicName());\n                }\n                ComponentEntry entry = new ComponentEntry();\n                entry.bundle = bundle;\n                entry.path = path;\n                entry.name = path.substring(path.lastIndexOf(\"/\") + 1);\n                entries.put(entry.name, entry);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [12, 18], [15, 19], [11, 20], [19, 21], [12, 22], [13, 23], [21, 24], [21, 25], [22, 26], [25, 27], [26, 28], [26, 29], [29, 30], [29, 31], [31, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 7], [11, 7], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 12], [19, 15], [20, 11], [21, 19], [22, 12], [23, 13], [24, 21], [25, 21], [26, 22], [27, 25], [28, 26], [29, 26], [30, 29], [31, 29], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "mayBeAddComponentAndLanguageFor", "code": "    protected void mayBeAddComponentAndLanguageFor(Bundle bundle) {        \n        addComponentEntry(META_INF_COMPONENT, bundle, COMPONENTS);\n        addComponentEntry(META_INF_LANGUAGE, bundle, LANGUAGES);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "mayBeAddTypeConverterFor", "code": "    protected synchronized void mayBeAddTypeConverterFor(Bundle bundle) {\n        try {\n            Enumeration e = bundle.getResources(META_INF_TYPE_CONVERTER);\n            if (e != null) {\n                while (e.hasMoreElements()) {\n                    URL resource = (URL)e.nextElement();\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Found entry: \" + resource + \" in bundle \" + bundle.getSymbolicName());\n                    }\n                    TypeConverterEntry entry = new TypeConverterEntry();\n                    entry.bundle = bundle;                   \n                    entry.resource = resource;\n                    entry.converterPackages = getConverterPackages(resource);\n                    TYPE_CONVERTERS.put(resource, entry);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [4, 7], [6, 8], [5, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [12, 18], [15, 19], [11, 20], [12, 21], [13, 22], [21, 23], [23, 24], [23, 25], [25, 26], [25, 27], [27, 28], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 4], [8, 6], [9, 5], [10, 7], [11, 7], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 12], [19, 15], [20, 11], [21, 12], [22, 13], [23, 21], [24, 23], [25, 23], [26, 25], [27, 25], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "mayBeRemoveComponentAndLanguageFor", "code": "    protected void mayBeRemoveComponentAndLanguageFor(Bundle bundle) {\n        removeComponentEntry(bundle, COMPONENTS);\n        removeComponentEntry(bundle, LANGUAGES);        ", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeComponentEntry", "code": "    protected void removeComponentEntry(Bundle bundle, Map<String, ComponentEntry> entries) {\n        ComponentEntry[] entriesArray = entries.values().toArray(new ComponentEntry[0]);\n        for (ComponentEntry entry : entriesArray) {        \n            if (entry.bundle == bundle) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Removing entry: \" + entry.path + \" in bundle \" + bundle.getSymbolicName());\n                }\n                entries.remove(entry.name);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "IF", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [6, 8], [5, 9], [5, 10], [9, 11], [8, 12], [9, 13], [13, 14], [14, 15], [14, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 6], [9, 5], [10, 5], [11, 9], [12, 8], [13, 9], [14, 13], [15, 14], [16, 14], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "mayBeRemoveTypeConverterFor", "code": "    protected synchronized void mayBeRemoveTypeConverterFor(Bundle bundle) {\n        TypeConverterEntry[] entriesArray = TYPE_CONVERTERS.values().toArray(new TypeConverterEntry[0]);\n        for (TypeConverterEntry entry : entriesArray) {\n            if (entry.bundle == bundle) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Removing entry: \" + entry.resource + \" in bundle \" + bundle.getSymbolicName());\n                }\n                COMPONENTS.remove(entry.resource);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "IF", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [5, 7], [4, 8], [4, 9], [8, 10], [7, 11], [8, 12], [12, 13], [13, 14], [13, 15], [15, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 5], [8, 4], [9, 4], [10, 8], [11, 7], [12, 8], [13, 12], [14, 13], [15, 13], [16, 15], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "start", "code": "    public void start(BundleContext context) throws Exception {\n        bundle = context.getBundle();       \n        context.addBundleListener(this);\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"checking existing bundles\");\n        }\n        for (Bundle bundle : context.getBundles()) {\n            if (bundle.getState() == Bundle.RESOLVED || bundle.getState() == Bundle.STARTING\n                || bundle.getState() == Bundle.ACTIVE || bundle.getState() == Bundle.STOPPING) {\n                mayBeAddComponentAndLanguageFor(bundle);\n                mayBeAddTypeConverterFor(bundle);\n            }\n        }\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"actived\");", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "IF", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [0, 7], [0, 8], [2, 9], [2, 10], [8, 11], [1, 12], [9, 13], [3, 14], [12, 15], [13, 16], [13, 17], [14, 18], [9, 19], [9, 20], [16, 21], [17, 22], [17, 23], [22, 24], [23, 25], [23, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 0], [8, 0], [9, 2], [10, 2], [11, 8], [12, 1], [13, 9], [14, 3], [15, 12], [16, 13], [17, 13], [18, 14], [19, 9], [20, 9], [21, 16], [22, 17], [23, 17], [24, 22], [25, 23], [26, 23], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "stop", "code": "    public void stop(BundleContext context) throws Exception {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"removing the components of existing bundles\");\n        }\n        for (Bundle bundle : context.getBundles()) {\n            if (bundle.getState() == Bundle.RESOLVED || bundle.getState() == Bundle.STARTING \n                || bundle.getState() == Bundle.ACTIVE || bundle.getState() == Bundle.STOPPING) {\n                mayBeRemoveComponentAndLanguageFor(bundle);\n                mayBeRemoveTypeConverterFor(bundle);\n            }\n        }\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"stopped\");", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "IF", "PARAM", "CALL", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [2, 8], [1, 9], [7, 10], [3, 11], [9, 12], [10, 13], [10, 14], [11, 15], [7, 16], [7, 17], [13, 18], [14, 19], [14, 20], [19, 21], [20, 22], [20, 23], [22, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [8, 2], [9, 1], [10, 7], [11, 3], [12, 9], [13, 10], [14, 10], [15, 11], [16, 7], [17, 7], [18, 13], [19, 14], [20, 14], [21, 19], [22, 20], [23, 20], [24, 22], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getConverterPackages", "code": "    protected Set<String> getConverterPackages(URL resource) {\n        Set<String> packages = new HashSet<String>();\n        if (resource != null) {\n            BufferedReader reader = null;\n            try {\n                reader = new BufferedReader(new InputStreamReader(resource.openStream()));\n                while (true) {\n                    String line = reader.readLine();\n                    if (line == null) {\n                        break;\n                    }\n                    line = line.trim();\n                    if (line.startsWith(\"#\") || line.length() == 0) {\n                        continue;\n                    }\n                    tokenize(packages, line);\n                }\n            } catch (Exception ignore) {\n            } finally {\n                if (reader != null) {\n                    ObjectHelper.close(reader, null, LOG);\n                }\n            }\n        }\n        return packages;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "CATCH", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [6, 10], [6, 11], [6, 12], [10, 13], [12, 14], [6, 15], [7, 16], [13, 17], [12, 18], [12, 19], [12, 20], [15, 21], [10, 22], [12, 23], [18, 24], [12, 25], [19, 26], [21, 27], [22, 28], [18, 29], [24, 30], [24, 31], [25, 32], [19, 33], [26, 34], [20, 35], [27, 36], [30, 37], [30, 38], [31, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 6], [11, 6], [12, 6], [13, 10], [14, 12], [15, 6], [16, 7], [17, 13], [18, 12], [19, 12], [20, 12], [21, 15], [22, 10], [23, 12], [24, 18], [25, 12], [26, 19], [27, 21], [28, 22], [29, 18], [30, 24], [31, 24], [32, 25], [33, 19], [34, 26], [35, 20], [36, 27], [37, 30], [38, 30], [39, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "tokenize", "code": "    protected void tokenize(Set<String> packages, String line) {\n        StringTokenizer iter = new StringTokenizer(line, \",\");\n        while (iter.hasMoreTokens()) {\n            String name = iter.nextToken().trim();\n            if (name.length() > 0) {\n                packages.add(name);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [6, 9], [8, 10], [9, 11], [9, 12], [7, 13], [6, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 6], [10, 8], [11, 9], [12, 9], [13, 7], [14, 6], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getBundle", "code": "    protected static Bundle getBundle() {\n        return bundle;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "findTypeConverterPackageNames", "code": "    protected static synchronized String[] findTypeConverterPackageNames() {\n        Set<String> packages = new HashSet<String>();\n        for (TypeConverterEntry entry : TYPE_CONVERTERS.values()) {\n            for (String packageName : entry.converterPackages) {\n                packages.add(packageName);\n            }\n        }\n        return packages.toArray(new String[packages.size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "LOOP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getComponent", "code": "    public static synchronized Class getComponent(String name) throws Exception {\n        return getClassFromEntries(name, COMPONENTS);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLanguage", "code": "    public static synchronized Class getLanguage(String name) throws Exception {\n        return getClassFromEntries(name, LANGUAGES);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getClassFromEntries", "code": "    protected static synchronized Class getClassFromEntries(String name, Map<String, ComponentEntry> entries) throws Exception {\n        ComponentEntry entry = entries.get(name);\n        if (entry == null) {\n            return null;\n        }\n        if (entry.type == null) {\n            URL url = entry.bundle.getEntry(entry.path);\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"The entry \" + name + \"'s url is\" + url);\n            }\n            Properties properties = new Properties();\n            BufferedInputStream reader = null;\n            try {\n                reader = new BufferedInputStream(url.openStream());\n                properties.load(reader);\n            } finally {\n                try {\n                    if (reader != null) {\n                        reader.close();\n                    }\n                } catch (Exception ignore) {\n                }\n            }\n            String classname = (String)properties.get(\"class\");\n            ClassLoader loader = BundleDelegatingClassLoader.createBundleClassLoaderFor(entry.bundle);\n            entry.type = loader.loadClass(classname);\n        }\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Found entry: \" + name + \" via type: \" + entry.type.getName());\n        }\n        return entry.type;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "TRY", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CATCH", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [9, 18], [4, 19], [10, 20], [5, 21], [2, 22], [3, 23], [13, 24], [16, 25], [19, 26], [22, 27], [23, 28], [11, 29], [24, 30], [24, 31], [13, 32], [13, 33], [14, 34], [15, 35], [17, 36], [27, 37], [27, 38], [12, 39], [31, 40], [33, 41], [16, 42], [38, 43], [38, 44], [39, 45], [40, 46], [41, 47], [42, 48], [44, 49], [31, 50], [48, 51], [51, 52], [51, 53], [53, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 3], [18, 9], [19, 4], [20, 10], [21, 5], [22, 2], [23, 3], [24, 13], [25, 16], [26, 19], [27, 22], [28, 23], [29, 11], [30, 24], [31, 24], [32, 13], [33, 13], [34, 14], [35, 15], [36, 17], [37, 27], [38, 27], [39, 12], [40, 31], [41, 33], [42, 16], [43, 38], [44, 38], [45, 39], [46, 40], [47, 41], [48, 42], [49, 44], [50, 31], [51, 48], [52, 51], [53, 51], [54, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}], "label": 0}
{"sample_id": "camel-1.2-1784", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/util/CamelContextHelper.java", "language": "java", "name": "org.apache.camel.util.CamelContextHelper", "code": "public class CamelContextHelper {\n    \n    /**\n     * Utility classes should not have a public constructor.\n     */\n    private CamelContextHelper() {        \n    }\n\n    /**\n     * Returns the mandatory endpoint for the given URI or the\n     * {@link org.apache.camel.NoSuchEndpointException} is thrown\n     * \n     * @param camelContext\n     * @param uri\n     * @return\n     */\n    public static Endpoint getMandatoryEndpoint(CamelContext camelContext, String uri)\n        throws NoSuchEndpointException {\n        Endpoint endpoint = camelContext.getEndpoint(uri);\n        if (endpoint == null) {\n            throw new NoSuchEndpointException(uri);\n        } else {\n            return endpoint;\n        }\n    }\n\n    /**\n     * Converts the given value to the requested type\n     */\n    public static <T> T convertTo(CamelContext context, Class<T> type, Object value) {\n        notNull(context, \"camelContext\");\n        return context.getTypeConverter().convertTo(type, value);\n    }\n\n    /**\n     * Converts the given value to the specified type throwing an {@link IllegalArgumentException}\n     * if the value could not be converted to a non null value\n     */\n    public static <T> T mandatoryConvertTo(CamelContext context, Class<T> type, Object value) {\n        T answer = convertTo(context, type, value);\n        if (answer == null) {\n            throw new IllegalArgumentException(\"Value \" + value + \" converted to \" + type.getName() + \" cannot be null\");\n        }\n        return answer;\n    }\n\n    /**\n     * Creates a new instance of the given type using the {@link Injector} on the given\n     * {@link CamelContext}\n     */\n    public static <T> T newInstance(CamelContext context, Class<T> beanType) {\n        return context.getInjector().newInstance(beanType);", "functions": [{"function_name": "getMandatoryEndpoint", "code": "    public static Endpoint getMandatoryEndpoint(CamelContext camelContext, String uri)\n        throws NoSuchEndpointException {\n        Endpoint endpoint = camelContext.getEndpoint(uri);\n        if (endpoint == null) {\n            throw new NoSuchEndpointException(uri);\n        } else {\n            return endpoint;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "convertTo", "code": "    public static <T> T convertTo(CamelContext context, Class<T> type, Object value) {\n        notNull(context, \"camelContext\");\n        return context.getTypeConverter().convertTo(type, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "mandatoryConvertTo", "code": "    public static <T> T mandatoryConvertTo(CamelContext context, Class<T> type, Object value) {\n        T answer = convertTo(context, type, value);\n        if (answer == null) {\n            throw new IllegalArgumentException(\"Value \" + value + \" converted to \" + type.getName() + \" cannot be null\");\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [3, 10], [8, 11], [11, 12], [12, 13], [12, 14], [14, 15], [14, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 3], [11, 8], [12, 11], [13, 12], [14, 12], [15, 14], [16, 14], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "newInstance", "code": "    public static <T> T newInstance(CamelContext context, Class<T> beanType) {\n        return context.getInjector().newInstance(beanType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "CamelContextHelper", "code": "    private CamelContextHelper() {        ", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "lucene-2.2-5120", "repo": "lucene-2.2", "project": "lucene", "version": "2.2", "file_path": "org/apache/lucene/queryParser/FastCharStream.java", "language": "java", "name": "org.apache.lucene.queryParser.FastCharStream", "code": "public final class FastCharStream implements CharStream {\n  char[] buffer = null;\n\n\n\n\n  /** Constructs from a Reader. */\n  public FastCharStream(Reader r) {\n    input = r;\n  }\n\n  public final char readChar() throws IOException {\n    if (bufferPosition >= bufferLength)\n      refill();\n    return buffer[bufferPosition++];\n  }\n\n  private final void refill() throws IOException {\n    int newPosition = bufferLength - tokenStart;\n\n\tbuffer = new char[2048];\n\tchar[] newBuffer = new char[buffer.length*2];\n\tSystem.arraycopy(buffer, 0, newBuffer, 0, bufferLength);\n\tbuffer = newBuffer;\n      \n      System.arraycopy(buffer, tokenStart, buffer, 0, newPosition);\n    \n\n    bufferPosition = newPosition;\n    bufferStart += tokenStart;\n    tokenStart = 0;\n\n      input.read(buffer, newPosition, buffer.length-newPosition);\n    if (charsRead == -1)\n      throw new IOException(\"read past eof\");\n    else\n      bufferLength += charsRead;\n  }\n\n  public final char BeginToken() throws IOException {\n    tokenStart = bufferPosition;\n    return readChar();\n  }\n\n  public final void backup(int amount) {\n    bufferPosition -= amount;\n  }\n\n  public final String GetImage() {\n    return new String(buffer, tokenStart, bufferPosition - tokenStart);\n  }\n\n  public final char[] GetSuffix(int len) {\n    char[] value = new char[len];\n    System.arraycopy(buffer, bufferPosition - len, value, 0, len);\n    return value;\n  }\n\n  public final void Done() {\n    try {\n      input.close();\n    } catch (IOException e) {\n      System.err.println(\"Caught: \" + e + \"; ignoring.\");\n    }\n  }\n\n  public final int getColumn() {\n    return bufferStart + bufferPosition;\n  }\n  public final int getLine() {\n    return 1;\n  }\n  public final int getEndColumn() {\n    return bufferStart + bufferPosition;\n  }\n  public final int getEndLine() {\n    return 1;\n  }\n  public final int getBeginColumn() {\n    return bufferStart + tokenStart;\n  }\n  public final int getBeginLine() {\n    return 1;", "functions": [{"function_name": "readChar", "code": "  public final char readChar() throws IOException {\n    if (bufferPosition >= bufferLength)\n      refill();\n    return buffer[bufferPosition++];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "refill", "code": "  private final void refill() throws IOException {\n    int newPosition = bufferLength - tokenStart;\n\n\tbuffer = new char[2048];\n\tchar[] newBuffer = new char[buffer.length*2];\n\tSystem.arraycopy(buffer, 0, newBuffer, 0, bufferLength);\n\tbuffer = newBuffer;\n      \n      System.arraycopy(buffer, tokenStart, buffer, 0, newPosition);\n    \n\n    bufferPosition = newPosition;\n    bufferStart += tokenStart;\n    tokenStart = 0;\n\n      input.read(buffer, newPosition, buffer.length-newPosition);\n    if (charsRead == -1)\n      throw new IOException(\"read past eof\");\n    else\n      bufferLength += charsRead;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [4, 15], [5, 16], [6, 17], [7, 18], [10, 19], [12, 20], [12, 21], [3, 22], [15, 23], [2, 24], [13, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 4], [16, 5], [17, 6], [18, 7], [19, 10], [20, 12], [21, 12], [22, 3], [23, 15], [24, 2], [25, 13], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "BeginToken", "code": "  public final char BeginToken() throws IOException {\n    tokenStart = bufferPosition;\n    return readChar();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "backup", "code": "  public final void backup(int amount) {\n    bufferPosition -= amount;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "GetImage", "code": "  public final String GetImage() {\n    return new String(buffer, tokenStart, bufferPosition - tokenStart);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "GetSuffix", "code": "  public final char[] GetSuffix(int len) {\n    char[] value = new char[len];\n    System.arraycopy(buffer, bufferPosition - len, value, 0, len);\n    return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "Done", "code": "  public final void Done() {\n    try {\n      input.close();\n    } catch (IOException e) {\n      System.err.println(\"Caught: \" + e + \"; ignoring.\");", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getColumn", "code": "  public final int getColumn() {\n    return bufferStart + bufferPosition;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLine", "code": "  public final int getLine() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndColumn", "code": "  public final int getEndColumn() {\n    return bufferStart + bufferPosition;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndLine", "code": "  public final int getEndLine() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeginColumn", "code": "  public final int getBeginColumn() {\n    return bufferStart + tokenStart;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeginLine", "code": "  public final int getBeginLine() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FastCharStream", "code": "  public FastCharStream(Reader r) {\n    input = r;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.5-445", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/util/GlobPatternMapper.java", "language": "java", "name": "org.apache.tools.ant.util.GlobPatternMapper", "code": "public class GlobPatternMapper implements FileNameMapper {\n    /**\n     * Part of &quot;from&quot; pattern before the *.\n     */\n    protected String fromPrefix = null;\n\n    /**\n     * Part of &quot;from&quot; pattern after the *.\n     */\n    protected String fromPostfix = null;\n    \n    /**\n     * Length of the prefix (&quot;from&quot; pattern).\n     */\n    protected int prefixLength;\n\n    /**\n     * Length of the postfix (&quot;from&quot; pattern).\n     */\n    protected int postfixLength;\n\n    /**\n     * Part of &quot;to&quot; pattern before the *.\n     */\n    protected String toPrefix = null;\n\n    /**\n     * Part of &quot;to&quot; pattern after the *.\n     */\n    protected String toPostfix = null;\n    \n    /**\n     * Sets the &quot;from&quot; pattern. Required.\n     */\n    public void setFrom(String from) {\n        int index = from.lastIndexOf(\"*\");\n        if (index == -1) {\n            fromPrefix = from;\n            fromPostfix = \"\";\n        } else {\n            fromPrefix = from.substring(0, index);\n            fromPostfix = from.substring(index + 1);\n        }\n        prefixLength = fromPrefix.length();\n        postfixLength = fromPostfix.length();\n    }\n\n    /**\n     * Sets the &quot;to&quot; pattern. Required.\n     */\n    public void setTo(String to) {\n        int index = to.lastIndexOf(\"*\");\n        if (index == -1) {\n            toPrefix = to;\n            toPostfix = \"\";\n        } else {\n            toPrefix = to.substring(0, index);\n            toPostfix = to.substring(index + 1);\n        }\n    }\n\n    /**\n     * Returns null if the source file name doesn't match the\n     * &quot;from&quot; pattern, an one-element array containing the\n     * translated file otherwise.\n     */\n    public String[] mapFileName(String sourceFileName) {\n        if (fromPrefix == null \n            || !sourceFileName.startsWith(fromPrefix) \n            || !sourceFileName.endsWith(fromPostfix)) {\n            return null;\n        }\n        return new String[] {toPrefix \n                                 + extractVariablePart(sourceFileName)\n                                 + toPostfix};\n    }\n\n    /**\n     * Returns the part of the given string that matches the * in the\n     * &quot;from&quot; pattern.\n     */\n    protected String extractVariablePart(String name) {\n        return name.substring(prefixLength,\n                              name.length() - postfixLength);", "functions": [{"function_name": "setFrom", "code": "    public void setFrom(String from) {\n        int index = from.lastIndexOf(\"*\");\n        if (index == -1) {\n            fromPrefix = from;\n            fromPostfix = \"\";\n        } else {\n            fromPrefix = from.substring(0, index);\n            fromPostfix = from.substring(index + 1);\n        }\n        prefixLength = fromPrefix.length();\n        postfixLength = fromPostfix.length();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [5, 8], [6, 9], [2, 10], [1, 11], [1, 12], [1, 13], [1, 14], [10, 15], [11, 16], [12, 17], [13, 18], [16, 19], [17, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 5], [9, 6], [10, 2], [11, 1], [12, 1], [13, 1], [14, 1], [15, 10], [16, 11], [17, 12], [18, 13], [19, 16], [20, 17], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setTo", "code": "    public void setTo(String to) {\n        int index = to.lastIndexOf(\"*\");\n        if (index == -1) {\n            toPrefix = to;\n            toPostfix = \"\";\n        } else {\n            toPrefix = to.substring(0, index);\n            toPostfix = to.substring(index + 1);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [1, 8], [1, 9], [1, 10], [6, 11], [7, 12], [8, 13], [9, 14], [12, 15], [13, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 1], [9, 1], [10, 1], [11, 6], [12, 7], [13, 8], [14, 9], [15, 12], [16, 13], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "mapFileName", "code": "    public String[] mapFileName(String sourceFileName) {\n        if (fromPrefix == null \n            || !sourceFileName.startsWith(fromPrefix) \n            || !sourceFileName.endsWith(fromPostfix)) {\n            return null;\n        }\n        return new String[] {toPrefix \n                                 + extractVariablePart(sourceFileName)\n                                 + toPostfix};", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [4, 7], [1, 8], [5, 9], [7, 10], [7, 11], [8, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 4], [8, 1], [9, 5], [10, 7], [11, 7], [12, 8], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "extractVariablePart", "code": "    protected String extractVariablePart(String name) {\n        return name.substring(prefixLength,\n                              name.length() - postfixLength);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "ant-1.7-1161", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessageBySftp.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.ssh.ScpFromMessageBySftp", "code": "public class ScpFromMessageBySftp extends ScpFromMessage {\n\n    private static final int HUNDRED_KILOBYTES = 102400;\n\n    private String remoteFile;\n    private File localFile;\n    private boolean isRecursive = false;\n    private boolean verbose = false;\n\n    /**\n     * Constructor for ScpFromMessageBySftp.\n     * @param verbose if true log extra information\n     * @param session the Scp session to use\n     * @param aRemoteFile the remote file name\n     * @param aLocalFile  the local file\n     * @param recursive   if true use recursion\n     * @since Ant 1.7\n     */\n    public ScpFromMessageBySftp(boolean verbose,\n                                Session session,\n                                String aRemoteFile,\n                                File aLocalFile,\n                                boolean recursive) {\n        super(verbose, session);\n        this.verbose = verbose;\n        this.remoteFile = aRemoteFile;\n        this.localFile = aLocalFile;\n        this.isRecursive = recursive;\n    }\n\n    /**\n     * Constructor for ScpFromMessageBySftp.\n     * @param session the Scp session to use\n     * @param aRemoteFile the remote file name\n     * @param aLocalFile  the local file\n     * @param recursive   if true use recursion\n     */\n    public ScpFromMessageBySftp(Session session,\n                                String aRemoteFile,\n                                File aLocalFile,\n                                boolean recursive) {\n        this(false, session, aRemoteFile, aLocalFile, recursive);\n    }\n\n    /**\n     * Carry out the transfer.\n     * @throws IOException on i/o errors\n     * @throws JSchException on errors detected by scp\n     */\n    public void execute() throws IOException, JSchException {\n        ChannelSftp channel = openSftpChannel();\n        try {\n            channel.connect();\n            try {\n                SftpATTRS attrs = channel.stat(remoteFile);\n                if (attrs.isDir() && !remoteFile.endsWith(\"/\")) {\n                    remoteFile = remoteFile + \"/\";\n                }\n            } catch (SftpException ee) {\n            }\n            getDir(channel, remoteFile, localFile);\n        } catch (SftpException e) {\n            throw new JSchException(e.toString());\n        } finally {\n            if (channel != null) {\n                channel.disconnect();\n            }\n        }\n        log(\"done\\n\");\n    }\n\n    private void getDir(ChannelSftp channel,\n                        String remoteFile,\n                        File localFile) throws IOException, SftpException {\n        String pwd = remoteFile;\n        if (remoteFile.lastIndexOf('/') != -1) {\n            if (remoteFile.length() > 1) {\n                pwd = remoteFile.substring(0, remoteFile.lastIndexOf('/'));\n            }\n        }\n        channel.cd(pwd);\n        if (!localFile.exists()) {\n            localFile.mkdirs();\n        }\n        java.util.Vector files = channel.ls(remoteFile);\n        for (int i = 0; i < files.size(); i++) {\n            ChannelSftp.LsEntry le = (ChannelSftp.LsEntry) files.elementAt(i);\n            String name = le.getFilename();\n            if (le.getAttrs().isDir()) {\n                if (name.equals(\".\") || name.equals(\"..\")) {\n                    continue;\n                }\n                getDir(channel,\n                       channel.pwd() + \"/\" + name + \"/\",\n                       new File(localFile, le.getFilename()));\n            } else {\n                getFile(channel, le, localFile);\n            }\n        }\n        channel.cd(\"..\");\n    }\n\n    private void getFile(ChannelSftp channel,\n                         ChannelSftp.LsEntry le,\n                         File localFile) throws IOException, SftpException {\n        String remoteFile = le.getFilename();\n        if (!localFile.exists()) {\n            String path = localFile.getAbsolutePath();\n            int i = 0;\n            if ((i = path.lastIndexOf(File.pathSeparator)) != -1) {\n                if (path.length() > File.pathSeparator.length()) {\n                    new File(path.substring(0, i)).mkdirs();\n                }\n            }\n        }\n\n        if (localFile.isDirectory()) {\n            localFile = new File(localFile, remoteFile);\n        }\n\n        long startTime = System.currentTimeMillis();\n        long totalLength = le.getAttrs().getSize();\n\n        SftpProgressMonitor monitor = null;\n        boolean trackProgress = getVerbose() && totalLength > HUNDRED_KILOBYTES;\n        if (trackProgress) {\n            monitor = getProgressMonitor();\n        }\n        try {\n            log(\"Receiving: \" + remoteFile + \" : \" + le.getAttrs().getSize());\n            channel.get(remoteFile, localFile.getAbsolutePath(), monitor);\n        } finally {\n            long endTime = System.currentTimeMillis();\n            logStats(startTime, endTime, (int) totalLength);", "functions": [{"function_name": "execute", "code": "    public void execute() throws IOException, JSchException {\n        ChannelSftp channel = openSftpChannel();\n        try {\n            channel.connect();\n            try {\n                SftpATTRS attrs = channel.stat(remoteFile);\n                if (attrs.isDir() && !remoteFile.endsWith(\"/\")) {\n                    remoteFile = remoteFile + \"/\";\n                }\n            } catch (SftpException ee) {\n            }\n            getDir(channel, remoteFile, localFile);\n        } catch (SftpException e) {\n            throw new JSchException(e.toString());\n        } finally {\n            if (channel != null) {\n                channel.disconnect();\n            }\n        }\n        log(\"done\\n\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "CALL", "IF", "CATCH", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "CALL", "CATCH", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [5, 9], [1, 10], [6, 11], [6, 12], [6, 13], [1, 14], [2, 15], [8, 16], [9, 17], [12, 18], [4, 19], [17, 20], [18, 21], [18, 22], [13, 23], [12, 24], [21, 25], [24, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 5], [10, 1], [11, 6], [12, 6], [13, 6], [14, 1], [15, 2], [16, 8], [17, 9], [18, 12], [19, 4], [20, 17], [21, 18], [22, 18], [23, 13], [24, 12], [25, 21], [26, 24], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getDir", "code": "    private void getDir(ChannelSftp channel,\n                        String remoteFile,\n                        File localFile) throws IOException, SftpException {\n        String pwd = remoteFile;\n        if (remoteFile.lastIndexOf('/') != -1) {\n            if (remoteFile.length() > 1) {\n                pwd = remoteFile.substring(0, remoteFile.lastIndexOf('/'));\n            }\n        }\n        channel.cd(pwd);\n        if (!localFile.exists()) {\n            localFile.mkdirs();\n        }\n        java.util.Vector files = channel.ls(remoteFile);\n        for (int i = 0; i < files.size(); i++) {\n            ChannelSftp.LsEntry le = (ChannelSftp.LsEntry) files.elementAt(i);\n            String name = le.getFilename();\n            if (le.getAttrs().isDir()) {\n                if (name.equals(\".\") || name.equals(\"..\")) {\n                    continue;\n                }\n                getDir(channel,\n                       channel.pwd() + \"/\" + name + \"/\",\n                       new File(localFile, le.getFilename()));\n            } else {\n                getFile(channel, le, localFile);\n            }\n        }\n        channel.cd(\"..\");", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [0, 12], [4, 13], [9, 14], [1, 15], [1, 16], [1, 17], [10, 18], [2, 19], [4, 20], [13, 21], [13, 22], [15, 23], [1, 24], [3, 25], [20, 26], [22, 27], [15, 28], [23, 29], [16, 30], [26, 31], [26, 32], [15, 33], [15, 34], [28, 35], [17, 36], [20, 37], [34, 38], [34, 39], [28, 40], [35, 41], [35, 42], [37, 43], [38, 44], [39, 45], [39, 46], [41, 47], [42, 48], [43, 49], [43, 50], [46, 51], [49, 52], [51, 53], [51, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 0], [13, 4], [14, 9], [15, 1], [16, 1], [17, 1], [18, 10], [19, 2], [20, 4], [21, 13], [22, 13], [23, 15], [24, 1], [25, 3], [26, 20], [27, 22], [28, 15], [29, 23], [30, 16], [31, 26], [32, 26], [33, 15], [34, 15], [35, 28], [36, 17], [37, 20], [38, 34], [39, 34], [40, 28], [41, 35], [42, 35], [43, 37], [44, 38], [45, 39], [46, 39], [47, 41], [48, 42], [49, 43], [50, 43], [51, 46], [52, 49], [53, 51], [54, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "getFile", "code": "    private void getFile(ChannelSftp channel,\n                         ChannelSftp.LsEntry le,\n                         File localFile) throws IOException, SftpException {\n        String remoteFile = le.getFilename();\n        if (!localFile.exists()) {\n            String path = localFile.getAbsolutePath();\n            int i = 0;\n            if ((i = path.lastIndexOf(File.pathSeparator)) != -1) {\n                if (path.length() > File.pathSeparator.length()) {\n                    new File(path.substring(0, i)).mkdirs();\n                }\n            }\n        }\n\n        if (localFile.isDirectory()) {\n            localFile = new File(localFile, remoteFile);\n        }\n\n        long startTime = System.currentTimeMillis();\n        long totalLength = le.getAttrs().getSize();\n\n        SftpProgressMonitor monitor = null;\n        boolean trackProgress = getVerbose() && totalLength > HUNDRED_KILOBYTES;\n        if (trackProgress) {\n            monitor = getProgressMonitor();\n        }\n        try {\n            log(\"Receiving: \" + remoteFile + \" : \" + le.getAttrs().getSize());\n            channel.get(remoteFile, localFile.getAbsolutePath(), monitor);\n        } finally {\n            long endTime = System.currentTimeMillis();\n            logStats(startTime, endTime, (int) totalLength);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [7, 14], [8, 15], [1, 16], [1, 17], [1, 18], [3, 19], [4, 20], [5, 21], [6, 22], [8, 23], [8, 24], [8, 25], [9, 26], [13, 27], [17, 28], [18, 29], [2, 30], [19, 31], [19, 32], [21, 33], [7, 34], [23, 35], [29, 36], [29, 37], [30, 38], [34, 39], [23, 40], [35, 41], [35, 42], [24, 43], [25, 44], [36, 45], [37, 46], [37, 47], [40, 48], [42, 49], [47, 50], [48, 51], [48, 52], [40, 53], [53, 54], [53, 55], [54, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 7], [15, 8], [16, 1], [17, 1], [18, 1], [19, 3], [20, 4], [21, 5], [22, 6], [23, 8], [24, 8], [25, 8], [26, 9], [27, 13], [28, 17], [29, 18], [30, 2], [31, 19], [32, 19], [33, 21], [34, 7], [35, 23], [36, 29], [37, 29], [38, 30], [39, 34], [40, 23], [41, 35], [42, 35], [43, 24], [44, 25], [45, 36], [46, 37], [47, 37], [48, 40], [49, 42], [50, 47], [51, 48], [52, 48], [53, 40], [54, 53], [55, 53], [56, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "ScpFromMessageBySftp", "code": "    public ScpFromMessageBySftp(boolean verbose,\n                                Session session,\n                                String aRemoteFile,\n                                File aLocalFile,\n                                boolean recursive) {\n        super(verbose, session);\n        this.verbose = verbose;\n        this.remoteFile = aRemoteFile;\n        this.localFile = aLocalFile;\n        this.isRecursive = recursive;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ScpFromMessageBySftp", "code": "    public ScpFromMessageBySftp(Session session,\n                                String aRemoteFile,\n                                File aLocalFile,\n                                boolean recursive) {\n        this(false, session, aRemoteFile, aLocalFile, recursive);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "xalan-2.6-7924", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/compiler/SecuritySupport12.java", "language": "java", "name": "org.apache.xpath.compiler.SecuritySupport12", "code": "class SecuritySupport12 extends SecuritySupport {\n\n    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;\n            }\n        });\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;\n                }\n            });\n    }\n\n    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;\n                }\n            });\n    }\n\n    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);\n                }\n            });\n    }\n\n    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();\n        }\n    }\n\n    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;\n                }\n            });\n    }\n    \n    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());\n                }\n            })).booleanValue();\n    }\n    \n    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "functions": [{"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "COND_EXPR", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [7, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 7], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [8, 10], [10, 11], [8, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 8], [11, 10], [12, 8], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLastModified", "code": "    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "camel-1.4-2320", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/dataset/SimpleDataSet.java", "language": "java", "name": "org.apache.camel.component.dataset.SimpleDataSet", "code": "public class SimpleDataSet extends DataSetSupport {\n    private Object defaultBody = \"<hello>world!</hello>\";\n    private Processor inputTransformer;\n\n    public SimpleDataSet() {\n    }\n\n    public SimpleDataSet(int size) {\n        super(size);\n    }\n\n\n    public Object getDefaultBody() {\n        return defaultBody;\n    }\n\n    public void setDefaultBody(Object defaultBody) {\n        this.defaultBody = defaultBody;\n    }\n\n    public Processor getInputTransformer() {\n        return inputTransformer;\n    }\n\n    public void setInputTransformer(Processor inputTransformer) {\n        this.inputTransformer = inputTransformer;\n    }\n\n\n    /**\n     * Creates the message body for a given message\n     */\n    protected Object createMessageBody(long messageIndex) {\n        return getDefaultBody();", "functions": [{"function_name": "getDefaultBody", "code": "    public Object getDefaultBody() {\n        return defaultBody;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefaultBody", "code": "    public void setDefaultBody(Object defaultBody) {\n        this.defaultBody = defaultBody;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInputTransformer", "code": "    public Processor getInputTransformer() {\n        return inputTransformer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInputTransformer", "code": "    public void setInputTransformer(Processor inputTransformer) {\n        this.inputTransformer = inputTransformer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createMessageBody", "code": "    protected Object createMessageBody(long messageIndex) {\n        return getDefaultBody();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SimpleDataSet", "code": "    public SimpleDataSet() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SimpleDataSet", "code": "    public SimpleDataSet(int size) {\n        super(size);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.1-4110", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "gnu/regexp/RETokenEnd.java", "language": "java", "name": "gnu.regexp.RETokenEnd", "code": "final class RETokenEnd extends REToken {\n    /**\n     * Indicates whether this token should match on a line break.\n     */\n  private String newline;\n\n  RETokenEnd(int subIndex,String newline) { \n    super(subIndex);\n    this.newline = newline;\n  }\n\n    boolean match(CharIndexed input, REMatch mymatch) {\n\tchar ch = input.charAt(mymatch.index);\n\tif (ch == CharIndexed.OUT_OF_BOUNDS)\n\t    return ((mymatch.eflags & RE.REG_NOTEOL)>0) ? \n\t\tfalse : next(input, mymatch);\n\tif (newline != null) {\n\t    char z;\n\t    int i = 0; // position in newline\n\t    do {\n\t\tz = newline.charAt(i);\n\t\tif (ch != z) return false;\n\t\t++i;\n\t\tch = input.charAt(mymatch.index + i);\n\t    } while (i < newline.length());\n\t    \n\t    return next(input, mymatch);\n\t}\n\treturn false;\n    }\n\n  void dump(StringBuffer os) {\n    os.append('$');", "functions": [{"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\tchar ch = input.charAt(mymatch.index);\n\tif (ch == CharIndexed.OUT_OF_BOUNDS)\n\t    return ((mymatch.eflags & RE.REG_NOTEOL)>0) ? \n\t\tfalse : next(input, mymatch);\n\tif (newline != null) {\n\t    char z;\n\t    int i = 0; // position in newline\n\t    do {\n\t\tz = newline.charAt(i);\n\t\tif (ch != z) return false;\n\t\t++i;\n\t\tch = input.charAt(mymatch.index + i);\n\t    } while (i < newline.length());\n\t    \n\t    return next(input, mymatch);\n\t}\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [3, 10], [2, 11], [2, 12], [2, 13], [2, 14], [8, 15], [9, 16], [4, 17], [11, 18], [12, 19], [16, 20], [16, 21], [16, 22], [12, 23], [19, 24], [13, 25], [22, 26], [22, 27], [12, 28], [23, 29], [23, 30], [12, 31], [28, 32], [29, 33], [31, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 3], [11, 2], [12, 2], [13, 2], [14, 2], [15, 8], [16, 9], [17, 4], [18, 11], [19, 12], [20, 16], [21, 16], [22, 16], [23, 12], [24, 19], [25, 13], [26, 22], [27, 22], [28, 12], [29, 23], [30, 23], [31, 12], [32, 28], [33, 29], [34, 31], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "dump", "code": "  void dump(StringBuffer os) {\n    os.append('$');", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RETokenEnd", "code": "  RETokenEnd(int subIndex,String newline) { \n    super(subIndex);\n    this.newline = newline;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.4-2408", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/sql/SqlComponent.java", "language": "java", "name": "org.apache.camel.component.sql.SqlComponent", "code": "public class SqlComponent extends DefaultComponent {\n\n    private DataSource dataSource;\n\n    public SqlComponent() {\n    }\n\n    public SqlComponent(CamelContext context) {\n        super(context);\n    }\n\n    @Override\n    protected Endpoint createEndpoint(String uri, String remaining, Map parameters)\n        throws Exception {\n        return new SqlEndpoint(uri, remaining.replaceAll(\"#\", \"?\"), this, dataSource, parameters);\n    }\n\n    public void setDataSource(DataSource dataSource) {\n        this.dataSource = dataSource;", "functions": [{"function_name": "createEndpoint", "code": "    @Override\n    protected Endpoint createEndpoint(String uri, String remaining, Map parameters)\n        throws Exception {\n        return new SqlEndpoint(uri, remaining.replaceAll(\"#\", \"?\"), this, dataSource, parameters);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setDataSource", "code": "    public void setDataSource(DataSource dataSource) {\n        this.dataSource = dataSource;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SqlComponent", "code": "    public SqlComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SqlComponent", "code": "    public SqlComponent(CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.0-1516", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/converter/jaxp/BytesSource.java", "language": "java", "name": "org.apache.camel.converter.jaxp.BytesSource", "code": "public class BytesSource extends StreamSource {\n    private byte[] data;\n\n    public BytesSource(byte[] data) {\n        this.data = data;\n    }\n\n    public BytesSource(byte[] data, String systemId) {\n        this.data = data;\n        setSystemId(systemId);\n    }\n\n    public InputStream getInputStream() {\n        return new ByteArrayInputStream(data);\n    }\n\n    public Reader getReader() {\n        return new InputStreamReader(getInputStream());\n    }\n\n    public byte[] getData() {\n        return data;\n    }\n\n    public String toString() {\n        return \"BytesSource[\" + new String(data) + \"]\";", "functions": [{"function_name": "getInputStream", "code": "    public InputStream getInputStream() {\n        return new ByteArrayInputStream(data);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReader", "code": "    public Reader getReader() {\n        return new InputStreamReader(getInputStream());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getData", "code": "    public byte[] getData() {\n        return data;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"BytesSource[\" + new String(data) + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "BytesSource", "code": "    public BytesSource(byte[] data) {\n        this.data = data;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "BytesSource", "code": "    public BytesSource(byte[] data, String systemId) {\n        this.data = data;\n        setSystemId(systemId);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-3.2-3732", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "bsh/BshMethod.java", "language": "java", "name": "bsh.BshMethod", "code": "class BshMethod implements java.io.Serializable \n{\n\tpublic BSHMethodDeclaration method;\n\n\t/* \n\t\tI believe this is always the namespace in which the method is\n\t\tdefined...  It is a back-reference for the node, which needs to\n\t\texecute under this namespace.\n\t\tSo it is not necessary to declare this transient, because we can\n\t\tonly be saved as part of our namespace anyway... (currently).\n\t*/\n\tNameSpace declaringNameSpace;\n\n\tprivate Class [] argTypes;\n\n\tpublic BshMethod( \n\t\tBSHMethodDeclaration method, NameSpace declaringNameSpace ) \n\t{\n\t\tthis.method = method;\n\t\tthis.declaringNameSpace = declaringNameSpace;\n\t\t\n\t}\n\n\t/**\n\t\tNote: bshmethod needs to re-evaluate arg types here\n\t\tThis is broken\n\t*/\n\tpublic Class [] getArgTypes() {\n\t\tif ( argTypes == null )\n\t\t\t// should re-eval here...\n\t\t\targTypes = method.params.argTypes ;\n\n\t\treturn argTypes;\n\t}\n\n\t/**\n\t\tInvoke the bsh method with the specified args, interpreter ref,\n\t\tand callstack.\n\t\tcallerInfo is the node representing the method invocation\n\t\tIt is used primarily for debugging in order to provide access to the \n\t\ttext of the construct that invoked the method through the namespace.\n\t\t@param callerInfo is the node representing the method invocation\n\t\t\tThis is used primarily for debugging and may be null.\n\t\t@param callstack is the callstack of course.  If you are using a \n\t\thacked version of BeanShell that exposed this method take a look\n\t\tat NameSpace invokeMethod to see how to make a fake callstack...\n\t*/\n\tpublic Object invokeDeclaredMethod( \n\t\tObject[] argValues, Interpreter interpreter, CallStack callstack,\n\t\t\tSimpleNode callerInfo ) \n\t\tthrows EvalError \n\t{\n\t\tif ( argValues == null )\n\t\t\targValues = new Object [] { };\n\n\t\t// Cardinality (number of args) mismatch\n\t\tif ( argValues.length != method.params.numArgs ) {\n\t\t\t// look for help string\n\t\t\ttry {\n\t\t\t\t// should check for null namespace here\n\t\t\t\tString help = \n\t\t\t\t\t(String)declaringNameSpace.get(\n\t\t\t\t\t\"bsh.help.\"+method.name, interpreter );\n\n\t\t\t\tinterpreter.println(help);\n\t\t\t\treturn Primitive.VOID;\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tthrow new EvalError( \n\t\t\t\t\t\"Wrong number of arguments for local method: \" \n\t\t\t\t\t+ method.name, callerInfo);\n\t\t\t}\n\t\t}\n\n\t\t// Make the local namespace for the method invocation\n\t\tNameSpace localNameSpace = new NameSpace( \n\t\t\tdeclaringNameSpace, method.name );\n\t\tlocalNameSpace.setNode( callerInfo );\n\n\t\t// set the method parameters in the local namespace\n\t\tfor(int i=0; i<method.params.numArgs; i++)\n\t\t{\n\t\t\t// Set typed variable\n\t\t\tif ( method.params.argTypes[i] != null ) \n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\targValues[i] = NameSpace.getAssignableForm(argValues[i],\n\t\t\t\t\t    method.params.argTypes[i]);\n\t\t\t\t}\n\t\t\t\tcatch(EvalError e) {\n\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\t\"Invalid argument: \" \n\t\t\t\t\t\t+ \"`\"+method.params.argNames[i]+\"'\" + \" for method: \" \n\t\t\t\t\t\t+ method.name + \" : \" + \n\t\t\t\t\t\te.getMessage(), callerInfo);\n\t\t\t\t}\n\t\t\t\tlocalNameSpace.setTypedVariable( method.params.argNames[i], \n\t\t\t\t\tmethod.params.argTypes[i], argValues[i], false);\n\t\t\t} \n\t\t\t// Set untyped variable\n\t\t\telse  // untyped param\n\t\t\t{\n\t\t\t\t// checkAssignable would catch this for typed param\n\t\t\t\tif ( argValues[i] == Primitive.VOID)\n\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\t\"Undefined variable or class name, parameter: \" +\n\t\t\t\t\t\tmethod.params.argNames[i] + \" to method: \" \n\t\t\t\t\t\t+ method.name, callerInfo);\n\t\t\t\telse\n\t\t\t\t\tlocalNameSpace.setVariable(\n\t\t\t\t\t\tmethod.params.argNames[i], argValues[i]);\n\t\t\t}\n\t\t}\n\n\t\t// Push the new namespace on the call stack\n\t\tcallstack.push( localNameSpace );\n\t\t// Invoke the method\n\t\tObject ret = method.block.eval( callstack, interpreter, true );\n\t\t// pop back to caller namespace\n\t\tcallstack.pop();\n\n\t\tif ( ret instanceof ReturnControl )\n\t\t{\n\t\t\tReturnControl rs = (ReturnControl)ret;\n\t\t\tif(rs.kind == rs.RETURN)\n\t\t\t\tret = ((ReturnControl)ret).value;\n\t\t\telse \n\t\t\t\t// This error points to the method, should it?\n\t\t\t\tthrow new EvalError(\"continue or break in method body\", method);\n\t\t}\n\n\t\t// there should be a check in here for an explicit value return \n\t\t// from a void type method... (throw evalerror)\n\n\t\tif(method.returnType != null)\n\t\t{\n\t\t\t// if void return type throw away any value\n\t\t\t// ideally, we'd error on an explicit 'return' of value\n\t\t\tif(method.returnType == Primitive.VOID)\n\t\t\t\treturn method.returnType;\n\n\t\t\t// return type is a class\n\t\t\ttry {\n\t\t\t\tret = NameSpace.getAssignableForm(\n\t\t\t\t\tret, (Class)method.returnType);\n\t\t\t}\n\t\t\tcatch(EvalError e) {\n\t\t\t\t// This error points to the method, should it?\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"Incorrect type returned from method: \" \n\t\t\t\t\t+ method.name + e.getMessage(), method);\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}\n\n\tpublic String toString() {\n\t\treturn \"Bsh Method: \"+method.name;", "functions": [{"function_name": "getArgTypes", "code": "\tpublic Class [] getArgTypes() {\n\t\tif ( argTypes == null )\n\t\t\t// should re-eval here...\n\t\t\targTypes = method.params.argTypes ;\n\n\t\treturn argTypes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "invokeDeclaredMethod", "code": "\tpublic Object invokeDeclaredMethod( \n\t\tObject[] argValues, Interpreter interpreter, CallStack callstack,\n\t\t\tSimpleNode callerInfo ) \n\t\tthrows EvalError \n\t{\n\t\tif ( argValues == null )\n\t\t\targValues = new Object [] { };\n\n\t\t// Cardinality (number of args) mismatch\n\t\tif ( argValues.length != method.params.numArgs ) {\n\t\t\t// look for help string\n\t\t\ttry {\n\t\t\t\t// should check for null namespace here\n\t\t\t\tString help = \n\t\t\t\t\t(String)declaringNameSpace.get(\n\t\t\t\t\t\"bsh.help.\"+method.name, interpreter );\n\n\t\t\t\tinterpreter.println(help);\n\t\t\t\treturn Primitive.VOID;\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tthrow new EvalError( \n\t\t\t\t\t\"Wrong number of arguments for local method: \" \n\t\t\t\t\t+ method.name, callerInfo);\n\t\t\t}\n\t\t}\n\n\t\t// Make the local namespace for the method invocation\n\t\tNameSpace localNameSpace = new NameSpace( \n\t\t\tdeclaringNameSpace, method.name );\n\t\tlocalNameSpace.setNode( callerInfo );\n\n\t\t// set the method parameters in the local namespace\n\t\tfor(int i=0; i<method.params.numArgs; i++)\n\t\t{\n\t\t\t// Set typed variable\n\t\t\tif ( method.params.argTypes[i] != null ) \n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\targValues[i] = NameSpace.getAssignableForm(argValues[i],\n\t\t\t\t\t    method.params.argTypes[i]);\n\t\t\t\t}\n\t\t\t\tcatch(EvalError e) {\n\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\t\"Invalid argument: \" \n\t\t\t\t\t\t+ \"`\"+method.params.argNames[i]+\"'\" + \" for method: \" \n\t\t\t\t\t\t+ method.name + \" : \" + \n\t\t\t\t\t\te.getMessage(), callerInfo);\n\t\t\t\t}\n\t\t\t\tlocalNameSpace.setTypedVariable( method.params.argNames[i], \n\t\t\t\t\tmethod.params.argTypes[i], argValues[i], false);\n\t\t\t} \n\t\t\t// Set untyped variable\n\t\t\telse  // untyped param\n\t\t\t{\n\t\t\t\t// checkAssignable would catch this for typed param\n\t\t\t\tif ( argValues[i] == Primitive.VOID)\n\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\t\"Undefined variable or class name, parameter: \" +\n\t\t\t\t\t\tmethod.params.argNames[i] + \" to method: \" \n\t\t\t\t\t\t+ method.name, callerInfo);\n\t\t\t\telse\n\t\t\t\t\tlocalNameSpace.setVariable(\n\t\t\t\t\t\tmethod.params.argNames[i], argValues[i]);\n\t\t\t}\n\t\t}\n\n\t\t// Push the new namespace on the call stack\n\t\tcallstack.push( localNameSpace );\n\t\t// Invoke the method\n\t\tObject ret = method.block.eval( callstack, interpreter, true );\n\t\t// pop back to caller namespace\n\t\tcallstack.pop();\n\n\t\tif ( ret instanceof ReturnControl )\n\t\t{\n\t\t\tReturnControl rs = (ReturnControl)ret;\n\t\t\tif(rs.kind == rs.RETURN)\n\t\t\t\tret = ((ReturnControl)ret).value;\n\t\t\telse \n\t\t\t\t// This error points to the method, should it?\n\t\t\t\tthrow new EvalError(\"continue or break in method body\", method);\n\t\t}\n\n\t\t// there should be a check in here for an explicit value return \n\t\t// from a void type method... (throw evalerror)\n\n\t\tif(method.returnType != null)\n\t\t{\n\t\t\t// if void return type throw away any value\n\t\t\t// ideally, we'd error on an explicit 'return' of value\n\t\t\tif(method.returnType == Primitive.VOID)\n\t\t\t\treturn method.returnType;\n\n\t\t\t// return type is a class\n\t\t\ttry {\n\t\t\t\tret = NameSpace.getAssignableForm(\n\t\t\t\t\tret, (Class)method.returnType);\n\t\t\t}\n\t\t\tcatch(EvalError e) {\n\t\t\t\t// This error points to the method, should it?\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"Incorrect type returned from method: \" \n\t\t\t\t\t+ method.name + e.getMessage(), method);\n\t\t\t}\n\t\t}\n\n\t\treturn ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "TRY", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "IF", "CALL", "TRY", "ASSIGN", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "ASSIGN", "CALL", "ASSIGN", "IF", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CATCH", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [3, 14], [0, 15], [0, 16], [5, 17], [0, 18], [7, 19], [8, 20], [2, 21], [2, 22], [13, 23], [3, 24], [3, 25], [4, 26], [5, 27], [6, 28], [7, 29], [8, 30], [20, 31], [21, 32], [22, 33], [22, 34], [24, 35], [24, 36], [26, 37], [27, 38], [5, 39], [29, 40], [29, 41], [29, 42], [32, 43], [21, 44], [35, 45], [24, 46], [27, 47], [27, 48], [38, 49], [40, 50], [29, 51], [43, 52], [44, 53], [45, 54], [47, 55], [47, 56], [27, 57], [48, 58], [50, 59], [52, 60], [47, 61], [55, 62], [57, 63], [58, 64], [48, 65], [59, 66], [42, 67], [60, 68], [60, 69], [62, 70], [64, 71], [65, 72], [66, 73], [67, 74], [69, 75], [70, 76], [71, 77], [74, 78], [76, 79], [76, 80], [77, 81], [77, 82], [80, 83], [82, 84], [82, 85], [85, 86], [86, 87], [86, 88], [88, 89], [88, 90], [90, 91], [91, 92], [91, 93], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 3], [15, 0], [16, 0], [17, 5], [18, 0], [19, 7], [20, 8], [21, 2], [22, 2], [23, 13], [24, 3], [25, 3], [26, 4], [27, 5], [28, 6], [29, 7], [30, 8], [31, 20], [32, 21], [33, 22], [34, 22], [35, 24], [36, 24], [37, 26], [38, 27], [39, 5], [40, 29], [41, 29], [42, 29], [43, 32], [44, 21], [45, 35], [46, 24], [47, 27], [48, 27], [49, 38], [50, 40], [51, 29], [52, 43], [53, 44], [54, 45], [55, 47], [56, 47], [57, 27], [58, 48], [59, 50], [60, 52], [61, 47], [62, 55], [63, 57], [64, 58], [65, 48], [66, 59], [67, 42], [68, 60], [69, 60], [70, 62], [71, 64], [72, 65], [73, 66], [74, 67], [75, 69], [76, 70], [77, 71], [78, 74], [79, 76], [80, 76], [81, 77], [82, 77], [83, 80], [84, 82], [85, 82], [86, 85], [87, 86], [88, 86], [89, 88], [90, 88], [91, 90], [92, 91], [93, 91], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93]]}, {"function_name": "toString", "code": "\tpublic String toString() {\n\t\treturn \"Bsh Method: \"+method.name;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BshMethod", "code": "\tpublic BshMethod( \n\t\tBSHMethodDeclaration method, NameSpace declaringNameSpace ) \n\t{\n\t\tthis.method = method;\n\t\tthis.declaringNameSpace = declaringNameSpace;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.7-1300", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/optional/ScriptFilter.java", "language": "java", "name": "org.apache.tools.ant.types.optional.ScriptFilter", "code": "public class ScriptFilter extends TokenFilter.ChainableReaderFilter {\n    /** script runner helper */\n    private ScriptRunnerHelper helper = new ScriptRunnerHelper();\n\n    /** script runner. */\n    private ScriptRunnerBase   runner = null;\n\n    /** the token used by the script */\n    private String token;\n\n    /**\n     * Set the project.\n     * @param project the owner of this component.\n     */\n    public void setProject(Project project) {\n        super.setProject(project);\n        helper.setProjectComponent(this);\n    }\n\n    /**\n     * Defines the language (required).\n     *\n     * @param language the scripting language name for the script.\n     */\n    public void setLanguage(String language) {\n        helper.setLanguage(language);\n    }\n\n    /**\n     * Initialize.\n     *\n     * @exception BuildException if someting goes wrong\n     */\n    private void init() throws BuildException {\n        if (runner != null) {\n            return;\n        }\n        runner = helper.getScriptRunner();\n    }\n\n    /**\n     * The current token\n     *\n     * @param token the string filtered by the script\n     */\n    public void setToken(String token) {\n        this.token = token;\n    }\n\n    /**\n     * The current token\n     *\n     * @return the string filtered by the script\n     */\n    public String getToken() {\n        return token;\n    }\n\n    /**\n     * Called filter the token.\n     * This sets the token in this object, calls\n     * the script and returns the token.\n     *\n     * @param token the token to be filtered\n     * @return the filtered token\n     */\n    public String filter(String token) {\n        init();\n        setToken(token);\n        runner.executeScript(\"ant_filter\");\n        return getToken();\n    }\n\n    /**\n     * Load the script from an external file ; optional.\n     *\n     * @param file the file containing the script source.\n     */\n    public void setSrc(File file) {\n        helper.setSrc(file);\n    }\n\n    /**\n     * The script text.\n     *\n     * @param text a component of the script text to be added.\n     */\n    public void addText(String text) {\n        helper.addText(text);\n    }\n\n    /**\n     * Defines the manager.\n     *\n     * @param manager the scripting manager.\n     */\n    public void setManager(String manager) {\n        helper.setManager(manager);\n    }\n    /**\n     * Set the classpath to be used when searching for classes and resources.\n     *\n     * @param classpath an Ant Path object containing the search path.\n     */\n    public void setClasspath(Path classpath) {\n        helper.setClasspath(classpath);\n    }\n\n    /**\n     * Classpath to be used when searching for classes and resources.\n     *\n     * @return an empty Path instance to be configured by Ant.\n     */\n    public Path createClasspath() {\n        return helper.createClasspath();\n    }\n\n    /**\n     * Set the classpath by reference.\n     *\n     * @param r a Reference to a Path instance to be used as the classpath\n     *          value.\n     */\n    public void setClasspathRef(Reference r) {\n        helper.setClasspathRef(r);", "functions": [{"function_name": "setProject", "code": "    public void setProject(Project project) {\n        super.setProject(project);\n        helper.setProjectComponent(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLanguage", "code": "    public void setLanguage(String language) {\n        helper.setLanguage(language);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "init", "code": "    private void init() throws BuildException {\n        if (runner != null) {\n            return;\n        }\n        runner = helper.getScriptRunner();", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setToken", "code": "    public void setToken(String token) {\n        this.token = token;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getToken", "code": "    public String getToken() {\n        return token;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "filter", "code": "    public String filter(String token) {\n        init();\n        setToken(token);\n        runner.executeScript(\"ant_filter\");\n        return getToken();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setSrc", "code": "    public void setSrc(File file) {\n        helper.setSrc(file);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addText", "code": "    public void addText(String text) {\n        helper.addText(text);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setManager", "code": "    public void setManager(String manager) {\n        helper.setManager(manager);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        helper.setClasspath(classpath);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        return helper.createClasspath();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        helper.setClasspathRef(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ivy-2.0-3515", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/lock/ArtifactLockStrategy.java", "language": "java", "name": "org.apache.ivy.plugins.lock.ArtifactLockStrategy", "code": "public class ArtifactLockStrategy extends FileBasedLockStrategy {\n    public ArtifactLockStrategy() {\n        init();\n    }\n\n    public ArtifactLockStrategy(boolean debugLocking) {\n        super(debugLocking);\n        init();\n    }\n\n    private void init() {\n        setName(\"artifact-lock\");\n    }\n\n    public boolean lockArtifact(Artifact artifact, File artifactFileToDownload) \n            throws InterruptedException {\n        return acquireLock(new File(artifactFileToDownload.getAbsolutePath() + \".lck\"));\n    }\n\n    public void unlockArtifact(Artifact artifact, File artifactFileToDownload) {\n        releaseLock(new File(artifactFileToDownload.getAbsolutePath() + \".lck\"));", "functions": [{"function_name": "init", "code": "    private void init() {\n        setName(\"artifact-lock\");", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "lockArtifact", "code": "    public boolean lockArtifact(Artifact artifact, File artifactFileToDownload) \n            throws InterruptedException {\n        return acquireLock(new File(artifactFileToDownload.getAbsolutePath() + \".lck\"));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "unlockArtifact", "code": "    public void unlockArtifact(Artifact artifact, File artifactFileToDownload) {\n        releaseLock(new File(artifactFileToDownload.getAbsolutePath() + \".lck\"));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ArtifactLockStrategy", "code": "    public ArtifactLockStrategy() {\n        init();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ArtifactLockStrategy", "code": "    public ArtifactLockStrategy(boolean debugLocking) {\n        super(debugLocking);\n        init();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-3082", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/builder/DataFormatClause.java", "language": "java", "name": "org.apache.camel.builder.DataFormatClause", "code": "public class DataFormatClause<T extends ProcessorType> {\n    private final T processorType;\n    private final Operation operation;\n\n    /**\n     * {@link DataFormat} operations.\n     */\n    public enum Operation {\n        Marshal, Unmarshal\n    }\n\n    public DataFormatClause(T processorType, Operation operation) {\n        this.processorType = processorType;\n        this.operation = operation;\n    }\n\n    /**\n     * Uses the\n     * data format for dealing with lots of different message formats such as SWIFT etc.\n     */\n    public T artixDS() {\n        return dataFormat(new ArtixDSDataFormat());\n    }\n\n    /**\n     * Uses the\n     * data format with the specified type of ComplexDataObject\n     * for marshalling and unmarshalling messages using the dataObject's default Source and Sink.\n     */\n    public T artixDS(Class<?> dataObjectType) {\n        return dataFormat(new ArtixDSDataFormat(dataObjectType));\n    }\n\n\n    /**\n     * Uses the\n     * data format with the specified type of ComplexDataObject\n     * for marshalling and unmarshalling messages using the dataObject's default Source and Sink.\n     */\n    public T artixDS(Class<?> elementType, ArtixDSContentType contentType) {\n        return dataFormat(new ArtixDSDataFormat(elementType, contentType));\n    }\n\n    /**\n     * Uses the\n     * data format with the specified content type\n     * for marshalling and unmarshalling messages\n     */\n    public T artixDS(ArtixDSContentType contentType) {\n        return dataFormat(new ArtixDSDataFormat(contentType));\n    }\n\n    /**\n     * Uses the CSV data format\n     */\n    public T csv() {\n        return dataFormat(new CsvDataFormat());\n    }\n\n    /**\n     * Uses the HL7 data format\n     */\n    public T hl7() {\n        return dataFormat(new HL7DataFormat());\n    }\n\n    /**\n     * Uses the JAXB data format\n     */\n    public T jaxb() {\n        return dataFormat(new JaxbDataFormat());\n    }\n\n    /**\n     * Uses the JAXB data format turning pretty printing on or off\n     */\n    public T jaxb(boolean prettyPrint) {\n        return dataFormat(new JaxbDataFormat(prettyPrint));\n    }\n\n    /**\n     * Uses the Java Serialization data format\n     */\n    public T serialization() {\n        return dataFormat(new SerializationDataFormat());\n    }\n\n    /**\n     * Uses the String data format\n     */\n    public T string() {\n        return string(null);\n    }\n\n    /**\n     * Uses the String data format supporting encoding using given charset\n     */\n    public T string(String charset) {\n        StringDataFormat sdf = new StringDataFormat();\n        sdf.setCharset(charset);\n        return dataFormat(sdf);\n    }\n\n    /**\n     * Uses the JAXB data format\n     */\n    public T xmlBeans() {\n        return dataFormat(new XMLBeansDataFormat());\n    }\n\n    /**\n     * Return WellFormed HTML (an XML Document) either \n     * {@link java.lang.String} or {@link org.w3c.dom.Node}\n     */\n    public T tidyMarkup(Class<?> dataObjectType) {\n        return dataFormat(new TidyMarkupDataFormat(dataObjectType));\n    }\n\n    /**\n     * Return TidyMarkup in the default format \n     *  as {@link org.w3c.dom.Node}\n     */\n    public T tidyMarkup() {\n        return dataFormat(new TidyMarkupDataFormat(Node.class));\n    }\n\n    \n    /**\n     * Uses the XStream data format\n     */\n    public T xstream() {\n        return dataFormat(new XStreamDataFormat());\n    }\n    \n    /**\n     * Uses the JSON data format\n     */\n    public T json() {\n        return dataFormat(new JsonDataFormat());\n    }\n\n    private T dataFormat(DataFormatType dataFormatType) {\n        switch (operation) {\n        case Unmarshal:\n            return (T)processorType.unmarshal(dataFormatType);\n        case Marshal:\n            return (T)processorType.marshal(dataFormatType);\n        default:\n            throw new IllegalArgumentException(\"Unknown DataFormat operation: \" + operation);\n        }\n    }\n\n    public T zip() {\n        ZipDataFormat zdf = new ZipDataFormat(Deflater.DEFAULT_COMPRESSION);\n        return dataFormat(zdf);\n    }\n\n    public T zip(int compressionLevel) {\n        ZipDataFormat zdf = new ZipDataFormat(compressionLevel);\n        return dataFormat(zdf);", "functions": [{"function_name": "artixDS", "code": "    public T artixDS() {\n        return dataFormat(new ArtixDSDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "artixDS", "code": "    public T artixDS(Class<?> dataObjectType) {\n        return dataFormat(new ArtixDSDataFormat(dataObjectType));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "artixDS", "code": "    public T artixDS(Class<?> elementType, ArtixDSContentType contentType) {\n        return dataFormat(new ArtixDSDataFormat(elementType, contentType));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "artixDS", "code": "    public T artixDS(ArtixDSContentType contentType) {\n        return dataFormat(new ArtixDSDataFormat(contentType));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "csv", "code": "    public T csv() {\n        return dataFormat(new CsvDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hl7", "code": "    public T hl7() {\n        return dataFormat(new HL7DataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "jaxb", "code": "    public T jaxb() {\n        return dataFormat(new JaxbDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "jaxb", "code": "    public T jaxb(boolean prettyPrint) {\n        return dataFormat(new JaxbDataFormat(prettyPrint));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "serialization", "code": "    public T serialization() {\n        return dataFormat(new SerializationDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "string", "code": "    public T string() {\n        return string(null);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "string", "code": "    public T string(String charset) {\n        StringDataFormat sdf = new StringDataFormat();\n        sdf.setCharset(charset);\n        return dataFormat(sdf);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "xmlBeans", "code": "    public T xmlBeans() {\n        return dataFormat(new XMLBeansDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "tidyMarkup", "code": "    public T tidyMarkup(Class<?> dataObjectType) {\n        return dataFormat(new TidyMarkupDataFormat(dataObjectType));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "tidyMarkup", "code": "    public T tidyMarkup() {\n        return dataFormat(new TidyMarkupDataFormat(Node.class));", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "xstream", "code": "    public T xstream() {\n        return dataFormat(new XStreamDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "json", "code": "    public T json() {\n        return dataFormat(new JsonDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dataFormat", "code": "    private T dataFormat(DataFormatType dataFormatType) {\n        switch (operation) {\n        case Unmarshal:\n            return (T)processorType.unmarshal(dataFormatType);\n        case Marshal:\n            return (T)processorType.marshal(dataFormatType);\n        default:\n            throw new IllegalArgumentException(\"Unknown DataFormat operation: \" + operation);", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [6, 7], [4, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 6], [8, 4], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "zip", "code": "    public T zip() {\n        ZipDataFormat zdf = new ZipDataFormat(Deflater.DEFAULT_COMPRESSION);\n        return dataFormat(zdf);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "zip", "code": "    public T zip(int compressionLevel) {\n        ZipDataFormat zdf = new ZipDataFormat(compressionLevel);\n        return dataFormat(zdf);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DataFormatClause", "code": "    public DataFormatClause(T processorType, Operation operation) {\n        this.processorType = processorType;\n        this.operation = operation;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.6-611", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/FilterSet.java", "language": "java", "name": "org.apache.tools.ant.types.FilterSet", "code": "public class FilterSet extends DataType implements Cloneable {\n\n    /**\n     * Individual filter component of filterset.\n     *\n     */\n    public static class Filter {\n        /** Token which will be replaced in the filter operation. */\n        String token;\n\n        /** The value which will replace the token in the filtering operation. */\n        String value;\n\n        /**\n         * Constructor for the Filter object.\n         *\n         * @param token  The token which will be replaced when filtering.\n         * @param value  The value which will replace the token when filtering.\n         */\n        public Filter(String token, String value) {\n           setToken(token);\n           setValue(value);\n        }\n\n        /**\n         * No-argument conmstructor.\n         */\n        public Filter() {\n        }\n\n        /**\n         * Sets the Token attribute of the Filter object.\n         *\n         * @param token  The new Token value.\n         */\n        public void setToken(String token) {\n           this.token = token;\n        }\n\n        /**\n         * Sets the Value attribute of the Filter object.\n         *\n         * @param value  The new Value value.\n         */\n        public void setValue(String value) {\n           this.value = value;\n        }\n\n        /**\n         * Gets the Token attribute of the Filter object.\n         *\n         * @return   The Token value.\n         */\n        public String getToken() {\n           return token;\n        }\n\n        /**\n         * Gets the Value attribute of the Filter object.\n         *\n         * @return   The Value value.\n         */\n        public String getValue() {\n           return value;\n        }\n     }\n\n    /**\n     * The filtersfile nested element.\n     *\n     */\n    public class FiltersFile {\n\n        /**\n         * Constructor for the FiltersFile object.\n         */\n        public FiltersFile() {\n        }\n\n        /**\n         * Sets the file from which filters will be read.\n         *\n         * @param file the file from which filters will be read.\n         */\n        public void setFile(File file) {\n           readFiltersFromFile(file);\n        }\n    }\n\n    /** The default token start string */\n    public static final String DEFAULT_TOKEN_START = \"@\";\n\n    /** The default token end string */\n    public static final String DEFAULT_TOKEN_END = \"@\";\n\n    private String startOfToken = DEFAULT_TOKEN_START;\n    private String endOfToken = DEFAULT_TOKEN_END;\n\n    /** Contains a list of parsed tokens */\n    private Vector passedTokens;\n    /** if a duplicate token is found, this is set to true */\n    private boolean duplicateToken = false;\n\n    private boolean recurse = true;\n    private Hashtable filterHash = null;\n\n    /**\n     * List of ordered filters and filter files.\n     */\n    private Vector filters = new Vector();\n\n    /**\n     * Default constructor.\n     */\n    public FilterSet() {\n    }\n\n    /**\n     * Create a Filterset from another filterset.\n     *\n     * @param filterset the filterset upon which this filterset will be based.\n     */\n    protected FilterSet(FilterSet filterset) {\n        super();\n        this.filters = (Vector) filterset.getFilters().clone();\n    }\n\n    /**\n     * Get the filters in the filter set.\n     *\n     * @return a Vector of Filter instances.\n     */\n    protected synchronized Vector getFilters() {\n        if (isReference()) {\n            return getRef().getFilters();\n        }\n        return filters;\n    }\n\n    /**\n     * Get the referenced filter set.\n     *\n     * @return the filterset from the reference.\n     */\n    protected FilterSet getRef() {\n        return (FilterSet) getCheckedRef(FilterSet.class, \"filterset\");\n    }\n\n    /**\n     * Gets the filter hash of the FilterSet.\n     *\n     * @return   The hash of the tokens and values for quick lookup.\n     */\n    public synchronized Hashtable getFilterHash() {\n        if (filterHash == null) {\n            filterHash = new Hashtable(getFilters().size());\n            for (Enumeration e = getFilters().elements(); e.hasMoreElements();) {\n               Filter filter = (Filter) e.nextElement();\n               filterHash.put(filter.getToken(), filter.getValue());\n            }\n        }\n        return filterHash;\n    }\n\n    /**\n     * Set the file containing the filters for this filterset.\n     *\n     * @param filtersFile sets the filter file from which to read filters\n     *        for this filter set.\n     * @exception BuildException if there is a problem reading the filters.\n     */\n    public void setFiltersfile(File filtersFile) throws BuildException {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        readFiltersFromFile(filtersFile);\n    }\n\n    /**\n     * Set the string used to id the beginning of a token.\n     *\n     * @param startOfToken  The new Begintoken value.\n     */\n    public void setBeginToken(String startOfToken) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (startOfToken == null || \"\".equals(startOfToken)) {\n            throw new BuildException(\"beginToken must not be empty\");\n        }\n        this.startOfToken = startOfToken;\n    }\n\n    /**\n     * Get the begin token for this filterset.\n     *\n     * @return the filter set's begin token for filtering.\n     */\n    public String getBeginToken() {\n        if (isReference()) {\n            return getRef().getBeginToken();\n        }\n        return startOfToken;\n    }\n\n    /**\n     * Set the string used to id the end of a token.\n     *\n     * @param endOfToken  The new Endtoken value.\n     */\n    public void setEndToken(String endOfToken) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (endOfToken == null || \"\".equals(endOfToken)) {\n            throw new BuildException(\"endToken must not be empty\");\n        }\n        this.endOfToken = endOfToken;\n    }\n\n    /**\n     * Get the end token for this filterset.\n     *\n     * @return the filter set's end token for replacement delimiting.\n     */\n    public String getEndToken() {\n        if (isReference()) {\n            return getRef().getEndToken();\n        }\n        return endOfToken;\n    }\n\n    /**\n     * Set whether recursive token expansion is enabled.\n     * @param recurse <code>boolean</code> whether to recurse.\n     */\n    public void setRecurse(boolean recurse) {\n        this.recurse = recurse;\n    }\n\n    /**\n     * Get whether recursive token expansion is enabled.\n     * @return <code>boolean</code> whether enabled.\n     */\n    public boolean isRecurse() {\n        return recurse;\n    }\n\n    /**\n     * Read the filters from the given file.\n     *\n     * @param filtersFile        the file from which filters are read.\n     * @exception BuildException when the file cannot be read.\n     */\n    public synchronized void readFiltersFromFile(File filtersFile) throws BuildException {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (!filtersFile.exists()) {\n            throw new BuildException(\"Could not read filters from file \"\n                                     + filtersFile + \" as it doesn't exist.\");\n        }\n        if (filtersFile.isFile()) {\n           log(\"Reading filters from \" + filtersFile, Project.MSG_VERBOSE);\n           FileInputStream in = null;\n           try {\n              Properties props = new Properties();\n              in = new FileInputStream(filtersFile);\n              props.load(in);\n\n              Enumeration e = props.propertyNames();\n              Vector filts = getFilters();\n              while (e.hasMoreElements()) {\n                 String strPropName = (String) e.nextElement();\n                 String strValue = props.getProperty(strPropName);\n                 filts.addElement(new Filter(strPropName, strValue));\n              }\n           } catch (Exception ex) {\n              throw new BuildException(\"Could not read filters from file: \"\n                + filtersFile);\n           } finally {\n              if (in != null) {\n                 try {\n                    in.close();\n                 } catch (IOException ioex) {\n                 }\n              }\n           }\n        } else {\n           throw new BuildException(\"Must specify a file not a directory in \"\n            + \"the filtersfile attribute:\" + filtersFile);\n        }\n    }\n\n    /**\n     * Does replacement on the given string with token matching.\n     * This uses the defined begintoken and endtoken values which default\n     * to @ for both.\n     * This resets the passedTokens and calls iReplaceTokens to\n     * do the actual replacements.\n     *\n     * @param line  The line in which to process embedded tokens.\n     * @return      The input string after token replacement.\n     */\n    public synchronized String replaceTokens(String line) {\n        return iReplaceTokens(line);\n    }\n\n    /**\n     * Does replacement on the given string with token matching.\n     * This uses the defined begintoken and endtoken values which default\n     * to @ for both.\n     *\n     * @param line  The line to process the tokens in.\n     * @return      The string with the tokens replaced.\n     */\n    private synchronized String iReplaceTokens(String line) {\n        String beginToken = getBeginToken();\n        String endToken = getEndToken();\n        int index = line.indexOf(beginToken);\n\n        if (index > -1) {\n            Hashtable tokens = getFilterHash();\n            try {\n                StringBuffer b = new StringBuffer();\n                int i = 0;\n                String token = null;\n                String value = null;\n\n                do {\n                    int endIndex = line.indexOf(endToken,\n                        index + beginToken.length() + 1);\n                    if (endIndex == -1) {\n                        break;\n                    }\n                    token\n                        = line.substring(index + beginToken.length(), endIndex);\n                    b.append(line.substring(i, index));\n                    if (tokens.containsKey(token)) {\n                        value = (String) tokens.get(token);\n                        if (recurse && !value.equals(token)) {\n                            value = replaceTokens(value, token);\n                        }\n                        log(\"Replacing: \" + beginToken + token + endToken\n                            + \" -> \" + value, Project.MSG_VERBOSE);\n                        b.append(value);\n                        i = index + beginToken.length() + token.length()\n                            + endToken.length();\n                    } else {\n                        b.append(beginToken);\n                        i = index + beginToken.length();\n                    }\n                } while ((index = line.indexOf(beginToken, i)) > -1);\n\n                b.append(line.substring(i));\n                return b.toString();\n            } catch (StringIndexOutOfBoundsException e) {\n                return line;\n            }\n        } else {\n           return line;\n        }\n    }\n\n    /**\n     * This parses tokens which point to tokens.\n     * It also maintains a list of currently used tokens, so we cannot\n     * get into an infinite loop.\n     * @param line the value / token to parse.\n     * @param parent the parent token (= the token it was parsed from).\n     */\n    private synchronized String replaceTokens(String line, String parent)\n        throws BuildException {\n        String beginToken = getBeginToken();\n        String endToken = getEndToken();\n        if (passedTokens == null) {\n            passedTokens = new Vector();\n        }\n        if (passedTokens.contains(parent) && !duplicateToken) {\n            duplicateToken = true;\n            System.out.println(\n                \"Infinite loop in tokens. Currently known tokens : \"\n                + passedTokens.toString() + \"\\nProblem token : \" + beginToken\n                + parent + endToken + \" called from \" + beginToken\n                + passedTokens.lastElement().toString() + endToken);\n            return parent;\n        }\n        passedTokens.addElement(parent);\n        String value = iReplaceTokens(line);\n        if (value.indexOf(beginToken) == -1 && !duplicateToken) {\n            duplicateToken = false;\n            passedTokens = null;\n        } else if (duplicateToken) {\n            if (passedTokens.size() > 0) {\n                value = (String) passedTokens.remove(passedTokens.size() - 1);\n                if (passedTokens.size() == 0) {\n                    value = beginToken + value + endToken;\n                    duplicateToken = false;\n                }\n            }\n        }\n        return value;\n    }\n\n    /**\n     * Add a new filter.\n     *\n     * @param filter the filter to be added.\n     */\n    public synchronized void addFilter(Filter filter) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        filters.addElement(filter);\n        filterHash = null;\n    }\n\n    /**\n     * Create a new FiltersFile.\n     *\n     * @return The filtersfile that was created.\n     */\n    public FiltersFile createFiltersfile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return new FiltersFile();\n    }\n\n    /**\n     * Add a new filter made from the given token and value.\n     *\n     * @param token The token for the new filter.\n     * @param value The value for the new filter.\n     */\n    public synchronized void addFilter(String token, String value) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        addFilter(new Filter(token, value));\n    }\n\n    /**\n     * Add a Filterset to this filter set.\n     *\n     * @param filterSet the filterset to be added to this filterset\n     */\n    public synchronized void addConfiguredFilterSet(FilterSet filterSet) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        for (Enumeration e = filterSet.getFilters().elements(); e.hasMoreElements();) {\n            addFilter((Filter) e.nextElement());\n        }\n    }\n\n    /**\n    * Test to see if this filter set has filters.\n    *\n    * @return Return true if there are filters in this set.\n    */\n    public synchronized boolean hasFilters() {\n        return getFilters().size() > 0;\n    }\n\n    /**\n     * Clone the filterset.\n     *\n     * @return a deep clone of this filterset.\n     *\n     * @throws BuildException if the clone cannot be performed.\n     */\n    public synchronized Object clone() throws BuildException {\n        if (isReference()) {\n            return ((FilterSet) getRef()).clone();\n        } else {\n            try {\n                FilterSet fs = (FilterSet) super.clone();\n                fs.filters = (Vector) getFilters().clone();\n                fs.setProject(getProject());\n                return fs;\n            } catch (CloneNotSupportedException e) {\n                throw new BuildException(e);", "functions": [{"function_name": "getFilters", "code": "    protected synchronized Vector getFilters() {\n        if (isReference()) {\n            return getRef().getFilters();\n        }\n        return filters;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getRef", "code": "    protected FilterSet getRef() {\n        return (FilterSet) getCheckedRef(FilterSet.class, \"filterset\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFilterHash", "code": "    public synchronized Hashtable getFilterHash() {\n        if (filterHash == null) {\n            filterHash = new Hashtable(getFilters().size());\n            for (Enumeration e = getFilters().elements(); e.hasMoreElements();) {\n               Filter filter = (Filter) e.nextElement();\n               filterHash.put(filter.getToken(), filter.getValue());\n            }\n        }\n        return filterHash;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [2, 7], [4, 8], [7, 9], [4, 10], [4, 11], [9, 12], [10, 13], [10, 14], [11, 15], [12, 16], [8, 17], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 2], [8, 4], [9, 7], [10, 4], [11, 4], [12, 9], [13, 10], [14, 10], [15, 11], [16, 12], [17, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setFiltersfile", "code": "    public void setFiltersfile(File filtersFile) throws BuildException {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        readFiltersFromFile(filtersFile);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setBeginToken", "code": "    public void setBeginToken(String startOfToken) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (startOfToken == null || \"\".equals(startOfToken)) {\n            throw new BuildException(\"beginToken must not be empty\");\n        }\n        this.startOfToken = startOfToken;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [5, 9], [2, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 5], [10, 2], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getBeginToken", "code": "    public String getBeginToken() {\n        if (isReference()) {\n            return getRef().getBeginToken();\n        }\n        return startOfToken;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setEndToken", "code": "    public void setEndToken(String endOfToken) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (endOfToken == null || \"\".equals(endOfToken)) {\n            throw new BuildException(\"endToken must not be empty\");\n        }\n        this.endOfToken = endOfToken;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [5, 9], [2, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 5], [10, 2], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getEndToken", "code": "    public String getEndToken() {\n        if (isReference()) {\n            return getRef().getEndToken();\n        }\n        return endOfToken;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setRecurse", "code": "    public void setRecurse(boolean recurse) {\n        this.recurse = recurse;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isRecurse", "code": "    public boolean isRecurse() {\n        return recurse;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "readFiltersFromFile", "code": "    public synchronized void readFiltersFromFile(File filtersFile) throws BuildException {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (!filtersFile.exists()) {\n            throw new BuildException(\"Could not read filters from file \"\n                                     + filtersFile + \" as it doesn't exist.\");\n        }\n        if (filtersFile.isFile()) {\n           log(\"Reading filters from \" + filtersFile, Project.MSG_VERBOSE);\n           FileInputStream in = null;\n           try {\n              Properties props = new Properties();\n              in = new FileInputStream(filtersFile);\n              props.load(in);\n\n              Enumeration e = props.propertyNames();\n              Vector filts = getFilters();\n              while (e.hasMoreElements()) {\n                 String strPropName = (String) e.nextElement();\n                 String strValue = props.getProperty(strPropName);\n                 filts.addElement(new Filter(strPropName, strValue));\n              }\n           } catch (Exception ex) {\n              throw new BuildException(\"Could not read filters from file: \"\n                + filtersFile);\n           } finally {\n              if (in != null) {\n                 try {\n                    in.close();\n                 } catch (IOException ioex) {\n                 }\n              }\n           }\n        } else {\n           throw new BuildException(\"Must specify a file not a directory in \"\n            + \"the filtersfile attribute:\" + filtersFile);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "TRY", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "IF", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [8, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [1, 20], [11, 21], [12, 22], [13, 23], [14, 24], [15, 25], [16, 26], [9, 27], [9, 28], [10, 29], [20, 30], [21, 31], [23, 32], [14, 33], [24, 34], [25, 35], [16, 36], [16, 37], [17, 38], [18, 39], [28, 40], [19, 41], [30, 42], [31, 43], [31, 44], [32, 45], [32, 46], [33, 47], [35, 48], [16, 49], [44, 50], [33, 51], [48, 52], [49, 53], [36, 54], [37, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 8], [14, 9], [15, 9], [16, 9], [17, 9], [18, 9], [19, 9], [20, 1], [21, 11], [22, 12], [23, 13], [24, 14], [25, 15], [26, 16], [27, 9], [28, 9], [29, 10], [30, 20], [31, 21], [32, 23], [33, 14], [34, 24], [35, 25], [36, 16], [37, 16], [38, 17], [39, 18], [40, 28], [41, 19], [42, 30], [43, 31], [44, 31], [45, 32], [46, 32], [47, 33], [48, 35], [49, 16], [50, 44], [51, 33], [52, 48], [53, 49], [54, 36], [55, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "replaceTokens", "code": "    public synchronized String replaceTokens(String line) {\n        return iReplaceTokens(line);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "iReplaceTokens", "code": "    private synchronized String iReplaceTokens(String line) {\n        String beginToken = getBeginToken();\n        String endToken = getEndToken();\n        int index = line.indexOf(beginToken);\n\n        if (index > -1) {\n            Hashtable tokens = getFilterHash();\n            try {\n                StringBuffer b = new StringBuffer();\n                int i = 0;\n                String token = null;\n                String value = null;\n\n                do {\n                    int endIndex = line.indexOf(endToken,\n                        index + beginToken.length() + 1);\n                    if (endIndex == -1) {\n                        break;\n                    }\n                    token\n                        = line.substring(index + beginToken.length(), endIndex);\n                    b.append(line.substring(i, index));\n                    if (tokens.containsKey(token)) {\n                        value = (String) tokens.get(token);\n                        if (recurse && !value.equals(token)) {\n                            value = replaceTokens(value, token);\n                        }\n                        log(\"Replacing: \" + beginToken + token + endToken\n                            + \" -> \" + value, Project.MSG_VERBOSE);\n                        b.append(value);\n                        i = index + beginToken.length() + token.length()\n                            + endToken.length();\n                    } else {\n                        b.append(beginToken);\n                        i = index + beginToken.length();\n                    }\n                } while ((index = line.indexOf(beginToken, i)) > -1);\n\n                b.append(line.substring(i));\n                return b.toString();\n            } catch (StringIndexOutOfBoundsException e) {\n                return line;\n            }\n        } else {\n           return line;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [2, 11], [3, 12], [4, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [14, 21], [15, 22], [8, 23], [16, 24], [9, 25], [23, 26], [16, 27], [16, 28], [16, 29], [24, 30], [24, 31], [17, 32], [18, 33], [19, 34], [20, 35], [27, 36], [16, 37], [16, 38], [28, 39], [31, 40], [27, 41], [37, 42], [38, 43], [28, 44], [39, 45], [29, 46], [27, 47], [27, 48], [27, 49], [27, 50], [27, 51], [41, 52], [27, 53], [43, 54], [46, 55], [47, 56], [49, 57], [51, 58], [52, 59], [54, 60], [55, 61], [55, 62], [56, 63], [57, 64], [57, 65], [58, 66], [41, 67], [53, 68], [62, 69], [65, 70], [65, 71], [66, 72], [66, 73], [67, 74], [71, 75], [73, 76], [76, 77], [77, 78], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 2], [12, 3], [13, 4], [14, 8], [15, 8], [16, 8], [17, 8], [18, 8], [19, 8], [20, 8], [21, 14], [22, 15], [23, 8], [24, 16], [25, 9], [26, 23], [27, 16], [28, 16], [29, 16], [30, 24], [31, 24], [32, 17], [33, 18], [34, 19], [35, 20], [36, 27], [37, 16], [38, 16], [39, 28], [40, 31], [41, 27], [42, 37], [43, 38], [44, 28], [45, 39], [46, 29], [47, 27], [48, 27], [49, 27], [50, 27], [51, 27], [52, 41], [53, 27], [54, 43], [55, 46], [56, 47], [57, 49], [58, 51], [59, 52], [60, 54], [61, 55], [62, 55], [63, 56], [64, 57], [65, 57], [66, 58], [67, 41], [68, 53], [69, 62], [70, 65], [71, 65], [72, 66], [73, 66], [74, 67], [75, 71], [76, 73], [77, 76], [78, 77], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78]]}, {"function_name": "replaceTokens", "code": "    private synchronized String replaceTokens(String line, String parent)\n        throws BuildException {\n        String beginToken = getBeginToken();\n        String endToken = getEndToken();\n        if (passedTokens == null) {\n            passedTokens = new Vector();\n        }\n        if (passedTokens.contains(parent) && !duplicateToken) {\n            duplicateToken = true;\n            System.out.println(\n                \"Infinite loop in tokens. Currently known tokens : \"\n                + passedTokens.toString() + \"\\nProblem token : \" + beginToken\n                + parent + endToken + \" called from \" + beginToken\n                + passedTokens.lastElement().toString() + endToken);\n            return parent;\n        }\n        passedTokens.addElement(parent);\n        String value = iReplaceTokens(line);\n        if (value.indexOf(beginToken) == -1 && !duplicateToken) {\n            duplicateToken = false;\n            passedTokens = null;\n        } else if (duplicateToken) {\n            if (passedTokens.size() > 0) {\n                value = (String) passedTokens.remove(passedTokens.size() - 1);\n                if (passedTokens.size() == 0) {\n                    value = beginToken + value + endToken;\n                    duplicateToken = false;\n                }\n            }\n        }\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [0, 12], [4, 13], [5, 14], [11, 15], [3, 16], [4, 17], [13, 18], [14, 19], [6, 20], [7, 21], [10, 22], [2, 23], [2, 24], [15, 25], [15, 26], [4, 27], [4, 28], [5, 29], [22, 30], [23, 31], [24, 32], [27, 33], [28, 34], [29, 35], [22, 36], [30, 37], [30, 38], [33, 39], [36, 40], [22, 41], [39, 42], [39, 43], [40, 44], [40, 45], [42, 46], [43, 47], [36, 48], [36, 49], [41, 50], [47, 51], [47, 52], [48, 53], [49, 54], [50, 55], [52, 56], [54, 57], [55, 58], [55, 59], [56, 60], [60, 61], [61, 62], [61, 63], [63, 64], [63, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 0], [13, 4], [14, 5], [15, 11], [16, 3], [17, 4], [18, 13], [19, 14], [20, 6], [21, 7], [22, 10], [23, 2], [24, 2], [25, 15], [26, 15], [27, 4], [28, 4], [29, 5], [30, 22], [31, 23], [32, 24], [33, 27], [34, 28], [35, 29], [36, 22], [37, 30], [38, 30], [39, 33], [40, 36], [41, 22], [42, 39], [43, 39], [44, 40], [45, 40], [46, 42], [47, 43], [48, 36], [49, 36], [50, 41], [51, 47], [52, 47], [53, 48], [54, 49], [55, 50], [56, 52], [57, 54], [58, 55], [59, 55], [60, 56], [61, 60], [62, 61], [63, 61], [64, 63], [65, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "addFilter", "code": "    public synchronized void addFilter(Filter filter) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        filters.addElement(filter);\n        filterHash = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "createFiltersfile", "code": "    public FiltersFile createFiltersfile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return new FiltersFile();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addFilter", "code": "    public synchronized void addFilter(String token, String value) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        addFilter(new Filter(token, value));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addConfiguredFilterSet", "code": "    public synchronized void addConfiguredFilterSet(FilterSet filterSet) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        for (Enumeration e = filterSet.getFilters().elements(); e.hasMoreElements();) {\n            addFilter((Filter) e.nextElement());", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [6, 9], [8, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 6], [10, 8], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "hasFilters", "code": "    public synchronized boolean hasFilters() {\n        return getFilters().size() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "clone", "code": "    public synchronized Object clone() throws BuildException {\n        if (isReference()) {\n            return ((FilterSet) getRef()).clone();\n        } else {\n            try {\n                FilterSet fs = (FilterSet) super.clone();\n                fs.filters = (Vector) getFilters().clone();\n                fs.setProject(getProject());\n                return fs;\n            } catch (CloneNotSupportedException e) {\n                throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "TRY", "RETURN", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [3, 6], [3, 7], [5, 8], [3, 9], [3, 10], [4, 11], [8, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 3], [7, 3], [8, 5], [9, 3], [10, 3], [11, 4], [12, 8], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "FilterSet", "code": "    public FilterSet() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FilterSet", "code": "    protected FilterSet(FilterSet filterset) {\n        super();\n        this.filters = (Vector) filterset.getFilters().clone();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.6-3041", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/file/remote/RemoteFileProducer.java", "language": "java", "name": "org.apache.camel.component.file.remote.RemoteFileProducer", "code": "public abstract class RemoteFileProducer<T extends RemoteFileExchange> extends DefaultProducer<T> {\n    protected final transient Log log = LogFactory.getLog(getClass());\n    protected RemoteFileEndpoint<T> endpoint;\n\n    protected RemoteFileProducer(RemoteFileEndpoint<T> endpoint) {\n        super(endpoint);\n        this.endpoint = endpoint;\n    }\n\n    protected String createFileName(Message message, RemoteFileConfiguration fileConfig) {\n        String answer;\n\n        String name = message.getHeader(FileComponent.HEADER_FILE_NAME, String.class);\n\n        Expression expression = endpoint.getConfiguration().getExpression();\n        if (name != null) {\n            if (name.indexOf(\"${\") > -1) {\n                if (log.isDebugEnabled()) {\n                    log.debug(FileComponent.HEADER_FILE_NAME + \" contains a FileLanguage expression: \" + name);\n                }\n                expression = FileLanguage.file(name);\n            }\n        }\n        if (expression != null) {\n            if (log.isDebugEnabled()) {\n                log.debug(\"Filename evaluated as expression: \" + expression);\n            }\n            Object result = expression.evaluate(message.getExchange());\n            name = message.getExchange().getContext().getTypeConverter().convertTo(String.class, result);\n        }        \n\n        String endpointFile = fileConfig.getFile();\n        if (fileConfig.isDirectory()) {\n            String baseDir = \"\";\n            if (endpointFile.length() > 0) {\n                baseDir = endpointFile + (endpointFile.endsWith(\"/\") ? \"\" : \"/\");\n            }\n            String fileName = (name != null) ? name : endpoint.getGeneratedFileName(message); \n            answer = baseDir + fileName;\n        } else {\n            answer = endpointFile;\n        }\n\n        message.setHeader(FileComponent.HEADER_FILE_NAME_PRODUCED, answer);\n\n        return answer;\n    }\n\n    protected String remoteServer() {\n        return endpoint.getConfiguration().remoteServerInformation();\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        log.info(\"Starting\");\n        super.doStart();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        log.info(\"Stopping\");\n        try {\n            disconnect();\n        } catch (Exception e) {\n            log.warn(\"Exception occured during disconecting from \" + remoteServer() + \". \"\n                     + e.getClass().getCanonicalName() + \" message: \" + e.getMessage());\n        }\n        super.doStop();\n    }\n\n    protected abstract void connectIfNecessary() throws Exception;\n\n    protected abstract void disconnect() throws Exception;", "functions": [{"function_name": "createFileName", "code": "    protected String createFileName(Message message, RemoteFileConfiguration fileConfig) {\n        String answer;\n\n        String name = message.getHeader(FileComponent.HEADER_FILE_NAME, String.class);\n\n        Expression expression = endpoint.getConfiguration().getExpression();\n        if (name != null) {\n            if (name.indexOf(\"${\") > -1) {\n                if (log.isDebugEnabled()) {\n                    log.debug(FileComponent.HEADER_FILE_NAME + \" contains a FileLanguage expression: \" + name);\n                }\n                expression = FileLanguage.file(name);\n            }\n        }\n        if (expression != null) {\n            if (log.isDebugEnabled()) {\n                log.debug(\"Filename evaluated as expression: \" + expression);\n            }\n            Object result = expression.evaluate(message.getExchange());\n            name = message.getExchange().getContext().getTypeConverter().convertTo(String.class, result);\n        }        \n\n        String endpointFile = fileConfig.getFile();\n        if (fileConfig.isDirectory()) {\n            String baseDir = \"\";\n            if (endpointFile.length() > 0) {\n                baseDir = endpointFile + (endpointFile.endsWith(\"/\") ? \"\" : \"/\");\n            }\n            String fileName = (name != null) ? name : endpoint.getGeneratedFileName(message); \n            answer = baseDir + fileName;\n        } else {\n            answer = endpointFile;\n        }\n\n        message.setHeader(FileComponent.HEADER_FILE_NAME_PRODUCED, answer);\n\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [4, 13], [5, 14], [2, 15], [2, 16], [2, 17], [3, 18], [4, 19], [4, 20], [13, 21], [5, 22], [14, 23], [6, 24], [7, 25], [2, 26], [2, 27], [16, 28], [4, 29], [20, 30], [22, 31], [24, 32], [27, 33], [15, 34], [28, 35], [28, 36], [17, 37], [29, 38], [19, 39], [22, 40], [31, 41], [31, 42], [34, 43], [34, 44], [16, 45], [38, 46], [38, 47], [38, 48], [39, 49], [20, 50], [22, 51], [40, 52], [42, 53], [44, 54], [45, 55], [50, 56], [51, 57], [55, 58], [56, 59], [40, 60], [58, 61], [58, 62], [58, 63], [60, 64], [63, 65], [64, 66], [66, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 4], [14, 5], [15, 2], [16, 2], [17, 2], [18, 3], [19, 4], [20, 4], [21, 13], [22, 5], [23, 14], [24, 6], [25, 7], [26, 2], [27, 2], [28, 16], [29, 4], [30, 20], [31, 22], [32, 24], [33, 27], [34, 15], [35, 28], [36, 28], [37, 17], [38, 29], [39, 19], [40, 22], [41, 31], [42, 31], [43, 34], [44, 34], [45, 16], [46, 38], [47, 38], [48, 38], [49, 39], [50, 20], [51, 22], [52, 40], [53, 42], [54, 44], [55, 45], [56, 50], [57, 51], [58, 55], [59, 56], [60, 40], [61, 58], [62, 58], [63, 58], [64, 60], [65, 63], [66, 64], [67, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "remoteServer", "code": "    protected String remoteServer() {\n        return endpoint.getConfiguration().remoteServerInformation();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        log.info(\"Starting\");\n        super.doStart();", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        log.info(\"Stopping\");\n        try {\n            disconnect();\n        } catch (Exception e) {\n            log.warn(\"Exception occured during disconecting from \" + remoteServer() + \". \"\n                     + e.getClass().getCanonicalName() + \" message: \" + e.getMessage());\n        }\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [3, 5], [2, 6], [6, 7], [7, 8], [7, 9], [9, 10], [9, 11], [11, 12], [11, 13], [12, 14], [13, 15], [13, 16], [16, 17], [16, 18], [1, 0], [2, 1], [3, 0], [4, 1], [5, 3], [6, 2], [7, 6], [8, 7], [9, 7], [10, 9], [11, 9], [12, 11], [13, 11], [14, 12], [15, 13], [16, 13], [17, 16], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "connectIfNecessary", "code": "    protected abstract void connectIfNecessary() throws Exception;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "disconnect", "code": "    protected abstract void disconnect() throws Exception;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "RemoteFileProducer", "code": "    protected RemoteFileProducer(RemoteFileEndpoint<T> endpoint) {\n        super(endpoint);\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1351", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/listener/CommonsLoggingListener.java", "language": "java", "name": "org.apache.tools.ant.listener.CommonsLoggingListener", "code": "public class CommonsLoggingListener implements BuildListener, BuildLogger {\n\n    /** Indicates if the listener was initialized. */\n    private boolean initialized = false;\n\n    private LogFactory logFactory;\n\n    /**\n     * name of the category under which target events are logged\n     */\n    public static final String TARGET_LOG = \"org.apache.tools.ant.Target\";\n    /**\n     * name of the category under which project events are logged\n     */\n    public static final String PROJECT_LOG = \"org.apache.tools.ant.Project\";\n\n    /**\n     * Construct the listener and make sure that a LogFactory\n     * can be obtained.\n     */\n    public CommonsLoggingListener() {\n    }\n\n    private Log getLog(String cat, String suffix) {\n        if (suffix != null) {\n            suffix = suffix.replace('.', '-');\n            suffix = suffix.replace(' ', '-');\n            cat = cat + \".\" + suffix;\n        }\n        PrintStream tmpOut = System.out;\n        PrintStream tmpErr = System.err;\n        System.setOut(out);\n        System.setErr(err);\n\n        if (!initialized) {\n            try {\n                logFactory = LogFactory.getFactory();\n            } catch (LogConfigurationException e) {\n                e.printStackTrace(System.err);\n                return null;\n            }\n        }\n\n        initialized = true;\n        Log log = logFactory.getInstance(cat);\n        System.setOut(tmpOut);\n        System.setErr(tmpErr);\n        return log;\n    }\n\n    /** {@inheritDoc}. */\n    public void buildStarted(BuildEvent event) {\n        String categoryString = PROJECT_LOG;\n        Log log = getLog(categoryString, null);\n\n        if (initialized) {\n            realLog(log, \"Build started.\", Project.MSG_INFO, null);\n        }\n    }\n\n    /** {@inheritDoc}. */\n    public void buildFinished(BuildEvent event) {\n        if (initialized) {\n            String categoryString = PROJECT_LOG;\n            Log log = getLog(categoryString, event.getProject().getName());\n\n            if (event.getException() == null) {\n                realLog(log, \"Build finished.\", Project.MSG_INFO, null);\n            } else {\n                realLog(log, \"Build finished with error.\", Project.MSG_ERR,\n                        event.getException());\n            }\n        }\n    }\n\n    /**\n     * @see BuildListener#targetStarted\n     */\n    /** {@inheritDoc}. */\n    public void targetStarted(BuildEvent event) {\n        if (initialized) {\n            Log log = getLog(TARGET_LOG,\n                    event.getTarget().getName());\n            realLog(log, \"Start: \" + event.getTarget().getName(),\n                    Project.MSG_VERBOSE, null);\n        }\n    }\n\n    /**\n     * @see BuildListener#targetFinished\n     */\n    /** {@inheritDoc}. */\n    public void targetFinished(BuildEvent event) {\n        if (initialized) {\n            String targetName = event.getTarget().getName();\n            Log log = getLog(TARGET_LOG,\n                    event.getTarget().getName());\n            if (event.getException() == null) {\n                realLog(log, \"Target end: \" + targetName, Project.MSG_DEBUG, null);\n            } else {\n                realLog(log, \"Target \\\"\" + targetName\n                        + \"\\\" finished with error.\", Project.MSG_ERR,\n                        event.getException());\n            }\n        }\n    }\n\n    /**\n     * @see BuildListener#taskStarted\n     */\n    /** {@inheritDoc}. */\n    public void taskStarted(BuildEvent event) {\n        if (initialized) {\n            Task task = event.getTask();\n            Object real = task;\n            if (task instanceof UnknownElement) {\n                Object realObj = ((UnknownElement) task).getTask();\n                if (realObj != null) {\n                    real = realObj;\n                }\n            }\n            Log log = getLog(real.getClass().getName(), null);\n            if (log.isTraceEnabled()) {\n                realLog(log, \"Task \\\"\" + task.getTaskName() + \"\\\" started \",\n                        Project.MSG_VERBOSE, null);\n            }\n        }\n    }\n\n    /**\n     * @see BuildListener#taskFinished\n     */\n    /** {@inheritDoc}. */\n    public void taskFinished(BuildEvent event) {\n        if (initialized) {\n            Task task = event.getTask();\n            Object real = task;\n            if (task instanceof UnknownElement) {\n                Object realObj = ((UnknownElement) task).getTask();\n                if (realObj != null) {\n                    real = realObj;\n                }\n            }\n            Log log = getLog(real.getClass().getName(), null);\n            if (event.getException() == null) {\n                if (log.isTraceEnabled()) {\n                    realLog(log, \"Task \\\"\" + task.getTaskName() + \"\\\" finished.\",\n                            Project.MSG_VERBOSE, null);\n                }\n            } else {\n                realLog(log, \"Task \\\"\" + task.getTaskName()\n                        + \"\\\" finished with error.\", Project.MSG_ERR,\n                        event.getException());\n            }\n        }\n    }\n\n\n    /**\n     * @see BuildListener#messageLogged\n     */\n    /** {@inheritDoc}. */\n    public void messageLogged(BuildEvent event) {\n        if (initialized) {\n            Object categoryObject = event.getTask();\n            String categoryString = null;\n            String categoryDetail = null;\n\n            if (categoryObject == null) {\n                categoryObject = event.getTarget();\n                if (categoryObject == null) {\n                    categoryObject = event.getProject();\n                    categoryString = PROJECT_LOG;\n                    categoryDetail = event.getProject().getName();\n                } else {\n                    categoryString = TARGET_LOG;\n                    categoryDetail = event.getTarget().getName();\n                }\n            } else {\n                if (event.getTarget() != null) {\n                    categoryString = categoryObject.getClass().getName();\n                    categoryDetail = event.getTarget().getName();\n                } else {\n                    categoryString = categoryObject.getClass().getName();\n                }\n\n            }\n\n            Log log = getLog(categoryString, categoryDetail);\n            int priority = event.getPriority();\n            String message = event.getMessage();\n            realLog(log, message, priority , null);\n        }\n    }\n\n    private void realLog(Log log, String message, int priority, Throwable t) {\n        PrintStream tmpOut = System.out;\n        PrintStream tmpErr = System.err;\n        System.setOut(out);\n        System.setErr(err);\n        switch (priority) {\n            case Project.MSG_ERR:\n                if (t == null) {\n                    log.error(message);\n                } else {\n                    log.error(message, t);\n                }\n                break;\n            case Project.MSG_WARN:\n                if (t == null) {\n                    log.warn(message);\n                } else {\n                    log.warn(message, t);\n                }\n                break;\n            case Project.MSG_INFO:\n                if (t == null) {\n                    log.info(message);\n                } else {\n                    log.info(message, t);\n                }\n                break;\n            case Project.MSG_VERBOSE:\n                log.debug(message);\n                break;\n            case Project.MSG_DEBUG:\n                log.debug(message);\n                break;\n            default:\n                log.error(message);\n                break;\n        }\n        System.setOut(tmpOut);\n        System.setErr(tmpErr);\n    }\n\n    PrintStream out = System.out;\n    PrintStream err = System.err;\n\n    /**\n     * Set the the output level.\n     * This is not used, the logger config is used instead.\n     * @param level ignored\n     */\n    public void setMessageOutputLevel(int level) {\n    }\n\n    /**\n     * Set the output print stream.\n     * @param output the output stream\n     */\n    public void setOutputPrintStream(PrintStream output) {\n        this.out = output;\n    }\n\n    /**\n     * Set emacs mode.\n     * This is ignored.\n     * @param emacsMode ignored\n     */\n    public void setEmacsMode(boolean emacsMode) {\n    }\n\n    /**\n     * Set the error print stream.\n     * @param err the error stream\n     */\n    public void setErrorPrintStream(PrintStream err) {\n        this.err = err;", "functions": [{"function_name": "getLog", "code": "    private Log getLog(String cat, String suffix) {\n        if (suffix != null) {\n            suffix = suffix.replace('.', '-');\n            suffix = suffix.replace(' ', '-');\n            cat = cat + \".\" + suffix;\n        }\n        PrintStream tmpOut = System.out;\n        PrintStream tmpErr = System.err;\n        System.setOut(out);\n        System.setErr(err);\n\n        if (!initialized) {\n            try {\n                logFactory = LogFactory.getFactory();\n            } catch (LogConfigurationException e) {\n                e.printStackTrace(System.err);\n                return null;\n            }\n        }\n\n        initialized = true;\n        Log log = logFactory.getInstance(cat);\n        System.setOut(tmpOut);\n        System.setErr(tmpErr);\n        return log;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CATCH", "ASSIGN", "ASSIGN", "ASSIGN", "RETURN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [6, 14], [2, 15], [11, 16], [3, 17], [14, 18], [17, 19], [6, 20], [6, 21], [6, 22], [19, 23], [17, 24], [20, 25], [21, 26], [22, 27], [23, 28], [19, 29], [24, 30], [25, 31], [26, 32], [26, 33], [27, 34], [27, 35], [31, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 6], [15, 2], [16, 11], [17, 3], [18, 14], [19, 17], [20, 6], [21, 6], [22, 6], [23, 19], [24, 17], [25, 20], [26, 21], [27, 22], [28, 23], [29, 19], [30, 24], [31, 25], [32, 26], [33, 26], [34, 27], [35, 27], [36, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {\n        String categoryString = PROJECT_LOG;\n        Log log = getLog(categoryString, null);\n\n        if (initialized) {\n            realLog(log, \"Build started.\", Project.MSG_INFO, null);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [5, 7], [6, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 5], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        if (initialized) {\n            String categoryString = PROJECT_LOG;\n            Log log = getLog(categoryString, event.getProject().getName());\n\n            if (event.getException() == null) {\n                realLog(log, \"Build finished.\", Project.MSG_INFO, null);\n            } else {\n                realLog(log, \"Build finished with error.\", Project.MSG_ERR,\n                        event.getException());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [6, 7], [6, 8], [4, 9], [3, 10], [3, 11], [9, 12], [10, 13], [10, 14], [11, 15], [11, 16], [12, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 6], [8, 6], [9, 4], [10, 3], [11, 3], [12, 9], [13, 10], [14, 10], [15, 11], [16, 11], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {\n        if (initialized) {\n            Log log = getLog(TARGET_LOG,\n                    event.getTarget().getName());\n            realLog(log, \"Start: \" + event.getTarget().getName(),\n                    Project.MSG_VERBOSE, null);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [4, 6], [3, 7], [6, 8], [6, 9], [7, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 4], [7, 3], [8, 6], [9, 6], [10, 7], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {\n        if (initialized) {\n            String targetName = event.getTarget().getName();\n            Log log = getLog(TARGET_LOG,\n                    event.getTarget().getName());\n            if (event.getException() == null) {\n                realLog(log, \"Target end: \" + targetName, Project.MSG_DEBUG, null);\n            } else {\n                realLog(log, \"Target \\\"\" + targetName\n                        + \"\\\" finished with error.\", Project.MSG_ERR,\n                        event.getException());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [6, 7], [6, 8], [4, 9], [5, 10], [3, 11], [3, 12], [9, 13], [10, 14], [11, 15], [11, 16], [12, 17], [12, 18], [13, 19], [16, 20], [16, 21], [18, 22], [21, 23], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 6], [8, 6], [9, 4], [10, 5], [11, 3], [12, 3], [13, 9], [14, 10], [15, 11], [16, 11], [17, 12], [18, 12], [19, 13], [20, 16], [21, 16], [22, 18], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {\n        if (initialized) {\n            Task task = event.getTask();\n            Object real = task;\n            if (task instanceof UnknownElement) {\n                Object realObj = ((UnknownElement) task).getTask();\n                if (realObj != null) {\n                    real = realObj;\n                }\n            }\n            Log log = getLog(real.getClass().getName(), null);\n            if (log.isTraceEnabled()) {\n                realLog(log, \"Task \\\"\" + task.getTaskName() + \"\\\" started \",\n                        Project.MSG_VERBOSE, null);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [5, 9], [4, 10], [5, 11], [5, 12], [7, 13], [3, 14], [10, 15], [10, 16], [11, 17], [14, 18], [14, 19], [16, 20], [17, 21], [19, 22], [19, 23], [11, 24], [23, 25], [23, 26], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 5], [10, 4], [11, 5], [12, 5], [13, 7], [14, 3], [15, 10], [16, 10], [17, 11], [18, 14], [19, 14], [20, 16], [21, 17], [22, 19], [23, 19], [24, 11], [25, 23], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {\n        if (initialized) {\n            Task task = event.getTask();\n            Object real = task;\n            if (task instanceof UnknownElement) {\n                Object realObj = ((UnknownElement) task).getTask();\n                if (realObj != null) {\n                    real = realObj;\n                }\n            }\n            Log log = getLog(real.getClass().getName(), null);\n            if (event.getException() == null) {\n                if (log.isTraceEnabled()) {\n                    realLog(log, \"Task \\\"\" + task.getTaskName() + \"\\\" finished.\",\n                            Project.MSG_VERBOSE, null);\n                }\n            } else {\n                realLog(log, \"Task \\\"\" + task.getTaskName()\n                        + \"\\\" finished with error.\", Project.MSG_ERR,\n                        event.getException());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [5, 9], [3, 10], [8, 11], [8, 12], [4, 13], [5, 14], [5, 15], [7, 16], [3, 17], [10, 18], [13, 19], [13, 20], [14, 21], [17, 22], [17, 23], [20, 24], [21, 25], [23, 26], [23, 27], [10, 28], [14, 29], [27, 30], [27, 31], [28, 32], [28, 33], [33, 34], [33, 35], [35, 36], [35, 37], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 5], [10, 3], [11, 8], [12, 8], [13, 4], [14, 5], [15, 5], [16, 7], [17, 3], [18, 10], [19, 13], [20, 13], [21, 14], [22, 17], [23, 17], [24, 20], [25, 21], [26, 23], [27, 23], [28, 10], [29, 14], [30, 27], [31, 27], [32, 28], [33, 28], [34, 33], [35, 33], [36, 35], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {\n        if (initialized) {\n            Object categoryObject = event.getTask();\n            String categoryString = null;\n            String categoryDetail = null;\n\n            if (categoryObject == null) {\n                categoryObject = event.getTarget();\n                if (categoryObject == null) {\n                    categoryObject = event.getProject();\n                    categoryString = PROJECT_LOG;\n                    categoryDetail = event.getProject().getName();\n                } else {\n                    categoryString = TARGET_LOG;\n                    categoryDetail = event.getTarget().getName();\n                }\n            } else {\n                if (event.getTarget() != null) {\n                    categoryString = categoryObject.getClass().getName();\n                    categoryDetail = event.getTarget().getName();\n                } else {\n                    categoryString = categoryObject.getClass().getName();\n                }\n\n            }\n\n            Log log = getLog(categoryString, categoryDetail);\n            int priority = event.getPriority();\n            String message = event.getMessage();\n            realLog(log, message, priority , null);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [6, 11], [10, 12], [3, 13], [4, 14], [5, 15], [6, 16], [6, 17], [11, 18], [7, 19], [8, 20], [9, 21], [16, 22], [17, 23], [6, 24], [22, 25], [22, 26], [23, 27], [24, 28], [16, 29], [16, 30], [16, 31], [17, 32], [17, 33], [17, 34], [17, 35], [17, 36], [29, 37], [30, 38], [31, 39], [32, 40], [34, 41], [36, 42], [37, 43], [38, 44], [39, 45], [40, 46], [41, 47], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 6], [12, 10], [13, 3], [14, 4], [15, 5], [16, 6], [17, 6], [18, 11], [19, 7], [20, 8], [21, 9], [22, 16], [23, 17], [24, 6], [25, 22], [26, 22], [27, 23], [28, 24], [29, 16], [30, 16], [31, 16], [32, 17], [33, 17], [34, 17], [35, 17], [36, 17], [37, 29], [38, 30], [39, 31], [40, 32], [41, 34], [42, 36], [43, 37], [44, 38], [45, 39], [46, 40], [47, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "realLog", "code": "    private void realLog(Log log, String message, int priority, Throwable t) {\n        PrintStream tmpOut = System.out;\n        PrintStream tmpErr = System.err;\n        System.setOut(out);\n        System.setErr(err);\n        switch (priority) {\n            case Project.MSG_ERR:\n                if (t == null) {\n                    log.error(message);\n                } else {\n                    log.error(message, t);\n                }\n                break;\n            case Project.MSG_WARN:\n                if (t == null) {\n                    log.warn(message);\n                } else {\n                    log.warn(message, t);\n                }\n                break;\n            case Project.MSG_INFO:\n                if (t == null) {\n                    log.info(message);\n                } else {\n                    log.info(message, t);\n                }\n                break;\n            case Project.MSG_VERBOSE:\n                log.debug(message);\n                break;\n            case Project.MSG_DEBUG:\n                log.debug(message);\n                break;\n            default:\n                log.error(message);\n                break;\n        }\n        System.setOut(tmpOut);\n        System.setErr(tmpErr);", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [16, 24], [18, 25], [20, 26], [24, 27], [25, 28], [26, 29], [16, 30], [16, 31], [18, 32], [18, 33], [20, 34], [20, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 16], [25, 18], [26, 20], [27, 24], [28, 25], [29, 26], [30, 16], [31, 16], [32, 18], [33, 18], [34, 20], [35, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "setMessageOutputLevel", "code": "    public void setMessageOutputLevel(int level) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOutputPrintStream", "code": "    public void setOutputPrintStream(PrintStream output) {\n        this.out = output;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setEmacsMode", "code": "    public void setEmacsMode(boolean emacsMode) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorPrintStream", "code": "    public void setErrorPrintStream(PrintStream err) {\n        this.err = err;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CommonsLoggingListener", "code": "    public CommonsLoggingListener() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.6-7644", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/Arg.java", "language": "java", "name": "org.apache.xpath.Arg", "code": "public class Arg\n{\n\n  /** Field m_qname: The name of this argument, expressed as a QName\n   * (Qualified Name) object.\n   * @see getQName\n   * @see setQName\n   *  */\n  private QName m_qname;\n\n  /**\n   * Get the qualified name for this argument.\n   *\n   * @return QName object containing the qualified name\n   */\n  public final QName getQName()\n  {\n    return m_qname;\n  }\n\n  /**\n   * Set the qualified name for this argument.\n   *\n   * @param name QName object representing the new Qualified Name.\n   */\n  public final void setQName(QName name)\n  {\n    m_qname = name;\n  }\n\n  /** Field m_val: Stored XObject value of this argument\n   * @see #getVal()\n   * @see #setVal()\n   */\n  private XObject m_val;\n\n  /**\n   * Get the value for this argument.\n   *\n   * @return the argument's stored XObject value.\n   * @see #setVal(XObject)\n   */\n  public final XObject getVal()\n  {\n    return m_val;\n  }\n\n  /**\n   * Set the value of this argument.\n   *\n   * @param val an XObject representing the arguments's value.\n   * @see #getVal()\n   */\n  public final void setVal(XObject val)\n  {\n    m_val = val;\n  }\n  \n  /**\n   * Have the object release it's resources.\n   * Call only when the variable or argument is going out of scope.\n   */\n  public void detach()\n  {\n    if(null != m_val)\n    {\n      m_val.allowDetachToRelease(true);\n      m_val.detach();\n    }\n  }\n\n\n  /** Field m_expression: Stored expression value of this argument.\n   * @see #setExpression\n   * @see #getExpression\n   * */\n  private String m_expression;\n\n  /**\n   * Get the value expression for this argument.\n   *\n   * @return String containing the expression previously stored into this\n   * argument\n   * @see #setExpression\n   */\n  public String getExpression()\n  {\n    return m_expression;\n  }\n\n  /**\n   * Set the value expression for this argument.\n   *\n   * @param expr String containing the expression to be stored as this\n   * argument's value.\n   * @see #getExpression\n   */\n  public void setExpression(String expr)\n  {\n    m_expression = expr;\n  }\n\n  /** \n   * True if this variable was added with an xsl:with-param or\n   * is added via setParameter.\n   */\n  private boolean m_isFromWithParam;\n\n  /**\n   * Tell if this variable is a parameter passed with a with-param or as \n   * a top-level parameter.\n   */\n   public boolean isFromWithParam()\n   {\n    return m_isFromWithParam;\n   }\n\n  /** \n   * True if this variable is currently visible.  To be visible,\n   * a variable needs to come either from xsl:variable or be \n   * a \"received\" parameter, ie one for which an xsl:param has\n   * been encountered.\n   * Set at the time the object is constructed and updated as needed.\n   */\n  private boolean m_isVisible;\n\n  /**\n   * Tell if this variable is currently visible.\n   */\n   public boolean isVisible()\n   {\n    return m_isVisible;\n   }\n   \n  /**\n   * Update visibility status of this variable.\n   */\n   public void setIsVisible(boolean b)\n   {\n    m_isVisible = b;\n   }\n\n  /**\n   * Construct a dummy parameter argument, with no QName and no\n   * value (either expression string or value XObject). isVisible\n   * defaults to true.\n   */\n  public Arg()\n  {\n\n    m_qname = new QName(\"\");\n    m_val = null;\n    m_expression = null;\n    m_isVisible = true;\n    m_isFromWithParam = false;\n  }\n\n  /**\n   * Construct a parameter argument that contains an expression.\n   *\n   * @param qname Name of the argument, expressed as a QName object.\n   * @param expression String to be stored as this argument's value expression.\n   * @param isFromWithParam True if this is a parameter variable.\n   */\n  public Arg(QName qname, String expression, boolean isFromWithParam)\n  {\n\n    m_qname = qname;\n    m_val = null;\n    m_expression = expression;\n    m_isFromWithParam = isFromWithParam;\n    m_isVisible = !isFromWithParam;\n  }\n\n  /**\n   * Construct a parameter argument which has an XObject value.\n   * isVisible defaults to true.\n   *\n   * @param qname Name of the argument, expressed as a QName object.\n   * @param val Value of the argument, expressed as an XObject\n   */\n  public Arg(QName qname, XObject val)\n  {\n\n    m_qname = qname;\n    m_val = val;\n    m_isVisible = true;\n    m_isFromWithParam = false;\n    m_expression = null;\n  }\n  \n  /**\n   * Equality function specialized for the variable name.  If the argument \n   * is not a qname, it will deligate to the super class.\n   * \n   * @param   obj   the reference object with which to compare.\n   * @return  <code>true</code> if this object is the same as the obj\n   *          argument; <code>false</code> otherwise.\n   */\n  public boolean equals(Object obj) \n  {\n    if(obj instanceof QName)\n    {\n      return m_qname.equals(obj);\n    }\n    else\n      return super.equals(obj);\n  }\n\n  /**\n   * Construct a parameter argument.\n   *\n   * @param qname Name of the argument, expressed as a QName object.\n   * @param val Value of the argument, expressed as an XObject\n   * @param isFromWithParam True if this is a parameter variable.\n   */\n  public Arg(QName qname, XObject val, boolean isFromWithParam)\n  {\n\n    m_qname = qname;\n    m_val = val;\n    m_isFromWithParam = isFromWithParam;\n    m_isVisible = !isFromWithParam;\n    m_expression = null;", "functions": [{"function_name": "getQName", "code": "  public final QName getQName()\n  {\n    return m_qname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setQName", "code": "  public final void setQName(QName name)\n  {\n    m_qname = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVal", "code": "  public final XObject getVal()\n  {\n    return m_val;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVal", "code": "  public final void setVal(XObject val)\n  {\n    m_val = val;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "detach", "code": "  public void detach()\n  {\n    if(null != m_val)\n    {\n      m_val.allowDetachToRelease(true);\n      m_val.detach();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getExpression", "code": "  public String getExpression()\n  {\n    return m_expression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExpression", "code": "  public void setExpression(String expr)\n  {\n    m_expression = expr;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFromWithParam", "code": "   public boolean isFromWithParam()\n   {\n    return m_isFromWithParam;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isVisible", "code": "   public boolean isVisible()\n   {\n    return m_isVisible;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIsVisible", "code": "   public void setIsVisible(boolean b)\n   {\n    m_isVisible = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "equals", "code": "  public boolean equals(Object obj) \n  {\n    if(obj instanceof QName)\n    {\n      return m_qname.equals(obj);\n    }\n    else\n      return super.equals(obj);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "Arg", "code": "  public Arg()\n  {\n\n    m_qname = new QName(\"\");\n    m_val = null;\n    m_expression = null;\n    m_isVisible = true;\n    m_isFromWithParam = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [5, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 5], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "Arg", "code": "  public Arg(QName qname, String expression, boolean isFromWithParam)\n  {\n\n    m_qname = qname;\n    m_val = null;\n    m_expression = expression;\n    m_isFromWithParam = isFromWithParam;\n    m_isVisible = !isFromWithParam;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "Arg", "code": "  public Arg(QName qname, XObject val)\n  {\n\n    m_qname = qname;\n    m_val = val;\n    m_isVisible = true;\n    m_isFromWithParam = false;\n    m_expression = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [4, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 4], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "Arg", "code": "  public Arg(QName qname, XObject val, boolean isFromWithParam)\n  {\n\n    m_qname = qname;\n    m_val = val;\n    m_isFromWithParam = isFromWithParam;\n    m_isVisible = !isFromWithParam;\n    m_expression = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "ant-1.5-337", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/XSLTLiaison.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.XSLTLiaison", "code": "public interface XSLTLiaison {\n\n    /**\n     * the file protocol prefix for systemid.\n     * This file protocol must be appended to an absolute path.\n     * Typically: <tt>FILE_PROTOCOL_PREFIX + file.getAbsolutePath()</tt>\n     * Note that on Windows, an extra '/' must be appended to the\n     * protocol prefix so that there is always 3 consecutive slashes.\n     * @since Ant 1.4\n     */\n\n    /**\n     * set the stylesheet to use for the transformation.\n     * @param stylesheet the stylesheet to be used for transformation.\n     * @since Ant 1.4\n     */\n    void setStylesheet(File stylesheet) throws Exception;\n\n    /**\n     * Add a parameter to be set during the XSL transformation.\n     * @param name the parameter name.\n     * @param expression the parameter value as an expression string.\n     * @throws Exception thrown if any problems happens.\n     * @since Ant 1.3\n     */\n    void addParam(String name, String expression) throws Exception;\n\n    /**\n     * Perform the transformation of a file into another.\n     * @param infile the input file, probably an XML one. :-)\n     * @param outfile the output file resulting from the transformation\n     * @throws Exception thrown if any problems happens.\n     * @see #setStylesheet(File)\n     * @since Ant 1.4\n     */\n    void transform(File infile, File outfile) throws Exception;", "functions": [{"function_name": "setStylesheet", "code": "    void setStylesheet(File stylesheet) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addParam", "code": "    void addParam(String name, String expression) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "transform", "code": "    void transform(File infile, File outfile) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.3-4660", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "com/microstar/xml/XmlParser.java", "language": "java", "name": "com.microstar.xml.XmlParser", "code": "public class XmlParser {\n\n  //\n  // Use special cheats that speed up the code (currently about 50%),\n  // but may cause problems with future maintenance and add to the\n  // class file size (about 500 bytes).\n  //\n  private final static boolean USE_CHEATS = true;\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Constructors.\n  ////////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Construct a new parser with no associated handler.\n    * @see #setHandler\n    * @see #parse\n    */\n  public XmlParser ()\n  {\n  }\n\n\n  /**\n    * Set the handler that will receive parsing events.\n    * @param handler The handler to receive callback events.\n    * @see #parse\n    * @see XmlHandler\n    */\n  public void setHandler (XmlHandler handler)\n  {\n    this.handler = handler;\n  }\n\n\n  /**\n    * Parse an XML document from a URI.\n    * <p>You may parse a document more than once, but only one thread\n    * may call this method for an object at one time.\n    * @param systemId The URI of the document.\n    * @param publicId The public identifier of the document, or null.\n    * @param encoding The suggested encoding, or null if unknown.\n    * @exception java.lang.Exception Any exception thrown by your\n    *            own handlers, or any derivation of java.io.IOException\n    *            thrown by the parser itself.\n    */\n  public void parse (String systemId, String publicId, String encoding)\n    throws java.lang.Exception\n  {\n    doParse(systemId, publicId, null, null, encoding);\n  }\n\n\n  /**\n    * Parse an XML document from a byte stream.\n    * <p>The URI that you supply will become the base URI for\n    * resolving relative links, but &AElig;lfred will actually read\n    * the document from the supplied input stream.\n    * <p>You may parse a document more than once, but only one thread\n    * may call this method for an object at one time.\n    * @param systemId The base URI of the document, or null if not\n    *                 known.\n    * @param publicId The public identifier of the document, or null\n    *                 if not known.\n    * @param stream A byte input stream.\n    * @param encoding The suggested encoding, or null if unknown.\n    * @exception java.lang.Exception Any exception thrown by your\n    *            own handlers, or any derivation of java.io.IOException\n    *            thrown by the parser itself.\n    */\n  public void parse (String systemId, String publicId,\n\t\t     InputStream stream, String encoding)\n    throws java.lang.Exception\n  {\n    doParse(systemId, publicId, null, stream, encoding);\n  }\n\n\n  /**\n    * Parse an XML document from a character stream.\n    * <p>The URI that you supply will become the base URI for\n    * resolving relative links, but &AElig;lfred will actually read\n    * the document from the supplied input stream.\n    * <p>You may parse a document more than once, but only one thread\n    * may call this method for an object at one time.\n    * @param systemId The base URI of the document, or null if not\n    *                 known.\n    * @param publicId The public identifier of the document, or null\n    *                 if not known.\n    * @param reader A character stream.\n    * @exception java.lang.Exception Any exception thrown by your\n    *            own handlers, or any derivation of java.io.IOException\n    *            thrown by the parser itself.\n    */\n  public void parse (String systemId, String publicId, Reader reader)\n    throws java.lang.Exception\n  {\n    doParse(systemId, publicId, reader, null, null);\n  }\n\n\n  private synchronized void doParse (String systemId, String publicId,\n\t\t\t\t     Reader reader, InputStream stream,\n\t\t\t\t     String encoding)\n    throws java.lang.Exception\n  {\n    basePublicId = publicId;\n    baseURI = systemId;\n    baseReader = reader;\n    baseInputStream = stream;\n\n    initializeVariables();\n\n\t\t\t\t// Set the default entities here.\n    setInternalEntity(intern(\"amp\"), \"&#38;\");\n    setInternalEntity(intern(\"lt\"), \"&#60;\");\n    setInternalEntity(intern(\"gt\"), \"&#62;\");\n    setInternalEntity(intern(\"apos\"), \"&#39;\");\n    setInternalEntity(intern(\"quot\"), \"&#34;\");\n\n    if (handler != null) {\n      handler.startDocument();\n    }\n\n    pushURL(\"[document]\", basePublicId, baseURI, baseReader, baseInputStream,\n\t    encoding);\n\n    parseDocument();\n\n    if (handler != null) {\n      handler.endDocument();\n    }\n    cleanupVariables();\n  }\n\n\n\n\n  ////////////////////////////////////////////////////////////////////////\n  // Constants.\n  ////////////////////////////////////////////////////////////////////////\n\n  //\n  // Constants for element content type.\n  //\n\n  /**\n    * Constant: an element has not been declared.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_UNDECLARED = 0;\n\n  /**\n    * Constant: the element has a content model of ANY.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_ANY = 1;\n\n  /**\n    * Constant: the element has declared content of EMPTY.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_EMPTY = 2;\n\n  /**\n    * Constant: the element has mixed content.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_MIXED = 3;\n\n  /**\n    * Constant: the element has element content.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_ELEMENTS = 4;\n\n\n  //\n  // Constants for the entity type.\n  //\n\n  /**\n    * Constant: the entity has not been declared.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_UNDECLARED = 0;\n\n  /**\n    * Constant: the entity is internal.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_INTERNAL = 1;\n\n  /**\n    * Constant: the entity is external, non-XML data.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_NDATA = 2;\n\n  /**\n    * Constant: the entity is external XML data.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_TEXT = 3;\n\n\n  //\n  // Constants for attribute type.\n  //\n\n  /**\n    * Constant: the attribute has not been declared for this element type.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_UNDECLARED = 0;\n\n  /**\n    * Constant: the attribute value is a string value.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_CDATA = 1;\n\n  /**\n    * Constant: the attribute value is a unique identifier.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ID = 2;\n\n  /**\n    * Constant: the attribute value is a reference to a unique identifier.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_IDREF = 3;\n\n  /**\n    * Constant: the attribute value is a list of ID references.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_IDREFS = 4;\n\n  /**\n    * Constant: the attribute value is the name of an entity.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ENTITY = 5;\n\n  /**\n    * Constant: the attribute value is a list of entity names.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ENTITIES = 6;\n\n  /**\n    * Constant: the attribute value is a name token.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_NMTOKEN = 7;\n\n  /**\n    * Constant: the attribute value is a list of name tokens.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_NMTOKENS = 8;\n\n  /**\n    * Constant: the attribute value is a token from an enumeration.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ENUMERATED = 9;\n\n  /**\n    * Constant: the attribute is the name of a notation.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_NOTATION = 10;\n\n\n  //\n  // When the class is loaded, populate the hash table of\n  // attribute types.\n  //\n\n  /**\n    * Hash table of attribute types.\n    */\n  private static Hashtable attributeTypeHash;\n  static {\n    attributeTypeHash = new Hashtable();\n    attributeTypeHash.put(\"CDATA\", new Integer(ATTRIBUTE_CDATA));\n    attributeTypeHash.put(\"ID\", new Integer(ATTRIBUTE_ID));\n    attributeTypeHash.put(\"IDREF\", new Integer(ATTRIBUTE_IDREF));\n    attributeTypeHash.put(\"IDREFS\", new Integer(ATTRIBUTE_IDREFS));\n    attributeTypeHash.put(\"ENTITY\", new Integer(ATTRIBUTE_ENTITY));\n    attributeTypeHash.put(\"ENTITIES\", new Integer(ATTRIBUTE_ENTITIES));\n    attributeTypeHash.put(\"NMTOKEN\", new Integer(ATTRIBUTE_NMTOKEN));\n    attributeTypeHash.put(\"NMTOKENS\", new Integer(ATTRIBUTE_NMTOKENS));\n    attributeTypeHash.put(\"NOTATION\", new Integer(ATTRIBUTE_NOTATION));\n  }\n\n\n  //\n  // Constants for supported encodings.\n  //\n  private final static int ENCODING_UTF_8 = 1;\n  private final static int ENCODING_ISO_8859_1 = 2;\n  private final static int ENCODING_UCS_2_12 = 3;\n  private final static int ENCODING_UCS_2_21 = 4;\n  private final static int ENCODING_UCS_4_1234 = 5;\n  private final static int ENCODING_UCS_4_4321 = 6;\n  private final static int ENCODING_UCS_4_2143 = 7;\n  private final static int ENCODING_UCS_4_3412 = 8;\n\n\n  //\n  // Constants for attribute default value.\n  //\n\n  /**\n    * Constant: the attribute is not declared.\n    * @see #getAttributeDefaultValueType\n    */\n  public final static int ATTRIBUTE_DEFAULT_UNDECLARED = 0;\n\n  /**\n    * Constant: the attribute has a literal default value specified.\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    */\n  public final static int ATTRIBUTE_DEFAULT_SPECIFIED = 1;\n\n  /**\n    * Constant: the attribute was declared #IMPLIED.\n    * @see #getAttributeDefaultValueType\n    */\n  public final static int ATTRIBUTE_DEFAULT_IMPLIED = 2;\n\n  /**\n    * Constant: the attribute was declared #REQUIRED.\n    * @see #getAttributeDefaultValueType\n    */\n  public final static int ATTRIBUTE_DEFAULT_REQUIRED = 3;\n\n  /**\n    * Constant: the attribute was declared #FIXED.\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    */\n  public final static int ATTRIBUTE_DEFAULT_FIXED = 4;\n\n\n  //\n  // Constants for input.\n  //\n  private final static int INPUT_NONE = 0;\n  private final static int INPUT_INTERNAL = 1;\n  private final static int INPUT_EXTERNAL = 2;\n  private final static int INPUT_STREAM = 3;\n  private final static int INPUT_BUFFER = 4;\n  private final static int INPUT_READER = 5;\n\n\n  //\n  // Flags for reading literals.\n  //\n  private final static int LIT_CHAR_REF = 1;\n  private final static int LIT_ENTITY_REF = 2;\n  private final static int LIT_PE_REF = 4;\n  private final static int LIT_NORMALIZE = 8;\n\n\n  //\n  // Flags for parsing context.\n  //\n  private final static int CONTEXT_NONE = 0;\n  private final static int CONTEXT_DTD = 1;\n  private final static int CONTEXT_ENTITYVALUE = 2;\n  private final static int CONTEXT_ATTRIBUTEVALUE = 3;\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Error reporting.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Report an error.\n    * @param message The error message.\n    * @param textFound The text that caused the error (or null).\n    * @see XmlHandler#error\n    * @see #line\n    */\n  void error (String message, String textFound, String textExpected)\n    throws java.lang.Exception\n  {\n    errorCount++;\n    if (textFound != null) {\n      message = message + \" (found \\\"\" + textFound + \"\\\")\";\n    }\n    if (textExpected != null) {\n      message = message + \" (expected \\\"\" + textExpected + \"\\\")\";\n    }\n    if (handler != null) {\n      String uri = null;\n\n      if (externalEntity != null) {\n\turi = externalEntity.getURL().toString();\n      }\n      handler.error(message, uri, line, column);\n    }\n  }\n\n\n  /**\n    * Report a serious error.\n    * @param message The error message.\n    * @param textFound The text that caused the error (or null).\n    */\n  void error (String message, char textFound, String textExpected)\n    throws java.lang.Exception\n  {\n    error(message, new Character(textFound).toString(), textExpected);\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Major syntactic productions.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Parse an XML document.\n    * <pre>\n    * [1] document ::= prolog element Misc*\n    * </pre>\n    * <p>This is the top-level parsing function for a single XML\n    * document.  As a minimum, a well-formed document must have\n    * a document element, and a valid document must have a prolog\n    * as well.\n    */\n  void parseDocument ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    parseProlog();\n    require('<');\n    parseElement();\n    try\n      {\n      parseMisc();  //skip all white, PIs, and comments\n      c=readCh();   //if this doesn't throw an exception...\n      error(\"unexpected characters after document end\",c,null);\n      }\n    catch (EOFException e)\n      {return;}\n    }\n\n\n  /**\n    * Skip a comment.\n    * <pre>\n    * [18] Comment ::= '&lt;!--' ((Char - '-') | ('-' (Char - '-')))* \"-->\"\n    * </pre>\n    * <p>(The <code>&lt;!--</code> has already been read.)\n    */\n  void parseComment ()\n    throws java.lang.Exception\n  {\n    skipUntil(\"-->\");\n  }\n\n\n  /**\n    * Parse a processing instruction and do a call-back.\n    * <pre>\n    * [19] PI ::= '&lt;?' Name (S (Char* - (Char* '?&gt;' Char*)))? '?&gt;'\n    * </pre>\n    * <p>(The <code>&lt;?</code> has already been read.)\n    * <p>An XML processing instruction <em>must</em> begin with\n    * a Name, which is the instruction's target.\n    */\n  void parsePI ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    if (!tryRead(\"?>\")) {\n      requireWhitespace();\n      parseUntil(\"?>\");\n    }\n    if (handler != null) {\n      handler.processingInstruction(name, dataBufferToString());\n    }\n  }\n\n\n  /**\n    * Parse a CDATA marked section.\n    * <pre>\n    * [20] CDSect ::= CDStart CData CDEnd\n    * [21] CDStart ::= '&lt;![CDATA['\n    * [22] CData ::= (Char* - (Char* ']]&gt;' Char*))\n    * [23] CDEnd ::= ']]&gt;'\n    * </pre>\n    * <p>(The '&lt;![CDATA[' has already been read.)\n    * <p>Note that this just appends characters to the dataBuffer,\n    * without actually generating an event.\n    */\n  void parseCDSect ()\n    throws java.lang.Exception\n  {\n    parseUntil(\"]]>\");\n  }\n\n\n  /**\n    * Parse the prolog of an XML document.\n    * <pre>\n    * [24] prolog ::= XMLDecl? Misc* (Doctypedecl Misc*)?\n    * </pre>\n    * <p>There are a couple of tricks here.  First, it is necessary to\n    * declare the XML default attributes after the DTD (if present)\n    * has been read.  Second, it is not possible to expand general\n    * references in attribute value literals until after the entire\n    * DTD (if present) has been parsed.\n    * <p>We do not look for the XML declaration here, because it is\n    * handled by pushURL().\n    * @see pushURL\n    */\n  void parseProlog ()\n    throws java.lang.Exception\n  {\n    parseMisc();\n\n    if (tryRead(\"<!DOCTYPE\")) {\n      parseDoctypedecl();\n      parseMisc();\n    }\n  }\n\n\n  /**\n    * Parse the XML declaration.\n    * <pre>\n    * [25] XMLDecl ::= '&lt;?xml' VersionInfo EncodingDecl? SDDecl? S? '?&gt;'\n    * [26] VersionInfo ::= S 'version' Eq ('\"1.0\"' | \"'1.0'\")\n    * [33] SDDecl ::= S 'standalone' Eq \"'\" ('yes' | 'no') \"'\"\n    *               | S 'standalone' Eq '\"' (\"yes\" | \"no\") '\"'\n    * [78] EncodingDecl ::= S 'encoding' Eq QEncoding\n    * </pre>\n    * <p>([80] to [82] are also significant.)\n    * <p>(The <code>&lt;?xml</code> and whitespace have already been read.)\n    * <p>TODO: validate value of standalone.\n    * @see #parseTextDecl\n    * @see #checkEncoding\n    */\n  void parseXMLDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String version;\n    String encodingName = null;\n    String standalone = null;\n\n\t\t\t\t// Read the version.\n    require(\"version\");\n    parseEq();\n    version = readLiteral(0);\n    if (!version.equals(\"1.0\")) {\n      error(\"unsupported XML version\", version, \"1.0\");\n    }\n\n\t\t\t\t// Try reading an encoding declaration.\n    skipWhitespace();\n    if (tryRead(\"encoding\")) {\n      parseEq();\n      encodingName = readLiteral(0);\n      checkEncoding(encodingName, ignoreEncoding);\n    }\n\n\t\t\t\t// Try reading a standalone declaration\n    skipWhitespace();\n    if (tryRead(\"standalone\")) {\n      parseEq();\n      standalone = readLiteral(0);\n    }\n\n    skipWhitespace();\n    require(\"?>\");\n  }\n\n\n  /**\n    * Parse the Encoding PI.\n    * <pre>\n    * [78] EncodingDecl ::= S 'encoding' Eq QEncoding\n    * [79] EncodingPI ::= '&lt;?xml' S 'encoding' Eq QEncoding S? '?&gt;'\n    * [80] QEncoding ::= '\"' Encoding '\"' | \"'\" Encoding \"'\"\n    * [81] Encoding ::= LatinName\n    * [82] LatinName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*\n    * </pre>\n    * <p>(The <code>&lt;?xml</code>' and whitespace have already been read.)\n    * @see #parseXMLDecl\n    * @see #checkEncoding\n    */\n  void parseTextDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String encodingName = null;\n    \n\t\t\t\t// Read an optional version.\n    if (tryRead(\"version\")) {\n      String version;\n      parseEq();\n      version = readLiteral(0);\n      if (!version.equals(\"1.0\")) {\n\terror(\"unsupported XML version\", version, \"1.0\");\n      }\n      requireWhitespace();\n    }\n      \n\n\t\t\t\t// Read the encoding.\n    require(\"encoding\");\n    parseEq();\n    encodingName = readLiteral(0);\n    checkEncoding(encodingName, ignoreEncoding);\n\n    skipWhitespace();\n    require(\"?>\");\n  }\n\n\n  /**\n    * Check that the encoding specified makes sense.\n    * <p>Compare what the author has specified in the XML declaration\n    * or encoding PI with what we have detected.\n    * <p>This is also important for distinguishing among the various\n    * 7- and 8-bit encodings, such as ISO-LATIN-1 (I cannot autodetect\n    * those).\n    * @param encodingName The name of the encoding specified by the user.\n    * @see #parseXMLDecl\n    * @see #parseTextDecl\n    */\n  void checkEncoding (String encodingName, boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    encodingName = encodingName.toUpperCase();\n\n    if (ignoreEncoding) {\n      return;\n    }\n\n    switch (encoding) {\n\t\t\t\t// 8-bit encodings\n    case ENCODING_UTF_8:\n      if (encodingName.equals(\"ISO-8859-1\")) {\n\tencoding = ENCODING_ISO_8859_1;\n      } else if (!encodingName.equals(\"UTF-8\")) {\n\terror(\"unsupported 8-bit encoding\",\n\t      encodingName,\n\t      \"UTF-8 or ISO-8859-1\");\n      }\n      break;\n\t\t\t\t// 16-bit encodings\n    case ENCODING_UCS_2_12:\n    case ENCODING_UCS_2_21:\n      if (!encodingName.equals(\"ISO-10646-UCS-2\") &&\n\t  !encodingName.equals(\"UTF-16\")) {\n\terror(\"unsupported 16-bit encoding\",\n\t      encodingName,\n\t      \"ISO-10646-UCS-2\");\n      }\n      break;\n\t\t\t\t// 32-bit encodings\n    case ENCODING_UCS_4_1234:\n    case ENCODING_UCS_4_4321:\n    case ENCODING_UCS_4_2143:\n    case ENCODING_UCS_4_3412:\n      if (!encodingName.equals(\"ISO-10646-UCS-4\")) {\n\terror(\"unsupported 32-bit encoding\",\n\t      encodingName,\n\t      \"ISO-10646-UCS-4\");\n      }\n    }\n  }\n\n\n  /**\n    * Parse miscellaneous markup outside the document element and DOCTYPE\n    * declaration.\n    * <pre>\n    * [27] Misc ::= Comment | PI | S\n    * </pre>\n    */\n  void parseMisc ()\n    throws java.lang.Exception\n    {\n    while (true)\n      {\n      skipWhitespace();\n      if (tryRead(\"<?\"))\n        {parsePI();}\n      else if (tryRead(\"<!--\"))\n        {parseComment();}\n      else\n        {return;}\n      }\n    }\n\n\n  /**\n    * Parse a document type declaration.\n    * <pre>\n    * [28] doctypedecl ::= '&lt;!DOCTYPE' S Name (S ExternalID)? S?\n    *                      ('[' %markupdecl* ']' S?)? '&gt;'\n    * </pre>\n    * <p>(The <code>&lt;!DOCTYPE</code> has already been read.)\n    */\n  void parseDoctypedecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    String doctypeName, ids[];\n\n\t\t\t\t// Read the document type name.\n    requireWhitespace();\n    doctypeName = readNmtoken(true);\n\n\t\t\t\t// Read the ExternalIDs.\n    skipWhitespace();\n    ids = readExternalIds(false);\n\n\t\t\t\t// Look for a declaration subset.\n    skipWhitespace();\n    if (tryRead('[')) {\n\n\t\t\t\t// loop until the subset ends\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead(']')) {\n\t  break;\t\t// end of subset\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    }\n\n\t\t\t\t// Read the external subset, if any\n    if (ids[1] != null) {\n      pushURL(\"[external subset]\", ids[0], ids[1], null, null, null);\n\n\t\t\t\t// Loop until we end up back at '>'\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead('>')) {\n\t  break;\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    } else {\n\t\t\t\t// No external subset.\n      skipWhitespace();\n      require('>');\n    }\n\n    if (handler != null) {\n      handler.doctypeDecl(doctypeName, ids[0], ids[1]);\n    }\n\n\t\t\t\t// Expand general entities in\n\t\t\t\t// default values of attributes.\n\t\t\t\t// (Do this after the doctypeDecl\n\t\t\t\t// event!).\n    // expandAttributeDefaultValues();\n  }\n\n\n  /**\n    * Parse a markup declaration in the internal or external DTD subset.\n    * <pre>\n    * [29] markupdecl ::= ( %elementdecl | %AttlistDecl | %EntityDecl |\n    *                       %NotationDecl | %PI | %S | %Comment |\n    *                       InternalPERef )\n    * [30] InternalPERef ::= PEReference\n    * [31] extSubset ::= (%markupdecl | %conditionalSect)*\n    * </pre>\n    */\n  void parseMarkupdecl ()\n    throws java.lang.Exception\n  {\n    if (tryRead(\"<!ELEMENT\")) {\n      parseElementdecl();\n    } else if (tryRead(\"<!ATTLIST\")) {\n      parseAttlistDecl();\n    } else if (tryRead(\"<!ENTITY\")) {\n      parseEntityDecl();\n    } else if (tryRead(\"<!NOTATION\")) {\n      parseNotationDecl();\n    } else if (tryRead(\"<?\")) {\n      parsePI();\n    } else if (tryRead(\"<!--\")) {\n      parseComment();\n    } else if (tryRead(\"<![\")) {\n      parseConditionalSect();\n    } else {\n      error(\"expected markup declaration\", null, null);\n    }\n  }\n\n\n  /**\n    * Parse an element, with its tags.\n    * <pre>\n    * [33] STag ::= '&lt;' Name (S Attribute)* S? '&gt;' [WFC: unique Att spec]\n    * [38] element ::= EmptyElement | STag content ETag\n    * [39] EmptyElement ::= '&lt;' Name (S Attribute)* S? '/&gt;'\n    *                       [WFC: unique Att spec]\n    * </pre>\n    * <p>(The '&lt;' has already been read.)\n    * <p>NOTE: this method actually chains onto parseContent(), if necessary,\n    * and parseContent() will take care of calling parseETag().\n    */\n  void parseElement ()\n    throws java.lang.Exception\n  {\n    String gi;\n    char c;\n    int oldElementContent = currentElementContent;\n    String oldElement = currentElement;\n\n\t\t\t\t// This is the (global) counter for the\n\t\t\t\t// array of specified attributes.\n    tagAttributePos = 0;\n\n\t\t\t\t// Read the element type name.\n    gi = readNmtoken(true);\n\n\t\t\t\t// Determine the current content type.\n    currentElement = gi;\n    currentElementContent = getElementContentType(gi);\n    if (currentElementContent == CONTENT_UNDECLARED) {\n      currentElementContent = CONTENT_ANY;\n    }\n\n\t\t\t\t// Read the attributes, if any.\n\t\t\t\t// After this loop, we should be just\n\t\t\t\t// in front of the closing delimiter.\n    skipWhitespace();\n    c = readCh();\n    while (c != '/' && c != '>') {\n      unread(c);\n      parseAttribute(gi);\n      skipWhitespace();\n      c = readCh();\n    }\n    unread(c);\n\n\t\t\t\t// Supply any defaulted attributes.\n    Enumeration atts = declaredAttributes(gi);\n    if (atts != null) {\n      String aname;\n    loop: while (atts.hasMoreElements()) {\n      aname = (String)atts.nextElement();\n\t\t\t\t// See if it was specified.\n      for (int i = 0; i < tagAttributePos; i++) {\n\tif (tagAttributes[i] == aname) {\n\t  continue loop;\n\t}\n      }\n\t\t\t\t// I guess not...\n      if (handler != null) {\n\thandler.attribute(aname,\n\t\t\t  getAttributeExpandedValue(gi, aname),\n\t\t\t  false);\n      }\n    }\n    }\n\n\t\t\t\t// Figure out if this is a start tag\n\t\t\t\t// or an empty element, and dispatch an\n\t\t\t\t// event accordingly.\n    c = readCh();\n    switch (c) {\n    case '>':\n      if (handler != null) {\n\thandler.startElement(gi);\n      }\n      parseContent();\n      break;\n    case '/':\n      require('>');\n      if (handler != null) {\n\thandler.startElement(gi);\n\thandler.endElement(gi);\n      }\n      break;\n    }\n\n\t\t\t\t// Restore the previous state.\n    currentElement = oldElement;\n    currentElementContent = oldElementContent;\n  }\n\n\n  /**\n    * Parse an attribute assignment.\n    * <pre>\n    * [34] Attribute ::= Name Eq AttValue\n    * </pre>\n    * @param name The name of the attribute's element.\n    * @see XmlHandler#attribute\n    */\n  void parseAttribute (String name)\n    throws java.lang.Exception\n  {\n    String aname;\n    int type;\n    String value;\n\n\t\t\t\t// Read the attribute name.\n    aname = readNmtoken(true).intern();\n    type = getAttributeDefaultValueType(name, aname);\n\n\t\t\t\t// Parse '='\n    parseEq();\n\n\t\t\t\t// Read the value, normalizing whitespace\n\t\t\t\t// if it is not CDATA.\n    if (type == ATTRIBUTE_CDATA || type == ATTRIBUTE_UNDECLARED) {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF);\n    } else {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF | LIT_NORMALIZE);\n    }\n\n\t\t\t\t// Inform the handler about the\n\t\t\t\t// attribute.\n    if (handler != null) {\n      handler.attribute(aname, value, true);\n    }\n    dataBufferPos = 0;\n\n\t\t\t\t// Note that the attribute has been\n\t\t\t\t// specified.\n    if (tagAttributePos == tagAttributes.length) {\n      String newAttrib[] = new String[tagAttributes.length * 2];\n      System.arraycopy(tagAttributes, 0, newAttrib, 0, tagAttributePos);\n      tagAttributes = newAttrib;\n    }\n    tagAttributes[tagAttributePos++] = aname;\n  }\n\n\n  /**\n    * Parse an equals sign surrounded by optional whitespace.\n    * [35] Eq ::= S? '=' S?\n    */\n  void parseEq ()\n    throws java.lang.Exception\n  {\n    skipWhitespace();\n    require('=');\n    skipWhitespace();\n  }\n\n\n  /**\n    * Parse an end tag.\n    * [36] ETag ::= '</' Name S? '>'\n    * *NOTE: parseContent() chains to here.\n    */\n  void parseETag ()\n    throws java.lang.Exception\n  {\n    String name;\n    name = readNmtoken(true);\n    if (name != currentElement) {\n      error(\"mismatched end tag\", name, currentElement);\n    }\n    skipWhitespace();\n    require('>');\n    if (handler != null) {\n      handler.endElement(name);\n    }\n  }\n\n\n  /**\n    * Parse the content of an element.\n    * [37] content ::= (element | PCData | Reference | CDSect | PI | Comment)*\n    * [68] Reference ::= EntityRef | CharRef\n    */\n  void parseContent ()\n    throws java.lang.Exception\n  {\n    String data;\n    char c;\n\n    while (true) {\n\n      switch (currentElementContent) {\n      case CONTENT_ANY:\n      case CONTENT_MIXED:\n\tparsePCData();\n\tbreak;\n      case CONTENT_ELEMENTS:\n\tparseWhitespace();\n\tbreak;\n      }\n\n\t\t\t\t// Handle delimiters\n      c = readCh();\n      switch (c) {\n\n      case '&':\t\t\t// Found \"&\"\n\tc = readCh();\n\tif (c == '#') {\n\t  parseCharRef();\n\t} else {\n\t  unread(c);\n\t  parseEntityRef(true);\n\t}\n\tbreak;\n\n      case '<':\t\t\t// Found \"<\"\n\n\tc = readCh();\n\tswitch (c) {\n\n\tcase '!':\t\t// Found \"<!\"\n\t  c = readCh();\n\t  switch (c) {\n\t  case '-':\t\t// Found \"<!-\"\n\t    require('-');\n\t    parseComment();\n\t    break;\n\t  case '[':\t\t// Found \"<![\"\n\t    require(\"CDATA[\");\n\t    parseCDSect();\n\t    break;\n\t  default:\n\t    error(\"expected comment or CDATA section\", c, null);\n\t    break;\n\t  }\n\t  break;\n\n\tcase '?':\t\t// Found \"<?\"\n\t  dataBufferFlush();\n\t  parsePI();\n\t  break;\n\n\tcase '/':\t\t// Found \"</\"\n\t  dataBufferFlush();\n\t  parseETag();\n\t  return;\n\n\tdefault:\t\t// Found \"<\" followed by something else\n\t  dataBufferFlush();\n\t  unread(c);\n\t  parseElement();\n\t  break;\n\t}\n      }\n    }\n  }\n\n\n  /**\n    * Parse an element type declaration.\n    * [40] elementdecl ::= '<!ELEMENT' S %Name S (%S S)? %contentspec S? '>'\n    *                      [VC: Unique Element Declaration]\n    * *NOTE: the '<!ELEMENT' has already been read.\n    */\n  void parseElementdecl ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    requireWhitespace();\n\t\t\t\t// Read the element type name.\n    name = readNmtoken(true);\n\n    requireWhitespace();\n\t\t\t\t// Read the content model.\n    parseContentspec(name);\n\n    skipWhitespace();\n    require('>');\n  }\n\n\n  /**\n    * Content specification.\n    * [41] contentspec ::= 'EMPTY' | 'ANY' | Mixed | elements\n    */\n  void parseContentspec (String name)\n    throws java.lang.Exception\n  {\n    if (tryRead(\"EMPTY\")) {\n      setElement(name, CONTENT_EMPTY, null, null);\n      return;\n    } else if (tryRead(\"ANY\")) {\n      setElement(name, CONTENT_ANY, null, null);\n      return;\n    } else {\n      require('(');\n      dataBufferAppend('(');\n      skipWhitespace();\n      if (tryRead(\"#PCDATA\")) {\n\tdataBufferAppend(\"#PCDATA\");\n\tparseMixed();\n\tsetElement(name, CONTENT_MIXED, dataBufferToString(), null);\n      } else {\n\tparseElements();\n\tsetElement(name, CONTENT_ELEMENTS, dataBufferToString(), null);\n      }\n    }\n  }\n\n\n  /**\n    * Parse an element-content model.\n    * [42] elements ::= (choice | seq) ('?' | '*' | '+')?\n    * [44] cps ::= S? %cp S?\n    * [45] choice ::= '(' S? %ctokplus (S? '|' S? %ctoks)* S? ')'\n    * [46] ctokplus ::= cps ('|' cps)+\n    * [47] ctoks ::= cps ('|' cps)*\n    * [48] seq ::= '(' S? %stoks (S? ',' S? %stoks)* S? ')'\n    * [49] stoks ::= cps (',' cps)*\n    * *NOTE: the opening '(' and S have already been read.\n    * *TODO: go over parameter entity boundaries more carefully.\n    */\n  void parseElements ()\n    throws java.lang.Exception\n  {\n    char c;\n    char sep;\n\n\t\t\t\t// Parse the first content particle\n    skipWhitespace();\n    parseCp();\n\n\t\t\t\t// Check for end or for a separator.\n    skipWhitespace();\n    c = readCh();\n    switch (c) {\n    case ')':\n      dataBufferAppend(')');\n      c = readCh();\n      switch (c) {\n      case '*':\n      case '+':\n      case '?':\n\tdataBufferAppend(c);\n\tbreak;\n      default:\n\tunread(c);\n      }\n      return;\n    case ',':\t\t\t// Register the separator.\n    case '|':\n      sep = c;\n      dataBufferAppend(c);\n      break;\n    default:\n      error(\"bad separator in content model\", c, null);\n      return;\n    }\n\n\t\t\t\t// Parse the rest of the content model.\n    while (true) {\n      skipWhitespace();\n      parseCp();\n      skipWhitespace();\n      c = readCh();\n      if (c == ')') {\n\tdataBufferAppend(')');\n\tbreak;\n      } else if (c != sep) {\n\terror(\"bad separator in content model\", c, null);\n\treturn;\n      } else {\n\tdataBufferAppend(c);\n      }\n    }\n\n\t\t\t\t// Check for the occurrence indicator.\n    c = readCh();\n    switch (c) {\n    case '?':\n    case '*':\n    case '+':\n      dataBufferAppend(c);\n      return;\n    default:\n      unread(c);\n      return;\n    }\n  }\n\n\n  /**\n    * Parse a content particle.\n    * [43] cp ::= (Name | choice | seq) ('?' | '*' | '+')\n    * *NOTE: I actually use a slightly different production here:\n    *        cp ::= (elements | (Name ('?' | '*' | '+')?))\n    */\n  void parseCp ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (tryRead('(')) {\n      dataBufferAppend('(');\n      parseElements();\n    } else {\n      dataBufferAppend(readNmtoken(true));\n      c = readCh();\n      switch (c) {\n      case '?':\n      case '*':\n      case '+':\n\tdataBufferAppend(c);\n\tbreak;\n      default:\n\tunread(c);\n\tbreak;\n      }\n    }\n  }\n\n\n  /**\n    * Parse mixed content.\n    * [50] Mixed ::= '(' S? %( %'#PCDATA' (S? '|' S? %Mtoks)* ) S? ')*'\n    *              | '(' S? %('#PCDATA') S? ')'\n    * [51] Mtoks ::= %Name (S? '|' S? %Name)*\n    * *NOTE: the S and '#PCDATA' have already been read.\n    */\n  void parseMixed ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Check for PCDATA alone.\n    skipWhitespace();\n    if (tryRead(')')) {\n      dataBufferAppend(\")*\");\n      tryRead('*');\n      return;\n    }\n\n\t\t\t\t// Parse mixed content.\n    skipWhitespace();\n    while (!tryRead(\")*\")) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();\n      dataBufferAppend(readNmtoken(true));\n      skipWhitespace();\n    }\n    dataBufferAppend(\")*\");\n  }\n\n\n  /**\n    * Parse an attribute list declaration.\n    * [52] AttlistDecl ::= '<!ATTLIST' S %Name S? %AttDef+ S? '>'\n    * *NOTE: the '<!ATTLIST' has already been read.\n    */\n  void parseAttlistDecl ()\n    throws java.lang.Exception\n  {\n    String elementName;\n\n    requireWhitespace();\n    elementName = readNmtoken(true);\n    requireWhitespace();\n    while (!tryRead('>')) {\n      parseAttDef(elementName);\n      skipWhitespace();\n    }\n  }\n\n\n  /**\n    * Parse a single attribute definition.\n    * [53] AttDef ::= S %Name S %AttType S %Default\n    */\n  void parseAttDef (String elementName)\n    throws java.lang.Exception\n  {\n    String name;\n    int type;\n    String enumeration = null;\n\n\t\t\t\t// Read the attribute name.\n    name = readNmtoken(true);\n\n\t\t\t\t// Read the attribute type.\n    requireWhitespace();\n    type = readAttType();\n\n\t\t\t\t// Get the string of enumerated values\n\t\t\t\t// if necessary.\n    if (type == ATTRIBUTE_ENUMERATED || type == ATTRIBUTE_NOTATION) {\n      enumeration = dataBufferToString();\n    }\n\n\t\t\t\t// Read the default value.\n    requireWhitespace();\n    parseDefault(elementName, name, type, enumeration);\n  }\n\n\n  /**\n    * Parse the attribute type.\n    * [54] AttType ::= StringType | TokenizedType | EnumeratedType\n    * [55] StringType ::= 'CDATA'\n    * [56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' |\n    *                        'NMTOKEN' | 'NMTOKENS'\n    * [57] EnumeratedType ::= NotationType | Enumeration\n    * *TODO: validate the type!!\n    */\n  int readAttType ()\n    throws java.lang.Exception\n  {\n    String typeString;\n    Integer type;\n\n    if (tryRead('(')) {\n      parseEnumeration();\n      return ATTRIBUTE_ENUMERATED;\n    } else {\n      typeString = readNmtoken(true);\n      if (typeString.equals(\"NOTATION\")) {\n\tparseNotationType();\n      }\n      type = (Integer)attributeTypeHash.get(typeString);\n      if (type == null) {\n\terror(\"illegal attribute type\", typeString, null);\n\treturn ATTRIBUTE_UNDECLARED;\n      } else {\n\treturn type.intValue();\n      }\n    }\n  }\n\n\n  /**\n    * Parse an enumeration.\n    * [60] Enumeration ::= '(' S? %Etoks (S? '|' S? %Etoks)* S? ')'\n    * [61] Etoks ::= %Nmtoken (S? '|' S? %Nmtoken)*\n    * *NOTE: the '(' has already been read.\n    */\n  void parseEnumeration ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    dataBufferAppend('(');\n\n\t\t\t\t// Read the first token.\n    skipWhitespace();\n    dataBufferAppend(readNmtoken(true));\n\t\t\t\t// Read the remaining tokens.\n    skipWhitespace();\n    while (!tryRead(')')) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();\n      dataBufferAppend(readNmtoken(true));\n      skipWhitespace();\n    }\n    dataBufferAppend(')');\n  }\n\n\n  /**\n    * Parse a notation type for an attribute.\n    * [58] NotationType ::= %'NOTATION' S '(' S? %Ntoks (S? '|' S? %Ntoks)*\n    *                       S? ')'\n    * [59] Ntoks ::= %Name (S? '|' S? %Name)\n    * *NOTE: the 'NOTATION' has already been read\n    */\n  void parseNotationType ()\n    throws java.lang.Exception\n  {\n    requireWhitespace();\n    require('(');\n\n    parseEnumeration();\n  }\n\n\n  /**\n    * Parse the default value for an attribute.\n    * [62] Default ::= '#REQUIRED' | '#IMPLIED' | ((%'#FIXED' S)? %AttValue\n    */\n  void parseDefault (String elementName, String name, int type, String enumeration)\n    throws java.lang.Exception\n  {\n    int valueType = ATTRIBUTE_DEFAULT_SPECIFIED;\n    String value = null;\n    boolean normalizeWSFlag;\n\n    if (tryRead('#')) {\n      if (tryRead(\"FIXED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_FIXED;\n\trequireWhitespace();\n\tcontext = CONTEXT_ATTRIBUTEVALUE;\n\tvalue = readLiteral(LIT_CHAR_REF);\n\tcontext = CONTEXT_DTD;\n      } else if (tryRead(\"REQUIRED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_REQUIRED;\n      } else if (tryRead(\"IMPLIED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_IMPLIED;\n      } else {\n\terror(\"illegal keyword for attribute default value\", null, null);\n      }\n    } else {\n      context = CONTEXT_ATTRIBUTEVALUE;\n      value = readLiteral(LIT_CHAR_REF);\n      context = CONTEXT_DTD;\n    }\n    setAttribute(elementName, name, type, enumeration, value, valueType);\n  }\n\n\n  /**\n    * Parse a conditional section.\n    * [63] conditionalSect ::= includeSect || ignoreSect\n    * [64] includeSect ::= '<![' %'INCLUDE' '[' (%markupdecl*)* ']]>'\n    * [65] ignoreSect ::= '<![' %'IGNORE' '[' ignoreSectContents* ']]>'\n    * [66] ignoreSectContents ::= ((SkipLit | Comment | PI) -(Char* ']]>'))\n    *                           | ('<![' ignoreSectContents* ']]>')\n    *                           | (Char - (']' | [<'\"]))\n    *                           | ('<!' (Char - ('-' | '[')))\n    * *NOTE: the '<![' has already been read.\n    * *TODO: verify that I am handling ignoreSectContents right.\n    */\n  void parseConditionalSect ()\n    throws java.lang.Exception\n  {\n    skipWhitespace();\n    if (tryRead(\"INCLUDE\")) {\n      skipWhitespace();\n      require('[');\n      skipWhitespace();\n      while (!tryRead(\"]]>\")) {\n\tparseMarkupdecl();\n\tskipWhitespace();\n      }\n    } else if (tryRead(\"IGNORE\")) {\n      skipWhitespace();\n      require('[');\n      int nesting = 1;\n      char c;\n      for (int nest = 1; nest > 0; ) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '<':\n\t  if (tryRead(\"![\")) {\n\t    nest++;\n\t  }\n\tcase ']':\n\t  if (tryRead(\"]>\")) {\n\t    nest--;\n\t  }\n\t}\n      }\n    } else {\n      error(\"conditional section must begin with INCLUDE or IGNORE\",\n\t    null, null);\n    }\n  }\n\n\n  /**\n    * Read a character reference.\n    * [67] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'\n    * *NOTE: the '&#' has already been read.\n    */\n  void parseCharRef ()\n    throws java.lang.Exception\n  {\n    int value = 0;\n    char c;\n\n    if (tryRead('x')) {\n      loop1: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\tcase 'a':\n\tcase 'A':\n\tcase 'b':\n\tcase 'B':\n\tcase 'c':\n\tcase 'C':\n\tcase 'd':\n\tcase 'D':\n\tcase 'e':\n\tcase 'E':\n\tcase 'f':\n\tcase 'F':\n\t  value *= 16;\n\t  value += Integer.parseInt(new Character(c).toString(), 16);\n\t  break;\n\tcase ';':\n\t  break loop1;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop1;\n\t}\n      }\n    } else {\n      loop2: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\t  value *= 10;\n\t  value += Integer.parseInt(new Character(c).toString(), 10);\n\t  break;\n\tcase ';':\n\t  break loop2;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop2;\n\t}\n      }\n    }\n\n    // Check for surrogates: 00000000 0000xxxx yyyyyyyy zzzzzzzz\n    //  (1101|10xx|xxyy|yyyy + 1101|11yy|zzzz|zzzz: \n    if (value <= 0x0000ffff) {\n\t\t\t\t// no surrogates needed\n      dataBufferAppend((char)value);\n    } else if (value <= 0x000fffff) {\n\t\t\t\t// > 16 bits, surrogate needed\n      dataBufferAppend((char)(0xd8 | ((value & 0x000ffc00) >> 10)));\n      dataBufferAppend((char)(0xdc | (value & 0x0003ff)));\n    } else {\n\t\t\t\t// too big for surrogate\n      error(\"character reference \" + value + \" is too large for UTF-16\",\n\t    new Integer(value).toString(), null);\n    }\n  }\n\n\n  /**\n    * Parse a reference.\n    * [69] EntityRef ::= '&' Name ';'\n    * *NOTE: the '&' has already been read.\n    * @param externalAllowed External entities are allowed here.\n    */\n  void parseEntityRef (boolean externalAllowed)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      pushString(name, getEntityValue(name));\n      break;\n    case ENTITY_TEXT:\n      if (externalAllowed) {\n\tpushURL(name, getEntityPublicId(name),\n\t\tgetEntitySystemId(name),\n\t\tnull, null, null);\n      } else {\n\terror(\"reference to external entity in attribute value.\", name, null);\n      }\n      break;\n    case ENTITY_NDATA:\n      if (externalAllowed) {\n\terror(\"data entity reference in content\", name, null);\n      } else {\n\terror(\"reference to external entity in attribute value.\", name, null);\n      }\n      break;\n    }\n  }\n\n\n  /**\n    * Parse a parameter entity reference.\n    * [70] PEReference ::= '%' Name ';'\n    * *NOTE: the '%' has already been read.\n    */\n  void parsePEReference (boolean isEntityValue)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = \"%\" + readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared parameter entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      if (isEntityValue) {\n\tpushString(name, getEntityValue(name));\n      } else {\n\tpushString(name, \" \" + getEntityValue(name) + ' ');\n      }\n      break;\n    case ENTITY_TEXT:\n      if (isEntityValue) {\n\tpushString(null, \" \");\n      }\n      pushURL(name, getEntityPublicId(name),\n\t      getEntitySystemId(name),\n\t      null, null, null);\n      if (isEntityValue) {\n\tpushString(null, \" \");\n      }\n      break;\n    }\n  }\n\n\n  /**\n    * Parse an entity declaration.\n    * [71] EntityDecl ::= '<!ENTITY' S %Name S %EntityDef S? '>'\n    *                   | '<!ENTITY' S '%' S %Name S %EntityDef S? '>'\n    * [72] EntityDef ::= EntityValue | ExternalDef\n    * [73] ExternalDef ::= ExternalID %NDataDecl?\n    * [74] ExternalID ::= 'SYSTEM' S SystemLiteral\n    *                   | 'PUBLIC' S PubidLiteral S SystemLiteral\n    * [75] NDataDecl ::= S %'NDATA' S %Name\n    * *NOTE: the '<!ENTITY' has already been read.\n    */\n  void parseEntityDecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    boolean peFlag = false;\n    String name, value, notationName, ids[];\n\n\t\t\t\t// Check for a parameter entity.\n    requireWhitespace();\n    if (tryRead('%')) {\n      peFlag = true;\n      requireWhitespace();\n    }\n\n\t\t\t\t// Read the entity name, and prepend\n\t\t\t\t// '%' if necessary.\n    name = readNmtoken(true);\n    if (peFlag) {\n      name = \"%\" + name;\n    }\n\n\t\t\t\t// Read the entity value.\n    requireWhitespace();\n    c = readCh();\n    unread(c);\n    if (c == '\"' || c == '\\'') {\n\t\t\t\t// Internal entity.\n      context = CONTEXT_ENTITYVALUE;\n      value = readLiteral(LIT_CHAR_REF|LIT_PE_REF);\n      context = CONTEXT_DTD;\n      setInternalEntity(name,value);\n    } else {\n\t\t\t\t// Read the external IDs\n      ids = readExternalIds(false);\n      if (ids[1] == null) {\n\terror(\"system identifer missing\", name, null);\n      }\n\n\t\t\t\t// Check for NDATA declaration.\n      skipWhitespace();\n      if (tryRead(\"NDATA\")) {\n\trequireWhitespace();\n\tnotationName = readNmtoken(true);\n\tsetExternalDataEntity(name, ids[0], ids[1], notationName);\n      } else {\n\tsetExternalTextEntity(name, ids[0], ids[1]);\n      }\n    }\n\n\t\t\t\t// Finish the declaration.\n    skipWhitespace();\n    require('>');\n  }\n\n\n  /**\n    * Parse a notation declaration.\n    * [81] NotationDecl ::= '<!NOTATION' S %Name S %ExternalID S? '>'\n    * *NOTE: the '<!NOTATION' has already been read.\n    */\n  void parseNotationDecl ()\n    throws java.lang.Exception\n  {\n    String nname, ids[];\n    \n\n    requireWhitespace();\n    nname = readNmtoken(true);\n\n    requireWhitespace();\n\n\t\t\t\t// Read the external identifiers.\n    ids = readExternalIds(true);\n    if (ids[0] == null && ids[1] == null) {\n      error(\"external identifer missing\", nname, null);\n    }\n\n\t\t\t\t// Register the notation.\n    setNotation(nname, ids[0], ids[1]);\n\n    skipWhitespace();\n    require('>');\n  }\n\n\n  /**\n    * Parse PCDATA.\n    * <pre>\n    * [16] PCData ::= [^&lt;&amp;]*\n    * </pre>\n    * <p>The trick here is that the data stays in the dataBuffer without\n    * necessarily being converted to a string right away.\n    */\n  void parsePCData ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Start with a little cheat -- in most\n\t\t\t\t// cases, the entire sequence of\n\t\t\t\t// character data will already be in\n\t\t\t\t// the readBuffer; if not, fall through to\n\t\t\t\t// the normal approach.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '&':\n\tcase '<':\n\t  int start = readBufferPos;\n\t  columnAugment++;\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  dataBufferAppend(readBuffer, start, i-start);\n\t  return;\n\tdefault:\n\t  columnAugment++;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, the cheat didn't work; start over\n\t\t\t\t// and do it by the book.\n    while (true) {\n      c = readCh();\n      switch (c) {\n      case '<':\n      case '&':\n\tunread(c);\n\treturn;\n      default:\n\tdataBufferAppend(c);\n\tbreak;\n      }\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // High-level reading and scanning methods.\n  //////////////////////////////////////////////////////////////////////\n\n  /**\n    * Require whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void requireWhitespace ()\n    throws java.lang.Exception\n  {\n    char c = readCh();\n    if (isWhitespace(c)) {\n      skipWhitespace();\n    } else {\n      error(\"whitespace expected\", c, null);\n    }\n  }\n\n\n  /**\n    * Parse whitespace characters, and leave them in the data buffer.\n    */\n  void parseWhitespace ()\n    throws java.lang.Exception\n  {\n    char c = readCh();\n    while (isWhitespace(c)) {\n      dataBufferAppend(c);\n      c = readCh();\n    }\n    unread(c);\n  }\n\n\n  /**\n    * Skip whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void skipWhitespace ()\n    throws java.lang.Exception\n  {\n\t\t\t\t// Start with a little cheat.  Most of\n\t\t\t\t// the time, the white space will fall\n\t\t\t\t// within the current read buffer; if\n\t\t\t\t// not, then fall through.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\t  columnAugment++;\n\t  break;\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tdefault:\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  return;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, do it by the book.\n    char c = readCh();\n    while (isWhitespace(c)) {\n      c = readCh();\n    }\n    unread(c);\n  }\n\n\n  /**\n    * Read a name or name token.\n    * [5] Name ::= (Letter | '_' | ':') (NameChar)*\n    * [7] Nmtoken ::= (NameChar)+\n    * *NOTE: [6] is implemented implicitly where required.\n    */\n  String readNmtoken (boolean isName)\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (USE_CHEATS) {\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tcase '<':\n\tcase '>':\n\tcase '&':\n\tcase ',':\n\tcase '|':\n\tcase '*':\n\tcase '+':\n\tcase '?':\n\tcase ')':\n\tcase '=':\n\tcase '\\'':\n\tcase '\"':\n\tcase '[':\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\tcase '\\n':\n\tcase ';':\n\tcase '/':\n\tcase '#':\n\t  int start = readBufferPos;\n\t  if (i == start) {\n\t    error(\"name expected\", readBuffer[i], null);\n\t  }\n\t  readBufferPos = i;\n\t  return intern(readBuffer, start, i - start);\n\t}\n      }\n    }\n\n    nameBufferPos = 0;\n\n\t\t\t\t// Read the first character.\n    loop: while (true) {\n      c = readCh();\n      switch (c) {\n      case '%':\n      case '<':\n      case '>':\n      case '&':\n      case ',':\n      case '|':\n      case '*':\n      case '+':\n      case '?':\n      case ')':\n      case '=':\n      case '\\'':\n      case '\"':\n      case '[':\n      case ' ':\n      case '\\t':\n      case '\\n':\n      case '\\r':\n      case ';':\n      case '/':\n\tunread(c);\n\tif (nameBufferPos == 0) {\n\t  error(\"name expected\", null, null);\n\t}\n\tString s = intern(nameBuffer,0,nameBufferPos);\n\tnameBufferPos = 0;\n\treturn s;\n      default:\n\tnameBuffer =\n\t  (char[])extendArray(nameBuffer, nameBuffer.length, nameBufferPos);\n\tnameBuffer[nameBufferPos++] = c;\n      }\n    }\n  }\n\n\n  /**\n    * Read a literal.\n    * [10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"'\n    *                 | \"'\" ([^<&'] | Reference)* \"'\"\n    * [11] SystemLiteral ::= '\"' URLchar* '\"' | \"'\" (URLchar - \"'\")* \"'\"\n    * [13] PubidLiteral ::= '\"' PubidChar* '\"' | \"'\" (PubidChar - \"'\")* \"'\"\n    * [9] EntityValue ::= '\"' ([^%&\"] | PEReference | Reference)* '\"'\n    *                   | \"'\" ([^%&'] | PEReference | Reference)* \"'\"\n    */\n  String readLiteral (int flags)\n    throws java.lang.Exception\n  {\n    char delim, c;\n    int startLine = line;\n\n\t\t\t\t// Find the delimiter.\n    delim = readCh();\n    if (delim != '\"' && delim != '\\'' && delim != (char)0) {\n      error(\"expected '\\\"' or \\\"'\\\"\", delim, null);\n      return null;\n    }\n\n\t\t\t\t// Read the literal.\n    try {\n      c = readCh();\n\n    loop: while (c != delim) {\n      switch (c) {\n\t\t\t\t// Literals never have line ends\n      case '\\n':\n      case '\\r':\n\tc = ' ';\n\tbreak;\n\t\t\t\t// References may be allowed\n      case '&':\n\tif ((flags & LIT_CHAR_REF) > 0) {\n\t  c = readCh();\n\t  if (c == '#') {\n\t    parseCharRef();\n\t    c = readCh();\n\t    continue loop;\t\t// check the next character\n\t  } else if ((flags & LIT_ENTITY_REF) > 0) {\n\t    unread(c);\n\t    parseEntityRef(false);\n\t    c = readCh();\n\t    continue loop;\n\t  } else {\n\t    dataBufferAppend('&');\n\t  }\n\t}\n\tbreak;\n\n      default:\n\tbreak;\n      }\n      dataBufferAppend(c);\n      c = readCh();\n    }\n    } catch (EOFException e) {\n      error(\"end of input while looking for delimiter (started on line \"\n\t    + startLine + ')', null, new Character(delim).toString());\n    }\n\n\t\t\t\t// Normalise whitespace if necessary.\n    if ((flags & LIT_NORMALIZE) > 0) {\n      dataBufferNormalize();\n    }\n\n\t\t\t\t// Return the value.\n    return dataBufferToString();\n  }\n\n\n  /**\n    * Try reading external identifiers.\n    * <p>The system identifier is not required for notations.\n    * @param inNotation Are we in a notation?\n    * @return A two-member String array containing the identifiers.\n    */\n  String[] readExternalIds (boolean inNotation)\n    throws java.lang.Exception\n  {\n    char c;\n    String ids[] = new String[2];\n\n    if (tryRead(\"PUBLIC\")) {\n      requireWhitespace();\n      ids[0] = readLiteral(LIT_NORMALIZE); // public id\n      if (inNotation) {\n\tskipWhitespace();\n\tif (tryRead('\"') || tryRead('\\'')) {\n\t  ids[1] = readLiteral(0);\n\t}\n      } else {\n\trequireWhitespace();\n\tids[1] = readLiteral(0); // system id\n      }\n    } else if (tryRead(\"SYSTEM\")) {\n      requireWhitespace();\n      ids[1] = readLiteral(0);\t// system id\n    }\n\n    return ids;\n  }\n\n\n  /**\n    * Test if a character is whitespace.\n    * <pre>\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    * </pre>\n    * @param c The character to test.\n    * @return true if the character is whitespace.\n    */\n  final boolean isWhitespace (char c)\n  {\n    switch ((int)c) {\n    case 0x20:\n    case 0x09:\n    case 0x0d:\n    case 0x0a:\n      return true;\n    default:\n      return false;\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Utility routines.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Add a character to the data buffer.\n    */\n  void dataBufferAppend (char c)\n  {\n\t\t\t\t// Expand buffer if necessary.\n    dataBuffer =\n      (char[])extendArray(dataBuffer, dataBuffer.length, dataBufferPos);\n    dataBuffer[dataBufferPos++] = c;\n  }\n\n\n  /** \n    * Add a string to the data buffer.\n    */\n  void dataBufferAppend (String s)\n  {\n    dataBufferAppend(s.toCharArray(), 0, s.length());\n  }\n\n\n  /**\n    * Append (part of) a character array to the data buffer.\n    */\n  void dataBufferAppend (char ch[], int start, int length)\n  {\n    dataBuffer =\n      (char[])extendArray(dataBuffer, dataBuffer.length,\n\t\t\t  dataBufferPos + length);\n    System.arraycopy((Object)ch, start,\n\t\t     (Object)dataBuffer, dataBufferPos,\n\t\t     length);\n    dataBufferPos += length;\n  }\n\n\n  /**\n    * Normalise whitespace in the data buffer.\n    */\n  void dataBufferNormalize ()\n  {\n    int i = 0;\n    int j = 0;\n    int end = dataBufferPos;\n\n\t\t\t\t// Skip whitespace at the start.\n    while (j < end && isWhitespace(dataBuffer[j])) {\n      j++;\n    }\n\n\t\t\t\t// Skip whitespace at the end.\n    while (end > j && isWhitespace(dataBuffer[end - 1])) {\n      end --;\n    }\n\n\t\t\t\t// Start copying to the left.\n    while (j < end) {\n\n      char c = dataBuffer[j++];\n\n\t\t\t\t// Normalise all other whitespace to\n\t\t\t\t// a single space.\n      if (isWhitespace(c)) {\n\twhile (j < end && isWhitespace(dataBuffer[j++])) {\n\t}\n\tdataBuffer[i++] = ' ';\n\tdataBuffer[i++] = dataBuffer[j-1];\n      } else {\n\tdataBuffer[i++] = c;\n      }\n    }\n\n\t\t\t\t// The new length is <= the old one.\n    dataBufferPos = i;\n  }\n\n\n  /**\n    * Convert the data buffer to a string.\n    * @param internFlag true if the contents should be interned.\n    * @see #intern(char[],int,int)\n    */\n  String dataBufferToString ()\n  {\n    String s = new String(dataBuffer, 0, dataBufferPos);\n    dataBufferPos = 0;\n    return s;\n  }\n\n\n  /**\n    * Flush the contents of the data buffer to the handler, if\n    * appropriate, and reset the buffer for new input.\n    */\n  void dataBufferFlush ()\n    throws java.lang.Exception\n  {\n    if (dataBufferPos > 0) {\n      switch (currentElementContent) {\n      case CONTENT_UNDECLARED:\n      case CONTENT_EMPTY:\n\t// do nothing\n\tbreak;\n      case CONTENT_MIXED:\n      case CONTENT_ANY:\n\tif (handler != null) {\n\t  handler.charData(dataBuffer, 0, dataBufferPos);\n\t}\n\tbreak;\n      case CONTENT_ELEMENTS:\n\tif (handler != null) {\n\t  handler.ignorableWhitespace(dataBuffer, 0, dataBufferPos);\n\t}\n\tbreak;\n      }\n      dataBufferPos = 0;\n    }\n  }\n\n\n  /**\n    * Require a string to appear, or throw an exception.\n    */\n  void require (String delim)\n    throws java.lang.Exception\n  {\n    char ch[] = delim.toCharArray();\n    for (int i = 0; i < ch.length; i++) {\n      require(ch[i]);\n    }\n  }\n\n\n  /**\n    * Require a character to appear, or throw an exception.\n    */\n  void require (char delim)\n       throws java.lang.Exception\n  {\n    char c = readCh();\n\n    if (c != delim) {\n      error(\"expected character\", c, new Character(delim).toString());\n    }\n  }\n\n\n  /**\n    * Return an internalised version of a string.\n    * <p>&AElig;lfred uses this method to create an internalised version\n    * of all names and attribute values, so that it can test equality\n    * with <code>==</code> instead of <code>String.equals()</code>.\n    * <p>If you want to be able to test for equality in the same way,\n    * you can use this method to internalise your own strings first:\n    * <pre>\n    * String PARA = handler.intern(\"PARA\");\n    * </pre>\n    * <p>Note that this will not return the same results as String.intern().\n    * @param s The string to internalise.\n    * @return An internalised version of the string.\n    * @see #intern(char[],int,int)\n    * @see java.lang.String#intern\n    */\n  public String intern (String s)\n  {\n    char ch[] = s.toCharArray();\n    return intern(ch, 0, ch.length);\n  }\n\n\n  /**\n    * Create an internalised string from a character array.\n    * <p>This is much more efficient than constructing a non-internalised\n    * string first, and then internalising it.\n    * <p>Note that this will not return the same results as String.intern().\n    * @param ch an array of characters for building the string.\n    * @param start the starting position in the array.\n    * @param length the number of characters to place in the string.\n    * @return an internalised string.\n    * @see #intern(String)\n    * @see java.lang.String#intern\n    */\n  public String intern (char ch[], int start, int length)\n  {\n    int index;\n    int hash = 0;\n\n\t\t\t\t// Generate a hash code.\n    for (int i = start; i < start + length; i++) {\n      hash = ((hash << 1) & 0xffffff) + (int)ch[i];\n    }\n\n    hash = hash % SYMBOL_TABLE_LENGTH;\n\n\t\t\t\t// Get the bucket.\n    Object bucket[] = (Object[])symbolTable[hash];\n    if (bucket == null) {\n      symbolTable[hash] = bucket = new Object[8];\n    }\n\n\t\t\t\t// Search for a matching tuple, and\n\t\t\t\t// return the string if we find one.\n    for (index = 0; index < bucket.length; index += 2) {\n      char chFound[] = (char[])bucket[index];\n\n\t\t\t\t// Stop when we hit a null index.\n      if (chFound == null) {\n\tbreak;\n      }\n\n\t\t\t\t// If they're the same length,\n\t\t\t\t// check for a match.\n\t\t\t\t// If the loop finishes, 'index' will\n\t\t\t\t// contain the current bucket\n\t\t\t\t// position.\n      if (chFound.length == length) {\n\tfor (int i = 0; i < chFound.length; i++) {\n\t\t\t\t// Stop if there are no more tuples.\n\t  if (ch[start+i] != chFound[i]) {\n\t    break;\n\t  } else if (i == length-1) {\n\t\t\t\t// That's it, we have a match!\n\t    return (String)bucket[index+1];\n\t  }\n\t}\n      }\n    }\n\n\t\t\t\t// Not found -- we'll have to add it.\n\n\t\t\t\t// Do we have to grow the bucket?\n    bucket =\n      (Object[])extendArray(bucket, bucket.length, index);\n\n\t\t\t\t// OK, add it to the end of the\n\t\t\t\t// bucket.\n    String s = new String(ch, start, length);\n    bucket[index] = s.toCharArray();\n    bucket[index+1] = s;\n    symbolTable[hash] = bucket;\n    return s;\n  }\n\n\n  /**\n    * Ensure the capacity of an array, allocating a new one if\n    * necessary.\n    */\n  Object extendArray (Object array, int currentSize, int requiredSize)\n  {\n    if (requiredSize < currentSize) {\n      return array;\n    } else {\n      Object newArray = null;\n      int newSize = currentSize * 2;\n\n      if (newSize <= requiredSize) {\n\tnewSize = requiredSize + 1;\n      }\n\n      if (array instanceof char[]) {\n\tnewArray = new char[newSize];\n      } else if (array instanceof Object[]) {\n\tnewArray = new Object[newSize];\n      }\n\n      System.arraycopy(array, 0, newArray, 0, currentSize);\n      return newArray;\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // XML query routines.\n  //////////////////////////////////////////////////////////////////////\n\n\n  //\n  // Elements\n  //\n\n  /**\n    * Get the declared elements for an XML document.\n    * <p>The results will be valid only after the DTD (if any) has been\n    * parsed.\n    * @return An enumeration of all element types declared for this\n    *         document (as Strings).\n    * @see #getElementContentType\n    * @see #getElementContentModel\n    */\n  public Enumeration declaredElements ()\n  {\n    return elementInfo.keys();\n  }\n\n\n  /**\n    * Look up the content type of an element.\n    * @param name The element type name.\n    * @return An integer constant representing the content type.\n    * @see #getElementContentModel\n    * @see #CONTENT_UNDECLARED\n    * @see #CONTENT_ANY\n    * @see #CONTENT_EMPTY\n    * @see #CONTENT_MIXED\n    * @see #CONTENT_ELEMENTS\n    */\n  public int getElementContentType (String name)\n  {\n    Object element[] = (Object[])elementInfo.get(name);\n    if (element == null) {\n      return CONTENT_UNDECLARED;\n    } else {\n      return ((Integer)element[0]).intValue();\n    }\n  }\n\n\n  /**\n    * Look up the content model of an element.\n    * <p>The result will always be null unless the content type is\n    * CONTENT_ELEMENTS or CONTENT_MIXED.\n    * @param name The element type name.\n    * @return The normalised content model, as a string.\n    * @see #getElementContentType\n    */\n  public String getElementContentModel (String name)\n  {\n    Object element[] = (Object[])elementInfo.get(name);\n    if (element == null) {\n      return null;\n    } else {\n      return (String)element[1];\n    }\n  }\n\n\n  /**\n    * Register an element.\n    * Array format:\n    *  element type\n    *  attribute hash table\n    */\n  void setElement (String name, int contentType,\n\t\t   String contentModel, Hashtable attributes)\n    throws java.lang.Exception\n  {\n    Object element[];\n\n\t\t\t\t// Try looking up the element\n    element = (Object[])elementInfo.get(name);\n\n\t\t\t\t// Make a new one if necessary.\n    if (element == null) {\n      element = new Object[3];\n      element[0] = new Integer(CONTENT_UNDECLARED);\n      element[1] = null;\n      element[2] = null;\n    } else if (contentType != CONTENT_UNDECLARED &&\n\t       ((Integer)element[0]).intValue() != CONTENT_UNDECLARED) {\n      error(\"multiple declarations for element type\", name, null);\n      return;\n    }\n\n\t\t\t\t// Insert the content type, if any.\n    if (contentType != CONTENT_UNDECLARED) {\n      element[0] = new Integer(contentType);\n    }\n\n\t\t\t\t// Insert the content model, if any.\n    if (contentModel != null) {\n      element[1] = contentModel;\n    }\n\n\t\t\t\t// Insert the attributes, if any.\n    if (attributes != null) {\n      element[2] =attributes;\n    }\n\n\t\t\t\t// Save the element info.\n    elementInfo.put(name,element);\n  }\n\n\n  /**\n    * Look up the attribute hash table for an element.\n    * The hash table is the second item in the element array.\n    */\n  Hashtable getElementAttributes (String name)\n  {\n    Object element[] = (Object[])elementInfo.get(name);\n    if (element == null) {\n      return null;\n    } else {\n      return (Hashtable)element[2];\n    }\n  }\n\n\n\n  //\n  // Attributes\n  //\n\n  /**\n    * Get the declared attributes for an element type.\n    * @param elname The name of the element type.\n    * @return An Enumeration of all the attributes declared for\n    *         a specific element type.  The results will be valid only\n    *         after the DTD (if any) has been parsed.\n    * @see #getAttributeType\n    * @see #getAttributeEnumeration\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    * @see #getAttributeExpandedValue\n    */\n  public Enumeration declaredAttributes (String elname)\n  {\n    Hashtable attlist = getElementAttributes(elname);\n\n    if (attlist == null) {\n      return null;\n    } else {\n      return attlist.keys();\n    }\n  }\n\n\n  /**\n    * Retrieve the declared type of an attribute.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return An integer constant representing the attribute type.\n    * @see #ATTRIBUTE_UNDECLARED\n    * @see #ATTRIBUTE_CDATA\n    * @see #ATTRIBUTE_ID\n    * @see #ATTRIBUTE_IDREF\n    * @see #ATTRIBUTE_IDREFS\n    * @see #ATTRIBUTE_ENTITY\n    * @see #ATTRIBUTE_ENTITIES\n    * @see #ATTRIBUTE_NMTOKEN\n    * @see #ATTRIBUTE_NMTOKENS\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */\n  public int getAttributeType (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return ATTRIBUTE_UNDECLARED;\n    } else {\n      return ((Integer)attribute[0]).intValue();\n    }\n  }\n\n\n  /**\n    * Retrieve the allowed values for an enumerated attribute type.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return A string containing the token list.\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */\n  public String getAttributeEnumeration (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else {\n      return (String)attribute[3];\n    }\n  }\n\n\n  /**\n    * Retrieve the default value of a declared attribute.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared and unspecified.\n    * @see #getAttributeExpandedValue\n    */\n  public String getAttributeDefaultValue (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else {\n      return (String)attribute[1];\n    }\n  }\n\n\n  /**\n    * Retrieve the expanded value of a declared attribute.\n    * <p>All general entities will be expanded.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The expanded default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared\n    * @see #getAttributeDefaultValue\n    */\n  public String getAttributeExpandedValue (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else if (attribute[4] == null && attribute[1] != null) {\n      try {\n\tpushString(null, (char)0 + (String)attribute[1] + (char)0);\n\tattribute[4] = readLiteral(LIT_NORMALIZE |\n\t\t\t\t   LIT_CHAR_REF |\n\t\t\t\t   LIT_ENTITY_REF);\n      } catch (Exception e) {}\n    }\n    return (String)attribute[4];\n  }\n\n\n  /**\n    * Retrieve the default value type of a declared attribute.\n    * @see #ATTRIBUTE_DEFAULT_SPECIFIED\n    * @see #ATTRIBUTE_DEFAULT_IMPLIED\n    * @see #ATTRIBUTE_DEFAULT_REQUIRED\n    * @see #ATTRIBUTE_DEFAULT_FIXED\n    */\n  public int getAttributeDefaultValueType (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return ATTRIBUTE_DEFAULT_UNDECLARED;\n    } else {\n      return ((Integer)attribute[2]).intValue();\n    }\n  }\n\n\n  /**\n    * Register an attribute declaration for later retrieval.\n    * Format:\n    * - String type\n    * - String default value\n    * - int value type\n    * *TODO: do something with attribute types.\n    */\n  void setAttribute (String elName, String name, int type, String enumeration,\n\t\t     String value, int valueType)\n    throws java.lang.Exception\n  {\n    Hashtable attlist;\n    Object attribute[];\n\n\t\t\t\t// Create a new hashtable if necessary.\n    attlist = getElementAttributes(elName);\n    if (attlist == null) {\n      attlist = new Hashtable();\n    }\n\n\t\t\t\t// Check that the attribute doesn't\n\t\t\t\t// already exist!\n    if (attlist.get(name) != null) {\n      return;\n    } else {\n      attribute = new Object[5];\n      attribute[0] = new Integer(type);\n      attribute[1] = value;\n      attribute[2] = new Integer(valueType);\n      attribute[3] = enumeration;\n      attribute[4] = null;\n      attlist.put(name.intern(), attribute);\n\n\t\t\t\t// Use CONTENT_UNDECLARED to avoid overwriting\n\t\t\t\t// existing element declaration.\n      setElement(elName,CONTENT_UNDECLARED, null, attlist);\n    }\n  }\n\n\n  /**\n    * Retrieve the three-member array representing an\n    * attribute declaration.\n    */\n  Object[] getAttribute (String elName, String name)\n  {\n    Hashtable attlist;\n    Object attribute[];\n\n    attlist = getElementAttributes(elName);\n    if (attlist == null) {\n      return null;\n    }\n\n    attribute = (Object[])attlist.get(name);\n    return attribute;\n  }\n\n\n  //\n  // Entities\n  //\n\n  /**\n    * Get declared entities.\n    * @return An Enumeration of all the entities declared for\n    *         this XML document.  The results will be valid only\n    *         after the DTD (if any) has been parsed.\n    * @see #getEntityType\n    * @see #getEntityPublicId\n    * @see #getEntitySystemId\n    * @see #getEntityValue\n    * @see #getEntityNotationName\n    */\n  public Enumeration declaredEntities ()\n  {\n    return entityInfo.keys();\n  }\n\n\n  /**\n    * Find the type of an entity.\n    * @return An integer constant representing the entity type.\n    * @see #ENTITY_UNDECLARED\n    * @see #ENTITY_INTERNAL\n    * @see #ENTITY_NDATA\n    * @see #ENTITY_TEXT\n    */\n  public int getEntityType (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return ENTITY_UNDECLARED;\n    } else {\n      return ((Integer)entity[0]).intValue();\n    }\n  }\n\n\n  /**\n    * Return an external entity's public identifier, if any.\n    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, if it is not an\n    *         external entity, or if no public identifier was\n    *         provided.\n    * @see #getEntityType\n    */\n  public String getEntityPublicId (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[1];\n    }\n  }\n\n\n  /**\n    * Return an external entity's system identifier.\n    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, or if it is not an\n    *         external entity.\n    * @see #getEntityType\n    */\n  public String getEntitySystemId (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[2];\n    }\n  }\n\n\n  /**\n    * Return the value of an internal entity.\n    * @param ename The name of the internal entity.\n    * @return The entity's value, or null if the entity was\n    *         not declared, or if it is not an internal entity.\n    * @see #getEntityType\n    */\n  public String getEntityValue (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[3];\n    }\n  }\n\n\n  /**\n    * Get the notation name associated with an NDATA entity.\n    * @param eName The NDATA entity name.\n    * @return The associated notation name, or null if the\n    *         entity was not declared, or if it is not an\n    *         NDATA entity.\n    * @see #getEntityType\n    */\n  public String getEntityNotationName (String eName)\n  {\n    Object entity[] = (Object[])entityInfo.get(eName);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[4];\n    }\n  }\n\n\n  /**\n    * Register an entity declaration for later retrieval.\n    */\n  void setInternalEntity (String eName, String value)\n  {\n    setEntity(eName, ENTITY_INTERNAL, null, null, value, null);\n  }\n\n\n  /**\n    * Register an external data entity.\n    */\n  void setExternalDataEntity (String eName, String pubid,\n\t\t\t      String sysid, String nName)\n  {\n    setEntity(eName, ENTITY_NDATA, pubid, sysid, null, nName);\n  }\n\n\n  /**\n    * Register an external text entity.\n    */\n  void setExternalTextEntity (String eName, String pubid, String sysid)\n  {\n    setEntity(eName, ENTITY_TEXT, pubid, sysid, null, null);\n  }\n\n\n  /**\n    * Register an entity declaration for later retrieval.\n    */\n  void setEntity (String eName, int eClass,\n\t\t  String pubid, String sysid,\n\t\t  String value, String nName)\n  {\n    Object entity[];\n\n    if (entityInfo.get(eName) == null) {\n      entity = new Object[5];\n      entity[0] = new Integer(eClass);\n      entity[1] = pubid;\n      entity[2] = sysid;\n      entity[3] = value;\n      entity[4] = nName;\n\n      entityInfo.put(eName,entity);\n    }\n  }\n\n\n  //\n  // Notations.\n  //\n\n  /**\n    * Get declared notations.\n    * @return An Enumeration of all the notations declared for\n    *         this XML document.  The results will be valid only\n    *         after the DTD (if any) has been parsed.\n    * @see #getNotationPublicId\n    * @see #getNotationSystemId\n    */\n  public Enumeration declaredNotations ()\n  {\n    return notationInfo.keys();\n  }\n\n\n  /**\n    * Look up the public identifier for a notation.\n    * You will normally use this method to look up a notation\n    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the public identifier, or null\n    *         if none was provided or if no such notation was\n    *         declared.\n    * @see #getNotationSystemId\n    */\n  public String getNotationPublicId (String nname)\n  {\n    Object notation[] = (Object[])notationInfo.get(nname);\n    if (notation == null) {\n      return null;\n    } else {\n      return (String)notation[0];\n    }\n  }\n\n\n  /**\n    * Look up the system identifier for a notation.\n    * You will normally use this method to look up a notation\n    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the system identifier, or null\n    *         if no such notation was declared.\n    * @see #getNotationPublicId\n    */\n  public String getNotationSystemId (String nname)\n  {\n    Object notation[] = (Object[])notationInfo.get(nname);\n    if (notation == null) {\n      return null;\n    } else {\n      return (String)notation[1];\n    }\n  }\n\n\n  /**\n    * Register a notation declaration for later retrieval.\n    * Format:\n    * - public id\n    * - system id\n    */\n  void setNotation (String nname, String pubid, String sysid)\n    throws java.lang.Exception\n  {\n    Object notation[];\n\n    if (notationInfo.get(nname) == null) {\n      notation = new Object[2];\n      notation[0] = pubid;\n      notation[1] = sysid;\n      notationInfo.put(nname,notation);\n    } else {\n      error(\"multiple declarations of notation\", nname, null);\n    }\n  }\n\n\n  //\n  // Location.\n  //\n\n\n  /**\n    * Return the current line number.\n    */\n  public int getLineNumber ()\n  {\n    return line;\n  }\n\n\n  /**\n    * Return the current column number.\n    */\n  public int getColumnNumber ()\n  {\n    return column;\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // High-level I/O.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Read a single character from the readBuffer.\n    * <p>The readDataChunk() method maintains the buffer.\n    * <p>If we hit the end of an entity, try to pop the stack and\n    * keep going.\n    * <p>(This approach doesn't really enforce XML's rules about\n    * entity boundaries, but this is not currently a validating\n    * parser).\n    * <p>This routine also attempts to keep track of the current\n    * position in external entities, but it's not entirely accurate.\n    * @return The next available input character.\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #line\n    * @return The next character from the current input source.\n    */\n  char readCh ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    // As long as there's nothing in the\n    // read buffer, try reading more data\n    // (for an external entity) or popping\n    // the entity stack (for either).\n    while (readBufferPos >= readBufferLength)\n      {\n      switch (sourceType)\n        {\n        case INPUT_READER:\n        case INPUT_EXTERNAL:\n        case INPUT_STREAM:\n        readDataChunk();\n        while (readBufferLength < 1)\n          {\n          popInput();\n          if (readBufferLength <1)\n            {\n            readDataChunk();\n            }\n          }\n        break;\n\n        default:\n        popInput();\n        break;\n        }\n      }\n\n    c = readBuffer[readBufferPos++];\n\n    // This is a particularly nasty bit\n    // of code, that checks for a parameter\n    // entity reference but peeks ahead to\n    // catch the '%' in parameter entity\n    // declarations.\n    if\n      (\n      c == '%' && \n      (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE)\n      )\n      {\n      char c2 = readCh();\n      unread(c2);\n      if (!isWhitespace(c2))\n        {\n        parsePEReference(context == CONTEXT_ENTITYVALUE);\n        return readCh();\n        }\n      }\n\n    if (c == '\\n')\n      {\n      line++;\n      column = 0;\n      }\n    else\n      {\n      column++;\n      }\n\n    return c;\n    }\n\n\n  /**\n    * Push a single character back onto the current input stream.\n    * <p>This method usually pushes the character back onto\n    * the readBuffer, while the unread(String) method treats the\n    * string as a new internal entity.\n    * <p>I don't think that this would ever be called with \n    * readBufferPos = 0, because the methods always reads a character\n    * before unreading it, but just in case, I've added a boundary\n    * condition.\n    * @param c The character to push back.\n    * @see #readCh\n    * @see #unread(String)\n    * @see #unread(char[])\n    * @see #readBuffer\n    */\n  void unread (char c)\n    throws java.lang.Exception\n    {\n    // Normal condition.\n    if (c == '\\n')\n      {\n      line--;\n      column = -1;\n      }\n    if (readBufferPos > 0)\n      {\n      readBuffer[--readBufferPos] = c;\n      }\n    else\n      {\n      pushString(null, new Character(c).toString());\n      }\n    }\n\n\n  /**\n    * Push a char array back onto the current input stream.\n    * <p>NOTE: you must <em>never</em> push back characters that you\n    * haven't actually read: use pushString() instead.\n    * @see #readCh\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readBuffer\n    * @see #pushString\n    */\n  void unread (char ch[], int length) \n    throws java.lang.Exception\n    {\n    for (int i = 0; i < length; i++)\n        {\n        if (ch[i] == '\\n')\n          {line--;column = -1;}\n        }\n    if (length < readBufferPos)\n      {readBufferPos -= length;}\n    else\n      {\n      pushCharArray(null, ch, 0, length);\n      sourceType = INPUT_BUFFER;\n      }\n    }\n\n\n  /**\n    * Push a new external input source.\n    * <p>The source will be either an external text entity, or the DTD\n    * external subset.\n    * <p>TO DO: Right now, this method always attempts to autodetect\n    * the encoding; in the future, it should allow the caller to \n    * request an encoding explicitly, and it should also look at the\n    * headers with an HTTP connection.\n    * @param url The java.net.URL object for the entity.\n    * @see XmlHandler#resolveEntity\n    * @see #pushString\n    * @see #sourceType\n    * @see #pushInput\n    * @see #detectEncoding\n    * @see #sourceType\n    * @see #readBuffer\n    */\n  void pushURL (String ename, String publicId, String systemId,\n\t\tReader reader, InputStream stream, String encoding)\n    throws java.lang.Exception\n  {\n    URL url;\n    boolean ignoreEncoding = false;\n\n\t\t\t\t// Push the existing status.\n    pushInput(ename);\n\n\t\t\t\t// Create a new read buffer.\n\t\t\t\t// (Note the four-character margin)\n    readBuffer = new char[READ_BUFFER_MAX+4];\n    readBufferPos = 0;\n    readBufferLength = 0;\n    readBufferOverflow = -1;\n    is = null;\n    line = 1;\n\n    currentByteCount = 0;\n\n\t\t\t\t// Flush any remaining data.\n    dataBufferFlush();\n\n\t\t\t\t// Make the URL absolute.\n    if (systemId != null && externalEntity != null) {\n      systemId = new URL(externalEntity.getURL(), systemId).toString();\n    } else if (baseURI != null) {\n      try {\n\tsystemId = new URL(new URL(baseURI), systemId).toString();\n      } catch (Exception e) {}\n    }\n\n\t\t\t\t// See if the application wants to\n\t\t\t\t// redirect the system ID and/or\n\t\t\t\t// supply its own character stream.\n    if (systemId != null && handler != null) {\n      Object input = handler.resolveEntity(publicId, systemId);\n      if (input != null) {\n\tif (input instanceof String) {\n\t  systemId = (String)input;\n\t} else if (input instanceof InputStream) {\n\t  stream = (InputStream)input;\n\t} else if (input instanceof Reader) {\n\t  reader = (Reader)input;\n\t}\n      }\n    }\n\n\t\t\t\t// Start the entity.\n    if (handler != null) {\n      if (systemId != null) {\n\thandler.startExternalEntity(systemId);\n      } else {\n\thandler.startExternalEntity(\"[external stream]\");\n      }\n    }\n\n\t\t\t\t// Figure out what we're reading from.\n    if (reader != null) {\n\t\t\t\t// There's an explicit character stream.\n      sourceType = INPUT_READER;\n      this.reader = reader;\n      tryEncodingDecl(true);\n      return;\n    } else if (stream != null) {\n      sourceType = INPUT_STREAM;\n      is = stream;\n    } else {\n\t\t\t\t// We have to open our own stream\n\t\t\t\t// to the URL.\n\n\t\t\t\t// Set the new status\n      sourceType = INPUT_EXTERNAL;\n      url = new URL(systemId);\n\n      externalEntity = url.openConnection();\n      externalEntity.connect();\n      is = externalEntity.getInputStream();\n    }\n\n\t\t\t\t// If we get to here, there must be\n\t\t\t\t// an InputStream available.\n    if (!is.markSupported()) {\n      is = new BufferedInputStream(is);\n    }\n\n\t\t\t\t// Attempt to detect the encoding.\n    if (encoding == null && externalEntity != null) {\n      encoding = externalEntity.getContentEncoding();\n    }\n\n    if (encoding != null) {\n      checkEncoding(encoding, false);\n      ignoreEncoding = true;\n    } else {\n      detectEncoding();\n      ignoreEncoding = false;\n    }\n\n\t\t\t\t// Read an XML or text declaration.\n    tryEncodingDecl(ignoreEncoding);\n  }\n\n\n  /**\n    * Check for an encoding declaration.\n    */\n  void tryEncodingDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n\t\t\t\t// Read the XML/Encoding declaration.\n    if (tryRead(\"<?xml\")) {\n      if (tryWhitespace()) {\n\tif (inputStack.size() > 0) {\n\t  parseTextDecl(ignoreEncoding);\n\t} else {\n\t  parseXMLDecl(ignoreEncoding);\n\t}\n      } else {\n\tunread(\"xml\".toCharArray(), 3);\n\tparsePI();\n      }\n    }\n  }\n\n\n  /**\n    * Attempt to detect the encoding of an entity.\n    * <p>The trick here (as suggested in the XML standard) is that\n    * any entity not in UTF-8, or in UCS-2 with a byte-order mark, \n    * <b>must</b> begin with an XML declaration or an encoding\n    * declaration; we simply have to look for \"&lt;?XML\" in various\n    * encodings.\n    * <p>This method has no way to distinguish among 8-bit encodings.\n    * Instead, it assumes UTF-8, then (possibly) revises its assumption\n    * later in checkEncoding().  Any ASCII-derived 8-bit encoding\n    * should work, but most will be rejected later by checkEncoding().\n    * <p>I don't currently detect EBCDIC, since I'm concerned that it\n    * could also be a valid UTF-8 sequence; I'll have to do more checking\n    * later.\n    * @see #tryEncoding(byte[], byte, byte, byte, byte)\n    * @see #tryEncoding(byte[], byte, byte)\n    * @see #checkEncoding\n    * @see #read8bitEncodingDeclaration\n    */\n  void detectEncoding ()\n    throws java.lang.Exception\n  {\n    byte signature[] = new byte[4];\n\n\t\t\t\t// Read the first four bytes for\n\t\t\t\t// autodetection.\n    is.mark(4);\n    is.read(signature);\n    is.reset();\n\n\t\t\t\t// Look for a known signature.\n    if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t    (byte)0x00, (byte)0x3c)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x00 0x3c: UCS-4, big-endian (1234)\n      encoding = ENCODING_UCS_4_1234;\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x3c 0x00 0x00 0x00: UCS-4, little-endian (4321)\n      encoding = ENCODING_UCS_4_4321;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t\t   (byte)0x3c, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x3c 0x00: UCS-4, unusual (2143)\n      encoding = ENCODING_UCS_4_2143;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x3c 0x00 0x00: UCS-4, unusual (3421)\n      encoding = ENCODING_UCS_4_3412;\n    } else if (tryEncoding(signature, (byte)0xfe, (byte)0xff)) {\n      // UCS-2 with a byte-order marker.\n      // 0xfe 0xff: UCS-2, big-endian (12)\n      encoding = ENCODING_UCS_2_12;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0xff, (byte)0xfe)) {\n      // UCS-2 with a byte-order marker.\n      // 0xff 0xfe: UCS-2, little-endian (21)\n      encoding = ENCODING_UCS_2_21;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x3f)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x00 0x3c 0x00 0x3f: UCS-2, big-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_12;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x3f, (byte)0x00)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x3c 0x00 0x3f 0x00: UCS-2, little-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_21;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x3f,\n\t\t\t   (byte)0x78, (byte)0x6d)) {\n      // Some kind of 8-bit encoding with \"<?XML\"\n      // 0x3c 0x3f 0x78 0x6d: UTF-8 or other 8-bit markup (read ENCODING)\n      encoding = ENCODING_UTF_8;\n      read8bitEncodingDeclaration();\n    } else {\n      // Some kind of 8-bit encoding without \"<?XML\"\n      // (otherwise) UTF-8 without encoding/XML declaration\n      encoding = ENCODING_UTF_8;\n    }\n  }\n\n\n  /**\n    * Check for a four-byte signature.\n    * <p>Utility routine for detectEncoding().\n    * <p>Always looks for some part of \"<?XML\" in a specific encoding.\n    * @param sig The first four bytes read.\n    * @param b1 The first byte of the signature\n    * @param b2 The second byte of the signature\n    * @param b3 The third byte of the signature\n    * @param b4 The fourth byte of the signature\n    * @see #detectEncoding\n    */\n  boolean tryEncoding (byte sig[], byte b1, byte b2, byte b3, byte b4)\n  {\n    return (sig[0] == b1 && sig[1] == b2 && sig[2] == b3 && sig[3] == b4);\n  }\n\n\n  /**\n    * Check for a two-byte signature.\n    * <p>Looks for a UCS-2 byte-order mark.\n    * <p>Utility routine for detectEncoding().\n    * @param sig The first four bytes read.\n    * @param b1 The first byte of the signature\n    * @param b2 The second byte of the signature\n    * @see #detectEncoding\n    */\n  boolean tryEncoding (byte sig[], byte b1, byte b2)\n  {\n    return ((sig[0] == b1) && (sig[1] == b2));\n  }\n\n\n  /**\n    * This method pushes a string back onto input.\n    * <p>It is useful either as the expansion of an internal entity, \n    * or for backtracking during the parse.\n    * <p>Call pushCharArray() to do the actual work.\n    * @param s The string to push back onto input.\n    * @see #pushCharArray\n    */\n  void pushString (String ename, String s) \n    throws java.lang.Exception\n  {\n    char ch[] = s.toCharArray();\n    pushCharArray(ename, ch, 0, ch.length);\n  }\n\n\n  /**\n    * Push a new internal input source.\n    * <p>This method is useful for expanding an internal entity,\n    * or for unreading a string of characters.  It creates a new\n    * readBuffer containing the characters in the array, instead\n    * of characters converted from an input byte stream.\n    * <p>I've added a couple of optimisations: don't push zero-\n    * length strings, and just push back a single character\n    * for 1-character strings; this should save some time and memory.\n    * @param ch The char array to push.\n    * @see #pushString\n    * @see #pushURL\n    * @see #readBuffer\n    * @see #sourceType\n    * @see #pushInput\n    */\n  void pushCharArray (String ename, char ch[], int start, int length)\n    throws java.lang.Exception\n  {\n\t\t\t\t// Push the existing status\n    pushInput(ename);\n    sourceType = INPUT_INTERNAL;\n    readBuffer = ch;\n    readBufferPos = start;\n    readBufferLength = length;\n    readBufferOverflow = -1;\n  }\n\n\n  /**\n    * Save the current input source onto the stack.\n    * <p>This method saves all of the global variables associated with\n    * the current input source, so that they can be restored when a new\n    * input source has finished.  It also tests for entity recursion.\n    * <p>The method saves the following global variables onto a stack\n    * using a fixed-length array:\n    * <ol>\n    * <li>sourceType\n    * <li>externalEntity\n    * <li>readBuffer\n    * <li>readBufferPos\n    * <li>readBufferLength\n    * <li>line\n    * <li>encoding\n    * </ol>\n    * @param ename The name of the entity (if any) causing the new input.\n    * @see #popInput\n    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void pushInput (String ename)\n    throws java.lang.Exception\n  {\n    Object input[] = new Object[12];\n\n\t\t\t\t// Check for entity recursion.\n    if (ename != null) {\n      Enumeration entities = entityStack.elements();\n      while (entities.hasMoreElements()) {\n\tString e = (String)entities.nextElement();\n\tif (e == ename) {\n\t  error(\"recursive reference to entity\", ename, null);\n\t}\n      }\n    }\n    entityStack.push(ename);\n\n\t\t\t\t// Don't bother if there is no input.\n    if (sourceType == INPUT_NONE) {\n      return;\n    }\n\n\t\t\t\t// Set up a snapshot of the current\n\t\t\t\t// input source.\n    input[0] = new Integer(sourceType);\n    input[1] = externalEntity;\n    input[2] = readBuffer;\n    input[3] = new Integer(readBufferPos);\n    input[4] = new Integer(readBufferLength);\n    input[5] = new Integer(line);\n    input[6] = new Integer(encoding);\n    input[7] = new Integer(readBufferOverflow);\n    input[8] = is;\n    input[9] = new Integer(currentByteCount);\n    input[10] = new Integer(column);\n    input[11] = reader;\n\n\t\t\t\t// Push it onto the stack.\n    inputStack.push(input);\n  }\n\n\n  /**\n    * Restore a previous input source.\n    * <p>This method restores all of the global variables associated with\n    * the current input source.\n    * @exception java.io.EOFException\n    *    If there are no more entries on the input stack.\n    * @see #pushInput\n    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void popInput ()\n    throws java.lang.Exception\n  {\n    Object input[];\n\n\n    switch (sourceType) {\n\n    case INPUT_EXTERNAL:\n      dataBufferFlush();\n      if (handler != null && externalEntity != null) {\n\thandler.endExternalEntity(externalEntity.getURL().toString());\n      }\n      break;\n    case INPUT_STREAM:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    case INPUT_READER:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    }\n\n\t\t\t\t// Throw an EOFException if there\n\t\t\t\t// is nothing else to pop.\n    if (inputStack.isEmpty()) {\n      throw new EOFException();\n    } else {\n      String s;\n      input = (Object[])inputStack.pop();\n      s = (String)entityStack.pop();\n    }\n\n    sourceType = ((Integer)input[0]).intValue();\n    externalEntity = (URLConnection)input[1];\n    readBuffer = (char[])input[2];\n    readBufferPos = ((Integer)input[3]).intValue();\n    readBufferLength = ((Integer)input[4]).intValue();\n    line = ((Integer)input[5]).intValue();\n    encoding = ((Integer)input[6]).intValue();\n    readBufferOverflow = ((Integer)input[7]).intValue();\n    is = (InputStream)input[8];\n    currentByteCount = ((Integer)input[9]).intValue();\n    column = ((Integer)input[10]).intValue();\n    reader = (Reader)input[11];\n  }\n\n\n  /**\n    * Return true if we can read the expected character.\n    * <p>Note that the character will be removed from the input stream\n    * on success, but will be put back on failure.  Do not attempt to\n    * read the character again if the method succeeds.\n    * @param delim The character that should appear next.  For a\n    *              insensitive match, you must supply this in upper-case.\n    * @return true if the character was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(String)\n    */\n  boolean tryRead (char delim)\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Read the character\n    c = readCh();\n\n\t\t\t\t// Test for a match, and push the character\n\t\t\t\t// back if the match fails.\n    if (c == delim) {\n      return true;\n    } else {\n      unread(c);\n      return false;\n    }\n  }\n\n\n  /**\n    * Return true if we can read the expected string.\n    * <p>This is simply a convenience method.\n    * <p>Note that the string will be removed from the input stream\n    * on success, but will be put back on failure.  Do not attempt to\n    * read the string again if the method succeeds.\n    * <p>This method will push back a character rather than an\n    * array whenever possible (probably the majority of cases).\n    * <p><b>NOTE:</b> This method currently has a hard-coded limit\n    * of 100 characters for the delimiter.\n    * @param delim The string that should appear next.\n    * @return true if the string was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(char)\n    */\n  boolean tryRead (String delim)\n    throws java.lang.Exception\n    {\n    char ch[] = delim.toCharArray();\n    char c;\n\n    // Compare the input, character-\n    // by character.\n    \n    for (int i = 0; i < ch.length; i++)\n      {\n      c=readCh();\n      if (c!=ch[i])\n        {\n        unread(c);\n        if (i!=0)\n          {unread(ch,i);}\n        return false;\n        }\n      }\n    return true;\n    }\n\n\n\n  /**\n    * Return true if we can read some whitespace.\n    * <p>This is simply a convenience method.\n    * <p>This method will push back a character rather than an\n    * array whenever possible (probably the majority of cases).\n    * @return true if whitespace was found.\n    */\n  boolean tryWhitespace ()\n    throws java.lang.Exception\n  {\n    char c;\n    c = readCh();\n    if (isWhitespace(c)) {\n      skipWhitespace();\n      return true;\n    } else {\n      unread(c);\n      return false;\n    }\n  }\n\n\n  /**\n    * Read all data until we find the specified string.\n    * <p>This is especially useful for scanning marked sections.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter\n    * @see #tryRead(String, boolean)\n    * @see #readCh\n    */\n  void parseUntil (String delim)\n    throws java.lang.Exception\n  {\n    char c;\n    int startLine = line;\n\n    try {\n      while (!tryRead(delim)) {\n\tc = readCh();\n\tdataBufferAppend(c);\n      }\n    } catch (EOFException e) {\n      error(\"end of input while looking for delimiter (started on line \" +\n\t    startLine + ')', null, delim);\n    }\n  }\n\n\n  /**\n    * Skip all data until we find the specified string.\n    * <p>This is especially useful for scanning comments.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter\n    * @see #tryRead(String, boolean)\n    * @see #readCh\n    */\n  void skipUntil (String delim)\n    throws java.lang.Exception\n  {\n    while (!tryRead(delim)) {\n      readCh();\n    }\n  }\n\n\n  /**\n    * Read just the encoding declaration (or XML declaration) at the \n    * start of an external entity.\n    * When this method is called, we know that the declaration is\n    * present (or appears to be).  We also know that the entity is\n    * in some sort of ASCII-derived 8-bit encoding.\n    * The idea of this is to let us read what the 8-bit encoding is\n    * before we've committed to converting any more of the file; the\n    * XML or encoding declaration must be in 7-bit ASCII, so we're\n    * safe as long as we don't go past it.\n    */\n  void read8bitEncodingDeclaration ()\n    throws java.lang.Exception\n  {\n    int ch;\n    readBufferPos = readBufferLength = 0;\n\n    while (true) {\n      ch = is.read();\n      readBuffer[readBufferLength++] = (char)ch;\n      switch (ch) {\n      case (int)'>':\n\treturn;\n      case -1:\n\terror(\"end of file before end of XML or encoding declaration.\",\n\t      null, \"?>\");\n\treturn;\n      }\n      if (readBuffer.length == readBufferLength) {\n\terror(\"unfinished XML or encoding declaration\", null, null);\n      }\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Low-level I/O.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Read a chunk of data from an external input source.\n    * <p>This is simply a front-end that fills the rawReadBuffer\n    * with bytes, then calls the appropriate encoding handler.\n    * @see #encoding\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #filterCR\n    * @see #copyUtf8ReadBuffer\n    * @see #copyIso8859_1ReadBuffer\n    * @see #copyUcs_2ReadBuffer\n    * @see #copyUcs_4ReadBuffer\n    */\n  void readDataChunk ()\n    throws java.lang.Exception\n    {\n    int count, i, j;\n\n    // See if we have any overflow.\n    if (readBufferOverflow > -1)\n      {\n      readBuffer[0] = (char)readBufferOverflow;\n      readBufferOverflow = -1;\n      readBufferPos = 1;\n      sawCR = true;\n      }\n    else\n      {\n      readBufferPos = 0;\n      sawCR = false;\n      }\n\n    // Special situation -- we're taking\n    // input from a character stream.\n    if (sourceType == INPUT_READER)\n      {\n      count = reader.read(readBuffer, readBufferPos, READ_BUFFER_MAX-1);\n      if (count < 0)\n        {readBufferLength = -1;}\n      else\n        {\n        readBufferLength = readBufferPos+count;\n        filterCR();\n        sawCR = false;\n        }\n      return;\n      }\n\n    // Read as many bytes as possible\n    // into the read buffer.\n    count = is.read(rawReadBuffer, 0, READ_BUFFER_MAX);\n\n    // Dispatch to an encoding-specific\n    // reader method to populate the\n    // readBuffer.\n    switch (encoding)\n      {\n      case ENCODING_UTF_8:\n      copyUtf8ReadBuffer(count);\n      break;\n      \n      case ENCODING_ISO_8859_1:\n      copyIso8859_1ReadBuffer(count);\n      break;\n      \n      case ENCODING_UCS_2_12:\n      copyUcs2ReadBuffer(count, 8, 0);\n      break;\n      \n      case ENCODING_UCS_2_21:\n      copyUcs2ReadBuffer(count, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_1234:\n      copyUcs4ReadBuffer(count, 24, 16, 8, 0);\n      break;\n      \n      case ENCODING_UCS_4_4321:\n      copyUcs4ReadBuffer(count, 0, 8, 16, 24);\n      break;\n      \n      case ENCODING_UCS_4_2143:\n      copyUcs4ReadBuffer(count, 16, 24, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_3412:\n      copyUcs4ReadBuffer(count, 8, 0, 24, 16);\n      break;\n      }\n\n    // Filter out all carriage returns\n    // if we've seen any.\n    if (sawCR)\n      {\n      filterCR();\n      sawCR = false;\n      }\n    \n    // Reset the position.\n    readBufferPos = 0;\n    currentByteCount += count;\n    }\n\n\n  /**\n    * Filter carriage returns in the read buffer.\n    * <p>CRLF becomes LF; CR becomes LF.\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #readBufferOverflow\n    */\n  void filterCR ()\n    {\n    int i, j;\n    \n    readBufferOverflow = -1;\n    \n    loop: for (i = 0, j = 0; j < readBufferLength; i++, j++)\n      {\n      switch (readBuffer[j])\n        {\n        case '\\r':\n        if (j == readBufferLength - 1)\n          {\n          readBufferOverflow = '\\r';\n          readBufferLength--;\n          break loop;\n          }\n        else if (readBuffer[j+1] == '\\n')\n          {j++;}\n        readBuffer[i] = '\\n';\n        break;\n        \n        case '\\n':\n        default:\n        readBuffer[i] = readBuffer[j];\n        break;\n        }\n      }\n    readBufferLength = i;\n    }\n\n\n  /**\n    * Convert a buffer of UTF-8-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>The tricky part of this is dealing with UTF-8 multi-byte \n    * sequences, but it doesn't seem to slow things down too much.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #getNextUtf8Byte\n    */\n  void copyUtf8ReadBuffer (int count)\n    throws java.lang.Exception\n  {\n    int i = 0;\n    int j = readBufferPos;\n    int b1;\n    boolean isSurrogate = false;\n    while (i < count) {\n      b1 = rawReadBuffer[i++];\n      isSurrogate = false;\n\n\t\t\t\t// Determine whether we are dealing\n\t\t\t\t// with a one-, two-, three-, or four-\n\t\t\t\t// byte sequence.\n      if ((b1 & 0x80) == 0) {\n\t// 1-byte sequence: 000000000xxxxxxx = 0xxxxxxx\n\treadBuffer[j++] = (char)b1;\n      } else if ((b1 & 0xe0) == 0xc0) {\n\t// 2-byte sequence: 00000yyyyyxxxxxx = 110yyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x1f) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf0) == 0xe0) {\n\t// 3-byte sequence: zzzzyyyyyyxxxxxx = 1110zzzz 10yyyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x0f) << 12) |\n\t\t (getNextUtf8Byte(i++, count) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf8) == 0xf0) {\n\t// 4-byte sequence: 11101110wwwwzzzzyy + 110111yyyyxxxxxx\n\t//     = 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx\n\t// (uuuuu = wwww + 1)\n\tisSurrogate = true;\n\tint b2 = getNextUtf8Byte(i++, count);\n\tint b3 = getNextUtf8Byte(i++, count);\n\tint b4 = getNextUtf8Byte(i++, count);\n\treadBuffer[j++] =\n\t  (char)(0xd800 |\n\t\t ((((b1 & 0x07) << 2) | ((b2 & 0x30) >> 4) - 1) << 6) |\n\t\t ((b2 & 0x0f) << 2) |\n\t\t ((b3 & 0x30) >> 4));\n\treadBuffer[j++] =\n\t  (char)(0xdc |\n\t\t ((b3 & 0x0f) << 6) |\n\t\t b4);\n\t\t\t\t// TODO: test that surrogate value is legal.\n      } else {\n\t// Otherwise, the 8th bit may not be set in UTF-8\n\tencodingError(\"bad start for UTF-8 multi-byte sequence\", b1, i);\n      }\n      if (readBuffer[j-1] == '\\r') {\n\tsawCR = true;\n      }\n    }\n\t\t\t\t// How many characters have we read?\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Return the next byte value in a UTF-8 sequence.\n    * If it is not possible to get a byte from the current\n    * entity, throw an exception.\n    * @param pos The current position in the rawReadBuffer.\n    * @param count The number of bytes in the rawReadBuffer\n    * @return The significant six bits of a non-initial byte in\n    *         a UTF-8 sequence.\n    * @exception EOFException If the sequence is incomplete.\n    */\n  int getNextUtf8Byte (int pos, int count)\n    throws java.lang.Exception\n  {\n    int val;\n\n\t\t\t\t// Take a character from the buffer\n\t\t\t\t// or from the actual input stream.\n    if (pos < count) {\n      val = rawReadBuffer[pos];\n    } else {\n      val = is.read();\n      if (val == -1) {\n\tencodingError(\"unfinished multi-byte UTF-8 sequence at EOF\", -1, pos);\n      }\n    }\n\n\t\t\t\t// Check for the correct bits at the\n\t\t\t\t// start.\n    if ((val & 0xc0) != 0x80) {\n      encodingError(\"bad continuation of multi-byte UTF-8 sequence\", val,\n\t\t    pos + 1);\n    }\n\n\t\t\t\t// Return the significant bits.\n    return (val & 0x3f);\n  }\n\n\n  /**\n    * Convert a buffer of ISO-8859-1-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>This is a direct conversion, with no tricks.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyIso8859_1ReadBuffer (int count)\n  {\n    int i, j;\n    for (i = 0, j = readBufferPos; i < count; i++, j++) {\n      readBuffer[j] = (char)(rawReadBuffer[i] & 0xff);\n      if (readBuffer[j] == '\\r') {\n\tsawCR = true;\n      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Convert a buffer of UCS-2-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs2ReadBuffer (int count, int shift1, int shift2)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n\n    if (count > 0 && (count % 2) != 0) {\n      encodingError(\"odd number of bytes in UCS-2 encoding\", -1, count);\n    }\n    for (int i = 0; i < count; i+=2) {\n      readBuffer[j++] =\n\t(char)(((rawReadBuffer[i] & 0xff) << shift1) |\n\t       ((rawReadBuffer[i+1] & 0xff) << shift2));\n      if (readBuffer[j-1] == '\\r') {\n\tsawCR = true;\n      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Convert a buffer of UCS-4-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>Java has 16-bit chars, but this routine will attempt to use\n    * surrogates to encoding values between 0x00010000 and 0x000fffff.\n    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @param shift3 The number of bits to shift byte 2\n    * @param shift4 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs4ReadBuffer (int count, int shift1, int shift2,\n\t\t\t   int shift3, int shift4)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n    int value;\n\n    if (count > 0 && (count % 4) != 0) {\n      encodingError(\"number of bytes in UCS-4 encoding not divisible by 4\",\n\t\t    -1, count);\n    }\n    for (int i = 0; i < count; i+=4) {\n      value = (((rawReadBuffer[i] & 0xff) << shift1) |\n\t       ((rawReadBuffer[i+1] & 0xff) << shift2) |\n\t       ((rawReadBuffer[i+2] & 0xff) << shift3) |\n\t       ((rawReadBuffer[i+3] & 0xff) << shift4));\n      if (value < 0x0000ffff) {\n\treadBuffer[j++] = (char)value;\n\tif (value == (int)'\\r') {\n\t  sawCR = true;\n\t}\n      } else if (value < 0x000fffff) {\n\treadBuffer[j++] = (char)(0xd8 | ((value & 0x000ffc00) >> 10));\n\treadBuffer[j++] = (char)(0xdc | (value & 0x0003ff));\n      } else {\n\tencodingError(\"value cannot be represented in UTF-16\",\n\t\t      value, i);\n      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Report a character encoding error.\n    */\n  void encodingError (String message, int value, int offset)\n    throws java.lang.Exception\n  {\n    String uri;\n\n    if (value >= 0) {\n      message = message + \" (byte value: 0x\" +\n\tInteger.toHexString(value) + ')';\n    }\n    if (externalEntity != null) {\n      uri = externalEntity.getURL().toString();\n    } else {\n      uri = baseURI;\n    }\n    handler.error(message, uri, -1, offset + currentByteCount);\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Local Variables.\n  //////////////////////////////////////////////////////////////////////\n\n  /**\n    * Re-initialize the variables for each parse.\n    */\n  void initializeVariables ()\n  {\n\t\t\t\t// No errors; first line\n    errorCount = 0;\n    line = 1;\n    column = 0;\n\n\t\t\t\t// Set up the buffers for data and names\n    dataBufferPos = 0;\n    dataBuffer = new char[DATA_BUFFER_INITIAL];\n    nameBufferPos = 0;\n    nameBuffer = new char[NAME_BUFFER_INITIAL];\n\n\t\t\t\t// Set up the DTD hash tables\n    elementInfo = new Hashtable();\n    entityInfo = new Hashtable();\n    notationInfo = new Hashtable();\n\n\t\t\t\t// Set up the variables for the current\n\t\t\t\t// element context.\n    currentElement = null;\n    currentElementContent = CONTENT_UNDECLARED;\n\n\t\t\t\t// Set up the input variables\n    sourceType = INPUT_NONE;\n    inputStack = new Stack();\n    entityStack = new Stack();\n    externalEntity = null;\n    tagAttributePos = 0;\n    tagAttributes = new String[100];\n    rawReadBuffer = new byte[READ_BUFFER_MAX];\n    readBufferOverflow = -1;\n\n    context = CONTEXT_NONE;\n\n    symbolTable = new Object[SYMBOL_TABLE_LENGTH];\n  }\n\n\n  /**\n    * Clean up after the parse to allow some garbage collection.\n    * Leave around anything that might be useful for queries.\n    */\n  void cleanupVariables ()\n  {\n    errorCount = -1;\n    line = -1;\n    column = -1;\n    dataBuffer = null;\n    nameBuffer = null;\n    currentElement = null;\n    currentElementContent = CONTENT_UNDECLARED;\n    sourceType = INPUT_NONE;\n    inputStack = null;\n    externalEntity = null;\n    entityStack = null;\n  }\n\n  //\n  // The current XML handler interface.\n  //\n  XmlHandler handler;\n\n  //\n  // I/O information.\n  //\n  private Reader reader;\t// current reader\n  private InputStream is;\t// current input stream\n  private int line;\t\t// current line number\n  private int column;\t\t// current column number\n  private int sourceType;\t// type of input source\n  private Stack inputStack;\t// stack of input soruces\n  private URLConnection externalEntity;\t// current external entity\n  private int encoding;\t\t// current character encoding.\n  private int currentByteCount;\t// how many bytes read from current source.\n\n  //\n  // Maintain a count of errors.\n  //\n  private int errorCount;\n\n  //\n  // Buffers for decoded but unparsed character input.\n  //\n  private final static int READ_BUFFER_MAX = 16384;\n  private char readBuffer[];\n  private int readBufferPos;\n  private int readBufferLength;\n  private int readBufferOverflow; // overflow character from last data chunk.\n\n\n  //\n  // Buffer for undecoded raw byte input.\n  //\n  private byte rawReadBuffer[];\n\n\n  //\n  // Buffer for parsed character data.\n  //\n  private static int DATA_BUFFER_INITIAL = 4096;\n  private char dataBuffer[];\n  private int dataBufferPos;\n\n  //\n  // Buffer for parsed names.\n  //\n  private static int NAME_BUFFER_INITIAL = 1024;\n  private char nameBuffer[];\n  private int nameBufferPos;\n\n\n  //\n  // Hashtables for DTD information on elements, entities, and notations.\n  //\n  private Hashtable elementInfo;\n  private Hashtable entityInfo;\n  private Hashtable notationInfo;\n\n\n  //\n  // Element type currently in force.\n  //\n  private String currentElement;\n  private int currentElementContent;\n\n  //\n  // Base external identifiers for resolution.\n  //\n  private String basePublicId;\n  private String baseURI;\n  private int baseEncoding;\n  private Reader baseReader;\n  private InputStream baseInputStream;\n  private char baseInputBuffer[];\n  private int baseInputBufferStart;\n  private int baseInputBufferLength;\n\n  //\n  // Stack of entity names, to help detect recursion.\n  //\n  private Stack entityStack;\n\n  //\n  // Are we in a context where PEs are allowed?\n  //\n  private int context;\n\n  //\n  // Symbol table, for internalising names.\n  //\n  private Object symbolTable[];\n  private final static int SYMBOL_TABLE_LENGTH = 1087;\n\n  //\n  // Hash table of attributes found in current start tag.", "functions": [{"function_name": "setHandler", "code": "    */\n  public void setHandler (XmlHandler handler)\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parse", "code": "    */\n  public void parse (String systemId, String publicId, String encoding)\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parse", "code": "    */\n  public void parse (String systemId, String publicId,\n\t\t     InputStream stream, String encoding)\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parse", "code": "    */\n  public void parse (String systemId, String publicId, Reader reader)\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "doParse", "code": "\n  private synchronized void doParse (String systemId, String publicId,\n\t\t\t\t     Reader reader, InputStream stream,\n\t\t\t\t     String encoding)\n    throws java.lang.Exception\n  {\n    basePublicId = publicId;\n    baseURI = systemId;\n    baseReader = reader;\n    baseInputStream = stream;\n\n    initializeVariables();\n\n\t\t\t\t// Set the default entities here.\n    setInternalEntity(intern(\"amp\"), \"&#38;\");\n    setInternalEntity(intern(\"lt\"), \"&#60;\");\n    setInternalEntity(intern(\"gt\"), \"&#62;\");\n    setInternalEntity(intern(\"apos\"), \"&#39;\");\n    setInternalEntity(intern(\"quot\"), \"&#34;\");\n\n    if (handler != null) {\n      handler.startDocument();\n    }\n\n    pushURL(\"[document]\", basePublicId, baseURI, baseReader, baseInputStream,\n\t    encoding);\n\n    parseDocument();\n\n    if (handler != null) {\n      handler.endDocument();\n    }", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [2, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [9, 23], [11, 24], [12, 25], [13, 26], [13, 27], [14, 28], [14, 29], [15, 30], [15, 31], [16, 32], [16, 33], [17, 34], [17, 35], [1, 36], [2, 37], [27, 38], [29, 39], [31, 40], [33, 41], [35, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 2], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 9], [24, 11], [25, 12], [26, 13], [27, 13], [28, 14], [29, 14], [30, 15], [31, 15], [32, 16], [33, 16], [34, 17], [35, 17], [36, 1], [37, 2], [38, 27], [39, 29], [40, 31], [41, 33], [42, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "error", "code": "    * @see XmlHandler#error\n    * @see #line\n    */\n  void error (String message, String textFound, String textExpected)\n    throws java.lang.Exception\n  {\n    errorCount++;\n    if (textFound != null) {\n      message = message + \" (found \\\"\" + textFound + \"\\\")\";\n    }\n    if (textExpected != null) {\n      message = message + \" (expected \\\"\" + textExpected + \"\\\")\";\n    }\n    if (handler != null) {\n      String uri = null;\n\n      if (externalEntity != null) {", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [1, 10], [1, 11], [7, 12], [8, 13], [9, 14], [1, 15], [10, 16], [2, 17], [3, 18], [16, 19], [11, 20], [17, 21], [18, 22], [10, 23], [21, 24], [21, 25], [22, 26], [22, 27], [23, 28], [25, 29], [27, 30], [28, 31], [29, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 1], [11, 1], [12, 7], [13, 8], [14, 9], [15, 1], [16, 10], [17, 2], [18, 3], [19, 16], [20, 11], [21, 17], [22, 18], [23, 10], [24, 21], [25, 21], [26, 22], [27, 22], [28, 23], [29, 25], [30, 27], [31, 28], [32, 29], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "error", "code": "    * @param message The error message.\n    * @param textFound The text that caused the error (or null).\n    */\n  void error (String message, char textFound, String textExpected)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parseDocument", "code": "    * document.  As a minimum, a well-formed document must have\n    * a document element, and a valid document must have a prolog\n    * as well.\n    */\n  void parseDocument ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    parseProlog();\n    require('<');\n    parseElement();\n    try\n      {\n      parseMisc();  //skip all white, PIs, and comments\n      c=readCh();   //if this doesn't throw an exception...", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "CATCH", "CALL", "CALL", "CALL", "RETURN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [3, 7], [1, 8], [1, 9], [1, 10], [5, 11], [8, 12], [8, 13], [9, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 3], [8, 1], [9, 1], [10, 1], [11, 5], [12, 8], [13, 8], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "parseComment", "code": "    * [18] Comment ::= '&lt;!--' ((Char - '-') | ('-' (Char - '-')))* \"-->\"\n    * </pre>\n    * <p>(The <code>&lt;!--</code> has already been read.)\n    */", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parsePI", "code": "    * <p>(The <code>&lt;?</code> has already been read.)\n    * <p>An XML processing instruction <em>must</em> begin with\n    * a Name, which is the instruction's target.\n    */\n  void parsePI ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    if (!tryRead(\"?>\")) {\n      requireWhitespace();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [4, 7], [5, 8], [6, 9], [1, 10], [2, 11], [2, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 4], [8, 5], [9, 6], [10, 1], [11, 2], [12, 2], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "parseCDSect", "code": "    * <p>(The '&lt;![CDATA[' has already been read.)\n    * <p>Note that this just appends characters to the dataBuffer,\n    * without actually generating an event.\n    */", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseProlog", "code": "    * <p>We do not look for the XML declaration here, because it is\n    * handled by pushURL().\n    * @see pushURL\n    */\n  void parseProlog ()\n    throws java.lang.Exception\n  {\n    parseMisc();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [1, 5], [1, 6], [1, 0], [2, 1], [3, 0], [4, 2], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parseXMLDecl", "code": "    * <p>TODO: validate value of standalone.\n    * @see #parseTextDecl\n    * @see #checkEncoding\n    */\n  void parseXMLDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String version;\n    String encodingName = null;\n    String standalone = null;\n\n\t\t\t\t// Read the version.\n    require(\"version\");\n    parseEq();\n    version = readLiteral(0);\n    if (!version.equals(\"1.0\")) {\n      error(\"unsupported XML version\", version, \"1.0\");\n    }\n\n\t\t\t\t// Try reading an encoding declaration.\n    skipWhitespace();\n    if (tryRead(\"encoding\")) {\n      parseEq();\n      encodingName = readLiteral(0);\n      checkEncoding(encodingName, ignoreEncoding);\n    }\n\n\t\t\t\t// Try reading a standalone declaration\n    skipWhitespace();\n    if (tryRead(\"standalone\")) {\n      parseEq();\n      standalone = readLiteral(0);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [2, 12], [0, 13], [3, 14], [0, 15], [0, 16], [0, 17], [8, 18], [10, 19], [12, 20], [14, 21], [15, 22], [17, 23], [4, 24], [5, 25], [1, 26], [1, 27], [2, 28], [2, 29], [2, 30], [3, 31], [22, 32], [26, 33], [29, 34], [31, 35], [31, 36], [33, 37], [34, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 2], [13, 0], [14, 3], [15, 0], [16, 0], [17, 0], [18, 8], [19, 10], [20, 12], [21, 14], [22, 15], [23, 17], [24, 4], [25, 5], [26, 1], [27, 1], [28, 2], [29, 2], [30, 2], [31, 3], [32, 22], [33, 26], [34, 29], [35, 31], [36, 31], [37, 33], [38, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "parseTextDecl", "code": "    * <p>(The <code>&lt;?xml</code>' and whitespace have already been read.)\n    * @see #parseXMLDecl\n    * @see #checkEncoding\n    */\n  void parseTextDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String encodingName = null;\n    \n\t\t\t\t// Read an optional version.\n    if (tryRead(\"version\")) {\n      String version;\n      parseEq();\n      version = readLiteral(0);\n      if (!version.equals(\"1.0\")) {\n\terror(\"unsupported XML version\", version, \"1.0\");\n      }\n      requireWhitespace();\n    }\n      \n\n\t\t\t\t// Read the encoding.\n    require(\"encoding\");\n    parseEq();\n    encodingName = readLiteral(0);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [4, 11], [7, 12], [9, 13], [1, 14], [1, 15], [10, 16], [2, 17], [12, 18], [1, 19], [14, 20], [1, 21], [1, 22], [20, 23], [21, 24], [14, 25], [24, 26], [25, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 4], [12, 7], [13, 9], [14, 1], [15, 1], [16, 10], [17, 2], [18, 12], [19, 1], [20, 14], [21, 1], [22, 1], [23, 20], [24, 21], [25, 14], [26, 24], [27, 25], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "checkEncoding", "code": "    * @param encodingName The name of the encoding specified by the user.\n    * @see #parseXMLDecl\n    * @see #parseTextDecl\n    */\n  void checkEncoding (String encodingName, boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    encodingName = encodingName.toUpperCase();\n\n    if (ignoreEncoding) {\n      return;\n    }\n\n    switch (encoding) {\n\t\t\t\t// 8-bit encodings\n    case ENCODING_UTF_8:\n      if (encodingName.equals(\"ISO-8859-1\")) {\n\tencoding = ENCODING_ISO_8859_1;\n      } else if (!encodingName.equals(\"UTF-8\")) {\n\terror(\"unsupported 8-bit encoding\",\n\t      encodingName,\n\t      \"UTF-8 or ISO-8859-1\");\n      }\n      break;\n\t\t\t\t// 16-bit encodings\n    case ENCODING_UCS_2_12:\n    case ENCODING_UCS_2_21:\n      if (!encodingName.equals(\"ISO-10646-UCS-2\") &&\n\t  !encodingName.equals(\"UTF-16\")) {\n\terror(\"unsupported 16-bit encoding\",\n\t      encodingName,\n\t      \"ISO-10646-UCS-2\");\n      }\n      break;\n\t\t\t\t// 32-bit encodings\n    case ENCODING_UCS_4_1234:\n    case ENCODING_UCS_4_4321:\n    case ENCODING_UCS_4_2143:\n    case ENCODING_UCS_4_3412:", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "PARAM", "PARAM", "ASSIGN", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "RETURN", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [6, 13], [8, 14], [10, 15], [10, 16], [13, 17], [14, 18], [14, 19], [15, 20], [16, 21], [6, 22], [8, 23], [18, 24], [19, 25], [20, 26], [10, 27], [22, 28], [22, 29], [23, 30], [23, 31], [15, 32], [32, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 6], [14, 8], [15, 10], [16, 10], [17, 13], [18, 14], [19, 14], [20, 15], [21, 16], [22, 6], [23, 8], [24, 18], [25, 19], [26, 20], [27, 10], [28, 22], [29, 22], [30, 23], [31, 23], [32, 15], [33, 32], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "parseMisc", "code": "    * <pre>\n    * [27] Misc ::= Comment | PI | S\n    * </pre>\n    */\n  void parseMisc ()\n    throws java.lang.Exception\n    {\n    while (true)\n      {\n      skipWhitespace();\n      if (tryRead(\"<?\"))\n        {parsePI();}", "ast_nodes": ["FUNC_DECL", "LOOP", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [3, 5], [1, 6], [4, 7], [5, 8], [4, 9], [7, 10], [3, 11], [4, 12], [1, 0], [2, 1], [3, 1], [4, 3], [5, 3], [6, 1], [7, 4], [8, 5], [9, 4], [10, 7], [11, 3], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "parseDoctypedecl", "code": "    *                      ('[' %markupdecl* ']' S?)? '&gt;'\n    * </pre>\n    * <p>(The <code>&lt;!DOCTYPE</code> has already been read.)\n    */\n  void parseDoctypedecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    String doctypeName, ids[];\n\n\t\t\t\t// Read the document type name.\n    requireWhitespace();\n    doctypeName = readNmtoken(true);\n\n\t\t\t\t// Read the ExternalIDs.\n    skipWhitespace();\n    ids = readExternalIds(false);\n\n\t\t\t\t// Look for a declaration subset.\n    skipWhitespace();\n    if (tryRead('[')) {\n\n\t\t\t\t// loop until the subset ends\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead(']')) {\n\t  break;\t\t// end of subset\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    }\n\n\t\t\t\t// Read the external subset, if any\n    if (ids[1] != null) {\n      pushURL(\"[external subset]\", ids[0], ids[1], null, null, null);\n\n\t\t\t\t// Loop until we end up back at '>'\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead('>')) {\n\t  break;\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    } else {\n\t\t\t\t// No external subset.\n      skipWhitespace();\n      require('>');", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [6, 14], [2, 15], [7, 16], [3, 17], [8, 18], [10, 19], [12, 20], [1, 21], [2, 22], [2, 23], [15, 24], [2, 25], [17, 26], [19, 27], [20, 28], [22, 29], [15, 30], [25, 31], [25, 32], [25, 33], [25, 34], [7, 35], [17, 36], [30, 37], [15, 38], [15, 39], [15, 40], [36, 41], [17, 42], [17, 43], [17, 44], [21, 45], [21, 46], [30, 47], [37, 48], [25, 49], [25, 50], [36, 51], [41, 52], [30, 53], [30, 54], [30, 55], [36, 56], [36, 57], [36, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 6], [15, 2], [16, 7], [17, 3], [18, 8], [19, 10], [20, 12], [21, 1], [22, 2], [23, 2], [24, 15], [25, 2], [26, 17], [27, 19], [28, 20], [29, 22], [30, 15], [31, 25], [32, 25], [33, 25], [34, 25], [35, 7], [36, 17], [37, 30], [38, 15], [39, 15], [40, 15], [41, 36], [42, 17], [43, 17], [44, 17], [45, 21], [46, 21], [47, 30], [48, 37], [49, 25], [50, 25], [51, 36], [52, 41], [53, 30], [54, 30], [55, 30], [56, 36], [57, 36], [58, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "parseMarkupdecl", "code": "    * [30] InternalPERef ::= PEReference\n    * [31] extSubset ::= (%markupdecl | %conditionalSect)*\n    * </pre>\n    */\n  void parseMarkupdecl ()\n    throws java.lang.Exception\n  {\n    if (tryRead(\"<!ELEMENT\")) {\n      parseElementdecl();\n    } else if (tryRead(\"<!ATTLIST\")) {\n      parseAttlistDecl();\n    } else if (tryRead(\"<!ENTITY\")) {\n      parseEntityDecl();\n    } else if (tryRead(\"<!NOTATION\")) {\n      parseNotationDecl();\n    } else if (tryRead(\"<?\")) {\n      parsePI();\n    } else if (tryRead(\"<!--\")) {\n      parseComment();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [3, 6], [4, 7], [4, 8], [5, 9], [1, 10], [7, 11], [7, 12], [8, 13], [2, 14], [11, 15], [11, 16], [12, 17], [4, 18], [15, 19], [15, 20], [16, 21], [7, 22], [19, 23], [20, 24], [11, 25], [23, 26], [15, 27], [19, 28], [19, 29], [28, 30], [28, 31], [28, 32], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 3], [7, 4], [8, 4], [9, 5], [10, 1], [11, 7], [12, 7], [13, 8], [14, 2], [15, 11], [16, 11], [17, 12], [18, 4], [19, 15], [20, 15], [21, 16], [22, 7], [23, 19], [24, 20], [25, 11], [26, 23], [27, 15], [28, 19], [29, 19], [30, 28], [31, 28], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "parseElement", "code": "    * <p>(The '&lt;' has already been read.)\n    * <p>NOTE: this method actually chains onto parseContent(), if necessary,\n    * and parseContent() will take care of calling parseETag().\n    */\n  void parseElement ()\n    throws java.lang.Exception\n  {\n    String gi;\n    char c;\n    int oldElementContent = currentElementContent;\n    String oldElement = currentElement;\n\n\t\t\t\t// This is the (global) counter for the\n\t\t\t\t// array of specified attributes.\n    tagAttributePos = 0;\n\n\t\t\t\t// Read the element type name.\n    gi = readNmtoken(true);\n\n\t\t\t\t// Determine the current content type.\n    currentElement = gi;\n    currentElementContent = getElementContentType(gi);\n    if (currentElementContent == CONTENT_UNDECLARED) {\n      currentElementContent = CONTENT_ANY;\n    }\n\n\t\t\t\t// Read the attributes, if any.\n\t\t\t\t// After this loop, we should be just\n\t\t\t\t// in front of the closing delimiter.\n    skipWhitespace();\n    c = readCh();\n    while (c != '/' && c != '>') {\n      unread(c);\n      parseAttribute(gi);\n      skipWhitespace();\n      c = readCh();\n    }\n    unread(c);\n\n\t\t\t\t// Supply any defaulted attributes.\n    Enumeration atts = declaredAttributes(gi);\n    if (atts != null) {\n      String aname;\n    loop: while (atts.hasMoreElements()) {\n      aname = (String)atts.nextElement();\n\t\t\t\t// See if it was specified.\n      for (int i = 0; i < tagAttributePos; i++) {\n\tif (tagAttributes[i] == aname) {\n\t  continue loop;\n\t}\n      }\n\t\t\t\t// I guess not...\n      if (handler != null) {\n\thandler.attribute(aname,\n\t\t\t  getAttributeExpandedValue(gi, aname),\n\t\t\t  false);\n      }\n    }\n    }\n\n\t\t\t\t// Figure out if this is a start tag\n\t\t\t\t// or an empty element, and dispatch an\n\t\t\t\t// event accordingly.\n    c = readCh();\n    switch (c) {\n    case '>':\n      if (handler != null) {\n\thandler.startElement(gi);\n      }\n      parseContent();\n      break;\n    case '/':\n      require('>');\n      if (handler != null) {\n\thandler.startElement(gi);\n\thandler.endElement(gi);\n      }\n      break;\n    }", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LOOP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [0, 14], [4, 15], [0, 16], [0, 17], [5, 18], [0, 19], [0, 20], [0, 21], [0, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [12, 29], [2, 30], [2, 31], [13, 32], [3, 33], [15, 34], [15, 35], [16, 36], [19, 37], [21, 38], [22, 39], [24, 40], [1, 41], [1, 42], [27, 43], [30, 44], [4, 45], [4, 46], [4, 47], [4, 48], [34, 49], [35, 50], [5, 51], [38, 52], [40, 53], [41, 54], [43, 55], [30, 56], [30, 57], [45, 58], [24, 59], [24, 60], [27, 61], [56, 62], [57, 63], [30, 64], [62, 65], [57, 66], [56, 67], [66, 68], [57, 69], [64, 70], [67, 71], [67, 72], [66, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 0], [15, 4], [16, 0], [17, 0], [18, 5], [19, 0], [20, 0], [21, 0], [22, 0], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 12], [30, 2], [31, 2], [32, 13], [33, 3], [34, 15], [35, 15], [36, 16], [37, 19], [38, 21], [39, 22], [40, 24], [41, 1], [42, 1], [43, 27], [44, 30], [45, 4], [46, 4], [47, 4], [48, 4], [49, 34], [50, 35], [51, 5], [52, 38], [53, 40], [54, 41], [55, 43], [56, 30], [57, 30], [58, 45], [59, 24], [60, 24], [61, 27], [62, 56], [63, 57], [64, 30], [65, 62], [66, 57], [67, 56], [68, 66], [69, 57], [70, 64], [71, 67], [72, 67], [73, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "parseAttribute", "code": "    * </pre>\n    * @param name The name of the attribute's element.\n    * @see XmlHandler#attribute\n    */\n  void parseAttribute (String name)\n    throws java.lang.Exception\n  {\n    String aname;\n    int type;\n    String value;\n\n\t\t\t\t// Read the attribute name.\n    aname = readNmtoken(true).intern();\n    type = getAttributeDefaultValueType(name, aname);\n\n\t\t\t\t// Parse '='\n    parseEq();\n\n\t\t\t\t// Read the value, normalizing whitespace\n\t\t\t\t// if it is not CDATA.\n    if (type == ATTRIBUTE_CDATA || type == ATTRIBUTE_UNDECLARED) {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF);\n    } else {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF | LIT_NORMALIZE);\n    }\n\n\t\t\t\t// Inform the handler about the\n\t\t\t\t// attribute.\n    if (handler != null) {\n      handler.attribute(aname, value, true);\n    }\n    dataBufferPos = 0;\n\n\t\t\t\t// Note that the attribute has been\n\t\t\t\t// specified.\n    if (tagAttributePos == tagAttributes.length) {\n      String newAttrib[] = new String[tagAttributes.length * 2];", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [3, 12], [0, 13], [0, 14], [0, 15], [1, 16], [10, 17], [11, 18], [12, 19], [12, 20], [14, 21], [15, 22], [1, 23], [1, 24], [2, 25], [3, 26], [3, 27], [22, 28], [22, 29], [24, 30], [24, 31], [25, 32], [26, 33], [27, 34], [16, 35], [33, 36], [34, 37], [35, 38], [36, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 3], [13, 0], [14, 0], [15, 0], [16, 1], [17, 10], [18, 11], [19, 12], [20, 12], [21, 14], [22, 15], [23, 1], [24, 1], [25, 2], [26, 3], [27, 3], [28, 22], [29, 22], [30, 24], [31, 24], [32, 25], [33, 26], [34, 27], [35, 16], [36, 33], [37, 34], [38, 35], [39, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "parseEq", "code": "  /**\n    * Parse an equals sign surrounded by optional whitespace.\n    * [35] Eq ::= S? '=' S?\n    */\n  void parseEq ()\n    throws java.lang.Exception", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parseETag", "code": "    * Parse an end tag.\n    * [36] ETag ::= '</' Name S? '>'\n    * *NOTE: parseContent() chains to here.\n    */\n  void parseETag ()\n    throws java.lang.Exception\n  {\n    String name;\n    name = readNmtoken(true);\n    if (name != currentElement) {\n      error(\"mismatched end tag\", name, currentElement);\n    }", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [0, 8], [4, 9], [5, 10], [8, 11], [1, 12], [2, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 0], [9, 4], [10, 5], [11, 8], [12, 1], [13, 2], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "parseContent", "code": "    * Parse the content of an element.\n    * [37] content ::= (element | PCData | Reference | CDSect | PI | Comment)*\n    * [68] Reference ::= EntityRef | CharRef\n    */\n  void parseContent ()\n    throws java.lang.Exception\n  {\n    String data;\n    char c;\n\n    while (true) {\n\n      switch (currentElementContent) {\n      case CONTENT_ANY:\n      case CONTENT_MIXED:\n\tparsePCData();\n\tbreak;\n      case CONTENT_ELEMENTS:\n\tparseWhitespace();\n\tbreak;\n      }\n\n\t\t\t\t// Handle delimiters\n      c = readCh();\n      switch (c) {\n\n      case '&':\t\t\t// Found \"&\"\n\tc = readCh();\n\tif (c == '#') {\n\t  parseCharRef();\n\t} else {\n\t  unread(c);\n\t  parseEntityRef(true);\n\t}\n\tbreak;\n\n      case '<':\t\t\t// Found \"<\"\n\n\tc = readCh();\n\tswitch (c) {\n\n\tcase '!':\t\t// Found \"<!\"\n\t  c = readCh();\n\t  switch (c) {\n\t  case '-':\t\t// Found \"<!-\"\n\t    require('-');\n\t    parseComment();\n\t    break;\n\t  case '[':\t\t// Found \"<![\"\n\t    require(\"CDATA[\");\n\t    parseCDSect();\n\t    break;\n\t  default:\n\t    error(\"expected comment or CDATA section\", c, null);\n\t    break;\n\t  }\n\t  break;\n\n\tcase '?':\t\t// Found \"<?\"\n\t  dataBufferFlush();\n\t  parsePI();\n\t  break;\n\n\tcase '/':\t\t// Found \"</\"\n\t  dataBufferFlush();\n\t  parseETag();\n\t  return;\n\n\tdefault:\t\t// Found \"<\" followed by something else", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "SWITCH", "SWITCH", "ASSIGN", "SWITCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "SWITCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [7, 13], [6, 14], [6, 15], [5, 16], [11, 17], [5, 18], [6, 19], [6, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [16, 29], [17, 30], [18, 31], [8, 32], [8, 33], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 39], [11, 40], [11, 41], [11, 42], [27, 43], [27, 44], [27, 45], [27, 46], [27, 47], [39, 48], [40, 49], [27, 50], [27, 51], [27, 52], [27, 53], [27, 54], [50, 55], [50, 56], [52, 57], [54, 58], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 5], [11, 5], [12, 5], [13, 7], [14, 6], [15, 6], [16, 5], [17, 11], [18, 5], [19, 6], [20, 6], [21, 8], [22, 8], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 16], [30, 17], [31, 18], [32, 8], [33, 8], [34, 8], [35, 8], [36, 8], [37, 8], [38, 8], [39, 8], [40, 11], [41, 11], [42, 11], [43, 27], [44, 27], [45, 27], [46, 27], [47, 27], [48, 39], [49, 40], [50, 27], [51, 27], [52, 27], [53, 27], [54, 27], [55, 50], [56, 50], [57, 52], [58, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "parseElementdecl", "code": "    * [40] elementdecl ::= '<!ELEMENT' S %Name S (%S S)? %contentspec S? '>'\n    *                      [VC: Unique Element Declaration]\n    * *NOTE: the '<!ELEMENT' has already been read.\n    */\n  void parseElementdecl ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    requireWhitespace();\n\t\t\t\t// Read the element type name.\n    name = readNmtoken(true);\n\n    requireWhitespace();\n\t\t\t\t// Read the content model.", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "parseContentspec", "code": "  /**\n    * Content specification.\n    * [41] contentspec ::= 'EMPTY' | 'ANY' | Mixed | elements\n    */\n  void parseContentspec (String name)\n    throws java.lang.Exception\n  {\n    if (tryRead(\"EMPTY\")) {\n      setElement(name, CONTENT_EMPTY, null, null);\n      return;\n    } else if (tryRead(\"ANY\")) {\n      setElement(name, CONTENT_ANY, null, null);\n      return;\n    } else {\n      require('(');\n      dataBufferAppend('(');\n      skipWhitespace();\n      if (tryRead(\"#PCDATA\")) {\n\tdataBufferAppend(\"#PCDATA\");\n\tparseMixed();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [4, 7], [3, 8], [3, 9], [5, 10], [1, 11], [8, 12], [3, 13], [3, 14], [3, 15], [3, 16], [11, 17], [11, 18], [12, 19], [14, 20], [15, 21], [16, 22], [16, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [24, 29], [24, 30], [26, 31], [26, 32], [28, 33], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 4], [8, 3], [9, 3], [10, 5], [11, 1], [12, 8], [13, 3], [14, 3], [15, 3], [16, 3], [17, 11], [18, 11], [19, 12], [20, 14], [21, 15], [22, 16], [23, 16], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 24], [30, 24], [31, 26], [32, 26], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "parseElements", "code": "    * [49] stoks ::= cps (',' cps)*\n    * *NOTE: the opening '(' and S have already been read.\n    * *TODO: go over parameter entity boundaries more carefully.\n    */\n  void parseElements ()\n    throws java.lang.Exception\n  {\n    char c;\n    char sep;\n\n\t\t\t\t// Parse the first content particle\n    skipWhitespace();\n    parseCp();\n\n\t\t\t\t// Check for end or for a separator.\n    skipWhitespace();\n    c = readCh();\n    switch (c) {\n    case ')':\n      dataBufferAppend(')');\n      c = readCh();\n      switch (c) {\n      case '*':\n      case '+':\n      case '?':\n\tdataBufferAppend(c);\n\tbreak;\n      default:\n\tunread(c);\n      }\n      return;\n    case ',':\t\t\t// Register the separator.\n    case '|':\n      sep = c;\n      dataBufferAppend(c);\n      break;\n    default:\n      error(\"bad separator in content model\", c, null);\n      return;\n    }\n\n\t\t\t\t// Parse the rest of the content model.\n    while (true) {\n      skipWhitespace();\n      parseCp();\n      skipWhitespace();\n      c = readCh();\n      if (c == ')') {\n\tdataBufferAppend(')');\n\tbreak;\n      } else if (c != sep) {\n\terror(\"bad separator in content model\", c, null);\n\treturn;\n      } else {\n\tdataBufferAppend(c);\n      }\n    }\n\n\t\t\t\t// Check for the occurrence indicator.\n    c = readCh();\n    switch (c) {\n    case '?':\n    case '*':\n    case '+':\n      dataBufferAppend(c);", "ast_nodes": ["FUNC_DECL", "SWITCH", "LOOP", "SWITCH", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [6, 17], [2, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [8, 26], [1, 27], [1, 28], [18, 29], [18, 30], [2, 31], [2, 32], [2, 33], [2, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [29, 40], [18, 41], [30, 42], [31, 43], [35, 44], [35, 45], [24, 46], [24, 47], [24, 48], [24, 49], [38, 50], [39, 51], [29, 52], [18, 53], [24, 54], [24, 55], [29, 56], [29, 57], [53, 58], [57, 59], [57, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 6], [18, 2], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 8], [27, 1], [28, 1], [29, 18], [30, 18], [31, 2], [32, 2], [33, 2], [34, 2], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 29], [41, 18], [42, 30], [43, 31], [44, 35], [45, 35], [46, 24], [47, 24], [48, 24], [49, 24], [50, 38], [51, 39], [52, 29], [53, 18], [54, 24], [55, 24], [56, 29], [57, 29], [58, 53], [59, 57], [60, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "parseCp", "code": "    * [43] cp ::= (Name | choice | seq) ('?' | '*' | '+')\n    * *NOTE: I actually use a slightly different production here:\n    *        cp ::= (elements | (Name ('?' | '*' | '+')?))\n    */\n  void parseCp ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (tryRead('(')) {\n      dataBufferAppend('(');\n      parseElements();\n    } else {\n      dataBufferAppend(readNmtoken(true));\n      c = readCh();\n      switch (c) {\n      case '?':\n      case '*':\n      case '+':\n\tdataBufferAppend(c);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "SWITCH", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [6, 15], [7, 16], [9, 17], [4, 18], [4, 19], [16, 20], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 4], [12, 4], [13, 4], [14, 4], [15, 6], [16, 7], [17, 9], [18, 4], [19, 4], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "parseMixed", "code": "    *              | '(' S? %('#PCDATA') S? ')'\n    * [51] Mtoks ::= %Name (S? '|' S? %Name)*\n    * *NOTE: the S and '#PCDATA' have already been read.\n    */\n  void parseMixed ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Check for PCDATA alone.\n    skipWhitespace();\n    if (tryRead(')')) {\n      dataBufferAppend(\")*\");\n      tryRead('*');\n      return;\n    }\n\n\t\t\t\t// Parse mixed content.\n    skipWhitespace();\n    while (!tryRead(\")*\")) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [4, 9], [5, 10], [2, 11], [7, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [2, 19], [14, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 4], [10, 5], [11, 2], [12, 7], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 2], [20, 14], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "parseAttlistDecl", "code": "    * Parse an attribute list declaration.\n    * [52] AttlistDecl ::= '<!ATTLIST' S %Name S? %AttDef+ S? '>'\n    * *NOTE: the '<!ATTLIST' has already been read.\n    */\n  void parseAttlistDecl ()\n    throws java.lang.Exception\n  {\n    String elementName;\n\n    requireWhitespace();\n    elementName = readNmtoken(true);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [3, 7], [5, 8], [1, 9], [1, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 3], [8, 5], [9, 1], [10, 1], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "parseAttDef", "code": "  /**\n    * Parse a single attribute definition.\n    * [53] AttDef ::= S %Name S %AttType S %Default\n    */\n  void parseAttDef (String elementName)\n    throws java.lang.Exception\n  {\n    String name;\n    int type;\n    String enumeration = null;\n\n\t\t\t\t// Read the attribute name.\n    name = readNmtoken(true);\n\n\t\t\t\t// Read the attribute type.\n    requireWhitespace();\n    type = readAttType();\n\n\t\t\t\t// Get the string of enumerated values\n\t\t\t\t// if necessary.\n    if (type == ATTRIBUTE_ENUMERATED || type == ATTRIBUTE_NOTATION) {\n      enumeration = dataBufferToString();\n    }", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [8, 12], [8, 13], [9, 14], [11, 15], [2, 16], [1, 17], [15, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 8], [13, 8], [14, 9], [15, 11], [16, 2], [17, 1], [18, 15], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "readAttType", "code": "    *                        'NMTOKEN' | 'NMTOKENS'\n    * [57] EnumeratedType ::= NotationType | Enumeration\n    * *TODO: validate the type!!\n    */\n  int readAttType ()\n    throws java.lang.Exception\n  {\n    String typeString;\n    Integer type;\n\n    if (tryRead('(')) {\n      parseEnumeration();\n      return ATTRIBUTE_ENUMERATED;\n    } else {\n      typeString = readNmtoken(true);\n      if (typeString.equals(\"NOTATION\")) {\n\tparseNotationType();\n      }\n      type = (Integer)attributeTypeHash.get(typeString);\n      if (type == null) {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "IF", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [6, 11], [1, 12], [1, 13], [5, 14], [5, 15], [9, 16], [11, 17], [12, 18], [14, 19], [5, 20], [10, 21], [6, 22], [18, 23], [20, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 6], [12, 1], [13, 1], [14, 5], [15, 5], [16, 9], [17, 11], [18, 12], [19, 14], [20, 5], [21, 10], [22, 6], [23, 18], [24, 20], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "parseEnumeration", "code": "    * [60] Enumeration ::= '(' S? %Etoks (S? '|' S? %Etoks)* S? ')'\n    * [61] Etoks ::= %Nmtoken (S? '|' S? %Nmtoken)*\n    * *NOTE: the '(' has already been read.\n    */\n  void parseEnumeration ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    dataBufferAppend('(');\n\n\t\t\t\t// Read the first token.\n    skipWhitespace();\n    dataBufferAppend(readNmtoken(true));\n\t\t\t\t// Read the remaining tokens.\n    skipWhitespace();\n    while (!tryRead(')')) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [6, 11], [8, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [11, 18], [14, 19], [16, 20], [17, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 6], [12, 8], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 11], [19, 14], [20, 16], [21, 17], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "parseNotationType", "code": "    *                       S? ')'\n    * [59] Ntoks ::= %Name (S? '|' S? %Name)\n    * *NOTE: the 'NOTATION' has already been read\n    */\n  void parseNotationType ()\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parseDefault", "code": "  /**\n    * Parse the default value for an attribute.\n    * [62] Default ::= '#REQUIRED' | '#IMPLIED' | ((%'#FIXED' S)? %AttValue\n    */\n  void parseDefault (String elementName, String name, int type, String enumeration)\n    throws java.lang.Exception\n  {\n    int valueType = ATTRIBUTE_DEFAULT_SPECIFIED;\n    String value = null;\n    boolean normalizeWSFlag;\n\n    if (tryRead('#')) {\n      if (tryRead(\"FIXED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_FIXED;\n\trequireWhitespace();\n\tcontext = CONTEXT_ATTRIBUTEVALUE;\n\tvalue = readLiteral(LIT_CHAR_REF);\n\tcontext = CONTEXT_DTD;\n      } else if (tryRead(\"REQUIRED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_REQUIRED;\n      } else if (tryRead(\"IMPLIED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_IMPLIED;\n      } else {\n\terror(\"illegal keyword for attribute default value\", null, null);\n      }\n    } else {\n      context = CONTEXT_ATTRIBUTEVALUE;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [10, 12], [3, 13], [1, 14], [1, 15], [1, 16], [11, 17], [11, 18], [15, 19], [17, 20], [17, 21], [18, 22], [20, 23], [21, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [23, 30], [17, 31], [26, 32], [20, 33], [20, 34], [33, 35], [33, 36], [33, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 10], [13, 3], [14, 1], [15, 1], [16, 1], [17, 11], [18, 11], [19, 15], [20, 17], [21, 17], [22, 18], [23, 20], [24, 21], [25, 11], [26, 11], [27, 11], [28, 11], [29, 11], [30, 23], [31, 17], [32, 26], [33, 20], [34, 20], [35, 33], [36, 33], [37, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "parseConditionalSect", "code": "    *                           | ('<!' (Char - ('-' | '[')))\n    * *NOTE: the '<![' has already been read.\n    * *TODO: verify that I am handling ignoreSectContents right.\n    */\n  void parseConditionalSect ()\n    throws java.lang.Exception\n  {\n    skipWhitespace();\n    if (tryRead(\"INCLUDE\")) {\n      skipWhitespace();\n      require('[');\n      skipWhitespace();\n      while (!tryRead(\"]]>\")) {\n\tparseMarkupdecl();\n\tskipWhitespace();\n      }\n    } else if (tryRead(\"IGNORE\")) {\n      skipWhitespace();\n      require('[');\n      int nesting = 1;\n      char c;\n      for (int nest = 1; nest > 0; ) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '<':\n\t  if (tryRead(\"![\")) {\n\t    nest++;\n\t  }\n\tcase ']':\n\t  if (tryRead(\"]>\")) {\n\t    nest--;\n\t  }\n\t}", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [0, 4], [2, 5], [1, 6], [3, 7], [2, 8], [2, 9], [2, 10], [5, 11], [6, 12], [1, 13], [1, 14], [1, 15], [2, 16], [8, 17], [2, 18], [2, 19], [12, 20], [14, 21], [16, 22], [16, 23], [16, 24], [8, 25], [17, 26], [10, 27], [18, 28], [6, 29], [6, 30], [8, 31], [8, 32], [25, 33], [25, 34], [25, 35], [25, 36], [31, 37], [33, 38], [35, 39], [38, 40], [39, 41], [1, 0], [2, 1], [3, 1], [4, 0], [5, 2], [6, 1], [7, 3], [8, 2], [9, 2], [10, 2], [11, 5], [12, 6], [13, 1], [14, 1], [15, 1], [16, 2], [17, 8], [18, 2], [19, 2], [20, 12], [21, 14], [22, 16], [23, 16], [24, 16], [25, 8], [26, 17], [27, 10], [28, 18], [29, 6], [30, 6], [31, 8], [32, 8], [33, 25], [34, 25], [35, 25], [36, 25], [37, 31], [38, 33], [39, 35], [40, 38], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "parseCharRef", "code": "    * Read a character reference.\n    * [67] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'\n    * *NOTE: the '&#' has already been read.\n    */\n  void parseCharRef ()\n    throws java.lang.Exception\n  {\n    int value = 0;\n    char c;\n\n    if (tryRead('x')) {\n      loop1: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\tcase 'a':\n\tcase 'A':\n\tcase 'b':\n\tcase 'B':\n\tcase 'c':\n\tcase 'C':\n\tcase 'd':\n\tcase 'D':\n\tcase 'e':\n\tcase 'E':\n\tcase 'f':\n\tcase 'F':\n\t  value *= 16;\n\t  value += Integer.parseInt(new Character(c).toString(), 16);\n\t  break;\n\tcase ';':\n\t  break loop1;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop1;\n\t}\n      }\n    } else {\n      loop2: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\t  value *= 10;\n\t  value += Integer.parseInt(new Character(c).toString(), 10);\n\t  break;\n\tcase ';':\n\t  break loop2;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop2;\n\t}\n      }\n    }\n\n    // Check for surrogates: 00000000 0000xxxx yyyyyyyy zzzzzzzz\n    //  (1101|10xx|xxyy|yyyy + 1101|11yy|zzzz|zzzz: \n    if (value <= 0x0000ffff) {\n\t\t\t\t// no surrogates needed\n      dataBufferAppend((char)value);\n    } else if (value <= 0x000fffff) {\n\t\t\t\t// > 16 bits, surrogate needed\n      dataBufferAppend((char)(0xd8 | ((value & 0x000ffc00) >> 10)));\n      dataBufferAppend((char)(0xdc | (value & 0x0003ff)));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [5, 8], [6, 9], [2, 10], [2, 11], [7, 12], [4, 13], [8, 14], [1, 15], [10, 16], [11, 17], [5, 18], [5, 19], [5, 20], [10, 21], [11, 22], [18, 23], [18, 24], [18, 25], [10, 26], [11, 27], [24, 28], [25, 29], [25, 30], [19, 31], [20, 32], [21, 33], [21, 34], [21, 35], [21, 36], [21, 37], [21, 38], [21, 39], [21, 40], [21, 41], [21, 42], [21, 43], [21, 44], [21, 45], [21, 46], [26, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 53], [22, 54], [22, 55], [22, 56], [22, 57], [22, 58], [22, 59], [22, 60], [22, 61], [22, 62], [22, 63], [22, 64], [22, 65], [22, 66], [22, 67], [22, 68], [22, 69], [22, 70], [22, 71], [22, 72], [22, 73], [27, 74], [30, 75], [31, 76], [31, 77], [32, 78], [32, 79], [21, 80], [21, 81], [21, 82], [22, 83], [22, 84], [22, 85], [76, 86], [78, 87], [78, 88], [80, 89], [80, 90], [81, 91], [82, 92], [83, 93], [83, 94], [84, 95], [85, 96], [88, 97], [91, 98], [91, 99], [95, 100], [95, 101], [99, 102], [101, 103], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 5], [9, 6], [10, 2], [11, 2], [12, 7], [13, 4], [14, 8], [15, 1], [16, 10], [17, 11], [18, 5], [19, 5], [20, 5], [21, 10], [22, 11], [23, 18], [24, 18], [25, 18], [26, 10], [27, 11], [28, 24], [29, 25], [30, 25], [31, 19], [32, 20], [33, 21], [34, 21], [35, 21], [36, 21], [37, 21], [38, 21], [39, 21], [40, 21], [41, 21], [42, 21], [43, 21], [44, 21], [45, 21], [46, 21], [47, 26], [48, 22], [49, 22], [50, 22], [51, 22], [52, 22], [53, 22], [54, 22], [55, 22], [56, 22], [57, 22], [58, 22], [59, 22], [60, 22], [61, 22], [62, 22], [63, 22], [64, 22], [65, 22], [66, 22], [67, 22], [68, 22], [69, 22], [70, 22], [71, 22], [72, 22], [73, 22], [74, 27], [75, 30], [76, 31], [77, 31], [78, 32], [79, 32], [80, 21], [81, 21], [82, 21], [83, 22], [84, 22], [85, 22], [86, 76], [87, 78], [88, 78], [89, 80], [90, 80], [91, 81], [92, 82], [93, 83], [94, 83], [95, 84], [96, 85], [97, 88], [98, 91], [99, 91], [100, 95], [101, 95], [102, 99], [103, 101], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103]]}, {"function_name": "parseEntityRef", "code": "    * [69] EntityRef ::= '&' Name ';'\n    * *NOTE: the '&' has already been read.\n    * @param externalAllowed External entities are allowed here.\n    */\n  void parseEntityRef (boolean externalAllowed)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      pushString(name, getEntityValue(name));\n      break;\n    case ENTITY_TEXT:\n      if (externalAllowed) {\n\tpushURL(name, getEntityPublicId(name),\n\t\tgetEntitySystemId(name),\n\t\tnull, null, null);\n      } else {\n\terror(\"reference to external entity in attribute value.\", name, null);\n      }\n      break;\n    case ENTITY_NDATA:\n      if (externalAllowed) {\n\terror(\"data entity reference in content\", name, null);", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [6, 14], [1, 15], [1, 16], [14, 17], [15, 18], [16, 19], [16, 20], [8, 21], [8, 22], [10, 23], [10, 24], [21, 25], [21, 26], [22, 27], [22, 28], [23, 29], [23, 30], [24, 31], [24, 32], [24, 33], [24, 34], [24, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 6], [15, 1], [16, 1], [17, 14], [18, 15], [19, 16], [20, 16], [21, 8], [22, 8], [23, 10], [24, 10], [25, 21], [26, 21], [27, 22], [28, 22], [29, 23], [30, 23], [31, 24], [32, 24], [33, 24], [34, 24], [35, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "parsePEReference", "code": "    * Parse a parameter entity reference.\n    * [70] PEReference ::= '%' Name ';'\n    * *NOTE: the '%' has already been read.\n    */\n  void parsePEReference (boolean isEntityValue)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = \"%\" + readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared parameter entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      if (isEntityValue) {\n\tpushString(name, getEntityValue(name));\n      } else {\n\tpushString(name, \" \" + getEntityValue(name) + ' ');\n      }\n      break;\n    case ENTITY_TEXT:\n      if (isEntityValue) {\n\tpushString(null, \" \");\n      }\n      pushURL(name, getEntityPublicId(name),\n\t      getEntitySystemId(name),\n\t      null, null, null);", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "IF", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [6, 14], [1, 15], [1, 16], [14, 17], [14, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [16, 24], [16, 25], [17, 26], [8, 27], [9, 28], [11, 29], [11, 30], [27, 31], [27, 32], [28, 33], [28, 34], [29, 35], [30, 36], [35, 37], [35, 38], [38, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 6], [15, 1], [16, 1], [17, 14], [18, 14], [19, 15], [20, 15], [21, 15], [22, 15], [23, 15], [24, 16], [25, 16], [26, 17], [27, 8], [28, 9], [29, 11], [30, 11], [31, 27], [32, 27], [33, 28], [34, 28], [35, 29], [36, 30], [37, 35], [38, 35], [39, 38], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "parseEntityDecl", "code": "    *                   | 'PUBLIC' S PubidLiteral S SystemLiteral\n    * [75] NDataDecl ::= S %'NDATA' S %Name\n    * *NOTE: the '<!ENTITY' has already been read.\n    */\n  void parseEntityDecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    boolean peFlag = false;\n    String name, value, notationName, ids[];\n\n\t\t\t\t// Check for a parameter entity.\n    requireWhitespace();\n    if (tryRead('%')) {\n      peFlag = true;\n      requireWhitespace();\n    }\n\n\t\t\t\t// Read the entity name, and prepend\n\t\t\t\t// '%' if necessary.\n    name = readNmtoken(true);\n    if (peFlag) {\n      name = \"%\" + name;\n    }\n\n\t\t\t\t// Read the entity value.\n    requireWhitespace();\n    c = readCh();\n    unread(c);\n    if (c == '\"' || c == '\\'') {\n\t\t\t\t// Internal entity.\n      context = CONTEXT_ENTITYVALUE;\n      value = readLiteral(LIT_CHAR_REF|LIT_PE_REF);\n      context = CONTEXT_DTD;\n      setInternalEntity(name,value);\n    } else {\n\t\t\t\t// Read the external IDs\n      ids = readExternalIds(false);\n      if (ids[1] == null) {\n\terror(\"system identifer missing\", name, null);\n      }\n\n\t\t\t\t// Check for NDATA declaration.\n      skipWhitespace();\n      if (tryRead(\"NDATA\")) {\n\trequireWhitespace();\n\tnotationName = readNmtoken(true);\n\tsetExternalDataEntity(name, ids[0], ids[1], notationName);\n      } else {\n\tsetExternalTextEntity(name, ids[0], ids[1]);\n      }\n    }", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [0, 15], [7, 16], [1, 17], [1, 18], [9, 19], [9, 20], [11, 21], [13, 22], [14, 23], [5, 24], [17, 25], [1, 26], [18, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [19, 33], [20, 34], [2, 35], [22, 36], [3, 37], [3, 38], [25, 39], [27, 40], [28, 41], [31, 42], [35, 43], [38, 44], [17, 45], [17, 46], [17, 47], [17, 48], [18, 49], [41, 50], [42, 51], [43, 52], [47, 53], [49, 54], [49, 55], [27, 56], [53, 57], [45, 58], [45, 59], [46, 60], [46, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 0], [16, 7], [17, 1], [18, 1], [19, 9], [20, 9], [21, 11], [22, 13], [23, 14], [24, 5], [25, 17], [26, 1], [27, 18], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 19], [34, 20], [35, 2], [36, 22], [37, 3], [38, 3], [39, 25], [40, 27], [41, 28], [42, 31], [43, 35], [44, 38], [45, 17], [46, 17], [47, 17], [48, 17], [49, 18], [50, 41], [51, 42], [52, 43], [53, 47], [54, 49], [55, 49], [56, 27], [57, 53], [58, 45], [59, 45], [60, 46], [61, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "parseNotationDecl", "code": "    * Parse a notation declaration.\n    * [81] NotationDecl ::= '<!NOTATION' S %Name S %ExternalID S? '>'\n    * *NOTE: the '<!NOTATION' has already been read.\n    */\n  void parseNotationDecl ()\n    throws java.lang.Exception\n  {\n    String nname, ids[];\n    \n\n    requireWhitespace();\n    nname = readNmtoken(true);\n\n    requireWhitespace();\n\n\t\t\t\t// Read the external identifiers.\n    ids = readExternalIds(true);\n    if (ids[0] == null && ids[1] == null) {\n      error(\"external identifer missing\", nname, null);\n    }\n\n\t\t\t\t// Register the notation.", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [6, 12], [6, 13], [7, 14], [9, 15], [1, 16], [12, 17], [13, 18], [14, 19], [15, 20], [5, 21], [5, 22], [16, 23], [16, 24], [12, 25], [13, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 6], [13, 6], [14, 7], [15, 9], [16, 1], [17, 12], [18, 13], [19, 14], [20, 15], [21, 5], [22, 5], [23, 16], [24, 16], [25, 12], [26, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "parsePCData", "code": "    * </pre>\n    * <p>The trick here is that the data stays in the dataBuffer without\n    * necessarily being converted to a string right away.\n    */\n  void parsePCData ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Start with a little cheat -- in most\n\t\t\t\t// cases, the entire sequence of\n\t\t\t\t// character data will already be in\n\t\t\t\t// the readBuffer; if not, fall through to\n\t\t\t\t// the normal approach.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '&':\n\tcase '<':\n\t  int start = readBufferPos;\n\t  columnAugment++;\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  dataBufferAppend(readBuffer, start, i-start);\n\t  return;\n\tdefault:\n\t  columnAugment++;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, the cheat didn't work; start over\n\t\t\t\t// and do it by the book.\n    while (true) {\n      c = readCh();\n      switch (c) {\n      case '<':\n      case '&':\n\tunread(c);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "SWITCH", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [2, 7], [2, 8], [1, 9], [6, 10], [5, 11], [5, 12], [5, 13], [5, 14], [9, 15], [6, 16], [7, 17], [8, 18], [5, 19], [5, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [22, 29], [16, 30], [16, 31], [28, 32], [29, 33], [31, 34], [22, 35], [22, 36], [22, 37], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 2], [8, 2], [9, 1], [10, 6], [11, 5], [12, 5], [13, 5], [14, 5], [15, 9], [16, 6], [17, 7], [18, 8], [19, 5], [20, 5], [21, 16], [22, 16], [23, 16], [24, 16], [25, 16], [26, 16], [27, 16], [28, 16], [29, 22], [30, 16], [31, 16], [32, 28], [33, 29], [34, 31], [35, 22], [36, 22], [37, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "requireWhitespace", "code": "\n  /**\n    * Require whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void requireWhitespace ()\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "parseWhitespace", "code": "\n\n  /**\n    * Parse whitespace characters, and leave them in the data buffer.\n    */\n  void parseWhitespace ()\n    throws java.lang.Exception\n  {\n    char c = readCh();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "skipWhitespace", "code": "\n  /**\n    * Skip whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void skipWhitespace ()\n    throws java.lang.Exception\n  {\n\t\t\t\t// Start with a little cheat.  Most of\n\t\t\t\t// the time, the white space will fall\n\t\t\t\t// within the current read buffer; if\n\t\t\t\t// not, then fall through.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\t  columnAugment++;\n\t  break;\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tdefault:\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  return;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, do it by the book.", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [3, 9], [1, 10], [7, 11], [10, 12], [7, 13], [8, 14], [9, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [17, 26], [13, 27], [18, 28], [13, 29], [26, 30], [18, 31], [28, 32], [28, 33], [29, 34], [17, 35], [17, 36], [17, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 3], [10, 1], [11, 7], [12, 10], [13, 7], [14, 8], [15, 9], [16, 13], [17, 13], [18, 13], [19, 13], [20, 13], [21, 13], [22, 13], [23, 13], [24, 13], [25, 13], [26, 17], [27, 13], [28, 18], [29, 13], [30, 26], [31, 18], [32, 28], [33, 28], [34, 29], [35, 17], [36, 17], [37, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "readNmtoken", "code": "    * Read a name or name token.\n    * [5] Name ::= (Letter | '_' | ':') (NameChar)*\n    * [7] Nmtoken ::= (NameChar)+\n    * *NOTE: [6] is implemented implicitly where required.\n    */\n  String readNmtoken (boolean isName)\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (USE_CHEATS) {\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tcase '<':\n\tcase '>':\n\tcase '&':\n\tcase ',':\n\tcase '|':\n\tcase '*':\n\tcase '+':\n\tcase '?':\n\tcase ')':\n\tcase '=':\n\tcase '\\'':\n\tcase '\"':\n\tcase '[':\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\tcase '\\n':\n\tcase ';':\n\tcase '/':\n\tcase '#':\n\t  int start = readBufferPos;\n\t  if (i == start) {\n\t    error(\"name expected\", readBuffer[i], null);\n\t  }\n\t  readBufferPos = i;\n\t  return intern(readBuffer, start, i - start);\n\t}\n      }\n    }\n\n    nameBufferPos = 0;\n\n\t\t\t\t// Read the first character.\n    loop: while (true) {\n      c = readCh();\n      switch (c) {\n      case '%':\n      case '<':\n      case '>':\n      case '&':\n      case ',':\n      case '|':\n      case '*':\n      case '+':\n      case '?':\n      case ')':\n      case '=':\n      case '\\'':\n      case '\"':\n      case '[':\n      case ' ':\n      case '\\t':\n      case '\\n':\n      case '\\r':\n      case ';':\n      case '/':\n\tunread(c);\n\tif (nameBufferPos == 0) {\n\t  error(\"name expected\", null, null);\n\t}\n\tString s = intern(nameBuffer,0,nameBufferPos);\n\tnameBufferPos = 0;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "SWITCH", "LITERAL_ANCHOR", "LOOP", "ASSIGN", "BINARY_OP", "RETURN", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "SWITCH", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [6, 8], [2, 9], [1, 10], [9, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [10, 35], [9, 36], [7, 37], [7, 38], [7, 39], [14, 40], [7, 41], [39, 42], [13, 43], [40, 44], [36, 45], [36, 46], [36, 47], [36, 48], [36, 49], [36, 50], [36, 51], [36, 52], [36, 53], [36, 54], [36, 55], [36, 56], [36, 57], [36, 58], [36, 59], [36, 60], [36, 61], [36, 62], [36, 63], [36, 64], [36, 65], [36, 66], [36, 67], [36, 68], [36, 69], [38, 70], [43, 71], [14, 72], [45, 73], [36, 74], [46, 75], [68, 76], [72, 77], [72, 78], [72, 79], [73, 80], [68, 81], [76, 82], [76, 83], [46, 84], [84, 85], [84, 86], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 6], [9, 2], [10, 1], [11, 9], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 7], [19, 7], [20, 7], [21, 7], [22, 7], [23, 7], [24, 7], [25, 7], [26, 7], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 7], [33, 7], [34, 7], [35, 10], [36, 9], [37, 7], [38, 7], [39, 7], [40, 14], [41, 7], [42, 39], [43, 13], [44, 40], [45, 36], [46, 36], [47, 36], [48, 36], [49, 36], [50, 36], [51, 36], [52, 36], [53, 36], [54, 36], [55, 36], [56, 36], [57, 36], [58, 36], [59, 36], [60, 36], [61, 36], [62, 36], [63, 36], [64, 36], [65, 36], [66, 36], [67, 36], [68, 36], [69, 36], [70, 38], [71, 43], [72, 14], [73, 45], [74, 36], [75, 46], [76, 68], [77, 72], [78, 72], [79, 72], [80, 73], [81, 68], [82, 76], [83, 76], [84, 46], [85, 84], [86, 84], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "readLiteral", "code": "    * [11] SystemLiteral ::= '\"' URLchar* '\"' | \"'\" (URLchar - \"'\")* \"'\"\n    * [13] PubidLiteral ::= '\"' PubidChar* '\"' | \"'\" (PubidChar - \"'\")* \"'\"\n    * [9] EntityValue ::= '\"' ([^%&\"] | PEReference | Reference)* '\"'\n    *                   | \"'\" ([^%&'] | PEReference | Reference)* \"'\"\n    */\n  String readLiteral (int flags)\n    throws java.lang.Exception\n  {\n    char delim, c;\n    int startLine = line;\n\n\t\t\t\t// Find the delimiter.\n    delim = readCh();\n    if (delim != '\"' && delim != '\\'' && delim != (char)0) {\n      error(\"expected '\\\"' or \\\"'\\\"\", delim, null);\n      return null;\n    }\n\n\t\t\t\t// Read the literal.\n    try {\n      c = readCh();\n\n    loop: while (c != delim) {\n      switch (c) {\n\t\t\t\t// Literals never have line ends\n      case '\\n':\n      case '\\r':\n\tc = ' ';\n\tbreak;\n\t\t\t\t// References may be allowed\n      case '&':\n\tif ((flags & LIT_CHAR_REF) > 0) {\n\t  c = readCh();\n\t  if (c == '#') {\n\t    parseCharRef();\n\t    c = readCh();\n\t    continue loop;\t\t// check the next character\n\t  } else if ((flags & LIT_ENTITY_REF) > 0) {\n\t    unread(c);\n\t    parseEntityRef(false);\n\t    c = readCh();\n\t    continue loop;\n\t  } else {\n\t    dataBufferAppend('&');\n\t  }\n\t}\n\tbreak;\n\n      default:\n\tbreak;\n      }\n      dataBufferAppend(c);\n      c = readCh();\n    }\n    } catch (EOFException e) {\n      error(\"end of input while looking for delimiter (started on line \"\n\t    + startLine + ')', null, new Character(delim).toString());\n    }\n\n\t\t\t\t// Normalise whitespace if necessary.\n    if ((flags & LIT_NORMALIZE) > 0) {", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CATCH", "LOOP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "SWITCH", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [3, 11], [4, 12], [0, 13], [9, 14], [9, 15], [11, 16], [3, 17], [4, 18], [12, 19], [12, 20], [13, 21], [2, 22], [10, 23], [11, 24], [17, 25], [18, 26], [4, 27], [20, 28], [20, 29], [23, 30], [23, 31], [23, 32], [11, 33], [11, 34], [27, 35], [27, 36], [19, 37], [28, 38], [29, 39], [30, 40], [32, 41], [32, 42], [33, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [24, 49], [24, 50], [42, 51], [46, 52], [24, 53], [46, 54], [52, 55], [52, 56], [53, 57], [54, 58], [54, 59], [46, 60], [58, 61], [54, 62], [59, 63], [60, 64], [58, 65], [61, 66], [61, 67], [54, 68], [54, 69], [58, 70], [58, 71], [58, 72], [58, 73], [68, 74], [70, 75], [71, 76], [72, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 3], [12, 4], [13, 0], [14, 9], [15, 9], [16, 11], [17, 3], [18, 4], [19, 12], [20, 12], [21, 13], [22, 2], [23, 10], [24, 11], [25, 17], [26, 18], [27, 4], [28, 20], [29, 20], [30, 23], [31, 23], [32, 23], [33, 11], [34, 11], [35, 27], [36, 27], [37, 19], [38, 28], [39, 29], [40, 30], [41, 32], [42, 32], [43, 33], [44, 24], [45, 24], [46, 24], [47, 24], [48, 24], [49, 24], [50, 24], [51, 42], [52, 46], [53, 24], [54, 46], [55, 52], [56, 52], [57, 53], [58, 54], [59, 54], [60, 46], [61, 58], [62, 54], [63, 59], [64, 60], [65, 58], [66, 61], [67, 61], [68, 54], [69, 54], [70, 58], [71, 58], [72, 58], [73, 58], [74, 68], [75, 70], [76, 71], [77, 72], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "readExternalIds", "code": "    * Try reading external identifiers.\n    * <p>The system identifier is not required for notations.\n    * @param inNotation Are we in a notation?\n    * @return A two-member String array containing the identifiers.\n    */\n  String[] readExternalIds (boolean inNotation)\n    throws java.lang.Exception\n  {\n    char c;\n    String ids[] = new String[2];\n\n    if (tryRead(\"PUBLIC\")) {\n      requireWhitespace();\n      ids[0] = readLiteral(LIT_NORMALIZE); // public id\n      if (inNotation) {\n\tskipWhitespace();\n\tif (tryRead('\"') || tryRead('\\'')) {\n\t  ids[1] = readLiteral(0);\n\t}\n      } else {\n\trequireWhitespace();\n\tids[1] = readLiteral(0); // system id\n      }\n    } else if (tryRead(\"SYSTEM\")) {", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "IF", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [2, 9], [7, 10], [8, 11], [2, 12], [2, 13], [3, 14], [6, 15], [6, 16], [9, 17], [12, 18], [15, 19], [9, 20], [9, 21], [17, 22], [9, 23], [19, 24], [20, 25], [22, 26], [22, 27], [12, 28], [15, 29], [25, 30], [17, 31], [26, 32], [27, 33], [20, 34], [31, 35], [35, 36], [31, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 2], [10, 7], [11, 8], [12, 2], [13, 2], [14, 3], [15, 6], [16, 6], [17, 9], [18, 12], [19, 15], [20, 9], [21, 9], [22, 17], [23, 9], [24, 19], [25, 20], [26, 22], [27, 22], [28, 12], [29, 15], [30, 25], [31, 17], [32, 26], [33, 27], [34, 20], [35, 31], [36, 35], [37, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "isWhitespace", "code": "    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    * </pre>\n    * @param c The character to test.\n    * @return true if the character is whitespace.\n    */\n  final boolean isWhitespace (char c)\n  {\n    switch ((int)c) {\n    case 0x20:\n    case 0x09:", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [4, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "dataBufferAppend", "code": "  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Add a character to the data buffer.\n    */", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "dataBufferAppend", "code": "  }\n\n", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "dataBufferAppend", "code": "  }\n\n\n  /**\n    * Append (part of) a character array to the data buffer.\n    */\n  void dataBufferAppend (char ch[], int start, int length)\n  {\n    dataBuffer =", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "dataBufferNormalize", "code": "  }\n\n\n  /**\n    * Normalise whitespace in the data buffer.\n    */\n  void dataBufferNormalize ()\n  {\n    int i = 0;\n    int j = 0;\n    int end = dataBufferPos;\n\n\t\t\t\t// Skip whitespace at the start.\n    while (j < end && isWhitespace(dataBuffer[j])) {\n      j++;\n    }\n\n\t\t\t\t// Skip whitespace at the end.\n    while (end > j && isWhitespace(dataBuffer[end - 1])) {\n      end --;\n    }\n\n\t\t\t\t// Start copying to the left.\n    while (j < end) {\n\n      char c = dataBuffer[j++];\n\n\t\t\t\t// Normalise all other whitespace to\n\t\t\t\t// a single space.\n      if (isWhitespace(c)) {\n\twhile (j < end && isWhitespace(dataBuffer[j++])) {\n\t}\n\tdataBuffer[i++] = ' ';\n\tdataBuffer[i++] = dataBuffer[j-1];\n      } else {", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LOOP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [1, 11], [1, 12], [9, 13], [9, 14], [10, 15], [10, 16], [5, 17], [6, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [20, 24], [13, 25], [23, 26], [24, 27], [24, 28], [25, 29], [22, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 1], [12, 1], [13, 9], [14, 9], [15, 10], [16, 10], [17, 5], [18, 6], [19, 11], [20, 11], [21, 11], [22, 11], [23, 11], [24, 20], [25, 13], [26, 23], [27, 24], [28, 24], [29, 25], [30, 22], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "dataBufferToString", "code": "\n  /**\n    * Convert the data buffer to a string.\n    * @param internFlag true if the contents should be interned.\n    * @see #intern(char[],int,int)", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "dataBufferFlush", "code": "\n\n  /**\n    * Flush the contents of the data buffer to the handler, if\n    * appropriate, and reset the buffer for new input.\n    */\n  void dataBufferFlush ()\n    throws java.lang.Exception\n  {\n    if (dataBufferPos > 0) {\n      switch (currentElementContent) {\n      case CONTENT_UNDECLARED:\n      case CONTENT_EMPTY:\n\t// do nothing\n\tbreak;\n      case CONTENT_MIXED:\n      case CONTENT_ANY:\n\tif (handler != null) {\n\t  handler.charData(dataBuffer, 0, dataBufferPos);\n\t}\n\tbreak;\n      case CONTENT_ELEMENTS:", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [5, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [8, 12], [10, 13], [12, 14], [13, 15], [8, 16], [10, 17], [16, 18], [17, 19], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 5], [7, 3], [8, 3], [9, 3], [10, 3], [11, 3], [12, 8], [13, 10], [14, 12], [15, 13], [16, 8], [17, 10], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "require", "code": "  }\n\n\n  /**\n    * Require a string to appear, or throw an exception.\n    */", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "require", "code": "  }\n\n\n  /**\n    * Require a character to appear, or throw an exception.\n    */\n  void require (char delim)", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [6, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 6], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "intern", "code": "    * <p>Note that this will not return the same results as String.intern().\n    * @param s The string to internalise.\n    * @return An internalised version of the string.\n    * @see #intern(char[],int,int)", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "intern", "code": "    * @param start the starting position in the array.\n    * @param length the number of characters to place in the string.\n    * @return an internalised string.\n    * @see #intern(String)\n    * @see java.lang.String#intern\n    */\n  public String intern (char ch[], int start, int length)\n  {\n    int index;\n    int hash = 0;\n\n\t\t\t\t// Generate a hash code.\n    for (int i = start; i < start + length; i++) {\n      hash = ((hash << 1) & 0xffffff) + (int)ch[i];\n    }\n\n    hash = hash % SYMBOL_TABLE_LENGTH;\n\n\t\t\t\t// Get the bucket.\n    Object bucket[] = (Object[])symbolTable[hash];\n    if (bucket == null) {\n      symbolTable[hash] = bucket = new Object[8];\n    }\n\n\t\t\t\t// Search for a matching tuple, and\n\t\t\t\t// return the string if we find one.\n    for (index = 0; index < bucket.length; index += 2) {\n      char chFound[] = (char[])bucket[index];\n\n\t\t\t\t// Stop when we hit a null index.\n      if (chFound == null) {\n\tbreak;\n      }\n\n\t\t\t\t// If they're the same length,\n\t\t\t\t// check for a match.\n\t\t\t\t// If the loop finishes, 'index' will\n\t\t\t\t// contain the current bucket\n\t\t\t\t// position.\n      if (chFound.length == length) {\n\tfor (int i = 0; i < chFound.length; i++) {\n\t\t\t\t// Stop if there are no more tuples.\n\t  if (ch[start+i] != chFound[i]) {\n\t    break;\n\t  } else if (i == length-1) {\n\t\t\t\t// That's it, we have a match!\n\t    return (String)bucket[index+1];\n\t  }\n\t}\n      }\n    }\n\n\t\t\t\t// Not found -- we'll have to add it.\n\n\t\t\t\t// Do we have to grow the bucket?\n    bucket =\n      (Object[])extendArray(bucket, bucket.length, index);\n\n\t\t\t\t// OK, add it to the end of the", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LOOP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [3, 16], [3, 17], [3, 18], [4, 19], [0, 20], [6, 21], [14, 22], [2, 23], [3, 24], [3, 25], [3, 26], [16, 27], [18, 28], [19, 29], [20, 30], [21, 31], [7, 32], [15, 33], [24, 34], [25, 35], [4, 36], [6, 37], [13, 38], [24, 39], [25, 40], [35, 41], [36, 42], [37, 43], [38, 44], [39, 45], [43, 46], [39, 47], [42, 48], [46, 49], [46, 50], [47, 51], [47, 52], [39, 53], [50, 54], [51, 55], [47, 56], [51, 57], [55, 58], [58, 59], [52, 60], [57, 61], [61, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 3], [17, 3], [18, 3], [19, 4], [20, 0], [21, 6], [22, 14], [23, 2], [24, 3], [25, 3], [26, 3], [27, 16], [28, 18], [29, 19], [30, 20], [31, 21], [32, 7], [33, 15], [34, 24], [35, 25], [36, 4], [37, 6], [38, 13], [39, 24], [40, 25], [41, 35], [42, 36], [43, 37], [44, 38], [45, 39], [46, 43], [47, 39], [48, 42], [49, 46], [50, 46], [51, 47], [52, 47], [53, 39], [54, 50], [55, 51], [56, 47], [57, 51], [58, 55], [59, 58], [60, 52], [61, 57], [62, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "extendArray", "code": "\n\n  /**\n    * Ensure the capacity of an array, allocating a new one if\n    * necessary.\n    */\n  Object extendArray (Object array, int currentSize, int requiredSize)\n  {\n    if (requiredSize < currentSize) {\n      return array;\n    } else {\n      Object newArray = null;\n      int newSize = currentSize * 2;\n\n      if (newSize <= requiredSize) {\n\tnewSize = requiredSize + 1;\n      }\n\n      if (array instanceof char[]) {\n\tnewArray = new char[newSize];", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [7, 13], [7, 14], [8, 15], [12, 16], [12, 17], [13, 18], [9, 19], [10, 20], [7, 21], [8, 22], [19, 23], [13, 24], [22, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 7], [14, 7], [15, 8], [16, 12], [17, 12], [18, 13], [19, 9], [20, 10], [21, 7], [22, 8], [23, 19], [24, 13], [25, 22], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "declaredElements", "code": "    * <p>The results will be valid only after the DTD (if any) has been\n    * parsed.\n    * @return An enumeration of all element types declared for this", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getElementContentType", "code": "    * @see #getElementContentModel\n    * @see #CONTENT_UNDECLARED\n    * @see #CONTENT_ANY\n    * @see #CONTENT_EMPTY\n    * @see #CONTENT_MIXED\n    * @see #CONTENT_ELEMENTS\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getElementContentModel", "code": "    * Look up the content model of an element.\n    * <p>The result will always be null unless the content type is\n    * CONTENT_ELEMENTS or CONTENT_MIXED.\n    * @param name The element type name.\n    * @return The normalised content model, as a string.\n    * @see #getElementContentType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setElement", "code": "\n  /**\n    * Register an element.\n    * Array format:\n    *  element type\n    *  attribute hash table\n    */\n  void setElement (String name, int contentType,\n\t\t   String contentModel, Hashtable attributes)\n    throws java.lang.Exception\n  {\n    Object element[];\n\n\t\t\t\t// Try looking up the element\n    element = (Object[])elementInfo.get(name);\n\n\t\t\t\t// Make a new one if necessary.\n    if (element == null) {\n      element = new Object[3];\n      element[0] = new Integer(CONTENT_UNDECLARED);\n      element[1] = null;\n      element[2] = null;\n    } else if (contentType != CONTENT_UNDECLARED &&\n\t       ((Integer)element[0]).intValue() != CONTENT_UNDECLARED) {\n      error(\"multiple declarations for element type\", name, null);\n      return;\n    }\n\n\t\t\t\t// Insert the content type, if any.\n    if (contentType != CONTENT_UNDECLARED) {\n      element[0] = new Integer(contentType);\n    }\n\n\t\t\t\t// Insert the content model, if any.\n    if (contentModel != null) {\n      element[1] = contentModel;\n    }\n", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [4, 14], [4, 15], [0, 16], [11, 17], [12, 18], [14, 19], [15, 20], [1, 21], [2, 22], [3, 23], [14, 24], [19, 25], [19, 26], [4, 27], [4, 28], [4, 29], [4, 30], [16, 31], [23, 32], [14, 33], [27, 34], [28, 35], [29, 36], [33, 37], [33, 38], [30, 39], [21, 40], [22, 41], [23, 42], [27, 43], [28, 44], [29, 45], [25, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 4], [15, 4], [16, 0], [17, 11], [18, 12], [19, 14], [20, 15], [21, 1], [22, 2], [23, 3], [24, 14], [25, 19], [26, 19], [27, 4], [28, 4], [29, 4], [30, 4], [31, 16], [32, 23], [33, 14], [34, 27], [35, 28], [36, 29], [37, 33], [38, 33], [39, 30], [40, 21], [41, 22], [42, 23], [43, 27], [44, 28], [45, 29], [46, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "getElementAttributes", "code": "  }\n\n\n  /**\n    * Look up the attribute hash table for an element.\n    * The hash table is the second item in the element array.\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "declaredAttributes", "code": "    *         after the DTD (if any) has been parsed.\n    * @see #getAttributeType\n    * @see #getAttributeEnumeration\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    * @see #getAttributeExpandedValue\n    */\n  public Enumeration declaredAttributes (String elname)", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getAttributeType", "code": "    * @see #ATTRIBUTE_ENTITY\n    * @see #ATTRIBUTE_ENTITIES\n    * @see #ATTRIBUTE_NMTOKEN\n    * @see #ATTRIBUTE_NMTOKENS\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getAttributeEnumeration", "code": "    * Retrieve the allowed values for an enumerated attribute type.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return A string containing the token list.\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [7, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 7], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getAttributeDefaultValue", "code": "    * Retrieve the default value of a declared attribute.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared and unspecified.\n    * @see #getAttributeExpandedValue\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [7, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 7], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getAttributeExpandedValue", "code": "    * <p>All general entities will be expanded.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The expanded default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared\n    * @see #getAttributeDefaultValue\n    */\n  public String getAttributeExpandedValue (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else if (attribute[4] == null && attribute[1] != null) {\n      try {", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "TRY", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [2, 9], [7, 10], [3, 11], [6, 12], [8, 13], [8, 14], [9, 15], [1, 16], [12, 17], [13, 18], [14, 19], [12, 20], [12, 21], [20, 22], [21, 23], [21, 24], [13, 25], [14, 26], [22, 27], [23, 28], [27, 29], [20, 30], [23, 31], [28, 32], [28, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 2], [10, 7], [11, 3], [12, 6], [13, 8], [14, 8], [15, 9], [16, 1], [17, 12], [18, 13], [19, 14], [20, 12], [21, 12], [22, 20], [23, 21], [24, 21], [25, 13], [26, 14], [27, 22], [28, 23], [29, 27], [30, 20], [31, 23], [32, 28], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getAttributeDefaultValueType", "code": "  /**\n    * Retrieve the default value type of a declared attribute.\n    * @see #ATTRIBUTE_DEFAULT_SPECIFIED\n    * @see #ATTRIBUTE_DEFAULT_IMPLIED\n    * @see #ATTRIBUTE_DEFAULT_REQUIRED\n    * @see #ATTRIBUTE_DEFAULT_FIXED\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setAttribute", "code": "    * Register an attribute declaration for later retrieval.\n    * Format:\n    * - String type\n    * - String default value\n    * - int value type\n    * *TODO: do something with attribute types.\n    */\n  void setAttribute (String elName, String name, int type, String enumeration,\n\t\t     String value, int valueType)\n    throws java.lang.Exception\n  {\n    Hashtable attlist;\n    Object attribute[];\n\n\t\t\t\t// Create a new hashtable if necessary.\n    attlist = getElementAttributes(elName);\n    if (attlist == null) {\n      attlist = new Hashtable();\n    }\n\n\t\t\t\t// Check that the attribute doesn't\n\t\t\t\t// already exist!\n    if (attlist.get(name) != null) {\n      return;\n    } else {\n      attribute = new Object[5];\n      attribute[0] = new Integer(type);\n      attribute[1] = value;\n      attribute[2] = new Integer(valueType);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [0, 13], [1, 14], [11, 15], [11, 16], [12, 17], [13, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [2, 27], [19, 28], [20, 29], [21, 30], [23, 31], [25, 32], [27, 33], [26, 34], [21, 35], [22, 36], [23, 37], [24, 38], [25, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 0], [14, 1], [15, 11], [16, 11], [17, 12], [18, 13], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 2], [28, 19], [29, 20], [30, 21], [31, 23], [32, 25], [33, 27], [34, 26], [35, 21], [36, 22], [37, 23], [38, 24], [39, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getAttribute", "code": "  }\n\n\n  /**\n    * Retrieve the three-member array representing an\n    * attribute declaration.\n    */\n  Object[] getAttribute (String elName, String name)\n  {\n    Hashtable attlist;\n    Object attribute[];\n", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [2, 10], [8, 11], [9, 12], [7, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 2], [11, 8], [12, 9], [13, 7], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "declaredEntities", "code": "    *         after the DTD (if any) has been parsed.\n    * @see #getEntityType\n    * @see #getEntityPublicId", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEntityType", "code": "    * Find the type of an entity.\n    * @return An integer constant representing the entity type.\n    * @see #ENTITY_UNDECLARED\n    * @see #ENTITY_INTERNAL\n    * @see #ENTITY_NDATA\n    * @see #ENTITY_TEXT\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getEntityPublicId", "code": "    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, if it is not an\n    *         external entity, or if no public identifier was\n    *         provided.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getEntitySystemId", "code": "    * Return an external entity's system identifier.\n    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, or if it is not an\n    *         external entity.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getEntityValue", "code": "  /**\n    * Return the value of an internal entity.\n    * @param ename The name of the internal entity.\n    * @return The entity's value, or null if the entity was\n    *         not declared, or if it is not an internal entity.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getEntityNotationName", "code": "    * Get the notation name associated with an NDATA entity.\n    * @param eName The NDATA entity name.\n    * @return The associated notation name, or null if the\n    *         entity was not declared, or if it is not an\n    *         NDATA entity.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setInternalEntity", "code": "    }\n  }\n", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExternalDataEntity", "code": "    setEntity(eName, ENTITY_INTERNAL, null, null, value, null);\n  }\n\n", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExternalTextEntity", "code": "    setEntity(eName, ENTITY_NDATA, pubid, sysid, null, nName);\n  }\n", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setEntity", "code": "    setEntity(eName, ENTITY_TEXT, pubid, sysid, null, null);\n  }\n\n\n  /**\n    * Register an entity declaration for later retrieval.\n    */\n  void setEntity (String eName, int eClass,\n\t\t  String pubid, String sysid,\n\t\t  String value, String nName)\n  {\n    Object entity[];\n\n    if (entityInfo.get(eName) == null) {\n      entity = new Object[5];", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [9, 10], [9, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [17, 19], [18, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 9], [11, 9], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 17], [20, 18], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "declaredNotations", "code": "    * Get declared notations.\n    * @return An Enumeration of all the notations declared for\n    *         this XML document.  The results will be valid only", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNotationPublicId", "code": "    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the public identifier, or null\n    *         if none was provided or if no such notation was\n    *         declared.\n    * @see #getNotationSystemId\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNotationSystemId", "code": "    * You will normally use this method to look up a notation\n    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the system identifier, or null\n    *         if no such notation was declared.\n    * @see #getNotationPublicId\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setNotation", "code": "\n  /**\n    * Register a notation declaration for later retrieval.\n    * Format:\n    * - public id\n    * - system id\n    */\n  void setNotation (String nname, String pubid, String sysid)\n    throws java.lang.Exception\n  {\n    Object notation[];\n", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [9, 14], [9, 15], [13, 16], [11, 17], [12, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 9], [15, 9], [16, 13], [17, 11], [18, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getLineNumber", "code": "  // Location.\n  //\n", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getColumnNumber", "code": "    return line;\n  }\n", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "readCh", "code": "    * @return The next available input character.\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #line\n    * @return The next character from the current input source.\n    */\n  char readCh ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    // As long as there's nothing in the\n    // read buffer, try reading more data\n    // (for an external entity) or popping\n    // the entity stack (for either).\n    while (readBufferPos >= readBufferLength)\n      {\n      switch (sourceType)\n        {\n        case INPUT_READER:\n        case INPUT_EXTERNAL:\n        case INPUT_STREAM:\n        readDataChunk();\n        while (readBufferLength < 1)\n          {\n          popInput();\n          if (readBufferLength <1)\n            {\n            readDataChunk();\n            }\n          }\n        break;\n\n        default:\n        popInput();\n        break;\n        }\n      }\n\n    c = readBuffer[readBufferPos++];\n\n    // This is a particularly nasty bit\n    // of code, that checks for a parameter\n    // entity reference but peeks ahead to\n    // catch the '%' in parameter entity\n    // declarations.\n    if\n      (\n      c == '%' && \n      (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE)\n      )\n      {\n      char c2 = readCh();\n      unread(c2);\n      if (!isWhitespace(c2))\n        {\n        parsePEReference(context == CONTEXT_ENTITYVALUE);\n        return readCh();\n        }\n      }\n\n    if (c == '\\n')\n      {\n      line++;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "SWITCH", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LOOP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [0, 8], [4, 9], [6, 10], [3, 11], [3, 12], [7, 13], [7, 14], [4, 15], [2, 16], [11, 17], [3, 18], [13, 19], [13, 20], [14, 21], [16, 22], [11, 23], [12, 24], [15, 25], [15, 26], [15, 27], [23, 28], [11, 29], [15, 30], [27, 31], [15, 32], [29, 33], [27, 34], [31, 35], [34, 36], [27, 37], [36, 38], [34, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 0], [9, 4], [10, 6], [11, 3], [12, 3], [13, 7], [14, 7], [15, 4], [16, 2], [17, 11], [18, 3], [19, 13], [20, 13], [21, 14], [22, 16], [23, 11], [24, 12], [25, 15], [26, 15], [27, 15], [28, 23], [29, 11], [30, 15], [31, 27], [32, 15], [33, 29], [34, 27], [35, 31], [36, 34], [37, 27], [38, 36], [39, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "unread", "code": "    * before unreading it, but just in case, I've added a boundary\n    * condition.\n    * @param c The character to push back.\n    * @see #readCh\n    * @see #unread(String)\n    * @see #unread(char[])\n    * @see #readBuffer\n    */\n  void unread (char c)\n    throws java.lang.Exception\n    {\n    // Normal condition.\n    if (c == '\\n')\n      {\n      line--;\n      column = -1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [5, 7], [1, 8], [1, 9], [2, 10], [8, 11], [8, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 5], [8, 1], [9, 1], [10, 2], [11, 8], [12, 8], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "unread", "code": "    * <p>NOTE: you must <em>never</em> push back characters that you\n    * haven't actually read: use pushString() instead.\n    * @see #readCh\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readBuffer\n    * @see #pushString\n    */\n  void unread (char ch[], int length) \n    throws java.lang.Exception\n    {\n    for (int i = 0; i < length; i++)\n        {\n        if (ch[i] == '\\n')", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [1, 9], [1, 10], [7, 11], [2, 12], [9, 13], [9, 14], [11, 15], [7, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 1], [10, 1], [11, 7], [12, 2], [13, 9], [14, 9], [15, 11], [16, 7], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "pushURL", "code": "    * @see XmlHandler#resolveEntity\n    * @see #pushString\n    * @see #sourceType\n    * @see #pushInput\n    * @see #detectEncoding\n    * @see #sourceType\n    * @see #readBuffer\n    */\n  void pushURL (String ename, String publicId, String systemId,\n\t\tReader reader, InputStream stream, String encoding)\n    throws java.lang.Exception\n  {\n    URL url;\n    boolean ignoreEncoding = false;\n\n\t\t\t\t// Push the existing status.\n    pushInput(ename);\n\n\t\t\t\t// Create a new read buffer.\n\t\t\t\t// (Note the four-character margin)\n    readBuffer = new char[READ_BUFFER_MAX+4];\n    readBufferPos = 0;\n    readBufferLength = 0;\n    readBufferOverflow = -1;\n    is = null;\n    line = 1;\n\n    currentByteCount = 0;\n\n\t\t\t\t// Flush any remaining data.\n    dataBufferFlush();\n\n\t\t\t\t// Make the URL absolute.\n    if (systemId != null && externalEntity != null) {\n      systemId = new URL(externalEntity.getURL(), systemId).toString();\n    } else if (baseURI != null) {\n      try {\n\tsystemId = new URL(new URL(baseURI), systemId).toString();\n      } catch (Exception e) {}\n    }\n\n\t\t\t\t// See if the application wants to\n\t\t\t\t// redirect the system ID and/or\n\t\t\t\t// supply its own character stream.\n    if (systemId != null && handler != null) {\n      Object input = handler.resolveEntity(publicId, systemId);\n      if (input != null) {\n\tif (input instanceof String) {\n\t  systemId = (String)input;\n\t} else if (input instanceof InputStream) {\n\t  stream = (InputStream)input;\n\t} else if (input instanceof Reader) {\n\t  reader = (Reader)input;\n\t}\n      }\n    }\n\n\t\t\t\t// Start the entity.\n    if (handler != null) {\n      if (systemId != null) {\n\thandler.startExternalEntity(systemId);\n      } else {\n\thandler.startExternalEntity(\"[external stream]\");\n      }\n    }\n\n\t\t\t\t// Figure out what we're reading from.\n    if (reader != null) {\n\t\t\t\t// There's an explicit character stream.\n      sourceType = INPUT_READER;\n      this.reader = reader;\n      tryEncodingDecl(true);\n      return;\n    } else if (stream != null) {\n      sourceType = INPUT_STREAM;\n      is = stream;\n    } else {\n\t\t\t\t// We have to open our own stream\n\t\t\t\t// to the URL.\n\n\t\t\t\t// Set the new status\n      sourceType = INPUT_EXTERNAL;\n      url = new URL(systemId);\n\n      externalEntity = url.openConnection();\n      externalEntity.connect();\n      is = externalEntity.getInputStream();\n    }\n\n\t\t\t\t// If we get to here, there must be\n\t\t\t\t// an InputStream available.\n    if (!is.markSupported()) {\n      is = new BufferedInputStream(is);\n    }\n\n\t\t\t\t// Attempt to detect the encoding.\n    if (encoding == null && externalEntity != null) {\n      encoding = externalEntity.getContentEncoding();\n    }\n\n    if (encoding != null) {\n      checkEncoding(encoding, false);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [2, 18], [3, 19], [4, 20], [4, 21], [5, 22], [6, 23], [7, 24], [7, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [17, 35], [18, 36], [18, 37], [20, 38], [4, 39], [21, 40], [5, 41], [22, 42], [6, 43], [6, 44], [23, 45], [23, 46], [24, 47], [25, 48], [25, 49], [27, 50], [28, 51], [29, 52], [30, 53], [31, 54], [32, 55], [8, 56], [1, 57], [1, 58], [1, 59], [1, 60], [2, 61], [36, 62], [37, 63], [3, 64], [38, 65], [4, 66], [4, 67], [4, 68], [41, 69], [43, 70], [45, 71], [46, 72], [24, 73], [47, 74], [7, 75], [48, 76], [49, 77], [33, 78], [57, 79], [59, 80], [60, 81], [61, 82], [64, 83], [20, 84], [20, 85], [20, 86], [20, 87], [20, 88], [20, 89], [20, 90], [66, 91], [69, 92], [43, 93], [70, 94], [44, 95], [73, 96], [75, 97], [78, 98], [84, 99], [86, 100], [87, 101], [41, 102], [41, 103], [93, 104], [93, 105], [73, 106], [97, 107], [97, 108], [102, 109], [104, 110], [104, 111], [106, 112], [110, 113], [93, 114], [112, 115], [112, 116], [104, 117], [110, 118], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 2], [19, 3], [20, 4], [21, 4], [22, 5], [23, 6], [24, 7], [25, 7], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 17], [36, 18], [37, 18], [38, 20], [39, 4], [40, 21], [41, 5], [42, 22], [43, 6], [44, 6], [45, 23], [46, 23], [47, 24], [48, 25], [49, 25], [50, 27], [51, 28], [52, 29], [53, 30], [54, 31], [55, 32], [56, 8], [57, 1], [58, 1], [59, 1], [60, 1], [61, 2], [62, 36], [63, 37], [64, 3], [65, 38], [66, 4], [67, 4], [68, 4], [69, 41], [70, 43], [71, 45], [72, 46], [73, 24], [74, 47], [75, 7], [76, 48], [77, 49], [78, 33], [79, 57], [80, 59], [81, 60], [82, 61], [83, 64], [84, 20], [85, 20], [86, 20], [87, 20], [88, 20], [89, 20], [90, 20], [91, 66], [92, 69], [93, 43], [94, 70], [95, 44], [96, 73], [97, 75], [98, 78], [99, 84], [100, 86], [101, 87], [102, 41], [103, 41], [104, 93], [105, 93], [106, 73], [107, 97], [108, 97], [109, 102], [110, 104], [111, 104], [112, 106], [113, 110], [114, 93], [115, 112], [116, 112], [117, 104], [118, 110], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118]]}, {"function_name": "tryEncodingDecl", "code": "\t\t\t\t// Read an XML or text declaration.\n    tryEncodingDecl(ignoreEncoding);\n  }\n\n\n  /**\n    * Check for an encoding declaration.\n    */\n  void tryEncodingDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n\t\t\t\t// Read the XML/Encoding declaration.\n    if (tryRead(\"<?xml\")) {\n      if (tryWhitespace()) {", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [4, 8], [4, 9], [7, 10], [9, 11], [9, 12], [10, 13], [10, 14], [12, 15], [7, 16], [7, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 4], [9, 4], [10, 7], [11, 9], [12, 9], [13, 10], [14, 10], [15, 12], [16, 7], [17, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "detectEncoding", "code": "    * <p>I don't currently detect EBCDIC, since I'm concerned that it\n    * could also be a valid UTF-8 sequence; I'll have to do more checking\n    * later.\n    * @see #tryEncoding(byte[], byte, byte, byte, byte)\n    * @see #tryEncoding(byte[], byte, byte)\n    * @see #checkEncoding\n    * @see #read8bitEncodingDeclaration\n    */\n  void detectEncoding ()\n    throws java.lang.Exception\n  {\n    byte signature[] = new byte[4];\n\n\t\t\t\t// Read the first four bytes for\n\t\t\t\t// autodetection.\n    is.mark(4);\n    is.read(signature);\n    is.reset();\n\n\t\t\t\t// Look for a known signature.\n    if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t    (byte)0x00, (byte)0x3c)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x00 0x3c: UCS-4, big-endian (1234)\n      encoding = ENCODING_UCS_4_1234;\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x3c 0x00 0x00 0x00: UCS-4, little-endian (4321)\n      encoding = ENCODING_UCS_4_4321;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t\t   (byte)0x3c, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x3c 0x00: UCS-4, unusual (2143)\n      encoding = ENCODING_UCS_4_2143;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x3c 0x00 0x00: UCS-4, unusual (3421)\n      encoding = ENCODING_UCS_4_3412;\n    } else if (tryEncoding(signature, (byte)0xfe, (byte)0xff)) {\n      // UCS-2 with a byte-order marker.\n      // 0xfe 0xff: UCS-2, big-endian (12)\n      encoding = ENCODING_UCS_2_12;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0xff, (byte)0xfe)) {\n      // UCS-2 with a byte-order marker.\n      // 0xff 0xfe: UCS-2, little-endian (21)\n      encoding = ENCODING_UCS_2_21;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x3f)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x00 0x3c 0x00 0x3f: UCS-2, big-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_12;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x3f, (byte)0x00)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x3c 0x00 0x3f 0x00: UCS-2, little-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_21;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x3f,\n\t\t\t   (byte)0x78, (byte)0x6d)) {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [0, 6], [0, 7], [3, 8], [3, 9], [7, 10], [8, 11], [8, 12], [1, 13], [4, 14], [4, 15], [4, 16], [4, 17], [2, 18], [11, 19], [11, 20], [3, 21], [9, 22], [9, 23], [9, 24], [9, 25], [19, 26], [19, 27], [8, 28], [12, 29], [12, 30], [12, 31], [12, 32], [26, 33], [26, 34], [11, 35], [20, 36], [20, 37], [20, 38], [20, 39], [33, 40], [33, 41], [19, 42], [19, 43], [19, 44], [27, 45], [27, 46], [40, 47], [40, 48], [26, 49], [26, 50], [26, 51], [34, 52], [34, 53], [47, 54], [33, 55], [33, 56], [41, 57], [41, 58], [41, 59], [41, 60], [40, 61], [40, 62], [48, 63], [48, 64], [48, 65], [48, 66], [55, 67], [55, 68], [55, 69], [47, 70], [47, 71], [47, 72], [54, 73], [54, 74], [54, 75], [54, 76], [61, 77], [61, 78], [61, 79], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 0], [7, 0], [8, 3], [9, 3], [10, 7], [11, 8], [12, 8], [13, 1], [14, 4], [15, 4], [16, 4], [17, 4], [18, 2], [19, 11], [20, 11], [21, 3], [22, 9], [23, 9], [24, 9], [25, 9], [26, 19], [27, 19], [28, 8], [29, 12], [30, 12], [31, 12], [32, 12], [33, 26], [34, 26], [35, 11], [36, 20], [37, 20], [38, 20], [39, 20], [40, 33], [41, 33], [42, 19], [43, 19], [44, 19], [45, 27], [46, 27], [47, 40], [48, 40], [49, 26], [50, 26], [51, 26], [52, 34], [53, 34], [54, 47], [55, 33], [56, 33], [57, 41], [58, 41], [59, 41], [60, 41], [61, 40], [62, 40], [63, 48], [64, 48], [65, 48], [66, 48], [67, 55], [68, 55], [69, 55], [70, 47], [71, 47], [72, 47], [73, 54], [74, 54], [75, 54], [76, 54], [77, 61], [78, 61], [79, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "tryEncoding", "code": "    * <p>Always looks for some part of \"<?XML\" in a specific encoding.\n    * @param sig The first four bytes read.\n    * @param b1 The first byte of the signature", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [7, 9], [9, 10], [9, 11], [11, 12], [11, 13], [8, 14], [10, 15], [12, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 7], [10, 9], [11, 9], [12, 11], [13, 11], [14, 8], [15, 10], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "tryEncoding", "code": "    * Check for a two-byte signature.\n    * <p>Looks for a UCS-2 byte-order mark.\n    * <p>Utility routine for detectEncoding().", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "pushString", "code": "  /**\n    * This method pushes a string back onto input.\n    * <p>It is useful either as the expansion of an internal entity, \n    * or for backtracking during the parse.\n    * <p>Call pushCharArray() to do the actual work.", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "pushCharArray", "code": "    * for 1-character strings; this should save some time and memory.\n    * @param ch The char array to push.\n    * @see #pushString\n    * @see #pushURL\n    * @see #readBuffer\n    * @see #sourceType\n    * @see #pushInput\n    */\n  void pushCharArray (String ename, char ch[], int start, int length)\n    throws java.lang.Exception", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "pushInput", "code": "    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void pushInput (String ename)\n    throws java.lang.Exception\n  {\n    Object input[] = new Object[12];\n\n\t\t\t\t// Check for entity recursion.\n    if (ename != null) {\n      Enumeration entities = entityStack.elements();\n      while (entities.hasMoreElements()) {\n\tString e = (String)entities.nextElement();\n\tif (e == ename) {\n\t  error(\"recursive reference to entity\", ename, null);\n\t}\n      }\n    }\n    entityStack.push(ename);\n\n\t\t\t\t// Don't bother if there is no input.\n    if (sourceType == INPUT_NONE) {\n      return;\n    }\n\n\t\t\t\t// Set up a snapshot of the current\n\t\t\t\t// input source.\n    input[0] = new Integer(sourceType);\n    input[1] = externalEntity;\n    input[2] = readBuffer;\n    input[3] = new Integer(readBufferPos);\n    input[4] = new Integer(readBufferLength);\n    input[5] = new Integer(line);\n    input[6] = new Integer(encoding);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [0, 19], [2, 20], [7, 21], [8, 22], [10, 23], [11, 24], [12, 25], [13, 26], [14, 27], [17, 28], [1, 29], [2, 30], [2, 31], [20, 32], [30, 33], [3, 34], [6, 35], [7, 36], [8, 37], [9, 38], [10, 39], [11, 40], [12, 41], [13, 42], [14, 43], [15, 44], [16, 45], [17, 46], [30, 47], [30, 48], [31, 49], [47, 50], [47, 51], [48, 52], [51, 53], [51, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 0], [20, 2], [21, 7], [22, 8], [23, 10], [24, 11], [25, 12], [26, 13], [27, 14], [28, 17], [29, 1], [30, 2], [31, 2], [32, 20], [33, 30], [34, 3], [35, 6], [36, 7], [37, 8], [38, 9], [39, 10], [40, 11], [41, 12], [42, 13], [43, 14], [44, 15], [45, 16], [46, 17], [47, 30], [48, 30], [49, 31], [50, 47], [51, 47], [52, 48], [53, 51], [54, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "popInput", "code": "    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void popInput ()\n    throws java.lang.Exception\n  {\n    Object input[];\n\n\n    switch (sourceType) {\n\n    case INPUT_EXTERNAL:\n      dataBufferFlush();\n      if (handler != null && externalEntity != null) {\n\thandler.endExternalEntity(externalEntity.getURL().toString());\n      }\n      break;\n    case INPUT_STREAM:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    case INPUT_READER:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    }\n\n\t\t\t\t// Throw an EOFException if there\n\t\t\t\t// is nothing else to pop.\n    if (inputStack.isEmpty()) {\n      throw new EOFException();\n    } else {\n      String s;\n      input = (Object[])inputStack.pop();\n      s = (String)entityStack.pop();\n    }\n\n    sourceType = ((Integer)input[0]).intValue();\n    externalEntity = (URLConnection)input[1];\n    readBuffer = (char[])input[2];\n    readBufferPos = ((Integer)input[3]).intValue();", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "VAR_DECL", "THROW_RAISE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [1, 17], [1, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [1, 25], [1, 26], [18, 27], [20, 28], [2, 29], [22, 30], [2, 31], [24, 32], [2, 33], [20, 34], [28, 35], [22, 36], [30, 37], [32, 38], [32, 39], [4, 40], [5, 41], [6, 42], [7, 43], [8, 44], [9, 45], [10, 46], [11, 47], [12, 48], [13, 49], [14, 50], [15, 51], [25, 52], [26, 53], [34, 54], [36, 55], [24, 56], [38, 57], [39, 58], [54, 59], [55, 60], [56, 61], [34, 62], [36, 63], [61, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 1], [18, 1], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 1], [26, 1], [27, 18], [28, 20], [29, 2], [30, 22], [31, 2], [32, 24], [33, 2], [34, 20], [35, 28], [36, 22], [37, 30], [38, 32], [39, 32], [40, 4], [41, 5], [42, 6], [43, 7], [44, 8], [45, 9], [46, 10], [47, 11], [48, 12], [49, 13], [50, 14], [51, 15], [52, 25], [53, 26], [54, 34], [55, 36], [56, 24], [57, 38], [58, 39], [59, 54], [60, 55], [61, 56], [62, 34], [63, 36], [64, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "tryRead", "code": "    * on success, but will be put back on failure.  Do not attempt to\n    * read the character again if the method succeeds.\n    * @param delim The character that should appear next.  For a\n    *              insensitive match, you must supply this in upper-case.\n    * @return true if the character was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(String)\n    */\n  boolean tryRead (char delim)\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Read the character\n    c = readCh();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [5, 8], [6, 9], [1, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 5], [9, 6], [10, 1], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "tryRead", "code": "    * array whenever possible (probably the majority of cases).\n    * <p><b>NOTE:</b> This method currently has a hard-coded limit\n    * of 100 characters for the delimiter.\n    * @param delim The string that should appear next.\n    * @return true if the string was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(char)\n    */\n  boolean tryRead (String delim)\n    throws java.lang.Exception\n    {\n    char ch[] = delim.toCharArray();\n    char c;\n\n    // Compare the input, character-\n    // by character.\n    \n    for (int i = 0; i < ch.length; i++)\n      {\n      c=readCh();\n      if (c!=ch[i])", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [8, 10], [2, 11], [2, 12], [8, 13], [8, 14], [11, 15], [13, 16], [14, 17], [8, 18], [17, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 8], [11, 2], [12, 2], [13, 8], [14, 8], [15, 11], [16, 13], [17, 14], [18, 8], [19, 17], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "tryWhitespace", "code": "\n  /**\n    * Return true if we can read some whitespace.\n    * <p>This is simply a convenience method.\n    * <p>This method will push back a character rather than an\n    * array whenever possible (probably the majority of cases).\n    * @return true if whitespace was found.\n    */\n  boolean tryWhitespace ()\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "ASSIGN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 9], [6, 10], [1, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 4], [8, 5], [9, 1], [10, 6], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "parseUntil", "code": "    * Read all data until we find the specified string.\n    * <p>This is especially useful for scanning marked sections.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter\n    * @see #tryRead(String, boolean)\n    * @see #readCh\n    */\n  void parseUntil (String delim)\n    throws java.lang.Exception\n  {\n    char c;\n    int startLine = line;\n", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "LOOP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [5, 8], [8, 9], [8, 10], [6, 11], [6, 12], [10, 13], [10, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [8, 5], [9, 8], [10, 8], [11, 6], [12, 6], [13, 10], [14, 10], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "skipUntil", "code": "    * Skip all data until we find the specified string.\n    * <p>This is especially useful for scanning comments.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "read8bitEncodingDeclaration", "code": "    * When this method is called, we know that the declaration is\n    * present (or appears to be).  We also know that the entity is\n    * in some sort of ASCII-derived 8-bit encoding.\n    * The idea of this is to let us read what the 8-bit encoding is\n    * before we've committed to converting any more of the file; the\n    * XML or encoding declaration must be in 7-bit ASCII, so we're\n    * safe as long as we don't go past it.\n    */\n  void read8bitEncodingDeclaration ()\n    throws java.lang.Exception\n  {\n    int ch;\n    readBufferPos = readBufferLength = 0;\n\n    while (true) {\n      ch = is.read();\n      readBuffer[readBufferLength++] = (char)ch;\n      switch (ch) {\n      case (int)'>':", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "IF", "SWITCH", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 9], [1, 10], [7, 11], [6, 12], [6, 13], [6, 14], [10, 15], [5, 16], [6, 17], [6, 18], [16, 19], [16, 20], [16, 21], [17, 22], [17, 23], [17, 24], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 4], [8, 5], [9, 1], [10, 1], [11, 7], [12, 6], [13, 6], [14, 6], [15, 10], [16, 5], [17, 6], [18, 6], [19, 16], [20, 16], [21, 16], [22, 17], [23, 17], [24, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "readDataChunk", "code": "    * @see #encoding\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #filterCR\n    * @see #copyUtf8ReadBuffer\n    * @see #copyIso8859_1ReadBuffer\n    * @see #copyUcs_2ReadBuffer\n    * @see #copyUcs_4ReadBuffer\n    */\n  void readDataChunk ()\n    throws java.lang.Exception\n    {\n    int count, i, j;\n\n    // See if we have any overflow.\n    if (readBufferOverflow > -1)\n      {\n      readBuffer[0] = (char)readBufferOverflow;\n      readBufferOverflow = -1;\n      readBufferPos = 1;\n      sawCR = true;\n      }\n    else\n      {\n      readBufferPos = 0;\n      sawCR = false;\n      }\n\n    // Special situation -- we're taking\n    // input from a character stream.\n    if (sourceType == INPUT_READER)\n      {\n      count = reader.read(readBuffer, readBufferPos, READ_BUFFER_MAX-1);\n      if (count < 0)\n        {readBufferLength = -1;}\n      else\n        {\n        readBufferLength = readBufferPos+count;\n        filterCR();\n        sawCR = false;\n        }\n      return;\n      }\n\n    // Read as many bytes as possible\n    // into the read buffer.\n    count = is.read(rawReadBuffer, 0, READ_BUFFER_MAX);\n\n    // Dispatch to an encoding-specific\n    // reader method to populate the\n    // readBuffer.\n    switch (encoding)\n      {\n      case ENCODING_UTF_8:\n      copyUtf8ReadBuffer(count);\n      break;\n      \n      case ENCODING_ISO_8859_1:\n      copyIso8859_1ReadBuffer(count);\n      break;\n      \n      case ENCODING_UCS_2_12:\n      copyUcs2ReadBuffer(count, 8, 0);\n      break;\n      \n      case ENCODING_UCS_2_21:\n      copyUcs2ReadBuffer(count, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_1234:\n      copyUcs4ReadBuffer(count, 24, 16, 8, 0);\n      break;\n      \n      case ENCODING_UCS_4_4321:\n      copyUcs4ReadBuffer(count, 0, 8, 16, 24);\n      break;\n      \n      case ENCODING_UCS_4_2143:\n      copyUcs4ReadBuffer(count, 16, 24, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_3412:\n      copyUcs4ReadBuffer(count, 8, 0, 24, 16);\n      break;\n      }\n\n    // Filter out all carriage returns\n    // if we've seen any.", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "IF", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [8, 20], [3, 21], [3, 22], [10, 23], [1, 24], [1, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [20, 34], [22, 35], [3, 36], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [24, 43], [26, 44], [26, 45], [26, 46], [26, 47], [27, 48], [27, 49], [27, 50], [27, 51], [28, 52], [28, 53], [28, 54], [28, 55], [29, 56], [29, 57], [29, 58], [29, 59], [30, 60], [30, 61], [31, 62], [31, 63], [35, 64], [36, 65], [37, 66], [38, 67], [39, 68], [40, 69], [41, 70], [22, 71], [22, 72], [22, 73], [22, 74], [65, 75], [71, 76], [73, 77], [74, 78], [75, 79], [42, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 8], [21, 3], [22, 3], [23, 10], [24, 1], [25, 1], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 20], [35, 22], [36, 3], [37, 4], [38, 4], [39, 4], [40, 4], [41, 4], [42, 4], [43, 24], [44, 26], [45, 26], [46, 26], [47, 26], [48, 27], [49, 27], [50, 27], [51, 27], [52, 28], [53, 28], [54, 28], [55, 28], [56, 29], [57, 29], [58, 29], [59, 29], [60, 30], [61, 30], [62, 31], [63, 31], [64, 35], [65, 36], [66, 37], [67, 38], [68, 39], [69, 40], [70, 41], [71, 22], [72, 22], [73, 22], [74, 22], [75, 65], [76, 71], [77, 73], [78, 74], [79, 75], [80, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "filterCR", "code": "\n\n  /**\n    * Filter carriage returns in the read buffer.\n    * <p>CRLF becomes LF; CR becomes LF.\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #readBufferOverflow\n    */\n  void filterCR ()\n    {\n    int i, j;\n    \n    readBufferOverflow = -1;\n    \n    loop: for (i = 0, j = 0; j < readBufferLength; i++, j++)\n      {\n      switch (readBuffer[j])\n        {\n        case '\\r':\n        if (j == readBufferLength - 1)\n          {\n          readBufferOverflow = '\\r';\n          readBufferLength--;\n          break loop;\n          }\n        else if (readBuffer[j+1] == '\\n')\n          {j++;}\n        readBuffer[i] = '\\n';", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [1, 8], [5, 9], [6, 10], [7, 11], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [15, 19], [15, 20], [18, 21], [19, 22], [15, 23], [20, 24], [22, 25], [15, 26], [24, 27], [26, 28], [22, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 1], [9, 5], [10, 6], [11, 7], [12, 8], [13, 8], [14, 8], [15, 8], [16, 8], [17, 8], [18, 8], [19, 15], [20, 15], [21, 18], [22, 19], [23, 15], [24, 20], [25, 22], [26, 15], [27, 24], [28, 26], [29, 22], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "copyUtf8ReadBuffer", "code": "    * readBuffer.\n    * <p>The tricky part of this is dealing with UTF-8 multi-byte \n    * sequences, but it doesn't seem to slow things down too much.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #getNextUtf8Byte\n    */\n  void copyUtf8ReadBuffer (int count)\n    throws java.lang.Exception\n  {\n    int i = 0;\n    int j = readBufferPos;\n    int b1;\n    boolean isSurrogate = false;\n    while (i < count) {\n      b1 = rawReadBuffer[i++];\n      isSurrogate = false;\n\n\t\t\t\t// Determine whether we are dealing\n\t\t\t\t// with a one-, two-, three-, or four-\n\t\t\t\t// byte sequence.\n      if ((b1 & 0x80) == 0) {\n\t// 1-byte sequence: 000000000xxxxxxx = 0xxxxxxx\n\treadBuffer[j++] = (char)b1;\n      } else if ((b1 & 0xe0) == 0xc0) {\n\t// 2-byte sequence: 00000yyyyyxxxxxx = 110yyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x1f) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf0) == 0xe0) {\n\t// 3-byte sequence: zzzzyyyyyyxxxxxx = 1110zzzz 10yyyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x0f) << 12) |\n\t\t (getNextUtf8Byte(i++, count) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf8) == 0xf0) {\n\t// 4-byte sequence: 11101110wwwwzzzzyy + 110111yyyyxxxxxx\n\t//     = 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx\n\t// (uuuuu = wwww + 1)\n\tisSurrogate = true;\n\tint b2 = getNextUtf8Byte(i++, count);\n\tint b3 = getNextUtf8Byte(i++, count);\n\tint b4 = getNextUtf8Byte(i++, count);\n\treadBuffer[j++] =\n\t  (char)(0xd800 |\n\t\t ((((b1 & 0x07) << 2) | ((b2 & 0x30) >> 4) - 1) << 6) |\n\t\t ((b2 & 0x0f) << 2) |\n\t\t ((b3 & 0x30) >> 4));\n\treadBuffer[j++] =\n\t  (char)(0xdc |\n\t\t ((b3 & 0x0f) << 6) |\n\t\t b4);\n\t\t\t\t// TODO: test that surrogate value is legal.\n      } else {", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [9, 13], [10, 14], [10, 15], [1, 16], [1, 17], [13, 18], [14, 19], [14, 20], [15, 21], [15, 22], [16, 23], [9, 24], [19, 25], [19, 26], [20, 27], [20, 28], [10, 29], [22, 30], [24, 31], [13, 32], [25, 33], [26, 34], [26, 35], [14, 36], [28, 37], [32, 38], [25, 39], [25, 40], [25, 41], [33, 42], [33, 43], [19, 44], [35, 45], [25, 46], [25, 47], [25, 48], [25, 49], [43, 50], [36, 51], [46, 52], [39, 53], [40, 54], [41, 55], [49, 56], [44, 57], [51, 58], [51, 59], [47, 60], [48, 61], [57, 62], [57, 63], [59, 64], [59, 65], [60, 66], [61, 67], [61, 68], [63, 69], [63, 70], [65, 71], [66, 72], [66, 73], [67, 74], [67, 75], [68, 76], [68, 77], [69, 78], [69, 79], [70, 80], [70, 81], [72, 82], [72, 83], [75, 84], [76, 85], [76, 86], [77, 87], [77, 88], [81, 89], [83, 90], [86, 91], [87, 92], [87, 93], [93, 94], [93, 95], [94, 96], [94, 97], [95, 98], [95, 99], [97, 100], [97, 101], [99, 102], [101, 103], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 9], [14, 10], [15, 10], [16, 1], [17, 1], [18, 13], [19, 14], [20, 14], [21, 15], [22, 15], [23, 16], [24, 9], [25, 19], [26, 19], [27, 20], [28, 20], [29, 10], [30, 22], [31, 24], [32, 13], [33, 25], [34, 26], [35, 26], [36, 14], [37, 28], [38, 32], [39, 25], [40, 25], [41, 25], [42, 33], [43, 33], [44, 19], [45, 35], [46, 25], [47, 25], [48, 25], [49, 25], [50, 43], [51, 36], [52, 46], [53, 39], [54, 40], [55, 41], [56, 49], [57, 44], [58, 51], [59, 51], [60, 47], [61, 48], [62, 57], [63, 57], [64, 59], [65, 59], [66, 60], [67, 61], [68, 61], [69, 63], [70, 63], [71, 65], [72, 66], [73, 66], [74, 67], [75, 67], [76, 68], [77, 68], [78, 69], [79, 69], [80, 70], [81, 70], [82, 72], [83, 72], [84, 75], [85, 76], [86, 76], [87, 77], [88, 77], [89, 81], [90, 83], [91, 86], [92, 87], [93, 87], [94, 93], [95, 93], [96, 94], [97, 94], [98, 95], [99, 95], [100, 97], [101, 97], [102, 99], [103, 101], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103]]}, {"function_name": "getNextUtf8Byte", "code": "    * Return the next byte value in a UTF-8 sequence.\n    * If it is not possible to get a byte from the current\n    * entity, throw an exception.\n    * @param pos The current position in the rawReadBuffer.\n    * @param count The number of bytes in the rawReadBuffer\n    * @return The significant six bits of a non-initial byte in\n    *         a UTF-8 sequence.\n    * @exception EOFException If the sequence is incomplete.\n    */\n  int getNextUtf8Byte (int pos, int count)\n    throws java.lang.Exception\n  {\n    int val;\n\n\t\t\t\t// Take a character from the buffer\n\t\t\t\t// or from the actual input stream.\n    if (pos < count) {\n      val = rawReadBuffer[pos];\n    } else {\n      val = is.read();\n      if (val == -1) {\n\tencodingError(\"unfinished multi-byte UTF-8 sequence at EOF\", -1, pos);\n      }\n    }\n", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [7, 10], [8, 11], [8, 12], [3, 13], [2, 14], [12, 15], [13, 16], [3, 17], [3, 18], [14, 19], [14, 20], [16, 21], [17, 22], [19, 23], [13, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 7], [11, 8], [12, 8], [13, 3], [14, 2], [15, 12], [16, 13], [17, 3], [18, 3], [19, 14], [20, 14], [21, 16], [22, 17], [23, 19], [24, 13], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "copyIso8859_1ReadBuffer", "code": "    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>This is a direct conversion, with no tricks.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyIso8859_1ReadBuffer (int count)", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [8, 10], [1, 11], [10, 12], [8, 13], [11, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 8], [11, 1], [12, 10], [13, 8], [14, 11], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "copyUcs2ReadBuffer", "code": "    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs2ReadBuffer (int count, int shift1, int shift2)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n\n    if (count > 0 && (count % 2) != 0) {\n      encodingError(\"odd number of bytes in UCS-2 encoding\", -1, count);\n    }", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [2, 10], [1, 11], [8, 12], [10, 13], [10, 14], [11, 15], [1, 16], [1, 17], [2, 18], [13, 19], [13, 20], [14, 21], [15, 22], [18, 23], [18, 24], [20, 25], [11, 26], [16, 27], [26, 28], [15, 29], [27, 30], [27, 31], [29, 32], [30, 33], [31, 34], [33, 35], [34, 36], [33, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 2], [11, 1], [12, 8], [13, 10], [14, 10], [15, 11], [16, 1], [17, 1], [18, 2], [19, 13], [20, 13], [21, 14], [22, 15], [23, 18], [24, 18], [25, 20], [26, 11], [27, 16], [28, 26], [29, 15], [30, 27], [31, 27], [32, 29], [33, 30], [34, 31], [35, 33], [36, 34], [37, 33], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "copyUcs4ReadBuffer", "code": "    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @param shift3 The number of bits to shift byte 2\n    * @param shift4 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs4ReadBuffer (int count, int shift1, int shift2,\n\t\t\t   int shift3, int shift4)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n    int value;\n\n    if (count > 0 && (count % 4) != 0) {\n      encodingError(\"number of bytes in UCS-4 encoding not divisible by 4\",\n\t\t    -1, count);\n    }\n    for (int i = 0; i < count; i+=4) {\n      value = (((rawReadBuffer[i] & 0xff) << shift1) |\n\t       ((rawReadBuffer[i+1] & 0xff) << shift2) |\n\t       ((rawReadBuffer[i+2] & 0xff) << shift3) |\n\t       ((rawReadBuffer[i+3] & 0xff) << shift4));\n      if (value < 0x0000ffff) {\n\treadBuffer[j++] = (char)value;\n\tif (value == (int)'\\r') {\n\t  sawCR = true;\n\t}", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [2, 13], [1, 14], [11, 15], [13, 16], [13, 17], [14, 18], [14, 19], [1, 20], [1, 21], [2, 22], [16, 23], [16, 24], [17, 25], [18, 26], [14, 27], [19, 28], [20, 29], [22, 30], [22, 31], [24, 32], [26, 33], [27, 34], [14, 35], [29, 36], [29, 37], [18, 38], [18, 39], [18, 40], [36, 41], [37, 42], [37, 43], [38, 44], [27, 45], [34, 46], [41, 47], [42, 48], [43, 49], [43, 50], [39, 51], [40, 52], [45, 53], [48, 54], [49, 55], [50, 56], [51, 57], [51, 58], [52, 59], [52, 60], [41, 61], [55, 62], [56, 63], [57, 64], [59, 65], [59, 66], [61, 67], [48, 68], [66, 69], [68, 70], [55, 71], [71, 72], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 2], [14, 1], [15, 11], [16, 13], [17, 13], [18, 14], [19, 14], [20, 1], [21, 1], [22, 2], [23, 16], [24, 16], [25, 17], [26, 18], [27, 14], [28, 19], [29, 20], [30, 22], [31, 22], [32, 24], [33, 26], [34, 27], [35, 14], [36, 29], [37, 29], [38, 18], [39, 18], [40, 18], [41, 36], [42, 37], [43, 37], [44, 38], [45, 27], [46, 34], [47, 41], [48, 42], [49, 43], [50, 43], [51, 39], [52, 40], [53, 45], [54, 48], [55, 49], [56, 50], [57, 51], [58, 51], [59, 52], [60, 52], [61, 41], [62, 55], [63, 56], [64, 57], [65, 59], [66, 59], [67, 61], [68, 48], [69, 66], [70, 68], [71, 55], [72, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72]]}, {"function_name": "encodingError", "code": "      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Report a character encoding error.\n    */\n  void encodingError (String message, int value, int offset)\n    throws java.lang.Exception\n  {\n    String uri;\n\n    if (value >= 0) {", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [7, 10], [7, 11], [8, 12], [9, 13], [1, 14], [1, 15], [2, 16], [15, 17], [16, 18], [17, 19], [18, 20], [18, 21], [21, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 7], [11, 7], [12, 8], [13, 9], [14, 1], [15, 1], [16, 2], [17, 15], [18, 16], [19, 17], [20, 18], [21, 18], [22, 21], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "initializeVariables", "code": "\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Local Variables.\n  //////////////////////////////////////////////////////////////////////\n\n  /**\n    * Re-initialize the variables for each parse.\n    */\n  void initializeVariables ()\n  {\n\t\t\t\t// No errors; first line\n    errorCount = 0;\n    line = 1;\n    column = 0;\n\n\t\t\t\t// Set up the buffers for data and names\n    dataBufferPos = 0;\n    dataBuffer = new char[DATA_BUFFER_INITIAL];\n    nameBufferPos = 0;\n    nameBuffer = new char[NAME_BUFFER_INITIAL];\n\n\t\t\t\t// Set up the DTD hash tables\n    elementInfo = new Hashtable();\n    entityInfo = new Hashtable();\n    notationInfo = new Hashtable();\n\n\t\t\t\t// Set up the variables for the current\n\t\t\t\t// element context.\n    currentElement = null;\n    currentElementContent = CONTENT_UNDECLARED;\n\n\t\t\t\t// Set up the input variables\n    sourceType = INPUT_NONE;\n    inputStack = new Stack();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [3, 23], [6, 24], [7, 25], [8, 26], [9, 27], [12, 28], [13, 29], [14, 30], [15, 31], [17, 32], [19, 33], [20, 34], [21, 35], [22, 36], [5, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 3], [24, 6], [25, 7], [26, 8], [27, 9], [28, 12], [29, 13], [30, 14], [31, 15], [32, 17], [33, 19], [34, 20], [35, 21], [36, 22], [37, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "cleanupVariables", "code": "    context = CONTEXT_NONE;\n\n    symbolTable = new Object[SYMBOL_TABLE_LENGTH];\n  }\n\n\n  /**\n    * Clean up after the parse to allow some garbage collection.\n    * Leave around anything that might be useful for queries.\n    */\n  void cleanupVariables ()\n  {\n    errorCount = -1;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [3, 14], [6, 15], [7, 16], [8, 17], [9, 18], [10, 19], [11, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 3], [15, 6], [16, 7], [17, 8], [18, 9], [19, 10], [20, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "XmlParser", "code": "    */", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.4-2586", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/cxf/interceptors/SoapMessageOutInterceptor.java", "language": "java", "name": "org.apache.camel.component.cxf.interceptors.SoapMessageOutInterceptor", "code": "public class SoapMessageOutInterceptor extends AbstractMessageOutInterceptor<SoapMessage> {\n    private static final Logger LOG = LogUtils.getL7dLogger(SoapMessageInInterceptor.class);\n\n\n    public SoapMessageOutInterceptor() {\n        super(Phase.PREPARE_SEND);\n        addAfter(DOMOutInterceptor.class.getName());\n    }\n\n    protected Logger getLogger() {\n        return LOG;\n    }\n\n    @SuppressWarnings(\"unchecked\")\n    public void handleMessage(SoapMessage message) throws Fault {\n        Element header = message.get(Element.class);\n\n        List<Element> payload = message.get(List.class);\n        Exchange exchange = message.getExchange();\n        BindingMessageInfo bmi = exchange.get(BindingMessageInfo.class);\n\n\n        List<SoapHeaderInfo> bindingHdr = bmi.getExtensors(SoapHeaderInfo.class);\n        if (bindingHdr != null && !bindingHdr.isEmpty()) {\n            if (LOG.isLoggable(Level.INFO)) {\n                LOG.info(\"SoapMessageOutInterceptor BindingOperation header processing.\");\n            }\n\n            List<Element> headerList = new ArrayList<Element>();\n            List<Element> newPayload = new ArrayList<Element>(payload);\n            for (SoapHeaderInfo shi : bindingHdr) {\n                List<Element> tmpList = new ArrayList<Element>();\n                MessagePartInfo mpi = shi.getPart();\n                QName hdrName = mpi.getConcreteName();\n                for (Element el : payload) {\n                    QName elName = new QName(el.getNamespaceURI(), el.getLocalName());\n                    if (elName.equals(hdrName)) {\n                        newPayload.remove(el);\n                        tmpList.add(el);\n                    }\n                }\n\n                if (tmpList.size() > 1) {\n                    throw new Fault(new org.apache.cxf.common.i18n.Message(\n                                    \"MULTIPLE_HDR_PARTS\", LOG, hdrName));\n                }\n                headerList.addAll(tmpList);\n            }\n\n            if (LOG.isLoggable(Level.INFO)) {\n                LOG.info(\"DOMOutInterceptor Copy Payload parts to SOAPHeaders\");\n            }\n            if (headerList.size() != 0) {\n                SoapVersion version = ((SoapMessage)message).getVersion();\n                header = createElement(version.getHeader(), headerList);\n            }\n            payload = newPayload;\n        }\n\n\n\n        if (LOG.isLoggable(Level.INFO)) {\n            LOG.info(\"SoapMessageOutInterceptor binding operation style processing.\");\n        }\n        SoapBindingInfo soapBinding = (SoapBindingInfo)exchange.get(BindingInfo.class);\n        String style = soapBinding.getStyle(bmi.getBindingOperation().getOperationInfo());\n        if (\"rpc\".equals(style)) {\n            OperationInfo oi = bmi.getBindingOperation().getOperationInfo();\n            Endpoint ep = exchange.get(Endpoint.class);\n            Definition def =\n                ep.getService().getServiceInfos().get(0).getProperty(WSDLServiceBuilder.WSDL_DEFINITION,\n                                                             Definition.class);\n            String prefix = def.getPrefix(oi.getName().getNamespaceURI());\n\n            if (\"\".equals(prefix)) {\n                prefix = \"tns\";\n            }\n            QName opName = null;\n            boolean isClient = isRequestor(message);\n            if (isClient) {\n                opName = new QName(oi.getName().getNamespaceURI(),\n                                   oi.getName().getLocalPart(),\n                                   prefix);\n            } else {\n                opName = new QName(oi.getName().getNamespaceURI(),\n                                   oi.getName().getLocalPart() + \"Response\",\n                                   prefix);\n            }\n            Element opEl = createElement(opName, payload);\n            payload = new ArrayList<Element>();\n            payload.add(opEl);\n        }\n\n        message.put(List.class, payload);", "functions": [{"function_name": "getLogger", "code": "    protected Logger getLogger() {\n        return LOG;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "handleMessage", "code": "    @SuppressWarnings(\"unchecked\")\n    public void handleMessage(SoapMessage message) throws Fault {\n        Element header = message.get(Element.class);\n\n        List<Element> payload = message.get(List.class);\n        Exchange exchange = message.getExchange();\n        BindingMessageInfo bmi = exchange.get(BindingMessageInfo.class);\n\n\n        List<SoapHeaderInfo> bindingHdr = bmi.getExtensors(SoapHeaderInfo.class);\n        if (bindingHdr != null && !bindingHdr.isEmpty()) {\n            if (LOG.isLoggable(Level.INFO)) {\n                LOG.info(\"SoapMessageOutInterceptor BindingOperation header processing.\");\n            }\n\n            List<Element> headerList = new ArrayList<Element>();\n            List<Element> newPayload = new ArrayList<Element>(payload);\n            for (SoapHeaderInfo shi : bindingHdr) {\n                List<Element> tmpList = new ArrayList<Element>();\n                MessagePartInfo mpi = shi.getPart();\n                QName hdrName = mpi.getConcreteName();\n                for (Element el : payload) {\n                    QName elName = new QName(el.getNamespaceURI(), el.getLocalName());\n                    if (elName.equals(hdrName)) {\n                        newPayload.remove(el);\n                        tmpList.add(el);\n                    }\n                }\n\n                if (tmpList.size() > 1) {\n                    throw new Fault(new org.apache.cxf.common.i18n.Message(\n                                    \"MULTIPLE_HDR_PARTS\", LOG, hdrName));\n                }\n                headerList.addAll(tmpList);\n            }\n\n            if (LOG.isLoggable(Level.INFO)) {\n                LOG.info(\"DOMOutInterceptor Copy Payload parts to SOAPHeaders\");\n            }\n            if (headerList.size() != 0) {\n                SoapVersion version = ((SoapMessage)message).getVersion();\n                header = createElement(version.getHeader(), headerList);\n            }\n            payload = newPayload;\n        }\n\n\n\n        if (LOG.isLoggable(Level.INFO)) {\n            LOG.info(\"SoapMessageOutInterceptor binding operation style processing.\");\n        }\n        SoapBindingInfo soapBinding = (SoapBindingInfo)exchange.get(BindingInfo.class);\n        String style = soapBinding.getStyle(bmi.getBindingOperation().getOperationInfo());\n        if (\"rpc\".equals(style)) {\n            OperationInfo oi = bmi.getBindingOperation().getOperationInfo();\n            Endpoint ep = exchange.get(Endpoint.class);\n            Definition def =\n                ep.getService().getServiceInfos().get(0).getProperty(WSDLServiceBuilder.WSDL_DEFINITION,\n                                                             Definition.class);\n            String prefix = def.getPrefix(oi.getName().getNamespaceURI());\n\n            if (\"\".equals(prefix)) {\n                prefix = \"tns\";\n            }\n            QName opName = null;\n            boolean isClient = isRequestor(message);\n            if (isClient) {\n                opName = new QName(oi.getName().getNamespaceURI(),\n                                   oi.getName().getLocalPart(),\n                                   prefix);\n            } else {\n                opName = new QName(oi.getName().getNamespaceURI(),\n                                   oi.getName().getLocalPart() + \"Response\",\n                                   prefix);\n            }\n            Element opEl = createElement(opName, payload);\n            payload = new ArrayList<Element>();\n            payload.add(opEl);\n        }\n\n        message.put(List.class, payload);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [4, 15], [5, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [14, 26], [2, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [16, 34], [16, 35], [6, 36], [7, 37], [8, 38], [9, 39], [10, 40], [1, 41], [1, 42], [21, 43], [27, 44], [3, 45], [4, 46], [5, 47], [28, 48], [29, 49], [33, 50], [35, 51], [42, 52], [17, 53], [19, 54], [20, 55], [43, 56], [22, 57], [23, 58], [24, 59], [25, 60], [44, 61], [46, 62], [28, 63], [48, 64], [48, 65], [30, 66], [30, 67], [30, 68], [30, 69], [30, 70], [31, 71], [32, 72], [18, 73], [18, 74], [21, 75], [57, 76], [58, 77], [58, 78], [58, 79], [60, 80], [28, 81], [29, 82], [30, 83], [66, 84], [33, 85], [73, 86], [74, 87], [75, 88], [76, 89], [78, 90], [81, 91], [82, 92], [66, 93], [84, 94], [84, 95], [67, 96], [67, 97], [68, 98], [69, 99], [70, 100], [85, 101], [86, 102], [86, 103], [87, 104], [87, 105], [91, 106], [93, 107], [96, 108], [102, 109], [102, 110], [103, 111], [104, 112], [105, 113], [107, 114], [97, 115], [110, 116], [114, 117], [96, 118], [96, 119], [115, 120], [115, 121], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 4], [16, 5], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 14], [27, 2], [28, 5], [29, 5], [30, 5], [31, 5], [32, 5], [33, 5], [34, 16], [35, 16], [36, 6], [37, 7], [38, 8], [39, 9], [40, 10], [41, 1], [42, 1], [43, 21], [44, 27], [45, 3], [46, 4], [47, 5], [48, 28], [49, 29], [50, 33], [51, 35], [52, 42], [53, 17], [54, 19], [55, 20], [56, 43], [57, 22], [58, 23], [59, 24], [60, 25], [61, 44], [62, 46], [63, 28], [64, 48], [65, 48], [66, 30], [67, 30], [68, 30], [69, 30], [70, 30], [71, 31], [72, 32], [73, 18], [74, 18], [75, 21], [76, 57], [77, 58], [78, 58], [79, 58], [80, 60], [81, 28], [82, 29], [83, 30], [84, 66], [85, 33], [86, 73], [87, 74], [88, 75], [89, 76], [90, 78], [91, 81], [92, 82], [93, 66], [94, 84], [95, 84], [96, 67], [97, 67], [98, 68], [99, 69], [100, 70], [101, 85], [102, 86], [103, 86], [104, 87], [105, 87], [106, 91], [107, 93], [108, 96], [109, 102], [110, 102], [111, 103], [112, 104], [113, 105], [114, 107], [115, 97], [116, 110], [117, 114], [118, 96], [119, 96], [120, 115], [121, 115], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121]]}, {"function_name": "SoapMessageOutInterceptor", "code": "    public SoapMessageOutInterceptor() {\n        super(Phase.PREPARE_SEND);\n        addAfter(DOMOutInterceptor.class.getName());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8595", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/Axis.java", "language": "java", "name": "org.apache.xml.dtm.Axis", "code": "public final class Axis\n{\n\n  /**\n   * The ancestor axis contains the ancestors of the context node;\n   *  the ancestors of the context node consist of the parent of context\n   *  node and the parent's parent and so on; thus, the ancestor axis will\n   *  always include the root node, unless the context node is the root node.\n   */\n  public static final int ANCESTOR = 0;\n\n  /**\n   * the ancestor-or-self axis contains the context node and the ancestors of\n   *  the context node; thus, the ancestor axis will always include the\n   *  root node.\n   */\n  public static final int ANCESTORORSELF = 1;\n\n  /**\n   * the attribute axis contains the attributes of the context node; the axis\n   *  will be empty unless the context node is an element.\n   */\n  public static final int ATTRIBUTE = 2;\n\n  /** The child axis contains the children of the context node. */\n  public static final int CHILD = 3;\n\n  /**\n   * The descendant axis contains the descendants of the context node;\n   *  a descendant is a child or a child of a child and so on; thus the\n   *  descendant axis never contains attribute or namespace nodes.\n   */\n  public static final int DESCENDANT = 4;\n\n  /**\n   * The descendant-or-self axis contains the context node and the\n   *  descendants of the context node.\n   */\n  public static final int DESCENDANTORSELF = 5;\n\n  /**\n   * the following axis contains all nodes in the same document as the\n   *  context node that are after the context node in document order, excluding\n   *  any descendants and excluding attribute nodes and namespace nodes.\n   */\n  public static final int FOLLOWING = 6;\n\n  /**\n   * The following-sibling axis contains all the following siblings of the\n   *  context node; if the context node is an attribute node or namespace node,\n   *  the following-sibling axis is empty.\n   */\n  public static final int FOLLOWINGSIBLING = 7;\n\n  /**\n   * The namespace axis contains the namespace nodes of the context node; the\n   *  axis will be empty unless the context node is an element.\n   */\n  public static final int NAMESPACEDECLS = 8;\n\n  /**\n   * The namespace axis contains the namespace nodes of the context node; the\n   *  axis will be empty unless the context node is an element.\n   */\n  public static final int NAMESPACE = 9;\n\n  /**\n   * The parent axis contains the parent of the context node,\n   *  if there is one.\n   */\n  public static final int PARENT = 10;\n\n  /**\n   * The preceding axis contains all nodes in the same document as the context\n   *  node that are before the context node in document order, excluding any\n   *  ancestors and excluding attribute nodes and namespace nodes\n   */\n  public static final int PRECEDING = 11;\n\n  /**\n   * The preceding-sibling axis contains all the preceding siblings of the\n   *  context node; if the context node is an attribute node or namespace node,\n   *  the preceding-sibling axis is empty.\n   */\n  public static final int PRECEDINGSIBLING = 12;\n\n  /** The self axis contains just the context node itself. */\n  public static final int SELF = 13;\n\n  /**\n   * A non-xpath axis, traversing the subtree including the subtree\n   *  root, descendants, attributes, and namespace node decls.\n   */\n  public static final int ALLFROMNODE = 14;\n\n  /**\n   * A non-xpath axis, traversing the the preceding and the ancestor nodes, \n   * needed for inverseing select patterns to match patterns.\n   */\n  public static final int PRECEDINGANDANCESTOR = 15;\n  \n  \n  /**\n   * A non-xpath axis, returns all nodes in the tree from and including the \n   * root.\n   */\n  public static final int ALL = 16;\n\n  /**\n   * A non-xpath axis, returns all nodes that aren't namespaces or attributes, \n   * from and including the root.\n   */\n  public static final int DESCENDANTSFROMROOT = 17;\n\n  /**\n   * A non-xpath axis, returns all nodes that aren't namespaces or attributes, \n   * from and including the root.\n   */\n  public static final int DESCENDANTSORSELFFROMROOT = 18;\n\n  /**\n   * A non-xpath axis, returns root only.\n   */\n  public static final int ROOT = 19;\n\n  /**\n   * A non-xpath axis, for functions.\n   */\n  public static final int FILTEREDLIST = 20;\n\n  /**\n   * A table to identify whether an axis is a reverse axis;\n   */\n  private static final boolean[] isReverse = {\n  };\n\n    /** The names of the axes for diagnostic purposes. */\n    private static final String[] names =\n    {\n    };\n\n  public static boolean isReverse(int axis){\n      return isReverse[axis];\n  }\n    \n    public static String getNames(int index){\n    \treturn names[index];    \n    }\n    \n    public static int getNamesLength(){\n    \treturn names.length;", "functions": [{"function_name": "isReverse", "code": "  public static boolean isReverse(int axis){\n      return isReverse[axis];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNames", "code": "    public static String getNames(int index){\n    \treturn names[index];    ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamesLength", "code": "    public static int getNamesLength(){\n    \treturn names.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ant-1.6-741", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/PreSetDef.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.PreSetDef", "code": "public class PreSetDef extends AntlibDefinition implements TaskContainer {\n    private UnknownElement nestedTask;\n    private String         name;\n\n    /**\n     * Name of the definition\n     * @param name the name of the definition\n     */\n     public void setName(String name) {\n        this.name = name;\n    }\n\n    /**\n     * Add a nested task to predefine attributes and elements on\n     * @param nestedTask  Nested task/type to extend\n     */\n    public void addTask(Task nestedTask) {\n        if (this.nestedTask != null) {\n            throw new BuildException(\"Only one nested element allowed\");\n        }\n        if (!(nestedTask instanceof UnknownElement)) {\n            throw new BuildException(\n                \"addTask called with a task that is not an unknown element\");\n        }\n        this.nestedTask = (UnknownElement) nestedTask;\n    }\n\n\n    /**\n     * make a new definition\n     */\n    public void execute() {\n        if (nestedTask == null) {\n            throw new BuildException(\"Missing nested element\");\n        }\n        if (name == null) {\n            throw new BuildException(\"Name not specified\");\n        }\n\n        name = ProjectHelper.genComponentName(getURI(), name);\n\n        ComponentHelper helper = ComponentHelper.getComponentHelper(\n            getProject());\n\n        String componentName = ProjectHelper.genComponentName(\n            nestedTask.getNamespace(), nestedTask.getTag());\n\n        AntTypeDefinition def = helper.getDefinition(componentName);\n        if (def == null) {\n            throw new BuildException(\n                \"Unable to find typedef \" + componentName);\n        }\n\n        PreSetDefinition newDef = new PreSetDefinition(def, nestedTask);\n\n        newDef.setName(name);\n\n        helper.addDataTypeDefinition(newDef);\n    }\n\n    /**\n     * This class contains the unknown element and the object\n     * that is predefined.\n     * @see AntTypeDefinition\n     */\n    public static class PreSetDefinition extends AntTypeDefinition {\n        private AntTypeDefinition parent;\n        private UnknownElement    element;\n\n        /**\n         * Creates a new <code>PresetDefinition</code> instance.\n         *\n         * @param parent The parent of this predefintion.\n         * @param el     The predefined attributes, nested elements and text.\n         */\n        public PreSetDefinition(AntTypeDefinition parent, UnknownElement el) {\n            if (parent instanceof PreSetDefinition) {\n                PreSetDefinition p = (PreSetDefinition) parent;\n                el.applyPreSet(p.element);\n                parent = p.parent;\n            }\n            this.parent = parent;\n            this.element = el;\n        }\n\n        /**\n         * Override so that it is not allowed\n         *\n         * @param clazz a <code>Class</code> value\n         */\n        public void setClass(Class clazz) {\n            throw new BuildException(\"Not supported\");\n        }\n\n        /**\n         * Override so that it is not allowed\n         *\n         * @param className a <code>String</code> value\n         */\n        public void setClassName(String className) {\n            throw new BuildException(\"Not supported\");\n        }\n\n        /**\n         * get the classname of the definition\n         * @return the name of the class of this definition\n         */\n        public String getClassName() {\n            return parent.getClassName();\n        }\n\n        /**\n         * set the adapter class for this definition.\n         * NOTE Supported\n         * @param adapterClass the adapterClass\n         */\n        public void setAdapterClass(Class adapterClass) {\n            throw new BuildException(\"Not supported\");\n        }\n\n        /**\n         * set the assignable class for this definition.\n         * NOT SUPPORTED\n         * @param adaptToClass the assignable class\n         */\n\n        public void setAdaptToClass(Class adaptToClass) {\n            throw new BuildException(\"Not supported\");\n        }\n\n        /**\n         * set the classloader to use to create an instance\n         * of the definition\n         * @param classLoader the classLoader\n         */\n        public void setClassLoader(ClassLoader classLoader) {\n            throw new BuildException(\"Not supported\");\n        }\n\n        /**\n         * get the classloader for this definition\n         * @return the classloader for this definition\n         */\n        public ClassLoader getClassLoader() {\n            return parent.getClassLoader();\n        }\n\n        /**\n         * get the exposed class for this definition.\n         * @param project the current project\n         * @return the exposed class\n         */\n        public Class getExposedClass(Project project) {\n            return parent.getExposedClass(project);\n        }\n\n        /**\n         * get the definition class\n         * @param project the current project\n         * @return the type of the definition\n         */\n        public Class getTypeClass(Project project) {\n            return parent.getTypeClass(project);\n        }\n\n\n        /**\n         * check if the attributes are correct\n         * @param project the current project\n         */\n        public void checkClass(Project project) {\n            parent.checkClass(project);\n        }\n\n        /**\n         * create an instance of the definition.\n         * The instance may be wrapped in a proxy class.\n         * This is a special version of create for IH and UE.\n         * @param project the current project\n         * @return the created object\n         */\n        public Object createObject(Project project) {\n            Object o = parent.create(project);\n            if (o == null) {\n                return null;\n            }\n            return o;\n        }\n\n        /**\n         * @return the predefined attributes, elements and text as\n         *         a UnknownElement\n         */\n        public UnknownElement getPreSets() {\n            return element;\n        }\n\n        /**\n         * Fake create an object, used by IH and UE to see that\n         * this is a predefined object.\n         *\n         * @param project the current project\n         * @return this object\n         */\n        public Object create(Project project) {\n            return this;\n        }\n\n        /**\n         * Equality method for this definition\n         *\n         * @param other another definition\n         * @param project the current project\n         * @return true if the definitions are the same\n         */\n        public boolean sameDefinition(AntTypeDefinition other, Project project) {\n            if (other == null) {\n                return false;\n            }\n            if (other.getClass() != getClass()) {\n                return false;\n            }\n            PreSetDefinition otherDef = (PreSetDefinition) other;\n            if (!parent.sameDefinition(otherDef.parent, project)) {\n                return false;\n            }\n            if (!element.similar(otherDef.element)) {\n                return false;\n            }\n            return true;\n        }\n\n        /**\n         * Similar method for this definition\n         *\n         * @param other another definition\n         * @param project the current project\n         * @return true if the definitions are the same\n         */\n        public boolean similarDefinition(\n            AntTypeDefinition other, Project project) {\n            if (other == null) {\n                return false;\n            }\n            if (!other.getClass().getName().equals(getClass().getName())) {\n                return false;\n            }\n            PreSetDefinition otherDef = (PreSetDefinition) other;\n            if (!parent.similarDefinition(otherDef.parent, project)) {\n                return false;\n            }\n            if (!element.similar(otherDef.element)) {\n                return false;\n            }\n            return true;", "functions": [{"function_name": "setName", "code": "     public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addTask", "code": "    public void addTask(Task nestedTask) {\n        if (this.nestedTask != null) {\n            throw new BuildException(\"Only one nested element allowed\");\n        }\n        if (!(nestedTask instanceof UnknownElement)) {\n            throw new BuildException(\n                \"addTask called with a task that is not an unknown element\");\n        }\n        this.nestedTask = (UnknownElement) nestedTask;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [6, 9], [7, 10], [8, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 6], [10, 7], [11, 8], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "execute", "code": "    public void execute() {\n        if (nestedTask == null) {\n            throw new BuildException(\"Missing nested element\");\n        }\n        if (name == null) {\n            throw new BuildException(\"Name not specified\");\n        }\n\n        name = ProjectHelper.genComponentName(getURI(), name);\n\n        ComponentHelper helper = ComponentHelper.getComponentHelper(\n            getProject());\n\n        String componentName = ProjectHelper.genComponentName(\n            nestedTask.getNamespace(), nestedTask.getTag());\n\n        AntTypeDefinition def = helper.getDefinition(componentName);\n        if (def == null) {\n            throw new BuildException(\n                \"Unable to find typedef \" + componentName);\n        }\n\n        PreSetDefinition newDef = new PreSetDefinition(def, nestedTask);\n\n        newDef.setName(name);\n\n        helper.addDataTypeDefinition(newDef);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [6, 12], [7, 13], [1, 14], [2, 15], [10, 16], [3, 17], [4, 18], [5, 19], [11, 20], [6, 21], [12, 22], [7, 23], [13, 24], [15, 25], [18, 26], [18, 27], [19, 28], [20, 29], [21, 30], [23, 31], [25, 32], [30, 33], [31, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 6], [13, 7], [14, 1], [15, 2], [16, 10], [17, 3], [18, 4], [19, 5], [20, 11], [21, 6], [22, 12], [23, 7], [24, 13], [25, 15], [26, 18], [27, 18], [28, 19], [29, 20], [30, 21], [31, 23], [32, 25], [33, 30], [34, 31], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}], "label": 0}
{"sample_id": "poi-3.0-6279", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/PercentPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.PercentPtg", "code": "public class PercentPtg\n    extends OperationPtg\n{\n    public final static int  SIZE = 1;\n    public final static byte sid  = 0x14;\n    \n    private final static String PERCENT = \"%\";\n\n    /** Creates new PercentPtg */\n\n    public PercentPtg()\n    {\n    }\n\n    public PercentPtg(RecordInputStream in)\n    {\n\n    }\n    \n   \n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public int getType()\n    {\n        return TYPE_UNARY;\n    }\n\n    public int getNumberOfOperands()\n    {\n        return 1;\n    }\n    \n    /** Implementation of method from Ptg */\n    public String toFormulaString(Workbook book)\n    {\n        return \"%\";\n    }\n       \n   /** implementation of method from OperationsPtg*/  \n    public String toFormulaString(String[] operands) {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(operands[ 0 ]);\n        buffer.append(PERCENT);\n        return buffer.toString();\n    }\n    \n    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}\n           \n    public Object clone() {\n      return new PercentPtg();", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return TYPE_UNARY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfOperands", "code": "    public int getNumberOfOperands()\n    {\n        return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \"%\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(String[] operands) {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(operands[ 0 ]);\n        buffer.append(PERCENT);\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      return new PercentPtg();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "PercentPtg", "code": "    public PercentPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PercentPtg", "code": "    public PercentPtg(RecordInputStream in)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8146", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/templates/ElemExsltFunction.java", "language": "java", "name": "org.apache.xalan.templates.ElemExsltFunction", "code": "public class ElemExsltFunction extends ElemTemplate\n{\n    static final long serialVersionUID = 272154954793534771L;\n  /**\n   * Get an integer representation of the element type.\n   *\n   * @return An integer representation of the element, defined in the\n   *     Constants class.\n   * @see org.apache.xalan.templates.Constants\n   */\n  public int getXSLToken()\n  {\n    return Constants.EXSLT_ELEMNAME_FUNCTION;\n  }\n\n   /**\n   * Return the node name, defined in the\n   *     Constants class.\n   * @see org.apache.xalan.templates.Constants\n   * @return The node name\n   * \n   */ \n  public String getNodeName()\n  {\n    return Constants.EXSLT_ELEMNAME_FUNCTION_STRING;\n  }\n  \n  public void execute(TransformerImpl transformer, XObject[] args)\n          throws TransformerException\n  {\n    XPathContext xctxt = transformer.getXPathContext();\n    VariableStack vars = xctxt.getVarStack();\n    \n    int thisFrame = vars.getStackFrame();\n    int nextFrame = vars.link(m_frameSize);\n\n    if (m_inArgsSize < args.length) {\n      throw new TransformerException (\"function called with too many args\");\n    }\n    \n    if (m_inArgsSize > 0) {\n      vars.clearLocalSlots(0, m_inArgsSize);\n\n      if (args.length > 0) {\n        vars.setStackFrame(thisFrame);\n        NodeList children = this.getChildNodes();\n        \n        for (int i = 0; i < args.length; i ++) {\n          Node child = children.item(i);\n          if (children.item(i) instanceof ElemParam) {\n            ElemParam param = (ElemParam)children.item(i);\n            vars.setLocalVariable(param.getIndex(), args[i], nextFrame);\n          }\n        }\n        \n        vars.setStackFrame(nextFrame);\n      }\n    }\n\n    \n    if (transformer.getDebug())\n      transformer.getTraceManager().fireTraceEvent(this);\n    \n    vars.setStackFrame(nextFrame);\n    transformer.executeChildTemplates(this, true);\n    \n    vars.unlink(thisFrame);\n\n    if (transformer.getDebug())\n      transformer.getTraceManager().fireTraceEndEvent(this);\n\n    \n  }\n        \n  /**\n   * Called after everything else has been\n   * recomposed, and allows the function to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    \n    String namespace = getName().getNamespace();\n    String handlerClass = sroot.getExtensionHandlerClass();\n    Object[] args ={namespace, sroot};\n    ExtensionNamespaceSupport extNsSpt = \n                         new ExtensionNamespaceSupport(namespace, handlerClass, args);\n    sroot.getExtensionNamespacesManager().registerExtension(extNsSpt);\n    if (!(namespace.equals(Constants.S_EXSLT_FUNCTIONS_URL)))\n    {\n      namespace = Constants.S_EXSLT_FUNCTIONS_URL;\n      args = new Object[]{namespace, sroot};\n      extNsSpt = new ExtensionNamespaceSupport(namespace, handlerClass, args);\n      sroot.getExtensionNamespacesManager().registerExtension(extNsSpt);", "functions": [{"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.EXSLT_ELEMNAME_FUNCTION;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.EXSLT_ELEMNAME_FUNCTION_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public void execute(TransformerImpl transformer, XObject[] args)\n          throws TransformerException\n  {\n    XPathContext xctxt = transformer.getXPathContext();\n    VariableStack vars = xctxt.getVarStack();\n    \n    int thisFrame = vars.getStackFrame();\n    int nextFrame = vars.link(m_frameSize);\n\n    if (m_inArgsSize < args.length) {\n      throw new TransformerException (\"function called with too many args\");\n    }\n    \n    if (m_inArgsSize > 0) {\n      vars.clearLocalSlots(0, m_inArgsSize);\n\n      if (args.length > 0) {\n        vars.setStackFrame(thisFrame);\n        NodeList children = this.getChildNodes();\n        \n        for (int i = 0; i < args.length; i ++) {\n          Node child = children.item(i);\n          if (children.item(i) instanceof ElemParam) {\n            ElemParam param = (ElemParam)children.item(i);\n            vars.setLocalVariable(param.getIndex(), args[i], nextFrame);\n          }\n        }\n        \n        vars.setStackFrame(nextFrame);\n      }\n    }\n\n    \n    if (transformer.getDebug())\n      transformer.getTraceManager().fireTraceEvent(this);\n    \n    vars.setStackFrame(nextFrame);\n    transformer.executeChildTemplates(this, true);\n    \n    vars.unlink(thisFrame);\n\n    if (transformer.getDebug())\n      transformer.getTraceManager().fireTraceEndEvent(this);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [0, 13], [0, 14], [2, 15], [3, 16], [4, 17], [1, 18], [13, 19], [2, 20], [3, 21], [16, 22], [4, 23], [5, 24], [6, 25], [7, 26], [8, 27], [18, 28], [20, 29], [21, 30], [3, 31], [23, 32], [21, 33], [21, 34], [30, 35], [31, 36], [32, 37], [21, 38], [33, 39], [21, 40], [33, 41], [33, 42], [41, 43], [33, 44], [34, 45], [41, 46], [43, 47], [42, 48], [41, 49], [49, 50], [46, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 0], [14, 0], [15, 2], [16, 3], [17, 4], [18, 1], [19, 13], [20, 2], [21, 3], [22, 16], [23, 4], [24, 5], [25, 6], [26, 7], [27, 8], [28, 18], [29, 20], [30, 21], [31, 3], [32, 23], [33, 21], [34, 21], [35, 30], [36, 31], [37, 32], [38, 21], [39, 33], [40, 21], [41, 33], [42, 33], [43, 41], [44, 33], [45, 34], [46, 41], [47, 43], [48, 42], [49, 41], [50, 49], [51, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    \n    String namespace = getName().getNamespace();\n    String handlerClass = sroot.getExtensionHandlerClass();\n    Object[] args ={namespace, sroot};\n    ExtensionNamespaceSupport extNsSpt = \n                         new ExtensionNamespaceSupport(namespace, handlerClass, args);\n    sroot.getExtensionNamespacesManager().registerExtension(extNsSpt);\n    if (!(namespace.equals(Constants.S_EXSLT_FUNCTIONS_URL)))\n    {\n      namespace = Constants.S_EXSLT_FUNCTIONS_URL;\n      args = new Object[]{namespace, sroot};\n      extNsSpt = new ExtensionNamespaceSupport(namespace, handlerClass, args);\n      sroot.getExtensionNamespacesManager().registerExtension(extNsSpt);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [8, 9], [2, 10], [4, 11], [5, 12], [1, 13], [1, 14], [1, 15], [1, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 8], [10, 2], [11, 4], [12, 5], [13, 1], [14, 1], [15, 1], [16, 1], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 1}
{"sample_id": "ivy-2.0-3510", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/lock/LockStrategy.java", "language": "java", "name": "org.apache.ivy.plugins.lock.LockStrategy", "code": "public interface LockStrategy {\n\n    /**\n     * Returns the name of the strategy\n     * @return the name of the strategy\n     */\n    String getName();\n\n    /**\n     * Performs a lock before downloading the given {@link Artifact} to the given file.\n     * \n     * @param artifact\n     *            the artifact about to be downloaded\n     * @param artifactFileToDownload\n     *            the file where the artifact will be downloaded\n     * @return true if the artifact is locked, false otherwise\n     * @throws InterruptedException\n     *             if the thread is interrupted while waiting to acquire the lock\n     */\n    boolean lockArtifact(Artifact artifact, File artifactFileToDownload) \n        throws InterruptedException;\n\n    /**\n     * Release the lock acquired for an artifact download.\n     * \n     * @param artifact\n     *            the artifact for which the lock was acquired\n     * @param artifactFileToDownload\n     *            the file where the artifact is supposed to have been downloaded\n     */\n    void unlockArtifact(Artifact artifact, File artifactFileToDownload);", "functions": [{"function_name": "getName", "code": "    String getName();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "lockArtifact", "code": "    boolean lockArtifact(Artifact artifact, File artifactFileToDownload) ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "unlockArtifact", "code": "    void unlockArtifact(Artifact artifact, File artifactFileToDownload);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.2-4447", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "bsh/TokenMgrError.java", "language": "java", "name": "bsh.TokenMgrError", "code": "public class TokenMgrError extends Error\n{\n   /*\n    * Ordinals for various reasons why an Error of this type can be thrown.\n    */\n\n   /**\n    * Lexical error occured.\n    */\n   static final int LEXICAL_ERROR = 0;\n\n   /**\n    * An attempt wass made to create a second instance of a static token manager.\n    */\n   static final int STATIC_LEXER_ERROR = 1;\n\n   /**\n    * Tried to change to an invalid lexical state.\n    */\n   static final int INVALID_LEXICAL_STATE = 2;\n\n   /**\n    * Detected (and bailed out of) an infinite loop in the token manager.\n    */\n   static final int LOOP_DETECTED = 3;\n\n   /**\n    * Indicates the reason why the exception is thrown. It will have\n    * one of the above 4 values.\n    */\n   int errorCode;\n\n   /**\n    * Replaces unprintable characters by their espaced (or unicode escaped)\n    * equivalents in the given string\n    */\n   protected static final String addEscapes(String str) {\n      StringBuffer retval = new StringBuffer();\n      char ch;\n      for (int i = 0; i < str.length(); i++) {\n        switch (str.charAt(i))\n        {\n           case 0 :\n              continue;\n           case '\\b':\n              retval.append(\"\\\\b\");\n              continue;\n           case '\\t':\n              retval.append(\"\\\\t\");\n              continue;\n           case '\\n':\n              retval.append(\"\\\\n\");\n              continue;\n           case '\\f':\n              retval.append(\"\\\\f\");\n              continue;\n           case '\\r':\n              retval.append(\"\\\\r\");\n              continue;\n           case '\\\"':\n              retval.append(\"\\\\\\\"\");\n              continue;\n           case '\\'':\n              retval.append(\"\\\\\\'\");\n              continue;\n           case '\\\\':\n              retval.append(\"\\\\\\\\\");\n              continue;\n           default:\n              if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {\n                 String s = \"0000\" + Integer.toString(ch, 16);\n                 retval.append(\"\\\\u\" + s.substring(s.length() - 4, s.length()));\n              } else {\n                 retval.append(ch);\n              }\n              continue;\n        }\n      }\n      return retval.toString();\n   }\n\n   /**\n    * Returns a detailed message for the Error when it is thrown by the\n    * token manager to indicate a lexical error.\n    * Parameters : \n    *    EOFSeen     : indicates if EOF caused the lexicl error\n    *    curLexState : lexical state in which this error occured\n    *    errorLine   : line number when the error occured\n    *    errorColumn : column number when the error occured\n    *    errorAfter  : prefix that was seen before this error occured\n    *    curchar     : the offending character\n    * Note: You can customize the lexical error message by modifying this method.\n    */\n   protected static String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) {\n      return(\"Lexical error at line \" +\n           errorLine + \", column \" +\n           errorColumn + \".  Encountered: \" +\n           (EOFSeen ? \"<EOF> \" : (\"\\\"\" + addEscapes(String.valueOf(curChar)) + \"\\\"\") + \" (\" + (int)curChar + \"), \") +\n           \"after : \\\"\" + addEscapes(errorAfter) + \"\\\"\");\n   }\n\n   /**\n    * You can also modify the body of this method to customize your error messages.\n    * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not\n    * of end-users concern, so you can return something like : \n    *\n    *     \"Internal Error : Please file a bug report .... \"\n    *\n    * from this method for such cases in the release version of your parser.\n    */\n   public String getMessage() {\n      return super.getMessage();\n   }\n\n   /*\n    * Constructors of various flavors follow.\n    */\n\n   public TokenMgrError() {\n   }\n\n   public TokenMgrError(String message, int reason) {\n      super(message);\n      errorCode = reason;\n   }\n\n   public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) {\n      this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason);", "functions": [{"function_name": "addEscapes", "code": "   protected static final String addEscapes(String str) {\n      StringBuffer retval = new StringBuffer();\n      char ch;\n      for (int i = 0; i < str.length(); i++) {\n        switch (str.charAt(i))\n        {\n           case 0 :\n              continue;\n           case '\\b':\n              retval.append(\"\\\\b\");\n              continue;\n           case '\\t':\n              retval.append(\"\\\\t\");\n              continue;\n           case '\\n':\n              retval.append(\"\\\\n\");\n              continue;\n           case '\\f':\n              retval.append(\"\\\\f\");\n              continue;\n           case '\\r':\n              retval.append(\"\\\\r\");\n              continue;\n           case '\\\"':\n              retval.append(\"\\\\\\\"\");\n              continue;\n           case '\\'':\n              retval.append(\"\\\\\\'\");\n              continue;\n           case '\\\\':\n              retval.append(\"\\\\\\\\\");\n              continue;\n           default:\n              if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {\n                 String s = \"0000\" + Integer.toString(ch, 16);\n                 retval.append(\"\\\\u\" + s.substring(s.length() - 4, s.length()));\n              } else {\n                 retval.append(ch);\n              }\n              continue;\n        }\n      }\n      return retval.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "SWITCH", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [4, 10], [8, 11], [2, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 30], [8, 31], [8, 32], [14, 33], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 39], [8, 40], [8, 41], [14, 42], [33, 43], [33, 44], [34, 45], [35, 46], [36, 47], [37, 48], [38, 49], [39, 50], [40, 51], [41, 52], [14, 53], [14, 54], [43, 55], [44, 56], [44, 57], [54, 58], [42, 59], [57, 60], [58, 61], [58, 62], [59, 63], [59, 64], [61, 65], [61, 66], [63, 67], [66, 68], [66, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 4], [11, 8], [12, 2], [13, 8], [14, 8], [15, 8], [16, 8], [17, 8], [18, 8], [19, 8], [20, 8], [21, 8], [22, 8], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 8], [31, 8], [32, 8], [33, 14], [34, 8], [35, 8], [36, 8], [37, 8], [38, 8], [39, 8], [40, 8], [41, 8], [42, 14], [43, 33], [44, 33], [45, 34], [46, 35], [47, 36], [48, 37], [49, 38], [50, 39], [51, 40], [52, 41], [53, 14], [54, 14], [55, 43], [56, 44], [57, 44], [58, 54], [59, 42], [60, 57], [61, 58], [62, 58], [63, 59], [64, 59], [65, 61], [66, 61], [67, 63], [68, 66], [69, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "LexicalError", "code": "   protected static String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) {\n      return(\"Lexical error at line \" +\n           errorLine + \", column \" +\n           errorColumn + \".  Encountered: \" +\n           (EOFSeen ? \"<EOF> \" : (\"\\\"\" + addEscapes(String.valueOf(curChar)) + \"\\\"\") + \" (\" + (int)curChar + \"), \") +\n           \"after : \\\"\" + addEscapes(errorAfter) + \"\\\"\");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [14, 15], [14, 16], [15, 17], [15, 18], [16, 19], [16, 20], [17, 21], [17, 22], [20, 23], [22, 24], [23, 25], [23, 26], [24, 27], [24, 28], [26, 29], [28, 30], [28, 31], [31, 32], [31, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [15, 14], [16, 14], [17, 15], [18, 15], [19, 16], [20, 16], [21, 17], [22, 17], [23, 20], [24, 22], [25, 23], [26, 23], [27, 24], [28, 24], [29, 26], [30, 28], [31, 28], [32, 31], [33, 31], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getMessage", "code": "   public String getMessage() {\n      return super.getMessage();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "TokenMgrError", "code": "   public TokenMgrError() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "TokenMgrError", "code": "   public TokenMgrError(String message, int reason) {\n      super(message);\n      errorCode = reason;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "TokenMgrError", "code": "   public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) {\n      this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "camel-1.4-2403", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/atom/AtomUtils.java", "language": "java", "name": "org.apache.camel.component.atom.AtomUtils", "code": "public final class AtomUtils {\n\n    private AtomUtils() {\n    }\n\n    /**\n     * Gets the Atom parser.\n     */\n    public static Parser getAtomParser() {\n        return Abdera.getInstance().getParser();\n    }\n\n    /**\n     * Parses the given uri and returns the response as a atom feed document.\n     *\n     * @param uri the uri for the atom feed.\n     * @return  the document\n     * @throws IOException is thrown if error reading from the uri\n     * @throws ParseException is thrown if the parsing failed\n     */\n    public static Document<Feed> parseDocument(String uri) throws IOException, ParseException {\n        InputStream in = new URL(uri).openStream();\n        return getAtomParser().parse(in);", "functions": [{"function_name": "getAtomParser", "code": "    public static Parser getAtomParser() {\n        return Abdera.getInstance().getParser();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "parseDocument", "code": "    public static Document<Feed> parseDocument(String uri) throws IOException, ParseException {\n        InputStream in = new URL(uri).openStream();\n        return getAtomParser().parse(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "AtomUtils", "code": "    private AtomUtils() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.7-8127", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/extensions/SecuritySupport.java", "language": "java", "name": "org.apache.xalan.extensions.SecuritySupport", "code": "class SecuritySupport {\n\n    /*\n     * Make this of type Object so that the verifier won't try to\n     * prove its type, thus possibly trying to load the SecuritySupport12\n     * class.\n     */\n    private static final Object securitySupport;\n\n    static {\n\tSecuritySupport ss = null;\n\ttry {\n\t    Class c = Class.forName(\"java.security.AccessController\");\n\t    /*\n\t    c = Class.forName(\"javax.mail.SecuritySupport12\");\n\t    Constructor cons = c.getConstructor(new Class[] { });\n\t    ss = (SecuritySupport)cons.newInstance(new Object[] { });\n\t    */\n\t    /*\n\t     * Unfortunately, we can't load the class using reflection\n\t     * because the class is package private.  And the class has\n\t     * to be package private so the APIs aren't exposed to other\n\t     * code that could use them to circumvent security.  Thus,\n\t     * we accept the risk that the direct reference might fail\n\t     * on some JDK 1.1 JVMs, even though we would never execute\n\t     * this code in such a case.  Sigh...\n\t     */\n\t    ss = new SecuritySupport12();\n\t} catch (Exception ex) {\n\t} finally {\n\t    if (ss == null)\n\t\tss = new SecuritySupport();\n\t    securitySupport = ss;\n\t}\n    }\n\n    /**\n     * Return an appropriate instance of this class, depending on whether\n     * we're on a JDK 1.1 or J2SE 1.2 (or later) system.\n     */\n    static SecuritySupport getInstance() {\n\treturn (SecuritySupport)securitySupport;\n    }\n\n    ClassLoader getContextClassLoader() {\n\treturn null;\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return null;\n    }\n\n    ClassLoader getParentClassLoader(ClassLoader cl) {\n        return null;\n    }\n\n    String getSystemProperty(String propName) {\n        return System.getProperty(propName);\n    }\n\n    FileInputStream getFileInputStream(File file)\n        throws FileNotFoundException\n    {\n        return new FileInputStream(file);\n    }\n\n    InputStream getResourceAsStream(ClassLoader cl, String name) {\n        InputStream ris;\n        if (cl == null) {\n            ris = ClassLoader.getSystemResourceAsStream(name);\n        } else {\n            ris = cl.getResourceAsStream(name);\n        }\n        return ris;\n    }\n    \n    boolean getFileExists(File f) {\n        return f.exists();\n    }\n    \n    long getLastModified(File f) {\n        return f.lastModified();", "functions": [{"function_name": "getInstance", "code": "    static SecuritySupport getInstance() {\n\treturn (SecuritySupport)securitySupport;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(ClassLoader cl) {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(String propName) {\n        return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(File file)\n        throws FileNotFoundException\n    {\n        return new FileInputStream(file);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(ClassLoader cl, String name) {\n        InputStream ris;\n        if (cl == null) {\n            ris = ClassLoader.getSystemResourceAsStream(name);\n        } else {\n            ris = cl.getResourceAsStream(name);\n        }\n        return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [2, 8], [2, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 2], [9, 2], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(File f) {\n        return f.exists();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLastModified", "code": "    long getLastModified(File f) {\n        return f.lastModified();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "poi-3.0-6165", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/SSTDeserializer.java", "language": "java", "name": "org.apache.poi.hssf.record.SSTDeserializer", "code": "class SSTDeserializer\n{\n\n    private IntMapper strings;\n\n    public SSTDeserializer( IntMapper strings )\n    {\n        this.strings = strings;\n    }\n\n    /**\n     * This is the starting point where strings are constructed.  Note that\n     * strings may span across multiple continuations. Read the SST record\n     * carefully before beginning to hack.\n     */\n    public void manufactureStrings( int stringCount, RecordInputStream in )\n    {\n      for (int i=0;i<stringCount;i++) {\n        UnicodeString str = new UnicodeString(in);\n        addToStringTable( strings, str );\n        }\n    }\n\n    static public void addToStringTable( IntMapper strings, UnicodeString string )\n            {\n      strings.add(string );", "functions": [{"function_name": "manufactureStrings", "code": "    public void manufactureStrings( int stringCount, RecordInputStream in )\n    {\n      for (int i=0;i<stringCount;i++) {\n        UnicodeString str = new UnicodeString(in);\n        addToStringTable( strings, str );", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addToStringTable", "code": "    static public void addToStringTable( IntMapper strings, UnicodeString string )\n            {\n      strings.add(string );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SSTDeserializer", "code": "    public SSTDeserializer( IntMapper strings )\n    {\n        this.strings = strings;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-778", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/facade/FacadeTaskHelper.java", "language": "java", "name": "org.apache.tools.ant.util.facade.FacadeTaskHelper", "code": "public class FacadeTaskHelper {\n\n    /**\n     * Command line arguments.\n     */\n    private Vector args = new Vector();\n\n    /**\n     * The explicitly chosen implementation.\n     */\n    private String userChoice;\n\n    /**\n     * The magic property to consult.\n     */\n    private String magicValue;\n\n    /**\n     * The default value.\n     */\n    private String defaultValue;\n\n    /**\n     * @param defaultValue The default value for the implementation.\n     * Must not be null.\n     */\n    public FacadeTaskHelper(String defaultValue) {\n        this(defaultValue, null);\n    }\n\n    /**\n     * @param defaultValue The default value for the implementation.\n     * Must not be null.\n     * @param magicValue the value of a magic property that may hold a user.\n     * choice.  May be null.\n     */\n    public FacadeTaskHelper(String defaultValue, String magicValue) {\n        this.defaultValue = defaultValue;\n        this.magicValue = magicValue;\n    }\n\n    /**\n     * Used to set the value of the magic property.\n     * @param magicValue the value of a magic property that may hold a user.\n     */\n    public void setMagicValue(String magicValue) {\n        this.magicValue = magicValue;\n    }\n\n    /**\n     * Used for explicit user choices.\n     * @param userChoice the explicitly chosen implementation.\n     */\n    public void setImplementation(String userChoice) {\n        this.userChoice = userChoice;\n    }\n\n    /**\n     * Retrieves the implementation.\n     * @return the implementation.\n     */\n    public String getImplementation() {\n        return userChoice != null ? userChoice\n                                  : (magicValue != null ? magicValue\n                                                        : defaultValue);\n    }\n\n    /**\n     * Retrieves the explicit user choice.\n     * @return the explicit user choice.\n     */\n    public String getExplicitChoice() {\n        return userChoice;\n    }\n\n    /**\n     * Command line argument.\n     * @param arg an argument to add.\n     */\n    public void addImplementationArgument(ImplementationSpecificArgument arg) {\n        args.addElement(arg);\n    }\n\n    /**\n     * Retrieves the command line arguments enabled for the current\n     * facade implementation.\n     * @return an array of command line arguements.\n     */\n    public String[] getArgs() {\n        Vector tmp = new Vector(args.size());\n        for (Enumeration e = args.elements(); e.hasMoreElements();) {\n            ImplementationSpecificArgument arg =\n                ((ImplementationSpecificArgument) e.nextElement());\n            String[] curr = arg.getParts(getImplementation());\n            for (int i = 0; i < curr.length; i++) {\n                tmp.addElement(curr[i]);\n            }\n        }\n        String[] res = new String[tmp.size()];\n        tmp.copyInto(res);\n        return res;\n    }\n\n    /**\n     * Tests whether the implementation has been chosen by the user\n     * (either via a magic property or explicitly.\n     * @return true if magic or user choice has be set.\n     * @since Ant 1.5.2\n     */\n    public boolean hasBeenSet() {\n        return userChoice != null || magicValue != null;", "functions": [{"function_name": "setMagicValue", "code": "    public void setMagicValue(String magicValue) {\n        this.magicValue = magicValue;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setImplementation", "code": "    public void setImplementation(String userChoice) {\n        this.userChoice = userChoice;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getImplementation", "code": "    public String getImplementation() {\n        return userChoice != null ? userChoice\n                                  : (magicValue != null ? magicValue\n                                                        : defaultValue);", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getExplicitChoice", "code": "    public String getExplicitChoice() {\n        return userChoice;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addImplementationArgument", "code": "    public void addImplementationArgument(ImplementationSpecificArgument arg) {\n        args.addElement(arg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getArgs", "code": "    public String[] getArgs() {\n        Vector tmp = new Vector(args.size());\n        for (Enumeration e = args.elements(); e.hasMoreElements();) {\n            ImplementationSpecificArgument arg =\n                ((ImplementationSpecificArgument) e.nextElement());\n            String[] curr = arg.getParts(getImplementation());\n            for (int i = 0; i < curr.length; i++) {\n                tmp.addElement(curr[i]);\n            }\n        }\n        String[] res = new String[tmp.size()];\n        tmp.copyInto(res);\n        return res;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [3, 8], [3, 9], [4, 10], [2, 11], [7, 12], [3, 13], [10, 14], [8, 15], [7, 16], [7, 17], [15, 18], [9, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 3], [9, 3], [10, 4], [11, 2], [12, 7], [13, 3], [14, 10], [15, 8], [16, 7], [17, 7], [18, 15], [19, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "hasBeenSet", "code": "    public boolean hasBeenSet() {\n        return userChoice != null || magicValue != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "FacadeTaskHelper", "code": "    public FacadeTaskHelper(String defaultValue) {\n        this(defaultValue, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FacadeTaskHelper", "code": "    public FacadeTaskHelper(String defaultValue, String magicValue) {\n        this.defaultValue = defaultValue;\n        this.magicValue = magicValue;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.7-1059", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/selectors/NotSelector.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.NotSelector", "code": "public class NotSelector extends NoneSelector {\n\n    /**\n     * Default constructor.\n     */\n    public NotSelector() {\n    }\n\n    /**\n     * Constructor that inverts the meaning of its argument.\n     * @param other the selector to invert\n     * @since Ant 1.7\n     */\n    public NotSelector(FileSelector other) {\n        this();\n        appendSelector(other);\n    }\n\n    /**\n     * @return a string representation of the selector\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        if (hasSelectors()) {\n            buf.append(\"{notselect: \");\n            buf.append(super.toString());\n            buf.append(\"}\");\n        }\n        return buf.toString();\n    }\n\n    /**\n     * Makes sure that there is only one entry, sets an error message if\n     * not.\n     */\n    public void verifySettings() {\n        if (selectorCount() != 1) {\n            setError(\"One and only one selector is allowed within the \"\n                + \"<not> tag\");", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        if (hasSelectors()) {\n            buf.append(\"{notselect: \");\n            buf.append(super.toString());\n            buf.append(\"}\");\n        }\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [2, 7], [2, 8], [2, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 2], [8, 2], [9, 2], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "verifySettings", "code": "    public void verifySettings() {\n        if (selectorCount() != 1) {\n            setError(\"One and only one selector is allowed within the \"\n                + \"<not> tag\");", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 1], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "NotSelector", "code": "    public NotSelector() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NotSelector", "code": "    public NotSelector(FileSelector other) {\n        this();\n        appendSelector(other);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.5-6968", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/NSInfo.java", "language": "java", "name": "org.apache.xml.utils.NSInfo", "code": "public class NSInfo\n{\n\n  /**\n   * Constructor NSInfo\n   *\n   *\n   * @param hasProcessedNS Flag indicating whether namespaces\n   * have been processed for this node \n   * @param hasXMLNSAttrs Flag indicating whether this node\n   * has XMLNS attributes. \n   */\n  public NSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs)\n  {\n\n    m_hasProcessedNS = hasProcessedNS;\n    m_hasXMLNSAttrs = hasXMLNSAttrs;\n    m_namespace = null;\n    m_ancestorHasXMLNSAttrs = ANCESTORXMLNSUNPROCESSED;\n  }\n\n\n  /**\n   * Constructor NSInfo\n   *\n   *\n   * @param hasProcessedNS Flag indicating whether namespaces\n   * have been processed for this node \n   * @param hasXMLNSAttrs Flag indicating whether this node\n   * has XMLNS attributes. \n   * @param hasXMLNSAttrs Flag indicating whether one of this node's\n   * ancestor has XMLNS attributes.\n   */\n  public NSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs,\n                int ancestorHasXMLNSAttrs)\n  {\n\n    m_hasProcessedNS = hasProcessedNS;\n    m_hasXMLNSAttrs = hasXMLNSAttrs;\n    m_ancestorHasXMLNSAttrs = ancestorHasXMLNSAttrs;\n    m_namespace = null;\n  }\n\n  /**\n   * Constructor NSInfo\n   *\n   *\n   * @param namespace The namespace URI \n   * @param hasXMLNSAttrs Flag indicating whether this node\n   * has XMLNS attributes.\n   */\n  public NSInfo(String namespace, boolean hasXMLNSAttrs)\n  {\n\n    m_hasProcessedNS = true;\n    m_hasXMLNSAttrs = hasXMLNSAttrs;\n    m_namespace = namespace;\n    m_ancestorHasXMLNSAttrs = ANCESTORXMLNSUNPROCESSED;\n  }\n\n  /** The namespace URI          */\n  public String m_namespace;\n\n  /** Flag indicating whether this node has an XMLNS attribute          */\n  public boolean m_hasXMLNSAttrs;\n\n  /** Flag indicating whether namespaces have been processed for this node */\n  public boolean m_hasProcessedNS;\n\n  /** Flag indicating whether one of this node's ancestor has an XMLNS attribute          */\n  public int m_ancestorHasXMLNSAttrs;\n\n  /** Constant for ancestors XMLNS atributes not processed          */\n  public static final int ANCESTORXMLNSUNPROCESSED = 0;\n\n  /** Constant indicating an ancestor has an XMLNS attribute           */\n  public static final int ANCESTORHASXMLNS = 1;\n\n  /** Constant indicating ancestors don't have an XMLNS attribute           */\n  public static final int ANCESTORNOXMLNS = 2;", "functions": [{"function_name": "NSInfo", "code": "  public NSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs)\n  {\n\n    m_hasProcessedNS = hasProcessedNS;\n    m_hasXMLNSAttrs = hasXMLNSAttrs;\n    m_namespace = null;\n    m_ancestorHasXMLNSAttrs = ANCESTORXMLNSUNPROCESSED;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "NSInfo", "code": "  public NSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs,\n                int ancestorHasXMLNSAttrs)\n  {\n\n    m_hasProcessedNS = hasProcessedNS;\n    m_hasXMLNSAttrs = hasXMLNSAttrs;\n    m_ancestorHasXMLNSAttrs = ancestorHasXMLNSAttrs;\n    m_namespace = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "NSInfo", "code": "  public NSInfo(String namespace, boolean hasXMLNSAttrs)\n  {\n\n    m_hasProcessedNS = true;\n    m_hasXMLNSAttrs = hasXMLNSAttrs;\n    m_namespace = namespace;\n    m_ancestorHasXMLNSAttrs = ANCESTORXMLNSUNPROCESSED;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "jedit-4.3-4788", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/BeanShellAction.java", "language": "java", "name": "org.gjt.sp.jedit.BeanShellAction", "code": "public class BeanShellAction extends EditAction\n{\n\t//{{{ BeanShellAction constructor\n\tpublic BeanShellAction(String name, String code, String isSelected,\n\t\tboolean noRepeat, boolean noRecord, boolean noRememberLast)\n\t{\n\t\tsuper(name);\n\n\t\t/* Some characters that we like to use in action names\n\t\t * ('.', '-') are not allowed in BeanShell identifiers. */\n\t\tString sanitizedName = name.replace('.','_').replace('-','_');\n\t\tthis.code = new CachedBshMethod(\"action_\" + sanitizedName, code);\n\t\tif (isSelected != null)\n\t\t{\n\t\t\tthis.isSelected = new CachedBshMethod(\"selected_\" + sanitizedName, isSelected);\n\t\t}\n\t\tthis.noRepeat = noRepeat;\n\t\tthis.noRecord = noRecord;\n\t\tthis.noRememberLast = noRememberLast;\n\n\t\tjEdit.setTemporaryProperty(name + \".toggle\",\n\t\t\tisSelected != null ? \"true\" : \"false\");\n\t} //}}}\n\n\t//{{{ invoke() method\n\tpublic void invoke(View view)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBeanShell.runCachedBlock(code.get(),view,\n\t\t\t\tnew NameSpace(BeanShell.getNameSpace(),\n\t\t\t\t\"BeanShellAction.invoke()\"));\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\tnew BeanShellErrorDialog(view,e);\n\t\t}\n\t} //}}}\n\n\t//{{{ isSelected() method\n\tpublic boolean isSelected(Component comp)\n\t{\n\t\tif(isSelected == null)\n\t\t\treturn false;\n\n\t\tNameSpace global = BeanShell.getNameSpace();\n\n\t\ttry\n\t\t{\n\t\t\tView view = GUIUtilities.getView(comp);\n\n\t\t\t// undocumented hack to allow browser actions to work.\n\t\t\t// XXX - clean up in 4.3\n\t\t\tglobal.setVariable(\"_comp\",comp);\n\n\t\t\treturn Boolean.TRUE.equals(BeanShell.runCachedBlock(\n\t\t\t\tisSelected.get(),view,\n\t\t\t\tnew NameSpace(BeanShell.getNameSpace(),\n\t\t\t\t\"BeanShellAction.isSelected()\")));\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\t// dialogs fuck things up if a menu is visible, etc!\n\t\t\t//new BeanShellErrorDialog(view,e);\n\n\t\t\t// so that in the future we don't see streams of\n\t\t\t// exceptions\n\t\t\tisSelected = null;\n\n\t\t\treturn false;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tglobal.setVariable(\"_comp\",null);\n\t\t\t}\n\t\t\tcatch(UtilEvalError err)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,err);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ noRepeat() method\n\tpublic boolean noRepeat()\n\t{\n\t\treturn noRepeat;\n\t} //}}}\n\n\t//{{{ noRecord() method\n\tpublic boolean noRecord()\n\t{\n\t\treturn noRecord;\n\t} //}}}\n\n\t//{{{ noRememberLast() method\n\t/**\n\t * Returns if this edit action should not be remembered as the most\n\t * recently invoked action.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic boolean noRememberLast()\n\t{\n\t\treturn noRememberLast;\n\t} //}}}\n\n\t//{{{ getCode() method\n\tpublic String getCode()\n\t{\n\t\treturn code.getSource().trim();\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate boolean noRepeat;\n\tprivate boolean noRecord;\n\tprivate boolean noRememberLast;\n\tprivate CachedBshMethod code;\n\tprivate CachedBshMethod isSelected;\n\n\t//{{{ CachedBshMethod class\n\tprivate static class CachedBshMethod\n\t{\n\t\tprivate final String name;\n\t\tprivate final String source;\n\t\tprivate SoftReference<BshMethod> cache;\n\n\t\tpublic CachedBshMethod(String name, String source)\n\t\t{\n\t\t\tthis.name = name;\n\t\t\tthis.source = source;\n\t\t\tthis.cache = null;\n\t\t}\n\n\t\tpublic BshMethod get() throws java.lang.Exception\n\t\t{\n\t\t\tif (cache != null)\n\t\t\t{\n\t\t\t\tBshMethod cached = cache.get();\n\t\t\t\tif (cached != null)\n\t\t\t\t{\n\t\t\t\t\treturn cached;\n\t\t\t\t}\n\t\t\t}\n\t\t\tBshMethod newOne = BeanShell.cacheBlock(name, source, true);\n\t\t\tcache = new SoftReference<BshMethod>(newOne);\n\t\t\treturn newOne;\n\t\t}\n\n\t\tpublic String getSource()\n\t\t{\n\t\t\treturn source;", "functions": [{"function_name": "invoke", "code": "\tpublic void invoke(View view)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBeanShell.runCachedBlock(code.get(),view,\n\t\t\t\tnew NameSpace(BeanShell.getNameSpace(),\n\t\t\t\t\"BeanShellAction.invoke()\"));\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\tnew BeanShellErrorDialog(view,e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [4, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 4], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isSelected", "code": "\tpublic boolean isSelected(Component comp)\n\t{\n\t\tif(isSelected == null)\n\t\t\treturn false;\n\n\t\tNameSpace global = BeanShell.getNameSpace();\n\n\t\ttry\n\t\t{\n\t\t\tView view = GUIUtilities.getView(comp);\n\n\t\t\t// undocumented hack to allow browser actions to work.\n\t\t\t// XXX - clean up in 4.3\n\t\t\tglobal.setVariable(\"_comp\",comp);\n\n\t\t\treturn Boolean.TRUE.equals(BeanShell.runCachedBlock(\n\t\t\t\tisSelected.get(),view,\n\t\t\t\tnew NameSpace(BeanShell.getNameSpace(),\n\t\t\t\t\"BeanShellAction.isSelected()\")));\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\t// dialogs fuck things up if a menu is visible, etc!\n\t\t\t//new BeanShellErrorDialog(view,e);\n\n\t\t\t// so that in the future we don't see streams of\n\t\t\t// exceptions\n\t\t\tisSelected = null;\n\n\t\t\treturn false;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tglobal.setVariable(\"_comp\",null);\n\t\t\t}\n\t\t\tcatch(UtilEvalError err)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,err);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "TRY", "CATCH", "RETURN", "VAR_DECL", "RETURN", "BINARY_OP", "CATCH", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [3, 10], [5, 11], [6, 12], [7, 13], [1, 14], [2, 15], [9, 16], [10, 17], [5, 18], [12, 19], [6, 20], [6, 21], [13, 22], [14, 23], [8, 24], [11, 25], [18, 26], [18, 27], [20, 28], [22, 29], [22, 30], [29, 31], [29, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 3], [11, 5], [12, 6], [13, 7], [14, 1], [15, 2], [16, 9], [17, 10], [18, 5], [19, 12], [20, 6], [21, 6], [22, 13], [23, 14], [24, 8], [25, 11], [26, 18], [27, 18], [28, 20], [29, 22], [30, 22], [31, 29], [32, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "noRepeat", "code": "\tpublic boolean noRepeat()\n\t{\n\t\treturn noRepeat;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "noRecord", "code": "\tpublic boolean noRecord()\n\t{\n\t\treturn noRecord;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "noRememberLast", "code": "\tpublic boolean noRememberLast()\n\t{\n\t\treturn noRememberLast;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCode", "code": "\tpublic String getCode()\n\t{\n\t\treturn code.getSource().trim();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BeanShellAction", "code": "\tpublic BeanShellAction(String name, String code, String isSelected,\n\t\tboolean noRepeat, boolean noRecord, boolean noRememberLast)\n\t{\n\t\tsuper(name);\n\n\t\t/* Some characters that we like to use in action names\n\t\t * ('.', '-') are not allowed in BeanShell identifiers. */\n\t\tString sanitizedName = name.replace('.','_').replace('-','_');\n\t\tthis.code = new CachedBshMethod(\"action_\" + sanitizedName, code);\n\t\tif (isSelected != null)\n\t\t{\n\t\t\tthis.isSelected = new CachedBshMethod(\"selected_\" + sanitizedName, isSelected);\n\t\t}\n\t\tthis.noRepeat = noRepeat;\n\t\tthis.noRecord = noRecord;\n\t\tthis.noRememberLast = noRememberLast;\n\n\t\tjEdit.setTemporaryProperty(name + \".toggle\",\n\t\t\tisSelected != null ? \"true\" : \"false\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [0, 14], [9, 15], [9, 16], [13, 17], [14, 18], [2, 19], [15, 20], [15, 21], [15, 22], [16, 23], [1, 24], [18, 25], [19, 26], [19, 27], [19, 28], [22, 29], [24, 30], [25, 31], [28, 32], [28, 33], [30, 34], [34, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 0], [15, 9], [16, 9], [17, 13], [18, 14], [19, 2], [20, 15], [21, 15], [22, 15], [23, 16], [24, 1], [25, 18], [26, 19], [27, 19], [28, 19], [29, 22], [30, 24], [31, 25], [32, 28], [33, 28], [34, 30], [35, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}], "label": 0}
{"sample_id": "jedit-4.0-3922", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/textarea/TextAreaExtension.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.TextAreaExtension", "code": "public abstract class TextAreaExtension\n{\n\t//{{{ paintValidLine() method\n\t/**\n\t * Called by the text area when the extension is to paint a\n\t * screen line which has an associated physical line number in\n\t * the buffer. Note that since one physical line may consist of\n\t * several screen lines due to soft wrap, the start and end\n\t * offsets of the screen line are passed in as well.\n\t *\n\t * @param gfx The graphics context\n\t * @param screenLine The screen line number\n\t * @param physicalLine The physical line number\n\t * @param start The offset where the screen line begins, from\n\t * the start of the buffer\n\t * @param end The offset where the screen line ends, from the\n\t * start of the buffer\n\t * @param y The y co-ordinate of the top of the line's\n\t * bounding box\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic void paintValidLine(Graphics2D gfx, int screenLine,\n\t\tint physicalLine, int start, int end, int y) {} //}}}\n\n\t//{{{ paintInvalidLine() method\n\t/**\n\t * Called by the text area when the extension is to paint a\n\t * screen line which is not part of the buffer. This can happen\n\t * if the buffer is shorter than the height of the text area,\n\t * for example.\n\t *\n\t * @param gfx The graphics context\n\t * @param screenLine The screen line number\n\t * @param y The y co-ordinate of the top of the line's\n\t * bounding box\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic void paintInvalidLine(Graphics2D gfx, int screenLine,\n\t\tint y) {} //}}}\n\n\t//{{{ getToolTipText() method\n\t/**\n\t * Called by the text area when the mouse hovers over the\n\t * location specified in the mouse event.\n\t *\n\t * @param x The x co-ordinate\n\t * @param y The y co-ordinate\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic String getToolTipText(int x, int y)\n\t{\n\t\treturn null;", "functions": [{"function_name": "paintValidLine", "code": "\tpublic void paintValidLine(Graphics2D gfx, int screenLine,\n\t\tint physicalLine, int start, int end, int y) {} //}}}", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "paintInvalidLine", "code": "\tpublic void paintInvalidLine(Graphics2D gfx, int screenLine,\n\t\tint y) {} //}}}", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getToolTipText", "code": "\tpublic String getToolTipText(int x, int y)\n\t{\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.1-4062", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/ColorWellButton.java", "language": "java", "name": "org.gjt.sp.jedit.gui.ColorWellButton", "code": "public class ColorWellButton extends JButton\n{\n\t//{{{ ColorWellButton constructor\n\tpublic ColorWellButton(Color color)\n\t{\n\t\tsetIcon(new ColorWell(color));\n\t\tsetMargin(new Insets(2,2,2,2));\n\t\taddActionListener(new ActionHandler());\n\n\t\t// according to krisk this looks better on OS X...\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tputClientProperty(\"JButton.buttonType\",\"toolbar\");\n\t} //}}}\n\n\t//{{{ getSelectedColor() method\n\tpublic Color getSelectedColor()\n\t{\n\t\treturn ((ColorWell)getIcon()).color;\n\t} //}}}\n\n\t//{{{ setSelectedColor() method\n\tpublic void setSelectedColor(Color color)\n\t{\n\t\t((ColorWell)getIcon()).color = color;\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ ColorWell class\n\tstatic class ColorWell implements Icon\n\t{\n\t\tColor color;\n\n\t\tColorWell(Color color)\n\t\t{\n\t\t\tthis.color = color;\n\t\t}\n\n\t\tpublic int getIconWidth()\n\t\t{\n\t\t\treturn 35;\n\t\t}\n\n\t\tpublic int getIconHeight()\n\t\t{\n\t\t\treturn 10;\n\t\t}\n\n\t\tpublic void paintIcon(Component c, Graphics g, int x, int y)\n\t\t{\n\t\t\tif(color == null)\n\t\t\t\treturn;\n\n\t\t\tg.setColor(color);\n\t\t\tg.fillRect(x,y,getIconWidth(),getIconHeight());\n\t\t\tg.setColor(color.darker());\n\t\t\tg.drawRect(x,y,getIconWidth()-1,getIconHeight()-1);\n\t\t}\n\t} //}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tJDialog parent = GUIUtilities.getParentDialog(ColorWellButton.this);\n\t\t\tJDialog dialog;\n\t\t\tif (parent != null)\n\t\t\t{\n\t\t\t\tdialog = new ColorPickerDialog(parent,\n\t\t\t\t\tjEdit.getProperty(\"colorChooser.title\"),\n\t\t\t\t\ttrue);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdialog = new ColorPickerDialog(\n\t\t\t\t\tJOptionPane.getFrameForComponent(\n\t\t\t\t\tColorWellButton.this),\n\t\t\t\t\tjEdit.getProperty(\"colorChooser.title\"),\n\t\t\t\t\ttrue);\n\t\t\t}\n\t\t\tdialog.pack();\n\t\t\tdialog.show();\n\t\t}\n\t} //}}}\n\n\t//{{{ ColorPickerDialog class\n\t/**\n\t * Replacement for the color picker dialog provided with Swing. This version\n\t * supports dialog as well as frame parents.\n\t * @since jEdit 4.1pre7\n\t */\n\tprivate class ColorPickerDialog extends EnhancedDialog implements ActionListener\n\t{\n\t\tpublic ColorPickerDialog(Frame parent, String title, boolean modal)\n\t\t{\n\t\t\tsuper(parent,title,modal);\n\n\t\t\tinit();\n\t\t}\n\n\t\tpublic ColorPickerDialog(Dialog parent, String title, boolean modal)\n\t\t{\n\t\t\tsuper(parent,title,modal);\n\n\t\t\tgetContentPane().setLayout(new BorderLayout());\n\n\t\t\tinit();\n\t\t}\n\n\t\tpublic void ok()\n\t\t{\n\t\t\tColor c = chooser.getColor();\n\t\t\tif (c != null)\n\t\t\t\tsetSelectedColor(c);\n\t\t\tsetVisible(false);\n\t\t}\n\n\t\tpublic void cancel()\n\t\t{\n\t\t\tsetVisible(false);\n\t\t}\n\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif (evt.getSource() == ok)\n\t\t\t\tok();\n\t\t\telse\n\t\t\t\tcancel();\n\t\t}\n\n\t\t//{{{ Private members\n\t\tprivate JColorChooser chooser;\n\t\tprivate JButton ok;\n\t\tprivate JButton cancel;\n\n\t\tprivate void init()\n\t\t{\n\t\t\tColor c = getSelectedColor();\n\t\t\tif(c == null)\n\t\t\t\tchooser = new JColorChooser();\n\t\t\telse\n\t\t\t\tchooser = new JColorChooser(c);\n\n\t\t\tgetContentPane().add(BorderLayout.CENTER, chooser);\n\n\t\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\t\t\tbuttons.add(Box.createGlue());\n\n\t\t\tok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\t\tok.addActionListener(this);\n\t\t\tbuttons.add(ok);\n\t\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\t\tgetRootPane().setDefaultButton(ok);\n\t\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\t\tcancel.addActionListener(this);\n\t\t\tbuttons.add(cancel);\n\t\t\tbuttons.add(Box.createGlue());\n\n\t\t\tgetContentPane().add(BorderLayout.SOUTH, buttons);\n\t\t\tpack();\n\t\t\tsetLocationRelativeTo(getParent());", "functions": [{"function_name": "getSelectedColor", "code": "\tpublic Color getSelectedColor()\n\t{\n\t\treturn ((ColorWell)getIcon()).color;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSelectedColor", "code": "\tpublic void setSelectedColor(Color color)\n\t{\n\t\t((ColorWell)getIcon()).color = color;\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ColorWellButton", "code": "\tpublic ColorWellButton(Color color)\n\t{\n\t\tsetIcon(new ColorWell(color));\n\t\tsetMargin(new Insets(2,2,2,2));\n\t\taddActionListener(new ActionHandler());\n\n\t\t// according to krisk this looks better on OS X...\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tputClientProperty(\"JButton.buttonType\",\"toolbar\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [1, 7], [4, 8], [5, 9], [6, 10], [7, 11], [7, 12], [9, 13], [9, 14], [9, 15], [9, 16], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 1], [8, 4], [9, 5], [10, 6], [11, 7], [12, 7], [13, 9], [14, 9], [15, 9], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "camel-1.4-2428", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/seda/ListPollingConsumer.java", "language": "java", "name": "org.apache.camel.component.seda.ListPollingConsumer", "code": "@Deprecated\npublic class ListPollingConsumer extends PollingConsumerSupport {\n    private final List<Exchange> exchanges;\n\n    public ListPollingConsumer(Endpoint endpoint, List<Exchange> exchanges) {\n        super(endpoint);\n        this.exchanges = exchanges;\n    }\n\n    public Exchange receive() {\n        return receiveNoWait();\n    }\n\n    public Exchange receiveNoWait() {\n        if (exchanges.isEmpty()) {\n            return null;\n        } else {\n            return exchanges.remove(0);\n        }\n    }\n\n    public Exchange receive(long timeout) {\n        return receiveNoWait();\n    }\n\n    protected void doStart() throws Exception {\n    }\n\n    protected void doStop() throws Exception {", "functions": [{"function_name": "receive", "code": "    public Exchange receive() {\n        return receiveNoWait();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "receiveNoWait", "code": "    public Exchange receiveNoWait() {\n        if (exchanges.isEmpty()) {\n            return null;\n        } else {\n            return exchanges.remove(0);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "receive", "code": "    public Exchange receive(long timeout) {\n        return receiveNoWait();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ListPollingConsumer", "code": "    public ListPollingConsumer(Endpoint endpoint, List<Exchange> exchanges) {\n        super(endpoint);\n        this.exchanges = exchanges;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.7-8586", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/IntExpr.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.IntExpr", "code": "final class IntExpr extends Expression {\n    private final int _value;\n\n    public IntExpr(int value) {\n        _value = value;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn _type = Type.Int;\n    }\n\n    public String toString() {\n\treturn \"int-expr(\" + _value + ')';\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn _type = Type.Int;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"int-expr(\" + _value + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "IntExpr", "code": "    public IntExpr(int value) {\n        _value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-2841", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/seda/SedaConsumer.java", "language": "java", "name": "org.apache.camel.component.seda.SedaConsumer", "code": "public class SedaConsumer extends ServiceSupport implements Consumer, Runnable {\n    private static final transient Log LOG = LogFactory.getLog(SedaConsumer.class);\n\n    private SedaEndpoint endpoint;\n    private AsyncProcessor processor;\n    private Thread thread;\n\n    public SedaConsumer(SedaEndpoint endpoint, Processor processor) {\n        this.endpoint = endpoint;\n        this.processor = AsyncProcessorTypeConverter.convert(processor);\n    }\n\n    @Override\n    public String toString() {\n        return \"SedaConsumer: \" + endpoint.getEndpointUri();\n    }\n\n    public void run() {\n        BlockingQueue<Exchange> queue = endpoint.getQueue();\n        while (queue != null && isRunAllowed()) {\n            final Exchange exchange;\n            try {\n                exchange = queue.poll(1000, TimeUnit.MILLISECONDS);\n            } catch (InterruptedException e) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Interupted: \" + e, e);\n                }\n                continue;\n            }\n            if (exchange != null) {\n                if (isRunAllowed()) {\n                    try {\n                        processor.process(exchange, new AsyncCallback() {\n                            public void done(boolean sync) {\n                            }\n                        });\n                    } catch (Exception e) {\n                        LOG.error(\"Seda queue caught: \" + e, e);\n                    }\n                } else {\n                    LOG.warn(\"This consumer is stopped during polling an exchange, so putting it back on the seda queue: \" + exchange);\n                    try {\n                        queue.put(exchange);\n                    } catch (InterruptedException e) {\n                        if (LOG.isDebugEnabled()) {\n                            LOG.debug(\"Interupted: \" + e, e);\n                        }\n                    }\n                }\n            }\n        }\n    }\n\n    protected void doStart() throws Exception {\n        thread = new Thread(this, getThreadName(endpoint.getEndpointUri()));\n        thread.setDaemon(true);\n        thread.start();\n    }\n\n    protected void doStop() throws Exception {\n        thread.join();\n        thread = null;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"SedaConsumer: \" + endpoint.getEndpointUri();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "run", "code": "    public void run() {\n        BlockingQueue<Exchange> queue = endpoint.getQueue();\n        while (queue != null && isRunAllowed()) {\n            final Exchange exchange;\n            try {\n                exchange = queue.poll(1000, TimeUnit.MILLISECONDS);\n            } catch (InterruptedException e) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Interupted: \" + e, e);\n                }\n                continue;\n            }\n            if (exchange != null) {\n                if (isRunAllowed()) {\n                    try {\n                        processor.process(exchange, new AsyncCallback() {\n                            public void done(boolean sync) {\n                            }\n                        });\n                    } catch (Exception e) {\n                        LOG.error(\"Seda queue caught: \" + e, e);\n                    }\n                } else {\n                    LOG.warn(\"This consumer is stopped during polling an exchange, so putting it back on the seda queue: \" + exchange);\n                    try {\n                        queue.put(exchange);\n                    } catch (InterruptedException e) {\n                        if (LOG.isDebugEnabled()) {\n                            LOG.debug(\"Interupted: \" + e, e);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "ASSIGN", "CALL", "CALL", "CALL", "TRY", "TRY", "LITERAL_ANCHOR", "CATCH", "CALL", "CATCH", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "FUNC_DECL", "CALL", "LITERAL_ANCHOR", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [3, 8], [2, 9], [4, 10], [5, 11], [8, 12], [4, 13], [10, 14], [11, 15], [11, 16], [5, 17], [13, 18], [16, 19], [17, 20], [13, 21], [13, 22], [20, 23], [21, 24], [13, 25], [22, 26], [16, 27], [24, 28], [21, 29], [25, 30], [22, 31], [27, 32], [28, 33], [30, 34], [26, 35], [31, 36], [32, 37], [35, 38], [36, 39], [28, 40], [38, 41], [39, 42], [40, 43], [43, 44], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 3], [9, 2], [10, 4], [11, 5], [12, 8], [13, 4], [14, 10], [15, 11], [16, 11], [17, 5], [18, 13], [19, 16], [20, 17], [21, 13], [22, 13], [23, 20], [24, 21], [25, 13], [26, 22], [27, 16], [28, 24], [29, 21], [30, 25], [31, 22], [32, 27], [33, 28], [34, 30], [35, 26], [36, 31], [37, 32], [38, 35], [39, 36], [40, 28], [41, 38], [42, 39], [43, 40], [44, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        thread = new Thread(this, getThreadName(endpoint.getEndpointUri()));\n        thread.setDaemon(true);\n        thread.start();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        thread.join();\n        thread = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SedaConsumer", "code": "    public SedaConsumer(SedaEndpoint endpoint, Processor processor) {\n        this.endpoint = endpoint;\n        this.processor = AsyncProcessorTypeConverter.convert(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "xalan-2.4-6677", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/lib/sql/SQLDocument.java", "language": "java", "name": "org.apache.xalan.lib.sql.SQLDocument", "code": "public class SQLDocument extends DTMDocument\n{\n\n  /**\n   */\n  private boolean DEBUG = false;\n\n  /**\n   */\n\n\n  /**\n   */\n  private static final String S_SQL = \"sql\";\n\n  /**\n   */\n  private static final String S_ROW_SET = \"row-set\";\n\n  /**\n   */\n  private static final String S_METADATA = \"metadata\";\n\n  /**\n   */\n  private static final String S_COLUMN_HEADER = \"column-header\";\n\n  /**\n   */\n  private static final String S_ROW = \"row\";\n\n  /**\n   */\n  private static final String S_COL = \"col\";\n\n  /**\n   */\n  private static final String S_CATALOGUE_NAME = \"catalogue-name\";\n  /**\n   */\n  private static final String S_DISPLAY_SIZE = \"column-display-size\";\n  /**\n   */\n  private static final String S_COLUMN_LABEL = \"column-label\";\n  /**\n   */\n  private static final String S_COLUMN_NAME = \"column-name\";\n  /**\n   */\n  private static final String S_COLUMN_TYPE = \"column-type\";\n  /**\n   */\n  private static final String S_COLUMN_TYPENAME = \"column-typename\";\n  /**\n   */\n  private static final String S_PRECISION = \"precision\";\n  /**\n   */\n  private static final String S_SCALE = \"scale\";\n  /**\n   */\n  private static final String S_SCHEMA_NAME = \"schema-name\";\n  /**\n   */\n  private static final String S_TABLE_NAME = \"table-name\";\n  /**\n   */\n  private static final String S_CASESENSITIVE = \"case-sensitive\";\n  /**\n   */\n  private static final String S_DEFINITLEYWRITABLE = \"definitley-writable\";\n  /**\n   */\n  private static final String S_ISNULLABLE = \"nullable\";\n  /**\n   */\n  private static final String S_ISSIGNED = \"signed\";\n  /**\n   */\n  private static final String S_ISWRITEABLE = \"writable\";\n  /**\n   */\n  private static final String S_ISSEARCHABLE = \"searchable\";\n\n  /**\n   */\n  private int m_SQL_TypeID = 0;\n  /**\n   */\n  private int m_MetaData_TypeID = 0;\n  /**\n   */\n  private int m_ColumnHeader_TypeID = 0;\n  /**\n   */\n  private int m_RowSet_TypeID = 0;\n  /**\n   */\n  private int m_Row_TypeID = 0;\n  /**\n   */\n  private int m_Col_TypeID = 0;\n\n  /**\n   */\n  private int m_ColAttrib_CATALOGUE_NAME_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_DISPLAY_SIZE_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_COLUMN_LABEL_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_COLUMN_NAME_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_COLUMN_TYPE_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_COLUMN_TYPENAME_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_PRECISION_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_SCALE_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_SCHEMA_NAME_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_TABLE_NAME_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_CASESENSITIVE_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_DEFINITLEYWRITEABLE_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_ISNULLABLE_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_ISSIGNED_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_ISWRITEABLE_TypeID = 0;\n  /**\n   */\n  private int m_ColAttrib_ISSEARCHABLE_TypeID = 0;\n\n  /**\n   * The DBMS Connection used to produce this SQL Document.\n   * Will be used to clear free up the database resources on\n   * close.\n   */\n  private Connection m_Connection = null;\n\n  /**\n   * The Statement used to extract the data from the Database connection.\n   * We really don't need the connection, but it is NOT defined from\n   * JDBC Driver to driver what happens to the ResultSet if the statment\n   * is closed prior to reading all the data needed. So as long as we are\n   * using the ResultSet, we will track the Statement used to produce it.\n   */\n  private Statement m_Statement = null;\n\n  /**\n   * The conduit to our data that will be used to fill the document.\n   */\n  private ResultSet m_ResultSet = null;\n\n  /**\n   * The Connection Pool that originally produced the connection.\n   */\n  private ConnectionPool m_ConnectionPool = null;\n\n\n  /**\n   * As the column header array is built, keep the node index\n   * for each Column.\n   * The primary use of this is to locate the first attribute for\n   * each column in each row as we add records.\n   */\n  private int[] m_ColHeadersIdx;\n\n  /**\n   * An indicator on how many columns are in this query\n   */\n  private int m_ColCount;\n\n  /**\n   * The Index of the MetaData Node. Currently the MetaData Node contains the\n   *\n   */\n  private int m_MetaDataIdx = DTM.NULL;\n\n  /**\n   * The index of the Row Set node. This is the sibling directly after\n   * the last Column Header.\n   */\n  private int m_RowSetIdx = DTM.NULL;\n\n  /**\n   */\n  private int m_SQLIdx = DTM.NULL;\n\n  /**\n   * Demark the first row element where we started adding rows into the\n   * Document.\n   */\n  private int m_FirstRowIdx = DTM.NULL;\n\n  /**\n   * Keep track of the Last row inserted into the DTM from the ResultSet.\n   * This will be used as the index of the parent Row Element when adding\n   * a row.\n   */\n  private int m_LastRowIdx = DTM.NULL;\n\n  /**\n   * Streaming Mode Control, In Streaming mode we reduce the memory\n   * footprint since we only use a single row instance.\n   */\n  private boolean m_StreamingMode = true;\n\n  /**\n   * @param mgr\n   * @param ident\n   * @param pool\n   * @param con\n   * @param stmt\n   * @param data\n   * @param streamingMode\n   * @throws SQLException\n   */\n  public SQLDocument( DTMManager mgr, int ident, ConnectionPool pool, Connection con, Statement stmt, ResultSet data, boolean streamingMode )throws SQLException\n  {\n    super(mgr, ident);\n\n    m_Connection = con;\n    m_Statement  = stmt;\n    m_ResultSet  = data;\n    m_ConnectionPool = pool;\n    m_StreamingMode = streamingMode;\n\n    createExpandedNameTable();\n    extractSQLMetaData(m_ResultSet.getMetaData());\n\n    addRowToDTMFromResultSet();\n\n  }\n\n\n  /**\n   * Extract the Meta Data and build the Column Attribute List.\n   * @param meta\n   * @return\n   */\n  private void extractSQLMetaData( ResultSetMetaData meta )\n  {\n\n    m_DocumentIdx = addElement(0, m_Document_TypeID, DTM.NULL, DTM.NULL);\n\n    m_SQLIdx = addElement(1, m_SQL_TypeID,  m_DocumentIdx, DTM.NULL);\n\n    m_MetaDataIdx = addElement(1, m_MetaData_TypeID,  m_SQLIdx, DTM.NULL);\n\n    try\n    {\n      m_ColCount = meta.getColumnCount();\n      m_ColHeadersIdx = new int[m_ColCount];\n    }\n    catch(Exception e)\n    {\n      error(\"ERROR Extracting Metadata\");\n    }\n\n    int lastColHeaderIdx = DTM.NULL;\n\n    int i = 1;\n    for (i=1; i<= m_ColCount; i++)\n    {\n      m_ColHeadersIdx[i-1] =\n        addElement(2,m_ColumnHeader_TypeID, m_MetaDataIdx, lastColHeaderIdx);\n\n      lastColHeaderIdx = m_ColHeadersIdx[i-1];\n\n      try\n      {\n        addAttributeToNode(\n          meta.getColumnName(i),\n          m_ColAttrib_COLUMN_NAME_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_COLUMN_NAME_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.getColumnLabel(i),\n          m_ColAttrib_COLUMN_LABEL_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_COLUMN_LABEL_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.getCatalogName(i),\n          m_ColAttrib_CATALOGUE_NAME_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_CATALOGUE_NAME_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          new Integer(meta.getColumnDisplaySize(i)),\n          m_ColAttrib_DISPLAY_SIZE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_DISPLAY_SIZE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          new Integer(meta.getColumnType(i)),\n          m_ColAttrib_COLUMN_TYPE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_COLUMN_TYPE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.getColumnTypeName(i),\n          m_ColAttrib_COLUMN_TYPENAME_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_COLUMN_TYPENAME_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          new Integer(meta.getPrecision(i)),\n          m_ColAttrib_PRECISION_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_PRECISION_TypeID, lastColHeaderIdx);\n      }\n      try\n      {\n        addAttributeToNode(\n          new Integer(meta.getScale(i)),\n          m_ColAttrib_SCALE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_SCALE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.getSchemaName(i),\n          m_ColAttrib_SCHEMA_NAME_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_SCHEMA_NAME_TypeID, lastColHeaderIdx);\n      }\n      try\n      {\n        addAttributeToNode(\n          meta.getTableName(i),\n          m_ColAttrib_TABLE_NAME_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_TABLE_NAME_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isCaseSensitive(i) ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_CASESENSITIVE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_CASESENSITIVE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isDefinitelyWritable(i) ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_DEFINITLEYWRITEABLE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_DEFINITLEYWRITEABLE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isNullable(i) != 0 ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_ISNULLABLE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_ISNULLABLE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isSigned(i) ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_ISSIGNED_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_ISSIGNED_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isWritable(i) == true ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_ISWRITEABLE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_ISWRITEABLE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isSearchable(i) == true ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_ISSEARCHABLE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_ISSEARCHABLE_TypeID, lastColHeaderIdx);\n      }\n\n    }\n\n  }\n\n  /**\n   * Populate the Expanded Name Table with the Node that we will use.\n   * Keep a reference of each of the types for access speed.\n   * @return\n   */\n  protected void createExpandedNameTable( )\n  {\n    super.createExpandedNameTable();\n\n    m_SQL_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL, DTM.ELEMENT_NODE);\n\n    m_MetaData_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_METADATA, DTM.ELEMENT_NODE);\n\n    m_ColumnHeader_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COLUMN_HEADER, DTM.ELEMENT_NODE);\n    m_RowSet_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ROW_SET, DTM.ELEMENT_NODE);\n    m_Row_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ROW, DTM.ELEMENT_NODE);\n    m_Col_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COL, DTM.ELEMENT_NODE);\n\n\n    m_ColAttrib_CATALOGUE_NAME_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CATALOGUE_NAME, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_DISPLAY_SIZE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_DISPLAY_SIZE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_COLUMN_LABEL_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COLUMN_LABEL, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_COLUMN_NAME_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COLUMN_NAME, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_COLUMN_TYPE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COLUMN_TYPE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_COLUMN_TYPENAME_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COLUMN_TYPENAME, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_PRECISION_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_PRECISION, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_SCALE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SCALE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_SCHEMA_NAME_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SCHEMA_NAME, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_TABLE_NAME_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_TABLE_NAME, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_CASESENSITIVE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CASESENSITIVE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_DEFINITLEYWRITEABLE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_DEFINITLEYWRITABLE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_ISNULLABLE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ISNULLABLE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_ISSIGNED_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ISSIGNED, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_ISWRITEABLE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ISWRITEABLE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_ISSEARCHABLE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ISSEARCHABLE, DTM.ATTRIBUTE_NODE);\n  }\n\n\n  /**\n   * Pull a record from the result set and map it to a DTM based ROW\n   * If we are in Streaming mode, then only create a single row and\n   * keep copying the data into the same row. This will keep the memory\n   * footprint constint independant of the RecordSet Size. If we are not\n   * in Streaming mode then create ROWS for the whole tree.\n   * @return\n   */\n  private boolean addRowToDTMFromResultSet( )\n  {\n    try\n    {\n\n\n      if (m_RowSetIdx == DTM.NULL)\n      {\n        m_RowSetIdx = addElement(1, m_RowSet_TypeID,  m_SQLIdx, m_MetaDataIdx);\n      }\n\n      if ( ! m_ResultSet.next())\n      {\n\n        if (m_StreamingMode)\n        {\n          m_nextsib.setElementAt(DTM.NULL, m_LastRowIdx);\n        }\n\n        return false;\n      }\n\n      if (m_FirstRowIdx == DTM.NULL)\n      {\n        m_FirstRowIdx =\n          addElement(2, m_Row_TypeID, m_RowSetIdx, DTM.NULL);\n        m_LastRowIdx = m_FirstRowIdx;\n\n        if (m_StreamingMode)\n        {\n          m_nextsib.setElementAt(m_LastRowIdx, m_LastRowIdx);\n        }\n\n      }\n      else\n      {\n        if (! m_StreamingMode)\n        {\n          m_LastRowIdx = addElement(3, m_Row_TypeID, m_RowSetIdx, m_LastRowIdx);\n        }\n      }\n\n      int colID = _firstch(m_LastRowIdx);\n\n      int pcolID = DTM.NULL;\n\n      for (int i=1; i<= m_ColCount; i++)\n      {\n        Object o = m_ResultSet.getObject(i);\n\n        if (colID == DTM.NULL)\n        {\n          pcolID = addElementWithData(o,3,m_Col_TypeID, m_LastRowIdx, pcolID);\n          cloneAttributeFromNode(pcolID, m_ColHeadersIdx[i-1]);\n        }\n        else\n        {\n          int dataIdent = _firstch(colID);\n          if (dataIdent == DTM.NULL)\n          {\n            error(\"Streaming Mode, Data Error\");\n          }\n          else\n          {\n            m_ObjectArray.setAt(dataIdent, o);\n          }\n\n        if (colID != DTM.NULL)\n        {\n          colID = _nextsib(colID);\n        }\n\t\t}\n\t  }\n\t}\n    catch(Exception e)\n    {\n      if (DEBUG)\n      {\n        System.out.println(\n          \"SQL Error Fetching next row [\" + e.getLocalizedMessage() + \"]\");\n      }\n\n      error(\"SQL Error Fetching next row [\" + e.getLocalizedMessage() + \"]\");\n    }\n\n    return true;\n  }\n\n\n  /**\n   * Clean up our ties to the database but this does not necessarly\n   * clean up the document.\n   * @return\n   */\n  public void close( )\n  {\n    if (DEBUG) System.out.println(\"close()\");\n\n    try { if (null != m_ResultSet) m_ResultSet.close(); }\n    catch(Exception e) { }\n    try { if (null != m_Statement) m_Statement.close(); }\n    catch(Exception e) { }\n    try {\n      if (null != m_Connection)\n        m_ConnectionPool.releaseConnection(m_Connection);\n    } catch(Exception e) { }\n  }\n\n  /**\n   * When an error occurs, the XConnection will call this method\n   * do that we can deal with the Connection properly\n   * @return\n   */\n  public void closeOnError( )\n  {\n    if (DEBUG) System.out.println(\"close()\");\n\n    try  { if (null != m_ResultSet) m_ResultSet.close();   }\n    catch(Exception e) { }\n    try  { if (null != m_Statement) m_Statement.close();\n    } catch(Exception e) { }\n    try {\n      if (null != m_Connection)\n        m_ConnectionPool.releaseConnectionOnError(m_Connection);\n    } catch(Exception e) { }\n  }\n\n\n\n  /**\n   * @return\n   */\n  protected boolean nextNode( )\n  {\n    if (DEBUG) System.out.println(\"nextNode()\");\n    try\n    {\n      return false;\n    }\n    catch(Exception e)\n    {\n      return false;\n    }\n  }\n\n  /**\n   * @param identity\n   * @return\n   */\n  protected int _nextsib( int identity )\n  {\n\n    int id = _exptype(identity);\n    if (\n      ( id == m_Row_TypeID) &&\n      (identity >= m_LastRowIdx))\n    {\n      if (DEBUG) System.out.println(\"reading from the ResultSet\");\n      addRowToDTMFromResultSet();\n    }\n\n    return super._nextsib(identity);\n  }\n\n  public void documentRegistration()\n  {\n    if (DEBUG) System.out.println(\"Document Registration\");\n  }\n\n  public void documentRelease()\n  {\n    if (DEBUG) System.out.println(\"Document Release\");", "functions": [{"function_name": "extractSQLMetaData", "code": "  private void extractSQLMetaData( ResultSetMetaData meta )\n  {\n\n    m_DocumentIdx = addElement(0, m_Document_TypeID, DTM.NULL, DTM.NULL);\n\n    m_SQLIdx = addElement(1, m_SQL_TypeID,  m_DocumentIdx, DTM.NULL);\n\n    m_MetaDataIdx = addElement(1, m_MetaData_TypeID,  m_SQLIdx, DTM.NULL);\n\n    try\n    {\n      m_ColCount = meta.getColumnCount();\n      m_ColHeadersIdx = new int[m_ColCount];\n    }\n    catch(Exception e)\n    {\n      error(\"ERROR Extracting Metadata\");\n    }\n\n    int lastColHeaderIdx = DTM.NULL;\n\n    int i = 1;\n    for (i=1; i<= m_ColCount; i++)\n    {\n      m_ColHeadersIdx[i-1] =\n        addElement(2,m_ColumnHeader_TypeID, m_MetaDataIdx, lastColHeaderIdx);\n\n      lastColHeaderIdx = m_ColHeadersIdx[i-1];\n\n      try\n      {\n        addAttributeToNode(\n          meta.getColumnName(i),\n          m_ColAttrib_COLUMN_NAME_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_COLUMN_NAME_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.getColumnLabel(i),\n          m_ColAttrib_COLUMN_LABEL_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_COLUMN_LABEL_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.getCatalogName(i),\n          m_ColAttrib_CATALOGUE_NAME_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_CATALOGUE_NAME_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          new Integer(meta.getColumnDisplaySize(i)),\n          m_ColAttrib_DISPLAY_SIZE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_DISPLAY_SIZE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          new Integer(meta.getColumnType(i)),\n          m_ColAttrib_COLUMN_TYPE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_COLUMN_TYPE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.getColumnTypeName(i),\n          m_ColAttrib_COLUMN_TYPENAME_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_COLUMN_TYPENAME_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          new Integer(meta.getPrecision(i)),\n          m_ColAttrib_PRECISION_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_PRECISION_TypeID, lastColHeaderIdx);\n      }\n      try\n      {\n        addAttributeToNode(\n          new Integer(meta.getScale(i)),\n          m_ColAttrib_SCALE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_SCALE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.getSchemaName(i),\n          m_ColAttrib_SCHEMA_NAME_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_SCHEMA_NAME_TypeID, lastColHeaderIdx);\n      }\n      try\n      {\n        addAttributeToNode(\n          meta.getTableName(i),\n          m_ColAttrib_TABLE_NAME_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_TABLE_NAME_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isCaseSensitive(i) ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_CASESENSITIVE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_CASESENSITIVE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isDefinitelyWritable(i) ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_DEFINITLEYWRITEABLE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_DEFINITLEYWRITEABLE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isNullable(i) != 0 ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_ISNULLABLE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_ISNULLABLE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isSigned(i) ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_ISSIGNED_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_ISSIGNED_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isWritable(i) == true ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_ISWRITEABLE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_ISWRITEABLE_TypeID, lastColHeaderIdx);\n      }\n\n      try\n      {\n        addAttributeToNode(\n          meta.isSearchable(i) == true ? S_ISTRUE : S_ISFALSE,\n          m_ColAttrib_ISSEARCHABLE_TypeID, lastColHeaderIdx);\n      }\n      catch(Exception e)\n      {\n        addAttributeToNode(\n          S_ATTRIB_NOT_SUPPORTED,\n          m_ColAttrib_ISSEARCHABLE_TypeID, lastColHeaderIdx);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "TRY", "PARAM", "BINARY_OP", "ASSIGN", "CATCH", "ASSIGN", "ASSIGN", "ASSIGN", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [4, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [7, 28], [2, 29], [4, 30], [4, 31], [9, 32], [10, 33], [11, 34], [12, 35], [13, 36], [14, 37], [15, 38], [16, 39], [17, 40], [18, 41], [19, 42], [20, 43], [21, 44], [22, 45], [23, 46], [24, 47], [25, 48], [26, 49], [27, 50], [1, 51], [1, 52], [8, 53], [31, 54], [32, 55], [33, 56], [34, 57], [12, 58], [13, 59], [14, 60], [15, 61], [16, 62], [17, 63], [18, 64], [19, 65], [20, 66], [21, 67], [22, 68], [23, 69], [24, 70], [25, 71], [26, 72], [27, 73], [52, 74], [53, 75], [35, 76], [58, 77], [36, 78], [59, 79], [37, 80], [60, 81], [38, 82], [61, 83], [39, 84], [62, 85], [40, 86], [63, 87], [41, 88], [64, 89], [42, 90], [65, 91], [43, 92], [66, 93], [44, 94], [67, 95], [45, 96], [68, 97], [46, 98], [69, 99], [47, 100], [70, 101], [48, 102], [71, 103], [49, 104], [72, 105], [50, 106], [73, 107], [74, 108], [77, 109], [79, 110], [81, 111], [83, 112], [85, 113], [87, 114], [93, 115], [95, 116], [99, 117], [101, 118], [51, 119], [52, 120], [109, 121], [109, 122], [110, 123], [110, 124], [112, 125], [112, 126], [119, 127], [120, 128], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 4], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 7], [29, 2], [30, 4], [31, 4], [32, 9], [33, 10], [34, 11], [35, 12], [36, 13], [37, 14], [38, 15], [39, 16], [40, 17], [41, 18], [42, 19], [43, 20], [44, 21], [45, 22], [46, 23], [47, 24], [48, 25], [49, 26], [50, 27], [51, 1], [52, 1], [53, 8], [54, 31], [55, 32], [56, 33], [57, 34], [58, 12], [59, 13], [60, 14], [61, 15], [62, 16], [63, 17], [64, 18], [65, 19], [66, 20], [67, 21], [68, 22], [69, 23], [70, 24], [71, 25], [72, 26], [73, 27], [74, 52], [75, 53], [76, 35], [77, 58], [78, 36], [79, 59], [80, 37], [81, 60], [82, 38], [83, 61], [84, 39], [85, 62], [86, 40], [87, 63], [88, 41], [89, 64], [90, 42], [91, 65], [92, 43], [93, 66], [94, 44], [95, 67], [96, 45], [97, 68], [98, 46], [99, 69], [100, 47], [101, 70], [102, 48], [103, 71], [104, 49], [105, 72], [106, 50], [107, 73], [108, 74], [109, 77], [110, 79], [111, 81], [112, 83], [113, 85], [114, 87], [115, 93], [116, 95], [117, 99], [118, 101], [119, 51], [120, 52], [121, 109], [122, 109], [123, 110], [124, 110], [125, 112], [126, 112], [127, 119], [128, 120], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128]]}, {"function_name": "createExpandedNameTable", "code": "  protected void createExpandedNameTable( )\n  {\n    super.createExpandedNameTable();\n\n    m_SQL_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL, DTM.ELEMENT_NODE);\n\n    m_MetaData_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_METADATA, DTM.ELEMENT_NODE);\n\n    m_ColumnHeader_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COLUMN_HEADER, DTM.ELEMENT_NODE);\n    m_RowSet_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ROW_SET, DTM.ELEMENT_NODE);\n    m_Row_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ROW, DTM.ELEMENT_NODE);\n    m_Col_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COL, DTM.ELEMENT_NODE);\n\n\n    m_ColAttrib_CATALOGUE_NAME_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CATALOGUE_NAME, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_DISPLAY_SIZE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_DISPLAY_SIZE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_COLUMN_LABEL_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COLUMN_LABEL, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_COLUMN_NAME_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COLUMN_NAME, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_COLUMN_TYPE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COLUMN_TYPE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_COLUMN_TYPENAME_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_COLUMN_TYPENAME, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_PRECISION_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_PRECISION, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_SCALE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SCALE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_SCHEMA_NAME_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SCHEMA_NAME, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_TABLE_NAME_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_TABLE_NAME, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_CASESENSITIVE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CASESENSITIVE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_DEFINITLEYWRITEABLE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_DEFINITLEYWRITABLE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_ISNULLABLE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ISNULLABLE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_ISSIGNED_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ISSIGNED, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_ISWRITEABLE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ISWRITEABLE, DTM.ATTRIBUTE_NODE);\n    m_ColAttrib_ISSEARCHABLE_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_ISSEARCHABLE, DTM.ATTRIBUTE_NODE);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [1, 23], [2, 24], [3, 25], [4, 26], [5, 27], [6, 28], [7, 29], [8, 30], [9, 31], [10, 32], [11, 33], [12, 34], [13, 35], [14, 36], [15, 37], [16, 38], [17, 39], [18, 40], [19, 41], [20, 42], [21, 43], [22, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 1], [24, 2], [25, 3], [26, 4], [27, 5], [28, 6], [29, 7], [30, 8], [31, 9], [32, 10], [33, 11], [34, 12], [35, 13], [36, 14], [37, 15], [38, 16], [39, 17], [40, 18], [41, 19], [42, 20], [43, 21], [44, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "addRowToDTMFromResultSet", "code": "  private boolean addRowToDTMFromResultSet( )\n  {\n    try\n    {\n\n\n      if (m_RowSetIdx == DTM.NULL)\n      {\n        m_RowSetIdx = addElement(1, m_RowSet_TypeID,  m_SQLIdx, m_MetaDataIdx);\n      }\n\n      if ( ! m_ResultSet.next())\n      {\n\n        if (m_StreamingMode)\n        {\n          m_nextsib.setElementAt(DTM.NULL, m_LastRowIdx);\n        }\n\n        return false;\n      }\n\n      if (m_FirstRowIdx == DTM.NULL)\n      {\n        m_FirstRowIdx =\n          addElement(2, m_Row_TypeID, m_RowSetIdx, DTM.NULL);\n        m_LastRowIdx = m_FirstRowIdx;\n\n        if (m_StreamingMode)\n        {\n          m_nextsib.setElementAt(m_LastRowIdx, m_LastRowIdx);\n        }\n\n      }\n      else\n      {\n        if (! m_StreamingMode)\n        {\n          m_LastRowIdx = addElement(3, m_Row_TypeID, m_RowSetIdx, m_LastRowIdx);\n        }\n      }\n\n      int colID = _firstch(m_LastRowIdx);\n\n      int pcolID = DTM.NULL;\n\n      for (int i=1; i<= m_ColCount; i++)\n      {\n        Object o = m_ResultSet.getObject(i);\n\n        if (colID == DTM.NULL)\n        {\n          pcolID = addElementWithData(o,3,m_Col_TypeID, m_LastRowIdx, pcolID);\n          cloneAttributeFromNode(pcolID, m_ColHeadersIdx[i-1]);\n        }\n        else\n        {\n          int dataIdent = _firstch(colID);\n          if (dataIdent == DTM.NULL)\n          {\n            error(\"Streaming Mode, Data Error\");\n          }\n          else\n          {\n            m_ObjectArray.setAt(dataIdent, o);\n          }\n\n        if (colID != DTM.NULL)\n        {\n          colID = _nextsib(colID);\n        }\n\t\t}\n\t  }\n\t}\n    catch(Exception e)\n    {\n      if (DEBUG)\n      {\n        System.out.println(\n          \"SQL Error Fetching next row [\" + e.getLocalizedMessage() + \"]\");\n      }\n\n      error(\"SQL Error Fetching next row [\" + e.getLocalizedMessage() + \"]\");\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "LITERAL_ANCHOR", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "IF", "IF", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [4, 11], [5, 12], [8, 13], [9, 14], [10, 15], [4, 16], [5, 17], [5, 18], [7, 19], [8, 20], [8, 21], [9, 22], [9, 23], [16, 24], [17, 25], [5, 26], [8, 27], [8, 28], [22, 29], [10, 30], [24, 31], [24, 32], [11, 33], [17, 34], [17, 35], [17, 36], [18, 37], [28, 38], [30, 39], [32, 40], [32, 41], [33, 42], [34, 43], [35, 44], [17, 45], [17, 46], [20, 47], [21, 48], [38, 49], [23, 50], [39, 51], [42, 52], [42, 53], [36, 54], [46, 55], [47, 56], [53, 57], [53, 58], [34, 59], [35, 60], [35, 61], [55, 62], [56, 63], [59, 64], [61, 65], [45, 66], [66, 67], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 4], [12, 5], [13, 8], [14, 9], [15, 10], [16, 4], [17, 5], [18, 5], [19, 7], [20, 8], [21, 8], [22, 9], [23, 9], [24, 16], [25, 17], [26, 5], [27, 8], [28, 8], [29, 22], [30, 10], [31, 24], [32, 24], [33, 11], [34, 17], [35, 17], [36, 17], [37, 18], [38, 28], [39, 30], [40, 32], [41, 32], [42, 33], [43, 34], [44, 35], [45, 17], [46, 17], [47, 20], [48, 21], [49, 38], [50, 23], [51, 39], [52, 42], [53, 42], [54, 36], [55, 46], [56, 47], [57, 53], [58, 53], [59, 34], [60, 35], [61, 35], [62, 55], [63, 56], [64, 59], [65, 61], [66, 45], [67, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "close", "code": "  public void close( )\n  {\n    if (DEBUG) System.out.println(\"close()\");\n\n    try { if (null != m_ResultSet) m_ResultSet.close(); }\n    catch(Exception e) { }\n    try { if (null != m_Statement) m_Statement.close(); }\n    catch(Exception e) { }\n    try {\n      if (null != m_Connection)\n        m_ConnectionPool.releaseConnection(m_Connection);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "TRY", "IF", "CATCH", "IF", "CATCH", "IF", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [6, 11], [8, 12], [10, 13], [4, 14], [6, 15], [11, 16], [8, 17], [12, 18], [10, 19], [13, 20], [14, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 6], [12, 8], [13, 10], [14, 4], [15, 6], [16, 11], [17, 8], [18, 12], [19, 10], [20, 13], [21, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "closeOnError", "code": "  public void closeOnError( )\n  {\n    if (DEBUG) System.out.println(\"close()\");\n\n    try  { if (null != m_ResultSet) m_ResultSet.close();   }\n    catch(Exception e) { }\n    try  { if (null != m_Statement) m_Statement.close();\n    } catch(Exception e) { }\n    try {\n      if (null != m_Connection)\n        m_ConnectionPool.releaseConnectionOnError(m_Connection);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "TRY", "IF", "CATCH", "IF", "CATCH", "IF", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [6, 11], [8, 12], [10, 13], [4, 14], [6, 15], [11, 16], [8, 17], [12, 18], [10, 19], [13, 20], [14, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 6], [12, 8], [13, 10], [14, 4], [15, 6], [16, 11], [17, 8], [18, 12], [19, 10], [20, 13], [21, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "nextNode", "code": "  protected boolean nextNode( )\n  {\n    if (DEBUG) System.out.println(\"nextNode()\");\n    try\n    {\n      return false;\n    }\n    catch(Exception e)\n    {\n      return false;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "CATCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [2, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 2], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "_nextsib", "code": "  protected int _nextsib( int identity )\n  {\n\n    int id = _exptype(identity);\n    if (\n      ( id == m_Row_TypeID) &&\n      (identity >= m_LastRowIdx))\n    {\n      if (DEBUG) System.out.println(\"reading from the ResultSet\");\n      addRowToDTMFromResultSet();\n    }\n\n    return super._nextsib(identity);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [2, 10], [6, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 2], [11, 6], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "documentRegistration", "code": "  public void documentRegistration()\n  {\n    if (DEBUG) System.out.println(\"Document Registration\");", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "documentRelease", "code": "  public void documentRelease()\n  {\n    if (DEBUG) System.out.println(\"Document Release\");", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SQLDocument", "code": "  public SQLDocument( DTMManager mgr, int ident, ConnectionPool pool, Connection con, Statement stmt, ResultSet data, boolean streamingMode )throws SQLException\n  {\n    super(mgr, ident);\n\n    m_Connection = con;\n    m_Statement  = stmt;\n    m_ResultSet  = data;\n    m_ConnectionPool = pool;\n    m_StreamingMode = streamingMode;\n\n    createExpandedNameTable();\n    extractSQLMetaData(m_ResultSet.getMetaData());\n\n    addRowToDTMFromResultSet();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 1}
{"sample_id": "poi-2.5-5880", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/DateWindow1904Record.java", "language": "java", "name": "org.apache.poi.hssf.record.DateWindow1904Record", "code": "public class DateWindow1904Record\n    extends Record\n{\n    public final static short sid = 0x22;\n    private short             field_1_window;\n\n    public DateWindow1904Record()\n    {\n    }\n\n    /**\n     * Constructs a DateWindow1904 record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x22 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public DateWindow1904Record(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a DateWindow1904 record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x22 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public DateWindow1904Record(short id, short size, byte [] data,\n                                int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A 1904 RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_window = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * sets whether or not to use 1904 date windowing (which means you'll be screwed in 2004)\n     * @param window flag - 0/1 (false,true)\n     */\n\n    public void setWindowing(short window){\n        field_1_window = window;\n    }\n\n    /**\n     * gets whether or not to use 1904 date windowing (which means you'll be screwed in 2004)\n     * @return window flag - 0/1 (false,true)\n     */\n\n    public short getWindowing()\n    {\n        return field_1_window;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[1904]\\n\");\n        buffer.append(\"    .is1904          = \")\n            .append(Integer.toHexString(getWindowing())).append(\"\\n\");\n        buffer.append(\"[/1904]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getWindowing());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A 1904 RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_window = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setWindowing", "code": "    public void setWindowing(short window){\n        field_1_window = window;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWindowing", "code": "    public short getWindowing()\n    {\n        return field_1_window;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[1904]\\n\");\n        buffer.append(\"    .is1904          = \")\n            .append(Integer.toHexString(getWindowing())).append(\"\\n\");\n        buffer.append(\"[/1904]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getWindowing());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DateWindow1904Record", "code": "    public DateWindow1904Record()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DateWindow1904Record", "code": "    public DateWindow1904Record(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DateWindow1904Record", "code": "    public DateWindow1904Record(short id, short size, byte [] data,\n                                int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.5-407", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/input/PropertyFileInputHandler.java", "language": "java", "name": "org.apache.tools.ant.input.PropertyFileInputHandler", "code": "public class PropertyFileInputHandler implements InputHandler {\n    private Properties props = null;\n\n    /**\n     * Name of the system property we expect to hold the file name.\n     */\n    public static final String FILE_NAME_KEY = \"ant.input.properties\";\n\n    /**\n     * Empty no-arg constructor.\n     */\n    public PropertyFileInputHandler() {\n    }\n\n    /**\n     * Picks up the input from a property, using the prompt as the\n     * name of the property.\n     *\n     * @exception BuildException if no property of that name can be found.\n     */\n    public void handleInput(InputRequest request) throws BuildException {\n        readProps();\n        \n        Object o = props.get(request.getPrompt());\n        if (o == null) {\n            throw new BuildException(\"Unable to find input for \\'\"\n                                     + request.getPrompt()+\"\\'\");\n        }\n        request.setInput(o.toString());\n        if (!request.isInputValid()) {\n            throw new BuildException(\"Found invalid input \" + o\n                                     + \" for \\'\" + request.getPrompt() + \"\\'\");\n        }\n    }\n\n    /**\n     * Reads the properties file if it hasn't already been read.\n     */\n    private synchronized void readProps() throws BuildException {\n        if (props == null) {\n            String propsFile = System.getProperty(FILE_NAME_KEY);\n            if (propsFile == null) {\n                throw new BuildException(\"System property \"\n                                         + FILE_NAME_KEY\n                                         + \" for PropertyFileInputHandler not\"\n                                         + \" set\");\n            }\n            \n            props = new Properties();\n            \n            try {\n                props.load(new FileInputStream(propsFile));\n            } catch (IOException e) {\n                throw new BuildException(\"Couldn't load \" + propsFile, e);", "functions": [{"function_name": "handleInput", "code": "    public void handleInput(InputRequest request) throws BuildException {\n        readProps();\n        \n        Object o = props.get(request.getPrompt());\n        if (o == null) {\n            throw new BuildException(\"Unable to find input for \\'\"\n                                     + request.getPrompt()+\"\\'\");\n        }\n        request.setInput(o.toString());\n        if (!request.isInputValid()) {\n            throw new BuildException(\"Found invalid input \" + o\n                                     + \" for \\'\" + request.getPrompt() + \"\\'\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [1, 9], [6, 10], [2, 11], [7, 12], [3, 13], [9, 14], [11, 15], [13, 16], [14, 17], [15, 18], [17, 19], [17, 20], [18, 21], [18, 22], [20, 23], [20, 24], [22, 25], [22, 26], [24, 27], [24, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 1], [10, 6], [11, 2], [12, 7], [13, 3], [14, 9], [15, 11], [16, 13], [17, 14], [18, 15], [19, 17], [20, 17], [21, 18], [22, 18], [23, 20], [24, 20], [25, 22], [26, 22], [27, 24], [28, 24], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "readProps", "code": "    private synchronized void readProps() throws BuildException {\n        if (props == null) {\n            String propsFile = System.getProperty(FILE_NAME_KEY);\n            if (propsFile == null) {\n                throw new BuildException(\"System property \"\n                                         + FILE_NAME_KEY\n                                         + \" for PropertyFileInputHandler not\"\n                                         + \" set\");\n            }\n            \n            props = new Properties();\n            \n            try {\n                props.load(new FileInputStream(propsFile));\n            } catch (IOException e) {\n                throw new BuildException(\"Couldn't load \" + propsFile, e);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CATCH", "ASSIGN", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [1, 8], [4, 9], [7, 10], [3, 11], [8, 12], [4, 13], [9, 14], [5, 15], [10, 16], [11, 17], [13, 18], [16, 19], [18, 20], [19, 21], [20, 22], [20, 23], [23, 24], [23, 25], [25, 26], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 1], [9, 4], [10, 7], [11, 3], [12, 8], [13, 4], [14, 9], [15, 5], [16, 10], [17, 11], [18, 13], [19, 16], [20, 18], [21, 19], [22, 20], [23, 20], [24, 23], [25, 23], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "PropertyFileInputHandler", "code": "    public PropertyFileInputHandler() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.3-4811", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/browser/VFSFileChooserDialog.java", "language": "java", "name": "org.gjt.sp.jedit.browser.VFSFileChooserDialog", "code": "public class VFSFileChooserDialog extends EnhancedDialog\n{\n\n\t//{{{ VFSFileChooserDialog constructor\n\tpublic VFSFileChooserDialog(View view, String path,\n\t\tint mode, boolean multipleSelection)\n\t{\n\t\tthis(view,path,mode,multipleSelection,true);\n\t} //}}}\n\n\t//{{{ VFSFileChooserDialog constructor\n\t/**\n\t * Constructs a new VFSFileChooserDialog. If <code>authoshow</code>\n\t * is true, the dialog will be show automatically and the call\n\t * will only return after the user disposes of the dialog.\n\t *\n\t * @since jEdit 4.3pre7\n\t */\n\tpublic VFSFileChooserDialog(View view, String path,\n\t\tint mode, boolean multipleSelection, boolean autoshow)\n\t{\n\t\tsuper(view,getDefaultTitle(),true);\n\t\tsetFocusTraversalPolicy(new LayoutFocusTraversalPolicy());\n\t\t_init(view,path,mode,multipleSelection,autoshow);\n\t} //}}}\n\n\t//{{{ VFSFileChooserDialog constructor\n\t/**\n\t * Constructs a new VFSFileChooserDialog.\n\t * This version can specify a dialog as the parent instead\n\t * of the view.\n\t * @since jEdit 4.3pre10\n\t */\n\tpublic VFSFileChooserDialog(Dialog parent, View view, String path,\n\t\tint mode, boolean multipleSelection, boolean autoshow)\n\t{\n\t\tsuper(parent,getDefaultTitle(),true);\n\t\tsetFocusTraversalPolicy(new LayoutFocusTraversalPolicy());\t\t\n\t\t_init(view,path,mode,multipleSelection,autoshow);\n\t} //}}}\n\n\t/**\n\t * Constructs a new VFSFileChooserDialog.\n\t * This version can specify a Frame as the parent instead\n\t * of the view.\n\t * @since jEdit 4.3pre10\n\t */\n\tpublic VFSFileChooserDialog(Frame parent, View view, String path,\n\t\tint mode, boolean multipleSelection, boolean autoshow)\n\t{\n\t\tsuper(parent, getDefaultTitle(),true);\n\t\tsetFocusTraversalPolicy(new LayoutFocusTraversalPolicy());\t\t\n\t\t_init(view,path,mode,multipleSelection,autoshow);\n\t} //}}}\n\n\n\t//{{{ getBrowser() method\n\t/**\n\t * Returns the VFSBrowser instance used internally.\n\t * @return the VFS browser used in the dialog\n\t * @since jEdit 4.3pre7\n\t */\n\tpublic VFSBrowser getBrowser()\n\t{\n\t\treturn browser;\n\t} //}}}\n\n\t//{{{ dispose() method\n\t@Override\n\tpublic void dispose()\n\t{\n\t\tGUIUtilities.saveGeometry(this,\"vfs.browser.dialog\");\n\t\tVFSManager.getIOThreadPool().removeProgressListener(workThreadHandler);\n\t\tsuper.dispose();\n\t} //}}}\n\n\t//{{{ ok() method\n\t@Override\n\tpublic void ok()\n\t{\n\t\tVFSFile[] files = browser.getSelectedFiles();\n\t\tfilename = filenameField.getText();\n\t\tboolean choosingDir = (browser.getMode() ==\n\t\t\tVFSBrowser.CHOOSE_DIRECTORY_DIALOG);\n\n\t\tif(files.length != 0)\n\t\t{\n\t\t\tif(choosingDir)\n\t\t\t{\n\t\t\t\tisOK = true;\n\t\t\t\tdispose();\n\t\t\t}\n\t\t\telse\n\t\t\t\tbrowser.filesActivated(VFSBrowser.M_OPEN,false);\n\t\t\treturn;\n\t\t}\n\t\telse if(choosingDir && (filename == null || filename.length() == 0))\n\t\t{\n\t\t\tisOK = true;\n\t\t\tdispose();\n\t\t\treturn;\n\t\t}\n\t\telse if(filename == null || filename.length() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tString bufferDir = browser.getView().getBuffer()\n\t\t\t.getDirectory();\n\t\tif(filename.equals(\"-\"))\n\t\t\tfilename = bufferDir;\n\t\telse if(filename.startsWith(\"-/\")\n\t\t\t|| filename.startsWith('-' + File.separator))\n\t\t{\n\t\t\tfilename = MiscUtilities.constructPath(\n\t\t\t\tbufferDir,filename.substring(2));\n\t\t}\n\n\t\tfinal int[] type = { -1 };\n\t\tfilename = MiscUtilities.expandVariables(filename);\n\t\tfinal String path = MiscUtilities.constructPath(\n\t\t\tbrowser.getDirectory(),filename);\n\t\tfinal VFS vfs = VFSManager.getVFSForPath(path);\n\t\tObject session = vfs.createVFSSession(path,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tVFSManager.runInWorkThread(new GetFileTypeRequest(\n\t\t\tvfs,session,path,type));\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tswitch(type[0])\n\t\t\t\t{\n\t\t\t\tcase VFSFile.FILE:\n\t\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tif(vfs instanceof FileVFS)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(doFileExistsWarning(path))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tisOK = true;\n\t\t\t\t\tif(browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t\t\t\t{\n\t\t\t\t\t\tHashtable props = new Hashtable();\n\t\t\t\t\t\tprops.put(JEditBuffer.ENCODING,browser.currentEncoding);\n\t\t\t\t\t\tjEdit.openFile(browser.getView(),\n\t\t\t\t\t\t\tbrowser.getDirectory(),\n\t\t\t\t\t\t\tpath,false,props);\n\t\t\t\t\t}\n\t\t\t\t\tdispose();\n\t\t\t\t\tbreak;\n\t\t\t\tcase VFSFile.DIRECTORY:\n\t\t\t\tcase VFSFile.FILESYSTEM:\n\t\t\t\t\tbrowser.setDirectory(path);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ cancel() method\n\t@Override\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ getSelectedFiles() method\n\tpublic String[] getSelectedFiles()\n\t{\n\t\tif(!isOK)\n\t\t\treturn null;\n\n\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\tif(browser.getSelectedFiles().length > 0)\n\t\t\t{\n\t\t\t\treturn getSelectedFiles(VFSFile.DIRECTORY,\n\t\t\t\t\tVFSFile.FILESYSTEM);\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn new String[] { browser.getDirectory() };\n\t\t}\n\t\telse if(filename != null && filename.length() != 0)\n\t\t{\n\t\t\tString path = browser.getDirectory();\n\t\t\treturn new String[] { MiscUtilities.constructPath(\n\t\t\t\tpath,filename) };\n\t\t}\n\t\telse\n\t\t\treturn getSelectedFiles(VFSFile.FILE,VFSFile.FILE);\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate VFSBrowser browser;\n\tprivate VFSFileNameField filenameField;\n\tprivate String filename;\n\tprivate JButton ok;\n\tprivate JButton cancel;\n\tprivate boolean isOK;\n\tprivate WorkThreadHandler workThreadHandler;\n\t//}}}\n\n\t//{{{ getDefaultTitle() method\n\tprivate static String getDefaultTitle()\n\t{\n\t\treturn jEdit.getProperty(\"vfs.browser.title\");\n\t}// }}}\n\n\t//{{{ _init method\n\tprivate void _init(View view, String path,\n\t\tint mode, boolean multipleSelection, boolean autoshow)\n\t{\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tsetContentPane(content);\n\n\t\tString name;\n\t\tif(mode == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\tname = null;\n\t\telse if(path == null || path.endsWith(File.separator)\n\t\t\t|| path.endsWith(\"/\"))\n\t\t{\n\t\t\tname = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\tname = vfs.getFileName(path);\n\t\t\tpath = vfs.getParentOfPath(path);\n\t\t\tif ((vfs.getCapabilities() & VFS.BROWSE_CAP) == 0)\n\t\t\t{\n\t\t\t\tpath = null;\n\t\t\t}\n\t\t}\n\n\t\tbrowser = new VFSBrowser(view, path, mode, multipleSelection, null);\n\t\t\n\t\tbrowser.addBrowserListener(new BrowserHandler());\n\t\tcontent.add(BorderLayout.CENTER,browser);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,12,12,12));\n\t\t\n\t\tfilenameField = new VFSFileNameField(browser,null);\n\t\tfilenameField.setText(name);\n\t\tfilenameField.selectAll();\n\t\tfilenameField.setName(\"filename\");\n\t\tbrowser.setDefaultFocusComponent(filenameField);\n\t\tBox box = new Box(BoxLayout.Y_AXIS);\n\t\tbox.add(Box.createGlue());\n\t\tbox.add(filenameField);\n\t\tbox.add(Box.createGlue());\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"vfs.browser.dialog.filename\"));\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\n\t\t\t\"vfs.browser.dialog.filename.mnemonic\").charAt(0));\n\t\tlabel.setLabelFor(filenameField);\n\t\tpanel.add(label);\n\t\tpanel.add(Box.createHorizontalStrut(12));\n\n\t\tpanel.add(box);\n\n\t\tpanel.add(Box.createHorizontalStrut(12));\n\n\t\tok = new JButton();\n\t\tok.setName(\"ok\");\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tswitch(mode)\n\t\t{\n\t\tcase VFSBrowser.OPEN_DIALOG:\n\t\tcase VFSBrowser.BROWSER_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.open\"));\n\t\t\tbreak;\n\t\tcase VFSBrowser.CHOOSE_DIRECTORY_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.choose-dir\"));\n\t\t\t// so that it doesn't resize...\n\t\t\tDimension dim = ok.getPreferredSize();\n\t\t\tok.setPreferredSize(dim);\n\t\t\tbreak;\n\t\tcase VFSBrowser.SAVE_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.save\"));\n\t\t\tbreak;\n\t\t}\n\n\t\tok.addActionListener(new ActionHandler());\n\t\tpanel.add(ok);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.setName(\"cancel\");\n\t\tcancel.addActionListener(new ActionHandler());\n\t\tpanel.add(cancel);\n\n\t\tcontent.add(BorderLayout.SOUTH,panel);\n\n\t\tVFSManager.getIOThreadPool().addProgressListener(\n\t\t\tworkThreadHandler = new WorkThreadHandler());\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,\"vfs.browser.dialog\");\n\t\tGUIUtilities.requestFocus(this,filenameField);\n\t\tif (autoshow)\n\t\t\tsetVisible(true);\n\t} //}}}\n\n\t\n\t\n\t//{{{ doFileExistsWarning() method\n\tprivate boolean doFileExistsWarning(String filename)\n\t{\n\t\tif(browser.getMode() == VFSBrowser.SAVE_DIALOG\n\t\t\t&& new File(filename).exists())\n\t\t{\n\t\t\tString[] args = { MiscUtilities.getFileName(filename) };\n\t\t\tint result = GUIUtilities.confirm(browser,\n\t\t\t\t\"fileexists\",args,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ getSelectedFiles() method\n\tprivate String[] getSelectedFiles(int type1, int type2)\n\t{\n\t\tList<String> l = new ArrayList<String>();\n\t\tVFSFile[] selectedFiles = browser.getSelectedFiles();\n\t\tfor(int i = 0; i < selectedFiles.length; i++)\n\t\t{\n\t\t\tVFSFile file = selectedFiles[i];\n\t\t\tif(file.getType() == type1 || file.getType() == type2)\n\t\t\t\tl.add(file.getPath());\n\t\t}\n\t\treturn l.toArray(new String[l.size()]);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ ActionHandler class\n\tprivate class ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == ok)\n\t\t\t\tok();\n\t\t\telse if(evt.getSource() == cancel)\n\t\t\t\tcancel();\n\t\t}\n\t} //}}}\n\n\t//{{{ BrowserHandler class\n\tprivate class BrowserHandler implements BrowserListener\n\t{\n\t\t//{{{ filesSelected() method\n\t\tpublic void filesSelected(VFSBrowser browser, VFSFile[] files)\n\t\t{\n\t\t\tboolean choosingDir = (browser.getMode()\n\t\t\t\t== VFSBrowser.CHOOSE_DIRECTORY_DIALOG);\n\n\t\t\tif(files.length == 0)\n\t\t\t{\n\t\t\t\tif(choosingDir)\n\t\t\t\t{\n\t\t\t\t\tok.setText(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.browser.dialog.choose-dir\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(files.length == 1)\n\t\t\t{\n\t\t\t\tif(choosingDir)\n\t\t\t\t{\n\t\t\t\t\tok.setText(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.browser.dialog.choose-dir\"));\n\t\t\t\t}\n\n\t\t\t\tVFSFile file = files[0];\n\t\t\t\tif(file.getType() == VFSFile.FILE)\n\t\t\t\t{\n\t\t\t\t\tString path = file.getPath();\n\t\t\t\t\tString directory = browser.getDirectory();\n\t\t\t\t\tString parent = MiscUtilities\n\t\t\t\t\t\t.getParentOfPath(path);\n\t\t\t\t\tif(MiscUtilities.pathsEqual(parent,directory))\n\t\t\t\t\t\tpath = file.getName();\n\n\t\t\t\t\tfilenameField.setText(path);\n\t\t\t\t\tfilenameField.selectAll();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(choosingDir)\n\t\t\t\t{\n\t\t\t\t\tok.setText(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.browser.dialog.choose-dir\"));\n\t\t\t\t}\n\n\t\t\t\tfilenameField.setText(null);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ filesActivated() method\n\t\tpublic void filesActivated(VFSBrowser browser, VFSFile[] files)\n\t\t{\n\t\t\tfilenameField.selectAll();\n\n\t\t\tif(files.length == 0)\n\t\t\t{\n\t\t\t\t// user pressed enter when the vfs table or\n\t\t\t\t// file name field has focus, with nothing\n\t\t\t\t// selected.\n\t\t\t\tok();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tif(files[i].getType() == VFSFile.FILE)\n\t\t\t\t{\n\t\t\t\t\tString path = files[i].getPath();\n\t\t\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\t\t\tif(browser.getMode() == VFSBrowser.SAVE_DIALOG\n\t\t\t\t\t\t&& vfs instanceof FileVFS)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(doFileExistsWarning(path))\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tisOK = true;\n\t\t\t\t\tfilenameField.setText(null);\n\t\t\t\t\tif(browser.getMode() != VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t\t{\n\t\t\t\t\t\tdispose();\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ WorkThreadListener class\n\tprivate class WorkThreadHandler implements WorkThreadProgressListener\n\t{\n\t\t//{{{ statusUpdate() method\n\t\tpublic void statusUpdate(final WorkThreadPool threadPool,\n\t\t\tint threadIndex)\n\t\t{\n\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tint requestCount = threadPool.getRequestCount();\n\t\t\t\t\tif(requestCount == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tgetContentPane().setCursor(\n\t\t\t\t\t\t\tCursor.getDefaultCursor());\n\t\t\t\t\t}\n\t\t\t\t\telse if(requestCount >= 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tgetContentPane().setCursor(\n\t\t\t\t\t\t\tCursor.getPredefinedCursor(\n\t\t\t\t\t\t\tCursor.WAIT_CURSOR));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} //}}}\n\n\t\t//{{{ progressUpdate() method\n\t\tpublic void progressUpdate(WorkThreadPool threadPool, int threadIndex)\n\t\t{\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ GetFileTypeRequest class\n\tprivate class GetFileTypeRequest implements Runnable\n\t{\n\t\tVFS    vfs;\n\t\tObject session;\n\t\tString path;\n\t\tint[]  type;\n\n\t\tGetFileTypeRequest(VFS vfs, Object session,\n\t\t\tString path, int[] type)\n\t\t{\n\t\t\tthis.vfs     = vfs;\n\t\t\tthis.session = session;\n\t\t\tthis.path    = path;\n\t\t\tthis.type    = type;\n\t\t}\n\n\t\tpublic void run()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tVFSFile entry = vfs._getFile(\n\t\t\t\t\t\tsession,\n\t\t\t\t\t\tpath,\n\t\t\t\t\t\tbrowser);\n\t\t\t\tif(entry == null)\n\t\t\t\t{\n\t\t\t\t\t// non-existent file\n\t\t\t\t\ttype[0] = VFSFile.FILE;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttype[0] = entry.getType();\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tVFSManager.error(e,path,browser);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tvfs._endVFSSession(\n\t\t\t\t\t\tsession,\n\t\t\t\t\t\tbrowser);\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{\n\t\t\t\t\tVFSManager.error(e,path,browser);", "functions": [{"function_name": "getBrowser", "code": "\tpublic VFSBrowser getBrowser()\n\t{\n\t\treturn browser;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dispose", "code": "\t@Override\n\tpublic void dispose()\n\t{\n\t\tGUIUtilities.saveGeometry(this,\"vfs.browser.dialog\");\n\t\tVFSManager.getIOThreadPool().removeProgressListener(workThreadHandler);\n\t\tsuper.dispose();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ok", "code": "\t@Override\n\tpublic void ok()\n\t{\n\t\tVFSFile[] files = browser.getSelectedFiles();\n\t\tfilename = filenameField.getText();\n\t\tboolean choosingDir = (browser.getMode() ==\n\t\t\tVFSBrowser.CHOOSE_DIRECTORY_DIALOG);\n\n\t\tif(files.length != 0)\n\t\t{\n\t\t\tif(choosingDir)\n\t\t\t{\n\t\t\t\tisOK = true;\n\t\t\t\tdispose();\n\t\t\t}\n\t\t\telse\n\t\t\t\tbrowser.filesActivated(VFSBrowser.M_OPEN,false);\n\t\t\treturn;\n\t\t}\n\t\telse if(choosingDir && (filename == null || filename.length() == 0))\n\t\t{\n\t\t\tisOK = true;\n\t\t\tdispose();\n\t\t\treturn;\n\t\t}\n\t\telse if(filename == null || filename.length() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tString bufferDir = browser.getView().getBuffer()\n\t\t\t.getDirectory();\n\t\tif(filename.equals(\"-\"))\n\t\t\tfilename = bufferDir;\n\t\telse if(filename.startsWith(\"-/\")\n\t\t\t|| filename.startsWith('-' + File.separator))\n\t\t{\n\t\t\tfilename = MiscUtilities.constructPath(\n\t\t\t\tbufferDir,filename.substring(2));\n\t\t}\n\n\t\tfinal int[] type = { -1 };\n\t\tfilename = MiscUtilities.expandVariables(filename);\n\t\tfinal String path = MiscUtilities.constructPath(\n\t\t\tbrowser.getDirectory(),filename);\n\t\tfinal VFS vfs = VFSManager.getVFSForPath(path);\n\t\tObject session = vfs.createVFSSession(path,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tVFSManager.runInWorkThread(new GetFileTypeRequest(\n\t\t\tvfs,session,path,type));\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tswitch(type[0])\n\t\t\t\t{\n\t\t\t\tcase VFSFile.FILE:\n\t\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tif(vfs instanceof FileVFS)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(doFileExistsWarning(path))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tisOK = true;\n\t\t\t\t\tif(browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t\t\t\t{\n\t\t\t\t\t\tHashtable props = new Hashtable();\n\t\t\t\t\t\tprops.put(JEditBuffer.ENCODING,browser.currentEncoding);\n\t\t\t\t\t\tjEdit.openFile(browser.getView(),\n\t\t\t\t\t\t\tbrowser.getDirectory(),\n\t\t\t\t\t\t\tpath,false,props);\n\t\t\t\t\t}\n\t\t\t\t\tdispose();\n\t\t\t\t\tbreak;\n\t\t\t\tcase VFSFile.DIRECTORY:\n\t\t\t\tcase VFSFile.FILESYSTEM:\n\t\t\t\t\tbrowser.setDirectory(path);\n\t\t\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "IF", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "FUNC_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "SWITCH", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [1, 14], [0, 15], [6, 16], [6, 17], [8, 18], [8, 19], [0, 20], [11, 21], [12, 22], [14, 23], [2, 24], [3, 25], [4, 26], [15, 27], [16, 28], [6, 29], [17, 30], [7, 31], [18, 32], [18, 33], [8, 34], [8, 35], [19, 36], [9, 37], [20, 38], [10, 39], [21, 40], [26, 41], [5, 42], [28, 43], [28, 44], [31, 45], [31, 46], [32, 47], [18, 48], [33, 49], [37, 50], [40, 51], [16, 52], [43, 53], [44, 54], [32, 55], [47, 56], [47, 57], [18, 58], [18, 59], [49, 60], [49, 61], [35, 62], [52, 63], [53, 64], [32, 65], [56, 66], [56, 67], [57, 68], [59, 69], [60, 70], [60, 71], [61, 72], [62, 73], [35, 74], [35, 75], [51, 76], [51, 77], [51, 78], [51, 79], [51, 80], [63, 81], [65, 82], [75, 83], [51, 84], [51, 85], [78, 86], [51, 87], [79, 88], [80, 89], [80, 90], [51, 91], [81, 92], [78, 93], [86, 94], [87, 95], [79, 96], [90, 97], [78, 98], [78, 99], [96, 100], [96, 101], [98, 102], [98, 103], [98, 104], [93, 105], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 1], [15, 0], [16, 6], [17, 6], [18, 8], [19, 8], [20, 0], [21, 11], [22, 12], [23, 14], [24, 2], [25, 3], [26, 4], [27, 15], [28, 16], [29, 6], [30, 17], [31, 7], [32, 18], [33, 18], [34, 8], [35, 8], [36, 19], [37, 9], [38, 20], [39, 10], [40, 21], [41, 26], [42, 5], [43, 28], [44, 28], [45, 31], [46, 31], [47, 32], [48, 18], [49, 33], [50, 37], [51, 40], [52, 16], [53, 43], [54, 44], [55, 32], [56, 47], [57, 47], [58, 18], [59, 18], [60, 49], [61, 49], [62, 35], [63, 52], [64, 53], [65, 32], [66, 56], [67, 56], [68, 57], [69, 59], [70, 60], [71, 60], [72, 61], [73, 62], [74, 35], [75, 35], [76, 51], [77, 51], [78, 51], [79, 51], [80, 51], [81, 63], [82, 65], [83, 75], [84, 51], [85, 51], [86, 78], [87, 51], [88, 79], [89, 80], [90, 80], [91, 51], [92, 81], [93, 78], [94, 86], [95, 87], [96, 79], [97, 90], [98, 78], [99, 78], [100, 96], [101, 96], [102, 98], [103, 98], [104, 98], [105, 93], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105]]}, {"function_name": "cancel", "code": "\t@Override\n\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSelectedFiles", "code": "\tpublic String[] getSelectedFiles()\n\t{\n\t\tif(!isOK)\n\t\t\treturn null;\n\n\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\tif(browser.getSelectedFiles().length > 0)\n\t\t\t{\n\t\t\t\treturn getSelectedFiles(VFSFile.DIRECTORY,\n\t\t\t\t\tVFSFile.FILESYSTEM);\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn new String[] { browser.getDirectory() };\n\t\t}\n\t\telse if(filename != null && filename.length() != 0)\n\t\t{\n\t\t\tString path = browser.getDirectory();\n\t\t\treturn new String[] { MiscUtilities.constructPath(\n\t\t\t\tpath,filename) };\n\t\t}\n\t\telse\n\t\t\treturn getSelectedFiles(VFSFile.FILE,VFSFile.FILE);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [3, 6], [3, 7], [1, 8], [4, 9], [5, 10], [6, 11], [3, 12], [3, 13], [7, 14], [7, 15], [8, 16], [8, 17], [14, 18], [14, 19], [15, 20], [8, 21], [17, 22], [17, 23], [13, 24], [21, 25], [12, 26], [16, 27], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 3], [7, 3], [8, 1], [9, 4], [10, 5], [11, 6], [12, 3], [13, 3], [14, 7], [15, 7], [16, 8], [17, 8], [18, 14], [19, 14], [20, 15], [21, 8], [22, 17], [23, 17], [24, 13], [25, 21], [26, 12], [27, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getDefaultTitle", "code": "\tprivate static String getDefaultTitle()\n\t{\n\t\treturn jEdit.getProperty(\"vfs.browser.title\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "_init", "code": "\tprivate void _init(View view, String path,\n\t\tint mode, boolean multipleSelection, boolean autoshow)\n\t{\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tsetContentPane(content);\n\n\t\tString name;\n\t\tif(mode == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\tname = null;\n\t\telse if(path == null || path.endsWith(File.separator)\n\t\t\t|| path.endsWith(\"/\"))\n\t\t{\n\t\t\tname = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\tname = vfs.getFileName(path);\n\t\t\tpath = vfs.getParentOfPath(path);\n\t\t\tif ((vfs.getCapabilities() & VFS.BROWSE_CAP) == 0)\n\t\t\t{\n\t\t\t\tpath = null;\n\t\t\t}\n\t\t}\n\n\t\tbrowser = new VFSBrowser(view, path, mode, multipleSelection, null);\n\t\t\n\t\tbrowser.addBrowserListener(new BrowserHandler());\n\t\tcontent.add(BorderLayout.CENTER,browser);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,12,12,12));\n\t\t\n\t\tfilenameField = new VFSFileNameField(browser,null);\n\t\tfilenameField.setText(name);\n\t\tfilenameField.selectAll();\n\t\tfilenameField.setName(\"filename\");\n\t\tbrowser.setDefaultFocusComponent(filenameField);\n\t\tBox box = new Box(BoxLayout.Y_AXIS);\n\t\tbox.add(Box.createGlue());\n\t\tbox.add(filenameField);\n\t\tbox.add(Box.createGlue());\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"vfs.browser.dialog.filename\"));\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\n\t\t\t\"vfs.browser.dialog.filename.mnemonic\").charAt(0));\n\t\tlabel.setLabelFor(filenameField);\n\t\tpanel.add(label);\n\t\tpanel.add(Box.createHorizontalStrut(12));\n\n\t\tpanel.add(box);\n\n\t\tpanel.add(Box.createHorizontalStrut(12));\n\n\t\tok = new JButton();\n\t\tok.setName(\"ok\");\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tswitch(mode)\n\t\t{\n\t\tcase VFSBrowser.OPEN_DIALOG:\n\t\tcase VFSBrowser.BROWSER_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.open\"));\n\t\t\tbreak;\n\t\tcase VFSBrowser.CHOOSE_DIRECTORY_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.choose-dir\"));\n\t\t\t// so that it doesn't resize...\n\t\t\tDimension dim = ok.getPreferredSize();\n\t\t\tok.setPreferredSize(dim);\n\t\t\tbreak;\n\t\tcase VFSBrowser.SAVE_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.save\"));\n\t\t\tbreak;\n\t\t}\n\n\t\tok.addActionListener(new ActionHandler());\n\t\tpanel.add(ok);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.setName(\"cancel\");\n\t\tcancel.addActionListener(new ActionHandler());\n\t\tpanel.add(cancel);\n\n\t\tcontent.add(BorderLayout.SOUTH,panel);\n\n\t\tVFSManager.getIOThreadPool().addProgressListener(\n\t\t\tworkThreadHandler = new WorkThreadHandler());\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,\"vfs.browser.dialog\");\n\t\tGUIUtilities.requestFocus(this,filenameField);\n\t\tif (autoshow)\n\t\t\tsetVisible(true);", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "VAR_DECL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [6, 48], [6, 49], [0, 50], [1, 51], [15, 52], [17, 53], [20, 54], [21, 55], [22, 56], [23, 57], [25, 58], [2, 59], [2, 60], [2, 61], [2, 62], [26, 63], [27, 64], [28, 65], [29, 66], [31, 67], [34, 68], [3, 69], [35, 70], [37, 71], [4, 72], [39, 73], [42, 74], [43, 75], [44, 76], [5, 77], [46, 78], [47, 79], [48, 80], [6, 81], [8, 82], [51, 83], [53, 84], [56, 85], [57, 86], [2, 87], [2, 88], [2, 89], [2, 90], [66, 91], [67, 92], [68, 93], [68, 94], [69, 95], [74, 96], [75, 97], [75, 98], [75, 99], [75, 100], [79, 101], [48, 102], [48, 103], [80, 104], [80, 105], [81, 106], [82, 107], [84, 108], [85, 109], [87, 110], [61, 111], [89, 112], [90, 113], [94, 114], [95, 115], [102, 116], [48, 117], [48, 118], [48, 119], [104, 120], [105, 121], [105, 122], [110, 123], [112, 124], [113, 125], [116, 126], [116, 127], [117, 128], [118, 129], [103, 130], [119, 131], [122, 132], [102, 133], [127, 134], [133, 135], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 6], [49, 6], [50, 0], [51, 1], [52, 15], [53, 17], [54, 20], [55, 21], [56, 22], [57, 23], [58, 25], [59, 2], [60, 2], [61, 2], [62, 2], [63, 26], [64, 27], [65, 28], [66, 29], [67, 31], [68, 34], [69, 3], [70, 35], [71, 37], [72, 4], [73, 39], [74, 42], [75, 43], [76, 44], [77, 5], [78, 46], [79, 47], [80, 48], [81, 6], [82, 8], [83, 51], [84, 53], [85, 56], [86, 57], [87, 2], [88, 2], [89, 2], [90, 2], [91, 66], [92, 67], [93, 68], [94, 68], [95, 69], [96, 74], [97, 75], [98, 75], [99, 75], [100, 75], [101, 79], [102, 48], [103, 48], [104, 80], [105, 80], [106, 81], [107, 82], [108, 84], [109, 85], [110, 87], [111, 61], [112, 89], [113, 90], [114, 94], [115, 95], [116, 102], [117, 48], [118, 48], [119, 48], [120, 104], [121, 105], [122, 105], [123, 110], [124, 112], [125, 113], [126, 116], [127, 116], [128, 117], [129, 118], [130, 103], [131, 119], [132, 122], [133, 102], [134, 127], [135, 133], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135]]}, {"function_name": "doFileExistsWarning", "code": "\tprivate boolean doFileExistsWarning(String filename)\n\t{\n\t\tif(browser.getMode() == VFSBrowser.SAVE_DIALOG\n\t\t\t&& new File(filename).exists())\n\t\t{\n\t\t\tString[] args = { MiscUtilities.getFileName(filename) };\n\t\t\tint result = GUIUtilities.confirm(browser,\n\t\t\t\t\"fileexists\",args,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [5, 10], [6, 11], [6, 12], [9, 13], [10, 14], [11, 15], [7, 16], [16, 17], [8, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 5], [11, 6], [12, 6], [13, 9], [14, 10], [15, 11], [16, 7], [17, 16], [18, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getSelectedFiles", "code": "\tprivate String[] getSelectedFiles(int type1, int type2)\n\t{\n\t\tList<String> l = new ArrayList<String>();\n\t\tVFSFile[] selectedFiles = browser.getSelectedFiles();\n\t\tfor(int i = 0; i < selectedFiles.length; i++)\n\t\t{\n\t\t\tVFSFile file = selectedFiles[i];\n\t\t\tif(file.getType() == type1 || file.getType() == type2)\n\t\t\t\tl.add(file.getPath());\n\t\t}\n\t\treturn l.toArray(new String[l.size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [3, 11], [4, 12], [7, 13], [9, 14], [2, 15], [9, 16], [14, 17], [14, 18], [16, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 3], [12, 4], [13, 7], [14, 9], [15, 2], [16, 9], [17, 14], [18, 14], [19, 16], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "VFSFileChooserDialog", "code": "\tpublic VFSFileChooserDialog(View view, String path,\n\t\tint mode, boolean multipleSelection)\n\t{\n\t\tthis(view,path,mode,multipleSelection,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "VFSFileChooserDialog", "code": "\tpublic VFSFileChooserDialog(View view, String path,\n\t\tint mode, boolean multipleSelection, boolean autoshow)\n\t{\n\t\tsuper(view,getDefaultTitle(),true);\n\t\tsetFocusTraversalPolicy(new LayoutFocusTraversalPolicy());\n\t\t_init(view,path,mode,multipleSelection,autoshow);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "VFSFileChooserDialog", "code": "\tpublic VFSFileChooserDialog(Dialog parent, View view, String path,\n\t\tint mode, boolean multipleSelection, boolean autoshow)\n\t{\n\t\tsuper(parent,getDefaultTitle(),true);\n\t\tsetFocusTraversalPolicy(new LayoutFocusTraversalPolicy());\t\t\n\t\t_init(view,path,mode,multipleSelection,autoshow);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "VFSFileChooserDialog", "code": "\tpublic VFSFileChooserDialog(Frame parent, View view, String path,\n\t\tint mode, boolean multipleSelection, boolean autoshow)\n\t{\n\t\tsuper(parent, getDefaultTitle(),true);\n\t\tsetFocusTraversalPolicy(new LayoutFocusTraversalPolicy());\t\t\n\t\t_init(view,path,mode,multipleSelection,autoshow);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "camel-1.4-2589", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/jpa/JpaComponent.java", "language": "java", "name": "org.apache.camel.component.jpa.JpaComponent", "code": "public class JpaComponent extends DefaultComponent<Exchange> {\n    private EntityManagerFactory entityManagerFactory;\n\n    public Component resolveComponent(CamelContext container, String uri) throws Exception {\n        return null;\n    }\n\n    public EntityManagerFactory getEntityManagerFactory() {\n        return entityManagerFactory;\n    }\n\n    public void setEntityManagerFactory(EntityManagerFactory entityManagerFactory) {\n        this.entityManagerFactory = entityManagerFactory;\n    }\n\n\n    @Override\n    protected Endpoint<Exchange> createEndpoint(String uri, String path, Map options) throws Exception {\n        JpaEndpoint endpoint = new JpaEndpoint(uri, this);\n\n        if (path != null) {\n            Class<?> type = ObjectHelper.loadClass(path);\n            if (type != null) {\n                endpoint.setEntityType(type);\n            }\n        }\n        return endpoint;", "functions": [{"function_name": "resolveComponent", "code": "    public Component resolveComponent(CamelContext container, String uri) throws Exception {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getEntityManagerFactory", "code": "    public EntityManagerFactory getEntityManagerFactory() {\n        return entityManagerFactory;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEntityManagerFactory", "code": "    public void setEntityManagerFactory(EntityManagerFactory entityManagerFactory) {\n        this.entityManagerFactory = entityManagerFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createEndpoint", "code": "    @Override\n    protected Endpoint<Exchange> createEndpoint(String uri, String path, Map options) throws Exception {\n        JpaEndpoint endpoint = new JpaEndpoint(uri, this);\n\n        if (path != null) {\n            Class<?> type = ObjectHelper.loadClass(path);\n            if (type != null) {\n                endpoint.setEntityType(type);\n            }\n        }\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [3, 11], [8, 12], [12, 13], [9, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 3], [12, 8], [13, 12], [14, 9], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}], "label": 0}
{"sample_id": "jedit-4.2-4474", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/browser/VFSDirectoryEntryTableModel.java", "language": "java", "name": "org.gjt.sp.jedit.browser.VFSDirectoryEntryTableModel", "code": "public class VFSDirectoryEntryTableModel extends AbstractTableModel\n{\n\t//{{{ VFSDirectoryEntryTableModel constructor\n\tpublic VFSDirectoryEntryTableModel()\n\t{\n\t\textAttrs = new ArrayList();\n\t} //}}}\n\n\t//{{{ setRoot() method\n\tpublic void setRoot(VFS vfs, ArrayList list)\n\t{\n\t\textAttrs.clear();\n\t\taddExtendedAttributes(vfs);\n\n\t\t/* if(files != null && files.length != 0)\n\t\t\tfireTableRowsDeleted(0,files.length - 1); */\n\n\t\tfiles = new Entry[list.size()];\n\t\tfor(int i = 0; i < files.length; i++)\n\t\t{\n\t\t\tfiles[i] = new Entry((VFS.DirectoryEntry)list.get(i),0);\n\t\t}\n\n\t\t/* if(files.length != 0)\n\t\t\tfireTableRowsInserted(0,files.length - 1); */\n\n\t\tfireTableStructureChanged();\n\t} //}}}\n\n\t//{{{ expand() method\n\tpublic int expand(VFS vfs, Entry entry, ArrayList list)\n\t{\n\t\tint startIndex = -1;\n\t\tfor(int i = 0; i < files.length; i++)\n\t\t{\n\t\t\tif(files[i] == entry)\n\t\t\t\tstartIndex = i;\n\t\t}\n\n\t\tcollapse(vfs,startIndex);\n\n\t\taddExtendedAttributes(vfs);\n\t\tentry.expanded = true;\n\n\t\tif(list != null)\n\t\t{\n\t\t\tEntry[] newFiles = new Entry[files.length + list.size()];\n\t\t\tSystem.arraycopy(files,0,newFiles,0,startIndex + 1);\n\t\t\tfor(int i = 0; i < list.size(); i++)\n\t\t\t{\n\t\t\t\tnewFiles[startIndex + i + 1] = new Entry(\n\t\t\t\t\t(VFS.DirectoryEntry)list.get(i),\n\t\t\t\t\tentry.level + 1);\n\t\t\t}\n\t\t\tSystem.arraycopy(files,startIndex + 1,\n\t\t\t\tnewFiles,startIndex + list.size() + 1,\n\t\t\t\tfiles.length - startIndex - 1);\n\t\t\tthis.files = newFiles;\n\n\t\t\t/* fireTableRowsInserted(startIndex + 1,\n\t\t\t\tstartIndex + list.size() + 1); */\n\t\t}\n\n\t\t/* fireTableRowsUpdated(startIndex,startIndex); */\n\n\t\tfireTableStructureChanged();\n\n\t\treturn startIndex;\n\t} //}}}\n\n\t//{{{ collapse() method\n\tpublic void collapse(VFS vfs, int index)\n\t{\n\t\tEntry entry = files[index];\n\t\tif(!entry.expanded)\n\t\t\treturn;\n\n\t\tentry.expanded = false;\n\n\t\tint lastIndex = index + 1;\n\t\twhile(lastIndex < files.length)\n\t\t{\n\t\t\tEntry e = files[lastIndex];\n\n\t\t\tif(e.level <= entry.level)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tlastIndex++;\n\n\t\t\tif(e.expanded)\n\t\t\t{\n\t\t\t\tremoveExtendedAttributes(VFSManager.getVFSForPath(\n\t\t\t\t\te.dirEntry.path));\n\t\t\t}\n\t\t}\n\n\t\tremoveExtendedAttributes(vfs);\n\n\t\tEntry[] newFiles = new Entry[files.length - lastIndex + index + 1];\n\t\tSystem.arraycopy(files,0,newFiles,0,index + 1);\n\t\tSystem.arraycopy(files,lastIndex,newFiles,index + 1,\n\t\t\tfiles.length - lastIndex);\n\n\t\tfiles = newFiles;\n\n\t\t/* fireTableRowsUpdated(index,index);\n\t\tfireTableRowsDeleted(index + 1,lastIndex); */\n\n\t\tfireTableStructureChanged();\n\t} //}}}\n\n\t//{{{ getColumnCount() method\n\tpublic int getColumnCount()\n\t{\n\t\treturn 1 + extAttrs.size();\n\t} //}}}\n\n\t//{{{ getRowCount() method\n\tpublic int getRowCount()\n\t{\n\t\tif(files == null)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn files.length;\n\t} //}}}\n\n\t//{{{ getColumnName() method\n\tpublic String getColumnName(int col)\n\t{\n\t\tif(col == 0)\n\t\t\treturn jEdit.getProperty(\"vfs.browser.name\");\n\t\telse\n\t\t\treturn jEdit.getProperty(\"vfs.browser.\" + getExtendedAttribute(col - 1));\n\t} //}}}\n\n\t//{{{ getColumnClass() method\n\tpublic Class getColumnClass(int col)\n\t{\n\t\treturn Entry.class;\n\t} //}}}\n\n\t//{{{ getValueAt() method\n\tpublic Object getValueAt(int row, int col)\n\t{\n\t\tif(files == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn files[row];\n\t} //}}}\n\n\t//{{{ getExtendedAttribute() method\n\tpublic String getExtendedAttribute(int index)\n\t{\n\t\treturn ((ExtendedAttribute)extAttrs.get(index)).name;\n\t} //}}}\n\n\t//{{{ Package-private members\n\tEntry[] files;\n\t//}}}\n\n\t//{{{ Private members\n\tprivate List extAttrs;\n\n\t//{{{ addExtendedAttributes() method\n\tprivate void addExtendedAttributes(VFS vfs)\n\t{\n\t\tString[] attrs = vfs.getExtendedAttributes();\nvfs_attr_loop:\tfor(int i = 0; i < attrs.length; i++)\n\t\t{\n\t\t\tIterator iter = extAttrs.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tExtendedAttribute attr = (ExtendedAttribute)\n\t\t\t\t\titer.next();\n\t\t\t\tif(attrs[i].equals(attr.name))\n\t\t\t\t{\n\t\t\t\t\tattr.ref++;\n\t\t\t\t\tcontinue vfs_attr_loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// this vfs has an extended attribute which is not\n\t\t\t// in the list. add it to the end with a ref count\n\t\t\t// of 1\n\t\t\textAttrs.add(new ExtendedAttribute(attrs[i]));\n\t\t}\n\t} //}}}\n\n\t//{{{ removeExtendedAttributes() method\n\tprivate void removeExtendedAttributes(VFS vfs)\n\t{\n\t\tString[] attrs = vfs.getExtendedAttributes();\nvfs_attr_loop:\tfor(int i = 0; i < attrs.length; i++)\n\t\t{\n\t\t\tIterator iter = extAttrs.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tExtendedAttribute attr = (ExtendedAttribute)\n\t\t\t\t\titer.next();\n\t\t\t\tif(attrs[i].equals(attr.name))\n\t\t\t\t{\n\t\t\t\t\tif(--attr.ref == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t// we no longer have any\n\t\t\t\t\t\t// dirs using this extended\n\t\t\t\t\t\t// attribute\n\t\t\t\t\t\titer.remove();\n\t\t\t\t\t}\n\n\t\t\t\t\tcontinue vfs_attr_loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// this vfs has an extended attribute which is not\n\t\t\t// in the list ???\n\t\t\tLog.log(Log.WARNING,this,\"We forgot about \" + attrs[i]);\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Entry class\n\tstatic class Entry\n\t{\n\t\tVFS.DirectoryEntry dirEntry;\n\t\tboolean expanded;\n\t\t// how deeply we are nested\n\t\tint level;\n\n\t\tEntry(VFS.DirectoryEntry dirEntry, int level)\n\t\t{\n\t\t\tthis.dirEntry = dirEntry;\n\t\t\tthis.level = level;\n\t\t}\n\t} //}}}\n\n\t//{{{ ExtendedAttribute class\n\tstatic class ExtendedAttribute\n\t{\n\t\t/* reference counter allows us to remove a column from\n\t\t * the table when no directory using this column is\n\t\t * visible */\n\t\tint ref;\n\n\t\tString name;\n\n\t\tExtendedAttribute(String name)\n\t\t{\n\t\t\tthis.name = name;\n\t\t\tref = 1;", "functions": [{"function_name": "setRoot", "code": "\tpublic void setRoot(VFS vfs, ArrayList list)\n\t{\n\t\textAttrs.clear();\n\t\taddExtendedAttributes(vfs);\n\n\t\t/* if(files != null && files.length != 0)\n\t\t\tfireTableRowsDeleted(0,files.length - 1); */\n\n\t\tfiles = new Entry[list.size()];\n\t\tfor(int i = 0; i < files.length; i++)\n\t\t{\n\t\t\tfiles[i] = new Entry((VFS.DirectoryEntry)list.get(i),0);\n\t\t}\n\n\t\t/* if(files.length != 0)\n\t\t\tfireTableRowsInserted(0,files.length - 1); */\n\n\t\tfireTableStructureChanged();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [6, 11], [9, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 6], [12, 9], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "expand", "code": "\tpublic int expand(VFS vfs, Entry entry, ArrayList list)\n\t{\n\t\tint startIndex = -1;\n\t\tfor(int i = 0; i < files.length; i++)\n\t\t{\n\t\t\tif(files[i] == entry)\n\t\t\t\tstartIndex = i;\n\t\t}\n\n\t\tcollapse(vfs,startIndex);\n\n\t\taddExtendedAttributes(vfs);\n\t\tentry.expanded = true;\n\n\t\tif(list != null)\n\t\t{\n\t\t\tEntry[] newFiles = new Entry[files.length + list.size()];\n\t\t\tSystem.arraycopy(files,0,newFiles,0,startIndex + 1);\n\t\t\tfor(int i = 0; i < list.size(); i++)\n\t\t\t{\n\t\t\t\tnewFiles[startIndex + i + 1] = new Entry(\n\t\t\t\t\t(VFS.DirectoryEntry)list.get(i),\n\t\t\t\t\tentry.level + 1);\n\t\t\t}\n\t\t\tSystem.arraycopy(files,startIndex + 1,\n\t\t\t\tnewFiles,startIndex + list.size() + 1,\n\t\t\t\tfiles.length - startIndex - 1);\n\t\t\tthis.files = newFiles;\n\n\t\t\t/* fireTableRowsInserted(startIndex + 1,\n\t\t\t\tstartIndex + list.size() + 1); */\n\t\t}\n\n\t\t/* fireTableRowsUpdated(startIndex,startIndex); */\n\n\t\tfireTableStructureChanged();\n\n\t\treturn startIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [0, 10], [0, 11], [0, 12], [3, 13], [2, 14], [2, 15], [9, 16], [10, 17], [3, 18], [4, 19], [2, 20], [2, 21], [14, 22], [2, 23], [18, 24], [3, 25], [21, 26], [21, 27], [21, 28], [22, 29], [23, 30], [23, 31], [23, 32], [18, 33], [26, 34], [26, 35], [27, 36], [27, 37], [28, 38], [14, 39], [14, 40], [30, 41], [15, 42], [37, 43], [39, 44], [42, 45], [44, 46], [46, 47], [44, 48], [39, 49], [49, 50], [49, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 0], [11, 0], [12, 0], [13, 3], [14, 2], [15, 2], [16, 9], [17, 10], [18, 3], [19, 4], [20, 2], [21, 2], [22, 14], [23, 2], [24, 18], [25, 3], [26, 21], [27, 21], [28, 21], [29, 22], [30, 23], [31, 23], [32, 23], [33, 18], [34, 26], [35, 26], [36, 27], [37, 27], [38, 28], [39, 14], [40, 14], [41, 30], [42, 15], [43, 37], [44, 39], [45, 42], [46, 44], [47, 46], [48, 44], [49, 39], [50, 49], [51, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "collapse", "code": "\tpublic void collapse(VFS vfs, int index)\n\t{\n\t\tEntry entry = files[index];\n\t\tif(!entry.expanded)\n\t\t\treturn;\n\n\t\tentry.expanded = false;\n\n\t\tint lastIndex = index + 1;\n\t\twhile(lastIndex < files.length)\n\t\t{\n\t\t\tEntry e = files[lastIndex];\n\n\t\t\tif(e.level <= entry.level)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tlastIndex++;\n\n\t\t\tif(e.expanded)\n\t\t\t{\n\t\t\t\tremoveExtendedAttributes(VFSManager.getVFSForPath(\n\t\t\t\t\te.dirEntry.path));\n\t\t\t}\n\t\t}\n\n\t\tremoveExtendedAttributes(vfs);\n\n\t\tEntry[] newFiles = new Entry[files.length - lastIndex + index + 1];\n\t\tSystem.arraycopy(files,0,newFiles,0,index + 1);\n\t\tSystem.arraycopy(files,lastIndex,newFiles,index + 1,\n\t\t\tfiles.length - lastIndex);\n\n\t\tfiles = newFiles;\n\n\t\t/* fireTableRowsUpdated(index,index);\n\t\tfireTableRowsDeleted(index + 1,lastIndex); */\n\n\t\tfireTableStructureChanged();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [0, 14], [4, 15], [10, 16], [10, 17], [11, 18], [11, 19], [11, 20], [2, 21], [2, 22], [2, 23], [3, 24], [14, 25], [17, 26], [18, 27], [1, 28], [22, 29], [22, 30], [24, 31], [28, 32], [28, 33], [33, 34], [21, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 0], [15, 4], [16, 10], [17, 10], [18, 11], [19, 11], [20, 11], [21, 2], [22, 2], [23, 2], [24, 3], [25, 14], [26, 17], [27, 18], [28, 1], [29, 22], [30, 22], [31, 24], [32, 28], [33, 28], [34, 33], [35, 21], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getColumnCount", "code": "\tpublic int getColumnCount()\n\t{\n\t\treturn 1 + extAttrs.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRowCount", "code": "\tpublic int getRowCount()\n\t{\n\t\tif(files == null)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn files.length;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getColumnName", "code": "\tpublic String getColumnName(int col)\n\t{\n\t\tif(col == 0)\n\t\t\treturn jEdit.getProperty(\"vfs.browser.name\");\n\t\telse\n\t\t\treturn jEdit.getProperty(\"vfs.browser.\" + getExtendedAttribute(col - 1));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getColumnClass", "code": "\tpublic Class getColumnClass(int col)\n\t{\n\t\treturn Entry.class;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValueAt", "code": "\tpublic Object getValueAt(int row, int col)\n\t{\n\t\tif(files == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn files[row];", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExtendedAttribute", "code": "\tpublic String getExtendedAttribute(int index)\n\t{\n\t\treturn ((ExtendedAttribute)extAttrs.get(index)).name;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addExtendedAttributes", "code": "\tprivate void addExtendedAttributes(VFS vfs)\n\t{\n\t\tString[] attrs = vfs.getExtendedAttributes();\nvfs_attr_loop:\tfor(int i = 0; i < attrs.length; i++)\n\t\t{\n\t\t\tIterator iter = extAttrs.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tExtendedAttribute attr = (ExtendedAttribute)\n\t\t\t\t\titer.next();\n\t\t\t\tif(attrs[i].equals(attr.name))\n\t\t\t\t{\n\t\t\t\t\tattr.ref++;\n\t\t\t\t\tcontinue vfs_attr_loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// this vfs has an extended attribute which is not\n\t\t\t// in the list. add it to the end with a ref count\n\t\t\t// of 1\n\t\t\textAttrs.add(new ExtendedAttribute(attrs[i]));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "BREAK_CONTINUE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [1, 8], [5, 9], [1, 10], [8, 11], [5, 12], [5, 13], [6, 14], [12, 15], [12, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 1], [9, 5], [10, 1], [11, 8], [12, 5], [13, 5], [14, 6], [15, 12], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "removeExtendedAttributes", "code": "\tprivate void removeExtendedAttributes(VFS vfs)\n\t{\n\t\tString[] attrs = vfs.getExtendedAttributes();\nvfs_attr_loop:\tfor(int i = 0; i < attrs.length; i++)\n\t\t{\n\t\t\tIterator iter = extAttrs.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tExtendedAttribute attr = (ExtendedAttribute)\n\t\t\t\t\titer.next();\n\t\t\t\tif(attrs[i].equals(attr.name))\n\t\t\t\t{\n\t\t\t\t\tif(--attr.ref == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t// we no longer have any\n\t\t\t\t\t\t// dirs using this extended\n\t\t\t\t\t\t// attribute\n\t\t\t\t\t\titer.remove();\n\t\t\t\t\t}\n\n\t\t\t\t\tcontinue vfs_attr_loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// this vfs has an extended attribute which is not\n\t\t\t// in the list ???\n\t\t\tLog.log(Log.WARNING,this,\"We forgot about \" + attrs[i]);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [1, 8], [5, 9], [1, 10], [8, 11], [5, 12], [5, 13], [6, 14], [11, 15], [12, 16], [12, 17], [12, 18], [17, 19], [13, 20], [19, 21], [17, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 1], [9, 5], [10, 1], [11, 8], [12, 5], [13, 5], [14, 6], [15, 11], [16, 12], [17, 12], [18, 12], [19, 17], [20, 13], [21, 19], [22, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "VFSDirectoryEntryTableModel", "code": "\tpublic VFSDirectoryEntryTableModel()\n\t{\n\t\textAttrs = new ArrayList();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-2900", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/language/LanguageExpression.java", "language": "java", "name": "org.apache.camel.model.language.LanguageExpression", "code": "@XmlRootElement(name = \"expression\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class LanguageExpression extends ExpressionType {\n    @XmlAttribute\n    private String language;\n\n    public LanguageExpression() {\n    }\n\n    public LanguageExpression(String language, String expression) {\n        setLanguage(language);\n        setExpression(expression);\n    }\n\n    public String getLanguage() {\n        return language;\n    }\n\n    public void setLanguage(String language) {\n        this.language = language;", "functions": [{"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return language;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLanguage", "code": "    public void setLanguage(String language) {\n        this.language = language;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LanguageExpression", "code": "    public LanguageExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "LanguageExpression", "code": "    public LanguageExpression(String language, String expression) {\n        setLanguage(language);\n        setExpression(expression);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-3237", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/converter/jaxp/BytesSource.java", "language": "java", "name": "org.apache.camel.converter.jaxp.BytesSource", "code": "public class BytesSource extends StreamSource {\n    private byte[] data;\n\n    public BytesSource(byte[] data) {\n        ObjectHelper.notNull(data, \"data\");\n        this.data = data;\n    }\n\n    public BytesSource(byte[] data, String systemId) {\n        ObjectHelper.notNull(data, \"data\");\n        this.data = data;\n        setSystemId(systemId);\n    }\n\n    public InputStream getInputStream() {\n        return new ByteArrayInputStream(data);\n    }\n\n    public Reader getReader() {\n        return new InputStreamReader(getInputStream());\n    }\n\n    public byte[] getData() {\n        return data;\n    }\n\n    public String toString() {\n        return \"BytesSource[\" + new String(data) + \"]\";", "functions": [{"function_name": "getInputStream", "code": "    public InputStream getInputStream() {\n        return new ByteArrayInputStream(data);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReader", "code": "    public Reader getReader() {\n        return new InputStreamReader(getInputStream());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getData", "code": "    public byte[] getData() {\n        return data;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"BytesSource[\" + new String(data) + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "BytesSource", "code": "    public BytesSource(byte[] data) {\n        ObjectHelper.notNull(data, \"data\");\n        this.data = data;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "BytesSource", "code": "    public BytesSource(byte[] data, String systemId) {\n        ObjectHelper.notNull(data, \"data\");\n        this.data = data;\n        setSystemId(systemId);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "camel-1.4-2340", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/converter/jaxb/IntegerHeader.java", "language": "java", "name": "org.apache.camel.converter.jaxb.IntegerHeader", "code": "@XmlRootElement(name = \"intHeader\")\n@XmlAccessorType(value = XmlAccessType.FIELD)\npublic class IntegerHeader extends HeaderType {\n    @XmlAttribute(name = \"value\")\n    private Integer number;\n\n    public IntegerHeader() {\n    }\n\n    public IntegerHeader(String name, Integer number) {\n        super(name);\n        this.number = number;\n    }\n\n    public Integer getNumber() {\n        return number;\n    }\n\n    public void setNumber(Integer number) {\n        this.number = number;\n    }\n\n    public Object getValue() {\n        return getNumber();\n    }\n\n    public void setValue(Object value) {\n        if (value instanceof Number) {\n            Number n = (Number) value;\n            setNumber(n.intValue());\n        } else {\n            throw new IllegalArgumentException(\"Value must be an Integer\");", "functions": [{"function_name": "getNumber", "code": "    public Integer getNumber() {\n        return number;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNumber", "code": "    public void setNumber(Integer number) {\n        this.number = number;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValue", "code": "    public Object getValue() {\n        return getNumber();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValue", "code": "    public void setValue(Object value) {\n        if (value instanceof Number) {\n            Number n = (Number) value;\n            setNumber(n.intValue());\n        } else {\n            throw new IllegalArgumentException(\"Value must be an Integer\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 1], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "IntegerHeader", "code": "    public IntegerHeader() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IntegerHeader", "code": "    public IntegerHeader(String name, Integer number) {\n        super(name);\n        this.number = number;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "jedit-4.3-4834", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/VariableGridLayout.java", "language": "java", "name": "org.gjt.sp.jedit.gui.VariableGridLayout", "code": "public class VariableGridLayout implements LayoutManager2, java.io.Serializable\n{\n\tpublic static final int FIXED_NUM_ROWS = 1;\n\tpublic static final int FIXED_NUM_COLUMNS = 2;\n\n\tprivate static enum LayoutSize { MINIMUM, MAXIMUM, PREFERRED }\n\n\t/**\n\t * Creates a variable grid layout manager with the specified mode,\n\t * size, horizontal and vertical gap, eventually taking minimum and maximum\n\t * sizes into account when distributing free space, depending on takeSizesIntoAccount\n\t * and the specified distance to the borders.\n\t *\n\t * @param mode The mode in which to operate. Either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS\n\t * @param size The amount of rows for mode FIXED_NUM_ROWS or the amount of columns for mode FIXED_NUM_COLUMNS (>0)\n\t * @param hgap The horizontal space between cells (>=0)\n\t * @param vgap The vertical space between cells (>=0)\n\t * @param takeSizesIntoAccount Whether to take minimum and maximum sizes into account when distributing free space\n\t * @param distanceToBorders The distances to the borders\n\t * @throws IllegalArgumentException if mode is not either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS or size is <= 0 or hgap or vgap is < 0\n\t */\n\tpublic VariableGridLayout(int mode, int size, int hgap, int vgap, boolean takeSizesIntoAccount, Insets distanceToBorders)\n\t{\n\t\tif (mode != FIXED_NUM_ROWS && mode != FIXED_NUM_COLUMNS)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"illegal mode; value is \" + mode);\n\t\t}\n\t\tif (size <= 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"size cannot be zero or less; value is \" + size);\n\t\t}\n\t\tif (hgap < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"hgap cannot be negative; value is \" + hgap);\n\t\t}\n\t\tif (vgap < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"vgap cannot be negative; value is \" + vgap);\n\t\t}\n\t\tthis.mode = mode;\n\t\tthis.size = size;\n\t\tthis.hgap = hgap;\n\t\tthis.vgap = vgap;\n\t\tthis.takeSizesIntoAccount = takeSizesIntoAccount;\n\t\tthis.distanceToBorders = (Insets)distanceToBorders.clone();\n\t}\n\n\t/**\n\t * Creates a variable grid layout manager with the specified mode,\n\t * size, horizontal and vertical gap, eventually taking minimum and maximum\n\t * sizes into account when distributing free space, depending on takeSizesIntoAccount\n\t * and zero distance to borders.\n\t *\n\t * @param mode The mode in which to operate. Either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS\n\t * @param size The amount of rows for mode FIXED_NUM_ROWS or the amount of columns for mode FIXED_NUM_COLUMNS (>0)\n\t * @param hgap The horizontal space between cells (>=0)\n\t * @param vgap The vertical space between cells (>=0)\n\t * @param takeSizesIntoAccount Whether to take minimum and maximum sizes into account when distributing free space\n\t * @throws IllegalArgumentException if mode is not either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS or size is <= 0 or hgap or vgap is < 0\n\t */\n\tpublic VariableGridLayout(int mode, int size, int hgap, int vgap, boolean takeSizesIntoAccount)\n\t{\n\t\tthis(mode, size, hgap, vgap, takeSizesIntoAccount, new Insets(0,0,0,0));\n\t}\n\n\t/**\n\t * Creates a variable grid layout manager with the specified mode,\n\t * size, horizontal and vertical gap, and zero distance to borders.\n\t * The minimum and maximum Component sizes are not taken into account\n\t * when distributing free space.\n\t *\n\t * @param mode The mode in which to operate. Either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS\n\t * @param size The amount of rows for mode FIXED_NUM_ROWS or the amount of columns for mode FIXED_NUM_COLUMNS\n\t * @param hgap The horizontal space between cells\n\t * @param vgap The vertical space between cells\n\t * @throws IllegalArgumentException if mode is not either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS or size is <= 0 or hgap or vgap is < 0\n\t */\n\tpublic VariableGridLayout(int mode, int size, int hgap, int vgap)\n\t{\n\t\tthis(mode, size, hgap, vgap, false, new Insets(0,0,0,0));\n\t}\n\n\t/**\n\t * Creates a variable grid layout manager with the specified mode\n\t * and size, zero horizontal and vertical gap, and zero distance to borders. \n\t * Does not take minimum and maximum Component sizes into account when distributing\n\t * free space.\n\t *\n\t * @param mode The mode in which to operate. Either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS\n\t * @param size The amount of rows for mode FIXED_NUM_ROWS or the amount of columns for mode FIXED_NUM_COLUMNS\n\t * @throws IllegalArgumentException if mode is not either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS or size is <= 0\n\t */\n\tpublic VariableGridLayout(int mode, int size)\n\t{\n\t\tthis(mode, size, 0, 0, false, new Insets(0,0,0,0));\n\t}\n\n\t/**\n\t * Creates a variable grid layout manager with mode FIXED_NUM_ROWS,\n\t * number of rows == 1, zero horizontal and vertical gap, and zero distance to borders.\n\t * Does not take minimum and maximum Component sizes into account when\n\t * distributing free space.\n\t */\n\tpublic VariableGridLayout()\n\t{\n\t\tthis(FIXED_NUM_ROWS, 1, 0, 0, false, new Insets(0,0,0,0));\n\t}\n\n\t/**\n\t * Not used in this class.\n\t */\n\tpublic void addLayoutComponent(String name, Component component)\n\t{\n\t}\n\n\t/**\n\t * Not used in this class.\n\t */\n\tpublic void addLayoutComponent(Component component, Object constraints)\n\t{\n\t}\n\n\t/**\n\t * Not used in this class.\n\t */\n\tpublic void removeLayoutComponent(Component component)\n\t{\n\t}\n\n\t/**\n\t * Always returns 0.5.\n\t */\n\tpublic float getLayoutAlignmentX(Container container)\n\t{\n\t\treturn 0.5f;\n\t}\n\n\t/**\n\t * Always returns 0.5.\n\t */\n\tpublic float getLayoutAlignmentY(Container container)\n\t{\n\t\treturn 0.5f;\n\t}\n\n\tpublic Dimension preferredLayoutSize(Container parent)\n\t{\n\t\treturn getLayoutSize(parent,LayoutSize.PREFERRED);\n\t}\n\n\tpublic Dimension minimumLayoutSize(Container parent)\n\t{\n\t\treturn getLayoutSize(parent,LayoutSize.MINIMUM);\n\t}\n\n\tpublic Dimension maximumLayoutSize(Container parent)\n\t{\n\t\treturn getLayoutSize(parent,LayoutSize.MAXIMUM);\n\t}\n\n\tpublic void layoutContainer(Container parent)\n\t{\n\t\tsynchronized (parent.getTreeLock())\n\t\t{\n\t\t\tupdate(parent);\n\n\t\t\tint ncomponents = parent.getComponentCount();\n\n\t\t\tif (ncomponents == 0)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Pass 1: compute minimum, preferred and maximum row heights / column widths\n\t\t\tint total_height = 0;\n\t\t\tArrays.fill(row_heights,0);\n\t\t\tArrays.fill(col_widths,0);\n\t\t\tif (takeSizesIntoAccount)\n\t\t\t{\n\t\t\t\tArrays.fill(minimum_row_heights,0);\n\t\t\t\tArrays.fill(minimum_col_widths,0);\n\t\t\t\tArrays.fill(maximum_row_heights,Integer.MAX_VALUE);\n\t\t\t\tArrays.fill(maximum_col_widths,Integer.MAX_VALUE);\n\t\t\t}\n\t\t\tfor (int r = 0, i = 0; r < nrows; r++)\n\t\t\t{\n\t\t\t\tfor (int c = 0; c < ncols; c++, i++)\n\t\t\t\t{\n\t\t\t\t\tif (i < ncomponents)\n\t\t\t\t\t{\n\t\t\t\t\t\tComponent comp = parent.getComponent(i);\n\t\t\t\t\t\tDimension d = comp.getPreferredSize();\n\t\t\t\t\t\trow_heights[r] = Math.max(row_heights[r], d.height);\n\t\t\t\t\t\tcol_widths[c] = Math.max(col_widths[c], d.width);\n\t\t\t\t\t\tif (takeSizesIntoAccount)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\td = comp.getMinimumSize();\n\t\t\t\t\t\t\tminimum_row_heights[r] = Math.max(minimum_row_heights[r], d.height);\n\t\t\t\t\t\t\tminimum_col_widths[c] = Math.max(minimum_col_widths[c], d.width);\n\t\t\t\t\t\t\td = comp.getMaximumSize();\n\t\t\t\t\t\t\tmaximum_row_heights[r] = Math.min(maximum_row_heights[r], d.height);\n\t\t\t\t\t\t\tmaximum_col_widths[c] = Math.min(maximum_col_widths[c], d.width);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (takeSizesIntoAccount)\n\t\t\t\t{\n\t\t\t\t\t// correct cases where\n\t\t\t\t\t// minimum_row_heights[row] <= row_heights[row] <= maximum_row_heights[row]\n\t\t\t\t\t// is not true by clipping to the minimum_row_heights and maximum_row_heights\n\t\t\t\t\tif (minimum_row_heights[r] >= maximum_row_heights[r])\n\t\t\t\t\t{\n\t\t\t\t\t\tmaximum_row_heights[r] = minimum_row_heights[r];\n\t\t\t\t\t\trow_heights[r] = minimum_row_heights[r];\n\t\t\t\t\t}\n\t\t\t\t\telse if (row_heights[r] < minimum_row_heights[r])\n\t\t\t\t\t{\n\t\t\t\t\t\trow_heights[r] = minimum_row_heights[r];\n\t\t\t\t\t}\n\t\t\t\t\telse if (row_heights[r] > maximum_row_heights[r])\n\t\t\t\t\t{\n\t\t\t\t\t\trow_heights[r] = maximum_row_heights[r];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttotal_height += row_heights[r];\n\t\t\t}\n\n\t\t\tint total_width = 0;\n\t\t\tfor (int c = 0; c < ncols; c++)\n\t\t\t{\n\t\t\t\tif (takeSizesIntoAccount)\n\t\t\t\t{\n\t\t\t\t\t// correct cases where\n\t\t\t\t\t// minimum_col_widths[col] <= col_widths[col] <= maximum_col_widths[col]\n\t\t\t\t\t// is not true by clipping to the minimum_col_widths and maximum_col_widths\n\t\t\t\t\tif (minimum_col_widths[c] >= maximum_col_widths[c])\n\t\t\t\t\t{\n\t\t\t\t\t\tmaximum_col_widths[c] = minimum_col_widths[c];\n\t\t\t\t\t\tcol_widths[c] = minimum_col_widths[c];\n\t\t\t\t\t}\n\t\t\t\t\telse if (col_widths[c] < minimum_col_widths[c])\n\t\t\t\t\t{\n\t\t\t\t\t\tcol_widths[c] = minimum_col_widths[c];\n\t\t\t\t\t}\n\t\t\t\t\telse if (col_widths[c] > maximum_col_widths[c])\n\t\t\t\t\t{\n\t\t\t\t\t\tcol_widths[c] = maximum_col_widths[c];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttotal_width += col_widths[c];\n\t\t\t}\n\n\t\t\t// Pass 2: redistribute free space\n\t\t\tDimension parent_size = parent.getSize();\n\t\t\tInsets insets = parent.getInsets();\n\t\t\tint free_height = parent_size.height\n\t\t\t\t\t  - insets.top - insets.bottom\n\t\t\t\t\t  - (nrows - 1) * vgap\n\t\t\t\t\t  - distanceToBorders.top - distanceToBorders.bottom;\n\t\t\tint free_width = parent_size.width\n\t\t\t\t\t - insets.left - insets.right\n\t\t\t\t\t - (ncols - 1) * hgap\n\t\t\t\t\t - distanceToBorders.left - distanceToBorders.right;\n\n\t\t\tredistributeSpace(total_height,free_height,\n\t\t\t\t\t  takeSizesIntoAccount,\n\t\t\t\t\t  nrows,row_heights,\n\t\t\t\t\t  minimum_row_heights,\n\t\t\t\t\t  maximum_row_heights);\n\n\t\t\tredistributeSpace(total_width,free_width,\n\t\t\t\t\t  takeSizesIntoAccount,\n\t\t\t\t\t  ncols,col_widths,\n\t\t\t\t\t  minimum_col_widths,\n\t\t\t\t\t  maximum_col_widths);\n\n\t\t\t// Pass 3: layout components\n\t\t\tfor (int r = 0, y = insets.top + distanceToBorders.top, i = 0; r < nrows; y += row_heights[r] + vgap, r++)\n\t\t\t{\n\t\t\t\tfor (int c = 0, x = insets.left + distanceToBorders.left; c < ncols; x += col_widths[c] + hgap, c++, i++)\n\t\t\t\t{\n\t\t\t\t\tif (i < ncomponents)\n\t\t\t\t\t{\n\t\t\t\t\t\tComponent comp = parent.getComponent(i);\n\t\t\t\t\t\tDimension d = comp.getMaximumSize();\n\t\t\t\t\t\tint width = col_widths[c];\n\t\t\t\t\t\tint height = row_heights[r];\n\t\t\t\t\t\tint xCorrection = 0;\n\t\t\t\t\t\tint yCorrection = 0;\n\t\t\t\t\t\tif (width > d.width)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\txCorrection = (int)((width - d.width) * comp.getAlignmentX());\n\t\t\t\t\t\t\twidth = d.width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (height > d.height)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tyCorrection = (int)((height-d.height) * comp.getAlignmentY());\n\t\t\t\t\t\t\theight = d.height;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcomp.setBounds(x + xCorrection, y + yCorrection, width, height);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} // synchronized\n\t}\n\n\tpublic void invalidateLayout(Container container)\n\t{\n\t}\n\n\t/**\n\t * Returns the string representation of this variable grid layout's values.\n\t * @return  a string representation of this variable grid layout.\n\t */\n\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[mode=\"\n\t\t\t+ ((FIXED_NUM_ROWS == mode) ? \"FIXED_NUM_ROWS\"\n\t\t\t   : ((FIXED_NUM_COLUMNS == mode) ? \"FIXED_NUM_COLUMNS\"\n\t\t\t      : \"UNKNOWN(\" + mode + \")\")) + \",size=\" + size\n\t\t\t+ \",hgap=\" + hgap + \",vgap=\" + vgap\n\t\t\t+ \",takeSizesIntoAccount=\" + takeSizesIntoAccount\n\t\t\t+ \",distanceToBorders=\" + distanceToBorders + \"]\";\n\t}\n\n\t/**\n\t * @param  which  if LayoutSize.MINIMUM compute minimum layout size,\n\t *                if LayoutSize.MAXIMUM compute maximum layout size,\n\t *                if LayoutSize.PREFERRED compute preferred layout size.\n\t */\n\tprivate Dimension getLayoutSize(Container parent, LayoutSize which)\n\t{\n\t\tsynchronized (parent.getTreeLock())\n\t\t{\n\t\t\tupdate(parent);\n\n\t\t\tint ncomponents = parent.getComponentCount();\n\t\t\tlong h = 0;\n\t\t\tlong w = 0;\n\n\t\t\tfor (int r = 0, i = 0; r < nrows; r++)\n\t\t\t{\n\t\t\t\tint row_height = 0;\n\t\t\t\tfor (int c = 0; c < ncols; c++, i++)\n\t\t\t\t{\n\t\t\t\t\tif (i < ncomponents)\n\t\t\t\t\t{\n\t\t\t\t\t\tswitch (which)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase MINIMUM:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getMinimumSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase MAXIMUM:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getMaximumSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase PREFERRED:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getPreferredSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tthrow new InternalError(\"Missing case branch for LayoutSize: \" + which);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\th += row_height;\n\t\t\t}\n\n\t\t\tfor (int c = 0; c < ncols; c++)\n\t\t\t{\n\t\t\t\tint col_width = 0;\n\t\t\t\tfor (int r = 0; r < nrows; r++)\n\t\t\t\t{\n\t\t\t\t\tint i = r * ncols + c;\n\t\t\t\t\tif (i < ncomponents)\n\t\t\t\t\t{\n\t\t\t\t\t\tswitch (which)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase MINIMUM:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getMinimumSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase MAXIMUM:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getMaximumSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase PREFERRED:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getPreferredSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tthrow new InternalError(\"Missing case branch for LayoutSize: \" + which);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tw += col_width;\n\t\t\t}\n\n\t\t\tInsets insets = parent.getInsets();\n\t\t\tw += insets.left + insets.right + ((ncols - 1) * hgap) + distanceToBorders.left + distanceToBorders.right;\n\t\t\th += insets.top + insets.bottom + ((nrows - 1) * vgap) + distanceToBorders.top + distanceToBorders.bottom;\n\t\t\tif (w > Integer.MAX_VALUE)\n\t\t\t{\n\t\t\t\tw = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tif (h > Integer.MAX_VALUE)\n\t\t\t{\n\t\t\t\th = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\treturn new Dimension((int)w,(int)h);\n\t\t}\n\t}\n\n\tprivate void update(Container container)\n\t{\n\t\tint ncomponents = container.getComponentCount();\n\t\tint old_nrows = nrows;\n\t\tint old_ncols = ncols;\n\t\tif (this.mode == FIXED_NUM_ROWS)\n\t\t{\n\t\t\tnrows = this.size;\n\t\t\tncols = (ncomponents + nrows - 1) / nrows;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tncols = this.size;\n\t\t\tnrows = (ncomponents + ncols - 1) / ncols;\n\t\t}\n\t\tif (old_nrows != nrows)\n\t\t{\n\t\t\trow_heights = new int[nrows];\n\t\t\tif (takeSizesIntoAccount)\n\t\t\t{\n\t\t\t\tminimum_row_heights = new int[nrows];\n\t\t\t\tmaximum_row_heights = new int[nrows];\n\t\t\t}\n\t\t}\n\t\tif (old_ncols != ncols)\n\t\t{\n\t\t\tcol_widths = new int[ncols];\n\t\t\tif (takeSizesIntoAccount)\n\t\t\t{\n\t\t\t\tminimum_col_widths = new int[ncols];\n\t\t\t\tmaximum_col_widths = new int[ncols];\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void redistributeSpace(int total_size, int free_size, boolean takeSizesIntoAccount,\n\t\t\t\t       int nelements, int[] element_sizes,\n\t\t\t\t       int[] minimum_element_sizes, int[] maximum_element_sizes)\n\t{\n\t\tif (total_size != free_size)\n\t\t{\n\t\t\tif (takeSizesIntoAccount)\n\t\t\t{\n\t\t\t\tboolean grow = total_size < free_size;\n\t\t\t\t// calculate the size that is available for redistribution\n\t\t\t\tfree_size = (free_size - total_size) * (grow ? 1 : -1);\n\t\t\t\twhile (free_size != 0)\n\t\t\t\t{\n\t\t\t\t\t// calculate the amount of elements that can be resized without violating\n\t\t\t\t\t// the minimum and maximum sizes and their current cumulated size\n\t\t\t\t\tint modifyableAmount = 0;\n\t\t\t\t\tint modifySize = 0;\n\t\t\t\t\tfor (int i = 0 ; i < nelements ; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ((grow && (element_sizes[i] < maximum_element_sizes[i])) ||\n\t\t\t\t\t\t    (!grow && (element_sizes[i] > minimum_element_sizes[i])))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmodifyableAmount++;\n\t\t\t\t\t\t\tmodifySize += element_sizes[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tboolean checkBounds = true;\n\t\t\t\t\t// if all elements are at their minimum or maximum size, resize all elements\n\t\t\t\t\tif (0 == modifyableAmount)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = 0 ; i < nelements ; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmodifySize += element_sizes[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcheckBounds = false;\n\t\t\t\t\t\tmodifyableAmount = nelements;\n\t\t\t\t\t}\n\t\t\t\t\t// to prevent an endless loop if the container gets resized to a very small amount\n\t\t\t\t\tif (modifySize == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// resize the elements\n\t\t\t\t\tif (free_size < modifyableAmount)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = 0 ; i < nelements ; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ((free_size != 0) &&\n\t\t\t\t\t\t\t    (!checkBounds ||\n\t\t\t\t\t\t\t     (checkBounds &&\n\t\t\t\t\t\t\t      (grow && (element_sizes[i] < maximum_element_sizes[i])) ||\n\t\t\t\t\t\t\t      (!grow && (element_sizes[i] > minimum_element_sizes[i])))))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\telement_sizes[i] += (grow ? 1 : -1);\n\t\t\t\t\t\t\t\tif (0 > element_sizes[i])\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\telement_sizes[i] = 0;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfree_size--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tint modifySizeAddition = 0;\n\t\t\t\t\t\tfor (int i = 0 ; i < nelements ; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint modifyableSize = (checkBounds ? (grow ? maximum_element_sizes[i] - element_sizes[i] : element_sizes[i] - minimum_element_sizes[i]) : Integer.MAX_VALUE - element_sizes[i]);\n\t\t\t\t\t\t\tint elementModifySize = (int)((double)free_size / (double)modifySize * (double)element_sizes[i]);\n\t\t\t\t\t\t\tif (elementModifySize <= modifyableSize)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\telement_sizes[i] += (grow ? elementModifySize : -elementModifySize);\n\t\t\t\t\t\t\t\tmodifySizeAddition += (grow ? elementModifySize : -elementModifySize);\n\t\t\t\t\t\t\t\tfree_size -= elementModifySize;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\telement_sizes[i] += (grow ? modifyableSize : -modifyableSize);\n\t\t\t\t\t\t\t\tmodifySizeAddition += (grow ? modifyableSize : -modifyableSize);\n\t\t\t\t\t\t\t\tfree_size -= modifyableSize;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (0 > element_sizes[i])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\telement_sizes[i] = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmodifySize += modifySizeAddition;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdouble d = (double)free_size / (double)total_size;\n\t\t\t\tfor (int i = 0; i < nelements; i++)\n\t\t\t\t{\n\t\t\t\t\telement_sizes[i] = (int)(element_sizes[i] * d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate int mode;\n\tprivate int size;\n\tprivate int hgap;\n\tprivate int vgap;\n\tprivate boolean takeSizesIntoAccount;\n\tprivate Insets distanceToBorders;\n\tprivate transient int nrows = -1;\n\tprivate transient int ncols = -1;\n\tprivate transient int[] minimum_row_heights = null;\n\tprivate transient int[] minimum_col_widths = null;\n\tprivate transient int[] row_heights = null;\n\tprivate transient int[] col_widths = null;\n\tprivate transient int[] maximum_row_heights = null;\n\tprivate transient int[] maximum_col_widths = null;", "functions": [{"function_name": "addLayoutComponent", "code": "\tpublic void addLayoutComponent(String name, Component component)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addLayoutComponent", "code": "\tpublic void addLayoutComponent(Component component, Object constraints)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeLayoutComponent", "code": "\tpublic void removeLayoutComponent(Component component)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLayoutAlignmentX", "code": "\tpublic float getLayoutAlignmentX(Container container)\n\t{\n\t\treturn 0.5f;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLayoutAlignmentY", "code": "\tpublic float getLayoutAlignmentY(Container container)\n\t{\n\t\treturn 0.5f;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "preferredLayoutSize", "code": "\tpublic Dimension preferredLayoutSize(Container parent)\n\t{\n\t\treturn getLayoutSize(parent,LayoutSize.PREFERRED);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "minimumLayoutSize", "code": "\tpublic Dimension minimumLayoutSize(Container parent)\n\t{\n\t\treturn getLayoutSize(parent,LayoutSize.MINIMUM);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "maximumLayoutSize", "code": "\tpublic Dimension maximumLayoutSize(Container parent)\n\t{\n\t\treturn getLayoutSize(parent,LayoutSize.MAXIMUM);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "layoutContainer", "code": "\tpublic void layoutContainer(Container parent)\n\t{\n\t\tsynchronized (parent.getTreeLock())\n\t\t{\n\t\t\tupdate(parent);\n\n\t\t\tint ncomponents = parent.getComponentCount();\n\n\t\t\tif (ncomponents == 0)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Pass 1: compute minimum, preferred and maximum row heights / column widths\n\t\t\tint total_height = 0;\n\t\t\tArrays.fill(row_heights,0);\n\t\t\tArrays.fill(col_widths,0);\n\t\t\tif (takeSizesIntoAccount)\n\t\t\t{\n\t\t\t\tArrays.fill(minimum_row_heights,0);\n\t\t\t\tArrays.fill(minimum_col_widths,0);\n\t\t\t\tArrays.fill(maximum_row_heights,Integer.MAX_VALUE);\n\t\t\t\tArrays.fill(maximum_col_widths,Integer.MAX_VALUE);\n\t\t\t}\n\t\t\tfor (int r = 0, i = 0; r < nrows; r++)\n\t\t\t{\n\t\t\t\tfor (int c = 0; c < ncols; c++, i++)\n\t\t\t\t{\n\t\t\t\t\tif (i < ncomponents)\n\t\t\t\t\t{\n\t\t\t\t\t\tComponent comp = parent.getComponent(i);\n\t\t\t\t\t\tDimension d = comp.getPreferredSize();\n\t\t\t\t\t\trow_heights[r] = Math.max(row_heights[r], d.height);\n\t\t\t\t\t\tcol_widths[c] = Math.max(col_widths[c], d.width);\n\t\t\t\t\t\tif (takeSizesIntoAccount)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\td = comp.getMinimumSize();\n\t\t\t\t\t\t\tminimum_row_heights[r] = Math.max(minimum_row_heights[r], d.height);\n\t\t\t\t\t\t\tminimum_col_widths[c] = Math.max(minimum_col_widths[c], d.width);\n\t\t\t\t\t\t\td = comp.getMaximumSize();\n\t\t\t\t\t\t\tmaximum_row_heights[r] = Math.min(maximum_row_heights[r], d.height);\n\t\t\t\t\t\t\tmaximum_col_widths[c] = Math.min(maximum_col_widths[c], d.width);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (takeSizesIntoAccount)\n\t\t\t\t{\n\t\t\t\t\t// correct cases where\n\t\t\t\t\t// minimum_row_heights[row] <= row_heights[row] <= maximum_row_heights[row]\n\t\t\t\t\t// is not true by clipping to the minimum_row_heights and maximum_row_heights\n\t\t\t\t\tif (minimum_row_heights[r] >= maximum_row_heights[r])\n\t\t\t\t\t{\n\t\t\t\t\t\tmaximum_row_heights[r] = minimum_row_heights[r];\n\t\t\t\t\t\trow_heights[r] = minimum_row_heights[r];\n\t\t\t\t\t}\n\t\t\t\t\telse if (row_heights[r] < minimum_row_heights[r])\n\t\t\t\t\t{\n\t\t\t\t\t\trow_heights[r] = minimum_row_heights[r];\n\t\t\t\t\t}\n\t\t\t\t\telse if (row_heights[r] > maximum_row_heights[r])\n\t\t\t\t\t{\n\t\t\t\t\t\trow_heights[r] = maximum_row_heights[r];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttotal_height += row_heights[r];\n\t\t\t}\n\n\t\t\tint total_width = 0;\n\t\t\tfor (int c = 0; c < ncols; c++)\n\t\t\t{\n\t\t\t\tif (takeSizesIntoAccount)\n\t\t\t\t{\n\t\t\t\t\t// correct cases where\n\t\t\t\t\t// minimum_col_widths[col] <= col_widths[col] <= maximum_col_widths[col]\n\t\t\t\t\t// is not true by clipping to the minimum_col_widths and maximum_col_widths\n\t\t\t\t\tif (minimum_col_widths[c] >= maximum_col_widths[c])\n\t\t\t\t\t{\n\t\t\t\t\t\tmaximum_col_widths[c] = minimum_col_widths[c];\n\t\t\t\t\t\tcol_widths[c] = minimum_col_widths[c];\n\t\t\t\t\t}\n\t\t\t\t\telse if (col_widths[c] < minimum_col_widths[c])\n\t\t\t\t\t{\n\t\t\t\t\t\tcol_widths[c] = minimum_col_widths[c];\n\t\t\t\t\t}\n\t\t\t\t\telse if (col_widths[c] > maximum_col_widths[c])\n\t\t\t\t\t{\n\t\t\t\t\t\tcol_widths[c] = maximum_col_widths[c];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttotal_width += col_widths[c];\n\t\t\t}\n\n\t\t\t// Pass 2: redistribute free space\n\t\t\tDimension parent_size = parent.getSize();\n\t\t\tInsets insets = parent.getInsets();\n\t\t\tint free_height = parent_size.height\n\t\t\t\t\t  - insets.top - insets.bottom\n\t\t\t\t\t  - (nrows - 1) * vgap\n\t\t\t\t\t  - distanceToBorders.top - distanceToBorders.bottom;\n\t\t\tint free_width = parent_size.width\n\t\t\t\t\t - insets.left - insets.right\n\t\t\t\t\t - (ncols - 1) * hgap\n\t\t\t\t\t - distanceToBorders.left - distanceToBorders.right;\n\n\t\t\tredistributeSpace(total_height,free_height,\n\t\t\t\t\t  takeSizesIntoAccount,\n\t\t\t\t\t  nrows,row_heights,\n\t\t\t\t\t  minimum_row_heights,\n\t\t\t\t\t  maximum_row_heights);\n\n\t\t\tredistributeSpace(total_width,free_width,\n\t\t\t\t\t  takeSizesIntoAccount,\n\t\t\t\t\t  ncols,col_widths,\n\t\t\t\t\t  minimum_col_widths,\n\t\t\t\t\t  maximum_col_widths);\n\n\t\t\t// Pass 3: layout components\n\t\t\tfor (int r = 0, y = insets.top + distanceToBorders.top, i = 0; r < nrows; y += row_heights[r] + vgap, r++)\n\t\t\t{\n\t\t\t\tfor (int c = 0, x = insets.left + distanceToBorders.left; c < ncols; x += col_widths[c] + hgap, c++, i++)\n\t\t\t\t{\n\t\t\t\t\tif (i < ncomponents)\n\t\t\t\t\t{\n\t\t\t\t\t\tComponent comp = parent.getComponent(i);\n\t\t\t\t\t\tDimension d = comp.getMaximumSize();\n\t\t\t\t\t\tint width = col_widths[c];\n\t\t\t\t\t\tint height = row_heights[r];\n\t\t\t\t\t\tint xCorrection = 0;\n\t\t\t\t\t\tint yCorrection = 0;\n\t\t\t\t\t\tif (width > d.width)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\txCorrection = (int)((width - d.width) * comp.getAlignmentX());\n\t\t\t\t\t\t\twidth = d.width;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (height > d.height)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tyCorrection = (int)((height-d.height) * comp.getAlignmentY());\n\t\t\t\t\t\t\theight = d.height;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcomp.setBounds(x + xCorrection, y + yCorrection, width, height);", "ast_nodes": ["FUNC_DECL", "PARAM", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LOOP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "IF", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "BREAK_CONTINUE", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [2, 16], [0, 17], [0, 18], [7, 19], [9, 20], [0, 21], [0, 22], [12, 23], [0, 24], [2, 25], [15, 26], [3, 27], [4, 28], [5, 29], [6, 30], [7, 31], [8, 32], [9, 33], [9, 34], [21, 35], [22, 36], [11, 37], [12, 38], [23, 39], [13, 40], [25, 41], [25, 42], [2, 43], [2, 44], [2, 45], [27, 46], [28, 47], [7, 48], [7, 49], [9, 50], [34, 51], [9, 52], [9, 53], [10, 54], [10, 55], [10, 56], [10, 57], [25, 58], [41, 59], [46, 60], [47, 61], [31, 62], [33, 63], [34, 64], [56, 65], [57, 66], [58, 67], [25, 68], [25, 69], [60, 70], [60, 71], [61, 72], [61, 73], [62, 74], [62, 75], [63, 76], [63, 77], [64, 78], [34, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [70, 88], [71, 89], [72, 90], [73, 91], [74, 92], [74, 93], [76, 94], [76, 95], [64, 96], [64, 97], [64, 98], [64, 99], [58, 100], [80, 101], [81, 102], [88, 103], [90, 104], [92, 105], [62, 106], [62, 107], [94, 108], [63, 109], [63, 110], [64, 111], [64, 112], [100, 113], [100, 114], [82, 115], [83, 116], [86, 117], [87, 118], [74, 119], [76, 120], [111, 121], [112, 122], [98, 123], [99, 124], [80, 125], [80, 126], [81, 127], [81, 128], [92, 129], [94, 130], [97, 131], [97, 132], [97, 133], [97, 134], [97, 135], [97, 136], [131, 137], [132, 138], [133, 139], [134, 140], [135, 141], [136, 142], [126, 143], [128, 144], [143, 145], [143, 146], [144, 147], [144, 148], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 2], [17, 0], [18, 0], [19, 7], [20, 9], [21, 0], [22, 0], [23, 12], [24, 0], [25, 2], [26, 15], [27, 3], [28, 4], [29, 5], [30, 6], [31, 7], [32, 8], [33, 9], [34, 9], [35, 21], [36, 22], [37, 11], [38, 12], [39, 23], [40, 13], [41, 25], [42, 25], [43, 2], [44, 2], [45, 2], [46, 27], [47, 28], [48, 7], [49, 7], [50, 9], [51, 34], [52, 9], [53, 9], [54, 10], [55, 10], [56, 10], [57, 10], [58, 25], [59, 41], [60, 46], [61, 47], [62, 31], [63, 33], [64, 34], [65, 56], [66, 57], [67, 58], [68, 25], [69, 25], [70, 60], [71, 60], [72, 61], [73, 61], [74, 62], [75, 62], [76, 63], [77, 63], [78, 64], [79, 34], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 70], [89, 71], [90, 72], [91, 73], [92, 74], [93, 74], [94, 76], [95, 76], [96, 64], [97, 64], [98, 64], [99, 64], [100, 58], [101, 80], [102, 81], [103, 88], [104, 90], [105, 92], [106, 62], [107, 62], [108, 94], [109, 63], [110, 63], [111, 64], [112, 64], [113, 100], [114, 100], [115, 82], [116, 83], [117, 86], [118, 87], [119, 74], [120, 76], [121, 111], [122, 112], [123, 98], [124, 99], [125, 80], [126, 80], [127, 81], [128, 81], [129, 92], [130, 94], [131, 97], [132, 97], [133, 97], [134, 97], [135, 97], [136, 97], [137, 131], [138, 132], [139, 133], [140, 134], [141, 135], [142, 136], [143, 126], [144, 128], [145, 143], [146, 143], [147, 144], [148, 144], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148]]}, {"function_name": "invalidateLayout", "code": "\tpublic void invalidateLayout(Container container)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[mode=\"\n\t\t\t+ ((FIXED_NUM_ROWS == mode) ? \"FIXED_NUM_ROWS\"\n\t\t\t   : ((FIXED_NUM_COLUMNS == mode) ? \"FIXED_NUM_COLUMNS\"\n\t\t\t      : \"UNKNOWN(\" + mode + \")\")) + \",size=\" + size\n\t\t\t+ \",hgap=\" + hgap + \",vgap=\" + vgap\n\t\t\t+ \",takeSizesIntoAccount=\" + takeSizesIntoAccount\n\t\t\t+ \",distanceToBorders=\" + distanceToBorders + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [14, 15], [14, 16], [16, 17], [17, 18], [17, 19], [19, 20], [19, 21], [20, 22], [20, 23], [20, 24], [21, 25], [21, 26], [22, 27], [22, 28], [22, 29], [26, 30], [27, 31], [27, 32], [32, 33], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 14], [16, 14], [17, 16], [18, 17], [19, 17], [20, 19], [21, 19], [22, 20], [23, 20], [24, 20], [25, 21], [26, 21], [27, 22], [28, 22], [29, 22], [30, 26], [31, 27], [32, 27], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getLayoutSize", "code": "\tprivate Dimension getLayoutSize(Container parent, LayoutSize which)\n\t{\n\t\tsynchronized (parent.getTreeLock())\n\t\t{\n\t\t\tupdate(parent);\n\n\t\t\tint ncomponents = parent.getComponentCount();\n\t\t\tlong h = 0;\n\t\t\tlong w = 0;\n\n\t\t\tfor (int r = 0, i = 0; r < nrows; r++)\n\t\t\t{\n\t\t\t\tint row_height = 0;\n\t\t\t\tfor (int c = 0; c < ncols; c++, i++)\n\t\t\t\t{\n\t\t\t\t\tif (i < ncomponents)\n\t\t\t\t\t{\n\t\t\t\t\t\tswitch (which)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase MINIMUM:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getMinimumSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase MAXIMUM:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getMaximumSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase PREFERRED:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getPreferredSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tthrow new InternalError(\"Missing case branch for LayoutSize: \" + which);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\th += row_height;\n\t\t\t}\n\n\t\t\tfor (int c = 0; c < ncols; c++)\n\t\t\t{\n\t\t\t\tint col_width = 0;\n\t\t\t\tfor (int r = 0; r < nrows; r++)\n\t\t\t\t{\n\t\t\t\t\tint i = r * ncols + c;\n\t\t\t\t\tif (i < ncomponents)\n\t\t\t\t\t{\n\t\t\t\t\t\tswitch (which)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase MINIMUM:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getMinimumSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase MAXIMUM:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getMaximumSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase PREFERRED:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getPreferredSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tthrow new InternalError(\"Missing case branch for LayoutSize: \" + which);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tw += col_width;\n\t\t\t}\n\n\t\t\tInsets insets = parent.getInsets();\n\t\t\tw += insets.left + insets.right + ((ncols - 1) * hgap) + distanceToBorders.left + distanceToBorders.right;\n\t\t\th += insets.top + insets.bottom + ((nrows - 1) * vgap) + distanceToBorders.top + distanceToBorders.bottom;\n\t\t\tif (w > Integer.MAX_VALUE)\n\t\t\t{\n\t\t\t\tw = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tif (h > Integer.MAX_VALUE)\n\t\t\t{\n\t\t\t\th = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\treturn new Dimension((int)w,(int)h);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "RETURN", "IF", "IF", "VAR_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [3, 13], [4, 14], [5, 15], [0, 16], [0, 17], [7, 18], [8, 19], [0, 20], [16, 21], [17, 22], [6, 23], [7, 24], [7, 25], [8, 26], [8, 27], [9, 28], [10, 29], [11, 30], [4, 31], [5, 32], [21, 33], [22, 34], [7, 35], [24, 36], [7, 37], [8, 38], [26, 39], [8, 40], [8, 41], [33, 42], [34, 43], [24, 44], [24, 45], [25, 46], [26, 47], [27, 48], [42, 49], [42, 50], [43, 51], [43, 52], [44, 53], [24, 54], [47, 55], [26, 56], [49, 57], [51, 58], [44, 59], [45, 60], [47, 61], [57, 62], [58, 63], [60, 64], [59, 65], [59, 66], [59, 67], [59, 68], [61, 69], [61, 70], [61, 71], [61, 72], [65, 73], [59, 74], [59, 75], [59, 76], [69, 77], [61, 78], [61, 79], [61, 80], [73, 81], [74, 82], [75, 83], [76, 84], [77, 85], [78, 86], [79, 87], [80, 88], [81, 89], [82, 90], [83, 91], [84, 92], [85, 93], [86, 94], [87, 95], [88, 96], [90, 97], [91, 98], [92, 99], [94, 100], [95, 101], [96, 102], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 3], [14, 4], [15, 5], [16, 0], [17, 0], [18, 7], [19, 8], [20, 0], [21, 16], [22, 17], [23, 6], [24, 7], [25, 7], [26, 8], [27, 8], [28, 9], [29, 10], [30, 11], [31, 4], [32, 5], [33, 21], [34, 22], [35, 7], [36, 24], [37, 7], [38, 8], [39, 26], [40, 8], [41, 8], [42, 33], [43, 34], [44, 24], [45, 24], [46, 25], [47, 26], [48, 27], [49, 42], [50, 42], [51, 43], [52, 43], [53, 44], [54, 24], [55, 47], [56, 26], [57, 49], [58, 51], [59, 44], [60, 45], [61, 47], [62, 57], [63, 58], [64, 60], [65, 59], [66, 59], [67, 59], [68, 59], [69, 61], [70, 61], [71, 61], [72, 61], [73, 65], [74, 59], [75, 59], [76, 59], [77, 69], [78, 61], [79, 61], [80, 61], [81, 73], [82, 74], [83, 75], [84, 76], [85, 77], [86, 78], [87, 79], [88, 80], [89, 81], [90, 82], [91, 83], [92, 84], [93, 85], [94, 86], [95, 87], [96, 88], [97, 90], [98, 91], [99, 92], [100, 94], [101, 95], [102, 96], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102]]}, {"function_name": "update", "code": "\tprivate void update(Container container)\n\t{\n\t\tint ncomponents = container.getComponentCount();\n\t\tint old_nrows = nrows;\n\t\tint old_ncols = ncols;\n\t\tif (this.mode == FIXED_NUM_ROWS)\n\t\t{\n\t\t\tnrows = this.size;\n\t\t\tncols = (ncomponents + nrows - 1) / nrows;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tncols = this.size;\n\t\t\tnrows = (ncomponents + ncols - 1) / ncols;\n\t\t}\n\t\tif (old_nrows != nrows)\n\t\t{\n\t\t\trow_heights = new int[nrows];\n\t\t\tif (takeSizesIntoAccount)\n\t\t\t{\n\t\t\t\tminimum_row_heights = new int[nrows];\n\t\t\t\tmaximum_row_heights = new int[nrows];\n\t\t\t}\n\t\t}\n\t\tif (old_ncols != ncols)\n\t\t{\n\t\t\tcol_widths = new int[ncols];\n\t\t\tif (takeSizesIntoAccount)\n\t\t\t{\n\t\t\t\tminimum_col_widths = new int[ncols];\n\t\t\t\tmaximum_col_widths = new int[ncols];", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [1, 11], [2, 12], [6, 13], [1, 14], [2, 15], [3, 16], [3, 17], [3, 18], [3, 19], [16, 20], [18, 21], [11, 22], [11, 23], [12, 24], [12, 25], [20, 26], [21, 27], [26, 28], [26, 29], [27, 30], [27, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 1], [12, 2], [13, 6], [14, 1], [15, 2], [16, 3], [17, 3], [18, 3], [19, 3], [20, 16], [21, 18], [22, 11], [23, 11], [24, 12], [25, 12], [26, 20], [27, 21], [28, 26], [29, 26], [30, 27], [31, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "redistributeSpace", "code": "\tprivate void redistributeSpace(int total_size, int free_size, boolean takeSizesIntoAccount,\n\t\t\t\t       int nelements, int[] element_sizes,\n\t\t\t\t       int[] minimum_element_sizes, int[] maximum_element_sizes)\n\t{\n\t\tif (total_size != free_size)\n\t\t{\n\t\t\tif (takeSizesIntoAccount)\n\t\t\t{\n\t\t\t\tboolean grow = total_size < free_size;\n\t\t\t\t// calculate the size that is available for redistribution\n\t\t\t\tfree_size = (free_size - total_size) * (grow ? 1 : -1);\n\t\t\t\twhile (free_size != 0)\n\t\t\t\t{\n\t\t\t\t\t// calculate the amount of elements that can be resized without violating\n\t\t\t\t\t// the minimum and maximum sizes and their current cumulated size\n\t\t\t\t\tint modifyableAmount = 0;\n\t\t\t\t\tint modifySize = 0;\n\t\t\t\t\tfor (int i = 0 ; i < nelements ; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ((grow && (element_sizes[i] < maximum_element_sizes[i])) ||\n\t\t\t\t\t\t    (!grow && (element_sizes[i] > minimum_element_sizes[i])))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmodifyableAmount++;\n\t\t\t\t\t\t\tmodifySize += element_sizes[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tboolean checkBounds = true;\n\t\t\t\t\t// if all elements are at their minimum or maximum size, resize all elements\n\t\t\t\t\tif (0 == modifyableAmount)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = 0 ; i < nelements ; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmodifySize += element_sizes[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcheckBounds = false;\n\t\t\t\t\t\tmodifyableAmount = nelements;\n\t\t\t\t\t}\n\t\t\t\t\t// to prevent an endless loop if the container gets resized to a very small amount\n\t\t\t\t\tif (modifySize == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// resize the elements\n\t\t\t\t\tif (free_size < modifyableAmount)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = 0 ; i < nelements ; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ((free_size != 0) &&\n\t\t\t\t\t\t\t    (!checkBounds ||\n\t\t\t\t\t\t\t     (checkBounds &&\n\t\t\t\t\t\t\t      (grow && (element_sizes[i] < maximum_element_sizes[i])) ||\n\t\t\t\t\t\t\t      (!grow && (element_sizes[i] > minimum_element_sizes[i])))))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\telement_sizes[i] += (grow ? 1 : -1);\n\t\t\t\t\t\t\t\tif (0 > element_sizes[i])\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\telement_sizes[i] = 0;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfree_size--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tint modifySizeAddition = 0;\n\t\t\t\t\t\tfor (int i = 0 ; i < nelements ; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint modifyableSize = (checkBounds ? (grow ? maximum_element_sizes[i] - element_sizes[i] : element_sizes[i] - minimum_element_sizes[i]) : Integer.MAX_VALUE - element_sizes[i]);\n\t\t\t\t\t\t\tint elementModifySize = (int)((double)free_size / (double)modifySize * (double)element_sizes[i]);\n\t\t\t\t\t\t\tif (elementModifySize <= modifyableSize)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\telement_sizes[i] += (grow ? elementModifySize : -elementModifySize);\n\t\t\t\t\t\t\t\tmodifySizeAddition += (grow ? elementModifySize : -elementModifySize);\n\t\t\t\t\t\t\t\tfree_size -= elementModifySize;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\telement_sizes[i] += (grow ? modifyableSize : -modifyableSize);\n\t\t\t\t\t\t\t\tmodifySizeAddition += (grow ? modifyableSize : -modifyableSize);\n\t\t\t\t\t\t\t\tfree_size -= modifyableSize;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (0 > element_sizes[i])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\telement_sizes[i] = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmodifySize += modifySizeAddition;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdouble d = (double)free_size / (double)total_size;\n\t\t\t\tfor (int i = 0; i < nelements; i++)\n\t\t\t\t{\n\t\t\t\t\telement_sizes[i] = (int)(element_sizes[i] * d);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LOOP", "VAR_DECL", "LOOP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "COND_EXPR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [10, 11], [10, 12], [10, 13], [10, 14], [11, 15], [13, 16], [10, 17], [12, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [16, 26], [17, 27], [14, 28], [11, 29], [11, 30], [19, 31], [20, 32], [21, 33], [23, 34], [27, 35], [27, 36], [19, 37], [19, 38], [19, 39], [20, 40], [32, 41], [21, 42], [33, 43], [22, 44], [23, 45], [24, 46], [25, 47], [35, 48], [35, 49], [29, 50], [19, 51], [37, 52], [39, 53], [21, 54], [21, 55], [42, 56], [45, 57], [23, 58], [37, 59], [37, 60], [37, 61], [37, 62], [38, 63], [39, 64], [55, 65], [57, 66], [57, 67], [59, 68], [60, 69], [37, 70], [64, 71], [39, 72], [42, 73], [42, 74], [45, 75], [66, 76], [67, 77], [68, 78], [62, 79], [64, 80], [71, 81], [71, 82], [59, 83], [60, 84], [60, 85], [60, 86], [60, 87], [60, 88], [60, 89], [61, 90], [79, 91], [79, 92], [80, 93], [64, 94], [81, 95], [82, 96], [83, 97], [85, 98], [86, 99], [88, 100], [89, 101], [90, 102], [92, 103], [92, 104], [93, 105], [94, 106], [95, 107], [95, 108], [80, 109], [106, 110], [106, 111], [107, 112], [108, 113], [109, 114], [113, 115], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 10], [12, 10], [13, 10], [14, 10], [15, 11], [16, 13], [17, 10], [18, 12], [19, 13], [20, 13], [21, 13], [22, 13], [23, 13], [24, 13], [25, 13], [26, 16], [27, 17], [28, 14], [29, 11], [30, 11], [31, 19], [32, 20], [33, 21], [34, 23], [35, 27], [36, 27], [37, 19], [38, 19], [39, 19], [40, 20], [41, 32], [42, 21], [43, 33], [44, 22], [45, 23], [46, 24], [47, 25], [48, 35], [49, 35], [50, 29], [51, 19], [52, 37], [53, 39], [54, 21], [55, 21], [56, 42], [57, 45], [58, 23], [59, 37], [60, 37], [61, 37], [62, 37], [63, 38], [64, 39], [65, 55], [66, 57], [67, 57], [68, 59], [69, 60], [70, 37], [71, 64], [72, 39], [73, 42], [74, 42], [75, 45], [76, 66], [77, 67], [78, 68], [79, 62], [80, 64], [81, 71], [82, 71], [83, 59], [84, 60], [85, 60], [86, 60], [87, 60], [88, 60], [89, 60], [90, 61], [91, 79], [92, 79], [93, 80], [94, 64], [95, 81], [96, 82], [97, 83], [98, 85], [99, 86], [100, 88], [101, 89], [102, 90], [103, 92], [104, 92], [105, 93], [106, 94], [107, 95], [108, 95], [109, 80], [110, 106], [111, 106], [112, 107], [113, 108], [114, 109], [115, 113], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115]]}, {"function_name": "VariableGridLayout", "code": "\tpublic VariableGridLayout(int mode, int size, int hgap, int vgap, boolean takeSizesIntoAccount, Insets distanceToBorders)\n\t{\n\t\tif (mode != FIXED_NUM_ROWS && mode != FIXED_NUM_COLUMNS)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"illegal mode; value is \" + mode);\n\t\t}\n\t\tif (size <= 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"size cannot be zero or less; value is \" + size);\n\t\t}\n\t\tif (hgap < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"hgap cannot be negative; value is \" + hgap);\n\t\t}\n\t\tif (vgap < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"vgap cannot be negative; value is \" + vgap);\n\t\t}\n\t\tthis.mode = mode;\n\t\tthis.size = size;\n\t\tthis.hgap = hgap;\n\t\tthis.vgap = vgap;\n\t\tthis.takeSizesIntoAccount = takeSizesIntoAccount;\n\t\tthis.distanceToBorders = (Insets)distanceToBorders.clone();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [2, 18], [3, 19], [4, 20], [1, 21], [17, 22], [2, 23], [18, 24], [3, 25], [19, 26], [4, 27], [20, 28], [20, 29], [11, 30], [21, 31], [23, 32], [25, 33], [27, 34], [31, 35], [32, 36], [33, 37], [34, 38], [35, 39], [36, 40], [37, 41], [38, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 2], [19, 3], [20, 4], [21, 1], [22, 17], [23, 2], [24, 18], [25, 3], [26, 19], [27, 4], [28, 20], [29, 20], [30, 11], [31, 21], [32, 23], [33, 25], [34, 27], [35, 31], [36, 32], [37, 33], [38, 34], [39, 35], [40, 36], [41, 37], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "VariableGridLayout", "code": "\tpublic VariableGridLayout(int mode, int size, int hgap, int vgap, boolean takeSizesIntoAccount)\n\t{\n\t\tthis(mode, size, hgap, vgap, takeSizesIntoAccount, new Insets(0,0,0,0));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [6, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 6], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "VariableGridLayout", "code": "\tpublic VariableGridLayout(int mode, int size, int hgap, int vgap)\n\t{\n\t\tthis(mode, size, hgap, vgap, false, new Insets(0,0,0,0));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [5, 8], [5, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 5], [9, 5], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "VariableGridLayout", "code": "\tpublic VariableGridLayout(int mode, int size)\n\t{\n\t\tthis(mode, size, 0, 0, false, new Insets(0,0,0,0));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [3, 8], [3, 9], [3, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 3], [9, 3], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "VariableGridLayout", "code": "\tpublic VariableGridLayout()\n\t{\n\t\tthis(FIXED_NUM_ROWS, 1, 0, 0, false, new Insets(0,0,0,0));", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "xalan-2.6-7706", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/compiler/SecuritySupport.java", "language": "java", "name": "org.apache.xpath.compiler.SecuritySupport", "code": "class SecuritySupport {\n\n    /*\n     * Make this of type Object so that the verifier won't try to\n     * prove its type, thus possibly trying to load the SecuritySupport12\n     * class.\n     */\n    private static final Object securitySupport;\n\n    static {\n\tSecuritySupport ss = null;\n\ttry {\n\t    Class c = Class.forName(\"java.security.AccessController\");\n\t    /*\n\t    c = Class.forName(\"javax.mail.SecuritySupport12\");\n\t    Constructor cons = c.getConstructor(new Class[] { });\n\t    ss = (SecuritySupport)cons.newInstance(new Object[] { });\n\t    */\n\t    /*\n\t     * Unfortunately, we can't load the class using reflection\n\t     * because the class is package private.  And the class has\n\t     * to be package private so the APIs aren't exposed to other\n\t     * code that could use them to circumvent security.  Thus,\n\t     * we accept the risk that the direct reference might fail\n\t     * on some JDK 1.1 JVMs, even though we would never execute\n\t     * this code in such a case.  Sigh...\n\t     */\n\t    ss = new SecuritySupport12();\n\t} catch (Exception ex) {\n\t} finally {\n\t    if (ss == null)\n\t\tss = new SecuritySupport();\n\t    securitySupport = ss;\n\t}\n    }\n\n    /**\n     * Return an appropriate instance of this class, depending on whether\n     * we're on a JDK 1.1 or J2SE 1.2 (or later) system.\n     */\n    static SecuritySupport getInstance() {\n\treturn (SecuritySupport)securitySupport;\n    }\n\n    ClassLoader getContextClassLoader() {\n\treturn null;\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return null;\n    }\n\n    ClassLoader getParentClassLoader(ClassLoader cl) {\n        return null;\n    }\n\n    String getSystemProperty(String propName) {\n        return System.getProperty(propName);\n    }\n\n    FileInputStream getFileInputStream(File file)\n        throws FileNotFoundException\n    {\n        return new FileInputStream(file);\n    }\n\n    InputStream getResourceAsStream(ClassLoader cl, String name) {\n        InputStream ris;\n        if (cl == null) {\n            ris = ClassLoader.getSystemResourceAsStream(name);\n        } else {\n            ris = cl.getResourceAsStream(name);\n        }\n        return ris;\n    }\n    \n    boolean getFileExists(File f) {\n        return f.exists();\n    }\n    \n    long getLastModified(File f) {\n        return f.lastModified();", "functions": [{"function_name": "getInstance", "code": "    static SecuritySupport getInstance() {\n\treturn (SecuritySupport)securitySupport;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(ClassLoader cl) {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(String propName) {\n        return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(File file)\n        throws FileNotFoundException\n    {\n        return new FileInputStream(file);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(ClassLoader cl, String name) {\n        InputStream ris;\n        if (cl == null) {\n            ris = ClassLoader.getSystemResourceAsStream(name);\n        } else {\n            ris = cl.getResourceAsStream(name);\n        }\n        return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [2, 8], [2, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 2], [9, 2], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(File f) {\n        return f.exists();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLastModified", "code": "    long getLastModified(File f) {\n        return f.lastModified();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "jedit-3.2-3720", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "bsh/BSHCastExpression.java", "language": "java", "name": "bsh.BSHCastExpression", "code": "class BSHCastExpression extends SimpleNode {\n\n    public BSHCastExpression(int id) { super(id); }\n\n\t/**\n\t\t@return the result of the cast.\n\t*/\n\tpublic Object eval(\n\t\tCallStack callstack, Interpreter interpreter ) throws EvalError\n    {\n\t\tNameSpace namespace = callstack.top();\n        Class toType = ((BSHType)jjtGetChild(0)).getType(namespace);\n\t\tSimpleNode expression = (SimpleNode)jjtGetChild(1);\n\n        // evaluate the expression\n        Object fromValue = expression.eval(callstack, interpreter);\n        Class fromType = fromValue.getClass();\n\n\t\ttry {\n\t\t\treturn castObject( fromValue, toType );\n\t\t} catch ( EvalError e ) {\n\t\t\te.reThrow( this );\n\t\t\tthrow new InterpreterError(\"can't happen\"); // help the compiler\n\t\t}\n    }\n\n\t/**\n\t\tCast an object to a new type.\n\t\tThis method can handle bsh.Primitive types (representing primitive \n\t\tcasts) as well as arbitrary object casts.\n\t\t@param fromValue an Object or bsh.Primitive primitive value \n\t\t@param toType the class type of the cast result, which may include\n\t\tprimitive types, e.g. Byte.TYPE\n\t*/\n\tpublic static Object castObject( Object fromValue, Class toType )\n\t\tthrows EvalError\n\t{\n        Class fromType = fromValue.getClass();\n\n\t\t// The compiler isn't smart enough to allow me to leave this unassigned\n\t\t// even though it is clearly assigned in all cases below.\n        Object result = null;\n\n\t\t// Going to a primitive type\n        if ( toType.isPrimitive() ) \n\t\t\tif ( fromValue instanceof Primitive )\n\t\t\t\tresult = castPrimitive( (Primitive)fromValue, toType );\n\t\t\telse\n\t\t\t\t// cannot convert from object to primitive\n                castError(fromValue.getClass(), toType);\n        else \n\t\t\t// Going to an object type\n\t\t\tif ( fromValue instanceof Primitive )\n\t\t\t\t// let castPrimitive handle trivial but legit case of NULL\n\t\t\t\tresult = castPrimitive( (Primitive)fromValue, toType );\n\t\t\telse\n\t\t\t\t// Can we use the proxy mechanism to cast a bsh.This to \n\t\t\t\t// the correct interface?\n\t\t\t\tif ( Capabilities.canGenerateInterfaces() &&\n\t\t\t\t\t(fromValue instanceof bsh.This) && toType.isInterface() ) \n\t\t\t\t\t\tresult = ((bsh.This)fromValue).getInterface( toType );\n\t\t\t\telse \n\t\t\t\t\t// Could probably add getAssignableForm here to allow \n\t\t\t\t\t// special bsh widening converions... wrappers to wrappers\n\t\t\t\t\tif ( toType.isInstance(fromValue ) )\n\t\t\t\t\t\tresult = fromValue;\n\t\t\t\t\telse\n\t\t\t\t\t\tcastError(fromType, toType);\n\n\t\tif ( result == null )\n\t\t\tthrow new InternalError(\"bad construct somewhere...\");\n\n\t\treturn result;\n\t}\n\n\t/**\n\t\tWrap up the ClassCastException in a TargetError so that it can\n\t\tbe caught...\n\t\tNode user should catch and add the node\n\t*/\n    public static void castError(Class from, Class to) throws EvalError {\n\t\tcastError( \n\t\t\tReflect.normalizeClassName(from), Reflect.normalizeClassName(to) );\n    }\n\n    public static void castError(String from, String to) throws EvalError \n\t{\n\t\tException cce = new ClassCastException(\"Illegal cast. Cannot cast \" +\n            from + \" to \" + to );\n\t\tthrow new TargetError( \"Cast\", cce );\n    }\n\n\t/**\n\t\tCast the bsh.Primitive value to a new bsh.Primitive value\n\t\tThis is usually a numeric type cast.  Other cases include:\n\t\t\tboolean can be cast to boolen\n\t\t\tnull can be cast to any object type\n\t\t\tvoid cannot be cast to anything\n\t*/\n\tpublic static Primitive castPrimitive( Primitive primValue, Class toType ) \n\t\tthrows EvalError\n\t{\n\t\t// can't cast void to anything\n\t\tif ( primValue == Primitive.VOID )\n\t\t\tcastError( \"void value\", Reflect.normalizeClassName(toType) );\n\n\t\t// unwrap, etc.\n\t\tObject value = primValue.getValue();\n\t\tClass fromType = primValue.getType();\n\n\t\t// Trying to cast primitive to an object type?\n\t\t// only works for Primitive.NULL\n\t\tif ( !toType.isPrimitive() )\n\t\t\tif ( primValue != Primitive.NULL )\n\t\t\t\tcastError(\"primitive value\", \"object type:\" + toType);\n\t\t\telse\n\t\t\t\treturn primValue;\n\n\t\t// can only cast boolean to boolean\n\t\tif ( fromType == Boolean.TYPE )\n\t\t{\n\t\t\tif ( toType != Boolean.TYPE )\n\t\t\t\tcastError(fromType, toType);\n\t\t\telse \n\t\t\t\treturn primValue;\n\t\t}\n\n\t\t// trying to do numeric promotion\n\n\t\t// first promote char to Number type to avoid duplicating code\n\t\tif (value instanceof Character)\n\t\t\tvalue = new Integer(((Character)value).charValue());\n\n\t\tif (value instanceof Number)\n\t\t{\n\t\t\tNumber number = (Number)value;\n\n\t\t\tif (toType == Byte.TYPE)\n\t\t\t\tvalue = new Primitive(number.byteValue());\n\t\t\telse if(toType == Short.TYPE)\n\t\t\t\tvalue = new Primitive(number.shortValue());\n\t\t\telse if(toType == Character.TYPE)\n\t\t\t\tvalue = new Primitive((char)number.intValue());\n\t\t\telse if(toType == Integer.TYPE)\n\t\t\t\tvalue = new Primitive(number.intValue());\n\t\t\telse if(toType == Long.TYPE)\n\t\t\t\tvalue = new Primitive(number.longValue());\n\t\t\telse if(toType == Float.TYPE)\n\t\t\t\tvalue = new Primitive(number.floatValue());\n\t\t\telse if(toType == Double.TYPE)\n\t\t\t\tvalue = new Primitive(number.doubleValue());\n\t\t\telse\n\t\t\t\tcastError(fromType, toType);\n\n\t\t\treturn (Primitive)value;\n\t\t} \n\n\t\tthrow new EvalError(\"unknown type in cast\");", "functions": [{"function_name": "eval", "code": "\tpublic Object eval(\n\t\tCallStack callstack, Interpreter interpreter ) throws EvalError\n    {\n\t\tNameSpace namespace = callstack.top();\n        Class toType = ((BSHType)jjtGetChild(0)).getType(namespace);\n\t\tSimpleNode expression = (SimpleNode)jjtGetChild(1);\n\n        // evaluate the expression\n        Object fromValue = expression.eval(callstack, interpreter);\n        Class fromType = fromValue.getClass();\n\n\t\ttry {\n\t\t\treturn castObject( fromValue, toType );\n\t\t} catch ( EvalError e ) {\n\t\t\te.reThrow( this );\n\t\t\tthrow new InterpreterError(\"can't happen\"); // help the compiler", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [9, 11], [10, 12], [2, 13], [3, 14], [6, 15], [11, 16], [9, 17], [4, 18], [5, 19], [16, 20], [18, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 9], [12, 10], [13, 2], [14, 3], [15, 6], [16, 11], [17, 9], [18, 4], [19, 5], [20, 16], [21, 18], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "castObject", "code": "\tpublic static Object castObject( Object fromValue, Class toType )\n\t\tthrows EvalError\n\t{\n        Class fromType = fromValue.getClass();\n\n\t\t// The compiler isn't smart enough to allow me to leave this unassigned\n\t\t// even though it is clearly assigned in all cases below.\n        Object result = null;\n\n\t\t// Going to a primitive type\n        if ( toType.isPrimitive() ) \n\t\t\tif ( fromValue instanceof Primitive )\n\t\t\t\tresult = castPrimitive( (Primitive)fromValue, toType );\n\t\t\telse\n\t\t\t\t// cannot convert from object to primitive\n                castError(fromValue.getClass(), toType);\n        else \n\t\t\t// Going to an object type\n\t\t\tif ( fromValue instanceof Primitive )\n\t\t\t\t// let castPrimitive handle trivial but legit case of NULL\n\t\t\t\tresult = castPrimitive( (Primitive)fromValue, toType );\n\t\t\telse\n\t\t\t\t// Can we use the proxy mechanism to cast a bsh.This to \n\t\t\t\t// the correct interface?\n\t\t\t\tif ( Capabilities.canGenerateInterfaces() &&\n\t\t\t\t\t(fromValue instanceof bsh.This) && toType.isInterface() ) \n\t\t\t\t\t\tresult = ((bsh.This)fromValue).getInterface( toType );\n\t\t\t\telse \n\t\t\t\t\t// Could probably add getAssignableForm here to allow \n\t\t\t\t\t// special bsh widening converions... wrappers to wrappers\n\t\t\t\t\tif ( toType.isInstance(fromValue ) )\n\t\t\t\t\t\tresult = fromValue;\n\t\t\t\t\telse\n\t\t\t\t\t\tcastError(fromType, toType);\n\n\t\tif ( result == null )\n\t\t\tthrow new InternalError(\"bad construct somewhere...\");\n\n\t\treturn result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [3, 11], [3, 12], [8, 13], [9, 14], [10, 15], [10, 16], [11, 17], [4, 18], [5, 19], [13, 20], [15, 21], [15, 22], [10, 23], [11, 24], [11, 25], [21, 26], [15, 27], [22, 28], [22, 29], [23, 30], [24, 31], [25, 32], [21, 33], [21, 34], [29, 35], [29, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 3], [12, 3], [13, 8], [14, 9], [15, 10], [16, 10], [17, 11], [18, 4], [19, 5], [20, 13], [21, 15], [22, 15], [23, 10], [24, 11], [25, 11], [26, 21], [27, 15], [28, 22], [29, 22], [30, 23], [31, 24], [32, 25], [33, 21], [34, 21], [35, 29], [36, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "castError", "code": "    public static void castError(Class from, Class to) throws EvalError {\n\t\tcastError( \n\t\t\tReflect.normalizeClassName(from), Reflect.normalizeClassName(to) );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "castError", "code": "    public static void castError(String from, String to) throws EvalError \n\t{\n\t\tException cce = new ClassCastException(\"Illegal cast. Cannot cast \" +\n            from + \" to \" + to );\n\t\tthrow new TargetError( \"Cast\", cce );", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [7, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 7], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "castPrimitive", "code": "\tpublic static Primitive castPrimitive( Primitive primValue, Class toType ) \n\t\tthrows EvalError\n\t{\n\t\t// can't cast void to anything\n\t\tif ( primValue == Primitive.VOID )\n\t\t\tcastError( \"void value\", Reflect.normalizeClassName(toType) );\n\n\t\t// unwrap, etc.\n\t\tObject value = primValue.getValue();\n\t\tClass fromType = primValue.getType();\n\n\t\t// Trying to cast primitive to an object type?\n\t\t// only works for Primitive.NULL\n\t\tif ( !toType.isPrimitive() )\n\t\t\tif ( primValue != Primitive.NULL )\n\t\t\t\tcastError(\"primitive value\", \"object type:\" + toType);\n\t\t\telse\n\t\t\t\treturn primValue;\n\n\t\t// can only cast boolean to boolean\n\t\tif ( fromType == Boolean.TYPE )\n\t\t{\n\t\t\tif ( toType != Boolean.TYPE )\n\t\t\t\tcastError(fromType, toType);\n\t\t\telse \n\t\t\t\treturn primValue;\n\t\t}\n\n\t\t// trying to do numeric promotion\n\n\t\t// first promote char to Number type to avoid duplicating code\n\t\tif (value instanceof Character)\n\t\t\tvalue = new Integer(((Character)value).charValue());\n\n\t\tif (value instanceof Number)\n\t\t{\n\t\t\tNumber number = (Number)value;\n\n\t\t\tif (toType == Byte.TYPE)\n\t\t\t\tvalue = new Primitive(number.byteValue());\n\t\t\telse if(toType == Short.TYPE)\n\t\t\t\tvalue = new Primitive(number.shortValue());\n\t\t\telse if(toType == Character.TYPE)\n\t\t\t\tvalue = new Primitive((char)number.intValue());\n\t\t\telse if(toType == Integer.TYPE)\n\t\t\t\tvalue = new Primitive(number.intValue());\n\t\t\telse if(toType == Long.TYPE)\n\t\t\t\tvalue = new Primitive(number.longValue());\n\t\t\telse if(toType == Float.TYPE)\n\t\t\t\tvalue = new Primitive(number.floatValue());\n\t\t\telse if(toType == Double.TYPE)\n\t\t\t\tvalue = new Primitive(number.doubleValue());\n\t\t\telse\n\t\t\t\tcastError(fromType, toType);\n\n\t\t\treturn (Primitive)value;\n\t\t} \n\n\t\tthrow new EvalError(\"unknown type in cast\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "ASSIGN", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [4, 14], [5, 15], [5, 16], [8, 17], [11, 18], [2, 19], [2, 20], [2, 21], [3, 22], [4, 23], [15, 24], [15, 25], [6, 26], [7, 27], [8, 28], [20, 29], [20, 30], [22, 31], [23, 32], [23, 33], [15, 34], [28, 35], [28, 36], [29, 37], [29, 38], [20, 39], [23, 40], [34, 41], [34, 42], [37, 43], [37, 44], [29, 45], [39, 46], [41, 47], [43, 48], [43, 49], [37, 50], [45, 51], [46, 52], [48, 53], [48, 54], [43, 55], [50, 56], [51, 57], [53, 58], [53, 59], [48, 60], [55, 61], [58, 62], [53, 63], [60, 64], [61, 65], [56, 66], [58, 67], [58, 68], [63, 69], [64, 70], [68, 71], [69, 72], [71, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 4], [15, 5], [16, 5], [17, 8], [18, 11], [19, 2], [20, 2], [21, 2], [22, 3], [23, 4], [24, 15], [25, 15], [26, 6], [27, 7], [28, 8], [29, 20], [30, 20], [31, 22], [32, 23], [33, 23], [34, 15], [35, 28], [36, 28], [37, 29], [38, 29], [39, 20], [40, 23], [41, 34], [42, 34], [43, 37], [44, 37], [45, 29], [46, 39], [47, 41], [48, 43], [49, 43], [50, 37], [51, 45], [52, 46], [53, 48], [54, 48], [55, 43], [56, 50], [57, 51], [58, 53], [59, 53], [60, 48], [61, 55], [62, 58], [63, 53], [64, 60], [65, 61], [66, 56], [67, 58], [68, 58], [69, 63], [70, 64], [71, 68], [72, 69], [73, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "BSHCastExpression", "code": "    public BSHCastExpression(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.5-6943", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/dom/BitArray.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.BitArray", "code": "public class BitArray implements Externalizable {\n\n    private int[] _bits;\n    private int   _bitSize;\n    private int   _intSize;\n    private int   _mask;\n\n    private final static int[] _masks = {\n\t0x80000000, 0x40000000, 0x20000000, 0x10000000,\n\t0x08000000, 0x04000000, 0x02000000, 0x01000000,\n\t0x00800000, 0x00400000, 0x00200000, 0x00100000,\n\t0x00080000, 0x00040000, 0x00020000, 0x00010000,\n\t0x00008000, 0x00004000, 0x00002000, 0x00001000,\n\t0x00000800, 0x00000400, 0x00000200, 0x00000100,\n\t0x00000080, 0x00000040, 0x00000020, 0x00000010,\n\t0x00000008, 0x00000004, 0x00000002, 0x00000001 };\n\n    private final static boolean DEBUG_ASSERTIONS = false;\n    \n    /**\n     * Constructor. Defines the initial size of the bit array (in bits).\n     */\n    public BitArray() {\n\tthis(32);\n    }\n\n    public BitArray(int size) {        \n        if (size < 32) size = 32;\n        _bitSize = size;\n        _intSize = (_bitSize >>> 5) + 1;\n        _bits = new int[_intSize + 1];\n    }\n\n    public BitArray(int size, int[] bits) {\n\tif (size < 32) size = 32;\n\t_bitSize = size;\n\t_intSize = (_bitSize >>> 5) + 1;\n\t_bits = bits;\n    }\n\n    /**\n     * Set the mask for this bit array. The upper 8 bits of this mask\n     * indicate the DOM in which the nodes in this array belong.\n     */    \n    public void setMask(int mask) {\n\t_mask = mask;\n    }\n\n    /**\n     * See setMask()\n     */\n    public int getMask() {\n\treturn(_mask);\n    }\n\n    /**\n     * Returns the size of this bit array (in bits).\n     */\n    public final int size() {\n\treturn(_bitSize);\n    }\n\n    /**\n     * Returns true if the given bit is set\n     */\n    public final boolean getBit(int bit) {\n        if (DEBUG_ASSERTIONS) {\n            if (bit >= _bitSize) {\n                throw new Error(\n                             \"Programmer's assertion in  BitArray.getBit\");\n            }\n        }\n\n        return((_bits[bit>>>5] & _masks[bit%32]) != 0);\n    }\n\n    /**\n     * Returns the next set bit from a given position\n     */\n    public final int getNextBit(int startBit) {\n        for (int i = (startBit >>> 5) ; i<=_intSize; i++) {\n            int bits = _bits[i];\n            if (bits != 0) {\n                for (int b = (startBit % 32); b<32; b++) {\n                    if ((bits & _masks[b]) != 0) {\n                        return((i << 5) + b);\n                    }\n                }\n            }\n            startBit = 0;\n        }\n        return(DTMAxisIterator.END);\n    }\n\n    /**\n     * This method returns the Nth bit that is set in the bit array. The\n     * current position is cached in the following 4 variables and will\n     * help speed up a sequence of next() call in an index iterator. This\n     * method is a mess, but it is fast and it works, so don't fuck with it.\n     */\n    private int _pos = Integer.MAX_VALUE;\n    private int _node = 0;\n    private int _int = 0;\n    private int _bit = 0;\n\n    public final int getBitNumber(int pos) {\n\n\tif (pos == _pos) return(_node);\n\t\n\tif (pos < _pos) {\n\t    _int = _bit = _pos = 0;\n\t}\n\n\tfor ( ; _int <= _intSize; _int++) {\n\t    int bits = _bits[_int];\n\t\tfor ( ; _bit < 32; _bit++) {\n\t\t    if ((bits & _masks[_bit]) != 0) {\n\t\t\tif (++_pos == pos) {\n\t\t\t    _node = ((_int << 5) + _bit) - 1;\n\t\t\t    return (_node);\n\t\t\t}\n\t\t    }\n\t\t}\n\t\t_bit = 0;\n\t    \n\t}\n\treturn(0);\n    }\n\n    /**\n     * Returns the integer array in which the bit array is contained\n     */\n    public final int[] data() {\n\treturn(_bits);\n    }\n\n\n    /**\n     * Sets a given bit\n     */\n    public final void setBit(int bit) {\n        if (DEBUG_ASSERTIONS) {\n            if (bit >= _bitSize) {\n                throw new Error(\n                             \"Programmer's assertion in  BitArray.getBit\");\n            }\n        }\n\n        if (bit >= _bitSize) return;\n        final int i = (bit >>> 5);\n        if (i < _first) _first = i;\n        if (i > _last) _last = i;\n        _bits[i] |= _masks[bit % 32];\n    }\n\n    /**\n     * Merge two bit arrays. This currently only works for nodes from\n     * a single DOM (because there is only one _mask per array).\n     */\n    public final BitArray merge(BitArray other) {\n\tif (_last == -1) {\n\t    _bits = other._bits;\n\t}\n\telse if (other._last != -1) {\n\t    int start = (_first < other._first) ? _first : other._first;\n\t    int stop  = (_last > other._last) ? _last : other._last;\n\n\t    if (other._intSize > _intSize) {\n\t\tif (stop > _intSize) stop = _intSize;\n\t\tfor (int i=start; i<=stop; i++)\n\t\t    other._bits[i] |= _bits[i];\n\t\t_bits = other._bits;\n\t    }\n\t    else {\n\t\tif (stop > other._intSize) stop = other._intSize;\n\t\tfor (int i=start; i<=stop; i++)\n\t\t    _bits[i] |= other._bits[i];\n\t    }\n\t}\n\treturn(this);\n    }\n\n    /**\n     * Resizes the bit array - try to avoid using this method!!!\n     */\n    public final void resize(int newSize) {\n\tif (newSize > _bitSize) {\n\t    _intSize = (newSize >>> 5) + 1;\n\t    final int[] newBits = new int[_intSize + 1];\n\t    System.arraycopy(_bits, 0, newBits, 0, (_bitSize>>>5) + 1);\n\t    _bits = newBits;\n\t    _bitSize = newSize;\n\t}\n    }\n\n    public BitArray cloneArray() {\n\treturn(new BitArray(_intSize, _bits));\n    }\n\n    public void writeExternal(ObjectOutput out) throws IOException {\n\tout.writeInt(_bitSize);\n\tout.writeInt(_mask);\n\tout.writeObject(_bits);\n\tout.flush();\n    }\n\n    /**\n     * Read the whole tree from a file (serialized)\n     */\n    public void readExternal(ObjectInput in)\n\tthrows IOException, ClassNotFoundException {\n\t_bitSize = in.readInt();\n\t_intSize = (_bitSize >>> 5) + 1;\n\t_mask    = in.readInt();\n\t_bits    = (int[])in.readObject();", "functions": [{"function_name": "setMask", "code": "    public void setMask(int mask) {\n\t_mask = mask;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMask", "code": "    public int getMask() {\n\treturn(_mask);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "size", "code": "    public final int size() {\n\treturn(_bitSize);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBit", "code": "    public final boolean getBit(int bit) {\n        if (DEBUG_ASSERTIONS) {\n            if (bit >= _bitSize) {\n                throw new Error(\n                             \"Programmer's assertion in  BitArray.getBit\");\n            }\n        }\n\n        return((_bits[bit>>>5] & _masks[bit%32]) != 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [7, 8], [7, 9], [6, 10], [6, 11], [9, 12], [10, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 7], [9, 7], [10, 6], [11, 6], [12, 9], [13, 10], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getNextBit", "code": "    public final int getNextBit(int startBit) {\n        for (int i = (startBit >>> 5) ; i<=_intSize; i++) {\n            int bits = _bits[i];\n            if (bits != 0) {\n                for (int b = (startBit % 32); b<32; b++) {\n                    if ((bits & _masks[b]) != 0) {\n                        return((i << 5) + b);\n                    }\n                }\n            }\n            startBit = 0;\n        }\n        return(DTMAxisIterator.END);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [5, 8], [2, 9], [7, 10], [5, 11], [8, 12], [9, 13], [11, 14], [11, 15], [14, 16], [15, 17], [11, 18], [15, 19], [17, 20], [17, 21], [18, 22], [19, 23], [23, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 5], [9, 2], [10, 7], [11, 5], [12, 8], [13, 9], [14, 11], [15, 11], [16, 14], [17, 15], [18, 11], [19, 15], [20, 17], [21, 17], [22, 18], [23, 19], [24, 23], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getBitNumber", "code": "    public final int getBitNumber(int pos) {\n\n\tif (pos == _pos) return(_node);\n\t\n\tif (pos < _pos) {\n\t    _int = _bit = _pos = 0;\n\t}\n\n\tfor ( ; _int <= _intSize; _int++) {\n\t    int bits = _bits[_int];\n\t\tfor ( ; _bit < 32; _bit++) {\n\t\t    if ((bits & _masks[_bit]) != 0) {\n\t\t\tif (++_pos == pos) {\n\t\t\t    _node = ((_int << 5) + _bit) - 1;\n\t\t\t    return (_node);\n\t\t\t}\n\t\t    }\n\t\t}\n\t\t_bit = 0;\n\t    \n\t}\n\treturn(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LOOP", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [4, 10], [2, 11], [2, 12], [2, 13], [11, 14], [3, 15], [13, 16], [11, 17], [14, 18], [15, 19], [17, 20], [19, 21], [17, 22], [20, 23], [20, 24], [21, 25], [22, 26], [22, 27], [22, 28], [28, 29], [29, 30], [29, 31], [31, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 4], [11, 2], [12, 2], [13, 2], [14, 11], [15, 3], [16, 13], [17, 11], [18, 14], [19, 15], [20, 17], [21, 19], [22, 17], [23, 20], [24, 20], [25, 21], [26, 22], [27, 22], [28, 22], [29, 28], [30, 29], [31, 29], [32, 31], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "data", "code": "    public final int[] data() {\n\treturn(_bits);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBit", "code": "    public final void setBit(int bit) {\n        if (DEBUG_ASSERTIONS) {\n            if (bit >= _bitSize) {\n                throw new Error(\n                             \"Programmer's assertion in  BitArray.getBit\");\n            }\n        }\n\n        if (bit >= _bitSize) return;\n        final int i = (bit >>> 5);\n        if (i < _first) _first = i;\n        if (i > _last) _last = i;\n        _bits[i] |= _masks[bit % 32];", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [4, 11], [1, 12], [2, 13], [3, 14], [5, 15], [14, 16], [15, 17], [7, 18], [15, 19], [18, 20], [19, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 4], [12, 1], [13, 2], [14, 3], [15, 5], [16, 14], [17, 15], [18, 7], [19, 15], [20, 18], [21, 19], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "merge", "code": "    public final BitArray merge(BitArray other) {\n\tif (_last == -1) {\n\t    _bits = other._bits;\n\t}\n\telse if (other._last != -1) {\n\t    int start = (_first < other._first) ? _first : other._first;\n\t    int stop  = (_last > other._last) ? _last : other._last;\n\n\t    if (other._intSize > _intSize) {\n\t\tif (stop > _intSize) stop = _intSize;\n\t\tfor (int i=start; i<=stop; i++)\n\t\t    other._bits[i] |= _bits[i];\n\t\t_bits = other._bits;\n\t    }\n\t    else {\n\t\tif (stop > other._intSize) stop = other._intSize;\n\t\tfor (int i=start; i<=stop; i++)\n\t\t    _bits[i] |= other._bits[i];\n\t    }\n\t}\n\treturn(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LOOP", "IF", "LOOP", "IF", "COND_EXPR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [4, 8], [4, 9], [4, 10], [6, 11], [2, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [9, 18], [10, 19], [14, 20], [15, 21], [8, 22], [16, 23], [17, 24], [18, 25], [19, 26], [14, 27], [15, 28], [16, 29], [17, 30], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 4], [9, 4], [10, 4], [11, 6], [12, 2], [13, 8], [14, 8], [15, 8], [16, 8], [17, 8], [18, 9], [19, 10], [20, 14], [21, 15], [22, 8], [23, 16], [24, 17], [25, 18], [26, 19], [27, 14], [28, 15], [29, 16], [30, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "resize", "code": "    public final void resize(int newSize) {\n\tif (newSize > _bitSize) {\n\t    _intSize = (newSize >>> 5) + 1;\n\t    final int[] newBits = new int[_intSize + 1];\n\t    System.arraycopy(_bits, 0, newBits, 0, (_bitSize>>>5) + 1);\n\t    _bits = newBits;\n\t    _bitSize = newSize;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [7, 10], [7, 11], [8, 12], [9, 13], [9, 14], [4, 15], [12, 16], [12, 17], [14, 18], [15, 19], [17, 20], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 7], [11, 7], [12, 8], [13, 9], [14, 9], [15, 4], [16, 12], [17, 12], [18, 14], [19, 15], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "cloneArray", "code": "    public BitArray cloneArray() {\n\treturn(new BitArray(_intSize, _bits));", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "writeExternal", "code": "    public void writeExternal(ObjectOutput out) throws IOException {\n\tout.writeInt(_bitSize);\n\tout.writeInt(_mask);\n\tout.writeObject(_bits);\n\tout.flush();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "readExternal", "code": "    public void readExternal(ObjectInput in)\n\tthrows IOException, ClassNotFoundException {\n\t_bitSize = in.readInt();\n\t_intSize = (_bitSize >>> 5) + 1;\n\t_mask    = in.readInt();\n\t_bits    = (int[])in.readObject();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [5, 8], [2, 9], [7, 10], [7, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 5], [9, 2], [10, 7], [11, 7], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "BitArray", "code": "    public BitArray() {\n\tthis(32);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BitArray", "code": "    public BitArray(int size) {        \n        if (size < 32) size = 32;\n        _bitSize = size;\n        _intSize = (_bitSize >>> 5) + 1;\n        _bits = new int[_intSize + 1];", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [1, 8], [6, 9], [3, 10], [7, 11], [7, 12], [8, 13], [10, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 1], [9, 6], [10, 3], [11, 7], [12, 7], [13, 8], [14, 10], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "BitArray", "code": "    public BitArray(int size, int[] bits) {\n\tif (size < 32) size = 32;\n\t_bitSize = size;\n\t_intSize = (_bitSize >>> 5) + 1;\n\t_bits = bits;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [5, 8], [1, 9], [7, 10], [8, 11], [8, 12], [9, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 5], [9, 1], [10, 7], [11, 8], [12, 8], [13, 9], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "camel-1.0-1587", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/http/JettyHttpComponent.java", "language": "java", "name": "org.apache.camel.component.http.JettyHttpComponent", "code": "public class JettyHttpComponent extends HttpComponent {\n\t\n\tServer server;\n\t\n\tclass ConnectorRef {\n\t\tConnector connector;\n\t\tint refCount = 0;\n\t\tpublic ConnectorRef(Connector connector) {\n\t\t\tthis.connector=connector;\n\t\t\tincrement();\n\t\t}\n\t\tpublic int increment() {\n\t\t\treturn ++refCount;\n\t\t}\n\t\tpublic int decrement() {\n\t\t\treturn --refCount;\n\t\t}\n\t}\n\t\n\tfinal HashMap<String, ConnectorRef> connectors = new HashMap<String, ConnectorRef>();\n\t\n\t\n\t\n\t\n\t@Override\n\tprotected void doStart() throws Exception {\n\t\tserver = createServer();\n\t\tsuper.doStart();\n\t}\n\n\tprivate Server createServer() throws Exception {\n\t\tsetCamelServlet(new CamelServlet());\n\t\t\n\t\tServer server = new Server();\n\t\tContext context = new Context(Context.NO_SECURITY|Context.NO_SESSIONS);\n\t\t        \n\t\tcontext.setContextPath(\"/\");\n\t\tServletHolder holder = new ServletHolder();\n\t\tholder.setServlet(getCamelServlet());\n\t\tcontext.addServlet(holder, \"/*\");\t\t\n\t\tserver.setHandler(context);\n\t\t\t\n\t\tserver.start();\n\t\treturn server;\n\t}\n\n\t@Override\n\tprotected void doStop() throws Exception {\n\t\tfor (ConnectorRef connectorRef : connectors.values()) {\n\t\t\tconnectorRef.connector.stop();\n\t\t}\n\t\tconnectors.clear();\n\t\t\n\t\tserver.stop();\n\t\tsuper.doStop();\n\t}\n\n\t@Override\n\tpublic void connect(HttpConsumer consumer) throws Exception {\n\t\t\n\t\tHttpEndpoint endpoint = (HttpEndpoint) consumer.getEndpoint();\n\t\tString connectorKey = endpoint.getProtocol()+\":\"+endpoint.getPort();\n\t\t\n\t\tsynchronized(connectors) {\n\t\t\tConnectorRef connectorRef = connectors.get(connectorKey);\n\t\t\tif( connectorRef == null ) {\n\t\t\t\tConnector connector;\n\t\t\t\tif( \"https\".equals(endpoint.getProtocol()) ) {\n\t\t\t\t\tconnector = new SslSocketConnector();\n\t\t\t\t} else {\n\t\t\t\t\tconnector = new SelectChannelConnector();\n\t\t\t\t}\n\t\t\t\tconnector.setPort(endpoint.getPort());\n\t\t\t\tserver.addConnector(connector);\n\t\t\t\tconnector.start();\n\t\t\t\tconnectorRef = new ConnectorRef(connector);\n\t\t\t} else {\n\t\t\t\tconnectorRef.increment();\n\t\t\t}\n\t\t}\n\t\t\n\t\tsuper.connect(consumer);\n\t}\n\t\n\t@Override\n\tpublic void disconnect(HttpConsumer consumer) throws Exception {\n\t\tsuper.disconnect(consumer);\n\t\t\n\t\tHttpEndpoint endpoint = (HttpEndpoint) consumer.getEndpoint();\n\t\tString connectorKey = endpoint.getProtocol()+\":\"+endpoint.getPort();\n\t\t\n\t\tsynchronized(connectors) {\n\t\t\tConnectorRef connectorRef = connectors.get(connectorKey);\n\t\t\tif( connectorRef != null ) {\n\t\t\t\tif( connectorRef.decrement() == 0 ) {\n\t\t\t\t\tserver.removeConnector(connectorRef.connector);\n\t\t\t\t\tconnectorRef.connector.stop();\n\t\t\t\t\tconnectors.remove(connectorKey);", "functions": [{"function_name": "doStart", "code": "\t@Override\n\tprotected void doStart() throws Exception {\n\t\tserver = createServer();\n\t\tsuper.doStart();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createServer", "code": "\tprivate Server createServer() throws Exception {\n\t\tsetCamelServlet(new CamelServlet());\n\t\t\n\t\tServer server = new Server();\n\t\tContext context = new Context(Context.NO_SECURITY|Context.NO_SESSIONS);\n\t\t        \n\t\tcontext.setContextPath(\"/\");\n\t\tServletHolder holder = new ServletHolder();\n\t\tholder.setServlet(getCamelServlet());\n\t\tcontext.addServlet(holder, \"/*\");\t\t\n\t\tserver.setHandler(context);\n\t\t\t\n\t\tserver.start();\n\t\treturn server;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [7, 11], [8, 12], [2, 13], [9, 14], [3, 15], [4, 16], [10, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 7], [12, 8], [13, 2], [14, 9], [15, 3], [16, 4], [17, 10], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "doStop", "code": "\t@Override\n\tprotected void doStop() throws Exception {\n\t\tfor (ConnectorRef connectorRef : connectors.values()) {\n\t\t\tconnectorRef.connector.stop();\n\t\t}\n\t\tconnectors.clear();\n\t\t\n\t\tserver.stop();\n\t\tsuper.doStop();", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "connect", "code": "\t@Override\n\tpublic void connect(HttpConsumer consumer) throws Exception {\n\t\t\n\t\tHttpEndpoint endpoint = (HttpEndpoint) consumer.getEndpoint();\n\t\tString connectorKey = endpoint.getProtocol()+\":\"+endpoint.getPort();\n\t\t\n\t\tsynchronized(connectors) {\n\t\t\tConnectorRef connectorRef = connectors.get(connectorKey);\n\t\t\tif( connectorRef == null ) {\n\t\t\t\tConnector connector;\n\t\t\t\tif( \"https\".equals(endpoint.getProtocol()) ) {\n\t\t\t\t\tconnector = new SslSocketConnector();\n\t\t\t\t} else {\n\t\t\t\t\tconnector = new SelectChannelConnector();\n\t\t\t\t}\n\t\t\t\tconnector.setPort(endpoint.getPort());\n\t\t\t\tserver.addConnector(connector);\n\t\t\t\tconnector.start();\n\t\t\t\tconnectorRef = new ConnectorRef(connector);\n\t\t\t} else {\n\t\t\t\tconnectorRef.increment();\n\t\t\t}\n\t\t}\n\t\t\n\t\tsuper.connect(consumer);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 7], [4, 8], [4, 9], [6, 10], [5, 11], [7, 12], [7, 13], [2, 14], [4, 15], [4, 16], [4, 17], [4, 18], [4, 19], [8, 20], [13, 21], [13, 22], [16, 23], [19, 24], [20, 25], [8, 26], [8, 27], [25, 28], [26, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 1], [8, 4], [9, 4], [10, 6], [11, 5], [12, 7], [13, 7], [14, 2], [15, 4], [16, 4], [17, 4], [18, 4], [19, 4], [20, 8], [21, 13], [22, 13], [23, 16], [24, 19], [25, 20], [26, 8], [27, 8], [28, 25], [29, 26], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "disconnect", "code": "\t@Override\n\tpublic void disconnect(HttpConsumer consumer) throws Exception {\n\t\tsuper.disconnect(consumer);\n\t\t\n\t\tHttpEndpoint endpoint = (HttpEndpoint) consumer.getEndpoint();\n\t\tString connectorKey = endpoint.getProtocol()+\":\"+endpoint.getPort();\n\t\t\n\t\tsynchronized(connectors) {\n\t\t\tConnectorRef connectorRef = connectors.get(connectorKey);\n\t\t\tif( connectorRef != null ) {\n\t\t\t\tif( connectorRef.decrement() == 0 ) {\n\t\t\t\t\tserver.removeConnector(connectorRef.connector);\n\t\t\t\t\tconnectorRef.connector.stop();\n\t\t\t\t\tconnectors.remove(connectorKey);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 7], [4, 8], [6, 9], [5, 10], [7, 11], [7, 12], [2, 13], [8, 14], [12, 15], [12, 16], [14, 17], [14, 18], [8, 19], [8, 20], [8, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 1], [8, 4], [9, 6], [10, 5], [11, 7], [12, 7], [13, 2], [14, 8], [15, 12], [16, 12], [17, 14], [18, 14], [19, 8], [20, 8], [21, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}], "label": 0}
{"sample_id": "log4j-1.2-5058", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/lf5/viewer/categoryexplorer/CategoryExplorerModel.java", "language": "java", "name": "org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerModel", "code": "public class CategoryExplorerModel extends DefaultTreeModel {\n  private static final long serialVersionUID = -3413887384316015901L;\n\n  //--------------------------------------------------------------------------\n  //   Constants:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Protected Variables:\n  //--------------------------------------------------------------------------\n\n  protected boolean _renderFatal = true;\n  protected ActionListener _listener = null;\n  protected ActionEvent _event = new ActionEvent(this,\n      ActionEvent.ACTION_PERFORMED,\n      \"Nodes Selection changed\");\n\n  //--------------------------------------------------------------------------\n  //   Private Variables:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Constructors:\n  //--------------------------------------------------------------------------\n\n  public CategoryExplorerModel(CategoryNode node) {\n    super(node);\n  }\n  //--------------------------------------------------------------------------\n  //   Public Methods:\n  //--------------------------------------------------------------------------\n\n  public void addLogRecord(LogRecord lr) {\n    CategoryPath path = new CategoryPath(lr.getCategory());\n    addCategory(path); // create category path if it is new\n    CategoryNode node = getCategoryNode(path);\n    node.addRecord(); // update category node\n    if (_renderFatal && lr.isFatal()) {\n      TreeNode[] nodes = getPathToRoot(node);\n      int len = nodes.length;\n      CategoryNode parent;\n\n      // i = 0 gives root node\n      // skip node and root, loop through \"parents\" in between\n      for (int i = 1; i < len - 1; i++) {\n        parent = (CategoryNode) nodes[i];\n        parent.setHasFatalChildren(true);\n        nodeChanged(parent);\n      }\n      node.setHasFatalRecords(true);\n      nodeChanged(node);\n    }\n  }\n\n  public CategoryNode getRootCategoryNode() {\n    return (CategoryNode) getRoot();\n  }\n\n  public CategoryNode getCategoryNode(String category) {\n    CategoryPath path = new CategoryPath(category);\n    return (getCategoryNode(path));\n  }\n\n  /**\n   * returns null if no CategoryNode exists.\n   */\n  public CategoryNode getCategoryNode(CategoryPath path) {\n    CategoryNode root = (CategoryNode) getRoot();\n    CategoryNode parent = root; // Start condition.\n\n    for (int i = 0; i < path.size(); i++) {\n      CategoryElement element = path.categoryElementAt(i);\n\n      // If the two nodes have matching titles they are considered equal.\n      Enumeration children = parent.children();\n\n      boolean categoryAlreadyExists = false;\n      while (children.hasMoreElements()) {\n        CategoryNode node = (CategoryNode) children.nextElement();\n        String title = node.getTitle().toLowerCase();\n\n        String pathLC = element.getTitle().toLowerCase();\n        if (title.equals(pathLC)) {\n          categoryAlreadyExists = true;\n          // This is now the new parent node.\n          parent = node;\n          break; // out of the while, and back to the for().\n        }\n      }\n\n      if (categoryAlreadyExists == false) {\n        return null; // Didn't find the Node.\n      }\n    }\n\n    return (parent);\n  }\n\n  /**\n   * @return true if all the nodes in the specified CategoryPath are\n   * selected.\n   */\n  public boolean isCategoryPathActive(CategoryPath path) {\n    CategoryNode root = (CategoryNode) getRoot();\n    CategoryNode parent = root; // Start condition.\n    boolean active = false;\n\n    for (int i = 0; i < path.size(); i++) {\n      CategoryElement element = path.categoryElementAt(i);\n\n      // If the two nodes have matching titles they are considered equal.\n      Enumeration children = parent.children();\n\n      boolean categoryAlreadyExists = false;\n      active = false;\n\n      while (children.hasMoreElements()) {\n        CategoryNode node = (CategoryNode) children.nextElement();\n        String title = node.getTitle().toLowerCase();\n\n        String pathLC = element.getTitle().toLowerCase();\n        if (title.equals(pathLC)) {\n          categoryAlreadyExists = true;\n          // This is now the new parent node.\n          parent = node;\n\n          if (parent.isSelected()) {\n            active = true;\n          }\n\n          break; // out of the while, and back to the for().\n        }\n      }\n\n      if (active == false || categoryAlreadyExists == false) {\n        return false;\n      }\n    }\n\n    return (active);\n  }\n\n\n  /**\n   * <p>Method altered by Richard Hurst such that it returns the CategoryNode\n   * corresponding to the CategoryPath</p>\n   *\n   * @param path category path.\n   * @return CategoryNode\n   */\n  public CategoryNode addCategory(CategoryPath path) {\n    CategoryNode root = (CategoryNode) getRoot();\n    CategoryNode parent = root; // Start condition.\n\n    for (int i = 0; i < path.size(); i++) {\n      CategoryElement element = path.categoryElementAt(i);\n\n      // If the two nodes have matching titles they are considered equal.\n      Enumeration children = parent.children();\n\n      boolean categoryAlreadyExists = false;\n      while (children.hasMoreElements()) {\n        CategoryNode node = (CategoryNode) children.nextElement();\n        String title = node.getTitle().toLowerCase();\n\n        String pathLC = element.getTitle().toLowerCase();\n        if (title.equals(pathLC)) {\n          categoryAlreadyExists = true;\n          // This is now the new parent node.\n          parent = node;\n          break;\n        }\n      }\n\n      if (categoryAlreadyExists == false) {\n        // We need to add the node.\n        CategoryNode newNode = new CategoryNode(element.getTitle());\n\n        //This method of adding a new node cause parent roots to be\n        // collapsed.\n        //parent.add( newNode );\n        //reload(parent);\n\n        // This doesn't force the nodes to collapse.\n        insertNodeInto(newNode, parent, parent.getChildCount());\n        refresh(newNode);\n\n        // The newly added node is now the parent.\n        parent = newNode;\n\n      }\n    }\n\n    return parent;\n  }\n\n  public void update(CategoryNode node, boolean selected) {\n    if (node.isSelected() == selected) {\n      return; // nothing was changed, nothing to do\n    }\n    // select parents or deselect children\n    if (selected) {\n      setParentSelection(node, true);\n    } else {\n      setDescendantSelection(node, false);\n    }\n  }\n\n  public void setDescendantSelection(CategoryNode node, boolean selected) {\n    Enumeration descendants = node.depthFirstEnumeration();\n    CategoryNode current;\n    while (descendants.hasMoreElements()) {\n      current = (CategoryNode) descendants.nextElement();\n      // does the current node need to be changed?\n      if (current.isSelected() != selected) {\n        current.setSelected(selected);\n        nodeChanged(current);\n      }\n    }\n    notifyActionListeners();\n  }\n\n  public void setParentSelection(CategoryNode node, boolean selected) {\n    TreeNode[] nodes = getPathToRoot(node);\n    int len = nodes.length;\n    CategoryNode parent;\n\n    // i = 0 gives root node, i=len-1 gives this node\n    // skip the root node\n    for (int i = 1; i < len; i++) {\n      parent = (CategoryNode) nodes[i];\n      if (parent.isSelected() != selected) {\n        parent.setSelected(selected);\n        nodeChanged(parent);\n      }\n    }\n    notifyActionListeners();\n  }\n\n\n  public synchronized void addActionListener(ActionListener l) {\n    _listener = AWTEventMulticaster.add(_listener, l);\n  }\n\n  public synchronized void removeActionListener(ActionListener l) {\n    _listener = AWTEventMulticaster.remove(_listener, l);\n  }\n\n  public void resetAllNodeCounts() {\n    Enumeration nodes = getRootCategoryNode().depthFirstEnumeration();\n    CategoryNode current;\n    while (nodes.hasMoreElements()) {\n      current = (CategoryNode) nodes.nextElement();\n      current.resetNumberOfContainedRecords();\n      nodeChanged(current);\n    }\n  }\n\n  /**\n   * <p>Returns the CategoryPath to the specified CategoryNode</p>\n   *\n   * @param node The target CategoryNode\n   * @return CategoryPath\n   */\n  public TreePath getTreePathToRoot(CategoryNode node) {\n    if (node == null) {\n      return null;\n    }\n    return (new TreePath(getPathToRoot(node)));\n  }\n\n  //--------------------------------------------------------------------------\n  //   Protected Methods:\n  //--------------------------------------------------------------------------\n  protected void notifyActionListeners() {\n    if (_listener != null) {\n      _listener.actionPerformed(_event);\n    }\n  }\n\n  /**\n   * Fires a nodechanged event on the SwingThread.\n   */\n  protected void refresh(final CategoryNode node) {\n    SwingUtilities.invokeLater(new Runnable() {\n      public void run() {\n        nodeChanged(node); // remind the tree to render the new node", "functions": [{"function_name": "addLogRecord", "code": "  public void addLogRecord(LogRecord lr) {\n    CategoryPath path = new CategoryPath(lr.getCategory());\n    addCategory(path); // create category path if it is new\n    CategoryNode node = getCategoryNode(path);\n    node.addRecord(); // update category node\n    if (_renderFatal && lr.isFatal()) {\n      TreeNode[] nodes = getPathToRoot(node);\n      int len = nodes.length;\n      CategoryNode parent;\n\n      // i = 0 gives root node\n      // skip node and root, loop through \"parents\" in between\n      for (int i = 1; i < len - 1; i++) {\n        parent = (CategoryNode) nodes[i];\n        parent.setHasFatalChildren(true);\n        nodeChanged(parent);\n      }\n      node.setHasFatalRecords(true);\n      nodeChanged(node);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [5, 12], [2, 13], [3, 14], [1, 15], [1, 16], [8, 17], [14, 18], [16, 19], [17, 20], [11, 21], [8, 22], [8, 23], [8, 24], [20, 25], [8, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 5], [13, 2], [14, 3], [15, 1], [16, 1], [17, 8], [18, 14], [19, 16], [20, 17], [21, 11], [22, 8], [23, 8], [24, 8], [25, 20], [26, 8], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getRootCategoryNode", "code": "  public CategoryNode getRootCategoryNode() {\n    return (CategoryNode) getRoot();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCategoryNode", "code": "  public CategoryNode getCategoryNode(String category) {\n    CategoryPath path = new CategoryPath(category);\n    return (getCategoryNode(path));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getCategoryNode", "code": "  public CategoryNode getCategoryNode(CategoryPath path) {\n    CategoryNode root = (CategoryNode) getRoot();\n    CategoryNode parent = root; // Start condition.\n\n    for (int i = 0; i < path.size(); i++) {\n      CategoryElement element = path.categoryElementAt(i);\n\n      // If the two nodes have matching titles they are considered equal.\n      Enumeration children = parent.children();\n\n      boolean categoryAlreadyExists = false;\n      while (children.hasMoreElements()) {\n        CategoryNode node = (CategoryNode) children.nextElement();\n        String title = node.getTitle().toLowerCase();\n\n        String pathLC = element.getTitle().toLowerCase();\n        if (title.equals(pathLC)) {\n          categoryAlreadyExists = true;\n          // This is now the new parent node.\n          parent = node;\n          break; // out of the while, and back to the for().\n        }\n      }\n\n      if (categoryAlreadyExists == false) {\n        return null; // Didn't find the Node.\n      }\n    }\n\n    return (parent);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [7, 13], [8, 14], [2, 15], [4, 16], [7, 17], [13, 18], [8, 19], [8, 20], [8, 21], [8, 22], [9, 23], [10, 24], [11, 25], [17, 26], [19, 27], [19, 28], [20, 29], [21, 30], [19, 31], [19, 32], [29, 33], [30, 34], [22, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 7], [14, 8], [15, 2], [16, 4], [17, 7], [18, 13], [19, 8], [20, 8], [21, 8], [22, 8], [23, 9], [24, 10], [25, 11], [26, 17], [27, 19], [28, 19], [29, 20], [30, 21], [31, 19], [32, 19], [33, 29], [34, 30], [35, 22], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "isCategoryPathActive", "code": "  public boolean isCategoryPathActive(CategoryPath path) {\n    CategoryNode root = (CategoryNode) getRoot();\n    CategoryNode parent = root; // Start condition.\n    boolean active = false;\n\n    for (int i = 0; i < path.size(); i++) {\n      CategoryElement element = path.categoryElementAt(i);\n\n      // If the two nodes have matching titles they are considered equal.\n      Enumeration children = parent.children();\n\n      boolean categoryAlreadyExists = false;\n      active = false;\n\n      while (children.hasMoreElements()) {\n        CategoryNode node = (CategoryNode) children.nextElement();\n        String title = node.getTitle().toLowerCase();\n\n        String pathLC = element.getTitle().toLowerCase();\n        if (title.equals(pathLC)) {\n          categoryAlreadyExists = true;\n          // This is now the new parent node.\n          parent = node;\n\n          if (parent.isSelected()) {\n            active = true;\n          }\n\n          break; // out of the while, and back to the for().\n        }\n      }\n\n      if (active == false || categoryAlreadyExists == false) {\n        return false;\n      }\n    }\n\n    return (active);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "IF", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [7, 13], [3, 14], [8, 15], [9, 16], [2, 17], [2, 18], [5, 19], [8, 20], [15, 21], [15, 22], [9, 23], [9, 24], [9, 25], [9, 26], [17, 27], [10, 28], [11, 29], [12, 30], [20, 31], [21, 32], [22, 33], [23, 34], [23, 35], [23, 36], [24, 37], [25, 38], [36, 39], [23, 40], [23, 41], [37, 42], [38, 43], [26, 44], [41, 45], [36, 46], [46, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 7], [14, 3], [15, 8], [16, 9], [17, 2], [18, 2], [19, 5], [20, 8], [21, 15], [22, 15], [23, 9], [24, 9], [25, 9], [26, 9], [27, 17], [28, 10], [29, 11], [30, 12], [31, 20], [32, 21], [33, 22], [34, 23], [35, 23], [36, 23], [37, 24], [38, 25], [39, 36], [40, 23], [41, 23], [42, 37], [43, 38], [44, 26], [45, 41], [46, 36], [47, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "addCategory", "code": "  public CategoryNode addCategory(CategoryPath path) {\n    CategoryNode root = (CategoryNode) getRoot();\n    CategoryNode parent = root; // Start condition.\n\n    for (int i = 0; i < path.size(); i++) {\n      CategoryElement element = path.categoryElementAt(i);\n\n      // If the two nodes have matching titles they are considered equal.\n      Enumeration children = parent.children();\n\n      boolean categoryAlreadyExists = false;\n      while (children.hasMoreElements()) {\n        CategoryNode node = (CategoryNode) children.nextElement();\n        String title = node.getTitle().toLowerCase();\n\n        String pathLC = element.getTitle().toLowerCase();\n        if (title.equals(pathLC)) {\n          categoryAlreadyExists = true;\n          // This is now the new parent node.\n          parent = node;\n          break;\n        }\n      }\n\n      if (categoryAlreadyExists == false) {\n        // We need to add the node.\n        CategoryNode newNode = new CategoryNode(element.getTitle());\n\n        //This method of adding a new node cause parent roots to be\n        // collapsed.\n        //parent.add( newNode );\n        //reload(parent);\n\n        // This doesn't force the nodes to collapse.\n        insertNodeInto(newNode, parent, parent.getChildCount());\n        refresh(newNode);\n\n        // The newly added node is now the parent.\n        parent = newNode;\n\n      }\n    }\n\n    return parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [7, 13], [8, 14], [2, 15], [4, 16], [7, 17], [13, 18], [8, 19], [8, 20], [8, 21], [8, 22], [9, 23], [10, 24], [11, 25], [7, 26], [7, 27], [7, 28], [19, 29], [28, 30], [17, 31], [19, 32], [20, 33], [21, 34], [31, 35], [19, 36], [19, 37], [33, 38], [34, 39], [22, 40], [37, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 7], [14, 8], [15, 2], [16, 4], [17, 7], [18, 13], [19, 8], [20, 8], [21, 8], [22, 8], [23, 9], [24, 10], [25, 11], [26, 7], [27, 7], [28, 7], [29, 19], [30, 28], [31, 17], [32, 19], [33, 20], [34, 21], [35, 31], [36, 19], [37, 19], [38, 33], [39, 34], [40, 22], [41, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "update", "code": "  public void update(CategoryNode node, boolean selected) {\n    if (node.isSelected() == selected) {\n      return; // nothing was changed, nothing to do\n    }\n    // select parents or deselect children\n    if (selected) {\n      setParentSelection(node, true);\n    } else {\n      setDescendantSelection(node, false);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [1, 8], [1, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 1], [9, 1], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setDescendantSelection", "code": "  public void setDescendantSelection(CategoryNode node, boolean selected) {\n    Enumeration descendants = node.depthFirstEnumeration();\n    CategoryNode current;\n    while (descendants.hasMoreElements()) {\n      current = (CategoryNode) descendants.nextElement();\n      // does the current node need to be changed?\n      if (current.isSelected() != selected) {\n        current.setSelected(selected);\n        nodeChanged(current);\n      }\n    }\n    notifyActionListeners();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [3, 9], [8, 10], [1, 11], [10, 12], [8, 13], [8, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 3], [10, 8], [11, 1], [12, 10], [13, 8], [14, 8], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setParentSelection", "code": "  public void setParentSelection(CategoryNode node, boolean selected) {\n    TreeNode[] nodes = getPathToRoot(node);\n    int len = nodes.length;\n    CategoryNode parent;\n\n    // i = 0 gives root node, i=len-1 gives this node\n    // skip the root node\n    for (int i = 1; i < len; i++) {\n      parent = (CategoryNode) nodes[i];\n      if (parent.isSelected() != selected) {\n        parent.setSelected(selected);\n        nodeChanged(parent);\n      }\n    }\n    notifyActionListeners();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [4, 10], [9, 11], [1, 12], [1, 13], [11, 14], [9, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 4], [11, 9], [12, 1], [13, 1], [14, 11], [15, 9], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "addActionListener", "code": "  public synchronized void addActionListener(ActionListener l) {\n    _listener = AWTEventMulticaster.add(_listener, l);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeActionListener", "code": "  public synchronized void removeActionListener(ActionListener l) {\n    _listener = AWTEventMulticaster.remove(_listener, l);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "resetAllNodeCounts", "code": "  public void resetAllNodeCounts() {\n    Enumeration nodes = getRootCategoryNode().depthFirstEnumeration();\n    CategoryNode current;\n    while (nodes.hasMoreElements()) {\n      current = (CategoryNode) nodes.nextElement();\n      current.resetNumberOfContainedRecords();\n      nodeChanged(current);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [5, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 5], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getTreePathToRoot", "code": "  public TreePath getTreePathToRoot(CategoryNode node) {\n    if (node == null) {\n      return null;\n    }\n    return (new TreePath(getPathToRoot(node)));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "notifyActionListeners", "code": "  protected void notifyActionListeners() {\n    if (_listener != null) {\n      _listener.actionPerformed(_event);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "refresh", "code": "  protected void refresh(final CategoryNode node) {\n    SwingUtilities.invokeLater(new Runnable() {\n      public void run() {\n        nodeChanged(node); // remind the tree to render the new node", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "CategoryExplorerModel", "code": "  public CategoryExplorerModel(CategoryNode node) {\n    super(node);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.4-2503", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/ResolveEndpointFailedException.java", "language": "java", "name": "org.apache.camel.ResolveEndpointFailedException", "code": "public class ResolveEndpointFailedException extends RuntimeCamelException {\n    private final String uri;\n\n    public ResolveEndpointFailedException(String uri, Throwable cause) {\n        super(\"Failed to resolve endpoint: \" + uri + \" due to: \" + cause, cause);\n        this.uri = uri;\n    }\n\n    public ResolveEndpointFailedException(String uri, String message) {\n        super(\"Failed to resolve endpoint: \" + uri + \" due to: \" + message);\n        this.uri = uri;\n    }\n\n    public String getUri() {\n        return uri;", "functions": [{"function_name": "getUri", "code": "    public String getUri() {\n        return uri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ResolveEndpointFailedException", "code": "    public ResolveEndpointFailedException(String uri, Throwable cause) {\n        super(\"Failed to resolve endpoint: \" + uri + \" due to: \" + cause, cause);\n        this.uri = uri;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "ResolveEndpointFailedException", "code": "    public ResolveEndpointFailedException(String uri, String message) {\n        super(\"Failed to resolve endpoint: \" + uri + \" due to: \" + message);\n        this.uri = uri;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ant-1.3-30", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/taskdefs/Available.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Available", "code": "public class Available extends Task {\n\n    private String property;\n    private String classname;\n    private File file;\n    private String resource;\n    private Path classpath;\n    private AntClassLoader loader;\n    private String value = \"true\";\n\n    public void setClasspath(Path classpath) {\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);\n        }\n    }\n\n    public Path createClasspath() {\n        if (this.classpath == null) {\n            this.classpath = new Path(project);\n        }\n        return this.classpath.createPath();\n    }\n\n    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);\n    }\n\n    public void setProperty(String property) {\n        this.property = property;\n    }\n\n    public void setValue(String value) {\n        this.value = value;\n    }\n\n    public void setClassname(String classname) {\n        if (!\"\".equals(classname)) {\n            this.classname = classname;\n        }\n    }\n\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    public void setResource(String resource) {\n        this.resource = resource;\n    }\n\n    public void execute() throws BuildException {\n        if (property == null) {\n            throw new BuildException(\"property attribute is required\", location);\n        }\n        \n        if (classname == null && file == null && resource == null) {\n            throw new BuildException(\"At least one of (classname|file|resource) is required\", location);\n        }\n\n        if (classpath != null) {\n            this.loader = new AntClassLoader(project, classpath, false);\n        }\n\n        if ((classname != null) && !checkClass(classname)) {\n            log(\"Unable to load class \" + classname + \" to set property \" + property, Project.MSG_VERBOSE);\n            return;\n        }\n        \n        if ((file != null) && !checkFile(file)) {\n            log(\"Unable to find file \" + file + \" to set property \" + property, Project.MSG_VERBOSE);\n            return;\n        }\n        \n        if ((resource != null) && !checkResource(resource)) {\n            log(\"Unable to load resource \" + resource + \" to set property \" + property, Project.MSG_VERBOSE);\n            return;\n        }\n\n        this.project.setProperty(property, value);\n    }\n\n    private boolean checkFile(File file) {\n        return file.exists();\n    }\n\n    private boolean checkResource(String resource) {\n        if (loader != null) {\n            return (loader.getResourceAsStream(resource) != null);\n        } else {\n            ClassLoader cL = this.getClass().getClassLoader();\n            if (cL != null) {\n                return (cL.getResourceAsStream(resource) != null);\n            } else {\n                return \n                    (ClassLoader.getSystemResourceAsStream(resource) != null);\n            }\n        }\n    }\n\n    private boolean checkClass(String classname) {\n        try {\n            if (loader != null) {\n                loader.loadClass(classname);\n            } else {\n                ClassLoader l = this.getClass().getClassLoader();\n                if (l != null) {\n                    l.loadClass(classname);\n                } else {\n                    Class.forName(classname);\n                }\n            }\n            return true;\n        } catch (ClassNotFoundException e) {\n            return false;\n        } catch (NoClassDefFoundError e) {\n            return false;", "functions": [{"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (this.classpath == null) {\n            this.classpath = new Path(project);\n        }\n        return this.classpath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setProperty", "code": "    public void setProperty(String property) {\n        this.property = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValue", "code": "    public void setValue(String value) {\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClassname", "code": "    public void setClassname(String classname) {\n        if (!\"\".equals(classname)) {\n            this.classname = classname;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setResource", "code": "    public void setResource(String resource) {\n        this.resource = resource;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (property == null) {\n            throw new BuildException(\"property attribute is required\", location);\n        }\n        \n        if (classname == null && file == null && resource == null) {\n            throw new BuildException(\"At least one of (classname|file|resource) is required\", location);\n        }\n\n        if (classpath != null) {\n            this.loader = new AntClassLoader(project, classpath, false);\n        }\n\n        if ((classname != null) && !checkClass(classname)) {\n            log(\"Unable to load class \" + classname + \" to set property \" + property, Project.MSG_VERBOSE);\n            return;\n        }\n        \n        if ((file != null) && !checkFile(file)) {\n            log(\"Unable to find file \" + file + \" to set property \" + property, Project.MSG_VERBOSE);\n            return;\n        }\n        \n        if ((resource != null) && !checkResource(resource)) {\n            log(\"Unable to load resource \" + resource + \" to set property \" + property, Project.MSG_VERBOSE);\n            return;\n        }\n\n        this.project.setProperty(property, value);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [0, 13], [1, 14], [7, 15], [7, 16], [2, 17], [8, 18], [8, 19], [3, 20], [9, 21], [9, 22], [10, 23], [5, 24], [11, 25], [11, 26], [6, 27], [12, 28], [1, 29], [16, 30], [2, 31], [19, 32], [3, 33], [22, 34], [4, 35], [24, 36], [25, 37], [26, 38], [26, 39], [27, 40], [29, 41], [31, 42], [33, 43], [35, 44], [36, 45], [38, 46], [39, 47], [40, 48], [41, 49], [42, 50], [43, 51], [44, 52], [49, 53], [49, 54], [50, 55], [50, 56], [51, 57], [51, 58], [54, 59], [56, 60], [58, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [13, 0], [14, 1], [15, 7], [16, 7], [17, 2], [18, 8], [19, 8], [20, 3], [21, 9], [22, 9], [23, 10], [24, 5], [25, 11], [26, 11], [27, 6], [28, 12], [29, 1], [30, 16], [31, 2], [32, 19], [33, 3], [34, 22], [35, 4], [36, 24], [37, 25], [38, 26], [39, 26], [40, 27], [41, 29], [42, 31], [43, 33], [44, 35], [45, 36], [46, 38], [47, 39], [48, 40], [49, 41], [50, 42], [51, 43], [52, 44], [53, 49], [54, 49], [55, 50], [56, 50], [57, 51], [58, 51], [59, 54], [60, 56], [61, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "checkFile", "code": "    private boolean checkFile(File file) {\n        return file.exists();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "checkResource", "code": "    private boolean checkResource(String resource) {\n        if (loader != null) {\n            return (loader.getResourceAsStream(resource) != null);\n        } else {\n            ClassLoader cL = this.getClass().getClassLoader();\n            if (cL != null) {\n                return (cL.getResourceAsStream(resource) != null);\n            } else {\n                return \n                    (ClassLoader.getSystemResourceAsStream(resource) != null);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [6, 9], [4, 10], [4, 11], [8, 12], [9, 13], [9, 14], [10, 15], [11, 16], [5, 17], [5, 18], [15, 19], [15, 20], [16, 21], [16, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 6], [10, 4], [11, 4], [12, 8], [13, 9], [14, 9], [15, 10], [16, 11], [17, 5], [18, 5], [19, 15], [20, 15], [21, 16], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "checkClass", "code": "    private boolean checkClass(String classname) {\n        try {\n            if (loader != null) {\n                loader.loadClass(classname);\n            } else {\n                ClassLoader l = this.getClass().getClassLoader();\n                if (l != null) {\n                    l.loadClass(classname);\n                } else {\n                    Class.forName(classname);\n                }\n            }\n            return true;\n        } catch (ClassNotFoundException e) {\n            return false;\n        } catch (NoClassDefFoundError e) {\n            return false;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "RETURN", "IF", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [8, 12], [6, 13], [6, 14], [10, 15], [13, 16], [6, 17], [16, 18], [13, 19], [13, 20], [14, 21], [14, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 5], [10, 6], [11, 7], [12, 8], [13, 6], [14, 6], [15, 10], [16, 13], [17, 6], [18, 16], [19, 13], [20, 13], [21, 14], [22, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}], "label": 0}
{"sample_id": "poi-2.0-5407", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/dev/EFHSSF.java", "language": "java", "name": "org.apache.poi.hssf.dev.EFHSSF", "code": "public class EFHSSF\n{\n    String       infile;\n    String       outfile;\n    HSSFWorkbook workbook = null;\n    HSSFSheet    cursheet = null;\n\n    /** Creates a new instance of EFHSSF */\n\n    public EFHSSF()\n    {\n    }\n\n    public void setInputFile(String infile)\n    {\n        this.infile = infile;\n    }\n\n    public void setOutputFile(String outfile)\n    {\n        this.outfile = outfile;\n    }\n\n    public void run()\n        throws IOException\n    {\n        FileInputStream fin   = new FileInputStream(infile);\n        POIFSFileSystem poifs = new POIFSFileSystem(fin);\n        InputStream     din   = poifs.createDocumentInputStream(\"Workbook\");\n        HSSFRequest     req   = new HSSFRequest();\n\n        req.addListenerForAllRecords(new EFHSSFListener(this));\n        HSSFEventFactory factory = new HSSFEventFactory();\n\n        factory.processEvents(req, din);\n        fin.close();\n        din.close();\n        FileOutputStream fout = new FileOutputStream(outfile);\n\n        workbook.write(fout);\n        fout.close();\n        System.out.println(\"done.\");\n    }\n\n    public void recordHandler(Record record)\n    {\n        HSSFRow  row      = null;\n        HSSFCell cell     = null;\n        int      sheetnum = -1;\n\n        switch (record.getSid())\n        {\n\n            case BOFRecord.sid :\n                BOFRecord bof = ( BOFRecord ) record;\n\n                if (bof.getType() == bof.TYPE_WORKBOOK)\n                {\n                    workbook = new HSSFWorkbook();\n                }\n                else if (bof.getType() == bof.TYPE_WORKSHEET)\n                {\n                    sheetnum++;\n                    cursheet = workbook.getSheetAt(sheetnum);\n                }\n                break;\n\n            case BoundSheetRecord.sid :\n                BoundSheetRecord bsr = ( BoundSheetRecord ) record;\n\n                workbook.createSheet(bsr.getSheetname());\n                break;\n\n            case RowRecord.sid :\n                RowRecord rowrec = ( RowRecord ) record;\n\n                cursheet.createRow(rowrec.getRowNumber());\n                break;\n\n            case NumberRecord.sid :\n                NumberRecord numrec = ( NumberRecord ) record;\n\n                row  = cursheet.getRow(numrec.getRow());\n                cell = row.createCell(numrec.getColumn(),\n                                      HSSFCell.CELL_TYPE_NUMERIC);\n                cell.setCellValue(numrec.getValue());\n                break;\n\n            case SSTRecord.sid :\n                SSTRecord sstrec = ( SSTRecord ) record;\n\n                for (int k = 0; k < sstrec.getNumUniqueStrings(); k++)\n                {\n                    workbook.addSSTString(sstrec.getString(k));\n                }\n                break;\n\n            case LabelSSTRecord.sid :\n                LabelSSTRecord lrec = ( LabelSSTRecord ) record;\n\n                row  = cursheet.getRow(lrec.getRow());\n                cell = row.createCell(lrec.getColumn(),\n                                      HSSFCell.CELL_TYPE_STRING);\n                cell.setCellValue(workbook.getSSTString(lrec.getSSTIndex()));\n                break;\n        }\n    }\n\n    public static void main(String [] args)\n    {\n        if ((args.length < 2) || !args[ 0 ].equals(\"--help\"))\n        {\n            try\n            {\n                EFHSSF viewer = new EFHSSF();\n\n                viewer.setInputFile(args[ 0 ]);\n                viewer.setOutputFile(args[ 1 ]);\n                viewer.run();\n            }\n            catch (IOException e)\n            {\n                e.printStackTrace();\n            }\n        }\n        else\n        {\n            System.out.println(\"EFHSSF\");\n            System.out.println(\n                \"General testbed for HSSFEventFactory based testing and \"\n                + \"Code examples\");\n            System.out.println(\"Usage: java org.apache.poi.hssf.dev.EFHSSF \"\n                               + \"file1 file2\");\n            System.out.println(\n                \"   --will rewrite the file reading with the event api\");\n            System.out.println(\"and writing with the standard API\");", "functions": [{"function_name": "setInputFile", "code": "    public void setInputFile(String infile)\n    {\n        this.infile = infile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutputFile", "code": "    public void setOutputFile(String outfile)\n    {\n        this.outfile = outfile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "run", "code": "    public void run()\n        throws IOException\n    {\n        FileInputStream fin   = new FileInputStream(infile);\n        POIFSFileSystem poifs = new POIFSFileSystem(fin);\n        InputStream     din   = poifs.createDocumentInputStream(\"Workbook\");\n        HSSFRequest     req   = new HSSFRequest();\n\n        req.addListenerForAllRecords(new EFHSSFListener(this));\n        HSSFEventFactory factory = new HSSFEventFactory();\n\n        factory.processEvents(req, din);\n        fin.close();\n        din.close();\n        FileOutputStream fout = new FileOutputStream(outfile);\n\n        workbook.write(fout);\n        fout.close();\n        System.out.println(\"done.\");", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [7, 14], [1, 15], [2, 16], [13, 17], [3, 18], [4, 19], [5, 20], [6, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 7], [15, 1], [16, 2], [17, 13], [18, 3], [19, 4], [20, 5], [21, 6], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "recordHandler", "code": "    public void recordHandler(Record record)\n    {\n        HSSFRow  row      = null;\n        HSSFCell cell     = null;\n        int      sheetnum = -1;\n\n        switch (record.getSid())\n        {\n\n            case BOFRecord.sid :\n                BOFRecord bof = ( BOFRecord ) record;\n\n                if (bof.getType() == bof.TYPE_WORKBOOK)\n                {\n                    workbook = new HSSFWorkbook();\n                }\n                else if (bof.getType() == bof.TYPE_WORKSHEET)\n                {\n                    sheetnum++;\n                    cursheet = workbook.getSheetAt(sheetnum);\n                }\n                break;\n\n            case BoundSheetRecord.sid :\n                BoundSheetRecord bsr = ( BoundSheetRecord ) record;\n\n                workbook.createSheet(bsr.getSheetname());\n                break;\n\n            case RowRecord.sid :\n                RowRecord rowrec = ( RowRecord ) record;\n\n                cursheet.createRow(rowrec.getRowNumber());\n                break;\n\n            case NumberRecord.sid :\n                NumberRecord numrec = ( NumberRecord ) record;\n\n                row  = cursheet.getRow(numrec.getRow());\n                cell = row.createCell(numrec.getColumn(),\n                                      HSSFCell.CELL_TYPE_NUMERIC);\n                cell.setCellValue(numrec.getValue());\n                break;\n\n            case SSTRecord.sid :\n                SSTRecord sstrec = ( SSTRecord ) record;\n\n                for (int k = 0; k < sstrec.getNumUniqueStrings(); k++)\n                {\n                    workbook.addSSTString(sstrec.getString(k));\n                }\n                break;\n\n            case LabelSSTRecord.sid :\n                LabelSSTRecord lrec = ( LabelSSTRecord ) record;\n\n                row  = cursheet.getRow(lrec.getRow());\n                cell = row.createCell(lrec.getColumn(),\n                                      HSSFCell.CELL_TYPE_STRING);\n                cell.setCellValue(workbook.getSSTString(lrec.getSSTIndex()));\n                break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BREAK_CONTINUE", "VAR_DECL", "BREAK_CONTINUE", "LOOP", "VAR_DECL", "BREAK_CONTINUE", "VAR_DECL", "BREAK_CONTINUE", "VAR_DECL", "BREAK_CONTINUE", "VAR_DECL", "BREAK_CONTINUE", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [2, 21], [3, 22], [4, 23], [1, 24], [1, 25], [1, 26], [10, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [19, 33], [19, 34], [24, 35], [25, 36], [26, 37], [27, 38], [28, 39], [29, 40], [30, 41], [31, 42], [32, 43], [33, 44], [34, 45], [35, 46], [36, 47], [37, 48], [10, 49], [10, 50], [40, 51], [41, 52], [44, 53], [19, 54], [49, 55], [33, 56], [54, 57], [56, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 2], [22, 3], [23, 4], [24, 1], [25, 1], [26, 1], [27, 10], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 19], [34, 19], [35, 24], [36, 25], [37, 26], [38, 27], [39, 28], [40, 29], [41, 30], [42, 31], [43, 32], [44, 33], [45, 34], [46, 35], [47, 36], [48, 37], [49, 10], [50, 10], [51, 40], [52, 41], [53, 44], [54, 19], [55, 49], [56, 33], [57, 54], [58, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "main", "code": "    public static void main(String [] args)\n    {\n        if ((args.length < 2) || !args[ 0 ].equals(\"--help\"))\n        {\n            try\n            {\n                EFHSSF viewer = new EFHSSF();\n\n                viewer.setInputFile(args[ 0 ]);\n                viewer.setOutputFile(args[ 1 ]);\n                viewer.run();\n            }\n            catch (IOException e)\n            {\n                e.printStackTrace();\n            }\n        }\n        else\n        {\n            System.out.println(\"EFHSSF\");\n            System.out.println(\n                \"General testbed for HSSFEventFactory based testing and \"\n                + \"Code examples\");\n            System.out.println(\"Usage: java org.apache.poi.hssf.dev.EFHSSF \"\n                               + \"file1 file2\");\n            System.out.println(\n                \"   --will rewrite the file reading with the event api\");\n            System.out.println(\"and writing with the standard API\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "TRY", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [4, 12], [3, 13], [5, 14], [6, 15], [7, 16], [8, 17], [9, 18], [10, 19], [4, 20], [4, 21], [4, 22], [13, 23], [3, 24], [17, 25], [17, 26], [18, 27], [18, 28], [11, 29], [12, 30], [21, 31], [22, 32], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 4], [13, 3], [14, 5], [15, 6], [16, 7], [17, 8], [18, 9], [19, 10], [20, 4], [21, 4], [22, 4], [23, 13], [24, 3], [25, 17], [26, 17], [27, 18], [28, 18], [29, 11], [30, 12], [31, 21], [32, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "EFHSSF", "code": "    public EFHSSF()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.6-2965", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/resequencer/Timeout.java", "language": "java", "name": "org.apache.camel.processor.resequencer.Timeout", "code": "public class Timeout extends TimerTask {\n    \n    private TimeoutHandler timeoutHandler;\n    \n    private Timer timer;\n    \n    private long timeout;\n    \n    /**\n     * Creates a new timeout task using the given {@link Timer} instance and\n     * timeout value. The task is not scheduled immediately. It will be\n     * scheduled by calling this task's {@link #schedule()} method.\n     * \n     * @param timer\n     *            a timer\n     * @param timeout\n     *            a timeout value.\n     */\n    public Timeout(Timer timer, long timeout) {\n        this.timeout = timeout;\n        this.timer = timer;\n    }\n\n    /**\n     * Returns the timeout handler that has been registered for notification.\n     * \n     * @return the timeout handler.\n     */\n    public TimeoutHandler getTimeoutHandlers() {\n        return timeoutHandler;\n    }\n    \n    /**\n     * Sets a timeout handler for receiving timeout notifications.\n     * \n     * @param timeoutHandler\n     *            a timeout handler.\n     */\n    public void setTimeoutHandler(TimeoutHandler timeoutHandler) {\n        this.timeoutHandler = timeoutHandler;\n    }\n    \n    /**\n     * Schedules this timeout task.\n     */\n    public void schedule() {\n        timer.schedule(this, timeout);\n    }\n\n    /**\n     * Notifies the timeout handler about the scheduled timeout.\n     */\n    @Override\n    public void run() {\n        timeoutHandler.timeout(this);", "functions": [{"function_name": "getTimeoutHandlers", "code": "    public TimeoutHandler getTimeoutHandlers() {\n        return timeoutHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeoutHandler", "code": "    public void setTimeoutHandler(TimeoutHandler timeoutHandler) {\n        this.timeoutHandler = timeoutHandler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "schedule", "code": "    public void schedule() {\n        timer.schedule(this, timeout);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "run", "code": "    @Override\n    public void run() {\n        timeoutHandler.timeout(this);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Timeout", "code": "    public Timeout(Timer timer, long timeout) {\n        this.timeout = timeout;\n        this.timer = timer;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-3.0-6246", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hpsf/Section.java", "language": "java", "name": "org.apache.poi.hpsf.Section", "code": "public class Section\n{\n\n    /**\n     * <p>Maps property IDs to section-private PID strings. These\n     * strings can be found in the property with ID 0.</p>\n     */\n    protected Map dictionary;\n\n    /**\n     * <p>The section's format ID, {@link #getFormatID}.</p>\n     */\n    protected ClassID formatID;\n\n\n    /**\n     * <p>Returns the format ID. The format ID is the \"type\" of the\n     * section. For example, if the format ID of the first {@link\n     * Section} contains the bytes specified by\n     * <code>org.apache.poi.hpsf.wellknown.SectionIDMap.SUMMARY_INFORMATION_ID</code>\n     * the section (and thus the property set) is a SummaryInformation.</p>\n     *\n     * @return The format ID\n     */\n    public ClassID getFormatID()\n    {\n        return formatID;\n    }\n\n\n\n    /**\n     * @see #getOffset\n     */\n    protected long offset;\n\n\n    /**\n     * <p>Returns the offset of the section in the stream.</p>\n     *\n     * @return The offset of the section in the stream.\n     */\n    public long getOffset()\n    {\n        return offset;\n    }\n\n\n\n    /**\n     * @see #getSize\n     */\n    protected int size;\n\n\n    /**\n     * <p>Returns the section's size in bytes.</p>\n     *\n     * @return The section's size in bytes.\n     */\n    public int getSize()\n    {\n        return size;\n    }\n\n\n\n    /**\n     * <p>Returns the number of properties in this section.</p>\n     *\n     * @return The number of properties in this section.\n     */\n    public int getPropertyCount()\n    {\n        return properties.length;\n    }\n\n\n\n    /**\n     * @see #getProperties\n     */\n    protected Property[] properties;\n\n\n    /**\n     * <p>Returns this section's properties.</p>\n     *\n     * @return This section's properties.\n     */\n    public Property[] getProperties()\n    {\n        return properties;\n    }\n\n\n\n    /**\n     * <p>Creates an empty and uninitialized {@link Section}.\n     */\n    protected Section()\n    { }\n\n\n\n    /**\n     * <p>Creates a {@link Section} instance from a byte array.</p>\n     *\n     * @param src Contains the complete property set stream.\n     * @param offset The position in the stream that points to the\n     * section's format ID.\n     * \n     * @exception UnsupportedEncodingException if the section's codepage is not\n     * supported.\n     */\n    public Section(final byte[] src, final int offset)\n    throws UnsupportedEncodingException\n    {\n        int o1 = offset;\n\n        /*\n         * Read the format ID.\n         */\n        formatID = new ClassID(src, o1);\n        o1 += ClassID.LENGTH;\n\n        /*\n         * Read the offset from the stream's start and positions to\n         * the section header.\n         */\n        this.offset = LittleEndian.getUInt(src, o1);\n        o1 = (int) this.offset;\n\n        /*\n         * Read the section length.\n         */\n        size = (int) LittleEndian.getUInt(src, o1);\n        o1 += LittleEndian.INT_SIZE;\n\n        /*\n         * Read the number of properties.\n         */\n        final int propertyCount = (int) LittleEndian.getUInt(src, o1);\n        o1 += LittleEndian.INT_SIZE;\n\n        /*\n         * Read the properties. The offset is positioned at the first\n         * entry of the property list. There are two problems:\n         * \n         * 1. For each property we have to find out its length. In the\n         *    property list we find each property's ID and its offset relative\n         *    to the section's beginning. Unfortunately the properties in the\n         *    property list need not to be in ascending order, so it is not\n         *    possible to calculate the length as\n         *    (offset of property(i+1) - offset of property(i)). Before we can\n         *    that we first have to sort the property list by ascending offsets.\n         * \n         * 2. We have to read the property with ID 1 before we read other \n         *    properties, at least before other properties containing strings.\n         *    The reason is that property 1 specifies the codepage. If it is\n         *    1200, all strings are in Unicode. In other words: Before we can\n         *    read any strings we have to know whether they are in Unicode or\n         *    not. Unfortunately property 1 is not guaranteed to be the first in\n         *    a section.\n         *\n         *    The algorithm below reads the properties in two passes: The first\n         *    one looks for property ID 1 and extracts the codepage number. The\n         *    seconds pass reads the other properties.\n         */\n        properties = new Property[propertyCount];\n        \n        /* Pass 1: Read the property list. */\n        int pass1Offset = o1;\n        List propertyList = new ArrayList(propertyCount);\n        PropertyListEntry ple;\n        for (int i = 0; i < properties.length; i++)\n        {\n            ple = new PropertyListEntry();\n\n            /* Read the property ID. */\n            ple.id = (int) LittleEndian.getUInt(src, pass1Offset);\n            pass1Offset += LittleEndian.INT_SIZE;\n\n            /* Offset from the section's start. */\n            ple.offset = (int) LittleEndian.getUInt(src, pass1Offset);\n            pass1Offset += LittleEndian.INT_SIZE;\n\n            /* Add the entry to the property list. */\n            propertyList.add(ple);\n        }\n\n        /* Sort the property list by ascending offsets: */\n        Collections.sort(propertyList);\n\n        /* Calculate the properties' lengths. */\n        for (int i = 0; i < propertyCount - 1; i++)\n        {\n            final PropertyListEntry ple1 =\n                (PropertyListEntry) propertyList.get(i);\n            final PropertyListEntry ple2 =\n                (PropertyListEntry) propertyList.get(i + 1);\n            ple1.length = ple2.offset - ple1.offset;\n        }\n        if (propertyCount > 0)\n        {\n            ple = (PropertyListEntry) propertyList.get(propertyCount - 1);\n            ple.length = size - ple.offset;\n        }\n\n        /* Look for the codepage. */\n        int codepage = -1;\n        for (final Iterator i = propertyList.iterator();\n             codepage == -1 && i.hasNext();)\n        {\n            ple = (PropertyListEntry) i.next();\n\n            /* Read the codepage if the property ID is 1. */\n            if (ple.id == PropertyIDMap.PID_CODEPAGE)\n            {\n                /* Read the property's value type. It must be\n                 * VT_I2. */\n                int o = (int) (this.offset + ple.offset);\n                final long type = LittleEndian.getUInt(src, o);\n                o += LittleEndian.INT_SIZE;\n\n                if (type != Variant.VT_I2)\n                    throw new HPSFRuntimeException\n                        (\"Value type of property ID 1 is not VT_I2 but \" +\n                         type + \".\");\n\n                /* Read the codepage number. */\n                codepage = LittleEndian.getUShort(src, o);\n            }\n        }\n\n        /* Pass 2: Read all properties - including the codepage property,\n         * if available. */\n        int i1 = 0;\n        for (final Iterator i = propertyList.iterator(); i.hasNext();)\n        {\n            ple = (PropertyListEntry) i.next();\n            Property p = new Property(ple.id, src,\n                    this.offset + ple.offset,\n                    ple.length, codepage);\n            if (p.getID() == PropertyIDMap.PID_CODEPAGE)\n                p = new Property(p.getID(), p.getType(), new Integer(codepage));\n            properties[i1++] = p;\n        }\n\n        /*\n         * Extract the dictionary (if available).\n         */\n        dictionary = (Map) getProperty(0);\n    }\n\n\n\n    /**\n     * <p>Represents an entry in the property list and holds a property's ID and\n     * its offset from the section's beginning.</p>\n     */\n    class PropertyListEntry implements Comparable\n    {\n        int id;\n        int offset;\n        int length;\n\n        /**\n         * <p>Compares this {@link PropertyListEntry} with another one by their\n         * offsets. A {@link PropertyListEntry} is \"smaller\" than another one if\n         * its offset from the section's begin is smaller.</p>\n         *\n         * @see Comparable#compareTo(java.lang.Object)\n         */\n        public int compareTo(final Object o)\n        {\n            if (!(o instanceof PropertyListEntry))\n                throw new ClassCastException(o.toString());\n            final int otherOffset = ((PropertyListEntry) o).offset;\n            if (offset < otherOffset)\n                return -1;\n            else if (offset == otherOffset)\n                return 0;\n            else\n                return 1;\n        }\n    }\n\n\n\n    /**\n     * <p>Returns the value of the property with the specified ID. If\n     * the property is not available, <code>null</code> is returned\n     * and a subsequent call to {@link #wasNull} will return\n     * <code>true</code>.</p>\n     *\n     * @param id The property's ID\n     *\n     * @return The property's value\n     */\n    public Object getProperty(final long id)\n    {\n        wasNull = false;\n        for (int i = 0; i < properties.length; i++)\n            if (id == properties[i].getID())\n                return properties[i].getValue();\n        wasNull = true;\n        return null;\n    }\n\n\n\n    /**\n     * <p>Returns the value of the numeric property with the specified\n     * ID. If the property is not available, 0 is returned. A\n     * subsequent call to {@link #wasNull} will return\n     * <code>true</code> to let the caller distinguish that case from\n     * a real property value of 0.</p>\n     *\n     * @param id The property's ID\n     *\n     * @return The property's value\n     */\n    protected int getPropertyIntValue(final long id)\n    {\n        final Number i;\n        final Object o = getProperty(id);\n        if (o == null)\n            return 0;\n        if (!(o instanceof Long || o instanceof Integer))\n            throw new HPSFRuntimeException\n                (\"This property is not an integer type, but \" +\n                 o.getClass().getName() + \".\");\n        i = (Number) o;\n        return i.intValue();\n    }\n\n\n\n    /**\n     * <p>Returns the value of the boolean property with the specified\n     * ID. If the property is not available, <code>false</code> is\n     * returned. A subsequent call to {@link #wasNull} will return\n     * <code>true</code> to let the caller distinguish that case from\n     * a real property value of <code>false</code>.</p>\n     *\n     * @param id The property's ID\n     *\n     * @return The property's value\n     */\n    protected boolean getPropertyBooleanValue(final int id)\n    {\n        final Boolean b = (Boolean) getProperty(id);\n        if (b != null)\n            return b.booleanValue();\n        else\n            return false;\n        }\n\n\n\n    /**\n     * <p>This member is <code>true</code> if the last call to {@link\n     * #getPropertyIntValue} or {@link #getProperty} tried to access a\n     * property that was not available, else <code>false</code>.</p>\n     */\n    private boolean wasNull;\n\n\n    /**\n     * <p>Checks whether the property which the last call to {@link\n     * #getPropertyIntValue} or {@link #getProperty} tried to access\n     * was available or not. This information might be important for\n     * callers of {@link #getPropertyIntValue} since the latter\n     * returns 0 if the property does not exist. Using {@link\n     * #wasNull} the caller can distiguish this case from a property's\n     * real value of 0.</p>\n     *\n     * @return <code>true</code> if the last call to {@link\n     * #getPropertyIntValue} or {@link #getProperty} tried to access a\n     * property that was not available, else <code>false</code>.\n     */\n    public boolean wasNull()\n    {\n        return wasNull;\n    }\n\n\n\n    /**\n     * <p>Returns the PID string associated with a property ID. The ID\n     * is first looked up in the {@link Section}'s private\n     * dictionary. If it is not found there, the method calls {@link\n     * SectionIDMap#getPIDString}.</p>\n     *\n     * @param pid The property ID\n     *\n     * @return The property ID's string value\n     */\n    public String getPIDString(final long pid)\n    {\n        String s = null;\n        if (dictionary != null)\n            s = (String) dictionary.get(new Long(pid));\n        if (s == null)\n            s = SectionIDMap.getPIDString(getFormatID().getBytes(), pid);\n        if (s == null)\n            s = SectionIDMap.UNDEFINED;\n        return s;\n    }\n\n\n\n    /**\n     * <p>Checks whether this section is equal to another object. The result is\n     * <code>false</code> if one of the the following conditions holds:</p>\n     * \n     * <ul>\n     * \n     * <li><p>The other object is not a {@link Section}.</p></li>\n     * \n     * <li><p>The format IDs of the two sections are not equal.</p></li>\n     *   \n     * <li><p>The sections have a different number of properties. However,\n     * properties with ID 1 (codepage) are not counted.</p></li>\n     * \n     * <li><p>The other object is not a {@link Section}.</p></li>\n     * \n     * <li><p>The properties have different values. The order of the properties\n     * is irrelevant.</p></li>\n     * \n     * </ul>\n     * \n     * @param o The object to compare this section with\n     * @return <code>true</code> if the objects are equal, <code>false</code> if\n     * not\n     */\n    public boolean equals(final Object o)\n    {\n        if (o == null || !(o instanceof Section))\n            return false;\n        final Section s = (Section) o;\n        if (!s.getFormatID().equals(getFormatID()))\n            return false;\n\n        /* Compare all properties except 0 and 1 as they must be handled \n         * specially. */\n        Property[] pa1 = new Property[getProperties().length];\n        Property[] pa2 = new Property[s.getProperties().length];\n        System.arraycopy(getProperties(), 0, pa1, 0, pa1.length);\n        System.arraycopy(s.getProperties(), 0, pa2, 0, pa2.length);\n\n        /* Extract properties 0 and 1 and remove them from the copy of the\n         * arrays. */\n        Property p10 = null;\n        Property p20 = null;\n        for (int i = 0; i < pa1.length; i++)\n        {\n            final long id = pa1[i].getID();\n            if (id == 0)\n            {\n                p10 = pa1[i];\n                pa1 = remove(pa1, i);\n                i--;\n            }\n            if (id == 1)\n            {\n                pa1 = remove(pa1, i);\n                i--;\n            }\n        }\n        for (int i = 0; i < pa2.length; i++)\n        {\n            final long id = pa2[i].getID();\n            if (id == 0)\n            {\n                p20 = pa2[i];\n                pa2 = remove(pa2, i);\n                i--;\n            }\n            if (id == 1)\n            {\n                pa2 = remove(pa2, i);\n                i--;\n            }\n        }\n\n        /* If the number of properties (not counting property 1) is unequal the\n         * sections are unequal. */\n        if (pa1.length != pa2.length)\n            return false;\n\n        /* If the dictionaries are unequal the sections are unequal. */\n        boolean dictionaryEqual = true;\n        if (p10 != null && p20 != null)\n            dictionaryEqual = p10.getValue().equals(p20.getValue());\n        else if (p10 != null || p20 != null)\n            dictionaryEqual = false;\n        if (!dictionaryEqual)\n            return false;\n        else\n            return Util.equals(pa1, pa2);\n    }\n\n\n\n    /**\n     * <p>Removes a field from a property array. The resulting array is\n     * compactified and returned.</p>\n     *\n     * @param pa The property array. \n     * @param i The index of the field to be removed.\n     * @return the compactified array.\n     */\n    private Property[] remove(final Property[] pa, final int i)\n    {\n        final Property[] h = new Property[pa.length - 1];\n        if (i > 0)\n            System.arraycopy(pa, 0, h, 0, i);\n        System.arraycopy(pa, i + 1, h, i, h.length - i);\n        return h;\n    }\n\n\n\n    /**\n     * @see Object#hashCode()\n     */\n    public int hashCode()\n    {\n        long hashCode = 0;\n        hashCode += getFormatID().hashCode();\n        final Property[] pa = getProperties();\n        for (int i = 0; i < pa.length; i++)\n            hashCode += pa[i].hashCode();\n        final int returnHashCode = (int) (hashCode & 0x0ffffffffL);\n        return returnHashCode;\n    }\n\n\n\n    /**\n     * @see Object#toString()\n     */\n    public String toString()\n    {\n        final StringBuffer b = new StringBuffer();\n        final Property[] pa = getProperties();\n        b.append(getClass().getName());\n        b.append('[');\n        b.append(\"formatID: \");\n        b.append(getFormatID());\n        b.append(\", offset: \");\n        b.append(getOffset());\n        b.append(\", propertyCount: \");\n        b.append(getPropertyCount());\n        b.append(\", size: \");\n        b.append(getSize());\n        b.append(\", properties: [\\n\");\n        for (int i = 0; i < pa.length; i++)\n        {\n            b.append(pa[i].toString());\n            b.append(\",\\n\");\n        }\n        b.append(']');\n        b.append(']');\n        return b.toString();\n    }\n\n\n\n    /**\n     * <p>Gets the section's dictionary. A dictionary allows an application to\n     * use human-readable property names instead of numeric property IDs. It\n     * contains mappings from property IDs to their associated string\n     * values. The dictionary is stored as the property with ID 0. The codepage\n     * for the strings in the dictionary is defined by property with ID 1.</p>\n     *\n     * @return the dictionary or <code>null</code> if the section does not have\n     * a dictionary.\n     */\n    public Map getDictionary()\n    {\n        return dictionary;\n    }\n\n\n\n    /**\n     * <p>Gets the section's codepage, if any.</p>\n     *\n     * @return The section's codepage if one is defined, else -1.\n     */\n    public int getCodepage()\n    {\n        final Integer codepage =\n            (Integer) getProperty(PropertyIDMap.PID_CODEPAGE);\n        if (codepage == null)\n            return -1;\n        int cp = codepage.intValue();\n        return cp;", "functions": [{"function_name": "getFormatID", "code": "    public ClassID getFormatID()\n    {\n        return formatID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOffset", "code": "    public long getOffset()\n    {\n        return offset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return size;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPropertyCount", "code": "    public int getPropertyCount()\n    {\n        return properties.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProperties", "code": "    public Property[] getProperties()\n    {\n        return properties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProperty", "code": "    public Object getProperty(final long id)\n    {\n        wasNull = false;\n        for (int i = 0; i < properties.length; i++)\n            if (id == properties[i].getID())\n                return properties[i].getValue();\n        wasNull = true;\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [2, 7], [0, 8], [5, 9], [6, 10], [6, 11], [8, 12], [2, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 2], [8, 0], [9, 5], [10, 6], [11, 6], [12, 8], [13, 2], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getPropertyIntValue", "code": "    protected int getPropertyIntValue(final long id)\n    {\n        final Number i;\n        final Object o = getProperty(id);\n        if (o == null)\n            return 0;\n        if (!(o instanceof Long || o instanceof Integer))\n            throw new HPSFRuntimeException\n                (\"This property is not an integer type, but \" +\n                 o.getClass().getName() + \".\");\n        i = (Number) o;\n        return i.intValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "THROW_RAISE", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [2, 10], [3, 11], [3, 12], [9, 13], [10, 14], [10, 15], [11, 16], [12, 17], [4, 18], [13, 19], [19, 20], [19, 21], [21, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 2], [11, 3], [12, 3], [13, 9], [14, 10], [15, 10], [16, 11], [17, 12], [18, 4], [19, 13], [20, 19], [21, 19], [22, 21], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getPropertyBooleanValue", "code": "    protected boolean getPropertyBooleanValue(final int id)\n    {\n        final Boolean b = (Boolean) getProperty(id);\n        if (b != null)\n            return b.booleanValue();\n        else\n            return false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "wasNull", "code": "    public boolean wasNull()\n    {\n        return wasNull;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPIDString", "code": "    public String getPIDString(final long pid)\n    {\n        String s = null;\n        if (dictionary != null)\n            s = (String) dictionary.get(new Long(pid));\n        if (s == null)\n            s = SectionIDMap.getPIDString(getFormatID().getBytes(), pid);\n        if (s == null)\n            s = SectionIDMap.UNDEFINED;\n        return s;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [2, 10], [7, 11], [3, 12], [8, 13], [4, 14], [9, 15], [5, 16], [12, 17], [17, 18], [14, 19], [18, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 2], [11, 7], [12, 3], [13, 8], [14, 4], [15, 9], [16, 5], [17, 12], [18, 17], [19, 14], [20, 18], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "equals", "code": "    public boolean equals(final Object o)\n    {\n        if (o == null || !(o instanceof Section))\n            return false;\n        final Section s = (Section) o;\n        if (!s.getFormatID().equals(getFormatID()))\n            return false;\n\n        /* Compare all properties except 0 and 1 as they must be handled \n         * specially. */\n        Property[] pa1 = new Property[getProperties().length];\n        Property[] pa2 = new Property[s.getProperties().length];\n        System.arraycopy(getProperties(), 0, pa1, 0, pa1.length);\n        System.arraycopy(s.getProperties(), 0, pa2, 0, pa2.length);\n\n        /* Extract properties 0 and 1 and remove them from the copy of the\n         * arrays. */\n        Property p10 = null;\n        Property p20 = null;\n        for (int i = 0; i < pa1.length; i++)\n        {\n            final long id = pa1[i].getID();\n            if (id == 0)\n            {\n                p10 = pa1[i];\n                pa1 = remove(pa1, i);\n                i--;\n            }\n            if (id == 1)\n            {\n                pa1 = remove(pa1, i);\n                i--;\n            }\n        }\n        for (int i = 0; i < pa2.length; i++)\n        {\n            final long id = pa2[i].getID();\n            if (id == 0)\n            {\n                p20 = pa2[i];\n                pa2 = remove(pa2, i);\n                i--;\n            }\n            if (id == 1)\n            {\n                pa2 = remove(pa2, i);\n                i--;\n            }\n        }\n\n        /* If the number of properties (not counting property 1) is unequal the\n         * sections are unequal. */\n        if (pa1.length != pa2.length)\n            return false;\n\n        /* If the dictionaries are unequal the sections are unequal. */\n        boolean dictionaryEqual = true;\n        if (p10 != null && p20 != null)\n            dictionaryEqual = p10.getValue().equals(p20.getValue());\n        else if (p10 != null || p20 != null)\n            dictionaryEqual = false;\n        if (!dictionaryEqual)\n            return false;\n        else\n            return Util.equals(pa1, pa2);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "RETURN", "RETURN", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [1, 16], [2, 17], [2, 18], [4, 19], [4, 20], [5, 21], [6, 22], [0, 23], [0, 24], [11, 25], [11, 26], [13, 27], [13, 28], [15, 29], [16, 30], [17, 31], [2, 32], [18, 33], [18, 34], [3, 35], [19, 36], [5, 37], [5, 38], [5, 39], [6, 40], [6, 41], [6, 42], [7, 43], [8, 44], [23, 45], [23, 46], [23, 47], [24, 48], [24, 49], [24, 50], [25, 51], [26, 52], [27, 53], [28, 54], [28, 55], [17, 56], [31, 57], [31, 58], [32, 59], [33, 60], [34, 61], [37, 62], [38, 63], [5, 64], [40, 65], [41, 66], [6, 67], [9, 68], [10, 69], [52, 70], [55, 71], [56, 72], [57, 73], [58, 74], [59, 75], [62, 76], [63, 77], [65, 78], [66, 79], [75, 80], [37, 81], [38, 82], [38, 83], [39, 84], [40, 85], [41, 86], [41, 87], [42, 88], [81, 89], [82, 90], [85, 91], [86, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 1], [17, 2], [18, 2], [19, 4], [20, 4], [21, 5], [22, 6], [23, 0], [24, 0], [25, 11], [26, 11], [27, 13], [28, 13], [29, 15], [30, 16], [31, 17], [32, 2], [33, 18], [34, 18], [35, 3], [36, 19], [37, 5], [38, 5], [39, 5], [40, 6], [41, 6], [42, 6], [43, 7], [44, 8], [45, 23], [46, 23], [47, 23], [48, 24], [49, 24], [50, 24], [51, 25], [52, 26], [53, 27], [54, 28], [55, 28], [56, 17], [57, 31], [58, 31], [59, 32], [60, 33], [61, 34], [62, 37], [63, 38], [64, 5], [65, 40], [66, 41], [67, 6], [68, 9], [69, 10], [70, 52], [71, 55], [72, 56], [73, 57], [74, 58], [75, 59], [76, 62], [77, 63], [78, 65], [79, 66], [80, 75], [81, 37], [82, 38], [83, 38], [84, 39], [85, 40], [86, 41], [87, 41], [88, 42], [89, 81], [90, 82], [91, 85], [92, 86], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "remove", "code": "    private Property[] remove(final Property[] pa, final int i)\n    {\n        final Property[] h = new Property[pa.length - 1];\n        if (i > 0)\n            System.arraycopy(pa, 0, h, 0, i);\n        System.arraycopy(pa, i + 1, h, i, h.length - i);\n        return h;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [6, 8], [6, 9], [2, 10], [7, 11], [9, 12], [10, 13], [10, 14], [3, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 6], [9, 6], [10, 2], [11, 7], [12, 9], [13, 10], [14, 10], [15, 3], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "hashCode", "code": "    public int hashCode()\n    {\n        long hashCode = 0;\n        hashCode += getFormatID().hashCode();\n        final Property[] pa = getProperties();\n        for (int i = 0; i < pa.length; i++)\n            hashCode += pa[i].hashCode();\n        final int returnHashCode = (int) (hashCode & 0x0ffffffffL);\n        return returnHashCode;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [0, 7], [3, 8], [4, 9], [7, 10], [5, 11], [2, 12], [3, 13], [10, 14], [12, 15], [8, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 0], [8, 3], [9, 4], [10, 7], [11, 5], [12, 2], [13, 3], [14, 10], [15, 12], [16, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        final StringBuffer b = new StringBuffer();\n        final Property[] pa = getProperties();\n        b.append(getClass().getName());\n        b.append('[');\n        b.append(\"formatID: \");\n        b.append(getFormatID());\n        b.append(\", offset: \");\n        b.append(getOffset());\n        b.append(\", propertyCount: \");\n        b.append(getPropertyCount());\n        b.append(\", size: \");\n        b.append(getSize());\n        b.append(\", properties: [\\n\");\n        for (int i = 0; i < pa.length; i++)\n        {\n            b.append(pa[i].toString());\n            b.append(\",\\n\");\n        }\n        b.append(']');\n        b.append(']');\n        return b.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [2, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [6, 20], [7, 21], [9, 22], [10, 23], [11, 24], [12, 25], [13, 26], [14, 27], [15, 28], [16, 29], [17, 30], [18, 31], [19, 32], [3, 33], [4, 34], [2, 35], [2, 36], [2, 37], [32, 38], [35, 39], [36, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 2], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 6], [21, 7], [22, 9], [23, 10], [24, 11], [25, 12], [26, 13], [27, 14], [28, 15], [29, 16], [30, 17], [31, 18], [32, 19], [33, 3], [34, 4], [35, 2], [36, 2], [37, 2], [38, 32], [39, 35], [40, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "getDictionary", "code": "    public Map getDictionary()\n    {\n        return dictionary;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCodepage", "code": "    public int getCodepage()\n    {\n        final Integer codepage =\n            (Integer) getProperty(PropertyIDMap.PID_CODEPAGE);\n        if (codepage == null)\n            return -1;\n        int cp = codepage.intValue();\n        return cp;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [2, 7], [5, 8], [6, 9], [4, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 2], [8, 5], [9, 6], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "Section", "code": "    protected Section()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Section", "code": "    public Section(final byte[] src, final int offset)\n    throws UnsupportedEncodingException\n    {\n        int o1 = offset;\n\n        /*\n         * Read the format ID.\n         */\n        formatID = new ClassID(src, o1);\n        o1 += ClassID.LENGTH;\n\n        /*\n         * Read the offset from the stream's start and positions to\n         * the section header.\n         */\n        this.offset = LittleEndian.getUInt(src, o1);\n        o1 = (int) this.offset;\n\n        /*\n         * Read the section length.\n         */\n        size = (int) LittleEndian.getUInt(src, o1);\n        o1 += LittleEndian.INT_SIZE;\n\n        /*\n         * Read the number of properties.\n         */\n        final int propertyCount = (int) LittleEndian.getUInt(src, o1);\n        o1 += LittleEndian.INT_SIZE;\n\n        /*\n         * Read the properties. The offset is positioned at the first\n         * entry of the property list. There are two problems:\n         * \n         * 1. For each property we have to find out its length. In the\n         *    property list we find each property's ID and its offset relative\n         *    to the section's beginning. Unfortunately the properties in the\n         *    property list need not to be in ascending order, so it is not\n         *    possible to calculate the length as\n         *    (offset of property(i+1) - offset of property(i)). Before we can\n         *    that we first have to sort the property list by ascending offsets.\n         * \n         * 2. We have to read the property with ID 1 before we read other \n         *    properties, at least before other properties containing strings.\n         *    The reason is that property 1 specifies the codepage. If it is\n         *    1200, all strings are in Unicode. In other words: Before we can\n         *    read any strings we have to know whether they are in Unicode or\n         *    not. Unfortunately property 1 is not guaranteed to be the first in\n         *    a section.\n         *\n         *    The algorithm below reads the properties in two passes: The first\n         *    one looks for property ID 1 and extracts the codepage number. The\n         *    seconds pass reads the other properties.\n         */\n        properties = new Property[propertyCount];\n        \n        /* Pass 1: Read the property list. */\n        int pass1Offset = o1;\n        List propertyList = new ArrayList(propertyCount);\n        PropertyListEntry ple;\n        for (int i = 0; i < properties.length; i++)\n        {\n            ple = new PropertyListEntry();\n\n            /* Read the property ID. */\n            ple.id = (int) LittleEndian.getUInt(src, pass1Offset);\n            pass1Offset += LittleEndian.INT_SIZE;\n\n            /* Offset from the section's start. */\n            ple.offset = (int) LittleEndian.getUInt(src, pass1Offset);\n            pass1Offset += LittleEndian.INT_SIZE;\n\n            /* Add the entry to the property list. */\n            propertyList.add(ple);\n        }\n\n        /* Sort the property list by ascending offsets: */\n        Collections.sort(propertyList);\n\n        /* Calculate the properties' lengths. */\n        for (int i = 0; i < propertyCount - 1; i++)\n        {\n            final PropertyListEntry ple1 =\n                (PropertyListEntry) propertyList.get(i);\n            final PropertyListEntry ple2 =\n                (PropertyListEntry) propertyList.get(i + 1);\n            ple1.length = ple2.offset - ple1.offset;\n        }\n        if (propertyCount > 0)\n        {\n            ple = (PropertyListEntry) propertyList.get(propertyCount - 1);\n            ple.length = size - ple.offset;\n        }\n\n        /* Look for the codepage. */\n        int codepage = -1;\n        for (final Iterator i = propertyList.iterator();\n             codepage == -1 && i.hasNext();)\n        {\n            ple = (PropertyListEntry) i.next();\n\n            /* Read the codepage if the property ID is 1. */\n            if (ple.id == PropertyIDMap.PID_CODEPAGE)\n            {\n                /* Read the property's value type. It must be\n                 * VT_I2. */\n                int o = (int) (this.offset + ple.offset);\n                final long type = LittleEndian.getUInt(src, o);\n                o += LittleEndian.INT_SIZE;\n\n                if (type != Variant.VT_I2)\n                    throw new HPSFRuntimeException\n                        (\"Value type of property ID 1 is not VT_I2 but \" +\n                         type + \".\");\n\n                /* Read the codepage number. */\n                codepage = LittleEndian.getUShort(src, o);\n            }\n        }\n\n        /* Pass 2: Read all properties - including the codepage property,\n         * if available. */\n        int i1 = 0;\n        for (final Iterator i = propertyList.iterator(); i.hasNext();)\n        {\n            ple = (PropertyListEntry) i.next();\n            Property p = new Property(ple.id, src,\n                    this.offset + ple.offset,\n                    ple.length, codepage);\n            if (p.getID() == PropertyIDMap.PID_CODEPAGE)\n                p = new Property(p.getID(), p.getType(), new Integer(codepage));\n            properties[i1++] = p;\n        }\n\n        /*\n         * Extract the dictionary (if available).\n         */\n        dictionary = (Map) getProperty(0);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [3, 17], [5, 18], [6, 19], [0, 20], [7, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [1, 30], [1, 31], [2, 32], [3, 33], [17, 34], [17, 35], [4, 36], [18, 37], [6, 38], [6, 39], [19, 40], [9, 41], [27, 42], [29, 43], [15, 44], [1, 45], [30, 46], [1, 47], [1, 48], [33, 49], [3, 50], [35, 51], [3, 52], [5, 53], [5, 54], [6, 55], [40, 56], [6, 57], [7, 58], [7, 59], [7, 60], [7, 61], [7, 62], [7, 63], [7, 64], [11, 65], [25, 66], [44, 67], [30, 68], [46, 69], [31, 70], [33, 71], [33, 72], [33, 73], [53, 74], [55, 75], [63, 76], [68, 77], [70, 78], [47, 79], [33, 80], [71, 81], [71, 82], [33, 83], [50, 84], [54, 85], [38, 86], [39, 87], [60, 88], [62, 89], [77, 90], [77, 91], [77, 92], [80, 93], [81, 94], [72, 95], [85, 96], [86, 97], [94, 98], [73, 99], [96, 100], [97, 101], [98, 102], [98, 103], [103, 104], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 3], [18, 5], [19, 6], [20, 0], [21, 7], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 1], [31, 1], [32, 2], [33, 3], [34, 17], [35, 17], [36, 4], [37, 18], [38, 6], [39, 6], [40, 19], [41, 9], [42, 27], [43, 29], [44, 15], [45, 1], [46, 30], [47, 1], [48, 1], [49, 33], [50, 3], [51, 35], [52, 3], [53, 5], [54, 5], [55, 6], [56, 40], [57, 6], [58, 7], [59, 7], [60, 7], [61, 7], [62, 7], [63, 7], [64, 7], [65, 11], [66, 25], [67, 44], [68, 30], [69, 46], [70, 31], [71, 33], [72, 33], [73, 33], [74, 53], [75, 55], [76, 63], [77, 68], [78, 70], [79, 47], [80, 33], [81, 71], [82, 71], [83, 33], [84, 50], [85, 54], [86, 38], [87, 39], [88, 60], [89, 62], [90, 77], [91, 77], [92, 77], [93, 80], [94, 81], [95, 72], [96, 85], [97, 86], [98, 94], [99, 73], [100, 96], [101, 97], [102, 98], [103, 98], [104, 103], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104]]}], "label": 1}
{"sample_id": "poi-3.0-6069", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/util/IntegerField.java", "language": "java", "name": "org.apache.poi.util.IntegerField", "code": "public class IntegerField\n    implements FixedField\n{\n    private int       _value;\n    private final int _offset;\n\n    /**\n     * construct the IntegerField with its offset into its containing\n     * byte array\n     *\n     * @param offset of the field within its byte array\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is\n     *            negative\n     */\n\n    public IntegerField(final int offset)\n        throws ArrayIndexOutOfBoundsException\n    {\n        if (offset < 0)\n        {\n            throw new ArrayIndexOutOfBoundsException(\"negative offset\");\n        }\n        _offset = offset;\n    }\n\n    /**\n     * construct the IntegerField with its offset into its containing\n     * byte array and initialize its value\n     *\n     * @param offset of the field within its byte array\n     * @param value the initial value\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is\n     *            negative\n     */\n\n    public IntegerField(final int offset, final int value)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value);\n    }\n\n    /**\n     * Construct the IntegerField with its offset into its containing\n     * byte array and initialize its value from its byte array\n     *\n     * @param offset of the field within its byte array\n     * @param data the byte array to read the value from\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is not\n     *            within the range of 0..(data.length - 1)\n     */\n\n    public IntegerField(final int offset, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        readFromBytes(data);\n    }\n\n    /**\n     * construct the IntegerField with its offset into its containing\n     * byte array, initialize its value, and write the value to a byte\n     * array\n     *\n     * @param offset of the field within its byte array\n     * @param value the initial value\n     * @param data the byte array to write the value to\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is\n     *            negative or too large\n     */\n\n    public IntegerField(final int offset, final int value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value, data);\n    }\n\n    /**\n     * get the IntegerField's current value\n     *\n     * @return current value\n     */\n\n    public int get()\n    {\n        return _value;\n    }\n\n    /**\n     * set the IntegerField's current value\n     *\n     * @param value to be set\n     */\n\n    public void set(final int value)\n    {\n        _value = value;\n    }\n\n    /**\n     * set the IntegerField's current value and write it to a byte\n     * array\n     *\n     * @param value to be set\n     * @param data the byte array to write the value to\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is too\n     *            large\n     */\n\n    public void set(final int value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = value;\n        writeToBytes(data);\n    }\n\n    /* ********** START implementation of FixedField ********** */\n\n    /**\n     * set the value from its offset into an array of bytes\n     *\n     * @param data the byte array from which the value is to be read\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is too\n     *            large\n     */\n\n    public void readFromBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = LittleEndian.getInt(data, _offset);\n    }\n\n    /**\n     * set the value from an InputStream\n     *\n     * @param stream the InputStream from which the value is to be\n     *               read\n     *\n     * @exception BufferUnderrunException if there is not enough data\n     *            available from the InputStream\n     * @exception IOException if an IOException is thrown from reading\n     *            the InputStream\n     */\n\n    public void readFromStream(final InputStream stream)\n        throws IOException, BufferUnderrunException\n    {\n        _value = LittleEndian.readInt(stream);\n    }\n\n    /**\n     * write the value out to an array of bytes at the appropriate\n     * offset\n     *\n     * @param data the array of bytes to which the value is to be\n     *             written\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is too\n     *            large\n     */\n\n    public void writeToBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        LittleEndian.putInt(data, _offset, _value);\n    }\n\n    /**\n     * return the value as a String\n     *\n     * @return the value as a String\n     */\n\n    public String toString()\n    {\n        return String.valueOf(_value);", "functions": [{"function_name": "get", "code": "    public int get()\n    {\n        return _value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "set", "code": "    public void set(final int value)\n    {\n        _value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "set", "code": "    public void set(final int value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = value;\n        writeToBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readFromBytes", "code": "    public void readFromBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = LittleEndian.getInt(data, _offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "readFromStream", "code": "    public void readFromStream(final InputStream stream)\n        throws IOException, BufferUnderrunException\n    {\n        _value = LittleEndian.readInt(stream);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "writeToBytes", "code": "    public void writeToBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        LittleEndian.putInt(data, _offset, _value);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        return String.valueOf(_value);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "IntegerField", "code": "    public IntegerField(final int offset)\n        throws ArrayIndexOutOfBoundsException\n    {\n        if (offset < 0)\n        {\n            throw new ArrayIndexOutOfBoundsException(\"negative offset\");\n        }\n        _offset = offset;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "IntegerField", "code": "    public IntegerField(final int offset, final int value)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "IntegerField", "code": "    public IntegerField(final int offset, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        readFromBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "IntegerField", "code": "    public IntegerField(final int offset, final int value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.2-1857", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/spring/RouteBuilderFinder.java", "language": "java", "name": "org.apache.camel.spring.RouteBuilderFinder", "code": "public class RouteBuilderFinder {\n    private static final transient Log LOG = LogFactory.getLog(RouteBuilderFinder.class);\n    private final SpringCamelContext camelContext;\n    private final String[] packages;\n    private ApplicationContext applicationContext;\n    private ResolverUtil resolver = new ResolverUtil();\n\n    public RouteBuilderFinder(SpringCamelContext camelContext, String[] packages, ClassLoader classLoader) {\n        this.camelContext = camelContext;\n        this.applicationContext = camelContext.getApplicationContext();\n        this.packages = packages;\n\n        Set set = resolver.getClassLoaders();\n        set.clear();\n        set.add(classLoader);\n/*\n        set.add(classLoader);\n        set.add(applicationContext.getClassLoader());\n        set.add(getClass().getClassLoader());\n*/\n    }\n\n    public String[] getPackages() {\n        return packages;\n    }\n\n    public ApplicationContext getApplicationContext() {\n        return applicationContext;\n    }\n\n\n    /**\n     * Appends all the {@link RouteBuilder} instances that can be found on the classpath\n     */\n    public void appendBuilders(List<RouteBuilder> list) throws IllegalAccessException, InstantiationException {\n        resolver.findImplementations(RouteBuilder.class, packages);\n        Set<Class> classes = resolver.getClasses();\n        for (Class aClass : classes) {\n            if (shouldIgnoreBean(aClass)) {\n                continue;\n            }\n            if (isValidClass(aClass)) {\n                RouteBuilder builder = instantiateBuilder(aClass);\n                list.add(builder);\n            }\n        }\n    }\n\n    public void destroy() throws Exception {\n    }\n\n    /**\n     * Lets ignore beans that are not explicitly configured in the spring.xml\n     */\n    protected boolean shouldIgnoreBean(Class type) {\n        Map beans = applicationContext.getBeansOfType(type, true, true);\n        if (beans == null || beans.isEmpty()) {\n            return false;\n        }\n        return true;\n    }\n\n    /**\n     * Returns true if the object is non-abstract and supports a zero argument constructor\n     */\n    protected boolean isValidClass(Class type) {\n        if (!Modifier.isAbstract(type.getModifiers()) && !type.isInterface()) {\n            return true;\n        }\n        return false;\n    }\n\n    protected RouteBuilder instantiateBuilder(Class type) throws IllegalAccessException, InstantiationException {\n        return (RouteBuilder) camelContext.getInjector().newInstance(type);", "functions": [{"function_name": "getPackages", "code": "    public String[] getPackages() {\n        return packages;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getApplicationContext", "code": "    public ApplicationContext getApplicationContext() {\n        return applicationContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "appendBuilders", "code": "    public void appendBuilders(List<RouteBuilder> list) throws IllegalAccessException, InstantiationException {\n        resolver.findImplementations(RouteBuilder.class, packages);\n        Set<Class> classes = resolver.getClasses();\n        for (Class aClass : classes) {\n            if (shouldIgnoreBean(aClass)) {\n                continue;\n            }\n            if (isValidClass(aClass)) {\n                RouteBuilder builder = instantiateBuilder(aClass);\n                list.add(builder);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "IF", "IF", "CALL", "CALL", "CALL", "VAR_DECL", "BREAK_CONTINUE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [5, 8], [6, 9], [5, 10], [6, 11], [5, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 5], [9, 6], [10, 5], [11, 6], [12, 5], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "destroy", "code": "    public void destroy() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "shouldIgnoreBean", "code": "    protected boolean shouldIgnoreBean(Class type) {\n        Map beans = applicationContext.getBeansOfType(type, true, true);\n        if (beans == null || beans.isEmpty()) {\n            return false;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [6, 9], [3, 10], [7, 11], [9, 12], [10, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 6], [10, 3], [11, 7], [12, 9], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isValidClass", "code": "    protected boolean isValidClass(Class type) {\n        if (!Modifier.isAbstract(type.getModifiers()) && !type.isInterface()) {\n            return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "instantiateBuilder", "code": "    protected RouteBuilder instantiateBuilder(Class type) throws IllegalAccessException, InstantiationException {\n        return (RouteBuilder) camelContext.getInjector().newInstance(type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RouteBuilderFinder", "code": "    public RouteBuilderFinder(SpringCamelContext camelContext, String[] packages, ClassLoader classLoader) {\n        this.camelContext = camelContext;\n        this.applicationContext = camelContext.getApplicationContext();\n        this.packages = packages;\n\n        Set set = resolver.getClassLoaders();\n        set.clear();\n        set.add(classLoader);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "camel-1.2-1760", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/resequencer/ElementComparator.java", "language": "java", "name": "org.apache.camel.processor.resequencer.ElementComparator", "code": "class ElementComparator<E> implements SequenceElementComparator<Element<E>> {\n\n    /**\n     * A sequence element comparator this comparator delegates to.\n     */\n    private SequenceElementComparator<E> comparator;\n    \n    /**\n     * Creates a new element comparator instance.\n     * \n     * @param comparator a sequence element comparator this comparator delegates\n     *        to.\n     */\n    public ElementComparator(SequenceElementComparator<E> comparator) {\n        this.comparator = comparator;\n    }\n    \n    /**\n     * @see SequenceElementComparator#predecessor(java.lang.Object, java.lang.Object)\n     */\n    public boolean predecessor(Element<E> o1, Element<E> o2) {\n        return comparator.predecessor(o1.getObject(), o2.getObject());\n    }\n\n    /**\n     * @see SequenceElementComparator#successor(java.lang.Object, java.lang.Object)\n     */\n    public boolean successor(Element<E> o1, Element<E> o2) {\n        return comparator.successor(o1.getObject(), o2.getObject());\n    }\n\n    /**\n     * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)\n     */\n    public int compare(Element<E> o1, Element<E> o2) {\n        return comparator.compare(o1.getObject(), o2.getObject());", "functions": [{"function_name": "predecessor", "code": "    public boolean predecessor(Element<E> o1, Element<E> o2) {\n        return comparator.predecessor(o1.getObject(), o2.getObject());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "successor", "code": "    public boolean successor(Element<E> o1, Element<E> o2) {\n        return comparator.successor(o1.getObject(), o2.getObject());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "compare", "code": "    public int compare(Element<E> o1, Element<E> o2) {\n        return comparator.compare(o1.getObject(), o2.getObject());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "ElementComparator", "code": "    public ElementComparator(SequenceElementComparator<E> comparator) {\n        this.comparator = comparator;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "lucene-2.4-5127", "repo": "lucene-2.4", "project": "lucene", "version": "2.4", "file_path": "org/apache/lucene/queryParser/Token.java", "language": "java", "name": "org.apache.lucene.queryParser.Token", "code": "public class Token {\n\n  /**\n   * An integer that describes the kind of this token.  This numbering\n   * system is determined by JavaCCParser, and a table of these numbers is\n   * stored in the file ...Constants.java.\n   */\n  public int kind;\n\n  /** The line number of the first character of this Token. */\n  public int beginLine;\n  /** The column number of the first character of this Token. */\n  public int beginColumn;\n  /** The line number of the last character of this Token. */\n  public int endLine;\n  /** The column number of the last character of this Token. */\n  public int endColumn;\n\n  /**\n   * The string image of the token.\n   */\n  public String image;\n\n  /**\n   * A reference to the next regular (non-special) token from the input\n   * stream.  If this is the last token from the input stream, or if the\n   * token manager has not read tokens beyond this one, this field is\n   * set to null.  This is true only if this token is also a regular\n   * token.  Otherwise, see below for a description of the contents of\n   * this field.\n   */\n  public Token next;\n\n  /**\n   * This field is used to access special tokens that occur prior to this\n   * token, but after the immediately preceding regular (non-special) token.\n   * If there are no such special tokens, this field is set to null.\n   * When there are more than one such special token, this field refers\n   * to the last of these special tokens, which in turn refers to the next\n   * previous special token through its specialToken field, and so on\n   * until the first special token (whose specialToken field is null).\n   * The next fields of special tokens refer to other special tokens that\n   * immediately follow it (without an intervening regular token).  If there\n   * is no such token, this field is null.\n   */\n  public Token specialToken;\n\n  /**\n   * An optional attribute value of the Token.\n   * Tokens which are not used as syntactic sugar will often contain\n   * meaningful values that will be used later on by the compiler or\n   * interpreter. This attribute value is often different from the image.\n   * Any subclass of Token that actually wants to return a non-null value can\n   * override this method as appropriate.\n   */\n  public Object getValue() {\n    return null;\n  }\n\n  /**\n   * No-argument constructor\n   */\n  public Token() {}\n\n  /**\n   * Constructs a new token for the specified Image.\n   */\n  public Token(int kind)\n  {\n     this(kind, null);\n  }\n\n  /**\n   * Constructs a new token for the specified Image and Kind.\n   */\n  public Token(int kind, String image)\n  {\n     this.kind = kind;\n     this.image = image;\n  }\n\n  /**\n   * Returns the image.\n   */\n  public String toString()\n  {\n     return image;\n  }\n\n  /**\n   * Returns a new Token object, by default. However, if you want, you\n   * can create and return subclass objects based on the value of ofKind.\n   * Simply add the cases to the switch for all those special cases.\n   * For example, if you have a subclass of Token called IDToken that\n   * you want to create if ofKind is ID, simply add something like :\n   *\n   *    case MyParserConstants.ID : return new IDToken(ofKind, image);\n   *\n   * to the following switch statement. Then you can cast matchedToken\n   * variable to the appropriate type and use sit in your lexical actions.\n   */\n  public static Token newToken(int ofKind, String image)\n  {\n     switch(ofKind)\n     {\n       default : return new Token(ofKind, image);\n     }\n  }\n\n  public static Token newToken(int ofKind)\n  {\n     return newToken(ofKind, null);", "functions": [{"function_name": "getValue", "code": "  public Object getValue() {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "  public String toString()\n  {\n     return image;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "newToken", "code": "  public static Token newToken(int ofKind, String image)\n  {\n     switch(ofKind)\n     {\n       default : return new Token(ofKind, image);", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "newToken", "code": "  public static Token newToken(int ofKind)\n  {\n     return newToken(ofKind, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Token", "code": "  public Token() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Token", "code": "  public Token(int kind)\n  {\n     this(kind, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Token", "code": "  public Token(int kind, String image)\n  {\n     this.kind = kind;\n     this.image = image;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-4.0-3850", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/jEdit.java", "language": "java", "name": "org.gjt.sp.jedit.jEdit", "code": "public class jEdit\n{\n\t//{{{ getVersion() method\n\t/**\n\t * Returns the jEdit version as a human-readable string.\n\t */\n\tpublic static String getVersion()\n\t{\n\t\treturn MiscUtilities.buildToVersion(getBuild());\n\t} //}}}\n\n\t//{{{ getBuild() method\n\t/**\n\t * Returns the internal version. MiscUtilities.compareStrings() can be used\n\t * to compare different internal versions.\n\t */\n\tpublic static String getBuild()\n\t{\n\t\t// (major).(minor).(<99 = preX, 99 = final).(bug fix)\n\t\treturn \"04.00.99.00\";\n\t} //}}}\n\n\t//{{{ main() method\n\t/**\n\t * The main method of the jEdit application.\n\t * This should never be invoked directly.\n\t * @param args The command line arguments\n\t */\n\tpublic static void main(String[] args)\n\t{\n\t\tString javaVersion = System.getProperty(\"java.version\");\n\t\tif(javaVersion.compareTo(\"1.3\") < 0)\n\t\t{\n\t\t\tSystem.err.println(\"You are running Java version \"\n\t\t\t\t+ javaVersion + \".\");\n\t\t\tSystem.err.println(\"jEdit requires Java 1.3 or later.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//{{{ Parse command line\n\t\tint level = Log.WARNING;\n\t\tif(args.length >= 1)\n\t\t{\n\t\t\tString levelStr = args[0];\n\t\t\tif(levelStr.length() == 1 && Character.isDigit(\n\t\t\t\tlevelStr.charAt(0)))\n\t\t\t{\n\t\t\t\tlevel = Integer.parseInt(levelStr);\n\t\t\t\targs[0] = null;\n\t\t\t}\n\t\t}\n\n\t\tboolean endOpts = false;\n\t\tsettingsDirectory = MiscUtilities.constructPath(\n\t\t\tSystem.getProperty(\"user.home\"),\".jedit\");\n\t\tString portFile = \"server\";\n\t\tboolean restore = true;\n\t\tboolean gui = true; // open initial view?\n\t\tboolean noPlugins = false;\n\t\tboolean noStartupScripts = false;\n\t\tString userDir = System.getProperty(\"user.dir\");\n\n\t\t// script to run\n\t\tString scriptFile = null;\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tString arg = args[i];\n\t\t\tif(arg == null)\n\t\t\t\tcontinue;\n\t\t\telse if(arg.length() == 0)\n\t\t\t\targs[i] = null;\n\t\t\telse if(arg.startsWith(\"-\") && !endOpts)\n\t\t\t{\n\t\t\t\tif(arg.equals(\"--\"))\n\t\t\t\t\tendOpts = true;\n\t\t\t\telse if(arg.equals(\"-usage\"))\n\t\t\t\t{\n\t\t\t\t\tversion();\n\t\t\t\t\tSystem.err.println();\n\t\t\t\t\tusage();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\telse if(arg.equals(\"-version\"))\n\t\t\t\t{\n\t\t\t\t\tversion();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\telse if(arg.equals(\"-nosettings\"))\n\t\t\t\t\tsettingsDirectory = null;\n\t\t\t\telse if(arg.startsWith(\"-settings=\"))\n\t\t\t\t\tsettingsDirectory = arg.substring(10);\n\t\t\t\telse if(arg.startsWith(\"-noserver\"))\n\t\t\t\t\tportFile = null;\n\t\t\t\telse if(arg.equals(\"-server\"))\n\t\t\t\t\tportFile = \"server\";\n\t\t\t\telse if(arg.startsWith(\"-server=\"))\n\t\t\t\t\tportFile = arg.substring(8);\n\t\t\t\telse if(arg.startsWith(\"-background\"))\n\t\t\t\t\tbackground = true;\n\t\t\t\telse if(arg.equals(\"-nogui\"))\n\t\t\t\t\tgui = false;\n\t\t\t\telse if(arg.equals(\"-norestore\"))\n\t\t\t\t\trestore = false;\n\t\t\t\telse if(arg.equals(\"-noplugins\"))\n\t\t\t\t\tnoPlugins = true;\n\t\t\t\telse if(arg.equals(\"-nostartupscripts\"))\n\t\t\t\t\tnoStartupScripts = true;\n\t\t\t\telse if(arg.startsWith(\"-run=\"))\n\t\t\t\t\tscriptFile = arg.substring(5);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Unknown option: \"\n\t\t\t\t\t\t+ arg);\n\t\t\t\t\tusage();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\targs[i] = null;\n\t\t\t}\n\t\t} //}}}\n\n\t\tif(settingsDirectory != null && portFile != null)\n\t\t\tportFile = MiscUtilities.constructPath(settingsDirectory,portFile);\n\t\telse\n\t\t\tportFile = null;\n\n\t\tLog.init(true,level);\n\n\t\t//{{{ Try connecting to another running jEdit instance\n\t\tif(portFile != null && new File(portFile).exists())\n\t\t{\n\t\t\tint port, key;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tBufferedReader in = new BufferedReader(new FileReader(portFile));\n\t\t\t\tString check = in.readLine();\n\t\t\t\tif(!check.equals(\"b\"))\n\t\t\t\t\tthrow new Exception(\"Wrong port file format\");\n\n\t\t\t\tport = Integer.parseInt(in.readLine());\n\t\t\t\tkey = Integer.parseInt(in.readLine());\n\t\t\t\tin.close();\n\n\t\t\t\tSocket socket = new Socket(InetAddress.getByName(\"127.0.0.1\"),port);\n\t\t\t\tDataOutputStream out = new DataOutputStream(\n\t\t\t\t\tsocket.getOutputStream());\n\t\t\t\tout.writeInt(key);\n\n\t\t\t\tString script = makeServerScript(restore,args,scriptFile);\n\n\t\t\t\tout.writeUTF(script);\n\n\t\t\t\tout.close();\n\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\t// ok, this one seems to confuse newbies\n\t\t\t\t// endlessly, so log it as NOTICE, not\n\t\t\t\t// ERROR\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"An error occurred\"\n\t\t\t\t\t+ \" while connecting to the jEdit server instance.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"This probably means that\"\n\t\t\t\t\t+ \" jEdit crashed and/or exited abnormally\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"the last time it was run.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"If you don't\"\n\t\t\t\t\t+ \" know what this means, don't worry.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,e);\n\t\t\t}\n\t\t} //}}}\n\n\t\t// don't show splash screen if there is a file named\n\t\t// 'nosplash' in the settings directory\n\t\tif(!new File(settingsDirectory,\"nosplash\").exists())\n\t\t\tGUIUtilities.showSplashScreen();\n\n\t\t//{{{ Initialize settings directory\n\t\tWriter stream;\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile _settingsDirectory = new File(settingsDirectory);\n\t\t\tif(!_settingsDirectory.exists())\n\t\t\t\t_settingsDirectory.mkdirs();\n\t\t\tFile _macrosDirectory = new File(settingsDirectory,\"macros\");\n\t\t\tif(!_macrosDirectory.exists())\n\t\t\t\t_macrosDirectory.mkdir();\n\n\t\t\tString logPath = MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"activity.log\");\n\n\t\t\tbackupSettingsFile(new File(logPath));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstream = new BufferedWriter(new FileWriter(logPath));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\tstream = null;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstream = null;\n\t\t} //}}}\n\n\t\tLog.setLogWriter(stream);\n\n\t\tLog.log(Log.NOTICE,jEdit.class,\"jEdit version \" + getVersion());\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"Settings directory is \"\n\t\t\t+ settingsDirectory);\n\n\t\t//{{{ Initialize server\n\t\tif(portFile != null)\n\t\t{\n\t\t\tserver = new EditServer(portFile);\n\t\t\tif(!server.isOK())\n\t\t\t\tserver = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(background)\n\t\t\t{\n\t\t\t\tbackground = false;\n\t\t\t\tSystem.err.println(\"You cannot specify both the\"\n\t\t\t\t\t+ \" -background and -noserver switches\");\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Get things rolling\n\t\tinitMisc();\n\t\tinitSystemProperties();\n\t\tif(jEditHome != null)\n\t\t\tinitSiteProperties();\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tBeanShell.init();\n\n\t\tinitUserProperties();\n\t\tinitPLAF();\n\n\t\tif(OperatingSystem.hasJava14()\n\t\t\t&& System.getProperty(\"jedit.nojava14\") == null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tClassLoader loader = jEdit.class.getClassLoader();\n\t\t\t\tClass clazz;\n\t\t\t\tif(loader != null)\n\t\t\t\t\tclazz = loader.loadClass(\"org.gjt.sp.jedit.Java14\");\n\t\t\t\telse\n\t\t\t\t\tclazz = Class.forName(\"org.gjt.sp.jedit.Java14\");\n\t\t\t\tjava.lang.reflect.Method meth = clazz\n\t\t\t\t\t.getMethod(\"init\",new Class[0]);\n\t\t\t\tmeth.invoke(null,new Object[0]);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\n\t\tinitActions();\n\t\tinitDockables();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tVFSManager.init();\n\n\t\tif(!noPlugins)\n\t\t\tinitPlugins();\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile history = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"history\"));\n\t\t\tif(history.exists())\n\t\t\t\thistoryModTime = history.lastModified();\n\t\t\tHistoryModel.loadHistory(history);\n\n\t\t\tFile recent = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"recent.xml\"));\n\t\t\tif(recent.exists())\n\t\t\t\trecentModTime = recent.lastModified();\n\t\t\tBufferHistory.load(recent);\n\t\t}\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\t// Buffer sort\n\t\tsortBuffers = getBooleanProperty(\"sortBuffers\");\n\t\tsortByName = getBooleanProperty(\"sortByName\");\n\n\t\treloadModes();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tSearchAndReplace.load();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\t\t//}}}\n\n\t\t//{{{ Start plugins\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\t((EditPlugin.JAR)jars.elementAt(i)).getClassLoader()\n\t\t\t\t.startAllPlugins();\n\t\t} //}}}\n\n\t\t//{{{ Load macros and run startup scripts, after plugins and settings are loaded\n\t\tMacros.loadMacros();\n\n\t\tif(!noStartupScripts && jEditHome != null)\n\t\t{\n\t\t\tString path = MiscUtilities.constructPath(jEditHome,\"startup\");\n\t\t\tFile file = new File(path);\n\t\t\tif(file.exists())\n\t\t\t\trunStartupScripts(file);\n\t\t}\n\n\t\tif(!noStartupScripts && settingsDirectory != null)\n\t\t{\n\t\t\tString path = MiscUtilities.constructPath(settingsDirectory,\"startup\");\n\t\t\tFile file = new File(path);\n\t\t\tif(!file.exists())\n\t\t\t\tfile.mkdirs();\n\t\t\telse\n\t\t\t\trunStartupScripts(file);\n\t\t} //}}}\n\n\t\t//{{{ Run script specified with -run= parameter\n\t\tif(scriptFile != null)\n\t\t{\n\t\t\tscriptFile = MiscUtilities.constructPath(userDir,scriptFile);\n\t\t\tBeanShell.runScript(null,scriptFile,null,false);\n\t\t} //}}}\n\n\t\t// Must be after plugins are started!!!\n\t\tpropertiesChanged();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\t//{{{ Open files\n\t\tBuffer buffer = openFiles(null,userDir,args);\n\t\tif(buffer != null)\n\t\t{\n\t\t\t// files specified on command line; force initial view\n\t\t\t// to open\n\t\t\tgui = true;\n\t\t}\n\n\t\tString splitConfig = null;\n\n\t\tif(restore && settingsDirectory != null\n\t\t\t&& jEdit.getBooleanProperty(\"restore\")\n\t\t\t&& (bufferCount == 0 || jEdit.getBooleanProperty(\"restore.cli\")))\n\t\t{\n\t\t\tsplitConfig = restoreOpenFiles();\n\t\t}\n\n\t\tif(bufferCount == 0 && gui)\n\t\t\tnewFile(null);\n\t\t//}}}\n\n\t\t//{{{ Create the view and hide the splash screen.\n\t\tfinal Buffer _buffer = buffer;\n\t\tfinal String _splitConfig = splitConfig;\n\t\tfinal boolean _gui = gui;\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tEditBus.send(new EditorStarted(null));\n\n\t\t\t\tif(_gui)\n\t\t\t\t{\n\t\t\t\t\tView view;\n\t\t\t\t\tif(_buffer != null)\n\t\t\t\t\t\tview = newView(null,_buffer);\n\t\t\t\t\telse\n\t\t\t\t\t\tview = newView(null,_splitConfig);\n\t\t\t\t}\n\n\t\t\t\t// Start I/O threads\n\t\t\t\tVFSManager.start();\n\n\t\t\t\t// Start edit server\n\t\t\t\tif(server != null)\n\t\t\t\t\tserver.start();\n\n\t\t\t\tGUIUtilities.hideSplashScreen();\n\n\t\t\t\tLog.log(Log.MESSAGE,jEdit.class,\"Startup \"\n\t\t\t\t\t+ \"complete\");\n\n\t\t\t\t//{{{ Report any plugin errors\n\t\t\t\tif(pluginErrors != null)\n\t\t\t\t{\n\t\t\t\t\tString caption = jEdit.getProperty(\n\t\t\t\t\t\t\"plugin-error.caption\" + (pluginErrors.size() == 1\n\t\t\t\t\t\t? \"-1\" : \"\"),new Integer[] {\n\t\t\t\t\t\tnew Integer(pluginErrors.size()) });\n\n\t\t\t\t\tnew ErrorListDialog(\n\t\t\t\t\t\tjEdit.getFirstView(),\n\t\t\t\t\t\tjEdit.getProperty(\"plugin-error.title\"),\n\t\t\t\t\t\tcaption,pluginErrors,true);\n\t\t\t\t\tpluginErrors.removeAllElements();\n\t\t\t\t} //}}}\n\t\t\t}\n\t\t}); //}}}\n\t} //}}}\n\n\t//{{{ Property methods\n\n\t//{{{ getProperties() method\n\t/**\n\t * Returns the properties object which contains all known\n\t * jEdit properties.\n\t * @since jEdit 3.1pre4\n\t */\n\tpublic static final Properties getProperties()\n\t{\n\t\treturn props;\n\t} //}}}\n\n\t//{{{ getProperty() method\n\t/**\n\t * Fetches a property, returning null if it's not defined.\n\t * @param name The property\n\t */\n\tpublic static final String getProperty(String name)\n\t{\n\t\treturn props.getProperty(name);\n\t} //}}}\n\n\t//{{{ getProperty() method\n\t/**\n\t * Fetches a property, returning the default value if it's not\n\t * defined.\n\t * @param name The property\n\t * @param def The default value\n\t */\n\tpublic static final String getProperty(String name, String def)\n\t{\n\t\treturn props.getProperty(name,def);\n\t} //}}}\n\n\t//{{{ getProperty() method\n\t/**\n\t * Returns the property with the specified name, formatting it with\n\t * the <code>java.text.MessageFormat.format()</code> method.\n\t * @param name The property\n\t * @param args The positional parameters\n\t */\n\tpublic static final String getProperty(String name, Object[] args)\n\t{\n\t\tif(name == null)\n\t\t\treturn null;\n\t\tif(args == null)\n\t\t\treturn props.getProperty(name);\n\t\telse\n\t\t{\n\t\t\tString value = props.getProperty(name);\n\t\t\tif(value == null)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn MessageFormat.format(value,args);\n\t\t}\n\t} //}}}\n\n\t//{{{ getBooleanProperty() method\n\t/**\n\t * Returns the value of a boolean property.\n\t * @param name The property\n\t */\n\tpublic static final boolean getBooleanProperty(String name)\n\t{\n\t\treturn getBooleanProperty(name,false);\n\t} //}}}\n\n\t//{{{ getBooleanProperty() method\n\t/**\n\t * Returns the value of a boolean property.\n\t * @param name The property\n\t * @param def The default value\n\t */\n\tpublic static final boolean getBooleanProperty(String name, boolean def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse if(value.equals(\"true\") || value.equals(\"yes\")\n\t\t\t|| value.equals(\"on\"))\n\t\t\treturn true;\n\t\telse if(value.equals(\"false\") || value.equals(\"no\")\n\t\t\t|| value.equals(\"off\"))\n\t\t\treturn false;\n\t\telse\n\t\t\treturn def;\n\t} //}}}\n\n\t//{{{ getIntegerProperty() method\n\t/**\n\t * Returns the value of an integer property.\n\t * @param name The property\n\t * @param def The default value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static final int getIntegerProperty(String name, int def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Integer.parseInt(value);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ getFontProperty() method\n\t/**\n\t * Returns the value of a font property. The family is stored\n\t * in the <code><i>name</i></code> property, the font size is stored\n\t * in the <code><i>name</i>size</code> property, and the font style is\n\t * stored in <code><i>name</i>style</code>. For example, if\n\t * <code><i>name</i></code> is <code>view.gutter.font</code>, the\n\t * properties will be named <code>view.gutter.font</code>,\n\t * <code>view.gutter.fontsize</code>, and\n\t * <code>view.gutter.fontstyle</code>.\n\t *\n\t * @param name The property\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static final Font getFontProperty(String name)\n\t{\n\t\treturn getFontProperty(name,null);\n\t} //}}}\n\n\t//{{{ getFontProperty() method\n\t/**\n\t * Returns the value of a font property. The family is stored\n\t * in the <code><i>name</i></code> property, the font size is stored\n\t * in the <code><i>name</i>size</code> property, and the font style is\n\t * stored in <code><i>name</i>style</code>. For example, if\n\t * <code><i>name</i></code> is <code>view.gutter.font</code>, the\n\t * properties will be named <code>view.gutter.font</code>,\n\t * <code>view.gutter.fontsize</code>, and\n\t * <code>view.gutter.fontstyle</code>.\n\t *\n\t * @param name The property\n\t * @param def The default value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static final Font getFontProperty(String name, Font def)\n\t{\n\t\tString family = getProperty(name);\n\t\tString sizeString = getProperty(name + \"size\");\n\t\tString styleString = getProperty(name + \"style\");\n\n\t\tif(family == null || sizeString == null || styleString == null)\n\t\t\treturn def;\n\t\telse\n\t\t{\n\t\t\tint size, style;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tsize = Integer.parseInt(sizeString);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstyle = Integer.parseInt(styleString);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\n\t\t\treturn new Font(family,style,size);\n\t\t}\n\t} //}}}\n\n\t//{{{ getColorProperty() method\n\t/**\n\t * Returns the value of a color property.\n\t * @param name The property name\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static Color getColorProperty(String name)\n\t{\n\t\treturn getColorProperty(name,Color.black);\n\t} //}}}\n\n\t//{{{ getColorProperty() method\n\t/**\n\t * Returns the value of a color property.\n\t * @param name The property name\n\t * @param def The default value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static Color getColorProperty(String name, Color def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t\treturn GUIUtilities.parseColor(value,def);\n\t} //}}}\n\n\t//{{{ setColorProperty() method\n\t/**\n\t * Sets the value of a color property.\n\t * @param name The property name\n\t * @param value The value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static void setColorProperty(String name, Color value)\n\t{\n\t\tsetProperty(name,GUIUtilities.getColorHexString(value));\n\t} //}}}\n\n\t//{{{ setProperty() method\n\t/**\n\t * Sets a property to a new value.\n\t * @param name The property\n\t * @param value The new value\n\t */\n\tpublic static final void setProperty(String name, String value)\n\t{\n\t\t/* if value is null:\n\t\t * - if default is null, unset user prop\n\t\t * - else set user prop to \"\"\n\t\t * else\n\t\t * - if default equals value, ignore\n\t\t * - if default doesn't equal value, set user\n\t\t */\n\t\tif(value == null || value.length() == 0)\n\t\t{\n\t\t\tString prop = (String)defaultProps.get(name);\n\t\t\tif(prop == null || prop.length() == 0)\n\t\t\t\tprops.remove(name);\n\t\t\telse\n\t\t\t\tprops.put(name,\"\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString prop = (String)defaultProps.get(name);\n\t\t\tif(value.equals(prop))\n\t\t\t\tprops.remove(name);\n\t\t\telse\n\t\t\t\tprops.put(name,value);\n\t\t}\n\t} //}}}\n\n\t//{{{ setTemporaryProperty() method\n\t/**\n\t * Sets a property to a new value. Properties set using this\n\t * method are not saved to the user properties list.\n\t * @param name The property\n\t * @param value The new value\n\t * @since jEdit 2.3final\n\t */\n\tpublic static final void setTemporaryProperty(String name, String value)\n\t{\n\t\tprops.remove(name);\n\t\tdefaultProps.put(name,value);\n\t} //}}}\n\n\t//{{{ setBooleanProperty() method\n\t/**\n\t * Sets a boolean property.\n\t * @param name The property\n\t * @param value The value\n\t */\n\tpublic static final void setBooleanProperty(String name, boolean value)\n\t{\n\t\tsetProperty(name,value ? \"true\" : \"false\");\n\t} //}}}\n\n\t//{{{ setIntegerProperty() method\n\t/**\n\t * Sets the value of an integer property.\n\t * @param name The property\n\t * @param value The value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static final void setIntegerProperty(String name, int value)\n\t{\n\t\tsetProperty(name,String.valueOf(value));\n\t} //}}}\n\n\t//{{{ setFontProperty() method\n\t/**\n\t * Sets the value of a font property. The family is stored\n\t * in the <code><i>name</i></code> property, the font size is stored\n\t * in the <code><i>name</i>size</code> property, and the font style is\n\t * stored in <code><i>name</i>style</code>. For example, if\n\t * <code><i>name</i></code> is <code>view.gutter.font</code>, the\n\t * properties will be named <code>view.gutter.font</code>,\n\t * <code>view.gutter.fontsize</code>, and\n\t * <code>view.gutter.fontstyle</code>.\n\t *\n\t * @param name The property\n\t * @param value The value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static final void setFontProperty(String name, Font value)\n\t{\n\t\tsetProperty(name,value.getFamily());\n\t\tsetIntegerProperty(name + \"size\",value.getSize());\n\t\tsetIntegerProperty(name + \"style\",value.getStyle());\n\t} //}}}\n\n\t//{{{ unsetProperty() method\n\t/**\n\t * Unsets (clears) a property.\n\t * @param name The property\n\t */\n\tpublic static final void unsetProperty(String name)\n\t{\n\t\tif(defaultProps.get(name) != null)\n\t\t\tprops.put(name,\"\");\n\t\telse\n\t\t\tprops.remove(name);\n\t} //}}}\n\n\t//{{{ resetProperty() method\n\t/**\n\t * Resets a property to its default value.\n\t * @param name The property\n\t *\n\t * @since jEdit 2.5pre3\n\t */\n\tpublic static final void resetProperty(String name)\n\t{\n\t\tprops.remove(name);\n\t} //}}}\n\n\t//{{{ propertiesChanged() method\n\t/**\n\t * Reloads various settings from the properties.\n\t */\n\tpublic static void propertiesChanged()\n\t{\n\t\tinitKeyBindings();\n\n\t\tAutosave.setInterval(getIntegerProperty(\"autosave\",30));\n\n\t\tsaveCaret = getBooleanProperty(\"saveCaret\");\n\n\t\t//theme = new JEditMetalTheme();\n\t\t//theme.propertiesChanged();\n\t\t//MetalLookAndFeel.setCurrentTheme(theme);\n\n\t\tUIDefaults defaults = UIManager.getDefaults();\n\n\t\t// give all text areas the same font\n\t\tFont font = getFontProperty(\"view.font\");\n\n\t\t//defaults.put(\"TextField.font\",font);\n\t\tdefaults.put(\"TextArea.font\",font);\n\t\tdefaults.put(\"TextPane.font\",font);\n\n\t\tinitProxy();\n\n\t\tEditBus.send(new PropertiesChanged(null));\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Plugin management methods\n\n\t//{{{ getNotLoadedPluginJARs() method\n\t/**\n\t * Returns a list of plugin JARs that are not currently loaded\n\t * by examining the user and system plugin directories.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic static String[] getNotLoadedPluginJARs()\n\t{\n\t\tVector returnValue = new Vector();\n\n\t\tif(jEditHome != null)\n\t\t{\n\t\t\tString systemPluginDir = MiscUtilities\n\t\t\t\t.constructPath(jEditHome,\"jars\");\n\n\t\t\tString[] list = new File(systemPluginDir).list();\n\t\t\tif(list != null)\n\t\t\t\tgetNotLoadedPluginJARs(returnValue,systemPluginDir,list);\n\t\t}\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tString userPluginDir = MiscUtilities\n\t\t\t\t.constructPath(settingsDirectory,\"jars\");\n\t\t\tString[] list = new File(userPluginDir).list();\n\t\t\tif(list != null)\n\t\t\t{\n\t\t\t\tgetNotLoadedPluginJARs(returnValue,\n\t\t\t\t\tuserPluginDir,list);\n\t\t\t}\n\t\t}\n\n\t\tString[] _returnValue = new String[returnValue.size()];\n\t\treturnValue.copyInto(_returnValue);\n\t\treturn _returnValue;\n\t} //}}}\n\n\t//{{{ getPlugin() method\n\t/**\n\t * Returns the plugin with the specified class name.\n\t */\n\tpublic static EditPlugin getPlugin(String name)\n\t{\n\t\tEditPlugin[] plugins = getPlugins();\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tif(plugins[i].getClassName().equals(name))\n\t\t\t\treturn plugins[i];\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getPlugins() method\n\t/**\n\t * Returns an array of installed plugins.\n\t */\n\tpublic static EditPlugin[] getPlugins()\n\t{\n\t\tVector vector = new Vector();\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\t((EditPlugin.JAR)jars.elementAt(i)).getPlugins(vector);\n\t\t}\n\n\t\tEditPlugin[] array = new EditPlugin[vector.size()];\n\t\tvector.copyInto(array);\n\t\treturn array;\n\t} //}}}\n\n\t//{{{ getPluginJARs() method\n\t/**\n\t * Returns an array of installed plugins.\n\t * @since jEdit 2.5pre3\n\t */\n\tpublic static EditPlugin.JAR[] getPluginJARs()\n\t{\n\t\tEditPlugin.JAR[] array = new EditPlugin.JAR[jars.size()];\n\t\tjars.copyInto(array);\n\t\treturn array;\n\t} //}}}\n\n\t//{{{ getPluginJAR() method\n\t/**\n\t * Returns the JAR with the specified path name.\n\t * @param path The path name\n\t * @since jEdit 2.6pre1\n\t */\n\tpublic static EditPlugin.JAR getPluginJAR(String path)\n\t{\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\tEditPlugin.JAR jar = (EditPlugin.JAR)jars.elementAt(i);\n\t\t\tif(jar.getPath().equals(path))\n\t\t\t\treturn jar;\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ addPluginJAR() method\n\t/**\n\t * Adds a plugin JAR to the editor.\n\t * @param plugin The plugin\n\t * @since jEdit 3.2pre10\n\t */\n\tpublic static void addPluginJAR(EditPlugin.JAR plugin)\n\t{\n\t\taddActionSet(plugin.getActions());\n\t\tjars.addElement(plugin);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Action methods\n\n\t//{{{ addActionSet() method\n\t/**\n\t * Adds a new action set to jEdit's list. Plugins probably won't\n\t * need to call this method.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static void addActionSet(ActionSet actionSet)\n\t{\n\t\tactionSets.addElement(actionSet);\n\t} //}}}\n\n\t//{{{ getActionSets() method\n\t/**\n\t * Returns all registered action sets.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static ActionSet[] getActionSets()\n\t{\n\t\tActionSet[] retVal = new ActionSet[actionSets.size()];\n\t\tactionSets.copyInto(retVal);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ getAction() method\n\t/**\n\t * Returns the specified action.\n\t * @param name The action name\n\t */\n\tpublic static EditAction getAction(String name)\n\t{\n\t\tfor(int i = 0; i < actionSets.size(); i++)\n\t\t{\n\t\t\tEditAction action = ((ActionSet)actionSets.elementAt(i))\n\t\t\t\t.getAction(name);\n\t\t\tif(action != null)\n\t\t\t\treturn action;\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getActionSetForAction() method\n\t/**\n\t * Returns the action set that contains the specified action.\n\t * @param action The action\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static ActionSet getActionSetForAction(EditAction action)\n\t{\n\t\tfor(int i = 0; i < actionSets.size(); i++)\n\t\t{\n\t\t\tActionSet set = (ActionSet)actionSets.elementAt(i);\n\t\t\tif(set.contains(action))\n\t\t\t\treturn set;\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getActions() method\n\t/**\n\t * Returns the list of actions registered with the editor.\n\t */\n\tpublic static EditAction[] getActions()\n\t{\n\t\tVector vec = new Vector();\n\t\tfor(int i = 0; i < actionSets.size(); i++)\n\t\t\t((ActionSet)actionSets.elementAt(i)).getActions(vec);\n\n\t\tEditAction[] retVal = new EditAction[vec.size()];\n\t\tvec.copyInto(retVal);\n\t\treturn retVal;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Edit mode methods\n\n\t//{{{ reloadModes() method\n\t/**\n\t * Reloads all edit modes.\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static void reloadModes()\n\t{\n\t\t/* Try to guess the eventual size to avoid unnecessary\n\t\t * copying */\n\t\tmodes = new Vector(50);\n\n\t\t//{{{ Load the global catalog\n\t\tif(jEditHome == null)\n\t\t\tloadModeCatalog(\"/modes/catalog\",true);\n\t\telse\n\t\t{\n\t\t\tloadModeCatalog(MiscUtilities.constructPath(jEditHome,\n\t\t\t\t\"modes\",\"catalog\"),false);\n\t\t} //}}}\n\n\t\t//{{{ Load user catalog\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile userModeDir = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"modes\"));\n\t\t\tif(!userModeDir.exists())\n\t\t\t\tuserModeDir.mkdirs();\n\n\t\t\tFile userCatalog = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"modes\",\"catalog\"));\n\t\t\tif(!userCatalog.exists())\n\t\t\t{\n\t\t\t\t// create dummy catalog\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFileWriter out = new FileWriter(userCatalog);\n\t\t\t\t\tout.write(jEdit.getProperty(\"defaultCatalog\"));\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tloadModeCatalog(userCatalog.getPath(),false);\n\t\t} //}}}\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\t// This reloads the token marker and sends a message\n\t\t\t// which causes edit panes to repaint their text areas\n\t\t\tbuffer.setMode();\n\n\t\t\tbuffer = buffer.next;\n\t\t}\n\t} //}}}\n\n\t//{{{ getMode() method\n\t/**\n\t * Returns the edit mode with the specified name.\n\t * @param name The edit mode\n\t */\n\tpublic static Mode getMode(String name)\n\t{\n\t\tfor(int i = 0; i < modes.size(); i++)\n\t\t{\n\t\t\tMode mode = (Mode)modes.elementAt(i);\n\t\t\tif(mode.getName().equals(name))\n\t\t\t\treturn mode;\n\t\t}\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getModes() method\n\t/**\n\t * Returns an array of installed edit modes.\n\t */\n\tpublic static Mode[] getModes()\n\t{\n\t\tMode[] array = new Mode[modes.size()];\n\t\tmodes.copyInto(array);\n\t\treturn array;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Buffer creation methods\n\n\t//{{{ showOpenFileDialog() method\n\t/**\n\t * Displays the open file dialog box, and opens any selected files.\n\t *\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void showOpenFileDialog(View view)\n\t{\n\t\tshowOpenFileDialog(view,null);\n\t} //}}}\n\n\t//{{{ showOpenFileWithOtherEncodingDialog() method\n\t/**\n\t * Displays the open file dialog box, and opens any selected files,\n\t * but first prompts for a character encoding to use.\n\t *\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void showOpenFileWithOtherEncodingDialog(View view)\n\t{\n\t\tString encoding = GUIUtilities.input(view,\"encoding-prompt\",null,\n\t\t\tjEdit.getProperty(\"buffer.encoding\",\n\t\t\tSystem.getProperty(\"file.encoding\")));\n\t\tif(encoding == null)\n\t\t\treturn;\n\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t{\n\t\t\trecorder.record(\"props = new Hashtable();\");\n\t\t\trecorder.record(\"props.put(\\\"encoding\\\",\\\"\" + encoding + \"\\\");\");\n\t\t\trecorder.record(\"jEdit.showOpenFileDialog(view,props);\");\n\t\t}\n\n\t\tHashtable props = new Hashtable();\n\t\tprops.put(Buffer.ENCODING,encoding);\n\t\tshowOpenFileDialog(view,props);\n\t} //}}}\n\n\t//{{{ showOpenFileDialog() method\n\t/**\n\t * Displays the open file dialog box, and opens any selected files,\n\t * setting the properties specified in the hash table in the buffers.\n\t *\n\t * @param view The view\n\t * @param props The properties to set in the buffer\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static void showOpenFileDialog(View view, Hashtable props)\n\t{\n\t\tString[] files = GUIUtilities.showVFSFileDialog(view,null,\n\t\t\tVFSBrowser.OPEN_DIALOG,true);\n\n\t\tBuffer buffer = null;\n\t\tif(files != null)\n\t\t{\n\t\t\tfor(int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tBuffer newBuffer = openFile(null,null,files[i],\n\t\t\t\t\tfalse,props);\n\t\t\t\tif(newBuffer != null)\n\t\t\t\t\tbuffer = newBuffer;\n\t\t\t}\n\t\t}\n\n\t\tif(buffer != null)\n\t\t\tview.setBuffer(buffer);\n\t} //}}}\n\n\t//{{{ restoreOpenFiles() method\n\t/**\n\t * Opens files that were open last time.\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static String restoreOpenFiles()\n\t{\n\t\tif(settingsDirectory == null)\n\t\t\treturn null;\n\n\t\tFile session = new File(MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"session\"));\n\n\t\tif(!session.exists())\n\t\t\treturn null;\n\n\t\tString splitConfig = null;\n\n\t\ttry\n\t\t{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\n\t\t\t\tsession));\n\n\t\t\tString line;\n\t\t\twhile((line = in.readLine()) != null)\n\t\t\t{\n\t\t\t\tif(line.startsWith(\"splits\\t\"))\n\t\t\t\t\tsplitConfig = line.substring(7);\n\t\t\t\telse\n\t\t\t\t\topenFile(null,line);\n\t\t\t}\n\n\t\t\tin.close();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,\"Error while loading \" + session);\n\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t}\n\n\t\treturn splitConfig;\n\t} //}}}\n\n\t//{{{ saveOpenFiles() method\n\t/**\n\t * Saves the list of open files.\n\t * @since jEdit 3.1pre5\n\t */\n\tpublic static void saveOpenFiles(View view)\n\t{\n\t\tif(settingsDirectory == null)\n\t\t\treturn;\n\n\t\tview.getEditPane().saveCaretInfo();\n\t\tBuffer current = view.getBuffer();\n\n\t\tFile session = new File(MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"session\"));\n\n\t\t// maybe not, since it's autosaved now\n\t\t//backupSettingsFile(session);\n\n\t\ttry\n\t\t{\n\t\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\t\tBufferedWriter out = new BufferedWriter(new FileWriter(\n\t\t\t\tsession));\n\t\t\tBuffer buffer = buffersFirst;\n\t\t\twhile(buffer != null)\n\t\t\t{\n\t\t\t\tif(!buffer.isUntitled())\n\t\t\t\t{\n\t\t\t\t\tout.write(buffer.getPath());\n\t\t\t\t\tout.write(lineSep);\n\t\t\t\t}\n\n\t\t\t\tbuffer = buffer.next;\n\t\t\t}\n\n\t\t\tout.write(\"splits\\t\");\n\t\t\tout.write(view.getSplitConfig());\n\t\t\tout.write(lineSep);\n\n\t\t\tout.close();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,\"Error while saving \" + session);\n\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t}\n\t} //}}}\n\n\t//{{{ openFiles() method\n\t/**\n\t * Opens the file names specified in the argument array. This\n\t * handles +line and +marker arguments just like the command\n\t * line parser.\n\t * @param parent The parent directory\n\t * @param args The file names to open\n\t * @since jEdit 3.2pre4\n\t */\n\tpublic static Buffer openFiles(View view, String parent, String[] args)\n\t{\n\t\tBuffer retVal = null;\n\t\tBuffer lastBuffer = null;\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tString arg = args[i];\n\t\t\tif(arg == null)\n\t\t\t\tcontinue;\n\t\t\telse if(arg.startsWith(\"+line:\") || arg.startsWith(\"+marker:\"))\n\t\t\t{\n\t\t\t\tif(lastBuffer != null)\n\t\t\t\t\tgotoMarker(view,lastBuffer,arg);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlastBuffer = openFile(null,parent,arg,false,null);\n\n\t\t\tif(retVal == null && lastBuffer != null)\n\t\t\t\tretVal = lastBuffer;\n\t\t}\n\n\t\tif(view != null && retVal != null)\n\t\t\tview.setBuffer(retVal);\n\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ openFile() method\n\t/**\n\t * Opens a file. Note that as of jEdit 2.5pre1, this may return\n\t * null if the buffer could not be opened.\n\t * @param view The view to open the file in\n\t * @param path The file path\n\t *\n\t * @since jEdit 2.4pre1\n\t */\n\tpublic static Buffer openFile(View view, String path)\n\t{\n\t\treturn openFile(view,null,path,false,new Hashtable());\n\t} //}}}\n\n\t//{{{ openFile() method\n\t/**\n\t * @deprecated The openFile() forms with the readOnly parameter\n\t * should not be used. The readOnly prameter is no longer supported.\n\t */\n\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean readOnly, boolean newFile)\n\t{\n\t\treturn openFile(view,parent,path,newFile,new Hashtable());\n\t} //}}}\n\n\t//{{{ openFile() method\n\t/**\n\t * @deprecated The openFile() forms with the readOnly parameter\n\t * should not be used. The readOnly prameter is no longer supported.\n\t */\n\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean readOnly, boolean newFile,\n\t\tHashtable props)\n\t{\n\t\treturn openFile(view,parent,path,newFile,props);\n\t} //}}}\n\n\t//{{{ openFile() method\n\t/**\n\t * Opens a file. This may return null if the buffer could not be\n\t * opened for some reason.\n\t * @param view The view to open the file in\n\t * @param parent The parent directory of the file\n\t * @param path The path name of the file\n\t * @param newFile True if the file should not be loaded from disk\n\t * be prompted if it should be reloaded\n\t * @param props Buffer-local properties to set in the buffer\n\t *\n\t * @since jEdit 3.2pre10\n\t */\n\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean newFile, Hashtable props)\n\t{\n\t\tif(view != null && parent == null)\n\t\t\tparent = MiscUtilities.getParentOfPath(view.getBuffer().getPath());\n\n\t\tif(MiscUtilities.isURL(path))\n\t\t{\n\t\t\tif(MiscUtilities.getProtocolOfURL(path).equals(\"file\"))\n\t\t\t\tpath = path.substring(5);\n\t\t}\n\n\t\tpath = MiscUtilities.constructPath(parent,path);\n\n\t\tif(!MiscUtilities.isURL(path))\n\t\t\tpath = MiscUtilities.canonPath(path);\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer buffer = getBuffer(path);\n\t\t\tif(buffer != null)\n\t\t\t{\n\t\t\t\tif(view != null)\n\t\t\t\t\tview.setBuffer(buffer);\n\n\t\t\t\treturn buffer;\n\t\t\t}\n\n\t\t\tif(props == null)\n\t\t\t\tprops = new Hashtable();\n\n\t\t\tBufferHistory.Entry entry = BufferHistory.getEntry(path);\n\n\t\t\tif(entry != null && saveCaret && props.get(Buffer.CARET) == null)\n\t\t\t{\n\t\t\t\tint caret = entry.caret;\n\t\t\t\tprops.put(Buffer.CARET,new Integer(entry.caret));\n\t\t\t\tif(entry.selection != null)\n\t\t\t\t{\n\t\t\t\t\t// getSelection() converts from string to\n\t\t\t\t\t// Selection[]\n\t\t\t\t\tprops.put(Buffer.SELECTION,entry.getSelection());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(entry != null && props.get(Buffer.ENCODING) == null)\n\t\t\t{\n\t\t\t\tif(entry.encoding != null)\n\t\t\t\t\tprops.put(Buffer.ENCODING,entry.encoding);\n\t\t\t}\n\n\t\t\tBuffer newBuffer = new Buffer(path,newFile,false,props);\n\n\t\t\tif(!newBuffer.load(view,false))\n\t\t\t\treturn null;\n\n\t\t\taddBufferToList(newBuffer);\n\n\t\t\tEditBus.send(new BufferUpdate(newBuffer,view,BufferUpdate.CREATED));\n\n\t\t\tif(view != null)\n\t\t\t\tview.setBuffer(newBuffer);\n\n\t\t\treturn newBuffer;\n\t\t}\n\t} //}}}\n\n\t//{{{ openTemporary() method\n\t/**\n\t * Opens a temporary buffer. A temporary buffer is like a normal\n\t * buffer, except that an event is not fired, the the buffer is\n\t * not added to the buffers list.\n\t *\n\t * @param view The view to open the file in\n\t * @param parent The parent directory of the file\n\t * @param path The path name of the file\n\t * @param readOnly True if the file should be read only\n\t * @param newFile True if the file should not be loaded from disk\n\t *\n\t * @since jEdit 3.2pre10\n\t */\n\tpublic static Buffer openTemporary(View view, String parent,\n\t\tString path, boolean newFile)\n\t{\n\t\tif(view != null && parent == null)\n\t\t\tparent = MiscUtilities.getParentOfPath(view.getBuffer().getPath());\n\n\t\tif(MiscUtilities.isURL(path))\n\t\t{\n\t\t\tif(MiscUtilities.getProtocolOfURL(path).equals(\"file\"))\n\t\t\t\tpath = path.substring(5);\n\t\t}\n\n\t\tpath = MiscUtilities.constructPath(parent,path);\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer buffer = getBuffer(path);\n\t\t\tif(buffer != null)\n\t\t\t\treturn buffer;\n\n\t\t\tbuffer = new Buffer(path,newFile,true,new Hashtable());\n\t\t\tif(!buffer.load(view,false))\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn buffer;\n\t\t}\n\t} //}}}\n\n\t//{{{ commitTemporary() method\n\t/**\n\t * Adds a temporary buffer to the buffer list. This must be done\n\t * before allowing the user to interact with the buffer in any\n\t * way.\n\t * @param buffer The buffer\n\t */\n\tpublic static void commitTemporary(Buffer buffer)\n\t{\n\t\tif(!buffer.isTemporary())\n\t\t\treturn;\n\n\t\taddBufferToList(buffer);\n\t\tbuffer.commitTemporary();\n\n\t\tEditBus.send(new BufferUpdate(buffer,null,BufferUpdate.CREATED));\n\t} //}}}\n\n\t//{{{ newFile() method\n\t/**\n\t * Creates a new `untitled' file.\n\t * @param view The view to create the file in\n\t */\n\tpublic static Buffer newFile(View view)\n\t{\n\t\tString path;\n\n\t\tif(view != null && view.getBuffer() != null)\n\t\t{\n\t\t\tpath = MiscUtilities.getParentOfPath(view.getBuffer()\n\t\t\t\t.getPath());\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\t// don't want 'New File' to create a read only buffer\n\t\t\t// if current file is on SQL VFS or something\n\t\t\tif((vfs.getCapabilities() & VFS.WRITE_CAP) == 0)\n\t\t\t\tpath = System.getProperty(\"user.home\");\n\t\t}\n\t\telse\n\t\t\tpath = null;\n\n\t\treturn newFile(view,path);\n\t} //}}}\n\n\t//{{{ newFile() method\n\t/**\n\t * Creates a new `untitled' file.\n\t * @param view The view to create the file in\n\t * @param dir The directory to create the file in\n\t * @since jEdit 3.1pre2\n\t */\n\tpublic static Buffer newFile(View view, String dir)\n\t{\n\t\t// If only one new file is open which is clean, just close\n\t\t// it, which will create an 'Untitled-1'\n\t\tif(dir != null\n\t\t\t&& buffersFirst != null\n\t\t\t&& buffersFirst == buffersLast\n\t\t\t&& buffersFirst.isUntitled()\n\t\t\t&& !buffersFirst.isDirty())\n\t\t{\n\t\t\tcloseBuffer(view,buffersFirst);\n\t\t\t// return the newly created 'untitled-1'\n\t\t\treturn buffersFirst;\n\t\t}\n\n\t\t// Find the highest Untitled-n file\n\t\tint untitledCount = 0;\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.getName().startsWith(\"Untitled-\"))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tuntitledCount = Math.max(untitledCount,\n\t\t\t\t\t\tInteger.parseInt(buffer.getName()\n\t\t\t\t\t\t.substring(9)));\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException nf)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\treturn openFile(view,dir,\"Untitled-\" + (untitledCount+1),true,null);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Buffer management methods\n\n\t//{{{ closeBuffer() method\n\t/**\n\t * Closes a buffer. If there are unsaved changes, the user is\n\t * prompted if they should be saved first.\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @return True if the buffer was really closed, false otherwise\n\t */\n\tpublic static boolean closeBuffer(View view, Buffer buffer)\n\t{\n\t\t// Wait for pending I/O requests\n\t\tif(buffer.isPerformingIO())\n\t\t{\n\t\t\tVFSManager.waitForRequests();\n\t\t\tif(VFSManager.errorOccurred())\n\t\t\t\treturn false;\n\t\t}\n\n\t\tif(buffer.isDirty())\n\t\t{\n\t\t\tObject[] args = { buffer.getName() };\n\t\t\tint result = GUIUtilities.confirm(view,\"notsaved\",args,\n\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION,\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\tif(result == JOptionPane.YES_OPTION)\n\t\t\t{\n\t\t\t\tif(!buffer.save(view,null,true))\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse if(result != JOptionPane.NO_OPTION)\n\t\t\t\treturn false;\n\t\t}\n\n\t\t_closeBuffer(view,buffer);\n\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ _closeBuffer() method\n\t/**\n\t * Closes the buffer, even if it has unsaved changes.\n\t * @param view The view\n\t * @param buffer The buffer\n\t *\n\t * @since jEdit 2.2pre1\n\t */\n\tpublic static void _closeBuffer(View view, Buffer buffer)\n\t{\n\t\tif(buffer.isClosed())\n\t\t{\n\t\t\t// can happen if the user presses C+w twice real\n\t\t\t// quick and the buffer has unsaved changes\n\t\t\treturn;\n\t\t}\n\n\t\tif(!buffer.isNewFile())\n\t\t{\n\t\t\tview.getEditPane().saveCaretInfo();\n\t\t\tInteger _caret = (Integer)buffer.getProperty(Buffer.CARET);\n\t\t\tint caret = (_caret == null ? 0 : _caret.intValue());\n\n\t\t\tBufferHistory.setEntry(buffer.getPath(),caret,\n\t\t\t\t(Selection[])buffer.getProperty(Buffer.SELECTION),\n\t\t\t\tbuffer.getStringProperty(Buffer.ENCODING));\n\t\t}\n\n\t\tremoveBufferFromList(buffer);\n\t\tbuffer.close();\n\n\t\tEditBus.send(new BufferUpdate(buffer,view,BufferUpdate.CLOSED));\n\n\t\t// Create a new file when the last is closed\n\t\tif(buffersFirst == null && buffersLast == null)\n\t\t\tnewFile(view);\n\t} //}}}\n\n\t//{{{ closeAllBuffers() method\n\t/**\n\t * Closes all open buffers.\n\t * @param view The view\n\t */\n\tpublic static boolean closeAllBuffers(View view)\n\t{\n\t\treturn closeAllBuffers(view,false);\n\t} //}}}\n\n\t//{{{ closeAllBuffers() method\n\t/**\n\t * Closes all open buffers.\n\t * @param view The view\n\t * @param isExiting This must be false unless this method is\n\t * being called by the exit() method\n\t */\n\tpublic static boolean closeAllBuffers(View view, boolean isExiting)\n\t{\n\t\tboolean dirty = false;\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.isDirty())\n\t\t\t{\n\t\t\t\tdirty = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tif(dirty)\n\t\t{\n\t\t\tboolean ok = new CloseDialog(view).isOK();\n\t\t\tif(!ok)\n\t\t\t\treturn false;\n\t\t}\n\n\t\t// Wait for pending I/O requests\n\t\tVFSManager.waitForRequests();\n\t\tif(VFSManager.errorOccurred())\n\t\t\treturn false;\n\n\t\t// close remaining buffers (the close dialog only deals with\n\t\t// dirty ones)\n\n\t\tbuffer = buffersFirst;\n\n\t\t// zero it here so that BufferTabs doesn't have any problems\n\t\tbuffersFirst = buffersLast = null;\n\t\tbufferCount = 0;\n\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(!buffer.isNewFile())\n\t\t\t{\n\t\t\t\tInteger _caret = (Integer)buffer.getProperty(Buffer.CARET);\n\t\t\t\tint caret = (_caret == null ? 0 : _caret.intValue());\n\t\t\t\tBufferHistory.setEntry(buffer.getPath(),caret,\n\t\t\t\t\t(Selection[])buffer.getProperty(Buffer.SELECTION),\n\t\t\t\t\tbuffer.getStringProperty(Buffer.ENCODING));\n\t\t\t}\n\n\t\t\tbuffer.close();\n\t\t\tif(!isExiting)\n\t\t\t{\n\t\t\t\tEditBus.send(new BufferUpdate(buffer,view,\n\t\t\t\t\tBufferUpdate.CLOSED));\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tif(!isExiting)\n\t\t\tnewFile(view);\n\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ saveAllBuffers() method\n\t/**\n\t * Saves all open buffers.\n\t * @param view The view\n\t * @param confirm If true, a confirmation dialog will be shown first\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void saveAllBuffers(View view, boolean confirm)\n\t{\n\t\tif(confirm)\n\t\t{\n\t\t\tint result = GUIUtilities.confirm(view,\"saveall\",null,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn;\n\t\t}\n\n\t\tBuffer current = view.getBuffer();\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.isDirty())\n\t\t\t{\n\t\t\t\tif(buffer.isNewFile())\n\t\t\t\t\tview.setBuffer(buffer);\n\t\t\t\tbuffer.save(view,null,true);\n\t\t\t}\n\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tview.setBuffer(current);\n\t} //}}}\n\n\t//{{{ reloadAllBuffers() method\n\t/**\n\t * Reloads all open buffers.\n\t * @param view The view\n\t * @param confirm If true, a confirmation dialog will be shown first\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void reloadAllBuffers(final View view, boolean confirm)\n\t{\n\t\tif(confirm)\n\t\t{\n\t\t\tint result = GUIUtilities.confirm(view,\"reload-all\",null,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn;\n\t\t}\n\n\t\t// save caret info. Buffer.load() will load it.\n\t\tView _view = viewsFirst;\n\t\twhile(_view != null)\n\t\t{\n\t\t\tEditPane[] panes = _view.getEditPanes();\n\t\t\tfor(int i = 0; i < panes.length; i++)\n\t\t\t{\n\t\t\t\tpanes[i].saveCaretInfo();\n\t\t\t}\n\n\t\t\t_view = _view.next;\n\t\t}\n\n\t\tBuffer[] buffers = jEdit.getBuffers();\n\t\tfor(int i = 0; i < buffers.length; i++)\n\t\t{\n\t\t\tBuffer buffer = buffers[i];\n\t\t\tbuffer.load(view,true);\n\t\t}\n\t} //}}}\n\n\t//{{{ getBuffer() method\n\t/**\n\t * Returns the buffer with the specified path name. The path name\n\t * must be an absolute, canonical, path.\n\t * @param path The path name\n\t * @see MiscUtilities#constructPath(String,String)\n\t */\n\tpublic static Buffer getBuffer(String path)\n\t{\n\t\tboolean caseInsensitiveFilesystem = (File.separatorChar == '\\\\'\n\t\t\t|| File.separatorChar == ':' /* Windows or MacOS */);\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer buffer = buffersFirst;\n\t\t\twhile(buffer != null)\n\t\t\t{\n\t\t\t\tString _path = buffer.getPath();\n\t\t\t\tif(caseInsensitiveFilesystem)\n\t\t\t\t{\n\t\t\t\t\tif(_path.equalsIgnoreCase(path))\n\t\t\t\t\t\treturn buffer;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(_path.equals(path))\n\t\t\t\t\t\treturn buffer;\n\t\t\t\t}\n\t\t\t\tbuffer = buffer.next;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getBuffers() method\n\t/**\n\t * Returns an array of open buffers.\n\t */\n\tpublic static Buffer[] getBuffers()\n\t{\n\t\tBuffer[] buffers = new Buffer[bufferCount];\n\t\tBuffer buffer = buffersFirst;\n\t\tfor(int i = 0; i < bufferCount; i++)\n\t\t{\n\t\t\tbuffers[i] = buffer;\n\t\t\tbuffer = buffer.next;\n\t\t}\n\t\treturn buffers;\n\t} //}}}\n\n\t//{{{ getBufferCount() method\n\t/**\n\t * Returns the number of open buffers.\n\t */\n\tpublic static int getBufferCount()\n\t{\n\t\treturn bufferCount;\n\t} //}}}\n\n\t//{{{ getFirstBuffer() method\n\t/**\n\t * Returns the first buffer.\n\t */\n\tpublic static Buffer getFirstBuffer()\n\t{\n\t\treturn buffersFirst;\n\t} //}}}\n\n\t//{{{ getLastBuffer() method\n\t/**\n\t * Returns the last buffer.\n\t */\n\tpublic static Buffer getLastBuffer()\n\t{\n\t\treturn buffersLast;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ View methods\n\n\t//{{{ getInputHandler() method\n\t/**\n\t * Returns the current input handler (key binding to action mapping)\n\t * @see org.gjt.sp.jedit.gui.InputHandler\n\t */\n\tpublic static InputHandler getInputHandler()\n\t{\n\t\treturn inputHandler;\n\t} //}}}\n\n\t//{{{ newView() method\n\t/**\n\t * Creates a new view of a buffer.\n\t * @param view An existing view\n\t * @param buffer The buffer\n\t */\n\tpublic static View newView(View view, Buffer buffer)\n\t{\n\t\tif(view != null)\n\t\t{\n\t\t\tview.showWaitCursor();\n\t\t\tview.getEditPane().saveCaretInfo();\n\t\t}\n\n\t\tView newView = new View(buffer,null);\n\n\t\t// Do this crap here so that the view is created\n\t\t// and added to the list before it is shown\n\t\t// (for the sake of plugins that add stuff to views)\n\t\tnewView.pack();\n\n\t\t// newView.setSize(view.getSize()) creates incorrectly\n\t\t// sized views, for some reason...\n\t\tif(view != null)\n\t\t{\n\t\t\tGUIUtilities.saveGeometry(view,\"view\");\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\tGUIUtilities.loadGeometry(newView,\"view\");\n\n\t\taddViewToList(newView);\n\t\tEditBus.send(new ViewUpdate(newView,ViewUpdate.CREATED));\n\n\t\tGUIUtilities.requestFocus(newView,newView.getTextArea());\n\t\tnewView.show();\n\n\t\t// show tip of the day\n\t\tif(newView == viewsFirst)\n\t\t{\n\t\t\t// Don't show the welcome message if jEdit was started\n\t\t\t// with the -nosettings switch\n\t\t\tif(settingsDirectory != null && getBooleanProperty(\"firstTime\"))\n\t\t\t\tnew HelpViewer();\n\t\t\telse if(jEdit.getBooleanProperty(\"tip.show\"))\n\t\t\t\tnew TipOfTheDay(newView);\n\n\t\t\tsetBooleanProperty(\"firstTime\",false);\n\t\t}\n\n\t\treturn newView;\n\t} //}}}\n\n\t//{{{ newView() method\n\t/**\n\t * Creates a new view.\n\t * @param view An existing view\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static View newView(View view)\n\t{\n\t\treturn newView(view,view.getSplitConfig());\n\t} //}}}\n\n\t//{{{ newView() method\n\t/**\n\t * Creates a new view.\n\t * @param view An existing view\n\t * @param splitConfig The split configuration\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static View newView(View view, String splitConfig)\n\t{\n\t\tif(view != null)\n\t\t{\n\t\t\tview.showWaitCursor();\n\t\t\tview.getEditPane().saveCaretInfo();\n\t\t}\n\n\t\tView newView = new View(null,splitConfig);\n\n\t\t// Do this crap here so that the view is created\n\t\t// and added to the list before it is shown\n\t\t// (for the sake of plugins that add stuff to views)\n\t\tnewView.pack();\n\n\t\t// newView.setSize(view.getSize()) creates incorrectly\n\t\t// sized views, for some reason...\n\t\tif(view != null)\n\t\t{\n\t\t\tGUIUtilities.saveGeometry(view,\"view\");\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\tGUIUtilities.loadGeometry(newView,\"view\");\n\n\t\taddViewToList(newView);\n\t\tEditBus.send(new ViewUpdate(newView,ViewUpdate.CREATED));\n\n\t\tGUIUtilities.requestFocus(newView,newView.getTextArea());\n\t\tnewView.show();\n\n\t\t// show tip of the day\n\t\tif(newView == viewsFirst)\n\t\t{\n\t\t\t// Don't show the welcome message if jEdit was started\n\t\t\t// with the -nosettings switch\n\t\t\tif(settingsDirectory != null && getBooleanProperty(\"firstTime\"))\n\t\t\t\tnew HelpViewer();\n\t\t\telse if(jEdit.getBooleanProperty(\"tip.show\"))\n\t\t\t\tnew TipOfTheDay(newView);\n\n\t\t\tsetBooleanProperty(\"firstTime\",false);\n\t\t}\n\n\t\treturn newView;\n\t} //}}}\n\n\t//{{{ closeView() method\n\t/**\n\t * Closes a view. jEdit will exit if this was the last open view.\n\t */\n\tpublic static void closeView(View view)\n\t{\n\t\tcloseView(view,true);\n\t} //}}}\n\n\t//{{{ getViews() method\n\t/**\n\t * Returns an array of all open views.\n\t */\n\tpublic static View[] getViews()\n\t{\n\t\tView[] views = new View[viewCount];\n\t\tView view = viewsFirst;\n\t\tfor(int i = 0; i < viewCount; i++)\n\t\t{\n\t\t\tviews[i] = view;\n\t\t\tview = view.next;\n\t\t}\n\t\treturn views;\n\t} //}}}\n\n\t//{{{ getViewCount() method\n\t/**\n\t * Returns the number of open views.\n\t */\n\tpublic static int getViewCount()\n\t{\n\t\treturn viewCount;\n\t} //}}}\n\n\t//{{{ getFirstView() method\n\t/**\n\t * Returns the first view.\n\t */\n\tpublic static View getFirstView()\n\t{\n\t\treturn viewsFirst;\n\t} //}}}\n\n\t//{{{ getLastView() method\n\t/**\n\t * Returns the last view.\n\t */\n\tpublic static View getLastView()\n\t{\n\t\treturn viewsLast;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Miscellaneous methods\n\n\t//{{{ isBackgroundMode() method\n\t/**\n\t * Returns true if jEdit was started with the <code>-background</code>\n\t * command-line switch.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static boolean isBackgroundModeEnabled()\n\t{\n\t\treturn background;\n\t} //}}}\n\n\t//{{{ showMemoryStatusDialog() method\n\t/**\n\t * Performs garbage collection and displays a dialog box showing\n\t * memory status.\n\t * @param view The view\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static void showMemoryDialog(View view)\n\t{\n\t\tRuntime rt = Runtime.getRuntime();\n\t\tint before = (int) (rt.freeMemory() / 1024);\n\t\tSystem.gc();\n\t\tint after = (int) (rt.freeMemory() / 1024);\n\t\tint total = (int) (rt.totalMemory() / 1024);\n\n\t\tJProgressBar progress = new JProgressBar(0,total);\n\t\tprogress.setValue(total - after);\n\t\tprogress.setStringPainted(true);\n\t\tprogress.setString(jEdit.getProperty(\"memory-status.use\",\n\t\t\tnew Object[] { new Integer(total - after),\n\t\t\tnew Integer(total) }));\n\n\t\tObject[] message = new Object[4];\n\t\tmessage[0] = getProperty(\"memory-status.gc\",\n\t\t\tnew Object[] { new Integer(after - before) });\n\t\tmessage[1] = Box.createVerticalStrut(12);\n\t\tmessage[2] = progress;\n\t\tmessage[3] = Box.createVerticalStrut(6);\n\n\t\tJOptionPane.showMessageDialog(view,message,\n\t\t\tjEdit.getProperty(\"memory-status.title\"),\n\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t} //}}}\n\n\t//{{{ getJEditHome() method\n\t/**\n\t * Returns the jEdit install directory.\n\t */\n\tpublic static String getJEditHome()\n\t{\n\t\treturn jEditHome;\n\t} //}}}\n\n\t//{{{ getSettingsDirectory() method\n\t/**\n\t * Returns the user settings directory.\n\t */\n\tpublic static String getSettingsDirectory()\n\t{\n\t\treturn settingsDirectory;\n\t} //}}}\n\n\t//{{{ backupSettingsFile() method\n\t/**\n\t * Backs up the specified file in the settings directory.\n\t * You should call this on any settings files your plugin\n\t * writes.\n\t * @param file The file\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static void backupSettingsFile(File file)\n\t{\n\t\tif(settingsDirectory == null)\n\t\t\treturn;\n\n\t\tString backupDir = MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"settings-backup\");\n\t\tFile dir = new File(backupDir);\n\t\tif(!dir.exists())\n\t\t\tdir.mkdirs();\n\n\t\t// ... sweet. saveBackup() will create backupDir if it\n\t\t// doesn't exist.\n\n\t\tMiscUtilities.saveBackup(file,5,null,\"~\",backupDir);\n\t} //}}}\n\n\t//{{{ saveSettings() method\n\t/**\n\t * Saves all user preferences to disk.\n\t */\n\tpublic static void saveSettings()\n\t{\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\t// Save the recent file list\n\t\t\tFile file1 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory, \"#recent.xml#save#\"));\n\t\t\tFile file2 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory, \"recent.xml\"));\n\t\t\tif(file2.exists() && file2.lastModified() != recentModTime)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,jEdit.class,file2 + \" changed\"\n\t\t\t\t\t+ \" on disk; will not save recent files\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbackupSettingsFile(file2);\n\t\t\t\tBufferHistory.save(file1);\n\t\t\t\tfile2.delete();\n\t\t\t\tfile1.renameTo(file2);\n\t\t\t}\n\t\t\trecentModTime = file2.lastModified();\n\n\t\t\tfile1 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory, \"#history#save#\"));\n\t\t\tfile2 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory, \"history\"));\n\t\t\tif(file2.exists() && file2.lastModified() != historyModTime)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,jEdit.class,file2 + \" changed\"\n\t\t\t\t\t+ \" on disk; will not save history\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbackupSettingsFile(file2);\n\t\t\t\tHistoryModel.saveHistory(file1);\n\t\t\t\tfile2.delete();\n\t\t\t\tfile1.renameTo(file2);\n\t\t\t}\n\t\t\thistoryModTime = file2.lastModified();\n\n\t\t\tSearchAndReplace.save();\n\t\t\tAbbrevs.save();\n\t\t\tFavoritesVFS.saveFavorites();\n\n\t\t\tfile1 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"#properties#save#\"));\n\t\t\tfile2 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"properties\"));\n\t\t\tif(file2.exists() && file2.lastModified() != propsModTime)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,jEdit.class,file2 + \" changed\"\n\t\t\t\t\t+ \" on disk; will not save user properties\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbackupSettingsFile(file2);\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tOutputStream out = new FileOutputStream(file1);\n\t\t\t\t\tprops.store(out,\"jEdit properties\");\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t\t\t}\n\n\t\t\t\tfile2.delete();\n\t\t\t\tfile1.renameTo(file2);\n\t\t\t}\n\t\t\tpropsModTime = file2.lastModified();\n\t\t}\n\t} //}}}\n\n\t//{{{ exit() method\n\t/**\n\t * Exits cleanly from jEdit, prompting the user if any unsaved files\n\t * should be saved first.\n\t * @param view The view from which this exit was called\n\t * @param reallyExit If background mode is enabled and this parameter\n\t * is true, then jEdit will close all open views instead of exiting\n\t * entirely.\n\t */\n\tpublic static void exit(View view, boolean reallyExit)\n\t{\n\t\t// Wait for pending I/O requests\n\t\tVFSManager.waitForRequests();\n\n\t\t// Send EditorExitRequested\n\t\tEditBus.send(new EditorExitRequested(view));\n\n\t\t// Even if reallyExit is false, we still exit properly\n\t\t// if background mode is off\n\t\treallyExit |= !background;\n\n\t\tsaveOpenFiles(view);\n\n\t\t// Close all buffers\n\t\tif(!closeAllBuffers(view,reallyExit))\n\t\t\treturn;\n\n\t\t// If we are running in background mode and\n\t\t// reallyExit was not specified, then return here.\n\t\tif(!reallyExit)\n\t\t{\n\t\t\t// in this case, we can't directly call\n\t\t\t// view.close(); we have to call closeView()\n\t\t\t// for all open views\n\t\t\tview = viewsFirst;\n\t\t\twhile(view != null)\n\t\t\t{\n\t\t\t\tcloseView(view,false);\n\t\t\t\tview = view.next;\n\t\t\t}\n\n\t\t\t// Save settings in case user kills the backgrounded\n\t\t\t// jEdit process\n\t\t\tsaveSettings();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Save view properties here - it unregisters\n\t\t// listeners, and we would have problems if the user\n\t\t// closed a view but cancelled an unsaved buffer close\n\t\tview.close();\n\n\t\t// Stop autosave timer\n\t\tAutosave.stop();\n\n\t\t// Stop server\n\t\tif(server != null)\n\t\t\tserver.stopServer();\n\n\t\t// Stop all plugins\n\t\tEditPlugin[] plugins = getPlugins();\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tplugins[i].stop();\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,\"Error while \"\n\t\t\t\t\t+ \"stopping plugin:\");\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,t);\n\t\t\t}\n\t\t}\n\n\t\t// Send EditorExiting\n\t\tEditBus.send(new EditorExiting(null));\n\n\t\t// Save settings\n\t\tsaveSettings();\n\n\t\t// Close activity log stream\n\t\tLog.closeStream();\n\n\t\t// Byebye...\n\t\tSystem.exit(0);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Package-private members\n\n\t//{{{ updatePosition() method\n\t/**\n\t * If buffer sorting is enabled, this repositions the buffer.\n\t */\n\tstatic void updatePosition(Buffer buffer)\n\t{\n\t\tif(sortBuffers)\n\t\t{\n\t\t\tremoveBufferFromList(buffer);\n\t\t\taddBufferToList(buffer);\n\t\t}\n\t} //}}}\n\n\t//{{{ addMode() method\n\t/**\n\t * Do not call this method. It is only public so that classes\n\t * in the org.gjt.sp.jedit.syntax package can access it.\n\t * @param mode The edit mode\n\t */\n\tpublic static void addMode(Mode mode)\n\t{\n\t\tLog.log(Log.DEBUG,jEdit.class,\"Adding edit mode \"\n\t\t\t+ mode.getName());\n\n\t\tmodes.addElement(mode);\n\t} //}}}\n\n\t//{{{ loadMode() method\n\t/**\n\t * Loads an XML-defined edit mode from the specified reader.\n\t * @param mode The edit mode\n\t */\n\t/* package-private */ static void loadMode(Mode mode)\n\t{\n\t\tObject fileName = mode.getProperty(\"file\");\n\n\t\tLog.log(Log.NOTICE,jEdit.class,\"Loading edit mode \" + fileName);\n\n\t\tXmlParser parser = new XmlParser();\n\t\tXModeHandler xmh = new XModeHandler(parser,mode.getName(),fileName.toString());\n\t\tparser.setHandler(xmh);\n\t\ttry\n\t\t{\n\t\t\tReader grammar;\n\t\t\tif(fileName instanceof URL)\n\t\t\t{\n\t\t\t\tgrammar = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(\n\t\t\t\t\t((URL)fileName).openStream()));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgrammar = new BufferedReader(new FileReader(\n\t\t\t\t\t(String)fileName));\n\t\t\t}\n\n\t\t\tparser.parse(null, null, grammar);\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR, jEdit.class, e);\n\n\t\t\tif (e instanceof XmlException)\n\t\t\t{\n\t\t\t\tXmlException xe = (XmlException) e;\n\t\t\t\tint line = xe.getLine();\n\t\t\t\tString message = xe.getMessage();\n\n\t\t\t\tObject[] args = { fileName, new Integer(line), message };\n\t\t\t\tGUIUtilities.error(null,\"xmode-parse\",args);\n\t\t\t}\n\n\t\t\t// give it an empty token marker to avoid problems\n\t\t\tTokenMarker marker = new TokenMarker();\n\t\t\tmarker.addRuleSet(\"MAIN\",new ParserRuleSet(\"MAIN\",mode));\n\t\t\tmode.setTokenMarker(marker);\n\t\t}\n\t} //}}}\n\n\t//{{{ loadProps() method\n\t/**\n\t * Loads the properties from the specified input stream. This\n\t * calls the <code>load()</code> method of the properties object\n\t * and closes the stream.\n\t * @param in The input stream\n\t * @param def If true, the properties will be loaded into the\n\t * default table\n\t * @exception IOException if an I/O error occured\n\t */\n\t/* package-private */ static void loadProps(InputStream in, boolean def)\n\t\tthrows IOException\n\t{\n\t\tin = new BufferedInputStream(in);\n\t\tif(def)\n\t\t\tdefaultProps.load(in);\n\t\telse\n\t\t\tprops.load(in);\n\t\tin.close();\n\t} //}}}\n\n\t//{{{ loadActions() method\n\t/**\n\t * Loads the specified action list.\n\t */\n\tstatic boolean loadActions(String path, Reader in, ActionSet actionSet)\n\t{\n\t\ttry\n\t\t{\n\t\t\tLog.log(Log.DEBUG,jEdit.class,\"Loading actions from \" + path);\n\n\t\t\tActionListHandler ah = new ActionListHandler(path,actionSet);\n\t\t\tXmlParser parser = new XmlParser();\n\t\t\tparser.setHandler(ah);\n\t\t\tparser.parse(null, null, in);\n\t\t\treturn true;\n\t\t}\n\t\tcatch(XmlException xe)\n\t\t{\n\t\t\tint line = xe.getLine();\n\t\t\tString message = xe.getMessage();\n\t\t\tLog.log(Log.ERROR,jEdit.class,path + \":\" + line\n\t\t\t\t+ \": \" + message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ pluginError() method\n\tstatic void pluginError(final String path, String messageProp, Object[] args)\n\t{\n\t\tif(pluginErrors == null)\n\t\t\tpluginErrors = new Vector();\n\n\t\tpluginErrors.addElement(new ErrorListDialog.ErrorEntry(\n\t\t\tpath,messageProp,args));\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\n\t//{{{ Static variables\n\tprivate static String jEditHome;\n\tprivate static String settingsDirectory;\n\tprivate static long propsModTime, historyModTime, recentModTime;\n\tprivate static Properties defaultProps;\n\tprivate static Properties props;\n\tprivate static EditServer server;\n\tprivate static boolean background;\n\tprivate static Vector actionSets;\n\tprivate static ActionSet builtInActionSet;\n\tprivate static Vector pluginErrors;\n\tprivate static Vector jars;\n\tprivate static Vector modes;\n\tprivate static Vector recent;\n\tprivate static boolean saveCaret;\n\tprivate static InputHandler inputHandler;\n\tprivate static JEditMetalTheme theme;\n\n\t// buffer link list\n\tprivate static boolean sortBuffers;\n\tprivate static boolean sortByName;\n\tprivate static int bufferCount;\n\tprivate static Buffer buffersFirst;\n\tprivate static Buffer buffersLast;\n\n\t// makes openTemporary() thread-safe\n\tprivate static Object bufferListLock = new Object();\n\n\t// view link list\n\tprivate static int viewCount;\n\tprivate static View viewsFirst;\n\tprivate static View viewsLast;\n\t//}}}\n\n\tprivate jEdit() {}\n\n\t//{{{ usage() method\n\tprivate static void usage()\n\t{\n\t\tSystem.out.println(\"Usage: jedit [<options>] [<files>]\");\n\n\t\tSystem.out.println(\"\t<file> +marker:<marker>: Positions caret\"\n\t\t\t+ \" at marker <marker>\");\n\t\tSystem.out.println(\"\t<file> +line:<line>: Positions caret\"\n\t\t\t+ \" at line number <line>\");\n\t\tSystem.out.println(\"\t--: End of options\");\n\t\tSystem.out.println(\"\t-background: Run in background mode\");\n\t\tSystem.out.println(\"\t-nogui: Only if running in background mode;\"\n\t\t\t+ \" don't open initial view\");\n\t\tSystem.out.println(\"\t-norestore: Don't restore previously open files\");\n\t\tSystem.out.println(\"\t-run=<script>: Run the specified BeanShell script\");\n\t\tSystem.out.println(\"\t-server: Read/write server\"\n\t\t\t+ \" info from/to $HOME/.jedit/server\");\n\t\tSystem.out.println(\"\t-server=<name>: Read/write server\"\n\t\t\t+ \" info from/to $HOME/.jedit/<name>\");\n\t\tSystem.out.println(\"\t-noserver: Don't start edit server\");\n\t\tSystem.out.println(\"\t-settings=<path>: Load user-specific\"\n\t\t\t+ \" settings from <path>\");\n\t\tSystem.out.println(\"\t-nosettings: Don't load user-specific\"\n\t\t\t+ \" settings\");\n\t\tSystem.out.println(\"\t-noplugins: Don't load any plugins\");\n\t\tSystem.out.println(\"\t-nostartupscripts: Don't run startup scripts\");\n\t\tSystem.out.println(\"\t-version: Print jEdit version and exit\");\n\t\tSystem.out.println(\"\t-usage: Print this message and exit\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"To set minimum activity log level,\"\n\t\t\t+ \" specify a number as the first\");\n\t\tSystem.out.println(\"command line parameter\"\n\t\t\t+ \" (1-9, 1 = print everything, 9 = fatal errors only)\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Report bugs to Slava Pestov <slava@jedit.org>.\");\n\t} //}}}\n\n\t//{{{ version() method\n\tprivate static void version()\n\t{\n\t\tSystem.out.println(\"jEdit \" + getVersion());\n\t} //}}}\n\n\t//{{{ makeServerScript() method\n\t/**\n\t * Creates a BeanShell script that can be sent to a running edit server.\n\t */\n\tprivate static String makeServerScript(boolean restore,\n\t\tString[] args, String scriptFile)\n\t{\n\t\tStringBuffer script = new StringBuffer();\n\n\t\tString userDir = System.getProperty(\"user.dir\");\n\n\t\tscript.append(\"parent = \\\"\");\n\t\tscript.append(MiscUtilities.charsToEscapes(userDir));\n\t\tscript.append(\"\\\";\\n\");\n\n\t\tscript.append(\"args = new String[\");\n\t\tscript.append(args.length);\n\t\tscript.append(\"];\\n\");\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tscript.append(\"args[\");\n\t\t\tscript.append(i);\n\t\t\tscript.append(\"] = \");\n\n\t\t\tif(args[i] == null)\n\t\t\t\tscript.append(\"null\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tscript.append('\"');\n\t\t\t\tscript.append(MiscUtilities.charsToEscapes(args[i]));\n\t\t\t\tscript.append('\"');\n\t\t\t}\n\n\t\t\tscript.append(\";\\n\");\n\t\t}\n\n\t\tscript.append(\"EditServer.handleClient(\" + restore + \",parent,args);\\n\");\n\n\t\tif(scriptFile != null)\n\t\t{\n\t\t\tscriptFile = MiscUtilities.constructPath(userDir,scriptFile);\n\t\t\tscript.append(\"BeanShell.runScript(null,\\\"\"\n\t\t\t\t+ MiscUtilities.charsToEscapes(scriptFile)\n\t\t\t\t+ \"\\\",null,false);\\n\");\n\t\t}\n\n\t\treturn script.toString();\n\t} //}}}\n\n\t//{{{ initMisc() method\n\t/**\n\t * Initialise various objects, register protocol handlers.\n\t */\n\tprivate static void initMisc()\n\t{\n\t\t// Add our protocols to java.net.URL's list\n\t\tSystem.getProperties().put(\"java.protocol.handler.pkgs\",\n\t\t\t\"org.gjt.sp.jedit.proto|\" +\n\t\t\tSystem.getProperty(\"java.protocol.handler.pkgs\",\"\"));\n\n\t\t// Set the User-Agent string used by the java.net HTTP handler\n\t\tString userAgent = \"jEdit/\" + getVersion()\n\t\t\t+ \" (Java \" + System.getProperty(\"java.version\")\n\t\t\t+ \". \" + System.getProperty(\"java.vendor\")\n\t\t\t+ \"; \" + System.getProperty(\"os.arch\") + \")\";\n\t\tSystem.getProperties().put(\"http.agent\",userAgent);\n\n\t\tinputHandler = new DefaultInputHandler(null);\n\n\t\t/* Determine installation directory.\n\t\t * If the jedit.home property is set, use that.\n\t\t * Then, look for jedit.jar in the classpath.\n\t\t * If that fails, assume this is the web start version. */\n\t\tjEditHome = System.getProperty(\"jedit.home\");\n\t\tif(jEditHome == null)\n\t\t{\n\t\t\tString classpath = System\n\t\t\t\t.getProperty(\"java.class.path\");\n\t\t\tint index = classpath.toLowerCase()\n\t\t\t\t.indexOf(\"jedit.jar\");\n\t\t\tint start = classpath.lastIndexOf(File\n\t\t\t\t.pathSeparator,index) + 1;\n\t\t\t// if started with java -jar jedit.jar\n\t\t\t if(classpath.equalsIgnoreCase(\"jedit.jar\"))\n\t\t\t{\n\t\t\t\tjEditHome = System.getProperty(\"user.dir\");\n\t\t\t}\n\t\t\telse if(index > start)\n\t\t\t{\n\t\t\t\tjEditHome = classpath.substring(start,\n\t\t\t\t\tindex - 1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// check if web start\n\t\t\t\t/* if(jEdit.class.getResource(\"/modes/catalog\") != null)\n\t\t\t\t{\n\t\t\t\t\t// modes bundled in; hence web start\n\t\t\t\t\tjEditHome = null;\n\t\t\t\t}\n\t\t\t\telse */\n\t\t\t\t{\n\t\t\t\t\t// use user.dir as last resort\n\t\t\t\t\tjEditHome = System.getProperty(\"user.dir\");\n\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"jedit.jar not in class path!\");\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"Assuming jEdit is installed in \"\n\t\t\t\t\t\t+ jEditHome + \".\");\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"Override with jedit.home \"\n\t\t\t\t\t\t+ \"system property.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"jEdit home directory is \" + jEditHome);\n\n\t\t//if(jEditHome == null)\n\t\t//\tLog.log(Log.DEBUG,jEdit.class,\"Web start mode\");\n\n\t\tjars = new Vector();\n\n\t\t// Add an EditBus component that will reload edit modes and\n\t\t// macros if they are changed from within the editor\n\t\tEditBus.addToBus(new SettingsReloader());\n\n\t\t// Perhaps if Xerces wasn't slightly brain-damaged, we would\n\t\t// not need this\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tThread.currentThread().setContextClassLoader(\n\t\t\t\t\tnew JARClassLoader());\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ initSystemProperties() method\n\t/**\n\t * Load system properties.\n\t */\n\tprivate static void initSystemProperties()\n\t{\n\t\tdefaultProps = props = new Properties();\n\n\t\ttry\n\t\t{\n\t\t\tloadProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit.props\"),true);\n\t\t\tloadProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit_gui.props\"),true);\n\t\t\tloadProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit_keys.props\"),true);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,\n\t\t\t\t\"Error while loading system properties!\");\n\t\t\tLog.log(Log.ERROR,jEdit.class,\n\t\t\t\t\"One of the following property files could not be loaded:\\n\"\n\t\t\t\t+ \"- jedit.props\\n\"\n\t\t\t\t+ \"- jedit_gui.props\\n\"\n\t\t\t\t+ \"- jedit_keys.props\\n\"\n\t\t\t\t+ \"jedit.jar is probably corrupt.\");\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t} //}}}\n\n\t//{{{ initSiteProperties() method\n\t/**\n\t * Load site properties.\n\t */\n\tprivate static void initSiteProperties()\n\t{\n\t\t// site properties are loaded as default properties, overwriting\n\t\t// jEdit's system properties\n\n\t\tString siteSettingsDirectory = MiscUtilities.constructPath(\n\t\t\tjEditHome, \"properties\");\n\t\tFile siteSettings = new File(siteSettingsDirectory);\n\n\t\tif (!(siteSettings.exists() && siteSettings.isDirectory()))\n\t\t\treturn;\n\n\t\tString[] snippets = siteSettings.list();\n\t\tif (snippets == null)\n\t\t\treturn;\n\n\t\tMiscUtilities.quicksort(snippets,\n\t\t\tnew MiscUtilities.StringICaseCompare());\n\n\t\tfor (int i = 0; i < snippets.length; ++i)\n\t\t{\n\t\t\tString snippet = snippets[i];\n\t\t\tif(!snippet.toLowerCase().endsWith(\".props\"))\n\t\t\t\tcontinue;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString path = MiscUtilities.constructPath(\n\t\t\t\t\tsiteSettingsDirectory,snippet);\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,\n\t\t\t\t\t\"Loading site snippet: \" + path);\n\n\t\t\t\tloadProps(new FileInputStream(new File(path)),true);\n\t\t\t}\n\t\t\tcatch(FileNotFoundException fnf)\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,fnf);\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,\"Cannot load site snippet \"\n\t\t\t\t\t+ snippet);\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ initActions() method\n\t/**\n\t * Load actions.\n\t */\n\tprivate static void initActions()\n\t{\n\t\tactionSets = new Vector();\n\n\t\tReader in = new BufferedReader(new InputStreamReader(\n\t\t\tjEdit.class.getResourceAsStream(\"actions.xml\")));\n\t\tbuiltInActionSet = new ActionSet(jEdit.getProperty(\n\t\t\t\"action-set.jEdit\"));\n\t\tif(!loadActions(\"actions.xml\",in,builtInActionSet))\n\t\t\tSystem.exit(1);\n\t\taddActionSet(builtInActionSet);\n\t} //}}}\n\n\t//{{{ initDockables() method\n\t/**\n\t * Load info on jEdit's built-in dockable windows.\n\t */\n\tprivate static void initDockables()\n\t{\n\t\tReader in = new BufferedReader(new InputStreamReader(\n\t\t\tjEdit.class.getResourceAsStream(\"dockables.xml\")));\n\t\tif(!DockableWindowManager.loadDockableWindows(\"dockables.xml\",\n\t\t\tin,builtInActionSet))\n\t\t\tSystem.exit(1);\n\t} //}}}\n\n\t//{{{ initPlugins() method\n\t/**\n\t * Loads plugins.\n\t */\n\tprivate static void initPlugins()\n\t{\n\t\tif(jEditHome != null)\n\t\t\tloadPlugins(MiscUtilities.constructPath(jEditHome,\"jars\"));\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile jarsDirectory = new File(settingsDirectory,\"jars\");\n\t\t\tif(!jarsDirectory.exists())\n\t\t\t\tjarsDirectory.mkdir();\n\t\t\tloadPlugins(jarsDirectory.getPath());\n\t\t}\n\t} //}}}\n\n\t//{{{ initUserProperties() method\n\t/**\n\t * Loads user properties.\n\t */\n\tprivate static void initUserProperties()\n\t{\n\t\tprops = new Properties(defaultProps);\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile file = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"properties\"));\n\t\t\tpropsModTime = file.lastModified();\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tloadProps(new FileInputStream(file),false);\n\t\t\t}\n\t\t\tcatch(FileNotFoundException fnf)\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,fnf);\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ initPLAF() method\n\t/**\n\t * Sets the Swing look and feel.\n\t */\n\tprivate static void initPLAF()\n\t{\n\t\ttheme = new JEditMetalTheme();\n\t\ttheme.propertiesChanged();\n\t\tMetalLookAndFeel.setCurrentTheme(theme);\n\n\t\ttry\n\t\t{\n\t\t\tString lf = getProperty(\"lookAndFeel\");\n\t\t\tif(lf != null && lf.length() != 0)\n\t\t\t\tUIManager.setLookAndFeel(lf);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t}\n\n\t\tUIDefaults defaults = UIManager.getDefaults();\n\n\t\t// give all Swing components our colors\n\t\tif(jEdit.getBooleanProperty(\"textColors\"))\n\t\t{\n\t\t\tColor background = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.bgColor\"));\n\t\t\tColor foreground = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.fgColor\"));\n\t\t\tColor caretColor = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.caretColor\"));\n\t\t\tColor selectionColor = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.selectionColor\"));\n\n\t\t\tString[] prefixes = { \"TextField\", \"TextArea\", \"List\", \"Table\" };\n\t\t\tfor(int i = 0; i < prefixes.length; i++)\n\t\t\t{\n\t\t\t\tString prefix = prefixes[i];\n\t\t\t\tdefaults.put(prefix + \".disabledBackground\",background);\n\t\t\t\tdefaults.put(prefix + \".background\",background);\n\t\t\t\tdefaults.put(prefix + \".disabledForeground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".foreground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".caretForeground\",caretColor);\n\t\t\t\tdefaults.put(prefix + \".selectionForeground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".selectionBackground\",selectionColor);\n\t\t\t\t//defaults.put(prefix + \".inactiveForeground\",foreground);\n\t\t\t}\n\n\t\t\tdefaults.put(\"Tree.background\",background);\n\t\t\tdefaults.put(\"Tree.foreground\",foreground);\n\t\t\tdefaults.put(\"Tree.textBackground\",background);\n\t\t\tdefaults.put(\"Tree.textForeground\",foreground);\n\t\t\tdefaults.put(\"Tree.selectionForeground\",foreground);\n\t\t\tdefaults.put(\"Tree.selectionBackground\",selectionColor);\n\t\t}\n\n\t\tdefaults.remove(\"SplitPane.border\");\n\t\tdefaults.remove(\"SplitPaneDivider.border\");\n\t} //}}}\n\n\t//{{{ runStartupScripts() method\n\t/**\n\t * Runs scripts in the site startup directory, and user startup directory.\n\t */\n\tprivate static void runStartupScripts(File directory)\n\t{\n\t\tif (!directory.isDirectory())\n\t\t\treturn;\n\n\t\tString[] snippets = directory.list();\n\t\tif (snippets == null)\n\t\t\treturn;\n\n\t\tMiscUtilities.quicksort(snippets,\n\t\t\tnew MiscUtilities.StringICaseCompare());\n\n\t\tfor(int i = 0; i < snippets.length; ++i)\n\t\t{\n\t\t\tString snippet = snippets[i];\n\t\t\tif(!snippet.toLowerCase().endsWith(\".bsh\"))\n\t\t\t\tcontinue;\n\n\t\t\tString path = new File(directory,snippet).getPath();\n\n\t\t\tBeanShell.runScript(null,path,null,false);\n\t\t}\n\t} //}}}\n\n\t//{{{ initProxy() method\n\tprivate static void initProxy()\n\t{\n\t\tboolean enabled = jEdit.getBooleanProperty(\"firewall.enabled\");\n\t\tif (!enabled) {\n\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy disabled\");\n\t\t\tSystem.getProperties().remove(\"proxySet\");\n\t\t\tSystem.getProperties().remove(\"proxyHost\");\n\t\t\tSystem.getProperties().remove(\"proxyPort\");\n\t\t\tSystem.getProperties().remove(\"http.proxyHost\");\n\t\t\tSystem.getProperties().remove(\"http.proxyPort\");\n\t\t\tSystem.getProperties().remove(\"http.nonProxyHosts\");\n\t\t\tAuthenticator.setDefault(null);\n\t\t} else {\n\t\t\t// set proxy host\n\t\t\tString host = jEdit.getProperty(\"firewall.host\");\n\t\t\tif (host == null)\n\t\t\t\treturn;\n\n\t\t\tSystem.setProperty(\"http.proxyHost\", host);\n\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy enabled: \" + host);\n\t\t\t// set proxy port\n\t\t\tString port = jEdit.getProperty(\"firewall.port\");\n\t\t\tif (port != null)\n\t\t\t\tSystem.setProperty(\"http.proxyPort\", port);\n\n\t\t\t// set non proxy hosts list\n\t\t\tString nonProxyHosts = jEdit.getProperty(\"firewall.nonProxyHosts\");\n\t\t\tif (nonProxyHosts != null)\n\t\t\t\tSystem.setProperty(\"http.nonProxyHosts\", nonProxyHosts);\n\n\t\t\t// set proxy authentication\n\t\t\tString username = jEdit.getProperty(\"firewall.user\");\n\t\t\tString password = jEdit.getProperty(\"firewall.password\");\n\n\t\t\t// null not supported?\n\t\t\tif(password == null)\n\t\t\t\tpassword = \"\";\n\n\t\t\tif(username == null || username.length()==0)\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy without user\");\n\t\t\t\tAuthenticator.setDefault(new FirewallAuthenticator(null));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy user: \" + username);\n\t\t\t\tPasswordAuthentication pw = new PasswordAuthentication(\n\t\t\t\t\tusername,password.toCharArray()\n\t\t\t\t);\n\t\t\t\tAuthenticator.setDefault(new FirewallAuthenticator(pw));\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ FirewallAuthenticator class\n\tstatic class FirewallAuthenticator extends Authenticator\n\t{\n\t\tPasswordAuthentication pw;\n\n\t\tpublic FirewallAuthenticator(PasswordAuthentication pw)\n\t\t{\n\t\t\tthis.pw = pw;\n\t\t}\n\n\t\tprotected PasswordAuthentication getPasswordAuthentication()\n\t\t{\n\t\t\treturn pw;\n\t\t}\n\t} //}}}\n\n\t//{{{ getNotLoadedPluginJARs() method\n\tprivate static void getNotLoadedPluginJARs(Vector returnValue,\n\t\tString dir, String[] list)\n\t{\nloop:\t\tfor(int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tString name = list[i];\n\t\t\tif(!name.toLowerCase().endsWith(\".jar\"))\n\t\t\t\tcontinue loop;\n\n\t\t\tString path = MiscUtilities.constructPath(dir,name);\n\n\t\t\tfor(int j = 0; j < jars.size(); j++)\n\t\t\t{\n\t\t\t\tEditPlugin.JAR jar = (EditPlugin.JAR)\n\t\t\t\t\tjars.elementAt(j);\n\t\t\t\tString jarPath = jar.getPath();\n\t\t\t\tString jarName = MiscUtilities.getFileName(jarPath);\n\n\t\t\t\tif(path.equals(jarPath))\n\t\t\t\t\tcontinue loop;\n\t\t\t\telse if(!new File(jarPath).exists()\n\t\t\t\t\t&& name.equals(jarName))\n\t\t\t\t\tcontinue loop;\n\t\t\t}\n\n\t\t\treturnValue.addElement(path);\n\t\t}\n\t} //}}}\n\n\t//{{{ gotoMarker() method\n\tprivate static void gotoMarker(final View view, final Buffer buffer,\n\t\tfinal String marker)\n\t{\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tint pos;\n\n\t\t\t\t// Handle line number\n\t\t\t\tif(marker.startsWith(\"+line:\"))\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tint line = Integer.parseInt(marker.substring(6));\n\t\t\t\t\t\tpos = buffer.getLineStartOffset(line - 1);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Handle marker\n\t\t\t\telse if(marker.startsWith(\"+marker:\"))\n\t\t\t\t{\n\t\t\t\t\tif(marker.length() != 9)\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\tMarker m = buffer.getMarker(marker.charAt(8));\n\t\t\t\t\tif(m == null)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tpos = m.getPosition();\n\t\t\t\t}\n\t\t\t\t// Can't happen\n\t\t\t\telse\n\t\t\t\t\tthrow new InternalError();\n\n\t\t\t\tif(view != null && view.getBuffer() == buffer)\n\t\t\t\t\tview.getTextArea().setCaretPosition(pos);\n\t\t\t\telse\n\t\t\t\t\tbuffer.setIntegerProperty(Buffer.CARET,pos);\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ addBufferToList() method\n\tprivate static void addBufferToList(Buffer buffer)\n\t{\n\t\t// if only one, clean, 'untitled' buffer is open, we\n\t\t// replace it\n\t\tif(viewCount <= 1 && buffersFirst != null\n\t\t\t&& buffersFirst == buffersLast\n\t\t\t&& buffersFirst.isUntitled()\n\t\t\t&& !buffersFirst.isDirty())\n\t\t{\n\t\t\tBuffer oldBuffersFirst = buffersFirst;\n\t\t\tbuffersFirst = buffersLast = buffer;\n\t\t\tEditBus.send(new BufferUpdate(oldBuffersFirst,null,\n\t\t\t\tBufferUpdate.CLOSED));\n\t\t\treturn;\n\t\t}\n\n\t\tbufferCount++;\n\n\t\tif(buffersFirst == null)\n\t\t{\n\t\t\tbuffersFirst = buffersLast = buffer;\n\t\t\treturn;\n\t\t}\n\t\t//{{{ Sort buffer list\n\n\t\t/**\n\t\t * Note that we use either buffer.getPath() or buffer.toString().\n\t\t * If the former, then the list is sorted first by directory,\n\t\t * then by file name; if the latter, it's the opposite.\n\t\t *\n\t\t * (Buffer.toString() returns \"NAME (DIR)\")\n\t\t */\n\t\telse if(sortBuffers)\n\t\t{\n\t\t\tString name1 = (sortByName ? buffer.toString()\n\t\t\t\t: buffer.getPath());\n\n\t\t\tBuffer _buffer = buffersFirst;\n\t\t\twhile(_buffer != null)\n\t\t\t{\n\t\t\t\tString name2 = (sortByName ? _buffer.toString()\n\t\t\t\t\t: _buffer.getPath());\n\t\t\t\tif(MiscUtilities.compareStrings(name1,name2,true) <= 0)\n\t\t\t\t{\n\t\t\t\t\tbuffer.next = _buffer;\n\t\t\t\t\tbuffer.prev = _buffer.prev;\n\t\t\t\t\t_buffer.prev = buffer;\n\t\t\t\t\tif(_buffer != buffersFirst)\n\t\t\t\t\t\tbuffer.prev.next = buffer;\n\t\t\t\t\telse\n\t\t\t\t\t\tbuffersFirst = buffer;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t_buffer = _buffer.next;\n\t\t\t}\n\t\t} //}}}\n\n\t\tbuffer.prev = buffersLast;\n\t\tbuffersLast.next = buffer;\n\t\tbuffersLast = buffer;\n\t} //}}}\n\n\t//{{{ removeBufferFromList() method\n\tprivate static void removeBufferFromList(Buffer buffer)\n\t{\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tbufferCount--;\n\n\t\t\tif(buffer == buffersFirst && buffer == buffersLast)\n\t\t\t{\n\t\t\t\tbuffersFirst = buffersLast = null;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(buffer == buffersFirst)\n\t\t\t{\n\t\t\t\tbuffersFirst = buffer.next;\n\t\t\t\tbuffer.next.prev = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.prev.next = buffer.next;\n\t\t\t}\n\n\t\t\tif(buffer == buffersLast)\n\t\t\t{\n\t\t\t\tbuffersLast = buffersLast.prev;\n\t\t\t\tbuffer.prev.next = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.next.prev = buffer.prev;\n\t\t\t}\n\n\t\t\t// fixes the hang that can occur if we 'save as' to a new\n\t\t\t// filename which requires re-sorting\n\t\t\tbuffer.next = buffer.prev = null;\n\t\t}\n\t} //}}}\n\n\t//{{{ addViewToList() method\n\tprivate static void addViewToList(View view)\n\t{\n\t\tviewCount++;\n\n\t\tif(viewsFirst == null)\n\t\t\tviewsFirst = viewsLast = view;\n\t\telse\n\t\t{\n\t\t\tview.prev = viewsLast;\n\t\t\tviewsLast.next = view;\n\t\t\tviewsLast = view;\n\t\t}\n\t} //}}}\n\n\t//{{{ removeViewFromList() method\n\tprivate static void removeViewFromList(View view)\n\t{\n\t\tviewCount--;\n\n\t\tif(viewsFirst == viewsLast)\n\t\t{\n\t\t\tviewsFirst = viewsLast = null;\n\t\t\treturn;\n\t\t}\n\n\t\tif(view == viewsFirst)\n\t\t{\n\t\t\tviewsFirst = view.next;\n\t\t\tview.next.prev = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview.prev.next = view.next;\n\t\t}\n\n\t\tif(view == viewsLast)\n\t\t{\n\t\t\tviewsLast = viewsLast.prev;\n\t\t\tview.prev.next = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview.next.prev = view.prev;\n\t\t}\n\t} //}}}\n\n\t//{{{ closeView() method\n\t/**\n\t * closeView() used by exit().\n\t */\n\tprivate static void closeView(View view, boolean callExit)\n\t{\n\t\tif(viewsFirst == viewsLast && callExit)\n\t\t\texit(view,false); /* exit does editor event & save */\n\t\telse\n\t\t{\n\t\t\tEditBus.send(new ViewUpdate(view,ViewUpdate.CLOSED));\n\n\t\t\tview.close();\n\t\t\tremoveViewFromList(view);\n\t\t}\n\t} //}}}\n\n\t//{{{ loadModeCatalog() method\n\t/**\n\t * Loads a mode catalog file.\n\t * @since jEdit 3.2pre2\n\t */\n\tprivate static void loadModeCatalog(String path, boolean resource)\n\t{\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"Loading mode catalog file \" + path);\n\n\t\tModeCatalogHandler handler = new ModeCatalogHandler(\n\t\t\tMiscUtilities.getParentOfPath(path),resource);\n\t\tXmlParser parser = new XmlParser();\n\t\tparser.setHandler(handler);\n\t\ttry\n\t\t{\n\t\t\tInputStream _in;\n\t\t\tif(resource)\n\t\t\t\t_in = jEdit.class.getResourceAsStream(path);\n\t\t\telse\n\t\t\t\t_in = new FileInputStream(path);\n\t\t\tBufferedReader in = new BufferedReader(\n\t\t\t\tnew InputStreamReader(_in));\n\t\t\tparser.parse(null, null, in);\n\t\t}\n\t\tcatch(XmlException xe)\n\t\t{\n\t\t\tint line = xe.getLine();\n\t\t\tString message = xe.getMessage();\n\t\t\tLog.log(Log.ERROR,jEdit.class,path + \":\" + line\n\t\t\t\t+ \": \" + message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t}\n\t} //}}}\n\n\t//{{{ loadPlugins() method\n\t/**\n\t * Loads all plugins in a directory.\n\t * @param directory The directory\n\t */\n\tprivate static void loadPlugins(String directory)\n\t{\n\t\tLog.log(Log.NOTICE,jEdit.class,\"Loading plugins from \"\n\t\t\t+ directory);\n\n\t\tFile file = new File(directory);\n\t\tif(!(file.exists() && file.isDirectory()))\n\t\t\treturn;\n\t\tString[] plugins = file.list();\n\t\tif(plugins == null)\n\t\t\treturn;\n\n\t\tMiscUtilities.quicksort(plugins,new MiscUtilities.StringICaseCompare());\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tString plugin = plugins[i];\n\t\t\tif(!plugin.toLowerCase().endsWith(\".jar\"))\n\t\t\t\tcontinue;\n\n\t\t\tString path = MiscUtilities.constructPath(directory,plugin);\n\n\t\t\tif(plugin.equals(\"EditBuddy.jar\")\n\t\t\t\t|| plugin.equals(\"PluginManager.jar\")\n\t\t\t\t|| plugin.equals(\"Firewall.jar\")\n\t\t\t\t|| plugin.equals(\"Tidy.jar\"))\n\t\t\t{\n\t\t\t\tpluginError(path,\"plugin-error.obsolete\",null);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,\n\t\t\t\t\t\"Scanning JAR file: \" + path);\n\t\t\t\tnew JARClassLoader(path);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,\"Cannot load\"\n\t\t\t\t\t+ \" plugin \" + plugin);\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\n\t\t\t\tString[] args = { io.toString() };\n\t\t\t\tpluginError(path,\"plugin-error.load-error\",args);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ initKeyBindings() method\n\t/**\n\t * Loads all key bindings from the properties.\n\t * @since 3.1pre1\n\t */\n\tprivate static void initKeyBindings()\n\t{\n\t\tinputHandler.removeAllKeyBindings();\n\n\t\tEditAction[] actions = getActions();\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tEditAction action = actions[i];\n\n\t\t\tString shortcut1 = jEdit.getProperty(action.getName()\n\t\t\t\t+ \".shortcut\");\n\t\t\tif(shortcut1 != null)\n\t\t\t\tinputHandler.addKeyBinding(shortcut1,action);\n\n\t\t\tString shortcut2 = jEdit.getProperty(action.getName()\n\t\t\t\t+ \".shortcut2\");\n\t\t\tif(shortcut2 != null)\n\t\t\t\tinputHandler.addKeyBinding(shortcut2,action);", "functions": [{"function_name": "getVersion", "code": "\tpublic static String getVersion()\n\t{\n\t\treturn MiscUtilities.buildToVersion(getBuild());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getBuild", "code": "\tpublic static String getBuild()\n\t{\n\t\t// (major).(minor).(<99 = preX, 99 = final).(bug fix)\n\t\treturn \"04.00.99.00\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "main", "code": "\tpublic static void main(String[] args)\n\t{\n\t\tString javaVersion = System.getProperty(\"java.version\");\n\t\tif(javaVersion.compareTo(\"1.3\") < 0)\n\t\t{\n\t\t\tSystem.err.println(\"You are running Java version \"\n\t\t\t\t+ javaVersion + \".\");\n\t\t\tSystem.err.println(\"jEdit requires Java 1.3 or later.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//{{{ Parse command line\n\t\tint level = Log.WARNING;\n\t\tif(args.length >= 1)\n\t\t{\n\t\t\tString levelStr = args[0];\n\t\t\tif(levelStr.length() == 1 && Character.isDigit(\n\t\t\t\tlevelStr.charAt(0)))\n\t\t\t{\n\t\t\t\tlevel = Integer.parseInt(levelStr);\n\t\t\t\targs[0] = null;\n\t\t\t}\n\t\t}\n\n\t\tboolean endOpts = false;\n\t\tsettingsDirectory = MiscUtilities.constructPath(\n\t\t\tSystem.getProperty(\"user.home\"),\".jedit\");\n\t\tString portFile = \"server\";\n\t\tboolean restore = true;\n\t\tboolean gui = true; // open initial view?\n\t\tboolean noPlugins = false;\n\t\tboolean noStartupScripts = false;\n\t\tString userDir = System.getProperty(\"user.dir\");\n\n\t\t// script to run\n\t\tString scriptFile = null;\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tString arg = args[i];\n\t\t\tif(arg == null)\n\t\t\t\tcontinue;\n\t\t\telse if(arg.length() == 0)\n\t\t\t\targs[i] = null;\n\t\t\telse if(arg.startsWith(\"-\") && !endOpts)\n\t\t\t{\n\t\t\t\tif(arg.equals(\"--\"))\n\t\t\t\t\tendOpts = true;\n\t\t\t\telse if(arg.equals(\"-usage\"))\n\t\t\t\t{\n\t\t\t\t\tversion();\n\t\t\t\t\tSystem.err.println();\n\t\t\t\t\tusage();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\telse if(arg.equals(\"-version\"))\n\t\t\t\t{\n\t\t\t\t\tversion();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\telse if(arg.equals(\"-nosettings\"))\n\t\t\t\t\tsettingsDirectory = null;\n\t\t\t\telse if(arg.startsWith(\"-settings=\"))\n\t\t\t\t\tsettingsDirectory = arg.substring(10);\n\t\t\t\telse if(arg.startsWith(\"-noserver\"))\n\t\t\t\t\tportFile = null;\n\t\t\t\telse if(arg.equals(\"-server\"))\n\t\t\t\t\tportFile = \"server\";\n\t\t\t\telse if(arg.startsWith(\"-server=\"))\n\t\t\t\t\tportFile = arg.substring(8);\n\t\t\t\telse if(arg.startsWith(\"-background\"))\n\t\t\t\t\tbackground = true;\n\t\t\t\telse if(arg.equals(\"-nogui\"))\n\t\t\t\t\tgui = false;\n\t\t\t\telse if(arg.equals(\"-norestore\"))\n\t\t\t\t\trestore = false;\n\t\t\t\telse if(arg.equals(\"-noplugins\"))\n\t\t\t\t\tnoPlugins = true;\n\t\t\t\telse if(arg.equals(\"-nostartupscripts\"))\n\t\t\t\t\tnoStartupScripts = true;\n\t\t\t\telse if(arg.startsWith(\"-run=\"))\n\t\t\t\t\tscriptFile = arg.substring(5);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Unknown option: \"\n\t\t\t\t\t\t+ arg);\n\t\t\t\t\tusage();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\targs[i] = null;\n\t\t\t}\n\t\t} //}}}\n\n\t\tif(settingsDirectory != null && portFile != null)\n\t\t\tportFile = MiscUtilities.constructPath(settingsDirectory,portFile);\n\t\telse\n\t\t\tportFile = null;\n\n\t\tLog.init(true,level);\n\n\t\t//{{{ Try connecting to another running jEdit instance\n\t\tif(portFile != null && new File(portFile).exists())\n\t\t{\n\t\t\tint port, key;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tBufferedReader in = new BufferedReader(new FileReader(portFile));\n\t\t\t\tString check = in.readLine();\n\t\t\t\tif(!check.equals(\"b\"))\n\t\t\t\t\tthrow new Exception(\"Wrong port file format\");\n\n\t\t\t\tport = Integer.parseInt(in.readLine());\n\t\t\t\tkey = Integer.parseInt(in.readLine());\n\t\t\t\tin.close();\n\n\t\t\t\tSocket socket = new Socket(InetAddress.getByName(\"127.0.0.1\"),port);\n\t\t\t\tDataOutputStream out = new DataOutputStream(\n\t\t\t\t\tsocket.getOutputStream());\n\t\t\t\tout.writeInt(key);\n\n\t\t\t\tString script = makeServerScript(restore,args,scriptFile);\n\n\t\t\t\tout.writeUTF(script);\n\n\t\t\t\tout.close();\n\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\t// ok, this one seems to confuse newbies\n\t\t\t\t// endlessly, so log it as NOTICE, not\n\t\t\t\t// ERROR\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"An error occurred\"\n\t\t\t\t\t+ \" while connecting to the jEdit server instance.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"This probably means that\"\n\t\t\t\t\t+ \" jEdit crashed and/or exited abnormally\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"the last time it was run.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"If you don't\"\n\t\t\t\t\t+ \" know what this means, don't worry.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,e);\n\t\t\t}\n\t\t} //}}}\n\n\t\t// don't show splash screen if there is a file named\n\t\t// 'nosplash' in the settings directory\n\t\tif(!new File(settingsDirectory,\"nosplash\").exists())\n\t\t\tGUIUtilities.showSplashScreen();\n\n\t\t//{{{ Initialize settings directory\n\t\tWriter stream;\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile _settingsDirectory = new File(settingsDirectory);\n\t\t\tif(!_settingsDirectory.exists())\n\t\t\t\t_settingsDirectory.mkdirs();\n\t\t\tFile _macrosDirectory = new File(settingsDirectory,\"macros\");\n\t\t\tif(!_macrosDirectory.exists())\n\t\t\t\t_macrosDirectory.mkdir();\n\n\t\t\tString logPath = MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"activity.log\");\n\n\t\t\tbackupSettingsFile(new File(logPath));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstream = new BufferedWriter(new FileWriter(logPath));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\tstream = null;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstream = null;\n\t\t} //}}}\n\n\t\tLog.setLogWriter(stream);\n\n\t\tLog.log(Log.NOTICE,jEdit.class,\"jEdit version \" + getVersion());\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"Settings directory is \"\n\t\t\t+ settingsDirectory);\n\n\t\t//{{{ Initialize server\n\t\tif(portFile != null)\n\t\t{\n\t\t\tserver = new EditServer(portFile);\n\t\t\tif(!server.isOK())\n\t\t\t\tserver = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(background)\n\t\t\t{\n\t\t\t\tbackground = false;\n\t\t\t\tSystem.err.println(\"You cannot specify both the\"\n\t\t\t\t\t+ \" -background and -noserver switches\");\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Get things rolling\n\t\tinitMisc();\n\t\tinitSystemProperties();\n\t\tif(jEditHome != null)\n\t\t\tinitSiteProperties();\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tBeanShell.init();\n\n\t\tinitUserProperties();\n\t\tinitPLAF();\n\n\t\tif(OperatingSystem.hasJava14()\n\t\t\t&& System.getProperty(\"jedit.nojava14\") == null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tClassLoader loader = jEdit.class.getClassLoader();\n\t\t\t\tClass clazz;\n\t\t\t\tif(loader != null)\n\t\t\t\t\tclazz = loader.loadClass(\"org.gjt.sp.jedit.Java14\");\n\t\t\t\telse\n\t\t\t\t\tclazz = Class.forName(\"org.gjt.sp.jedit.Java14\");\n\t\t\t\tjava.lang.reflect.Method meth = clazz\n\t\t\t\t\t.getMethod(\"init\",new Class[0]);\n\t\t\t\tmeth.invoke(null,new Object[0]);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\n\t\tinitActions();\n\t\tinitDockables();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tVFSManager.init();\n\n\t\tif(!noPlugins)\n\t\t\tinitPlugins();\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile history = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"history\"));\n\t\t\tif(history.exists())\n\t\t\t\thistoryModTime = history.lastModified();\n\t\t\tHistoryModel.loadHistory(history);\n\n\t\t\tFile recent = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"recent.xml\"));\n\t\t\tif(recent.exists())\n\t\t\t\trecentModTime = recent.lastModified();\n\t\t\tBufferHistory.load(recent);\n\t\t}\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\t// Buffer sort\n\t\tsortBuffers = getBooleanProperty(\"sortBuffers\");\n\t\tsortByName = getBooleanProperty(\"sortByName\");\n\n\t\treloadModes();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tSearchAndReplace.load();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\t\t//}}}\n\n\t\t//{{{ Start plugins\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\t((EditPlugin.JAR)jars.elementAt(i)).getClassLoader()\n\t\t\t\t.startAllPlugins();\n\t\t} //}}}\n\n\t\t//{{{ Load macros and run startup scripts, after plugins and settings are loaded\n\t\tMacros.loadMacros();\n\n\t\tif(!noStartupScripts && jEditHome != null)\n\t\t{\n\t\t\tString path = MiscUtilities.constructPath(jEditHome,\"startup\");\n\t\t\tFile file = new File(path);\n\t\t\tif(file.exists())\n\t\t\t\trunStartupScripts(file);\n\t\t}\n\n\t\tif(!noStartupScripts && settingsDirectory != null)\n\t\t{\n\t\t\tString path = MiscUtilities.constructPath(settingsDirectory,\"startup\");\n\t\t\tFile file = new File(path);\n\t\t\tif(!file.exists())\n\t\t\t\tfile.mkdirs();\n\t\t\telse\n\t\t\t\trunStartupScripts(file);\n\t\t} //}}}\n\n\t\t//{{{ Run script specified with -run= parameter\n\t\tif(scriptFile != null)\n\t\t{\n\t\t\tscriptFile = MiscUtilities.constructPath(userDir,scriptFile);\n\t\t\tBeanShell.runScript(null,scriptFile,null,false);\n\t\t} //}}}\n\n\t\t// Must be after plugins are started!!!\n\t\tpropertiesChanged();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\t//{{{ Open files\n\t\tBuffer buffer = openFiles(null,userDir,args);\n\t\tif(buffer != null)\n\t\t{\n\t\t\t// files specified on command line; force initial view\n\t\t\t// to open\n\t\t\tgui = true;\n\t\t}\n\n\t\tString splitConfig = null;\n\n\t\tif(restore && settingsDirectory != null\n\t\t\t&& jEdit.getBooleanProperty(\"restore\")\n\t\t\t&& (bufferCount == 0 || jEdit.getBooleanProperty(\"restore.cli\")))\n\t\t{\n\t\t\tsplitConfig = restoreOpenFiles();\n\t\t}\n\n\t\tif(bufferCount == 0 && gui)\n\t\t\tnewFile(null);\n\t\t//}}}\n\n\t\t//{{{ Create the view and hide the splash screen.\n\t\tfinal Buffer _buffer = buffer;\n\t\tfinal String _splitConfig = splitConfig;\n\t\tfinal boolean _gui = gui;\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tEditBus.send(new EditorStarted(null));\n\n\t\t\t\tif(_gui)\n\t\t\t\t{\n\t\t\t\t\tView view;\n\t\t\t\t\tif(_buffer != null)\n\t\t\t\t\t\tview = newView(null,_buffer);\n\t\t\t\t\telse\n\t\t\t\t\t\tview = newView(null,_splitConfig);\n\t\t\t\t}\n\n\t\t\t\t// Start I/O threads\n\t\t\t\tVFSManager.start();\n\n\t\t\t\t// Start edit server\n\t\t\t\tif(server != null)\n\t\t\t\t\tserver.start();\n\n\t\t\t\tGUIUtilities.hideSplashScreen();\n\n\t\t\t\tLog.log(Log.MESSAGE,jEdit.class,\"Startup \"\n\t\t\t\t\t+ \"complete\");\n\n\t\t\t\t//{{{ Report any plugin errors\n\t\t\t\tif(pluginErrors != null)\n\t\t\t\t{\n\t\t\t\t\tString caption = jEdit.getProperty(\n\t\t\t\t\t\t\"plugin-error.caption\" + (pluginErrors.size() == 1\n\t\t\t\t\t\t? \"-1\" : \"\"),new Integer[] {\n\t\t\t\t\t\tnew Integer(pluginErrors.size()) });\n\n\t\t\t\t\tnew ErrorListDialog(\n\t\t\t\t\t\tjEdit.getFirstView(),\n\t\t\t\t\t\tjEdit.getProperty(\"plugin-error.title\"),\n\t\t\t\t\t\tcaption,pluginErrors,true);\n\t\t\t\t\tpluginErrors.removeAllElements();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "IF", "LOOP", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "THROW_RAISE", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [4, 39], [5, 40], [7, 41], [0, 42], [0, 43], [9, 44], [10, 45], [11, 46], [0, 47], [12, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [0, 54], [0, 55], [13, 56], [0, 57], [0, 58], [0, 59], [0, 60], [15, 61], [0, 62], [0, 63], [0, 64], [0, 65], [16, 66], [0, 67], [0, 68], [17, 69], [0, 70], [0, 71], [0, 72], [18, 73], [20, 74], [21, 75], [0, 76], [22, 77], [23, 78], [0, 79], [32, 80], [34, 81], [37, 82], [4, 83], [39, 84], [40, 85], [40, 86], [6, 87], [41, 88], [8, 89], [44, 90], [10, 91], [10, 92], [10, 93], [45, 94], [11, 95], [11, 96], [11, 97], [46, 98], [48, 99], [53, 100], [54, 101], [13, 102], [13, 103], [13, 104], [13, 105], [56, 106], [14, 107], [15, 108], [61, 109], [61, 110], [16, 111], [66, 112], [17, 113], [17, 114], [69, 115], [70, 116], [71, 117], [18, 118], [18, 119], [18, 120], [18, 121], [18, 122], [18, 123], [73, 124], [20, 125], [74, 126], [74, 127], [21, 128], [21, 129], [75, 130], [75, 131], [76, 132], [22, 133], [22, 134], [77, 135], [77, 136], [23, 137], [23, 138], [24, 139], [25, 140], [26, 141], [27, 142], [28, 143], [29, 144], [30, 145], [79, 146], [31, 147], [32, 148], [32, 149], [80, 150], [81, 151], [81, 152], [35, 153], [82, 154], [83, 155], [84, 156], [5, 157], [85, 158], [85, 159], [86, 160], [86, 161], [7, 162], [89, 163], [9, 164], [9, 165], [91, 166], [94, 167], [95, 168], [98, 169], [12, 170], [100, 171], [101, 172], [13, 173], [102, 174], [13, 175], [104, 176], [108, 177], [108, 178], [108, 179], [108, 180], [108, 181], [109, 182], [109, 183], [114, 184], [17, 185], [116, 186], [117, 187], [117, 188], [18, 189], [118, 190], [18, 191], [120, 192], [122, 193], [128, 194], [128, 195], [128, 196], [128, 197], [128, 198], [128, 199], [128, 200], [130, 201], [131, 202], [133, 203], [134, 204], [135, 205], [136, 206], [137, 207], [137, 208], [137, 209], [23, 210], [140, 211], [146, 212], [146, 213], [148, 214], [34, 215], [34, 216], [34, 217], [152, 218], [153, 219], [154, 220], [154, 221], [154, 222], [157, 223], [158, 224], [159, 225], [160, 226], [161, 227], [162, 228], [164, 229], [164, 230], [164, 231], [165, 232], [91, 233], [91, 234], [92, 235], [93, 236], [95, 237], [96, 238], [97, 239], [12, 240], [102, 241], [103, 242], [104, 243], [105, 244], [108, 245], [179, 246], [183, 247], [114, 248], [185, 249], [189, 250], [118, 251], [191, 252], [119, 253], [120, 254], [121, 255], [122, 256], [123, 257], [128, 258], [128, 259], [128, 260], [128, 261], [128, 262], [128, 263], [128, 264], [198, 265], [198, 266], [207, 267], [207, 268], [209, 269], [213, 270], [214, 271], [214, 272], [215, 273], [216, 274], [217, 275], [220, 276], [154, 277], [154, 278], [221, 279], [154, 280], [154, 281], [227, 282], [236, 283], [239, 284], [241, 285], [242, 286], [243, 287], [244, 288], [177, 289], [177, 290], [245, 291], [178, 292], [179, 293], [179, 294], [246, 295], [181, 296], [113, 297], [113, 298], [248, 299], [190, 300], [190, 301], [251, 302], [253, 303], [255, 304], [194, 305], [194, 306], [194, 307], [194, 308], [194, 309], [258, 310], [195, 311], [196, 312], [197, 313], [263, 314], [264, 315], [265, 316], [266, 317], [199, 318], [200, 319], [267, 320], [207, 321], [268, 322], [268, 323], [148, 324], [148, 325], [271, 326], [272, 327], [272, 328], [275, 329], [275, 330], [220, 331], [276, 332], [277, 333], [221, 334], [279, 335], [222, 336], [222, 337], [281, 338], [286, 339], [288, 340], [289, 341], [245, 342], [292, 343], [293, 344], [294, 345], [297, 346], [298, 347], [300, 348], [302, 349], [306, 350], [307, 351], [308, 352], [309, 353], [312, 354], [313, 355], [314, 356], [315, 357], [316, 358], [319, 359], [267, 360], [320, 361], [321, 362], [324, 363], [325, 364], [326, 365], [149, 366], [330, 367], [220, 368], [220, 369], [333, 370], [333, 371], [336, 372], [338, 373], [292, 374], [344, 375], [345, 376], [346, 377], [346, 378], [350, 379], [350, 380], [352, 381], [352, 382], [353, 383], [353, 384], [355, 385], [267, 386], [360, 387], [360, 388], [361, 389], [369, 390], [369, 391], [369, 392], [331, 393], [336, 394], [336, 395], [372, 396], [386, 397], [387, 398], [387, 399], [360, 400], [388, 401], [324, 402], [391, 403], [393, 404], [394, 405], [395, 406], [398, 407], [398, 408], [399, 409], [400, 410], [404, 411], [404, 412], [405, 413], [406, 414], [407, 415], [407, 416], [408, 417], [387, 418], [387, 419], [387, 420], [387, 421], [393, 422], [411, 423], [411, 424], [411, 425], [415, 426], [415, 427], [407, 428], [416, 429], [398, 430], [398, 431], [418, 432], [422, 433], [425, 434], [425, 435], [426, 436], [426, 437], [415, 438], [427, 439], [428, 440], [430, 441], [436, 442], [436, 443], [426, 444], [437, 445], [438, 446], [442, 447], [442, 448], [436, 449], [443, 450], [444, 451], [446, 452], [447, 453], [447, 454], [442, 455], [448, 456], [449, 457], [453, 458], [453, 459], [447, 460], [454, 461], [455, 462], [458, 463], [458, 464], [453, 465], [459, 466], [460, 467], [462, 468], [463, 469], [463, 470], [458, 471], [464, 472], [465, 473], [469, 474], [469, 475], [463, 476], [470, 477], [471, 478], [474, 479], [469, 480], [475, 481], [476, 482], [474, 483], [479, 484], [480, 485], [474, 486], [474, 487], [474, 488], [483, 489], [486, 490], [488, 491], [489, 492], [491, 493], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 4], [40, 5], [41, 7], [42, 0], [43, 0], [44, 9], [45, 10], [46, 11], [47, 0], [48, 12], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 0], [55, 0], [56, 13], [57, 0], [58, 0], [59, 0], [60, 0], [61, 15], [62, 0], [63, 0], [64, 0], [65, 0], [66, 16], [67, 0], [68, 0], [69, 17], [70, 0], [71, 0], [72, 0], [73, 18], [74, 20], [75, 21], [76, 0], [77, 22], [78, 23], [79, 0], [80, 32], [81, 34], [82, 37], [83, 4], [84, 39], [85, 40], [86, 40], [87, 6], [88, 41], [89, 8], [90, 44], [91, 10], [92, 10], [93, 10], [94, 45], [95, 11], [96, 11], [97, 11], [98, 46], [99, 48], [100, 53], [101, 54], [102, 13], [103, 13], [104, 13], [105, 13], [106, 56], [107, 14], [108, 15], [109, 61], [110, 61], [111, 16], [112, 66], [113, 17], [114, 17], [115, 69], [116, 70], [117, 71], [118, 18], [119, 18], [120, 18], [121, 18], [122, 18], [123, 18], [124, 73], [125, 20], [126, 74], [127, 74], [128, 21], [129, 21], [130, 75], [131, 75], [132, 76], [133, 22], [134, 22], [135, 77], [136, 77], [137, 23], [138, 23], [139, 24], [140, 25], [141, 26], [142, 27], [143, 28], [144, 29], [145, 30], [146, 79], [147, 31], [148, 32], [149, 32], [150, 80], [151, 81], [152, 81], [153, 35], [154, 82], [155, 83], [156, 84], [157, 5], [158, 85], [159, 85], [160, 86], [161, 86], [162, 7], [163, 89], [164, 9], [165, 9], [166, 91], [167, 94], [168, 95], [169, 98], [170, 12], [171, 100], [172, 101], [173, 13], [174, 102], [175, 13], [176, 104], [177, 108], [178, 108], [179, 108], [180, 108], [181, 108], [182, 109], [183, 109], [184, 114], [185, 17], [186, 116], [187, 117], [188, 117], [189, 18], [190, 118], [191, 18], [192, 120], [193, 122], [194, 128], [195, 128], [196, 128], [197, 128], [198, 128], [199, 128], [200, 128], [201, 130], [202, 131], [203, 133], [204, 134], [205, 135], [206, 136], [207, 137], [208, 137], [209, 137], [210, 23], [211, 140], [212, 146], [213, 146], [214, 148], [215, 34], [216, 34], [217, 34], [218, 152], [219, 153], [220, 154], [221, 154], [222, 154], [223, 157], [224, 158], [225, 159], [226, 160], [227, 161], [228, 162], [229, 164], [230, 164], [231, 164], [232, 165], [233, 91], [234, 91], [235, 92], [236, 93], [237, 95], [238, 96], [239, 97], [240, 12], [241, 102], [242, 103], [243, 104], [244, 105], [245, 108], [246, 179], [247, 183], [248, 114], [249, 185], [250, 189], [251, 118], [252, 191], [253, 119], [254, 120], [255, 121], [256, 122], [257, 123], [258, 128], [259, 128], [260, 128], [261, 128], [262, 128], [263, 128], [264, 128], [265, 198], [266, 198], [267, 207], [268, 207], [269, 209], [270, 213], [271, 214], [272, 214], [273, 215], [274, 216], [275, 217], [276, 220], [277, 154], [278, 154], [279, 221], [280, 154], [281, 154], [282, 227], [283, 236], [284, 239], [285, 241], [286, 242], [287, 243], [288, 244], [289, 177], [290, 177], [291, 245], [292, 178], [293, 179], [294, 179], [295, 246], [296, 181], [297, 113], [298, 113], [299, 248], [300, 190], [301, 190], [302, 251], [303, 253], [304, 255], [305, 194], [306, 194], [307, 194], [308, 194], [309, 194], [310, 258], [311, 195], [312, 196], [313, 197], [314, 263], [315, 264], [316, 265], [317, 266], [318, 199], [319, 200], [320, 267], [321, 207], [322, 268], [323, 268], [324, 148], [325, 148], [326, 271], [327, 272], [328, 272], [329, 275], [330, 275], [331, 220], [332, 276], [333, 277], [334, 221], [335, 279], [336, 222], [337, 222], [338, 281], [339, 286], [340, 288], [341, 289], [342, 245], [343, 292], [344, 293], [345, 294], [346, 297], [347, 298], [348, 300], [349, 302], [350, 306], [351, 307], [352, 308], [353, 309], [354, 312], [355, 313], [356, 314], [357, 315], [358, 316], [359, 319], [360, 267], [361, 320], [362, 321], [363, 324], [364, 325], [365, 326], [366, 149], [367, 330], [368, 220], [369, 220], [370, 333], [371, 333], [372, 336], [373, 338], [374, 292], [375, 344], [376, 345], [377, 346], [378, 346], [379, 350], [380, 350], [381, 352], [382, 352], [383, 353], [384, 353], [385, 355], [386, 267], [387, 360], [388, 360], [389, 361], [390, 369], [391, 369], [392, 369], [393, 331], [394, 336], [395, 336], [396, 372], [397, 386], [398, 387], [399, 387], [400, 360], [401, 388], [402, 324], [403, 391], [404, 393], [405, 394], [406, 395], [407, 398], [408, 398], [409, 399], [410, 400], [411, 404], [412, 404], [413, 405], [414, 406], [415, 407], [416, 407], [417, 408], [418, 387], [419, 387], [420, 387], [421, 387], [422, 393], [423, 411], [424, 411], [425, 411], [426, 415], [427, 415], [428, 407], [429, 416], [430, 398], [431, 398], [432, 418], [433, 422], [434, 425], [435, 425], [436, 426], [437, 426], [438, 415], [439, 427], [440, 428], [441, 430], [442, 436], [443, 436], [444, 426], [445, 437], [446, 438], [447, 442], [448, 442], [449, 436], [450, 443], [451, 444], [452, 446], [453, 447], [454, 447], [455, 442], [456, 448], [457, 449], [458, 453], [459, 453], [460, 447], [461, 454], [462, 455], [463, 458], [464, 458], [465, 453], [466, 459], [467, 460], [468, 462], [469, 463], [470, 463], [471, 458], [472, 464], [473, 465], [474, 469], [475, 469], [476, 463], [477, 470], [478, 471], [479, 474], [480, 469], [481, 475], [482, 476], [483, 474], [484, 479], [485, 480], [486, 474], [487, 474], [488, 474], [489, 483], [490, 486], [491, 488], [492, 489], [493, 491], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493]]}, {"function_name": "getProperties", "code": "\tpublic static final Properties getProperties()\n\t{\n\t\treturn props;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProperty", "code": "\tpublic static final String getProperty(String name)\n\t{\n\t\treturn props.getProperty(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getProperty", "code": "\tpublic static final String getProperty(String name, String def)\n\t{\n\t\treturn props.getProperty(name,def);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getProperty", "code": "\tpublic static final String getProperty(String name, Object[] args)\n\t{\n\t\tif(name == null)\n\t\t\treturn null;\n\t\tif(args == null)\n\t\t\treturn props.getProperty(name);\n\t\telse\n\t\t{\n\t\t\tString value = props.getProperty(name);\n\t\t\tif(value == null)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn MessageFormat.format(value,args);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [1, 9], [1, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [9, 16], [9, 17], [15, 18], [16, 19], [17, 20], [10, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 1], [10, 1], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 9], [17, 9], [18, 15], [19, 16], [20, 17], [21, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getBooleanProperty", "code": "\tpublic static final boolean getBooleanProperty(String name)\n\t{\n\t\treturn getBooleanProperty(name,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBooleanProperty", "code": "\tpublic static final boolean getBooleanProperty(String name, boolean def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse if(value.equals(\"true\") || value.equals(\"yes\")\n\t\t\t|| value.equals(\"on\"))\n\t\t\treturn true;\n\t\telse if(value.equals(\"false\") || value.equals(\"no\")\n\t\t\t|| value.equals(\"off\"))\n\t\t\treturn false;\n\t\telse\n\t\t\treturn def;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [5, 10], [7, 11], [2, 12], [8, 13], [8, 14], [8, 15], [9, 16], [10, 17], [10, 18], [14, 19], [15, 20], [15, 21], [17, 22], [18, 23], [18, 24], [20, 25], [21, 26], [21, 27], [23, 28], [24, 29], [26, 30], [27, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 5], [11, 7], [12, 2], [13, 8], [14, 8], [15, 8], [16, 9], [17, 10], [18, 10], [19, 14], [20, 15], [21, 15], [22, 17], [23, 18], [24, 18], [25, 20], [26, 21], [27, 21], [28, 23], [29, 24], [30, 26], [31, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getIntegerProperty", "code": "\tpublic static final int getIntegerProperty(String name, int def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Integer.parseInt(value);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [2, 9], [7, 10], [7, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 2], [10, 7], [11, 7], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getFontProperty", "code": "\tpublic static final Font getFontProperty(String name)\n\t{\n\t\treturn getFontProperty(name,null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFontProperty", "code": "\tpublic static final Font getFontProperty(String name, Font def)\n\t{\n\t\tString family = getProperty(name);\n\t\tString sizeString = getProperty(name + \"size\");\n\t\tString styleString = getProperty(name + \"style\");\n\n\t\tif(family == null || sizeString == null || styleString == null)\n\t\t\treturn def;\n\t\telse\n\t\t{\n\t\t\tint size, style;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tsize = Integer.parseInt(sizeString);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstyle = Integer.parseInt(styleString);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\n\t\t\treturn new Font(family,style,size);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "TRY", "TRY", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CATCH", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [8, 13], [8, 14], [2, 15], [3, 16], [4, 17], [9, 18], [10, 19], [11, 20], [13, 21], [14, 22], [14, 23], [15, 24], [16, 25], [19, 26], [10, 27], [20, 28], [11, 29], [22, 30], [23, 31], [24, 32], [25, 33], [27, 34], [29, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 8], [14, 8], [15, 2], [16, 3], [17, 4], [18, 9], [19, 10], [20, 11], [21, 13], [22, 14], [23, 14], [24, 15], [25, 16], [26, 19], [27, 10], [28, 20], [29, 11], [30, 22], [31, 23], [32, 24], [33, 25], [34, 27], [35, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getColorProperty", "code": "\tpublic static Color getColorProperty(String name)\n\t{\n\t\treturn getColorProperty(name,Color.black);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getColorProperty", "code": "\tpublic static Color getColorProperty(String name, Color def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t\treturn GUIUtilities.parseColor(value,def);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [7, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 7], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setColorProperty", "code": "\tpublic static void setColorProperty(String name, Color value)\n\t{\n\t\tsetProperty(name,GUIUtilities.getColorHexString(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setProperty", "code": "\tpublic static final void setProperty(String name, String value)\n\t{\n\t\t/* if value is null:\n\t\t * - if default is null, unset user prop\n\t\t * - else set user prop to \"\"\n\t\t * else\n\t\t * - if default equals value, ignore\n\t\t * - if default doesn't equal value, set user\n\t\t */\n\t\tif(value == null || value.length() == 0)\n\t\t{\n\t\t\tString prop = (String)defaultProps.get(name);\n\t\t\tif(prop == null || prop.length() == 0)\n\t\t\t\tprops.remove(name);\n\t\t\telse\n\t\t\t\tprops.put(name,\"\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString prop = (String)defaultProps.get(name);\n\t\t\tif(value.equals(prop))\n\t\t\t\tprops.remove(name);\n\t\t\telse\n\t\t\t\tprops.put(name,value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [4, 10], [5, 11], [7, 12], [9, 13], [9, 14], [10, 15], [5, 16], [5, 17], [7, 18], [7, 19], [12, 20], [12, 21], [6, 22], [18, 23], [20, 24], [20, 25], [21, 26], [8, 27], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 4], [11, 5], [12, 7], [13, 9], [14, 9], [15, 10], [16, 5], [17, 5], [18, 7], [19, 7], [20, 12], [21, 12], [22, 6], [23, 18], [24, 20], [25, 20], [26, 21], [27, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "setTemporaryProperty", "code": "\tpublic static final void setTemporaryProperty(String name, String value)\n\t{\n\t\tprops.remove(name);\n\t\tdefaultProps.put(name,value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setBooleanProperty", "code": "\tpublic static final void setBooleanProperty(String name, boolean value)\n\t{\n\t\tsetProperty(name,value ? \"true\" : \"false\");", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setIntegerProperty", "code": "\tpublic static final void setIntegerProperty(String name, int value)\n\t{\n\t\tsetProperty(name,String.valueOf(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setFontProperty", "code": "\tpublic static final void setFontProperty(String name, Font value)\n\t{\n\t\tsetProperty(name,value.getFamily());\n\t\tsetIntegerProperty(name + \"size\",value.getSize());\n\t\tsetIntegerProperty(name + \"style\",value.getStyle());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [4, 8], [4, 9], [5, 10], [7, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 4], [9, 4], [10, 5], [11, 7], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "unsetProperty", "code": "\tpublic static final void unsetProperty(String name)\n\t{\n\t\tif(defaultProps.get(name) != null)\n\t\t\tprops.put(name,\"\");\n\t\telse\n\t\t\tprops.remove(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "resetProperty", "code": "\tpublic static final void resetProperty(String name)\n\t{\n\t\tprops.remove(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "propertiesChanged", "code": "\tpublic static void propertiesChanged()\n\t{\n\t\tinitKeyBindings();\n\n\t\tAutosave.setInterval(getIntegerProperty(\"autosave\",30));\n\n\t\tsaveCaret = getBooleanProperty(\"saveCaret\");\n\n\t\t//theme = new JEditMetalTheme();\n\t\t//theme.propertiesChanged();\n\t\t//MetalLookAndFeel.setCurrentTheme(theme);\n\n\t\tUIDefaults defaults = UIManager.getDefaults();\n\n\t\t// give all text areas the same font\n\t\tFont font = getFontProperty(\"view.font\");\n\n\t\t//defaults.put(\"TextField.font\",font);\n\t\tdefaults.put(\"TextArea.font\",font);\n\t\tdefaults.put(\"TextPane.font\",font);\n\n\t\tinitProxy();\n\n\t\tEditBus.send(new PropertiesChanged(null));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [5, 11], [6, 12], [1, 13], [2, 14], [7, 15], [8, 16], [10, 17], [13, 18], [15, 19], [16, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 5], [12, 6], [13, 1], [14, 2], [15, 7], [16, 8], [17, 10], [18, 13], [19, 15], [20, 16], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getNotLoadedPluginJARs", "code": "\tpublic static String[] getNotLoadedPluginJARs()\n\t{\n\t\tVector returnValue = new Vector();\n\n\t\tif(jEditHome != null)\n\t\t{\n\t\t\tString systemPluginDir = MiscUtilities\n\t\t\t\t.constructPath(jEditHome,\"jars\");\n\n\t\t\tString[] list = new File(systemPluginDir).list();\n\t\t\tif(list != null)\n\t\t\t\tgetNotLoadedPluginJARs(returnValue,systemPluginDir,list);\n\t\t}\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tString userPluginDir = MiscUtilities\n\t\t\t\t.constructPath(settingsDirectory,\"jars\");\n\t\t\tString[] list = new File(userPluginDir).list();\n\t\t\tif(list != null)\n\t\t\t{\n\t\t\t\tgetNotLoadedPluginJARs(returnValue,\n\t\t\t\t\tuserPluginDir,list);\n\t\t\t}\n\t\t}\n\n\t\tString[] _returnValue = new String[returnValue.size()];\n\t\treturnValue.copyInto(_returnValue);\n\t\treturn _returnValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [3, 9], [3, 10], [3, 11], [7, 12], [4, 13], [4, 14], [4, 15], [8, 16], [5, 17], [2, 18], [9, 19], [13, 20], [19, 21], [10, 22], [11, 23], [13, 24], [20, 25], [14, 26], [15, 27], [9, 28], [22, 29], [23, 30], [26, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 3], [10, 3], [11, 3], [12, 7], [13, 4], [14, 4], [15, 4], [16, 8], [17, 5], [18, 2], [19, 9], [20, 13], [21, 19], [22, 10], [23, 11], [24, 13], [25, 20], [26, 14], [27, 15], [28, 9], [29, 22], [30, 23], [31, 26], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "getPlugin", "code": "\tpublic static EditPlugin getPlugin(String name)\n\t{\n\t\tEditPlugin[] plugins = getPlugins();\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tif(plugins[i].getClassName().equals(name))\n\t\t\t\treturn plugins[i];\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [7, 9], [2, 10], [7, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 7], [10, 2], [11, 7], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getPlugins", "code": "\tpublic static EditPlugin[] getPlugins()\n\t{\n\t\tVector vector = new Vector();\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\t((EditPlugin.JAR)jars.elementAt(i)).getPlugins(vector);\n\t\t}\n\n\t\tEditPlugin[] array = new EditPlugin[vector.size()];\n\t\tvector.copyInto(array);\n\t\treturn array;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [6, 7], [4, 8], [2, 9], [3, 10], [3, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 6], [8, 4], [9, 2], [10, 3], [11, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getPluginJARs", "code": "\tpublic static EditPlugin.JAR[] getPluginJARs()\n\t{\n\t\tEditPlugin.JAR[] array = new EditPlugin.JAR[jars.size()];\n\t\tjars.copyInto(array);\n\t\treturn array;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getPluginJAR", "code": "\tpublic static EditPlugin.JAR getPluginJAR(String path)\n\t{\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\tEditPlugin.JAR jar = (EditPlugin.JAR)jars.elementAt(i);\n\t\t\tif(jar.getPath().equals(path))\n\t\t\t\treturn jar;\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [10, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 10], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "addPluginJAR", "code": "\tpublic static void addPluginJAR(EditPlugin.JAR plugin)\n\t{\n\t\taddActionSet(plugin.getActions());\n\t\tjars.addElement(plugin);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addActionSet", "code": "\tpublic static void addActionSet(ActionSet actionSet)\n\t{\n\t\tactionSets.addElement(actionSet);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActionSets", "code": "\tpublic static ActionSet[] getActionSets()\n\t{\n\t\tActionSet[] retVal = new ActionSet[actionSets.size()];\n\t\tactionSets.copyInto(retVal);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAction", "code": "\tpublic static EditAction getAction(String name)\n\t{\n\t\tfor(int i = 0; i < actionSets.size(); i++)\n\t\t{\n\t\t\tEditAction action = ((ActionSet)actionSets.elementAt(i))\n\t\t\t\t.getAction(name);\n\t\t\tif(action != null)\n\t\t\t\treturn action;\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [10, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 10], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getActionSetForAction", "code": "\tpublic static ActionSet getActionSetForAction(EditAction action)\n\t{\n\t\tfor(int i = 0; i < actionSets.size(); i++)\n\t\t{\n\t\t\tActionSet set = (ActionSet)actionSets.elementAt(i);\n\t\t\tif(set.contains(action))\n\t\t\t\treturn set;\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getActions", "code": "\tpublic static EditAction[] getActions()\n\t{\n\t\tVector vec = new Vector();\n\t\tfor(int i = 0; i < actionSets.size(); i++)\n\t\t\t((ActionSet)actionSets.elementAt(i)).getActions(vec);\n\n\t\tEditAction[] retVal = new EditAction[vec.size()];\n\t\tvec.copyInto(retVal);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [6, 7], [4, 8], [2, 9], [3, 10], [3, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 6], [8, 4], [9, 2], [10, 3], [11, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "reloadModes", "code": "\tpublic static void reloadModes()\n\t{\n\t\t/* Try to guess the eventual size to avoid unnecessary\n\t\t * copying */\n\t\tmodes = new Vector(50);\n\n\t\t//{{{ Load the global catalog\n\t\tif(jEditHome == null)\n\t\t\tloadModeCatalog(\"/modes/catalog\",true);\n\t\telse\n\t\t{\n\t\t\tloadModeCatalog(MiscUtilities.constructPath(jEditHome,\n\t\t\t\t\"modes\",\"catalog\"),false);\n\t\t} //}}}\n\n\t\t//{{{ Load user catalog\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile userModeDir = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"modes\"));\n\t\t\tif(!userModeDir.exists())\n\t\t\t\tuserModeDir.mkdirs();\n\n\t\t\tFile userCatalog = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"modes\",\"catalog\"));\n\t\t\tif(!userCatalog.exists())\n\t\t\t{\n\t\t\t\t// create dummy catalog\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFileWriter out = new FileWriter(userCatalog);\n\t\t\t\t\tout.write(jEdit.getProperty(\"defaultCatalog\"));\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tloadModeCatalog(userCatalog.getPath(),false);\n\t\t} //}}}\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\t// This reloads the token marker and sends a message\n\t\t\t// which causes edit panes to repaint their text areas\n\t\t\tbuffer.setMode();\n\n\t\t\tbuffer = buffer.next;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "TRY", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [0, 8], [5, 9], [3, 10], [3, 11], [3, 12], [3, 13], [6, 14], [4, 15], [7, 16], [8, 17], [1, 18], [1, 19], [3, 20], [10, 21], [12, 22], [4, 23], [15, 24], [15, 25], [17, 26], [20, 27], [20, 28], [10, 29], [11, 30], [12, 31], [13, 32], [23, 33], [23, 34], [29, 35], [29, 36], [30, 37], [32, 38], [34, 39], [34, 40], [29, 41], [29, 42], [37, 43], [37, 44], [38, 45], [35, 46], [42, 47], [36, 48], [47, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 0], [9, 5], [10, 3], [11, 3], [12, 3], [13, 3], [14, 6], [15, 4], [16, 7], [17, 8], [18, 1], [19, 1], [20, 3], [21, 10], [22, 12], [23, 4], [24, 15], [25, 15], [26, 17], [27, 20], [28, 20], [29, 10], [30, 11], [31, 12], [32, 13], [33, 23], [34, 23], [35, 29], [36, 29], [37, 30], [38, 32], [39, 34], [40, 34], [41, 29], [42, 29], [43, 37], [44, 37], [45, 38], [46, 35], [47, 42], [48, 36], [49, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "getMode", "code": "\tpublic static Mode getMode(String name)\n\t{\n\t\tfor(int i = 0; i < modes.size(); i++)\n\t\t{\n\t\t\tMode mode = (Mode)modes.elementAt(i);\n\t\t\tif(mode.getName().equals(name))\n\t\t\t\treturn mode;\n\t\t}\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [10, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 10], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getModes", "code": "\tpublic static Mode[] getModes()\n\t{\n\t\tMode[] array = new Mode[modes.size()];\n\t\tmodes.copyInto(array);\n\t\treturn array;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "showOpenFileDialog", "code": "\tpublic static void showOpenFileDialog(View view)\n\t{\n\t\tshowOpenFileDialog(view,null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "showOpenFileWithOtherEncodingDialog", "code": "\tpublic static void showOpenFileWithOtherEncodingDialog(View view)\n\t{\n\t\tString encoding = GUIUtilities.input(view,\"encoding-prompt\",null,\n\t\t\tjEdit.getProperty(\"buffer.encoding\",\n\t\t\tSystem.getProperty(\"file.encoding\")));\n\t\tif(encoding == null)\n\t\t\treturn;\n\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t{\n\t\t\trecorder.record(\"props = new Hashtable();\");\n\t\t\trecorder.record(\"props.put(\\\"encoding\\\",\\\"\" + encoding + \"\\\");\");\n\t\t\trecorder.record(\"jEdit.showOpenFileDialog(view,props);\");\n\t\t}\n\n\t\tHashtable props = new Hashtable();\n\t\tprops.put(Buffer.ENCODING,encoding);\n\t\tshowOpenFileDialog(view,props);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [4, 11], [1, 12], [9, 13], [3, 14], [11, 15], [5, 16], [2, 17], [2, 18], [2, 19], [16, 20], [16, 21], [16, 22], [17, 23], [18, 24], [19, 25], [20, 26], [20, 27], [24, 28], [24, 29], [26, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 4], [12, 1], [13, 9], [14, 3], [15, 11], [16, 5], [17, 2], [18, 2], [19, 2], [20, 16], [21, 16], [22, 16], [23, 17], [24, 18], [25, 19], [26, 20], [27, 20], [28, 24], [29, 24], [30, 26], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "showOpenFileDialog", "code": "\tpublic static void showOpenFileDialog(View view, Hashtable props)\n\t{\n\t\tString[] files = GUIUtilities.showVFSFileDialog(view,null,\n\t\t\tVFSBrowser.OPEN_DIALOG,true);\n\n\t\tBuffer buffer = null;\n\t\tif(files != null)\n\t\t{\n\t\t\tfor(int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tBuffer newBuffer = openFile(null,null,files[i],\n\t\t\t\t\tfalse,props);\n\t\t\t\tif(newBuffer != null)\n\t\t\t\t\tbuffer = newBuffer;\n\t\t\t}\n\t\t}\n\n\t\tif(buffer != null)\n\t\t\tview.setBuffer(buffer);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [7, 10], [2, 11], [8, 12], [3, 13], [4, 14], [11, 15], [14, 16], [14, 17], [11, 18], [11, 19], [18, 20], [11, 21], [18, 22], [20, 23], [19, 24], [24, 25], [24, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 7], [11, 2], [12, 8], [13, 3], [14, 4], [15, 11], [16, 14], [17, 14], [18, 11], [19, 11], [20, 18], [21, 11], [22, 18], [23, 20], [24, 19], [25, 24], [26, 24], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "restoreOpenFiles", "code": "\tpublic static String restoreOpenFiles()\n\t{\n\t\tif(settingsDirectory == null)\n\t\t\treturn null;\n\n\t\tFile session = new File(MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"session\"));\n\n\t\tif(!session.exists())\n\t\t\treturn null;\n\n\t\tString splitConfig = null;\n\n\t\ttry\n\t\t{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\n\t\t\t\tsession));\n\n\t\t\tString line;\n\t\t\twhile((line = in.readLine()) != null)\n\t\t\t{\n\t\t\t\tif(line.startsWith(\"splits\\t\"))\n\t\t\t\t\tsplitConfig = line.substring(7);\n\t\t\t\telse\n\t\t\t\t\topenFile(null,line);\n\t\t\t}\n\n\t\t\tin.close();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,\"Error while loading \" + session);\n\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t}\n\n\t\treturn splitConfig;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "CALL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [2, 10], [4, 11], [4, 12], [6, 13], [6, 14], [2, 15], [8, 16], [3, 17], [11, 18], [5, 19], [13, 20], [14, 21], [7, 22], [7, 23], [8, 24], [16, 25], [16, 26], [10, 27], [19, 28], [23, 29], [24, 30], [26, 31], [27, 32], [28, 33], [29, 34], [24, 35], [24, 36], [30, 37], [35, 38], [36, 39], [39, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 2], [11, 4], [12, 4], [13, 6], [14, 6], [15, 2], [16, 8], [17, 3], [18, 11], [19, 5], [20, 13], [21, 14], [22, 7], [23, 7], [24, 8], [25, 16], [26, 16], [27, 10], [28, 19], [29, 23], [30, 24], [31, 26], [32, 27], [33, 28], [34, 29], [35, 24], [36, 24], [37, 30], [38, 35], [39, 36], [40, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "saveOpenFiles", "code": "\tpublic static void saveOpenFiles(View view)\n\t{\n\t\tif(settingsDirectory == null)\n\t\t\treturn;\n\n\t\tview.getEditPane().saveCaretInfo();\n\t\tBuffer current = view.getBuffer();\n\n\t\tFile session = new File(MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"session\"));\n\n\t\t// maybe not, since it's autosaved now\n\t\t//backupSettingsFile(session);\n\n\t\ttry\n\t\t{\n\t\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\t\tBufferedWriter out = new BufferedWriter(new FileWriter(\n\t\t\t\tsession));\n\t\t\tBuffer buffer = buffersFirst;\n\t\t\twhile(buffer != null)\n\t\t\t{\n\t\t\t\tif(!buffer.isUntitled())\n\t\t\t\t{\n\t\t\t\t\tout.write(buffer.getPath());\n\t\t\t\t\tout.write(lineSep);\n\t\t\t\t}\n\n\t\t\t\tbuffer = buffer.next;\n\t\t\t}\n\n\t\t\tout.write(\"splits\\t\");\n\t\t\tout.write(view.getSplitConfig());\n\t\t\tout.write(lineSep);\n\n\t\t\tout.close();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,\"Error while saving \" + session);\n\t\t\tLog.log(Log.ERROR,jEdit.class,io);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [0, 11], [4, 12], [4, 13], [1, 14], [1, 15], [1, 16], [1, 17], [7, 18], [2, 19], [3, 20], [11, 21], [13, 22], [6, 23], [6, 24], [16, 25], [17, 26], [7, 27], [18, 28], [9, 29], [10, 30], [19, 31], [24, 32], [7, 33], [27, 34], [29, 35], [30, 36], [31, 37], [32, 38], [27, 39], [27, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 0], [12, 4], [13, 4], [14, 1], [15, 1], [16, 1], [17, 1], [18, 7], [19, 2], [20, 3], [21, 11], [22, 13], [23, 6], [24, 6], [25, 16], [26, 17], [27, 7], [28, 18], [29, 9], [30, 10], [31, 19], [32, 24], [33, 7], [34, 27], [35, 29], [36, 30], [37, 31], [38, 32], [39, 27], [40, 27], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "openFiles", "code": "\tpublic static Buffer openFiles(View view, String parent, String[] args)\n\t{\n\t\tBuffer retVal = null;\n\t\tBuffer lastBuffer = null;\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tString arg = args[i];\n\t\t\tif(arg == null)\n\t\t\t\tcontinue;\n\t\t\telse if(arg.startsWith(\"+line:\") || arg.startsWith(\"+marker:\"))\n\t\t\t{\n\t\t\t\tif(lastBuffer != null)\n\t\t\t\t\tgotoMarker(view,lastBuffer,arg);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlastBuffer = openFile(null,parent,arg,false,null);\n\n\t\t\tif(retVal == null && lastBuffer != null)\n\t\t\t\tretVal = lastBuffer;\n\t\t}\n\n\t\tif(view != null && retVal != null)\n\t\t\tview.setBuffer(retVal);\n\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [2, 11], [9, 12], [9, 13], [3, 14], [3, 15], [3, 16], [4, 17], [5, 18], [12, 19], [13, 20], [14, 21], [3, 22], [15, 23], [15, 24], [15, 25], [3, 26], [14, 27], [21, 28], [21, 29], [22, 30], [23, 31], [25, 32], [28, 33], [29, 34], [30, 35], [30, 36], [30, 37], [23, 38], [23, 39], [31, 40], [31, 41], [39, 42], [40, 43], [41, 44], [39, 45], [42, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 2], [12, 9], [13, 9], [14, 3], [15, 3], [16, 3], [17, 4], [18, 5], [19, 12], [20, 13], [21, 14], [22, 3], [23, 15], [24, 15], [25, 15], [26, 3], [27, 14], [28, 21], [29, 21], [30, 22], [31, 23], [32, 25], [33, 28], [34, 29], [35, 30], [36, 30], [37, 30], [38, 23], [39, 23], [40, 31], [41, 31], [42, 39], [43, 40], [44, 41], [45, 39], [46, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "openFile", "code": "\tpublic static Buffer openFile(View view, String path)\n\t{\n\t\treturn openFile(view,null,path,false,new Hashtable());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "openFile", "code": "\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean readOnly, boolean newFile)\n\t{\n\t\treturn openFile(view,parent,path,newFile,new Hashtable());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "openFile", "code": "\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean readOnly, boolean newFile,\n\t\tHashtable props)\n\t{\n\t\treturn openFile(view,parent,path,newFile,props);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "openFile", "code": "\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean newFile, Hashtable props)\n\t{\n\t\tif(view != null && parent == null)\n\t\t\tparent = MiscUtilities.getParentOfPath(view.getBuffer().getPath());\n\n\t\tif(MiscUtilities.isURL(path))\n\t\t{\n\t\t\tif(MiscUtilities.getProtocolOfURL(path).equals(\"file\"))\n\t\t\t\tpath = path.substring(5);\n\t\t}\n\n\t\tpath = MiscUtilities.constructPath(parent,path);\n\n\t\tif(!MiscUtilities.isURL(path))\n\t\t\tpath = MiscUtilities.canonPath(path);\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer buffer = getBuffer(path);\n\t\t\tif(buffer != null)\n\t\t\t{\n\t\t\t\tif(view != null)\n\t\t\t\t\tview.setBuffer(buffer);\n\n\t\t\t\treturn buffer;\n\t\t\t}\n\n\t\t\tif(props == null)\n\t\t\t\tprops = new Hashtable();\n\n\t\t\tBufferHistory.Entry entry = BufferHistory.getEntry(path);\n\n\t\t\tif(entry != null && saveCaret && props.get(Buffer.CARET) == null)\n\t\t\t{\n\t\t\t\tint caret = entry.caret;\n\t\t\t\tprops.put(Buffer.CARET,new Integer(entry.caret));\n\t\t\t\tif(entry.selection != null)\n\t\t\t\t{\n\t\t\t\t\t// getSelection() converts from string to\n\t\t\t\t\t// Selection[]\n\t\t\t\t\tprops.put(Buffer.SELECTION,entry.getSelection());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(entry != null && props.get(Buffer.ENCODING) == null)\n\t\t\t{\n\t\t\t\tif(entry.encoding != null)\n\t\t\t\t\tprops.put(Buffer.ENCODING,entry.encoding);\n\t\t\t}\n\n\t\t\tBuffer newBuffer = new Buffer(path,newFile,false,props);\n\n\t\t\tif(!newBuffer.load(view,false))\n\t\t\t\treturn null;\n\n\t\t\taddBufferToList(newBuffer);\n\n\t\t\tEditBus.send(new BufferUpdate(newBuffer,view,BufferUpdate.CREATED));\n\n\t\t\tif(view != null)\n\t\t\t\tview.setBuffer(newBuffer);\n\n\t\t\treturn newBuffer;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 19], [0, 20], [2, 21], [3, 22], [10, 23], [0, 24], [0, 25], [11, 26], [11, 27], [13, 28], [14, 29], [16, 30], [17, 31], [1, 32], [20, 33], [2, 34], [3, 35], [22, 36], [22, 37], [10, 38], [23, 39], [24, 40], [26, 41], [27, 42], [12, 43], [13, 44], [28, 45], [28, 46], [14, 47], [14, 48], [29, 49], [29, 50], [15, 51], [16, 52], [30, 53], [17, 54], [17, 55], [31, 56], [18, 57], [32, 58], [34, 59], [35, 60], [36, 61], [37, 62], [43, 63], [44, 64], [45, 65], [45, 66], [46, 67], [47, 68], [14, 69], [49, 70], [49, 71], [50, 72], [52, 73], [55, 74], [34, 75], [59, 76], [60, 77], [44, 78], [64, 79], [68, 80], [69, 81], [72, 82], [55, 83], [74, 84], [75, 85], [76, 86], [77, 87], [47, 88], [85, 89], [88, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 1], [20, 0], [21, 2], [22, 3], [23, 10], [24, 0], [25, 0], [26, 11], [27, 11], [28, 13], [29, 14], [30, 16], [31, 17], [32, 1], [33, 20], [34, 2], [35, 3], [36, 22], [37, 22], [38, 10], [39, 23], [40, 24], [41, 26], [42, 27], [43, 12], [44, 13], [45, 28], [46, 28], [47, 14], [48, 14], [49, 29], [50, 29], [51, 15], [52, 16], [53, 30], [54, 17], [55, 17], [56, 31], [57, 18], [58, 32], [59, 34], [60, 35], [61, 36], [62, 37], [63, 43], [64, 44], [65, 45], [66, 45], [67, 46], [68, 47], [69, 14], [70, 49], [71, 49], [72, 50], [73, 52], [74, 55], [75, 34], [76, 59], [77, 60], [78, 44], [79, 64], [80, 68], [81, 69], [82, 72], [83, 55], [84, 74], [85, 75], [86, 76], [87, 77], [88, 47], [89, 85], [90, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "openTemporary", "code": "\tpublic static Buffer openTemporary(View view, String parent,\n\t\tString path, boolean newFile)\n\t{\n\t\tif(view != null && parent == null)\n\t\t\tparent = MiscUtilities.getParentOfPath(view.getBuffer().getPath());\n\n\t\tif(MiscUtilities.isURL(path))\n\t\t{\n\t\t\tif(MiscUtilities.getProtocolOfURL(path).equals(\"file\"))\n\t\t\t\tpath = path.substring(5);\n\t\t}\n\n\t\tpath = MiscUtilities.constructPath(parent,path);\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer buffer = getBuffer(path);\n\t\t\tif(buffer != null)\n\t\t\t\treturn buffer;\n\n\t\t\tbuffer = new Buffer(path,newFile,true,new Hashtable());\n\t\t\tif(!buffer.load(view,false))\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn buffer;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "IF", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "RETURN", "RETURN", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [7, 13], [7, 14], [7, 15], [0, 16], [8, 17], [8, 18], [10, 19], [1, 20], [2, 21], [12, 22], [12, 23], [14, 24], [15, 25], [16, 26], [18, 27], [9, 28], [20, 29], [21, 30], [22, 31], [23, 32], [26, 33], [26, 34], [20, 35], [29, 36], [30, 37], [35, 38], [36, 39], [37, 40], [38, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 7], [14, 7], [15, 7], [16, 0], [17, 8], [18, 8], [19, 10], [20, 1], [21, 2], [22, 12], [23, 12], [24, 14], [25, 15], [26, 16], [27, 18], [28, 9], [29, 20], [30, 21], [31, 22], [32, 23], [33, 26], [34, 26], [35, 20], [36, 29], [37, 30], [38, 35], [39, 36], [40, 37], [41, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "commitTemporary", "code": "\tpublic static void commitTemporary(Buffer buffer)\n\t{\n\t\tif(!buffer.isTemporary())\n\t\t\treturn;\n\n\t\taddBufferToList(buffer);\n\t\tbuffer.commitTemporary();\n\n\t\tEditBus.send(new BufferUpdate(buffer,null,BufferUpdate.CREATED));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "newFile", "code": "\tpublic static Buffer newFile(View view)\n\t{\n\t\tString path;\n\n\t\tif(view != null && view.getBuffer() != null)\n\t\t{\n\t\t\tpath = MiscUtilities.getParentOfPath(view.getBuffer()\n\t\t\t\t.getPath());\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\t// don't want 'New File' to create a read only buffer\n\t\t\t// if current file is on SQL VFS or something\n\t\t\tif((vfs.getCapabilities() & VFS.WRITE_CAP) == 0)\n\t\t\t\tpath = System.getProperty(\"user.home\");\n\t\t}\n\t\telse\n\t\t\tpath = null;\n\n\t\treturn newFile(view,path);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [6, 11], [7, 12], [8, 13], [2, 14], [10, 15], [10, 16], [11, 17], [8, 18], [13, 19], [13, 20], [9, 21], [14, 22], [18, 23], [20, 24], [22, 25], [23, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 6], [12, 7], [13, 8], [14, 2], [15, 10], [16, 10], [17, 11], [18, 8], [19, 13], [20, 13], [21, 9], [22, 14], [23, 18], [24, 20], [25, 22], [26, 23], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "newFile", "code": "\tpublic static Buffer newFile(View view, String dir)\n\t{\n\t\t// If only one new file is open which is clean, just close\n\t\t// it, which will create an 'Untitled-1'\n\t\tif(dir != null\n\t\t\t&& buffersFirst != null\n\t\t\t&& buffersFirst == buffersLast\n\t\t\t&& buffersFirst.isUntitled()\n\t\t\t&& !buffersFirst.isDirty())\n\t\t{\n\t\t\tcloseBuffer(view,buffersFirst);\n\t\t\t// return the newly created 'untitled-1'\n\t\t\treturn buffersFirst;\n\t\t}\n\n\t\t// Find the highest Untitled-n file\n\t\tint untitledCount = 0;\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.getName().startsWith(\"Untitled-\"))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tuntitledCount = Math.max(untitledCount,\n\t\t\t\t\t\tInteger.parseInt(buffer.getName()\n\t\t\t\t\t\t.substring(9)));\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException nf)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\treturn openFile(view,dir,\"Untitled-\" + (untitledCount+1),true,null);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [5, 10], [8, 11], [8, 12], [8, 13], [2, 14], [9, 15], [4, 16], [5, 17], [10, 18], [10, 19], [13, 20], [13, 21], [2, 22], [14, 23], [5, 24], [19, 25], [19, 26], [20, 27], [14, 28], [23, 29], [26, 30], [26, 31], [28, 32], [29, 33], [31, 34], [31, 35], [28, 36], [34, 37], [35, 38], [36, 39], [39, 40], [40, 41], [41, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 5], [11, 8], [12, 8], [13, 8], [14, 2], [15, 9], [16, 4], [17, 5], [18, 10], [19, 10], [20, 13], [21, 13], [22, 2], [23, 14], [24, 5], [25, 19], [26, 19], [27, 20], [28, 14], [29, 23], [30, 26], [31, 26], [32, 28], [33, 29], [34, 31], [35, 31], [36, 28], [37, 34], [38, 35], [39, 36], [40, 39], [41, 40], [42, 41], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "closeBuffer", "code": "\tpublic static boolean closeBuffer(View view, Buffer buffer)\n\t{\n\t\t// Wait for pending I/O requests\n\t\tif(buffer.isPerformingIO())\n\t\t{\n\t\t\tVFSManager.waitForRequests();\n\t\t\tif(VFSManager.errorOccurred())\n\t\t\t\treturn false;\n\t\t}\n\n\t\tif(buffer.isDirty())\n\t\t{\n\t\t\tObject[] args = { buffer.getName() };\n\t\t\tint result = GUIUtilities.confirm(view,\"notsaved\",args,\n\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION,\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\tif(result == JOptionPane.YES_OPTION)\n\t\t\t{\n\t\t\t\tif(!buffer.save(view,null,true))\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse if(result != JOptionPane.NO_OPTION)\n\t\t\t\treturn false;\n\t\t}\n\n\t\t_closeBuffer(view,buffer);\n\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "BINARY_OP", "RETURN", "CALL", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [2, 10], [2, 11], [2, 12], [3, 13], [10, 14], [10, 15], [13, 16], [13, 17], [3, 18], [14, 19], [14, 20], [10, 21], [11, 22], [16, 23], [19, 24], [21, 25], [21, 26], [22, 27], [12, 28], [25, 29], [26, 30], [26, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 2], [11, 2], [12, 2], [13, 3], [14, 10], [15, 10], [16, 13], [17, 13], [18, 3], [19, 14], [20, 14], [21, 10], [22, 11], [23, 16], [24, 19], [25, 21], [26, 21], [27, 22], [28, 12], [29, 25], [30, 26], [31, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "_closeBuffer", "code": "\tpublic static void _closeBuffer(View view, Buffer buffer)\n\t{\n\t\tif(buffer.isClosed())\n\t\t{\n\t\t\t// can happen if the user presses C+w twice real\n\t\t\t// quick and the buffer has unsaved changes\n\t\t\treturn;\n\t\t}\n\n\t\tif(!buffer.isNewFile())\n\t\t{\n\t\t\tview.getEditPane().saveCaretInfo();\n\t\t\tInteger _caret = (Integer)buffer.getProperty(Buffer.CARET);\n\t\t\tint caret = (_caret == null ? 0 : _caret.intValue());\n\n\t\t\tBufferHistory.setEntry(buffer.getPath(),caret,\n\t\t\t\t(Selection[])buffer.getProperty(Buffer.SELECTION),\n\t\t\t\tbuffer.getStringProperty(Buffer.ENCODING));\n\t\t}\n\n\t\tremoveBufferFromList(buffer);\n\t\tbuffer.close();\n\n\t\tEditBus.send(new BufferUpdate(buffer,view,BufferUpdate.CLOSED));\n\n\t\t// Create a new file when the last is closed\n\t\tif(buffersFirst == null && buffersLast == null)\n\t\t\tnewFile(view);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [1, 12], [6, 13], [6, 14], [7, 15], [2, 16], [2, 17], [3, 18], [13, 19], [14, 20], [2, 21], [2, 22], [21, 23], [21, 24], [16, 25], [22, 26], [21, 27], [25, 28], [25, 29], [25, 30], [17, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 1], [13, 6], [14, 6], [15, 7], [16, 2], [17, 2], [18, 3], [19, 13], [20, 14], [21, 2], [22, 2], [23, 21], [24, 21], [25, 16], [26, 22], [27, 21], [28, 25], [29, 25], [30, 25], [31, 17], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "closeAllBuffers", "code": "\tpublic static boolean closeAllBuffers(View view)\n\t{\n\t\treturn closeAllBuffers(view,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "closeAllBuffers", "code": "\tpublic static boolean closeAllBuffers(View view, boolean isExiting)\n\t{\n\t\tboolean dirty = false;\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.isDirty())\n\t\t\t{\n\t\t\t\tdirty = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tif(dirty)\n\t\t{\n\t\t\tboolean ok = new CloseDialog(view).isOK();\n\t\t\tif(!ok)\n\t\t\t\treturn false;\n\t\t}\n\n\t\t// Wait for pending I/O requests\n\t\tVFSManager.waitForRequests();\n\t\tif(VFSManager.errorOccurred())\n\t\t\treturn false;\n\n\t\t// close remaining buffers (the close dialog only deals with\n\t\t// dirty ones)\n\n\t\tbuffer = buffersFirst;\n\n\t\t// zero it here so that BufferTabs doesn't have any problems\n\t\tbuffersFirst = buffersLast = null;\n\t\tbufferCount = 0;\n\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(!buffer.isNewFile())\n\t\t\t{\n\t\t\t\tInteger _caret = (Integer)buffer.getProperty(Buffer.CARET);\n\t\t\t\tint caret = (_caret == null ? 0 : _caret.intValue());\n\t\t\t\tBufferHistory.setEntry(buffer.getPath(),caret,\n\t\t\t\t\t(Selection[])buffer.getProperty(Buffer.SELECTION),\n\t\t\t\t\tbuffer.getStringProperty(Buffer.ENCODING));\n\t\t\t}\n\n\t\t\tbuffer.close();\n\t\t\tif(!isExiting)\n\t\t\t{\n\t\t\t\tEditBus.send(new BufferUpdate(buffer,view,\n\t\t\t\t\tBufferUpdate.CLOSED));\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tif(!isExiting)\n\t\t\tnewFile(view);\n\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "RETURN", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [3, 12], [0, 13], [0, 14], [0, 15], [4, 16], [4, 17], [0, 18], [6, 19], [2, 20], [3, 21], [3, 22], [12, 23], [13, 24], [14, 25], [16, 26], [5, 27], [5, 28], [6, 29], [19, 30], [8, 31], [3, 32], [3, 33], [22, 34], [25, 35], [27, 36], [6, 37], [29, 38], [22, 39], [22, 40], [36, 41], [28, 42], [29, 43], [21, 44], [22, 45], [42, 46], [29, 47], [44, 48], [45, 49], [45, 50], [39, 51], [47, 52], [45, 53], [51, 54], [51, 55], [51, 56], [40, 57], [56, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 3], [13, 0], [14, 0], [15, 0], [16, 4], [17, 4], [18, 0], [19, 6], [20, 2], [21, 3], [22, 3], [23, 12], [24, 13], [25, 14], [26, 16], [27, 5], [28, 5], [29, 6], [30, 19], [31, 8], [32, 3], [33, 3], [34, 22], [35, 25], [36, 27], [37, 6], [38, 29], [39, 22], [40, 22], [41, 36], [42, 28], [43, 29], [44, 21], [45, 22], [46, 42], [47, 29], [48, 44], [49, 45], [50, 45], [51, 39], [52, 47], [53, 45], [54, 51], [55, 51], [56, 51], [57, 40], [58, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "saveAllBuffers", "code": "\tpublic static void saveAllBuffers(View view, boolean confirm)\n\t{\n\t\tif(confirm)\n\t\t{\n\t\t\tint result = GUIUtilities.confirm(view,\"saveall\",null,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn;\n\t\t}\n\n\t\tBuffer current = view.getBuffer();\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.isDirty())\n\t\t\t{\n\t\t\t\tif(buffer.isNewFile())\n\t\t\t\t\tview.setBuffer(buffer);\n\t\t\t\tbuffer.save(view,null,true);\n\t\t\t}\n\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tview.setBuffer(current);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [3, 11], [4, 12], [4, 13], [1, 14], [9, 15], [12, 16], [12, 17], [9, 18], [13, 19], [9, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [18, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 3], [12, 4], [13, 4], [14, 1], [15, 9], [16, 12], [17, 12], [18, 9], [19, 13], [20, 9], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "reloadAllBuffers", "code": "\tpublic static void reloadAllBuffers(final View view, boolean confirm)\n\t{\n\t\tif(confirm)\n\t\t{\n\t\t\tint result = GUIUtilities.confirm(view,\"reload-all\",null,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn;\n\t\t}\n\n\t\t// save caret info. Buffer.load() will load it.\n\t\tView _view = viewsFirst;\n\t\twhile(_view != null)\n\t\t{\n\t\t\tEditPane[] panes = _view.getEditPanes();\n\t\t\tfor(int i = 0; i < panes.length; i++)\n\t\t\t{\n\t\t\t\tpanes[i].saveCaretInfo();\n\t\t\t}\n\n\t\t\t_view = _view.next;\n\t\t}\n\n\t\tBuffer[] buffers = jEdit.getBuffers();\n\t\tfor(int i = 0; i < buffers.length; i++)\n\t\t{\n\t\t\tBuffer buffer = buffers[i];\n\t\t\tbuffer.load(view,true);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [1, 10], [2, 11], [3, 12], [3, 13], [9, 14], [5, 15], [5, 16], [1, 17], [1, 18], [3, 19], [12, 20], [15, 21], [15, 22], [17, 23], [13, 24], [16, 25], [12, 26], [25, 27], [25, 28], [12, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 1], [11, 2], [12, 3], [13, 3], [14, 9], [15, 5], [16, 5], [17, 1], [18, 1], [19, 3], [20, 12], [21, 15], [22, 15], [23, 17], [24, 13], [25, 16], [26, 12], [27, 25], [28, 25], [29, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getBuffer", "code": "\tpublic static Buffer getBuffer(String path)\n\t{\n\t\tboolean caseInsensitiveFilesystem = (File.separatorChar == '\\\\'\n\t\t\t|| File.separatorChar == ':' /* Windows or MacOS */);\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer buffer = buffersFirst;\n\t\t\twhile(buffer != null)\n\t\t\t{\n\t\t\t\tString _path = buffer.getPath();\n\t\t\t\tif(caseInsensitiveFilesystem)\n\t\t\t\t{\n\t\t\t\t\tif(_path.equalsIgnoreCase(path))\n\t\t\t\t\t\treturn buffer;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(_path.equals(path))\n\t\t\t\t\t\treturn buffer;\n\t\t\t\t}\n\t\t\t\tbuffer = buffer.next;\n\t\t\t}\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "RETURN", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [5, 7], [2, 8], [5, 9], [5, 10], [7, 11], [8, 12], [8, 13], [5, 14], [12, 15], [13, 16], [9, 17], [9, 18], [10, 19], [17, 20], [17, 21], [18, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 5], [8, 2], [9, 5], [10, 5], [11, 7], [12, 8], [13, 8], [14, 5], [15, 12], [16, 13], [17, 9], [18, 9], [19, 10], [20, 17], [21, 17], [22, 18], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getBuffers", "code": "\tpublic static Buffer[] getBuffers()\n\t{\n\t\tBuffer[] buffers = new Buffer[bufferCount];\n\t\tBuffer buffer = buffersFirst;\n\t\tfor(int i = 0; i < bufferCount; i++)\n\t\t{\n\t\t\tbuffers[i] = buffer;\n\t\t\tbuffer = buffer.next;\n\t\t}\n\t\treturn buffers;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getBufferCount", "code": "\tpublic static int getBufferCount()\n\t{\n\t\treturn bufferCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstBuffer", "code": "\tpublic static Buffer getFirstBuffer()\n\t{\n\t\treturn buffersFirst;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastBuffer", "code": "\tpublic static Buffer getLastBuffer()\n\t{\n\t\treturn buffersLast;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInputHandler", "code": "\tpublic static InputHandler getInputHandler()\n\t{\n\t\treturn inputHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "newView", "code": "\tpublic static View newView(View view, Buffer buffer)\n\t{\n\t\tif(view != null)\n\t\t{\n\t\t\tview.showWaitCursor();\n\t\t\tview.getEditPane().saveCaretInfo();\n\t\t}\n\n\t\tView newView = new View(buffer,null);\n\n\t\t// Do this crap here so that the view is created\n\t\t// and added to the list before it is shown\n\t\t// (for the sake of plugins that add stuff to views)\n\t\tnewView.pack();\n\n\t\t// newView.setSize(view.getSize()) creates incorrectly\n\t\t// sized views, for some reason...\n\t\tif(view != null)\n\t\t{\n\t\t\tGUIUtilities.saveGeometry(view,\"view\");\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\tGUIUtilities.loadGeometry(newView,\"view\");\n\n\t\taddViewToList(newView);\n\t\tEditBus.send(new ViewUpdate(newView,ViewUpdate.CREATED));\n\n\t\tGUIUtilities.requestFocus(newView,newView.getTextArea());\n\t\tnewView.show();\n\n\t\t// show tip of the day\n\t\tif(newView == viewsFirst)\n\t\t{\n\t\t\t// Don't show the welcome message if jEdit was started\n\t\t\t// with the -nosettings switch\n\t\t\tif(settingsDirectory != null && getBooleanProperty(\"firstTime\"))\n\t\t\t\tnew HelpViewer();\n\t\t\telse if(jEdit.getBooleanProperty(\"tip.show\"))\n\t\t\t\tnew TipOfTheDay(newView);\n\n\t\t\tsetBooleanProperty(\"firstTime\",false);\n\t\t}\n\n\t\treturn newView;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [0, 15], [5, 16], [2, 17], [10, 18], [11, 19], [13, 20], [14, 21], [4, 22], [16, 23], [2, 24], [17, 25], [17, 26], [3, 27], [3, 28], [22, 29], [5, 30], [5, 31], [24, 32], [24, 33], [25, 34], [17, 35], [26, 36], [26, 37], [28, 38], [30, 39], [25, 40], [34, 41], [36, 42], [37, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 0], [16, 5], [17, 2], [18, 10], [19, 11], [20, 13], [21, 14], [22, 4], [23, 16], [24, 2], [25, 17], [26, 17], [27, 3], [28, 3], [29, 22], [30, 5], [31, 5], [32, 24], [33, 24], [34, 25], [35, 17], [36, 26], [37, 26], [38, 28], [39, 30], [40, 25], [41, 34], [42, 36], [43, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "newView", "code": "\tpublic static View newView(View view)\n\t{\n\t\treturn newView(view,view.getSplitConfig());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "newView", "code": "\tpublic static View newView(View view, String splitConfig)\n\t{\n\t\tif(view != null)\n\t\t{\n\t\t\tview.showWaitCursor();\n\t\t\tview.getEditPane().saveCaretInfo();\n\t\t}\n\n\t\tView newView = new View(null,splitConfig);\n\n\t\t// Do this crap here so that the view is created\n\t\t// and added to the list before it is shown\n\t\t// (for the sake of plugins that add stuff to views)\n\t\tnewView.pack();\n\n\t\t// newView.setSize(view.getSize()) creates incorrectly\n\t\t// sized views, for some reason...\n\t\tif(view != null)\n\t\t{\n\t\t\tGUIUtilities.saveGeometry(view,\"view\");\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\tGUIUtilities.loadGeometry(newView,\"view\");\n\n\t\taddViewToList(newView);\n\t\tEditBus.send(new ViewUpdate(newView,ViewUpdate.CREATED));\n\n\t\tGUIUtilities.requestFocus(newView,newView.getTextArea());\n\t\tnewView.show();\n\n\t\t// show tip of the day\n\t\tif(newView == viewsFirst)\n\t\t{\n\t\t\t// Don't show the welcome message if jEdit was started\n\t\t\t// with the -nosettings switch\n\t\t\tif(settingsDirectory != null && getBooleanProperty(\"firstTime\"))\n\t\t\t\tnew HelpViewer();\n\t\t\telse if(jEdit.getBooleanProperty(\"tip.show\"))\n\t\t\t\tnew TipOfTheDay(newView);\n\n\t\t\tsetBooleanProperty(\"firstTime\",false);\n\t\t}\n\n\t\treturn newView;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [0, 15], [5, 16], [2, 17], [10, 18], [11, 19], [13, 20], [14, 21], [4, 22], [16, 23], [2, 24], [17, 25], [17, 26], [3, 27], [3, 28], [22, 29], [5, 30], [5, 31], [24, 32], [24, 33], [25, 34], [17, 35], [26, 36], [26, 37], [28, 38], [30, 39], [25, 40], [34, 41], [36, 42], [37, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 0], [16, 5], [17, 2], [18, 10], [19, 11], [20, 13], [21, 14], [22, 4], [23, 16], [24, 2], [25, 17], [26, 17], [27, 3], [28, 3], [29, 22], [30, 5], [31, 5], [32, 24], [33, 24], [34, 25], [35, 17], [36, 26], [37, 26], [38, 28], [39, 30], [40, 25], [41, 34], [42, 36], [43, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "closeView", "code": "\tpublic static void closeView(View view)\n\t{\n\t\tcloseView(view,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getViews", "code": "\tpublic static View[] getViews()\n\t{\n\t\tView[] views = new View[viewCount];\n\t\tView view = viewsFirst;\n\t\tfor(int i = 0; i < viewCount; i++)\n\t\t{\n\t\t\tviews[i] = view;\n\t\t\tview = view.next;\n\t\t}\n\t\treturn views;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getViewCount", "code": "\tpublic static int getViewCount()\n\t{\n\t\treturn viewCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstView", "code": "\tpublic static View getFirstView()\n\t{\n\t\treturn viewsFirst;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastView", "code": "\tpublic static View getLastView()\n\t{\n\t\treturn viewsLast;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isBackgroundModeEnabled", "code": "\tpublic static boolean isBackgroundModeEnabled()\n\t{\n\t\treturn background;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "showMemoryDialog", "code": "\tpublic static void showMemoryDialog(View view)\n\t{\n\t\tRuntime rt = Runtime.getRuntime();\n\t\tint before = (int) (rt.freeMemory() / 1024);\n\t\tSystem.gc();\n\t\tint after = (int) (rt.freeMemory() / 1024);\n\t\tint total = (int) (rt.totalMemory() / 1024);\n\n\t\tJProgressBar progress = new JProgressBar(0,total);\n\t\tprogress.setValue(total - after);\n\t\tprogress.setStringPainted(true);\n\t\tprogress.setString(jEdit.getProperty(\"memory-status.use\",\n\t\t\tnew Object[] { new Integer(total - after),\n\t\t\tnew Integer(total) }));\n\n\t\tObject[] message = new Object[4];\n\t\tmessage[0] = getProperty(\"memory-status.gc\",\n\t\t\tnew Object[] { new Integer(after - before) });\n\t\tmessage[1] = Box.createVerticalStrut(12);\n\t\tmessage[2] = progress;\n\t\tmessage[3] = Box.createVerticalStrut(6);\n\n\t\tJOptionPane.showMessageDialog(view,message,\n\t\t\tjEdit.getProperty(\"memory-status.title\"),\n\t\t\tJOptionPane.INFORMATION_MESSAGE);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [8, 17], [9, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [2, 24], [6, 25], [17, 26], [18, 27], [19, 28], [20, 29], [1, 30], [21, 31], [24, 32], [3, 33], [4, 34], [5, 35], [9, 36], [10, 37], [11, 38], [12, 39], [33, 40], [33, 41], [34, 42], [34, 43], [35, 44], [35, 45], [20, 46], [21, 47], [21, 48], [46, 49], [48, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 8], [18, 9], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 2], [25, 6], [26, 17], [27, 18], [28, 19], [29, 20], [30, 1], [31, 21], [32, 24], [33, 3], [34, 4], [35, 5], [36, 9], [37, 10], [38, 11], [39, 12], [40, 33], [41, 33], [42, 34], [43, 34], [44, 35], [45, 35], [46, 20], [47, 21], [48, 21], [49, 46], [50, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "getJEditHome", "code": "\tpublic static String getJEditHome()\n\t{\n\t\treturn jEditHome;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSettingsDirectory", "code": "\tpublic static String getSettingsDirectory()\n\t{\n\t\treturn settingsDirectory;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "backupSettingsFile", "code": "\tpublic static void backupSettingsFile(File file)\n\t{\n\t\tif(settingsDirectory == null)\n\t\t\treturn;\n\n\t\tString backupDir = MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"settings-backup\");\n\t\tFile dir = new File(backupDir);\n\t\tif(!dir.exists())\n\t\t\tdir.mkdirs();\n\n\t\t// ... sweet. saveBackup() will create backupDir if it\n\t\t// doesn't exist.\n\n\t\tMiscUtilities.saveBackup(file,5,null,\"~\",backupDir);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [4, 8], [4, 9], [6, 10], [6, 11], [6, 12], [1, 13], [2, 14], [3, 15], [9, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 4], [9, 4], [10, 6], [11, 6], [12, 6], [13, 1], [14, 2], [15, 3], [16, 9], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "saveSettings", "code": "\tpublic static void saveSettings()\n\t{\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\t// Save the recent file list\n\t\t\tFile file1 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory, \"#recent.xml#save#\"));\n\t\t\tFile file2 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory, \"recent.xml\"));\n\t\t\tif(file2.exists() && file2.lastModified() != recentModTime)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,jEdit.class,file2 + \" changed\"\n\t\t\t\t\t+ \" on disk; will not save recent files\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbackupSettingsFile(file2);\n\t\t\t\tBufferHistory.save(file1);\n\t\t\t\tfile2.delete();\n\t\t\t\tfile1.renameTo(file2);\n\t\t\t}\n\t\t\trecentModTime = file2.lastModified();\n\n\t\t\tfile1 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory, \"#history#save#\"));\n\t\t\tfile2 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory, \"history\"));\n\t\t\tif(file2.exists() && file2.lastModified() != historyModTime)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,jEdit.class,file2 + \" changed\"\n\t\t\t\t\t+ \" on disk; will not save history\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbackupSettingsFile(file2);\n\t\t\t\tHistoryModel.saveHistory(file1);\n\t\t\t\tfile2.delete();\n\t\t\t\tfile1.renameTo(file2);\n\t\t\t}\n\t\t\thistoryModTime = file2.lastModified();\n\n\t\t\tSearchAndReplace.save();\n\t\t\tAbbrevs.save();\n\t\t\tFavoritesVFS.saveFavorites();\n\n\t\t\tfile1 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"#properties#save#\"));\n\t\t\tfile2 = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"properties\"));\n\t\t\tif(file2.exists() && file2.lastModified() != propsModTime)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,jEdit.class,file2 + \" changed\"\n\t\t\t\t\t+ \" on disk; will not save user properties\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbackupSettingsFile(file2);\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tOutputStream out = new FileOutputStream(file1);\n\t\t\t\t\tprops.store(out,\"jEdit properties\");\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t\t\t}\n\n\t\t\t\tfile2.delete();\n\t\t\t\tfile1.renameTo(file2);\n\t\t\t}\n\t\t\tpropsModTime = file2.lastModified();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "TRY", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [1, 9], [3, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [4, 17], [1, 18], [1, 19], [1, 20], [5, 21], [9, 22], [3, 23], [10, 24], [10, 25], [11, 26], [12, 27], [16, 28], [17, 29], [17, 30], [18, 31], [19, 32], [20, 33], [21, 34], [21, 35], [6, 36], [7, 37], [3, 38], [3, 39], [23, 40], [23, 41], [3, 42], [3, 43], [24, 44], [26, 45], [27, 46], [4, 47], [4, 48], [4, 49], [4, 50], [4, 51], [29, 52], [31, 53], [32, 54], [5, 55], [5, 56], [5, 57], [5, 58], [5, 59], [34, 60], [36, 61], [37, 62], [23, 63], [23, 64], [43, 65], [45, 66], [46, 67], [51, 68], [53, 69], [54, 70], [59, 71], [61, 72], [62, 73], [40, 74], [64, 75], [41, 76], [65, 77], [65, 78], [68, 79], [68, 80], [71, 81], [71, 82], [78, 83], [80, 84], [82, 85], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 1], [10, 3], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 4], [18, 1], [19, 1], [20, 1], [21, 5], [22, 9], [23, 3], [24, 10], [25, 10], [26, 11], [27, 12], [28, 16], [29, 17], [30, 17], [31, 18], [32, 19], [33, 20], [34, 21], [35, 21], [36, 6], [37, 7], [38, 3], [39, 3], [40, 23], [41, 23], [42, 3], [43, 3], [44, 24], [45, 26], [46, 27], [47, 4], [48, 4], [49, 4], [50, 4], [51, 4], [52, 29], [53, 31], [54, 32], [55, 5], [56, 5], [57, 5], [58, 5], [59, 5], [60, 34], [61, 36], [62, 37], [63, 23], [64, 23], [65, 43], [66, 45], [67, 46], [68, 51], [69, 53], [70, 54], [71, 59], [72, 61], [73, 62], [74, 40], [75, 64], [76, 41], [77, 65], [78, 65], [79, 68], [80, 68], [81, 71], [82, 71], [83, 78], [84, 80], [85, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "exit", "code": "\tpublic static void exit(View view, boolean reallyExit)\n\t{\n\t\t// Wait for pending I/O requests\n\t\tVFSManager.waitForRequests();\n\n\t\t// Send EditorExitRequested\n\t\tEditBus.send(new EditorExitRequested(view));\n\n\t\t// Even if reallyExit is false, we still exit properly\n\t\t// if background mode is off\n\t\treallyExit |= !background;\n\n\t\tsaveOpenFiles(view);\n\n\t\t// Close all buffers\n\t\tif(!closeAllBuffers(view,reallyExit))\n\t\t\treturn;\n\n\t\t// If we are running in background mode and\n\t\t// reallyExit was not specified, then return here.\n\t\tif(!reallyExit)\n\t\t{\n\t\t\t// in this case, we can't directly call\n\t\t\t// view.close(); we have to call closeView()\n\t\t\t// for all open views\n\t\t\tview = viewsFirst;\n\t\t\twhile(view != null)\n\t\t\t{\n\t\t\t\tcloseView(view,false);\n\t\t\t\tview = view.next;\n\t\t\t}\n\n\t\t\t// Save settings in case user kills the backgrounded\n\t\t\t// jEdit process\n\t\t\tsaveSettings();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Save view properties here - it unregisters\n\t\t// listeners, and we would have problems if the user\n\t\t// closed a view but cancelled an unsaved buffer close\n\t\tview.close();\n\n\t\t// Stop autosave timer\n\t\tAutosave.stop();\n\n\t\t// Stop server\n\t\tif(server != null)\n\t\t\tserver.stopServer();\n\n\t\t// Stop all plugins\n\t\tEditPlugin[] plugins = getPlugins();\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tplugins[i].stop();\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,\"Error while \"\n\t\t\t\t\t+ \"stopping plugin:\");\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,t);\n\t\t\t}\n\t\t}\n\n\t\t// Send EditorExiting\n\t\tEditBus.send(new EditorExiting(null));\n\n\t\t// Save settings\n\t\tsaveSettings();\n\n\t\t// Close activity log stream\n\t\tLog.closeStream();\n\n\t\t// Byebye...\n\t\tSystem.exit(0);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LOOP", "CALL", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [3, 13], [0, 14], [0, 15], [5, 16], [5, 17], [0, 18], [0, 19], [0, 20], [0, 21], [8, 22], [11, 23], [1, 24], [2, 25], [3, 26], [13, 27], [4, 28], [4, 29], [20, 30], [23, 31], [24, 32], [1, 33], [4, 34], [29, 35], [4, 36], [35, 37], [32, 38], [32, 39], [24, 40], [29, 41], [29, 42], [39, 43], [42, 44], [43, 45], [43, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 3], [14, 0], [15, 0], [16, 5], [17, 5], [18, 0], [19, 0], [20, 0], [21, 0], [22, 8], [23, 11], [24, 1], [25, 2], [26, 3], [27, 13], [28, 4], [29, 4], [30, 20], [31, 23], [32, 24], [33, 1], [34, 4], [35, 29], [36, 4], [37, 35], [38, 32], [39, 32], [40, 24], [41, 29], [42, 29], [43, 39], [44, 42], [45, 43], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "updatePosition", "code": "\tstatic void updatePosition(Buffer buffer)\n\t{\n\t\tif(sortBuffers)\n\t\t{\n\t\t\tremoveBufferFromList(buffer);\n\t\t\taddBufferToList(buffer);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addMode", "code": "\tpublic static void addMode(Mode mode)\n\t{\n\t\tLog.log(Log.DEBUG,jEdit.class,\"Adding edit mode \"\n\t\t\t+ mode.getName());\n\n\t\tmodes.addElement(mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "loadMode", "code": "\t/* package-private */ static void loadMode(Mode mode)\n\t{\n\t\tObject fileName = mode.getProperty(\"file\");\n\n\t\tLog.log(Log.NOTICE,jEdit.class,\"Loading edit mode \" + fileName);\n\n\t\tXmlParser parser = new XmlParser();\n\t\tXModeHandler xmh = new XModeHandler(parser,mode.getName(),fileName.toString());\n\t\tparser.setHandler(xmh);\n\t\ttry\n\t\t{\n\t\t\tReader grammar;\n\t\t\tif(fileName instanceof URL)\n\t\t\t{\n\t\t\t\tgrammar = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(\n\t\t\t\t\t((URL)fileName).openStream()));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgrammar = new BufferedReader(new FileReader(\n\t\t\t\t\t(String)fileName));\n\t\t\t}\n\n\t\t\tparser.parse(null, null, grammar);\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR, jEdit.class, e);\n\n\t\t\tif (e instanceof XmlException)\n\t\t\t{\n\t\t\t\tXmlException xe = (XmlException) e;\n\t\t\t\tint line = xe.getLine();\n\t\t\t\tString message = xe.getMessage();\n\n\t\t\t\tObject[] args = { fileName, new Integer(line), message };\n\t\t\t\tGUIUtilities.error(null,\"xmode-parse\",args);\n\t\t\t}\n\n\t\t\t// give it an empty token marker to avoid problems\n\t\t\tTokenMarker marker = new TokenMarker();\n\t\t\tmarker.addRuleSet(\"MAIN\",new ParserRuleSet(\"MAIN\",mode));\n\t\t\tmode.setTokenMarker(marker);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "IF", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [0, 9], [0, 10], [6, 11], [6, 12], [1, 13], [7, 14], [2, 15], [3, 16], [10, 17], [4, 18], [6, 19], [6, 20], [12, 21], [6, 22], [13, 23], [13, 24], [15, 25], [15, 26], [17, 27], [18, 28], [20, 29], [20, 30], [11, 31], [12, 32], [12, 33], [12, 34], [12, 35], [7, 36], [7, 37], [29, 38], [12, 39], [36, 40], [37, 41], [39, 42], [39, 43], [33, 44], [34, 45], [40, 46], [41, 47], [32, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 0], [10, 0], [11, 6], [12, 6], [13, 1], [14, 7], [15, 2], [16, 3], [17, 10], [18, 4], [19, 6], [20, 6], [21, 12], [22, 6], [23, 13], [24, 13], [25, 15], [26, 15], [27, 17], [28, 18], [29, 20], [30, 20], [31, 11], [32, 12], [33, 12], [34, 12], [35, 12], [36, 7], [37, 7], [38, 29], [39, 12], [40, 36], [41, 37], [42, 39], [43, 39], [44, 33], [45, 34], [46, 40], [47, 41], [48, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "loadProps", "code": "\t/* package-private */ static void loadProps(InputStream in, boolean def)\n\t\tthrows IOException\n\t{\n\t\tin = new BufferedInputStream(in);\n\t\tif(def)\n\t\t\tdefaultProps.load(in);\n\t\telse\n\t\t\tprops.load(in);\n\t\tin.close();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "loadActions", "code": "\tstatic boolean loadActions(String path, Reader in, ActionSet actionSet)\n\t{\n\t\ttry\n\t\t{\n\t\t\tLog.log(Log.DEBUG,jEdit.class,\"Loading actions from \" + path);\n\n\t\t\tActionListHandler ah = new ActionListHandler(path,actionSet);\n\t\t\tXmlParser parser = new XmlParser();\n\t\t\tparser.setHandler(ah);\n\t\t\tparser.parse(null, null, in);\n\t\t\treturn true;\n\t\t}\n\t\tcatch(XmlException xe)\n\t\t{\n\t\t\tint line = xe.getLine();\n\t\t\tString message = xe.getMessage();\n\t\t\tLog.log(Log.ERROR,jEdit.class,path + \":\" + line\n\t\t\t\t+ \": \" + message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [8, 12], [8, 13], [9, 14], [2, 15], [2, 16], [2, 17], [7, 18], [8, 19], [15, 20], [15, 21], [10, 22], [11, 23], [17, 24], [19, 25], [12, 26], [13, 27], [24, 28], [25, 29], [29, 30], [29, 31], [31, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 8], [13, 8], [14, 9], [15, 2], [16, 2], [17, 2], [18, 7], [19, 8], [20, 15], [21, 15], [22, 10], [23, 11], [24, 17], [25, 19], [26, 12], [27, 13], [28, 24], [29, 25], [30, 29], [31, 29], [32, 31], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "pluginError", "code": "\tstatic void pluginError(final String path, String messageProp, Object[] args)\n\t{\n\t\tif(pluginErrors == null)\n\t\t\tpluginErrors = new Vector();\n\n\t\tpluginErrors.addElement(new ErrorListDialog.ErrorEntry(\n\t\t\tpath,messageProp,args));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [5, 7], [1, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 5], [8, 1], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "usage", "code": "\tprivate static void usage()\n\t{\n\t\tSystem.out.println(\"Usage: jedit [<options>] [<files>]\");\n\n\t\tSystem.out.println(\"\t<file> +marker:<marker>: Positions caret\"\n\t\t\t+ \" at marker <marker>\");\n\t\tSystem.out.println(\"\t<file> +line:<line>: Positions caret\"\n\t\t\t+ \" at line number <line>\");\n\t\tSystem.out.println(\"\t--: End of options\");\n\t\tSystem.out.println(\"\t-background: Run in background mode\");\n\t\tSystem.out.println(\"\t-nogui: Only if running in background mode;\"\n\t\t\t+ \" don't open initial view\");\n\t\tSystem.out.println(\"\t-norestore: Don't restore previously open files\");\n\t\tSystem.out.println(\"\t-run=<script>: Run the specified BeanShell script\");\n\t\tSystem.out.println(\"\t-server: Read/write server\"\n\t\t\t+ \" info from/to $HOME/.jedit/server\");\n\t\tSystem.out.println(\"\t-server=<name>: Read/write server\"\n\t\t\t+ \" info from/to $HOME/.jedit/<name>\");\n\t\tSystem.out.println(\"\t-noserver: Don't start edit server\");\n\t\tSystem.out.println(\"\t-settings=<path>: Load user-specific\"\n\t\t\t+ \" settings from <path>\");\n\t\tSystem.out.println(\"\t-nosettings: Don't load user-specific\"\n\t\t\t+ \" settings\");\n\t\tSystem.out.println(\"\t-noplugins: Don't load any plugins\");\n\t\tSystem.out.println(\"\t-nostartupscripts: Don't run startup scripts\");\n\t\tSystem.out.println(\"\t-version: Print jEdit version and exit\");\n\t\tSystem.out.println(\"\t-usage: Print this message and exit\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"To set minimum activity log level,\"\n\t\t\t+ \" specify a number as the first\");\n\t\tSystem.out.println(\"command line parameter\"\n\t\t\t+ \" (1-9, 1 = print everything, 9 = fatal errors only)\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Report bugs to Slava Pestov <slava@jedit.org>.\");", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [1, 23], [3, 24], [4, 25], [6, 26], [7, 27], [8, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [14, 34], [15, 35], [16, 36], [17, 37], [18, 38], [19, 39], [20, 40], [21, 41], [22, 42], [24, 43], [24, 44], [25, 45], [25, 46], [30, 47], [30, 48], [31, 49], [31, 50], [33, 51], [33, 52], [34, 53], [34, 54], [37, 55], [37, 56], [40, 57], [40, 58], [41, 59], [41, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 1], [24, 3], [25, 4], [26, 6], [27, 7], [28, 8], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 14], [35, 15], [36, 16], [37, 17], [38, 18], [39, 19], [40, 20], [41, 21], [42, 22], [43, 24], [44, 24], [45, 25], [46, 25], [47, 30], [48, 30], [49, 31], [50, 31], [51, 33], [52, 33], [53, 34], [54, 34], [55, 37], [56, 37], [57, 40], [58, 40], [59, 41], [60, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "version", "code": "\tprivate static void version()\n\t{\n\t\tSystem.out.println(\"jEdit \" + getVersion());", "ast_nodes": ["FUNC_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "makeServerScript", "code": "\tprivate static String makeServerScript(boolean restore,\n\t\tString[] args, String scriptFile)\n\t{\n\t\tStringBuffer script = new StringBuffer();\n\n\t\tString userDir = System.getProperty(\"user.dir\");\n\n\t\tscript.append(\"parent = \\\"\");\n\t\tscript.append(MiscUtilities.charsToEscapes(userDir));\n\t\tscript.append(\"\\\";\\n\");\n\n\t\tscript.append(\"args = new String[\");\n\t\tscript.append(args.length);\n\t\tscript.append(\"];\\n\");\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tscript.append(\"args[\");\n\t\t\tscript.append(i);\n\t\t\tscript.append(\"] = \");\n\n\t\t\tif(args[i] == null)\n\t\t\t\tscript.append(\"null\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tscript.append('\"');\n\t\t\t\tscript.append(MiscUtilities.charsToEscapes(args[i]));\n\t\t\t\tscript.append('\"');\n\t\t\t}\n\n\t\t\tscript.append(\";\\n\");\n\t\t}\n\n\t\tscript.append(\"EditServer.handleClient(\" + restore + \",parent,args);\\n\");\n\n\t\tif(scriptFile != null)\n\t\t{\n\t\t\tscriptFile = MiscUtilities.constructPath(userDir,scriptFile);\n\t\t\tscript.append(\"BeanShell.runScript(null,\\\"\"\n\t\t\t\t+ MiscUtilities.charsToEscapes(scriptFile)\n\t\t\t\t+ \"\\\",null,false);\\n\");\n\t\t}\n\n\t\treturn script.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [3, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [10, 19], [11, 20], [3, 21], [13, 22], [15, 23], [16, 24], [17, 25], [18, 26], [4, 27], [5, 28], [2, 29], [2, 30], [20, 31], [20, 32], [3, 33], [21, 34], [3, 35], [3, 36], [3, 37], [3, 38], [27, 39], [29, 40], [30, 41], [32, 42], [33, 43], [21, 44], [34, 45], [35, 46], [37, 47], [40, 48], [40, 49], [21, 50], [21, 51], [21, 52], [44, 53], [49, 54], [49, 55], [50, 56], [51, 57], [52, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 3], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 10], [20, 11], [21, 3], [22, 13], [23, 15], [24, 16], [25, 17], [26, 18], [27, 4], [28, 5], [29, 2], [30, 2], [31, 20], [32, 20], [33, 3], [34, 21], [35, 3], [36, 3], [37, 3], [38, 3], [39, 27], [40, 29], [41, 30], [42, 32], [43, 33], [44, 21], [45, 34], [46, 35], [47, 37], [48, 40], [49, 40], [50, 21], [51, 21], [52, 21], [53, 44], [54, 49], [55, 49], [56, 50], [57, 51], [58, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "initMisc", "code": "\tprivate static void initMisc()\n\t{\n\t\t// Add our protocols to java.net.URL's list\n\t\tSystem.getProperties().put(\"java.protocol.handler.pkgs\",\n\t\t\t\"org.gjt.sp.jedit.proto|\" +\n\t\t\tSystem.getProperty(\"java.protocol.handler.pkgs\",\"\"));\n\n\t\t// Set the User-Agent string used by the java.net HTTP handler\n\t\tString userAgent = \"jEdit/\" + getVersion()\n\t\t\t+ \" (Java \" + System.getProperty(\"java.version\")\n\t\t\t+ \". \" + System.getProperty(\"java.vendor\")\n\t\t\t+ \"; \" + System.getProperty(\"os.arch\") + \")\";\n\t\tSystem.getProperties().put(\"http.agent\",userAgent);\n\n\t\tinputHandler = new DefaultInputHandler(null);\n\n\t\t/* Determine installation directory.\n\t\t * If the jedit.home property is set, use that.\n\t\t * Then, look for jedit.jar in the classpath.\n\t\t * If that fails, assume this is the web start version. */\n\t\tjEditHome = System.getProperty(\"jedit.home\");\n\t\tif(jEditHome == null)\n\t\t{\n\t\t\tString classpath = System\n\t\t\t\t.getProperty(\"java.class.path\");\n\t\t\tint index = classpath.toLowerCase()\n\t\t\t\t.indexOf(\"jedit.jar\");\n\t\t\tint start = classpath.lastIndexOf(File\n\t\t\t\t.pathSeparator,index) + 1;\n\t\t\t// if started with java -jar jedit.jar\n\t\t\t if(classpath.equalsIgnoreCase(\"jedit.jar\"))\n\t\t\t{\n\t\t\t\tjEditHome = System.getProperty(\"user.dir\");\n\t\t\t}\n\t\t\telse if(index > start)\n\t\t\t{\n\t\t\t\tjEditHome = classpath.substring(start,\n\t\t\t\t\tindex - 1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// check if web start\n\t\t\t\t/* if(jEdit.class.getResource(\"/modes/catalog\") != null)\n\t\t\t\t{\n\t\t\t\t\t// modes bundled in; hence web start\n\t\t\t\t\tjEditHome = null;\n\t\t\t\t}\n\t\t\t\telse */\n\t\t\t\t{\n\t\t\t\t\t// use user.dir as last resort\n\t\t\t\t\tjEditHome = System.getProperty(\"user.dir\");\n\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"jedit.jar not in class path!\");\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"Assuming jEdit is installed in \"\n\t\t\t\t\t\t+ jEditHome + \".\");\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"Override with jedit.home \"\n\t\t\t\t\t\t+ \"system property.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"jEdit home directory is \" + jEditHome);\n\n\t\t//if(jEditHome == null)\n\t\t//\tLog.log(Log.DEBUG,jEdit.class,\"Web start mode\");\n\n\t\tjars = new Vector();\n\n\t\t// Add an EditBus component that will reload edit modes and\n\t\t// macros if they are changed from within the editor\n\t\tEditBus.addToBus(new SettingsReloader());\n\n\t\t// Perhaps if Xerces wasn't slightly brain-damaged, we would\n\t\t// not need this\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tThread.currentThread().setContextClassLoader(", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [3, 12], [4, 13], [5, 14], [6, 15], [1, 16], [1, 17], [1, 18], [1, 19], [7, 20], [8, 21], [9, 22], [10, 23], [2, 24], [11, 25], [12, 26], [15, 27], [16, 28], [16, 29], [21, 30], [22, 31], [23, 32], [24, 33], [24, 34], [25, 35], [25, 36], [28, 37], [29, 38], [17, 39], [18, 40], [19, 41], [34, 42], [34, 43], [35, 44], [35, 45], [26, 46], [16, 47], [39, 48], [39, 49], [40, 50], [41, 51], [42, 52], [43, 53], [43, 54], [44, 55], [44, 56], [46, 57], [28, 58], [47, 59], [50, 60], [54, 61], [54, 62], [57, 63], [28, 64], [28, 65], [28, 66], [28, 67], [58, 68], [59, 69], [61, 70], [62, 71], [62, 72], [64, 73], [65, 74], [66, 75], [67, 76], [68, 77], [72, 78], [72, 79], [73, 80], [73, 81], [74, 82], [74, 83], [76, 84], [77, 85], [78, 86], [79, 87], [79, 88], [83, 89], [88, 90], [88, 91], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 3], [13, 4], [14, 5], [15, 6], [16, 1], [17, 1], [18, 1], [19, 1], [20, 7], [21, 8], [22, 9], [23, 10], [24, 2], [25, 11], [26, 12], [27, 15], [28, 16], [29, 16], [30, 21], [31, 22], [32, 23], [33, 24], [34, 24], [35, 25], [36, 25], [37, 28], [38, 29], [39, 17], [40, 18], [41, 19], [42, 34], [43, 34], [44, 35], [45, 35], [46, 26], [47, 16], [48, 39], [49, 39], [50, 40], [51, 41], [52, 42], [53, 43], [54, 43], [55, 44], [56, 44], [57, 46], [58, 28], [59, 47], [60, 50], [61, 54], [62, 54], [63, 57], [64, 28], [65, 28], [66, 28], [67, 28], [68, 58], [69, 59], [70, 61], [71, 62], [72, 62], [73, 64], [74, 65], [75, 66], [76, 67], [77, 68], [78, 72], [79, 72], [80, 73], [81, 73], [82, 74], [83, 74], [84, 76], [85, 77], [86, 78], [87, 79], [88, 79], [89, 83], [90, 88], [91, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91]]}, {"function_name": "initSystemProperties", "code": "\tprivate static void initSystemProperties()\n\t{\n\t\tdefaultProps = props = new Properties();\n\n\t\ttry\n\t\t{\n\t\t\tloadProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit.props\"),true);\n\t\t\tloadProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit_gui.props\"),true);\n\t\t\tloadProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit_keys.props\"),true);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,\n\t\t\t\t\"Error while loading system properties!\");\n\t\t\tLog.log(Log.ERROR,jEdit.class,\n\t\t\t\t\"One of the following property files could not be loaded:\\n\"\n\t\t\t\t+ \"- jedit.props\\n\"\n\t\t\t\t+ \"- jedit_gui.props\\n\"\n\t\t\t\t+ \"- jedit_keys.props\\n\"\n\t\t\t\t+ \"jedit.jar is probably corrupt.\");\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\tSystem.exit(1);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [1, 6], [3, 7], [2, 8], [2, 9], [2, 10], [2, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [8, 19], [10, 20], [11, 21], [13, 22], [15, 23], [17, 24], [20, 25], [20, 26], [26, 27], [26, 28], [28, 29], [28, 30], [30, 31], [30, 32], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 1], [7, 3], [8, 2], [9, 2], [10, 2], [11, 2], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 8], [20, 10], [21, 11], [22, 13], [23, 15], [24, 17], [25, 20], [26, 20], [27, 26], [28, 26], [29, 28], [30, 28], [31, 30], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "initSiteProperties", "code": "\tprivate static void initSiteProperties()\n\t{\n\t\t// site properties are loaded as default properties, overwriting\n\t\t// jEdit's system properties\n\n\t\tString siteSettingsDirectory = MiscUtilities.constructPath(\n\t\t\tjEditHome, \"properties\");\n\t\tFile siteSettings = new File(siteSettingsDirectory);\n\n\t\tif (!(siteSettings.exists() && siteSettings.isDirectory()))\n\t\t\treturn;\n\n\t\tString[] snippets = siteSettings.list();\n\t\tif (snippets == null)\n\t\t\treturn;\n\n\t\tMiscUtilities.quicksort(snippets,\n\t\t\tnew MiscUtilities.StringICaseCompare());\n\n\t\tfor (int i = 0; i < snippets.length; ++i)\n\t\t{\n\t\t\tString snippet = snippets[i];\n\t\t\tif(!snippet.toLowerCase().endsWith(\".props\"))\n\t\t\t\tcontinue;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString path = MiscUtilities.constructPath(\n\t\t\t\t\tsiteSettingsDirectory,snippet);\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,\n\t\t\t\t\t\"Loading site snippet: \" + path);\n\n\t\t\t\tloadProps(new FileInputStream(new File(path)),true);\n\t\t\t}\n\t\t\tcatch(FileNotFoundException fnf)\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,fnf);\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,\"Cannot load site snippet \"\n\t\t\t\t\t+ snippet);\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "TRY", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "CATCH", "VAR_DECL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [2, 10], [4, 11], [4, 12], [1, 13], [1, 14], [1, 15], [8, 16], [10, 17], [3, 18], [12, 19], [12, 20], [5, 21], [6, 22], [13, 23], [13, 24], [13, 25], [14, 26], [14, 27], [1, 28], [22, 29], [13, 30], [13, 31], [27, 32], [23, 33], [23, 34], [24, 35], [30, 36], [30, 37], [31, 38], [25, 39], [32, 40], [34, 41], [37, 42], [38, 43], [41, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 2], [11, 4], [12, 4], [13, 1], [14, 1], [15, 1], [16, 8], [17, 10], [18, 3], [19, 12], [20, 12], [21, 5], [22, 6], [23, 13], [24, 13], [25, 13], [26, 14], [27, 14], [28, 1], [29, 22], [30, 13], [31, 13], [32, 27], [33, 23], [34, 23], [35, 24], [36, 30], [37, 30], [38, 31], [39, 25], [40, 32], [41, 34], [42, 37], [43, 38], [44, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "initActions", "code": "\tprivate static void initActions()\n\t{\n\t\tactionSets = new Vector();\n\n\t\tReader in = new BufferedReader(new InputStreamReader(\n\t\t\tjEdit.class.getResourceAsStream(\"actions.xml\")));\n\t\tbuiltInActionSet = new ActionSet(jEdit.getProperty(\n\t\t\t\"action-set.jEdit\"));\n\t\tif(!loadActions(\"actions.xml\",in,builtInActionSet))\n\t\t\tSystem.exit(1);\n\t\taddActionSet(builtInActionSet);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [4, 8], [5, 9], [2, 10], [6, 11], [7, 12], [9, 13], [10, 14], [13, 15], [14, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 4], [9, 5], [10, 2], [11, 6], [12, 7], [13, 9], [14, 10], [15, 13], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "initDockables", "code": "\tprivate static void initDockables()\n\t{\n\t\tReader in = new BufferedReader(new InputStreamReader(\n\t\t\tjEdit.class.getResourceAsStream(\"dockables.xml\")));\n\t\tif(!DockableWindowManager.loadDockableWindows(\"dockables.xml\",\n\t\t\tin,builtInActionSet))\n\t\t\tSystem.exit(1);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [4, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 4], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "initPlugins", "code": "\tprivate static void initPlugins()\n\t{\n\t\tif(jEditHome != null)\n\t\t\tloadPlugins(MiscUtilities.constructPath(jEditHome,\"jars\"));\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile jarsDirectory = new File(settingsDirectory,\"jars\");\n\t\t\tif(!jarsDirectory.exists())\n\t\t\t\tjarsDirectory.mkdir();\n\t\t\tloadPlugins(jarsDirectory.getPath());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [3, 7], [2, 8], [4, 9], [1, 10], [5, 11], [8, 12], [10, 13], [5, 14], [6, 15], [12, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 3], [8, 2], [9, 4], [10, 1], [11, 5], [12, 8], [13, 10], [14, 5], [15, 6], [16, 12], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "initUserProperties", "code": "\tprivate static void initUserProperties()\n\t{\n\t\tprops = new Properties(defaultProps);\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile file = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"properties\"));\n\t\t\tpropsModTime = file.lastModified();\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tloadProps(new FileInputStream(file),false);\n\t\t\t}\n\t\t\tcatch(FileNotFoundException fnf)\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,fnf);\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "ASSIGN", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [2, 6], [3, 7], [4, 8], [4, 9], [1, 10], [4, 11], [10, 12], [5, 13], [8, 14], [9, 15], [11, 16], [11, 17], [13, 18], [18, 19], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 2], [7, 3], [8, 4], [9, 4], [10, 1], [11, 4], [12, 10], [13, 5], [14, 8], [15, 9], [16, 11], [17, 11], [18, 13], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "initPLAF", "code": "\tprivate static void initPLAF()\n\t{\n\t\ttheme = new JEditMetalTheme();\n\t\ttheme.propertiesChanged();\n\t\tMetalLookAndFeel.setCurrentTheme(theme);\n\n\t\ttry\n\t\t{\n\t\t\tString lf = getProperty(\"lookAndFeel\");\n\t\t\tif(lf != null && lf.length() != 0)\n\t\t\t\tUIManager.setLookAndFeel(lf);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t}\n\n\t\tUIDefaults defaults = UIManager.getDefaults();\n\n\t\t// give all Swing components our colors\n\t\tif(jEdit.getBooleanProperty(\"textColors\"))\n\t\t{\n\t\t\tColor background = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.bgColor\"));\n\t\t\tColor foreground = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.fgColor\"));\n\t\t\tColor caretColor = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.caretColor\"));\n\t\t\tColor selectionColor = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.selectionColor\"));\n\n\t\t\tString[] prefixes = { \"TextField\", \"TextArea\", \"List\", \"Table\" };\n\t\t\tfor(int i = 0; i < prefixes.length; i++)\n\t\t\t{\n\t\t\t\tString prefix = prefixes[i];\n\t\t\t\tdefaults.put(prefix + \".disabledBackground\",background);\n\t\t\t\tdefaults.put(prefix + \".background\",background);\n\t\t\t\tdefaults.put(prefix + \".disabledForeground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".foreground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".caretForeground\",caretColor);\n\t\t\t\tdefaults.put(prefix + \".selectionForeground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".selectionBackground\",selectionColor);\n\t\t\t\t//defaults.put(prefix + \".inactiveForeground\",foreground);\n\t\t\t}\n\n\t\t\tdefaults.put(\"Tree.background\",background);\n\t\t\tdefaults.put(\"Tree.foreground\",foreground);\n\t\t\tdefaults.put(\"Tree.textBackground\",background);\n\t\t\tdefaults.put(\"Tree.textForeground\",foreground);\n\t\t\tdefaults.put(\"Tree.selectionForeground\",foreground);\n\t\t\tdefaults.put(\"Tree.selectionBackground\",selectionColor);\n\t\t}\n\n\t\tdefaults.remove(\"SplitPane.border\");\n\t\tdefaults.remove(\"SplitPaneDivider.border\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "TRY", "CALL", "CALL", "CALL", "CATCH", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [3, 8], [3, 9], [0, 10], [0, 11], [0, 12], [4, 13], [5, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [6, 21], [2, 22], [8, 23], [12, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [15, 31], [7, 32], [8, 33], [23, 34], [23, 35], [9, 36], [25, 37], [26, 38], [27, 39], [28, 40], [29, 41], [30, 42], [15, 43], [17, 44], [18, 45], [19, 46], [20, 47], [34, 48], [34, 49], [35, 50], [36, 51], [15, 52], [15, 53], [15, 54], [15, 55], [15, 56], [15, 57], [15, 58], [15, 59], [16, 60], [16, 61], [16, 62], [16, 63], [44, 64], [45, 65], [46, 66], [47, 67], [52, 68], [53, 69], [54, 70], [55, 71], [56, 72], [57, 73], [58, 74], [64, 75], [65, 76], [66, 77], [67, 78], [68, 79], [69, 80], [70, 81], [71, 82], [72, 83], [73, 84], [74, 85], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 3], [9, 3], [10, 0], [11, 0], [12, 0], [13, 4], [14, 5], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 6], [22, 2], [23, 8], [24, 12], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 15], [32, 7], [33, 8], [34, 23], [35, 23], [36, 9], [37, 25], [38, 26], [39, 27], [40, 28], [41, 29], [42, 30], [43, 15], [44, 17], [45, 18], [46, 19], [47, 20], [48, 34], [49, 34], [50, 35], [51, 36], [52, 15], [53, 15], [54, 15], [55, 15], [56, 15], [57, 15], [58, 15], [59, 15], [60, 16], [61, 16], [62, 16], [63, 16], [64, 44], [65, 45], [66, 46], [67, 47], [68, 52], [69, 53], [70, 54], [71, 55], [72, 56], [73, 57], [74, 58], [75, 64], [76, 65], [77, 66], [78, 67], [79, 68], [80, 69], [81, 70], [82, 71], [83, 72], [84, 73], [85, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "runStartupScripts", "code": "\tprivate static void runStartupScripts(File directory)\n\t{\n\t\tif (!directory.isDirectory())\n\t\t\treturn;\n\n\t\tString[] snippets = directory.list();\n\t\tif (snippets == null)\n\t\t\treturn;\n\n\t\tMiscUtilities.quicksort(snippets,\n\t\t\tnew MiscUtilities.StringICaseCompare());\n\n\t\tfor(int i = 0; i < snippets.length; ++i)\n\t\t{\n\t\t\tString snippet = snippets[i];\n\t\t\tif(!snippet.toLowerCase().endsWith(\".bsh\"))\n\t\t\t\tcontinue;\n\n\t\t\tString path = new File(directory,snippet).getPath();\n\n\t\t\tBeanShell.runScript(null,path,null,false);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [2, 9], [4, 10], [4, 11], [1, 12], [1, 13], [1, 14], [7, 15], [9, 16], [3, 17], [1, 18], [13, 19], [13, 20], [1, 21], [18, 22], [18, 23], [18, 24], [12, 25], [20, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 2], [10, 4], [11, 4], [12, 1], [13, 1], [14, 1], [15, 7], [16, 9], [17, 3], [18, 1], [19, 13], [20, 13], [21, 1], [22, 18], [23, 18], [24, 18], [25, 12], [26, 20], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "initProxy", "code": "\tprivate static void initProxy()\n\t{\n\t\tboolean enabled = jEdit.getBooleanProperty(\"firewall.enabled\");\n\t\tif (!enabled) {\n\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy disabled\");\n\t\t\tSystem.getProperties().remove(\"proxySet\");\n\t\t\tSystem.getProperties().remove(\"proxyHost\");\n\t\t\tSystem.getProperties().remove(\"proxyPort\");\n\t\t\tSystem.getProperties().remove(\"http.proxyHost\");\n\t\t\tSystem.getProperties().remove(\"http.proxyPort\");\n\t\t\tSystem.getProperties().remove(\"http.nonProxyHosts\");\n\t\t\tAuthenticator.setDefault(null);\n\t\t} else {\n\t\t\t// set proxy host\n\t\t\tString host = jEdit.getProperty(\"firewall.host\");\n\t\t\tif (host == null)\n\t\t\t\treturn;\n\n\t\t\tSystem.setProperty(\"http.proxyHost\", host);\n\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy enabled: \" + host);\n\t\t\t// set proxy port\n\t\t\tString port = jEdit.getProperty(\"firewall.port\");\n\t\t\tif (port != null)\n\t\t\t\tSystem.setProperty(\"http.proxyPort\", port);\n\n\t\t\t// set non proxy hosts list\n\t\t\tString nonProxyHosts = jEdit.getProperty(\"firewall.nonProxyHosts\");\n\t\t\tif (nonProxyHosts != null)\n\t\t\t\tSystem.setProperty(\"http.nonProxyHosts\", nonProxyHosts);\n\n\t\t\t// set proxy authentication\n\t\t\tString username = jEdit.getProperty(\"firewall.user\");\n\t\t\tString password = jEdit.getProperty(\"firewall.password\");\n\n\t\t\t// null not supported?\n\t\t\tif(password == null)\n\t\t\t\tpassword = \"\";\n\n\t\t\tif(username == null || username.length()==0)\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy without user\");\n\t\t\t\tAuthenticator.setDefault(new FirewallAuthenticator(null));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy user: \" + username);\n\t\t\t\tPasswordAuthentication pw = new PasswordAuthentication(\n\t\t\t\t\tusername,password.toCharArray()\n\t\t\t\t);\n\t\t\t\tAuthenticator.setDefault(new FirewallAuthenticator(pw));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [3, 14], [4, 15], [7, 16], [9, 17], [1, 18], [1, 19], [11, 20], [11, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [13, 30], [3, 31], [14, 32], [14, 33], [4, 34], [15, 35], [5, 36], [6, 37], [7, 38], [16, 39], [8, 40], [9, 41], [17, 42], [10, 43], [18, 44], [19, 45], [21, 46], [12, 47], [22, 48], [23, 49], [24, 50], [25, 51], [26, 52], [27, 53], [28, 54], [29, 55], [3, 56], [3, 57], [3, 58], [3, 59], [32, 60], [32, 61], [33, 62], [34, 63], [36, 64], [37, 65], [38, 66], [40, 67], [41, 68], [43, 69], [44, 70], [47, 71], [49, 72], [50, 73], [51, 74], [52, 75], [53, 76], [54, 77], [56, 78], [31, 79], [57, 80], [58, 81], [59, 82], [79, 83], [80, 84], [81, 85], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 3], [15, 4], [16, 7], [17, 9], [18, 1], [19, 1], [20, 11], [21, 11], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 13], [31, 3], [32, 14], [33, 14], [34, 4], [35, 15], [36, 5], [37, 6], [38, 7], [39, 16], [40, 8], [41, 9], [42, 17], [43, 10], [44, 18], [45, 19], [46, 21], [47, 12], [48, 22], [49, 23], [50, 24], [51, 25], [52, 26], [53, 27], [54, 28], [55, 29], [56, 3], [57, 3], [58, 3], [59, 3], [60, 32], [61, 32], [62, 33], [63, 34], [64, 36], [65, 37], [66, 38], [67, 40], [68, 41], [69, 43], [70, 44], [71, 47], [72, 49], [73, 50], [74, 51], [75, 52], [76, 53], [77, 54], [78, 56], [79, 31], [80, 57], [81, 58], [82, 59], [83, 79], [84, 80], [85, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "getNotLoadedPluginJARs", "code": "\tprivate static void getNotLoadedPluginJARs(Vector returnValue,\n\t\tString dir, String[] list)\n\t{\nloop:\t\tfor(int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tString name = list[i];\n\t\t\tif(!name.toLowerCase().endsWith(\".jar\"))\n\t\t\t\tcontinue loop;\n\n\t\t\tString path = MiscUtilities.constructPath(dir,name);\n\n\t\t\tfor(int j = 0; j < jars.size(); j++)\n\t\t\t{\n\t\t\t\tEditPlugin.JAR jar = (EditPlugin.JAR)\n\t\t\t\t\tjars.elementAt(j);\n\t\t\t\tString jarPath = jar.getPath();\n\t\t\t\tString jarName = MiscUtilities.getFileName(jarPath);\n\n\t\t\t\tif(path.equals(jarPath))\n\t\t\t\t\tcontinue loop;\n\t\t\t\telse if(!new File(jarPath).exists()\n\t\t\t\t\t&& name.equals(jarName))\n\t\t\t\t\tcontinue loop;\n\t\t\t}\n\n\t\t\treturnValue.addElement(path);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [6, 11], [8, 12], [8, 13], [1, 14], [6, 15], [6, 16], [6, 17], [6, 18], [11, 19], [7, 20], [13, 21], [15, 22], [15, 23], [15, 24], [6, 25], [21, 26], [22, 27], [22, 28], [16, 29], [17, 30], [28, 31], [28, 32], [18, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 6], [12, 8], [13, 8], [14, 1], [15, 6], [16, 6], [17, 6], [18, 6], [19, 11], [20, 7], [21, 13], [22, 15], [23, 15], [24, 15], [25, 6], [26, 21], [27, 22], [28, 22], [29, 16], [30, 17], [31, 28], [32, 28], [33, 18], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "gotoMarker", "code": "\tprivate static void gotoMarker(final View view, final Buffer buffer,\n\t\tfinal String marker)\n\t{\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tint pos;\n\n\t\t\t\t// Handle line number\n\t\t\t\tif(marker.startsWith(\"+line:\"))\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tint line = Integer.parseInt(marker.substring(6));\n\t\t\t\t\t\tpos = buffer.getLineStartOffset(line - 1);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Handle marker\n\t\t\t\telse if(marker.startsWith(\"+marker:\"))\n\t\t\t\t{\n\t\t\t\t\tif(marker.length() != 9)\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\tMarker m = buffer.getMarker(marker.charAt(8));\n\t\t\t\t\tif(m == null)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tpos = m.getPosition();\n\t\t\t\t}\n\t\t\t\t// Can't happen\n\t\t\t\telse\n\t\t\t\t\tthrow new InternalError();\n\n\t\t\t\tif(view != null && view.getBuffer() == buffer)\n\t\t\t\t\tview.getTextArea().setCaretPosition(pos);\n\t\t\t\telse\n\t\t\t\t\tbuffer.setIntegerProperty(Buffer.CARET,pos);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [7, 10], [8, 11], [8, 12], [7, 13], [7, 14], [10, 15], [10, 16], [11, 17], [11, 18], [8, 19], [12, 20], [14, 21], [15, 22], [16, 23], [17, 24], [11, 25], [11, 26], [11, 27], [18, 28], [19, 29], [19, 30], [11, 31], [25, 32], [25, 33], [27, 34], [27, 35], [29, 36], [19, 37], [31, 38], [33, 39], [26, 40], [35, 41], [35, 42], [37, 43], [30, 44], [40, 45], [43, 46], [44, 47], [45, 48], [46, 49], [47, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 7], [11, 8], [12, 8], [13, 7], [14, 7], [15, 10], [16, 10], [17, 11], [18, 11], [19, 8], [20, 12], [21, 14], [22, 15], [23, 16], [24, 17], [25, 11], [26, 11], [27, 11], [28, 18], [29, 19], [30, 19], [31, 11], [32, 25], [33, 25], [34, 27], [35, 27], [36, 29], [37, 19], [38, 31], [39, 33], [40, 26], [41, 35], [42, 35], [43, 37], [44, 30], [45, 40], [46, 43], [47, 44], [48, 45], [49, 46], [50, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "addBufferToList", "code": "\tprivate static void addBufferToList(Buffer buffer)\n\t{\n\t\t// if only one, clean, 'untitled' buffer is open, we\n\t\t// replace it\n\t\tif(viewCount <= 1 && buffersFirst != null\n\t\t\t&& buffersFirst == buffersLast\n\t\t\t&& buffersFirst.isUntitled()\n\t\t\t&& !buffersFirst.isDirty())\n\t\t{\n\t\t\tBuffer oldBuffersFirst = buffersFirst;\n\t\t\tbuffersFirst = buffersLast = buffer;\n\t\t\tEditBus.send(new BufferUpdate(oldBuffersFirst,null,\n\t\t\t\tBufferUpdate.CLOSED));\n\t\t\treturn;\n\t\t}\n\n\t\tbufferCount++;\n\n\t\tif(buffersFirst == null)\n\t\t{\n\t\t\tbuffersFirst = buffersLast = buffer;\n\t\t\treturn;\n\t\t}\n\t\t//{{{ Sort buffer list\n\n\t\t/**\n\t\t * Note that we use either buffer.getPath() or buffer.toString().\n\t\t * If the former, then the list is sorted first by directory,\n\t\t * then by file name; if the latter, it's the opposite.\n\t\t *\n\t\t * (Buffer.toString() returns \"NAME (DIR)\")\n\t\t */\n\t\telse if(sortBuffers)\n\t\t{\n\t\t\tString name1 = (sortByName ? buffer.toString()\n\t\t\t\t: buffer.getPath());\n\n\t\t\tBuffer _buffer = buffersFirst;\n\t\t\twhile(_buffer != null)\n\t\t\t{\n\t\t\t\tString name2 = (sortByName ? _buffer.toString()\n\t\t\t\t\t: _buffer.getPath());\n\t\t\t\tif(MiscUtilities.compareStrings(name1,name2,true) <= 0)\n\t\t\t\t{\n\t\t\t\t\tbuffer.next = _buffer;\n\t\t\t\t\tbuffer.prev = _buffer.prev;\n\t\t\t\t\t_buffer.prev = buffer;\n\t\t\t\t\tif(_buffer != buffersFirst)\n\t\t\t\t\t\tbuffer.prev.next = buffer;\n\t\t\t\t\telse\n\t\t\t\t\t\tbuffersFirst = buffer;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t_buffer = _buffer.next;\n\t\t\t}\n\t\t} //}}}\n\n\t\tbuffer.prev = buffersLast;\n\t\tbuffersLast.next = buffer;\n\t\tbuffersLast = buffer;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [2, 9], [1, 10], [8, 11], [2, 12], [2, 13], [9, 14], [9, 15], [7, 16], [7, 17], [7, 18], [1, 19], [2, 20], [2, 21], [15, 22], [15, 23], [16, 24], [19, 25], [20, 26], [21, 27], [23, 28], [23, 29], [16, 30], [16, 31], [24, 32], [18, 33], [26, 34], [29, 35], [29, 36], [16, 37], [30, 38], [33, 39], [33, 40], [35, 41], [36, 42], [30, 43], [30, 44], [38, 45], [38, 46], [31, 47], [44, 48], [30, 49], [30, 50], [30, 51], [46, 52], [47, 53], [47, 54], [44, 55], [44, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 2], [10, 1], [11, 8], [12, 2], [13, 2], [14, 9], [15, 9], [16, 7], [17, 7], [18, 7], [19, 1], [20, 2], [21, 2], [22, 15], [23, 15], [24, 16], [25, 19], [26, 20], [27, 21], [28, 23], [29, 23], [30, 16], [31, 16], [32, 24], [33, 18], [34, 26], [35, 29], [36, 29], [37, 16], [38, 30], [39, 33], [40, 33], [41, 35], [42, 36], [43, 30], [44, 30], [45, 38], [46, 38], [47, 31], [48, 44], [49, 30], [50, 30], [51, 30], [52, 46], [53, 47], [54, 47], [55, 44], [56, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "removeBufferFromList", "code": "\tprivate static void removeBufferFromList(Buffer buffer)\n\t{\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tbufferCount--;\n\n\t\t\tif(buffer == buffersFirst && buffer == buffersLast)\n\t\t\t{\n\t\t\t\tbuffersFirst = buffersLast = null;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(buffer == buffersFirst)\n\t\t\t{\n\t\t\t\tbuffersFirst = buffer.next;\n\t\t\t\tbuffer.next.prev = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.prev.next = buffer.next;\n\t\t\t}\n\n\t\t\tif(buffer == buffersLast)\n\t\t\t{\n\t\t\t\tbuffersLast = buffersLast.prev;\n\t\t\t\tbuffer.prev.next = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.next.prev = buffer.prev;\n\t\t\t}\n\n\t\t\t// fixes the hang that can occur if we 'save as' to a new\n\t\t\t// filename which requires re-sorting\n\t\t\tbuffer.next = buffer.prev = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "IF", "IF", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [4, 10], [8, 11], [8, 12], [9, 13], [2, 14], [2, 15], [2, 16], [3, 17], [3, 18], [3, 19], [4, 20], [15, 21], [18, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [10, 4], [11, 8], [12, 8], [13, 9], [14, 2], [15, 2], [16, 2], [17, 3], [18, 3], [19, 3], [20, 4], [21, 15], [22, 18], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "addViewToList", "code": "\tprivate static void addViewToList(View view)\n\t{\n\t\tviewCount++;\n\n\t\tif(viewsFirst == null)\n\t\t\tviewsFirst = viewsLast = view;\n\t\telse\n\t\t{\n\t\t\tview.prev = viewsLast;\n\t\t\tviewsLast.next = view;\n\t\t\tviewsLast = view;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "removeViewFromList", "code": "\tprivate static void removeViewFromList(View view)\n\t{\n\t\tviewCount--;\n\n\t\tif(viewsFirst == viewsLast)\n\t\t{\n\t\t\tviewsFirst = viewsLast = null;\n\t\t\treturn;\n\t\t}\n\n\t\tif(view == viewsFirst)\n\t\t{\n\t\t\tviewsFirst = view.next;\n\t\t\tview.next.prev = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview.prev.next = view.next;\n\t\t}\n\n\t\tif(view == viewsLast)\n\t\t{\n\t\t\tviewsLast = viewsLast.prev;\n\t\t\tview.prev.next = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview.next.prev = view.prev;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [1, 9], [1, 10], [1, 11], [2, 12], [2, 13], [2, 14], [3, 15], [10, 16], [13, 17], [15, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 1], [10, 1], [11, 1], [12, 2], [13, 2], [14, 2], [15, 3], [16, 10], [17, 13], [18, 15], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "closeView", "code": "\tprivate static void closeView(View view, boolean callExit)\n\t{\n\t\tif(viewsFirst == viewsLast && callExit)\n\t\t\texit(view,false); /* exit does editor event & save */\n\t\telse\n\t\t{\n\t\t\tEditBus.send(new ViewUpdate(view,ViewUpdate.CLOSED));\n\n\t\t\tview.close();\n\t\t\tremoveViewFromList(view);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [5, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 5], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "loadModeCatalog", "code": "\tprivate static void loadModeCatalog(String path, boolean resource)\n\t{\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"Loading mode catalog file \" + path);\n\n\t\tModeCatalogHandler handler = new ModeCatalogHandler(\n\t\t\tMiscUtilities.getParentOfPath(path),resource);\n\t\tXmlParser parser = new XmlParser();\n\t\tparser.setHandler(handler);\n\t\ttry\n\t\t{\n\t\t\tInputStream _in;\n\t\t\tif(resource)\n\t\t\t\t_in = jEdit.class.getResourceAsStream(path);\n\t\t\telse\n\t\t\t\t_in = new FileInputStream(path);\n\t\t\tBufferedReader in = new BufferedReader(\n\t\t\t\tnew InputStreamReader(_in));\n\t\t\tparser.parse(null, null, in);\n\t\t}\n\t\tcatch(XmlException xe)\n\t\t{\n\t\t\tint line = xe.getLine();\n\t\t\tString message = xe.getMessage();\n\t\t\tLog.log(Log.ERROR,jEdit.class,path + \":\" + line\n\t\t\t\t+ \": \" + message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [0, 11], [0, 12], [7, 13], [7, 14], [1, 15], [2, 16], [3, 17], [12, 18], [6, 19], [7, 20], [15, 21], [15, 22], [8, 23], [9, 24], [9, 25], [17, 26], [18, 27], [20, 28], [13, 29], [14, 30], [23, 31], [24, 32], [25, 33], [28, 34], [34, 35], [34, 36], [36, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 0], [12, 0], [13, 7], [14, 7], [15, 1], [16, 2], [17, 3], [18, 12], [19, 6], [20, 7], [21, 15], [22, 15], [23, 8], [24, 9], [25, 9], [26, 17], [27, 18], [28, 20], [29, 13], [30, 14], [31, 23], [32, 24], [33, 25], [34, 28], [35, 34], [36, 34], [37, 36], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "loadPlugins", "code": "\tprivate static void loadPlugins(String directory)\n\t{\n\t\tLog.log(Log.NOTICE,jEdit.class,\"Loading plugins from \"\n\t\t\t+ directory);\n\n\t\tFile file = new File(directory);\n\t\tif(!(file.exists() && file.isDirectory()))\n\t\t\treturn;\n\t\tString[] plugins = file.list();\n\t\tif(plugins == null)\n\t\t\treturn;\n\n\t\tMiscUtilities.quicksort(plugins,new MiscUtilities.StringICaseCompare());\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tString plugin = plugins[i];\n\t\t\tif(!plugin.toLowerCase().endsWith(\".jar\"))\n\t\t\t\tcontinue;\n\n\t\t\tString path = MiscUtilities.constructPath(directory,plugin);\n\n\t\t\tif(plugin.equals(\"EditBuddy.jar\")\n\t\t\t\t|| plugin.equals(\"PluginManager.jar\")\n\t\t\t\t|| plugin.equals(\"Firewall.jar\")\n\t\t\t\t|| plugin.equals(\"Tidy.jar\"))\n\t\t\t{\n\t\t\t\tpluginError(path,\"plugin-error.obsolete\",null);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,\n\t\t\t\t\t\"Scanning JAR file: \" + path);\n\t\t\t\tnew JARClassLoader(path);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,\"Cannot load\"\n\t\t\t\t\t+ \" plugin \" + plugin);\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\n\t\t\t\tString[] args = { io.toString() };\n\t\t\t\tpluginError(path,\"plugin-error.load-error\",args);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "TRY", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CATCH", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [2, 10], [4, 11], [4, 12], [0, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [8, 19], [10, 20], [3, 21], [12, 22], [12, 23], [5, 24], [13, 25], [14, 26], [15, 27], [17, 28], [17, 29], [1, 30], [25, 31], [26, 32], [14, 33], [14, 34], [15, 35], [27, 36], [27, 37], [16, 38], [29, 39], [26, 40], [26, 41], [26, 42], [34, 43], [15, 44], [36, 45], [37, 46], [37, 47], [39, 48], [40, 49], [42, 50], [43, 51], [44, 52], [44, 53], [46, 54], [47, 55], [47, 56], [32, 57], [50, 58], [55, 59], [56, 60], [58, 61], [58, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 2], [11, 4], [12, 4], [13, 0], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 8], [20, 10], [21, 3], [22, 12], [23, 12], [24, 5], [25, 13], [26, 14], [27, 15], [28, 17], [29, 17], [30, 1], [31, 25], [32, 26], [33, 14], [34, 14], [35, 15], [36, 27], [37, 27], [38, 16], [39, 29], [40, 26], [41, 26], [42, 26], [43, 34], [44, 15], [45, 36], [46, 37], [47, 37], [48, 39], [49, 40], [50, 42], [51, 43], [52, 44], [53, 44], [54, 46], [55, 47], [56, 47], [57, 32], [58, 50], [59, 55], [60, 56], [61, 58], [62, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "initKeyBindings", "code": "\tprivate static void initKeyBindings()\n\t{\n\t\tinputHandler.removeAllKeyBindings();\n\n\t\tEditAction[] actions = getActions();\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tEditAction action = actions[i];\n\n\t\t\tString shortcut1 = jEdit.getProperty(action.getName()\n\t\t\t\t+ \".shortcut\");\n\t\t\tif(shortcut1 != null)\n\t\t\t\tinputHandler.addKeyBinding(shortcut1,action);\n\n\t\t\tString shortcut2 = jEdit.getProperty(action.getName()\n\t\t\t\t+ \".shortcut2\");\n\t\t\tif(shortcut2 != null)\n\t\t\t\tinputHandler.addKeyBinding(shortcut2,action);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [7, 12], [1, 13], [5, 14], [11, 15], [6, 16], [7, 17], [12, 18], [8, 19], [16, 20], [19, 21], [20, 22], [20, 23], [21, 24], [21, 25], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 7], [13, 1], [14, 5], [15, 11], [16, 6], [17, 7], [18, 12], [19, 8], [20, 16], [21, 19], [22, 20], [23, 20], [24, 21], [25, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jEdit", "code": "\tprivate jEdit() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.6-514", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/ProjectHelper.java", "language": "java", "name": "org.apache.tools.ant.ProjectHelper", "code": "public class ProjectHelper {\n    /** The URI for ant name space */\n    public static final String ANT_CORE_URI    = \"antlib:org.apache.tools.ant\";\n\n    /** The URI for antlib current definitions */\n    public static final String ANT_CURRENT_URI      = \"ant:current\";\n\n    /** The URI for defined types/tasks - the format is antlib:<package> */\n    public static final String ANTLIB_URI     = \"antlib:\";\n\n    /** Polymorphic attribute  */\n    public static final String ANT_TYPE = \"ant-type\";\n\n    /**\n     * Name of JVM system property which provides the name of the\n     * ProjectHelper class to use.\n     */\n    public static final String HELPER_PROPERTY =\n        \"org.apache.tools.ant.ProjectHelper\";\n\n    /**\n     * The service identifier in jars which provide Project Helper\n     * implementations.\n     */\n    public static final String SERVICE_ID =\n        \"META-INF/services/org.apache.tools.ant.ProjectHelper\";\n\n    /**\n     * Configures the project with the contents of the specified XML file.\n     *\n     * @param project The project to configure. Must not be <code>null</code>.\n     * @param buildFile An XML file giving the project's configuration.\n     *                  Must not be <code>null</code>.\n     *\n     * @deprecated Use the non-static parse method\n     * @exception BuildException if the configuration is invalid or cannot\n     *                           be read\n     */\n    public static void configureProject(Project project, File buildFile)\n        throws BuildException {\n        ProjectHelper helper = ProjectHelper.getProjectHelper();\n        project.addReference(\"ant.projectHelper\", helper);\n        helper.parse(project, buildFile);\n    }\n\n    /** Default constructor */\n    public ProjectHelper() {\n    }\n\n\n\n    private Vector importStack = new Vector();\n\n    /** EXPERIMENTAL WILL_CHANGE\n     *\n     */\n\n    /** EXPERIMENTAL WILL_CHANGE\n     *  Import stack.\n     *  Used to keep track of imported files. Error reporting should\n     *  display the import path.\n     *\n     * @return the stack of import source objects.\n     */\n    public Vector getImportStack() {\n        return importStack;\n    }\n\n\n    /**\n     * Parses the project file, configuring the project as it goes.\n     *\n     * @param project The project for the resulting ProjectHelper to configure.\n     *                Must not be <code>null</code>.\n     * @param source The source for XML configuration. A helper must support\n     *               at least File, for backward compatibility. Helpers may\n     *               support URL, InputStream, etc or specialized types.\n     *\n     * @since Ant1.5\n     * @exception BuildException if the configuration is invalid or cannot\n     *                           be read\n     */\n    public void parse(Project project, Object source) throws BuildException {\n        throw new BuildException(\"ProjectHelper.parse() must be implemented \"\n            + \"in a helper plugin \" + this.getClass().getName());\n    }\n\n\n    /**\n     * Discovers a project helper instance. Uses the same patterns\n     * as JAXP, commons-logging, etc: a system property, a JDK1.3\n     * service discovery, default.\n     *\n     * @return a ProjectHelper, either a custom implementation\n     * if one is available and configured, or the default implementation\n     * otherwise.\n     *\n     * @exception BuildException if a specified helper class cannot\n     * be loaded/instantiated.\n     */\n    public static ProjectHelper getProjectHelper()\n        throws BuildException {\n        ProjectHelper helper = null;\n\n        String helperClass = System.getProperty(HELPER_PROPERTY);\n        try {\n            if (helperClass != null) {\n                helper = newHelper(helperClass);\n            }\n        } catch (SecurityException e) {\n            System.out.println(\"Unable to load ProjectHelper class \\\"\"\n                + helperClass + \" specified in system property \"\n                + HELPER_PROPERTY);\n        }\n\n        if (helper == null) {\n            try {\n                ClassLoader classLoader = LoaderUtils.getContextClassLoader();\n                InputStream is = null;\n                if (classLoader != null) {\n                    is = classLoader.getResourceAsStream(SERVICE_ID);\n                }\n                if (is == null) {\n                    is = ClassLoader.getSystemResourceAsStream(SERVICE_ID);\n                }\n\n                if (is != null) {\n                    InputStreamReader isr;\n                    try {\n                        isr = new InputStreamReader(is, \"UTF-8\");\n                    } catch (java.io.UnsupportedEncodingException e) {\n                        isr = new InputStreamReader(is);\n                    }\n                    BufferedReader rd = new BufferedReader(isr);\n\n                    String helperClassName = rd.readLine();\n                    rd.close();\n\n                    if (helperClassName != null\n                        && !\"\".equals(helperClassName)) {\n\n                        helper = newHelper(helperClassName);\n                    }\n                }\n            } catch (Exception ex) {\n                System.out.println(\"Unable to load ProjectHelper \"\n                    + \"from service \\\"\" + SERVICE_ID);\n            }\n        }\n\n        if (helper != null) {\n            return helper;\n        } else {\n            try {\n                return new ProjectHelper2();\n            } catch (Throwable e) {\n                String message = \"Unable to load default ProjectHelper due to \"\n                    + e.getClass().getName() + \": \" + e.getMessage();\n                throw new BuildException(message, e);\n            }\n        }\n    }\n\n    /**\n     * Creates a new helper instance from the name of the class.\n     * It'll first try the thread class loader, then Class.forName()\n     * will load from the same loader that loaded this class.\n     *\n     * @param helperClass The name of the class to create an instance\n     *                    of. Must not be <code>null</code>.\n     *\n     * @return a new instance of the specified class.\n     *\n     * @exception BuildException if the class cannot be found or\n     * cannot be appropriate instantiated.\n     */\n    private static ProjectHelper newHelper(String helperClass)\n        throws BuildException {\n        ClassLoader classLoader = LoaderUtils.getContextClassLoader();\n        try {\n            Class clazz = null;\n            if (classLoader != null) {\n                try {\n                    clazz = classLoader.loadClass(helperClass);\n                } catch (ClassNotFoundException ex) {\n                }\n            }\n            if (clazz == null) {\n                clazz = Class.forName(helperClass);\n            }\n            return ((ProjectHelper) clazz.newInstance());\n        } catch (Exception e) {\n            throw new BuildException(e);\n        }\n    }\n\n    /**\n     * JDK1.1 compatible access to the context class loader.\n     * Cut&paste from JAXP.\n     *\n     * @deprecated Use LoaderUtils.getContextClassLoader()\n     * @return the current context class loader, or <code>null</code>\n     * if the context class loader is unavailable.\n     */\n    public static ClassLoader getContextClassLoader() {\n        if (!LoaderUtils.isContextLoaderAvailable()) {\n            return null;\n        }\n\n        return LoaderUtils.getContextClassLoader();\n    }\n\n\n    /**\n     * Configures an object using an introspection handler.\n     *\n     * @param target The target object to be configured.\n     *               Must not be <code>null</code>.\n     * @param attrs  A list of attributes to configure within the target.\n     *               Must not be <code>null</code>.\n     * @param project The project containing the target.\n     *                Must not be <code>null</code>.\n     *\n     * @deprecated Use IntrospectionHelper for each property\n     * @exception BuildException if any of the attributes can't be handled by\n     *                           the target\n     */\n    public static void configure(Object target, AttributeList attrs,\n                                 Project project) throws BuildException {\n        if (target instanceof TypeAdapter) {\n            target = ((TypeAdapter) target).getProxy();\n        }\n\n        IntrospectionHelper ih =\n            IntrospectionHelper.getHelper(target.getClass());\n\n        project.addBuildListener(ih);\n\n        for (int i = 0; i < attrs.getLength(); i++) {\n            String value = replaceProperties(project, attrs.getValue(i),\n                                             project.getProperties());\n            try {\n                ih.setAttribute(project, target,\n                                attrs.getName(i).toLowerCase(Locale.US), value);\n\n            } catch (BuildException be) {\n                if (!attrs.getName(i).equals(\"id\")) {\n                    throw be;\n                }\n            }\n        }\n    }\n\n    /**\n     * Adds the content of #PCDATA sections to an element.\n     *\n     * @param project The project containing the target.\n     *                Must not be <code>null</code>.\n     * @param target  The target object to be configured.\n     *                Must not be <code>null</code>.\n     * @param buf A character array of the text within the element.\n     *            Will not be <code>null</code>.\n     * @param start The start element in the array.\n     * @param count The number of characters to read from the array.\n     *\n     * @exception BuildException if the target object doesn't accept text\n     */\n    public static void addText(Project project, Object target, char[] buf,\n        int start, int count) throws BuildException {\n        addText(project, target, new String(buf, start, count));\n    }\n\n    /**\n     * Adds the content of #PCDATA sections to an element.\n     *\n     * @param project The project containing the target.\n     *                Must not be <code>null</code>.\n     * @param target  The target object to be configured.\n     *                Must not be <code>null</code>.\n     * @param text    Text to add to the target.\n     *                May be <code>null</code>, in which case this\n     *                method call is a no-op.\n     *\n     * @exception BuildException if the target object doesn't accept text\n     */\n    public static void addText(Project project, Object target, String text)\n        throws BuildException {\n\n        if (text == null) {\n            return;\n        }\n\n        if (target instanceof TypeAdapter) {\n            target = ((TypeAdapter) target).getProxy();\n        }\n\n        IntrospectionHelper.getHelper(target.getClass()).addText(project,\n            target, text);\n    }\n\n    /**\n     * Stores a configured child element within its parent object.\n     *\n     * @param project Project containing the objects.\n     *                May be <code>null</code>.\n     * @param parent  Parent object to add child to.\n     *                Must not be <code>null</code>.\n     * @param child   Child object to store in parent.\n     *                Should not be <code>null</code>.\n     * @param tag     Name of element which generated the child.\n     *                May be <code>null</code>, in which case\n     *                the child is not stored.\n     */\n    public static void storeChild(Project project, Object parent,\n         Object child, String tag) {\n        IntrospectionHelper ih\n            = IntrospectionHelper.getHelper(parent.getClass());\n        ih.storeElement(project, parent, child, tag);\n    }\n\n    /**\n     * Replaces <code>${xxx}</code> style constructions in the given value with\n     * the string value of the corresponding properties.\n     *\n     * @param project The project containing the properties to replace.\n     *                Must not be <code>null</code>.\n     *\n     * @param value The string to be scanned for property references.\n     *              May be <code>null</code>.\n     *\n     * @exception BuildException if the string contains an opening\n     *                           <code>${</code> without a closing\n     *                           <code>}</code>\n     * @return the original string with the properties replaced, or\n     *         <code>null</code> if the original string is <code>null</code>.\n     *\n     * @deprecated Use project.replaceProperties()\n     * @since 1.5\n     */\n     public static String replaceProperties(Project project, String value)\n            throws BuildException {\n         return project.replaceProperties(value);\n     }\n\n    /**\n     * Replaces <code>${xxx}</code> style constructions in the given value\n     * with the string value of the corresponding data types.\n     *\n     * @param project The container project. This is used solely for\n     *                logging purposes. Must not be <code>null</code>.\n     * @param value The string to be scanned for property references.\n     *              May be <code>null</code>, in which case this\n     *              method returns immediately with no effect.\n     * @param keys  Mapping (String to String) of property names to their\n     *              values. Must not be <code>null</code>.\n     *\n     * @exception BuildException if the string contains an opening\n     *                           <code>${</code> without a closing\n     *                           <code>}</code>\n     * @return the original string with the properties replaced, or\n     *         <code>null</code> if the original string is <code>null</code>.\n     * @deprecated Use PropertyHelper\n     */\n     public static String replaceProperties(Project project, String value,\n         Hashtable keys) throws BuildException {\n        PropertyHelper ph = PropertyHelper.getPropertyHelper(project);\n        return ph.replaceProperties(null, value, keys);\n    }\n\n    /**\n     * Parses a string containing <code>${xxx}</code> style property\n     * references into two lists. The first list is a collection\n     * of text fragments, while the other is a set of string property names.\n     * <code>null</code> entries in the first list indicate a property\n     * reference from the second list.\n     *\n     * @param value     Text to parse. Must not be <code>null</code>.\n     * @param fragments List to add text fragments to.\n     *                  Must not be <code>null</code>.\n     * @param propertyRefs List to add property names to.\n     *                     Must not be <code>null</code>.\n     *\n     * @deprecated Use PropertyHelper\n     * @exception BuildException if the string contains an opening\n     *                           <code>${</code> without a closing\n     *                           <code>}</code>\n     */\n    public static void parsePropertyString(String value, Vector fragments,\n                                           Vector propertyRefs)\n        throws BuildException {\n        PropertyHelper.parsePropertyStringDefault(value, fragments,\n                propertyRefs);\n    }\n    /**\n     * Map a namespaced {uri,name} to an internal string format.\n     * For BC purposes the names from the ant core uri will be\n     * mapped to \"name\", other names will be mapped to\n     * uri + \":\" + name.\n     * @param uri   The namepace URI\n     * @param name  The localname\n     * @return      The stringified form of the ns name\n     */\n    public static String genComponentName(String uri, String name) {\n        if (uri == null || uri.equals(\"\") || uri.equals(ANT_CORE_URI)) {\n            return name;\n        }\n        return uri + \":\" + name;\n    }\n\n    /**\n     * extract a uri from a component name\n     *\n     * @param componentName  The stringified form for {uri, name}\n     * @return               The uri or \"\" if not present\n     */\n    public static String extractUriFromComponentName(String componentName) {\n        if (componentName == null) {\n            return \"\";\n        }\n        int index = componentName.lastIndexOf(':');\n        if (index == -1) {\n            return \"\";\n        }\n        return componentName.substring(0, index);\n    }\n\n    /**\n     * extract the element name from a component name\n     *\n     * @param componentName  The stringified form for {uri, name}\n     * @return               The element name of the component\n     */\n    public static String extractNameFromComponentName(String componentName) {\n        int index = componentName.lastIndexOf(':');\n        if (index == -1) {\n            return componentName;\n        }\n        return componentName.substring(index + 1);\n    }\n\n    /**\n     * Add location to build exception.\n     * @param ex the build exception, if the build exception\n     *           does not include\n     * @param newLocation the location of the calling task (may be null)\n     * @return a new build exception based in the build exception with\n     *         location set to newLocation. If the original exception\n     *         did not have a location, just return the build exception\n     */\n    public static BuildException addLocationToBuildException(\n        BuildException ex, Location newLocation) {\n        if (ex.getLocation() == null || ex.getMessage() == null) {\n            return ex;\n        }\n        String errorMessage\n            = \"The following error occurred while executing this line:\"\n            + System.getProperty(\"line.separator\")\n            + ex.getLocation().toString()\n            + ex.getMessage();\n        if (newLocation == null) {\n            return new BuildException(errorMessage, ex);\n        } else {\n            return new BuildException(\n                errorMessage, ex, newLocation);", "functions": [{"function_name": "configureProject", "code": "    public static void configureProject(Project project, File buildFile)\n        throws BuildException {\n        ProjectHelper helper = ProjectHelper.getProjectHelper();\n        project.addReference(\"ant.projectHelper\", helper);\n        helper.parse(project, buildFile);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getImportStack", "code": "    public Vector getImportStack() {\n        return importStack;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parse", "code": "    public void parse(Project project, Object source) throws BuildException {\n        throw new BuildException(\"ProjectHelper.parse() must be implemented \"\n            + \"in a helper plugin \" + this.getClass().getName());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [5, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 5], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getProjectHelper", "code": "    public static ProjectHelper getProjectHelper()\n        throws BuildException {\n        ProjectHelper helper = null;\n\n        String helperClass = System.getProperty(HELPER_PROPERTY);\n        try {\n            if (helperClass != null) {\n                helper = newHelper(helperClass);\n            }\n        } catch (SecurityException e) {\n            System.out.println(\"Unable to load ProjectHelper class \\\"\"\n                + helperClass + \" specified in system property \"\n                + HELPER_PROPERTY);\n        }\n\n        if (helper == null) {\n            try {\n                ClassLoader classLoader = LoaderUtils.getContextClassLoader();\n                InputStream is = null;\n                if (classLoader != null) {\n                    is = classLoader.getResourceAsStream(SERVICE_ID);\n                }\n                if (is == null) {\n                    is = ClassLoader.getSystemResourceAsStream(SERVICE_ID);\n                }\n\n                if (is != null) {\n                    InputStreamReader isr;\n                    try {\n                        isr = new InputStreamReader(is, \"UTF-8\");\n                    } catch (java.io.UnsupportedEncodingException e) {\n                        isr = new InputStreamReader(is);\n                    }\n                    BufferedReader rd = new BufferedReader(isr);\n\n                    String helperClassName = rd.readLine();\n                    rd.close();\n\n                    if (helperClassName != null\n                        && !\"\".equals(helperClassName)) {\n\n                        helper = newHelper(helperClassName);\n                    }\n                }\n            } catch (Exception ex) {\n                System.out.println(\"Unable to load ProjectHelper \"\n                    + \"from service \\\"\" + SERVICE_ID);\n            }\n        }\n\n        if (helper != null) {\n            return helper;\n        } else {\n            try {\n                return new ProjectHelper2();\n            } catch (Throwable e) {\n                String message = \"Unable to load default ProjectHelper due to \"\n                    + e.getClass().getName() + \": \" + e.getMessage();\n                throw new BuildException(message, e);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "TRY", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "TRY", "RETURN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CATCH", "RETURN", "CATCH", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CATCH", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [3, 9], [1, 10], [1, 11], [6, 12], [2, 13], [7, 14], [9, 15], [4, 16], [5, 17], [10, 18], [10, 19], [13, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [8, 26], [15, 27], [18, 28], [18, 29], [19, 30], [21, 31], [22, 32], [23, 33], [26, 34], [9, 35], [28, 36], [20, 37], [21, 38], [21, 39], [21, 40], [21, 41], [21, 42], [31, 43], [32, 44], [33, 45], [24, 46], [25, 47], [34, 48], [35, 49], [29, 50], [37, 51], [38, 52], [21, 53], [41, 54], [22, 55], [23, 56], [48, 57], [48, 58], [50, 59], [50, 60], [51, 61], [52, 62], [52, 63], [39, 64], [40, 65], [41, 66], [55, 67], [56, 68], [58, 69], [60, 70], [60, 71], [61, 72], [61, 73], [38, 74], [62, 75], [63, 76], [54, 77], [66, 78], [71, 79], [71, 80], [74, 81], [77, 82], [78, 83], [79, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 3], [10, 1], [11, 1], [12, 6], [13, 2], [14, 7], [15, 9], [16, 4], [17, 5], [18, 10], [19, 10], [20, 13], [21, 13], [22, 13], [23, 13], [24, 13], [25, 13], [26, 8], [27, 15], [28, 18], [29, 18], [30, 19], [31, 21], [32, 22], [33, 23], [34, 26], [35, 9], [36, 28], [37, 20], [38, 21], [39, 21], [40, 21], [41, 21], [42, 21], [43, 31], [44, 32], [45, 33], [46, 24], [47, 25], [48, 34], [49, 35], [50, 29], [51, 37], [52, 38], [53, 21], [54, 41], [55, 22], [56, 23], [57, 48], [58, 48], [59, 50], [60, 50], [61, 51], [62, 52], [63, 52], [64, 39], [65, 40], [66, 41], [67, 55], [68, 56], [69, 58], [70, 60], [71, 60], [72, 61], [73, 61], [74, 38], [75, 62], [76, 63], [77, 54], [78, 66], [79, 71], [80, 71], [81, 74], [82, 77], [83, 78], [84, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "newHelper", "code": "    private static ProjectHelper newHelper(String helperClass)\n        throws BuildException {\n        ClassLoader classLoader = LoaderUtils.getContextClassLoader();\n        try {\n            Class clazz = null;\n            if (classLoader != null) {\n                try {\n                    clazz = classLoader.loadClass(helperClass);\n                } catch (ClassNotFoundException ex) {\n                }\n            }\n            if (clazz == null) {\n                clazz = Class.forName(helperClass);\n            }\n            return ((ProjectHelper) clazz.newInstance());\n        } catch (Exception e) {\n            throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "RETURN", "IF", "IF", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [6, 10], [7, 11], [2, 12], [9, 13], [5, 14], [10, 15], [7, 16], [11, 17], [8, 18], [6, 19], [16, 20], [19, 21], [16, 22], [22, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 6], [11, 7], [12, 2], [13, 9], [14, 5], [15, 10], [16, 7], [17, 11], [18, 8], [19, 6], [20, 16], [21, 19], [22, 16], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getContextClassLoader", "code": "    public static ClassLoader getContextClassLoader() {\n        if (!LoaderUtils.isContextLoaderAvailable()) {\n            return null;\n        }\n\n        return LoaderUtils.getContextClassLoader();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "configure", "code": "    public static void configure(Object target, AttributeList attrs,\n                                 Project project) throws BuildException {\n        if (target instanceof TypeAdapter) {\n            target = ((TypeAdapter) target).getProxy();\n        }\n\n        IntrospectionHelper ih =\n            IntrospectionHelper.getHelper(target.getClass());\n\n        project.addBuildListener(ih);\n\n        for (int i = 0; i < attrs.getLength(); i++) {\n            String value = replaceProperties(project, attrs.getValue(i),\n                                             project.getProperties());\n            try {\n                ih.setAttribute(project, target,\n                                attrs.getName(i).toLowerCase(Locale.US), value);\n\n            } catch (BuildException be) {\n                if (!attrs.getName(i).equals(\"id\")) {\n                    throw be;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "TRY", "VAR_DECL", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [3, 9], [1, 10], [1, 11], [7, 12], [2, 13], [10, 14], [1, 15], [13, 16], [3, 17], [14, 18], [10, 19], [11, 20], [18, 21], [19, 22], [20, 23], [20, 24], [18, 25], [21, 26], [22, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 3], [10, 1], [11, 1], [12, 7], [13, 2], [14, 10], [15, 1], [16, 13], [17, 3], [18, 14], [19, 10], [20, 11], [21, 18], [22, 19], [23, 20], [24, 20], [25, 18], [26, 21], [27, 22], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "addText", "code": "    public static void addText(Project project, Object target, char[] buf,\n        int start, int count) throws BuildException {\n        addText(project, target, new String(buf, start, count));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addText", "code": "    public static void addText(Project project, Object target, String text)\n        throws BuildException {\n\n        if (text == null) {\n            return;\n        }\n\n        if (target instanceof TypeAdapter) {\n            target = ((TypeAdapter) target).getProxy();\n        }\n\n        IntrospectionHelper.getHelper(target.getClass()).addText(project,\n            target, text);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [6, 9], [6, 10], [2, 11], [8, 12], [1, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 6], [10, 6], [11, 2], [12, 8], [13, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "storeChild", "code": "    public static void storeChild(Project project, Object parent,\n         Object child, String tag) {\n        IntrospectionHelper ih\n            = IntrospectionHelper.getHelper(parent.getClass());\n        ih.storeElement(project, parent, child, tag);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "replaceProperties", "code": "     public static String replaceProperties(Project project, String value)\n            throws BuildException {\n         return project.replaceProperties(value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "replaceProperties", "code": "     public static String replaceProperties(Project project, String value,\n         Hashtable keys) throws BuildException {\n        PropertyHelper ph = PropertyHelper.getPropertyHelper(project);\n        return ph.replaceProperties(null, value, keys);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "parsePropertyString", "code": "    public static void parsePropertyString(String value, Vector fragments,\n                                           Vector propertyRefs)\n        throws BuildException {\n        PropertyHelper.parsePropertyStringDefault(value, fragments,\n                propertyRefs);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "genComponentName", "code": "    public static String genComponentName(String uri, String name) {\n        if (uri == null || uri.equals(\"\") || uri.equals(ANT_CORE_URI)) {\n            return name;\n        }\n        return uri + \":\" + name;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [6, 9], [6, 10], [7, 11], [10, 12], [10, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 6], [10, 6], [11, 7], [12, 10], [13, 10], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "extractUriFromComponentName", "code": "    public static String extractUriFromComponentName(String componentName) {\n        if (componentName == null) {\n            return \"\";\n        }\n        int index = componentName.lastIndexOf(':');\n        if (index == -1) {\n            return \"\";\n        }\n        return componentName.substring(0, index);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [6, 9], [2, 10], [7, 11], [3, 12], [4, 13], [8, 14], [10, 15], [12, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 6], [10, 2], [11, 7], [12, 3], [13, 4], [14, 8], [15, 10], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "extractNameFromComponentName", "code": "    public static String extractNameFromComponentName(String componentName) {\n        int index = componentName.lastIndexOf(':');\n        if (index == -1) {\n            return componentName;\n        }\n        return componentName.substring(index + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [6, 9], [3, 10], [7, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 6], [10, 3], [11, 7], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "addLocationToBuildException", "code": "    public static BuildException addLocationToBuildException(\n        BuildException ex, Location newLocation) {\n        if (ex.getLocation() == null || ex.getMessage() == null) {\n            return ex;\n        }\n        String errorMessage\n            = \"The following error occurred while executing this line:\"\n            + System.getProperty(\"line.separator\")\n            + ex.getLocation().toString()\n            + ex.getMessage();\n        if (newLocation == null) {\n            return new BuildException(errorMessage, ex);\n        } else {\n            return new BuildException(\n                errorMessage, ex, newLocation);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [1, 8], [1, 9], [6, 10], [2, 11], [3, 12], [7, 13], [7, 14], [8, 15], [9, 16], [11, 17], [11, 18], [13, 19], [13, 20], [14, 21], [14, 22], [18, 23], [18, 24], [23, 25], [24, 26], [24, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 1], [9, 1], [10, 6], [11, 2], [12, 3], [13, 7], [14, 7], [15, 8], [16, 9], [17, 11], [18, 11], [19, 13], [20, 13], [21, 14], [22, 14], [23, 18], [24, 18], [25, 23], [26, 24], [27, 24], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "ProjectHelper", "code": "    public ProjectHelper() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.4-2606", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/language/PhpExpression.java", "language": "java", "name": "org.apache.camel.model.language.PhpExpression", "code": "@XmlRootElement(name = \"php\")\npublic class PhpExpression extends ExpressionType {\n    public PhpExpression() {\n    }\n\n    public PhpExpression(String expression) {\n        super(expression);\n    }\n\n    public String getLanguage() {\n        return \"php\";", "functions": [{"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return \"php\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "PhpExpression", "code": "    public PhpExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PhpExpression", "code": "    public PhpExpression(String expression) {\n        super(expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.0-1453", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/util/FactoryFinder.java", "language": "java", "name": "org.apache.camel.util.FactoryFinder", "code": "public class FactoryFinder {\n    private final String path;\n    private final ConcurrentHashMap classMap = new ConcurrentHashMap();\n\n    public FactoryFinder() {\n        this(\"META-INF/services/org/apache/camel/\");\n    }\n\n    public FactoryFinder(String path) {\n        this.path = path;\n    }\n\n    /**\n     * Creates a new instance of the given key\n     *\n     * @param key is the key to add to the path to find a text file\n     *            containing the factory name\n     * @return a newly created instance\n     */\n    public Object newInstance(String key)\n            throws IllegalAccessException, InstantiationException, IOException, ClassNotFoundException {\n        return newInstance(key, (String) null);\n    }\n\n    public Object newInstance(String key, String propertyPrefix)\n            throws IllegalAccessException, InstantiationException, IOException, ClassNotFoundException {\n        Class clazz = findClass(key, propertyPrefix);\n        return clazz.newInstance();\n    }\n\n    public Object newInstance(String key, Injector injector) throws IOException, ClassNotFoundException {\n        return newInstance(key, injector, null);\n    }\n\n    public Object newInstance(String key, Injector injector, String propertyPrefix) throws IOException, ClassNotFoundException {\n        Class type = findClass(key, propertyPrefix);\n        return injector.newInstance(type);\n    }\n\n    public Class findClass(String key) throws ClassNotFoundException, IOException {\n        return findClass(key, null);\n    }\n\n    public Class findClass(String key, String propertyPrefix) throws ClassNotFoundException, IOException {\n        if (propertyPrefix == null) {\n            propertyPrefix = \"\";\n        }\n\n        Class clazz = (Class) classMap.get(propertyPrefix + key);\n        if (clazz == null) {\n            clazz = newInstance(doFindFactoryProperies(key), propertyPrefix);\n            classMap.put(propertyPrefix + key, clazz);\n        }\n        return clazz;\n    }\n\n    private Class newInstance(Properties properties, String propertyPrefix) throws ClassNotFoundException, IOException {\n\n        String className = properties.getProperty(propertyPrefix + \"class\");\n        if (className == null) {\n            throw new IOException(\"Expected property is missing: \" + propertyPrefix + \"class\");\n        }\n        Class clazz = null;\n        ClassLoader loader = Thread.currentThread().getContextClassLoader();\n        if (loader != null) {\n            try {\n                clazz = loader.loadClass(className);\n            }\n            catch (ClassNotFoundException e) {\n            }\n        }\n        if (clazz == null) {\n            clazz = FactoryFinder.class.getClassLoader().loadClass(className);\n        }\n        return clazz;\n    }\n\n    private Properties doFindFactoryProperies(String key) throws IOException {\n        String uri = path + key;\n\n        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n        if (classLoader == null) {\n            classLoader = getClass().getClassLoader();\n        }\n        InputStream in = classLoader.getResourceAsStream(uri);\n        if (in == null) {\n            in = FactoryFinder.class.getClassLoader().getResourceAsStream(uri);\n            if (in == null) {\n                throw new NoFactoryAvailableException(uri);\n            }\n        }\n\n        BufferedInputStream reader = null;\n        try {\n            reader = new BufferedInputStream(in);\n            Properties properties = new Properties();\n            properties.load(reader);\n            return properties;\n        }\n        finally {\n            try {\n                reader.close();", "functions": [{"function_name": "newInstance", "code": "    public Object newInstance(String key)\n            throws IllegalAccessException, InstantiationException, IOException, ClassNotFoundException {\n        return newInstance(key, (String) null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "newInstance", "code": "    public Object newInstance(String key, String propertyPrefix)\n            throws IllegalAccessException, InstantiationException, IOException, ClassNotFoundException {\n        Class clazz = findClass(key, propertyPrefix);\n        return clazz.newInstance();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "newInstance", "code": "    public Object newInstance(String key, Injector injector) throws IOException, ClassNotFoundException {\n        return newInstance(key, injector, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "newInstance", "code": "    public Object newInstance(String key, Injector injector, String propertyPrefix) throws IOException, ClassNotFoundException {\n        Class type = findClass(key, propertyPrefix);\n        return injector.newInstance(type);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "findClass", "code": "    public Class findClass(String key) throws ClassNotFoundException, IOException {\n        return findClass(key, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "findClass", "code": "    public Class findClass(String key, String propertyPrefix) throws ClassNotFoundException, IOException {\n        if (propertyPrefix == null) {\n            propertyPrefix = \"\";\n        }\n\n        Class clazz = (Class) classMap.get(propertyPrefix + key);\n        if (clazz == null) {\n            clazz = newInstance(doFindFactoryProperies(key), propertyPrefix);\n            classMap.put(propertyPrefix + key, clazz);\n        }\n        return clazz;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [7, 9], [8, 10], [2, 11], [2, 12], [3, 13], [4, 14], [11, 15], [12, 16], [13, 17], [14, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 7], [10, 8], [11, 2], [12, 2], [13, 3], [14, 4], [15, 11], [16, 12], [17, 13], [18, 14], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "newInstance", "code": "    private Class newInstance(Properties properties, String propertyPrefix) throws ClassNotFoundException, IOException {\n\n        String className = properties.getProperty(propertyPrefix + \"class\");\n        if (className == null) {\n            throw new IOException(\"Expected property is missing: \" + propertyPrefix + \"class\");\n        }\n        Class clazz = null;\n        ClassLoader loader = Thread.currentThread().getContextClassLoader();\n        if (loader != null) {\n            try {\n                clazz = loader.loadClass(className);\n            }\n            catch (ClassNotFoundException e) {\n            }\n        }\n        if (clazz == null) {\n            clazz = FactoryFinder.class.getClassLoader().loadClass(className);\n        }\n        return clazz;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CATCH", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [6, 12], [10, 13], [3, 14], [11, 15], [4, 16], [5, 17], [6, 18], [12, 19], [7, 20], [2, 21], [14, 22], [16, 23], [18, 24], [20, 25], [21, 26], [21, 27], [14, 28], [24, 29], [25, 30], [28, 31], [29, 32], [29, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 6], [13, 10], [14, 3], [15, 11], [16, 4], [17, 5], [18, 6], [19, 12], [20, 7], [21, 2], [22, 14], [23, 16], [24, 18], [25, 20], [26, 21], [27, 21], [28, 14], [29, 24], [30, 25], [31, 28], [32, 29], [33, 29], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "doFindFactoryProperies", "code": "    private Properties doFindFactoryProperies(String key) throws IOException {\n        String uri = path + key;\n\n        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n        if (classLoader == null) {\n            classLoader = getClass().getClassLoader();\n        }\n        InputStream in = classLoader.getResourceAsStream(uri);\n        if (in == null) {\n            in = FactoryFinder.class.getClassLoader().getResourceAsStream(uri);\n            if (in == null) {\n                throw new NoFactoryAvailableException(uri);\n            }\n        }\n\n        BufferedInputStream reader = null;\n        try {\n            reader = new BufferedInputStream(in);\n            Properties properties = new Properties();\n            properties.load(reader);\n            return properties;\n        }\n        finally {\n            try {\n                reader.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "TRY", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CATCH", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [3, 12], [5, 13], [9, 14], [1, 15], [1, 16], [2, 17], [3, 18], [12, 19], [4, 20], [13, 21], [6, 22], [7, 23], [9, 24], [11, 25], [16, 26], [18, 27], [3, 28], [5, 29], [22, 30], [18, 31], [27, 32], [28, 33], [28, 34], [29, 35], [31, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 3], [13, 5], [14, 9], [15, 1], [16, 1], [17, 2], [18, 3], [19, 12], [20, 4], [21, 13], [22, 6], [23, 7], [24, 9], [25, 11], [26, 16], [27, 18], [28, 3], [29, 5], [30, 22], [31, 18], [32, 27], [33, 28], [34, 28], [35, 29], [36, 31], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "FactoryFinder", "code": "    public FactoryFinder() {\n        this(\"META-INF/services/org/apache/camel/\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FactoryFinder", "code": "    public FactoryFinder(String path) {\n        this.path = path;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6479", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/Whitespace.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Whitespace", "code": "final class Whitespace extends TopLevelElement {\n    public static final int USE_PREDICATE  = 0;\n    public static final int STRIP_SPACE    = 1;\n    public static final int PRESERVE_SPACE = 2;\n\n    public static final int RULE_NONE      = 0; \n\n    private String _elementList;\n    private int    _action;\n    private int    _importPrecedence;\n\n    /**\n     * Auxillary class for encapsulating a single strip/preserve rule\n     */\n    private final static class WhitespaceRule {\n\tprivate final int _action;\n\tprivate int    _type;\n\tprivate int    _priority;\n\t\n\t/**\n\t * Strip/preserve rule constructor\n\t */\n\tpublic WhitespaceRule(int action, String element, int precedence) {\n\t    _action = action;\n\n\t    final int colon = element.indexOf(':');\n\t    if (colon >= 0) {\n\t\t_namespace = element.substring(0,colon);\n\t\t_element = element.substring(colon+1,element.length());\n\t    }\n\t    else {\n\t\t_namespace = Constants.EMPTYSTRING;\n\t\t_element = element;\n\t    }\n\n\t    _priority = precedence << 2;\n\n\t    if (_element.equals(\"*\")) {\n\t\tif (_namespace == Constants.EMPTYSTRING) {\n\t\t}\n\t\telse {\n\t\t}\n\t    }\n\t    else {\n\t    }\n\t}\n\n\t/**\n\t * For sorting rules depending on priority\n\t */\n\tpublic int compareTo(WhitespaceRule other) {\n\t    return _priority < other._priority\n\t\t? -1\n\t\t: _priority > other._priority ? 1 : 0;\n\t}\n\n\tpublic int getAction() { return _action; }\n\tpublic int getStrength() { return _type; }\n\tpublic int getPriority() { return _priority; }\n\tpublic String getElement() { return _element; }\n\tpublic String getNamespace() { return _namespace; }\n    }\n\n    /**\n     * Parse the attributes of the xsl:strip/preserve-space element.\n     * The element should have not contents (ignored if any).\n     */\n    public void parseContents(Parser parser) {\n\t_action = _qname.getLocalPart().endsWith(\"strip-space\") \n\t    ? STRIP_SPACE : PRESERVE_SPACE;\n\n\t_importPrecedence = parser.getCurrentImportPrecedence();\n\n\t_elementList = getAttribute(\"elements\");\n\tif (_elementList == null || _elementList.length() == 0) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"elements\");\n\t    return;\n\t}\n\n\tfinal SymbolTable stable = parser.getSymbolTable();\n\tStringTokenizer list = new StringTokenizer(_elementList);\n\tStringBuffer elements = new StringBuffer(Constants.EMPTYSTRING);\n\n\twhile (list.hasMoreElements()) {\n\t    String token = list.nextToken();\n\t    String prefix;\n\t    String namespace;\n\t    int col;\n\n\t    if ((col = token.indexOf(':')) != -1) {\n\t\tprefix  = token.substring(0,col);\n\t    }\n\t    else {\n\t\tprefix = Constants.EMPTYSTRING;\n\t    }\n\n\t    namespace = lookupNamespace(prefix);\n\t    if (namespace != null)\n\t\telements.append(namespace+\":\"+\n\t\t\t\ttoken.substring(col+1,token.length()));\n\t    else\n\t\telements.append(token);\n\n\t    if (list.hasMoreElements())\n\t\telements.append(\" \");\n\t}\n\t_elementList = elements.toString();\n    }\n\n\n    /**\n     * De-tokenize the elements listed in the 'elements' attribute and\n     * instanciate a set of strip/preserve rules.\n     */\n    public Vector getRules() {\n\tfinal Vector rules = new Vector();\n\tfinal StringTokenizer list = new StringTokenizer(_elementList);\n\twhile (list.hasMoreElements()) {\n\t    rules.add(new WhitespaceRule(_action,\n\t\t\t\t\t list.nextToken(),\n\t\t\t\t\t _importPrecedence));\n\t}\n\treturn rules;\n    }\n    \n    \n    /**\n     * Scans through the rules vector and looks for a rule of higher\n     * priority that contradicts the current rule.\n     */\n    private static WhitespaceRule findContradictingRule(Vector rules,\n\t\t\t\t\t\t\tWhitespaceRule rule) {\n\tfor (int i = 0; i < rules.size(); i++) {\n\t    WhitespaceRule currentRule = (WhitespaceRule)rules.elementAt(i);\n\t    if (currentRule == rule) {\n\t\treturn null;\n\t    }\n\t    \n\t    /*\n\t     * See if there is a contradicting rule with higher priority.\n\t     * If the rules has the same action then this rule is redundant,\n\t     * if they have different action then this rule will never win.\n\t     */\n\t    switch (currentRule.getStrength()) {\n\t    case RULE_ALL:\n\t\treturn currentRule;\n\t\t\n\t    case RULE_ELEMENT:\n\t\tif (!rule.getElement().equals(currentRule.getElement())) {\n\t\t    break;\n\t\t}\n\t    case RULE_NAMESPACE:\n\t\tif (rule.getNamespace().equals(currentRule.getNamespace())) {\n\t\t    return currentRule;\n\t\t}\n\t\tbreak;\n\t    }\n\t}\n\treturn null;\n    }\n\n\n    /**\n     * Orders a set or rules by priority, removes redundant rules and rules\n     * that are shadowed by stronger, contradicting rules.\n     */\n    private static int prioritizeRules(Vector rules) {\n\tWhitespaceRule currentRule;\n\tint defaultAction = PRESERVE_SPACE;\n\n\tquicksort(rules, 0, rules.size()-1);\n\n\tboolean strip = false;\n\tfor (int i = 0; i < rules.size(); i++) {\n\t    currentRule = (WhitespaceRule)rules.elementAt(i);\n\t    if (currentRule.getAction() == STRIP_SPACE) {\n\t\tstrip = true;\n\t    }\n\t}\n\tif (!strip) {\n\t    rules.removeAllElements();\n\t    return PRESERVE_SPACE;\n\t}\n\n\tfor (int idx = 0; idx < rules.size(); ) {\n\t    currentRule = (WhitespaceRule)rules.elementAt(idx);\n\t\n\t    if (findContradictingRule(rules,currentRule) != null) {\n\t\trules.remove(idx);\n\t    }\n\t    else {\n\t\tif (currentRule.getStrength() == RULE_ALL) {\n\t\t    defaultAction = currentRule.getAction();\n\t\t    for (int i = idx; i < rules.size(); i++) {\n\t\t\trules.removeElementAt(i);\n\t\t    }\n\t\t}\n\t\tidx++;\n\t    }\n\t}\n\n\tif (rules.size() == 0) {\n\t    return defaultAction;\n\t}\n\n\tdo {\n\t    currentRule = (WhitespaceRule)rules.lastElement();\n\t    if (currentRule.getAction() == defaultAction) {\n\t\trules.removeElementAt(rules.size() - 1);\n\t    }\n\t    else {\n\t\tbreak;\n\t    }\n\t} while (rules.size() > 0);\n\t\n\treturn defaultAction;\n    }\n\n    public static void compileStripSpace(BranchHandle strip[], \n\t\t\t\t\t int sCount,\n\t\t\t\t\t InstructionList il) {\n\tfinal InstructionHandle target = il.append(ICONST_1);\n\til.append(IRETURN);\n\tfor (int i = 0; i < sCount; i++) {\n\t    strip[i].setTarget(target);\n\t}\n    }\n\n    public static void compilePreserveSpace(BranchHandle preserve[], \n\t\t\t\t\t    int pCount,\n\t\t\t\t\t    InstructionList il) {\n\tfinal InstructionHandle target = il.append(ICONST_0);\n\til.append(IRETURN);\n\tfor (int i = 0; i < pCount; i++) {\n\t    preserve[i].setTarget(target);\n\t}\n    }\n\n    /*\n    private static void compileDebug(ClassGenerator classGen,\n\t\t\t\t     InstructionList il) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal int prt = cpg.addMethodref(\"java/lang/System/out\",\n\t\t\t\t\t \"println\",\n\t\t\t\t\t \"(Ljava/lang/String;)V\");\n\til.append(DUP);\n\til.append(new INVOKESTATIC(prt));\n    }\n    */\n\n    /**\n     * Compiles the predicate method\n     */\n    private static void compilePredicate(Vector rules,\n\t\t\t\t\t int defaultAction,\n\t\t\t\t\t ClassGenerator classGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\n\tfinal MethodGenerator stripSpace =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL ,\n\t\t\torg.apache.bcel.generic.Type.BOOLEAN, \n\t\t\tnew org.apache.bcel.generic.Type[] {\n\t\t\t    Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t    org.apache.bcel.generic.Type.INT,\n\t\t\t    org.apache.bcel.generic.Type.INT\n\t\t\t},\n\t\t\tnew String[] { \"dom\",\"node\",\"type\" },\n\t\t\t\"stripSpace\",classGen.getClassName(),il,cpg);\n\n\tclassGen.addInterface(\"org/apache/xalan/xsltc/StripFilter\");\n\n\tfinal int paramDom = stripSpace.getLocalIndex(\"dom\");\n\tfinal int paramCurrent = stripSpace.getLocalIndex(\"node\");\n\tfinal int paramType = stripSpace.getLocalIndex(\"type\");\n\n\tBranchHandle strip[] = new BranchHandle[rules.size()];\n\tBranchHandle preserve[] = new BranchHandle[rules.size()];\n\tint sCount = 0;\n\tint pCount = 0;\n\n\tfor (int i = 0; i<rules.size(); i++) {\n\t    WhitespaceRule rule = (WhitespaceRule)rules.elementAt(i);\n\n\t    final int gns = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getNamespaceName\",\n\t\t\t\t\t\t      \"(I)Ljava/lang/String;\");\n\n\t    final int strcmp = cpg.addMethodref(\"java/lang/String\",\n\t\t\t\t\t\t\"compareTo\",\n\t\t\t\t\t\t\"(Ljava/lang/String;)I\");\n\n\t    if (rule.getStrength() == RULE_NAMESPACE) {\n\t\til.append(new ALOAD(paramDom));\n\t\til.append(new ILOAD(paramCurrent));\n\t\til.append(new INVOKEINTERFACE(gns,2));\n\t\til.append(new PUSH(cpg, rule.getNamespace()));\n\t\til.append(new INVOKEVIRTUAL(strcmp));\n\t\til.append(ICONST_0);\n\n\t\tif (rule.getAction() == STRIP_SPACE) {\n\t\t    strip[sCount++] = il.append(new IF_ICMPEQ(null));\n\t\t}\n\t\telse {\n\t\t    preserve[pCount++] = il.append(new IF_ICMPEQ(null));\n\t\t}\n\t    }\n\t    else if (rule.getStrength() == RULE_ELEMENT) {\n\t\tfinal Parser parser = classGen.getParser();\n\t\tQName qname;\n\t\tif (rule.getNamespace() != Constants.EMPTYSTRING )\n\t\t    qname = parser.getQName(rule.getNamespace(), null,\n\t\t\t\t\t    rule.getElement());\n\t\telse\n\t\t    qname = parser.getQName(rule.getElement());\n\n\t\tfinal int elementType = xsltc.registerElement(qname);\n\t\til.append(new ILOAD(paramType));\n\t\til.append(new PUSH(cpg, elementType));\n\n\t\tif (rule.getAction() == STRIP_SPACE)\n\t\t    strip[sCount++] = il.append(new IF_ICMPEQ(null));\n\t\telse\n\t\t    preserve[pCount++] = il.append(new IF_ICMPEQ(null));\n\t    }\n\t}\n\n\tif (defaultAction == STRIP_SPACE) {\n\t    compileStripSpace(strip, sCount, il);\n\t    compilePreserveSpace(preserve, pCount, il);\n\t}\n\telse {\n\t    compilePreserveSpace(preserve, pCount, il);\n\t    compileStripSpace(strip, sCount, il);\n\t}\n\n\tstripSpace.stripAttributes(true);\n\tstripSpace.setMaxLocals();\n\tstripSpace.setMaxStack();\n\tstripSpace.removeNOPs();\n\n\tclassGen.addMethod(stripSpace.getMethod());\n    }\n\n    /**\n     * Compiles the predicate method\n     */\n    private static void compileDefault(int defaultAction,\n\t\t\t\t       ClassGenerator classGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\n\tfinal MethodGenerator stripSpace =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL ,\n\t\t\torg.apache.bcel.generic.Type.BOOLEAN, \n\t\t\tnew org.apache.bcel.generic.Type[] {\n\t\t\t    Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t    org.apache.bcel.generic.Type.INT,\n\t\t\t    org.apache.bcel.generic.Type.INT\n\t\t\t},\n\t\t\tnew String[] { \"dom\",\"node\",\"type\" },\n\t\t\t\"stripSpace\",classGen.getClassName(),il,cpg);\n\n\tclassGen.addInterface(\"org/apache/xalan/xsltc/StripFilter\");\n\n\tif (defaultAction == STRIP_SPACE)\n\t    il.append(ICONST_1);\n\telse\n\t    il.append(ICONST_0);\n\til.append(IRETURN);\n\n\tstripSpace.stripAttributes(true);\n\tstripSpace.setMaxLocals();\n\tstripSpace.setMaxStack();\n\tstripSpace.removeNOPs();\n\n\tclassGen.addMethod(stripSpace.getMethod());\n    }\n\n\n    /**\n     * Takes a vector of WhitespaceRule objects and generates a predicate\n     * method. This method returns the translets default action for handling\n     * whitespace text-nodes:\n     *    - USE_PREDICATE  (run the method generated by this method)\n     *    - STRIP_SPACE    (always strip whitespace text-nodes)\n     *    - PRESERVE_SPACE (always preserve whitespace text-nodes)\n     */\n    public static int translateRules(Vector rules,\n\t\t\t\t     ClassGenerator classGen) {\n\tfinal int defaultAction = prioritizeRules(rules);\n\tif (rules.size() == 0) {\n\t    compileDefault(defaultAction,classGen);\n\t    return defaultAction;\n\t}\n\tcompilePredicate(rules, defaultAction, classGen);\n\treturn USE_PREDICATE;\n    }\n\n    /**\n     * Sorts a range of rules with regard to PRIORITY only\n     */\n    private static void quicksort(Vector rules, int p, int r) {\n\twhile (p < r) {\n\t    final int q = partition(rules, p, r);\n\t    quicksort(rules, p, q);\n\t    p = q + 1;\n\t}\n    }\n    \n    /**\n     * Used with quicksort method above\n     */\n    private static int partition(Vector rules, int p, int r) {\n\tfinal WhitespaceRule x = (WhitespaceRule)rules.elementAt((p+r) >>> 1);\n\tint i = p - 1, j = r + 1;\n\twhile (true) {\n\t    while (x.compareTo((WhitespaceRule)rules.elementAt(--j)) < 0) {\n\t    }\n\t    while (x.compareTo((WhitespaceRule)rules.elementAt(++i)) > 0) {\n\t    }\n\t    if (i < j) {\n\t\tfinal WhitespaceRule tmp = (WhitespaceRule)rules.elementAt(i);\n\t\trules.setElementAt(rules.elementAt(j), i);\n\t\trules.setElementAt(tmp, j);\n\t    }\n\t    else {\n\t\treturn j;\n\t    }\n\t}\n    }\n    \n    /**\n     * Type-check contents/attributes - nothing to do...\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n    }\n\n    /**\n     * This method should not produce any code\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {", "functions": [{"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\t_action = _qname.getLocalPart().endsWith(\"strip-space\") \n\t    ? STRIP_SPACE : PRESERVE_SPACE;\n\n\t_importPrecedence = parser.getCurrentImportPrecedence();\n\n\t_elementList = getAttribute(\"elements\");\n\tif (_elementList == null || _elementList.length() == 0) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"elements\");\n\t    return;\n\t}\n\n\tfinal SymbolTable stable = parser.getSymbolTable();\n\tStringTokenizer list = new StringTokenizer(_elementList);\n\tStringBuffer elements = new StringBuffer(Constants.EMPTYSTRING);\n\n\twhile (list.hasMoreElements()) {\n\t    String token = list.nextToken();\n\t    String prefix;\n\t    String namespace;\n\t    int col;\n\n\t    if ((col = token.indexOf(':')) != -1) {\n\t\tprefix  = token.substring(0,col);\n\t    }\n\t    else {\n\t\tprefix = Constants.EMPTYSTRING;\n\t    }\n\n\t    namespace = lookupNamespace(prefix);\n\t    if (namespace != null)\n\t\telements.append(namespace+\":\"+\n\t\t\t\ttoken.substring(col+1,token.length()));\n\t    else\n\t\telements.append(token);\n\n\t    if (list.hasMoreElements())\n\t\telements.append(\" \");\n\t}\n\t_elementList = elements.toString();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [5, 9], [0, 10], [0, 11], [0, 12], [7, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [2, 21], [3, 22], [4, 23], [5, 24], [9, 25], [9, 26], [10, 27], [11, 28], [12, 29], [14, 30], [15, 31], [1, 32], [16, 33], [5, 34], [25, 35], [25, 36], [26, 37], [27, 38], [29, 39], [14, 40], [15, 41], [15, 42], [31, 43], [32, 44], [33, 45], [33, 46], [20, 47], [34, 48], [39, 49], [40, 50], [42, 51], [16, 52], [16, 53], [46, 54], [49, 55], [51, 56], [51, 57], [53, 58], [54, 59], [56, 60], [56, 61], [57, 62], [58, 63], [61, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 5], [10, 0], [11, 0], [12, 0], [13, 7], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 2], [22, 3], [23, 4], [24, 5], [25, 9], [26, 9], [27, 10], [28, 11], [29, 12], [30, 14], [31, 15], [32, 1], [33, 16], [34, 5], [35, 25], [36, 25], [37, 26], [38, 27], [39, 29], [40, 14], [41, 15], [42, 15], [43, 31], [44, 32], [45, 33], [46, 33], [47, 20], [48, 34], [49, 39], [50, 40], [51, 42], [52, 16], [53, 16], [54, 46], [55, 49], [56, 51], [57, 51], [58, 53], [59, 54], [60, 56], [61, 56], [62, 57], [63, 58], [64, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "getRules", "code": "    public Vector getRules() {\n\tfinal Vector rules = new Vector();\n\tfinal StringTokenizer list = new StringTokenizer(_elementList);\n\twhile (list.hasMoreElements()) {\n\t    rules.add(new WhitespaceRule(_action,\n\t\t\t\t\t list.nextToken(),\n\t\t\t\t\t _importPrecedence));\n\t}\n\treturn rules;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [2, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 2], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "findContradictingRule", "code": "    private static WhitespaceRule findContradictingRule(Vector rules,\n\t\t\t\t\t\t\tWhitespaceRule rule) {\n\tfor (int i = 0; i < rules.size(); i++) {\n\t    WhitespaceRule currentRule = (WhitespaceRule)rules.elementAt(i);\n\t    if (currentRule == rule) {\n\t\treturn null;\n\t    }\n\t    \n\t    /*\n\t     * See if there is a contradicting rule with higher priority.\n\t     * If the rules has the same action then this rule is redundant,\n\t     * if they have different action then this rule will never win.\n\t     */\n\t    switch (currentRule.getStrength()) {\n\t    case RULE_ALL:\n\t\treturn currentRule;\n\t\t\n\t    case RULE_ELEMENT:\n\t\tif (!rule.getElement().equals(currentRule.getElement())) {\n\t\t    break;\n\t\t}\n\t    case RULE_NAMESPACE:\n\t\tif (rule.getNamespace().equals(currentRule.getNamespace())) {\n\t\t    return currentRule;\n\t\t}\n\t\tbreak;\n\t    }\n\t}\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "SWITCH", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "RETURN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [7, 11], [8, 12], [2, 13], [7, 14], [7, 15], [7, 16], [7, 17], [8, 18], [15, 19], [16, 20], [18, 21], [9, 22], [15, 23], [19, 24], [16, 25], [20, 26], [24, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 7], [12, 8], [13, 2], [14, 7], [15, 7], [16, 7], [17, 7], [18, 8], [19, 15], [20, 16], [21, 18], [22, 9], [23, 15], [24, 19], [25, 16], [26, 20], [27, 24], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "prioritizeRules", "code": "    private static int prioritizeRules(Vector rules) {\n\tWhitespaceRule currentRule;\n\tint defaultAction = PRESERVE_SPACE;\n\n\tquicksort(rules, 0, rules.size()-1);\n\n\tboolean strip = false;\n\tfor (int i = 0; i < rules.size(); i++) {\n\t    currentRule = (WhitespaceRule)rules.elementAt(i);\n\t    if (currentRule.getAction() == STRIP_SPACE) {\n\t\tstrip = true;\n\t    }\n\t}\n\tif (!strip) {\n\t    rules.removeAllElements();\n\t    return PRESERVE_SPACE;\n\t}\n\n\tfor (int idx = 0; idx < rules.size(); ) {\n\t    currentRule = (WhitespaceRule)rules.elementAt(idx);\n\t\n\t    if (findContradictingRule(rules,currentRule) != null) {\n\t\trules.remove(idx);\n\t    }\n\t    else {\n\t\tif (currentRule.getStrength() == RULE_ALL) {\n\t\t    defaultAction = currentRule.getAction();\n\t\t    for (int i = idx; i < rules.size(); i++) {\n\t\t\trules.removeElementAt(i);\n\t\t    }\n\t\t}\n\t\tidx++;\n\t    }\n\t}\n\n\tif (rules.size() == 0) {\n\t    return defaultAction;\n\t}\n\n\tdo {\n\t    currentRule = (WhitespaceRule)rules.lastElement();\n\t    if (currentRule.getAction() == defaultAction) {\n\t\trules.removeElementAt(rules.size() - 1);\n\t    }\n\t    else {\n\t\tbreak;\n\t    }\n\t} while (rules.size() > 0);\n\t\n\treturn defaultAction;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "LOOP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "RETURN", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LOOP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [4, 13], [6, 14], [0, 15], [2, 16], [11, 17], [11, 18], [3, 19], [12, 20], [12, 21], [4, 22], [13, 23], [5, 24], [6, 25], [14, 26], [7, 27], [15, 28], [15, 29], [16, 30], [2, 31], [22, 32], [4, 33], [4, 34], [5, 35], [25, 36], [6, 37], [6, 38], [28, 39], [28, 40], [16, 41], [30, 42], [22, 43], [32, 44], [32, 45], [36, 46], [16, 47], [31, 48], [43, 49], [22, 50], [33, 51], [25, 52], [37, 53], [47, 54], [43, 55], [49, 56], [52, 57], [54, 58], [54, 59], [55, 60], [43, 61], [60, 62], [61, 63], [55, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 4], [14, 6], [15, 0], [16, 2], [17, 11], [18, 11], [19, 3], [20, 12], [21, 12], [22, 4], [23, 13], [24, 5], [25, 6], [26, 14], [27, 7], [28, 15], [29, 15], [30, 16], [31, 2], [32, 22], [33, 4], [34, 4], [35, 5], [36, 25], [37, 6], [38, 6], [39, 28], [40, 28], [41, 16], [42, 30], [43, 22], [44, 32], [45, 32], [46, 36], [47, 16], [48, 31], [49, 43], [50, 22], [51, 33], [52, 25], [53, 37], [54, 47], [55, 43], [56, 49], [57, 52], [58, 54], [59, 54], [60, 55], [61, 43], [62, 60], [63, 61], [64, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "compileStripSpace", "code": "    public static void compileStripSpace(BranchHandle strip[], \n\t\t\t\t\t int sCount,\n\t\t\t\t\t InstructionList il) {\n\tfinal InstructionHandle target = il.append(ICONST_1);\n\til.append(IRETURN);\n\tfor (int i = 0; i < sCount; i++) {\n\t    strip[i].setTarget(target);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [1, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 1], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "compilePreserveSpace", "code": "    public static void compilePreserveSpace(BranchHandle preserve[], \n\t\t\t\t\t    int pCount,\n\t\t\t\t\t    InstructionList il) {\n\tfinal InstructionHandle target = il.append(ICONST_0);\n\til.append(IRETURN);\n\tfor (int i = 0; i < pCount; i++) {\n\t    preserve[i].setTarget(target);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [1, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 1], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "compilePredicate", "code": "    private static void compilePredicate(Vector rules,\n\t\t\t\t\t int defaultAction,\n\t\t\t\t\t ClassGenerator classGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\n\tfinal MethodGenerator stripSpace =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL ,\n\t\t\torg.apache.bcel.generic.Type.BOOLEAN, \n\t\t\tnew org.apache.bcel.generic.Type[] {\n\t\t\t    Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t    org.apache.bcel.generic.Type.INT,\n\t\t\t    org.apache.bcel.generic.Type.INT\n\t\t\t},\n\t\t\tnew String[] { \"dom\",\"node\",\"type\" },\n\t\t\t\"stripSpace\",classGen.getClassName(),il,cpg);\n\n\tclassGen.addInterface(\"org/apache/xalan/xsltc/StripFilter\");\n\n\tfinal int paramDom = stripSpace.getLocalIndex(\"dom\");\n\tfinal int paramCurrent = stripSpace.getLocalIndex(\"node\");\n\tfinal int paramType = stripSpace.getLocalIndex(\"type\");\n\n\tBranchHandle strip[] = new BranchHandle[rules.size()];\n\tBranchHandle preserve[] = new BranchHandle[rules.size()];\n\tint sCount = 0;\n\tint pCount = 0;\n\n\tfor (int i = 0; i<rules.size(); i++) {\n\t    WhitespaceRule rule = (WhitespaceRule)rules.elementAt(i);\n\n\t    final int gns = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getNamespaceName\",\n\t\t\t\t\t\t      \"(I)Ljava/lang/String;\");\n\n\t    final int strcmp = cpg.addMethodref(\"java/lang/String\",\n\t\t\t\t\t\t\"compareTo\",\n\t\t\t\t\t\t\"(Ljava/lang/String;)I\");\n\n\t    if (rule.getStrength() == RULE_NAMESPACE) {\n\t\til.append(new ALOAD(paramDom));\n\t\til.append(new ILOAD(paramCurrent));\n\t\til.append(new INVOKEINTERFACE(gns,2));\n\t\til.append(new PUSH(cpg, rule.getNamespace()));\n\t\til.append(new INVOKEVIRTUAL(strcmp));\n\t\til.append(ICONST_0);\n\n\t\tif (rule.getAction() == STRIP_SPACE) {\n\t\t    strip[sCount++] = il.append(new IF_ICMPEQ(null));\n\t\t}\n\t\telse {\n\t\t    preserve[pCount++] = il.append(new IF_ICMPEQ(null));\n\t\t}\n\t    }\n\t    else if (rule.getStrength() == RULE_ELEMENT) {\n\t\tfinal Parser parser = classGen.getParser();\n\t\tQName qname;\n\t\tif (rule.getNamespace() != Constants.EMPTYSTRING )\n\t\t    qname = parser.getQName(rule.getNamespace(), null,\n\t\t\t\t\t    rule.getElement());\n\t\telse\n\t\t    qname = parser.getQName(rule.getElement());\n\n\t\tfinal int elementType = xsltc.registerElement(qname);\n\t\til.append(new ILOAD(paramType));\n\t\til.append(new PUSH(cpg, elementType));\n\n\t\tif (rule.getAction() == STRIP_SPACE)\n\t\t    strip[sCount++] = il.append(new IF_ICMPEQ(null));\n\t\telse\n\t\t    preserve[pCount++] = il.append(new IF_ICMPEQ(null));\n\t    }\n\t}\n\n\tif (defaultAction == STRIP_SPACE) {\n\t    compileStripSpace(strip, sCount, il);\n\t    compilePreserveSpace(preserve, pCount, il);\n\t}\n\telse {\n\t    compilePreserveSpace(preserve, pCount, il);\n\t    compileStripSpace(strip, sCount, il);\n\t}\n\n\tstripSpace.stripAttributes(true);\n\tstripSpace.setMaxLocals();\n\tstripSpace.setMaxStack();\n\tstripSpace.removeNOPs();\n\n\tclassGen.addMethod(stripSpace.getMethod());", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [1, 22], [2, 23], [0, 24], [17, 25], [21, 26], [2, 27], [2, 28], [2, 29], [2, 30], [23, 31], [3, 32], [4, 33], [7, 34], [8, 35], [9, 36], [24, 37], [10, 38], [11, 39], [12, 40], [13, 41], [1, 42], [1, 43], [1, 44], [1, 45], [27, 46], [27, 47], [2, 48], [5, 49], [6, 50], [34, 51], [35, 52], [36, 53], [38, 54], [38, 55], [38, 56], [39, 57], [46, 58], [27, 59], [47, 60], [28, 61], [29, 62], [46, 63], [46, 64], [46, 65], [46, 66], [46, 67], [58, 68], [59, 69], [27, 70], [27, 71], [27, 72], [27, 73], [27, 74], [27, 75], [61, 76], [61, 77], [61, 78], [62, 79], [62, 80], [30, 81], [38, 82], [38, 83], [38, 84], [38, 85], [63, 86], [46, 87], [46, 88], [65, 89], [69, 90], [71, 91], [72, 92], [73, 93], [74, 94], [75, 95], [63, 96], [63, 97], [86, 98], [87, 99], [88, 100], [64, 101], [65, 102], [65, 103], [89, 104], [67, 105], [59, 106], [59, 107], [92, 108], [93, 109], [96, 110], [97, 111], [102, 112], [103, 113], [106, 114], [107, 115], [110, 116], [111, 117], [112, 118], [113, 119], [113, 120], [113, 121], [114, 122], [115, 123], [116, 124], [117, 125], [122, 126], [123, 127], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 1], [23, 2], [24, 0], [25, 17], [26, 21], [27, 2], [28, 2], [29, 2], [30, 2], [31, 23], [32, 3], [33, 4], [34, 7], [35, 8], [36, 9], [37, 24], [38, 10], [39, 11], [40, 12], [41, 13], [42, 1], [43, 1], [44, 1], [45, 1], [46, 27], [47, 27], [48, 2], [49, 5], [50, 6], [51, 34], [52, 35], [53, 36], [54, 38], [55, 38], [56, 38], [57, 39], [58, 46], [59, 27], [60, 47], [61, 28], [62, 29], [63, 46], [64, 46], [65, 46], [66, 46], [67, 46], [68, 58], [69, 59], [70, 27], [71, 27], [72, 27], [73, 27], [74, 27], [75, 27], [76, 61], [77, 61], [78, 61], [79, 62], [80, 62], [81, 30], [82, 38], [83, 38], [84, 38], [85, 38], [86, 63], [87, 46], [88, 46], [89, 65], [90, 69], [91, 71], [92, 72], [93, 73], [94, 74], [95, 75], [96, 63], [97, 63], [98, 86], [99, 87], [100, 88], [101, 64], [102, 65], [103, 65], [104, 89], [105, 67], [106, 59], [107, 59], [108, 92], [109, 93], [110, 96], [111, 97], [112, 102], [113, 103], [114, 106], [115, 107], [116, 110], [117, 111], [118, 112], [119, 113], [120, 113], [121, 113], [122, 114], [123, 115], [124, 116], [125, 117], [126, 122], [127, 123], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127]]}, {"function_name": "compileDefault", "code": "    private static void compileDefault(int defaultAction,\n\t\t\t\t       ClassGenerator classGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\n\tfinal MethodGenerator stripSpace =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL ,\n\t\t\torg.apache.bcel.generic.Type.BOOLEAN, \n\t\t\tnew org.apache.bcel.generic.Type[] {\n\t\t\t    Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t    org.apache.bcel.generic.Type.INT,\n\t\t\t    org.apache.bcel.generic.Type.INT\n\t\t\t},\n\t\t\tnew String[] { \"dom\",\"node\",\"type\" },\n\t\t\t\"stripSpace\",classGen.getClassName(),il,cpg);\n\n\tclassGen.addInterface(\"org/apache/xalan/xsltc/StripFilter\");\n\n\tif (defaultAction == STRIP_SPACE)\n\t    il.append(ICONST_1);\n\telse\n\t    il.append(ICONST_0);\n\til.append(IRETURN);\n\n\tstripSpace.stripAttributes(true);\n\tstripSpace.setMaxLocals();\n\tstripSpace.setMaxStack();\n\tstripSpace.removeNOPs();\n\n\tclassGen.addMethod(stripSpace.getMethod());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [0, 15], [8, 16], [12, 17], [1, 18], [1, 19], [15, 20], [2, 21], [3, 22], [4, 23], [5, 24], [21, 25], [21, 26], [21, 27], [22, 28], [21, 29], [21, 30], [21, 31], [21, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 0], [16, 8], [17, 12], [18, 1], [19, 1], [20, 15], [21, 2], [22, 3], [23, 4], [24, 5], [25, 21], [26, 21], [27, 21], [28, 22], [29, 21], [30, 21], [31, 21], [32, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "translateRules", "code": "    public static int translateRules(Vector rules,\n\t\t\t\t     ClassGenerator classGen) {\n\tfinal int defaultAction = prioritizeRules(rules);\n\tif (rules.size() == 0) {\n\t    compileDefault(defaultAction,classGen);\n\t    return defaultAction;\n\t}\n\tcompilePredicate(rules, defaultAction, classGen);\n\treturn USE_PREDICATE;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [7, 10], [3, 11], [2, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 7], [11, 3], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "quicksort", "code": "    private static void quicksort(Vector rules, int p, int r) {\n\twhile (p < r) {\n\t    final int q = partition(rules, p, r);\n\t    quicksort(rules, p, q);\n\t    p = q + 1;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [6, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 6], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "partition", "code": "    private static int partition(Vector rules, int p, int r) {\n\tfinal WhitespaceRule x = (WhitespaceRule)rules.elementAt((p+r) >>> 1);\n\tint i = p - 1, j = r + 1;\n\twhile (true) {\n\t    while (x.compareTo((WhitespaceRule)rules.elementAt(--j)) < 0) {\n\t    }\n\t    while (x.compareTo((WhitespaceRule)rules.elementAt(++i)) > 0) {\n\t    }\n\t    if (i < j) {\n\t\tfinal WhitespaceRule tmp = (WhitespaceRule)rules.elementAt(i);\n\t\trules.setElementAt(rules.elementAt(j), i);\n\t\trules.setElementAt(tmp, j);\n\t    }\n\t    else {\n\t\treturn j;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "LOOP", "LOOP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [2, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [3, 18], [8, 19], [8, 20], [14, 21], [14, 22], [15, 23], [15, 24], [18, 25], [8, 26], [8, 27], [25, 28], [25, 29], [27, 30], [22, 31], [24, 32], [20, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 2], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 3], [19, 8], [20, 8], [21, 14], [22, 14], [23, 15], [24, 15], [25, 18], [26, 8], [27, 8], [28, 25], [29, 25], [30, 27], [31, 22], [32, 24], [33, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.5-326", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/BuildException.java", "language": "java", "name": "org.apache.tools.ant.BuildException", "code": "public class BuildException extends RuntimeException {\n\n    /** Exception that might have caused this one. */\n    private Throwable cause;\n\n    /** Location in the build file where the exception occured */\n    private Location location = Location.UNKNOWN_LOCATION;\n\n    /**\n     * Constructs a build exception with no descriptive information.\n     */\n    public BuildException() {\n        super();\n    }\n\n    /**\n     * Constructs an exception with the given descriptive message.\n     *\n     * @param message A description of or information about the exception.\n     *            Should not be <code>null</code>.\n     */\n    public BuildException(String message) {\n        super(message);\n    }\n\n    /**\n     * Constructs an exception with the given message and exception as\n     * a root cause.\n     *\n     * @param message A description of or information about the exception.\n     *            Should not be <code>null</code> unless a cause is specified.\n     * @param cause The exception that might have caused this one.\n     *              May be <code>null</code>.\n     */\n    public BuildException(String message, Throwable cause) {\n        super(message);\n        this.cause = cause;\n    }\n\n    /**\n     * Constructs an exception with the given message and exception as\n     * a root cause and a location in a file.\n     *\n     * @param msg A description of or information about the exception.\n     *            Should not be <code>null</code> unless a cause is specified.\n     * @param cause The exception that might have caused this one.\n     *              May be <code>null</code>.\n     * @param location The location in the project file where the error\n     *                 occurred. Must not be <code>null</code>.\n     */\n    public BuildException(String msg, Throwable cause, Location location) {\n        this(msg, cause);\n        this.location = location;\n    }\n\n    /**\n     * Constructs an exception with the given exception as a root cause.\n     *\n     * @param cause The exception that might have caused this one.\n     *              Should not be <code>null</code>.\n     */\n    public BuildException(Throwable cause) {\n        super(cause.toString());\n        this.cause = cause;\n    }\n\n    /**\n     * Constructs an exception with the given descriptive message and a\n     * location in a file.\n     *\n     * @param message A description of or information about the exception.\n     *            Should not be <code>null</code>.\n     * @param location The location in the project file where the error\n     *                 occurred. Must not be <code>null</code>.\n     */\n    public BuildException(String message, Location location) {\n        super(message);\n        this.location = location;\n    }\n\n    /**\n     * Constructs an exception with the given exception as\n     * a root cause and a location in a file.\n     *\n     * @param cause The exception that might have caused this one.\n     *              Should not be <code>null</code>.\n     * @param location The location in the project file where the error\n     *                 occurred. Must not be <code>null</code>.\n     */\n    public BuildException(Throwable cause, Location location) {\n        this(cause);\n        this.location = location;\n    }\n\n    /**\n     * Returns the nested exception, if any.\n     *\n     * @return the nested exception, or <code>null</code> if no\n     *         exception is associated with this one\n     */\n    public Throwable getCause() {\n        return cause;\n    }\n    /**\n     * Returns the nested exception, if any.\n     *\n     * @return the nested exception, or <code>null</code> if no\n     *         exception is associated with this one\n     */\n    public Throwable getException() {\n        return cause;\n    }\n\n    /**\n     * Returns the location of the error and the error message.\n     *\n     * @return the location of the error and the error message\n     */\n    public String toString() {\n        return location.toString() + getMessage();\n    }\n\n    /**\n     * Sets the file location where the error occurred.\n     *\n     * @param location The file location where the error occurred.\n     *                 Must not be <code>null</code>.\n     */\n    public void setLocation(Location location) {\n        this.location = location;\n    }\n\n    /**\n     * Returns the file location where the error occurred.\n     *\n     * @return the file location where the error occurred.\n     */\n    public Location getLocation() {\n        return location;\n    }\n\n    /**\n     * Prints the stack trace for this exception and any\n     * nested exception to <code>System.err</code>.\n     */\n    public void printStackTrace() {\n        printStackTrace(System.err);\n    }\n\n    /**\n     * Prints the stack trace of this exception and any nested\n     * exception to the specified PrintStream.\n     *\n     * @param ps The PrintStream to print the stack trace to.\n     *           Must not be <code>null</code>.\n     */\n    public void printStackTrace(PrintStream ps) {\n        synchronized (ps) {\n            super.printStackTrace(ps);\n            if (cause != null) {\n                ps.println(\"--- Nested Exception ---\");\n                cause.printStackTrace(ps);\n            }\n        }\n    }\n\n    /**\n     * Prints the stack trace of this exception and any nested\n     * exception to the specified PrintWriter.\n     *\n     * @param pw The PrintWriter to print the stack trace to.\n     *           Must not be <code>null</code>.\n     */\n    public void printStackTrace(PrintWriter pw) {\n        synchronized (pw) {\n            super.printStackTrace(pw);\n            if (cause != null) {\n                pw.println(\"--- Nested Exception ---\");\n                cause.printStackTrace(pw);", "functions": [{"function_name": "getCause", "code": "    public Throwable getCause() {\n        return cause;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getException", "code": "    public Throwable getException() {\n        return cause;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n        return location.toString() + getMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setLocation", "code": "    public void setLocation(Location location) {\n        this.location = location;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocation", "code": "    public Location getLocation() {\n        return location;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace() {\n        printStackTrace(System.err);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace(PrintStream ps) {\n        synchronized (ps) {\n            super.printStackTrace(ps);\n            if (cause != null) {\n                ps.println(\"--- Nested Exception ---\");\n                cause.printStackTrace(ps);", "ast_nodes": ["FUNC_DECL", "PARAM", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace(PrintWriter pw) {\n        synchronized (pw) {\n            super.printStackTrace(pw);\n            if (cause != null) {\n                pw.println(\"--- Nested Exception ---\");\n                cause.printStackTrace(pw);", "ast_nodes": ["FUNC_DECL", "PARAM", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "BuildException", "code": "    public BuildException() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "BuildException", "code": "    public BuildException(String message) {\n        super(message);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BuildException", "code": "    public BuildException(String message, Throwable cause) {\n        super(message);\n        this.cause = cause;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BuildException", "code": "    public BuildException(String msg, Throwable cause, Location location) {\n        this(msg, cause);\n        this.location = location;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "BuildException", "code": "    public BuildException(Throwable cause) {\n        super(cause.toString());\n        this.cause = cause;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BuildException", "code": "    public BuildException(String message, Location location) {\n        super(message);\n        this.location = location;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BuildException", "code": "    public BuildException(Throwable cause, Location location) {\n        this(cause);\n        this.location = location;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.7-8401", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/UnsupportedElement.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.UnsupportedElement", "code": "final class UnsupportedElement extends SyntaxTreeNode {\n\n    private Vector _fallbacks = null;\n    private ErrorMsg _message = null;\n    private boolean _isExtension = false;\n\n    /**\n     * Basic consutrcor - stores element uri/prefix/localname\n     */\n    public UnsupportedElement(String uri, String prefix, String local, boolean isExtension) {\n\tsuper(uri, prefix, local);\n\t_isExtension = isExtension;\n    }\n\n    /**\n     * There are different categories of unsupported elements (believe it\n     * or not): there are elements within the XSLT namespace (these would\n     * be elements that are not yet implemented), there are extensions of\n     * other XSLT processors and there are unrecognised extension elements\n     * of this XSLT processor. The error message passed to this method\n     * should describe the unsupported element itself and what category\n     * the element belongs in.\n     */\n    public void setErrorMessage(ErrorMsg message) {\n\t_message = message;\n    }\n\n    /**\n     * Displays the contents of this element\n     */\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"Unsupported element = \" + _qname.getNamespace() +\n\t\t     \":\" + _qname.getLocalPart());\n\tdisplayContents(indent + IndentIncrement);\n    }\n\n\n    /**\n     * Scan and process all fallback children of the unsupported element.\n     */\n    private void processFallbacks(Parser parser) {\n\n\tVector children = getContents();\n\tif (children != null) {\n\t    final int count = children.size();\n\t    for (int i = 0; i < count; i++) {\n\t\tSyntaxTreeNode child = (SyntaxTreeNode)children.elementAt(i);\n\t\tif (child instanceof Fallback) {\n\t\t    Fallback fallback = (Fallback)child;\n\t\t    fallback.activate();\n\t\t    fallback.parseContents(parser);\n\t\t    if (_fallbacks == null) {\n\t\t    \t_fallbacks = new Vector();\n\t\t    }\n\t\t    _fallbacks.addElement(child);\n\t\t}\n\t    }\n\t}\n    }\n\n    /**\n     * Find any fallback in the descendant nodes; then activate & parse it\n     */\n    public void parseContents(Parser parser) {\n    \tprocessFallbacks(parser);\n    }\n\n    /**\n     * Run type check on the fallback element (if any).\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\t\n\tif (_fallbacks != null) {\n\t    int count = _fallbacks.size();\n\t    for (int i = 0; i < count; i++) {\n\t        Fallback fallback = (Fallback)_fallbacks.elementAt(i);\n\t        fallback.typeCheck(stable);\n\t    }\n\t}\n\treturn Type.Void;\n    }\n\n    /**\n     * Translate the fallback element (if any).\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tif (_fallbacks != null) {\n\t    int count = _fallbacks.size();\n\t    for (int i = 0; i < count; i++) {\n\t        Fallback fallback = (Fallback)_fallbacks.elementAt(i);\n\t        fallback.translate(classGen, methodGen);\n\t    }\n\t}\n\telse {\t\t\n\t    ConstantPoolGen cpg = classGen.getConstantPool();\n\t    InstructionList il = methodGen.getInstructionList();\n\t    \n\t    final int unsupportedElem = cpg.addMethodref(BASIS_LIBRARY_CLASS, \"unsupported_ElementF\",\n                                                         \"(\" + STRING_SIG + \"Z)V\");\t \n\t    il.append(new PUSH(cpg, getQName().toString()));\n\t    il.append(new PUSH(cpg, _isExtension));\n\t    il.append(new INVOKESTATIC(unsupportedElem));\t\t", "functions": [{"function_name": "setErrorMessage", "code": "    public void setErrorMessage(ErrorMsg message) {\n\t_message = message;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"Unsupported element = \" + _qname.getNamespace() +\n\t\t     \":\" + _qname.getLocalPart());\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "processFallbacks", "code": "    private void processFallbacks(Parser parser) {\n\n\tVector children = getContents();\n\tif (children != null) {\n\t    final int count = children.size();\n\t    for (int i = 0; i < count; i++) {\n\t\tSyntaxTreeNode child = (SyntaxTreeNode)children.elementAt(i);\n\t\tif (child instanceof Fallback) {\n\t\t    Fallback fallback = (Fallback)child;\n\t\t    fallback.activate();\n\t\t    fallback.parseContents(parser);\n\t\t    if (_fallbacks == null) {\n\t\t    \t_fallbacks = new Vector();\n\t\t    }\n\t\t    _fallbacks.addElement(child);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [5, 10], [5, 11], [6, 12], [10, 13], [5, 14], [10, 15], [10, 16], [10, 17], [15, 18], [10, 19], [10, 20], [11, 21], [18, 22], [15, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 5], [11, 5], [12, 6], [13, 10], [14, 5], [15, 10], [16, 10], [17, 10], [18, 15], [19, 10], [20, 10], [21, 11], [22, 18], [23, 15], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n    \tprocessFallbacks(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\t\n\tif (_fallbacks != null) {\n\t    int count = _fallbacks.size();\n\t    for (int i = 0; i < count; i++) {\n\t        Fallback fallback = (Fallback)_fallbacks.elementAt(i);\n\t        fallback.typeCheck(stable);\n\t    }\n\t}\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [5, 8], [5, 9], [6, 10], [5, 11], [5, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 5], [9, 5], [10, 6], [11, 5], [12, 5], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tif (_fallbacks != null) {\n\t    int count = _fallbacks.size();\n\t    for (int i = 0; i < count; i++) {\n\t        Fallback fallback = (Fallback)_fallbacks.elementAt(i);\n\t        fallback.translate(classGen, methodGen);\n\t    }\n\t}\n\telse {\t\t\n\t    ConstantPoolGen cpg = classGen.getConstantPool();\n\t    InstructionList il = methodGen.getInstructionList();\n\t    \n\t    final int unsupportedElem = cpg.addMethodref(BASIS_LIBRARY_CLASS, \"unsupported_ElementF\",\n                                                         \"(\" + STRING_SIG + \"Z)V\");\t \n\t    il.append(new PUSH(cpg, getQName().toString()));\n\t    il.append(new PUSH(cpg, _isExtension));\n\t    il.append(new INVOKESTATIC(unsupportedElem));\t\t", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [1, 11], [1, 12], [1, 13], [8, 14], [11, 15], [12, 16], [13, 17], [5, 18], [6, 19], [7, 20], [8, 21], [9, 22], [17, 23], [18, 24], [18, 25], [8, 26], [8, 27], [23, 28], [24, 29], [24, 30], [30, 31], [21, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 1], [12, 1], [13, 1], [14, 8], [15, 11], [16, 12], [17, 13], [18, 5], [19, 6], [20, 7], [21, 8], [22, 9], [23, 17], [24, 18], [25, 18], [26, 8], [27, 8], [28, 23], [29, 24], [30, 24], [31, 30], [32, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "UnsupportedElement", "code": "    public UnsupportedElement(String uri, String prefix, String local, boolean isExtension) {\n\tsuper(uri, prefix, local);\n\t_isExtension = isExtension;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "camel-1.6-3233", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/dataformat/xstream/JsonDataFormat.java", "language": "java", "name": "org.apache.camel.dataformat.xstream.JsonDataFormat", "code": "public class JsonDataFormat extends AbstractXStreamWrapper {\n    private final MappedXMLOutputFactory mof;\n    private final MappedXMLInputFactory mif;\n    \n    public JsonDataFormat() {\n        final HashMap nstjsons = new HashMap();\n        mof = new MappedXMLOutputFactory(nstjsons);\n        mif = new MappedXMLInputFactory(nstjsons);\n    }\n    \n    \n    \n    protected HierarchicalStreamWriter createHierarchicalStreamWriter(Exchange exchange, Object body, OutputStream stream) throws XMLStreamException {        \n        return new StaxWriter(new QNameMap(), mof.createXMLStreamWriter(stream));\n    }\n\n    protected HierarchicalStreamReader createHierarchicalStreamReader(Exchange exchange, InputStream stream) throws XMLStreamException {        \n        return new StaxReader(new QNameMap(), mif.createXMLStreamReader(stream));", "functions": [{"function_name": "createHierarchicalStreamWriter", "code": "    protected HierarchicalStreamWriter createHierarchicalStreamWriter(Exchange exchange, Object body, OutputStream stream) throws XMLStreamException {        \n        return new StaxWriter(new QNameMap(), mof.createXMLStreamWriter(stream));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createHierarchicalStreamReader", "code": "    protected HierarchicalStreamReader createHierarchicalStreamReader(Exchange exchange, InputStream stream) throws XMLStreamException {        \n        return new StaxReader(new QNameMap(), mif.createXMLStreamReader(stream));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "JsonDataFormat", "code": "    public JsonDataFormat() {\n        final HashMap nstjsons = new HashMap();\n        mof = new MappedXMLOutputFactory(nstjsons);\n        mif = new MappedXMLInputFactory(nstjsons);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "jedit-4.0-3865", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/ModeCatalogHandler.java", "language": "java", "name": "org.gjt.sp.jedit.ModeCatalogHandler", "code": "class ModeCatalogHandler extends HandlerBase\n{\n\tModeCatalogHandler(String directory, boolean resource)\n\t{\n\t\tthis.directory = directory;\n\t\tthis.resource = resource;\n\t}\n\n\tpublic Object resolveEntity(String publicId, String systemId)\n\t{\n\t\tif(\"catalog.dtd\".equals(systemId))\n\t\t{\n\t\t\t// this will result in a slight speed up, since we\n\t\t\t// don't need to read the DTD anyway, as AElfred is\n\t\t\t// non-validating\n\t\t\treturn new StringReader(\"<!-- -->\");\n\n\t\t\t/* try\n\t\t\t{\n\t\t\t\treturn new BufferedReader(new InputStreamReader(\n\t\t\t\t\tgetClass().getResourceAsStream(\"catalog.dtd\")));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,\"Error while opening\"\n\t\t\t\t\t+ \" catalog.dtd:\");\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t} */\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tpublic void attribute(String aname, String value, boolean isSpecified)\n\t{\n\t\taname = (aname == null) ? null : aname.intern();\n\n\t\tif(aname == \"NAME\")\n\t\t\tmodeName = value;\n\t\telse if(aname == \"FILE\")\n\t\t{\n\t\t\tif(value == null)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,directory + \"catalog:\"\n\t\t\t\t\t+ \" mode \" + modeName + \" doesn't have\"\n\t\t\t\t\t+ \" a FILE attribute\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tfile = value;\n\t\t}\n\t\telse if(aname == \"FILE_NAME_GLOB\")\n\t\t\tfilenameGlob = value;\n\t\telse if(aname == \"FIRST_LINE_GLOB\")\n\t\t\tfirstlineGlob = value;\n\t}\n\n\tpublic void doctypeDecl(String name, String publicId,\n\t\tString systemId) throws Exception\n\t{\n\t\t// older jEdit versions used a DOCTYPE of CATALOG, which\n\t\t// is incorrect since the DOCTYPE must be the name of the\n\t\t// root element, which is MODES.\n\n\t\t// so you the avid code reader should use MODES as the\n\t\t// DOCTYPE instead, but we still let old catalogs through\n\t\t// to avoid annoying users.\n\t\tif(\"CATALOG\".equals(name) || \"MODES\".equals(name))\n\t\t\treturn;\n\n\t\tLog.log(Log.ERROR,this,directory + \"catalog: DOCTYPE must be CATALOG\");\n\t}\n\n\tpublic void endElement(String name)\n\t{\n\t\tif(name.equals(\"MODE\"))\n\t\t{\n\t\t\tMode mode = jEdit.getMode(modeName);\n\t\t\tif(mode == null)\n\t\t\t{\n\t\t\t\tmode = new Mode(modeName);\n\t\t\t\tjEdit.addMode(mode);\n\t\t\t}\n\n\t\t\tObject path;\n\t\t\tif(resource)\n\t\t\t\tpath = jEdit.class.getResource(directory + file);\n\t\t\telse\n\t\t\t\tpath = MiscUtilities.constructPath(directory,file);\n\t\t\tmode.setProperty(\"file\",path);\n\n\t\t\tif(filenameGlob != null)\n\t\t\t\tmode.setProperty(\"filenameGlob\",filenameGlob);\n\t\t\telse\n\t\t\t\tmode.unsetProperty(\"filenameGlob\");\n\n\t\t\tif(firstlineGlob != null)\n\t\t\t\tmode.setProperty(\"firstlineGlob\",firstlineGlob);\n\t\t\telse\n\t\t\t\tmode.unsetProperty(\"firstlineGlob\");\n\n\t\t\tmode.init();\n\n\t\t\tmodeName = file = filenameGlob = firstlineGlob = null;\n\t\t}\n\t}\n\n\t// end HandlerBase implementation\n\n\t// private members\n\tprivate String directory;\n\tprivate boolean resource;\n\n\tprivate String modeName;\n\tprivate String file;\n\tprivate String filenameGlob;\n\tprivate String firstlineGlob;", "functions": [{"function_name": "resolveEntity", "code": "\tpublic Object resolveEntity(String publicId, String systemId)\n\t{\n\t\tif(\"catalog.dtd\".equals(systemId))\n\t\t{\n\t\t\t// this will result in a slight speed up, since we\n\t\t\t// don't need to read the DTD anyway, as AElfred is\n\t\t\t// non-validating\n\t\t\treturn new StringReader(\"<!-- -->\");\n\n\t\t\t/* try\n\t\t\t{\n\t\t\t\treturn new BufferedReader(new InputStreamReader(\n\t\t\t\t\tgetClass().getResourceAsStream(\"catalog.dtd\")));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,\"Error while opening\"\n\t\t\t\t\t+ \" catalog.dtd:\");\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t} */\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "attribute", "code": "\tpublic void attribute(String aname, String value, boolean isSpecified)\n\t{\n\t\taname = (aname == null) ? null : aname.intern();\n\n\t\tif(aname == \"NAME\")\n\t\t\tmodeName = value;\n\t\telse if(aname == \"FILE\")\n\t\t{\n\t\t\tif(value == null)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,directory + \"catalog:\"\n\t\t\t\t\t+ \" mode \" + modeName + \" doesn't have\"\n\t\t\t\t\t+ \" a FILE attribute\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tfile = value;\n\t\t}\n\t\telse if(aname == \"FILE_NAME_GLOB\")\n\t\t\tfilenameGlob = value;\n\t\telse if(aname == \"FIRST_LINE_GLOB\")\n\t\t\tfirstlineGlob = value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [0, 7], [5, 8], [5, 9], [1, 10], [6, 11], [7, 12], [8, 13], [8, 14], [5, 15], [9, 16], [12, 17], [12, 18], [12, 19], [13, 20], [8, 21], [14, 22], [15, 23], [19, 24], [13, 25], [20, 26], [15, 27], [23, 28], [15, 29], [29, 30], [30, 31], [30, 32], [32, 33], [32, 34], [34, 35], [35, 36], [35, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 0], [8, 5], [9, 5], [10, 1], [11, 6], [12, 7], [13, 8], [14, 8], [15, 5], [16, 9], [17, 12], [18, 12], [19, 12], [20, 13], [21, 8], [22, 14], [23, 15], [24, 19], [25, 13], [26, 20], [27, 15], [28, 23], [29, 15], [30, 29], [31, 30], [32, 30], [33, 32], [34, 32], [35, 34], [36, 35], [37, 35], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "doctypeDecl", "code": "\tpublic void doctypeDecl(String name, String publicId,\n\t\tString systemId) throws Exception\n\t{\n\t\t// older jEdit versions used a DOCTYPE of CATALOG, which\n\t\t// is incorrect since the DOCTYPE must be the name of the\n\t\t// root element, which is MODES.\n\n\t\t// so you the avid code reader should use MODES as the\n\t\t// DOCTYPE instead, but we still let old catalogs through\n\t\t// to avoid annoying users.\n\t\tif(\"CATALOG\".equals(name) || \"MODES\".equals(name))\n\t\t\treturn;\n\n\t\tLog.log(Log.ERROR,this,directory + \"catalog: DOCTYPE must be CATALOG\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [5, 8], [7, 9], [7, 10], [8, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 5], [9, 7], [10, 7], [11, 8], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "endElement", "code": "\tpublic void endElement(String name)\n\t{\n\t\tif(name.equals(\"MODE\"))\n\t\t{\n\t\t\tMode mode = jEdit.getMode(modeName);\n\t\t\tif(mode == null)\n\t\t\t{\n\t\t\t\tmode = new Mode(modeName);\n\t\t\t\tjEdit.addMode(mode);\n\t\t\t}\n\n\t\t\tObject path;\n\t\t\tif(resource)\n\t\t\t\tpath = jEdit.class.getResource(directory + file);\n\t\t\telse\n\t\t\t\tpath = MiscUtilities.constructPath(directory,file);\n\t\t\tmode.setProperty(\"file\",path);\n\n\t\t\tif(filenameGlob != null)\n\t\t\t\tmode.setProperty(\"filenameGlob\",filenameGlob);\n\t\t\telse\n\t\t\t\tmode.unsetProperty(\"filenameGlob\");\n\n\t\t\tif(firstlineGlob != null)\n\t\t\t\tmode.setProperty(\"firstlineGlob\",firstlineGlob);\n\t\t\telse\n\t\t\t\tmode.unsetProperty(\"firstlineGlob\");\n\n\t\t\tmode.init();\n\n\t\t\tmodeName = file = filenameGlob = firstlineGlob = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [1, 11], [1, 12], [4, 13], [5, 14], [1, 15], [8, 16], [11, 17], [4, 18], [4, 19], [13, 20], [5, 21], [5, 22], [14, 23], [15, 24], [6, 25], [6, 26], [16, 27], [9, 28], [17, 29], [18, 30], [19, 31], [21, 32], [22, 33], [25, 34], [26, 35], [8, 36], [8, 37], [29, 38], [35, 39], [37, 40], [38, 41], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 1], [12, 1], [13, 4], [14, 5], [15, 1], [16, 8], [17, 11], [18, 4], [19, 4], [20, 13], [21, 5], [22, 5], [23, 14], [24, 15], [25, 6], [26, 6], [27, 16], [28, 9], [29, 17], [30, 18], [31, 19], [32, 21], [33, 22], [34, 25], [35, 26], [36, 8], [37, 8], [38, 29], [39, 35], [40, 37], [41, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "ModeCatalogHandler", "code": "\tModeCatalogHandler(String directory, boolean resource)\n\t{\n\t\tthis.directory = directory;\n\t\tthis.resource = resource;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.3-4687", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/msg/EditorExitRequested.java", "language": "java", "name": "org.gjt.sp.jedit.msg.EditorExitRequested", "code": "public class EditorExitRequested extends EBMessage\n{\n\tprivate boolean hasBeenExitCancelled;\n\t\n\t/**\n\t * Creates a new editor exiting started message.\n\t * @param view The view from which this exit was called\n\t */\n\tpublic EditorExitRequested(View view)\n\t{\n\t\tsuper(view);\n\t}\n\n\t/**\n\t * Returns the view involved.\n\t */\n\tpublic View getView()\n\t{\n\t\treturn (View)getSource();\n\t}\n\t\n\t/**\n\t * Cancels the exit process. If a plugin calls this method, jEdit will not\n\t * exit anymore\n\t */\n\tpublic void cancelExit()\n\t{\n\t\thasBeenExitCancelled = true;\n\t}\n\t\n\t/**\n\t * Check if the exit process has been cancelled.\n\t */ \n\t public boolean hasBeenExitCancelled()\n\t {\n\t\t return hasBeenExitCancelled;", "functions": [{"function_name": "getView", "code": "\tpublic View getView()\n\t{\n\t\treturn (View)getSource();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "cancelExit", "code": "\tpublic void cancelExit()\n\t{\n\t\thasBeenExitCancelled = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasBeenExitCancelled", "code": "\t public boolean hasBeenExitCancelled()\n\t {\n\t\t return hasBeenExitCancelled;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "EditorExitRequested", "code": "\tpublic EditorExitRequested(View view)\n\t{\n\t\tsuper(view);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-3.0-6088", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/ObjectLinkRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.ObjectLinkRecord", "code": "public class ObjectLinkRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1027;\n    private  short      field_1_anchorId;\n    public final static short       ANCHOR_ID_CHART_TITLE          = 1;\n    public final static short       ANCHOR_ID_Y_AXIS               = 2;\n    public final static short       ANCHOR_ID_X_AXIS               = 3;\n    public final static short       ANCHOR_ID_SERIES_OR_POINT      = 4;\n    public final static short       ANCHOR_ID_Z_AXIS               = 7;\n    private  short      field_2_link1;\n    private  short      field_3_link2;\n\n\n    public ObjectLinkRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a ObjectLink record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1027 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public ObjectLinkRecord(RecordInputStream in)\n    {\n        super(in);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a ObjectLink record\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_anchorId               = in.readShort();\n        field_2_link1                  = in.readShort();\n        field_3_link2                  = in.readShort();\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[OBJECTLINK]\\n\");\n        buffer.append(\"    .anchorId             = \")\n            .append(\"0x\").append(HexDump.toHex(  getAnchorId ()))\n            .append(\" (\").append( getAnchorId() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .link1                = \")\n            .append(\"0x\").append(HexDump.toHex(  getLink1 ()))\n            .append(\" (\").append( getLink1() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .link2                = \")\n            .append(\"0x\").append(HexDump.toHex(  getLink2 ()))\n            .append(\" (\").append( getLink2() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/OBJECTLINK]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_anchorId);\n        LittleEndian.putShort(data, 6 + offset + pos, field_2_link1);\n        LittleEndian.putShort(data, 8 + offset + pos, field_3_link2);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2 + 2 + 2;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n        ObjectLinkRecord rec = new ObjectLinkRecord();\n    \n        rec.field_1_anchorId = field_1_anchorId;\n        rec.field_2_link1 = field_2_link1;\n        rec.field_3_link2 = field_3_link2;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the anchor id field for the ObjectLink record.\n     *\n     * @return  One of \n     *        ANCHOR_ID_CHART_TITLE\n     *        ANCHOR_ID_Y_AXIS\n     *        ANCHOR_ID_X_AXIS\n     *        ANCHOR_ID_SERIES_OR_POINT\n     *        ANCHOR_ID_Z_AXIS\n     */\n    public short getAnchorId()\n    {\n        return field_1_anchorId;\n    }\n\n    /**\n     * Set the anchor id field for the ObjectLink record.\n     *\n     * @param field_1_anchorId\n     *        One of \n     *        ANCHOR_ID_CHART_TITLE\n     *        ANCHOR_ID_Y_AXIS\n     *        ANCHOR_ID_X_AXIS\n     *        ANCHOR_ID_SERIES_OR_POINT\n     *        ANCHOR_ID_Z_AXIS\n     */\n    public void setAnchorId(short field_1_anchorId)\n    {\n        this.field_1_anchorId = field_1_anchorId;\n    }\n\n    /**\n     * Get the link 1 field for the ObjectLink record.\n     */\n    public short getLink1()\n    {\n        return field_2_link1;\n    }\n\n    /**\n     * Set the link 1 field for the ObjectLink record.\n     */\n    public void setLink1(short field_2_link1)\n    {\n        this.field_2_link1 = field_2_link1;\n    }\n\n    /**\n     * Get the link 2 field for the ObjectLink record.\n     */\n    public short getLink2()\n    {\n        return field_3_link2;\n    }\n\n    /**\n     * Set the link 2 field for the ObjectLink record.\n     */\n    public void setLink2(short field_3_link2)\n    {\n        this.field_3_link2 = field_3_link2;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a ObjectLink record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_anchorId               = in.readShort();\n        field_2_link1                  = in.readShort();\n        field_3_link2                  = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[OBJECTLINK]\\n\");\n        buffer.append(\"    .anchorId             = \")\n            .append(\"0x\").append(HexDump.toHex(  getAnchorId ()))\n            .append(\" (\").append( getAnchorId() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .link1                = \")\n            .append(\"0x\").append(HexDump.toHex(  getLink1 ()))\n            .append(\" (\").append( getLink1() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .link2                = \")\n            .append(\"0x\").append(HexDump.toHex(  getLink2 ()))\n            .append(\" (\").append( getLink2() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/OBJECTLINK]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [4, 12], [5, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [7, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [9, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [11, 34], [2, 35], [13, 36], [15, 37], [16, 38], [17, 39], [18, 40], [19, 41], [20, 42], [22, 43], [23, 44], [24, 45], [25, 46], [26, 47], [27, 48], [29, 49], [30, 50], [31, 51], [32, 52], [33, 53], [40, 54], [46, 55], [52, 56], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 4], [13, 5], [14, 6], [15, 6], [16, 6], [17, 6], [18, 6], [19, 6], [20, 7], [21, 8], [22, 8], [23, 8], [24, 8], [25, 8], [26, 8], [27, 9], [28, 10], [29, 10], [30, 10], [31, 10], [32, 10], [33, 10], [34, 11], [35, 2], [36, 13], [37, 15], [38, 16], [39, 17], [40, 18], [41, 19], [42, 20], [43, 22], [44, 23], [45, 24], [46, 25], [47, 26], [48, 27], [49, 29], [50, 30], [51, 31], [52, 32], [53, 33], [54, 40], [55, 46], [56, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_anchorId);\n        LittleEndian.putShort(data, 6 + offset + pos, field_2_link1);\n        LittleEndian.putShort(data, 8 + offset + pos, field_3_link2);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [2, 16], [11, 17], [12, 18], [13, 19], [9, 20], [14, 21], [15, 22], [17, 23], [18, 24], [19, 25], [20, 26], [20, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 2], [17, 11], [18, 12], [19, 13], [20, 9], [21, 14], [22, 15], [23, 17], [24, 18], [25, 19], [26, 20], [27, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2 + 2 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        ObjectLinkRecord rec = new ObjectLinkRecord();\n    \n        rec.field_1_anchorId = field_1_anchorId;\n        rec.field_2_link1 = field_2_link1;\n        rec.field_3_link2 = field_3_link2;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getAnchorId", "code": "    public short getAnchorId()\n    {\n        return field_1_anchorId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAnchorId", "code": "    public void setAnchorId(short field_1_anchorId)\n    {\n        this.field_1_anchorId = field_1_anchorId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLink1", "code": "    public short getLink1()\n    {\n        return field_2_link1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLink1", "code": "    public void setLink1(short field_2_link1)\n    {\n        this.field_2_link1 = field_2_link1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLink2", "code": "    public short getLink2()\n    {\n        return field_3_link2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLink2", "code": "    public void setLink2(short field_3_link2)\n    {\n        this.field_3_link2 = field_3_link2;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ObjectLinkRecord", "code": "    public ObjectLinkRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ObjectLinkRecord", "code": "    public ObjectLinkRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.6-2873", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/impl/ReportingTypeConverterLoader.java", "language": "java", "name": "org.apache.camel.impl.ReportingTypeConverterLoader", "code": "public class ReportingTypeConverterLoader extends AnnotationTypeConverterLoader {\n\n    private static final Comparator<TypeMapping> COMPARE_LAST_LOADED_FIRST = new Comparator<TypeMapping>() {\n        public int compare(TypeMapping t1, TypeMapping t2) {\n            if (ObjectHelper.equal(t1.fromType, t2.fromType)) {\n                return ObjectHelper.equal(t1.toType, t2.toType) ? t1.index - t2.index : ObjectHelper\n                    .compare(getTypeName(t1.toType), getTypeName(t2.toType));\n            }\n            return ObjectHelper.compare(getTypeName(t1.fromType), getTypeName(t2.fromType));\n        }\n\n    };\n    private List<TypeMapping> typeMappings = new ArrayList<TypeMapping>();\n\n    public TypeMapping[] getTypeConversions() {\n        Collections.sort(typeMappings, COMPARE_LAST_LOADED_FIRST);\n        return typeMappings.toArray(new TypeMapping[typeMappings.size()]);\n    }\n\n    protected void registerTypeConverter(TypeConverterRegistry registry, Method method, Class toType,\n                                         Class fromType, TypeConverter typeConverter) {\n\n        TypeMapping mapping = new TypeMapping(toType, fromType, typeConverter.getClass(), method);\n        typeMappings.add(mapping);\n    }\n\n    private static String getTypeName(Class type) {\n        return type != null ? type.getName() : null;\n    }\n\n    /**\n     * Represents a mapping from one type (which can be null) to another\n     *\n     * Used by the camel-maven-plugin.\n     */\n    public static class TypeMapping {\n        private static int counter;\n        private Class toType;\n        private Class fromType;\n        private Class converterType;\n        private Method method;\n        private int index;\n\n        public TypeMapping(Class toType, Class fromType, Class converterType, Method method) {\n            this.toType = toType;\n            this.fromType = fromType;\n            this.converterType = converterType;\n            this.method = method;\n            this.index = counter++;\n        }\n\n        public Class getFromType() {\n            return fromType;\n        }\n\n        public Class getToType() {\n            return toType;\n        }\n\n        public Class getConverterType() {\n            return converterType;\n        }\n\n        public Method getMethod() {\n            return method;\n        }\n\n        public int getIndex() {\n            return index;\n        }\n\n        @Override\n        public boolean equals(Object object) {\n            if (object instanceof TypeMapping) {\n                TypeMapping that = (TypeMapping)object;\n                return this.index == that.index;\n            }\n            return false;\n        }\n\n        @Override\n        public int hashCode() {\n            int answer = toType.hashCode();\n            if (fromType != null) {\n                answer *= 37 + fromType.hashCode();\n            }\n            return answer;\n        }\n\n        @Override\n        public String toString() {\n            return \"[\" + fromType.getSimpleName() + \"=>\" + toType.getSimpleName() + \"]\";", "functions": [{"function_name": "getTypeConversions", "code": "    public TypeMapping[] getTypeConversions() {\n        Collections.sort(typeMappings, COMPARE_LAST_LOADED_FIRST);\n        return typeMappings.toArray(new TypeMapping[typeMappings.size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [1, 0], [2, 1], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "registerTypeConverter", "code": "    protected void registerTypeConverter(TypeConverterRegistry registry, Method method, Class toType,\n                                         Class fromType, TypeConverter typeConverter) {\n\n        TypeMapping mapping = new TypeMapping(toType, fromType, typeConverter.getClass(), method);\n        typeMappings.add(mapping);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getTypeName", "code": "    private static String getTypeName(Class type) {\n        return type != null ? type.getName() : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "xalan-2.4-6715", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/UnionPathExpr.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.UnionPathExpr", "code": "final class UnionPathExpr extends Expression {\n\n    private final Expression _pathExpr;\n    private final Expression _rest;\n    private boolean _reverse = false;\n\n    private Expression[] _components;\n    \n    public UnionPathExpr(Expression pathExpr, Expression rest) {\n\t_pathExpr = pathExpr;\n\t_rest     = rest;\n    }\n\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tfinal Vector components = new Vector();\n\tflatten(components);\n\tfinal int size = components.size();\n\t_components = (Expression[])components.toArray(new Expression[size]);\n\tfor (int i = 0; i < size; i++) {\n\t    _components[i].setParser(parser);\n\t    _components[i].setParent(this);\n\t    if (_components[i] instanceof Step) {\n\t\tfinal Step step = (Step)_components[i];\n\t\tfinal int axis = step.getAxis();\n\t\tfinal int type = step.getNodeType();\n\t\tif ((axis == Axis.ATTRIBUTE) || (type == DOM.ATTRIBUTE)) {\n\t\t    _components[i] = _components[0];\n\t\t    _components[0] = step;\n\t\t}\n\t\tif (Axis.isReverse[axis]) _reverse = true;\n\t    }\n\t}\n\tif (getParent() instanceof Expression) _reverse = false;\n    }\n    \n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal int length = _components.length;\n\tfor (int i = 0; i < length; i++) {\n\t    if (_components[i].typeCheck(stable) != Type.NodeSet) {\n\t\t_components[i] = new CastExpr(_components[i], Type.NodeSet);\n\t    }\n\t}\n\treturn _type = Type.NodeSet;\t\n    }\n\n    public String toString() {\n\treturn \"union(\" + _pathExpr + \", \" + _rest + ')';\n    }\n\t\n    private void flatten(Vector components) {\n\tcomponents.addElement(_pathExpr);\n\tif (_rest != null) {\n\t    if (_rest instanceof UnionPathExpr) {\n\t\t((UnionPathExpr)_rest).flatten(components);\n\t    }\n\t    else {\n\t\tcomponents.addElement(_rest);\n\t    }\n\t}\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tfinal int init = cpg.addMethodref(UNION_ITERATOR_CLASS,\n\t\t\t\t\t  \"<init>\",\n\t\t\t\t\t  \"(\"+DOM_INTF_SIG+\")V\");\n\tfinal int iter = cpg.addMethodref(UNION_ITERATOR_CLASS,\n\t\t\t\t\t  ADD_ITERATOR,\n\t\t\t\t\t  ADD_ITERATOR_SIG);\n\n\til.append(new NEW(cpg.addClass(UNION_ITERATOR_CLASS)));\n\til.append(DUP);\n\til.append(methodGen.loadDOM());\n\til.append(new INVOKESPECIAL(init));\n\n\tfinal int length = _components.length;\n\tfor (int i = 0; i < length; i++) {\n\t    _components[i].translate(classGen, methodGen);\n\t    il.append(new INVOKEVIRTUAL(iter));\n\t}\n\n\tif (_reverse) {\n\t    final int order = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\tORDER_ITERATOR,\n\t\t\t\t\t\t\tORDER_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(SWAP);\n\t    il.append(methodGen.loadContextNode());\n\t    il.append(new INVOKEINTERFACE(order, 3));", "functions": [{"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tfinal Vector components = new Vector();\n\tflatten(components);\n\tfinal int size = components.size();\n\t_components = (Expression[])components.toArray(new Expression[size]);\n\tfor (int i = 0; i < size; i++) {\n\t    _components[i].setParser(parser);\n\t    _components[i].setParent(this);\n\t    if (_components[i] instanceof Step) {\n\t\tfinal Step step = (Step)_components[i];\n\t\tfinal int axis = step.getAxis();\n\t\tfinal int type = step.getNodeType();\n\t\tif ((axis == Axis.ATTRIBUTE) || (type == DOM.ATTRIBUTE)) {\n\t\t    _components[i] = _components[0];\n\t\t    _components[0] = step;\n\t\t}\n\t\tif (Axis.isReverse[axis]) _reverse = true;\n\t    }\n\t}\n\tif (getParent() instanceof Expression) _reverse = false;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [1, 10], [6, 11], [2, 12], [3, 13], [4, 14], [10, 15], [12, 16], [2, 17], [8, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [2, 24], [2, 25], [20, 26], [19, 27], [26, 28], [26, 29], [21, 30], [22, 31], [27, 32], [20, 33], [20, 34], [33, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 1], [11, 6], [12, 2], [13, 3], [14, 4], [15, 10], [16, 12], [17, 2], [18, 8], [19, 12], [20, 12], [21, 12], [22, 12], [23, 12], [24, 2], [25, 2], [26, 20], [27, 19], [28, 26], [29, 26], [30, 21], [31, 22], [32, 27], [33, 20], [34, 20], [35, 33], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal int length = _components.length;\n\tfor (int i = 0; i < length; i++) {\n\t    if (_components[i].typeCheck(stable) != Type.NodeSet) {\n\t\t_components[i] = new CastExpr(_components[i], Type.NodeSet);\n\t    }\n\t}\n\treturn _type = Type.NodeSet;\t", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [7, 8], [2, 9], [7, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 7], [9, 2], [10, 7], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"union(\" + _pathExpr + \", \" + _rest + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "flatten", "code": "    private void flatten(Vector components) {\n\tcomponents.addElement(_pathExpr);\n\tif (_rest != null) {\n\t    if (_rest instanceof UnionPathExpr) {\n\t\t((UnionPathExpr)_rest).flatten(components);\n\t    }\n\t    else {\n\t\tcomponents.addElement(_rest);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tfinal int init = cpg.addMethodref(UNION_ITERATOR_CLASS,\n\t\t\t\t\t  \"<init>\",\n\t\t\t\t\t  \"(\"+DOM_INTF_SIG+\")V\");\n\tfinal int iter = cpg.addMethodref(UNION_ITERATOR_CLASS,\n\t\t\t\t\t  ADD_ITERATOR,\n\t\t\t\t\t  ADD_ITERATOR_SIG);\n\n\til.append(new NEW(cpg.addClass(UNION_ITERATOR_CLASS)));\n\til.append(DUP);\n\til.append(methodGen.loadDOM());\n\til.append(new INVOKESPECIAL(init));\n\n\tfinal int length = _components.length;\n\tfor (int i = 0; i < length; i++) {\n\t    _components[i].translate(classGen, methodGen);\n\t    il.append(new INVOKEVIRTUAL(iter));\n\t}\n\n\tif (_reverse) {\n\t    final int order = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\tORDER_ITERATOR,\n\t\t\t\t\t\t\tORDER_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(SWAP);\n\t    il.append(methodGen.loadContextNode());\n\t    il.append(new INVOKEINTERFACE(order, 3));", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [11, 16], [12, 17], [14, 18], [4, 19], [5, 20], [6, 21], [7, 22], [1, 23], [1, 24], [1, 25], [1, 26], [2, 27], [2, 28], [18, 29], [20, 30], [20, 31], [23, 32], [24, 33], [26, 34], [15, 35], [27, 36], [2, 37], [30, 38], [30, 39], [32, 40], [39, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 11], [17, 12], [18, 14], [19, 4], [20, 5], [21, 6], [22, 7], [23, 1], [24, 1], [25, 1], [26, 1], [27, 2], [28, 2], [29, 18], [30, 20], [31, 20], [32, 23], [33, 24], [34, 26], [35, 15], [36, 27], [37, 2], [38, 30], [39, 30], [40, 32], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "UnionPathExpr", "code": "    public UnionPathExpr(Expression pathExpr, Expression rest) {\n\t_pathExpr = pathExpr;\n\t_rest     = rest;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.2-4381", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "bsh/StringUtil.java", "language": "java", "name": "bsh.StringUtil", "code": "public class StringUtil {\n\n\tpublic static String [] split( String s, String delim) {\n\t\tVector v = new Vector();\n\t\tStringTokenizer st = new StringTokenizer(s, delim);\n\t\twhile ( st.hasMoreTokens() )\n\t\t\tv.addElement( st.nextToken() );\n\t\tString [] sa = new String [ v.size() ];\n\t\tv.copyInto( sa );\n\t\treturn sa;\n\t}\n\n\tpublic static String [] bubbleSort( String [] in ) {\n\t\tVector v = new Vector();\n\t\tfor(int i=0; i<in.length; i++)\n\t\t\tv.addElement(in[i]);\n\n\t\tint n = v.size();\n\t\tboolean swap = true;\n\t\twhile ( swap ) {\n\t\t\tswap = false;\n\t\t\tfor(int i=0; i<(n-1); i++)\n\t\t\t\tif ( ((String)v.elementAt(i)).compareTo(\n\t\t\t\t\t\t((String)v.elementAt(i+1)) ) > 0 ) {\n\t\t\t\t\tString tmp = (String)v.elementAt(i+1);\n\t\t\t\t\tv.removeElementAt( i+1 );\n\t\t\t\t\tv.insertElementAt( tmp, i );\n\t\t\t\t\tswap = true;\n\t\t\t\t}\n\t\t}\n\n\t\tString [] out = new String [ n ];\n\t\tv.copyInto(out);\n\t\treturn out;\n\t}\n\n\n\tpublic static String maxCommonPrefix( String one, String two ) {\n\t\tint i=0;\n\t\twhile( one.regionMatches( 0, two, 0, i ) )\n\t\t\ti++;\n\t\treturn one.substring(0, i-1);\n\t}\n\n    public static String methodString(String name, Class[] types)\n    {\n        StringBuffer sb = new StringBuffer(name + \"(\");\n        if ( types.length > 0 )\n\t\t\tsb.append(\" \");\n        for( int i=0; i<types.length; i++ )\n        {\n            Class c = types[i];\n            sb.append( ( (c == null) ? \"null\" : c.getName() ) \n\t\t\t\t+ ( i < (types.length-1) ? \", \" : \" \" ) );\n        }\n        sb.append(\")\");\n        return sb.toString();\n    }\n\n\t/**\n\t\tSplit a filename into dirName, baseName\n\t\t@return String [] { dirName, baseName }\n    public String [] splitFileName( String fileName ) \n\t{ \n\t\tString dirName, baseName;\n\t\tint i = fileName.lastIndexOf( File.separator );\n\t\tif ( i != -1 ) {\n\t\t\tdirName = fileName.substring(0, i);\n\t\t\tbaseName = fileName.substring(i+1);\n\t\t} else\n\t\t\tbaseName = fileName;\n\n\t\treturn new String[] { dirName, baseName };\n\t}\n\n\t*/\n\n\t/**\n\t\tHack - The real method is in Reflect.java which is not public.\n\t*/\n    public static String normalizeClassName( Class type )\n\t{\n\t\treturn Reflect.normalizeClassName( type );", "functions": [{"function_name": "split", "code": "\tpublic static String [] split( String s, String delim) {\n\t\tVector v = new Vector();\n\t\tStringTokenizer st = new StringTokenizer(s, delim);\n\t\twhile ( st.hasMoreTokens() )\n\t\t\tv.addElement( st.nextToken() );\n\t\tString [] sa = new String [ v.size() ];\n\t\tv.copyInto( sa );\n\t\treturn sa;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [3, 10], [4, 11], [5, 12], [2, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 3], [11, 4], [12, 5], [13, 2], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "bubbleSort", "code": "\tpublic static String [] bubbleSort( String [] in ) {\n\t\tVector v = new Vector();\n\t\tfor(int i=0; i<in.length; i++)\n\t\t\tv.addElement(in[i]);\n\n\t\tint n = v.size();\n\t\tboolean swap = true;\n\t\twhile ( swap ) {\n\t\t\tswap = false;\n\t\t\tfor(int i=0; i<(n-1); i++)\n\t\t\t\tif ( ((String)v.elementAt(i)).compareTo(\n\t\t\t\t\t\t((String)v.elementAt(i+1)) ) > 0 ) {\n\t\t\t\t\tString tmp = (String)v.elementAt(i+1);\n\t\t\t\t\tv.removeElementAt( i+1 );\n\t\t\t\t\tv.insertElementAt( tmp, i );\n\t\t\t\t\tswap = true;\n\t\t\t\t}\n\t\t}\n\n\t\tString [] out = new String [ n ];\n\t\tv.copyInto(out);\n\t\treturn out;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [3, 11], [4, 12], [5, 13], [6, 14], [7, 15], [11, 16], [11, 17], [3, 18], [6, 19], [16, 20], [17, 21], [18, 22], [16, 23], [20, 24], [21, 25], [11, 26], [16, 27], [16, 28], [16, 29], [20, 30], [27, 31], [29, 32], [32, 33], [23, 34], [34, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 3], [12, 4], [13, 5], [14, 6], [15, 7], [16, 11], [17, 11], [18, 3], [19, 6], [20, 16], [21, 17], [22, 18], [23, 16], [24, 20], [25, 21], [26, 11], [27, 16], [28, 16], [29, 16], [30, 20], [31, 27], [32, 29], [33, 32], [34, 23], [35, 34], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "maxCommonPrefix", "code": "\tpublic static String maxCommonPrefix( String one, String two ) {\n\t\tint i=0;\n\t\twhile( one.regionMatches( 0, two, 0, i ) )\n\t\t\ti++;\n\t\treturn one.substring(0, i-1);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [6, 8], [6, 9], [7, 10], [7, 11], [3, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 6], [9, 6], [10, 7], [11, 7], [12, 3], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "methodString", "code": "    public static String methodString(String name, Class[] types)\n    {\n        StringBuffer sb = new StringBuffer(name + \"(\");\n        if ( types.length > 0 )\n\t\t\tsb.append(\" \");\n        for( int i=0; i<types.length; i++ )\n        {\n            Class c = types[i];\n            sb.append( ( (c == null) ? \"null\" : c.getName() ) \n\t\t\t\t+ ( i < (types.length-1) ? \", \" : \" \" ) );\n        }\n        sb.append(\")\");\n        return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [3, 10], [8, 11], [2, 12], [3, 13], [10, 14], [4, 15], [2, 16], [2, 17], [13, 18], [15, 19], [16, 20], [19, 21], [20, 22], [20, 23], [22, 24], [22, 25], [22, 26], [23, 27], [23, 28], [23, 29], [26, 30], [29, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 3], [11, 8], [12, 2], [13, 3], [14, 10], [15, 4], [16, 2], [17, 2], [18, 13], [19, 15], [20, 16], [21, 19], [22, 20], [23, 20], [24, 22], [25, 22], [26, 22], [27, 23], [28, 23], [29, 23], [30, 26], [31, 29], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "normalizeClassName", "code": "    public static String normalizeClassName( Class type )\n\t{\n\t\treturn Reflect.normalizeClassName( type );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "ant-1.7-1206", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET", "code": "public class MSVSSGET extends MSVSS {\n\n    /**\n     * Builds a command line to execute ss.\n     * @return     The constructed commandline.\n     */\n    Commandline buildCmdLine() {\n        Commandline commandLine = new Commandline();\n\n        commandLine.setExecutable(getSSCommand());\n        commandLine.createArgument().setValue(COMMAND_GET);\n\n        if (getVsspath() == null) {\n            throw new BuildException(\"vsspath attribute must be set!\", getLocation());\n        }\n        commandLine.createArgument().setValue(getVsspath());\n\n        commandLine.createArgument().setValue(getLocalpath());\n        commandLine.createArgument().setValue(getAutoresponse());\n        commandLine.createArgument().setValue(getQuiet());\n        commandLine.createArgument().setValue(getRecursive());\n        commandLine.createArgument().setValue(getVersionDateLabel());\n        commandLine.createArgument().setValue(getWritable());\n        commandLine.createArgument().setValue(getLogin());\n        commandLine.createArgument().setValue(getFileTimeStamp());\n        commandLine.createArgument().setValue(getWritableFiles());\n\n        return commandLine;\n    }\n\n    /**\n     * Override the project working directory.\n     *\n     * @param   localPath   The path on disk.\n     */\n    public void setLocalpath(Path localPath) {\n        super.setInternalLocalPath(localPath.toString());\n    }\n\n    /**\n     * Get files recursively. Defaults to false.\n     *\n     * @param recursive  The boolean value for recursive.\n     */\n    public final void setRecursive(boolean recursive) {\n        super.setInternalRecursive(recursive);\n    }\n\n    /**\n     * Enable quiet mode. Defaults to false.\n     *\n     * @param   quiet The boolean value for quiet.\n     */\n    public final void setQuiet (boolean quiet) {\n        super.setInternalQuiet(quiet);\n    }\n\n    /**\n     * Unset the READ-ONLY flag on files retrieved from VSS. Defaults to false.\n     *\n     * @param   writable The boolean value for writable.\n     */\n    public final void setWritable(boolean writable) {\n        super.setInternalWritable(writable);\n    }\n\n    /**\n     * Version to get.\n     *\n     * @param  version The version to get.\n     *\n     * @ant.attribute group=\"vdl\"\n     */\n    public void setVersion(String version) {\n        super.setInternalVersion(version);\n    }\n\n    /**\n     * Date to get.\n     *\n     * @param  date The date to get.\n     *\n     * @ant.attribute group=\"vdl\"\n     */\n    public void setDate(String date) {\n        super.setInternalDate(date);\n    }\n\n    /**\n     * Label to get.\n     *\n     * @param  label The label to get.\n     *\n     * @ant.attribute group=\"vdl\"\n     */\n    public void setLabel(String label) {\n        super.setInternalLabel(label);\n    }\n\n    /**\n     * Autoresponce behaviour. Valid options are Y and N.\n     *\n     * @param response The auto response value.\n     */\n    public void setAutoresponse(String response) {\n        super.setInternalAutoResponse(response);\n    }\n\n    /**\n     * Date and time stamp given to the local copy. Defaults to <code>current</code>.\n     *\n     * @param timestamp     The file time stamping behaviour.\n     */\n    public void setFileTimeStamp(CurrentModUpdated timestamp) {\n        super.setInternalFileTimeStamp(timestamp);\n    }\n\n    /**\n     * Action taken when local files are writable. Defaults to <code>fail</code>.\n     * <p>\n     * Due to ss.exe returning with an exit code of '100' for both errors and when\n     * a file has been skipped, <code>failonerror</code> is set to false when using\n     * the <code>skip</code> option.\n     *\n     * @param files The action to take.\n     */\n    public void setWritableFiles(WritableFiles files) {\n        super.setInternalWritableFiles(files);", "functions": [{"function_name": "buildCmdLine", "code": "    Commandline buildCmdLine() {\n        Commandline commandLine = new Commandline();\n\n        commandLine.setExecutable(getSSCommand());\n        commandLine.createArgument().setValue(COMMAND_GET);\n\n        if (getVsspath() == null) {\n            throw new BuildException(\"vsspath attribute must be set!\", getLocation());\n        }\n        commandLine.createArgument().setValue(getVsspath());\n\n        commandLine.createArgument().setValue(getLocalpath());\n        commandLine.createArgument().setValue(getAutoresponse());\n        commandLine.createArgument().setValue(getQuiet());\n        commandLine.createArgument().setValue(getRecursive());\n        commandLine.createArgument().setValue(getVersionDateLabel());\n        commandLine.createArgument().setValue(getWritable());\n        commandLine.createArgument().setValue(getLogin());\n        commandLine.createArgument().setValue(getFileTimeStamp());\n        commandLine.createArgument().setValue(getWritableFiles());\n\n        return commandLine;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [0, 15], [0, 16], [4, 17], [5, 18], [6, 19], [7, 20], [8, 21], [9, 22], [10, 23], [11, 24], [12, 25], [13, 26], [2, 27], [14, 28], [14, 29], [15, 30], [16, 31], [3, 32], [17, 33], [18, 34], [19, 35], [20, 36], [21, 37], [22, 38], [23, 39], [24, 40], [25, 41], [26, 42], [27, 43], [43, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 0], [16, 0], [17, 4], [18, 5], [19, 6], [20, 7], [21, 8], [22, 9], [23, 10], [24, 11], [25, 12], [26, 13], [27, 2], [28, 14], [29, 14], [30, 15], [31, 16], [32, 3], [33, 17], [34, 18], [35, 19], [36, 20], [37, 21], [38, 22], [39, 23], [40, 24], [41, 25], [42, 26], [43, 27], [44, 43], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "setLocalpath", "code": "    public void setLocalpath(Path localPath) {\n        super.setInternalLocalPath(localPath.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRecursive", "code": "    public final void setRecursive(boolean recursive) {\n        super.setInternalRecursive(recursive);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setQuiet", "code": "    public final void setQuiet (boolean quiet) {\n        super.setInternalQuiet(quiet);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWritable", "code": "    public final void setWritable(boolean writable) {\n        super.setInternalWritable(writable);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVersion", "code": "    public void setVersion(String version) {\n        super.setInternalVersion(version);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDate", "code": "    public void setDate(String date) {\n        super.setInternalDate(date);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLabel", "code": "    public void setLabel(String label) {\n        super.setInternalLabel(label);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoresponse", "code": "    public void setAutoresponse(String response) {\n        super.setInternalAutoResponse(response);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFileTimeStamp", "code": "    public void setFileTimeStamp(CurrentModUpdated timestamp) {\n        super.setInternalFileTimeStamp(timestamp);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWritableFiles", "code": "    public void setWritableFiles(WritableFiles files) {\n        super.setInternalWritableFiles(files);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-2619", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/loadbalancer/StickyLoadBalancer.java", "language": "java", "name": "org.apache.camel.processor.loadbalancer.StickyLoadBalancer", "code": "public class StickyLoadBalancer extends QueueLoadBalancer {\n    private Expression<Exchange> correlationExpression;\n    private QueueLoadBalancer loadBalancer;\n    private int numberOfHashGroups = 64 * 1024;\n    private final Map<Object, Processor> stickyMap = new HashMap<Object, Processor>();\n\n    public StickyLoadBalancer() {\n        this.loadBalancer = new RoundRobinLoadBalancer();\n    }\n\n    public StickyLoadBalancer(Expression<Exchange> correlationExpression) {\n        this(correlationExpression, new RoundRobinLoadBalancer());\n    }\n\n    public StickyLoadBalancer(Expression<Exchange> correlationExpression, QueueLoadBalancer loadBalancer) {\n        this.correlationExpression = correlationExpression;\n        this.loadBalancer = loadBalancer;\n    }\n\n    public void setCorrelationExpression(Expression<Exchange> correlationExpression) {\n        this.correlationExpression = correlationExpression;\n    }\n\n    public void setLoadBalancer(QueueLoadBalancer loadBalancer) {\n        this.loadBalancer = loadBalancer;\n    }\n\n    protected synchronized Processor chooseProcessor(List<Processor> processors, Exchange exchange) {\n        Object value = correlationExpression.evaluate(exchange);\n        Object key = getStickyKey(value);\n\n        Processor processor;\n        synchronized (stickyMap) {\n            processor = stickyMap.get(key);\n            if (processor == null) {\n                processor = loadBalancer.chooseProcessor(processors, exchange);\n                stickyMap.put(key, processor);\n            }\n        }\n        return processor;\n    }\n\n    @Override\n    public void removeProcessor(Processor processor) {\n        synchronized (stickyMap) {\n            Iterator<Map.Entry<Object, Processor>> iter = stickyMap.entrySet().iterator();\n            while (iter.hasNext()) {\n                Map.Entry<Object, Processor> entry = iter.next();\n                if (processor.equals(entry.getValue())) {\n                    iter.remove();\n                }\n            }\n        }\n        super.removeProcessor(processor);\n    }\n\n\n    public int getNumberOfHashGroups() {\n        return numberOfHashGroups;\n    }\n\n    public void setNumberOfHashGroups(int numberOfHashGroups) {\n        this.numberOfHashGroups = numberOfHashGroups;\n    }\n\n\n    /**\n     * A strategy to create the key for the sticky load balancing map.\n     * The default implementation uses the hash code of the value\n     * then modulos by the numberOfHashGroups to avoid the sticky map getting too big\n     *\n     * @param value the correlation value\n     * @return the key to be used in the sticky map\n     */\n    protected Object getStickyKey(Object value) {\n        int hashCode = 37;\n        if (value != null) {\n            hashCode = value.hashCode();\n        }\n        if (numberOfHashGroups > 0) {\n            hashCode = hashCode % numberOfHashGroups;\n        }\n        return hashCode;", "functions": [{"function_name": "setCorrelationExpression", "code": "    public void setCorrelationExpression(Expression<Exchange> correlationExpression) {\n        this.correlationExpression = correlationExpression;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLoadBalancer", "code": "    public void setLoadBalancer(QueueLoadBalancer loadBalancer) {\n        this.loadBalancer = loadBalancer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "chooseProcessor", "code": "    protected synchronized Processor chooseProcessor(List<Processor> processors, Exchange exchange) {\n        Object value = correlationExpression.evaluate(exchange);\n        Object key = getStickyKey(value);\n\n        Processor processor;\n        synchronized (stickyMap) {\n            processor = stickyMap.get(key);\n            if (processor == null) {\n                processor = loadBalancer.chooseProcessor(processors, exchange);\n                stickyMap.put(key, processor);\n            }\n        }\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [0, 9], [3, 10], [4, 11], [8, 12], [9, 13], [7, 14], [7, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [9, 0], [10, 3], [11, 4], [12, 8], [13, 9], [14, 7], [15, 7], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "removeProcessor", "code": "    @Override\n    public void removeProcessor(Processor processor) {\n        synchronized (stickyMap) {\n            Iterator<Map.Entry<Object, Processor>> iter = stickyMap.entrySet().iterator();\n            while (iter.hasNext()) {\n                Map.Entry<Object, Processor> entry = iter.next();\n                if (processor.equals(entry.getValue())) {\n                    iter.remove();\n                }\n            }\n        }\n        super.removeProcessor(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "LOOP", "VAR_DECL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [3, 7], [5, 8], [7, 9], [8, 10], [6, 11], [5, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 3], [8, 5], [9, 7], [10, 8], [11, 6], [12, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getNumberOfHashGroups", "code": "    public int getNumberOfHashGroups() {\n        return numberOfHashGroups;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNumberOfHashGroups", "code": "    public void setNumberOfHashGroups(int numberOfHashGroups) {\n        this.numberOfHashGroups = numberOfHashGroups;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStickyKey", "code": "    protected Object getStickyKey(Object value) {\n        int hashCode = 37;\n        if (value != null) {\n            hashCode = value.hashCode();\n        }\n        if (numberOfHashGroups > 0) {\n            hashCode = hashCode % numberOfHashGroups;\n        }\n        return hashCode;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [6, 8], [7, 9], [4, 10], [2, 11], [3, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 6], [9, 7], [10, 4], [11, 2], [12, 3], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "StickyLoadBalancer", "code": "    public StickyLoadBalancer() {\n        this.loadBalancer = new RoundRobinLoadBalancer();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "StickyLoadBalancer", "code": "    public StickyLoadBalancer(Expression<Exchange> correlationExpression) {\n        this(correlationExpression, new RoundRobinLoadBalancer());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "StickyLoadBalancer", "code": "    public StickyLoadBalancer(Expression<Exchange> correlationExpression, QueueLoadBalancer loadBalancer) {\n        this.correlationExpression = correlationExpression;\n        this.loadBalancer = loadBalancer;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.5-7049", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/dom/AnyNodeCounter.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.AnyNodeCounter", "code": "public abstract class AnyNodeCounter extends NodeCounter {\n    public AnyNodeCounter(Translet translet,\n\t\t\t  DOM document, DTMAxisIterator iterator) {\n\tsuper(translet, document, iterator);\n    }\n\t\n    public NodeCounter setStartNode(int node) {\n\t_node = node;\n\t_nodeType = _document.getExpandedTypeID(node);\n\treturn this;\n    }\n\n    public String getCounter() {\n\tint result;\n\tif (_value != Integer.MIN_VALUE) {\n\t    result = _value;\n\t}\n\telse {\n\t    int next = _node; \n            final int root = _document.getDocument();\n\t    result = 0;\n\t    while (next >= root && !matchesFrom(next)) {\n\t\tif (matchesCount(next)) {\n\t\t    ++result;\t\n\t\t}\n\t\tnext--;\n\t\t/*\n\t\tif (next == root) {\n\t\t    break;\n                }\n\t\telse {\n\t\t    --next;\t\t\n                }\n                */\n\t    }\n\t}\n\treturn formatNumbers(result);\n    }\n\n    public static NodeCounter getDefaultNodeCounter(Translet translet,\n\t\t\t\t\t\t    DOM document,\n\t\t\t\t\t\t    DTMAxisIterator iterator) {\n\treturn new DefaultAnyNodeCounter(translet, document, iterator);\n    }\n\n    static class DefaultAnyNodeCounter extends AnyNodeCounter {\n\tpublic DefaultAnyNodeCounter(Translet translet,\n\t\t\t\t     DOM document, DTMAxisIterator iterator) {\n\t    super(translet, document, iterator);\n\t}\n\n\tpublic String getCounter() {\n\t    int result;\n\t    if (_value != Integer.MIN_VALUE) {\n\t\tresult = _value;\n\t    }\n\t    else {\n\t\tint next = _node;\n\t\tresult = 0;\n\t\tfinal int ntype = _document.getExpandedTypeID(_node);\n                final int root = _document.getDocument();\n\t\twhile (next >= 0) {\n\t\t    if (ntype == _document.getExpandedTypeID(next)) {\n\t\t\tresult++;\n\t\t    }\n\t\t    if (next == root) {\n\t\t        break;\n                    }\n\t\t    else {\n\t\t        --next;\n                    }\n\t\t}\n\t    }\n\t    return formatNumbers(result);", "functions": [{"function_name": "setStartNode", "code": "    public NodeCounter setStartNode(int node) {\n\t_node = node;\n\t_nodeType = _document.getExpandedTypeID(node);\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getCounter", "code": "    public String getCounter() {\n\tint result;\n\tif (_value != Integer.MIN_VALUE) {\n\t    result = _value;\n\t}\n\telse {\n\t    int next = _node; \n            final int root = _document.getDocument();\n\t    result = 0;\n\t    while (next >= root && !matchesFrom(next)) {\n\t\tif (matchesCount(next)) {\n\t\t    ++result;\t\n\t\t}\n\t\tnext--;\n\t\t/*\n\t\tif (next == root) {\n\t\t    break;\n                }\n\t\telse {\n\t\t    --next;\t\t\n                }\n                */\n\t    }\n\t}\n\treturn formatNumbers(result);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [6, 9], [2, 10], [2, 11], [6, 12], [9, 13], [9, 14], [10, 15], [7, 16], [12, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 6], [10, 2], [11, 2], [12, 6], [13, 9], [14, 9], [15, 10], [16, 7], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getDefaultNodeCounter", "code": "    public static NodeCounter getDefaultNodeCounter(Translet translet,\n\t\t\t\t\t\t    DOM document,\n\t\t\t\t\t\t    DTMAxisIterator iterator) {\n\treturn new DefaultAnyNodeCounter(translet, document, iterator);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "AnyNodeCounter", "code": "    public AnyNodeCounter(Translet translet,\n\t\t\t  DOM document, DTMAxisIterator iterator) {\n\tsuper(translet, document, iterator);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "jedit-4.3-4525", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bufferio/BufferIORequest.java", "language": "java", "name": "org.gjt.sp.jedit.bufferio.BufferIORequest", "code": "public abstract class BufferIORequest extends WorkRequest\n{\n\t//{{{ Constants\n\n\t/**\n\t * Size of I/O buffers.\n\t */\n\tpublic static final int IOBUFSIZE = 32768;\n\n\t/**\n\t * Number of lines per progress increment.\n\t */\n\tpublic static final int PROGRESS_INTERVAL = 300;\n\n\tpublic static final String LOAD_DATA = \"BufferIORequest__loadData\";\n\tpublic static final String END_OFFSETS = \"BufferIORequest__endOffsets\";\n\tpublic static final String NEW_PATH = \"BufferIORequest__newPath\";\n\n\t/**\n\t * Buffer boolean property set when an error occurs.\n\t */\n\tpublic static final String ERROR_OCCURRED = \"BufferIORequest__error\";\n\n\t// These are no longer used but still here only for compatibility.\n\t@Deprecated public static final int UTF8_MAGIC_1 = 0xef;\n\t@Deprecated public static final int UTF8_MAGIC_2 = 0xbb;\n\t@Deprecated public static final int UTF8_MAGIC_3 = 0xbf;\n\t@Deprecated public static final int UNICODE_MAGIC_1 = 0xfe;\n\t@Deprecated public static final int UNICODE_MAGIC_2 = 0xff;\n\t@Deprecated public static final int XML_PI_LENGTH = 50;\n\t@Deprecated public static final int GZIP_MAGIC_1 = 0x1f;\n\t@Deprecated public static final int GZIP_MAGIC_2 = 0x8b;\n\n\t//}}}\n\n\t//{{{ Instance variables\n\tprotected final View view;\n\tprotected final Buffer buffer;\n\tprotected final Object session;\n\tprotected final VFS vfs;\n\tprotected String path;\n\tprotected final String markersPath;\n\t//}}}\n\n\t//{{{ BufferIORequest constructor\n\t/**\n\t * Creates a new buffer I/O request.\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @param session The VFS session\n\t * @param vfs The VFS\n\t * @param path The path\n\t */\n\tprotected BufferIORequest(View view, Buffer buffer,\n\t\tObject session, VFS vfs, String path)\n\t{\n\t\tthis.view = view;\n\t\tthis.buffer = buffer;\n\t\tthis.session = session;\n\t\tthis.vfs = vfs;\n\t\tthis.path = path;\n\n\t\tmarkersPath = Buffer.getMarkersPath(vfs, path);\n\t} //}}}\n\n\t//{{{ toString() method\n\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + '[' + buffer + ']';\n\t} //}}}\n\n\t//{{{ getCharIOBufferSize() method\n\t/**\n\t * Size of character I/O buffers.\n\t */\n\tpublic static int getCharIOBufferSize()\n\t{\n\t\treturn IOBUFSIZE;\n\t} //}}}\n\n\t//{{{ getByteIOBufferSize() method\n\t/**\n\t * Size of byte I/O buffers.\n\t */\n\tpublic static int getByteIOBufferSize()\n\t{\n\t\t// 2 is sizeof char in byte;\n\t\treturn IOBUFSIZE * 2;\n\t} //}}}\n\n\t//{{{ autodetect() method\n\t/**\n\t * Tries to detect if the stream is gzipped, and if it has an encoding\n\t * specified with an XML PI.\n\t */\n\tprotected Reader autodetect(InputStream in) throws IOException\n\t{\n\t\treturn MiscUtilities.autodetect(in, buffer);\n\t} //}}}\n\n\t//{{{ read() method\n\tprotected SegmentBuffer read(Reader in, long length,\n\t\tboolean insert) throws IOException\n\t{\n\t\t/* we guess an initial size for the array */\n\t\tIntegerArray endOffsets = new IntegerArray(\n\t\t\tMath.max(1,(int)(length / 50)));\n\n\t\t// only true if the file size is known\n\t\tboolean trackProgress = !buffer.isTemporary() && length != 0;\n\n\t\tif(trackProgress)\n\t\t{\n\t\t\tsetMaximum(length);\n\t\t\tsetValue(0);\n\t\t}\n\n\t\t// if the file size is not known, start with a resonable\n\t\t// default buffer size\n\t\tif(length == 0)\n\t\t\tlength = IOBUFSIZE;\n\n\t\tSegmentBuffer seg = new SegmentBuffer((int)length + 1);\n\n\t\tchar[] buf = new char[IOBUFSIZE];\n\n\t\t/* Number of characters in 'buf' array.\n\t\t InputStream.read() doesn't always fill the\n\t\t array (eg, the file size is not a multiple of\n\t\t IOBUFSIZE, or it is a GZipped file, etc) */\n \t\tint len;\n\n\t\t// True if a \\n was read after a \\r. Usually\n\t\t// means this is a DOS/Windows file\n\t\tboolean CRLF = false;\n\n\t\t// A \\r was read, hence a MacOS file\n\t\tboolean CROnly = false;\n\n\t\t// Was the previous read character a \\r?\n\t\t// If we read a \\n and this is true, we assume\n\t\t// we have a DOS/Windows file\n\t\tboolean lastWasCR = false;\n\n\t\t// Number of lines read. Every 100 lines, we update the\n\t\t// progress bar\n\t\tint lineCount = 0;\n\n\t\twhile((len = in.read(buf,0,buf.length)) != -1)\n\t\t{\n\t\t\t// Offset of previous line, relative to\n\t\t\t// the start of the I/O buffer (NOT\n\t\t\t// relative to the start of the document)\n\t\t\tint lastLine = 0;\n\n\t\t\tfor(int i = 0; i < len; i++)\n\t\t\t{\n\t\t\t\t// Look for line endings.\n\t\t\t\tswitch(buf[i])\n\t\t\t\t{\n\t\t\t\tcase '\\r':\n\t\t\t\t\t// If we read a \\r and\n\t\t\t\t\t// lastWasCR is also true,\n\t\t\t\t\t// it is probably a Mac file\n\t\t\t\t\t// (\\r\\r in stream)\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = true;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise set a flag,\n\t\t\t\t\t// so that \\n knows that last\n\t\t\t\t\t// was a \\r\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlastWasCR = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Insert a line\n\t\t\t\t\tseg.append(buf,lastLine,i -\n\t\t\t\t\t\tlastLine);\n\t\t\t\t\tseg.append('\\n');\n\t\t\t\t\tendOffsets.add(seg.count);\n\t\t\t\t\tif(trackProgress && lineCount++ % PROGRESS_INTERVAL == 0)\n\t\t\t\t\t\tsetValue(seg.count);\n\n\t\t\t\t\t// This is i+1 to take the\n\t\t\t\t\t// trailing \\n into account\n\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\n':\n\t\t\t\t\t/* If lastWasCR is true, we just read a \\r followed\n\t\t\t\t\t by a \\n. We specify that this is a Windows file,\n\t\t\t\t\t but take no further action and just ignore the \\r. */\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = false;\n\t\t\t\t\t\tCRLF = true;\n\t\t\t\t\t\tlastWasCR = false;\n\t\t\t\t\t\t/* Bump lastLine so that the next line doesn't erronously\n\t\t\t\t\t\t  pick up the \\r */\n\t\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\t}\n\t\t\t\t\t/* Otherwise, we found a \\n that follows some other\n\t\t\t\t\t *  character, hence we have a Unix file */\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = false;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t\tseg.append(buf,lastLine,\n\t\t\t\t\t\t\ti - lastLine);\n\t\t\t\t\t\tseg.append('\\n');\n\t\t\t\t\t\tendOffsets.add(seg.count);\n\t\t\t\t\t\tif(trackProgress && lineCount++ % PROGRESS_INTERVAL == 0)\n\t\t\t\t\t\t\tsetValue(seg.count);\n\t\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t/*  If we find some other character that follows\n\t\t\t\t\t a \\r, so it is not a Windows file, and probably\n\t\t\t\t\t a Mac file */\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = true;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t\tlastWasCR = false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(trackProgress)\n\t\t\t\tsetValue(seg.count);\n\n\t\t\t// Add remaining stuff from buffer\n\t\t\tseg.append(buf,lastLine,len - lastLine);\n\t\t}\n\n\t\tsetAbortable(false);\n\n\t\tString lineSeparator;\n\t\tif(seg.count == 0)\n\t\t{\n\t\t\t// fix for \"[ 865589 ] 0-byte files should open using\n\t\t\t// the default line seperator\"\n\t\t\tlineSeparator = jEdit.getProperty(\n\t\t\t\t\"buffer.lineSeparator\",\n\t\t\t\tSystem.getProperty(\"line.separator\"));\n\t\t}\n\t\telse if(CRLF)\n\t\t\tlineSeparator = \"\\r\\n\";\n\t\telse if(CROnly)\n\t\t\tlineSeparator = \"\\r\";\n\t\telse\n\t\t\tlineSeparator = \"\\n\";\n\n\t\t// Chop trailing newline and/or ^Z (if any)\n\t\tint bufferLength = seg.count;\n\t\tif(bufferLength != 0)\n\t\t{\n\t\t\tchar ch = seg.array[bufferLength - 1];\n\t\t\tif(ch == 0x1a /* DOS ^Z */)\n\t\t\t\tseg.count--;\n\t\t}\n\n\t\tbuffer.setBooleanProperty(Buffer.TRAILING_EOL,false);\n\t\tif(bufferLength != 0 && jEdit.getBooleanProperty(\"stripTrailingEOL\"))\n\t\t{\n\t\t\tchar ch = seg.array[bufferLength - 1];\n\t\t\tif(ch == '\\n')\n\t\t\t{\n\t\t\t\tbuffer.setBooleanProperty(Buffer.TRAILING_EOL,true);\n\t\t\t\tseg.count--;\n\t\t\t\tendOffsets.setSize(endOffsets.getSize() - 1);\n\t\t\t}\n\t\t}\n\n\t\t// add a line marker at the end for proper offset manager\n\t\t// operation\n\t\tendOffsets.add(seg.count + 1);\n\n\t\t// to avoid having to deal with read/write locks and such,\n\t\t// we insert the loaded data into the buffer in the\n\t\t// post-load cleanup runnable, which runs in the AWT thread.\n\t\tif(!insert)\n\t\t{\n\t\t\tbuffer.setProperty(LOAD_DATA,seg);\n\t\t\tbuffer.setProperty(END_OFFSETS,endOffsets);\n\t\t\tbuffer.setProperty(NEW_PATH,path);\n\t\t\tif(lineSeparator != null)\n\t\t\t\tbuffer.setProperty(JEditBuffer.LINESEP,lineSeparator);\n\t\t}\n\n\t\t// used in insert()\n\t\treturn seg;\n\t} //}}}\n\n\t//{{{ write() method\n\tprotected void write(Buffer buffer, OutputStream out)\n\t\tthrows IOException\n\t{\n\t\tString encodingName\n\t\t\t= buffer.getStringProperty(JEditBuffer.ENCODING);\n\t\tEncoding encoding = EncodingServer.getEncoding(encodingName);\n\t\tWriter writer = encoding.getTextWriter(\n\t\t\tnew BufferedOutputStream(out, getByteIOBufferSize()));\n\n\t\tSegment lineSegment = new Segment();\n\t\tString newline = buffer.getStringProperty(JEditBuffer.LINESEP);\n\t\tif(newline == null)\n\t\t\tnewline = System.getProperty(\"line.separator\");\n\n\t\tfinal int bufferLineCount = buffer.getLineCount();\n\t\tsetMaximum(bufferLineCount / PROGRESS_INTERVAL);\n\t\tsetValue(0);\n\n\t\tint i = 0;\n\t\twhile(i < bufferLineCount)\n\t\t{\n\t\t\tbuffer.getLineText(i,lineSegment);\n\t\t\ttry\n\t\t\t{\n\t\t\t\twriter.write(lineSegment.array,\n\t\t\t\t\tlineSegment.offset,\n\t\t\t\t\tlineSegment.count);\n\t\t\t\tif(i < bufferLineCount - 1\n\t\t\t\t\t|| (jEdit.getBooleanProperty(\"stripTrailingEOL\")\n\t\t\t\t\t\t&& buffer.getBooleanProperty(Buffer.TRAILING_EOL)))\n\t\t\t\t{\n\t\t\t\t\twriter.write(newline);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(CharacterCodingException e)\n\t\t\t{\n\t\t\t\tString message = getWriteEncodingErrorMessage(\n\t\t\t\t\tencodingName, encoding,\n\t\t\t\t\tlineSegment, i);\n\t\t\t\tIOException wrapping = new CharConversionException(message);\n\t\t\t\twrapping.initCause(e);\n\t\t\t\tthrow wrapping;\n\t\t\t}\n\n\t\t\tif(++i % PROGRESS_INTERVAL == 0)\n\t\t\t\tsetValue(i / PROGRESS_INTERVAL);\n\t\t}\n\t\twriter.flush();\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ createEncodingErrorMessage() method\n\tprivate static String getWriteEncodingErrorMessage(\n\t\tString encodingName, Encoding encoding,\n\t\tSegment line, int lineIndex)\n\t{\n\t\tString args[] = {\n\t\t\tencodingName,\n\t\t\tInteger.toString(lineIndex + 1),\n\t\t\t\"UNKNOWN\", // column\n\t\t\t\"UNKNOWN\"  // the character\n\t\t};\n\t\ttry\n\t\t{\n\t\t\tint charIndex = getFirstGuiltyCharacterIndex(encoding, line);\n\t\t\tif(0 <= charIndex && charIndex < line.count)\n\t\t\t{\n\t\t\t\tchar c = line.array[line.offset + charIndex];\n\t\t\t\targs[2] = Integer.toString(charIndex + 1);\n\t\t\t\targs[3] = \"'\" + c + \"' (U+\" + Integer.toHexString(c).toUpperCase() + \")\";\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t// Ignore.\n\t\t}\n\t\treturn jEdit.getProperty(\"ioerror.write-encoding-error\", args);\n\t} //}}}\n\n\t//{{{ getFirstGuiltyCharacterIndex() method\n\t// Look for the first character which causes encoding error.\n\tprivate static int getFirstGuiltyCharacterIndex(Encoding encoding,\n\t\tSegment line) throws IOException\n\t{\n\t\tif(line.count < 1)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse if(line.count == 1)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\n\t\tWriter tester = encoding.getTextWriter(\n\t\t\tnew OutputStream()\n\t\t\t{\n\t\t\t\tpublic void write(int b) {}\n\t\t\t});\n\t\tfor(int i = 0; i < line.count; ++i)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\ttester.write(line.array[line.offset + i]);\n\t\t\t}\n\t\t\tcatch(CharacterCodingException e)\n\t\t\t{\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;", "functions": [{"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + '[' + buffer + ']';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getCharIOBufferSize", "code": "\tpublic static int getCharIOBufferSize()\n\t{\n\t\treturn IOBUFSIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getByteIOBufferSize", "code": "\tpublic static int getByteIOBufferSize()\n\t{\n\t\t// 2 is sizeof char in byte;\n\t\treturn IOBUFSIZE * 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "autodetect", "code": "\tprotected Reader autodetect(InputStream in) throws IOException\n\t{\n\t\treturn MiscUtilities.autodetect(in, buffer);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "read", "code": "\tprotected SegmentBuffer read(Reader in, long length,\n\t\tboolean insert) throws IOException\n\t{\n\t\t/* we guess an initial size for the array */\n\t\tIntegerArray endOffsets = new IntegerArray(\n\t\t\tMath.max(1,(int)(length / 50)));\n\n\t\t// only true if the file size is known\n\t\tboolean trackProgress = !buffer.isTemporary() && length != 0;\n\n\t\tif(trackProgress)\n\t\t{\n\t\t\tsetMaximum(length);\n\t\t\tsetValue(0);\n\t\t}\n\n\t\t// if the file size is not known, start with a resonable\n\t\t// default buffer size\n\t\tif(length == 0)\n\t\t\tlength = IOBUFSIZE;\n\n\t\tSegmentBuffer seg = new SegmentBuffer((int)length + 1);\n\n\t\tchar[] buf = new char[IOBUFSIZE];\n\n\t\t/* Number of characters in 'buf' array.\n\t\t InputStream.read() doesn't always fill the\n\t\t array (eg, the file size is not a multiple of\n\t\t IOBUFSIZE, or it is a GZipped file, etc) */\n \t\tint len;\n\n\t\t// True if a \\n was read after a \\r. Usually\n\t\t// means this is a DOS/Windows file\n\t\tboolean CRLF = false;\n\n\t\t// A \\r was read, hence a MacOS file\n\t\tboolean CROnly = false;\n\n\t\t// Was the previous read character a \\r?\n\t\t// If we read a \\n and this is true, we assume\n\t\t// we have a DOS/Windows file\n\t\tboolean lastWasCR = false;\n\n\t\t// Number of lines read. Every 100 lines, we update the\n\t\t// progress bar\n\t\tint lineCount = 0;\n\n\t\twhile((len = in.read(buf,0,buf.length)) != -1)\n\t\t{\n\t\t\t// Offset of previous line, relative to\n\t\t\t// the start of the I/O buffer (NOT\n\t\t\t// relative to the start of the document)\n\t\t\tint lastLine = 0;\n\n\t\t\tfor(int i = 0; i < len; i++)\n\t\t\t{\n\t\t\t\t// Look for line endings.\n\t\t\t\tswitch(buf[i])\n\t\t\t\t{\n\t\t\t\tcase '\\r':\n\t\t\t\t\t// If we read a \\r and\n\t\t\t\t\t// lastWasCR is also true,\n\t\t\t\t\t// it is probably a Mac file\n\t\t\t\t\t// (\\r\\r in stream)\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = true;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise set a flag,\n\t\t\t\t\t// so that \\n knows that last\n\t\t\t\t\t// was a \\r\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlastWasCR = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Insert a line\n\t\t\t\t\tseg.append(buf,lastLine,i -\n\t\t\t\t\t\tlastLine);\n\t\t\t\t\tseg.append('\\n');\n\t\t\t\t\tendOffsets.add(seg.count);\n\t\t\t\t\tif(trackProgress && lineCount++ % PROGRESS_INTERVAL == 0)\n\t\t\t\t\t\tsetValue(seg.count);\n\n\t\t\t\t\t// This is i+1 to take the\n\t\t\t\t\t// trailing \\n into account\n\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\n':\n\t\t\t\t\t/* If lastWasCR is true, we just read a \\r followed\n\t\t\t\t\t by a \\n. We specify that this is a Windows file,\n\t\t\t\t\t but take no further action and just ignore the \\r. */\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = false;\n\t\t\t\t\t\tCRLF = true;\n\t\t\t\t\t\tlastWasCR = false;\n\t\t\t\t\t\t/* Bump lastLine so that the next line doesn't erronously\n\t\t\t\t\t\t  pick up the \\r */\n\t\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\t}\n\t\t\t\t\t/* Otherwise, we found a \\n that follows some other\n\t\t\t\t\t *  character, hence we have a Unix file */\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = false;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t\tseg.append(buf,lastLine,\n\t\t\t\t\t\t\ti - lastLine);\n\t\t\t\t\t\tseg.append('\\n');\n\t\t\t\t\t\tendOffsets.add(seg.count);\n\t\t\t\t\t\tif(trackProgress && lineCount++ % PROGRESS_INTERVAL == 0)\n\t\t\t\t\t\t\tsetValue(seg.count);\n\t\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t/*  If we find some other character that follows\n\t\t\t\t\t a \\r, so it is not a Windows file, and probably\n\t\t\t\t\t a Mac file */\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = true;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t\tlastWasCR = false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(trackProgress)\n\t\t\t\tsetValue(seg.count);\n\n\t\t\t// Add remaining stuff from buffer\n\t\t\tseg.append(buf,lastLine,len - lastLine);\n\t\t}\n\n\t\tsetAbortable(false);\n\n\t\tString lineSeparator;\n\t\tif(seg.count == 0)\n\t\t{\n\t\t\t// fix for \"[ 865589 ] 0-byte files should open using\n\t\t\t// the default line seperator\"\n\t\t\tlineSeparator = jEdit.getProperty(\n\t\t\t\t\"buffer.lineSeparator\",\n\t\t\t\tSystem.getProperty(\"line.separator\"));\n\t\t}\n\t\telse if(CRLF)\n\t\t\tlineSeparator = \"\\r\\n\";\n\t\telse if(CROnly)\n\t\t\tlineSeparator = \"\\r\";\n\t\telse\n\t\t\tlineSeparator = \"\\n\";\n\n\t\t// Chop trailing newline and/or ^Z (if any)\n\t\tint bufferLength = seg.count;\n\t\tif(bufferLength != 0)\n\t\t{\n\t\t\tchar ch = seg.array[bufferLength - 1];\n\t\t\tif(ch == 0x1a /* DOS ^Z */)\n\t\t\t\tseg.count--;\n\t\t}\n\n\t\tbuffer.setBooleanProperty(Buffer.TRAILING_EOL,false);\n\t\tif(bufferLength != 0 && jEdit.getBooleanProperty(\"stripTrailingEOL\"))\n\t\t{\n\t\t\tchar ch = seg.array[bufferLength - 1];\n\t\t\tif(ch == '\\n')\n\t\t\t{\n\t\t\t\tbuffer.setBooleanProperty(Buffer.TRAILING_EOL,true);\n\t\t\t\tseg.count--;\n\t\t\t\tendOffsets.setSize(endOffsets.getSize() - 1);\n\t\t\t}\n\t\t}\n\n\t\t// add a line marker at the end for proper offset manager\n\t\t// operation\n\t\tendOffsets.add(seg.count + 1);\n\n\t\t// to avoid having to deal with read/write locks and such,\n\t\t// we insert the loaded data into the buffer in the\n\t\t// post-load cleanup runnable, which runs in the AWT thread.\n\t\tif(!insert)\n\t\t{\n\t\t\tbuffer.setProperty(LOAD_DATA,seg);\n\t\t\tbuffer.setProperty(END_OFFSETS,endOffsets);\n\t\t\tbuffer.setProperty(NEW_PATH,path);\n\t\t\tif(lineSeparator != null)\n\t\t\t\tbuffer.setProperty(JEditBuffer.LINESEP,lineSeparator);\n\t\t}\n\n\t\t// used in insert()\n\t\treturn seg;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [3, 24], [0, 25], [4, 26], [6, 27], [6, 28], [0, 29], [8, 30], [16, 31], [2, 32], [23, 33], [3, 34], [3, 35], [24, 36], [24, 37], [25, 38], [4, 39], [4, 40], [26, 41], [27, 42], [28, 43], [29, 44], [8, 45], [8, 46], [8, 47], [30, 48], [30, 49], [9, 50], [10, 51], [11, 52], [12, 53], [15, 54], [16, 55], [31, 56], [18, 57], [19, 58], [32, 59], [2, 60], [2, 61], [2, 62], [33, 63], [34, 64], [36, 65], [37, 66], [39, 67], [27, 68], [6, 69], [8, 70], [46, 71], [49, 72], [54, 73], [17, 74], [17, 75], [57, 76], [57, 77], [58, 78], [32, 79], [59, 80], [64, 81], [67, 82], [42, 83], [42, 84], [68, 85], [69, 86], [70, 87], [45, 88], [46, 89], [47, 90], [72, 91], [73, 92], [74, 93], [76, 94], [78, 95], [34, 96], [34, 97], [83, 98], [84, 99], [86, 100], [86, 101], [46, 102], [78, 103], [96, 104], [97, 105], [35, 106], [40, 107], [100, 108], [89, 109], [89, 110], [89, 111], [89, 112], [89, 113], [89, 114], [89, 115], [89, 116], [89, 117], [103, 118], [104, 119], [104, 120], [106, 121], [107, 122], [89, 123], [115, 124], [89, 125], [89, 126], [89, 127], [112, 128], [123, 129], [115, 130], [124, 131], [126, 132], [127, 133], [110, 134], [110, 135], [110, 136], [112, 137], [128, 138], [112, 139], [112, 140], [112, 141], [112, 142], [112, 143], [112, 144], [112, 145], [112, 146], [112, 147], [129, 148], [131, 149], [131, 150], [116, 151], [116, 152], [116, 153], [134, 154], [135, 155], [136, 156], [137, 157], [128, 158], [138, 159], [140, 160], [141, 161], [142, 162], [143, 163], [144, 164], [145, 165], [146, 166], [147, 167], [151, 168], [152, 169], [153, 170], [157, 171], [159, 172], [159, 173], [164, 174], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 3], [25, 0], [26, 4], [27, 6], [28, 6], [29, 0], [30, 8], [31, 16], [32, 2], [33, 23], [34, 3], [35, 3], [36, 24], [37, 24], [38, 25], [39, 4], [40, 4], [41, 26], [42, 27], [43, 28], [44, 29], [45, 8], [46, 8], [47, 8], [48, 30], [49, 30], [50, 9], [51, 10], [52, 11], [53, 12], [54, 15], [55, 16], [56, 31], [57, 18], [58, 19], [59, 32], [60, 2], [61, 2], [62, 2], [63, 33], [64, 34], [65, 36], [66, 37], [67, 39], [68, 27], [69, 6], [70, 8], [71, 46], [72, 49], [73, 54], [74, 17], [75, 17], [76, 57], [77, 57], [78, 58], [79, 32], [80, 59], [81, 64], [82, 67], [83, 42], [84, 42], [85, 68], [86, 69], [87, 70], [88, 45], [89, 46], [90, 47], [91, 72], [92, 73], [93, 74], [94, 76], [95, 78], [96, 34], [97, 34], [98, 83], [99, 84], [100, 86], [101, 86], [102, 46], [103, 78], [104, 96], [105, 97], [106, 35], [107, 40], [108, 100], [109, 89], [110, 89], [111, 89], [112, 89], [113, 89], [114, 89], [115, 89], [116, 89], [117, 89], [118, 103], [119, 104], [120, 104], [121, 106], [122, 107], [123, 89], [124, 115], [125, 89], [126, 89], [127, 89], [128, 112], [129, 123], [130, 115], [131, 124], [132, 126], [133, 127], [134, 110], [135, 110], [136, 110], [137, 112], [138, 128], [139, 112], [140, 112], [141, 112], [142, 112], [143, 112], [144, 112], [145, 112], [146, 112], [147, 112], [148, 129], [149, 131], [150, 131], [151, 116], [152, 116], [153, 116], [154, 134], [155, 135], [156, 136], [157, 137], [158, 128], [159, 138], [160, 140], [161, 141], [162, 142], [163, 143], [164, 144], [165, 145], [166, 146], [167, 147], [168, 151], [169, 152], [170, 153], [171, 157], [172, 159], [173, 159], [174, 164], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174]]}, {"function_name": "write", "code": "\tprotected void write(Buffer buffer, OutputStream out)\n\t\tthrows IOException\n\t{\n\t\tString encodingName\n\t\t\t= buffer.getStringProperty(JEditBuffer.ENCODING);\n\t\tEncoding encoding = EncodingServer.getEncoding(encodingName);\n\t\tWriter writer = encoding.getTextWriter(\n\t\t\tnew BufferedOutputStream(out, getByteIOBufferSize()));\n\n\t\tSegment lineSegment = new Segment();\n\t\tString newline = buffer.getStringProperty(JEditBuffer.LINESEP);\n\t\tif(newline == null)\n\t\t\tnewline = System.getProperty(\"line.separator\");\n\n\t\tfinal int bufferLineCount = buffer.getLineCount();\n\t\tsetMaximum(bufferLineCount / PROGRESS_INTERVAL);\n\t\tsetValue(0);\n\n\t\tint i = 0;\n\t\twhile(i < bufferLineCount)\n\t\t{\n\t\t\tbuffer.getLineText(i,lineSegment);\n\t\t\ttry\n\t\t\t{\n\t\t\t\twriter.write(lineSegment.array,\n\t\t\t\t\tlineSegment.offset,\n\t\t\t\t\tlineSegment.count);\n\t\t\t\tif(i < bufferLineCount - 1\n\t\t\t\t\t|| (jEdit.getBooleanProperty(\"stripTrailingEOL\")\n\t\t\t\t\t\t&& buffer.getBooleanProperty(Buffer.TRAILING_EOL)))\n\t\t\t\t{\n\t\t\t\t\twriter.write(newline);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(CharacterCodingException e)\n\t\t\t{\n\t\t\t\tString message = getWriteEncodingErrorMessage(\n\t\t\t\t\tencodingName, encoding,\n\t\t\t\t\tlineSegment, i);\n\t\t\t\tIOException wrapping = new CharConversionException(message);\n\t\t\t\twrapping.initCause(e);\n\t\t\t\tthrow wrapping;\n\t\t\t}\n\n\t\t\tif(++i % PROGRESS_INTERVAL == 0)\n\t\t\t\tsetValue(i / PROGRESS_INTERVAL);\n\t\t}\n\t\twriter.flush();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CATCH", "IF", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [0, 14], [0, 15], [4, 16], [1, 17], [1, 18], [2, 19], [14, 20], [15, 21], [3, 22], [4, 23], [16, 24], [5, 25], [6, 26], [7, 27], [8, 28], [9, 29], [17, 30], [18, 31], [18, 32], [1, 33], [23, 34], [27, 35], [17, 36], [30, 37], [30, 38], [31, 39], [31, 40], [31, 41], [32, 42], [18, 43], [34, 44], [35, 45], [36, 46], [31, 47], [42, 48], [42, 49], [40, 50], [41, 51], [32, 52], [48, 53], [48, 54], [49, 55], [54, 56], [55, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 0], [15, 0], [16, 4], [17, 1], [18, 1], [19, 2], [20, 14], [21, 15], [22, 3], [23, 4], [24, 16], [25, 5], [26, 6], [27, 7], [28, 8], [29, 9], [30, 17], [31, 18], [32, 18], [33, 1], [34, 23], [35, 27], [36, 17], [37, 30], [38, 30], [39, 31], [40, 31], [41, 31], [42, 32], [43, 18], [44, 34], [45, 35], [46, 36], [47, 31], [48, 42], [49, 42], [50, 40], [51, 41], [52, 32], [53, 48], [54, 48], [55, 49], [56, 54], [57, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "getWriteEncodingErrorMessage", "code": "\tprivate static String getWriteEncodingErrorMessage(\n\t\tString encodingName, Encoding encoding,\n\t\tSegment line, int lineIndex)\n\t{\n\t\tString args[] = {\n\t\t\tencodingName,\n\t\t\tInteger.toString(lineIndex + 1),\n\t\t\t\"UNKNOWN\", // column\n\t\t\t\"UNKNOWN\"  // the character\n\t\t};\n\t\ttry\n\t\t{\n\t\t\tint charIndex = getFirstGuiltyCharacterIndex(encoding, line);\n\t\t\tif(0 <= charIndex && charIndex < line.count)\n\t\t\t{\n\t\t\t\tchar c = line.array[line.offset + charIndex];\n\t\t\t\targs[2] = Integer.toString(charIndex + 1);\n\t\t\t\targs[3] = \"'\" + c + \"' (U+\" + Integer.toHexString(c).toUpperCase() + \")\";\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t// Ignore.\n\t\t}\n\t\treturn jEdit.getProperty(\"ioerror.write-encoding-error\", args);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [8, 12], [10, 13], [10, 14], [13, 15], [13, 16], [11, 17], [3, 18], [3, 19], [3, 20], [10, 21], [10, 22], [16, 23], [20, 24], [21, 25], [22, 26], [24, 27], [25, 28], [25, 29], [26, 30], [29, 31], [29, 32], [21, 33], [30, 34], [22, 35], [14, 36], [31, 37], [32, 38], [32, 39], [39, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 8], [13, 10], [14, 10], [15, 13], [16, 13], [17, 11], [18, 3], [19, 3], [20, 3], [21, 10], [22, 10], [23, 16], [24, 20], [25, 21], [26, 22], [27, 24], [28, 25], [29, 25], [30, 26], [31, 29], [32, 29], [33, 21], [34, 30], [35, 22], [36, 14], [37, 31], [38, 32], [39, 32], [40, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "getFirstGuiltyCharacterIndex", "code": "\tprivate static int getFirstGuiltyCharacterIndex(Encoding encoding,\n\t\tSegment line) throws IOException\n\t{\n\t\tif(line.count < 1)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse if(line.count == 1)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\n\t\tWriter tester = encoding.getTextWriter(\n\t\t\tnew OutputStream()\n\t\t\t{\n\t\t\t\tpublic void write(int b) {}\n\t\t\t});\n\t\tfor(int i = 0; i < line.count; ++i)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\ttester.write(line.array[line.offset + i]);\n\t\t\t}\n\t\t\tcatch(CharacterCodingException e)\n\t\t\t{\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "TRY", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [4, 10], [2, 11], [3, 12], [9, 13], [4, 14], [10, 15], [11, 16], [2, 17], [12, 18], [9, 19], [13, 20], [14, 21], [16, 22], [11, 23], [18, 24], [19, 25], [24, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 4], [11, 2], [12, 3], [13, 9], [14, 4], [15, 10], [16, 11], [17, 2], [18, 12], [19, 9], [20, 13], [21, 14], [22, 16], [23, 11], [24, 18], [25, 19], [26, 24], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "BufferIORequest", "code": "\tprotected BufferIORequest(View view, Buffer buffer,\n\t\tObject session, VFS vfs, String path)\n\t{\n\t\tthis.view = view;\n\t\tthis.buffer = buffer;\n\t\tthis.session = session;\n\t\tthis.vfs = vfs;\n\t\tthis.path = path;\n\n\t\tmarkersPath = Buffer.getMarkersPath(vfs, path);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "ivy-2.0-3307", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/matcher/AnyMatcher.java", "language": "java", "name": "org.apache.ivy.plugins.matcher.AnyMatcher", "code": "public/* @Immutable */class AnyMatcher implements Matcher {\n    public static final Matcher INSTANCE = new AnyMatcher();\n\n    public AnyMatcher() {\n    }\n\n    public boolean matches(String input) {\n        if (input == null) {\n            throw new NullPointerException();\n        }\n        return true;\n    }\n\n    public boolean isExact() {\n        return false;", "functions": [{"function_name": "matches", "code": "    public boolean matches(String input) {\n        if (input == null) {\n            throw new NullPointerException();\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isExact", "code": "    public boolean isExact() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AnyMatcher", "code": "    public AnyMatcher() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.6-507", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/selectors/FilenameSelector.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.FilenameSelector", "code": "public class FilenameSelector extends BaseExtendSelector {\n\n    private String pattern = null;\n    private boolean casesensitive = true;\n\n    private boolean negated = false;\n    /** Used for parameterized custom selector */\n    public static final String NAME_KEY = \"name\";\n    /** Used for parameterized custom selector */\n    public static final String CASE_KEY = \"casesensitive\";\n    /** Used for parameterized custom selector */\n    public static final String NEGATE_KEY = \"negate\";\n\n    /**\n     * Creates a new <code>FilenameSelector</code> instance.\n     *\n     */\n    public FilenameSelector() {\n    }\n\n    /**\n     * @return a string describing this object\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer(\"{filenameselector name: \");\n        buf.append(pattern);\n        buf.append(\" negate: \");\n        if (negated) {\n            buf.append(\"true\");\n        } else {\n            buf.append(\"false\");\n        }\n        buf.append(\" casesensitive: \");\n        if (casesensitive) {\n            buf.append(\"true\");\n        } else {\n            buf.append(\"false\");\n        }\n        buf.append(\"}\");\n        return buf.toString();\n    }\n\n    /**\n     * The name of the file, or the pattern for the name, that\n     * should be used for selection.\n     *\n     * @param pattern the file pattern that any filename must match\n     *                against in order to be selected.\n     */\n    public void setName(String pattern) {\n        pattern = pattern.replace('/', File.separatorChar).replace('\\\\',\n                File.separatorChar);\n        if (pattern.endsWith(File.separator)) {\n            pattern += \"**\";\n        }\n        this.pattern = pattern;\n    }\n\n    /**\n     * Whether to ignore case when checking filenames.\n     *\n     * @param casesensitive whether to pay attention to case sensitivity\n     */\n    public void setCasesensitive(boolean casesensitive) {\n        this.casesensitive = casesensitive;\n    }\n\n    /**\n     * You can optionally reverse the selection of this selector,\n     * thereby emulating an &lt;exclude&gt; tag, by setting the attribute\n     * negate to true. This is identical to surrounding the selector\n     * with &lt;not&gt;&lt;/not&gt;.\n     *\n     * @param negated whether to negate this selection\n     */\n    public void setNegate(boolean negated) {\n        this.negated = negated;\n    }\n\n    /**\n     * When using this as a custom selector, this method will be called.\n     * It translates each parameter into the appropriate setXXX() call.\n     *\n     * @param parameters the complete set of parameters for this selector\n     */\n    public void setParameters(Parameter[] parameters) {\n        super.setParameters(parameters);\n        if (parameters != null) {\n            for (int i = 0; i < parameters.length; i++) {\n                String paramname = parameters[i].getName();\n                if (NAME_KEY.equalsIgnoreCase(paramname)) {\n                    setName(parameters[i].getValue());\n                } else if (CASE_KEY.equalsIgnoreCase(paramname)) {\n                    setCasesensitive(Project.toBoolean(\n                            parameters[i].getValue()));\n                } else if (NEGATE_KEY.equalsIgnoreCase(paramname)) {\n                    setNegate(Project.toBoolean(parameters[i].getValue()));\n                } else {\n                    setError(\"Invalid parameter \" + paramname);\n                }\n            }\n        }\n    }\n\n    /**\n     * Checks to make sure all settings are kosher. In this case, it\n     * means that the name attribute has been set.\n     *\n     */\n    public void verifySettings() {\n        if (pattern == null) {\n            setError(\"The name attribute is required\");\n        }\n    }\n\n    /**\n     * The heart of the matter. This is where the selector gets to decide\n     * on the inclusion of a file in a particular fileset. Most of the work\n     * for this selector is offloaded into SelectorUtils, a static class\n     * that provides the same services for both FilenameSelector and\n     * DirectoryScanner.\n     *\n     * @param basedir the base directory the scan is being done from\n     * @param filename is the name of the file to check\n     * @param file is a java.io.File object the selector can use\n     * @return whether the file should be selected or not\n     */\n    public boolean isSelected(File basedir, String filename, File file) {\n        validate();\n\n        return (SelectorUtils.matchPath(pattern, filename,\n                casesensitive) == !(negated));", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer(\"{filenameselector name: \");\n        buf.append(pattern);\n        buf.append(\" negate: \");\n        if (negated) {\n            buf.append(\"true\");\n        } else {\n            buf.append(\"false\");\n        }\n        buf.append(\" casesensitive: \");\n        if (casesensitive) {\n            buf.append(\"true\");\n        } else {\n            buf.append(\"false\");\n        }\n        buf.append(\"}\");\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [8, 12], [4, 13], [2, 14], [2, 15], [3, 16], [3, 17], [13, 18], [14, 19], [15, 20], [16, 21], [17, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 8], [13, 4], [14, 2], [15, 2], [16, 3], [17, 3], [18, 13], [19, 14], [20, 15], [21, 16], [22, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "setName", "code": "    public void setName(String pattern) {\n        pattern = pattern.replace('/', File.separatorChar).replace('\\\\',\n                File.separatorChar);\n        if (pattern.endsWith(File.separator)) {\n            pattern += \"**\";\n        }\n        this.pattern = pattern;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [1, 7], [6, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [7, 1], [8, 6], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setCasesensitive", "code": "    public void setCasesensitive(boolean casesensitive) {\n        this.casesensitive = casesensitive;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNegate", "code": "    public void setNegate(boolean negated) {\n        this.negated = negated;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setParameters", "code": "    public void setParameters(Parameter[] parameters) {\n        super.setParameters(parameters);\n        if (parameters != null) {\n            for (int i = 0; i < parameters.length; i++) {\n                String paramname = parameters[i].getName();\n                if (NAME_KEY.equalsIgnoreCase(paramname)) {\n                    setName(parameters[i].getValue());\n                } else if (CASE_KEY.equalsIgnoreCase(paramname)) {\n                    setCasesensitive(Project.toBoolean(\n                            parameters[i].getValue()));\n                } else if (NEGATE_KEY.equalsIgnoreCase(paramname)) {\n                    setNegate(Project.toBoolean(parameters[i].getValue()));\n                } else {\n                    setError(\"Invalid parameter \" + paramname);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [4, 8], [7, 9], [7, 10], [4, 11], [9, 12], [9, 13], [12, 14], [7, 15], [8, 16], [9, 17], [12, 18], [12, 19], [17, 20], [15, 21], [18, 22], [19, 23], [22, 24], [20, 25], [23, 26], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 4], [9, 7], [10, 7], [11, 4], [12, 9], [13, 9], [14, 12], [15, 7], [16, 8], [17, 9], [18, 12], [19, 12], [20, 17], [21, 15], [22, 18], [23, 19], [24, 22], [25, 20], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "verifySettings", "code": "    public void verifySettings() {\n        if (pattern == null) {\n            setError(\"The name attribute is required\");", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isSelected", "code": "    public boolean isSelected(File basedir, String filename, File file) {\n        validate();\n\n        return (SelectorUtils.matchPath(pattern, filename,\n                casesensitive) == !(negated));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "FilenameSelector", "code": "    public FilenameSelector() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.5-5735", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hpsf/HPSFRuntimeException.java", "language": "java", "name": "org.apache.poi.hpsf.HPSFRuntimeException", "code": "public class HPSFRuntimeException extends RuntimeException\n{\n\n    private Throwable reason;\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException}.</p>\n     */\n    public HPSFRuntimeException()\n    {\n        super();\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException} with a message\n     * string.</p>\n     *\n     * @param msg The message string.\n     */\n    public HPSFRuntimeException(final String msg)\n    {\n        super(msg);\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException} with a\n     * reason.</p>\n     *\n     * @param reason The reason, i.e. a throwable that indirectly\n     * caused this exception.\n     */\n    public HPSFRuntimeException(final Throwable reason)\n    {\n        super();\n        this.reason = reason;\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException} with a message\n     * string and a reason.</p>\n     *\n     * @param msg The message string.\n     * @param reason The reason, i.e. a throwable that indirectly\n     * caused this exception.\n     */\n    public HPSFRuntimeException(final String msg, final Throwable reason)\n    {\n        super(msg);\n        this.reason = reason;\n    }\n\n\n\n    /**\n     * <p>Returns the {@link Throwable} that caused this exception to\n     * be thrown or <code>null</code> if there was no such {@link\n     * Throwable}.</p>\n     *\n     * @return The reason\n     */\n    public Throwable getReason()\n    {\n        return reason;", "functions": [{"function_name": "getReason", "code": "    public Throwable getReason()\n    {\n        return reason;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException()\n    {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException(final String msg)\n    {\n        super(msg);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException(final Throwable reason)\n    {\n        super();\n        this.reason = reason;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException(final String msg, final Throwable reason)\n    {\n        super(msg);\n        this.reason = reason;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.5-7264", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/Translet.java", "language": "java", "name": "org.apache.xalan.xsltc.Translet", "code": "public interface Translet {\n\n    public void transform(DOM document, SerializationHandler handler)\n\tthrows TransletException;\n    public void transform(DOM document, SerializationHandler[] handlers)\n\tthrows TransletException;\n    public void transform(DOM document, DTMAxisIterator iterator,\n\t\t\t  SerializationHandler handler)\n\tthrows TransletException;\n\n    public Object addParameter(String name, Object value);\n\n    public void buildKeys(DOM document, DTMAxisIterator iterator,\n\t\t\t  SerializationHandler handler, int root)\n\tthrows TransletException;\n    public void addAuxiliaryClass(Class auxClass);\n    public Class getAuxiliaryClass(String className);\n    public String[] getNamesArray();\n    public String[] getNamespaceArray();", "functions": [{"function_name": "transform", "code": "    public void transform(DOM document, SerializationHandler handler)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "transform", "code": "    public void transform(DOM document, SerializationHandler[] handlers)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "transform", "code": "    public void transform(DOM document, DTMAxisIterator iterator,\n\t\t\t  SerializationHandler handler)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addParameter", "code": "    public Object addParameter(String name, Object value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "buildKeys", "code": "    public void buildKeys(DOM document, DTMAxisIterator iterator,\n\t\t\t  SerializationHandler handler, int root)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addAuxiliaryClass", "code": "    public void addAuxiliaryClass(Class auxClass);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAuxiliaryClass", "code": "    public Class getAuxiliaryClass(String className);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamesArray", "code": "    public String[] getNamesArray();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getNamespaceArray", "code": "    public String[] getNamespaceArray();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.0-1447", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/processor/CompositeProcessor.java", "language": "java", "name": "org.apache.camel.processor.CompositeProcessor", "code": "public class CompositeProcessor extends ServiceSupport implements Processor {\n    private final Collection<Processor> processors;\n\n    public CompositeProcessor(Collection<Processor> processors) {\n        this.processors = processors;\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        for (Processor processor : processors) {\n            processor.process(exchange);\n        }\n    }\n\n    @Override\n    public String toString() {\n        StringBuilder builder = new StringBuilder(\"[ \");\n        boolean first = true;\n        for (Processor processor : processors) {\n            if (first) {\n                first = false;\n            }\n            else {\n                builder.append(\", \");\n            }\n            builder.append(processor.toString());\n        }\n        builder.append(\" ]\");\n        return builder.toString();\n    }\n\n    public Collection<Processor> getProcessors() {\n        return processors;\n    }\n\n    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processors);\n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processors);", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        for (Processor processor : processors) {\n            processor.process(exchange);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        StringBuilder builder = new StringBuilder(\"[ \");\n        boolean first = true;\n        for (Processor processor : processors) {\n            if (first) {\n                first = false;\n            }\n            else {\n                builder.append(\", \");\n            }\n            builder.append(processor.toString());\n        }\n        builder.append(\" ]\");\n        return builder.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [6, 7], [2, 8], [3, 9], [4, 10], [2, 11], [10, 12], [11, 13], [8, 14], [8, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 6], [8, 2], [9, 3], [10, 4], [11, 2], [12, 10], [13, 11], [14, 8], [15, 8], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getProcessors", "code": "    public Collection<Processor> getProcessors() {\n        return processors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processors);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processors);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "CompositeProcessor", "code": "    public CompositeProcessor(Collection<Processor> processors) {\n        this.processors = processors;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.3-4816", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/JJTParserState.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.JJTParserState", "code": "class JJTParserState {\n  private java.util.Stack nodes;\n  private java.util.Stack marks;\n\n  private int sp;\t\t// number of nodes on stack\n  private int mk;\t\t// current mark\n  private boolean node_created;\n\n  JJTParserState() {\n    nodes = new java.util.Stack();\n    marks = new java.util.Stack();\n    sp = 0;\n    mk = 0;\n  }\n\n  /* Determines whether the current node was actually closed and\n     pushed.  This should only be called in the final user action of a\n     node scope.  */\n  boolean nodeCreated() {\n    return node_created;\n  }\n\n  /* Call this to reinitialize the node stack.  It is called\n     automatically by the parser's ReInit() method. */\n  void reset() {\n    nodes.removeAllElements();\n    marks.removeAllElements();\n    sp = 0;\n    mk = 0;\n  }\n\n  /* Returns the root node of the AST.  It only makes sense to call\n     this after a successful parse. */\n  Node rootNode() {\n    return (Node)nodes.elementAt(0);\n  }\n\n  /* Pushes a node on to the stack. */\n  void pushNode(Node n) {\n    nodes.push(n);\n    ++sp;\n  }\n\n  /* Returns the node on the top of the stack, and remove it from the\n     stack.  */\n  Node popNode() {\n    if (--sp < mk) {\n      mk = ((Integer)marks.pop()).intValue();\n    }\n    return (Node)nodes.pop();\n  }\n\n  /* Returns the node currently on the top of the stack. */\n  Node peekNode() {\n    return (Node)nodes.peek();\n  }\n\n  /* Returns the number of children on the stack in the current node\n     scope. */\n  int nodeArity() {\n    return sp - mk;\n  }\n\n\n  void clearNodeScope(Node n) {\n    while (sp > mk) {\n      popNode();\n    }\n    mk = ((Integer)marks.pop()).intValue();\n  }\n\n\n  void openNodeScope(Node n) {\n    marks.push(new Integer(mk));\n    mk = sp;\n    n.jjtOpen();\n  }\n\n\n  /* A definite node is constructed from a specified number of\n     children.  That number of nodes are popped from the stack and\n     made the children of the definite node.  Then the definite node\n     is pushed on to the stack. */\n  void closeNodeScope(Node n, int num) {\n    mk = ((Integer)marks.pop()).intValue();\n    while (num-- > 0) {\n      Node c = popNode();\n      c.jjtSetParent(n);\n      n.jjtAddChild(c, num);\n    }\n    n.jjtClose();\n    pushNode(n);\n    node_created = true;\n  }\n\n\n  /* A conditional node is constructed if its condition is true.  All\n     the nodes that have been pushed since the node was opened are\n     made children of the the conditional node, which is then pushed\n     on to the stack.  If the condition is false the node is not\n     constructed and they are left on the stack. */\n  void closeNodeScope(Node n, boolean condition) {\n    if (condition) {\n      int a = nodeArity();\n      mk = ((Integer)marks.pop()).intValue();\n      while (a-- > 0) {\n\tNode c = popNode();\n\tc.jjtSetParent(n);\n\tn.jjtAddChild(c, a);\n      }\n      n.jjtClose();\n      pushNode(n);\n      node_created = true;\n    } else {\n      mk = ((Integer)marks.pop()).intValue();\n      node_created = false;", "functions": [{"function_name": "nodeCreated", "code": "  boolean nodeCreated() {\n    return node_created;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reset", "code": "  void reset() {\n    nodes.removeAllElements();\n    marks.removeAllElements();\n    sp = 0;\n    mk = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "rootNode", "code": "  Node rootNode() {\n    return (Node)nodes.elementAt(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "pushNode", "code": "  void pushNode(Node n) {\n    nodes.push(n);\n    ++sp;", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popNode", "code": "  Node popNode() {\n    if (--sp < mk) {\n      mk = ((Integer)marks.pop()).intValue();\n    }\n    return (Node)nodes.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "peekNode", "code": "  Node peekNode() {\n    return (Node)nodes.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "nodeArity", "code": "  int nodeArity() {\n    return sp - mk;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clearNodeScope", "code": "  void clearNodeScope(Node n) {\n    while (sp > mk) {\n      popNode();\n    }\n    mk = ((Integer)marks.pop()).intValue();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "openNodeScope", "code": "  void openNodeScope(Node n) {\n    marks.push(new Integer(mk));\n    mk = sp;\n    n.jjtOpen();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "closeNodeScope", "code": "  void closeNodeScope(Node n, int num) {\n    mk = ((Integer)marks.pop()).intValue();\n    while (num-- > 0) {\n      Node c = popNode();\n      c.jjtSetParent(n);\n      n.jjtAddChild(c, num);\n    }\n    n.jjtClose();\n    pushNode(n);\n    node_created = true;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [4, 9], [1, 10], [7, 11], [1, 12], [1, 13], [8, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 4], [10, 1], [11, 7], [12, 1], [13, 1], [14, 8], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "closeNodeScope", "code": "  void closeNodeScope(Node n, boolean condition) {\n    if (condition) {\n      int a = nodeArity();\n      mk = ((Integer)marks.pop()).intValue();\n      while (a-- > 0) {\n\tNode c = popNode();\n\tc.jjtSetParent(n);\n\tn.jjtAddChild(c, a);\n      }\n      n.jjtClose();\n      pushNode(n);\n      node_created = true;\n    } else {\n      mk = ((Integer)marks.pop()).intValue();\n      node_created = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [1, 12], [6, 13], [8, 14], [4, 15], [11, 16], [5, 17], [7, 18], [4, 19], [4, 20], [12, 21], [15, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 1], [13, 6], [14, 8], [15, 4], [16, 11], [17, 5], [18, 7], [19, 4], [20, 4], [21, 12], [22, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "JJTParserState", "code": "  JJTParserState() {\n    nodes = new java.util.Stack();\n    marks = new java.util.Stack();\n    sp = 0;\n    mk = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.7-7980", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/SyntaxTreeNode.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.SyntaxTreeNode", "code": "public abstract class SyntaxTreeNode implements Constants {\n\n    private Parser _parser;\n\n\n\n    static final SyntaxTreeNode Dummy = new AbsolutePathPattern(null);\n\n    protected static final int IndentIncrement = 4;\n    private static final char[] _spaces = \n\t\"                                                       \".toCharArray();\n\n    /**\n     * Creates a new SyntaxTreeNode with a 'null' QName and no source file\n     * line number reference.\n     */\n    public SyntaxTreeNode() {\n\t_line = 0;\n\t_qname = null;\n    }\n\n    /**\n     * Creates a new SyntaxTreeNode with a 'null' QName.\n     * @param line Source file line number reference\n     */\n    public SyntaxTreeNode(int line) {\n\t_line = line;\n\t_qname = null;\n    }\n\n    /**\n     * Creates a new SyntaxTreeNode with no source file line number reference.\n     * @param uri The element's namespace URI\n     * @param prefix The element's namespace prefix\n     * @param local The element's local name\n     */\n    public SyntaxTreeNode(String uri, String prefix, String local) {\n\t_line = 0;\n\tsetQName(uri, prefix, local);\n    }\n\n    /**\n     * Set the source file line number for this element\n     * @param line The source file line number.\n     */\n    protected final void setLineNumber(int line) {\n\t_line = line;\n    }\n\n    /**\n     * Get the source file line number for this element. If unavailable, lookup\n     * in ancestors.\n     *\n     * @return The source file line number.\n     */\n    public final int getLineNumber() {\n        if (_line > 0) return _line;\n        SyntaxTreeNode parent = getParent();\n        return (parent != null) ? parent.getLineNumber() : 0;\n    }\n\n    /**\n     * Set the QName for the syntax tree node.\n     * @param qname The QName for the syntax tree node\n     */\n    protected void setQName(QName qname) {\n\t_qname = qname;\n    }\n\n    /**\n     * Set the QName for the SyntaxTreeNode\n     * @param uri The element's namespace URI\n     * @param prefix The element's namespace prefix\n     * @param local The element's local name\n     */\n    protected void setQName(String uri, String prefix, String localname) {\n\t_qname = new QName(uri, prefix, localname);\n    }\n\n    /**\n     * Set the QName for the SyntaxTreeNode\n     * @param qname The QName for the syntax tree node\n     */\n    protected QName getQName() {\n\treturn(_qname);\n    }\n\n    /**\n     * Set the attributes for this SyntaxTreeNode.\n     * @param attributes Attributes for the element. Must be passed in as an\n     *                   implementation of org.xml.sax.Attributes.\n     */\n    protected void setAttributes(AttributeList attributes) {\n\t_attributes = attributes;\n    }\n\n    /**\n     * Returns a value for an attribute from the source element.\n     * @param qname The QName of the attribute to return.\n     * @return The value of the attribute of name 'qname'.\n     */\n    protected String getAttribute(String qname) {\n\tif (_attributes == null) {\n\t    return EMPTYSTRING;\n\t}\n\tfinal String value = _attributes.getValue(qname);\n\treturn (value == null || value.equals(EMPTYSTRING)) ? \n\t    EMPTYSTRING : value;\n    }\n    \n    protected String getAttribute(String prefix, String localName) {\n        return getAttribute(prefix + ':' + localName);\n    }\n\n    protected boolean hasAttribute(String qname) {\n\treturn (_attributes != null && _attributes.getValue(qname) != null);\n    }\n    \n    protected void addAttribute(String qname, String value) {\n        _attributes.add(qname, value);\n    }\n\n    /**\n     * Returns a list of all attributes declared for the element represented by\n     * this syntax tree node.\n     * @return Attributes for this syntax tree node\n     */\n    protected Attributes getAttributes() {\n\treturn(_attributes);\n    }\n\n    /**\n     * Sets the prefix mapping for the namespaces that were declared in this\n     * element. This does not include all prefix mappings in scope, so one\n     * may have to check ancestor elements to get all mappings that are in\n     * in scope. The prefixes must be passed in as a Hashtable that maps\n     * namespace prefixes (String objects) to namespace URIs (also String).\n     * @param mapping The Hashtable containing the mappings.\n     */\n    protected void setPrefixMapping(Hashtable mapping) {\n\t_prefixMapping = mapping;\n    }\n\n    /**\n     * Returns a Hashtable containing the prefix mappings that were declared\n     * for this element. This does not include all prefix mappings in scope,\n     * so one may have to check ancestor elements to get all mappings that are\n     * in in scope. \n     * @return Prefix mappings (for this element only).\n     */\n    protected Hashtable getPrefixMapping() {\n\treturn _prefixMapping;\n    }\n\n    /**\n     * Adds a single prefix mapping to this syntax tree node.\n     * @param prefix Namespace prefix.\n     * @param uri Namespace URI.\n     */\n    protected void addPrefixMapping(String prefix, String uri) {\n\tif (_prefixMapping == null)\n\t    _prefixMapping = new Hashtable();\n\t_prefixMapping.put(prefix, uri);\n    }\n\n    /**\n     * Returns any namespace URI that is in scope for a given prefix. This\n     * method checks namespace mappings for this element, and if necessary\n     * for ancestor elements as well (ie. if the prefix maps to an URI in this\n     * scope then you'll definately get the URI from this method).\n     * @param prefix Namespace prefix.\n     * @return Namespace URI.\n     */\n    protected String lookupNamespace(String prefix) {\n\tString uri = null;\n\n\tif (_prefixMapping != null)\n\t    uri = (String)_prefixMapping.get(prefix);\n\tif ((uri == null) && (_parent != null)) {\n\t    uri = _parent.lookupNamespace(prefix);\n\t    if ((prefix == Constants.EMPTYSTRING) && (uri == null))\n\t\turi = Constants.EMPTYSTRING;\n\t}\n\treturn(uri);\n    }\n\n    /**\n     * Returns any namespace prefix that is mapped to a prefix in the current\n     * scope. This method checks namespace mappings for this element, and if\n     * necessary for ancestor elements as well (ie. if the URI is declared\n     * within the current scope then you'll definately get the prefix from\n     * this method). Note that this is a very slow method and consequentially\n     * it should only be used strictly when needed.\n     * @param uri Namespace URI.\n     * @return Namespace prefix.\n     */\n    protected String lookupPrefix(String uri) {\n\tString prefix = null;\n\n\tif ((_prefixMapping != null) &&\n\t    (_prefixMapping.contains(uri))) {\n\t    Enumeration prefixes = _prefixMapping.keys();\n\t    while (prefixes.hasMoreElements()) {\n\t\tprefix = (String)prefixes.nextElement();\n\t\tString mapsTo = (String)_prefixMapping.get(prefix);\n\t\tif (mapsTo.equals(uri)) return(prefix);\n\t    }\n\t}\n\telse if (_parent != null) {\n\t    prefix = _parent.lookupPrefix(uri);\n\t    if ((uri == Constants.EMPTYSTRING) && (prefix == null))\n\t\tprefix = Constants.EMPTYSTRING;\n\t}\n\treturn(prefix);\n    }\n\n    /**\n     * Set this node's parser. The parser (the XSLT parser) gives this\n     * syntax tree node access to the symbol table and XPath parser.\n     * @param parser The XSLT parser.\n     */\n    protected void setParser(Parser parser) {\n\t_parser = parser;\n    }\n\n    /**\n     * Returns this node's XSLT parser.\n     * @return The XSLT parser.\n     */\n    public final Parser getParser() {\n\treturn _parser;\n    }\n\n    /**\n     * Set this syntax tree node's parent node\n     * @param parent The parent node.\n     */\n    protected void setParent(SyntaxTreeNode parent) {\n\tif (_parent == null)\n\t    _parent = parent;\n    }\n\n    /**\n     * Returns this syntax tree node's parent node.\n     * @return The parent syntax tree node.\n     */\n    protected final SyntaxTreeNode getParent() {\n\treturn _parent;\n    }\n\n    /**\n     * Returns 'true' if this syntax tree node is the Sentinal node.\n     * @return 'true' if this syntax tree node is the Sentinal node.\n     */\n    protected final boolean isDummy() {\n        return this == Dummy;\n    }\n\n    /**\n     * Get the import precedence of this element. The import precedence equals\n     * the import precedence of the stylesheet in which this element occured.\n     * @return The import precedence of this syntax tree node.\n     */\n    protected int getImportPrecedence() {\n\tStylesheet stylesheet = getStylesheet();\n\tif (stylesheet == null) return Integer.MIN_VALUE;\n\treturn stylesheet.getImportPrecedence();\n    }\n\n    /**\n     * Get the Stylesheet node that represents the <xsl:stylesheet/> element\n     * that this node occured under.\n     * @return The Stylesheet ancestor node of this node.\n     */\n    public Stylesheet getStylesheet() {\n\tif (_stylesheet == null) {\n\t    SyntaxTreeNode parent = this;\n\t    while (parent != null) {\n\t\tif (parent instanceof Stylesheet)\n\t\t    return((Stylesheet)parent);\n\t\tparent = parent.getParent();\n\t    }\n\t    _stylesheet = (Stylesheet)parent;\n\t}\n\treturn(_stylesheet);\n    }\n\n    /**\n     * Get the Template node that represents the <xsl:template/> element\n     * that this node occured under. Note that this method will return 'null'\n     * for nodes that represent top-level elements.\n     * @return The Template ancestor node of this node or 'null'.\n     */\n    protected Template getTemplate() {\n\tif (_template == null) {\n\t    SyntaxTreeNode parent = this;\n\t    while ((parent != null) && (!(parent instanceof Template)))\n\t\tparent = parent.getParent();\n\t    _template = (Template)parent;\n\t}\n\treturn(_template);\n    }\n\n    /**\n     * Returns a reference to the XSLTC (XSLT compiler) in use.\n     * @return XSLTC - XSLT compiler.\n     */\n    protected final XSLTC getXSLTC() {\n\treturn _parser.getXSLTC();\n    }\n\n    /**\n     * Returns the XSLT parser's symbol table.\n     * @return Symbol table.\n     */\n    protected final SymbolTable getSymbolTable() {\n\treturn (_parser == null) ? null : _parser.getSymbolTable();\n    }\n\n    /**\n     * Parse the contents of this syntax tree nodes (child nodes, XPath\n     * expressions, patterns and functions). The default behaviour is to parser\n     * the syntax tree node's children (since there are no common expressions,\n     * patterns, etc. that can be handled in this base class.\n     * @param parser reference to the XSLT parser\n     */\n    public void parseContents(Parser parser) {\n\tparseChildren(parser);\n    }\n\n    /**\n     * Parse all children of this syntax tree node. This method is normally\n     * called by the parseContents() method.\n     * @param parser reference to the XSLT parser\n     */\n    protected final void parseChildren(Parser parser) {\n\n\t\n\tfinal int count = _contents.size();\n\tfor (int i=0; i<count; i++) {\n\t    SyntaxTreeNode child = (SyntaxTreeNode)_contents.elementAt(i);\n\t    parser.getSymbolTable().setCurrentNode(child);\n\t    child.parseContents(parser);\n\t    final QName varOrParamName = updateScope(parser, child);\n\t    if (varOrParamName != null) {\n\t\tif (locals == null) {\n\t\t    locals = new Vector(2);\n\t\t}\n\t\tlocals.addElement(varOrParamName);\n\t    }\n\t}\n\n\tparser.getSymbolTable().setCurrentNode(this);\n\n\tif (locals != null) {\n\t    final int nLocals = locals.size();\n\t    for (int i = 0; i < nLocals; i++) {\n\t\tparser.removeVariable((QName)locals.elementAt(i));\n\t    }\n\t}\n    }\n   \n    /**\n     * Add a node to the current scope and return name of a variable or\n     * parameter if the node represents a variable or a parameter.\n     */\n    protected QName updateScope(Parser parser, SyntaxTreeNode node) {\n\tif (node instanceof Variable) {\n\t    final Variable var = (Variable)node;\n\t    parser.addVariable(var);\n\t    return var.getName();\n\t}\n\telse if (node instanceof Param) {\n\t    final Param param = (Param)node;\n\t    parser.addParameter(param);\n\t    return param.getName();\n\t}\n\telse {\n\t    return null;\n\t}\n    }\n\n    /**\n     * Type check the children of this node. The type check phase may add\n     * coercions (CastExpr) to the AST.\n     * @param stable The compiler/parser's symbol table\n     */\n    public abstract Type typeCheck(SymbolTable stable) throws TypeCheckError;\n\n    /**\n     * Call typeCheck() on all child syntax tree nodes.\n     * @param stable The compiler/parser's symbol table\n     */\n    protected Type typeCheckContents(SymbolTable stable) throws TypeCheckError {\n\tfinal int n = elementCount();\n\tfor (int i = 0; i < n; i++) {\n\t    SyntaxTreeNode item = (SyntaxTreeNode)_contents.elementAt(i);\n\t    item.typeCheck(stable);\n\t}\n\treturn Type.Void;\n    }\n\n    /**\n     * Translate this abstract syntax tree node into JVM bytecodes.\n     * @param classGen BCEL Java class generator\n     * @param methodGen BCEL Java method generator\n     */\n    public abstract void translate(ClassGenerator classGen,\n\t\t\t\t   MethodGenerator methodGen);\n\n    /**\n     * Call translate() on all child syntax tree nodes.\n     * @param classGen BCEL Java class generator\n     * @param methodGen BCEL Java method generator\n     */\n    protected void translateContents(ClassGenerator classGen,\n\t\t\t\t     MethodGenerator methodGen) {\n\tfinal int n = elementCount();\n\tfor (int i = 0; i < n; i++) {\n\t    final SyntaxTreeNode item = (SyntaxTreeNode)_contents.elementAt(i);\n\t    item.translate(classGen, methodGen);\n\t}\n\n\tfor (int i = 0; i < n; i++) {\n\t    if( _contents.elementAt(i) instanceof VariableBase) {\n\t\tfinal VariableBase var = (VariableBase)_contents.elementAt(i);\n\t\tvar.unmapRegister(methodGen);\n\t    }\n\t}\n    }\n    \n    /**\n     * Return true if the node represents a simple RTF.\n     *\n     * A node is a simple RTF if all children only produce Text value.\n     *\n     * @param node A node\n     * @return true if the node content can be considered as a simple RTF.\n     */\n    private boolean isSimpleRTF(SyntaxTreeNode node) {\n        \n        Vector contents = node.getContents();\n        for (int i = 0; i < contents.size(); i++) {\n            SyntaxTreeNode item = (SyntaxTreeNode)contents.elementAt(i);\n            if (!isTextElement(item, false))\n                return false;\n        }\n        \n        return true;\n    }\n \n     /**\n     * Return true if the node represents an adaptive RTF.\n     *\n     * A node is an adaptive RTF if each children is a Text element\n     * or it is <xsl:call-template> or <xsl:apply-templates>.\n     *\n     * @param node A node\n     * @return true if the node content can be considered as an adaptive RTF.\n     */\n    private boolean isAdaptiveRTF(SyntaxTreeNode node) {\n        \n        Vector contents = node.getContents();\n        for (int i = 0; i < contents.size(); i++) {\n            SyntaxTreeNode item = (SyntaxTreeNode)contents.elementAt(i);\n            if (!isTextElement(item, true))\n                return false;\n        }\n        \n        return true;\n    }\n   \n    /**\n     * Return true if the node only produces Text content.\n     *\n     * A node is a Text element if it is Text, xsl:value-of, xsl:number, \n     * or a combination of these nested in a control instruction (xsl:if or\n     * xsl:choose).\n     *\n     * If the doExtendedCheck flag is true, xsl:call-template and xsl:apply-templates\n     * are also considered as Text elements.\n     *\n     * @param node A node\n     * @param doExtendedCheck If this flag is true, <xsl:call-template> and \n     * <xsl:apply-templates> are also considered as Text elements.\n     *\n     * @return true if the node of Text type\n     */\n    private boolean isTextElement(SyntaxTreeNode node, boolean doExtendedCheck) {\n        if (node instanceof ValueOf || node instanceof Number\n            || node instanceof Text)\n        {\n            return true;\n        }\n        else if (node instanceof If) {\n            return doExtendedCheck ? isAdaptiveRTF(node) : isSimpleRTF(node);\n        }\n        else if (node instanceof Choose) {\n            Vector contents = node.getContents();\n            for (int i = 0; i < contents.size(); i++) {\n                SyntaxTreeNode item = (SyntaxTreeNode)contents.elementAt(i);\n                if (item instanceof Text || \n                     ((item instanceof When || item instanceof Otherwise)\n                     && ((doExtendedCheck && isAdaptiveRTF(item))\n                         || (!doExtendedCheck && isSimpleRTF(item)))))\n                    continue;\n                else\n                    return false;\n            }\n            return true;\n        }\n        else if (doExtendedCheck && \n                  (node instanceof CallTemplate\n                   || node instanceof ApplyTemplates))\n            return true;\n        else\n            return false;\n    }\n\n    /**\n     * Utility method used by parameters and variables to store result trees\n     * @param classGen BCEL Java class generator\n     * @param methodGen BCEL Java method generator\n     */\n    protected void compileResultTree(ClassGenerator classGen,\n\t\t\t\t     MethodGenerator methodGen) \n    {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Stylesheet stylesheet = classGen.getStylesheet();\n\n\tboolean isSimple = isSimpleRTF(this);\n\tboolean isAdaptive = false;\n\tif (!isSimple) {\n\t    isAdaptive = isAdaptiveRTF(this);\n\t}\n\t\n\tint rtfType = isSimple ? DOM.SIMPLE_RTF\n\t                       : (isAdaptive ? DOM.ADAPTIVE_RTF : DOM.TREE_RTF);\n\t\n\til.append(methodGen.loadHandler());\n\n\tfinal String DOM_CLASS = classGen.getDOMClass();\n\n\t\n\til.append(methodGen.loadDOM());\n\tint index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t \"getResultTreeFrag\",\n\t\t\t\t \"(IIZ)\" + DOM_INTF_SIG);\n\til.append(new PUSH(cpg, RTF_INITIAL_SIZE));\n\til.append(new PUSH(cpg, rtfType));\n\til.append(new PUSH(cpg, stylesheet.callsNodeset()));\n\til.append(new INVOKEINTERFACE(index,4));\n\t\n\til.append(DUP);\n\n\tindex = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t \"getOutputDomBuilder\",\n\t\t\t\t \"()\" + TRANSLET_OUTPUT_SIG);\n\n\til.append(new INVOKEINTERFACE(index,1));\n\til.append(DUP);\n\til.append(methodGen.storeHandler());\n\n\til.append(methodGen.startDocument());\n\n\ttranslateContents(classGen, methodGen);\n\n\til.append(methodGen.loadHandler());\n\til.append(methodGen.endDocument());\n\n\tif (stylesheet.callsNodeset()\n\t    && !DOM_CLASS.equals(DOM_IMPL_CLASS)) {\n\t    index = cpg.addMethodref(DOM_ADAPTER_CLASS,\n\t\t\t\t     \"<init>\",\n\t\t\t\t     \"(\"+DOM_INTF_SIG+\n\t\t\t\t     \"[\"+STRING_SIG+\n\t\t\t\t     \"[\"+STRING_SIG+\n\t\t\t\t     \"[I\"+\n\t\t\t\t     \"[\"+STRING_SIG+\")V\");\n\t    il.append(new NEW(cpg.addClass(DOM_ADAPTER_CLASS)));\n\t    il.append(new DUP_X1());\n\t    il.append(SWAP);\n\n\t    /*\n\t     * Give the DOM adapter an empty type mapping if the nodeset\n\t     * extension function is never called.\n\t     */\n\t    if (!stylesheet.callsNodeset()) {\n\t\til.append(new ICONST(0));\n\t\til.append(new ANEWARRAY(cpg.addClass(STRING)));\n\t\til.append(DUP);\n\t\til.append(DUP);\n\t\til.append(new ICONST(0));\n\t\til.append(new NEWARRAY(BasicType.INT));\n\t\til.append(SWAP);\n\t\til.append(new INVOKESPECIAL(index));\n\t    }\n\t    else {\n\t\til.append(ALOAD_0);\n\t\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t   NAMES_INDEX,\n\t\t\t\t\t   NAMES_INDEX_SIG))); \n\t\til.append(ALOAD_0);\n\t\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t   URIS_INDEX,\n\t\t\t\t\t   URIS_INDEX_SIG))); \n\t\til.append(ALOAD_0);\n\t\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t   TYPES_INDEX,\n\t\t\t\t\t   TYPES_INDEX_SIG))); \n\t\til.append(ALOAD_0);\n\t\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t   NAMESPACE_INDEX,\n\t\t\t\t\t   NAMESPACE_INDEX_SIG)));\n\n\t\til.append(new INVOKESPECIAL(index));\n\n\t\til.append(DUP);\n\t\til.append(methodGen.loadDOM());\n\t\til.append(new CHECKCAST(cpg.addClass(classGen.getDOMClass())));\n\t\til.append(SWAP);\n\t\tindex = cpg.addMethodref(MULTI_DOM_CLASS,\n\t\t\t\t\t \"addDOMAdapter\",\n\t\t\t\t\t \"(\" + DOM_ADAPTER_SIG + \")I\");\n\t\til.append(new INVOKEVIRTUAL(index));\n\t    }\n\t}\n\n\til.append(SWAP);\n\til.append(methodGen.storeHandler());\n    }\n\n    /**\n     * Returns true if this expression/instruction depends on the context. By \n     * default, every expression/instruction depends on the context unless it \n     * overrides this method. Currently used to determine if result trees are \n     * compiled using procedures or little DOMs (result tree fragments).\n     * @return 'true' if this node depends on the context.\n     */\n    protected boolean contextDependent() {\n\treturn true;\n    }\n\n    /**\n     * Return true if any of the expressions/instructions in the contents of\n     * this node is context dependent.\n     * @return 'true' if the contents of this node is context dependent.\n     */\n    protected boolean dependentContents() {\n\tfinal int n = elementCount();\n\tfor (int i = 0; i < n; i++) {\n\t    final SyntaxTreeNode item = (SyntaxTreeNode)_contents.elementAt(i);\n\t    if (item.contextDependent()) {\n\t\treturn true;\n\t    }\n\t}\n\treturn false;\n    }\n\n    /**\n     * Adds a child node to this syntax tree node.\n     * @param element is the new child node.\n     */\n    protected final void addElement(SyntaxTreeNode element) {\n\t_contents.addElement(element);\n\telement.setParent(this);\n    }\n\n    /**\n     * Inserts the first child node of this syntax tree node. The existing\n     * children are shifted back one position.\n     * @param element is the new child node.\n     */\n    protected final void setFirstElement(SyntaxTreeNode element) {\n\t_contents.insertElementAt(element,0);\n\telement.setParent(this);\n    }\n\n    /**\n     * Removed a child node of this syntax tree node.\n     * @param element is the child node to remove.\n     */\n    protected final void removeElement(SyntaxTreeNode element) {\n\t_contents.remove(element);\n\telement.setParent(null);\n    }\n\n    /**\n     * Returns a Vector containing all the child nodes of this node.\n     * @return A Vector containing all the child nodes of this node.\n     */\n    protected final Vector getContents() {\n\treturn _contents;\n    }\n\n    /**\n     * Tells you if this node has any child nodes.\n     * @return 'true' if this node has any children.\n     */\n    protected final boolean hasContents() {\n\treturn elementCount() > 0;\n    }\n\n    /**\n     * Returns the number of children this node has.\n     * @return Number of child nodes.\n     */\n    protected final int elementCount() {\n\treturn _contents.size();\n    }\n\n    /**\n     * Returns an Enumeration of all child nodes of this node.\n     * @return An Enumeration of all child nodes of this node.\n     */\n    protected final Enumeration elements() {\n\treturn _contents.elements();\n    }\n\n    /**\n     * Returns a child node at a given position.\n     * @param pos The child node's position.\n     * @return The child node.\n     */\n    protected final Object elementAt(int pos) {\n\treturn _contents.elementAt(pos);\n    }\n\n    /**\n     * Returns this element's last child\n     * @return The child node.\n     */\n    protected final SyntaxTreeNode lastChild() {\n\tif (_contents.size() == 0) return null;\n\treturn (SyntaxTreeNode)_contents.lastElement();\n    }\n\n    /**\n     * Displays the contents of this syntax tree node (to stdout).\n     * This method is intended for debugging _only_, and should be overridden\n     * by all syntax tree node implementations.\n     * @param indent Indentation level for syntax tree levels.\n     */\n    public void display(int indent) {\n\tdisplayContents(indent);\n    }\n\n    /**\n     * Displays the contents of this syntax tree node (to stdout).\n     * This method is intended for debugging _only_ !!!\n     * @param indent Indentation level for syntax tree levels.\n     */\n    protected void displayContents(int indent) {\n\tfinal int n = elementCount();\n\tfor (int i = 0; i < n; i++) {\n\t    SyntaxTreeNode item = (SyntaxTreeNode)_contents.elementAt(i);\n\t    item.display(indent);\n\t}\n    }\n\n    /**\n     * Set the indentation level for debug output.\n     * @param indent Indentation level for syntax tree levels.\n     */\n    protected final void indent(int indent) {\n\tSystem.out.print(new String(_spaces, 0, indent));\n    }\n\n    /**\n     * Report an error to the parser.\n     * @param element The element in which the error occured (normally 'this'\n     * but it could also be an expression/pattern/etc.)\n     * @param parser The XSLT parser to report the error to.\n     * @param error The error code (from util/ErrorMsg).\n     * @param message Any additional error message.\n     */\n    protected void reportError(SyntaxTreeNode element, Parser parser,\n\t\t\t       String errorCode, String message) {\n\tfinal ErrorMsg error = new ErrorMsg(errorCode, message, element);\n        parser.reportError(Constants.ERROR, error);\n    }\n\n    /**\n     * Report a recoverable error to the parser.\n     * @param element The element in which the error occured (normally 'this'\n     * but it could also be an expression/pattern/etc.)\n     * @param parser The XSLT parser to report the error to.\n     * @param error The error code (from util/ErrorMsg).\n     * @param message Any additional error message.\n     */\n    protected  void reportWarning(SyntaxTreeNode element, Parser parser,\n\t\t\t\t  String errorCode, String message) {\n\tfinal ErrorMsg error = new ErrorMsg(errorCode, message, element);\n        parser.reportError(Constants.WARNING, error);", "functions": [{"function_name": "setLineNumber", "code": "    protected final void setLineNumber(int line) {\n\t_line = line;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLineNumber", "code": "    public final int getLineNumber() {\n        if (_line > 0) return _line;\n        SyntaxTreeNode parent = getParent();\n        return (parent != null) ? parent.getLineNumber() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "COND_EXPR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [3, 6], [4, 7], [4, 8], [4, 9], [2, 10], [6, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 3], [7, 4], [8, 4], [9, 4], [10, 2], [11, 6], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setQName", "code": "    protected void setQName(QName qname) {\n\t_qname = qname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setQName", "code": "    protected void setQName(String uri, String prefix, String localname) {\n\t_qname = new QName(uri, prefix, localname);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getQName", "code": "    protected QName getQName() {\n\treturn(_qname);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAttributes", "code": "    protected void setAttributes(AttributeList attributes) {\n\t_attributes = attributes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAttribute", "code": "    protected String getAttribute(String qname) {\n\tif (_attributes == null) {\n\t    return EMPTYSTRING;\n\t}\n\tfinal String value = _attributes.getValue(qname);\n\treturn (value == null || value.equals(EMPTYSTRING)) ? \n\t    EMPTYSTRING : value;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [3, 9], [6, 10], [7, 11], [7, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 3], [10, 6], [11, 7], [12, 7], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getAttribute", "code": "    protected String getAttribute(String prefix, String localName) {\n        return getAttribute(prefix + ':' + localName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "hasAttribute", "code": "    protected boolean hasAttribute(String qname) {\n\treturn (_attributes != null && _attributes.getValue(qname) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addAttribute", "code": "    protected void addAttribute(String qname, String value) {\n        _attributes.add(qname, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAttributes", "code": "    protected Attributes getAttributes() {\n\treturn(_attributes);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPrefixMapping", "code": "    protected void setPrefixMapping(Hashtable mapping) {\n\t_prefixMapping = mapping;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPrefixMapping", "code": "    protected Hashtable getPrefixMapping() {\n\treturn _prefixMapping;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addPrefixMapping", "code": "    protected void addPrefixMapping(String prefix, String uri) {\n\tif (_prefixMapping == null)\n\t    _prefixMapping = new Hashtable();\n\t_prefixMapping.put(prefix, uri);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "lookupNamespace", "code": "    protected String lookupNamespace(String prefix) {\n\tString uri = null;\n\n\tif (_prefixMapping != null)\n\t    uri = (String)_prefixMapping.get(prefix);\n\tif ((uri == null) && (_parent != null)) {\n\t    uri = _parent.lookupNamespace(prefix);\n\t    if ((prefix == Constants.EMPTYSTRING) && (uri == null))\n\t\turi = Constants.EMPTYSTRING;\n\t}\n\treturn(uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [2, 8], [6, 9], [6, 10], [3, 11], [7, 12], [4, 13], [8, 14], [2, 15], [9, 16], [10, 17], [8, 18], [14, 19], [14, 20], [15, 21], [11, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 2], [9, 6], [10, 6], [11, 3], [12, 7], [13, 4], [14, 8], [15, 2], [16, 9], [17, 10], [18, 8], [19, 14], [20, 14], [21, 15], [22, 11], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "lookupPrefix", "code": "    protected String lookupPrefix(String uri) {\n\tString prefix = null;\n\n\tif ((_prefixMapping != null) &&\n\t    (_prefixMapping.contains(uri))) {\n\t    Enumeration prefixes = _prefixMapping.keys();\n\t    while (prefixes.hasMoreElements()) {\n\t\tprefix = (String)prefixes.nextElement();\n\t\tString mapsTo = (String)_prefixMapping.get(prefix);\n\t\tif (mapsTo.equals(uri)) return(prefix);\n\t    }\n\t}\n\telse if (_parent != null) {\n\t    prefix = _parent.lookupPrefix(uri);\n\t    if ((uri == Constants.EMPTYSTRING) && (prefix == null))\n\t\tprefix = Constants.EMPTYSTRING;\n\t}\n\treturn(prefix);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [2, 8], [2, 9], [6, 10], [6, 11], [3, 12], [5, 13], [7, 14], [8, 15], [11, 16], [13, 17], [5, 18], [8, 19], [8, 20], [9, 21], [13, 22], [17, 23], [17, 24], [18, 25], [19, 26], [19, 27], [8, 28], [23, 29], [20, 30], [28, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 2], [9, 2], [10, 6], [11, 6], [12, 3], [13, 5], [14, 7], [15, 8], [16, 11], [17, 13], [18, 5], [19, 8], [20, 8], [21, 9], [22, 13], [23, 17], [24, 17], [25, 18], [26, 19], [27, 19], [28, 8], [29, 23], [30, 20], [31, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "setParser", "code": "    protected void setParser(Parser parser) {\n\t_parser = parser;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParser", "code": "    public final Parser getParser() {\n\treturn _parser;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParent", "code": "    protected void setParent(SyntaxTreeNode parent) {\n\tif (_parent == null)\n\t    _parent = parent;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getParent", "code": "    protected final SyntaxTreeNode getParent() {\n\treturn _parent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isDummy", "code": "    protected final boolean isDummy() {\n        return this == Dummy;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getImportPrecedence", "code": "    protected int getImportPrecedence() {\n\tStylesheet stylesheet = getStylesheet();\n\tif (stylesheet == null) return Integer.MIN_VALUE;\n\treturn stylesheet.getImportPrecedence();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getStylesheet", "code": "    public Stylesheet getStylesheet() {\n\tif (_stylesheet == null) {\n\t    SyntaxTreeNode parent = this;\n\t    while (parent != null) {\n\t\tif (parent instanceof Stylesheet)\n\t\t    return((Stylesheet)parent);\n\t\tparent = parent.getParent();\n\t    }\n\t    _stylesheet = (Stylesheet)parent;\n\t}\n\treturn(_stylesheet);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [2, 7], [4, 8], [4, 9], [8, 10], [4, 11], [9, 12], [9, 13], [11, 14], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 2], [8, 4], [9, 4], [10, 8], [11, 4], [12, 9], [13, 9], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getTemplate", "code": "    protected Template getTemplate() {\n\tif (_template == null) {\n\t    SyntaxTreeNode parent = this;\n\t    while ((parent != null) && (!(parent instanceof Template)))\n\t\tparent = parent.getParent();\n\t    _template = (Template)parent;\n\t}\n\treturn(_template);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [2, 7], [4, 8], [4, 9], [8, 10], [8, 11], [9, 12], [11, 13], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 2], [8, 4], [9, 4], [10, 8], [11, 8], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getXSLTC", "code": "    protected final XSLTC getXSLTC() {\n\treturn _parser.getXSLTC();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSymbolTable", "code": "    protected final SymbolTable getSymbolTable() {\n\treturn (_parser == null) ? null : _parser.getSymbolTable();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseChildren", "code": "    protected final void parseChildren(Parser parser) {\n\n\t\n\tfinal int count = _contents.size();\n\tfor (int i=0; i<count; i++) {\n\t    SyntaxTreeNode child = (SyntaxTreeNode)_contents.elementAt(i);\n\t    parser.getSymbolTable().setCurrentNode(child);\n\t    child.parseContents(parser);\n\t    final QName varOrParamName = updateScope(parser, child);\n\t    if (varOrParamName != null) {\n\t\tif (locals == null) {\n\t\t    locals = new Vector(2);\n\t\t}\n\t\tlocals.addElement(varOrParamName);\n\t    }\n\t}\n\n\tparser.getSymbolTable().setCurrentNode(this);\n\n\tif (locals != null) {\n\t    final int nLocals = locals.size();\n\t    for (int i = 0; i < nLocals; i++) {\n\t\tparser.removeVariable((QName)locals.elementAt(i));", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [1, 9], [5, 10], [6, 11], [2, 12], [2, 13], [2, 14], [3, 15], [8, 16], [12, 17], [2, 18], [2, 19], [2, 20], [9, 21], [12, 22], [17, 23], [13, 24], [19, 25], [8, 26], [8, 27], [12, 28], [22, 29], [14, 30], [29, 31], [26, 32], [22, 33], [33, 34], [34, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 1], [10, 5], [11, 6], [12, 2], [13, 2], [14, 2], [15, 3], [16, 8], [17, 12], [18, 2], [19, 2], [20, 2], [21, 9], [22, 12], [23, 17], [24, 13], [25, 19], [26, 8], [27, 8], [28, 12], [29, 22], [30, 14], [31, 29], [32, 26], [33, 22], [34, 33], [35, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "updateScope", "code": "    protected QName updateScope(Parser parser, SyntaxTreeNode node) {\n\tif (node instanceof Variable) {\n\t    final Variable var = (Variable)node;\n\t    parser.addVariable(var);\n\t    return var.getName();\n\t}\n\telse if (node instanceof Param) {\n\t    final Param param = (Param)node;\n\t    parser.addParameter(param);\n\t    return param.getName();\n\t}\n\telse {\n\t    return null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "RETURN", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [4, 9], [4, 10], [4, 11], [7, 12], [1, 13], [9, 14], [10, 15], [4, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 4], [10, 4], [11, 4], [12, 7], [13, 1], [14, 9], [15, 10], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "typeCheck", "code": "    public abstract Type typeCheck(SymbolTable stable) throws TypeCheckError;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "typeCheckContents", "code": "    protected Type typeCheckContents(SymbolTable stable) throws TypeCheckError {\n\tfinal int n = elementCount();\n\tfor (int i = 0; i < n; i++) {\n\t    SyntaxTreeNode item = (SyntaxTreeNode)_contents.elementAt(i);\n\t    item.typeCheck(stable);\n\t}\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [2, 8], [2, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 2], [9, 2], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "translate", "code": "    public abstract void translate(ClassGenerator classGen,\n\t\t\t\t   MethodGenerator methodGen);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "translateContents", "code": "    protected void translateContents(ClassGenerator classGen,\n\t\t\t\t     MethodGenerator methodGen) {\n\tfinal int n = elementCount();\n\tfor (int i = 0; i < n; i++) {\n\t    final SyntaxTreeNode item = (SyntaxTreeNode)_contents.elementAt(i);\n\t    item.translate(classGen, methodGen);\n\t}\n\n\tfor (int i = 0; i < n; i++) {\n\t    if( _contents.elementAt(i) instanceof VariableBase) {\n\t\tfinal VariableBase var = (VariableBase)_contents.elementAt(i);\n\t\tvar.unmapRegister(methodGen);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [2, 9], [3, 10], [8, 11], [1, 12], [2, 13], [2, 14], [8, 15], [11, 16], [8, 17], [9, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 2], [10, 3], [11, 8], [12, 1], [13, 2], [14, 2], [15, 8], [16, 11], [17, 8], [18, 9], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "isSimpleRTF", "code": "    private boolean isSimpleRTF(SyntaxTreeNode node) {\n        \n        Vector contents = node.getContents();\n        for (int i = 0; i < contents.size(); i++) {\n            SyntaxTreeNode item = (SyntaxTreeNode)contents.elementAt(i);\n            if (!isTextElement(item, false))\n                return false;\n        }\n        \n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [2, 13], [11, 14], [12, 15], [8, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 2], [14, 11], [15, 12], [16, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isAdaptiveRTF", "code": "    private boolean isAdaptiveRTF(SyntaxTreeNode node) {\n        \n        Vector contents = node.getContents();\n        for (int i = 0; i < contents.size(); i++) {\n            SyntaxTreeNode item = (SyntaxTreeNode)contents.elementAt(i);\n            if (!isTextElement(item, true))\n                return false;\n        }\n        \n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [2, 13], [11, 14], [12, 15], [8, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 2], [14, 11], [15, 12], [16, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isTextElement", "code": "    private boolean isTextElement(SyntaxTreeNode node, boolean doExtendedCheck) {\n        if (node instanceof ValueOf || node instanceof Number\n            || node instanceof Text)\n        {\n            return true;\n        }\n        else if (node instanceof If) {\n            return doExtendedCheck ? isAdaptiveRTF(node) : isSimpleRTF(node);\n        }\n        else if (node instanceof Choose) {\n            Vector contents = node.getContents();\n            for (int i = 0; i < contents.size(); i++) {\n                SyntaxTreeNode item = (SyntaxTreeNode)contents.elementAt(i);\n                if (item instanceof Text || \n                     ((item instanceof When || item instanceof Otherwise)\n                     && ((doExtendedCheck && isAdaptiveRTF(item))\n                         || (!doExtendedCheck && isSimpleRTF(item)))))\n                    continue;\n                else\n                    return false;\n            }\n            return true;\n        }\n        else if (doExtendedCheck && \n                  (node instanceof CallTemplate\n                   || node instanceof ApplyTemplates))\n            return true;\n        else\n            return false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [5, 9], [5, 10], [6, 11], [6, 12], [4, 13], [8, 14], [10, 15], [10, 16], [11, 17], [11, 18], [11, 19], [6, 20], [6, 21], [6, 22], [13, 23], [17, 24], [18, 25], [19, 26], [20, 27], [21, 28], [23, 29], [23, 30], [26, 31], [26, 32], [21, 33], [21, 34], [28, 35], [22, 36], [33, 37], [33, 38], [33, 39], [21, 40], [37, 41], [39, 42], [39, 43], [42, 44], [42, 45], [34, 46], [44, 47], [44, 48], [45, 49], [45, 50], [47, 51], [48, 52], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 5], [10, 5], [11, 6], [12, 6], [13, 4], [14, 8], [15, 10], [16, 10], [17, 11], [18, 11], [19, 11], [20, 6], [21, 6], [22, 6], [23, 13], [24, 17], [25, 18], [26, 19], [27, 20], [28, 21], [29, 23], [30, 23], [31, 26], [32, 26], [33, 21], [34, 21], [35, 28], [36, 22], [37, 33], [38, 33], [39, 33], [40, 21], [41, 37], [42, 39], [43, 39], [44, 42], [45, 42], [46, 34], [47, 44], [48, 44], [49, 45], [50, 45], [51, 47], [52, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "compileResultTree", "code": "    protected void compileResultTree(ClassGenerator classGen,\n\t\t\t\t     MethodGenerator methodGen) \n    {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Stylesheet stylesheet = classGen.getStylesheet();\n\n\tboolean isSimple = isSimpleRTF(this);\n\tboolean isAdaptive = false;\n\tif (!isSimple) {\n\t    isAdaptive = isAdaptiveRTF(this);\n\t}\n\t\n\tint rtfType = isSimple ? DOM.SIMPLE_RTF\n\t                       : (isAdaptive ? DOM.ADAPTIVE_RTF : DOM.TREE_RTF);\n\t\n\til.append(methodGen.loadHandler());\n\n\tfinal String DOM_CLASS = classGen.getDOMClass();\n\n\t\n\til.append(methodGen.loadDOM());\n\tint index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t \"getResultTreeFrag\",\n\t\t\t\t \"(IIZ)\" + DOM_INTF_SIG);\n\til.append(new PUSH(cpg, RTF_INITIAL_SIZE));\n\til.append(new PUSH(cpg, rtfType));\n\til.append(new PUSH(cpg, stylesheet.callsNodeset()));\n\til.append(new INVOKEINTERFACE(index,4));\n\t\n\til.append(DUP);\n\n\tindex = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t \"getOutputDomBuilder\",\n\t\t\t\t \"()\" + TRANSLET_OUTPUT_SIG);\n\n\til.append(new INVOKEINTERFACE(index,1));\n\til.append(DUP);\n\til.append(methodGen.storeHandler());\n\n\til.append(methodGen.startDocument());\n\n\ttranslateContents(classGen, methodGen);\n\n\til.append(methodGen.loadHandler());\n\til.append(methodGen.endDocument());\n\n\tif (stylesheet.callsNodeset()\n\t    && !DOM_CLASS.equals(DOM_IMPL_CLASS)) {\n\t    index = cpg.addMethodref(DOM_ADAPTER_CLASS,\n\t\t\t\t     \"<init>\",\n\t\t\t\t     \"(\"+DOM_INTF_SIG+\n\t\t\t\t     \"[\"+STRING_SIG+\n\t\t\t\t     \"[\"+STRING_SIG+\n\t\t\t\t     \"[I\"+\n\t\t\t\t     \"[\"+STRING_SIG+\")V\");\n\t    il.append(new NEW(cpg.addClass(DOM_ADAPTER_CLASS)));\n\t    il.append(new DUP_X1());\n\t    il.append(SWAP);\n\n\t    /*\n\t     * Give the DOM adapter an empty type mapping if the nodeset\n\t     * extension function is never called.\n\t     */\n\t    if (!stylesheet.callsNodeset()) {\n\t\til.append(new ICONST(0));\n\t\til.append(new ANEWARRAY(cpg.addClass(STRING)));\n\t\til.append(DUP);\n\t\til.append(DUP);\n\t\til.append(new ICONST(0));\n\t\til.append(new NEWARRAY(BasicType.INT));\n\t\til.append(SWAP);\n\t\til.append(new INVOKESPECIAL(index));\n\t    }\n\t    else {\n\t\til.append(ALOAD_0);\n\t\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t   NAMES_INDEX,\n\t\t\t\t\t   NAMES_INDEX_SIG))); \n\t\til.append(ALOAD_0);\n\t\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t   URIS_INDEX,\n\t\t\t\t\t   URIS_INDEX_SIG))); \n\t\til.append(ALOAD_0);\n\t\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t   TYPES_INDEX,\n\t\t\t\t\t   TYPES_INDEX_SIG))); \n\t\til.append(ALOAD_0);\n\t\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t   NAMESPACE_INDEX,\n\t\t\t\t\t   NAMESPACE_INDEX_SIG)));\n\n\t\til.append(new INVOKESPECIAL(index));\n\n\t\til.append(DUP);\n\t\til.append(methodGen.loadDOM());\n\t\til.append(new CHECKCAST(cpg.addClass(classGen.getDOMClass())));\n\t\til.append(SWAP);\n\t\tindex = cpg.addMethodref(MULTI_DOM_CLASS,\n\t\t\t\t\t \"addDOMAdapter\",\n\t\t\t\t\t \"(\" + DOM_ADAPTER_SIG + \")I\");\n\t\til.append(new INVOKEVIRTUAL(index));\n\t    }\n\t}\n\n\til.append(SWAP);\n\til.append(methodGen.storeHandler());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [13, 31], [1, 32], [15, 33], [15, 34], [16, 35], [17, 36], [19, 37], [20, 38], [22, 39], [23, 40], [25, 41], [26, 42], [27, 43], [28, 44], [2, 45], [29, 46], [3, 47], [30, 48], [4, 49], [6, 50], [7, 51], [8, 52], [9, 53], [10, 54], [32, 55], [1, 56], [1, 57], [1, 58], [1, 59], [39, 60], [40, 61], [40, 62], [41, 63], [42, 64], [45, 65], [45, 66], [49, 67], [5, 68], [57, 69], [58, 70], [59, 71], [61, 72], [65, 73], [68, 74], [32, 75], [32, 76], [32, 77], [32, 78], [32, 79], [32, 80], [32, 81], [32, 82], [32, 83], [32, 84], [32, 85], [32, 86], [32, 87], [32, 88], [32, 89], [32, 90], [32, 91], [32, 92], [32, 93], [32, 94], [32, 95], [32, 96], [32, 97], [70, 98], [71, 99], [71, 100], [75, 101], [76, 102], [78, 103], [79, 104], [81, 105], [82, 106], [84, 107], [86, 108], [88, 109], [90, 110], [92, 111], [93, 112], [96, 113], [97, 114], [99, 115], [99, 116], [102, 117], [102, 118], [103, 119], [106, 120], [107, 121], [108, 122], [109, 123], [112, 124], [113, 125], [114, 126], [116, 127], [117, 128], [117, 129], [119, 130], [127, 131], [127, 132], [129, 133], [132, 134], [132, 135], [135, 136], [136, 137], [136, 138], [138, 139], [139, 140], [139, 141], [141, 142], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 13], [32, 1], [33, 15], [34, 15], [35, 16], [36, 17], [37, 19], [38, 20], [39, 22], [40, 23], [41, 25], [42, 26], [43, 27], [44, 28], [45, 2], [46, 29], [47, 3], [48, 30], [49, 4], [50, 6], [51, 7], [52, 8], [53, 9], [54, 10], [55, 32], [56, 1], [57, 1], [58, 1], [59, 1], [60, 39], [61, 40], [62, 40], [63, 41], [64, 42], [65, 45], [66, 45], [67, 49], [68, 5], [69, 57], [70, 58], [71, 59], [72, 61], [73, 65], [74, 68], [75, 32], [76, 32], [77, 32], [78, 32], [79, 32], [80, 32], [81, 32], [82, 32], [83, 32], [84, 32], [85, 32], [86, 32], [87, 32], [88, 32], [89, 32], [90, 32], [91, 32], [92, 32], [93, 32], [94, 32], [95, 32], [96, 32], [97, 32], [98, 70], [99, 71], [100, 71], [101, 75], [102, 76], [103, 78], [104, 79], [105, 81], [106, 82], [107, 84], [108, 86], [109, 88], [110, 90], [111, 92], [112, 93], [113, 96], [114, 97], [115, 99], [116, 99], [117, 102], [118, 102], [119, 103], [120, 106], [121, 107], [122, 108], [123, 109], [124, 112], [125, 113], [126, 114], [127, 116], [128, 117], [129, 117], [130, 119], [131, 127], [132, 127], [133, 129], [134, 132], [135, 132], [136, 135], [137, 136], [138, 136], [139, 138], [140, 139], [141, 139], [142, 141], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142]]}, {"function_name": "contextDependent", "code": "    protected boolean contextDependent() {\n\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "dependentContents", "code": "    protected boolean dependentContents() {\n\tfinal int n = elementCount();\n\tfor (int i = 0; i < n; i++) {\n\t    final SyntaxTreeNode item = (SyntaxTreeNode)_contents.elementAt(i);\n\t    if (item.contextDependent()) {\n\t\treturn true;\n\t    }\n\t}\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [3, 8], [6, 9], [2, 10], [6, 11], [11, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 3], [9, 6], [10, 2], [11, 6], [12, 11], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "addElement", "code": "    protected final void addElement(SyntaxTreeNode element) {\n\t_contents.addElement(element);\n\telement.setParent(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFirstElement", "code": "    protected final void setFirstElement(SyntaxTreeNode element) {\n\t_contents.insertElementAt(element,0);\n\telement.setParent(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeElement", "code": "    protected final void removeElement(SyntaxTreeNode element) {\n\t_contents.remove(element);\n\telement.setParent(null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getContents", "code": "    protected final Vector getContents() {\n\treturn _contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hasContents", "code": "    protected final boolean hasContents() {\n\treturn elementCount() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "elementCount", "code": "    protected final int elementCount() {\n\treturn _contents.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "elements", "code": "    protected final Enumeration elements() {\n\treturn _contents.elements();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "elementAt", "code": "    protected final Object elementAt(int pos) {\n\treturn _contents.elementAt(pos);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "lastChild", "code": "    protected final SyntaxTreeNode lastChild() {\n\tif (_contents.size() == 0) return null;\n\treturn (SyntaxTreeNode)_contents.lastElement();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 5], [3, 6], [4, 7], [4, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 1], [6, 3], [7, 4], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "display", "code": "    public void display(int indent) {\n\tdisplayContents(indent);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "displayContents", "code": "    protected void displayContents(int indent) {\n\tfinal int n = elementCount();\n\tfor (int i = 0; i < n; i++) {\n\t    SyntaxTreeNode item = (SyntaxTreeNode)_contents.elementAt(i);\n\t    item.display(indent);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [1, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 1], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "indent", "code": "    protected final void indent(int indent) {\n\tSystem.out.print(new String(_spaces, 0, indent));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "reportError", "code": "    protected void reportError(SyntaxTreeNode element, Parser parser,\n\t\t\t       String errorCode, String message) {\n\tfinal ErrorMsg error = new ErrorMsg(errorCode, message, element);\n        parser.reportError(Constants.ERROR, error);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "reportWarning", "code": "    protected  void reportWarning(SyntaxTreeNode element, Parser parser,\n\t\t\t\t  String errorCode, String message) {\n\tfinal ErrorMsg error = new ErrorMsg(errorCode, message, element);\n        parser.reportError(Constants.WARNING, error);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "SyntaxTreeNode", "code": "    public SyntaxTreeNode() {\n\t_line = 0;\n\t_qname = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "SyntaxTreeNode", "code": "    public SyntaxTreeNode(int line) {\n\t_line = line;\n\t_qname = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "SyntaxTreeNode", "code": "    public SyntaxTreeNode(String uri, String prefix, String local) {\n\t_line = 0;\n\tsetQName(uri, prefix, local);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "poi-3.0-6039", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/CellValueRecordInterface.java", "language": "java", "name": "org.apache.poi.hssf.record.CellValueRecordInterface", "code": "public interface CellValueRecordInterface\n{\n\n    /**\n     * get the row this cell occurs on\n     *\n     * @return the row\n     */\n\n    public int getRow();\n\n    /**\n     * get the column this cell defines within the row\n     *\n     * @return the column\n     */\n\n    public short getColumn();\n\n    /**\n     * set the row this cell occurs on\n     * @param row the row this cell occurs within\n     */\n\n    public void setRow(int row);\n\n    /**\n     * set the column this cell defines within the row\n     *\n     * @param col the column this cell defines\n     */\n\n    public void setColumn(short col);\n\n    public void setXFIndex(short xf);\n\n    public short getXFIndex();\n\n    /**\n     * returns whether this cell is before the passed in cell\n     *\n     * @param i  another cell interface record to compare\n     * @return true if the cells is before, or false if not\n     */\n\n    public boolean isBefore(CellValueRecordInterface i);\n\n    /**\n     * returns whether this cell is after the passed in cell\n     *\n     * @param i  record to compare\n     * @return true if the cell is after, false if not\n     */\n\n    public boolean isAfter(CellValueRecordInterface i);\n\n    /**\n     * returns whether this cell represents the same cell (NOT VALUE)\n     *\n     * @param i  record to compare\n     * @return true if the cells are the same cell (positionally), false if not.\n     */\n\n    public boolean isEqual(CellValueRecordInterface i);\n\n    public Object clone();", "functions": [{"function_name": "getRow", "code": "    public int getRow();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getColumn", "code": "    public short getColumn();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setRow", "code": "    public void setRow(int row);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setColumn", "code": "    public void setColumn(short col);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXFIndex", "code": "    public void setXFIndex(short xf);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXFIndex", "code": "    public short getXFIndex();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isBefore", "code": "    public boolean isBefore(CellValueRecordInterface i);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isAfter", "code": "    public boolean isAfter(CellValueRecordInterface i);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isEqual", "code": "    public boolean isEqual(CellValueRecordInterface i);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.6-7754", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/trax/Util.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.Util", "code": "public final class Util {\n\n    public static String baseName(String name) {\n\treturn org.apache.xalan.xsltc.compiler.util.Util.baseName(name);\n    }\n    \n    public static String noExtName(String name) {\n\treturn org.apache.xalan.xsltc.compiler.util.Util.noExtName(name);\n    }\n\n    public static String toJavaName(String name) {\n\treturn org.apache.xalan.xsltc.compiler.util.Util.toJavaName(name);\n    }\n\n     \n\n    \n    /**\n     * Creates a SAX2 InputSource object from a TrAX Source object\n     */\n    public static InputSource getInputSource(XSLTC xsltc, Source source)\n\tthrows TransformerConfigurationException \n    {\n\tInputSource input = null;\n\n\tString systemId = source.getSystemId();         \n\n\ttry {\n\t    if (source instanceof SAXSource) {\n\t\tfinal SAXSource sax = (SAXSource)source;\n\t\tinput = sax.getInputSource();\n                try {\n                    XMLReader reader = sax.getXMLReader();\n\n                     /*\n                      * Fix for bug 24695\n                      * According to JAXP 1.2 specification if a SAXSource\n                      * is created using a SAX InputSource the Transformer or\n                      * TransformerFactory creates a reader via the\n                      * XMLReaderFactory if setXMLReader is not used\n                      */\n\n                    if (reader == null) {\n                       try {\n                           reader= XMLReaderFactory.createXMLReader();\n                       } catch (Exception e ) {\n                           try {\n\n                               SAXParserFactory parserFactory = \n                                      SAXParserFactory.newInstance();\n                               parserFactory.setNamespaceAware(true);\n                               reader = parserFactory.newSAXParser()\n                                     .getXMLReader();\n\n                               \n                           } catch (ParserConfigurationException pce ) {\n                               throw new TransformerConfigurationException\n                                 (\"ParserConfigurationException\" ,pce);\n                           }\n                       }\n                    }\n                    reader.setFeature;\n                    reader.setFeature;\n\n                    xsltc.setXMLReader(reader);\n                }catch (SAXNotRecognizedException snre ) {\n                  throw new TransformerConfigurationException\n                       (\"SAXNotRecognizedException \",snre);\n                }catch (SAXNotSupportedException snse ) {\n                  throw new TransformerConfigurationException\n                       (\"SAXNotSupportedException \",snse);\n                }catch (SAXException se ) {\n                  throw new TransformerConfigurationException\n                       (\"SAXException \",se);\n                }\n\n\t    }\n\t    else if (source instanceof DOMSource) {\n\t\tfinal DOMSource domsrc = (DOMSource)source;\n\t\tfinal Document dom = (Document)domsrc.getNode();\n\t\tfinal DOM2SAX dom2sax = new DOM2SAX(dom);\n\t\txsltc.setXMLReader(dom2sax);  \n\n\t\tinput = SAXSource.sourceToInputSource(source);\n\t\tif (input == null){\n\t\t    input = new InputSource(domsrc.getSystemId());\n\t\t}\n\t    }\n\t    else if (source instanceof StreamSource) {\n\t\tfinal StreamSource stream = (StreamSource)source;\n\t\tfinal InputStream istream = stream.getInputStream();\n\t\tfinal Reader reader = stream.getReader();\n\n\t\tif (istream != null) {\n\t\t    input = new InputSource(istream);\n\t\t}\n\t\telse if (reader != null) {\n\t\t    input = new InputSource(reader);\n\t\t}\n\t\telse {\n\t\t    input = new InputSource(systemId);\n\t\t}\n\t    }\n\t    else {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_UNKNOWN_SOURCE_ERR);\n\t\tthrow new TransformerConfigurationException(err.toString());\n\t    }\n\t    input.setSystemId(systemId);\n\t}\n\tcatch (NullPointerException e) {\n \t    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_SOURCE_ERR,\n\t\t\t\t\t\"TransformerFactory.newTemplates()\");\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n\tcatch (SecurityException e) {\n \t    ErrorMsg err = new ErrorMsg(ErrorMsg.FILE_ACCESS_ERR, systemId);\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n\treturn input;", "functions": [{"function_name": "baseName", "code": "    public static String baseName(String name) {\n\treturn org.apache.xalan.xsltc.compiler.util.Util.baseName(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "noExtName", "code": "    public static String noExtName(String name) {\n\treturn org.apache.xalan.xsltc.compiler.util.Util.noExtName(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toJavaName", "code": "    public static String toJavaName(String name) {\n\treturn org.apache.xalan.xsltc.compiler.util.Util.toJavaName(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getInputSource", "code": "    public static InputSource getInputSource(XSLTC xsltc, Source source)\n\tthrows TransformerConfigurationException \n    {\n\tInputSource input = null;\n\n\tString systemId = source.getSystemId();         \n\n\ttry {\n\t    if (source instanceof SAXSource) {\n\t\tfinal SAXSource sax = (SAXSource)source;\n\t\tinput = sax.getInputSource();\n                try {\n                    XMLReader reader = sax.getXMLReader();\n\n                     /*\n                      * Fix for bug 24695\n                      * According to JAXP 1.2 specification if a SAXSource\n                      * is created using a SAX InputSource the Transformer or\n                      * TransformerFactory creates a reader via the\n                      * XMLReaderFactory if setXMLReader is not used\n                      */\n\n                    if (reader == null) {\n                       try {\n                           reader= XMLReaderFactory.createXMLReader();\n                       } catch (Exception e ) {\n                           try {\n\n                               SAXParserFactory parserFactory = \n                                      SAXParserFactory.newInstance();\n                               parserFactory.setNamespaceAware(true);\n                               reader = parserFactory.newSAXParser()\n                                     .getXMLReader();\n\n                               \n                           } catch (ParserConfigurationException pce ) {\n                               throw new TransformerConfigurationException\n                                 (\"ParserConfigurationException\" ,pce);\n                           }\n                       }\n                    }\n                    reader.setFeature;\n                    reader.setFeature;\n\n                    xsltc.setXMLReader(reader);\n                }catch (SAXNotRecognizedException snre ) {\n                  throw new TransformerConfigurationException\n                       (\"SAXNotRecognizedException \",snre);\n                }catch (SAXNotSupportedException snse ) {\n                  throw new TransformerConfigurationException\n                       (\"SAXNotSupportedException \",snse);\n                }catch (SAXException se ) {\n                  throw new TransformerConfigurationException\n                       (\"SAXException \",se);\n                }\n\n\t    }\n\t    else if (source instanceof DOMSource) {\n\t\tfinal DOMSource domsrc = (DOMSource)source;\n\t\tfinal Document dom = (Document)domsrc.getNode();\n\t\tfinal DOM2SAX dom2sax = new DOM2SAX(dom);\n\t\txsltc.setXMLReader(dom2sax);  \n\n\t\tinput = SAXSource.sourceToInputSource(source);\n\t\tif (input == null){\n\t\t    input = new InputSource(domsrc.getSystemId());\n\t\t}\n\t    }\n\t    else if (source instanceof StreamSource) {\n\t\tfinal StreamSource stream = (StreamSource)source;\n\t\tfinal InputStream istream = stream.getInputStream();\n\t\tfinal Reader reader = stream.getReader();\n\n\t\tif (istream != null) {\n\t\t    input = new InputSource(istream);\n\t\t}\n\t\telse if (reader != null) {\n\t\t    input = new InputSource(reader);\n\t\t}\n\t\telse {\n\t\t    input = new InputSource(systemId);\n\t\t}\n\t    }\n\t    else {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_UNKNOWN_SOURCE_ERR);\n\t\tthrow new TransformerConfigurationException(err.toString());\n\t    }\n\t    input.setSystemId(systemId);\n\t}\n\tcatch (NullPointerException e) {\n \t    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_SOURCE_ERR,\n\t\t\t\t\t\"TransformerFactory.newTemplates()\");\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n\tcatch (SecurityException e) {\n \t    ErrorMsg err = new ErrorMsg(ErrorMsg.FILE_ACCESS_ERR, systemId);\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n\treturn input;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "TRY", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CATCH", "CATCH", "CATCH", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "ASSIGN", "CALL", "TRY", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [7, 11], [8, 12], [8, 13], [2, 14], [9, 15], [9, 16], [3, 17], [4, 18], [10, 19], [12, 20], [15, 21], [15, 22], [9, 23], [9, 24], [19, 25], [11, 26], [20, 27], [13, 28], [21, 29], [15, 30], [15, 31], [15, 32], [15, 33], [23, 34], [23, 35], [23, 36], [23, 37], [23, 38], [9, 39], [28, 40], [21, 41], [21, 42], [21, 43], [21, 44], [21, 45], [21, 46], [30, 47], [15, 48], [15, 49], [34, 50], [35, 51], [36, 52], [23, 53], [37, 54], [39, 55], [41, 56], [43, 57], [43, 58], [47, 59], [48, 60], [31, 61], [50, 62], [51, 63], [52, 64], [37, 65], [54, 66], [38, 67], [56, 68], [42, 69], [57, 70], [58, 71], [44, 72], [45, 73], [30, 74], [32, 75], [62, 76], [63, 77], [64, 78], [65, 79], [70, 80], [43, 81], [74, 82], [79, 83], [65, 84], [57, 85], [57, 86], [81, 87], [82, 88], [83, 89], [83, 90], [84, 91], [85, 92], [86, 93], [89, 94], [83, 95], [83, 96], [94, 97], [95, 98], [96, 99], [90, 100], [97, 101], [98, 102], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 7], [12, 8], [13, 8], [14, 2], [15, 9], [16, 9], [17, 3], [18, 4], [19, 10], [20, 12], [21, 15], [22, 15], [23, 9], [24, 9], [25, 19], [26, 11], [27, 20], [28, 13], [29, 21], [30, 15], [31, 15], [32, 15], [33, 15], [34, 23], [35, 23], [36, 23], [37, 23], [38, 23], [39, 9], [40, 28], [41, 21], [42, 21], [43, 21], [44, 21], [45, 21], [46, 21], [47, 30], [48, 15], [49, 15], [50, 34], [51, 35], [52, 36], [53, 23], [54, 37], [55, 39], [56, 41], [57, 43], [58, 43], [59, 47], [60, 48], [61, 31], [62, 50], [63, 51], [64, 52], [65, 37], [66, 54], [67, 38], [68, 56], [69, 42], [70, 57], [71, 58], [72, 44], [73, 45], [74, 30], [75, 32], [76, 62], [77, 63], [78, 64], [79, 65], [80, 70], [81, 43], [82, 74], [83, 79], [84, 65], [85, 57], [86, 57], [87, 81], [88, 82], [89, 83], [90, 83], [91, 84], [92, 85], [93, 86], [94, 89], [95, 83], [96, 83], [97, 94], [98, 95], [99, 96], [100, 90], [101, 97], [102, 98], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102]]}], "label": 1}
{"sample_id": "jedit-4.0-3888", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/EditAction.java", "language": "java", "name": "org.gjt.sp.jedit.EditAction", "code": "public abstract class EditAction\n{\n\t//{{{ EditAction constructor\n\t/**\n\t * Creates a new edit action with the specified name.\n\t * @param name The action name\n\t */\n\tpublic EditAction(String name)\n\t{\n\t\tthis.name = name;\n\t} //}}}\n\n\t//{{{ getName() method\n\t/**\n\t * Returns the internal name of this action.\n\t */\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ getLabel() method\n\t/**\n\t * Returns the action's label. The default implementation returns the\n\t * value of the property named by the action's internal name suffixed\n\t * with <code>.label</code>.\n\t */\n\tpublic String getLabel()\n\t{\n\t\treturn jEdit.getProperty(name + \".label\");\n\t} //}}}\n\n\t//{{{ getMouseOverText() method\n\t/**\n\t * Returns the text that should be shown when the mouse is placed over\n\t * this action's menu item or tool bar button. Currently only used by\n\t * the macro system.\n\t * @since jEdit 4.0pre5\n\t */\n\tpublic String getMouseOverText()\n\t{\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ invoke() method\n\t/**\n\t * Invokes the action.\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic abstract void invoke(View view);\n\t//}}}\n\n\t//{{{ getView() method\n\t/**\n\t * @deprecated Call <code>GUIUtilities.getView()</code> instead.\n\t */\n\tpublic static View getView(Component comp)\n\t{\n\t\t// moved to GUIUtilities as it makes no sense being here.\n\t\treturn GUIUtilities.getView(comp);\n\t} //}}}\n\n\t//{{{ isToggle() method\n\t/**\n\t * Returns if this edit action should be displayed as a check box\n\t * in menus.\n\t * @since jEdit 2.2pre4\n\t */\n\tpublic boolean isToggle()\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ isSelected() method\n\t/**\n\t * If this edit action is a toggle, returns if it is selected or not.\n\t * @param view The view\n\t * @since jEdit 3.2pre5\n\t */\n\tpublic boolean isSelected(View view)\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ noRepeat() method\n\t/**\n\t * Returns if this edit action should not be repeated. Returns false\n\t * by default.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic boolean noRepeat()\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ noRecord() method\n\t/**\n\t * Returns if this edit action should not be recorded. Returns false\n\t * by default.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic boolean noRecord()\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ getCode() method\n\t/**\n\t * Returns the BeanShell code that will replay this action.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic abstract String getCode();\n\t//}}}\n\n\t//{{{ toString() method\n\tpublic String toString()\n\t{\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate String name;\n\t//}}}\n\n\t//{{{ Wrapper class\n\t/**\n\t * 'Wrap' EditActions in this class to turn them into AWT\n\t * ActionListeners, that can be attached to buttons, menu items, etc.\n\t */\n\tpublic static class Wrapper implements ActionListener\n\t{\n\t\tpublic Wrapper(EditAction action)\n\t\t{\n\t\t\tthis.action = action;\n\t\t}\n\n\t\t/**\n\t\t * Called when the user selects this action from a menu.\n\t\t * It passes the action through the\n\t\t * <code>InputHandler.executeAction()</code> method,\n\t\t * which performs any recording or repeating. It also\n\t\t * loads the action if necessary.\n\t\t *\n\t\t * @param evt The action event\n\t\t */\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\t// Let input handler do recording, repeating, etc\n\t\t\tGUIUtilities.getView((Component)evt.getSource())\n\t\t\t\t.getInputHandler().invokeAction(action);\n\t\t}\n\n\t\tprivate EditAction action;", "functions": [{"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLabel", "code": "\tpublic String getLabel()\n\t{\n\t\treturn jEdit.getProperty(name + \".label\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getMouseOverText", "code": "\tpublic String getMouseOverText()\n\t{\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "invoke", "code": "\tpublic abstract void invoke(View view);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getView", "code": "\tpublic static View getView(Component comp)\n\t{\n\t\t// moved to GUIUtilities as it makes no sense being here.\n\t\treturn GUIUtilities.getView(comp);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isToggle", "code": "\tpublic boolean isToggle()\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSelected", "code": "\tpublic boolean isSelected(View view)\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "noRepeat", "code": "\tpublic boolean noRepeat()\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "noRecord", "code": "\tpublic boolean noRecord()\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCode", "code": "\tpublic abstract String getCode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "EditAction", "code": "\tpublic EditAction(String name)\n\t{\n\t\tthis.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.6-505", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/compilers/Gcj.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.compilers.Gcj", "code": "public class Gcj extends DefaultCompilerAdapter {\n\n    /**\n     * Performs a compile using the gcj compiler.\n     */\n    public boolean execute() throws BuildException {\n        Commandline cmd;\n        attributes.log(\"Using gcj compiler\", Project.MSG_VERBOSE);\n        cmd = setupGCJCommand();\n\n        int firstFileName = cmd.size();\n        logAndAddFilesToCompile(cmd);\n\n        return\n            executeExternalCompile(cmd.getCommandline(), firstFileName) == 0;\n    }\n\n    protected Commandline setupGCJCommand() {\n        Commandline cmd = new Commandline();\n        Path classpath = new Path(project);\n\n        if (bootclasspath != null) {\n            classpath.append(bootclasspath);\n        }\n\n        classpath.addExtdirs(extdirs);\n\n        classpath.append(getCompileClasspath());\n\n        if (compileSourcepath != null) {\n            classpath.append(compileSourcepath);\n        } else {\n            classpath.append(src);\n        }\n\n        String exec = getJavac().getExecutable();\n        cmd.setExecutable(exec == null ? \"gcj\" : exec);\n\n        if (destDir != null) {\n            cmd.createArgument().setValue(\"-d\");\n            cmd.createArgument().setFile(destDir);\n\n            if (!destDir.exists() && !destDir.mkdirs()) {\n                throw new BuildException(\"Can't make output directories. \"\n                                         + \"Maybe permission is wrong. \");\n            }\n        }\n\n        cmd.createArgument().setValue(\"-classpath\");\n        cmd.createArgument().setPath(classpath);\n\n        if (encoding != null) {\n            cmd.createArgument().setValue(\"--encoding=\" + encoding);\n        }\n        if (debug) {\n            cmd.createArgument().setValue(\"-g1\");\n        }\n        if (optimize) {\n            cmd.createArgument().setValue(\"-O\");\n        }\n\n        /**\n         *  gcj should be set for generate class.\n         * ... if no 'compile to native' argument is passed\n         */\n        if (!isNativeBuild()) {\n            cmd.createArgument().setValue(\"-C\");\n        }\n\n        addCurrentCompilerArgs(cmd);\n\n        return cmd;\n    }\n\n    /**\n     * Whether any of the arguments given via &lt;compilerarg&gt;\n     * implies that compilation to native code is requested.\n     *\n     * @since Ant 1.6.2\n     */\n    public boolean isNativeBuild() {\n        boolean nativeBuild = false;\n        String[] additionalArguments = getJavac().getCurrentCompilerArgs();\n        int argsLength = 0;\n        while (!nativeBuild && argsLength < additionalArguments.length) {\n            int conflictLength = 0;\n            while (!nativeBuild\n                   && conflictLength < CONFLICT_WITH_DASH_C.length) {\n                nativeBuild = (additionalArguments[argsLength].startsWith\n                               (CONFLICT_WITH_DASH_C[conflictLength]));\n                conflictLength++;\n            }\n            argsLength++;\n        }\n        return nativeBuild;\n    }\n\n    private static final String [] CONFLICT_WITH_DASH_C = {\n        \"-o\" , \"--main=\", \"-D\", \"-fjni\", \"-L\"", "functions": [{"function_name": "execute", "code": "    public boolean execute() throws BuildException {\n        Commandline cmd;\n        attributes.log(\"Using gcj compiler\", Project.MSG_VERBOSE);\n        cmd = setupGCJCommand();\n\n        int firstFileName = cmd.size();\n        logAndAddFilesToCompile(cmd);\n\n        return\n            executeExternalCompile(cmd.getCommandline(), firstFileName) == 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [4, 8], [4, 9], [2, 10], [6, 11], [7, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 4], [9, 4], [10, 2], [11, 6], [12, 7], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setupGCJCommand", "code": "    protected Commandline setupGCJCommand() {\n        Commandline cmd = new Commandline();\n        Path classpath = new Path(project);\n\n        if (bootclasspath != null) {\n            classpath.append(bootclasspath);\n        }\n\n        classpath.addExtdirs(extdirs);\n\n        classpath.append(getCompileClasspath());\n\n        if (compileSourcepath != null) {\n            classpath.append(compileSourcepath);\n        } else {\n            classpath.append(src);\n        }\n\n        String exec = getJavac().getExecutable();\n        cmd.setExecutable(exec == null ? \"gcj\" : exec);\n\n        if (destDir != null) {\n            cmd.createArgument().setValue(\"-d\");\n            cmd.createArgument().setFile(destDir);\n\n            if (!destDir.exists() && !destDir.mkdirs()) {\n                throw new BuildException(\"Can't make output directories. \"\n                                         + \"Maybe permission is wrong. \");\n            }\n        }\n\n        cmd.createArgument().setValue(\"-classpath\");\n        cmd.createArgument().setPath(classpath);\n\n        if (encoding != null) {\n            cmd.createArgument().setValue(\"--encoding=\" + encoding);\n        }\n        if (debug) {\n            cmd.createArgument().setValue(\"-g1\");\n        }\n        if (optimize) {\n            cmd.createArgument().setValue(\"-O\");\n        }\n\n        /**\n         *  gcj should be set for generate class.\n         * ... if no 'compile to native' argument is passed\n         */\n        if (!isNativeBuild()) {\n            cmd.createArgument().setValue(\"-C\");\n        }\n\n        addCurrentCompilerArgs(cmd);\n\n        return cmd;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [5, 14], [0, 15], [0, 16], [6, 17], [0, 18], [8, 19], [0, 20], [0, 21], [9, 22], [14, 23], [15, 24], [16, 25], [6, 26], [17, 27], [18, 28], [7, 29], [19, 30], [20, 31], [22, 32], [10, 33], [11, 34], [2, 35], [3, 36], [4, 37], [5, 38], [25, 39], [26, 40], [6, 41], [6, 42], [28, 43], [28, 44], [29, 45], [8, 46], [8, 47], [9, 48], [35, 49], [36, 50], [37, 51], [38, 52], [26, 53], [40, 54], [40, 55], [41, 56], [42, 57], [44, 58], [49, 59], [50, 60], [51, 61], [52, 62], [53, 63], [57, 64], [62, 65], [63, 66], [66, 67], [66, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 5], [15, 0], [16, 0], [17, 6], [18, 0], [19, 8], [20, 0], [21, 0], [22, 9], [23, 14], [24, 15], [25, 16], [26, 6], [27, 17], [28, 18], [29, 7], [30, 19], [31, 20], [32, 22], [33, 10], [34, 11], [35, 2], [36, 3], [37, 4], [38, 5], [39, 25], [40, 26], [41, 6], [42, 6], [43, 28], [44, 28], [45, 29], [46, 8], [47, 8], [48, 9], [49, 35], [50, 36], [51, 37], [52, 38], [53, 26], [54, 40], [55, 40], [56, 41], [57, 42], [58, 44], [59, 49], [60, 50], [61, 51], [62, 52], [63, 53], [64, 57], [65, 62], [66, 63], [67, 66], [68, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "isNativeBuild", "code": "    public boolean isNativeBuild() {\n        boolean nativeBuild = false;\n        String[] additionalArguments = getJavac().getCurrentCompilerArgs();\n        int argsLength = 0;\n        while (!nativeBuild && argsLength < additionalArguments.length) {\n            int conflictLength = 0;\n            while (!nativeBuild\n                   && conflictLength < CONFLICT_WITH_DASH_C.length) {\n                nativeBuild = (additionalArguments[argsLength].startsWith\n                               (CONFLICT_WITH_DASH_C[conflictLength]));\n                conflictLength++;\n            }\n            argsLength++;\n        }\n        return nativeBuild;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [4, 11], [5, 12], [7, 13], [11, 14], [13, 15], [8, 16], [7, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 4], [12, 5], [13, 7], [14, 11], [15, 13], [16, 8], [17, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 1}
{"sample_id": "lucene-2.4-5132", "repo": "lucene-2.4", "project": "lucene", "version": "2.4", "file_path": "org/apache/lucene/search/function/OrdFieldSource.java", "language": "java", "name": "org.apache.lucene.search.function.OrdFieldSource", "code": "public class OrdFieldSource extends ValueSource {\n  protected String field;\n\n  /** \n   * Contructor for a certain field.\n   * @param field field whose values order is used.  \n   */\n  public OrdFieldSource(String field) {\n    this.field = field;\n  }\n\n  /*(non-Javadoc) @see org.apache.lucene.search.function.ValueSource#description() */\n  public String description() {\n    return \"ord(\" + field + ')';\n  }\n\n  /*(non-Javadoc) @see org.apache.lucene.search.function.ValueSource#getValues(org.apache.lucene.index.IndexReader) */\n  public DocValues getValues(IndexReader reader) throws IOException {\n    final int[] arr = FieldCache.DEFAULT.getStringIndex(reader, field).order;\n    return new DocValues() {\n      /*(non-Javadoc) @see org.apache.lucene.search.function.DocValues#floatVal(int) */\n      public float floatVal(int doc) {\n        return (float)arr[doc];\n      }\n      /*(non-Javadoc) @see org.apache.lucene.search.function.DocValues#strVal(int) */\n      public String strVal(int doc) {\n        return Integer.toString(arr[doc]);\n      }\n      /*(non-Javadoc) @see org.apache.lucene.search.function.DocValues#toString(int) */\n      public String toString(int doc) {\n        return description() + '=' + intVal(doc);\n      }\n      /*(non-Javadoc) @see org.apache.lucene.search.function.DocValues#getInnerArray() */\n      Object getInnerArray() {\n        return arr;\n      }\n    };\n  }\n\n  /*(non-Javadoc) @see java.lang.Object#equals(java.lang.Object) */\n  public boolean equals(Object o) {\n    if (o.getClass() !=  OrdFieldSource.class) return false;\n    OrdFieldSource other = (OrdFieldSource)o;\n    return this.field.equals(other.field);\n  }\n\n  private static final int hcode = OrdFieldSource.class.hashCode();\n  \n  /*(non-Javadoc) @see java.lang.Object#hashCode() */\n  public int hashCode() {\n    return hcode + field.hashCode();", "functions": [{"function_name": "description", "code": "  public String description() {\n    return \"ord(\" + field + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getValues", "code": "  public DocValues getValues(IndexReader reader) throws IOException {\n    final int[] arr = FieldCache.DEFAULT.getStringIndex(reader, field).order;\n    return new DocValues() {\n      /*(non-Javadoc) @see org.apache.lucene.search.function.DocValues#floatVal(int) */\n      public float floatVal(int doc) {\n        return (float)arr[doc];\n      }\n      /*(non-Javadoc) @see org.apache.lucene.search.function.DocValues#strVal(int) */\n      public String strVal(int doc) {\n        return Integer.toString(arr[doc]);\n      }\n      /*(non-Javadoc) @see org.apache.lucene.search.function.DocValues#toString(int) */\n      public String toString(int doc) {\n        return description() + '=' + intVal(doc);\n      }\n      /*(non-Javadoc) @see org.apache.lucene.search.function.DocValues#getInnerArray() */\n      Object getInnerArray() {\n        return arr;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "CALL", "RETURN", "RETURN", "PARAM", "RETURN", "PARAM", "RETURN", "PARAM", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [4, 8], [2, 9], [5, 10], [6, 11], [6, 12], [7, 13], [7, 14], [8, 15], [8, 16], [11, 17], [13, 18], [17, 19], [17, 20], [20, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 4], [9, 2], [10, 5], [11, 6], [12, 6], [13, 7], [14, 7], [15, 8], [16, 8], [17, 11], [18, 13], [19, 17], [20, 17], [21, 20], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "equals", "code": "  public boolean equals(Object o) {\n    if (o.getClass() !=  OrdFieldSource.class) return false;\n    OrdFieldSource other = (OrdFieldSource)o;\n    return this.field.equals(other.field);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [1, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 1], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "hashCode", "code": "  public int hashCode() {\n    return hcode + field.hashCode();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "OrdFieldSource", "code": "  public OrdFieldSource(String field) {\n    this.field = field;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "log4j-1.1-4896", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/test/ROFile.java", "language": "java", "name": "org.apache.log4j.test.ROFile", "code": "public class ROFile {\n\n  static Category cat = Category.getInstance(ROFile.class.getName());\n  \n  public \n  static \n  void main(String argv[]) {\n\n    if(argv.length == 1) \n      init(argv[0]);\n    else \n      Usage(\"Wrong number of arguments.\");\n\n    test();\n  }\n\n  static\n  void Usage(String msg) {\n    System.err.println(msg);\n    System.err.println( \"Usage: java \" + ROFile.class.getName() +\n\t\t\t\"configFile\");\n    System.exit(1);\n  }\n\n  static\n  void init(String configFile) {\n    PropertyConfigurator.configure(configFile);\n  }\n\n  static\n  void test() {\n    int i = -1;\n    cat.debug(\"Message \" + ++i);", "functions": [{"function_name": "main", "code": "  void main(String argv[]) {\n\n    if(argv.length == 1) \n      init(argv[0]);\n    else \n      Usage(\"Wrong number of arguments.\");\n\n    test();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "Usage", "code": "  void Usage(String msg) {\n    System.err.println(msg);\n    System.err.println( \"Usage: java \" + ROFile.class.getName() +\n\t\t\t\"configFile\");\n    System.exit(1);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "init", "code": "  void init(String configFile) {\n    PropertyConfigurator.configure(configFile);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "test", "code": "  void test() {\n    int i = -1;\n    cat.debug(\"Message \" + ++i);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "ant-1.7-824", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/selectors/modifiedselector/DigestAlgorithm.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.modifiedselector.DigestAlgorithm", "code": "public class DigestAlgorithm implements Algorithm {\n\n    private static final int BYTE_MASK = 0xFF;\n    private static final int BUFFER_SIZE = 8192;\n\n\n\n    /**\n     * MessageDigest algorithm to be used.\n     */\n    private String algorithm = \"MD5\";\n\n    /**\n     * MessageDigest Algorithm provider\n     */\n    private String provider = null;\n\n    /**\n     * Message Digest instance\n     */\n    private MessageDigest messageDigest = null;\n\n    /**\n     * Size of the read buffer to use.\n     */\n    private int readBufferSize = BUFFER_SIZE;\n\n\n\n\n    /**\n     * Specifies the algorithm to be used to compute the checksum.\n     * Defaults to \"MD5\". Other popular algorithms like \"SHA\" may be used as well.\n     * @param algorithm the digest algorithm to use\n     */\n    public void setAlgorithm(String algorithm) {\n        this.algorithm = algorithm;\n    }\n\n\n    /**\n     * Sets the MessageDigest algorithm provider to be used\n     * to calculate the checksum.\n     * @param provider provider to use\n     */\n    public void setProvider(String provider) {\n        this.provider = provider;\n    }\n\n\n    /** Initialize the security message digest. */\n    public void initMessageDigest() {\n        if (messageDigest != null) {\n            return;\n        }\n\n        if ((provider != null) && !\"\".equals(provider) && !\"null\".equals(provider)) {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm, provider);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo);\n            } catch (NoSuchProviderException noprovider) {\n                throw new BuildException(noprovider);\n            }\n        } else {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo);\n            }\n        }\n    }\n\n\n\n\n    /**\n     * This algorithm supports only MD5 and SHA.\n     * @return <i>true</i> if all is ok, otherwise <i>false</i>.\n     */\n    public boolean isValid() {\n        return \"SHA\".equalsIgnoreCase(algorithm) || \"MD5\".equalsIgnoreCase(algorithm);\n    }\n\n\n    /**\n     * Computes a value for a file content with the specified digest algorithm.\n     * @param file    File object for which the value should be evaluated.\n     * @return        The value for that file\n     */\n    public String getValue(File file) {\n        initMessageDigest();\n        String checksum = null;\n        try {\n            if (!file.canRead()) {\n                return null;\n            }\n            FileInputStream fis = null;\n\n            byte[] buf = new byte[readBufferSize];\n            try {\n                messageDigest.reset();\n                fis = new FileInputStream(file);\n                DigestInputStream dis = new DigestInputStream(fis,\n                                                              messageDigest);\n                while (dis.read(buf, 0, readBufferSize) != -1) {\n                }\n                dis.close();\n                fis.close();\n                fis = null;\n                byte[] fileDigest = messageDigest.digest();\n                StringBuffer checksumSb = new StringBuffer();\n                for (int i = 0; i < fileDigest.length; i++) {\n                    String hexStr\n                        = Integer.toHexString(BYTE_MASK & fileDigest[i]);\n                    if (hexStr.length() < 2) {\n                        checksumSb.append(\"0\");\n                    }\n                    checksumSb.append(hexStr);\n                }\n                checksum = checksumSb.toString();\n            } catch (Exception e) {\n                return null;\n            }\n        } catch (Exception e) {\n            return null;\n        }\n        return checksum;\n    }\n\n\n    /**\n     * Override Object.toString().\n     * @return some information about this algorithm.\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        buf.append(\"<DigestAlgorithm:\");\n        buf.append(\"algorithm=\").append(algorithm);\n        buf.append(\";provider=\").append(provider);\n        buf.append(\">\");\n        return buf.toString();", "functions": [{"function_name": "setAlgorithm", "code": "    public void setAlgorithm(String algorithm) {\n        this.algorithm = algorithm;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProvider", "code": "    public void setProvider(String provider) {\n        this.provider = provider;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "initMessageDigest", "code": "    public void initMessageDigest() {\n        if (messageDigest != null) {\n            return;\n        }\n\n        if ((provider != null) && !\"\".equals(provider) && !\"null\".equals(provider)) {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm, provider);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo);\n            } catch (NoSuchProviderException noprovider) {\n                throw new BuildException(noprovider);\n            }\n        } else {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "TRY", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CATCH", "CATCH", "CATCH", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "ASSIGN", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [3, 7], [3, 8], [2, 9], [4, 10], [5, 11], [6, 12], [6, 13], [7, 14], [8, 15], [8, 16], [11, 17], [5, 18], [12, 19], [13, 20], [6, 21], [15, 22], [16, 23], [17, 24], [18, 25], [19, 26], [20, 27], [21, 28], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 3], [8, 3], [9, 2], [10, 4], [11, 5], [12, 6], [13, 6], [14, 7], [15, 8], [16, 8], [17, 11], [18, 5], [19, 12], [20, 13], [21, 6], [22, 15], [23, 16], [24, 17], [25, 18], [26, 19], [27, 20], [28, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "isValid", "code": "    public boolean isValid() {\n        return \"SHA\".equalsIgnoreCase(algorithm) || \"MD5\".equalsIgnoreCase(algorithm);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getValue", "code": "    public String getValue(File file) {\n        initMessageDigest();\n        String checksum = null;\n        try {\n            if (!file.canRead()) {\n                return null;\n            }\n            FileInputStream fis = null;\n\n            byte[] buf = new byte[readBufferSize];\n            try {\n                messageDigest.reset();\n                fis = new FileInputStream(file);\n                DigestInputStream dis = new DigestInputStream(fis,\n                                                              messageDigest);\n                while (dis.read(buf, 0, readBufferSize) != -1) {\n                }\n                dis.close();\n                fis.close();\n                fis = null;\n                byte[] fileDigest = messageDigest.digest();\n                StringBuffer checksumSb = new StringBuffer();\n                for (int i = 0; i < fileDigest.length; i++) {\n                    String hexStr\n                        = Integer.toHexString(BYTE_MASK & fileDigest[i]);\n                    if (hexStr.length() < 2) {\n                        checksumSb.append(\"0\");\n                    }\n                    checksumSb.append(hexStr);\n                }\n                checksum = checksumSb.toString();\n            } catch (Exception e) {\n                return null;\n            }\n        } catch (Exception e) {\n            return null;\n        }\n        return checksum;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "CATCH", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CALL", "RETURN", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [0, 10], [5, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [9, 18], [3, 19], [11, 20], [12, 21], [6, 22], [13, 23], [6, 24], [6, 25], [6, 26], [16, 27], [6, 28], [6, 29], [8, 30], [9, 31], [21, 32], [22, 33], [13, 34], [13, 35], [14, 36], [15, 37], [24, 38], [27, 39], [27, 40], [17, 41], [28, 42], [31, 43], [13, 44], [34, 45], [13, 46], [40, 47], [45, 48], [45, 49], [35, 50], [34, 51], [50, 52], [51, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 0], [11, 5], [12, 6], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 9], [19, 3], [20, 11], [21, 12], [22, 6], [23, 13], [24, 6], [25, 6], [26, 6], [27, 16], [28, 6], [29, 6], [30, 8], [31, 9], [32, 21], [33, 22], [34, 13], [35, 13], [36, 14], [37, 15], [38, 24], [39, 27], [40, 27], [41, 17], [42, 28], [43, 31], [44, 13], [45, 34], [46, 13], [47, 40], [48, 45], [49, 45], [50, 35], [51, 34], [52, 50], [53, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        buf.append(\"<DigestAlgorithm:\");\n        buf.append(\"algorithm=\").append(algorithm);\n        buf.append(\";provider=\").append(provider);\n        buf.append(\">\");\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [5, 10], [6, 11], [6, 12], [7, 13], [2, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 5], [11, 6], [12, 6], [13, 7], [14, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "xalan-2.5-7245", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/util/MethodGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.MethodGenerator", "code": "public class MethodGenerator extends MethodGen\n    implements org.apache.xalan.xsltc.compiler.Constants {\n    protected static final int INVALID_INDEX   = -1;\n    \n    private static final String START_ELEMENT_SIG   \n\t= \"(\" + STRING_SIG + \")V\";\n    private static final String END_ELEMENT_SIG     \n\t= START_ELEMENT_SIG;\n    \n    private InstructionList _mapTypeSub;\n\t\n    private static final int DOM_INDEX       = 1;\n    private static final int ITERATOR_INDEX  = 2;\n    private static final int HANDLER_INDEX   = 3;\n\n    private Instruction       _iloadCurrent;\n    private Instruction       _istoreCurrent;\n    private final Instruction _astoreHandler;\n    private final Instruction _aloadHandler;\n    private final Instruction _astoreIterator;\n    private final Instruction _aloadIterator;\n    private final Instruction _aloadDom;\n    private final Instruction _astoreDom;\n    \n    private final Instruction _startElement;\n    private final Instruction _endElement;\n    private final Instruction _startDocument;\n    private final Instruction _endDocument;\n    private final Instruction _attribute;\n    private final Instruction _namespace;\n\n    private final Instruction _setStartNode;\n    private final Instruction _reset;\n    private final Instruction _nextNode;\n    private final Instruction _nextNodeId;\n\n    private SlotAllocator _slotAllocator;\n    private boolean _allocatorInit = false;\n    \n    public MethodGenerator(int access_flags, Type return_type,\n\t\t\t   Type[] arg_types, String[] arg_names,\n\t\t\t   String method_name, String class_name,\n\t\t\t   InstructionList il, ConstantPoolGen cpg) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cpg);\n\t\n\t_astoreHandler  = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler   = new ALOAD(HANDLER_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\t_aloadIterator  = new ALOAD(ITERATOR_INDEX);\n\t_aloadDom       = new ALOAD(DOM_INDEX);\n\t_astoreDom      = new ASTORE(DOM_INDEX);\n\t\n\tfinal int startElement =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"startElement\",\n\t\t\t\t      START_ELEMENT_SIG);\n\t_startElement = new INVOKEINTERFACE(startElement, 2);\n\t\n\tfinal int endElement =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"endElement\",\n\t\t\t\t      END_ELEMENT_SIG);\n\t_endElement = new INVOKEINTERFACE(endElement, 2);\n\n\tfinal int attribute =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"addAttribute\", \n\t\t\t\t      \"(\"\n\t\t\t\t      + STRING_SIG\n\t\t\t\t      + STRING_SIG\n\t\t\t\t      + \")V\");\n\t_attribute = new INVOKEINTERFACE(attribute, 3);\n\n\tfinal int namespace =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"namespaceAfterStartElement\", \n\t\t\t\t      \"(\"\n\t\t\t\t      + STRING_SIG\n\t\t\t\t      + STRING_SIG\n\t\t\t\t      + \")V\");\n\t_namespace = new INVOKEINTERFACE(namespace, 3);\n\t\n\tint index = cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t\t      \"startDocument\",\n\t\t\t\t\t      \"()V\");\n\t_startDocument = new INVOKEINTERFACE(index, 1);\n\t\n\tindex = cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t\t  \"endDocument\",\n\t\t\t\t\t  \"()V\");\n\t_endDocument = new INVOKEINTERFACE(index, 1);\n\t\n\t\n\tindex = cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t  SET_START_NODE,\n\t\t\t\t\t  SET_START_NODE_SIG);\n\t_setStartNode = new INVOKEINTERFACE(index, 2);\n\n\tindex = cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t  \"reset\", \"()\"+NODE_ITERATOR_SIG);\n\t_reset = new INVOKEINTERFACE(index, 1);\n\t\n\tindex = cpg.addInterfaceMethodref(NODE_ITERATOR, NEXT, NEXT_SIG);\n\t_nextNode = new INVOKEINTERFACE(index, 1);\n\t\n\tindex = cpg.addInterfaceMethodref(\"org.apache.xalan.xsltc.dom.SAXImpl$SingletonNodeIDIterator\", NEXTID, NEXT_SIG);\n\t_nextNodeId = new INVOKEINTERFACE(index, 1);\n\t\n\t_slotAllocator = new SlotAllocator();\n\t_slotAllocator.initialize(getLocalVariables());\n\t_allocatorInit = true;\n    }\n\n    /**\n     * Allocates a local variable. If the slot allocator has already been\n     * initialized, then call addLocalVariable2() so that the new variable\n     * is known to the allocator. Failing to do this may cause the allocator \n     * to return a slot that is already in use.\n     */\n    public LocalVariableGen addLocalVariable(String name, Type type,\n\t\t\t\t\t     InstructionHandle start,\n\t\t\t\t\t     InstructionHandle end) \n    {\n\treturn (_allocatorInit) ? addLocalVariable2(name, type, start) \n\t    : super.addLocalVariable(name, type, start, end);\n    }\n    \n    public LocalVariableGen addLocalVariable2(String name, Type type,\n\t\t\t\t\t      InstructionHandle start) \n    {\n\treturn super.addLocalVariable(name, type,\n\t\t\t\t      _slotAllocator.allocateSlot(type),\n\t\t\t\t      start, null);\n    }\n\n    public void removeLocalVariable(LocalVariableGen lvg) {\n\t_slotAllocator.releaseSlot(lvg);\n\tsuper.removeLocalVariable(lvg);\n    }\n\n    public Instruction loadDOM() {\n\treturn _aloadDom;\n    }\n\n    public Instruction storeDOM() {\n\treturn _astoreDom;\n    }\n    \n    public Instruction storeHandler() {\n\treturn _astoreHandler;\n    }\n\n    public Instruction loadHandler() {\n\treturn _aloadHandler;\n    }\n\n    public Instruction storeIterator() {\n\treturn _astoreIterator;\n    }\n    \n    public Instruction loadIterator() {\n\treturn _aloadIterator;\n    }\n    \n    public final Instruction setStartNode() {\n\treturn _setStartNode;\n    }\n\n    public final Instruction reset() {\n\treturn _reset;\n    }\n    \n    public final Instruction nextNode() {\n\treturn _nextNode;\n    }\n    \n    public final Instruction nextNodeId() {\n\treturn _nextNodeId;\n    }\n    \n    public final Instruction startElement() {\n\treturn _startElement;\n    }\n\n    public final Instruction endElement() {\n\treturn _endElement;\n    }\n\n    public final Instruction startDocument() {\n\treturn _startDocument;\n    }\n\n    public final Instruction endDocument() {\n\treturn _endDocument;\n    }\n\n    public final Instruction attribute() {\n\treturn _attribute;\n    }\n\n    public final Instruction namespace() {\n\treturn _namespace;\n    }\n\n    public Instruction loadCurrentNode() {\n\tif (_iloadCurrent == null) {\n\t    int idx = getLocalIndex(\"current\");\n\t    if (idx > 0)\n\t\t_iloadCurrent = new ILOAD(idx);\n\t    else\n\t\t_iloadCurrent = new ICONST(0);\n\t}\n\treturn _iloadCurrent;\n    }\n\n    public Instruction storeCurrentNode() {\n\treturn _istoreCurrent != null\n\t    ? _istoreCurrent\n\t    : (_istoreCurrent = new ISTORE(getLocalIndex(\"current\")));\n    }\n\n    /** by default context node is the same as current node. MK437 */\n    public Instruction loadContextNode() {\n\treturn loadCurrentNode();\n    }\n\n    public Instruction storeContextNode() {\n\treturn storeCurrentNode();\n    }\n\n    public int getLocalIndex(String name) {\n\treturn getLocalVariable(name).getIndex();\n    }\n\n    public LocalVariableGen getLocalVariable(String name) {\n\tfinal LocalVariableGen[] vars = getLocalVariables();\n\tfor (int i = 0; i < vars.length; i++)\n\t    if (vars[i].getName().equals(name))\n\t\treturn vars[i];\n\treturn null;\t\n    }\n\n    public void setMaxLocals() {\n\t\n\tint maxLocals = super.getMaxLocals();\n\tint prevLocals = maxLocals;\n\n\tfinal LocalVariableGen[] localVars = super.getLocalVariables();\n\tif (localVars != null) {\n\t    if (localVars.length > maxLocals)\n\t\tmaxLocals = localVars.length;\n\t}\n\n\tif (maxLocals < 5) maxLocals = 5;\n\n\tsuper.setMaxLocals(maxLocals);", "functions": [{"function_name": "addLocalVariable", "code": "    public LocalVariableGen addLocalVariable(String name, Type type,\n\t\t\t\t\t     InstructionHandle start,\n\t\t\t\t\t     InstructionHandle end) \n    {\n\treturn (_allocatorInit) ? addLocalVariable2(name, type, start) \n\t    : super.addLocalVariable(name, type, start, end);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "COND_EXPR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addLocalVariable2", "code": "    public LocalVariableGen addLocalVariable2(String name, Type type,\n\t\t\t\t\t      InstructionHandle start) \n    {\n\treturn super.addLocalVariable(name, type,\n\t\t\t\t      _slotAllocator.allocateSlot(type),\n\t\t\t\t      start, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "removeLocalVariable", "code": "    public void removeLocalVariable(LocalVariableGen lvg) {\n\t_slotAllocator.releaseSlot(lvg);\n\tsuper.removeLocalVariable(lvg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadDOM", "code": "    public Instruction loadDOM() {\n\treturn _aloadDom;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeDOM", "code": "    public Instruction storeDOM() {\n\treturn _astoreDom;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeHandler", "code": "    public Instruction storeHandler() {\n\treturn _astoreHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadHandler", "code": "    public Instruction loadHandler() {\n\treturn _aloadHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeIterator", "code": "    public Instruction storeIterator() {\n\treturn _astoreIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadIterator", "code": "    public Instruction loadIterator() {\n\treturn _aloadIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStartNode", "code": "    public final Instruction setStartNode() {\n\treturn _setStartNode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reset", "code": "    public final Instruction reset() {\n\treturn _reset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "nextNode", "code": "    public final Instruction nextNode() {\n\treturn _nextNode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "nextNodeId", "code": "    public final Instruction nextNodeId() {\n\treturn _nextNodeId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startElement", "code": "    public final Instruction startElement() {\n\treturn _startElement;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endElement", "code": "    public final Instruction endElement() {\n\treturn _endElement;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startDocument", "code": "    public final Instruction startDocument() {\n\treturn _startDocument;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endDocument", "code": "    public final Instruction endDocument() {\n\treturn _endDocument;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "attribute", "code": "    public final Instruction attribute() {\n\treturn _attribute;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "namespace", "code": "    public final Instruction namespace() {\n\treturn _namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadCurrentNode", "code": "    public Instruction loadCurrentNode() {\n\tif (_iloadCurrent == null) {\n\t    int idx = getLocalIndex(\"current\");\n\t    if (idx > 0)\n\t\t_iloadCurrent = new ILOAD(idx);\n\t    else\n\t\t_iloadCurrent = new ICONST(0);\n\t}\n\treturn _iloadCurrent;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [4, 7], [4, 8], [4, 9], [7, 10], [5, 11], [8, 12], [9, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 4], [8, 4], [9, 4], [10, 7], [11, 5], [12, 8], [13, 9], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "storeCurrentNode", "code": "    public Instruction storeCurrentNode() {\n\treturn _istoreCurrent != null\n\t    ? _istoreCurrent\n\t    : (_istoreCurrent = new ISTORE(getLocalIndex(\"current\")));", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "loadContextNode", "code": "    public Instruction loadContextNode() {\n\treturn loadCurrentNode();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "storeContextNode", "code": "    public Instruction storeContextNode() {\n\treturn storeCurrentNode();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {\n\treturn getLocalVariable(name).getIndex();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLocalVariable", "code": "    public LocalVariableGen getLocalVariable(String name) {\n\tfinal LocalVariableGen[] vars = getLocalVariables();\n\tfor (int i = 0; i < vars.length; i++)\n\t    if (vars[i].getName().equals(name))\n\t\treturn vars[i];\n\treturn null;\t", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [3, 9], [6, 10], [6, 11], [2, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 3], [10, 6], [11, 6], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setMaxLocals", "code": "    public void setMaxLocals() {\n\t\n\tint maxLocals = super.getMaxLocals();\n\tint prevLocals = maxLocals;\n\n\tfinal LocalVariableGen[] localVars = super.getLocalVariables();\n\tif (localVars != null) {\n\t    if (localVars.length > maxLocals)\n\t\tmaxLocals = localVars.length;\n\t}\n\n\tif (maxLocals < 5) maxLocals = 5;\n\n\tsuper.setMaxLocals(maxLocals);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [6, 9], [2, 10], [7, 11], [8, 12], [10, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 6], [10, 2], [11, 7], [12, 8], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "MethodGenerator", "code": "    public MethodGenerator(int access_flags, Type return_type,\n\t\t\t   Type[] arg_types, String[] arg_names,\n\t\t\t   String method_name, String class_name,\n\t\t\t   InstructionList il, ConstantPoolGen cpg) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cpg);\n\t\n\t_astoreHandler  = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler   = new ALOAD(HANDLER_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\t_aloadIterator  = new ALOAD(ITERATOR_INDEX);\n\t_aloadDom       = new ALOAD(DOM_INDEX);\n\t_astoreDom      = new ASTORE(DOM_INDEX);\n\t\n\tfinal int startElement =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"startElement\",\n\t\t\t\t      START_ELEMENT_SIG);\n\t_startElement = new INVOKEINTERFACE(startElement, 2);\n\t\n\tfinal int endElement =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"endElement\",\n\t\t\t\t      END_ELEMENT_SIG);\n\t_endElement = new INVOKEINTERFACE(endElement, 2);\n\n\tfinal int attribute =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"addAttribute\", \n\t\t\t\t      \"(\"\n\t\t\t\t      + STRING_SIG\n\t\t\t\t      + STRING_SIG\n\t\t\t\t      + \")V\");\n\t_attribute = new INVOKEINTERFACE(attribute, 3);\n\n\tfinal int namespace =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"namespaceAfterStartElement\", \n\t\t\t\t      \"(\"\n\t\t\t\t      + STRING_SIG\n\t\t\t\t      + STRING_SIG\n\t\t\t\t      + \")V\");\n\t_namespace = new INVOKEINTERFACE(namespace, 3);\n\t\n\tint index = cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t\t      \"startDocument\",\n\t\t\t\t\t      \"()V\");\n\t_startDocument = new INVOKEINTERFACE(index, 1);\n\t\n\tindex = cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t\t  \"endDocument\",\n\t\t\t\t\t  \"()V\");\n\t_endDocument = new INVOKEINTERFACE(index, 1);\n\t\n\t\n\tindex = cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t  SET_START_NODE,\n\t\t\t\t\t  SET_START_NODE_SIG);\n\t_setStartNode = new INVOKEINTERFACE(index, 2);\n\n\tindex = cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t  \"reset\", \"()\"+NODE_ITERATOR_SIG);\n\t_reset = new INVOKEINTERFACE(index, 1);\n\t\n\tindex = cpg.addInterfaceMethodref(NODE_ITERATOR, NEXT, NEXT_SIG);\n\t_nextNode = new INVOKEINTERFACE(index, 1);\n\t\n\tindex = cpg.addInterfaceMethodref(\"org.apache.xalan.xsltc.dom.SAXImpl$SingletonNodeIDIterator\", NEXTID, NEXT_SIG);\n\t_nextNodeId = new INVOKEINTERFACE(index, 1);\n\t\n\t_slotAllocator = new SlotAllocator();\n\t_slotAllocator.initialize(getLocalVariables());\n\t_allocatorInit = true;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [14, 38], [15, 39], [16, 40], [17, 41], [18, 42], [19, 43], [20, 44], [21, 45], [22, 46], [23, 47], [24, 48], [25, 49], [26, 50], [27, 51], [1, 52], [28, 53], [2, 54], [29, 55], [3, 56], [30, 57], [4, 58], [31, 59], [5, 60], [32, 61], [33, 62], [34, 63], [35, 64], [36, 65], [37, 66], [41, 67], [42, 68], [43, 69], [45, 70], [46, 71], [46, 72], [47, 73], [49, 74], [50, 75], [50, 76], [51, 77], [52, 78], [52, 79], [53, 80], [54, 81], [54, 82], [55, 83], [56, 84], [56, 85], [57, 86], [58, 87], [59, 88], [60, 89], [71, 90], [81, 91], [81, 92], [84, 93], [84, 94], [92, 95], [94, 96], [95, 97], [96, 98], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 14], [39, 15], [40, 16], [41, 17], [42, 18], [43, 19], [44, 20], [45, 21], [46, 22], [47, 23], [48, 24], [49, 25], [50, 26], [51, 27], [52, 1], [53, 28], [54, 2], [55, 29], [56, 3], [57, 30], [58, 4], [59, 31], [60, 5], [61, 32], [62, 33], [63, 34], [64, 35], [65, 36], [66, 37], [67, 41], [68, 42], [69, 43], [70, 45], [71, 46], [72, 46], [73, 47], [74, 49], [75, 50], [76, 50], [77, 51], [78, 52], [79, 52], [80, 53], [81, 54], [82, 54], [83, 55], [84, 56], [85, 56], [86, 57], [87, 58], [88, 59], [89, 60], [90, 71], [91, 81], [92, 81], [93, 84], [94, 84], [95, 92], [96, 94], [97, 95], [98, 96], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98]]}], "label": 1}
{"sample_id": "jedit-4.1-4004", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "gnu/regexp/CharIndexedString.java", "language": "java", "name": "gnu.regexp.CharIndexedString", "code": "class CharIndexedString implements CharIndexed, Serializable {\n    private String s;\n    private int anchor;\n    private int len;\n    \n    CharIndexedString(String str, int index) {\n\ts = str;\n\tlen = s.length();\n\tanchor = index;\n    }\n\n    public char charAt(int index) {\n\tint pos = anchor + index;\n\treturn ((pos < len) && (pos >= 0)) ? s.charAt(pos) : OUT_OF_BOUNDS;\n    }\n    \n    public boolean isValid() {\n\treturn (anchor < len);\n    }\n    \n    public boolean move(int index) {\n\treturn ((anchor += index) < len);", "functions": [{"function_name": "charAt", "code": "    public char charAt(int index) {\n\tint pos = anchor + index;\n\treturn ((pos < len) && (pos >= 0)) ? s.charAt(pos) : OUT_OF_BOUNDS;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [6, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 6], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isValid", "code": "    public boolean isValid() {\n\treturn (anchor < len);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "move", "code": "    public boolean move(int index) {\n\treturn ((anchor += index) < len);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CharIndexedString", "code": "    CharIndexedString(String str, int index) {\n\ts = str;\n\tlen = s.length();\n\tanchor = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "jedit-3.2-3668", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "bsh/BSHTypedVariableDeclaration.java", "language": "java", "name": "bsh.BSHTypedVariableDeclaration", "code": "class BSHTypedVariableDeclaration extends SimpleNode\n{\n    public boolean isFinal;\n\t\n    BSHTypedVariableDeclaration(int id) { super(id); }\n\n\t/**\n\t\tevaluate the type and one or more variable declarators, e.g.:\n\t\t\tint a, b=5, c;\n\n\t*/\n    public Object eval( CallStack callstack, Interpreter interpreter)  \n\t\tthrows EvalError\n    {\n\t\ttry {\n\t\t\tNameSpace namespace = callstack.top();\n\t\t\tBSHType typeNode = ((BSHType)jjtGetChild(0));\n\t\t\tClass type = typeNode.getType( namespace );\n\n\t\t\tint n = jjtGetNumChildren();\n\t\t\tfor (int i = 1; i < n; i++)\n\t\t\t{\n\t\t\t\tBSHVariableDeclarator dec = \n\t\t\t\t\t(BSHVariableDeclarator)jjtGetChild(i);\n\n\t\t\t\t// Type node is passed down the chain for array initializers\n\t\t\t\t// which need it under some circumstances\n\t\t\t\tObject value = dec.eval( typeNode, callstack, interpreter);\n\n\t\t\t\t// simple declaration with no value, e.g. int a;\n\t\t\t\t// null in value will prompt defaulting in setTypedVariable\n\t\t\t\tif ( value == Primitive.VOID ) \n\t\t\t\t\tvalue = null;\n\t\t\t\telse \n\t\t\t\t// true null value being assigned\n\t\t\t\tif ( value == Primitive.NULL ) {\n\t\t\t\t\t// leave as Primitive.NULL\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t// allow specific numeric conversions on declaration\n\t\t\t\tif ( canCastToDeclaredType( value, type ) )\n\t\t\t\t\tvalue = BSHCastExpression.castObject( value, type );\n\t\t\t\telse {\n\t\t\t\t\t// leave value alone\n\t\t\t\t}\n\n\t\t\t\tnamespace.setTypedVariable( dec.name, type, value, isFinal );\n\t\t\t}\n\t\t} catch ( EvalError e ) {\n\t\t\te.reThrow( \"Typed variable declaration\", this );\n\t\t}\n\n        return Primitive.VOID;\n    }\n\n\t/**\n\t\tDetermine if a cast would be legitimate in order to handle the \n\t\tspecial cases where a numeric declared var is assigned a type larger \n\t\tthan it can handle. (JLS cite??)\n\n\t\t\tbyte b = 5;\n\t\t\tbyte b1 = 5*10;\n\n\t\tNormally the above would be int types.\n\t*/\n\t/*\n\t\tNote: in theory this probably shouldn't be considered a cast, but \n\t\tshould be taken into account during literal and expression evaluation\n\t\twhere the result type is guided by the context.  However this is much\n\t\tsimpler to deal with and there is no other use for the other that I'm\n\t\taware of.\n\t*/\n\tboolean canCastToDeclaredType( Object value, Class toType ) {\n\t\tif ( !(value instanceof Primitive) )\n\t\t\treturn false;\n\t\tClass fromType = ((Primitive)value).getType();\n\t\t\n\t\tif ( (toType==Byte.TYPE || toType==Short.TYPE || toType==Character.TYPE)\n\t\t\t&& fromType == Integer.TYPE \n\t\t)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;", "functions": [{"function_name": "eval", "code": "    public Object eval( CallStack callstack, Interpreter interpreter)  \n\t\tthrows EvalError\n    {\n\t\ttry {\n\t\t\tNameSpace namespace = callstack.top();\n\t\t\tBSHType typeNode = ((BSHType)jjtGetChild(0));\n\t\t\tClass type = typeNode.getType( namespace );\n\n\t\t\tint n = jjtGetNumChildren();\n\t\t\tfor (int i = 1; i < n; i++)\n\t\t\t{\n\t\t\t\tBSHVariableDeclarator dec = \n\t\t\t\t\t(BSHVariableDeclarator)jjtGetChild(i);\n\n\t\t\t\t// Type node is passed down the chain for array initializers\n\t\t\t\t// which need it under some circumstances\n\t\t\t\tObject value = dec.eval( typeNode, callstack, interpreter);\n\n\t\t\t\t// simple declaration with no value, e.g. int a;\n\t\t\t\t// null in value will prompt defaulting in setTypedVariable\n\t\t\t\tif ( value == Primitive.VOID ) \n\t\t\t\t\tvalue = null;\n\t\t\t\telse \n\t\t\t\t// true null value being assigned\n\t\t\t\tif ( value == Primitive.NULL ) {\n\t\t\t\t\t// leave as Primitive.NULL\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t// allow specific numeric conversions on declaration\n\t\t\t\tif ( canCastToDeclaredType( value, type ) )\n\t\t\t\t\tvalue = BSHCastExpression.castObject( value, type );\n\t\t\t\telse {\n\t\t\t\t\t// leave value alone\n\t\t\t\t}\n\n\t\t\t\tnamespace.setTypedVariable( dec.name, type, value, isFinal );\n\t\t\t}\n\t\t} catch ( EvalError e ) {\n\t\t\te.reThrow( \"Typed variable declaration\", this );\n\t\t}\n\n        return Primitive.VOID;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [6, 11], [5, 12], [6, 13], [6, 14], [6, 15], [7, 16], [8, 17], [10, 18], [12, 19], [6, 20], [13, 21], [13, 22], [6, 23], [9, 24], [21, 25], [21, 26], [13, 27], [14, 28], [24, 29], [25, 30], [27, 31], [15, 32], [25, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 6], [12, 5], [13, 6], [14, 6], [15, 6], [16, 7], [17, 8], [18, 10], [19, 12], [20, 6], [21, 13], [22, 13], [23, 6], [24, 9], [25, 21], [26, 21], [27, 13], [28, 14], [29, 24], [30, 25], [31, 27], [32, 15], [33, 25], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "canCastToDeclaredType", "code": "\tboolean canCastToDeclaredType( Object value, Class toType ) {\n\t\tif ( !(value instanceof Primitive) )\n\t\t\treturn false;\n\t\tClass fromType = ((Primitive)value).getType();\n\t\t\n\t\tif ( (toType==Byte.TYPE || toType==Short.TYPE || toType==Character.TYPE)\n\t\t\t&& fromType == Integer.TYPE \n\t\t)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [3, 9], [3, 10], [6, 11], [7, 12], [8, 13], [8, 14], [9, 15], [14, 16], [14, 17], [17, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 3], [10, 3], [11, 6], [12, 7], [13, 8], [14, 8], [15, 9], [16, 14], [17, 14], [18, 17], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "BSHTypedVariableDeclaration", "code": "    BSHTypedVariableDeclaration(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-1221", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/ReaderInputStream.java", "language": "java", "name": "org.apache.tools.ant.util.ReaderInputStream", "code": "public class ReaderInputStream extends InputStream {\n    private static final int BYTE_MASK = 0xFF;\n\n    /** Source Reader */\n    private Reader in;\n\n    private String encoding = System.getProperty(\"file.encoding\");\n\n    private byte[] slack;\n\n    private int begin;\n\n    /**\n     * Construct a <code>ReaderInputStream</code>\n     * for the specified <code>Reader</code>.\n     *\n     * @param reader   <code>Reader</code>.  Must not be <code>null</code>.\n     */\n    public ReaderInputStream(Reader reader) {\n        in = reader;\n    }\n\n    /**\n     * Construct a <code>ReaderInputStream</code>\n     * for the specified <code>Reader</code>,\n     * with the specified encoding.\n     *\n     * @param reader     non-null <code>Reader</code>.\n     * @param encoding   non-null <code>String</code> encoding.\n     */\n    public ReaderInputStream(Reader reader, String encoding) {\n        this(reader);\n        if (encoding == null) {\n            throw new IllegalArgumentException(\"encoding must not be null\");\n        } else {\n            this.encoding = encoding;\n        }\n    }\n\n    /**\n     * Reads from the <code>Reader</code>, returning the same value.\n     *\n     * @return the value of the next character in the <code>Reader</code>.\n     *\n     * @exception IOException if the original <code>Reader</code> fails to be read\n     */\n    public synchronized int read() throws IOException {\n        if (in == null) {\n            throw new IOException(\"Stream Closed\");\n        }\n\n        byte result;\n        if (slack != null && begin < slack.length) {\n            result = slack[begin];\n            if (++begin == slack.length) {\n                slack = null;\n            }\n        } else {\n            byte[] buf = new byte[1];\n            if (read(buf, 0, 1) <= 0) {\n                return -1;\n            } else {\n                result = buf[0];\n            }\n        }\n        return result & BYTE_MASK;\n    }\n\n    /**\n     * Reads from the <code>Reader</code> into a byte array\n     *\n     * @param b  the byte array to read into\n     * @param off the offset in the byte array\n     * @param len the length in the byte array to fill\n     * @return the actual number read into the byte array, -1 at\n     *         the end of the stream\n     * @exception IOException if an error occurs\n     */\n    public synchronized int read(byte[] b, int off, int len)\n        throws IOException {\n        if (in == null) {\n            throw new IOException(\"Stream Closed\");\n        }\n        if (len == 0) {\n            return 0;\n        }\n        while (slack == null) {\n            int n = in.read(buf);\n            if (n == -1) {\n                return -1;\n            }\n            if (n > 0) {\n                slack = new String(buf, 0, n).getBytes(encoding);\n                begin = 0;\n            }\n        }\n\n        if (len > slack.length - begin) {\n            len = slack.length - begin;\n        }\n\n        System.arraycopy(slack, begin, b, off, len);\n\n        if ((begin += len) >= slack.length) {\n            slack = null;\n        }\n\n        return len;\n    }\n\n    /**\n     * Marks the read limit of the Reader.\n     *\n     * @param limit the maximum limit of bytes that can be read before the\n     *              mark position becomes invalid\n     */\n    public synchronized void mark(final int limit) {\n        try {\n            in.mark(limit);\n        } catch (IOException ioe) {\n            throw new RuntimeException(ioe.getMessage());\n        }\n    }\n\n\n    /**\n     * @return   the current number of bytes ready for reading\n     * @exception IOException if an error occurs\n     */\n    public synchronized int available() throws IOException {\n        if (in == null) {\n            throw new IOException(\"Stream Closed\");\n        }\n        if (slack != null) {\n            return slack.length - begin;\n        }\n        if (in.ready()) {\n            return 1;\n        }\n        return 0;\n    }\n\n    /**\n     * @return false - mark is not supported\n     */\n    public boolean markSupported () {\n    }\n\n    /**\n     * Resets the Reader.\n     *\n     * @exception IOException if the Reader fails to be reset\n     */\n    public synchronized void reset() throws IOException {\n        if (in == null) {\n            throw new IOException(\"Stream Closed\");\n        }\n        slack = null;\n        in.reset();\n    }\n\n    /**\n     * Closes the Reader.\n     *\n     * @exception IOException if the original Reader fails to be closed\n     */\n    public synchronized void close() throws IOException {\n        if (in != null) {\n            in.close();\n            slack = null;\n            in = null;", "functions": [{"function_name": "read", "code": "    public synchronized int read() throws IOException {\n        if (in == null) {\n            throw new IOException(\"Stream Closed\");\n        }\n\n        byte result;\n        if (slack != null && begin < slack.length) {\n            result = slack[begin];\n            if (++begin == slack.length) {\n                slack = null;\n            }\n        } else {\n            byte[] buf = new byte[1];\n            if (read(buf, 0, 1) <= 0) {\n                return -1;\n            } else {\n                result = buf[0];\n            }\n        }\n        return result & BYTE_MASK;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [2, 8], [2, 9], [2, 10], [6, 11], [6, 12], [4, 13], [7, 14], [8, 15], [10, 16], [2, 17], [12, 18], [13, 19], [8, 20], [15, 21], [15, 22], [19, 23], [8, 24], [20, 25], [22, 26], [22, 27], [9, 28], [10, 29], [29, 30], [24, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 2], [9, 2], [10, 2], [11, 6], [12, 6], [13, 4], [14, 7], [15, 8], [16, 10], [17, 2], [18, 12], [19, 13], [20, 8], [21, 15], [22, 15], [23, 19], [24, 8], [25, 20], [26, 22], [27, 22], [28, 9], [29, 10], [30, 29], [31, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "read", "code": "    public synchronized int read(byte[] b, int off, int len)\n        throws IOException {\n        if (in == null) {\n            throw new IOException(\"Stream Closed\");\n        }\n        if (len == 0) {\n            return 0;\n        }\n        while (slack == null) {\n            int n = in.read(buf);\n            if (n == -1) {\n                return -1;\n            }\n            if (n > 0) {\n                slack = new String(buf, 0, n).getBytes(encoding);\n                begin = 0;\n            }\n        }\n\n        if (len > slack.length - begin) {\n            len = slack.length - begin;\n        }\n\n        System.arraycopy(slack, begin, b, off, len);\n\n        if ((begin += len) >= slack.length) {\n            slack = null;\n        }\n\n        return len;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [3, 12], [4, 13], [5, 14], [6, 15], [10, 16], [12, 17], [4, 18], [4, 19], [4, 20], [13, 21], [5, 22], [14, 23], [6, 24], [15, 25], [2, 26], [3, 27], [18, 28], [19, 29], [22, 30], [24, 31], [26, 32], [27, 33], [28, 34], [19, 35], [29, 36], [20, 37], [31, 38], [18, 39], [18, 40], [35, 41], [39, 42], [40, 43], [43, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 3], [13, 4], [14, 5], [15, 6], [16, 10], [17, 12], [18, 4], [19, 4], [20, 4], [21, 13], [22, 5], [23, 14], [24, 6], [25, 15], [26, 2], [27, 3], [28, 18], [29, 19], [30, 22], [31, 24], [32, 26], [33, 27], [34, 28], [35, 19], [36, 29], [37, 20], [38, 31], [39, 18], [40, 18], [41, 35], [42, 39], [43, 40], [44, 43], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "mark", "code": "    public synchronized void mark(final int limit) {\n        try {\n            in.mark(limit);\n        } catch (IOException ioe) {\n            throw new RuntimeException(ioe.getMessage());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "available", "code": "    public synchronized int available() throws IOException {\n        if (in == null) {\n            throw new IOException(\"Stream Closed\");\n        }\n        if (slack != null) {\n            return slack.length - begin;\n        }\n        if (in.ready()) {\n            return 1;\n        }\n        return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [2, 9], [3, 10], [7, 11], [4, 12], [8, 13], [9, 14], [10, 15], [12, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 2], [10, 3], [11, 7], [12, 4], [13, 8], [14, 9], [15, 10], [16, 12], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "markSupported", "code": "    public boolean markSupported () {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "reset", "code": "    public synchronized void reset() throws IOException {\n        if (in == null) {\n            throw new IOException(\"Stream Closed\");\n        }\n        slack = null;\n        in.reset();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [4, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 4], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "close", "code": "    public synchronized void close() throws IOException {\n        if (in != null) {\n            in.close();\n            slack = null;\n            in = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "ReaderInputStream", "code": "    public ReaderInputStream(Reader reader) {\n        in = reader;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ReaderInputStream", "code": "    public ReaderInputStream(Reader reader, String encoding) {\n        this(reader);\n        if (encoding == null) {\n            throw new IllegalArgumentException(\"encoding must not be null\");\n        } else {\n            this.encoding = encoding;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "ivy-2.0-3269", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/settings/IvyVariableContainer.java", "language": "java", "name": "org.apache.ivy.core.settings.IvyVariableContainer", "code": "public interface IvyVariableContainer extends Cloneable {\n\n    public void setVariable(String varName, String value, boolean overwrite);\n\n    public String getVariable(String name);\n\n    /**\n     * Specifies the prefix used to indicate a variable is an environment\n     * variable. If the prefix doesn't end with a '.', it will be added\n     * automatically.\n     * \n     * @param prefix the prefix to use for the environment variables\n     */\n    public void setEnvironmentPrefix(String prefix);\n    \n    public Object clone();", "functions": [{"function_name": "setVariable", "code": "    public void setVariable(String varName, String value, boolean overwrite);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getVariable", "code": "    public String getVariable(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEnvironmentPrefix", "code": "    public void setEnvironmentPrefix(String prefix);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.7-1323", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/Assertions.java", "language": "java", "name": "org.apache.tools.ant.types.Assertions", "code": "public class Assertions extends DataType implements Cloneable {\n\n    /**\n     * enable/disable sys assertions; null means undefined\n     */\n    private Boolean enableSystemAssertions;\n\n    /**\n     * list of type BaseAssertion\n     */\n    private ArrayList assertionList = new ArrayList();\n\n\n    /**\n     * enable assertions\n     * @param assertion an enable assertion nested element\n     */\n    public void addEnable(EnabledAssertion assertion) {\n        checkChildrenAllowed();\n        assertionList.add(assertion);\n    }\n\n    /**\n     * disable assertions\n     * @param assertion a disable assertion nested element\n     */\n    public void addDisable(DisabledAssertion assertion) {\n        checkChildrenAllowed();\n        assertionList.add(assertion);\n    }\n\n    /**\n     * enable or disable system assertions.\n     * Default is not set (neither -enablesystemassersions or -disablesytemassertions\n     * are used on the command line).\n     * @param enableSystemAssertions if true enable system assertions\n     */\n    public void setEnableSystemAssertions(Boolean enableSystemAssertions) {\n        checkAttributesAllowed();\n        this.enableSystemAssertions = enableSystemAssertions;\n    }\n\n    /**\n     * Set the value of the refid attribute.\n     *\n     * <p>Subclasses may need to check whether any other attributes\n     * have been set as well or child elements have been created and\n     * thus override this method. if they do the must call\n     * <code>super.setRefid</code>.</p>\n     * @param ref the reference to use\n     */\n    public void setRefid(Reference ref) {\n        if (assertionList.size() > 0 || enableSystemAssertions != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(ref);\n    }\n\n    /**\n     * get whatever we are referencing to. This could be ourself.\n     * @return the object that contains the assertion info\n     */\n    private Assertions getFinalReference() {\n        if (getRefid() == null) {\n            return this;\n        } else {\n            Object o = getRefid().getReferencedObject(getProject());\n            if (!(o instanceof Assertions)) {\n                throw new BuildException(\"reference is of wrong type\");\n            }\n            return (Assertions) o;\n        }\n    }\n\n    /**\n     * how many assertions are made...will resolve references before returning\n     * @return total # of commands to make\n     */\n    public int size() {\n        Assertions clause = getFinalReference();\n        return clause.getFinalSize();\n    }\n\n\n    /**\n     * what is the final size of this object\n     * @return\n     */\n    private int getFinalSize() {\n        return assertionList.size() + (enableSystemAssertions != null ? 1 : 0);\n    }\n\n    /**\n     * add the assertions to a list in a format suitable\n     * for adding to a command line\n     * @param commandList the command line to format\n     */\n    public void applyAssertions(List commandList) {\n        getProject().log(\"Applying assertions\", Project.MSG_DEBUG);\n        Assertions clause = getFinalReference();\n        if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {\n            getProject().log(\"Enabling system assertions\", Project.MSG_DEBUG);\n            commandList.add(\"-enablesystemassertions\");\n        } else if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {\n            getProject().log(\"disabling system assertions\", Project.MSG_DEBUG);\n            commandList.add(\"-disablesystemassertions\");\n        }\n\n        Iterator it = clause.assertionList.iterator();\n        while (it.hasNext()) {\n            BaseAssertion assertion = (BaseAssertion) it.next();\n            String arg = assertion.toCommand();\n            getProject().log(\"adding assertion \" + arg, Project.MSG_DEBUG);\n            commandList.add(arg);\n        }\n    }\n\n    /**\n     * apply all the assertions to the command.\n     * @param command the command line to format\n     */\n    public void applyAssertions(CommandlineJava command) {\n        Assertions clause = getFinalReference();\n        if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {\n            addVmArgument(command, \"-enablesystemassertions\");\n        } else if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {\n            addVmArgument(command, \"-disablesystemassertions\");\n        }\n\n        Iterator it = clause.assertionList.iterator();\n        while (it.hasNext()) {\n            BaseAssertion assertion = (BaseAssertion) it.next();\n            String arg = assertion.toCommand();\n            addVmArgument(command, arg);\n        }\n    }\n\n    /**\n     * add the assertions to a list in a format suitable\n     * for adding to a command line\n     * @param commandIterator list of commands\n     */\n    public void applyAssertions(final ListIterator commandIterator) {\n        getProject().log(\"Applying assertions\", Project.MSG_DEBUG);\n        Assertions clause = getFinalReference();\n        if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {\n            getProject().log(\"Enabling system assertions\", Project.MSG_DEBUG);\n            commandIterator.add(\"-enablesystemassertions\");\n        } else if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {\n            getProject().log(\"disabling system assertions\", Project.MSG_DEBUG);\n            commandIterator.add(\"-disablesystemassertions\");\n        }\n\n        Iterator it = clause.assertionList.iterator();\n        while (it.hasNext()) {\n            BaseAssertion assertion = (BaseAssertion) it.next();\n            String arg = assertion.toCommand();\n            getProject().log(\"adding assertion \" + arg, Project.MSG_DEBUG);\n            commandIterator.add(arg);\n        }\n    }\n\n    /**\n     * helper method to add a string JVM argument to a command\n     * @param command\n     * @param arg\n     */\n    private static void addVmArgument(CommandlineJava command, String arg) {\n        Commandline.Argument argument;\n        argument = command.createVmArgument();\n        argument.setValue(arg);\n    }\n\n    /**\n     * clone the objects.\n     * This is not a full depth clone; the list of assertions is cloned,\n     * but it does not clone the underlying assertions.\n     * @return a cli\n     * @throws CloneNotSupportedException if the super class does not support cloning\n     */\n    public Object clone() throws CloneNotSupportedException {\n        Assertions that = (Assertions) super.clone();\n        that.assertionList = (ArrayList) assertionList.clone();\n        return that;\n    }\n\n    /**\n     * base class for our assertion elements.\n     */\n\n    public abstract static class BaseAssertion {\n        private String packageName;\n        private String className;\n\n        /**\n         * name a class\n         * @param className a class name\n         */\n        public void setClass(String className) {\n            this.className = className;\n        }\n\n        /**\n         * name a package\n         * @param packageName a package name\n         */\n        public void setPackage(String packageName) {\n            this.packageName = packageName;\n        }\n\n        /**\n         * what is the class name?\n         * @return classname or null\n         * @see #setClass\n         */\n        protected String getClassName() {\n            return className;\n        }\n\n        /**\n         * what is the package name?\n         * @return package name or null\n         * @see #setPackage\n         */\n        protected String getPackageName() {\n            return packageName;\n        }\n\n        /**\n         * get the prefix used to begin the command; -ea or -da.\n         * @return prefix\n         */\n        public abstract String getCommandPrefix();\n\n        /**\n         * create a full command string from this class\n         * @throws BuildException in case of trouble\n         * @return The command string\n         */\n        public String toCommand() {\n            if (getPackageName() != null && getClassName() != null) {\n                throw new BuildException(\"Both package and class have been set\");\n            }\n            StringBuffer command = new StringBuffer(getCommandPrefix());\n            if (getPackageName() != null) {\n                command.append(':');\n                command.append(getPackageName());\n                if (!command.toString().endsWith(\"...\")) {\n                    command.append(\"...\");\n                }\n            } else if (getClassName() != null) {\n                command.append(':');\n                command.append(getClassName());\n            }\n            return command.toString();\n        }\n    }\n\n\n    /**\n     * an enabled assertion enables things\n     */\n    public static class EnabledAssertion extends BaseAssertion {\n        /**\n         * get the prefix used to begin the command; -ea or -da.\n         * @return prefix\n         */\n        public String getCommandPrefix() {\n            return \"-ea\";\n        }\n\n    }\n\n    /**\n     * A disabled assertion disables things\n     */\n    public static class DisabledAssertion extends BaseAssertion {\n        /**\n         * get the prefix used to begin the command; -ea or -da.\n         * @return prefix\n         */\n        public String getCommandPrefix() {\n            return \"-da\";", "functions": [{"function_name": "addEnable", "code": "    public void addEnable(EnabledAssertion assertion) {\n        checkChildrenAllowed();\n        assertionList.add(assertion);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addDisable", "code": "    public void addDisable(DisabledAssertion assertion) {\n        checkChildrenAllowed();\n        assertionList.add(assertion);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setEnableSystemAssertions", "code": "    public void setEnableSystemAssertions(Boolean enableSystemAssertions) {\n        checkAttributesAllowed();\n        this.enableSystemAssertions = enableSystemAssertions;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRefid", "code": "    public void setRefid(Reference ref) {\n        if (assertionList.size() > 0 || enableSystemAssertions != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(ref);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [5, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 5], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getFinalReference", "code": "    private Assertions getFinalReference() {\n        if (getRefid() == null) {\n            return this;\n        } else {\n            Object o = getRefid().getReferencedObject(getProject());\n            if (!(o instanceof Assertions)) {\n                throw new BuildException(\"reference is of wrong type\");\n            }\n            return (Assertions) o;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [4, 9], [4, 10], [5, 11], [10, 12], [11, 13], [12, 14], [13, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 4], [10, 4], [11, 5], [12, 10], [13, 11], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "size", "code": "    public int size() {\n        Assertions clause = getFinalReference();\n        return clause.getFinalSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFinalSize", "code": "    private int getFinalSize() {\n        return assertionList.size() + (enableSystemAssertions != null ? 1 : 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [3, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 3], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "applyAssertions", "code": "    public void applyAssertions(List commandList) {\n        getProject().log(\"Applying assertions\", Project.MSG_DEBUG);\n        Assertions clause = getFinalReference();\n        if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {\n            getProject().log(\"Enabling system assertions\", Project.MSG_DEBUG);\n            commandList.add(\"-enablesystemassertions\");\n        } else if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {\n            getProject().log(\"disabling system assertions\", Project.MSG_DEBUG);\n            commandList.add(\"-disablesystemassertions\");\n        }\n\n        Iterator it = clause.assertionList.iterator();\n        while (it.hasNext()) {\n            BaseAssertion assertion = (BaseAssertion) it.next();\n            String arg = assertion.toCommand();\n            getProject().log(\"adding assertion \" + arg, Project.MSG_DEBUG);\n            commandList.add(arg);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [3, 8], [0, 9], [1, 10], [1, 11], [2, 12], [7, 13], [4, 14], [9, 15], [1, 16], [1, 17], [3, 18], [3, 19], [15, 20], [17, 21], [10, 22], [7, 23], [7, 24], [18, 25], [19, 26], [21, 27], [11, 28], [23, 29], [24, 30], [26, 31], [27, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 3], [9, 0], [10, 1], [11, 1], [12, 2], [13, 7], [14, 4], [15, 9], [16, 1], [17, 1], [18, 3], [19, 3], [20, 15], [21, 17], [22, 10], [23, 7], [24, 7], [25, 18], [26, 19], [27, 21], [28, 11], [29, 23], [30, 24], [31, 26], [32, 27], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "applyAssertions", "code": "    public void applyAssertions(CommandlineJava command) {\n        Assertions clause = getFinalReference();\n        if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {\n            addVmArgument(command, \"-enablesystemassertions\");\n        } else if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {\n            addVmArgument(command, \"-disablesystemassertions\");\n        }\n\n        Iterator it = clause.assertionList.iterator();\n        while (it.hasNext()) {\n            BaseAssertion assertion = (BaseAssertion) it.next();\n            String arg = assertion.toCommand();\n            addVmArgument(command, arg);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [3, 8], [1, 9], [1, 10], [2, 11], [7, 12], [4, 13], [1, 14], [3, 15], [9, 16], [7, 17], [15, 18], [10, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 3], [9, 1], [10, 1], [11, 2], [12, 7], [13, 4], [14, 1], [15, 3], [16, 9], [17, 7], [18, 15], [19, 10], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "applyAssertions", "code": "    public void applyAssertions(final ListIterator commandIterator) {\n        getProject().log(\"Applying assertions\", Project.MSG_DEBUG);\n        Assertions clause = getFinalReference();\n        if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {\n            getProject().log(\"Enabling system assertions\", Project.MSG_DEBUG);\n            commandIterator.add(\"-enablesystemassertions\");\n        } else if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {\n            getProject().log(\"disabling system assertions\", Project.MSG_DEBUG);\n            commandIterator.add(\"-disablesystemassertions\");\n        }\n\n        Iterator it = clause.assertionList.iterator();\n        while (it.hasNext()) {\n            BaseAssertion assertion = (BaseAssertion) it.next();\n            String arg = assertion.toCommand();\n            getProject().log(\"adding assertion \" + arg, Project.MSG_DEBUG);\n            commandIterator.add(arg);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [3, 8], [0, 9], [1, 10], [1, 11], [2, 12], [7, 13], [4, 14], [9, 15], [1, 16], [1, 17], [3, 18], [3, 19], [15, 20], [17, 21], [10, 22], [7, 23], [7, 24], [18, 25], [19, 26], [21, 27], [11, 28], [23, 29], [24, 30], [26, 31], [27, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 3], [9, 0], [10, 1], [11, 1], [12, 2], [13, 7], [14, 4], [15, 9], [16, 1], [17, 1], [18, 3], [19, 3], [20, 15], [21, 17], [22, 10], [23, 7], [24, 7], [25, 18], [26, 19], [27, 21], [28, 11], [29, 23], [30, 24], [31, 26], [32, 27], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "addVmArgument", "code": "    private static void addVmArgument(CommandlineJava command, String arg) {\n        Commandline.Argument argument;\n        argument = command.createVmArgument();\n        argument.setValue(arg);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "clone", "code": "    public Object clone() throws CloneNotSupportedException {\n        Assertions that = (Assertions) super.clone();\n        that.assertionList = (ArrayList) assertionList.clone();\n        return that;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-3261", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jhc/BufferingHttpServiceHandler.java", "language": "java", "name": "org.apache.camel.component.jhc.BufferingHttpServiceHandler", "code": "public class BufferingHttpServiceHandler extends NHttpServiceHandlerBase\n                                         implements NHttpServiceHandler {\n\n    public BufferingHttpServiceHandler(\n            final HttpProcessor httpProcessor,\n            final HttpResponseFactory responseFactory,\n            final ConnectionReuseStrategy connStrategy,\n            final ByteBufferAllocator allocator,\n            final HttpParams params) {\n        super(httpProcessor, responseFactory, connStrategy, allocator, params);\n    }\n\n    public BufferingHttpServiceHandler(\n            final HttpProcessor httpProcessor,\n            final HttpResponseFactory responseFactory,\n            final ConnectionReuseStrategy connStrategy,\n            final HttpParams params) {\n        this(httpProcessor, responseFactory, connStrategy,\n                new HeapByteBufferAllocator(), params);\n    }\n\n    public void connected(final NHttpServerConnection conn) {\n        HttpContext context = conn.getContext();\n\n        ServerConnState connState = new ServerConnState(allocator);\n        context.setAttribute(CONN_STATE, connState);\n\n        if (this.eventListener != null) {\n            this.eventListener.connectionOpen(conn);\n        }\n    }\n\n    public void requestReceived(final NHttpServerConnection conn) {\n        HttpContext context = conn.getContext();\n\n        HttpRequest request = conn.getHttpRequest();\n        request.setParams(this.params);\n\n        ServerConnState connState = (ServerConnState) context.getAttribute(CONN_STATE);\n\n        connState.resetInput();\n        connState.setRequest(request);\n        connState.setInputState(ServerConnState.REQUEST_RECEIVED);\n\n        ProtocolVersion ver = request.getRequestLine().getProtocolVersion();\n        if (!ver.lessEquals(HttpVersion.HTTP_1_1)) {\n            ver = HttpVersion.HTTP_1_1;\n        }\n\n        HttpResponse response;\n\n        try {\n\n            if (request instanceof HttpEntityEnclosingRequest) {\n                if (((HttpEntityEnclosingRequest) request).expectContinue()) {\n                    response = this.responseFactory.newHttpResponse(\n                        ver, HttpStatus.SC_CONTINUE, context);\n                    request.setParams(this.params);\n\n                    if (this.expectationVerifier != null) {\n                        try {\n                            this.expectationVerifier.verify(request, response, context);\n                        } catch (HttpException ex) {\n                            response = this.responseFactory.newHttpResponse(\n                                    HttpVersion.HTTP_1_0,\n                                    HttpStatus.SC_INTERNAL_SERVER_ERROR,\n                                    context);\n                            request.setParams(this.params);\n                            handleException(ex, response);\n                        }\n                    }\n\n                    if (response.getStatusLine().getStatusCode() < 200) {\n                        conn.submitResponse(response);\n                    } else {\n                        conn.resetInput();\n                        connState.resetInput();\n                        sendResponse(conn, response);\n                    }\n                }\n            } else {\n                conn.suspendInput();\n                processRequest(conn, request);\n            }\n\n        } catch (IOException ex) {\n            shutdownConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalIOException(ex, conn);\n            }\n        } catch (HttpException ex) {\n            closeConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalProtocolException(ex, conn);\n            }\n        }\n    }\n\n    public void closed(final NHttpServerConnection conn) {\n        if (this.eventListener != null) {\n            this.eventListener.connectionClosed(conn);\n        }\n    }\n\n    public void exception(final NHttpServerConnection conn, final HttpException httpex) {\n        HttpContext context = conn.getContext();\n        try {\n            HttpResponse response = this.responseFactory.newHttpResponse(\n                HttpVersion.HTTP_1_0, HttpStatus.SC_INTERNAL_SERVER_ERROR, context);\n            response.setParams(this.params);\n            handleException(httpex, response);\n            response.setEntity(null);\n            sendResponse(conn, response);\n\n        } catch (IOException ex) {\n            shutdownConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalIOException(ex, conn);\n            }\n        } catch (HttpException ex) {\n            closeConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalProtocolException(ex, conn);\n            }\n        }\n    }\n\n    public void inputReady(final NHttpServerConnection conn, final ContentDecoder decoder) {\n        HttpContext context = conn.getContext();\n        HttpRequest request = conn.getHttpRequest();\n\n        ServerConnState connState = (ServerConnState) context.getAttribute(CONN_STATE);\n        ContentInputBuffer buffer = connState.getInbuffer();\n\n        connState.setInputState(ServerConnState.REQUEST_BODY_STREAM);\n\n        try {\n            buffer.consumeContent(decoder);\n            if (decoder.isCompleted()) {\n                connState.setInputState(ServerConnState.REQUEST_BODY_DONE);\n\n                HttpEntityEnclosingRequest entityReq = (HttpEntityEnclosingRequest) request;\n                if (entityReq.getEntity() != null) {\n                    entityReq.setEntity(new ContentBufferEntity(\n                            entityReq.getEntity(),\n                            connState.getInbuffer()));\n                }\n                conn.suspendInput();\n                processRequest(conn, request);\n            }\n\n        } catch (IOException ex) {\n            shutdownConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalIOException(ex, conn);\n            }\n        } catch (HttpException ex) {\n            closeConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalProtocolException(ex, conn);\n            }\n        }\n    }\n\n    public void responseReady(final NHttpServerConnection conn) {\n    }\n\n    public void outputReady(final NHttpServerConnection conn, final ContentEncoder encoder) {\n\n        HttpContext context = conn.getContext();\n        HttpResponse response = conn.getHttpResponse();\n\n        ServerConnState connState = (ServerConnState) context.getAttribute(CONN_STATE);\n        ContentOutputBuffer buffer = connState.getOutbuffer();\n\n        connState.setOutputState(ServerConnState.RESPONSE_BODY_STREAM);\n\n        try {\n\n            buffer.produceContent(encoder);\n            if (encoder.isCompleted()) {\n                connState.setOutputState(ServerConnState.RESPONSE_BODY_DONE);\n                connState.resetOutput();\n                if (!this.connStrategy.keepAlive(response, context)) {\n                    conn.close();\n                } else {\n                    conn.requestInput();\n                }\n            }\n\n        } catch (IOException ex) {\n            shutdownConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalIOException(ex, conn);\n            }\n        }\n    }\n\n    protected void handleException(final HttpException ex, final HttpResponse response) {\n        int code = HttpStatus.SC_INTERNAL_SERVER_ERROR;\n        if (ex instanceof MethodNotSupportedException) {\n            code = HttpStatus.SC_NOT_IMPLEMENTED;\n        } else if (ex instanceof UnsupportedHttpVersionException) {\n            code = HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED;\n        } else if (ex instanceof ProtocolException) {\n            code = HttpStatus.SC_BAD_REQUEST;\n        }\n        response.setStatusCode(code);\n\n        byte[] msg = EncodingUtils.getAsciiBytes(ex.getMessage());\n        ByteArrayEntity entity = new ByteArrayEntity(msg);\n        entity.setContentType(\"text/plain; charset=US-ASCII\");\n        response.setEntity(entity);\n    }\n\n    protected void processRequest(\n            final NHttpServerConnection conn,\n            final HttpRequest request) throws IOException, HttpException {\n\n        HttpContext context = conn.getContext();\n        ProtocolVersion ver = request.getRequestLine().getProtocolVersion();\n\n        if (!ver.lessEquals(HttpVersion.HTTP_1_1)) {\n            ver = HttpVersion.HTTP_1_1;\n        }\n\n        HttpResponse response = this.responseFactory.newHttpResponse(\n            ver, HttpStatus.SC_OK, conn.getContext());\n        request.setParams(this.params);\n\n        context.setAttribute(ExecutionContext.HTTP_REQUEST, request);\n        context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);\n        context.setAttribute(ExecutionContext.HTTP_RESPONSE, response);\n\n        try {\n\n            this.httpProcessor.process(request, context);\n\n            HttpRequestHandler handler = null;\n            if (this.handlerResolver != null) {\n                String requestURI = request.getRequestLine().getUri();\n                handler = this.handlerResolver.lookup(requestURI);\n            }\n            if (handler != null) {\n                handler.handle(request, response, context);\n            } else {\n                response.setStatusCode(HttpStatus.SC_NOT_IMPLEMENTED);\n            }\n\n        } catch (HttpException ex) {\n            response = this.responseFactory.newHttpResponse(HttpVersion.HTTP_1_0,\n                HttpStatus.SC_INTERNAL_SERVER_ERROR, context);\n            request.setParams(this.params);\n            handleException(ex, response);\n        }\n\n        sendResponse(conn, response);\n    }\n\n    protected void sendResponse(\n            final NHttpServerConnection conn,\n            final HttpResponse response) throws IOException, HttpException {\n\n        HttpContext context = conn.getContext();\n\n        ServerConnState connState = (ServerConnState) context.getAttribute(CONN_STATE);\n        ContentOutputBuffer buffer = connState.getOutbuffer();\n\n        this.httpProcessor.process(response, context);\n\n        if (!canResponseHaveBody(connState.getRequest(), response)) {\n            response.setEntity(null);\n        }\n\n        conn.submitResponse(response);\n\n        connState.setOutputState(ServerConnState.RESPONSE_SENT);\n\n        HttpEntity entity = response.getEntity();\n        if (entity != null) {\n            OutputStream outstream = new ContentOutputStream(buffer);\n            entity.writeTo(outstream);\n            outstream.flush();\n            outstream.close();\n        } else {\n            connState.resetOutput();\n            if (!this.connStrategy.keepAlive(response, context)) {\n                conn.close();\n            } else {\n                conn.requestInput();\n            }\n        }\n    }\n\n    static class ServerConnState {\n\n        public static final int READY                      = 0;\n        public static final int REQUEST_RECEIVED           = 1;\n        public static final int REQUEST_BODY_STREAM        = 2;\n        public static final int REQUEST_BODY_DONE          = 4;\n        public static final int RESPONSE_SENT              = 8;\n        public static final int RESPONSE_BODY_STREAM       = 16;\n        public static final int RESPONSE_BODY_DONE         = 32;\n\n        private SimpleInputBuffer inbuffer;\n        private ContentOutputBuffer outbuffer;\n\n        private int inputState;\n        private int outputState;\n\n        private HttpRequest request;\n        private final ByteBufferAllocator allocator;\n\n        public ServerConnState(final ByteBufferAllocator allocator) {\n            super();\n            this.inputState = READY;\n            this.outputState = READY;\n            this.allocator = allocator;\n        }\n\n        public ContentInputBuffer getInbuffer() {\n            if (this.inbuffer == null) {\n                this.inbuffer = new SimpleInputBuffer(2048, allocator);\n            }\n            return this.inbuffer;\n        }\n\n        public ContentOutputBuffer getOutbuffer() {\n            if (this.outbuffer == null) {\n                this.outbuffer = new SimpleOutputBuffer(2048, allocator);\n            }\n            return this.outbuffer;\n        }\n\n        public int getInputState() {\n            return this.inputState;\n        }\n\n        public void setInputState(int inputState) {\n            this.inputState = inputState;\n        }\n\n        public int getOutputState() {\n            return this.outputState;\n        }\n\n        public void setOutputState(int outputState) {\n            this.outputState = outputState;\n        }\n\n        public HttpRequest getRequest() {\n            return this.request;\n        }\n\n        public void setRequest(final HttpRequest request) {\n            this.request = request;\n        }\n\n        public void resetInput() {\n            this.inbuffer = null;\n            this.request = null;\n            this.inputState = READY;\n        }\n\n        public void resetOutput() {\n            this.outbuffer = null;\n            this.outputState = READY;", "functions": [{"function_name": "connected", "code": "    public void connected(final NHttpServerConnection conn) {\n        HttpContext context = conn.getContext();\n\n        ServerConnState connState = new ServerConnState(allocator);\n        context.setAttribute(CONN_STATE, connState);\n\n        if (this.eventListener != null) {\n            this.eventListener.connectionOpen(conn);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [2, 8], [3, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [8, 2], [9, 3], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "requestReceived", "code": "    public void requestReceived(final NHttpServerConnection conn) {\n        HttpContext context = conn.getContext();\n\n        HttpRequest request = conn.getHttpRequest();\n        request.setParams(this.params);\n\n        ServerConnState connState = (ServerConnState) context.getAttribute(CONN_STATE);\n\n        connState.resetInput();\n        connState.setRequest(request);\n        connState.setInputState(ServerConnState.REQUEST_RECEIVED);\n\n        ProtocolVersion ver = request.getRequestLine().getProtocolVersion();\n        if (!ver.lessEquals(HttpVersion.HTTP_1_1)) {\n            ver = HttpVersion.HTTP_1_1;\n        }\n\n        HttpResponse response;\n\n        try {\n\n            if (request instanceof HttpEntityEnclosingRequest) {\n                if (((HttpEntityEnclosingRequest) request).expectContinue()) {\n                    response = this.responseFactory.newHttpResponse(\n                        ver, HttpStatus.SC_CONTINUE, context);\n                    request.setParams(this.params);\n\n                    if (this.expectationVerifier != null) {\n                        try {\n                            this.expectationVerifier.verify(request, response, context);\n                        } catch (HttpException ex) {\n                            response = this.responseFactory.newHttpResponse(\n                                    HttpVersion.HTTP_1_0,\n                                    HttpStatus.SC_INTERNAL_SERVER_ERROR,\n                                    context);\n                            request.setParams(this.params);\n                            handleException(ex, response);\n                        }\n                    }\n\n                    if (response.getStatusLine().getStatusCode() < 200) {\n                        conn.submitResponse(response);\n                    } else {\n                        conn.resetInput();\n                        connState.resetInput();\n                        sendResponse(conn, response);\n                    }\n                }\n            } else {\n                conn.suspendInput();\n                processRequest(conn, request);\n            }\n\n        } catch (IOException ex) {\n            shutdownConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalIOException(ex, conn);\n            }\n        } catch (HttpException ex) {\n            closeConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalProtocolException(ex, conn);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "CATCH", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [3, 12], [0, 13], [0, 14], [0, 15], [0, 16], [9, 17], [10, 18], [11, 19], [4, 20], [6, 21], [7, 22], [17, 23], [9, 24], [18, 25], [10, 26], [11, 27], [3, 28], [20, 29], [5, 30], [23, 31], [25, 32], [11, 33], [11, 34], [27, 35], [27, 36], [17, 37], [18, 38], [35, 39], [36, 40], [27, 41], [27, 42], [39, 43], [39, 44], [36, 45], [40, 46], [35, 47], [35, 48], [35, 49], [35, 50], [44, 51], [45, 52], [42, 53], [52, 54], [52, 55], [52, 56], [45, 57], [56, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 3], [13, 0], [14, 0], [15, 0], [16, 0], [17, 9], [18, 10], [19, 11], [20, 4], [21, 6], [22, 7], [23, 17], [24, 9], [25, 18], [26, 10], [27, 11], [28, 3], [29, 20], [30, 5], [31, 23], [32, 25], [33, 11], [34, 11], [35, 27], [36, 27], [37, 17], [38, 18], [39, 35], [40, 36], [41, 27], [42, 27], [43, 39], [44, 39], [45, 36], [46, 40], [47, 35], [48, 35], [49, 35], [50, 35], [51, 44], [52, 45], [53, 42], [54, 52], [55, 52], [56, 52], [57, 45], [58, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "closed", "code": "    public void closed(final NHttpServerConnection conn) {\n        if (this.eventListener != null) {\n            this.eventListener.connectionClosed(conn);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "exception", "code": "    public void exception(final NHttpServerConnection conn, final HttpException httpex) {\n        HttpContext context = conn.getContext();\n        try {\n            HttpResponse response = this.responseFactory.newHttpResponse(\n                HttpVersion.HTTP_1_0, HttpStatus.SC_INTERNAL_SERVER_ERROR, context);\n            response.setParams(this.params);\n            handleException(httpex, response);\n            response.setEntity(null);\n            sendResponse(conn, response);\n\n        } catch (IOException ex) {\n            shutdownConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalIOException(ex, conn);\n            }\n        } catch (HttpException ex) {\n            closeConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalProtocolException(ex, conn);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "CATCH", "CATCH", "VAR_DECL", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [8, 15], [5, 16], [9, 17], [6, 18], [11, 19], [15, 20], [17, 21], [7, 22], [8, 23], [9, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 8], [16, 5], [17, 9], [18, 6], [19, 11], [20, 15], [21, 17], [22, 7], [23, 8], [24, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "inputReady", "code": "    public void inputReady(final NHttpServerConnection conn, final ContentDecoder decoder) {\n        HttpContext context = conn.getContext();\n        HttpRequest request = conn.getHttpRequest();\n\n        ServerConnState connState = (ServerConnState) context.getAttribute(CONN_STATE);\n        ContentInputBuffer buffer = connState.getInbuffer();\n\n        connState.setInputState(ServerConnState.REQUEST_BODY_STREAM);\n\n        try {\n            buffer.consumeContent(decoder);\n            if (decoder.isCompleted()) {\n                connState.setInputState(ServerConnState.REQUEST_BODY_DONE);\n\n                HttpEntityEnclosingRequest entityReq = (HttpEntityEnclosingRequest) request;\n                if (entityReq.getEntity() != null) {\n                    entityReq.setEntity(new ContentBufferEntity(\n                            entityReq.getEntity(),\n                            connState.getInbuffer()));\n                }\n                conn.suspendInput();\n                processRequest(conn, request);\n            }\n\n        } catch (IOException ex) {\n            shutdownConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalIOException(ex, conn);\n            }\n        } catch (HttpException ex) {\n            closeConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalProtocolException(ex, conn);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "CALL", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [0, 11], [8, 12], [9, 13], [10, 14], [1, 15], [2, 16], [4, 17], [5, 18], [12, 19], [8, 20], [13, 21], [9, 22], [10, 23], [10, 24], [3, 25], [19, 26], [21, 27], [10, 28], [10, 29], [23, 30], [10, 31], [30, 32], [30, 33], [12, 34], [13, 35], [23, 36], [36, 37], [37, 38], [37, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 0], [12, 8], [13, 9], [14, 10], [15, 1], [16, 2], [17, 4], [18, 5], [19, 12], [20, 8], [21, 13], [22, 9], [23, 10], [24, 10], [25, 3], [26, 19], [27, 21], [28, 10], [29, 10], [30, 23], [31, 10], [32, 30], [33, 30], [34, 12], [35, 13], [36, 23], [37, 36], [38, 37], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "responseReady", "code": "    public void responseReady(final NHttpServerConnection conn) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "outputReady", "code": "    public void outputReady(final NHttpServerConnection conn, final ContentEncoder encoder) {\n\n        HttpContext context = conn.getContext();\n        HttpResponse response = conn.getHttpResponse();\n\n        ServerConnState connState = (ServerConnState) context.getAttribute(CONN_STATE);\n        ContentOutputBuffer buffer = connState.getOutbuffer();\n\n        connState.setOutputState(ServerConnState.RESPONSE_BODY_STREAM);\n\n        try {\n\n            buffer.produceContent(encoder);\n            if (encoder.isCompleted()) {\n                connState.setOutputState(ServerConnState.RESPONSE_BODY_DONE);\n                connState.resetOutput();\n                if (!this.connStrategy.keepAlive(response, context)) {\n                    conn.close();\n                } else {\n                    conn.requestInput();\n                }\n            }\n\n        } catch (IOException ex) {\n            shutdownConnection(conn, ex);\n            if (this.eventListener != null) {\n                this.eventListener.fatalIOException(ex, conn);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "IF", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [0, 10], [8, 11], [9, 12], [1, 13], [2, 14], [4, 15], [5, 16], [11, 17], [8, 18], [9, 19], [3, 20], [17, 21], [9, 22], [9, 23], [19, 24], [11, 25], [19, 26], [19, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 0], [11, 8], [12, 9], [13, 1], [14, 2], [15, 4], [16, 5], [17, 11], [18, 8], [19, 9], [20, 3], [21, 17], [22, 9], [23, 9], [24, 19], [25, 11], [26, 19], [27, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "handleException", "code": "    protected void handleException(final HttpException ex, final HttpResponse response) {\n        int code = HttpStatus.SC_INTERNAL_SERVER_ERROR;\n        if (ex instanceof MethodNotSupportedException) {\n            code = HttpStatus.SC_NOT_IMPLEMENTED;\n        } else if (ex instanceof UnsupportedHttpVersionException) {\n            code = HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED;\n        } else if (ex instanceof ProtocolException) {\n            code = HttpStatus.SC_BAD_REQUEST;\n        }\n        response.setStatusCode(code);\n\n        byte[] msg = EncodingUtils.getAsciiBytes(ex.getMessage());\n        ByteArrayEntity entity = new ByteArrayEntity(msg);\n        entity.setContentType(\"text/plain; charset=US-ASCII\");\n        response.setEntity(entity);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [3, 11], [8, 12], [1, 13], [2, 14], [10, 15], [10, 16], [14, 17], [15, 18], [3, 19], [10, 20], [15, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 3], [12, 8], [13, 1], [14, 2], [15, 10], [16, 10], [17, 14], [18, 15], [19, 3], [20, 10], [21, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "processRequest", "code": "    protected void processRequest(\n            final NHttpServerConnection conn,\n            final HttpRequest request) throws IOException, HttpException {\n\n        HttpContext context = conn.getContext();\n        ProtocolVersion ver = request.getRequestLine().getProtocolVersion();\n\n        if (!ver.lessEquals(HttpVersion.HTTP_1_1)) {\n            ver = HttpVersion.HTTP_1_1;\n        }\n\n        HttpResponse response = this.responseFactory.newHttpResponse(\n            ver, HttpStatus.SC_OK, conn.getContext());\n        request.setParams(this.params);\n\n        context.setAttribute(ExecutionContext.HTTP_REQUEST, request);\n        context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);\n        context.setAttribute(ExecutionContext.HTTP_RESPONSE, response);\n\n        try {\n\n            this.httpProcessor.process(request, context);\n\n            HttpRequestHandler handler = null;\n            if (this.handlerResolver != null) {\n                String requestURI = request.getRequestLine().getUri();\n                handler = this.handlerResolver.lookup(requestURI);\n            }\n            if (handler != null) {\n                handler.handle(request, response, context);\n            } else {\n                response.setStatusCode(HttpStatus.SC_NOT_IMPLEMENTED);\n            }\n\n        } catch (HttpException ex) {\n            response = this.responseFactory.newHttpResponse(HttpVersion.HTTP_1_0,\n                HttpStatus.SC_INTERNAL_SERVER_ERROR, context);\n            request.setParams(this.params);\n            handleException(ex, response);\n        }\n\n        sendResponse(conn, response);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CATCH", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [1, 12], [0, 13], [0, 14], [0, 15], [0, 16], [3, 17], [10, 18], [11, 19], [4, 20], [5, 21], [9, 22], [9, 23], [9, 24], [18, 25], [11, 26], [19, 27], [12, 28], [1, 29], [2, 30], [3, 31], [20, 32], [10, 33], [10, 34], [11, 35], [30, 36], [24, 37], [26, 38], [35, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 1], [13, 0], [14, 0], [15, 0], [16, 0], [17, 3], [18, 10], [19, 11], [20, 4], [21, 5], [22, 9], [23, 9], [24, 9], [25, 18], [26, 11], [27, 19], [28, 12], [29, 1], [30, 2], [31, 3], [32, 20], [33, 10], [34, 10], [35, 11], [36, 30], [37, 24], [38, 26], [39, 35], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "sendResponse", "code": "    protected void sendResponse(\n            final NHttpServerConnection conn,\n            final HttpResponse response) throws IOException, HttpException {\n\n        HttpContext context = conn.getContext();\n\n        ServerConnState connState = (ServerConnState) context.getAttribute(CONN_STATE);\n        ContentOutputBuffer buffer = connState.getOutbuffer();\n\n        this.httpProcessor.process(response, context);\n\n        if (!canResponseHaveBody(connState.getRequest(), response)) {\n            response.setEntity(null);\n        }\n\n        conn.submitResponse(response);\n\n        connState.setOutputState(ServerConnState.RESPONSE_SENT);\n\n        HttpEntity entity = response.getEntity();\n        if (entity != null) {\n            OutputStream outstream = new ContentOutputStream(buffer);\n            entity.writeTo(outstream);\n            outstream.flush();\n            outstream.close();\n        } else {\n            connState.resetOutput();\n            if (!this.connStrategy.keepAlive(response, context)) {\n                conn.close();\n            } else {\n                conn.requestInput();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [3, 12], [1, 13], [1, 14], [9, 15], [2, 16], [12, 17], [0, 18], [4, 19], [6, 20], [1, 21], [1, 22], [1, 23], [1, 24], [3, 25], [5, 26], [13, 27], [14, 28], [25, 29], [13, 30], [13, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 3], [13, 1], [14, 1], [15, 9], [16, 2], [17, 12], [18, 0], [19, 4], [20, 6], [21, 1], [22, 1], [23, 1], [24, 1], [25, 3], [26, 5], [27, 13], [28, 14], [29, 25], [30, 13], [31, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "BufferingHttpServiceHandler", "code": "    public BufferingHttpServiceHandler(\n            final HttpProcessor httpProcessor,\n            final HttpResponseFactory responseFactory,\n            final ConnectionReuseStrategy connStrategy,\n            final ByteBufferAllocator allocator,\n            final HttpParams params) {\n        super(httpProcessor, responseFactory, connStrategy, allocator, params);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "BufferingHttpServiceHandler", "code": "    public BufferingHttpServiceHandler(\n            final HttpProcessor httpProcessor,\n            final HttpResponseFactory responseFactory,\n            final ConnectionReuseStrategy connStrategy,\n            final HttpParams params) {\n        this(httpProcessor, responseFactory, connStrategy,\n                new HeapByteBufferAllocator(), params);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "ant-1.7-1140", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/filters/ConcatFilter.java", "language": "java", "name": "org.apache.tools.ant.filters.ConcatFilter", "code": "public final class ConcatFilter extends BaseParamFilterReader\n    implements ChainableReader {\n\n    /** File to add before the content. */\n    private File prepend;\n\n    /** File to add after the content. */\n    private File append;\n\n    /** Reader for prepend-file. */\n    private Reader prependReader = null;\n\n    /** Reader for append-file. */\n    private Reader appendReader = null;\n\n    /**\n     * Constructor for \"dummy\" instances.\n     *\n     * @see BaseFilterReader#BaseFilterReader()\n     */\n    public ConcatFilter() {\n        super();\n    }\n\n    /**\n     * Creates a new filtered reader.\n     *\n     * @param in A Reader object providing the underlying stream.\n     *           Must not be <code>null</code>.\n     */\n    public ConcatFilter(final Reader in) {\n        super(in);\n    }\n\n    /**\n     * Returns the next character in the filtered stream. If the desired\n     * number of lines have already been read, the resulting stream is\n     * effectively at an end. Otherwise, the next character from the\n     * underlying stream is read and returned.\n     *\n     * @return the next character in the resulting stream, or -1\n     * if the end of the resulting stream has been reached\n     *\n     * @exception IOException if the underlying stream throws an IOException\n     * during reading\n     */\n    public int read() throws IOException {\n        if (!getInitialized()) {\n            initialize();\n            setInitialized(true);\n        }\n\n        int ch = -1;\n\n        if (prependReader != null) {\n            ch = prependReader.read();\n            if (ch == -1) {\n                prependReader.close();\n                prependReader = null;\n            }\n        }\n        if (ch == -1) {\n            ch = super.read();\n        }\n        if (ch == -1) {\n            if (appendReader != null) {\n                ch = appendReader.read();\n                if (ch == -1) {\n                    appendReader.close();\n                    appendReader = null;\n                }\n            }\n        }\n\n        return ch;\n    }\n\n    /**\n     * Sets <i>prepend</i> attribute.\n     * @param prepend new value\n     */\n    public void setPrepend(final File prepend) {\n        this.prepend = prepend;\n    }\n\n    /**\n     * Returns <i>prepend</i> attribute.\n     * @return prepend attribute\n     */\n    public File getPrepend() {\n        return prepend;\n    }\n\n    /**\n     * Sets <i>append</i> attribute.\n     * @param append new value\n     */\n    public void setAppend(final File append) {\n        this.append = append;\n    }\n\n    /**\n     * Returns <i>append</i> attribute.\n     * @return append attribute\n     */\n    public File getAppend() {\n        return append;\n    }\n\n    /**\n     * Creates a new ConcatReader using the passed in\n     * Reader for instantiation.\n     *\n     * @param rdr A Reader object providing the underlying stream.\n     *            Must not be <code>null</code>.\n     *\n     * @return a new filter based on this configuration, but filtering\n     *         the specified reader\n     */\n    public Reader chain(final Reader rdr) {\n        ConcatFilter newFilter = new ConcatFilter(rdr);\n        newFilter.setPrepend(getPrepend());\n        newFilter.setAppend(getAppend());\n        return newFilter;\n    }\n\n    /**\n     * Scans the parameters list for the \"lines\" parameter and uses\n     * it to set the number of lines to be returned in the filtered stream.\n     * also scan for skip parameter.\n     */\n    private void initialize() throws IOException {\n        Parameter[] params = getParameters();\n        if (params != null) {\n            for (int i = 0; i < params.length; i++) {\n                if (\"prepend\".equals(params[i].getName())) {\n                    setPrepend(new File(params[i].getValue()));\n                    continue;\n                }\n                if (\"append\".equals(params[i].getName())) {\n                    setAppend(new File(params[i].getValue()));\n                    continue;\n                }\n            }\n        }\n        if (prepend != null) {\n            if (!prepend.isAbsolute()) {\n                prepend = new File(getProject().getBaseDir(), prepend.getPath());\n            }\n            prependReader = new BufferedReader(new FileReader(prepend));\n        }\n        if (append != null) {\n            if (!append.isAbsolute()) {\n                append = new File(getProject().getBaseDir(), append.getPath());\n            }\n            appendReader = new BufferedReader(new FileReader(append));", "functions": [{"function_name": "read", "code": "    public int read() throws IOException {\n        if (!getInitialized()) {\n            initialize();\n            setInitialized(true);\n        }\n\n        int ch = -1;\n\n        if (prependReader != null) {\n            ch = prependReader.read();\n            if (ch == -1) {\n                prependReader.close();\n                prependReader = null;\n            }\n        }\n        if (ch == -1) {\n            ch = super.read();\n        }\n        if (ch == -1) {\n            if (appendReader != null) {\n                ch = appendReader.read();\n                if (ch == -1) {\n                    appendReader.close();\n                    appendReader = null;\n                }\n            }\n        }\n\n        return ch;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [6, 10], [2, 11], [7, 12], [8, 13], [4, 14], [9, 15], [5, 16], [11, 17], [3, 18], [14, 19], [4, 20], [6, 21], [6, 22], [11, 23], [17, 24], [19, 25], [20, 26], [21, 27], [23, 28], [11, 29], [14, 30], [14, 31], [28, 32], [29, 33], [30, 34], [23, 35], [23, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 6], [11, 2], [12, 7], [13, 8], [14, 4], [15, 9], [16, 5], [17, 11], [18, 3], [19, 14], [20, 4], [21, 6], [22, 6], [23, 11], [24, 17], [25, 19], [26, 20], [27, 21], [28, 23], [29, 11], [30, 14], [31, 14], [32, 28], [33, 29], [34, 30], [35, 23], [36, 23], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "setPrepend", "code": "    public void setPrepend(final File prepend) {\n        this.prepend = prepend;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPrepend", "code": "    public File getPrepend() {\n        return prepend;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAppend", "code": "    public void setAppend(final File append) {\n        this.append = append;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAppend", "code": "    public File getAppend() {\n        return append;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "chain", "code": "    public Reader chain(final Reader rdr) {\n        ConcatFilter newFilter = new ConcatFilter(rdr);\n        newFilter.setPrepend(getPrepend());\n        newFilter.setAppend(getAppend());\n        return newFilter;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "initialize", "code": "    private void initialize() throws IOException {\n        Parameter[] params = getParameters();\n        if (params != null) {\n            for (int i = 0; i < params.length; i++) {\n                if (\"prepend\".equals(params[i].getName())) {\n                    setPrepend(new File(params[i].getValue()));\n                    continue;\n                }\n                if (\"append\".equals(params[i].getName())) {\n                    setAppend(new File(params[i].getValue()));\n                    continue;\n                }\n            }\n        }\n        if (prepend != null) {\n            if (!prepend.isAbsolute()) {\n                prepend = new File(getProject().getBaseDir(), prepend.getPath());\n            }\n            prependReader = new BufferedReader(new FileReader(prepend));\n        }\n        if (append != null) {\n            if (!append.isAbsolute()) {\n                append = new File(getProject().getBaseDir(), append.getPath());\n            }\n            appendReader = new BufferedReader(new FileReader(append));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 8], [5, 9], [2, 10], [6, 11], [3, 12], [7, 13], [4, 14], [1, 15], [8, 16], [2, 17], [10, 18], [12, 19], [15, 20], [17, 21], [12, 22], [12, 23], [20, 24], [8, 25], [21, 26], [10, 27], [22, 28], [23, 29], [12, 30], [25, 31], [27, 32], [22, 33], [28, 34], [23, 35], [29, 36], [31, 37], [31, 38], [32, 39], [32, 40], [22, 41], [23, 42], [38, 43], [40, 44], [41, 45], [34, 46], [42, 47], [36, 48], [45, 49], [47, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 1], [9, 5], [10, 2], [11, 6], [12, 3], [13, 7], [14, 4], [15, 1], [16, 8], [17, 2], [18, 10], [19, 12], [20, 15], [21, 17], [22, 12], [23, 12], [24, 20], [25, 8], [26, 21], [27, 10], [28, 22], [29, 23], [30, 12], [31, 25], [32, 27], [33, 22], [34, 28], [35, 23], [36, 29], [37, 31], [38, 31], [39, 32], [40, 32], [41, 22], [42, 23], [43, 38], [44, 40], [45, 41], [46, 34], [47, 42], [48, 36], [49, 45], [50, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "ConcatFilter", "code": "    public ConcatFilter() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ConcatFilter", "code": "    public ConcatFilter(final Reader in) {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.5-7079", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/Fallback.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Fallback", "code": "final class Fallback extends Instruction {\n\n    private boolean _active = false;\n\n    /**\n     * This element never produces any data on the stack\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_active) {\n\t    return(typeCheckContents(stable));\n\t}\n\telse {\n\t    return Type.Void;\n\t}\n    }\n\n    /**\n     * Activate this fallback element\n     */\n    public void activate() {\n\t_active = true;\n    }\n\n    public String toString() {\n\treturn(\"fallback\");\n    }\n\n    /**\n     * Parse contents only if this fallback element is put in place of\n     * some unsupported element or non-XSLTC extension element\n     */\n    public void parseContents(Parser parser) {\n\tif (_active) parseChildren(parser);\n    }\n\n    /**\n     * Translate contents only if this fallback element is put in place of\n     * some unsupported element or non-XSLTC extension element\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_active) translateContents(classGen, methodGen);", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_active) {\n\t    return(typeCheckContents(stable));\n\t}\n\telse {\n\t    return Type.Void;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "activate", "code": "    public void activate() {\n\t_active = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn(\"fallback\");", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tif (_active) parseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_active) translateContents(classGen, methodGen);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.7-7978", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/Variable.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Variable", "code": "final class Variable extends VariableBase {\n\n    public int getIndex() {\n\treturn (_local != null) ? _local.getIndex() : -1;\n    }\n\n    /**\n     * Parse the contents of the variable\n     */\n    public void parseContents(Parser parser) {\n\tsuper.parseContents(parser);\n\n\tSyntaxTreeNode parent = getParent();\n\tif (parent instanceof Stylesheet) {\n\t    _isLocal = false;\n\t    Variable var = parser.getSymbolTable().lookupVariable(_name);\n\t    if (var != null) {\n\t\tfinal int us = this.getImportPrecedence();\n\t\tfinal int them = var.getImportPrecedence();\n\t\tif (us == them) {\n\t\t    final String name = _name.toString();\n\t\t    reportError(this, parser, ErrorMsg.VARIABLE_REDEF_ERR,name);\n\t\t}\n\t\telse if (them > us) {\n\t\t    _ignore = true;\n\t\t    return;\n\t\t}\n\t\telse {\n\t\t    var.disable();\n\t\t}\n\t    }\n\t    ((Stylesheet)parent).addVariable(this);\n\t    parser.getSymbolTable().addVariable(this);\n\t}\n\telse {\n\t    _isLocal = true;\n\t}\n    }\n\n    /**\n     * Runs a type check on either the variable element body or the\n     * expression in the 'select' attribute\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\n\tif (_select != null) {\n\t    _type = _select.typeCheck(stable);\n\t}\n\telse if (hasContents()) {\n\t    typeCheckContents(stable);\n\t    _type = Type.ResultTree;\n\t}\n\telse {\n\t    _type = Type.Reference;\n\t}\n\treturn Type.Void;\n    }\n\n    /**\n     * This method is part of a little trick that is needed to use local\n     * variables inside nested for-each loops. See the initializeVariables()\n     * method in the ForEach class for an explanation\n     */\n    public void initialize(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (isLocal() && !_refs.isEmpty()) {\n\t    if (_local == null) {\n\t\t_local = methodGen.addLocalVariable2(getEscapedName(),\n\t\t\t\t\t\t     _type.toJCType(),\n\t\t\t\t\t\t     il.getEnd());\n\t    }\n\t    if ((_type instanceof IntType) ||\n\t\t(_type instanceof NodeType) ||\n\t\t(_type instanceof BooleanType)){}\n\t    else if (_type instanceof RealType){}\n\t    else\n\t    il.append(_type.STORE(_local.getIndex()));\n\t}\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n        if (_refs.isEmpty()) {\n            _ignore = true;\n        }\n\n\tif (_ignore) return;\n\t_ignore = true;\n\n\tfinal String name = getEscapedName();\n\n\tif (isLocal()) {\n\t    translateValue(classGen, methodGen);\n\n\t    if (_local == null) {\n                mapRegister(methodGen);\n            }\n\t    il.append(_type.STORE(_local.getIndex()));\n\t}\n\telse {\n\t    String signature = _type.toSignature();\n\n\t    if (classGen.containsField(name) == null) {\n\t\tclassGen.addField(new Field(ACC_PUBLIC, \n\t\t\t\t\t    cpg.addUtf8(name),\n\t\t\t\t\t    cpg.addUtf8(signature),\n\t\t\t\t\t    null, cpg.getConstantPool()));\n\n\t\til.append(classGen.loadTranslet());\n\t\ttranslateValue(classGen, methodGen);\n\t\til.append(new PUTFIELD(cpg.addFieldref(classGen.getClassName(),\n\t\t\t\t\t\t       name, signature)));", "functions": [{"function_name": "getIndex", "code": "    public int getIndex() {\n\treturn (_local != null) ? _local.getIndex() : -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tsuper.parseContents(parser);\n\n\tSyntaxTreeNode parent = getParent();\n\tif (parent instanceof Stylesheet) {\n\t    _isLocal = false;\n\t    Variable var = parser.getSymbolTable().lookupVariable(_name);\n\t    if (var != null) {\n\t\tfinal int us = this.getImportPrecedence();\n\t\tfinal int them = var.getImportPrecedence();\n\t\tif (us == them) {\n\t\t    final String name = _name.toString();\n\t\t    reportError(this, parser, ErrorMsg.VARIABLE_REDEF_ERR,name);\n\t\t}\n\t\telse if (them > us) {\n\t\t    _ignore = true;\n\t\t    return;\n\t\t}\n\t\telse {\n\t\t    var.disable();\n\t\t}\n\t    }\n\t    ((Stylesheet)parent).addVariable(this);\n\t    parser.getSymbolTable().addVariable(this);\n\t}\n\telse {\n\t    _isLocal = true;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "VAR_DECL", "CALL", "RETURN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [1, 8], [1, 9], [5, 10], [1, 11], [8, 12], [9, 13], [5, 14], [5, 15], [5, 16], [10, 17], [6, 18], [11, 19], [14, 20], [14, 21], [18, 22], [20, 23], [14, 24], [15, 25], [20, 26], [14, 27], [16, 28], [20, 29], [20, 30], [24, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 1], [9, 1], [10, 5], [11, 1], [12, 8], [13, 9], [14, 5], [15, 5], [16, 5], [17, 10], [18, 6], [19, 11], [20, 14], [21, 14], [22, 18], [23, 20], [24, 14], [25, 15], [26, 20], [27, 14], [28, 16], [29, 20], [30, 20], [31, 24], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\n\tif (_select != null) {\n\t    _type = _select.typeCheck(stable);\n\t}\n\telse if (hasContents()) {\n\t    typeCheckContents(stable);\n\t    _type = Type.ResultTree;\n\t}\n\telse {\n\t    _type = Type.Reference;\n\t}\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [2, 8], [4, 9], [4, 10], [4, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 2], [9, 4], [10, 4], [11, 4], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "initialize", "code": "    public void initialize(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (isLocal() && !_refs.isEmpty()) {\n\t    if (_local == null) {\n\t\t_local = methodGen.addLocalVariable2(getEscapedName(),\n\t\t\t\t\t\t     _type.toJCType(),\n\t\t\t\t\t\t     il.getEnd());\n\t    }\n\t    if ((_type instanceof IntType) ||\n\t\t(_type instanceof NodeType) ||\n\t\t(_type instanceof BooleanType)){}\n\t    else if (_type instanceof RealType){}\n\t    else\n\t    il.append(_type.STORE(_local.getIndex()));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [6, 10], [2, 11], [3, 12], [7, 13], [7, 14], [8, 15], [13, 16], [14, 17], [14, 18], [15, 19], [13, 20], [18, 21], [18, 22], [8, 23], [20, 24], [23, 25], [24, 26], [25, 27], [25, 28], [25, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 6], [11, 2], [12, 3], [13, 7], [14, 7], [15, 8], [16, 13], [17, 14], [18, 14], [19, 15], [20, 13], [21, 18], [22, 18], [23, 8], [24, 20], [25, 23], [26, 24], [27, 25], [28, 25], [29, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n        if (_refs.isEmpty()) {\n            _ignore = true;\n        }\n\n\tif (_ignore) return;\n\t_ignore = true;\n\n\tfinal String name = getEscapedName();\n\n\tif (isLocal()) {\n\t    translateValue(classGen, methodGen);\n\n\t    if (_local == null) {\n                mapRegister(methodGen);\n            }\n\t    il.append(_type.STORE(_local.getIndex()));\n\t}\n\telse {\n\t    String signature = _type.toSignature();\n\n\t    if (classGen.containsField(name) == null) {\n\t\tclassGen.addField(new Field(ACC_PUBLIC, \n\t\t\t\t\t    cpg.addUtf8(name),\n\t\t\t\t\t    cpg.addUtf8(signature),\n\t\t\t\t\t    null, cpg.getConstantPool()));\n\n\t\til.append(classGen.loadTranslet());\n\t\ttranslateValue(classGen, methodGen);\n\t\til.append(new PUTFIELD(cpg.addFieldref(classGen.getClassName(),\n\t\t\t\t\t\t       name, signature)));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "RETURN", "CALL", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [3, 11], [4, 12], [1, 13], [1, 14], [1, 15], [2, 16], [10, 17], [5, 18], [6, 19], [13, 20], [1, 21], [15, 22], [1, 23], [4, 24], [20, 25], [20, 26], [14, 27], [21, 28], [22, 29], [24, 30], [13, 31], [13, 32], [13, 33], [13, 34], [28, 35], [15, 36], [31, 37], [33, 38], [34, 39], [37, 40], [39, 41], [39, 42], [39, 43], [39, 44], [40, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 3], [12, 4], [13, 1], [14, 1], [15, 1], [16, 2], [17, 10], [18, 5], [19, 6], [20, 13], [21, 1], [22, 15], [23, 1], [24, 4], [25, 20], [26, 20], [27, 14], [28, 21], [29, 22], [30, 24], [31, 13], [32, 13], [33, 13], [34, 13], [35, 28], [36, 15], [37, 31], [38, 33], [39, 34], [40, 37], [41, 39], [42, 39], [43, 39], [44, 39], [45, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}], "label": 1}
{"sample_id": "jedit-4.1-3988", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/help/HelpTOCPanel.java", "language": "java", "name": "org.gjt.sp.jedit.help.HelpTOCPanel", "code": "class HelpTOCPanel extends JPanel\n{\n\t//{{{ HelpTOCPanel constructor\n\tpublic HelpTOCPanel(HelpViewer helpViewer)\n\t{\n\t\tsuper(new BorderLayout());\n\n\t\tthis.helpViewer = helpViewer;\n\t\tnodes = new Hashtable();\n\n\t\tcreateTOC();\n\n\t\ttoc = new TOCTree(tocModel);\n\n\t\t// looks bad with the OS X L&F, apparently...\n\t\tif(!OperatingSystem.isMacOSLF())\n\t\t\ttoc.putClientProperty(\"JTree.lineStyle\", \"Angled\");\n\n\t\ttoc.setCellRenderer(new TOCCellRenderer());\n\t\ttoc.setEditable(false);\n\t\ttoc.setRootVisible(false);\n\t\ttoc.setShowsRootHandles(true);\n\n\t\tfor(int i = 0; i <tocRoot.getChildCount(); i++)\n\t\t{\n\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode)\n\t\t\t\ttocRoot.getChildAt(i);\n\t\t\ttoc.expandPath(new TreePath(node.getPath()));\n\t\t}\n\n\t\tadd(BorderLayout.CENTER,new JScrollPane(toc));\n\t} //}}}\n\n\t//{{{ selectNode() method\n\tpublic void selectNode(String shortURL)\n\t{\n\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.get(shortURL);\n\n\t\tif(node == null)\n\t\t\treturn;\n\n\t\tTreePath path = new TreePath(tocModel.getPathToRoot(node));\n\t\ttoc.expandPath(path);\n\t\ttoc.setSelectionPath(path);\n\t\ttoc.scrollPathToVisible(path);\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate HelpViewer helpViewer;\n\tprivate DefaultTreeModel tocModel;\n\tprivate DefaultMutableTreeNode tocRoot;\n\tprivate JTree toc;\n\tprivate Hashtable nodes;\n\n\t//{{{ createNode() method\n\tprivate DefaultMutableTreeNode createNode(String href, String title)\n\t{\n\t\tDefaultMutableTreeNode node = new DefaultMutableTreeNode(\n\t\t\tnew HelpNode(href,title),true);\n\t\tnodes.put(href,node);\n\t\treturn node;\n\t} //}}}\n\n\t//{{{ createTOC() method\n\tprivate void createTOC()\n\t{\n\t\ttocRoot = new DefaultMutableTreeNode();\n\n\t\ttocRoot.add(createNode(\"welcome.html\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.welcome\")));\n\n\t\ttocRoot.add(createNode(\"README.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.readme\")));\n\t\ttocRoot.add(createNode(\"NEWS.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.news\")));\n\t\ttocRoot.add(createNode(\"CHANGES.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.changes\")));\n\t\ttocRoot.add(createNode(\"TODO.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.todo\")));\n\t\ttocRoot.add(createNode(\"COPYING.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.copying\")));\n\t\ttocRoot.add(createNode(\"COPYING.DOC.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.copying-doc\")));\n\n\t\tloadTOC(tocRoot,\"users-guide/toc.xml\");\n\t\tloadTOC(tocRoot,\"FAQ/toc.xml\");\n\t\tloadTOC(tocRoot,\"api/toc.xml\");\n\n\t\tDefaultMutableTreeNode pluginTree = new DefaultMutableTreeNode(\n\t\t\tjEdit.getProperty(\"helpviewer.toc.plugins\"),true);\n\n\t\tEditPlugin[] plugins = jEdit.getPlugins();\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tEditPlugin plugin = plugins[i];\n\t\t\tEditPlugin.JAR jar = plugin.getJAR();\n\t\t\tif(jar == null)\n\t\t\t\tcontinue;\n\n\t\t\tString name = plugin.getClassName();\n\n\t\t\tString docs = jEdit.getProperty(\"plugin.\" + name + \".docs\");\n\t\t\tString label = jEdit.getProperty(\"plugin.\" + name + \".name\");\n\t\t\tif(docs != null)\n\t\t\t{\n\t\t\t\tif(label != null && docs != null)\n\t\t\t\t{\n\t\t\t\t\tURL url = jar.getClassLoader()\n\t\t\t\t\t\t.getResource(docs);\n\t\t\t\t\tif(url != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpluginTree.add(createNode(\n\t\t\t\t\t\t\turl.toString(),label));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(pluginTree.getChildCount() != 0)\n\t\t\ttocRoot.add(pluginTree);\n\t\telse\n\t\t{\n\t\t\t// so that HelpViewer constructor doesn't try to expand\n\t\t\tpluginTree = null;\n\t\t}\n\n\t\ttocModel = new DefaultTreeModel(tocRoot);\n\t} //}}}\n\n\t//{{{ loadTOC() method\n\tprivate void loadTOC(DefaultMutableTreeNode root, String path)\n\t{\n\t\tTOCHandler h = new TOCHandler(root,MiscUtilities.getParentOfPath(path));\n\t\tXmlParser parser = new XmlParser();\n\t\tparser.setHandler(h);\n\n\t\ttry\n\t\t{\n\t\t\tparser.parse(null, null, new InputStreamReader(\n\t\t\t\tnew URL(helpViewer.getBaseURL()\n\t\t\t\t+ '/' + path).openStream()));\n\t\t}\n\t\tcatch(XmlException xe)\n\t\t{\n\t\t\tint line = xe.getLine();\n\t\t\tString message = xe.getMessage();\n\t\t\tLog.log(Log.ERROR,this,path + ':' + line\n\t\t\t\t+ \": \" + message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.NOTICE,this,e);\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ HelpNode class\n\tstatic class HelpNode\n\t{\n\t\tString href, title;\n\n\t\t//{{{ HelpNode constructor\n\t\tHelpNode(String href, String title)\n\t\t{\n\t\t\tthis.href = href;\n\t\t\tthis.title = title;\n\t\t} //}}}\n\n\t\t//{{{ toString() method\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn title;\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ TOCHandler class\n\tclass TOCHandler extends HandlerBase\n\t{\n\t\tString dir;\n\n\t\t//{{{ TOCHandler constructor\n\t\tTOCHandler(DefaultMutableTreeNode root, String dir)\n\t\t{\n\t\t\tnodes = new Stack();\n\t\t\tnode = root;\n\t\t\tthis.dir = dir;\n\t\t} //}}}\n\n\t\t//{{{ attribute() method\n\t\tpublic void attribute(String aname, String value, boolean isSpecified)\n\t\t{\n\t\t\tif(aname.equals(\"HREF\"))\n\t\t\t\thref = value;\n\t\t} //}}}\n\n\t\t//{{{ charData() method\n\t\tpublic void charData(char[] c, int off, int len)\n\t\t{\n\t\t\tif(tag.equals(\"TITLE\"))\n\t\t\t{\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\t\tfor(int i = 0; i < len; i++)\n\t\t\t\t{\n\t\t\t\t\tchar ch = c[off + i];\n\t\t\t\t\tif(ch == ' ' || !Character.isWhitespace(ch))\n\t\t\t\t\t\tbuf.append(ch);\n\t\t\t\t}\n\t\t\t\ttitle = buf.toString();\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ startElement() method\n\t\tpublic void startElement(String name)\n\t\t{\n\t\t\ttag = name;\n\t\t} //}}}\n\n\t\t//{{{ endElement() method\n\t\tpublic void endElement(String name)\n\t\t{\n\t\t\tif(name == null)\n\t\t\t\treturn;\n\n\t\t\tif(name.equals(\"TITLE\"))\n\t\t\t{\n\t\t\t\tDefaultMutableTreeNode newNode = createNode(\n\t\t\t\t\tdir + href,title);\n\t\t\t\tnode.add(newNode);\n\t\t\t\tnodes.push(node);\n\t\t\t\tnode = newNode;\n\t\t\t}\n\t\t\telse if(name.equals(\"ENTRY\"))\n\t\t\t\tnode = (DefaultMutableTreeNode)nodes.pop();\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate String tag;\n\t\tprivate String title;\n\t\tprivate String href;\n\t\tprivate DefaultMutableTreeNode node;\n\t\tprivate Stack nodes;\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ TOCTree class\n\tclass TOCTree extends JTree\n\t{\n\t\t//{{{ TOCTree constructor\n\t\tTOCTree(TreeModel model)\n\t\t{\n\t\t\tsuper(model);\n\t\t\tToolTipManager.sharedInstance().registerComponent(this);\n\t\t} //}}}\n\n\t\t//{{{ getToolTipText() method\n\t\tpublic final String getToolTipText(MouseEvent evt)\n\t\t{\n\t\t\tTreePath path = getPathForLocation(evt.getX(), evt.getY());\n\t\t\tif(path != null)\n\t\t\t{\n\t\t\t\tRectangle cellRect = getPathBounds(path);\n\t\t\t\tif(cellRect != null && !cellRectIsVisible(cellRect))\n\t\t\t\t\treturn path.getLastPathComponent().toString();\n\t\t\t}\n\t\t\treturn null;\n\t\t} //}}}\n\n\t\t//{{{ getToolTipLocation() method\n\t\t/* public final Point getToolTipLocation(MouseEvent evt)\n\t\t{\n\t\t\tTreePath path = getPathForLocation(evt.getX(), evt.getY());\n\t\t\tif(path != null)\n\t\t\t{\n\t\t\t\tRectangle cellRect = getPathBounds(path);\n\t\t\t\tif(cellRect != null && !cellRectIsVisible(cellRect))\n\t\t\t\t{\n\t\t\t\t\treturn new Point(cellRect.x + 14, cellRect.y);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t} */ //}}}\n\n\t\t//{{{ processMouseEvent() method\n\t\tprotected void processMouseEvent(MouseEvent evt)\n\t\t{\n\t\t\t//ToolTipManager ttm = ToolTipManager.sharedInstance();\n\n\t\t\tswitch(evt.getID())\n\t\t\t{\n\t\t\t/* case MouseEvent.MOUSE_ENTERED:\n\t\t\t\ttoolTipInitialDelay = ttm.getInitialDelay();\n\t\t\t\ttoolTipReshowDelay = ttm.getReshowDelay();\n\t\t\t\tttm.setInitialDelay(200);\n\t\t\t\tttm.setReshowDelay(0);\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak;\n\t\t\tcase MouseEvent.MOUSE_EXITED:\n\t\t\t\tttm.setInitialDelay(toolTipInitialDelay);\n\t\t\t\tttm.setReshowDelay(toolTipReshowDelay);\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak; */\n\t\t\tcase MouseEvent.MOUSE_CLICKED:\n\t\t\t\tTreePath path = getPathForLocation(evt.getX(),evt.getY());\n\t\t\t\tif(path != null)\n\t\t\t\t{\n\t\t\t\t\tif(!isPathSelected(path))\n\t\t\t\t\t\tsetSelectionPath(path);\n\n\t\t\t\t\tObject obj = ((DefaultMutableTreeNode)\n\t\t\t\t\t\tpath.getLastPathComponent())\n\t\t\t\t\t\t.getUserObject();\n\t\t\t\t\tif(!(obj instanceof HelpNode))\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.expandPath(path);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tHelpNode node = (HelpNode)obj;\n\n\t\t\t\t\thelpViewer.gotoURL(node.href,true);\n\t\t\t\t}\n\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate int toolTipInitialDelay = -1;\n\t\tprivate int toolTipReshowDelay = -1;\n\n\t\t//{{{ cellRectIsVisible() method\n\t\tprivate boolean cellRectIsVisible(Rectangle cellRect)\n\t\t{\n\t\t\tRectangle vr = TOCTree.this.getVisibleRect();\n\t\t\treturn vr.contains(cellRect.x,cellRect.y) &&\n\t\t\t\tvr.contains(cellRect.x + cellRect.width,\n\t\t\t\tcellRect.y + cellRect.height);\n\t\t} //}}}\n\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ TOCCellRenderer class\n\tclass TOCCellRenderer extends DefaultTreeCellRenderer\n\t{\n\t\tEmptyBorder border = new EmptyBorder(1,0,1,1);\n\n\t\tpublic Component getTreeCellRendererComponent(JTree tree,\n\t\t\tObject value, boolean sel, boolean expanded,\n\t\t\tboolean leaf, int row, boolean focus)\n\t\t{\n\t\t\tsuper.getTreeCellRendererComponent(tree,value,sel,\n\t\t\t\texpanded,leaf,row,focus);\n\t\t\tsetIcon(leaf ? FileCellRenderer.fileIcon\n\t\t\t\t: (expanded ? FileCellRenderer.openDirIcon\n\t\t\t\t: FileCellRenderer.dirIcon));\n\t\t\tsetBorder(border);\n\n\t\t\treturn this;", "functions": [{"function_name": "selectNode", "code": "\tpublic void selectNode(String shortURL)\n\t{\n\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.get(shortURL);\n\n\t\tif(node == null)\n\t\t\treturn;\n\n\t\tTreePath path = new TreePath(tocModel.getPathToRoot(node));\n\t\ttoc.expandPath(path);\n\t\ttoc.setSelectionPath(path);\n\t\ttoc.scrollPathToVisible(path);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [1, 10], [9, 11], [10, 12], [3, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 1], [11, 9], [12, 10], [13, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createNode", "code": "\tprivate DefaultMutableTreeNode createNode(String href, String title)\n\t{\n\t\tDefaultMutableTreeNode node = new DefaultMutableTreeNode(\n\t\t\tnew HelpNode(href,title),true);\n\t\tnodes.put(href,node);\n\t\treturn node;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "createTOC", "code": "\tprivate void createTOC()\n\t{\n\t\ttocRoot = new DefaultMutableTreeNode();\n\n\t\ttocRoot.add(createNode(\"welcome.html\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.welcome\")));\n\n\t\ttocRoot.add(createNode(\"README.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.readme\")));\n\t\ttocRoot.add(createNode(\"NEWS.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.news\")));\n\t\ttocRoot.add(createNode(\"CHANGES.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.changes\")));\n\t\ttocRoot.add(createNode(\"TODO.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.todo\")));\n\t\ttocRoot.add(createNode(\"COPYING.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.copying\")));\n\t\ttocRoot.add(createNode(\"COPYING.DOC.txt\",\n\t\t\tjEdit.getProperty(\"helpviewer.toc.copying-doc\")));\n\n\t\tloadTOC(tocRoot,\"users-guide/toc.xml\");\n\t\tloadTOC(tocRoot,\"FAQ/toc.xml\");\n\t\tloadTOC(tocRoot,\"api/toc.xml\");\n\n\t\tDefaultMutableTreeNode pluginTree = new DefaultMutableTreeNode(\n\t\t\tjEdit.getProperty(\"helpviewer.toc.plugins\"),true);\n\n\t\tEditPlugin[] plugins = jEdit.getPlugins();\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tEditPlugin plugin = plugins[i];\n\t\t\tEditPlugin.JAR jar = plugin.getJAR();\n\t\t\tif(jar == null)\n\t\t\t\tcontinue;\n\n\t\t\tString name = plugin.getClassName();\n\n\t\t\tString docs = jEdit.getProperty(\"plugin.\" + name + \".docs\");\n\t\t\tString label = jEdit.getProperty(\"plugin.\" + name + \".name\");\n\t\t\tif(docs != null)\n\t\t\t{\n\t\t\t\tif(label != null && docs != null)\n\t\t\t\t{\n\t\t\t\t\tURL url = jar.getClassLoader()\n\t\t\t\t\t\t.getResource(docs);\n\t\t\t\t\tif(url != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpluginTree.add(createNode(\n\t\t\t\t\t\t\turl.toString(),label));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(pluginTree.getChildCount() != 0)\n\t\t\ttocRoot.add(pluginTree);\n\t\telse\n\t\t{\n\t\t\t// so that HelpViewer constructor doesn't try to expand\n\t\t\tpluginTree = null;\n\t\t}\n\n\t\ttocModel = new DefaultTreeModel(tocRoot);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [5, 19], [1, 20], [6, 21], [6, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [3, 30], [4, 31], [8, 32], [9, 33], [10, 34], [11, 35], [12, 36], [13, 37], [14, 38], [15, 39], [16, 40], [17, 41], [18, 42], [1, 43], [23, 44], [27, 45], [27, 46], [2, 47], [31, 48], [31, 49], [35, 50], [35, 51], [36, 52], [36, 53], [37, 54], [37, 55], [38, 56], [38, 57], [39, 58], [39, 59], [40, 60], [40, 61], [41, 62], [41, 63], [43, 64], [23, 65], [44, 66], [24, 67], [25, 68], [26, 69], [46, 70], [28, 71], [49, 72], [50, 73], [52, 74], [54, 75], [56, 76], [58, 77], [60, 78], [62, 79], [65, 80], [67, 81], [68, 82], [65, 83], [65, 84], [80, 85], [80, 86], [81, 87], [81, 88], [82, 89], [82, 90], [83, 91], [85, 92], [86, 93], [88, 94], [90, 95], [91, 96], [84, 97], [83, 98], [97, 99], [98, 100], [100, 101], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 5], [20, 1], [21, 6], [22, 6], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 3], [31, 4], [32, 8], [33, 9], [34, 10], [35, 11], [36, 12], [37, 13], [38, 14], [39, 15], [40, 16], [41, 17], [42, 18], [43, 1], [44, 23], [45, 27], [46, 27], [47, 2], [48, 31], [49, 31], [50, 35], [51, 35], [52, 36], [53, 36], [54, 37], [55, 37], [56, 38], [57, 38], [58, 39], [59, 39], [60, 40], [61, 40], [62, 41], [63, 41], [64, 43], [65, 23], [66, 44], [67, 24], [68, 25], [69, 26], [70, 46], [71, 28], [72, 49], [73, 50], [74, 52], [75, 54], [76, 56], [77, 58], [78, 60], [79, 62], [80, 65], [81, 67], [82, 68], [83, 65], [84, 65], [85, 80], [86, 80], [87, 81], [88, 81], [89, 82], [90, 82], [91, 83], [92, 85], [93, 86], [94, 88], [95, 90], [96, 91], [97, 84], [98, 83], [99, 97], [100, 98], [101, 100], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101]]}, {"function_name": "loadTOC", "code": "\tprivate void loadTOC(DefaultMutableTreeNode root, String path)\n\t{\n\t\tTOCHandler h = new TOCHandler(root,MiscUtilities.getParentOfPath(path));\n\t\tXmlParser parser = new XmlParser();\n\t\tparser.setHandler(h);\n\n\t\ttry\n\t\t{\n\t\t\tparser.parse(null, null, new InputStreamReader(\n\t\t\t\tnew URL(helpViewer.getBaseURL()\n\t\t\t\t+ '/' + path).openStream()));\n\t\t}\n\t\tcatch(XmlException xe)\n\t\t{\n\t\t\tint line = xe.getLine();\n\t\t\tString message = xe.getMessage();\n\t\t\tLog.log(Log.ERROR,this,path + ':' + line\n\t\t\t\t+ \": \" + message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.NOTICE,this,e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "CATCH", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [7, 9], [7, 10], [1, 11], [2, 12], [3, 13], [6, 14], [7, 15], [11, 16], [11, 17], [11, 18], [13, 19], [15, 20], [9, 21], [10, 22], [16, 23], [20, 24], [23, 25], [23, 26], [24, 27], [24, 28], [25, 29], [28, 30], [29, 31], [29, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 7], [10, 7], [11, 1], [12, 2], [13, 3], [14, 6], [15, 7], [16, 11], [17, 11], [18, 11], [19, 13], [20, 15], [21, 9], [22, 10], [23, 16], [24, 20], [25, 23], [26, 23], [27, 24], [28, 24], [29, 25], [30, 28], [31, 29], [32, 29], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "HelpTOCPanel", "code": "\tpublic HelpTOCPanel(HelpViewer helpViewer)\n\t{\n\t\tsuper(new BorderLayout());\n\n\t\tthis.helpViewer = helpViewer;\n\t\tnodes = new Hashtable();\n\n\t\tcreateTOC();\n\n\t\ttoc = new TOCTree(tocModel);\n\n\t\t// looks bad with the OS X L&F, apparently...\n\t\tif(!OperatingSystem.isMacOSLF())\n\t\t\ttoc.putClientProperty(\"JTree.lineStyle\", \"Angled\");\n\n\t\ttoc.setCellRenderer(new TOCCellRenderer());\n\t\ttoc.setEditable(false);\n\t\ttoc.setRootVisible(false);\n\t\ttoc.setShowsRootHandles(true);\n\n\t\tfor(int i = 0; i <tocRoot.getChildCount(); i++)\n\t\t{\n\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode)\n\t\t\t\ttocRoot.getChildAt(i);\n\t\t\ttoc.expandPath(new TreePath(node.getPath()));\n\t\t}\n\n\t\tadd(BorderLayout.CENTER,new JScrollPane(toc));", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [4, 16], [1, 17], [5, 18], [6, 19], [7, 20], [8, 21], [9, 22], [2, 23], [11, 24], [13, 25], [1, 26], [1, 27], [23, 28], [23, 29], [26, 30], [30, 31], [17, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 4], [17, 1], [18, 5], [19, 6], [20, 7], [21, 8], [22, 9], [23, 2], [24, 11], [25, 13], [26, 1], [27, 1], [28, 23], [29, 23], [30, 26], [31, 30], [32, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}], "label": 0}
{"sample_id": "xalan-2.7-8478", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/util/ObjectType.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.ObjectType", "code": "public final class ObjectType extends Type {\n    \n    private String _javaClassName = \"java.lang.Object\";\n    private Class  _clazz = java.lang.Object.class;\n\n    /**\n     * Used to represent a Java Class type such is required to support \n     * non-static java functions. \n     * @param javaClassName name of the class such as 'com.foo.Processor'\n     */\n    protected ObjectType(String javaClassName) {\n\t_javaClassName = javaClassName;\n\n\ttry {\n          _clazz = ObjectFactory.findProviderClass(\n            javaClassName, ObjectFactory.findClassLoader(), true);\n\t}\n\tcatch (ClassNotFoundException e) {\n\t  _clazz = null;\n\t}\n    }\n    \n    protected ObjectType(Class clazz) {\n        _clazz = clazz;\n        _javaClassName = clazz.getName();\t\n    }\n    \n    /**\n     * Must return the same value for all ObjectType instances. This is\n     * needed in CastExpr to ensure the mapping table is used correctly.\n     */\n    public int hashCode() {\n        return java.lang.Object.class.hashCode();\n    }\n    \n    public boolean equals(Object obj) {\n        return (obj instanceof ObjectType);\n    }\n\n    public String getJavaClassName() {\n\treturn _javaClassName;\n    }\n    \n    public Class getJavaClass() {\n        return _clazz;\t\n    }\n\n    public String toString() {\n\treturn _javaClassName;\n    }\n\n    public boolean identicalTo(Type other) {\n\treturn this == other;\n    }\n\n    public String toSignature() {\n\tfinal StringBuffer result = new StringBuffer(\"L\");\n\tresult.append(_javaClassName.replace('.', '/')).append(';');\n\treturn result.toString();\n    }\n\n    public org.apache.bcel.generic.Type toJCType() {\n\treturn Util.getJCRefType(toSignature());\n    }\n\n    /**\n     * Translates a void into an object of internal type <code>type</code>.\n     * This translation is needed when calling external functions\n     * that return void.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n\n    /**\n     * Expects an integer on the stack and pushes its string value by calling\n     * <code>Integer.toString(int i)</code>.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(DUP);\n\tfinal BranchHandle ifNull = il.append(new IFNULL(null));\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(_javaClassName,\n\t\t\t\t\t\t    \"toString\",\n\t\t\t\t\t\t    \"()\" + STRING_SIG)));\n\tfinal BranchHandle gotobh = il.append(new GOTO(null));\n\tifNull.setTarget(il.append(POP));\n\til.append(new PUSH(cpg, \"\"));\n\tgotobh.setTarget(il.append(NOP));\n    }\n\n    /**\n     * Translates an object of this type to the external (Java) type denoted\n     * by <code>clazz</code>. This method is used to translate parameters \n     * when external functions are called.\n     */ \n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Class clazz) {\n        if (clazz.isAssignableFrom(_clazz))\n\t    methodGen.getInstructionList().append(NOP);\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t       toString(), clazz.getClass().toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\t  \t\n\t}\n    }\n\t\n    /**\n     * Translates an external Java type into an Object type \n     */\n    public void translateFrom(ClassGenerator classGen, \n\t\t\t      MethodGenerator methodGen, Class clazz) {\n\tmethodGen.getInstructionList().append(NOP);\n    }\n\n    public Instruction LOAD(int slot) {\n\treturn new ALOAD(slot);\n    }\n\t\n    public Instruction STORE(int slot) {\n\treturn new ASTORE(slot);", "functions": [{"function_name": "hashCode", "code": "    public int hashCode() {\n        return java.lang.Object.class.hashCode();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "equals", "code": "    public boolean equals(Object obj) {\n        return (obj instanceof ObjectType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getJavaClassName", "code": "    public String getJavaClassName() {\n\treturn _javaClassName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getJavaClass", "code": "    public Class getJavaClass() {\n        return _clazz;\t", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn _javaClassName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "identicalTo", "code": "    public boolean identicalTo(Type other) {\n\treturn this == other;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toSignature", "code": "    public String toSignature() {\n\tfinal StringBuffer result = new StringBuffer(\"L\");\n\tresult.append(_javaClassName.replace('.', '/')).append(';');\n\treturn result.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [4, 6], [2, 7], [5, 8], [5, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [6, 4], [7, 2], [8, 5], [9, 5], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "toJCType", "code": "    public org.apache.bcel.generic.Type toJCType() {\n\treturn Util.getJCRefType(toSignature());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [6, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 6], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(DUP);\n\tfinal BranchHandle ifNull = il.append(new IFNULL(null));\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(_javaClassName,\n\t\t\t\t\t\t    \"toString\",\n\t\t\t\t\t\t    \"()\" + STRING_SIG)));\n\tfinal BranchHandle gotobh = il.append(new GOTO(null));\n\tifNull.setTarget(il.append(POP));\n\til.append(new PUSH(cpg, \"\"));\n\tgotobh.setTarget(il.append(NOP));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [8, 13], [9, 14], [10, 15], [1, 16], [11, 17], [2, 18], [3, 19], [4, 20], [14, 21], [16, 22], [17, 23], [18, 24], [22, 25], [23, 26], [23, 27], [24, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 8], [14, 9], [15, 10], [16, 1], [17, 11], [18, 2], [19, 3], [20, 4], [21, 14], [22, 16], [23, 17], [24, 18], [25, 22], [26, 23], [27, 23], [28, 24], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Class clazz) {\n        if (clazz.isAssignableFrom(_clazz))\n\t    methodGen.getInstructionList().append(NOP);\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t       toString(), clazz.getClass().toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\t  \t", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [8, 10], [6, 11], [11, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 8], [11, 6], [12, 11], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "translateFrom", "code": "    public void translateFrom(ClassGenerator classGen, \n\t\t\t      MethodGenerator methodGen, Class clazz) {\n\tmethodGen.getInstructionList().append(NOP);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "LOAD", "code": "    public Instruction LOAD(int slot) {\n\treturn new ALOAD(slot);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "STORE", "code": "    public Instruction STORE(int slot) {\n\treturn new ASTORE(slot);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ObjectType", "code": "    protected ObjectType(String javaClassName) {\n\t_javaClassName = javaClassName;\n\n\ttry {\n          _clazz = ObjectFactory.findProviderClass(\n            javaClassName, ObjectFactory.findClassLoader(), true);\n\t}\n\tcatch (ClassNotFoundException e) {\n\t  _clazz = null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [5, 7], [6, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 5], [8, 6], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "ObjectType", "code": "    protected ObjectType(Class clazz) {\n        _clazz = clazz;\n        _javaClassName = clazz.getName();\t", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.4-6515", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/ElemFallback.java", "language": "java", "name": "org.apache.xalan.templates.ElemFallback", "code": "public class ElemFallback extends ElemTemplateElement\n{\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_FALLBACK;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The Element's name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_FALLBACK_STRING;\n  }\n\n  /**\n   * This is the normal call when xsl:fallback is instantiated.\n   * In accordance with the XSLT 1.0 Recommendation, chapter 15,\n   * \"Normally, instantiating an xsl:fallback element does nothing.\"\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n  }\n\n  /**\n   * Execute the fallback elements.  This must be explicitly called to\n   * instantiate the content of an xsl:fallback element.\n   * When an XSLT transformer performs fallback for an instruction\n   * element, if the instruction element has one or more xsl:fallback\n   * children, then the content of each of the xsl:fallback children\n   * must be instantiated in sequence; otherwise, an error must\n   * be signaled. The content of an xsl:fallback element is a template.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void executeFallback(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    if (Constants.ELEMNAME_EXTENSIONCALL == m_parentNode.getXSLToken())\n    {\n\n      if (TransformerImpl.S_DEBUG)\n        transformer.getTraceManager().fireTraceEvent(this);\n\n      transformer.executeChildTemplates(this, true);\n\n      if (TransformerImpl.S_DEBUG)\n\t    transformer.getTraceManager().fireTraceEndEvent(this); \n    }\n    else\n    {\n\n      System.out.println(\n        \"Error!  parent of xsl:fallback must be an extension element!\");", "functions": [{"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_FALLBACK;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_FALLBACK_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "executeFallback", "code": "  public void executeFallback(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    if (Constants.ELEMNAME_EXTENSIONCALL == m_parentNode.getXSLToken())\n    {\n\n      if (TransformerImpl.S_DEBUG)\n        transformer.getTraceManager().fireTraceEvent(this);\n\n      transformer.executeChildTemplates(this, true);\n\n      if (TransformerImpl.S_DEBUG)\n\t    transformer.getTraceManager().fireTraceEndEvent(this); \n    }\n    else\n    {\n\n      System.out.println(\n        \"Error!  parent of xsl:fallback must be an extension element!\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 7], [1, 8], [7, 9], [4, 10], [8, 11], [5, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 1], [8, 1], [9, 7], [10, 4], [11, 8], [12, 5], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "xalan-2.6-7580", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/processor/XSLTElementProcessor.java", "language": "java", "name": "org.apache.xalan.processor.XSLTElementProcessor", "code": "public class XSLTElementProcessor extends ElemTemplateElement\n{\n\n  /**\n   * Construct a processor for top-level elements.\n   */\n  XSLTElementProcessor(){}\n\t\n\tprivate IntStack m_savedLastOrder;\n\n  /**\n   * The element definition that this processor conforms to.\n   */\n  private XSLTElementDef m_elemDef;\n\n  /**\n   * Get the element definition that belongs to this element.\n   *\n   * @return The element definition object that produced and constrains this element.\n   */\n  XSLTElementDef getElemDef()\n  {\n    return m_elemDef;\n  }\n\n  /**\n   * Set the element definition that belongs to this element.\n   *\n   * @param def The element definition object that produced and constrains this element.\n   */\n  void setElemDef(XSLTElementDef def)\n  {\n    m_elemDef = def;\n  }\n\n  /**\n   * Resolve an external entity.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param publicId The public identifer, or null if none is\n   *                 available.\n   * @param systemId The system identifier provided in the XML\n   *                 document.\n   * @return The new input source, or null to require the\n   *         default behaviour.\n   */\n  public InputSource resolveEntity(\n          StylesheetHandler handler, String publicId, String systemId)\n            throws org.xml.sax.SAXException\n  {\n    return null;\n  }\n\n  /**\n   * Receive notification of a notation declaration.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param name The notation name.\n   * @param publicId The notation public identifier, or null if not\n   *                 available.\n   * @param systemId The notation system identifier.\n   * @see org.xml.sax.DTDHandler#notationDecl\n   */\n  public void notationDecl(StylesheetHandler handler, String name,\n                           String publicId, String systemId)\n  {\n\n  }\n\n  /**\n   * Receive notification of an unparsed entity declaration.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param name The entity name.\n   * @param publicId The entity public identifier, or null if not\n   *                 available.\n   * @param systemId The entity system identifier.\n   * @param notationName The name of the associated notation.\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void unparsedEntityDecl(StylesheetHandler handler, String name,\n                                 String publicId, String systemId,\n                                 String notationName)\n  {\n\n  }\n\n  /**\n   * Receive notification of the start of the non-text event.  This\n   * is sent to the current processor when any non-text event occurs.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   */\n  public void startNonText(StylesheetHandler handler) throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of the start of an element.\n   *\n   * @param name The element type name.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param localName The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param attributes The specified or defaulted attributes.\n   */\n  public void startElement(\n          StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)\n            throws org.xml.sax.SAXException\n  {\n\n    if (m_savedLastOrder == null)\n\t\t\t\tm_savedLastOrder = new IntStack();\n\t\t\tm_savedLastOrder.push(getElemDef().getLastOrder());\n\t\t\tgetElemDef().setLastOrder(-1);\n  }\n\n  /**\n   * Receive notification of the end of an element.\n   *\n   * @param name The element type name.\n   * @param attributes The specified or defaulted attributes.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param localName The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   */\n  public void endElement(\n          StylesheetHandler handler, String uri, String localName, String rawName)\n            throws org.xml.sax.SAXException\n  {\n\t\tif (m_savedLastOrder != null && !m_savedLastOrder.empty())\n\t\t\tgetElemDef().setLastOrder(m_savedLastOrder.pop());\n\t\t\n\t\tif (!getElemDef().getRequiredFound())\n\t\t\thandler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);\n  }\n\n  /**\n   * Receive notification of character data inside an element.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param ch The characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   */\n  public void characters(\n          StylesheetHandler handler, char ch[], int start, int length)\n            throws org.xml.sax.SAXException\n  {\n  }\n\n  /**\n   * Receive notification of ignorable whitespace in element content.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param ch The whitespace characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   */\n  public void ignorableWhitespace(\n          StylesheetHandler handler, char ch[], int start, int length)\n            throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of a processing instruction.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param target The processing instruction target.\n   * @param data The processing instruction data, or null if\n   *             none is supplied.\n   */\n  public void processingInstruction(\n          StylesheetHandler handler, String target, String data)\n            throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of a skipped entity.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param name The name of the skipped entity.\n   */\n  public void skippedEntity(StylesheetHandler handler, String name)\n          throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Set the properties of an object from the given attribute list.\n   * @param handler The stylesheet's Content handler, needed for\n   *                error reporting.\n   * @param rawName The raw name of the owner element, needed for\n   *                error reporting.\n   * @param attributes The list of attributes.\n   * @param target The target element where the properties will be set.\n   */\n  void setPropertiesFromAttributes(\n          StylesheetHandler handler, String rawName, Attributes attributes, \n          ElemTemplateElement target)\n            throws org.xml.sax.SAXException\n  {\n    setPropertiesFromAttributes(handler, rawName, attributes, target, true);\n  }\n\n  /**\n   * Set the properties of an object from the given attribute list.\n   * @param handler The stylesheet's Content handler, needed for\n   *                error reporting.\n   * @param rawName The raw name of the owner element, needed for\n   *                error reporting.\n   * @param attributes The list of attributes.\n   * @param target The target element where the properties will be set.\n   * @param throwError True if it should throw an error if an\n   * attribute is not defined.\n   * @return the attributes not allowed on this element.\n   *\n   * @throws TransformerException\n   */\n  Attributes setPropertiesFromAttributes(\n          StylesheetHandler handler, String rawName, Attributes attributes, \n          ElemTemplateElement target, boolean throwError)\n            throws org.xml.sax.SAXException\n  {\n\n    XSLTElementDef def = getElemDef();\n    AttributesImpl undefines = null;\n    boolean isCompatibleMode = ((null != handler.getStylesheet() \n                                 && handler.getStylesheet().getCompatibleMode())\n                                || !throwError);\n    if (isCompatibleMode)\n      undefines = new AttributesImpl();\n\n\n    Vector processedDefs = new Vector();\n\n    Vector errorDefs = new Vector();    \n    int nAttrs = attributes.getLength();\n\n    for (int i = 0; i < nAttrs; i++)\n    {\n      String attrUri = attributes.getURI(i);\n      if((null != attrUri) && (attrUri.length() == 0)\n                           && (attributes.getQName(i).startsWith(\"xmlns:\") || \n                               attributes.getQName(i).equals(\"xmlns\")))\n      {\n        attrUri = org.apache.xalan.templates.Constants.S_XMLNAMESPACEURI;\n      }\n      String attrLocalName = attributes.getLocalName(i);\n      XSLTAttributeDef attrDef = def.getAttributeDef(attrUri, attrLocalName);\n\n      if (null == attrDef)\n      {\n        if (!isCompatibleMode)\n        {\n\n        }\n        else\n        {\n          undefines.addAttribute(attrUri, attrLocalName,\n                                 attributes.getQName(i),\n                                 attributes.getType(i),\n                                 attributes.getValue(i));\n        }\n      }\n      else\n      {\n\n        boolean success = attrDef.setAttrValue(handler, attrUri, attrLocalName,\n                             attributes.getQName(i), attributes.getValue(i),\n                             target);\n                             \n        if (success)\n            processedDefs.addElement(attrDef);\n        else\n            errorDefs.addElement(attrDef);\n      }\n    }\n\n    XSLTAttributeDef[] attrDefs = def.getAttributes();\n    int nAttrDefs = attrDefs.length;\n\n    for (int i = 0; i < nAttrDefs; i++)\n    {\n      XSLTAttributeDef attrDef = attrDefs[i];\n      String defVal = attrDef.getDefault();\n\n      if (null != defVal)\n      {\n        if (!processedDefs.contains(attrDef))\n        {\n          attrDef.setDefAttrValue(handler, target);\n        }\n      }\n\n      if (attrDef.getRequired())\n      {\n        if ((!processedDefs.contains(attrDef)) && (!errorDefs.contains(attrDef)))\n          handler.error(\n            XSLMessages.createMessage(\n              XSLTErrorResources.ER_REQUIRES_ATTRIB, new Object[]{ rawName,\n                                                                   attrDef.getName() }), null);\n      }\n    }\n\n    return undefines;", "functions": [{"function_name": "getElemDef", "code": "  XSLTElementDef getElemDef()\n  {\n    return m_elemDef;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setElemDef", "code": "  void setElemDef(XSLTElementDef def)\n  {\n    m_elemDef = def;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "resolveEntity", "code": "  public InputSource resolveEntity(\n          StylesheetHandler handler, String publicId, String systemId)\n            throws org.xml.sax.SAXException\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "notationDecl", "code": "  public void notationDecl(StylesheetHandler handler, String name,\n                           String publicId, String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unparsedEntityDecl", "code": "  public void unparsedEntityDecl(StylesheetHandler handler, String name,\n                                 String publicId, String systemId,\n                                 String notationName)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "startNonText", "code": "  public void startNonText(StylesheetHandler handler) throws org.xml.sax.SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startElement", "code": "  public void startElement(\n          StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)\n            throws org.xml.sax.SAXException\n  {\n\n    if (m_savedLastOrder == null)\n\t\t\t\tm_savedLastOrder = new IntStack();\n\t\t\tm_savedLastOrder.push(getElemDef().getLastOrder());\n\t\t\tgetElemDef().setLastOrder(-1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [7, 10], [8, 11], [1, 12], [9, 13], [10, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 7], [11, 8], [12, 1], [13, 9], [14, 10], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "endElement", "code": "  public void endElement(\n          StylesheetHandler handler, String uri, String localName, String rawName)\n            throws org.xml.sax.SAXException\n  {\n\t\tif (m_savedLastOrder != null && !m_savedLastOrder.empty())\n\t\t\tgetElemDef().setLastOrder(m_savedLastOrder.pop());\n\t\t\n\t\tif (!getElemDef().getRequiredFound())\n\t\t\thandler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [7, 10], [2, 11], [8, 12], [8, 13], [9, 14], [11, 15], [13, 16], [15, 17], [9, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 7], [11, 2], [12, 8], [13, 8], [14, 9], [15, 11], [16, 13], [17, 15], [18, 9], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "characters", "code": "  public void characters(\n          StylesheetHandler handler, char ch[], int start, int length)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(\n          StylesheetHandler handler, char ch[], int start, int length)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(\n          StylesheetHandler handler, String target, String data)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(StylesheetHandler handler, String name)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPropertiesFromAttributes", "code": "  void setPropertiesFromAttributes(\n          StylesheetHandler handler, String rawName, Attributes attributes, \n          ElemTemplateElement target)\n            throws org.xml.sax.SAXException\n  {\n    setPropertiesFromAttributes(handler, rawName, attributes, target, true);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setPropertiesFromAttributes", "code": "  Attributes setPropertiesFromAttributes(\n          StylesheetHandler handler, String rawName, Attributes attributes, \n          ElemTemplateElement target, boolean throwError)\n            throws org.xml.sax.SAXException\n  {\n\n    XSLTElementDef def = getElemDef();\n    AttributesImpl undefines = null;\n    boolean isCompatibleMode = ((null != handler.getStylesheet() \n                                 && handler.getStylesheet().getCompatibleMode())\n                                || !throwError);\n    if (isCompatibleMode)\n      undefines = new AttributesImpl();\n\n\n    Vector processedDefs = new Vector();\n\n    Vector errorDefs = new Vector();    \n    int nAttrs = attributes.getLength();\n\n    for (int i = 0; i < nAttrs; i++)\n    {\n      String attrUri = attributes.getURI(i);\n      if((null != attrUri) && (attrUri.length() == 0)\n                           && (attributes.getQName(i).startsWith(\"xmlns:\") || \n                               attributes.getQName(i).equals(\"xmlns\")))\n      {\n        attrUri = org.apache.xalan.templates.Constants.S_XMLNAMESPACEURI;\n      }\n      String attrLocalName = attributes.getLocalName(i);\n      XSLTAttributeDef attrDef = def.getAttributeDef(attrUri, attrLocalName);\n\n      if (null == attrDef)\n      {\n        if (!isCompatibleMode)\n        {\n\n        }\n        else\n        {\n          undefines.addAttribute(attrUri, attrLocalName,\n                                 attributes.getQName(i),\n                                 attributes.getType(i),\n                                 attributes.getValue(i));\n        }\n      }\n      else\n      {\n\n        boolean success = attrDef.setAttrValue(handler, attrUri, attrLocalName,\n                             attributes.getQName(i), attributes.getValue(i),\n                             target);\n                             \n        if (success)\n            processedDefs.addElement(attrDef);\n        else\n            errorDefs.addElement(attrDef);\n      }\n    }\n\n    XSLTAttributeDef[] attrDefs = def.getAttributes();\n    int nAttrDefs = attrDefs.length;\n\n    for (int i = 0; i < nAttrDefs; i++)\n    {\n      XSLTAttributeDef attrDef = attrDefs[i];\n      String defVal = attrDef.getDefault();\n\n      if (null != defVal)\n      {\n        if (!processedDefs.contains(attrDef))\n        {\n          attrDef.setDefAttrValue(handler, target);\n        }\n      }\n\n      if (attrDef.getRequired())\n      {\n        if ((!processedDefs.contains(attrDef)) && (!errorDefs.contains(attrDef)))\n          handler.error(\n            XSLMessages.createMessage(\n              XSLTErrorResources.ER_REQUIRES_ATTRIB, new Object[]{ rawName,\n                                                                   attrDef.getName() }), null);\n      }\n    }\n\n    return undefines;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [2, 18], [5, 19], [2, 20], [2, 21], [2, 22], [2, 23], [4, 24], [5, 25], [5, 26], [5, 27], [5, 28], [5, 29], [6, 30], [7, 31], [8, 32], [9, 33], [10, 34], [11, 35], [12, 36], [20, 37], [21, 38], [2, 39], [25, 40], [28, 41], [5, 42], [33, 43], [34, 44], [20, 45], [21, 46], [38, 47], [22, 48], [25, 49], [25, 50], [25, 51], [40, 52], [26, 53], [27, 54], [41, 55], [41, 56], [29, 57], [44, 58], [44, 59], [45, 60], [46, 61], [28, 62], [55, 63], [55, 64], [56, 65], [56, 66], [58, 67], [59, 68], [59, 69], [45, 70], [60, 71], [60, 72], [49, 73], [49, 74], [50, 75], [63, 76], [64, 77], [65, 78], [65, 79], [66, 80], [70, 81], [70, 82], [46, 83], [75, 84], [75, 85], [51, 86], [76, 87], [77, 88], [86, 89], [86, 90], [86, 91], [82, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 2], [19, 5], [20, 2], [21, 2], [22, 2], [23, 2], [24, 4], [25, 5], [26, 5], [27, 5], [28, 5], [29, 5], [30, 6], [31, 7], [32, 8], [33, 9], [34, 10], [35, 11], [36, 12], [37, 20], [38, 21], [39, 2], [40, 25], [41, 28], [42, 5], [43, 33], [44, 34], [45, 20], [46, 21], [47, 38], [48, 22], [49, 25], [50, 25], [51, 25], [52, 40], [53, 26], [54, 27], [55, 41], [56, 41], [57, 29], [58, 44], [59, 44], [60, 45], [61, 46], [62, 28], [63, 55], [64, 55], [65, 56], [66, 56], [67, 58], [68, 59], [69, 59], [70, 45], [71, 60], [72, 60], [73, 49], [74, 49], [75, 50], [76, 63], [77, 64], [78, 65], [79, 65], [80, 66], [81, 70], [82, 70], [83, 46], [84, 75], [85, 75], [86, 51], [87, 76], [88, 77], [89, 86], [90, 86], [91, 86], [92, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "XSLTElementProcessor", "code": "  XSLTElementProcessor(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "log4j-1.2-5036", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/javadoc/org/apache/log4j/xml/examples/XMLSample.java", "language": "java", "name": "org.apache.log4j.xml.examples.XMLSample", "code": "public class XMLSample {\n\n  static Logger cat = Logger.getLogger(XMLSample.class);\n\n  public\n  static\n  void main(String argv[]) {\n\n    if(argv.length == 1)\n      init(argv[0]);\n    else\n      Usage(\"Wrong number of arguments.\");\n    sample();\n  }\n\n  static\n  void Usage(String msg) {\n    System.err.println(msg);\n    System.err.println( \"Usage: java \" + XMLSample.class.getName() +\n\t\t\t\"configFile\");\n    System.exit(1);\n  }\n\n  static\n  void init(String configFile) {\n    DOMConfigurator.configure(configFile);\n  }\n\n  static\n  void sample() {\n    int i = -1;\n    cat.debug(\"Message \" + ++i);\n    cat.warn (\"Message \" + ++i);\n    cat.error(\"Message \" + ++i);\n    Exception e = new Exception(\"Just testing\");\n    cat.debug(\"Message \" + ++i, e);", "functions": [{"function_name": "main", "code": "  void main(String argv[]) {\n\n    if(argv.length == 1)\n      init(argv[0]);\n    else\n      Usage(\"Wrong number of arguments.\");\n    sample();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "Usage", "code": "  void Usage(String msg) {\n    System.err.println(msg);\n    System.err.println( \"Usage: java \" + XMLSample.class.getName() +\n\t\t\t\"configFile\");\n    System.exit(1);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "init", "code": "  void init(String configFile) {\n    DOMConfigurator.configure(configFile);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "sample", "code": "  void sample() {\n    int i = -1;\n    cat.debug(\"Message \" + ++i);\n    cat.warn (\"Message \" + ++i);\n    cat.error(\"Message \" + ++i);\n    Exception e = new Exception(\"Just testing\");\n    cat.debug(\"Message \" + ++i, e);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [1, 8], [4, 9], [5, 10], [6, 11], [2, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 1], [9, 4], [10, 5], [11, 6], [12, 2], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 1}
{"sample_id": "camel-1.0-1375", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/cxf/CxfComponent.java", "language": "java", "name": "org.apache.camel.component.cxf.CxfComponent", "code": "public class CxfComponent extends DefaultComponent<CxfExchange> {\n    private LocalTransportFactory localTransportFactory;\n\n    public CxfComponent() {\n    }\n\n    public CxfComponent(CamelContext context) {\n        super(context);\n    }\n\n    @Override\n    protected Endpoint<CxfExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        URI u = new URI(remaining);\n\n        AddressType a = new AddressType();\n        a.setLocation(remaining);\n        endpointInfo.addExtensor(a);\n\n        return new CxfEndpoint(uri, this, endpointInfo);\n    }\n\n    public LocalTransportFactory getLocalTransportFactory() throws BusException {\n        if (localTransportFactory == null) {\n            localTransportFactory = findLocalTransportFactory();\n            if (localTransportFactory == null) {\n                localTransportFactory = new LocalTransportFactory();\n            }\n        }\n        return localTransportFactory;\n    }\n\n    public void setLocalTransportFactory(LocalTransportFactory localTransportFactory) {\n        this.localTransportFactory = localTransportFactory;\n    }\n\n    protected LocalTransportFactory findLocalTransportFactory() throws BusException {\n        Bus bus = CXFBusFactory.getDefaultBus();\n        DestinationFactoryManager dfm = bus.getExtension(DestinationFactoryManager.class);\n        return (LocalTransportFactory) dfm.getDestinationFactory(LocalTransportFactory.TRANSPORT_ID);", "functions": [{"function_name": "createEndpoint", "code": "    @Override\n    protected Endpoint<CxfExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        URI u = new URI(remaining);\n\n        AddressType a = new AddressType();\n        a.setLocation(remaining);\n        endpointInfo.addExtensor(a);\n\n        return new CxfEndpoint(uri, this, endpointInfo);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [2, 10], [3, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 2], [11, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getLocalTransportFactory", "code": "    public LocalTransportFactory getLocalTransportFactory() throws BusException {\n        if (localTransportFactory == null) {\n            localTransportFactory = findLocalTransportFactory();\n            if (localTransportFactory == null) {\n                localTransportFactory = new LocalTransportFactory();\n            }\n        }\n        return localTransportFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [2, 7], [6, 8], [7, 9], [4, 10], [10, 11], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 2], [8, 6], [9, 7], [10, 4], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setLocalTransportFactory", "code": "    public void setLocalTransportFactory(LocalTransportFactory localTransportFactory) {\n        this.localTransportFactory = localTransportFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "findLocalTransportFactory", "code": "    protected LocalTransportFactory findLocalTransportFactory() throws BusException {\n        Bus bus = CXFBusFactory.getDefaultBus();\n        DestinationFactoryManager dfm = bus.getExtension(DestinationFactoryManager.class);\n        return (LocalTransportFactory) dfm.getDestinationFactory(LocalTransportFactory.TRANSPORT_ID);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "CxfComponent", "code": "    public CxfComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "CxfComponent", "code": "    public CxfComponent(CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6530", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xpath/axes/UnionPathIterator.java", "language": "java", "name": "org.apache.xpath.axes.UnionPathIterator", "code": "public class UnionPathIterator extends LocPathIterator\n        implements Cloneable, DTMIterator, java.io.Serializable, PathComponent\n{\n\n  /**\n   * Constructor to create an instance which you can add location paths to.\n   */\n  public UnionPathIterator()\n  {\n\n    super();\n\n    m_iterators = null;\n    m_exprs = null;\n  }\n\n  /**\n   * Initialize the context values for this expression \n   * after it is cloned.\n   *\n   * @param execContext The XPath runtime context for this \n   * transformation.\n   */\n  public void setRoot(int context, Object environment)\n  {\n    super.setRoot(context, environment);\n\n    try\n    {\n      if (null != m_exprs)\n      {\n        int n = m_exprs.length;\n        DTMIterator newIters[] = new DTMIterator[n];\n  \n        for (int i = 0; i < n; i++)\n        {\n          DTMIterator iter = m_exprs[i].asIterator(m_execContext, context);\n          newIters[i] = iter;\n          iter.nextNode();\n        }\n        m_iterators = newIters;\n      }\n    }\n    catch(Exception e)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(e);\n    }\n  }\n  \n  /**\n   * Add an iterator to the union list.\n   *\n   * @param iter non-null reference to a location path iterator.\n   */\n  public void addIterator(DTMIterator expr)\n  {\n\n    if (null == m_iterators)\n    {\n      m_iterators = new DTMIterator[1];\n      m_iterators[0] = expr;\n    }\n    else\n    {\n      DTMIterator[] exprs = m_iterators;\n      int len = m_iterators.length;\n\n      m_iterators = new DTMIterator[len + 1];\n\n      System.arraycopy(exprs, 0, m_iterators, 0, len);\n\n      m_iterators[len] = expr;\n    }\n    expr.nextNode();\n    if(expr instanceof Expression)\n    \t((Expression)expr).exprSetParent(this);\n  }\n  \n  /**\n   *  Detaches the iterator from the set which it iterated over, releasing\n   * any computational resources and placing the iterator in the INVALID\n   * state. After<code>detach</code> has been invoked, calls to\n   * <code>nextNode</code> or<code>previousNode</code> will raise the\n   * exception INVALID_STATE_ERR.\n   */\n  public void detach()\n  {    \n    if(null != m_iterators)\n    {\n    \tint n = m_iterators.length;\n    \tfor(int i = 0; i < n; i++)\n    \t{\n    \t\tm_iterators[i].detach();\n    \t}\n    \tm_iterators = null;\n    }\n  }\n\n\n  /**\n   * Create a UnionPathIterator object, including creation \n   * of location path iterators from the opcode list, and call back \n   * into the Compiler to create predicate expressions.\n   *\n   * @param compiler The Compiler which is creating \n   * this expression.\n   * @param opPos The position of this iterator in the \n   * opcode list from the compiler.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public UnionPathIterator(Compiler compiler, int opPos)\n          throws javax.xml.transform.TransformerException\n  {\n\n    super();\n\n    opPos = compiler.getFirstChildPos(opPos);\n\n    loadLocationPaths(compiler, opPos, 0);\n  }\n  \n  /**\n   * This will return an iterator capable of handling the union of paths given.\n   * \n   * @param compiler The Compiler which is creating \n   * this expression.\n   * @param opPos The position of this iterator in the \n   * opcode list from the compiler.\n   * \n   * @return Object that is derived from LocPathIterator.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public static LocPathIterator createUnionIterator(Compiler compiler, int opPos)\n          throws javax.xml.transform.TransformerException\n  {\n  \tUnionPathIterator upi = new UnionPathIterator(compiler, opPos);\n  \tint nPaths = upi.m_exprs.length;\n  \tboolean isAllChildIterators = true;\n  \tfor(int i = 0; i < nPaths; i++)\n  \t{\n  \t\tLocPathIterator lpi = upi.m_exprs[i];\n  \t\t\n  \t\tif(lpi.getAxis() != Axis.CHILD)\n  \t\t{\n  \t\t\tisAllChildIterators = false;\n  \t\t\tbreak;\n  \t\t}\n  \t\telse\n  \t\t{\n  \t\t\tif(HasPositionalPredChecker.check(lpi))\n  \t\t\t{\n  \t\t\t\tisAllChildIterators = false;\n  \t\t\t\tbreak;\n  \t\t\t}\n  \t\t}\n  \t}\n  \tif(isAllChildIterators)\n  \t{\n  \t\tUnionChildIterator uci = new UnionChildIterator();\n  \t\t\n\t  \tfor(int i = 0; i < nPaths; i++)\n\t  \t{\n\t  \t\tPredicatedNodeTest lpi = upi.m_exprs[i];\n\t  \t\tuci.addNodeTest(lpi);\n\t  \t}\n\t  \treturn uci;\n  \t\t\n  \t}\n  \telse\n  \t\treturn upi;\n  }\n  \n  /** \n   * Get the analysis bits for this walker, as defined in the WalkerFactory.\n   * @return One of WalkerFactory#BIT_DESCENDANT, etc.\n   */\n  public int getAnalysisBits()\n  {\n    int bits = 0;\n    \n    if (m_exprs != null)\n    {\n      int n = m_exprs.length;\n\n      for (int i = 0; i < n; i++)\n      {\n      \tint bit = m_exprs[i].getAnalysisBits();\n        bits |= bit;\n      }\n    }\n\n    return bits;\n  }\n  \n  /**\n   * Read the object from a serialization stream.\n   *\n   * @param stream Input stream to read from\n   *\n   * @throws java.io.IOException\n   * @throws javax.xml.transform.TransformerException\n   */\n  private void readObject(java.io.ObjectInputStream stream)\n          throws java.io.IOException, javax.xml.transform.TransformerException\n  {\n    try\n    {\n      stream.defaultReadObject();\n      m_clones =  new IteratorPool(this);\n    }\n    catch (ClassNotFoundException cnfe)\n    {\n      throw new javax.xml.transform.TransformerException(cnfe);\n    }\n  }\n\n  /**\n   * Get a cloned LocPathIterator that holds the same \n   * position as this iterator.\n   *\n   * @return A clone of this iterator that holds the same node position.\n   *\n   * @throws CloneNotSupportedException\n   */\n  public Object clone() throws CloneNotSupportedException\n  {\n\n    UnionPathIterator clone = (UnionPathIterator) super.clone();\n\n    return clone;\n  }\n  \n  \n  /**\n   * Create a new location path iterator.\n   *\n   * @param compiler The Compiler which is creating \n   * this expression.\n   * @param opPos The position of this iterator in the \n   *\n   * @return New location path iterator.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected LocPathIterator createDTMIterator(\n          Compiler compiler, int opPos) throws javax.xml.transform.TransformerException\n  {\n    LocPathIterator lpi = (LocPathIterator)WalkerFactory.newDTMIterator(compiler, opPos, \n                                      (compiler.getLocationPathDepth() <= 0));\n    return lpi;\n  }\n\n  /**\n   * Initialize the location path iterators.  Recursive.\n   *\n   * @param compiler The Compiler which is creating \n   * this expression.\n   * @param opPos The position of this iterator in the \n   * opcode list from the compiler.\n   * @param count The insert position of the iterator.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void loadLocationPaths(Compiler compiler, int opPos, int count)\n          throws javax.xml.transform.TransformerException\n  {\n\n    int steptype = compiler.getOpMap()[opPos];\n\n    if (steptype == OpCodes.OP_LOCATIONPATH)\n    {\n      loadLocationPaths(compiler, compiler.getNextOpPos(opPos), count + 1);\n\n      m_exprs[count] = createDTMIterator(compiler, opPos);\n      m_exprs[count].exprSetParent(this);\n    }\n    else\n    {\n\n      switch (steptype)\n      {\n      case OpCodes.OP_VARIABLE :\n      case OpCodes.OP_EXTFUNCTION :\n      case OpCodes.OP_FUNCTION :\n      case OpCodes.OP_GROUP :\n        loadLocationPaths(compiler, compiler.getNextOpPos(opPos), count + 1);\n\n        WalkingIterator iter =\n          new WalkingIterator(compiler.getNamespaceContext());\n        iter.exprSetParent(this);\n          \n        if(compiler.getLocationPathDepth() <= 0)\n          iter.setIsTopLevel(true);\n\n        iter.m_firstWalker = new org.apache.xpath.axes.FilterExprWalker(iter);\n\n        iter.m_firstWalker.init(compiler, opPos, steptype);\n\n        m_exprs[count] = iter;\n        break;\n      default :\n        m_exprs = new LocPathIterator[count];\n      }\n    }\n  }\n\n  /**\n   *  Returns the next node in the set and advances the position of the\n   * iterator in the set. After a DTMIterator is created, the first call\n   * to nextNode() returns the first node in the set.\n   * @return  The next <code>Node</code> in the set being iterated over, or\n   *   <code>null</code> if there are no more members in that set.\n   */\n  public int nextNode()\n  {\n  \tif(m_foundLast)\n  \t\treturn DTM.NULL;\n\n    int earliestNode = DTM.NULL;\n\n    if (null != m_iterators)\n    {\n      int n = m_iterators.length;\n      int iteratorUsed = -1;\n\n      for (int i = 0; i < n; i++)\n      {\n        int node = m_iterators[i].getCurrentNode();\n\n        if (DTM.NULL == node)\n          continue;\n        else if (DTM.NULL == earliestNode)\n        {\n          iteratorUsed = i;\n          earliestNode = node;\n        }\n        else\n        {\n          if (node == earliestNode)\n          {\n\n            m_iterators[i].nextNode();\n          }\n          else\n          {\n            DTM dtm = getDTM(node);\n\n            if (dtm.isNodeAfter(node, earliestNode))\n            {\n              iteratorUsed = i;\n              earliestNode = node;\n            }\n          }\n        }\n      }\n\n      if (DTM.NULL != earliestNode)\n      {\n        m_iterators[iteratorUsed].nextNode();\n\n        incrementCurrentPos();\n      }\n      else\n        m_foundLast = true;\n    }\n\n    m_lastFetched = earliestNode;\n\n    return earliestNode;\n  }\n            \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    for (int i = 0; i < m_exprs.length; i++) \n    {\n      m_exprs[i].fixupVariables(vars, globalsSize);\n    }\n    \n  }\n  \n  /**\n   * The location path iterators, one for each\n   * path</a> contained in the union expression.\n   * @serial\n   */\n  protected LocPathIterator[] m_exprs;\n\n    \n  /**\n   * The location path iterators, one for each\n   * path</a> contained in the union expression.\n   * @serial\n   */\n  protected DTMIterator[] m_iterators;\n      \n  /**\n   * Returns the axis being iterated, if it is known.\n   * \n   * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple \n   * types.\n   */\n  public int getAxis()\n  {\n    return -1;\n  }\n  \n  class iterOwner implements ExpressionOwner\n  {\n  \tint m_index;\n  \t\n  \titerOwner(int index)\n  \t{\n  \t\tm_index = index;\n  \t}\n  \t\n    /**\n     * @see ExpressionOwner#getExpression()\n     */\n    public Expression getExpression()\n    {\n      return m_exprs[m_index];\n    }\n\n    /**\n     * @see ExpressionOwner#setExpression(Expression)\n     */\n    public void setExpression(Expression exp)\n    {\n    \t\n    \tif(!(exp instanceof LocPathIterator))\n    \t{\n    \t\tWalkingIterator wi = new WalkingIterator(getPrefixResolver());\n    \t\tFilterExprWalker few = new FilterExprWalker(wi);\n    \t\twi.setFirstWalker(few);\n    \t\tfew.setInnerExpression(exp);\n    \t\twi.exprSetParent(UnionPathIterator.this);\n    \t\tfew.exprSetParent(wi);\n    \t\texp.exprSetParent(few);\n    \t\texp = wi;\n    \t}\n    \telse\n    \t\texp.exprSetParent(UnionPathIterator.this);\n    \tm_exprs[m_index] = (LocPathIterator)exp;\n    }\n\n  }\n\n  /**\n   * @see XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \t \tif(visitor.visitUnionPath(owner, this))\n  \t \t{\n  \t \t\tif(null != m_exprs)\n  \t \t\t{\n  \t \t\t\tint n = m_exprs.length;\n  \t \t\t\tfor(int i = 0; i < n; i++)\n  \t \t\t\t{\n  \t \t\t\t\tm_exprs[i].callVisitors(new iterOwner(i), visitor);\n  \t \t\t\t}\n  \t \t\t}\n  \t \t}\n  }\n  \n    /**\n     * @see Expression#deepEquals(Expression)\n     */\n    public boolean deepEquals(Expression expr)\n    {\n      if (!super.deepEquals(expr))\n            return false;\n\n      UnionPathIterator upi = (UnionPathIterator) expr;\n\n      if (null != m_exprs)\n      {\n        int n = m_exprs.length;\n        \n        if((null == upi.m_exprs) || (upi.m_exprs.length != n))\n        \treturn false;\n        \n        for (int i = 0; i < n; i++)\n        {\n          if(!m_exprs[i].deepEquals(upi.m_exprs[i]))\n          \treturn false;\n        }\n      }\n      else if (null != upi.m_exprs)\n      {\n          return false;\n      }\n\n      return true;", "functions": [{"function_name": "setRoot", "code": "  public void setRoot(int context, Object environment)\n  {\n    super.setRoot(context, environment);\n\n    try\n    {\n      if (null != m_exprs)\n      {\n        int n = m_exprs.length;\n        DTMIterator newIters[] = new DTMIterator[n];\n  \n        for (int i = 0; i < n; i++)\n        {\n          DTMIterator iter = m_exprs[i].asIterator(m_execContext, context);\n          newIters[i] = iter;\n          iter.nextNode();\n        }\n        m_iterators = newIters;\n      }\n    }\n    catch(Exception e)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [5, 9], [5, 10], [5, 11], [7, 12], [5, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 5], [10, 5], [11, 5], [12, 7], [13, 5], [14, 9], [15, 9], [16, 9], [17, 9], [18, 9], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "addIterator", "code": "  public void addIterator(DTMIterator expr)\n  {\n\n    if (null == m_iterators)\n    {\n      m_iterators = new DTMIterator[1];\n      m_iterators[0] = expr;\n    }\n    else\n    {\n      DTMIterator[] exprs = m_iterators;\n      int len = m_iterators.length;\n\n      m_iterators = new DTMIterator[len + 1];\n\n      System.arraycopy(exprs, 0, m_iterators, 0, len);\n\n      m_iterators[len] = expr;\n    }\n    expr.nextNode();\n    if(expr instanceof Expression)\n    \t((Expression)expr).exprSetParent(this);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [11, 15], [11, 16], [12, 17], [14, 18], [17, 19], [13, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 11], [16, 11], [17, 12], [18, 14], [19, 17], [20, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "detach", "code": "  public void detach()\n  {    \n    if(null != m_iterators)\n    {\n    \tint n = m_iterators.length;\n    \tfor(int i = 0; i < n; i++)\n    \t{\n    \t\tm_iterators[i].detach();\n    \t}\n    \tm_iterators = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 6], [3, 7], [6, 8], [3, 9], [3, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 1], [7, 3], [8, 6], [9, 3], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createUnionIterator", "code": "  public static LocPathIterator createUnionIterator(Compiler compiler, int opPos)\n          throws javax.xml.transform.TransformerException\n  {\n  \tUnionPathIterator upi = new UnionPathIterator(compiler, opPos);\n  \tint nPaths = upi.m_exprs.length;\n  \tboolean isAllChildIterators = true;\n  \tfor(int i = 0; i < nPaths; i++)\n  \t{\n  \t\tLocPathIterator lpi = upi.m_exprs[i];\n  \t\t\n  \t\tif(lpi.getAxis() != Axis.CHILD)\n  \t\t{\n  \t\t\tisAllChildIterators = false;\n  \t\t\tbreak;\n  \t\t}\n  \t\telse\n  \t\t{\n  \t\t\tif(HasPositionalPredChecker.check(lpi))\n  \t\t\t{\n  \t\t\t\tisAllChildIterators = false;\n  \t\t\t\tbreak;\n  \t\t\t}\n  \t\t}\n  \t}\n  \tif(isAllChildIterators)\n  \t{\n  \t\tUnionChildIterator uci = new UnionChildIterator();\n  \t\t\n\t  \tfor(int i = 0; i < nPaths; i++)\n\t  \t{\n\t  \t\tPredicatedNodeTest lpi = upi.m_exprs[i];\n\t  \t\tuci.addNodeTest(lpi);\n\t  \t}\n\t  \treturn uci;\n  \t\t\n  \t}\n  \telse\n  \t\treturn upi;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "IF", "BREAK_CONTINUE", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [1, 10], [1, 11], [1, 12], [2, 13], [2, 14], [3, 15], [5, 16], [11, 17], [13, 18], [2, 19], [11, 20], [12, 21], [13, 22], [13, 23], [18, 24], [11, 25], [11, 26], [22, 27], [13, 28], [22, 29], [28, 30], [22, 31], [31, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 1], [11, 1], [12, 1], [13, 2], [14, 2], [15, 3], [16, 5], [17, 11], [18, 13], [19, 2], [20, 11], [21, 12], [22, 13], [23, 13], [24, 18], [25, 11], [26, 11], [27, 22], [28, 13], [29, 22], [30, 28], [31, 22], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "getAnalysisBits", "code": "  public int getAnalysisBits()\n  {\n    int bits = 0;\n    \n    if (m_exprs != null)\n    {\n      int n = m_exprs.length;\n\n      for (int i = 0; i < n; i++)\n      {\n      \tint bit = m_exprs[i].getAnalysisBits();\n        bits |= bit;\n      }\n    }\n\n    return bits;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [3, 8], [5, 9], [5, 10], [5, 11], [5, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 3], [9, 5], [10, 5], [11, 5], [12, 5], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "readObject", "code": "  private void readObject(java.io.ObjectInputStream stream)\n          throws java.io.IOException, javax.xml.transform.TransformerException\n  {\n    try\n    {\n      stream.defaultReadObject();\n      m_clones =  new IteratorPool(this);\n    }\n    catch (ClassNotFoundException cnfe)\n    {\n      throw new javax.xml.transform.TransformerException(cnfe);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "clone", "code": "  public Object clone() throws CloneNotSupportedException\n  {\n\n    UnionPathIterator clone = (UnionPathIterator) super.clone();\n\n    return clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createDTMIterator", "code": "  protected LocPathIterator createDTMIterator(\n          Compiler compiler, int opPos) throws javax.xml.transform.TransformerException\n  {\n    LocPathIterator lpi = (LocPathIterator)WalkerFactory.newDTMIterator(compiler, opPos, \n                                      (compiler.getLocationPathDepth() <= 0));\n    return lpi;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "loadLocationPaths", "code": "  protected void loadLocationPaths(Compiler compiler, int opPos, int count)\n          throws javax.xml.transform.TransformerException\n  {\n\n    int steptype = compiler.getOpMap()[opPos];\n\n    if (steptype == OpCodes.OP_LOCATIONPATH)\n    {\n      loadLocationPaths(compiler, compiler.getNextOpPos(opPos), count + 1);\n\n      m_exprs[count] = createDTMIterator(compiler, opPos);\n      m_exprs[count].exprSetParent(this);\n    }\n    else\n    {\n\n      switch (steptype)\n      {\n      case OpCodes.OP_VARIABLE :\n      case OpCodes.OP_EXTFUNCTION :\n      case OpCodes.OP_FUNCTION :\n      case OpCodes.OP_GROUP :\n        loadLocationPaths(compiler, compiler.getNextOpPos(opPos), count + 1);\n\n        WalkingIterator iter =\n          new WalkingIterator(compiler.getNamespaceContext());\n        iter.exprSetParent(this);\n          \n        if(compiler.getLocationPathDepth() <= 0)\n          iter.setIsTopLevel(true);\n\n        iter.m_firstWalker = new org.apache.xpath.axes.FilterExprWalker(iter);\n\n        iter.m_firstWalker.init(compiler, opPos, steptype);\n\n        m_exprs[count] = iter;\n        break;\n      default :\n        m_exprs = new LocPathIterator[count];", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "SWITCH", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [1, 9], [1, 10], [7, 11], [7, 12], [7, 13], [1, 14], [9, 15], [10, 16], [10, 17], [7, 18], [7, 19], [7, 20], [7, 21], [12, 22], [7, 23], [7, 24], [16, 25], [21, 26], [12, 27], [22, 28], [22, 29], [13, 30], [24, 31], [24, 32], [27, 33], [30, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 1], [10, 1], [11, 7], [12, 7], [13, 7], [14, 1], [15, 9], [16, 10], [17, 10], [18, 7], [19, 7], [20, 7], [21, 7], [22, 12], [23, 7], [24, 7], [25, 16], [26, 21], [27, 12], [28, 22], [29, 22], [30, 13], [31, 24], [32, 24], [33, 27], [34, 30], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "nextNode", "code": "  public int nextNode()\n  {\n  \tif(m_foundLast)\n  \t\treturn DTM.NULL;\n\n    int earliestNode = DTM.NULL;\n\n    if (null != m_iterators)\n    {\n      int n = m_iterators.length;\n      int iteratorUsed = -1;\n\n      for (int i = 0; i < n; i++)\n      {\n        int node = m_iterators[i].getCurrentNode();\n\n        if (DTM.NULL == node)\n          continue;\n        else if (DTM.NULL == earliestNode)\n        {\n          iteratorUsed = i;\n          earliestNode = node;\n        }\n        else\n        {\n          if (node == earliestNode)\n          {\n\n            m_iterators[i].nextNode();\n          }\n          else\n          {\n            DTM dtm = getDTM(node);\n\n            if (dtm.isNodeAfter(node, earliestNode))\n            {\n              iteratorUsed = i;\n              earliestNode = node;\n            }\n          }\n        }\n      }\n\n      if (DTM.NULL != earliestNode)\n      {\n        m_iterators[iteratorUsed].nextNode();\n\n        incrementCurrentPos();\n      }\n      else\n        m_foundLast = true;\n    }\n\n    m_lastFetched = earliestNode;\n\n    return earliestNode;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "ASSIGN", "BINARY_OP", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [8, 13], [9, 14], [8, 15], [9, 16], [9, 17], [10, 18], [15, 19], [8, 20], [16, 21], [16, 22], [16, 23], [9, 24], [8, 25], [21, 26], [21, 27], [17, 28], [27, 29], [21, 30], [21, 31], [27, 32], [27, 33], [32, 34], [33, 35], [27, 36], [32, 37], [32, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 8], [14, 9], [15, 8], [16, 9], [17, 9], [18, 10], [19, 15], [20, 8], [21, 16], [22, 16], [23, 16], [24, 9], [25, 8], [26, 21], [27, 21], [28, 17], [29, 27], [30, 21], [31, 21], [32, 27], [33, 27], [34, 32], [35, 33], [36, 27], [37, 32], [38, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    for (int i = 0; i < m_exprs.length; i++) \n    {\n      m_exprs[i].fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getAxis", "code": "  public int getAxis()\n  {\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \t \tif(visitor.visitUnionPath(owner, this))\n  \t \t{\n  \t \t\tif(null != m_exprs)\n  \t \t\t{\n  \t \t\t\tint n = m_exprs.length;\n  \t \t\t\tfor(int i = 0; i < n; i++)\n  \t \t\t\t{\n  \t \t\t\t\tm_exprs[i].callVisitors(new iterOwner(i), visitor);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [5, 7], [5, 8], [6, 9], [7, 10], [7, 11], [7, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 5], [8, 5], [9, 6], [10, 7], [11, 7], [12, 7], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "deepEquals", "code": "    public boolean deepEquals(Expression expr)\n    {\n      if (!super.deepEquals(expr))\n            return false;\n\n      UnionPathIterator upi = (UnionPathIterator) expr;\n\n      if (null != m_exprs)\n      {\n        int n = m_exprs.length;\n        \n        if((null == upi.m_exprs) || (upi.m_exprs.length != n))\n        \treturn false;\n        \n        for (int i = 0; i < n; i++)\n        {\n          if(!m_exprs[i].deepEquals(upi.m_exprs[i]))\n          \treturn false;\n        }\n      }\n      else if (null != upi.m_exprs)\n      {\n          return false;\n      }\n\n      return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [7, 10], [2, 11], [2, 12], [2, 13], [8, 14], [9, 15], [7, 16], [10, 17], [11, 18], [12, 19], [12, 20], [16, 21], [11, 22], [19, 23], [20, 24], [20, 25], [22, 26], [11, 27], [25, 28], [26, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 7], [11, 2], [12, 2], [13, 2], [14, 8], [15, 9], [16, 7], [17, 10], [18, 11], [19, 12], [20, 12], [21, 16], [22, 11], [23, 19], [24, 20], [25, 20], [26, 22], [27, 11], [28, 25], [29, 26], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "UnionPathIterator", "code": "  public UnionPathIterator()\n  {\n\n    super();\n\n    m_iterators = null;\n    m_exprs = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "UnionPathIterator", "code": "  public UnionPathIterator(Compiler compiler, int opPos)\n          throws javax.xml.transform.TransformerException\n  {\n\n    super();\n\n    opPos = compiler.getFirstChildPos(opPos);\n\n    loadLocationPaths(compiler, opPos, 0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "camel-1.4-2560", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/xmpp/XmppMessage.java", "language": "java", "name": "org.apache.camel.component.xmpp.XmppMessage", "code": "public class XmppMessage extends DefaultMessage {\n    private Message xmppMessage;\n\n    public XmppMessage() {\n        this(new Message());\n    }\n\n    public XmppMessage(Message jmsMessage) {\n        this.xmppMessage = jmsMessage;\n    }\n\n    @Override\n    public String toString() {\n        if (xmppMessage != null) {\n            return \"XmppMessage: \" + xmppMessage;\n        } else {\n            return \"XmppMessage: \" + getBody();\n        }\n    }\n\n    @Override\n    public XmppExchange getExchange() {\n        return (XmppExchange)super.getExchange();\n    }\n\n    /**\n     * Returns the underlying XMPP message\n     * \n     * @return the underlying XMPP message\n     */\n    public Message getXmppMessage() {\n        return xmppMessage;\n    }\n\n    public void setXmppMessage(Message xmppMessage) {\n        this.xmppMessage = xmppMessage;\n    }\n\n    public Object getHeader(String name) {\n        return xmppMessage.getProperty(name);\n    }\n\n    @Override\n    public void setHeader(String name, Object value) {\n        if (value == null) {\n            xmppMessage.deleteProperty(name);\n        } else {\n            xmppMessage.setProperty(name, value);\n        }\n    }\n\n    @Override\n    public Map<String, Object> getHeaders() {\n        Map<String, Object> answer = new HashMap<String, Object>();\n        Iterator iter = xmppMessage.getPropertyNames();\n        while (iter.hasNext()) {\n            String name = (String)iter.next();\n            answer.put(name, xmppMessage.getProperty(name));\n        }\n        return answer;\n    }\n\n    @Override\n    public XmppMessage newInstance() {\n        return new XmppMessage();\n    }\n\n    @Override\n    protected Object createBody() {\n        if (xmppMessage != null) {\n            return getExchange().getBinding().extractBodyFromXmpp(getExchange(), xmppMessage);\n        }\n        return null;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        if (xmppMessage != null) {\n            return \"XmppMessage: \" + xmppMessage;\n        } else {\n            return \"XmppMessage: \" + getBody();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getExchange", "code": "    @Override\n    public XmppExchange getExchange() {\n        return (XmppExchange)super.getExchange();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXmppMessage", "code": "    public Message getXmppMessage() {\n        return xmppMessage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXmppMessage", "code": "    public void setXmppMessage(Message xmppMessage) {\n        this.xmppMessage = xmppMessage;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeader", "code": "    public Object getHeader(String name) {\n        return xmppMessage.getProperty(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setHeader", "code": "    @Override\n    public void setHeader(String name, Object value) {\n        if (value == null) {\n            xmppMessage.deleteProperty(name);\n        } else {\n            xmppMessage.setProperty(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getHeaders", "code": "    @Override\n    public Map<String, Object> getHeaders() {\n        Map<String, Object> answer = new HashMap<String, Object>();\n        Iterator iter = xmppMessage.getPropertyNames();\n        while (iter.hasNext()) {\n            String name = (String)iter.next();\n            answer.put(name, xmppMessage.getProperty(name));\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [4, 8], [2, 9], [9, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 4], [9, 2], [10, 9], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "newInstance", "code": "    @Override\n    public XmppMessage newInstance() {\n        return new XmppMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createBody", "code": "    @Override\n    protected Object createBody() {\n        if (xmppMessage != null) {\n            return getExchange().getBinding().extractBodyFromXmpp(getExchange(), xmppMessage);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [7, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 7], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "XmppMessage", "code": "    public XmppMessage() {\n        this(new Message());", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XmppMessage", "code": "    public XmppMessage(Message jmsMessage) {\n        this.xmppMessage = jmsMessage;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6079", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/PrecisionRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.PrecisionRecord", "code": "public class PrecisionRecord\n    extends Record\n{\n    public final static short sid = 0xE;\n    public short              field_1_precision;\n\n    public PrecisionRecord()\n    {\n    }\n\n    /**\n     * Constructs a Precision record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xe or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public PrecisionRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PRECISION RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_precision = in.readShort();\n    }\n\n    /**\n     * set whether to use full precision or just skew all you figures all to hell.\n     *\n     * @param fullprecision - or not\n     */\n\n    public void setFullPrecision(boolean fullprecision)\n    {\n        if (fullprecision == true)\n        {\n            field_1_precision = 1;\n        }\n        else\n        {\n            field_1_precision = 0;\n        }\n    }\n\n    /**\n     * get whether to use full precision or just skew all you figures all to hell.\n     *\n     * @return fullprecision - or not\n     */\n\n    public boolean getFullPrecision()\n    {\n        return (field_1_precision == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PRECISION]\\n\");\n        buffer.append(\"    .precision       = \").append(getFullPrecision())\n            .append(\"\\n\");\n        buffer.append(\"[/PRECISION]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_precision);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PRECISION RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_precision = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFullPrecision", "code": "    public void setFullPrecision(boolean fullprecision)\n    {\n        if (fullprecision == true)\n        {\n            field_1_precision = 1;\n        }\n        else\n        {\n            field_1_precision = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getFullPrecision", "code": "    public boolean getFullPrecision()\n    {\n        return (field_1_precision == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PRECISION]\\n\");\n        buffer.append(\"    .precision       = \").append(getFullPrecision())\n            .append(\"\\n\");\n        buffer.append(\"[/PRECISION]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_precision);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "PrecisionRecord", "code": "    public PrecisionRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PrecisionRecord", "code": "    public PrecisionRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "jedit-3.2-3700", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "bsh/BSHIfStatement.java", "language": "java", "name": "bsh.BSHIfStatement", "code": "class BSHIfStatement extends SimpleNode\n{\n    BSHIfStatement(int id) { super(id); }\n\n    public Object eval(CallStack callstack, Interpreter interpreter)  \n\t\tthrows EvalError\n    {\n        Object ret = null;\n\n        if( evaluateCondition( \n\t\t\t(SimpleNode)jjtGetChild(0), callstack, interpreter ) )\n            ret = ((SimpleNode)jjtGetChild(1)).eval(callstack, interpreter);\n        else\n            if(jjtGetNumChildren() > 2)\n                ret = ((SimpleNode)jjtGetChild(2)).eval(callstack, interpreter);\n\n        if(ret instanceof ReturnControl)\n            return ret;\n        else    \n            return Primitive.VOID;\n    }\n\n    public static boolean evaluateCondition(\n\t\tSimpleNode condExp, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError\n    {\n        Object obj = condExp.eval(callstack, interpreter);\n        if(obj instanceof Primitive) {\n\t\t\tif ( obj == Primitive.VOID )\n\t\t\t\tthrow new EvalError(\"Condition evaluates to void type\", condExp );\n            obj = ((Primitive)obj).getValue();\n\t\t}\n\n        if(obj instanceof Boolean)\n            return ((Boolean)obj).booleanValue();\n        else\n            throw new EvalError(\n\t\t\t\t\"Condition must evaluate to a Boolean or boolean.\", condExp );", "functions": [{"function_name": "eval", "code": "    public Object eval(CallStack callstack, Interpreter interpreter)  \n\t\tthrows EvalError\n    {\n        Object ret = null;\n\n        if( evaluateCondition( \n\t\t\t(SimpleNode)jjtGetChild(0), callstack, interpreter ) )\n            ret = ((SimpleNode)jjtGetChild(1)).eval(callstack, interpreter);\n        else\n            if(jjtGetNumChildren() > 2)\n                ret = ((SimpleNode)jjtGetChild(2)).eval(callstack, interpreter);\n\n        if(ret instanceof ReturnControl)\n            return ret;\n        else    \n            return Primitive.VOID;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [2, 10], [9, 11], [2, 12], [3, 13], [9, 14], [11, 15], [11, 16], [10, 17], [12, 18], [17, 19], [14, 20], [18, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 2], [11, 9], [12, 2], [13, 3], [14, 9], [15, 11], [16, 11], [17, 10], [18, 12], [19, 17], [20, 14], [21, 18], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "evaluateCondition", "code": "    public static boolean evaluateCondition(\n\t\tSimpleNode condExp, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError\n    {\n        Object obj = condExp.eval(callstack, interpreter);\n        if(obj instanceof Primitive) {\n\t\t\tif ( obj == Primitive.VOID )\n\t\t\t\tthrow new EvalError(\"Condition evaluates to void type\", condExp );\n            obj = ((Primitive)obj).getValue();\n\t\t}\n\n        if(obj instanceof Boolean)\n            return ((Boolean)obj).booleanValue();\n        else\n            throw new EvalError(\n\t\t\t\t\"Condition must evaluate to a Boolean or boolean.\", condExp );", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [7, 11], [2, 12], [3, 13], [11, 14], [2, 15], [12, 16], [12, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 7], [12, 2], [13, 3], [14, 11], [15, 2], [16, 12], [17, 12], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "BSHIfStatement", "code": "    BSHIfStatement(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.0-3803", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/gui/FloatingWindowContainer.java", "language": "java", "name": "org.gjt.sp.jedit.gui.FloatingWindowContainer", "code": "public class FloatingWindowContainer extends JFrame implements DockableWindowContainer\n{\n\tpublic FloatingWindowContainer(DockableWindowManager dockableWindowManager)\n\t{\n\t\tthis.dockableWindowManager = dockableWindowManager;\n\t\tsetIconImage(GUIUtilities.getPluginIcon());\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t}\n\n\tpublic void register(DockableWindowManager.Entry entry)\n\t{\n\t\tthis.entry = entry;\n\t\tsetTitle(entry.title);\n\n\t\tgetContentPane().add(BorderLayout.CENTER,entry.win);\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,entry.name);\n\t\tshow();\n\t}\n\n\tpublic void add(DockableWindowManager.Entry entry)\n\t{\n\t}\n\n\tpublic void save(DockableWindowManager.Entry entry)\n\t{\n\t\tGUIUtilities.saveGeometry(this,entry.name);\n\t}\n\n\tpublic void remove(DockableWindowManager.Entry entry)\n\t{\n\t\tsuper.dispose();\n\t}\n\n\tpublic void show(final DockableWindowManager.Entry entry)\n\t{\n\t\ttoFront();\n\t\trequestFocus();\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic boolean isVisible(DockableWindowManager.Entry entry)\n\t{\n\t\treturn true;\n\t}\n\n\tpublic void dispose()\n\t{\n\t\tdockableWindowManager.removeDockableWindow(entry.name);\n\t\t// eventually calls this.remove() which calls\n\t\t// super.dispose().\n\t}\n\n\t// private members\n\tprivate DockableWindowManager dockableWindowManager;\n\tprivate DockableWindowManager.Entry entry;", "functions": [{"function_name": "register", "code": "\tpublic void register(DockableWindowManager.Entry entry)\n\t{\n\t\tthis.entry = entry;\n\t\tsetTitle(entry.title);\n\n\t\tgetContentPane().add(BorderLayout.CENTER,entry.win);\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,entry.name);\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "add", "code": "\tpublic void add(DockableWindowManager.Entry entry)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "save", "code": "\tpublic void save(DockableWindowManager.Entry entry)\n\t{\n\t\tGUIUtilities.saveGeometry(this,entry.name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "remove", "code": "\tpublic void remove(DockableWindowManager.Entry entry)\n\t{\n\t\tsuper.dispose();", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "show", "code": "\tpublic void show(final DockableWindowManager.Entry entry)\n\t{\n\t\ttoFront();\n\t\trequestFocus();\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tentry.win.requestDefaultFocus();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isVisible", "code": "\tpublic boolean isVisible(DockableWindowManager.Entry entry)\n\t{\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispose", "code": "\tpublic void dispose()\n\t{\n\t\tdockableWindowManager.removeDockableWindow(entry.name);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FloatingWindowContainer", "code": "\tpublic FloatingWindowContainer(DockableWindowManager dockableWindowManager)\n\t{\n\t\tthis.dockableWindowManager = dockableWindowManager;\n\t\tsetIconImage(GUIUtilities.getPluginIcon());\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "camel-1.2-1728", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/resequencer/Sequence.java", "language": "java", "name": "org.apache.camel.processor.resequencer.Sequence", "code": "public class Sequence<E> extends TreeSet<E> {\n\n    private static final long serialVersionUID = 5647393631147741711L;\n\n    private SequenceElementComparator<E> comparator;\n    \n    /**\n     * Creates a new {@link Sequence} instance.\n     * \n     * @param comparator a strategy for comparing elements of this sequence.\n     */\n    public Sequence(SequenceElementComparator<E> comparator) {\n        super(comparator);\n        this.comparator = comparator;\n    }\n    \n    /**\n     * Returns the immediate predecessor of the given element in this sequence\n     * or <code>null</code> if no predecessor exists.\n     * \n     * @param e an element which is compared to elements of this sequence.\n     * @return an element of this sequence or <code>null</code>.\n     */\n    public E predecessor(E e) {\n        E elem = lower(e);\n        if (elem == null) {\n            return null;\n        }\n        if (comparator.predecessor(elem, e)) {\n            return elem;\n        }\n        return null;\n    }\n    \n    /**\n     * Returns the immediate successor of the given element in this sequence\n     * or <code>null</code> if no successor exists.\n     * \n     * @param e an element which is compared to elements of this sequence.\n     * @return an element of this sequence or <code>null</code>.\n     */\n    public E successor(E e) {\n        E elem = higher(e);\n        if (elem == null) {\n            return null;\n        }\n        if (comparator.successor(elem, e)) {\n            return elem;\n        }\n        return null;\n    }\n    \n    /**\n     * Returns this sequence's comparator.\n     * \n     * @return this sequence's comparator.\n     */\n    public SequenceElementComparator<E> comparator() {\n        return comparator;\n    }\n\n    /**\n     * Returns the next higher element in the sequence to the given element. If\n     * the given element doesn't exist or if it is the last element in the\n     * sequence <code>null</code> is returned. <strong>Please note that this\n     * method is provided for compatibility with Java 5 SE. On a Java 6 SE\n     * platform the same method implemented by the {@link TreeSet}\n     * class should be used for better performance.</strong>\n     * \n     * @param e an element which is compared to elements of this sequence.\n     * @return an element of this sequence or <code>null</code>.\n     */\n    public E higher(E e) {\n        boolean found = false;\n        for (E current : this) {\n            if (found) {\n                return current;\n            }\n            if (comparator.compare(e, current) == 0) {\n                found = true;\n            }\n        }\n        return null;\n    }\n\n    /**\n     * Returns the next lower element in the sequence to the given element. If\n     * the given element doesn't exist or if it is the first element in the\n     * sequence <code>null</code> is returned. <strong>Please note that this\n     * method is provided for compatibility with Java 5 SE. On a Java 6 SE\n     * platform the same method implemented by the {@link TreeSet}\n     * class should be used for better performance.</strong>\n     * \n     * @param e an element which is compared to elements of this sequence.\n     * @return an element of this sequence or <code>null</code>.\n     */\n    public E lower(E e) {\n        E last = null;\n        for (E current : this) {\n            if (comparator.compare(e, current) == 0) {\n                return last;\n            }\n            last = current;\n        }\n        return last;", "functions": [{"function_name": "predecessor", "code": "    public E predecessor(E e) {\n        E elem = lower(e);\n        if (elem == null) {\n            return null;\n        }\n        if (comparator.predecessor(elem, e)) {\n            return elem;\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [3, 10], [8, 11], [4, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 3], [11, 8], [12, 4], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "successor", "code": "    public E successor(E e) {\n        E elem = higher(e);\n        if (elem == null) {\n            return null;\n        }\n        if (comparator.successor(elem, e)) {\n            return elem;\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [3, 10], [8, 11], [4, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 3], [11, 8], [12, 4], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "comparator", "code": "    public SequenceElementComparator<E> comparator() {\n        return comparator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "higher", "code": "    public E higher(E e) {\n        boolean found = false;\n        for (E current : this) {\n            if (found) {\n                return current;\n            }\n            if (comparator.compare(e, current) == 0) {\n                found = true;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [6, 9], [9, 10], [9, 11], [7, 12], [6, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 6], [10, 9], [11, 9], [12, 7], [13, 6], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "lower", "code": "    public E lower(E e) {\n        E last = null;\n        for (E current : this) {\n            if (comparator.compare(e, current) == 0) {\n                return last;\n            }\n            last = current;\n        }\n        return last;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [2, 7], [5, 8], [5, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 2], [8, 5], [9, 5], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "Sequence", "code": "    public Sequence(SequenceElementComparator<E> comparator) {\n        super(comparator);\n        this.comparator = comparator;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8395", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/transformer/Counter.java", "language": "java", "name": "org.apache.xalan.transformer.Counter", "code": "public class Counter\n{\n\n  /**\n   * Set the maximum ammount the m_countNodes list can\n   * grow to.\n   */\n  static final int MAXCOUNTNODES = 500;\n\n  /**\n   * The start count from where m_countNodes counts\n   * from.  In other words, the count of a given node\n   * in the m_countNodes vector is node position +\n   * m_countNodesStartCount.\n   */\n  int m_countNodesStartCount = 0;\n\n  /**\n   * A vector of all nodes counted so far.\n   */\n  NodeSetDTM m_countNodes;\n\n  /**\n   * The node from where the counting starts.  This is needed to\n   * find a counter if the node being counted is not immediatly\n   * found in the m_countNodes vector.\n   */\n  int m_fromNode = DTM.NULL;\n\n  /**\n   * The owning xsl:number element.\n   */\n  ElemNumber m_numberElem;\n\n  /**\n   * Value to store result of last getCount call, for benifit\n   * of returning val from CountersTable.getCounterByCounted,\n   * who calls getCount.\n   */\n  int m_countResult;\n\n  /**\n   * Construct a counter object.\n   *\n   * @param numberElem The owning xsl:number element. \n   * @param countNodes A vector of all nodes counted so far.\n   *\n   * @throws TransformerException\n   */\n  Counter(ElemNumber numberElem, NodeSetDTM countNodes) throws TransformerException\n  {\n    m_countNodes = countNodes;\n    m_numberElem = numberElem;\n  }\n\n  /**\n   * Construct a counter object.\n   *\n   * @param numberElem The owning xsl:number element. \n   *\n   * @throws TransformerException\n   *\n  Counter(ElemNumber numberElem) throws TransformerException\n  {\n    m_numberElem = numberElem;\n  }*/\n\n  /**\n   * Try and find a node that was previously counted. If found,\n   * return a positive integer that corresponds to the count.\n   *\n   * @param support The XPath context to use\n   * @param node The node to be counted.\n   * \n   * @return The count of the node, or -1 if not found.\n   */\n  int getPreviouslyCounted(XPathContext support, int node)\n  {\n\n    int n = m_countNodes.size();\n\n    m_countResult = 0;\n\n    for (int i = n - 1; i >= 0; i--)\n    {\n      int countedNode = m_countNodes.elementAt(i);\n\n      if (node == countedNode)\n      {\n\n        m_countResult = i + 1 + m_countNodesStartCount;\n\n        break;\n      }\n      \n      DTM dtm = support.getDTM(countedNode);\n\n      if (dtm.isNodeAfter(countedNode, node))\n        break;\n    }\n\n    return m_countResult;\n  }\n\n  /**\n   * Get the last node in the list.\n   *\n   * @return the last node in the list.\n   */\n  int getLast()\n  {\n\n    int size = m_countNodes.size();\n\n    return (size > 0) ? m_countNodes.elementAt(size - 1) : DTM.NULL;", "functions": [{"function_name": "getPreviouslyCounted", "code": "  int getPreviouslyCounted(XPathContext support, int node)\n  {\n\n    int n = m_countNodes.size();\n\n    m_countResult = 0;\n\n    for (int i = n - 1; i >= 0; i--)\n    {\n      int countedNode = m_countNodes.elementAt(i);\n\n      if (node == countedNode)\n      {\n\n        m_countResult = i + 1 + m_countNodesStartCount;\n\n        break;\n      }\n      \n      DTM dtm = support.getDTM(countedNode);\n\n      if (dtm.isNodeAfter(countedNode, node))\n        break;\n    }\n\n    return m_countResult;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [7, 13], [3, 14], [8, 15], [8, 16], [10, 17], [2, 18], [9, 19], [10, 20], [11, 21], [18, 22], [10, 23], [23, 24], [24, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 7], [14, 3], [15, 8], [16, 8], [17, 10], [18, 2], [19, 9], [20, 10], [21, 11], [22, 18], [23, 10], [24, 23], [25, 24], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getLast", "code": "  int getLast()\n  {\n\n    int size = m_countNodes.size();\n\n    return (size > 0) ? m_countNodes.elementAt(size - 1) : DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [4, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 4], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "Counter", "code": "  Counter(ElemNumber numberElem, NodeSetDTM countNodes) throws TransformerException\n  {\n    m_countNodes = countNodes;\n    m_numberElem = numberElem;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-1.5-5218", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/MulRKRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.MulRKRecord", "code": "public class MulRKRecord\n    extends Record\n{\n    public final static short sid = 0xbd;\n    private short             field_1_row;\n    private short             field_2_first_col;\n    private ArrayList         field_3_rks;\n    private short             field_4_last_col;\n\n    /** Creates new MulRKRecord */\n\n    public MulRKRecord()\n    {\n    }\n\n    /**\n     * Constructs a MulRK record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xbd or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public MulRKRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a MulRK record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xbd or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of data\n     */\n\n    public MulRKRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    public short getRow()\n    {\n        return field_1_row;\n    }\n\n    /**\n     * starting column (first cell this holds in the row)\n     * @return first column number\n     */\n\n    public short getFirstColumn()\n    {\n        return field_2_first_col;\n    }\n\n    /**\n     * ending column (last cell this holds in the row)\n     * @return first column number\n     */\n\n    public short getLastColumn()\n    {\n        return field_4_last_col;\n    }\n\n    /**\n     * get the number of columns this contains (last-first +1)\n     * @return number of columns (last - first +1)\n     */\n\n    public int getNumColumns()\n    {\n        return field_4_last_col - field_2_first_col + 1;\n    }\n\n    /**\n     * returns the xf index for column (coffset = column - field_2_first_col)\n     * @return the XF index for the column\n     */\n\n    public short getXFAt(int coffset)\n    {\n        return (( RkRec ) field_3_rks.get(coffset)).xf;\n    }\n\n    /**\n     * returns the rk number for column (coffset = column - field_2_first_col)\n     * @return the value (decoded into a double)\n     */\n\n    public double getRKNumberAt(int coffset)\n    {\n        return RKUtil.decodeNumber((( RkRec ) field_3_rks.get(coffset)).rk);\n    }\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     */\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_row       = LittleEndian.getShort(data, 0 + offset);\n        field_2_first_col = LittleEndian.getShort(data, 2 + offset);\n        field_3_rks       = parseRKs(data, 4, offset, size);\n        field_4_last_col  = LittleEndian.getShort(data,\n                                                  (field_3_rks.size() * 6)\n                                                  + 4 + offset);\n    }\n\n    private ArrayList parseRKs(byte [] data, int offset, int recoffset,\n                               short size)\n    {\n        ArrayList retval = new ArrayList();\n\n        for (; offset < size - 2; )\n        {\n            RkRec rec = new RkRec();\n\n            rec.xf = LittleEndian.getShort(data, offset + recoffset);\n            offset += 2;\n            rec.rk = LittleEndian.getInt(data, offset + recoffset);\n            offset += 4;\n            retval.add(rec);\n        }\n        return retval;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[MULRK]\\n\");\n        buffer.append(\"firstcol  = \")\n            .append(Integer.toHexString(getFirstColumn())).append(\"\\n\");\n        buffer.append(\" lastcol  = \")\n            .append(Integer.toHexString(getLastColumn())).append(\"\\n\");\n        for (int k = 0; k < getNumColumns(); k++)\n        {\n            buffer.append(\"xf\").append(k).append(\"        = \")\n                .append(Integer.toHexString(getXFAt(k))).append(\"\\n\");\n            buffer.append(\"rk\").append(k).append(\"        = \")\n                .append(getRKNumberAt(k)).append(\"\\n\");\n        }\n        buffer.append(\"[/MULRK]\\n\");\n        return buffer.toString();\n    }\n\n    /**\n     * called by constructor, should throw runtime exception in the event of a\n     * record passed with a differing ID.\n     *\n     * @param id alleged id for this record\n     */\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a MulRKRecord!\");\n        }\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        throw new RecordFormatException(\n            \"Sorry, you can't serialize a MulRK in this release\");", "functions": [{"function_name": "getRow", "code": "    public short getRow()\n    {\n        return field_1_row;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstColumn", "code": "    public short getFirstColumn()\n    {\n        return field_2_first_col;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastColumn", "code": "    public short getLastColumn()\n    {\n        return field_4_last_col;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumColumns", "code": "    public int getNumColumns()\n    {\n        return field_4_last_col - field_2_first_col + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getXFAt", "code": "    public short getXFAt(int coffset)\n    {\n        return (( RkRec ) field_3_rks.get(coffset)).xf;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRKNumberAt", "code": "    public double getRKNumberAt(int coffset)\n    {\n        return RKUtil.decodeNumber((( RkRec ) field_3_rks.get(coffset)).rk);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_row       = LittleEndian.getShort(data, 0 + offset);\n        field_2_first_col = LittleEndian.getShort(data, 2 + offset);\n        field_3_rks       = parseRKs(data, 4, offset, size);\n        field_4_last_col  = LittleEndian.getShort(data,\n                                                  (field_3_rks.size() * 6)\n                                                  + 4 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [14, 17], [15, 18], [16, 19], [16, 20], [20, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [17, 14], [18, 15], [19, 16], [20, 16], [21, 20], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "parseRKs", "code": "    private ArrayList parseRKs(byte [] data, int offset, int recoffset,\n                               short size)\n    {\n        ArrayList retval = new ArrayList();\n\n        for (; offset < size - 2; )\n        {\n            RkRec rec = new RkRec();\n\n            rec.xf = LittleEndian.getShort(data, offset + recoffset);\n            offset += 2;\n            rec.rk = LittleEndian.getInt(data, offset + recoffset);\n            offset += 4;\n            retval.add(rec);\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [8, 10], [3, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [10, 17], [13, 18], [14, 19], [15, 20], [16, 21], [9, 22], [19, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 8], [11, 3], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 10], [18, 13], [19, 14], [20, 15], [21, 16], [22, 9], [23, 19], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[MULRK]\\n\");\n        buffer.append(\"firstcol  = \")\n            .append(Integer.toHexString(getFirstColumn())).append(\"\\n\");\n        buffer.append(\" lastcol  = \")\n            .append(Integer.toHexString(getLastColumn())).append(\"\\n\");\n        for (int k = 0; k < getNumColumns(); k++)\n        {\n            buffer.append(\"xf\").append(k).append(\"        = \")\n                .append(Integer.toHexString(getXFAt(k))).append(\"\\n\");\n            buffer.append(\"rk\").append(k).append(\"        = \")\n                .append(getRKNumberAt(k)).append(\"\\n\");\n        }\n        buffer.append(\"[/MULRK]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [0, 8], [0, 9], [5, 10], [6, 11], [7, 12], [7, 13], [7, 14], [8, 15], [8, 16], [8, 17], [9, 18], [3, 19], [2, 20], [2, 21], [2, 22], [13, 23], [14, 24], [16, 25], [17, 26], [20, 27], [20, 28], [20, 29], [20, 30], [20, 31], [21, 32], [21, 33], [21, 34], [21, 35], [21, 36], [24, 37], [26, 38], [28, 39], [29, 40], [30, 41], [33, 42], [34, 43], [35, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 0], [9, 0], [10, 5], [11, 6], [12, 7], [13, 7], [14, 7], [15, 8], [16, 8], [17, 8], [18, 9], [19, 3], [20, 2], [21, 2], [22, 2], [23, 13], [24, 14], [25, 16], [26, 17], [27, 20], [28, 20], [29, 20], [30, 20], [31, 20], [32, 21], [33, 21], [34, 21], [35, 21], [36, 21], [37, 24], [38, 26], [39, 28], [40, 29], [41, 30], [42, 33], [43, 34], [44, 35], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a MulRKRecord!\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        throw new RecordFormatException(\n            \"Sorry, you can't serialize a MulRK in this release\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "MulRKRecord", "code": "    public MulRKRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "MulRKRecord", "code": "    public MulRKRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "MulRKRecord", "code": "    public MulRKRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.1-4098", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/PastePrevious.java", "language": "java", "name": "org.gjt.sp.jedit.gui.PastePrevious", "code": "public class PastePrevious extends EnhancedDialog\nimplements ActionListener, ListSelectionListener, MouseListener\n{\n\t//{{{ PastePrevious constructor\n\tpublic PastePrevious(View view)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"pasteprev.title\"),true);\n\t\tthis.view = view;\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tclipHistory = HistoryModel.getModel(\"clipboard\");\n\n\t\tclips = new JList(new AbstractListModel() {\n\t\t\tpublic int getSize()\n\t\t\t{\n\t\t\t\treturn clipHistory.getSize();\n\t\t\t}\n\n\t\t\tpublic Object getElementAt(int index)\n\t\t\t{\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\t\tString item = clipHistory.getItem(index);\n\t\t\t\t// workaround for Swing rendering labels starting\n\t\t\t\t// with <html> using the HTML engine\n\t\t\t\tif(item.toLowerCase().startsWith(\"<html>\"))\n\t\t\t\t\tbuf.append(' ');\n\t\t\t\tboolean ws = true;\n\t\t\t\tfor(int i = 0; i < item.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tchar ch = item.charAt(i);\n\t\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ws)\n\t\t\t\t\t\t\t/* do nothing */;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuf.append(' ');\n\t\t\t\t\t\t\tws = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tws = false;\n\t\t\t\t\t\tbuf.append(ch);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn buf.toString();\n\t\t\t}\n\t\t});\n\n\t\tclips.setVisibleRowCount(16);\n\n\t\tclips.addMouseListener(this);\n\t\tclips.addListSelectionListener(this);\n\n\t\tinsert = new JButton(jEdit.getProperty(\"pasteprev.insert\"));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"pasteprev.caption\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,0));\n\t\tcontent.add(BorderLayout.NORTH,label);\n\n\t\tJScrollPane scroller = new JScrollPane(clips);\n\t\tDimension dim = scroller.getPreferredSize();\n\t\tscroller.setPreferredSize(new Dimension(640,dim.height));\n\n\t\tcontent.add(scroller, BorderLayout.CENTER);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,0,0,0));\n\t\tpanel.add(Box.createGlue());\n\t\tpanel.add(insert);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tpanel.add(cancel);\n\t\tpanel.add(Box.createGlue());\n\t\tcontent.add(panel, BorderLayout.SOUTH);\n\n\t\tif(clipHistory.getSize() >= 1)\n\t\t\tclips.setSelectedIndex(0);\n\t\tupdateButtons();\n\n\t\tgetRootPane().setDefaultButton(insert);\n\t\tinsert.addActionListener(this);\n\t\tcancel.addActionListener(this);\n\n\t\tGUIUtilities.requestFocus(this,clips);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tshow();\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\tint selected = clips.getSelectedIndex();\n\n\t\tif(selected == -1)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tString clip = clipHistory.getItem(selected);\n\t\tview.getTextArea().setSelectedText(clip);\n\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ actionPerformed() method\n\tpublic void actionPerformed(ActionEvent evt)\n\t{\n\t\tObject source = evt.getSource();\n\t\tif(source == insert)\n\t\t\tok();\n\t\telse if(source == cancel)\n\t\t\tcancel();\n\t} //}}}\n\n\t//{{{ mouseClicked() method\n\tpublic void mouseClicked(MouseEvent evt)\n\t{\n\t\tif(evt.getClickCount() == 2)\n\t\t\tok();\n\t} //}}}\n\n\t//{{{ Crap\n\tpublic void mouseEntered(MouseEvent evt) {}\n\tpublic void mouseExited(MouseEvent evt) {}\n\tpublic void mousePressed(MouseEvent evt) {}\n\tpublic void mouseReleased(MouseEvent evt) {}\n\t//}}}\n\n\t//{{{ valueChanged() method\n\tpublic void valueChanged(ListSelectionEvent evt)\n\t{\n\t\tupdateButtons();\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate View view;\n\tprivate JList clips;\n\tprivate HistoryModel clipHistory;\n\tprivate JButton insert;\n\tprivate JButton cancel;\n\t//}}}\n\n\t//{{{ updateButtons() method\n\tprivate void updateButtons()\n\t{\n\t\tint selected = clips.getSelectedIndex();\n\t\tinsert.setEnabled(selected != -1);", "functions": [{"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tint selected = clips.getSelectedIndex();\n\n\t\tif(selected == -1)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tString clip = clipHistory.getItem(selected);\n\t\tview.getTextArea().setSelectedText(clip);\n\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [5, 7], [1, 8], [2, 9], [6, 10], [3, 11], [2, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 5], [8, 1], [9, 2], [10, 6], [11, 3], [12, 2], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "actionPerformed", "code": "\tpublic void actionPerformed(ActionEvent evt)\n\t{\n\t\tObject source = evt.getSource();\n\t\tif(source == insert)\n\t\t\tok();\n\t\telse if(source == cancel)\n\t\t\tcancel();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [2, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 2], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "mouseClicked", "code": "\tpublic void mouseClicked(MouseEvent evt)\n\t{\n\t\tif(evt.getClickCount() == 2)\n\t\t\tok();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "mouseEntered", "code": "\tpublic void mouseEntered(MouseEvent evt) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "mouseExited", "code": "\tpublic void mouseExited(MouseEvent evt) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "mousePressed", "code": "\tpublic void mousePressed(MouseEvent evt) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "mouseReleased", "code": "\tpublic void mouseReleased(MouseEvent evt) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "valueChanged", "code": "\tpublic void valueChanged(ListSelectionEvent evt)\n\t{\n\t\tupdateButtons();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "updateButtons", "code": "\tprivate void updateButtons()\n\t{\n\t\tint selected = clips.getSelectedIndex();\n\t\tinsert.setEnabled(selected != -1);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "PastePrevious", "code": "\tpublic PastePrevious(View view)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"pasteprev.title\"),true);\n\t\tthis.view = view;\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tclipHistory = HistoryModel.getModel(\"clipboard\");\n\n\t\tclips = new JList(new AbstractListModel() {\n\t\t\tpublic int getSize()\n\t\t\t{\n\t\t\t\treturn clipHistory.getSize();\n\t\t\t}\n\n\t\t\tpublic Object getElementAt(int index)\n\t\t\t{\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\t\tString item = clipHistory.getItem(index);\n\t\t\t\t// workaround for Swing rendering labels starting\n\t\t\t\t// with <html> using the HTML engine\n\t\t\t\tif(item.toLowerCase().startsWith(\"<html>\"))\n\t\t\t\t\tbuf.append(' ');\n\t\t\t\tboolean ws = true;\n\t\t\t\tfor(int i = 0; i < item.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tchar ch = item.charAt(i);\n\t\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ws)\n\t\t\t\t\t\t\t/* do nothing */;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbuf.append(' ');\n\t\t\t\t\t\t\tws = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tws = false;\n\t\t\t\t\t\tbuf.append(ch);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn buf.toString();\n\t\t\t}\n\t\t});\n\n\t\tclips.setVisibleRowCount(16);\n\n\t\tclips.addMouseListener(this);\n\t\tclips.addListSelectionListener(this);\n\n\t\tinsert = new JButton(jEdit.getProperty(\"pasteprev.insert\"));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"pasteprev.caption\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,0));\n\t\tcontent.add(BorderLayout.NORTH,label);\n\n\t\tJScrollPane scroller = new JScrollPane(clips);\n\t\tDimension dim = scroller.getPreferredSize();\n\t\tscroller.setPreferredSize(new Dimension(640,dim.height));\n\n\t\tcontent.add(scroller, BorderLayout.CENTER);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,0,0,0));\n\t\tpanel.add(Box.createGlue());\n\t\tpanel.add(insert);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tpanel.add(cancel);\n\t\tpanel.add(Box.createGlue());\n\t\tcontent.add(panel, BorderLayout.SOUTH);\n\n\t\tif(clipHistory.getSize() >= 1)\n\t\t\tclips.setSelectedIndex(0);\n\t\tupdateButtons();\n\n\t\tgetRootPane().setDefaultButton(insert);\n\t\tinsert.addActionListener(this);\n\t\tcancel.addActionListener(this);\n\n\t\tGUIUtilities.requestFocus(this,clips);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [14, 41], [1, 42], [16, 43], [16, 44], [18, 45], [20, 46], [22, 47], [23, 48], [24, 49], [2, 50], [26, 51], [3, 52], [4, 53], [28, 54], [5, 55], [29, 56], [30, 57], [33, 58], [34, 59], [35, 60], [37, 61], [6, 62], [40, 63], [42, 64], [46, 65], [48, 66], [48, 67], [48, 68], [48, 69], [51, 70], [54, 71], [54, 72], [54, 73], [54, 74], [55, 75], [56, 76], [57, 77], [59, 78], [60, 79], [61, 80], [61, 81], [61, 82], [61, 83], [62, 84], [75, 85], [76, 86], [77, 87], [78, 88], [78, 89], [88, 90], [88, 91], [88, 92], [88, 93], [88, 94], [88, 95], [88, 96], [89, 97], [90, 98], [91, 99], [93, 100], [97, 101], [91, 102], [91, 103], [99, 104], [92, 105], [93, 106], [100, 107], [94, 108], [95, 109], [102, 110], [91, 111], [106, 112], [107, 113], [102, 114], [103, 115], [102, 116], [102, 117], [117, 118], [114, 119], [114, 120], [119, 121], [120, 122], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 14], [42, 1], [43, 16], [44, 16], [45, 18], [46, 20], [47, 22], [48, 23], [49, 24], [50, 2], [51, 26], [52, 3], [53, 4], [54, 28], [55, 5], [56, 29], [57, 30], [58, 33], [59, 34], [60, 35], [61, 37], [62, 6], [63, 40], [64, 42], [65, 46], [66, 48], [67, 48], [68, 48], [69, 48], [70, 51], [71, 54], [72, 54], [73, 54], [74, 54], [75, 55], [76, 56], [77, 57], [78, 59], [79, 60], [80, 61], [81, 61], [82, 61], [83, 61], [84, 62], [85, 75], [86, 76], [87, 77], [88, 78], [89, 78], [90, 88], [91, 88], [92, 88], [93, 88], [94, 88], [95, 88], [96, 88], [97, 89], [98, 90], [99, 91], [100, 93], [101, 97], [102, 91], [103, 91], [104, 99], [105, 92], [106, 93], [107, 100], [108, 94], [109, 95], [110, 102], [111, 91], [112, 106], [113, 107], [114, 102], [115, 103], [116, 102], [117, 102], [118, 117], [119, 114], [120, 114], [121, 119], [122, 120], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122]]}], "label": 0}
{"sample_id": "camel-1.6-3066", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/util/jndi/JndiContext.java", "language": "java", "name": "org.apache.camel.util.jndi.JndiContext", "code": "public class JndiContext implements Context, Serializable {\n    public static final String SEPARATOR = \"/\";\n    protected static final NameParser NAME_PARSER = new NameParser() {\n        public Name parse(String name) throws NamingException {\n            return new CompositeName(name);\n        }\n    };\n    protected static final Injector INJETOR = new ReflectionInjector();\n    private static final long serialVersionUID = -5754338187296859149L;\n\n    private boolean frozen;\n    private String nameInNamespace = \"\";\n\n    public JndiContext() throws Exception {\n        this(new Hashtable());\n    }\n\n    public JndiContext(Hashtable env) throws Exception {\n        this(env, createBindingsMapFromEnvironment(env));\n    }\n\n    public JndiContext(Hashtable environment, Map bindings) {\n        if (environment == null) {\n            this.environment = new Hashtable();\n        } else {\n            this.environment = new Hashtable(environment);\n        }\n        this.bindings = bindings;\n        treeBindings = new HashMap();\n    }\n\n    public JndiContext(Hashtable environment, Map bindings, String nameInNamespace) {\n        this(environment, bindings);\n        this.nameInNamespace = nameInNamespace;\n    }\n\n    protected JndiContext(JndiContext clone, Hashtable env) {\n        this.bindings = clone.bindings;\n        this.treeBindings = clone.treeBindings;\n        this.environment = new Hashtable(env);\n    }\n\n    protected JndiContext(JndiContext clone, Hashtable env, String nameInNamespace) {\n        this(clone, env);\n        this.nameInNamespace = nameInNamespace;\n    }\n\n    /**\n     * A helper method to create the JNDI bindings from the input environment\n     * properties using $foo.class to point to a class name with $foo.* being\n     * properties set on the injected bean\n     */\n    public static Map createBindingsMapFromEnvironment(Hashtable env) throws Exception {\n        Map answer = new HashMap(env);\n\n        for (Object object : env.entrySet()) {\n            Map.Entry entry = (Map.Entry)object;\n            Object key = entry.getKey();\n            Object value = entry.getValue();\n\n            if (key instanceof String && value instanceof String) {\n                String keyText = (String)key;\n                String valueText = (String)value;\n                if (keyText.endsWith(\".class\")) {\n                    Class<?> type = ObjectHelper.loadClass(valueText);\n                    if (type != null) {\n                        String newEntry = keyText.substring(0, keyText.length() - \".class\".length());\n                        Object bean = createBean(type, answer, newEntry + \".\");\n                        if (bean != null) {\n                            answer.put(newEntry, bean);\n                        }\n                    }\n                }\n            }\n        }\n\n        return answer;\n    }\n\n    public void freeze() {\n        frozen = true;\n    }\n\n    boolean isFrozen() {\n        return frozen;\n    }\n\n    /**\n     * internalBind is intended for use only during setup or possibly by\n     * suitably synchronized superclasses. It binds every possible lookup into a\n     * map in each context. To do this, each context strips off one name segment\n     * and if necessary creates a new context for it. Then it asks that context\n     * to bind the remaining name. It returns a map containing all the bindings\n     * from the next context, plus the context it just created (if it in fact\n     * created it). (the names are suitably extended by the segment originally\n     * lopped off).\n     */\n    protected Map internalBind(String name, Object value) throws NamingException {\n        assert name != null && name.length() > 0;\n        assert !frozen;\n\n        Map newBindings = new HashMap();\n        int pos = name.indexOf('/');\n        if (pos == -1) {\n            if (treeBindings.put(name, value) != null) {\n                throw new NamingException(\"Something already bound at \" + name);\n            }\n            bindings.put(name, value);\n            newBindings.put(name, value);\n        } else {\n            String segment = name.substring(0, pos);\n            assert segment != null;\n            assert !segment.equals(\"\");\n            Object o = treeBindings.get(segment);\n            if (o == null) {\n                o = newContext();\n                treeBindings.put(segment, o);\n                bindings.put(segment, o);\n                newBindings.put(segment, o);\n            } else if (!(o instanceof JndiContext)) {\n                throw new NamingException(\"Something already bound where a subcontext should go\");\n            }\n            JndiContext defaultContext = (JndiContext)o;\n            String remainder = name.substring(pos + 1);\n            Map subBindings = defaultContext.internalBind(remainder, value);\n            for (Iterator iterator = subBindings.entrySet().iterator(); iterator.hasNext();) {\n                Map.Entry entry = (Map.Entry)iterator.next();\n                String subName = segment + \"/\" + (String)entry.getKey();\n                Object bound = entry.getValue();\n                treeBindings.put(subName, bound);\n                newBindings.put(subName, bound);\n            }\n        }\n        return newBindings;\n    }\n\n    protected JndiContext newContext() {\n        try {\n            return new JndiContext();\n        } catch (Exception e) {\n            throw new IllegalArgumentException(e);\n        }\n    }\n\n    public Object addToEnvironment(String propName, Object propVal) throws NamingException {\n        return environment.put(propName, propVal);\n    }\n\n    public Hashtable getEnvironment() throws NamingException {\n        return (Hashtable)environment.clone();\n    }\n\n    public Object removeFromEnvironment(String propName) throws NamingException {\n        return environment.remove(propName);\n    }\n\n    public Object lookup(String name) throws NamingException {\n        if (name.length() == 0) {\n            return this;\n        }\n        Object result = treeBindings.get(name);\n        if (result == null) {\n            result = bindings.get(name);\n        }\n        if (result == null) {\n            int pos = name.indexOf(':');\n            if (pos > 0) {\n                String scheme = name.substring(0, pos);\n                Context ctx = NamingManager.getURLContext(scheme, environment);\n                if (ctx == null) {\n                    throw new NamingException(\"scheme \" + scheme + \" not recognized\");\n                }\n                return ctx.lookup(name);\n            } else {\n                CompositeName path = new CompositeName(name);\n\n                if (path.size() == 0) {\n                    return this;\n                } else {\n                    String first = path.get(0);\n                    Object value = bindings.get(first);\n                    if (value == null) {\n                        throw new NameNotFoundException(name);\n                    } else if (value instanceof Context && path.size() > 1) {\n                        Context subContext = (Context)value;\n                        value = subContext.lookup(path.getSuffix(1));\n                    }\n                    return value;\n                }\n            }\n        }\n        if (result instanceof LinkRef) {\n            LinkRef ref = (LinkRef)result;\n            result = lookup(ref.getLinkName());\n        }\n        if (result instanceof Reference) {\n            try {\n                result = NamingManager.getObjectInstance(result, null, null, this.environment);\n            } catch (NamingException e) {\n                throw e;\n            } catch (Exception e) {\n                throw (NamingException)new NamingException(\"could not look up : \" + name).initCause(e);\n            }\n        }\n        if (result instanceof JndiContext) {\n            String prefix = getNameInNamespace();\n            if (prefix.length() > 0) {\n                prefix = prefix + SEPARATOR;\n            }\n            result = new JndiContext((JndiContext)result, environment, prefix + name);\n        }\n        return result;\n    }\n\n    public Object lookup(Name name) throws NamingException {\n        return lookup(name.toString());\n    }\n\n    public Object lookupLink(String name) throws NamingException {\n        return lookup(name);\n    }\n\n    public Name composeName(Name name, Name prefix) throws NamingException {\n        Name result = (Name)prefix.clone();\n        result.addAll(name);\n        return result;\n    }\n\n    public String composeName(String name, String prefix) throws NamingException {\n        CompositeName result = new CompositeName(prefix);\n        result.addAll(new CompositeName(name));\n        return result.toString();\n    }\n\n    public NamingEnumeration list(String name) throws NamingException {\n        Object o = lookup(name);\n        if (o == this) {\n            return new ListEnumeration();\n        } else if (o instanceof Context) {\n            return ((Context)o).list(\"\");\n        } else {\n            throw new NotContextException();\n        }\n    }\n\n    public NamingEnumeration listBindings(String name) throws NamingException {\n        Object o = lookup(name);\n        if (o == this) {\n            return new ListBindingEnumeration();\n        } else if (o instanceof Context) {\n            return ((Context)o).listBindings(\"\");\n        } else {\n            throw new NotContextException();\n        }\n    }\n\n    public Object lookupLink(Name name) throws NamingException {\n        return lookupLink(name.toString());\n    }\n\n    public NamingEnumeration list(Name name) throws NamingException {\n        return list(name.toString());\n    }\n\n    public NamingEnumeration listBindings(Name name) throws NamingException {\n        return listBindings(name.toString());\n    }\n\n    public void bind(Name name, Object value) throws NamingException {\n        bind(name.toString(), value);\n    }\n\n    public void bind(String name, Object value) throws NamingException {\n        if (isFrozen()) {\n            throw new OperationNotSupportedException();\n        } else {\n            internalBind(name, value);\n        }\n    }\n\n    public void close() throws NamingException {\n    }\n\n    public Context createSubcontext(Name name) throws NamingException {\n        throw new OperationNotSupportedException();\n    }\n\n    public Context createSubcontext(String name) throws NamingException {\n        throw new OperationNotSupportedException();\n    }\n\n    public void destroySubcontext(Name name) throws NamingException {\n        throw new OperationNotSupportedException();\n    }\n\n    public void destroySubcontext(String name) throws NamingException {\n        throw new OperationNotSupportedException();\n    }\n\n    public String getNameInNamespace() throws NamingException {\n        return nameInNamespace;\n    }\n\n    public NameParser getNameParser(Name name) throws NamingException {\n        return NAME_PARSER;\n    }\n\n    public NameParser getNameParser(String name) throws NamingException {\n        return NAME_PARSER;\n    }\n\n    public void rebind(Name name, Object value) throws NamingException {\n        bind(name, value);\n    }\n\n    public void rebind(String name, Object value) throws NamingException {\n        bind(name, value);\n    }\n\n    public void rename(Name oldName, Name newName) throws NamingException {\n        throw new OperationNotSupportedException();\n    }\n\n    public void rename(String oldName, String newName) throws NamingException {\n        throw new OperationNotSupportedException();\n    }\n\n    public void unbind(Name name) throws NamingException {\n        throw new OperationNotSupportedException();\n    }\n\n    public void unbind(String name) throws NamingException {\n        bindings.remove(name);\n        treeBindings.remove(name);\n    }\n\n    private abstract class LocalNamingEnumeration implements NamingEnumeration {\n        private Iterator i = bindings.entrySet().iterator();\n\n        public boolean hasMore() throws NamingException {\n            return i.hasNext();\n        }\n\n        public boolean hasMoreElements() {\n            return i.hasNext();\n        }\n\n        protected Map.Entry getNext() {\n            return (Map.Entry)i.next();\n        }\n\n        public void close() throws NamingException {\n        }\n    }\n\n    private class ListEnumeration extends LocalNamingEnumeration {\n        ListEnumeration() {\n        }\n\n        public Object next() throws NamingException {\n            return nextElement();\n        }\n\n        public Object nextElement() {\n            Map.Entry entry = getNext();\n            return new NameClassPair((String)entry.getKey(), entry.getValue().getClass().getName());\n        }\n    }\n\n    private class ListBindingEnumeration extends LocalNamingEnumeration {\n        ListBindingEnumeration() {\n        }\n\n        public Object next() throws NamingException {\n            return nextElement();\n        }\n\n        public Object nextElement() {\n            Map.Entry entry = getNext();\n            return new Binding((String)entry.getKey(), entry.getValue());\n        }\n    }\n\n    protected static Object createBean(Class<?> type, Map properties, String prefix) throws Exception {\n        Object value = INJETOR.newInstance(type);\n        IntrospectionSupport.setProperties(value, properties, prefix);\n        return value;", "functions": [{"function_name": "createBindingsMapFromEnvironment", "code": "    public static Map createBindingsMapFromEnvironment(Hashtable env) throws Exception {\n        Map answer = new HashMap(env);\n\n        for (Object object : env.entrySet()) {\n            Map.Entry entry = (Map.Entry)object;\n            Object key = entry.getKey();\n            Object value = entry.getValue();\n\n            if (key instanceof String && value instanceof String) {\n                String keyText = (String)key;\n                String valueText = (String)value;\n                if (keyText.endsWith(\".class\")) {\n                    Class<?> type = ObjectHelper.loadClass(valueText);\n                    if (type != null) {\n                        String newEntry = keyText.substring(0, keyText.length() - \".class\".length());\n                        Object bean = createBean(type, answer, newEntry + \".\");\n                        if (bean != null) {\n                            answer.put(newEntry, bean);\n                        }\n                    }\n                }\n            }\n        }\n\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [3, 10], [5, 11], [5, 12], [5, 13], [5, 14], [11, 15], [11, 16], [6, 17], [7, 18], [12, 19], [12, 20], [12, 21], [19, 22], [20, 23], [20, 24], [20, 25], [20, 26], [23, 27], [21, 28], [24, 29], [29, 30], [25, 31], [26, 32], [24, 33], [31, 34], [32, 35], [32, 36], [34, 37], [35, 38], [35, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 3], [11, 5], [12, 5], [13, 5], [14, 5], [15, 11], [16, 11], [17, 6], [18, 7], [19, 12], [20, 12], [21, 12], [22, 19], [23, 20], [24, 20], [25, 20], [26, 20], [27, 23], [28, 21], [29, 24], [30, 29], [31, 25], [32, 26], [33, 24], [34, 31], [35, 32], [36, 32], [37, 34], [38, 35], [39, 35], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "freeze", "code": "    public void freeze() {\n        frozen = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFrozen", "code": "    boolean isFrozen() {\n        return frozen;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "internalBind", "code": "    protected Map internalBind(String name, Object value) throws NamingException {\n        assert name != null && name.length() > 0;\n        assert !frozen;\n\n        Map newBindings = new HashMap();\n        int pos = name.indexOf('/');\n        if (pos == -1) {\n            if (treeBindings.put(name, value) != null) {\n                throw new NamingException(\"Something already bound at \" + name);\n            }\n            bindings.put(name, value);\n            newBindings.put(name, value);\n        } else {\n            String segment = name.substring(0, pos);\n            assert segment != null;\n            assert !segment.equals(\"\");\n            Object o = treeBindings.get(segment);\n            if (o == null) {\n                o = newContext();\n                treeBindings.put(segment, o);\n                bindings.put(segment, o);\n                newBindings.put(segment, o);\n            } else if (!(o instanceof JndiContext)) {\n                throw new NamingException(\"Something already bound where a subcontext should go\");\n            }\n            JndiContext defaultContext = (JndiContext)o;\n            String remainder = name.substring(pos + 1);\n            Map subBindings = defaultContext.internalBind(remainder, value);\n            for (Iterator iterator = subBindings.entrySet().iterator(); iterator.hasNext();) {\n                Map.Entry entry = (Map.Entry)iterator.next();\n                String subName = segment + \"/\" + (String)entry.getKey();\n                Object bound = entry.getValue();\n                treeBindings.put(subName, bound);\n                newBindings.put(subName, bound);\n            }\n        }\n        return newBindings;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "ASSERT", "ASSERT", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "ASSERT", "ASSERT", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [6, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [9, 21], [3, 22], [4, 23], [10, 24], [10, 25], [11, 26], [15, 27], [15, 28], [17, 29], [18, 30], [2, 31], [2, 32], [20, 33], [22, 34], [24, 35], [24, 36], [25, 37], [11, 38], [11, 39], [11, 40], [12, 41], [13, 42], [27, 43], [28, 44], [16, 45], [29, 46], [30, 47], [19, 48], [20, 49], [33, 50], [33, 51], [11, 52], [11, 53], [11, 54], [42, 55], [27, 56], [15, 57], [15, 58], [15, 59], [15, 60], [48, 61], [49, 62], [38, 63], [39, 64], [54, 65], [55, 66], [56, 67], [60, 68], [62, 69], [64, 70], [40, 71], [67, 72], [69, 73], [64, 74], [70, 75], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 6], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 9], [22, 3], [23, 4], [24, 10], [25, 10], [26, 11], [27, 15], [28, 15], [29, 17], [30, 18], [31, 2], [32, 2], [33, 20], [34, 22], [35, 24], [36, 24], [37, 25], [38, 11], [39, 11], [40, 11], [41, 12], [42, 13], [43, 27], [44, 28], [45, 16], [46, 29], [47, 30], [48, 19], [49, 20], [50, 33], [51, 33], [52, 11], [53, 11], [54, 11], [55, 42], [56, 27], [57, 15], [58, 15], [59, 15], [60, 15], [61, 48], [62, 49], [63, 38], [64, 39], [65, 54], [66, 55], [67, 56], [68, 60], [69, 62], [70, 64], [71, 40], [72, 67], [73, 69], [74, 64], [75, 70], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "newContext", "code": "    protected JndiContext newContext() {\n        try {\n            return new JndiContext();\n        } catch (Exception e) {\n            throw new IllegalArgumentException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addToEnvironment", "code": "    public Object addToEnvironment(String propName, Object propVal) throws NamingException {\n        return environment.put(propName, propVal);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getEnvironment", "code": "    public Hashtable getEnvironment() throws NamingException {\n        return (Hashtable)environment.clone();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeFromEnvironment", "code": "    public Object removeFromEnvironment(String propName) throws NamingException {\n        return environment.remove(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "lookup", "code": "    public Object lookup(String name) throws NamingException {\n        if (name.length() == 0) {\n            return this;\n        }\n        Object result = treeBindings.get(name);\n        if (result == null) {\n            result = bindings.get(name);\n        }\n        if (result == null) {\n            int pos = name.indexOf(':');\n            if (pos > 0) {\n                String scheme = name.substring(0, pos);\n                Context ctx = NamingManager.getURLContext(scheme, environment);\n                if (ctx == null) {\n                    throw new NamingException(\"scheme \" + scheme + \" not recognized\");\n                }\n                return ctx.lookup(name);\n            } else {\n                CompositeName path = new CompositeName(name);\n\n                if (path.size() == 0) {\n                    return this;\n                } else {\n                    String first = path.get(0);\n                    Object value = bindings.get(first);\n                    if (value == null) {\n                        throw new NameNotFoundException(name);\n                    } else if (value instanceof Context && path.size() > 1) {\n                        Context subContext = (Context)value;\n                        value = subContext.lookup(path.getSuffix(1));\n                    }\n                    return value;\n                }\n            }\n        }\n        if (result instanceof LinkRef) {\n            LinkRef ref = (LinkRef)result;\n            result = lookup(ref.getLinkName());\n        }\n        if (result instanceof Reference) {\n            try {\n                result = NamingManager.getObjectInstance(result, null, null, this.environment);\n            } catch (NamingException e) {\n                throw e;\n            } catch (Exception e) {\n                throw (NamingException)new NamingException(\"could not look up : \" + name).initCause(e);\n            }\n        }\n        if (result instanceof JndiContext) {\n            String prefix = getNameInNamespace();\n            if (prefix.length() > 0) {\n                prefix = prefix + SEPARATOR;\n            }\n            result = new JndiContext((JndiContext)result, environment, prefix + name);\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CATCH", "CATCH", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "IF", "VAR_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [4, 12], [5, 13], [6, 14], [8, 15], [2, 16], [2, 17], [3, 18], [4, 19], [5, 20], [5, 21], [13, 22], [14, 23], [7, 24], [8, 25], [15, 26], [15, 27], [2, 28], [16, 29], [18, 30], [18, 31], [4, 32], [20, 33], [6, 34], [28, 35], [29, 36], [29, 37], [17, 38], [30, 39], [31, 40], [18, 41], [32, 42], [20, 43], [20, 44], [20, 45], [20, 46], [20, 47], [20, 48], [33, 49], [21, 50], [34, 51], [35, 52], [16, 53], [41, 54], [42, 55], [43, 56], [45, 57], [46, 58], [50, 59], [53, 60], [39, 61], [54, 62], [54, 63], [43, 64], [43, 65], [43, 66], [43, 67], [43, 68], [56, 69], [56, 70], [44, 71], [46, 72], [58, 73], [47, 74], [48, 75], [61, 76], [61, 77], [65, 78], [65, 79], [72, 80], [75, 81], [76, 82], [78, 83], [65, 84], [79, 85], [66, 86], [67, 87], [80, 88], [78, 89], [83, 90], [83, 91], [84, 92], [87, 93], [88, 94], [88, 95], [78, 96], [90, 97], [90, 98], [95, 99], [96, 100], [100, 101], [101, 102], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 4], [13, 5], [14, 6], [15, 8], [16, 2], [17, 2], [18, 3], [19, 4], [20, 5], [21, 5], [22, 13], [23, 14], [24, 7], [25, 8], [26, 15], [27, 15], [28, 2], [29, 16], [30, 18], [31, 18], [32, 4], [33, 20], [34, 6], [35, 28], [36, 29], [37, 29], [38, 17], [39, 30], [40, 31], [41, 18], [42, 32], [43, 20], [44, 20], [45, 20], [46, 20], [47, 20], [48, 20], [49, 33], [50, 21], [51, 34], [52, 35], [53, 16], [54, 41], [55, 42], [56, 43], [57, 45], [58, 46], [59, 50], [60, 53], [61, 39], [62, 54], [63, 54], [64, 43], [65, 43], [66, 43], [67, 43], [68, 43], [69, 56], [70, 56], [71, 44], [72, 46], [73, 58], [74, 47], [75, 48], [76, 61], [77, 61], [78, 65], [79, 65], [80, 72], [81, 75], [82, 76], [83, 78], [84, 65], [85, 79], [86, 66], [87, 67], [88, 80], [89, 78], [90, 83], [91, 83], [92, 84], [93, 87], [94, 88], [95, 88], [96, 78], [97, 90], [98, 90], [99, 95], [100, 96], [101, 100], [102, 101], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102]]}, {"function_name": "lookup", "code": "    public Object lookup(Name name) throws NamingException {\n        return lookup(name.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "lookupLink", "code": "    public Object lookupLink(String name) throws NamingException {\n        return lookup(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "composeName", "code": "    public Name composeName(Name name, Name prefix) throws NamingException {\n        Name result = (Name)prefix.clone();\n        result.addAll(name);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "composeName", "code": "    public String composeName(String name, String prefix) throws NamingException {\n        CompositeName result = new CompositeName(prefix);\n        result.addAll(new CompositeName(name));\n        return result.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [6, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 6], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "list", "code": "    public NamingEnumeration list(String name) throws NamingException {\n        Object o = lookup(name);\n        if (o == this) {\n            return new ListEnumeration();\n        } else if (o instanceof Context) {\n            return ((Context)o).list(\"\");\n        } else {\n            throw new NotContextException();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "THROW_RAISE", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [2, 8], [4, 9], [4, 10], [7, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 2], [9, 4], [10, 4], [11, 7], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "listBindings", "code": "    public NamingEnumeration listBindings(String name) throws NamingException {\n        Object o = lookup(name);\n        if (o == this) {\n            return new ListBindingEnumeration();\n        } else if (o instanceof Context) {\n            return ((Context)o).listBindings(\"\");\n        } else {\n            throw new NotContextException();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "THROW_RAISE", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [2, 8], [4, 9], [4, 10], [7, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 2], [9, 4], [10, 4], [11, 7], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "lookupLink", "code": "    public Object lookupLink(Name name) throws NamingException {\n        return lookupLink(name.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "list", "code": "    public NamingEnumeration list(Name name) throws NamingException {\n        return list(name.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "listBindings", "code": "    public NamingEnumeration listBindings(Name name) throws NamingException {\n        return listBindings(name.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "bind", "code": "    public void bind(Name name, Object value) throws NamingException {\n        bind(name.toString(), value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "bind", "code": "    public void bind(String name, Object value) throws NamingException {\n        if (isFrozen()) {\n            throw new OperationNotSupportedException();\n        } else {\n            internalBind(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "close", "code": "    public void close() throws NamingException {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "createSubcontext", "code": "    public Context createSubcontext(Name name) throws NamingException {\n        throw new OperationNotSupportedException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createSubcontext", "code": "    public Context createSubcontext(String name) throws NamingException {\n        throw new OperationNotSupportedException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "destroySubcontext", "code": "    public void destroySubcontext(Name name) throws NamingException {\n        throw new OperationNotSupportedException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "destroySubcontext", "code": "    public void destroySubcontext(String name) throws NamingException {\n        throw new OperationNotSupportedException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNameInNamespace", "code": "    public String getNameInNamespace() throws NamingException {\n        return nameInNamespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNameParser", "code": "    public NameParser getNameParser(Name name) throws NamingException {\n        return NAME_PARSER;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNameParser", "code": "    public NameParser getNameParser(String name) throws NamingException {\n        return NAME_PARSER;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "rebind", "code": "    public void rebind(Name name, Object value) throws NamingException {\n        bind(name, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "rebind", "code": "    public void rebind(String name, Object value) throws NamingException {\n        bind(name, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "rename", "code": "    public void rename(Name oldName, Name newName) throws NamingException {\n        throw new OperationNotSupportedException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "rename", "code": "    public void rename(String oldName, String newName) throws NamingException {\n        throw new OperationNotSupportedException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unbind", "code": "    public void unbind(Name name) throws NamingException {\n        throw new OperationNotSupportedException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "unbind", "code": "    public void unbind(String name) throws NamingException {\n        bindings.remove(name);\n        treeBindings.remove(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createBean", "code": "    protected static Object createBean(Class<?> type, Map properties, String prefix) throws Exception {\n        Object value = INJETOR.newInstance(type);\n        IntrospectionSupport.setProperties(value, properties, prefix);\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "JndiContext", "code": "    public JndiContext() throws Exception {\n        this(new Hashtable());", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "JndiContext", "code": "    public JndiContext(Hashtable env) throws Exception {\n        this(env, createBindingsMapFromEnvironment(env));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JndiContext", "code": "    public JndiContext(Hashtable environment, Map bindings) {\n        if (environment == null) {\n            this.environment = new Hashtable();\n        } else {\n            this.environment = new Hashtable(environment);\n        }\n        this.bindings = bindings;\n        treeBindings = new HashMap();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [6, 8], [1, 9], [1, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 6], [9, 1], [10, 1], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "JndiContext", "code": "    public JndiContext(Hashtable environment, Map bindings, String nameInNamespace) {\n        this(environment, bindings);\n        this.nameInNamespace = nameInNamespace;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "JndiContext", "code": "    protected JndiContext(JndiContext clone, Hashtable env) {\n        this.bindings = clone.bindings;\n        this.treeBindings = clone.treeBindings;\n        this.environment = new Hashtable(env);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "JndiContext", "code": "    protected JndiContext(JndiContext clone, Hashtable env, String nameInNamespace) {\n        this(clone, env);\n        this.nameInNamespace = nameInNamespace;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-3.0-6070", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/ObjRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.ObjRecord", "code": "public class ObjRecord\n    extends Record\n{\n    public final static short      sid                             = 0x5D;\n    private List subrecords;\n\n\n\n    public ObjRecord()\n    {\n        subrecords = new ArrayList(2);\n    }\n\n    /**\n     * Constructs a OBJ record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x5D or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public ObjRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not an OBJ record\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        subrecords = new ArrayList();\n        int subSize = 0;\n        byte[] subRecordData = in.readRemainder();\n        RecordInputStream subRecStream = new RecordInputStream(new ByteArrayInputStream(subRecordData));\n        while(subRecStream.hasNextRecord()) {\n          subRecStream.nextRecord();\n          Record subRecord = SubRecord.createSubRecord(subRecStream);\n          subSize += subRecord.getRecordSize();\n          subrecords.add(subRecord);\n        }\n\n        /**\n         * Check if the RecordInputStream skipped EndSubRecord,\n         * if it did then append it explicitly.\n         * See Bug 41242 for details.\n         */\n        if (subRecordData.length - subSize == 4){\n            subrecords.add(new EndSubRecord());\n        }\n\n        /* JMH the size present/not present in the code below\n           needs to be considered in the RecordInputStream??\n        int pos = offset;\n        {\n            short subRecordSid = LittleEndian.getShort(data, pos);\n                subRecordSize = LittleEndian.getShort(data, pos + 2);\n            }\n            Record subRecord = SubRecord.createSubRecord(subRecordSid, subRecordSize, data, pos + 4);\n            subrecords.add(subRecord);\n            pos += subRecord.getRecordSize();\n        }*/\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[OBJ]\\n\");\n        for ( Iterator iterator = subrecords.iterator(); iterator.hasNext(); )\n        {\n            Record record = (Record) iterator.next();\n            buffer.append(\"SUBRECORD: \" + record.toString());\n        }\n        buffer.append(\"[/OBJ]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        pos = offset + 4;\n        for ( Iterator iterator = subrecords.iterator(); iterator.hasNext(); )\n        {\n            Record record = (Record) iterator.next();\n            pos += record.serialize(pos, data);\n        }\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (excluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        int size = 0;\n        for ( Iterator iterator = subrecords.iterator(); iterator.hasNext(); )\n        {\n            Record record = (Record) iterator.next();\n            size += record.getRecordSize();\n        }\n        return 4  + size;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public List getSubRecords()\n    {\n        return subrecords;\n    }\n\n    public void clearSubRecords()\n    {\n        subrecords.clear();\n    }\n\n    public void addSubRecord(int index, Object element)\n    {\n        subrecords.add( index, element );\n    }\n\n    public boolean addSubRecord(Object o)\n    {\n        return subrecords.add( o );\n    }\n\n    public Object clone()\n    {\n        ObjRecord rec = new ObjRecord();\n\n        for ( Iterator iterator = subrecords.iterator(); iterator.hasNext(); )\n            rec.addSubRecord(( (Record) iterator.next() ).clone());\n\n        return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not an OBJ record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        subrecords = new ArrayList();\n        int subSize = 0;\n        byte[] subRecordData = in.readRemainder();\n        RecordInputStream subRecStream = new RecordInputStream(new ByteArrayInputStream(subRecordData));\n        while(subRecStream.hasNextRecord()) {\n          subRecStream.nextRecord();\n          Record subRecord = SubRecord.createSubRecord(subRecStream);\n          subSize += subRecord.getRecordSize();\n          subrecords.add(subRecord);\n        }\n\n        /**\n         * Check if the RecordInputStream skipped EndSubRecord,\n         * if it did then append it explicitly.\n         * See Bug 41242 for details.\n         */\n        if (subRecordData.length - subSize == 4){\n            subrecords.add(new EndSubRecord());", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [7, 10], [7, 11], [2, 12], [3, 13], [4, 14], [5, 15], [9, 16], [1, 17], [2, 18], [2, 19], [2, 20], [13, 21], [17, 22], [19, 23], [12, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 7], [11, 7], [12, 2], [13, 3], [14, 4], [15, 5], [16, 9], [17, 1], [18, 2], [19, 2], [20, 2], [21, 13], [22, 17], [23, 19], [24, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[OBJ]\\n\");\n        for ( Iterator iterator = subrecords.iterator(); iterator.hasNext(); )\n        {\n            Record record = (Record) iterator.next();\n            buffer.append(\"SUBRECORD: \" + record.toString());\n        }\n        buffer.append(\"[/OBJ]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [5, 8], [2, 9], [7, 10], [3, 11], [2, 12], [2, 13], [12, 14], [14, 15], [14, 16], [9, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 5], [9, 2], [10, 7], [11, 3], [12, 2], [13, 2], [14, 12], [15, 14], [16, 14], [17, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        pos = offset + 4;\n        for ( Iterator iterator = subrecords.iterator(); iterator.hasNext(); )\n        {\n            Record record = (Record) iterator.next();\n            pos += record.serialize(pos, data);\n        }\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [0, 10], [2, 11], [8, 12], [9, 13], [10, 14], [3, 15], [2, 16], [2, 17], [12, 18], [9, 19], [13, 20], [14, 21], [16, 22], [19, 23], [19, 24], [11, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 0], [11, 2], [12, 8], [13, 9], [14, 10], [15, 3], [16, 2], [17, 2], [18, 12], [19, 9], [20, 13], [21, 14], [22, 16], [23, 19], [24, 19], [25, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        int size = 0;\n        for ( Iterator iterator = subrecords.iterator(); iterator.hasNext(); )\n        {\n            Record record = (Record) iterator.next();\n            size += record.getRecordSize();\n        }\n        return 4  + size;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [3, 8], [2, 9], [2, 10], [9, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 3], [9, 2], [10, 2], [11, 9], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSubRecords", "code": "    public List getSubRecords()\n    {\n        return subrecords;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clearSubRecords", "code": "    public void clearSubRecords()\n    {\n        subrecords.clear();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addSubRecord", "code": "    public void addSubRecord(int index, Object element)\n    {\n        subrecords.add( index, element );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addSubRecord", "code": "    public boolean addSubRecord(Object o)\n    {\n        return subrecords.add( o );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "clone", "code": "    public Object clone()\n    {\n        ObjRecord rec = new ObjRecord();\n\n        for ( Iterator iterator = subrecords.iterator(); iterator.hasNext(); )\n            rec.addSubRecord(( (Record) iterator.next() ).clone());\n\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [3, 6], [2, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 3], [7, 2], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "ObjRecord", "code": "    public ObjRecord()\n    {\n        subrecords = new ArrayList(2);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ObjRecord", "code": "    public ObjRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "poi-2.5-5807", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/util/SheetReferences.java", "language": "java", "name": "org.apache.poi.hssf.util.SheetReferences", "code": "public class SheetReferences\n{\n    Map map;\n    public SheetReferences()\n    {\n      map = new HashMap(5);\n    }\n \n    public void addSheetReference(String sheetName, int number) {\n       map.put(new Integer(number), sheetName);\n    } \n\n    public String getSheetName(int number) {\n       return (String)map.get(new Integer(number));", "functions": [{"function_name": "addSheetReference", "code": "    public void addSheetReference(String sheetName, int number) {\n       map.put(new Integer(number), sheetName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSheetName", "code": "    public String getSheetName(int number) {\n       return (String)map.get(new Integer(number));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "SheetReferences", "code": "    public SheetReferences()\n    {\n      map = new HashMap(5);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "jedit-3.2-3667", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/msg/EditPaneUpdate.java", "language": "java", "name": "org.gjt.sp.jedit.msg.EditPaneUpdate", "code": "public class EditPaneUpdate extends EBMessage.NonVetoable\n{\n\t/**\n\t * Edit pane created.\n\t */\n\tpublic static final Object CREATED = \"CREATED\";\n\n\t/**\n\t * Edit pane destroyed.\n\t */\n\tpublic static final Object DESTROYED = \"DESTROYED\";\n\n\t/**\n\t * Edit pane buffer changed.\n\t */\n\tpublic static final Object BUFFER_CHANGED = \"BUFFER_CHANGED\";\n\n\t/**\n\t * Creates a new edit pane update message.\n\t * @param editPane The edit pane\n\t * @param what What happened\n\t */\n\tpublic EditPaneUpdate(EditPane editPane, Object what)\n\t{\n\t\tsuper(editPane);\n\n\t\tif(what == null)\n\t\t\tthrow new NullPointerException(\"What must be non-null\");\n\n\t\tthis.what = what;\n\t}\n\n\t/**\n\t * Returns what caused this edit pane update.\n\t */\n\tpublic Object getWhat()\n\t{\n\t\treturn what;\n\t}\n\n\t/**\n\t * Returns the edit pane involved.\n\t */\n\tpublic EditPane getEditPane()\n\t{\n\t\treturn (EditPane)getSource();\n\t}\n\n\tpublic String paramString()\n\t{\n\t\treturn super.paramString() + \",what=\" + what;\n\t}\n\n\t// private members\n\tprivate Object what;", "functions": [{"function_name": "getWhat", "code": "\tpublic Object getWhat()\n\t{\n\t\treturn what;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEditPane", "code": "\tpublic EditPane getEditPane()\n\t{\n\t\treturn (EditPane)getSource();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "paramString", "code": "\tpublic String paramString()\n\t{\n\t\treturn super.paramString() + \",what=\" + what;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "EditPaneUpdate", "code": "\tpublic EditPaneUpdate(EditPane editPane, Object what)\n\t{\n\t\tsuper(editPane);\n\n\t\tif(what == null)\n\t\t\tthrow new NullPointerException(\"What must be non-null\");\n\n\t\tthis.what = what;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "camel-1.6-2995", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/builder/Builder.java", "language": "java", "name": "org.apache.camel.builder.Builder", "code": "public final class Builder {\n\n    /**\n     * Utility classes should not have a public constructor.\n     */\n    private Builder() {\n    }\n\n    /**\n     * Returns a constant expression\n     */\n    public static <E extends Exchange> ValueBuilder<E> constant(Object value) {\n        Expression<E> expression = ExpressionBuilder.constantExpression(value);\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for headers on an exchange\n     */\n    public static <E extends Exchange> ValueBuilder<E> header(String name) {\n        Expression<E> expression = ExpressionBuilder.headerExpression(name);\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the inbound body on an exchange\n     */\n    public static <E extends Exchange> ValueBuilder<E> body() {\n        Expression<E> expression = ExpressionBuilder.bodyExpression();\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the inbound message body as a\n     * specific type\n     */\n    public static <E extends Exchange, T> ValueBuilder<E> bodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.bodyExpression(type);\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the outbound body on an\n     * exchange\n     */\n    public static <E extends Exchange> ValueBuilder<E> outBody() {\n        Expression<E> expression = ExpressionBuilder.outBodyExpression();\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the outbound message body as a\n     * specific type\n     */\n    public static <E extends Exchange, T> ValueBuilder<E> outBodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.outBodyExpression(type);\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the fault body on an\n     * exchange\n     */\n    public static <E extends Exchange> ValueBuilder<E> faultBody() {\n        Expression<E> expression = ExpressionBuilder.faultBodyExpression();\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the fault message body as a\n     * specific type\n     */\n    public static <E extends Exchange, T> ValueBuilder<E> faultBodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.faultBodyExpression(type);\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns an expression for the given system property\n     */\n    public static <E extends Exchange> ValueBuilder<E> systemProperty(final String name) {\n        return systemProperty(name, null);\n    }\n\n    /**\n     * Returns an expression for the given system property\n     */\n    public static <E extends Exchange> ValueBuilder<E> systemProperty(final String name,\n                                                                      final String defaultValue) {\n        return new ValueBuilder<E>(ExpressionBuilder.<E> systemProperty(name, defaultValue));", "functions": [{"function_name": "constant", "code": "    public static <E extends Exchange> ValueBuilder<E> constant(Object value) {\n        Expression<E> expression = ExpressionBuilder.constantExpression(value);\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "header", "code": "    public static <E extends Exchange> ValueBuilder<E> header(String name) {\n        Expression<E> expression = ExpressionBuilder.headerExpression(name);\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "body", "code": "    public static <E extends Exchange> ValueBuilder<E> body() {\n        Expression<E> expression = ExpressionBuilder.bodyExpression();\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "bodyAs", "code": "    public static <E extends Exchange, T> ValueBuilder<E> bodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.bodyExpression(type);\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "outBody", "code": "    public static <E extends Exchange> ValueBuilder<E> outBody() {\n        Expression<E> expression = ExpressionBuilder.outBodyExpression();\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "outBodyAs", "code": "    public static <E extends Exchange, T> ValueBuilder<E> outBodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.outBodyExpression(type);\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "faultBody", "code": "    public static <E extends Exchange> ValueBuilder<E> faultBody() {\n        Expression<E> expression = ExpressionBuilder.faultBodyExpression();\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "faultBodyAs", "code": "    public static <E extends Exchange, T> ValueBuilder<E> faultBodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.faultBodyExpression(type);\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "systemProperty", "code": "    public static <E extends Exchange> ValueBuilder<E> systemProperty(final String name) {\n        return systemProperty(name, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "systemProperty", "code": "    public static <E extends Exchange> ValueBuilder<E> systemProperty(final String name,\n                                                                      final String defaultValue) {\n        return new ValueBuilder<E>(ExpressionBuilder.<E> systemProperty(name, defaultValue));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Builder", "code": "    private Builder() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.4-175", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/util/regexp/JakartaRegexpMatcher.java", "language": "java", "name": "org.apache.tools.ant.util.regexp.JakartaRegexpMatcher", "code": "public class JakartaRegexpMatcher implements RegexpMatcher {\n\n    protected RE reg = null;\n    private String pattern;\n\n    /**\n     * Set the regexp pattern from the String description.\n     */\n    public void setPattern(String pattern) throws BuildException {\n        try {\n            this.pattern = pattern;\n            reg = new RE(pattern);\n        } catch (RESyntaxException e) {\n            throw new BuildException(e);\n        }\n    }\n\n    /**\n     * Get a String representation of the regexp pattern\n     */\n    public String getPattern() {\n        return pattern;\n    }\n\n    /**\n     * Does the given argument match the pattern?\n     */\n    public boolean matches(String argument) {\n        return reg.match(argument);\n    }\n\n    /**\n     * Returns a Vector of matched groups found in the argument.\n     *\n     * <p>Group 0 will be the full match, the rest are the\n     * parenthesized subexpressions</p>.\n     */\n    public Vector getGroups(String argument) {\n        if (!matches(argument)) {\n            return null;\n        }\n        Vector v = new Vector();\n        for (int i=0; i<reg.getParenCount(); i++) {\n            v.addElement(reg.getParen(i));\n        }\n        return v;", "functions": [{"function_name": "setPattern", "code": "    public void setPattern(String pattern) throws BuildException {\n        try {\n            this.pattern = pattern;\n            reg = new RE(pattern);\n        } catch (RESyntaxException e) {\n            throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getPattern", "code": "    public String getPattern() {\n        return pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "matches", "code": "    public boolean matches(String argument) {\n        return reg.match(argument);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getGroups", "code": "    public Vector getGroups(String argument) {\n        if (!matches(argument)) {\n            return null;\n        }\n        Vector v = new Vector();\n        for (int i=0; i<reg.getParenCount(); i++) {\n            v.addElement(reg.getParen(i));\n        }\n        return v;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [6, 8], [3, 9], [4, 10], [2, 11], [2, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 6], [9, 3], [10, 4], [11, 2], [12, 2], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "ant-1.7-924", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/IdentityStack.java", "language": "java", "name": "org.apache.tools.ant.util.IdentityStack", "code": "public class IdentityStack extends Stack {\n\n    private static final long serialVersionUID = -5555522620060077046L;\n\n    /**\n     * Get an IdentityStack containing the contents of the specified Stack.\n     * @param s the Stack to copy; ignored if null.\n     * @return an IdentityStack instance.\n     */\n    public static IdentityStack getInstance(Stack s) {\n        if (s instanceof IdentityStack) {\n            return (IdentityStack) s;\n        }\n        IdentityStack result = new IdentityStack();\n        if (s != null) {\n            result.addAll(s);\n        }\n        return result;\n    }\n\n    /**\n     * Default constructor.\n     */\n    public IdentityStack() {\n    }\n\n    /**\n     * Construct a new IdentityStack with the specified Object\n     * as the bottom element.\n     * @param o the bottom element.\n     */\n    public IdentityStack(Object o) {\n        super();\n        push(o);\n    }\n\n    /**\n     * Override methods that use <code>.equals()</code> comparisons on elements.\n     * @param o the Object to search for.\n     * @return true if the stack contains the object.\n     * @see java.util.Vector#contains(Object)\n     */\n    public synchronized boolean contains(Object o) {\n        return indexOf(o) >= 0;\n    }\n\n    /**\n     * Override methods that use <code>.equals()</code> comparisons on elements.\n     * @param o   the Object to search for.\n     * @param pos the position from which to search.\n     * @return the position of the object, -1 if not found.\n     * @see java.util.Vector#indexOf(Object, int)\n     */\n    public synchronized int indexOf(Object o, int pos) {\n        for (int i = pos; i < size(); i++) {\n            if (get(i) == o) {\n                return i;\n            }\n        }\n        return -1;\n    }\n\n    /**\n     * Override methods that use <code>.equals()</code> comparisons on elements.\n     * @param o   the Object to search for.\n     * @param pos the position from which to search (backward).\n     * @return the position of the object, -1 if not found.\n     * @see java.util.Vector#indexOf(Object, int)\n     */\n    public synchronized int lastIndexOf(Object o, int pos) {\n        for (int i = pos; i >= 0; i--) {\n            if (get(i) == o) {\n                return i;\n            }\n        }\n        return -1;", "functions": [{"function_name": "getInstance", "code": "    public static IdentityStack getInstance(Stack s) {\n        if (s instanceof IdentityStack) {\n            return (IdentityStack) s;\n        }\n        IdentityStack result = new IdentityStack();\n        if (s != null) {\n            result.addAll(s);\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [6, 8], [3, 9], [4, 10], [2, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 6], [9, 3], [10, 4], [11, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "contains", "code": "    public synchronized boolean contains(Object o) {\n        return indexOf(o) >= 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "indexOf", "code": "    public synchronized int indexOf(Object o, int pos) {\n        for (int i = pos; i < size(); i++) {\n            if (get(i) == o) {\n                return i;\n            }\n        }\n        return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "BINARY_OP", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "lastIndexOf", "code": "    public synchronized int lastIndexOf(Object o, int pos) {\n        for (int i = pos; i >= 0; i--) {\n            if (get(i) == o) {\n                return i;\n            }\n        }\n        return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "IdentityStack", "code": "    public IdentityStack() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IdentityStack", "code": "    public IdentityStack(Object o) {\n        super();\n        push(o);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1247", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/ANTLR.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.ANTLR", "code": "public class ANTLR extends Task {\n\n    private CommandlineJava commandline = new CommandlineJava();\n\n    /** the file to process */\n    private File targetFile;\n\n    /** where to output the result */\n    private File outputDirectory;\n\n    /** an optional super grammar file */\n    private File superGrammar;\n\n    /** optional flag to enable html output */\n    private boolean html;\n\n    /** optional flag to print out a diagnostic file */\n    private boolean diagnostic;\n\n    /** optional flag to add trace methods */\n    private boolean trace;\n\n    /** optional flag to add trace methods to the parser only */\n    private boolean traceParser;\n\n    /** optional flag to add trace methods to the lexer only */\n    private boolean traceLexer;\n\n    /** optional flag to add trace methods to the tree walker only */\n    private boolean traceTreeWalker;\n\n    /** working directory */\n    private File workingdir = null;\n\n    /** captures ANTLR's output */\n    private ByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n    /** The debug attribute */\n    private boolean debug;\n\n\n    /** Instance of a utility class to use for file operations. */\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n\n    /** Constructor for ANTLR task. */\n    public ANTLR() {\n        commandline.setVm(JavaEnvUtils.getJreExecutable(\"java\"));\n        commandline.setClassname(\"antlr.Tool\");\n    }\n\n    /**\n     * The grammar file to process.\n     * @param target the gramer file\n     */\n    public void setTarget(File target) {\n        log(\"Setting target to: \" + target.toString(), Project.MSG_VERBOSE);\n        this.targetFile = target;\n    }\n\n    /**\n     * The directory to write the generated files to.\n     * @param outputDirectory the output directory\n     */\n    public void setOutputdirectory(File outputDirectory) {\n        log(\"Setting output directory to: \" + outputDirectory.toString(), Project.MSG_VERBOSE);\n        this.outputDirectory = outputDirectory;\n    }\n\n    /**\n     * Sets an optional super grammar file.\n     * Use setGlib(File superGrammar) instead.\n     * @param superGrammar the super grammar filename\n     * @deprecated  since ant 1.6\n     */\n    public void setGlib(String superGrammar) {\n        String sg = null;\n        if (Os.isFamily(\"dos\")) {\n            sg = superGrammar.replace('\\\\', '/');\n        } else {\n            sg = superGrammar;\n        }\n        setGlib(FILE_UTILS.resolveFile(getProject().getBaseDir(), sg));\n    }\n    /**\n     * Sets an optional super grammar file\n     * @param superGrammar the super grammar file\n     * @since ant 1.6\n     */\n    public void setGlib(File superGrammar) {\n        this.superGrammar = superGrammar;\n    }\n    /**\n     * Sets a flag to enable ParseView debugging\n     * @param enable a <code>boolean</code> value\n     */\n    public void setDebug(boolean enable) {\n        this.debug = enable;\n    }\n\n    /**\n     * If true, emit html\n     * @param enable a <code>boolean</code> value\n     */\n    public void setHtml(boolean enable) {\n        html = enable;\n    }\n\n    /**\n     * Sets a flag to emit diagnostic text\n     * @param enable a <code>boolean</code> value\n     */\n    public void setDiagnostic(boolean enable) {\n        diagnostic = enable;\n    }\n\n    /**\n     * If true, enables all tracing.\n     * @param enable a <code>boolean</code> value\n     */\n    public void setTrace(boolean enable) {\n        trace = enable;\n    }\n\n    /**\n     * If true, enables parser tracing.\n     * @param enable a <code>boolean</code> value\n     */\n    public void setTraceParser(boolean enable) {\n        traceParser = enable;\n    }\n\n    /**\n     * If true, enables lexer tracing.\n     * @param enable a <code>boolean</code> value\n     */\n    public void setTraceLexer(boolean enable) {\n        traceLexer = enable;\n    }\n\n    /**\n     * Sets a flag to allow the user to enable tree walker tracing\n     * @param enable a <code>boolean</code> value\n     */\n    public void setTraceTreeWalker(boolean enable) {\n        traceTreeWalker = enable;\n    }\n\n    /**\n     * @ant.attribute ignore=\"true\"\n     * @param s a <code>boolean</code> value\n     */\n    public void setFork(boolean s) {\n    }\n\n    /**\n     * The working directory of the process\n     * @param d the working directory\n     */\n    public void setDir(File d) {\n        this.workingdir = d;\n    }\n\n    /**\n     * Adds a classpath to be set\n     * because a directory might be given for Antlr debug.\n     * @return a path to be configured\n     */\n    public Path createClasspath() {\n        return commandline.createClasspath(getProject()).createPath();\n    }\n\n    /**\n     * Adds a new JVM argument.\n     * @return  create a new JVM argument so that any argument can be passed to the JVM.\n     * @see #setFork(boolean)\n     */\n    public Commandline.Argument createJvmarg() {\n        return commandline.createVmArgument();\n    }\n\n    /**\n     * Adds the jars or directories containing Antlr\n     * this should make the forked JVM work without having to\n     * specify it directly.\n     * @throws BuildException on error\n     */\n    public void init() throws BuildException {\n        addClasspathEntry(\"/antlr/ANTLRGrammarParseBehavior.class\");\n    }\n\n    /**\n     * Search for the given resource and add the directory or archive\n     * that contains it to the classpath.\n     *\n     * <p>Doesn't work for archives in JDK 1.1 as the URL returned by\n     * getResource doesn't contain the name of the archive.</p>\n     * @param resource the resource name to search for\n     */\n    protected void addClasspathEntry(String resource) {\n        /*\n         * pre Ant 1.6 this method used to call getClass().getResource\n         * while Ant 1.6 will call ClassLoader.getResource().\n         *\n         * The difference is that Class.getResource expects a leading\n         * slash for \"absolute\" resources and will strip it before\n         * delegating to ClassLoader.getResource - so we now have to\n         * emulate Class's behavior.\n         */\n        if (resource.startsWith(\"/\")) {\n            resource = resource.substring(1);\n        } else {\n            resource = \"org/apache/tools/ant/taskdefs/optional/\"\n                + resource;\n        }\n\n        File f = LoaderUtils.getResourceSource(getClass().getClassLoader(),\n                                               resource);\n        if (f != null) {\n            log(\"Found \" + f.getAbsolutePath(), Project.MSG_DEBUG);\n            createClasspath().setLocation(f);\n        } else {\n            log(\"Couldn\\'t find \" + resource, Project.MSG_VERBOSE);\n        }\n    }\n\n    /**\n     * Execute the task.\n     * @throws BuildException on error\n     */\n    public void execute() throws BuildException {\n        validateAttributes();\n\n        File generatedFile = getGeneratedFile();\n        boolean targetIsOutOfDate =\n            targetFile.lastModified() > generatedFile.lastModified();\n        boolean superGrammarIsOutOfDate  = superGrammar != null\n                && (superGrammar.lastModified() > generatedFile.lastModified());\n        if (targetIsOutOfDate || superGrammarIsOutOfDate) {\n            if (targetIsOutOfDate) {\n                log(\"Compiling \" + targetFile + \" as it is newer than \"\n                    + generatedFile, Project.MSG_VERBOSE);\n            } else {\n                log(\"Compiling \" + targetFile + \" as \" + superGrammar\n                    + \" is newer than \" + generatedFile, Project.MSG_VERBOSE);\n            }\n            populateAttributes();\n            commandline.createArgument().setValue(targetFile.toString());\n\n            log(commandline.describeCommand(), Project.MSG_VERBOSE);\n            int err = run(commandline.getCommandline());\n            if (err != 0) {\n                throw new BuildException(\"ANTLR returned: \" + err, getLocation());\n            } else {\n                String output = bos.toString();\n                if (output.indexOf(\"error:\") > -1) {\n                    throw new BuildException(\"ANTLR signaled an error: \"\n                                             + output, getLocation());\n                }\n            }\n        } else {\n            log(\"Skipped grammar file. Generated file \" + generatedFile\n                + \" is newer.\", Project.MSG_VERBOSE);\n        }\n    }\n\n    /**\n     * A refactored method for populating all the command line arguments based\n     * on the user-specified attributes.\n     */\n    private void populateAttributes() {\n        commandline.createArgument().setValue(\"-o\");\n        commandline.createArgument().setValue(outputDirectory.toString());\n        if (superGrammar != null) {\n            commandline.createArgument().setValue(\"-glib\");\n            commandline.createArgument().setValue(superGrammar.toString());\n        }\n        if (html) {\n            commandline.createArgument().setValue(\"-html\");\n        }\n        if (diagnostic) {\n            commandline.createArgument().setValue(\"-diagnostic\");\n        }\n        if (trace) {\n            commandline.createArgument().setValue(\"-trace\");\n        }\n        if (traceParser) {\n            commandline.createArgument().setValue(\"-traceParser\");\n        }\n        if (traceLexer) {\n            commandline.createArgument().setValue(\"-traceLexer\");\n        }\n        if (traceTreeWalker) {\n            if (is272()) {\n                commandline.createArgument().setValue(\"-traceTreeParser\");\n            } else {\n                commandline.createArgument().setValue(\"-traceTreeWalker\");\n            }\n        }\n        if (debug) {\n            commandline.createArgument().setValue(\"-debug\");\n        }\n    }\n\n    private void validateAttributes() throws BuildException {\n        if (targetFile == null || !targetFile.isFile()) {\n            throw new BuildException(\"Invalid target: \" + targetFile);\n        }\n\n        if (outputDirectory == null) {\n            setOutputdirectory(new File(targetFile.getParent()));\n        }\n        if (!outputDirectory.isDirectory()) {\n            throw new BuildException(\"Invalid output directory: \" + outputDirectory);\n        }\n    }\n\n    private File getGeneratedFile() throws BuildException {\n        String generatedFileName = null;\n        try {\n            BufferedReader in = new BufferedReader(new FileReader(targetFile));\n            String line;\n            while ((line = in.readLine()) != null) {\n                int extendsIndex = line.indexOf(\" extends \");\n                if (line.startsWith(\"class \") && extendsIndex > -1) {\n                    generatedFileName = line.substring(\n                        \"class \".length(), extendsIndex).trim();\n                    break;\n                }\n            }\n            in.close();\n        } catch (Exception e) {\n            throw new BuildException(\"Unable to determine generated class\", e);\n        }\n        if (generatedFileName == null) {\n            throw new BuildException(\"Unable to determine generated class\");\n        }\n        return new File(outputDirectory, generatedFileName\n                        + (html ? \".html\" : \".java\"));\n    }\n\n    /** execute in a forked VM */\n    private int run(String[] command) throws BuildException {\n        PumpStreamHandler psh =\n            new PumpStreamHandler(new LogOutputStream(this, Project.MSG_INFO),\n                                  new TeeOutputStream(\n                                                      new LogOutputStream(this,\n                                                                          Project.MSG_WARN),\n                                                      bos)\n                                  );\n        Execute exe = new Execute(psh, null);\n        exe.setAntRun(getProject());\n        if (workingdir != null) {\n            exe.setWorkingDirectory(workingdir);\n        }\n        exe.setCommandline(command);\n        try {\n            return exe.execute();\n        } catch (IOException e) {\n            throw new BuildException(e, getLocation());\n        } finally {\n            FileUtils.close(bos);\n        }\n    }\n\n    /**\n     * Whether the antlr version is 2.7.2 (or higher).\n     *\n     * @return true if the version of Antlr present is 2.7.2 or later.\n     * @since Ant 1.6\n     */\n    protected boolean is272() {\n        AntClassLoader l = null;\n        try {\n            l = getProject().createClassLoader(commandline.getClasspath());\n            l.loadClass(\"antlr.Version\");\n            return true;\n        } catch (ClassNotFoundException e) {\n            return false;\n        } finally {\n            if (l != null) {\n                l.cleanup();", "functions": [{"function_name": "setTarget", "code": "    public void setTarget(File target) {\n        log(\"Setting target to: \" + target.toString(), Project.MSG_VERBOSE);\n        this.targetFile = target;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOutputdirectory", "code": "    public void setOutputdirectory(File outputDirectory) {\n        log(\"Setting output directory to: \" + outputDirectory.toString(), Project.MSG_VERBOSE);\n        this.outputDirectory = outputDirectory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setGlib", "code": "    public void setGlib(String superGrammar) {\n        String sg = null;\n        if (Os.isFamily(\"dos\")) {\n            sg = superGrammar.replace('\\\\', '/');\n        } else {\n            sg = superGrammar;\n        }\n        setGlib(FILE_UTILS.resolveFile(getProject().getBaseDir(), sg));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [5, 7], [2, 8], [6, 9], [1, 10], [1, 11], [9, 12], [11, 13], [13, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 5], [8, 2], [9, 6], [10, 1], [11, 1], [12, 9], [13, 11], [14, 13], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setGlib", "code": "    public void setGlib(File superGrammar) {\n        this.superGrammar = superGrammar;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDebug", "code": "    public void setDebug(boolean enable) {\n        this.debug = enable;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHtml", "code": "    public void setHtml(boolean enable) {\n        html = enable;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDiagnostic", "code": "    public void setDiagnostic(boolean enable) {\n        diagnostic = enable;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTrace", "code": "    public void setTrace(boolean enable) {\n        trace = enable;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTraceParser", "code": "    public void setTraceParser(boolean enable) {\n        traceParser = enable;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTraceLexer", "code": "    public void setTraceLexer(boolean enable) {\n        traceLexer = enable;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTraceTreeWalker", "code": "    public void setTraceTreeWalker(boolean enable) {\n        traceTreeWalker = enable;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFork", "code": "    public void setFork(boolean s) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDir", "code": "    public void setDir(File d) {\n        this.workingdir = d;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        return commandline.createClasspath(getProject()).createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createJvmarg", "code": "    public Commandline.Argument createJvmarg() {\n        return commandline.createVmArgument();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "init", "code": "    public void init() throws BuildException {\n        addClasspathEntry(\"/antlr/ANTLRGrammarParseBehavior.class\");", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addClasspathEntry", "code": "    protected void addClasspathEntry(String resource) {\n        /*\n         * pre Ant 1.6 this method used to call getClass().getResource\n         * while Ant 1.6 will call ClassLoader.getResource().\n         *\n         * The difference is that Class.getResource expects a leading\n         * slash for \"absolute\" resources and will strip it before\n         * delegating to ClassLoader.getResource - so we now have to\n         * emulate Class's behavior.\n         */\n        if (resource.startsWith(\"/\")) {\n            resource = resource.substring(1);\n        } else {\n            resource = \"org/apache/tools/ant/taskdefs/optional/\"\n                + resource;\n        }\n\n        File f = LoaderUtils.getResourceSource(getClass().getClassLoader(),\n                                               resource);\n        if (f != null) {\n            log(\"Found \" + f.getAbsolutePath(), Project.MSG_DEBUG);\n            createClasspath().setLocation(f);\n        } else {\n            log(\"Couldn\\'t find \" + resource, Project.MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [6, 9], [1, 10], [1, 11], [1, 12], [8, 13], [3, 14], [3, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [18, 23], [18, 24], [20, 25], [21, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 6], [10, 1], [11, 1], [12, 1], [13, 8], [14, 3], [15, 3], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 18], [24, 18], [25, 20], [26, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        validateAttributes();\n\n        File generatedFile = getGeneratedFile();\n        boolean targetIsOutOfDate =\n            targetFile.lastModified() > generatedFile.lastModified();\n        boolean superGrammarIsOutOfDate  = superGrammar != null\n                && (superGrammar.lastModified() > generatedFile.lastModified());\n        if (targetIsOutOfDate || superGrammarIsOutOfDate) {\n            if (targetIsOutOfDate) {\n                log(\"Compiling \" + targetFile + \" as it is newer than \"\n                    + generatedFile, Project.MSG_VERBOSE);\n            } else {\n                log(\"Compiling \" + targetFile + \" as \" + superGrammar\n                    + \" is newer than \" + generatedFile, Project.MSG_VERBOSE);\n            }\n            populateAttributes();\n            commandline.createArgument().setValue(targetFile.toString());\n\n            log(commandline.describeCommand(), Project.MSG_VERBOSE);\n            int err = run(commandline.getCommandline());\n            if (err != 0) {\n                throw new BuildException(\"ANTLR returned: \" + err, getLocation());\n            } else {\n                String output = bos.toString();\n                if (output.indexOf(\"error:\") > -1) {\n                    throw new BuildException(\"ANTLR signaled an error: \"\n                                             + output, getLocation());\n                }\n            }\n        } else {\n            log(\"Skipped grammar file. Generated file \" + generatedFile\n                + \" is newer.\", Project.MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [3, 11], [4, 12], [1, 13], [7, 14], [1, 15], [1, 16], [1, 17], [10, 18], [10, 19], [11, 20], [11, 21], [13, 22], [7, 23], [7, 24], [7, 25], [14, 26], [8, 27], [15, 28], [16, 29], [18, 30], [18, 31], [19, 32], [22, 33], [22, 34], [23, 35], [25, 36], [27, 37], [29, 38], [9, 39], [9, 40], [34, 41], [23, 42], [35, 43], [35, 44], [24, 45], [36, 46], [36, 47], [39, 48], [40, 49], [42, 50], [44, 51], [47, 52], [48, 53], [49, 54], [50, 55], [50, 56], [53, 57], [53, 58], [54, 59], [54, 60], [56, 61], [58, 62], [60, 63], [62, 64], [62, 65], [65, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 3], [12, 4], [13, 1], [14, 7], [15, 1], [16, 1], [17, 1], [18, 10], [19, 10], [20, 11], [21, 11], [22, 13], [23, 7], [24, 7], [25, 7], [26, 14], [27, 8], [28, 15], [29, 16], [30, 18], [31, 18], [32, 19], [33, 22], [34, 22], [35, 23], [36, 25], [37, 27], [38, 29], [39, 9], [40, 9], [41, 34], [42, 23], [43, 35], [44, 35], [45, 24], [46, 36], [47, 36], [48, 39], [49, 40], [50, 42], [51, 44], [52, 47], [53, 48], [54, 49], [55, 50], [56, 50], [57, 53], [58, 53], [59, 54], [60, 54], [61, 56], [62, 58], [63, 60], [64, 62], [65, 62], [66, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "populateAttributes", "code": "    private void populateAttributes() {\n        commandline.createArgument().setValue(\"-o\");\n        commandline.createArgument().setValue(outputDirectory.toString());\n        if (superGrammar != null) {\n            commandline.createArgument().setValue(\"-glib\");\n            commandline.createArgument().setValue(superGrammar.toString());\n        }\n        if (html) {\n            commandline.createArgument().setValue(\"-html\");\n        }\n        if (diagnostic) {\n            commandline.createArgument().setValue(\"-diagnostic\");\n        }\n        if (trace) {\n            commandline.createArgument().setValue(\"-trace\");\n        }\n        if (traceParser) {\n            commandline.createArgument().setValue(\"-traceParser\");\n        }\n        if (traceLexer) {\n            commandline.createArgument().setValue(\"-traceLexer\");\n        }\n        if (traceTreeWalker) {\n            if (is272()) {\n                commandline.createArgument().setValue(\"-traceTreeParser\");\n            } else {\n                commandline.createArgument().setValue(\"-traceTreeWalker\");\n            }\n        }\n        if (debug) {\n            commandline.createArgument().setValue(\"-debug\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [8, 9], [0, 10], [0, 11], [2, 12], [9, 13], [10, 14], [11, 15], [1, 16], [12, 17], [3, 18], [4, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [14, 25], [15, 26], [16, 27], [18, 28], [19, 29], [20, 30], [21, 31], [22, 32], [23, 33], [24, 34], [27, 35], [12, 36], [12, 37], [28, 38], [29, 39], [30, 40], [31, 41], [32, 42], [33, 43], [34, 44], [36, 45], [37, 46], [45, 47], [46, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 8], [10, 0], [11, 0], [12, 2], [13, 9], [14, 10], [15, 11], [16, 1], [17, 12], [18, 3], [19, 4], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 14], [26, 15], [27, 16], [28, 18], [29, 19], [30, 20], [31, 21], [32, 22], [33, 23], [34, 24], [35, 27], [36, 12], [37, 12], [38, 28], [39, 29], [40, 30], [41, 31], [42, 32], [43, 33], [44, 34], [45, 36], [46, 37], [47, 45], [48, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "validateAttributes", "code": "    private void validateAttributes() throws BuildException {\n        if (targetFile == null || !targetFile.isFile()) {\n            throw new BuildException(\"Invalid target: \" + targetFile);\n        }\n\n        if (outputDirectory == null) {\n            setOutputdirectory(new File(targetFile.getParent()));\n        }\n        if (!outputDirectory.isDirectory()) {\n            throw new BuildException(\"Invalid output directory: \" + outputDirectory);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [5, 8], [3, 9], [6, 10], [6, 11], [7, 12], [2, 13], [9, 14], [11, 15], [12, 16], [13, 17], [14, 18], [16, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 5], [9, 3], [10, 6], [11, 6], [12, 7], [13, 2], [14, 9], [15, 11], [16, 12], [17, 13], [18, 14], [19, 16], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getGeneratedFile", "code": "    private File getGeneratedFile() throws BuildException {\n        String generatedFileName = null;\n        try {\n            BufferedReader in = new BufferedReader(new FileReader(targetFile));\n            String line;\n            while ((line = in.readLine()) != null) {\n                int extendsIndex = line.indexOf(\" extends \");\n                if (line.startsWith(\"class \") && extendsIndex > -1) {\n                    generatedFileName = line.substring(\n                        \"class \".length(), extendsIndex).trim();\n                    break;\n                }\n            }\n            in.close();\n        } catch (Exception e) {\n            throw new BuildException(\"Unable to determine generated class\", e);\n        }\n        if (generatedFileName == null) {\n            throw new BuildException(\"Unable to determine generated class\");\n        }\n        return new File(outputDirectory, generatedFileName\n                        + (html ? \".html\" : \".java\"));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [3, 9], [3, 10], [5, 11], [2, 12], [6, 13], [7, 14], [3, 15], [8, 16], [4, 17], [11, 18], [12, 19], [14, 20], [8, 21], [8, 22], [16, 23], [16, 24], [10, 25], [18, 26], [18, 27], [19, 28], [20, 29], [21, 30], [24, 31], [25, 32], [21, 33], [30, 34], [30, 35], [22, 36], [21, 37], [34, 38], [35, 39], [36, 40], [37, 41], [41, 42], [41, 43], [42, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 3], [10, 3], [11, 5], [12, 2], [13, 6], [14, 7], [15, 3], [16, 8], [17, 4], [18, 11], [19, 12], [20, 14], [21, 8], [22, 8], [23, 16], [24, 16], [25, 10], [26, 18], [27, 18], [28, 19], [29, 20], [30, 21], [31, 24], [32, 25], [33, 21], [34, 30], [35, 30], [36, 22], [37, 21], [38, 34], [39, 35], [40, 36], [41, 37], [42, 41], [43, 41], [44, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "run", "code": "    private int run(String[] command) throws BuildException {\n        PumpStreamHandler psh =\n            new PumpStreamHandler(new LogOutputStream(this, Project.MSG_INFO),\n                                  new TeeOutputStream(\n                                                      new LogOutputStream(this,\n                                                                          Project.MSG_WARN),\n                                                      bos)\n                                  );\n        Execute exe = new Execute(psh, null);\n        exe.setAntRun(getProject());\n        if (workingdir != null) {\n            exe.setWorkingDirectory(workingdir);\n        }\n        exe.setCommandline(command);\n        try {\n            return exe.execute();\n        } catch (IOException e) {\n            throw new BuildException(e, getLocation());\n        } finally {\n            FileUtils.close(bos);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [2, 9], [0, 10], [1, 11], [6, 12], [7, 13], [9, 14], [10, 15], [3, 16], [4, 17], [12, 18], [2, 19], [16, 20], [17, 21], [17, 22], [18, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 2], [10, 0], [11, 1], [12, 6], [13, 7], [14, 9], [15, 10], [16, 3], [17, 4], [18, 12], [19, 2], [20, 16], [21, 17], [22, 17], [23, 18], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "is272", "code": "    protected boolean is272() {\n        AntClassLoader l = null;\n        try {\n            l = getProject().createClassLoader(commandline.getClasspath());\n            l.loadClass(\"antlr.Version\");\n            return true;\n        } catch (ClassNotFoundException e) {\n            return false;\n        } finally {\n            if (l != null) {\n                l.cleanup();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "CATCH", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [1, 9], [1, 10], [2, 11], [6, 12], [7, 13], [9, 14], [10, 15], [3, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 1], [10, 1], [11, 2], [12, 6], [13, 7], [14, 9], [15, 10], [16, 3], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "ANTLR", "code": "    public ANTLR() {\n        commandline.setVm(JavaEnvUtils.getJreExecutable(\"java\"));\n        commandline.setClassname(\"antlr.Tool\");", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-4.2-4496", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/io/FileVFS.java", "language": "java", "name": "org.gjt.sp.jedit.io.FileVFS", "code": "public class FileVFS extends VFS\n{\n\tpublic static final String PERMISSIONS_PROPERTY = \"FileVFS__perms\";\n\n\t//{{{ FileVFS method\n\tpublic FileVFS()\n\t{\n\t\tsuper(\"file\",READ_CAP | WRITE_CAP | DELETE_CAP\n\t\t\t| RENAME_CAP | MKDIR_CAP | LOW_LATENCY_CAP\n\t\t\t| ((OperatingSystem.isMacOS()\n\t\t\t|| OperatingSystem.isDOSDerived())\n\t\t\t? CASE_INSENSITIVE_CAP : 0),\n\t\t\tnew String[] { EA_TYPE, EA_SIZE, EA_STATUS,\n\t\t\tEA_MODIFIED });\n\t} //}}}\n\n\t//{{{ getParentOfPath() method\n\tpublic String getParentOfPath(String path)\n\t{\n\t\tif(OperatingSystem.isDOSDerived())\n\t\t{\n\t\t\tif(path.length() == 2 && path.charAt(1) == ':')\n\t\t\t\treturn FileRootsVFS.PROTOCOL + \":\";\n\t\t\telse if(path.length() == 3 && path.endsWith(\":\\\\\"))\n\t\t\t\treturn FileRootsVFS.PROTOCOL + \":\";\n\t\t\telse if(path.startsWith(\"\\\\\\\\\") && path.indexOf('\\\\',2) == -1)\n\t\t\t\treturn path;\n\t\t}\n\n\t\treturn super.getParentOfPath(path);\n\t} //}}}\n\n\t//{{{ constructPath() method\n\tpublic String constructPath(String parent, String path)\n\t{\n\t\tif(parent.endsWith(File.separator)\n\t\t\t|| parent.endsWith(\"/\"))\n\t\t\treturn parent + path;\n\t\telse\n\t\t\treturn parent + File.separator + path;\n\t} //}}}\n\n\t//{{{ getFileSeparator() method\n\tpublic char getFileSeparator()\n\t{\n\t\treturn File.separatorChar;\n\t} //}}}\n\n\t//{{{ save() method\n\tpublic boolean save(View view, Buffer buffer, String path)\n\t{\n\t\tif(OperatingSystem.isUnix())\n\t\t{\n\t\t\tint permissions = getPermissions(buffer.getPath());\n\t\t\tLog.log(Log.DEBUG,this,buffer.getPath() + \" has permissions 0\"\n\t\t\t\t+ Integer.toString(permissions,8));\n\t\t\tbuffer.setIntegerProperty(PERMISSIONS_PROPERTY,permissions);\n\t\t}\n\n\t\treturn super.save(view,buffer,path);\n\t} //}}}\n\n\t//{{{ insert() method\n\tpublic boolean insert(View view, Buffer buffer, String path)\n\t{\n\t\tFile file = new File(path);\n\n\t\t//{{{ Check if file is valid\n\t\tif(!file.exists())\n\t\t\treturn false;\n\n\t\tif(file.isDirectory())\n\t\t{\n\t\t\tVFSManager.error(view,file.getPath(),\n\t\t\t\t\"ioerror.open-directory\",null);\n\t\t\treturn false;\n\t\t}\n\n\t\tif(!file.canRead())\n\t\t{\n\t\t\tVFSManager.error(view,file.getPath(),\n\t\t\t\t\"ioerror.no-read\",null);\n\t\t\treturn false;\n\t\t} //}}}\n\n\t\treturn super.insert(view,buffer,path);\n\t} //}}}\n\n\t//{{{ _canonPath() method\n\t/**\n\t * Returns the canonical form if the specified path name. For example,\n\t * <code>~</code> might be expanded to the user's home directory.\n\t * @param session The session\n\t * @param path The path\n\t * @param comp The component that will parent error dialog boxes\n\t * @exception IOException if an I/O error occurred\n\t * @since jEdit 4.0pre2\n\t */\n\tpublic String _canonPath(Object session, String path, Component comp)\n\t\tthrows IOException\n\t{\n\t\treturn MiscUtilities.canonPath(path);\n\t} //}}}\n\n\t//{{{ LocalDirectoryEntry class\n\tpublic static class LocalDirectoryEntry extends VFS.DirectoryEntry\n\t{\n\t\t// use system default short format\n\t\tpublic static DateFormat DATE_FORMAT\n\t\t\t= DateFormat.getInstance();\n\n\t\tpublic long modified;\n\n\t\tpublic LocalDirectoryEntry(File file)\n\t\t{\n\t\t\tsuper(file.getName(),file.getPath(),\n\t\t\t\tfile.getPath(),file.isDirectory() ? DIRECTORY : FILE,file.length(),file.isHidden());\n\t\t\tthis.modified = file.lastModified();\n\t\t\tthis.canRead = file.canRead();\n\t\t\tthis.canWrite = file.canWrite();\n\t\t\tthis.symlinkPath = MiscUtilities.resolveSymlinks(path);\n\t\t}\n\n\t\tpublic String getExtendedAttribute(String name)\n\t\t{\n\t\t\tif(name.equals(EA_MODIFIED))\n\t\t\t\treturn DATE_FORMAT.format(new Date(modified));\n\t\t\telse\n\t\t\t\treturn super.getExtendedAttribute(name);\n\t\t}\n\t} //}}}\n\n\t//{{{ _listDirectory() method\n\tpublic VFS.DirectoryEntry[] _listDirectory(Object session, String path,\n\t\tComponent comp)\n\t{\n\t\t//{{{ Windows work around\n\t\t/* On Windows, paths of the form X: list the last *working\n\t\t * directory* on that drive. To list the root of the drive,\n\t\t * you must use X:\\.\n\t\t *\n\t\t * However, the VFS browser and friends strip off trailing\n\t\t * path separators, for various reasons. So to work around\n\t\t * that, we add a '\\' to drive letter paths on Windows.\n\t\t */\n\t\tif(OperatingSystem.isWindows())\n\t\t{\n\t\t\tif(path.length() == 2 && path.charAt(1) == ':')\n\t\t\t\tpath = path.concat(File.separator);\n\t\t} //}}}\n\n\t\tFile directory = new File(path);\n\t\tFile[] list = directory.listFiles();\n\t\tif(list == null)\n\t\t{\n\t\t\tVFSManager.error(comp,path,\"ioerror.directory-error-nomsg\",null);\n\t\t\treturn null;\n\t\t}\n\n\t\tVFS.DirectoryEntry[] list2 = new VFS.DirectoryEntry[list.length];\n\t\tfor(int i = 0; i < list.length; i++)\n\t\t\tlist2[i] = new LocalDirectoryEntry(list[i]);\n\n\t\treturn list2;\n\t} //}}}\n\n\t//{{{ _getDirectoryEntry() method\n\tpublic DirectoryEntry _getDirectoryEntry(Object session, String path,\n\t\tComponent comp)\n\t{\n\t\tif(path.equals(\"/\") && OperatingSystem.isUnix())\n\t\t{\n\t\t\treturn new VFS.DirectoryEntry(path,path,path,\n\t\t\t\tVFS.DirectoryEntry.DIRECTORY,0L,false);\n\t\t}\n\n\t\tFile file = new File(path);\n\t\tif(!file.exists())\n\t\t\treturn null;\n\n\t\treturn new LocalDirectoryEntry(file);\n\t} //}}}\n\n\t//{{{ _delete() method\n\tpublic boolean _delete(Object session, String path, Component comp)\n\t{\n\t\tFile file = new File(path);\n\t\t// do some platforms throw exceptions if the file does not exist\n\t\t// when we ask for the canonical path?\n\t\tString canonPath;\n\t\ttry\n\t\t{\n\t\t\tcanonPath = file.getCanonicalPath();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tcanonPath = path;\n\t\t}\n\n\t\tboolean retVal = file.delete();\n\t\tif(retVal)\n\t\t\tVFSManager.sendVFSUpdate(this,canonPath,true);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ _rename() method\n\tpublic boolean _rename(Object session, String from, String to,\n\t\tComponent comp)\n\t{\n\t\tFile _to = new File(to);\n\n\t\tString toCanonPath;\n\t\ttry\n\t\t{\n\t\t\ttoCanonPath = _to.getCanonicalPath();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\ttoCanonPath = to;\n\t\t}\n\n\t\t// this is needed because on OS X renaming to a non-existent\n\t\t// directory causes problems\n\t\tFile parent = new File(_to.getParent());\n\t\tif(parent.exists())\n\t\t{\n\t\t\tif(!parent.isDirectory())\n\t\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tparent.mkdirs();\n\t\t\tif(!parent.exists())\n\t\t\t\treturn false;\n\t\t}\n\n\t\tFile _from = new File(from);\n\n\t\tString fromCanonPath;\n\t\ttry\n\t\t{\n\t\t\tfromCanonPath = _from.getCanonicalPath();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tfromCanonPath = from;\n\t\t}\n\n\t\t// Case-insensitive fs workaround\n\t\tif(!fromCanonPath.equalsIgnoreCase(toCanonPath))\n\t\t\t_to.delete();\n\n\t\tboolean retVal = _from.renameTo(_to);\n\t\tVFSManager.sendVFSUpdate(this,fromCanonPath,true);\n\t\tVFSManager.sendVFSUpdate(this,toCanonPath,true);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ _mkdir() method\n\tpublic boolean _mkdir(Object session, String directory, Component comp)\n\t{\n\t\tString parent = getParentOfPath(directory);\n\t\tif(!new File(parent).exists())\n\t\t{\n\t\t\tif(!_mkdir(session,parent,comp))\n\t\t\t\treturn false;\n\t\t}\n\n\t\tFile file = new File(directory);\n\n\t\tboolean retVal = file.mkdir();\n\t\tString canonPath;\n\t\ttry\n\t\t{\n\t\t\tcanonPath = file.getCanonicalPath();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tcanonPath = directory;\n\t\t}\n\t\tVFSManager.sendVFSUpdate(this,canonPath,true);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ _backup() method\n\tpublic void _backup(Object session, String path, Component comp)\n\t\tthrows IOException\n\t{\n\t\t// Fetch properties\n\t\tint backups = jEdit.getIntegerProperty(\"backups\",1);\n\n\t\tif(backups == 0)\n\t\t\treturn;\n\n\t\tString backupPrefix = jEdit.getProperty(\"backup.prefix\");\n\t\tString backupSuffix = jEdit.getProperty(\"backup.suffix\");\n\n\t\tString backupDirectory = jEdit.getProperty(\"backup.directory\");\n\n\t\tint backupTimeDistance = jEdit.getIntegerProperty(\"backup.minTime\",0);\n\t\tFile file = new File(path);\n\n\t\t// Check for backup.directory, and create that\n\t\t// directory if it doesn't exist\n\t\tif(backupDirectory == null || backupDirectory.length() == 0)\n\t\t\tbackupDirectory = file.getParent();\n\t\telse\n\t\t{\n\t\t\tbackupDirectory = MiscUtilities.constructPath(\n\t\t\t\tSystem.getProperty(\"user.home\"),backupDirectory);\n\n\t\t\t// Perhaps here we would want to guard with\n\t\t\t// a property for parallel backups or not.\n\t\t\tbackupDirectory = MiscUtilities.concatPath(\n\t\t\t\tbackupDirectory,file.getParent());\n\n\t\t\tFile dir = new File(backupDirectory);\n\n\t\t\tif (!dir.exists())\n\t\t\t\tdir.mkdirs();\n\t\t}\n\n\t\tMiscUtilities.saveBackup(file,backups,backupPrefix,\n\t\t\tbackupSuffix,backupDirectory,backupTimeDistance);\n\t} //}}}\n\n\t//{{{ _createInputStream() method\n\tpublic InputStream _createInputStream(Object session, String path,\n\t\tboolean ignoreErrors, Component comp) throws IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn new FileInputStream(path);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tif(ignoreErrors)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\tthrow io;\n\t\t}\n\t} //}}}\n\n\t//{{{ _createOutputStream() method\n\tpublic OutputStream _createOutputStream(Object session, String path,\n\t\tComponent comp) throws IOException\n\t{\n\t\treturn new FileOutputStream(path);\n\t} //}}}\n\n\t//{{{ _saveComplete() method\n\tpublic void _saveComplete(Object session, Buffer buffer, String path,\n\t\tComponent comp)\n\t{\n\t\tint permissions = buffer.getIntegerProperty(PERMISSIONS_PROPERTY,0);\n\t\tsetPermissions(path,permissions);\n\t} //}}}\n\n\t//{{{ Permission preservation code\n\n\t/** Code borrowed from j text editor (http://www.armedbear.org) */\n\t/** I made some changes to make it support suid, sgid and sticky files */\n\n\t//{{{ getPermissions() method\n\t/**\n\t * Returns numeric permissions of a file. On non-Unix systems, always\n\t * returns zero.\n\t * @since jEdit 3.2pre9\n\t */\n\tpublic static int getPermissions(String path)\n\t{\n\t\tint permissions = 0;\n\n\t\tif(jEdit.getBooleanProperty(\"chmodDisabled\"))\n\t\t\treturn permissions;\n\n\t\tif(OperatingSystem.isUnix())\n\t\t{\n\t\t\tString[] cmdarray = { \"ls\", \"-ld\", path };\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tProcess process = Runtime.getRuntime().exec(cmdarray);\n\n\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\n\t\t\t\tString output = reader.readLine();\n\n\t\t\t\tif(output != null)\n\t\t\t\t{\n\t\t\t\t\tString s = output.substring(1, 10);\n\n\t\t\t\t\tpermissions = MiscUtilities\n\t\t\t\t\t\t.parsePermissions(s);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Feb 4 2000 5:30 PM\n\t\t\t// Catch Throwable here rather than Exception.\n\t\t\t// Kaffe's implementation of Runtime.exec throws java.lang.InternalError.\n\t\t\tcatch (Throwable t)\n\t\t\t{\n\t\t\t}\n\t\t}\n\n\t\treturn permissions;\n\t} //}}}\n\n\t//{{{ setPermissions() method\n\t/**\n\t * Sets numeric permissions of a file. On non-Unix platforms,\n\t * does nothing.\n\t * @since jEdit 3.2pre9\n\t */\n\tpublic static void setPermissions(String path, int permissions)\n\t{\n\t\tif(jEdit.getBooleanProperty(\"chmodDisabled\"))\n\t\t\treturn;\n\n\t\tif(permissions != 0)\n\t\t{\n\t\t\tif(OperatingSystem.isUnix())\n\t\t\t{\n\t\t\t\tString[] cmdarray = { \"chmod\", Integer.toString(permissions, 8), path };\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tProcess process = Runtime.getRuntime().exec(cmdarray);\n\t\t\t\t\tprocess.getInputStream().close();\n\t\t\t\t\tprocess.getOutputStream().close();\n\t\t\t\t\tprocess.getErrorStream().close();", "functions": [{"function_name": "getParentOfPath", "code": "\tpublic String getParentOfPath(String path)\n\t{\n\t\tif(OperatingSystem.isDOSDerived())\n\t\t{\n\t\t\tif(path.length() == 2 && path.charAt(1) == ':')\n\t\t\t\treturn FileRootsVFS.PROTOCOL + \":\";\n\t\t\telse if(path.length() == 3 && path.endsWith(\":\\\\\"))\n\t\t\t\treturn FileRootsVFS.PROTOCOL + \":\";\n\t\t\telse if(path.startsWith(\"\\\\\\\\\") && path.indexOf('\\\\',2) == -1)\n\t\t\t\treturn path;\n\t\t}\n\n\t\treturn super.getParentOfPath(path);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "IF", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [5, 7], [5, 8], [6, 9], [6, 10], [6, 11], [7, 12], [8, 13], [8, 14], [9, 15], [9, 16], [10, 17], [11, 18], [11, 19], [12, 20], [13, 21], [13, 22], [14, 23], [14, 24], [16, 25], [16, 26], [17, 27], [18, 28], [19, 29], [19, 30], [22, 31], [25, 32], [25, 33], [26, 34], [33, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [7, 5], [8, 5], [9, 6], [10, 6], [11, 6], [12, 7], [13, 8], [14, 8], [15, 9], [16, 9], [17, 10], [18, 11], [19, 11], [20, 12], [21, 13], [22, 13], [23, 14], [24, 14], [25, 16], [26, 16], [27, 17], [28, 18], [29, 19], [30, 19], [31, 22], [32, 25], [33, 25], [34, 26], [35, 33], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "constructPath", "code": "\tpublic String constructPath(String parent, String path)\n\t{\n\t\tif(parent.endsWith(File.separator)\n\t\t\t|| parent.endsWith(\"/\"))\n\t\t\treturn parent + path;\n\t\telse\n\t\t\treturn parent + File.separator + path;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [6, 10], [7, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 6], [11, 7], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getFileSeparator", "code": "\tpublic char getFileSeparator()\n\t{\n\t\treturn File.separatorChar;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "save", "code": "\tpublic boolean save(View view, Buffer buffer, String path)\n\t{\n\t\tif(OperatingSystem.isUnix())\n\t\t{\n\t\t\tint permissions = getPermissions(buffer.getPath());\n\t\t\tLog.log(Log.DEBUG,this,buffer.getPath() + \" has permissions 0\"\n\t\t\t\t+ Integer.toString(permissions,8));\n\t\t\tbuffer.setIntegerProperty(PERMISSIONS_PROPERTY,permissions);\n\t\t}\n\n\t\treturn super.save(view,buffer,path);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [9, 10], [7, 11], [10, 12], [10, 13], [11, 14], [12, 15], [13, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 9], [11, 7], [12, 10], [13, 10], [14, 11], [15, 12], [16, 13], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "insert", "code": "\tpublic boolean insert(View view, Buffer buffer, String path)\n\t{\n\t\tFile file = new File(path);\n\n\t\t//{{{ Check if file is valid\n\t\tif(!file.exists())\n\t\t\treturn false;\n\n\t\tif(file.isDirectory())\n\t\t{\n\t\t\tVFSManager.error(view,file.getPath(),\n\t\t\t\t\"ioerror.open-directory\",null);\n\t\t\treturn false;\n\t\t}\n\n\t\tif(!file.canRead())\n\t\t{\n\t\t\tVFSManager.error(view,file.getPath(),\n\t\t\t\t\"ioerror.no-read\",null);\n\t\t\treturn false;\n\t\t} //}}}\n\n\t\treturn super.insert(view,buffer,path);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "RETURN", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [4, 12], [2, 13], [3, 14], [11, 15], [5, 16], [13, 17], [2, 18], [14, 19], [3, 20], [18, 21], [18, 22], [18, 23], [20, 24], [20, 25], [20, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 4], [13, 2], [14, 3], [15, 11], [16, 5], [17, 13], [18, 2], [19, 14], [20, 3], [21, 18], [22, 18], [23, 18], [24, 20], [25, 20], [26, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "_canonPath", "code": "\tpublic String _canonPath(Object session, String path, Component comp)\n\t\tthrows IOException\n\t{\n\t\treturn MiscUtilities.canonPath(path);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "_listDirectory", "code": "\tpublic VFS.DirectoryEntry[] _listDirectory(Object session, String path,\n\t\tComponent comp)\n\t{\n\t\t//{{{ Windows work around\n\t\t/* On Windows, paths of the form X: list the last *working\n\t\t * directory* on that drive. To list the root of the drive,\n\t\t * you must use X:\\.\n\t\t *\n\t\t * However, the VFS browser and friends strip off trailing\n\t\t * path separators, for various reasons. So to work around\n\t\t * that, we add a '\\' to drive letter paths on Windows.\n\t\t */\n\t\tif(OperatingSystem.isWindows())\n\t\t{\n\t\t\tif(path.length() == 2 && path.charAt(1) == ':')\n\t\t\t\tpath = path.concat(File.separator);\n\t\t} //}}}\n\n\t\tFile directory = new File(path);\n\t\tFile[] list = directory.listFiles();\n\t\tif(list == null)\n\t\t{\n\t\t\tVFSManager.error(comp,path,\"ioerror.directory-error-nomsg\",null);\n\t\t\treturn null;\n\t\t}\n\n\t\tVFS.DirectoryEntry[] list2 = new VFS.DirectoryEntry[list.length];\n\t\tfor(int i = 0; i < list.length; i++)\n\t\t\tlist2[i] = new LocalDirectoryEntry(list[i]);\n\n\t\treturn list2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [4, 12], [7, 13], [2, 14], [4, 15], [12, 16], [5, 17], [6, 18], [7, 19], [14, 20], [2, 21], [15, 22], [4, 23], [19, 24], [23, 25], [23, 26], [19, 27], [24, 28], [24, 29], [27, 30], [28, 31], [28, 32], [29, 33], [29, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 4], [13, 7], [14, 2], [15, 4], [16, 12], [17, 5], [18, 6], [19, 7], [20, 14], [21, 2], [22, 15], [23, 4], [24, 19], [25, 23], [26, 23], [27, 19], [28, 24], [29, 24], [30, 27], [31, 28], [32, 28], [33, 29], [34, 29], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "_getDirectoryEntry", "code": "\tpublic DirectoryEntry _getDirectoryEntry(Object session, String path,\n\t\tComponent comp)\n\t{\n\t\tif(path.equals(\"/\") && OperatingSystem.isUnix())\n\t\t{\n\t\t\treturn new VFS.DirectoryEntry(path,path,path,\n\t\t\t\tVFS.DirectoryEntry.DIRECTORY,0L,false);\n\t\t}\n\n\t\tFile file = new File(path);\n\t\tif(!file.exists())\n\t\t\treturn null;\n\n\t\treturn new LocalDirectoryEntry(file);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [4, 11], [9, 12], [3, 13], [4, 14], [11, 15], [11, 16], [14, 17], [16, 18], [17, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 4], [12, 9], [13, 3], [14, 4], [15, 11], [16, 11], [17, 14], [18, 16], [19, 17], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "_delete", "code": "\tpublic boolean _delete(Object session, String path, Component comp)\n\t{\n\t\tFile file = new File(path);\n\t\t// do some platforms throw exceptions if the file does not exist\n\t\t// when we ask for the canonical path?\n\t\tString canonPath;\n\t\ttry\n\t\t{\n\t\t\tcanonPath = file.getCanonicalPath();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tcanonPath = path;\n\t\t}\n\n\t\tboolean retVal = file.delete();\n\t\tif(retVal)\n\t\t\tVFSManager.sendVFSUpdate(this,canonPath,true);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [2, 11], [3, 12], [4, 13], [6, 14], [11, 15], [10, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 2], [12, 3], [13, 4], [14, 6], [15, 11], [16, 10], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "_rename", "code": "\tpublic boolean _rename(Object session, String from, String to,\n\t\tComponent comp)\n\t{\n\t\tFile _to = new File(to);\n\n\t\tString toCanonPath;\n\t\ttry\n\t\t{\n\t\t\ttoCanonPath = _to.getCanonicalPath();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\ttoCanonPath = to;\n\t\t}\n\n\t\t// this is needed because on OS X renaming to a non-existent\n\t\t// directory causes problems\n\t\tFile parent = new File(_to.getParent());\n\t\tif(parent.exists())\n\t\t{\n\t\t\tif(!parent.isDirectory())\n\t\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tparent.mkdirs();\n\t\t\tif(!parent.exists())\n\t\t\t\treturn false;\n\t\t}\n\n\t\tFile _from = new File(from);\n\n\t\tString fromCanonPath;\n\t\ttry\n\t\t{\n\t\t\tfromCanonPath = _from.getCanonicalPath();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tfromCanonPath = from;\n\t\t}\n\n\t\t// Case-insensitive fs workaround\n\t\tif(!fromCanonPath.equalsIgnoreCase(toCanonPath))\n\t\t\t_to.delete();\n\n\t\tboolean retVal = _from.renameTo(_to);\n\t\tVFSManager.sendVFSUpdate(this,fromCanonPath,true);\n\t\tVFSManager.sendVFSUpdate(this,toCanonPath,true);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CATCH", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "IF", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "RETURN", "CALL", "CALL", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [3, 18], [4, 19], [7, 20], [9, 21], [16, 22], [17, 23], [2, 24], [3, 25], [4, 26], [6, 27], [7, 28], [7, 29], [8, 30], [9, 31], [11, 32], [19, 33], [26, 34], [28, 35], [28, 36], [7, 37], [29, 38], [29, 39], [30, 40], [21, 41], [31, 42], [35, 43], [38, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 3], [19, 4], [20, 7], [21, 9], [22, 16], [23, 17], [24, 2], [25, 3], [26, 4], [27, 6], [28, 7], [29, 7], [30, 8], [31, 9], [32, 11], [33, 19], [34, 26], [35, 28], [36, 28], [37, 7], [38, 29], [39, 29], [40, 30], [41, 21], [42, 31], [43, 35], [44, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "_mkdir", "code": "\tpublic boolean _mkdir(Object session, String directory, Component comp)\n\t{\n\t\tString parent = getParentOfPath(directory);\n\t\tif(!new File(parent).exists())\n\t\t{\n\t\t\tif(!_mkdir(session,parent,comp))\n\t\t\t\treturn false;\n\t\t}\n\n\t\tFile file = new File(directory);\n\n\t\tboolean retVal = file.mkdir();\n\t\tString canonPath;\n\t\ttry\n\t\t{\n\t\t\tcanonPath = file.getCanonicalPath();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tcanonPath = directory;\n\t\t}\n\t\tVFSManager.sendVFSUpdate(this,canonPath,true);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "IF", "CALL", "CALL", "ASSIGN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [6, 13], [11, 14], [2, 15], [4, 16], [5, 17], [6, 18], [13, 19], [7, 20], [12, 21], [15, 22], [18, 23], [18, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 6], [14, 11], [15, 2], [16, 4], [17, 5], [18, 6], [19, 13], [20, 7], [21, 12], [22, 15], [23, 18], [24, 18], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "_backup", "code": "\tpublic void _backup(Object session, String path, Component comp)\n\t\tthrows IOException\n\t{\n\t\t// Fetch properties\n\t\tint backups = jEdit.getIntegerProperty(\"backups\",1);\n\n\t\tif(backups == 0)\n\t\t\treturn;\n\n\t\tString backupPrefix = jEdit.getProperty(\"backup.prefix\");\n\t\tString backupSuffix = jEdit.getProperty(\"backup.suffix\");\n\n\t\tString backupDirectory = jEdit.getProperty(\"backup.directory\");\n\n\t\tint backupTimeDistance = jEdit.getIntegerProperty(\"backup.minTime\",0);\n\t\tFile file = new File(path);\n\n\t\t// Check for backup.directory, and create that\n\t\t// directory if it doesn't exist\n\t\tif(backupDirectory == null || backupDirectory.length() == 0)\n\t\t\tbackupDirectory = file.getParent();\n\t\telse\n\t\t{\n\t\t\tbackupDirectory = MiscUtilities.constructPath(\n\t\t\t\tSystem.getProperty(\"user.home\"),backupDirectory);\n\n\t\t\t// Perhaps here we would want to guard with\n\t\t\t// a property for parallel backups or not.\n\t\t\tbackupDirectory = MiscUtilities.concatPath(\n\t\t\t\tbackupDirectory,file.getParent());\n\n\t\t\tFile dir = new File(backupDirectory);\n\n\t\t\tif (!dir.exists())\n\t\t\t\tdir.mkdirs();\n\t\t}\n\n\t\tMiscUtilities.saveBackup(file,backups,backupPrefix,\n\t\t\tbackupSuffix,backupDirectory,backupTimeDistance);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [7, 14], [7, 15], [1, 16], [1, 17], [1, 18], [13, 19], [13, 20], [2, 21], [3, 22], [4, 23], [5, 24], [6, 25], [15, 26], [8, 27], [16, 28], [1, 29], [1, 30], [18, 31], [19, 32], [19, 33], [20, 34], [22, 35], [22, 36], [23, 37], [24, 38], [25, 39], [27, 40], [27, 41], [16, 42], [17, 43], [29, 44], [30, 45], [44, 46], [45, 47], [47, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 7], [15, 7], [16, 1], [17, 1], [18, 1], [19, 13], [20, 13], [21, 2], [22, 3], [23, 4], [24, 5], [25, 6], [26, 15], [27, 8], [28, 16], [29, 1], [30, 1], [31, 18], [32, 19], [33, 19], [34, 20], [35, 22], [36, 22], [37, 23], [38, 24], [39, 25], [40, 27], [41, 27], [42, 16], [43, 17], [44, 29], [45, 30], [46, 44], [47, 45], [48, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "_createInputStream", "code": "\tpublic InputStream _createInputStream(Object session, String path,\n\t\tboolean ignoreErrors, Component comp) throws IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn new FileInputStream(path);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tif(ignoreErrors)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\tthrow io;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "CALL", "THROW_RAISE", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [7, 9], [8, 10], [8, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 7], [10, 8], [11, 8], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "_createOutputStream", "code": "\tpublic OutputStream _createOutputStream(Object session, String path,\n\t\tComponent comp) throws IOException\n\t{\n\t\treturn new FileOutputStream(path);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "_saveComplete", "code": "\tpublic void _saveComplete(Object session, Buffer buffer, String path,\n\t\tComponent comp)\n\t{\n\t\tint permissions = buffer.getIntegerProperty(PERMISSIONS_PROPERTY,0);\n\t\tsetPermissions(path,permissions);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getPermissions", "code": "\tpublic static int getPermissions(String path)\n\t{\n\t\tint permissions = 0;\n\n\t\tif(jEdit.getBooleanProperty(\"chmodDisabled\"))\n\t\t\treturn permissions;\n\n\t\tif(OperatingSystem.isUnix())\n\t\t{\n\t\t\tString[] cmdarray = { \"ls\", \"-ld\", path };\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tProcess process = Runtime.getRuntime().exec(cmdarray);\n\n\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\n\t\t\t\tString output = reader.readLine();\n\n\t\t\t\tif(output != null)\n\t\t\t\t{\n\t\t\t\t\tString s = output.substring(1, 10);\n\n\t\t\t\t\tpermissions = MiscUtilities\n\t\t\t\t\t\t.parsePermissions(s);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Feb 4 2000 5:30 PM\n\t\t\t// Catch Throwable here rather than Exception.\n\t\t\t// Kaffe's implementation of Runtime.exec throws java.lang.InternalError.\n\t\t\tcatch (Throwable t)\n\t\t\t{\n\t\t\t}\n\t\t}\n\n\t\treturn permissions;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "CALL", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [3, 8], [2, 9], [2, 10], [8, 11], [4, 12], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [14, 18], [14, 19], [18, 20], [15, 21], [16, 22], [17, 23], [10, 24], [10, 25], [14, 26], [22, 27], [23, 28], [26, 29], [19, 30], [27, 31], [30, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 3], [9, 2], [10, 2], [11, 8], [12, 4], [13, 9], [14, 9], [15, 9], [16, 9], [17, 9], [18, 14], [19, 14], [20, 18], [21, 15], [22, 16], [23, 17], [24, 10], [25, 10], [26, 14], [27, 22], [28, 23], [29, 26], [30, 19], [31, 27], [32, 30], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "setPermissions", "code": "\tpublic static void setPermissions(String path, int permissions)\n\t{\n\t\tif(jEdit.getBooleanProperty(\"chmodDisabled\"))\n\t\t\treturn;\n\n\t\tif(permissions != 0)\n\t\t{\n\t\t\tif(OperatingSystem.isUnix())\n\t\t\t{\n\t\t\t\tString[] cmdarray = { \"chmod\", Integer.toString(permissions, 8), path };\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tProcess process = Runtime.getRuntime().exec(cmdarray);\n\t\t\t\t\tprocess.getInputStream().close();\n\t\t\t\t\tprocess.getOutputStream().close();\n\t\t\t\t\tprocess.getErrorStream().close();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [5, 9], [7, 10], [8, 11], [8, 12], [8, 13], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [16, 19], [17, 20], [18, 21], [15, 22], [13, 23], [13, 24], [22, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 5], [10, 7], [11, 8], [12, 8], [13, 8], [14, 12], [15, 12], [16, 12], [17, 12], [18, 12], [19, 16], [20, 17], [21, 18], [22, 15], [23, 13], [24, 13], [25, 22], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "FileVFS", "code": "\tpublic FileVFS()\n\t{\n\t\tsuper(\"file\",READ_CAP | WRITE_CAP | DELETE_CAP\n\t\t\t| RENAME_CAP | MKDIR_CAP | LOW_LATENCY_CAP\n\t\t\t| ((OperatingSystem.isMacOS()\n\t\t\t|| OperatingSystem.isDOSDerived())\n\t\t\t? CASE_INSENSITIVE_CAP : 0),\n\t\t\tnew String[] { EA_TYPE, EA_SIZE, EA_STATUS,\n\t\t\tEA_MODIFIED });", "ast_nodes": ["FUNC_DECL", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [10, 11], [11, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [11, 10], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 1}
{"sample_id": "xalan-2.6-7520", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/transformer/TransformerImpl.java", "language": "java", "name": "org.apache.xalan.transformer.TransformerImpl", "code": "public class TransformerImpl extends Transformer\n        implements Runnable, DTMWSFilter, ExtensionsProvider, org.apache.xml.serializer.SerializerTrace\n{\n\n\n  /** NEEDSDOC Field m_reentryGuard          */\n  private Boolean m_reentryGuard = new Boolean(true);\n\n  /**\n   * This is null unless we own the stream.\n   */\n  private java.io.FileOutputStream m_outputStream = null;\n\n  /**\n   * True if the parser events should be on the main thread,\n   * false if not.  Experemental.  Can not be set right now.\n   */\n  private boolean m_parserEventsOnMain = true;\n\n  /** The thread that the transformer is running on. */\n  private Thread m_transformThread;\n\n  /** The base URL of the source tree. */\n  private String m_urlOfSource = null;\n\n  /** The Result object at the start of the transform, if any. */\n  private Result m_outputTarget = null;\n\n  /**\n   * The output format object set by the user.  May be null.\n   */\n  private OutputProperties m_outputFormat;\n\n\n  /**\n   * The content handler for the source input tree.\n   */\n  ContentHandler m_inputContentHandler;\n\n  /**\n   * The content handler for the result tree.\n   */\n  private ContentHandler m_outputContentHandler = null;\n\n\n  /** The JAXP Document Builder, mainly to create Result Tree Fragments. */\n  DocumentBuilder m_docBuilder = null;\n\n  /**\n   * A pool of ResultTreeHandlers, for serialization of a subtree to text.\n   *  Please note that each of these also holds onto a Text Serializer.  \n   */\n  private ObjectPool m_textResultHandlerObjectPool =\n    new ObjectPool(ToTextStream.class);\n\n  /**\n   * Related to m_textResultHandlerObjectPool, this is a pool of\n   * StringWriters, which are passed to the Text Serializers.\n   * (I'm not sure if this is really needed any more.  -sb)      \n   */\n  private ObjectPool m_stringWriterObjectPool =\n    new ObjectPool(StringWriter.class);\n\n  /**\n   * A static text format object, which can be used over and\n   * over to create the text serializers.    \n   */\n  private OutputProperties m_textformat = new OutputProperties(Method.TEXT);\n\n\n  /**\n   * A node vector used as a stack to track the current\n   * ElemTemplateElement.  Needed for the\n   * org.apache.xalan.transformer.TransformState interface,\n   * so a tool can discover the calling template. Note the use of an array \n   * for this limits the recursion depth to 4K.\n   */\n  ObjectStack m_currentTemplateElements \n      = new ObjectStack(XPathContext.RECURSIONLIMIT);\n  \n  /** The top of the currentTemplateElements stack. */\n\n  /**\n   * A node vector used as a stack to track the current\n   * ElemTemplate that was matched.\n   * Needed for the\n   * org.apache.xalan.transformer.TransformState interface,\n   * so a tool can discover the matched template\n   */\n  Stack m_currentMatchTemplates = new Stack();\n\n  /**\n   * A node vector used as a stack to track the current\n   * node that was matched.\n   * Needed for the\n   * org.apache.xalan.transformer.TransformState interface,\n   * so a tool can discover the matched\n   * node. \n   */\n  NodeVector m_currentMatchedNodes = new NodeVector();\n\n  /**\n   * The root of a linked set of stylesheets.\n   */\n  private StylesheetRoot m_stylesheetRoot = null;\n\n  /**\n   * If this is set to true, do not warn about pattern\n   * match conflicts.\n   */\n  private boolean m_quietConflictWarnings = true;\n\n  /**\n   * The liason to the XML parser, so the XSL processor\n   * can handle included files, and the like, and do the\n   * initial parse of the XSL document.\n   */\n  private XPathContext m_xcontext;\n\n  /**\n   * Object to guard agains infinite recursion when\n   * doing queries.\n   */\n  private StackGuard m_stackGuard;\n\n  /**\n   * Output handler to bottleneck SAX events.\n   */\n  private SerializationHandler m_serializationHandler;  \n\n  /** The key manager, which manages xsl:keys. */\n  private KeyManager m_keyManager = new KeyManager();\n\n  /**\n   * Stack for the purposes of flagging infinite recursion with\n   * attribute sets.\n   */\n  Stack m_attrSetStack = null;\n\n  /**\n   * The table of counters for xsl:number support.\n   * @see ElemNumber\n   */\n  CountersTable m_countersTable = null;\n\n  /**\n   * Is > 0 when we're processing a for-each.\n   */\n  BoolStack m_currentTemplateRuleIsNull = new BoolStack();\n\n  /**\n   * Keeps track of the result delivered by any EXSLT <code>func:result</code>\n   * instruction that has been executed for the currently active EXSLT\n   * <code>func:function</code>\n   */\n  ObjectStack m_currentFuncResult = new ObjectStack();\n  \n  /**\n   * The message manager, which manages error messages, warning\n   * messages, and other types of message events.   \n   */\n  private MsgMgr m_msgMgr;\n\n  /**\n   * This is a compile-time flag to turn off calling\n   * of trace listeners. Set this to false for optimization purposes.\n   */\n  public static boolean S_DEBUG = false;\n\n  /**\n   * The SAX error handler, where errors and warnings are sent.\n   */\n  private ErrorListener m_errorHandler =\n    new org.apache.xml.utils.DefaultErrorHandler();\n\n  /**\n   * The trace manager.\n   */\n  private TraceManager m_traceManager = new TraceManager(this);\n\n  /**\n   * If the transform thread throws an exception, the exception needs to\n   * be stashed away so that the main thread can pass it on to the\n   * client. \n   */\n  private Exception m_exceptionThrown = null;\n\n  /**\n   * The InputSource for the source tree, which is needed if the\n   * parse thread is not the main thread, in order for the parse\n   * thread's run method to get to the input source.\n   * (Delete this if reversing threads is outlawed. -sb)    \n   */\n  private Source m_xmlSource;\n\n  /**\n   * This is needed for support of setSourceTreeDocForThread(Node doc),\n   * which must be called in order for the transform thread's run\n   * method to obtain the root of the source tree to be transformed.     \n   */\n  private int m_doc;\n\n  /**\n   * If the the transform is on the secondary thread, we\n   * need to know when it is done, so we can return.\n   */\n  private boolean m_isTransformDone = false;\n\n  /** Flag to to tell if the tranformer needs to be reset. */\n  private boolean m_hasBeenReset = false;\n\n  /** NEEDSDOC Field m_shouldReset          */\n  private boolean m_shouldReset = true;\n\n  /**\n   * NEEDSDOC Method setShouldReset \n   *\n   *\n   * NEEDSDOC @param shouldReset\n   */\n  public void setShouldReset(boolean shouldReset)\n  {\n    m_shouldReset = shouldReset;\n  }\n\n  /**\n   * A stack of current template modes.\n   */\n  private Stack m_modes = new Stack();\n\n\n  /**\n   * Construct a TransformerImpl.\n   *\n   * @param stylesheet The root of the stylesheet tree.\n   */\n  public TransformerImpl(StylesheetRoot stylesheet)\n  {\n    setStylesheet(stylesheet);\n    setXPathContext(new XPathContext(this));\n    getXPathContext().setNamespaceContext(stylesheet);\n    m_stackGuard = new StackGuard(this);\n  }\n  \n\n  /**\n   * The table of ExtensionHandlers.\n   */\n  private ExtensionsTable m_extensionsTable = null;\n\n  /**\n   * Get the extensions table object. \n   *\n   * @return The extensions table.\n   */\n  public ExtensionsTable getExtensionsTable()\n  {\n    return m_extensionsTable;\n  }\n\n  /**\n   * If the stylesheet contains extensions, set the extensions table object.\n   *\n   *\n   * @param sroot The stylesheet.\n   * @throws javax.xml.transform.TransformerException\n   */\n  void setExtensionsTable(StylesheetRoot sroot)\n       throws javax.xml.transform.TransformerException\n  {\n    try\n    {\n      if (sroot.getExtensions() != null)\n        m_extensionsTable = new ExtensionsTable(sroot);\n    }\n    catch (javax.xml.transform.TransformerException te)\n    {te.printStackTrace();}\n  }\n  \n  \n  public boolean functionAvailable(String ns, String funcName)\n          throws javax.xml.transform.TransformerException\n  {\n    return getExtensionsTable().functionAvailable(ns, funcName);\n  }\n  \n  public boolean elementAvailable(String ns, String elemName)\n          throws javax.xml.transform.TransformerException\n  {\n    return getExtensionsTable().elementAvailable(ns, elemName);   \n  }\n   \n  public Object extFunction(String ns, String funcName, \n                            Vector argVec, Object methodKey)\n            throws javax.xml.transform.TransformerException{\n    return getExtensionsTable().extFunction(ns, funcName, \n                                        argVec, methodKey,\n                                        getXPathContext().getExpressionContext());   \n  }\n\n  public Object extFunction(FuncExtFunction extFunction, Vector argVec)\n            throws javax.xml.transform.TransformerException\n  {\n    return getExtensionsTable().extFunction(extFunction, argVec,\n                                            getXPathContext().getExpressionContext());   \n  }\n  \n\n  /**\n   * Reset the state.  This needs to be called after a process() call\n   * is invoked, if the processor is to be used again.\n   */\n  public void reset()\n  {\n\n    if (!m_hasBeenReset && m_shouldReset)\n    {\n      m_hasBeenReset = true;\n\n      if (this.m_outputStream != null)\n      {\n        try\n        {\n          m_outputStream.close();\n        }\n        catch (java.io.IOException ioe){}\n      }\n\n      m_outputStream = null;\n\n      m_countersTable = null;\n\n      m_xcontext.reset();\n      \n      m_xcontext.getVarStack().reset();\n      resetUserParameters();\n      \n\n      m_currentTemplateElements.removeAllElements();     \n      m_currentMatchTemplates.removeAllElements();\n      m_currentMatchedNodes.removeAllElements();\n      \n      m_serializationHandler = null;      \n      m_outputTarget = null;\n      m_keyManager = new KeyManager();\n      m_attrSetStack = null;\n      m_countersTable = null;\n      m_currentTemplateRuleIsNull = new BoolStack();\n      m_xmlSource = null;\n      m_doc = DTM.NULL;\n      m_isTransformDone = false;\n      m_transformThread = null;\n\n      m_xcontext.getSourceTreeManager().reset();\n    }\n\n  }\n\n  /**\n   * <code>getProperty</code> returns the current setting of the\n   * property described by the <code>property</code> argument.\n   *\n   * %REVIEW% Obsolete now that source_location is handled in the TransformerFactory?\n   *\n   * @param property a <code>String</code> value\n   * @return a <code>boolean</code> value\n   */\n  public boolean getProperty(String property)\n  {\n    return false;\n  }\n\n  /**\n   * Set a runtime property for this <code>TransformerImpl</code>.\n   *\n   * %REVIEW% Obsolete now that source_location is handled in the TransformerFactory?\n   *\n   * @param property a <code>String</code> value\n   * @param value an <code>Object</code> value\n   */\n  public void setProperty(String property, Object value)\n  {\n  }\n\n\n  /**\n   * Get true if the parser events should be on the main thread,\n   * false if not.  Experimental.  Can not be set right now.\n   *\n   * @return true if the parser events should be on the main thread,\n   * false if not.\n   * @xsl.usage experimental\n   */\n  public boolean isParserEventsOnMain()\n  {\n    return m_parserEventsOnMain;\n  }\n\n  /**\n   * Get the thread that the transform process is on.\n   *\n   * @return The thread that the transform process is on, or null.\n   * @xsl.usage internal\n   */\n  public Thread getTransformThread()\n  {\n    return m_transformThread;\n  }\n\n  /**\n   * Get the thread that the transform process is on.\n   *\n   * @param t The transform thread, may be null.\n   * @xsl.usage internal\n   */\n  public void setTransformThread(Thread t)\n  {\n    m_transformThread = t;\n  }\n\n  /** NEEDSDOC Field m_hasTransformThreadErrorCatcher          */\n  private boolean m_hasTransformThreadErrorCatcher = false;\n\n  /**\n   * Return true if the transform was initiated from the transform method,\n   * otherwise it was probably done from a pure parse events.\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  public boolean hasTransformThreadErrorCatcher()\n  {\n    return m_hasTransformThreadErrorCatcher;\n  }\n        \n        /**\n   * Process the source tree to SAX parse events.\n   * @param source  The input for the source tree.\n   *\n   * @throws TransformerException\n   */\n  public void transform(Source source) throws TransformerException\n  {\n                transform(source, true); \n        }\n\n  /**\n   * Process the source tree to SAX parse events.\n   * @param source  The input for the source tree.\n   * @param shouldRelease  Flag indicating whether to release DTMManager.\n   *\n   * @throws TransformerException\n   */\n  public void transform(Source source, boolean shouldRelease) throws TransformerException\n  {\n\n    try\n    {\n        \n      if(getXPathContext().getNamespaceContext() == null){\n         getXPathContext().setNamespaceContext(getStylesheet());\n      }\n      String base = source.getSystemId();\n      \n      if(null == base)\n      {\n        base = m_stylesheetRoot.getBaseIdentifier();\n      }\n\n      if(null == base)\n      {\n        String currentDir = \"\";\n        try {\n          currentDir = System.getProperty(\"user.dir\");\n\t\t}catch(Exception e){}\n              \n        if (currentDir.startsWith(java.io.File.separator)){}\n        else{}\n        \n        base = base + java.io.File.separatorChar\n               + source.getClass().getName();\n      }\n      setBaseURLOfSource(base);\n      DTMManager mgr = m_xcontext.getDTMManager();\n      /*\n       * According to JAXP1.2, new SAXSource()/StreamSource()\n       * should create an empty input tree, with a default root node. \n       * new DOMSource()creates an empty document using DocumentBuilder.\n       * newDocument(); Use DocumentBuilder.newDocument() for all 3 situations,\n       * since there is no clear spec. how to create an empty tree when\n       * both SAXSource() and StreamSource() are used.\n       */\n      if ((source instanceof StreamSource && source.getSystemId()==null &&\n         ((StreamSource)source).getInputStream()==null &&\n         ((StreamSource)source).getReader()==null)||\n         (source instanceof SAXSource &&\n         ((SAXSource)source).getInputSource()==null &&\n         ((SAXSource)source).getXMLReader()==null )||\n         (source instanceof DOMSource && ((DOMSource)source).getNode()==null)){\n        try {\n          DocumentBuilderFactory builderF = \n                   DocumentBuilderFactory.newInstance();\n          DocumentBuilder builder = builderF.newDocumentBuilder();\n          String systemID = source.getSystemId();\n          source = new DOMSource(builder.newDocument());\n\n          if (systemID != null) {\n            source.setSystemId(systemID);\n          }\n        } catch (ParserConfigurationException e) {\n          fatalError(e);\n        }           \n      }\n      DTM dtm = mgr.getDTM(source, false, this, true, true);\n      dtm.setDocumentBaseURI(base);\n      \n\n      try\n      {\n        this.transformNode(dtm.getDocument());\n      }\n      finally\n      {\n        if (shouldRelease)\n          mgr.release(dtm, hardDelete);\n      }\n\n      Exception e = getExceptionThrown();\n\n      if (null != e)\n      {\n        if (e instanceof javax.xml.transform.TransformerException)\n        {\n          throw (javax.xml.transform.TransformerException) e;\n        }\n        else if (e instanceof org.apache.xml.utils.WrappedRuntimeException)\n        {\n          fatalError(\n              ((org.apache.xml.utils.WrappedRuntimeException) e).getException());\n        }\n        else\n        {\n          throw new javax.xml.transform.TransformerException(e);\n        }\n      }\n      else if (null != m_serializationHandler)\n      {\n        m_serializationHandler.endDocument();\n      }\n    }\n    catch (org.apache.xml.utils.WrappedRuntimeException wre)\n    {\n      Throwable throwable = wre.getException();\n\n      while (throwable\n             instanceof org.apache.xml.utils.WrappedRuntimeException)\n      {\n        throwable =\n          ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException();\n      }\n\n      fatalError(throwable);\n    }\n\n    catch (org.xml.sax.SAXParseException spe)\n    {\n      fatalError(spe);\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      m_errorHandler.fatalError(new TransformerException(se));\n    }\n    finally\n    {\n      m_hasTransformThreadErrorCatcher = false;\n\n      reset();\n    }\n  }\n  \n  private void fatalError(Throwable throwable) throws TransformerException\n  {\n    if (throwable instanceof org.xml.sax.SAXParseException)\n      m_errorHandler.fatalError(new TransformerException(throwable.getMessage(),new SAXSourceLocator((org.xml.sax.SAXParseException)throwable)));\n    else\n      m_errorHandler.fatalError(new TransformerException(throwable));\n    \n  }\n\n  /**\n   * Get the base URL of the source.\n   *\n   * @return The base URL of the source tree, or null.\n   */\n  public String getBaseURLOfSource()\n  {\n    return m_urlOfSource;\n  }\n\n  /**\n   * Get the base URL of the source.\n   *\n   *\n   * NEEDSDOC @param base\n   * @return The base URL of the source tree, or null.\n   */\n  public void setBaseURLOfSource(String base)\n  {\n    m_urlOfSource = base;\n  }\n\n  /**\n   * Get the original output target.\n   *\n   * @return The Result object used to kick of the transform or null.\n   */\n  public Result getOutputTarget()\n  {\n    return m_outputTarget;\n  }\n\n  /**\n   * Set the original output target.  This is useful when using a SAX transform and\n   * supplying a ContentHandler or when the URI of the output target should\n   * not be the same as the systemID of the original output target.\n   *\n   *\n   * NEEDSDOC @param outputTarget\n   */\n  public void setOutputTarget(Result outputTarget)\n  {\n    m_outputTarget = outputTarget;\n  }\n\n  /**\n   * Get an output property that is in effect for the\n   * transformation.  The property specified may be a property\n   * that was set with setOutputProperty, or it may be a\n   * property specified in the stylesheet.\n   *\n   * @param name A non-null String that specifies an output\n   * property name, which may be namespace qualified.\n   *\n   * NEEDSDOC @param qnameString\n   *\n   * @return The string value of the output property, or null\n   * if no property was found.\n   *\n   * @throws IllegalArgumentException If the property is not supported.\n   *\n   * @see javax.xml.transform.OutputKeys\n   */\n  public String getOutputProperty(String qnameString)\n          throws IllegalArgumentException\n  {\n\n    String value = null;\n    OutputProperties props = getOutputFormat();\n\n    value = props.getProperty(qnameString);\n\n    if (null == value)\n    {\n      if (!OutputProperties.isLegalPropertyKey(qnameString)){}\n    }\n\n    return value;\n  }\n\n  /**\n   * Get the value of a property, without using the default properties.  This\n   * can be used to test if a property has been explicitly set by the stylesheet\n   * or user.\n   *\n   * @param name The property name, which is a fully-qualified URI.\n   *\n   * NEEDSDOC @param qnameString\n   *\n   * @return The value of the property, or null if not found.\n   *\n   * @throws IllegalArgumentException If the property is not supported,\n   * and is not namespaced.\n   */\n  public String getOutputPropertyNoDefault(String qnameString)\n          throws IllegalArgumentException\n  {\n\n    String value = null;\n    OutputProperties props = getOutputFormat();\n\n    value = (String) props.getProperties().get(qnameString);\n\n    if (null == value)\n    {\n      if (!OutputProperties.isLegalPropertyKey(qnameString)){}\n    }\n\n    return value;\n  }\n\n  /**\n   * Set the value of a property.  Recognized properties are:\n   *\n   * source, which is needed when pure SAX ContentHandler transformation\n   * is to be done.</p>\n   *\n   * @param name The property name, which is a fully-qualified URI.\n   * @param value The requested value for the property.\n   * @throws IllegalArgumentException if the property name is not legal.\n   */\n  public void setOutputProperty(String name, String value)\n          throws IllegalArgumentException\n  {\n\n    synchronized (m_reentryGuard)\n    {\n\n      if (null == m_outputFormat)\n      {\n        m_outputFormat =\n          (OutputProperties) getStylesheet().getOutputComposed().clone();\n      }\n\n      if (!OutputProperties.isLegalPropertyKey(name))\n\n      m_outputFormat.setProperty(name, value);\n    }\n  }\n\n  /**\n   * Set the output properties for the transformation.  These\n   * properties will override properties set in the templates\n   * with xsl:output.\n   *\n   * <p>If argument to this function is null, any properties\n   * previously set will be removed.</p>\n   *\n   * @param oformat A set of output properties that will be\n   * used to override any of the same properties in effect\n   * for the transformation.\n   *\n   * @see javax.xml.transform.OutputKeys\n   * @see java.util.Properties\n   *\n   * @throws IllegalArgumentException if any of the argument keys are not\n   * recognized and are not namespace qualified.   \n   */\n  public void setOutputProperties(Properties oformat)\n  \t\tthrows IllegalArgumentException\n  {\n\n    synchronized (m_reentryGuard)\n    {\n      if (null != oformat)\n      {\n\n        String method = (String) oformat.get(OutputKeys.METHOD);\n\n        if (null != method)\n          m_outputFormat = new OutputProperties(method);\n        else if(m_outputFormat==null)\n          m_outputFormat = new OutputProperties();\n\n        m_outputFormat.copyFrom(oformat);\n        m_outputFormat.copyFrom(m_stylesheetRoot.getOutputProperties());\n      }\n      else {\n        m_outputFormat = null;\n      }\n    }\n  }\n\n  /**\n   * Get a copy of the output properties for the transformation.  These\n   * properties will override properties set in the templates\n   * with xsl:output.\n   *\n   * <p>Note that mutation of the Properties object returned will not\n   * effect the properties that the transformation contains.</p>\n   *\n   * @return  A copy of the set of output properties in effect\n   * for the next transformation.\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  public Properties getOutputProperties()\n  {\n    return (Properties) getOutputFormat().getProperties().clone();\n  }\n\n    /**\n     * Create a result ContentHandler from a Result object, based\n     * on the current OutputProperties.\n     *\n     * @param outputTarget Where the transform result should go,\n     * should not be null.\n     *\n     * @return A valid ContentHandler that will create the\n     * result tree when it is fed SAX events.\n     *\n     * @throws TransformerException\n     */\n    public SerializationHandler createSerializationHandler(Result outputTarget)\n            throws TransformerException\n    {\n       SerializationHandler xoh =\n        createSerializationHandler(outputTarget, getOutputFormat());\n       return xoh;\n    }\n\n    /**\n     * Create a ContentHandler from a Result object and an OutputProperties.\n     *\n     * @param outputTarget Where the transform result should go,\n     * should not be null.\n     * @param format The OutputProperties object that will contain\n     * instructions on how to serialize the output.\n     *\n     * @return A valid ContentHandler that will create the\n     * result tree when it is fed SAX events.\n     *\n     * @throws TransformerException\n     */\n    public SerializationHandler createSerializationHandler(\n            Result outputTarget, OutputProperties format)\n              throws TransformerException\n    {\n\n      SerializationHandler xoh;\n\n      org.w3c.dom.Node outputNode = null;\n\n      if (outputTarget instanceof DOMResult)\n      {\n        outputNode = ((DOMResult) outputTarget).getNode();\n\n        org.w3c.dom.Document doc;\n        short type;\n\n        if (null != outputNode)\n        {\n          type = outputNode.getNodeType();\n          doc = (org.w3c.dom.Node.DOCUMENT_NODE == type)\n                ? (org.w3c.dom.Document) outputNode\n                : outputNode.getOwnerDocument();\n        }\n        else\n        {\n          doc = org.apache.xml.utils.DOMHelper.createDocument();\n          outputNode = doc;\n          type = outputNode.getNodeType();\n\n          ((DOMResult) outputTarget).setNode(outputNode);\n        }\n\n        ContentHandler handler =\n          (org.w3c.dom.Node.DOCUMENT_FRAGMENT_NODE == type)\n          ? new DOMBuilder(doc, (org.w3c.dom.DocumentFragment) outputNode)\n          : new DOMBuilder(doc, outputNode);\n          String encoding = format.getProperty(OutputKeys.ENCODING);          \n          xoh = new ToXMLSAXHandler(handler, (LexicalHandler)handler, encoding);\n      }\n      else if (outputTarget instanceof SAXResult)\n      {\n        ContentHandler handler = ((SAXResult) outputTarget).getHandler();\n        \n        if (null == handler)\n           throw new IllegalArgumentException(\n             \"handler can not be null for a SAXResult\"); \n             \n        LexicalHandler lexHandler;\n        if (handler instanceof LexicalHandler)     \n            lexHandler = (LexicalHandler)  handler;\n        else\n            lexHandler = null;\n            \n        String encoding = format.getProperty(OutputKeys.ENCODING); \n        String method = format.getProperty(OutputKeys.METHOD);\n        if (org.apache.xml.serializer.Method.HTML.equals(method))\n        {\n            xoh = new ToHTMLSAXHandler(handler, lexHandler, encoding);\n        }\n        else if (org.apache.xml.serializer.Method.TEXT.equals(method))\n        {\n            xoh = new ToTextSAXHandler(handler, lexHandler, encoding);\n        } \n        else \n        {\n            ToXMLSAXHandler toXMLSAXHandler = new ToXMLSAXHandler(handler, lexHandler, encoding);\n            toXMLSAXHandler.setShouldOutputNSAttr(false);\n            xoh = toXMLSAXHandler;   \n \n        } \n\n        String publicID = format.getProperty(OutputKeys.DOCTYPE_PUBLIC); \n        String systemID = format.getProperty(OutputKeys.DOCTYPE_SYSTEM); \n        if (systemID != null)\n            xoh.setDoctypeSystem(systemID);\n        if (publicID != null)\n            xoh.setDoctypePublic(publicID);\n        \n        if (handler instanceof TransformerClient) {\n            XalanTransformState state = new XalanTransformState();\n            ((TransformerClient)handler).setTransformState(state);\n            ((ToSAXHandler)xoh).setTransformState(state);\n        }\n\n \n      }\n\n      else if (outputTarget instanceof StreamResult)\n      {\n        StreamResult sresult = (StreamResult) outputTarget;\n        String method = format.getProperty(OutputKeys.METHOD);\n\n        try\n        {\n          SerializationHandler serializer =\n            (SerializationHandler) SerializerFactory.getSerializer(format.getProperties());\n\n          if (null != sresult.getWriter())\n            serializer.setWriter(sresult.getWriter());\n          else if (null != sresult.getOutputStream())\n            serializer.setOutputStream(sresult.getOutputStream());\n          else if (null != sresult.getSystemId())\n          {\n            String fileURL = sresult.getSystemId();\n\n            {\n              if (fileURL.substring(8).indexOf(\":\") >0)\n                fileURL = fileURL.substring(8);\n              else\n                fileURL = fileURL.substring(7);\n            }\n\n            m_outputStream = new java.io.FileOutputStream(fileURL);\n\n            serializer.setOutputStream(m_outputStream);\n            \n            xoh = serializer;\n          }\n          else\n\n\n\n          xoh = serializer;  \n        }\n        catch (IOException ioe)\n        {\n          throw new TransformerException(ioe);\n        }\n      }\n      else\n      {\n      }\n      \n      xoh.setTransformer(this);\n\n      SourceLocator srcLocator = getStylesheet();\n      xoh.setSourceLocator(srcLocator);\n      \n      \n      return xoh;\n\n   \n    }\n        \n        /**\n   * Process the source tree to the output result.\n   * @param xmlSource  The input for the source tree.\n   * @param outputTarget The output source target.\n   *\n   * @throws TransformerException\n   */\n  public void transform(Source xmlSource, Result outputTarget)\n          throws TransformerException\n  {\n                transform(xmlSource, outputTarget, true);\n        }\n\n  /**\n   * Process the source tree to the output result.\n   * @param xmlSource  The input for the source tree.\n   * @param outputTarget The output source target.\n   * @param shouldRelease  Flag indicating whether to release DTMManager. \n   *\n   * @throws TransformerException\n   */\n  public void transform(Source xmlSource, Result outputTarget, boolean shouldRelease)\n          throws TransformerException\n  {\n\n    synchronized (m_reentryGuard)\n    {\n      SerializationHandler xoh = createSerializationHandler(outputTarget);\n      this.setSerializationHandler(xoh);        \n\n      m_outputTarget = outputTarget;\n\n      transform(xmlSource, shouldRelease);\n    }\n  }\n\n  /**\n   * Process the source node to the output result, if the\n   * feature.\n   * %REVIEW% Do we need a Node version of this?\n   * @param node  The input source node, which can be any valid DTM node.\n   * @param outputTarget The output source target.\n   *\n   * @throws TransformerException\n   */\n  public void transformNode(int node, Result outputTarget)\n          throws TransformerException\n  {\n    \n\n    SerializationHandler xoh = createSerializationHandler(outputTarget);\n    this.setSerializationHandler(xoh);\n\n    m_outputTarget = outputTarget;\n\n    transformNode(node);\n  }\n\n  /**\n   * Process the source node to the output result, if the\n   * feature.\n   * %REVIEW% Do we need a Node version of this?\n   * @param node  The input source node, which can be any valid DTM node.\n   * @param outputTarget The output source target.\n   *\n   * @throws TransformerException\n   */\n  public void transformNode(int node) throws TransformerException\n  {\n    setExtensionsTable(getStylesheet());\n    synchronized (m_serializationHandler)\n    {\n      m_hasBeenReset = false;\n      \n      XPathContext xctxt = getXPathContext();\n      DTM dtm = xctxt.getDTM(node);\n\n      try\n      {\n        pushGlobalVars(node);\n\n        StylesheetRoot stylesheet = this.getStylesheet();\n        int n = stylesheet.getGlobalImportCount();\n\n        for (int i = 0; i < n; i++)\n        {\n          StylesheetComposed imported = stylesheet.getGlobalImport(i);\n          int includedCount = imported.getIncludeCountComposed();\n\n          for (int j = -1; j < includedCount; j++)\n          {\n            Stylesheet included = imported.getIncludeComposed(j);\n\n            included.runtimeInit(this);\n\n            for (ElemTemplateElement child = included.getFirstChildElem();\n                    child != null; child = child.getNextSiblingElem())\n            {\n              child.runtimeInit(this);\n            }\n          }\n        }\n        DTMIterator dtmIter = new org.apache.xpath.axes.SelfIteratorNoPredicate();\n        dtmIter.setRoot(node, xctxt);\n        xctxt.pushContextNodeList(dtmIter);\n        try\n        {\n          this.applyTemplateToNode(null, null, node);\n        }\n        finally\n        {\n          xctxt.popContextNodeList();\n        }\n\n        if (null != m_serializationHandler)\n        {\n          m_serializationHandler.endDocument();\n        }\n      }\n      catch (Exception se)\n      {\n\n        \n        while(se instanceof org.apache.xml.utils.WrappedRuntimeException)\n        {\n          Exception e = ((org.apache.xml.utils.WrappedRuntimeException)se).getException();\n          if(null != e)\n            se = e;\n        }\n        \n        if (null != m_serializationHandler)\n        {\n          try\n          {\n            if(se instanceof org.xml.sax.SAXParseException)\n              m_serializationHandler.fatalError((org.xml.sax.SAXParseException)se);\n            else if(se instanceof TransformerException)\n            {\n              TransformerException te = ((TransformerException)se);\n              SAXSourceLocator sl = new SAXSourceLocator( te.getLocator() );\n              m_serializationHandler.fatalError(new org.xml.sax.SAXParseException(te.getMessage(), sl, te)); \n            }\n            else\n            {\n              m_serializationHandler.fatalError(new org.xml.sax.SAXParseException(se.getMessage(), new SAXSourceLocator(), se)); \n            }             \n          }\n          catch (Exception e){}\n        }        \n        \n        if(se instanceof TransformerException)\n        {\n          m_errorHandler.fatalError((TransformerException)se);\n        }\n        else if(se instanceof org.xml.sax.SAXParseException)\n        {\n          m_errorHandler.fatalError(new TransformerException(se.getMessage(), \n                      new SAXSourceLocator((org.xml.sax.SAXParseException)se), \n                      se));\n        }\n        else\n        {\n          m_errorHandler.fatalError(new TransformerException(se));\n        }\n        \n      }\n      finally\n      {\n        this.reset();\n      }\n    }\n  }\n\n  /**\n   * Get a SAX2 ContentHandler for the input.\n   *\n   * @return A valid ContentHandler, which should never be null, as\n   * returns true.\n   */\n  public ContentHandler getInputContentHandler()\n  {\n    return getInputContentHandler(false);\n  }\n\n  /**\n   * Get a SAX2 ContentHandler for the input.\n   *\n   * @param doDocFrag true if a DocumentFragment should be created as\n   * the root, rather than a Document.\n   *\n   * @return A valid ContentHandler, which should never be null, as\n   * returns true.\n   */\n  public ContentHandler getInputContentHandler(boolean doDocFrag)\n  {\n\n    if (null == m_inputContentHandler)\n    {\n\n      m_inputContentHandler = new TransformerHandlerImpl(this, doDocFrag,\n              m_urlOfSource);\n    }\n\n    return m_inputContentHandler;\n  }\n\n  /**\n   * Get a SAX2 DeclHandler for the input.\n   * @return A valid DeclHandler, which should never be null, as\n   * returns true.\n   */\n  public DeclHandler getInputDeclHandler()\n  {\n\n    if (m_inputContentHandler instanceof DeclHandler)\n      return (DeclHandler) m_inputContentHandler;\n    else\n      return null;\n  }\n\n  /**\n   * Get a SAX2 LexicalHandler for the input.\n   * @return A valid LexicalHandler, which should never be null, as\n   * returns true.\n   */\n  public LexicalHandler getInputLexicalHandler()\n  {\n\n    if (m_inputContentHandler instanceof LexicalHandler)\n      return (LexicalHandler) m_inputContentHandler;\n    else\n      return null;\n  }\n\n  /**\n   * Set the output properties for the transformation.  These\n   * properties will override properties set in the templates\n   * with xsl:output.\n   *\n   * @param oformat A valid OutputProperties object (which will\n   * not be mutated), or null.\n   */\n  public void setOutputFormat(OutputProperties oformat)\n  {\n    m_outputFormat = oformat;\n  }\n\n  /**\n   * Get the output properties used for the transformation.\n   *\n   * @return the output format that was set by the user,\n   * otherwise the output format from the stylesheet.\n   */\n  public OutputProperties getOutputFormat()\n  {\n\n    OutputProperties format = (null == m_outputFormat)\n                              ? getStylesheet().getOutputComposed()\n                              : m_outputFormat;\n\n    return format;\n  }\n\n  /**\n   * Set a parameter for the templates.\n   * \n   * @param name The name of the parameter.\n   * @param namespace The namespace of the parameter.\n   * @param value The value object.  This can be any valid Java object\n   * -- it's up to the processor to provide the proper\n   * coersion to the object, or simply pass it on for use\n   * in extensions.\n   */\n  public void setParameter(String name, String namespace, Object value)\n  {\n\n    VariableStack varstack = getXPathContext().getVarStack();\n    QName qname = new QName(namespace, name);\n    XObject xobject = XObject.create(value, getXPathContext());\n    \n    StylesheetRoot sroot = m_stylesheetRoot;\n    Vector vars = sroot.getVariablesAndParamsComposed();\n    int i = vars.size();\n    while (--i >= 0)\n    {\n      ElemVariable variable = (ElemVariable)vars.elementAt(i);\n      if(variable.getXSLToken() == Constants.ELEMNAME_PARAMVARIABLE && \n         variable.getName().equals(qname))\n      {\n          varstack.setGlobalVariable(i, xobject);\n      }\n    }\n  }\n\n  /** NEEDSDOC Field m_userParams          */\n  Vector m_userParams;\n\n  /**\n   * Set a parameter for the transformation.\n   *\n   * @param name The name of the parameter,\n   *             which may have a namespace URI.\n   * @param value The value object.  This can be any valid Java object\n   * -- it's up to the processor to provide the proper\n   * coersion to the object, or simply pass it on for use\n   * in extensions.\n   */\n  public void setParameter(String name, Object value)\n  {\n    \n    if (value == null) {\n      throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_SET_PARAM_VALUE, new Object[]{name}));\n    }    \n\n    StringTokenizer tokenizer = new StringTokenizer(name, \"{}\", false);\n\n    try\n    {\n\n      String s1 = tokenizer.nextToken();\n      String s2 = tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null;\n\n      if (null == m_userParams)\n        m_userParams = new Vector();\n\n      if (null == s2)\n      {\n        replaceOrPushUserParam(new QName(s1), XObject.create(value, getXPathContext()));\n        setParameter(s1, null, value);\n      }\n      else\n      {\n        replaceOrPushUserParam(new QName(s1, s2), XObject.create(value, getXPathContext()));\n        setParameter(s2, s1, value);\n      }\n    }\n    catch (java.util.NoSuchElementException nsee)\n    {\n\n    }\n  }\n\n  /**\n   * NEEDSDOC Method replaceOrPushUserParam \n   *\n   *\n   * NEEDSDOC @param qname\n   * NEEDSDOC @param xval\n   */\n  private void replaceOrPushUserParam(QName qname, XObject xval)\n  {\n\n    int n = m_userParams.size();\n\n    for (int i = n - 1; i >= 0; i--)\n    {\n      Arg arg = (Arg) m_userParams.elementAt(i);\n\n      if (arg.getQName().equals(qname))\n      {\n        m_userParams.setElementAt(new Arg(qname, xval, true), i);\n\n        return;\n      }\n    }\n\n    m_userParams.addElement(new Arg(qname, xval, true));\n  }\n\n  /**\n   * Get a parameter that was explicitly set with setParameter\n   * or setParameters.\n   *\n   *\n   * NEEDSDOC @param name\n   * @return A parameter that has been set with setParameter\n   * or setParameters,\n   * *not* all the xsl:params on the stylesheet (which require\n   * a transformation Source to be evaluated).\n   */\n  public Object getParameter(String name)\n  {\n\n    try\n    {\n\n      QName qname = QName.getQNameFromString(name);\n\n      if (null == m_userParams)\n        return null;\n\n      int n = m_userParams.size();\n\n      for (int i = n - 1; i >= 0; i--)\n      {\n        Arg arg = (Arg) m_userParams.elementAt(i);\n\n        if (arg.getQName().equals(qname))\n        {\n          return arg.getVal().object();\n        }\n      }\n\n      return null;\n    }\n    catch (java.util.NoSuchElementException nsee)\n    {\n\n      return null;\n    }\n  }\n  \n  /**\n   * Reset parameters that the user specified for the transformation.\n   * Called during transformer.reset() after we have cleared the \n   * variable stack. We need to make sure that user params are\n   * reset so that the transformer object can be reused. \n   */\n  private void resetUserParameters()\n  {\n\n    try\n    {\n      \n      if (null == m_userParams)\n        return;\n\n      int n = m_userParams.size();\n      for (int i = n - 1; i >= 0; i--)\n      {\n        Arg arg = (Arg) m_userParams.elementAt(i);\n        QName name = arg.getQName();\n        String s1 = name.getNamespace();\n        String s2 = name.getLocalPart();\n\n        setParameter(s2, s1, arg.getVal().object());\n        \n      }\n      \n    }\n    catch (java.util.NoSuchElementException nsee)\n    {\n      \n    }\n  }\n\n  /**\n   * Set a bag of parameters for the transformation. Note that\n   * these will not be additive, they will replace the existing\n   * set of parameters.\n   *\n   * @param name The name of the parameter,\n   *             which may have a namespace URI.\n   * @param value The value object.  This can be any valid Java object\n   * -- it's up to the processor to provide the proper\n   * coersion to the object, or simply pass it on for use\n   * in extensions.\n   *\n   * NEEDSDOC @param params\n   */\n  public void setParameters(Properties params)\n  {\n\n    clearParameters();\n\n    Enumeration names = params.propertyNames();\n\n    while (names.hasMoreElements())\n    {\n      String name = params.getProperty((String) names.nextElement());\n      StringTokenizer tokenizer = new StringTokenizer(name, \"{}\", false);\n\n      try\n      {\n\n        String s1 = tokenizer.nextToken();\n        String s2 = tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null;\n\n        if (null == s2)\n          setParameter(s1, null, params.getProperty(name));\n        else\n          setParameter(s2, s1, params.getProperty(name));\n      }\n      catch (java.util.NoSuchElementException nsee)\n      {\n\n      }\n    }\n  }\n\n  /**\n   * Reset the parameters to a null list.\n   */\n  public void clearParameters()\n  {\n\n    synchronized (m_reentryGuard)\n    {\n      VariableStack varstack = new VariableStack();\n\n      m_xcontext.setVarStack(varstack);\n\n      m_userParams = null;\n    }\n  }\n\n\n  /**\n   * Internal -- push the global variables from the Stylesheet onto\n   * the context's runtime variable stack.\n   * <p>If we encounter a variable\n   * that is already defined in the variable stack, we ignore it.  This\n   * is because the second variable definition will be at a lower import\n   * precedence.  Presumably, global\"variables at the same import precedence\n   * with the same name will have been caught during the recompose process.\n   * <p>However, if we encounter a parameter that is already defined in the\n   * variable stack, we need to see if this is a parameter whose value was\n   * supplied by a setParameter call.  If so, we need to \"receive\" the one\n   * already in the stack, ignoring this one.  If it is just an earlier\n   * xsl:param or xsl:variable definition, we ignore it using the same\n   * reasoning as explained above for the variable.\n   *\n   * @param contextNode The root of the source tree, can't be null.\n   *\n   * @throws TransformerException\n   */\n  protected void pushGlobalVars(int contextNode) throws TransformerException\n  {\n\n    XPathContext xctxt = m_xcontext;\n    VariableStack vs = xctxt.getVarStack();\n    StylesheetRoot sr = getStylesheet();\n    Vector vars = sr.getVariablesAndParamsComposed();\n    \n    int i = vars.size();\n    vs.link(i);\n\n    while (--i >= 0)\n    {\n      ElemVariable v = (ElemVariable) vars.elementAt(i);\n\n      XObject xobj = new XUnresolvedVariable(v, contextNode, this,\n                                     vs.getStackFrame(), 0, true);\n      \n      if(null == vs.elementAt(i))                               \n        vs.setGlobalVariable(i, xobj);\n    }\n\n  }\n\n  /**\n   * Set an object that will be used to resolve URIs used in\n   * document(), etc.\n   * @param resolver An object that implements the URIResolver interface,\n   * or null.\n   */\n  public void setURIResolver(URIResolver resolver)\n  {\n\n    synchronized (m_reentryGuard)\n    {\n      m_xcontext.getSourceTreeManager().setURIResolver(resolver);\n    }\n  }\n\n  /**\n   * Get an object that will be used to resolve URIs used in\n   * document(), etc.\n   *\n   * @return An object that implements the URIResolver interface,\n   * or null.\n   */\n  public URIResolver getURIResolver()\n  {\n    return m_xcontext.getSourceTreeManager().getURIResolver();\n  }\n\n\n  /**\n   * Set the content event handler.\n   *\n   * @param resolver The new content handler.\n   *\n   * NEEDSDOC @param handler\n   * @throws java.lang.NullPointerException If the handler\n   *            is null.\n   * @see org.xml.sax.XMLReader#setContentHandler\n   */\n  public void setContentHandler(ContentHandler handler)\n  {\n\n    if (handler == null)\n    {\n    }\n    else\n    {\n      m_outputContentHandler = handler;\n\n      if (null == m_serializationHandler)\n      {\n        ToXMLSAXHandler h = new ToXMLSAXHandler();\n        h.setContentHandler(handler);\n        h.setTransformer(this);\n        \n        m_serializationHandler = h;\n      }\n      else\n        m_serializationHandler.setContentHandler(handler);\n    }\n  }\n\n  /**\n   * Get the content event handler.\n   *\n   * @return The current content handler, or null if none was set.\n   * @see org.xml.sax.XMLReader#getContentHandler\n   */\n  public ContentHandler getContentHandler()\n  {\n    return m_outputContentHandler;\n  }\n\n  /**\n   * Given a stylesheet element, create a result tree fragment from it's\n   * contents. The fragment will be built within the shared RTF DTM system\n   * used as a variable stack.\n   * @param templateParent The template element that holds the fragment.\n   * @return the NodeHandle for the root node of the resulting RTF.\n   *\n   * @throws TransformerException\n   * @xsl.usage advanced\n   */\n  public int transformToRTF(ElemTemplateElement templateParent)\n          throws TransformerException\n  {\n    DTM dtmFrag = m_xcontext.getRTFDTM();\n    return transformToRTF(templateParent,dtmFrag);\n  }\n  \n  /**\n   * Given a stylesheet element, create a result tree fragment from it's\n   * contents. The fragment will also use the shared DTM system, but will\n   * obtain its space from the global variable pool rather than the dynamic\n   * variable stack. This allows late binding of XUnresolvedVariables without\n   * the risk that their content will be discarded when the variable stack\n   * is popped.\n   * \n   * @param templateParent The template element that holds the fragment.\n   * @return the NodeHandle for the root node of the resulting RTF.\n   *\n   * @throws TransformerException\n   * @xsl.usage advanced\n   */\n  public int transformToGlobalRTF(ElemTemplateElement templateParent)\n          throws TransformerException\n  {\n    DTM dtmFrag = m_xcontext.getGlobalRTFDTM();\n    return transformToRTF(templateParent,dtmFrag);\n  }\n  \n  /**\n   * Given a stylesheet element, create a result tree fragment from it's\n   * contents.\n   * @param templateParent The template element that holds the fragment.\n   * @param dtmFrag The DTM to write the RTF into\n   * @return the NodeHandle for the root node of the resulting RTF.\n   *\n   * @throws TransformerException\n   * @xsl.usage advanced\n   */\n  private int transformToRTF(ElemTemplateElement templateParent,DTM dtmFrag)\n          throws TransformerException\n  {\n\n    XPathContext xctxt = m_xcontext;\n    \n    ContentHandler rtfHandler = dtmFrag.getContentHandler();\n\n\n    SerializationHandler savedRTreeHandler = this.m_serializationHandler;\n \n\n    ToSAXHandler h = new ToXMLSAXHandler();\n    h.setContentHandler(rtfHandler);\n    h.setTransformer(this);\n    \n    m_serializationHandler = h;\n \n    SerializationHandler rth = m_serializationHandler;\n\n    try\n    {\n      rth.startDocument();\n      \n      rth.flushPending(); \n \n      try\n      {\n\n        executeChildTemplates(templateParent, true);\n\n        rth.flushPending();\n        \n\tresultFragment = dtmFrag.getDocument();      \n      }\n      finally\n      {\n        rth.endDocument();\n      }\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n    finally\n    {\n\n      this.m_serializationHandler = savedRTreeHandler;\n    }\n\n    return resultFragment;\n  }\n\n  /**\n   * Get the StringWriter pool, so that StringWriter\n   * objects may be reused.\n   *\n   * @return The string writer pool, not null.\n   * @xsl.usage internal\n   */\n  public ObjectPool getStringWriterPool()\n  {\n    return m_stringWriterObjectPool;\n  }\n\n  /**\n   * Take the contents of a template element, process it, and\n   * convert it to a string.\n   *\n   * @param elem The parent element whose children will be output\n   * as a string.\n   * @param transformer The XSLT transformer instance.\n   * @param sourceNode The current source node context.\n   * @param mode The current xslt mode.\n   *\n   * @return The stringized result of executing the elements children.\n   *\n   * @throws TransformerException\n   * @xsl.usage advanced\n   */\n  public String transformToString(ElemTemplateElement elem)\n          throws TransformerException\n  {\n    ElemTemplateElement firstChild = elem.getFirstChildElem();\n    if(null == firstChild)\n      return \"\";\n    if(elem.hasTextLitOnly() && org.apache.xalan.processor.TransformerFactoryImpl.m_optimize)\n    {\n      return ((ElemTextLiteral)firstChild).getNodeValue();\n    }\n\n    SerializationHandler savedRTreeHandler = this.m_serializationHandler;\n\n    StringWriter sw = (StringWriter) m_stringWriterObjectPool.getInstance();\n\n    m_serializationHandler =\n        (ToTextStream) m_textResultHandlerObjectPool.getInstance();\n\n      if (null == m_serializationHandler)\n      {\n\n        \n        Serializer serializer = org.apache.xml.serializer.SerializerFactory.getSerializer(\n            m_textformat.getProperties());\n        m_serializationHandler = (SerializationHandler) serializer;\n      } \n\n        m_serializationHandler.setTransformer(this);\n        m_serializationHandler.setWriter(sw);\n \n \n    String result;\n\n    try\n    {\n        /* Don't call startDocument, the SerializationHandler  will\n         * generate its own internal startDocument call anyways\n         */\n\n      executeChildTemplates(elem, true);\n        this.m_serializationHandler.endDocument();\n\n      result = sw.toString();\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n    finally\n    {\n      sw.getBuffer().setLength(0);\n\n      try\n      {\n        sw.close();\n      }\n      catch (Exception ioe){}\n\n      m_stringWriterObjectPool.freeInstance(sw);\n      m_serializationHandler.reset();\n      m_textResultHandlerObjectPool.freeInstance(m_serializationHandler);\n\n      m_serializationHandler = savedRTreeHandler;\n    }\n\n    return result;\n  }\n\n  \n  /**\n   * Execute each of the children of a template element.  This method\n   * is only for extension use.\n   *\n   * @param elem The ElemTemplateElement that contains the children\n   * that should execute.\n   * @param sourceNode The current context node.\n   * NEEDSDOC @param context\n   * @param mode The current mode.\n   * @param handler The ContentHandler to where the result events\n   * should be fed.\n   *\n   * @throws TransformerException\n   * @xsl.usage advanced\n   */\n  public void executeChildTemplates(\n          ElemTemplateElement elem, org.w3c.dom.Node context, QName mode, ContentHandler handler)\n            throws TransformerException\n  {\n\n    XPathContext xctxt = m_xcontext;\n\n    try\n    {\n      if(null != mode)\n        pushMode(mode);\n      xctxt.pushCurrentNode(xctxt.getDTMHandleFromNode(context));\n      executeChildTemplates(elem, handler);\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n      \n      if (null != mode)\n        popMode();\n    }\n  }\n\n  /**\n   * Execute each of the children of a template element.\n   *\n   * @param transformer The XSLT transformer instance.\n   *\n   * @param elem The ElemTemplateElement that contains the children\n   * that should execute.\n   * @param sourceNode The current context node.\n   * @param mode The current mode.\n   * @param shouldAddAttrs true if xsl:attributes should be executed.\n   *\n   * @throws TransformerException\n   * @xsl.usage advanced\n   */\n  public void executeChildTemplates(\n          ElemTemplateElement elem, boolean shouldAddAttrs)\n            throws TransformerException\n  {\n\n    ElemTemplateElement t = elem.getFirstChildElem();\n\n    if (null == t)\n      return;      \n    \n    if(elem.hasTextLitOnly() && org.apache.xalan.processor.TransformerFactoryImpl.m_optimize)\n    {      \n      char[] chars = ((ElemTextLiteral)t).getChars();\n      try\n      {\n        this.pushElemTemplateElement(t);\n        m_serializationHandler.characters(chars, 0, chars.length);\n      }\n      catch(SAXException se)\n      {\n        throw new TransformerException(se);\n      }\n      finally\n      {\n        this.popElemTemplateElement();\n      }\n      return;\n    }\n\n\n    XPathContext xctxt = m_xcontext;\n    xctxt.pushSAXLocatorNull();\n    int currentTemplateElementsTop = m_currentTemplateElements.size();\n    m_currentTemplateElements.push(null);\n\n    try\n    {\n      for (; t != null; t = t.getNextSiblingElem())\n      {\n        if (!shouldAddAttrs\n                && t.getXSLToken() == Constants.ELEMNAME_ATTRIBUTE)\n          continue;\n\n        xctxt.setSAXLocator(t);\n        m_currentTemplateElements.setElementAt(t,currentTemplateElementsTop);\n        t.execute(this);\n      }\n    }\n    catch(RuntimeException re)\n    {\n    \tTransformerException te = new TransformerException(re);\n    \tte.setLocator(t);\n    \tthrow te;\n    }\n    finally\n    {\n      m_currentTemplateElements.pop();\n      xctxt.popSAXLocator();\n    }\n\n  }\n    /**\n      * Execute each of the children of a template element.\n      *\n      * @param elem The ElemTemplateElement that contains the children\n      * that should execute.\n      * @param handler The ContentHandler to where the result events\n      * should be fed.\n      *\n      * @throws TransformerException\n      * @xsl.usage advanced\n      */\n     public void executeChildTemplates(\n             ElemTemplateElement elem, ContentHandler handler)\n               throws TransformerException\n     {\n\n       SerializationHandler xoh = this.getSerializationHandler();\n\n       SerializationHandler savedHandler = xoh;\n\n       try\n       {\n         xoh.flushPending();\n\n         LexicalHandler lex = null;\n         if (handler instanceof LexicalHandler) {\n            lex = (LexicalHandler) handler;\n         }\n         m_serializationHandler = new ToXMLSAXHandler(handler, lex, savedHandler.getEncoding());\n         m_serializationHandler.setTransformer(this);\n         executeChildTemplates(elem, true);\n       }\n       catch (TransformerException e)\n       {\n         throw e;\n       }\n       catch (SAXException se) {\n       \t throw new TransformerException(se);\n       }\n       finally\n       {\n         m_serializationHandler = savedHandler;\n    }\n  }\n\n  /**\n   * Get the keys for the xsl:sort elements.\n   * Note: Should this go into ElemForEach?\n   *\n   * @param foreach Valid ElemForEach element, not null.\n   * @param sourceNodeContext The current node context in the source tree,\n   * needed to evaluate the Attribute Value Templates.\n   *\n   * @return A Vector of NodeSortKeys, or null.\n   *\n   * @throws TransformerException\n   * @xsl.usage advanced\n   */\n  public Vector processSortKeys(ElemForEach foreach, int sourceNodeContext)\n          throws TransformerException\n  {\n\n    Vector keys = null;\n    XPathContext xctxt = m_xcontext;\n    int nElems = foreach.getSortElemCount();\n\n    if (nElems > 0)\n      keys = new Vector();\n\n    for (int i = 0; i < nElems; i++)\n    {\n      ElemSort sort = foreach.getSortElem(i);\n      \n      if (TransformerImpl.S_DEBUG)\n        getTraceManager().fireTraceEvent(sort);\n     \n      String langString =\n        (null != sort.getLang())\n        ? sort.getLang().evaluate(xctxt, sourceNodeContext, foreach) : null;\n      String dataTypeString = sort.getDataType().evaluate(xctxt,\n                                sourceNodeContext, foreach);\n\n      if (dataTypeString.indexOf(\":\") >= 0)\n        System.out.println(\n          \"TODO: Need to write the hooks for QNAME sort data type\");\n      else if (!(dataTypeString.equalsIgnoreCase(Constants.ATTRVAL_DATATYPE_TEXT))\n               &&!(dataTypeString.equalsIgnoreCase(\n                 Constants.ATTRVAL_DATATYPE_NUMBER)))\n        foreach.error(XSLTErrorResources.ER_ILLEGAL_ATTRIBUTE_VALUE,\n                      new Object[]{ Constants.ATTRNAME_DATATYPE,\n                                    dataTypeString });\n\n      boolean treatAsNumbers =\n        ((null != dataTypeString) && dataTypeString.equals(\n        Constants.ATTRVAL_DATATYPE_NUMBER)) ? true : false;\n      String orderString = sort.getOrder().evaluate(xctxt, sourceNodeContext,\n                             foreach);\n\n      if (!(orderString.equalsIgnoreCase(Constants.ATTRVAL_ORDER_ASCENDING))\n              &&!(orderString.equalsIgnoreCase(\n                Constants.ATTRVAL_ORDER_DESCENDING)))\n        foreach.error(XSLTErrorResources.ER_ILLEGAL_ATTRIBUTE_VALUE,\n                      new Object[]{ Constants.ATTRNAME_ORDER,\n                                    orderString });\n\n      boolean descending =\n        ((null != orderString) && orderString.equals(\n        Constants.ATTRVAL_ORDER_DESCENDING)) ? true : false;\n      AVT caseOrder = sort.getCaseOrder();\n      boolean caseOrderUpper;\n\n      if (null != caseOrder)\n      {\n        String caseOrderString = caseOrder.evaluate(xctxt, sourceNodeContext,\n                                                    foreach);\n\n        if (!(caseOrderString.equalsIgnoreCase(Constants.ATTRVAL_CASEORDER_UPPER))\n                &&!(caseOrderString.equalsIgnoreCase(\n                  Constants.ATTRVAL_CASEORDER_LOWER)))\n          foreach.error(XSLTErrorResources.ER_ILLEGAL_ATTRIBUTE_VALUE,\n                        new Object[]{ Constants.ATTRNAME_CASEORDER,\n                                      caseOrderString });\n\n        caseOrderUpper =\n          ((null != caseOrderString) && caseOrderString.equals(\n          Constants.ATTRVAL_CASEORDER_UPPER)) ? true : false;\n      }\n      else\n      {\n        caseOrderUpper = false;\n      }\n\n      keys.addElement(new NodeSortKey(this, sort.getSelect(), treatAsNumbers,\n                                      descending, langString, caseOrderUpper,\n                                      foreach));\n      if (TransformerImpl.S_DEBUG)\n        getTraceManager().fireTraceEndEvent(sort);\n     }\n\n    return keys;\n  }\n\n  \n  /**\n   * Get the stack of ElemTemplateElements.\n   * \n   * @return A copy of stack that contains the xsl element instructions, \n   * the earliest called in index zero, and the latest called in index size()-1.\n   */\n  public Vector getElementCallstack()\n  {\n  \tVector elems = new Vector();\n  \tint nStackSize = m_currentTemplateElements.size();\n  \tfor(int i = 0; i < nStackSize; i++)\n  \t{\n  \t\tElemTemplateElement elem = (ElemTemplateElement) m_currentTemplateElements.elementAt(i);\n  \t\tif(null != elem)\n  \t\t{\n  \t\t\telems.addElement(elem);\n  \t\t}\n  \t}\n  \treturn elems;\n  }\n  \n  /**\n   * Get the count of how many elements are \n   * active.\n   * @return The number of active elements on \n   * the currentTemplateElements stack.\n   */\n  public int getCurrentTemplateElementsCount()\n  {\n  \treturn m_currentTemplateElements.size();\n  }\n  \n  \n  /**\n   * Get the count of how many elements are \n   * active.\n   * @return The number of active elements on \n   * the currentTemplateElements stack.\n   */\n  public ObjectStack getCurrentTemplateElements()\n  {\n  \treturn m_currentTemplateElements;\n  }\n\n  /**\n   * Push the current template element.\n   *\n   * @param elem The current ElemTemplateElement (may be null, and then\n   * set via setCurrentElement).\n   */\n  public void pushElemTemplateElement(ElemTemplateElement elem)\n  {\n    m_currentTemplateElements.push(elem);\n  }\n\n  /**\n   * Pop the current template element.\n   */\n  public void popElemTemplateElement()\n  {\n    m_currentTemplateElements.pop();\n  }\n\n  /**\n   * Set the top of the current template elements\n   * stack.\n   *\n   * @param e The current ElemTemplateElement about to\n   * be executed.\n   */\n  public void setCurrentElement(ElemTemplateElement e)\n  {\n    m_currentTemplateElements.setTop(e);\n  }\n\n  /**\n   * Retrieves the current ElemTemplateElement that is\n   * being executed.\n   *\n   * @return The current ElemTemplateElement that is executing,\n   * should not normally be null.\n   */\n  public ElemTemplateElement getCurrentElement()\n  {\n    return (m_currentTemplateElements.size() > 0) ? \n        (ElemTemplateElement) m_currentTemplateElements.peek() : null;\n  }\n\n  /**\n   * This method retrieves the current context node\n   * in the source tree.\n   *\n   * @return The current context node (should never be null?).\n   */\n  public int getCurrentNode()\n  {\n    return m_xcontext.getCurrentNode();\n  }\n  \n  /**\n   * Get the call stack of xsl:template elements.\n   * \n   * @return A copy of stack that contains the xsl:template \n   * (ElemTemplate) instructions, the earliest called in index \n   * zero, and the latest called in index size()-1.\n   */\n  public Vector getTemplateCallstack()\n  {\n  \tVector elems = new Vector();\n  \tint nStackSize = m_currentTemplateElements.size();\n  \tfor(int i = 0; i < nStackSize; i++)\n  \t{\n  \t\tElemTemplateElement elem = (ElemTemplateElement) m_currentTemplateElements.elementAt(i);\n  \t\tif(null != elem && (elem.getXSLToken() != Constants.ELEMNAME_TEMPLATE))\n  \t\t{\n  \t\t\telems.addElement(elem);\n  \t\t}\n  \t}\n  \treturn elems;\n  }\n\n\n  /**\n   * This method retrieves the xsl:template\n   * that is in effect, which may be a matched template\n   * or a named template.\n   *\n   * <p>Please note that the ElemTemplate returned may\n   * be a default template, and thus may not have a template\n   * defined in the stylesheet.</p>\n   *\n   * @return The current xsl:template, should not be null.\n   */\n  public ElemTemplate getCurrentTemplate()\n  {\n\n    ElemTemplateElement elem = getCurrentElement();\n\n    while ((null != elem)\n           && (elem.getXSLToken() != Constants.ELEMNAME_TEMPLATE))\n    {\n      elem = elem.getParentElem();\n    }\n\n    return (ElemTemplate) elem;\n  }\n\n  /**\n   * Push both the current xsl:template or xsl:for-each onto the\n   * stack, along with the child node that was matched.\n   * (Note: should this only be used for xsl:templates?? -sb)\n   *\n   * @param template xsl:template or xsl:for-each.\n   * @param child The child that was matched.\n   */\n  public void pushPairCurrentMatched(ElemTemplateElement template, int child)\n  {\n    m_currentMatchTemplates.push(template);\n    m_currentMatchedNodes.push(child);\n  }\n\n  /**\n   * Pop the elements that were pushed via pushPairCurrentMatched.\n   */\n  public void popCurrentMatched()\n  {\n    m_currentMatchTemplates.pop();\n    m_currentMatchedNodes.pop();\n  }\n\n  /**\n   * This method retrieves the xsl:template\n   * that was matched.  Note that this may not be\n   * the same thing as the current template (which\n   * may be from getCurrentElement()), since a named\n   * template may be in effect.\n   *\n   * @return The pushed template that was pushed via pushPairCurrentMatched.\n   */\n  public ElemTemplate getMatchedTemplate()\n  {\n    return (ElemTemplate) m_currentMatchTemplates.peek();\n  }\n\n  /**\n   * Retrieves the node in the source tree that matched\n   * the template obtained via getMatchedTemplate().\n   *\n   * @return The matched node that corresponds to the\n   * match attribute of the current xsl:template.\n   */\n  public int getMatchedNode()\n  {\n    return m_currentMatchedNodes.peepTail();\n  }\n\n  /**\n   * Get the current context node list.\n   *\n   * @return A reset clone of the context node list.\n   */\n  public DTMIterator getContextNodeList()\n  {\n\n    try\n    {\n      DTMIterator cnl = m_xcontext.getContextNodeList();\n\n      return (cnl == null) ? null : (DTMIterator) cnl.cloneWithReset();\n    }\n    catch (CloneNotSupportedException cnse)\n    {\n\n      return null;\n    }\n  }\n\n  /**\n   * Get the TrAX Transformer object in effect.\n   *\n   * @return This object.\n   */\n  public Transformer getTransformer()\n  {\n    return this;\n  }\n\n\n  /**\n   * Set the stylesheet for this processor.  If this is set, then the\n   * process calls that take only the input .xml will use\n   * this instead of looking for a stylesheet PI.  Also,\n   * setting the stylesheet is needed if you are going\n   * to use the processor as a SAX ContentHandler.\n   *\n   * @param stylesheetRoot A non-null StylesheetRoot object,\n   * or null if you wish to clear the stylesheet reference.\n   */\n  public void setStylesheet(StylesheetRoot stylesheetRoot)\n  {\n    m_stylesheetRoot = stylesheetRoot;\n  }\n\n  /**\n   * Get the current stylesheet for this processor.\n   *\n   * @return The stylesheet that is associated with this\n   * transformer.\n   */\n  public final StylesheetRoot getStylesheet()\n  {\n    return m_stylesheetRoot;\n  }\n\n  /**\n   * Get quietConflictWarnings property. If the quietConflictWarnings\n   * property is set to true, warnings about pattern conflicts won't be\n   * printed to the diagnostics stream.\n   *\n   * @return True if this transformer should not report\n   * template match conflicts.\n   */\n  public boolean getQuietConflictWarnings()\n  {\n    return m_quietConflictWarnings;\n  }\n\n  /**\n   * If the quietConflictWarnings property is set to\n   * true, warnings about pattern conflicts won't be\n   * printed to the diagnostics stream.\n   * False by default.\n   * (Currently setting this property will have no effect.)\n   *\n   * @param b true if conflict warnings should be suppressed.\n   */\n  public void setQuietConflictWarnings(boolean b)\n  {\n    m_quietConflictWarnings = b;\n  }\n\n  /**\n   * Set the execution context for XPath.\n   *\n   * @param xcontext A non-null reference to the XPathContext\n   * associated with this transformer.\n   * @xsl.usage internal\n   */\n  public void setXPathContext(XPathContext xcontext)\n  {\n    m_xcontext = xcontext;\n  }\n\n  /**\n   * Get the XPath context associated with this transformer.\n   *\n   * @return The XPathContext reference, never null.\n   */\n  public final XPathContext getXPathContext()\n  {\n    return m_xcontext;\n  }\n\n  /**\n   * Get the object used to guard the stack from\n   * recursion.\n   *\n   * @return The StackGuard object, which should never be null.\n   * @xsl.usage internal\n   */\n  public StackGuard getStackGuard()\n  {\n    return m_stackGuard;\n  }\n\n  /**\n   * Get the recursion limit.\n   * Used for infinite loop check. If the value is -1, do not\n   * check for infinite loops. Anyone who wants to enable that\n   * check should change the value of this variable to be the\n   * level of recursion that they want to check. Be careful setting\n   * this variable, if the number is too low, it may report an\n   * infinite loop situation, when there is none.\n   * Post version 1.0.0, we'll make this a runtime feature.\n   *\n   * @return The limit on recursion, or -1 if no check is to be made.\n   */\n  public int getRecursionLimit()\n  {\n    return m_stackGuard.getRecursionLimit();\n  }\n\n  /**\n   * Set the recursion limit.\n   * Used for infinite loop check. If the value is -1, do not\n   * check for infinite loops. Anyone who wants to enable that\n   * check should change the value of this variable to be the\n   * level of recursion that they want to check. Be careful setting\n   * this variable, if the number is too low, it may report an\n   * infinite loop situation, when there is none.\n   * Post version 1.0.0, we'll make this a runtime feature.\n   *\n   * @param limit A number that represents the limit of recursion,\n   * or -1 if no checking is to be done.\n   */\n  public void setRecursionLimit(int limit)\n  {\n    m_stackGuard.setRecursionLimit(limit);\n  }\n\n  /**\n   * Get the SerializationHandler object.\n   *\n   * @return The current SerializationHandler, which may not\n   * be the main result tree manager.\n   */\n  public SerializationHandler getResultTreeHandler()\n  {\n    return m_serializationHandler;\n  }\n\n  /**\n   * Get the SerializationHandler object.\n   *\n   * @return The current SerializationHandler, which may not\n   * be the main result tree manager.\n   */\n  public SerializationHandler getSerializationHandler()\n  {\n    return m_serializationHandler;\n  }\n  \n  /**\n   * Get the KeyManager object.\n   *\n   * @return A reference to the KeyManager object, which should\n   * never be null.\n   */\n  public KeyManager getKeyManager()\n  {\n    return m_keyManager;\n  }\n\n  /**\n   * Check to see if this is a recursive attribute definition.\n   *\n   * @param attrSet A non-null ElemAttributeSet reference.\n   *\n   * @return true if the attribute set is recursive.\n   */\n  public boolean isRecursiveAttrSet(ElemAttributeSet attrSet)\n  {\n\n    if (null == m_attrSetStack)\n    {\n      m_attrSetStack = new Stack();\n    }\n\n    if (!m_attrSetStack.empty())\n    {\n      int loc = m_attrSetStack.search(attrSet);\n\n      if (loc > -1)\n      {\n        return true;\n      }\n    }\n\n    return false;\n  }\n\n  /**\n   * Push an executing attribute set, so we can check for\n   * recursive attribute definitions.\n   *\n   * @param attrSet A non-null ElemAttributeSet reference.\n   */\n  public void pushElemAttributeSet(ElemAttributeSet attrSet)\n  {\n    m_attrSetStack.push(attrSet);\n  }\n\n  /**\n   * Pop the current executing attribute set.\n   */\n  public void popElemAttributeSet()\n  {\n    m_attrSetStack.pop();\n  }\n\n  /**\n   * Get the table of counters, for optimized xsl:number support.\n   *\n   * @return The CountersTable, never null.\n   */\n  public CountersTable getCountersTable()\n  {\n\n    if (null == m_countersTable)\n      m_countersTable = new CountersTable();\n\n    return m_countersTable;\n  }\n\n  /**\n   * Tell if the current template rule is null, i.e. if we are\n   * directly within an apply-templates.  Used for xsl:apply-imports.\n   *\n   * @return True if the current template rule is null.\n   */\n  public boolean currentTemplateRuleIsNull()\n  {\n    return ((!m_currentTemplateRuleIsNull.isEmpty())\n            && (m_currentTemplateRuleIsNull.peek() == true));\n  }\n\n  /**\n   * Push true if the current template rule is null, false\n   * otherwise.\n   *\n   * @param b True if the we are executing an xsl:for-each\n   * (or xsl:call-template?).\n   */\n  public void pushCurrentTemplateRuleIsNull(boolean b)\n  {\n    m_currentTemplateRuleIsNull.push(b);\n  }\n\n  /**\n   * Push true if the current template rule is null, false\n   * otherwise.\n   */\n  public void popCurrentTemplateRuleIsNull()\n  {\n    m_currentTemplateRuleIsNull.pop();\n  }\n\n  /**\n   * Push a funcion result for the currently active EXSLT\n   * <code>func:function</code>.\n   * \n   * @param val the result of executing an EXSLT\n   * <code>func:result</code> instruction for the current\n   * <code>func:function</code>.\n   */\n  public void pushCurrentFuncResult(Object val) {\n    m_currentFuncResult.push(val);\n  }\n\n  /**\n   * Pops the result of the currently active EXSLT <code>func:function</code>.\n   * \n   * @return the value of the <code>func:function</code>\n   */\n  public Object popCurrentFuncResult() {\n    return m_currentFuncResult.pop();\n  }\n\n  /**\n   * Determines whether an EXSLT <code>func:result</code> instruction has been\n   * executed for the currently active EXSLT <code>func:function</code>.\n   * \n   * @return <code>true</code> if and only if a <code>func:result</code>\n   * instruction has been executed\n   */\n  public boolean currentFuncResultSeen() {\n    return !m_currentFuncResult.empty()\n               && m_currentFuncResult.peek() != null;\n  }\n\n  /**\n   * Return the message manager.\n   *\n   * @return The message manager, never null.\n   */\n  public MsgMgr getMsgMgr()\n  {\n\n    if (null == m_msgMgr)\n      m_msgMgr = new MsgMgr(this);\n\n    return m_msgMgr;\n  }\n\n  /**\n   * Set the error event listener.\n   *\n   * @param listener The new error listener.\n   * @throws IllegalArgumentException if\n   */\n  public void setErrorListener(ErrorListener listener)\n          throws IllegalArgumentException\n  {\n\n    synchronized (m_reentryGuard)\n    {\n      if (listener == null)\n\n      m_errorHandler = listener;\n    }\n  }\n\n  /**\n   * Get the current error event handler.\n   *\n   * @return The current error handler, which should never be null.\n   */\n  public ErrorListener getErrorListener()\n  {\n    return m_errorHandler;\n  }\n\n  /**\n   * Get an instance of the trace manager for this transformation.\n   * This object can be used to set trace listeners on various\n   * events during the transformation.\n   *\n   * @return A reference to the TraceManager, never null.\n   */\n  public TraceManager getTraceManager()\n  {\n    return m_traceManager;\n  }\n\n  /**\n   * Look up the value of a feature.\n   *\n   * <p>The feature name is any fully-qualified URI.  It is\n   * possible for an TransformerFactory to recognize a feature name but\n   * to be unable to return its value; this is especially true\n   * in the case of an adapter for a SAX1 Parser, which has\n   * no way of knowing whether the underlying parser is\n   * validating, for example.</p>\n   *\n   * <h3>Open issues:</h3>\n   * <dl>\n   *    <dt><h4>Should getFeature be changed to hasFeature?</h4></dt>\n   *    <dd>Keith Visco writes: Should getFeature be changed to hasFeature?\n   *        It returns a boolean which indicated whether the \"state\"\n   *        of feature is \"true or false\". I assume this means whether\n   *        or not a feature is supported? I know SAX is using \"getFeature\",\n   *        but to me \"hasFeature\" is cleaner.</dd>\n   * </dl>\n   *\n   * @param name The feature name, which is a fully-qualified\n   *        URI.\n   * @return The current state of the feature (true or false).\n   * @throws org.xml.sax.SAXNotRecognizedException When the\n   *            TransformerFactory does not recognize the feature name.\n   * @throws org.xml.sax.SAXNotSupportedException When the\n   *            TransformerFactory recognizes the feature name but\n   *            cannot determine its value at this time.\n   *\n   * @throws SAXNotRecognizedException\n   * @throws SAXNotSupportedException\n   */\n  public boolean getFeature(String name)\n          throws SAXNotRecognizedException, SAXNotSupportedException\n  {\n\n      return true;\n      return true;\n\n    throw new SAXNotRecognizedException(name);\n  }\n\n\n  /**\n   * NEEDSDOC Method getMode \n   *\n   *\n   * NEEDSDOC (getMode) @return\n   */\n  public QName getMode()\n  {\n    return m_modes.isEmpty() ? null : (QName) m_modes.peek();\n  }\n\n\n  /**\n   * NEEDSDOC Method pushMode \n   *\n   *\n   * NEEDSDOC @param mode\n   */\n  public void pushMode(QName mode)\n  {\n    m_modes.push(mode);\n  }\n\n\n  /**\n   * NEEDSDOC Method popMode \n   *\n   */\n  public void popMode()\n  {\n    m_modes.pop();\n  }\n\n  /**\n   * Called by SourceTreeHandler to start the transformation\n   *  in a separate thread\n   *\n   * NEEDSDOC @param priority\n   */\n  public void runTransformThread(int priority)\n  {\n\n    Thread t = ThreadControllerWrapper.runThread(this, priority);\n    this.setTransformThread(t);\n  }\n\n  /**\n   * Called by this.transform() if isParserEventsOnMain()==false.\n   *  Similar with runTransformThread(), but no priority is set\n   *  and setTransformThread is not set.\n   */\n  public void runTransformThread()\n  {\n    ThreadControllerWrapper.runThread(this, -1);\n  }\n  \n  /**\n   * Called by CoRoutineSAXParser. Launches the CoroutineSAXParser\n   * in a thread, and prepares it to invoke the parser from that thread\n   * upon request. \n   *  \n   */\n  public static void runTransformThread(Runnable runnable)\n  {\n    ThreadControllerWrapper.runThread(runnable, -1);\n  }\n\n  /**\n   * Used by SourceTreeHandler to wait until the transform\n   *   completes\n   *\n   * @throws SAXException\n   */\n  public void waitTransformThread() throws SAXException\n  {\n\n    Thread transformThread = this.getTransformThread();\n\n    if (null != transformThread)\n    {\n      try\n      {\n        ThreadControllerWrapper.waitThread(transformThread, this);\n\n        if (!this.hasTransformThreadErrorCatcher())\n        {\n          Exception e = this.getExceptionThrown();\n\n          if (null != e)\n          {\n            e.printStackTrace();\n            throw new org.xml.sax.SAXException(e);\n          }\n        }\n\n        this.setTransformThread(null);\n      }\n      catch (InterruptedException ie){}\n    }\n  }\n\n  /**\n   * Get the exception thrown by the secondary thread (normally\n   * the transform thread).\n   *\n   * @return The thrown exception, or null if no exception was\n   * thrown.\n   */\n  public Exception getExceptionThrown()\n  {\n    return m_exceptionThrown;\n  }\n\n  /**\n   * Set the exception thrown by the secondary thread (normally\n   * the transform thread).\n   *\n   * @param e The thrown exception, or null if no exception was\n   * thrown.\n   */\n  public void setExceptionThrown(Exception e)\n  {\n    m_exceptionThrown = e;\n  }\n\n  /**\n   * This is just a way to set the document for run().\n   *\n   * @param doc A non-null reference to the root of the\n   * tree to be transformed.\n   */\n  public void setSourceTreeDocForThread(int doc)\n  {\n    m_doc = doc;\n  }\n\n  /**\n   * Set the input source for the source tree, which is needed if the\n   * parse thread is not the main thread, in order for the parse\n   * thread's run method to get to the input source.\n   *\n   * @param source The input source for the source tree.\n   */\n  public void setXMLSource(Source source)\n  {\n    m_xmlSource = source;\n  }\n\n  /**\n   * Tell if the transform method is completed.\n   *\n   * @return True if transformNode has completed, or\n   * an exception was thrown.\n   */\n  public boolean isTransformDone()\n  {\n\n    synchronized (this)\n    {\n      return m_isTransformDone;\n    }\n  }\n\n  /**\n   * Set if the transform method is completed.\n   *\n   * @param done True if transformNode has completed, or\n   * an exception was thrown.\n   */\n  public void setIsTransformDone(boolean done)\n  {\n\n    synchronized (this)\n    {\n      m_isTransformDone = done;\n    }\n  }\n\n  /**\n   * From a secondary thread, post the exception, so that\n   * it can be picked up from the main thread.\n   *\n   * @param e The exception that was thrown.\n   */\n  void postExceptionFromThread(Exception e)\n  {\n\n\n    m_isTransformDone = true;\n    m_exceptionThrown = e;\n\n    synchronized (this)\n    {\n\n      notifyAll();\n\n    }\n  }\n\n  /**\n   * Run the transform thread.\n   */\n  public void run()\n  {\n\n    m_hasBeenReset = false;\n\n    try\n    {\n\n      try\n      {\n        m_isTransformDone = false;\n        \n\n        transformNode(m_doc);\n        \n      }\n      catch (Exception e)\n      {\n\n        if (null != m_transformThread){}\n        else \n          throw new RuntimeException(e.getMessage());\n      }\n      finally\n      {\n        m_isTransformDone = true;\n\n        if (m_inputContentHandler instanceof TransformerHandlerImpl)\n        {\n          ((TransformerHandlerImpl) m_inputContentHandler).clearCoRoutine();\n        }\n\n      }\n    }\n    catch (Exception e)\n    {\n\n      if (null != m_transformThread)\n        postExceptionFromThread(e);\n      else {}\n    }\n  }\n\n\n  /**\n   * This will get a snapshot of the current executing context \n   *\n   *\n   * @return TransformSnapshot object, snapshot of executing context\n   * @deprecated This is an internal tooling API that nobody seems to be using\n   */\n  public TransformSnapshot getSnapshot()\n  {\n    return new TransformSnapshotImpl(this);\n  }\n\n  /**\n   * This will execute the following XSLT instructions\n   * from the snapshot point, after the stylesheet execution\n   * context has been reset from the snapshot point. \n   *\n   * @param ts The snapshot of where to start execution\n   *\n   * @throws TransformerException\n   * @deprecated This is an internal tooling API that nobody seems to be using\n   */\n  public void executeFromSnapshot(TransformSnapshot ts)\n          throws TransformerException\n  {\n\n    ElemTemplateElement template = getMatchedTemplate();\n    int child = getMatchedNode();\n\n  }\n\n  /**\n   * This will reset the stylesheet execution context\n   * from the snapshot point.\n   *\n   * @param ts The snapshot of where to start execution\n   * @deprecated This is an internal tooling API that nobody seems to be using\n   */\n  public void resetToStylesheet(TransformSnapshot ts)\n  {\n    ((TransformSnapshotImpl) ts).apply(this);\n  }\n\n  /**\n   * NEEDSDOC Method stopTransformation \n   *\n   */\n  public void stopTransformation(){}\n\n  /**\n   * Test whether whitespace-only text nodes are visible in the logical\n   * view of <code>DTM</code>. Normally, this function\n   * will be called by the implementation of <code>DTM</code>;\n   * it is not normally called directly from\n   * user code.\n   *\n   * @param elementHandle int Handle of the element.\n   * @return one of NOTSTRIP, STRIP, or INHERIT.\n   */\n  public short getShouldStripSpace(int elementHandle, DTM dtm)\n  {\n\n    try\n    {\n      org.apache.xalan.templates.WhiteSpaceInfo info =\n        m_stylesheetRoot.getWhiteSpaceInfo(m_xcontext, elementHandle, dtm);\n\n      if (null == info)\n      {\n        return DTMWSFilter.INHERIT;\n      }\n      else\n      {\n\n        return info.getShouldStripSpace()\n               ? DTMWSFilter.STRIP : DTMWSFilter.NOTSTRIP;\n      }\n    }\n    catch (TransformerException se)\n    {\n      return DTMWSFilter.INHERIT;\n    }\n  }\n  /**\n   * Initializer method.\n   *\n   * @param transformer non-null transformer instance\n   * @param realHandler Content Handler instance\n   */\n   public void init(ToXMLSAXHandler h,Transformer transformer, ContentHandler realHandler)\n   {\n      h.setTransformer(transformer);\n      h.setContentHandler(realHandler);\n   }\n      \n   public void setSerializationHandler(SerializationHandler xoh)\n   {\n      m_serializationHandler = xoh;\n   }\n   \n   \n     \n\t/**\n\t * Fire off characters, cdate events.\n\t * @see org.apache.xml.serializer.SerializerTrace#fireGenerateEvent(int, char[], int, int)\n\t */\n\tpublic void fireGenerateEvent(\n\t\tint eventType,\n\t\tchar[] ch,\n\t\tint start,\n\t\tint length) {\n\t\t\t\n\t\tGenerateEvent ge = new GenerateEvent(this, eventType, ch, start, length);\n\t\tm_traceManager.fireGenerateEvent(ge);\t\t\t\t\t\n\t}\n\n\t/**\n\t * Fire off startElement, endElement events.\n\t * @see org.apache.xml.serializer.SerializerTrace#fireGenerateEvent(int, String, Attributes)\n\t */\n\tpublic void fireGenerateEvent(\n\t\tint eventType,\n\t\tString name,\n\t\tAttributes atts) {\n\t\t\t\n\t\tGenerateEvent ge = new GenerateEvent(this, eventType, name, atts);\n\t\tm_traceManager.fireGenerateEvent(ge);\t\t\t\t\t\n\t}\n\n\t/**\n\t * Fire off processingInstruction events.\n\t * @see org.apache.xml.serializer.SerializerTrace#fireGenerateEvent(int, String, String)\n\t */\n\tpublic void fireGenerateEvent(int eventType, String name, String data) {\n\t\tGenerateEvent ge = new GenerateEvent(this, eventType, name,data);\n\t\tm_traceManager.fireGenerateEvent(ge);\t\t\t\t\n\t}\n\n\t/**\n\t * Fire off comment and entity ref events.\n\t * @see org.apache.xml.serializer.SerializerTrace#fireGenerateEvent(int, String)\n\t */\n\tpublic void fireGenerateEvent(int eventType, String data) {\n\t\tGenerateEvent ge = new GenerateEvent(this, eventType, data);\n\t\tm_traceManager.fireGenerateEvent(ge);\t\t\n\t}\n\n\t/**\n\t * Fire off startDocument, endDocument events.\n\t * @see org.apache.xml.serializer.SerializerTrace#fireGenerateEvent(int)\n\t */\n\tpublic void fireGenerateEvent(int eventType) {\n\t\tGenerateEvent ge = new GenerateEvent(this, eventType);\n\t\tm_traceManager.fireGenerateEvent(ge);\n\t}\n\n\t/**\n\t * @see org.apache.xml.serializer.SerializerTrace#hasTraceListeners()\n\t */\n\tpublic boolean hasTraceListeners() {\n\t\treturn m_traceManager.hasTraceListeners();", "functions": [{"function_name": "setShouldReset", "code": "  public void setShouldReset(boolean shouldReset)\n  {\n    m_shouldReset = shouldReset;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExtensionsTable", "code": "  public ExtensionsTable getExtensionsTable()\n  {\n    return m_extensionsTable;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExtensionsTable", "code": "  void setExtensionsTable(StylesheetRoot sroot)\n       throws javax.xml.transform.TransformerException\n  {\n    try\n    {\n      if (sroot.getExtensions() != null)\n        m_extensionsTable = new ExtensionsTable(sroot);\n    }\n    catch (javax.xml.transform.TransformerException te)\n    {te.printStackTrace();}", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [3, 6], [4, 7], [5, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 3], [7, 4], [8, 5], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "functionAvailable", "code": "  public boolean functionAvailable(String ns, String funcName)\n          throws javax.xml.transform.TransformerException\n  {\n    return getExtensionsTable().functionAvailable(ns, funcName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "elementAvailable", "code": "  public boolean elementAvailable(String ns, String elemName)\n          throws javax.xml.transform.TransformerException\n  {\n    return getExtensionsTable().elementAvailable(ns, elemName);   ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "extFunction", "code": "  public Object extFunction(String ns, String funcName, \n                            Vector argVec, Object methodKey)\n            throws javax.xml.transform.TransformerException{\n    return getExtensionsTable().extFunction(ns, funcName, \n                                        argVec, methodKey,\n                                        getXPathContext().getExpressionContext());   ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "extFunction", "code": "  public Object extFunction(FuncExtFunction extFunction, Vector argVec)\n            throws javax.xml.transform.TransformerException\n  {\n    return getExtensionsTable().extFunction(extFunction, argVec,\n                                            getXPathContext().getExpressionContext());   ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "reset", "code": "  public void reset()\n  {\n\n    if (!m_hasBeenReset && m_shouldReset)\n    {\n      m_hasBeenReset = true;\n\n      if (this.m_outputStream != null)\n      {\n        try\n        {\n          m_outputStream.close();\n        }\n        catch (java.io.IOException ioe){}\n      }\n\n      m_outputStream = null;\n\n      m_countersTable = null;\n\n      m_xcontext.reset();\n      \n      m_xcontext.getVarStack().reset();\n      resetUserParameters();\n      \n\n      m_currentTemplateElements.removeAllElements();     \n      m_currentMatchTemplates.removeAllElements();\n      m_currentMatchedNodes.removeAllElements();\n      \n      m_serializationHandler = null;      \n      m_outputTarget = null;\n      m_keyManager = new KeyManager();\n      m_attrSetStack = null;\n      m_countersTable = null;\n      m_currentTemplateRuleIsNull = new BoolStack();\n      m_xmlSource = null;\n      m_doc = DTM.NULL;\n      m_isTransformDone = false;\n      m_transformThread = null;\n\n      m_xcontext.getSourceTreeManager().reset();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [3, 23], [1, 24], [4, 25], [5, 26], [6, 27], [8, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [14, 34], [19, 35], [21, 36], [22, 37], [3, 38], [23, 39], [24, 40], [38, 41], [38, 42], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 3], [24, 1], [25, 4], [26, 5], [27, 6], [28, 8], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 14], [35, 19], [36, 21], [37, 22], [38, 3], [39, 23], [40, 24], [41, 38], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getProperty", "code": "  public boolean getProperty(String property)\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setProperty", "code": "  public void setProperty(String property, Object value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isParserEventsOnMain", "code": "  public boolean isParserEventsOnMain()\n  {\n    return m_parserEventsOnMain;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTransformThread", "code": "  public Thread getTransformThread()\n  {\n    return m_transformThread;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransformThread", "code": "  public void setTransformThread(Thread t)\n  {\n    m_transformThread = t;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasTransformThreadErrorCatcher", "code": "  public boolean hasTransformThreadErrorCatcher()\n  {\n    return m_hasTransformThreadErrorCatcher;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "transform", "code": "  public void transform(Source source) throws TransformerException\n  {\n                transform(source, true); ", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "transform", "code": "  public void transform(Source source, boolean shouldRelease) throws TransformerException\n  {\n\n    try\n    {\n        \n      if(getXPathContext().getNamespaceContext() == null){\n         getXPathContext().setNamespaceContext(getStylesheet());\n      }\n      String base = source.getSystemId();\n      \n      if(null == base)\n      {\n        base = m_stylesheetRoot.getBaseIdentifier();\n      }\n\n      if(null == base)\n      {\n        String currentDir = \"\";\n        try {\n          currentDir = System.getProperty(\"user.dir\");\n\t\t}catch(Exception e){}\n              \n        if (currentDir.startsWith(java.io.File.separator)){}\n        else{}\n        \n        base = base + java.io.File.separatorChar\n               + source.getClass().getName();\n      }\n      setBaseURLOfSource(base);\n      DTMManager mgr = m_xcontext.getDTMManager();\n      /*\n       * According to JAXP1.2, new SAXSource()/StreamSource()\n       * should create an empty input tree, with a default root node. \n       * new DOMSource()creates an empty document using DocumentBuilder.\n       * newDocument(); Use DocumentBuilder.newDocument() for all 3 situations,\n       * since there is no clear spec. how to create an empty tree when\n       * both SAXSource() and StreamSource() are used.\n       */\n      if ((source instanceof StreamSource && source.getSystemId()==null &&\n         ((StreamSource)source).getInputStream()==null &&\n         ((StreamSource)source).getReader()==null)||\n         (source instanceof SAXSource &&\n         ((SAXSource)source).getInputSource()==null &&\n         ((SAXSource)source).getXMLReader()==null )||\n         (source instanceof DOMSource && ((DOMSource)source).getNode()==null)){\n        try {\n          DocumentBuilderFactory builderF = \n                   DocumentBuilderFactory.newInstance();\n          DocumentBuilder builder = builderF.newDocumentBuilder();\n          String systemID = source.getSystemId();\n          source = new DOMSource(builder.newDocument());\n\n          if (systemID != null) {\n            source.setSystemId(systemID);\n          }\n        } catch (ParserConfigurationException e) {\n          fatalError(e);\n        }           \n      }\n      DTM dtm = mgr.getDTM(source, false, this, true, true);\n      dtm.setDocumentBaseURI(base);\n      \n\n      try\n      {\n        this.transformNode(dtm.getDocument());\n      }\n      finally\n      {\n        if (shouldRelease)\n          mgr.release(dtm, hardDelete);\n      }\n\n      Exception e = getExceptionThrown();\n\n      if (null != e)\n      {\n        if (e instanceof javax.xml.transform.TransformerException)\n        {\n          throw (javax.xml.transform.TransformerException) e;\n        }\n        else if (e instanceof org.apache.xml.utils.WrappedRuntimeException)\n        {\n          fatalError(\n              ((org.apache.xml.utils.WrappedRuntimeException) e).getException());\n        }\n        else\n        {\n          throw new javax.xml.transform.TransformerException(e);\n        }\n      }\n      else if (null != m_serializationHandler)\n      {\n        m_serializationHandler.endDocument();\n      }\n    }\n    catch (org.apache.xml.utils.WrappedRuntimeException wre)\n    {\n      Throwable throwable = wre.getException();\n\n      while (throwable\n             instanceof org.apache.xml.utils.WrappedRuntimeException)\n      {\n        throwable =\n          ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException();\n      }\n\n      fatalError(throwable);\n    }\n\n    catch (org.xml.sax.SAXParseException spe)\n    {\n      fatalError(spe);\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      m_errorHandler.fatalError(new TransformerException(se));\n    }\n    finally\n    {\n      m_hasTransformThreadErrorCatcher = false;\n\n      reset();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "CATCH", "CATCH", "IF", "VAR_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "CALL", "ASSIGN", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CATCH", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [6, 19], [6, 20], [7, 21], [7, 22], [9, 23], [1, 24], [11, 25], [1, 26], [13, 27], [14, 28], [16, 29], [18, 30], [4, 31], [5, 32], [6, 33], [19, 34], [21, 35], [7, 36], [22, 37], [8, 38], [10, 39], [11, 40], [25, 41], [25, 42], [12, 43], [13, 44], [13, 45], [13, 46], [27, 47], [28, 48], [15, 49], [29, 50], [29, 51], [31, 52], [20, 53], [35, 54], [36, 55], [36, 56], [23, 57], [9, 58], [39, 59], [39, 60], [39, 61], [40, 62], [40, 63], [40, 64], [40, 65], [40, 66], [41, 67], [41, 68], [42, 69], [42, 70], [13, 71], [44, 72], [45, 73], [14, 74], [16, 75], [51, 76], [19, 77], [21, 78], [55, 79], [36, 80], [58, 81], [63, 82], [40, 83], [67, 84], [69, 85], [69, 86], [70, 87], [70, 88], [71, 89], [45, 90], [46, 91], [74, 92], [75, 93], [55, 94], [62, 95], [82, 96], [83, 97], [64, 98], [65, 99], [66, 100], [85, 101], [86, 102], [86, 103], [87, 104], [88, 105], [88, 106], [89, 107], [89, 108], [90, 109], [93, 110], [94, 111], [55, 112], [63, 113], [97, 114], [102, 115], [105, 116], [106, 117], [106, 118], [107, 119], [109, 120], [117, 121], [117, 122], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 6], [20, 6], [21, 7], [22, 7], [23, 9], [24, 1], [25, 11], [26, 1], [27, 13], [28, 14], [29, 16], [30, 18], [31, 4], [32, 5], [33, 6], [34, 19], [35, 21], [36, 7], [37, 22], [38, 8], [39, 10], [40, 11], [41, 25], [42, 25], [43, 12], [44, 13], [45, 13], [46, 13], [47, 27], [48, 28], [49, 15], [50, 29], [51, 29], [52, 31], [53, 20], [54, 35], [55, 36], [56, 36], [57, 23], [58, 9], [59, 39], [60, 39], [61, 39], [62, 40], [63, 40], [64, 40], [65, 40], [66, 40], [67, 41], [68, 41], [69, 42], [70, 42], [71, 13], [72, 44], [73, 45], [74, 14], [75, 16], [76, 51], [77, 19], [78, 21], [79, 55], [80, 36], [81, 58], [82, 63], [83, 40], [84, 67], [85, 69], [86, 69], [87, 70], [88, 70], [89, 71], [90, 45], [91, 46], [92, 74], [93, 75], [94, 55], [95, 62], [96, 82], [97, 83], [98, 64], [99, 65], [100, 66], [101, 85], [102, 86], [103, 86], [104, 87], [105, 88], [106, 88], [107, 89], [108, 89], [109, 90], [110, 93], [111, 94], [112, 55], [113, 63], [114, 97], [115, 102], [116, 105], [117, 106], [118, 106], [119, 107], [120, 109], [121, 117], [122, 117], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122]]}, {"function_name": "fatalError", "code": "  private void fatalError(Throwable throwable) throws TransformerException\n  {\n    if (throwable instanceof org.xml.sax.SAXParseException)\n      m_errorHandler.fatalError(new TransformerException(throwable.getMessage(),new SAXSourceLocator((org.xml.sax.SAXParseException)throwable)));\n    else\n      m_errorHandler.fatalError(new TransformerException(throwable));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getBaseURLOfSource", "code": "  public String getBaseURLOfSource()\n  {\n    return m_urlOfSource;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBaseURLOfSource", "code": "  public void setBaseURLOfSource(String base)\n  {\n    m_urlOfSource = base;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputTarget", "code": "  public Result getOutputTarget()\n  {\n    return m_outputTarget;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOutputTarget", "code": "  public void setOutputTarget(Result outputTarget)\n  {\n    m_outputTarget = outputTarget;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputProperty", "code": "  public String getOutputProperty(String qnameString)\n          throws IllegalArgumentException\n  {\n\n    String value = null;\n    OutputProperties props = getOutputFormat();\n\n    value = props.getProperty(qnameString);\n\n    if (null == value)\n    {\n      if (!OutputProperties.isLegalPropertyKey(qnameString)){}\n    }\n\n    return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [6, 9], [7, 10], [3, 11], [4, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 6], [10, 7], [11, 3], [12, 4], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getOutputPropertyNoDefault", "code": "  public String getOutputPropertyNoDefault(String qnameString)\n          throws IllegalArgumentException\n  {\n\n    String value = null;\n    OutputProperties props = getOutputFormat();\n\n    value = (String) props.getProperties().get(qnameString);\n\n    if (null == value)\n    {\n      if (!OutputProperties.isLegalPropertyKey(qnameString)){}\n    }\n\n    return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [6, 9], [3, 10], [4, 11], [8, 12], [7, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 6], [10, 3], [11, 4], [12, 8], [13, 7], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setOutputProperty", "code": "  public void setOutputProperty(String name, String value)\n          throws IllegalArgumentException\n  {\n\n    synchronized (m_reentryGuard)\n    {\n\n      if (null == m_outputFormat)\n      {\n        m_outputFormat =\n          (OutputProperties) getStylesheet().getOutputComposed().clone();\n      }\n\n      if (!OutputProperties.isLegalPropertyKey(name))\n\n      m_outputFormat.setProperty(name, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "IF", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [3, 7], [6, 8], [4, 9], [9, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 3], [8, 6], [9, 4], [10, 9], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setOutputProperties", "code": "  public void setOutputProperties(Properties oformat)\n  \t\tthrows IllegalArgumentException\n  {\n\n    synchronized (m_reentryGuard)\n    {\n      if (null != oformat)\n      {\n\n        String method = (String) oformat.get(OutputKeys.METHOD);\n\n        if (null != method)\n          m_outputFormat = new OutputProperties(method);\n        else if(m_outputFormat==null)\n          m_outputFormat = new OutputProperties();\n\n        m_outputFormat.copyFrom(oformat);\n        m_outputFormat.copyFrom(m_stylesheetRoot.getOutputProperties());\n      }\n      else {\n        m_outputFormat = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [2, 7], [2, 8], [2, 9], [4, 10], [4, 11], [7, 12], [8, 13], [10, 14], [4, 15], [11, 16], [10, 17], [14, 18], [15, 19], [5, 20], [17, 21], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 2], [8, 2], [9, 2], [10, 4], [11, 4], [12, 7], [13, 8], [14, 10], [15, 4], [16, 11], [17, 10], [18, 14], [19, 15], [20, 5], [21, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getOutputProperties", "code": "  public Properties getOutputProperties()\n  {\n    return (Properties) getOutputFormat().getProperties().clone();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createSerializationHandler", "code": "    public SerializationHandler createSerializationHandler(Result outputTarget)\n            throws TransformerException\n    {\n       SerializationHandler xoh =\n        createSerializationHandler(outputTarget, getOutputFormat());\n       return xoh;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createSerializationHandler", "code": "    public SerializationHandler createSerializationHandler(\n            Result outputTarget, OutputProperties format)\n              throws TransformerException\n    {\n\n      SerializationHandler xoh;\n\n      org.w3c.dom.Node outputNode = null;\n\n      if (outputTarget instanceof DOMResult)\n      {\n        outputNode = ((DOMResult) outputTarget).getNode();\n\n        org.w3c.dom.Document doc;\n        short type;\n\n        if (null != outputNode)\n        {\n          type = outputNode.getNodeType();\n          doc = (org.w3c.dom.Node.DOCUMENT_NODE == type)\n                ? (org.w3c.dom.Document) outputNode\n                : outputNode.getOwnerDocument();\n        }\n        else\n        {\n          doc = org.apache.xml.utils.DOMHelper.createDocument();\n          outputNode = doc;\n          type = outputNode.getNodeType();\n\n          ((DOMResult) outputTarget).setNode(outputNode);\n        }\n\n        ContentHandler handler =\n          (org.w3c.dom.Node.DOCUMENT_FRAGMENT_NODE == type)\n          ? new DOMBuilder(doc, (org.w3c.dom.DocumentFragment) outputNode)\n          : new DOMBuilder(doc, outputNode);\n          String encoding = format.getProperty(OutputKeys.ENCODING);          \n          xoh = new ToXMLSAXHandler(handler, (LexicalHandler)handler, encoding);\n      }\n      else if (outputTarget instanceof SAXResult)\n      {\n        ContentHandler handler = ((SAXResult) outputTarget).getHandler();\n        \n        if (null == handler)\n           throw new IllegalArgumentException(\n             \"handler can not be null for a SAXResult\"); \n             \n        LexicalHandler lexHandler;\n        if (handler instanceof LexicalHandler)     \n            lexHandler = (LexicalHandler)  handler;\n        else\n            lexHandler = null;\n            \n        String encoding = format.getProperty(OutputKeys.ENCODING); \n        String method = format.getProperty(OutputKeys.METHOD);\n        if (org.apache.xml.serializer.Method.HTML.equals(method))\n        {\n            xoh = new ToHTMLSAXHandler(handler, lexHandler, encoding);\n        }\n        else if (org.apache.xml.serializer.Method.TEXT.equals(method))\n        {\n            xoh = new ToTextSAXHandler(handler, lexHandler, encoding);\n        } \n        else \n        {\n            ToXMLSAXHandler toXMLSAXHandler = new ToXMLSAXHandler(handler, lexHandler, encoding);\n            toXMLSAXHandler.setShouldOutputNSAttr(false);\n            xoh = toXMLSAXHandler;   \n \n        } \n\n        String publicID = format.getProperty(OutputKeys.DOCTYPE_PUBLIC); \n        String systemID = format.getProperty(OutputKeys.DOCTYPE_SYSTEM); \n        if (systemID != null)\n            xoh.setDoctypeSystem(systemID);\n        if (publicID != null)\n            xoh.setDoctypePublic(publicID);\n        \n        if (handler instanceof TransformerClient) {\n            XalanTransformState state = new XalanTransformState();\n            ((TransformerClient)handler).setTransformState(state);\n            ((ToSAXHandler)xoh).setTransformState(state);\n        }\n\n \n      }\n\n      else if (outputTarget instanceof StreamResult)\n      {\n        StreamResult sresult = (StreamResult) outputTarget;\n        String method = format.getProperty(OutputKeys.METHOD);\n\n        try\n        {\n          SerializationHandler serializer =\n            (SerializationHandler) SerializerFactory.getSerializer(format.getProperties());\n\n          if (null != sresult.getWriter())\n            serializer.setWriter(sresult.getWriter());\n          else if (null != sresult.getOutputStream())\n            serializer.setOutputStream(sresult.getOutputStream());\n          else if (null != sresult.getSystemId())\n          {\n            String fileURL = sresult.getSystemId();\n\n            {\n              if (fileURL.substring(8).indexOf(\":\") >0)\n                fileURL = fileURL.substring(8);\n              else\n                fileURL = fileURL.substring(7);\n            }\n\n            m_outputStream = new java.io.FileOutputStream(fileURL);\n\n            serializer.setOutputStream(m_outputStream);\n            \n            xoh = serializer;\n          }\n          else\n\n\n\n          xoh = serializer;  \n        }\n        catch (IOException ioe)\n        {\n          throw new TransformerException(ioe);\n        }\n      }\n      else\n      {\n      }\n      \n      xoh.setTransformer(this);\n\n      SourceLocator srcLocator = getStylesheet();\n      xoh.setSourceLocator(srcLocator);\n      \n      \n      return xoh;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "TRY", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "IF", "BINARY_OP", "CALL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "IF", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [3, 11], [2, 12], [10, 13], [10, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [4, 20], [13, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [10, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [3, 34], [17, 35], [3, 36], [13, 37], [13, 38], [13, 39], [22, 40], [23, 41], [24, 42], [27, 43], [27, 44], [30, 45], [32, 46], [32, 47], [34, 48], [15, 49], [16, 50], [35, 51], [37, 52], [37, 53], [37, 54], [22, 55], [23, 56], [41, 57], [24, 58], [42, 59], [25, 60], [26, 61], [43, 62], [28, 63], [29, 64], [30, 65], [30, 66], [46, 67], [47, 68], [50, 69], [50, 70], [50, 71], [17, 72], [17, 73], [17, 74], [17, 75], [17, 76], [52, 77], [53, 78], [53, 79], [38, 80], [43, 81], [27, 82], [65, 83], [67, 84], [72, 85], [74, 86], [75, 87], [76, 88], [77, 89], [78, 90], [78, 91], [53, 92], [79, 93], [79, 94], [55, 95], [43, 96], [43, 97], [43, 98], [82, 99], [87, 100], [87, 101], [90, 102], [78, 103], [91, 104], [91, 105], [92, 106], [54, 107], [97, 108], [81, 109], [98, 110], [90, 111], [90, 112], [102, 113], [102, 114], [103, 115], [107, 116], [90, 117], [90, 118], [90, 119], [90, 120], [119, 121], [120, 122], [112, 123], [120, 124], [120, 125], [122, 126], [122, 127], [124, 128], [125, 129], [127, 130], [127, 131], [128, 132], [129, 133], [131, 134], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 3], [12, 2], [13, 10], [14, 10], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 4], [21, 13], [22, 10], [23, 10], [24, 10], [25, 10], [26, 10], [27, 10], [28, 10], [29, 10], [30, 10], [31, 10], [32, 10], [33, 10], [34, 3], [35, 17], [36, 3], [37, 13], [38, 13], [39, 13], [40, 22], [41, 23], [42, 24], [43, 27], [44, 27], [45, 30], [46, 32], [47, 32], [48, 34], [49, 15], [50, 16], [51, 35], [52, 37], [53, 37], [54, 37], [55, 22], [56, 23], [57, 41], [58, 24], [59, 42], [60, 25], [61, 26], [62, 43], [63, 28], [64, 29], [65, 30], [66, 30], [67, 46], [68, 47], [69, 50], [70, 50], [71, 50], [72, 17], [73, 17], [74, 17], [75, 17], [76, 17], [77, 52], [78, 53], [79, 53], [80, 38], [81, 43], [82, 27], [83, 65], [84, 67], [85, 72], [86, 74], [87, 75], [88, 76], [89, 77], [90, 78], [91, 78], [92, 53], [93, 79], [94, 79], [95, 55], [96, 43], [97, 43], [98, 43], [99, 82], [100, 87], [101, 87], [102, 90], [103, 78], [104, 91], [105, 91], [106, 92], [107, 54], [108, 97], [109, 81], [110, 98], [111, 90], [112, 90], [113, 102], [114, 102], [115, 103], [116, 107], [117, 90], [118, 90], [119, 90], [120, 90], [121, 119], [122, 120], [123, 112], [124, 120], [125, 120], [126, 122], [127, 122], [128, 124], [129, 125], [130, 127], [131, 127], [132, 128], [133, 129], [134, 131], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134]]}, {"function_name": "transform", "code": "  public void transform(Source xmlSource, Result outputTarget)\n          throws TransformerException\n  {\n                transform(xmlSource, outputTarget, true);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "transform", "code": "  public void transform(Source xmlSource, Result outputTarget, boolean shouldRelease)\n          throws TransformerException\n  {\n\n    synchronized (m_reentryGuard)\n    {\n      SerializationHandler xoh = createSerializationHandler(outputTarget);\n      this.setSerializationHandler(xoh);        \n\n      m_outputTarget = outputTarget;\n\n      transform(xmlSource, shouldRelease);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "transformNode", "code": "  public void transformNode(int node, Result outputTarget)\n          throws TransformerException\n  {\n    \n\n    SerializationHandler xoh = createSerializationHandler(outputTarget);\n    this.setSerializationHandler(xoh);\n\n    m_outputTarget = outputTarget;\n\n    transformNode(node);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "transformNode", "code": "  public void transformNode(int node) throws TransformerException\n  {\n    setExtensionsTable(getStylesheet());\n    synchronized (m_serializationHandler)\n    {\n      m_hasBeenReset = false;\n      \n      XPathContext xctxt = getXPathContext();\n      DTM dtm = xctxt.getDTM(node);\n\n      try\n      {\n        pushGlobalVars(node);\n\n        StylesheetRoot stylesheet = this.getStylesheet();\n        int n = stylesheet.getGlobalImportCount();\n\n        for (int i = 0; i < n; i++)\n        {\n          StylesheetComposed imported = stylesheet.getGlobalImport(i);\n          int includedCount = imported.getIncludeCountComposed();\n\n          for (int j = -1; j < includedCount; j++)\n          {\n            Stylesheet included = imported.getIncludeComposed(j);\n\n            included.runtimeInit(this);\n\n            for (ElemTemplateElement child = included.getFirstChildElem();\n                    child != null; child = child.getNextSiblingElem())\n            {\n              child.runtimeInit(this);\n            }\n          }\n        }\n        DTMIterator dtmIter = new org.apache.xpath.axes.SelfIteratorNoPredicate();\n        dtmIter.setRoot(node, xctxt);\n        xctxt.pushContextNodeList(dtmIter);\n        try\n        {\n          this.applyTemplateToNode(null, null, node);\n        }\n        finally\n        {\n          xctxt.popContextNodeList();\n        }\n\n        if (null != m_serializationHandler)\n        {\n          m_serializationHandler.endDocument();\n        }\n      }\n      catch (Exception se)\n      {\n\n        \n        while(se instanceof org.apache.xml.utils.WrappedRuntimeException)\n        {\n          Exception e = ((org.apache.xml.utils.WrappedRuntimeException)se).getException();\n          if(null != e)\n            se = e;\n        }\n        \n        if (null != m_serializationHandler)\n        {\n          try\n          {\n            if(se instanceof org.xml.sax.SAXParseException)\n              m_serializationHandler.fatalError((org.xml.sax.SAXParseException)se);\n            else if(se instanceof TransformerException)\n            {\n              TransformerException te = ((TransformerException)se);\n              SAXSourceLocator sl = new SAXSourceLocator( te.getLocator() );\n              m_serializationHandler.fatalError(new org.xml.sax.SAXParseException(te.getMessage(), sl, te)); \n            }\n            else\n            {\n              m_serializationHandler.fatalError(new org.xml.sax.SAXParseException(se.getMessage(), new SAXSourceLocator(), se)); \n            }             \n          }\n          catch (Exception e){}\n        }        \n        \n        if(se instanceof TransformerException)\n        {\n          m_errorHandler.fatalError((TransformerException)se);\n        }\n        else if(se instanceof org.xml.sax.SAXParseException)\n        {\n          m_errorHandler.fatalError(new TransformerException(se.getMessage(), \n                      new SAXSourceLocator((org.xml.sax.SAXParseException)se), \n                      se));\n        }\n        else\n        {\n          m_errorHandler.fatalError(new TransformerException(se));\n        }\n        \n      }\n      finally\n      {\n        this.reset();", "ast_nodes": ["FUNC_DECL", "PARAM", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CATCH", "IF", "TRY", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "IF", "IF", "LOOP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [0, 13], [5, 14], [6, 15], [6, 16], [6, 17], [7, 18], [2, 19], [2, 20], [10, 21], [2, 22], [3, 23], [4, 24], [13, 25], [2, 26], [15, 27], [15, 28], [16, 29], [17, 30], [18, 31], [8, 32], [9, 33], [10, 34], [10, 35], [10, 36], [11, 37], [27, 38], [16, 39], [29, 40], [17, 41], [17, 42], [7, 43], [8, 44], [34, 45], [10, 46], [12, 47], [15, 48], [39, 49], [39, 50], [41, 51], [44, 52], [44, 53], [34, 54], [34, 55], [35, 56], [36, 57], [27, 58], [27, 59], [50, 60], [50, 61], [41, 62], [51, 63], [54, 64], [54, 65], [34, 66], [34, 67], [58, 68], [59, 69], [60, 70], [50, 71], [64, 72], [65, 73], [55, 74], [69, 75], [69, 76], [60, 77], [60, 78], [54, 79], [54, 80], [60, 81], [60, 82], [81, 83], [82, 84], [77, 85], [83, 86], [83, 87], [84, 88], [85, 89], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 0], [14, 5], [15, 6], [16, 6], [17, 6], [18, 7], [19, 2], [20, 2], [21, 10], [22, 2], [23, 3], [24, 4], [25, 13], [26, 2], [27, 15], [28, 15], [29, 16], [30, 17], [31, 18], [32, 8], [33, 9], [34, 10], [35, 10], [36, 10], [37, 11], [38, 27], [39, 16], [40, 29], [41, 17], [42, 17], [43, 7], [44, 8], [45, 34], [46, 10], [47, 12], [48, 15], [49, 39], [50, 39], [51, 41], [52, 44], [53, 44], [54, 34], [55, 34], [56, 35], [57, 36], [58, 27], [59, 27], [60, 50], [61, 50], [62, 41], [63, 51], [64, 54], [65, 54], [66, 34], [67, 34], [68, 58], [69, 59], [70, 60], [71, 50], [72, 64], [73, 65], [74, 55], [75, 69], [76, 69], [77, 60], [78, 60], [79, 54], [80, 54], [81, 60], [82, 60], [83, 81], [84, 82], [85, 77], [86, 83], [87, 83], [88, 84], [89, 85], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89]]}, {"function_name": "getInputContentHandler", "code": "  public ContentHandler getInputContentHandler()\n  {\n    return getInputContentHandler(false);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getInputContentHandler", "code": "  public ContentHandler getInputContentHandler(boolean doDocFrag)\n  {\n\n    if (null == m_inputContentHandler)\n    {\n\n      m_inputContentHandler = new TransformerHandlerImpl(this, doDocFrag,\n              m_urlOfSource);\n    }\n\n    return m_inputContentHandler;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getInputDeclHandler", "code": "  public DeclHandler getInputDeclHandler()\n  {\n\n    if (m_inputContentHandler instanceof DeclHandler)\n      return (DeclHandler) m_inputContentHandler;\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getInputLexicalHandler", "code": "  public LexicalHandler getInputLexicalHandler()\n  {\n\n    if (m_inputContentHandler instanceof LexicalHandler)\n      return (LexicalHandler) m_inputContentHandler;\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setOutputFormat", "code": "  public void setOutputFormat(OutputProperties oformat)\n  {\n    m_outputFormat = oformat;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputFormat", "code": "  public OutputProperties getOutputFormat()\n  {\n\n    OutputProperties format = (null == m_outputFormat)\n                              ? getStylesheet().getOutputComposed()\n                              : m_outputFormat;\n\n    return format;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setParameter", "code": "  public void setParameter(String name, String namespace, Object value)\n  {\n\n    VariableStack varstack = getXPathContext().getVarStack();\n    QName qname = new QName(namespace, name);\n    XObject xobject = XObject.create(value, getXPathContext());\n    \n    StylesheetRoot sroot = m_stylesheetRoot;\n    Vector vars = sroot.getVariablesAndParamsComposed();\n    int i = vars.size();\n    while (--i >= 0)\n    {\n      ElemVariable variable = (ElemVariable)vars.elementAt(i);\n      if(variable.getXSLToken() == Constants.ELEMNAME_PARAMVARIABLE && \n         variable.getName().equals(qname))\n      {\n          varstack.setGlobalVariable(i, xobject);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [11, 14], [2, 15], [3, 16], [5, 17], [6, 18], [7, 19], [12, 20], [17, 21], [19, 22], [20, 23], [20, 24], [12, 25], [23, 26], [24, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 11], [15, 2], [16, 3], [17, 5], [18, 6], [19, 7], [20, 12], [21, 17], [22, 19], [23, 20], [24, 20], [25, 12], [26, 23], [27, 24], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "setParameter", "code": "  public void setParameter(String name, Object value)\n  {\n    \n    if (value == null) {\n      throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_SET_PARAM_VALUE, new Object[]{name}));\n    }    \n\n    StringTokenizer tokenizer = new StringTokenizer(name, \"{}\", false);\n\n    try\n    {\n\n      String s1 = tokenizer.nextToken();\n      String s2 = tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null;\n\n      if (null == m_userParams)\n        m_userParams = new Vector();\n\n      if (null == s2)\n      {\n        replaceOrPushUserParam(new QName(s1), XObject.create(value, getXPathContext()));\n        setParameter(s1, null, value);\n      }\n      else\n      {\n        replaceOrPushUserParam(new QName(s1, s2), XObject.create(value, getXPathContext()));\n        setParameter(s2, s1, value);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "CATCH", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [3, 11], [7, 12], [8, 13], [2, 14], [3, 15], [11, 16], [12, 17], [8, 18], [13, 19], [9, 20], [10, 21], [14, 22], [14, 23], [15, 24], [7, 25], [7, 26], [7, 27], [7, 28], [18, 29], [20, 30], [20, 31], [20, 32], [24, 33], [26, 34], [26, 35], [27, 36], [28, 37], [28, 38], [34, 39], [37, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 3], [12, 7], [13, 8], [14, 2], [15, 3], [16, 11], [17, 12], [18, 8], [19, 13], [20, 9], [21, 10], [22, 14], [23, 14], [24, 15], [25, 7], [26, 7], [27, 7], [28, 7], [29, 18], [30, 20], [31, 20], [32, 20], [33, 24], [34, 26], [35, 26], [36, 27], [37, 28], [38, 28], [39, 34], [40, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "replaceOrPushUserParam", "code": "  private void replaceOrPushUserParam(QName qname, XObject xval)\n  {\n\n    int n = m_userParams.size();\n\n    for (int i = n - 1; i >= 0; i--)\n    {\n      Arg arg = (Arg) m_userParams.elementAt(i);\n\n      if (arg.getQName().equals(qname))\n      {\n        m_userParams.setElementAt(new Arg(qname, xval, true), i);\n\n        return;\n      }\n    }\n\n    m_userParams.addElement(new Arg(qname, xval, true));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [5, 7], [1, 8], [1, 9], [6, 10], [2, 11], [7, 12], [8, 13], [1, 14], [8, 15], [13, 16], [14, 17], [8, 18], [9, 19], [18, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 5], [8, 1], [9, 1], [10, 6], [11, 2], [12, 7], [13, 8], [14, 1], [15, 8], [16, 13], [17, 14], [18, 8], [19, 9], [20, 18], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getParameter", "code": "  public Object getParameter(String name)\n  {\n\n    try\n    {\n\n      QName qname = QName.getQNameFromString(name);\n\n      if (null == m_userParams)\n        return null;\n\n      int n = m_userParams.size();\n\n      for (int i = n - 1; i >= 0; i--)\n      {\n        Arg arg = (Arg) m_userParams.elementAt(i);\n\n        if (arg.getQName().equals(qname))\n        {\n          return arg.getVal().object();\n        }\n      }\n\n      return null;\n    }\n    catch (java.util.NoSuchElementException nsee)\n    {\n\n      return null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [4, 10], [5, 11], [7, 12], [7, 13], [9, 14], [5, 15], [5, 16], [11, 17], [6, 18], [12, 19], [13, 20], [8, 21], [15, 22], [5, 23], [15, 24], [22, 25], [23, 26], [24, 27], [16, 28], [27, 29], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 4], [11, 5], [12, 7], [13, 7], [14, 9], [15, 5], [16, 5], [17, 11], [18, 6], [19, 12], [20, 13], [21, 8], [22, 15], [23, 5], [24, 15], [25, 22], [26, 23], [27, 24], [28, 16], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "resetUserParameters", "code": "  private void resetUserParameters()\n  {\n\n    try\n    {\n      \n      if (null == m_userParams)\n        return;\n\n      int n = m_userParams.size();\n      for (int i = n - 1; i >= 0; i--)\n      {\n        Arg arg = (Arg) m_userParams.elementAt(i);\n        QName name = arg.getQName();\n        String s1 = name.getNamespace();\n        String s2 = name.getLocalPart();\n\n        setParameter(s2, s1, arg.getVal().object());", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [5, 8], [3, 9], [3, 10], [3, 11], [3, 12], [6, 13], [4, 14], [8, 15], [3, 16], [3, 17], [16, 18], [9, 19], [10, 20], [11, 21], [17, 22], [18, 23], [12, 24], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 5], [9, 3], [10, 3], [11, 3], [12, 3], [13, 6], [14, 4], [15, 8], [16, 3], [17, 3], [18, 16], [19, 9], [20, 10], [21, 11], [22, 17], [23, 18], [24, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "setParameters", "code": "  public void setParameters(Properties params)\n  {\n\n    clearParameters();\n\n    Enumeration names = params.propertyNames();\n\n    while (names.hasMoreElements())\n    {\n      String name = params.getProperty((String) names.nextElement());\n      StringTokenizer tokenizer = new StringTokenizer(name, \"{}\", false);\n\n      try\n      {\n\n        String s1 = tokenizer.nextToken();\n        String s2 = tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null;\n\n        if (null == s2)\n          setParameter(s1, null, params.getProperty(name));\n        else\n          setParameter(s2, s1, params.getProperty(name));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [6, 10], [6, 11], [6, 12], [6, 13], [11, 14], [7, 15], [8, 16], [11, 17], [11, 18], [14, 19], [12, 20], [13, 21], [15, 22], [15, 23], [17, 24], [18, 25], [18, 26], [20, 27], [20, 28], [20, 29], [16, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 6], [11, 6], [12, 6], [13, 6], [14, 11], [15, 7], [16, 8], [17, 11], [18, 11], [19, 14], [20, 12], [21, 13], [22, 15], [23, 15], [24, 17], [25, 18], [26, 18], [27, 20], [28, 20], [29, 20], [30, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "clearParameters", "code": "  public void clearParameters()\n  {\n\n    synchronized (m_reentryGuard)\n    {\n      VariableStack varstack = new VariableStack();\n\n      m_xcontext.setVarStack(varstack);\n\n      m_userParams = null;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "pushGlobalVars", "code": "  protected void pushGlobalVars(int contextNode) throws TransformerException\n  {\n\n    XPathContext xctxt = m_xcontext;\n    VariableStack vs = xctxt.getVarStack();\n    StylesheetRoot sr = getStylesheet();\n    Vector vars = sr.getVariablesAndParamsComposed();\n    \n    int i = vars.size();\n    vs.link(i);\n\n    while (--i >= 0)\n    {\n      ElemVariable v = (ElemVariable) vars.elementAt(i);\n\n      XObject xobj = new XUnresolvedVariable(v, contextNode, this,\n                                     vs.getStackFrame(), 0, true);\n      \n      if(null == vs.elementAt(i))                               \n        vs.setGlobalVariable(i, xobj);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [1, 10], [1, 11], [1, 12], [8, 13], [2, 14], [3, 15], [4, 16], [5, 17], [10, 18], [10, 19], [18, 20], [18, 21], [11, 22], [22, 23], [22, 24], [22, 25], [12, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 1], [11, 1], [12, 1], [13, 8], [14, 2], [15, 3], [16, 4], [17, 5], [18, 10], [19, 10], [20, 18], [21, 18], [22, 11], [23, 22], [24, 22], [25, 22], [26, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "setURIResolver", "code": "  public void setURIResolver(URIResolver resolver)\n  {\n\n    synchronized (m_reentryGuard)\n    {\n      m_xcontext.getSourceTreeManager().setURIResolver(resolver);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getURIResolver", "code": "  public URIResolver getURIResolver()\n  {\n    return m_xcontext.getSourceTreeManager().getURIResolver();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setContentHandler", "code": "  public void setContentHandler(ContentHandler handler)\n  {\n\n    if (handler == null)\n    {\n    }\n    else\n    {\n      m_outputContentHandler = handler;\n\n      if (null == m_serializationHandler)\n      {\n        ToXMLSAXHandler h = new ToXMLSAXHandler();\n        h.setContentHandler(handler);\n        h.setTransformer(this);\n        \n        m_serializationHandler = h;\n      }\n      else\n        m_serializationHandler.setContentHandler(handler);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [4, 8], [4, 9], [6, 10], [4, 11], [4, 12], [4, 13], [9, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 4], [9, 4], [10, 6], [11, 4], [12, 4], [13, 4], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getContentHandler", "code": "  public ContentHandler getContentHandler()\n  {\n    return m_outputContentHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "transformToRTF", "code": "  public int transformToRTF(ElemTemplateElement templateParent)\n          throws TransformerException\n  {\n    DTM dtmFrag = m_xcontext.getRTFDTM();\n    return transformToRTF(templateParent,dtmFrag);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "transformToGlobalRTF", "code": "  public int transformToGlobalRTF(ElemTemplateElement templateParent)\n          throws TransformerException\n  {\n    DTM dtmFrag = m_xcontext.getGlobalRTFDTM();\n    return transformToRTF(templateParent,dtmFrag);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "transformToRTF", "code": "  private int transformToRTF(ElemTemplateElement templateParent,DTM dtmFrag)\n          throws TransformerException\n  {\n\n    XPathContext xctxt = m_xcontext;\n    \n    ContentHandler rtfHandler = dtmFrag.getContentHandler();\n\n\n    SerializationHandler savedRTreeHandler = this.m_serializationHandler;\n \n\n    ToSAXHandler h = new ToXMLSAXHandler();\n    h.setContentHandler(rtfHandler);\n    h.setTransformer(this);\n    \n    m_serializationHandler = h;\n \n    SerializationHandler rth = m_serializationHandler;\n\n    try\n    {\n      rth.startDocument();\n      \n      rth.flushPending(); \n \n      try\n      {\n\n        executeChildTemplates(templateParent, true);\n\n        rth.flushPending();\n        \n\tresultFragment = dtmFrag.getDocument();      \n      }\n      finally\n      {\n        rth.endDocument();\n      }\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n    finally\n    {\n\n      this.m_serializationHandler = savedRTreeHandler;\n    }\n\n    return resultFragment;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "TRY", "ASSIGN", "CALL", "CALL", "ASSIGN", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [0, 12], [0, 13], [0, 14], [2, 15], [10, 16], [2, 17], [2, 18], [4, 19], [6, 20], [16, 21], [11, 22], [11, 23], [11, 24], [11, 25], [23, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 0], [13, 0], [14, 0], [15, 2], [16, 10], [17, 2], [18, 2], [19, 4], [20, 6], [21, 16], [22, 11], [23, 11], [24, 11], [25, 11], [26, 23], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getStringWriterPool", "code": "  public ObjectPool getStringWriterPool()\n  {\n    return m_stringWriterObjectPool;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "transformToString", "code": "  public String transformToString(ElemTemplateElement elem)\n          throws TransformerException\n  {\n    ElemTemplateElement firstChild = elem.getFirstChildElem();\n    if(null == firstChild)\n      return \"\";\n    if(elem.hasTextLitOnly() && org.apache.xalan.processor.TransformerFactoryImpl.m_optimize)\n    {\n      return ((ElemTextLiteral)firstChild).getNodeValue();\n    }\n\n    SerializationHandler savedRTreeHandler = this.m_serializationHandler;\n\n    StringWriter sw = (StringWriter) m_stringWriterObjectPool.getInstance();\n\n    m_serializationHandler =\n        (ToTextStream) m_textResultHandlerObjectPool.getInstance();\n\n      if (null == m_serializationHandler)\n      {\n\n        \n        Serializer serializer = org.apache.xml.serializer.SerializerFactory.getSerializer(\n            m_textformat.getProperties());\n        m_serializationHandler = (SerializationHandler) serializer;\n      } \n\n        m_serializationHandler.setTransformer(this);\n        m_serializationHandler.setWriter(sw);\n \n \n    String result;\n\n    try\n    {\n        /* Don't call startDocument, the SerializationHandler  will\n         * generate its own internal startDocument call anyways\n         */\n\n      executeChildTemplates(elem, true);\n        this.m_serializationHandler.endDocument();\n\n      result = sw.toString();\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n    finally\n    {\n      sw.getBuffer().setLength(0);\n\n      try\n      {\n        sw.close();\n      }\n      catch (Exception ioe){}\n\n      m_stringWriterObjectPool.freeInstance(sw);\n      m_serializationHandler.reset();\n      m_textResultHandlerObjectPool.freeInstance(m_serializationHandler);\n\n      m_serializationHandler = savedRTreeHandler;\n    }\n\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "TRY", "CATCH", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CATCH", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [0, 13], [0, 14], [4, 15], [0, 16], [7, 17], [8, 18], [8, 19], [2, 20], [2, 21], [2, 22], [2, 23], [11, 24], [2, 25], [12, 26], [2, 27], [2, 28], [4, 29], [15, 30], [7, 31], [17, 32], [18, 33], [19, 34], [9, 35], [11, 36], [25, 37], [26, 38], [27, 39], [2, 40], [28, 41], [4, 42], [16, 43], [5, 44], [37, 45], [29, 46], [46, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 0], [14, 0], [15, 4], [16, 0], [17, 7], [18, 8], [19, 8], [20, 2], [21, 2], [22, 2], [23, 2], [24, 11], [25, 2], [26, 12], [27, 2], [28, 2], [29, 4], [30, 15], [31, 7], [32, 17], [33, 18], [34, 19], [35, 9], [36, 11], [37, 25], [38, 26], [39, 27], [40, 2], [41, 28], [42, 4], [43, 16], [44, 5], [45, 37], [46, 29], [47, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "executeChildTemplates", "code": "  public void executeChildTemplates(\n          ElemTemplateElement elem, org.w3c.dom.Node context, QName mode, ContentHandler handler)\n            throws TransformerException\n  {\n\n    XPathContext xctxt = m_xcontext;\n\n    try\n    {\n      if(null != mode)\n        pushMode(mode);\n      xctxt.pushCurrentNode(xctxt.getDTMHandleFromNode(context));\n      executeChildTemplates(elem, handler);\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n      \n      if (null != mode)\n        popMode();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [1, 10], [1, 11], [1, 12], [8, 13], [7, 14], [9, 15], [12, 16], [8, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 1], [11, 1], [12, 1], [13, 8], [14, 7], [15, 9], [16, 12], [17, 8], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "executeChildTemplates", "code": "  public void executeChildTemplates(\n          ElemTemplateElement elem, boolean shouldAddAttrs)\n            throws TransformerException\n  {\n\n    ElemTemplateElement t = elem.getFirstChildElem();\n\n    if (null == t)\n      return;      \n    \n    if(elem.hasTextLitOnly() && org.apache.xalan.processor.TransformerFactoryImpl.m_optimize)\n    {      \n      char[] chars = ((ElemTextLiteral)t).getChars();\n      try\n      {\n        this.pushElemTemplateElement(t);\n        m_serializationHandler.characters(chars, 0, chars.length);\n      }\n      catch(SAXException se)\n      {\n        throw new TransformerException(se);\n      }\n      finally\n      {\n        this.popElemTemplateElement();\n      }\n      return;\n    }\n\n\n    XPathContext xctxt = m_xcontext;\n    xctxt.pushSAXLocatorNull();\n    int currentTemplateElementsTop = m_currentTemplateElements.size();\n    m_currentTemplateElements.push(null);\n\n    try\n    {\n      for (; t != null; t = t.getNextSiblingElem())\n      {\n        if (!shouldAddAttrs\n                && t.getXSLToken() == Constants.ELEMNAME_ATTRIBUTE)\n          continue;\n\n        xctxt.setSAXLocator(t);\n        m_currentTemplateElements.setElementAt(t,currentTemplateElementsTop);\n        t.execute(this);\n      }\n    }\n    catch(RuntimeException re)\n    {\n    \tTransformerException te = new TransformerException(re);\n    \tte.setLocator(t);\n    \tthrow te;\n    }\n    finally\n    {\n      m_currentTemplateElements.pop();\n      xctxt.popSAXLocator();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CATCH", "LOOP", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "TRY", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [0, 11], [0, 12], [4, 13], [5, 14], [5, 15], [1, 16], [1, 17], [9, 18], [9, 19], [10, 20], [10, 21], [11, 22], [2, 23], [4, 24], [4, 25], [4, 26], [13, 27], [15, 28], [6, 29], [9, 30], [10, 31], [20, 32], [21, 33], [25, 34], [19, 35], [10, 36], [10, 37], [10, 38], [31, 39], [31, 40], [34, 41], [25, 42], [40, 43], [25, 44], [41, 45], [42, 46], [25, 47], [43, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 0], [12, 0], [13, 4], [14, 5], [15, 5], [16, 1], [17, 1], [18, 9], [19, 9], [20, 10], [21, 10], [22, 11], [23, 2], [24, 4], [25, 4], [26, 4], [27, 13], [28, 15], [29, 6], [30, 9], [31, 10], [32, 20], [33, 21], [34, 25], [35, 19], [36, 10], [37, 10], [38, 10], [39, 31], [40, 31], [41, 34], [42, 25], [43, 40], [44, 25], [45, 41], [46, 42], [47, 25], [48, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "executeChildTemplates", "code": "     public void executeChildTemplates(\n             ElemTemplateElement elem, ContentHandler handler)\n               throws TransformerException\n     {\n\n       SerializationHandler xoh = this.getSerializationHandler();\n\n       SerializationHandler savedHandler = xoh;\n\n       try\n       {\n         xoh.flushPending();\n\n         LexicalHandler lex = null;\n         if (handler instanceof LexicalHandler) {\n            lex = (LexicalHandler) handler;\n         }\n         m_serializationHandler = new ToXMLSAXHandler(handler, lex, savedHandler.getEncoding());\n         m_serializationHandler.setTransformer(this);\n         executeChildTemplates(elem, true);\n       }\n       catch (TransformerException e)\n       {\n         throw e;\n       }\n       catch (SAXException se) {\n       \t throw new TransformerException(se);\n       }\n       finally\n       {\n         m_serializationHandler = savedHandler;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "VAR_DECL", "ASSIGN", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [6, 11], [7, 12], [1, 13], [1, 14], [1, 15], [8, 16], [1, 17], [11, 18], [13, 19], [15, 20], [9, 21], [3, 22], [20, 23], [8, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 6], [12, 7], [13, 1], [14, 1], [15, 1], [16, 8], [17, 1], [18, 11], [19, 13], [20, 15], [21, 9], [22, 3], [23, 20], [24, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "processSortKeys", "code": "  public Vector processSortKeys(ElemForEach foreach, int sourceNodeContext)\n          throws TransformerException\n  {\n\n    Vector keys = null;\n    XPathContext xctxt = m_xcontext;\n    int nElems = foreach.getSortElemCount();\n\n    if (nElems > 0)\n      keys = new Vector();\n\n    for (int i = 0; i < nElems; i++)\n    {\n      ElemSort sort = foreach.getSortElem(i);\n      \n      if (TransformerImpl.S_DEBUG)\n        getTraceManager().fireTraceEvent(sort);\n     \n      String langString =\n        (null != sort.getLang())\n        ? sort.getLang().evaluate(xctxt, sourceNodeContext, foreach) : null;\n      String dataTypeString = sort.getDataType().evaluate(xctxt,\n                                sourceNodeContext, foreach);\n\n      if (dataTypeString.indexOf(\":\") >= 0)\n        System.out.println(\n          \"TODO: Need to write the hooks for QNAME sort data type\");\n      else if (!(dataTypeString.equalsIgnoreCase(Constants.ATTRVAL_DATATYPE_TEXT))\n               &&!(dataTypeString.equalsIgnoreCase(\n                 Constants.ATTRVAL_DATATYPE_NUMBER)))\n        foreach.error(XSLTErrorResources.ER_ILLEGAL_ATTRIBUTE_VALUE,\n                      new Object[]{ Constants.ATTRNAME_DATATYPE,\n                                    dataTypeString });\n\n      boolean treatAsNumbers =\n        ((null != dataTypeString) && dataTypeString.equals(\n        Constants.ATTRVAL_DATATYPE_NUMBER)) ? true : false;\n      String orderString = sort.getOrder().evaluate(xctxt, sourceNodeContext,\n                             foreach);\n\n      if (!(orderString.equalsIgnoreCase(Constants.ATTRVAL_ORDER_ASCENDING))\n              &&!(orderString.equalsIgnoreCase(\n                Constants.ATTRVAL_ORDER_DESCENDING)))\n        foreach.error(XSLTErrorResources.ER_ILLEGAL_ATTRIBUTE_VALUE,\n                      new Object[]{ Constants.ATTRNAME_ORDER,\n                                    orderString });\n\n      boolean descending =\n        ((null != orderString) && orderString.equals(\n        Constants.ATTRVAL_ORDER_DESCENDING)) ? true : false;\n      AVT caseOrder = sort.getCaseOrder();\n      boolean caseOrderUpper;\n\n      if (null != caseOrder)\n      {\n        String caseOrderString = caseOrder.evaluate(xctxt, sourceNodeContext,\n                                                    foreach);\n\n        if (!(caseOrderString.equalsIgnoreCase(Constants.ATTRVAL_CASEORDER_UPPER))\n                &&!(caseOrderString.equalsIgnoreCase(\n                  Constants.ATTRVAL_CASEORDER_LOWER)))\n          foreach.error(XSLTErrorResources.ER_ILLEGAL_ATTRIBUTE_VALUE,\n                        new Object[]{ Constants.ATTRNAME_CASEORDER,\n                                      caseOrderString });\n\n        caseOrderUpper =\n          ((null != caseOrderString) && caseOrderString.equals(\n          Constants.ATTRVAL_CASEORDER_UPPER)) ? true : false;\n      }\n      else\n      {\n        caseOrderUpper = false;\n      }\n\n      keys.addElement(new NodeSortKey(this, sort.getSelect(), treatAsNumbers,\n                                      descending, langString, caseOrderUpper,\n                                      foreach));\n      if (TransformerImpl.S_DEBUG)\n        getTraceManager().fireTraceEndEvent(sort);\n     }\n\n    return keys;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [3, 24], [10, 25], [4, 26], [6, 27], [2, 28], [12, 29], [16, 30], [19, 31], [19, 32], [2, 33], [24, 34], [11, 35], [28, 36], [12, 37], [12, 38], [29, 39], [14, 40], [15, 41], [16, 42], [30, 43], [30, 44], [17, 45], [18, 46], [31, 47], [19, 48], [32, 49], [32, 50], [20, 51], [21, 52], [22, 53], [23, 54], [35, 55], [36, 56], [12, 57], [12, 58], [37, 59], [41, 60], [41, 61], [41, 62], [45, 63], [46, 64], [46, 65], [46, 66], [31, 67], [47, 68], [47, 69], [48, 70], [50, 71], [51, 72], [52, 73], [52, 74], [52, 75], [53, 76], [57, 77], [58, 78], [37, 79], [59, 80], [59, 81], [38, 82], [62, 83], [62, 84], [66, 85], [66, 86], [74, 87], [75, 88], [75, 89], [78, 90], [78, 91], [78, 92], [84, 93], [86, 94], [92, 95], [92, 96], [96, 97], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 3], [25, 10], [26, 4], [27, 6], [28, 2], [29, 12], [30, 16], [31, 19], [32, 19], [33, 2], [34, 24], [35, 11], [36, 28], [37, 12], [38, 12], [39, 29], [40, 14], [41, 15], [42, 16], [43, 30], [44, 30], [45, 17], [46, 18], [47, 31], [48, 19], [49, 32], [50, 32], [51, 20], [52, 21], [53, 22], [54, 23], [55, 35], [56, 36], [57, 12], [58, 12], [59, 37], [60, 41], [61, 41], [62, 41], [63, 45], [64, 46], [65, 46], [66, 46], [67, 31], [68, 47], [69, 47], [70, 48], [71, 50], [72, 51], [73, 52], [74, 52], [75, 52], [76, 53], [77, 57], [78, 58], [79, 37], [80, 59], [81, 59], [82, 38], [83, 62], [84, 62], [85, 66], [86, 66], [87, 74], [88, 75], [89, 75], [90, 78], [91, 78], [92, 78], [93, 84], [94, 86], [95, 92], [96, 92], [97, 96], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97]]}, {"function_name": "getElementCallstack", "code": "  public Vector getElementCallstack()\n  {\n  \tVector elems = new Vector();\n  \tint nStackSize = m_currentTemplateElements.size();\n  \tfor(int i = 0; i < nStackSize; i++)\n  \t{\n  \t\tElemTemplateElement elem = (ElemTemplateElement) m_currentTemplateElements.elementAt(i);\n  \t\tif(null != elem)\n  \t\t{\n  \t\t\telems.addElement(elem);\n  \t\t}\n  \t}\n  \treturn elems;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [3, 8], [4, 9], [6, 10], [2, 11], [10, 12], [6, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 3], [9, 4], [10, 6], [11, 2], [12, 10], [13, 6], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getCurrentTemplateElementsCount", "code": "  public int getCurrentTemplateElementsCount()\n  {\n  \treturn m_currentTemplateElements.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCurrentTemplateElements", "code": "  public ObjectStack getCurrentTemplateElements()\n  {\n  \treturn m_currentTemplateElements;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "pushElemTemplateElement", "code": "  public void pushElemTemplateElement(ElemTemplateElement elem)\n  {\n    m_currentTemplateElements.push(elem);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popElemTemplateElement", "code": "  public void popElemTemplateElement()\n  {\n    m_currentTemplateElements.pop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCurrentElement", "code": "  public void setCurrentElement(ElemTemplateElement e)\n  {\n    m_currentTemplateElements.setTop(e);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCurrentElement", "code": "  public ElemTemplateElement getCurrentElement()\n  {\n    return (m_currentTemplateElements.size() > 0) ? \n        (ElemTemplateElement) m_currentTemplateElements.peek() : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [4, 6], [4, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getCurrentNode", "code": "  public int getCurrentNode()\n  {\n    return m_xcontext.getCurrentNode();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTemplateCallstack", "code": "  public Vector getTemplateCallstack()\n  {\n  \tVector elems = new Vector();\n  \tint nStackSize = m_currentTemplateElements.size();\n  \tfor(int i = 0; i < nStackSize; i++)\n  \t{\n  \t\tElemTemplateElement elem = (ElemTemplateElement) m_currentTemplateElements.elementAt(i);\n  \t\tif(null != elem && (elem.getXSLToken() != Constants.ELEMNAME_TEMPLATE))\n  \t\t{\n  \t\t\telems.addElement(elem);\n  \t\t}\n  \t}\n  \treturn elems;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [3, 8], [4, 9], [6, 10], [2, 11], [10, 12], [10, 13], [6, 14], [12, 15], [13, 16], [7, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 3], [9, 4], [10, 6], [11, 2], [12, 10], [13, 10], [14, 6], [15, 12], [16, 13], [17, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getCurrentTemplate", "code": "  public ElemTemplate getCurrentTemplate()\n  {\n\n    ElemTemplateElement elem = getCurrentElement();\n\n    while ((null != elem)\n           && (elem.getXSLToken() != Constants.ELEMNAME_TEMPLATE))\n    {\n      elem = elem.getParentElem();\n    }\n\n    return (ElemTemplate) elem;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [4, 6], [3, 7], [2, 8], [5, 9], [6, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 4], [7, 3], [8, 2], [9, 5], [10, 6], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "pushPairCurrentMatched", "code": "  public void pushPairCurrentMatched(ElemTemplateElement template, int child)\n  {\n    m_currentMatchTemplates.push(template);\n    m_currentMatchedNodes.push(child);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "popCurrentMatched", "code": "  public void popCurrentMatched()\n  {\n    m_currentMatchTemplates.pop();\n    m_currentMatchedNodes.pop();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMatchedTemplate", "code": "  public ElemTemplate getMatchedTemplate()\n  {\n    return (ElemTemplate) m_currentMatchTemplates.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMatchedNode", "code": "  public int getMatchedNode()\n  {\n    return m_currentMatchedNodes.peepTail();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getContextNodeList", "code": "  public DTMIterator getContextNodeList()\n  {\n\n    try\n    {\n      DTMIterator cnl = m_xcontext.getContextNodeList();\n\n      return (cnl == null) ? null : (DTMIterator) cnl.cloneWithReset();\n    }\n    catch (CloneNotSupportedException cnse)\n    {\n\n      return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [5, 7], [6, 8], [6, 9], [4, 10], [6, 11], [9, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 5], [8, 6], [9, 6], [10, 4], [11, 6], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getTransformer", "code": "  public Transformer getTransformer()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStylesheet", "code": "  public void setStylesheet(StylesheetRoot stylesheetRoot)\n  {\n    m_stylesheetRoot = stylesheetRoot;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheet", "code": "  public final StylesheetRoot getStylesheet()\n  {\n    return m_stylesheetRoot;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getQuietConflictWarnings", "code": "  public boolean getQuietConflictWarnings()\n  {\n    return m_quietConflictWarnings;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setQuietConflictWarnings", "code": "  public void setQuietConflictWarnings(boolean b)\n  {\n    m_quietConflictWarnings = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setXPathContext", "code": "  public void setXPathContext(XPathContext xcontext)\n  {\n    m_xcontext = xcontext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXPathContext", "code": "  public final XPathContext getXPathContext()\n  {\n    return m_xcontext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStackGuard", "code": "  public StackGuard getStackGuard()\n  {\n    return m_stackGuard;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecursionLimit", "code": "  public int getRecursionLimit()\n  {\n    return m_stackGuard.getRecursionLimit();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRecursionLimit", "code": "  public void setRecursionLimit(int limit)\n  {\n    m_stackGuard.setRecursionLimit(limit);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResultTreeHandler", "code": "  public SerializationHandler getResultTreeHandler()\n  {\n    return m_serializationHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSerializationHandler", "code": "  public SerializationHandler getSerializationHandler()\n  {\n    return m_serializationHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getKeyManager", "code": "  public KeyManager getKeyManager()\n  {\n    return m_keyManager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isRecursiveAttrSet", "code": "  public boolean isRecursiveAttrSet(ElemAttributeSet attrSet)\n  {\n\n    if (null == m_attrSetStack)\n    {\n      m_attrSetStack = new Stack();\n    }\n\n    if (!m_attrSetStack.empty())\n    {\n      int loc = m_attrSetStack.search(attrSet);\n\n      if (loc > -1)\n      {\n        return true;\n      }\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [2, 9], [7, 10], [8, 11], [3, 12], [8, 13], [11, 14], [9, 15], [12, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 2], [10, 7], [11, 8], [12, 3], [13, 8], [14, 11], [15, 9], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "pushElemAttributeSet", "code": "  public void pushElemAttributeSet(ElemAttributeSet attrSet)\n  {\n    m_attrSetStack.push(attrSet);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popElemAttributeSet", "code": "  public void popElemAttributeSet()\n  {\n    m_attrSetStack.pop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCountersTable", "code": "  public CountersTable getCountersTable()\n  {\n\n    if (null == m_countersTable)\n      m_countersTable = new CountersTable();\n\n    return m_countersTable;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "currentTemplateRuleIsNull", "code": "  public boolean currentTemplateRuleIsNull()\n  {\n    return ((!m_currentTemplateRuleIsNull.isEmpty())\n            && (m_currentTemplateRuleIsNull.peek() == true));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "pushCurrentTemplateRuleIsNull", "code": "  public void pushCurrentTemplateRuleIsNull(boolean b)\n  {\n    m_currentTemplateRuleIsNull.push(b);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popCurrentTemplateRuleIsNull", "code": "  public void popCurrentTemplateRuleIsNull()\n  {\n    m_currentTemplateRuleIsNull.pop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "pushCurrentFuncResult", "code": "  public void pushCurrentFuncResult(Object val) {\n    m_currentFuncResult.push(val);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popCurrentFuncResult", "code": "  public Object popCurrentFuncResult() {\n    return m_currentFuncResult.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "currentFuncResultSeen", "code": "  public boolean currentFuncResultSeen() {\n    return !m_currentFuncResult.empty()\n               && m_currentFuncResult.peek() != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getMsgMgr", "code": "  public MsgMgr getMsgMgr()\n  {\n\n    if (null == m_msgMgr)\n      m_msgMgr = new MsgMgr(this);\n\n    return m_msgMgr;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setErrorListener", "code": "  public void setErrorListener(ErrorListener listener)\n          throws IllegalArgumentException\n  {\n\n    synchronized (m_reentryGuard)\n    {\n      if (listener == null)\n\n      m_errorHandler = listener;", "ast_nodes": ["FUNC_DECL", "PARAM", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getErrorListener", "code": "  public ErrorListener getErrorListener()\n  {\n    return m_errorHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTraceManager", "code": "  public TraceManager getTraceManager()\n  {\n    return m_traceManager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFeature", "code": "  public boolean getFeature(String name)\n          throws SAXNotRecognizedException, SAXNotSupportedException\n  {\n\n      return true;\n      return true;\n\n    throw new SAXNotRecognizedException(name);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "RETURN", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getMode", "code": "  public QName getMode()\n  {\n    return m_modes.isEmpty() ? null : (QName) m_modes.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "pushMode", "code": "  public void pushMode(QName mode)\n  {\n    m_modes.push(mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popMode", "code": "  public void popMode()\n  {\n    m_modes.pop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "runTransformThread", "code": "  public void runTransformThread(int priority)\n  {\n\n    Thread t = ThreadControllerWrapper.runThread(this, priority);\n    this.setTransformThread(t);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "runTransformThread", "code": "  public void runTransformThread()\n  {\n    ThreadControllerWrapper.runThread(this, -1);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "runTransformThread", "code": "  public static void runTransformThread(Runnable runnable)\n  {\n    ThreadControllerWrapper.runThread(runnable, -1);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "waitTransformThread", "code": "  public void waitTransformThread() throws SAXException\n  {\n\n    Thread transformThread = this.getTransformThread();\n\n    if (null != transformThread)\n    {\n      try\n      {\n        ThreadControllerWrapper.waitThread(transformThread, this);\n\n        if (!this.hasTransformThreadErrorCatcher())\n        {\n          Exception e = this.getExceptionThrown();\n\n          if (null != e)\n          {\n            e.printStackTrace();\n            throw new org.xml.sax.SAXException(e);\n          }\n        }\n\n        this.setTransformThread(null);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "IF", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [2, 8], [4, 9], [4, 10], [7, 11], [7, 12], [7, 13], [10, 14], [11, 15], [11, 16], [15, 17], [16, 18], [11, 19], [12, 20], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 2], [9, 4], [10, 4], [11, 7], [12, 7], [13, 7], [14, 10], [15, 11], [16, 11], [17, 15], [18, 16], [19, 11], [20, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getExceptionThrown", "code": "  public Exception getExceptionThrown()\n  {\n    return m_exceptionThrown;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExceptionThrown", "code": "  public void setExceptionThrown(Exception e)\n  {\n    m_exceptionThrown = e;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSourceTreeDocForThread", "code": "  public void setSourceTreeDocForThread(int doc)\n  {\n    m_doc = doc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setXMLSource", "code": "  public void setXMLSource(Source source)\n  {\n    m_xmlSource = source;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isTransformDone", "code": "  public boolean isTransformDone()\n  {\n\n    synchronized (this)\n    {\n      return m_isTransformDone;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIsTransformDone", "code": "  public void setIsTransformDone(boolean done)\n  {\n\n    synchronized (this)\n    {\n      m_isTransformDone = done;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "postExceptionFromThread", "code": "  void postExceptionFromThread(Exception e)\n  {\n\n\n    m_isTransformDone = true;\n    m_exceptionThrown = e;\n\n    synchronized (this)\n    {\n\n      notifyAll();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "run", "code": "  public void run()\n  {\n\n    m_hasBeenReset = false;\n\n    try\n    {\n\n      try\n      {\n        m_isTransformDone = false;\n        \n\n        transformNode(m_doc);\n        \n      }\n      catch (Exception e)\n      {\n\n        if (null != m_transformThread){}\n        else \n          throw new RuntimeException(e.getMessage());\n      }\n      finally\n      {\n        m_isTransformDone = true;\n\n        if (m_inputContentHandler instanceof TransformerHandlerImpl)\n        {\n          ((TransformerHandlerImpl) m_inputContentHandler).clearCoRoutine();\n        }\n\n      }\n    }\n    catch (Exception e)\n    {\n\n      if (null != m_transformThread)\n        postExceptionFromThread(e);\n      else {}", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "TRY", "ASSIGN", "IF", "IF", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [0, 4], [2, 5], [3, 6], [3, 7], [4, 8], [5, 9], [6, 10], [3, 11], [7, 12], [3, 13], [3, 14], [5, 15], [9, 16], [11, 17], [12, 18], [12, 19], [14, 20], [18, 21], [19, 22], [21, 23], [1, 0], [2, 1], [3, 1], [4, 0], [5, 2], [6, 3], [7, 3], [8, 4], [9, 5], [10, 6], [11, 3], [12, 7], [13, 3], [14, 3], [15, 5], [16, 9], [17, 11], [18, 12], [19, 12], [20, 14], [21, 18], [22, 19], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getSnapshot", "code": "  public TransformSnapshot getSnapshot()\n  {\n    return new TransformSnapshotImpl(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "executeFromSnapshot", "code": "  public void executeFromSnapshot(TransformSnapshot ts)\n          throws TransformerException\n  {\n\n    ElemTemplateElement template = getMatchedTemplate();\n    int child = getMatchedNode();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resetToStylesheet", "code": "  public void resetToStylesheet(TransformSnapshot ts)\n  {\n    ((TransformSnapshotImpl) ts).apply(this);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "stopTransformation", "code": "  public void stopTransformation(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getShouldStripSpace", "code": "  public short getShouldStripSpace(int elementHandle, DTM dtm)\n  {\n\n    try\n    {\n      org.apache.xalan.templates.WhiteSpaceInfo info =\n        m_stylesheetRoot.getWhiteSpaceInfo(m_xcontext, elementHandle, dtm);\n\n      if (null == info)\n      {\n        return DTMWSFilter.INHERIT;\n      }\n      else\n      {\n\n        return info.getShouldStripSpace()\n               ? DTMWSFilter.STRIP : DTMWSFilter.NOTSTRIP;\n      }\n    }\n    catch (TransformerException se)\n    {\n      return DTMWSFilter.INHERIT;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [5, 9], [5, 10], [8, 11], [6, 12], [9, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 5], [10, 5], [11, 8], [12, 6], [13, 9], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "init", "code": "   public void init(ToXMLSAXHandler h,Transformer transformer, ContentHandler realHandler)\n   {\n      h.setTransformer(transformer);\n      h.setContentHandler(realHandler);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setSerializationHandler", "code": "   public void setSerializationHandler(SerializationHandler xoh)\n   {\n      m_serializationHandler = xoh;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "fireGenerateEvent", "code": "\tpublic void fireGenerateEvent(\n\t\tint eventType,\n\t\tchar[] ch,\n\t\tint start,\n\t\tint length) {\n\t\t\t\n\t\tGenerateEvent ge = new GenerateEvent(this, eventType, ch, start, length);\n\t\tm_traceManager.fireGenerateEvent(ge);\t\t\t\t\t", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "fireGenerateEvent", "code": "\tpublic void fireGenerateEvent(\n\t\tint eventType,\n\t\tString name,\n\t\tAttributes atts) {\n\t\t\t\n\t\tGenerateEvent ge = new GenerateEvent(this, eventType, name, atts);\n\t\tm_traceManager.fireGenerateEvent(ge);\t\t\t\t\t", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fireGenerateEvent", "code": "\tpublic void fireGenerateEvent(int eventType, String name, String data) {\n\t\tGenerateEvent ge = new GenerateEvent(this, eventType, name,data);\n\t\tm_traceManager.fireGenerateEvent(ge);\t\t\t\t", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fireGenerateEvent", "code": "\tpublic void fireGenerateEvent(int eventType, String data) {\n\t\tGenerateEvent ge = new GenerateEvent(this, eventType, data);\n\t\tm_traceManager.fireGenerateEvent(ge);\t\t", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "fireGenerateEvent", "code": "\tpublic void fireGenerateEvent(int eventType) {\n\t\tGenerateEvent ge = new GenerateEvent(this, eventType);\n\t\tm_traceManager.fireGenerateEvent(ge);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "hasTraceListeners", "code": "\tpublic boolean hasTraceListeners() {\n\t\treturn m_traceManager.hasTraceListeners();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TransformerImpl", "code": "  public TransformerImpl(StylesheetRoot stylesheet)\n  {\n    setStylesheet(stylesheet);\n    setXPathContext(new XPathContext(this));\n    getXPathContext().setNamespaceContext(stylesheet);\n    m_stackGuard = new StackGuard(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "camel-1.4-2273", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/language/JavaScriptExpression.java", "language": "java", "name": "org.apache.camel.model.language.JavaScriptExpression", "code": "@XmlRootElement(name = \"javaScript\")\npublic class JavaScriptExpression extends ExpressionType {\n    public JavaScriptExpression() {\n    }\n\n    public JavaScriptExpression(String expression) {\n        super(expression);\n    }\n\n    public String getLanguage() {\n        return \"js\";", "functions": [{"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return \"js\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JavaScriptExpression", "code": "    public JavaScriptExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "JavaScriptExpression", "code": "    public JavaScriptExpression(String expression) {\n        super(expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.3-4806", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/menu/MacrosProvider.java", "language": "java", "name": "org.gjt.sp.jedit.menu.MacrosProvider", "code": "public class MacrosProvider implements DynamicMenuProvider\n{\n\t//{{{ updateEveryTime() method\n\tpublic boolean updateEveryTime()\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ update() method\n\tpublic void update(JMenu menu)\n\t{\n\t\tVector macroVector = Macros.getMacroHierarchy();\n\n\t\tint count = menu.getMenuComponentCount();\n\n\t\tcreateMacrosMenu(menu,macroVector,0);\n\n\t\tif(count == menu.getMenuComponentCount())\n\t\t{\n\t\t\tJMenuItem mi = new JMenuItem(jEdit.getProperty(\n\t\t\t\t\"no-macros.label\"));\n\t\t\tmi.setEnabled(false);\n\t\t\tmenu.add(mi);\n\t\t}\n\t} //}}}\n\n\t//{{{ createMacrosMenu() method\n\tprivate void createMacrosMenu(JMenu menu, Vector vector, int start)\n\t{\n\t\tVector<JMenuItem> menuItems = new Vector<JMenuItem>();\n\n\t\tfor(int i = start; i < vector.size(); i++)\n\t\t{\n\t\t\tObject obj = vector.elementAt(i);\n\t\t\tif(obj instanceof String)\n\t\t\t{\n\t\t\t\tmenuItems.add(new EnhancedMenuItem(\n\t\t\t\t\tjEdit.getProperty(obj + \".label\"),\n\t\t\t\t\t(String)obj,jEdit.getActionContext()));\n\t\t\t}\n\t\t\telse if(obj instanceof Vector)\n\t\t\t{\n\t\t\t\tVector subvector = (Vector)obj;\n\t\t\t\tString name = (String)subvector.elementAt(0);\n\t\t\t\tJMenu submenu = new JMenu(name);\n\t\t\t\tcreateMacrosMenu(submenu,subvector,1);\n\t\t\t\tif(submenu.getMenuComponentCount() != 0)\n\t\t\t\t\tmenuItems.add(submenu);\n\t\t\t}\n\t\t}\n\n\t\tCollections.sort(menuItems, new MenuItemTextComparator());\n\t\tfor(int i = 0; i < menuItems.size(); i++)\n\t\t{\n\t\t\tmenu.add(menuItems.get(i));", "functions": [{"function_name": "updateEveryTime", "code": "\tpublic boolean updateEveryTime()\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "update", "code": "\tpublic void update(JMenu menu)\n\t{\n\t\tVector macroVector = Macros.getMacroHierarchy();\n\n\t\tint count = menu.getMenuComponentCount();\n\n\t\tcreateMacrosMenu(menu,macroVector,0);\n\n\t\tif(count == menu.getMenuComponentCount())\n\t\t{\n\t\t\tJMenuItem mi = new JMenuItem(jEdit.getProperty(\n\t\t\t\t\"no-macros.label\"));\n\t\t\tmi.setEnabled(false);\n\t\t\tmenu.add(mi);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [5, 8], [6, 9], [2, 10], [3, 11], [1, 12], [1, 13], [13, 14], [7, 15], [15, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 5], [9, 6], [10, 2], [11, 3], [12, 1], [13, 1], [14, 13], [15, 7], [16, 15], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "createMacrosMenu", "code": "\tprivate void createMacrosMenu(JMenu menu, Vector vector, int start)\n\t{\n\t\tVector<JMenuItem> menuItems = new Vector<JMenuItem>();\n\n\t\tfor(int i = start; i < vector.size(); i++)\n\t\t{\n\t\t\tObject obj = vector.elementAt(i);\n\t\t\tif(obj instanceof String)\n\t\t\t{\n\t\t\t\tmenuItems.add(new EnhancedMenuItem(\n\t\t\t\t\tjEdit.getProperty(obj + \".label\"),\n\t\t\t\t\t(String)obj,jEdit.getActionContext()));\n\t\t\t}\n\t\t\telse if(obj instanceof Vector)\n\t\t\t{\n\t\t\t\tVector subvector = (Vector)obj;\n\t\t\t\tString name = (String)subvector.elementAt(0);\n\t\t\t\tJMenu submenu = new JMenu(name);\n\t\t\t\tcreateMacrosMenu(submenu,subvector,1);\n\t\t\t\tif(submenu.getMenuComponentCount() != 0)\n\t\t\t\t\tmenuItems.add(submenu);\n\t\t\t}\n\t\t}\n\n\t\tCollections.sort(menuItems, new MenuItemTextComparator());\n\t\tfor(int i = 0; i < menuItems.size(); i++)\n\t\t{\n\t\t\tmenu.add(menuItems.get(i));", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [7, 10], [8, 11], [2, 12], [2, 13], [9, 14], [3, 15], [1, 16], [1, 17], [12, 18], [12, 19], [16, 20], [18, 21], [13, 22], [18, 23], [18, 24], [18, 25], [18, 26], [12, 27], [23, 28], [18, 29], [27, 30], [23, 31], [28, 32], [28, 33], [29, 34], [24, 35], [30, 36], [30, 37], [25, 38], [37, 39], [38, 40], [39, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 7], [11, 8], [12, 2], [13, 2], [14, 9], [15, 3], [16, 1], [17, 1], [18, 12], [19, 12], [20, 16], [21, 18], [22, 13], [23, 18], [24, 18], [25, 18], [26, 18], [27, 12], [28, 23], [29, 18], [30, 27], [31, 23], [32, 28], [33, 28], [34, 29], [35, 24], [36, 30], [37, 30], [38, 25], [39, 37], [40, 38], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}], "label": 0}
{"sample_id": "xalan-2.7-8020", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/ForwardPositionIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.ForwardPositionIterator", "code": "public final class ForwardPositionIterator extends DTMAxisIteratorBase {\n\n    private DTMAxisIterator _source;\n\n    public ForwardPositionIterator(DTMAxisIterator source) {\n\t_source = source;\n    }\n\n    public DTMAxisIterator cloneIterator() {\n\ttry {\n\t    final ForwardPositionIterator clone = \n\t\t(ForwardPositionIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;\n\t}\n    }\n\n    public int next() {\n\treturn returnNode(_source.next());\n    }\n\t\n    public DTMAxisIterator setStartNode(int node) {\n\t_source.setStartNode(node);\n\treturn this;\n    }\n\n    public DTMAxisIterator reset() {\n\t_source.reset();\n\treturn resetPosition();\n    }\n\n    public void setMark() {\n\t_source.setMark();\n    }\n\n    public void gotoMark() {\n\t_source.gotoMark();", "functions": [{"function_name": "cloneIterator", "code": "    public DTMAxisIterator cloneIterator() {\n\ttry {\n\t    final ForwardPositionIterator clone = \n\t\t(ForwardPositionIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "RETURN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [5, 9], [2, 10], [7, 11], [8, 12], [10, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 5], [10, 2], [11, 7], [12, 8], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "next", "code": "    public int next() {\n\treturn returnNode(_source.next());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(int node) {\n\t_source.setStartNode(node);\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n\t_source.reset();\n\treturn resetPosition();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_source.setMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_source.gotoMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ForwardPositionIterator", "code": "    public ForwardPositionIterator(DTMAxisIterator source) {\n\t_source = source;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.2-1924", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/language/XPathExpression.java", "language": "java", "name": "org.apache.camel.model.language.XPathExpression", "code": "@XmlRootElement(name = \"xpath\")\npublic class XPathExpression extends ExpressionType {\n    public XPathExpression() {\n    }\n\n    public XPathExpression(String expression) {\n        super(expression);\n    }\n\n    public String getLanguage() {\n        return \"xpath\";", "functions": [{"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return \"xpath\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "XPathExpression", "code": "    public XPathExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "XPathExpression", "code": "    public XPathExpression(String expression) {\n        super(expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.6-7409", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/runtime/StringValueHandler.java", "language": "java", "name": "org.apache.xalan.xsltc.runtime.StringValueHandler", "code": "public final class StringValueHandler extends EmptySerializer {\n\n    private StringBuffer _buffer = new StringBuffer();\n    private String _str = null;\n    private static final String EMPTY_STR = \"\";\n    private boolean m_escaping = false;\n    private int _nestedLevel = 0;\n\t\n    public void characters(char[] ch, int off, int len) \n\tthrows SAXException \n    {\n\tif (_nestedLevel > 0)\n\t    return;\n\t\n\tif (_str != null) {\n\t    _buffer.append(_str);\n\t    _str = null;\n\t}\n\t_buffer.append(ch, off, len);\n    }\n\n    public String getValue() {\n\tif (_buffer.length() != 0) {\n\t    String result = _buffer.toString();\n\t    _buffer.setLength(0);\n\t    return result;\n\t}\n\telse {\n\t    String result = _str;\n\t    _str = null;\n\t    return (result != null) ? result : EMPTY_STR;\n\t}\n    }\n\n    public void characters(String characters) throws SAXException {\n\tif (_nestedLevel > 0)\n\t    return;\n\n\tif (_str == null && _buffer.length() == 0) {\n\t    _str = characters;\n\t}\n\telse {\n\t    if (_str != null) {\n\t        _buffer.append(_str);\n\t        _str = null;\n\t    }\n\t    \n\t    _buffer.append(characters);\n\t}\n    }\n    \n    public void startElement(String qname) throws SAXException {\n        _nestedLevel++;\n    }\n\n    public void endElement(String qname) throws SAXException {\n        _nestedLevel--;\n    }\n\n    public boolean setEscaping(boolean bool) {\n        boolean oldEscaping = m_escaping;\n        m_escaping = bool;\n\n        return bool;\n    }\n\n    /**\n     * The value of a PI must not contain the substring \"?>\". Should\n     * that substring be present, replace it by \"? >\". \n     */\n    public String getValueOfPI() {\n\tfinal String value = getValue();\n\n\tif (value.indexOf(\"?>\") > 0) {\n\t    final int n = value.length(); \n\t    final StringBuffer valueOfPI = new StringBuffer();\n\n\t    for (int i = 0; i < n;) {\n\t\tfinal char ch = value.charAt(i++);\n\t\tif (ch == '?' && value.charAt(i) == '>') {\n\t\t    valueOfPI.append(\"? >\"); i++;\n\t\t}\n\t\telse {\n\t\t    valueOfPI.append(ch);\n\t\t}\n\t    } \n\t    return valueOfPI.toString();\n\t}\n\treturn value;", "functions": [{"function_name": "characters", "code": "    public void characters(char[] ch, int off, int len) \n\tthrows SAXException \n    {\n\tif (_nestedLevel > 0)\n\t    return;\n\t\n\tif (_str != null) {\n\t    _buffer.append(_str);\n\t    _str = null;\n\t}\n\t_buffer.append(ch, off, len);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [7, 10], [9, 11], [1, 12], [1, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 7], [11, 9], [12, 1], [13, 1], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getValue", "code": "    public String getValue() {\n\tif (_buffer.length() != 0) {\n\t    String result = _buffer.toString();\n\t    _buffer.setLength(0);\n\t    return result;\n\t}\n\telse {\n\t    String result = _str;\n\t    _str = null;\n\t    return (result != null) ? result : EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [3, 9], [1, 10], [1, 11], [9, 12], [10, 13], [11, 14], [6, 15], [12, 16], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 3], [10, 1], [11, 1], [12, 9], [13, 10], [14, 11], [15, 6], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "characters", "code": "    public void characters(String characters) throws SAXException {\n\tif (_nestedLevel > 0)\n\t    return;\n\n\tif (_str == null && _buffer.length() == 0) {\n\t    _str = characters;\n\t}\n\telse {\n\t    if (_str != null) {\n\t        _buffer.append(_str);\n\t        _str = null;\n\t    }\n\t    \n\t    _buffer.append(characters);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [4, 8], [4, 9], [6, 10], [1, 11], [7, 12], [1, 13], [8, 14], [8, 15], [9, 16], [12, 17], [7, 18], [7, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 4], [9, 4], [10, 6], [11, 1], [12, 7], [13, 1], [14, 8], [15, 8], [16, 9], [17, 12], [18, 7], [19, 7], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "startElement", "code": "    public void startElement(String qname) throws SAXException {\n        _nestedLevel++;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endElement", "code": "    public void endElement(String qname) throws SAXException {\n        _nestedLevel--;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEscaping", "code": "    public boolean setEscaping(boolean bool) {\n        boolean oldEscaping = m_escaping;\n        m_escaping = bool;\n\n        return bool;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getValueOfPI", "code": "    public String getValueOfPI() {\n\tfinal String value = getValue();\n\n\tif (value.indexOf(\"?>\") > 0) {\n\t    final int n = value.length(); \n\t    final StringBuffer valueOfPI = new StringBuffer();\n\n\t    for (int i = 0; i < n;) {\n\t\tfinal char ch = value.charAt(i++);\n\t\tif (ch == '?' && value.charAt(i) == '>') {\n\t\t    valueOfPI.append(\"? >\"); i++;\n\t\t}\n\t\telse {\n\t\t    valueOfPI.append(ch);\n\t\t}\n\t    } \n\t    return valueOfPI.toString();\n\t}\n\treturn value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [4, 9], [4, 10], [3, 11], [5, 12], [6, 13], [10, 14], [6, 15], [6, 16], [7, 17], [8, 18], [15, 19], [6, 20], [19, 21], [19, 22], [16, 23], [15, 24], [15, 25], [21, 26], [21, 27], [22, 28], [25, 29], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 4], [10, 4], [11, 3], [12, 5], [13, 6], [14, 10], [15, 6], [16, 6], [17, 7], [18, 8], [19, 15], [20, 6], [21, 19], [22, 19], [23, 16], [24, 15], [25, 15], [26, 21], [27, 21], [28, 22], [29, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}], "label": 0}
{"sample_id": "xalan-2.7-8306", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/ref/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java", "language": "java", "name": "org.apache.xml.dtm.ref.dom2dtm.DOM2DTMdefaultNamespaceDeclarationNode", "code": "public class DOM2DTMdefaultNamespaceDeclarationNode implements Attr,TypeInfo\n{\n  final String NOT_SUPPORTED_ERR=\"Unsupported operation on pseudonode\";\n  \n  Element pseudoparent;\n  String prefix,uri,nodename;\n  int handle;\n  DOM2DTMdefaultNamespaceDeclarationNode(Element pseudoparent,String prefix,String uri,int handle)\n  {\n    this.pseudoparent=pseudoparent;\n    this.prefix=prefix;\n    this.uri=uri;\n    this.handle=handle;\n    this.nodename=\"xmlns:\"+prefix;\n  }\n  public String getNodeName() {return nodename;}\n  public String getName() {return nodename;}\n  public String getPrefix() {return prefix;}\n  public String getLocalName() {return prefix;}\n  public String getNodeValue() {return uri;}\n  public String getValue() {return uri;}\n  public Element getOwnerElement() {return pseudoparent;}\n  \n  public boolean isSupported(String feature, String version) {return false;}\n  public boolean hasChildNodes() {return false;}\n  public boolean hasAttributes() {return false;}\n  public Node getParentNode() {return null;}\n  public Node getFirstChild() {return null;}\n  public Node getLastChild() {return null;}\n  public Node getPreviousSibling() {return null;}\n  public Node getNextSibling() {return null;}\n  public boolean getSpecified() {return false;}\n  public void normalize() {return;}\n  public NodeList getChildNodes() {return null;}\n  public NamedNodeMap getAttributes() {return null;}\n  public short getNodeType() {return Node.ATTRIBUTE_NODE;}\n  public void setNodeValue(String value) {throw new DTMException(NOT_SUPPORTED_ERR);}\n  public void setValue(String value) {throw new DTMException(NOT_SUPPORTED_ERR);}\n  public void setPrefix(String value) {throw new DTMException(NOT_SUPPORTED_ERR);}\n  public Node insertBefore(Node a, Node b) {throw new DTMException(NOT_SUPPORTED_ERR);}\n  public Node replaceChild(Node a, Node b) {throw new DTMException(NOT_SUPPORTED_ERR);}\n  public Node appendChild(Node a) {throw new DTMException(NOT_SUPPORTED_ERR);}\n  public Node removeChild(Node a) {throw new DTMException(NOT_SUPPORTED_ERR);}\n  public Document getOwnerDocument() {return pseudoparent.getOwnerDocument();}\n  public Node cloneNode(boolean deep) {throw new DTMException(NOT_SUPPORTED_ERR);}\n\t\n    /** Non-DOM method, part of the temporary kluge\n     * %REVIEW% This would be a pruning problem, but since it will always be\n     * added to the root element and we prune on elements, we shouldn't have \n     * to worry.\n     */\n    public int getHandleOfNode()\t\t\n    {\n        return handle;\n    }\n\n\n    /**\n     * @see org.w3c.dom.TypeInfo#getTypeName()\n     */\n    public String getTypeName() {return null; }\n     \n    /**\n     * @see org.w3c.dom.TypeInfo#getTypeNamespace()\n     */\n    public String getTypeNamespace() { return null;}\n    \n    /**\n     * @see or.gw3c.dom.TypeInfo#isDerivedFrom(String,String,int)\n     */\n    public boolean isDerivedFrom( String ns, String localName, int derivationMethod ) {\n        return false;\n    }\n\n    public TypeInfo getSchemaTypeInfo() { return this; }\n    \n    public boolean isId( ) { return false; }\n\n    /**\n     * Associate an object to a key on this node. The object can later be\n     * retrieved from this node by calling <code>getUserData</code> with the\n     * same key.\n     * @param key The key to associate the object to.\n     * @param data The object to associate to the given key, or\n     *   <code>null</code> to remove any existing association to that key.\n     * @param handler The handler to associate to that key, or\n     *   <code>null</code>.\n     * @return Returns the <code>DOMObject</code> previously associated to\n     *   the given key on this node, or <code>null</code> if there was none.\n     * @since DOM Level 3\n     */\n    public Object setUserData(String key,\n                              Object data,\n                              UserDataHandler handler) {\n        return getOwnerDocument().setUserData( key, data, handler);\n    }\n\n    /**\n     * Retrieves the object associated to a key on a this node. The object\n     * must first have been set to this node by calling\n     * <code>setUserData</code> with the same key.\n     * @param key The key the object is associated to.\n     * @return Returns the <code>DOMObject</code> associated to the given key\n     *   on this node, or <code>null</code> if there was none.\n     * @since DOM Level 3\n     */\n    public Object getUserData(String key) {\n        return getOwnerDocument().getUserData( key);\n    } \n\n    /**\n     *  This method returns a specialized object which implements the\n     * specialized APIs of the specified feature and version. The\n     * specialized object may also be obtained by using binding-specific\n     * casting methods but is not necessarily expected to, as discussed in Mixed DOM implementations.\n     * @param feature The name of the feature requested (case-insensitive).\n     * @param version  This is the version number of the feature to test. If\n     *   the version is <code>null</code> or the empty string, supporting\n     *   any version of the feature will cause the method to return an\n     *   object that supports at least one version of the feature.\n     * @return  Returns an object which implements the specialized APIs of\n     *   the specified feature and version, if any, or <code>null</code> if\n     *   there is no object which implements interfaces associated with that\n     *   feature. If the <code>DOMObject</code> returned by this method\n     *   implements the <code>Node</code> interface, it must delegate to the\n     *   primary core <code>Node</code> and not return results inconsistent\n     *   with the primary core <code>Node</code> such as attributes,\n     *   childNodes, etc.\n     * @since DOM Level 3\n     */\n    public Object getFeature(String feature, String version) {\n        return isSupported(feature, version) ? this : null;\n    }\n\n    /**\n     * Tests whether two nodes are equal.\n     * <br>This method tests for equality of nodes, not sameness (i.e.,\n     * whether the two nodes are references to the same object) which can be\n     * tested with <code>Node.isSameNode</code>. All nodes that are the same\n     * will also be equal, though the reverse may not be true.\n     * <br>Two nodes are equal if and only if the following conditions are\n     * satisfied: The two nodes are of the same type.The following string\n     * attributes are equal: <code>nodeName</code>, <code>localName</code>,\n     * <code>namespaceURI</code>, <code>prefix</code>, <code>nodeValue</code>\n     * , <code>baseURI</code>. This is: they are both <code>null</code>, or\n     * they have the same length and are character for character identical.\n     * The <code>attributes</code> <code>NamedNodeMaps</code> are equal.\n     * This is: they are both <code>null</code>, or they have the same\n     * length and for each node that exists in one map there is a node that\n     * exists in the other map and is equal, although not necessarily at the\n     * same index.The <code>childNodes</code> <code>NodeLists</code> are\n     * equal. This is: they are both <code>null</code>, or they have the\n     * same length and contain equal nodes at the same index. This is true\n     * for <code>Attr</code> nodes as for any other type of node. Note that\n     * normalization can affect equality; to avoid this, nodes should be\n     * normalized before being compared.\n     * <br>For two <code>DocumentType</code> nodes to be equal, the following\n     * conditions must also be satisfied: The following string attributes\n     * are equal: <code>publicId</code>, <code>systemId</code>,\n     * <code>internalSubset</code>.The <code>entities</code>\n     * <code>NamedNodeMaps</code> are equal.The <code>notations</code>\n     * <code>NamedNodeMaps</code> are equal.\n     * <br>On the other hand, the following do not affect equality: the\n     * <code>ownerDocument</code> attribute, the <code>specified</code>\n     * attribute for <code>Attr</code> nodes, the\n     * <code>isWhitespaceInElementContent</code> attribute for\n     * <code>Text</code> nodes, as well as any user data or event listeners\n     * registered on the nodes.\n     * @param arg The node to compare equality with.\n     * @param deep If <code>true</code>, recursively compare the subtrees; if\n     *   <code>false</code>, compare only the nodes themselves (and its\n     *   attributes, if it is an <code>Element</code>).\n     * @return If the nodes, and possibly subtrees are equal,\n     *   <code>true</code> otherwise <code>false</code>.\n     * @since DOM Level 3\n     */\n    public boolean isEqualNode(Node arg) {\n        if (arg == this) {\n            return true;\n        }\n        if (arg.getNodeType() != getNodeType()) {\n            return false;\n        }\n        if (getNodeName() == null) {\n            if (arg.getNodeName() != null) {\n                return false;\n            }\n        }\n        else if (!getNodeName().equals(arg.getNodeName())) {\n            return false;\n        }\n\n        if (getLocalName() == null) {\n            if (arg.getLocalName() != null) {\n                return false;\n            }\n        }\n        else if (!getLocalName().equals(arg.getLocalName())) {\n            return false;\n        }\n\n        if (getNamespaceURI() == null) {\n            if (arg.getNamespaceURI() != null) {\n                return false;\n            }\n        }\n        else if (!getNamespaceURI().equals(arg.getNamespaceURI())) {\n            return false;\n        }\n\n        if (getPrefix() == null) {\n            if (arg.getPrefix() != null) {\n                return false;\n            }\n        }\n        else if (!getPrefix().equals(arg.getPrefix())) {\n            return false;\n        }\n\n        if (getNodeValue() == null) {\n            if (arg.getNodeValue() != null) {\n                return false;\n            }\n        }\n        else if (!getNodeValue().equals(arg.getNodeValue())) {\n            return false;\n        }\n    /*\n        if (getBaseURI() == null) {\n            if (((NodeImpl) arg).getBaseURI() != null) {\n                return false;\n            }\n        }\n        else if (!getBaseURI().equals(((NodeImpl) arg).getBaseURI())) {\n            return false;\n        }\n*/\n\n             return true;\n    }\n\n    /**\n     * DOM Level 3 - Experimental:\n     * Look up the namespace URI associated to the given prefix, starting from this node.\n     * Use lookupNamespaceURI(null) to lookup the default namespace\n     *\n     * @param namespaceURI\n     * @return th URI for the namespace\n     * @since DOM Level 3\n     */\n    public String lookupNamespaceURI(String specifiedPrefix) {\n        short type = this.getNodeType();\n        switch (type) {\n        case Node.ELEMENT_NODE : {\n\n                String namespace = this.getNamespaceURI();\n                String prefix = this.getPrefix();\n                if (namespace !=null) {\n                    if (specifiedPrefix== null && prefix==specifiedPrefix) {\n                        return namespace;\n                    } else if (prefix != null && prefix.equals(specifiedPrefix)) {\n                        return namespace;\n                    }\n                }\n                if (this.hasAttributes()) {\n                    NamedNodeMap map = this.getAttributes();\n                    int length = map.getLength();\n                    for (int i=0;i<length;i++) {\n                        Node attr = map.item(i);\n                        String attrPrefix = attr.getPrefix();\n                        String value = attr.getNodeValue();\n                        namespace = attr.getNamespaceURI();\n                            if (specifiedPrefix == null &&\n                                attr.getNodeName().equals(\"xmlns\")) {\n                                return value;\n                            } else if (attrPrefix !=null &&\n                                       attrPrefix.equals(\"xmlns\") &&\n                                       attr.getLocalName().equals(specifiedPrefix)) {\n                                return value;\n                            }\n                        \n                    }\n                }\n\t\t/*\n                NodeImpl ancestor = (NodeImpl)getElementAncestor(this);\n                if (ancestor != null) {\n                    return ancestor.lookupNamespaceURI(specifiedPrefix);\n                }\n\t\t*/\n\n                return null;\n\n\n            }\n/*\n        case Node.DOCUMENT_NODE : {\n                return((NodeImpl)((Document)this).getDocumentElement()).lookupNamespaceURI(specifiedPrefix) ;\n            }\n*/\n        case Node.ENTITY_NODE :\n        case Node.NOTATION_NODE:\n        case Node.DOCUMENT_FRAGMENT_NODE:\n        case Node.DOCUMENT_TYPE_NODE:\n            return null;\n        case Node.ATTRIBUTE_NODE:{\n                if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) {\n                    return getOwnerElement().lookupNamespaceURI(specifiedPrefix);\n\n                }\n                return null;\n            }\n        default:{\n\t   /*\n                NodeImpl ancestor = (NodeImpl)getElementAncestor(this);\n                if (ancestor != null) {\n                    return ancestor.lookupNamespaceURI(specifiedPrefix);\n                }\n             */\n                return null;\n            }\n\n        }\n    }\n    \n    /**\n     *  DOM Level 3: Experimental\n     *  This method checks if the specified <code>namespaceURI</code> is the\n     *  default namespace or not.\n     *  @param namespaceURI The namespace URI to look for.\n     *  @return  <code>true</code> if the specified <code>namespaceURI</code>\n     *   is the default namespace, <code>false</code> otherwise.\n     * @since DOM Level 3\n     */\n    public boolean isDefaultNamespace(String namespaceURI){\n       /*\n        short type = this.getNodeType();\n        switch (type) {\n        case Node.ELEMENT_NODE: {\n            String namespace = this.getNamespaceURI();\n            String prefix = this.getPrefix();\n\n            if (prefix == null || prefix.length() == 0) {\n                if (namespaceURI == null) {\n                    return (namespace == namespaceURI);\n                }\n                return namespaceURI.equals(namespace);\n            }\n            if (this.hasAttributes()) {\n                ElementImpl elem = (ElementImpl)this;\n                if (attr != null) {\n                    String value = attr.getNodeValue();\n                    if (namespaceURI == null) {\n                        return (namespace == value);\n                    }\n                    return namespaceURI.equals(value);\n                }\n            }\n\n            NodeImpl ancestor = (NodeImpl)getElementAncestor(this);\n            if (ancestor != null) {\n                return ancestor.isDefaultNamespace(namespaceURI);\n            }\n            return false;\n        }\n        case Node.DOCUMENT_NODE:{\n                return((NodeImpl)((Document)this).getDocumentElement()).isDefaultNamespace(namespaceURI);\n            }\n\n        case Node.ENTITY_NODE :\n          case Node.NOTATION_NODE:\n        case Node.DOCUMENT_FRAGMENT_NODE:\n        case Node.DOCUMENT_TYPE_NODE:\n            return false;\n        case Node.ATTRIBUTE_NODE:{\n                if (this.ownerNode.getNodeType() == Node.ELEMENT_NODE) {\n                    return ownerNode.isDefaultNamespace(namespaceURI);\n\n                }\n                return false;\n            }\n        default:{  \n                NodeImpl ancestor = (NodeImpl)getElementAncestor(this);\n                if (ancestor != null) {\n                    return ancestor.isDefaultNamespace(namespaceURI);\n                }\n                return false;\n            }\n\n        }\n*/\n        return false;\n\n\n    }\n\n    /**\n     *\n     * DOM Level 3 - Experimental:\n     * Look up the prefix associated to the given namespace URI, starting from this node.\n     *\n     * @param namespaceURI\n     * @return the prefix for the namespace\n     */\n    public String lookupPrefix(String namespaceURI){\n\n        if (namespaceURI == null) {\n            return null;\n        }\n\n        short type = this.getNodeType();\n\n        switch (type) {\n/*\n        case Node.ELEMENT_NODE: {\n\n                return lookupNamespacePrefix(namespaceURI, (ElementImpl)this);\n            }\n\n        case Node.DOCUMENT_NODE:{\n                return((NodeImpl)((Document)this).getDocumentElement()).lookupPrefix(namespaceURI);\n            }\n*/\n        case Node.ENTITY_NODE :\n        case Node.NOTATION_NODE:\n        case Node.DOCUMENT_FRAGMENT_NODE:\n        case Node.DOCUMENT_TYPE_NODE:\n            return null;\n        case Node.ATTRIBUTE_NODE:{\n                if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) {\n                    return getOwnerElement().lookupPrefix(namespaceURI);\n\n                }\n                return null;\n            }\n        default:{ \n/*\n                NodeImpl ancestor = (NodeImpl)getElementAncestor(this);\n                if (ancestor != null) {\n                    return ancestor.lookupPrefix(namespaceURI);\n                }\n*/\n                return null;\n            }\n         }\n    }\n\n    /**\n     * Returns whether this node is the same node as the given one.\n     * <br>This method provides a way to determine whether two\n     * <code>Node</code> references returned by the implementation reference\n     * the same object. When two <code>Node</code> references are references\n     * to the same object, even if through a proxy, the references may be\n     * used completely interchangably, such that all attributes have the\n     * same values and calling the same DOM method on either reference\n     * always has exactly the same effect.\n     * @param other The node to test against.\n     * @return Returns <code>true</code> if the nodes are the same,\n     *   <code>false</code> otherwise.\n     * @since DOM Level 3\n     */\n    public boolean isSameNode(Node other) {\n        return this == other;\n    }\n\n    /**\n     * This attribute returns the text content of this node and its\n     * descendants. When it is defined to be null, setting it has no effect.\n     * When set, any possible children this node may have are removed and\n     * replaced by a single <code>Text</code> node containing the string\n     * this attribute is set to. On getting, no serialization is performed,\n     * the returned string does not contain any markup. No whitespace\n     * normalization is performed, the returned string does not contain the\n     * element content whitespaces . Similarly, on setting, no parsing is\n     * performed either, the input string is taken as pure textual content.\n     * <br>The string returned is made of the text content of this node\n     * depending on its type, as defined below:\n     * <table border='1'>\n     * <tr>\n     * <th>Node type</th>\n     * <th>Content</th>\n     * </tr>\n     * <tr>\n     * <td valign='top' rowspan='1' colspan='1'>\n     * ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE,\n     * DOCUMENT_FRAGMENT_NODE</td>\n     * <td valign='top' rowspan='1' colspan='1'>concatenation of the <code>textContent</code>\n     * attribute value of every child node, excluding COMMENT_NODE and\n     * PROCESSING_INSTRUCTION_NODE nodes</td>\n     * </tr>\n     * <tr>\n     * <td valign='top' rowspan='1' colspan='1'>ATTRIBUTE_NODE, TEXT_NODE,\n     * CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE</td>\n     * <td valign='top' rowspan='1' colspan='1'>\n     * <code>nodeValue</code></td>\n     * </tr>\n     * <tr>\n     * <td valign='top' rowspan='1' colspan='1'>DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE</td>\n     * <td valign='top' rowspan='1' colspan='1'>\n     * null</td>\n     * </tr>\n     * </table>\n     * @exception DOMException\n     *   NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.\n     * @exception DOMException\n     *   DOMSTRING_SIZE_ERR: Raised when it would return more characters than\n     *   fit in a <code>DOMString</code> variable on the implementation\n     *   platform.\n     * @since DOM Level 3\n     */\n    public void setTextContent(String textContent)\n        throws DOMException {\n        setNodeValue(textContent);\n    }\n    \n    /**\n     * This attribute returns the text content of this node and its\n     * descendants. When it is defined to be null, setting it has no effect.\n     * When set, any possible children this node may have are removed and\n     * replaced by a single <code>Text</code> node containing the string\n     * this attribute is set to. On getting, no serialization is performed,\n     * the returned string does not contain any markup. No whitespace\n     * normalization is performed, the returned string does not contain the\n     * element content whitespaces . Similarly, on setting, no parsing is\n     * performed either, the input string is taken as pure textual content.\n     * <br>The string returned is made of the text content of this node\n     * depending on its type, as defined below:\n     * <table border='1'>\n     * <tr>\n     * <th>Node type</th>\n     * <th>Content</th>\n     * </tr>\n     * <tr>\n     * <td valign='top' rowspan='1' colspan='1'>\n     * ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE,\n     * DOCUMENT_FRAGMENT_NODE</td>\n     * <td valign='top' rowspan='1' colspan='1'>concatenation of the <code>textContent</code>\n     * attribute value of every child node, excluding COMMENT_NODE and\n     * PROCESSING_INSTRUCTION_NODE nodes</td>\n     * </tr>\n     * <tr>\n     * <td valign='top' rowspan='1' colspan='1'>ATTRIBUTE_NODE, TEXT_NODE,\n     * CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE</td>\n     * <td valign='top' rowspan='1' colspan='1'>\n     * <code>nodeValue</code></td>\n     * </tr>\n     * <tr>\n     * <td valign='top' rowspan='1' colspan='1'>DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE</td>\n     * <td valign='top' rowspan='1' colspan='1'>\n     * null</td>\n     * </tr>\n     * </table>\n     * @exception DOMException\n     *   NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.\n     * @exception DOMException\n     *   DOMSTRING_SIZE_ERR: Raised when it would return more characters than\n     *   fit in a <code>DOMString</code> variable on the implementation\n     *   platform.\n     * @since DOM Level 3\n     */\n    public String getTextContent() throws DOMException {\n    }\n\n    /**\n     * Compares a node with this node with regard to their position in the\n     * document.\n     * @param other The node to compare against this node.\n     * @return Returns how the given node is positioned relatively to this\n     *   node.\n     * @since DOM Level 3\n     */\n    public short compareDocumentPosition(Node other) throws DOMException {\n        return 0;\n    }\n\n    /**\n     * The absolute base URI of this node or <code>null</code> if undefined.\n     * This value is computed according to . However, when the\n     * <code>Document</code> supports the feature \"HTML\" , the base URI is\n     * computed using first the value of the href attribute of the HTML BASE\n     * element if any, and the value of the <code>documentURI</code>\n     * attribute from the <code>Document</code> interface otherwise.\n     * <br> When the node is an <code>Element</code>, a <code>Document</code>\n     * or a a <code>ProcessingInstruction</code>, this attribute represents\n     * the properties [base URI] defined in . When the node is a\n     * <code>Notation</code>, an <code>Entity</code>, or an\n     * <code>EntityReference</code>, this attribute represents the\n     * properties [declaration base URI] in the . How will this be affected\n     * by resolution of relative namespace URIs issue?It's not.Should this\n     * only be on Document, Element, ProcessingInstruction, Entity, and\n     * Notation nodes, according to the infoset? If not, what is it equal to\n     * on other nodes? Null? An empty string? I think it should be the\n     * parent's.No.Should this be read-only and computed or and actual\n     * read-write attribute?Read-only and computed (F2F 19 Jun 2000 and\n     * teleconference 30 May 2001).If the base HTML element is not yet\n     * attached to a document, does the insert change the Document.baseURI?\n     * Yes. (F2F 26 Sep 2001)\n     * @since DOM Level 3\n     */\n    public String getBaseURI() {\n        return null;", "functions": [{"function_name": "getNodeName", "code": "  public String getNodeName() {return nodename;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "  public String getName() {return nodename;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPrefix", "code": "  public String getPrefix() {return prefix;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalName", "code": "  public String getLocalName() {return prefix;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeValue", "code": "  public String getNodeValue() {return uri;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getValue", "code": "  public String getValue() {return uri;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOwnerElement", "code": "  public Element getOwnerElement() {return pseudoparent;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSupported", "code": "  public boolean isSupported(String feature, String version) {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "hasChildNodes", "code": "  public boolean hasChildNodes() {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasAttributes", "code": "  public boolean hasAttributes() {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParentNode", "code": "  public Node getParentNode() {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstChild", "code": "  public Node getFirstChild() {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLastChild", "code": "  public Node getLastChild() {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPreviousSibling", "code": "  public Node getPreviousSibling() {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNextSibling", "code": "  public Node getNextSibling() {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSpecified", "code": "  public boolean getSpecified() {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "normalize", "code": "  public void normalize() {return;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getChildNodes", "code": "  public NodeList getChildNodes() {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAttributes", "code": "  public NamedNodeMap getAttributes() {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNodeType", "code": "  public short getNodeType() {return Node.ATTRIBUTE_NODE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNodeValue", "code": "  public void setNodeValue(String value) {throw new DTMException(NOT_SUPPORTED_ERR);}", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setValue", "code": "  public void setValue(String value) {throw new DTMException(NOT_SUPPORTED_ERR);}", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setPrefix", "code": "  public void setPrefix(String value) {throw new DTMException(NOT_SUPPORTED_ERR);}", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "insertBefore", "code": "  public Node insertBefore(Node a, Node b) {throw new DTMException(NOT_SUPPORTED_ERR);}", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "replaceChild", "code": "  public Node replaceChild(Node a, Node b) {throw new DTMException(NOT_SUPPORTED_ERR);}", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "appendChild", "code": "  public Node appendChild(Node a) {throw new DTMException(NOT_SUPPORTED_ERR);}", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeChild", "code": "  public Node removeChild(Node a) {throw new DTMException(NOT_SUPPORTED_ERR);}", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getOwnerDocument", "code": "  public Document getOwnerDocument() {return pseudoparent.getOwnerDocument();}", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "cloneNode", "code": "  public Node cloneNode(boolean deep) {throw new DTMException(NOT_SUPPORTED_ERR);}", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getHandleOfNode", "code": "    public int getHandleOfNode()\t\t\n    {\n        return handle;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeName", "code": "    public String getTypeName() {return null; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTypeNamespace", "code": "    public String getTypeNamespace() { return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDerivedFrom", "code": "    public boolean isDerivedFrom( String ns, String localName, int derivationMethod ) {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSchemaTypeInfo", "code": "    public TypeInfo getSchemaTypeInfo() { return this; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isId", "code": "    public boolean isId( ) { return false; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUserData", "code": "    public Object setUserData(String key,\n                              Object data,\n                              UserDataHandler handler) {\n        return getOwnerDocument().setUserData( key, data, handler);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getUserData", "code": "    public Object getUserData(String key) {\n        return getOwnerDocument().getUserData( key);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFeature", "code": "    public Object getFeature(String feature, String version) {\n        return isSupported(feature, version) ? this : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isEqualNode", "code": "    public boolean isEqualNode(Node arg) {\n        if (arg == this) {\n            return true;\n        }\n        if (arg.getNodeType() != getNodeType()) {\n            return false;\n        }\n        if (getNodeName() == null) {\n            if (arg.getNodeName() != null) {\n                return false;\n            }\n        }\n        else if (!getNodeName().equals(arg.getNodeName())) {\n            return false;\n        }\n\n        if (getLocalName() == null) {\n            if (arg.getLocalName() != null) {\n                return false;\n            }\n        }\n        else if (!getLocalName().equals(arg.getLocalName())) {\n            return false;\n        }\n\n        if (getNamespaceURI() == null) {\n            if (arg.getNamespaceURI() != null) {\n                return false;\n            }\n        }\n        else if (!getNamespaceURI().equals(arg.getNamespaceURI())) {\n            return false;\n        }\n\n        if (getPrefix() == null) {\n            if (arg.getPrefix() != null) {\n                return false;\n            }\n        }\n        else if (!getPrefix().equals(arg.getPrefix())) {\n            return false;\n        }\n\n        if (getNodeValue() == null) {\n            if (arg.getNodeValue() != null) {\n                return false;\n            }\n        }\n        else if (!getNodeValue().equals(arg.getNodeValue())) {\n            return false;\n        }\n    /*\n        if (getBaseURI() == null) {\n            if (((NodeImpl) arg).getBaseURI() != null) {\n                return false;\n            }\n        }\n        else if (!getBaseURI().equals(((NodeImpl) arg).getBaseURI())) {\n            return false;\n        }\n*/\n\n             return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "CALL", "RETURN", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [8, 22], [11, 23], [2, 24], [12, 25], [12, 26], [13, 27], [3, 28], [14, 29], [14, 30], [15, 31], [4, 32], [16, 33], [16, 34], [17, 35], [5, 36], [18, 37], [18, 38], [19, 39], [6, 40], [20, 41], [20, 42], [7, 43], [21, 44], [21, 45], [8, 46], [11, 47], [23, 48], [24, 49], [13, 50], [27, 51], [28, 52], [15, 53], [31, 54], [32, 55], [17, 56], [35, 57], [36, 58], [19, 59], [39, 60], [40, 61], [43, 62], [46, 63], [47, 64], [48, 65], [24, 66], [49, 67], [49, 68], [50, 69], [51, 70], [28, 71], [52, 72], [52, 73], [53, 74], [54, 75], [32, 76], [55, 77], [55, 78], [56, 79], [57, 80], [36, 81], [58, 82], [58, 83], [59, 84], [60, 85], [40, 86], [61, 87], [61, 88], [66, 89], [71, 90], [76, 91], [81, 92], [86, 93], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 8], [23, 11], [24, 2], [25, 12], [26, 12], [27, 13], [28, 3], [29, 14], [30, 14], [31, 15], [32, 4], [33, 16], [34, 16], [35, 17], [36, 5], [37, 18], [38, 18], [39, 19], [40, 6], [41, 20], [42, 20], [43, 7], [44, 21], [45, 21], [46, 8], [47, 11], [48, 23], [49, 24], [50, 13], [51, 27], [52, 28], [53, 15], [54, 31], [55, 32], [56, 17], [57, 35], [58, 36], [59, 19], [60, 39], [61, 40], [62, 43], [63, 46], [64, 47], [65, 48], [66, 24], [67, 49], [68, 49], [69, 50], [70, 51], [71, 28], [72, 52], [73, 52], [74, 53], [75, 54], [76, 32], [77, 55], [78, 55], [79, 56], [80, 57], [81, 36], [82, 58], [83, 58], [84, 59], [85, 60], [86, 40], [87, 61], [88, 61], [89, 66], [90, 71], [91, 76], [92, 81], [93, 86], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93]]}, {"function_name": "lookupNamespaceURI", "code": "    public String lookupNamespaceURI(String specifiedPrefix) {\n        short type = this.getNodeType();\n        switch (type) {\n        case Node.ELEMENT_NODE : {\n\n                String namespace = this.getNamespaceURI();\n                String prefix = this.getPrefix();\n                if (namespace !=null) {\n                    if (specifiedPrefix== null && prefix==specifiedPrefix) {\n                        return namespace;\n                    } else if (prefix != null && prefix.equals(specifiedPrefix)) {\n                        return namespace;\n                    }\n                }\n                if (this.hasAttributes()) {\n                    NamedNodeMap map = this.getAttributes();\n                    int length = map.getLength();\n                    for (int i=0;i<length;i++) {\n                        Node attr = map.item(i);\n                        String attrPrefix = attr.getPrefix();\n                        String value = attr.getNodeValue();\n                        namespace = attr.getNamespaceURI();\n                            if (specifiedPrefix == null &&\n                                attr.getNodeName().equals(\"xmlns\")) {\n                                return value;\n                            } else if (attrPrefix !=null &&\n                                       attrPrefix.equals(\"xmlns\") &&\n                                       attr.getLocalName().equals(specifiedPrefix)) {\n                                return value;\n                            }\n                        \n                    }\n                }\n\t\t/*\n                NodeImpl ancestor = (NodeImpl)getElementAncestor(this);\n                if (ancestor != null) {\n                    return ancestor.lookupNamespaceURI(specifiedPrefix);\n                }\n\t\t*/\n\n                return null;\n\n\n            }\n/*\n        case Node.DOCUMENT_NODE : {\n                return((NodeImpl)((Document)this).getDocumentElement()).lookupNamespaceURI(specifiedPrefix) ;\n            }\n*/\n        case Node.ENTITY_NODE :\n        case Node.NOTATION_NODE:\n        case Node.DOCUMENT_FRAGMENT_NODE:\n        case Node.DOCUMENT_TYPE_NODE:\n            return null;\n        case Node.ATTRIBUTE_NODE:{\n                if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) {\n                    return getOwnerElement().lookupNamespaceURI(specifiedPrefix);\n\n                }\n                return null;\n            }\n        default:{\n\t   /*\n                NodeImpl ancestor = (NodeImpl)getElementAncestor(this);\n                if (ancestor != null) {\n                    return ancestor.lookupNamespaceURI(specifiedPrefix);\n                }\n             */\n                return null;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "RETURN", "RETURN", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [5, 15], [6, 16], [7, 17], [9, 18], [11, 19], [7, 20], [10, 21], [10, 22], [10, 23], [10, 24], [11, 25], [19, 26], [20, 27], [17, 28], [17, 29], [21, 30], [25, 31], [25, 32], [12, 33], [13, 34], [27, 35], [21, 36], [21, 37], [21, 38], [21, 39], [22, 40], [31, 41], [25, 42], [32, 43], [32, 44], [36, 45], [36, 46], [21, 47], [21, 48], [23, 49], [31, 50], [41, 51], [41, 52], [44, 53], [45, 54], [36, 55], [46, 56], [46, 57], [47, 58], [37, 59], [38, 60], [39, 61], [52, 62], [45, 63], [54, 64], [54, 65], [56, 66], [57, 67], [64, 68], [65, 69], [65, 70], [66, 71], [69, 72], [70, 73], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 5], [16, 6], [17, 7], [18, 9], [19, 11], [20, 7], [21, 10], [22, 10], [23, 10], [24, 10], [25, 11], [26, 19], [27, 20], [28, 17], [29, 17], [30, 21], [31, 25], [32, 25], [33, 12], [34, 13], [35, 27], [36, 21], [37, 21], [38, 21], [39, 21], [40, 22], [41, 31], [42, 25], [43, 32], [44, 32], [45, 36], [46, 36], [47, 21], [48, 21], [49, 23], [50, 31], [51, 41], [52, 41], [53, 44], [54, 45], [55, 36], [56, 46], [57, 46], [58, 47], [59, 37], [60, 38], [61, 39], [62, 52], [63, 45], [64, 54], [65, 54], [66, 56], [67, 57], [68, 64], [69, 65], [70, 65], [71, 66], [72, 69], [73, 70], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "isDefaultNamespace", "code": "    public boolean isDefaultNamespace(String namespaceURI){\n       /*\n        short type = this.getNodeType();\n        switch (type) {\n        case Node.ELEMENT_NODE: {\n            String namespace = this.getNamespaceURI();\n            String prefix = this.getPrefix();\n\n            if (prefix == null || prefix.length() == 0) {\n                if (namespaceURI == null) {\n                    return (namespace == namespaceURI);\n                }\n                return namespaceURI.equals(namespace);\n            }\n            if (this.hasAttributes()) {\n                ElementImpl elem = (ElementImpl)this;\n                if (attr != null) {\n                    String value = attr.getNodeValue();\n                    if (namespaceURI == null) {\n                        return (namespace == value);\n                    }\n                    return namespaceURI.equals(value);\n                }\n            }\n\n            NodeImpl ancestor = (NodeImpl)getElementAncestor(this);\n            if (ancestor != null) {\n                return ancestor.isDefaultNamespace(namespaceURI);\n            }\n            return false;\n        }\n        case Node.DOCUMENT_NODE:{\n                return((NodeImpl)((Document)this).getDocumentElement()).isDefaultNamespace(namespaceURI);\n            }\n\n        case Node.ENTITY_NODE :\n          case Node.NOTATION_NODE:\n        case Node.DOCUMENT_FRAGMENT_NODE:\n        case Node.DOCUMENT_TYPE_NODE:\n            return false;\n        case Node.ATTRIBUTE_NODE:{\n                if (this.ownerNode.getNodeType() == Node.ELEMENT_NODE) {\n                    return ownerNode.isDefaultNamespace(namespaceURI);\n\n                }\n                return false;\n            }\n        default:{  \n                NodeImpl ancestor = (NodeImpl)getElementAncestor(this);\n                if (ancestor != null) {\n                    return ancestor.isDefaultNamespace(namespaceURI);\n                }\n                return false;\n            }\n\n        }\n*/\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "lookupPrefix", "code": "    public String lookupPrefix(String namespaceURI){\n\n        if (namespaceURI == null) {\n            return null;\n        }\n\n        short type = this.getNodeType();\n\n        switch (type) {\n/*\n        case Node.ELEMENT_NODE: {\n\n                return lookupNamespacePrefix(namespaceURI, (ElementImpl)this);\n            }\n\n        case Node.DOCUMENT_NODE:{\n                return((NodeImpl)((Document)this).getDocumentElement()).lookupPrefix(namespaceURI);\n            }\n*/\n        case Node.ENTITY_NODE :\n        case Node.NOTATION_NODE:\n        case Node.DOCUMENT_FRAGMENT_NODE:\n        case Node.DOCUMENT_TYPE_NODE:\n            return null;\n        case Node.ATTRIBUTE_NODE:{\n                if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) {\n                    return getOwnerElement().lookupPrefix(namespaceURI);\n\n                }\n                return null;\n            }\n        default:{ \n/*\n                NodeImpl ancestor = (NodeImpl)getElementAncestor(this);\n                if (ancestor != null) {\n                    return ancestor.lookupPrefix(namespaceURI);\n                }\n*/\n                return null;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "RETURN", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 6], [3, 7], [5, 8], [1, 9], [1, 10], [1, 11], [6, 12], [2, 13], [7, 14], [9, 15], [10, 16], [11, 17], [11, 18], [18, 19], [17, 20], [17, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 1], [7, 3], [8, 5], [9, 1], [10, 1], [11, 1], [12, 6], [13, 2], [14, 7], [15, 9], [16, 10], [17, 11], [18, 11], [19, 18], [20, 17], [21, 17], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "isSameNode", "code": "    public boolean isSameNode(Node other) {\n        return this == other;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setTextContent", "code": "    public void setTextContent(String textContent)\n        throws DOMException {\n        setNodeValue(textContent);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTextContent", "code": "    public String getTextContent() throws DOMException {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "compareDocumentPosition", "code": "    public short compareDocumentPosition(Node other) throws DOMException {\n        return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getBaseURI", "code": "    public String getBaseURI() {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DOM2DTMdefaultNamespaceDeclarationNode", "code": "  DOM2DTMdefaultNamespaceDeclarationNode(Element pseudoparent,String prefix,String uri,int handle)\n  {\n    this.pseudoparent=pseudoparent;\n    this.prefix=prefix;\n    this.uri=uri;\n    this.handle=handle;\n    this.nodename=\"xmlns:\"+prefix;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [5, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 5], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 1}
{"sample_id": "jedit-4.0-3787", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/Mode.java", "language": "java", "name": "org.gjt.sp.jedit.Mode", "code": "public class Mode\n{\n\t//{{{ Mode constructor\n\t/**\n\t * Creates a new edit mode.\n\t *\n\t * @param name The name used in mode listings and to query mode\n\t * properties\n\t * @see #getProperty(String)\n\t */\n\tpublic Mode(String name)\n\t{\n\t\tthis.name = name;\n\t\tprops = new Hashtable();\n\t} //}}}\n\n\t//{{{ init()\n\t/**\n\t * Initializes the edit mode. Should be called after all properties\n\t * are loaded and set.\n\t */\n\tpublic void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tString filenameGlob = (String)getProperty(\"filenameGlob\");\n\t\t\tif(filenameGlob != null && filenameGlob.length() != 0)\n\t\t\t{\n\t\t\t\tfilenameRE = new RE(MiscUtilities.globToRE(\n\t\t\t\t\tfilenameGlob),RE.REG_ICASE);\n\t\t\t}\n\n\t\t\tString firstlineGlob = (String)getProperty(\"firstlineGlob\");\n\t\t\tif(firstlineGlob != null && firstlineGlob.length() != 0)\n\t\t\t{\n\t\t\t\tfirstlineRE = new RE(MiscUtilities.globToRE(\n\t\t\t\t\tfirstlineGlob),RE.REG_ICASE);\n\t\t\t}\n\t\t}\n\t\tcatch(REException re)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Invalid filename/firstline\"\n\t\t\t\t+ \" globs in mode \" + name);\n\t\t\tLog.log(Log.ERROR,this,re);\n\t\t}\n\t} //}}}\n\n\t//{{{ getTokenMarker() method\n\t/**\n\t * Returns the token marker specified with\n\t * <code>setTokenMarker()</code>. Should only be called by\n\t * <code>TokenMarker.getExternalRuleSet()</code>.\n\t */\n\tpublic TokenMarker getTokenMarker()\n\t{\n\t\tloadIfNecessary();\n\t\treturn marker;\n\t} //}}}\n\n\t//{{{ setTokenMarker() method\n\t/**\n\t * Sets the token marker for this mode. This token marker will be\n\t * cloned to obtain new instances.\n\t * @param marker The new token marker\n\t */\n\tpublic void setTokenMarker(TokenMarker marker)\n\t{\n\t\tthis.marker = marker;\n\t} //}}}\n\n\t//{{{ loadIfNecessary() method\n\t/**\n\t * Loads the mode from disk if it hasn't been loaded already.\n\t * @since jEdit 2.5pre3\n\t */\n\tpublic void loadIfNecessary()\n\t{\n\t\tif(marker == null)\n\t\t\tjEdit.loadMode(this);\n\t} //}}}\n\n\t//{{{ getProperty() method\n\t/**\n\t * Returns a mode property.\n\t * @param key The property name\n\t *\n\t * @since jEdit 2.2pre1\n\t */\n\tpublic Object getProperty(String key)\n\t{\n\t\tString prefix = \"mode.\" + name + \".\";\n\n\t\t//if(jEdit.getBooleanProperty(prefix + \"customSettings\"))\n\t\t//{\n\t\t\tString property = jEdit.getProperty(prefix + key);\n\t\t\tif(property != null && property.length() != 0)\n\t\t\t{\n\t\t\t\tObject value;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tvalue = new Integer(property);\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException nf)\n\t\t\t\t{\n\t\t\t\t\tvalue = property;\n\t\t\t\t}\n\t\t\t\treturn value;\n\t\t\t}\n\t\t//}\n\n\t\tObject value = props.get(key);\n\t\tif(value != null)\n\t\t\treturn value;\n\n\t\tString global = jEdit.getProperty(\"buffer.\" + key);\n\t\tif(global != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn new Integer(global);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn global;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\treturn null;\n\t} //}}}\n\n\t//{{{ getBooleanProperty() method\n\t/**\n\t * Returns the value of a boolean property.\n\t * @param key The property name\n\t *\n\t * @since jEdit 2.5pre3\n\t */\n\tpublic boolean getBooleanProperty(String key)\n\t{\n\t\tObject value = getProperty(key);\n\t\tif(\"true\".equals(value) || \"on\".equals(value) || \"yes\".equals(value))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t} //}}}\n\n\t//{{{ setProperty() method\n\t/**\n\t * Sets a mode property.\n\t * @param key The property name\n\t * @param value The property value\n\t */\n\tpublic void setProperty(String key, Object value)\n\t{\n\t\tprops.put(key,value);\n\t} //}}}\n\n\t//{{{ unsetProperty() method\n\t/**\n\t * Unsets a mode property.\n\t * @param key The property name\n\t * @since jEdit 3.2pre3\n\t */\n\tpublic void unsetProperty(String key)\n\t{\n\t\tprops.remove(key);\n\t} //}}}\n\n\t//{{{ setProperties() method\n\t/**\n\t * Should only be called by <code>XModeHandler</code>.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void setProperties(Hashtable props)\n\t{\n\t\tString filenameGlob = (String)getProperty(\"filenameGlob\");\n\t\tString firstlineGlob = (String)getProperty(\"firstlineGlob\");\n\t\tthis.props = props;\n\t\tif(filenameGlob != null)\n\t\t\tprops.put(\"filenameGlob\",filenameGlob);\n\t\tif(firstlineGlob != null)\n\t\t\tprops.put(\"firstlineGlob\",firstlineGlob);\n\t} //}}}\n\n\t//{{{ accept() method\n\t/**\n\t * Returns if the edit mode is suitable for editing the specified\n\t * file. The buffer name and first line is checked against the\n\t * file name and first line globs, respectively.\n\t * @param fileName The buffer's name\n\t * @param firstLine The first line of the buffer\n\t *\n\t * @since jEdit 3.2pre3\n\t */\n\tpublic boolean accept(String fileName, String firstLine)\n\t{\n\t\tif(filenameRE != null && filenameRE.isMatch(fileName))\n\t\t\treturn true;\n\n\t\tif(firstlineRE != null && firstlineRE.isMatch(firstLine))\n\t\t\treturn true;\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ getName() method\n\t/**\n\t * Returns the internal name of this edit mode.\n\t */\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ toString() method\n\t/**\n\t * Returns a string representation of this edit mode.\n\t */\n\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[\" + getName() + \"]\";\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate String name;\n\tprivate Hashtable props;\n\tprivate RE firstlineRE;\n\tprivate RE filenameRE;\n\tprivate TokenMarker marker;", "functions": [{"function_name": "init", "code": "\tpublic void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tString filenameGlob = (String)getProperty(\"filenameGlob\");\n\t\t\tif(filenameGlob != null && filenameGlob.length() != 0)\n\t\t\t{\n\t\t\t\tfilenameRE = new RE(MiscUtilities.globToRE(\n\t\t\t\t\tfilenameGlob),RE.REG_ICASE);\n\t\t\t}\n\n\t\t\tString firstlineGlob = (String)getProperty(\"firstlineGlob\");\n\t\t\tif(firstlineGlob != null && firstlineGlob.length() != 0)\n\t\t\t{\n\t\t\t\tfirstlineRE = new RE(MiscUtilities.globToRE(\n\t\t\t\t\tfirstlineGlob),RE.REG_ICASE);\n\t\t\t}\n\t\t}\n\t\tcatch(REException re)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Invalid filename/firstline\"\n\t\t\t\t+ \" globs in mode \" + name);\n\t\t\tLog.log(Log.ERROR,this,re);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [5, 8], [2, 9], [2, 10], [7, 11], [7, 12], [8, 13], [8, 14], [10, 15], [3, 16], [11, 17], [11, 18], [12, 19], [4, 20], [5, 21], [13, 22], [13, 23], [14, 24], [6, 25], [15, 26], [16, 27], [20, 28], [21, 29], [25, 30], [26, 31], [26, 32], [27, 33], [29, 34], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 5], [9, 2], [10, 2], [11, 7], [12, 7], [13, 8], [14, 8], [15, 10], [16, 3], [17, 11], [18, 11], [19, 12], [20, 4], [21, 5], [22, 13], [23, 13], [24, 14], [25, 6], [26, 15], [27, 16], [28, 20], [29, 21], [30, 25], [31, 26], [32, 26], [33, 27], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getTokenMarker", "code": "\tpublic TokenMarker getTokenMarker()\n\t{\n\t\tloadIfNecessary();\n\t\treturn marker;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTokenMarker", "code": "\tpublic void setTokenMarker(TokenMarker marker)\n\t{\n\t\tthis.marker = marker;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadIfNecessary", "code": "\tpublic void loadIfNecessary()\n\t{\n\t\tif(marker == null)\n\t\t\tjEdit.loadMode(this);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getProperty", "code": "\tpublic Object getProperty(String key)\n\t{\n\t\tString prefix = \"mode.\" + name + \".\";\n\n\t\t//if(jEdit.getBooleanProperty(prefix + \"customSettings\"))\n\t\t//{\n\t\t\tString property = jEdit.getProperty(prefix + key);\n\t\t\tif(property != null && property.length() != 0)\n\t\t\t{\n\t\t\t\tObject value;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tvalue = new Integer(property);\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException nf)\n\t\t\t\t{\n\t\t\t\t\tvalue = property;\n\t\t\t\t}\n\t\t\t\treturn value;\n\t\t\t}\n\t\t//}\n\n\t\tObject value = props.get(key);\n\t\tif(value != null)\n\t\t\treturn value;\n\n\t\tString global = jEdit.getProperty(\"buffer.\" + key);\n\t\tif(global != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn new Integer(global);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn global;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "TRY", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CATCH", "RETURN", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [3, 11], [3, 12], [5, 13], [9, 14], [1, 15], [10, 16], [2, 17], [12, 18], [4, 19], [5, 20], [5, 21], [5, 22], [13, 23], [13, 24], [6, 25], [7, 26], [15, 27], [15, 28], [17, 29], [21, 30], [23, 31], [23, 32], [24, 33], [25, 34], [26, 35], [26, 36], [27, 37], [28, 38], [29, 39], [21, 40], [36, 41], [30, 42], [40, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 3], [12, 3], [13, 5], [14, 9], [15, 1], [16, 10], [17, 2], [18, 12], [19, 4], [20, 5], [21, 5], [22, 5], [23, 13], [24, 13], [25, 6], [26, 7], [27, 15], [28, 15], [29, 17], [30, 21], [31, 23], [32, 23], [33, 24], [34, 25], [35, 26], [36, 26], [37, 27], [38, 28], [39, 29], [40, 21], [41, 36], [42, 30], [43, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "getBooleanProperty", "code": "\tpublic boolean getBooleanProperty(String key)\n\t{\n\t\tObject value = getProperty(key);\n\t\tif(\"true\".equals(value) || \"on\".equals(value) || \"yes\".equals(value))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [6, 10], [2, 11], [9, 12], [10, 13], [10, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 6], [11, 2], [12, 9], [13, 10], [14, 10], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setProperty", "code": "\tpublic void setProperty(String key, Object value)\n\t{\n\t\tprops.put(key,value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "unsetProperty", "code": "\tpublic void unsetProperty(String key)\n\t{\n\t\tprops.remove(key);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperties", "code": "\tpublic void setProperties(Hashtable props)\n\t{\n\t\tString filenameGlob = (String)getProperty(\"filenameGlob\");\n\t\tString firstlineGlob = (String)getProperty(\"firstlineGlob\");\n\t\tthis.props = props;\n\t\tif(filenameGlob != null)\n\t\t\tprops.put(\"filenameGlob\",filenameGlob);\n\t\tif(firstlineGlob != null)\n\t\t\tprops.put(\"firstlineGlob\",firstlineGlob);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [1, 9], [6, 10], [2, 11], [7, 12], [9, 13], [11, 14], [3, 15], [4, 16], [15, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 1], [10, 6], [11, 2], [12, 7], [13, 9], [14, 11], [15, 3], [16, 4], [17, 15], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "accept", "code": "\tpublic boolean accept(String fileName, String firstLine)\n\t{\n\t\tif(filenameRE != null && filenameRE.isMatch(fileName))\n\t\t\treturn true;\n\n\t\tif(firstlineRE != null && firstlineRE.isMatch(firstLine))\n\t\t\treturn true;\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [7, 11], [8, 12], [8, 13], [9, 14], [10, 15], [10, 16], [13, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 7], [12, 8], [13, 8], [14, 9], [15, 10], [16, 10], [17, 13], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[\" + getName() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "Mode", "code": "\tpublic Mode(String name)\n\t{\n\t\tthis.name = name;\n\t\tprops = new Hashtable();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.7-8240", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/serializer/XSLOutputAttributes.java", "language": "java", "name": "org.apache.xml.serializer.XSLOutputAttributes", "code": "interface XSLOutputAttributes\n{\n    /**\n     * Returns the previously set value of the value to be used as the public\n     * identifier in the document type declaration (DTD).\n     *\n     *@return the public identifier to be used in the DOCTYPE declaration in the\n     * output document.\n     */\n    public String getDoctypePublic();\n    /**\n     * Returns the previously set value of the value to be used\n     * as the system identifier in the document type declaration (DTD).\n     * @return the system identifier to be used in the DOCTYPE declaration in\n     * the output document.\n     *\n     */ \n    public String getDoctypeSystem();\n    /**\n     * @return the character encoding to be used in the output document.\n     */    \n    public String getEncoding();\n    /**\n\t * @return true if the output document should be indented to visually\n\t * indicate its structure.\n     */    \n    public boolean getIndent();\n    \n    /**\n     * @return the number of spaces to indent for each indentation level.\n     */\n    public int getIndentAmount();\n    /**\n     * @return the mediatype the media-type or MIME type associated with the\n     * output document.\n     */    \n    public String getMediaType();\n    /**\n     * @return true if the XML declaration is to be omitted from the output\n     * document.\n     */    \n    public boolean getOmitXMLDeclaration();\n    /**\n      * @return a value of \"yes\" if the <code>standalone</code> delaration is to\n      * be included in the output document.\n      */    \n    public String getStandalone();\n    /**\n     * @return the version of the output format.\n     */    \n    public String getVersion();\n\n\n\n\n\n\n    /**\n     * Sets the value coming from the xsl:output cdata-section-elements\n     * stylesheet property.\n     * \n     * This sets the elements whose text elements are to be output as CDATA\n     * sections.\n     * @param URI_and_localNames pairs of namespace URI and local names that\n     * identify elements whose text elements are to be output as CDATA sections.\n     * The namespace of the local element must be the given URI to match. The\n     * qName is not given because the prefix does not matter, only the namespace\n     * URI to which that prefix would map matters, so the prefix itself is not\n     * relevant in specifying which elements have their text to be output as\n     * CDATA sections.\n     */\n    public void setCdataSectionElements(Vector URI_and_localNames);\n\n    /** Set the value coming from the xsl:output doctype-public and doctype-system stylesheet properties\n     * @param system the system identifier to be used in the DOCTYPE declaration\n     * in the output document.\n     * @param pub the public identifier to be used in the DOCTYPE declaration in\n     * the output document.\n     */\n    public void setDoctype(String system, String pub);\n\n    /** Set the value coming from the xsl:output doctype-public stylesheet attribute.\n      * @param doctype the public identifier to be used in the DOCTYPE\n      * declaration in the output document.\n      */\n    public void setDoctypePublic(String doctype);\n    /** Set the value coming from the xsl:output doctype-system stylesheet attribute.\n      * @param doctype the system identifier to be used in the DOCTYPE\n      * declaration in the output document.\n      */\n    public void setDoctypeSystem(String doctype);\n    /**\n     * Sets the character encoding coming from the xsl:output encoding stylesheet attribute.\n     * @param encoding the character encoding\n     */\n    public void setEncoding(String encoding);\n    /**\n     * Sets the value coming from the xsl:output indent stylesheet\n     * attribute.\n     * @param indent true if the output document should be indented to visually\n     * indicate its structure.\n     */\n    public void setIndent(boolean indent);\n    /**\n     * Sets the value coming from the xsl:output media-type stylesheet attribute.\n     * @param mediatype the media-type or MIME type associated with the output\n     * document.\n     */\n    public void setMediaType(String mediatype);\n    /**\n     * Sets the value coming from the xsl:output omit-xml-declaration stylesheet attribute\n     * @param b true if the XML declaration is to be omitted from the output\n     * document.\n     */\n    public void setOmitXMLDeclaration(boolean b);\n    /**\n     * Sets the value coming from the xsl:output standalone stylesheet attribute.\n     * @param standalone a value of \"yes\" indicates that the\n     * <code>standalone</code> delaration is to be included in the output\n     * document.\n     */\n    public void setStandalone(String standalone);\n    /**\n     * Sets the value coming from the xsl:output version attribute.\n     * @param version the version of the output format.\n     */\n    public void setVersion(String version);", "functions": [{"function_name": "getDoctypePublic", "code": "    public String getDoctypePublic();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDoctypeSystem", "code": "    public String getDoctypeSystem();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getEncoding", "code": "    public String getEncoding();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIndent", "code": "    public boolean getIndent();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIndentAmount", "code": "    public int getIndentAmount();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getMediaType", "code": "    public String getMediaType();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getOmitXMLDeclaration", "code": "    public boolean getOmitXMLDeclaration();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getStandalone", "code": "    public String getStandalone();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getVersion", "code": "    public String getVersion();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setCdataSectionElements", "code": "    public void setCdataSectionElements(Vector URI_and_localNames);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDoctype", "code": "    public void setDoctype(String system, String pub);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDoctypePublic", "code": "    public void setDoctypePublic(String doctype);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDoctypeSystem", "code": "    public void setDoctypeSystem(String doctype);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEncoding", "code": "    public void setEncoding(String encoding);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIndent", "code": "    public void setIndent(boolean indent);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMediaType", "code": "    public void setMediaType(String mediatype);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOmitXMLDeclaration", "code": "    public void setOmitXMLDeclaration(boolean b);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStandalone", "code": "    public void setStandalone(String standalone);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVersion", "code": "    public void setVersion(String version);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.6-7506", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/DTMChildIterNodeList.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMChildIterNodeList", "code": "public class DTMChildIterNodeList extends DTMNodeListBase {\n    private int m_firstChild;\n    private DTM m_parentDTM;\n\n    private DTMChildIterNodeList() {\n    }\n\n    /**\n     * Public constructor: Create a NodeList to support\n     * DTMNodeProxy.getChildren().\n     *\n     * Unfortunately AxisIterators and DTMIterators don't share an API,\n     * so I can't use the existing Axis.CHILD iterator. Rather than\n     * create Yet Another Class, let's set up a special case of this\n     * one.\n     *\n     * @param parentDTM The DTM containing this node\n     * @param parentHandle DTM node-handle integer\n     *\n     */\n    public DTMChildIterNodeList(DTM parentDTM,int parentHandle) {\n        m_parentDTM=parentDTM;\n        m_firstChild=parentDTM.getFirstChild(parentHandle);\n    }\n\n\n\n    /**\n     * Returns the <code>index</code>th item in the collection. If \n     * <code>index</code> is greater than or equal to the number of nodes in \n     * the list, this returns <code>null</code>.\n     * @param indexIndex into the collection.\n     * @return The node at the <code>index</code>th position in the \n     *   <code>NodeList</code>, or <code>null</code> if that is not a valid \n     *   index.\n     */\n    public Node item(int index) {\n        int handle=m_firstChild;\n        while(--index>=0 && handle!=DTM.NULL) {\n            handle=m_parentDTM.getNextSibling(handle);\n        }\n        if (handle == DTM.NULL) {\n            return null;\n        }\n        return m_parentDTM.getNode(handle);\n    }\n\n    /**\n     * The number of nodes in the list. The range of valid child node indices \n     * is 0 to <code>length-1</code> inclusive. \n     */\n    public int getLength() {\n        int count=0;\n        for (int handle=m_firstChild;\n             handle!=DTM.NULL;\n             handle=m_parentDTM.getNextSibling(handle)) {\n            ++count;\n        }\n        return count;", "functions": [{"function_name": "item", "code": "    public Node item(int index) {\n        int handle=m_firstChild;\n        while(--index>=0 && handle!=DTM.NULL) {\n            handle=m_parentDTM.getNextSibling(handle);\n        }\n        if (handle == DTM.NULL) {\n            return null;\n        }\n        return m_parentDTM.getNode(handle);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [8, 10], [8, 11], [9, 12], [3, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 8], [11, 8], [12, 9], [13, 3], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getLength", "code": "    public int getLength() {\n        int count=0;\n        for (int handle=m_firstChild;\n             handle!=DTM.NULL;\n             handle=m_parentDTM.getNextSibling(handle)) {\n            ++count;\n        }\n        return count;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "DTMChildIterNodeList", "code": "    private DTMChildIterNodeList() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DTMChildIterNodeList", "code": "    public DTMChildIterNodeList(DTM parentDTM,int parentHandle) {\n        m_parentDTM=parentDTM;\n        m_firstChild=parentDTM.getFirstChild(parentHandle);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "camel-1.4-2036", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/irc/IrcErrorLogger.java", "language": "java", "name": "org.apache.camel.component.irc.IrcErrorLogger", "code": "public class IrcErrorLogger extends IRCEventAdapter {\n    private Log log;\n\n    public IrcErrorLogger(Log log) {\n        this.log = log;\n    }\n\n    @Override\n    public void onRegistered() {\n        super.onRegistered();\n        log.info(\"onRegistered\");\n    }\n\n    @Override\n    public void onDisconnected() {\n        super.onDisconnected();\n        log.info(\"onDisconnected\");\n    }\n\n    @Override\n    public void onMode(String string, IRCUser ircUser, IRCModeParser ircModeParser) {\n        super.onMode(string, ircUser, ircModeParser);\n        log.info(\"onMode.string = \" + string);\n        log.info(\"onMode.ircUser = \" + ircUser);\n        log.info(\"onMode.ircModeParser = \" + ircModeParser);\n    }\n\n    @Override\n    public void onMode(IRCUser ircUser, String string, String string1) {\n        super.onMode(ircUser, string, string1);\n        log.info(\"onMode.ircUser = \" + ircUser);\n        log.info(\"onMode.string = \" + string);\n        log.info(\"onMode.string1 = \" + string1);\n    }\n\n    @Override\n    public void onPing(String string) {\n        super.onPing(string);\n        log.info(\"onPing.string = \" + string);\n    }\n\n    @Override\n    public void onError(String string) {\n        log.info(\"onError.string = \" + string);\n    }\n\n    @Override\n    public void onError(int i, String string) {\n        super.onError(i, string);\n        log.error(\"onError.i = \" + i);\n        log.error(\"onError.string = \" + string);\n    }\n\n    @Override\n    public void unknown(String string, String string1, String string2, String string3) {\n        super.unknown(string, string1, string2, string3);\n        log.error(\"unknown.string = \" + string);\n        log.error(\"unknown.string1 = \" + string1);\n        log.error(\"unknown.string2 = \" + string2);\n        log.error(\"unknown.string3 = \" + string3);", "functions": [{"function_name": "onRegistered", "code": "    @Override\n    public void onRegistered() {\n        super.onRegistered();\n        log.info(\"onRegistered\");", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "onDisconnected", "code": "    @Override\n    public void onDisconnected() {\n        super.onDisconnected();\n        log.info(\"onDisconnected\");", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "onMode", "code": "    @Override\n    public void onMode(String string, IRCUser ircUser, IRCModeParser ircModeParser) {\n        super.onMode(string, ircUser, ircModeParser);\n        log.info(\"onMode.string = \" + string);\n        log.info(\"onMode.ircUser = \" + ircUser);\n        log.info(\"onMode.ircModeParser = \" + ircModeParser);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "onMode", "code": "    @Override\n    public void onMode(IRCUser ircUser, String string, String string1) {\n        super.onMode(ircUser, string, string1);\n        log.info(\"onMode.ircUser = \" + ircUser);\n        log.info(\"onMode.string = \" + string);\n        log.info(\"onMode.string1 = \" + string1);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "onPing", "code": "    @Override\n    public void onPing(String string) {\n        super.onPing(string);\n        log.info(\"onPing.string = \" + string);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "onError", "code": "    @Override\n    public void onError(String string) {\n        log.info(\"onError.string = \" + string);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "onError", "code": "    @Override\n    public void onError(int i, String string) {\n        super.onError(i, string);\n        log.error(\"onError.i = \" + i);\n        log.error(\"onError.string = \" + string);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "unknown", "code": "    @Override\n    public void unknown(String string, String string1, String string2, String string3) {\n        super.unknown(string, string1, string2, string3);\n        log.error(\"unknown.string = \" + string);\n        log.error(\"unknown.string1 = \" + string1);\n        log.error(\"unknown.string2 = \" + string2);\n        log.error(\"unknown.string3 = \" + string3);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "IrcErrorLogger", "code": "    public IrcErrorLogger(Log log) {\n        this.log = log;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.5-5751", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/ExternSheetRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.ExternSheetRecord", "code": "public class ExternSheetRecord extends Record {\n    public final static short sid = 0x17;\n    private short             field_1_number_of_REF_sturcutres;\n    private ArrayList         field_2_REF_structures;\n    \n    public ExternSheetRecord() {\n        field_2_REF_structures = new ArrayList();\n    }\n    \n    /**\n     * Constructs a Extern Sheet record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x16 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n    \n    public ExternSheetRecord(short id, short size, byte[] data) {\n        super(id, size, data);\n    }\n    \n    /**\n     * Constructs a Extern Sheet record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x16 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n    public ExternSheetRecord(short id, short size, byte[] data, int offset) {\n        super(id, size, data, offset);\n    }\n    \n    /**\n     * called by constructor, should throw runtime exception in the event of a\n     * record passed with a differing ID.\n     *\n     * @param id alleged id for this record\n     */\n    protected void validateSid(short id) {\n        if (id != sid) {\n            throw new RecordFormatException(\"NOT An ExternSheet RECORD\");\n        }\n    }\n    \n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     * @param offset of the record's data (provided a big array of the file)\n     */\n    protected void fillFields(byte [] data, short size, int offset) {\n        field_2_REF_structures           = new ArrayList();\n        \n        field_1_number_of_REF_sturcutres = LittleEndian.getShort(data, 0 + offset);\n        \n        int pos = 2 + offset;\n        for (int i = 0 ; i < field_1_number_of_REF_sturcutres ; ++i) {\n            ExternSheetSubRecord rec = new ExternSheetSubRecord((short)0, (short)6 , data , pos);\n            \n            pos += 6;\n            \n            field_2_REF_structures.add( rec);\n        }\n    }\n    \n    /** \n     * sets the number of the REF structors , that is in Excel file\n     * @param numStruct number of REF structs\n     */\n    public void setNumOfREFStructures(short numStruct) {\n        field_1_number_of_REF_sturcutres = numStruct;\n    }\n    \n    /**  \n     * return the number of the REF structors , that is in Excel file\n     * @return number of REF structs\n     */\n    public short getNumOfREFStructures() {\n        return field_1_number_of_REF_sturcutres;\n    }\n    \n    /** \n     * adds REF struct (ExternSheetSubRecord)\n     * @param rec REF struct\n     */\n    public void addREFRecord(ExternSheetSubRecord rec) {\n        field_2_REF_structures.add(rec);\n    }\n    \n    /** returns the number of REF Records, which is in model\n     * @return number of REF records\n     */\n    public int getNumOfREFRecords() {\n        return field_2_REF_structures.size();\n    }\n    \n    /** returns the REF record (ExternSheetSubRecord)\n     * @param elem index to place\n     * @return REF record\n     */\n    public ExternSheetSubRecord getREFRecordAt(int elem) {\n        ExternSheetSubRecord result = ( ExternSheetSubRecord ) field_2_REF_structures.get(elem);\n        \n        return result;\n    }\n    \n    public String toString() {\n        StringBuffer buffer = new StringBuffer();\n        \n        buffer.append(\"[EXTERNSHEET]\\n\");\n        buffer.append(\"   numOfRefs     = \").append(getNumOfREFStructures()).append(\"\\n\");\n        for (int k=0; k < this.getNumOfREFRecords(); k++) {\n            buffer.append(\"refrec         #\").append(k).append('\\n');\n            buffer.append(getREFRecordAt(k).toString());\n            buffer.append(\"----refrec     #\").append(k).append('\\n');\n        }\n        buffer.append(\"[/EXTERNSHEET]\\n\");\n        \n        \n        return buffer.toString();\n    }\n    \n    /**\n     * called by the class that is responsible for writing this sucker.\n     * Subclasses should implement this so that their data is passed back in a\n     * byte array.\n     *\n     * @param offset to begin writing at\n     * @param data byte array containing instance data\n     * @return number of bytes written\n     */\n    public int serialize(int offset, byte [] data) {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,(short)(2 + (getNumOfREFRecords() *6)));\n        \n        LittleEndian.putShort(data, 4 + offset, getNumOfREFStructures());\n        \n        int pos = 6 ;\n        \n        for (int k = 0; k < getNumOfREFRecords(); k++) {\n            ExternSheetSubRecord record = getREFRecordAt(k);\n            System.arraycopy(record.serialize(), 0, data, pos + offset, 6);\n            \n            pos +=6;\n        }\n        return getRecordSize();\n    }\n    \n    public int getRecordSize() {\n        return 4 + 2 + getNumOfREFRecords() * 6;\n    }\n    \n    /**\n     * return the non static version of the id for this record.\n     */\n    public short getSid() {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id) {\n        if (id != sid) {\n            throw new RecordFormatException(\"NOT An ExternSheet RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset) {\n        field_2_REF_structures           = new ArrayList();\n        \n        field_1_number_of_REF_sturcutres = LittleEndian.getShort(data, 0 + offset);\n        \n        int pos = 2 + offset;\n        for (int i = 0 ; i < field_1_number_of_REF_sturcutres ; ++i) {\n            ExternSheetSubRecord rec = new ExternSheetSubRecord((short)0, (short)6 , data , pos);\n            \n            pos += 6;\n            \n            field_2_REF_structures.add( rec);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [1, 9], [2, 10], [7, 11], [8, 12], [1, 13], [1, 14], [1, 15], [10, 16], [11, 17], [14, 18], [9, 19], [17, 20], [19, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 1], [10, 2], [11, 7], [12, 8], [13, 1], [14, 1], [15, 1], [16, 10], [17, 11], [18, 14], [19, 9], [20, 17], [21, 19], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "setNumOfREFStructures", "code": "    public void setNumOfREFStructures(short numStruct) {\n        field_1_number_of_REF_sturcutres = numStruct;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumOfREFStructures", "code": "    public short getNumOfREFStructures() {\n        return field_1_number_of_REF_sturcutres;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addREFRecord", "code": "    public void addREFRecord(ExternSheetSubRecord rec) {\n        field_2_REF_structures.add(rec);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumOfREFRecords", "code": "    public int getNumOfREFRecords() {\n        return field_2_REF_structures.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getREFRecordAt", "code": "    public ExternSheetSubRecord getREFRecordAt(int elem) {\n        ExternSheetSubRecord result = ( ExternSheetSubRecord ) field_2_REF_structures.get(elem);\n        \n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buffer = new StringBuffer();\n        \n        buffer.append(\"[EXTERNSHEET]\\n\");\n        buffer.append(\"   numOfRefs     = \").append(getNumOfREFStructures()).append(\"\\n\");\n        for (int k=0; k < this.getNumOfREFRecords(); k++) {\n            buffer.append(\"refrec         #\").append(k).append('\\n');\n            buffer.append(getREFRecordAt(k).toString());\n            buffer.append(\"----refrec     #\").append(k).append('\\n');\n        }\n        buffer.append(\"[/EXTERNSHEET]\\n\");\n        \n        \n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [0, 8], [5, 9], [7, 10], [7, 11], [7, 12], [8, 13], [3, 14], [2, 15], [2, 16], [2, 17], [6, 18], [2, 19], [11, 20], [12, 21], [15, 22], [15, 23], [15, 24], [16, 25], [17, 26], [17, 27], [17, 28], [23, 29], [25, 30], [27, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 0], [9, 5], [10, 7], [11, 7], [12, 7], [13, 8], [14, 3], [15, 2], [16, 2], [17, 2], [18, 6], [19, 2], [20, 11], [21, 12], [22, 15], [23, 15], [24, 15], [25, 16], [26, 17], [27, 17], [28, 17], [29, 23], [30, 25], [31, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data) {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,(short)(2 + (getNumOfREFRecords() *6)));\n        \n        LittleEndian.putShort(data, 4 + offset, getNumOfREFStructures());\n        \n        int pos = 6 ;\n        \n        for (int k = 0; k < getNumOfREFRecords(); k++) {\n            ExternSheetSubRecord record = getREFRecordAt(k);\n            System.arraycopy(record.serialize(), 0, data, pos + offset, 6);\n            \n            pos +=6;\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [0, 10], [2, 11], [7, 12], [3, 13], [8, 14], [8, 15], [9, 16], [10, 17], [2, 18], [2, 19], [2, 20], [15, 21], [9, 22], [16, 23], [17, 24], [18, 25], [19, 26], [19, 27], [19, 28], [19, 29], [11, 30], [22, 31], [22, 32], [31, 33], [31, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 0], [11, 2], [12, 7], [13, 3], [14, 8], [15, 8], [16, 9], [17, 10], [18, 2], [19, 2], [20, 2], [21, 15], [22, 9], [23, 16], [24, 17], [25, 18], [26, 19], [27, 19], [28, 19], [29, 19], [30, 11], [31, 22], [32, 22], [33, 31], [34, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize() {\n        return 4 + 2 + getNumOfREFRecords() * 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSid", "code": "    public short getSid() {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ExternSheetRecord", "code": "    public ExternSheetRecord() {\n        field_2_REF_structures = new ArrayList();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ExternSheetRecord", "code": "    public ExternSheetRecord(short id, short size, byte[] data) {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ExternSheetRecord", "code": "    public ExternSheetRecord(short id, short size, byte[] data, int offset) {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.7-8466", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/operations/Variable.java", "language": "java", "name": "org.apache.xpath.operations.Variable", "code": "public class Variable extends Expression implements PathComponent\n{\n    static final long serialVersionUID = -4334975375609297049L;\n  /** Tell if fixupVariables was called.\n   *  @serial   */\n  private boolean m_fixUpWasCalled = false;\n\n  /** The qualified name of the variable.\n   *  @serial   */\n  protected QName m_qname;\n  \n  /**\n   * The index of the variable, which is either an absolute index to a \n   * global, or, if higher than the globals area, must be adjusted by adding \n   * the offset to the current stack frame.\n   */\n  protected int m_index;\n  \n  /**\n   * Set the index for the variable into the stack.  For advanced use only. You \n   * must know what you are doing to use this.\n   * \n   * @param index a global or local index.\n   */\n  public void setIndex(int index)\n  {\n  \tm_index = index;\n  }\n  \n  /**\n   * Set the index for the variable into the stack.  For advanced use only.\n   * \n   * @return index a global or local index.\n   */\n  public int getIndex()\n  {\n  \treturn m_index;\n  }\n  \n  /**\n   * Set whether or not this is a global reference.  For advanced use only.\n   * \n   * @param isGlobal true if this should be a global variable reference.\n   */\n  public void setIsGlobal(boolean isGlobal)\n  {\n  \tm_isGlobal = isGlobal;\n  }\n  \n  /**\n   * Set the index for the variable into the stack.  For advanced use only.\n   * \n   * @return true if this should be a global variable reference.\n   */\n  public boolean getGlobal()\n  {\n  \treturn m_isGlobal;\n  }\n\n  \n  \n\n  \n  protected boolean m_isGlobal = false;\n  \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_fixUpWasCalled = true;\n    int sz = vars.size();\n\n    for (int i = vars.size()-1; i >= 0; i--) \n    {\n      QName qn = (QName)vars.elementAt(i);\n      if(qn.equals(m_qname))\n      {\n        \n        if(i < globalsSize)\n        {\n          m_isGlobal = true;\n          m_index = i;\n        }\n        else\n        {\n          m_index = i-globalsSize;\n        }\n          \n        return;\n      }\n    }\n    \n    java.lang.String msg = XSLMessages.createXPATHMessage(XPATHErrorResources.ER_COULD_NOT_FIND_VAR, \n                                             new Object[]{m_qname.toString()});\n                                             \n    TransformerException te = new TransformerException(msg, this);\n                                             \n    throw new org.apache.xml.utils.WrappedRuntimeException(te);\n    \n  }\n\n\n  /**\n   * Set the qualified name of the variable.\n   *\n   * @param qname Must be a non-null reference to a qualified name.\n   */\n  public void setQName(QName qname)\n  {\n    m_qname = qname;\n  }\n  \n  /**\n   * Get the qualified name of the variable.\n   *\n   * @return A non-null reference to a qualified name.\n   */\n  public QName getQName()\n  {\n    return m_qname;\n  }\n  \n  /**\n   * Execute an expression in the XPath runtime context, and return the\n   * result of the expression.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   *\n   * @return The result of the expression in the form of a <code>XObject</code>.\n   *\n   * @throws javax.xml.transform.TransformerException if a runtime exception\n   *         occurs.\n   */\n  public XObject execute(XPathContext xctxt)\n    throws javax.xml.transform.TransformerException\n  {\n  \treturn execute(xctxt, false);\n  }\n\n\n  /**\n   * Dereference the variable, and return the reference value.  Note that lazy \n   * evaluation will occur.  If a variable within scope is not found, a warning \n   * will be sent to the error listener, and an empty nodeset will be returned.\n   *\n   *\n   * @param xctxt The runtime execution context.\n   *\n   * @return The evaluated variable, or an empty nodeset if not found.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt, boolean destructiveOK) throws javax.xml.transform.TransformerException\n  {\n    org.apache.xml.utils.PrefixResolver xprefixResolver = xctxt.getNamespaceContext();\n\n    XObject result;\n    if(m_fixUpWasCalled)\n    {    \n      if(m_isGlobal)\n        result = xctxt.getVarStack().getGlobalVariable(xctxt, m_index, destructiveOK);\n      else\n        result = xctxt.getVarStack().getLocalVariable(xctxt, m_index, destructiveOK);\n    } \n    else {  \n    \tresult = xctxt.getVarStack().getVariableOrParam(xctxt,m_qname);\n    }\n  \n      if (null == result)\n      {\n        warn(xctxt, XPATHErrorResources.WG_ILLEGAL_VARIABLE_REFERENCE);\n        \n        result = new XNodeSet(xctxt.getDTMManager());\n      }\n  \n      return result;\n  }\n  \n  /**\n   * Get the XSLT ElemVariable that this sub-expression references.  In order for \n   * this to work, the SourceLocator must be the owning ElemTemplateElement.\n   * @return The dereference to the ElemVariable, or null if not found.\n   */\n  public org.apache.xalan.templates.ElemVariable getElemVariable()\n  {\n  \t\n    \n    org.apache.xalan.templates.ElemVariable vvar = null;\t\n    org.apache.xpath.ExpressionNode owner = getExpressionOwner();\n\n    if (null != owner && owner instanceof org.apache.xalan.templates.ElemTemplateElement)\n    {\n\n      org.apache.xalan.templates.ElemTemplateElement prev = \n        (org.apache.xalan.templates.ElemTemplateElement) owner;\n\n      if (!(prev instanceof org.apache.xalan.templates.Stylesheet))\n      {            \n        while ( prev != null && !(prev.getParentNode() instanceof org.apache.xalan.templates.Stylesheet) )\n        {\n          org.apache.xalan.templates.ElemTemplateElement savedprev = prev;\n\n          while (null != (prev = prev.getPreviousSiblingElem()))\n          {\n            if(prev instanceof org.apache.xalan.templates.ElemVariable)\n            {\n              vvar = (org.apache.xalan.templates.ElemVariable) prev;\n            \n              if (vvar.getName().equals(m_qname))\n              {\n                return vvar;\n              }\n              vvar = null; \t \t\n            }\n          }\n          prev = savedprev.getParentElem();\n        }\n      }\n      if (prev != null)\n        vvar = prev.getStylesheetRoot().getVariableOrParamComposed(m_qname);\n    }\n    return vvar;\n\n  }\n  \n  /**\n   * Tell if this expression returns a stable number that will not change during \n   * iterations within the expression.  This is used to determine if a proximity \n   * position predicate can indicate that no more searching has to occur.\n   * \n   *\n   * @return true if the expression represents a stable number.\n   */\n  public boolean isStableNumber()\n  {\n    return true;\n  }\n  \n  /** \n   * Get the analysis bits for this walker, as defined in the WalkerFactory.\n   * @return One of WalkerFactory#BIT_DESCENDANT, etc.\n   */\n  public int getAnalysisBits()\n  {\n  \torg.apache.xalan.templates.ElemVariable vvar = getElemVariable();\n  \tif(null != vvar)\n  \t{\n  \t\tXPath xpath = vvar.getSelect();\n  \t\tif(null != xpath)\n  \t\t{\n\t  \t\tExpression expr = xpath.getExpression();\n\t  \t\tif(null != expr && expr instanceof PathComponent)\n\t  \t\t{\n\t  \t\t\treturn ((PathComponent)expr).getAnalysisBits();\n\t  \t\t}\n  \t\t}\n  \t}\n    return WalkerFactory.BIT_FILTER;\n  }\n\n\n  /**\n   * @see org.apache.xpath.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitVariableRef(owner, this);\n  }\n  /**\n   * @see Expression#deepEquals(Expression)\n   */\n  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \tif(!m_qname.equals(((Variable)expr).m_qname))\n  \t\treturn false;\n  \t\t\n    if(getElemVariable() != ((Variable)expr).getElemVariable())\n    \treturn false;\n  \t\t\n  \treturn true;\n  }\n  \n  \n  /**\n   * Tell if this is a psuedo variable reference, declared by Xalan instead \n   * of by the user.\n   */\n  public boolean isPsuedoVarRef()\n  {\n  \tjava.lang.String ns = m_qname.getNamespaceURI();\n  \tif((null != ns) && ns.equals(PSUEDOVARNAMESPACE))\n  \t{\n  \t\tif(m_qname.getLocalName().startsWith(\"#\"))\n  \t\t\treturn true;\n  \t}\n  \treturn false;", "functions": [{"function_name": "setIndex", "code": "  public void setIndex(int index)\n  {\n  \tm_index = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIndex", "code": "  public int getIndex()\n  {\n  \treturn m_index;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIsGlobal", "code": "  public void setIsGlobal(boolean isGlobal)\n  {\n  \tm_isGlobal = isGlobal;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getGlobal", "code": "  public boolean getGlobal()\n  {\n  \treturn m_isGlobal;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_fixUpWasCalled = true;\n    int sz = vars.size();\n\n    for (int i = vars.size()-1; i >= 0; i--) \n    {\n      QName qn = (QName)vars.elementAt(i);\n      if(qn.equals(m_qname))\n      {\n        \n        if(i < globalsSize)\n        {\n          m_isGlobal = true;\n          m_index = i;\n        }\n        else\n        {\n          m_index = i-globalsSize;\n        }\n          \n        return;\n      }\n    }\n    \n    java.lang.String msg = XSLMessages.createXPATHMessage(XPATHErrorResources.ER_COULD_NOT_FIND_VAR, \n                                             new Object[]{m_qname.toString()});\n                                             \n    TransformerException te = new TransformerException(msg, this);\n                                             \n    throw new org.apache.xml.utils.WrappedRuntimeException(te);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [0, 10], [2, 11], [3, 12], [4, 13], [4, 14], [9, 15], [5, 16], [10, 17], [13, 18], [4, 19], [13, 20], [13, 21], [19, 22], [19, 23], [12, 24], [21, 25], [14, 26], [21, 27], [21, 28], [21, 29], [27, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 0], [11, 2], [12, 3], [13, 4], [14, 4], [15, 9], [16, 5], [17, 10], [18, 13], [19, 4], [20, 13], [21, 13], [22, 19], [23, 19], [24, 12], [25, 21], [26, 14], [27, 21], [28, 21], [29, 21], [30, 27], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "setQName", "code": "  public void setQName(QName qname)\n  {\n    m_qname = qname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getQName", "code": "  public QName getQName()\n  {\n    return m_qname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt)\n    throws javax.xml.transform.TransformerException\n  {\n  \treturn execute(xctxt, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt, boolean destructiveOK) throws javax.xml.transform.TransformerException\n  {\n    org.apache.xml.utils.PrefixResolver xprefixResolver = xctxt.getNamespaceContext();\n\n    XObject result;\n    if(m_fixUpWasCalled)\n    {    \n      if(m_isGlobal)\n        result = xctxt.getVarStack().getGlobalVariable(xctxt, m_index, destructiveOK);\n      else\n        result = xctxt.getVarStack().getLocalVariable(xctxt, m_index, destructiveOK);\n    } \n    else {  \n    \tresult = xctxt.getVarStack().getVariableOrParam(xctxt,m_qname);\n    }\n  \n      if (null == result)\n      {\n        warn(xctxt, XPATHErrorResources.WG_ILLEGAL_VARIABLE_REFERENCE);\n        \n        result = new XNodeSet(xctxt.getDTMManager());\n      }\n  \n      return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [8, 9], [3, 10], [5, 11], [2, 12], [2, 13], [3, 14], [12, 15], [14, 16], [10, 17], [10, 18], [15, 19], [16, 20], [17, 21], [18, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 8], [10, 3], [11, 5], [12, 2], [13, 2], [14, 3], [15, 12], [16, 14], [17, 10], [18, 10], [19, 15], [20, 16], [21, 17], [22, 18], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getElemVariable", "code": "  public org.apache.xalan.templates.ElemVariable getElemVariable()\n  {\n  \t\n    \n    org.apache.xalan.templates.ElemVariable vvar = null;\t\n    org.apache.xpath.ExpressionNode owner = getExpressionOwner();\n\n    if (null != owner && owner instanceof org.apache.xalan.templates.ElemTemplateElement)\n    {\n\n      org.apache.xalan.templates.ElemTemplateElement prev = \n        (org.apache.xalan.templates.ElemTemplateElement) owner;\n\n      if (!(prev instanceof org.apache.xalan.templates.Stylesheet))\n      {            \n        while ( prev != null && !(prev.getParentNode() instanceof org.apache.xalan.templates.Stylesheet) )\n        {\n          org.apache.xalan.templates.ElemTemplateElement savedprev = prev;\n\n          while (null != (prev = prev.getPreviousSiblingElem()))\n          {\n            if(prev instanceof org.apache.xalan.templates.ElemVariable)\n            {\n              vvar = (org.apache.xalan.templates.ElemVariable) prev;\n            \n              if (vvar.getName().equals(m_qname))\n              {\n                return vvar;\n              }\n              vvar = null; \t \t\n            }\n          }\n          prev = savedprev.getParentElem();\n        }\n      }\n      if (prev != null)\n        vvar = prev.getStylesheetRoot().getVariableOrParamComposed(m_qname);\n    }\n    return vvar;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "CALL", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [5, 10], [3, 11], [4, 12], [6, 13], [7, 14], [10, 15], [6, 16], [13, 17], [7, 18], [16, 19], [18, 20], [19, 21], [18, 22], [18, 23], [20, 24], [20, 25], [18, 26], [22, 27], [24, 28], [25, 29], [26, 30], [22, 31], [27, 32], [27, 33], [31, 34], [32, 35], [31, 36], [31, 37], [36, 38], [31, 39], [37, 40], [36, 41], [38, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 5], [11, 3], [12, 4], [13, 6], [14, 7], [15, 10], [16, 6], [17, 13], [18, 7], [19, 16], [20, 18], [21, 19], [22, 18], [23, 18], [24, 20], [25, 20], [26, 18], [27, 22], [28, 24], [29, 25], [30, 26], [31, 22], [32, 27], [33, 27], [34, 31], [35, 32], [36, 31], [37, 31], [38, 36], [39, 31], [40, 37], [41, 36], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "isStableNumber", "code": "  public boolean isStableNumber()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAnalysisBits", "code": "  public int getAnalysisBits()\n  {\n  \torg.apache.xalan.templates.ElemVariable vvar = getElemVariable();\n  \tif(null != vvar)\n  \t{\n  \t\tXPath xpath = vvar.getSelect();\n  \t\tif(null != xpath)\n  \t\t{\n\t  \t\tExpression expr = xpath.getExpression();\n\t  \t\tif(null != expr && expr instanceof PathComponent)\n\t  \t\t{\n\t  \t\t\treturn ((PathComponent)expr).getAnalysisBits();\n\t  \t\t}\n  \t\t}\n  \t}\n    return WalkerFactory.BIT_FILTER;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [3, 8], [5, 9], [5, 10], [5, 11], [9, 12], [6, 13], [10, 14], [10, 15], [14, 16], [14, 17], [11, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 3], [9, 5], [10, 5], [11, 5], [12, 9], [13, 6], [14, 10], [15, 10], [16, 14], [17, 14], [18, 11], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitVariableRef(owner, this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "deepEquals", "code": "  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \tif(!m_qname.equals(((Variable)expr).m_qname))\n  \t\treturn false;\n  \t\t\n    if(getElemVariable() != ((Variable)expr).getElemVariable())\n    \treturn false;\n  \t\t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [7, 13], [8, 14], [9, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 7], [14, 8], [15, 9], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isPsuedoVarRef", "code": "  public boolean isPsuedoVarRef()\n  {\n  \tjava.lang.String ns = m_qname.getNamespaceURI();\n  \tif((null != ns) && ns.equals(PSUEDOVARNAMESPACE))\n  \t{\n  \t\tif(m_qname.getLocalName().startsWith(\"#\"))\n  \t\t\treturn true;\n  \t}\n  \treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [6, 10], [6, 11], [8, 12], [10, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 6], [11, 6], [12, 8], [13, 10], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}], "label": 1}
{"sample_id": "jedit-4.1-4172", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/Autosave.java", "language": "java", "name": "org.gjt.sp.jedit.Autosave", "code": "class Autosave implements ActionListener\n{\n\tpublic static void setInterval(int interval)\n\t{\n\t\tif(interval == 0)\n\t\t{\n\t\t\tif(timer != null)\n\t\t\t{\n\t\t\t\ttimer.stop();\n\t\t\t\ttimer = null;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tinterval *= 1000;\n\n\t\tif(timer == null)\n\t\t{\n\t\t\ttimer = new Timer(interval,new Autosave());\n\t\t\ttimer.start();\n\t\t}\n\t\telse\n\t\t\ttimer.setDelay(interval);\n\t}\n\n\tpublic static void stop()\n\t{\n\t\tif(timer != null)\n\t\t\ttimer.stop();\n\t}\n\n\tpublic void actionPerformed(ActionEvent evt)\n\t{\n\t\t// might come in handy useful some time\n\t\t/* Runtime runtime = Runtime.getRuntime();\n\t\tint freeMemory = (int)(runtime.freeMemory() / 1024);\n\t\tint totalMemory = (int)(runtime.totalMemory() / 1024);\n\t\tint usedMemory = (totalMemory - freeMemory);\n\n\t\tLog.log(Log.DEBUG,this,\"Java heap: \" + usedMemory + \"Kb / \"\n\t\t\t+ totalMemory + \"Kb, \" + (usedMemory * 100 / totalMemory)\n\t\t\t+ \"%\"); */\n\n\t\t// save list of open files\n\t\tif(jEdit.getFirstView() != null)\n\t\t\tjEdit.saveOpenFiles(jEdit.getFirstView());\n\n\t\tBuffer[] bufferArray = jEdit.getBuffers();\n\t\tfor(int i = 0; i < bufferArray.length; i++)\n\t\t\tbufferArray[i].autosave();\n\t}\n\n\t// private members\n\tprivate static Timer timer;\n\n\tprivate Autosave() {}", "functions": [{"function_name": "setInterval", "code": "\tpublic static void setInterval(int interval)\n\t{\n\t\tif(interval == 0)\n\t\t{\n\t\t\tif(timer != null)\n\t\t\t{\n\t\t\t\ttimer.stop();\n\t\t\t\ttimer = null;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tinterval *= 1000;\n\n\t\tif(timer == null)\n\t\t{\n\t\t\ttimer = new Timer(interval,new Autosave());\n\t\t\ttimer.start();\n\t\t}\n\t\telse\n\t\t\ttimer.setDelay(interval);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 7], [4, 8], [5, 9], [2, 10], [2, 11], [6, 12], [1, 13], [1, 14], [11, 15], [14, 16], [15, 17], [16, 18], [11, 19], [11, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 1], [8, 4], [9, 5], [10, 2], [11, 2], [12, 6], [13, 1], [14, 1], [15, 11], [16, 14], [17, 15], [18, 16], [19, 11], [20, 11], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "stop", "code": "\tpublic static void stop()\n\t{\n\t\tif(timer != null)\n\t\t\ttimer.stop();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "actionPerformed", "code": "\tpublic void actionPerformed(ActionEvent evt)\n\t{\n\t\t// might come in handy useful some time\n\t\t/* Runtime runtime = Runtime.getRuntime();\n\t\tint freeMemory = (int)(runtime.freeMemory() / 1024);\n\t\tint totalMemory = (int)(runtime.totalMemory() / 1024);\n\t\tint usedMemory = (totalMemory - freeMemory);\n\n\t\tLog.log(Log.DEBUG,this,\"Java heap: \" + usedMemory + \"Kb / \"\n\t\t\t+ totalMemory + \"Kb, \" + (usedMemory * 100 / totalMemory)\n\t\t\t+ \"%\"); */\n\n\t\t// save list of open files\n\t\tif(jEdit.getFirstView() != null)\n\t\t\tjEdit.saveOpenFiles(jEdit.getFirstView());\n\n\t\tBuffer[] bufferArray = jEdit.getBuffers();\n\t\tfor(int i = 0; i < bufferArray.length; i++)\n\t\t\tbufferArray[i].autosave();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [3, 8], [6, 9], [6, 10], [1, 11], [1, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [8, 3], [9, 6], [10, 6], [11, 1], [12, 1], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "Autosave", "code": "\tprivate Autosave() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.2-1804", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/bean/BeanExchange.java", "language": "java", "name": "org.apache.camel.component.bean.BeanExchange", "code": "public class BeanExchange extends DefaultExchange {\n\n    public BeanExchange(CamelContext context, ExchangePattern pattern) {\n        super(context, pattern);\n    }\n\n    public BeanInvocation getInvocation() {\n        return getIn().getBody(BeanInvocation.class);\n    }\n\n    public void setInvocation(BeanInvocation invocation) {\n        getIn().setBody(invocation);\n    }\n\n    @Override\n    public Exchange newInstance() {\n        return new BeanExchange(getContext(), getPattern());", "functions": [{"function_name": "getInvocation", "code": "    public BeanInvocation getInvocation() {\n        return getIn().getBody(BeanInvocation.class);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setInvocation", "code": "    public void setInvocation(BeanInvocation invocation) {\n        getIn().setBody(invocation);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "newInstance", "code": "    @Override\n    public Exchange newInstance() {\n        return new BeanExchange(getContext(), getPattern());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "BeanExchange", "code": "    public BeanExchange(CamelContext context, ExchangePattern pattern) {\n        super(context, pattern);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.2-1628", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/impl/DefaultEndpoint.java", "language": "java", "name": "org.apache.camel.impl.DefaultEndpoint", "code": "public abstract class DefaultEndpoint<E extends Exchange> implements Endpoint<E> {\n    private String endpointUri;\n    private CamelContext context;\n    private Component component;\n    private ScheduledExecutorService executorService;\n    private ExchangePattern exchangePattern = ExchangePattern.InOnly;\n\n    protected DefaultEndpoint(String endpointUri, Component component) {\n        this(endpointUri, component.getCamelContext());\n        this.component = component;\n    }\n\n    protected DefaultEndpoint(String endpointUri, CamelContext context) {\n        this.endpointUri = endpointUri;\n        this.context = context;\n    }\n\n    public int hashCode() {\n        return endpointUri.hashCode() * 37 + 1;\n    }\n\n    @Override\n    public boolean equals(Object object) {\n        if (object instanceof DefaultEndpoint) {\n            DefaultEndpoint that = (DefaultEndpoint) object;\n            return ObjectHelper.equals(this.endpointUri, that.endpointUri);\n        }\n        return false;\n    }\n\n    @Override\n    public String toString() {\n        return \"Endpoint[\" + endpointUri + \"]\";\n    }\n\n    public String getEndpointUri() {\n        return endpointUri;\n    }\n\n    public CamelContext getContext() {\n        return context;\n    }\n\n    public Component getComponent() {\n        return component;\n    }\n\n    /**\n     * @return the executor\n     */\n    public synchronized ScheduledExecutorService getExecutorService() {\n        if (executorService == null) {\n            Component c = getComponent();\n            if (c != null && c instanceof DefaultComponent) {\n                DefaultComponent dc = (DefaultComponent) c;\n                executorService = dc.getExecutorService();\n            }\n            if (executorService == null) {\n                executorService = createExecutorService();\n            }\n        }\n        return executorService;\n    }\n\n    /**\n     * @param executorService the executor to set\n     */\n    public synchronized void setExecutorService(ScheduledExecutorService executorService) {\n        this.executorService = executorService;\n    }\n\n    public PollingConsumer<E> createPollingConsumer() throws Exception {\n        return new EventDrivenPollingConsumer<E>(this);\n    }\n\n    /**\n     * Converts the given exchange to the specified exchange type\n     */\n    public E convertTo(Class<E> type, Exchange exchange) {\n        if (type.isInstance(exchange)) {\n            return type.cast(exchange);\n        }\n        return getContext().getExchangeConverter().convertTo(type, exchange);\n    }\n\n    public E createExchange(Exchange exchange) {\n        Class<E> exchangeType = getExchangeType();\n        if (exchangeType != null) {\n            if (exchangeType.isInstance(exchange)) {\n                return exchangeType.cast(exchange);\n            }\n        }\n        E answer = createExchange();\n        answer.copyFrom(exchange);\n        return answer;\n    }\n\n    /**\n     * Returns the type of the exchange which is generated by this component\n     */\n    public Class<E> getExchangeType() {\n        Type type = getClass().getGenericSuperclass();\n        if (type instanceof ParameterizedType) {\n            ParameterizedType parameterizedType = (ParameterizedType) type;\n            Type[] arguments = parameterizedType.getActualTypeArguments();\n            if (arguments.length > 0) {\n                Type argumentType = arguments[0];\n                if (argumentType instanceof Class) {\n                    return (Class<E>) argumentType;\n                }\n            }\n        }\n        return null;\n    }\n\n    public E createExchange() {\n        return createExchange(getExchangePattern());\n    }\n\n    public E createExchange(ExchangePattern pattern) {\n        return (E) new DefaultExchange(getContext(), pattern);\n    }\n\n    public ExchangePattern getExchangePattern() {\n        return exchangePattern;\n    }\n\n    public void setExchangePattern(ExchangePattern exchangePattern) {\n        this.exchangePattern = exchangePattern;\n    }\n\n    protected ScheduledThreadPoolExecutor createExecutorService() {\n        return new ScheduledThreadPoolExecutor(10);", "functions": [{"function_name": "hashCode", "code": "    public int hashCode() {\n        return endpointUri.hashCode() * 37 + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "equals", "code": "    @Override\n    public boolean equals(Object object) {\n        if (object instanceof DefaultEndpoint) {\n            DefaultEndpoint that = (DefaultEndpoint) object;\n            return ObjectHelper.equals(this.endpointUri, that.endpointUri);\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Endpoint[\" + endpointUri + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getEndpointUri", "code": "    public String getEndpointUri() {\n        return endpointUri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContext", "code": "    public CamelContext getContext() {\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getComponent", "code": "    public Component getComponent() {\n        return component;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExecutorService", "code": "    public synchronized ScheduledExecutorService getExecutorService() {\n        if (executorService == null) {\n            Component c = getComponent();\n            if (c != null && c instanceof DefaultComponent) {\n                DefaultComponent dc = (DefaultComponent) c;\n                executorService = dc.getExecutorService();\n            }\n            if (executorService == null) {\n                executorService = createExecutorService();\n            }\n        }\n        return executorService;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [2, 6], [3, 7], [4, 8], [5, 9], [8, 10], [5, 11], [9, 12], [9, 13], [6, 14], [4, 15], [5, 16], [13, 17], [15, 18], [16, 19], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 2], [7, 3], [8, 4], [9, 5], [10, 8], [11, 5], [12, 9], [13, 9], [14, 6], [15, 4], [16, 5], [17, 13], [18, 15], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setExecutorService", "code": "    public synchronized void setExecutorService(ScheduledExecutorService executorService) {\n        this.executorService = executorService;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createPollingConsumer", "code": "    public PollingConsumer<E> createPollingConsumer() throws Exception {\n        return new EventDrivenPollingConsumer<E>(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "convertTo", "code": "    public E convertTo(Class<E> type, Exchange exchange) {\n        if (type.isInstance(exchange)) {\n            return type.cast(exchange);\n        }\n        return getContext().getExchangeConverter().convertTo(type, exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [5, 8], [2, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 5], [9, 2], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createExchange", "code": "    public E createExchange(Exchange exchange) {\n        Class<E> exchangeType = getExchangeType();\n        if (exchangeType != null) {\n            if (exchangeType.isInstance(exchange)) {\n                return exchangeType.cast(exchange);\n            }\n        }\n        E answer = createExchange();\n        answer.copyFrom(exchange);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [2, 8], [3, 9], [7, 10], [4, 11], [9, 12], [9, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 2], [9, 3], [10, 7], [11, 4], [12, 9], [13, 9], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getExchangeType", "code": "    public Class<E> getExchangeType() {\n        Type type = getClass().getGenericSuperclass();\n        if (type instanceof ParameterizedType) {\n            ParameterizedType parameterizedType = (ParameterizedType) type;\n            Type[] arguments = parameterizedType.getActualTypeArguments();\n            if (arguments.length > 0) {\n                Type argumentType = arguments[0];\n                if (argumentType instanceof Class) {\n                    return (Class<E>) argumentType;\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [3, 9], [6, 10], [9, 11], [6, 12], [6, 13], [10, 14], [7, 15], [12, 16], [12, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 3], [10, 6], [11, 9], [12, 6], [13, 6], [14, 10], [15, 7], [16, 12], [17, 12], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "createExchange", "code": "    public E createExchange() {\n        return createExchange(getExchangePattern());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createExchange", "code": "    public E createExchange(ExchangePattern pattern) {\n        return (E) new DefaultExchange(getContext(), pattern);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getExchangePattern", "code": "    public ExchangePattern getExchangePattern() {\n        return exchangePattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExchangePattern", "code": "    public void setExchangePattern(ExchangePattern exchangePattern) {\n        this.exchangePattern = exchangePattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExecutorService", "code": "    protected ScheduledThreadPoolExecutor createExecutorService() {\n        return new ScheduledThreadPoolExecutor(10);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DefaultEndpoint", "code": "    protected DefaultEndpoint(String endpointUri, Component component) {\n        this(endpointUri, component.getCamelContext());\n        this.component = component;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DefaultEndpoint", "code": "    protected DefaultEndpoint(String endpointUri, CamelContext context) {\n        this.endpointUri = endpointUri;\n        this.context = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.2-1786", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/impl/PollingConsumerSupport.java", "language": "java", "name": "org.apache.camel.impl.PollingConsumerSupport", "code": "public abstract class PollingConsumerSupport<E extends Exchange> extends ServiceSupport implements\n    PollingConsumer<E> {\n    private final Endpoint<E> endpoint;\n    private ExceptionHandler exceptionHandler;\n\n    public PollingConsumerSupport(Endpoint<E> endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    @Override\n    public String toString() {\n        return \"PullConsumer on \" + endpoint;\n    }\n\n    public Endpoint<E> getEndpoint() {\n        return endpoint;\n    }\n\n    public ExceptionHandler getExceptionHandler() {\n        if (exceptionHandler == null) {\n            exceptionHandler = new LoggingExceptionHandler(getClass());\n        }\n        return exceptionHandler;\n    }\n\n    public void setExceptionHandler(ExceptionHandler exceptionHandler) {\n        this.exceptionHandler = exceptionHandler;\n    }\n\n    /**\n     * Handles the given exception using the {@link #getExceptionHandler()}\n     * \n     * @param t the exception to handle\n     */\n    protected void handleException(Throwable t) {\n        getExceptionHandler().handleException(t);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"PullConsumer on \" + endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEndpoint", "code": "    public Endpoint<E> getEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExceptionHandler", "code": "    public ExceptionHandler getExceptionHandler() {\n        if (exceptionHandler == null) {\n            exceptionHandler = new LoggingExceptionHandler(getClass());\n        }\n        return exceptionHandler;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setExceptionHandler", "code": "    public void setExceptionHandler(ExceptionHandler exceptionHandler) {\n        this.exceptionHandler = exceptionHandler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "handleException", "code": "    protected void handleException(Throwable t) {\n        getExceptionHandler().handleException(t);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "PollingConsumerSupport", "code": "    public PollingConsumerSupport(Endpoint<E> endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6215", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/usermodel/HSSFPicture.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFPicture", "code": "public class HSSFPicture\n        extends HSSFSimpleShape\n{\n\n    int pictureIndex;\n\n    /**\n     * Constructs a picture object.\n     */\n    HSSFPicture( HSSFShape parent, HSSFAnchor anchor )\n    {\n        super( parent, anchor );\n        setShapeType(OBJECT_TYPE_PICTURE);\n    }\n\n    public int getPictureIndex()\n    {\n        return pictureIndex;\n    }\n\n    public void setPictureIndex( int pictureIndex )\n    {\n        this.pictureIndex = pictureIndex;", "functions": [{"function_name": "getPictureIndex", "code": "    public int getPictureIndex()\n    {\n        return pictureIndex;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPictureIndex", "code": "    public void setPictureIndex( int pictureIndex )\n    {\n        this.pictureIndex = pictureIndex;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFPicture", "code": "    HSSFPicture( HSSFShape parent, HSSFAnchor anchor )\n    {\n        super( parent, anchor );\n        setShapeType(OBJECT_TYPE_PICTURE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.4-6737", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/lib/NodeInfo.java", "language": "java", "name": "org.apache.xalan.lib.NodeInfo", "code": "public class NodeInfo\n{\n  /**\n   * <code>systemId</code> returns the system id of the current\n   * context node.\n   *\n   * @param context an <code>ExpressionContext</code> value\n   * @return a <code>String</code> value\n   */\n  public static String systemId(ExpressionContext context)\n  {\n    Node contextNode = context.getContextNode();\n    int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getSystemId();\n    else\n      return null;\n  }\n\n  /**\n   * <code>systemId</code> returns the system id of the node passed as\n   * argument. If a node set is passed as argument, the system id of\n   * the first node in the set is returned.\n   *\n   * @param context an <code>ExpressionContext</code> value\n   * @param nodeList a <code>NodeList</code> value\n   * @return a <code>String</code> value\n   */\n  public static String systemId(NodeList nodeList)\n  {\n    if (nodeList == null || nodeList.getLength() == 0)\n      return null;\n    \n    Node node = nodeList.item(0);\n    int nodeHandler = ((DTMNodeProxy)node).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)node).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getSystemId();\n    else\n      return null;\n  }\n\n  /**\n   * <code>publicId</code> returns the public identifier of the current\n   * context node.\n   * \n   * Xalan does not currently record this value, and will return null.\n   *\n   * @param context an <code>ExpressionContext</code> value\n   * @return a <code>String</code> value\n   */\n  public static String publicId(ExpressionContext context)\n  {\n    Node contextNode = context.getContextNode();\n    int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getPublicId();\n    else\n      return null;\n  }\n\n  /**\n   * <code>publicId</code> returns the public identifier of the node passed as\n   * argument. If a node set is passed as argument, the public identifier of\n   * the first node in the set is returned.\n   * \n   * Xalan does not currently record this value, and will return null.\n   *\n   * @param nodeList a <code>NodeList</code> value\n   * @return a <code>String</code> value\n   */\n  public static String publicId(NodeList nodeList)\n  {\n    if (nodeList == null || nodeList.getLength() == 0)\n      return null;\n    \n    Node node = nodeList.item(0);\n    int nodeHandler = ((DTMNodeProxy)node).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)node).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getPublicId();\n    else\n      return null;\n  }\n\n  /**\n   * <code>lineNumber</code> returns the line number of the current\n   * context node.\n   * \n   * NOTE: Xalan does not normally record location information for each node. \n   * To obtain it, you must set the custom TrAX attribute \n   * true in the TransformerFactory before generating the Transformer and executing\n   * the stylesheet. Storage cost per node will be noticably increased in this mode.\n   *\n   * @param context an <code>ExpressionContext</code> value\n   * @return an <code>int</code> value. This may be -1 to indicate that the\n   * line number is not known.\n   */\n  public static int lineNumber(ExpressionContext context)\n  {\n    Node contextNode = context.getContextNode();\n    int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getLineNumber();\n    else\n      return -1;\n  }\n\n  /**\n   * <code>lineNumber</code> returns the line number of the node\n   * passed as argument. If a node set is passed as argument, the line\n   * number of the first node in the set is returned.\n   *\n   * NOTE: Xalan does not normally record location information for each node. \n   * To obtain it, you must set the custom TrAX attribute \n   * true in the TransformerFactory before generating the Transformer and executing\n   * the stylesheet. Storage cost per node will be noticably increased in this mode.\n   *\n   * @param nodeList a <code>NodeList</code> value\n   * @return an <code>int</code> value. This may be -1 to indicate that the\n   * line number is not known.\n   */\n  public static int lineNumber(NodeList nodeList)\n  {\n    if (nodeList == null || nodeList.getLength() == 0)\n      return -1;\n    \n    Node node = nodeList.item(0);\n    int nodeHandler = ((DTMNodeProxy)node).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)node).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getLineNumber();\n    else\n      return -1;\n  }\n\n  /**\n   * <code>columnNumber</code> returns the column number of the\n   * current context node.\n   *\n   * NOTE: Xalan does not normally record location information for each node. \n   * To obtain it, you must set the custom TrAX attribute \n   * true in the TransformerFactory before generating the Transformer and executing\n   * the stylesheet. Storage cost per node will be noticably increased in this mode.\n   *\n   * @param context an <code>ExpressionContext</code> value\n   * @return an <code>int</code> value. This may be -1 to indicate that the\n   * column number is not known.\n   */\n  public static int columnNumber(ExpressionContext context)\n  {\n    Node contextNode = context.getContextNode();\n    int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getColumnNumber();\n    else\n      return -1;\n  }\n\n  /**\n   * <code>columnNumber</code> returns the column number of the node\n   * passed as argument. If a node set is passed as argument, the line\n   * number of the first node in the set is returned.\n   *\n   * NOTE: Xalan does not normally record location information for each node. \n   * To obtain it, you must set the custom TrAX attribute \n   * true in the TransformerFactory before generating the Transformer and executing\n   * the stylesheet. Storage cost per node will be noticably increased in this mode.\n   *\n   * @param nodeList a <code>NodeList</code> value\n   * @return an <code>int</code> value. This may be -1 to indicate that the\n   * column number is not known.\n   */\n  public static int columnNumber(NodeList nodeList)\n  {\n    if (nodeList == null || nodeList.getLength() == 0)\n      return -1;\n    \n    Node node = nodeList.item(0);\n    int nodeHandler = ((DTMNodeProxy)node).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)node).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getColumnNumber();\n    else\n      return -1;", "functions": [{"function_name": "systemId", "code": "  public static String systemId(ExpressionContext context)\n  {\n    Node contextNode = context.getContextNode();\n    int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getSystemId();\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [7, 10], [8, 11], [4, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 7], [11, 8], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "systemId", "code": "  public static String systemId(NodeList nodeList)\n  {\n    if (nodeList == null || nodeList.getLength() == 0)\n      return null;\n    \n    Node node = nodeList.item(0);\n    int nodeHandler = ((DTMNodeProxy)node).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)node).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getSystemId();\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [5, 10], [5, 11], [7, 12], [8, 13], [9, 14], [4, 15], [10, 16], [11, 17], [11, 18], [15, 19], [17, 20], [17, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 5], [11, 5], [12, 7], [13, 8], [14, 9], [15, 4], [16, 10], [17, 11], [18, 11], [19, 15], [20, 17], [21, 17], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "publicId", "code": "  public static String publicId(ExpressionContext context)\n  {\n    Node contextNode = context.getContextNode();\n    int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getPublicId();\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [7, 10], [8, 11], [4, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 7], [11, 8], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "publicId", "code": "  public static String publicId(NodeList nodeList)\n  {\n    if (nodeList == null || nodeList.getLength() == 0)\n      return null;\n    \n    Node node = nodeList.item(0);\n    int nodeHandler = ((DTMNodeProxy)node).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)node).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getPublicId();\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [5, 10], [5, 11], [7, 12], [8, 13], [9, 14], [4, 15], [10, 16], [11, 17], [11, 18], [15, 19], [17, 20], [17, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 5], [11, 5], [12, 7], [13, 8], [14, 9], [15, 4], [16, 10], [17, 11], [18, 11], [19, 15], [20, 17], [21, 17], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "lineNumber", "code": "  public static int lineNumber(ExpressionContext context)\n  {\n    Node contextNode = context.getContextNode();\n    int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getLineNumber();\n    else\n      return -1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [7, 10], [8, 11], [4, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 7], [11, 8], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "lineNumber", "code": "  public static int lineNumber(NodeList nodeList)\n  {\n    if (nodeList == null || nodeList.getLength() == 0)\n      return -1;\n    \n    Node node = nodeList.item(0);\n    int nodeHandler = ((DTMNodeProxy)node).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)node).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getLineNumber();\n    else\n      return -1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [5, 10], [5, 11], [7, 12], [8, 13], [9, 14], [4, 15], [10, 16], [11, 17], [11, 18], [15, 19], [17, 20], [17, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 5], [11, 5], [12, 7], [13, 8], [14, 9], [15, 4], [16, 10], [17, 11], [18, 11], [19, 15], [20, 17], [21, 17], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "columnNumber", "code": "  public static int columnNumber(ExpressionContext context)\n  {\n    Node contextNode = context.getContextNode();\n    int nodeHandler = ((DTMNodeProxy)contextNode).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)contextNode).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getColumnNumber();\n    else\n      return -1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [7, 10], [8, 11], [4, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 7], [11, 8], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "columnNumber", "code": "  public static int columnNumber(NodeList nodeList)\n  {\n    if (nodeList == null || nodeList.getLength() == 0)\n      return -1;\n    \n    Node node = nodeList.item(0);\n    int nodeHandler = ((DTMNodeProxy)node).getDTMNodeNumber();\n    SourceLocator locator = ((DTMNodeProxy)node).getDTM()\n      .getSourceLocatorFor(nodeHandler);\n\n    if (locator != null)\n      return locator.getColumnNumber();\n    else\n      return -1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [5, 10], [5, 11], [7, 12], [8, 13], [9, 14], [4, 15], [10, 16], [11, 17], [11, 18], [15, 19], [17, 20], [17, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 5], [11, 5], [12, 7], [13, 8], [14, 9], [15, 4], [16, 10], [17, 11], [18, 11], [19, 15], [20, 17], [21, 17], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}], "label": 0}
{"sample_id": "xalan-2.6-7798", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/extensions/ExpressionContext.java", "language": "java", "name": "org.apache.xalan.extensions.ExpressionContext", "code": "public interface ExpressionContext\n{\n\n  /**\n   * Get the current context node.\n   * @return The current context node.\n   */\n  public Node getContextNode();\n\n  /**\n   * Get the current context node list.\n   * @return An iterator for the current context list, as\n   * defined in XSLT.\n   */\n  public NodeIterator getContextNodes();\n  \n  /**\n   * Get the error listener.\n   * @return The registered error listener.\n   */\n  public ErrorListener getErrorListener();\n\n  /**\n   * Get the value of a node as a number.\n   * @param n Node to be converted to a number.  May be null.\n   * @return value of n as a number.\n   */\n  public double toNumber(Node n);\n\n  /**\n   * Get the value of a node as a string.\n   * @param n Node to be converted to a string.  May be null.\n   * @return value of n as a string, or an empty string if n is null.\n   */\n  public String toString(Node n);\n\n  /**\n   * Get a variable based on it's qualified name.\n   *\n   * @param qname The qualified name of the variable.\n   *\n   * @return The evaluated value of the variable.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject getVariableOrParam(org.apache.xml.utils.QName qname)\n            throws javax.xml.transform.TransformerException;\n  \n  /**\n   * Get the XPathContext that owns this ExpressionContext.\n   * \n   * Note: exslt:function requires the XPathContext to access\n   * the variable stack and TransformerImpl.\n   * \n   * @return The current XPathContext.\n   * @throws javax.xml.transform.TransformerException\n   */\n  public org.apache.xpath.XPathContext getXPathContext()", "functions": [{"function_name": "getContextNode", "code": "  public Node getContextNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getContextNodes", "code": "  public NodeIterator getContextNodes();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getErrorListener", "code": "  public ErrorListener getErrorListener();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "toNumber", "code": "  public double toNumber(Node n);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "  public String toString(Node n);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getVariableOrParam", "code": "  public XObject getVariableOrParam(org.apache.xml.utils.QName qname)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXPathContext", "code": "  public org.apache.xpath.XPathContext getXPathContext()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.6-7490", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/res/XMLErrorResources_it.java", "language": "java", "name": "org.apache.xml.res.XMLErrorResources_it", "code": "public class XMLErrorResources_it extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 61;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 0;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 4;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Message keys\n   */\n  public static final String ER_FUNCTION_NOT_SUPPORTED = \"ER_FUNCTION_NOT_SUPPORTED\";\n  public static final String ER_CANNOT_OVERWRITE_CAUSE = \"ER_CANNOT_OVERWRITE_CAUSE\";\n  public static final String ER_NO_DEFAULT_IMPL = \"ER_NO_DEFAULT_IMPL\";\n  public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = \"ER_CHUNKEDINTARRAY_NOT_SUPPORTED\";\n  public static final String ER_OFFSET_BIGGER_THAN_SLOT = \"ER_OFFSET_BIGGER_THAN_SLOT\";\n  public static final String ER_COROUTINE_NOT_AVAIL = \"ER_COROUTINE_NOT_AVAIL\";\n  public static final String ER_COROUTINE_CO_EXIT = \"ER_COROUTINE_CO_EXIT\";\n  public static final String ER_COJOINROUTINESET_FAILED = \"ER_COJOINROUTINESET_FAILED\";\n  public static final String ER_COROUTINE_PARAM = \"ER_COROUTINE_PARAM\";\n  public static final String ER_PARSER_DOTERMINATE_ANSWERS = \"ER_PARSER_DOTERMINATE_ANSWERS\";\n  public static final String ER_NO_PARSE_CALL_WHILE_PARSING = \"ER_NO_PARSE_CALL_WHILE_PARSING\";\n  public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = \"ER_ITERATOR_CLONE_NOT_SUPPORTED\";\n  public static final String ER_UNKNOWN_AXIS_TYPE = \"ER_UNKNOWN_AXIS_TYPE\";\n  public static final String ER_AXIS_NOT_SUPPORTED = \"ER_AXIS_NOT_SUPPORTED\";\n  public static final String ER_NO_DTMIDS_AVAIL = \"ER_NO_DTMIDS_AVAIL\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_NODE_NON_NULL = \"ER_NODE_NON_NULL\";\n  public static final String ER_COULD_NOT_RESOLVE_NODE = \"ER_COULD_NOT_RESOLVE_NODE\";\n  public static final String ER_STARTPARSE_WHILE_PARSING = \"ER_STARTPARSE_WHILE_PARSING\";\n  public static final String ER_STARTPARSE_NEEDS_SAXPARSER = \"ER_STARTPARSE_NEEDS_SAXPARSER\";\n  public static final String ER_COULD_NOT_INIT_PARSER = \"ER_COULD_NOT_INIT_PARSER\";\n  public static final String ER_EXCEPTION_CREATING_POOL = \"ER_EXCEPTION_CREATING_POOL\";\n  public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = \"ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE\";\n  public static final String ER_SCHEME_REQUIRED = \"ER_SCHEME_REQUIRED\";\n  public static final String ER_NO_SCHEME_IN_URI = \"ER_NO_SCHEME_IN_URI\";\n  public static final String ER_NO_SCHEME_INURI = \"ER_NO_SCHEME_INURI\";\n  public static final String ER_PATH_INVALID_CHAR = \"ER_PATH_INVALID_CHAR\";\n  public static final String ER_SCHEME_FROM_NULL_STRING = \"ER_SCHEME_FROM_NULL_STRING\";\n  public static final String ER_SCHEME_NOT_CONFORMANT = \"ER_SCHEME_NOT_CONFORMANT\";\n  public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = \"ER_HOST_ADDRESS_NOT_WELLFORMED\";\n  public static final String ER_PORT_WHEN_HOST_NULL = \"ER_PORT_WHEN_HOST_NULL\";\n  public static final String ER_INVALID_PORT = \"ER_INVALID_PORT\";\n  public static final String ER_FRAG_FOR_GENERIC_URI =\"ER_FRAG_FOR_GENERIC_URI\";\n  public static final String ER_FRAG_WHEN_PATH_NULL = \"ER_FRAG_WHEN_PATH_NULL\";\n  public static final String ER_FRAG_INVALID_CHAR = \"ER_FRAG_INVALID_CHAR\";\n  public static final String ER_PARSER_IN_USE = \"ER_PARSER_IN_USE\";\n  public static final String ER_CANNOT_CHANGE_WHILE_PARSING = \"ER_CANNOT_CHANGE_WHILE_PARSING\";\n  public static final String ER_SELF_CAUSATION_NOT_PERMITTED = \"ER_SELF_CAUSATION_NOT_PERMITTED\";\n  public static final String ER_NO_USERINFO_IF_NO_HOST = \"ER_NO_USERINFO_IF_NO_HOST\";\n  public static final String ER_NO_PORT_IF_NO_HOST = \"ER_NO_PORT_IF_NO_HOST\";\n  public static final String ER_NO_QUERY_STRING_IN_PATH = \"ER_NO_QUERY_STRING_IN_PATH\";\n  public static final String ER_NO_FRAGMENT_STRING_IN_PATH = \"ER_NO_FRAGMENT_STRING_IN_PATH\";\n  public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = \"ER_CANNOT_INIT_URI_EMPTY_PARMS\";\n  public static final String ER_METHOD_NOT_SUPPORTED =\"ER_METHOD_NOT_SUPPORTED\";\n  public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = \"ER_INCRSAXSRCFILTER_NOT_RESTARTABLE\";\n  public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = \"ER_XMLRDR_NOT_BEFORE_STARTPARSE\";\n  public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = \"ER_AXIS_TRAVERSER_NOT_SUPPORTED\";\n  public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = \"ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER\";\n  public static final String ER_SYSTEMID_UNKNOWN = \"ER_SYSTEMID_UNKNOWN\";\n  public static final String ER_LOCATION_UNKNOWN = \"ER_LOCATION_UNKNOWN\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = \"ER_CREATEDOCUMENT_NOT_SUPPORTED\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT\";\n  public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = \"ER_CANT_OUTPUT_TEXT_BEFORE_DOC\";\n  public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = \"ER_CANT_HAVE_MORE_THAN_ONE_ROOT\";\n  public static final String ER_ARG_LOCALNAME_NULL = \"ER_ARG_LOCALNAME_NULL\";\n  public static final String ER_ARG_LOCALNAME_INVALID = \"ER_ARG_LOCALNAME_INVALID\";\n  public static final String ER_ARG_PREFIX_INVALID = \"ER_ARG_PREFIX_INVALID\";\n\n  public static final String ER_RESOURCE_COULD_NOT_FIND = \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD = \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_INVALID_UTF16_SURROGATE = \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_NAMESPACE_PREFIX = \"ER_NAMESPACE_PREFIX\";\n  public static final String ER_STRAY_ATTRIBUTE = \"ER_STRAY_ATTIRBUTE\";\n  public static final String ER_STRAY_NAMESPACE = \"ER_STRAY_NAMESPACE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE = \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = \"ER_COULD_NOT_LOAD_METHOD_PROPERTY\";\n  public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = \"ER_SERIALIZER_NOT_CONTENTHANDLER\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = \"ER_ILLEGAL_ATTRIBUTE_POSITION\";\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /** The lookup table for error messages.   */\n  public static final Object[][] contents = {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"Funzione non supportata.\"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"Impossibile sovrascrivere causa\"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"Non \\u00e8 stata trovata alcuna implementazione predefinita \"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"ChunkedIntArray({0}) correntemente non supportato\"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"Offset pi\\u00f9 grande dello slot\"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"Coroutine non disponibile, id={0}\"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager ha ricevuto la richiesta co_exit()\"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"co_joinCoroutineSet() con esito negativo\"},\n\n    { ER_COROUTINE_PARAM,\n      \"Errore parametro Coroutine {0})\"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\nNON PREVISTO: Risposte doTerminate del parser {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"impossibile richiamare l'analisi durante l''analisi\"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Errore: iteratore immesso per l''asse {0} non implementato \"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Errore: iteratore per l''asse {0} non implementato \"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"Clone iteratore non supportato\"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"Tipo trasversale di asse sconosciuto: {0}\"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"Trasversale dell''asse non supportato: {0}\"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"Non vi sono ulteriori ID DTM disponibili\"},\n\n    { ER_NOT_SUPPORTED,\n      \"Non supportato: {0}\"},\n\n    { ER_NODE_NON_NULL,\n      \"Il nodo deve essere non nullo per getDTMHandleFromNode\"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"Impossibile risolvere il nodo in un handle\"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"Impossibile richiamare startParse durante l'analisi\"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse richiede SAXParser non nullo\"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"impossibile inizializzare il parser con\"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"si \\u00e8 verificata un'eccezione durante la creazione della nuova istanza per il pool\"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"Il percorso contiene sequenza di escape non valida\"},\n\n    { ER_SCHEME_REQUIRED,\n       \"Lo schema \\u00e8 obbligatorio.\"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"Nessuno schema trovato nell''URI: {0}\"},\n\n    { ER_NO_SCHEME_INURI,\n       \"Non \\u00e8 stato trovato alcuno schema nell'URI\"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"Il percorso contiene un carattere non valido: {0}\"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"Impossibile impostare lo schema da una stringa nulla\"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"Lo schema non \\u00e8 conforme.\"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"Host non \\u00e8 un'indirizzo corretto\"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"La porta non pu\\u00f2 essere impostata se l'host \\u00e8 nullo\"},\n\n    { ER_INVALID_PORT,\n       \"Numero di porta non valido\"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"Il frammento pu\\u00f2 essere impostato solo per un URI generico\"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"Il frammento non pu\\u00f2 essere impostato se il percorso \\u00e8 nullo\"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"Il frammento contiene un carattere non valido\"},\n\n    { ER_PARSER_IN_USE,\n      \"Parser gi\\u00e0 in utilizzo\"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"Impossibile modificare {0} {1} durante l''analisi\"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"Self-causation non consentito\"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"Userinfo non pu\\u00f2 essere specificato se l'host non \\u00e8 specificato\"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"La porta non pu\\u00f2 essere specificata se l'host non \\u00e8 specificato\"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"La stringa di interrogazione non pu\\u00f2 essere specificata nella stringa di interrogazione e percorso.\"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"Il frammento non pu\\u00f2 essere specificato sia nel percorso che nel frammento\"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"Impossibile inizializzare l'URI con i parametri vuoti\"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"Metodo non ancora supportato \"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"IncrementalSAXSource_Filter correntemente non riavviabile\"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"XMLReader non si trova prima della richiesta startParse\"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"Trasversale dell''asse non supportato: {0}\"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"ListingErrorHandler creato con PrintWriter nullo.\"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"SystemId sconosciuto\"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"Posizione di errore sconosciuta\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"Il prefisso deve risolvere in uno spazio nomi: {0}\"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"createDocument() non supportato in XPathContext!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"Il secondario dell'attributo non ha un documento proprietario.\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"Il secondario dell'attributo non ha un elemento del documento proprietario.\"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"Attenzione: impossibile emettere testo prima dell'elemento del documento. Operazione ignorata...\"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"Impossibile avere pi\\u00f9 di una root in un DOM!\"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"Argomento 'localName' nullo\"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"Localname in QNAME deve essere un NCName valido \"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"Prefix in QNAME deve essere un NCName valido \"},\n\n    { \"BAD_CODE\", \"Il parametro per createMessage fuori limite\"},\n    { \"FORMAT_FAILED\", \"Rilevata eccezione durante la chiamata messageFormat\"},\n    { \"line\", \"Riga #\"},\n    { \"column\",\"Colonna #\"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"La classe serializer ''{0}'' non implementa org.xml.sax.ContentHandler.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"Risorsa [ {0} ] non trovata.\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"Impossibile caricare la risorsa [ {0} ]: {1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"Dimensione buffer <=0\" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"Rilevato surrogato UTF-16 non valido: {0} ?\" },\n\n    {ER_OIERROR,\n      \"Errore IO\" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"Impossibile aggiungere l''attributo {0} dopo i nodi secondari o prima che sia prodotto un elemento. L''attributo verr\\u00e0 ignorato. \"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"Lo spazio nomi per il prefisso ''{0}'' non \\u00e8 stato dichiarato. \" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"Attributo ''{0}'' al di fuori dell''elemento. \" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"Dichiarazione dello spazio nome ''{0}''=''{1}'' al di fuori dell''elemento. \" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"Impossibile caricare ''{0}'' (verificare CLASSPATH); verranno utilizzati i valori predefiniti \"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"Impossibile caricare il file delle propriet\\u00e0 ''{0}'' per il metodo di emissione ''{1}'' (verificare CLASSPATH)\" }\n\n\n  };\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"it\", \"IT\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"it\", \"IT\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "xalan-2.4-6807", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xpath/patterns/UnionPattern.java", "language": "java", "name": "org.apache.xpath.patterns.UnionPattern", "code": "public class UnionPattern extends Expression\n{\n\n  /** Array of the contained step patterns to be tested.\n   *  @serial  */\n  private StepPattern[] m_patterns;\n  \n  /**\n   * No arguments to process, so this does nothing.\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    for (int i = 0; i < m_patterns.length; i++) \n    {\n      m_patterns[i].fixupVariables(vars, globalsSize);\n    }\n  }\n\n  \n  /**\n   * Tell if this expression or it's subexpressions can traverse outside \n   * the current subtree.\n   * \n   * @return true if traversal outside the context node's subtree can occur.\n   */\n   public boolean canTraverseOutsideSubtree()\n   {\n     if(null != m_patterns)\n     {\n      int n = m_patterns.length;\n      for (int i = 0; i < n; i++) \n      {\n        if(m_patterns[i].canTraverseOutsideSubtree())\n          return true;\n      }\n     }\n     return false;\n   }\n\n  /**\n   * Set the contained step patterns to be tested. \n   *\n   *\n   * @param patterns the contained step patterns to be tested. \n   */\n  public void setPatterns(StepPattern[] patterns)\n  {\n    m_patterns = patterns;\n    if(null != patterns)\n    {\n    \tfor(int i = 0; i < patterns.length; i++)\n    \t{\n    \t\tpatterns[i].exprSetParent(this);\n    \t}\n    }\n    \n  }\n\n  /**\n   * Get the contained step patterns to be tested. \n   *\n   *\n   * @return an array of the contained step patterns to be tested. \n   */\n  public StepPattern[] getPatterns()\n  {\n    return m_patterns;\n  }\n\n  /**\n   * Test a node to see if it matches any of the patterns in the union.\n   *\n   * @param xctxt XPath runtime context.\n   *\n   * @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_QNAME}, or\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_OTHER}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    XObject bestScore = null;\n    int n = m_patterns.length;\n\n    for (int i = 0; i < n; i++)\n    {\n      XObject score = m_patterns[i].execute(xctxt);\n\n      if (score != NodeTest.SCORE_NONE)\n      {\n        if (null == bestScore)\n          bestScore = score;\n        else if (score.num() > bestScore.num())\n          bestScore = score;\n      }\n    }\n\n    if (null == bestScore)\n    {\n      bestScore = NodeTest.SCORE_NONE;\n    }\n\n    return bestScore;\n  }\n  \n  class UnionPathPartOwner implements ExpressionOwner\n  {\n  \tint m_index;\n  \t\n  \tUnionPathPartOwner(int index)\n  \t{\n  \t\tm_index = index;\n  \t}\n  \t\n    /**\n     * @see ExpressionOwner#getExpression()\n     */\n    public Expression getExpression()\n    {\n      return m_patterns[m_index];\n    }\n\n\n    /**\n     * @see ExpressionOwner#setExpression(Expression)\n     */\n    public void setExpression(Expression exp)\n    {\n    \texp.exprSetParent(UnionPattern.this);\n    \tm_patterns[m_index] = (StepPattern)exp;\n    }\n  }\n  \n  /**\n   * @see XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitUnionPattern(owner, this);\n  \tif(null != m_patterns)\n  \t{\n  \t\tint n = m_patterns.length;\n  \t\tfor(int i = 0; i < n; i++)\n  \t\t{\n  \t\t\tm_patterns[i].callVisitors(new UnionPathPartOwner(i), visitor);\n  \t\t}\n  \t}\n  }\n  \n  /**\n   * @see Expression#deepEquals(Expression)\n   */\n  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \tUnionPattern up = (UnionPattern)expr;\n  \t\t\n  \tif(null != m_patterns)\n  \t{\n  \t\tint n = m_patterns.length;\n  \t\tif((null == up.m_patterns) || (up.m_patterns.length != n))\n  \t\t\treturn false;\n  \t\t\t\n  \t\tfor(int i = 0; i < n; i++)\n  \t\t{\n  \t\t\tif(!m_patterns[i].deepEquals(up.m_patterns[i]))\n  \t\t\t\treturn false;\n  \t\t}\n  \t}\n  \telse if(up.m_patterns != null)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "functions": [{"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    for (int i = 0; i < m_patterns.length; i++) \n    {\n      m_patterns[i].fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "canTraverseOutsideSubtree", "code": "   public boolean canTraverseOutsideSubtree()\n   {\n     if(null != m_patterns)\n     {\n      int n = m_patterns.length;\n      for (int i = 0; i < n; i++) \n      {\n        if(m_patterns[i].canTraverseOutsideSubtree())\n          return true;\n      }\n     }\n     return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [4, 7], [5, 8], [5, 9], [9, 10], [5, 11], [10, 12], [9, 13], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 4], [8, 5], [9, 5], [10, 9], [11, 5], [12, 10], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setPatterns", "code": "  public void setPatterns(StepPattern[] patterns)\n  {\n    m_patterns = patterns;\n    if(null != patterns)\n    {\n    \tfor(int i = 0; i < patterns.length; i++)\n    \t{\n    \t\tpatterns[i].exprSetParent(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [5, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 5], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getPatterns", "code": "  public StepPattern[] getPatterns()\n  {\n    return m_patterns;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    XObject bestScore = null;\n    int n = m_patterns.length;\n\n    for (int i = 0; i < n; i++)\n    {\n      XObject score = m_patterns[i].execute(xctxt);\n\n      if (score != NodeTest.SCORE_NONE)\n      {\n        if (null == bestScore)\n          bestScore = score;\n        else if (score.num() > bestScore.num())\n          bestScore = score;\n      }\n    }\n\n    if (null == bestScore)\n    {\n      bestScore = NodeTest.SCORE_NONE;\n    }\n\n    return bestScore;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [7, 9], [3, 10], [3, 11], [5, 12], [2, 13], [10, 14], [3, 15], [10, 16], [16, 17], [16, 18], [11, 19], [17, 20], [16, 21], [18, 22], [17, 23], [20, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 7], [10, 3], [11, 3], [12, 5], [13, 2], [14, 10], [15, 3], [16, 10], [17, 16], [18, 16], [19, 11], [20, 17], [21, 16], [22, 18], [23, 17], [24, 20], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitUnionPattern(owner, this);\n  \tif(null != m_patterns)\n  \t{\n  \t\tint n = m_patterns.length;\n  \t\tfor(int i = 0; i < n; i++)\n  \t\t{\n  \t\t\tm_patterns[i].callVisitors(new UnionPathPartOwner(i), visitor);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [4, 8], [6, 9], [6, 10], [6, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 4], [9, 6], [10, 6], [11, 6], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "deepEquals", "code": "  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \tUnionPattern up = (UnionPattern)expr;\n  \t\t\n  \tif(null != m_patterns)\n  \t{\n  \t\tint n = m_patterns.length;\n  \t\tif((null == up.m_patterns) || (up.m_patterns.length != n))\n  \t\t\treturn false;\n  \t\t\t\n  \t\tfor(int i = 0; i < n; i++)\n  \t\t{\n  \t\t\tif(!m_patterns[i].deepEquals(up.m_patterns[i]))\n  \t\t\t\treturn false;\n  \t\t}\n  \t}\n  \telse if(up.m_patterns != null)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [8, 16], [9, 17], [11, 18], [12, 19], [13, 20], [14, 21], [14, 22], [13, 23], [21, 24], [22, 25], [22, 26], [23, 27], [13, 28], [26, 29], [27, 30], [23, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 8], [17, 9], [18, 11], [19, 12], [20, 13], [21, 14], [22, 14], [23, 13], [24, 21], [25, 22], [26, 22], [27, 23], [28, 13], [29, 26], [30, 27], [31, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}], "label": 0}
{"sample_id": "ant-1.7-1287", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/depend/constantpool/InterfaceMethodRefCPInfo.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.depend.constantpool.InterfaceMethodRefCPInfo", "code": "public class InterfaceMethodRefCPInfo extends ConstantPoolEntry {\n    /** the class name of the class defining the interface method */\n    private String interfaceMethodClassName;\n    /** the name of the interface nmethod */\n    private String interfaceMethodName;\n    /** the method signature of the interface method */\n    private String interfaceMethodType;\n    /**\n     * the index into the constant pool of the class entry for the interface\n     * class\n     */\n    private int classIndex;\n    /**\n     * the index into the constant pool of the name and type entry\n     * describing the method\n     */\n    private int nameAndTypeIndex;\n\n    /** Constructor. */\n    public InterfaceMethodRefCPInfo() {\n        super(CONSTANT_INTERFACEMETHODREF, 1);\n    }\n\n    /**\n     * read a constant pool entry from a class stream.\n     *\n     * @param cpStream the DataInputStream which contains the constant pool\n     *      entry to be read.\n     * @exception IOException if there is a problem reading the entry from\n     *      the stream.\n     */\n    public void read(DataInputStream cpStream) throws IOException {\n        classIndex = cpStream.readUnsignedShort();\n        nameAndTypeIndex = cpStream.readUnsignedShort();\n    }\n\n    /**\n     * Resolve this constant pool entry with respect to its dependents in\n     * the constant pool.\n     *\n     * @param constantPool the constant pool of which this entry is a member\n     *      and against which this entry is to be resolved.\n     */\n    public void resolve(ConstantPool constantPool) {\n        ClassCPInfo interfaceMethodClass\n             = (ClassCPInfo) constantPool.getEntry(classIndex);\n\n        interfaceMethodClass.resolve(constantPool);\n\n        interfaceMethodClassName = interfaceMethodClass.getClassName();\n\n        NameAndTypeCPInfo nt\n             = (NameAndTypeCPInfo) constantPool.getEntry(nameAndTypeIndex);\n\n        nt.resolve(constantPool);\n\n        interfaceMethodName = nt.getName();\n        interfaceMethodType = nt.getType();\n\n        super.resolve(constantPool);\n    }\n\n    /**\n     * Print a readable version of the constant pool entry.\n     *\n     * @return the string representation of this constant pool entry.\n     */\n    public String toString() {\n        String value;\n\n        if (isResolved()) {\n            value = \"InterfaceMethod : Class = \" + interfaceMethodClassName\n                 + \", name = \" + interfaceMethodName + \", type = \"\n                 + interfaceMethodType;\n        } else {\n            value = \"InterfaceMethod : Class index = \" + classIndex\n                 + \", name and type index = \" + nameAndTypeIndex;\n        }\n\n        return value;\n    }\n\n    /**\n     * Gets the name of the class defining the interface method\n     *\n     * @return the name of the class defining the interface method\n     */\n    public String getInterfaceMethodClassName() {\n        return interfaceMethodClassName;\n    }\n\n    /**\n     * Get the name of the interface method\n     *\n     * @return the name of the interface method\n     */\n    public String getInterfaceMethodName() {\n        return interfaceMethodName;\n    }\n\n    /**\n     * Gets the type of the interface method\n     *\n     * @return the interface method's type signature\n     */\n    public String getInterfaceMethodType() {\n        return interfaceMethodType;", "functions": [{"function_name": "read", "code": "    public void read(DataInputStream cpStream) throws IOException {\n        classIndex = cpStream.readUnsignedShort();\n        nameAndTypeIndex = cpStream.readUnsignedShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resolve", "code": "    public void resolve(ConstantPool constantPool) {\n        ClassCPInfo interfaceMethodClass\n             = (ClassCPInfo) constantPool.getEntry(classIndex);\n\n        interfaceMethodClass.resolve(constantPool);\n\n        interfaceMethodClassName = interfaceMethodClass.getClassName();\n\n        NameAndTypeCPInfo nt\n             = (NameAndTypeCPInfo) constantPool.getEntry(nameAndTypeIndex);\n\n        nt.resolve(constantPool);\n\n        interfaceMethodName = nt.getName();\n        interfaceMethodType = nt.getType();\n\n        super.resolve(constantPool);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [7, 11], [1, 12], [2, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 7], [12, 1], [13, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "toString", "code": "    public String toString() {\n        String value;\n\n        if (isResolved()) {\n            value = \"InterfaceMethod : Class = \" + interfaceMethodClassName\n                 + \", name = \" + interfaceMethodName + \", type = \"\n                 + interfaceMethodType;\n        } else {\n            value = \"InterfaceMethod : Class index = \" + classIndex\n                 + \", name and type index = \" + nameAndTypeIndex;\n        }\n\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [5, 7], [6, 8], [7, 9], [8, 10], [9, 11], [9, 12], [10, 13], [10, 14], [12, 15], [14, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 5], [8, 6], [9, 7], [10, 8], [11, 9], [12, 9], [13, 10], [14, 10], [15, 12], [16, 14], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getInterfaceMethodClassName", "code": "    public String getInterfaceMethodClassName() {\n        return interfaceMethodClassName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInterfaceMethodName", "code": "    public String getInterfaceMethodName() {\n        return interfaceMethodName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInterfaceMethodType", "code": "    public String getInterfaceMethodType() {\n        return interfaceMethodType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "InterfaceMethodRefCPInfo", "code": "    public InterfaceMethodRefCPInfo() {\n        super(CONSTANT_INTERFACEMETHODREF, 1);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.5-457", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/TempFile.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.TempFile", "code": "public class TempFile extends Task {\n\n    /**\n     *  name of property to set\n     */\n    private String property;\n\n    /**\n     *  directory to create the file in. can be null\n     */\n    private File destDir = null;\n\n    /**\n     *  prefix for the file\n     */\n    private String prefix;\n\n    /**\n     *  suffix for the file\n     */\n    private String suffix = \"\";\n\n\n    /**\n     *  The property you wish to assign the temporary file to\n     *\n     *@param  property  The property to set\n     */\n    public void setProperty(String property) {\n        this.property = property;\n    }\n\n\n    /**\n     *  destination directory. If null, \n     the parent directory is used instead\n     *\n     *@param  destDir  The new destDir value\n     */\n    public void setDestDir(File destDir) {\n        this.destDir = destDir;\n    }\n\n\n    /**\n     *  optional prefix string\n     *\n     *@param  prefix  string to prepend to generated string\n     */\n    public void setPrefix(String prefix) {\n        this.prefix = prefix;\n    }\n\n\n    /**\n     *  Suffix string for the temp file (optional)\n     *\n     *@param  suffix  suffix including any \".\" , e.g \".xml\"\n     */\n    public void setSuffix(String suffix) {\n        this.suffix = suffix;\n    }\n\n\n    /**\n     *  create the temp file\n     *\n     *@exception  BuildException  if something goes wrong with the build\n     */\n    public void execute() throws BuildException {\n        if (property == null || property.length() == 0) {\n            throw new BuildException(\"no property specified\");\n        }\n        if (destDir == null) {\n            destDir = project.resolveFile(\".\");\n        }\n        FileUtils utils = FileUtils.newFileUtils();\n        File tfile = utils.createTempFile(prefix, suffix, destDir);\n        project.setNewProperty(property, tfile.toString());", "functions": [{"function_name": "setProperty", "code": "    public void setProperty(String property) {\n        this.property = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDestDir", "code": "    public void setDestDir(File destDir) {\n        this.destDir = destDir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPrefix", "code": "    public void setPrefix(String prefix) {\n        this.prefix = prefix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSuffix", "code": "    public void setSuffix(String suffix) {\n        this.suffix = suffix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (property == null || property.length() == 0) {\n            throw new BuildException(\"no property specified\");\n        }\n        if (destDir == null) {\n            destDir = project.resolveFile(\".\");\n        }\n        FileUtils utils = FileUtils.newFileUtils();\n        File tfile = utils.createTempFile(prefix, suffix, destDir);\n        project.setNewProperty(property, tfile.toString());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [5, 8], [1, 9], [2, 10], [6, 11], [4, 12], [7, 13], [7, 14], [3, 15], [12, 16], [13, 17], [13, 18], [14, 19], [15, 20], [16, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 5], [9, 1], [10, 2], [11, 6], [12, 4], [13, 7], [14, 7], [15, 3], [16, 12], [17, 13], [18, 13], [19, 14], [20, 15], [21, 16], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}], "label": 0}
{"sample_id": "camel-1.0-1578", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/http/HttpMessage.java", "language": "java", "name": "org.apache.camel.component.http.HttpMessage", "code": "public class HttpMessage extends DefaultMessage {\n    private HttpServletRequest request;\n\n\n    public HttpMessage(HttpExchange exchange, HttpServletRequest request) {\n        setExchange(exchange);\n        this.request = request;\n\n        getBody();\n        getHeaders();\n    }\n\n    @Override\n    public HttpExchange getExchange() {\n        return (HttpExchange) super.getExchange();\n    }\n\n    public HttpServletRequest getRequest() {\n        return request;\n    }\n\n    @Override\n    protected Object createBody() {\n        try {\n            return getExchange().getEndpoint().getBinding().parseBody(this);\n        }\n        catch (IOException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    @Override\n    protected void populateInitialHeaders(Map<String, Object> map) {\n        Enumeration names = request.getHeaderNames();\n        while (names.hasMoreElements()) {\n            String name = (String) names.nextElement();\n            Object value = request.getHeader(name);\n            map.put(name, value);", "functions": [{"function_name": "getExchange", "code": "    @Override\n    public HttpExchange getExchange() {\n        return (HttpExchange) super.getExchange();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRequest", "code": "    public HttpServletRequest getRequest() {\n        return request;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createBody", "code": "    @Override\n    protected Object createBody() {\n        try {\n            return getExchange().getEndpoint().getBinding().parseBody(this);\n        }\n        catch (IOException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [5, 7], [5, 8], [5, 9], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [7, 5], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "populateInitialHeaders", "code": "    @Override\n    protected void populateInitialHeaders(Map<String, Object> map) {\n        Enumeration names = request.getHeaderNames();\n        while (names.hasMoreElements()) {\n            String name = (String) names.nextElement();\n            Object value = request.getHeader(name);\n            map.put(name, value);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [1, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 1], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "HttpMessage", "code": "    public HttpMessage(HttpExchange exchange, HttpServletRequest request) {\n        setExchange(exchange);\n        this.request = request;\n\n        getBody();\n        getHeaders();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "camel-1.2-1629", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/validation/ValidatingProcessor.java", "language": "java", "name": "org.apache.camel.processor.validation.ValidatingProcessor", "code": "public class ValidatingProcessor implements Processor {\n    private Schema schema;\n    private ValidatorErrorHandler errorHandler = new DefaultValidationErrorHandler();\n\n    private String schemaLanguage = XMLConstants.W3C_XML_SCHEMA_NS_URI;\n    private Source schemaSource;\n    private SchemaFactory schemaFactory;\n    private URL schemaUrl;\n    private File schemaFile;\n\n    public void process(Exchange exchange) throws Exception {\n        Schema schema = getSchema();\n        Validator validator = schema.newValidator();\n\n        Source source = exchange.getIn().getBody(DOMSource.class);\n        if (source == null) {\n            throw new NoXmlBodyValidationException(exchange);\n        }\n\n        errorHandler.reset();\n        validator.setErrorHandler(errorHandler);\n\n        DOMResult result = new DOMResult();\n        validator.validate(source, result);\n\n        errorHandler.handleErrors(exchange, schema, result);\n        /*\n         * set the schema and source document as properties on the fault\n         * fault.setProperty(\"org.apache.servicemix.schema\", schema);\n         * fault.setProperty(\"org.apache.servicemix.xml\", source);\n         * \n             * check if this error handler supports the capturing of error\n             * messages.\n             * if (errorHandler.capturesMessages()) {\n             * \n             * In descending order of preference select a format to use. If\n             * neither DOMSource, StringSource or String are supported throw a\n             * messaging exception.\n             * if (errorHandler.supportsMessageFormat(DOMSource.class)) {\n             * fault.setContent( (DOMSource)\n             * errorHandler.getMessagesAs(DOMSource.class)); } else if\n             * (errorHandler.supportsMessageFormat(StringSource.class)) {\n             * fault.setContent(sourceTransformer.toDOMSource( (StringSource)\n             * errorHandler.getMessagesAs(StringSource.class))); } else if\n             * (errorHandler.supportsMessageFormat(String.class)) {\n             * fault.setContent( sourceTransformer.toDOMSource( new\n             * StringSource( (String)\n             * errorHandler.getMessagesAs(String.class)))); } else { throw new\n             * MessagingException(\"MessageAwareErrorHandler implementation \" +\n             * errorHandler.getClass().getName() + \" does not support a\n             * compatible error message format.\"); } } else {\n             * we can't do much here if the ErrorHandler implementation does not\n             * support capturing messages\n             * fault.setContent(new DOMSource(result.getNode(),\n             * result.getSystemId())); } throw new FaultException(\"Failed to\n             * changed by the validator out.setContent(new\n             * DOMSource(result.getNode(), result.getSystemId())); } }\n             */\n    }\n\n\n    public Schema getSchema() throws IOException, SAXException {\n        if (schema == null) {\n            schema = createSchema();\n        }\n        return schema;\n    }\n\n    public void setSchema(Schema schema) {\n        this.schema = schema;\n    }\n\n    public String getSchemaLanguage() {\n        return schemaLanguage;\n    }\n\n    public void setSchemaLanguage(String schemaLanguage) {\n        this.schemaLanguage = schemaLanguage;\n    }\n\n    public Source getSchemaSource() throws IOException {\n        if (schemaSource == null) {\n            schemaSource = createSchemaSource();\n        }\n        return schemaSource;\n    }\n\n    public void setSchemaSource(Source schemaSource) {\n        this.schemaSource = schemaSource;\n    }\n\n    public URL getSchemaUrl() {\n        return schemaUrl;\n    }\n\n    public void setSchemaUrl(URL schemaUrl) {\n        this.schemaUrl = schemaUrl;\n    }\n\n    public File getSchemaFile() {\n        return schemaFile;\n    }\n\n    public void setSchemaFile(File schemaFile) {\n        this.schemaFile = schemaFile;\n    }\n\n    public SchemaFactory getSchemaFactory() {\n        if (schemaFactory == null) {\n            schemaFactory = createSchemaFactory();\n        }\n        return schemaFactory;\n    }\n\n    public void setSchemaFactory(SchemaFactory schemaFactory) {\n        this.schemaFactory = schemaFactory;\n    }\n\n    public ValidatorErrorHandler getErrorHandler() {\n        return errorHandler;\n    }\n\n    public void setErrorHandler(ValidatorErrorHandler errorHandler) {\n        this.errorHandler = errorHandler;\n    }\n\n\n    protected SchemaFactory createSchemaFactory() {\n        return SchemaFactory.newInstance(schemaLanguage);\n    }\n\n    protected Source createSchemaSource() throws IOException {\n        throw new IllegalArgumentException(\"You must specify a schema, \"\n                                           + \"schemaFile, schemaSource or schemaUrl property\");\n    }\n\n    protected Schema createSchema() throws SAXException, IOException {\n        SchemaFactory factory = getSchemaFactory();\n\n        URL url = getSchemaUrl();\n        if (url != null) {\n            return factory.newSchema(url);\n        }\n        File file = getSchemaFile();\n        if (file != null) {\n            return factory.newSchema(file);\n        }\n        return factory.newSchema(getSchemaSource());", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        Schema schema = getSchema();\n        Validator validator = schema.newValidator();\n\n        Source source = exchange.getIn().getBody(DOMSource.class);\n        if (source == null) {\n            throw new NoXmlBodyValidationException(exchange);\n        }\n\n        errorHandler.reset();\n        validator.setErrorHandler(errorHandler);\n\n        DOMResult result = new DOMResult();\n        validator.validate(source, result);\n\n        errorHandler.handleErrors(exchange, schema, result);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [1, 12], [2, 13], [11, 14], [3, 15], [4, 16], [5, 17], [13, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 1], [13, 2], [14, 11], [15, 3], [16, 4], [17, 5], [18, 13], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getSchema", "code": "    public Schema getSchema() throws IOException, SAXException {\n        if (schema == null) {\n            schema = createSchema();\n        }\n        return schema;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setSchema", "code": "    public void setSchema(Schema schema) {\n        this.schema = schema;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSchemaLanguage", "code": "    public String getSchemaLanguage() {\n        return schemaLanguage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSchemaLanguage", "code": "    public void setSchemaLanguage(String schemaLanguage) {\n        this.schemaLanguage = schemaLanguage;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSchemaSource", "code": "    public Source getSchemaSource() throws IOException {\n        if (schemaSource == null) {\n            schemaSource = createSchemaSource();\n        }\n        return schemaSource;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setSchemaSource", "code": "    public void setSchemaSource(Source schemaSource) {\n        this.schemaSource = schemaSource;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSchemaUrl", "code": "    public URL getSchemaUrl() {\n        return schemaUrl;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSchemaUrl", "code": "    public void setSchemaUrl(URL schemaUrl) {\n        this.schemaUrl = schemaUrl;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSchemaFile", "code": "    public File getSchemaFile() {\n        return schemaFile;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSchemaFile", "code": "    public void setSchemaFile(File schemaFile) {\n        this.schemaFile = schemaFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSchemaFactory", "code": "    public SchemaFactory getSchemaFactory() {\n        if (schemaFactory == null) {\n            schemaFactory = createSchemaFactory();\n        }\n        return schemaFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setSchemaFactory", "code": "    public void setSchemaFactory(SchemaFactory schemaFactory) {\n        this.schemaFactory = schemaFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandler", "code": "    public ValidatorErrorHandler getErrorHandler() {\n        return errorHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorHandler", "code": "    public void setErrorHandler(ValidatorErrorHandler errorHandler) {\n        this.errorHandler = errorHandler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createSchemaFactory", "code": "    protected SchemaFactory createSchemaFactory() {\n        return SchemaFactory.newInstance(schemaLanguage);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createSchemaSource", "code": "    protected Source createSchemaSource() throws IOException {\n        throw new IllegalArgumentException(\"You must specify a schema, \"\n                                           + \"schemaFile, schemaSource or schemaUrl property\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createSchema", "code": "    protected Schema createSchema() throws SAXException, IOException {\n        SchemaFactory factory = getSchemaFactory();\n\n        URL url = getSchemaUrl();\n        if (url != null) {\n            return factory.newSchema(url);\n        }\n        File file = getSchemaFile();\n        if (file != null) {\n            return factory.newSchema(file);\n        }\n        return factory.newSchema(getSchemaSource());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [7, 10], [2, 11], [8, 12], [3, 13], [4, 14], [9, 15], [5, 16], [6, 17], [11, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 7], [11, 2], [12, 8], [13, 3], [14, 4], [15, 9], [16, 5], [17, 6], [18, 11], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 0}
{"sample_id": "xalan-2.7-8426", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/NotCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.NotCall", "code": "final class NotCall extends FunctionCall {\n    public NotCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\targument().translate(classGen, methodGen);\n\til.append(ICONST_1);\n\til.append(IXOR);\n    }\n\n    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Expression exp = argument();\n\texp.translateDesynthesized(classGen, methodGen);\n\tfinal BranchHandle gotoh = il.append(new GOTO(null));\n\t_falseList = exp._trueList;\n\t_falseList.add(gotoh);", "functions": [{"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\targument().translate(classGen, methodGen);\n\til.append(ICONST_1);\n\til.append(IXOR);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "translateDesynthesized", "code": "    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Expression exp = argument();\n\texp.translateDesynthesized(classGen, methodGen);\n\tfinal BranchHandle gotoh = il.append(new GOTO(null));\n\t_falseList = exp._trueList;\n\t_falseList.add(gotoh);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "NotCall", "code": "    public NotCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.7-1180", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/extension/JarLibResolveTask.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.extension.JarLibResolveTask", "code": "public class JarLibResolveTask extends Task {\n    /**\n     * The name of the property in which the location of\n     * library is stored.\n     */\n    private String propertyName;\n\n    /**\n     * The extension that is required.\n     */\n    private Extension requiredExtension;\n\n    /**\n     * The set of resolvers to use to attempt to locate library.\n     */\n    private final ArrayList resolvers = new ArrayList();\n\n    /**\n     * Flag to indicate that you should check that\n     * the librarys resolved actually contain\n     * extension and if they don't then raise\n     * an exception.\n     */\n    private boolean checkExtension = true;\n\n    /**\n     * Flag indicating whether or not you should\n     * throw a BuildException if you cannot resolve\n     * library.\n     */\n    private boolean failOnError = true;\n\n    /**\n     * The name of the property in which the location of\n     * library is stored.\n     *\n     * @param property The name of the property in which the location of\n     *                 library is stored.\n     */\n    public void setProperty(final String property) {\n        this.propertyName = property;\n    }\n\n    /**\n     * Check nested libraries for extensions\n     *\n     * @param checkExtension if true, libraries returned by nested\n     * resolvers should be checked to see if they supply extension.\n     */\n    public void setCheckExtension(final boolean checkExtension) {\n        this.checkExtension = checkExtension;\n    }\n\n    /**\n     * Set whether to fail if error.\n     *\n     * @param failOnError if true, failure to locate library should fail build.\n     */\n    public void setFailOnError(final boolean failOnError) {\n        this.failOnError = failOnError;\n    }\n\n    /**\n     * Adds location resolver to look for a library in a location\n     * relative to project directory.\n     *\n     * @param loc the resolver location to search.\n     */\n    public void addConfiguredLocation(final LocationResolver loc) {\n        resolvers.add(loc);\n    }\n\n    /**\n     * Adds a URL resolver to download a library from a URL\n     * to a local file.\n     *\n     * @param url the URL resolver from which to download the library\n     */\n    public void addConfiguredUrl(final URLResolver url) {\n        resolvers.add(url);\n    }\n\n    /**\n     * Adds Ant resolver to run an Ant build file to generate a library.\n     *\n     * @param ant the AntResolver to generate the library.\n     */\n    public void addConfiguredAnt(final AntResolver ant) {\n        resolvers.add(ant);\n    }\n\n    /**\n     * Set the Extension looking for.\n     *\n     * @param extension Set the Extension looking for.\n     */\n    public void addConfiguredExtension(final ExtensionAdapter extension) {\n        if (null != requiredExtension) {\n            final String message = \"Can not specify extension to \"\n                + \"resolve multiple times.\";\n            throw new BuildException(message);\n        }\n        requiredExtension = extension.toExtension();\n    }\n\n    /**\n     * Execute the task.\n     *\n     * @throws BuildException if the task fails.\n     */\n    public void execute() throws BuildException {\n        validate();\n\n        getProject().log(\"Resolving extension: \" + requiredExtension,\n                          Project.MSG_VERBOSE);\n\n        String candidate =\n            getProject().getProperty(propertyName);\n\n        if (null != candidate) {\n            final String message = \"Property Already set to: \" + candidate;\n            if (failOnError) {\n                throw new BuildException(message);\n            }\n            getProject().log(message, Project.MSG_ERR);\n            return;\n        }\n\n        final int size = resolvers.size();\n        for (int i = 0; i < size; i++) {\n            final ExtensionResolver resolver =\n                (ExtensionResolver) resolvers.get(i);\n\n            getProject().log(\"Searching for extension using Resolver:\" + resolver,\n                              Project.MSG_VERBOSE);\n\n            try {\n                final File file =\n                    resolver.resolve(requiredExtension, getProject());\n                try {\n                    checkExtension(file);\n                    return;\n                } catch (final BuildException be) {\n                    final String message = \"File \" + file + \" returned by \"\n                        + \"resolver failed to satisfy extension due to: \"\n                        + be.getMessage();\n                    getProject().log(message, Project.MSG_WARN);\n                }\n            } catch (final BuildException be) {\n                final String message = \"Failed to resolve extension to file \"\n                    + \"using resolver \" + resolver + \" due to: \" + be;\n                getProject().log(message, Project.MSG_WARN);\n            }\n        }\n\n        missingExtension();\n    }\n\n    /**\n     * Utility method that will throw a {@link BuildException}\n     * if {@link #failOnError} is true else it just displays\n     * a warning.\n     */\n    private void missingExtension() {\n        final String message =\n            \"Unable to resolve extension to a file\";\n        if (failOnError) {\n            throw new BuildException(message);\n        }\n        getProject().log(message, Project.MSG_ERR);\n    }\n\n    /**\n     * Check if specified file satisfies extension.\n     * If it does then set the relevent property\n     * else throw a BuildException.\n     *\n     * @param file the candidate library\n     * @throws BuildException if library does not satisfy extension\n     */\n    private void checkExtension(final File file) {\n        if (!file.exists()) {\n            final String message =\n                \"File \" + file + \" does not exist\";\n            throw new BuildException(message);\n        }\n        if (!file.isFile()) {\n            final String message =\n                \"File \" + file + \" is not a file\";\n            throw new BuildException(message);\n        }\n\n        if (!checkExtension) {\n            final String message = \"Setting property to \" + file\n                + \" without verifying library satisfies extension\";\n            getProject().log(message, Project.MSG_VERBOSE);\n            setLibraryProperty(file);\n        } else {\n            getProject().log(\"Checking file \" + file\n                + \" to see if it satisfies extension\", Project.MSG_VERBOSE);\n            final Manifest manifest =\n                ExtensionUtil.getManifest(file);\n            final Extension[] extensions =\n                Extension.getAvailable(manifest);\n            for (int i = 0; i < extensions.length; i++) {\n                final Extension extension = extensions[ i ];\n                if (extension.isCompatibleWith(requiredExtension)) {\n                    setLibraryProperty(file);\n                    return;\n                }\n            }\n\n            getProject().log(\"File \" + file + \" skipped as it \"\n                + \"does not satisfy extension\", Project.MSG_VERBOSE);\n\n            final String message =\n                \"File \" + file + \" does not satisfy extension\";\n            throw new BuildException(message);\n        }\n    }\n\n    /**\n     * Utility method to set the appropriate property\n     * to indicate that specified file satisfies library\n     * requirements.\n     *\n     * @param file the library\n     */\n    private void setLibraryProperty(final File file) {\n        getProject().setNewProperty(propertyName,\n                                     file.getAbsolutePath());\n    }\n\n    /**\n     * Validate the tasks parameters.\n     *\n     * @throws BuildException if invalid parameters found\n     */\n    private void validate() throws BuildException {\n        if (null == propertyName) {\n            final String message = \"Property attribute must be specified.\";\n            throw new BuildException(message);\n        }\n\n        if (null == requiredExtension) {\n            final String message = \"Extension element must be specified.\";\n            throw new BuildException(message);", "functions": [{"function_name": "setProperty", "code": "    public void setProperty(final String property) {\n        this.propertyName = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCheckExtension", "code": "    public void setCheckExtension(final boolean checkExtension) {\n        this.checkExtension = checkExtension;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFailOnError", "code": "    public void setFailOnError(final boolean failOnError) {\n        this.failOnError = failOnError;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addConfiguredLocation", "code": "    public void addConfiguredLocation(final LocationResolver loc) {\n        resolvers.add(loc);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addConfiguredUrl", "code": "    public void addConfiguredUrl(final URLResolver url) {\n        resolvers.add(url);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addConfiguredAnt", "code": "    public void addConfiguredAnt(final AntResolver ant) {\n        resolvers.add(ant);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addConfiguredExtension", "code": "    public void addConfiguredExtension(final ExtensionAdapter extension) {\n        if (null != requiredExtension) {\n            final String message = \"Can not specify extension to \"\n                + \"resolve multiple times.\";\n            throw new BuildException(message);\n        }\n        requiredExtension = extension.toExtension();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [1, 7], [4, 8], [6, 9], [7, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 1], [8, 4], [9, 6], [10, 7], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        validate();\n\n        getProject().log(\"Resolving extension: \" + requiredExtension,\n                          Project.MSG_VERBOSE);\n\n        String candidate =\n            getProject().getProperty(propertyName);\n\n        if (null != candidate) {\n            final String message = \"Property Already set to: \" + candidate;\n            if (failOnError) {\n                throw new BuildException(message);\n            }\n            getProject().log(message, Project.MSG_ERR);\n            return;\n        }\n\n        final int size = resolvers.size();\n        for (int i = 0; i < size; i++) {\n            final ExtensionResolver resolver =\n                (ExtensionResolver) resolvers.get(i);\n\n            getProject().log(\"Searching for extension using Resolver:\" + resolver,\n                              Project.MSG_VERBOSE);\n\n            try {\n                final File file =\n                    resolver.resolve(requiredExtension, getProject());\n                try {\n                    checkExtension(file);\n                    return;\n                } catch (final BuildException be) {\n                    final String message = \"File \" + file + \" returned by \"\n                        + \"resolver failed to satisfy extension due to: \"\n                        + be.getMessage();\n                    getProject().log(message, Project.MSG_WARN);\n                }\n            } catch (final BuildException be) {\n                final String message = \"Failed to resolve extension to file \"\n                    + \"using resolver \" + resolver + \" due to: \" + be;\n                getProject().log(message, Project.MSG_WARN);\n            }\n        }\n\n        missingExtension();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "TRY", "VAR_DECL", "CALL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "TRY", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "CATCH", "RETURN", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [0, 8], [0, 9], [1, 10], [1, 11], [2, 12], [3, 13], [3, 14], [3, 15], [7, 16], [4, 17], [8, 18], [10, 19], [10, 20], [10, 21], [1, 22], [1, 23], [3, 24], [17, 25], [18, 26], [19, 27], [20, 28], [20, 29], [22, 30], [24, 31], [14, 32], [15, 33], [26, 34], [19, 35], [28, 36], [20, 37], [21, 38], [30, 39], [11, 40], [32, 41], [33, 42], [35, 43], [27, 44], [28, 45], [38, 46], [39, 47], [44, 48], [45, 49], [36, 50], [48, 51], [48, 52], [50, 53], [50, 54], [52, 55], [54, 56], [54, 57], [55, 58], [55, 59], [57, 60], [57, 61], [61, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 0], [9, 0], [10, 1], [11, 1], [12, 2], [13, 3], [14, 3], [15, 3], [16, 7], [17, 4], [18, 8], [19, 10], [20, 10], [21, 10], [22, 1], [23, 1], [24, 3], [25, 17], [26, 18], [27, 19], [28, 20], [29, 20], [30, 22], [31, 24], [32, 14], [33, 15], [34, 26], [35, 19], [36, 28], [37, 20], [38, 21], [39, 30], [40, 11], [41, 32], [42, 33], [43, 35], [44, 27], [45, 28], [46, 38], [47, 39], [48, 44], [49, 45], [50, 36], [51, 48], [52, 48], [53, 50], [54, 50], [55, 52], [56, 54], [57, 54], [58, 55], [59, 55], [60, 57], [61, 57], [62, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "missingExtension", "code": "    private void missingExtension() {\n        final String message =\n            \"Unable to resolve extension to a file\";\n        if (failOnError) {\n            throw new BuildException(message);\n        }\n        getProject().log(message, Project.MSG_ERR);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "checkExtension", "code": "    private void checkExtension(final File file) {\n        if (!file.exists()) {\n            final String message =\n                \"File \" + file + \" does not exist\";\n            throw new BuildException(message);\n        }\n        if (!file.isFile()) {\n            final String message =\n                \"File \" + file + \" is not a file\";\n            throw new BuildException(message);\n        }\n\n        if (!checkExtension) {\n            final String message = \"Setting property to \" + file\n                + \" without verifying library satisfies extension\";\n            getProject().log(message, Project.MSG_VERBOSE);\n            setLibraryProperty(file);\n        } else {\n            getProject().log(\"Checking file \" + file\n                + \" to see if it satisfies extension\", Project.MSG_VERBOSE);\n            final Manifest manifest =\n                ExtensionUtil.getManifest(file);\n            final Extension[] extensions =\n                Extension.getAvailable(manifest);\n            for (int i = 0; i < extensions.length; i++) {\n                final Extension extension = extensions[ i ];\n                if (extension.isCompatibleWith(requiredExtension)) {\n                    setLibraryProperty(file);\n                    return;\n                }\n            }\n\n            getProject().log(\"File \" + file + \" skipped as it \"\n                + \"does not satisfy extension\", Project.MSG_VERBOSE);\n\n            final String message =\n                \"File \" + file + \" does not satisfy extension\";\n            throw new BuildException(message);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [2, 14], [3, 15], [3, 16], [7, 17], [1, 18], [9, 19], [1, 20], [1, 21], [1, 22], [13, 23], [15, 24], [8, 25], [18, 26], [9, 27], [9, 28], [10, 29], [11, 30], [20, 31], [22, 32], [12, 33], [14, 34], [16, 35], [25, 36], [25, 37], [26, 38], [27, 39], [9, 40], [31, 41], [33, 42], [33, 43], [34, 44], [34, 45], [35, 46], [35, 47], [37, 48], [38, 49], [38, 50], [27, 51], [41, 52], [41, 53], [43, 54], [45, 55], [47, 56], [50, 57], [50, 58], [27, 59], [53, 60], [58, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 2], [15, 3], [16, 3], [17, 7], [18, 1], [19, 9], [20, 1], [21, 1], [22, 1], [23, 13], [24, 15], [25, 8], [26, 18], [27, 9], [28, 9], [29, 10], [30, 11], [31, 20], [32, 22], [33, 12], [34, 14], [35, 16], [36, 25], [37, 25], [38, 26], [39, 27], [40, 9], [41, 31], [42, 33], [43, 33], [44, 34], [45, 34], [46, 35], [47, 35], [48, 37], [49, 38], [50, 38], [51, 27], [52, 41], [53, 41], [54, 43], [55, 45], [56, 47], [57, 50], [58, 50], [59, 27], [60, 53], [61, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "setLibraryProperty", "code": "    private void setLibraryProperty(final File file) {\n        getProject().setNewProperty(propertyName,\n                                     file.getAbsolutePath());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "validate", "code": "    private void validate() throws BuildException {\n        if (null == propertyName) {\n            final String message = \"Property attribute must be specified.\";\n            throw new BuildException(message);\n        }\n\n        if (null == requiredExtension) {\n            final String message = \"Extension element must be specified.\";\n            throw new BuildException(message);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [3, 7], [2, 8], [2, 9], [4, 10], [5, 11], [8, 12], [6, 13], [9, 14], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 3], [8, 2], [9, 2], [10, 4], [11, 5], [12, 8], [13, 6], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "xalan-2.4-6761", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/utils/FastStringBuffer.java", "language": "java", "name": "org.apache.xml.utils.FastStringBuffer", "code": "public class FastStringBuffer\n{\n  /**/static final int DEBUG_FORCE_INIT_BITS=0;\n  \n\tstatic boolean DEBUG_FORCE_FIXED_CHUNKSIZE=true;\n\n\t/** Manefest constant: Suppress leading whitespace.\n\t * This should be used when normalize-to-SAX is called for the first chunk of a\n\t * multi-chunk output, or one following unsuppressed whitespace in a previous\n\t * chunk.\n\t * @see sendNormalizedSAXcharacters(char[],int,int,org.xml.sax.ContentHandler,int)\n\t */\n\tpublic static final int SUPPRESS_LEADING_WS=0x01;\n\t\n\t/** Manefest constant: Suppress trailing whitespace.\n\t * This should be used when normalize-to-SAX is called for the last chunk of a\n\t * multi-chunk output; it may have to be or'ed with SUPPRESS_LEADING_WS.\n\t */\n\tpublic static final int SUPPRESS_TRAILING_WS=0x02;\n\t\n\t/** Manefest constant: Suppress both leading and trailing whitespace.\n\t * This should be used when normalize-to-SAX is called for a complete string.\n\t * (I'm not wild about the name of this one. Ideas welcome.)\n\t * @see sendNormalizedSAXcharacters(char[],int,int,org.xml.sax.ContentHandler,int)\n\t */\n\tpublic static final int SUPPRESS_BOTH\n\t\t= SUPPRESS_LEADING_WS | SUPPRESS_TRAILING_WS;\n\n\t/** Manefest constant: Carry trailing whitespace of one chunk as leading \n\t * whitespace of the next chunk. Used internally; I don't see any reason\n\t * to make it public right now.\n\t */\n\tprivate static final int CARRY_WS=0x04;\n\n\t/**\n   * Field m_chunkBits sets our chunking strategy, by saying how many\n   * bits of index can be used within a single chunk before flowing over\n   * to the next chunk. For example, if m_chunkbits is set to 15, each\n   * chunk can contain up to 2^15 (32K) characters  \n   */\n  int m_chunkBits = 15;\n\n  /**\n   * Field m_maxChunkBits affects our chunk-growth strategy, by saying what\n   * the largest permissible chunk size is in this particular FastStringBuffer\n   * hierarchy. \n   */\n  int m_maxChunkBits = 15;\n\n  /**\n   * Field m_rechunkBits affects our chunk-growth strategy, by saying how\n   * many chunks should be allocated at one size before we encapsulate them\n   * into the first chunk of the next size up. For example, if m_rechunkBits\n   * is set to 3, then after 8 chunks at a given size we will rebundle\n   * them as the first element of a FastStringBuffer using a chunk size\n   * 8 times larger (chunkBits shifted left three bits).\n   */\n  int m_rebundleBits = 2;\n\n  /**\n   * Field m_chunkSize establishes the maximum size of one chunk of the array\n   * as 2**chunkbits characters.\n   * (Which may also be the minimum size if we aren't tuning for storage) \n   */\n\n  /**\n   * Field m_chunkMask is m_chunkSize-1 -- in other words, m_chunkBits\n   * worth of low-order '1' bits, useful for shift-and-mask addressing\n   * within the chunks. \n   */\n\n  /**\n   * Field m_array holds the string buffer's text contents, using an\n   * array-of-arrays. Note that this array, and the arrays it contains, may be\n   * reallocated when necessary in order to allow the buffer to grow;\n   * references to them should be considered to be invalidated after any\n   * append. However, the only time these arrays are directly exposed\n   * is in the sendSAXcharacters call.\n   */\n  char[][] m_array;\n\n  /**\n   * Field m_lastChunk is an index into m_array[], pointing to the last\n   * chunk of the Chunked Array currently in use. Note that additional\n   * chunks may actually be allocated, eg if the FastStringBuffer had\n   * previously been truncated or if someone issued an ensureSpace request.\n   * <p>\n   * The insertion point for append operations is addressed by the combination\n   * of m_lastChunk and m_firstFree.\n   */\n  int m_lastChunk = 0;\n\n  /**\n   * Field m_firstFree is an index into m_array[m_lastChunk][], pointing to\n   * the first character in the Chunked Array which is not part of the\n   * FastStringBuffer's current content. Since m_array[][] is zero-based,\n   * the length of that content can be calculated as\n   * (m_lastChunk<<m_chunkBits) + m_firstFree \n   */\n  int m_firstFree = 0;\n\n  /**\n   * Field m_innerFSB, when non-null, is a FastStringBuffer whose total\n   * length equals m_chunkSize, and which replaces m_array[0]. This allows\n   * building a hierarchy of FastStringBuffers, where early appends use\n   * a smaller chunkSize (for less wasted memory overhead) but later\n   * ones use a larger chunkSize (for less heap activity overhead).\n   */\n  FastStringBuffer m_innerFSB = null;\n\n  /**\n   * Construct a FastStringBuffer, with allocation policy as per parameters.\n   * <p>\n   * For coding convenience, I've expressed both allocation sizes in terms of\n   * a number of bits. That's needed for the final size of a chunk,\n   * to permit fast and efficient shift-and-mask addressing. It's less critical\n   * for the inital size, and may be reconsidered.\n   * <p>\n   * An alternative would be to accept integer sizes and round to powers of two;\n   * that really doesn't seem to buy us much, if anything.\n   *\n   * @param initChunkBits Length in characters of the initial allocation\n   * of a chunk, expressed in log-base-2. (That is, 10 means allocate 1024\n   * characters.) Later chunks will use larger allocation units, to trade off\n   * allocation speed of large document against storage efficiency of small\n   * ones.\n   * @param maxChunkBits Number of character-offset bits that should be used for\n   * addressing within a chunk. Maximum length of a chunk is 2^chunkBits\n   * characters.\n   * @param rebundleBits Number of character-offset bits that addressing should\n   * advance before we attempt to take a step from initChunkBits to maxChunkBits\n   */\n  public FastStringBuffer(int initChunkBits, int maxChunkBits,\n                          int rebundleBits)\n  {\n    if(DEBUG_FORCE_INIT_BITS!=0) initChunkBits=DEBUG_FORCE_INIT_BITS;\n    \n    if(DEBUG_FORCE_FIXED_CHUNKSIZE) maxChunkBits=initChunkBits;\n\n    m_array = new char[16][];\n\n    if (initChunkBits > maxChunkBits)\n      initChunkBits = maxChunkBits;\n\n    m_chunkBits = initChunkBits;\n    m_maxChunkBits = maxChunkBits;\n    m_rebundleBits = rebundleBits;\n    m_chunkSize = 1 << (initChunkBits);\n    m_chunkMask = m_chunkSize - 1;\n    m_array[0] = new char[m_chunkSize];\n  }\n\n  /**\n   * Construct a FastStringBuffer, using a default rebundleBits value.\n   *\n   * NEEDSDOC @param initChunkBits\n   * NEEDSDOC @param maxChunkBits\n   */\n  public FastStringBuffer(int initChunkBits, int maxChunkBits)\n  {\n    this(initChunkBits, maxChunkBits, 2);\n  }\n\n  /**\n   * Construct a FastStringBuffer, using default maxChunkBits and\n   * rebundleBits values.\n   * <p>\n   * ISSUE: Should this call assert initial size, or fixed size?\n   * Now configured as initial, with a default for fixed.\n   *\n   * @param\n   *\n   * NEEDSDOC @param initChunkBits\n   */\n  public FastStringBuffer(int initChunkBits)\n  {\n    this(initChunkBits, 15, 2);\n  }\n\n  /**\n   * Construct a FastStringBuffer, using a default allocation policy.\n   */\n  public FastStringBuffer()\n  {\n\n    this(10, 15, 2);\n  }\n\n  /**\n   * Get the length of the list. Synonym for length().\n   *\n   * @return the number of characters in the FastStringBuffer's content.\n   */\n  public final int size()\n  {\n    return (m_lastChunk << m_chunkBits) + m_firstFree;\n  }\n\n  /**\n   * Get the length of the list. Synonym for size().\n   *\n   * @return the number of characters in the FastStringBuffer's content.\n   */\n  public final int length()\n  {\n    return (m_lastChunk << m_chunkBits) + m_firstFree;\n  }\n\n  /**\n   * Discard the content of the FastStringBuffer, and most of the memory\n   * that was allocated by it, restoring the initial state. Note that this\n   * may eventually be different from setLength(0), which see.\n   */\n  public final void reset()\n  {\n\n    m_lastChunk = 0;\n    m_firstFree = 0;\n\n    FastStringBuffer innermost = this;\n\n    while (innermost.m_innerFSB != null)\n    {\n      innermost = innermost.m_innerFSB;\n    }\n\n    m_chunkBits = innermost.m_chunkBits;\n    m_chunkSize = innermost.m_chunkSize;\n    m_chunkMask = innermost.m_chunkMask;\n\n    m_innerFSB = null;\n    m_array = new char[16][0];\n    m_array[0] = new char[m_chunkSize];\n  }\n\n  /**\n   * Directly set how much of the FastStringBuffer's storage is to be\n   * considered part of its content. This is a fast but hazardous\n   * operation. It is not protected against negative values, or values\n   * greater than the amount of storage currently available... and even\n   * if additional storage does exist, its contents are unpredictable.\n   * The only safe use for our setLength() is to truncate the FastStringBuffer\n   * to a shorter string.\n   *\n   * @param l New length. If l<0 or l>=getLength(), this operation will\n   * not report an error but future operations will almost certainly fail.\n   */\n  public final void setLength(int l)\n  {\n    m_lastChunk = l >>> m_chunkBits;\n\n    if (m_lastChunk == 0 && m_innerFSB != null)\n    {\n      m_innerFSB.setLength(l, this);\n    }\n    else\n    {\n      m_firstFree = l & m_chunkMask;\n      \n      if(m_firstFree==0 && m_lastChunk>0)\n      {\n      \t--m_lastChunk;\n      \tm_firstFree=m_chunkSize;\n      }\n    }\n  }\n\n  /**\n   * Subroutine for the public setLength() method. Deals with the fact\n   * that truncation may require restoring one of the innerFSBs\n   *\n   * NEEDSDOC @param l\n   * NEEDSDOC @param rootFSB\n   */\n  private final void setLength(int l, FastStringBuffer rootFSB)\n  {\n\n    m_lastChunk = l >>> m_chunkBits;\n\n    if (m_lastChunk == 0 && m_innerFSB != null)\n    {\n      m_innerFSB.setLength(l, rootFSB);\n    }\n    else\n    {\n\n      rootFSB.m_chunkBits = m_chunkBits;\n      rootFSB.m_maxChunkBits = m_maxChunkBits;\n      rootFSB.m_rebundleBits = m_rebundleBits;\n      rootFSB.m_chunkSize = m_chunkSize;\n      rootFSB.m_chunkMask = m_chunkMask;\n      rootFSB.m_array = m_array;\n      rootFSB.m_innerFSB = m_innerFSB;\n      rootFSB.m_lastChunk = m_lastChunk;\n\n      rootFSB.m_firstFree = l & m_chunkMask;\n    }\n  }\n\n  /**\n   * Note that this operation has been somewhat deoptimized by the shift to a\n   * chunked array, as there is no factory method to produce a String object\n   * directly from an array of arrays and hence a double copy is needed.\n   * By using ensureCapacity we hope to minimize the heap overhead of building\n   * the intermediate StringBuffer.\n   * <p>\n   * (It really is a pity that Java didn't design String as a final subclass\n   * of MutableString, rather than having StringBuffer be a separate hierarchy.\n   * We'd avoid a <strong>lot</strong> of double-buffering.)\n   *\n   * @return the contents of the FastStringBuffer as a standard Java string.\n   */\n  public final String toString()\n  {\n\n    int length = (m_lastChunk << m_chunkBits) + m_firstFree;\n\n    return getString(new StringBuffer(length), 0, 0, length).toString();\n  }\n\n  /**\n   * Append a single character onto the FastStringBuffer, growing the\n   * storage if necessary.\n   * <p>\n   * NOTE THAT after calling append(), previously obtained\n   * references to m_array[][] may no longer be valid....\n   * though in fact they should be in this instance.\n   *\n   * @param value character to be appended.\n   */\n  public final void append(char value)\n  {\n    \n    char[] chunk;\n\n    boolean lastchunk = (m_lastChunk + 1 == m_array.length);\n\n      chunk = m_array[m_lastChunk];\n    \n\n      int i = m_array.length;\n\n      if (m_lastChunk + 1 == i)\n      {\n        char[][] newarray = new char[i + 16][];\n\n        System.arraycopy(m_array, 0, newarray, 0, i);\n\n        m_array = newarray;\n      }\n\n      chunk = m_array[++m_lastChunk];\n\n      if (chunk == null)\n      {\n\n        if (m_lastChunk == 1 << m_rebundleBits\n                && m_chunkBits < m_maxChunkBits)\n        {\n\n          m_innerFSB = new FastStringBuffer(this);\n        }\n\n        chunk = m_array[m_lastChunk] = new char[m_chunkSize];\n      }\n\n      m_firstFree = 0;\n    \n\n    chunk[m_firstFree++] = value;\n  }\n\n  /**\n   * Append the contents of a String onto the FastStringBuffer,\n   * growing the storage if necessary.\n   * <p>\n   * NOTE THAT after calling append(), previously obtained\n   * references to m_array[] may no longer be valid.\n   *\n   * @param value String whose contents are to be appended.\n   */\n  public final void append(String value)\n  {\n\n    if (value == null) \n      return;\n    int strlen = value.length();\n\n    if (0 == strlen)\n      return;\n\n    int copyfrom = 0;\n    char[] chunk = m_array[m_lastChunk];\n    int available = m_chunkSize - m_firstFree;\n\n    while (strlen > 0)\n    {\n\n      if (available > strlen)\n        available = strlen;\n\n      value.getChars(copyfrom, copyfrom + available, m_array[m_lastChunk],\n                     m_firstFree);\n\n      strlen -= available;\n      copyfrom += available;\n\n      if (strlen > 0)\n      {\n\n        int i = m_array.length;\n\n        if (m_lastChunk + 1 == i)\n        {\n          char[][] newarray = new char[i + 16][];\n\n          System.arraycopy(m_array, 0, newarray, 0, i);\n\n          m_array = newarray;\n        }\n\n        chunk = m_array[++m_lastChunk];\n\n        if (chunk == null)\n        {\n\n          if (m_lastChunk == 1 << m_rebundleBits\n                  && m_chunkBits < m_maxChunkBits)\n          {\n\n            m_innerFSB = new FastStringBuffer(this);\n          }\n\n          chunk = m_array[m_lastChunk] = new char[m_chunkSize];\n        }\n\n        available = m_chunkSize;\n        m_firstFree = 0;\n      }\n    }\n\n    m_firstFree += available;\n  }\n\n  /**\n   * Append the contents of a StringBuffer onto the FastStringBuffer,\n   * growing the storage if necessary.\n   * <p>\n   * NOTE THAT after calling append(), previously obtained\n   * references to m_array[] may no longer be valid.\n   *\n   * @param value StringBuffer whose contents are to be appended.\n   */\n  public final void append(StringBuffer value)\n  {\n\n    if (value == null) \n      return;\n    int strlen = value.length();\n\n    if (0 == strlen)\n      return;\n\n    int copyfrom = 0;\n    char[] chunk = m_array[m_lastChunk];\n    int available = m_chunkSize - m_firstFree;\n\n    while (strlen > 0)\n    {\n\n      if (available > strlen)\n        available = strlen;\n\n      value.getChars(copyfrom, copyfrom + available, m_array[m_lastChunk],\n                     m_firstFree);\n\n      strlen -= available;\n      copyfrom += available;\n\n      if (strlen > 0)\n      {\n\n        int i = m_array.length;\n\n        if (m_lastChunk + 1 == i)\n        {\n          char[][] newarray = new char[i + 16][];\n\n          System.arraycopy(m_array, 0, newarray, 0, i);\n\n          m_array = newarray;\n        }\n\n        chunk = m_array[++m_lastChunk];\n\n        if (chunk == null)\n        {\n\n          if (m_lastChunk == 1 << m_rebundleBits\n                  && m_chunkBits < m_maxChunkBits)\n          {\n\n            m_innerFSB = new FastStringBuffer(this);\n          }\n\n          chunk = m_array[m_lastChunk] = new char[m_chunkSize];\n        }\n\n        available = m_chunkSize;\n        m_firstFree = 0;\n      }\n    }\n\n    m_firstFree += available;\n  }\n\n  /**\n   * Append part of the contents of a Character Array onto the\n   * FastStringBuffer,  growing the storage if necessary.\n   * <p>\n   * NOTE THAT after calling append(), previously obtained\n   * references to m_array[] may no longer be valid.\n   *\n   * @param chars character array from which data is to be copied\n   * @param start offset in chars of first character to be copied,\n   * zero-based.\n   * @param length number of characters to be copied\n   */\n  public final void append(char[] chars, int start, int length)\n  {\n\n    int strlen = length;\n\n    if (0 == strlen)\n      return;\n\n    int copyfrom = start;\n    char[] chunk = m_array[m_lastChunk];\n    int available = m_chunkSize - m_firstFree;\n\n    while (strlen > 0)\n    {\n\n      if (available > strlen)\n        available = strlen;\n\n      System.arraycopy(chars, copyfrom, m_array[m_lastChunk], m_firstFree,\n                       available);\n\n      strlen -= available;\n      copyfrom += available;\n\n      if (strlen > 0)\n      {\n\n        int i = m_array.length;\n\n        if (m_lastChunk + 1 == i)\n        {\n          char[][] newarray = new char[i + 16][];\n\n          System.arraycopy(m_array, 0, newarray, 0, i);\n\n          m_array = newarray;\n        }\n\n        chunk = m_array[++m_lastChunk];\n\n        if (chunk == null)\n        {\n\n          if (m_lastChunk == 1 << m_rebundleBits\n                  && m_chunkBits < m_maxChunkBits)\n          {\n\n            m_innerFSB = new FastStringBuffer(this);\n          }\n\n          chunk = m_array[m_lastChunk] = new char[m_chunkSize];\n        }\n\n        available = m_chunkSize;\n        m_firstFree = 0;\n      }\n    }\n\n    m_firstFree += available;\n  }\n\n  /**\n   * Append the contents of another FastStringBuffer onto\n   * this FastStringBuffer, growing the storage if necessary.\n   * <p>\n   * NOTE THAT after calling append(), previously obtained\n   * references to m_array[] may no longer be valid.\n   *\n   * @param value FastStringBuffer whose contents are\n   * to be appended.\n   */\n  public final void append(FastStringBuffer value)\n  {\n\n    if (value == null) \n      return;\n    int strlen = value.length();\n\n    if (0 == strlen)\n      return;\n\n    int copyfrom = 0;\n    char[] chunk = m_array[m_lastChunk];\n    int available = m_chunkSize - m_firstFree;\n\n    while (strlen > 0)\n    {\n\n      if (available > strlen)\n        available = strlen;\n\n      int sourcechunk = (copyfrom + value.m_chunkSize - 1)\n                        >>> value.m_chunkBits;\n      int sourcecolumn = copyfrom & value.m_chunkMask;\n      int runlength = value.m_chunkSize - sourcecolumn;\n\n      if (runlength > available)\n        runlength = available;\n\n      System.arraycopy(value.m_array[sourcechunk], sourcecolumn,\n                       m_array[m_lastChunk], m_firstFree, runlength);\n\n      if (runlength != available)\n        System.arraycopy(value.m_array[sourcechunk + 1], 0,\n                         m_array[m_lastChunk], m_firstFree + runlength,\n                         available - runlength);\n\n      strlen -= available;\n      copyfrom += available;\n\n      if (strlen > 0)\n      {\n\n        int i = m_array.length;\n\n        if (m_lastChunk + 1 == i)\n        {\n          char[][] newarray = new char[i + 16][];\n\n          System.arraycopy(m_array, 0, newarray, 0, i);\n\n          m_array = newarray;\n        }\n\n        chunk = m_array[++m_lastChunk];\n\n        if (chunk == null)\n        {\n\n          if (m_lastChunk == 1 << m_rebundleBits\n                  && m_chunkBits < m_maxChunkBits)\n          {\n\n            m_innerFSB = new FastStringBuffer(this);\n          }\n\n          chunk = m_array[m_lastChunk] = new char[m_chunkSize];\n        }\n\n        available = m_chunkSize;\n        m_firstFree = 0;\n      }\n    }\n\n    m_firstFree += available;\n  }\n\n  /**\n   * @return true if the specified range of characters are all whitespace,\n   * as defined by XMLCharacterRecognizer.\n   * <p>\n   * CURRENTLY DOES NOT CHECK FOR OUT-OF-RANGE.\n   *\n   * @param start Offset of first character in the range.\n   * @param length Number of characters to send.\n   */\n  public boolean isWhitespace(int start, int length)\n  {\n\n    int sourcechunk = start >>> m_chunkBits;\n    int sourcecolumn = start & m_chunkMask;\n    int available = m_chunkSize - sourcecolumn;\n    boolean chunkOK;\n\n    while (length > 0)\n    {\n      int runlength = (length <= available) ? length : available;\n\n      if (sourcechunk == 0 && m_innerFSB != null)\n        chunkOK = m_innerFSB.isWhitespace(sourcecolumn, runlength);\n      else\n        chunkOK = org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(\n          m_array[sourcechunk], sourcecolumn, runlength);\n\n      if (!chunkOK)\n        return false;\n\n      length -= runlength;\n\n      ++sourcechunk;\n\n      sourcecolumn = 0;\n      available = m_chunkSize;\n    }\n\n    return true;\n  }\n\n  /**\n   * @param start Offset of first character in the range.\n   * @param length Number of characters to send.\n   * @return a new String object initialized from the specified range of\n   * characters.\n   */\n  public String getString(int start, int length)\n  {\n    return getString(new StringBuffer(length), start >>> m_chunkBits,\n                     start & m_chunkMask, length).toString();\n  }\n\n  /**\n   * @param sb StringBuffer to be appended to\n   * @param start Offset of first character in the range.\n   * @param length Number of characters to send.\n   * @return sb with the requested text appended to it\n   */\n  StringBuffer getString(StringBuffer sb, int start, int length)\n  {\n    return getString(sb, start >>> m_chunkBits, start & m_chunkMask, length);\n  }\n\n  /**\n   * Internal support for toString() and getString().\n   * PLEASE NOTE SIGNATURE CHANGE from earlier versions; it now appends into\n   * and returns a StringBuffer supplied by the caller. This simplifies\n   * m_innerFSB support.\n   * <p>\n   * Note that this operation has been somewhat deoptimized by the shift to a\n   * chunked array, as there is no factory method to produce a String object\n   * directly from an array of arrays and hence a double copy is needed.\n   * By presetting length we hope to minimize the heap overhead of building\n   * the intermediate StringBuffer.\n   * <p>\n   * (It really is a pity that Java didn't design String as a final subclass\n   * of MutableString, rather than having StringBuffer be a separate hierarchy.\n   * We'd avoid a <strong>lot</strong> of double-buffering.)\n   *\n   *\n   * @param sb\n   * @param startChunk\n   * @param startColumn\n   * @param length\n   * \n   * @return the contents of the FastStringBuffer as a standard Java string.\n   */\n  StringBuffer getString(StringBuffer sb, int startChunk, int startColumn,\n                         int length)\n  {\n\n    int stop = (startChunk << m_chunkBits) + startColumn + length;\n    int stopChunk = stop >>> m_chunkBits;\n    int stopColumn = stop & m_chunkMask;\n\n    for (int i = startChunk; i < stopChunk; ++i)\n    {\n      if (i == 0 && m_innerFSB != null)\n        m_innerFSB.getString(sb, startColumn, m_chunkSize - startColumn);\n      else\n        sb.append(m_array[i], startColumn, m_chunkSize - startColumn);\n\n    }\n\n    if (stopChunk == 0 && m_innerFSB != null)\n      m_innerFSB.getString(sb, startColumn, stopColumn - startColumn);\n    else if (stopColumn > startColumn)\n      sb.append(m_array[stopChunk], startColumn, stopColumn - startColumn);\n\n    return sb;\n  }\n\n  /**\n   * Get a single character from the string buffer.\n   *\n   *\n   * @param pos character position requested.\n   * @return A character from the requested position.\n   */\n  public char charAt(int pos)\n  {\n    int startChunk = pos >>> m_chunkBits;\n\n    if (startChunk == 0 && m_innerFSB != null)\n      return m_innerFSB.charAt(pos & m_chunkMask);\n    else\n      return m_array[startChunk][pos & m_chunkMask];\n  }\n\n  /**\n   * Sends the specified range of characters as one or more SAX characters()\n   * events.\n   * Note that the buffer reference passed to the ContentHandler may be\n   * invalidated if the FastStringBuffer is edited; it's the user's\n   * responsibility to manage access to the FastStringBuffer to prevent this\n   * problem from arising.\n   * <p>\n   * Note too that there is no promise that the output will be sent as a\n   * single call. As is always true in SAX, one logical string may be split\n   * across multiple blocks of memory and hence delivered as several\n   * successive events.\n   *\n   * @param ch SAX ContentHandler object to receive the event.\n   * @param start Offset of first character in the range.\n   * @param length Number of characters to send.\n   * @exception org.xml.sax.SAXException may be thrown by handler's\n   * characters() method.\n   */\n  public void sendSAXcharacters(\n          org.xml.sax.ContentHandler ch, int start, int length)\n            throws org.xml.sax.SAXException\n  {\n\n    int stop = start + length;\n    int startChunk = start >>> m_chunkBits;\n    int startColumn = start & m_chunkMask;\n    int stopChunk = stop >>> m_chunkBits;\n    int stopColumn = stop & m_chunkMask;\n\n    for (int i = startChunk; i < stopChunk; ++i)\n    {\n      if (i == 0 && m_innerFSB != null)\n        m_innerFSB.sendSAXcharacters(ch, startColumn,\n                                     m_chunkSize - startColumn);\n      else\n        ch.characters(m_array[i], startColumn, m_chunkSize - startColumn);\n\n    }\n\n    if (stopChunk == 0 && m_innerFSB != null)\n      m_innerFSB.sendSAXcharacters(ch, startColumn, stopColumn - startColumn);\n    else if (stopColumn > startColumn)\n    {\n      ch.characters(m_array[stopChunk], startColumn,\n                    stopColumn - startColumn);\n    }\n  }\n  \n  /**\n   * Sends the specified range of characters as one or more SAX characters()\n   * events, normalizing the characters according to XSLT rules.\n   *\n   * @param ch SAX ContentHandler object to receive the event.\n   * @param start Offset of first character in the range.\n   * @param length Number of characters to send.\n   * @return normalization status to apply to next chunk (because we may\n   * have been called recursively to process an inner FSB):\n   * <dl>\n   * <dt>0</dt>\n   * <dd>if this output did not end in retained whitespace, and thus whitespace\n   * at the start of the following chunk (if any) should be converted to a\n   * single space.\n   * <dt>SUPPRESS_LEADING_WS</dt>\n   * <dd>if this output ended in retained whitespace, and thus whitespace\n   * at the start of the following chunk (if any) should be completely\n   * suppressed.</dd>\n   * </dd>\n   * </dl>\n   * @exception org.xml.sax.SAXException may be thrown by handler's\n   * characters() method.\n   */\n  public int sendNormalizedSAXcharacters(\n          org.xml.sax.ContentHandler ch, int start, int length)\n            throws org.xml.sax.SAXException\n  {\n\tint stateForNextChunk=SUPPRESS_LEADING_WS;\n\n    int stop = start + length;\n    int startChunk = start >>> m_chunkBits;\n    int startColumn = start & m_chunkMask;\n    int stopChunk = stop >>> m_chunkBits;\n    int stopColumn = stop & m_chunkMask;\n\n    for (int i = startChunk; i < stopChunk; ++i)\n    {\n      if (i == 0 && m_innerFSB != null)\n\t\t\t\tstateForNextChunk=\n        m_innerFSB.sendNormalizedSAXcharacters(ch, startColumn,\n                                     m_chunkSize - startColumn);\n      else\n\t\t\t\tstateForNextChunk=\n        sendNormalizedSAXcharacters(m_array[i], startColumn, \n                                    m_chunkSize - startColumn, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tch,stateForNextChunk);\n\n    }\n\n    if (stopChunk == 0 && m_innerFSB != null)\n      m_innerFSB.sendNormalizedSAXcharacters(ch, startColumn, stopColumn - startColumn);\n    else if (stopColumn > startColumn)\n    {\n      sendNormalizedSAXcharacters(m_array[stopChunk], \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstartColumn, stopColumn - startColumn,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tch, stateForNextChunk | SUPPRESS_TRAILING_WS);\n    }\n\t\treturn stateForNextChunk;\n  }\n  \n  static final char[] SINGLE_SPACE = {' '};\n\t  \n  /**\n   * Internal method to directly normalize and dispatch the character array.\n   * This version is aware of the fact that it may be called several times\n   * in succession if the data is made up of multiple \"chunks\", and thus\n   * must actively manage the handling of leading and trailing whitespace.\n   * \n   * Note: The recursion is due to the possible recursion of inner FSBs.\n   *\n   * @param ch The characters from the XML document.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   * @param handler SAX ContentHandler object to receive the event.\n   * @param edgeTreatmentFlags How leading/trailing spaces should be handled. \n   * This is a bitfield contining two flags, bitwise-ORed together:\n   * <dl>\n   * <dt>SUPPRESS_LEADING_WS</dt>\n   * <dd>When false, causes leading whitespace to be converted to a single\n   * space; when true, causes it to be discarded entirely.\n   * Should be set TRUE for the first chunk, and (in multi-chunk output)\n   * whenever the previous chunk ended in retained whitespace.</dd>\n   * <dt>SUPPRESS_TRAILING_WS</dt>\n   * <dd>When false, causes trailing whitespace to be converted to a single\n   * space; when true, causes it to be discarded entirely.\n   * Should be set TRUE for the last or only chunk.\n   * </dd>\n   * </dl>\n   * @return normalization status, as in the edgeTreatmentFlags parameter:\n   * <dl>\n   * <dt>0</dt>\n   * <dd>if this output did not end in retained whitespace, and thus whitespace\n   * at the start of the following chunk (if any) should be converted to a\n   * single space.\n   * <dt>SUPPRESS_LEADING_WS</dt>\n   * <dd>if this output ended in retained whitespace, and thus whitespace\n   * at the start of the following chunk (if any) should be completely\n   * suppressed.</dd>\n   * </dd>\n   * </dl>\n   *\n   * \n   * @exception org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  static int sendNormalizedSAXcharacters(char ch[], \n             int start, int length, \n             org.xml.sax.ContentHandler handler,\n\t\t\t\t\t\t int edgeTreatmentFlags)\n          throws org.xml.sax.SAXException\n  {\n    int end = length + start;\n    int scanpos=start;\n\t\t\n    if (XMLCharacterRecognizer.isWhiteSpace(ch[scanpos]))\n    {\n        if(0 == (edgeTreatmentFlags&SUPPRESS_LEADING_WS) )\n            handler.characters(SINGLE_SPACE, 0, 1);\n\n        while(++scanpos < end)\n        {\n            char c = ch[scanpos];\n            if(!XMLCharacterRecognizer.isWhiteSpace(c))\n                break;\n        }\n    }\n\n    boolean needToFlushSpace = 0!=(edgeTreatmentFlags&CARRY_WS); \n    \n    for (; scanpos < end; scanpos++)\n    {\n      char c = ch[scanpos];\n\n      if (XMLCharacterRecognizer.isWhiteSpace(c))\n      {\n        if (!whiteSpaceFound)\n        {\n          whiteSpaceFound = true;\n          int len = (scanpos-datapos);\n          if( len > 0)\n          {\n            if(needToFlushSpace)\n              handler.characters(SINGLE_SPACE, 0, 1);\n              \n            handler.characters(ch, datapos, len);\n            needToFlushSpace = true;\n          }\n          datapos = scanpos+1;\n        }\n        else\n        {\n          for (; nonwhitescan < end; nonwhitescan++)\n          {\n            c = ch[nonwhitescan];\n            if(!XMLCharacterRecognizer.isWhiteSpace(c))\n              break;\n          }\n\n          if(nonwhitescan == end)\n          {\n            end = scanpos;\n          }\n\n          int len = (scanpos-datapos);\n          if(len > 0)\n          {\n            if(needToFlushSpace)\n            {\n              handler.characters(SINGLE_SPACE, 0, 1);\n              needToFlushSpace = false;\n            }\n              \n            handler.characters(ch, datapos, len);\n          }\n\n          whiteSpaceFound = false;\n          datapos = scanpos = nonwhitescan;\n        }\n      }\n      else\n      {\n        whiteSpaceFound = false;\n      }\n    }\n\n    if (whiteSpaceFound)\n      scanpos--;\n    \n    int len = (scanpos-datapos);\n\n    if(len > 0)\n    {\n  \n  \t  handler.characters(ch, datapos, len);\n  \t  edgeTreatmentFlags &= ~(SUPPRESS_LEADING_WS | CARRY_WS);\n    }\n\tif(whiteSpaceFound && 0==(edgeTreatmentFlags&SUPPRESS_TRAILING_WS))\n\t{\n\t\tedgeTreatmentFlags |= SUPPRESS_LEADING_WS | CARRY_WS;\n    }\n\t\t\n\treturn edgeTreatmentFlags;\n  }\n  \n  /**\n   * Directly normalize and dispatch the character array.\n   *\n   * @param ch The characters from the XML document.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   * @param handler SAX ContentHandler object to receive the event.\n   * @exception org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public static void sendNormalizedSAXcharacters(char ch[], \n             int start, int length, \n             org.xml.sax.ContentHandler handler)\n          throws org.xml.sax.SAXException\n  {\n\t\tsendNormalizedSAXcharacters(ch, start, length, \n             handler, SUPPRESS_BOTH);\n\t}\n\t\t\n\t/**\n   * Sends the specified range of characters as sax Comment.\n   * <p>\n   * Note that, unlike sendSAXcharacters, this has to be done as a single \n   * call to LexicalHandler#comment.\n   *\n   * @param ch SAX LexicalHandler object to receive the event.\n   * @param start Offset of first character in the range.\n   * @param length Number of characters to send.\n   * @exception org.xml.sax.SAXException may be thrown by handler's\n   * characters() method.\n   */\n  public void sendSAXComment(\n          org.xml.sax.ext.LexicalHandler ch, int start, int length)\n            throws org.xml.sax.SAXException\n  {\n\n    String comment = getString(start, length);\n    ch.comment(comment.toCharArray(), 0, length);\n  }\n\n  /**\n   * Copies characters from this string into the destination character\n   * array.\n   *\n   * @param      srcBegin   index of the first character in the string\n   *                        to copy.\n   * @param      srcEnd     index after the last character in the string\n   *                        to copy.\n   * @param      dst        the destination array.\n   * @param      dstBegin   the start offset in the destination array.\n   * @exception IndexOutOfBoundsException If any of the following\n   *            is true:\n   *            <ul><li><code>srcBegin</code> is negative.\n   *            <li><code>srcBegin</code> is greater than <code>srcEnd</code>\n   *            <li><code>srcEnd</code> is greater than the length of this\n   *                string\n   *            <li><code>dstBegin</code> is negative\n   *            <li><code>dstBegin+(srcEnd-srcBegin)</code> is larger than\n   *                <code>dst.length</code></ul>\n   * @exception NullPointerException if <code>dst</code> is <code>null</code>\n   */\n  private void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin)\n  {\n  }\n\n  /**\n   * Encapsulation c'tor. After this is called, the source FastStringBuffer\n   * will be reset to use the new object as its m_innerFSB, and will have\n   * had its chunk size reset appropriately. IT SHOULD NEVER BE CALLED\n   * EXCEPT WHEN source.length()==1<<(source.m_chunkBits+source.m_rebundleBits)\n   *\n   * NEEDSDOC @param source\n   */\n  private FastStringBuffer(FastStringBuffer source)\n  {\n\n    m_chunkBits = source.m_chunkBits;\n    m_maxChunkBits = source.m_maxChunkBits;\n    m_rebundleBits = source.m_rebundleBits;\n    m_chunkSize = source.m_chunkSize;\n    m_chunkMask = source.m_chunkMask;\n    m_array = source.m_array;\n    m_innerFSB = source.m_innerFSB;\n\n    m_lastChunk = source.m_lastChunk - 1;\n    m_firstFree = source.m_chunkSize;\n\n    source.m_array = new char[16][];\n    source.m_innerFSB = this;\n\n    source.m_lastChunk = 1;\n    source.m_firstFree = 0;\n    source.m_chunkBits += m_rebundleBits;\n    source.m_chunkSize = 1 << (source.m_chunkBits);\n    source.m_chunkMask = source.m_chunkSize - 1;", "functions": [{"function_name": "size", "code": "  public final int size()\n  {\n    return (m_lastChunk << m_chunkBits) + m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "length", "code": "  public final int length()\n  {\n    return (m_lastChunk << m_chunkBits) + m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "reset", "code": "  public final void reset()\n  {\n\n    m_lastChunk = 0;\n    m_firstFree = 0;\n\n    FastStringBuffer innermost = this;\n\n    while (innermost.m_innerFSB != null)\n    {\n      innermost = innermost.m_innerFSB;\n    }\n\n    m_chunkBits = innermost.m_chunkBits;\n    m_chunkSize = innermost.m_chunkSize;\n    m_chunkMask = innermost.m_chunkMask;\n\n    m_innerFSB = null;\n    m_array = new char[16][0];\n    m_array[0] = new char[m_chunkSize];", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [5, 12], [9, 13], [10, 14], [11, 15], [4, 16], [4, 17], [1, 18], [3, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 5], [13, 9], [14, 10], [15, 11], [16, 4], [17, 4], [18, 1], [19, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setLength", "code": "  public final void setLength(int l)\n  {\n    m_lastChunk = l >>> m_chunkBits;\n\n    if (m_lastChunk == 0 && m_innerFSB != null)\n    {\n      m_innerFSB.setLength(l, this);\n    }\n    else\n    {\n      m_firstFree = l & m_chunkMask;\n      \n      if(m_firstFree==0 && m_lastChunk>0)\n      {\n      \t--m_lastChunk;\n      \tm_firstFree=m_chunkSize;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [3, 7], [4, 8], [5, 9], [1, 10], [1, 11], [6, 12], [7, 13], [9, 14], [9, 15], [10, 16], [5, 17], [14, 18], [15, 19], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 3], [8, 4], [9, 5], [10, 1], [11, 1], [12, 6], [13, 7], [14, 9], [15, 9], [16, 10], [17, 5], [18, 14], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setLength", "code": "  private final void setLength(int l, FastStringBuffer rootFSB)\n  {\n\n    m_lastChunk = l >>> m_chunkBits;\n\n    if (m_lastChunk == 0 && m_innerFSB != null)\n    {\n      m_innerFSB.setLength(l, rootFSB);\n    }\n    else\n    {\n\n      rootFSB.m_chunkBits = m_chunkBits;\n      rootFSB.m_maxChunkBits = m_maxChunkBits;\n      rootFSB.m_rebundleBits = m_rebundleBits;\n      rootFSB.m_chunkSize = m_chunkSize;\n      rootFSB.m_chunkMask = m_chunkMask;\n      rootFSB.m_array = m_array;\n      rootFSB.m_innerFSB = m_innerFSB;\n      rootFSB.m_lastChunk = m_lastChunk;\n\n      rootFSB.m_firstFree = l & m_chunkMask;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [4, 7], [5, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [6, 19], [7, 20], [9, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 4], [8, 5], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 6], [20, 7], [21, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "toString", "code": "  public final String toString()\n  {\n\n    int length = (m_lastChunk << m_chunkBits) + m_firstFree;\n\n    return getString(new StringBuffer(length), 0, 0, length).toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [3, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 3], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "append", "code": "  public final void append(char value)\n  {\n    \n    char[] chunk;\n\n    boolean lastchunk = (m_lastChunk + 1 == m_array.length);\n\n      chunk = m_array[m_lastChunk];\n    \n\n      int i = m_array.length;\n\n      if (m_lastChunk + 1 == i)\n      {\n        char[][] newarray = new char[i + 16][];\n\n        System.arraycopy(m_array, 0, newarray, 0, i);\n\n        m_array = newarray;\n      }\n\n      chunk = m_array[++m_lastChunk];\n\n      if (chunk == null)\n      {\n\n        if (m_lastChunk == 1 << m_rebundleBits\n                && m_chunkBits < m_maxChunkBits)\n        {\n\n          m_innerFSB = new FastStringBuffer(this);\n        }\n\n        chunk = m_array[m_lastChunk] = new char[m_chunkSize];\n      }\n\n      m_firstFree = 0;\n    \n\n    chunk[m_firstFree++] = value;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [0, 12], [8, 13], [1, 14], [9, 15], [2, 16], [11, 17], [4, 18], [1, 19], [14, 20], [2, 21], [2, 22], [17, 23], [18, 24], [19, 25], [20, 26], [20, 27], [22, 28], [22, 29], [24, 30], [14, 31], [27, 32], [16, 33], [31, 34], [32, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 0], [13, 8], [14, 1], [15, 9], [16, 2], [17, 11], [18, 4], [19, 1], [20, 14], [21, 2], [22, 2], [23, 17], [24, 18], [25, 19], [26, 20], [27, 20], [28, 22], [29, 22], [30, 24], [31, 14], [32, 27], [33, 16], [34, 31], [35, 32], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "append", "code": "  public final void append(String value)\n  {\n\n    if (value == null) \n      return;\n    int strlen = value.length();\n\n    if (0 == strlen)\n      return;\n\n    int copyfrom = 0;\n    char[] chunk = m_array[m_lastChunk];\n    int available = m_chunkSize - m_firstFree;\n\n    while (strlen > 0)\n    {\n\n      if (available > strlen)\n        available = strlen;\n\n      value.getChars(copyfrom, copyfrom + available, m_array[m_lastChunk],\n                     m_firstFree);\n\n      strlen -= available;\n      copyfrom += available;\n\n      if (strlen > 0)\n      {\n\n        int i = m_array.length;\n\n        if (m_lastChunk + 1 == i)\n        {\n          char[][] newarray = new char[i + 16][];\n\n          System.arraycopy(m_array, 0, newarray, 0, i);\n\n          m_array = newarray;\n        }\n\n        chunk = m_array[++m_lastChunk];\n\n        if (chunk == null)\n        {\n\n          if (m_lastChunk == 1 << m_rebundleBits\n                  && m_chunkBits < m_maxChunkBits)\n          {\n\n            m_innerFSB = new FastStringBuffer(this);\n          }\n\n          chunk = m_array[m_lastChunk] = new char[m_chunkSize];\n        }\n\n        available = m_chunkSize;\n        m_firstFree = 0;\n      }\n    }\n\n    m_firstFree += available;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [5, 11], [5, 12], [7, 13], [7, 14], [1, 15], [1, 16], [10, 17], [2, 18], [4, 19], [12, 20], [6, 21], [14, 22], [15, 23], [1, 24], [1, 25], [1, 26], [16, 27], [15, 28], [15, 29], [15, 30], [23, 31], [26, 32], [16, 33], [15, 34], [15, 35], [28, 36], [15, 37], [29, 38], [34, 39], [28, 40], [36, 41], [29, 42], [38, 43], [28, 44], [40, 45], [29, 46], [29, 47], [43, 48], [44, 49], [45, 50], [45, 51], [47, 52], [47, 53], [40, 54], [51, 55], [42, 56], [54, 57], [55, 58], [56, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 5], [12, 5], [13, 7], [14, 7], [15, 1], [16, 1], [17, 10], [18, 2], [19, 4], [20, 12], [21, 6], [22, 14], [23, 15], [24, 1], [25, 1], [26, 1], [27, 16], [28, 15], [29, 15], [30, 15], [31, 23], [32, 26], [33, 16], [34, 15], [35, 15], [36, 28], [37, 15], [38, 29], [39, 34], [40, 28], [41, 36], [42, 29], [43, 38], [44, 28], [45, 40], [46, 29], [47, 29], [48, 43], [49, 44], [50, 45], [51, 45], [52, 47], [53, 47], [54, 40], [55, 51], [56, 42], [57, 54], [58, 55], [59, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "append", "code": "  public final void append(StringBuffer value)\n  {\n\n    if (value == null) \n      return;\n    int strlen = value.length();\n\n    if (0 == strlen)\n      return;\n\n    int copyfrom = 0;\n    char[] chunk = m_array[m_lastChunk];\n    int available = m_chunkSize - m_firstFree;\n\n    while (strlen > 0)\n    {\n\n      if (available > strlen)\n        available = strlen;\n\n      value.getChars(copyfrom, copyfrom + available, m_array[m_lastChunk],\n                     m_firstFree);\n\n      strlen -= available;\n      copyfrom += available;\n\n      if (strlen > 0)\n      {\n\n        int i = m_array.length;\n\n        if (m_lastChunk + 1 == i)\n        {\n          char[][] newarray = new char[i + 16][];\n\n          System.arraycopy(m_array, 0, newarray, 0, i);\n\n          m_array = newarray;\n        }\n\n        chunk = m_array[++m_lastChunk];\n\n        if (chunk == null)\n        {\n\n          if (m_lastChunk == 1 << m_rebundleBits\n                  && m_chunkBits < m_maxChunkBits)\n          {\n\n            m_innerFSB = new FastStringBuffer(this);\n          }\n\n          chunk = m_array[m_lastChunk] = new char[m_chunkSize];\n        }\n\n        available = m_chunkSize;\n        m_firstFree = 0;\n      }\n    }\n\n    m_firstFree += available;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [5, 11], [5, 12], [7, 13], [7, 14], [1, 15], [1, 16], [10, 17], [2, 18], [4, 19], [12, 20], [6, 21], [14, 22], [15, 23], [1, 24], [1, 25], [1, 26], [16, 27], [15, 28], [15, 29], [15, 30], [23, 31], [26, 32], [16, 33], [15, 34], [15, 35], [28, 36], [15, 37], [29, 38], [34, 39], [28, 40], [36, 41], [29, 42], [38, 43], [28, 44], [40, 45], [29, 46], [29, 47], [43, 48], [44, 49], [45, 50], [45, 51], [47, 52], [47, 53], [40, 54], [51, 55], [42, 56], [54, 57], [55, 58], [56, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 5], [12, 5], [13, 7], [14, 7], [15, 1], [16, 1], [17, 10], [18, 2], [19, 4], [20, 12], [21, 6], [22, 14], [23, 15], [24, 1], [25, 1], [26, 1], [27, 16], [28, 15], [29, 15], [30, 15], [31, 23], [32, 26], [33, 16], [34, 15], [35, 15], [36, 28], [37, 15], [38, 29], [39, 34], [40, 28], [41, 36], [42, 29], [43, 38], [44, 28], [45, 40], [46, 29], [47, 29], [48, 43], [49, 44], [50, 45], [51, 45], [52, 47], [53, 47], [54, 40], [55, 51], [56, 42], [57, 54], [58, 55], [59, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "append", "code": "  public final void append(char[] chars, int start, int length)\n  {\n\n    int strlen = length;\n\n    if (0 == strlen)\n      return;\n\n    int copyfrom = start;\n    char[] chunk = m_array[m_lastChunk];\n    int available = m_chunkSize - m_firstFree;\n\n    while (strlen > 0)\n    {\n\n      if (available > strlen)\n        available = strlen;\n\n      System.arraycopy(chars, copyfrom, m_array[m_lastChunk], m_firstFree,\n                       available);\n\n      strlen -= available;\n      copyfrom += available;\n\n      if (strlen > 0)\n      {\n\n        int i = m_array.length;\n\n        if (m_lastChunk + 1 == i)\n        {\n          char[][] newarray = new char[i + 16][];\n\n          System.arraycopy(m_array, 0, newarray, 0, i);\n\n          m_array = newarray;\n        }\n\n        chunk = m_array[++m_lastChunk];\n\n        if (chunk == null)\n        {\n\n          if (m_lastChunk == 1 << m_rebundleBits\n                  && m_chunkBits < m_maxChunkBits)\n          {\n\n            m_innerFSB = new FastStringBuffer(this);\n          }\n\n          chunk = m_array[m_lastChunk] = new char[m_chunkSize];\n        }\n\n        available = m_chunkSize;\n        m_firstFree = 0;\n      }\n    }\n\n    m_firstFree += available;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [5, 12], [5, 13], [1, 14], [1, 15], [11, 16], [2, 17], [13, 18], [14, 19], [1, 20], [1, 21], [1, 22], [15, 23], [14, 24], [14, 25], [14, 26], [19, 27], [15, 28], [14, 29], [14, 30], [24, 31], [14, 32], [25, 33], [29, 34], [24, 35], [31, 36], [25, 37], [33, 38], [24, 39], [35, 40], [25, 41], [25, 42], [38, 43], [39, 44], [40, 45], [40, 46], [42, 47], [42, 48], [35, 49], [46, 50], [37, 51], [49, 52], [50, 53], [51, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 5], [13, 5], [14, 1], [15, 1], [16, 11], [17, 2], [18, 13], [19, 14], [20, 1], [21, 1], [22, 1], [23, 15], [24, 14], [25, 14], [26, 14], [27, 19], [28, 15], [29, 14], [30, 14], [31, 24], [32, 14], [33, 25], [34, 29], [35, 24], [36, 31], [37, 25], [38, 33], [39, 24], [40, 35], [41, 25], [42, 25], [43, 38], [44, 39], [45, 40], [46, 40], [47, 42], [48, 42], [49, 35], [50, 46], [51, 37], [52, 49], [53, 50], [54, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "append", "code": "  public final void append(FastStringBuffer value)\n  {\n\n    if (value == null) \n      return;\n    int strlen = value.length();\n\n    if (0 == strlen)\n      return;\n\n    int copyfrom = 0;\n    char[] chunk = m_array[m_lastChunk];\n    int available = m_chunkSize - m_firstFree;\n\n    while (strlen > 0)\n    {\n\n      if (available > strlen)\n        available = strlen;\n\n      int sourcechunk = (copyfrom + value.m_chunkSize - 1)\n                        >>> value.m_chunkBits;\n      int sourcecolumn = copyfrom & value.m_chunkMask;\n      int runlength = value.m_chunkSize - sourcecolumn;\n\n      if (runlength > available)\n        runlength = available;\n\n      System.arraycopy(value.m_array[sourcechunk], sourcecolumn,\n                       m_array[m_lastChunk], m_firstFree, runlength);\n\n      if (runlength != available)\n        System.arraycopy(value.m_array[sourcechunk + 1], 0,\n                         m_array[m_lastChunk], m_firstFree + runlength,\n                         available - runlength);\n\n      strlen -= available;\n      copyfrom += available;\n\n      if (strlen > 0)\n      {\n\n        int i = m_array.length;\n\n        if (m_lastChunk + 1 == i)\n        {\n          char[][] newarray = new char[i + 16][];\n\n          System.arraycopy(m_array, 0, newarray, 0, i);\n\n          m_array = newarray;\n        }\n\n        chunk = m_array[++m_lastChunk];\n\n        if (chunk == null)\n        {\n\n          if (m_lastChunk == 1 << m_rebundleBits\n                  && m_chunkBits < m_maxChunkBits)\n          {\n\n            m_innerFSB = new FastStringBuffer(this);\n          }\n\n          chunk = m_array[m_lastChunk] = new char[m_chunkSize];\n        }\n\n        available = m_chunkSize;\n        m_firstFree = 0;\n      }\n    }\n\n    m_firstFree += available;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [5, 11], [5, 12], [7, 13], [7, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [10, 22], [2, 23], [4, 24], [12, 25], [6, 26], [14, 27], [15, 28], [1, 29], [1, 30], [16, 31], [1, 32], [17, 33], [21, 34], [15, 35], [15, 36], [15, 37], [28, 38], [16, 39], [17, 40], [18, 41], [19, 42], [20, 43], [21, 44], [15, 45], [15, 46], [35, 47], [15, 48], [36, 49], [39, 50], [39, 51], [39, 52], [43, 53], [45, 54], [35, 55], [47, 56], [36, 57], [49, 58], [53, 59], [53, 60], [35, 61], [55, 62], [36, 63], [36, 64], [58, 65], [39, 66], [61, 67], [62, 68], [62, 69], [64, 70], [64, 71], [66, 72], [55, 73], [69, 74], [57, 75], [73, 76], [74, 77], [75, 78], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 5], [12, 5], [13, 7], [14, 7], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 10], [23, 2], [24, 4], [25, 12], [26, 6], [27, 14], [28, 15], [29, 1], [30, 1], [31, 16], [32, 1], [33, 17], [34, 21], [35, 15], [36, 15], [37, 15], [38, 28], [39, 16], [40, 17], [41, 18], [42, 19], [43, 20], [44, 21], [45, 15], [46, 15], [47, 35], [48, 15], [49, 36], [50, 39], [51, 39], [52, 39], [53, 43], [54, 45], [55, 35], [56, 47], [57, 36], [58, 49], [59, 53], [60, 53], [61, 35], [62, 55], [63, 36], [64, 36], [65, 58], [66, 39], [67, 61], [68, 62], [69, 62], [70, 64], [71, 64], [72, 66], [73, 55], [74, 69], [75, 57], [76, 73], [77, 74], [78, 75], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78]]}, {"function_name": "isWhitespace", "code": "  public boolean isWhitespace(int start, int length)\n  {\n\n    int sourcechunk = start >>> m_chunkBits;\n    int sourcecolumn = start & m_chunkMask;\n    int available = m_chunkSize - sourcecolumn;\n    boolean chunkOK;\n\n    while (length > 0)\n    {\n      int runlength = (length <= available) ? length : available;\n\n      if (sourcechunk == 0 && m_innerFSB != null)\n        chunkOK = m_innerFSB.isWhitespace(sourcecolumn, runlength);\n      else\n        chunkOK = org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(\n          m_array[sourcechunk], sourcecolumn, runlength);\n\n      if (!chunkOK)\n        return false;\n\n      length -= runlength;\n\n      ++sourcechunk;\n\n      sourcecolumn = 0;\n      available = m_chunkSize;\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [2, 12], [2, 13], [10, 14], [4, 15], [5, 16], [6, 17], [2, 18], [2, 19], [2, 20], [11, 21], [12, 22], [19, 23], [21, 24], [12, 25], [12, 26], [22, 27], [22, 28], [13, 29], [25, 30], [26, 31], [27, 32], [28, 33], [29, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 2], [13, 2], [14, 10], [15, 4], [16, 5], [17, 6], [18, 2], [19, 2], [20, 2], [21, 11], [22, 12], [23, 19], [24, 21], [25, 12], [26, 12], [27, 22], [28, 22], [29, 13], [30, 25], [31, 26], [32, 27], [33, 28], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getString", "code": "  public String getString(int start, int length)\n  {\n    return getString(new StringBuffer(length), start >>> m_chunkBits,\n                     start & m_chunkMask, length).toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getString", "code": "  StringBuffer getString(StringBuffer sb, int start, int length)\n  {\n    return getString(sb, start >>> m_chunkBits, start & m_chunkMask, length);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getString", "code": "  StringBuffer getString(StringBuffer sb, int startChunk, int startColumn,\n                         int length)\n  {\n\n    int stop = (startChunk << m_chunkBits) + startColumn + length;\n    int stopChunk = stop >>> m_chunkBits;\n    int stopColumn = stop & m_chunkMask;\n\n    for (int i = startChunk; i < stopChunk; ++i)\n    {\n      if (i == 0 && m_innerFSB != null)\n        m_innerFSB.getString(sb, startColumn, m_chunkSize - startColumn);\n      else\n        sb.append(m_array[i], startColumn, m_chunkSize - startColumn);\n\n    }\n\n    if (stopChunk == 0 && m_innerFSB != null)\n      m_innerFSB.getString(sb, startColumn, stopColumn - startColumn);\n    else if (stopColumn > startColumn)\n      sb.append(m_array[stopChunk], startColumn, stopColumn - startColumn);\n\n    return sb;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [3, 13], [11, 14], [2, 15], [12, 16], [12, 17], [3, 18], [4, 19], [5, 20], [6, 21], [11, 22], [15, 23], [16, 24], [17, 25], [18, 26], [21, 27], [22, 28], [18, 29], [18, 30], [26, 31], [26, 32], [27, 33], [29, 34], [30, 35], [31, 36], [32, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 3], [14, 11], [15, 2], [16, 12], [17, 12], [18, 3], [19, 4], [20, 5], [21, 6], [22, 11], [23, 15], [24, 16], [25, 17], [26, 18], [27, 21], [28, 22], [29, 18], [30, 18], [31, 26], [32, 26], [33, 27], [34, 29], [35, 30], [36, 31], [37, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "charAt", "code": "  public char charAt(int pos)\n  {\n    int startChunk = pos >>> m_chunkBits;\n\n    if (startChunk == 0 && m_innerFSB != null)\n      return m_innerFSB.charAt(pos & m_chunkMask);\n    else\n      return m_array[startChunk][pos & m_chunkMask];", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [2, 10], [7, 11], [8, 12], [9, 13], [4, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 2], [11, 7], [12, 8], [13, 9], [14, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "sendSAXcharacters", "code": "  public void sendSAXcharacters(\n          org.xml.sax.ContentHandler ch, int start, int length)\n            throws org.xml.sax.SAXException\n  {\n\n    int stop = start + length;\n    int startChunk = start >>> m_chunkBits;\n    int startColumn = start & m_chunkMask;\n    int stopChunk = stop >>> m_chunkBits;\n    int stopColumn = stop & m_chunkMask;\n\n    for (int i = startChunk; i < stopChunk; ++i)\n    {\n      if (i == 0 && m_innerFSB != null)\n        m_innerFSB.sendSAXcharacters(ch, startColumn,\n                                     m_chunkSize - startColumn);\n      else\n        ch.characters(m_array[i], startColumn, m_chunkSize - startColumn);\n\n    }\n\n    if (stopChunk == 0 && m_innerFSB != null)\n      m_innerFSB.sendSAXcharacters(ch, startColumn, stopColumn - startColumn);\n    else if (stopColumn > startColumn)\n    {\n      ch.characters(m_array[stopChunk], startColumn,\n                    stopColumn - startColumn);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [2, 13], [11, 14], [1, 15], [12, 16], [12, 17], [2, 18], [3, 19], [4, 20], [5, 21], [6, 22], [7, 23], [15, 24], [16, 25], [17, 26], [18, 27], [11, 28], [18, 29], [18, 30], [27, 31], [27, 32], [28, 33], [29, 34], [30, 35], [31, 36], [32, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 2], [14, 11], [15, 1], [16, 12], [17, 12], [18, 2], [19, 3], [20, 4], [21, 5], [22, 6], [23, 7], [24, 15], [25, 16], [26, 17], [27, 18], [28, 11], [29, 18], [30, 18], [31, 27], [32, 27], [33, 28], [34, 29], [35, 30], [36, 31], [37, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "sendNormalizedSAXcharacters", "code": "  public int sendNormalizedSAXcharacters(\n          org.xml.sax.ContentHandler ch, int start, int length)\n            throws org.xml.sax.SAXException\n  {\n\tint stateForNextChunk=SUPPRESS_LEADING_WS;\n\n    int stop = start + length;\n    int startChunk = start >>> m_chunkBits;\n    int startColumn = start & m_chunkMask;\n    int stopChunk = stop >>> m_chunkBits;\n    int stopColumn = stop & m_chunkMask;\n\n    for (int i = startChunk; i < stopChunk; ++i)\n    {\n      if (i == 0 && m_innerFSB != null)\n\t\t\t\tstateForNextChunk=\n        m_innerFSB.sendNormalizedSAXcharacters(ch, startColumn,\n                                     m_chunkSize - startColumn);\n      else\n\t\t\t\tstateForNextChunk=\n        sendNormalizedSAXcharacters(m_array[i], startColumn, \n                                    m_chunkSize - startColumn, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tch,stateForNextChunk);\n\n    }\n\n    if (stopChunk == 0 && m_innerFSB != null)\n      m_innerFSB.sendNormalizedSAXcharacters(ch, startColumn, stopColumn - startColumn);\n    else if (stopColumn > startColumn)\n    {\n      sendNormalizedSAXcharacters(m_array[stopChunk], \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstartColumn, stopColumn - startColumn,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tch, stateForNextChunk | SUPPRESS_TRAILING_WS);\n    }\n\t\treturn stateForNextChunk;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [2, 14], [3, 15], [13, 16], [2, 17], [14, 18], [14, 19], [3, 20], [4, 21], [5, 22], [6, 23], [7, 24], [8, 25], [17, 26], [18, 27], [19, 28], [20, 29], [13, 30], [20, 31], [20, 32], [29, 33], [29, 34], [30, 35], [30, 36], [31, 37], [32, 38], [33, 39], [34, 40], [37, 41], [38, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 2], [15, 3], [16, 13], [17, 2], [18, 14], [19, 14], [20, 3], [21, 4], [22, 5], [23, 6], [24, 7], [25, 8], [26, 17], [27, 18], [28, 19], [29, 20], [30, 13], [31, 20], [32, 20], [33, 29], [34, 29], [35, 30], [36, 30], [37, 31], [38, 32], [39, 33], [40, 34], [41, 37], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "sendNormalizedSAXcharacters", "code": "  static int sendNormalizedSAXcharacters(char ch[], \n             int start, int length, \n             org.xml.sax.ContentHandler handler,\n\t\t\t\t\t\t int edgeTreatmentFlags)\n          throws org.xml.sax.SAXException\n  {\n    int end = length + start;\n    int scanpos=start;\n\t\t\n    if (XMLCharacterRecognizer.isWhiteSpace(ch[scanpos]))\n    {\n        if(0 == (edgeTreatmentFlags&SUPPRESS_LEADING_WS) )\n            handler.characters(SINGLE_SPACE, 0, 1);\n\n        while(++scanpos < end)\n        {\n            char c = ch[scanpos];\n            if(!XMLCharacterRecognizer.isWhiteSpace(c))\n                break;\n        }\n    }\n\n    boolean needToFlushSpace = 0!=(edgeTreatmentFlags&CARRY_WS); \n    \n    for (; scanpos < end; scanpos++)\n    {\n      char c = ch[scanpos];\n\n      if (XMLCharacterRecognizer.isWhiteSpace(c))\n      {\n        if (!whiteSpaceFound)\n        {\n          whiteSpaceFound = true;\n          int len = (scanpos-datapos);\n          if( len > 0)\n          {\n            if(needToFlushSpace)\n              handler.characters(SINGLE_SPACE, 0, 1);\n              \n            handler.characters(ch, datapos, len);\n            needToFlushSpace = true;\n          }\n          datapos = scanpos+1;\n        }\n        else\n        {\n          for (; nonwhitescan < end; nonwhitescan++)\n          {\n            c = ch[nonwhitescan];\n            if(!XMLCharacterRecognizer.isWhiteSpace(c))\n              break;\n          }\n\n          if(nonwhitescan == end)\n          {\n            end = scanpos;\n          }\n\n          int len = (scanpos-datapos);\n          if(len > 0)\n          {\n            if(needToFlushSpace)\n            {\n              handler.characters(SINGLE_SPACE, 0, 1);\n              needToFlushSpace = false;\n            }\n              \n            handler.characters(ch, datapos, len);\n          }\n\n          whiteSpaceFound = false;\n          datapos = scanpos = nonwhitescan;\n        }\n      }\n      else\n      {\n        whiteSpaceFound = false;\n      }\n    }\n\n    if (whiteSpaceFound)\n      scanpos--;\n    \n    int len = (scanpos-datapos);\n\n    if(len > 0)\n    {\n  \n  \t  handler.characters(ch, datapos, len);\n  \t  edgeTreatmentFlags &= ~(SUPPRESS_LEADING_WS | CARRY_WS);\n    }\n\tif(whiteSpaceFound && 0==(edgeTreatmentFlags&SUPPRESS_TRAILING_WS))\n\t{\n\t\tedgeTreatmentFlags |= SUPPRESS_LEADING_WS | CARRY_WS;\n    }\n\t\t\n\treturn edgeTreatmentFlags;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "LOOP", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [3, 17], [6, 18], [8, 19], [16, 20], [17, 21], [4, 22], [6, 23], [6, 24], [7, 25], [8, 26], [8, 27], [10, 28], [2, 29], [20, 30], [20, 31], [3, 32], [3, 33], [23, 34], [25, 35], [25, 36], [26, 37], [27, 38], [29, 39], [32, 40], [23, 41], [26, 42], [26, 43], [27, 44], [38, 45], [38, 46], [23, 47], [42, 48], [42, 49], [44, 50], [44, 51], [47, 52], [41, 53], [41, 54], [41, 55], [41, 56], [41, 57], [41, 58], [41, 59], [41, 60], [53, 61], [55, 62], [56, 63], [41, 64], [57, 65], [41, 66], [59, 67], [60, 68], [53, 69], [61, 70], [54, 71], [56, 72], [64, 73], [57, 74], [65, 75], [58, 76], [66, 77], [53, 78], [55, 79], [72, 80], [72, 81], [56, 82], [73, 83], [57, 84], [57, 85], [84, 86], [74, 87], [69, 88], [69, 89], [87, 90], [87, 91], [88, 92], [89, 93], [89, 94], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 3], [18, 6], [19, 8], [20, 16], [21, 17], [22, 4], [23, 6], [24, 6], [25, 7], [26, 8], [27, 8], [28, 10], [29, 2], [30, 20], [31, 20], [32, 3], [33, 3], [34, 23], [35, 25], [36, 25], [37, 26], [38, 27], [39, 29], [40, 32], [41, 23], [42, 26], [43, 26], [44, 27], [45, 38], [46, 38], [47, 23], [48, 42], [49, 42], [50, 44], [51, 44], [52, 47], [53, 41], [54, 41], [55, 41], [56, 41], [57, 41], [58, 41], [59, 41], [60, 41], [61, 53], [62, 55], [63, 56], [64, 41], [65, 57], [66, 41], [67, 59], [68, 60], [69, 53], [70, 61], [71, 54], [72, 56], [73, 64], [74, 57], [75, 65], [76, 58], [77, 66], [78, 53], [79, 55], [80, 72], [81, 72], [82, 56], [83, 73], [84, 57], [85, 57], [86, 84], [87, 74], [88, 69], [89, 69], [90, 87], [91, 87], [92, 88], [93, 89], [94, 89], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "sendNormalizedSAXcharacters", "code": "  public static void sendNormalizedSAXcharacters(char ch[], \n             int start, int length, \n             org.xml.sax.ContentHandler handler)\n          throws org.xml.sax.SAXException\n  {\n\t\tsendNormalizedSAXcharacters(ch, start, length, \n             handler, SUPPRESS_BOTH);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "sendSAXComment", "code": "  public void sendSAXComment(\n          org.xml.sax.ext.LexicalHandler ch, int start, int length)\n            throws org.xml.sax.SAXException\n  {\n\n    String comment = getString(start, length);\n    ch.comment(comment.toCharArray(), 0, length);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [5, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 5], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getChars", "code": "  private void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "FastStringBuffer", "code": "  public FastStringBuffer(int initChunkBits, int maxChunkBits,\n                          int rebundleBits)\n  {\n    if(DEBUG_FORCE_INIT_BITS!=0) initChunkBits=DEBUG_FORCE_INIT_BITS;\n    \n    if(DEBUG_FORCE_FIXED_CHUNKSIZE) maxChunkBits=initChunkBits;\n\n    m_array = new char[16][];\n\n    if (initChunkBits > maxChunkBits)\n      initChunkBits = maxChunkBits;\n\n    m_chunkBits = initChunkBits;\n    m_maxChunkBits = maxChunkBits;\n    m_rebundleBits = rebundleBits;\n    m_chunkSize = 1 << (initChunkBits);\n    m_chunkMask = m_chunkSize - 1;\n    m_array[0] = new char[m_chunkSize];", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [0, 14], [3, 15], [8, 16], [9, 17], [1, 18], [2, 19], [3, 20], [15, 21], [16, 22], [17, 23], [14, 24], [7, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 0], [15, 3], [16, 8], [17, 9], [18, 1], [19, 2], [20, 3], [21, 15], [22, 16], [23, 17], [24, 14], [25, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "FastStringBuffer", "code": "  public FastStringBuffer(int initChunkBits, int maxChunkBits)\n  {\n    this(initChunkBits, maxChunkBits, 2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FastStringBuffer", "code": "  public FastStringBuffer(int initChunkBits)\n  {\n    this(initChunkBits, 15, 2);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FastStringBuffer", "code": "  public FastStringBuffer()\n  {\n\n    this(10, 15, 2);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FastStringBuffer", "code": "  private FastStringBuffer(FastStringBuffer source)\n  {\n\n    m_chunkBits = source.m_chunkBits;\n    m_maxChunkBits = source.m_maxChunkBits;\n    m_rebundleBits = source.m_rebundleBits;\n    m_chunkSize = source.m_chunkSize;\n    m_chunkMask = source.m_chunkMask;\n    m_array = source.m_array;\n    m_innerFSB = source.m_innerFSB;\n\n    m_lastChunk = source.m_lastChunk - 1;\n    m_firstFree = source.m_chunkSize;\n\n    source.m_array = new char[16][];\n    source.m_innerFSB = this;\n\n    source.m_lastChunk = 1;\n    source.m_firstFree = 0;\n    source.m_chunkBits += m_rebundleBits;\n    source.m_chunkSize = 1 << (source.m_chunkBits);\n    source.m_chunkMask = source.m_chunkSize - 1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [2, 18], [3, 19], [5, 20], [6, 21], [10, 22], [18, 23], [19, 24], [8, 25], [22, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 2], [19, 3], [20, 5], [21, 6], [22, 10], [23, 18], [24, 19], [25, 8], [26, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}], "label": 1}
{"sample_id": "xalan-2.4-6749", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/extensions/ExtensionHandlerGeneral.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionHandlerGeneral", "code": "public class ExtensionHandlerGeneral extends ExtensionHandler\n{\n\n  /** script source to run (if any)      */\n  private String m_scriptSrc;   \n\n  /** URL of source of script (if any)         */\n  private String m_scriptSrcURL;  \n\n  /** functions of namespace        */\n  private Hashtable m_functions = new Hashtable();  \n\n  /** elements of namespace         */\n  private Hashtable m_elements = new Hashtable();   \n\n\n  /** Instance of Manager class          */\n\n  /** BSF manager used to run scripts         */\n  private Object m_engine;  \n\n\n  /** BSFManager package name          */\n  private static final String BSF_MANAGER = \"com.ibm.bsf.BSFManager\";\n\n  /** Manager class          */\n  private static Class managerClass;\n\n  /** Manager load scripting engine          */\n  private static Method mgrLoadScriptingEngine;\n\n  /** BSFEngine package name          */\n  private static final String BSF_ENGINE = \"com.ibm.bsf.BSFEngine\";\n\n  /** Engine call to \"compile\" scripts         */\n  private static Method engineExec;   \n\n  /** Engine call to invoke scripts          */\n  private static Method engineCall;   \n\n  /** Negative one integer         */\n  private static final Integer NEG1INT = new Integer(-1);\n\n  static\n  {\n    try\n    {\n                        managerClass = ExtensionHandler.getClassForName(BSF_MANAGER);\n      mgrLoadScriptingEngine = managerClass.getMethod(\"loadScriptingEngine\",\n              new Class[]{ String.class });\n\n                        Class engineClass = ExtensionHandler.getClassForName(BSF_ENGINE);\n\n      engineExec = engineClass.getMethod(\"exec\", new Class[]{ String.class,\n                                                              Integer.TYPE,\n                                                              Integer.TYPE,\n                                                              Object.class });\n      engineCall = engineClass.getMethod(\"call\", new Class[]{ Object.class,\n                                                              String.class,\n                                                              Class.forName(\n                                                                \"[Ljava.lang.Object;\") });\n    }\n    catch (Exception e)\n    {\n      managerClass = null;\n      mgrLoadScriptingEngine = null;\n      engineExec = null;\n      engineCall = null;\n\n      e.printStackTrace();\n    }\n  }\n\n  /**\n   * Construct a new extension namespace handler given all the information\n   * needed.\n   *\n   * @param namespaceUri the extension namespace URI that I'm implementing\n   * @param elemNames Vector of element names\n   * @param funcNames    string containing list of functions of extension NS\n   * @param lang         language of code implementing the extension\n   * @param srcURL       value of src attribute (if any) - treated as a URL\n   *                     or a classname depending on the value of lang. If\n   *                     srcURL is not null, then scriptSrc is ignored.\n   * @param scriptLang Scripting language of implementation\n   * @param scriptSrcURL URL of source script\n   * @param scriptSrc    the actual script code (if any)\n   *\n   * @throws TransformerException\n   */\n  public ExtensionHandlerGeneral(\n          String namespaceUri, StringVector elemNames, StringVector funcNames, String scriptLang, String scriptSrcURL, String scriptSrc, String systemId)\n            throws TransformerException\n  {\n\n    super(namespaceUri, scriptLang);\n\n    if (elemNames != null)\n    {\n      Object junk = new Object();\n      int n = elemNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = elemNames.elementAt(i);\n\n      }\n    }\n\n    if (funcNames != null)\n    {\n      Object junk = new Object();\n      int n = funcNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = funcNames.elementAt(i);\n\n      }\n    }\n\n    m_scriptSrcURL = scriptSrcURL;\n    m_scriptSrc = scriptSrc;\n\n    if (m_scriptSrcURL != null)\n    {\n      URL url = null;\n      try{\n        url = new URL(m_scriptSrcURL);\n      }\n      catch (java.net.MalformedURLException mue)\n      {\n        int indexOfColon = m_scriptSrcURL.indexOf(':');\n        int indexOfSlash = m_scriptSrcURL.indexOf('/');\n\n        if ((indexOfColon != -1) && (indexOfSlash != -1)\n            && (indexOfColon < indexOfSlash))\n        {\n          url = null;\n        }\n        else\n        {\n          try{\n            url = new URL(new URL(SystemIDResolver.getAbsoluteURI(systemId)), m_scriptSrcURL);          \n          }        \n          catch (java.net.MalformedURLException mue2)\n          {\n          }\n        }\n      }\n      if (url != null)\n      {\n        try\n        {\n          URLConnection uc = url.openConnection();\n          InputStream is = uc.getInputStream();\n          byte []bArray = new byte[uc.getContentLength()];\n          is.read(bArray);\n          m_scriptSrc = new String(bArray);\n          \n        }\n        catch (IOException ioe)\n        {\n        }\n      }\n      \n    }\n   \n    if (null == managerClass)\n\n    try\n    {\n      m_mgr = managerClass.newInstance();\n      m_engine = mgrLoadScriptingEngine.invoke(m_mgr,\n                                               new Object[]{ scriptLang });\n\n      engineExec.invoke(m_engine, new Object[]{ \"XalanScript\", NEG1INT,\n                                                NEG1INT, m_scriptSrc });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();\n\n    }\n  }\n\n  /**\n   * Tests whether a certain function name is known within this namespace.\n   * @param function name of the function being tested\n   * @return true if its known, false if not.\n   */\n  public boolean isFunctionAvailable(String function)\n  {\n    return (m_functions.get(function) != null);\n  }\n\n  /**\n   * Tests whether a certain element name is known within this namespace.\n   * @param function name of the function being tested\n   *\n   * @param element name of the element being tested\n   * @return true if its known, false if not.\n   */\n  public boolean isElementAvailable(String element)\n  {\n    return (m_elements.get(element) != null);\n  }\n\n  /**\n   * Process a call to a function.\n   *\n   * @param funcName Function name.\n   * @param args     The arguments of the function call.\n   * @param methodKey A key that uniquely identifies this class and method call.\n   * @param exprContext The context in which this expression is being executed.\n   *\n   * @return the return value of the function evaluation.\n   *\n   * @throws TransformerException          if parsing trouble\n   */\n  public Object callFunction(\n          String funcName, Vector args, Object methodKey, ExpressionContext exprContext)\n            throws TransformerException\n  {\n\n    Object[] argArray;\n\n    try\n    {\n      argArray = new Object[args.size()];\n\n      for (int i = 0; i < argArray.length; i++)\n      {\n        Object o = args.elementAt(i);\n\n        argArray[i] = (o instanceof XObject) ? ((XObject) o).object() : o;\n        o = argArray[i];\n        if(null != o && o instanceof DTMIterator)\n        {\n          argArray[i] = new DTMNodeList((DTMIterator)o);\n        }\n      }\n\n      return engineCall.invoke(m_engine, new Object[]{ null, funcName,\n                                                       argArray });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();\n\n      String msg = e.getMessage();\n\n      if (null != msg)\n      {\n        if (msg.startsWith(\"Stopping after fatal error:\"))\n        {\n          msg = msg.substring(\"Stopping after fatal error:\".length());\n        }\n\n        throw new TransformerException(e);\n      }\n      else\n      {\n\n      }\n    }\n  }\n\n  /**\n   * Process a call to this extension namespace via an element. As a side\n   * effect, the results are sent to the TransformerImpl's result tree.\n   *\n   * @param localPart      Element name's local part.\n   * @param element        The extension element being processed.\n   * @param transformer      Handle to TransformerImpl.\n   * @param stylesheetTree The compiled stylesheet tree.\n   * @param mode           The current mode.\n   * @param sourceTree     The root of the source tree (but don't assume\n   *                       it's a Document).\n   * @param sourceNode     The current context node.\n   * @param methodKey A key that uniquely identifies this class and method call.\n   *\n   * @throws XSLProcessorException thrown if something goes wrong\n   *            while running the extension handler.\n   * @throws MalformedURLException if loading trouble\n   * @throws FileNotFoundException if loading trouble\n   * @throws IOException           if loading trouble\n   * @throws TransformerException          if parsing trouble\n   */\n  public void processElement(\n          String localPart, ElemTemplateElement element, TransformerImpl transformer, \n          Stylesheet stylesheetTree, Object methodKey)\n            throws TransformerException, IOException\n  {\n\n    Object result = null;\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, stylesheetTree);\n\n    try\n    {\n      Vector argv = new Vector(2);\n\n      argv.addElement(xpc);\n      argv.addElement(element);\n\n      result = callFunction(localPart, argv, methodKey,\n                            transformer.getXPathContext().getExpressionContext());\n    }\n    catch (XPathProcessorException e)\n    {\n\n      throw new TransformerException(e.getMessage(), e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree(stylesheetTree, result);", "functions": [{"function_name": "isFunctionAvailable", "code": "  public boolean isFunctionAvailable(String function)\n  {\n    return (m_functions.get(function) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isElementAvailable", "code": "  public boolean isElementAvailable(String element)\n  {\n    return (m_elements.get(element) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "callFunction", "code": "  public Object callFunction(\n          String funcName, Vector args, Object methodKey, ExpressionContext exprContext)\n            throws TransformerException\n  {\n\n    Object[] argArray;\n\n    try\n    {\n      argArray = new Object[args.size()];\n\n      for (int i = 0; i < argArray.length; i++)\n      {\n        Object o = args.elementAt(i);\n\n        argArray[i] = (o instanceof XObject) ? ((XObject) o).object() : o;\n        o = argArray[i];\n        if(null != o && o instanceof DTMIterator)\n        {\n          argArray[i] = new DTMNodeList((DTMIterator)o);\n        }\n      }\n\n      return engineCall.invoke(m_engine, new Object[]{ null, funcName,\n                                                       argArray });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();\n\n      String msg = e.getMessage();\n\n      if (null != msg)\n      {\n        if (msg.startsWith(\"Stopping after fatal error:\"))\n        {\n          msg = msg.substring(\"Stopping after fatal error:\".length());\n        }\n\n        throw new TransformerException(e);\n      }\n      else\n      {", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "LOOP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [7, 11], [8, 12], [9, 13], [1, 14], [10, 15], [7, 16], [9, 17], [9, 18], [10, 19], [10, 20], [15, 21], [11, 22], [17, 23], [9, 24], [9, 25], [9, 26], [14, 27], [19, 28], [20, 29], [12, 30], [23, 31], [23, 32], [25, 33], [18, 34], [29, 35], [17, 36], [32, 37], [33, 38], [20, 39], [36, 40], [39, 41], [41, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 7], [12, 8], [13, 9], [14, 1], [15, 10], [16, 7], [17, 9], [18, 9], [19, 10], [20, 10], [21, 15], [22, 11], [23, 17], [24, 9], [25, 9], [26, 9], [27, 14], [28, 19], [29, 20], [30, 12], [31, 23], [32, 23], [33, 25], [34, 18], [35, 29], [36, 17], [37, 32], [38, 33], [39, 20], [40, 36], [41, 39], [42, 41], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "processElement", "code": "  public void processElement(\n          String localPart, ElemTemplateElement element, TransformerImpl transformer, \n          Stylesheet stylesheetTree, Object methodKey)\n            throws TransformerException, IOException\n  {\n\n    Object result = null;\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, stylesheetTree);\n\n    try\n    {\n      Vector argv = new Vector(2);\n\n      argv.addElement(xpc);\n      argv.addElement(element);\n\n      result = callFunction(localPart, argv, methodKey,\n                            transformer.getXPathContext().getExpressionContext());\n    }\n    catch (XPathProcessorException e)\n    {\n\n      throw new TransformerException(e.getMessage(), e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree(stylesheetTree, result);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [10, 13], [11, 14], [2, 15], [2, 16], [2, 17], [3, 18], [4, 19], [1, 20], [14, 21], [15, 22], [12, 23], [21, 24], [22, 25], [23, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 10], [14, 11], [15, 2], [16, 2], [17, 2], [18, 3], [19, 4], [20, 1], [21, 14], [22, 15], [23, 12], [24, 21], [25, 22], [26, 23], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "ExtensionHandlerGeneral", "code": "  public ExtensionHandlerGeneral(\n          String namespaceUri, StringVector elemNames, StringVector funcNames, String scriptLang, String scriptSrcURL, String scriptSrc, String systemId)\n            throws TransformerException\n  {\n\n    super(namespaceUri, scriptLang);\n\n    if (elemNames != null)\n    {\n      Object junk = new Object();\n      int n = elemNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = elemNames.elementAt(i);\n\n      }\n    }\n\n    if (funcNames != null)\n    {\n      Object junk = new Object();\n      int n = funcNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = funcNames.elementAt(i);\n\n      }\n    }\n\n    m_scriptSrcURL = scriptSrcURL;\n    m_scriptSrc = scriptSrc;\n\n    if (m_scriptSrcURL != null)\n    {\n      URL url = null;\n      try{\n        url = new URL(m_scriptSrcURL);\n      }\n      catch (java.net.MalformedURLException mue)\n      {\n        int indexOfColon = m_scriptSrcURL.indexOf(':');\n        int indexOfSlash = m_scriptSrcURL.indexOf('/');\n\n        if ((indexOfColon != -1) && (indexOfSlash != -1)\n            && (indexOfColon < indexOfSlash))\n        {\n          url = null;\n        }\n        else\n        {\n          try{\n            url = new URL(new URL(SystemIDResolver.getAbsoluteURI(systemId)), m_scriptSrcURL);          \n          }        \n          catch (java.net.MalformedURLException mue2)\n          {\n          }\n        }\n      }\n      if (url != null)\n      {\n        try\n        {\n          URLConnection uc = url.openConnection();\n          InputStream is = uc.getInputStream();\n          byte []bArray = new byte[uc.getContentLength()];\n          is.read(bArray);\n          m_scriptSrc = new String(bArray);\n          \n        }\n        catch (IOException ioe)\n        {\n        }\n      }\n      \n    }\n   \n    if (null == managerClass)\n\n    try\n    {\n      m_mgr = managerClass.newInstance();\n      m_engine = mgrLoadScriptingEngine.invoke(m_mgr,\n                                               new Object[]{ scriptLang });\n\n      engineExec.invoke(m_engine, new Object[]{ \"XalanScript\", NEG1INT,\n                                                NEG1INT, m_scriptSrc });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "TRY", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CATCH", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [2, 14], [0, 15], [0, 16], [3, 17], [4, 18], [12, 19], [13, 20], [2, 21], [2, 22], [2, 23], [14, 24], [3, 25], [3, 26], [3, 27], [17, 28], [4, 29], [4, 30], [4, 31], [18, 32], [12, 33], [12, 34], [12, 35], [21, 36], [22, 37], [25, 38], [29, 39], [19, 40], [34, 41], [35, 42], [21, 43], [36, 44], [37, 45], [37, 46], [37, 47], [22, 48], [23, 49], [25, 50], [26, 51], [27, 52], [29, 53], [30, 54], [31, 55], [43, 56], [43, 57], [43, 58], [43, 59], [45, 60], [48, 61], [25, 62], [29, 63], [33, 64], [43, 65], [43, 66], [45, 67], [60, 68], [60, 69], [46, 70], [47, 71], [50, 72], [53, 73], [65, 74], [58, 75], [59, 76], [67, 77], [45, 78], [69, 79], [69, 80], [70, 81], [71, 82], [57, 83], [67, 84], [78, 85], [79, 86], [80, 87], [84, 88], [88, 89], [89, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 2], [15, 0], [16, 0], [17, 3], [18, 4], [19, 12], [20, 13], [21, 2], [22, 2], [23, 2], [24, 14], [25, 3], [26, 3], [27, 3], [28, 17], [29, 4], [30, 4], [31, 4], [32, 18], [33, 12], [34, 12], [35, 12], [36, 21], [37, 22], [38, 25], [39, 29], [40, 19], [41, 34], [42, 35], [43, 21], [44, 36], [45, 37], [46, 37], [47, 37], [48, 22], [49, 23], [50, 25], [51, 26], [52, 27], [53, 29], [54, 30], [55, 31], [56, 43], [57, 43], [58, 43], [59, 43], [60, 45], [61, 48], [62, 25], [63, 29], [64, 33], [65, 43], [66, 43], [67, 45], [68, 60], [69, 60], [70, 46], [71, 47], [72, 50], [73, 53], [74, 65], [75, 58], [76, 59], [77, 67], [78, 45], [79, 69], [80, 69], [81, 70], [82, 71], [83, 57], [84, 67], [85, 78], [86, 79], [87, 80], [88, 84], [89, 88], [90, 89], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}], "label": 1}
{"sample_id": "xalan-2.7-8058", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/res/LongArrayWrapper.java", "language": "java", "name": "org.apache.xml.utils.res.LongArrayWrapper", "code": "public class LongArrayWrapper {\n    private long[] m_long;\n    \n    public LongArrayWrapper(long[] arg){\n        m_long = arg;\n    }\n    \n    public long getLong(int index){\n        return m_long[index];\n    }\n    \n    public int getLength(){\n        return m_long.length;", "functions": [{"function_name": "getLong", "code": "    public long getLong(int index){\n        return m_long[index];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLength", "code": "    public int getLength(){\n        return m_long.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "LongArrayWrapper", "code": "    public LongArrayWrapper(long[] arg){\n        m_long = arg;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-2970", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/management/InstrumentationLifecycleStrategy.java", "language": "java", "name": "org.apache.camel.management.InstrumentationLifecycleStrategy", "code": "public class InstrumentationLifecycleStrategy implements LifecycleStrategy {\n    private static final transient Log LOG = LogFactory.getLog(InstrumentationProcessor.class);\n\n    private InstrumentationAgent agent;\n    private CamelNamingStrategy namingStrategy;\n    private boolean initialized;\n\n    private Map<Endpoint, InstrumentationProcessor> interceptorMap =\n        new HashMap<Endpoint, InstrumentationProcessor>();\n\n    public InstrumentationLifecycleStrategy() {\n        this(new DefaultInstrumentationAgent());\n    }\n\n    public InstrumentationLifecycleStrategy(InstrumentationAgent agent) {\n        this.agent = agent;\n    }\n    /**\n     * Constructor for camel context that has been started.\n     *\n     * @param agent    the agent\n     * @param context  the camel context\n     */\n    public InstrumentationLifecycleStrategy(InstrumentationAgent agent, CamelContext context) {\n        this.agent = agent;\n        onContextStart(context);\n    }\n\n    public void onContextStart(CamelContext context) {\n        if (context instanceof DefaultCamelContext) {\n            try {\n                initialized = true;\n                DefaultCamelContext dc = (DefaultCamelContext)context;\n                dc.addService(agent);\n                namingStrategy = new CamelNamingStrategy(agent.getMBeanObjectDomainName());\n                ManagedService ms = new ManagedService(dc);\n                agent.register(ms, getNamingStrategy().getObjectName(dc));\n            } catch (Exception e) {\n                LOG.warn(\"Could not register CamelContext MBean\", e);\n            }\n        }\n    }\n\n    public void onEndpointAdd(Endpoint<? extends Exchange> endpoint) {\n        if (!initialized) {\n            return;\n        }\n\n        try {\n            ManagedEndpoint me = new ManagedEndpoint(endpoint);\n            agent.register(me, getNamingStrategy().getObjectName(me));\n        } catch (JMException e) {\n            LOG.warn(\"Could not register Endpoint MBean\", e);\n        }\n    }\n\n    public void onRoutesAdd(Collection<Route> routes) {\n        if (!initialized) {\n            return;\n        }\n\n        for (Route route : routes) {\n            try {\n                ManagedRoute mr = new ManagedRoute(route);\n                InstrumentationProcessor interceptor = interceptorMap.get(route.getEndpoint());\n                if (interceptor == null) {\n                    LOG.warn(\"Instrumentation processor not found for route endpoint \"\n                             + route.getEndpoint());\n                } else {\n                    interceptor.setCounter(mr);\n                }\n                agent.register(mr, getNamingStrategy().getObjectName(mr));\n            } catch (JMException e) {\n                LOG.warn(\"Could not register Route MBean\", e);\n            }\n        }\n    }\n\n    public void onServiceAdd(CamelContext context, Service service) {\n        if (!initialized) {\n            return;\n        }\n        if (service instanceof ServiceSupport && service instanceof Consumer) {\n            try {\n                ManagedService ms = new ManagedService((ServiceSupport)service);\n                agent.register(ms, getNamingStrategy().getObjectName(context, ms));\n            } catch (JMException e) {\n                LOG.warn(\"Could not register Service MBean\", e);\n            }\n        }\n    }\n\n    public void onRouteContextCreate(RouteContext routeContext) {\n        if (!initialized) {\n            return;\n        }\n\n        Map<ProcessorType, PerformanceCounter> counterMap =\n            new HashMap<ProcessorType, PerformanceCounter>();\n\n        RouteType route = routeContext.getRoute();\n        \n        for (ProcessorType processor : route.getOutputs()) {\n            ObjectName name = null;\n            try {\n                name = getNamingStrategy().getObjectName(routeContext, processor);\n\n                PerformanceCounter pc = new PerformanceCounter();\n                agent.register(pc, name);\n\n                counterMap.put(processor, pc);\n            } catch (MalformedObjectNameException e) {\n                LOG.warn(\"Could not create MBean name: \" + name, e);\n            } catch (JMException e) {\n                LOG.warn(\"Could not register PerformanceCounter MBean: \" + name, e);\n            }\n        }\n        \n        routeContext.addInterceptStrategy(new InstrumentationInterceptStrategy(counterMap));\n\n        routeContext.setErrorHandlerWrappingStrategy(\n                new InstrumentationErrorHandlerWrappingStrategy(counterMap));\n\n\n        RouteType routeType = routeContext.getRoute();\n        if (routeType.getInputs() != null && !routeType.getInputs().isEmpty()) {\n            if (routeType.getInputs().size() > 1) {\n                LOG.warn(\"Add InstrumentationProcessor to first input only.\");\n            }\n\n            Endpoint endpoint  = routeType.getInputs().get(0).getEndpoint();\n\n            List<ProcessorType<?>> exceptionHandlers = new ArrayList<ProcessorType<?>>();\n            List<ProcessorType<?>> outputs = new ArrayList<ProcessorType<?>>();\n\n            for (ProcessorType output : routeType.getOutputs()) {\n                if (output instanceof ExceptionType) {\n                    exceptionHandlers.add(output);\n                } else {\n                    outputs.add(output);\n                }\n            }\n\n            routeType.clearOutput();\n\n            routeType.getOutputs().addAll(exceptionHandlers);\n\n            InstrumentationProcessor processor = new InstrumentationProcessor();\n            routeType.intercept(processor);\n\n            for (ProcessorType<?> processorType : outputs) {\n                routeType.addOutput(processorType);\n            }\n\n            interceptorMap.put(endpoint, processor);\n        }\n\n    }\n\n    public CamelNamingStrategy getNamingStrategy() {\n        return namingStrategy;\n    }\n\n    public void setNamingStrategy(CamelNamingStrategy strategy) {\n        this.namingStrategy = strategy;\n    }\n\n    public void setAgent(InstrumentationAgent agent) {\n        this.agent = agent;", "functions": [{"function_name": "onContextStart", "code": "    public void onContextStart(CamelContext context) {\n        if (context instanceof DefaultCamelContext) {\n            try {\n                initialized = true;\n                DefaultCamelContext dc = (DefaultCamelContext)context;\n                dc.addService(agent);\n                namingStrategy = new CamelNamingStrategy(agent.getMBeanObjectDomainName());\n                ManagedService ms = new ManagedService(dc);\n                agent.register(ms, getNamingStrategy().getObjectName(dc));\n            } catch (Exception e) {\n                LOG.warn(\"Could not register CamelContext MBean\", e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "TRY", "CATCH", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [5, 12], [8, 13], [6, 14], [9, 15], [11, 16], [12, 17], [13, 18], [15, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 4], [12, 5], [13, 8], [14, 6], [15, 9], [16, 11], [17, 12], [18, 13], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "onEndpointAdd", "code": "    public void onEndpointAdd(Endpoint<? extends Exchange> endpoint) {\n        if (!initialized) {\n            return;\n        }\n\n        try {\n            ManagedEndpoint me = new ManagedEndpoint(endpoint);\n            agent.register(me, getNamingStrategy().getObjectName(me));\n        } catch (JMException e) {\n            LOG.warn(\"Could not register Endpoint MBean\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "VAR_DECL", "CALL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [4, 8], [6, 9], [5, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 4], [9, 6], [10, 5], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "onRoutesAdd", "code": "    public void onRoutesAdd(Collection<Route> routes) {\n        if (!initialized) {\n            return;\n        }\n\n        for (Route route : routes) {\n            try {\n                ManagedRoute mr = new ManagedRoute(route);\n                InstrumentationProcessor interceptor = interceptorMap.get(route.getEndpoint());\n                if (interceptor == null) {\n                    LOG.warn(\"Instrumentation processor not found for route endpoint \"\n                             + route.getEndpoint());\n                } else {\n                    interceptor.setCounter(mr);\n                }\n                agent.register(mr, getNamingStrategy().getObjectName(mr));\n            } catch (JMException e) {\n                LOG.warn(\"Could not register Route MBean\", e);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "TRY", "RETURN", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [7, 11], [6, 12], [10, 13], [11, 14], [8, 15], [9, 16], [12, 17], [13, 18], [7, 19], [7, 20], [15, 21], [20, 22], [22, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 7], [12, 6], [13, 10], [14, 11], [15, 8], [16, 9], [17, 12], [18, 13], [19, 7], [20, 7], [21, 15], [22, 20], [23, 22], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "onServiceAdd", "code": "    public void onServiceAdd(CamelContext context, Service service) {\n        if (!initialized) {\n            return;\n        }\n        if (service instanceof ServiceSupport && service instanceof Consumer) {\n            try {\n                ManagedService ms = new ManagedService((ServiceSupport)service);\n                agent.register(ms, getNamingStrategy().getObjectName(context, ms));\n            } catch (JMException e) {\n                LOG.warn(\"Could not register Service MBean\", e);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "TRY", "BINARY_OP", "BINARY_OP", "RETURN", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [2, 9], [6, 10], [6, 11], [6, 12], [10, 13], [12, 14], [11, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 2], [10, 6], [11, 6], [12, 6], [13, 10], [14, 12], [15, 11], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "onRouteContextCreate", "code": "    public void onRouteContextCreate(RouteContext routeContext) {\n        if (!initialized) {\n            return;\n        }\n\n        Map<ProcessorType, PerformanceCounter> counterMap =\n            new HashMap<ProcessorType, PerformanceCounter>();\n\n        RouteType route = routeContext.getRoute();\n        \n        for (ProcessorType processor : route.getOutputs()) {\n            ObjectName name = null;\n            try {\n                name = getNamingStrategy().getObjectName(routeContext, processor);\n\n                PerformanceCounter pc = new PerformanceCounter();\n                agent.register(pc, name);\n\n                counterMap.put(processor, pc);\n            } catch (MalformedObjectNameException e) {\n                LOG.warn(\"Could not create MBean name: \" + name, e);\n            } catch (JMException e) {\n                LOG.warn(\"Could not register PerformanceCounter MBean: \" + name, e);\n            }\n        }\n        \n        routeContext.addInterceptStrategy(new InstrumentationInterceptStrategy(counterMap));\n\n        routeContext.setErrorHandlerWrappingStrategy(\n                new InstrumentationErrorHandlerWrappingStrategy(counterMap));\n\n\n        RouteType routeType = routeContext.getRoute();\n        if (routeType.getInputs() != null && !routeType.getInputs().isEmpty()) {\n            if (routeType.getInputs().size() > 1) {\n                LOG.warn(\"Add InstrumentationProcessor to first input only.\");\n            }\n\n            Endpoint endpoint  = routeType.getInputs().get(0).getEndpoint();\n\n            List<ProcessorType<?>> exceptionHandlers = new ArrayList<ProcessorType<?>>();\n            List<ProcessorType<?>> outputs = new ArrayList<ProcessorType<?>>();\n\n            for (ProcessorType output : routeType.getOutputs()) {\n                if (output instanceof ExceptionType) {\n                    exceptionHandlers.add(output);\n                } else {\n                    outputs.add(output);\n                }\n            }\n\n            routeType.clearOutput();\n\n            routeType.getOutputs().addAll(exceptionHandlers);\n\n            InstrumentationProcessor processor = new InstrumentationProcessor();\n            routeType.intercept(processor);\n\n            for (ProcessorType<?> processorType : outputs) {\n                routeType.addOutput(processorType);\n            }\n\n            interceptorMap.put(endpoint, processor);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "TRY", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "VAR_DECL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [8, 18], [8, 19], [2, 20], [9, 21], [10, 22], [3, 23], [3, 24], [3, 25], [4, 26], [5, 27], [6, 28], [1, 29], [1, 30], [1, 31], [1, 32], [17, 33], [18, 34], [19, 35], [19, 36], [23, 37], [23, 38], [23, 39], [12, 40], [31, 41], [13, 42], [13, 43], [14, 44], [15, 45], [16, 46], [33, 47], [33, 48], [23, 49], [23, 50], [23, 51], [24, 52], [11, 53], [42, 54], [46, 55], [46, 56], [17, 57], [48, 58], [37, 59], [38, 60], [39, 61], [51, 62], [56, 63], [57, 64], [59, 65], [60, 66], [62, 67], [42, 68], [42, 69], [65, 70], [66, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 8], [19, 8], [20, 2], [21, 9], [22, 10], [23, 3], [24, 3], [25, 3], [26, 4], [27, 5], [28, 6], [29, 1], [30, 1], [31, 1], [32, 1], [33, 17], [34, 18], [35, 19], [36, 19], [37, 23], [38, 23], [39, 23], [40, 12], [41, 31], [42, 13], [43, 13], [44, 14], [45, 15], [46, 16], [47, 33], [48, 33], [49, 23], [50, 23], [51, 23], [52, 24], [53, 11], [54, 42], [55, 46], [56, 46], [57, 17], [58, 48], [59, 37], [60, 38], [61, 39], [62, 51], [63, 56], [64, 57], [65, 59], [66, 60], [67, 62], [68, 42], [69, 42], [70, 65], [71, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "getNamingStrategy", "code": "    public CamelNamingStrategy getNamingStrategy() {\n        return namingStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamingStrategy", "code": "    public void setNamingStrategy(CamelNamingStrategy strategy) {\n        this.namingStrategy = strategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAgent", "code": "    public void setAgent(InstrumentationAgent agent) {\n        this.agent = agent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "InstrumentationLifecycleStrategy", "code": "    public InstrumentationLifecycleStrategy() {\n        this(new DefaultInstrumentationAgent());", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "InstrumentationLifecycleStrategy", "code": "    public InstrumentationLifecycleStrategy(InstrumentationAgent agent) {\n        this.agent = agent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "InstrumentationLifecycleStrategy", "code": "    public InstrumentationLifecycleStrategy(InstrumentationAgent agent, CamelContext context) {\n        this.agent = agent;\n        onContextStart(context);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.0-1510", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/bam/processor/BamProcessorSupport.java", "language": "java", "name": "org.apache.camel.bam.processor.BamProcessorSupport", "code": "public abstract class BamProcessorSupport<T> implements Processor {\n    private static final transient Log log = LogFactory.getLog(BamProcessorSupport.class);\n    private Class<T> entityType;\n    private Expression<Exchange> correlationKeyExpression;\n    private TransactionTemplate transactionTemplate;\n\n    protected BamProcessorSupport(TransactionTemplate transactionTemplate, Expression<Exchange> correlationKeyExpression) {\n        this.transactionTemplate = transactionTemplate;\n        this.correlationKeyExpression = correlationKeyExpression;\n\n        Type type = getClass().getGenericSuperclass();\n        if (type instanceof ParameterizedType) {\n            ParameterizedType parameterizedType = (ParameterizedType) type;\n            Type[] arguments = parameterizedType.getActualTypeArguments();\n            if (arguments.length > 0) {\n                Type argumentType = arguments[0];\n                if (argumentType instanceof Class) {\n                    this.entityType = (Class<T>) argumentType;\n                }\n            }\n        }\n        if (entityType == null) {\n            throw new IllegalArgumentException(\"Could not infer the entity type!\");\n        }\n    }\n\n    protected BamProcessorSupport(TransactionTemplate transactionTemplate, Expression<Exchange> correlationKeyExpression, Class<T> entitytype) {\n        this.transactionTemplate = transactionTemplate;\n        this.entityType = entitytype;\n        this.correlationKeyExpression = correlationKeyExpression;\n    }\n\n    public void process(final Exchange exchange) {\n        transactionTemplate.execute(new TransactionCallback() {\n            public Object doInTransaction(TransactionStatus status) {\n                try {\n                    Object key = getCorrelationKey(exchange);\n\n                    T entity = loadEntity(exchange, key);\n\n                    if (log.isDebugEnabled()) {\n                        log.debug(\"Correlation key: \" + key + \" with entity: \" + entity);\n                    }\n                    processEntity(exchange, entity);\n\n                    return entity;\n                }\n                catch (Exception e) {\n                    throw new RuntimeCamelException(e);\n                }\n            }\n        });\n    }\n\n    public Expression<Exchange> getCorrelationKeyExpression() {\n        return correlationKeyExpression;\n    }\n\n    public Class<T> getEntityType() {\n        return entityType;\n    }\n\n    protected abstract void processEntity(Exchange exchange, T entity) throws Exception;\n\n    protected abstract T loadEntity(Exchange exchange, Object key);\n\n    protected Object getCorrelationKey(Exchange exchange) throws NoCorrelationKeyException {\n        Object value = correlationKeyExpression.evaluate(exchange);\n        if (value == null) {\n            throw new NoCorrelationKeyException(this, exchange);\n        }\n        return value;", "functions": [{"function_name": "process", "code": "    public void process(final Exchange exchange) {\n        transactionTemplate.execute(new TransactionCallback() {\n            public Object doInTransaction(TransactionStatus status) {\n                try {\n                    Object key = getCorrelationKey(exchange);\n\n                    T entity = loadEntity(exchange, key);\n\n                    if (log.isDebugEnabled()) {\n                        log.debug(\"Correlation key: \" + key + \" with entity: \" + entity);\n                    }\n                    processEntity(exchange, entity);\n\n                    return entity;\n                }\n                catch (Exception e) {\n                    throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [4, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [7, 12], [5, 13], [9, 14], [12, 15], [10, 16], [11, 17], [9, 18], [18, 19], [19, 20], [20, 21], [20, 22], [22, 23], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [6, 4], [7, 5], [8, 5], [9, 5], [10, 5], [11, 5], [12, 7], [13, 5], [14, 9], [15, 12], [16, 10], [17, 11], [18, 9], [19, 18], [20, 19], [21, 20], [22, 20], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getCorrelationKeyExpression", "code": "    public Expression<Exchange> getCorrelationKeyExpression() {\n        return correlationKeyExpression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEntityType", "code": "    public Class<T> getEntityType() {\n        return entityType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "processEntity", "code": "    protected abstract void processEntity(Exchange exchange, T entity) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadEntity", "code": "    protected abstract T loadEntity(Exchange exchange, Object key);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCorrelationKey", "code": "    protected Object getCorrelationKey(Exchange exchange) throws NoCorrelationKeyException {\n        Object value = correlationKeyExpression.evaluate(exchange);\n        if (value == null) {\n            throw new NoCorrelationKeyException(this, exchange);\n        }\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "BamProcessorSupport", "code": "    protected BamProcessorSupport(TransactionTemplate transactionTemplate, Expression<Exchange> correlationKeyExpression) {\n        this.transactionTemplate = transactionTemplate;\n        this.correlationKeyExpression = correlationKeyExpression;\n\n        Type type = getClass().getGenericSuperclass();\n        if (type instanceof ParameterizedType) {\n            ParameterizedType parameterizedType = (ParameterizedType) type;\n            Type[] arguments = parameterizedType.getActualTypeArguments();\n            if (arguments.length > 0) {\n                Type argumentType = arguments[0];\n                if (argumentType instanceof Class) {\n                    this.entityType = (Class<T>) argumentType;\n                }\n            }\n        }\n        if (entityType == null) {\n            throw new IllegalArgumentException(\"Could not infer the entity type!\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [1, 10], [6, 11], [2, 12], [2, 13], [2, 14], [3, 15], [10, 16], [12, 17], [15, 18], [16, 19], [12, 20], [12, 21], [17, 22], [13, 23], [20, 24], [20, 25], [21, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 1], [11, 6], [12, 2], [13, 2], [14, 2], [15, 3], [16, 10], [17, 12], [18, 15], [19, 16], [20, 12], [21, 12], [22, 17], [23, 13], [24, 20], [25, 20], [26, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "BamProcessorSupport", "code": "    protected BamProcessorSupport(TransactionTemplate transactionTemplate, Expression<Exchange> correlationKeyExpression, Class<T> entitytype) {\n        this.transactionTemplate = transactionTemplate;\n        this.entityType = entitytype;\n        this.correlationKeyExpression = correlationKeyExpression;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-1.5-5339", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/usermodel/HSSFSheet.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFSheet", "code": "public class HSSFSheet\n{\n    private static final int DEBUG = POILogger.DEBUG;\n\n    /**\n     * Used for compile-time optimization.  This is the initial size for the collection of\n     * rows.  It is currently set to 20.  If you generate larger sheets you may benefit\n     * by setting this to a higher number and recompiling a custom edition of HSSFSheet.\n     */\n\n    public final static int INITIAL_CAPACITY = 20;\n\n    /**\n     * reference to the low level Sheet object\n     */\n\n    private Sheet sheet;\n    private TreeMap rows;\n    private Workbook book;\n    private int firstrow;\n    private int lastrow;\n    private static POILogger log = POILogFactory.getLogger(HSSFSheet.class);\n\n    /**\n     * Creates new HSSFSheet   - called by HSSFWorkbook to create a sheet from\n     * scratch.  You should not be calling this from application code (its protected anyhow).\n     *\n     * @param book - lowlevel Workbook object associated with the sheet.\n     * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createSheet()\n     */\n\n    protected HSSFSheet(Workbook book)\n    {\n        sheet = Sheet.createSheet();\n        this.book = book;\n    }\n\n    /**\n     * Creates an HSSFSheet representing the given Sheet object.  Should only be\n     * called by HSSFWorkbook when reading in an exisiting file.\n     *\n     * @param book - lowlevel Workbook object associated with the sheet.\n     * @param sheet - lowlevel Sheet object this sheet will represent\n     * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createSheet()\n     */\n\n    protected HSSFSheet(Workbook book, Sheet sheet)\n    {\n        this.sheet = sheet;\n        rows = new TreeMap();\n        this.book = book;\n        setPropertiesFromSheet(sheet);\n    }\n\n\n    /**\n     * used internally to set the properties given a Sheet object\n     */\n\n    private void setPropertiesFromSheet(Sheet sheet)\n    {\n        int sloc = sheet.getLoc();\n        RowRecord row = sheet.getNextRow();\n\n        while (row != null)\n        {\n            createRowFromRecord(row);\n\n            row = sheet.getNextRow();\n        }\n        sheet.setLoc(sloc);\n        CellValueRecordInterface cval = sheet.getNextValueRecord();\n        long timestart = System.currentTimeMillis();\n\n        log.log(DEBUG, \"Time at start of cell creating in HSSF sheet = \",\n                new Long(timestart));\n        HSSFRow lastrow = null;\n\n        while (cval != null)\n        {\n            long cellstart = System.currentTimeMillis();\n            HSSFRow hrow = lastrow;\n\n            if ((lastrow == null) || (lastrow.getRowNum() != cval.getRow()))\n            {\n                hrow = getRow(cval.getRow());\n            }\n            lastrow = hrow;\n            hrow.createCellFromRecord(cval);\n            cval = sheet.getNextValueRecord();\n            log.log(DEBUG, \"record took \",\n                    new Long(System.currentTimeMillis() - cellstart));\n        }\n        log.log(DEBUG, \"total sheet cell creation took \",\n                new Long(System.currentTimeMillis() - timestart));\n    }\n\n    /**\n     * Create a new row within the sheet and return the high level representation\n     *\n     * @param rownum  row number\n     * @return High level HSSFRow object representing a row in the sheet\n     * @see org.apache.poi.hssf.usermodel.HSSFRow\n     * @see #removeRow(HSSFRow)\n     */\n\n    public HSSFRow createRow(short rownum)\n    {\n        HSSFRow row = new HSSFRow(book, sheet, rownum);\n\n        addRow(row, true);\n        return row;\n    }\n\n    /**\n     * Used internally to create a high level Row object from a low level row object.\n     * USed when reading an existing file\n     * @param row  low level record to represent as a high level Row and add to sheet\n     * @return HSSFRow high level representation\n     */\n\n    private HSSFRow createRowFromRecord(RowRecord row)\n    {\n        HSSFRow hrow = new HSSFRow(book, sheet, row);\n\n        addRow(hrow, false);\n        return hrow;\n    }\n\n    /**\n     * Remove a row from this sheet.  All cells contained in the row are removed as well\n     *\n     * @param row   representing a row to remove.\n     */\n\n    public void removeRow(HSSFRow row)\n    {\n        sheet.setLoc(sheet.getDimsLoc());\n        if (rows.size() > 0)\n        {\n            rows.remove(row);\n            if (row.getRowNum() == getLastRowNum())\n            {\n                lastrow = findLastRow(lastrow);\n            }\n            if (row.getRowNum() == getFirstRowNum())\n            {\n                firstrow = findFirstRow(firstrow);\n            }\n            Iterator iter = row.cellIterator();\n\n            while (iter.hasNext())\n            {\n                HSSFCell cell = (HSSFCell) iter.next();\n\n                sheet.removeValueRecord(row.getRowNum(),\n                        cell.getCellValueRecord());\n            }\n            sheet.removeRow(row.getRowRecord());\n        }\n    }\n\n    /**\n     * used internally to refresh the \"last row\" when the last row is removed.\n     */\n\n    private int findLastRow(int lastrow)\n    {\n        int rownum = lastrow - 1;\n        HSSFRow r = getRow(rownum);\n\n        while (r == null && rownum >= 0)\n        {\n            r = getRow(--rownum);\n        }\n        return rownum;\n    }\n\n    /**\n     * used internally to refresh the \"first row\" when the first row is removed.\n     */\n\n    private int findFirstRow(int firstrow)\n    {\n        int rownum = firstrow + 1;\n        HSSFRow r = getRow(rownum);\n\n        while (r == null && rownum <= getLastRowNum())\n        {\n            r = getRow(++rownum);\n        }\n\n        if (rownum > getLastRowNum())\n            return -1;\n\n        return rownum;\n    }\n\n    /**\n     * add a row to the sheet\n     *\n     * @param addLow whether to add the row to the low level model - false if its already there\n     */\n\n    private void addRow(HSSFRow row, boolean addLow)\n    {\n        rows.put(row, row);\n        if (addLow)\n        {\n            sheet.addRow(row.getRowRecord());\n        }\n        if (row.getRowNum() > getLastRowNum())\n        {\n            lastrow = row.getRowNum();\n        }\n        if (row.getRowNum() < getFirstRowNum())\n        {\n            firstrow = row.getRowNum();\n        }\n    }\n\n    /**\n     * Returns the logical row (not physical) 0-based.  If you ask for a row that is not\n     * defined you get a null.  This is to say row 4 represents the fifth row on a sheet.\n     * @param rownum  row to get\n     * @return HSSFRow representing the rownumber or null if its not defined on the sheet\n     */\n\n    public HSSFRow getRow(int rownum)\n    {\n        HSSFRow row = new HSSFRow();\n\n        row.setRowNum((short) rownum);\n        return (HSSFRow) rows.get(row);\n    }\n\n    /**\n     * Returns the number of phsyically defined rows (NOT the number of rows in the sheet)\n     */\n\n    public int getPhysicalNumberOfRows()\n    {\n        return rows.size();\n    }\n\n    /**\n     * gets the first row on the sheet\n     * @return the number of the first logical row on the sheet\n     */\n\n    public int getFirstRowNum()\n    {\n        return firstrow;\n    }\n\n    /**\n     * gets the last row on the sheet\n     * @return last row contained n this sheet.\n     */\n\n    public int getLastRowNum()\n    {\n        return lastrow;\n    }\n\n    /**\n     * set the width (in units of 1/256th of a character width)\n     * @param column - the column to set (0-based)\n     * @param width - the width in units of 1/256th of a character width\n     */\n\n    public void setColumnWidth(short column, short width)\n    {\n        sheet.setColumnWidth(column, width);\n    }\n\n    /**\n     * get the width (in units of 1/256th of a character width )\n     * @param column - the column to set (0-based)\n     * @return width - the width in units of 1/256th of a character width\n     */\n\n    public short getColumnWidth(short column)\n    {\n        return sheet.getColumnWidth(column);\n    }\n\n    /**\n     * get the default column width for the sheet (if the columns do not define their own width) in\n     * characters\n     * @return default column width\n     */\n\n    public short getDefaultColumnWidth()\n    {\n        return sheet.getDefaultColumnWidth();\n    }\n\n    /**\n     * get the default row height for the sheet (if the rows do not define their own height) in\n     * twips (1/20 of  a point)\n     * @return  default row height\n     */\n\n    public short getDefaultRowHeight()\n    {\n        return sheet.getDefaultRowHeight();\n    }\n\n    /**\n     * get the default row height for the sheet (if the rows do not define their own height) in\n     * points.\n     * @return  default row height in points\n     */\n\n    public float getDefaultRowHeightInPoints()\n    {\n        return (sheet.getDefaultRowHeight() / 20);\n    }\n\n    /**\n     * set the default column width for the sheet (if the columns do not define their own width) in\n     * characters\n     * @param width default column width\n     */\n\n    public void setDefaultColumnWidth(short width)\n    {\n        sheet.setDefaultColumnWidth(width);\n    }\n\n    /**\n     * set the default row height for the sheet (if the rows do not define their own height) in\n     * twips (1/20 of  a point)\n     * @param  height default row height\n     */\n\n    public void setDefaultRowHeight(short height)\n    {\n        sheet.setDefaultRowHeight(height);\n    }\n\n    /**\n     * set the default row height for the sheet (if the rows do not define their own height) in\n     * points\n     * @param height default row height\n     */\n\n    public void setDefaultRowHeightInPoints(float height)\n    {\n        sheet.setDefaultRowHeight((short) (height * 20));\n    }\n\n    /**\n     * get whether gridlines are printed.\n     * @return true if printed\n     */\n\n    public boolean isGridsPrinted()\n    {\n        return sheet.isGridsPrinted();\n    }\n\n    /**\n     * set whether gridlines printed.\n     * @param value  false if not printed.\n     */\n\n    public void setGridsPrinted(boolean value)\n    {\n        sheet.setGridsPrinted(value);\n    }\n\n    /**\n     * adds a merged region of cells (hence those cells form one)\n     * @param region (rowfrom/colfrom-rowto/colto) to merge\n     * @return index of this region\n     */\n\n    public int addMergedRegion(Region region)\n    {\n        return sheet.addMergedRegion((short) region.getRowFrom(),\n                region.getColumnFrom(),\n                (short) region.getRowTo(),\n                region.getColumnTo());\n    }\n\n    /**\n     * determines whether the output is vertically centered on the page.\n     * @param value true to vertically center, false otherwise.\n     */\n\n    public void setVerticallyCenter(boolean value)\n    {\n        VCenterRecord record =\n                (VCenterRecord) sheet.findFirstRecordBySid(VCenterRecord.sid);\n\n        record.setVCenter(value);\n    }\n\n    /**\n     * Determine whether printed output for this sheet will be vertically centered.\n     */\n\n    public boolean getVerticallyCenter(boolean value)\n    {\n        VCenterRecord record =\n                (VCenterRecord) sheet.findFirstRecordBySid(VCenterRecord.sid);\n\n        return record.getVCenter();\n    }\n\n    /**\n     * removes a merged region of cells (hence letting them free)\n     * @param index of the region to unmerge\n     */\n\n    public void removeMergedRegion(int index)\n    {\n        sheet.removeMergedRegion(index);\n    }\n\n    /**\n     * returns the number of merged regions\n     * @return number of merged regions\n     */\n\n    public int getNumMergedRegions()\n    {\n        return sheet.getNumMergedRegions();\n    }\n\n    /**\n     * gets the region at a particular index\n     * @param index of the region to fetch\n     * @return the merged region (simple eh?)\n     */\n\n    public Region getMergedRegionAt(int index)\n    {\n        return new Region(sheet.getMergedRegionAt(index));\n    }\n\n    /**\n     * @return an iterator of the PHYSICAL rows.  Meaning the 3rd element may not\n     * be the third row if say for instance the second row is undefined.\n     */\n\n    public Iterator rowIterator()\n    {\n        return rows.values().iterator();\n    }\n\n    /**\n     * used internally in the API to get the low level Sheet record represented by this\n     * Object.\n     * @return Sheet - low level representation of this HSSFSheet.\n     */\n\n    protected Sheet getSheet()\n    {\n        return sheet;\n    }\n\n    /**\n     * whether alternate expression evaluation is on\n     * @param b  alternative expression evaluation or not\n     */\n\n    public void setAlternativeExpression(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setAlternateExpression(b);\n    }\n\n    /**\n     * whether alternative formula entry is on\n     * @param b  alternative formulas or not\n     */\n\n    public void setAlternativeFormula(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setAlternateFormula(b);\n    }\n\n    /**\n     * show automatic page breaks or not\n     * @param b  whether to show auto page breaks\n     */\n\n    public void setAutobreaks(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setAutobreaks(b);\n    }\n\n    /**\n     * set whether sheet is a dialog sheet or not\n     * @param b  isDialog or not\n     */\n\n    public void setDialog(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setDialog(b);\n    }\n\n    /**\n     * set whether to display the guts or not\n     *\n     * @param b  guts or no guts (or glory)\n     */\n\n    public void setDisplayGuts(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setDisplayGuts(b);\n    }\n\n    /**\n     * fit to page option is on\n     * @param b  fit or not\n     */\n\n    public void setFitToPage(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setFitToPage(b);\n    }\n\n    /**\n     * set if row summaries appear below detail in the outline\n     * @param b  below or not\n     */\n\n    public void setRowSumsBelow(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setRowSumsBelow(b);\n    }\n\n    /**\n     * set if col summaries appear right of the detail in the outline\n     * @param b  right or not\n     */\n\n    public void setRowSumsRight(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setRowSumsRight(b);\n    }\n\n    /**\n     * whether alternate expression evaluation is on\n     * @return alternative expression evaluation or not\n     */\n\n    public boolean getAlternateExpression()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))\n                .getAlternateExpression();\n    }\n\n    /**\n     * whether alternative formula entry is on\n     * @return alternative formulas or not\n     */\n\n    public boolean getAlternateFormula()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))\n                .getAlternateFormula();\n    }\n\n    /**\n     * show automatic page breaks or not\n     * @return whether to show auto page breaks\n     */\n\n    public boolean getAutobreaks()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))\n                .getAutobreaks();\n    }\n\n    /**\n     * get whether sheet is a dialog sheet or not\n     * @return isDialog or not\n     */\n\n    public boolean getDialog()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))\n                .getDialog();\n    }\n\n    /**\n     * get whether to display the guts or not\n     *\n     * @return guts or no guts (or glory)\n     */\n\n    public boolean getDisplayGuts()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))\n                .getDisplayGuts();\n    }\n\n    /**\n     * fit to page option is on\n     * @return fit or not\n     */\n\n    public boolean getFitToPage()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))\n                .getFitToPage();\n    }\n\n    /**\n     * get if row summaries appear below detail in the outline\n     * @return below or not\n     */\n\n    public boolean getRowSumsBelow()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))\n                .getRowSumsBelow();\n    }\n\n    /**\n     * get if col summaries appear right of the detail in the outline\n     * @return right or not\n     */\n\n    public boolean getRowSumsRight()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))", "functions": [{"function_name": "setPropertiesFromSheet", "code": "    private void setPropertiesFromSheet(Sheet sheet)\n    {\n        int sloc = sheet.getLoc();\n        RowRecord row = sheet.getNextRow();\n\n        while (row != null)\n        {\n            createRowFromRecord(row);\n\n            row = sheet.getNextRow();\n        }\n        sheet.setLoc(sloc);\n        CellValueRecordInterface cval = sheet.getNextValueRecord();\n        long timestart = System.currentTimeMillis();\n\n        log.log(DEBUG, \"Time at start of cell creating in HSSF sheet = \",\n                new Long(timestart));\n        HSSFRow lastrow = null;\n\n        while (cval != null)\n        {\n            long cellstart = System.currentTimeMillis();\n            HSSFRow hrow = lastrow;\n\n            if ((lastrow == null) || (lastrow.getRowNum() != cval.getRow()))\n            {\n                hrow = getRow(cval.getRow());\n            }\n            lastrow = hrow;\n            hrow.createCellFromRecord(cval);\n            cval = sheet.getNextValueRecord();\n            log.log(DEBUG, \"record took \",\n                    new Long(System.currentTimeMillis() - cellstart));\n        }\n        log.log(DEBUG, \"total sheet cell creation took \",\n                new Long(System.currentTimeMillis() - timestart));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [5, 13], [9, 14], [9, 15], [1, 16], [1, 17], [1, 18], [10, 19], [2, 20], [11, 21], [11, 22], [3, 23], [4, 24], [13, 25], [6, 26], [7, 27], [14, 28], [1, 29], [1, 30], [1, 31], [1, 32], [16, 33], [5, 34], [5, 35], [28, 36], [29, 37], [29, 38], [30, 39], [33, 40], [33, 41], [18, 42], [34, 43], [37, 44], [16, 45], [40, 46], [40, 47], [41, 48], [44, 49], [45, 50], [50, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 5], [14, 9], [15, 9], [16, 1], [17, 1], [18, 1], [19, 10], [20, 2], [21, 11], [22, 11], [23, 3], [24, 4], [25, 13], [26, 6], [27, 7], [28, 14], [29, 1], [30, 1], [31, 1], [32, 1], [33, 16], [34, 5], [35, 5], [36, 28], [37, 29], [38, 29], [39, 30], [40, 33], [41, 33], [42, 18], [43, 34], [44, 37], [45, 16], [46, 40], [47, 40], [48, 41], [49, 44], [50, 45], [51, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "createRow", "code": "    public HSSFRow createRow(short rownum)\n    {\n        HSSFRow row = new HSSFRow(book, sheet, rownum);\n\n        addRow(row, true);\n        return row;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createRowFromRecord", "code": "    private HSSFRow createRowFromRecord(RowRecord row)\n    {\n        HSSFRow hrow = new HSSFRow(book, sheet, row);\n\n        addRow(hrow, false);\n        return hrow;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "removeRow", "code": "    public void removeRow(HSSFRow row)\n    {\n        sheet.setLoc(sheet.getDimsLoc());\n        if (rows.size() > 0)\n        {\n            rows.remove(row);\n            if (row.getRowNum() == getLastRowNum())\n            {\n                lastrow = findLastRow(lastrow);\n            }\n            if (row.getRowNum() == getFirstRowNum())\n            {\n                firstrow = findFirstRow(firstrow);\n            }\n            Iterator iter = row.cellIterator();\n\n            while (iter.hasNext())\n            {\n                HSSFCell cell = (HSSFCell) iter.next();\n\n                sheet.removeValueRecord(row.getRowNum(),\n                        cell.getCellValueRecord());\n            }\n            sheet.removeRow(row.getRowRecord());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [3, 10], [4, 11], [1, 12], [5, 13], [7, 14], [8, 15], [1, 16], [12, 17], [5, 18], [6, 19], [14, 20], [14, 21], [15, 22], [15, 23], [5, 24], [7, 25], [8, 26], [24, 27], [24, 28], [25, 29], [26, 30], [18, 31], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 3], [11, 4], [12, 1], [13, 5], [14, 7], [15, 8], [16, 1], [17, 12], [18, 5], [19, 6], [20, 14], [21, 14], [22, 15], [23, 15], [24, 5], [25, 7], [26, 8], [27, 24], [28, 24], [29, 25], [30, 26], [31, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "findLastRow", "code": "    private int findLastRow(int lastrow)\n    {\n        int rownum = lastrow - 1;\n        HSSFRow r = getRow(rownum);\n\n        while (r == null && rownum >= 0)\n        {\n            r = getRow(--rownum);\n        }\n        return rownum;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [6, 8], [3, 9], [4, 10], [2, 11], [7, 12], [8, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 6], [9, 3], [10, 4], [11, 2], [12, 7], [13, 8], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "findFirstRow", "code": "    private int findFirstRow(int firstrow)\n    {\n        int rownum = firstrow + 1;\n        HSSFRow r = getRow(rownum);\n\n        while (r == null && rownum <= getLastRowNum())\n        {\n            r = getRow(++rownum);\n        }\n\n        if (rownum > getLastRowNum())\n            return -1;\n\n        return rownum;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [7, 10], [8, 11], [9, 12], [9, 13], [4, 14], [5, 15], [3, 16], [12, 17], [13, 18], [15, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 7], [11, 8], [12, 9], [13, 9], [14, 4], [15, 5], [16, 3], [17, 12], [18, 13], [19, 15], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "addRow", "code": "    private void addRow(HSSFRow row, boolean addLow)\n    {\n        rows.put(row, row);\n        if (addLow)\n        {\n            sheet.addRow(row.getRowRecord());\n        }\n        if (row.getRowNum() > getLastRowNum())\n        {\n            lastrow = row.getRowNum();\n        }\n        if (row.getRowNum() < getFirstRowNum())\n        {\n            firstrow = row.getRowNum();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [6, 9], [6, 10], [7, 11], [7, 12], [1, 13], [2, 14], [3, 15], [13, 16], [14, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 6], [10, 6], [11, 7], [12, 7], [13, 1], [14, 2], [15, 3], [16, 13], [17, 14], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getRow", "code": "    public HSSFRow getRow(int rownum)\n    {\n        HSSFRow row = new HSSFRow();\n\n        row.setRowNum((short) rownum);\n        return (HSSFRow) rows.get(row);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getPhysicalNumberOfRows", "code": "    public int getPhysicalNumberOfRows()\n    {\n        return rows.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstRowNum", "code": "    public int getFirstRowNum()\n    {\n        return firstrow;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastRowNum", "code": "    public int getLastRowNum()\n    {\n        return lastrow;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setColumnWidth", "code": "    public void setColumnWidth(short column, short width)\n    {\n        sheet.setColumnWidth(column, width);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getColumnWidth", "code": "    public short getColumnWidth(short column)\n    {\n        return sheet.getColumnWidth(column);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDefaultColumnWidth", "code": "    public short getDefaultColumnWidth()\n    {\n        return sheet.getDefaultColumnWidth();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultRowHeight", "code": "    public short getDefaultRowHeight()\n    {\n        return sheet.getDefaultRowHeight();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultRowHeightInPoints", "code": "    public float getDefaultRowHeightInPoints()\n    {\n        return (sheet.getDefaultRowHeight() / 20);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDefaultColumnWidth", "code": "    public void setDefaultColumnWidth(short width)\n    {\n        sheet.setDefaultColumnWidth(width);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDefaultRowHeight", "code": "    public void setDefaultRowHeight(short height)\n    {\n        sheet.setDefaultRowHeight(height);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDefaultRowHeightInPoints", "code": "    public void setDefaultRowHeightInPoints(float height)\n    {\n        sheet.setDefaultRowHeight((short) (height * 20));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isGridsPrinted", "code": "    public boolean isGridsPrinted()\n    {\n        return sheet.isGridsPrinted();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setGridsPrinted", "code": "    public void setGridsPrinted(boolean value)\n    {\n        sheet.setGridsPrinted(value);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addMergedRegion", "code": "    public int addMergedRegion(Region region)\n    {\n        return sheet.addMergedRegion((short) region.getRowFrom(),\n                region.getColumnFrom(),\n                (short) region.getRowTo(),\n                region.getColumnTo());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [3, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setVerticallyCenter", "code": "    public void setVerticallyCenter(boolean value)\n    {\n        VCenterRecord record =\n                (VCenterRecord) sheet.findFirstRecordBySid(VCenterRecord.sid);\n\n        record.setVCenter(value);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getVerticallyCenter", "code": "    public boolean getVerticallyCenter(boolean value)\n    {\n        VCenterRecord record =\n                (VCenterRecord) sheet.findFirstRecordBySid(VCenterRecord.sid);\n\n        return record.getVCenter();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "removeMergedRegion", "code": "    public void removeMergedRegion(int index)\n    {\n        sheet.removeMergedRegion(index);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumMergedRegions", "code": "    public int getNumMergedRegions()\n    {\n        return sheet.getNumMergedRegions();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMergedRegionAt", "code": "    public Region getMergedRegionAt(int index)\n    {\n        return new Region(sheet.getMergedRegionAt(index));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "rowIterator", "code": "    public Iterator rowIterator()\n    {\n        return rows.values().iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSheet", "code": "    protected Sheet getSheet()\n    {\n        return sheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAlternativeExpression", "code": "    public void setAlternativeExpression(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setAlternateExpression(b);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setAlternativeFormula", "code": "    public void setAlternativeFormula(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setAlternateFormula(b);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setAutobreaks", "code": "    public void setAutobreaks(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setAutobreaks(b);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDialog", "code": "    public void setDialog(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setDialog(b);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDisplayGuts", "code": "    public void setDisplayGuts(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setDisplayGuts(b);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setFitToPage", "code": "    public void setFitToPage(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setFitToPage(b);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setRowSumsBelow", "code": "    public void setRowSumsBelow(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setRowSumsBelow(b);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setRowSumsRight", "code": "    public void setRowSumsRight(boolean b)\n    {\n        WSBoolRecord record =\n                (WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid);\n\n        record.setRowSumsRight(b);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAlternateExpression", "code": "    public boolean getAlternateExpression()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAlternateFormula", "code": "    public boolean getAlternateFormula()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAutobreaks", "code": "    public boolean getAutobreaks()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDialog", "code": "    public boolean getDialog()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDisplayGuts", "code": "    public boolean getDisplayGuts()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFitToPage", "code": "    public boolean getFitToPage()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRowSumsBelow", "code": "    public boolean getRowSumsBelow()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRowSumsRight", "code": "    public boolean getRowSumsRight()\n    {\n        return ((WSBoolRecord) sheet.findFirstRecordBySid(WSBoolRecord.sid))", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFSheet", "code": "    protected HSSFSheet(Workbook book)\n    {\n        sheet = Sheet.createSheet();\n        this.book = book;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "HSSFSheet", "code": "    protected HSSFSheet(Workbook book, Sheet sheet)\n    {\n        this.sheet = sheet;\n        rows = new TreeMap();\n        this.book = book;\n        setPropertiesFromSheet(sheet);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "ant-1.4-142", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/DefaultLogger.java", "language": "java", "name": "org.apache.tools.ant.DefaultLogger", "code": "public class DefaultLogger implements BuildLogger {\n    private static int LEFT_COLUMN_SIZE = 12;\n\n    protected PrintStream out;\n    protected PrintStream err;\n    protected int msgOutputLevel = Project.MSG_ERR;\n    private long startTime = System.currentTimeMillis();\n\n    protected static String lSep = System.getProperty(\"line.separator\");\n\n    protected boolean emacsMode = false;\n\n    /**\n     * Set the msgOutputLevel this logger is to respond to.\n     *\n     * Only messages with a message level lower than or equal to the given level are \n     * output to the log.\n     * <P>\n     * Constants for the message levels are in Project.java. The order of\n     * the levels, from least to most verbose, is MSG_ERR, MSG_WARN,\n     * MSG_INFO, MSG_VERBOSE, MSG_DEBUG.\n     *\n     * The default message level for DefaultLogger is Project.MSG_ERR.\n     *\n     * @param level the logging level for the logger.\n     */\n    public void setMessageOutputLevel(int level) {\n        this.msgOutputLevel = level;\n    }\n\n    \n    /**\n     * Set the output stream to which this logger is to send its output.\n     *\n     * @param output the output stream for the logger.\n     */\n    public void setOutputPrintStream(PrintStream output) {\n        this.out = output;\n    }\n\n    /**\n     * Set the output stream to which this logger is to send error messages.\n     *\n     * @param err the error stream for the logger.\n     */\n    public void setErrorPrintStream(PrintStream err) {\n        this.err = err;\n    }\n\n    /**\n     * Set this logger to produce emacs (and other editor) friendly output.\n     *\n     * @param emacsMode true if output is to be unadorned so that emacs and other\n     * editors can parse files names, etc.\n     */\n    public void setEmacsMode(boolean emacsMode) {\n        this.emacsMode = emacsMode;\n    }\n\n\n    public void buildStarted(BuildEvent event) {\n        startTime = System.currentTimeMillis();\n    }\n\n    /**\n     *  Prints whether the build succeeded or failed, and\n     *  any errors the occured during the build.\n     */\n    public void buildFinished(BuildEvent event) {\n        Throwable error = event.getException();\n\n        if (error == null) {\n            out.println(lSep + \"BUILD SUCCESSFUL\");\n        }\n        else {\n            err.println(lSep + \"BUILD FAILED\" + lSep);\n\n            if (Project.MSG_VERBOSE <= msgOutputLevel ||\n                !(error instanceof BuildException)) {\n                error.printStackTrace(err);\n            }\n            else {\n                if (error instanceof BuildException) {\n                    err.println(error.toString());\n                }\n                else {\n                    err.println(error.getMessage());\n                }\n            }\n        }\n\n        out.println(lSep + \"Total time: \" + formatTime(System.currentTimeMillis() - startTime));\n    }\n\n    public void targetStarted(BuildEvent event) {\n        if (Project.MSG_INFO <= msgOutputLevel) {\n            out.println(lSep + event.getTarget().getName() + \":\");\n        }\n    }\n\n    public void targetFinished(BuildEvent event) {\n    }\n\n    public void taskStarted(BuildEvent event) {}\n    public void taskFinished(BuildEvent event) {}\n\n    public void messageLogged(BuildEvent event) {\n\n        PrintStream logTo = event.getPriority() == Project.MSG_ERR ? err : out;\n\n        if (event.getPriority() <= msgOutputLevel) {\n\n            if (event.getTask() != null) {\n                String name = event.getTask().getTaskName();\n\n                if (!emacsMode) {\n                    String msg = \"[\" + name + \"] \";\n                    for (int i = 0; i < (LEFT_COLUMN_SIZE - msg.length()); i++) {\n                        logTo.print(\" \");\n                    }\n                    logTo.print(msg);\n                }\n            }\n\n            logTo.println(event.getMessage());\n        }\n    }\n\n    protected static String formatTime(long millis) {\n        long seconds = millis / 1000;\n        long minutes = seconds / 60;\n\n\n        if (minutes > 0) {\n            return Long.toString(minutes) + \" minute\"\n                + (minutes == 1 ? \" \" : \"s \")\n                + Long.toString(seconds%60) + \" second\"\n                + (seconds%60 == 1 ? \"\" : \"s\");\n        }\n        else {\n            return Long.toString(seconds) + \" second\"\n                + (seconds%60 == 1 ? \"\" : \"s\");", "functions": [{"function_name": "setMessageOutputLevel", "code": "    public void setMessageOutputLevel(int level) {\n        this.msgOutputLevel = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutputPrintStream", "code": "    public void setOutputPrintStream(PrintStream output) {\n        this.out = output;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorPrintStream", "code": "    public void setErrorPrintStream(PrintStream err) {\n        this.err = err;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setEmacsMode", "code": "    public void setEmacsMode(boolean emacsMode) {\n        this.emacsMode = emacsMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {\n        startTime = System.currentTimeMillis();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        Throwable error = event.getException();\n\n        if (error == null) {\n            out.println(lSep + \"BUILD SUCCESSFUL\");\n        }\n        else {\n            err.println(lSep + \"BUILD FAILED\" + lSep);\n\n            if (Project.MSG_VERBOSE <= msgOutputLevel ||\n                !(error instanceof BuildException)) {\n                error.printStackTrace(err);\n            }\n            else {\n                if (error instanceof BuildException) {\n                    err.println(error.toString());\n                }\n                else {\n                    err.println(error.getMessage());\n                }\n            }\n        }\n\n        out.println(lSep + \"Total time: \" + formatTime(System.currentTimeMillis() - startTime));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [5, 8], [2, 9], [6, 10], [6, 11], [7, 12], [1, 13], [1, 14], [10, 15], [11, 16], [7, 17], [12, 18], [12, 19], [13, 20], [14, 21], [15, 22], [17, 23], [7, 24], [20, 25], [21, 26], [25, 27], [17, 28], [17, 29], [28, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 5], [9, 2], [10, 6], [11, 6], [12, 7], [13, 1], [14, 1], [15, 10], [16, 11], [17, 7], [18, 12], [19, 12], [20, 13], [21, 14], [22, 15], [23, 17], [24, 7], [25, 20], [26, 21], [27, 25], [28, 17], [29, 17], [30, 28], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {\n        if (Project.MSG_INFO <= msgOutputLevel) {\n            out.println(lSep + event.getTarget().getName() + \":\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {\n\n        PrintStream logTo = event.getPriority() == Project.MSG_ERR ? err : out;\n\n        if (event.getPriority() <= msgOutputLevel) {\n\n            if (event.getTask() != null) {\n                String name = event.getTask().getTaskName();\n\n                if (!emacsMode) {\n                    String msg = \"[\" + name + \"] \";\n                    for (int i = 0; i < (LEFT_COLUMN_SIZE - msg.length()); i++) {\n                        logTo.print(\" \");\n                    }\n                    logTo.print(msg);\n                }\n            }\n\n            logTo.println(event.getMessage());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [1, 8], [5, 9], [7, 10], [8, 11], [5, 12], [5, 13], [9, 14], [9, 15], [10, 16], [12, 17], [12, 18], [13, 19], [12, 20], [17, 21], [19, 22], [21, 23], [18, 24], [17, 25], [23, 26], [17, 27], [24, 28], [24, 29], [25, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 1], [9, 5], [10, 7], [11, 8], [12, 5], [13, 5], [14, 9], [15, 9], [16, 10], [17, 12], [18, 12], [19, 13], [20, 12], [21, 17], [22, 19], [23, 21], [24, 18], [25, 17], [26, 23], [27, 17], [28, 24], [29, 24], [30, 25], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "formatTime", "code": "    protected static String formatTime(long millis) {\n        long seconds = millis / 1000;\n        long minutes = seconds / 60;\n\n\n        if (minutes > 0) {\n            return Long.toString(minutes) + \" minute\"\n                + (minutes == 1 ? \" \" : \"s \")\n                + Long.toString(seconds%60) + \" second\"\n                + (seconds%60 == 1 ? \"\" : \"s\");\n        }\n        else {\n            return Long.toString(seconds) + \" second\"\n                + (seconds%60 == 1 ? \"\" : \"s\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [3, 10], [6, 11], [7, 12], [9, 13], [10, 14], [11, 15], [11, 16], [12, 17], [12, 18], [15, 19], [15, 20], [15, 21], [16, 22], [16, 23], [17, 24], [17, 25], [17, 26], [18, 27], [18, 28], [21, 29], [21, 30], [26, 31], [26, 32], [28, 33], [28, 34], [30, 35], [32, 36], [33, 37], [34, 38], [34, 39], [37, 40], [38, 41], [38, 42], [38, 43], [39, 44], [39, 45], [43, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 3], [11, 6], [12, 7], [13, 9], [14, 10], [15, 11], [16, 11], [17, 12], [18, 12], [19, 15], [20, 15], [21, 15], [22, 16], [23, 16], [24, 17], [25, 17], [26, 17], [27, 18], [28, 18], [29, 21], [30, 21], [31, 26], [32, 26], [33, 28], [34, 28], [35, 30], [36, 32], [37, 33], [38, 34], [39, 34], [40, 37], [41, 38], [42, 38], [43, 38], [44, 39], [45, 39], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}], "label": 1}
{"sample_id": "xalan-2.4-6471", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xpath/objects/XNodeSet.java", "language": "java", "name": "org.apache.xpath.objects.XNodeSet", "code": "public class XNodeSet extends NodeSequence\n{  \n  /**\n   * Default constructor for derived objects.\n   */\n  protected XNodeSet()\n  {\n  }\n\n  /**\n   * Construct a XNodeSet object.\n   *\n   * @param val Value of the XNodeSet object\n   */\n  public XNodeSet(DTMIterator val)\n  {\n  \tsuper();\n  \tif(val instanceof XNodeSet)\n  \t{\n\t    setIter(((XNodeSet)val).m_iter);\n\t    m_dtmMgr = ((XNodeSet)val).m_dtmMgr;\n\t    m_last = ((XNodeSet)val).m_last;\n\t    if(!((XNodeSet)val).hasCache())\n\t    \t((XNodeSet)val).setShouldCacheNodes(true);\n\t    m_obj = ((XNodeSet)val).m_obj;\n  \t}\n  \telse\n    \tsetIter(val);\n  }\n  \n  /**\n   * Construct a XNodeSet object.\n   *\n   * @param val Value of the XNodeSet object\n   */\n  public XNodeSet(XNodeSet val)\n  {\n  \tsuper();\n    setIter(val.m_iter);\n    m_dtmMgr = val.m_dtmMgr;\n    m_last = val.m_last;\n    if(!val.hasCache())\n    \tval.setShouldCacheNodes(true);\n    m_obj = val.m_obj;\n  }\n\n\n  /**\n   * Construct an empty XNodeSet object.  This is used to create a mutable \n   * nodeset to which random nodes may be added.\n   */\n  public XNodeSet(DTMManager dtmMgr) \n  {\n    super(dtmMgr);\n  }\n\n  /**\n   * Construct a XNodeSet object for one node.\n   *\n   * @param n Node to add to the new XNodeSet object\n   */\n  public XNodeSet(int n, DTMManager dtmMgr)\n  {\n\n    super(new NodeSetDTM(dtmMgr));\n    m_dtmMgr = dtmMgr;\n\n    if (DTM.NULL != n)\n    {\n      ((NodeSetDTM) m_obj).addNode(n);\n      m_last = 1;\n    }\n    else\n    \tm_last = 0;\n  }\n\n  /**\n   * Tell that this is a CLASS_NODESET.\n   *\n   * @return type CLASS_NODESET\n   */\n  public int getType()\n  {\n    return CLASS_NODESET;\n  }\n\n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return type string \"#NODESET\"\n   */\n  public String getTypeString()\n  {\n    return \"#NODESET\";\n  }\n\n  /**\n   * Get numeric value of the string conversion from a single node.\n   *\n   * @param n Node to convert\n   *\n   * @return numeric value of the string conversion from a single node.\n   */\n  public double getNumberFromNode(int n)\n  {\n    XMLString xstr = m_dtmMgr.getDTM(n).getStringValue(n);\n    return xstr.toDouble();\n  }\n\n  /**\n   * Cast result object to a number.\n   *\n   * @return numeric value of the string conversion from the \n   * next node in the NodeSetDTM, or NAN if no node was found\n   */\n  public double num()\n  {\n\n    int node = item(0);\n    return (node != DTM.NULL) ? getNumberFromNode(node) : Double.NaN;\n  }\n  \n  /**\n   * Cast result object to a number, but allow side effects, such as the \n   * incrementing of an iterator.\n   *\n   * @return numeric value of the string conversion from the \n   * next node in the NodeSetDTM, or NAN if no node was found\n   */\n  public double numWithSideEffects()\n  {\n    int node = nextNode();\n\n    return (node != DTM.NULL) ? getNumberFromNode(node) : Double.NaN;\n  }\n\n\n  /**\n   * Cast result object to a boolean.\n   *\n   * @return True if there is a next node in the nodeset\n   */\n  public boolean bool()\n  {\n    return (item(0) != DTM.NULL);\n  }\n  \n  /**\n   * Cast result object to a boolean, but allow side effects, such as the \n   * incrementing of an iterator.\n   *\n   * @return True if there is a next node in the nodeset\n   */\n  public boolean boolWithSideEffects()\n  {\n    return (nextNode() != DTM.NULL);\n  }\n\n  \n  /**\n   * Get the string conversion from a single node.\n   *\n   * @param n Node to convert\n   *\n   * @return the string conversion from a single node.\n   */\n  public XMLString getStringFromNode(int n)\n  {\n    if(DTM.NULL != n)\n    {\n      return m_dtmMgr.getDTM(n).getStringValue(n);\n    }\n    else\n    {\n      return org.apache.xpath.objects.XString.EMPTYSTRING;\n    }\n  }\n  \n  /**\n   * Directly call the\n   * characters method on the passed ContentHandler for the\n   * string-value. Multiple calls to the\n   * ContentHandler's characters methods may well occur for a single call to\n   * this method.\n   *\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n    int node = item(0);\n\t\n    if(node != DTM.NULL)\n    {\n      m_dtmMgr.getDTM(node).dispatchCharactersEvents(node, ch, false);\n    }\n    \n  }\n  \n  /**\n   * Cast result object to an XMLString.\n   *\n   * @return The document fragment node data or the empty string. \n   */\n  public XMLString xstr()\n  {\n    int node = item(0);\n    return (node != DTM.NULL) ? getStringFromNode(node) : XString.EMPTYSTRING;\n  }\n  \n  /**\n   * Cast result object to a string.\n   *\n   * @return The string this wraps or the empty string if null\n   */\n  public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)\n  {\n    XString xstring = (XString)xstr();\n    xstring.appendToFsb(fsb);\n  }\n  \n\n  /**\n   * Cast result object to a string.\n   *\n   * @return the string conversion from the next node in the nodeset\n   * or \"\" if there is no next node\n   */\n  public String str()\n  {\n    int node = item(0);\n    return (node != DTM.NULL) ? getStringFromNode(node).toString() : \"\";   \n  }\n  \n  /**\n   * Return a java object that's closest to the representation\n   * that should be handed to an extension.\n   *\n   * @return The object that this class wraps\n   */\n  public Object object()\n  {\n    if(null == m_obj)\n    \treturn this;\n    else\n    \treturn m_obj;\n  }\n\n\n  /**\n   * Cast result object to a nodelist.\n   *\n   * @return a NodeIterator.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public NodeIterator nodeset() throws javax.xml.transform.TransformerException\n  {\n    return new org.apache.xml.dtm.ref.DTMNodeIterator(iter());\n  }\n  \n  /**\n   * Cast result object to a nodelist.\n   *\n   * @return a NodeList.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public NodeList nodelist() throws javax.xml.transform.TransformerException\n  {\n    return new org.apache.xml.dtm.ref.DTMNodeList(iter());\n  }\n\n  \n\n  /**\n   * Return the iterator without cloning, etc.\n   */\n  public DTMIterator iterRaw()\n  {\n    return this;\n  }\n  \n  public void release(DTMIterator iter)\n  {\n  }\n  \n  /**\n   * Cast result object to a nodelist.\n   *\n   * @return The nodeset as a nodelist\n   */\n  public DTMIterator iter()\n  {\n    try\n    {\n    \tif(hasCache())\n      \t\treturn cloneWithReset();\n      \telse{}\n    }\n    catch (CloneNotSupportedException cnse)\n    {\n      throw new RuntimeException(cnse.getMessage());\n    }\n  }\n  \n  /**\n   * Get a fresh copy of the object.  For use with variables.\n   *\n   * @return A fresh nodelist.\n   */\n  public XObject getFresh()\n  {\n    try\n    {\n    \tif(hasCache())\n      \t\treturn (XObject)cloneWithReset();\n      \telse{}\n    }\n    catch (CloneNotSupportedException cnse)\n    {\n      throw new RuntimeException(cnse.getMessage());\n    }\n  }\n\n  /**\n   * Cast result object to a mutableNodeset.\n   *\n   * @return The nodeset as a mutableNodeset\n   */\n  public NodeSetDTM mutableNodeset()\n  {\n    NodeSetDTM mnl;\n\n    if(m_obj instanceof NodeSetDTM)\n    {\n      mnl = (NodeSetDTM) m_obj;\n    }\n    else\n    {\n      mnl = new NodeSetDTM(iter());\n      m_obj = mnl;\n      setCurrentPos(0);\n    }\n\n    return mnl;\n  }\n\n  /** Less than comparator         */\n  static LessThanComparator S_LT = new LessThanComparator();\n\n  /** Less than or equal comparator          */\n  static LessThanOrEqualComparator S_LTE = new LessThanOrEqualComparator();\n\n  /** Greater than comparator         */\n  static GreaterThanComparator S_GT = new GreaterThanComparator();\n\n  /** Greater than or equal comparator          */\n  static GreaterThanOrEqualComparator S_GTE =\n    new GreaterThanOrEqualComparator();\n\n  /** Equal comparator         */\n  static EqualComparator S_EQ = new EqualComparator();\n\n  /** Not equal comparator         */\n  static NotEqualComparator S_NEQ = new NotEqualComparator();\n\n  /**\n   * Tell if one object is less than the other.\n   *\n   * @param obj2 Object to compare this nodeset to\n   * @param comparator Comparator to use\n   *\n   * @return See the comments below for each object type comparison \n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean compare(XObject obj2, Comparator comparator)\n          throws javax.xml.transform.TransformerException\n  {\n\n    boolean result = false;\n    int type = obj2.getType();\n\n    if (XObject.CLASS_NODESET == type)\n    {\n\n      DTMIterator list1 = iterRaw();\n      DTMIterator list2 = ((XNodeSet) obj2).iterRaw();\n      int node1;\n      java.util.Vector node2Strings = null;\n\n      while (DTM.NULL != (node1 = list1.nextNode()))\n      {\n        XMLString s1 = getStringFromNode(node1);\n\n        if (null == node2Strings)\n        {\n          int node2;\n\n          while (DTM.NULL != (node2 = list2.nextNode()))\n          {\n            XMLString s2 = getStringFromNode(node2);\n\n            if (comparator.compareStrings(s1, s2))\n            {\n              result = true;\n\n              break;\n            }\n\n            if (null == node2Strings)\n              node2Strings = new java.util.Vector();\n\n            node2Strings.addElement(s2);\n          }\n        }\n        else\n        {\n          int n = node2Strings.size();\n\n          for (int i = 0; i < n; i++)\n          {\n            if (comparator.compareStrings(s1, (XMLString)node2Strings.elementAt(i)))\n            {\n              result = true;\n\n              break;\n            }\n          }\n        }\n      }\n      list1.reset();\n      list2.reset();\n    }\n    else if (XObject.CLASS_BOOLEAN == type)\n    {\n\n      double num1 = bool() ? 1.0 : 0.0;\n      double num2 = obj2.num();\n\n      result = comparator.compareNumbers(num1, num2);\n    }\n    else if (XObject.CLASS_NUMBER == type)\n    {\n\n      DTMIterator list1 = iterRaw();\n      double num2 = obj2.num();\n      int node;\n\n      while (DTM.NULL != (node = list1.nextNode()))\n      {\n        double num1 = getNumberFromNode(node);\n\n        if (comparator.compareNumbers(num1, num2))\n        {\n          result = true;\n\n          break;\n        }\n      }\n      list1.reset();\n    }\n    else if (XObject.CLASS_RTREEFRAG == type)\n    {\n      XMLString s2 = obj2.xstr();\n      DTMIterator list1 = iterRaw();\n      int node;\n\n      while (DTM.NULL != (node = list1.nextNode()))\n      {\n        XMLString s1 = getStringFromNode(node);\n\n        if (comparator.compareStrings(s1, s2))\n        {\n          result = true;\n\n          break;\n        }\n      }\n      list1.reset();\n    }\n    else if (XObject.CLASS_STRING == type)\n    {\n\n      XMLString s2 = obj2.xstr();\n      DTMIterator list1 = iterRaw();\n      int node;\n\n      while (DTM.NULL != (node = list1.nextNode()))\n      {\n        XMLString s1 = getStringFromNode(node);\n        if (comparator.compareStrings(s1, s2))\n        {\n          result = true;\n\n          break;\n        }\n      }\n      list1.reset();\n    }\n    else\n    {\n      result = comparator.compareNumbers(this.num(), obj2.num());\n    }\n\n    return result;\n  }\n\n  /**\n   * Tell if one object is less than the other.\n   *\n   * @param obj2 object to compare this nodeset to\n   *\n   * @return see this.compare(...) \n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean lessThan(XObject obj2) throws javax.xml.transform.TransformerException\n  {\n    return compare(obj2, S_LT);\n  }\n\n  /**\n   * Tell if one object is less than or equal to the other.\n   *\n   * @param obj2 object to compare this nodeset to\n   *\n   * @return see this.compare(...) \n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean lessThanOrEqual(XObject obj2) throws javax.xml.transform.TransformerException\n  {\n    return compare(obj2, S_LTE);\n  }\n\n  /**\n   * Tell if one object is less than the other.\n   *\n   * @param obj2 object to compare this nodeset to\n   *\n   * @return see this.compare(...) \n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean greaterThan(XObject obj2) throws javax.xml.transform.TransformerException\n  {\n    return compare(obj2, S_GT);\n  }\n\n  /**\n   * Tell if one object is less than the other.\n   *\n   * @param obj2 object to compare this nodeset to\n   *\n   * @return see this.compare(...) \n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean greaterThanOrEqual(XObject obj2)\n          throws javax.xml.transform.TransformerException\n  {\n    return compare(obj2, S_GTE);\n  }\n\n  /**\n   * Tell if two objects are functionally equal.\n   *\n   * @param obj2 object to compare this nodeset to\n   *\n   * @return see this.compare(...) \n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean equals(XObject obj2)\n  {\n    try\n    {\n      return compare(obj2, S_EQ);\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);\n    }\n  }\n\n  /**\n   * Tell if two objects are functionally not equal.\n   *\n   * @param obj2 object to compare this nodeset to\n   *\n   * @return see this.compare(...) \n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean notEquals(XObject obj2) throws javax.xml.transform.TransformerException\n  {\n    return compare(obj2, S_NEQ);", "functions": [{"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_NODESET;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"#NODESET\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumberFromNode", "code": "  public double getNumberFromNode(int n)\n  {\n    XMLString xstr = m_dtmMgr.getDTM(n).getStringValue(n);\n    return xstr.toDouble();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "num", "code": "  public double num()\n  {\n\n    int node = item(0);\n    return (node != DTM.NULL) ? getNumberFromNode(node) : Double.NaN;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "numWithSideEffects", "code": "  public double numWithSideEffects()\n  {\n    int node = nextNode();\n\n    return (node != DTM.NULL) ? getNumberFromNode(node) : Double.NaN;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "bool", "code": "  public boolean bool()\n  {\n    return (item(0) != DTM.NULL);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "boolWithSideEffects", "code": "  public boolean boolWithSideEffects()\n  {\n    return (nextNode() != DTM.NULL);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStringFromNode", "code": "  public XMLString getStringFromNode(int n)\n  {\n    if(DTM.NULL != n)\n    {\n      return m_dtmMgr.getDTM(n).getStringValue(n);\n    }\n    else\n    {\n      return org.apache.xpath.objects.XString.EMPTYSTRING;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "dispatchCharactersEvents", "code": "  public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n    int node = item(0);\n\t\n    if(node != DTM.NULL)\n    {\n      m_dtmMgr.getDTM(node).dispatchCharactersEvents(node, ch, false);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [5, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 5], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "xstr", "code": "  public XMLString xstr()\n  {\n    int node = item(0);\n    return (node != DTM.NULL) ? getStringFromNode(node) : XString.EMPTYSTRING;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "appendToFsb", "code": "  public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)\n  {\n    XString xstring = (XString)xstr();\n    xstring.appendToFsb(fsb);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "str", "code": "  public String str()\n  {\n    int node = item(0);\n    return (node != DTM.NULL) ? getStringFromNode(node).toString() : \"\";   ", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [2, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 2], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "object", "code": "  public Object object()\n  {\n    if(null == m_obj)\n    \treturn this;\n    else\n    \treturn m_obj;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 1], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "nodeset", "code": "  public NodeIterator nodeset() throws javax.xml.transform.TransformerException\n  {\n    return new org.apache.xml.dtm.ref.DTMNodeIterator(iter());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "nodelist", "code": "  public NodeList nodelist() throws javax.xml.transform.TransformerException\n  {\n    return new org.apache.xml.dtm.ref.DTMNodeList(iter());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "iterRaw", "code": "  public DTMIterator iterRaw()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "release", "code": "  public void release(DTMIterator iter)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "iter", "code": "  public DTMIterator iter()\n  {\n    try\n    {\n    \tif(hasCache())\n      \t\treturn cloneWithReset();\n      \telse{}\n    }\n    catch (CloneNotSupportedException cnse)\n    {\n      throw new RuntimeException(cnse.getMessage());", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [3, 6], [4, 7], [5, 8], [7, 9], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 3], [7, 4], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getFresh", "code": "  public XObject getFresh()\n  {\n    try\n    {\n    \tif(hasCache())\n      \t\treturn (XObject)cloneWithReset();\n      \telse{}\n    }\n    catch (CloneNotSupportedException cnse)\n    {\n      throw new RuntimeException(cnse.getMessage());", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [3, 6], [4, 7], [7, 8], [5, 9], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 3], [7, 4], [8, 7], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "mutableNodeset", "code": "  public NodeSetDTM mutableNodeset()\n  {\n    NodeSetDTM mnl;\n\n    if(m_obj instanceof NodeSetDTM)\n    {\n      mnl = (NodeSetDTM) m_obj;\n    }\n    else\n    {\n      mnl = new NodeSetDTM(iter());\n      m_obj = mnl;\n      setCurrentPos(0);\n    }\n\n    return mnl;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "compare", "code": "  public boolean compare(XObject obj2, Comparator comparator)\n          throws javax.xml.transform.TransformerException\n  {\n\n    boolean result = false;\n    int type = obj2.getType();\n\n    if (XObject.CLASS_NODESET == type)\n    {\n\n      DTMIterator list1 = iterRaw();\n      DTMIterator list2 = ((XNodeSet) obj2).iterRaw();\n      int node1;\n      java.util.Vector node2Strings = null;\n\n      while (DTM.NULL != (node1 = list1.nextNode()))\n      {\n        XMLString s1 = getStringFromNode(node1);\n\n        if (null == node2Strings)\n        {\n          int node2;\n\n          while (DTM.NULL != (node2 = list2.nextNode()))\n          {\n            XMLString s2 = getStringFromNode(node2);\n\n            if (comparator.compareStrings(s1, s2))\n            {\n              result = true;\n\n              break;\n            }\n\n            if (null == node2Strings)\n              node2Strings = new java.util.Vector();\n\n            node2Strings.addElement(s2);\n          }\n        }\n        else\n        {\n          int n = node2Strings.size();\n\n          for (int i = 0; i < n; i++)\n          {\n            if (comparator.compareStrings(s1, (XMLString)node2Strings.elementAt(i)))\n            {\n              result = true;\n\n              break;\n            }\n          }\n        }\n      }\n      list1.reset();\n      list2.reset();\n    }\n    else if (XObject.CLASS_BOOLEAN == type)\n    {\n\n      double num1 = bool() ? 1.0 : 0.0;\n      double num2 = obj2.num();\n\n      result = comparator.compareNumbers(num1, num2);\n    }\n    else if (XObject.CLASS_NUMBER == type)\n    {\n\n      DTMIterator list1 = iterRaw();\n      double num2 = obj2.num();\n      int node;\n\n      while (DTM.NULL != (node = list1.nextNode()))\n      {\n        double num1 = getNumberFromNode(node);\n\n        if (comparator.compareNumbers(num1, num2))\n        {\n          result = true;\n\n          break;\n        }\n      }\n      list1.reset();\n    }\n    else if (XObject.CLASS_RTREEFRAG == type)\n    {\n      XMLString s2 = obj2.xstr();\n      DTMIterator list1 = iterRaw();\n      int node;\n\n      while (DTM.NULL != (node = list1.nextNode()))\n      {\n        XMLString s1 = getStringFromNode(node);\n\n        if (comparator.compareStrings(s1, s2))\n        {\n          result = true;\n\n          break;\n        }\n      }\n      list1.reset();\n    }\n    else if (XObject.CLASS_STRING == type)\n    {\n\n      XMLString s2 = obj2.xstr();\n      DTMIterator list1 = iterRaw();\n      int node;\n\n      while (DTM.NULL != (node = list1.nextNode()))\n      {\n        XMLString s1 = getStringFromNode(node);\n        if (comparator.compareStrings(s1, s2))\n        {\n          result = true;\n\n          break;\n        }\n      }\n      list1.reset();\n    }\n    else\n    {\n      result = comparator.compareNumbers(this.num(), obj2.num());\n    }\n\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "IF", "CALL", "IF", "IF", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [7, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [3, 16], [4, 17], [9, 18], [9, 19], [7, 20], [7, 21], [2, 22], [2, 23], [11, 24], [18, 25], [18, 26], [9, 27], [9, 28], [9, 29], [9, 30], [7, 31], [11, 32], [11, 33], [24, 34], [12, 35], [15, 36], [25, 37], [18, 38], [18, 39], [18, 40], [18, 41], [9, 42], [27, 43], [31, 44], [20, 45], [21, 46], [32, 47], [34, 48], [25, 49], [25, 50], [25, 51], [25, 52], [18, 53], [38, 54], [27, 55], [27, 56], [43, 57], [29, 58], [30, 59], [46, 60], [46, 61], [46, 62], [32, 63], [32, 64], [32, 65], [32, 66], [47, 67], [33, 68], [25, 69], [25, 70], [49, 71], [38, 72], [38, 73], [54, 74], [40, 75], [41, 76], [55, 77], [57, 78], [63, 79], [65, 80], [69, 81], [49, 82], [49, 83], [71, 84], [51, 85], [52, 86], [72, 87], [74, 88], [55, 89], [56, 90], [63, 91], [64, 92], [65, 93], [65, 94], [65, 95], [80, 96], [81, 97], [82, 98], [84, 99], [72, 100], [73, 101], [55, 102], [91, 103], [63, 104], [65, 105], [93, 106], [94, 107], [96, 108], [81, 109], [82, 110], [83, 111], [72, 112], [102, 113], [91, 114], [93, 115], [106, 116], [94, 117], [95, 118], [82, 119], [112, 120], [91, 121], [103, 122], [115, 123], [94, 124], [119, 125], [121, 126], [124, 127], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 7], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 3], [17, 4], [18, 9], [19, 9], [20, 7], [21, 7], [22, 2], [23, 2], [24, 11], [25, 18], [26, 18], [27, 9], [28, 9], [29, 9], [30, 9], [31, 7], [32, 11], [33, 11], [34, 24], [35, 12], [36, 15], [37, 25], [38, 18], [39, 18], [40, 18], [41, 18], [42, 9], [43, 27], [44, 31], [45, 20], [46, 21], [47, 32], [48, 34], [49, 25], [50, 25], [51, 25], [52, 25], [53, 18], [54, 38], [55, 27], [56, 27], [57, 43], [58, 29], [59, 30], [60, 46], [61, 46], [62, 46], [63, 32], [64, 32], [65, 32], [66, 32], [67, 47], [68, 33], [69, 25], [70, 25], [71, 49], [72, 38], [73, 38], [74, 54], [75, 40], [76, 41], [77, 55], [78, 57], [79, 63], [80, 65], [81, 69], [82, 49], [83, 49], [84, 71], [85, 51], [86, 52], [87, 72], [88, 74], [89, 55], [90, 56], [91, 63], [92, 64], [93, 65], [94, 65], [95, 65], [96, 80], [97, 81], [98, 82], [99, 84], [100, 72], [101, 73], [102, 55], [103, 91], [104, 63], [105, 65], [106, 93], [107, 94], [108, 96], [109, 81], [110, 82], [111, 83], [112, 72], [113, 102], [114, 91], [115, 93], [116, 106], [117, 94], [118, 95], [119, 82], [120, 112], [121, 91], [122, 103], [123, 115], [124, 94], [125, 119], [126, 121], [127, 124], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127]]}, {"function_name": "lessThan", "code": "  public boolean lessThan(XObject obj2) throws javax.xml.transform.TransformerException\n  {\n    return compare(obj2, S_LT);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "lessThanOrEqual", "code": "  public boolean lessThanOrEqual(XObject obj2) throws javax.xml.transform.TransformerException\n  {\n    return compare(obj2, S_LTE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "greaterThan", "code": "  public boolean greaterThan(XObject obj2) throws javax.xml.transform.TransformerException\n  {\n    return compare(obj2, S_GT);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "greaterThanOrEqual", "code": "  public boolean greaterThanOrEqual(XObject obj2)\n          throws javax.xml.transform.TransformerException\n  {\n    return compare(obj2, S_GTE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "equals", "code": "  public boolean equals(XObject obj2)\n  {\n    try\n    {\n      return compare(obj2, S_EQ);\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "notEquals", "code": "  public boolean notEquals(XObject obj2) throws javax.xml.transform.TransformerException\n  {\n    return compare(obj2, S_NEQ);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "XNodeSet", "code": "  protected XNodeSet()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "XNodeSet", "code": "  public XNodeSet(DTMIterator val)\n  {\n  \tsuper();\n  \tif(val instanceof XNodeSet)\n  \t{\n\t    setIter(((XNodeSet)val).m_iter);\n\t    m_dtmMgr = ((XNodeSet)val).m_dtmMgr;\n\t    m_last = ((XNodeSet)val).m_last;\n\t    if(!((XNodeSet)val).hasCache())\n\t    \t((XNodeSet)val).setShouldCacheNodes(true);\n\t    m_obj = ((XNodeSet)val).m_obj;\n  \t}\n  \telse\n    \tsetIter(val);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "XNodeSet", "code": "  public XNodeSet(XNodeSet val)\n  {\n  \tsuper();\n    setIter(val.m_iter);\n    m_dtmMgr = val.m_dtmMgr;\n    m_last = val.m_last;\n    if(!val.hasCache())\n    \tval.setShouldCacheNodes(true);\n    m_obj = val.m_obj;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "XNodeSet", "code": "  public XNodeSet(DTMManager dtmMgr) \n  {\n    super(dtmMgr);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XNodeSet", "code": "  public XNodeSet(int n, DTMManager dtmMgr)\n  {\n\n    super(new NodeSetDTM(dtmMgr));\n    m_dtmMgr = dtmMgr;\n\n    if (DTM.NULL != n)\n    {\n      ((NodeSetDTM) m_obj).addNode(n);\n      m_last = 1;\n    }\n    else\n    \tm_last = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [7, 8], [1, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 7], [9, 1], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 1}
{"sample_id": "lucene-2.0-5095", "repo": "lucene-2.0", "project": "lucene", "version": "2.0", "file_path": "org/apache/lucene/queryParser/QueryParser.java", "language": "java", "name": "org.apache.lucene.queryParser.QueryParser", "code": "public class QueryParser implements QueryParserConstants {\n\n  private static final int CONJ_NONE   = 0;\n  private static final int CONJ_AND    = 1;\n  private static final int CONJ_OR     = 2;\n\n  private static final int MOD_NONE    = 0;\n  private static final int MOD_NOT     = 10;\n  private static final int MOD_REQ     = 11;\n\n  /** Alternative form of QueryParser.Operator.AND */\n  public static final Operator AND_OPERATOR = Operator.AND;\n  /** Alternative form of QueryParser.Operator.OR */\n  public static final Operator OR_OPERATOR = Operator.OR;\n\n  /** The actual operator that parser uses to combine query terms */\n  private Operator operator = OR_OPERATOR;\n\n  boolean lowercaseExpandedTerms = true;\n\n  Analyzer analyzer;\n  String field;\n  int phraseSlop = 0;\n  float fuzzyMinSim = FuzzyQuery.defaultMinSimilarity;\n  int fuzzyPrefixLength = FuzzyQuery.defaultPrefixLength;\n  Locale locale = Locale.getDefault();\n\n  /** The default operator for parsing queries. \n   * Use {@link QueryParser#setDefaultOperator} to change it.\n   */\n  static public final class Operator extends Parameter {\n    private Operator(String name) {\n      super(name);\n    }\n    static public final Operator OR = new Operator(\"OR\");\n    static public final Operator AND = new Operator(\"AND\");\n  }\n\n\n  /** Constructs a query parser.\n   *  @param f  the default field for query terms.\n   *  @param a   used to find terms in the query text.\n   */\n  public QueryParser(String f, Analyzer a) {\n    this(new FastCharStream(new StringReader(\"\")));\n    analyzer = a;\n    field = f;\n  }\n\n  /** Parses a query string, returning a {@link org.apache.lucene.search.Query}.\n   *  @param query  the query string to be parsed.\n   *  @throws ParseException if the parsing fails\n   */\n  public Query parse(String query) throws ParseException {\n    ReInit(new FastCharStream(new StringReader(query)));\n    try {\n      return Query(field);\n    }\n    catch (TokenMgrError tme) {\n      throw new ParseException(tme.getMessage());\n    }\n    catch (BooleanQuery.TooManyClauses tmc) {\n      throw new ParseException(\"Too many boolean clauses\");\n    }\n  }\n\n   /**\n   * @return Returns the analyzer.\n   */\n  public Analyzer getAnalyzer() {\n    return analyzer;\n  }\n\n  /**\n   * @return Returns the field.\n   */\n  public String getField() {\n    return field;\n  }\n\n   /**\n   * Get the minimal similarity for fuzzy queries.\n   */\n  public float getFuzzyMinSim() {\n      return fuzzyMinSim;\n  }\n\n  /**\n   * Set the minimum similarity for fuzzy queries.\n   * Default is 0.5f.\n   */\n  public void setFuzzyMinSim(float fuzzyMinSim) {\n      this.fuzzyMinSim = fuzzyMinSim;\n  }\n\n   /**\n   * Get the prefix length for fuzzy queries. \n   * @return Returns the fuzzyPrefixLength.\n   */\n  public int getFuzzyPrefixLength() {\n    return fuzzyPrefixLength;\n  }\n\n  /**\n   * Set the prefix length for fuzzy queries. Default is 0.\n   * @param fuzzyPrefixLength The fuzzyPrefixLength to set.\n   */\n  public void setFuzzyPrefixLength(int fuzzyPrefixLength) {\n    this.fuzzyPrefixLength = fuzzyPrefixLength;\n  }\n\n  /**\n   * Sets the default slop for phrases.  If zero, then exact phrase matches\n   * are required.  Default value is zero.\n   */\n  public void setPhraseSlop(int phraseSlop) {\n    this.phraseSlop = phraseSlop;\n  }\n\n  /**\n   * Gets the default slop for phrases.\n   */\n  public int getPhraseSlop() {\n    return phraseSlop;\n  }\n\n\n  /**\n   * Sets the boolean operator of the QueryParser.\n   * In default mode (<code>OR_OPERATOR</code>) terms without any modifiers\n   * are considered optional: for example <code>capital of Hungary</code> is equal to\n   * <code>capital OR of OR Hungary</code>.<br/>\n   * In <code>AND_OPERATOR</code> mode terms are considered to be in conjuction: the\n   * above mentioned query is parsed as <code>capital AND of AND Hungary</code>\n   */\n  public void setDefaultOperator(Operator op) {\n    this.operator = op;\n  }\n\n\n  /**\n   * Gets implicit operator setting, which will be either AND_OPERATOR\n   * or OR_OPERATOR.\n   */\n  public Operator getDefaultOperator() {\n    return operator;\n  }\n\n\n  /**\n   * Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically\n   * lower-cased or not.  Default is <code>true</code>.\n   */\n  public void setLowercaseExpandedTerms(boolean lowercaseExpandedTerms) {\n    this.lowercaseExpandedTerms = lowercaseExpandedTerms;\n  }\n\n\n  /**\n   * @see #setLowercaseExpandedTerms(boolean)\n   */\n  public boolean getLowercaseExpandedTerms() {\n    return lowercaseExpandedTerms;\n  }\n\n  /**\n   * Set locale used by date range parsing.\n   */\n  public void setLocale(Locale locale) {\n    this.locale = locale;\n  }\n\n  /**\n   * Returns current locale, allowing access by subclasses.\n   */\n  public Locale getLocale() {\n    return locale;\n  }\n\n  protected void addClause(Vector clauses, int conj, int mods, Query q) {\n    boolean required, prohibited;\n\n    if (clauses.size() > 0 && conj == CONJ_AND) {\n      BooleanClause c = (BooleanClause) clauses.elementAt(clauses.size()-1);\n      if (!c.isProhibited())\n        c.setOccur(BooleanClause.Occur.MUST);\n    }\n\n    if (clauses.size() > 0 && operator == AND_OPERATOR && conj == CONJ_OR) {\n      BooleanClause c = (BooleanClause) clauses.elementAt(clauses.size()-1);\n      if (!c.isProhibited())\n        c.setOccur(BooleanClause.Occur.SHOULD);\n    }\n\n    if (q == null)\n      return;\n\n    if (operator == OR_OPERATOR) {\n      prohibited = (mods == MOD_NOT);\n      required = (mods == MOD_REQ);\n      if (conj == CONJ_AND && !prohibited) {\n        required = true;\n      }\n    } else {\n      prohibited = (mods == MOD_NOT);\n      required   = (!prohibited && conj != CONJ_OR);\n    }\n    if (required && !prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.MUST));\n    else if (!required && !prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.SHOULD));\n    else if (!required && prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.MUST_NOT));\n    else\n      throw new RuntimeException(\"Clause cannot be both required and prohibited\");\n  }\n\n\n  /**\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getFieldQuery(String field, String queryText)  throws ParseException {\n\n    TokenStream source = analyzer.tokenStream(field, new StringReader(queryText));\n    Vector v = new Vector();\n    org.apache.lucene.analysis.Token t;\n    int positionCount = 0;\n    boolean severalTokensAtSamePosition = false;\n\n    while (true) {\n      try {\n        t = source.next();\n      }\n      catch (IOException e) {\n        t = null;\n      }\n      if (t == null)\n        break;\n      v.addElement(t);\n      if (t.getPositionIncrement() != 0)\n        positionCount += t.getPositionIncrement();\n      else\n        severalTokensAtSamePosition = true;\n    }\n    try {\n      source.close();\n    }\n    catch (IOException e) {\n    }\n\n    if (v.size() == 0)\n      return null;\n    else if (v.size() == 1) {\n      t = (org.apache.lucene.analysis.Token) v.elementAt(0);\n      return new TermQuery(new Term(field, t.termText()));\n    } else {\n      if (severalTokensAtSamePosition) {\n        if (positionCount == 1) {\n          BooleanQuery q = new BooleanQuery(true);\n          for (int i = 0; i < v.size(); i++) {\n            t = (org.apache.lucene.analysis.Token) v.elementAt(i);\n            TermQuery currentQuery = new TermQuery(\n                new Term(field, t.termText()));\n            q.add(currentQuery, BooleanClause.Occur.SHOULD);\n          }\n          return q;\n        }\n        else {\n          MultiPhraseQuery mpq = new MultiPhraseQuery();\n          mpq.setSlop(phraseSlop);\n          List multiTerms = new ArrayList();\n          for (int i = 0; i < v.size(); i++) {\n            t = (org.apache.lucene.analysis.Token) v.elementAt(i);\n            if (t.getPositionIncrement() == 1 && multiTerms.size() > 0) {\n              mpq.add((Term[])multiTerms.toArray(new Term[0]));\n              multiTerms.clear();\n            }\n            multiTerms.add(new Term(field, t.termText()));\n          }\n          mpq.add((Term[])multiTerms.toArray(new Term[0]));\n          return mpq;\n        }\n      }\n      else {\n        PhraseQuery q = new PhraseQuery();\n        q.setSlop(phraseSlop);\n        for (int i = 0; i < v.size(); i++) {\n          q.add(new Term(field, ((org.apache.lucene.analysis.Token)\n              v.elementAt(i)).termText()));\n\n        }\n        return q;\n      }\n    }\n  }\n\n\n  /**\n   * Base implementation delegates to {@link #getFieldQuery(String,String)}.\n   * This method may be overridden, for example, to return\n   * a SpanNearQuery instead of a PhraseQuery.\n   *\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getFieldQuery(String field, String queryText, int slop)\n        throws ParseException {\n    Query query = getFieldQuery(field, queryText);\n\n    if (query instanceof PhraseQuery) {\n      ((PhraseQuery) query).setSlop(slop);\n    }\n    if (query instanceof MultiPhraseQuery) {\n      ((MultiPhraseQuery) query).setSlop(slop);\n    }\n\n    return query;\n  }\n\n\n  /**\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getRangeQuery(String field,\n                                String part1,\n                                String part2,\n                                boolean inclusive) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      part1 = part1.toLowerCase();\n      part2 = part2.toLowerCase();\n    }\n    try {\n      DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale);\n      df.setLenient(true);\n      Date d1 = df.parse(part1);\n      Date d2 = df.parse(part2);\n      if (inclusive) {\n        Calendar cal = Calendar.getInstance(locale);\n        cal.setTime(d2);\n        cal.set(Calendar.HOUR_OF_DAY, 23);\n        cal.set(Calendar.MINUTE, 59);\n        cal.set(Calendar.SECOND, 59);\n        cal.set(Calendar.MILLISECOND, 999);\n        d2 = cal.getTime();\n      }\n      part1 = DateField.dateToString(d1);\n      part2 = DateField.dateToString(d2);\n    }\n    catch (Exception e) { }\n\n    return new RangeQuery(new Term(field, part1),\n                          new Term(field, part2),\n                          inclusive);\n  }\n\n  /**\n   * Factory method for generating query, given a set of clauses.\n   * By default creates a boolean query composed of clauses passed in.\n   *\n   * Can be overridden by extending classes, to modify query being\n   * returned.\n   *\n   * @param clauses Vector that contains {@link BooleanClause} instances\n   *    to join.\n   *\n   * @return Resulting {@link Query} object.\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getBooleanQuery(Vector clauses) throws ParseException {\n    return getBooleanQuery(clauses, false);\n  }\n\n  /**\n   * Factory method for generating query, given a set of clauses.\n   * By default creates a boolean query composed of clauses passed in.\n   *\n   * Can be overridden by extending classes, to modify query being\n   * returned.\n   *\n   * @param clauses Vector that contains {@link BooleanClause} instances\n   *    to join.\n   * @param disableCoord true if coord scoring should be disabled.\n   *\n   * @return Resulting {@link Query} object.\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getBooleanQuery(Vector clauses, boolean disableCoord)\n    throws ParseException\n  {\n    BooleanQuery query = new BooleanQuery(disableCoord);\n    for (int i = 0; i < clauses.size(); i++) {\n  query.add((BooleanClause)clauses.elementAt(i));\n    }\n    return query;\n  }\n\n  /**\n   * Factory method for generating a query. Called when parser\n   * parses an input term token that contains one or more wildcard\n   * characters (? and *), but is not a prefix term token (one\n   * that has just a single * character at the end)\n   *<p>\n   * Depending on settings, prefix term may be lower-cased\n   * automatically. It will not go through the default Analyzer,\n   * however, since normal Analyzers are unlikely to work properly\n   * with wildcard templates.\n   *<p>\n   * Can be overridden by extending classes, to provide custom handling for\n   * wildcard queries, which may be necessary due to missing analyzer calls.\n   *\n   * @param field Name of the field query will use.\n   * @param termStr Term token that contains one or more wild card\n   *   characters (? or *), but is not simple prefix term\n   *\n   * @return Resulting {@link Query} built for the term\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getWildcardQuery(String field, String termStr) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new WildcardQuery(t);\n  }\n\n  /**\n   * Factory method for generating a query (similar to\n   * {@link #getWildcardQuery}). Called when parser parses an input term\n   * token that uses prefix notation; that is, contains a single '*' wildcard\n   * character as its last character. Since this is a special case\n   * of generic wildcard term, and such a query can be optimized easily,\n   * this usually results in a different query object.\n   *<p>\n   * Depending on settings, a prefix term may be lower-cased\n   * automatically. It will not go through the default Analyzer,\n   * however, since normal Analyzers are unlikely to work properly\n   * with wildcard templates.\n   *<p>\n   * Can be overridden by extending classes, to provide custom handling for\n   * wild card queries, which may be necessary due to missing analyzer calls.\n   *\n   * @param field Name of the field query will use.\n   * @param termStr Term token to use for building term for the query\n   *    (<b>without</b> trailing '*' character!)\n   *\n   * @return Resulting {@link Query} built for the term\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getPrefixQuery(String field, String termStr) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new PrefixQuery(t);\n  }\n\n\n   /**\n   * Factory method for generating a query (similar to\n   * {@link #getWildcardQuery}). Called when parser parses\n   * an input term token that has the fuzzy suffix (~) appended.\n   *\n   * @param field Name of the field query will use.\n   * @param termStr Term token to use for building term for the query\n   *\n   * @return Resulting {@link Query} built for the term\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new FuzzyQuery(t, minSimilarity, fuzzyPrefixLength);\n  }\n\n  /**\n   * Returns a String where the escape char has been\n   * removed, or kept only once if there was a double escape.\n   */\n  private String discardEscapeChar(String input) {\n    char[] caSource = input.toCharArray();\n    char[] caDest = new char[caSource.length];\n    int j = 0;\n    for (int i = 0; i < caSource.length; i++) {\n      if ((caSource[i] != '\\\\') || (i > 0 && caSource[i-1] == '\\\\')) {\n        caDest[j++]=caSource[i];\n      }\n    }\n    return new String(caDest, 0, j);\n  }\n\n  /**\n   * Returns a String where those characters that QueryParser\n   * expects to be escaped are escaped by a preceding <code>\\</code>.\n   */\n  public static String escape(String s) {\n    StringBuffer sb = new StringBuffer();\n    for (int i = 0; i < s.length(); i++) {\n      char c = s.charAt(i);\n      if (c == '\\\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')' || c == ':'\n        || c == '^' || c == '[' || c == ']' || c == '\\\"' || c == '{' || c == '}' || c == '~'\n        || c == '*' || c == '?') {\n        sb.append('\\\\');\n      }\n      sb.append(c);\n    }\n    return sb.toString();\n  }\n\n  /**\n   * Command line tool to test QueryParser, using {@link org.apache.lucene.analysis.SimpleAnalyzer}.\n   * Usage:<br>\n   * <code>java org.apache.lucene.queryParser.QueryParser &lt;input&gt;</code>\n   */\n  public static void main(String[] args) throws Exception {\n    if (args.length == 0) {\n      System.out.println(\"Usage: java org.apache.lucene.queryParser.QueryParser <input>\");\n      System.exit(0);\n    }\n    QueryParser qp = new QueryParser(\"field\",\n                           new org.apache.lucene.analysis.SimpleAnalyzer());\n    Query q = qp.parse(args[0]);\n    System.out.println(q.toString(\"field\"));\n  }\n\n  final public int Conjunction() throws ParseException {\n  int ret = CONJ_NONE;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case AND:\n    case OR:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case AND:\n        jj_consume_token(AND);\n            ret = CONJ_AND;\n        break;\n      case OR:\n        jj_consume_token(OR);\n              ret = CONJ_OR;\n        break;\n      default:\n        jj_la1[0] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      break;\n    default:\n      jj_la1[1] = jj_gen;\n      ;\n    }\n    {if (true) return ret;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public int Modifiers() throws ParseException {\n  int ret = MOD_NONE;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case NOT:\n    case PLUS:\n    case MINUS:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        jj_consume_token(PLUS);\n              ret = MOD_REQ;\n        break;\n      case MINUS:\n        jj_consume_token(MINUS);\n                 ret = MOD_NOT;\n        break;\n      case NOT:\n        jj_consume_token(NOT);\n               ret = MOD_NOT;\n        break;\n      default:\n        jj_la1[2] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      break;\n    default:\n      jj_la1[3] = jj_gen;\n      ;\n    }\n    {if (true) return ret;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public Query Query(String field) throws ParseException {\n  Vector clauses = new Vector();\n  Query q, firstQuery=null;\n  int conj, mods;\n    mods = Modifiers();\n    q = Clause(field);\n    addClause(clauses, CONJ_NONE, mods, q);\n    if (mods == MOD_NONE)\n        firstQuery=q;\n    label_1:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case AND:\n      case OR:\n      case NOT:\n      case PLUS:\n      case MINUS:\n      case LPAREN:\n      case QUOTED:\n      case TERM:\n      case PREFIXTERM:\n      case WILDTERM:\n      case RANGEIN_START:\n      case RANGEEX_START:\n      case NUMBER:\n        ;\n        break;\n      default:\n        jj_la1[4] = jj_gen;\n        break label_1;\n      }\n      conj = Conjunction();\n      mods = Modifiers();\n      q = Clause(field);\n      addClause(clauses, conj, mods, q);\n    }\n      if (clauses.size() == 1 && firstQuery != null)\n        {if (true) return firstQuery;}\n      else {\n  {if (true) return getBooleanQuery(clauses);}\n      }\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public Query Clause(String field) throws ParseException {\n  Query q;\n  Token fieldToken=null, boost=null;\n    if (jj_2_1(2)) {\n      fieldToken = jj_consume_token(TERM);\n      jj_consume_token(COLON);\n      field=discardEscapeChar(fieldToken.image);\n    } else {\n      ;\n    }\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case QUOTED:\n    case TERM:\n    case PREFIXTERM:\n    case WILDTERM:\n    case RANGEIN_START:\n    case RANGEEX_START:\n    case NUMBER:\n      q = Term(field);\n      break;\n    case LPAREN:\n      jj_consume_token(LPAREN);\n      q = Query(field);\n      jj_consume_token(RPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[5] = jj_gen;\n        ;\n      }\n      break;\n    default:\n      jj_la1[6] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n      if (boost != null) {\n        float f = (float)1.0;\n  try {\n    f = Float.valueOf(boost.image).floatValue();\n          q.setBoost(f);\n  } catch (Exception ignored) { }\n      }\n      {if (true) return q;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public Query Term(String field) throws ParseException {\n  Token term, boost=null, fuzzySlop=null, goop1, goop2;\n  boolean prefix = false;\n  boolean wildcard = false;\n  boolean fuzzy = false;\n  boolean rangein = false;\n  Query q;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case TERM:\n    case PREFIXTERM:\n    case WILDTERM:\n    case NUMBER:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TERM:\n        term = jj_consume_token(TERM);\n        break;\n      case PREFIXTERM:\n        term = jj_consume_token(PREFIXTERM);\n                             prefix=true;\n        break;\n      case WILDTERM:\n        term = jj_consume_token(WILDTERM);\n                           wildcard=true;\n        break;\n      case NUMBER:\n        term = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[7] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FUZZY_SLOP:\n        fuzzySlop = jj_consume_token(FUZZY_SLOP);\n                                fuzzy=true;\n        break;\n      default:\n        jj_la1[8] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case FUZZY_SLOP:\n          fuzzySlop = jj_consume_token(FUZZY_SLOP);\n                                                         fuzzy=true;\n          break;\n        default:\n          jj_la1[9] = jj_gen;\n          ;\n        }\n        break;\n      default:\n        jj_la1[10] = jj_gen;\n        ;\n      }\n       String termImage=discardEscapeChar(term.image);\n       if (wildcard) {\n       q = getWildcardQuery(field, termImage);\n       } else if (prefix) {\n         q = getPrefixQuery(field,\n           discardEscapeChar(term.image.substring\n          (0, term.image.length()-1)));\n       } else if (fuzzy) {\n          float fms = fuzzyMinSim;\n          try {\n            fms = Float.valueOf(fuzzySlop.image.substring(1)).floatValue();\n          } catch (Exception ignored) { }\n         if(fms < 0.0f || fms > 1.0f){\n           {if (true) throw new ParseException(\"Minimum similarity for a FuzzyQuery has to be between 0.0f and 1.0f !\");}\n         }\n         q = getFuzzyQuery(field, termImage,fms);\n       } else {\n         q = getFieldQuery(field, termImage);\n       }\n      break;\n    case RANGEIN_START:\n      jj_consume_token(RANGEIN_START);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_GOOP:\n        goop1 = jj_consume_token(RANGEIN_GOOP);\n        break;\n      case RANGEIN_QUOTED:\n        goop1 = jj_consume_token(RANGEIN_QUOTED);\n        break;\n      default:\n        jj_la1[11] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_TO:\n        jj_consume_token(RANGEIN_TO);\n        break;\n      default:\n        jj_la1[12] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_GOOP:\n        goop2 = jj_consume_token(RANGEIN_GOOP);\n        break;\n      case RANGEIN_QUOTED:\n        goop2 = jj_consume_token(RANGEIN_QUOTED);\n        break;\n      default:\n        jj_la1[13] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      jj_consume_token(RANGEIN_END);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[14] = jj_gen;\n        ;\n      }\n          if (goop1.kind == RANGEIN_QUOTED) {\n            goop1.image = goop1.image.substring(1, goop1.image.length()-1);\n          } else {\n            goop1.image = discardEscapeChar(goop1.image);\n          }\n          if (goop2.kind == RANGEIN_QUOTED) {\n            goop2.image = goop2.image.substring(1, goop2.image.length()-1);\n      } else {\n        goop2.image = discardEscapeChar(goop2.image);\n      }\n          q = getRangeQuery(field, goop1.image, goop2.image, true);\n      break;\n    case RANGEEX_START:\n      jj_consume_token(RANGEEX_START);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_GOOP:\n        goop1 = jj_consume_token(RANGEEX_GOOP);\n        break;\n      case RANGEEX_QUOTED:\n        goop1 = jj_consume_token(RANGEEX_QUOTED);\n        break;\n      default:\n        jj_la1[15] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_TO:\n        jj_consume_token(RANGEEX_TO);\n        break;\n      default:\n        jj_la1[16] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_GOOP:\n        goop2 = jj_consume_token(RANGEEX_GOOP);\n        break;\n      case RANGEEX_QUOTED:\n        goop2 = jj_consume_token(RANGEEX_QUOTED);\n        break;\n      default:\n        jj_la1[17] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      jj_consume_token(RANGEEX_END);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[18] = jj_gen;\n        ;\n      }\n          if (goop1.kind == RANGEEX_QUOTED) {\n            goop1.image = goop1.image.substring(1, goop1.image.length()-1);\n          } else {\n            goop1.image = discardEscapeChar(goop1.image);\n          }\n          if (goop2.kind == RANGEEX_QUOTED) {\n            goop2.image = goop2.image.substring(1, goop2.image.length()-1);\n      } else {\n        goop2.image = discardEscapeChar(goop2.image);\n      }\n\n          q = getRangeQuery(field, goop1.image, goop2.image, false);\n      break;\n    case QUOTED:\n      term = jj_consume_token(QUOTED);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FUZZY_SLOP:\n        fuzzySlop = jj_consume_token(FUZZY_SLOP);\n        break;\n      default:\n        jj_la1[19] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[20] = jj_gen;\n        ;\n      }\n         int s = phraseSlop;\n\n         if (fuzzySlop != null) {\n           try {\n             s = Float.valueOf(fuzzySlop.image.substring(1)).intValue();\n           }\n           catch (Exception ignored) { }\n         }\n         q = getFieldQuery(field, term.image.substring(1, term.image.length()-1), s);\n      break;\n    default:\n      jj_la1[21] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    if (boost != null) {\n      float f = (float) 1.0;\n      try {\n        f = Float.valueOf(boost.image).floatValue();\n      }\n      catch (Exception ignored) {\n    /* Should this be handled somehow? (defaults to \"no boost\", if\n     * boost number is invalid)\n     */\n      }\n\n      if (q != null) {\n        q.setBoost(f);\n      }\n    }\n    {if (true) return q;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final private boolean jj_2_1(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_1(); }\n    catch(LookaheadSuccess ls) { return true; }\n    finally { jj_save(0, xla); }\n  }\n\n  final private boolean jj_3_1() {\n    if (jj_scan_token(TERM)) return true;\n    if (jj_scan_token(COLON)) return true;\n    return false;\n  }\n\n  public QueryParserTokenManager token_source;\n  public Token token, jj_nt;\n  private int jj_ntk;\n  private Token jj_scanpos, jj_lastpos;\n  private int jj_la;\n  public boolean lookingAhead = false;\n  private boolean jj_semLA;\n  private int jj_gen;\n  final private int[] jj_la1 = new int[22];\n  static private int[] jj_la1_0;\n  static {\n      jj_la1_0();\n   }\n   private static void jj_la1_0() {\n      jj_la1_0 = new int[] {0x180,0x180,0xe00,0xe00,0xfb1f80,0x8000,0xfb1000,0x9a0000,0x40000,0x40000,0x8000,0xc000000,0x1000000,0xc000000,0x8000,0xc0000000,0x10000000,0xc0000000,0x8000,0x40000,0x8000,0xfb0000,};\n   }\n  final private JJCalls[] jj_2_rtns = new JJCalls[1];\n  private boolean jj_rescan = false;\n  private int jj_gc = 0;\n\n  public QueryParser(CharStream stream) {\n    token_source = new QueryParserTokenManager(stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 22; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public void ReInit(CharStream stream) {\n    token_source.ReInit(stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 22; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public QueryParser(QueryParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 22; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public void ReInit(QueryParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 22; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  final private Token jj_consume_token(int kind) throws ParseException {\n    Token oldToken;\n    if ((oldToken = token).next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    if (token.kind == kind) {\n      jj_gen++;\n      if (++jj_gc > 100) {\n        jj_gc = 0;\n        for (int i = 0; i < jj_2_rtns.length; i++) {\n          JJCalls c = jj_2_rtns[i];\n          while (c != null) {\n            if (c.gen < jj_gen) c.first = null;\n            c = c.next;\n          }\n        }\n      }\n      return token;\n    }\n    token = oldToken;\n    jj_kind = kind;\n    throw generateParseException();\n  }\n\n  static private final class LookaheadSuccess extends java.lang.Error { }\n  final private LookaheadSuccess jj_ls = new LookaheadSuccess();\n  final private boolean jj_scan_token(int kind) {\n    if (jj_scanpos == jj_lastpos) {\n      jj_la--;\n      if (jj_scanpos.next == null) {\n        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();\n      } else {\n        jj_lastpos = jj_scanpos = jj_scanpos.next;\n      }\n    } else {\n      jj_scanpos = jj_scanpos.next;\n    }\n    if (jj_rescan) {\n      int i = 0; Token tok = token;\n      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }\n      if (tok != null) jj_add_error_token(kind, i);\n    }\n    if (jj_scanpos.kind != kind) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;\n    return false;\n  }\n\n  final public Token getNextToken() {\n    if (token.next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    jj_gen++;\n    return token;\n  }\n\n  final public Token getToken(int index) {\n    Token t = lookingAhead ? jj_scanpos : token;\n    for (int i = 0; i < index; i++) {\n      if (t.next != null) t = t.next;\n      else t = t.next = token_source.getNextToken();\n    }\n    return t;\n  }\n\n  final private int jj_ntk() {\n    if ((jj_nt=token.next) == null)\n      return (jj_ntk = (token.next=token_source.getNextToken()).kind);\n    else\n      return (jj_ntk = jj_nt.kind);\n  }\n\n  private java.util.Vector jj_expentries = new java.util.Vector();\n  private int[] jj_expentry;\n  private int jj_kind = -1;\n  private int[] jj_lasttokens = new int[100];\n  private int jj_endpos;\n\n  private void jj_add_error_token(int kind, int pos) {\n    if (pos >= 100) return;\n    if (pos == jj_endpos + 1) {\n      jj_lasttokens[jj_endpos++] = kind;\n    } else if (jj_endpos != 0) {\n      jj_expentry = new int[jj_endpos];\n      for (int i = 0; i < jj_endpos; i++) {\n        jj_expentry[i] = jj_lasttokens[i];\n      }\n      boolean exists = false;\n      for (java.util.Enumeration e = jj_expentries.elements(); e.hasMoreElements();) {\n        int[] oldentry = (int[])(e.nextElement());\n        if (oldentry.length == jj_expentry.length) {\n          exists = true;\n          for (int i = 0; i < jj_expentry.length; i++) {\n            if (oldentry[i] != jj_expentry[i]) {\n              exists = false;\n              break;\n            }\n          }\n          if (exists) break;\n        }\n      }\n      if (!exists) jj_expentries.addElement(jj_expentry);\n      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;\n    }\n  }\n\n  public ParseException generateParseException() {\n    jj_expentries.removeAllElements();\n    boolean[] la1tokens = new boolean[32];\n    for (int i = 0; i < 32; i++) {\n      la1tokens[i] = false;\n    }\n    if (jj_kind >= 0) {\n      la1tokens[jj_kind] = true;\n      jj_kind = -1;\n    }\n    for (int i = 0; i < 22; i++) {\n      if (jj_la1[i] == jj_gen) {\n        for (int j = 0; j < 32; j++) {\n          if ((jj_la1_0[i] & (1<<j)) != 0) {\n            la1tokens[j] = true;\n          }\n        }\n      }\n    }\n    for (int i = 0; i < 32; i++) {\n      if (la1tokens[i]) {\n        jj_expentry = new int[1];\n        jj_expentry[0] = i;\n        jj_expentries.addElement(jj_expentry);\n      }\n    }\n    jj_endpos = 0;\n    jj_rescan_token();\n    jj_add_error_token(0, 0);\n    int[][] exptokseq = new int[jj_expentries.size()][];\n    for (int i = 0; i < jj_expentries.size(); i++) {\n      exptokseq[i] = (int[])jj_expentries.elementAt(i);\n    }\n    return new ParseException(token, exptokseq, tokenImage);\n  }\n\n  final public void enable_tracing() {\n  }\n\n  final public void disable_tracing() {\n  }\n\n  final private void jj_rescan_token() {\n    jj_rescan = true;\n    for (int i = 0; i < 1; i++) {\n      JJCalls p = jj_2_rtns[i];\n      do {\n        if (p.gen > jj_gen) {\n          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;\n          switch (i) {\n            case 0: jj_3_1(); break;\n          }\n        }\n        p = p.next;\n      } while (p != null);\n    }\n    jj_rescan = false;\n  }\n\n  final private void jj_save(int index, int xla) {\n    JJCalls p = jj_2_rtns[index];\n    while (p.gen > jj_gen) {\n      if (p.next == null) { p = p.next = new JJCalls(); break; }\n      p = p.next;\n    }\n    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;\n  }\n\n  static final class JJCalls {\n    int gen;\n    Token first;\n    int arg;\n    JJCalls next;", "functions": [{"function_name": "parse", "code": "  public Query parse(String query) throws ParseException {\n    ReInit(new FastCharStream(new StringReader(query)));\n    try {\n      return Query(field);\n    }\n    catch (TokenMgrError tme) {\n      throw new ParseException(tme.getMessage());\n    }\n    catch (BooleanQuery.TooManyClauses tmc) {\n      throw new ParseException(\"Too many boolean clauses\");", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "RETURN", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [0, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [8, 12], [10, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 0], [7, 3], [8, 4], [9, 5], [10, 6], [11, 7], [12, 8], [13, 10], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getAnalyzer", "code": "  public Analyzer getAnalyzer() {\n    return analyzer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getField", "code": "  public String getField() {\n    return field;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFuzzyMinSim", "code": "  public float getFuzzyMinSim() {\n      return fuzzyMinSim;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFuzzyMinSim", "code": "  public void setFuzzyMinSim(float fuzzyMinSim) {\n      this.fuzzyMinSim = fuzzyMinSim;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFuzzyPrefixLength", "code": "  public int getFuzzyPrefixLength() {\n    return fuzzyPrefixLength;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFuzzyPrefixLength", "code": "  public void setFuzzyPrefixLength(int fuzzyPrefixLength) {\n    this.fuzzyPrefixLength = fuzzyPrefixLength;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPhraseSlop", "code": "  public void setPhraseSlop(int phraseSlop) {\n    this.phraseSlop = phraseSlop;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPhraseSlop", "code": "  public int getPhraseSlop() {\n    return phraseSlop;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefaultOperator", "code": "  public void setDefaultOperator(Operator op) {\n    this.operator = op;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultOperator", "code": "  public Operator getDefaultOperator() {\n    return operator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLowercaseExpandedTerms", "code": "  public void setLowercaseExpandedTerms(boolean lowercaseExpandedTerms) {\n    this.lowercaseExpandedTerms = lowercaseExpandedTerms;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLowercaseExpandedTerms", "code": "  public boolean getLowercaseExpandedTerms() {\n    return lowercaseExpandedTerms;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLocale", "code": "  public void setLocale(Locale locale) {\n    this.locale = locale;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocale", "code": "  public Locale getLocale() {\n    return locale;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addClause", "code": "  protected void addClause(Vector clauses, int conj, int mods, Query q) {\n    boolean required, prohibited;\n\n    if (clauses.size() > 0 && conj == CONJ_AND) {\n      BooleanClause c = (BooleanClause) clauses.elementAt(clauses.size()-1);\n      if (!c.isProhibited())\n        c.setOccur(BooleanClause.Occur.MUST);\n    }\n\n    if (clauses.size() > 0 && operator == AND_OPERATOR && conj == CONJ_OR) {\n      BooleanClause c = (BooleanClause) clauses.elementAt(clauses.size()-1);\n      if (!c.isProhibited())\n        c.setOccur(BooleanClause.Occur.SHOULD);\n    }\n\n    if (q == null)\n      return;\n\n    if (operator == OR_OPERATOR) {\n      prohibited = (mods == MOD_NOT);\n      required = (mods == MOD_REQ);\n      if (conj == CONJ_AND && !prohibited) {\n        required = true;\n      }\n    } else {\n      prohibited = (mods == MOD_NOT);\n      required   = (!prohibited && conj != CONJ_OR);\n    }\n    if (required && !prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.MUST));\n    else if (!required && !prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.SHOULD));\n    else if (!required && prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.MUST_NOT));\n    else\n      throw new RuntimeException(\"Clause cannot be both required and prohibited\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [2, 13], [3, 14], [3, 15], [4, 16], [5, 17], [11, 18], [11, 19], [1, 20], [2, 21], [15, 22], [4, 23], [4, 24], [16, 25], [16, 26], [5, 27], [5, 28], [17, 29], [17, 30], [18, 31], [18, 32], [11, 33], [20, 34], [2, 35], [2, 36], [21, 37], [2, 38], [2, 39], [23, 40], [26, 41], [26, 42], [27, 43], [30, 44], [30, 45], [31, 46], [18, 47], [33, 48], [35, 49], [36, 50], [37, 51], [38, 52], [39, 53], [23, 54], [42, 55], [42, 56], [27, 57], [46, 58], [47, 59], [49, 60], [21, 61], [24, 62], [28, 63], [61, 64], [62, 65], [63, 66], [65, 67], [65, 68], [66, 69], [66, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 2], [14, 3], [15, 3], [16, 4], [17, 5], [18, 11], [19, 11], [20, 1], [21, 2], [22, 15], [23, 4], [24, 4], [25, 16], [26, 16], [27, 5], [28, 5], [29, 17], [30, 17], [31, 18], [32, 18], [33, 11], [34, 20], [35, 2], [36, 2], [37, 21], [38, 2], [39, 2], [40, 23], [41, 26], [42, 26], [43, 27], [44, 30], [45, 30], [46, 31], [47, 18], [48, 33], [49, 35], [50, 36], [51, 37], [52, 38], [53, 39], [54, 23], [55, 42], [56, 42], [57, 27], [58, 46], [59, 47], [60, 49], [61, 21], [62, 24], [63, 28], [64, 61], [65, 62], [66, 63], [67, 65], [68, 65], [69, 66], [70, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "getFieldQuery", "code": "  protected Query getFieldQuery(String field, String queryText)  throws ParseException {\n\n    TokenStream source = analyzer.tokenStream(field, new StringReader(queryText));\n    Vector v = new Vector();\n    org.apache.lucene.analysis.Token t;\n    int positionCount = 0;\n    boolean severalTokensAtSamePosition = false;\n\n    while (true) {\n      try {\n        t = source.next();\n      }\n      catch (IOException e) {\n        t = null;\n      }\n      if (t == null)\n        break;\n      v.addElement(t);\n      if (t.getPositionIncrement() != 0)\n        positionCount += t.getPositionIncrement();\n      else\n        severalTokensAtSamePosition = true;\n    }\n    try {\n      source.close();\n    }\n    catch (IOException e) {\n    }\n\n    if (v.size() == 0)\n      return null;\n    else if (v.size() == 1) {\n      t = (org.apache.lucene.analysis.Token) v.elementAt(0);\n      return new TermQuery(new Term(field, t.termText()));\n    } else {\n      if (severalTokensAtSamePosition) {\n        if (positionCount == 1) {\n          BooleanQuery q = new BooleanQuery(true);\n          for (int i = 0; i < v.size(); i++) {\n            t = (org.apache.lucene.analysis.Token) v.elementAt(i);\n            TermQuery currentQuery = new TermQuery(\n                new Term(field, t.termText()));\n            q.add(currentQuery, BooleanClause.Occur.SHOULD);\n          }\n          return q;\n        }\n        else {\n          MultiPhraseQuery mpq = new MultiPhraseQuery();\n          mpq.setSlop(phraseSlop);\n          List multiTerms = new ArrayList();\n          for (int i = 0; i < v.size(); i++) {\n            t = (org.apache.lucene.analysis.Token) v.elementAt(i);\n            if (t.getPositionIncrement() == 1 && multiTerms.size() > 0) {\n              mpq.add((Term[])multiTerms.toArray(new Term[0]));\n              multiTerms.clear();\n            }\n            multiTerms.add(new Term(field, t.termText()));\n          }\n          mpq.add((Term[])multiTerms.toArray(new Term[0]));\n          return mpq;\n        }\n      }\n      else {\n        PhraseQuery q = new PhraseQuery();\n        q.setSlop(phraseSlop);\n        for (int i = 0; i < v.size(); i++) {\n          q.add(new Term(field, ((org.apache.lucene.analysis.Token)\n              v.elementAt(i)).termText()));\n\n        }\n        return q;", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CATCH", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "LOOP", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [11, 16], [12, 17], [13, 18], [13, 19], [2, 20], [3, 21], [3, 22], [3, 23], [4, 24], [5, 25], [7, 26], [8, 27], [11, 28], [11, 29], [16, 30], [16, 31], [21, 32], [3, 33], [22, 34], [22, 35], [23, 36], [27, 37], [29, 38], [11, 39], [21, 40], [21, 41], [32, 42], [32, 43], [35, 44], [23, 45], [28, 46], [28, 47], [28, 48], [28, 49], [38, 50], [40, 51], [41, 52], [36, 53], [45, 54], [47, 55], [28, 56], [49, 57], [50, 58], [39, 59], [53, 60], [55, 61], [48, 62], [49, 63], [49, 64], [49, 65], [49, 66], [49, 67], [49, 68], [49, 69], [57, 70], [59, 71], [47, 72], [47, 73], [49, 74], [64, 75], [49, 76], [68, 77], [72, 78], [64, 79], [75, 80], [65, 81], [66, 82], [68, 83], [77, 84], [69, 85], [74, 86], [64, 87], [79, 88], [64, 89], [64, 90], [68, 91], [68, 92], [68, 93], [85, 94], [78, 95], [87, 96], [88, 97], [88, 98], [83, 99], [86, 100], [96, 101], [79, 102], [79, 103], [97, 104], [97, 105], [98, 106], [98, 107], [89, 108], [99, 109], [92, 110], [109, 111], [103, 112], [112, 113], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 11], [17, 12], [18, 13], [19, 13], [20, 2], [21, 3], [22, 3], [23, 3], [24, 4], [25, 5], [26, 7], [27, 8], [28, 11], [29, 11], [30, 16], [31, 16], [32, 21], [33, 3], [34, 22], [35, 22], [36, 23], [37, 27], [38, 29], [39, 11], [40, 21], [41, 21], [42, 32], [43, 32], [44, 35], [45, 23], [46, 28], [47, 28], [48, 28], [49, 28], [50, 38], [51, 40], [52, 41], [53, 36], [54, 45], [55, 47], [56, 28], [57, 49], [58, 50], [59, 39], [60, 53], [61, 55], [62, 48], [63, 49], [64, 49], [65, 49], [66, 49], [67, 49], [68, 49], [69, 49], [70, 57], [71, 59], [72, 47], [73, 47], [74, 49], [75, 64], [76, 49], [77, 68], [78, 72], [79, 64], [80, 75], [81, 65], [82, 66], [83, 68], [84, 77], [85, 69], [86, 74], [87, 64], [88, 79], [89, 64], [90, 64], [91, 68], [92, 68], [93, 68], [94, 85], [95, 78], [96, 87], [97, 88], [98, 88], [99, 83], [100, 86], [101, 96], [102, 79], [103, 79], [104, 97], [105, 97], [106, 98], [107, 98], [108, 89], [109, 99], [110, 92], [111, 109], [112, 103], [113, 112], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113]]}, {"function_name": "getFieldQuery", "code": "  protected Query getFieldQuery(String field, String queryText, int slop)\n        throws ParseException {\n    Query query = getFieldQuery(field, queryText);\n\n    if (query instanceof PhraseQuery) {\n      ((PhraseQuery) query).setSlop(slop);\n    }\n    if (query instanceof MultiPhraseQuery) {\n      ((MultiPhraseQuery) query).setSlop(slop);\n    }\n\n    return query;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getRangeQuery", "code": "  protected Query getRangeQuery(String field,\n                                String part1,\n                                String part2,\n                                boolean inclusive) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      part1 = part1.toLowerCase();\n      part2 = part2.toLowerCase();\n    }\n    try {\n      DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale);\n      df.setLenient(true);\n      Date d1 = df.parse(part1);\n      Date d2 = df.parse(part2);\n      if (inclusive) {\n        Calendar cal = Calendar.getInstance(locale);\n        cal.setTime(d2);\n        cal.set(Calendar.HOUR_OF_DAY, 23);\n        cal.set(Calendar.MINUTE, 59);\n        cal.set(Calendar.SECOND, 59);\n        cal.set(Calendar.MILLISECOND, 999);\n        d2 = cal.getTime();\n      }\n      part1 = DateField.dateToString(d1);\n      part2 = DateField.dateToString(d2);\n    }\n    catch (Exception e) { }\n\n    return new RangeQuery(new Term(field, part1),\n                          new Term(field, part2),\n                          inclusive);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [8, 14], [8, 15], [2, 16], [2, 17], [2, 18], [16, 19], [17, 20], [10, 21], [11, 22], [12, 23], [18, 24], [13, 25], [3, 26], [3, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [26, 34], [27, 35], [28, 36], [29, 37], [30, 38], [31, 39], [32, 40], [21, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 8], [15, 8], [16, 2], [17, 2], [18, 2], [19, 16], [20, 17], [21, 10], [22, 11], [23, 12], [24, 18], [25, 13], [26, 3], [27, 3], [28, 10], [29, 10], [30, 10], [31, 10], [32, 10], [33, 10], [34, 26], [35, 27], [36, 28], [37, 29], [38, 30], [39, 31], [40, 32], [41, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "getBooleanQuery", "code": "  protected Query getBooleanQuery(Vector clauses) throws ParseException {\n    return getBooleanQuery(clauses, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBooleanQuery", "code": "  protected Query getBooleanQuery(Vector clauses, boolean disableCoord)\n    throws ParseException\n  {\n    BooleanQuery query = new BooleanQuery(disableCoord);\n    for (int i = 0; i < clauses.size(); i++) {\n  query.add((BooleanClause)clauses.elementAt(i));\n    }\n    return query;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [3, 8], [2, 9], [2, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 3], [9, 2], [10, 2], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getWildcardQuery", "code": "  protected Query getWildcardQuery(String field, String termStr) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new WildcardQuery(t);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getPrefixQuery", "code": "  protected Query getPrefixQuery(String field, String termStr) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new PrefixQuery(t);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getFuzzyQuery", "code": "  protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new FuzzyQuery(t, minSimilarity, fuzzyPrefixLength);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "discardEscapeChar", "code": "  private String discardEscapeChar(String input) {\n    char[] caSource = input.toCharArray();\n    char[] caDest = new char[caSource.length];\n    int j = 0;\n    for (int i = 0; i < caSource.length; i++) {\n      if ((caSource[i] != '\\\\') || (i > 0 && caSource[i-1] == '\\\\')) {\n        caDest[j++]=caSource[i];\n      }\n    }\n    return new String(caDest, 0, j);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [2, 10], [3, 11], [5, 12], [10, 13], [2, 14], [13, 15], [13, 16], [10, 17], [15, 18], [15, 19], [16, 20], [18, 21], [19, 22], [18, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 2], [11, 3], [12, 5], [13, 10], [14, 2], [15, 13], [16, 13], [17, 10], [18, 15], [19, 15], [20, 16], [21, 18], [22, 19], [23, 18], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "escape", "code": "  public static String escape(String s) {\n    StringBuffer sb = new StringBuffer();\n    for (int i = 0; i < s.length(); i++) {\n      char c = s.charAt(i);\n      if (c == '\\\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')' || c == ':'\n        || c == '^' || c == '[' || c == ']' || c == '\\\"' || c == '{' || c == '}' || c == '~'\n        || c == '*' || c == '?') {\n        sb.append('\\\\');\n      }\n      sb.append(c);\n    }\n    return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [2, 11], [7, 12], [2, 13], [12, 14], [12, 15], [8, 16], [7, 17], [14, 18], [15, 19], [15, 20], [17, 21], [19, 22], [20, 23], [20, 24], [23, 25], [24, 26], [24, 27], [26, 28], [27, 29], [27, 30], [29, 31], [30, 32], [30, 33], [32, 34], [33, 35], [33, 36], [35, 37], [36, 38], [36, 39], [38, 40], [39, 41], [39, 42], [41, 43], [42, 44], [42, 45], [44, 46], [45, 47], [45, 48], [47, 49], [48, 50], [48, 51], [50, 52], [51, 53], [51, 54], [53, 55], [54, 56], [54, 57], [56, 58], [57, 59], [57, 60], [59, 61], [60, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 2], [12, 7], [13, 2], [14, 12], [15, 12], [16, 8], [17, 7], [18, 14], [19, 15], [20, 15], [21, 17], [22, 19], [23, 20], [24, 20], [25, 23], [26, 24], [27, 24], [28, 26], [29, 27], [30, 27], [31, 29], [32, 30], [33, 30], [34, 32], [35, 33], [36, 33], [37, 35], [38, 36], [39, 36], [40, 38], [41, 39], [42, 39], [43, 41], [44, 42], [45, 42], [46, 44], [47, 45], [48, 45], [49, 47], [50, 48], [51, 48], [52, 50], [53, 51], [54, 51], [55, 53], [56, 54], [57, 54], [58, 56], [59, 57], [60, 57], [61, 59], [62, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "main", "code": "  public static void main(String[] args) throws Exception {\n    if (args.length == 0) {\n      System.out.println(\"Usage: java org.apache.lucene.queryParser.QueryParser <input>\");\n      System.exit(0);\n    }\n    QueryParser qp = new QueryParser(\"field\",\n                           new org.apache.lucene.analysis.SimpleAnalyzer());\n    Query q = qp.parse(args[0]);\n    System.out.println(q.toString(\"field\"));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [1, 8], [2, 9], [6, 10], [7, 11], [9, 12], [9, 13], [3, 14], [3, 15], [14, 16], [15, 17], [8, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 1], [9, 2], [10, 6], [11, 7], [12, 9], [13, 9], [14, 3], [15, 3], [16, 14], [17, 15], [18, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "Conjunction", "code": "  final public int Conjunction() throws ParseException {\n  int ret = CONJ_NONE;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case AND:\n    case OR:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case AND:\n        jj_consume_token(AND);\n            ret = CONJ_AND;\n        break;\n      case OR:\n        jj_consume_token(OR);\n              ret = CONJ_OR;\n        break;\n      default:\n        jj_la1[0] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      break;\n    default:\n      jj_la1[1] = jj_gen;\n      ;\n    }\n    {if (true) return ret;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "VAR_DECL", "CALL", "IF", "COND_EXPR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [4, 7], [5, 8], [5, 9], [2, 10], [2, 11], [6, 12], [6, 13], [2, 14], [11, 15], [13, 16], [11, 17], [11, 18], [11, 19], [15, 20], [15, 21], [17, 22], [11, 23], [11, 24], [11, 25], [11, 26], [11, 27], [11, 28], [21, 29], [14, 30], [23, 31], [24, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 4], [8, 5], [9, 5], [10, 2], [11, 2], [12, 6], [13, 6], [14, 2], [15, 11], [16, 13], [17, 11], [18, 11], [19, 11], [20, 15], [21, 15], [22, 17], [23, 11], [24, 11], [25, 11], [26, 11], [27, 11], [28, 11], [29, 21], [30, 14], [31, 23], [32, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "Modifiers", "code": "  final public int Modifiers() throws ParseException {\n  int ret = MOD_NONE;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case NOT:\n    case PLUS:\n    case MINUS:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        jj_consume_token(PLUS);\n              ret = MOD_REQ;\n        break;\n      case MINUS:\n        jj_consume_token(MINUS);\n                 ret = MOD_NOT;\n        break;\n      case NOT:\n        jj_consume_token(NOT);\n               ret = MOD_NOT;\n        break;\n      default:\n        jj_la1[2] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      break;\n    default:\n      jj_la1[3] = jj_gen;\n      ;\n    }\n    {if (true) return ret;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "VAR_DECL", "CALL", "IF", "COND_EXPR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [4, 7], [5, 8], [5, 9], [2, 10], [2, 11], [6, 12], [6, 13], [2, 14], [11, 15], [13, 16], [11, 17], [11, 18], [11, 19], [11, 20], [15, 21], [15, 22], [17, 23], [11, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [11, 30], [11, 31], [22, 32], [14, 33], [24, 34], [25, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 4], [8, 5], [9, 5], [10, 2], [11, 2], [12, 6], [13, 6], [14, 2], [15, 11], [16, 13], [17, 11], [18, 11], [19, 11], [20, 11], [21, 15], [22, 15], [23, 17], [24, 11], [25, 11], [26, 11], [27, 11], [28, 11], [29, 11], [30, 11], [31, 11], [32, 22], [33, 14], [34, 24], [35, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "Query", "code": "  final public Query Query(String field) throws ParseException {\n  Vector clauses = new Vector();\n  Query q, firstQuery=null;\n  int conj, mods;\n    mods = Modifiers();\n    q = Clause(field);\n    addClause(clauses, CONJ_NONE, mods, q);\n    if (mods == MOD_NONE)\n        firstQuery=q;\n    label_1:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case AND:\n      case OR:\n      case NOT:\n      case PLUS:\n      case MINUS:\n      case LPAREN:\n      case QUOTED:\n      case TERM:\n      case PREFIXTERM:\n      case WILDTERM:\n      case RANGEIN_START:\n      case RANGEEX_START:\n      case NUMBER:\n        ;\n        break;\n      default:\n        jj_la1[4] = jj_gen;\n        break label_1;\n      }\n      conj = Conjunction();\n      mods = Modifiers();\n      q = Clause(field);\n      addClause(clauses, conj, mods, q);\n    }\n      if (clauses.size() == 1 && firstQuery != null)\n        {if (true) return firstQuery;}\n      else {\n  {if (true) return getBooleanQuery(clauses);}\n      }\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "COND_EXPR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [0, 13], [0, 14], [0, 15], [9, 16], [2, 17], [10, 18], [10, 19], [3, 20], [4, 21], [14, 22], [15, 23], [6, 24], [7, 25], [2, 26], [17, 27], [17, 28], [18, 29], [19, 30], [19, 31], [3, 32], [3, 33], [3, 34], [3, 35], [20, 36], [26, 37], [26, 38], [33, 39], [34, 40], [35, 41], [20, 42], [20, 43], [36, 44], [36, 45], [37, 46], [20, 47], [45, 48], [47, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 4], [13, 0], [14, 0], [15, 0], [16, 9], [17, 2], [18, 10], [19, 10], [20, 3], [21, 4], [22, 14], [23, 15], [24, 6], [25, 7], [26, 2], [27, 17], [28, 17], [29, 18], [30, 19], [31, 19], [32, 3], [33, 3], [34, 3], [35, 3], [36, 20], [37, 26], [38, 26], [39, 33], [40, 34], [41, 35], [42, 20], [43, 20], [44, 36], [45, 36], [46, 37], [47, 20], [48, 45], [49, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "Clause", "code": "  final public Query Clause(String field) throws ParseException {\n  Query q;\n  Token fieldToken=null, boost=null;\n    if (jj_2_1(2)) {\n      fieldToken = jj_consume_token(TERM);\n      jj_consume_token(COLON);\n      field=discardEscapeChar(fieldToken.image);\n    } else {\n      ;\n    }\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case QUOTED:\n    case TERM:\n    case PREFIXTERM:\n    case WILDTERM:\n    case RANGEIN_START:\n    case RANGEEX_START:\n    case NUMBER:\n      q = Term(field);\n      break;\n    case LPAREN:\n      jj_consume_token(LPAREN);\n      q = Query(field);\n      jj_consume_token(RPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[5] = jj_gen;\n        ;\n      }\n      break;\n    default:\n      jj_la1[6] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n      if (boost != null) {\n        float f = (float)1.0;\n  try {\n    f = Float.valueOf(boost.image).floatValue();\n          q.setBoost(f);\n  } catch (Exception ignored) { }\n      }\n      {if (true) return q;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "SWITCH", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "SWITCH", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "ASSIGN", "COND_EXPR", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [2, 10], [3, 11], [4, 12], [8, 13], [9, 14], [9, 15], [2, 16], [2, 17], [10, 18], [3, 19], [3, 20], [3, 21], [3, 22], [11, 23], [11, 24], [12, 25], [5, 26], [5, 27], [16, 28], [19, 29], [3, 30], [3, 31], [21, 32], [3, 33], [3, 34], [3, 35], [3, 36], [24, 37], [4, 38], [4, 39], [4, 40], [16, 41], [16, 42], [30, 43], [21, 44], [32, 45], [32, 46], [34, 47], [36, 48], [38, 49], [40, 50], [42, 51], [17, 52], [21, 53], [21, 54], [21, 55], [46, 56], [51, 57], [31, 58], [54, 59], [53, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 2], [11, 3], [12, 4], [13, 8], [14, 9], [15, 9], [16, 2], [17, 2], [18, 10], [19, 3], [20, 3], [21, 3], [22, 3], [23, 11], [24, 11], [25, 12], [26, 5], [27, 5], [28, 16], [29, 19], [30, 3], [31, 3], [32, 21], [33, 3], [34, 3], [35, 3], [36, 3], [37, 24], [38, 4], [39, 4], [40, 4], [41, 16], [42, 16], [43, 30], [44, 21], [45, 32], [46, 32], [47, 34], [48, 36], [49, 38], [50, 40], [51, 42], [52, 17], [53, 21], [54, 21], [55, 21], [56, 46], [57, 51], [58, 31], [59, 54], [60, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "Term", "code": "  final public Query Term(String field) throws ParseException {\n  Token term, boost=null, fuzzySlop=null, goop1, goop2;\n  boolean prefix = false;\n  boolean wildcard = false;\n  boolean fuzzy = false;\n  boolean rangein = false;\n  Query q;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case TERM:\n    case PREFIXTERM:\n    case WILDTERM:\n    case NUMBER:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TERM:\n        term = jj_consume_token(TERM);\n        break;\n      case PREFIXTERM:\n        term = jj_consume_token(PREFIXTERM);\n                             prefix=true;\n        break;\n      case WILDTERM:\n        term = jj_consume_token(WILDTERM);\n                           wildcard=true;\n        break;\n      case NUMBER:\n        term = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[7] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FUZZY_SLOP:\n        fuzzySlop = jj_consume_token(FUZZY_SLOP);\n                                fuzzy=true;\n        break;\n      default:\n        jj_la1[8] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case FUZZY_SLOP:\n          fuzzySlop = jj_consume_token(FUZZY_SLOP);\n                                                         fuzzy=true;\n          break;\n        default:\n          jj_la1[9] = jj_gen;\n          ;\n        }\n        break;\n      default:\n        jj_la1[10] = jj_gen;\n        ;\n      }\n       String termImage=discardEscapeChar(term.image);\n       if (wildcard) {\n       q = getWildcardQuery(field, termImage);\n       } else if (prefix) {\n         q = getPrefixQuery(field,\n           discardEscapeChar(term.image.substring\n          (0, term.image.length()-1)));\n       } else if (fuzzy) {\n          float fms = fuzzyMinSim;\n          try {\n            fms = Float.valueOf(fuzzySlop.image.substring(1)).floatValue();\n          } catch (Exception ignored) { }\n         if(fms < 0.0f || fms > 1.0f){\n           {if (true) throw new ParseException(\"Minimum similarity for a FuzzyQuery has to be between 0.0f and 1.0f !\");}\n         }\n         q = getFuzzyQuery(field, termImage,fms);\n       } else {\n         q = getFieldQuery(field, termImage);\n       }\n      break;\n    case RANGEIN_START:\n      jj_consume_token(RANGEIN_START);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_GOOP:\n        goop1 = jj_consume_token(RANGEIN_GOOP);\n        break;\n      case RANGEIN_QUOTED:\n        goop1 = jj_consume_token(RANGEIN_QUOTED);\n        break;\n      default:\n        jj_la1[11] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_TO:\n        jj_consume_token(RANGEIN_TO);\n        break;\n      default:\n        jj_la1[12] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_GOOP:\n        goop2 = jj_consume_token(RANGEIN_GOOP);\n        break;\n      case RANGEIN_QUOTED:\n        goop2 = jj_consume_token(RANGEIN_QUOTED);\n        break;\n      default:\n        jj_la1[13] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      jj_consume_token(RANGEIN_END);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[14] = jj_gen;\n        ;\n      }\n          if (goop1.kind == RANGEIN_QUOTED) {\n            goop1.image = goop1.image.substring(1, goop1.image.length()-1);\n          } else {\n            goop1.image = discardEscapeChar(goop1.image);\n          }\n          if (goop2.kind == RANGEIN_QUOTED) {\n            goop2.image = goop2.image.substring(1, goop2.image.length()-1);\n      } else {\n        goop2.image = discardEscapeChar(goop2.image);\n      }\n          q = getRangeQuery(field, goop1.image, goop2.image, true);\n      break;\n    case RANGEEX_START:\n      jj_consume_token(RANGEEX_START);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_GOOP:\n        goop1 = jj_consume_token(RANGEEX_GOOP);\n        break;\n      case RANGEEX_QUOTED:\n        goop1 = jj_consume_token(RANGEEX_QUOTED);\n        break;\n      default:\n        jj_la1[15] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_TO:\n        jj_consume_token(RANGEEX_TO);\n        break;\n      default:\n        jj_la1[16] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_GOOP:\n        goop2 = jj_consume_token(RANGEEX_GOOP);\n        break;\n      case RANGEEX_QUOTED:\n        goop2 = jj_consume_token(RANGEEX_QUOTED);\n        break;\n      default:\n        jj_la1[17] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      jj_consume_token(RANGEEX_END);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[18] = jj_gen;\n        ;\n      }\n          if (goop1.kind == RANGEEX_QUOTED) {\n            goop1.image = goop1.image.substring(1, goop1.image.length()-1);\n          } else {\n            goop1.image = discardEscapeChar(goop1.image);\n          }\n          if (goop2.kind == RANGEEX_QUOTED) {\n            goop2.image = goop2.image.substring(1, goop2.image.length()-1);\n      } else {\n        goop2.image = discardEscapeChar(goop2.image);\n      }\n\n          q = getRangeQuery(field, goop1.image, goop2.image, false);\n      break;\n    case QUOTED:\n      term = jj_consume_token(QUOTED);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FUZZY_SLOP:\n        fuzzySlop = jj_consume_token(FUZZY_SLOP);\n        break;\n      default:\n        jj_la1[19] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[20] = jj_gen;\n        ;\n      }\n         int s = phraseSlop;\n\n         if (fuzzySlop != null) {\n           try {\n             s = Float.valueOf(fuzzySlop.image.substring(1)).intValue();\n           }\n           catch (Exception ignored) { }\n         }\n         q = getFieldQuery(field, term.image.substring(1, term.image.length()-1), s);\n      break;\n    default:\n      jj_la1[21] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    if (boost != null) {\n      float f = (float) 1.0;\n      try {\n        f = Float.valueOf(boost.image).floatValue();\n      }\n      catch (Exception ignored) {\n    /* Should this be handled somehow? (defaults to \"no boost\", if\n     * boost number is invalid)\n     */\n      }\n\n      if (q != null) {\n        q.setBoost(f);\n      }\n    }\n    {if (true) return q;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "VAR_DECL", "SWITCH", "SWITCH", "BREAK_CONTINUE", "IF", "IF", "SWITCH", "SWITCH", "SWITCH", "SWITCH", "BREAK_CONTINUE", "IF", "IF", "SWITCH", "SWITCH", "SWITCH", "SWITCH", "BREAK_CONTINUE", "IF", "VAR_DECL", "SWITCH", "SWITCH", "SWITCH", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "COND_EXPR", "COND_EXPR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "COND_EXPR", "COND_EXPR", "COND_EXPR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "COND_EXPR", "COND_EXPR", "COND_EXPR", "CALL", "IF", "COND_EXPR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "IF", "CALL", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "COND_EXPR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "TRY", "VAR_DECL", "ASSIGN", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "CATCH", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [2, 13], [3, 14], [11, 15], [12, 16], [12, 17], [2, 18], [2, 19], [2, 20], [13, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [3, 40], [3, 41], [3, 42], [3, 43], [3, 44], [3, 45], [3, 46], [3, 47], [14, 48], [14, 49], [5, 50], [6, 51], [7, 52], [8, 53], [9, 54], [9, 55], [18, 56], [19, 57], [22, 58], [3, 59], [3, 60], [3, 61], [24, 62], [26, 63], [27, 64], [3, 65], [3, 66], [29, 67], [30, 68], [31, 69], [3, 70], [32, 71], [33, 72], [34, 73], [3, 74], [3, 75], [36, 76], [37, 77], [38, 78], [3, 79], [39, 80], [40, 81], [41, 82], [3, 83], [43, 84], [45, 85], [46, 86], [47, 87], [49, 88], [56, 89], [19, 90], [59, 91], [61, 92], [24, 93], [62, 94], [26, 95], [63, 96], [63, 97], [27, 98], [64, 99], [64, 100], [65, 101], [66, 102], [31, 103], [69, 104], [69, 105], [32, 106], [32, 107], [32, 108], [71, 109], [71, 110], [33, 111], [72, 112], [72, 113], [34, 114], [34, 115], [34, 116], [73, 117], [73, 118], [75, 119], [38, 120], [78, 121], [78, 122], [39, 123], [39, 124], [39, 125], [80, 126], [80, 127], [40, 128], [81, 129], [81, 130], [41, 131], [41, 132], [41, 133], [82, 134], [82, 135], [84, 136], [44, 137], [45, 138], [45, 139], [85, 140], [85, 141], [46, 142], [86, 143], [86, 144], [47, 145], [47, 146], [47, 147], [47, 148], [47, 149], [87, 150], [87, 151], [18, 152], [90, 153], [20, 154], [92, 155], [93, 156], [26, 157], [26, 158], [26, 159], [97, 160], [27, 161], [27, 162], [100, 163], [102, 164], [29, 165], [29, 166], [30, 167], [30, 168], [31, 169], [31, 170], [31, 171], [105, 172], [106, 173], [32, 174], [32, 175], [32, 176], [32, 177], [110, 178], [33, 179], [33, 180], [113, 181], [114, 182], [34, 183], [34, 184], [34, 185], [34, 186], [118, 187], [119, 188], [36, 189], [36, 190], [37, 191], [37, 192], [38, 193], [38, 194], [38, 195], [122, 196], [123, 197], [39, 198], [39, 199], [39, 200], [39, 201], [127, 202], [40, 203], [40, 204], [130, 205], [131, 206], [41, 207], [41, 208], [41, 209], [41, 210], [135, 211], [43, 212], [45, 213], [139, 214], [45, 215], [45, 216], [141, 217], [46, 218], [46, 219], [46, 220], [144, 221], [145, 222], [47, 223], [47, 224], [47, 225], [47, 226], [47, 227], [47, 228], [47, 229], [47, 230], [151, 231], [153, 232], [60, 233], [155, 234], [155, 235], [93, 236], [158, 237], [162, 238], [165, 239], [166, 240], [167, 241], [168, 242], [170, 243], [174, 244], [176, 245], [177, 246], [183, 247], [185, 248], [186, 249], [189, 250], [190, 251], [191, 252], [192, 253], [194, 254], [198, 255], [200, 256], [201, 257], [207, 258], [209, 259], [210, 260], [136, 261], [136, 262], [136, 263], [84, 264], [212, 265], [139, 266], [214, 267], [214, 268], [215, 269], [219, 270], [220, 271], [223, 272], [225, 273], [226, 274], [227, 275], [228, 276], [229, 277], [230, 278], [234, 279], [234, 280], [236, 281], [240, 282], [240, 283], [242, 284], [242, 285], [251, 286], [251, 287], [253, 288], [253, 289], [136, 290], [136, 291], [261, 292], [262, 293], [264, 294], [139, 295], [139, 296], [139, 297], [268, 298], [281, 299], [281, 300], [157, 301], [161, 302], [282, 303], [282, 304], [284, 305], [284, 306], [169, 307], [175, 308], [179, 309], [184, 310], [286, 311], [286, 312], [288, 313], [288, 314], [193, 315], [199, 316], [203, 317], [208, 318], [290, 319], [291, 320], [292, 321], [292, 322], [262, 323], [294, 324], [213, 325], [296, 326], [297, 327], [218, 328], [224, 329], [299, 330], [261, 331], [321, 332], [322, 333], [323, 334], [324, 335], [331, 336], [331, 337], [334, 338], [334, 339], [335, 340], [335, 341], [295, 342], [336, 343], [338, 344], [340, 345], [340, 346], [343, 347], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 2], [14, 3], [15, 11], [16, 12], [17, 12], [18, 2], [19, 2], [20, 2], [21, 13], [22, 3], [23, 3], [24, 3], [25, 3], [26, 3], [27, 3], [28, 3], [29, 3], [30, 3], [31, 3], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 3], [41, 3], [42, 3], [43, 3], [44, 3], [45, 3], [46, 3], [47, 3], [48, 14], [49, 14], [50, 5], [51, 6], [52, 7], [53, 8], [54, 9], [55, 9], [56, 18], [57, 19], [58, 22], [59, 3], [60, 3], [61, 3], [62, 24], [63, 26], [64, 27], [65, 3], [66, 3], [67, 29], [68, 30], [69, 31], [70, 3], [71, 32], [72, 33], [73, 34], [74, 3], [75, 3], [76, 36], [77, 37], [78, 38], [79, 3], [80, 39], [81, 40], [82, 41], [83, 3], [84, 43], [85, 45], [86, 46], [87, 47], [88, 49], [89, 56], [90, 19], [91, 59], [92, 61], [93, 24], [94, 62], [95, 26], [96, 63], [97, 63], [98, 27], [99, 64], [100, 64], [101, 65], [102, 66], [103, 31], [104, 69], [105, 69], [106, 32], [107, 32], [108, 32], [109, 71], [110, 71], [111, 33], [112, 72], [113, 72], [114, 34], [115, 34], [116, 34], [117, 73], [118, 73], [119, 75], [120, 38], [121, 78], [122, 78], [123, 39], [124, 39], [125, 39], [126, 80], [127, 80], [128, 40], [129, 81], [130, 81], [131, 41], [132, 41], [133, 41], [134, 82], [135, 82], [136, 84], [137, 44], [138, 45], [139, 45], [140, 85], [141, 85], [142, 46], [143, 86], [144, 86], [145, 47], [146, 47], [147, 47], [148, 47], [149, 47], [150, 87], [151, 87], [152, 18], [153, 90], [154, 20], [155, 92], [156, 93], [157, 26], [158, 26], [159, 26], [160, 97], [161, 27], [162, 27], [163, 100], [164, 102], [165, 29], [166, 29], [167, 30], [168, 30], [169, 31], [170, 31], [171, 31], [172, 105], [173, 106], [174, 32], [175, 32], [176, 32], [177, 32], [178, 110], [179, 33], [180, 33], [181, 113], [182, 114], [183, 34], [184, 34], [185, 34], [186, 34], [187, 118], [188, 119], [189, 36], [190, 36], [191, 37], [192, 37], [193, 38], [194, 38], [195, 38], [196, 122], [197, 123], [198, 39], [199, 39], [200, 39], [201, 39], [202, 127], [203, 40], [204, 40], [205, 130], [206, 131], [207, 41], [208, 41], [209, 41], [210, 41], [211, 135], [212, 43], [213, 45], [214, 139], [215, 45], [216, 45], [217, 141], [218, 46], [219, 46], [220, 46], [221, 144], [222, 145], [223, 47], [224, 47], [225, 47], [226, 47], [227, 47], [228, 47], [229, 47], [230, 47], [231, 151], [232, 153], [233, 60], [234, 155], [235, 155], [236, 93], [237, 158], [238, 162], [239, 165], [240, 166], [241, 167], [242, 168], [243, 170], [244, 174], [245, 176], [246, 177], [247, 183], [248, 185], [249, 186], [250, 189], [251, 190], [252, 191], [253, 192], [254, 194], [255, 198], [256, 200], [257, 201], [258, 207], [259, 209], [260, 210], [261, 136], [262, 136], [263, 136], [264, 84], [265, 212], [266, 139], [267, 214], [268, 214], [269, 215], [270, 219], [271, 220], [272, 223], [273, 225], [274, 226], [275, 227], [276, 228], [277, 229], [278, 230], [279, 234], [280, 234], [281, 236], [282, 240], [283, 240], [284, 242], [285, 242], [286, 251], [287, 251], [288, 253], [289, 253], [290, 136], [291, 136], [292, 261], [293, 262], [294, 264], [295, 139], [296, 139], [297, 139], [298, 268], [299, 281], [300, 281], [301, 157], [302, 161], [303, 282], [304, 282], [305, 284], [306, 284], [307, 169], [308, 175], [309, 179], [310, 184], [311, 286], [312, 286], [313, 288], [314, 288], [315, 193], [316, 199], [317, 203], [318, 208], [319, 290], [320, 291], [321, 292], [322, 292], [323, 262], [324, 294], [325, 213], [326, 296], [327, 297], [328, 218], [329, 224], [330, 299], [331, 261], [332, 321], [333, 322], [334, 323], [335, 324], [336, 331], [337, 331], [338, 334], [339, 334], [340, 335], [341, 335], [342, 295], [343, 336], [344, 338], [345, 340], [346, 340], [347, 343], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347]]}, {"function_name": "jj_2_1", "code": "  final private boolean jj_2_1(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_1(); }\n    catch(LookaheadSuccess ls) { return true; }\n    finally { jj_save(0, xla); }", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [5, 10], [7, 11], [8, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 5], [11, 7], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "jj_3_1", "code": "  final private boolean jj_3_1() {\n    if (jj_scan_token(TERM)) return true;\n    if (jj_scan_token(COLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_la1_0", "code": "   private static void jj_la1_0() {\n      jj_la1_0 = new int[] {0x180,0x180,0xe00,0xe00,0xfb1f80,0x8000,0xfb1000,0x9a0000,0x40000,0x40000,0x8000,0xc000000,0x1000000,0xc000000,0x8000,0xc0000000,0x10000000,0xc0000000,0x8000,0x40000,0x8000,0xfb0000,};", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "ReInit", "code": "  public void ReInit(CharStream stream) {\n    token_source.ReInit(stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 22; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [10, 16], [1, 17], [11, 18], [2, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [16, 10], [17, 1], [18, 11], [19, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "ReInit", "code": "  public void ReInit(QueryParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 22; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [10, 16], [1, 17], [11, 18], [2, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [16, 10], [17, 1], [18, 11], [19, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "jj_consume_token", "code": "  final private Token jj_consume_token(int kind) throws ParseException {\n    Token oldToken;\n    if ((oldToken = token).next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    if (token.kind == kind) {\n      jj_gen++;\n      if (++jj_gc > 100) {\n        jj_gc = 0;\n        for (int i = 0; i < jj_2_rtns.length; i++) {\n          JJCalls c = jj_2_rtns[i];\n          while (c != null) {\n            if (c.gen < jj_gen) c.first = null;\n            c = c.next;\n          }\n        }\n      }\n      return token;\n    }\n    token = oldToken;\n    jj_kind = kind;\n    throw generateParseException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [0, 10], [3, 11], [2, 12], [2, 13], [10, 14], [3, 15], [3, 16], [11, 17], [11, 18], [13, 19], [15, 20], [13, 21], [19, 22], [20, 23], [21, 24], [13, 25], [21, 26], [21, 27], [25, 28], [26, 29], [21, 30], [26, 31], [29, 32], [26, 33], [31, 34], [31, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 0], [11, 3], [12, 2], [13, 2], [14, 10], [15, 3], [16, 3], [17, 11], [18, 11], [19, 13], [20, 15], [21, 13], [22, 19], [23, 20], [24, 21], [25, 13], [26, 21], [27, 21], [28, 25], [29, 26], [30, 21], [31, 26], [32, 29], [33, 26], [34, 31], [35, 31], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_scan_token", "code": "  final private boolean jj_scan_token(int kind) {\n    if (jj_scanpos == jj_lastpos) {\n      jj_la--;\n      if (jj_scanpos.next == null) {\n        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();\n      } else {\n        jj_lastpos = jj_scanpos = jj_scanpos.next;\n      }\n    } else {\n      jj_scanpos = jj_scanpos.next;\n    }\n    if (jj_rescan) {\n      int i = 0; Token tok = token;\n      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }\n      if (tok != null) jj_add_error_token(kind, i);\n    }\n    if (jj_scanpos.kind != kind) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [3, 10], [3, 11], [5, 12], [9, 13], [9, 14], [10, 15], [4, 16], [4, 17], [4, 18], [4, 19], [5, 20], [14, 21], [16, 22], [17, 23], [5, 24], [20, 25], [16, 26], [22, 27], [23, 28], [23, 29], [19, 30], [25, 31], [17, 32], [29, 33], [20, 34], [20, 35], [34, 36], [35, 37], [37, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 3], [11, 3], [12, 5], [13, 9], [14, 9], [15, 10], [16, 4], [17, 4], [18, 4], [19, 4], [20, 5], [21, 14], [22, 16], [23, 17], [24, 5], [25, 20], [26, 16], [27, 22], [28, 23], [29, 23], [30, 19], [31, 25], [32, 17], [33, 29], [34, 20], [35, 20], [36, 34], [37, 35], [38, 37], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getNextToken", "code": "  final public Token getNextToken() {\n    if (token.next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    jj_gen++;\n    return token;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [2, 7], [4, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 2], [8, 4], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getToken", "code": "  final public Token getToken(int index) {\n    Token t = lookingAhead ? jj_scanpos : token;\n    for (int i = 0; i < index; i++) {\n      if (t.next != null) t = t.next;\n      else t = t.next = token_source.getNextToken();\n    }\n    return t;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [2, 9], [6, 10], [6, 11], [8, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 2], [10, 6], [11, 6], [12, 8], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_ntk", "code": "  final private int jj_ntk() {\n    if ((jj_nt=token.next) == null)\n      return (jj_ntk = (token.next=token_source.getNextToken()).kind);\n    else\n      return (jj_ntk = jj_nt.kind);", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [4, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 4], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_add_error_token", "code": "  private void jj_add_error_token(int kind, int pos) {\n    if (pos >= 100) return;\n    if (pos == jj_endpos + 1) {\n      jj_lasttokens[jj_endpos++] = kind;\n    } else if (jj_endpos != 0) {\n      jj_expentry = new int[jj_endpos];\n      for (int i = 0; i < jj_endpos; i++) {\n        jj_expentry[i] = jj_lasttokens[i];\n      }\n      boolean exists = false;\n      for (java.util.Enumeration e = jj_expentries.elements(); e.hasMoreElements();) {\n        int[] oldentry = (int[])(e.nextElement());\n        if (oldentry.length == jj_expentry.length) {\n          exists = true;\n          for (int i = 0; i < jj_expentry.length; i++) {\n            if (oldentry[i] != jj_expentry[i]) {\n              exists = false;\n              break;\n            }\n          }\n          if (exists) break;\n        }\n      }\n      if (!exists) jj_expentries.addElement(jj_expentry);\n      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LOOP", "VAR_DECL", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LOOP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [5, 9], [6, 10], [8, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [9, 17], [1, 18], [10, 19], [12, 20], [14, 21], [16, 22], [5, 23], [12, 24], [20, 25], [13, 26], [14, 27], [14, 28], [15, 29], [27, 30], [14, 31], [16, 32], [16, 33], [27, 34], [27, 35], [24, 36], [34, 37], [35, 38], [27, 39], [28, 40], [36, 41], [36, 42], [35, 43], [39, 44], [43, 45], [35, 46], [43, 47], [43, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 5], [10, 6], [11, 8], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 9], [18, 1], [19, 10], [20, 12], [21, 14], [22, 16], [23, 5], [24, 12], [25, 20], [26, 13], [27, 14], [28, 14], [29, 15], [30, 27], [31, 14], [32, 16], [33, 16], [34, 27], [35, 27], [36, 24], [37, 34], [38, 35], [39, 27], [40, 28], [41, 36], [42, 36], [43, 35], [44, 39], [45, 43], [46, 35], [47, 43], [48, 43], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "generateParseException", "code": "  public ParseException generateParseException() {\n    jj_expentries.removeAllElements();\n    boolean[] la1tokens = new boolean[32];\n    for (int i = 0; i < 32; i++) {\n      la1tokens[i] = false;\n    }\n    if (jj_kind >= 0) {\n      la1tokens[jj_kind] = true;\n      jj_kind = -1;\n    }\n    for (int i = 0; i < 22; i++) {\n      if (jj_la1[i] == jj_gen) {\n        for (int j = 0; j < 32; j++) {\n          if ((jj_la1_0[i] & (1<<j)) != 0) {\n            la1tokens[j] = true;\n          }\n        }\n      }\n    }\n    for (int i = 0; i < 32; i++) {\n      if (la1tokens[i]) {\n        jj_expentry = new int[1];\n        jj_expentry[0] = i;\n        jj_expentries.addElement(jj_expentry);\n      }\n    }\n    jj_endpos = 0;\n    jj_rescan_token();\n    jj_add_error_token(0, 0);\n    int[][] exptokseq = new int[jj_expentries.size()][];\n    for (int i = 0; i < jj_expentries.size(); i++) {\n      exptokseq[i] = (int[])jj_expentries.elementAt(i);\n    }\n    return new ParseException(token, exptokseq, tokenImage);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "LOOP", "IF", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [0, 12], [0, 13], [4, 14], [5, 15], [6, 16], [7, 17], [0, 18], [10, 19], [11, 20], [11, 21], [13, 22], [4, 23], [14, 24], [5, 25], [15, 26], [16, 27], [17, 28], [2, 29], [2, 30], [3, 31], [4, 32], [25, 33], [5, 34], [6, 35], [6, 36], [7, 37], [7, 38], [8, 39], [25, 40], [35, 41], [36, 42], [37, 43], [29, 44], [23, 45], [23, 46], [23, 47], [40, 48], [40, 49], [48, 50], [47, 51], [49, 52], [40, 53], [46, 54], [52, 55], [52, 56], [49, 57], [56, 58], [57, 59], [58, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 0], [13, 0], [14, 4], [15, 5], [16, 6], [17, 7], [18, 0], [19, 10], [20, 11], [21, 11], [22, 13], [23, 4], [24, 14], [25, 5], [26, 15], [27, 16], [28, 17], [29, 2], [30, 2], [31, 3], [32, 4], [33, 25], [34, 5], [35, 6], [36, 6], [37, 7], [38, 7], [39, 8], [40, 25], [41, 35], [42, 36], [43, 37], [44, 29], [45, 23], [46, 23], [47, 23], [48, 40], [49, 40], [50, 48], [51, 47], [52, 49], [53, 40], [54, 46], [55, 52], [56, 52], [57, 49], [58, 56], [59, 57], [60, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "enable_tracing", "code": "  final public void enable_tracing() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "disable_tracing", "code": "  final public void disable_tracing() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "jj_rescan_token", "code": "  final private void jj_rescan_token() {\n    jj_rescan = true;\n    for (int i = 0; i < 1; i++) {\n      JJCalls p = jj_2_rtns[i];\n      do {\n        if (p.gen > jj_gen) {\n          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;\n          switch (i) {\n            case 0: jj_3_1(); break;\n          }\n        }\n        p = p.next;\n      } while (p != null);\n    }\n    jj_rescan = false;", "ast_nodes": ["FUNC_DECL", "LOOP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "SWITCH", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 6], [1, 7], [3, 8], [4, 9], [6, 10], [1, 11], [6, 12], [10, 13], [6, 14], [12, 15], [12, 16], [12, 17], [12, 18], [16, 19], [16, 20], [17, 21], [16, 22], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 1], [7, 1], [8, 3], [9, 4], [10, 6], [11, 1], [12, 6], [13, 10], [14, 6], [15, 12], [16, 12], [17, 12], [18, 12], [19, 16], [20, 16], [21, 17], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "jj_save", "code": "  final private void jj_save(int index, int xla) {\n    JJCalls p = jj_2_rtns[index];\n    while (p.gen > jj_gen) {\n      if (p.next == null) { p = p.next = new JJCalls(); break; }\n      p = p.next;\n    }\n    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [7, 9], [1, 10], [9, 11], [1, 12], [10, 13], [10, 14], [13, 15], [10, 16], [16, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 7], [10, 1], [11, 9], [12, 1], [13, 10], [14, 10], [15, 13], [16, 10], [17, 16], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "QueryParser", "code": "  public QueryParser(String f, Analyzer a) {\n    this(new FastCharStream(new StringReader(\"\")));\n    analyzer = a;\n    field = f;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "QueryParser", "code": "  public QueryParser(CharStream stream) {\n    token_source = new QueryParserTokenManager(stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 22; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [9, 16], [10, 17], [1, 18], [11, 19], [2, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [16, 9], [17, 10], [18, 1], [19, 11], [20, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "QueryParser", "code": "  public QueryParser(QueryParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 22; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [10, 16], [1, 17], [11, 18], [2, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [16, 10], [17, 1], [18, 11], [19, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 1}
{"sample_id": "camel-1.6-2719", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/DelayPolicy.java", "language": "java", "name": "org.apache.camel.processor.DelayPolicy", "code": "public class DelayPolicy implements Cloneable, Serializable {\n\n    protected long delay = 1000L;\n\n    public DelayPolicy() {\n    }\n\n    @Override\n    public String toString() {\n        return \"DelayPolicy[delay=\" + delay + \"]\";\n    }\n\n    public DelayPolicy copy() {\n        try {\n            return (DelayPolicy)clone();\n        } catch (CloneNotSupportedException e) {\n            throw new RuntimeException(\"Could not clone: \" + e, e);\n        }\n    }\n\n\n    /**\n     * Sets the delay in milliseconds\n     */\n    public DelayPolicy delay(long delay) {\n        setDelay(delay);\n        return this;\n    }\n\n    public long getDelay() {\n        return delay;\n    }\n\n    /**\n     * Sets the delay in milliseconds\n     */\n    public void setDelay(long delay) {\n        this.delay = delay;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"DelayPolicy[delay=\" + delay + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "copy", "code": "    public DelayPolicy copy() {\n        try {\n            return (DelayPolicy)clone();\n        } catch (CloneNotSupportedException e) {\n            throw new RuntimeException(\"Could not clone: \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [3, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 3], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "delay", "code": "    public DelayPolicy delay(long delay) {\n        setDelay(delay);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDelay", "code": "    public long getDelay() {\n        return delay;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDelay", "code": "    public void setDelay(long delay) {\n        this.delay = delay;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DelayPolicy", "code": "    public DelayPolicy() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "jedit-3.2-3584", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "bsh/Primitive.java", "language": "java", "name": "bsh.Primitive", "code": "public class Primitive implements ParserConstants, java.io.Serializable\n{\n    // stored internally in java.lang. wrappers\n    private Object value;\n\n    private static class Special implements java.io.Serializable\n    {\n        private Special() { }\n\n        public static final Special NULL_VALUE = new Special();\n        public static final Special VOID_TYPE = new Special();\n    }\n\n    /*\n        NULL means \"no value\".\n        This ia a placeholder for primitive null value.\n    */\n    public static final Primitive NULL = new Primitive(Special.NULL_VALUE);\n\n    /**\n        VOID means \"no type\".\n        Strictly speaking, this makes no sense here.  But for practical\n        reasons we'll consider the lack of a type to be a special value.\n    */\n    public static final Primitive VOID = new Primitive(Special.VOID_TYPE);\n\n    // private to prevent invocation with param that isn't a primitive-wrapper\n    private Primitive(Object value)\n    {\n        if(value == null)\n            throw new InterpreterError(\n\t\t\t\t\"Use Primitve.NULL instead of Primitive(null)\");\n\n        this.value = value;\n    }\n\n    public Primitive(Number number) { this((Object)number); }\n\n    public Primitive(Boolean value) { this((Object)value); }\n    public Primitive(Byte value) { this((Object)value); }\n    public Primitive(Short value) { this((Object)value); }\n    public Primitive(Character value) { this((Object)value); }\n    public Primitive(Integer value) { this((Object)value); }\n    public Primitive(Long value) { this((Object)value); }\n    public Primitive(Float value) { this((Object)value); }\n    public Primitive(Double value) { this((Object)value); }\n\n    public Primitive(boolean value) { this(new Boolean(value)); }\n    public Primitive(byte value) { this(new Byte(value)); }\n    public Primitive(short value) { this(new Short(value)); }\n    public Primitive(char value) { this(new Character(value)); }\n    public Primitive(int value) { this(new Integer(value)); }\n    public Primitive(long value) { this(new Long(value)); }\n    public Primitive(float value) { this(new Float(value)); }\n    public Primitive(double value) { this(new Double(value)); }\n\n    public Object getValue()\n    {\n        if(value == Special.NULL_VALUE)\n            return null;\n        else if(value == Special.VOID_TYPE)\n                throw new InterpreterError(\"attempt to unwrap void type\");\n        else\n            return value;\n    }\n\n    public String toString()\n    {\n        if(value == Special.NULL_VALUE)\n            return \"null\";\n        else if(value == Special.VOID_TYPE)\n            return \"void\";\n        else\n            return value.toString();\n    }\n\n    public Class getType()\n    {\n        return getType(value);\n    }\n\n    private Class getType(Object o)\n    {\n        if(o instanceof Boolean)\n            return Boolean.TYPE;\n        else if(o instanceof Byte)\n            return Byte.TYPE;\n        else if(o instanceof Short)\n            return Short.TYPE;\n        else if(o instanceof Character)\n            return Character.TYPE;\n        else if(o instanceof Integer)\n            return Integer.TYPE;\n        else if(o instanceof Long)\n            return Long.TYPE;\n        else if(o instanceof Float)\n            return Float.TYPE;\n        else if(o instanceof Double)\n            return Double.TYPE;\n\n        return null;\n    }\n\n/*\n    public static Primitive binaryOperation(\n\t\tPrimitive p1, Primitive p2, int kind )\n        throws EvalError\n    {\n\t\treturn new Primitive( binaryOperation( p1, p2, kind ) );\n    }\n*/\n\n\t/**\n\t\tAllow primitive operations on wrapper types such as Integer and Boolean.\n\t\tThis is static so that it can be reached from wherever...\n\t*/\n    public static Object binaryOperation(\n\t\tObject obj1, Object obj2, int kind)\n        throws EvalError\n    {\n\t\t// special primitive types\n        if(obj1 == NULL || obj2 == NULL)\n            throw new EvalError(\n\t\t\t\t\"Null value or 'null' literal in binary operation\");\n        if(obj1 == VOID || obj2 == VOID)\n            throw new EvalError(\n\t\t\t\"Undefined variable, class, or 'void' literal in binary operation\");\n\n\t\t// keep track of the original types\n\t\tClass lhsOrgType = obj1.getClass();\n\t\tClass rhsOrgType = obj2.getClass();\n\n\t\t// Unwrap primitives\n        if(obj1 instanceof Primitive)\n            obj1 = ((Primitive)obj1).getValue();\n        if(obj2 instanceof Primitive)\n            obj2 = ((Primitive)obj2).getValue();\n\n        Object[] operands = promotePrimitives(obj1, obj2);\n        Object lhs = operands[0];\n        Object rhs = operands[1];\n\n        if(lhs.getClass() != rhs.getClass())\n            throw new EvalError(\"type mismatch in operator.  \" \n\t\t\t+ lhs.getClass() + \" cannot be used with \" + rhs.getClass() );\n\n\t\tObject result;\n\t\ttry {\n\t\t\tresult = binaryOperationImpl( lhs, rhs, kind );\n\t\t} catch ( ArithmeticException e ) {\n\t\t\tthrow new TargetError(\"Arithemetic Exception in binary op\", e);\n\t\t}\n\n\t\t// If both original args were Primitives return a Primitive result\n\t\t// else it was mixed (wrapper/primitive) return the wrapper type\n\t\tif ( lhsOrgType == Primitive.class && rhsOrgType == Primitive.class )\n\t\t\treturn new Primitive( result );\n\t\telse\n\t\t\treturn result;\n    }\n\n    static Object binaryOperationImpl( Object lhs, Object rhs, int kind )\n        throws EvalError\n\t{\n        if(lhs instanceof Boolean)\n            return booleanBinaryOperation((Boolean)lhs, (Boolean)rhs, kind);\n        else if(lhs instanceof Integer)\n            return intBinaryOperation( (Integer)lhs, (Integer)rhs, kind );\n        else if(lhs instanceof Long)\n            return longBinaryOperation((Long)lhs, (Long)rhs, kind);\n        else if(lhs instanceof Float)\n            return floatBinaryOperation((Float)lhs, (Float)rhs, kind);\n        else if(lhs instanceof Double)\n            return doubleBinaryOperation( (Double)lhs, (Double)rhs, kind);\n        else\n            throw new EvalError(\"Invalid types in binary operator\" );\n\t}\n\n\n    static Boolean booleanBinaryOperation(Boolean B1, Boolean B2, int kind)\n        throws EvalError\n    {\n        boolean lhs = B1.booleanValue();\n        boolean rhs = B2.booleanValue();\n\n        switch(kind)\n        {\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            case BOOL_OR:\n            case BOOL_ORX:\n                return new Boolean( lhs || rhs );\n\n            case BOOL_AND:\n            case BOOL_ANDX:\n                return new Boolean( lhs && rhs );\n\n            default:\n                throw new InterpreterError(\"unimplemented binary operator\");\n        }\n    }\n\n    // returns Object covering both Long and Boolean return types\n    static Object longBinaryOperation(Long L1, Long L2, int kind)\n    {\n        long lhs = L1.longValue();\n        long rhs = L2.longValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Long(lhs + rhs);\n\n            case MINUS:\n                return new Long(lhs - rhs);\n\n            case STAR:\n                return new Long(lhs * rhs);\n\n            case SLASH:\n                return new Long(lhs / rhs);\n\n            case MOD:\n                return new Long(lhs % rhs);\n\n            // bitwise\n            case LSHIFT:\n            case LSHIFTX:\n                return new Long(lhs << rhs);\n\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n                return new Long(lhs >> rhs);\n\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                return new Long(lhs >>> rhs);\n\n            case BIT_AND:\n            case BIT_ANDX:\n                return new Long(lhs & rhs);\n\n            case BIT_OR:\n            case BIT_ORX:\n                return new Long(lhs | rhs);\n\n            case XOR:\n                return new Long(lhs ^ rhs);\n\n            default:\n                throw new InterpreterError(\"Unimplemented binary long operator\");\n        }\n    }\n\n    // returns Object covering both Integer and Boolean return types\n    static Object intBinaryOperation(Integer I1, Integer I2, int kind)\n    {\n        int lhs = I1.intValue();\n        int rhs = I2.intValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Integer(lhs + rhs);\n\n            case MINUS:\n                return new Integer(lhs - rhs);\n\n            case STAR:\n                return new Integer(lhs * rhs);\n\n            case SLASH:\n                return new Integer(lhs / rhs);\n\n            case MOD:\n                return new Integer(lhs % rhs);\n\n            // bitwise\n            case LSHIFT:\n            case LSHIFTX:\n                return new Integer(lhs << rhs);\n\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n                return new Integer(lhs >> rhs);\n\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                return new Integer(lhs >>> rhs);\n\n            case BIT_AND:\n            case BIT_ANDX:\n                return new Integer(lhs & rhs);\n\n            case BIT_OR:\n            case BIT_ORX:\n                return new Integer(lhs | rhs);\n\n            case XOR:\n                return new Integer(lhs ^ rhs);\n\n            default:\n                throw new InterpreterError(\"Unimplemented binary integer operator\");\n        }\n    }\n\n    // returns Object covering both Double and Boolean return types\n    static Object doubleBinaryOperation(Double D1, Double D2, int kind)\n        throws EvalError\n    {\n        double lhs = D1.doubleValue();\n        double rhs = D2.doubleValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Double(lhs + rhs);\n\n            case MINUS:\n                return new Double(lhs - rhs);\n\n            case STAR:\n                return new Double(lhs * rhs);\n\n            case SLASH:\n                return new Double(lhs / rhs);\n\n            case MOD:\n                return new Double(lhs % rhs);\n\n            // can't shift floating-point values\n            case LSHIFT:\n            case LSHIFTX:\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                throw new EvalError(\"Can't shift doubles\");\n\n            default:\n                throw new InterpreterError(\"Unimplemented binary double operator\");\n        }\n    }\n    // returns Object covering both Long and Boolean return types\n    static Object floatBinaryOperation(Float F1, Float F2, int kind)\n        throws EvalError\n    {\n        float lhs = F1.floatValue();\n        float rhs = F2.floatValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Float(lhs + rhs);\n\n            case MINUS:\n                return new Float(lhs - rhs);\n\n            case STAR:\n                return new Float(lhs * rhs);\n\n            case SLASH:\n                return new Float(lhs / rhs);\n\n            case MOD:\n                return new Float(lhs % rhs);\n\n            // can't shift floats\n            case LSHIFT:\n            case LSHIFTX:\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                throw new EvalError(\"Can't shift floats \");\n\n            default:\n                throw new InterpreterError(\"Unimplemented binary float operator\");\n        }\n    }\n\n\t/**\n\t\tPromote primitive wrapper type to to Integer wrapper type\n\t\tCan we use the castPrimitive() (in BSHCastExpression) for this?\n\t*/\n    static Object promoteToInteger(Object primitive)\n    {\n        if(primitive instanceof Character)\n            return new Integer(((Character)primitive).charValue());\n        else if((primitive instanceof Byte) || (primitive instanceof Short))\n            return new Integer(((Number)primitive).intValue());\n\n        return primitive;\n    }\n\n\t/**\n\t\tPromote the pair of primitives to the maximum type of the two.\n\t\te.g. [int,long]->[long,long]\n\t*/\n    static Object[] promotePrimitives(Object lhs, Object rhs)\n    {\n        lhs = promoteToInteger(lhs);\n        rhs = promoteToInteger(rhs);\n\n        if((lhs instanceof Number) && (rhs instanceof Number))\n        {\n            Number lnum = (Number)lhs;\n            Number rnum = (Number)rhs;\n\n            boolean b;\n\n            if((b = (lnum instanceof Double)) || (rnum instanceof Double))\n            {\n                if(b)\n                    rhs = new Double(rnum.doubleValue());\n                else\n                    lhs = new Double(lnum.doubleValue());\n            }\n            else if((b = (lnum instanceof Float)) || (rnum instanceof Float))\n            {\n                if(b)\n                    rhs = new Float(rnum.floatValue());\n                else\n                    lhs = new Float(lnum.floatValue());\n            }\n            else if((b = (lnum instanceof Long)) || (rnum instanceof Long))\n            {\n                if(b)\n                    rhs = new Long(rnum.longValue());\n                else\n                    lhs = new Long(lnum.longValue());\n            }\n        }\n\n        return new Object[] { lhs, rhs };\n    }\n\n    public static Primitive unaryOperation(Primitive val, int kind)\n        throws EvalError\n    {\n        if(val == NULL)\n            throw new EvalError(\"illegal use of null object or 'null' literal\");\n        if(val == VOID)\n            throw new EvalError(\"illegal use of undefined object or 'void' literal\");\n\n        Class operandType = val.getType();\n        Object operand = promoteToInteger(val.getValue());\n\n        if(operand instanceof Boolean)\n            return new Primitive(booleanUnaryOperation((Boolean)operand, kind));\n        else if(operand instanceof Integer)\n        {\n            int result = intUnaryOperation((Integer)operand, kind);\n\n            // ++ and -- must be cast back the original type\n            if(kind == INCR || kind == DECR)\n            {\n                if(operandType == Byte.TYPE)\n                    return new Primitive((byte)result);\n                if(operandType == Short.TYPE)\n                    return new Primitive((short)result);\n                if(operandType == Character.TYPE)\n                    return new Primitive((char)result);\n            }\n\n            return new Primitive(result);\n        }\n        else if(operand instanceof Long)\n            return new Primitive(longUnaryOperation((Long)operand, kind));\n        else if(operand instanceof Float)\n            return new Primitive(floatUnaryOperation((Float)operand, kind));\n        else if(operand instanceof Double)\n            return new Primitive(doubleUnaryOperation((Double)operand, kind));\n        else\n            throw new InterpreterError(\"An error occurred.  Please call technical support.\");\n    }\n\n    static boolean booleanUnaryOperation(Boolean B, int kind) throws EvalError\n    {\n        boolean operand = B.booleanValue();\n        switch(kind)\n        {\n            case BANG:\n                return !operand;\n\n            default:\n                throw new EvalError(\"Operator inappropriate for boolean\");\n        }\n    }\n\n    static int intUnaryOperation(Integer I, int kind)\n    {\n        int operand = I.intValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n\n            case MINUS:\n                return -operand;\n\n            case TILDE:\n                return ~operand;\n\n            case INCR:\n                return operand + 1;\n\n            case DECR:\n                return operand - 1;\n\n            default:\n                throw new InterpreterError(\"bad integer unaryOperation\");\n        }\n    }\n\n    static long longUnaryOperation(Long L, int kind)\n    {\n        long operand = L.longValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n\n            case MINUS:\n                return -operand;\n\n            case TILDE:\n                return ~operand;\n\n            case INCR:\n                return operand + 1;\n\n            case DECR:\n                return operand - 1;\n\n            default:\n                throw new InterpreterError(\"bad long unaryOperation\");\n        }\n    }\n\n    static float floatUnaryOperation(Float F, int kind)\n    {\n        float operand = F.floatValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n\n            case MINUS:\n                return -operand;\n\n            default:\n                throw new InterpreterError(\"bad float unaryOperation\");\n        }\n    }\n\n    static double doubleUnaryOperation(Double D, int kind)\n    {\n        double operand = D.doubleValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n\n            case MINUS:\n                return -operand;\n\n            default:\n                throw new InterpreterError(\"bad double unaryOperation\");\n        }\n    }\n\n    public int intValue() throws EvalError\n    {\n        if(value instanceof Number)\n            return((Number)value).intValue();\n        else\n            throw new EvalError(\"Primitive not a number\");\n    }\n\n    public boolean booleanValue() throws EvalError\n    {\n        if(value instanceof Boolean)\n            return((Boolean)value).booleanValue();\n        else\n            throw new EvalError(\"Primitive not a boolean\");\n    }\n\n\t/**\n\t\tAre we a numeric type:\n\t\ti.e. not boolean, null, or void\n\t\t(but including char)\n\t*/\n\tpublic boolean isNumber() {\n\t\treturn ( !(value instanceof Boolean) \n\t\t\t&& !(this == NULL) && !(this == VOID) );\n\t}\n\n    public Number numberValue() throws EvalError\n    {\n\t\tObject value = this.value;\n\n\t\t// Promote character to Number type for these purposes\n\t\tif (value instanceof Character)\n\t\t\tvalue = new Integer(((Character)value).charValue());\n\n        if (value instanceof Number)\n            return (Number)value;\n        else\n            throw new EvalError(\"Primitive not a number\");\n    }\n\n\tpublic boolean equals( Object obj ) {\n\t\tif ( obj instanceof Primitive )\n\t\t\treturn ((Primitive)obj).value.equals( this.value );\n\t\telse\n\t\t\treturn obj.equals( this.value );\n\t}\n\n\t/**\n\t\tUnwrap primitive values and map voids to nulls.\n\t\tNormal (non Primitive) types remain unchanged.\n\t\t@param obj object type which may be bsh.Primitive\n\t\t@return corresponding \"normal\" Java type, \"unwrapping\" \n\t\t\tany bsh.Primitive types to their wrapper types.\n\t*/\n\tpublic static Object unwrap( Object obj ) {\n\t\tif ( obj == null )\n\t\t\treturn null;\n\n        // map voids to nulls for the outside world\n        if(obj == Primitive.VOID)\n            return null;\n\n        // unwrap primitives\n        if(obj instanceof Primitive)\n            return((Primitive)obj).getValue();\n        else\n            return obj;", "functions": [{"function_name": "getValue", "code": "    public Object getValue()\n    {\n        if(value == Special.NULL_VALUE)\n            return null;\n        else if(value == Special.VOID_TYPE)\n                throw new InterpreterError(\"attempt to unwrap void type\");\n        else\n            return value;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "RETURN", "BINARY_OP", "RETURN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [2, 7], [3, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 2], [8, 3], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        if(value == Special.NULL_VALUE)\n            return \"null\";\n        else if(value == Special.VOID_TYPE)\n            return \"void\";\n        else\n            return value.toString();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [2, 7], [3, 8], [5, 9], [6, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 2], [8, 3], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getType", "code": "    public Class getType()\n    {\n        return getType(value);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "    private Class getType(Object o)\n    {\n        if(o instanceof Boolean)\n            return Boolean.TYPE;\n        else if(o instanceof Byte)\n            return Byte.TYPE;\n        else if(o instanceof Short)\n            return Short.TYPE;\n        else if(o instanceof Character)\n            return Character.TYPE;\n        else if(o instanceof Integer)\n            return Integer.TYPE;\n        else if(o instanceof Long)\n            return Long.TYPE;\n        else if(o instanceof Float)\n            return Float.TYPE;\n        else if(o instanceof Double)\n            return Double.TYPE;\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [5, 10], [8, 11], [8, 12], [8, 13], [11, 14], [11, 15], [11, 16], [14, 17], [14, 18], [14, 19], [17, 20], [17, 21], [17, 22], [20, 23], [20, 24], [20, 25], [23, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 5], [11, 8], [12, 8], [13, 8], [14, 11], [15, 11], [16, 11], [17, 14], [18, 14], [19, 14], [20, 17], [21, 17], [22, 17], [23, 20], [24, 20], [25, 20], [26, 23], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "binaryOperation", "code": "    public static Object binaryOperation(\n\t\tObject obj1, Object obj2, int kind)\n        throws EvalError\n    {\n\t\t// special primitive types\n        if(obj1 == NULL || obj2 == NULL)\n            throw new EvalError(\n\t\t\t\t\"Null value or 'null' literal in binary operation\");\n        if(obj1 == VOID || obj2 == VOID)\n            throw new EvalError(\n\t\t\t\"Undefined variable, class, or 'void' literal in binary operation\");\n\n\t\t// keep track of the original types\n\t\tClass lhsOrgType = obj1.getClass();\n\t\tClass rhsOrgType = obj2.getClass();\n\n\t\t// Unwrap primitives\n        if(obj1 instanceof Primitive)\n            obj1 = ((Primitive)obj1).getValue();\n        if(obj2 instanceof Primitive)\n            obj2 = ((Primitive)obj2).getValue();\n\n        Object[] operands = promotePrimitives(obj1, obj2);\n        Object lhs = operands[0];\n        Object rhs = operands[1];\n\n        if(lhs.getClass() != rhs.getClass())\n            throw new EvalError(\"type mismatch in operator.  \" \n\t\t\t+ lhs.getClass() + \" cannot be used with \" + rhs.getClass() );\n\n\t\tObject result;\n\t\ttry {\n\t\t\tresult = binaryOperationImpl( lhs, rhs, kind );\n\t\t} catch ( ArithmeticException e ) {\n\t\t\tthrow new TargetError(\"Arithemetic Exception in binary op\", e);\n\t\t}\n\n\t\t// If both original args were Primitives return a Primitive result\n\t\t// else it was mixed (wrapper/primitive) return the wrapper type\n\t\tif ( lhsOrgType == Primitive.class && rhsOrgType == Primitive.class )\n\t\t\treturn new Primitive( result );\n\t\telse\n\t\t\treturn result;", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CATCH", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [1, 18], [1, 19], [2, 20], [4, 21], [4, 22], [8, 23], [9, 24], [12, 25], [12, 26], [13, 27], [13, 28], [18, 29], [19, 30], [19, 31], [20, 32], [2, 33], [21, 34], [22, 35], [22, 36], [7, 37], [8, 38], [9, 39], [10, 40], [11, 41], [25, 42], [26, 43], [26, 44], [27, 45], [28, 46], [28, 47], [32, 48], [33, 49], [34, 50], [42, 51], [45, 52], [48, 53], [50, 54], [50, 55], [5, 56], [6, 57], [55, 58], [55, 59], [59, 60], [59, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 1], [19, 1], [20, 2], [21, 4], [22, 4], [23, 8], [24, 9], [25, 12], [26, 12], [27, 13], [28, 13], [29, 18], [30, 19], [31, 19], [32, 20], [33, 2], [34, 21], [35, 22], [36, 22], [37, 7], [38, 8], [39, 9], [40, 10], [41, 11], [42, 25], [43, 26], [44, 26], [45, 27], [46, 28], [47, 28], [48, 32], [49, 33], [50, 34], [51, 42], [52, 45], [53, 48], [54, 50], [55, 50], [56, 5], [57, 6], [58, 55], [59, 55], [60, 59], [61, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "binaryOperationImpl", "code": "    static Object binaryOperationImpl( Object lhs, Object rhs, int kind )\n        throws EvalError\n\t{\n        if(lhs instanceof Boolean)\n            return booleanBinaryOperation((Boolean)lhs, (Boolean)rhs, kind);\n        else if(lhs instanceof Integer)\n            return intBinaryOperation( (Integer)lhs, (Integer)rhs, kind );\n        else if(lhs instanceof Long)\n            return longBinaryOperation((Long)lhs, (Long)rhs, kind);\n        else if(lhs instanceof Float)\n            return floatBinaryOperation((Float)lhs, (Float)rhs, kind);\n        else if(lhs instanceof Double)\n            return doubleBinaryOperation( (Double)lhs, (Double)rhs, kind);\n        else\n            throw new EvalError(\"Invalid types in binary operator\" );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [5, 10], [6, 11], [8, 12], [8, 13], [8, 14], [9, 15], [12, 16], [12, 17], [12, 18], [13, 19], [16, 20], [16, 21], [16, 22], [17, 23], [20, 24], [21, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 5], [11, 6], [12, 8], [13, 8], [14, 8], [15, 9], [16, 12], [17, 12], [18, 12], [19, 13], [20, 16], [21, 16], [22, 16], [23, 17], [24, 20], [25, 21], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "booleanBinaryOperation", "code": "    static Boolean booleanBinaryOperation(Boolean B1, Boolean B2, int kind)\n        throws EvalError\n    {\n        boolean lhs = B1.booleanValue();\n        boolean rhs = B2.booleanValue();\n\n        switch(kind)\n        {\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            case BOOL_OR:\n            case BOOL_ORX:\n                return new Boolean( lhs || rhs );\n\n            case BOOL_AND:\n            case BOOL_ANDX:\n                return new Boolean( lhs && rhs );\n\n            default:\n                throw new InterpreterError(\"unimplemented binary operator\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [3, 13], [7, 14], [8, 15], [9, 16], [10, 17], [11, 18], [14, 19], [15, 20], [16, 21], [17, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 3], [14, 7], [15, 8], [16, 9], [17, 10], [18, 11], [19, 14], [20, 15], [21, 16], [22, 17], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "longBinaryOperation", "code": "    static Object longBinaryOperation(Long L1, Long L2, int kind)\n    {\n        long lhs = L1.longValue();\n        long rhs = L2.longValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Long(lhs + rhs);\n\n            case MINUS:\n                return new Long(lhs - rhs);\n\n            case STAR:\n                return new Long(lhs * rhs);\n\n            case SLASH:\n                return new Long(lhs / rhs);\n\n            case MOD:\n                return new Long(lhs % rhs);\n\n            // bitwise\n            case LSHIFT:\n            case LSHIFTX:\n                return new Long(lhs << rhs);\n\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n                return new Long(lhs >> rhs);\n\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                return new Long(lhs >>> rhs);\n\n            case BIT_AND:\n            case BIT_ANDX:\n                return new Long(lhs & rhs);\n\n            case BIT_OR:\n            case BIT_ORX:\n                return new Long(lhs | rhs);\n\n            case XOR:\n                return new Long(lhs ^ rhs);\n\n            default:\n                throw new InterpreterError(\"Unimplemented binary long operator\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [2, 25], [3, 26], [7, 27], [8, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [14, 34], [15, 35], [16, 36], [17, 37], [18, 38], [19, 39], [20, 40], [21, 41], [22, 42], [23, 43], [24, 44], [27, 45], [28, 46], [29, 47], [30, 48], [31, 49], [32, 50], [33, 51], [34, 52], [35, 53], [36, 54], [37, 55], [38, 56], [39, 57], [40, 58], [41, 59], [42, 60], [43, 61], [44, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 2], [26, 3], [27, 7], [28, 8], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 14], [35, 15], [36, 16], [37, 17], [38, 18], [39, 19], [40, 20], [41, 21], [42, 22], [43, 23], [44, 24], [45, 27], [46, 28], [47, 29], [48, 30], [49, 31], [50, 32], [51, 33], [52, 34], [53, 35], [54, 36], [55, 37], [56, 38], [57, 39], [58, 40], [59, 41], [60, 42], [61, 43], [62, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "intBinaryOperation", "code": "    static Object intBinaryOperation(Integer I1, Integer I2, int kind)\n    {\n        int lhs = I1.intValue();\n        int rhs = I2.intValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Integer(lhs + rhs);\n\n            case MINUS:\n                return new Integer(lhs - rhs);\n\n            case STAR:\n                return new Integer(lhs * rhs);\n\n            case SLASH:\n                return new Integer(lhs / rhs);\n\n            case MOD:\n                return new Integer(lhs % rhs);\n\n            // bitwise\n            case LSHIFT:\n            case LSHIFTX:\n                return new Integer(lhs << rhs);\n\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n                return new Integer(lhs >> rhs);\n\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                return new Integer(lhs >>> rhs);\n\n            case BIT_AND:\n            case BIT_ANDX:\n                return new Integer(lhs & rhs);\n\n            case BIT_OR:\n            case BIT_ORX:\n                return new Integer(lhs | rhs);\n\n            case XOR:\n                return new Integer(lhs ^ rhs);\n\n            default:\n                throw new InterpreterError(\"Unimplemented binary integer operator\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [2, 25], [3, 26], [7, 27], [8, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [14, 34], [15, 35], [16, 36], [17, 37], [18, 38], [19, 39], [20, 40], [21, 41], [22, 42], [23, 43], [24, 44], [27, 45], [28, 46], [29, 47], [30, 48], [31, 49], [32, 50], [33, 51], [34, 52], [35, 53], [36, 54], [37, 55], [38, 56], [39, 57], [40, 58], [41, 59], [42, 60], [43, 61], [44, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 2], [26, 3], [27, 7], [28, 8], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 14], [35, 15], [36, 16], [37, 17], [38, 18], [39, 19], [40, 20], [41, 21], [42, 22], [43, 23], [44, 24], [45, 27], [46, 28], [47, 29], [48, 30], [49, 31], [50, 32], [51, 33], [52, 34], [53, 35], [54, 36], [55, 37], [56, 38], [57, 39], [58, 40], [59, 41], [60, 42], [61, 43], [62, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "doubleBinaryOperation", "code": "    static Object doubleBinaryOperation(Double D1, Double D2, int kind)\n        throws EvalError\n    {\n        double lhs = D1.doubleValue();\n        double rhs = D2.doubleValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Double(lhs + rhs);\n\n            case MINUS:\n                return new Double(lhs - rhs);\n\n            case STAR:\n                return new Double(lhs * rhs);\n\n            case SLASH:\n                return new Double(lhs / rhs);\n\n            case MOD:\n                return new Double(lhs % rhs);\n\n            // can't shift floating-point values\n            case LSHIFT:\n            case LSHIFTX:\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                throw new EvalError(\"Can't shift doubles\");\n\n            default:\n                throw new InterpreterError(\"Unimplemented binary double operator\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [2, 20], [3, 21], [7, 22], [8, 23], [9, 24], [10, 25], [11, 26], [12, 27], [13, 28], [14, 29], [15, 30], [16, 31], [17, 32], [18, 33], [19, 34], [22, 35], [23, 36], [24, 37], [25, 38], [26, 39], [27, 40], [28, 41], [29, 42], [30, 43], [31, 44], [32, 45], [33, 46], [34, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 2], [21, 3], [22, 7], [23, 8], [24, 9], [25, 10], [26, 11], [27, 12], [28, 13], [29, 14], [30, 15], [31, 16], [32, 17], [33, 18], [34, 19], [35, 22], [36, 23], [37, 24], [38, 25], [39, 26], [40, 27], [41, 28], [42, 29], [43, 30], [44, 31], [45, 32], [46, 33], [47, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "floatBinaryOperation", "code": "    static Object floatBinaryOperation(Float F1, Float F2, int kind)\n        throws EvalError\n    {\n        float lhs = F1.floatValue();\n        float rhs = F2.floatValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Float(lhs + rhs);\n\n            case MINUS:\n                return new Float(lhs - rhs);\n\n            case STAR:\n                return new Float(lhs * rhs);\n\n            case SLASH:\n                return new Float(lhs / rhs);\n\n            case MOD:\n                return new Float(lhs % rhs);\n\n            // can't shift floats\n            case LSHIFT:\n            case LSHIFTX:\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                throw new EvalError(\"Can't shift floats \");\n\n            default:\n                throw new InterpreterError(\"Unimplemented binary float operator\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [2, 20], [3, 21], [7, 22], [8, 23], [9, 24], [10, 25], [11, 26], [12, 27], [13, 28], [14, 29], [15, 30], [16, 31], [17, 32], [18, 33], [19, 34], [22, 35], [23, 36], [24, 37], [25, 38], [26, 39], [27, 40], [28, 41], [29, 42], [30, 43], [31, 44], [32, 45], [33, 46], [34, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 2], [21, 3], [22, 7], [23, 8], [24, 9], [25, 10], [26, 11], [27, 12], [28, 13], [29, 14], [30, 15], [31, 16], [32, 17], [33, 18], [34, 19], [35, 22], [36, 23], [37, 24], [38, 25], [39, 26], [40, 27], [41, 28], [42, 29], [43, 30], [44, 31], [45, 32], [46, 33], [47, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "promoteToInteger", "code": "    static Object promoteToInteger(Object primitive)\n    {\n        if(primitive instanceof Character)\n            return new Integer(((Character)primitive).charValue());\n        else if((primitive instanceof Byte) || (primitive instanceof Short))\n            return new Integer(((Number)primitive).intValue());\n\n        return primitive;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [4, 8], [5, 9], [7, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 4], [9, 5], [10, 7], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "promotePrimitives", "code": "    static Object[] promotePrimitives(Object lhs, Object rhs)\n    {\n        lhs = promoteToInteger(lhs);\n        rhs = promoteToInteger(rhs);\n\n        if((lhs instanceof Number) && (rhs instanceof Number))\n        {\n            Number lnum = (Number)lhs;\n            Number rnum = (Number)rhs;\n\n            boolean b;\n\n            if((b = (lnum instanceof Double)) || (rnum instanceof Double))\n            {\n                if(b)\n                    rhs = new Double(rnum.doubleValue());\n                else\n                    lhs = new Double(lnum.doubleValue());\n            }\n            else if((b = (lnum instanceof Float)) || (rnum instanceof Float))\n            {\n                if(b)\n                    rhs = new Float(rnum.floatValue());\n                else\n                    lhs = new Float(lnum.floatValue());\n            }\n            else if((b = (lnum instanceof Long)) || (rnum instanceof Long))\n            {\n                if(b)\n                    rhs = new Long(rnum.longValue());\n                else\n                    lhs = new Long(lnum.longValue());\n            }\n        }\n\n        return new Object[] { lhs, rhs };", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [5, 12], [5, 13], [6, 14], [7, 15], [8, 16], [8, 17], [16, 18], [16, 19], [8, 20], [17, 21], [17, 22], [18, 23], [16, 24], [19, 25], [19, 26], [22, 27], [18, 28], [23, 29], [23, 30], [26, 31], [20, 32], [20, 33], [30, 34], [24, 35], [24, 36], [32, 37], [33, 38], [28, 39], [28, 40], [35, 41], [36, 42], [37, 43], [38, 44], [39, 45], [40, 46], [41, 47], [42, 48], [45, 49], [46, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 5], [13, 5], [14, 6], [15, 7], [16, 8], [17, 8], [18, 16], [19, 16], [20, 8], [21, 17], [22, 17], [23, 18], [24, 16], [25, 19], [26, 19], [27, 22], [28, 18], [29, 23], [30, 23], [31, 26], [32, 20], [33, 20], [34, 30], [35, 24], [36, 24], [37, 32], [38, 33], [39, 28], [40, 28], [41, 35], [42, 36], [43, 37], [44, 38], [45, 39], [46, 40], [47, 41], [48, 42], [49, 45], [50, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "unaryOperation", "code": "    public static Primitive unaryOperation(Primitive val, int kind)\n        throws EvalError\n    {\n        if(val == NULL)\n            throw new EvalError(\"illegal use of null object or 'null' literal\");\n        if(val == VOID)\n            throw new EvalError(\"illegal use of undefined object or 'void' literal\");\n\n        Class operandType = val.getType();\n        Object operand = promoteToInteger(val.getValue());\n\n        if(operand instanceof Boolean)\n            return new Primitive(booleanUnaryOperation((Boolean)operand, kind));\n        else if(operand instanceof Integer)\n        {\n            int result = intUnaryOperation((Integer)operand, kind);\n\n            // ++ and -- must be cast back the original type\n            if(kind == INCR || kind == DECR)\n            {\n                if(operandType == Byte.TYPE)\n                    return new Primitive((byte)result);\n                if(operandType == Short.TYPE)\n                    return new Primitive((short)result);\n                if(operandType == Character.TYPE)\n                    return new Primitive((char)result);\n            }\n\n            return new Primitive(result);\n        }\n        else if(operand instanceof Long)\n            return new Primitive(longUnaryOperation((Long)operand, kind));\n        else if(operand instanceof Float)\n            return new Primitive(floatUnaryOperation((Float)operand, kind));\n        else if(operand instanceof Double)\n            return new Primitive(doubleUnaryOperation((Double)operand, kind));\n        else\n            throw new InterpreterError(\"An error occurred.  Please call technical support.\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "CALL", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [4, 11], [4, 12], [5, 13], [5, 14], [8, 15], [8, 16], [9, 17], [2, 18], [3, 19], [11, 20], [13, 21], [15, 22], [15, 23], [15, 24], [8, 25], [8, 26], [8, 27], [17, 28], [18, 29], [20, 30], [21, 31], [22, 32], [22, 33], [22, 34], [23, 35], [25, 36], [26, 37], [32, 38], [32, 39], [32, 40], [33, 41], [35, 42], [26, 43], [26, 44], [26, 45], [37, 46], [37, 47], [27, 48], [38, 49], [39, 50], [41, 51], [43, 52], [43, 53], [44, 54], [44, 55], [45, 56], [45, 57], [49, 58], [50, 59], [52, 60], [54, 61], [56, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 4], [12, 4], [13, 5], [14, 5], [15, 8], [16, 8], [17, 9], [18, 2], [19, 3], [20, 11], [21, 13], [22, 15], [23, 15], [24, 15], [25, 8], [26, 8], [27, 8], [28, 17], [29, 18], [30, 20], [31, 21], [32, 22], [33, 22], [34, 22], [35, 23], [36, 25], [37, 26], [38, 32], [39, 32], [40, 32], [41, 33], [42, 35], [43, 26], [44, 26], [45, 26], [46, 37], [47, 37], [48, 27], [49, 38], [50, 39], [51, 41], [52, 43], [53, 43], [54, 44], [55, 44], [56, 45], [57, 45], [58, 49], [59, 50], [60, 52], [61, 54], [62, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "booleanUnaryOperation", "code": "    static boolean booleanUnaryOperation(Boolean B, int kind) throws EvalError\n    {\n        boolean operand = B.booleanValue();\n        switch(kind)\n        {\n            case BANG:\n                return !operand;\n\n            default:\n                throw new EvalError(\"Operator inappropriate for boolean\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "intUnaryOperation", "code": "    static int intUnaryOperation(Integer I, int kind)\n    {\n        int operand = I.intValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n\n            case MINUS:\n                return -operand;\n\n            case TILDE:\n                return ~operand;\n\n            case INCR:\n                return operand + 1;\n\n            case DECR:\n                return operand - 1;\n\n            default:\n                throw new InterpreterError(\"bad integer unaryOperation\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [12, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 12], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "longUnaryOperation", "code": "    static long longUnaryOperation(Long L, int kind)\n    {\n        long operand = L.longValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n\n            case MINUS:\n                return -operand;\n\n            case TILDE:\n                return ~operand;\n\n            case INCR:\n                return operand + 1;\n\n            case DECR:\n                return operand - 1;\n\n            default:\n                throw new InterpreterError(\"bad long unaryOperation\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [12, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 12], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "floatUnaryOperation", "code": "    static float floatUnaryOperation(Float F, int kind)\n    {\n        float operand = F.floatValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n\n            case MINUS:\n                return -operand;\n\n            default:\n                throw new InterpreterError(\"bad float unaryOperation\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [5, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "doubleUnaryOperation", "code": "    static double doubleUnaryOperation(Double D, int kind)\n    {\n        double operand = D.doubleValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n\n            case MINUS:\n                return -operand;\n\n            default:\n                throw new InterpreterError(\"bad double unaryOperation\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [5, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "intValue", "code": "    public int intValue() throws EvalError\n    {\n        if(value instanceof Number)\n            return((Number)value).intValue();\n        else\n            throw new EvalError(\"Primitive not a number\");", "ast_nodes": ["FUNC_DECL", "IF", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "booleanValue", "code": "    public boolean booleanValue() throws EvalError\n    {\n        if(value instanceof Boolean)\n            return((Boolean)value).booleanValue();\n        else\n            throw new EvalError(\"Primitive not a boolean\");", "ast_nodes": ["FUNC_DECL", "IF", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isNumber", "code": "\tpublic boolean isNumber() {\n\t\treturn ( !(value instanceof Boolean) \n\t\t\t&& !(this == NULL) && !(this == VOID) );", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "numberValue", "code": "    public Number numberValue() throws EvalError\n    {\n\t\tObject value = this.value;\n\n\t\t// Promote character to Number type for these purposes\n\t\tif (value instanceof Character)\n\t\t\tvalue = new Integer(((Character)value).charValue());\n\n        if (value instanceof Number)\n            return (Number)value;\n        else\n            throw new EvalError(\"Primitive not a number\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "THROW_RAISE", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [4, 8], [2, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 4], [9, 2], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "equals", "code": "\tpublic boolean equals( Object obj ) {\n\t\tif ( obj instanceof Primitive )\n\t\t\treturn ((Primitive)obj).value.equals( this.value );\n\t\telse\n\t\t\treturn obj.equals( this.value );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "unwrap", "code": "\tpublic static Object unwrap( Object obj ) {\n\t\tif ( obj == null )\n\t\t\treturn null;\n\n        // map voids to nulls for the outside world\n        if(obj == Primitive.VOID)\n            return null;\n\n        // unwrap primitives\n        if(obj instanceof Primitive)\n            return((Primitive)obj).getValue();\n        else\n            return obj;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [2, 9], [3, 10], [3, 11], [8, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 2], [10, 3], [11, 3], [12, 8], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "Primitive", "code": "    private Primitive(Object value)\n    {\n        if(value == null)\n            throw new InterpreterError(\n\t\t\t\t\"Use Primitve.NULL instead of Primitive(null)\");\n\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "Primitive", "code": "    public Primitive(Number number) { this((Object)number); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Primitive", "code": "    public Primitive(Boolean value) { this((Object)value); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Primitive", "code": "    public Primitive(Byte value) { this((Object)value); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Primitive", "code": "    public Primitive(Short value) { this((Object)value); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Primitive", "code": "    public Primitive(Character value) { this((Object)value); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Primitive", "code": "    public Primitive(Integer value) { this((Object)value); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Primitive", "code": "    public Primitive(Long value) { this((Object)value); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Primitive", "code": "    public Primitive(Float value) { this((Object)value); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Primitive", "code": "    public Primitive(Double value) { this((Object)value); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Primitive", "code": "    public Primitive(boolean value) { this(new Boolean(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(byte value) { this(new Byte(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(short value) { this(new Short(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(char value) { this(new Character(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(int value) { this(new Integer(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(long value) { this(new Long(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(float value) { this(new Float(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(double value) { this(new Double(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-1.5-5289", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java", "language": "java", "name": "org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate", "code": "public class ValueRecordsAggregate\n    extends Record\n{\n    public final static short sid       = -1000;\n    int                       firstcell = -1;\n    int                       lastcell  = -1;\n    TreeMap                   records   = null;\n    int                       size      = 0;\n\n    /** Creates a new instance of ValueRecordsAggregate */\n\n    public ValueRecordsAggregate()\n    {\n        records = new TreeMap();\n    }\n\n    public void insertCell(CellValueRecordInterface cell)\n    {\n        if (records.get(cell) == null)\n        {\n            size += (( Record ) cell).getRecordSize();\n        }\n        else\n        {\n            size += (( Record ) cell).getRecordSize()\n                    - (( Record ) records.get(cell)).getRecordSize();\n        }\n\n        records.put(cell, cell);\n        if ((cell.getColumn() < firstcell) || (firstcell == -1))\n        {\n            firstcell = cell.getColumn();\n        }\n        if ((cell.getColumn() > lastcell) || (lastcell == -1))\n        {\n            lastcell = cell.getColumn();\n        }\n    }\n\n    public void removeCell(CellValueRecordInterface cell)\n    {\n        size -= (( Record ) cell).getRecordSize();\n\n        records.remove(cell);\n    }\n\n    public int getPhysicalNumberOfCells()\n    {\n        return records.size();\n    }\n\n    public int getFirstCellNum()\n    {\n        return firstcell;\n    }\n\n    public int getLastCellNum()\n    {\n        return lastcell;\n    }\n\n    public int construct(int offset, List records)\n    {\n        int k = 0;\n\n        for (k = offset; k < records.size(); k++)\n        {\n            Record rec = ( Record ) records.get(k);\n\n            if (!rec.isInValueSection() && !(rec instanceof UnknownRecord))\n            {\n                break;\n            }\n            if (rec.isValue())\n            {\n                insertCell(( CellValueRecordInterface ) rec);\n            }\n        }\n        return k;\n    }\n\n    /**\n     * called by the class that is responsible for writing this sucker.\n     * Subclasses should implement this so that their data is passed back in a\n     * byte array.\n     *\n     * @param offset to begin writing at\n     * @param data byte array containing instance data\n     * @return number of bytes written\n     */\n\n    public int serialize(int offset, byte [] data)\n    {\n        Iterator itr = records.values().iterator();\n        int      pos = offset;\n\n        while (itr.hasNext())\n        {\n            pos += (( Record ) itr.next()).serialize(pos, data);\n        }\n        return pos - offset;\n    }\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     * @param offset of the record's data (provided a big array of the file)\n     */\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n    }\n\n    /**\n     * called by constructor, should throw runtime exception in the event of a\n     * record passed with a differing ID.\n     *\n     * @param id alleged id for this record\n     */\n\n    protected void validateSid(short id)\n    {\n    }\n\n    /**\n     * return the non static version of the id for this record.\n     */\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public int getRecordSize()\n    {\n        return size;\n    }\n\n    public Iterator getIterator()\n    {\n        return records.values().iterator();", "functions": [{"function_name": "insertCell", "code": "    public void insertCell(CellValueRecordInterface cell)\n    {\n        if (records.get(cell) == null)\n        {\n            size += (( Record ) cell).getRecordSize();\n        }\n        else\n        {\n            size += (( Record ) cell).getRecordSize()\n                    - (( Record ) records.get(cell)).getRecordSize();\n        }\n\n        records.put(cell, cell);\n        if ((cell.getColumn() < firstcell) || (firstcell == -1))\n        {\n            firstcell = cell.getColumn();\n        }\n        if ((cell.getColumn() > lastcell) || (lastcell == -1))\n        {\n            lastcell = cell.getColumn();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [3, 8], [5, 9], [5, 10], [6, 11], [6, 12], [8, 13], [8, 14], [1, 15], [9, 16], [10, 17], [2, 18], [11, 19], [12, 20], [3, 21], [3, 22], [15, 23], [18, 24], [21, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 3], [9, 5], [10, 5], [11, 6], [12, 6], [13, 8], [14, 8], [15, 1], [16, 9], [17, 10], [18, 2], [19, 11], [20, 12], [21, 3], [22, 3], [23, 15], [24, 18], [25, 21], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "removeCell", "code": "    public void removeCell(CellValueRecordInterface cell)\n    {\n        size -= (( Record ) cell).getRecordSize();\n\n        records.remove(cell);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPhysicalNumberOfCells", "code": "    public int getPhysicalNumberOfCells()\n    {\n        return records.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstCellNum", "code": "    public int getFirstCellNum()\n    {\n        return firstcell;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastCellNum", "code": "    public int getLastCellNum()\n    {\n        return lastcell;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "construct", "code": "    public int construct(int offset, List records)\n    {\n        int k = 0;\n\n        for (k = offset; k < records.size(); k++)\n        {\n            Record rec = ( Record ) records.get(k);\n\n            if (!rec.isInValueSection() && !(rec instanceof UnknownRecord))\n            {\n                break;\n            }\n            if (rec.isValue())\n            {\n                insertCell(( CellValueRecordInterface ) rec);\n            }\n        }\n        return k;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [6, 11], [3, 12], [8, 13], [9, 14], [9, 15], [14, 16], [14, 17], [8, 18], [10, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 6], [12, 3], [13, 8], [14, 9], [15, 9], [16, 14], [17, 14], [18, 8], [19, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        Iterator itr = records.values().iterator();\n        int      pos = offset;\n\n        while (itr.hasNext())\n        {\n            pos += (( Record ) itr.next()).serialize(pos, data);\n        }\n        return pos - offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [2, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 2], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "validateSid", "code": "    protected void validateSid(short id)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return size;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIterator", "code": "    public Iterator getIterator()\n    {\n        return records.values().iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ValueRecordsAggregate", "code": "    public ValueRecordsAggregate()\n    {\n        records = new TreeMap();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-2.0-5378", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/poifs/storage/RawDataBlock.java", "language": "java", "name": "org.apache.poi.poifs.storage.RawDataBlock", "code": "public class RawDataBlock\n    implements ListManagedBlock\n{\n    private byte[]  _data;\n    private boolean _eof;\n\n    /**\n     * Constructor RawDataBlock\n     *\n     * @param stream the InputStream from which the data will be read\n     *\n     * @exception IOException on I/O errors, and if an insufficient\n     *            amount of data is read\n     */\n\n    public RawDataBlock(final InputStream stream)\n        throws IOException\n    {\n        _data = new byte[ POIFSConstants.BIG_BLOCK_SIZE ];\n        int count = IOUtils.readFully(stream, _data);\n\n        if (count == -1)\n        {\n            _eof = true;\n        }\n        else if (count != POIFSConstants.BIG_BLOCK_SIZE)\n        {\n            String type = \" byte\" + ((count == 1) ? (\"\")\n                                                  : (\"s\"));\n\n            throw new IOException(\"Unable to read entire block; \" + count\n                                  + type + \" read; expected \"\n                                  + POIFSConstants.BIG_BLOCK_SIZE + \" bytes\");\n        }\n        else\n        {\n            _eof = false;\n        }\n    }\n\n    /**\n     * When we read the data, did we hit end of file?\n     *\n     * @return true if no data was read because we were at the end of\n     *         the file, else false\n     *\n     * @exception IOException\n     */\n\n    public boolean eof()\n        throws IOException\n    {\n        return _eof;\n    }\n\n    /* ********** START implementation of ListManagedBlock ********** */\n\n    /**\n     * Get the data from the block\n     *\n     * @return the block's data as a byte array\n     *\n     * @exception IOException if there is no data\n     */\n\n    public byte [] getData()\n        throws IOException\n    {\n        if (eof())\n        {\n            throw new IOException(\"Cannot return empty data\");\n        }\n        return _data;", "functions": [{"function_name": "eof", "code": "    public boolean eof()\n        throws IOException\n    {\n        return _eof;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getData", "code": "    public byte [] getData()\n        throws IOException\n    {\n        if (eof())\n        {\n            throw new IOException(\"Cannot return empty data\");\n        }\n        return _data;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "RawDataBlock", "code": "    public RawDataBlock(final InputStream stream)\n        throws IOException\n    {\n        _data = new byte[ POIFSConstants.BIG_BLOCK_SIZE ];\n        int count = IOUtils.readFully(stream, _data);\n\n        if (count == -1)\n        {\n            _eof = true;\n        }\n        else if (count != POIFSConstants.BIG_BLOCK_SIZE)\n        {\n            String type = \" byte\" + ((count == 1) ? (\"\")\n                                                  : (\"s\"));\n\n            throw new IOException(\"Unable to read entire block; \" + count\n                                  + type + \" read; expected \"\n                                  + POIFSConstants.BIG_BLOCK_SIZE + \" bytes\");\n        }\n        else\n        {\n            _eof = false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [5, 8], [2, 9], [4, 10], [4, 11], [1, 12], [4, 13], [10, 14], [12, 15], [13, 16], [14, 17], [11, 18], [17, 19], [17, 20], [18, 21], [18, 22], [20, 23], [21, 24], [21, 25], [21, 26], [23, 27], [23, 28], [26, 29], [28, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 5], [9, 2], [10, 4], [11, 4], [12, 1], [13, 4], [14, 10], [15, 12], [16, 13], [17, 14], [18, 11], [19, 17], [20, 17], [21, 18], [22, 18], [23, 20], [24, 21], [25, 21], [26, 21], [27, 23], [28, 23], [29, 26], [30, 28], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}], "label": 0}
{"sample_id": "camel-1.6-3133", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/spring/factory/BeanEndpointFactory.java", "language": "java", "name": "org.apache.camel.spring.factory.BeanEndpointFactory", "code": "public class BeanEndpointFactory implements FactoryBean {\n    private boolean singleton = true;\n\n    public Object getObject() throws Exception {\n        return new BeanEndpoint();\n    }\n\n    public Class getObjectType() {\n        return BeanEndpoint.class;\n    }\n\n    public boolean isSingleton() {\n        return singleton;\n    }\n\n    protected void setSingleton(boolean singleton) {\n        this.singleton = singleton;", "functions": [{"function_name": "getObject", "code": "    public Object getObject() throws Exception {\n        return new BeanEndpoint();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getObjectType", "code": "    public Class getObjectType() {\n        return BeanEndpoint.class;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return singleton;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSingleton", "code": "    protected void setSingleton(boolean singleton) {\n        this.singleton = singleton;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-841", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/ccm/CCMCheck.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.ccm.CCMCheck", "code": "public class CCMCheck extends Continuus {\n\n    private File file = null;\n    private String comment = null;\n    private String task = null;\n\n\n    protected Vector filesets = new Vector();\n\n\n    /** Constructor for CCMCheck. */\n    public CCMCheck() {\n        super();\n    }\n\n    /**\n     * Get the value of file.\n     * @return value of file.\n     */\n    public File getFile() {\n        return file;\n    }\n\n    /**\n     * Sets the path to the file that the command will operate on.\n     * @param v  Value to assign to file.\n     */\n    public void setFile(File v) {\n        log(\"working file \" + v, Project.MSG_VERBOSE);\n        this.file = v;\n    }\n\n    /**\n     * Get the value of comment.\n     * @return value of comment.\n     */\n    public String getComment() {\n        return comment;\n    }\n\n    /**\n     * Specifies a comment.\n     * @param v  Value to assign to comment.\n     */\n    public void setComment(String v) {\n        this.comment = v;\n    }\n\n\n    /**\n     * Get the value of task.\n     * @return value of task.\n     */\n    public String getTask() {\n        return task;\n    }\n\n    /**\n     * Specifies the task number used to check\n     * in the file (may use 'default').\n     * @param v  Value to assign to task.\n     */\n    public void setTask(String v) {\n        this.task = v;\n    }\n\n\n    /**\n     * Adds a set of files to copy.\n     * @param set the set of files\n     */\n    public void addFileset(FileSet set) {\n        filesets.addElement(set);\n    }\n\n\n    /**\n     * Executes the task.\n     * <p>\n     * Builds a command line to execute ccm and then calls Exec's run method\n     * to execute the command line.\n     * </p>\n     * @throws BuildException on error\n     */\n    public void execute() throws BuildException {\n\n        if (file == null && filesets.size() == 0) {\n            throw new BuildException(\n                \"Specify at least one source - a file or a fileset.\");\n        }\n\n        if (file != null && file.exists() && file.isDirectory()) {\n            throw new BuildException(\"CCMCheck cannot be generated for directories\");\n        }\n\n        if (file != null  && filesets.size() > 0) {\n            throw new BuildException(\"Choose between file and fileset !\");\n        }\n\n        if (getFile() != null) {\n            doit();\n            return;\n        }\n\n        int sizeofFileSet = filesets.size();\n        for (int i = 0; i < sizeofFileSet; i++) {\n            FileSet fs = (FileSet) filesets.elementAt(i);\n            DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n            String[] srcFiles = ds.getIncludedFiles();\n            for (int j = 0; j < srcFiles.length; j++) {\n                File src = new File(fs.getDir(getProject()), srcFiles[j]);\n                setFile(src);\n                doit();\n            }\n        }\n    }\n\n    /**\n     * check the file given by getFile().\n     */\n    private void doit() {\n        Commandline commandLine = new Commandline();\n\n\n        commandLine.setExecutable(getCcmCommand());\n        commandLine.createArgument().setValue(getCcmAction());\n\n        checkOptions(commandLine);\n\n        int result = run(commandLine);\n        if (Execute.isFailure(result)) {\n            String msg = \"Failed executing: \" + commandLine.toString();\n            throw new BuildException(msg, getLocation());\n        }\n    }\n\n\n    /**\n     * Check the command line options.\n     */\n    private void checkOptions(Commandline cmd) {\n        if (getComment() != null) {\n            cmd.createArgument().setValue(FLAG_COMMENT);\n            cmd.createArgument().setValue(getComment());\n        }\n\n        if (getTask() != null) {\n            cmd.createArgument().setValue(FLAG_TASK);\n            cmd.createArgument().setValue(getTask());\n        }\n\n        if (getFile() != null) {\n            cmd.createArgument().setValue(file.getAbsolutePath());\n        }\n    }\n\n    /**\n     * -comment flag -- comment to attach to the file\n     */\n    public static final String FLAG_COMMENT = \"/comment\";\n\n    /**\n     *  -task flag -- associate checkout task with task\n     */\n    public static final String FLAG_TASK = \"/task\";", "functions": [{"function_name": "getFile", "code": "    public File getFile() {\n        return file;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFile", "code": "    public void setFile(File v) {\n        log(\"working file \" + v, Project.MSG_VERBOSE);\n        this.file = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getComment", "code": "    public String getComment() {\n        return comment;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setComment", "code": "    public void setComment(String v) {\n        this.comment = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTask", "code": "    public String getTask() {\n        return task;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTask", "code": "    public void setTask(String v) {\n        this.task = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n\n        if (file == null && filesets.size() == 0) {\n            throw new BuildException(\n                \"Specify at least one source - a file or a fileset.\");\n        }\n\n        if (file != null && file.exists() && file.isDirectory()) {\n            throw new BuildException(\"CCMCheck cannot be generated for directories\");\n        }\n\n        if (file != null  && filesets.size() > 0) {\n            throw new BuildException(\"Choose between file and fileset !\");\n        }\n\n        if (getFile() != null) {\n            doit();\n            return;\n        }\n\n        int sizeofFileSet = filesets.size();\n        for (int i = 0; i < sizeofFileSet; i++) {\n            FileSet fs = (FileSet) filesets.elementAt(i);\n            DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n            String[] srcFiles = ds.getIncludedFiles();\n            for (int j = 0; j < srcFiles.length; j++) {\n                File src = new File(fs.getDir(getProject()), srcFiles[j]);\n                setFile(src);\n                doit();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [5, 10], [6, 11], [1, 12], [1, 13], [1, 14], [1, 15], [2, 16], [3, 17], [8, 18], [8, 19], [4, 20], [9, 21], [9, 22], [5, 23], [10, 24], [10, 25], [6, 26], [11, 27], [11, 28], [12, 29], [1, 30], [3, 31], [20, 32], [21, 33], [21, 34], [22, 35], [23, 36], [25, 37], [25, 38], [26, 39], [27, 40], [27, 41], [28, 42], [12, 43], [13, 44], [14, 45], [32, 46], [36, 47], [38, 48], [39, 49], [12, 50], [12, 51], [12, 52], [45, 53], [15, 54], [43, 55], [55, 56], [56, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 5], [11, 6], [12, 1], [13, 1], [14, 1], [15, 1], [16, 2], [17, 3], [18, 8], [19, 8], [20, 4], [21, 9], [22, 9], [23, 5], [24, 10], [25, 10], [26, 6], [27, 11], [28, 11], [29, 12], [30, 1], [31, 3], [32, 20], [33, 21], [34, 21], [35, 22], [36, 23], [37, 25], [38, 25], [39, 26], [40, 27], [41, 27], [42, 28], [43, 12], [44, 13], [45, 14], [46, 32], [47, 36], [48, 38], [49, 39], [50, 12], [51, 12], [52, 12], [53, 45], [54, 15], [55, 43], [56, 55], [57, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "doit", "code": "    private void doit() {\n        Commandline commandLine = new Commandline();\n\n\n        commandLine.setExecutable(getCcmCommand());\n        commandLine.createArgument().setValue(getCcmAction());\n\n        checkOptions(commandLine);\n\n        int result = run(commandLine);\n        if (Execute.isFailure(result)) {\n            String msg = \"Failed executing: \" + commandLine.toString();\n            throw new BuildException(msg, getLocation());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [2, 10], [6, 11], [7, 12], [3, 13], [8, 14], [11, 15], [14, 16], [9, 17], [17, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 2], [11, 6], [12, 7], [13, 3], [14, 8], [15, 11], [16, 14], [17, 9], [18, 17], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "checkOptions", "code": "    private void checkOptions(Commandline cmd) {\n        if (getComment() != null) {\n            cmd.createArgument().setValue(FLAG_COMMENT);\n            cmd.createArgument().setValue(getComment());\n        }\n\n        if (getTask() != null) {\n            cmd.createArgument().setValue(FLAG_TASK);\n            cmd.createArgument().setValue(getTask());\n        }\n\n        if (getFile() != null) {\n            cmd.createArgument().setValue(file.getAbsolutePath());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [5, 8], [5, 9], [6, 10], [6, 11], [7, 12], [7, 13], [1, 14], [2, 15], [2, 16], [3, 17], [3, 18], [14, 19], [15, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [22, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 5], [9, 5], [10, 6], [11, 6], [12, 7], [13, 7], [14, 1], [15, 2], [16, 2], [17, 3], [18, 3], [19, 14], [20, 15], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [26, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "CCMCheck", "code": "    public CCMCheck() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.7-1186", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/perforce/P4Integrate.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.perforce.P4Integrate", "code": "public class P4Integrate extends P4Base {\n\n    private String change = null;\n    private String fromfile = null;\n    private String tofile = null;\n    private String branch = null;\n    private boolean restoredeletedrevisions = false;\n    private boolean forceintegrate = false;\n    private boolean leavetargetrevision = false;\n    private boolean enablebaselessmerges = false;\n    private boolean simulationmode = false;\n    private boolean reversebranchmappings = false;\n    private boolean propagatesourcefiletype = false;\n    private boolean nocopynewtargetfiles = false;\n\n    /**\n     * get the changelist number\n     *\n     * @return the changelist number set for this task\n     */\n    public String getChange() {\n        return change;\n    }\n\n    /**\n     * set the changelist number for the operation\n     *\n     * @param change An existing changelist number to assign files to; optional\n     * but strongly recommended.\n     */\n    public void setChange(String change) {\n        this.change = change;\n    }\n\n    /**\n     * get the from file specification\n     *\n     * @return the from file specification\n     */\n    public String getFromfile() {\n        return fromfile;\n    }\n\n    /**\n     * sets the from file specification\n     *\n     * @param fromf the from file specification\n     */\n    public void setFromfile(String fromf) {\n        this.fromfile = fromf;\n    }\n\n    /**\n     * get the to file specification\n     *\n     * @return the to file specification\n     */\n    public String getTofile() {\n        return tofile;\n    }\n\n    /**\n     * sets the to file specification\n     *\n     * @param tof the to file specification\n     */\n    public void setTofile(String tof) {\n        this.tofile = tof;\n    }\n\n    /**\n     * get the branch\n     *\n     * @return the name of the branch\n     */\n    public String getBranch() {\n        return branch;\n    }\n\n    /**\n     * sets the branch\n     *\n     * @param br the name of the branch to use\n     */\n    public void setBranch(String br) {\n        this.branch = br;\n    }\n\n    /**\n     * gets the restoredeletedrevisions flag\n     *\n     * @return restore deleted revisions\n     */\n    public boolean isRestoreDeletedRevisions() {\n        return restoredeletedrevisions;\n    }\n\n    /**\n     * sets the restoredeletedrevisions flag\n     *\n     * @param setrest value chosen for restoredeletedrevisions\n     */\n    public void setRestoreDeletedRevisions(boolean setrest) {\n        this.restoredeletedrevisions = setrest;\n    }\n\n    /**\n     * gets the forceintegrate flag\n     *\n     * @return restore deleted revisions\n     */\n    public boolean isForceIntegrate() {\n        return forceintegrate;\n    }\n\n    /**\n     * sets the forceintegrate flag\n     *\n     * @param setrest value chosen for forceintegrate\n     */\n    public void setForceIntegrate(boolean setrest) {\n        this.forceintegrate = setrest;\n    }\n\n    /**\n     * gets the leavetargetrevision flag\n     *\n     * @return flag indicating if the target revision should be preserved\n     */\n    public boolean isLeaveTargetRevision() {\n        return leavetargetrevision;\n    }\n\n    /**\n     * sets the leavetargetrevision flag\n     *\n     * @param setrest value chosen for leavetargetrevision\n     */\n    public void setLeaveTargetRevision(boolean setrest) {\n        this.leavetargetrevision = setrest;\n    }\n\n    /**\n     * gets the enablebaselessmerges flag\n     *\n     * @return boolean indicating if baseless merges are desired\n     */\n    public boolean isEnableBaselessMerges() {\n        return enablebaselessmerges;\n    }\n\n    /**\n     * sets the enablebaselessmerges flag\n     *\n     * @param setrest value chosen for enablebaselessmerges\n     */\n    public void setEnableBaselessMerges(boolean setrest) {\n        this.enablebaselessmerges = setrest;\n    }\n\n    /**\n     * gets the simulationmode flag\n     *\n     * @return simulation mode flag\n     */\n    public boolean isSimulationMode() {\n        return simulationmode;\n    }\n\n    /**\n     * sets the simulationmode flag\n     *\n     * @param setrest value chosen for simulationmode\n     */\n    public void setSimulationMode(boolean setrest) {\n        this.simulationmode = setrest;\n    }\n    /**\n     * returns the flag indicating if reverse branch mappings are sought\n     *\n     * @return reversebranchmappings flag\n     */\n    public boolean isReversebranchmappings() {\n        return reversebranchmappings;\n    }\n\n    /**\n     *  sets the reversebranchmappings flag\n     *\n     *  @param reversebranchmappings flag indicating if reverse branch mappings are sought\n     */\n    public void setReversebranchmappings(boolean reversebranchmappings) {\n        this.reversebranchmappings = reversebranchmappings;\n    }\n    /**\n     *  returns flag indicating if propagation of source file type is sought\n     *\n     *  @return flag set to true if you want to propagate source file type for existing target files\n     */\n    public boolean isPropagatesourcefiletype() {\n        return propagatesourcefiletype;\n    }\n    /**\n     *   sets flag indicating if one wants to propagate the source file type\n     *\n     *   @param propagatesourcefiletype\n     *   set it to true if you want to change the type of existing target files\n     *   according to type of source file.\n     */\n    public void setPropagatesourcefiletype(boolean propagatesourcefiletype) {\n        this.propagatesourcefiletype = propagatesourcefiletype;\n    }\n    /**\n     *   indicates intention to suppress the copying on the local hard disk of new target files.\n     *\n     *   @return indicates intention to suppress the copying\n     *   on the local hard disk of new target files.\n     */\n    public boolean isNocopynewtargetfiles() {\n        return nocopynewtargetfiles;\n    }\n\n    /**\n     *   sets nocopynewtargetfiles flag\n     *\n     *   @param nocopynewtargetfiles set it to true to gain speed in integration by not copying on\n     *   the local Perforce client new target files\n     */\n    public void setNocopynewtargetfiles(boolean nocopynewtargetfiles) {\n        this.nocopynewtargetfiles = nocopynewtargetfiles;\n    }\n\n    /**\n     *  execute the p4 integrate\n     *  @throws BuildException if there are missing parameters\n     */\n    public void execute() throws BuildException {\n        if (change != null) {\n            P4CmdOpts = \"-c \" + change;\n        }\n        if (this.forceintegrate) {\n            P4CmdOpts = P4CmdOpts + \" -f\";\n        }\n        if (this.restoredeletedrevisions) {\n                P4CmdOpts = P4CmdOpts + \" -d\";\n            }\n        if (this.leavetargetrevision) {\n            P4CmdOpts = P4CmdOpts + \" -h\";\n        }\n        if (this.enablebaselessmerges) {\n            P4CmdOpts = P4CmdOpts + \" -i\";\n        }\n        if (this.simulationmode) {\n            P4CmdOpts = P4CmdOpts + \" -n\";\n        }\n        if (this.reversebranchmappings) {\n            P4CmdOpts = P4CmdOpts + \" -r\";\n        }\n        if (this.propagatesourcefiletype) {\n            P4CmdOpts = P4CmdOpts + \" -t\";\n        }\n        if (this.nocopynewtargetfiles) {\n            P4CmdOpts = P4CmdOpts + \"-v\";\n        }\n        String command;\n        if (branch == null && fromfile != null && tofile != null) {\n           command = P4CmdOpts + \" \" + fromfile + \" \" + tofile;\n        } else if (branch != null && fromfile == null && tofile != null) {\n            command = P4CmdOpts + \" -b \" + branch + \" \" + tofile;\n        } else if (branch != null && fromfile != null) {\n            command = P4CmdOpts + \" -b \" + branch + \" -s \" + fromfile + \" \" + tofile;\n        } else {\n            throw new BuildException(\"you need to specify fromfile and tofile, \"\n            + \"or branch and tofile, or branch and fromfile, or branch and fromfile and tofile \");\n        }\n        execP4Command(\"-s integrate \" + command, new SimpleP4OutputHandler(this));", "functions": [{"function_name": "getChange", "code": "    public String getChange() {\n        return change;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setChange", "code": "    public void setChange(String change) {\n        this.change = change;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFromfile", "code": "    public String getFromfile() {\n        return fromfile;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFromfile", "code": "    public void setFromfile(String fromf) {\n        this.fromfile = fromf;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTofile", "code": "    public String getTofile() {\n        return tofile;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTofile", "code": "    public void setTofile(String tof) {\n        this.tofile = tof;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBranch", "code": "    public String getBranch() {\n        return branch;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBranch", "code": "    public void setBranch(String br) {\n        this.branch = br;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isRestoreDeletedRevisions", "code": "    public boolean isRestoreDeletedRevisions() {\n        return restoredeletedrevisions;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRestoreDeletedRevisions", "code": "    public void setRestoreDeletedRevisions(boolean setrest) {\n        this.restoredeletedrevisions = setrest;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isForceIntegrate", "code": "    public boolean isForceIntegrate() {\n        return forceintegrate;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setForceIntegrate", "code": "    public void setForceIntegrate(boolean setrest) {\n        this.forceintegrate = setrest;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isLeaveTargetRevision", "code": "    public boolean isLeaveTargetRevision() {\n        return leavetargetrevision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLeaveTargetRevision", "code": "    public void setLeaveTargetRevision(boolean setrest) {\n        this.leavetargetrevision = setrest;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isEnableBaselessMerges", "code": "    public boolean isEnableBaselessMerges() {\n        return enablebaselessmerges;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEnableBaselessMerges", "code": "    public void setEnableBaselessMerges(boolean setrest) {\n        this.enablebaselessmerges = setrest;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSimulationMode", "code": "    public boolean isSimulationMode() {\n        return simulationmode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSimulationMode", "code": "    public void setSimulationMode(boolean setrest) {\n        this.simulationmode = setrest;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isReversebranchmappings", "code": "    public boolean isReversebranchmappings() {\n        return reversebranchmappings;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReversebranchmappings", "code": "    public void setReversebranchmappings(boolean reversebranchmappings) {\n        this.reversebranchmappings = reversebranchmappings;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isPropagatesourcefiletype", "code": "    public boolean isPropagatesourcefiletype() {\n        return propagatesourcefiletype;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPropagatesourcefiletype", "code": "    public void setPropagatesourcefiletype(boolean propagatesourcefiletype) {\n        this.propagatesourcefiletype = propagatesourcefiletype;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNocopynewtargetfiles", "code": "    public boolean isNocopynewtargetfiles() {\n        return nocopynewtargetfiles;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNocopynewtargetfiles", "code": "    public void setNocopynewtargetfiles(boolean nocopynewtargetfiles) {\n        this.nocopynewtargetfiles = nocopynewtargetfiles;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (change != null) {\n            P4CmdOpts = \"-c \" + change;\n        }\n        if (this.forceintegrate) {\n            P4CmdOpts = P4CmdOpts + \" -f\";\n        }\n        if (this.restoredeletedrevisions) {\n                P4CmdOpts = P4CmdOpts + \" -d\";\n            }\n        if (this.leavetargetrevision) {\n            P4CmdOpts = P4CmdOpts + \" -h\";\n        }\n        if (this.enablebaselessmerges) {\n            P4CmdOpts = P4CmdOpts + \" -i\";\n        }\n        if (this.simulationmode) {\n            P4CmdOpts = P4CmdOpts + \" -n\";\n        }\n        if (this.reversebranchmappings) {\n            P4CmdOpts = P4CmdOpts + \" -r\";\n        }\n        if (this.propagatesourcefiletype) {\n            P4CmdOpts = P4CmdOpts + \" -t\";\n        }\n        if (this.nocopynewtargetfiles) {\n            P4CmdOpts = P4CmdOpts + \"-v\";\n        }\n        String command;\n        if (branch == null && fromfile != null && tofile != null) {\n           command = P4CmdOpts + \" \" + fromfile + \" \" + tofile;\n        } else if (branch != null && fromfile == null && tofile != null) {\n            command = P4CmdOpts + \" -b \" + branch + \" \" + tofile;\n        } else if (branch != null && fromfile != null) {\n            command = P4CmdOpts + \" -b \" + branch + \" -s \" + fromfile + \" \" + tofile;\n        } else {\n            throw new BuildException(\"you need to specify fromfile and tofile, \"\n            + \"or branch and tofile, or branch and fromfile, or branch and fromfile and tofile \");\n        }\n        execP4Command(\"-s integrate \" + command, new SimpleP4OutputHandler(this));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [1, 14], [11, 15], [12, 16], [12, 17], [13, 18], [13, 19], [14, 20], [14, 21], [15, 22], [17, 23], [18, 24], [19, 25], [19, 26], [1, 27], [20, 28], [21, 29], [21, 30], [3, 31], [4, 32], [5, 33], [6, 34], [7, 35], [8, 36], [9, 37], [10, 38], [11, 39], [18, 40], [24, 41], [24, 42], [13, 43], [25, 44], [26, 45], [26, 46], [27, 47], [29, 48], [30, 49], [31, 50], [32, 51], [33, 52], [34, 53], [35, 54], [36, 55], [37, 56], [38, 57], [39, 58], [40, 59], [18, 60], [41, 61], [42, 62], [43, 63], [45, 64], [46, 65], [47, 66], [50, 67], [51, 68], [52, 69], [53, 70], [54, 71], [55, 72], [56, 73], [57, 74], [58, 75], [59, 76], [60, 77], [63, 78], [66, 79], [66, 80], [76, 81], [76, 82], [77, 83], [78, 84], [78, 85], [80, 86], [83, 87], [83, 88], [85, 89], [86, 90], [88, 91], [89, 92], [91, 93], [91, 94], [94, 95], [95, 96], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 1], [15, 11], [16, 12], [17, 12], [18, 13], [19, 13], [20, 14], [21, 14], [22, 15], [23, 17], [24, 18], [25, 19], [26, 19], [27, 1], [28, 20], [29, 21], [30, 21], [31, 3], [32, 4], [33, 5], [34, 6], [35, 7], [36, 8], [37, 9], [38, 10], [39, 11], [40, 18], [41, 24], [42, 24], [43, 13], [44, 25], [45, 26], [46, 26], [47, 27], [48, 29], [49, 30], [50, 31], [51, 32], [52, 33], [53, 34], [54, 35], [55, 36], [56, 37], [57, 38], [58, 39], [59, 40], [60, 18], [61, 41], [62, 42], [63, 43], [64, 45], [65, 46], [66, 47], [67, 50], [68, 51], [69, 52], [70, 53], [71, 54], [72, 55], [73, 56], [74, 57], [75, 58], [76, 59], [77, 60], [78, 63], [79, 66], [80, 66], [81, 76], [82, 76], [83, 77], [84, 78], [85, 78], [86, 80], [87, 83], [88, 83], [89, 85], [90, 86], [91, 88], [92, 89], [93, 91], [94, 91], [95, 94], [96, 95], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96]]}], "label": 0}
{"sample_id": "jedit-4.1-4153", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "gnu/regexp/RE.java", "language": "java", "name": "gnu.regexp.RE", "code": "public class RE extends REToken {\n  // This String will be returned by getVersion()\n  private static final String VERSION = \"1.1.5-dev\";\n\n  // The localized strings are kept in a separate file\n  private static ResourceBundle messages = PropertyResourceBundle.getBundle(\"gnu/regexp/MessagesBundle\", Locale.getDefault());\n\n  // These are, respectively, the first and last tokens in our linked list\n  // If there is only one token, firstToken == lastToken\n  private REToken firstToken, lastToken;\n\n  // This is the number of subexpressions in this regular expression,\n  // with a minimum value of zero.  Returned by getNumSubs()\n  private int numSubs;\n\n    /** Minimum length, in characters, of any possible match. */\n    private int minimumLength;\n\n  /**\n   * Compilation flag. Do  not  differentiate  case.   Subsequent\n   * searches  using  this  RE will be case insensitive.\n   */\n  public static final int REG_ICASE = 2;\n\n  /**\n   * Compilation flag. The match-any-character operator (dot)\n   * will match a newline character.  When set this overrides the syntax\n   * bit RE_DOT_NEWLINE (see RESyntax for details).  This is equivalent to\n   * the \"/s\" operator in Perl.\n   */\n  public static final int REG_DOT_NEWLINE = 4;\n\n  /**\n   * Compilation flag. Use multiline mode.  In this mode, the ^ and $\n   * anchors will match based on newlines within the input. This is\n   * equivalent to the \"/m\" operator in Perl.\n   */\n  public static final int REG_MULTILINE = 8;\n\n  /**\n   * Execution flag.\n   * The match-beginning operator (^) will not match at the beginning\n   * of the input string. Useful for matching on a substring when you\n   * know the context of the input is such that position zero of the\n   * input to the match test is not actually position zero of the text.\n   * <P>\n   * This example demonstrates the results of various ways of matching on\n   * a substring.\n   * <P>\n   * <CODE>\n   * String s = \"food bar fool\";<BR>\n   * RE exp = new RE(\"^foo.\");<BR>\n   * REMatch m0 = exp.getMatch(s);<BR>\n   * REMatch m1 = exp.getMatch(s.substring(8));<BR>\n   * REMatch m2 = exp.getMatch(s.substring(8),0,RE.REG_NOTBOL); <BR>\n   * REMatch m3 = exp.getMatch(s,8);                            <BR>\n   * REMatch m4 = exp.getMatch(s,8,RE.REG_ANCHORINDEX);         <BR>\n   * <P>\n   * // Results:<BR>\n   * //  m0.toString(): \"food\"<BR>\n   * //  m1.toString(): \"fool\"<BR>\n   * //  m2.toString(): null<BR>\n   * //  m3.toString(): null<BR>\n   * //  m4.toString(): \"fool\"<BR>\n   * </CODE>\n   */\n  public static final int REG_NOTBOL = 16;\n\n  /**\n   * Execution flag.\n   * The match-end operator ($) does not match at the end\n   * of the input string. Useful for matching on substrings.\n   */\n  public static final int REG_NOTEOL = 32;\n\n  /**\n   * Execution flag.\n   * When a match method is invoked that starts matching at a non-zero\n   * index into the input, treat the input as if it begins at the index\n   * given.  The effect of this flag is that the engine does not \"see\"\n   * any text in the input before the given index.  This is useful so\n   * that the match-beginning operator (^) matches not at position 0\n   * in the input string, but at the position the search started at\n   * (based on the index input given to the getMatch function).  See\n   * the example under REG_NOTBOL.  It also affects the use of the \\&lt;\n   * and \\b operators.\n   */\n  public static final int REG_ANCHORINDEX = 64;\n\n  /**\n   * Execution flag.\n   * The substitute and substituteAll methods will not attempt to\n   * interpolate occurrences of $1-$9 in the replacement text with\n   * the corresponding subexpressions.  For example, you may want to\n   * replace all matches of \"one dollar\" with \"$1\".\n   */\n  public static final int REG_NO_INTERPOLATE = 128;\n\n  /** Returns a string representing the version of the gnu.regexp package. */\n  public static final String version() {\n    return VERSION;\n  }\n\n  // Retrieves a message from the ResourceBundle\n  static final String getLocalizedMessage(String key) {\n    return messages.getString(key);\n  }\n\n  /**\n   * Constructs a regular expression pattern buffer without any compilation\n   * flags set, and using the default syntax (RESyntax.RE_SYNTAX_PERL5).\n   *\n   * @param pattern A regular expression pattern, in the form of a String,\n   *   StringBuffer or char[].  Other input types will be converted to\n   *   strings using the toString() method.\n   * @exception REException The input pattern could not be parsed.\n   * @exception NullPointerException The pattern was null.\n   */\n  public RE(Object pattern) throws REException {\n    this(pattern,0,RESyntax.RE_SYNTAX_PERL5,0,0);\n  }\n\n  /**\n   * Constructs a regular expression pattern buffer using the specified\n   * compilation flags and the default syntax (RESyntax.RE_SYNTAX_PERL5).\n   *\n   * @param pattern A regular expression pattern, in the form of a String,\n   *   StringBuffer, or char[].  Other input types will be converted to\n   *   strings using the toString() method.\n   * @param cflags The logical OR of any combination of the compilation flags listed above.\n   * @exception REException The input pattern could not be parsed.\n   * @exception NullPointerException The pattern was null.\n   */\n  public RE(Object pattern, int cflags) throws REException {\n    this(pattern,cflags,RESyntax.RE_SYNTAX_PERL5,0,0);\n  }\n\n  /**\n   * Constructs a regular expression pattern buffer using the specified\n   * compilation flags and regular expression syntax.\n   *\n   * @param pattern A regular expression pattern, in the form of a String,\n   *   StringBuffer, or char[].  Other input types will be converted to\n   *   strings using the toString() method.\n   * @param cflags The logical OR of any combination of the compilation flags listed above.\n   * @param syntax The type of regular expression syntax to use.\n   * @exception REException The input pattern could not be parsed.\n   * @exception NullPointerException The pattern was null.\n   */\n  public RE(Object pattern, int cflags, RESyntax syntax) throws REException {\n    this(pattern,cflags,syntax,0,0);\n  }\n\n  // internal constructor used for alternation\n  private RE(REToken first, REToken last,int subs, int subIndex, int minLength) {\n    super(subIndex);\n    firstToken = first;\n    lastToken = last;\n    numSubs = subs;\n    minimumLength = minLength;\n    addToken(new RETokenEndSub(subIndex));\n  }\n\n  private RE(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {\n    super(myIndex); // Subexpression index of this token.\n    initialize(patternObj, cflags, syntax, myIndex, nextSub);\n  }\n\n    // For use by subclasses\n    protected RE() { super(0); }\n\n    // The meat of construction\n  protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {\n      char[] pattern;\n    if (patternObj instanceof String) {\n      pattern = ((String) patternObj).toCharArray();\n    } else if (patternObj instanceof char[]) {\n      pattern = (char[]) patternObj;\n    } else if (patternObj instanceof StringBuffer) {\n      pattern = new char [((StringBuffer) patternObj).length()];\n      ((StringBuffer) patternObj).getChars(0,pattern.length,pattern,0);\n    } else {\n\tpattern = patternObj.toString().toCharArray();\n    }\n\n    int pLength = pattern.length;\n\n    numSubs = 0; // Number of subexpressions in this token.\n    Vector branches = null;\n\n    // linked list of tokens (sort of -- some closed loops can exist)\n    firstToken = lastToken = null;\n\n    // Precalculate these so we don't pay for the math every time we\n    // need to access them.\n    boolean insens = ((cflags & REG_ICASE) > 0);\n\n    // Parse pattern into tokens.  Does anyone know if it's more efficient\n    // to use char[] than a String.charAt()?  I'm assuming so.\n\n    // index tracks the position in the char array\n    int index = 0;\n\n    // this will be the current parse character (pattern[index])\n    CharUnit unit = new CharUnit();\n\n    // This is used for {x,y} calculations\n    IntPair minMax = new IntPair();\n\n    // Buffer a token so we can create a TokenRepeated, etc.\n    REToken currentToken = null;\n    char ch;\n\n    while (index < pLength) {\n      // read the next character unit (including backslash escapes)\n      index = getCharUnit(pattern,index,unit);\n\n      // ALTERNATION OPERATOR\n      //  \\| or | (if RE_NO_BK_VBAR) or newline (if RE_NEWLINE_ALT)\n      //  not available if RE_LIMITED_OPS is set\n\n      // TODO: the '\\n' literal here should be a test against REToken.newline,\n      // which unfortunately may be more than a single character.\n      if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ unit.bk))\n\t     || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\\n') && !unit.bk) )\n\t   && !syntax.get(RESyntax.RE_LIMITED_OPS)) {\n\t// make everything up to here be a branch. create vector if nec.\n\taddToken(currentToken);\n\tRE theBranch = new RE(firstToken, lastToken, numSubs, subIndex, minimumLength);\n\tminimumLength = 0;\n\tif (branches == null) {\n\t    branches = new Vector();\n\t}\n\tbranches.addElement(theBranch);\n\tfirstToken = lastToken = currentToken = null;\n      }\n      \n      // INTERVAL OPERATOR:\n      //  {x} | {x,} | {x,y}  (RE_INTERVALS && RE_NO_BK_BRACES)\n      //  \\{x\\} | \\{x,\\} | \\{x,y\\} (RE_INTERVALS && !RE_NO_BK_BRACES)\n      //\n      // OPEN QUESTION: \n      //  what is proper interpretation of '{' at start of string?\n\n      else if ((unit.ch == '{') && syntax.get(RESyntax.RE_INTERVALS) && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk)) {\n\tint newIndex = getMinMax(pattern,index,minMax,syntax);\n        if (newIndex > index) {\n          if (minMax.first > minMax.second)\n            throw new REException(getLocalizedMessage(\"interval.order\"),REException.REG_BADRPT,newIndex);\n          if (currentToken == null)\n            throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,newIndex);\n          if (currentToken instanceof RETokenRepeated) \n            throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,newIndex);\n          if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n            throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,newIndex);\n          if ((currentToken.getMinimumLength() == 0) && (minMax.second == Integer.MAX_VALUE))\n            throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,newIndex);\n          index = newIndex;\n          currentToken = setRepeated(currentToken,minMax.first,minMax.second,index); \n        }\n        else {\n          addToken(currentToken);\n          currentToken = new RETokenChar(subIndex,unit.ch,insens);\n        } \n      }\n      \n      // LIST OPERATOR:\n      //  [...] | [^...]\n\n      else if ((unit.ch == '[') && !unit.bk) {\n\tVector options = new Vector();\n\tboolean negative = false;\n\tchar lastChar = 0;\n\tif (index == pLength) throw new REException(getLocalizedMessage(\"unmatched.bracket\"),REException.REG_EBRACK,index);\n\t\n\t// Check for initial caret, negation\n\tif ((ch = pattern[index]) == '^') {\n\t  negative = true;\n\t  if (++index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t  ch = pattern[index];\n\t}\n\n\t// Check for leading right bracket literal\n\tif (ch == ']') {\n\t  lastChar = ch;\n\t  if (++index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t}\n\n\twhile ((ch = pattern[index++]) != ']') {\n\t  if ((ch == '-') && (lastChar != 0)) {\n\t    if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t    if ((ch = pattern[index]) == ']') {\n\t      options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t      lastChar = '-';\n\t    } else {\n\t      options.addElement(new RETokenRange(subIndex,lastChar,ch,insens));\n\t      lastChar = 0;\n\t      index++;\n\t    }\n          } else if ((ch == '\\\\') && syntax.get(RESyntax.RE_BACKSLASH_ESCAPE_IN_LISTS)) {\n            if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t    int posixID = -1;\n\t    boolean negate = false;\n            char asciiEsc = 0;\n\t    if ((\"dswDSW\".indexOf(pattern[index]) != -1) && syntax.get(RESyntax.RE_CHAR_CLASS_ESC_IN_LISTS)) {\n\t      switch (pattern[index]) {\n\t      case 'D':\n\t\tnegate = true;\n\t      case 'd':\n\t\tposixID = RETokenPOSIX.DIGIT;\n\t\tbreak;\n\t      case 'S':\n\t\tnegate = true;\n\t      case 's':\n\t\tposixID = RETokenPOSIX.SPACE;\n\t\tbreak;\n\t      case 'W':\n\t\tnegate = true;\n\t      case 'w':\n\t\tposixID = RETokenPOSIX.ALNUM;\n\t\tbreak;\n\t      }\n\t    }\n            else if (\"nrt\".indexOf(pattern[index]) != -1) {\n              switch (pattern[index]) {\n                case 'n':\n                  asciiEsc = '\\n';\n                  break;\n                case 't':\n                  asciiEsc = '\\t';\n                  break;\n                case 'r':\n                  asciiEsc = '\\r';\n                  break;\n              }\n            }\n\t    if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    \n\t    if (posixID != -1) {\n\t      options.addElement(new RETokenPOSIX(subIndex,posixID,insens,negate));\n\t    } else if (asciiEsc != 0) {\n\t      lastChar = asciiEsc;\n\t    } else {\n\t      lastChar = pattern[index];\n\t    }\n\t    ++index;\n\t  } else if ((ch == '[') && (syntax.get(RESyntax.RE_CHAR_CLASSES)) && (index < pLength) && (pattern[index] == ':')) {\n\t    StringBuffer posixSet = new StringBuffer();\n\t    index = getPosixSet(pattern,index+1,posixSet);\n\t    int posixId = RETokenPOSIX.intValue(posixSet.toString());\n\t    if (posixId != -1)\n\t      options.addElement(new RETokenPOSIX(subIndex,posixId,insens,false));\n\t  } else {\n\t    if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    lastChar = ch;\n\t  }\n\t  if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t} // while in list\n\t// Out of list, index is one past ']'\n\t    \n\tif (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    \n\t// Create a new RETokenOneOf\n\taddToken(currentToken);\n\toptions.trimToSize();\n\tcurrentToken = new RETokenOneOf(subIndex,options,negative);\n      }\n\n      // SUBEXPRESSIONS\n      //  (...) | \\(...\\) depending on RE_NO_BK_PARENS\n\n      else if ((unit.ch == '(') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) {\n\tboolean pure = false;\n\tboolean comment = false;\n        boolean lookAhead = false;\n        boolean negativelh = false;\n\tif ((index+1 < pLength) && (pattern[index] == '?')) {\n\t  switch (pattern[index+1]) {\n          case '!':\n            if (syntax.get(RESyntax.RE_LOOKAHEAD)) {\n              pure = true;\n              negativelh = true;\n              lookAhead = true;\n              index += 2;\n            }\n            break;\n          case '=':\n            if (syntax.get(RESyntax.RE_LOOKAHEAD)) {\n              pure = true;\n              lookAhead = true;\n              index += 2;\n            }\n            break;\n\t  case ':':\n\t    if (syntax.get(RESyntax.RE_PURE_GROUPING)) {\n\t      pure = true;\n\t      index += 2;\n\t    }\n\t    break;\n\t  case '#':\n\t    if (syntax.get(RESyntax.RE_COMMENTS)) {\n\t      comment = true;\n\t    }\n\t    break;\n          default:\n            throw new REException(getLocalizedMessage(\"repeat.no.token\"), REException.REG_BADRPT, index);\n\t  }\n\t}\n\n\tif (index >= pLength) {\n\t    throw new REException(getLocalizedMessage(\"unmatched.paren\"), REException.REG_ESUBREG,index);\n\t}\n\n\t// find end of subexpression\n\tint endIndex = index;\n\tint nextIndex = index;\n\tint nested = 0;\n\n\twhile ( ((nextIndex = getCharUnit(pattern,endIndex,unit)) > 0)\n\t\t&& !(nested == 0 && (unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) )\n\t  if ((endIndex = nextIndex) >= pLength)\n\t    throw new REException(getLocalizedMessage(\"subexpr.no.end\"),REException.REG_ESUBREG,nextIndex);\n\t  else if (unit.ch == '(' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))\n\t    nested++;\n\t  else if (unit.ch == ')' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))\n\t    nested--;\n\n\t// endIndex is now position at a ')','\\)' \n\t// nextIndex is end of string or position after ')' or '\\)'\n\n\tif (comment) index = nextIndex;\n\telse { // not a comment\n\t  // create RE subexpression as token.\n\t  addToken(currentToken);\n\t  if (!pure) {\n\t    numSubs++;\n\t  }\n\n\t  int useIndex = (pure || lookAhead) ? 0 : nextSub + numSubs;\n\t  currentToken = new RE(String.valueOf(pattern,index,endIndex-index).toCharArray(),cflags,syntax,useIndex,nextSub + numSubs);\n\t  numSubs += ((RE) currentToken).getNumSubs();\n\n          if (lookAhead) {\n\t      currentToken = new RETokenLookAhead(currentToken,negativelh);\n\t  }\n\n\t  index = nextIndex;\n\t} // not a comment\n      } // subexpression\n    \n      // UNMATCHED RIGHT PAREN\n      // ) or \\) throw exception if\n      // !syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD)\n      else if (!syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) && ((unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))) {\n\tthrow new REException(getLocalizedMessage(\"unmatched.paren\"),REException.REG_EPAREN,index);\n      }\n\n      // START OF LINE OPERATOR\n      //  ^\n\n      else if ((unit.ch == '^') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = null;\n\taddToken(new RETokenStart(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));\n      }\n\n      // END OF LINE OPERATOR\n      //  $\n\n      else if ((unit.ch == '$') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = null;\n\taddToken(new RETokenEnd(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));\n      }\n\n      // MATCH-ANY-CHARACTER OPERATOR (except possibly newline and null)\n      //  .\n\n      else if ((unit.ch == '.') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenAny(subIndex,syntax.get(RESyntax.RE_DOT_NEWLINE) || ((cflags & REG_DOT_NEWLINE) > 0),syntax.get(RESyntax.RE_DOT_NOT_NULL));\n      }\n\n      // ZERO-OR-MORE REPEAT OPERATOR\n      //  *\n\n      else if ((unit.ch == '*') && !unit.bk) {\n\tif (currentToken == null)\n          throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenRepeated)\n          throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n\t  throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\tif (currentToken.getMinimumLength() == 0)\n\t  throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,index);\n\tcurrentToken = setRepeated(currentToken,0,Integer.MAX_VALUE,index);\n      }\n\n      // ONE-OR-MORE REPEAT OPERATOR\n      //  + | \\+ depending on RE_BK_PLUS_QM\n      //  not available if RE_LIMITED_OPS is set\n\n      else if ((unit.ch == '+') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) {\n\tif (currentToken == null)\n          throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenRepeated)\n          throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n\t  throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\tif (currentToken.getMinimumLength() == 0)\n\t  throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,index);\n\tcurrentToken = setRepeated(currentToken,1,Integer.MAX_VALUE,index);\n      }\n\n      // ZERO-OR-ONE REPEAT OPERATOR / STINGY MATCHING OPERATOR\n      //  ? | \\? depending on RE_BK_PLUS_QM\n      //  not available if RE_LIMITED_OPS is set\n      //  stingy matching if RE_STINGY_OPS is set and it follows a quantifier\n\n      else if ((unit.ch == '?') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) {\n\tif (currentToken == null) throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\n\t// Check for stingy matching on RETokenRepeated\n\tif (currentToken instanceof RETokenRepeated) {\n          if (syntax.get(RESyntax.RE_STINGY_OPS) && !((RETokenRepeated)currentToken).isStingy())\n            ((RETokenRepeated)currentToken).makeStingy();\n          else\n            throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n        }\n        else if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n          throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\telse\n\t  currentToken = setRepeated(currentToken,0,1,index);\n      }\n\t\n      // BACKREFERENCE OPERATOR\n      //  \\1 \\2 ... \\9\n      // not available if RE_NO_BK_REFS is set\n\n      else if (unit.bk && Character.isDigit(unit.ch) && !syntax.get(RESyntax.RE_NO_BK_REFS)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenBackRef(subIndex,Character.digit(unit.ch,10),insens);\n      }\n\n      // START OF STRING OPERATOR\n      //  \\A if RE_STRING_ANCHORS is set\n      \n      else if (unit.bk && (unit.ch == 'A') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenStart(subIndex,null);\n      }\n\n      // WORD BREAK OPERATOR\n      //  \\b if ????\n\n      else if (unit.bk && (unit.ch == 'b') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, false);\n      } \n\n      // WORD BEGIN OPERATOR \n      //  \\< if ????\n      else if (unit.bk && (unit.ch == '<')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN, false);\n      } \n\n      // WORD END OPERATOR \n      //  \\> if ????\n      else if (unit.bk && (unit.ch == '>')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.END, false);\n      } \n\n      // NON-WORD BREAK OPERATOR\n      // \\B if ????\n\n      else if (unit.bk && (unit.ch == 'B') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, true);\n      } \n\n      \n      // DIGIT OPERATOR\n      //  \\d if RE_CHAR_CLASS_ESCAPES is set\n      \n      else if (unit.bk && (unit.ch == 'd') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,false);\n      }\n\n      // NON-DIGIT OPERATOR\n      //  \\D\n\n\telse if (unit.bk && (unit.ch == 'D') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,true);\n\t}\n\n\t// NEWLINE ESCAPE\n        //  \\n\n\n\telse if (unit.bk && (unit.ch == 'n')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\n',false);\n\t}\n\n\t// RETURN ESCAPE\n        //  \\r\n\n\telse if (unit.bk && (unit.ch == 'r')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\r',false);\n\t}\n\n\t// WHITESPACE OPERATOR\n        //  \\s if RE_CHAR_CLASS_ESCAPES is set\n\n\telse if (unit.bk && (unit.ch == 's') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,false);\n\t}\n\n\t// NON-WHITESPACE OPERATOR\n        //  \\S\n\n\telse if (unit.bk && (unit.ch == 'S') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,true);\n\t}\n\n\t// TAB ESCAPE\n        //  \\t\n\n\telse if (unit.bk && (unit.ch == 't')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\t',false);\n\t}\n\n\t// ALPHANUMERIC OPERATOR\n        //  \\w\n\n\telse if (unit.bk && (unit.ch == 'w') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,false);\n\t}\n\n\t// NON-ALPHANUMERIC OPERATOR\n        //  \\W\n\n\telse if (unit.bk && (unit.ch == 'W') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,true);\n\t}\n\n\t// END OF STRING OPERATOR\n        //  \\Z\n\n\telse if (unit.bk && (unit.ch == 'Z') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenEnd(subIndex,null);\n\t}\n\n\t// NON-SPECIAL CHARACTER (or escape to make literal)\n        //  c | \\* for example\n\n\telse {  // not a special character\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,unit.ch,insens);\n\t} \n      } // end while\n\n    // Add final buffered token and an EndSub marker\n    addToken(currentToken);\n      \n    if (branches != null) {\n\tbranches.addElement(new RE(firstToken,lastToken,numSubs,subIndex,minimumLength));\n\tbranches.trimToSize(); // compact the Vector\n\tminimumLength = 0;\n\tfirstToken = lastToken = null;\n\taddToken(new RETokenOneOf(subIndex,branches,false));\n    } \n    else addToken(new RETokenEndSub(subIndex));\n\n  }\n\n  private static int getCharUnit(char[] input, int index, CharUnit unit) throws REException {\n    unit.ch = input[index++];\n    if (unit.bk = (unit.ch == '\\\\'))\n      if (index < input.length)\n\tunit.ch = input[index++];\n      else throw new REException(getLocalizedMessage(\"ends.with.backslash\"),REException.REG_ESCAPE,index);\n    return index;\n  }\n\n  /**\n   * Checks if the regular expression matches the input in its entirety.\n   *\n   * @param input The input text.\n   */\n  public boolean isMatch(Object input) {\n    return isMatch(input,0,0);\n  }\n  \n  /**\n   * Checks if the input string, starting from index, is an exact match of\n   * this regular expression.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   */\n  public boolean isMatch(Object input,int index) {\n    return isMatch(input,index,0);\n  }\n  \n\n  /**\n   * Checks if the input, starting from index and using the specified\n   * execution flags, is an exact match of this regular expression.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   */\n  public boolean isMatch(Object input,int index,int eflags) {\n    return isMatchImpl(makeCharIndexed(input,index),index,eflags);\n  }\n\n  private boolean isMatchImpl(CharIndexed input, int index, int eflags) {\n    if (firstToken == null)  // Trivial case\n      return (input.charAt(0) == CharIndexed.OUT_OF_BOUNDS);\n    REMatch m = new REMatch(numSubs, index, eflags);\n    if (firstToken.match(input, m)) {\n\twhile (m != null) {\n\t    if (input.charAt(m.index) == CharIndexed.OUT_OF_BOUNDS) {\n\t\treturn true;\n\t    }\n\t    m = m.next;\n\t}\n    }\n    return false;\n  }\n    \n  /**\n   * Returns the maximum number of subexpressions in this regular expression.\n   * If the expression contains branches, the value returned will be the\n   * maximum subexpressions in any of the branches.\n   */\n  public int getNumSubs() {\n    return numSubs;\n  }\n\n  // Overrides REToken.setUncle\n  void setUncle(REToken uncle) {\n      if (lastToken != null) {\n\t  lastToken.setUncle(uncle);\n      } else super.setUncle(uncle); // to deal with empty subexpressions\n  }\n\n  // Overrides REToken.chain\n\n  boolean chain(REToken next) {\n    super.chain(next);\n    setUncle(next);\n    return true;\n  }\n\n  /**\n   * Returns the minimum number of characters that could possibly\n   * constitute a match of this regular expression.\n   */\n  public int getMinimumLength() {\n      return minimumLength;\n  }\n\n  /**\n   * Returns an array of all matches found in the input.\n   *\n   * If the regular expression allows the empty string to match, it will\n   * substitute matches at all positions except the end of the input.\n   *\n   * @param input The input text.\n   * @return a non-null (but possibly zero-length) array of matches\n   */\n  public REMatch[] getAllMatches(Object input) {\n    return getAllMatches(input,0,0);\n  }\n\n  /**\n   * Returns an array of all matches found in the input,\n   * beginning at the specified index position.\n   *\n   * If the regular expression allows the empty string to match, it will\n   * substitute matches at all positions except the end of the input.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @return a non-null (but possibly zero-length) array of matches\n   */\n  public REMatch[] getAllMatches(Object input, int index) {\n    return getAllMatches(input,index,0);\n  }\n\n  /**\n   * Returns an array of all matches found in the input string,\n   * beginning at the specified index position and using the specified\n   * execution flags.\n   *\n   * If the regular expression allows the empty string to match, it will\n   * substitute matches at all positions except the end of the input.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @return a non-null (but possibly zero-length) array of matches\n   */\n  public REMatch[] getAllMatches(Object input, int index, int eflags) {\n    return getAllMatchesImpl(makeCharIndexed(input,index),index,eflags);\n  }\n\n  // this has been changed since 1.03 to be non-overlapping matches\n  private REMatch[] getAllMatchesImpl(CharIndexed input, int index, int eflags) {\n    Vector all = new Vector();\n    REMatch m = null;\n    while ((m = getMatchImpl(input,index,eflags,null)) != null) {\n      all.addElement(m);\n      index = m.getEndIndex();\n      if (m.end[0] == 0) {   // handle pathological case of zero-length match\n\tindex++;\n\tinput.move(1);\n      } else {\n\tinput.move(m.end[0]);\n      }\n      if (!input.isValid()) break;\n    }\n    REMatch[] mset = new REMatch[all.size()];\n    all.copyInto(mset);\n    return mset;\n  }\n  \n    /* Implements abstract method REToken.match() */\n    boolean match(CharIndexed input, REMatch mymatch) { \n\tif (firstToken == null) return next(input, mymatch);\n\n\t// Note the start of this subexpression\n\tmymatch.start[subIndex] = mymatch.index;\n\n\treturn firstToken.match(input, mymatch);\n    }\n  \n  /**\n   * Returns the first match found in the input.  If no match is found,\n   * null is returned.\n   *\n   * @param input The input text.\n   * @return An REMatch instance referencing the match, or null if none.\n   */\n  public REMatch getMatch(Object input) {\n    return getMatch(input,0,0);\n  }\n  \n  /**\n   * Returns the first match found in the input, beginning\n   * the search at the specified index.  If no match is found,\n   * returns null.\n   *\n   * @param input The input text.\n   * @param index The offset within the text to begin looking for a match.\n   * @return An REMatch instance referencing the match, or null if none.\n   */\n  public REMatch getMatch(Object input, int index) {\n    return getMatch(input,index,0);\n  }\n  \n  /**\n   * Returns the first match found in the input, beginning\n   * the search at the specified index, and using the specified\n   * execution flags.  If no match is found, returns null.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @return An REMatch instance referencing the match, or null if none.\n   */\n  public REMatch getMatch(Object input, int index, int eflags) {\n    return getMatch(input,index,eflags,null);\n  }\n\n  /**\n   * Returns the first match found in the input, beginning the search\n   * at the specified index, and using the specified execution flags.\n   * If no match is found, returns null.  If a StringBuffer is\n   * provided and is non-null, the contents of the input text from the\n   * index to the beginning of the match (or to the end of the input,\n   * if there is no match) are appended to the StringBuffer.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @param buffer The StringBuffer to save pre-match text in.\n   * @return An REMatch instance referencing the match, or null if none.  */\n  public REMatch getMatch(Object input, int index, int eflags, StringBuffer buffer) {\n    return getMatchImpl(makeCharIndexed(input,index),index,eflags,buffer);\n  }\n\n  REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) {\n      // Create a new REMatch to hold results\n      REMatch mymatch = new REMatch(numSubs, anchor, eflags);\n      do {\n\t  // Optimization: check if anchor + minimumLength > length\n\t  if (minimumLength == 0 || input.charAt(minimumLength-1) != CharIndexed.OUT_OF_BOUNDS) {\n\t      if (match(input, mymatch)) {\n\t\t  // Find longest match of them all to observe leftmost longest\n\t\t  REMatch longest = mymatch;\n\t\t  while ((mymatch = mymatch.next) != null) {\n\t\t      if (mymatch.index > longest.index) {\n\t\t\t  longest = mymatch;\n\t\t      }\n\t\t  }\n\t\t  \n\t\t  longest.end[0] = longest.index;\n\t\t  longest.finish(input);\n\t\t  return longest;\n\t      }\n\t  }\n\t  mymatch.clear(++anchor);\n\t  // Append character to buffer if needed\n\t  if (buffer != null && input.charAt(0) != CharIndexed.OUT_OF_BOUNDS) {\n\t      buffer.append(input.charAt(0));\n\t  }\n      } while (input.move(1));\n      \n      // Special handling at end of input for e.g. \"$\"\n      if (minimumLength == 0) {\n\t  if (match(input, mymatch)) {\n\t      mymatch.finish(input);\n\t      return mymatch;\n\t  }\n      }\n\n      return null;\n  }\n\n  /**\n   * Returns an REMatchEnumeration that can be used to iterate over the\n   * matches found in the input text.\n   *\n   * @param input The input text.\n   * @return A non-null REMatchEnumeration instance.\n   */\n  public REMatchEnumeration getMatchEnumeration(Object input) {\n    return getMatchEnumeration(input,0,0);\n  }\n\n\n  /**\n   * Returns an REMatchEnumeration that can be used to iterate over the\n   * matches found in the input text.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @return A non-null REMatchEnumeration instance, with its input cursor\n   *  set to the index position specified.\n   */\n  public REMatchEnumeration getMatchEnumeration(Object input, int index) {\n    return getMatchEnumeration(input,index,0);\n  }\n\n  /**\n   * Returns an REMatchEnumeration that can be used to iterate over the\n   * matches found in the input text.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @return A non-null REMatchEnumeration instance, with its input cursor\n   *  set to the index position specified.\n   */\n  public REMatchEnumeration getMatchEnumeration(Object input, int index, int eflags) {\n    return new REMatchEnumeration(this,makeCharIndexed(input,index),index,eflags);\n  }\n\n\n  /**\n   * Substitutes the replacement text for the first match found in the input.\n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @return A String interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substitute(Object input,String replace) {\n    return substitute(input,replace,0,0);\n  }\n\n  /**\n   * Substitutes the replacement text for the first match found in the input\n   * beginning at the specified index position.  Specifying an index\n   * effectively causes the regular expression engine to throw away the\n   * specified number of characters. \n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @param index The offset index at which the search should be begin.\n   * @return A String containing the substring of the input, starting\n   *   at the index position, and interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substitute(Object input,String replace,int index) {\n    return substitute(input,replace,index,0);\n  }\n\n  /**\n   * Substitutes the replacement text for the first match found in the input\n   * string, beginning at the specified index position and using the\n   * specified execution flags.\n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @return A String containing the substring of the input, starting\n   *   at the index position, and interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substitute(Object input,String replace,int index,int eflags) {\n    return substituteImpl(makeCharIndexed(input,index),replace,index,eflags);\n  }\n\n  private String substituteImpl(CharIndexed input,String replace,int index,int eflags) {\n    StringBuffer buffer = new StringBuffer();\n    REMatch m = getMatchImpl(input,index,eflags,buffer);\n    if (m==null) return buffer.toString();\n    buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ?\n\t\t   replace : m.substituteInto(replace) );\n    if (input.move(m.end[0])) {\n      do {\n\tbuffer.append(input.charAt(0));\n      } while (input.move(1));\n    }\n    return buffer.toString();\n  }\n  \n  /**\n   * Substitutes the replacement text for each non-overlapping match found \n   * in the input text.\n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @return A String interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substituteAll(Object input,String replace) {\n    return substituteAll(input,replace,0,0);\n  }\n\n  /**\n   * Substitutes the replacement text for each non-overlapping match found \n   * in the input text, starting at the specified index.\n   *\n   * If the regular expression allows the empty string to match, it will\n   * substitute matches at all positions except the end of the input.\n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @param index The offset index at which the search should be begin.\n   * @return A String containing the substring of the input, starting\n   *   at the index position, and interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substituteAll(Object input,String replace,int index) {\n    return substituteAll(input,replace,index,0);\n  }\n \n  /**\n   * Substitutes the replacement text for each non-overlapping match found \n   * in the input text, starting at the specified index and using the\n   * specified execution flags.\n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @return A String containing the substring of the input, starting\n   *   at the index position, and interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substituteAll(Object input,String replace,int index,int eflags) {\n    return substituteAllImpl(makeCharIndexed(input,index),replace,index,eflags);\n  }\n\n  private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) {\n    StringBuffer buffer = new StringBuffer();\n    REMatch m;\n    while ((m = getMatchImpl(input,index,eflags,buffer)) != null) {\n\tbuffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ?\n\t\t       replace : m.substituteInto(replace) );\n      index = m.getEndIndex();\n      if (m.end[0] == 0) {\n\tchar ch = input.charAt(0);\n\tif (ch != CharIndexed.OUT_OF_BOUNDS) \n\t    buffer.append(ch);\n\tinput.move(1);\n      } else {\n\t  input.move(m.end[0]);\n      }\n\n      if (!input.isValid()) break;\n    }\n    return buffer.toString();\n  }\n  \n  /* Helper function for constructor */\n  private void addToken(REToken next) {\n    if (next == null) return;\n    minimumLength += next.getMinimumLength();\n    if (firstToken == null) {\n\tlastToken = firstToken = next;\n    } else {\n      // if chain returns false, it \"rejected\" the token due to\n      // an optimization, and next was combined with lastToken\n      if (lastToken.chain(next)) {\n\t  lastToken = next;\n      }\n    }\n  }\n\n  private static REToken setRepeated(REToken current, int min, int max, int index) throws REException {\n    if (current == null) throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n    return new RETokenRepeated(current.subIndex,current,min,max);\n  }\n\n  private static int getPosixSet(char[] pattern,int index,StringBuffer buf) {\n    // Precondition: pattern[index-1] == ':'\n    // we will return pos of closing ']'.\n    int i;\n    for (i=index; i<(pattern.length-1); i++) {\n      if ((pattern[i] == ':') && (pattern[i+1] == ']'))\n\treturn i+2;\n      buf.append(pattern[i]);\n    }\n    return index; // didn't match up\n  }\n\n  private int getMinMax(char[] input,int index,IntPair minMax,RESyntax syntax) throws REException {\n    // Precondition: input[index-1] == '{', minMax != null\n\n    boolean mustMatch = !syntax.get(RESyntax.RE_NO_BK_BRACES);\n    int startIndex = index;\n    if (index == input.length) {\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"unmatched.brace\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    }\n    \n    int min,max=0;\n    CharUnit unit = new CharUnit();\n    StringBuffer buf = new StringBuffer();\n    \n    // Read string of digits\n    do {\n      index = getCharUnit(input,index,unit);\n      if (Character.isDigit(unit.ch))\n        buf.append(unit.ch);\n    } while ((index != input.length) && Character.isDigit(unit.ch));\n\n    // Check for {} tomfoolery\n    if (buf.length() == 0) {\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    }\n\n    min = Integer.parseInt(buf.toString());\n\t\n    if ((unit.ch == '}') && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk))\n      max = min;\n    else if (index == input.length)\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.no.end\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    else if ((unit.ch == ',') && !unit.bk) {\n      buf = new StringBuffer();\n      // Read string of digits\n      while (((index = getCharUnit(input,index,unit)) != input.length) && Character.isDigit(unit.ch))\n\tbuf.append(unit.ch);\n\n      if (!((unit.ch == '}') && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk)))\n        if (mustMatch)\n          throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n        else\n          return startIndex;\n\n      // This is the case of {x,}\n      if (buf.length() == 0) max = Integer.MAX_VALUE;\n      else max = Integer.parseInt(buf.toString());\n    } else\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n\n    // We know min and max now, and they are valid.\n\n    minMax.first = min;\n    minMax.second = max;\n\n    // return the index following the '}'\n    return index;\n  }\n\n   /**\n    * Return a human readable form of the compiled regular expression,\n    * useful for debugging.\n    */\n   public String toString() {\n     StringBuffer sb = new StringBuffer();\n     dump(sb);\n     return sb.toString();\n   }\n\n  void dump(StringBuffer os) {\n    os.append('(');\n    if (subIndex == 0)\n      os.append(\"?:\");\n    if (firstToken != null)\n      firstToken.dumpAll(os);\n    os.append(')');\n  }\n\n  // Cast input appropriately or throw exception\n  private static CharIndexed makeCharIndexed(Object input, int index) {\n      // We could let a String fall through to final input, but since\n      // it's the most likely input type, we check it first.\n    if (input instanceof String)\n      return new CharIndexedString((String) input,index);\n    else if (input instanceof char[])\n      return new CharIndexedCharArray((char[]) input,index);\n    else if (input instanceof StringBuffer)\n      return new CharIndexedStringBuffer((StringBuffer) input,index);\n    else if (input instanceof InputStream)\n      return new CharIndexedInputStream((InputStream) input,index);\n    else if (input instanceof Reader)\n\treturn new CharIndexedReader((Reader) input, index);\n    else if (input instanceof CharIndexed)\n\treturn (CharIndexed) input; // do we lose index info?\n    else \n\treturn new CharIndexedString(input.toString(), index);", "functions": [{"function_name": "version", "code": "  public static final String version() {\n    return VERSION;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalizedMessage", "code": "  static final String getLocalizedMessage(String key) {\n    return messages.getString(key);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "initialize", "code": "  protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {\n      char[] pattern;\n    if (patternObj instanceof String) {\n      pattern = ((String) patternObj).toCharArray();\n    } else if (patternObj instanceof char[]) {\n      pattern = (char[]) patternObj;\n    } else if (patternObj instanceof StringBuffer) {\n      pattern = new char [((StringBuffer) patternObj).length()];\n      ((StringBuffer) patternObj).getChars(0,pattern.length,pattern,0);\n    } else {\n\tpattern = patternObj.toString().toCharArray();\n    }\n\n    int pLength = pattern.length;\n\n    numSubs = 0; // Number of subexpressions in this token.\n    Vector branches = null;\n\n    // linked list of tokens (sort of -- some closed loops can exist)\n    firstToken = lastToken = null;\n\n    // Precalculate these so we don't pay for the math every time we\n    // need to access them.\n    boolean insens = ((cflags & REG_ICASE) > 0);\n\n    // Parse pattern into tokens.  Does anyone know if it's more efficient\n    // to use char[] than a String.charAt()?  I'm assuming so.\n\n    // index tracks the position in the char array\n    int index = 0;\n\n    // this will be the current parse character (pattern[index])\n    CharUnit unit = new CharUnit();\n\n    // This is used for {x,y} calculations\n    IntPair minMax = new IntPair();\n\n    // Buffer a token so we can create a TokenRepeated, etc.\n    REToken currentToken = null;\n    char ch;\n\n    while (index < pLength) {\n      // read the next character unit (including backslash escapes)\n      index = getCharUnit(pattern,index,unit);\n\n      // ALTERNATION OPERATOR\n      //  \\| or | (if RE_NO_BK_VBAR) or newline (if RE_NEWLINE_ALT)\n      //  not available if RE_LIMITED_OPS is set\n\n      // TODO: the '\\n' literal here should be a test against REToken.newline,\n      // which unfortunately may be more than a single character.\n      if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ unit.bk))\n\t     || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\\n') && !unit.bk) )\n\t   && !syntax.get(RESyntax.RE_LIMITED_OPS)) {\n\t// make everything up to here be a branch. create vector if nec.\n\taddToken(currentToken);\n\tRE theBranch = new RE(firstToken, lastToken, numSubs, subIndex, minimumLength);\n\tminimumLength = 0;\n\tif (branches == null) {\n\t    branches = new Vector();\n\t}\n\tbranches.addElement(theBranch);\n\tfirstToken = lastToken = currentToken = null;\n      }\n      \n      // INTERVAL OPERATOR:\n      //  {x} | {x,} | {x,y}  (RE_INTERVALS && RE_NO_BK_BRACES)\n      //  \\{x\\} | \\{x,\\} | \\{x,y\\} (RE_INTERVALS && !RE_NO_BK_BRACES)\n      //\n      // OPEN QUESTION: \n      //  what is proper interpretation of '{' at start of string?\n\n      else if ((unit.ch == '{') && syntax.get(RESyntax.RE_INTERVALS) && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk)) {\n\tint newIndex = getMinMax(pattern,index,minMax,syntax);\n        if (newIndex > index) {\n          if (minMax.first > minMax.second)\n            throw new REException(getLocalizedMessage(\"interval.order\"),REException.REG_BADRPT,newIndex);\n          if (currentToken == null)\n            throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,newIndex);\n          if (currentToken instanceof RETokenRepeated) \n            throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,newIndex);\n          if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n            throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,newIndex);\n          if ((currentToken.getMinimumLength() == 0) && (minMax.second == Integer.MAX_VALUE))\n            throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,newIndex);\n          index = newIndex;\n          currentToken = setRepeated(currentToken,minMax.first,minMax.second,index); \n        }\n        else {\n          addToken(currentToken);\n          currentToken = new RETokenChar(subIndex,unit.ch,insens);\n        } \n      }\n      \n      // LIST OPERATOR:\n      //  [...] | [^...]\n\n      else if ((unit.ch == '[') && !unit.bk) {\n\tVector options = new Vector();\n\tboolean negative = false;\n\tchar lastChar = 0;\n\tif (index == pLength) throw new REException(getLocalizedMessage(\"unmatched.bracket\"),REException.REG_EBRACK,index);\n\t\n\t// Check for initial caret, negation\n\tif ((ch = pattern[index]) == '^') {\n\t  negative = true;\n\t  if (++index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t  ch = pattern[index];\n\t}\n\n\t// Check for leading right bracket literal\n\tif (ch == ']') {\n\t  lastChar = ch;\n\t  if (++index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t}\n\n\twhile ((ch = pattern[index++]) != ']') {\n\t  if ((ch == '-') && (lastChar != 0)) {\n\t    if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t    if ((ch = pattern[index]) == ']') {\n\t      options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t      lastChar = '-';\n\t    } else {\n\t      options.addElement(new RETokenRange(subIndex,lastChar,ch,insens));\n\t      lastChar = 0;\n\t      index++;\n\t    }\n          } else if ((ch == '\\\\') && syntax.get(RESyntax.RE_BACKSLASH_ESCAPE_IN_LISTS)) {\n            if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t    int posixID = -1;\n\t    boolean negate = false;\n            char asciiEsc = 0;\n\t    if ((\"dswDSW\".indexOf(pattern[index]) != -1) && syntax.get(RESyntax.RE_CHAR_CLASS_ESC_IN_LISTS)) {\n\t      switch (pattern[index]) {\n\t      case 'D':\n\t\tnegate = true;\n\t      case 'd':\n\t\tposixID = RETokenPOSIX.DIGIT;\n\t\tbreak;\n\t      case 'S':\n\t\tnegate = true;\n\t      case 's':\n\t\tposixID = RETokenPOSIX.SPACE;\n\t\tbreak;\n\t      case 'W':\n\t\tnegate = true;\n\t      case 'w':\n\t\tposixID = RETokenPOSIX.ALNUM;\n\t\tbreak;\n\t      }\n\t    }\n            else if (\"nrt\".indexOf(pattern[index]) != -1) {\n              switch (pattern[index]) {\n                case 'n':\n                  asciiEsc = '\\n';\n                  break;\n                case 't':\n                  asciiEsc = '\\t';\n                  break;\n                case 'r':\n                  asciiEsc = '\\r';\n                  break;\n              }\n            }\n\t    if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    \n\t    if (posixID != -1) {\n\t      options.addElement(new RETokenPOSIX(subIndex,posixID,insens,negate));\n\t    } else if (asciiEsc != 0) {\n\t      lastChar = asciiEsc;\n\t    } else {\n\t      lastChar = pattern[index];\n\t    }\n\t    ++index;\n\t  } else if ((ch == '[') && (syntax.get(RESyntax.RE_CHAR_CLASSES)) && (index < pLength) && (pattern[index] == ':')) {\n\t    StringBuffer posixSet = new StringBuffer();\n\t    index = getPosixSet(pattern,index+1,posixSet);\n\t    int posixId = RETokenPOSIX.intValue(posixSet.toString());\n\t    if (posixId != -1)\n\t      options.addElement(new RETokenPOSIX(subIndex,posixId,insens,false));\n\t  } else {\n\t    if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    lastChar = ch;\n\t  }\n\t  if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t} // while in list\n\t// Out of list, index is one past ']'\n\t    \n\tif (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    \n\t// Create a new RETokenOneOf\n\taddToken(currentToken);\n\toptions.trimToSize();\n\tcurrentToken = new RETokenOneOf(subIndex,options,negative);\n      }\n\n      // SUBEXPRESSIONS\n      //  (...) | \\(...\\) depending on RE_NO_BK_PARENS\n\n      else if ((unit.ch == '(') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) {\n\tboolean pure = false;\n\tboolean comment = false;\n        boolean lookAhead = false;\n        boolean negativelh = false;\n\tif ((index+1 < pLength) && (pattern[index] == '?')) {\n\t  switch (pattern[index+1]) {\n          case '!':\n            if (syntax.get(RESyntax.RE_LOOKAHEAD)) {\n              pure = true;\n              negativelh = true;\n              lookAhead = true;\n              index += 2;\n            }\n            break;\n          case '=':\n            if (syntax.get(RESyntax.RE_LOOKAHEAD)) {\n              pure = true;\n              lookAhead = true;\n              index += 2;\n            }\n            break;\n\t  case ':':\n\t    if (syntax.get(RESyntax.RE_PURE_GROUPING)) {\n\t      pure = true;\n\t      index += 2;\n\t    }\n\t    break;\n\t  case '#':\n\t    if (syntax.get(RESyntax.RE_COMMENTS)) {\n\t      comment = true;\n\t    }\n\t    break;\n          default:\n            throw new REException(getLocalizedMessage(\"repeat.no.token\"), REException.REG_BADRPT, index);\n\t  }\n\t}\n\n\tif (index >= pLength) {\n\t    throw new REException(getLocalizedMessage(\"unmatched.paren\"), REException.REG_ESUBREG,index);\n\t}\n\n\t// find end of subexpression\n\tint endIndex = index;\n\tint nextIndex = index;\n\tint nested = 0;\n\n\twhile ( ((nextIndex = getCharUnit(pattern,endIndex,unit)) > 0)\n\t\t&& !(nested == 0 && (unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) )\n\t  if ((endIndex = nextIndex) >= pLength)\n\t    throw new REException(getLocalizedMessage(\"subexpr.no.end\"),REException.REG_ESUBREG,nextIndex);\n\t  else if (unit.ch == '(' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))\n\t    nested++;\n\t  else if (unit.ch == ')' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))\n\t    nested--;\n\n\t// endIndex is now position at a ')','\\)' \n\t// nextIndex is end of string or position after ')' or '\\)'\n\n\tif (comment) index = nextIndex;\n\telse { // not a comment\n\t  // create RE subexpression as token.\n\t  addToken(currentToken);\n\t  if (!pure) {\n\t    numSubs++;\n\t  }\n\n\t  int useIndex = (pure || lookAhead) ? 0 : nextSub + numSubs;\n\t  currentToken = new RE(String.valueOf(pattern,index,endIndex-index).toCharArray(),cflags,syntax,useIndex,nextSub + numSubs);\n\t  numSubs += ((RE) currentToken).getNumSubs();\n\n          if (lookAhead) {\n\t      currentToken = new RETokenLookAhead(currentToken,negativelh);\n\t  }\n\n\t  index = nextIndex;\n\t} // not a comment\n      } // subexpression\n    \n      // UNMATCHED RIGHT PAREN\n      // ) or \\) throw exception if\n      // !syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD)\n      else if (!syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) && ((unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))) {\n\tthrow new REException(getLocalizedMessage(\"unmatched.paren\"),REException.REG_EPAREN,index);\n      }\n\n      // START OF LINE OPERATOR\n      //  ^\n\n      else if ((unit.ch == '^') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = null;\n\taddToken(new RETokenStart(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));\n      }\n\n      // END OF LINE OPERATOR\n      //  $\n\n      else if ((unit.ch == '$') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = null;\n\taddToken(new RETokenEnd(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));\n      }\n\n      // MATCH-ANY-CHARACTER OPERATOR (except possibly newline and null)\n      //  .\n\n      else if ((unit.ch == '.') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenAny(subIndex,syntax.get(RESyntax.RE_DOT_NEWLINE) || ((cflags & REG_DOT_NEWLINE) > 0),syntax.get(RESyntax.RE_DOT_NOT_NULL));\n      }\n\n      // ZERO-OR-MORE REPEAT OPERATOR\n      //  *\n\n      else if ((unit.ch == '*') && !unit.bk) {\n\tif (currentToken == null)\n          throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenRepeated)\n          throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n\t  throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\tif (currentToken.getMinimumLength() == 0)\n\t  throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,index);\n\tcurrentToken = setRepeated(currentToken,0,Integer.MAX_VALUE,index);\n      }\n\n      // ONE-OR-MORE REPEAT OPERATOR\n      //  + | \\+ depending on RE_BK_PLUS_QM\n      //  not available if RE_LIMITED_OPS is set\n\n      else if ((unit.ch == '+') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) {\n\tif (currentToken == null)\n          throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenRepeated)\n          throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n\t  throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\tif (currentToken.getMinimumLength() == 0)\n\t  throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,index);\n\tcurrentToken = setRepeated(currentToken,1,Integer.MAX_VALUE,index);\n      }\n\n      // ZERO-OR-ONE REPEAT OPERATOR / STINGY MATCHING OPERATOR\n      //  ? | \\? depending on RE_BK_PLUS_QM\n      //  not available if RE_LIMITED_OPS is set\n      //  stingy matching if RE_STINGY_OPS is set and it follows a quantifier\n\n      else if ((unit.ch == '?') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) {\n\tif (currentToken == null) throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\n\t// Check for stingy matching on RETokenRepeated\n\tif (currentToken instanceof RETokenRepeated) {\n          if (syntax.get(RESyntax.RE_STINGY_OPS) && !((RETokenRepeated)currentToken).isStingy())\n            ((RETokenRepeated)currentToken).makeStingy();\n          else\n            throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n        }\n        else if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n          throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\telse\n\t  currentToken = setRepeated(currentToken,0,1,index);\n      }\n\t\n      // BACKREFERENCE OPERATOR\n      //  \\1 \\2 ... \\9\n      // not available if RE_NO_BK_REFS is set\n\n      else if (unit.bk && Character.isDigit(unit.ch) && !syntax.get(RESyntax.RE_NO_BK_REFS)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenBackRef(subIndex,Character.digit(unit.ch,10),insens);\n      }\n\n      // START OF STRING OPERATOR\n      //  \\A if RE_STRING_ANCHORS is set\n      \n      else if (unit.bk && (unit.ch == 'A') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenStart(subIndex,null);\n      }\n\n      // WORD BREAK OPERATOR\n      //  \\b if ????\n\n      else if (unit.bk && (unit.ch == 'b') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, false);\n      } \n\n      // WORD BEGIN OPERATOR \n      //  \\< if ????\n      else if (unit.bk && (unit.ch == '<')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN, false);\n      } \n\n      // WORD END OPERATOR \n      //  \\> if ????\n      else if (unit.bk && (unit.ch == '>')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.END, false);\n      } \n\n      // NON-WORD BREAK OPERATOR\n      // \\B if ????\n\n      else if (unit.bk && (unit.ch == 'B') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, true);\n      } \n\n      \n      // DIGIT OPERATOR\n      //  \\d if RE_CHAR_CLASS_ESCAPES is set\n      \n      else if (unit.bk && (unit.ch == 'd') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,false);\n      }\n\n      // NON-DIGIT OPERATOR\n      //  \\D\n\n\telse if (unit.bk && (unit.ch == 'D') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,true);\n\t}\n\n\t// NEWLINE ESCAPE\n        //  \\n\n\n\telse if (unit.bk && (unit.ch == 'n')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\n',false);\n\t}\n\n\t// RETURN ESCAPE\n        //  \\r\n\n\telse if (unit.bk && (unit.ch == 'r')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\r',false);\n\t}\n\n\t// WHITESPACE OPERATOR\n        //  \\s if RE_CHAR_CLASS_ESCAPES is set\n\n\telse if (unit.bk && (unit.ch == 's') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,false);\n\t}\n\n\t// NON-WHITESPACE OPERATOR\n        //  \\S\n\n\telse if (unit.bk && (unit.ch == 'S') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,true);\n\t}\n\n\t// TAB ESCAPE\n        //  \\t\n\n\telse if (unit.bk && (unit.ch == 't')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\t',false);\n\t}\n\n\t// ALPHANUMERIC OPERATOR\n        //  \\w\n\n\telse if (unit.bk && (unit.ch == 'w') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,false);\n\t}\n\n\t// NON-ALPHANUMERIC OPERATOR\n        //  \\W\n\n\telse if (unit.bk && (unit.ch == 'W') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,true);\n\t}\n\n\t// END OF STRING OPERATOR\n        //  \\Z\n\n\telse if (unit.bk && (unit.ch == 'Z') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenEnd(subIndex,null);\n\t}\n\n\t// NON-SPECIAL CHARACTER (or escape to make literal)\n        //  c | \\* for example\n\n\telse {  // not a special character\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,unit.ch,insens);\n\t} \n      } // end while\n\n    // Add final buffered token and an EndSub marker\n    addToken(currentToken);\n      \n    if (branches != null) {\n\tbranches.addElement(new RE(firstToken,lastToken,numSubs,subIndex,minimumLength));\n\tbranches.trimToSize(); // compact the Vector\n\tminimumLength = 0;\n\tfirstToken = lastToken = null;\n\taddToken(new RETokenOneOf(subIndex,branches,false));\n    } \n    else addToken(new RETokenEndSub(subIndex));", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "IF", "LOOP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "IF", "ASSIGN", "IF", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "SWITCH", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "IF", "IF", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "SWITCH", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [0, 19], [2, 20], [0, 21], [0, 22], [11, 23], [11, 24], [1, 25], [18, 26], [2, 27], [4, 28], [5, 29], [6, 30], [7, 31], [8, 32], [21, 33], [9, 34], [22, 35], [23, 36], [23, 37], [25, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [27, 44], [27, 45], [2, 46], [32, 47], [32, 48], [33, 49], [36, 50], [11, 51], [39, 52], [40, 53], [41, 54], [43, 55], [44, 56], [44, 57], [27, 58], [27, 59], [45, 60], [45, 61], [46, 62], [23, 63], [52, 64], [53, 65], [56, 66], [56, 67], [44, 68], [44, 69], [57, 70], [57, 71], [27, 72], [27, 73], [58, 74], [27, 75], [27, 76], [61, 77], [61, 78], [36, 79], [36, 80], [66, 81], [66, 82], [56, 83], [56, 84], [56, 85], [56, 86], [56, 87], [56, 88], [56, 89], [56, 90], [67, 91], [68, 92], [70, 93], [71, 94], [71, 95], [72, 96], [74, 97], [75, 98], [59, 99], [77, 100], [78, 101], [78, 102], [79, 103], [81, 104], [81, 105], [66, 106], [66, 107], [66, 108], [66, 109], [66, 110], [66, 111], [66, 112], [66, 113], [66, 114], [66, 115], [66, 116], [82, 117], [82, 118], [56, 119], [56, 120], [56, 121], [83, 122], [84, 123], [85, 124], [86, 125], [87, 126], [87, 127], [91, 128], [68, 129], [68, 130], [68, 131], [68, 132], [68, 133], [69, 134], [95, 135], [96, 136], [58, 137], [100, 138], [100, 139], [101, 140], [102, 141], [103, 142], [104, 143], [104, 144], [81, 145], [105, 146], [105, 147], [107, 148], [107, 149], [111, 150], [112, 151], [117, 152], [118, 153], [119, 154], [83, 155], [122, 156], [84, 157], [84, 158], [123, 159], [123, 160], [85, 161], [124, 162], [86, 163], [125, 164], [125, 165], [126, 166], [88, 167], [89, 168], [90, 169], [68, 170], [68, 171], [68, 172], [68, 173], [129, 174], [129, 175], [130, 176], [130, 177], [131, 178], [131, 179], [132, 180], [132, 181], [133, 182], [133, 183], [136, 184], [137, 185], [138, 186], [143, 187], [143, 188], [144, 189], [145, 190], [146, 191], [146, 192], [106, 193], [106, 194], [106, 195], [106, 196], [148, 197], [148, 198], [148, 199], [149, 200], [149, 201], [108, 202], [111, 203], [112, 204], [151, 205], [151, 206], [113, 207], [114, 208], [115, 209], [116, 210], [155, 211], [157, 212], [157, 213], [158, 214], [158, 215], [161, 216], [161, 217], [85, 218], [86, 219], [163, 220], [163, 221], [86, 222], [166, 223], [170, 224], [172, 225], [174, 226], [175, 227], [175, 228], [176, 229], [177, 230], [177, 231], [178, 232], [180, 233], [181, 234], [182, 235], [187, 236], [187, 237], [188, 238], [104, 239], [104, 240], [104, 241], [189, 242], [190, 243], [191, 244], [192, 245], [106, 246], [106, 247], [106, 248], [106, 249], [197, 250], [197, 251], [198, 252], [199, 253], [200, 254], [200, 255], [201, 256], [201, 257], [203, 258], [205, 259], [206, 260], [212, 261], [214, 262], [214, 263], [158, 264], [158, 265], [215, 266], [215, 267], [216, 268], [220, 269], [222, 270], [223, 271], [226, 272], [228, 273], [228, 274], [229, 275], [232, 276], [233, 277], [235, 278], [236, 279], [236, 280], [237, 281], [143, 282], [143, 283], [143, 284], [238, 285], [239, 286], [240, 287], [243, 288], [248, 289], [194, 290], [250, 291], [251, 292], [251, 293], [252, 294], [254, 295], [255, 296], [255, 297], [257, 298], [258, 299], [204, 300], [204, 301], [204, 302], [204, 303], [204, 304], [204, 305], [204, 306], [204, 307], [204, 308], [204, 309], [204, 310], [204, 311], [204, 312], [260, 313], [261, 314], [262, 315], [214, 316], [214, 317], [214, 318], [214, 319], [214, 320], [214, 321], [214, 322], [263, 323], [263, 324], [264, 325], [265, 326], [265, 327], [266, 328], [267, 329], [268, 330], [269, 331], [272, 332], [275, 333], [276, 334], [277, 335], [278, 336], [279, 337], [279, 338], [236, 339], [236, 340], [236, 341], [236, 342], [280, 343], [187, 344], [187, 345], [281, 346], [282, 347], [283, 348], [286, 349], [193, 350], [289, 351], [289, 352], [290, 353], [290, 354], [290, 355], [291, 356], [291, 357], [292, 358], [293, 359], [294, 360], [296, 361], [297, 362], [299, 363], [300, 364], [302, 365], [305, 366], [308, 367], [311, 368], [204, 369], [314, 370], [262, 371], [262, 372], [262, 373], [262, 374], [315, 375], [315, 376], [316, 377], [316, 378], [317, 379], [318, 380], [318, 381], [322, 382], [322, 383], [324, 384], [325, 385], [325, 386], [326, 387], [330, 388], [331, 389], [337, 390], [337, 391], [279, 392], [279, 393], [279, 394], [279, 395], [338, 396], [338, 397], [236, 398], [339, 399], [339, 400], [340, 401], [340, 402], [341, 403], [341, 404], [342, 405], [342, 406], [343, 407], [344, 408], [347, 409], [349, 410], [349, 411], [349, 412], [350, 413], [352, 414], [352, 415], [356, 416], [357, 417], [364, 418], [369, 419], [262, 420], [371, 421], [372, 422], [262, 423], [375, 424], [376, 425], [376, 426], [377, 427], [378, 428], [317, 429], [379, 430], [380, 431], [318, 432], [381, 433], [381, 434], [319, 435], [320, 436], [321, 437], [382, 438], [264, 439], [264, 440], [264, 441], [264, 442], [387, 443], [390, 444], [390, 445], [337, 446], [337, 447], [391, 448], [391, 449], [279, 450], [392, 451], [392, 452], [393, 453], [393, 454], [394, 455], [394, 456], [395, 457], [395, 458], [396, 459], [397, 460], [397, 461], [398, 462], [399, 463], [400, 464], [400, 465], [401, 466], [402, 467], [402, 468], [403, 469], [405, 470], [406, 471], [408, 472], [408, 473], [409, 474], [409, 475], [409, 476], [412, 477], [412, 478], [418, 479], [302, 480], [305, 481], [305, 482], [308, 483], [308, 484], [308, 485], [311, 486], [311, 487], [311, 488], [311, 489], [371, 490], [421, 491], [372, 492], [422, 493], [373, 494], [423, 495], [374, 496], [426, 497], [426, 498], [427, 499], [316, 500], [429, 501], [380, 502], [431, 503], [431, 504], [434, 505], [434, 506], [438, 507], [439, 508], [440, 509], [441, 510], [442, 511], [443, 512], [444, 513], [444, 514], [445, 515], [445, 516], [446, 517], [446, 518], [447, 519], [447, 520], [448, 521], [449, 522], [449, 523], [450, 524], [451, 525], [452, 526], [452, 527], [453, 528], [454, 529], [454, 530], [455, 531], [457, 532], [458, 533], [461, 534], [462, 535], [463, 536], [466, 537], [469, 538], [470, 539], [473, 540], [473, 541], [476, 542], [476, 543], [480, 544], [481, 545], [482, 546], [483, 547], [484, 548], [485, 549], [486, 550], [487, 551], [488, 552], [489, 553], [490, 554], [492, 555], [494, 556], [495, 557], [498, 558], [377, 559], [377, 560], [500, 561], [504, 562], [432, 563], [432, 564], [432, 565], [432, 566], [432, 567], [432, 568], [432, 569], [432, 570], [432, 571], [506, 572], [507, 573], [513, 574], [513, 575], [514, 576], [514, 577], [390, 578], [390, 579], [516, 580], [517, 581], [517, 582], [446, 583], [519, 584], [520, 585], [523, 586], [524, 587], [525, 588], [528, 589], [531, 590], [532, 591], [536, 592], [537, 593], [538, 594], [539, 595], [540, 596], [540, 597], [555, 598], [557, 599], [502, 600], [502, 601], [502, 602], [502, 603], [502, 604], [502, 605], [432, 606], [432, 607], [432, 608], [432, 609], [432, 610], [432, 611], [574, 612], [574, 613], [575, 614], [575, 615], [444, 616], [444, 617], [577, 618], [578, 619], [517, 620], [581, 621], [582, 622], [582, 623], [583, 624], [583, 625], [584, 626], [588, 627], [589, 628], [590, 629], [591, 630], [502, 631], [502, 632], [502, 633], [607, 634], [609, 635], [611, 636], [612, 637], [612, 638], [613, 639], [513, 640], [513, 641], [615, 642], [616, 643], [618, 644], [619, 645], [620, 646], [621, 647], [624, 648], [625, 649], [626, 650], [631, 651], [632, 652], [633, 653], [637, 654], [637, 655], [638, 656], [574, 657], [574, 658], [639, 659], [640, 660], [642, 661], [643, 662], [645, 663], [646, 664], [646, 665], [647, 666], [648, 667], [654, 668], [654, 669], [655, 670], [655, 671], [612, 672], [612, 673], [656, 674], [657, 675], [660, 676], [660, 677], [667, 678], [668, 679], [668, 680], [669, 681], [669, 682], [637, 683], [637, 684], [671, 685], [672, 686], [675, 687], [679, 688], [679, 689], [680, 690], [680, 691], [654, 692], [654, 693], [682, 694], [683, 695], [685, 696], [686, 697], [688, 698], [688, 699], [689, 700], [668, 701], [668, 702], [691, 703], [692, 704], [694, 705], [695, 706], [695, 707], [698, 708], [698, 709], [699, 710], [679, 711], [679, 712], [700, 713], [701, 714], [703, 715], [704, 716], [708, 717], [708, 718], [709, 719], [709, 720], [688, 721], [688, 722], [710, 723], [711, 724], [714, 725], [717, 726], [717, 727], [718, 728], [718, 729], [698, 730], [698, 731], [720, 732], [721, 733], [724, 734], [724, 735], [726, 736], [726, 737], [727, 738], [708, 739], [708, 740], [729, 741], [730, 742], [732, 743], [733, 744], [733, 745], [736, 746], [736, 747], [737, 748], [737, 749], [717, 750], [717, 751], [738, 752], [739, 753], [741, 754], [742, 755], [746, 756], [747, 757], [747, 758], [726, 759], [726, 760], [749, 761], [750, 762], [753, 763], [756, 764], [756, 765], [736, 766], [736, 767], [758, 768], [759, 769], [761, 770], [762, 771], [762, 772], [746, 773], [746, 774], [746, 775], [746, 776], [765, 777], [766, 778], [768, 779], [769, 780], [773, 781], [775, 782], [777, 783], [778, 784], [782, 785], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 0], [20, 2], [21, 0], [22, 0], [23, 11], [24, 11], [25, 1], [26, 18], [27, 2], [28, 4], [29, 5], [30, 6], [31, 7], [32, 8], [33, 21], [34, 9], [35, 22], [36, 23], [37, 23], [38, 25], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 27], [45, 27], [46, 2], [47, 32], [48, 32], [49, 33], [50, 36], [51, 11], [52, 39], [53, 40], [54, 41], [55, 43], [56, 44], [57, 44], [58, 27], [59, 27], [60, 45], [61, 45], [62, 46], [63, 23], [64, 52], [65, 53], [66, 56], [67, 56], [68, 44], [69, 44], [70, 57], [71, 57], [72, 27], [73, 27], [74, 58], [75, 27], [76, 27], [77, 61], [78, 61], [79, 36], [80, 36], [81, 66], [82, 66], [83, 56], [84, 56], [85, 56], [86, 56], [87, 56], [88, 56], [89, 56], [90, 56], [91, 67], [92, 68], [93, 70], [94, 71], [95, 71], [96, 72], [97, 74], [98, 75], [99, 59], [100, 77], [101, 78], [102, 78], [103, 79], [104, 81], [105, 81], [106, 66], [107, 66], [108, 66], [109, 66], [110, 66], [111, 66], [112, 66], [113, 66], [114, 66], [115, 66], [116, 66], [117, 82], [118, 82], [119, 56], [120, 56], [121, 56], [122, 83], [123, 84], [124, 85], [125, 86], [126, 87], [127, 87], [128, 91], [129, 68], [130, 68], [131, 68], [132, 68], [133, 68], [134, 69], [135, 95], [136, 96], [137, 58], [138, 100], [139, 100], [140, 101], [141, 102], [142, 103], [143, 104], [144, 104], [145, 81], [146, 105], [147, 105], [148, 107], [149, 107], [150, 111], [151, 112], [152, 117], [153, 118], [154, 119], [155, 83], [156, 122], [157, 84], [158, 84], [159, 123], [160, 123], [161, 85], [162, 124], [163, 86], [164, 125], [165, 125], [166, 126], [167, 88], [168, 89], [169, 90], [170, 68], [171, 68], [172, 68], [173, 68], [174, 129], [175, 129], [176, 130], [177, 130], [178, 131], [179, 131], [180, 132], [181, 132], [182, 133], [183, 133], [184, 136], [185, 137], [186, 138], [187, 143], [188, 143], [189, 144], [190, 145], [191, 146], [192, 146], [193, 106], [194, 106], [195, 106], [196, 106], [197, 148], [198, 148], [199, 148], [200, 149], [201, 149], [202, 108], [203, 111], [204, 112], [205, 151], [206, 151], [207, 113], [208, 114], [209, 115], [210, 116], [211, 155], [212, 157], [213, 157], [214, 158], [215, 158], [216, 161], [217, 161], [218, 85], [219, 86], [220, 163], [221, 163], [222, 86], [223, 166], [224, 170], [225, 172], [226, 174], [227, 175], [228, 175], [229, 176], [230, 177], [231, 177], [232, 178], [233, 180], [234, 181], [235, 182], [236, 187], [237, 187], [238, 188], [239, 104], [240, 104], [241, 104], [242, 189], [243, 190], [244, 191], [245, 192], [246, 106], [247, 106], [248, 106], [249, 106], [250, 197], [251, 197], [252, 198], [253, 199], [254, 200], [255, 200], [256, 201], [257, 201], [258, 203], [259, 205], [260, 206], [261, 212], [262, 214], [263, 214], [264, 158], [265, 158], [266, 215], [267, 215], [268, 216], [269, 220], [270, 222], [271, 223], [272, 226], [273, 228], [274, 228], [275, 229], [276, 232], [277, 233], [278, 235], [279, 236], [280, 236], [281, 237], [282, 143], [283, 143], [284, 143], [285, 238], [286, 239], [287, 240], [288, 243], [289, 248], [290, 194], [291, 250], [292, 251], [293, 251], [294, 252], [295, 254], [296, 255], [297, 255], [298, 257], [299, 258], [300, 204], [301, 204], [302, 204], [303, 204], [304, 204], [305, 204], [306, 204], [307, 204], [308, 204], [309, 204], [310, 204], [311, 204], [312, 204], [313, 260], [314, 261], [315, 262], [316, 214], [317, 214], [318, 214], [319, 214], [320, 214], [321, 214], [322, 214], [323, 263], [324, 263], [325, 264], [326, 265], [327, 265], [328, 266], [329, 267], [330, 268], [331, 269], [332, 272], [333, 275], [334, 276], [335, 277], [336, 278], [337, 279], [338, 279], [339, 236], [340, 236], [341, 236], [342, 236], [343, 280], [344, 187], [345, 187], [346, 281], [347, 282], [348, 283], [349, 286], [350, 193], [351, 289], [352, 289], [353, 290], [354, 290], [355, 290], [356, 291], [357, 291], [358, 292], [359, 293], [360, 294], [361, 296], [362, 297], [363, 299], [364, 300], [365, 302], [366, 305], [367, 308], [368, 311], [369, 204], [370, 314], [371, 262], [372, 262], [373, 262], [374, 262], [375, 315], [376, 315], [377, 316], [378, 316], [379, 317], [380, 318], [381, 318], [382, 322], [383, 322], [384, 324], [385, 325], [386, 325], [387, 326], [388, 330], [389, 331], [390, 337], [391, 337], [392, 279], [393, 279], [394, 279], [395, 279], [396, 338], [397, 338], [398, 236], [399, 339], [400, 339], [401, 340], [402, 340], [403, 341], [404, 341], [405, 342], [406, 342], [407, 343], [408, 344], [409, 347], [410, 349], [411, 349], [412, 349], [413, 350], [414, 352], [415, 352], [416, 356], [417, 357], [418, 364], [419, 369], [420, 262], [421, 371], [422, 372], [423, 262], [424, 375], [425, 376], [426, 376], [427, 377], [428, 378], [429, 317], [430, 379], [431, 380], [432, 318], [433, 381], [434, 381], [435, 319], [436, 320], [437, 321], [438, 382], [439, 264], [440, 264], [441, 264], [442, 264], [443, 387], [444, 390], [445, 390], [446, 337], [447, 337], [448, 391], [449, 391], [450, 279], [451, 392], [452, 392], [453, 393], [454, 393], [455, 394], [456, 394], [457, 395], [458, 395], [459, 396], [460, 397], [461, 397], [462, 398], [463, 399], [464, 400], [465, 400], [466, 401], [467, 402], [468, 402], [469, 403], [470, 405], [471, 406], [472, 408], [473, 408], [474, 409], [475, 409], [476, 409], [477, 412], [478, 412], [479, 418], [480, 302], [481, 305], [482, 305], [483, 308], [484, 308], [485, 308], [486, 311], [487, 311], [488, 311], [489, 311], [490, 371], [491, 421], [492, 372], [493, 422], [494, 373], [495, 423], [496, 374], [497, 426], [498, 426], [499, 427], [500, 316], [501, 429], [502, 380], [503, 431], [504, 431], [505, 434], [506, 434], [507, 438], [508, 439], [509, 440], [510, 441], [511, 442], [512, 443], [513, 444], [514, 444], [515, 445], [516, 445], [517, 446], [518, 446], [519, 447], [520, 447], [521, 448], [522, 449], [523, 449], [524, 450], [525, 451], [526, 452], [527, 452], [528, 453], [529, 454], [530, 454], [531, 455], [532, 457], [533, 458], [534, 461], [535, 462], [536, 463], [537, 466], [538, 469], [539, 470], [540, 473], [541, 473], [542, 476], [543, 476], [544, 480], [545, 481], [546, 482], [547, 483], [548, 484], [549, 485], [550, 486], [551, 487], [552, 488], [553, 489], [554, 490], [555, 492], [556, 494], [557, 495], [558, 498], [559, 377], [560, 377], [561, 500], [562, 504], [563, 432], [564, 432], [565, 432], [566, 432], [567, 432], [568, 432], [569, 432], [570, 432], [571, 432], [572, 506], [573, 507], [574, 513], [575, 513], [576, 514], [577, 514], [578, 390], [579, 390], [580, 516], [581, 517], [582, 517], [583, 446], [584, 519], [585, 520], [586, 523], [587, 524], [588, 525], [589, 528], [590, 531], [591, 532], [592, 536], [593, 537], [594, 538], [595, 539], [596, 540], [597, 540], [598, 555], [599, 557], [600, 502], [601, 502], [602, 502], [603, 502], [604, 502], [605, 502], [606, 432], [607, 432], [608, 432], [609, 432], [610, 432], [611, 432], [612, 574], [613, 574], [614, 575], [615, 575], [616, 444], [617, 444], [618, 577], [619, 578], [620, 517], [621, 581], [622, 582], [623, 582], [624, 583], [625, 583], [626, 584], [627, 588], [628, 589], [629, 590], [630, 591], [631, 502], [632, 502], [633, 502], [634, 607], [635, 609], [636, 611], [637, 612], [638, 612], [639, 613], [640, 513], [641, 513], [642, 615], [643, 616], [644, 618], [645, 619], [646, 620], [647, 621], [648, 624], [649, 625], [650, 626], [651, 631], [652, 632], [653, 633], [654, 637], [655, 637], [656, 638], [657, 574], [658, 574], [659, 639], [660, 640], [661, 642], [662, 643], [663, 645], [664, 646], [665, 646], [666, 647], [667, 648], [668, 654], [669, 654], [670, 655], [671, 655], [672, 612], [673, 612], [674, 656], [675, 657], [676, 660], [677, 660], [678, 667], [679, 668], [680, 668], [681, 669], [682, 669], [683, 637], [684, 637], [685, 671], [686, 672], [687, 675], [688, 679], [689, 679], [690, 680], [691, 680], [692, 654], [693, 654], [694, 682], [695, 683], [696, 685], [697, 686], [698, 688], [699, 688], [700, 689], [701, 668], [702, 668], [703, 691], [704, 692], [705, 694], [706, 695], [707, 695], [708, 698], [709, 698], [710, 699], [711, 679], [712, 679], [713, 700], [714, 701], [715, 703], [716, 704], [717, 708], [718, 708], [719, 709], [720, 709], [721, 688], [722, 688], [723, 710], [724, 711], [725, 714], [726, 717], [727, 717], [728, 718], [729, 718], [730, 698], [731, 698], [732, 720], [733, 721], [734, 724], [735, 724], [736, 726], [737, 726], [738, 727], [739, 708], [740, 708], [741, 729], [742, 730], [743, 732], [744, 733], [745, 733], [746, 736], [747, 736], [748, 737], [749, 737], [750, 717], [751, 717], [752, 738], [753, 739], [754, 741], [755, 742], [756, 746], [757, 747], [758, 747], [759, 726], [760, 726], [761, 749], [762, 750], [763, 753], [764, 756], [765, 756], [766, 736], [767, 736], [768, 758], [769, 759], [770, 761], [771, 762], [772, 762], [773, 746], [774, 746], [775, 746], [776, 746], [777, 765], [778, 766], [779, 768], [780, 769], [781, 773], [782, 775], [783, 777], [784, 778], [785, 782], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493], [494, 494], [495, 495], [496, 496], [497, 497], [498, 498], [499, 499], [500, 500], [501, 501], [502, 502], [503, 503], [504, 504], [505, 505], [506, 506], [507, 507], [508, 508], [509, 509], [510, 510], [511, 511], [512, 512], [513, 513], [514, 514], [515, 515], [516, 516], [517, 517], [518, 518], [519, 519], [520, 520], [521, 521], [522, 522], [523, 523], [524, 524], [525, 525], [526, 526], [527, 527], [528, 528], [529, 529], [530, 530], [531, 531], [532, 532], [533, 533], [534, 534], [535, 535], [536, 536], [537, 537], [538, 538], [539, 539], [540, 540], [541, 541], [542, 542], [543, 543], [544, 544], [545, 545], [546, 546], [547, 547], [548, 548], [549, 549], [550, 550], [551, 551], [552, 552], [553, 553], [554, 554], [555, 555], [556, 556], [557, 557], [558, 558], [559, 559], [560, 560], [561, 561], [562, 562], [563, 563], [564, 564], [565, 565], [566, 566], [567, 567], [568, 568], [569, 569], [570, 570], [571, 571], [572, 572], [573, 573], [574, 574], [575, 575], [576, 576], [577, 577], [578, 578], [579, 579], [580, 580], [581, 581], [582, 582], [583, 583], [584, 584], [585, 585], [586, 586], [587, 587], [588, 588], [589, 589], [590, 590], [591, 591], [592, 592], [593, 593], [594, 594], [595, 595], [596, 596], [597, 597], [598, 598], [599, 599], [600, 600], [601, 601], [602, 602], [603, 603], [604, 604], [605, 605], [606, 606], [607, 607], [608, 608], [609, 609], [610, 610], [611, 611], [612, 612], [613, 613], [614, 614], [615, 615], [616, 616], [617, 617], [618, 618], [619, 619], [620, 620], [621, 621], [622, 622], [623, 623], [624, 624], [625, 625], [626, 626], [627, 627], [628, 628], [629, 629], [630, 630], [631, 631], [632, 632], [633, 633], [634, 634], [635, 635], [636, 636], [637, 637], [638, 638], [639, 639], [640, 640], [641, 641], [642, 642], [643, 643], [644, 644], [645, 645], [646, 646], [647, 647], [648, 648], [649, 649], [650, 650], [651, 651], [652, 652], [653, 653], [654, 654], [655, 655], [656, 656], [657, 657], [658, 658], [659, 659], [660, 660], [661, 661], [662, 662], [663, 663], [664, 664], [665, 665], [666, 666], [667, 667], [668, 668], [669, 669], [670, 670], [671, 671], [672, 672], [673, 673], [674, 674], [675, 675], [676, 676], [677, 677], [678, 678], [679, 679], [680, 680], [681, 681], [682, 682], [683, 683], [684, 684], [685, 685], [686, 686], [687, 687], [688, 688], [689, 689], [690, 690], [691, 691], [692, 692], [693, 693], [694, 694], [695, 695], [696, 696], [697, 697], [698, 698], [699, 699], [700, 700], [701, 701], [702, 702], [703, 703], [704, 704], [705, 705], [706, 706], [707, 707], [708, 708], [709, 709], [710, 710], [711, 711], [712, 712], [713, 713], [714, 714], [715, 715], [716, 716], [717, 717], [718, 718], [719, 719], [720, 720], [721, 721], [722, 722], [723, 723], [724, 724], [725, 725], [726, 726], [727, 727], [728, 728], [729, 729], [730, 730], [731, 731], [732, 732], [733, 733], [734, 734], [735, 735], [736, 736], [737, 737], [738, 738], [739, 739], [740, 740], [741, 741], [742, 742], [743, 743], [744, 744], [745, 745], [746, 746], [747, 747], [748, 748], [749, 749], [750, 750], [751, 751], [752, 752], [753, 753], [754, 754], [755, 755], [756, 756], [757, 757], [758, 758], [759, 759], [760, 760], [761, 761], [762, 762], [763, 763], [764, 764], [765, 765], [766, 766], [767, 767], [768, 768], [769, 769], [770, 770], [771, 771], [772, 772], [773, 773], [774, 774], [775, 775], [776, 776], [777, 777], [778, 778], [779, 779], [780, 780], [781, 781], [782, 782], [783, 783], [784, 784], [785, 785]]}, {"function_name": "getCharUnit", "code": "  private static int getCharUnit(char[] input, int index, CharUnit unit) throws REException {\n    unit.ch = input[index++];\n    if (unit.bk = (unit.ch == '\\\\'))\n      if (index < input.length)\n\tunit.ch = input[index++];\n      else throw new REException(getLocalizedMessage(\"ends.with.backslash\"),REException.REG_ESCAPE,index);\n    return index;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "IF", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [0, 8], [6, 9], [6, 10], [7, 11], [9, 12], [6, 13], [11, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 0], [9, 6], [10, 6], [11, 7], [12, 9], [13, 6], [14, 11], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isMatch", "code": "  public boolean isMatch(Object input) {\n    return isMatch(input,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isMatch", "code": "  public boolean isMatch(Object input,int index) {\n    return isMatch(input,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isMatch", "code": "  public boolean isMatch(Object input,int index,int eflags) {\n    return isMatchImpl(makeCharIndexed(input,index),index,eflags);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isMatchImpl", "code": "  private boolean isMatchImpl(CharIndexed input, int index, int eflags) {\n    if (firstToken == null)  // Trivial case\n      return (input.charAt(0) == CharIndexed.OUT_OF_BOUNDS);\n    REMatch m = new REMatch(numSubs, index, eflags);\n    if (firstToken.match(input, m)) {\n\twhile (m != null) {\n\t    if (input.charAt(m.index) == CharIndexed.OUT_OF_BOUNDS) {\n\t\treturn true;\n\t    }\n\t    m = m.next;\n\t}\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LOOP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [4, 11], [2, 12], [3, 13], [10, 14], [11, 15], [12, 16], [14, 17], [12, 18], [16, 19], [17, 20], [12, 21], [18, 22], [18, 23], [22, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 4], [12, 2], [13, 3], [14, 10], [15, 11], [16, 12], [17, 14], [18, 12], [19, 16], [20, 17], [21, 12], [22, 18], [23, 18], [24, 22], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getNumSubs", "code": "  public int getNumSubs() {\n    return numSubs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUncle", "code": "  void setUncle(REToken uncle) {\n      if (lastToken != null) {\n\t  lastToken.setUncle(uncle);\n      } else super.setUncle(uncle); // to deal with empty subexpressions", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "chain", "code": "  boolean chain(REToken next) {\n    super.chain(next);\n    setUncle(next);\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 0], [2, 0], [3, 1], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getMinimumLength", "code": "  public int getMinimumLength() {\n      return minimumLength;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAllMatches", "code": "  public REMatch[] getAllMatches(Object input) {\n    return getAllMatches(input,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getAllMatches", "code": "  public REMatch[] getAllMatches(Object input, int index) {\n    return getAllMatches(input,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getAllMatches", "code": "  public REMatch[] getAllMatches(Object input, int index, int eflags) {\n    return getAllMatchesImpl(makeCharIndexed(input,index),index,eflags);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getAllMatchesImpl", "code": "  private REMatch[] getAllMatchesImpl(CharIndexed input, int index, int eflags) {\n    Vector all = new Vector();\n    REMatch m = null;\n    while ((m = getMatchImpl(input,index,eflags,null)) != null) {\n      all.addElement(m);\n      index = m.getEndIndex();\n      if (m.end[0] == 0) {   // handle pathological case of zero-length match\n\tindex++;\n\tinput.move(1);\n      } else {\n\tinput.move(m.end[0]);\n      }\n      if (!input.isValid()) break;\n    }\n    REMatch[] mset = new REMatch[all.size()];\n    all.copyInto(mset);\n    return mset;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [3, 11], [3, 12], [10, 13], [10, 14], [4, 15], [5, 16], [2, 17], [11, 18], [11, 19], [12, 20], [3, 21], [3, 22], [14, 23], [20, 24], [21, 25], [23, 26], [12, 27], [12, 28], [28, 29], [20, 30], [27, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 3], [12, 3], [13, 10], [14, 10], [15, 4], [16, 5], [17, 2], [18, 11], [19, 11], [20, 12], [21, 3], [22, 3], [23, 14], [24, 20], [25, 21], [26, 23], [27, 12], [28, 12], [29, 28], [30, 20], [31, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) { \n\tif (firstToken == null) return next(input, mymatch);\n\n\t// Note the start of this subexpression\n\tmymatch.start[subIndex] = mymatch.index;\n\n\treturn firstToken.match(input, mymatch);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [2, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 2], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getMatch", "code": "  public REMatch getMatch(Object input) {\n    return getMatch(input,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMatch", "code": "  public REMatch getMatch(Object input, int index) {\n    return getMatch(input,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMatch", "code": "  public REMatch getMatch(Object input, int index, int eflags) {\n    return getMatch(input,index,eflags,null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getMatch", "code": "  public REMatch getMatch(Object input, int index, int eflags, StringBuffer buffer) {\n    return getMatchImpl(makeCharIndexed(input,index),index,eflags,buffer);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getMatchImpl", "code": "  REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) {\n      // Create a new REMatch to hold results\n      REMatch mymatch = new REMatch(numSubs, anchor, eflags);\n      do {\n\t  // Optimization: check if anchor + minimumLength > length\n\t  if (minimumLength == 0 || input.charAt(minimumLength-1) != CharIndexed.OUT_OF_BOUNDS) {\n\t      if (match(input, mymatch)) {\n\t\t  // Find longest match of them all to observe leftmost longest\n\t\t  REMatch longest = mymatch;\n\t\t  while ((mymatch = mymatch.next) != null) {\n\t\t      if (mymatch.index > longest.index) {\n\t\t\t  longest = mymatch;\n\t\t      }\n\t\t  }\n\t\t  \n\t\t  longest.end[0] = longest.index;\n\t\t  longest.finish(input);\n\t\t  return longest;\n\t      }\n\t  }\n\t  mymatch.clear(++anchor);\n\t  // Append character to buffer if needed\n\t  if (buffer != null && input.charAt(0) != CharIndexed.OUT_OF_BOUNDS) {\n\t      buffer.append(input.charAt(0));\n\t  }\n      } while (input.move(1));\n      \n      // Special handling at end of input for e.g. \"$\"\n      if (minimumLength == 0) {\n\t  if (match(input, mymatch)) {\n\t      mymatch.finish(input);\n\t      return mymatch;\n\t  }\n      }\n\n      return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [2, 12], [10, 13], [3, 14], [3, 15], [11, 16], [4, 17], [12, 18], [14, 19], [3, 20], [15, 21], [12, 22], [19, 23], [19, 24], [15, 25], [21, 26], [21, 27], [12, 28], [14, 29], [23, 30], [24, 31], [25, 32], [26, 33], [27, 34], [29, 35], [30, 36], [25, 37], [25, 38], [25, 39], [33, 40], [35, 41], [25, 42], [25, 43], [38, 44], [40, 45], [38, 46], [44, 47], [44, 48], [46, 49], [43, 50], [46, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 2], [13, 10], [14, 3], [15, 3], [16, 11], [17, 4], [18, 12], [19, 14], [20, 3], [21, 15], [22, 12], [23, 19], [24, 19], [25, 15], [26, 21], [27, 21], [28, 12], [29, 14], [30, 23], [31, 24], [32, 25], [33, 26], [34, 27], [35, 29], [36, 30], [37, 25], [38, 25], [39, 25], [40, 33], [41, 35], [42, 25], [43, 25], [44, 38], [45, 40], [46, 38], [47, 44], [48, 44], [49, 46], [50, 43], [51, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "getMatchEnumeration", "code": "  public REMatchEnumeration getMatchEnumeration(Object input) {\n    return getMatchEnumeration(input,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMatchEnumeration", "code": "  public REMatchEnumeration getMatchEnumeration(Object input, int index) {\n    return getMatchEnumeration(input,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMatchEnumeration", "code": "  public REMatchEnumeration getMatchEnumeration(Object input, int index, int eflags) {\n    return new REMatchEnumeration(this,makeCharIndexed(input,index),index,eflags);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "substitute", "code": "  public String substitute(Object input,String replace) {\n    return substitute(input,replace,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "substitute", "code": "  public String substitute(Object input,String replace,int index) {\n    return substitute(input,replace,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "substitute", "code": "  public String substitute(Object input,String replace,int index,int eflags) {\n    return substituteImpl(makeCharIndexed(input,index),replace,index,eflags);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "substituteImpl", "code": "  private String substituteImpl(CharIndexed input,String replace,int index,int eflags) {\n    StringBuffer buffer = new StringBuffer();\n    REMatch m = getMatchImpl(input,index,eflags,buffer);\n    if (m==null) return buffer.toString();\n    buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ?\n\t\t   replace : m.substituteInto(replace) );\n    if (input.move(m.end[0])) {\n      do {\n\tbuffer.append(input.charAt(0));\n      } while (input.move(1));\n    }\n    return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "LOOP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [0, 12], [3, 13], [3, 14], [2, 15], [12, 16], [13, 17], [14, 18], [4, 19], [5, 20], [15, 21], [16, 22], [16, 23], [21, 24], [11, 25], [23, 26], [23, 27], [15, 28], [28, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 0], [13, 3], [14, 3], [15, 2], [16, 12], [17, 13], [18, 14], [19, 4], [20, 5], [21, 15], [22, 16], [23, 16], [24, 21], [25, 11], [26, 23], [27, 23], [28, 15], [29, 28], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "substituteAll", "code": "  public String substituteAll(Object input,String replace) {\n    return substituteAll(input,replace,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "substituteAll", "code": "  public String substituteAll(Object input,String replace,int index) {\n    return substituteAll(input,replace,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "substituteAll", "code": "  public String substituteAll(Object input,String replace,int index,int eflags) {\n    return substituteAllImpl(makeCharIndexed(input,index),replace,index,eflags);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "substituteAllImpl", "code": "  private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) {\n    StringBuffer buffer = new StringBuffer();\n    REMatch m;\n    while ((m = getMatchImpl(input,index,eflags,buffer)) != null) {\n\tbuffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ?\n\t\t       replace : m.substituteInto(replace) );\n      index = m.getEndIndex();\n      if (m.end[0] == 0) {\n\tchar ch = input.charAt(0);\n\tif (ch != CharIndexed.OUT_OF_BOUNDS) \n\t    buffer.append(ch);\n\tinput.move(1);\n      } else {\n\t  input.move(m.end[0]);\n      }\n\n      if (!input.isValid()) break;\n    }\n    return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [2, 12], [10, 13], [10, 14], [4, 15], [11, 16], [11, 17], [12, 18], [2, 19], [2, 20], [14, 21], [12, 22], [12, 23], [18, 24], [19, 25], [20, 26], [12, 27], [12, 28], [22, 29], [26, 30], [26, 31], [28, 32], [22, 33], [23, 34], [18, 35], [31, 36], [31, 37], [34, 38], [27, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 2], [13, 10], [14, 10], [15, 4], [16, 11], [17, 11], [18, 12], [19, 2], [20, 2], [21, 14], [22, 12], [23, 12], [24, 18], [25, 19], [26, 20], [27, 12], [28, 12], [29, 22], [30, 26], [31, 26], [32, 28], [33, 22], [34, 23], [35, 18], [36, 31], [37, 31], [38, 34], [39, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "addToken", "code": "  private void addToken(REToken next) {\n    if (next == null) return;\n    minimumLength += next.getMinimumLength();\n    if (firstToken == null) {\n\tlastToken = firstToken = next;\n    } else {\n      // if chain returns false, it \"rejected\" the token due to\n      // an optimization, and next was combined with lastToken\n      if (lastToken.chain(next)) {\n\t  lastToken = next;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [2, 7], [1, 8], [4, 9], [5, 10], [7, 11], [8, 12], [1, 13], [13, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 2], [8, 1], [9, 4], [10, 5], [11, 7], [12, 8], [13, 1], [14, 13], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setRepeated", "code": "  private static REToken setRepeated(REToken current, int min, int max, int index) throws REException {\n    if (current == null) throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n    return new RETokenRepeated(current.subIndex,current,min,max);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [8, 10], [9, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 8], [11, 9], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getPosixSet", "code": "  private static int getPosixSet(char[] pattern,int index,StringBuffer buf) {\n    // Precondition: pattern[index-1] == ':'\n    // we will return pos of closing ']'.\n    int i;\n    for (i=index; i<(pattern.length-1); i++) {\n      if ((pattern[i] == ':') && (pattern[i+1] == ']'))\n\treturn i+2;\n      buf.append(pattern[i]);\n    }\n    return index; // didn't match up", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [2, 11], [9, 12], [9, 13], [10, 14], [12, 15], [13, 16], [13, 17], [15, 18], [16, 19], [17, 20], [16, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 2], [12, 9], [13, 9], [14, 10], [15, 12], [16, 13], [17, 13], [18, 15], [19, 16], [20, 17], [21, 16], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getMinMax", "code": "  private int getMinMax(char[] input,int index,IntPair minMax,RESyntax syntax) throws REException {\n    // Precondition: input[index-1] == '{', minMax != null\n\n    boolean mustMatch = !syntax.get(RESyntax.RE_NO_BK_BRACES);\n    int startIndex = index;\n    if (index == input.length) {\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"unmatched.brace\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    }\n    \n    int min,max=0;\n    CharUnit unit = new CharUnit();\n    StringBuffer buf = new StringBuffer();\n    \n    // Read string of digits\n    do {\n      index = getCharUnit(input,index,unit);\n      if (Character.isDigit(unit.ch))\n        buf.append(unit.ch);\n    } while ((index != input.length) && Character.isDigit(unit.ch));\n\n    // Check for {} tomfoolery\n    if (buf.length() == 0) {\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    }\n\n    min = Integer.parseInt(buf.toString());\n\t\n    if ((unit.ch == '}') && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk))\n      max = min;\n    else if (index == input.length)\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.no.end\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    else if ((unit.ch == ',') && !unit.bk) {\n      buf = new StringBuffer();\n      // Read string of digits\n      while (((index = getCharUnit(input,index,unit)) != input.length) && Character.isDigit(unit.ch))\n\tbuf.append(unit.ch);\n\n      if (!((unit.ch == '}') && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk)))\n        if (mustMatch)\n          throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n        else\n          return startIndex;\n\n      // This is the case of {x,}\n      if (buf.length() == 0) max = Integer.MAX_VALUE;\n      else max = Integer.parseInt(buf.toString());\n    } else\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n\n    // We know min and max now, and they are valid.\n\n    minMax.first = min;\n    minMax.second = max;\n\n    // return the index following the '}'\n    return index;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "IF", "BINARY_OP", "RETURN", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "THROW_RAISE", "CALL", "ASSIGN", "RETURN", "THROW_RAISE", "RETURN", "THROW_RAISE", "IF", "IF", "LOOP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [2, 17], [2, 18], [0, 19], [3, 20], [4, 21], [8, 22], [17, 23], [17, 24], [17, 25], [2, 26], [18, 27], [18, 28], [19, 29], [3, 30], [20, 31], [20, 32], [4, 33], [21, 34], [21, 35], [5, 36], [6, 37], [7, 38], [8, 39], [10, 40], [23, 41], [23, 42], [24, 43], [24, 44], [27, 45], [28, 46], [29, 47], [30, 48], [30, 49], [33, 50], [4, 51], [39, 52], [39, 53], [41, 54], [41, 55], [23, 56], [23, 57], [23, 58], [42, 59], [44, 60], [49, 61], [33, 62], [51, 63], [53, 64], [55, 65], [56, 66], [57, 67], [57, 68], [58, 69], [23, 70], [59, 71], [60, 72], [61, 73], [64, 74], [65, 75], [56, 76], [56, 77], [66, 78], [66, 79], [67, 80], [67, 81], [68, 82], [68, 83], [58, 84], [69, 85], [69, 86], [70, 87], [72, 88], [73, 89], [74, 90], [75, 91], [76, 92], [81, 93], [82, 94], [83, 95], [86, 96], [92, 97], [93, 98], [96, 99], [98, 100], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 2], [18, 2], [19, 0], [20, 3], [21, 4], [22, 8], [23, 17], [24, 17], [25, 17], [26, 2], [27, 18], [28, 18], [29, 19], [30, 3], [31, 20], [32, 20], [33, 4], [34, 21], [35, 21], [36, 5], [37, 6], [38, 7], [39, 8], [40, 10], [41, 23], [42, 23], [43, 24], [44, 24], [45, 27], [46, 28], [47, 29], [48, 30], [49, 30], [50, 33], [51, 4], [52, 39], [53, 39], [54, 41], [55, 41], [56, 23], [57, 23], [58, 23], [59, 42], [60, 44], [61, 49], [62, 33], [63, 51], [64, 53], [65, 55], [66, 56], [67, 57], [68, 57], [69, 58], [70, 23], [71, 59], [72, 60], [73, 61], [74, 64], [75, 65], [76, 56], [77, 56], [78, 66], [79, 66], [80, 67], [81, 67], [82, 68], [83, 68], [84, 58], [85, 69], [86, 69], [87, 70], [88, 72], [89, 73], [90, 74], [91, 75], [92, 76], [93, 81], [94, 82], [95, 83], [96, 86], [97, 92], [98, 93], [99, 96], [100, 98], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100]]}, {"function_name": "toString", "code": "   public String toString() {\n     StringBuffer sb = new StringBuffer();\n     dump(sb);\n     return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "dump", "code": "  void dump(StringBuffer os) {\n    os.append('(');\n    if (subIndex == 0)\n      os.append(\"?:\");\n    if (firstToken != null)\n      firstToken.dumpAll(os);\n    os.append(')');", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [4, 8], [1, 9], [5, 10], [2, 11], [6, 12], [7, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 4], [9, 1], [10, 5], [11, 2], [12, 6], [13, 7], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "makeCharIndexed", "code": "  private static CharIndexed makeCharIndexed(Object input, int index) {\n      // We could let a String fall through to final input, but since\n      // it's the most likely input type, we check it first.\n    if (input instanceof String)\n      return new CharIndexedString((String) input,index);\n    else if (input instanceof char[])\n      return new CharIndexedCharArray((char[]) input,index);\n    else if (input instanceof StringBuffer)\n      return new CharIndexedStringBuffer((StringBuffer) input,index);\n    else if (input instanceof InputStream)\n      return new CharIndexedInputStream((InputStream) input,index);\n    else if (input instanceof Reader)\n\treturn new CharIndexedReader((Reader) input, index);\n    else if (input instanceof CharIndexed)\n\treturn (CharIndexed) input; // do we lose index info?\n    else \n\treturn new CharIndexedString(input.toString(), index);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [5, 10], [7, 11], [7, 12], [7, 13], [8, 14], [11, 15], [11, 16], [11, 17], [12, 18], [15, 19], [15, 20], [15, 21], [16, 22], [19, 23], [19, 24], [19, 25], [20, 26], [23, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 5], [11, 7], [12, 7], [13, 7], [14, 8], [15, 11], [16, 11], [17, 11], [18, 12], [19, 15], [20, 15], [21, 15], [22, 16], [23, 19], [24, 19], [25, 19], [26, 20], [27, 23], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "RE", "code": "  public RE(Object pattern) throws REException {\n    this(pattern,0,RESyntax.RE_SYNTAX_PERL5,0,0);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RE", "code": "  public RE(Object pattern, int cflags) throws REException {\n    this(pattern,cflags,RESyntax.RE_SYNTAX_PERL5,0,0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RE", "code": "  public RE(Object pattern, int cflags, RESyntax syntax) throws REException {\n    this(pattern,cflags,syntax,0,0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "RE", "code": "  private RE(REToken first, REToken last,int subs, int subIndex, int minLength) {\n    super(subIndex);\n    firstToken = first;\n    lastToken = last;\n    numSubs = subs;\n    minimumLength = minLength;\n    addToken(new RETokenEndSub(subIndex));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "RE", "code": "  private RE(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {\n    super(myIndex); // Subexpression index of this token.\n    initialize(patternObj, cflags, syntax, myIndex, nextSub);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "RE", "code": "    protected RE() { super(0); }", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8425", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/ref/DTMAxisIterNodeList.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMAxisIterNodeList", "code": "public class DTMAxisIterNodeList extends DTMNodeListBase {\n    private DTM m_dtm;\n    private DTMAxisIterator m_iter;\n    private IntVector m_cachedNodes;\n    private int m_last = -1;\n    private DTMAxisIterNodeList() {\n    }\n\n    /**\n     * Public constructor: Wrap a DTMNodeList around an existing\n     * and preconfigured DTMAxisIterator\n     */\n    public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {\n        if (dtmAxisIterator == null) {\n            m_last = 0;\n        } else {\n            m_cachedNodes = new IntVector();\n            m_dtm = dtm;\n        }\n        m_iter = dtmAxisIterator;\n    }\n\n    /**\n     * Access the wrapped DTMIterator. I'm not sure whether anyone will\n     * need this or not, but let's write it and think about it.\n     *\n     */\n    public DTMAxisIterator getDTMAxisIterator() {\n        return m_iter;\n    }\n  \n\n\n    /**\n     * Returns the <code>index</code>th item in the collection. If \n     * <code>index</code> is greater than or equal to the number of nodes in \n     * the list, this returns <code>null</code>.\n     * @param index Index into the collection.\n     * @return The node at the <code>index</code>th position in the \n     *   <code>NodeList</code>, or <code>null</code> if that is not a valid \n     *   index.\n     */\n    public Node item(int index) {\n        if (m_iter != null) {\n            int node;\n            int count = m_cachedNodes.size();\n\n            if (count > index) {\n                node = m_cachedNodes.elementAt(index);\n                return m_dtm.getNode(node);\n            } else if (m_last == -1) {\n                while (((node = m_iter.next()) != DTMAxisIterator.END)\n                           && count <= index) {\n                    m_cachedNodes.addElement(node);\n                    count++;\n                }\n                if (node == DTMAxisIterator.END) {\n                    m_last = count;\n                } else {\n                    return m_dtm.getNode(node);\n                }\n            }\n        }\n        return null;\n    }\n\n    /**\n     * The number of nodes in the list. The range of valid child node indices \n     * is 0 to <code>length-1</code> inclusive. \n     */\n    public int getLength() {\n        if (m_last == -1) {\n            int node;\n            while ((node = m_iter.next()) != DTMAxisIterator.END) {\n                m_cachedNodes.addElement(node);\n            }\n            m_last = m_cachedNodes.size();\n        }\n        return m_last;", "functions": [{"function_name": "getDTMAxisIterator", "code": "    public DTMAxisIterator getDTMAxisIterator() {\n        return m_iter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "item", "code": "    public Node item(int index) {\n        if (m_iter != null) {\n            int node;\n            int count = m_cachedNodes.size();\n\n            if (count > index) {\n                node = m_cachedNodes.elementAt(index);\n                return m_dtm.getNode(node);\n            } else if (m_last == -1) {\n                while (((node = m_iter.next()) != DTMAxisIterator.END)\n                           && count <= index) {\n                    m_cachedNodes.addElement(node);\n                    count++;\n                }\n                if (node == DTMAxisIterator.END) {\n                    m_last = count;\n                } else {\n                    return m_dtm.getNode(node);\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "IF", "LOOP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [6, 10], [6, 11], [10, 12], [6, 13], [7, 14], [10, 15], [10, 16], [12, 17], [13, 18], [6, 19], [15, 20], [16, 21], [19, 22], [15, 23], [21, 24], [21, 25], [23, 26], [15, 27], [16, 28], [25, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 6], [11, 6], [12, 10], [13, 6], [14, 7], [15, 10], [16, 10], [17, 12], [18, 13], [19, 6], [20, 15], [21, 16], [22, 19], [23, 15], [24, 21], [25, 21], [26, 23], [27, 15], [28, 16], [29, 25], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getLength", "code": "    public int getLength() {\n        if (m_last == -1) {\n            int node;\n            while ((node = m_iter.next()) != DTMAxisIterator.END) {\n                m_cachedNodes.addElement(node);\n            }\n            m_last = m_cachedNodes.size();\n        }\n        return m_last;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [2, 7], [4, 8], [7, 9], [8, 10], [4, 11], [10, 12], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 2], [8, 4], [9, 7], [10, 8], [11, 4], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "DTMAxisIterNodeList", "code": "    private DTMAxisIterNodeList() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DTMAxisIterNodeList", "code": "    public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {\n        if (dtmAxisIterator == null) {\n            m_last = 0;\n        } else {\n            m_cachedNodes = new IntVector();\n            m_dtm = dtm;\n        }\n        m_iter = dtmAxisIterator;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [1, 8], [1, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 1], [9, 1], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 1}
{"sample_id": "camel-1.6-2739", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/NodeFactory.java", "language": "java", "name": "org.apache.camel.model.NodeFactory", "code": "public class NodeFactory {\n    public FilterType createFilter() {\n        return new FilterType();\n    }\n\n    public LoopType createLoop() {\n        return new LoopType();\n    }\n\n    public RouteType createRoute() {\n        return new RouteType();", "functions": [{"function_name": "createFilter", "code": "    public FilterType createFilter() {\n        return new FilterType();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createLoop", "code": "    public LoopType createLoop() {\n        return new LoopType();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createRoute", "code": "    public RouteType createRoute() {\n        return new RouteType();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.2-1673", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/language/ognl/OgnlExpression.java", "language": "java", "name": "org.apache.camel.language.ognl.OgnlExpression", "code": "public class OgnlExpression extends ExpressionSupport<Exchange> {\n\n    private final String expressionString;\n    private final Class<?> type;\n    private Object expression;\n\n    public OgnlExpression(OgnlLanguage language, String expressionString, Class<?> type) {\n        this.expressionString = expressionString;\n        this.type = type;\n        try {\n            this.expression = Ognl.parseExpression(expressionString);\n        } catch (OgnlException e) {\n            throw new IllegalSyntaxException(language, expressionString);\n        }\n    }\n\n    public static OgnlExpression ognl(String expression) {\n        return new OgnlExpression(new OgnlLanguage(), expression, Object.class);\n    }\n\n    public Object evaluate(Exchange exchange) {\n        Map values = new HashMap();\n        populateContext(values, exchange);\n        OgnlContext oglContext = new OgnlContext();\n        try {\n            return Ognl.getValue(expression, oglContext, new RootObject(exchange));\n        } catch (OgnlException e) {\n            throw new ExpressionEvaluationException(this, exchange, e);\n        }\n    }\n\n    protected void populateContext(Map map, Exchange exchange) {\n        map.put(\"exchange\", exchange);\n        map.put(\"in\", exchange.getIn());\n        map.put(\"out\", exchange.getOut());\n    }\n\n    protected String assertionFailureMessage(Exchange exchange) {\n        return expressionString;", "functions": [{"function_name": "ognl", "code": "    public static OgnlExpression ognl(String expression) {\n        return new OgnlExpression(new OgnlLanguage(), expression, Object.class);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "evaluate", "code": "    public Object evaluate(Exchange exchange) {\n        Map values = new HashMap();\n        populateContext(values, exchange);\n        OgnlContext oglContext = new OgnlContext();\n        try {\n            return Ognl.getValue(expression, oglContext, new RootObject(exchange));\n        } catch (OgnlException e) {\n            throw new ExpressionEvaluationException(this, exchange, e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [0, 7], [5, 8], [6, 9], [2, 10], [3, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 0], [8, 5], [9, 6], [10, 2], [11, 3], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "populateContext", "code": "    protected void populateContext(Map map, Exchange exchange) {\n        map.put(\"exchange\", exchange);\n        map.put(\"in\", exchange.getIn());\n        map.put(\"out\", exchange.getOut());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [4, 8], [4, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 4], [9, 4], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "assertionFailureMessage", "code": "    protected String assertionFailureMessage(Exchange exchange) {\n        return expressionString;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "OgnlExpression", "code": "    public OgnlExpression(OgnlLanguage language, String expressionString, Class<?> type) {\n        this.expressionString = expressionString;\n        this.type = type;\n        try {\n            this.expression = Ognl.parseExpression(expressionString);\n        } catch (OgnlException e) {\n            throw new IllegalSyntaxException(language, expressionString);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "ASSIGN", "ASSIGN", "THROW_RAISE", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [5, 8], [1, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 5], [9, 1], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "jedit-4.0-3924", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "bsh/ParserTokenManager.java", "language": "java", "name": "bsh.ParserTokenManager", "code": "class ParserTokenManager implements ParserConstants\n{\nprivate final int jjStopStringLiteralDfa_0(int pos, long active0, long active1)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0x3eL) != 0L)\n            return 0;\n         if ((active1 & 0x400040000000L) != 0L)\n            return 56;\n         if ((active1 & 0x20L) != 0L)\n            return 11;\n         if ((active0 & 0x3fffffffff800L) != 0L)\n         {\n            jjmatchedKind = 58;\n            return 35;\n         }\n         return -1;\n      case 1:\n         if ((active0 & 0x3ffffbf9ff800L) != 0L)\n         {\n            if (jjmatchedPos != 1)\n            {\n               jjmatchedKind = 58;\n               jjmatchedPos = 1;\n            }\n            return 35;\n         }\n         if ((active0 & 0x40600000L) != 0L)\n            return 35;\n         return -1;\n      case 2:\n         if ((active0 & 0x37fe9afdff800L) != 0L)\n         {\n            if (jjmatchedPos != 2)\n            {\n               jjmatchedKind = 58;\n               jjmatchedPos = 2;\n            }\n            return 35;\n         }\n         if ((active0 & 0x801610000000L) != 0L)\n            return 35;\n         return -1;\n      case 3:\n         if ((active0 & 0x140282082c000L) != 0L)\n            return 35;\n         if ((active0 & 0x23fc58f5d3800L) != 0L)\n         {\n            if (jjmatchedPos != 3)\n            {\n               jjmatchedKind = 58;\n               jjmatchedPos = 3;\n            }\n            return 35;\n         }\n         return -1;\n      case 4:\n         if ((active0 & 0x1bc580580800L) != 0L)\n         {\n            if (jjmatchedPos != 4)\n            {\n               jjmatchedKind = 58;\n               jjmatchedPos = 4;\n            }\n            return 35;\n         }\n         if ((active0 & 0x224000f053000L) != 0L)\n            return 35;\n         return -1;\n      case 5:\n         if ((active0 & 0xc504180800L) != 0L)\n         {\n            jjmatchedKind = 58;\n            jjmatchedPos = 5;\n            return 35;\n         }\n         if ((active0 & 0x1b0080400000L) != 0L)\n            return 35;\n         return -1;\n      case 6:\n         if ((active0 & 0x4004100800L) != 0L)\n            return 35;\n         if ((active0 & 0x8500080000L) != 0L)\n         {\n            jjmatchedKind = 58;\n            jjmatchedPos = 6;\n            return 35;\n         }\n         return -1;\n      case 7:\n         if ((active0 & 0x8500000000L) != 0L)\n         {\n            jjmatchedKind = 58;\n            jjmatchedPos = 7;\n            return 35;\n         }\n         if ((active0 & 0x80000L) != 0L)\n            return 35;\n         return -1;\n      case 8:\n         if ((active0 & 0x100000000L) != 0L)\n         {\n            jjmatchedKind = 58;\n            jjmatchedPos = 8;\n            return 35;\n         }\n         if ((active0 & 0x8400000000L) != 0L)\n            return 35;\n         return -1;\n      case 9:\n         if ((active0 & 0x100000000L) != 0L)\n            return 35;\n         return -1;\n      default :\n         return -1;\n   }\n}\nprivate final int jjStartNfa_0(int pos, long active0, long active1)\n{\n   return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1), pos + 1);\n}\nprivate final int jjStopAtPos(int pos, int kind)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   return pos + 1;\n}\nprivate final int jjStartNfaWithStates_0(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_0(state, pos + 1);\n}\nprivate final int jjMoveStringLiteralDfa0_0()\n{\n   switch(curChar)\n   {\n      case 9:\n         return jjStartNfaWithStates_0(0, 2, 0);\n      case 10:\n         return jjStartNfaWithStates_0(0, 5, 0);\n      case 12:\n         return jjStartNfaWithStates_0(0, 4, 0);\n      case 13:\n         return jjStartNfaWithStates_0(0, 3, 0);\n      case 32:\n         return jjStartNfaWithStates_0(0, 1, 0);\n      case 33:\n         jjmatchedKind = 75;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x100000L);\n      case 37:\n         jjmatchedKind = 100;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x10000000000000L);\n      case 38:\n         jjmatchedKind = 95;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x800000800000L);\n      case 40:\n         return jjStopAtPos(0, 61);\n      case 41:\n         return jjStopAtPos(0, 62);\n      case 42:\n         jjmatchedKind = 93;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x200000000000L);\n      case 43:\n         jjmatchedKind = 91;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x80002000000L);\n      case 44:\n         return jjStopAtPos(0, 68);\n      case 45:\n         jjmatchedKind = 92;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x100004000000L);\n      case 46:\n         return jjStartNfaWithStates_0(0, 69, 11);\n      case 47:\n         jjmatchedKind = 94;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x400000000000L);\n      case 58:\n         return jjStopAtPos(0, 78);\n      case 59:\n         return jjStopAtPos(0, 67);\n      case 60:\n         jjmatchedKind = 73;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x20002000010000L);\n      case 61:\n         jjmatchedKind = 70;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x8000L);\n      case 62:\n         jjmatchedKind = 71;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x280028000040000L);\n      case 63:\n         return jjStopAtPos(0, 77);\n      case 64:\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x5450545014a0500L);\n      case 91:\n         return jjStopAtPos(0, 65);\n      case 93:\n         return jjStopAtPos(0, 66);\n      case 94:\n         jjmatchedKind = 99;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x8000000000000L);\n      case 98:\n         return jjMoveStringLiteralDfa1_0(0x5800L, 0x0L);\n      case 99:\n         return jjMoveStringLiteralDfa1_0(0xfa000L, 0x0L);\n      case 100:\n         return jjMoveStringLiteralDfa1_0(0x700000L, 0x0L);\n      case 101:\n         return jjMoveStringLiteralDfa1_0(0x800000L, 0x0L);\n      case 102:\n         return jjMoveStringLiteralDfa1_0(0x1f000000L, 0x0L);\n      case 103:\n         return jjMoveStringLiteralDfa1_0(0x20000000L, 0x0L);\n      case 105:\n         return jjMoveStringLiteralDfa1_0(0x7c0000000L, 0x0L);\n      case 108:\n         return jjMoveStringLiteralDfa1_0(0x800000000L, 0x0L);\n      case 110:\n         return jjMoveStringLiteralDfa1_0(0x3000000000L, 0x0L);\n      case 112:\n         return jjMoveStringLiteralDfa1_0(0x1c000000000L, 0x0L);\n      case 114:\n         return jjMoveStringLiteralDfa1_0(0x20000000000L, 0x0L);\n      case 115:\n         return jjMoveStringLiteralDfa1_0(0x1c0000000000L, 0x0L);\n      case 116:\n         return jjMoveStringLiteralDfa1_0(0xe00000000000L, 0x0L);\n      case 118:\n         return jjMoveStringLiteralDfa1_0(0x1000000000000L, 0x0L);\n      case 119:\n         return jjMoveStringLiteralDfa1_0(0x2000000000000L, 0x0L);\n      case 123:\n         return jjStopAtPos(0, 63);\n      case 124:\n         jjmatchedKind = 97;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x2000000200000L);\n      case 125:\n         return jjStopAtPos(0, 64);\n      case 126:\n         return jjStopAtPos(0, 76);\n      default :\n         return jjMoveNfa_0(6, 0);\n   }\n}\nprivate final int jjMoveStringLiteralDfa1_0(long active0, long active1)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(0, active0, active1);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 38:\n         if ((active1 & 0x800000L) != 0L)\n            return jjStopAtPos(1, 87);\n         break;\n      case 43:\n         if ((active1 & 0x2000000L) != 0L)\n            return jjStopAtPos(1, 89);\n         break;\n      case 45:\n         if ((active1 & 0x4000000L) != 0L)\n            return jjStopAtPos(1, 90);\n         break;\n      case 60:\n         if ((active1 & 0x2000000000L) != 0L)\n         {\n            jjmatchedKind = 101;\n            jjmatchedPos = 1;\n         }\n         return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x20000000000000L);\n      case 61:\n         if ((active1 & 0x8000L) != 0L)\n            return jjStopAtPos(1, 79);\n         else if ((active1 & 0x10000L) != 0L)\n            return jjStopAtPos(1, 80);\n         else if ((active1 & 0x40000L) != 0L)\n            return jjStopAtPos(1, 82);\n         else if ((active1 & 0x100000L) != 0L)\n            return jjStopAtPos(1, 84);\n         else if ((active1 & 0x80000000000L) != 0L)\n            return jjStopAtPos(1, 107);\n         else if ((active1 & 0x100000000000L) != 0L)\n            return jjStopAtPos(1, 108);\n         else if ((active1 & 0x200000000000L) != 0L)\n            return jjStopAtPos(1, 109);\n         else if ((active1 & 0x400000000000L) != 0L)\n            return jjStopAtPos(1, 110);\n         else if ((active1 & 0x800000000000L) != 0L)\n            return jjStopAtPos(1, 111);\n         else if ((active1 & 0x2000000000000L) != 0L)\n            return jjStopAtPos(1, 113);\n         else if ((active1 & 0x8000000000000L) != 0L)\n            return jjStopAtPos(1, 115);\n         else if ((active1 & 0x10000000000000L) != 0L)\n            return jjStopAtPos(1, 116);\n         break;\n      case 62:\n         if ((active1 & 0x8000000000L) != 0L)\n         {\n            jjmatchedKind = 103;\n            jjmatchedPos = 1;\n         }\n         return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x280020000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa2_0(active0, 0x1018000L, active1, 0x1000001000000L);\n      case 98:\n         return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x500000000L);\n      case 101:\n         return jjMoveStringLiteralDfa2_0(active0, 0x21000100000L, active1, 0L);\n      case 102:\n         if ((active0 & 0x40000000L) != 0L)\n            return jjStartNfaWithStates_0(1, 30, 35);\n         break;\n      case 103:\n         return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x80100L);\n      case 104:\n         return jjMoveStringLiteralDfa2_0(active0, 0x2240000020000L, active1, 0L);\n      case 105:\n         return jjMoveStringLiteralDfa2_0(active0, 0x6000000L, active1, 0L);\n      case 108:\n         return jjMoveStringLiteralDfa2_0(active0, 0x8802000L, active1, 0x40004000020400L);\n      case 109:\n         return jjMoveStringLiteralDfa2_0(active0, 0x80000000L, active1, 0L);\n      case 110:\n         return jjMoveStringLiteralDfa2_0(active0, 0x700000000L, active1, 0L);\n      case 111:\n         if ((active0 & 0x200000L) != 0L)\n         {\n            jjmatchedKind = 21;\n            jjmatchedPos = 1;\n         }\n         return jjMoveStringLiteralDfa2_0(active0, 0x10008304c0800L, active1, 0x4000000400000L);\n      case 114:\n         return jjMoveStringLiteralDfa2_0(active0, 0xc0c000001000L, active1, 0x500050000000000L);\n      case 116:\n         return jjMoveStringLiteralDfa2_0(active0, 0x80000000000L, active1, 0L);\n      case 117:\n         return jjMoveStringLiteralDfa2_0(active0, 0x12000000000L, active1, 0L);\n      case 119:\n         return jjMoveStringLiteralDfa2_0(active0, 0x100000000000L, active1, 0L);\n      case 121:\n         return jjMoveStringLiteralDfa2_0(active0, 0x4000L, active1, 0L);\n      case 124:\n         if ((active1 & 0x200000L) != 0L)\n            return jjStopAtPos(1, 85);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(0, active0, active1);\n}\nprivate final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(0, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(1, active0, active1);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 61:\n         if ((active1 & 0x20000000000000L) != 0L)\n            return jjStopAtPos(2, 117);\n         else if ((active1 & 0x80000000000000L) != 0L)\n            return jjStopAtPos(2, 119);\n         break;\n      case 62:\n         if ((active1 & 0x20000000000L) != 0L)\n         {\n            jjmatchedKind = 105;\n            jjmatchedPos = 2;\n         }\n         return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x200000000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa3_0(active0, 0x80000022000L, active1, 0L);\n      case 98:\n         return jjMoveStringLiteralDfa3_0(active0, 0x10000000000L, active1, 0L);\n      case 101:\n         return jjMoveStringLiteralDfa3_0(active0, 0x1000L, active1, 0x40004000000000L);\n      case 102:\n         return jjMoveStringLiteralDfa3_0(active0, 0x100000L, active1, 0L);\n      case 105:\n         return jjMoveStringLiteralDfa3_0(active0, 0x3104000000000L, active1, 0x500050500000000L);\n      case 108:\n         return jjMoveStringLiteralDfa3_0(active0, 0x2001000000L, active1, 0L);\n      case 110:\n         return jjMoveStringLiteralDfa3_0(active0, 0x8060c0000L, active1, 0x1000001000000L);\n      case 111:\n         return jjMoveStringLiteralDfa3_0(active0, 0x48008000800L, active1, 0L);\n      case 112:\n         return jjMoveStringLiteralDfa3_0(active0, 0x80000000L, active1, 0L);\n      case 114:\n         if ((active0 & 0x10000000L) != 0L)\n            return jjStartNfaWithStates_0(2, 28, 35);\n         else if ((active1 & 0x400000L) != 0L)\n         {\n            jjmatchedKind = 86;\n            jjmatchedPos = 2;\n         }\n         return jjMoveStringLiteralDfa3_0(active0, 0x200000000000L, active1, 0x4000000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa3_0(active0, 0x100808000L, active1, 0L);\n      case 116:\n         if ((active0 & 0x200000000L) != 0L)\n         {\n            jjmatchedKind = 33;\n            jjmatchedPos = 2;\n         }\n         else if ((active1 & 0x100L) != 0L)\n         {\n            jjmatchedKind = 72;\n            jjmatchedPos = 2;\n         }\n         else if ((active1 & 0x400L) != 0L)\n         {\n            jjmatchedKind = 74;\n            jjmatchedPos = 2;\n         }\n         return jjMoveStringLiteralDfa3_0(active0, 0x20420014000L, active1, 0xa0000L);\n      case 117:\n         return jjMoveStringLiteralDfa3_0(active0, 0x400000400000L, active1, 0L);\n      case 119:\n         if ((active0 & 0x1000000000L) != 0L)\n            return jjStartNfaWithStates_0(2, 36, 35);\n         break;\n      case 121:\n         if ((active0 & 0x800000000000L) != 0L)\n            return jjStartNfaWithStates_0(2, 47, 35);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(1, active0, active1);\n}\nprivate final int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(1, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(2, active0, active1);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 61:\n         if ((active1 & 0x200000000000000L) != 0L)\n            return jjStopAtPos(3, 121);\n         break;\n      case 95:\n         return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x4000000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa4_0(active0, 0xe101000L, active1, 0L);\n      case 98:\n         return jjMoveStringLiteralDfa4_0(active0, 0x400000L, active1, 0L);\n      case 99:\n         return jjMoveStringLiteralDfa4_0(active0, 0x10000L, active1, 0L);\n      case 100:\n         if ((active0 & 0x1000000000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 48, 35);\n         else if ((active1 & 0x1000000L) != 0L)\n         {\n            jjmatchedKind = 88;\n            jjmatchedPos = 3;\n         }\n         return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x1000000000000L);\n      case 101:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_0(3, 14, 35);\n         else if ((active0 & 0x8000L) != 0L)\n            return jjStartNfaWithStates_0(3, 15, 35);\n         else if ((active0 & 0x800000L) != 0L)\n            return jjStartNfaWithStates_0(3, 23, 35);\n         else if ((active0 & 0x400000000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 46, 35);\n         return jjMoveStringLiteralDfa4_0(active0, 0x400000000L, active1, 0xa0000L);\n      case 102:\n         return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x40004000000000L);\n      case 103:\n         if ((active0 & 0x800000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 35, 35);\n         return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x500050000000000L);\n      case 108:\n         if ((active0 & 0x2000000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 37, 35);\n         return jjMoveStringLiteralDfa4_0(active0, 0x2010000000800L, active1, 0L);\n      case 111:\n         if ((active0 & 0x20000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 29, 35);\n         return jjMoveStringLiteralDfa4_0(active0, 0x200080000000L, active1, 0L);\n      case 114:\n         if ((active0 & 0x20000L) != 0L)\n            return jjStartNfaWithStates_0(3, 17, 35);\n         return jjMoveStringLiteralDfa4_0(active0, 0x40000000000L, active1, 0L);\n      case 115:\n         return jjMoveStringLiteralDfa4_0(active0, 0x1042000L, active1, 0L);\n      case 116:\n         return jjMoveStringLiteralDfa4_0(active0, 0x188100080000L, active1, 0x500000000L);\n      case 117:\n         return jjMoveStringLiteralDfa4_0(active0, 0x20000000000L, active1, 0L);\n      case 118:\n         return jjMoveStringLiteralDfa4_0(active0, 0x4000000000L, active1, 0L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(2, active0, active1);\n}\nprivate final int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(2, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(3, active0, active1);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x1000000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa5_0(active0, 0x4100000000L, active1, 0x4000000000000L);\n      case 99:\n         return jjMoveStringLiteralDfa5_0(active0, 0x100000000000L, active1, 0L);\n      case 101:\n         if ((active0 & 0x1000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 24, 35);\n         else if ((active0 & 0x2000000000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 49, 35);\n         return jjMoveStringLiteralDfa5_0(active0, 0x8000000800L, active1, 0L);\n      case 104:\n         if ((active0 & 0x10000L) != 0L)\n            return jjStartNfaWithStates_0(4, 16, 35);\n         return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x500050000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa5_0(active0, 0x90000080000L, active1, 0L);\n      case 107:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStartNfaWithStates_0(4, 12, 35);\n         break;\n      case 108:\n         if ((active0 & 0x2000000L) != 0L)\n         {\n            jjmatchedKind = 25;\n            jjmatchedPos = 4;\n         }\n         return jjMoveStringLiteralDfa5_0(active0, 0x4400000L, active1, 0L);\n      case 113:\n         if ((active1 & 0x20000L) != 0L)\n            return jjStopAtPos(4, 81);\n         else if ((active1 & 0x80000L) != 0L)\n            return jjStopAtPos(4, 83);\n         break;\n      case 114:\n         return jjMoveStringLiteralDfa5_0(active0, 0x20480000000L, active1, 0L);\n      case 115:\n         if ((active0 & 0x2000L) != 0L)\n            return jjStartNfaWithStates_0(4, 13, 35);\n         break;\n      case 116:\n         if ((active0 & 0x40000L) != 0L)\n            return jjStartNfaWithStates_0(4, 18, 35);\n         else if ((active0 & 0x8000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 27, 35);\n         else if ((active0 & 0x40000000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 42, 35);\n         return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x40004000000000L);\n      case 117:\n         return jjMoveStringLiteralDfa5_0(active0, 0x100000L, active1, 0L);\n      case 119:\n         if ((active0 & 0x200000000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 45, 35);\n         return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x500000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(3, active0, active1);\n}\nprivate final int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(3, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(4, active0, active1);\n      return 5;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x40004000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa6_0(active0, 0x800L, active1, 0x1000000000000L);\n      case 99:\n         if ((active0 & 0x10000000000L) != 0L)\n            return jjStartNfaWithStates_0(5, 40, 35);\n         else if ((active0 & 0x80000000000L) != 0L)\n            return jjStartNfaWithStates_0(5, 43, 35);\n         return jjMoveStringLiteralDfa6_0(active0, 0x8000000000L, active1, 0L);\n      case 101:\n         if ((active0 & 0x400000L) != 0L)\n            return jjStartNfaWithStates_0(5, 22, 35);\n         break;\n      case 102:\n         return jjMoveStringLiteralDfa6_0(active0, 0x400000000L, active1, 0L);\n      case 104:\n         if ((active0 & 0x100000000000L) != 0L)\n            return jjStartNfaWithStates_0(5, 44, 35);\n         break;\n      case 105:\n         return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x500000000L);\n      case 108:\n         return jjMoveStringLiteralDfa6_0(active0, 0x4100000L, active1, 0L);\n      case 110:\n         if ((active0 & 0x20000000000L) != 0L)\n            return jjStartNfaWithStates_0(5, 41, 35);\n         return jjMoveStringLiteralDfa6_0(active0, 0x100080000L, active1, 0L);\n      case 115:\n         return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x4000000000000L);\n      case 116:\n         if ((active0 & 0x80000000L) != 0L)\n            return jjStartNfaWithStates_0(5, 31, 35);\n         return jjMoveStringLiteralDfa6_0(active0, 0x4000000000L, active1, 0x500050000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(4, active0, active1);\n}\nprivate final int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(4, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(5, active0, active1);\n      return 6;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x500050000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa7_0(active0, 0x400000000L, active1, 0L);\n      case 99:\n         return jjMoveStringLiteralDfa7_0(active0, 0x100000000L, active1, 0L);\n      case 101:\n         if ((active0 & 0x4000000000L) != 0L)\n            return jjStartNfaWithStates_0(6, 38, 35);\n         break;\n      case 110:\n         if ((active0 & 0x800L) != 0L)\n            return jjStartNfaWithStates_0(6, 11, 35);\n         break;\n      case 115:\n         return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x45004500000000L);\n      case 116:\n         if ((active0 & 0x100000L) != 0L)\n            return jjStartNfaWithStates_0(6, 20, 35);\n         return jjMoveStringLiteralDfa7_0(active0, 0x8000000000L, active1, 0L);\n      case 117:\n         return jjMoveStringLiteralDfa7_0(active0, 0x80000L, active1, 0L);\n      case 121:\n         if ((active0 & 0x4000000L) != 0L)\n            return jjStartNfaWithStates_0(6, 26, 35);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(5, active0, active1);\n}\nprivate final int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(5, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(6, active0, active1);\n      return 7;\n   }\n   switch(curChar)\n   {\n      case 99:\n         return jjMoveStringLiteralDfa8_0(active0, 0x400000000L, active1, 0L);\n      case 101:\n         if ((active0 & 0x80000L) != 0L)\n            return jjStartNfaWithStates_0(7, 19, 35);\n         return jjMoveStringLiteralDfa8_0(active0, 0x8100000000L, active1, 0x500000000L);\n      case 104:\n         return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x40004000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x4000000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x101010000000000L);\n      case 117:\n         return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x400040000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(6, active0, active1);\n}\nprivate final int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(6, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(7, active0, active1);\n      return 8;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x500000000L);\n      case 100:\n         if ((active0 & 0x8000000000L) != 0L)\n            return jjStartNfaWithStates_0(8, 39, 35);\n         break;\n      case 101:\n         if ((active0 & 0x400000000L) != 0L)\n            return jjStartNfaWithStates_0(8, 34, 35);\n         break;\n      case 103:\n         return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x4000000000000L);\n      case 104:\n         return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x100010000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x41004000000000L);\n      case 110:\n         return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x400040000000000L);\n      case 111:\n         return jjMoveStringLiteralDfa9_0(active0, 0x100000000L, active1, 0L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(7, active0, active1);\n}\nprivate final int jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(7, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(8, active0, active1);\n      return 9;\n   }\n   switch(curChar)\n   {\n      case 97:\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x100000000L);\n      case 102:\n         if ((active0 & 0x100000000L) != 0L)\n            return jjStartNfaWithStates_0(9, 32, 35);\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x40004000000000L);\n      case 103:\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x1000000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x100010000000000L);\n      case 110:\n         if ((active1 & 0x4000000000000L) != 0L)\n            return jjStopAtPos(9, 114);\n         break;\n      case 111:\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x400000000L);\n      case 115:\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x400040000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(8, active0, active1);\n}\nprivate final int jjMoveStringLiteralDfa10_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(8, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(9, 0L, active1);\n      return 10;\n   }\n   switch(curChar)\n   {\n      case 102:\n         return jjMoveStringLiteralDfa11_0(active1, 0x100010000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa11_0(active1, 0x400040000000000L);\n      case 110:\n         if ((active1 & 0x1000000000000L) != 0L)\n            return jjStopAtPos(10, 112);\n         return jjMoveStringLiteralDfa11_0(active1, 0x100000000L);\n      case 114:\n         if ((active1 & 0x400000000L) != 0L)\n            return jjStopAtPos(10, 98);\n         break;\n      case 116:\n         if ((active1 & 0x4000000000L) != 0L)\n         {\n            jjmatchedKind = 102;\n            jjmatchedPos = 10;\n         }\n         return jjMoveStringLiteralDfa11_0(active1, 0x40000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(9, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa11_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(9, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(10, 0L, active1);\n      return 11;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa12_0(active1, 0x40000000000000L);\n      case 100:\n         if ((active1 & 0x100000000L) != 0L)\n            return jjStopAtPos(11, 96);\n         break;\n      case 103:\n         return jjMoveStringLiteralDfa12_0(active1, 0x400040000000000L);\n      case 116:\n         if ((active1 & 0x10000000000L) != 0L)\n         {\n            jjmatchedKind = 104;\n            jjmatchedPos = 11;\n         }\n         return jjMoveStringLiteralDfa12_0(active1, 0x100000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(10, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa12_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(10, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(11, 0L, active1);\n      return 12;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa13_0(active1, 0x100000000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa13_0(active1, 0x40000000000000L);\n      case 110:\n         return jjMoveStringLiteralDfa13_0(active1, 0x400040000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(11, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa13_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(11, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(12, 0L, active1);\n      return 13;\n   }\n   switch(curChar)\n   {\n      case 97:\n         return jjMoveStringLiteralDfa14_0(active1, 0x100000000000000L);\n      case 101:\n         return jjMoveStringLiteralDfa14_0(active1, 0x400040000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa14_0(active1, 0x40000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(12, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa14_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(12, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(13, 0L, active1);\n      return 14;\n   }\n   switch(curChar)\n   {\n      case 100:\n         return jjMoveStringLiteralDfa15_0(active1, 0x400040000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa15_0(active1, 0x140000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(13, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa15_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(13, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(14, 0L, active1);\n      return 15;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa16_0(active1, 0x400040000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa16_0(active1, 0x40000000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa16_0(active1, 0x100000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(14, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa16_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(14, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(15, 0L, active1);\n      return 16;\n   }\n   switch(curChar)\n   {\n      case 103:\n         return jjMoveStringLiteralDfa17_0(active1, 0x40000000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa17_0(active1, 0x100000000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa17_0(active1, 0x400040000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(15, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa17_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(15, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(16, 0L, active1);\n      return 17;\n   }\n   switch(curChar)\n   {\n      case 103:\n         return jjMoveStringLiteralDfa18_0(active1, 0x100000000000000L);\n      case 104:\n         return jjMoveStringLiteralDfa18_0(active1, 0x400040000000000L);\n      case 110:\n         if ((active1 & 0x40000000000000L) != 0L)\n            return jjStopAtPos(17, 118);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(16, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa18_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(16, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(17, 0L, active1);\n      return 18;\n   }\n   switch(curChar)\n   {\n      case 105:\n         return jjMoveStringLiteralDfa19_0(active1, 0x400040000000000L);\n      case 110:\n         if ((active1 & 0x100000000000000L) != 0L)\n            return jjStopAtPos(18, 120);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(17, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa19_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(17, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(18, 0L, active1);\n      return 19;\n   }\n   switch(curChar)\n   {\n      case 102:\n         return jjMoveStringLiteralDfa20_0(active1, 0x400040000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(18, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa20_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(18, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(19, 0L, active1);\n      return 20;\n   }\n   switch(curChar)\n   {\n      case 116:\n         if ((active1 & 0x40000000000L) != 0L)\n         {\n            jjmatchedKind = 106;\n            jjmatchedPos = 20;\n         }\n         return jjMoveStringLiteralDfa21_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(19, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa21_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(19, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(20, 0L, active1);\n      return 21;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa22_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(20, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa22_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(20, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(21, 0L, active1);\n      return 22;\n   }\n   switch(curChar)\n   {\n      case 97:\n         return jjMoveStringLiteralDfa23_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(21, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa23_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(21, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(22, 0L, active1);\n      return 23;\n   }\n   switch(curChar)\n   {\n      case 115:\n         return jjMoveStringLiteralDfa24_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(22, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa24_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(22, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(23, 0L, active1);\n      return 24;\n   }\n   switch(curChar)\n   {\n      case 115:\n         return jjMoveStringLiteralDfa25_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(23, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa25_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(23, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(24, 0L, active1);\n      return 25;\n   }\n   switch(curChar)\n   {\n      case 105:\n         return jjMoveStringLiteralDfa26_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(24, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa26_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(24, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(25, 0L, active1);\n      return 26;\n   }\n   switch(curChar)\n   {\n      case 103:\n         return jjMoveStringLiteralDfa27_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(25, 0L, active1);\n}\nprivate final int jjMoveStringLiteralDfa27_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(25, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(26, 0L, active1);\n      return 27;\n   }\n   switch(curChar)\n   {\n      case 110:\n         if ((active1 & 0x400000000000000L) != 0L)\n            return jjStopAtPos(27, 122);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(26, 0L, active1);\n}\nprivate final void jjCheckNAdd(int state)\n{\n   if (jjrounds[state] != jjround)\n   {\n      jjstateSet[jjnewStateCnt++] = state;\n      jjrounds[state] = jjround;\n   }\n}\nprivate final void jjAddStates(int start, int end)\n{\n   do {\n      jjstateSet[jjnewStateCnt++] = jjnextStates[start];\n   } while (start++ != end);\n}\nprivate final void jjCheckNAddTwoStates(int state1, int state2)\n{\n   jjCheckNAdd(state1);\n   jjCheckNAdd(state2);\n}\nprivate final void jjCheckNAddStates(int start, int end)\n{\n   do {\n      jjCheckNAdd(jjnextStates[start]);\n   } while (start++ != end);\n}\nprivate final void jjCheckNAddStates(int start)\n{\n   jjCheckNAdd(jjnextStates[start]);\n   jjCheckNAdd(jjnextStates[start + 1]);\n}\nstatic final long[] jjbitVec0 = {\n   0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL\n};\nstatic final long[] jjbitVec1 = {\n   0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL\n};\nstatic final long[] jjbitVec3 = {\n   0x1ff00000fffffffeL, 0xffffffffffffc000L, 0xffffffffL, 0x600000000000000L\n};\nstatic final long[] jjbitVec4 = {\n   0x0L, 0x0L, 0x0L, 0xff7fffffff7fffffL\n};\nstatic final long[] jjbitVec5 = {\n   0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL\n};\nstatic final long[] jjbitVec6 = {\n   0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffL, 0x0L\n};\nstatic final long[] jjbitVec7 = {\n   0xffffffffffffffffL, 0xffffffffffffffffL, 0x0L, 0x0L\n};\nstatic final long[] jjbitVec8 = {\n   0x3fffffffffffL, 0x0L, 0x0L, 0x0L\n};\nprivate final int jjMoveNfa_0(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 74;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 6:\n                  if ((0x1ffffffffL & l) != 0L)\n                  {\n                     if (kind > 6)\n                        kind = 6;\n                     jjCheckNAdd(0);\n                  }\n                  else if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddStates(0, 6);\n                  else if (curChar == 47)\n                     jjAddStates(7, 9);\n                  else if (curChar == 36)\n                  {\n                     if (kind > 58)\n                        kind = 58;\n                     jjCheckNAdd(35);\n                  }\n                  else if (curChar == 34)\n                     jjCheckNAddStates(10, 12);\n                  else if (curChar == 39)\n                     jjAddStates(13, 14);\n                  else if (curChar == 46)\n                     jjCheckNAdd(11);\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  if ((0x3fe000000000000L & l) != 0L)\n                  {\n                     if (kind > 50)\n                        kind = 50;\n                     jjCheckNAddTwoStates(8, 9);\n                  }\n                  else if (curChar == 48)\n                  {\n                     if (kind > 50)\n                        kind = 50;\n                     jjCheckNAddStates(15, 17);\n                  }\n                  break;\n               case 56:\n                  if (curChar == 42)\n                     jjCheckNAddTwoStates(69, 70);\n                  else if (curChar == 47)\n                  {\n                     if (kind > 7)\n                        kind = 7;\n                     jjCheckNAddStates(18, 20);\n                  }\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 61;\n                  break;\n               case 0:\n                  if ((0x1ffffffffL & l) == 0L)\n                     break;\n                  if (kind > 6)\n                     kind = 6;\n                  jjCheckNAdd(0);\n                  break;\n               case 1:\n                  if (curChar == 33)\n                     jjCheckNAddStates(21, 23);\n                  break;\n               case 2:\n                  if ((0xffffffffffffdbffL & l) != 0L)\n                     jjCheckNAddStates(21, 23);\n                  break;\n               case 3:\n                  if ((0x2400L & l) != 0L && kind > 8)\n                     kind = 8;\n                  break;\n               case 4:\n                  if (curChar == 10 && kind > 8)\n                     kind = 8;\n                  break;\n               case 5:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 4;\n                  break;\n               case 7:\n                  if ((0x3fe000000000000L & l) == 0L)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddTwoStates(8, 9);\n                  break;\n               case 8:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddTwoStates(8, 9);\n                  break;\n               case 10:\n                  if (curChar == 46)\n                     jjCheckNAdd(11);\n                  break;\n               case 11:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddStates(24, 26);\n                  break;\n               case 13:\n                  if ((0x280000000000L & l) != 0L)\n                     jjCheckNAdd(14);\n                  break;\n               case 14:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddTwoStates(14, 15);\n                  break;\n               case 16:\n                  if (curChar == 39)\n                     jjAddStates(13, 14);\n                  break;\n               case 17:\n                  if ((0xffffff7fffffdbffL & l) != 0L)\n                     jjCheckNAdd(18);\n                  break;\n               case 18:\n                  if (curChar == 39 && kind > 56)\n                     kind = 56;\n                  break;\n               case 20:\n                  if ((0x8400000000L & l) != 0L)\n                     jjCheckNAdd(18);\n                  break;\n               case 21:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddTwoStates(22, 18);\n                  break;\n               case 22:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAdd(18);\n                  break;\n               case 23:\n                  if ((0xf000000000000L & l) != 0L)\n                     jjstateSet[jjnewStateCnt++] = 24;\n                  break;\n               case 24:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAdd(22);\n                  break;\n               case 25:\n                  if (curChar == 34)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 26:\n                  if ((0xfffffffbffffdbffL & l) != 0L)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 28:\n                  if ((0x8400000000L & l) != 0L)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 29:\n                  if (curChar == 34 && kind > 57)\n                     kind = 57;\n                  break;\n               case 30:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(27, 30);\n                  break;\n               case 31:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 32:\n                  if ((0xf000000000000L & l) != 0L)\n                     jjstateSet[jjnewStateCnt++] = 33;\n                  break;\n               case 33:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAdd(31);\n                  break;\n               case 34:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 58)\n                     kind = 58;\n                  jjCheckNAdd(35);\n                  break;\n               case 35:\n                  if ((0x3ff001000000000L & l) == 0L)\n                     break;\n                  if (kind > 58)\n                     kind = 58;\n                  jjCheckNAdd(35);\n                  break;\n               case 36:\n                  if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddStates(0, 6);\n                  break;\n               case 37:\n                  if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddTwoStates(37, 38);\n                  break;\n               case 38:\n                  if (curChar != 46)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddStates(31, 33);\n                  break;\n               case 39:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddStates(31, 33);\n                  break;\n               case 41:\n                  if ((0x280000000000L & l) != 0L)\n                     jjCheckNAdd(42);\n                  break;\n               case 42:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddTwoStates(42, 15);\n                  break;\n               case 43:\n                  if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddTwoStates(43, 44);\n                  break;\n               case 45:\n                  if ((0x280000000000L & l) != 0L)\n                     jjCheckNAdd(46);\n                  break;\n               case 46:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddTwoStates(46, 15);\n                  break;\n               case 47:\n                  if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddStates(34, 36);\n                  break;\n               case 49:\n                  if ((0x280000000000L & l) != 0L)\n                     jjCheckNAdd(50);\n                  break;\n               case 50:\n                  if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddTwoStates(50, 15);\n                  break;\n               case 51:\n                  if (curChar != 48)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddStates(15, 17);\n                  break;\n               case 53:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddTwoStates(53, 9);\n                  break;\n               case 54:\n                  if ((0xff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddTwoStates(54, 9);\n                  break;\n               case 55:\n                  if (curChar == 47)\n                     jjAddStates(7, 9);\n                  break;\n               case 57:\n                  if ((0xffffffffffffdbffL & l) == 0L)\n                     break;\n                  if (kind > 7)\n                     kind = 7;\n                  jjCheckNAddStates(18, 20);\n                  break;\n               case 58:\n                  if ((0x2400L & l) != 0L && kind > 7)\n                     kind = 7;\n                  break;\n               case 59:\n                  if (curChar == 10 && kind > 7)\n                     kind = 7;\n                  break;\n               case 60:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 59;\n                  break;\n               case 61:\n                  if (curChar == 42)\n                     jjCheckNAddTwoStates(62, 63);\n                  break;\n               case 62:\n                  if ((0xfffffbffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(62, 63);\n                  break;\n               case 63:\n                  if (curChar == 42)\n                     jjCheckNAddStates(37, 39);\n                  break;\n               case 64:\n                  if ((0xffff7bffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(65, 63);\n                  break;\n               case 65:\n                  if ((0xfffffbffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(65, 63);\n                  break;\n               case 66:\n                  if (curChar == 47 && kind > 9)\n                     kind = 9;\n                  break;\n               case 67:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 61;\n                  break;\n               case 68:\n                  if (curChar == 42)\n                     jjCheckNAddTwoStates(69, 70);\n                  break;\n               case 69:\n                  if ((0xfffffbffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(69, 70);\n                  break;\n               case 70:\n                  if (curChar == 42)\n                     jjCheckNAddStates(40, 42);\n                  break;\n               case 71:\n                  if ((0xffff7bffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(72, 70);\n                  break;\n               case 72:\n                  if ((0xfffffbffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(72, 70);\n                  break;\n               case 73:\n                  if (curChar == 47 && kind > 10)\n                     kind = 10;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 6:\n               case 35:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 58)\n                     kind = 58;\n                  jjCheckNAdd(35);\n                  break;\n               case 2:\n                  jjAddStates(21, 23);\n                  break;\n               case 9:\n                  if ((0x100000001000L & l) != 0L && kind > 50)\n                     kind = 50;\n                  break;\n               case 12:\n                  if ((0x2000000020L & l) != 0L)\n                     jjAddStates(43, 44);\n                  break;\n               case 15:\n                  if ((0x5000000050L & l) != 0L && kind > 54)\n                     kind = 54;\n                  break;\n               case 17:\n                  if ((0xffffffffefffffffL & l) != 0L)\n                     jjCheckNAdd(18);\n                  break;\n               case 19:\n                  if (curChar == 92)\n                     jjAddStates(45, 47);\n                  break;\n               case 20:\n                  if ((0x14404410000000L & l) != 0L)\n                     jjCheckNAdd(18);\n                  break;\n               case 26:\n                  if ((0xffffffffefffffffL & l) != 0L)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 27:\n                  if (curChar == 92)\n                     jjAddStates(48, 50);\n                  break;\n               case 28:\n                  if ((0x14404410000000L & l) != 0L)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 40:\n                  if ((0x2000000020L & l) != 0L)\n                     jjAddStates(51, 52);\n                  break;\n               case 44:\n                  if ((0x2000000020L & l) != 0L)\n                     jjAddStates(53, 54);\n                  break;\n               case 48:\n                  if ((0x2000000020L & l) != 0L)\n                     jjAddStates(55, 56);\n                  break;\n               case 52:\n                  if ((0x100000001000000L & l) != 0L)\n                     jjCheckNAdd(53);\n                  break;\n               case 53:\n                  if ((0x7e0000007eL & l) == 0L)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddTwoStates(53, 9);\n                  break;\n               case 57:\n                  if (kind > 7)\n                     kind = 7;\n                  jjAddStates(18, 20);\n                  break;\n               case 62:\n                  jjCheckNAddTwoStates(62, 63);\n                  break;\n               case 64:\n               case 65:\n                  jjCheckNAddTwoStates(65, 63);\n                  break;\n               case 69:\n                  jjCheckNAddTwoStates(69, 70);\n                  break;\n               case 71:\n               case 72:\n                  jjCheckNAddTwoStates(72, 70);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 6:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2))\n                  {\n                     if (kind > 6)\n                        kind = 6;\n                     jjCheckNAdd(0);\n                  }\n                  if (jjCanMove_2(hiByte, i1, i2, l1, l2))\n                  {\n                     if (kind > 58)\n                        kind = 58;\n                     jjCheckNAdd(35);\n                  }\n                  break;\n               case 0:\n                  if (!jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     break;\n                  if (kind > 6)\n                     kind = 6;\n                  jjCheckNAdd(0);\n                  break;\n               case 2:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjAddStates(21, 23);\n                  break;\n               case 17:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjstateSet[jjnewStateCnt++] = 18;\n                  break;\n               case 26:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjAddStates(10, 12);\n                  break;\n               case 34:\n               case 35:\n                  if (!jjCanMove_2(hiByte, i1, i2, l1, l2))\n                     break;\n                  if (kind > 58)\n                     kind = 58;\n                  jjCheckNAdd(35);\n                  break;\n               case 57:\n                  if (!jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     break;\n                  if (kind > 7)\n                     kind = 7;\n                  jjAddStates(18, 20);\n                  break;\n               case 62:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjCheckNAddTwoStates(62, 63);\n                  break;\n               case 64:\n               case 65:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjCheckNAddTwoStates(65, 63);\n                  break;\n               case 69:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjCheckNAddTwoStates(69, 70);\n                  break;\n               case 71:\n               case 72:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjCheckNAddTwoStates(72, 70);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 74 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }\n   }\n}\nstatic final int[] jjnextStates = {\n   37, 38, 43, 44, 47, 48, 15, 56, 67, 68, 26, 27, 29, 17, 19, 52, \n   54, 9, 57, 58, 60, 2, 3, 5, 11, 12, 15, 26, 27, 31, 29, 39, \n   40, 15, 47, 48, 15, 63, 64, 66, 70, 71, 73, 13, 14, 20, 21, 23, \n   28, 30, 32, 41, 42, 45, 46, 49, 50, \n};\nprivate static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)\n{\n   switch(hiByte)\n   {\n      case 0:\n         return ((jjbitVec0[i2] & l2) != 0L);\n      default : \n         return false;\n   }\n}\nprivate static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2)\n{\n   switch(hiByte)\n   {\n      case 0:\n         return ((jjbitVec0[i2] & l2) != 0L);\n      default : \n         if ((jjbitVec1[i1] & l1) != 0L)\n            return true;\n         return false;\n   }\n}\nprivate static final boolean jjCanMove_2(int hiByte, int i1, int i2, long l1, long l2)\n{\n   switch(hiByte)\n   {\n      case 0:\n         return ((jjbitVec4[i2] & l2) != 0L);\n      case 48:\n         return ((jjbitVec5[i2] & l2) != 0L);\n      case 49:\n         return ((jjbitVec6[i2] & l2) != 0L);\n      case 51:\n         return ((jjbitVec7[i2] & l2) != 0L);\n      case 61:\n         return ((jjbitVec8[i2] & l2) != 0L);\n      default : \n         if ((jjbitVec3[i1] & l1) != 0L)\n            return true;\n         return false;\n   }\n}\npublic static final String[] jjstrLiteralImages = {\n\"\", null, null, null, null, null, null, null, null, null, null, \n\"\\142\\157\\157\\154\\145\\141\\156\", \"\\142\\162\\145\\141\\153\", \"\\143\\154\\141\\163\\163\", \"\\142\\171\\164\\145\", \n\"\\143\\141\\163\\145\", \"\\143\\141\\164\\143\\150\", \"\\143\\150\\141\\162\", \"\\143\\157\\156\\163\\164\", \n\"\\143\\157\\156\\164\\151\\156\\165\\145\", \"\\144\\145\\146\\141\\165\\154\\164\", \"\\144\\157\", \"\\144\\157\\165\\142\\154\\145\", \n\"\\145\\154\\163\\145\", \"\\146\\141\\154\\163\\145\", \"\\146\\151\\156\\141\\154\", \n\"\\146\\151\\156\\141\\154\\154\\171\", \"\\146\\154\\157\\141\\164\", \"\\146\\157\\162\", \"\\147\\157\\164\\157\", \"\\151\\146\", \n\"\\151\\155\\160\\157\\162\\164\", \"\\151\\156\\163\\164\\141\\156\\143\\145\\157\\146\", \"\\151\\156\\164\", \n\"\\151\\156\\164\\145\\162\\146\\141\\143\\145\", \"\\154\\157\\156\\147\", \"\\156\\145\\167\", \"\\156\\165\\154\\154\", \n\"\\160\\162\\151\\166\\141\\164\\145\", \"\\160\\162\\157\\164\\145\\143\\164\\145\\144\", \"\\160\\165\\142\\154\\151\\143\", \n\"\\162\\145\\164\\165\\162\\156\", \"\\163\\150\\157\\162\\164\", \"\\163\\164\\141\\164\\151\\143\", \n\"\\163\\167\\151\\164\\143\\150\", \"\\164\\150\\162\\157\\167\", \"\\164\\162\\165\\145\", \"\\164\\162\\171\", \n\"\\166\\157\\151\\144\", \"\\167\\150\\151\\154\\145\", null, null, null, null, null, null, null, null, null, \nnull, null, \"\\50\", \"\\51\", \"\\173\", \"\\175\", \"\\133\", \"\\135\", \"\\73\", \"\\54\", \"\\56\", \n\"\\75\", \"\\76\", \"\\100\\147\\164\", \"\\74\", \"\\100\\154\\164\", \"\\41\", \"\\176\", \"\\77\", \"\\72\", \n\"\\75\\75\", \"\\74\\75\", \"\\100\\154\\164\\145\\161\", \"\\76\\75\", \"\\100\\147\\164\\145\\161\", \"\\41\\75\", \n\"\\174\\174\", \"\\100\\157\\162\", \"\\46\\46\", \"\\100\\141\\156\\144\", \"\\53\\53\", \"\\55\\55\", \"\\53\", \n\"\\55\", \"\\52\", \"\\57\", \"\\46\", \"\\100\\142\\151\\164\\167\\151\\163\\145\\137\\141\\156\\144\", \n\"\\174\", \"\\100\\142\\151\\164\\167\\151\\163\\145\\137\\157\\162\", \"\\136\", \"\\45\", \"\\74\\74\", \n\"\\100\\154\\145\\146\\164\\137\\163\\150\\151\\146\\164\", \"\\76\\76\", \"\\100\\162\\151\\147\\150\\164\\137\\163\\150\\151\\146\\164\", \"\\76\\76\\76\", \n\"\\100\\162\\151\\147\\150\\164\\137\\165\\156\\163\\151\\147\\156\\145\\144\\137\\163\\150\\151\\146\\164\", \"\\53\\75\", \"\\55\\75\", \"\\52\\75\", \"\\57\\75\", \"\\46\\75\", \n\"\\100\\141\\156\\144\\137\\141\\163\\163\\151\\147\\156\", \"\\174\\75\", \"\\100\\157\\162\\137\\141\\163\\163\\151\\147\\156\", \"\\136\\75\", \"\\45\\75\", \n\"\\74\\74\\75\", \"\\100\\154\\145\\146\\164\\137\\163\\150\\151\\146\\164\\137\\141\\163\\163\\151\\147\\156\", \n\"\\76\\76\\75\", \n\"\\100\\162\\151\\147\\150\\164\\137\\163\\150\\151\\146\\164\\137\\141\\163\\163\\151\\147\\156\", \"\\76\\76\\76\\75\", \n\"\\100\\162\\151\\147\\150\\164\\137\\165\\156\\163\\151\\147\\156\\145\\144\\137\\163\\150\\151\\146\\164\\137\\141\\163\\163\\151\\147\\156\", };\npublic static final String[] lexStateNames = {\n   \"DEFAULT\", \n};\nstatic final long[] jjtoToken = {\n   0xe747fffffffff801L, 0x7ffffffffffffffL, \n};\nstatic final long[] jjtoSkip = {\n   0x7feL, 0x0L, \n};\nstatic final long[] jjtoSpecial = {\n   0x780L, 0x0L, \n};\nprivate ASCII_UCodeESC_CharStream input_stream;\nprivate final int[] jjrounds = new int[74];\nprivate final int[] jjstateSet = new int[148];\nprotected char curChar;\npublic ParserTokenManager(ASCII_UCodeESC_CharStream stream)\n{\n   if (ASCII_UCodeESC_CharStream.staticFlag)\n      throw new Error(\"ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.\");\n   input_stream = stream;\n}\npublic ParserTokenManager(ASCII_UCodeESC_CharStream stream, int lexState)\n{\n   this(stream);\n   SwitchTo(lexState);\n}\npublic void ReInit(ASCII_UCodeESC_CharStream stream)\n{\n   jjmatchedPos = jjnewStateCnt = 0;\n   curLexState = defaultLexState;\n   input_stream = stream;\n   ReInitRounds();\n}\nprivate final void ReInitRounds()\n{\n   int i;\n   jjround = 0x80000001;\n   for (i = 74; i-- > 0;)\n      jjrounds[i] = 0x80000000;\n}\npublic void ReInit(ASCII_UCodeESC_CharStream stream, int lexState)\n{\n   ReInit(stream);\n   SwitchTo(lexState);\n}\npublic void SwitchTo(int lexState)\n{\n   if (lexState >= 1 || lexState < 0)\n      throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n   else\n      curLexState = lexState;\n}\n\nprivate final Token jjFillToken()\n{\n   Token t = Token.newToken(jjmatchedKind);\n   t.kind = jjmatchedKind;\n   String im = jjstrLiteralImages[jjmatchedKind];\n   t.image = (im == null) ? input_stream.GetImage() : im;\n   t.beginLine = input_stream.getBeginLine();\n   t.beginColumn = input_stream.getBeginColumn();\n   t.endLine = input_stream.getEndLine();\n   t.endColumn = input_stream.getEndColumn();\n   return t;\n}\n\nint curLexState = 0;\nint defaultLexState = 0;\nint jjnewStateCnt;\nint jjround;\nint jjmatchedPos;\nint jjmatchedKind;\n\npublic final Token getNextToken() \n{\n  int kind;\n  Token specialToken = null;\n  Token matchedToken;\n  int curPos = 0;\n\n  EOFLoop :\n  for (;;)\n  {   \n   try   \n   {     \n      curChar = input_stream.BeginToken();\n   }     \n   catch(java.io.IOException e)\n   {        \n      jjmatchedKind = 0;\n      matchedToken = jjFillToken();\n      matchedToken.specialToken = specialToken;\n      return matchedToken;\n   }\n\n   jjmatchedKind = 0x7fffffff;\n   jjmatchedPos = 0;\n   curPos = jjMoveStringLiteralDfa0_0();\n   if (jjmatchedKind != 0x7fffffff)\n   {\n      if (jjmatchedPos + 1 < curPos)\n         input_stream.backup(curPos - jjmatchedPos - 1);\n      if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n      {\n         matchedToken = jjFillToken();\n         matchedToken.specialToken = specialToken;\n         return matchedToken;\n      }\n      else\n      {\n         if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n         {\n            matchedToken = jjFillToken();\n            if (specialToken == null)\n               specialToken = matchedToken;\n            else\n            {\n               matchedToken.specialToken = specialToken;\n               specialToken = (specialToken.next = matchedToken);\n            }\n         }\n         continue EOFLoop;\n      }\n   }\n   int error_line = input_stream.getEndLine();\n   int error_column = input_stream.getEndColumn();\n   String error_after = null;\n   boolean EOFSeen = false;\n   try { input_stream.readChar(); input_stream.backup(1); }\n   catch (java.io.IOException e1) {\n      EOFSeen = true;\n      error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n      if (curChar == '\\n' || curChar == '\\r') {\n         error_line++;\n         error_column = 0;\n      }\n      else\n         error_column++;\n   }\n   if (!EOFSeen) {\n      input_stream.backup(1);\n      error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n   }\n   throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);", "functions": [{"function_name": "jjStopStringLiteralDfa_0", "code": "private final int jjStopStringLiteralDfa_0(int pos, long active0, long active1)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0x3eL) != 0L)\n            return 0;\n         if ((active1 & 0x400040000000L) != 0L)\n            return 56;\n         if ((active1 & 0x20L) != 0L)\n            return 11;\n         if ((active0 & 0x3fffffffff800L) != 0L)\n         {\n            jjmatchedKind = 58;\n            return 35;\n         }\n         return -1;\n      case 1:\n         if ((active0 & 0x3ffffbf9ff800L) != 0L)\n         {\n            if (jjmatchedPos != 1)\n            {\n               jjmatchedKind = 58;\n               jjmatchedPos = 1;\n            }\n            return 35;\n         }\n         if ((active0 & 0x40600000L) != 0L)\n            return 35;\n         return -1;\n      case 2:\n         if ((active0 & 0x37fe9afdff800L) != 0L)\n         {\n            if (jjmatchedPos != 2)\n            {\n               jjmatchedKind = 58;\n               jjmatchedPos = 2;\n            }\n            return 35;\n         }\n         if ((active0 & 0x801610000000L) != 0L)\n            return 35;\n         return -1;\n      case 3:\n         if ((active0 & 0x140282082c000L) != 0L)\n            return 35;\n         if ((active0 & 0x23fc58f5d3800L) != 0L)\n         {\n            if (jjmatchedPos != 3)\n            {\n               jjmatchedKind = 58;\n               jjmatchedPos = 3;\n            }\n            return 35;\n         }\n         return -1;\n      case 4:\n         if ((active0 & 0x1bc580580800L) != 0L)\n         {\n            if (jjmatchedPos != 4)\n            {\n               jjmatchedKind = 58;\n               jjmatchedPos = 4;\n            }\n            return 35;\n         }\n         if ((active0 & 0x224000f053000L) != 0L)\n            return 35;\n         return -1;\n      case 5:\n         if ((active0 & 0xc504180800L) != 0L)\n         {\n            jjmatchedKind = 58;\n            jjmatchedPos = 5;\n            return 35;\n         }\n         if ((active0 & 0x1b0080400000L) != 0L)\n            return 35;\n         return -1;\n      case 6:\n         if ((active0 & 0x4004100800L) != 0L)\n            return 35;\n         if ((active0 & 0x8500080000L) != 0L)\n         {\n            jjmatchedKind = 58;\n            jjmatchedPos = 6;\n            return 35;\n         }\n         return -1;\n      case 7:\n         if ((active0 & 0x8500000000L) != 0L)\n         {\n            jjmatchedKind = 58;\n            jjmatchedPos = 7;\n            return 35;\n         }\n         if ((active0 & 0x80000L) != 0L)\n            return 35;\n         return -1;\n      case 8:\n         if ((active0 & 0x100000000L) != 0L)\n         {\n            jjmatchedKind = 58;\n            jjmatchedPos = 8;\n            return 35;\n         }\n         if ((active0 & 0x8400000000L) != 0L)\n            return 35;\n         return -1;\n      case 9:\n         if ((active0 & 0x100000000L) != 0L)\n            return 35;\n         return -1;\n      default :\n         return -1;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "RETURN", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [5, 47], [6, 48], [7, 49], [7, 50], [9, 51], [10, 52], [10, 53], [11, 54], [13, 55], [14, 56], [14, 57], [15, 58], [17, 59], [18, 60], [19, 61], [19, 62], [21, 63], [22, 64], [22, 65], [23, 66], [25, 67], [26, 68], [26, 69], [27, 70], [29, 71], [30, 72], [31, 73], [31, 74], [33, 75], [34, 76], [34, 77], [35, 78], [37, 79], [38, 80], [38, 81], [39, 82], [41, 83], [42, 84], [43, 85], [43, 86], [44, 87], [44, 88], [45, 89], [45, 90], [49, 91], [50, 92], [50, 93], [52, 94], [53, 95], [53, 96], [11, 97], [54, 98], [54, 99], [56, 100], [57, 101], [57, 102], [15, 103], [58, 104], [58, 105], [18, 106], [60, 107], [60, 108], [61, 109], [62, 110], [62, 111], [64, 112], [65, 113], [65, 114], [23, 115], [66, 116], [66, 117], [68, 118], [69, 119], [69, 120], [27, 121], [27, 122], [70, 123], [70, 124], [30, 125], [30, 126], [72, 127], [72, 128], [73, 129], [74, 130], [74, 131], [76, 132], [77, 133], [77, 134], [35, 135], [35, 136], [78, 137], [78, 138], [80, 139], [81, 140], [81, 141], [39, 142], [39, 143], [82, 144], [82, 145], [42, 146], [84, 147], [84, 148], [85, 149], [86, 150], [86, 151], [87, 152], [88, 153], [88, 154], [89, 155], [90, 156], [90, 157], [93, 158], [96, 159], [97, 160], [11, 161], [11, 162], [99, 163], [102, 164], [103, 165], [15, 166], [15, 167], [105, 168], [106, 169], [18, 170], [18, 171], [108, 172], [111, 173], [114, 174], [115, 175], [23, 176], [23, 177], [117, 178], [120, 179], [121, 180], [122, 181], [124, 182], [125, 183], [126, 184], [128, 185], [131, 186], [134, 187], [135, 188], [136, 189], [138, 190], [141, 191], [142, 192], [143, 193], [145, 194], [146, 195], [42, 196], [148, 197], [151, 198], [154, 199], [157, 200], [161, 201], [162, 202], [166, 203], [167, 204], [170, 205], [171, 206], [176, 207], [177, 208], [181, 209], [184, 210], [189, 211], [193, 212], [196, 213], [122, 214], [122, 215], [126, 216], [126, 217], [136, 218], [136, 219], [143, 220], [143, 221], [214, 222], [215, 223], [216, 224], [217, 225], [218, 226], [219, 227], [220, 228], [221, 229], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 5], [48, 6], [49, 7], [50, 7], [51, 9], [52, 10], [53, 10], [54, 11], [55, 13], [56, 14], [57, 14], [58, 15], [59, 17], [60, 18], [61, 19], [62, 19], [63, 21], [64, 22], [65, 22], [66, 23], [67, 25], [68, 26], [69, 26], [70, 27], [71, 29], [72, 30], [73, 31], [74, 31], [75, 33], [76, 34], [77, 34], [78, 35], [79, 37], [80, 38], [81, 38], [82, 39], [83, 41], [84, 42], [85, 43], [86, 43], [87, 44], [88, 44], [89, 45], [90, 45], [91, 49], [92, 50], [93, 50], [94, 52], [95, 53], [96, 53], [97, 11], [98, 54], [99, 54], [100, 56], [101, 57], [102, 57], [103, 15], [104, 58], [105, 58], [106, 18], [107, 60], [108, 60], [109, 61], [110, 62], [111, 62], [112, 64], [113, 65], [114, 65], [115, 23], [116, 66], [117, 66], [118, 68], [119, 69], [120, 69], [121, 27], [122, 27], [123, 70], [124, 70], [125, 30], [126, 30], [127, 72], [128, 72], [129, 73], [130, 74], [131, 74], [132, 76], [133, 77], [134, 77], [135, 35], [136, 35], [137, 78], [138, 78], [139, 80], [140, 81], [141, 81], [142, 39], [143, 39], [144, 82], [145, 82], [146, 42], [147, 84], [148, 84], [149, 85], [150, 86], [151, 86], [152, 87], [153, 88], [154, 88], [155, 89], [156, 90], [157, 90], [158, 93], [159, 96], [160, 97], [161, 11], [162, 11], [163, 99], [164, 102], [165, 103], [166, 15], [167, 15], [168, 105], [169, 106], [170, 18], [171, 18], [172, 108], [173, 111], [174, 114], [175, 115], [176, 23], [177, 23], [178, 117], [179, 120], [180, 121], [181, 122], [182, 124], [183, 125], [184, 126], [185, 128], [186, 131], [187, 134], [188, 135], [189, 136], [190, 138], [191, 141], [192, 142], [193, 143], [194, 145], [195, 146], [196, 42], [197, 148], [198, 151], [199, 154], [200, 157], [201, 161], [202, 162], [203, 166], [204, 167], [205, 170], [206, 171], [207, 176], [208, 177], [209, 181], [210, 184], [211, 189], [212, 193], [213, 196], [214, 122], [215, 122], [216, 126], [217, 126], [218, 136], [219, 136], [220, 143], [221, 143], [222, 214], [223, 215], [224, 216], [225, 217], [226, 218], [227, 219], [228, 220], [229, 221], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229]]}, {"function_name": "jjStartNfa_0", "code": "private final int jjStartNfa_0(int pos, long active0, long active1)\n{\n   return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1), pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "jjStopAtPos", "code": "private final int jjStopAtPos(int pos, int kind)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   return pos + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStartNfaWithStates_0", "code": "private final int jjStartNfaWithStates_0(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_0(state, pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jjMoveStringLiteralDfa0_0", "code": "private final int jjMoveStringLiteralDfa0_0()\n{\n   switch(curChar)\n   {\n      case 9:\n         return jjStartNfaWithStates_0(0, 2, 0);\n      case 10:\n         return jjStartNfaWithStates_0(0, 5, 0);\n      case 12:\n         return jjStartNfaWithStates_0(0, 4, 0);\n      case 13:\n         return jjStartNfaWithStates_0(0, 3, 0);\n      case 32:\n         return jjStartNfaWithStates_0(0, 1, 0);\n      case 33:\n         jjmatchedKind = 75;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x100000L);\n      case 37:\n         jjmatchedKind = 100;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x10000000000000L);\n      case 38:\n         jjmatchedKind = 95;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x800000800000L);\n      case 40:\n         return jjStopAtPos(0, 61);\n      case 41:\n         return jjStopAtPos(0, 62);\n      case 42:\n         jjmatchedKind = 93;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x200000000000L);\n      case 43:\n         jjmatchedKind = 91;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x80002000000L);\n      case 44:\n         return jjStopAtPos(0, 68);\n      case 45:\n         jjmatchedKind = 92;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x100004000000L);\n      case 46:\n         return jjStartNfaWithStates_0(0, 69, 11);\n      case 47:\n         jjmatchedKind = 94;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x400000000000L);\n      case 58:\n         return jjStopAtPos(0, 78);\n      case 59:\n         return jjStopAtPos(0, 67);\n      case 60:\n         jjmatchedKind = 73;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x20002000010000L);\n      case 61:\n         jjmatchedKind = 70;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x8000L);\n      case 62:\n         jjmatchedKind = 71;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x280028000040000L);\n      case 63:\n         return jjStopAtPos(0, 77);\n      case 64:\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x5450545014a0500L);\n      case 91:\n         return jjStopAtPos(0, 65);\n      case 93:\n         return jjStopAtPos(0, 66);\n      case 94:\n         jjmatchedKind = 99;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x8000000000000L);\n      case 98:\n         return jjMoveStringLiteralDfa1_0(0x5800L, 0x0L);\n      case 99:\n         return jjMoveStringLiteralDfa1_0(0xfa000L, 0x0L);\n      case 100:\n         return jjMoveStringLiteralDfa1_0(0x700000L, 0x0L);\n      case 101:\n         return jjMoveStringLiteralDfa1_0(0x800000L, 0x0L);\n      case 102:\n         return jjMoveStringLiteralDfa1_0(0x1f000000L, 0x0L);\n      case 103:\n         return jjMoveStringLiteralDfa1_0(0x20000000L, 0x0L);\n      case 105:\n         return jjMoveStringLiteralDfa1_0(0x7c0000000L, 0x0L);\n      case 108:\n         return jjMoveStringLiteralDfa1_0(0x800000000L, 0x0L);\n      case 110:\n         return jjMoveStringLiteralDfa1_0(0x3000000000L, 0x0L);\n      case 112:\n         return jjMoveStringLiteralDfa1_0(0x1c000000000L, 0x0L);\n      case 114:\n         return jjMoveStringLiteralDfa1_0(0x20000000000L, 0x0L);\n      case 115:\n         return jjMoveStringLiteralDfa1_0(0x1c0000000000L, 0x0L);\n      case 116:\n         return jjMoveStringLiteralDfa1_0(0xe00000000000L, 0x0L);\n      case 118:\n         return jjMoveStringLiteralDfa1_0(0x1000000000000L, 0x0L);\n      case 119:\n         return jjMoveStringLiteralDfa1_0(0x2000000000000L, 0x0L);\n      case 123:\n         return jjStopAtPos(0, 63);\n      case 124:\n         jjmatchedKind = 97;\n         return jjMoveStringLiteralDfa1_0(0x0L, 0x2000000200000L);\n      case 125:\n         return jjStopAtPos(0, 64);\n      case 126:\n         return jjStopAtPos(0, 76);\n      default :\n         return jjMoveNfa_0(6, 0);", "ast_nodes": ["FUNC_DECL", "SWITCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81], [1, 82], [1, 83], [1, 84], [1, 85], [1, 86], [1, 87], [1, 88], [1, 89], [1, 90], [1, 91], [1, 92], [2, 93], [3, 94], [5, 95], [7, 96], [1, 97], [9, 98], [11, 99], [13, 100], [15, 101], [17, 102], [19, 103], [21, 104], [23, 105], [25, 106], [27, 107], [29, 108], [31, 109], [33, 110], [35, 111], [37, 112], [39, 113], [41, 114], [1, 115], [43, 116], [45, 117], [47, 118], [49, 119], [51, 120], [1, 121], [53, 122], [1, 123], [55, 124], [1, 125], [57, 126], [59, 127], [61, 128], [1, 129], [63, 130], [65, 131], [1, 132], [67, 133], [69, 134], [1, 135], [71, 136], [1, 137], [73, 138], [75, 139], [77, 140], [1, 141], [79, 142], [1, 143], [81, 144], [1, 145], [83, 146], [85, 147], [87, 148], [89, 149], [91, 150], [93, 151], [93, 152], [94, 153], [94, 154], [95, 155], [95, 156], [96, 157], [96, 158], [97, 159], [98, 160], [98, 161], [99, 162], [99, 163], [100, 164], [100, 165], [101, 166], [101, 167], [102, 168], [102, 169], [103, 170], [103, 171], [104, 172], [104, 173], [105, 174], [105, 175], [106, 176], [106, 177], [107, 178], [107, 179], [108, 180], [108, 181], [109, 182], [109, 183], [110, 184], [110, 185], [111, 186], [111, 187], [112, 188], [112, 189], [113, 190], [113, 191], [114, 192], [114, 193], [115, 194], [116, 195], [116, 196], [117, 197], [117, 198], [118, 199], [118, 200], [119, 201], [119, 202], [120, 203], [120, 204], [121, 205], [122, 206], [122, 207], [123, 208], [124, 209], [124, 210], [125, 211], [126, 212], [126, 213], [127, 214], [127, 215], [128, 216], [128, 217], [129, 218], [130, 219], [130, 220], [130, 221], [131, 222], [131, 223], [132, 224], [133, 225], [133, 226], [134, 227], [134, 228], [135, 229], [136, 230], [136, 231], [137, 232], [138, 233], [138, 234], [139, 235], [139, 236], [140, 237], [140, 238], [141, 239], [142, 240], [142, 241], [143, 242], [144, 243], [144, 244], [145, 245], [146, 246], [146, 247], [146, 248], [147, 249], [147, 250], [147, 251], [148, 252], [148, 253], [148, 254], [149, 255], [149, 256], [149, 257], [150, 258], [150, 259], [150, 260], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [72, 1], [73, 1], [74, 1], [75, 1], [76, 1], [77, 1], [78, 1], [79, 1], [80, 1], [81, 1], [82, 1], [83, 1], [84, 1], [85, 1], [86, 1], [87, 1], [88, 1], [89, 1], [90, 1], [91, 1], [92, 1], [93, 2], [94, 3], [95, 5], [96, 7], [97, 1], [98, 9], [99, 11], [100, 13], [101, 15], [102, 17], [103, 19], [104, 21], [105, 23], [106, 25], [107, 27], [108, 29], [109, 31], [110, 33], [111, 35], [112, 37], [113, 39], [114, 41], [115, 1], [116, 43], [117, 45], [118, 47], [119, 49], [120, 51], [121, 1], [122, 53], [123, 1], [124, 55], [125, 1], [126, 57], [127, 59], [128, 61], [129, 1], [130, 63], [131, 65], [132, 1], [133, 67], [134, 69], [135, 1], [136, 71], [137, 1], [138, 73], [139, 75], [140, 77], [141, 1], [142, 79], [143, 1], [144, 81], [145, 1], [146, 83], [147, 85], [148, 87], [149, 89], [150, 91], [151, 93], [152, 93], [153, 94], [154, 94], [155, 95], [156, 95], [157, 96], [158, 96], [159, 97], [160, 98], [161, 98], [162, 99], [163, 99], [164, 100], [165, 100], [166, 101], [167, 101], [168, 102], [169, 102], [170, 103], [171, 103], [172, 104], [173, 104], [174, 105], [175, 105], [176, 106], [177, 106], [178, 107], [179, 107], [180, 108], [181, 108], [182, 109], [183, 109], [184, 110], [185, 110], [186, 111], [187, 111], [188, 112], [189, 112], [190, 113], [191, 113], [192, 114], [193, 114], [194, 115], [195, 116], [196, 116], [197, 117], [198, 117], [199, 118], [200, 118], [201, 119], [202, 119], [203, 120], [204, 120], [205, 121], [206, 122], [207, 122], [208, 123], [209, 124], [210, 124], [211, 125], [212, 126], [213, 126], [214, 127], [215, 127], [216, 128], [217, 128], [218, 129], [219, 130], [220, 130], [221, 130], [222, 131], [223, 131], [224, 132], [225, 133], [226, 133], [227, 134], [228, 134], [229, 135], [230, 136], [231, 136], [232, 137], [233, 138], [234, 138], [235, 139], [236, 139], [237, 140], [238, 140], [239, 141], [240, 142], [241, 142], [242, 143], [243, 144], [244, 144], [245, 145], [246, 146], [247, 146], [248, 146], [249, 147], [250, 147], [251, 147], [252, 148], [253, 148], [254, 148], [255, 149], [256, 149], [257, 149], [258, 150], [259, 150], [260, 150], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260]]}, {"function_name": "jjMoveStringLiteralDfa1_0", "code": "private final int jjMoveStringLiteralDfa1_0(long active0, long active1)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(0, active0, active1);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 38:\n         if ((active1 & 0x800000L) != 0L)\n            return jjStopAtPos(1, 87);\n         break;\n      case 43:\n         if ((active1 & 0x2000000L) != 0L)\n            return jjStopAtPos(1, 89);\n         break;\n      case 45:\n         if ((active1 & 0x4000000L) != 0L)\n            return jjStopAtPos(1, 90);\n         break;\n      case 60:\n         if ((active1 & 0x2000000000L) != 0L)\n         {\n            jjmatchedKind = 101;\n            jjmatchedPos = 1;\n         }\n         return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x20000000000000L);\n      case 61:\n         if ((active1 & 0x8000L) != 0L)\n            return jjStopAtPos(1, 79);\n         else if ((active1 & 0x10000L) != 0L)\n            return jjStopAtPos(1, 80);\n         else if ((active1 & 0x40000L) != 0L)\n            return jjStopAtPos(1, 82);\n         else if ((active1 & 0x100000L) != 0L)\n            return jjStopAtPos(1, 84);\n         else if ((active1 & 0x80000000000L) != 0L)\n            return jjStopAtPos(1, 107);\n         else if ((active1 & 0x100000000000L) != 0L)\n            return jjStopAtPos(1, 108);\n         else if ((active1 & 0x200000000000L) != 0L)\n            return jjStopAtPos(1, 109);\n         else if ((active1 & 0x400000000000L) != 0L)\n            return jjStopAtPos(1, 110);\n         else if ((active1 & 0x800000000000L) != 0L)\n            return jjStopAtPos(1, 111);\n         else if ((active1 & 0x2000000000000L) != 0L)\n            return jjStopAtPos(1, 113);\n         else if ((active1 & 0x8000000000000L) != 0L)\n            return jjStopAtPos(1, 115);\n         else if ((active1 & 0x10000000000000L) != 0L)\n            return jjStopAtPos(1, 116);\n         break;\n      case 62:\n         if ((active1 & 0x8000000000L) != 0L)\n         {\n            jjmatchedKind = 103;\n            jjmatchedPos = 1;\n         }\n         return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x280020000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa2_0(active0, 0x1018000L, active1, 0x1000001000000L);\n      case 98:\n         return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x500000000L);\n      case 101:\n         return jjMoveStringLiteralDfa2_0(active0, 0x21000100000L, active1, 0L);\n      case 102:\n         if ((active0 & 0x40000000L) != 0L)\n            return jjStartNfaWithStates_0(1, 30, 35);\n         break;\n      case 103:\n         return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x80100L);\n      case 104:\n         return jjMoveStringLiteralDfa2_0(active0, 0x2240000020000L, active1, 0L);\n      case 105:\n         return jjMoveStringLiteralDfa2_0(active0, 0x6000000L, active1, 0L);\n      case 108:\n         return jjMoveStringLiteralDfa2_0(active0, 0x8802000L, active1, 0x40004000020400L);\n      case 109:\n         return jjMoveStringLiteralDfa2_0(active0, 0x80000000L, active1, 0L);\n      case 110:\n         return jjMoveStringLiteralDfa2_0(active0, 0x700000000L, active1, 0L);\n      case 111:\n         if ((active0 & 0x200000L) != 0L)\n         {\n            jjmatchedKind = 21;\n            jjmatchedPos = 1;\n         }\n         return jjMoveStringLiteralDfa2_0(active0, 0x10008304c0800L, active1, 0x4000000400000L);\n      case 114:\n         return jjMoveStringLiteralDfa2_0(active0, 0xc0c000001000L, active1, 0x500050000000000L);\n      case 116:\n         return jjMoveStringLiteralDfa2_0(active0, 0x80000000000L, active1, 0L);\n      case 117:\n         return jjMoveStringLiteralDfa2_0(active0, 0x12000000000L, active1, 0L);\n      case 119:\n         return jjMoveStringLiteralDfa2_0(active0, 0x100000000000L, active1, 0L);\n      case 121:\n         return jjMoveStringLiteralDfa2_0(active0, 0x4000L, active1, 0L);\n      case 124:\n         if ((active1 & 0x200000L) != 0L)\n            return jjStopAtPos(1, 85);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(0, active0, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "PARAM", "PARAM", "CALL", "CATCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [6, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [2, 54], [2, 55], [2, 56], [2, 57], [2, 58], [2, 59], [2, 60], [2, 61], [2, 62], [2, 63], [2, 64], [7, 65], [3, 66], [11, 67], [11, 68], [13, 69], [15, 70], [17, 71], [19, 72], [21, 73], [23, 74], [24, 75], [26, 76], [28, 77], [30, 78], [32, 79], [34, 80], [36, 81], [39, 82], [39, 83], [41, 84], [43, 85], [45, 86], [47, 87], [48, 88], [51, 89], [51, 90], [51, 91], [53, 92], [54, 93], [57, 94], [57, 95], [60, 96], [60, 97], [63, 98], [63, 99], [65, 100], [7, 101], [66, 102], [67, 103], [68, 104], [68, 105], [69, 106], [69, 107], [70, 108], [70, 109], [71, 110], [71, 111], [72, 112], [72, 113], [73, 114], [73, 115], [74, 116], [74, 117], [75, 118], [75, 119], [76, 120], [76, 121], [77, 122], [77, 123], [78, 124], [78, 125], [79, 126], [79, 127], [80, 128], [80, 129], [81, 130], [81, 131], [82, 132], [83, 133], [83, 134], [84, 135], [84, 136], [85, 137], [85, 138], [86, 139], [86, 140], [87, 141], [87, 142], [88, 143], [88, 144], [89, 145], [89, 146], [89, 147], [90, 148], [91, 149], [91, 150], [92, 151], [92, 152], [93, 153], [93, 154], [94, 155], [95, 156], [95, 157], [96, 158], [97, 159], [97, 160], [98, 161], [99, 162], [99, 163], [101, 164], [103, 165], [103, 166], [105, 167], [24, 168], [24, 169], [119, 170], [132, 171], [132, 172], [132, 173], [134, 174], [48, 175], [48, 176], [144, 177], [145, 178], [145, 179], [145, 180], [146, 181], [147, 182], [147, 183], [148, 184], [148, 185], [150, 186], [54, 187], [54, 188], [154, 189], [155, 190], [155, 191], [157, 192], [158, 193], [158, 194], [160, 195], [161, 196], [161, 197], [163, 198], [168, 199], [169, 200], [175, 201], [176, 202], [178, 203], [178, 204], [178, 205], [179, 206], [180, 207], [180, 208], [181, 209], [181, 210], [183, 211], [187, 212], [188, 213], [203, 214], [203, 215], [203, 216], [204, 217], [205, 218], [205, 219], [206, 220], [206, 221], [208, 222], [214, 223], [214, 224], [214, 225], [215, 226], [216, 227], [216, 228], [217, 229], [217, 230], [219, 231], [223, 232], [223, 233], [223, 234], [224, 235], [225, 236], [225, 237], [226, 238], [226, 239], [228, 240], [232, 241], [232, 242], [232, 243], [233, 244], [234, 245], [234, 246], [235, 247], [235, 248], [237, 249], [241, 250], [241, 251], [241, 252], [242, 253], [243, 254], [243, 255], [244, 256], [244, 257], [246, 258], [250, 259], [250, 260], [250, 261], [251, 262], [252, 263], [252, 264], [253, 265], [253, 266], [255, 267], [259, 268], [259, 269], [259, 270], [260, 271], [261, 272], [261, 273], [262, 274], [262, 275], [264, 276], [268, 277], [268, 278], [269, 279], [270, 280], [270, 281], [271, 282], [271, 283], [273, 284], [277, 285], [278, 286], [278, 287], [279, 288], [279, 289], [281, 290], [285, 291], [285, 292], [287, 293], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 6], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 2], [52, 2], [53, 2], [54, 2], [55, 2], [56, 2], [57, 2], [58, 2], [59, 2], [60, 2], [61, 2], [62, 2], [63, 2], [64, 2], [65, 7], [66, 3], [67, 11], [68, 11], [69, 13], [70, 15], [71, 17], [72, 19], [73, 21], [74, 23], [75, 24], [76, 26], [77, 28], [78, 30], [79, 32], [80, 34], [81, 36], [82, 39], [83, 39], [84, 41], [85, 43], [86, 45], [87, 47], [88, 48], [89, 51], [90, 51], [91, 51], [92, 53], [93, 54], [94, 57], [95, 57], [96, 60], [97, 60], [98, 63], [99, 63], [100, 65], [101, 7], [102, 66], [103, 67], [104, 68], [105, 68], [106, 69], [107, 69], [108, 70], [109, 70], [110, 71], [111, 71], [112, 72], [113, 72], [114, 73], [115, 73], [116, 74], [117, 74], [118, 75], [119, 75], [120, 76], [121, 76], [122, 77], [123, 77], [124, 78], [125, 78], [126, 79], [127, 79], [128, 80], [129, 80], [130, 81], [131, 81], [132, 82], [133, 83], [134, 83], [135, 84], [136, 84], [137, 85], [138, 85], [139, 86], [140, 86], [141, 87], [142, 87], [143, 88], [144, 88], [145, 89], [146, 89], [147, 89], [148, 90], [149, 91], [150, 91], [151, 92], [152, 92], [153, 93], [154, 93], [155, 94], [156, 95], [157, 95], [158, 96], [159, 97], [160, 97], [161, 98], [162, 99], [163, 99], [164, 101], [165, 103], [166, 103], [167, 105], [168, 24], [169, 24], [170, 119], [171, 132], [172, 132], [173, 132], [174, 134], [175, 48], [176, 48], [177, 144], [178, 145], [179, 145], [180, 145], [181, 146], [182, 147], [183, 147], [184, 148], [185, 148], [186, 150], [187, 54], [188, 54], [189, 154], [190, 155], [191, 155], [192, 157], [193, 158], [194, 158], [195, 160], [196, 161], [197, 161], [198, 163], [199, 168], [200, 169], [201, 175], [202, 176], [203, 178], [204, 178], [205, 178], [206, 179], [207, 180], [208, 180], [209, 181], [210, 181], [211, 183], [212, 187], [213, 188], [214, 203], [215, 203], [216, 203], [217, 204], [218, 205], [219, 205], [220, 206], [221, 206], [222, 208], [223, 214], [224, 214], [225, 214], [226, 215], [227, 216], [228, 216], [229, 217], [230, 217], [231, 219], [232, 223], [233, 223], [234, 223], [235, 224], [236, 225], [237, 225], [238, 226], [239, 226], [240, 228], [241, 232], [242, 232], [243, 232], [244, 233], [245, 234], [246, 234], [247, 235], [248, 235], [249, 237], [250, 241], [251, 241], [252, 241], [253, 242], [254, 243], [255, 243], [256, 244], [257, 244], [258, 246], [259, 250], [260, 250], [261, 250], [262, 251], [263, 252], [264, 252], [265, 253], [266, 253], [267, 255], [268, 259], [269, 259], [270, 259], [271, 260], [272, 261], [273, 261], [274, 262], [275, 262], [276, 264], [277, 268], [278, 268], [279, 269], [280, 270], [281, 270], [282, 271], [283, 271], [284, 273], [285, 277], [286, 278], [287, 278], [288, 279], [289, 279], [290, 281], [291, 285], [292, 285], [293, 287], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293]]}, {"function_name": "jjMoveStringLiteralDfa2_0", "code": "private final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(0, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(1, active0, active1);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 61:\n         if ((active1 & 0x20000000000000L) != 0L)\n            return jjStopAtPos(2, 117);\n         else if ((active1 & 0x80000000000000L) != 0L)\n            return jjStopAtPos(2, 119);\n         break;\n      case 62:\n         if ((active1 & 0x20000000000L) != 0L)\n         {\n            jjmatchedKind = 105;\n            jjmatchedPos = 2;\n         }\n         return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x200000000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa3_0(active0, 0x80000022000L, active1, 0L);\n      case 98:\n         return jjMoveStringLiteralDfa3_0(active0, 0x10000000000L, active1, 0L);\n      case 101:\n         return jjMoveStringLiteralDfa3_0(active0, 0x1000L, active1, 0x40004000000000L);\n      case 102:\n         return jjMoveStringLiteralDfa3_0(active0, 0x100000L, active1, 0L);\n      case 105:\n         return jjMoveStringLiteralDfa3_0(active0, 0x3104000000000L, active1, 0x500050500000000L);\n      case 108:\n         return jjMoveStringLiteralDfa3_0(active0, 0x2001000000L, active1, 0L);\n      case 110:\n         return jjMoveStringLiteralDfa3_0(active0, 0x8060c0000L, active1, 0x1000001000000L);\n      case 111:\n         return jjMoveStringLiteralDfa3_0(active0, 0x48008000800L, active1, 0L);\n      case 112:\n         return jjMoveStringLiteralDfa3_0(active0, 0x80000000L, active1, 0L);\n      case 114:\n         if ((active0 & 0x10000000L) != 0L)\n            return jjStartNfaWithStates_0(2, 28, 35);\n         else if ((active1 & 0x400000L) != 0L)\n         {\n            jjmatchedKind = 86;\n            jjmatchedPos = 2;\n         }\n         return jjMoveStringLiteralDfa3_0(active0, 0x200000000000L, active1, 0x4000000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa3_0(active0, 0x100808000L, active1, 0L);\n      case 116:\n         if ((active0 & 0x200000000L) != 0L)\n         {\n            jjmatchedKind = 33;\n            jjmatchedPos = 2;\n         }\n         else if ((active1 & 0x100L) != 0L)\n         {\n            jjmatchedKind = 72;\n            jjmatchedPos = 2;\n         }\n         else if ((active1 & 0x400L) != 0L)\n         {\n            jjmatchedKind = 74;\n            jjmatchedPos = 2;\n         }\n         return jjMoveStringLiteralDfa3_0(active0, 0x20420014000L, active1, 0xa0000L);\n      case 117:\n         return jjMoveStringLiteralDfa3_0(active0, 0x400000400000L, active1, 0L);\n      case 119:\n         if ((active0 & 0x1000000000L) != 0L)\n            return jjStartNfaWithStates_0(2, 36, 35);\n         break;\n      case 121:\n         if ((active0 & 0x800000000000L) != 0L)\n            return jjStartNfaWithStates_0(2, 47, 35);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(1, active0, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [4, 12], [9, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [2, 54], [10, 55], [3, 56], [11, 57], [12, 58], [12, 59], [16, 60], [16, 61], [19, 62], [19, 63], [21, 64], [23, 65], [24, 66], [24, 67], [26, 68], [28, 69], [29, 70], [29, 71], [29, 72], [31, 73], [33, 74], [35, 75], [37, 76], [39, 77], [41, 78], [43, 79], [45, 80], [47, 81], [49, 82], [50, 83], [53, 84], [53, 85], [53, 86], [55, 87], [10, 88], [56, 89], [57, 90], [59, 91], [59, 92], [60, 93], [61, 94], [61, 95], [62, 96], [63, 97], [63, 98], [64, 99], [64, 100], [65, 101], [65, 102], [66, 103], [66, 104], [67, 105], [67, 106], [68, 107], [68, 108], [69, 109], [69, 110], [70, 111], [71, 112], [72, 113], [72, 114], [73, 115], [73, 116], [74, 117], [74, 118], [75, 119], [75, 120], [76, 121], [76, 122], [77, 123], [77, 124], [78, 125], [78, 126], [79, 127], [79, 128], [80, 129], [80, 130], [81, 131], [81, 132], [82, 133], [82, 134], [83, 135], [83, 136], [84, 137], [84, 138], [85, 139], [86, 140], [86, 141], [88, 142], [93, 143], [93, 144], [93, 145], [95, 146], [96, 147], [96, 148], [96, 149], [98, 150], [103, 151], [104, 152], [104, 153], [24, 154], [24, 155], [106, 156], [111, 157], [111, 158], [112, 159], [112, 160], [112, 161], [114, 162], [50, 163], [50, 164], [136, 165], [137, 166], [138, 167], [138, 168], [139, 169], [139, 170], [141, 171], [151, 172], [151, 173], [66, 174], [66, 175], [153, 176], [154, 177], [155, 178], [70, 179], [70, 180], [158, 181], [163, 182], [164, 183], [166, 184], [166, 185], [168, 186], [103, 187], [103, 188], [173, 189], [174, 190], [175, 191], [179, 192], [180, 193], [187, 194], [188, 195], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 4], [13, 9], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 2], [52, 2], [53, 2], [54, 2], [55, 10], [56, 3], [57, 11], [58, 12], [59, 12], [60, 16], [61, 16], [62, 19], [63, 19], [64, 21], [65, 23], [66, 24], [67, 24], [68, 26], [69, 28], [70, 29], [71, 29], [72, 29], [73, 31], [74, 33], [75, 35], [76, 37], [77, 39], [78, 41], [79, 43], [80, 45], [81, 47], [82, 49], [83, 50], [84, 53], [85, 53], [86, 53], [87, 55], [88, 10], [89, 56], [90, 57], [91, 59], [92, 59], [93, 60], [94, 61], [95, 61], [96, 62], [97, 63], [98, 63], [99, 64], [100, 64], [101, 65], [102, 65], [103, 66], [104, 66], [105, 67], [106, 67], [107, 68], [108, 68], [109, 69], [110, 69], [111, 70], [112, 71], [113, 72], [114, 72], [115, 73], [116, 73], [117, 74], [118, 74], [119, 75], [120, 75], [121, 76], [122, 76], [123, 77], [124, 77], [125, 78], [126, 78], [127, 79], [128, 79], [129, 80], [130, 80], [131, 81], [132, 81], [133, 82], [134, 82], [135, 83], [136, 83], [137, 84], [138, 84], [139, 85], [140, 86], [141, 86], [142, 88], [143, 93], [144, 93], [145, 93], [146, 95], [147, 96], [148, 96], [149, 96], [150, 98], [151, 103], [152, 104], [153, 104], [154, 24], [155, 24], [156, 106], [157, 111], [158, 111], [159, 112], [160, 112], [161, 112], [162, 114], [163, 50], [164, 50], [165, 136], [166, 137], [167, 138], [168, 138], [169, 139], [170, 139], [171, 141], [172, 151], [173, 151], [174, 66], [175, 66], [176, 153], [177, 154], [178, 155], [179, 70], [180, 70], [181, 158], [182, 163], [183, 164], [184, 166], [185, 166], [186, 168], [187, 103], [188, 103], [189, 173], [190, 174], [191, 175], [192, 179], [193, 180], [194, 187], [195, 188], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195]]}, {"function_name": "jjMoveStringLiteralDfa3_0", "code": "private final int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(1, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(2, active0, active1);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 61:\n         if ((active1 & 0x200000000000000L) != 0L)\n            return jjStopAtPos(3, 121);\n         break;\n      case 95:\n         return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x4000000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa4_0(active0, 0xe101000L, active1, 0L);\n      case 98:\n         return jjMoveStringLiteralDfa4_0(active0, 0x400000L, active1, 0L);\n      case 99:\n         return jjMoveStringLiteralDfa4_0(active0, 0x10000L, active1, 0L);\n      case 100:\n         if ((active0 & 0x1000000000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 48, 35);\n         else if ((active1 & 0x1000000L) != 0L)\n         {\n            jjmatchedKind = 88;\n            jjmatchedPos = 3;\n         }\n         return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x1000000000000L);\n      case 101:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_0(3, 14, 35);\n         else if ((active0 & 0x8000L) != 0L)\n            return jjStartNfaWithStates_0(3, 15, 35);\n         else if ((active0 & 0x800000L) != 0L)\n            return jjStartNfaWithStates_0(3, 23, 35);\n         else if ((active0 & 0x400000000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 46, 35);\n         return jjMoveStringLiteralDfa4_0(active0, 0x400000000L, active1, 0xa0000L);\n      case 102:\n         return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x40004000000000L);\n      case 103:\n         if ((active0 & 0x800000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 35, 35);\n         return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x500050000000000L);\n      case 108:\n         if ((active0 & 0x2000000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 37, 35);\n         return jjMoveStringLiteralDfa4_0(active0, 0x2010000000800L, active1, 0L);\n      case 111:\n         if ((active0 & 0x20000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 29, 35);\n         return jjMoveStringLiteralDfa4_0(active0, 0x200080000000L, active1, 0L);\n      case 114:\n         if ((active0 & 0x20000L) != 0L)\n            return jjStartNfaWithStates_0(3, 17, 35);\n         return jjMoveStringLiteralDfa4_0(active0, 0x40000000000L, active1, 0L);\n      case 115:\n         return jjMoveStringLiteralDfa4_0(active0, 0x1042000L, active1, 0L);\n      case 116:\n         return jjMoveStringLiteralDfa4_0(active0, 0x188100080000L, active1, 0x500000000L);\n      case 117:\n         return jjMoveStringLiteralDfa4_0(active0, 0x20000000000L, active1, 0L);\n      case 118:\n         return jjMoveStringLiteralDfa4_0(active0, 0x4000000000L, active1, 0L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(2, active0, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [4, 12], [9, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [10, 54], [3, 55], [11, 56], [12, 57], [12, 58], [15, 59], [17, 60], [19, 61], [21, 62], [23, 63], [24, 64], [24, 65], [26, 66], [27, 67], [27, 68], [29, 69], [30, 70], [30, 71], [32, 72], [33, 73], [33, 74], [35, 75], [37, 76], [38, 77], [38, 78], [38, 79], [40, 80], [41, 81], [41, 82], [41, 83], [43, 84], [45, 85], [47, 86], [49, 87], [52, 88], [52, 89], [54, 90], [10, 91], [55, 92], [56, 93], [58, 94], [58, 95], [59, 96], [59, 97], [60, 98], [60, 99], [61, 100], [61, 101], [62, 102], [62, 103], [63, 104], [63, 105], [64, 106], [65, 107], [65, 108], [66, 109], [66, 110], [67, 111], [68, 112], [68, 113], [69, 114], [69, 115], [70, 116], [71, 117], [71, 118], [72, 119], [72, 120], [73, 121], [74, 122], [74, 123], [75, 124], [75, 125], [76, 126], [76, 127], [77, 128], [77, 129], [77, 130], [78, 131], [79, 132], [79, 133], [80, 134], [80, 135], [81, 136], [82, 137], [83, 138], [83, 139], [84, 140], [84, 141], [85, 142], [85, 143], [86, 144], [86, 145], [87, 146], [87, 147], [88, 148], [89, 149], [89, 150], [91, 151], [106, 152], [106, 153], [106, 154], [108, 155], [111, 156], [111, 157], [111, 158], [113, 159], [116, 160], [116, 161], [116, 162], [118, 163], [121, 164], [121, 165], [121, 166], [123, 167], [128, 168], [128, 169], [128, 170], [129, 171], [130, 172], [130, 173], [131, 174], [131, 175], [131, 176], [133, 177], [136, 178], [136, 179], [137, 180], [137, 181], [137, 182], [139, 183], [148, 184], [148, 185], [150, 186], [168, 187], [168, 188], [169, 189], [170, 190], [170, 191], [171, 192], [171, 193], [171, 194], [173, 195], [81, 196], [81, 197], [179, 198], [187, 199], [188, 200], [188, 201], [189, 202], [189, 203], [189, 204], [191, 205], [196, 206], [197, 207], [199, 208], [199, 209], [199, 210], [201, 211], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 4], [13, 9], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 2], [52, 2], [53, 2], [54, 10], [55, 3], [56, 11], [57, 12], [58, 12], [59, 15], [60, 17], [61, 19], [62, 21], [63, 23], [64, 24], [65, 24], [66, 26], [67, 27], [68, 27], [69, 29], [70, 30], [71, 30], [72, 32], [73, 33], [74, 33], [75, 35], [76, 37], [77, 38], [78, 38], [79, 38], [80, 40], [81, 41], [82, 41], [83, 41], [84, 43], [85, 45], [86, 47], [87, 49], [88, 52], [89, 52], [90, 54], [91, 10], [92, 55], [93, 56], [94, 58], [95, 58], [96, 59], [97, 59], [98, 60], [99, 60], [100, 61], [101, 61], [102, 62], [103, 62], [104, 63], [105, 63], [106, 64], [107, 65], [108, 65], [109, 66], [110, 66], [111, 67], [112, 68], [113, 68], [114, 69], [115, 69], [116, 70], [117, 71], [118, 71], [119, 72], [120, 72], [121, 73], [122, 74], [123, 74], [124, 75], [125, 75], [126, 76], [127, 76], [128, 77], [129, 77], [130, 77], [131, 78], [132, 79], [133, 79], [134, 80], [135, 80], [136, 81], [137, 82], [138, 83], [139, 83], [140, 84], [141, 84], [142, 85], [143, 85], [144, 86], [145, 86], [146, 87], [147, 87], [148, 88], [149, 89], [150, 89], [151, 91], [152, 106], [153, 106], [154, 106], [155, 108], [156, 111], [157, 111], [158, 111], [159, 113], [160, 116], [161, 116], [162, 116], [163, 118], [164, 121], [165, 121], [166, 121], [167, 123], [168, 128], [169, 128], [170, 128], [171, 129], [172, 130], [173, 130], [174, 131], [175, 131], [176, 131], [177, 133], [178, 136], [179, 136], [180, 137], [181, 137], [182, 137], [183, 139], [184, 148], [185, 148], [186, 150], [187, 168], [188, 168], [189, 169], [190, 170], [191, 170], [192, 171], [193, 171], [194, 171], [195, 173], [196, 81], [197, 81], [198, 179], [199, 187], [200, 188], [201, 188], [202, 189], [203, 189], [204, 189], [205, 191], [206, 196], [207, 197], [208, 199], [209, 199], [210, 199], [211, 201], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211]]}, {"function_name": "jjMoveStringLiteralDfa4_0", "code": "private final int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(2, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(3, active0, active1);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x1000000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa5_0(active0, 0x4100000000L, active1, 0x4000000000000L);\n      case 99:\n         return jjMoveStringLiteralDfa5_0(active0, 0x100000000000L, active1, 0L);\n      case 101:\n         if ((active0 & 0x1000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 24, 35);\n         else if ((active0 & 0x2000000000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 49, 35);\n         return jjMoveStringLiteralDfa5_0(active0, 0x8000000800L, active1, 0L);\n      case 104:\n         if ((active0 & 0x10000L) != 0L)\n            return jjStartNfaWithStates_0(4, 16, 35);\n         return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x500050000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa5_0(active0, 0x90000080000L, active1, 0L);\n      case 107:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStartNfaWithStates_0(4, 12, 35);\n         break;\n      case 108:\n         if ((active0 & 0x2000000L) != 0L)\n         {\n            jjmatchedKind = 25;\n            jjmatchedPos = 4;\n         }\n         return jjMoveStringLiteralDfa5_0(active0, 0x4400000L, active1, 0L);\n      case 113:\n         if ((active1 & 0x20000L) != 0L)\n            return jjStopAtPos(4, 81);\n         else if ((active1 & 0x80000L) != 0L)\n            return jjStopAtPos(4, 83);\n         break;\n      case 114:\n         return jjMoveStringLiteralDfa5_0(active0, 0x20480000000L, active1, 0L);\n      case 115:\n         if ((active0 & 0x2000L) != 0L)\n            return jjStartNfaWithStates_0(4, 13, 35);\n         break;\n      case 116:\n         if ((active0 & 0x40000L) != 0L)\n            return jjStartNfaWithStates_0(4, 18, 35);\n         else if ((active0 & 0x8000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 27, 35);\n         else if ((active0 & 0x40000000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 42, 35);\n         return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x40004000000000L);\n      case 117:\n         return jjMoveStringLiteralDfa5_0(active0, 0x100000L, active1, 0L);\n      case 119:\n         if ((active0 & 0x200000000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 45, 35);\n         return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x500000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(3, active0, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [4, 12], [9, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [10, 51], [3, 52], [11, 53], [12, 54], [12, 55], [15, 56], [16, 57], [16, 58], [18, 59], [20, 60], [21, 61], [21, 62], [21, 63], [24, 64], [24, 65], [26, 66], [29, 67], [29, 68], [29, 69], [31, 70], [32, 71], [35, 72], [35, 73], [37, 74], [39, 75], [40, 76], [40, 77], [42, 78], [43, 79], [43, 80], [43, 81], [45, 82], [47, 83], [49, 84], [51, 85], [10, 86], [52, 87], [53, 88], [55, 89], [55, 90], [56, 91], [56, 92], [57, 93], [58, 94], [58, 95], [59, 96], [59, 97], [60, 98], [60, 99], [61, 100], [61, 101], [61, 102], [62, 103], [63, 104], [63, 105], [64, 106], [65, 107], [65, 108], [66, 109], [66, 110], [67, 111], [67, 112], [68, 113], [69, 114], [69, 115], [70, 116], [70, 117], [71, 118], [71, 119], [72, 120], [73, 121], [73, 122], [74, 123], [74, 124], [75, 125], [75, 126], [76, 127], [77, 128], [77, 129], [78, 130], [78, 131], [79, 132], [79, 133], [80, 134], [81, 135], [81, 136], [82, 137], [82, 138], [83, 139], [83, 140], [84, 141], [84, 142], [86, 143], [93, 144], [93, 145], [93, 146], [95, 147], [100, 148], [100, 149], [101, 150], [102, 151], [102, 152], [103, 153], [103, 154], [103, 155], [105, 156], [106, 157], [106, 158], [106, 159], [108, 160], [111, 161], [112, 162], [112, 163], [113, 164], [113, 165], [115, 166], [32, 167], [32, 168], [119, 169], [120, 170], [120, 171], [120, 172], [122, 173], [127, 174], [127, 175], [127, 176], [129, 177], [132, 178], [133, 179], [133, 180], [134, 181], [134, 182], [134, 183], [136, 184], [148, 185], [149, 186], [149, 187], [150, 188], [150, 189], [150, 190], [152, 191], [161, 192], [161, 193], [163, 194], [167, 195], [168, 196], [178, 197], [178, 198], [178, 199], [180, 200], [185, 201], [185, 202], [185, 203], [187, 204], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 4], [13, 9], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 10], [52, 3], [53, 11], [54, 12], [55, 12], [56, 15], [57, 16], [58, 16], [59, 18], [60, 20], [61, 21], [62, 21], [63, 21], [64, 24], [65, 24], [66, 26], [67, 29], [68, 29], [69, 29], [70, 31], [71, 32], [72, 35], [73, 35], [74, 37], [75, 39], [76, 40], [77, 40], [78, 42], [79, 43], [80, 43], [81, 43], [82, 45], [83, 47], [84, 49], [85, 51], [86, 10], [87, 52], [88, 53], [89, 55], [90, 55], [91, 56], [92, 56], [93, 57], [94, 58], [95, 58], [96, 59], [97, 59], [98, 60], [99, 60], [100, 61], [101, 61], [102, 61], [103, 62], [104, 63], [105, 63], [106, 64], [107, 65], [108, 65], [109, 66], [110, 66], [111, 67], [112, 67], [113, 68], [114, 69], [115, 69], [116, 70], [117, 70], [118, 71], [119, 71], [120, 72], [121, 73], [122, 73], [123, 74], [124, 74], [125, 75], [126, 75], [127, 76], [128, 77], [129, 77], [130, 78], [131, 78], [132, 79], [133, 79], [134, 80], [135, 81], [136, 81], [137, 82], [138, 82], [139, 83], [140, 83], [141, 84], [142, 84], [143, 86], [144, 93], [145, 93], [146, 93], [147, 95], [148, 100], [149, 100], [150, 101], [151, 102], [152, 102], [153, 103], [154, 103], [155, 103], [156, 105], [157, 106], [158, 106], [159, 106], [160, 108], [161, 111], [162, 112], [163, 112], [164, 113], [165, 113], [166, 115], [167, 32], [168, 32], [169, 119], [170, 120], [171, 120], [172, 120], [173, 122], [174, 127], [175, 127], [176, 127], [177, 129], [178, 132], [179, 133], [180, 133], [181, 134], [182, 134], [183, 134], [184, 136], [185, 148], [186, 149], [187, 149], [188, 150], [189, 150], [190, 150], [191, 152], [192, 161], [193, 161], [194, 163], [195, 167], [196, 168], [197, 178], [198, 178], [199, 178], [200, 180], [201, 185], [202, 185], [203, 185], [204, 187], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204]]}, {"function_name": "jjMoveStringLiteralDfa5_0", "code": "private final int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(3, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(4, active0, active1);\n      return 5;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x40004000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa6_0(active0, 0x800L, active1, 0x1000000000000L);\n      case 99:\n         if ((active0 & 0x10000000000L) != 0L)\n            return jjStartNfaWithStates_0(5, 40, 35);\n         else if ((active0 & 0x80000000000L) != 0L)\n            return jjStartNfaWithStates_0(5, 43, 35);\n         return jjMoveStringLiteralDfa6_0(active0, 0x8000000000L, active1, 0L);\n      case 101:\n         if ((active0 & 0x400000L) != 0L)\n            return jjStartNfaWithStates_0(5, 22, 35);\n         break;\n      case 102:\n         return jjMoveStringLiteralDfa6_0(active0, 0x400000000L, active1, 0L);\n      case 104:\n         if ((active0 & 0x100000000000L) != 0L)\n            return jjStartNfaWithStates_0(5, 44, 35);\n         break;\n      case 105:\n         return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x500000000L);\n      case 108:\n         return jjMoveStringLiteralDfa6_0(active0, 0x4100000L, active1, 0L);\n      case 110:\n         if ((active0 & 0x20000000000L) != 0L)\n            return jjStartNfaWithStates_0(5, 41, 35);\n         return jjMoveStringLiteralDfa6_0(active0, 0x100080000L, active1, 0L);\n      case 115:\n         return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x4000000000000L);\n      case 116:\n         if ((active0 & 0x80000000L) != 0L)\n            return jjStartNfaWithStates_0(5, 31, 35);\n         return jjMoveStringLiteralDfa6_0(active0, 0x4000000000L, active1, 0x500050000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(4, active0, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [4, 12], [9, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [10, 42], [3, 43], [11, 44], [12, 45], [12, 46], [15, 47], [16, 48], [16, 49], [18, 50], [20, 51], [21, 52], [21, 53], [23, 54], [25, 55], [28, 56], [28, 57], [30, 58], [33, 59], [33, 60], [35, 61], [36, 62], [36, 63], [36, 64], [38, 65], [40, 66], [42, 67], [10, 68], [43, 69], [44, 70], [46, 71], [46, 72], [47, 73], [47, 74], [48, 75], [49, 76], [49, 77], [50, 78], [50, 79], [51, 80], [51, 81], [52, 82], [53, 83], [53, 84], [54, 85], [54, 86], [55, 87], [55, 88], [56, 89], [57, 90], [57, 91], [58, 92], [58, 93], [59, 94], [60, 95], [60, 96], [61, 97], [61, 98], [62, 99], [62, 100], [63, 101], [64, 102], [64, 103], [65, 104], [65, 105], [66, 106], [66, 107], [68, 108], [75, 109], [75, 110], [75, 111], [77, 112], [82, 113], [82, 114], [82, 115], [84, 116], [89, 117], [89, 118], [89, 119], [91, 120], [94, 121], [94, 122], [94, 123], [96, 124], [99, 125], [100, 126], [100, 127], [101, 128], [101, 129], [101, 130], [103, 131], [125, 132], [125, 133], [125, 134], [127, 135], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 4], [13, 9], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 10], [43, 3], [44, 11], [45, 12], [46, 12], [47, 15], [48, 16], [49, 16], [50, 18], [51, 20], [52, 21], [53, 21], [54, 23], [55, 25], [56, 28], [57, 28], [58, 30], [59, 33], [60, 33], [61, 35], [62, 36], [63, 36], [64, 36], [65, 38], [66, 40], [67, 42], [68, 10], [69, 43], [70, 44], [71, 46], [72, 46], [73, 47], [74, 47], [75, 48], [76, 49], [77, 49], [78, 50], [79, 50], [80, 51], [81, 51], [82, 52], [83, 53], [84, 53], [85, 54], [86, 54], [87, 55], [88, 55], [89, 56], [90, 57], [91, 57], [92, 58], [93, 58], [94, 59], [95, 60], [96, 60], [97, 61], [98, 61], [99, 62], [100, 62], [101, 63], [102, 64], [103, 64], [104, 65], [105, 65], [106, 66], [107, 66], [108, 68], [109, 75], [110, 75], [111, 75], [112, 77], [113, 82], [114, 82], [115, 82], [116, 84], [117, 89], [118, 89], [119, 89], [120, 91], [121, 94], [122, 94], [123, 94], [124, 96], [125, 99], [126, 100], [127, 100], [128, 101], [129, 101], [130, 101], [131, 103], [132, 125], [133, 125], [134, 125], [135, 127], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135]]}, {"function_name": "jjMoveStringLiteralDfa6_0", "code": "private final int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(4, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(5, active0, active1);\n      return 6;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x500050000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa7_0(active0, 0x400000000L, active1, 0L);\n      case 99:\n         return jjMoveStringLiteralDfa7_0(active0, 0x100000000L, active1, 0L);\n      case 101:\n         if ((active0 & 0x4000000000L) != 0L)\n            return jjStartNfaWithStates_0(6, 38, 35);\n         break;\n      case 110:\n         if ((active0 & 0x800L) != 0L)\n            return jjStartNfaWithStates_0(6, 11, 35);\n         break;\n      case 115:\n         return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x45004500000000L);\n      case 116:\n         if ((active0 & 0x100000L) != 0L)\n            return jjStartNfaWithStates_0(6, 20, 35);\n         return jjMoveStringLiteralDfa7_0(active0, 0x8000000000L, active1, 0L);\n      case 117:\n         return jjMoveStringLiteralDfa7_0(active0, 0x80000L, active1, 0L);\n      case 121:\n         if ((active0 & 0x4000000L) != 0L)\n            return jjStartNfaWithStates_0(6, 26, 35);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(5, active0, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [4, 12], [9, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [10, 37], [3, 38], [11, 39], [12, 40], [12, 41], [16, 42], [16, 43], [18, 44], [20, 45], [21, 46], [21, 47], [23, 48], [26, 49], [26, 50], [29, 51], [29, 52], [31, 53], [33, 54], [35, 55], [37, 56], [10, 57], [38, 58], [39, 59], [41, 60], [41, 61], [42, 62], [43, 63], [43, 64], [44, 65], [44, 66], [45, 67], [45, 68], [46, 69], [47, 70], [47, 71], [48, 72], [48, 73], [49, 74], [50, 75], [50, 76], [51, 77], [52, 78], [52, 79], [53, 80], [53, 81], [54, 82], [54, 83], [55, 84], [55, 85], [57, 86], [62, 87], [62, 88], [62, 89], [64, 90], [69, 91], [69, 92], [69, 93], [71, 94], [74, 95], [74, 96], [74, 97], [76, 98], [77, 99], [77, 100], [77, 101], [79, 102], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 4], [13, 9], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 10], [38, 3], [39, 11], [40, 12], [41, 12], [42, 16], [43, 16], [44, 18], [45, 20], [46, 21], [47, 21], [48, 23], [49, 26], [50, 26], [51, 29], [52, 29], [53, 31], [54, 33], [55, 35], [56, 37], [57, 10], [58, 38], [59, 39], [60, 41], [61, 41], [62, 42], [63, 43], [64, 43], [65, 44], [66, 44], [67, 45], [68, 45], [69, 46], [70, 47], [71, 47], [72, 48], [73, 48], [74, 49], [75, 50], [76, 50], [77, 51], [78, 52], [79, 52], [80, 53], [81, 53], [82, 54], [83, 54], [84, 55], [85, 55], [86, 57], [87, 62], [88, 62], [89, 62], [90, 64], [91, 69], [92, 69], [93, 69], [94, 71], [95, 74], [96, 74], [97, 74], [98, 76], [99, 77], [100, 77], [101, 77], [102, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102]]}, {"function_name": "jjMoveStringLiteralDfa7_0", "code": "private final int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(5, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(6, active0, active1);\n      return 7;\n   }\n   switch(curChar)\n   {\n      case 99:\n         return jjMoveStringLiteralDfa8_0(active0, 0x400000000L, active1, 0L);\n      case 101:\n         if ((active0 & 0x80000L) != 0L)\n            return jjStartNfaWithStates_0(7, 19, 35);\n         return jjMoveStringLiteralDfa8_0(active0, 0x8100000000L, active1, 0x500000000L);\n      case 104:\n         return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x40004000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x4000000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x101010000000000L);\n      case 117:\n         return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x400040000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(6, active0, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [4, 12], [9, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [10, 28], [3, 29], [11, 30], [12, 31], [12, 32], [15, 33], [17, 34], [19, 35], [21, 36], [23, 37], [24, 38], [24, 39], [26, 40], [28, 41], [10, 42], [29, 43], [30, 44], [32, 45], [32, 46], [33, 47], [33, 48], [34, 49], [34, 50], [35, 51], [35, 52], [36, 53], [36, 54], [37, 55], [37, 56], [38, 57], [39, 58], [39, 59], [40, 60], [40, 61], [42, 62], [57, 63], [57, 64], [57, 65], [59, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 4], [13, 9], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 10], [29, 3], [30, 11], [31, 12], [32, 12], [33, 15], [34, 17], [35, 19], [36, 21], [37, 23], [38, 24], [39, 24], [40, 26], [41, 28], [42, 10], [43, 29], [44, 30], [45, 32], [46, 32], [47, 33], [48, 33], [49, 34], [50, 34], [51, 35], [52, 35], [53, 36], [54, 36], [55, 37], [56, 37], [57, 38], [58, 39], [59, 39], [60, 40], [61, 40], [62, 42], [63, 57], [64, 57], [65, 57], [66, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "jjMoveStringLiteralDfa8_0", "code": "private final int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(6, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(7, active0, active1);\n      return 8;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x500000000L);\n      case 100:\n         if ((active0 & 0x8000000000L) != 0L)\n            return jjStartNfaWithStates_0(8, 39, 35);\n         break;\n      case 101:\n         if ((active0 & 0x400000000L) != 0L)\n            return jjStartNfaWithStates_0(8, 34, 35);\n         break;\n      case 103:\n         return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x4000000000000L);\n      case 104:\n         return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x100010000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x41004000000000L);\n      case 110:\n         return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x400040000000000L);\n      case 111:\n         return jjMoveStringLiteralDfa9_0(active0, 0x100000000L, active1, 0L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(7, active0, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [4, 12], [9, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [10, 33], [3, 34], [11, 35], [12, 36], [12, 37], [15, 38], [17, 39], [19, 40], [21, 41], [23, 42], [26, 43], [26, 44], [29, 45], [29, 46], [31, 47], [33, 48], [10, 49], [34, 50], [35, 51], [37, 52], [37, 53], [38, 54], [38, 55], [39, 56], [39, 57], [40, 58], [40, 59], [41, 60], [41, 61], [42, 62], [42, 63], [43, 64], [44, 65], [44, 66], [45, 67], [46, 68], [46, 69], [47, 70], [47, 71], [49, 72], [64, 73], [64, 74], [64, 75], [66, 76], [67, 77], [67, 78], [67, 79], [69, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 4], [13, 9], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 10], [34, 3], [35, 11], [36, 12], [37, 12], [38, 15], [39, 17], [40, 19], [41, 21], [42, 23], [43, 26], [44, 26], [45, 29], [46, 29], [47, 31], [48, 33], [49, 10], [50, 34], [51, 35], [52, 37], [53, 37], [54, 38], [55, 38], [56, 39], [57, 39], [58, 40], [59, 40], [60, 41], [61, 41], [62, 42], [63, 42], [64, 43], [65, 44], [66, 44], [67, 45], [68, 46], [69, 46], [70, 47], [71, 47], [72, 49], [73, 64], [74, 64], [75, 64], [76, 66], [77, 67], [78, 67], [79, 67], [80, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "jjMoveStringLiteralDfa9_0", "code": "private final int jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(7, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(8, active0, active1);\n      return 9;\n   }\n   switch(curChar)\n   {\n      case 97:\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x100000000L);\n      case 102:\n         if ((active0 & 0x100000000L) != 0L)\n            return jjStartNfaWithStates_0(9, 32, 35);\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x40004000000000L);\n      case 103:\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x1000000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x100010000000000L);\n      case 110:\n         if ((active1 & 0x4000000000000L) != 0L)\n            return jjStopAtPos(9, 114);\n         break;\n      case 111:\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x400000000L);\n      case 115:\n         return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x400040000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(8, active0, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [4, 12], [9, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [10, 31], [3, 32], [11, 33], [12, 34], [12, 35], [15, 36], [17, 37], [20, 38], [20, 39], [22, 40], [24, 41], [26, 42], [27, 43], [27, 44], [29, 45], [31, 46], [10, 47], [32, 48], [33, 49], [35, 50], [35, 51], [36, 52], [36, 53], [37, 54], [37, 55], [38, 56], [39, 57], [39, 58], [40, 59], [40, 60], [41, 61], [41, 62], [42, 63], [42, 64], [43, 65], [44, 66], [44, 67], [45, 68], [45, 69], [47, 70], [56, 71], [56, 72], [58, 73], [65, 74], [65, 75], [65, 76], [67, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 4], [13, 9], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 10], [32, 3], [33, 11], [34, 12], [35, 12], [36, 15], [37, 17], [38, 20], [39, 20], [40, 22], [41, 24], [42, 26], [43, 27], [44, 27], [45, 29], [46, 31], [47, 10], [48, 32], [49, 33], [50, 35], [51, 35], [52, 36], [53, 36], [54, 37], [55, 37], [56, 38], [57, 39], [58, 39], [59, 40], [60, 40], [61, 41], [62, 41], [63, 42], [64, 42], [65, 43], [66, 44], [67, 44], [68, 45], [69, 45], [70, 47], [71, 56], [72, 56], [73, 58], [74, 65], [75, 65], [76, 65], [77, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "jjMoveStringLiteralDfa10_0", "code": "private final int jjMoveStringLiteralDfa10_0(long old0, long active0, long old1, long active1)\n{\n   if (((active0 &= old0) | (active1 &= old1)) == 0L)\n      return jjStartNfa_0(8, old0, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(9, 0L, active1);\n      return 10;\n   }\n   switch(curChar)\n   {\n      case 102:\n         return jjMoveStringLiteralDfa11_0(active1, 0x100010000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa11_0(active1, 0x400040000000000L);\n      case 110:\n         if ((active1 & 0x1000000000000L) != 0L)\n            return jjStopAtPos(10, 112);\n         return jjMoveStringLiteralDfa11_0(active1, 0x100000000L);\n      case 114:\n         if ((active1 & 0x400000000L) != 0L)\n            return jjStopAtPos(10, 98);\n         break;\n      case 116:\n         if ((active1 & 0x4000000000L) != 0L)\n         {\n            jjmatchedKind = 102;\n            jjmatchedPos = 10;\n         }\n         return jjMoveStringLiteralDfa11_0(active1, 0x40000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(9, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [4, 12], [9, 13], [9, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [10, 29], [3, 30], [11, 31], [12, 32], [12, 33], [16, 34], [17, 35], [20, 36], [20, 37], [22, 38], [23, 39], [23, 40], [25, 41], [27, 42], [29, 43], [10, 44], [30, 45], [31, 46], [33, 47], [33, 48], [34, 49], [35, 50], [35, 51], [36, 52], [37, 53], [37, 54], [38, 55], [39, 56], [40, 57], [40, 58], [41, 59], [42, 60], [44, 61], [44, 62], [17, 63], [17, 64], [51, 65], [52, 66], [52, 67], [54, 68], [56, 69], [56, 70], [58, 71], [63, 72], [64, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 4], [13, 9], [14, 9], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 10], [30, 3], [31, 11], [32, 12], [33, 12], [34, 16], [35, 17], [36, 20], [37, 20], [38, 22], [39, 23], [40, 23], [41, 25], [42, 27], [43, 29], [44, 10], [45, 30], [46, 31], [47, 33], [48, 33], [49, 34], [50, 35], [51, 35], [52, 36], [53, 37], [54, 37], [55, 38], [56, 39], [57, 40], [58, 40], [59, 41], [60, 42], [61, 44], [62, 44], [63, 17], [64, 17], [65, 51], [66, 52], [67, 52], [68, 54], [69, 56], [70, 56], [71, 58], [72, 63], [73, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "jjMoveStringLiteralDfa11_0", "code": "private final int jjMoveStringLiteralDfa11_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(9, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(10, 0L, active1);\n      return 11;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa12_0(active1, 0x40000000000000L);\n      case 100:\n         if ((active1 & 0x100000000L) != 0L)\n            return jjStopAtPos(11, 96);\n         break;\n      case 103:\n         return jjMoveStringLiteralDfa12_0(active1, 0x400040000000000L);\n      case 116:\n         if ((active1 & 0x10000000000L) != 0L)\n         {\n            jjmatchedKind = 104;\n            jjmatchedPos = 11;\n         }\n         return jjMoveStringLiteralDfa12_0(active1, 0x100000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(10, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [8, 24], [3, 25], [9, 26], [10, 27], [10, 28], [14, 29], [15, 30], [17, 31], [20, 32], [20, 33], [22, 34], [24, 35], [8, 36], [25, 37], [26, 38], [26, 39], [29, 40], [30, 41], [30, 42], [31, 43], [32, 44], [33, 45], [33, 46], [34, 47], [36, 48], [36, 49], [15, 50], [15, 51], [42, 52], [44, 53], [44, 54], [46, 55], [50, 56], [51, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 8], [25, 3], [26, 9], [27, 10], [28, 10], [29, 14], [30, 15], [31, 17], [32, 20], [33, 20], [34, 22], [35, 24], [36, 8], [37, 25], [38, 26], [39, 26], [40, 29], [41, 30], [42, 30], [43, 31], [44, 32], [45, 33], [46, 33], [47, 34], [48, 36], [49, 36], [50, 15], [51, 15], [52, 42], [53, 44], [54, 44], [55, 46], [56, 50], [57, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "jjMoveStringLiteralDfa12_0", "code": "private final int jjMoveStringLiteralDfa12_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(10, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(11, 0L, active1);\n      return 12;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa13_0(active1, 0x100000000000000L);\n      case 97:\n         return jjMoveStringLiteralDfa13_0(active1, 0x40000000000000L);\n      case 110:\n         return jjMoveStringLiteralDfa13_0(active1, 0x400040000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(11, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [8, 20], [3, 21], [9, 22], [10, 23], [10, 24], [14, 25], [16, 26], [18, 27], [20, 28], [8, 29], [21, 30], [22, 31], [22, 32], [25, 33], [26, 34], [27, 35], [29, 36], [29, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 8], [21, 3], [22, 9], [23, 10], [24, 10], [25, 14], [26, 16], [27, 18], [28, 20], [29, 8], [30, 21], [31, 22], [32, 22], [33, 25], [34, 26], [35, 27], [36, 29], [37, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "jjMoveStringLiteralDfa13_0", "code": "private final int jjMoveStringLiteralDfa13_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(11, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(12, 0L, active1);\n      return 13;\n   }\n   switch(curChar)\n   {\n      case 97:\n         return jjMoveStringLiteralDfa14_0(active1, 0x100000000000000L);\n      case 101:\n         return jjMoveStringLiteralDfa14_0(active1, 0x400040000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa14_0(active1, 0x40000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(12, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [8, 20], [3, 21], [9, 22], [10, 23], [10, 24], [14, 25], [16, 26], [18, 27], [20, 28], [8, 29], [21, 30], [22, 31], [22, 32], [25, 33], [26, 34], [27, 35], [29, 36], [29, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 8], [21, 3], [22, 9], [23, 10], [24, 10], [25, 14], [26, 16], [27, 18], [28, 20], [29, 8], [30, 21], [31, 22], [32, 22], [33, 25], [34, 26], [35, 27], [36, 29], [37, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "jjMoveStringLiteralDfa14_0", "code": "private final int jjMoveStringLiteralDfa14_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(12, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(13, 0L, active1);\n      return 14;\n   }\n   switch(curChar)\n   {\n      case 100:\n         return jjMoveStringLiteralDfa15_0(active1, 0x400040000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa15_0(active1, 0x140000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(13, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [8, 18], [3, 19], [9, 20], [10, 21], [10, 22], [14, 23], [16, 24], [18, 25], [8, 26], [19, 27], [20, 28], [20, 29], [23, 30], [24, 31], [26, 32], [26, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 8], [19, 3], [20, 9], [21, 10], [22, 10], [23, 14], [24, 16], [25, 18], [26, 8], [27, 19], [28, 20], [29, 20], [30, 23], [31, 24], [32, 26], [33, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "jjMoveStringLiteralDfa15_0", "code": "private final int jjMoveStringLiteralDfa15_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(13, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(14, 0L, active1);\n      return 15;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa16_0(active1, 0x400040000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa16_0(active1, 0x40000000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa16_0(active1, 0x100000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(14, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [8, 20], [3, 21], [9, 22], [10, 23], [10, 24], [14, 25], [16, 26], [18, 27], [20, 28], [8, 29], [21, 30], [22, 31], [22, 32], [25, 33], [26, 34], [27, 35], [29, 36], [29, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 8], [21, 3], [22, 9], [23, 10], [24, 10], [25, 14], [26, 16], [27, 18], [28, 20], [29, 8], [30, 21], [31, 22], [32, 22], [33, 25], [34, 26], [35, 27], [36, 29], [37, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "jjMoveStringLiteralDfa16_0", "code": "private final int jjMoveStringLiteralDfa16_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(14, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(15, 0L, active1);\n      return 16;\n   }\n   switch(curChar)\n   {\n      case 103:\n         return jjMoveStringLiteralDfa17_0(active1, 0x40000000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa17_0(active1, 0x100000000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa17_0(active1, 0x400040000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(15, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [8, 20], [3, 21], [9, 22], [10, 23], [10, 24], [14, 25], [16, 26], [18, 27], [20, 28], [8, 29], [21, 30], [22, 31], [22, 32], [25, 33], [26, 34], [27, 35], [29, 36], [29, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 8], [21, 3], [22, 9], [23, 10], [24, 10], [25, 14], [26, 16], [27, 18], [28, 20], [29, 8], [30, 21], [31, 22], [32, 22], [33, 25], [34, 26], [35, 27], [36, 29], [37, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "jjMoveStringLiteralDfa17_0", "code": "private final int jjMoveStringLiteralDfa17_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(15, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(16, 0L, active1);\n      return 17;\n   }\n   switch(curChar)\n   {\n      case 103:\n         return jjMoveStringLiteralDfa18_0(active1, 0x100000000000000L);\n      case 104:\n         return jjMoveStringLiteralDfa18_0(active1, 0x400040000000000L);\n      case 110:\n         if ((active1 & 0x40000000000000L) != 0L)\n            return jjStopAtPos(17, 118);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(16, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [8, 21], [3, 22], [9, 23], [10, 24], [10, 25], [15, 26], [15, 27], [17, 28], [19, 29], [21, 30], [8, 31], [22, 32], [23, 33], [23, 34], [26, 35], [27, 36], [27, 37], [28, 38], [29, 39], [31, 40], [31, 41], [35, 42], [35, 43], [37, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 8], [22, 3], [23, 9], [24, 10], [25, 10], [26, 15], [27, 15], [28, 17], [29, 19], [30, 21], [31, 8], [32, 22], [33, 23], [34, 23], [35, 26], [36, 27], [37, 27], [38, 28], [39, 29], [40, 31], [41, 31], [42, 35], [43, 35], [44, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "jjMoveStringLiteralDfa18_0", "code": "private final int jjMoveStringLiteralDfa18_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(16, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(17, 0L, active1);\n      return 18;\n   }\n   switch(curChar)\n   {\n      case 105:\n         return jjMoveStringLiteralDfa19_0(active1, 0x400040000000000L);\n      case 110:\n         if ((active1 & 0x100000000000000L) != 0L)\n            return jjStopAtPos(18, 120);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(17, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [8, 19], [3, 20], [9, 21], [10, 22], [10, 23], [15, 24], [15, 25], [17, 26], [19, 27], [8, 28], [20, 29], [21, 30], [21, 31], [24, 32], [25, 33], [25, 34], [26, 35], [28, 36], [28, 37], [32, 38], [32, 39], [34, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 8], [20, 3], [21, 9], [22, 10], [23, 10], [24, 15], [25, 15], [26, 17], [27, 19], [28, 8], [29, 20], [30, 21], [31, 21], [32, 24], [33, 25], [34, 25], [35, 26], [36, 28], [37, 28], [38, 32], [39, 32], [40, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "jjMoveStringLiteralDfa19_0", "code": "private final int jjMoveStringLiteralDfa19_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(17, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(18, 0L, active1);\n      return 19;\n   }\n   switch(curChar)\n   {\n      case 102:\n         return jjMoveStringLiteralDfa20_0(active1, 0x400040000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(18, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [16, 22], [8, 23], [17, 24], [18, 25], [18, 26], [21, 27], [23, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 16], [23, 8], [24, 17], [25, 18], [26, 18], [27, 21], [28, 23], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "jjMoveStringLiteralDfa20_0", "code": "private final int jjMoveStringLiteralDfa20_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(18, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(19, 0L, active1);\n      return 20;\n   }\n   switch(curChar)\n   {\n      case 116:\n         if ((active1 & 0x40000000000L) != 0L)\n         {\n            jjmatchedKind = 106;\n            jjmatchedPos = 20;\n         }\n         return jjMoveStringLiteralDfa21_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(19, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [8, 17], [3, 18], [9, 19], [10, 20], [10, 21], [14, 22], [15, 23], [17, 24], [8, 25], [18, 26], [19, 27], [19, 28], [22, 29], [23, 30], [23, 31], [25, 32], [25, 33], [15, 34], [15, 35], [31, 36], [34, 37], [35, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 8], [18, 3], [19, 9], [20, 10], [21, 10], [22, 14], [23, 15], [24, 17], [25, 8], [26, 18], [27, 19], [28, 19], [29, 22], [30, 23], [31, 23], [32, 25], [33, 25], [34, 15], [35, 15], [36, 31], [37, 34], [38, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "jjMoveStringLiteralDfa21_0", "code": "private final int jjMoveStringLiteralDfa21_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(19, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(20, 0L, active1);\n      return 21;\n   }\n   switch(curChar)\n   {\n      case 95:\n         return jjMoveStringLiteralDfa22_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(20, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [16, 22], [8, 23], [17, 24], [18, 25], [18, 26], [21, 27], [23, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 16], [23, 8], [24, 17], [25, 18], [26, 18], [27, 21], [28, 23], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "jjMoveStringLiteralDfa22_0", "code": "private final int jjMoveStringLiteralDfa22_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(20, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(21, 0L, active1);\n      return 22;\n   }\n   switch(curChar)\n   {\n      case 97:\n         return jjMoveStringLiteralDfa23_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(21, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [16, 22], [8, 23], [17, 24], [18, 25], [18, 26], [21, 27], [23, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 16], [23, 8], [24, 17], [25, 18], [26, 18], [27, 21], [28, 23], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "jjMoveStringLiteralDfa23_0", "code": "private final int jjMoveStringLiteralDfa23_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(21, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(22, 0L, active1);\n      return 23;\n   }\n   switch(curChar)\n   {\n      case 115:\n         return jjMoveStringLiteralDfa24_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(22, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [16, 22], [8, 23], [17, 24], [18, 25], [18, 26], [21, 27], [23, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 16], [23, 8], [24, 17], [25, 18], [26, 18], [27, 21], [28, 23], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "jjMoveStringLiteralDfa24_0", "code": "private final int jjMoveStringLiteralDfa24_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(22, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(23, 0L, active1);\n      return 24;\n   }\n   switch(curChar)\n   {\n      case 115:\n         return jjMoveStringLiteralDfa25_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(23, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [16, 22], [8, 23], [17, 24], [18, 25], [18, 26], [21, 27], [23, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 16], [23, 8], [24, 17], [25, 18], [26, 18], [27, 21], [28, 23], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "jjMoveStringLiteralDfa25_0", "code": "private final int jjMoveStringLiteralDfa25_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(23, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(24, 0L, active1);\n      return 25;\n   }\n   switch(curChar)\n   {\n      case 105:\n         return jjMoveStringLiteralDfa26_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(24, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [16, 22], [8, 23], [17, 24], [18, 25], [18, 26], [21, 27], [23, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 16], [23, 8], [24, 17], [25, 18], [26, 18], [27, 21], [28, 23], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "jjMoveStringLiteralDfa26_0", "code": "private final int jjMoveStringLiteralDfa26_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(24, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(25, 0L, active1);\n      return 26;\n   }\n   switch(curChar)\n   {\n      case 103:\n         return jjMoveStringLiteralDfa27_0(active1, 0x400000000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(25, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [16, 22], [8, 23], [17, 24], [18, 25], [18, 26], [21, 27], [23, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 16], [23, 8], [24, 17], [25, 18], [26, 18], [27, 21], [28, 23], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "jjMoveStringLiteralDfa27_0", "code": "private final int jjMoveStringLiteralDfa27_0(long old1, long active1)\n{\n   if (((active1 &= old1)) == 0L)\n      return jjStartNfa_0(25, 0L, old1); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(26, 0L, active1);\n      return 27;\n   }\n   switch(curChar)\n   {\n      case 110:\n         if ((active1 & 0x400000000000000L) != 0L)\n            return jjStopAtPos(27, 122);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(26, 0L, active1);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [8, 17], [3, 18], [9, 19], [10, 20], [10, 21], [15, 22], [15, 23], [17, 24], [8, 25], [18, 26], [19, 27], [19, 28], [22, 29], [23, 30], [23, 31], [25, 32], [25, 33], [29, 34], [29, 35], [31, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 8], [18, 3], [19, 9], [20, 10], [21, 10], [22, 15], [23, 15], [24, 17], [25, 8], [26, 18], [27, 19], [28, 19], [29, 22], [30, 23], [31, 23], [32, 25], [33, 25], [34, 29], [35, 29], [36, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jjCheckNAdd", "code": "private final void jjCheckNAdd(int state)\n{\n   if (jjrounds[state] != jjround)\n   {\n      jjstateSet[jjnewStateCnt++] = state;\n      jjrounds[state] = jjround;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "jjAddStates", "code": "private final void jjAddStates(int start, int end)\n{\n   do {\n      jjstateSet[jjnewStateCnt++] = jjnextStates[start];\n   } while (start++ != end);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "jjCheckNAddTwoStates", "code": "private final void jjCheckNAddTwoStates(int state1, int state2)\n{\n   jjCheckNAdd(state1);\n   jjCheckNAdd(state2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "jjCheckNAddStates", "code": "private final void jjCheckNAddStates(int start, int end)\n{\n   do {\n      jjCheckNAdd(jjnextStates[start]);\n   } while (start++ != end);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "jjCheckNAddStates", "code": "private final void jjCheckNAddStates(int start)\n{\n   jjCheckNAdd(jjnextStates[start]);\n   jjCheckNAdd(jjnextStates[start + 1]);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "jjMoveNfa_0", "code": "private final int jjMoveNfa_0(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 74;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 6:\n                  if ((0x1ffffffffL & l) != 0L)\n                  {\n                     if (kind > 6)\n                        kind = 6;\n                     jjCheckNAdd(0);\n                  }\n                  else if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddStates(0, 6);\n                  else if (curChar == 47)\n                     jjAddStates(7, 9);\n                  else if (curChar == 36)\n                  {\n                     if (kind > 58)\n                        kind = 58;\n                     jjCheckNAdd(35);\n                  }\n                  else if (curChar == 34)\n                     jjCheckNAddStates(10, 12);\n                  else if (curChar == 39)\n                     jjAddStates(13, 14);\n                  else if (curChar == 46)\n                     jjCheckNAdd(11);\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  if ((0x3fe000000000000L & l) != 0L)\n                  {\n                     if (kind > 50)\n                        kind = 50;\n                     jjCheckNAddTwoStates(8, 9);\n                  }\n                  else if (curChar == 48)\n                  {\n                     if (kind > 50)\n                        kind = 50;\n                     jjCheckNAddStates(15, 17);\n                  }\n                  break;\n               case 56:\n                  if (curChar == 42)\n                     jjCheckNAddTwoStates(69, 70);\n                  else if (curChar == 47)\n                  {\n                     if (kind > 7)\n                        kind = 7;\n                     jjCheckNAddStates(18, 20);\n                  }\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 61;\n                  break;\n               case 0:\n                  if ((0x1ffffffffL & l) == 0L)\n                     break;\n                  if (kind > 6)\n                     kind = 6;\n                  jjCheckNAdd(0);\n                  break;\n               case 1:\n                  if (curChar == 33)\n                     jjCheckNAddStates(21, 23);\n                  break;\n               case 2:\n                  if ((0xffffffffffffdbffL & l) != 0L)\n                     jjCheckNAddStates(21, 23);\n                  break;\n               case 3:\n                  if ((0x2400L & l) != 0L && kind > 8)\n                     kind = 8;\n                  break;\n               case 4:\n                  if (curChar == 10 && kind > 8)\n                     kind = 8;\n                  break;\n               case 5:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 4;\n                  break;\n               case 7:\n                  if ((0x3fe000000000000L & l) == 0L)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddTwoStates(8, 9);\n                  break;\n               case 8:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddTwoStates(8, 9);\n                  break;\n               case 10:\n                  if (curChar == 46)\n                     jjCheckNAdd(11);\n                  break;\n               case 11:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddStates(24, 26);\n                  break;\n               case 13:\n                  if ((0x280000000000L & l) != 0L)\n                     jjCheckNAdd(14);\n                  break;\n               case 14:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddTwoStates(14, 15);\n                  break;\n               case 16:\n                  if (curChar == 39)\n                     jjAddStates(13, 14);\n                  break;\n               case 17:\n                  if ((0xffffff7fffffdbffL & l) != 0L)\n                     jjCheckNAdd(18);\n                  break;\n               case 18:\n                  if (curChar == 39 && kind > 56)\n                     kind = 56;\n                  break;\n               case 20:\n                  if ((0x8400000000L & l) != 0L)\n                     jjCheckNAdd(18);\n                  break;\n               case 21:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddTwoStates(22, 18);\n                  break;\n               case 22:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAdd(18);\n                  break;\n               case 23:\n                  if ((0xf000000000000L & l) != 0L)\n                     jjstateSet[jjnewStateCnt++] = 24;\n                  break;\n               case 24:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAdd(22);\n                  break;\n               case 25:\n                  if (curChar == 34)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 26:\n                  if ((0xfffffffbffffdbffL & l) != 0L)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 28:\n                  if ((0x8400000000L & l) != 0L)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 29:\n                  if (curChar == 34 && kind > 57)\n                     kind = 57;\n                  break;\n               case 30:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(27, 30);\n                  break;\n               case 31:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 32:\n                  if ((0xf000000000000L & l) != 0L)\n                     jjstateSet[jjnewStateCnt++] = 33;\n                  break;\n               case 33:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAdd(31);\n                  break;\n               case 34:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 58)\n                     kind = 58;\n                  jjCheckNAdd(35);\n                  break;\n               case 35:\n                  if ((0x3ff001000000000L & l) == 0L)\n                     break;\n                  if (kind > 58)\n                     kind = 58;\n                  jjCheckNAdd(35);\n                  break;\n               case 36:\n                  if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddStates(0, 6);\n                  break;\n               case 37:\n                  if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddTwoStates(37, 38);\n                  break;\n               case 38:\n                  if (curChar != 46)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddStates(31, 33);\n                  break;\n               case 39:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddStates(31, 33);\n                  break;\n               case 41:\n                  if ((0x280000000000L & l) != 0L)\n                     jjCheckNAdd(42);\n                  break;\n               case 42:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddTwoStates(42, 15);\n                  break;\n               case 43:\n                  if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddTwoStates(43, 44);\n                  break;\n               case 45:\n                  if ((0x280000000000L & l) != 0L)\n                     jjCheckNAdd(46);\n                  break;\n               case 46:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 54)\n                     kind = 54;\n                  jjCheckNAddTwoStates(46, 15);\n                  break;\n               case 47:\n                  if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddStates(34, 36);\n                  break;\n               case 49:\n                  if ((0x280000000000L & l) != 0L)\n                     jjCheckNAdd(50);\n                  break;\n               case 50:\n                  if ((0x3ff000000000000L & l) != 0L)\n                     jjCheckNAddTwoStates(50, 15);\n                  break;\n               case 51:\n                  if (curChar != 48)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddStates(15, 17);\n                  break;\n               case 53:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddTwoStates(53, 9);\n                  break;\n               case 54:\n                  if ((0xff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddTwoStates(54, 9);\n                  break;\n               case 55:\n                  if (curChar == 47)\n                     jjAddStates(7, 9);\n                  break;\n               case 57:\n                  if ((0xffffffffffffdbffL & l) == 0L)\n                     break;\n                  if (kind > 7)\n                     kind = 7;\n                  jjCheckNAddStates(18, 20);\n                  break;\n               case 58:\n                  if ((0x2400L & l) != 0L && kind > 7)\n                     kind = 7;\n                  break;\n               case 59:\n                  if (curChar == 10 && kind > 7)\n                     kind = 7;\n                  break;\n               case 60:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 59;\n                  break;\n               case 61:\n                  if (curChar == 42)\n                     jjCheckNAddTwoStates(62, 63);\n                  break;\n               case 62:\n                  if ((0xfffffbffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(62, 63);\n                  break;\n               case 63:\n                  if (curChar == 42)\n                     jjCheckNAddStates(37, 39);\n                  break;\n               case 64:\n                  if ((0xffff7bffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(65, 63);\n                  break;\n               case 65:\n                  if ((0xfffffbffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(65, 63);\n                  break;\n               case 66:\n                  if (curChar == 47 && kind > 9)\n                     kind = 9;\n                  break;\n               case 67:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 61;\n                  break;\n               case 68:\n                  if (curChar == 42)\n                     jjCheckNAddTwoStates(69, 70);\n                  break;\n               case 69:\n                  if ((0xfffffbffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(69, 70);\n                  break;\n               case 70:\n                  if (curChar == 42)\n                     jjCheckNAddStates(40, 42);\n                  break;\n               case 71:\n                  if ((0xffff7bffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(72, 70);\n                  break;\n               case 72:\n                  if ((0xfffffbffffffffffL & l) != 0L)\n                     jjCheckNAddTwoStates(72, 70);\n                  break;\n               case 73:\n                  if (curChar == 47 && kind > 10)\n                     kind = 10;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 6:\n               case 35:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 58)\n                     kind = 58;\n                  jjCheckNAdd(35);\n                  break;\n               case 2:\n                  jjAddStates(21, 23);\n                  break;\n               case 9:\n                  if ((0x100000001000L & l) != 0L && kind > 50)\n                     kind = 50;\n                  break;\n               case 12:\n                  if ((0x2000000020L & l) != 0L)\n                     jjAddStates(43, 44);\n                  break;\n               case 15:\n                  if ((0x5000000050L & l) != 0L && kind > 54)\n                     kind = 54;\n                  break;\n               case 17:\n                  if ((0xffffffffefffffffL & l) != 0L)\n                     jjCheckNAdd(18);\n                  break;\n               case 19:\n                  if (curChar == 92)\n                     jjAddStates(45, 47);\n                  break;\n               case 20:\n                  if ((0x14404410000000L & l) != 0L)\n                     jjCheckNAdd(18);\n                  break;\n               case 26:\n                  if ((0xffffffffefffffffL & l) != 0L)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 27:\n                  if (curChar == 92)\n                     jjAddStates(48, 50);\n                  break;\n               case 28:\n                  if ((0x14404410000000L & l) != 0L)\n                     jjCheckNAddStates(10, 12);\n                  break;\n               case 40:\n                  if ((0x2000000020L & l) != 0L)\n                     jjAddStates(51, 52);\n                  break;\n               case 44:\n                  if ((0x2000000020L & l) != 0L)\n                     jjAddStates(53, 54);\n                  break;\n               case 48:\n                  if ((0x2000000020L & l) != 0L)\n                     jjAddStates(55, 56);\n                  break;\n               case 52:\n                  if ((0x100000001000000L & l) != 0L)\n                     jjCheckNAdd(53);\n                  break;\n               case 53:\n                  if ((0x7e0000007eL & l) == 0L)\n                     break;\n                  if (kind > 50)\n                     kind = 50;\n                  jjCheckNAddTwoStates(53, 9);\n                  break;\n               case 57:\n                  if (kind > 7)\n                     kind = 7;\n                  jjAddStates(18, 20);\n                  break;\n               case 62:\n                  jjCheckNAddTwoStates(62, 63);\n                  break;\n               case 64:\n               case 65:\n                  jjCheckNAddTwoStates(65, 63);\n                  break;\n               case 69:\n                  jjCheckNAddTwoStates(69, 70);\n                  break;\n               case 71:\n               case 72:\n                  jjCheckNAddTwoStates(72, 70);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 6:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2))\n                  {\n                     if (kind > 6)\n                        kind = 6;\n                     jjCheckNAdd(0);\n                  }\n                  if (jjCanMove_2(hiByte, i1, i2, l1, l2))\n                  {\n                     if (kind > 58)\n                        kind = 58;\n                     jjCheckNAdd(35);\n                  }\n                  break;\n               case 0:\n                  if (!jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     break;\n                  if (kind > 6)\n                     kind = 6;\n                  jjCheckNAdd(0);\n                  break;\n               case 2:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjAddStates(21, 23);\n                  break;\n               case 17:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjstateSet[jjnewStateCnt++] = 18;\n                  break;\n               case 26:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjAddStates(10, 12);\n                  break;\n               case 34:\n               case 35:\n                  if (!jjCanMove_2(hiByte, i1, i2, l1, l2))\n                     break;\n                  if (kind > 58)\n                     kind = 58;\n                  jjCheckNAdd(35);\n                  break;\n               case 57:\n                  if (!jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     break;\n                  if (kind > 7)\n                     kind = 7;\n                  jjAddStates(18, 20);\n                  break;\n               case 62:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjCheckNAddTwoStates(62, 63);\n                  break;\n               case 64:\n               case 65:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjCheckNAddTwoStates(65, 63);\n                  break;\n               case 69:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjCheckNAddTwoStates(69, 70);\n                  break;\n               case 71:\n               case 72:\n                  if (jjCanMove_1(hiByte, i1, i2, l1, l2))\n                     jjCheckNAddTwoStates(72, 70);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 74 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "TRY", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [9, 17], [4, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [19, 26], [10, 27], [21, 28], [21, 29], [22, 30], [23, 31], [13, 32], [13, 33], [24, 34], [14, 35], [25, 36], [8, 37], [27, 38], [28, 39], [12, 40], [12, 41], [12, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [31, 51], [32, 52], [39, 53], [39, 54], [40, 55], [43, 56], [49, 57], [32, 58], [33, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [49, 65], [50, 66], [59, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [63, 73], [64, 74], [48, 75], [66, 76], [66, 77], [58, 78], [58, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [58, 92], [58, 93], [58, 94], [58, 95], [58, 96], [58, 97], [58, 98], [58, 99], [58, 100], [58, 101], [58, 102], [58, 103], [58, 104], [58, 105], [58, 106], [58, 107], [58, 108], [58, 109], [58, 110], [58, 111], [58, 112], [58, 113], [58, 114], [58, 115], [58, 116], [58, 117], [58, 118], [58, 119], [58, 120], [58, 121], [58, 122], [58, 123], [58, 124], [58, 125], [58, 126], [58, 127], [58, 128], [58, 129], [58, 130], [58, 131], [58, 132], [58, 133], [58, 134], [58, 135], [58, 136], [58, 137], [58, 138], [58, 139], [58, 140], [58, 141], [58, 142], [58, 143], [58, 144], [58, 145], [58, 146], [58, 147], [58, 148], [58, 149], [58, 150], [58, 151], [58, 152], [58, 153], [58, 154], [58, 155], [58, 156], [58, 157], [58, 158], [58, 159], [58, 160], [58, 161], [58, 162], [58, 163], [58, 164], [58, 165], [58, 166], [58, 167], [58, 168], [58, 169], [58, 170], [58, 171], [58, 172], [58, 173], [58, 174], [58, 175], [58, 176], [58, 177], [58, 178], [58, 179], [58, 180], [58, 181], [58, 182], [58, 183], [58, 184], [58, 185], [58, 186], [58, 187], [58, 188], [58, 189], [58, 190], [58, 191], [58, 192], [58, 193], [58, 194], [58, 195], [58, 196], [58, 197], [58, 198], [58, 199], [58, 200], [58, 201], [58, 202], [58, 203], [58, 204], [58, 205], [58, 206], [58, 207], [58, 208], [58, 209], [58, 210], [58, 211], [58, 212], [58, 213], [58, 214], [58, 215], [58, 216], [58, 217], [58, 218], [58, 219], [58, 220], [58, 221], [58, 222], [58, 223], [58, 224], [58, 225], [58, 226], [58, 227], [58, 228], [58, 229], [58, 230], [58, 231], [58, 232], [58, 233], [58, 234], [58, 235], [58, 236], [58, 237], [58, 238], [58, 239], [58, 240], [58, 241], [58, 242], [58, 243], [58, 244], [58, 245], [58, 246], [58, 247], [58, 248], [58, 249], [58, 250], [58, 251], [58, 252], [58, 253], [58, 254], [58, 255], [58, 256], [58, 257], [58, 258], [58, 259], [58, 260], [58, 261], [58, 262], [58, 263], [58, 264], [58, 265], [58, 266], [58, 267], [58, 268], [58, 269], [58, 270], [58, 271], [58, 272], [58, 273], [58, 274], [58, 275], [58, 276], [58, 277], [58, 278], [58, 279], [58, 280], [58, 281], [58, 282], [58, 283], [58, 284], [58, 285], [58, 286], [58, 287], [58, 288], [58, 289], [58, 290], [60, 291], [60, 292], [60, 293], [60, 294], [60, 295], [60, 296], [60, 297], [60, 298], [60, 299], [60, 300], [60, 301], [60, 302], [60, 303], [60, 304], [60, 305], [60, 306], [60, 307], [60, 308], [60, 309], [60, 310], [60, 311], [60, 312], [60, 313], [60, 314], [60, 315], [60, 316], [60, 317], [60, 318], [60, 319], [60, 320], [60, 321], [60, 322], [60, 323], [60, 324], [60, 325], [60, 326], [60, 327], [60, 328], [60, 329], [60, 330], [60, 331], [68, 332], [71, 333], [72, 334], [75, 335], [65, 336], [65, 337], [65, 338], [65, 339], [65, 340], [65, 341], [65, 342], [65, 343], [65, 344], [65, 345], [65, 346], [65, 347], [65, 348], [65, 349], [65, 350], [65, 351], [65, 352], [65, 353], [65, 354], [65, 355], [65, 356], [65, 357], [65, 358], [65, 359], [65, 360], [65, 361], [65, 362], [65, 363], [65, 364], [65, 365], [65, 366], [65, 367], [65, 368], [65, 369], [65, 370], [65, 371], [65, 372], [65, 373], [65, 374], [65, 375], [65, 376], [65, 377], [65, 378], [65, 379], [65, 380], [65, 381], [65, 382], [65, 383], [65, 384], [65, 385], [65, 386], [65, 387], [65, 388], [65, 389], [65, 390], [65, 391], [65, 392], [65, 393], [65, 394], [65, 395], [65, 396], [65, 397], [65, 398], [65, 399], [76, 400], [80, 401], [83, 402], [86, 403], [89, 404], [92, 405], [95, 406], [98, 407], [101, 408], [104, 409], [107, 410], [110, 411], [113, 412], [116, 413], [119, 414], [122, 415], [125, 416], [58, 417], [128, 418], [129, 419], [129, 420], [132, 421], [58, 422], [135, 423], [136, 424], [136, 425], [58, 426], [139, 427], [140, 428], [140, 429], [58, 430], [143, 431], [144, 432], [144, 433], [147, 434], [150, 435], [153, 436], [58, 437], [156, 438], [157, 439], [157, 440], [160, 441], [163, 442], [58, 443], [166, 444], [167, 445], [167, 446], [170, 447], [58, 448], [173, 449], [174, 450], [174, 451], [58, 452], [177, 453], [178, 454], [178, 455], [181, 456], [184, 457], [58, 458], [187, 459], [188, 460], [188, 461], [58, 462], [191, 463], [192, 464], [192, 465], [195, 466], [198, 467], [201, 468], [204, 469], [207, 470], [210, 471], [213, 472], [216, 473], [219, 474], [222, 475], [225, 476], [228, 477], [231, 478], [234, 479], [237, 480], [240, 481], [58, 482], [243, 483], [244, 484], [244, 485], [247, 486], [58, 487], [250, 488], [251, 489], [251, 490], [254, 491], [58, 492], [257, 493], [258, 494], [258, 495], [58, 496], [261, 497], [262, 498], [262, 499], [265, 500], [268, 501], [271, 502], [274, 503], [277, 504], [58, 505], [280, 506], [281, 507], [281, 508], [284, 509], [285, 510], [285, 511], [288, 512], [288, 513], [289, 514], [289, 515], [293, 516], [297, 517], [300, 518], [304, 519], [60, 520], [307, 521], [308, 522], [308, 523], [60, 524], [311, 525], [312, 526], [312, 527], [316, 528], [319, 529], [322, 530], [60, 531], [325, 532], [326, 533], [326, 534], [329, 535], [330, 536], [65, 537], [65, 538], [65, 539], [65, 540], [65, 541], [348, 542], [65, 543], [351, 544], [352, 545], [352, 546], [355, 547], [358, 548], [361, 549], [364, 550], [367, 551], [370, 552], [373, 553], [376, 554], [379, 555], [382, 556], [385, 557], [388, 558], [391, 559], [65, 560], [65, 561], [396, 562], [397, 563], [397, 564], [80, 565], [401, 566], [401, 567], [83, 568], [402, 569], [402, 570], [86, 571], [403, 572], [403, 573], [89, 574], [404, 575], [92, 576], [405, 577], [405, 578], [95, 579], [406, 580], [98, 581], [407, 582], [101, 583], [408, 584], [408, 585], [104, 586], [409, 587], [409, 588], [107, 589], [410, 590], [410, 591], [110, 592], [411, 593], [113, 594], [412, 595], [412, 596], [116, 597], [413, 598], [119, 599], [414, 600], [122, 601], [415, 602], [415, 603], [125, 604], [416, 605], [416, 606], [417, 607], [417, 608], [128, 609], [418, 610], [420, 611], [420, 612], [132, 613], [421, 614], [422, 615], [422, 616], [135, 617], [423, 618], [425, 619], [425, 620], [426, 621], [426, 622], [139, 623], [427, 624], [429, 625], [429, 626], [430, 627], [430, 628], [143, 629], [431, 630], [433, 631], [147, 632], [434, 633], [434, 634], [150, 635], [435, 636], [435, 637], [153, 638], [436, 639], [436, 640], [437, 641], [437, 642], [156, 643], [438, 644], [440, 645], [440, 646], [160, 647], [441, 648], [441, 649], [163, 650], [442, 651], [442, 652], [443, 653], [443, 654], [166, 655], [444, 656], [446, 657], [446, 658], [170, 659], [447, 660], [447, 661], [448, 662], [448, 663], [173, 664], [449, 665], [451, 666], [451, 667], [452, 668], [452, 669], [177, 670], [453, 671], [455, 672], [181, 673], [456, 674], [456, 675], [184, 676], [457, 677], [457, 678], [458, 679], [187, 680], [459, 681], [461, 682], [461, 683], [462, 684], [191, 685], [463, 686], [465, 687], [195, 688], [466, 689], [466, 690], [198, 691], [467, 692], [467, 693], [201, 694], [468, 695], [468, 696], [204, 697], [469, 698], [469, 699], [207, 700], [470, 701], [470, 702], [210, 703], [471, 704], [471, 705], [213, 706], [472, 707], [472, 708], [216, 709], [473, 710], [219, 711], [474, 712], [474, 713], [222, 714], [475, 715], [475, 716], [225, 717], [476, 718], [476, 719], [228, 720], [477, 721], [477, 722], [231, 723], [478, 724], [478, 725], [234, 726], [479, 727], [479, 728], [237, 729], [480, 730], [480, 731], [240, 732], [481, 733], [482, 734], [482, 735], [243, 736], [483, 737], [485, 738], [485, 739], [247, 740], [486, 741], [486, 742], [487, 743], [487, 744], [250, 745], [488, 746], [490, 747], [490, 748], [254, 749], [491, 750], [492, 751], [492, 752], [257, 753], [493, 754], [495, 755], [495, 756], [496, 757], [496, 758], [261, 759], [497, 760], [499, 761], [499, 762], [265, 763], [500, 764], [268, 765], [501, 766], [501, 767], [271, 768], [502, 769], [502, 770], [274, 771], [503, 772], [503, 773], [277, 774], [504, 775], [505, 776], [280, 777], [506, 778], [508, 779], [508, 780], [284, 781], [509, 782], [510, 783], [285, 784], [511, 785], [512, 786], [288, 787], [513, 788], [513, 789], [514, 790], [514, 791], [289, 792], [515, 793], [515, 794], [293, 795], [297, 796], [300, 797], [304, 798], [520, 799], [520, 800], [307, 801], [521, 802], [524, 803], [311, 804], [525, 805], [316, 806], [319, 807], [322, 808], [531, 809], [325, 810], [532, 811], [329, 812], [330, 813], [537, 814], [537, 815], [538, 816], [538, 817], [539, 818], [539, 819], [540, 820], [540, 821], [541, 822], [541, 823], [348, 824], [542, 825], [543, 826], [543, 827], [351, 828], [544, 829], [546, 830], [546, 831], [355, 832], [547, 833], [547, 834], [358, 835], [548, 836], [548, 837], [361, 838], [549, 839], [549, 840], [364, 841], [550, 842], [550, 843], [367, 844], [551, 845], [551, 846], [370, 847], [552, 848], [373, 849], [553, 850], [553, 851], [376, 852], [554, 853], [554, 854], [379, 855], [555, 856], [382, 857], [556, 858], [556, 859], [385, 860], [557, 861], [557, 862], [388, 863], [558, 864], [558, 865], [391, 866], [559, 867], [559, 868], [560, 869], [560, 870], [561, 871], [396, 872], [562, 873], [564, 874], [564, 875], [565, 876], [566, 877], [567, 878], [568, 879], [568, 880], [570, 881], [571, 882], [571, 883], [573, 884], [574, 885], [574, 886], [576, 887], [576, 888], [578, 889], [579, 890], [579, 891], [581, 892], [583, 893], [584, 894], [585, 895], [586, 896], [586, 897], [588, 898], [589, 899], [589, 900], [591, 901], [592, 902], [592, 903], [594, 904], [594, 905], [596, 906], [597, 907], [597, 908], [599, 909], [601, 910], [602, 911], [603, 912], [604, 913], [605, 914], [606, 915], [606, 916], [609, 917], [612, 918], [613, 919], [613, 920], [617, 921], [620, 922], [623, 923], [626, 924], [629, 925], [632, 926], [632, 927], [634, 928], [635, 929], [637, 930], [638, 931], [638, 932], [640, 933], [643, 934], [646, 935], [647, 936], [649, 937], [650, 938], [650, 939], [652, 940], [655, 941], [658, 942], [659, 943], [661, 944], [664, 945], [667, 946], [670, 947], [673, 948], [673, 949], [675, 950], [676, 951], [676, 952], [678, 953], [680, 954], [683, 955], [685, 956], [688, 957], [690, 958], [691, 959], [693, 960], [694, 961], [694, 962], [696, 963], [697, 964], [697, 965], [699, 966], [700, 967], [701, 968], [702, 969], [703, 970], [703, 971], [705, 972], [706, 973], [706, 974], [708, 975], [709, 976], [709, 977], [711, 978], [713, 979], [714, 980], [716, 981], [717, 982], [719, 983], [720, 984], [720, 985], [722, 986], [723, 987], [725, 988], [726, 989], [727, 990], [728, 991], [729, 992], [731, 993], [732, 994], [732, 995], [736, 996], [739, 997], [740, 998], [742, 999], [745, 1000], [748, 1001], [749, 1002], [753, 1003], [756, 1004], [759, 1005], [762, 1006], [763, 1007], [765, 1008], [766, 1009], [767, 1010], [768, 1011], [769, 1012], [770, 1013], [770, 1014], [771, 1015], [771, 1016], [773, 1017], [774, 1018], [774, 1019], [777, 1020], [780, 1021], [781, 1022], [510, 1023], [783, 1024], [784, 1025], [784, 1026], [512, 1027], [786, 1028], [288, 1029], [787, 1030], [789, 1031], [790, 1032], [790, 1033], [514, 1034], [791, 1035], [791, 1036], [289, 1037], [792, 1038], [794, 1039], [795, 1040], [795, 1041], [796, 1042], [796, 1043], [797, 1044], [797, 1045], [798, 1046], [798, 1047], [801, 1048], [804, 1049], [806, 1050], [806, 1051], [807, 1052], [808, 1053], [808, 1054], [810, 1055], [329, 1056], [812, 1057], [330, 1058], [813, 1059], [824, 1060], [828, 1061], [831, 1062], [832, 1063], [834, 1064], [835, 1065], [835, 1066], [837, 1067], [838, 1068], [838, 1069], [840, 1070], [841, 1071], [841, 1072], [843, 1073], [844, 1074], [844, 1075], [846, 1076], [847, 1077], [847, 1078], [849, 1079], [849, 1080], [851, 1081], [852, 1082], [854, 1083], [855, 1084], [855, 1085], [857, 1086], [859, 1087], [860, 1088], [861, 1089], [862, 1090], [862, 1091], [863, 1092], [863, 1093], [865, 1094], [866, 1095], [867, 1096], [868, 1097], [868, 1098], [872, 1099], [875, 1100], [916, 1101], [1014, 1102], [510, 1103], [1023, 1104], [512, 1105], [1027, 1106], [1029, 1107], [1029, 1108], [787, 1109], [1030, 1110], [1032, 1111], [1032, 1112], [790, 1113], [1033, 1114], [1034, 1115], [1034, 1116], [1036, 1117], [1037, 1118], [792, 1119], [1038, 1120], [1056, 1121], [812, 1122], [1057, 1123], [1058, 1124], [813, 1125], [1059, 1126], [1091, 1127], [1098, 1128], [1103, 1129], [1103, 1130], [1023, 1131], [1104, 1132], [1105, 1133], [1105, 1134], [1027, 1135], [1106, 1136], [1109, 1137], [1111, 1138], [1111, 1139], [1032, 1140], [1112, 1141], [1113, 1142], [1113, 1143], [1119, 1144], [1122, 1145], [1125, 1146], [1131, 1147], [1135, 1148], [1138, 1149], [1138, 1150], [1111, 1151], [1139, 1152], [1032, 1153], [1140, 1154], [1149, 1155], [1149, 1156], [1138, 1157], [1150, 1158], [1151, 1159], [1151, 1160], [1153, 1161], [1140, 1162], [1154, 1163], [1155, 1164], [1149, 1165], [1156, 1166], [1157, 1167], [1157, 1168], [1162, 1169], [1155, 1170], [1164, 1171], [1165, 1172], [1170, 1173], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 9], [18, 4], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 19], [27, 10], [28, 21], [29, 21], [30, 22], [31, 23], [32, 13], [33, 13], [34, 24], [35, 14], [36, 25], [37, 8], [38, 27], [39, 28], [40, 12], [41, 12], [42, 12], [43, 23], [44, 23], [45, 23], [46, 23], [47, 23], [48, 23], [49, 23], [50, 23], [51, 31], [52, 32], [53, 39], [54, 39], [55, 40], [56, 43], [57, 49], [58, 32], [59, 33], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 49], [66, 50], [67, 59], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 63], [74, 64], [75, 48], [76, 66], [77, 66], [78, 58], [79, 58], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 58], [93, 58], [94, 58], [95, 58], [96, 58], [97, 58], [98, 58], [99, 58], [100, 58], [101, 58], [102, 58], [103, 58], [104, 58], [105, 58], [106, 58], [107, 58], [108, 58], [109, 58], [110, 58], [111, 58], [112, 58], [113, 58], [114, 58], [115, 58], [116, 58], [117, 58], [118, 58], [119, 58], [120, 58], [121, 58], [122, 58], [123, 58], [124, 58], [125, 58], [126, 58], [127, 58], [128, 58], [129, 58], [130, 58], [131, 58], [132, 58], [133, 58], [134, 58], [135, 58], [136, 58], [137, 58], [138, 58], [139, 58], [140, 58], [141, 58], [142, 58], [143, 58], [144, 58], [145, 58], [146, 58], [147, 58], [148, 58], [149, 58], [150, 58], [151, 58], [152, 58], [153, 58], [154, 58], [155, 58], [156, 58], [157, 58], [158, 58], [159, 58], [160, 58], [161, 58], [162, 58], [163, 58], [164, 58], [165, 58], [166, 58], [167, 58], [168, 58], [169, 58], [170, 58], [171, 58], [172, 58], [173, 58], [174, 58], [175, 58], [176, 58], [177, 58], [178, 58], [179, 58], [180, 58], [181, 58], [182, 58], [183, 58], [184, 58], [185, 58], [186, 58], [187, 58], [188, 58], [189, 58], [190, 58], [191, 58], [192, 58], [193, 58], [194, 58], [195, 58], [196, 58], [197, 58], [198, 58], [199, 58], [200, 58], [201, 58], [202, 58], [203, 58], [204, 58], [205, 58], [206, 58], [207, 58], [208, 58], [209, 58], [210, 58], [211, 58], [212, 58], [213, 58], [214, 58], [215, 58], [216, 58], [217, 58], [218, 58], [219, 58], [220, 58], [221, 58], [222, 58], [223, 58], [224, 58], [225, 58], [226, 58], [227, 58], [228, 58], [229, 58], [230, 58], [231, 58], [232, 58], [233, 58], [234, 58], [235, 58], [236, 58], [237, 58], [238, 58], [239, 58], [240, 58], [241, 58], [242, 58], [243, 58], [244, 58], [245, 58], [246, 58], [247, 58], [248, 58], [249, 58], [250, 58], [251, 58], [252, 58], [253, 58], [254, 58], [255, 58], [256, 58], [257, 58], [258, 58], [259, 58], [260, 58], [261, 58], [262, 58], [263, 58], [264, 58], [265, 58], [266, 58], [267, 58], [268, 58], [269, 58], [270, 58], [271, 58], [272, 58], [273, 58], [274, 58], [275, 58], [276, 58], [277, 58], [278, 58], [279, 58], [280, 58], [281, 58], [282, 58], [283, 58], [284, 58], [285, 58], [286, 58], [287, 58], [288, 58], [289, 58], [290, 58], [291, 60], [292, 60], [293, 60], [294, 60], [295, 60], [296, 60], [297, 60], [298, 60], [299, 60], [300, 60], [301, 60], [302, 60], [303, 60], [304, 60], [305, 60], [306, 60], [307, 60], [308, 60], [309, 60], [310, 60], [311, 60], [312, 60], [313, 60], [314, 60], [315, 60], [316, 60], [317, 60], [318, 60], [319, 60], [320, 60], [321, 60], [322, 60], [323, 60], [324, 60], [325, 60], [326, 60], [327, 60], [328, 60], [329, 60], [330, 60], [331, 60], [332, 68], [333, 71], [334, 72], [335, 75], [336, 65], [337, 65], [338, 65], [339, 65], [340, 65], [341, 65], [342, 65], [343, 65], [344, 65], [345, 65], [346, 65], [347, 65], [348, 65], [349, 65], [350, 65], [351, 65], [352, 65], [353, 65], [354, 65], [355, 65], [356, 65], [357, 65], [358, 65], [359, 65], [360, 65], [361, 65], [362, 65], [363, 65], [364, 65], [365, 65], [366, 65], [367, 65], [368, 65], [369, 65], [370, 65], [371, 65], [372, 65], [373, 65], [374, 65], [375, 65], [376, 65], [377, 65], [378, 65], [379, 65], [380, 65], [381, 65], [382, 65], [383, 65], [384, 65], [385, 65], [386, 65], [387, 65], [388, 65], [389, 65], [390, 65], [391, 65], [392, 65], [393, 65], [394, 65], [395, 65], [396, 65], [397, 65], [398, 65], [399, 65], [400, 76], [401, 80], [402, 83], [403, 86], [404, 89], [405, 92], [406, 95], [407, 98], [408, 101], [409, 104], [410, 107], [411, 110], [412, 113], [413, 116], [414, 119], [415, 122], [416, 125], [417, 58], [418, 128], [419, 129], [420, 129], [421, 132], [422, 58], [423, 135], [424, 136], [425, 136], [426, 58], [427, 139], [428, 140], [429, 140], [430, 58], [431, 143], [432, 144], [433, 144], [434, 147], [435, 150], [436, 153], [437, 58], [438, 156], [439, 157], [440, 157], [441, 160], [442, 163], [443, 58], [444, 166], [445, 167], [446, 167], [447, 170], [448, 58], [449, 173], [450, 174], [451, 174], [452, 58], [453, 177], [454, 178], [455, 178], [456, 181], [457, 184], [458, 58], [459, 187], [460, 188], [461, 188], [462, 58], [463, 191], [464, 192], [465, 192], [466, 195], [467, 198], [468, 201], [469, 204], [470, 207], [471, 210], [472, 213], [473, 216], [474, 219], [475, 222], [476, 225], [477, 228], [478, 231], [479, 234], [480, 237], [481, 240], [482, 58], [483, 243], [484, 244], [485, 244], [486, 247], [487, 58], [488, 250], [489, 251], [490, 251], [491, 254], [492, 58], [493, 257], [494, 258], [495, 258], [496, 58], [497, 261], [498, 262], [499, 262], [500, 265], [501, 268], [502, 271], [503, 274], [504, 277], [505, 58], [506, 280], [507, 281], [508, 281], [509, 284], [510, 285], [511, 285], [512, 288], [513, 288], [514, 289], [515, 289], [516, 293], [517, 297], [518, 300], [519, 304], [520, 60], [521, 307], [522, 308], [523, 308], [524, 60], [525, 311], [526, 312], [527, 312], [528, 316], [529, 319], [530, 322], [531, 60], [532, 325], [533, 326], [534, 326], [535, 329], [536, 330], [537, 65], [538, 65], [539, 65], [540, 65], [541, 65], [542, 348], [543, 65], [544, 351], [545, 352], [546, 352], [547, 355], [548, 358], [549, 361], [550, 364], [551, 367], [552, 370], [553, 373], [554, 376], [555, 379], [556, 382], [557, 385], [558, 388], [559, 391], [560, 65], [561, 65], [562, 396], [563, 397], [564, 397], [565, 80], [566, 401], [567, 401], [568, 83], [569, 402], [570, 402], [571, 86], [572, 403], [573, 403], [574, 89], [575, 404], [576, 92], [577, 405], [578, 405], [579, 95], [580, 406], [581, 98], [582, 407], [583, 101], [584, 408], [585, 408], [586, 104], [587, 409], [588, 409], [589, 107], [590, 410], [591, 410], [592, 110], [593, 411], [594, 113], [595, 412], [596, 412], [597, 116], [598, 413], [599, 119], [600, 414], [601, 122], [602, 415], [603, 415], [604, 125], [605, 416], [606, 416], [607, 417], [608, 417], [609, 128], [610, 418], [611, 420], [612, 420], [613, 132], [614, 421], [615, 422], [616, 422], [617, 135], [618, 423], [619, 425], [620, 425], [621, 426], [622, 426], [623, 139], [624, 427], [625, 429], [626, 429], [627, 430], [628, 430], [629, 143], [630, 431], [631, 433], [632, 147], [633, 434], [634, 434], [635, 150], [636, 435], [637, 435], [638, 153], [639, 436], [640, 436], [641, 437], [642, 437], [643, 156], [644, 438], [645, 440], [646, 440], [647, 160], [648, 441], [649, 441], [650, 163], [651, 442], [652, 442], [653, 443], [654, 443], [655, 166], [656, 444], [657, 446], [658, 446], [659, 170], [660, 447], [661, 447], [662, 448], [663, 448], [664, 173], [665, 449], [666, 451], [667, 451], [668, 452], [669, 452], [670, 177], [671, 453], [672, 455], [673, 181], [674, 456], [675, 456], [676, 184], [677, 457], [678, 457], [679, 458], [680, 187], [681, 459], [682, 461], [683, 461], [684, 462], [685, 191], [686, 463], [687, 465], [688, 195], [689, 466], [690, 466], [691, 198], [692, 467], [693, 467], [694, 201], [695, 468], [696, 468], [697, 204], [698, 469], [699, 469], [700, 207], [701, 470], [702, 470], [703, 210], [704, 471], [705, 471], [706, 213], [707, 472], [708, 472], [709, 216], [710, 473], [711, 219], [712, 474], [713, 474], [714, 222], [715, 475], [716, 475], [717, 225], [718, 476], [719, 476], [720, 228], [721, 477], [722, 477], [723, 231], [724, 478], [725, 478], [726, 234], [727, 479], [728, 479], [729, 237], [730, 480], [731, 480], [732, 240], [733, 481], [734, 482], [735, 482], [736, 243], [737, 483], [738, 485], [739, 485], [740, 247], [741, 486], [742, 486], [743, 487], [744, 487], [745, 250], [746, 488], [747, 490], [748, 490], [749, 254], [750, 491], [751, 492], [752, 492], [753, 257], [754, 493], [755, 495], [756, 495], [757, 496], [758, 496], [759, 261], [760, 497], [761, 499], [762, 499], [763, 265], [764, 500], [765, 268], [766, 501], [767, 501], [768, 271], [769, 502], [770, 502], [771, 274], [772, 503], [773, 503], [774, 277], [775, 504], [776, 505], [777, 280], [778, 506], [779, 508], [780, 508], [781, 284], [782, 509], [783, 510], [784, 285], [785, 511], [786, 512], [787, 288], [788, 513], [789, 513], [790, 514], [791, 514], [792, 289], [793, 515], [794, 515], [795, 293], [796, 297], [797, 300], [798, 304], [799, 520], [800, 520], [801, 307], [802, 521], [803, 524], [804, 311], [805, 525], [806, 316], [807, 319], [808, 322], [809, 531], [810, 325], [811, 532], [812, 329], [813, 330], [814, 537], [815, 537], [816, 538], [817, 538], [818, 539], [819, 539], [820, 540], [821, 540], [822, 541], [823, 541], [824, 348], [825, 542], [826, 543], [827, 543], [828, 351], [829, 544], [830, 546], [831, 546], [832, 355], [833, 547], [834, 547], [835, 358], [836, 548], [837, 548], [838, 361], [839, 549], [840, 549], [841, 364], [842, 550], [843, 550], [844, 367], [845, 551], [846, 551], [847, 370], [848, 552], [849, 373], [850, 553], [851, 553], [852, 376], [853, 554], [854, 554], [855, 379], [856, 555], [857, 382], [858, 556], [859, 556], [860, 385], [861, 557], [862, 557], [863, 388], [864, 558], [865, 558], [866, 391], [867, 559], [868, 559], [869, 560], [870, 560], [871, 561], [872, 396], [873, 562], [874, 564], [875, 564], [876, 565], [877, 566], [878, 567], [879, 568], [880, 568], [881, 570], [882, 571], [883, 571], [884, 573], [885, 574], [886, 574], [887, 576], [888, 576], [889, 578], [890, 579], [891, 579], [892, 581], [893, 583], [894, 584], [895, 585], [896, 586], [897, 586], [898, 588], [899, 589], [900, 589], [901, 591], [902, 592], [903, 592], [904, 594], [905, 594], [906, 596], [907, 597], [908, 597], [909, 599], [910, 601], [911, 602], [912, 603], [913, 604], [914, 605], [915, 606], [916, 606], [917, 609], [918, 612], [919, 613], [920, 613], [921, 617], [922, 620], [923, 623], [924, 626], [925, 629], [926, 632], [927, 632], [928, 634], [929, 635], [930, 637], [931, 638], [932, 638], [933, 640], [934, 643], [935, 646], [936, 647], [937, 649], [938, 650], [939, 650], [940, 652], [941, 655], [942, 658], [943, 659], [944, 661], [945, 664], [946, 667], [947, 670], [948, 673], [949, 673], [950, 675], [951, 676], [952, 676], [953, 678], [954, 680], [955, 683], [956, 685], [957, 688], [958, 690], [959, 691], [960, 693], [961, 694], [962, 694], [963, 696], [964, 697], [965, 697], [966, 699], [967, 700], [968, 701], [969, 702], [970, 703], [971, 703], [972, 705], [973, 706], [974, 706], [975, 708], [976, 709], [977, 709], [978, 711], [979, 713], [980, 714], [981, 716], [982, 717], [983, 719], [984, 720], [985, 720], [986, 722], [987, 723], [988, 725], [989, 726], [990, 727], [991, 728], [992, 729], [993, 731], [994, 732], [995, 732], [996, 736], [997, 739], [998, 740], [999, 742], [1000, 745], [1001, 748], [1002, 749], [1003, 753], [1004, 756], [1005, 759], [1006, 762], [1007, 763], [1008, 765], [1009, 766], [1010, 767], [1011, 768], [1012, 769], [1013, 770], [1014, 770], [1015, 771], [1016, 771], [1017, 773], [1018, 774], [1019, 774], [1020, 777], [1021, 780], [1022, 781], [1023, 510], [1024, 783], [1025, 784], [1026, 784], [1027, 512], [1028, 786], [1029, 288], [1030, 787], [1031, 789], [1032, 790], [1033, 790], [1034, 514], [1035, 791], [1036, 791], [1037, 289], [1038, 792], [1039, 794], [1040, 795], [1041, 795], [1042, 796], [1043, 796], [1044, 797], [1045, 797], [1046, 798], [1047, 798], [1048, 801], [1049, 804], [1050, 806], [1051, 806], [1052, 807], [1053, 808], [1054, 808], [1055, 810], [1056, 329], [1057, 812], [1058, 330], [1059, 813], [1060, 824], [1061, 828], [1062, 831], [1063, 832], [1064, 834], [1065, 835], [1066, 835], [1067, 837], [1068, 838], [1069, 838], [1070, 840], [1071, 841], [1072, 841], [1073, 843], [1074, 844], [1075, 844], [1076, 846], [1077, 847], [1078, 847], [1079, 849], [1080, 849], [1081, 851], [1082, 852], [1083, 854], [1084, 855], [1085, 855], [1086, 857], [1087, 859], [1088, 860], [1089, 861], [1090, 862], [1091, 862], [1092, 863], [1093, 863], [1094, 865], [1095, 866], [1096, 867], [1097, 868], [1098, 868], [1099, 872], [1100, 875], [1101, 916], [1102, 1014], [1103, 510], [1104, 1023], [1105, 512], [1106, 1027], [1107, 1029], [1108, 1029], [1109, 787], [1110, 1030], [1111, 1032], [1112, 1032], [1113, 790], [1114, 1033], [1115, 1034], [1116, 1034], [1117, 1036], [1118, 1037], [1119, 792], [1120, 1038], [1121, 1056], [1122, 812], [1123, 1057], [1124, 1058], [1125, 813], [1126, 1059], [1127, 1091], [1128, 1098], [1129, 1103], [1130, 1103], [1131, 1023], [1132, 1104], [1133, 1105], [1134, 1105], [1135, 1027], [1136, 1106], [1137, 1109], [1138, 1111], [1139, 1111], [1140, 1032], [1141, 1112], [1142, 1113], [1143, 1113], [1144, 1119], [1145, 1122], [1146, 1125], [1147, 1131], [1148, 1135], [1149, 1138], [1150, 1138], [1151, 1111], [1152, 1139], [1153, 1032], [1154, 1140], [1155, 1149], [1156, 1149], [1157, 1138], [1158, 1150], [1159, 1151], [1160, 1151], [1161, 1153], [1162, 1140], [1163, 1154], [1164, 1155], [1165, 1149], [1166, 1156], [1167, 1157], [1168, 1157], [1169, 1162], [1170, 1155], [1171, 1164], [1172, 1165], [1173, 1170], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493], [494, 494], [495, 495], [496, 496], [497, 497], [498, 498], [499, 499], [500, 500], [501, 501], [502, 502], [503, 503], [504, 504], [505, 505], [506, 506], [507, 507], [508, 508], [509, 509], [510, 510], [511, 511], [512, 512], [513, 513], [514, 514], [515, 515], [516, 516], [517, 517], [518, 518], [519, 519], [520, 520], [521, 521], [522, 522], [523, 523], [524, 524], [525, 525], [526, 526], [527, 527], [528, 528], [529, 529], [530, 530], [531, 531], [532, 532], [533, 533], [534, 534], [535, 535], [536, 536], [537, 537], [538, 538], [539, 539], [540, 540], [541, 541], [542, 542], [543, 543], [544, 544], [545, 545], [546, 546], [547, 547], [548, 548], [549, 549], [550, 550], [551, 551], [552, 552], [553, 553], [554, 554], [555, 555], [556, 556], [557, 557], [558, 558], [559, 559], [560, 560], [561, 561], [562, 562], [563, 563], [564, 564], [565, 565], [566, 566], [567, 567], [568, 568], [569, 569], [570, 570], [571, 571], [572, 572], [573, 573], [574, 574], [575, 575], [576, 576], [577, 577], [578, 578], [579, 579], [580, 580], [581, 581], [582, 582], [583, 583], [584, 584], [585, 585], [586, 586], [587, 587], [588, 588], [589, 589], [590, 590], [591, 591], [592, 592], [593, 593], [594, 594], [595, 595], [596, 596], [597, 597], [598, 598], [599, 599], [600, 600], [601, 601], [602, 602], [603, 603], [604, 604], [605, 605], [606, 606], [607, 607], [608, 608], [609, 609], [610, 610], [611, 611], [612, 612], [613, 613], [614, 614], [615, 615], [616, 616], [617, 617], [618, 618], [619, 619], [620, 620], [621, 621], [622, 622], [623, 623], [624, 624], [625, 625], [626, 626], [627, 627], [628, 628], [629, 629], [630, 630], [631, 631], [632, 632], [633, 633], [634, 634], [635, 635], [636, 636], [637, 637], [638, 638], [639, 639], [640, 640], [641, 641], [642, 642], [643, 643], [644, 644], [645, 645], [646, 646], [647, 647], [648, 648], [649, 649], [650, 650], [651, 651], [652, 652], [653, 653], [654, 654], [655, 655], [656, 656], [657, 657], [658, 658], [659, 659], [660, 660], [661, 661], [662, 662], [663, 663], [664, 664], [665, 665], [666, 666], [667, 667], [668, 668], [669, 669], [670, 670], [671, 671], [672, 672], [673, 673], [674, 674], [675, 675], [676, 676], [677, 677], [678, 678], [679, 679], [680, 680], [681, 681], [682, 682], [683, 683], [684, 684], [685, 685], [686, 686], [687, 687], [688, 688], [689, 689], [690, 690], [691, 691], [692, 692], [693, 693], [694, 694], [695, 695], [696, 696], [697, 697], [698, 698], [699, 699], [700, 700], [701, 701], [702, 702], [703, 703], [704, 704], [705, 705], [706, 706], [707, 707], [708, 708], [709, 709], [710, 710], [711, 711], [712, 712], [713, 713], [714, 714], [715, 715], [716, 716], [717, 717], [718, 718], [719, 719], [720, 720], [721, 721], [722, 722], [723, 723], [724, 724], [725, 725], [726, 726], [727, 727], [728, 728], [729, 729], [730, 730], [731, 731], [732, 732], [733, 733], [734, 734], [735, 735], [736, 736], [737, 737], [738, 738], [739, 739], [740, 740], [741, 741], [742, 742], [743, 743], [744, 744], [745, 745], [746, 746], [747, 747], [748, 748], [749, 749], [750, 750], [751, 751], [752, 752], [753, 753], [754, 754], [755, 755], [756, 756], [757, 757], [758, 758], [759, 759], [760, 760], [761, 761], [762, 762], [763, 763], [764, 764], [765, 765], [766, 766], [767, 767], [768, 768], [769, 769], [770, 770], [771, 771], [772, 772], [773, 773], [774, 774], [775, 775], [776, 776], [777, 777], [778, 778], [779, 779], [780, 780], [781, 781], [782, 782], [783, 783], [784, 784], [785, 785], [786, 786], [787, 787], [788, 788], [789, 789], [790, 790], [791, 791], [792, 792], [793, 793], [794, 794], [795, 795], [796, 796], [797, 797], [798, 798], [799, 799], [800, 800], [801, 801], [802, 802], [803, 803], [804, 804], [805, 805], [806, 806], [807, 807], [808, 808], [809, 809], [810, 810], [811, 811], [812, 812], [813, 813], [814, 814], [815, 815], [816, 816], [817, 817], [818, 818], [819, 819], [820, 820], [821, 821], [822, 822], [823, 823], [824, 824], [825, 825], [826, 826], [827, 827], [828, 828], [829, 829], [830, 830], [831, 831], [832, 832], [833, 833], [834, 834], [835, 835], [836, 836], [837, 837], [838, 838], [839, 839], [840, 840], [841, 841], [842, 842], [843, 843], [844, 844], [845, 845], [846, 846], [847, 847], [848, 848], [849, 849], [850, 850], [851, 851], [852, 852], [853, 853], [854, 854], [855, 855], [856, 856], [857, 857], [858, 858], [859, 859], [860, 860], [861, 861], [862, 862], [863, 863], [864, 864], [865, 865], [866, 866], [867, 867], [868, 868], [869, 869], [870, 870], [871, 871], [872, 872], [873, 873], [874, 874], [875, 875], [876, 876], [877, 877], [878, 878], [879, 879], [880, 880], [881, 881], [882, 882], [883, 883], [884, 884], [885, 885], [886, 886], [887, 887], [888, 888], [889, 889], [890, 890], [891, 891], [892, 892], [893, 893], [894, 894], [895, 895], [896, 896], [897, 897], [898, 898], [899, 899], [900, 900], [901, 901], [902, 902], [903, 903], [904, 904], [905, 905], [906, 906], [907, 907], [908, 908], [909, 909], [910, 910], [911, 911], [912, 912], [913, 913], [914, 914], [915, 915], [916, 916], [917, 917], [918, 918], [919, 919], [920, 920], [921, 921], [922, 922], [923, 923], [924, 924], [925, 925], [926, 926], [927, 927], [928, 928], [929, 929], [930, 930], [931, 931], [932, 932], [933, 933], [934, 934], [935, 935], [936, 936], [937, 937], [938, 938], [939, 939], [940, 940], [941, 941], [942, 942], [943, 943], [944, 944], [945, 945], [946, 946], [947, 947], [948, 948], [949, 949], [950, 950], [951, 951], [952, 952], [953, 953], [954, 954], [955, 955], [956, 956], [957, 957], [958, 958], [959, 959], [960, 960], [961, 961], [962, 962], [963, 963], [964, 964], [965, 965], [966, 966], [967, 967], [968, 968], [969, 969], [970, 970], [971, 971], [972, 972], [973, 973], [974, 974], [975, 975], [976, 976], [977, 977], [978, 978], [979, 979], [980, 980], [981, 981], [982, 982], [983, 983], [984, 984], [985, 985], [986, 986], [987, 987], [988, 988], [989, 989], [990, 990], [991, 991], [992, 992], [993, 993], [994, 994], [995, 995], [996, 996], [997, 997], [998, 998], [999, 999], [1000, 1000], [1001, 1001], [1002, 1002], [1003, 1003], [1004, 1004], [1005, 1005], [1006, 1006], [1007, 1007], [1008, 1008], [1009, 1009], [1010, 1010], [1011, 1011], [1012, 1012], [1013, 1013], [1014, 1014], [1015, 1015], [1016, 1016], [1017, 1017], [1018, 1018], [1019, 1019], [1020, 1020], [1021, 1021], [1022, 1022], [1023, 1023], [1024, 1024], [1025, 1025], [1026, 1026], [1027, 1027], [1028, 1028], [1029, 1029], [1030, 1030], [1031, 1031], [1032, 1032], [1033, 1033], [1034, 1034], [1035, 1035], [1036, 1036], [1037, 1037], [1038, 1038], [1039, 1039], [1040, 1040], [1041, 1041], [1042, 1042], [1043, 1043], [1044, 1044], [1045, 1045], [1046, 1046], [1047, 1047], [1048, 1048], [1049, 1049], [1050, 1050], [1051, 1051], [1052, 1052], [1053, 1053], [1054, 1054], [1055, 1055], [1056, 1056], [1057, 1057], [1058, 1058], [1059, 1059], [1060, 1060], [1061, 1061], [1062, 1062], [1063, 1063], [1064, 1064], [1065, 1065], [1066, 1066], [1067, 1067], [1068, 1068], [1069, 1069], [1070, 1070], [1071, 1071], [1072, 1072], [1073, 1073], [1074, 1074], [1075, 1075], [1076, 1076], [1077, 1077], [1078, 1078], [1079, 1079], [1080, 1080], [1081, 1081], [1082, 1082], [1083, 1083], [1084, 1084], [1085, 1085], [1086, 1086], [1087, 1087], [1088, 1088], [1089, 1089], [1090, 1090], [1091, 1091], [1092, 1092], [1093, 1093], [1094, 1094], [1095, 1095], [1096, 1096], [1097, 1097], [1098, 1098], [1099, 1099], [1100, 1100], [1101, 1101], [1102, 1102], [1103, 1103], [1104, 1104], [1105, 1105], [1106, 1106], [1107, 1107], [1108, 1108], [1109, 1109], [1110, 1110], [1111, 1111], [1112, 1112], [1113, 1113], [1114, 1114], [1115, 1115], [1116, 1116], [1117, 1117], [1118, 1118], [1119, 1119], [1120, 1120], [1121, 1121], [1122, 1122], [1123, 1123], [1124, 1124], [1125, 1125], [1126, 1126], [1127, 1127], [1128, 1128], [1129, 1129], [1130, 1130], [1131, 1131], [1132, 1132], [1133, 1133], [1134, 1134], [1135, 1135], [1136, 1136], [1137, 1137], [1138, 1138], [1139, 1139], [1140, 1140], [1141, 1141], [1142, 1142], [1143, 1143], [1144, 1144], [1145, 1145], [1146, 1146], [1147, 1147], [1148, 1148], [1149, 1149], [1150, 1150], [1151, 1151], [1152, 1152], [1153, 1153], [1154, 1154], [1155, 1155], [1156, 1156], [1157, 1157], [1158, 1158], [1159, 1159], [1160, 1160], [1161, 1161], [1162, 1162], [1163, 1163], [1164, 1164], [1165, 1165], [1166, 1166], [1167, 1167], [1168, 1168], [1169, 1169], [1170, 1170], [1171, 1171], [1172, 1172], [1173, 1173]]}, {"function_name": "jjCanMove_0", "code": "private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)\n{\n   switch(hiByte)\n   {\n      case 0:\n         return ((jjbitVec0[i2] & l2) != 0L);\n      default : \n         return false;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [8, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 8], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jjCanMove_1", "code": "private static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2)\n{\n   switch(hiByte)\n   {\n      case 0:\n         return ((jjbitVec0[i2] & l2) != 0L);\n      default : \n         if ((jjbitVec1[i1] & l1) != 0L)\n            return true;\n         return false;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "IF", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [8, 12], [8, 13], [9, 14], [12, 15], [13, 16], [13, 17], [14, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 8], [13, 8], [14, 9], [15, 12], [16, 13], [17, 13], [18, 14], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "jjCanMove_2", "code": "private static final boolean jjCanMove_2(int hiByte, int i1, int i2, long l1, long l2)\n{\n   switch(hiByte)\n   {\n      case 0:\n         return ((jjbitVec4[i2] & l2) != 0L);\n      case 48:\n         return ((jjbitVec5[i2] & l2) != 0L);\n      case 49:\n         return ((jjbitVec6[i2] & l2) != 0L);\n      case 51:\n         return ((jjbitVec7[i2] & l2) != 0L);\n      case 61:\n         return ((jjbitVec8[i2] & l2) != 0L);\n      default : \n         if ((jjbitVec3[i1] & l1) != 0L)\n            return true;\n         return false;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "IF", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [7, 19], [8, 20], [8, 21], [9, 22], [11, 23], [13, 24], [15, 25], [17, 26], [20, 27], [21, 28], [21, 29], [22, 30], [22, 31], [23, 32], [23, 33], [24, 34], [24, 35], [25, 36], [25, 37], [26, 38], [26, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 7], [20, 8], [21, 8], [22, 9], [23, 11], [24, 13], [25, 15], [26, 17], [27, 20], [28, 21], [29, 21], [30, 22], [31, 22], [32, 23], [33, 23], [34, 24], [35, 24], [36, 25], [37, 25], [38, 26], [39, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "ReInit", "code": "public void ReInit(ASCII_UCodeESC_CharStream stream)\n{\n   jjmatchedPos = jjnewStateCnt = 0;\n   curLexState = defaultLexState;\n   input_stream = stream;\n   ReInitRounds();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ReInitRounds", "code": "private final void ReInitRounds()\n{\n   int i;\n   jjround = 0x80000001;\n   for (i = 74; i-- > 0;)\n      jjrounds[i] = 0x80000000;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [1, 6], [3, 7], [4, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 1], [7, 3], [8, 4], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "ReInit", "code": "public void ReInit(ASCII_UCodeESC_CharStream stream, int lexState)\n{\n   ReInit(stream);\n   SwitchTo(lexState);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "SwitchTo", "code": "public void SwitchTo(int lexState)\n{\n   if (lexState >= 1 || lexState < 0)\n      throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n   else\n      curLexState = lexState;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [6, 9], [7, 10], [8, 11], [9, 12], [9, 13], [13, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 6], [10, 7], [11, 8], [12, 9], [13, 9], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jjFillToken", "code": "private final Token jjFillToken()\n{\n   Token t = Token.newToken(jjmatchedKind);\n   t.kind = jjmatchedKind;\n   String im = jjstrLiteralImages[jjmatchedKind];\n   t.image = (im == null) ? input_stream.GetImage() : im;\n   t.beginLine = input_stream.getBeginLine();\n   t.beginColumn = input_stream.getBeginColumn();\n   t.endLine = input_stream.getEndLine();\n   t.endColumn = input_stream.getEndColumn();\n   return t;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [3, 15], [14, 16], [14, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 3], [16, 14], [17, 14], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getNextToken", "code": "public final Token getNextToken() \n{\n  int kind;\n  Token specialToken = null;\n  Token matchedToken;\n  int curPos = 0;\n\n  EOFLoop :\n  for (;;)\n  {   \n   try   \n   {     \n      curChar = input_stream.BeginToken();\n   }     \n   catch(java.io.IOException e)\n   {        \n      jjmatchedKind = 0;\n      matchedToken = jjFillToken();\n      matchedToken.specialToken = specialToken;\n      return matchedToken;\n   }\n\n   jjmatchedKind = 0x7fffffff;\n   jjmatchedPos = 0;\n   curPos = jjMoveStringLiteralDfa0_0();\n   if (jjmatchedKind != 0x7fffffff)\n   {\n      if (jjmatchedPos + 1 < curPos)\n         input_stream.backup(curPos - jjmatchedPos - 1);\n      if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n      {\n         matchedToken = jjFillToken();\n         matchedToken.specialToken = specialToken;\n         return matchedToken;\n      }\n      else\n      {\n         if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n         {\n            matchedToken = jjFillToken();\n            if (specialToken == null)\n               specialToken = matchedToken;\n            else\n            {\n               matchedToken.specialToken = specialToken;\n               specialToken = (specialToken.next = matchedToken);\n            }\n         }\n         continue EOFLoop;\n      }\n   }\n   int error_line = input_stream.getEndLine();\n   int error_column = input_stream.getEndColumn();\n   String error_after = null;\n   boolean EOFSeen = false;\n   try { input_stream.readChar(); input_stream.backup(1); }\n   catch (java.io.IOException e1) {\n      EOFSeen = true;\n      error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n      if (curChar == '\\n' || curChar == '\\r') {\n         error_line++;\n         error_column = 0;\n      }\n      else\n         error_column++;\n   }\n   if (!EOFSeen) {\n      input_stream.backup(1);\n      error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n   }\n   throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "IF", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CATCH", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [4, 16], [6, 17], [8, 18], [13, 19], [1, 20], [1, 21], [1, 22], [14, 23], [18, 24], [8, 25], [8, 26], [9, 27], [10, 28], [11, 29], [12, 30], [13, 31], [13, 32], [19, 33], [20, 34], [21, 35], [22, 36], [23, 37], [14, 38], [7, 39], [7, 40], [24, 41], [18, 42], [18, 43], [25, 44], [31, 45], [32, 46], [23, 47], [23, 48], [23, 49], [38, 50], [39, 51], [40, 52], [41, 53], [41, 54], [42, 55], [43, 56], [31, 57], [31, 58], [31, 59], [45, 60], [45, 61], [32, 62], [46, 63], [48, 64], [49, 65], [51, 66], [51, 67], [51, 68], [24, 69], [53, 70], [54, 71], [55, 72], [55, 73], [55, 74], [58, 75], [31, 76], [31, 77], [61, 78], [62, 79], [63, 80], [68, 81], [69, 82], [74, 83], [58, 84], [75, 85], [75, 86], [77, 87], [78, 88], [78, 89], [79, 90], [79, 91], [84, 92], [58, 93], [86, 94], [88, 95], [61, 96], [84, 97], [92, 98], [93, 99], [94, 100], [94, 101], [96, 102], [84, 103], [84, 104], [100, 105], [86, 106], [103, 107], [106, 108], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 4], [17, 6], [18, 8], [19, 13], [20, 1], [21, 1], [22, 1], [23, 14], [24, 18], [25, 8], [26, 8], [27, 9], [28, 10], [29, 11], [30, 12], [31, 13], [32, 13], [33, 19], [34, 20], [35, 21], [36, 22], [37, 23], [38, 14], [39, 7], [40, 7], [41, 24], [42, 18], [43, 18], [44, 25], [45, 31], [46, 32], [47, 23], [48, 23], [49, 23], [50, 38], [51, 39], [52, 40], [53, 41], [54, 41], [55, 42], [56, 43], [57, 31], [58, 31], [59, 31], [60, 45], [61, 45], [62, 32], [63, 46], [64, 48], [65, 49], [66, 51], [67, 51], [68, 51], [69, 24], [70, 53], [71, 54], [72, 55], [73, 55], [74, 55], [75, 58], [76, 31], [77, 31], [78, 61], [79, 62], [80, 63], [81, 68], [82, 69], [83, 74], [84, 58], [85, 75], [86, 75], [87, 77], [88, 78], [89, 78], [90, 79], [91, 79], [92, 84], [93, 58], [94, 86], [95, 88], [96, 61], [97, 84], [98, 92], [99, 93], [100, 94], [101, 94], [102, 96], [103, 84], [104, 84], [105, 100], [106, 86], [107, 103], [108, 106], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108]]}, {"function_name": "ParserTokenManager", "code": "public ParserTokenManager(ASCII_UCodeESC_CharStream stream)\n{\n   if (ASCII_UCodeESC_CharStream.staticFlag)\n      throw new Error(\"ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.\");\n   input_stream = stream;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "ParserTokenManager", "code": "public ParserTokenManager(ASCII_UCodeESC_CharStream stream, int lexState)\n{\n   this(stream);\n   SwitchTo(lexState);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "jedit-4.1-4074", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/options/LoadSaveOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.LoadSaveOptionPane", "code": "public class LoadSaveOptionPane extends AbstractOptionPane\n{\n\t//{{{ LoadSaveOptionPane constructor\n\tpublic LoadSaveOptionPane()\n\t{\n\t\tsuper(\"loadsave\");\n\t} //}}}\n\n\t//{{{ _init() method\n\tpublic void _init()\n\t{\n\t\t/* Autosave interval */\n\t\tautosave = new JTextField(jEdit.getProperty(\"autosave\"));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.autosave\"),autosave);\n\n\t\t/* Backup count */\n\t\tbackups = new JTextField(jEdit.getProperty(\"backups\"));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.backups\"),backups);\n\n\t\t/* Backup directory */\n\t\tbackupDirectory = new JTextField(jEdit.getProperty(\n\t\t\t\"backup.directory\"));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.backupDirectory\"),\n\t\t\tbackupDirectory);\n\n\t\t/* Backup filename prefix */\n\t\tbackupPrefix = new JTextField(jEdit.getProperty(\"backup.prefix\"));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.backupPrefix\"),\n\t\t\tbackupPrefix);\n\n\t\t/* Backup suffix */\n\t\tbackupSuffix = new JTextField(jEdit.getProperty(\n\t\t\t\"backup.suffix\"));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.backupSuffix\"),\n\t\t\tbackupSuffix);\n\n\t\t/* Line separator */\n\t\tString[] lineSeps = { jEdit.getProperty(\"lineSep.unix\"),\n\t\t\tjEdit.getProperty(\"lineSep.windows\"),\n\t\t\tjEdit.getProperty(\"lineSep.mac\") };\n\t\tlineSeparator = new JComboBox(lineSeps);\n\t\tString lineSep = jEdit.getProperty(\"buffer.lineSeparator\",\n\t\t\tSystem.getProperty(\"line.separator\"));\n\t\tif(\"\\n\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(0);\n\t\telse if(\"\\r\\n\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(1);\n\t\telse if(\"\\r\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(2);\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.lineSeparator\"),\n\t\t\tlineSeparator);\n\n\t\t/* Default file encoding */\n\t\tDefaultComboBoxModel encodings = new DefaultComboBoxModel();\n\t\tStringTokenizer st = new StringTokenizer(jEdit.getProperty(\"encodings\"));\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tencodings.addElement(st.nextToken());\n\t\t}\n\n\t\tencoding = new JComboBox(encodings);\n\t\tencoding.setEditable(true);\n\t\tencoding.setSelectedItem(jEdit.getProperty(\"buffer.encoding\",\n\t\t\tSystem.getProperty(\"file.encoding\")));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.encoding\"),encoding);\n\n\t\t/* Session management */\n\t\trestore = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.restore\"));\n\t\trestore.setSelected(jEdit.getBooleanProperty(\"restore\"));\n\t\trestore.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\trestoreCLI.setEnabled(restore.isSelected());\n\t\t\t}\n\t\t});\n\n\t\taddComponent(restore);\n\t\trestoreCLI = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.restore.cli\"));\n\t\trestoreCLI.setSelected(jEdit.getBooleanProperty(\"restore.cli\"));\n\t\trestoreCLI.setEnabled(restore.isSelected());\n\t\taddComponent(restoreCLI);\n\n\t\t/* Clients open files in new view */\n\t\tnewView = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.newView\"));\n\t\tnewView.setSelected(jEdit.getBooleanProperty(\"client.newView\"));\n\t\taddComponent(newView);\n\n\t\t/* Persistent markers */\n\t\tpersistentMarkers = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.persistentMarkers\"));\n\t\tpersistentMarkers.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"persistentMarkers\"));\n\t\taddComponent(persistentMarkers);\n\n\t\t/* Two-stage save */\n\t\ttwoStageSave = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.twoStageSave\"));\n\t\ttwoStageSave.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"twoStageSave\"));\n\t\taddComponent(twoStageSave);\n\n\t\t/* Backup on every save */\n\t\tbackupEverySave = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.backupEverySave\"));\n\t\tbackupEverySave.setSelected(jEdit.getBooleanProperty(\"backupEverySave\"));\n\t\taddComponent(backupEverySave);\n\n\t\t/* Backup on every save */\n\t\tstripTrailingEOL = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.stripTrailingEOL\"));\n\t\tstripTrailingEOL.setSelected(jEdit.getBooleanProperty(\"stripTrailingEOL\"));\n\t\taddComponent(stripTrailingEOL);\n\n\t} //}}}\n\n\t//{{{ _save() method\n\tpublic void _save()\n\t{\n\t\tjEdit.setProperty(\"autosave\",autosave.getText());\n\t\tjEdit.setProperty(\"backups\",backups.getText());\n\t\tjEdit.setProperty(\"backup.directory\",backupDirectory.getText());\n\t\tjEdit.setProperty(\"backup.prefix\",backupPrefix.getText());\n\t\tjEdit.setProperty(\"backup.suffix\",backupSuffix.getText());\n\t\tString lineSep = null;\n\t\tswitch(lineSeparator.getSelectedIndex())\n\t\t{\n\t\tcase 0:\n\t\t\tlineSep = \"\\n\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tlineSep = \"\\r\\n\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tlineSep = \"\\r\";\n\t\t\tbreak;\n\t\t}\n\t\tjEdit.setProperty(\"buffer.lineSeparator\",lineSep);\n\t\tjEdit.setProperty(\"buffer.encoding\",(String)\n\t\t\tencoding.getSelectedItem());\n\t\tjEdit.setBooleanProperty(\"restore\",restore.isSelected());\n\t\tjEdit.setBooleanProperty(\"restore.cli\",restoreCLI.isSelected());\n\t\tjEdit.setBooleanProperty(\"client.newView\",newView.isSelected());\n\t\tjEdit.setBooleanProperty(\"persistentMarkers\",\n\t\t\tpersistentMarkers.isSelected());\n\t\tjEdit.setBooleanProperty(\"twoStageSave\",twoStageSave.isSelected());\n\t\tjEdit.setBooleanProperty(\"backupEverySave\", backupEverySave.isSelected());\n\t\tjEdit.setBooleanProperty(\"stripTrailingEOL\", stripTrailingEOL.isSelected());\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate JTextField autosave;\n\tprivate JTextField backups;\n\tprivate JTextField backupDirectory;\n\tprivate JTextField backupPrefix;\n\tprivate JTextField backupSuffix;\n\tprivate JComboBox lineSeparator;\n\tprivate JComboBox encoding;\n\tprivate JCheckBox restore;\n\tprivate JCheckBox restoreCLI;\n\tprivate JCheckBox newView;\n\tprivate JCheckBox persistentMarkers;\n\tprivate JCheckBox twoStageSave;\n\tprivate JCheckBox backupEverySave;\n\tprivate JCheckBox stripTrailingEOL;", "functions": [{"function_name": "_init", "code": "\tpublic void _init()\n\t{\n\t\t/* Autosave interval */\n\t\tautosave = new JTextField(jEdit.getProperty(\"autosave\"));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.autosave\"),autosave);\n\n\t\t/* Backup count */\n\t\tbackups = new JTextField(jEdit.getProperty(\"backups\"));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.backups\"),backups);\n\n\t\t/* Backup directory */\n\t\tbackupDirectory = new JTextField(jEdit.getProperty(\n\t\t\t\"backup.directory\"));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.backupDirectory\"),\n\t\t\tbackupDirectory);\n\n\t\t/* Backup filename prefix */\n\t\tbackupPrefix = new JTextField(jEdit.getProperty(\"backup.prefix\"));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.backupPrefix\"),\n\t\t\tbackupPrefix);\n\n\t\t/* Backup suffix */\n\t\tbackupSuffix = new JTextField(jEdit.getProperty(\n\t\t\t\"backup.suffix\"));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.backupSuffix\"),\n\t\t\tbackupSuffix);\n\n\t\t/* Line separator */\n\t\tString[] lineSeps = { jEdit.getProperty(\"lineSep.unix\"),\n\t\t\tjEdit.getProperty(\"lineSep.windows\"),\n\t\t\tjEdit.getProperty(\"lineSep.mac\") };\n\t\tlineSeparator = new JComboBox(lineSeps);\n\t\tString lineSep = jEdit.getProperty(\"buffer.lineSeparator\",\n\t\t\tSystem.getProperty(\"line.separator\"));\n\t\tif(\"\\n\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(0);\n\t\telse if(\"\\r\\n\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(1);\n\t\telse if(\"\\r\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(2);\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.lineSeparator\"),\n\t\t\tlineSeparator);\n\n\t\t/* Default file encoding */\n\t\tDefaultComboBoxModel encodings = new DefaultComboBoxModel();\n\t\tStringTokenizer st = new StringTokenizer(jEdit.getProperty(\"encodings\"));\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tencodings.addElement(st.nextToken());\n\t\t}\n\n\t\tencoding = new JComboBox(encodings);\n\t\tencoding.setEditable(true);\n\t\tencoding.setSelectedItem(jEdit.getProperty(\"buffer.encoding\",\n\t\t\tSystem.getProperty(\"file.encoding\")));\n\t\taddComponent(jEdit.getProperty(\"options.loadsave.encoding\"),encoding);\n\n\t\t/* Session management */\n\t\trestore = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.restore\"));\n\t\trestore.setSelected(jEdit.getBooleanProperty(\"restore\"));\n\t\trestore.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\trestoreCLI.setEnabled(restore.isSelected());\n\t\t\t}\n\t\t});\n\n\t\taddComponent(restore);\n\t\trestoreCLI = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.restore.cli\"));\n\t\trestoreCLI.setSelected(jEdit.getBooleanProperty(\"restore.cli\"));\n\t\trestoreCLI.setEnabled(restore.isSelected());\n\t\taddComponent(restoreCLI);\n\n\t\t/* Clients open files in new view */\n\t\tnewView = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.newView\"));\n\t\tnewView.setSelected(jEdit.getBooleanProperty(\"client.newView\"));\n\t\taddComponent(newView);\n\n\t\t/* Persistent markers */\n\t\tpersistentMarkers = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.persistentMarkers\"));\n\t\tpersistentMarkers.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"persistentMarkers\"));\n\t\taddComponent(persistentMarkers);\n\n\t\t/* Two-stage save */\n\t\ttwoStageSave = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.twoStageSave\"));\n\t\ttwoStageSave.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"twoStageSave\"));\n\t\taddComponent(twoStageSave);\n\n\t\t/* Backup on every save */\n\t\tbackupEverySave = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.backupEverySave\"));\n\t\tbackupEverySave.setSelected(jEdit.getBooleanProperty(\"backupEverySave\"));\n\t\taddComponent(backupEverySave);\n\n\t\t/* Backup on every save */\n\t\tstripTrailingEOL = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.loadsave.stripTrailingEOL\"));\n\t\tstripTrailingEOL.setSelected(jEdit.getBooleanProperty(\"stripTrailingEOL\"));\n\t\taddComponent(stripTrailingEOL);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [1, 34], [0, 35], [4, 36], [4, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [8, 49], [9, 50], [11, 51], [12, 52], [14, 53], [15, 54], [17, 55], [18, 56], [20, 57], [21, 58], [23, 59], [24, 60], [25, 61], [27, 62], [28, 63], [29, 64], [30, 65], [31, 66], [32, 67], [33, 68], [2, 69], [3, 70], [35, 71], [36, 72], [36, 73], [4, 74], [37, 75], [5, 76], [38, 77], [39, 78], [40, 79], [41, 80], [42, 81], [43, 82], [44, 83], [45, 84], [46, 85], [47, 86], [48, 87], [49, 88], [50, 89], [51, 90], [52, 91], [53, 92], [54, 93], [55, 94], [56, 95], [57, 96], [58, 97], [60, 98], [61, 99], [62, 100], [63, 101], [64, 102], [65, 103], [66, 104], [66, 105], [1, 106], [69, 107], [71, 108], [72, 109], [36, 110], [73, 111], [74, 112], [76, 113], [76, 114], [6, 115], [6, 116], [6, 117], [78, 118], [79, 119], [80, 120], [81, 121], [82, 122], [83, 123], [84, 124], [85, 125], [86, 126], [87, 127], [89, 128], [91, 129], [93, 130], [95, 131], [97, 132], [99, 133], [100, 134], [102, 135], [104, 136], [106, 137], [107, 138], [72, 139], [109, 140], [110, 141], [113, 142], [115, 143], [116, 144], [117, 145], [119, 146], [121, 147], [123, 148], [125, 149], [127, 150], [100, 151], [139, 152], [151, 153], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 1], [35, 0], [36, 4], [37, 4], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 8], [50, 9], [51, 11], [52, 12], [53, 14], [54, 15], [55, 17], [56, 18], [57, 20], [58, 21], [59, 23], [60, 24], [61, 25], [62, 27], [63, 28], [64, 29], [65, 30], [66, 31], [67, 32], [68, 33], [69, 2], [70, 3], [71, 35], [72, 36], [73, 36], [74, 4], [75, 37], [76, 5], [77, 38], [78, 39], [79, 40], [80, 41], [81, 42], [82, 43], [83, 44], [84, 45], [85, 46], [86, 47], [87, 48], [88, 49], [89, 50], [90, 51], [91, 52], [92, 53], [93, 54], [94, 55], [95, 56], [96, 57], [97, 58], [98, 60], [99, 61], [100, 62], [101, 63], [102, 64], [103, 65], [104, 66], [105, 66], [106, 1], [107, 69], [108, 71], [109, 72], [110, 36], [111, 73], [112, 74], [113, 76], [114, 76], [115, 6], [116, 6], [117, 6], [118, 78], [119, 79], [120, 80], [121, 81], [122, 82], [123, 83], [124, 84], [125, 85], [126, 86], [127, 87], [128, 89], [129, 91], [130, 93], [131, 95], [132, 97], [133, 99], [134, 100], [135, 102], [136, 104], [137, 106], [138, 107], [139, 72], [140, 109], [141, 110], [142, 113], [143, 115], [144, 116], [145, 117], [146, 119], [147, 121], [148, 123], [149, 125], [150, 127], [151, 100], [152, 139], [153, 151], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153]]}, {"function_name": "_save", "code": "\tpublic void _save()\n\t{\n\t\tjEdit.setProperty(\"autosave\",autosave.getText());\n\t\tjEdit.setProperty(\"backups\",backups.getText());\n\t\tjEdit.setProperty(\"backup.directory\",backupDirectory.getText());\n\t\tjEdit.setProperty(\"backup.prefix\",backupPrefix.getText());\n\t\tjEdit.setProperty(\"backup.suffix\",backupSuffix.getText());\n\t\tString lineSep = null;\n\t\tswitch(lineSeparator.getSelectedIndex())\n\t\t{\n\t\tcase 0:\n\t\t\tlineSep = \"\\n\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tlineSep = \"\\r\\n\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tlineSep = \"\\r\";\n\t\t\tbreak;\n\t\t}\n\t\tjEdit.setProperty(\"buffer.lineSeparator\",lineSep);\n\t\tjEdit.setProperty(\"buffer.encoding\",(String)\n\t\t\tencoding.getSelectedItem());\n\t\tjEdit.setBooleanProperty(\"restore\",restore.isSelected());\n\t\tjEdit.setBooleanProperty(\"restore.cli\",restoreCLI.isSelected());\n\t\tjEdit.setBooleanProperty(\"client.newView\",newView.isSelected());\n\t\tjEdit.setBooleanProperty(\"persistentMarkers\",\n\t\t\tpersistentMarkers.isSelected());\n\t\tjEdit.setBooleanProperty(\"twoStageSave\",twoStageSave.isSelected());\n\t\tjEdit.setBooleanProperty(\"backupEverySave\", backupEverySave.isSelected());\n\t\tjEdit.setBooleanProperty(\"stripTrailingEOL\", stripTrailingEOL.isSelected());", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [3, 18], [3, 19], [4, 20], [4, 21], [5, 22], [5, 23], [6, 24], [6, 25], [7, 26], [7, 27], [8, 28], [8, 29], [9, 30], [9, 31], [10, 32], [11, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [2, 40], [13, 41], [13, 42], [14, 43], [14, 44], [15, 45], [15, 46], [16, 47], [16, 48], [17, 49], [17, 50], [10, 51], [1, 52], [1, 53], [1, 54], [52, 55], [53, 56], [54, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 3], [19, 3], [20, 4], [21, 4], [22, 5], [23, 5], [24, 6], [25, 6], [26, 7], [27, 7], [28, 8], [29, 8], [30, 9], [31, 9], [32, 10], [33, 11], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 2], [41, 13], [42, 13], [43, 14], [44, 14], [45, 15], [46, 15], [47, 16], [48, 16], [49, 17], [50, 17], [51, 10], [52, 1], [53, 1], [54, 1], [55, 52], [56, 53], [57, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "LoadSaveOptionPane", "code": "\tpublic LoadSaveOptionPane()\n\t{\n\t\tsuper(\"loadsave\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.0-1371", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/xmpp/XmppComponent.java", "language": "java", "name": "org.apache.camel.component.xmpp.XmppComponent", "code": "public class XmppComponent extends DefaultComponent<XmppExchange> {\n    /**\n     * Static builder method\n     */\n    public static XmppComponent xmppComponent() {\n        return new XmppComponent();\n    }\n\n    public XmppComponent() {\n    }\n\n    public XmppComponent(CamelContext context) {\n        super(context);\n    }\n\n    @Override\n    protected Endpoint<XmppExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        XmppEndpoint endpoint = new XmppEndpoint(uri, this);\n\n        URI u = new URI(uri);\n        endpoint.setHost(u.getHost());\n        endpoint.setPort(u.getPort());\n        if (u.getUserInfo() != null) {\n            endpoint.setUser(u.getUserInfo());\n        }\n        String remainingPath = u.getPath();\n        if (remainingPath != null) {\n            if (remainingPath.startsWith(\"/\")) {\n                remainingPath = remainingPath.substring(1);\n            }\n\n            if (remainingPath.length() > 0) {\n                endpoint.setParticipant(remainingPath);\n            }\n        }\n        return endpoint;", "functions": [{"function_name": "xmppComponent", "code": "    public static XmppComponent xmppComponent() {\n        return new XmppComponent();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createEndpoint", "code": "    @Override\n    protected Endpoint<XmppExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        XmppEndpoint endpoint = new XmppEndpoint(uri, this);\n\n        URI u = new URI(uri);\n        endpoint.setHost(u.getHost());\n        endpoint.setPort(u.getPort());\n        if (u.getUserInfo() != null) {\n            endpoint.setUser(u.getUserInfo());\n        }\n        String remainingPath = u.getPath();\n        if (remainingPath != null) {\n            if (remainingPath.startsWith(\"/\")) {\n                remainingPath = remainingPath.substring(1);\n            }\n\n            if (remainingPath.length() > 0) {\n                endpoint.setParticipant(remainingPath);\n            }\n        }\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [4, 11], [0, 12], [0, 13], [2, 14], [2, 15], [10, 16], [3, 17], [11, 18], [11, 19], [12, 20], [13, 21], [5, 22], [6, 23], [14, 24], [15, 25], [4, 26], [24, 27], [24, 28], [25, 29], [26, 30], [14, 31], [15, 32], [32, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 4], [12, 0], [13, 0], [14, 2], [15, 2], [16, 10], [17, 3], [18, 11], [19, 11], [20, 12], [21, 13], [22, 5], [23, 6], [24, 14], [25, 15], [26, 4], [27, 24], [28, 24], [29, 25], [30, 26], [31, 14], [32, 15], [33, 32], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "XmppComponent", "code": "    public XmppComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "XmppComponent", "code": "    public XmppComponent(CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.3-4603", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/LHS.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.LHS", "code": "class LHS implements ParserConstants, java.io.Serializable\n{\n\tNameSpace nameSpace;\n\t/** The assignment should be to a local variable */\n\tboolean localVar;\n\n\t/**\n\t\tIdentifiers for the various types of LHS.\n\t*/\n\tstatic final int\n\t\tVARIABLE = 0,\n\t\tFIELD = 1,\n\t\tPROPERTY = 2,\n\t\tINDEX = 3,\n\t\tMETHOD_EVAL = 4;\n\n\tint type;\n\n\tString varName;\n\tString propName;\n\tField field;\n\tObject object;\n\tint index;\n\n/**\n\t\tVariable LHS constructor.\n*/\n\tLHS( NameSpace nameSpace, String varName )\n\t{\nthrow new Error(\"namespace lhs\");\n/*\n\t\ttype = VARIABLE;\n\t\tthis.varName = varName;\n\t\tthis.nameSpace = nameSpace;\n*/\n\t}\n\n\t/**\n\t\t@param localVar if true the variable is set directly in the This\n\t\treference's local scope.  If false recursion to look for the variable\n\t\tdefinition in parent's scope is allowed. (e.g. the default case for\n\t\tundefined vars going to global).\n\t*/\n\tLHS( NameSpace nameSpace, String varName, boolean localVar )\n\t{\n\t\ttype = VARIABLE;\n\t\tthis.localVar = localVar;\n\t\tthis.varName = varName;\n\t\tthis.nameSpace = nameSpace;\n\t}\n\n\t/**\n\t\tStatic field LHS Constructor.\n\t\tThis simply calls Object field constructor with null object.\n\t*/\n\tLHS( Field field )\n\t{\n\t\ttype = FIELD;\n\t\tthis.object = null;\n\t\tthis.field = field;\n\t}\n\n\t/**\n\t\tObject field LHS Constructor.\n\t*/\n\tLHS( Object object, Field field )\n\t{\n\t\tif ( object == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = FIELD;\n\t\tthis.object = object;\n\t\tthis.field = field;\n\t}\n\n\t/**\n\t\tObject property LHS Constructor.\n\t*/\n\tLHS( Object object, String propName )\n\t{\n\t\tif(object == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = PROPERTY;\n\t\tthis.object = object;\n\t\tthis.propName = propName;\n\t}\n\n\t/**\n\t\tArray index LHS Constructor.\n\t*/\n\tLHS( Object array, int index )\n\t{\n\t\tif(array == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = INDEX;\n\t\tthis.object = array;\n\t\tthis.index = index;\n\t}\n\n\tpublic Object getValue() throws UtilEvalError\n\t{\n\t\tif ( type == VARIABLE )\n\t\t\treturn nameSpace.getVariable( varName );\n\n\t\tif (type == FIELD)\n\t\t\ttry {\n\t\t\t\tObject o = field.get( object );\n\t\t\t\treturn Primitive.wrap( o, field.getType() );\n\t\t\t} catch(IllegalAccessException e2) {\n\t\t\t\tthrow new UtilEvalError(\"Can't read field: \" + field);\n\t\t\t}\n\n\t\tif ( type == PROPERTY )\n\t\t\ttry {\n\t\t\t\treturn Reflect.getObjectProperty(object, propName);\n\t\t\t}\n\t\t\tcatch(ReflectError e) {\n\t\t\t\tInterpreter.debug(e.getMessage());\n\t\t\t\tthrow new UtilEvalError(\"No such property: \" + propName);\n\t\t\t}\n\n\t\tif ( type == INDEX )\n\t\t\ttry {\n\t\t\t\treturn Reflect.getIndex(object, index);\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\tthrow new UtilEvalError(\"Array access: \" + e);\n\t\t\t}\n\n\t\tthrow new InterpreterError(\"LHS type\");\n\t}\n\n\t/**\n\t\tAssign a value to the LHS.\n\t*/\n\tpublic Object assign( Object val, boolean strictJava ) \n\t\tthrows UtilEvalError\n\t{\n\t\tif ( type == VARIABLE )\n\t\t{\n\t\t\t// Set the variable in namespace according to localVar flag\n\t\t\tif ( localVar )\n\t\t\t\tnameSpace.setLocalVariable( varName, val, strictJava );\n\t\t\telse\n\t\t\t\tnameSpace.setVariable( varName, val, strictJava );\n\t\t} else \n\t\tif ( type == FIELD )\n\t\t{\n\t\t\ttry {\n\t\t\t\tObject fieldVal = val instanceof Primitive ?  \n\t\t\t\t\t((Primitive)val).getValue() : val;\n\n\t\t\t\t// This should probably be in Reflect.java\n\t\t\t\tReflectManager.RMSetAccessible( field );\n\t\t\t\tfield.set( object, fieldVal );\n\t\t\t\treturn val;\n\t\t\t}\n\t\t\tcatch( NullPointerException e) {   \n    \t\t\tthrow new UtilEvalError(\n\t\t\t\t\t\"LHS (\"+field.getName()+\") not a static field.\");\n\t\t\t}     \n   \t\t\tcatch( IllegalAccessException e2) {   \n\t\t\t\tthrow new UtilEvalError(\n\t\t\t\t\t\"LHS (\"+field.getName()+\") can't access field: \"+e2);\n\t\t\t}     \n\t\t\tcatch( IllegalArgumentException e3) \n\t\t\t{\n\t\t\t\tString type = val instanceof Primitive ?\n\t\t\t\t\t((Primitive)val).getType().getName()\n\t\t\t\t\t: val.getClass().getName();\n\t\t\t\tthrow new UtilEvalError(\n\t\t\t\t\t\"Argument type mismatch. \" + (val == null ? \"null\" : type )\n\t\t\t\t\t+ \" not assignable to field \"+field.getName());\n\t\t\t}\n\t\t}\n\t\telse \n\t\tif ( type == PROPERTY )\n\t\t{\n\t\t\t/*\n\t\t\tif ( object instanceof Hashtable )\n\t\t\t\t((Hashtable)object).put(propName, val);\n\t\t\t*/\n\t\t\tCollectionManager cm = CollectionManager.getCollectionManager();\n\t\t\tif ( cm.isMap( object ) )\n\t\t\t\tcm.putInMap( object/*map*/, propName, val );\n\t\t\telse\n\t\t\t\ttry {\n\t\t\t\t\tReflect.setObjectProperty(object, propName, val);\n\t\t\t\t}\n\t\t\t\tcatch(ReflectError e) {\n\t\t\t\t\tInterpreter.debug(\"Assignment: \" + e.getMessage());\n\t\t\t\t\tthrow new UtilEvalError(\"No such property: \" + propName);\n\t\t\t\t}\n\t\t} else \n\t\tif ( type == INDEX )\n\t\t\ttry {\n\t\t\t\tReflect.setIndex(object, index, val);\n\t\t\t} catch ( UtilTargetError e1 ) { // pass along target error\n\t\t\t\tthrow e1;\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tthrow new UtilEvalError(\"Assignment: \" + e.getMessage());\n\t\t\t}\n\t\telse\n\t\t\tthrow new InterpreterError(\"unknown lhs\");\n\n\t\treturn val;\n\t}\n\n\tpublic String toString() { \n\t\treturn \"LHS: \"\n\t\t\t+((field!=null)? \"field = \"+field.toString():\"\")\n\t\t\t+(varName!=null ? \" varName = \"+varName: \"\")\n\t\t\t+(nameSpace!=null ? \" nameSpace = \"+nameSpace.toString(): \"\");", "functions": [{"function_name": "getValue", "code": "\tpublic Object getValue() throws UtilEvalError\n\t{\n\t\tif ( type == VARIABLE )\n\t\t\treturn nameSpace.getVariable( varName );\n\n\t\tif (type == FIELD)\n\t\t\ttry {\n\t\t\t\tObject o = field.get( object );\n\t\t\t\treturn Primitive.wrap( o, field.getType() );\n\t\t\t} catch(IllegalAccessException e2) {\n\t\t\t\tthrow new UtilEvalError(\"Can't read field: \" + field);\n\t\t\t}\n\n\t\tif ( type == PROPERTY )\n\t\t\ttry {\n\t\t\t\treturn Reflect.getObjectProperty(object, propName);\n\t\t\t}\n\t\t\tcatch(ReflectError e) {\n\t\t\t\tInterpreter.debug(e.getMessage());\n\t\t\t\tthrow new UtilEvalError(\"No such property: \" + propName);\n\t\t\t}\n\n\t\tif ( type == INDEX )\n\t\t\ttry {\n\t\t\t\treturn Reflect.getIndex(object, index);\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\tthrow new UtilEvalError(\"Array access: \" + e);\n\t\t\t}\n\n\t\tthrow new InterpreterError(\"LHS type\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "IF", "IF", "CALL", "TRY", "BINARY_OP", "TRY", "BINARY_OP", "TRY", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "RETURN", "CATCH", "RETURN", "CATCH", "RETURN", "VAR_DECL", "CALL", "THROW_RAISE", "CALL", "THROW_RAISE", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [6, 15], [7, 16], [7, 17], [9, 18], [9, 19], [11, 20], [11, 21], [11, 22], [13, 23], [16, 24], [17, 25], [18, 26], [19, 27], [20, 28], [21, 29], [24, 30], [26, 31], [18, 32], [28, 33], [29, 34], [22, 35], [30, 36], [31, 37], [32, 38], [33, 39], [36, 40], [37, 41], [39, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 6], [16, 7], [17, 7], [18, 9], [19, 9], [20, 11], [21, 11], [22, 11], [23, 13], [24, 16], [25, 17], [26, 18], [27, 19], [28, 20], [29, 21], [30, 24], [31, 26], [32, 18], [33, 28], [34, 29], [35, 22], [36, 30], [37, 31], [38, 32], [39, 33], [40, 36], [41, 37], [42, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "assign", "code": "\tpublic Object assign( Object val, boolean strictJava ) \n\t\tthrows UtilEvalError\n\t{\n\t\tif ( type == VARIABLE )\n\t\t{\n\t\t\t// Set the variable in namespace according to localVar flag\n\t\t\tif ( localVar )\n\t\t\t\tnameSpace.setLocalVariable( varName, val, strictJava );\n\t\t\telse\n\t\t\t\tnameSpace.setVariable( varName, val, strictJava );\n\t\t} else \n\t\tif ( type == FIELD )\n\t\t{\n\t\t\ttry {\n\t\t\t\tObject fieldVal = val instanceof Primitive ?  \n\t\t\t\t\t((Primitive)val).getValue() : val;\n\n\t\t\t\t// This should probably be in Reflect.java\n\t\t\t\tReflectManager.RMSetAccessible( field );\n\t\t\t\tfield.set( object, fieldVal );\n\t\t\t\treturn val;\n\t\t\t}\n\t\t\tcatch( NullPointerException e) {   \n    \t\t\tthrow new UtilEvalError(\n\t\t\t\t\t\"LHS (\"+field.getName()+\") not a static field.\");\n\t\t\t}     \n   \t\t\tcatch( IllegalAccessException e2) {   \n\t\t\t\tthrow new UtilEvalError(\n\t\t\t\t\t\"LHS (\"+field.getName()+\") can't access field: \"+e2);\n\t\t\t}     \n\t\t\tcatch( IllegalArgumentException e3) \n\t\t\t{\n\t\t\t\tString type = val instanceof Primitive ?\n\t\t\t\t\t((Primitive)val).getType().getName()\n\t\t\t\t\t: val.getClass().getName();\n\t\t\t\tthrow new UtilEvalError(\n\t\t\t\t\t\"Argument type mismatch. \" + (val == null ? \"null\" : type )\n\t\t\t\t\t+ \" not assignable to field \"+field.getName());\n\t\t\t}\n\t\t}\n\t\telse \n\t\tif ( type == PROPERTY )\n\t\t{\n\t\t\t/*\n\t\t\tif ( object instanceof Hashtable )\n\t\t\t\t((Hashtable)object).put(propName, val);\n\t\t\t*/\n\t\t\tCollectionManager cm = CollectionManager.getCollectionManager();\n\t\t\tif ( cm.isMap( object ) )\n\t\t\t\tcm.putInMap( object/*map*/, propName, val );\n\t\t\telse\n\t\t\t\ttry {\n\t\t\t\t\tReflect.setObjectProperty(object, propName, val);\n\t\t\t\t}\n\t\t\t\tcatch(ReflectError e) {\n\t\t\t\t\tInterpreter.debug(\"Assignment: \" + e.getMessage());\n\t\t\t\t\tthrow new UtilEvalError(\"No such property: \" + propName);\n\t\t\t\t}\n\t\t} else \n\t\tif ( type == INDEX )\n\t\t\ttry {\n\t\t\t\tReflect.setIndex(object, index, val);\n\t\t\t} catch ( UtilTargetError e1 ) { // pass along target error\n\t\t\t\tthrow e1;\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tthrow new UtilEvalError(\"Assignment: \" + e.getMessage());\n\t\t\t}\n\t\telse\n\t\t\tthrow new InterpreterError(\"unknown lhs\");\n\n\t\treturn val;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "TRY", "THROW_RAISE", "TRY", "BINARY_OP", "IF", "VAR_DECL", "CATCH", "CATCH", "CATCH", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CATCH", "CATCH", "TRY", "CALL", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "CALL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [2, 9], [7, 10], [7, 11], [5, 12], [10, 13], [10, 14], [10, 15], [7, 16], [7, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [9, 23], [9, 24], [13, 25], [14, 26], [14, 27], [16, 28], [16, 29], [18, 30], [18, 31], [19, 32], [20, 33], [12, 34], [12, 35], [25, 36], [26, 37], [27, 38], [14, 39], [28, 40], [16, 41], [17, 42], [30, 43], [32, 44], [33, 45], [22, 46], [37, 47], [40, 48], [28, 49], [43, 50], [31, 51], [44, 52], [45, 53], [46, 54], [47, 55], [48, 56], [40, 57], [50, 58], [50, 59], [51, 60], [51, 61], [52, 62], [53, 63], [53, 64], [55, 65], [55, 66], [56, 67], [57, 68], [59, 69], [59, 70], [60, 71], [62, 72], [62, 73], [64, 74], [64, 75], [67, 76], [68, 77], [68, 78], [70, 79], [70, 80], [73, 81], [73, 82], [79, 83], [79, 84], [84, 85], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 2], [10, 7], [11, 7], [12, 5], [13, 10], [14, 10], [15, 10], [16, 7], [17, 7], [18, 12], [19, 12], [20, 12], [21, 12], [22, 12], [23, 9], [24, 9], [25, 13], [26, 14], [27, 14], [28, 16], [29, 16], [30, 18], [31, 18], [32, 19], [33, 20], [34, 12], [35, 12], [36, 25], [37, 26], [38, 27], [39, 14], [40, 28], [41, 16], [42, 17], [43, 30], [44, 32], [45, 33], [46, 22], [47, 37], [48, 40], [49, 28], [50, 43], [51, 31], [52, 44], [53, 45], [54, 46], [55, 47], [56, 48], [57, 40], [58, 50], [59, 50], [60, 51], [61, 51], [62, 52], [63, 53], [64, 53], [65, 55], [66, 55], [67, 56], [68, 57], [69, 59], [70, 59], [71, 60], [72, 62], [73, 62], [74, 64], [75, 64], [76, 67], [77, 68], [78, 68], [79, 70], [80, 70], [81, 73], [82, 73], [83, 79], [84, 79], [85, 84], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "toString", "code": "\tpublic String toString() { \n\t\treturn \"LHS: \"\n\t\t\t+((field!=null)? \"field = \"+field.toString():\"\")\n\t\t\t+(varName!=null ? \" varName = \"+varName: \"\")\n\t\t\t+(nameSpace!=null ? \" nameSpace = \"+nameSpace.toString(): \"\");", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [3, 7], [4, 8], [4, 9], [6, 10], [6, 11], [7, 12], [8, 13], [8, 14], [8, 15], [9, 16], [9, 17], [14, 18], [15, 19], [16, 20], [16, 21], [16, 22], [21, 23], [21, 24], [22, 25], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 3], [8, 4], [9, 4], [10, 6], [11, 6], [12, 7], [13, 8], [14, 8], [15, 8], [16, 9], [17, 9], [18, 14], [19, 15], [20, 16], [21, 16], [22, 16], [23, 21], [24, 21], [25, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "LHS", "code": "\tLHS( NameSpace nameSpace, String varName )\n\t{\nthrow new Error(\"namespace lhs\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "LHS", "code": "\tLHS( NameSpace nameSpace, String varName, boolean localVar )\n\t{\n\t\ttype = VARIABLE;\n\t\tthis.localVar = localVar;\n\t\tthis.varName = varName;\n\t\tthis.nameSpace = nameSpace;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "LHS", "code": "\tLHS( Field field )\n\t{\n\t\ttype = FIELD;\n\t\tthis.object = null;\n\t\tthis.field = field;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "LHS", "code": "\tLHS( Object object, Field field )\n\t{\n\t\tif ( object == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = FIELD;\n\t\tthis.object = object;\n\t\tthis.field = field;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "LHS", "code": "\tLHS( Object object, String propName )\n\t{\n\t\tif(object == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = PROPERTY;\n\t\tthis.object = object;\n\t\tthis.propName = propName;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "LHS", "code": "\tLHS( Object array, int index )\n\t{\n\t\tif(array == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = INDEX;\n\t\tthis.object = array;\n\t\tthis.index = index;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "jedit-4.0-3880", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/search/CurrentBufferSet.java", "language": "java", "name": "org.gjt.sp.jedit.search.CurrentBufferSet", "code": "public class CurrentBufferSet implements SearchFileSet\n{\n\t//{{{ getFirstFile() method\n\tpublic String getFirstFile(View view)\n\t{\n\t\treturn view.getBuffer().getPath();\n\t} //}}}\n\n\t//{{{ getNextFile() method\n\tpublic String getNextFile(View view, String file)\n\t{\n\t\tif(file == null)\n\t\t\treturn view.getBuffer().getPath();\n\t\telse\n\t\t\treturn null;\n\t} //}}}\n\n\t//{{{ getFiles() method\n\tpublic String[] getFiles(View view)\n\t{\n\t\treturn new String[] { view.getBuffer().getPath() };\n\t} //}}}\n\n\t//{{{ getFileCount() method\n\tpublic int getFileCount()\n\t{\n\t\treturn 1;\n\t} //}}}\n\n\t//{{{ getCode() method\n\tpublic String getCode()\n\t{\n\t\treturn \"new CurrentBufferSet()\";", "functions": [{"function_name": "getFirstFile", "code": "\tpublic String getFirstFile(View view)\n\t{\n\t\treturn view.getBuffer().getPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNextFile", "code": "\tpublic String getNextFile(View view, String file)\n\t{\n\t\tif(file == null)\n\t\t\treturn view.getBuffer().getPath();\n\t\telse\n\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getFiles", "code": "\tpublic String[] getFiles(View view)\n\t{\n\t\treturn new String[] { view.getBuffer().getPath() };", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFileCount", "code": "\tpublic int getFileCount()\n\t{\n\t\treturn 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCode", "code": "\tpublic String getCode()\n\t{\n\t\treturn \"new CurrentBufferSet()\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-1.5-5206", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hpsf/wellknown/PropertyIDMap.java", "language": "java", "name": "org.apache.poi.hpsf.wellknown.PropertyIDMap", "code": "public class PropertyIDMap extends HashMap\n{\n\n    /* The following definitions are for the Summary Information. */\n    public static final int PID_TITLE = 2;\n    public static final int PID_SUBJECT = 3;\n    public static final int PID_AUTHOR = 4;\n    public static final int PID_KEYWORDS = 5;\n    public static final int PID_COMMENTS = 6;\n    public static final int PID_TEMPLATE = 7;\n    public static final int PID_LASTAUTHOR = 8;\n    public static final int PID_REVNUMBER = 9;\n    public static final int PID_EDITTIME = 10;\n    public static final int PID_LASTPRINTED = 11;\n    public static final int PID_CREATE_DTM = 12;\n    public static final int PID_LASTSAVE_DTM = 13;\n    public static final int PID_PAGECOUNT = 14;\n    public static final int PID_WORDCOUNT = 15;\n    public static final int PID_CHARCOUNT = 16;\n    public static final int PID_THUMBNAIL = 17;\n    public static final int PID_APPNAME = 18;\n    public static final int PID_SECURITY = 19;\n\n    /* The following definitions are for the Document Summary Information. */\n    public static final int PID_CATEGORY = 2;\n    public static final int PID_PRESFORMAT = 3;\n    public static final int PID_BYTECOUNT = 4;\n    public static final int PID_LINECOUNT = 5;\n    public static final int PID_PARCOUNT = 6;\n    public static final int PID_SLIDECOUNT = 7;\n    public static final int PID_NOTECOUNT = 8;\n    public static final int PID_HIDDENCOUNT = 9;\n    public static final int PID_MMCLIPCOUNT = 10;\n    public static final int PID_SCALE = 11;\n    public static final int PID_HEADINGPAIR = 12;\n    public static final int PID_DOCPARTS = 13;\n    public static final int PID_MANAGER = 14;\n    public static final int PID_COMPANY = 15;\n    public static final int PID_LINKSDIRTY = 16;\n\n    private static PropertyIDMap summaryInformationProperties;\n    private static PropertyIDMap documentSummaryInformationProperties;\n\n\n\n    public PropertyIDMap(int initialCapacity, float loadFactor)\n    {\n\tsuper(initialCapacity, loadFactor);\n    }\n\n\n\n    /**\n     * <p>Puts a ID string for an ID into the {@link\n     * PropertyIDMap}.</p>\n     *\n     * @param id The ID.\n     *\n     * @param idString The ID string.\n     */\n    public Object put(int id, String idString)\n    {\n\treturn put(new Integer(id), idString);\n    }\n\n\n\n    /**\n     * <p>Gets the ID string for an ID from the {@link\n     * PropertyIDMap}.</p>\n     *\n     * @param id The ID.\n     */\n    public Object get(int id)\n    {\n\treturn get(new Integer(id));\n    }\n\n\n\n    /**\n     * <p>Returns the Summary Information properties singleton.</p>\n     */\n    public static PropertyIDMap getSummaryInformationProperties()\n    {\n\tif (summaryInformationProperties == null)\n\t{\n\t    PropertyIDMap m = new PropertyIDMap(17, (float) 1.0);\n\t    m.put(PID_TITLE, \"PID_TITLE\");\n\t    m.put(PID_SUBJECT, \"PID_SUBJECT\");\n\t    m.put(PID_AUTHOR, \"PID_AUTHOR\");\n\t    m.put(PID_KEYWORDS, \"PID_KEYWORDS\");\n\t    m.put(PID_COMMENTS, \"PID_COMMENTS\");\n\t    m.put(PID_TEMPLATE, \"PID_TEMPLATE\");\n\t    m.put(PID_LASTAUTHOR, \"PID_LASTAUTHOR\");\n\t    m.put(PID_REVNUMBER, \"PID_REVNUMBER\");\n\t    m.put(PID_EDITTIME, \"PID_EDITTIME\");\n\t    m.put(PID_LASTPRINTED, \"PID_LASTPRINTED\");\n\t    m.put(PID_CREATE_DTM, \"PID_CREATE_DTM\");\n\t    m.put(PID_LASTSAVE_DTM, \"PID_LASTSAVE_DTM\");\n\t    m.put(PID_PAGECOUNT, \"PID_PAGECOUNT\");\n\t    m.put(PID_WORDCOUNT, \"PID_WORDCOUNT\");\n\t    m.put(PID_CHARCOUNT, \"PID_CHARCOUNT\");\n\t    m.put(PID_THUMBNAIL, \"PID_THUMBNAIL\");\n\t    m.put(PID_APPNAME, \"PID_APPNAME\");\n\t    m.put(PID_SECURITY, \"PID_SECURITY\");\n\t    summaryInformationProperties = m;\n\t}\n\treturn summaryInformationProperties;\n    }\n\n\n\n    /**\n     * <p>Returns the Summary Information properties singleton.</p>\n     */\n    public static PropertyIDMap getDocumentSummaryInformationProperties()\n    {\n\tif (documentSummaryInformationProperties == null)\n\t{\n\t    PropertyIDMap m = new PropertyIDMap(17, (float) 1.0);\n\t    m.put(PID_CATEGORY, \"PID_CATEGORY\");\n\t    m.put(PID_PRESFORMAT, \"PID_PRESFORMAT\");\n\t    m.put(PID_BYTECOUNT, \"PID_BYTECOUNT\");\n\t    m.put(PID_LINECOUNT, \"PID_LINECOUNT\");\n\t    m.put(PID_PARCOUNT, \"PID_PARCOUNT\");\n\t    m.put(PID_SLIDECOUNT, \"PID_SLIDECOUNT\");\n\t    m.put(PID_NOTECOUNT, \"PID_NOTECOUNT\");\n\t    m.put(PID_HIDDENCOUNT, \"PID_HIDDENCOUNT\");\n\t    m.put(PID_MMCLIPCOUNT, \"PID_MMCLIPCOUNT\");\n\t    m.put(PID_SCALE, \"PID_SCALE\");\n\t    m.put(PID_HEADINGPAIR, \"PID_HEADINGPAIR\");\n\t    m.put(PID_DOCPARTS, \"PID_DOCPARTS\");\n\t    m.put(PID_MANAGER, \"PID_MANAGER\");\n\t    m.put(PID_COMPANY, \"PID_COMPANY\");\n\t    m.put(PID_LINKSDIRTY, \"PID_LINKSDIRTY\");\n\t    documentSummaryInformationProperties = m;\n\t}\n\treturn documentSummaryInformationProperties;\n\n    }\n\n\n\n    public static void main(String args[])\n    {\n\tPropertyIDMap s1 = getSummaryInformationProperties();\n\tPropertyIDMap s2 = getDocumentSummaryInformationProperties();\n\tSystem.out.println(\"s1: \" + s1);\n\tSystem.out.println(\"s2: \" + s2);", "functions": [{"function_name": "put", "code": "    public Object put(int id, String idString)\n    {\n\treturn put(new Integer(id), idString);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "get", "code": "    public Object get(int id)\n    {\n\treturn get(new Integer(id));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSummaryInformationProperties", "code": "    public static PropertyIDMap getSummaryInformationProperties()\n    {\n\tif (summaryInformationProperties == null)\n\t{\n\t    PropertyIDMap m = new PropertyIDMap(17, (float) 1.0);\n\t    m.put(PID_TITLE, \"PID_TITLE\");\n\t    m.put(PID_SUBJECT, \"PID_SUBJECT\");\n\t    m.put(PID_AUTHOR, \"PID_AUTHOR\");\n\t    m.put(PID_KEYWORDS, \"PID_KEYWORDS\");\n\t    m.put(PID_COMMENTS, \"PID_COMMENTS\");\n\t    m.put(PID_TEMPLATE, \"PID_TEMPLATE\");\n\t    m.put(PID_LASTAUTHOR, \"PID_LASTAUTHOR\");\n\t    m.put(PID_REVNUMBER, \"PID_REVNUMBER\");\n\t    m.put(PID_EDITTIME, \"PID_EDITTIME\");\n\t    m.put(PID_LASTPRINTED, \"PID_LASTPRINTED\");\n\t    m.put(PID_CREATE_DTM, \"PID_CREATE_DTM\");\n\t    m.put(PID_LASTSAVE_DTM, \"PID_LASTSAVE_DTM\");\n\t    m.put(PID_PAGECOUNT, \"PID_PAGECOUNT\");\n\t    m.put(PID_WORDCOUNT, \"PID_WORDCOUNT\");\n\t    m.put(PID_CHARCOUNT, \"PID_CHARCOUNT\");\n\t    m.put(PID_THUMBNAIL, \"PID_THUMBNAIL\");\n\t    m.put(PID_APPNAME, \"PID_APPNAME\");\n\t    m.put(PID_SECURITY, \"PID_SECURITY\");\n\t    summaryInformationProperties = m;\n\t}\n\treturn summaryInformationProperties;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [7, 25], [8, 26], [9, 27], [10, 28], [11, 29], [12, 30], [13, 31], [14, 32], [15, 33], [16, 34], [17, 35], [18, 36], [19, 37], [20, 38], [21, 39], [22, 40], [23, 41], [24, 42], [4, 43], [43, 44], [43, 45], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 7], [26, 8], [27, 9], [28, 10], [29, 11], [30, 12], [31, 13], [32, 14], [33, 15], [34, 16], [35, 17], [36, 18], [37, 19], [38, 20], [39, 21], [40, 22], [41, 23], [42, 24], [43, 4], [44, 43], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "getDocumentSummaryInformationProperties", "code": "    public static PropertyIDMap getDocumentSummaryInformationProperties()\n    {\n\tif (documentSummaryInformationProperties == null)\n\t{\n\t    PropertyIDMap m = new PropertyIDMap(17, (float) 1.0);\n\t    m.put(PID_CATEGORY, \"PID_CATEGORY\");\n\t    m.put(PID_PRESFORMAT, \"PID_PRESFORMAT\");\n\t    m.put(PID_BYTECOUNT, \"PID_BYTECOUNT\");\n\t    m.put(PID_LINECOUNT, \"PID_LINECOUNT\");\n\t    m.put(PID_PARCOUNT, \"PID_PARCOUNT\");\n\t    m.put(PID_SLIDECOUNT, \"PID_SLIDECOUNT\");\n\t    m.put(PID_NOTECOUNT, \"PID_NOTECOUNT\");\n\t    m.put(PID_HIDDENCOUNT, \"PID_HIDDENCOUNT\");\n\t    m.put(PID_MMCLIPCOUNT, \"PID_MMCLIPCOUNT\");\n\t    m.put(PID_SCALE, \"PID_SCALE\");\n\t    m.put(PID_HEADINGPAIR, \"PID_HEADINGPAIR\");\n\t    m.put(PID_DOCPARTS, \"PID_DOCPARTS\");\n\t    m.put(PID_MANAGER, \"PID_MANAGER\");\n\t    m.put(PID_COMPANY, \"PID_COMPANY\");\n\t    m.put(PID_LINKSDIRTY, \"PID_LINKSDIRTY\");\n\t    documentSummaryInformationProperties = m;\n\t}\n\treturn documentSummaryInformationProperties;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [7, 22], [8, 23], [9, 24], [10, 25], [11, 26], [12, 27], [13, 28], [14, 29], [15, 30], [16, 31], [17, 32], [18, 33], [19, 34], [20, 35], [21, 36], [4, 37], [37, 38], [37, 39], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 7], [23, 8], [24, 9], [25, 10], [26, 11], [27, 12], [28, 13], [29, 14], [30, 15], [31, 16], [32, 17], [33, 18], [34, 19], [35, 20], [36, 21], [37, 4], [38, 37], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "main", "code": "    public static void main(String args[])\n    {\n\tPropertyIDMap s1 = getSummaryInformationProperties();\n\tPropertyIDMap s2 = getDocumentSummaryInformationProperties();\n\tSystem.out.println(\"s1: \" + s1);\n\tSystem.out.println(\"s2: \" + s2);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [1, 8], [2, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 1], [9, 2], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "PropertyIDMap", "code": "    public PropertyIDMap(int initialCapacity, float loadFactor)\n    {\n\tsuper(initialCapacity, loadFactor);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-2.5-5761", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/PlotGrowthRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.PlotGrowthRecord", "code": "public class PlotGrowthRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1064;\n    private  int        field_1_horizontalScale;\n    private  int        field_2_verticalScale;\n\n\n    public PlotGrowthRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a PlotGrowth record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1064 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public PlotGrowthRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a PlotGrowth record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1064 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public PlotGrowthRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a PlotGrowth record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_horizontalScale        = LittleEndian.getInt(data, pos + 0x0 + offset);\n        field_2_verticalScale          = LittleEndian.getInt(data, pos + 0x4 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PLOTGROWTH]\\n\");\n        buffer.append(\"    .horizontalScale      = \")\n            .append(\"0x\").append(HexDump.toHex(  getHorizontalScale ()))\n            .append(\" (\").append( getHorizontalScale() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .verticalScale        = \")\n            .append(\"0x\").append(HexDump.toHex(  getVerticalScale ()))\n            .append(\" (\").append( getVerticalScale() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/PLOTGROWTH]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_horizontalScale);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_verticalScale);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 4 + 4;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        PlotGrowthRecord rec = new PlotGrowthRecord();\n    \n        rec.field_1_horizontalScale = field_1_horizontalScale;\n        rec.field_2_verticalScale = field_2_verticalScale;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the horizontalScale field for the PlotGrowth record.\n     */\n    public int getHorizontalScale()\n    {\n        return field_1_horizontalScale;\n    }\n\n    /**\n     * Set the horizontalScale field for the PlotGrowth record.\n     */\n    public void setHorizontalScale(int field_1_horizontalScale)\n    {\n        this.field_1_horizontalScale = field_1_horizontalScale;\n    }\n\n    /**\n     * Get the verticalScale field for the PlotGrowth record.\n     */\n    public int getVerticalScale()\n    {\n        return field_2_verticalScale;\n    }\n\n    /**\n     * Set the verticalScale field for the PlotGrowth record.\n     */\n    public void setVerticalScale(int field_2_verticalScale)\n    {\n        this.field_2_verticalScale = field_2_verticalScale;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a PlotGrowth record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_horizontalScale        = LittleEndian.getInt(data, pos + 0x0 + offset);\n        field_2_verticalScale          = LittleEndian.getInt(data, pos + 0x4 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 9], [7, 10], [8, 11], [10, 12], [11, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 1], [10, 7], [11, 8], [12, 10], [13, 11], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PLOTGROWTH]\\n\");\n        buffer.append(\"    .horizontalScale      = \")\n            .append(\"0x\").append(HexDump.toHex(  getHorizontalScale ()))\n            .append(\" (\").append( getHorizontalScale() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .verticalScale        = \")\n            .append(\"0x\").append(HexDump.toHex(  getVerticalScale ()))\n            .append(\" (\").append( getVerticalScale() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/PLOTGROWTH]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [7, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [9, 25], [2, 26], [11, 27], [13, 28], [14, 29], [15, 30], [16, 31], [17, 32], [18, 33], [20, 34], [21, 35], [22, 36], [23, 37], [24, 38], [31, 39], [37, 40], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 7], [19, 8], [20, 8], [21, 8], [22, 8], [23, 8], [24, 8], [25, 9], [26, 2], [27, 11], [28, 13], [29, 14], [30, 15], [31, 16], [32, 17], [33, 18], [34, 20], [35, 21], [36, 22], [37, 23], [38, 24], [39, 31], [40, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_horizontalScale);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_verticalScale);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [8, 12], [9, 13], [2, 14], [10, 15], [11, 16], [8, 17], [12, 18], [13, 19], [15, 20], [16, 21], [17, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 8], [13, 9], [14, 2], [15, 10], [16, 11], [17, 8], [18, 12], [19, 13], [20, 15], [21, 16], [22, 17], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 4 + 4;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        PlotGrowthRecord rec = new PlotGrowthRecord();\n    \n        rec.field_1_horizontalScale = field_1_horizontalScale;\n        rec.field_2_verticalScale = field_2_verticalScale;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getHorizontalScale", "code": "    public int getHorizontalScale()\n    {\n        return field_1_horizontalScale;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHorizontalScale", "code": "    public void setHorizontalScale(int field_1_horizontalScale)\n    {\n        this.field_1_horizontalScale = field_1_horizontalScale;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVerticalScale", "code": "    public int getVerticalScale()\n    {\n        return field_2_verticalScale;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVerticalScale", "code": "    public void setVerticalScale(int field_2_verticalScale)\n    {\n        this.field_2_verticalScale = field_2_verticalScale;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "PlotGrowthRecord", "code": "    public PlotGrowthRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PlotGrowthRecord", "code": "    public PlotGrowthRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "PlotGrowthRecord", "code": "    public PlotGrowthRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.7-8033", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/lib/sql/ObjectFactory.java", "language": "java", "name": "org.apache.xalan.lib.sql.ObjectFactory", "code": "class ObjectFactory {\n\n\n    private static final String DEFAULT_PROPERTIES_FILENAME =\n                                                     \"xalan.properties\";\n\n    private static final String SERVICES_PATH = \"META-INF/services/\";\n\n    /** Set to true for debugging */\n    private static final boolean DEBUG = false;\n\n    /** cache the contents of the xalan.properties file.\n     *  Until an attempt has been made to read this file, this will\n     * be null; if the file does not exist or we encounter some other error\n     * during the read, this will be empty.\n     */\n    private static Properties fXalanProperties = null;\n\n    /***\n     * Cache the time stamp of the xalan.properties file so\n     * that we know if it's been modified and can invalidate\n     * the cache when necessary.\n     */\n    private static long fLastModified = -1;\n\n\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);\n\t\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);\n        }\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);\n        }\n\t}\n    /**\n     * Finds the name of the required implementation class in the specified\n     * order.  The specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return name of class that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                FileInputStream fis = null;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        fis = ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                    }\n\t        } catch (Exception x) {\n\t            fXalanProperties = null;\n\t            fLastModified = -1;\n\t        }\n                finally {\n                    if (fis != null) {\n                        try {\n                            fis.close();\n                        }\n                        catch (IOException exc) {}\n                    }\n                }\t            \n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }\n        } else {\n            FileInputStream fis = null;\n            try {\n                fis = ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n            finally {\n                if (fis != null) {\n                    try {\n                        fis.close();\n                    }\n                    catch (IOException exc) {}\n                }\n            }               \n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);\n\t}\n\n    /** Prints a message to standard error if debugging is enabled. */\n    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);\n        }\n\t}\n    /**\n     * Figure out which ClassLoader to use.  For JDK 1.2 and later use\n     * the context ClassLoader.\n     */\n    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;\n\t}\n    /**\n     * Create an instance of a class using the specified ClassLoader\n     */ \n    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);\n        }\n    }\n\n    /**\n     * Find a Class using the specified ClassLoader\n     */ \n    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n                if (security != null){\n                    final int lastDot = className.lastIndexOf(\".\");\n                    String packageName = className;\n                    if (lastDot != -1) packageName = className.substring(0, lastDot);\n                    security.checkPackageAccess(packageName);\n                 }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;\n    }\n\n    /**\n     * Find the name of service provider using Jar Service Provider Mechanism\n     *\n     * @return instance of provider class if found or null\n     */\n    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n        } catch (IOException x) {\n            return null;\n        }\n        finally {\n            try {\n                rd.close();\n            }\n            catch (IOException exc) {}\n        }          \n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;\n    }\n\n\n    /**\n     * A configuration error.\n     */\n    static class ConfigurationError \n        extends Error {\n                static final long serialVersionUID = 3273432303767233578L;\n\n        /** Exception. */\n        private Exception exception;\n\n\n        /**\n         * Construct a new instance with the specified detail string and\n         * exception.\n         */\n        ConfigurationError(String msg, Exception x) {\n            super(msg);\n            this.exception = x;\n\t\t}\n\n        /** Returns the exception associated to this error. */\n        Exception getException() {\n            return exception;", "functions": [{"function_name": "createObject", "code": "    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createObject", "code": "    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [7, 11], [1, 12], [2, 13], [10, 14], [3, 15], [11, 16], [12, 17], [9, 18], [13, 19], [16, 20], [17, 21], [19, 22], [19, 23], [20, 24], [23, 25], [23, 26], [24, 27], [24, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 7], [12, 1], [13, 2], [14, 10], [15, 3], [16, 11], [17, 12], [18, 9], [19, 13], [20, 16], [21, 17], [22, 19], [23, 19], [24, 20], [25, 23], [26, 23], [27, 24], [28, 24], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [8, 13], [9, 14], [1, 15], [12, 16], [3, 17], [4, 18], [13, 19], [14, 20], [15, 21], [11, 22], [2, 23], [19, 24], [20, 25], [21, 26], [22, 27], [24, 28], [25, 29], [25, 30], [26, 31], [26, 32], [28, 33], [28, 34], [30, 35], [32, 36], [34, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 8], [14, 9], [15, 1], [16, 12], [17, 3], [18, 4], [19, 13], [20, 14], [21, 15], [22, 11], [23, 2], [24, 19], [25, 20], [26, 21], [27, 22], [28, 24], [29, 25], [30, 25], [31, 26], [32, 26], [33, 28], [34, 28], [35, 30], [36, 32], [37, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "lookUpFactoryClassName", "code": "    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                FileInputStream fis = null;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        fis = ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                    }\n\t        } catch (Exception x) {\n\t            fXalanProperties = null;\n\t            fLastModified = -1;\n\t        }\n                finally {\n                    if (fis != null) {\n                        try {\n                            fis.close();\n                        }\n                        catch (IOException exc) {}\n                    }\n                }\t            \n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }\n        } else {\n            FileInputStream fis = null;\n            try {\n                fis = ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n            finally {\n                if (fis != null) {\n                    try {\n                        fis.close();\n                    }\n                    catch (IOException exc) {}\n                }\n            }               \n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "CATCH", "VAR_DECL", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CATCH", "IF", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [5, 13], [5, 14], [5, 15], [2, 16], [11, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [12, 24], [4, 25], [14, 26], [6, 27], [2, 28], [18, 29], [18, 30], [18, 31], [20, 32], [3, 33], [3, 34], [3, 35], [21, 36], [21, 37], [14, 38], [26, 39], [15, 40], [28, 41], [29, 42], [18, 43], [18, 44], [18, 45], [19, 46], [32, 47], [33, 48], [33, 49], [33, 50], [33, 51], [21, 52], [21, 53], [21, 54], [22, 55], [23, 56], [14, 57], [41, 58], [29, 59], [42, 60], [43, 61], [31, 62], [45, 63], [20, 64], [48, 65], [51, 66], [34, 67], [35, 68], [36, 69], [36, 70], [52, 71], [53, 72], [54, 73], [37, 74], [57, 75], [58, 76], [58, 77], [59, 78], [63, 79], [64, 80], [48, 81], [65, 82], [49, 83], [49, 84], [51, 85], [51, 86], [66, 87], [69, 88], [70, 89], [73, 90], [74, 91], [75, 92], [77, 93], [59, 94], [81, 95], [83, 96], [84, 97], [50, 98], [50, 99], [50, 100], [86, 101], [90, 102], [81, 103], [99, 104], [100, 105], [86, 106], [101, 107], [102, 108], [102, 109], [85, 110], [85, 111], [86, 112], [107, 113], [110, 114], [111, 115], [112, 116], [113, 117], [106, 118], [106, 119], [118, 120], [119, 121], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 5], [14, 5], [15, 5], [16, 2], [17, 11], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 12], [25, 4], [26, 14], [27, 6], [28, 2], [29, 18], [30, 18], [31, 18], [32, 20], [33, 3], [34, 3], [35, 3], [36, 21], [37, 21], [38, 14], [39, 26], [40, 15], [41, 28], [42, 29], [43, 18], [44, 18], [45, 18], [46, 19], [47, 32], [48, 33], [49, 33], [50, 33], [51, 33], [52, 21], [53, 21], [54, 21], [55, 22], [56, 23], [57, 14], [58, 41], [59, 29], [60, 42], [61, 43], [62, 31], [63, 45], [64, 20], [65, 48], [66, 51], [67, 34], [68, 35], [69, 36], [70, 36], [71, 52], [72, 53], [73, 54], [74, 37], [75, 57], [76, 58], [77, 58], [78, 59], [79, 63], [80, 64], [81, 48], [82, 65], [83, 49], [84, 49], [85, 51], [86, 51], [87, 66], [88, 69], [89, 70], [90, 73], [91, 74], [92, 75], [93, 77], [94, 59], [95, 81], [96, 83], [97, 84], [98, 50], [99, 50], [100, 50], [101, 86], [102, 90], [103, 81], [104, 99], [105, 100], [106, 86], [107, 101], [108, 102], [109, 102], [110, 85], [111, 85], [112, 86], [113, 107], [114, 110], [115, 111], [116, 112], [117, 113], [118, 106], [119, 106], [120, 118], [121, 119], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121]]}, {"function_name": "debugPrintln", "code": "    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "findClassLoader", "code": "    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [4, 10], [5, 11], [6, 12], [2, 13], [8, 14], [9, 15], [13, 16], [8, 17], [14, 18], [9, 19], [9, 20], [9, 21], [20, 22], [9, 23], [20, 24], [20, 25], [21, 26], [20, 27], [24, 28], [25, 29], [27, 30], [24, 31], [28, 32], [25, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 4], [11, 5], [12, 6], [13, 2], [14, 8], [15, 9], [16, 13], [17, 8], [18, 14], [19, 9], [20, 9], [21, 9], [22, 20], [23, 9], [24, 20], [25, 20], [26, 21], [27, 20], [28, 24], [29, 25], [30, 27], [31, 24], [32, 28], [33, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "newInstance", "code": "    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [6, 11], [1, 12], [10, 13], [11, 14], [12, 15], [8, 16], [9, 17], [13, 18], [14, 19], [15, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [21, 26], [21, 27], [23, 28], [25, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 6], [12, 1], [13, 10], [14, 11], [15, 12], [16, 8], [17, 9], [18, 13], [19, 14], [20, 15], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 21], [27, 21], [28, 23], [29, 25], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "findProviderClass", "code": "    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n                if (security != null){\n                    final int lastDot = className.lastIndexOf(\".\");\n                    String packageName = className;\n                    if (lastDot != -1) packageName = className.substring(0, lastDot);\n                    security.checkPackageAccess(packageName);\n                 }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "IF", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CATCH", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [4, 11], [2, 12], [9, 13], [10, 14], [11, 15], [5, 16], [12, 17], [2, 18], [11, 19], [11, 20], [11, 21], [15, 22], [17, 23], [12, 24], [18, 25], [11, 26], [19, 27], [24, 28], [19, 29], [27, 30], [21, 31], [23, 32], [23, 33], [23, 34], [29, 35], [31, 36], [33, 37], [33, 38], [35, 39], [37, 40], [38, 41], [34, 42], [37, 43], [33, 44], [37, 45], [37, 46], [44, 47], [45, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 4], [12, 2], [13, 9], [14, 10], [15, 11], [16, 5], [17, 12], [18, 2], [19, 11], [20, 11], [21, 11], [22, 15], [23, 17], [24, 12], [25, 18], [26, 11], [27, 19], [28, 24], [29, 19], [30, 27], [31, 21], [32, 23], [33, 23], [34, 23], [35, 29], [36, 31], [37, 33], [38, 33], [39, 35], [40, 37], [41, 38], [42, 34], [43, 37], [44, 33], [45, 37], [46, 37], [47, 44], [48, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "findJarServiceProviderName", "code": "    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n        } catch (IOException x) {\n            return null;\n        }\n        finally {\n            try {\n                rd.close();\n            }\n            catch (IOException exc) {}\n        }          \n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "CATCH", "CATCH", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [3, 17], [5, 18], [0, 19], [7, 20], [8, 21], [0, 22], [2, 23], [15, 24], [15, 25], [16, 26], [17, 27], [3, 28], [4, 29], [5, 30], [19, 31], [7, 32], [20, 33], [8, 34], [8, 35], [21, 36], [22, 37], [9, 38], [10, 39], [11, 40], [12, 41], [2, 42], [24, 43], [25, 44], [16, 45], [27, 46], [28, 47], [18, 48], [30, 49], [31, 50], [32, 51], [34, 52], [42, 53], [48, 54], [49, 55], [50, 56], [50, 57], [35, 58], [53, 59], [54, 60], [55, 61], [57, 62], [34, 63], [34, 64], [63, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 3], [18, 5], [19, 0], [20, 7], [21, 8], [22, 0], [23, 2], [24, 15], [25, 15], [26, 16], [27, 17], [28, 3], [29, 4], [30, 5], [31, 19], [32, 7], [33, 20], [34, 8], [35, 8], [36, 21], [37, 22], [38, 9], [39, 10], [40, 11], [41, 12], [42, 2], [43, 24], [44, 25], [45, 16], [46, 27], [47, 28], [48, 18], [49, 30], [50, 31], [51, 32], [52, 34], [53, 42], [54, 48], [55, 49], [56, 50], [57, 50], [58, 35], [59, 53], [60, 54], [61, 55], [62, 57], [63, 34], [64, 34], [65, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}], "label": 1}
{"sample_id": "ant-1.7-958", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/extension/resolvers/URLResolver.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.extension.resolvers.URLResolver", "code": "public class URLResolver implements ExtensionResolver {\n    private File destfile;\n    private File destdir;\n    private URL url;\n\n    /**\n     * Sets the URL\n     * @param url the url\n     */\n    public void setUrl(final URL url) {\n        this.url = url;\n    }\n\n    /**\n     * Sets the destination file\n     * @param destfile the destination file\n     */\n    public void setDestfile(final File destfile) {\n        this.destfile = destfile;\n    }\n\n    /**\n     * Sets the destination directory\n     * @param destdir the destination directory\n     */\n    public void setDestdir(final File destdir) {\n        this.destdir = destdir;\n    }\n\n    /**\n     * Returns the file resolved from URL and directory\n     * @param extension the extention\n     * @param project the project\n     * @return file the file resolved\n     * @throws BuildException if the URL is invalid\n     */\n    public File resolve(final Extension extension,\n                         final Project project) throws BuildException {\n        validate();\n\n        final File file = getDest();\n\n        final Get get = new Get();\n        get.setProject(project);\n        get.setDest(file);\n        get.setSrc(url);\n        get.execute();\n\n        return file;\n    }\n\n    /*\n     * Gets the destination file\n     */\n    private File getDest() {\n        File result;\n        if (null != destfile) {\n            result = destfile;\n        } else {\n            final String file = url.getFile();\n            String filename;\n            if (null == file || file.length() <= 1) {\n                filename = \"default.file\";\n            } else {\n                int index = file.lastIndexOf('/');\n                if (-1 == index) {\n                    index = 0;\n                }\n                filename = file.substring(index);\n            }\n            result = new File(destdir, filename);\n        }\n        return result;\n    }\n\n    /*\n     * Validates URL\n     */\n    private void validate() {\n        if (null == url) {\n            final String message = \"Must specify URL\";\n            throw new BuildException(message);\n        }\n\n        if (null == destdir && null == destfile) {\n            final String message = \"Must specify destination file or directory\";\n            throw new BuildException(message);\n        } else if (null != destdir && null != destfile) {\n            final String message = \"Must not specify both destination file or directory\";\n            throw new BuildException(message);\n        }\n    }\n\n    /**\n     * Returns a string representation of the URL\n     * @return the string representation\n     */\n    public String toString() {\n        return \"URL[\" + url + \"]\";", "functions": [{"function_name": "setUrl", "code": "    public void setUrl(final URL url) {\n        this.url = url;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDestfile", "code": "    public void setDestfile(final File destfile) {\n        this.destfile = destfile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDestdir", "code": "    public void setDestdir(final File destdir) {\n        this.destdir = destdir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "resolve", "code": "    public File resolve(final Extension extension,\n                         final Project project) throws BuildException {\n        validate();\n\n        final File file = getDest();\n\n        final Get get = new Get();\n        get.setProject(project);\n        get.setDest(file);\n        get.setSrc(url);\n        get.execute();\n\n        return file;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getDest", "code": "    private File getDest() {\n        File result;\n        if (null != destfile) {\n            result = destfile;\n        } else {\n            final String file = url.getFile();\n            String filename;\n            if (null == file || file.length() <= 1) {\n                filename = \"default.file\";\n            } else {\n                int index = file.lastIndexOf('/');\n                if (-1 == index) {\n                    index = 0;\n                }\n                filename = file.substring(index);\n            }\n            result = new File(destdir, filename);\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [4, 8], [2, 9], [5, 10], [2, 11], [9, 12], [5, 13], [5, 14], [10, 15], [10, 16], [7, 17], [5, 18], [13, 19], [5, 20], [15, 21], [15, 22], [16, 23], [18, 24], [19, 25], [14, 26], [20, 27], [13, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 4], [9, 2], [10, 5], [11, 2], [12, 9], [13, 5], [14, 5], [15, 10], [16, 10], [17, 7], [18, 5], [19, 13], [20, 5], [21, 15], [22, 15], [23, 16], [24, 18], [25, 19], [26, 14], [27, 20], [28, 13], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "validate", "code": "    private void validate() {\n        if (null == url) {\n            final String message = \"Must specify URL\";\n            throw new BuildException(message);\n        }\n\n        if (null == destdir && null == destfile) {\n            final String message = \"Must specify destination file or directory\";\n            throw new BuildException(message);\n        } else if (null != destdir && null != destfile) {\n            final String message = \"Must not specify both destination file or directory\";\n            throw new BuildException(message);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [4, 9], [4, 10], [2, 11], [2, 12], [5, 13], [3, 14], [3, 15], [6, 16], [6, 17], [7, 18], [9, 19], [10, 20], [11, 21], [14, 22], [16, 23], [17, 24], [8, 25], [12, 26], [15, 27], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 4], [10, 4], [11, 2], [12, 2], [13, 5], [14, 3], [15, 3], [16, 6], [17, 6], [18, 7], [19, 9], [20, 10], [21, 11], [22, 14], [23, 16], [24, 17], [25, 8], [26, 12], [27, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"URL[\" + url + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.7-8429", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/cmdline/ObjectFactory.java", "language": "java", "name": "org.apache.xalan.xsltc.cmdline.ObjectFactory", "code": "class ObjectFactory {\n\n\n    private static final String DEFAULT_PROPERTIES_FILENAME =\n                                                     \"xalan.properties\";\n\n    private static final String SERVICES_PATH = \"META-INF/services/\";\n\n    /** Set to true for debugging */\n    private static final boolean DEBUG = false;\n\n    /** cache the contents of the xalan.properties file.\n     *  Until an attempt has been made to read this file, this will\n     * be null; if the file does not exist or we encounter some other error\n     * during the read, this will be empty.\n     */\n    private static Properties fXalanProperties = null;\n\n    /***\n     * Cache the time stamp of the xalan.properties file so\n     * that we know if it's been modified and can invalidate\n     * the cache when necessary.\n     */\n    private static long fLastModified = -1;\n\n\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);\n\t\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);\n        }\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);\n        }\n\t}\n    /**\n     * Finds the name of the required implementation class in the specified\n     * order.  The specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return name of class that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                FileInputStream fis = null;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        fis = ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                    }\n\t        } catch (Exception x) {\n\t            fXalanProperties = null;\n\t            fLastModified = -1;\n\t        }\n                finally {\n                    if (fis != null) {\n                        try {\n                            fis.close();\n                        }\n                        catch (IOException exc) {}\n                    }\n                }\t            \n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }\n        } else {\n            FileInputStream fis = null;\n            try {\n                fis = ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n            finally {\n                if (fis != null) {\n                    try {\n                        fis.close();\n                    }\n                    catch (IOException exc) {}\n                }\n            }               \n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);\n\t}\n\n    /** Prints a message to standard error if debugging is enabled. */\n    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);\n        }\n\t}\n    /**\n     * Figure out which ClassLoader to use.  For JDK 1.2 and later use\n     * the context ClassLoader.\n     */\n    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;\n\t}\n    /**\n     * Create an instance of a class using the specified ClassLoader\n     */ \n    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);\n        }\n    }\n\n    /**\n     * Find a Class using the specified ClassLoader\n     */ \n    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n                if (security != null){\n                    final int lastDot = className.lastIndexOf(\".\");\n                    String packageName = className;\n                    if (lastDot != -1) packageName = className.substring(0, lastDot);\n                    security.checkPackageAccess(packageName);\n                 }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;\n    }\n\n    /**\n     * Find the name of service provider using Jar Service Provider Mechanism\n     *\n     * @return instance of provider class if found or null\n     */\n    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n        } catch (IOException x) {\n            return null;\n        }\n        finally {\n            try {\n                rd.close();\n            }\n            catch (IOException exc) {}\n        }          \n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;\n    }\n\n\n    /**\n     * A configuration error.\n     */\n    static class ConfigurationError \n        extends Error {\n                static final long serialVersionUID = -6072257854297546607L;\n\n        /** Exception. */\n        private Exception exception;\n\n\n        /**\n         * Construct a new instance with the specified detail string and\n         * exception.\n         */\n        ConfigurationError(String msg, Exception x) {\n            super(msg);\n            this.exception = x;\n\t\t}\n\n        /** Returns the exception associated to this error. */\n        Exception getException() {\n            return exception;", "functions": [{"function_name": "createObject", "code": "    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createObject", "code": "    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [7, 11], [1, 12], [2, 13], [10, 14], [3, 15], [11, 16], [12, 17], [9, 18], [13, 19], [16, 20], [17, 21], [19, 22], [19, 23], [20, 24], [23, 25], [23, 26], [24, 27], [24, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 7], [12, 1], [13, 2], [14, 10], [15, 3], [16, 11], [17, 12], [18, 9], [19, 13], [20, 16], [21, 17], [22, 19], [23, 19], [24, 20], [25, 23], [26, 23], [27, 24], [28, 24], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [8, 13], [9, 14], [1, 15], [12, 16], [3, 17], [4, 18], [13, 19], [14, 20], [15, 21], [11, 22], [2, 23], [19, 24], [20, 25], [21, 26], [22, 27], [24, 28], [25, 29], [25, 30], [26, 31], [26, 32], [28, 33], [28, 34], [30, 35], [32, 36], [34, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 8], [14, 9], [15, 1], [16, 12], [17, 3], [18, 4], [19, 13], [20, 14], [21, 15], [22, 11], [23, 2], [24, 19], [25, 20], [26, 21], [27, 22], [28, 24], [29, 25], [30, 25], [31, 26], [32, 26], [33, 28], [34, 28], [35, 30], [36, 32], [37, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "lookUpFactoryClassName", "code": "    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                FileInputStream fis = null;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        fis = ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                    }\n\t        } catch (Exception x) {\n\t            fXalanProperties = null;\n\t            fLastModified = -1;\n\t        }\n                finally {\n                    if (fis != null) {\n                        try {\n                            fis.close();\n                        }\n                        catch (IOException exc) {}\n                    }\n                }\t            \n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }\n        } else {\n            FileInputStream fis = null;\n            try {\n                fis = ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n            finally {\n                if (fis != null) {\n                    try {\n                        fis.close();\n                    }\n                    catch (IOException exc) {}\n                }\n            }               \n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "CATCH", "VAR_DECL", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CATCH", "IF", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [5, 13], [5, 14], [5, 15], [2, 16], [11, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [12, 24], [4, 25], [14, 26], [6, 27], [2, 28], [18, 29], [18, 30], [18, 31], [20, 32], [3, 33], [3, 34], [3, 35], [21, 36], [21, 37], [14, 38], [26, 39], [15, 40], [28, 41], [29, 42], [18, 43], [18, 44], [18, 45], [19, 46], [32, 47], [33, 48], [33, 49], [33, 50], [33, 51], [21, 52], [21, 53], [21, 54], [22, 55], [23, 56], [14, 57], [41, 58], [29, 59], [42, 60], [43, 61], [31, 62], [45, 63], [20, 64], [48, 65], [51, 66], [34, 67], [35, 68], [36, 69], [36, 70], [52, 71], [53, 72], [54, 73], [37, 74], [57, 75], [58, 76], [58, 77], [59, 78], [63, 79], [64, 80], [48, 81], [65, 82], [49, 83], [49, 84], [51, 85], [51, 86], [66, 87], [69, 88], [70, 89], [73, 90], [74, 91], [75, 92], [77, 93], [59, 94], [81, 95], [83, 96], [84, 97], [50, 98], [50, 99], [50, 100], [86, 101], [90, 102], [81, 103], [99, 104], [100, 105], [86, 106], [101, 107], [102, 108], [102, 109], [85, 110], [85, 111], [86, 112], [107, 113], [110, 114], [111, 115], [112, 116], [113, 117], [106, 118], [106, 119], [118, 120], [119, 121], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 5], [14, 5], [15, 5], [16, 2], [17, 11], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 12], [25, 4], [26, 14], [27, 6], [28, 2], [29, 18], [30, 18], [31, 18], [32, 20], [33, 3], [34, 3], [35, 3], [36, 21], [37, 21], [38, 14], [39, 26], [40, 15], [41, 28], [42, 29], [43, 18], [44, 18], [45, 18], [46, 19], [47, 32], [48, 33], [49, 33], [50, 33], [51, 33], [52, 21], [53, 21], [54, 21], [55, 22], [56, 23], [57, 14], [58, 41], [59, 29], [60, 42], [61, 43], [62, 31], [63, 45], [64, 20], [65, 48], [66, 51], [67, 34], [68, 35], [69, 36], [70, 36], [71, 52], [72, 53], [73, 54], [74, 37], [75, 57], [76, 58], [77, 58], [78, 59], [79, 63], [80, 64], [81, 48], [82, 65], [83, 49], [84, 49], [85, 51], [86, 51], [87, 66], [88, 69], [89, 70], [90, 73], [91, 74], [92, 75], [93, 77], [94, 59], [95, 81], [96, 83], [97, 84], [98, 50], [99, 50], [100, 50], [101, 86], [102, 90], [103, 81], [104, 99], [105, 100], [106, 86], [107, 101], [108, 102], [109, 102], [110, 85], [111, 85], [112, 86], [113, 107], [114, 110], [115, 111], [116, 112], [117, 113], [118, 106], [119, 106], [120, 118], [121, 119], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121]]}, {"function_name": "debugPrintln", "code": "    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "findClassLoader", "code": "    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [4, 10], [5, 11], [6, 12], [2, 13], [8, 14], [9, 15], [13, 16], [8, 17], [14, 18], [9, 19], [9, 20], [9, 21], [20, 22], [9, 23], [20, 24], [20, 25], [21, 26], [20, 27], [24, 28], [25, 29], [27, 30], [24, 31], [28, 32], [25, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 4], [11, 5], [12, 6], [13, 2], [14, 8], [15, 9], [16, 13], [17, 8], [18, 14], [19, 9], [20, 9], [21, 9], [22, 20], [23, 9], [24, 20], [25, 20], [26, 21], [27, 20], [28, 24], [29, 25], [30, 27], [31, 24], [32, 28], [33, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "newInstance", "code": "    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [6, 11], [1, 12], [10, 13], [11, 14], [12, 15], [8, 16], [9, 17], [13, 18], [14, 19], [15, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [21, 26], [21, 27], [23, 28], [25, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 6], [12, 1], [13, 10], [14, 11], [15, 12], [16, 8], [17, 9], [18, 13], [19, 14], [20, 15], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 21], [27, 21], [28, 23], [29, 25], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "findProviderClass", "code": "    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n                if (security != null){\n                    final int lastDot = className.lastIndexOf(\".\");\n                    String packageName = className;\n                    if (lastDot != -1) packageName = className.substring(0, lastDot);\n                    security.checkPackageAccess(packageName);\n                 }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "IF", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CATCH", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [4, 11], [2, 12], [9, 13], [10, 14], [11, 15], [5, 16], [12, 17], [2, 18], [11, 19], [11, 20], [11, 21], [15, 22], [17, 23], [12, 24], [18, 25], [11, 26], [19, 27], [24, 28], [19, 29], [27, 30], [21, 31], [23, 32], [23, 33], [23, 34], [29, 35], [31, 36], [33, 37], [33, 38], [35, 39], [37, 40], [38, 41], [34, 42], [37, 43], [33, 44], [37, 45], [37, 46], [44, 47], [45, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 4], [12, 2], [13, 9], [14, 10], [15, 11], [16, 5], [17, 12], [18, 2], [19, 11], [20, 11], [21, 11], [22, 15], [23, 17], [24, 12], [25, 18], [26, 11], [27, 19], [28, 24], [29, 19], [30, 27], [31, 21], [32, 23], [33, 23], [34, 23], [35, 29], [36, 31], [37, 33], [38, 33], [39, 35], [40, 37], [41, 38], [42, 34], [43, 37], [44, 33], [45, 37], [46, 37], [47, 44], [48, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "findJarServiceProviderName", "code": "    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n        } catch (IOException x) {\n            return null;\n        }\n        finally {\n            try {\n                rd.close();\n            }\n            catch (IOException exc) {}\n        }          \n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "CATCH", "CATCH", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [3, 17], [5, 18], [0, 19], [7, 20], [8, 21], [0, 22], [2, 23], [15, 24], [15, 25], [16, 26], [17, 27], [3, 28], [4, 29], [5, 30], [19, 31], [7, 32], [20, 33], [8, 34], [8, 35], [21, 36], [22, 37], [9, 38], [10, 39], [11, 40], [12, 41], [2, 42], [24, 43], [25, 44], [16, 45], [27, 46], [28, 47], [18, 48], [30, 49], [31, 50], [32, 51], [34, 52], [42, 53], [48, 54], [49, 55], [50, 56], [50, 57], [35, 58], [53, 59], [54, 60], [55, 61], [57, 62], [34, 63], [34, 64], [63, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 3], [18, 5], [19, 0], [20, 7], [21, 8], [22, 0], [23, 2], [24, 15], [25, 15], [26, 16], [27, 17], [28, 3], [29, 4], [30, 5], [31, 19], [32, 7], [33, 20], [34, 8], [35, 8], [36, 21], [37, 22], [38, 9], [39, 10], [40, 11], [41, 12], [42, 2], [43, 24], [44, 25], [45, 16], [46, 27], [47, 28], [48, 18], [49, 30], [50, 31], [51, 32], [52, 34], [53, 42], [54, 48], [55, 49], [56, 50], [57, 50], [58, 35], [59, 53], [60, 54], [61, 55], [62, 57], [63, 34], [64, 34], [65, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}], "label": 1}
{"sample_id": "camel-1.4-2435", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/atom/AtomEntryPollingConsumer.java", "language": "java", "name": "org.apache.camel.component.atom.AtomEntryPollingConsumer", "code": "public class AtomEntryPollingConsumer extends AtomPollingConsumer {\n    private Document<Feed> document;\n    private int entryIndex;\n    private EntryFilter entryFilter;\n    private List<Entry> list;\n\n    public AtomEntryPollingConsumer(AtomEndpoint endpoint, Processor processor, boolean filter,\n                                    Date lastUpdate) {\n        super(endpoint, processor);\n        if (filter) {\n            entryFilter = new UpdatedDateFilter(lastUpdate);\n        }\n    }\n\n    public void poll() throws Exception {\n        getDocument();\n        Feed feed = document.getRoot();\n\n        while (hasNextEntry()) {\n            Entry entry = list.get(entryIndex--);\n\n            boolean valid = true;\n            if (entryFilter != null) {\n                valid = entryFilter.isValidEntry(endpoint, document, entry);\n            }\n            if (valid) {\n                Exchange exchange = endpoint.createExchange(feed, entry);\n                getProcessor().process(exchange);\n                return;\n            }\n        }\n\n        document = null;\n    }\n\n    private Document<Feed> getDocument() throws IOException, ParseException {\n        if (document == null) {\n            document = AtomUtils.parseDocument(endpoint.getAtomUri());\n            list = document.getRoot().getEntries();\n            entryIndex = list.size() - 1;\n        }\n        return document;\n    }\n\n    private boolean hasNextEntry() {\n        return entryIndex >= 0;", "functions": [{"function_name": "poll", "code": "    public void poll() throws Exception {\n        getDocument();\n        Feed feed = document.getRoot();\n\n        while (hasNextEntry()) {\n            Entry entry = list.get(entryIndex--);\n\n            boolean valid = true;\n            if (entryFilter != null) {\n                valid = entryFilter.isValidEntry(endpoint, document, entry);\n            }\n            if (valid) {\n                Exchange exchange = endpoint.createExchange(feed, entry);\n                getProcessor().process(exchange);\n                return;\n            }\n        }\n\n        document = null;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [8, 12], [7, 13], [7, 14], [12, 15], [9, 16], [10, 17], [7, 18], [8, 19], [18, 20], [14, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 8], [13, 7], [14, 7], [15, 12], [16, 9], [17, 10], [18, 7], [19, 8], [20, 18], [21, 14], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getDocument", "code": "    private Document<Feed> getDocument() throws IOException, ParseException {\n        if (document == null) {\n            document = AtomUtils.parseDocument(endpoint.getAtomUri());\n            list = document.getRoot().getEntries();\n            entryIndex = list.size() - 1;\n        }\n        return document;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [7, 10], [8, 11], [8, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 7], [11, 8], [12, 8], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "hasNextEntry", "code": "    private boolean hasNextEntry() {\n        return entryIndex >= 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AtomEntryPollingConsumer", "code": "    public AtomEntryPollingConsumer(AtomEndpoint endpoint, Processor processor, boolean filter,\n                                    Date lastUpdate) {\n        super(endpoint, processor);\n        if (filter) {\n            entryFilter = new UpdatedDateFilter(lastUpdate);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "xalan-2.4-6389", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/lib/sql/SQLErrorDocument.java", "language": "java", "name": "org.apache.xalan.lib.sql.SQLErrorDocument", "code": "public class SQLErrorDocument extends DTMDocument\n{\n  /**\n   */\n  private static final String S_EXT_ERROR = \"ext-error\";\n  /**\n   */\n  private static final String S_SQL_ERROR = \"sql-error\";\n  /**\n   */\n  private static final String S_MESSAGE = \"message\";\n  /**\n   */\n  private static final String S_CODE = \"code\";\n\n  /**\n   */\n  private int m_ErrorExt_TypeID = DTM.NULL;\n  /**\n   */\n  private int m_Message_TypeID = DTM.NULL;\n  /**\n   */\n  private int m_Code_TypeID = DTM.NULL;\n\n  /**\n   */\n  private int m_SQLError_TypeID = DTM.NULL;\n\n  /**\n   */\n  private int m_rootID = DTM.NULL;\n  /**\n   */\n  private int m_extErrorID = DTM.NULL;\n  /**\n   */\n  private int m_MainMessageID = DTM.NULL;\n\n  /**\n   * Build up an SQLErrorDocument that includes the basic error information\n   * along with the Extended SQL Error information.\n   * @param mgr\n   * @param ident\n   * @param error\n   */\n  public SQLErrorDocument( DTMManager mgr, int ident, SQLException error )\n  {\n    super(mgr, ident);\n\n    createExpandedNameTable();\n    buildBasicStructure(error);\n\n    int sqlError = addElement(2, m_SQLError_TypeID, m_extErrorID, m_MainMessageID);\n    int element = DTM.NULL;\n\n    element = addElementWithData(\n      new Integer(error.getErrorCode()), 3,\n      m_Code_TypeID, sqlError, element);\n\n    element = addElementWithData(\n      error.getLocalizedMessage(), 3,\n      m_Message_TypeID, sqlError, element);\n\n  }\n\n\n  /**\n   * Build up an Error Exception with just the Standard Error Information\n   * @param mgr\n   * @param ident\n   * @param error\n   */\n  public SQLErrorDocument( DTMManager mgr, int ident, Exception error )\n  {\n    super(mgr, ident);\n    createExpandedNameTable();\n    buildBasicStructure(error);\n  }\n\n  /**\n   * Build up the basic structure that is common for each error.\n   * @param e\n   * @return\n   */\n  private void buildBasicStructure( Exception e )\n  {\n    m_rootID = addElement(0, m_Document_TypeID, DTM.NULL, DTM.NULL);\n    m_extErrorID = addElement(1, m_ErrorExt_TypeID, m_rootID, DTM.NULL);\n    m_MainMessageID = addElementWithData\n      (e.getLocalizedMessage(), 2, m_Message_TypeID, m_extErrorID, DTM.NULL);\n  }\n\n  /**\n   * Populate the Expanded Name Table with the Node that we will use.\n   * Keep a reference of each of the types for access speed.\n   * @return\n   */\n  protected void createExpandedNameTable( )\n  {\n\n    super.createExpandedNameTable();\n\n    m_ErrorExt_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_EXT_ERROR, DTM.ELEMENT_NODE);\n\n    m_SQLError_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_ERROR, DTM.ELEMENT_NODE);\n\n    m_Message_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_MESSAGE, DTM.ELEMENT_NODE);\n\n    m_Code_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CODE, DTM.ELEMENT_NODE);", "functions": [{"function_name": "buildBasicStructure", "code": "  private void buildBasicStructure( Exception e )\n  {\n    m_rootID = addElement(0, m_Document_TypeID, DTM.NULL, DTM.NULL);\n    m_extErrorID = addElement(1, m_ErrorExt_TypeID, m_rootID, DTM.NULL);\n    m_MainMessageID = addElementWithData\n      (e.getLocalizedMessage(), 2, m_Message_TypeID, m_extErrorID, DTM.NULL);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [5, 8], [5, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 5], [9, 5], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "createExpandedNameTable", "code": "  protected void createExpandedNameTable( )\n  {\n\n    super.createExpandedNameTable();\n\n    m_ErrorExt_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_EXT_ERROR, DTM.ELEMENT_NODE);\n\n    m_SQLError_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_ERROR, DTM.ELEMENT_NODE);\n\n    m_Message_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_MESSAGE, DTM.ELEMENT_NODE);\n\n    m_Code_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CODE, DTM.ELEMENT_NODE);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "SQLErrorDocument", "code": "  public SQLErrorDocument( DTMManager mgr, int ident, SQLException error )\n  {\n    super(mgr, ident);\n\n    createExpandedNameTable();\n    buildBasicStructure(error);\n\n    int sqlError = addElement(2, m_SQLError_TypeID, m_extErrorID, m_MainMessageID);\n    int element = DTM.NULL;\n\n    element = addElementWithData(\n      new Integer(error.getErrorCode()), 3,\n      m_Code_TypeID, sqlError, element);\n\n    element = addElementWithData(\n      error.getLocalizedMessage(), 3,\n      m_Message_TypeID, sqlError, element);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [10, 14], [11, 15], [11, 16], [12, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 10], [15, 11], [16, 11], [17, 12], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "SQLErrorDocument", "code": "  public SQLErrorDocument( DTMManager mgr, int ident, Exception error )\n  {\n    super(mgr, ident);\n    createExpandedNameTable();\n    buildBasicStructure(error);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.7-8220", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/extensions/ExtensionsTable.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionsTable", "code": "public class ExtensionsTable\n{  \n  /**\n   * Table of extensions that may be called from the expression language\n   * via the call(name, ...) function.  Objects are keyed on the call\n   * name.\n   * @xsl.usage internal\n   */\n  public Hashtable m_extensionFunctionNamespaces = new Hashtable();\n  \n  /**\n   * The StylesheetRoot associated with this extensions table.\n   */\n  private StylesheetRoot m_sroot;\n  \n  /**\n   * The constructor (called from TransformerImpl) registers the\n   * StylesheetRoot for the transformation and instantiates an\n   * ExtensionHandler for each extension namespace.\n   * @xsl.usage advanced\n   */\n  public ExtensionsTable(StylesheetRoot sroot)\n    throws javax.xml.transform.TransformerException\n  {\n    m_sroot = sroot;\n    Vector extensions = m_sroot.getExtensions();\n    for (int i = 0; i < extensions.size(); i++)\n    {\n      ExtensionNamespaceSupport extNamespaceSpt = \n                 (ExtensionNamespaceSupport)extensions.elementAt(i);\n      ExtensionHandler extHandler = extNamespaceSpt.launch();\n        if (extHandler != null)\n          addExtensionNamespace(extNamespaceSpt.getNamespace(), extHandler);\n      }\n    }\n       \n  /**\n   * Get an ExtensionHandler object that represents the\n   * given namespace.\n   * @param extns A valid extension namespace.\n   *\n   * @return ExtensionHandler object that represents the\n   * given namespace.\n   */\n  public ExtensionHandler get(String extns)\n  {\n    return (ExtensionHandler) m_extensionFunctionNamespaces.get(extns);\n  }\n\n  /**\n   * Register an extension namespace handler. This handler provides\n   * functions for testing whether a function is known within the\n   * namespace and also for invoking the functions.\n   *\n   * @param uri the URI for the extension.\n   * @param extNS the extension handler.\n   * @xsl.usage advanced\n   */\n  public void addExtensionNamespace(String uri, ExtensionHandler extNS)\n  {\n    m_extensionFunctionNamespaces.put(uri, extNS);\n  }\n\n  /**\n   * Execute the function-available() function.\n   * @param ns       the URI of namespace in which the function is needed\n   * @param funcName the function name being tested\n   *\n   * @return whether the given function is available or not.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean functionAvailable(String ns, String funcName)\n          throws javax.xml.transform.TransformerException\n  {\n    boolean isAvailable = false;\n    \n    if (null != ns)\n    {\n      ExtensionHandler extNS = \n           (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (extNS != null)\n        isAvailable = extNS.isFunctionAvailable(funcName);\n    }\n    return isAvailable;\n  }\n  \n  /**\n   * Execute the element-available() function.\n   * @param ns       the URI of namespace in which the function is needed\n   * @param elemName name of element being tested\n   *\n   * @return whether the given element is available or not.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean elementAvailable(String ns, String elemName)\n          throws javax.xml.transform.TransformerException\n  {\n    boolean isAvailable = false;\n    if (null != ns)\n    {\n      ExtensionHandler extNS = \n               (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n        isAvailable = extNS.isElementAvailable(elemName);\n    } \n    return isAvailable;        \n  }  \n  \n  /**\n   * Handle an extension function.\n   * @param ns        the URI of namespace in which the function is needed\n   * @param funcName  the function name being called\n   * @param argVec    arguments to the function in a vector\n   * @param methodKey a unique key identifying this function instance in the\n   *                  stylesheet\n   * @param exprContext a context which may be passed to an extension function\n   *                  and provides callback functions to access various\n   *                  areas in the environment\n   *\n   * @return result of executing the function\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public Object extFunction(String ns, String funcName, \n                            Vector argVec, Object methodKey, \n                            ExpressionContext exprContext)\n            throws javax.xml.transform.TransformerException\n  {\n    Object result = null;\n    if (null != ns)\n    {\n      ExtensionHandler extNS =\n        (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (null != extNS)\n      {\n        try\n        {\n          result = extNS.callFunction(funcName, argVec, methodKey,\n                                      exprContext);\n        }\n        catch (javax.xml.transform.TransformerException e)\n        {\n          throw e;\n        }\n        catch (Exception e)\n        {\n          throw new javax.xml.transform.TransformerException(e);\n        }\n      }\n      else\n      {\n        throw new XPathProcessorException(XSLMessages.createMessage(XSLTErrorResources.ER_EXTENSION_FUNC_UNKNOWN, new Object[]{ns, funcName })); \n      }\n    }\n    return result;    \n  }\n  \n  /**\n   * Handle an extension function.\n   * @param extFunction  the extension function\n   * @param argVec    arguments to the function in a vector\n   * @param exprContext a context which may be passed to an extension function\n   *                  and provides callback functions to access various\n   *                  areas in the environment\n   *\n   * @return result of executing the function\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public Object extFunction(FuncExtFunction extFunction, Vector argVec, \n                            ExpressionContext exprContext)\n         throws javax.xml.transform.TransformerException\n  {\n    Object result = null;\n    String ns = extFunction.getNamespace();\n    if (null != ns)\n    {\n      ExtensionHandler extNS =\n        (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (null != extNS)\n      {\n        try\n        {\n          result = extNS.callFunction(extFunction, argVec, exprContext);\n        }\n        catch (javax.xml.transform.TransformerException e)\n        {\n          throw e;\n        }\n        catch (Exception e)\n        {\n          throw new javax.xml.transform.TransformerException(e);\n        }\n      }\n      else\n      {\n        throw new XPathProcessorException(XSLMessages.createMessage(XSLTErrorResources.ER_EXTENSION_FUNC_UNKNOWN, \n                                          new Object[]{ns, extFunction.getFunctionName()})); \n      }\n    }\n    return result;        ", "functions": [{"function_name": "get", "code": "  public ExtensionHandler get(String extns)\n  {\n    return (ExtensionHandler) m_extensionFunctionNamespaces.get(extns);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addExtensionNamespace", "code": "  public void addExtensionNamespace(String uri, ExtensionHandler extNS)\n  {\n    m_extensionFunctionNamespaces.put(uri, extNS);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "functionAvailable", "code": "  public boolean functionAvailable(String ns, String funcName)\n          throws javax.xml.transform.TransformerException\n  {\n    boolean isAvailable = false;\n    \n    if (null != ns)\n    {\n      ExtensionHandler extNS = \n           (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (extNS != null)\n        isAvailable = extNS.isFunctionAvailable(funcName);\n    }\n    return isAvailable;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [11, 13], [12, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 11], [14, 12], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "elementAvailable", "code": "  public boolean elementAvailable(String ns, String elemName)\n          throws javax.xml.transform.TransformerException\n  {\n    boolean isAvailable = false;\n    if (null != ns)\n    {\n      ExtensionHandler extNS = \n               (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n        isAvailable = extNS.isElementAvailable(elemName);\n    } \n    return isAvailable;        ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [2, 10], [10, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 2], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "extFunction", "code": "  public Object extFunction(String ns, String funcName, \n                            Vector argVec, Object methodKey, \n                            ExpressionContext exprContext)\n            throws javax.xml.transform.TransformerException\n  {\n    Object result = null;\n    if (null != ns)\n    {\n      ExtensionHandler extNS =\n        (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (null != extNS)\n      {\n        try\n        {\n          result = extNS.callFunction(funcName, argVec, methodKey,\n                                      exprContext);\n        }\n        catch (javax.xml.transform.TransformerException e)\n        {\n          throw e;\n        }\n        catch (Exception e)\n        {\n          throw new javax.xml.transform.TransformerException(e);\n        }\n      }\n      else\n      {\n        throw new XPathProcessorException(XSLMessages.createMessage(XSLTErrorResources.ER_EXTENSION_FUNC_UNKNOWN, new Object[]{ns, funcName })); \n      }\n    }\n    return result;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [2, 11], [9, 12], [3, 13], [10, 14], [10, 15], [10, 16], [14, 17], [15, 18], [16, 19], [16, 20], [11, 21], [18, 22], [19, 23], [20, 24], [16, 25], [23, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 2], [12, 9], [13, 3], [14, 10], [15, 10], [16, 10], [17, 14], [18, 15], [19, 16], [20, 16], [21, 11], [22, 18], [23, 19], [24, 20], [25, 16], [26, 23], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "extFunction", "code": "  public Object extFunction(FuncExtFunction extFunction, Vector argVec, \n                            ExpressionContext exprContext)\n         throws javax.xml.transform.TransformerException\n  {\n    Object result = null;\n    String ns = extFunction.getNamespace();\n    if (null != ns)\n    {\n      ExtensionHandler extNS =\n        (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (null != extNS)\n      {\n        try\n        {\n          result = extNS.callFunction(extFunction, argVec, exprContext);\n        }\n        catch (javax.xml.transform.TransformerException e)\n        {\n          throw e;\n        }\n        catch (Exception e)\n        {\n          throw new javax.xml.transform.TransformerException(e);\n        }\n      }\n      else\n      {\n        throw new XPathProcessorException(XSLMessages.createMessage(XSLTErrorResources.ER_EXTENSION_FUNC_UNKNOWN, \n                                          new Object[]{ns, extFunction.getFunctionName()})); \n      }\n    }\n    return result;        ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [8, 11], [3, 12], [4, 13], [9, 14], [9, 15], [9, 16], [14, 17], [15, 18], [16, 19], [16, 20], [10, 21], [18, 22], [19, 23], [20, 24], [16, 25], [23, 26], [25, 27], [22, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 8], [12, 3], [13, 4], [14, 9], [15, 9], [16, 9], [17, 14], [18, 15], [19, 16], [20, 16], [21, 10], [22, 18], [23, 19], [24, 20], [25, 16], [26, 23], [27, 25], [28, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "ExtensionsTable", "code": "  public ExtensionsTable(StylesheetRoot sroot)\n    throws javax.xml.transform.TransformerException\n  {\n    m_sroot = sroot;\n    Vector extensions = m_sroot.getExtensions();\n    for (int i = 0; i < extensions.size(); i++)\n    {\n      ExtensionNamespaceSupport extNamespaceSpt = \n                 (ExtensionNamespaceSupport)extensions.elementAt(i);\n      ExtensionHandler extHandler = extNamespaceSpt.launch();\n        if (extHandler != null)\n          addExtensionNamespace(extNamespaceSpt.getNamespace(), extHandler);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [1, 8], [4, 9], [2, 10], [6, 11], [1, 12], [6, 13], [11, 14], [7, 15], [13, 16], [8, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 1], [9, 4], [10, 2], [11, 6], [12, 1], [13, 6], [14, 11], [15, 7], [16, 13], [17, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 1}
{"sample_id": "camel-1.2-1981", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/builder/script/ScriptLanguage.java", "language": "java", "name": "org.apache.camel.builder.script.ScriptLanguage", "code": "public class ScriptLanguage implements Language {\n    private final String language;\n\n    public ScriptLanguage(String language) {\n        this.language = language;\n    }\n\n    public Predicate<Exchange> createPredicate(String expression) {\n        return new ScriptBuilder(language, expression);\n    }\n\n    public Expression<Exchange> createExpression(String expression) {\n        return new ScriptBuilder(language, expression);", "functions": [{"function_name": "createPredicate", "code": "    public Predicate<Exchange> createPredicate(String expression) {\n        return new ScriptBuilder(language, expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createExpression", "code": "    public Expression<Exchange> createExpression(String expression) {\n        return new ScriptBuilder(language, expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ScriptLanguage", "code": "    public ScriptLanguage(String language) {\n        this.language = language;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.1-4017", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/ErrorListCellRenderer.java", "language": "java", "name": "org.gjt.sp.jedit.gui.ErrorListCellRenderer", "code": "class ErrorListCellRenderer extends JComponent implements ListCellRenderer\n{\n\t//{{{ ErrorListCellRenderer constructor\n\tErrorListCellRenderer()\n\t{\n\t\tplainFont = UIManager.getFont(\"Label.font\");\n\t\tboldFont = new Font(plainFont.getName(),Font.BOLD,plainFont.getSize());\n\t\tplainFM = getFontMetrics(plainFont);\n\t\tboldFM = getFontMetrics(boldFont);\n\n\t\tsetBorder(new EmptyBorder(2,2,2,2));\n\t} //}}}\n\n\t//{{{ getListCellRendererComponent() method\n\tpublic Component getListCellRendererComponent(JList list, Object value,\n\t\tint index, boolean isSelected, boolean cellHasFocus)\n\t{\n\t\tErrorListDialog.ErrorEntry entry = (ErrorListDialog.ErrorEntry)value;\n\t\tthis.path = entry.path + \":\";\n\t\tthis.messages = entry.messages;\n\t\treturn this;\n\t} //}}}\n\n\t//{{{ getPreferredSize() method\n\tpublic Dimension getPreferredSize()\n\t{\n\t\tint width = boldFM.stringWidth(path);\n\t\tint height = boldFM.getHeight();\n\t\tfor(int i = 0; i < messages.length; i++)\n\t\t{\n\t\t\twidth = Math.max(plainFM.stringWidth(messages[i]),width);\n\t\t\theight += plainFM.getHeight();\n\t\t}\n\n\t\tInsets insets = getBorder().getBorderInsets(this);\n\t\twidth += insets.left + insets.right;\n\t\theight += insets.top + insets.bottom;\n\n\t\treturn new Dimension(width,height);\n\t} //}}}\n\n\t//{{{ paintComponent() method\n\tpublic void paintComponent(Graphics g)\n\t{\n\t\tInsets insets = getBorder().getBorderInsets(this);\n\t\tg.setFont(boldFont);\n\t\tg.drawString(path,insets.left,insets.top + boldFM.getAscent());\n\t\tint y = insets.top + boldFM.getHeight() + 2;\n\t\tg.setFont(plainFont);\n\t\tfor(int i = 0; i < messages.length; i++)\n\t\t{\n\t\t\tg.drawString(messages[i],insets.left,y + plainFM.getAscent());\n\t\t\ty += plainFM.getHeight();\n\t\t}\n\t} //}}}\n\n\t//{{{ Instance variables\n\tprivate String path;\n\tprivate String[] messages;\n\tprivate Font plainFont;\n\tprivate Font boldFont;\n\tprivate FontMetrics plainFM;\n\tprivate FontMetrics boldFM;", "functions": [{"function_name": "getListCellRendererComponent", "code": "\tpublic Component getListCellRendererComponent(JList list, Object value,\n\t\tint index, boolean isSelected, boolean cellHasFocus)\n\t{\n\t\tErrorListDialog.ErrorEntry entry = (ErrorListDialog.ErrorEntry)value;\n\t\tthis.path = entry.path + \":\";\n\t\tthis.messages = entry.messages;\n\t\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getPreferredSize", "code": "\tpublic Dimension getPreferredSize()\n\t{\n\t\tint width = boldFM.stringWidth(path);\n\t\tint height = boldFM.getHeight();\n\t\tfor(int i = 0; i < messages.length; i++)\n\t\t{\n\t\t\twidth = Math.max(plainFM.stringWidth(messages[i]),width);\n\t\t\theight += plainFM.getHeight();\n\t\t}\n\n\t\tInsets insets = getBorder().getBorderInsets(this);\n\t\twidth += insets.left + insets.right;\n\t\theight += insets.top + insets.bottom;\n\n\t\treturn new Dimension(width,height);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [3, 9], [7, 10], [8, 11], [2, 12], [4, 13], [5, 14], [12, 15], [3, 16], [3, 17], [3, 18], [16, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 3], [10, 7], [11, 8], [12, 2], [13, 4], [14, 5], [15, 12], [16, 3], [17, 3], [18, 3], [19, 16], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "paintComponent", "code": "\tpublic void paintComponent(Graphics g)\n\t{\n\t\tInsets insets = getBorder().getBorderInsets(this);\n\t\tg.setFont(boldFont);\n\t\tg.drawString(path,insets.left,insets.top + boldFM.getAscent());\n\t\tint y = insets.top + boldFM.getHeight() + 2;\n\t\tg.setFont(plainFont);\n\t\tfor(int i = 0; i < messages.length; i++)\n\t\t{\n\t\t\tg.drawString(messages[i],insets.left,y + plainFM.getAscent());\n\t\t\ty += plainFM.getHeight();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [2, 9], [7, 10], [3, 11], [1, 12], [1, 13], [1, 14], [9, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [16, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 2], [10, 7], [11, 3], [12, 1], [13, 1], [14, 1], [15, 9], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [21, 16], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "ErrorListCellRenderer", "code": "\tErrorListCellRenderer()\n\t{\n\t\tplainFont = UIManager.getFont(\"Label.font\");\n\t\tboldFont = new Font(plainFont.getName(),Font.BOLD,plainFont.getSize());\n\t\tplainFM = getFontMetrics(plainFont);\n\t\tboldFM = getFontMetrics(boldFont);\n\n\t\tsetBorder(new EmptyBorder(2,2,2,2));", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [6, 12], [6, 13], [6, 14], [9, 15], [9, 16], [10, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [12, 6], [13, 6], [14, 6], [15, 9], [16, 9], [17, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 1}
{"sample_id": "ant-1.4-189", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/Available.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Available", "code": "public class Available extends Task implements Condition {\n\n    private String property;\n    private String classname;\n    private File file;\n    private Path filepath;\n    private String resource;\n    private String type;\n    private Path classpath;\n    private AntClassLoader loader;\n    private String value = \"true\";\n\n    public void setClasspath(Path classpath) {\n        createClasspath().append(classpath);\n    }\n\n    public Path createClasspath() {\n        if (this.classpath == null) {\n            this.classpath = new Path(project);\n        }\n        return this.classpath.createPath();\n    }\n\n    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);\n    }\n\n    public void setFilepath(Path filepath) {\n        createFilepath().append(filepath);\n    }\n    \n    public Path createFilepath() {\n        if (this.filepath == null) {\n            this.filepath = new Path(project);\n        }\n        return this.filepath.createPath();\n    }\n\n    public void setProperty(String property) {\n        this.property = property;\n    }\n\n    public void setValue(String value) {\n        this.value = value;\n    }\n\n    public void setClassname(String classname) {\n        if (!\"\".equals(classname)) {\n            this.classname = classname;\n        }\n    }\n\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    public void setResource(String resource) {\n        this.resource = resource;\n    }\n\n    public void setType(String type) {\n        this.type = type;\n    }\n\n    public void execute() throws BuildException {\n        if (property == null) {\n            throw new BuildException(\"property attribute is required\", location);\n        }\n\n        if (eval()) {\n            this.project.setProperty(property, value);\n        }\n    }\n        \n    public boolean  eval() throws BuildException {\n        if (classname == null && file == null && resource == null) {\n            throw new BuildException(\"At least one of (classname|file|resource) is required\", location);\n        }\n\n        if (type != null){\n            if (!type.equalsIgnoreCase(\"file\") && !type.equalsIgnoreCase(\"dir\")){\n                throw new BuildException(\"Type must be one of either dir or file\");\n            }\n        }\n\n        if (classpath != null) {\n            classpath.setProject(project);\n            this.loader = new AntClassLoader(project, classpath);\n        }\n\n        if ((classname != null) && !checkClass(classname)) {\n            log(\"Unable to load class \" + classname + \" to set property \" + property, Project.MSG_VERBOSE);\n            return false;\n        }\n        \n        if ((file != null) && !checkFile()) {\n            log(\"Unable to find \" + file + \" to set property \" + property, Project.MSG_VERBOSE);\n            return false;\n        }\n        \n        if ((resource != null) && !checkResource(resource)) {\n            log(\"Unable to load resource \" + resource + \" to set property \" + property, Project.MSG_VERBOSE);\n            return false;\n        }\n\n        if (loader != null) {\n            loader.cleanup();\n        }\n\n        return true;\n    }\n\n    private boolean checkFile() {\n        if (filepath == null) {\n            return checkFile(file);\n        } else {\n            String[] paths = filepath.list();\n            for(int i = 0; i < paths.length; ++i) {\n                log(\"Searching \" + paths[i], Project.MSG_VERBOSE);\n                if(new File(paths[i], file.getName()).isFile()) {\n                    return true;\n                }\n            }\n        }\n        return false;\n    }\n\n    private boolean checkFile(File file) {\n        if (type != null) {\n            if (type.equalsIgnoreCase(\"dir\")) {\n                return file.isDirectory();\n            } else if (type.equalsIgnoreCase(\"file\")) {\n                return file.isFile();\n            }\n        }\n        return file.exists();\n    }\n\n    private boolean checkResource(String resource) {\n        if (loader != null) {\n            return (loader.getResourceAsStream(resource) != null);\n        } else {\n            ClassLoader cL = this.getClass().getClassLoader();\n            if (cL != null) {\n                return (cL.getResourceAsStream(resource) != null);\n            } else {\n                return \n                    (ClassLoader.getSystemResourceAsStream(resource) != null);\n            }\n        }\n    }\n\n    private boolean checkClass(String classname) {\n        try {\n            if (loader != null) {\n                loader.loadClass(classname);\n            } else {\n                ClassLoader l = this.getClass().getClassLoader();\n                if (l != null) {\n                    l.loadClass(classname);\n                } else {\n                    Class.forName(classname);\n                }\n            }\n            return true;\n        } catch (ClassNotFoundException e) {\n            return false;\n        } catch (NoClassDefFoundError e) {\n            return false;", "functions": [{"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        createClasspath().append(classpath);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (this.classpath == null) {\n            this.classpath = new Path(project);\n        }\n        return this.classpath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFilepath", "code": "    public void setFilepath(Path filepath) {\n        createFilepath().append(filepath);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createFilepath", "code": "    public Path createFilepath() {\n        if (this.filepath == null) {\n            this.filepath = new Path(project);\n        }\n        return this.filepath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setProperty", "code": "    public void setProperty(String property) {\n        this.property = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValue", "code": "    public void setValue(String value) {\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClassname", "code": "    public void setClassname(String classname) {\n        if (!\"\".equals(classname)) {\n            this.classname = classname;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setResource", "code": "    public void setResource(String resource) {\n        this.resource = resource;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setType", "code": "    public void setType(String type) {\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (property == null) {\n            throw new BuildException(\"property attribute is required\", location);\n        }\n\n        if (eval()) {\n            this.project.setProperty(property, value);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "eval", "code": "    public boolean  eval() throws BuildException {\n        if (classname == null && file == null && resource == null) {\n            throw new BuildException(\"At least one of (classname|file|resource) is required\", location);\n        }\n\n        if (type != null){\n            if (!type.equalsIgnoreCase(\"file\") && !type.equalsIgnoreCase(\"dir\")){\n                throw new BuildException(\"Type must be one of either dir or file\");\n            }\n        }\n\n        if (classpath != null) {\n            classpath.setProject(project);\n            this.loader = new AntClassLoader(project, classpath);\n        }\n\n        if ((classname != null) && !checkClass(classname)) {\n            log(\"Unable to load class \" + classname + \" to set property \" + property, Project.MSG_VERBOSE);\n            return false;\n        }\n        \n        if ((file != null) && !checkFile()) {\n            log(\"Unable to find \" + file + \" to set property \" + property, Project.MSG_VERBOSE);\n            return false;\n        }\n        \n        if ((resource != null) && !checkResource(resource)) {\n            log(\"Unable to load resource \" + resource + \" to set property \" + property, Project.MSG_VERBOSE);\n            return false;\n        }\n\n        if (loader != null) {\n            loader.cleanup();\n        }\n\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [5, 13], [6, 14], [7, 15], [8, 16], [10, 17], [3, 18], [11, 19], [11, 20], [4, 21], [12, 22], [12, 23], [5, 24], [13, 25], [13, 26], [14, 27], [7, 28], [15, 29], [8, 30], [16, 31], [16, 32], [2, 33], [18, 34], [3, 35], [20, 36], [21, 37], [4, 38], [23, 39], [24, 40], [5, 41], [26, 42], [6, 43], [6, 44], [28, 45], [30, 46], [31, 47], [32, 48], [32, 49], [35, 50], [38, 51], [41, 52], [43, 53], [28, 54], [45, 55], [45, 56], [46, 57], [48, 58], [49, 59], [50, 60], [51, 61], [52, 62], [54, 63], [55, 64], [56, 65], [60, 66], [60, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [67, 73], [69, 74], [71, 75], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 4], [13, 5], [14, 6], [15, 7], [16, 8], [17, 10], [18, 3], [19, 11], [20, 11], [21, 4], [22, 12], [23, 12], [24, 5], [25, 13], [26, 13], [27, 14], [28, 7], [29, 15], [30, 8], [31, 16], [32, 16], [33, 2], [34, 18], [35, 3], [36, 20], [37, 21], [38, 4], [39, 23], [40, 24], [41, 5], [42, 26], [43, 6], [44, 6], [45, 28], [46, 30], [47, 31], [48, 32], [49, 32], [50, 35], [51, 38], [52, 41], [53, 43], [54, 28], [55, 45], [56, 45], [57, 46], [58, 48], [59, 49], [60, 50], [61, 51], [62, 52], [63, 54], [64, 55], [65, 56], [66, 60], [67, 60], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 67], [74, 69], [75, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "checkFile", "code": "    private boolean checkFile() {\n        if (filepath == null) {\n            return checkFile(file);\n        } else {\n            String[] paths = filepath.list();\n            for(int i = 0; i < paths.length; ++i) {\n                log(\"Searching \" + paths[i], Project.MSG_VERBOSE);\n                if(new File(paths[i], file.getName()).isFile()) {\n                    return true;\n                }\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [2, 7], [4, 8], [5, 9], [7, 10], [5, 11], [6, 12], [11, 13], [5, 14], [5, 15], [11, 16], [13, 17], [13, 18], [14, 19], [16, 20], [19, 21], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 2], [8, 4], [9, 5], [10, 7], [11, 5], [12, 6], [13, 11], [14, 5], [15, 5], [16, 11], [17, 13], [18, 13], [19, 14], [20, 16], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "checkFile", "code": "    private boolean checkFile(File file) {\n        if (type != null) {\n            if (type.equalsIgnoreCase(\"dir\")) {\n                return file.isDirectory();\n            } else if (type.equalsIgnoreCase(\"file\")) {\n                return file.isFile();\n            }\n        }\n        return file.exists();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [8, 10], [6, 11], [9, 12], [8, 13], [10, 14], [11, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 8], [11, 6], [12, 9], [13, 8], [14, 10], [15, 11], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "checkResource", "code": "    private boolean checkResource(String resource) {\n        if (loader != null) {\n            return (loader.getResourceAsStream(resource) != null);\n        } else {\n            ClassLoader cL = this.getClass().getClassLoader();\n            if (cL != null) {\n                return (cL.getResourceAsStream(resource) != null);\n            } else {\n                return \n                    (ClassLoader.getSystemResourceAsStream(resource) != null);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [6, 9], [4, 10], [4, 11], [8, 12], [9, 13], [9, 14], [10, 15], [11, 16], [5, 17], [5, 18], [15, 19], [15, 20], [16, 21], [16, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 6], [10, 4], [11, 4], [12, 8], [13, 9], [14, 9], [15, 10], [16, 11], [17, 5], [18, 5], [19, 15], [20, 15], [21, 16], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "checkClass", "code": "    private boolean checkClass(String classname) {\n        try {\n            if (loader != null) {\n                loader.loadClass(classname);\n            } else {\n                ClassLoader l = this.getClass().getClassLoader();\n                if (l != null) {\n                    l.loadClass(classname);\n                } else {\n                    Class.forName(classname);\n                }\n            }\n            return true;\n        } catch (ClassNotFoundException e) {\n            return false;\n        } catch (NoClassDefFoundError e) {\n            return false;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "RETURN", "IF", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [8, 12], [6, 13], [6, 14], [10, 15], [13, 16], [6, 17], [16, 18], [13, 19], [13, 20], [14, 21], [14, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 5], [10, 6], [11, 7], [12, 8], [13, 6], [14, 6], [15, 10], [16, 13], [17, 6], [18, 16], [19, 13], [20, 13], [21, 14], [22, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}], "label": 0}
{"sample_id": "log4j-1.2-4967", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/performance/java/org/apache/log4j/performance/NewVsSetLen.java", "language": "java", "name": "org.apache.log4j.performance.NewVsSetLen", "code": "public class NewVsSetLen {\n\n  static String s;\n\n  static int BIGBUF_LEN = 1048576;\n  static int SBUF_LEN = 256;\n  static int RUN_LENGTH = BIGBUF_LEN/4;\n\n  static char[] sbuf = new char[SBUF_LEN];\n  static char[] bigbuf = new char[BIGBUF_LEN];\n\n  {\n    for(int i = 0; i < SBUF_LEN; i++) {\n      sbuf[i] = (char) (i);\n    }\n\n    for(int i = 0; i < BIGBUF_LEN; i++) {\n      bigbuf[i] = (char) (i);\n    }\n  }\n\n\n  static\n  public \n  void main(String[] args) {    \n \n    int t;\n\n    for(int len = SBUF_LEN; len <= BIGBUF_LEN; len*=4, RUN_LENGTH /= 4) {\n      System.out.println(\"<td>\"+len+\"\\n\");\n      for(int second = 0; second < 16;) {\n\tSystem.out.println(\"SECOND loop=\"+second +\", RUN_LENGTH=\"\n\t\t\t   +RUN_LENGTH+\", len=\"+len);\n\tt = (int)newBuffer(len, second);\n\n\tSystem.out.print(\"<td>\" + t);\n\tt = (int)setLen(len, second);\n\tSystem.out.println(\" <td>\" + t + \" \\n\");\n\tif(second == 0) {\n\t  second = 1;\n\t} else {\n\t  second *= 2;\n\t}\n      }\n    }\n    \n  }\n\n  static\n  double newBuffer(int size, int second) {    \n    long before = System.currentTimeMillis();\n\n    for(int i = 0; i < RUN_LENGTH; i++) {\n      StringBuffer buf = new StringBuffer(SBUF_LEN);\n      buf.append(sbuf, 0, sbuf.length);\n      buf.append(bigbuf, 0, size);\n      s = buf.toString();\n    }\n\n    for(int x = 0; x <  second; x++) {\n      StringBuffer buf = new StringBuffer(SBUF_LEN);\n      buf.append(sbuf, 0, SBUF_LEN);\n      s = buf.toString();\n    }\n    return (System.currentTimeMillis() - before)*1000.0/RUN_LENGTH;    \n  }\n\n  static\n  double setLen(int size, int second) {\n    long before = System.currentTimeMillis();\n\n    StringBuffer buf = new StringBuffer(SBUF_LEN);\n\n    for(int i = 0; i < RUN_LENGTH; i++) {\n      buf.append(sbuf, 0, sbuf.length);\n      buf.append(bigbuf, 0, size);\n      s = buf.toString();\n      buf.setLength(0);\n    }\n\n    for(int x = 0; x < second; x++) {\n      buf.append(sbuf, 0, SBUF_LEN);\n      s = buf.toString();\n      buf.setLength(0);\n    }\n    return (System.currentTimeMillis() - before)*1000.0/RUN_LENGTH;    ", "functions": [{"function_name": "main", "code": "  void main(String[] args) {    \n \n    int t;\n\n    for(int len = SBUF_LEN; len <= BIGBUF_LEN; len*=4, RUN_LENGTH /= 4) {\n      System.out.println(\"<td>\"+len+\"\\n\");\n      for(int second = 0; second < 16;) {\n\tSystem.out.println(\"SECOND loop=\"+second +\", RUN_LENGTH=\"\n\t\t\t   +RUN_LENGTH+\", len=\"+len);\n\tt = (int)newBuffer(len, second);\n\n\tSystem.out.print(\"<td>\" + t);\n\tt = (int)setLen(len, second);\n\tSystem.out.println(\" <td>\" + t + \" \\n\");\n\tif(second == 0) {\n\t  second = 1;\n\t} else {\n\t  second *= 2;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [7, 10], [1, 11], [7, 12], [10, 13], [11, 14], [12, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [14, 22], [14, 23], [15, 24], [16, 25], [18, 26], [20, 27], [23, 28], [12, 29], [12, 30], [25, 31], [25, 32], [17, 33], [26, 34], [19, 35], [27, 36], [29, 37], [30, 38], [32, 39], [36, 40], [36, 41], [41, 42], [42, 43], [42, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 7], [11, 1], [12, 7], [13, 10], [14, 11], [15, 12], [16, 7], [17, 7], [18, 7], [19, 7], [20, 7], [21, 7], [22, 14], [23, 14], [24, 15], [25, 16], [26, 18], [27, 20], [28, 23], [29, 12], [30, 12], [31, 25], [32, 25], [33, 17], [34, 26], [35, 19], [36, 27], [37, 29], [38, 30], [39, 32], [40, 36], [41, 36], [42, 41], [43, 42], [44, 42], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "newBuffer", "code": "  double newBuffer(int size, int second) {    \n    long before = System.currentTimeMillis();\n\n    for(int i = 0; i < RUN_LENGTH; i++) {\n      StringBuffer buf = new StringBuffer(SBUF_LEN);\n      buf.append(sbuf, 0, sbuf.length);\n      buf.append(bigbuf, 0, size);\n      s = buf.toString();\n    }\n\n    for(int x = 0; x <  second; x++) {\n      StringBuffer buf = new StringBuffer(SBUF_LEN);\n      buf.append(sbuf, 0, SBUF_LEN);\n      s = buf.toString();\n    }\n    return (System.currentTimeMillis() - before)*1000.0/RUN_LENGTH;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [7, 10], [2, 11], [3, 12], [4, 13], [10, 14], [10, 15], [2, 16], [2, 17], [2, 18], [3, 19], [3, 20], [3, 21], [3, 22], [15, 23], [16, 24], [17, 25], [11, 26], [19, 27], [20, 28], [21, 29], [12, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 7], [11, 2], [12, 3], [13, 4], [14, 10], [15, 10], [16, 2], [17, 2], [18, 2], [19, 3], [20, 3], [21, 3], [22, 3], [23, 15], [24, 16], [25, 17], [26, 11], [27, 19], [28, 20], [29, 21], [30, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "setLen", "code": "  double setLen(int size, int second) {\n    long before = System.currentTimeMillis();\n\n    StringBuffer buf = new StringBuffer(SBUF_LEN);\n\n    for(int i = 0; i < RUN_LENGTH; i++) {\n      buf.append(sbuf, 0, sbuf.length);\n      buf.append(bigbuf, 0, size);\n      s = buf.toString();\n      buf.setLength(0);\n    }\n\n    for(int x = 0; x < second; x++) {\n      buf.append(sbuf, 0, SBUF_LEN);\n      s = buf.toString();\n      buf.setLength(0);\n    }\n    return (System.currentTimeMillis() - before)*1000.0/RUN_LENGTH;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [8, 11], [4, 12], [5, 13], [11, 14], [11, 15], [2, 16], [2, 17], [2, 18], [2, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [15, 25], [16, 26], [17, 27], [18, 28], [20, 29], [21, 30], [22, 31], [23, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 8], [12, 4], [13, 5], [14, 11], [15, 11], [16, 2], [17, 2], [18, 2], [19, 2], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 15], [26, 16], [27, 17], [28, 18], [29, 20], [30, 21], [31, 22], [32, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}], "label": 1}
{"sample_id": "camel-1.6-3214", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/event/EventConsumer.java", "language": "java", "name": "org.apache.camel.component.event.EventConsumer", "code": "public class EventConsumer extends DefaultConsumer<Exchange> {\n    private EventEndpoint endpoint;\n\n    public EventConsumer(EventEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        endpoint.consumerStarted(this);\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        endpoint.consumerStopped(this);\n        super.doStop();", "functions": [{"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        endpoint.consumerStarted(this);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        endpoint.consumerStopped(this);\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "EventConsumer", "code": "    public EventConsumer(EventEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.7-8041", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/templates/ElemText.java", "language": "java", "name": "org.apache.xalan.templates.ElemText", "code": "public class ElemText extends ElemTemplateElement\n{\n    static final long serialVersionUID = 1383140876182316711L;\n\n  /**\n   * Tells if this element should disable escaping.\n   * @serial\n   */\n  private boolean m_disableOutputEscaping = false;\n\n  /**\n   * Set the \"disable-output-escaping\" attribute.\n   * Normally, the xml output method escapes & and < (and\n   * possibly other characters) when outputting text nodes.\n   * This ensures that the output is well-formed XML. However,\n   * it is sometimes convenient to be able to produce output\n   * that is almost, but not quite well-formed XML; for\n   * example, the output may include ill-formed sections\n   * which are intended to be transformed into well-formed\n   * XML by a subsequent non-XML aware process. For this reason,\n   * XSLT provides a mechanism for disabling output escaping.\n   * An xsl:value-of or xsl:text element may have a\n   * disable-output-escaping attribute; the allowed values\n   * are yes or no; the default is no; if the value is yes,\n   * then a text node generated by instantiating the xsl:value-of\n   * or xsl:text element should be output without any escaping.\n   *\n   * @param v Boolean flag indicating whether this element should disable escaping\n   */\n  public void setDisableOutputEscaping(boolean v)\n  {\n    m_disableOutputEscaping = v;\n  }\n\n  /**\n   * Get the \"disable-output-escaping\" attribute.\n   * Normally, the xml output method escapes & and < (and\n   * possibly other characters) when outputting text nodes.\n   * This ensures that the output is well-formed XML. However,\n   * it is sometimes convenient to be able to produce output\n   * that is almost, but not quite well-formed XML; for\n   * example, the output may include ill-formed sections\n   * which are intended to be transformed into well-formed\n   * XML by a subsequent non-XML aware process. For this reason,\n   * XSLT provides a mechanism for disabling output escaping.\n   * An xsl:value-of or xsl:text element may have a\n   * disable-output-escaping attribute; the allowed values\n   * are yes or no; the default is no; if the value is yes,\n   * then a text node generated by instantiating the xsl:value-of\n   * or xsl:text element should be output without any escaping.\n   *\n   * @return Boolean flag indicating whether this element should disable escaping\n   */\n  public boolean getDisableOutputEscaping()\n  {\n    return m_disableOutputEscaping;\n  }\n\n  /**\n   * Get an integer representation of the element type.\n   *\n   * @return An integer representation of the element, defined in the\n   *     Constants class.\n   * @see org.apache.xalan.templates.Constants\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_TEXT;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The element's name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_TEXT_STRING;\n  }\n\n  /**\n   * Add a child to the child list.\n   *\n   * @param newChild Child to add to children list\n   *\n   * @return Child added to children list\n   *\n   * @throws DOMException\n   */\n  public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n  {\n\n    int type = ((ElemTemplateElement) newChild).getXSLToken();\n\n    switch (type)\n    {\n    case Constants.ELEMNAME_TEXTLITERALRESULT :\n      break;\n    default :\n      error(XSLTErrorResources.ER_CANNOT_ADD,\n            new Object[]{ newChild.getNodeName()});\n\n    }\n\n    return super.appendChild(newChild);", "functions": [{"function_name": "setDisableOutputEscaping", "code": "  public void setDisableOutputEscaping(boolean v)\n  {\n    m_disableOutputEscaping = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDisableOutputEscaping", "code": "  public boolean getDisableOutputEscaping()\n  {\n    return m_disableOutputEscaping;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_TEXT;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_TEXT_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "appendChild", "code": "  public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n  {\n\n    int type = ((ElemTemplateElement) newChild).getXSLToken();\n\n    switch (type)\n    {\n    case Constants.ELEMNAME_TEXTLITERALRESULT :\n      break;\n    default :\n      error(XSLTErrorResources.ER_CANNOT_ADD,\n            new Object[]{ newChild.getNodeName()});\n\n    }\n\n    return super.appendChild(newChild);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "PARAM", "BREAK_CONTINUE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "xalan-2.5-7244", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/trax/SAX2DOM.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.SAX2DOM", "code": "public class SAX2DOM implements ContentHandler, LexicalHandler, Constants {\n\n    private Node _root = null;\n    private Document _document = null;\n    private Stack _nodeStk = new Stack();\n    private Vector _namespaceDecls = null;\n\n    public SAX2DOM() throws ParserConfigurationException {\n\tfinal DocumentBuilderFactory factory = \n\t\tDocumentBuilderFactory.newInstance();\n\t_document = factory.newDocumentBuilder().newDocument();\n\t_root = _document;\n    }\n\n    public SAX2DOM(Node root) throws ParserConfigurationException {\n\t_root = root;\n\tif (root instanceof Document) {\n\t  _document = (Document)root;\n\t}\n\telse if (root != null) {\n\t  _document = root.getOwnerDocument();\n\t}\n\telse {\n\t  final DocumentBuilderFactory factory = \n\t\tDocumentBuilderFactory.newInstance();\n\t  _document = factory.newDocumentBuilder().newDocument();\n\t  _root = _document;\n\t}\n    }\n\n    public Node getDOM() {\n\treturn _root;\n    }\n\n    public void characters(char[] ch, int start, int length) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\n\tif (last != _document) {\n\t    final String text = new String(ch, start, length);\n\t    last.appendChild(_document.createTextNode(text));\n\t}\n    }\n\n    public void startDocument() {\n\t_nodeStk.push(_root);\n    }\n\n    public void endDocument() {\n        _nodeStk.pop();\n    }\n\n    public void startElement(String namespace, String localName, String qName,\n\tAttributes attrs) \n    {\n\tfinal Element tmp = (Element)_document.createElementNS(namespace, qName);\n\n\tif (_namespaceDecls != null) {\n\t    final int nDecls = _namespaceDecls.size();\n\t    for (int i = 0; i < nDecls; i++) {\n\t\tfinal String prefix = (String) _namespaceDecls.elementAt(i++);\n\n\t\tif (prefix == null || prefix.equals(EMPTYSTRING)) {\n\t\t    tmp.setAttributeNS(XMLNS_URI, XMLNS_PREFIX,\n\t\t\t(String) _namespaceDecls.elementAt(i));\n\t\t}\n\t\telse {\n\t\t    tmp.setAttributeNS(XMLNS_URI, XMLNS_STRING + prefix, \n\t\t\t(String) _namespaceDecls.elementAt(i));\n\t\t}\n\t    }\n\t    _namespaceDecls.clear();\n\t}\n\n\tfinal int nattrs = attrs.getLength();\n\tfor (int i = 0; i < nattrs; i++) {\n\t    if (attrs.getLocalName(i) == null) {\n\t\ttmp.setAttribute(attrs.getQName(i), attrs.getValue(i));\n\t    }\n\t    else {\n\t\ttmp.setAttributeNS(attrs.getURI(i), attrs.getQName(i), \n\t\t    attrs.getValue(i));\n\t    }\n\t}\n\n\tNode last = (Node)_nodeStk.peek();\n\tlast.appendChild(tmp);\n\n\t_nodeStk.push(tmp);\n    }\n\n    public void endElement(String namespace, String localName, String qName) {\n\t_nodeStk.pop();  \n    }\n\n    public void startPrefixMapping(String prefix, String uri) {\n\tif (_namespaceDecls == null) {\n\t    _namespaceDecls = new Vector(2);\n\t}\n\t_namespaceDecls.addElement(prefix);\n\t_namespaceDecls.addElement(uri);\n    }\n\n    public void endPrefixMapping(String prefix) {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void ignorableWhitespace(char[] ch, int start, int length) {\n    }\n\n    /**\n     * adds processing instruction node to DOM.\n     */\n    public void processingInstruction(String target, String data) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\tProcessingInstruction pi = _document.createProcessingInstruction(\n\t\ttarget, data);\n\tif (pi != null)  last.appendChild(pi);\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setDocumentLocator(Locator locator) {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void skippedEntity(String name) {\n    }\n\n\n    /**\n     * Lexical Handler method to create comment node in DOM tree.\n     */\n    public void comment(char[] ch, int start, int length) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\tComment comment = _document.createComment(new String(ch,start,length));\n\tif (comment != null) last.appendChild(comment);\n    }\n\n    public void startCDATA() { }\n    public void endCDATA() { }\n    public void startEntity(java.lang.String name) { }\n    public void endDTD() { }\n    public void endEntity(String name) { }\n    public void startDTD(String name, String publicId, String systemId)", "functions": [{"function_name": "getDOM", "code": "    public Node getDOM() {\n\treturn _root;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "characters", "code": "    public void characters(char[] ch, int start, int length) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\n\tif (last != _document) {\n\t    final String text = new String(ch, start, length);\n\t    last.appendChild(_document.createTextNode(text));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [8, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 8], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "startDocument", "code": "    public void startDocument() {\n\t_nodeStk.push(_root);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endDocument", "code": "    public void endDocument() {\n        _nodeStk.pop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startElement", "code": "    public void startElement(String namespace, String localName, String qName,\n\tAttributes attrs) \n    {\n\tfinal Element tmp = (Element)_document.createElementNS(namespace, qName);\n\n\tif (_namespaceDecls != null) {\n\t    final int nDecls = _namespaceDecls.size();\n\t    for (int i = 0; i < nDecls; i++) {\n\t\tfinal String prefix = (String) _namespaceDecls.elementAt(i++);\n\n\t\tif (prefix == null || prefix.equals(EMPTYSTRING)) {\n\t\t    tmp.setAttributeNS(XMLNS_URI, XMLNS_PREFIX,\n\t\t\t(String) _namespaceDecls.elementAt(i));\n\t\t}\n\t\telse {\n\t\t    tmp.setAttributeNS(XMLNS_URI, XMLNS_STRING + prefix, \n\t\t\t(String) _namespaceDecls.elementAt(i));\n\t\t}\n\t    }\n\t    _namespaceDecls.clear();\n\t}\n\n\tfinal int nattrs = attrs.getLength();\n\tfor (int i = 0; i < nattrs; i++) {\n\t    if (attrs.getLocalName(i) == null) {\n\t\ttmp.setAttribute(attrs.getQName(i), attrs.getValue(i));\n\t    }\n\t    else {\n\t\ttmp.setAttributeNS(attrs.getURI(i), attrs.getQName(i), \n\t\t    attrs.getValue(i));\n\t    }\n\t}\n\n\tNode last = (Node)_nodeStk.peek();\n\tlast.appendChild(tmp);\n\n\t_nodeStk.push(tmp);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [4, 13], [2, 14], [3, 15], [4, 16], [4, 17], [13, 18], [1, 19], [14, 20], [2, 21], [4, 22], [16, 23], [5, 24], [20, 25], [20, 26], [16, 27], [16, 28], [17, 29], [14, 30], [14, 31], [27, 32], [16, 33], [30, 34], [30, 35], [30, 36], [31, 37], [31, 38], [32, 39], [32, 40], [27, 41], [27, 42], [40, 43], [28, 44], [41, 45], [41, 46], [42, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 4], [14, 2], [15, 3], [16, 4], [17, 4], [18, 13], [19, 1], [20, 14], [21, 2], [22, 4], [23, 16], [24, 5], [25, 20], [26, 20], [27, 16], [28, 16], [29, 17], [30, 14], [31, 14], [32, 27], [33, 16], [34, 30], [35, 30], [36, 30], [37, 31], [38, 31], [39, 32], [40, 32], [41, 27], [42, 27], [43, 40], [44, 28], [45, 41], [46, 41], [47, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "endElement", "code": "    public void endElement(String namespace, String localName, String qName) {\n\t_nodeStk.pop();  ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startPrefixMapping", "code": "    public void startPrefixMapping(String prefix, String uri) {\n\tif (_namespaceDecls == null) {\n\t    _namespaceDecls = new Vector(2);\n\t}\n\t_namespaceDecls.addElement(prefix);\n\t_namespaceDecls.addElement(uri);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "endPrefixMapping", "code": "    public void endPrefixMapping(String prefix) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ignorableWhitespace", "code": "    public void ignorableWhitespace(char[] ch, int start, int length) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "processingInstruction", "code": "    public void processingInstruction(String target, String data) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\tProcessingInstruction pi = _document.createProcessingInstruction(\n\t\ttarget, data);\n\tif (pi != null)  last.appendChild(pi);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [3, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setDocumentLocator", "code": "    public void setDocumentLocator(Locator locator) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "skippedEntity", "code": "    public void skippedEntity(String name) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "comment", "code": "    public void comment(char[] ch, int start, int length) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\tComment comment = _document.createComment(new String(ch,start,length));\n\tif (comment != null) last.appendChild(comment);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [2, 10], [10, 11], [3, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 2], [11, 10], [12, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "startCDATA", "code": "    public void startCDATA() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endCDATA", "code": "    public void endCDATA() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "startEntity", "code": "    public void startEntity(java.lang.String name) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endDTD", "code": "    public void endDTD() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endEntity", "code": "    public void endEntity(String name) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startDTD", "code": "    public void startDTD(String name, String publicId, String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SAX2DOM", "code": "    public SAX2DOM() throws ParserConfigurationException {\n\tfinal DocumentBuilderFactory factory = \n\t\tDocumentBuilderFactory.newInstance();\n\t_document = factory.newDocumentBuilder().newDocument();\n\t_root = _document;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "SAX2DOM", "code": "    public SAX2DOM(Node root) throws ParserConfigurationException {\n\t_root = root;\n\tif (root instanceof Document) {\n\t  _document = (Document)root;\n\t}\n\telse if (root != null) {\n\t  _document = root.getOwnerDocument();\n\t}\n\telse {\n\t  final DocumentBuilderFactory factory = \n\t\tDocumentBuilderFactory.newInstance();\n\t  _document = factory.newDocumentBuilder().newDocument();\n\t  _root = _document;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [3, 6], [3, 7], [6, 8], [1, 9], [3, 10], [3, 11], [3, 12], [11, 13], [7, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 3], [7, 3], [8, 6], [9, 1], [10, 3], [11, 3], [12, 3], [13, 11], [14, 7], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "camel-1.2-1869", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/impl/ScheduledPollEndpoint.java", "language": "java", "name": "org.apache.camel.impl.ScheduledPollEndpoint", "code": "public abstract class ScheduledPollEndpoint<E extends Exchange> extends DefaultEndpoint<E> {\n    private Map consumerProperties;\n\n    protected ScheduledPollEndpoint(String endpointUri, Component component) {\n        super(endpointUri, component);\n    }\n\n    protected ScheduledPollEndpoint(String endpointUri, CamelContext context) {\n        super(endpointUri, context);\n    }\n\n    public Map getConsumerProperties() {\n        return consumerProperties;\n    }\n\n    public void setConsumerProperties(Map consumerProperties) {\n        this.consumerProperties = consumerProperties;\n    }\n\n    protected void configureConsumer(Consumer<E> consumer) throws Exception {\n        if (consumerProperties != null) {\n            IntrospectionSupport.setProperties(getContext().getTypeConverter(), consumer, consumerProperties);\n        }\n    }\n\n    public void configureProperties(Map options) {\n        Map consumerProperties = IntrospectionSupport.extractProperties(options, \"consumer.\");\n        if (consumerProperties != null) {\n            setConsumerProperties(consumerProperties);", "functions": [{"function_name": "getConsumerProperties", "code": "    public Map getConsumerProperties() {\n        return consumerProperties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConsumerProperties", "code": "    public void setConsumerProperties(Map consumerProperties) {\n        this.consumerProperties = consumerProperties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "configureConsumer", "code": "    protected void configureConsumer(Consumer<E> consumer) throws Exception {\n        if (consumerProperties != null) {\n            IntrospectionSupport.setProperties(getContext().getTypeConverter(), consumer, consumerProperties);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "configureProperties", "code": "    public void configureProperties(Map options) {\n        Map consumerProperties = IntrospectionSupport.extractProperties(options, \"consumer.\");\n        if (consumerProperties != null) {\n            setConsumerProperties(consumerProperties);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "ScheduledPollEndpoint", "code": "    protected ScheduledPollEndpoint(String endpointUri, Component component) {\n        super(endpointUri, component);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ScheduledPollEndpoint", "code": "    protected ScheduledPollEndpoint(String endpointUri, CamelContext context) {\n        super(endpointUri, context);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.2-4486", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "gnu/regexp/RETokenEndSub.java", "language": "java", "name": "gnu.regexp.RETokenEndSub", "code": "final class RETokenEndSub extends REToken {\n    RETokenEndSub(int subIndex) {\n\tsuper(subIndex);\n    }\n    \n    boolean match(CharIndexed input, REMatch mymatch) {\n\tmymatch.end[subIndex] = mymatch.index;\n\treturn next(input, mymatch);\n    }\n    \n    void dump(StringBuffer os) {", "functions": [{"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\tmymatch.end[subIndex] = mymatch.index;\n\treturn next(input, mymatch);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "dump", "code": "    void dump(StringBuffer os) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RETokenEndSub", "code": "    RETokenEndSub(int subIndex) {\n\tsuper(subIndex);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.0-3884", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/BeanShell.java", "language": "java", "name": "org.gjt.sp.jedit.BeanShell", "code": "public class BeanShell\n{\n\t//{{{ evalSelection() method\n\t/**\n\t * Evaluates the text selected in the specified text area.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void evalSelection(View view, JEditTextArea textArea)\n\t{\n\t\tString command = textArea.getSelectedText();\n\t\tif(command == null)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\t\tObject returnValue = eval(view,global,command);\n\t\tif(returnValue != null)\n\t\t\ttextArea.setSelectedText(returnValue.toString());\n\t} //}}}\n\n\t//{{{ showEvaluateDialog() method\n\t/**\n\t * Prompts for a BeanShell expression to evaluate.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void showEvaluateDialog(View view)\n\t{\n\t\tString command = GUIUtilities.input(view,\"beanshell-eval-input\",null);\n\t\tif(command != null)\n\t\t{\n\t\t\tif(!command.endsWith(\";\"))\n\t\t\t\tcommand = command + \";\";\n\n\t\t\tint repeat = view.getInputHandler().getRepeatCount();\n\n\t\t\tif(view.getMacroRecorder() != null)\n\t\t\t{\n\t\t\t\tview.getMacroRecorder().record(repeat,command);\n\t\t\t}\n\n\t\t\tObject returnValue = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < repeat; i++)\n\t\t\t\t{\n\t\t\t\t\treturnValue = _eval(view,global,command);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Throwable e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,BeanShell.class,e);\n\n\t\t\t\thandleException(view,null,e);\n\t\t\t}\n\n\t\t\tif(returnValue != null)\n\t\t\t{\n\t\t\t\tString[] args = { returnValue.toString() };\n\t\t\t\tGUIUtilities.message(view,\"beanshell-eval\",args);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ showEvaluateLinesDialog() method\n\t/**\n\t * Evaluates the specified script for each selected line.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static void showEvaluateLinesDialog(View view)\n\t{\n\t\tString command = GUIUtilities.input(view,\"beanshell-eval-line\",null);\n\n\t\tJEditTextArea textArea = view.getTextArea();\n\t\tBuffer buffer = view.getBuffer();\n\n\t\tSelection[] selection = textArea.getSelection();\n\t\tif(selection.length == 0 || command == null || command.length() == 0)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(!command.endsWith(\";\"))\n\t\t\tcommand = command + \";\";\n\n\t\tif(view.getMacroRecorder() != null)\n\t\t\tview.getMacroRecorder().record(1,command);\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\t\t\t\tfor(int j = s.getStartLine(); j <= s.getEndLine(); j++)\n\t\t\t\t{\n\t\t\t\t\t// if selection ends on the start of a\n\t\t\t\t\t// line, don't filter that line\n\t\t\t\t\tif(s.getEnd() == textArea.getLineStartOffset(j))\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tglobal.setVariable(\"line\",new Integer(j));\n\t\t\t\t\tglobal.setVariable(\"index\",new Integer(\n\t\t\t\t\t\tj - s.getStartLine()));\n\t\t\t\t\tint start = s.getStart(buffer,j);\n\t\t\t\t\tint end = s.getEnd(buffer,j);\n\t\t\t\t\tString text = buffer.getText(start,\n\t\t\t\t\t\tend - start);\n\t\t\t\t\tglobal.setVariable(\"text\",text);\n\n\t\t\t\t\tObject returnValue = _eval(view,global,command);\n\t\t\t\t\tif(returnValue != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tbuffer.remove(start,end - start);\n\t\t\t\t\t\tbuffer.insert(start,\n\t\t\t\t\t\t\treturnValue.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,BeanShell.class,e);\n\n\t\t\thandleException(view,null,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\ttextArea.selectNone();\n\t} //}}}\n\n\t//{{{ showRunScriptDialog() method\n\t/**\n\t * Prompts for a BeanShell script to run.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void showRunScriptDialog(View view)\n\t{\n\t\tMacros.showRunScriptDialog(view);\n\t} //}}}\n\n\t//{{{ runScript() method\n\t/**\n\t * Runs a BeanShell script. Errors are shown in a dialog box.\n\t * @param view The view\n\t * @param path For error reporting only\n\t * @param in The reader to read the script from. If null, script will\n\t * be read from the VFS corresponding to its path.\n\t * @param ownNamespace Macros are run in their own namespace, startup\n\t * scripts are run on the global namespace\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static void runScript(View view, String path, Reader in,\n\t\tboolean ownNamespace)\n\t{\n\t\ttry\n\t\t{\n\t\t\t_runScript(view,path,in,ownNamespace);\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,BeanShell.class,e);\n\n\t\t\thandleException(view,path,e);\n\t\t}\n\t} //}}}\n\n\t//{{{ _runScript() method\n\t/**\n\t * Runs a BeanShell script. Errors are passed to the caller.\n\t * @param view The view\n\t * @param path For error reporting only\n\t * @param in The reader to read the script from. If null, script will\n\t * be read from the VFS corresponding to its path.\n\t * @param ownNamespace Macros are run in their own namespace, startup\n\t * scripts are run on the global namespace\n\t * @exception Exception instances are thrown when various BeanShell errors\n\t * occur\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static void _runScript(View view, String path, Reader in,\n\t\tboolean ownNamespace) throws Exception\n\t{\n\t\tLog.log(Log.MESSAGE,BeanShell.class,\"Running script \" + path);\n\n\t\tNameSpace namespace;\n\t\tif(ownNamespace)\n\t\t\tnamespace = new NameSpace(global,\"script namespace\");\n\t\telse\n\t\t\tnamespace = global;\n\n\t\tInterpreter interp = createInterpreter(namespace);\n\n\t\tVFS vfs = null;\n\t\tObject session = null;\n\n\t\ttry\n\t\t{\n\t\t\tif(in == null)\n\t\t\t{\n\t\t\t\tBuffer buffer = jEdit.getBuffer(path);\n\n\t\t\t\tvfs = VFSManager.getVFSForPath(path);\n\t\t\t\tsession = vfs.createVFSSession(path,view);\n\t\t\t\tif(session == null)\n\t\t\t\t{\n\t\t\t\t\t// user cancelled???\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif(buffer != null)\n\t\t\t\t{\n\t\t\t\t\tif(!buffer.isLoaded())\n\t\t\t\t\t\tVFSManager.waitForRequests();\n\n\t\t\t\t\tin = new StringReader(buffer.getText(0,\n\t\t\t\t\t\tbuffer.getLength()));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tvfs._createInputStream(session,\n\t\t\t\t\t\tpath,false,view)));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(view != null)\n\t\t\t{\n\t\t\t\tEditPane editPane = view.getEditPane();\n\t\t\t\tinterp.set(\"view\",view);\n\t\t\t\tinterp.set(\"editPane\",editPane);\n\t\t\t\tinterp.set(\"buffer\",editPane.getBuffer());\n\t\t\t\tinterp.set(\"textArea\",editPane.getTextArea());\n\t\t\t}\n\n\t\t\trunning = true;\n\n\t\t\tinterp.eval(in,namespace,path);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tunwrapException(e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\trunning = false;\n\n\t\t\tif(session != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tvfs._endVFSSession(session,view);\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,BeanShell.class,io);\n\t\t\t\t\tGUIUtilities.error(view,\"read-error\",\n\t\t\t\t\t\tnew String[] { path, io.toString() });\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ eval() method\n\t/**\n\t * Evaluates the specified BeanShell expression. Errors are reported in\n\t * a dialog box.\n\t * @param view The view (may be null)\n\t * @param namespace The namespace\n\t * @param command The expression\n\t * @since jEdit 4.0pre8\n\t */\n\tpublic static Object eval(View view, NameSpace namespace, String command)\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn _eval(view,namespace,command);\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,BeanShell.class,e);\n\n\t\t\thandleException(view,null,e);\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ _eval() method\n\t/**\n\t * Evaluates the specified BeanShell expression. Unlike\n\t * <code>eval()</code>, this method passes any exceptions to the caller.\n\t *\n\t * @param view The view (may be null)\n\t * @param namespace The namespace\n\t * @param command The expression\n\t * @exception Exception instances are thrown when various BeanShell\n\t * errors occur\n\t * @since jEdit 3.2pre7\n\t */\n\tpublic static Object _eval(View view, NameSpace namespace, String command)\n\t\tthrows Exception\n\t{\n\t\tInterpreter interp = createInterpreter(namespace);\n\n\t\ttry\n\t\t{\n\t\t\tif(view != null)\n\t\t\t{\n\t\t\t\tEditPane editPane = view.getEditPane();\n\t\t\t\tinterp.set(\"view\",view);\n\t\t\t\tinterp.set(\"editPane\",editPane);\n\t\t\t\tinterp.set(\"buffer\",editPane.getBuffer());\n\t\t\t\tinterp.set(\"textArea\",editPane.getTextArea());\n\t\t\t}\n\n\t\t\treturn interp.eval(command);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tunwrapException(e);\n\t\t\t// never called\n\t\t\treturn null;\n\t\t}\n\t} //}}}\n\n\t//{{{ cacheBlock() method\n\t/**\n\t * Caches a block of code, returning a handle that can be passed to\n\t * runCachedBlock().\n\t * @param id An identifier. If null, a unique identifier is generated\n\t * @param code The code\n\t * @param childNamespace If the method body should be run in a new\n\t * namespace (slightly faster). Note that you must pass a null namespace\n\t * to the runCachedBlock() method if you do this\n\t * @exception Exception instances are thrown when various BeanShell errors\n\t * occur\n\t * @since jEdit 3.2pre5\n\t */\n\tpublic static String cacheBlock(String id, String code,\n\t\tboolean childNamespace) throws Exception\n\t{\n\t\tString name;\n\t\tif(id == null)\n\t\t\tname = \"b_\" + (cachedBlockCounter++);\n\t\telse\n\t\t\tname = \"b_\" + id;\n\n\t\tcode = \"setNameSpace(__cruft.namespace);\\n\"\n\t\t\t+ name\n\t\t\t+ \"(ns) {\\n\"\n\t\t\t+ \"setNameSpace(ns);\"\n\t\t\t+ code\n\t\t\t+ \"\\n}\";\n\n\t\t_eval(null,global,code);\n\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ runCachedBlock() method\n\t/**\n\t * Runs a cached block of code in the specified namespace. Faster than\n\t * evaluating the block each time.\n\t * @param id The identifier returned by cacheBlock()\n\t * @param view The view\n\t * @param namespace The namespace to run the code in. Can only be null if\n\t * childNamespace parameter was true in cacheBlock() call\n\t * @exception Exception instances are thrown when various BeanShell errors\n\t * occur\n\t * @since jEdit 3.2pre5\n\t */\n\tpublic static Object runCachedBlock(String id, View view, NameSpace namespace)\n\t\tthrows Exception\n\t{\n\t\tif(namespace == null)\n\t\t\tnamespace = global;\n\n\t\tObject[] args = { namespace };\n\n\t\ttry\n\t\t{\n\t\t\tif(view != null)\n\t\t\t{\n\t\t\t\tnamespace.setVariable(\"view\",view);\n\t\t\t\tEditPane editPane = view.getEditPane();\n\t\t\t\tnamespace.setVariable(\"editPane\",editPane);\n\t\t\t\tnamespace.setVariable(\"buffer\",editPane.getBuffer());\n\t\t\t\tnamespace.setVariable(\"textArea\",editPane.getTextArea());\n\t\t\t}\n\n\t\t\tObject retVal = internal.invokeMethod(id,args,interpForMethods);\n\t\t\tif(retVal instanceof Primitive)\n\t\t\t{\n\t\t\t\tif(retVal == Primitive.VOID)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn ((Primitive)retVal).getValue();\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn retVal;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tunwrapException(e);\n\t\t\t// never called\n\t\t\treturn null;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tnamespace.setVariable(\"view\",null);\n\t\t\t\tnamespace.setVariable(\"editPane\",null);\n\t\t\t\tnamespace.setVariable(\"buffer\",null);\n\t\t\t\tnamespace.setVariable(\"textArea\",null);\n\t\t\t}\n\t\t\tcatch(EvalError e)\n\t\t\t{\n\t\t\t\t// can't do much\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ isScriptRunning() method\n\t/**\n\t * Returns if a BeanShell script or macro is currently running.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static boolean isScriptRunning()\n\t{\n\t\treturn running;\n\t} //}}}\n\n\t//{{{ getNameSpace() method\n\t/**\n\t * Returns the global namespace.\n\t * @since jEdit 3.2pre5\n\t */\n\tpublic static NameSpace getNameSpace()\n\t{\n\t\treturn global;\n\t} //}}}\n\n\t//{{{ Deprecated functions\n\n\t//{{{ runScript() method\n\t/**\n\t * @deprecated The <code>rethrowBshErrors</code> parameter is now\n\t * obsolete; call <code>_runScript()</code> or <code>runScript()</code>\n\t * instead.\n\t */\n\tpublic static void runScript(View view, String path,\n\t\tboolean ownNamespace, boolean rethrowBshErrors)\n\t{\n\t\trunScript(view,path,null,ownNamespace);\n\t} //}}}\n\n\t//{{{ runScript() method\n\t/**\n\t * @deprecated The <code>rethrowBshErrors</code> parameter is now\n\t * obsolete; call <code>_runScript()</code> or <code>runScript()</code>\n\t * instead.\n\t */\n\tpublic static void runScript(View view, String path, Reader in,\n\t\tboolean ownNamespace, boolean rethrowBshErrors)\n\t{\n\t\trunScript(view,path,in,ownNamespace);\n\t} //}}}\n\n\t//{{{ eval() method\n\t/**\n\t * @deprecated The <code>rethrowBshErrors</code> parameter is now\n\t * obsolete; call <code>_eval()</code> or <code>eval()</code> instead.\n\t */\n\tpublic static Object eval(View view, String command,\n\t\tboolean rethrowBshErrors)\n\t{\n\t\treturn eval(view,global,command);\n\t} //}}}\n\n\t//{{{ eval() method\n\t/**\n\t * @deprecated The <code>rethrowBshErrors</code> parameter is now\n\t * obsolete; call <code>_eval()</code> or <code>eval()</code> instead.\n\t */\n\tpublic static Object eval(View view, NameSpace namespace,\n\t\tString command, boolean rethrowBshErrors)\n\t{\n\t\treturn eval(view,namespace,command);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Package-private members\n\n\t//{{{ init() method\n\tstatic void init()\n\t{\n\t\tBshClassManager.setClassLoader(new JARClassLoader());\n\n\t\tglobal = new NameSpace(\"jEdit embedded BeanShell interpreter\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.browser\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.gui\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.io\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.msg\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.options\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.pluginmgr\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.print\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.search\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.syntax\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.textarea\");\n\t\tglobal.importPackage(\"org.gjt.sp.util\");\n\n\t\tinterpForMethods = createInterpreter(global);\n\n\t\tinternal = (NameSpace)eval(null,\"__cruft = object();__cruft.namespace;\",false);\n\n\t\tLog.log(Log.DEBUG,BeanShell.class,\"BeanShell interpreter version \"\n\t\t\t+ Interpreter.VERSION);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate static Interpreter interpForMethods;\n\tprivate static NameSpace global;\n\tprivate static NameSpace internal;\n\tprivate static boolean running;\n\tprivate static int cachedBlockCounter;\n\t//}}}\n\n\t//{{{ unwrapException() method\n\t/**\n\t * This extracts an exception from a 'wrapping' exception, as BeanShell\n\t * sometimes throws. This gives the user a more accurate error traceback\n\t */\n\tprivate static void unwrapException(Exception e) throws Exception\n\t{\n\t\tif(e instanceof TargetError)\n\t\t{\n\t\t\tThrowable t = ((TargetError)e).getTarget();\n\t\t\tif(t instanceof Exception)\n\t\t\t\tthrow (Exception)t;\n\t\t\telse if(t instanceof Error)\n\t\t\t\tthrow (Error)t;\n\t\t}\n\n\t\tif(e instanceof InvocationTargetException)\n\t\t{\n\t\t\tThrowable t = ((InvocationTargetException)e).getTargetException();\n\t\t\tif(t instanceof Exception)\n\t\t\t\tthrow (Exception)t;\n\t\t\telse if(t instanceof Error)\n\t\t\t\tthrow (Error)t;\n\t\t}\n\n\t\tthrow e;\n\t} //}}}\n\n\t//{{{ handleException() method\n\tprivate static void handleException(View view, String path, Throwable t)\n\t{\n\t\tif(t instanceof IOException)\n\t\t{\n\t\t\tVFSManager.error(view,path,\"ioerror.read-error\",\n\t\t\t\tnew String[] { t.toString() });\n\t\t}\n\t\telse\n\t\t\tnew BeanShellErrorDialog(view,t.toString());\n\t} //}}}\n\n\t//{{{ createInterpreter() method\n\tprivate static Interpreter createInterpreter(NameSpace nameSpace)\n\t{\n\t\treturn new Interpreter(null,System.out,System.err,false,nameSpace);", "functions": [{"function_name": "evalSelection", "code": "\tpublic static void evalSelection(View view, JEditTextArea textArea)\n\t{\n\t\tString command = textArea.getSelectedText();\n\t\tif(command == null)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\t\tObject returnValue = eval(view,global,command);\n\t\tif(returnValue != null)\n\t\t\ttextArea.setSelectedText(returnValue.toString());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [1, 9], [7, 10], [2, 11], [3, 12], [8, 13], [4, 14], [9, 15], [3, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 1], [10, 7], [11, 2], [12, 3], [13, 8], [14, 4], [15, 9], [16, 3], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "showEvaluateDialog", "code": "\tpublic static void showEvaluateDialog(View view)\n\t{\n\t\tString command = GUIUtilities.input(view,\"beanshell-eval-input\",null);\n\t\tif(command != null)\n\t\t{\n\t\t\tif(!command.endsWith(\";\"))\n\t\t\t\tcommand = command + \";\";\n\n\t\t\tint repeat = view.getInputHandler().getRepeatCount();\n\n\t\t\tif(view.getMacroRecorder() != null)\n\t\t\t{\n\t\t\t\tview.getMacroRecorder().record(repeat,command);\n\t\t\t}\n\n\t\t\tObject returnValue = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < repeat; i++)\n\t\t\t\t{\n\t\t\t\t\treturnValue = _eval(view,global,command);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Throwable e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,BeanShell.class,e);\n\n\t\t\t\thandleException(view,null,e);\n\t\t\t}\n\n\t\t\tif(returnValue != null)\n\t\t\t{\n\t\t\t\tString[] args = { returnValue.toString() };\n\t\t\t\tGUIUtilities.message(view,\"beanshell-eval\",args);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CATCH", "LOOP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [2, 12], [5, 13], [6, 14], [6, 15], [8, 16], [10, 17], [12, 18], [12, 19], [5, 20], [13, 21], [15, 22], [7, 23], [16, 24], [16, 25], [9, 26], [10, 27], [17, 28], [5, 29], [14, 30], [14, 31], [8, 32], [26, 33], [27, 34], [29, 35], [30, 36], [15, 37], [15, 38], [32, 39], [34, 40], [20, 41], [37, 42], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 2], [13, 5], [14, 6], [15, 6], [16, 8], [17, 10], [18, 12], [19, 12], [20, 5], [21, 13], [22, 15], [23, 7], [24, 16], [25, 16], [26, 9], [27, 10], [28, 17], [29, 5], [30, 14], [31, 14], [32, 8], [33, 26], [34, 27], [35, 29], [36, 30], [37, 15], [38, 15], [39, 32], [40, 34], [41, 20], [42, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "showEvaluateLinesDialog", "code": "\tpublic static void showEvaluateLinesDialog(View view)\n\t{\n\t\tString command = GUIUtilities.input(view,\"beanshell-eval-line\",null);\n\n\t\tJEditTextArea textArea = view.getTextArea();\n\t\tBuffer buffer = view.getBuffer();\n\n\t\tSelection[] selection = textArea.getSelection();\n\t\tif(selection.length == 0 || command == null || command.length() == 0)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(!command.endsWith(\";\"))\n\t\t\tcommand = command + \";\";\n\n\t\tif(view.getMacroRecorder() != null)\n\t\t\tview.getMacroRecorder().record(1,command);\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\t\t\t\tfor(int j = s.getStartLine(); j <= s.getEndLine(); j++)\n\t\t\t\t{\n\t\t\t\t\t// if selection ends on the start of a\n\t\t\t\t\t// line, don't filter that line\n\t\t\t\t\tif(s.getEnd() == textArea.getLineStartOffset(j))\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tglobal.setVariable(\"line\",new Integer(j));\n\t\t\t\t\tglobal.setVariable(\"index\",new Integer(\n\t\t\t\t\t\tj - s.getStartLine()));\n\t\t\t\t\tint start = s.getStart(buffer,j);\n\t\t\t\t\tint end = s.getEnd(buffer,j);\n\t\t\t\t\tString text = buffer.getText(start,\n\t\t\t\t\t\tend - start);\n\t\t\t\t\tglobal.setVariable(\"text\",text);\n\n\t\t\t\t\tObject returnValue = _eval(view,global,command);\n\t\t\t\t\tif(returnValue != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tbuffer.remove(start,end - start);\n\t\t\t\t\t\tbuffer.insert(start,\n\t\t\t\t\t\t\treturnValue.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,BeanShell.class,e);\n\n\t\t\thandleException(view,null,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\ttextArea.selectNone();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CATCH", "LOOP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [2, 13], [3, 14], [4, 15], [1, 16], [12, 17], [1, 18], [2, 19], [13, 20], [13, 21], [3, 22], [14, 23], [4, 24], [15, 25], [15, 26], [5, 27], [6, 28], [7, 29], [8, 30], [11, 31], [11, 32], [12, 33], [12, 34], [19, 35], [22, 36], [4, 37], [25, 38], [25, 39], [26, 40], [26, 41], [30, 42], [30, 43], [31, 44], [33, 45], [12, 46], [35, 47], [36, 48], [37, 49], [40, 50], [41, 51], [33, 52], [33, 53], [33, 54], [33, 55], [33, 56], [33, 57], [45, 58], [52, 59], [33, 60], [33, 61], [33, 62], [57, 63], [57, 64], [33, 65], [59, 66], [53, 67], [60, 68], [54, 69], [55, 70], [56, 71], [61, 72], [61, 73], [62, 74], [62, 75], [64, 76], [64, 77], [52, 78], [52, 79], [69, 80], [72, 81], [78, 82], [79, 83], [81, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 2], [14, 3], [15, 4], [16, 1], [17, 12], [18, 1], [19, 2], [20, 13], [21, 13], [22, 3], [23, 14], [24, 4], [25, 15], [26, 15], [27, 5], [28, 6], [29, 7], [30, 8], [31, 11], [32, 11], [33, 12], [34, 12], [35, 19], [36, 22], [37, 4], [38, 25], [39, 25], [40, 26], [41, 26], [42, 30], [43, 30], [44, 31], [45, 33], [46, 12], [47, 35], [48, 36], [49, 37], [50, 40], [51, 41], [52, 33], [53, 33], [54, 33], [55, 33], [56, 33], [57, 33], [58, 45], [59, 52], [60, 33], [61, 33], [62, 33], [63, 57], [64, 57], [65, 33], [66, 59], [67, 53], [68, 60], [69, 54], [70, 55], [71, 56], [72, 61], [73, 61], [74, 62], [75, 62], [76, 64], [77, 64], [78, 52], [79, 52], [80, 69], [81, 72], [82, 78], [83, 79], [84, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "showRunScriptDialog", "code": "\tpublic static void showRunScriptDialog(View view)\n\t{\n\t\tMacros.showRunScriptDialog(view);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "runScript", "code": "\tpublic static void runScript(View view, String path, Reader in,\n\t\tboolean ownNamespace)\n\t{\n\t\ttry\n\t\t{\n\t\t\t_runScript(view,path,in,ownNamespace);\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,BeanShell.class,e);\n\n\t\t\thandleException(view,path,e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "_runScript", "code": "\tpublic static void _runScript(View view, String path, Reader in,\n\t\tboolean ownNamespace) throws Exception\n\t{\n\t\tLog.log(Log.MESSAGE,BeanShell.class,\"Running script \" + path);\n\n\t\tNameSpace namespace;\n\t\tif(ownNamespace)\n\t\t\tnamespace = new NameSpace(global,\"script namespace\");\n\t\telse\n\t\t\tnamespace = global;\n\n\t\tInterpreter interp = createInterpreter(namespace);\n\n\t\tVFS vfs = null;\n\t\tObject session = null;\n\n\t\ttry\n\t\t{\n\t\t\tif(in == null)\n\t\t\t{\n\t\t\t\tBuffer buffer = jEdit.getBuffer(path);\n\n\t\t\t\tvfs = VFSManager.getVFSForPath(path);\n\t\t\t\tsession = vfs.createVFSSession(path,view);\n\t\t\t\tif(session == null)\n\t\t\t\t{\n\t\t\t\t\t// user cancelled???\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif(buffer != null)\n\t\t\t\t{\n\t\t\t\t\tif(!buffer.isLoaded())\n\t\t\t\t\t\tVFSManager.waitForRequests();\n\n\t\t\t\t\tin = new StringReader(buffer.getText(0,\n\t\t\t\t\t\tbuffer.getLength()));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tvfs._createInputStream(session,\n\t\t\t\t\t\tpath,false,view)));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(view != null)\n\t\t\t{\n\t\t\t\tEditPane editPane = view.getEditPane();\n\t\t\t\tinterp.set(\"view\",view);\n\t\t\t\tinterp.set(\"editPane\",editPane);\n\t\t\t\tinterp.set(\"buffer\",editPane.getBuffer());\n\t\t\t\tinterp.set(\"textArea\",editPane.getTextArea());\n\t\t\t}\n\n\t\t\trunning = true;\n\n\t\t\tinterp.eval(in,namespace,path);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tunwrapException(e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\trunning = false;\n\n\t\t\tif(session != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tvfs._endVFSSession(session,view);\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,BeanShell.class,io);\n\t\t\t\t\tGUIUtilities.error(view,\"read-error\",\n\t\t\t\t\t\tnew String[] { path, io.toString() });", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "CATCH", "IF", "IF", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [1, 14], [0, 15], [11, 16], [1, 17], [1, 18], [1, 19], [13, 20], [14, 21], [2, 22], [3, 23], [4, 24], [5, 25], [5, 26], [15, 27], [11, 28], [16, 29], [17, 30], [12, 31], [19, 32], [13, 33], [20, 34], [14, 35], [14, 36], [14, 37], [21, 38], [26, 39], [27, 40], [28, 41], [13, 42], [13, 43], [13, 44], [13, 45], [35, 46], [36, 47], [14, 48], [14, 49], [39, 50], [28, 51], [42, 52], [42, 53], [43, 54], [43, 55], [44, 56], [45, 57], [33, 58], [35, 59], [46, 60], [36, 61], [47, 62], [48, 63], [49, 64], [37, 65], [41, 66], [41, 67], [35, 68], [35, 69], [59, 70], [66, 71], [68, 72], [69, 73], [59, 74], [72, 75], [73, 76], [66, 77], [75, 78], [76, 79], [76, 80], [78, 81], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 1], [15, 0], [16, 11], [17, 1], [18, 1], [19, 1], [20, 13], [21, 14], [22, 2], [23, 3], [24, 4], [25, 5], [26, 5], [27, 15], [28, 11], [29, 16], [30, 17], [31, 12], [32, 19], [33, 13], [34, 20], [35, 14], [36, 14], [37, 14], [38, 21], [39, 26], [40, 27], [41, 28], [42, 13], [43, 13], [44, 13], [45, 13], [46, 35], [47, 36], [48, 14], [49, 14], [50, 39], [51, 28], [52, 42], [53, 42], [54, 43], [55, 43], [56, 44], [57, 45], [58, 33], [59, 35], [60, 46], [61, 36], [62, 47], [63, 48], [64, 49], [65, 37], [66, 41], [67, 41], [68, 35], [69, 35], [70, 59], [71, 66], [72, 68], [73, 69], [74, 59], [75, 72], [76, 73], [77, 66], [78, 75], [79, 76], [80, 76], [81, 78], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81]]}, {"function_name": "eval", "code": "\tpublic static Object eval(View view, NameSpace namespace, String command)\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn _eval(view,namespace,command);\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,BeanShell.class,e);\n\n\t\t\thandleException(view,null,e);\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [8, 9], [7, 10], [7, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 8], [10, 7], [11, 7], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "_eval", "code": "\tpublic static Object _eval(View view, NameSpace namespace, String command)\n\t\tthrows Exception\n\t{\n\t\tInterpreter interp = createInterpreter(namespace);\n\n\t\ttry\n\t\t{\n\t\t\tif(view != null)\n\t\t\t{\n\t\t\t\tEditPane editPane = view.getEditPane();\n\t\t\t\tinterp.set(\"view\",view);\n\t\t\t\tinterp.set(\"editPane\",editPane);\n\t\t\t\tinterp.set(\"buffer\",editPane.getBuffer());\n\t\t\t\tinterp.set(\"textArea\",editPane.getTextArea());\n\t\t\t}\n\n\t\t\treturn interp.eval(command);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tunwrapException(e);\n\t\t\t// never called\n\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "RETURN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [7, 10], [8, 11], [2, 12], [9, 13], [6, 14], [8, 15], [11, 16], [8, 17], [8, 18], [8, 19], [8, 20], [17, 21], [17, 22], [18, 23], [18, 24], [19, 25], [20, 26], [15, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 7], [11, 8], [12, 2], [13, 9], [14, 6], [15, 8], [16, 11], [17, 8], [18, 8], [19, 8], [20, 8], [21, 17], [22, 17], [23, 18], [24, 18], [25, 19], [26, 20], [27, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "cacheBlock", "code": "\tpublic static String cacheBlock(String id, String code,\n\t\tboolean childNamespace) throws Exception\n\t{\n\t\tString name;\n\t\tif(id == null)\n\t\t\tname = \"b_\" + (cachedBlockCounter++);\n\t\telse\n\t\t\tname = \"b_\" + id;\n\n\t\tcode = \"setNameSpace(__cruft.namespace);\\n\"\n\t\t\t+ name\n\t\t\t+ \"(ns) {\\n\"\n\t\t\t+ \"setNameSpace(ns);\"\n\t\t\t+ code\n\t\t\t+ \"\\n}\";\n\n\t\t_eval(null,global,code);\n\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [7, 10], [8, 11], [2, 12], [2, 13], [9, 14], [11, 15], [11, 16], [12, 17], [13, 18], [16, 19], [17, 20], [18, 21], [19, 22], [19, 23], [23, 24], [23, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 7], [11, 8], [12, 2], [13, 2], [14, 9], [15, 11], [16, 11], [17, 12], [18, 13], [19, 16], [20, 17], [21, 18], [22, 19], [23, 19], [24, 23], [25, 23], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "runCachedBlock", "code": "\tpublic static Object runCachedBlock(String id, View view, NameSpace namespace)\n\t\tthrows Exception\n\t{\n\t\tif(namespace == null)\n\t\t\tnamespace = global;\n\n\t\tObject[] args = { namespace };\n\n\t\ttry\n\t\t{\n\t\t\tif(view != null)\n\t\t\t{\n\t\t\t\tnamespace.setVariable(\"view\",view);\n\t\t\t\tEditPane editPane = view.getEditPane();\n\t\t\t\tnamespace.setVariable(\"editPane\",editPane);\n\t\t\t\tnamespace.setVariable(\"buffer\",editPane.getBuffer());\n\t\t\t\tnamespace.setVariable(\"textArea\",editPane.getTextArea());\n\t\t\t}\n\n\t\t\tObject retVal = internal.invokeMethod(id,args,interpForMethods);\n\t\t\tif(retVal instanceof Primitive)\n\t\t\t{\n\t\t\t\tif(retVal == Primitive.VOID)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn ((Primitive)retVal).getValue();\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn retVal;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tunwrapException(e);\n\t\t\t// never called\n\t\t\treturn null;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tnamespace.setVariable(\"view\",null);\n\t\t\t\tnamespace.setVariable(\"editPane\",null);\n\t\t\t\tnamespace.setVariable(\"buffer\",null);\n\t\t\t\tnamespace.setVariable(\"textArea\",null);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "TRY", "CATCH", "IF", "VAR_DECL", "IF", "BINARY_OP", "CATCH", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [3, 12], [7, 13], [8, 14], [9, 15], [9, 16], [11, 17], [3, 18], [12, 19], [7, 20], [7, 21], [7, 22], [7, 23], [14, 24], [8, 25], [9, 26], [10, 27], [11, 28], [17, 29], [20, 30], [20, 31], [21, 32], [21, 33], [22, 34], [22, 35], [23, 36], [23, 37], [26, 38], [26, 39], [26, 40], [11, 41], [11, 42], [11, 43], [11, 44], [39, 45], [41, 46], [41, 47], [42, 48], [42, 49], [43, 50], [28, 51], [44, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 3], [13, 7], [14, 8], [15, 9], [16, 9], [17, 11], [18, 3], [19, 12], [20, 7], [21, 7], [22, 7], [23, 7], [24, 14], [25, 8], [26, 9], [27, 10], [28, 11], [29, 17], [30, 20], [31, 20], [32, 21], [33, 21], [34, 22], [35, 22], [36, 23], [37, 23], [38, 26], [39, 26], [40, 26], [41, 11], [42, 11], [43, 11], [44, 11], [45, 39], [46, 41], [47, 41], [48, 42], [49, 42], [50, 43], [51, 28], [52, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "isScriptRunning", "code": "\tpublic static boolean isScriptRunning()\n\t{\n\t\treturn running;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNameSpace", "code": "\tpublic static NameSpace getNameSpace()\n\t{\n\t\treturn global;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "runScript", "code": "\tpublic static void runScript(View view, String path,\n\t\tboolean ownNamespace, boolean rethrowBshErrors)\n\t{\n\t\trunScript(view,path,null,ownNamespace);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "runScript", "code": "\tpublic static void runScript(View view, String path, Reader in,\n\t\tboolean ownNamespace, boolean rethrowBshErrors)\n\t{\n\t\trunScript(view,path,in,ownNamespace);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "eval", "code": "\tpublic static Object eval(View view, String command,\n\t\tboolean rethrowBshErrors)\n\t{\n\t\treturn eval(view,global,command);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "eval", "code": "\tpublic static Object eval(View view, NameSpace namespace,\n\t\tString command, boolean rethrowBshErrors)\n\t{\n\t\treturn eval(view,namespace,command);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "init", "code": "\tstatic void init()\n\t{\n\t\tBshClassManager.setClassLoader(new JARClassLoader());\n\n\t\tglobal = new NameSpace(\"jEdit embedded BeanShell interpreter\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.browser\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.gui\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.io\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.msg\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.options\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.pluginmgr\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.print\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.search\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.syntax\");\n\t\tglobal.importPackage(\"org.gjt.sp.jedit.textarea\");\n\t\tglobal.importPackage(\"org.gjt.sp.util\");\n\n\t\tinterpForMethods = createInterpreter(global);\n\n\t\tinternal = (NameSpace)eval(null,\"__cruft = object();__cruft.namespace;\",false);\n\n\t\tLog.log(Log.DEBUG,BeanShell.class,\"BeanShell interpreter version \"\n\t\t\t+ Interpreter.VERSION);", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [3, 19], [4, 20], [5, 21], [6, 22], [7, 23], [8, 24], [9, 25], [10, 26], [11, 27], [12, 28], [13, 29], [14, 30], [15, 31], [16, 32], [17, 33], [18, 34], [2, 35], [32, 36], [35, 37], [35, 38], [35, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 3], [20, 4], [21, 5], [22, 6], [23, 7], [24, 8], [25, 9], [26, 10], [27, 11], [28, 12], [29, 13], [30, 14], [31, 15], [32, 16], [33, 17], [34, 18], [35, 2], [36, 32], [37, 35], [38, 35], [39, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "unwrapException", "code": "\tprivate static void unwrapException(Exception e) throws Exception\n\t{\n\t\tif(e instanceof TargetError)\n\t\t{\n\t\t\tThrowable t = ((TargetError)e).getTarget();\n\t\t\tif(t instanceof Exception)\n\t\t\t\tthrow (Exception)t;\n\t\t\telse if(t instanceof Error)\n\t\t\t\tthrow (Error)t;\n\t\t}\n\n\t\tif(e instanceof InvocationTargetException)\n\t\t{\n\t\t\tThrowable t = ((InvocationTargetException)e).getTargetException();\n\t\t\tif(t instanceof Exception)\n\t\t\t\tthrow (Exception)t;\n\t\t\telse if(t instanceof Error)\n\t\t\t\tthrow (Error)t;\n\t\t}\n\n\t\tthrow e;", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "THROW_RAISE", "BINARY_OP", "IF", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [2, 7], [2, 8], [3, 9], [3, 10], [7, 11], [7, 12], [7, 13], [9, 14], [9, 15], [9, 16], [11, 17], [11, 18], [14, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 2], [8, 2], [9, 3], [10, 3], [11, 7], [12, 7], [13, 7], [14, 9], [15, 9], [16, 9], [17, 11], [18, 11], [19, 14], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "handleException", "code": "\tprivate static void handleException(View view, String path, Throwable t)\n\t{\n\t\tif(t instanceof IOException)\n\t\t{\n\t\t\tVFSManager.error(view,path,\"ioerror.read-error\",\n\t\t\t\tnew String[] { t.toString() });\n\t\t}\n\t\telse\n\t\t\tnew BeanShellErrorDialog(view,t.toString());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [1, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [8, 1], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createInterpreter", "code": "\tprivate static Interpreter createInterpreter(NameSpace nameSpace)\n\t{\n\t\treturn new Interpreter(null,System.out,System.err,false,nameSpace);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "ivy-2.0-3437", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/repository/vfs/VfsResource.java", "language": "java", "name": "org.apache.ivy.plugins.repository.vfs.VfsResource", "code": "public class VfsResource implements Resource {\n    private String vfsURI;\n\n    private FileSystemManager fsManager;\n\n    private transient boolean init = false;\n\n    private transient boolean exists;\n\n    private transient long lastModified;\n\n    private transient long contentLength;\n\n    private transient FileContent content = null;\n\n    private transient FileObject resourceImpl;\n\n    // Constructor\n    public VfsResource(String vfsURI, FileSystemManager fsManager) {\n        this.vfsURI = vfsURI;\n        this.fsManager = fsManager;\n        this.init = false;\n    }\n\n    private void init() {\n        if (!init) {\n            try {\n                resourceImpl = fsManager.resolveFile(vfsURI);\n                content = resourceImpl.getContent();\n\n                exists = resourceImpl.exists();\n                lastModified = content.getLastModifiedTime();\n                contentLength = content.getSize();\n            } catch (FileSystemException e) {\n                Message.verbose(e.getLocalizedMessage());\n                exists = false;\n                lastModified = 0;\n                contentLength = 0;\n            }\n\n            init = true;\n        }\n    }\n\n    /**\n     * Get a list of direct descendents of the given resource. Note that attempts to get a list of\n     * children does <emphasize>not</emphasize> result in an error. Instead an error message is\n     * logged and an empty ArrayList returned.\n     * \n     * @return A <code>ArrayList</code> of VFSResources\n     */\n    public List getChildren() {\n        init();\n        ArrayList list = new ArrayList();\n        try {\n            if ((resourceImpl != null) && resourceImpl.exists()\n                    && (resourceImpl.getType() == FileType.FOLDER)) {\n                FileObject[] children = resourceImpl.getChildren();\n                for (int i = 0; i < children.length; i++) {\n                    FileObject child = children[i];\n                    list.add(normalize(child.getName().getURI()));\n                }\n            }\n        } catch (IOException e) {\n            Message.verbose(e.getLocalizedMessage());\n        }\n        return list;\n    }\n\n    public FileContent getContent() {\n        init();\n        return content;\n    }\n\n    /**\n     * Get the name of the resource.\n     * \n     * @return a <code>String</code> representing the Resource URL.\n     */\n    public String getName() {\n        return normalize(vfsURI);\n    }\n\n    public Resource clone(String cloneName) {\n        return new VfsResource(cloneName, fsManager);\n    }\n\n    /**\n     * The VFS FileName getURI method seems to have a bug in it where file: URIs will have 4 forward\n     * slashes instead of 3.\n     * \n     * @param vfsURI\n     * @return a normalized <class>String</class> representing the VFS URI\n     */\n    public static String normalize(String vfsURI) {\n        if (vfsURI == null) {\n            return \"\";\n        }\n\n        if (vfsURI.startsWith(\"file:////\")) {\n            vfsURI = vfsURI.replaceFirst(\"////\", \"///\");\n        }\n        return vfsURI;\n    }\n\n    /**\n     * Get the last modification time of the resource.\n     * \n     * @return a <code>long</code> indicating last modified time.\n     */\n    public long getLastModified() {\n        init();\n        return lastModified;\n    }\n\n    /**\n     * Get the size of the resource\n     * \n     * @return a <code>long</code> representing the size of the resource (in bytes).\n     */\n    public long getContentLength() {\n        init();\n        return contentLength;\n    }\n\n    /**\n     * Flag indicating whether a resource is available for querying\n     * \n     * @return <code>true</code> if the resource is available for querying, <code>false</code>\n     *         otherwise.\n     */\n    public boolean exists() {\n        init();\n        return exists;\n    }\n\n    /**\n     * Return a flag indicating whether a provided VFS resource physically exists\n     * \n     * @return <code>true</code> if the resource physically exists, <code>false</code>\n     *         otherwise.\n     */\n    public boolean physicallyExists() {\n        // TODO: there is no need for this method anymore, replace it by calling exists();\n        init();\n\n        try {\n            return resourceImpl.exists();\n            // originally I only checked for a FileSystemException. I expanded it to\n            // include all exceptions when I found it would throw a NPE exception when the query was\n            // run on non-wellformed VFS URI.\n        } catch (Exception e) {\n            Message.verbose(e.getLocalizedMessage());\n            return false;\n        }\n    }\n\n    public String toString() {\n        return VfsResolver.prepareForDisplay(getName());\n    }\n\n    public boolean isLocal() {\n        return getName().startsWith(\"file:\");\n    }\n\n    public InputStream openStream() throws IOException {\n        return getContent().getInputStream();", "functions": [{"function_name": "init", "code": "    private void init() {\n        if (!init) {\n            try {\n                resourceImpl = fsManager.resolveFile(vfsURI);\n                content = resourceImpl.getContent();\n\n                exists = resourceImpl.exists();\n                lastModified = content.getLastModifiedTime();\n                contentLength = content.getSize();\n            } catch (FileSystemException e) {\n                Message.verbose(e.getLocalizedMessage());\n                exists = false;\n                lastModified = 0;\n                contentLength = 0;\n            }\n\n            init = true;", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "ASSIGN", "CATCH", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [4, 11], [4, 12], [4, 13], [4, 14], [6, 15], [7, 16], [8, 17], [9, 18], [10, 19], [11, 20], [12, 21], [13, 22], [14, 23], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 4], [12, 4], [13, 4], [14, 4], [15, 6], [16, 7], [17, 8], [18, 9], [19, 10], [20, 11], [21, 12], [22, 13], [23, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getChildren", "code": "    public List getChildren() {\n        init();\n        ArrayList list = new ArrayList();\n        try {\n            if ((resourceImpl != null) && resourceImpl.exists()\n                    && (resourceImpl.getType() == FileType.FOLDER)) {\n                FileObject[] children = resourceImpl.getChildren();\n                for (int i = 0; i < children.length; i++) {\n                    FileObject child = children[i];\n                    list.add(normalize(child.getName().getURI()));\n                }\n            }\n        } catch (IOException e) {\n            Message.verbose(e.getLocalizedMessage());\n        }\n        return list;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [0, 6], [5, 7], [3, 8], [4, 9], [5, 10], [5, 11], [7, 12], [7, 13], [9, 14], [10, 15], [12, 16], [13, 17], [13, 18], [10, 19], [11, 20], [18, 21], [10, 22], [10, 23], [22, 24], [24, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 0], [7, 5], [8, 3], [9, 4], [10, 5], [11, 5], [12, 7], [13, 7], [14, 9], [15, 10], [16, 12], [17, 13], [18, 13], [19, 10], [20, 11], [21, 18], [22, 10], [23, 10], [24, 22], [25, 24], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getContent", "code": "    public FileContent getContent() {\n        init();\n        return content;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "    public String getName() {\n        return normalize(vfsURI);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clone", "code": "    public Resource clone(String cloneName) {\n        return new VfsResource(cloneName, fsManager);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "normalize", "code": "    public static String normalize(String vfsURI) {\n        if (vfsURI == null) {\n            return \"\";\n        }\n\n        if (vfsURI.startsWith(\"file:////\")) {\n            vfsURI = vfsURI.replaceFirst(\"////\", \"///\");\n        }\n        return vfsURI;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [5, 7], [3, 8], [6, 9], [2, 10], [8, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 5], [8, 3], [9, 6], [10, 2], [11, 8], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getLastModified", "code": "    public long getLastModified() {\n        init();\n        return lastModified;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getContentLength", "code": "    public long getContentLength() {\n        init();\n        return contentLength;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "exists", "code": "    public boolean exists() {\n        init();\n        return exists;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "physicallyExists", "code": "    public boolean physicallyExists() {\n        // TODO: there is no need for this method anymore, replace it by calling exists();\n        init();\n\n        try {\n            return resourceImpl.exists();\n            // originally I only checked for a FileSystemException. I expanded it to\n            // include all exceptions when I found it would throw a NPE exception when the query was\n            // run on non-wellformed VFS URI.\n        } catch (Exception e) {\n            Message.verbose(e.getLocalizedMessage());\n            return false;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [0, 4], [2, 5], [3, 6], [5, 7], [2, 8], [8, 9], [1, 0], [2, 1], [3, 1], [4, 0], [5, 2], [6, 3], [7, 5], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "toString", "code": "    public String toString() {\n        return VfsResolver.prepareForDisplay(getName());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isLocal", "code": "    public boolean isLocal() {\n        return getName().startsWith(\"file:\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "openStream", "code": "    public InputStream openStream() throws IOException {\n        return getContent().getInputStream();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "VfsResource", "code": "    public VfsResource(String vfsURI, FileSystemManager fsManager) {\n        this.vfsURI = vfsURI;\n        this.fsManager = fsManager;\n        this.init = false;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-2.0-5496", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/SupBookRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.SupBookRecord", "code": "public class SupBookRecord extends Record\n{\n    public final static short sid = 0x1AE;\n    private short             field_1_number_of_sheets;\n    private short             field_2_flag;\n\n\n    public SupBookRecord()\n    {\n        setFlag((short)0x401);\n    }\n\n    /**\n     * Constructs a Extern Sheet record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x16 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n    public SupBookRecord(short id, short size, byte[] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a Extern Sheet record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x1ae or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n    public SupBookRecord(short id, short size, byte[] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An Supbook RECORD\");\n        }\n    }\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     * @param offset of the record's data (provided a big array of the file)\n     */\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_number_of_sheets = LittleEndian.getShort(data,offset+0);\n        field_2_flag = LittleEndian.getShort(data,offset+2);\n    }\n\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n        buffer.append(\"[SUPBOOK]\\n\");\n        buffer.append(\"numberosheets = \").append(getNumberOfSheets()).append('\\n');\n        buffer.append(\"flag          = \").append(getFlag()).append('\\n');\n        buffer.append(\"[/SUPBOOK]\\n\");\n        return buffer.toString();\n    }\n\n    /**\n     * called by the class that is responsible for writing this sucker.\n     * Subclasses should implement this so that their data is passed back in a\n     * byte array.\n     *\n     * @param offset to begin writing at\n     * @param data byte array containing instance data\n     * @return number of bytes written\n     */\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short) 4);\n        LittleEndian.putShort(data, 4 + offset, field_1_number_of_sheets);\n        LittleEndian.putShort(data, 6 + offset, field_2_flag);\n\n        return getRecordSize();\n    }\n\n    public void setNumberOfSheets(short number){\n        field_1_number_of_sheets = number;\n    }\n\n    public short getNumberOfSheets(){\n        return field_1_number_of_sheets;\n    }\n\n    public void setFlag(short flag){\n        field_2_flag = flag;\n    }\n\n    public short getFlag() {\n        return field_2_flag;\n    }\n\n    public int getRecordSize()\n    {\n        return 4 + 4;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An Supbook RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_number_of_sheets = LittleEndian.getShort(data,offset+0);\n        field_2_flag = LittleEndian.getShort(data,offset+2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [6, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 6], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n        buffer.append(\"[SUPBOOK]\\n\");\n        buffer.append(\"numberosheets = \").append(getNumberOfSheets()).append('\\n');\n        buffer.append(\"flag          = \").append(getFlag()).append('\\n');\n        buffer.append(\"[/SUPBOOK]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [5, 10], [5, 11], [6, 12], [6, 13], [6, 14], [7, 15], [2, 16], [10, 17], [11, 18], [13, 19], [14, 20], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 5], [11, 5], [12, 6], [13, 6], [14, 6], [15, 7], [16, 2], [17, 10], [18, 11], [19, 13], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short) 4);\n        LittleEndian.putShort(data, 4 + offset, field_1_number_of_sheets);\n        LittleEndian.putShort(data, 6 + offset, field_2_flag);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [7, 15], [11, 16], [12, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 7], [16, 11], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setNumberOfSheets", "code": "    public void setNumberOfSheets(short number){\n        field_1_number_of_sheets = number;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumberOfSheets", "code": "    public short getNumberOfSheets(){\n        return field_1_number_of_sheets;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFlag", "code": "    public void setFlag(short flag){\n        field_2_flag = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFlag", "code": "    public short getFlag() {\n        return field_2_flag;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4 + 4;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SupBookRecord", "code": "    public SupBookRecord()\n    {\n        setFlag((short)0x401);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SupBookRecord", "code": "    public SupBookRecord(short id, short size, byte[] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SupBookRecord", "code": "    public SupBookRecord(short id, short size, byte[] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-1.5-5182", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/CalcCountRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.CalcCountRecord", "code": "public class CalcCountRecord\n    extends Record\n{\n    public final static short sid = 0xC;\n    private short             field_1_iterations;\n\n    public CalcCountRecord()\n    {\n    }\n\n    /**\n     * Constructs a CalcCountRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0xC or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     *\n     */\n\n    public CalcCountRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a CalcCountRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0xC or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public CalcCountRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An Calc Count RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_iterations = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set the number of iterations to perform\n     * @param iterations to perform\n     */\n\n    public void setIterations(short iterations)\n    {\n        field_1_iterations = iterations;\n    }\n\n    /**\n     * get the number of iterations to perform\n     * @return iterations\n     */\n\n    public short getIterations()\n    {\n        return field_1_iterations;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[CALCCOUNT]\\n\");\n        buffer.append(\"    .iterations     = \")\n            .append(Integer.toHexString(getIterations())).append(\"\\n\");\n        buffer.append(\"[/CALCCOUNT]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, getIterations());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An Calc Count RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_iterations = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setIterations", "code": "    public void setIterations(short iterations)\n    {\n        field_1_iterations = iterations;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIterations", "code": "    public short getIterations()\n    {\n        return field_1_iterations;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[CALCCOUNT]\\n\");\n        buffer.append(\"    .iterations     = \")\n            .append(Integer.toHexString(getIterations())).append(\"\\n\");\n        buffer.append(\"[/CALCCOUNT]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, getIterations());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [6, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 6], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "CalcCountRecord", "code": "    public CalcCountRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "CalcCountRecord", "code": "    public CalcCountRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "CalcCountRecord", "code": "    public CalcCountRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.4-2509", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/Logger.java", "language": "java", "name": "org.apache.camel.processor.Logger", "code": "public class Logger implements Processor {\n    private Log log;\n    private LoggingLevel level;\n    private ExchangeFormatter formatter = DefaultExchangeFormatter.getInstance();\n\n    public Logger() {\n        this(LogFactory.getLog(Logger.class));\n    }\n\n    public Logger(Log log) {\n        this(log, LoggingLevel.INFO);\n    }\n\n    public Logger(Log log, LoggingLevel level) {\n        this.log = log;\n        this.level = level;\n    }\n\n    public Logger(String logName) {\n        this(LogFactory.getLog(logName));\n    }\n\n    public Logger(String logName, LoggingLevel level) {\n        this(LogFactory.getLog(logName), level);\n    }\n\n    public Logger(Log log, ExchangeFormatter formatter) {\n        this(log);\n        this.formatter = formatter;\n    }\n\n    @Override\n    public String toString() {\n        return \"Logger[\" + log + \"]\";\n    }\n\n    public void process(Exchange exchange) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(logMessage(exchange));\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(logMessage(exchange));\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(logMessage(exchange));\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.info(logMessage(exchange));\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(logMessage(exchange));\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(logMessage(exchange));\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + logMessage(exchange));\n        }\n    }\n\n    public void process(Exchange exchange, Throwable exception) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(logMessage(exchange), exception);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(logMessage(exchange), exception);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(logMessage(exchange), exception);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.info(logMessage(exchange), exception);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(logMessage(exchange), exception);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(logMessage(exchange), exception);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + logMessage(exchange));\n        }\n    }\n\n    public void log(String message) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(message);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(message);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(message);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.debug(message);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(message);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(message);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + message);\n        }\n    }\n\n    public void log(String message, Throwable exception) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(message, exception);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(message, exception);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(message, exception);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.debug(message, exception);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(message, exception);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(message, exception);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + message, exception);\n        }\n    }\n\n    protected Object logMessage(Exchange exchange) {\n        return formatter.format(exchange);\n    }\n\n    public Log getLog() {\n        return log;\n    }\n\n    public void setLog(Log log) {\n        this.log = log;\n    }\n\n    public LoggingLevel getLevel() {\n        return level;\n    }\n\n    public void setLevel(LoggingLevel level) {\n        this.level = level;\n    }\n\n    public void setFormatter(ExchangeFormatter formatter) {\n        this.formatter = formatter;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Logger[\" + log + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(logMessage(exchange));\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(logMessage(exchange));\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(logMessage(exchange));\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.info(logMessage(exchange));\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(logMessage(exchange));\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(logMessage(exchange));\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + logMessage(exchange));", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [4, 16], [6, 17], [8, 18], [10, 19], [12, 20], [14, 21], [15, 22], [22, 23], [22, 24], [4, 25], [6, 26], [8, 27], [10, 28], [12, 29], [14, 30], [24, 31], [24, 32], [25, 33], [26, 34], [27, 35], [28, 36], [29, 37], [30, 38], [32, 39], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 4], [17, 6], [18, 8], [19, 10], [20, 12], [21, 14], [22, 15], [23, 22], [24, 22], [25, 4], [26, 6], [27, 8], [28, 10], [29, 12], [30, 14], [31, 24], [32, 24], [33, 25], [34, 26], [35, 27], [36, 28], [37, 29], [38, 30], [39, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "process", "code": "    public void process(Exchange exchange, Throwable exception) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(logMessage(exchange), exception);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(logMessage(exchange), exception);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(logMessage(exchange), exception);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.info(logMessage(exchange), exception);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(logMessage(exchange), exception);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(logMessage(exchange), exception);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + logMessage(exchange));", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [5, 17], [7, 18], [9, 19], [11, 20], [13, 21], [15, 22], [16, 23], [23, 24], [23, 25], [5, 26], [7, 27], [9, 28], [11, 29], [13, 30], [15, 31], [25, 32], [25, 33], [26, 34], [27, 35], [28, 36], [29, 37], [30, 38], [31, 39], [33, 40], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 5], [18, 7], [19, 9], [20, 11], [21, 13], [22, 15], [23, 16], [24, 23], [25, 23], [26, 5], [27, 7], [28, 9], [29, 11], [30, 13], [31, 15], [32, 25], [33, 25], [34, 26], [35, 27], [36, 28], [37, 29], [38, 30], [39, 31], [40, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "log", "code": "    public void log(String message) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(message);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(message);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(message);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.debug(message);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(message);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(message);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + message);", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [4, 16], [6, 17], [8, 18], [10, 19], [12, 20], [14, 21], [15, 22], [22, 23], [4, 24], [6, 25], [8, 26], [10, 27], [12, 28], [14, 29], [23, 30], [23, 31], [31, 32], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 4], [17, 6], [18, 8], [19, 10], [20, 12], [21, 14], [22, 15], [23, 22], [24, 4], [25, 6], [26, 8], [27, 10], [28, 12], [29, 14], [30, 23], [31, 23], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "log", "code": "    public void log(String message, Throwable exception) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(message, exception);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(message, exception);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(message, exception);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.debug(message, exception);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(message, exception);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(message, exception);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + message, exception);", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [5, 17], [7, 18], [9, 19], [11, 20], [13, 21], [15, 22], [16, 23], [23, 24], [5, 25], [7, 26], [9, 27], [11, 28], [13, 29], [15, 30], [24, 31], [24, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 5], [18, 7], [19, 9], [20, 11], [21, 13], [22, 15], [23, 16], [24, 23], [25, 5], [26, 7], [27, 9], [28, 11], [29, 13], [30, 15], [31, 24], [32, 24], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "logMessage", "code": "    protected Object logMessage(Exchange exchange) {\n        return formatter.format(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLog", "code": "    public Log getLog() {\n        return log;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLog", "code": "    public void setLog(Log log) {\n        this.log = log;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLevel", "code": "    public LoggingLevel getLevel() {\n        return level;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLevel", "code": "    public void setLevel(LoggingLevel level) {\n        this.level = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFormatter", "code": "    public void setFormatter(ExchangeFormatter formatter) {\n        this.formatter = formatter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Logger", "code": "    public Logger() {\n        this(LogFactory.getLog(Logger.class));", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Logger", "code": "    public Logger(Log log) {\n        this(log, LoggingLevel.INFO);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Logger", "code": "    public Logger(Log log, LoggingLevel level) {\n        this.log = log;\n        this.level = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Logger", "code": "    public Logger(String logName) {\n        this(LogFactory.getLog(logName));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Logger", "code": "    public Logger(String logName, LoggingLevel level) {\n        this(LogFactory.getLog(logName), level);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Logger", "code": "    public Logger(Log log, ExchangeFormatter formatter) {\n        this(log);\n        this.formatter = formatter;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "camel-1.4-2178", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/builder/sql/SqlBuilder.java", "language": "java", "name": "org.apache.camel.builder.sql.SqlBuilder", "code": "public class SqlBuilder<E extends Exchange> implements Expression<E>, Predicate<E> {\n\n    private Query query;\n    private Map<String, Object> variables = new HashMap<String, Object>();\n\n    public SqlBuilder(Query query) {\n        this.query = query;\n    }\n\n    public Object evaluate(E exchange) {\n        return evaluateQuery(exchange);\n    }\n\n    public boolean matches(E exchange) {\n        List list = evaluateQuery(exchange);\n        return matches(exchange, list);\n    }\n\n    public void assertMatches(String text, E exchange) throws AssertionError {\n        List list = evaluateQuery(exchange);\n        if (!matches(exchange, list)) {\n            throw new AssertionError(this + \" failed on \" + exchange + \" as found \" + list);\n        }\n    }\n\n\n    /**\n     * Creates a new builder for the given SQL query string\n     * \n     * @param sql the SQL query to perform\n     * @return a new builder\n     * @throws QueryParseException if there is an issue with the SQL\n     */\n    public static <E extends Exchange> SqlBuilder<E> sql(String sql) throws QueryParseException {\n        Query q = new Query();\n        q.parse(sql);\n        return new SqlBuilder(q);\n    }\n\n    /**\n     * Adds the variable value to be used by the SQL query\n     */\n    public SqlBuilder<E> variable(String name, Object value) {\n        getVariables().put(name, value);\n        return this;\n    }\n\n    public Map<String, Object> getVariables() {\n        return variables;\n    }\n\n    public void setVariables(Map<String, Object> properties) {\n        this.variables = properties;\n    }\n\n    protected boolean matches(E exchange, List list) {\n        return ObjectHelper.matches(list);\n    }\n\n    protected List evaluateQuery(E exchange) {\n        configureQuery(exchange);\n        Message in = exchange.getIn();\n        List list = in.getBody(List.class);\n        if (list == null) {\n            list = Collections.singletonList(in.getBody());\n        }\n        try {\n            return query.execute(list).getResults();\n        } catch (QueryExecutionException e) {\n            throw new RuntimeExpressionException(e);\n        }\n    }\n\n    protected void configureQuery(E exchange) {\n        addVariables(exchange.getProperties());\n        addVariables(exchange.getIn().getHeaders());\n        addVariables(getVariables());\n\n        query.setVariable(\"exchange\", exchange);\n        query.setVariable(\"in\", exchange.getIn());\n        query.setVariable(\"out\", exchange.getOut());\n    }\n\n    protected void addVariables(Map<String, Object> map) {\n        Set<Map.Entry<String, Object>> propertyEntries = map.entrySet();\n        for (Map.Entry<String, Object> entry : propertyEntries) {\n            query.setVariable(entry.getKey(), entry.getValue());", "functions": [{"function_name": "evaluate", "code": "    public Object evaluate(E exchange) {\n        return evaluateQuery(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "matches", "code": "    public boolean matches(E exchange) {\n        List list = evaluateQuery(exchange);\n        return matches(exchange, list);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "assertMatches", "code": "    public void assertMatches(String text, E exchange) throws AssertionError {\n        List list = evaluateQuery(exchange);\n        if (!matches(exchange, list)) {\n            throw new AssertionError(this + \" failed on \" + exchange + \" as found \" + list);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [6, 8], [8, 9], [9, 10], [10, 11], [10, 12], [12, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 6], [9, 8], [10, 9], [11, 10], [12, 10], [13, 12], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "sql", "code": "    public static <E extends Exchange> SqlBuilder<E> sql(String sql) throws QueryParseException {\n        Query q = new Query();\n        q.parse(sql);\n        return new SqlBuilder(q);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "variable", "code": "    public SqlBuilder<E> variable(String name, Object value) {\n        getVariables().put(name, value);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getVariables", "code": "    public Map<String, Object> getVariables() {\n        return variables;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVariables", "code": "    public void setVariables(Map<String, Object> properties) {\n        this.variables = properties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "matches", "code": "    protected boolean matches(E exchange, List list) {\n        return ObjectHelper.matches(list);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "evaluateQuery", "code": "    protected List evaluateQuery(E exchange) {\n        configureQuery(exchange);\n        Message in = exchange.getIn();\n        List list = in.getBody(List.class);\n        if (list == null) {\n            list = Collections.singletonList(in.getBody());\n        }\n        try {\n            return query.execute(list).getResults();\n        } catch (QueryExecutionException e) {\n            throw new RuntimeExpressionException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [0, 9], [6, 10], [7, 11], [8, 12], [3, 13], [4, 14], [10, 15], [11, 16], [2, 17], [17, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 0], [10, 6], [11, 7], [12, 8], [13, 3], [14, 4], [15, 10], [16, 11], [17, 2], [18, 17], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "configureQuery", "code": "    protected void configureQuery(E exchange) {\n        addVariables(exchange.getProperties());\n        addVariables(exchange.getIn().getHeaders());\n        addVariables(getVariables());\n\n        query.setVariable(\"exchange\", exchange);\n        query.setVariable(\"in\", exchange.getIn());\n        query.setVariable(\"out\", exchange.getOut());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [3, 11], [4, 12], [5, 13], [6, 14], [7, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 3], [12, 4], [13, 5], [14, 6], [15, 7], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "addVariables", "code": "    protected void addVariables(Map<String, Object> map) {\n        Set<Map.Entry<String, Object>> propertyEntries = map.entrySet();\n        for (Map.Entry<String, Object> entry : propertyEntries) {\n            query.setVariable(entry.getKey(), entry.getValue());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "SqlBuilder", "code": "    public SqlBuilder(Query query) {\n        this.query = query;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.5-5680", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/PageBreakRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.PageBreakRecord", "code": "public class PageBreakRecord extends Record {\n   public static final short HORIZONTAL_SID = (short)0x1B;\n   public static final short VERTICAL_SID = (short)0x1A;\n   public short sid;\n   private short numBreaks;\n   private List breaks;\n   private Map BreakMap;\n      \n    /**\n     * Since both records store 2byte integers (short), no point in \n     * differentiating it in the records.\n     * <p>\n     * The subs (rows or columns, don't seem to be able to set but excel sets\n     * them automatically)\n     */\n    public class Break\n    {\n\n        public short main;\n        public short subFrom;\n        public short subTo;\n\n        public Break(short main, short subFrom, short subTo)\n        {\n            this.main = main;\n            this.subFrom = subFrom;\n            this.subTo = subTo;\n        }\n    }\n\n    public PageBreakRecord()\n    {\n\n    }\n\n    /**\n     * \n     * @param sid\n     */\n    public PageBreakRecord(short sid) {\n       super();\n       this.sid = sid;\n    }\n\n    public PageBreakRecord(short id, short size, byte data[])\n    {\n        super(id, size, data);\n        this.sid = id;\n    }\n\n    public PageBreakRecord(short id, short size, byte data[], int offset)\n    {\n        super(id, size, data, offset);\n        this.sid = id;\n    }\n\n    protected void fillFields(byte data[], short size, int offset)\n    {\n    \t  short loadedBreaks = LittleEndian.getShort(data, 0 + offset); \n        setNumBreaks(loadedBreaks);\n        int pos = 2;\n        for(int k = 0; k < loadedBreaks; k++)\n        {\n            addBreak((short)(LittleEndian.getShort(data, pos + offset) - 1), LittleEndian.getShort(data, pos + 2 + offset), LittleEndian.getShort(data, pos + 4 + offset));\n            pos += 6;\n        }\n\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public int serialize(int offset, byte data[])\n    {\n        int recordsize = getRecordSize();\n        int pos = 6;\n        LittleEndian.putShort(data, offset + 0, getSid());\n        LittleEndian.putShort(data, offset + 2, (short)(recordsize - 4));\n        LittleEndian.putShort(data, offset + 4, getNumBreaks());\n        for(Iterator iterator = getBreaksIterator(); iterator.hasNext();)\n        {\n            Break Break = (Break)iterator.next();\n            LittleEndian.putShort(data, offset + pos, (short)(Break.main + 1));\n            pos += 2;\n            LittleEndian.putShort(data, offset + pos, Break.subFrom);\n            pos += 2;\n            LittleEndian.putShort(data, offset + pos, Break.subTo);\n            pos += 2;\n        }\n\n        return recordsize;\n    }\n\n    protected void validateSid(short id)\n    {\n        if(id != HORIZONTAL_SID && id != VERTICAL_SID)\n            throw new RecordFormatException(\"NOT A HorizontalPageBreak or VerticalPageBreak RECORD!! \" + id);\n        else\n            return;\n    }\n\n    public short getNumBreaks()\n    {\n        return breaks != null ? (short)breaks.size() : numBreaks;\n    }\n\n    public void setNumBreaks(short numBreaks)\n    {\n        this.numBreaks = numBreaks;\n    }\n\n    public Iterator getBreaksIterator()\n    {\n        if(breaks == null)\n            return Collections.EMPTY_LIST.iterator();\n        else\n            return breaks.iterator();\n    }\n\n    public String toString()\n    {\n        StringBuffer retval = new StringBuffer();\n        \n        if (getSid() != HORIZONTAL_SID && getSid()!= VERTICAL_SID) \n            return \"[INVALIDPAGEBREAK]\\n     .sid =\"+getSid()+\"[INVALIDPAGEBREAK]\";\n        \n        String label;\n        String mainLabel;\n        String subLabel;\n        \n        if (getSid() == HORIZONTAL_SID) {\n           label = \"HORIZONTALPAGEBREAK\";\n           mainLabel = \"row\";\n           subLabel = \"col\";\n        } else {\n           label = \"VERTICALPAGEBREAK\";\n           mainLabel = \"column\";\n           subLabel = \"row\";\n        }\n        \n        retval.append(\"[\"+label+\"]\").append(\"\\n\");\n        retval.append(\"     .sid        =\").append(getSid()).append(\"\\n\");\n        retval.append(\"     .numbreaks =\").append(getNumBreaks()).append(\"\\n\");\n        Iterator iterator = getBreaksIterator();\n        for(int k = 0; k < getNumBreaks(); k++)\n        {\n            Break region = (Break)iterator.next();\n            \n            retval.append(\"     .\").append(mainLabel).append(\" (zero-based) =\").append(region.main).append(\"\\n\");\n            retval.append(\"     .\").append(subLabel).append(\"From    =\").append(region.subFrom).append(\"\\n\");\n            retval.append(\"     .\").append(subLabel).append(\"To      =\").append(region.subTo).append(\"\\n\");\n        }\n\n        retval.append(\"[\"+label+\"]\").append(\"\\n\");\n        return retval.toString();\n    }\n\n   /**\n    * Adds the page break at the specified parameters\n    * @param main Depending on sid, will determine row or column to put page break (zero-based)\n    * @param subFrom No user-interface to set (defaults to minumum, 0)\n    * @param subTo No user-interface to set\n    */\n    public void addBreak(short main, short subFrom, short subTo)\n    {\n        if(breaks == null)\n        {\n            breaks = new ArrayList(getNumBreaks() + 10);\n            BreakMap = new HashMap();\n        }\n        Integer key = new Integer(main);\n        Break region = (Break)BreakMap.get(key);\n        if(region != null)\n        {\n            region.main = main;\n            region.subFrom = subFrom;\n            region.subTo = subTo;\n        } else\n        {\n            region = new Break(main, subFrom, subTo);\n            breaks.add(region);\n        }\n        BreakMap.put(key, region);\n    }\n\n    /**\n     * Removes the break indicated by the parameter\n     * @param main (zero-based)\n     */\n    public void removeBreak(short main)\n    {\n        Integer rowKey = new Integer(main);\n        Break region = (Break)BreakMap.get(rowKey);\n        breaks.remove(region);\n        BreakMap.remove(rowKey);\n    }\n\n    public int getRecordSize()\n    {\n        return 6 + getNumBreaks() * 6;\n    }\n\n    /**\n     * Retrieves the region at the row/column indicated\n     * @param main\n     * @return\n     */\n    public Break getBreak(short main)\n    {\n        Integer rowKey = new Integer(main);\n        return (Break)BreakMap.get(rowKey);\n    }\n\n   /* Clones the page break record \n    * @see java.lang.Object#clone()\n    */\n   public Object clone() {\n      PageBreakRecord record = new PageBreakRecord(getSid());      \n      Iterator iterator = getBreaksIterator();\n      while (iterator.hasNext()) {\n         Break original = (Break)iterator.next();\n         record.addBreak(original.main, original.subFrom, original.subTo);\n      }\n      return record;", "functions": [{"function_name": "fillFields", "code": "    protected void fillFields(byte data[], short size, int offset)\n    {\n    \t  short loadedBreaks = LittleEndian.getShort(data, 0 + offset); \n        setNumBreaks(loadedBreaks);\n        int pos = 2;\n        for(int k = 0; k < loadedBreaks; k++)\n        {\n            addBreak((short)(LittleEndian.getShort(data, pos + offset) - 1), LittleEndian.getShort(data, pos + 2 + offset), LittleEndian.getShort(data, pos + 4 + offset));\n            pos += 6;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [3, 10], [1, 11], [1, 12], [1, 13], [10, 14], [11, 15], [12, 16], [12, 17], [14, 18], [16, 19], [17, 20], [12, 21], [19, 22], [20, 23], [21, 24], [21, 25], [22, 26], [23, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 3], [11, 1], [12, 1], [13, 1], [14, 10], [15, 11], [16, 12], [17, 12], [18, 14], [19, 16], [20, 17], [21, 12], [22, 19], [23, 20], [24, 21], [25, 21], [26, 22], [27, 23], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte data[])\n    {\n        int recordsize = getRecordSize();\n        int pos = 6;\n        LittleEndian.putShort(data, offset + 0, getSid());\n        LittleEndian.putShort(data, offset + 2, (short)(recordsize - 4));\n        LittleEndian.putShort(data, offset + 4, getNumBreaks());\n        for(Iterator iterator = getBreaksIterator(); iterator.hasNext();)\n        {\n            Break Break = (Break)iterator.next();\n            LittleEndian.putShort(data, offset + pos, (short)(Break.main + 1));\n            pos += 2;\n            LittleEndian.putShort(data, offset + pos, Break.subFrom);\n            pos += 2;\n            LittleEndian.putShort(data, offset + pos, Break.subTo);\n            pos += 2;\n        }\n\n        return recordsize;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [2, 11], [8, 12], [8, 13], [9, 14], [10, 15], [10, 16], [3, 17], [4, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [13, 26], [9, 27], [14, 28], [16, 29], [19, 30], [20, 31], [21, 32], [22, 33], [23, 34], [24, 35], [27, 36], [24, 37], [11, 38], [37, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 2], [12, 8], [13, 8], [14, 9], [15, 10], [16, 10], [17, 3], [18, 4], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 13], [27, 9], [28, 14], [29, 16], [30, 19], [31, 20], [32, 21], [33, 22], [34, 23], [35, 24], [36, 27], [37, 24], [38, 11], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if(id != HORIZONTAL_SID && id != VERTICAL_SID)\n            throw new RecordFormatException(\"NOT A HorizontalPageBreak or VerticalPageBreak RECORD!! \" + id);\n        else\n            return;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNumBreaks", "code": "    public short getNumBreaks()\n    {\n        return breaks != null ? (short)breaks.size() : numBreaks;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setNumBreaks", "code": "    public void setNumBreaks(short numBreaks)\n    {\n        this.numBreaks = numBreaks;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBreaksIterator", "code": "    public Iterator getBreaksIterator()\n    {\n        if(breaks == null)\n            return Collections.EMPTY_LIST.iterator();\n        else\n            return breaks.iterator();", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer retval = new StringBuffer();\n        \n        if (getSid() != HORIZONTAL_SID && getSid()!= VERTICAL_SID) \n            return \"[INVALIDPAGEBREAK]\\n     .sid =\"+getSid()+\"[INVALIDPAGEBREAK]\";\n        \n        String label;\n        String mainLabel;\n        String subLabel;\n        \n        if (getSid() == HORIZONTAL_SID) {\n           label = \"HORIZONTALPAGEBREAK\";\n           mainLabel = \"row\";\n           subLabel = \"col\";\n        } else {\n           label = \"VERTICALPAGEBREAK\";\n           mainLabel = \"column\";\n           subLabel = \"row\";\n        }\n        \n        retval.append(\"[\"+label+\"]\").append(\"\\n\");\n        retval.append(\"     .sid        =\").append(getSid()).append(\"\\n\");\n        retval.append(\"     .numbreaks =\").append(getNumBreaks()).append(\"\\n\");\n        Iterator iterator = getBreaksIterator();\n        for(int k = 0; k < getNumBreaks(); k++)\n        {\n            Break region = (Break)iterator.next();\n            \n            retval.append(\"     .\").append(mainLabel).append(\" (zero-based) =\").append(region.main).append(\"\\n\");\n            retval.append(\"     .\").append(subLabel).append(\"From    =\").append(region.subFrom).append(\"\\n\");\n            retval.append(\"     .\").append(subLabel).append(\"To      =\").append(region.subTo).append(\"\\n\");\n        }\n\n        retval.append(\"[\"+label+\"]\").append(\"\\n\");\n        return retval.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [2, 12], [0, 13], [0, 14], [0, 15], [4, 16], [8, 17], [8, 18], [11, 19], [11, 20], [2, 21], [12, 22], [3, 23], [13, 24], [13, 25], [13, 26], [14, 27], [14, 28], [14, 29], [15, 30], [15, 31], [16, 32], [17, 33], [18, 34], [18, 35], [9, 36], [19, 37], [19, 38], [20, 39], [2, 40], [2, 41], [2, 42], [2, 43], [25, 44], [26, 45], [28, 46], [29, 47], [30, 48], [30, 49], [31, 50], [4, 51], [4, 52], [4, 53], [4, 54], [4, 55], [4, 56], [33, 57], [33, 58], [34, 59], [35, 60], [38, 61], [40, 62], [40, 63], [40, 64], [40, 65], [40, 66], [41, 67], [41, 68], [41, 69], [41, 70], [41, 71], [42, 72], [42, 73], [42, 74], [42, 75], [42, 76], [49, 77], [51, 78], [52, 79], [53, 80], [54, 81], [55, 82], [56, 83], [58, 84], [58, 85], [63, 86], [65, 87], [68, 88], [70, 89], [73, 90], [75, 91], [21, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 2], [13, 0], [14, 0], [15, 0], [16, 4], [17, 8], [18, 8], [19, 11], [20, 11], [21, 2], [22, 12], [23, 3], [24, 13], [25, 13], [26, 13], [27, 14], [28, 14], [29, 14], [30, 15], [31, 15], [32, 16], [33, 17], [34, 18], [35, 18], [36, 9], [37, 19], [38, 19], [39, 20], [40, 2], [41, 2], [42, 2], [43, 2], [44, 25], [45, 26], [46, 28], [47, 29], [48, 30], [49, 30], [50, 31], [51, 4], [52, 4], [53, 4], [54, 4], [55, 4], [56, 4], [57, 33], [58, 33], [59, 34], [60, 35], [61, 38], [62, 40], [63, 40], [64, 40], [65, 40], [66, 40], [67, 41], [68, 41], [69, 41], [70, 41], [71, 41], [72, 42], [73, 42], [74, 42], [75, 42], [76, 42], [77, 49], [78, 51], [79, 52], [80, 53], [81, 54], [82, 55], [83, 56], [84, 58], [85, 58], [86, 63], [87, 65], [88, 68], [89, 70], [90, 73], [91, 75], [92, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "addBreak", "code": "    public void addBreak(short main, short subFrom, short subTo)\n    {\n        if(breaks == null)\n        {\n            breaks = new ArrayList(getNumBreaks() + 10);\n            BreakMap = new HashMap();\n        }\n        Integer key = new Integer(main);\n        Break region = (Break)BreakMap.get(key);\n        if(region != null)\n        {\n            region.main = main;\n            region.subFrom = subFrom;\n            region.subTo = subTo;\n        } else\n        {\n            region = new Break(main, subFrom, subTo);\n            breaks.add(region);\n        }\n        BreakMap.put(key, region);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [4, 10], [9, 11], [3, 12], [10, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [2, 19], [4, 20], [4, 21], [15, 22], [20, 23], [21, 24], [24, 25], [25, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 4], [11, 9], [12, 3], [13, 10], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 2], [20, 4], [21, 4], [22, 15], [23, 20], [24, 21], [25, 24], [26, 25], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "removeBreak", "code": "    public void removeBreak(short main)\n    {\n        Integer rowKey = new Integer(main);\n        Break region = (Break)BreakMap.get(rowKey);\n        breaks.remove(region);\n        BreakMap.remove(rowKey);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6 + getNumBreaks() * 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getBreak", "code": "    public Break getBreak(short main)\n    {\n        Integer rowKey = new Integer(main);\n        return (Break)BreakMap.get(rowKey);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "clone", "code": "   public Object clone() {\n      PageBreakRecord record = new PageBreakRecord(getSid());      \n      Iterator iterator = getBreaksIterator();\n      while (iterator.hasNext()) {\n         Break original = (Break)iterator.next();\n         record.addBreak(original.main, original.subFrom, original.subTo);\n      }\n      return record;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [4, 8], [2, 9], [8, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 4], [9, 2], [10, 8], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "PageBreakRecord", "code": "    public PageBreakRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PageBreakRecord", "code": "    public PageBreakRecord(short sid) {\n       super();\n       this.sid = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "PageBreakRecord", "code": "    public PageBreakRecord(short id, short size, byte data[])\n    {\n        super(id, size, data);\n        this.sid = id;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "PageBreakRecord", "code": "    public PageBreakRecord(short id, short size, byte data[], int offset)\n    {\n        super(id, size, data, offset);\n        this.sid = id;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "poi-3.0-5996", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/SupBookRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.SupBookRecord", "code": "public class SupBookRecord extends Record\n{\n    public final static short sid = 0x1AE;\n    private short             field_1_number_of_sheets;\n    private short             field_2_flag;\n\n\n    public SupBookRecord()\n    {\n        setFlag((short)0x401);\n    }\n\n    /**\n     * Constructs a Extern Sheet record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x16 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n    public SupBookRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An Supbook RECORD\");\n        }\n    }\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     * @param offset of the record's data (provided a big array of the file)\n     */\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_number_of_sheets = in.readShort();\n        field_2_flag = in.readShort();\n    }\n\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n        buffer.append(\"[SUPBOOK]\\n\");\n        buffer.append(\"numberosheets = \").append(getNumberOfSheets()).append('\\n');\n        buffer.append(\"flag          = \").append(getFlag()).append('\\n');\n        buffer.append(\"[/SUPBOOK]\\n\");\n        return buffer.toString();\n    }\n\n    /**\n     * called by the class that is responsible for writing this sucker.\n     * Subclasses should implement this so that their data is passed back in a\n     * byte array.\n     *\n     * @param offset to begin writing at\n     * @param data byte array containing instance data\n     * @return number of bytes written\n     */\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short) 4);\n        LittleEndian.putShort(data, 4 + offset, field_1_number_of_sheets);\n        LittleEndian.putShort(data, 6 + offset, field_2_flag);\n\n        return getRecordSize();\n    }\n\n    public void setNumberOfSheets(short number){\n        field_1_number_of_sheets = number;\n    }\n\n    public short getNumberOfSheets(){\n        return field_1_number_of_sheets;\n    }\n\n    public void setFlag(short flag){\n        field_2_flag = flag;\n    }\n\n    public short getFlag() {\n        return field_2_flag;\n    }\n\n    public int getRecordSize()\n    {\n        return 4 + 4;\n    }\n\n    public short getSid()\n    {\n        return sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An Supbook RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_number_of_sheets = in.readShort();\n        field_2_flag = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n        buffer.append(\"[SUPBOOK]\\n\");\n        buffer.append(\"numberosheets = \").append(getNumberOfSheets()).append('\\n');\n        buffer.append(\"flag          = \").append(getFlag()).append('\\n');\n        buffer.append(\"[/SUPBOOK]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [5, 10], [5, 11], [6, 12], [6, 13], [6, 14], [7, 15], [2, 16], [10, 17], [11, 18], [13, 19], [14, 20], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 5], [11, 5], [12, 6], [13, 6], [14, 6], [15, 7], [16, 2], [17, 10], [18, 11], [19, 13], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short) 4);\n        LittleEndian.putShort(data, 4 + offset, field_1_number_of_sheets);\n        LittleEndian.putShort(data, 6 + offset, field_2_flag);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [7, 15], [11, 16], [12, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 7], [16, 11], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setNumberOfSheets", "code": "    public void setNumberOfSheets(short number){\n        field_1_number_of_sheets = number;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumberOfSheets", "code": "    public short getNumberOfSheets(){\n        return field_1_number_of_sheets;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFlag", "code": "    public void setFlag(short flag){\n        field_2_flag = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFlag", "code": "    public short getFlag() {\n        return field_2_flag;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4 + 4;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SupBookRecord", "code": "    public SupBookRecord()\n    {\n        setFlag((short)0x401);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SupBookRecord", "code": "    public SupBookRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.4-6428", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/TopLevelElement.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.TopLevelElement", "code": "class TopLevelElement extends SyntaxTreeNode {\n\n    /**\n     * Type check all the children of this node.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn typeCheckContents(stable);\n    }\n\n    /**\n     * Translate this node into JVM bytecodes.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tErrorMsg msg = new ErrorMsg(ErrorMsg.NOT_IMPLEMENTED_ERR,\n\t\t\t\t    getClass(), this);\n\tgetParser().reportError(FATAL, msg);\n    }\n\t\n    /**\n     * Translate this node into a fresh instruction list.\n     * The original instruction list is saved and restored.\n     */\n    public InstructionList compile(ClassGenerator classGen,\n\t\t\t\t   MethodGenerator methodGen) {\n\tfinal InstructionList result, save = methodGen.getInstructionList();\n\tmethodGen.setInstructionList(result = new InstructionList());\n\ttranslate(classGen, methodGen);\n\tmethodGen.setInstructionList(save);\n\treturn result;\n    }\n\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"TopLevelElement\");\n\tdisplayContents(indent + IndentIncrement);", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn typeCheckContents(stable);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tErrorMsg msg = new ErrorMsg(ErrorMsg.NOT_IMPLEMENTED_ERR,\n\t\t\t\t    getClass(), this);\n\tgetParser().reportError(FATAL, msg);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "compile", "code": "    public InstructionList compile(ClassGenerator classGen,\n\t\t\t\t   MethodGenerator methodGen) {\n\tfinal InstructionList result, save = methodGen.getInstructionList();\n\tmethodGen.setInstructionList(result = new InstructionList());\n\ttranslate(classGen, methodGen);\n\tmethodGen.setInstructionList(save);\n\treturn result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"TopLevelElement\");\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "ant-1.7-1134", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/XmlLogger.java", "language": "java", "name": "org.apache.tools.ant.XmlLogger", "code": "public class XmlLogger implements BuildLogger {\n\n    private int msgOutputLevel = Project.MSG_DEBUG;\n    private PrintStream outStream;\n\n    /** DocumentBuilder to use when creating the document to start with. */\n    private static DocumentBuilder builder = getDocumentBuilder();\n\n    /**\n     * Returns a default DocumentBuilder instance or throws an\n     * ExceptionInInitializerError if it can't be created.\n     *\n     * @return a default DocumentBuilder instance.\n     */\n    private static DocumentBuilder getDocumentBuilder() {\n        try {\n            return DocumentBuilderFactory.newInstance().newDocumentBuilder();\n        } catch (Exception exc) {\n            throw new ExceptionInInitializerError(exc);\n        }\n    }\n\n    /** XML element name for a build. */\n    private static final String BUILD_TAG = \"build\";\n    /** XML element name for a target. */\n    private static final String TARGET_TAG = \"target\";\n    /** XML element name for a task. */\n    private static final String TASK_TAG = \"task\";\n    /** XML element name for a message. */\n    private static final String MESSAGE_TAG = \"message\";\n    /** XML attribute name for a name. */\n    private static final String NAME_ATTR = \"name\";\n    /** XML attribute name for a time. */\n    private static final String TIME_ATTR = \"time\";\n    /** XML attribute name for a message priority. */\n    private static final String PRIORITY_ATTR = \"priority\";\n    /** XML attribute name for a file location. */\n    private static final String LOCATION_ATTR = \"location\";\n    /** XML attribute name for an error description. */\n    private static final String ERROR_ATTR = \"error\";\n    /** XML element name for a stack trace. */\n    private static final String STACKTRACE_TAG = \"stacktrace\";\n\n    /** The complete log document for this build. */\n    private Document doc = builder.newDocument();\n    /** Mapping for when tasks started (Task to TimedElement). */\n    private Hashtable tasks = new Hashtable();\n    /** Mapping for when targets started (Task to TimedElement). */\n    private Hashtable targets = new Hashtable();\n    /**\n     * Mapping of threads to stacks of elements\n     * (Thread to Stack of TimedElement).\n     */\n    private Hashtable threadStacks = new Hashtable();\n    /**\n     * When the build started.\n     */\n    private TimedElement buildElement = null;\n\n    /** Utility class representing the time an element started. */\n    private static class TimedElement {\n        /**\n         * Start time in milliseconds\n         * (as returned by <code>System.currentTimeMillis()</code>).\n         */\n        private long startTime;\n        /** Element created at the start time. */\n        private Element element;\n        public String toString() {\n            return element.getTagName() + \":\" + element.getAttribute(\"name\");\n        }\n    }\n\n    /**\n     *  Constructs a new BuildListener that logs build events to an XML file.\n     */\n    public XmlLogger() {\n    }\n\n    /**\n     * Fired when the build starts, this builds the top-level element for the\n     * document and remembers the time of the start of the build.\n     *\n     * @param event Ignored.\n     */\n    public void buildStarted(BuildEvent event) {\n        buildElement = new TimedElement();\n        buildElement.startTime = System.currentTimeMillis();\n        buildElement.element = doc.createElement(BUILD_TAG);\n    }\n\n    /**\n     * Fired when the build finishes, this adds the time taken and any\n     * error stacktrace to the build element and writes the document to disk.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void buildFinished(BuildEvent event) {\n        long totalTime = System.currentTimeMillis() - buildElement.startTime;\n        buildElement.element.setAttribute(TIME_ATTR,\n                DefaultLogger.formatTime(totalTime));\n\n        if (event.getException() != null) {\n            buildElement.element.setAttribute(ERROR_ATTR,\n                    event.getException().toString());\n            Throwable t = event.getException();\n            Text errText = doc.createCDATASection(StringUtils.getStackTrace(t));\n            Element stacktrace = doc.createElement(STACKTRACE_TAG);\n            stacktrace.appendChild(errText);\n            buildElement.element.appendChild(stacktrace);\n        }\n\n        String outFilename = event.getProject().getProperty(\"XmlLogger.file\");\n        if (outFilename == null) {\n            outFilename = \"log.xml\";\n        }\n        String xslUri\n                = event.getProject().getProperty(\"ant.XmlLogger.stylesheet.uri\");\n        if (xslUri == null) {\n            xslUri = \"log.xsl\";\n        }\n        Writer out = null;\n        try {\n            OutputStream stream = outStream;\n            if (stream == null) {\n                stream = new FileOutputStream(outFilename);\n            }\n            out = new OutputStreamWriter(stream, \"UTF8\");\n            out.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n            if (xslUri.length() > 0) {\n                out.write(\"<?xml-stylesheet type=\\\"text/xsl\\\" href=\\\"\"\n                        + xslUri + \"\\\"?>\\n\\n\");\n            }\n            (new DOMElementWriter()).write(buildElement.element, out, 0, \"\\t\");\n            out.flush();\n        } catch (IOException exc) {\n            throw new BuildException(\"Unable to write log file\", exc);\n        } finally {\n            if (out != null) {\n                try {\n                    out.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n        buildElement = null;\n    }\n\n    /**\n     * Returns the stack of timed elements for the current thread.\n     * @return the stack of timed elements for the current thread\n     */\n    private Stack getStack() {\n        Stack threadStack = (Stack) threadStacks.get(Thread.currentThread());\n        if (threadStack == null) {\n            threadStack = new Stack();\n            threadStacks.put(Thread.currentThread(), threadStack);\n        }\n        /* For debugging purposes uncomment:\n        org.w3c.dom.Comment s = doc.createComment(\"stack=\" + threadStack);\n        buildElement.element.appendChild(s);\n         */\n        return threadStack;\n    }\n\n    /**\n     * Fired when a target starts building, this pushes a timed element\n     * for the target onto the stack of elements for the current thread,\n     * remembering the current time and the name of the target.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void targetStarted(BuildEvent event) {\n        Target target = event.getTarget();\n        TimedElement targetElement = new TimedElement();\n        targetElement.startTime = System.currentTimeMillis();\n        targetElement.element = doc.createElement(TARGET_TAG);\n        targetElement.element.setAttribute(NAME_ATTR, target.getName());\n        targets.put(target, targetElement);\n        getStack().push(targetElement);\n    }\n\n    /**\n     * Fired when a target finishes building, this adds the time taken\n     * and any error stacktrace to the appropriate target element in the log.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void targetFinished(BuildEvent event) {\n        Target target = event.getTarget();\n        TimedElement targetElement = (TimedElement) targets.get(target);\n        if (targetElement != null) {\n            long totalTime\n                    = System.currentTimeMillis() - targetElement.startTime;\n            targetElement.element.setAttribute(TIME_ATTR,\n                    DefaultLogger.formatTime(totalTime));\n\n            TimedElement parentElement = null;\n            Stack threadStack = getStack();\n            if (!threadStack.empty()) {\n                TimedElement poppedStack = (TimedElement) threadStack.pop();\n                if (poppedStack != targetElement) {\n                    throw new RuntimeException(\"Mismatch - popped element = \"\n                            + poppedStack\n                            + \" finished target element = \"\n                            + targetElement);\n                }\n                if (!threadStack.empty()) {\n                    parentElement = (TimedElement) threadStack.peek();\n                }\n            }\n            if (parentElement == null) {\n                buildElement.element.appendChild(targetElement.element);\n            } else {\n                parentElement.element.appendChild(targetElement.element);\n            }\n        }\n        targets.remove(target);\n    }\n\n    /**\n     * Fired when a task starts building, this pushes a timed element\n     * for the task onto the stack of elements for the current thread,\n     * remembering the current time and the name of the task.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void taskStarted(BuildEvent event) {\n        TimedElement taskElement = new TimedElement();\n        taskElement.startTime = System.currentTimeMillis();\n        taskElement.element = doc.createElement(TASK_TAG);\n\n        Task task = event.getTask();\n        String name = event.getTask().getTaskName();\n        if (name == null) {\n            name = \"\";\n        }\n        taskElement.element.setAttribute(NAME_ATTR, name);\n        taskElement.element.setAttribute(LOCATION_ATTR,\n                event.getTask().getLocation().toString());\n        tasks.put(task, taskElement);\n        getStack().push(taskElement);\n    }\n\n    /**\n     * Fired when a task finishes building, this adds the time taken\n     * and any error stacktrace to the appropriate task element in the log.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void taskFinished(BuildEvent event) {\n        Task task = event.getTask();\n        TimedElement taskElement = (TimedElement) tasks.get(task);\n        if (taskElement != null) {\n            long totalTime = System.currentTimeMillis() - taskElement.startTime;\n            taskElement.element.setAttribute(TIME_ATTR,\n                    DefaultLogger.formatTime(totalTime));\n            Target target = task.getOwningTarget();\n            TimedElement targetElement = null;\n            if (target != null) {\n                targetElement = (TimedElement) targets.get(target);\n            }\n            if (targetElement == null) {\n                buildElement.element.appendChild(taskElement.element);\n            } else {\n                targetElement.element.appendChild(taskElement.element);\n            }\n            Stack threadStack = getStack();\n            if (!threadStack.empty()) {\n                TimedElement poppedStack = (TimedElement) threadStack.pop();\n                if (poppedStack != taskElement) {\n                    throw new RuntimeException(\"Mismatch - popped element = \"\n                            + poppedStack + \" finished task element = \"\n                            + taskElement);\n                }\n            }\n            tasks.remove(task);\n        } else {\n            throw new RuntimeException(\"Unknown task \" + task + \" not in \" + tasks);\n        }\n    }\n\n\n    /**\n     * Get the TimedElement associated with a task.\n     *\n     * Where the task is not found directly, search for unknown elements which\n     * may be hiding the real task\n     */\n    private TimedElement getTaskElement(Task task) {\n        TimedElement element = (TimedElement) tasks.get(task);\n        if (element != null) {\n            return element;\n        }\n\n        for (Enumeration e = tasks.keys(); e.hasMoreElements();) {\n            Task key = (Task) e.nextElement();\n            if (key instanceof UnknownElement) {\n                if (((UnknownElement) key).getTask() == task) {\n                    return (TimedElement) tasks.get(key);\n                }\n            }\n        }\n\n        return null;\n    }\n\n    /**\n     * Fired when a message is logged, this adds a message element to the\n     * most appropriate parent element (task, target or build) and records\n     * the priority and text of the message.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void messageLogged(BuildEvent event) {\n        int priority = event.getPriority();\n        if (priority > msgOutputLevel) {\n            return;\n        }\n        Element messageElement = doc.createElement(MESSAGE_TAG);\n\n        String name = \"debug\";\n        switch (event.getPriority()) {\n            case Project.MSG_ERR:\n                name = \"error\";\n                break;\n            case Project.MSG_WARN:\n                name = \"warn\";\n                break;\n            case Project.MSG_INFO:\n                name = \"info\";\n                break;\n            default:\n                name = \"debug\";\n                break;\n        }\n        messageElement.setAttribute(PRIORITY_ATTR, name);\n\n        Throwable ex = event.getException();\n        if (Project.MSG_DEBUG <= msgOutputLevel && ex != null) {\n            Text errText = doc.createCDATASection(StringUtils.getStackTrace(ex));\n            Element stacktrace = doc.createElement(STACKTRACE_TAG);\n            stacktrace.appendChild(errText);\n            buildElement.element.appendChild(stacktrace);\n        }\n        Text messageText = doc.createCDATASection(event.getMessage());\n        messageElement.appendChild(messageText);\n\n        TimedElement parentElement = null;\n\n        Task task = event.getTask();\n\n        Target target = event.getTarget();\n        if (task != null) {\n            parentElement = getTaskElement(task);\n        }\n        if (parentElement == null && target != null) {\n            parentElement = (TimedElement) targets.get(target);\n        }\n\n        /*\n        if (parentElement == null) {\n            Stack threadStack\n                    = (Stack) threadStacks.get(Thread.currentThread());\n            if (threadStack != null) {\n                if (!threadStack.empty()) {\n                    parentElement = (TimedElement) threadStack.peek();\n                }\n            }\n        }\n        */\n\n        if (parentElement != null) {\n            parentElement.element.appendChild(messageElement);\n        } else {\n            buildElement.element.appendChild(messageElement);\n        }\n    }\n\n\n    /**\n     * Set the logging level when using this as a Logger\n     *\n     * @param level the logging level -\n     *        see {@link org.apache.tools.ant.Project#MSG_ERR Project}\n     *        class for level definitions\n     */\n    public void setMessageOutputLevel(int level) {\n        msgOutputLevel = level;\n    }\n\n    /**\n     * Set the output stream to which logging output is sent when operating\n     * as a logger.\n     *\n     * @param output the output PrintStream.\n     */\n    public void setOutputPrintStream(PrintStream output) {\n        this.outStream = new PrintStream(output, true);\n    }\n\n    /**\n     * Ignore emacs mode, as it has no meaning in XML format\n     *\n     * @param emacsMode true if logger should produce emacs compatible\n     *        output\n     */\n    public void setEmacsMode(boolean emacsMode) {\n    }\n\n    /**\n     * Ignore error print stream. All output will be written to\n     * either the XML log file or the PrintStream provided to\n     * setOutputPrintStream\n     *\n     * @param err the stream we are going to ignore.\n     */\n    public void setErrorPrintStream(PrintStream err) {", "functions": [{"function_name": "getDocumentBuilder", "code": "    private static DocumentBuilder getDocumentBuilder() {\n        try {\n            return DocumentBuilderFactory.newInstance().newDocumentBuilder();\n        } catch (Exception exc) {\n            throw new ExceptionInInitializerError(exc);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {\n        buildElement = new TimedElement();\n        buildElement.startTime = System.currentTimeMillis();\n        buildElement.element = doc.createElement(BUILD_TAG);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        long totalTime = System.currentTimeMillis() - buildElement.startTime;\n        buildElement.element.setAttribute(TIME_ATTR,\n                DefaultLogger.formatTime(totalTime));\n\n        if (event.getException() != null) {\n            buildElement.element.setAttribute(ERROR_ATTR,\n                    event.getException().toString());\n            Throwable t = event.getException();\n            Text errText = doc.createCDATASection(StringUtils.getStackTrace(t));\n            Element stacktrace = doc.createElement(STACKTRACE_TAG);\n            stacktrace.appendChild(errText);\n            buildElement.element.appendChild(stacktrace);\n        }\n\n        String outFilename = event.getProject().getProperty(\"XmlLogger.file\");\n        if (outFilename == null) {\n            outFilename = \"log.xml\";\n        }\n        String xslUri\n                = event.getProject().getProperty(\"ant.XmlLogger.stylesheet.uri\");\n        if (xslUri == null) {\n            xslUri = \"log.xsl\";\n        }\n        Writer out = null;\n        try {\n            OutputStream stream = outStream;\n            if (stream == null) {\n                stream = new FileOutputStream(outFilename);\n            }\n            out = new OutputStreamWriter(stream, \"UTF8\");\n            out.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n            if (xslUri.length() > 0) {\n                out.write(\"<?xml-stylesheet type=\\\"text/xsl\\\" href=\\\"\"\n                        + xslUri + \"\\\"?>\\n\\n\");\n            }\n            (new DOMElementWriter()).write(buildElement.element, out, 0, \"\\t\");\n            out.flush();\n        } catch (IOException exc) {\n            throw new BuildException(\"Unable to write log file\", exc);\n        } finally {\n            if (out != null) {\n                try {\n                    out.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n        buildElement = null;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "IF", "CATCH", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [3, 16], [5, 17], [7, 18], [0, 19], [10, 20], [11, 21], [12, 22], [1, 23], [1, 24], [13, 25], [1, 26], [1, 27], [14, 28], [2, 29], [16, 30], [4, 31], [17, 32], [6, 33], [7, 34], [7, 35], [7, 36], [18, 37], [18, 38], [19, 39], [8, 40], [11, 41], [21, 42], [22, 43], [24, 44], [25, 45], [25, 46], [26, 47], [27, 48], [28, 49], [3, 50], [31, 51], [5, 52], [33, 53], [7, 54], [7, 55], [7, 56], [40, 57], [41, 58], [43, 59], [44, 60], [44, 61], [13, 62], [48, 63], [14, 64], [50, 65], [51, 66], [52, 67], [53, 68], [34, 69], [35, 70], [36, 71], [56, 72], [41, 73], [62, 74], [64, 75], [70, 76], [72, 77], [74, 78], [74, 79], [79, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 3], [17, 5], [18, 7], [19, 0], [20, 10], [21, 11], [22, 12], [23, 1], [24, 1], [25, 13], [26, 1], [27, 1], [28, 14], [29, 2], [30, 16], [31, 4], [32, 17], [33, 6], [34, 7], [35, 7], [36, 7], [37, 18], [38, 18], [39, 19], [40, 8], [41, 11], [42, 21], [43, 22], [44, 24], [45, 25], [46, 25], [47, 26], [48, 27], [49, 28], [50, 3], [51, 31], [52, 5], [53, 33], [54, 7], [55, 7], [56, 7], [57, 40], [58, 41], [59, 43], [60, 44], [61, 44], [62, 13], [63, 48], [64, 14], [65, 50], [66, 51], [67, 52], [68, 53], [69, 34], [70, 35], [71, 36], [72, 56], [73, 41], [74, 62], [75, 64], [76, 70], [77, 72], [78, 74], [79, 74], [80, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "getStack", "code": "    private Stack getStack() {\n        Stack threadStack = (Stack) threadStacks.get(Thread.currentThread());\n        if (threadStack == null) {\n            threadStack = new Stack();\n            threadStacks.put(Thread.currentThread(), threadStack);\n        }\n        /* For debugging purposes uncomment:\n        org.w3c.dom.Comment s = doc.createComment(\"stack=\" + threadStack);\n        buildElement.element.appendChild(s);\n         */\n        return threadStack;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [3, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 3], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {\n        Target target = event.getTarget();\n        TimedElement targetElement = new TimedElement();\n        targetElement.startTime = System.currentTimeMillis();\n        targetElement.element = doc.createElement(TARGET_TAG);\n        targetElement.element.setAttribute(NAME_ATTR, target.getName());\n        targets.put(target, targetElement);\n        getStack().push(targetElement);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [6, 10], [7, 11], [8, 12], [1, 13], [2, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 6], [11, 7], [12, 8], [13, 1], [14, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {\n        Target target = event.getTarget();\n        TimedElement targetElement = (TimedElement) targets.get(target);\n        if (targetElement != null) {\n            long totalTime\n                    = System.currentTimeMillis() - targetElement.startTime;\n            targetElement.element.setAttribute(TIME_ATTR,\n                    DefaultLogger.formatTime(totalTime));\n\n            TimedElement parentElement = null;\n            Stack threadStack = getStack();\n            if (!threadStack.empty()) {\n                TimedElement poppedStack = (TimedElement) threadStack.pop();\n                if (poppedStack != targetElement) {\n                    throw new RuntimeException(\"Mismatch - popped element = \"\n                            + poppedStack\n                            + \" finished target element = \"\n                            + targetElement);\n                }\n                if (!threadStack.empty()) {\n                    parentElement = (TimedElement) threadStack.peek();\n                }\n            }\n            if (parentElement == null) {\n                buildElement.element.appendChild(targetElement.element);\n            } else {\n                parentElement.element.appendChild(targetElement.element);\n            }\n        }\n        targets.remove(target);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [6, 12], [3, 13], [7, 14], [8, 15], [1, 16], [2, 17], [14, 18], [8, 19], [8, 20], [8, 21], [9, 22], [10, 23], [16, 24], [11, 25], [7, 26], [7, 27], [19, 28], [20, 29], [25, 30], [20, 31], [19, 32], [31, 33], [21, 34], [33, 35], [32, 36], [35, 37], [37, 38], [37, 39], [39, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 6], [13, 3], [14, 7], [15, 8], [16, 1], [17, 2], [18, 14], [19, 8], [20, 8], [21, 8], [22, 9], [23, 10], [24, 16], [25, 11], [26, 7], [27, 7], [28, 19], [29, 20], [30, 25], [31, 20], [32, 19], [33, 31], [34, 21], [35, 33], [36, 32], [37, 35], [38, 37], [39, 37], [40, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {\n        TimedElement taskElement = new TimedElement();\n        taskElement.startTime = System.currentTimeMillis();\n        taskElement.element = doc.createElement(TASK_TAG);\n\n        Task task = event.getTask();\n        String name = event.getTask().getTaskName();\n        if (name == null) {\n            name = \"\";\n        }\n        taskElement.element.setAttribute(NAME_ATTR, name);\n        taskElement.element.setAttribute(LOCATION_ATTR,\n                event.getTask().getLocation().toString());\n        tasks.put(task, taskElement);\n        getStack().push(taskElement);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [6, 13], [8, 14], [10, 15], [2, 16], [3, 17], [11, 18], [12, 19], [4, 20], [14, 21], [14, 22], [1, 23], [16, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 6], [14, 8], [15, 10], [16, 2], [17, 3], [18, 11], [19, 12], [20, 4], [21, 14], [22, 14], [23, 1], [24, 16], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {\n        Task task = event.getTask();\n        TimedElement taskElement = (TimedElement) tasks.get(task);\n        if (taskElement != null) {\n            long totalTime = System.currentTimeMillis() - taskElement.startTime;\n            taskElement.element.setAttribute(TIME_ATTR,\n                    DefaultLogger.formatTime(totalTime));\n            Target target = task.getOwningTarget();\n            TimedElement targetElement = null;\n            if (target != null) {\n                targetElement = (TimedElement) targets.get(target);\n            }\n            if (targetElement == null) {\n                buildElement.element.appendChild(taskElement.element);\n            } else {\n                targetElement.element.appendChild(taskElement.element);\n            }\n            Stack threadStack = getStack();\n            if (!threadStack.empty()) {\n                TimedElement poppedStack = (TimedElement) threadStack.pop();\n                if (poppedStack != taskElement) {\n                    throw new RuntimeException(\"Mismatch - popped element = \"\n                            + poppedStack + \" finished task element = \"\n                            + taskElement);\n                }\n            }\n            tasks.remove(task);\n        } else {\n            throw new RuntimeException(\"Unknown task \" + task + \" not in \" + tasks);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "THROW_RAISE", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [5, 14], [3, 15], [6, 16], [1, 17], [7, 18], [9, 19], [10, 20], [1, 21], [2, 22], [16, 23], [7, 24], [7, 25], [8, 26], [19, 27], [20, 28], [11, 29], [12, 30], [21, 31], [13, 32], [23, 33], [24, 34], [9, 35], [9, 36], [10, 37], [32, 38], [33, 39], [33, 40], [24, 41], [40, 42], [41, 43], [25, 44], [37, 45], [43, 46], [46, 47], [47, 48], [47, 49], [49, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 5], [15, 3], [16, 6], [17, 1], [18, 7], [19, 9], [20, 10], [21, 1], [22, 2], [23, 16], [24, 7], [25, 7], [26, 8], [27, 19], [28, 20], [29, 11], [30, 12], [31, 21], [32, 13], [33, 23], [34, 24], [35, 9], [36, 9], [37, 10], [38, 32], [39, 33], [40, 33], [41, 24], [42, 40], [43, 41], [44, 25], [45, 37], [46, 43], [47, 46], [48, 47], [49, 47], [50, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "getTaskElement", "code": "    private TimedElement getTaskElement(Task task) {\n        TimedElement element = (TimedElement) tasks.get(task);\n        if (element != null) {\n            return element;\n        }\n\n        for (Enumeration e = tasks.keys(); e.hasMoreElements();) {\n            Task key = (Task) e.nextElement();\n            if (key instanceof UnknownElement) {\n                if (((UnknownElement) key).getTask() == task) {\n                    return (TimedElement) tasks.get(key);\n                }\n            }\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [2, 10], [3, 11], [8, 12], [9, 13], [2, 14], [4, 15], [9, 16], [16, 17], [10, 18], [16, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 2], [11, 3], [12, 8], [13, 9], [14, 2], [15, 4], [16, 9], [17, 16], [18, 10], [19, 16], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {\n        int priority = event.getPriority();\n        if (priority > msgOutputLevel) {\n            return;\n        }\n        Element messageElement = doc.createElement(MESSAGE_TAG);\n\n        String name = \"debug\";\n        switch (event.getPriority()) {\n            case Project.MSG_ERR:\n                name = \"error\";\n                break;\n            case Project.MSG_WARN:\n                name = \"warn\";\n                break;\n            case Project.MSG_INFO:\n                name = \"info\";\n                break;\n            default:\n                name = \"debug\";\n                break;\n        }\n        messageElement.setAttribute(PRIORITY_ATTR, name);\n\n        Throwable ex = event.getException();\n        if (Project.MSG_DEBUG <= msgOutputLevel && ex != null) {\n            Text errText = doc.createCDATASection(StringUtils.getStackTrace(ex));\n            Element stacktrace = doc.createElement(STACKTRACE_TAG);\n            stacktrace.appendChild(errText);\n            buildElement.element.appendChild(stacktrace);\n        }\n        Text messageText = doc.createCDATASection(event.getMessage());\n        messageElement.appendChild(messageText);\n\n        TimedElement parentElement = null;\n\n        Task task = event.getTask();\n\n        Target target = event.getTarget();\n        if (task != null) {\n            parentElement = getTaskElement(task);\n        }\n        if (parentElement == null && target != null) {\n            parentElement = (TimedElement) targets.get(target);\n        }\n\n        /*\n        if (parentElement == null) {\n            Stack threadStack\n                    = (Stack) threadStacks.get(Thread.currentThread());\n            if (threadStack != null) {\n                if (!threadStack.empty()) {\n                    parentElement = (TimedElement) threadStack.peek();\n                }\n            }\n        }\n        */\n\n        if (parentElement != null) {\n            parentElement.element.appendChild(messageElement);\n        } else {\n            buildElement.element.appendChild(messageElement);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [3, 18], [0, 19], [8, 20], [0, 21], [10, 22], [13, 23], [16, 24], [17, 25], [17, 26], [18, 27], [4, 28], [5, 29], [6, 30], [7, 31], [8, 32], [8, 33], [20, 34], [20, 35], [9, 36], [10, 37], [10, 38], [10, 39], [10, 40], [11, 41], [12, 42], [13, 43], [14, 44], [1, 45], [1, 46], [2, 47], [25, 48], [26, 49], [3, 50], [31, 51], [8, 52], [8, 53], [34, 54], [10, 55], [10, 56], [10, 57], [10, 58], [50, 59], [32, 60], [33, 61], [55, 62], [56, 63], [57, 64], [58, 65], [47, 66], [61, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 3], [19, 0], [20, 8], [21, 0], [22, 10], [23, 13], [24, 16], [25, 17], [26, 17], [27, 18], [28, 4], [29, 5], [30, 6], [31, 7], [32, 8], [33, 8], [34, 20], [35, 20], [36, 9], [37, 10], [38, 10], [39, 10], [40, 10], [41, 11], [42, 12], [43, 13], [44, 14], [45, 1], [46, 1], [47, 2], [48, 25], [49, 26], [50, 3], [51, 31], [52, 8], [53, 8], [54, 34], [55, 10], [56, 10], [57, 10], [58, 10], [59, 50], [60, 32], [61, 33], [62, 55], [63, 56], [64, 57], [65, 58], [66, 47], [67, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "setMessageOutputLevel", "code": "    public void setMessageOutputLevel(int level) {\n        msgOutputLevel = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutputPrintStream", "code": "    public void setOutputPrintStream(PrintStream output) {\n        this.outStream = new PrintStream(output, true);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setEmacsMode", "code": "    public void setEmacsMode(boolean emacsMode) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorPrintStream", "code": "    public void setErrorPrintStream(PrintStream err) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XmlLogger", "code": "    public XmlLogger() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.5-438", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/TaskOutputStream.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.TaskOutputStream", "code": "public class TaskOutputStream extends OutputStream {\n\n    private Task task;\n    private StringBuffer line;\n    private int msgOutputLevel;\n\n    /**\n     * Constructs a new JavacOutputStream with the given project\n     * as the output source for messages.\n     */\n\n    TaskOutputStream(Task task, int msgOutputLevel) {\n        System.err.println(\"As of Ant 1.2 released in October 2000, the TaskOutputStream class\");\n        System.err.println(\"is considered to be dead code by the Ant developers and is unmaintained.\");\n        System.err.println(\"Don\\'t use it!\");\n\n        this.task = task;\n        this.msgOutputLevel = msgOutputLevel;\n\n        line = new StringBuffer();\n    }\n\n    /**\n     * Write a character to the output stream. This method looks\n     * to make sure that there isn't an error being reported and\n     * will flush each line of input out to the project's log stream.\n     */\n\n    public void write(int c) throws IOException {\n        char cc = (char) c;\n        if (cc == '\\r' || cc == '\\n') {\n            if (line.length() > 0) {\n                processLine();\n            }\n        } else {\n            line.append(cc);\n        }\n    }\n\n    /**\n     * Processes a line of input and determines if an error occured.\n     */\n\n    private void processLine() {\n        String s = line.toString();\n        task.log(s, msgOutputLevel);\n        line = new StringBuffer();", "functions": [{"function_name": "write", "code": "    public void write(int c) throws IOException {\n        char cc = (char) c;\n        if (cc == '\\r' || cc == '\\n') {\n            if (line.length() > 0) {\n                processLine();\n            }\n        } else {\n            line.append(cc);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [5, 9], [6, 10], [7, 11], [9, 12], [9, 13], [5, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 5], [10, 6], [11, 7], [12, 9], [13, 9], [14, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "processLine", "code": "    private void processLine() {\n        String s = line.toString();\n        task.log(s, msgOutputLevel);\n        line = new StringBuffer();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "TaskOutputStream", "code": "    TaskOutputStream(Task task, int msgOutputLevel) {\n        System.err.println(\"As of Ant 1.2 released in October 2000, the TaskOutputStream class\");\n        System.err.println(\"is considered to be dead code by the Ant developers and is unmaintained.\");\n        System.err.println(\"Don\\'t use it!\");\n\n        this.task = task;\n        this.msgOutputLevel = msgOutputLevel;\n\n        line = new StringBuffer();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [6, 10], [7, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 6], [11, 7], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "camel-1.4-2229", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/bean/RegistryBean.java", "language": "java", "name": "org.apache.camel.component.bean.RegistryBean", "code": "public class RegistryBean implements BeanHolder {\n    private final CamelContext context;\n    private final String name;\n    private final Registry registry;\n    private Processor processor;\n    private BeanInfo beanInfo;\n    private Object bean;\n    private ParameterMappingStrategy parameterMappingStrategy;\n\n    public RegistryBean(CamelContext context, String name) {\n        this.context = context;\n        this.name = name;\n        this.registry = context.getRegistry();\n    }\n\n    public RegistryBean(CamelContext context, String name, ParameterMappingStrategy parameterMappingStrategy) {\n        this(context, name);\n        this.parameterMappingStrategy = parameterMappingStrategy;\n    }\n\n    @Override\n    public String toString() {\n        return \"bean: \" + name;\n    }\n\n\n    public ConstantBeanHolder createCacheHolder() throws Exception {\n        return new ConstantBeanHolder(getBean(), getBeanInfo());\n    }\n\n    public Object getBean() throws Exception {\n        Object value = lookupBean();\n        if (value == null) {\n            throw new NoBeanAvailableException(name);\n        }\n        if (value != bean) {\n            bean = value;\n            processor = null;\n            if (!ObjectHelper.equal(ObjectHelper.type(bean), ObjectHelper.type(value))) {\n                beanInfo = null;\n            }\n        }\n        return value;\n    }\n\n    public Processor getProcessor() {\n        if (processor == null && bean != null) {\n            processor = CamelContextHelper.convertTo(context, Processor.class, bean);\n        }\n        return processor;\n    }\n\n    public BeanInfo getBeanInfo() {\n        if (beanInfo == null && bean != null) {\n            this.beanInfo = createBeanInfo();\n        }\n        return beanInfo;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public Registry getRegistry() {\n        return registry;\n    }\n\n    public CamelContext getContext() {\n        return context;\n    }\n\n    public ParameterMappingStrategy getParameterMappingStrategy() {\n        if (parameterMappingStrategy == null) {\n            parameterMappingStrategy = createParameterMappingStrategy();\n        }\n        return parameterMappingStrategy;\n    }\n\n    public void setParameterMappingStrategy(ParameterMappingStrategy parameterMappingStrategy) {\n        this.parameterMappingStrategy = parameterMappingStrategy;\n    }\n\n    protected BeanInfo createBeanInfo() {\n        return new BeanInfo(context, bean.getClass(), getParameterMappingStrategy());\n    }\n\n    protected ParameterMappingStrategy createParameterMappingStrategy() {\n        return BeanInfo.createParameterMappingStrategy(context);\n    }\n\n    protected Object lookupBean() throws Exception {\n        return registry.lookup(name);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"bean: \" + name;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createCacheHolder", "code": "    public ConstantBeanHolder createCacheHolder() throws Exception {\n        return new ConstantBeanHolder(getBean(), getBeanInfo());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBean", "code": "    public Object getBean() throws Exception {\n        Object value = lookupBean();\n        if (value == null) {\n            throw new NoBeanAvailableException(name);\n        }\n        if (value != bean) {\n            bean = value;\n            processor = null;\n            if (!ObjectHelper.equal(ObjectHelper.type(bean), ObjectHelper.type(value))) {\n                beanInfo = null;\n            }\n        }\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [2, 7], [3, 8], [6, 9], [4, 10], [7, 11], [2, 12], [2, 13], [8, 14], [11, 15], [11, 16], [12, 17], [7, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 2], [8, 3], [9, 6], [10, 4], [11, 7], [12, 2], [13, 2], [14, 8], [15, 11], [16, 11], [17, 12], [18, 7], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getProcessor", "code": "    public Processor getProcessor() {\n        if (processor == null && bean != null) {\n            processor = CamelContextHelper.convertTo(context, Processor.class, bean);\n        }\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [2, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 2], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getBeanInfo", "code": "    public BeanInfo getBeanInfo() {\n        if (beanInfo == null && bean != null) {\n            this.beanInfo = createBeanInfo();\n        }\n        return beanInfo;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [2, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 2], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRegistry", "code": "    public Registry getRegistry() {\n        return registry;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContext", "code": "    public CamelContext getContext() {\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getParameterMappingStrategy", "code": "    public ParameterMappingStrategy getParameterMappingStrategy() {\n        if (parameterMappingStrategy == null) {\n            parameterMappingStrategy = createParameterMappingStrategy();\n        }\n        return parameterMappingStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setParameterMappingStrategy", "code": "    public void setParameterMappingStrategy(ParameterMappingStrategy parameterMappingStrategy) {\n        this.parameterMappingStrategy = parameterMappingStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createBeanInfo", "code": "    protected BeanInfo createBeanInfo() {\n        return new BeanInfo(context, bean.getClass(), getParameterMappingStrategy());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createParameterMappingStrategy", "code": "    protected ParameterMappingStrategy createParameterMappingStrategy() {\n        return BeanInfo.createParameterMappingStrategy(context);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "lookupBean", "code": "    protected Object lookupBean() throws Exception {\n        return registry.lookup(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RegistryBean", "code": "    public RegistryBean(CamelContext context, String name) {\n        this.context = context;\n        this.name = name;\n        this.registry = context.getRegistry();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "RegistryBean", "code": "    public RegistryBean(CamelContext context, String name, ParameterMappingStrategy parameterMappingStrategy) {\n        this(context, name);\n        this.parameterMappingStrategy = parameterMappingStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.6-7920", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/lib/sql/ConnectionPoolManager.java", "language": "java", "name": "org.apache.xalan.lib.sql.ConnectionPoolManager", "code": "public class ConnectionPoolManager\n{\n  /**\n   */\n  static Hashtable m_poolTable = null;\n  /**\n   */\n  static boolean m_isInit = false;\n\n  /**\n   */\n  public ConnectionPoolManager( )\n  {\n    init();\n  }\n\n  /**\n   * Initialize the internal structures of the Pool Manager\n   *\n   */\n  public synchronized void init( )\n  {\n    if (m_isInit == true) return;\n\n\n    m_poolTable = new Hashtable();\n\n    m_isInit = true;\n  }\n\n  /**\n   * Register a nuew connection pool to the global pool table.\n   * If a pool by that name currently exists, then throw an\n   * IllegalArgumentException stating that the pool already\n   * exist.\n   * @param name\n   * @param pool\n   *\n   * @link org.apache.xalan.lib.sql.ConnectionPool}\n   *\n   * @throws <code>IllegalArgumentException</code>, throw this exception\n   * if a pool with the same name currently exists.\n   */\n  public synchronized void registerPool( String name, ConnectionPool pool )\n  {\n    if ( m_poolTable.containsKey(name) )\n    {\n    }\n\n    m_poolTable.put(name, pool);\n  }\n\n  /**\n   * Remove a pool from the global table. If the pool still has\n   * active connections, then only mark this pool as inactive and\n   * leave it around until all the existing connections are closed.\n   * @param name\n   *\n   */\n  public synchronized void removePool( String name )\n  {\n    ConnectionPool pool = getPool(name);\n\n    if (null != pool)\n    {\n      pool.setPoolEnabled(false);\n\n\n      if ( ! pool.hasActiveConnections() ) m_poolTable.remove(name);\n    }\n\n  }\n\n\n  /**\n   * Return the connection pool referenced by the name\n   * @param name\n   *\n   * @return <code>ConnectionPool</code> a reference to the ConnectionPool\n   * object stored in the Pool Table. If the named pool does not exist, return\n   * null\n   */\n  public synchronized ConnectionPool getPool( String name )\n  {\n    return (ConnectionPool) m_poolTable.get(name);", "functions": [{"function_name": "init", "code": "  public synchronized void init( )\n  {\n    if (m_isInit == true) return;\n\n\n    m_poolTable = new Hashtable();\n\n    m_isInit = true;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [3, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 3], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "registerPool", "code": "  public synchronized void registerPool( String name, ConnectionPool pool )\n  {\n    if ( m_poolTable.containsKey(name) )\n    {\n    }\n\n    m_poolTable.put(name, pool);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "removePool", "code": "  public synchronized void removePool( String name )\n  {\n    ConnectionPool pool = getPool(name);\n\n    if (null != pool)\n    {\n      pool.setPoolEnabled(false);\n\n\n      if ( ! pool.hasActiveConnections() ) m_poolTable.remove(name);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [5, 8], [1, 9], [5, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 5], [9, 1], [10, 5], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getPool", "code": "  public synchronized ConnectionPool getPool( String name )\n  {\n    return (ConnectionPool) m_poolTable.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ConnectionPoolManager", "code": "  public ConnectionPoolManager( )\n  {\n    init();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.7-8353", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/objects/XNumber.java", "language": "java", "name": "org.apache.xpath.objects.XNumber", "code": "public class XNumber extends XObject\n{\n    static final long serialVersionUID = -2720400709619020193L;\n\n  /** Value of the XNumber object.\n   *  @serial         */\n  double m_val;\n\n  /**\n   * Construct a XNodeSet object.\n   *\n   * @param d Value of the object\n   */\n  public XNumber(double d)\n  {\n    super();\n\n    m_val = d;\n  }\n  \n  /**\n   * Construct a XNodeSet object.\n   *\n   * @param num Value of the object\n   */\n  public XNumber(Number num)\n  {\n\n    super();\n\n    m_val = num.doubleValue();\n    m_obj = num;\n  }\n\n  /**\n   * Tell that this is a CLASS_NUMBER.\n   *\n   * @return node type CLASS_NUMBER \n   */\n  public int getType()\n  {\n    return CLASS_NUMBER;\n  }\n\n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return type string \"#NUMBER\" \n   */\n  public String getTypeString()\n  {\n    return \"#NUMBER\";\n  }\n\n  /**\n   * Cast result object to a number.\n   *\n   * @return the value of the XNumber object\n   */\n  public double num()\n  {\n    return m_val;\n  }\n  \n  /**\n   * Evaluate expression to a number.\n   *\n   * @return 0.0\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public double num(XPathContext xctxt) \n    throws javax.xml.transform.TransformerException\n  {\n\n    return m_val;\n  }\n\n  /**\n   * Cast result object to a boolean.\n   *\n   * @return false if the value is NaN or equal to 0.0\n   */\n  public boolean bool()\n  {\n    return (Double.isNaN(m_val) || (m_val == 0.0)) ? false : true;\n  }\n\n\n  /**\n   * Cast result object to a string.\n   *\n   * @return \"NaN\" if the number is NaN, Infinity or -Infinity if\n   * the number is infinite or the string value of the number.\n   */\n  public String str()\n  {\n\n    if (Double.isNaN(m_val))\n    {\n      return \"NaN\";\n    }\n    else if (Double.isInfinite(m_val))\n    {\n      if (m_val > 0)\n        return \"Infinity\";\n      else\n        return \"-Infinity\";\n    }\n\n    double num = m_val;\n    String s = Double.toString(num);\n    int len = s.length();\n\n    if (s.charAt(len - 2) == '.' && s.charAt(len - 1) == '0')\n    {\n      s = s.substring(0, len - 2);\n\n      if (s.equals(\"-0\"))\n        return \"0\";\n\n      return s;\n    }\n\n    int e = s.indexOf('E');\n\n    if (e < 0)\n    {\n      if (s.charAt(len - 1) == '0')\n        return s.substring(0, len - 1);\n      else\n        return s;\n    }\n\n    int exp = Integer.parseInt(s.substring(e + 1));\n    String sign;\n\n    if (s.charAt(0) == '-')\n    {\n      sign = \"-\";\n      s = s.substring(1);\n\n      --e;\n    }\n    else\n      sign = \"\";\n\n    int nDigits = e - 2;\n\n    if (exp >= nDigits)\n      return sign + s.substring(0, 1) + s.substring(2, e)\n             + zeros(exp - nDigits);\n\n    while (s.charAt(e-1) == '0')\n      e--;\n         \n    if (exp > 0)\n      return sign + s.substring(0, 1) + s.substring(2, 2 + exp) + \".\"\n             + s.substring(2 + exp, e);\n\n    return sign + \"0.\" + zeros(-1 - exp) + s.substring(0, 1)\n           + s.substring(2, e);\n  }\n\n\n  /**\n   * Return a string of '0' of the given length\n   *\n   *\n   * @param n Length of the string to be returned\n   *\n   * @return a string of '0' with the given length\n   */\n  static private String zeros(int n)\n  {\n    if (n < 1)\n      return \"\";\n\n    char[] buf = new char[n];\n\n    for (int i = 0; i < n; i++)\n    {\n      buf[i] = '0';\n    }\n\n    return new String(buf);\n  }\n\n  /**\n   * Return a java object that's closest to the representation\n   * that should be handed to an extension.\n   *\n   * @return The value of this XNumber as a Double object\n   */\n  public Object object()\n  {\n    if(null == m_obj)\n      m_obj = new Double(m_val);\n    return m_obj;\n  }\n\n  /**\n   * Tell if two objects are functionally equal.\n   *\n   * @param obj2 Object to compare this to\n   *\n   * @return true if the two objects are equal \n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean equals(XObject obj2)\n  {\n\n    int t = obj2.getType();\n    try\n    {\n\t    if (t == XObject.CLASS_NODESET)\n\t      return obj2.equals(this);\n\t    else if(t == XObject.CLASS_BOOLEAN)\n\t      return obj2.bool() == bool();\n\t\telse\n\t       return m_val == obj2.num();\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);\n    }\n  }\n  \n  /**\n   * Tell if this expression returns a stable number that will not change during \n   * iterations within the expression.  This is used to determine if a proximity \n   * position predicate can indicate that no more searching has to occur.\n   * \n   *\n   * @return true if the expression represents a stable number.\n   */\n  public boolean isStableNumber()\n  {\n    return true;\n  }\n  \n  /**\n   * @see org.apache.xpath.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitNumberLiteral(owner, this);", "functions": [{"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_NUMBER;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"#NUMBER\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "num", "code": "  public double num()\n  {\n    return m_val;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "num", "code": "  public double num(XPathContext xctxt) \n    throws javax.xml.transform.TransformerException\n  {\n\n    return m_val;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "bool", "code": "  public boolean bool()\n  {\n    return (Double.isNaN(m_val) || (m_val == 0.0)) ? false : true;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "str", "code": "  public String str()\n  {\n\n    if (Double.isNaN(m_val))\n    {\n      return \"NaN\";\n    }\n    else if (Double.isInfinite(m_val))\n    {\n      if (m_val > 0)\n        return \"Infinity\";\n      else\n        return \"-Infinity\";\n    }\n\n    double num = m_val;\n    String s = Double.toString(num);\n    int len = s.length();\n\n    if (s.charAt(len - 2) == '.' && s.charAt(len - 1) == '0')\n    {\n      s = s.substring(0, len - 2);\n\n      if (s.equals(\"-0\"))\n        return \"0\";\n\n      return s;\n    }\n\n    int e = s.indexOf('E');\n\n    if (e < 0)\n    {\n      if (s.charAt(len - 1) == '0')\n        return s.substring(0, len - 1);\n      else\n        return s;\n    }\n\n    int exp = Integer.parseInt(s.substring(e + 1));\n    String sign;\n\n    if (s.charAt(0) == '-')\n    {\n      sign = \"-\";\n      s = s.substring(1);\n\n      --e;\n    }\n    else\n      sign = \"\";\n\n    int nDigits = e - 2;\n\n    if (exp >= nDigits)\n      return sign + s.substring(0, 1) + s.substring(2, e)\n             + zeros(exp - nDigits);\n\n    while (s.charAt(e-1) == '0')\n      e--;\n         \n    if (exp > 0)\n      return sign + s.substring(0, 1) + s.substring(2, 2 + exp) + \".\"\n             + s.substring(2 + exp, e);\n\n    return sign + \"0.\" + zeros(-1 - exp) + s.substring(0, 1)\n           + s.substring(2, e);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [2, 18], [3, 19], [4, 20], [4, 21], [6, 22], [9, 23], [11, 24], [15, 25], [15, 26], [16, 27], [16, 28], [17, 29], [18, 30], [19, 31], [19, 32], [20, 33], [5, 34], [6, 35], [22, 36], [22, 37], [8, 38], [9, 39], [23, 40], [10, 41], [11, 42], [11, 43], [24, 44], [24, 45], [12, 46], [13, 47], [25, 48], [15, 49], [27, 50], [28, 51], [28, 52], [29, 53], [29, 54], [32, 55], [33, 56], [33, 57], [34, 58], [35, 59], [6, 60], [6, 61], [37, 62], [38, 63], [39, 64], [39, 65], [39, 66], [41, 67], [43, 68], [43, 69], [11, 70], [44, 71], [44, 72], [45, 73], [45, 74], [25, 75], [49, 76], [51, 77], [51, 78], [52, 79], [52, 80], [53, 81], [54, 82], [54, 83], [55, 84], [56, 85], [57, 86], [57, 87], [60, 88], [61, 89], [63, 90], [65, 91], [66, 92], [66, 93], [68, 94], [69, 95], [70, 96], [72, 97], [74, 98], [75, 99], [75, 100], [75, 101], [79, 102], [80, 103], [81, 104], [83, 105], [83, 106], [86, 107], [87, 108], [88, 109], [90, 110], [91, 111], [91, 112], [93, 113], [96, 114], [96, 115], [97, 116], [98, 117], [99, 118], [100, 119], [101, 120], [102, 121], [105, 122], [105, 123], [106, 124], [108, 125], [108, 126], [111, 127], [113, 128], [114, 129], [122, 130], [124, 131], [124, 132], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 2], [19, 3], [20, 4], [21, 4], [22, 6], [23, 9], [24, 11], [25, 15], [26, 15], [27, 16], [28, 16], [29, 17], [30, 18], [31, 19], [32, 19], [33, 20], [34, 5], [35, 6], [36, 22], [37, 22], [38, 8], [39, 9], [40, 23], [41, 10], [42, 11], [43, 11], [44, 24], [45, 24], [46, 12], [47, 13], [48, 25], [49, 15], [50, 27], [51, 28], [52, 28], [53, 29], [54, 29], [55, 32], [56, 33], [57, 33], [58, 34], [59, 35], [60, 6], [61, 6], [62, 37], [63, 38], [64, 39], [65, 39], [66, 39], [67, 41], [68, 43], [69, 43], [70, 11], [71, 44], [72, 44], [73, 45], [74, 45], [75, 25], [76, 49], [77, 51], [78, 51], [79, 52], [80, 52], [81, 53], [82, 54], [83, 54], [84, 55], [85, 56], [86, 57], [87, 57], [88, 60], [89, 61], [90, 63], [91, 65], [92, 66], [93, 66], [94, 68], [95, 69], [96, 70], [97, 72], [98, 74], [99, 75], [100, 75], [101, 75], [102, 79], [103, 80], [104, 81], [105, 83], [106, 83], [107, 86], [108, 87], [109, 88], [110, 90], [111, 91], [112, 91], [113, 93], [114, 96], [115, 96], [116, 97], [117, 98], [118, 99], [119, 100], [120, 101], [121, 102], [122, 105], [123, 105], [124, 106], [125, 108], [126, 108], [127, 111], [128, 113], [129, 114], [130, 122], [131, 124], [132, 124], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132]]}, {"function_name": "zeros", "code": "  static private String zeros(int n)\n  {\n    if (n < 1)\n      return \"\";\n\n    char[] buf = new char[n];\n\n    for (int i = 0; i < n; i++)\n    {\n      buf[i] = '0';\n    }\n\n    return new String(buf);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [8, 10], [9, 11], [2, 12], [2, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 8], [11, 9], [12, 2], [13, 2], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "object", "code": "  public Object object()\n  {\n    if(null == m_obj)\n      m_obj = new Double(m_val);\n    return m_obj;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "equals", "code": "  public boolean equals(XObject obj2)\n  {\n\n    int t = obj2.getType();\n    try\n    {\n\t    if (t == XObject.CLASS_NODESET)\n\t      return obj2.equals(this);\n\t    else if(t == XObject.CLASS_BOOLEAN)\n\t      return obj2.bool() == bool();\n\t\telse\n\t       return m_val == obj2.num();\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "IF", "THROW_RAISE", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "RETURN", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [5, 9], [2, 10], [6, 11], [7, 12], [7, 13], [7, 14], [8, 15], [12, 16], [13, 17], [16, 18], [17, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 5], [10, 2], [11, 6], [12, 7], [13, 7], [14, 7], [15, 8], [16, 12], [17, 13], [18, 16], [19, 17], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "isStableNumber", "code": "  public boolean isStableNumber()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitNumberLiteral(owner, this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "XNumber", "code": "  public XNumber(double d)\n  {\n    super();\n\n    m_val = d;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "XNumber", "code": "  public XNumber(Number num)\n  {\n\n    super();\n\n    m_val = num.doubleValue();\n    m_obj = num;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.4-2331", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/IdempotentConsumerType.java", "language": "java", "name": "org.apache.camel.model.IdempotentConsumerType", "code": "@XmlRootElement(name = \"idempotentConsumer\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class IdempotentConsumerType extends ExpressionNode {\n    @XmlAttribute\n    private String messageIdRepositoryRef;\n    @XmlTransient\n    private MessageIdRepository messageIdRepository;\n\n    public IdempotentConsumerType() {\n    }\n\n    public IdempotentConsumerType(Expression messageIdExpression, MessageIdRepository messageIdRepository) {\n        super(messageIdExpression);\n        this.messageIdRepository = messageIdRepository;\n    }\n\n    @Override\n    public String toString() {\n        return \"IdempotentConsumer[ \" + getExpression() + \" -> \" + getOutputs() + \"]\";\n    }\n\n    @Override\n    public String getShortName() {\n        return \"idempotentConsumer\";\n    }\n\n    public String getMessageIdRepositoryRef() {\n        return messageIdRepositoryRef;\n    }\n\n    public void setMessageIdRepositoryRef(String messageIdRepositoryRef) {\n        this.messageIdRepositoryRef = messageIdRepositoryRef;\n    }\n\n    public MessageIdRepository getMessageIdRepository() {\n        return messageIdRepository;\n    }\n\n    public void setMessageIdRepository(MessageIdRepository messageIdRepository) {\n        this.messageIdRepository = messageIdRepository;\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        Processor childProcessor = routeContext.createProcessor(this);\n        MessageIdRepository messageIdRepository = resolveMessageIdRepository(routeContext);\n        return new IdempotentConsumer(getExpression().createExpression(routeContext), messageIdRepository,\n                                      childProcessor);\n    }\n\n    public MessageIdRepository resolveMessageIdRepository(RouteContext routeContext) {\n        if (messageIdRepository == null) {\n            messageIdRepository = routeContext.lookup(messageIdRepositoryRef, MessageIdRepository.class);\n        }\n        return messageIdRepository;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"IdempotentConsumer[ \" + getExpression() + \" -> \" + getOutputs() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getShortName", "code": "    @Override\n    public String getShortName() {\n        return \"idempotentConsumer\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMessageIdRepositoryRef", "code": "    public String getMessageIdRepositoryRef() {\n        return messageIdRepositoryRef;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessageIdRepositoryRef", "code": "    public void setMessageIdRepositoryRef(String messageIdRepositoryRef) {\n        this.messageIdRepositoryRef = messageIdRepositoryRef;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMessageIdRepository", "code": "    public MessageIdRepository getMessageIdRepository() {\n        return messageIdRepository;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessageIdRepository", "code": "    public void setMessageIdRepository(MessageIdRepository messageIdRepository) {\n        this.messageIdRepository = messageIdRepository;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        Processor childProcessor = routeContext.createProcessor(this);\n        MessageIdRepository messageIdRepository = resolveMessageIdRepository(routeContext);\n        return new IdempotentConsumer(getExpression().createExpression(routeContext), messageIdRepository,\n                                      childProcessor);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [3, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 3], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "resolveMessageIdRepository", "code": "    public MessageIdRepository resolveMessageIdRepository(RouteContext routeContext) {\n        if (messageIdRepository == null) {\n            messageIdRepository = routeContext.lookup(messageIdRepositoryRef, MessageIdRepository.class);\n        }\n        return messageIdRepository;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "IdempotentConsumerType", "code": "    public IdempotentConsumerType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IdempotentConsumerType", "code": "    public IdempotentConsumerType(Expression messageIdExpression, MessageIdRepository messageIdRepository) {\n        super(messageIdExpression);\n        this.messageIdRepository = messageIdRepository;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "velocity-1.4-6344", "repo": "velocity-1.4", "project": "velocity", "version": "1.4", "file_path": "org/apache/velocity/runtime/parser/node/SimpleNode.java", "language": "java", "name": "org.apache.velocity.runtime.parser.node.SimpleNode", "code": "public class SimpleNode implements Node\n{\n    protected RuntimeServices rsvc = null;\n\n    protected Node parent;\n    protected Node[] children;\n    protected int id;\n    protected Parser parser;\n    \n    public boolean state;\n    protected boolean invalid = false;\n    \n    /* Added */\n    protected Token first, last;\n\n    public SimpleNode(int i)\n    {\n        id = i;\n    }\n\n    public SimpleNode(Parser p, int i)\n    {\n        this(i);\n        parser = p;\n    }\n\n    public void jjtOpen()\n    {\n    }\n\n    public void jjtClose()\n    {\n    }\n\n    public void setFirstToken(Token t)\n    {\n        this.first = t;\n    }\n\n    public Token getFirstToken()\n    {\n        return first;\n    }\n    public Token getLastToken()\n    {\n        return last;\n    }\n\n    public void jjtSetParent(Node n)\n    {\n        parent = n;\n    }\n    public Node jjtGetParent()\n    {\n        return parent;\n    }\n\n    public void jjtAddChild(Node n, int i)\n    {\n        if (children == null)\n        {\n            children = new Node[i + 1];\n        }\n        else if (i >= children.length)\n        {\n            Node c[] = new Node[i + 1];\n            System.arraycopy(children, 0, c, 0, children.length);\n            children = c;\n        }\n        children[i] = n;\n    }\n\n    public Node jjtGetChild(int i)\n    {\n        return children[i];\n    }\n\n    public int jjtGetNumChildren()\n    {\n        return (children == null) ? 0 : children.length;\n    }\n\n    /** Accept the visitor. **/\n    public Object jjtAccept(ParserVisitor visitor, Object data)\n    {\n        return visitor.visit(this, data);\n    }\n\n    /** Accept the visitor. **/\n    public Object childrenAccept(ParserVisitor visitor, Object data)\n    {\n        if (children != null)\n        {\n            for (int i = 0; i < children.length; ++i)\n            {\n                children[i].jjtAccept(visitor, data);\n            }\n        }\n        return data;\n    }\n\n    /* You can override these two methods in subclasses of SimpleNode to\n        customize the way the node appears when the tree is dumped.  If\n        your output uses more than one line you should override\n        toString(String), otherwise overriding toString() is probably all\n        you need to do. */\n\n    public String toString(String prefix)\n    {\n        return prefix + toString();\n    }\n\n    /* Override this method if you want to customize how the node dumps\n        out its children. */\n\n    public void dump(String prefix)\n    {\n        System.out.println(toString(prefix));\n        if (children != null)\n        {\n            for (int i = 0; i < children.length; ++i)\n            {\n                SimpleNode n = (SimpleNode) children[i];\n                if (n != null)\n                {\n                    n.dump(prefix + \" \");\n                }\n            }\n        }\n    }\n\n\n    public String literal()\n    {\n        Token t = first;\n        StringBuffer sb = new StringBuffer(t.image);\n        \n        while (t != last)\n        {\n            t = t.next;\n            sb.append(t.image);\n        }\n        \n        return sb.toString();\n    }\n\n    public Object init( InternalContextAdapter context, Object data) throws Exception\n    {\n        /*\n         * hold onto the RuntimeServices\n         */\n\n        rsvc = (RuntimeServices) data;\n\n        int i, k = jjtGetNumChildren();\n\n        for (i = 0; i < k; i++)\n        {\n            try\n            {\n                jjtGetChild(i).init( context, data);\n            }\n            catch (ReferenceException re)\n            {\n                rsvc.error(re);\n            }\n        }            \n    \n        return data;\n    }\n\n    public boolean evaluate( InternalContextAdapter  context)\n        throws MethodInvocationException\n    {\n        return false;\n    }        \n\n    public Object value( InternalContextAdapter context)\n        throws MethodInvocationException\n    {\n        return null;\n    }        \n\n    public boolean render( InternalContextAdapter context, Writer writer)\n        throws IOException, MethodInvocationException, ParseErrorException, ResourceNotFoundException\n    {\n        int i, k = jjtGetNumChildren();\n\n        for (i = 0; i < k; i++)\n            jjtGetChild(i).render(context, writer);\n    \n        return true;\n    }\n\n    public Object execute(Object o, InternalContextAdapter context)\n      throws MethodInvocationException\n    {\n        return null;\n    }\n\n    public int getType()\n    {\n        return id;\n    }\n\n    public void setInfo(int info)\n    {\n        this.info = info;\n    }\n    \n    public int getInfo()\n    {\n        return info;\n    }        \n\n    public void setInvalid()\n    {\n        invalid = true;\n    }        \n\n    public boolean isInvalid()\n    {\n        return invalid;\n    }        \n\n    public int getLine()\n    {\n        return first.beginLine;\n    }\n    \n    public int getColumn()\n    {\n        return first.beginColumn;", "functions": [{"function_name": "jjtOpen", "code": "    public void jjtOpen()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "jjtClose", "code": "    public void jjtClose()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setFirstToken", "code": "    public void setFirstToken(Token t)\n    {\n        this.first = t;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstToken", "code": "    public Token getFirstToken()\n    {\n        return first;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastToken", "code": "    public Token getLastToken()\n    {\n        return last;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "jjtSetParent", "code": "    public void jjtSetParent(Node n)\n    {\n        parent = n;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "jjtGetParent", "code": "    public Node jjtGetParent()\n    {\n        return parent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "jjtAddChild", "code": "    public void jjtAddChild(Node n, int i)\n    {\n        if (children == null)\n        {\n            children = new Node[i + 1];\n        }\n        else if (i >= children.length)\n        {\n            Node c[] = new Node[i + 1];\n            System.arraycopy(children, 0, c, 0, children.length);\n            children = c;\n        }\n        children[i] = n;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [5, 9], [1, 10], [5, 11], [5, 12], [12, 13], [12, 14], [10, 15], [9, 16], [15, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 5], [10, 1], [11, 5], [12, 5], [13, 12], [14, 12], [15, 10], [16, 9], [17, 15], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jjtGetChild", "code": "    public Node jjtGetChild(int i)\n    {\n        return children[i];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "jjtGetNumChildren", "code": "    public int jjtGetNumChildren()\n    {\n        return (children == null) ? 0 : children.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "jjtAccept", "code": "    public Object jjtAccept(ParserVisitor visitor, Object data)\n    {\n        return visitor.visit(this, data);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "childrenAccept", "code": "    public Object childrenAccept(ParserVisitor visitor, Object data)\n    {\n        if (children != null)\n        {\n            for (int i = 0; i < children.length; ++i)\n            {\n                children[i].jjtAccept(visitor, data);\n            }\n        }\n        return data;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "toString", "code": "    public String toString(String prefix)\n    {\n        return prefix + toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "dump", "code": "    public void dump(String prefix)\n    {\n        System.out.println(toString(prefix));\n        if (children != null)\n        {\n            for (int i = 0; i < children.length; ++i)\n            {\n                SimpleNode n = (SimpleNode) children[i];\n                if (n != null)\n                {\n                    n.dump(prefix + \" \");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [4, 7], [5, 8], [5, 9], [5, 10], [9, 11], [5, 12], [11, 13], [9, 14], [14, 15], [15, 16], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 4], [8, 5], [9, 5], [10, 5], [11, 9], [12, 5], [13, 11], [14, 9], [15, 14], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "literal", "code": "    public String literal()\n    {\n        Token t = first;\n        StringBuffer sb = new StringBuffer(t.image);\n        \n        while (t != last)\n        {\n            t = t.next;\n            sb.append(t.image);\n        }\n        \n        return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "init", "code": "    public Object init( InternalContextAdapter context, Object data) throws Exception\n    {\n        /*\n         * hold onto the RuntimeServices\n         */\n\n        rsvc = (RuntimeServices) data;\n\n        int i, k = jjtGetNumChildren();\n\n        for (i = 0; i < k; i++)\n        {\n            try\n            {\n                jjtGetChild(i).init( context, data);\n            }\n            catch (ReferenceException re)\n            {\n                rsvc.error(re);\n            }\n        }            \n    \n        return data;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [0, 8], [2, 9], [7, 10], [3, 11], [9, 12], [9, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 0], [9, 2], [10, 7], [11, 3], [12, 9], [13, 9], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "evaluate", "code": "    public boolean evaluate( InternalContextAdapter  context)\n        throws MethodInvocationException\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "value", "code": "    public Object value( InternalContextAdapter context)\n        throws MethodInvocationException\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "render", "code": "    public boolean render( InternalContextAdapter context, Writer writer)\n        throws IOException, MethodInvocationException, ParseErrorException, ResourceNotFoundException\n    {\n        int i, k = jjtGetNumChildren();\n\n        for (i = 0; i < k; i++)\n            jjtGetChild(i).render(context, writer);\n    \n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [8, 10], [3, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 8], [11, 3], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "execute", "code": "    public Object execute(Object o, InternalContextAdapter context)\n      throws MethodInvocationException\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return id;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInfo", "code": "    public void setInfo(int info)\n    {\n        this.info = info;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInfo", "code": "    public int getInfo()\n    {\n        return info;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInvalid", "code": "    public void setInvalid()\n    {\n        invalid = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isInvalid", "code": "    public boolean isInvalid()\n    {\n        return invalid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLine", "code": "    public int getLine()\n    {\n        return first.beginLine;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getColumn", "code": "    public int getColumn()\n    {\n        return first.beginColumn;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SimpleNode", "code": "    public SimpleNode(int i)\n    {\n        id = i;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SimpleNode", "code": "    public SimpleNode(Parser p, int i)\n    {\n        this(i);\n        parser = p;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "camel-1.6-2651", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/dataset/DataSet.java", "language": "java", "name": "org.apache.camel.component.dataset.DataSet", "code": "public interface DataSet {\n\n    String INDEX_HEADER = \"camelDataSetIndex\";\n\n    /**\n     * Populates a message exchange when using the DataSet as a source of messages\n     *\n     * @param exchange\n     */\n    void populateMessage(Exchange exchange, long messageIndex) throws Exception;\n\n    /**\n     * Returns the size of the dataset\n     */\n    long getSize();\n\n    /**\n     * Asserts that the expected message has been received for the given index\n     */\n    void assertMessageExpected(DataSetEndpoint dataSetEndpoint, Exchange expected, Exchange actual, long index) throws Exception;\n\n    /**\n     * Returns the number of messages which should be received before reporting on the progress of the test\n     */\n    long getReportCount();", "functions": [{"function_name": "populateMessage", "code": "    void populateMessage(Exchange exchange, long messageIndex) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSize", "code": "    long getSize();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "assertMessageExpected", "code": "    void assertMessageExpected(DataSetEndpoint dataSetEndpoint, Exchange expected, Exchange actual, long index) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getReportCount", "code": "    long getReportCount();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.4-2156", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/cxf/CxfProducer.java", "language": "java", "name": "org.apache.camel.component.cxf.CxfProducer", "code": "public class CxfProducer extends DefaultProducer<CxfExchange> {\n    private CxfEndpoint endpoint;\n    private Client client;\n    private DataFormat dataFormat;\n\n    public CxfProducer(CxfEndpoint endpoint) throws CamelException {\n        super(endpoint);\n        this.endpoint = endpoint;\n        dataFormat = CxfEndpointUtils.getDataFormat(endpoint);\n        if (dataFormat.equals(DataFormat.POJO)) {\n            client = createClientFromClientFactoryBean(null);\n        } else {\n            client = createClientForStreamMessage();\n        }\n    }\n\n    private Client createClientForStreamMessage() throws CamelException {\n        CxfClientFactoryBean cfb = new CxfClientFactoryBean();\n        Class serviceClass = null;\n        if (endpoint.isSpringContextEndpoint()) {\n            CxfEndpointBean cxfEndpointBean = endpoint.getCxfEndpointBean();\n            serviceClass = cxfEndpointBean.getServiceClass();\n        } else {\n            if (endpoint.getServiceClass() == null) {\n                throw new CamelException(\"serviceClass setting missing from CXF endpoint configuration\");\n            }\n            try {\n                serviceClass = ClassLoaderUtils.loadClass(endpoint.getServiceClass(), this.getClass());\n            } catch (ClassNotFoundException e) {\n                throw new CamelException(e);\n            }\n        }\n\n        boolean jsr181Enabled = CxfEndpointUtils.hasWebServiceAnnotation(serviceClass);\n        cfb.setJSR181Enabled(jsr181Enabled);\n\n        dataFormat = CxfEndpointUtils.getDataFormat(endpoint);\n        List<AbstractFeature> features = new ArrayList<AbstractFeature>();\n        if (dataFormat.equals(DataFormat.MESSAGE)) {\n            features.add(new MessageDataFormatFeature());\n        } else if (dataFormat.equals(DataFormat.PAYLOAD)) {\n            features.add(new PayLoadDataFormatFeature());\n        }\n        cfb.setFeatures(features);\n\n        return createClientFromClientFactoryBean(cfb);\n    }\n\n    private Client createClientFromClientFactoryBean(ClientFactoryBean cfb) throws CamelException {\n        Bus bus = null;\n        if (endpoint.getApplicationContext() != null) {\n            SpringBusFactory bf = new SpringBusFactory(endpoint.getApplicationContext());\n            bus = bf.createBus();\n            if (CxfEndpointUtils.getSetDefaultBus(endpoint)) {\n                BusFactory.setDefaultBus(bus);\n            }\n        } else {\n            bus = BusFactory.getDefaultBus();\n        }\n        if (endpoint.isSpringContextEndpoint()) {\n            CxfEndpointBean cxfEndpointBean = endpoint.getCxfEndpointBean();\n            if (cfb == null) {\n                cfb = CxfEndpointUtils.getClientFactoryBean(cxfEndpointBean.getServiceClass());\n            }\n            endpoint.configure(cfb);\n\n            if (null != endpoint.getServiceClass()) {\n                try {\n                    Class serviceClass = ClassLoaderUtils.loadClass(endpoint.getServiceClass(), this\n                        .getClass());\n                    if (cfb == null) {\n                        cfb = CxfEndpointUtils.getClientFactoryBean(serviceClass);\n                    }\n                    cfb.setAddress(endpoint.getAddress());\n                    if (null != endpoint.getServiceClass()) {\n                        cfb.setServiceClass(ObjectHelper.loadClass(endpoint.getServiceClass()));\n                    }\n                    if (null != endpoint.getWsdlURL()) {\n                        cfb.setWsdlURL(endpoint.getWsdlURL());\n                    }\n                } catch (ClassNotFoundException e) {\n                    throw new CamelException(e);\n                }\n                if (cfb == null) {\n                    cfb = new ClientFactoryBean();\n                }\n                if (null != endpoint.getWsdlURL()) {\n                    cfb.setWsdlURL(endpoint.getWsdlURL());\n                } else {\n                    throw new CamelException(\"Not enough information to create a CXF endpoint. (Provide WSDL url or service class name.)\");\n                }\n            }\n            if (endpoint.getServiceName() != null) {\n                cfb.setServiceName(CxfEndpointUtils.getServiceName(endpoint));\n            }\n            if (endpoint.getPortName() != null) {\n                cfb.setEndpointName(CxfEndpointUtils.getPortName(endpoint));\n\n            }\n            if (endpoint.getWsdlURL() != null) {\n                cfb.setWsdlURL(endpoint.getWsdlURL());\n            }\n        }\n        cfb.setBus(bus);\n        return cfb.create();\n    }\n\n    public void process(Exchange exchange) {\n        CxfExchange cxfExchange = endpoint.createExchange(exchange);\n        process(cxfExchange);\n        exchange.copyFrom(cxfExchange);\n\n    }\n\n    public void process(CxfExchange exchange) {\n        Message inMessage = CxfBinding.createCxfMessage(exchange);\n        exchange.setProperty(CxfExchange.DATA_FORMAT, dataFormat);\n        try {\n            if (dataFormat.equals(DataFormat.POJO)) {\n                List parameters = inMessage.getContent(List.class);\n                if (parameters == null) {\n                    parameters = new ArrayList();\n                }\n                String operationName = (String)inMessage.get(CxfConstants.OPERATION_NAME);\n                String operationNameSpace = (String)inMessage.get(CxfConstants.OPERATION_NAMESPACE);\n                Map<String, Object> context = new HashMap<String, Object>();\n                Map<String, Object> responseContext = CxfBinding.propogateContext(inMessage, context);\n                Message response = new MessageImpl();\n                if (operationName != null) {\n                    try {\n                        Object[] result = null;\n                        result = invokeClient(operationNameSpace, operationName, parameters, context);\n                        response.setContent(Object[].class, result);\n                        CxfBinding.storeCXfResponseContext(response, responseContext);\n                        CxfBinding.storeCxfResponse(exchange, response);\n                    } catch (Exception ex) {\n                        response.setContent(Exception.class, ex);\n                        CxfBinding.storeCxfFault(exchange, response);\n                    }\n                } else {\n                    throw new RuntimeCamelException(\"Can't find the operation name in the message!\");\n                }\n            } else {\n                org.apache.cxf.message.Exchange ex = exchange.getExchange();\n                if (ex == null) {\n                    ex = (org.apache.cxf.message.Exchange)exchange.getProperty(CxfConstants.CXF_EXCHANGE);\n                    exchange.setExchange(ex);\n                }\n                if (ex == null) {\n                    ex = new ExchangeImpl();\n                    exchange.setExchange(ex);\n                }\n                assert ex != null;\n                InvokingContext invokingContext = ex.get(InvokingContext.class);\n                if (invokingContext == null) {\n                    invokingContext = InvokingContextFactory.createContext(dataFormat);\n                    ex.put(InvokingContext.class, invokingContext);\n                }\n                Map<Class, Object> params = invokingContext.getRequestContent(inMessage);\n                CxfClient cxfClient = (CxfClient)client;\n                BindingOperationInfo boi = ex.get(BindingOperationInfo.class);\n                Message response = null;\n                if (boi == null) {\n                    response = new MessageImpl();\n                } else {\n                    Endpoint ep = ex.get(Endpoint.class);\n                    response = ep.getBinding().createMessage();\n                }\n                response.setExchange(ex);\n                Map<String, Object> context = new HashMap<String, Object>();\n                Map<String, Object> responseContext = CxfBinding.propogateContext(inMessage, context);\n                try {\n                    Object result = cxfClient.dispatch(params, context, ex);\n                    ex.setOutMessage(response);\n                    invokingContext.setResponseContent(response, result);\n                    CxfBinding.storeCXfResponseContext(response, responseContext);\n                    CxfBinding.storeCxfResponse(exchange, response);\n                } catch (Exception e) {\n                    response.setContent(Exception.class, e);\n                    CxfBinding.storeCxfFault(exchange, response);\n                }\n            }\n        } catch (Exception e) {\n            throw new RuntimeCamelException(e);\n        }\n\n    }\n\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        super.doStop();\n    }\n\n    private Object[] invokeClient(String operationNameSpace, String operationName, List parameters, Map<String, Object> context) throws Exception {\n\n        QName operationQName = null;\n        if (operationNameSpace == null) {\n            operationQName = new QName(client.getEndpoint().getService().getName().getNamespaceURI(), operationName);\n        } else {\n            operationQName = new QName(operationNameSpace, operationName);\n        }\n        BindingOperationInfo op = client.getEndpoint().getEndpointInfo().getBinding().getOperation(operationQName);\n        if (op == null) {\n            throw new RuntimeCamelException(\"No operation found in the CXF client, the operation is \" + operationQName);\n        }\n        if (!endpoint.isWrapped()) {\n            if (op.isUnwrappedCapable()) {\n                op = op.getUnwrappedOperation();\n            }\n        }\n        Object[] result = client.invoke(op, parameters.toArray(), context);\n\n        return result;", "functions": [{"function_name": "createClientForStreamMessage", "code": "    private Client createClientForStreamMessage() throws CamelException {\n        CxfClientFactoryBean cfb = new CxfClientFactoryBean();\n        Class serviceClass = null;\n        if (endpoint.isSpringContextEndpoint()) {\n            CxfEndpointBean cxfEndpointBean = endpoint.getCxfEndpointBean();\n            serviceClass = cxfEndpointBean.getServiceClass();\n        } else {\n            if (endpoint.getServiceClass() == null) {\n                throw new CamelException(\"serviceClass setting missing from CXF endpoint configuration\");\n            }\n            try {\n                serviceClass = ClassLoaderUtils.loadClass(endpoint.getServiceClass(), this.getClass());\n            } catch (ClassNotFoundException e) {\n                throw new CamelException(e);\n            }\n        }\n\n        boolean jsr181Enabled = CxfEndpointUtils.hasWebServiceAnnotation(serviceClass);\n        cfb.setJSR181Enabled(jsr181Enabled);\n\n        dataFormat = CxfEndpointUtils.getDataFormat(endpoint);\n        List<AbstractFeature> features = new ArrayList<AbstractFeature>();\n        if (dataFormat.equals(DataFormat.MESSAGE)) {\n            features.add(new MessageDataFormatFeature());\n        } else if (dataFormat.equals(DataFormat.PAYLOAD)) {\n            features.add(new PayLoadDataFormatFeature());\n        }\n        cfb.setFeatures(features);\n\n        return createClientFromClientFactoryBean(cfb);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "TRY", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "BINARY_OP", "ASSIGN", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [2, 10], [2, 11], [0, 12], [0, 13], [5, 14], [10, 15], [3, 16], [12, 17], [4, 18], [5, 19], [5, 20], [5, 21], [6, 22], [7, 23], [2, 24], [19, 25], [20, 26], [5, 27], [10, 28], [24, 29], [25, 30], [19, 31], [20, 32], [26, 33], [26, 34], [27, 35], [21, 36], [28, 37], [30, 38], [31, 39], [32, 40], [39, 41], [40, 42], [39, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 2], [11, 2], [12, 0], [13, 0], [14, 5], [15, 10], [16, 3], [17, 12], [18, 4], [19, 5], [20, 5], [21, 5], [22, 6], [23, 7], [24, 2], [25, 19], [26, 20], [27, 5], [28, 10], [29, 24], [30, 25], [31, 19], [32, 20], [33, 26], [34, 26], [35, 27], [36, 21], [37, 28], [38, 30], [39, 31], [40, 32], [41, 39], [42, 40], [43, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "createClientFromClientFactoryBean", "code": "    private Client createClientFromClientFactoryBean(ClientFactoryBean cfb) throws CamelException {\n        Bus bus = null;\n        if (endpoint.getApplicationContext() != null) {\n            SpringBusFactory bf = new SpringBusFactory(endpoint.getApplicationContext());\n            bus = bf.createBus();\n            if (CxfEndpointUtils.getSetDefaultBus(endpoint)) {\n                BusFactory.setDefaultBus(bus);\n            }\n        } else {\n            bus = BusFactory.getDefaultBus();\n        }\n        if (endpoint.isSpringContextEndpoint()) {\n            CxfEndpointBean cxfEndpointBean = endpoint.getCxfEndpointBean();\n            if (cfb == null) {\n                cfb = CxfEndpointUtils.getClientFactoryBean(cxfEndpointBean.getServiceClass());\n            }\n            endpoint.configure(cfb);\n\n            if (null != endpoint.getServiceClass()) {\n                try {\n                    Class serviceClass = ClassLoaderUtils.loadClass(endpoint.getServiceClass(), this\n                        .getClass());\n                    if (cfb == null) {\n                        cfb = CxfEndpointUtils.getClientFactoryBean(serviceClass);\n                    }\n                    cfb.setAddress(endpoint.getAddress());\n                    if (null != endpoint.getServiceClass()) {\n                        cfb.setServiceClass(ObjectHelper.loadClass(endpoint.getServiceClass()));\n                    }\n                    if (null != endpoint.getWsdlURL()) {\n                        cfb.setWsdlURL(endpoint.getWsdlURL());\n                    }\n                } catch (ClassNotFoundException e) {\n                    throw new CamelException(e);\n                }\n                if (cfb == null) {\n                    cfb = new ClientFactoryBean();\n                }\n                if (null != endpoint.getWsdlURL()) {\n                    cfb.setWsdlURL(endpoint.getWsdlURL());\n                } else {\n                    throw new CamelException(\"Not enough information to create a CXF endpoint. (Provide WSDL url or service class name.)\");\n                }\n            }\n            if (endpoint.getServiceName() != null) {\n                cfb.setServiceName(CxfEndpointUtils.getServiceName(endpoint));\n            }\n            if (endpoint.getPortName() != null) {\n                cfb.setEndpointName(CxfEndpointUtils.getPortName(endpoint));\n\n            }\n            if (endpoint.getWsdlURL() != null) {\n                cfb.setWsdlURL(endpoint.getWsdlURL());\n            }\n        }\n        cfb.setBus(bus);\n        return cfb.create();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "TRY", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "IF", "IF", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [3, 16], [3, 17], [9, 18], [9, 19], [4, 20], [10, 21], [11, 22], [12, 23], [13, 24], [2, 25], [14, 26], [3, 27], [16, 28], [3, 29], [21, 30], [21, 31], [22, 32], [22, 33], [23, 34], [23, 35], [13, 36], [13, 37], [13, 38], [24, 39], [24, 40], [26, 41], [15, 42], [27, 43], [29, 44], [17, 45], [10, 46], [11, 47], [12, 48], [36, 49], [37, 50], [38, 51], [38, 52], [38, 53], [38, 54], [38, 55], [14, 56], [16, 57], [45, 58], [46, 59], [47, 60], [48, 61], [36, 62], [49, 63], [49, 64], [50, 65], [51, 66], [52, 67], [53, 68], [38, 69], [54, 70], [56, 71], [62, 72], [36, 73], [37, 74], [66, 75], [67, 76], [67, 77], [68, 78], [68, 79], [69, 80], [70, 81], [55, 82], [71, 83], [72, 84], [73, 85], [74, 86], [52, 87], [53, 88], [54, 89], [82, 90], [87, 91], [88, 92], [89, 93], [82, 94], [92, 95], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 3], [17, 3], [18, 9], [19, 9], [20, 4], [21, 10], [22, 11], [23, 12], [24, 13], [25, 2], [26, 14], [27, 3], [28, 16], [29, 3], [30, 21], [31, 21], [32, 22], [33, 22], [34, 23], [35, 23], [36, 13], [37, 13], [38, 13], [39, 24], [40, 24], [41, 26], [42, 15], [43, 27], [44, 29], [45, 17], [46, 10], [47, 11], [48, 12], [49, 36], [50, 37], [51, 38], [52, 38], [53, 38], [54, 38], [55, 38], [56, 14], [57, 16], [58, 45], [59, 46], [60, 47], [61, 48], [62, 36], [63, 49], [64, 49], [65, 50], [66, 51], [67, 52], [68, 53], [69, 38], [70, 54], [71, 56], [72, 62], [73, 36], [74, 37], [75, 66], [76, 67], [77, 67], [78, 68], [79, 68], [80, 69], [81, 70], [82, 55], [83, 71], [84, 72], [85, 73], [86, 74], [87, 52], [88, 53], [89, 54], [90, 82], [91, 87], [92, 88], [93, 89], [94, 82], [95, 92], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) {\n        CxfExchange cxfExchange = endpoint.createExchange(exchange);\n        process(cxfExchange);\n        exchange.copyFrom(cxfExchange);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "process", "code": "    public void process(CxfExchange exchange) {\n        Message inMessage = CxfBinding.createCxfMessage(exchange);\n        exchange.setProperty(CxfExchange.DATA_FORMAT, dataFormat);\n        try {\n            if (dataFormat.equals(DataFormat.POJO)) {\n                List parameters = inMessage.getContent(List.class);\n                if (parameters == null) {\n                    parameters = new ArrayList();\n                }\n                String operationName = (String)inMessage.get(CxfConstants.OPERATION_NAME);\n                String operationNameSpace = (String)inMessage.get(CxfConstants.OPERATION_NAMESPACE);\n                Map<String, Object> context = new HashMap<String, Object>();\n                Map<String, Object> responseContext = CxfBinding.propogateContext(inMessage, context);\n                Message response = new MessageImpl();\n                if (operationName != null) {\n                    try {\n                        Object[] result = null;\n                        result = invokeClient(operationNameSpace, operationName, parameters, context);\n                        response.setContent(Object[].class, result);\n                        CxfBinding.storeCXfResponseContext(response, responseContext);\n                        CxfBinding.storeCxfResponse(exchange, response);\n                    } catch (Exception ex) {\n                        response.setContent(Exception.class, ex);\n                        CxfBinding.storeCxfFault(exchange, response);\n                    }\n                } else {\n                    throw new RuntimeCamelException(\"Can't find the operation name in the message!\");\n                }\n            } else {\n                org.apache.cxf.message.Exchange ex = exchange.getExchange();\n                if (ex == null) {\n                    ex = (org.apache.cxf.message.Exchange)exchange.getProperty(CxfConstants.CXF_EXCHANGE);\n                    exchange.setExchange(ex);\n                }\n                if (ex == null) {\n                    ex = new ExchangeImpl();\n                    exchange.setExchange(ex);\n                }\n                assert ex != null;\n                InvokingContext invokingContext = ex.get(InvokingContext.class);\n                if (invokingContext == null) {\n                    invokingContext = InvokingContextFactory.createContext(dataFormat);\n                    ex.put(InvokingContext.class, invokingContext);\n                }\n                Map<Class, Object> params = invokingContext.getRequestContent(inMessage);\n                CxfClient cxfClient = (CxfClient)client;\n                BindingOperationInfo boi = ex.get(BindingOperationInfo.class);\n                Message response = null;\n                if (boi == null) {\n                    response = new MessageImpl();\n                } else {\n                    Endpoint ep = ex.get(Endpoint.class);\n                    response = ep.getBinding().createMessage();\n                }\n                response.setExchange(ex);\n                Map<String, Object> context = new HashMap<String, Object>();\n                Map<String, Object> responseContext = CxfBinding.propogateContext(inMessage, context);\n                try {\n                    Object result = cxfClient.dispatch(params, context, ex);\n                    ex.setOutMessage(response);\n                    invokingContext.setResponseContent(response, result);\n                    CxfBinding.storeCXfResponseContext(response, responseContext);\n                    CxfBinding.storeCxfResponse(exchange, response);\n                } catch (Exception e) {\n                    response.setContent(Exception.class, e);\n                    CxfBinding.storeCxfFault(exchange, response);\n                }\n            }\n        } catch (Exception e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "IF", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "ASSERT", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CATCH", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CATCH", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [5, 8], [2, 9], [7, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [5, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [11, 33], [11, 34], [5, 35], [14, 36], [19, 37], [21, 38], [22, 39], [23, 40], [25, 41], [31, 42], [11, 43], [11, 44], [11, 45], [11, 46], [12, 47], [13, 48], [14, 49], [36, 50], [15, 51], [16, 52], [18, 53], [37, 54], [20, 55], [38, 56], [39, 57], [40, 58], [24, 59], [25, 60], [25, 61], [41, 62], [26, 63], [27, 64], [28, 65], [42, 66], [32, 67], [33, 68], [33, 69], [34, 70], [14, 71], [14, 72], [19, 73], [19, 74], [22, 75], [22, 76], [23, 77], [23, 78], [60, 79], [61, 80], [61, 81], [29, 82], [30, 83], [31, 84], [71, 85], [49, 86], [72, 87], [74, 88], [76, 89], [79, 90], [61, 91], [61, 92], [61, 93], [61, 94], [84, 95], [85, 96], [78, 97], [80, 98], [80, 99], [94, 100], [81, 101], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 5], [9, 2], [10, 7], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 5], [22, 5], [23, 5], [24, 5], [25, 5], [26, 5], [27, 5], [28, 5], [29, 5], [30, 5], [31, 5], [32, 5], [33, 11], [34, 11], [35, 5], [36, 14], [37, 19], [38, 21], [39, 22], [40, 23], [41, 25], [42, 31], [43, 11], [44, 11], [45, 11], [46, 11], [47, 12], [48, 13], [49, 14], [50, 36], [51, 15], [52, 16], [53, 18], [54, 37], [55, 20], [56, 38], [57, 39], [58, 40], [59, 24], [60, 25], [61, 25], [62, 41], [63, 26], [64, 27], [65, 28], [66, 42], [67, 32], [68, 33], [69, 33], [70, 34], [71, 14], [72, 14], [73, 19], [74, 19], [75, 22], [76, 22], [77, 23], [78, 23], [79, 60], [80, 61], [81, 61], [82, 29], [83, 30], [84, 31], [85, 71], [86, 49], [87, 72], [88, 74], [89, 76], [90, 79], [91, 61], [92, 61], [93, 61], [94, 61], [95, 84], [96, 85], [97, 78], [98, 80], [99, 80], [100, 94], [101, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        super.doStop();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "invokeClient", "code": "    private Object[] invokeClient(String operationNameSpace, String operationName, List parameters, Map<String, Object> context) throws Exception {\n\n        QName operationQName = null;\n        if (operationNameSpace == null) {\n            operationQName = new QName(client.getEndpoint().getService().getName().getNamespaceURI(), operationName);\n        } else {\n            operationQName = new QName(operationNameSpace, operationName);\n        }\n        BindingOperationInfo op = client.getEndpoint().getEndpointInfo().getBinding().getOperation(operationQName);\n        if (op == null) {\n            throw new RuntimeCamelException(\"No operation found in the CXF client, the operation is \" + operationQName);\n        }\n        if (!endpoint.isWrapped()) {\n            if (op.isUnwrappedCapable()) {\n                op = op.getUnwrappedOperation();\n            }\n        }\n        Object[] result = client.invoke(op, parameters.toArray(), context);\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [3, 12], [4, 13], [6, 14], [2, 15], [3, 16], [4, 17], [13, 18], [5, 19], [14, 20], [7, 21], [15, 22], [16, 23], [17, 24], [19, 25], [19, 26], [19, 27], [6, 28], [6, 29], [24, 30], [28, 31], [29, 32], [16, 33], [30, 34], [32, 35], [33, 36], [35, 37], [35, 38], [35, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 3], [13, 4], [14, 6], [15, 2], [16, 3], [17, 4], [18, 13], [19, 5], [20, 14], [21, 7], [22, 15], [23, 16], [24, 17], [25, 19], [26, 19], [27, 19], [28, 6], [29, 6], [30, 24], [31, 28], [32, 29], [33, 16], [34, 30], [35, 32], [36, 33], [37, 35], [38, 35], [39, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "CxfProducer", "code": "    public CxfProducer(CxfEndpoint endpoint) throws CamelException {\n        super(endpoint);\n        this.endpoint = endpoint;\n        dataFormat = CxfEndpointUtils.getDataFormat(endpoint);\n        if (dataFormat.equals(DataFormat.POJO)) {\n            client = createClientFromClientFactoryBean(null);\n        } else {\n            client = createClientForStreamMessage();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [4, 6], [1, 7], [1, 8], [7, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 4], [7, 1], [8, 1], [9, 7], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "camel-1.0-1441", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/builder/xml/NamespaceBuilder.java", "language": "java", "name": "org.apache.camel.builder.xml.NamespaceBuilder", "code": "public class NamespaceBuilder {\n    private Map<String,String> namespaces = new HashMap<String, String>();\n\n    public static NamespaceBuilder namespaceContext() {\n        return new NamespaceBuilder();\n    }\n\n    public static NamespaceBuilder namespaceContext(String prefix, String uri) {\n        return new NamespaceBuilder().namespace(prefix, uri);\n    }\n\n    public NamespaceBuilder namespace(String prefix, String uri) {\n        namespaces.put(prefix, uri);\n        return this;\n    }\n\n    /**\n     * Creates a new XPath expression using the current namespaces\n     *\n     * @param xpath the XPath expression\n     * @return a new XPath expression\n     */\n    public XPathBuilder xpath(String xpath) {\n        XPathBuilder answer = XPathBuilder.xpath(xpath);\n        Set<Map.Entry<String,String>> entries = namespaces.entrySet();\n        for (Map.Entry<String, String> entry : entries) {\n          answer.namespace(entry.getKey(), entry.getValue());\n        }\n        return answer;", "functions": [{"function_name": "namespaceContext", "code": "    public static NamespaceBuilder namespaceContext() {\n        return new NamespaceBuilder();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "namespaceContext", "code": "    public static NamespaceBuilder namespaceContext(String prefix, String uri) {\n        return new NamespaceBuilder().namespace(prefix, uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "namespace", "code": "    public NamespaceBuilder namespace(String prefix, String uri) {\n        namespaces.put(prefix, uri);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "xpath", "code": "    public XPathBuilder xpath(String xpath) {\n        XPathBuilder answer = XPathBuilder.xpath(xpath);\n        Set<Map.Entry<String,String>> entries = namespaces.entrySet();\n        for (Map.Entry<String, String> entry : entries) {\n          answer.namespace(entry.getKey(), entry.getValue());\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [2, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 2], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "jedit-4.2-4504", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "bsh/BSHUnaryExpression.java", "language": "java", "name": "bsh.BSHUnaryExpression", "code": "class BSHUnaryExpression extends SimpleNode implements ParserConstants\n{\n    public int kind;\n\tpublic boolean postfix = false;\n\n    BSHUnaryExpression(int id) { super(id); }\n\n    public Object eval( CallStack callstack, Interpreter interpreter)  \n\t\tthrows EvalError\n    {\n        SimpleNode node = (SimpleNode)jjtGetChild(0);\n\n\t\t// If this is a unary increment of decrement (either pre or postfix)\n\t\t// then we need an LHS to which to assign the result.  Otherwise\n\t\t// just do the unary operation for the value.\n\t\ttry {\n\t\t\tif ( kind == INCR || kind == DECR ) {\n\t\t\t\tLHS lhs = ((BSHPrimaryExpression)node).toLHS( \n\t\t\t\t\tcallstack, interpreter );\n\t\t\t\treturn lhsUnaryOperation( lhs, interpreter.getStrictJava() );\n\t\t\t} else\n\t\t\t\treturn \n\t\t\t\t\tunaryOperation( node.eval(callstack, interpreter), kind );\n\t\t} catch ( UtilEvalError e ) {\n\t\t\tthrow e.toEvalError( this, callstack );\n\t\t}\n    }\n\n    private Object lhsUnaryOperation( LHS lhs, boolean strictJava ) \n\t\tthrows UtilEvalError\n    {\n        if ( Interpreter.DEBUG ) Interpreter.debug(\"lhsUnaryOperation\");\n        Object prevalue, postvalue;\n        prevalue = lhs.getValue();\n        postvalue = unaryOperation(prevalue, kind);\n\n\t\tObject retVal;\n\t\tif ( postfix )\n\t\t\tretVal = prevalue;\n\t\telse\n\t\t\tretVal = postvalue;\n\n\t\tlhs.assign( postvalue, strictJava );\n\t\treturn retVal;\n    }\n\n    private Object unaryOperation( Object op, int kind ) throws UtilEvalError\n    {\n        if (op instanceof Boolean || op instanceof Character \n\t\t\t|| op instanceof Number)\n            return primitiveWrapperUnaryOperation( op, kind );\n\n        if ( !(op instanceof Primitive) )\n            throw new UtilEvalError( \"Unary operation \" + tokenImage[kind]\n                + \" inappropriate for object\" );\n\n\t\t\n        return Primitive.unaryOperation((Primitive)op, kind);\n    }\n\n    private Object primitiveWrapperUnaryOperation(Object val, int kind)\n        throws UtilEvalError\n    {\n        Class operandType = val.getClass();\n        Object operand = Primitive.promoteToInteger(val);\n\n        if ( operand instanceof Boolean )\n\t\t\treturn new Boolean(\n\t\t\t\tPrimitive.booleanUnaryOperation((Boolean)operand, kind));\n        else \n\t\tif ( operand instanceof Integer )\n        {\n            int result = Primitive.intUnaryOperation((Integer)operand, kind);\n\n            // ++ and -- must be cast back the original type\n            if(kind == INCR || kind == DECR)\n            {\n                if(operandType == Byte.TYPE)\n                    return new Byte((byte)result);\n                if(operandType == Short.TYPE)\n                    return new Short((short)result);\n                if(operandType == Character.TYPE)\n                    return new Character((char)result);\n            }\n\n            return new Integer(result);\n        }\n        else if(operand instanceof Long)\n            return new Long(Primitive.longUnaryOperation((Long)operand, kind));\n        else if(operand instanceof Float)\n            return new Float(Primitive.floatUnaryOperation((Float)operand, kind));\n        else if(operand instanceof Double)\n            return new Double(Primitive.doubleUnaryOperation((Double)operand, kind));\n        else\n            throw new InterpreterError(\"An error occurred.  Please call technical support.\");", "functions": [{"function_name": "eval", "code": "    public Object eval( CallStack callstack, Interpreter interpreter)  \n\t\tthrows EvalError\n    {\n        SimpleNode node = (SimpleNode)jjtGetChild(0);\n\n\t\t// If this is a unary increment of decrement (either pre or postfix)\n\t\t// then we need an LHS to which to assign the result.  Otherwise\n\t\t// just do the unary operation for the value.\n\t\ttry {\n\t\t\tif ( kind == INCR || kind == DECR ) {\n\t\t\t\tLHS lhs = ((BSHPrimaryExpression)node).toLHS( \n\t\t\t\t\tcallstack, interpreter );\n\t\t\t\treturn lhsUnaryOperation( lhs, interpreter.getStrictJava() );\n\t\t\t} else\n\t\t\t\treturn \n\t\t\t\t\tunaryOperation( node.eval(callstack, interpreter), kind );\n\t\t} catch ( UtilEvalError e ) {\n\t\t\tthrow e.toEvalError( this, callstack );", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "CATCH", "IF", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "CALL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [7, 10], [8, 11], [6, 12], [6, 13], [9, 14], [9, 15], [2, 16], [11, 17], [12, 18], [16, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 7], [11, 8], [12, 6], [13, 6], [14, 9], [15, 9], [16, 2], [17, 11], [18, 12], [19, 16], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "lhsUnaryOperation", "code": "    private Object lhsUnaryOperation( LHS lhs, boolean strictJava ) \n\t\tthrows UtilEvalError\n    {\n        if ( Interpreter.DEBUG ) Interpreter.debug(\"lhsUnaryOperation\");\n        Object prevalue, postvalue;\n        prevalue = lhs.getValue();\n        postvalue = unaryOperation(prevalue, kind);\n\n\t\tObject retVal;\n\t\tif ( postfix )\n\t\t\tretVal = prevalue;\n\t\telse\n\t\t\tretVal = postvalue;\n\n\t\tlhs.assign( postvalue, strictJava );\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [9, 13], [10, 14], [5, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 9], [14, 10], [15, 5], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "unaryOperation", "code": "    private Object unaryOperation( Object op, int kind ) throws UtilEvalError\n    {\n        if (op instanceof Boolean || op instanceof Character \n\t\t\t|| op instanceof Number)\n            return primitiveWrapperUnaryOperation( op, kind );\n\n        if ( !(op instanceof Primitive) )\n            throw new UtilEvalError( \"Unary operation \" + tokenImage[kind]\n                + \" inappropriate for object\" );\n\n\t\t\n        return Primitive.unaryOperation((Primitive)op, kind);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [7, 11], [9, 12], [10, 13], [10, 14], [11, 15], [14, 16], [14, 17], [15, 18], [15, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 7], [12, 9], [13, 10], [14, 10], [15, 11], [16, 14], [17, 14], [18, 15], [19, 15], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "primitiveWrapperUnaryOperation", "code": "    private Object primitiveWrapperUnaryOperation(Object val, int kind)\n        throws UtilEvalError\n    {\n        Class operandType = val.getClass();\n        Object operand = Primitive.promoteToInteger(val);\n\n        if ( operand instanceof Boolean )\n\t\t\treturn new Boolean(\n\t\t\t\tPrimitive.booleanUnaryOperation((Boolean)operand, kind));\n        else \n\t\tif ( operand instanceof Integer )\n        {\n            int result = Primitive.intUnaryOperation((Integer)operand, kind);\n\n            // ++ and -- must be cast back the original type\n            if(kind == INCR || kind == DECR)\n            {\n                if(operandType == Byte.TYPE)\n                    return new Byte((byte)result);\n                if(operandType == Short.TYPE)\n                    return new Short((short)result);\n                if(operandType == Character.TYPE)\n                    return new Character((char)result);\n            }\n\n            return new Integer(result);\n        }\n        else if(operand instanceof Long)\n            return new Long(Primitive.longUnaryOperation((Long)operand, kind));\n        else if(operand instanceof Float)\n            return new Float(Primitive.floatUnaryOperation((Float)operand, kind));\n        else if(operand instanceof Double)\n            return new Double(Primitive.doubleUnaryOperation((Double)operand, kind));\n        else\n            throw new InterpreterError(\"An error occurred.  Please call technical support.\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "CALL", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [6, 10], [7, 11], [2, 12], [3, 13], [9, 14], [9, 15], [9, 16], [6, 17], [6, 18], [6, 19], [11, 20], [14, 21], [14, 22], [14, 23], [15, 24], [17, 25], [18, 26], [21, 27], [21, 28], [21, 29], [22, 30], [24, 31], [18, 32], [18, 33], [18, 34], [26, 35], [26, 36], [19, 37], [27, 38], [28, 39], [30, 40], [32, 41], [32, 42], [33, 43], [33, 44], [34, 45], [34, 46], [38, 47], [39, 48], [41, 49], [43, 50], [45, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 6], [11, 7], [12, 2], [13, 3], [14, 9], [15, 9], [16, 9], [17, 6], [18, 6], [19, 6], [20, 11], [21, 14], [22, 14], [23, 14], [24, 15], [25, 17], [26, 18], [27, 21], [28, 21], [29, 21], [30, 22], [31, 24], [32, 18], [33, 18], [34, 18], [35, 26], [36, 26], [37, 19], [38, 27], [39, 28], [40, 30], [41, 32], [42, 32], [43, 33], [44, 33], [45, 34], [46, 34], [47, 38], [48, 39], [49, 41], [50, 43], [51, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "BSHUnaryExpression", "code": "    BSHUnaryExpression(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-3048", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/resequencer/DefaultExchangeComparator.java", "language": "java", "name": "org.apache.camel.processor.resequencer.DefaultExchangeComparator", "code": "public class DefaultExchangeComparator implements ExpressionResultComparator<Exchange> {\n\n    private Expression<Exchange> expression;\n\n    public Expression<Exchange> getExpression() {\n        return expression;\n    }\n\n    public void setExpression(Expression<Exchange> expression) {\n        this.expression = expression;\n    }\n\n    @SuppressWarnings(\"unchecked\")\n    public void setExpressions(List<Expression> expressions) {\n        if (expressions.isEmpty()) {\n            throw new IllegalArgumentException(\n                    \"Expression required to resolve sequence number\");\n        } else if (expressions.size() > 1) {\n            throw new IllegalArgumentException(\n                    \"More than one expression currently not supported\");\n        }\n        expression = expressions.get(0);\n    }\n\n    public boolean predecessor(Exchange o1, Exchange o2) {\n        long n1 = getSequenceNumber(o1);\n        long n2 = getSequenceNumber(o2);\n        return n1 == (n2 - 1L);\n    }\n\n    public boolean successor(Exchange o1, Exchange o2) {\n        long n1 = getSequenceNumber(o1);\n        long n2 = getSequenceNumber(o2);\n        return n2 == (n1 - 1L);\n    }\n\n    public int compare(Exchange o1, Exchange o2) {\n        Long n1 = getSequenceNumber(o1);\n        Long n2 = getSequenceNumber(o2);\n        return n1.compareTo(n2);\n    }\n\n    private long getSequenceNumber(Exchange exchange) {\n        return (Long)expression.evaluate(exchange);", "functions": [{"function_name": "getExpression", "code": "    public Expression<Exchange> getExpression() {\n        return expression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExpression", "code": "    public void setExpression(Expression<Exchange> expression) {\n        this.expression = expression;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setExpressions", "code": "    @SuppressWarnings(\"unchecked\")\n    public void setExpressions(List<Expression> expressions) {\n        if (expressions.isEmpty()) {\n            throw new IllegalArgumentException(\n                    \"Expression required to resolve sequence number\");\n        } else if (expressions.size() > 1) {\n            throw new IllegalArgumentException(\n                    \"More than one expression currently not supported\");\n        }\n        expression = expressions.get(0);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 9], [7, 10], [5, 11], [8, 12], [8, 13], [9, 14], [11, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 4], [8, 5], [9, 1], [10, 7], [11, 5], [12, 8], [13, 8], [14, 9], [15, 11], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "predecessor", "code": "    public boolean predecessor(Exchange o1, Exchange o2) {\n        long n1 = getSequenceNumber(o1);\n        long n2 = getSequenceNumber(o2);\n        return n1 == (n2 - 1L);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [3, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 3], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "successor", "code": "    public boolean successor(Exchange o1, Exchange o2) {\n        long n1 = getSequenceNumber(o1);\n        long n2 = getSequenceNumber(o2);\n        return n2 == (n1 - 1L);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [3, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 3], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "compare", "code": "    public int compare(Exchange o1, Exchange o2) {\n        Long n1 = getSequenceNumber(o1);\n        Long n2 = getSequenceNumber(o2);\n        return n1.compareTo(n2);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSequenceNumber", "code": "    private long getSequenceNumber(Exchange exchange) {\n        return (Long)expression.evaluate(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "velocity-1.6-6363", "repo": "velocity-1.6", "project": "velocity", "version": "1.6", "file_path": "org/apache/velocity/runtime/parser/JJTParserState.java", "language": "java", "name": "org.apache.velocity.runtime.parser.JJTParserState", "code": "public class JJTParserState {\n  private java.util.List nodes;\n  private java.util.List marks;\n\n  private boolean node_created;\n\n  public JJTParserState() {\n    nodes = new java.util.ArrayList();\n    marks = new java.util.ArrayList();\n    sp = 0;\n    mk = 0;\n  }\n\n  /* Determines whether the current node was actually closed and\n     pushed.  This should only be called in the final user action of a\n     node scope.  */\n  public boolean nodeCreated() {\n    return node_created;\n  }\n\n  /* Call this to reinitialize the node stack.  It is called\n     automatically by the parser's ReInit() method. */\n  public void reset() {\n    nodes.clear();\n    marks.clear();\n    sp = 0;\n    mk = 0;\n  }\n\n  /* Returns the root node of the AST.  It only makes sense to call\n     this after a successful parse. */\n  public Node rootNode() {\n    return (Node)nodes.get(0);\n  }\n\n  /* Pushes a node on to the stack. */\n  public void pushNode(Node n) {\n    nodes.add(n);\n    ++sp;\n  }\n\n  /* Returns the node on the top of the stack, and remove it from the\n     stack.  */\n  public Node popNode() {\n    if (--sp < mk) {\n      mk = ((Integer)marks.remove(marks.size()-1)).intValue();\n    }\n    return (Node)nodes.remove(nodes.size()-1);\n  }\n\n  /* Returns the node currently on the top of the stack. */\n  public Node peekNode() {\n    return (Node)nodes.get(nodes.size()-1);\n  }\n\n  /* Returns the number of children on the stack in the current node\n     scope. */\n  public int nodeArity() {\n    return sp - mk;\n  }\n\n\n  public void clearNodeScope(Node n) {\n    while (sp > mk) {\n      popNode();\n    }\n    mk = ((Integer)marks.remove(marks.size()-1)).intValue();\n  }\n\n\n  public void openNodeScope(Node n) {\n    marks.add(new Integer(mk));\n    mk = sp;\n    n.jjtOpen();\n  }\n\n\n  /* A definite node is constructed from a specified number of\n     children.  That number of nodes are popped from the stack and\n     made the children of the definite node.  Then the definite node\n     is pushed on to the stack. */\n  public void closeNodeScope(Node n, int num) {\n    mk = ((Integer)marks.remove(marks.size()-1)).intValue();\n    while (num-- > 0) {\n      Node c = popNode();\n      c.jjtSetParent(n);\n      n.jjtAddChild(c, num);\n    }\n    n.jjtClose();\n    pushNode(n);\n    node_created = true;\n  }\n\n\n  /* A conditional node is constructed if its condition is true.  All\n     the nodes that have been pushed since the node was opened are\n     made children of the conditional node, which is then pushed\n     on to the stack.  If the condition is false the node is not\n     constructed and they are left on the stack. */\n  public void closeNodeScope(Node n, boolean condition) {\n    if (condition) {\n      int a = nodeArity();\n      mk = ((Integer)marks.remove(marks.size()-1)).intValue();\n      while (a-- > 0) {\n        Node c = popNode();\n        c.jjtSetParent(n);\n        n.jjtAddChild(c, a);\n      }\n      n.jjtClose();\n      pushNode(n);\n      node_created = true;\n    } else {\n      mk = ((Integer)marks.remove(marks.size()-1)).intValue();\n      node_created = false;", "functions": [{"function_name": "nodeCreated", "code": "  public boolean nodeCreated() {\n    return node_created;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reset", "code": "  public void reset() {\n    nodes.clear();\n    marks.clear();\n    sp = 0;\n    mk = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "rootNode", "code": "  public Node rootNode() {\n    return (Node)nodes.get(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "pushNode", "code": "  public void pushNode(Node n) {\n    nodes.add(n);\n    ++sp;", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popNode", "code": "  public Node popNode() {\n    if (--sp < mk) {\n      mk = ((Integer)marks.remove(marks.size()-1)).intValue();\n    }\n    return (Node)nodes.remove(nodes.size()-1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [4, 5], [2, 6], [5, 7], [5, 8], [6, 9], [9, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 2], [4, 1], [5, 4], [6, 2], [7, 5], [8, 5], [9, 6], [10, 9], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "peekNode", "code": "  public Node peekNode() {\n    return (Node)nodes.get(nodes.size()-1);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "nodeArity", "code": "  public int nodeArity() {\n    return sp - mk;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clearNodeScope", "code": "  public void clearNodeScope(Node n) {\n    while (sp > mk) {\n      popNode();\n    }\n    mk = ((Integer)marks.remove(marks.size()-1)).intValue();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "openNodeScope", "code": "  public void openNodeScope(Node n) {\n    marks.add(new Integer(mk));\n    mk = sp;\n    n.jjtOpen();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "closeNodeScope", "code": "  public void closeNodeScope(Node n, int num) {\n    mk = ((Integer)marks.remove(marks.size()-1)).intValue();\n    while (num-- > 0) {\n      Node c = popNode();\n      c.jjtSetParent(n);\n      n.jjtAddChild(c, num);\n    }\n    n.jjtClose();\n    pushNode(n);\n    node_created = true;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [4, 9], [1, 10], [7, 11], [1, 12], [1, 13], [8, 14], [10, 15], [14, 16], [16, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 4], [10, 1], [11, 7], [12, 1], [13, 1], [14, 8], [15, 10], [16, 14], [17, 16], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "closeNodeScope", "code": "  public void closeNodeScope(Node n, boolean condition) {\n    if (condition) {\n      int a = nodeArity();\n      mk = ((Integer)marks.remove(marks.size()-1)).intValue();\n      while (a-- > 0) {\n        Node c = popNode();\n        c.jjtSetParent(n);\n        n.jjtAddChild(c, a);\n      }\n      n.jjtClose();\n      pushNode(n);\n      node_created = true;\n    } else {\n      mk = ((Integer)marks.remove(marks.size()-1)).intValue();\n      node_created = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [1, 12], [6, 13], [8, 14], [4, 15], [11, 16], [5, 17], [7, 18], [4, 19], [4, 20], [12, 21], [18, 22], [15, 23], [21, 24], [22, 25], [22, 26], [24, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 1], [13, 6], [14, 8], [15, 4], [16, 11], [17, 5], [18, 7], [19, 4], [20, 4], [21, 12], [22, 18], [23, 15], [24, 21], [25, 22], [26, 22], [27, 24], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "JJTParserState", "code": "  public JJTParserState() {\n    nodes = new java.util.ArrayList();\n    marks = new java.util.ArrayList();\n    sp = 0;\n    mk = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ant-1.7-1169", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/RedirectorElement.java", "language": "java", "name": "org.apache.tools.ant.types.RedirectorElement", "code": "public class RedirectorElement extends DataType {\n\n    /**\n     * Whether the input mapper was set via <code>setOutput</code>.\n     */\n    private boolean usingInput = false;\n\n    /**\n     * Whether the output mapper was set via <code>setOutput</code>.\n     */\n    private boolean usingOutput = false;\n\n    /**\n     * Whether the error mapper was set via <code>setError</code>.\n     */\n    private boolean usingError = false;\n\n    /**\n     * Indicates if standard error should be logged to Ant's log system\n     * rather than the output. This has no effect if standard error is\n     * redirected to a file or property.\n     */\n    private Boolean logError;\n\n    /** The name of the property into which output is to be stored */\n    private String outputProperty;\n\n    /** The name of the property into which error output is to be stored */\n    private String errorProperty;\n\n    /** String from which input is taken */\n    private String inputString;\n\n    /** Flag which indicates if error and output files are to be appended. */\n    private Boolean append;\n\n    /** Flag which indicates that output should be always sent to the log */\n    private Boolean alwaysLog;\n\n    /** Flag which indicates whether files should be created even if empty. */\n    private Boolean createEmptyFiles;\n\n    /** Input file mapper. */\n    private Mapper inputMapper;\n\n    /** Output file mapper. */\n    private Mapper outputMapper;\n\n    /** Error file mapper. */\n    private Mapper errorMapper;\n\n    /** input filter chains. */\n    private Vector inputFilterChains = new Vector();\n\n    /** output filter chains. */\n    private Vector outputFilterChains = new Vector();\n\n    /** error filter chains. */\n    private Vector errorFilterChains = new Vector();\n\n    /** The output encoding */\n    private String outputEncoding;\n\n    /** The error encoding */\n    private String errorEncoding;\n\n    /** The input encoding */\n    private String inputEncoding;\n\n    /** whether to log the inputstring */\n    private Boolean logInputString;\n\n    /**\n     * Add the input file mapper.\n     * @param inputMapper   <code>Mapper</code>.\n     */\n    public void addConfiguredInputMapper(Mapper inputMapper) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (this.inputMapper != null) {\n            if (usingInput) {\n                throw new BuildException(\"attribute \\\"input\\\"\"\n                    + \" cannot coexist with a nested <inputmapper>\");\n            } else {\n                throw new BuildException(\"Cannot have > 1 <inputmapper>\");\n            }\n        }\n        this.inputMapper = inputMapper;\n    }\n\n    /**\n     * Add the output file mapper.\n     * @param outputMapper   <code>Mapper</code>.\n     */\n    public void addConfiguredOutputMapper(Mapper outputMapper) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (this.outputMapper != null) {\n            if (usingOutput) {\n                throw new BuildException(\"attribute \\\"output\\\"\"\n                    + \" cannot coexist with a nested <outputmapper>\");\n            } else {\n                throw new BuildException(\"Cannot have > 1 <outputmapper>\");\n            }\n        }\n        this.outputMapper = outputMapper;\n    }\n\n    /**\n     * Add the error file mapper.\n     * @param errorMapper   <code>Mapper</code>.\n     */\n    public void addConfiguredErrorMapper(Mapper errorMapper) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (this.errorMapper != null) {\n            if (usingError) {\n                throw new BuildException(\"attribute \\\"error\\\"\"\n                    + \" cannot coexist with a nested <errormapper>\");\n            } else {\n                throw new BuildException(\"Cannot have > 1 <errormapper>\");\n            }\n        }\n        this.errorMapper = errorMapper;\n    }\n\n    /**\n     * Make this instance in effect a reference to another instance.\n     *\n     * <p>You must not set another attribute or nest elements inside\n     * this element if you make it a reference.</p>\n     * @param r the reference to use.\n     * @throws BuildException on error.\n     */\n    public void setRefid(Reference r) throws BuildException {\n        if (usingInput\n            || usingOutput\n            || usingError\n            || inputString != null\n            || logError != null\n            || append != null\n            || createEmptyFiles != null\n            || inputEncoding != null\n            || outputEncoding != null\n            || errorEncoding != null\n            || outputProperty != null\n            || errorProperty != null\n            || logInputString != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);\n    }\n\n    /**\n     * Set the input to use for the task.\n     * @param input the file from which input is read.\n     */\n    public void setInput(File input) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (inputString != null) {\n            throw new BuildException(\"The \\\"input\\\" and \\\"inputstring\\\" \"\n                + \"attributes cannot both be specified\");\n        }\n        usingInput = true;\n        inputMapper = createMergeMapper(input);\n    }\n\n    /**\n     * Set the string to use as input\n     * @param inputString the string which is used as the input source\n     */\n    public void setInputString(String inputString) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (usingInput) {\n            throw new BuildException(\"The \\\"input\\\" and \\\"inputstring\\\" \"\n                + \"attributes cannot both be specified\");\n        }\n        this.inputString = inputString;\n    }\n\n    /**\n     * Set whether to include the value of the input string in log messages.\n     * Defaults to true.\n     * @param logInputString true or false.\n     * @since Ant 1.7\n     */\n    public void setLogInputString(boolean logInputString) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.logInputString = logInputString ? Boolean.TRUE : Boolean.FALSE;\n    }\n\n    /**\n     * File the output of the process is redirected to. If error is not\n     * redirected, it too will appear in the output.\n     *\n     * @param out the file to which output stream is written.\n     */\n    public void setOutput(File out) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (out == null) {\n            throw new IllegalArgumentException(\"output file specified as null\");\n        }\n        usingOutput = true;\n        outputMapper = createMergeMapper(out);\n    }\n\n    /**\n     * Set the output encoding.\n     * @param outputEncoding   <code>String</code>.\n     */\n    public void setOutputEncoding(String outputEncoding) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.outputEncoding = outputEncoding;\n    }\n\n    /**\n     * Set the error encoding.\n     *\n     * @param errorEncoding   <code>String</code>.\n     */\n    public void setErrorEncoding(String errorEncoding) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.errorEncoding = errorEncoding;\n    }\n\n    /**\n     * Set the input encoding.\n     * @param inputEncoding   <code>String</code>.\n     */\n    public void setInputEncoding(String inputEncoding) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.inputEncoding = inputEncoding;\n    }\n\n    /**\n     * Controls whether error output of exec is logged. This is only useful\n     * when output is being redirected and error output is desired in the\n     * Ant log.\n     * @param logError if true the standard error is sent to the Ant log system\n     *        and not sent to output.\n     */\n    public void setLogError(boolean logError) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.logError = ((logError) ? Boolean.TRUE : Boolean.FALSE);\n    }\n\n    /**\n     * Set the file to which standard error is to be redirected.\n     * @param error the file to which error is to be written.\n     */\n    public void setError(File error) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (error == null) {\n            throw new IllegalArgumentException(\"error file specified as null\");\n        }\n        usingError = true;\n        errorMapper = createMergeMapper(error);\n    }\n\n    /**\n     * Property name whose value should be set to the output of\n     * the process.\n     * @param outputProperty the name of the property to be set with the\n     *        task's output.\n     */\n    public void setOutputProperty(String outputProperty) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.outputProperty = outputProperty;\n    }\n\n    /**\n     * Whether output should be appended to or overwrite an existing file.\n     * Defaults to false.\n     * @param append if true output and error streams are appended to their\n     *        respective files, if specified.\n     */\n    public void setAppend(boolean append) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.append = ((append) ? Boolean.TRUE : Boolean.FALSE);\n    }\n\n    /**\n     * If true, (error and non-error) output will be \"teed\", redirected\n     * as specified while being sent to Ant's logging mechanism as if no\n     * redirection had taken place.  Defaults to false.\n     * @param alwaysLog <code>boolean</code>\n     * @since Ant 1.6.3\n     */\n    public void setAlwaysLog(boolean alwaysLog) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.alwaysLog = ((alwaysLog) ? Boolean.TRUE : Boolean.FALSE);\n    }\n\n    /**\n     * Whether output and error files should be created even when empty.\n     * Defaults to true.\n     * @param createEmptyFiles <code>boolean</code>.\n     */\n    public void setCreateEmptyFiles(boolean createEmptyFiles) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.createEmptyFiles = ((createEmptyFiles)\n            ? Boolean.TRUE : Boolean.FALSE);\n    }\n\n    /**\n     * Property name whose value should be set to the error of\n     * the process.\n     * @param errorProperty the name of the property to be set\n     *        with the error output.\n     */\n    public void setErrorProperty(String errorProperty) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.errorProperty = errorProperty;\n    }\n\n    /**\n     * Create a nested input <code>FilterChain</code>.\n     * @return <code>FilterChain</code>.\n     */\n    public FilterChain createInputFilterChain() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        FilterChain result = new FilterChain();\n        result.setProject(getProject());\n        inputFilterChains.add(result);\n        return result;\n    }\n\n    /**\n     * Create a nested output <code>FilterChain</code>.\n     * @return <code>FilterChain</code>.\n     */\n    public FilterChain createOutputFilterChain() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        FilterChain result = new FilterChain();\n        result.setProject(getProject());\n        outputFilterChains.add(result);\n        return result;\n    }\n\n    /**\n     * Create a nested error <code>FilterChain</code>.\n     * @return <code>FilterChain</code>.\n     */\n    public FilterChain createErrorFilterChain() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        FilterChain result = new FilterChain();\n        result.setProject(getProject());\n        errorFilterChains.add(result);\n        return result;\n    }\n\n    /**\n     * Configure the specified <code>Redirector</code>.\n     * @param redirector   <code>Redirector</code>.\n     */\n    public void configure(Redirector redirector) {\n        configure(redirector, null);\n    }\n\n    /**\n     * Configure the specified <code>Redirector</code>\n     * for the specified sourcefile.\n     * @param redirector   <code>Redirector</code>.\n     * @param sourcefile   <code>String</code>.\n     */\n    public void configure(Redirector redirector, String sourcefile) {\n        if (isReference()) {\n            getRef().configure(redirector, sourcefile);\n            return;\n        }\n        if (alwaysLog != null) {\n            redirector.setAlwaysLog(alwaysLog.booleanValue());\n        }\n        if (logError != null) {\n            redirector.setLogError(logError.booleanValue());\n        }\n        if (append != null) {\n            redirector.setAppend(append.booleanValue());\n        }\n        if (createEmptyFiles != null) {\n            redirector.setCreateEmptyFiles(createEmptyFiles.booleanValue());\n        }\n        if (outputProperty != null) {\n            redirector.setOutputProperty(outputProperty);\n        }\n        if (errorProperty != null) {\n            redirector.setErrorProperty(errorProperty);\n        }\n        if (inputString != null) {\n            redirector.setInputString(inputString);\n        }\n        if (logInputString != null) {\n            redirector.setLogInputString(logInputString.booleanValue());\n        }\n        if (inputMapper != null) {\n            String[] inputTargets = null;\n            try {\n                inputTargets =\n                    inputMapper.getImplementation().mapFileName(sourcefile);\n            } catch (NullPointerException enPeaEx) {\n                if (sourcefile != null) {\n                    throw enPeaEx;\n                }\n            }\n            if (inputTargets != null && inputTargets.length > 0) {\n                redirector.setInput(toFileArray(inputTargets));\n            }\n        }\n        if (outputMapper != null) {\n            String[] outputTargets = null;\n            try {\n                outputTargets =\n                    outputMapper.getImplementation().mapFileName(sourcefile);\n            } catch (NullPointerException enPeaEx) {\n                if (sourcefile != null) {\n                    throw enPeaEx;\n                }\n            }\n            if (outputTargets != null && outputTargets.length > 0) {\n                redirector.setOutput(toFileArray(outputTargets));\n            }\n        }\n        if (errorMapper != null) {\n            String[] errorTargets = null;\n            try {\n                errorTargets =\n                    errorMapper.getImplementation().mapFileName(sourcefile);\n            } catch (NullPointerException enPeaEx) {\n                if (sourcefile != null) {\n                    throw enPeaEx;\n                }\n            }\n            if (errorTargets != null && errorTargets.length > 0) {\n                redirector.setError(toFileArray(errorTargets));\n            }\n        }\n        if (inputFilterChains.size() > 0) {\n            redirector.setInputFilterChains(inputFilterChains);\n        }\n        if (outputFilterChains.size() > 0) {\n            redirector.setOutputFilterChains(outputFilterChains);\n        }\n        if (errorFilterChains.size() > 0) {\n            redirector.setErrorFilterChains(errorFilterChains);\n        }\n        if (inputEncoding != null) {\n            redirector.setInputEncoding(inputEncoding);\n        }\n        if (outputEncoding != null) {\n            redirector.setOutputEncoding(outputEncoding);\n        }\n        if (errorEncoding != null) {\n            redirector.setErrorEncoding(errorEncoding);\n        }\n    }\n\n    /**\n     * Create a merge mapper pointing to the specified destination file.\n     * @param destfile   <code>File</code>\n     * @return <code>Mapper</code>.\n     */\n    protected Mapper createMergeMapper(File destfile) {\n        Mapper result = new Mapper(getProject());\n        result.setClassname(\n            org.apache.tools.ant.util.MergingMapper.class.getName());\n        result.setTo(destfile.getAbsolutePath());\n        return result;\n    }\n\n    /**\n     * Return a <code>File[]</code> from the specified set of filenames.\n     * @param name   <code>String[]</code>\n     * @return <code>File[]</code>.\n     */\n    protected File[] toFileArray(String[] name) {\n        if (name == null) {\n            return null;\n        }\n        ArrayList list = new ArrayList(name.length);\n        for (int i = 0; i < name.length; i++) {\n            if (name[i] != null) {\n                list.add(getProject().resolveFile(name[i]));\n            }\n        }\n        return (File[]) (list.toArray(new File[list.size()]));\n    }\n\n    /**\n     * Overrides the version of DataType to recurse on all DataType\n     * child elements that may have been added.\n     * @param stk the stack of data types to use (recursively).\n     * @param p   the project to use to dereference the references.\n     * @throws BuildException on error.\n     */\n    protected void dieOnCircularReference(Stack stk, Project p)\n        throws BuildException {\n        if (isChecked()) {\n            return;\n        }\n        if (isReference()) {\n            super.dieOnCircularReference(stk, p);\n        } else {\n            Mapper[] m = new Mapper[] {inputMapper, outputMapper, errorMapper};\n            for (int i = 0; i < m.length; i++) {\n                if (m[i] != null) {\n                    stk.push(m[i]);\n                    m[i].dieOnCircularReference(stk, p);\n                    stk.pop();\n                }\n            }\n            Vector[] v = new Vector[]\n                {inputFilterChains, outputFilterChains, errorFilterChains};\n            for (int i = 0; i < v.length; i++) {\n                if (v[i] != null) {\n                    for (Iterator fci = v[i].iterator(); fci.hasNext();) {\n                        FilterChain fc = (FilterChain) fci.next();\n                        stk.push(fc);\n                        fc.dieOnCircularReference(stk, p);\n                        stk.pop();\n                    }\n                }\n            }\n            setChecked(true);\n        }\n    }\n\n    /**\n     * Perform the check for circular references, returning the\n     * referenced RedirectorElement.\n     * @return the referenced RedirectorElement.\n     */\n    private RedirectorElement getRef() {\n        return (RedirectorElement) getCheckedRef();", "functions": [{"function_name": "addConfiguredInputMapper", "code": "    public void addConfiguredInputMapper(Mapper inputMapper) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (this.inputMapper != null) {\n            if (usingInput) {\n                throw new BuildException(\"attribute \\\"input\\\"\"\n                    + \" cannot coexist with a nested <inputmapper>\");\n            } else {\n                throw new BuildException(\"Cannot have > 1 <inputmapper>\");\n            }\n        }\n        this.inputMapper = inputMapper;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [2, 9], [9, 10], [7, 11], [7, 12], [11, 13], [12, 14], [13, 15], [14, 16], [16, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 2], [10, 9], [11, 7], [12, 7], [13, 11], [14, 12], [15, 13], [16, 14], [17, 16], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "addConfiguredOutputMapper", "code": "    public void addConfiguredOutputMapper(Mapper outputMapper) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (this.outputMapper != null) {\n            if (usingOutput) {\n                throw new BuildException(\"attribute \\\"output\\\"\"\n                    + \" cannot coexist with a nested <outputmapper>\");\n            } else {\n                throw new BuildException(\"Cannot have > 1 <outputmapper>\");\n            }\n        }\n        this.outputMapper = outputMapper;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [2, 9], [9, 10], [7, 11], [7, 12], [11, 13], [12, 14], [13, 15], [14, 16], [16, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 2], [10, 9], [11, 7], [12, 7], [13, 11], [14, 12], [15, 13], [16, 14], [17, 16], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "addConfiguredErrorMapper", "code": "    public void addConfiguredErrorMapper(Mapper errorMapper) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (this.errorMapper != null) {\n            if (usingError) {\n                throw new BuildException(\"attribute \\\"error\\\"\"\n                    + \" cannot coexist with a nested <errormapper>\");\n            } else {\n                throw new BuildException(\"Cannot have > 1 <errormapper>\");\n            }\n        }\n        this.errorMapper = errorMapper;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [2, 9], [9, 10], [7, 11], [7, 12], [11, 13], [12, 14], [13, 15], [14, 16], [16, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 2], [10, 9], [11, 7], [12, 7], [13, 11], [14, 12], [15, 13], [16, 14], [17, 16], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setRefid", "code": "    public void setRefid(Reference r) throws BuildException {\n        if (usingInput\n            || usingOutput\n            || usingError\n            || inputString != null\n            || logError != null\n            || append != null\n            || createEmptyFiles != null\n            || inputEncoding != null\n            || outputEncoding != null\n            || errorEncoding != null\n            || outputProperty != null\n            || errorProperty != null\n            || logInputString != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [5, 8], [6, 9], [6, 10], [9, 11], [10, 12], [10, 13], [12, 14], [13, 15], [13, 16], [15, 17], [16, 18], [16, 19], [18, 20], [19, 21], [19, 22], [21, 23], [22, 24], [22, 25], [24, 26], [25, 27], [25, 28], [27, 29], [28, 30], [28, 31], [30, 32], [31, 33], [31, 34], [33, 35], [34, 36], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 5], [9, 6], [10, 6], [11, 9], [12, 10], [13, 10], [14, 12], [15, 13], [16, 13], [17, 15], [18, 16], [19, 16], [20, 18], [21, 19], [22, 19], [23, 21], [24, 22], [25, 22], [26, 24], [27, 25], [28, 25], [29, 27], [30, 28], [31, 28], [32, 30], [33, 31], [34, 31], [35, 33], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "setInput", "code": "    public void setInput(File input) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (inputString != null) {\n            throw new BuildException(\"The \\\"input\\\" and \\\"inputstring\\\" \"\n                + \"attributes cannot both be specified\");\n        }\n        usingInput = true;\n        inputMapper = createMergeMapper(input);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [5, 9], [1, 10], [6, 11], [2, 12], [10, 13], [12, 14], [13, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 5], [10, 1], [11, 6], [12, 2], [13, 10], [14, 12], [15, 13], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setInputString", "code": "    public void setInputString(String inputString) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (usingInput) {\n            throw new BuildException(\"The \\\"input\\\" and \\\"inputstring\\\" \"\n                + \"attributes cannot both be specified\");\n        }\n        this.inputString = inputString;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [2, 7], [6, 8], [7, 9], [8, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 2], [8, 6], [9, 7], [10, 8], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setLogInputString", "code": "    public void setLogInputString(boolean logInputString) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.logInputString = logInputString ? Boolean.TRUE : Boolean.FALSE;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "COND_EXPR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setOutput", "code": "    public void setOutput(File out) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (out == null) {\n            throw new IllegalArgumentException(\"output file specified as null\");\n        }\n        usingOutput = true;\n        outputMapper = createMergeMapper(out);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [5, 9], [1, 10], [6, 11], [2, 12], [10, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 5], [10, 1], [11, 6], [12, 2], [13, 10], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setOutputEncoding", "code": "    public void setOutputEncoding(String outputEncoding) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.outputEncoding = outputEncoding;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setErrorEncoding", "code": "    public void setErrorEncoding(String errorEncoding) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.errorEncoding = errorEncoding;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setInputEncoding", "code": "    public void setInputEncoding(String inputEncoding) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.inputEncoding = inputEncoding;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setLogError", "code": "    public void setLogError(boolean logError) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.logError = ((logError) ? Boolean.TRUE : Boolean.FALSE);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "COND_EXPR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setError", "code": "    public void setError(File error) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (error == null) {\n            throw new IllegalArgumentException(\"error file specified as null\");\n        }\n        usingError = true;\n        errorMapper = createMergeMapper(error);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [5, 9], [1, 10], [6, 11], [2, 12], [10, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 5], [10, 1], [11, 6], [12, 2], [13, 10], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setOutputProperty", "code": "    public void setOutputProperty(String outputProperty) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.outputProperty = outputProperty;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setAppend", "code": "    public void setAppend(boolean append) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.append = ((append) ? Boolean.TRUE : Boolean.FALSE);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "COND_EXPR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setAlwaysLog", "code": "    public void setAlwaysLog(boolean alwaysLog) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.alwaysLog = ((alwaysLog) ? Boolean.TRUE : Boolean.FALSE);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "COND_EXPR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setCreateEmptyFiles", "code": "    public void setCreateEmptyFiles(boolean createEmptyFiles) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.createEmptyFiles = ((createEmptyFiles)\n            ? Boolean.TRUE : Boolean.FALSE);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "COND_EXPR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setErrorProperty", "code": "    public void setErrorProperty(String errorProperty) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.errorProperty = errorProperty;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createInputFilterChain", "code": "    public FilterChain createInputFilterChain() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        FilterChain result = new FilterChain();\n        result.setProject(getProject());\n        inputFilterChains.add(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [2, 8], [3, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 2], [9, 3], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createOutputFilterChain", "code": "    public FilterChain createOutputFilterChain() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        FilterChain result = new FilterChain();\n        result.setProject(getProject());\n        outputFilterChains.add(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [2, 8], [3, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 2], [9, 3], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createErrorFilterChain", "code": "    public FilterChain createErrorFilterChain() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        FilterChain result = new FilterChain();\n        result.setProject(getProject());\n        errorFilterChains.add(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [2, 8], [3, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 2], [9, 3], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "configure", "code": "    public void configure(Redirector redirector) {\n        configure(redirector, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "configure", "code": "    public void configure(Redirector redirector, String sourcefile) {\n        if (isReference()) {\n            getRef().configure(redirector, sourcefile);\n            return;\n        }\n        if (alwaysLog != null) {\n            redirector.setAlwaysLog(alwaysLog.booleanValue());\n        }\n        if (logError != null) {\n            redirector.setLogError(logError.booleanValue());\n        }\n        if (append != null) {\n            redirector.setAppend(append.booleanValue());\n        }\n        if (createEmptyFiles != null) {\n            redirector.setCreateEmptyFiles(createEmptyFiles.booleanValue());\n        }\n        if (outputProperty != null) {\n            redirector.setOutputProperty(outputProperty);\n        }\n        if (errorProperty != null) {\n            redirector.setErrorProperty(errorProperty);\n        }\n        if (inputString != null) {\n            redirector.setInputString(inputString);\n        }\n        if (logInputString != null) {\n            redirector.setLogInputString(logInputString.booleanValue());\n        }\n        if (inputMapper != null) {\n            String[] inputTargets = null;\n            try {\n                inputTargets =\n                    inputMapper.getImplementation().mapFileName(sourcefile);\n            } catch (NullPointerException enPeaEx) {\n                if (sourcefile != null) {\n                    throw enPeaEx;\n                }\n            }\n            if (inputTargets != null && inputTargets.length > 0) {\n                redirector.setInput(toFileArray(inputTargets));\n            }\n        }\n        if (outputMapper != null) {\n            String[] outputTargets = null;\n            try {\n                outputTargets =\n                    outputMapper.getImplementation().mapFileName(sourcefile);\n            } catch (NullPointerException enPeaEx) {\n                if (sourcefile != null) {\n                    throw enPeaEx;\n                }\n            }\n            if (outputTargets != null && outputTargets.length > 0) {\n                redirector.setOutput(toFileArray(outputTargets));\n            }\n        }\n        if (errorMapper != null) {\n            String[] errorTargets = null;\n            try {\n                errorTargets =\n                    errorMapper.getImplementation().mapFileName(sourcefile);\n            } catch (NullPointerException enPeaEx) {\n                if (sourcefile != null) {\n                    throw enPeaEx;\n                }\n            }\n            if (errorTargets != null && errorTargets.length > 0) {\n                redirector.setError(toFileArray(errorTargets));\n            }\n        }\n        if (inputFilterChains.size() > 0) {\n            redirector.setInputFilterChains(inputFilterChains);\n        }\n        if (outputFilterChains.size() > 0) {\n            redirector.setOutputFilterChains(outputFilterChains);\n        }\n        if (errorFilterChains.size() > 0) {\n            redirector.setErrorFilterChains(errorFilterChains);\n        }\n        if (inputEncoding != null) {\n            redirector.setInputEncoding(inputEncoding);\n        }\n        if (outputEncoding != null) {\n            redirector.setOutputEncoding(outputEncoding);\n        }\n        if (errorEncoding != null) {\n            redirector.setErrorEncoding(errorEncoding);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CATCH", "BINARY_OP", "CATCH", "BINARY_OP", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [2, 22], [3, 23], [4, 24], [5, 25], [6, 26], [7, 27], [8, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [14, 34], [15, 35], [16, 36], [17, 37], [18, 38], [21, 39], [22, 40], [23, 41], [24, 42], [24, 43], [25, 44], [25, 45], [26, 46], [26, 47], [7, 48], [7, 49], [7, 50], [27, 51], [8, 52], [8, 53], [8, 54], [28, 55], [9, 56], [9, 57], [9, 58], [29, 59], [30, 60], [31, 61], [32, 62], [33, 63], [34, 64], [35, 65], [36, 66], [37, 67], [18, 68], [1, 69], [2, 70], [3, 71], [4, 72], [5, 73], [6, 74], [48, 75], [49, 76], [52, 77], [53, 78], [56, 79], [57, 80], [10, 81], [11, 82], [12, 83], [13, 84], [14, 85], [15, 86], [16, 87], [17, 88], [18, 89], [75, 90], [75, 91], [76, 92], [49, 93], [50, 94], [77, 95], [77, 96], [78, 97], [53, 98], [54, 99], [79, 100], [79, 101], [80, 102], [57, 103], [58, 104], [81, 105], [85, 106], [86, 107], [87, 108], [88, 109], [89, 110], [48, 111], [90, 112], [91, 113], [92, 114], [93, 115], [52, 116], [95, 117], [96, 118], [97, 119], [98, 120], [56, 121], [100, 122], [101, 123], [102, 124], [103, 125], [111, 126], [92, 127], [114, 128], [115, 129], [116, 130], [97, 131], [119, 132], [120, 133], [121, 134], [102, 135], [124, 136], [125, 137], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 2], [23, 3], [24, 4], [25, 5], [26, 6], [27, 7], [28, 8], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 14], [35, 15], [36, 16], [37, 17], [38, 18], [39, 21], [40, 22], [41, 23], [42, 24], [43, 24], [44, 25], [45, 25], [46, 26], [47, 26], [48, 7], [49, 7], [50, 7], [51, 27], [52, 8], [53, 8], [54, 8], [55, 28], [56, 9], [57, 9], [58, 9], [59, 29], [60, 30], [61, 31], [62, 32], [63, 33], [64, 34], [65, 35], [66, 36], [67, 37], [68, 18], [69, 1], [70, 2], [71, 3], [72, 4], [73, 5], [74, 6], [75, 48], [76, 49], [77, 52], [78, 53], [79, 56], [80, 57], [81, 10], [82, 11], [83, 12], [84, 13], [85, 14], [86, 15], [87, 16], [88, 17], [89, 18], [90, 75], [91, 75], [92, 76], [93, 49], [94, 50], [95, 77], [96, 77], [97, 78], [98, 53], [99, 54], [100, 79], [101, 79], [102, 80], [103, 57], [104, 58], [105, 81], [106, 85], [107, 86], [108, 87], [109, 88], [110, 89], [111, 48], [112, 90], [113, 91], [114, 92], [115, 93], [116, 52], [117, 95], [118, 96], [119, 97], [120, 98], [121, 56], [122, 100], [123, 101], [124, 102], [125, 103], [126, 111], [127, 92], [128, 114], [129, 115], [130, 116], [131, 97], [132, 119], [133, 120], [134, 121], [135, 102], [136, 124], [137, 125], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137]]}, {"function_name": "createMergeMapper", "code": "    protected Mapper createMergeMapper(File destfile) {\n        Mapper result = new Mapper(getProject());\n        result.setClassname(\n            org.apache.tools.ant.util.MergingMapper.class.getName());\n        result.setTo(destfile.getAbsolutePath());\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "toFileArray", "code": "    protected File[] toFileArray(String[] name) {\n        if (name == null) {\n            return null;\n        }\n        ArrayList list = new ArrayList(name.length);\n        for (int i = 0; i < name.length; i++) {\n            if (name[i] != null) {\n                list.add(getProject().resolveFile(name[i]));\n            }\n        }\n        return (File[]) (list.toArray(new File[list.size()]));", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [1, 8], [2, 9], [3, 10], [4, 11], [7, 12], [9, 13], [2, 14], [11, 15], [8, 16], [13, 17], [9, 18], [18, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 1], [9, 2], [10, 3], [11, 4], [12, 7], [13, 9], [14, 2], [15, 11], [16, 8], [17, 13], [18, 9], [19, 18], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "dieOnCircularReference", "code": "    protected void dieOnCircularReference(Stack stk, Project p)\n        throws BuildException {\n        if (isChecked()) {\n            return;\n        }\n        if (isReference()) {\n            super.dieOnCircularReference(stk, p);\n        } else {\n            Mapper[] m = new Mapper[] {inputMapper, outputMapper, errorMapper};\n            for (int i = 0; i < m.length; i++) {\n                if (m[i] != null) {\n                    stk.push(m[i]);\n                    m[i].dieOnCircularReference(stk, p);\n                    stk.pop();\n                }\n            }\n            Vector[] v = new Vector[]\n                {inputFilterChains, outputFilterChains, errorFilterChains};\n            for (int i = 0; i < v.length; i++) {\n                if (v[i] != null) {\n                    for (Iterator fci = v[i].iterator(); fci.hasNext();) {\n                        FilterChain fc = (FilterChain) fci.next();\n                        stk.push(fc);\n                        fc.dieOnCircularReference(stk, p);\n                        stk.pop();\n                    }\n                }\n            }\n            setChecked(true);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [1, 12], [7, 13], [9, 14], [12, 15], [7, 16], [9, 17], [16, 18], [7, 19], [17, 20], [9, 21], [16, 22], [18, 23], [20, 24], [22, 25], [17, 26], [17, 27], [22, 28], [17, 29], [22, 30], [22, 31], [22, 32], [22, 33], [28, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 1], [13, 7], [14, 9], [15, 12], [16, 7], [17, 9], [18, 16], [19, 7], [20, 17], [21, 9], [22, 16], [23, 18], [24, 20], [25, 22], [26, 17], [27, 17], [28, 22], [29, 17], [30, 22], [31, 22], [32, 22], [33, 22], [34, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getRef", "code": "    private RedirectorElement getRef() {\n        return (RedirectorElement) getCheckedRef();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6518", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/Closure.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Closure", "code": "public interface Closure {\n\n    /**\n     * Returns true if this closure is compiled in an inner class (i.e.\n     * if this is a real closure).\n     */\n    public boolean inInnerClass();\n\n    /**\n     * Returns a reference to its parent closure or null if outermost.\n     */\n    public Closure getParentClosure();\n\n    /**\n     * Returns the name of the auxiliary class or null if this predicate \n     * is compiled inside the Translet.\n     */\n    public String getInnerClassName();\n\n    /**\n     * Add new variable to the closure.\n     */\n    public void addVariable(VariableRefBase variableRef);", "functions": [{"function_name": "inInnerClass", "code": "    public boolean inInnerClass();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getParentClosure", "code": "    public Closure getParentClosure();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getInnerClassName", "code": "    public String getInnerClassName();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "addVariable", "code": "    public void addVariable(VariableRefBase variableRef);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-995", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/condition/Http.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.condition.Http", "code": "public class Http extends ProjectComponent implements Condition {\n    private static final int ERROR_BEGINS = 400;\n    private String spec = null;\n\n    /**\n     * Set the url attribute\n     * @param url the url of the request\n     */\n    public void setUrl(String url) {\n        spec = url;\n    }\n\n    private int errorsBeginAt = ERROR_BEGINS;\n\n    /**\n     * Set the errorsBeginAt attribute\n     * @param errorsBeginAt number at which errors begin at, default is\n     *                      400\n     */\n    public void setErrorsBeginAt(int errorsBeginAt) {\n        this.errorsBeginAt = errorsBeginAt;\n    }\n\n    /**\n     * @return true if the HTTP request succeeds\n     * @exception BuildException if an error occurs\n     */\n    public boolean eval() throws BuildException {\n        if (spec == null) {\n            throw new BuildException(\"No url specified in http condition\");\n        }\n        log(\"Checking for \" + spec, Project.MSG_VERBOSE);\n        try {\n            URL url = new URL(spec);\n            try {\n                URLConnection conn = url.openConnection();\n                if (conn instanceof HttpURLConnection) {\n                    HttpURLConnection http = (HttpURLConnection) conn;\n                    int code = http.getResponseCode();\n                    log(\"Result code for \" + spec + \" was \" + code,\n                        Project.MSG_VERBOSE);\n                    if (code > 0 && code < errorsBeginAt) {\n                        return true;\n                    }\n                    return false;\n                }\n            } catch (java.io.IOException e) {\n                return false;\n            }\n        } catch (MalformedURLException e) {\n            throw new BuildException(\"Badly formed URL: \" + spec, e);\n        }\n        return true;", "functions": [{"function_name": "setUrl", "code": "    public void setUrl(String url) {\n        spec = url;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorsBeginAt", "code": "    public void setErrorsBeginAt(int errorsBeginAt) {\n        this.errorsBeginAt = errorsBeginAt;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "eval", "code": "    public boolean eval() throws BuildException {\n        if (spec == null) {\n            throw new BuildException(\"No url specified in http condition\");\n        }\n        log(\"Checking for \" + spec, Project.MSG_VERBOSE);\n        try {\n            URL url = new URL(spec);\n            try {\n                URLConnection conn = url.openConnection();\n                if (conn instanceof HttpURLConnection) {\n                    HttpURLConnection http = (HttpURLConnection) conn;\n                    int code = http.getResponseCode();\n                    log(\"Result code for \" + spec + \" was \" + code,\n                        Project.MSG_VERBOSE);\n                    if (code > 0 && code < errorsBeginAt) {\n                        return true;\n                    }\n                    return false;\n                }\n            } catch (java.io.IOException e) {\n                return false;\n            }\n        } catch (MalformedURLException e) {\n            throw new BuildException(\"Badly formed URL: \" + spec, e);\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "LITERAL_ANCHOR", "CATCH", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "THROW_RAISE", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [0, 8], [3, 9], [5, 10], [6, 11], [6, 12], [6, 13], [8, 14], [3, 15], [9, 16], [10, 17], [11, 18], [12, 19], [7, 20], [14, 21], [15, 22], [17, 23], [18, 24], [12, 25], [12, 26], [12, 27], [12, 28], [13, 29], [22, 30], [23, 31], [25, 32], [26, 33], [12, 34], [26, 35], [33, 36], [33, 37], [34, 38], [27, 39], [35, 40], [37, 41], [38, 42], [42, 43], [42, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 0], [9, 3], [10, 5], [11, 6], [12, 6], [13, 6], [14, 8], [15, 3], [16, 9], [17, 10], [18, 11], [19, 12], [20, 7], [21, 14], [22, 15], [23, 17], [24, 18], [25, 12], [26, 12], [27, 12], [28, 12], [29, 13], [30, 22], [31, 23], [32, 25], [33, 26], [34, 12], [35, 26], [36, 33], [37, 33], [38, 34], [39, 27], [40, 35], [41, 37], [42, 38], [43, 42], [44, 42], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}], "label": 0}
{"sample_id": "ivy-2.0-3405", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/util/url/URLHandlerRegistry.java", "language": "java", "name": "org.apache.ivy.util.url.URLHandlerRegistry", "code": "public final class URLHandlerRegistry {\n    private URLHandlerRegistry() {\n    }\n    \n    private static URLHandler defaultHandler = new BasicURLHandler();\n\n    public static URLHandler getDefault() {\n        return defaultHandler;\n    }\n\n    public static void setDefault(URLHandler def) {\n        defaultHandler = def;\n    }\n\n    /**\n     * This method is used to get appropriate http downloader dependening on Jakarta Commons\n     * HttpClient availability in classpath, or simply use jdk url handling in other cases.\n     * \n     * @return most accurate http downloader\n     */\n    public static URLHandler getHttp() {\n        try {\n            Class.forName(\"org.apache.commons.httpclient.HttpClient\");\n            \n            // temporary fix for IVY-880: only use HttpClientHandler when \n            // http-client-3.x is available\n            Class.forName(\"org.apache.commons.httpclient.params.HttpClientParams\");\n            \n            Class handler = Class.forName(\"org.apache.ivy.util.url.HttpClientHandler\");\n            Message.verbose(\"jakarta commons httpclient detected: using it for http downloading\");\n            return (URLHandler) handler.newInstance();\n        } catch (ClassNotFoundException e) {\n            Message.verbose(\"jakarta commons httpclient not found: using jdk url handling\");\n            return new BasicURLHandler();\n        } catch (NoClassDefFoundError e) {\n            Message.verbose(\"error occurred while loading jakarta commons httpclient: \"\n                    + e.getMessage());\n            Message.verbose(\"Using jdk url handling instead.\");\n            return new BasicURLHandler();\n        } catch (InstantiationException e) {\n            Message.verbose(\"couldn't instantiate HttpClientHandler: using jdk url handling\");\n            return new BasicURLHandler();\n        } catch (IllegalAccessException e) {\n            Message.verbose(\"couldn't instantiate HttpClientHandler: using jdk url handling\");\n            return new BasicURLHandler();", "functions": [{"function_name": "getDefault", "code": "    public static URLHandler getDefault() {\n        return defaultHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefault", "code": "    public static void setDefault(URLHandler def) {\n        defaultHandler = def;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHttp", "code": "    public static URLHandler getHttp() {\n        try {\n            Class.forName(\"org.apache.commons.httpclient.HttpClient\");\n            \n            // temporary fix for IVY-880: only use HttpClientHandler when \n            // http-client-3.x is available\n            Class.forName(\"org.apache.commons.httpclient.params.HttpClientParams\");\n            \n            Class handler = Class.forName(\"org.apache.ivy.util.url.HttpClientHandler\");\n            Message.verbose(\"jakarta commons httpclient detected: using it for http downloading\");\n            return (URLHandler) handler.newInstance();\n        } catch (ClassNotFoundException e) {\n            Message.verbose(\"jakarta commons httpclient not found: using jdk url handling\");\n            return new BasicURLHandler();\n        } catch (NoClassDefFoundError e) {\n            Message.verbose(\"error occurred while loading jakarta commons httpclient: \"\n                    + e.getMessage());\n            Message.verbose(\"Using jdk url handling instead.\");\n            return new BasicURLHandler();\n        } catch (InstantiationException e) {\n            Message.verbose(\"couldn't instantiate HttpClientHandler: using jdk url handling\");\n            return new BasicURLHandler();\n        } catch (IllegalAccessException e) {\n            Message.verbose(\"couldn't instantiate HttpClientHandler: using jdk url handling\");\n            return new BasicURLHandler();", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CATCH", "CATCH", "CATCH", "RETURN", "VAR_DECL", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [2, 16], [9, 17], [3, 18], [10, 19], [4, 20], [4, 21], [11, 22], [5, 23], [6, 24], [12, 25], [7, 26], [13, 27], [14, 28], [16, 29], [18, 30], [20, 31], [21, 32], [23, 33], [26, 34], [32, 35], [32, 36], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 2], [17, 9], [18, 3], [19, 10], [20, 4], [21, 4], [22, 11], [23, 5], [24, 6], [25, 12], [26, 7], [27, 13], [28, 14], [29, 16], [30, 18], [31, 20], [32, 21], [33, 23], [34, 26], [35, 32], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "URLHandlerRegistry", "code": "    private URLHandlerRegistry() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.7-1103", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/selectors/Compare.java", "language": "java", "name": "org.apache.tools.ant.types.resources.selectors.Compare", "code": "public class Compare extends DataType implements ResourceSelector {\n\n    private static final String ONE_CONTROL_MESSAGE\n        = \" the <control> element should be specified exactly once.\";\n\n    private DelegatedResourceComparator comp = new DelegatedResourceComparator();\n    private Quantifier against = Quantifier.ALL;\n\n    private Comparison when = Comparison.EQUAL;\n\n    private Union control;\n\n    /**\n     * Add a ResourceComparator to this Compare selector.\n     * If multiple ResourceComparators are added, they will be processed in LIFO order.\n     * @param c the ResourceComparator to add.\n     */\n    public synchronized void add(ResourceComparator c) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        comp.add(c);\n    }\n\n    /**\n     * Set the quantifier to be used. Default \"all\".\n     * @param against the Quantifier EnumeratedAttribute to use.\n     */\n    public synchronized void setAgainst(Quantifier against) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.against = against;\n    }\n\n    /**\n     * Set the comparison to be used. Default \"equal\".\n     * @param when the Comparison EnumeratedAttribute to use.\n     */\n    public synchronized void setWhen(Comparison when) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.when = when;\n    }\n\n    /**\n     * Create the nested control element. These are the\n     * resources to compare against.\n     * @return ResourceCollection.\n     */\n    public synchronized ResourceCollection createControl() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (control != null) {\n            throw oneControl();\n        }\n        control = new Union();\n        return control;\n    }\n\n    /** {@inheritDoc} */\n    public synchronized boolean isSelected(Resource r) {\n        if (isReference()) {\n            return ((ResourceSelector) getCheckedRef()).isSelected(r);\n        }\n        if (control == null) {\n            throw oneControl();\n        }\n        int t = 0, f = 0;\n        for (Iterator it = control.iterator(); it.hasNext();) {\n            if (when.evaluate(comp.compare(r, (Resource) it.next()))) {\n                t++;\n            } else {\n                f++;\n            }\n        }\n        return against.evaluate(t, f);\n    }\n\n    /**\n     * Overrides the version from DataType\n     * to recurse on nested ResourceComparators.\n     * @param stk the stack of data types to use (recursively).\n     * @param p   the project to use to dereference the references.\n     * @throws BuildException on error.\n     */\n    protected synchronized void dieOnCircularReference(Stack stk, Project p)\n        throws BuildException {\n        if (isChecked()) {\n            return;\n        }\n        if (isReference()) {\n            super.dieOnCircularReference(stk, p);\n        } else {\n            if (control != null) {\n                DataType.invokeCircularReferenceCheck(control, stk, p);\n            }\n            DataType.invokeCircularReferenceCheck(comp, stk, p);\n            setChecked(true);\n        }\n    }\n\n    private BuildException oneControl() {\n        return new BuildException(super.toString() + ONE_CONTROL_MESSAGE);", "functions": [{"function_name": "add", "code": "    public synchronized void add(ResourceComparator c) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        comp.add(c);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setAgainst", "code": "    public synchronized void setAgainst(Quantifier against) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.against = against;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setWhen", "code": "    public synchronized void setWhen(Comparison when) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.when = when;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createControl", "code": "    public synchronized ResourceCollection createControl() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (control != null) {\n            throw oneControl();\n        }\n        control = new Union();\n        return control;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "ASSIGN", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [2, 8], [5, 9], [3, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 2], [9, 5], [10, 3], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "isSelected", "code": "    public synchronized boolean isSelected(Resource r) {\n        if (isReference()) {\n            return ((ResourceSelector) getCheckedRef()).isSelected(r);\n        }\n        if (control == null) {\n            throw oneControl();\n        }\n        int t = 0, f = 0;\n        for (Iterator it = control.iterator(); it.hasNext();) {\n            if (when.evaluate(comp.compare(r, (Resource) it.next()))) {\n                t++;\n            } else {\n                f++;\n            }\n        }\n        return against.evaluate(t, f);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [5, 10], [2, 11], [3, 12], [3, 13], [4, 14], [9, 15], [5, 16], [11, 17], [2, 18], [14, 19], [17, 20], [16, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 5], [11, 2], [12, 3], [13, 3], [14, 4], [15, 9], [16, 5], [17, 11], [18, 2], [19, 14], [20, 17], [21, 16], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "dieOnCircularReference", "code": "    protected synchronized void dieOnCircularReference(Stack stk, Project p)\n        throws BuildException {\n        if (isChecked()) {\n            return;\n        }\n        if (isReference()) {\n            super.dieOnCircularReference(stk, p);\n        } else {\n            if (control != null) {\n                DataType.invokeCircularReferenceCheck(control, stk, p);\n            }\n            DataType.invokeCircularReferenceCheck(comp, stk, p);\n            setChecked(true);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "IF", "RETURN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [1, 9], [1, 10], [7, 11], [9, 12], [11, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 1], [10, 1], [11, 7], [12, 9], [13, 11], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "oneControl", "code": "    private BuildException oneControl() {\n        return new BuildException(super.toString() + ONE_CONTROL_MESSAGE);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.2-1925", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/impl/ProcessorPollingConsumer.java", "language": "java", "name": "org.apache.camel.impl.ProcessorPollingConsumer", "code": "public class ProcessorPollingConsumer extends PollingConsumerSupport {\n    private Processor processor;\n\n    public ProcessorPollingConsumer(Endpoint endpoint, Processor processor) {\n        super(endpoint);\n        this.processor = processor;\n    }\n\n    protected void doStart() throws Exception {\n        ServiceHelper.startService(processor);\n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopService(processor);\n    }\n\n    public Exchange receive() {\n        Exchange exchange = getEndpoint().createExchange();\n        try {\n            processor.process(exchange);\n        }\n        catch (Exception e) {\n            throw new RuntimeExchangeException(e, exchange);\n        }\n        return exchange;\n    }\n\n    public Exchange receiveNoWait() {\n        return receive();\n    }\n\n    public Exchange receive(long timeout) {\n        return receive();", "functions": [{"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ServiceHelper.startService(processor);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopService(processor);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "receive", "code": "    public Exchange receive() {\n        Exchange exchange = getEndpoint().createExchange();\n        try {\n            processor.process(exchange);\n        }\n        catch (Exception e) {\n            throw new RuntimeExchangeException(e, exchange);\n        }\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [3, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 3], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "receiveNoWait", "code": "    public Exchange receiveNoWait() {\n        return receive();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "receive", "code": "    public Exchange receive(long timeout) {\n        return receive();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ProcessorPollingConsumer", "code": "    public ProcessorPollingConsumer(Endpoint endpoint, Processor processor) {\n        super(endpoint);\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.4-2304", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/cxf/transport/spring/AbstractCamelContextBeanDefinitionParser.java", "language": "java", "name": "org.apache.camel.component.cxf.transport.spring.AbstractCamelContextBeanDefinitionParser", "code": "public class AbstractCamelContextBeanDefinitionParser extends AbstractBeanDefinitionParser {\n    private static final String DEFAULT_CAMEL_CONTEXT_NAME = \"camelContext\";\n\n    private String getContextId(String contextId) {\n        if (ObjectHelper.isNullOrBlank(contextId)) {\n            return DEFAULT_CAMEL_CONTEXT_NAME;\n        } else {\n            return contextId;\n        }\n    }\n\n    protected void wireCamelContext(BeanDefinitionBuilder bean, String camelContextId) {\n        bean.addPropertyReference(\"camelContext\", camelContextId);\n    }\n\n    protected void doParse(Element element, ParserContext ctx, BeanDefinitionBuilder bean) {\n        bean.setAbstract(true);\n        NodeList children = element.getChildNodes();\n        for (int i = 0; i < children.getLength(); i++) {\n            Node n = children.item(i);\n            if (n.getNodeType() == Node.ELEMENT_NODE) {\n                String name = n.getLocalName();\n                if (\"camelContext\".equals(name)) {\n                    BeanDefinition bd = ctx.getDelegate().parseCustomElement((Element)n);\n                    String contextId = (String)bd.getPropertyValues().getPropertyValue(\"id\").getValue();\n                    wireCamelContext(bean, getContextId(contextId));\n                } else if (\"camelContextRef\".equals(name)) {\n                    String contextId = n.getTextContent();\n                    wireCamelContext(bean, getContextId(contextId));", "functions": [{"function_name": "getContextId", "code": "    private String getContextId(String contextId) {\n        if (ObjectHelper.isNullOrBlank(contextId)) {\n            return DEFAULT_CAMEL_CONTEXT_NAME;\n        } else {\n            return contextId;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "RETURN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "wireCamelContext", "code": "    protected void wireCamelContext(BeanDefinitionBuilder bean, String camelContextId) {\n        bean.addPropertyReference(\"camelContext\", camelContextId);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "doParse", "code": "    protected void doParse(Element element, ParserContext ctx, BeanDefinitionBuilder bean) {\n        bean.setAbstract(true);\n        NodeList children = element.getChildNodes();\n        for (int i = 0; i < children.getLength(); i++) {\n            Node n = children.item(i);\n            if (n.getNodeType() == Node.ELEMENT_NODE) {\n                String name = n.getLocalName();\n                if (\"camelContext\".equals(name)) {\n                    BeanDefinition bd = ctx.getDelegate().parseCustomElement((Element)n);\n                    String contextId = (String)bd.getPropertyValues().getPropertyValue(\"id\").getValue();\n                    wireCamelContext(bean, getContextId(contextId));\n                } else if (\"camelContextRef\".equals(name)) {\n                    String contextId = n.getTextContent();\n                    wireCamelContext(bean, getContextId(contextId));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [1, 8], [1, 9], [6, 10], [2, 11], [7, 12], [8, 13], [1, 14], [8, 15], [8, 16], [13, 17], [9, 18], [15, 19], [15, 20], [19, 21], [15, 22], [15, 23], [20, 24], [16, 25], [19, 26], [21, 27], [15, 28], [19, 29], [28, 30], [23, 31], [29, 32], [26, 33], [22, 34], [31, 35], [34, 36], [34, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 1], [9, 1], [10, 6], [11, 2], [12, 7], [13, 8], [14, 1], [15, 8], [16, 8], [17, 13], [18, 9], [19, 15], [20, 15], [21, 19], [22, 15], [23, 15], [24, 20], [25, 16], [26, 19], [27, 21], [28, 15], [29, 19], [30, 28], [31, 23], [32, 29], [33, 26], [34, 22], [35, 31], [36, 34], [37, 34], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}], "label": 0}
{"sample_id": "ant-1.5-262", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/ExecuteStreamHandler.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.ExecuteStreamHandler", "code": "public interface ExecuteStreamHandler {\n\n    /**\n     * Install a handler for the input stream of the subprocess.\n     *\n     * @param os output stream to write to the standard input stream of the\n     *           subprocess\n     */\n    void setProcessInputStream(OutputStream os) throws IOException;\n\n    /**\n     * Install a handler for the error stream of the subprocess.\n     *\n     * @param is input stream to read from the error stream from the subprocess\n     */\n    void setProcessErrorStream(InputStream is) throws IOException;\n\n    /**\n     * Install a handler for the output stream of the subprocess.\n     *\n     * @param is input stream to read from the error stream from the subprocess\n     */\n    void setProcessOutputStream(InputStream is) throws IOException;\n\n    /**\n     * Start handling of the streams.\n     */\n    void start() throws IOException;\n\n    /**\n     * Stop handling of the streams - will not be restarted.\n     */\n    void stop();", "functions": [{"function_name": "setProcessInputStream", "code": "    void setProcessInputStream(OutputStream os) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessErrorStream", "code": "    void setProcessErrorStream(InputStream is) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessOutputStream", "code": "    void setProcessOutputStream(InputStream is) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "start", "code": "    void start() throws IOException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "stop", "code": "    void stop();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.0-1418", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/processor/loadbalancer/LoadBalancerSupport.java", "language": "java", "name": "org.apache.camel.processor.loadbalancer.LoadBalancerSupport", "code": "public abstract class LoadBalancerSupport implements LoadBalancer {\n    private List<Processor> processors = new CopyOnWriteArrayList<Processor>();\n\n    public void addProcessor(Processor processor) {\n        processors.add(processor);\n    }\n\n    public void removeProcessor(Processor processor) {\n        processors.remove(processor);\n    }\n\n    public List<Processor> getProcessors() {\n        return processors;", "functions": [{"function_name": "addProcessor", "code": "    public void addProcessor(Processor processor) {\n        processors.add(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeProcessor", "code": "    public void removeProcessor(Processor processor) {\n        processors.remove(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProcessors", "code": "    public List<Processor> getProcessors() {\n        return processors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-2.0-5524", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/CellValueRecordInterface.java", "language": "java", "name": "org.apache.poi.hssf.record.CellValueRecordInterface", "code": "public interface CellValueRecordInterface\n{\n\n    /**\n     * get the row this cell occurs on\n     *\n     * @return the row\n     */\n\n    public int getRow();\n\n    /**\n     * get the column this cell defines within the row\n     *\n     * @return the column\n     */\n\n    public short getColumn();\n\n    /**\n     * set the row this cell occurs on\n     * @param row the row this cell occurs within\n     */\n\n    public void setRow(int row);\n\n    /**\n     * set the column this cell defines within the row\n     *\n     * @param col the column this cell defines\n     */\n\n    public void setColumn(short col);\n\n    public void setXFIndex(short xf);\n\n    public short getXFIndex();\n\n    /**\n     * returns whether this cell is before the passed in cell\n     *\n     * @param i  another cell interface record to compare\n     * @return true if the cells is before, or false if not\n     */\n\n    public boolean isBefore(CellValueRecordInterface i);\n\n    /**\n     * returns whether this cell is after the passed in cell\n     *\n     * @param i  record to compare\n     * @return true if the cell is after, false if not\n     */\n\n    public boolean isAfter(CellValueRecordInterface i);\n\n    /**\n     * returns whether this cell represents the same cell (NOT VALUE)\n     *\n     * @param i  record to compare\n     * @return true if the cells are the same cell (positionally), false if not.\n     */\n\n    public boolean isEqual(CellValueRecordInterface i);\n\n    public Object clone();", "functions": [{"function_name": "getRow", "code": "    public int getRow();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getColumn", "code": "    public short getColumn();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setRow", "code": "    public void setRow(int row);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setColumn", "code": "    public void setColumn(short col);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXFIndex", "code": "    public void setXFIndex(short xf);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXFIndex", "code": "    public short getXFIndex();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isBefore", "code": "    public boolean isBefore(CellValueRecordInterface i);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isAfter", "code": "    public boolean isAfter(CellValueRecordInterface i);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isEqual", "code": "    public boolean isEqual(CellValueRecordInterface i);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.1-4183", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "gnu/regexp/CharIndexedCharArray.java", "language": "java", "name": "gnu.regexp.CharIndexedCharArray", "code": "class CharIndexedCharArray implements CharIndexed, Serializable {\n    private char[] s;\n    private int anchor;\n    \n    CharIndexedCharArray(char[] str, int index) {\n\ts = str;\n\tanchor = index;\n    }\n    \n    public char charAt(int index) {\n\tint pos = anchor + index;\n\treturn ((pos < s.length) && (pos >= 0)) ? s[pos] : OUT_OF_BOUNDS;\n    }\n    \n    public boolean isValid() {\n\treturn (anchor < s.length);\n    }\n    \n    public boolean move(int index) {\n\treturn ((anchor += index) < s.length);", "functions": [{"function_name": "charAt", "code": "    public char charAt(int index) {\n\tint pos = anchor + index;\n\treturn ((pos < s.length) && (pos >= 0)) ? s[pos] : OUT_OF_BOUNDS;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [5, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 5], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isValid", "code": "    public boolean isValid() {\n\treturn (anchor < s.length);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "move", "code": "    public boolean move(int index) {\n\treturn ((anchor += index) < s.length);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CharIndexedCharArray", "code": "    CharIndexedCharArray(char[] str, int index) {\n\ts = str;\n\tanchor = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.4-2480", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/file/FileProducer.java", "language": "java", "name": "org.apache.camel.component.file.FileProducer", "code": "public class FileProducer extends DefaultProducer {\n    private static final transient Log LOG = LogFactory.getLog(FileProducer.class);\n    private FileEndpoint endpoint;\n\n    public FileProducer(FileEndpoint endpoint) {\n        super(endpoint);\n        this.endpoint = endpoint;\n    }\n\n    public FileEndpoint getEndpoint() {\n        return (FileEndpoint) super.getEndpoint();\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        FileExchange fileExchange = endpoint.createExchange(exchange);\n        process(fileExchange);\n        ExchangeHelper.copyResults(exchange, fileExchange);\n    }\n\n    public void process(FileExchange exchange) throws Exception {\n        InputStream in = ExchangeHelper.getMandatoryInBody(exchange, InputStream.class);\n        File file = createFileName(exchange.getIn());\n        buildDirectory(file);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"About to write to: \" + file + \" from exchange: \" + exchange);\n        }\n        FileChannel fc = null;\n        try {\n            if (getEndpoint().isAppend()) {\n                fc = new RandomAccessFile(file, \"rw\").getChannel();\n                fc.position(fc.size());\n            } else {\n                fc = new FileOutputStream(file).getChannel();\n            }\n\n            int size = getEndpoint().getBufferSize();\n            byte[] buffer = new byte[size];\n            ByteBuffer byteBuffer = ByteBuffer.wrap(buffer);\n            while (true) {\n                int count = in.read(buffer);\n                if (count <= 0) {\n                    break;\n                } else if (count < size) {\n                    byteBuffer = ByteBuffer.wrap(buffer, 0, count);\n                    fc.write(byteBuffer);\n                    break;\n                } else {\n                    fc.write(byteBuffer);\n                    byteBuffer.clear();\n                }\n            }\n        } finally {\n            ObjectHelper.close(in, file.getName(), LOG);\n            ObjectHelper.close(fc, file.getName(), LOG);\n        }\n    }\n\n    protected File createFileName(Message message) {\n        File answer;\n\n        String name = null;\n        if (!endpoint.isIgnoreFileNameHeader()) {\n            name = message.getHeader(FileComponent.HEADER_FILE_NAME, String.class);\n        }\n\n        File endpointFile = endpoint.getFile();\n        if (endpointFile.isDirectory()) {\n            if (name != null) {\n                answer = new File(endpointFile, name);\n                if (answer.isDirectory()) {\n                    answer = new File(answer, endpoint.getGeneratedFileName(message));\n                }\n            } else {\n                answer = new File(endpointFile, endpoint.getGeneratedFileName(message));\n            }\n        } else {\n            if (name == null) {\n                answer = endpointFile;\n            } else {\n                answer = new File(endpointFile, name);\n            }\n        }\n\n        message.setHeader(FileComponent.HEADER_FILE_NAME_PRODUCED, answer.getAbsolutePath());\n\n        return answer;\n    }\n\n    private void buildDirectory(File file) {\n        String dirName = file.getAbsolutePath();\n        int index = dirName.lastIndexOf(File.separatorChar);\n        if (index > 0) {\n            dirName = dirName.substring(0, index);\n            File dir = new File(dirName);\n            dir.mkdirs();", "functions": [{"function_name": "getEndpoint", "code": "    public FileEndpoint getEndpoint() {\n        return (FileEndpoint) super.getEndpoint();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        FileExchange fileExchange = endpoint.createExchange(exchange);\n        process(fileExchange);\n        ExchangeHelper.copyResults(exchange, fileExchange);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "process", "code": "    public void process(FileExchange exchange) throws Exception {\n        InputStream in = ExchangeHelper.getMandatoryInBody(exchange, InputStream.class);\n        File file = createFileName(exchange.getIn());\n        buildDirectory(file);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"About to write to: \" + file + \" from exchange: \" + exchange);\n        }\n        FileChannel fc = null;\n        try {\n            if (getEndpoint().isAppend()) {\n                fc = new RandomAccessFile(file, \"rw\").getChannel();\n                fc.position(fc.size());\n            } else {\n                fc = new FileOutputStream(file).getChannel();\n            }\n\n            int size = getEndpoint().getBufferSize();\n            byte[] buffer = new byte[size];\n            ByteBuffer byteBuffer = ByteBuffer.wrap(buffer);\n            while (true) {\n                int count = in.read(buffer);\n                if (count <= 0) {\n                    break;\n                } else if (count < size) {\n                    byteBuffer = ByteBuffer.wrap(buffer, 0, count);\n                    fc.write(byteBuffer);\n                    break;\n                } else {\n                    fc.write(byteBuffer);\n                    byteBuffer.clear();\n                }\n            }\n        } finally {\n            ObjectHelper.close(in, file.getName(), LOG);\n            ObjectHelper.close(fc, file.getName(), LOG);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [3, 12], [0, 13], [1, 14], [1, 15], [7, 16], [11, 17], [2, 18], [4, 19], [5, 20], [14, 21], [15, 22], [7, 23], [7, 24], [8, 25], [10, 26], [17, 27], [3, 28], [19, 29], [23, 30], [23, 31], [26, 32], [11, 33], [11, 34], [11, 35], [28, 36], [30, 37], [23, 38], [31, 39], [24, 40], [33, 41], [34, 42], [35, 43], [36, 44], [30, 45], [41, 46], [43, 47], [43, 48], [44, 49], [44, 50], [30, 51], [30, 52], [30, 53], [30, 54], [50, 55], [54, 56], [56, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 3], [13, 0], [14, 1], [15, 1], [16, 7], [17, 11], [18, 2], [19, 4], [20, 5], [21, 14], [22, 15], [23, 7], [24, 7], [25, 8], [26, 10], [27, 17], [28, 3], [29, 19], [30, 23], [31, 23], [32, 26], [33, 11], [34, 11], [35, 11], [36, 28], [37, 30], [38, 23], [39, 31], [40, 24], [41, 33], [42, 34], [43, 35], [44, 36], [45, 30], [46, 41], [47, 43], [48, 43], [49, 44], [50, 44], [51, 30], [52, 30], [53, 30], [54, 30], [55, 50], [56, 54], [57, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "createFileName", "code": "    protected File createFileName(Message message) {\n        File answer;\n\n        String name = null;\n        if (!endpoint.isIgnoreFileNameHeader()) {\n            name = message.getHeader(FileComponent.HEADER_FILE_NAME, String.class);\n        }\n\n        File endpointFile = endpoint.getFile();\n        if (endpointFile.isDirectory()) {\n            if (name != null) {\n                answer = new File(endpointFile, name);\n                if (answer.isDirectory()) {\n                    answer = new File(answer, endpoint.getGeneratedFileName(message));\n                }\n            } else {\n                answer = new File(endpointFile, endpoint.getGeneratedFileName(message));\n            }\n        } else {\n            if (name == null) {\n                answer = endpointFile;\n            } else {\n                answer = new File(endpointFile, name);\n            }\n        }\n\n        message.setHeader(FileComponent.HEADER_FILE_NAME_PRODUCED, answer.getAbsolutePath());\n\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [8, 11], [2, 12], [2, 13], [3, 14], [5, 15], [12, 16], [13, 17], [4, 18], [16, 19], [13, 20], [17, 21], [18, 22], [12, 23], [12, 24], [13, 25], [20, 26], [13, 27], [23, 28], [25, 29], [27, 30], [29, 31], [20, 32], [32, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 8], [12, 2], [13, 2], [14, 3], [15, 5], [16, 12], [17, 13], [18, 4], [19, 16], [20, 13], [21, 17], [22, 18], [23, 12], [24, 12], [25, 13], [26, 20], [27, 13], [28, 23], [29, 25], [30, 27], [31, 29], [32, 20], [33, 32], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "buildDirectory", "code": "    private void buildDirectory(File file) {\n        String dirName = file.getAbsolutePath();\n        int index = dirName.lastIndexOf(File.separatorChar);\n        if (index > 0) {\n            dirName = dirName.substring(0, index);\n            File dir = new File(dirName);\n            dir.mkdirs();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [1, 10], [1, 11], [6, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 1], [11, 1], [12, 6], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "FileProducer", "code": "    public FileProducer(FileEndpoint endpoint) {\n        super(endpoint);\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.4-2046", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/util/ValueHolder.java", "language": "java", "name": "org.apache.camel.util.ValueHolder", "code": "public class ValueHolder<V> {\n    private V value;\n\n    public ValueHolder() {\n    }\n\n    public ValueHolder(V val) {\n        value = val;\n    }\n\n    public V get() {\n        return value;\n    }\n\n    public void set(V val) {\n        value = val;", "functions": [{"function_name": "get", "code": "    public V get() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "set", "code": "    public void set(V val) {\n        value = val;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ValueHolder", "code": "    public ValueHolder() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ValueHolder", "code": "    public ValueHolder(V val) {\n        value = val;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8108", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/DTMConfigurationException.java", "language": "java", "name": "org.apache.xml.dtm.DTMConfigurationException", "code": "public class DTMConfigurationException extends DTMException {\n    static final long serialVersionUID = -4607874078818418046L;\n\n    /**\n     * Create a new <code>DTMConfigurationException</code> with no\n     * detail mesage.\n     */\n    public DTMConfigurationException() {\n        super(\"Configuration Error\");\n    }\n\n    /**\n     * Create a new <code>DTMConfigurationException</code> with\n     * the <code>String </code> specified as an error message.\n     *\n     * @param msg The error message for the exception.\n     */\n    public DTMConfigurationException(String msg) {\n        super(msg);\n    }\n\n    /**\n     * Create a new <code>DTMConfigurationException</code> with a\n     * given <code>Exception</code> base cause of the error.\n     *\n     * @param e The exception to be encapsulated in a\n     * DTMConfigurationException.\n     */\n    public DTMConfigurationException(Throwable e) {\n        super(e);\n    }\n\n    /**\n     * Create a new <code>DTMConfigurationException</code> with the\n     * given <code>Exception</code> base cause and detail message.\n     *\n     * @param msg The detail message.\n     * @param e The exception to be wrapped in a DTMConfigurationException\n     */\n    public DTMConfigurationException(String msg, Throwable e) {\n        super(msg, e);\n    }\n\n    /**\n     * Create a new DTMConfigurationException from a message and a Locator.\n     *\n     * <p>This constructor is especially useful when an application is\n     * creating its own exception from within a DocumentHandler\n     * callback.</p>\n     *\n     * @param message The error or warning message.\n     * @param locator The locator object for the error or warning.\n     */\n    public DTMConfigurationException(String message,\n                                             SourceLocator locator) {\n        super(message, locator);\n    }\n\n    /**\n     * Wrap an existing exception in a DTMConfigurationException.\n     *\n     * @param message The error or warning message, or null to\n     *                use the message from the embedded exception.\n     * @param locator The locator object for the error or warning.\n     * @param e Any exception.\n     */\n    public DTMConfigurationException(String message,\n                                             SourceLocator locator,\n                                             Throwable e) {\n        super(message, locator, e);", "functions": [{"function_name": "DTMConfigurationException", "code": "    public DTMConfigurationException() {\n        super(\"Configuration Error\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DTMConfigurationException", "code": "    public DTMConfigurationException(String msg) {\n        super(msg);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DTMConfigurationException", "code": "    public DTMConfigurationException(Throwable e) {\n        super(e);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DTMConfigurationException", "code": "    public DTMConfigurationException(String msg, Throwable e) {\n        super(msg, e);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DTMConfigurationException", "code": "    public DTMConfigurationException(String message,\n                                             SourceLocator locator) {\n        super(message, locator);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DTMConfigurationException", "code": "    public DTMConfigurationException(String message,\n                                             SourceLocator locator,\n                                             Throwable e) {\n        super(message, locator, e);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "poi-2.5-5638", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/WindowOneRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.WindowOneRecord", "code": "public class WindowOneRecord\n    extends Record\n{\n    public final static short     sid = 0x3d;\n\n    private short                 field_3_width;\n    private short                 field_4_height;\n    private short                 field_5_options;\n    static final private BitField hidden   = '';\n    static final private BitField iconic   = '';\n    static final private BitField hscroll  = '';\n    static final private BitField vscroll  = '';\n    static final private BitField tabs     = '';\n\n    private short                 field_6_selected_tab;\n    private short                 field_7_displayed_tab;\n    private short                 field_8_num_selected_tabs;\n    private short                 field_9_tab_width_ratio;\n\n    public WindowOneRecord()\n    {\n    }\n\n    /**\n     * Constructs a WindowOne record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x3d or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public WindowOneRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a WindowOne record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x3d or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public WindowOneRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A WINDOW1 RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_h_hold            = LittleEndian.getShort(data, 0 + offset);\n        field_2_v_hold            = LittleEndian.getShort(data, 2 + offset);\n        field_3_width             = LittleEndian.getShort(data, 4 + offset);\n        field_4_height            = LittleEndian.getShort(data, 6 + offset);\n        field_5_options           = LittleEndian.getShort(data, 8 + offset);\n        field_6_selected_tab      = LittleEndian.getShort(data, 10 + offset);\n        field_7_displayed_tab     = LittleEndian.getShort(data, 12 + offset);\n        field_8_num_selected_tabs = LittleEndian.getShort(data, 14 + offset);\n        field_9_tab_width_ratio   = LittleEndian.getShort(data, 16 + offset);\n    }\n\n    /**\n     * set the horizontal position of the window (in 1/20ths of a point)\n     * @param h - horizontal location\n     */\n\n    public void setHorizontalHold(short h)\n    {\n        field_1_h_hold = h;\n    }\n\n    /**\n     * set the vertical position of the window (in 1/20ths of a point)\n     * @param v - vertical location\n     */\n\n    public void setVerticalHold(short v)\n    {\n        field_2_v_hold = v;\n    }\n\n    /**\n     * set the width of the window\n     * @param w  width\n     */\n\n    public void setWidth(short w)\n    {\n        field_3_width = w;\n    }\n\n    /**\n     * set teh height of the window\n     * @param h  height\n     */\n\n    public void setHeight(short h)\n    {\n        field_4_height = h;\n    }\n\n    /**\n     * set the options bitmask (see bit setters)\n     *\n     * @param o - the bitmask\n     */\n\n    public void setOptions(short o)\n    {\n        field_5_options = o;\n    }\n\n\n    /**\n     * set whether the window is hidden or not\n     * @param ishidden or not\n     */\n\n    public void setHidden(boolean ishidden)\n    {\n        field_5_options = hidden.setShortBoolean(field_5_options, ishidden);\n    }\n\n    /**\n     * set whether the window has been iconized or not\n     * @param isiconic  iconize  or not\n     */\n\n    public void setIconic(boolean isiconic)\n    {\n        field_5_options = iconic.setShortBoolean(field_5_options, isiconic);\n    }\n\n    /**\n     * set whether to display the horizontal scrollbar or not\n     * @param scroll display or not\n     */\n\n    public void setDisplayHorizonalScrollbar(boolean scroll)\n    {\n        field_5_options = hscroll.setShortBoolean(field_5_options, scroll);\n    }\n\n    /**\n     * set whether to display the vertical scrollbar or not\n     * @param scroll  display or not\n     */\n\n    public void setDisplayVerticalScrollbar(boolean scroll)\n    {\n        field_5_options = vscroll.setShortBoolean(field_5_options, scroll);\n    }\n\n    /**\n     * set whether to display the tabs or not\n     * @param disptabs  display or not\n     */\n\n    public void setDisplayTabs(boolean disptabs)\n    {\n        field_5_options = tabs.setShortBoolean(field_5_options, disptabs);\n    }\n\n\n    /**\n     * set the selected tab number\n     * @param s  tab number\n     */\n\n    public void setSelectedTab(short s)\n    {\n        field_6_selected_tab = s;\n    }\n\n    /**\n     * set the displayed tab number\n     * @param t  tab number\n     */\n\n    public void setDisplayedTab(short t)\n    {\n        field_7_displayed_tab = t;\n    }\n\n    /**\n     * set the number of selected tabs\n     * @param n  number of tabs\n     */\n\n    public void setNumSelectedTabs(short n)\n    {\n        field_8_num_selected_tabs = n;\n    }\n\n    /**\n     * ratio of the width of the tabs to the horizontal scrollbar\n     * @param r  ratio\n     */\n\n    public void setTabWidthRatio(short r)\n    {\n        field_9_tab_width_ratio = r;\n    }\n\n    /**\n     * get the horizontal position of the window (in 1/20ths of a point)\n     * @return h - horizontal location\n     */\n\n    public short getHorizontalHold()\n    {\n        return field_1_h_hold;\n    }\n\n    /**\n     * get the vertical position of the window (in 1/20ths of a point)\n     * @return v - vertical location\n     */\n\n    public short getVerticalHold()\n    {\n        return field_2_v_hold;\n    }\n\n    /**\n     * get the width of the window\n     * @return width\n     */\n\n    public short getWidth()\n    {\n        return field_3_width;\n    }\n\n    /**\n     * get the height of the window\n     * @return height\n     */\n\n    public short getHeight()\n    {\n        return field_4_height;\n    }\n\n    /**\n     * get the options bitmask (see bit setters)\n     *\n     * @return o - the bitmask\n     */\n\n    public short getOptions()\n    {\n        return field_5_options;\n    }\n\n\n    /**\n     * get whether the window is hidden or not\n     * @return ishidden or not\n     */\n\n    public boolean getHidden()\n    {\n        return hidden.isSet(field_5_options);\n    }\n\n    /**\n     * get whether the window has been iconized or not\n     * @return iconize  or not\n     */\n\n    public boolean getIconic()\n    {\n        return iconic.isSet(field_5_options);\n    }\n\n    /**\n     * get whether to display the horizontal scrollbar or not\n     * @return display or not\n     */\n\n    public boolean getDisplayHorizontalScrollbar()\n    {\n        return hscroll.isSet(field_5_options);\n    }\n\n    /**\n     * get whether to display the vertical scrollbar or not\n     * @return display or not\n     */\n\n    public boolean getDisplayVerticalScrollbar()\n    {\n        return vscroll.isSet(field_5_options);\n    }\n\n    /**\n     * get whether to display the tabs or not\n     * @return display or not\n     */\n\n    public boolean getDisplayTabs()\n    {\n        return tabs.isSet(field_5_options);\n    }\n\n\n    /**\n     * get the selected tab number\n     * @return Tab number\n     */\n\n    public short getSelectedTab()\n    {\n        return field_6_selected_tab;\n    }\n\n    /**\n     * get the displayed tab number\n     * @return Tab number\n     */\n\n    public short getDisplayedTab()\n    {\n        return field_7_displayed_tab;\n    }\n\n    /**\n     * get the number of selected tabs\n     * @return number of tabs\n     */\n\n    public short getNumSelectedTabs()\n    {\n        return field_8_num_selected_tabs;\n    }\n\n    /**\n     * ratio of the width of the tabs to the horizontal scrollbar\n     * @return ratio\n     */\n\n    public short getTabWidthRatio()\n    {\n        return field_9_tab_width_ratio;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[WINDOW1]\\n\");\n        buffer.append(\"    .h_hold          = \")\n            .append(Integer.toHexString(getHorizontalHold())).append(\"\\n\");\n        buffer.append(\"    .v_hold          = \")\n            .append(Integer.toHexString(getVerticalHold())).append(\"\\n\");\n        buffer.append(\"    .width           = \")\n            .append(Integer.toHexString(getWidth())).append(\"\\n\");\n        buffer.append(\"    .height          = \")\n            .append(Integer.toHexString(getHeight())).append(\"\\n\");\n        buffer.append(\"    .options         = \")\n            .append(Integer.toHexString(getOptions())).append(\"\\n\");\n        buffer.append(\"        .hidden      = \").append(getHidden())\n            .append(\"\\n\");\n        buffer.append(\"        .iconic      = \").append(getIconic())\n            .append(\"\\n\");\n        buffer.append(\"        .hscroll     = \")\n            .append(getDisplayHorizontalScrollbar()).append(\"\\n\");\n        buffer.append(\"        .vscroll     = \")\n            .append(getDisplayVerticalScrollbar()).append(\"\\n\");\n        buffer.append(\"        .tabs        = \").append(getDisplayTabs())\n            .append(\"\\n\");\n        buffer.append(\"    .selectedtab     = \")\n            .append(Integer.toHexString(getSelectedTab())).append(\"\\n\");\n        buffer.append(\"    .displayedtab    = \")\n            .append(Integer.toHexString(getDisplayedTab())).append(\"\\n\");\n        buffer.append(\"    .numselectedtabs = \")\n            .append(Integer.toHexString(getNumSelectedTabs())).append(\"\\n\");\n        buffer.append(\"    .tabwidthratio   = \")\n            .append(Integer.toHexString(getTabWidthRatio())).append(\"\\n\");\n        buffer.append(\"[/WINDOW1]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getHorizontalHold());\n        LittleEndian.putShort(data, 6 + offset, getVerticalHold());\n        LittleEndian.putShort(data, 8 + offset, getWidth());\n        LittleEndian.putShort(data, 10 + offset, getHeight());\n        LittleEndian.putShort(data, 12 + offset, getOptions());\n        LittleEndian.putShort(data, 14 + offset, getSelectedTab());\n        LittleEndian.putShort(data, 16 + offset, getDisplayedTab());\n        LittleEndian.putShort(data, 18 + offset, getNumSelectedTabs());\n        LittleEndian.putShort(data, 20 + offset, getTabWidthRatio());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 22;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A WINDOW1 RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_h_hold            = LittleEndian.getShort(data, 0 + offset);\n        field_2_v_hold            = LittleEndian.getShort(data, 2 + offset);\n        field_3_width             = LittleEndian.getShort(data, 4 + offset);\n        field_4_height            = LittleEndian.getShort(data, 6 + offset);\n        field_5_options           = LittleEndian.getShort(data, 8 + offset);\n        field_6_selected_tab      = LittleEndian.getShort(data, 10 + offset);\n        field_7_displayed_tab     = LittleEndian.getShort(data, 12 + offset);\n        field_8_num_selected_tabs = LittleEndian.getShort(data, 14 + offset);\n        field_9_tab_width_ratio   = LittleEndian.getShort(data, 16 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [9, 18], [10, 19], [11, 20], [12, 21], [13, 22], [14, 23], [15, 24], [16, 25], [17, 26], [18, 27], [19, 28], [20, 29], [21, 30], [22, 31], [23, 32], [24, 33], [25, 34], [26, 35], [27, 36], [28, 37], [29, 38], [30, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 9], [19, 10], [20, 11], [21, 12], [22, 13], [23, 14], [24, 15], [25, 16], [26, 17], [27, 18], [28, 19], [29, 20], [30, 21], [31, 22], [32, 23], [33, 24], [34, 25], [35, 26], [36, 27], [37, 28], [38, 29], [39, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "setHorizontalHold", "code": "    public void setHorizontalHold(short h)\n    {\n        field_1_h_hold = h;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVerticalHold", "code": "    public void setVerticalHold(short v)\n    {\n        field_2_v_hold = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setWidth", "code": "    public void setWidth(short w)\n    {\n        field_3_width = w;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHeight", "code": "    public void setHeight(short h)\n    {\n        field_4_height = h;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOptions", "code": "    public void setOptions(short o)\n    {\n        field_5_options = o;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHidden", "code": "    public void setHidden(boolean ishidden)\n    {\n        field_5_options = hidden.setShortBoolean(field_5_options, ishidden);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIconic", "code": "    public void setIconic(boolean isiconic)\n    {\n        field_5_options = iconic.setShortBoolean(field_5_options, isiconic);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDisplayHorizonalScrollbar", "code": "    public void setDisplayHorizonalScrollbar(boolean scroll)\n    {\n        field_5_options = hscroll.setShortBoolean(field_5_options, scroll);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDisplayVerticalScrollbar", "code": "    public void setDisplayVerticalScrollbar(boolean scroll)\n    {\n        field_5_options = vscroll.setShortBoolean(field_5_options, scroll);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDisplayTabs", "code": "    public void setDisplayTabs(boolean disptabs)\n    {\n        field_5_options = tabs.setShortBoolean(field_5_options, disptabs);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSelectedTab", "code": "    public void setSelectedTab(short s)\n    {\n        field_6_selected_tab = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDisplayedTab", "code": "    public void setDisplayedTab(short t)\n    {\n        field_7_displayed_tab = t;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNumSelectedTabs", "code": "    public void setNumSelectedTabs(short n)\n    {\n        field_8_num_selected_tabs = n;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTabWidthRatio", "code": "    public void setTabWidthRatio(short r)\n    {\n        field_9_tab_width_ratio = r;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHorizontalHold", "code": "    public short getHorizontalHold()\n    {\n        return field_1_h_hold;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getVerticalHold", "code": "    public short getVerticalHold()\n    {\n        return field_2_v_hold;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getWidth", "code": "    public short getWidth()\n    {\n        return field_3_width;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHeight", "code": "    public short getHeight()\n    {\n        return field_4_height;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOptions", "code": "    public short getOptions()\n    {\n        return field_5_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHidden", "code": "    public boolean getHidden()\n    {\n        return hidden.isSet(field_5_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIconic", "code": "    public boolean getIconic()\n    {\n        return iconic.isSet(field_5_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDisplayHorizontalScrollbar", "code": "    public boolean getDisplayHorizontalScrollbar()\n    {\n        return hscroll.isSet(field_5_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDisplayVerticalScrollbar", "code": "    public boolean getDisplayVerticalScrollbar()\n    {\n        return vscroll.isSet(field_5_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDisplayTabs", "code": "    public boolean getDisplayTabs()\n    {\n        return tabs.isSet(field_5_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSelectedTab", "code": "    public short getSelectedTab()\n    {\n        return field_6_selected_tab;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDisplayedTab", "code": "    public short getDisplayedTab()\n    {\n        return field_7_displayed_tab;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumSelectedTabs", "code": "    public short getNumSelectedTabs()\n    {\n        return field_8_num_selected_tabs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTabWidthRatio", "code": "    public short getTabWidthRatio()\n    {\n        return field_9_tab_width_ratio;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[WINDOW1]\\n\");\n        buffer.append(\"    .h_hold          = \")\n            .append(Integer.toHexString(getHorizontalHold())).append(\"\\n\");\n        buffer.append(\"    .v_hold          = \")\n            .append(Integer.toHexString(getVerticalHold())).append(\"\\n\");\n        buffer.append(\"    .width           = \")\n            .append(Integer.toHexString(getWidth())).append(\"\\n\");\n        buffer.append(\"    .height          = \")\n            .append(Integer.toHexString(getHeight())).append(\"\\n\");\n        buffer.append(\"    .options         = \")\n            .append(Integer.toHexString(getOptions())).append(\"\\n\");\n        buffer.append(\"        .hidden      = \").append(getHidden())\n            .append(\"\\n\");\n        buffer.append(\"        .iconic      = \").append(getIconic())\n            .append(\"\\n\");\n        buffer.append(\"        .hscroll     = \")\n            .append(getDisplayHorizontalScrollbar()).append(\"\\n\");\n        buffer.append(\"        .vscroll     = \")\n            .append(getDisplayVerticalScrollbar()).append(\"\\n\");\n        buffer.append(\"        .tabs        = \").append(getDisplayTabs())\n            .append(\"\\n\");\n        buffer.append(\"    .selectedtab     = \")\n            .append(Integer.toHexString(getSelectedTab())).append(\"\\n\");\n        buffer.append(\"    .displayedtab    = \")\n            .append(Integer.toHexString(getDisplayedTab())).append(\"\\n\");\n        buffer.append(\"    .numselectedtabs = \")\n            .append(Integer.toHexString(getNumSelectedTabs())).append(\"\\n\");\n        buffer.append(\"    .tabwidthratio   = \")\n            .append(Integer.toHexString(getTabWidthRatio())).append(\"\\n\");\n        buffer.append(\"[/WINDOW1]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [4, 20], [5, 21], [5, 22], [5, 23], [6, 24], [6, 25], [6, 26], [7, 27], [7, 28], [7, 29], [8, 30], [8, 31], [8, 32], [9, 33], [9, 34], [9, 35], [10, 36], [10, 37], [10, 38], [11, 39], [11, 40], [11, 41], [12, 42], [12, 43], [12, 44], [13, 45], [13, 46], [13, 47], [14, 48], [14, 49], [14, 50], [15, 51], [15, 52], [15, 53], [16, 54], [16, 55], [16, 56], [17, 57], [17, 58], [17, 59], [18, 60], [18, 61], [18, 62], [19, 63], [2, 64], [22, 65], [23, 66], [25, 67], [26, 68], [28, 69], [29, 70], [31, 71], [32, 72], [34, 73], [35, 74], [37, 75], [38, 76], [40, 77], [41, 78], [43, 79], [44, 80], [46, 81], [47, 82], [49, 83], [50, 84], [52, 85], [53, 86], [55, 87], [56, 88], [58, 89], [59, 90], [61, 91], [62, 92], [66, 93], [68, 94], [70, 95], [72, 96], [84, 97], [86, 98], [88, 99], [90, 100], [92, 101], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 4], [21, 5], [22, 5], [23, 5], [24, 6], [25, 6], [26, 6], [27, 7], [28, 7], [29, 7], [30, 8], [31, 8], [32, 8], [33, 9], [34, 9], [35, 9], [36, 10], [37, 10], [38, 10], [39, 11], [40, 11], [41, 11], [42, 12], [43, 12], [44, 12], [45, 13], [46, 13], [47, 13], [48, 14], [49, 14], [50, 14], [51, 15], [52, 15], [53, 15], [54, 16], [55, 16], [56, 16], [57, 17], [58, 17], [59, 17], [60, 18], [61, 18], [62, 18], [63, 19], [64, 2], [65, 22], [66, 23], [67, 25], [68, 26], [69, 28], [70, 29], [71, 31], [72, 32], [73, 34], [74, 35], [75, 37], [76, 38], [77, 40], [78, 41], [79, 43], [80, 44], [81, 46], [82, 47], [83, 49], [84, 50], [85, 52], [86, 53], [87, 55], [88, 56], [89, 58], [90, 59], [91, 61], [92, 62], [93, 66], [94, 68], [95, 70], [96, 72], [97, 84], [98, 86], [99, 88], [100, 90], [101, 92], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getHorizontalHold());\n        LittleEndian.putShort(data, 6 + offset, getVerticalHold());\n        LittleEndian.putShort(data, 8 + offset, getWidth());\n        LittleEndian.putShort(data, 10 + offset, getHeight());\n        LittleEndian.putShort(data, 12 + offset, getOptions());\n        LittleEndian.putShort(data, 14 + offset, getSelectedTab());\n        LittleEndian.putShort(data, 16 + offset, getDisplayedTab());\n        LittleEndian.putShort(data, 18 + offset, getNumSelectedTabs());\n        LittleEndian.putShort(data, 20 + offset, getTabWidthRatio());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [5, 16], [5, 17], [6, 18], [6, 19], [7, 20], [7, 21], [8, 22], [8, 23], [9, 24], [9, 25], [10, 26], [10, 27], [11, 28], [11, 29], [12, 30], [12, 31], [13, 32], [13, 33], [14, 34], [15, 35], [17, 36], [19, 37], [21, 38], [23, 39], [25, 40], [27, 41], [29, 42], [31, 43], [33, 44], [34, 45], [35, 46], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 5], [17, 5], [18, 6], [19, 6], [20, 7], [21, 7], [22, 8], [23, 8], [24, 9], [25, 9], [26, 10], [27, 10], [28, 11], [29, 11], [30, 12], [31, 12], [32, 13], [33, 13], [34, 14], [35, 15], [36, 17], [37, 19], [38, 21], [39, 23], [40, 25], [41, 27], [42, 29], [43, 31], [44, 33], [45, 34], [46, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 22;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "WindowOneRecord", "code": "    public WindowOneRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "WindowOneRecord", "code": "    public WindowOneRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "WindowOneRecord", "code": "    public WindowOneRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.4-6557", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xpath/patterns/ContextMatchStepPattern.java", "language": "java", "name": "org.apache.xpath.patterns.ContextMatchStepPattern", "code": "public class ContextMatchStepPattern extends StepPattern\n{\n\n  /**\n   * Construct a ContextMatchStepPattern.\n   *\n   * @param whatToShow Bit set defined mainly by {@link org.w3c.dom.traversal.NodeFilter}.\n   */\n  public ContextMatchStepPattern(int axis, int paxis)\n  {\n    super(DTMFilter.SHOW_ALL, axis, paxis);\n  }\n\n  /**\n   * Execute this pattern step, including predicates.\n   *\n   *\n   * @param xctxt XPath runtime context.\n   *\n   * @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_QNAME}, or\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_OTHER}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n\n    if (xctxt.getIteratorRoot() == xctxt.getCurrentNode())\n      return getStaticScore();\n    else\n      return this.SCORE_NONE;\n  }\n  \n  /**\n   * Execute the match pattern step relative to another step.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   * NEEDSDOC @param prevStep\n   *\n   * @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_QNAME}, or\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_OTHER}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject executeRelativePathPattern(\n          XPathContext xctxt, StepPattern prevStep)\n            throws javax.xml.transform.TransformerException\n  {\n\n    XObject score = NodeTest.SCORE_NONE;\n    int context = xctxt.getCurrentNode();\n    DTM dtm = xctxt.getDTM(context);\n\n    if (null != dtm)\n    {\n      int predContext = xctxt.getCurrentNode();\n      DTMAxisTraverser traverser;\n      \n      int axis = m_axis;\n      \n      boolean needToTraverseAttrs = WalkerFactory.isDownwardAxisOfMany(axis);\n      boolean iterRootIsAttr = (dtm.getNodeType(xctxt.getIteratorRoot()) \n                                 == DTM.ATTRIBUTE_NODE);\n\n      if((Axis.PRECEDING == axis) && iterRootIsAttr)\n      {\n        axis = Axis.PRECEDINGANDANCESTOR;\n      }\n      \n      traverser = dtm.getAxisTraverser(axis);\n\n      for (int relative = traverser.first(context); DTM.NULL != relative;\n              relative = traverser.next(context, relative))\n      {\n        try\n        {\n          xctxt.pushCurrentNode(relative);\n\n          score = execute(xctxt);\n\n          if (score != NodeTest.SCORE_NONE)\n          {\n\t      if (executePredicates(xctxt, dtm, context))\n\t\t  return score;\n\t      \n\t      score = NodeTest.SCORE_NONE;\n          }\n          \n          if(needToTraverseAttrs && iterRootIsAttr\n             && (DTM.ELEMENT_NODE == dtm.getNodeType(relative)))\n          {\n            int xaxis = Axis.ATTRIBUTE;\n            for (int i = 0; i < 2; i++) \n            {            \n              DTMAxisTraverser atraverser = dtm.getAxisTraverser(xaxis);\n        \n              for (int arelative = atraverser.first(relative); \n                      DTM.NULL != arelative;\n                      arelative = atraverser.next(relative, arelative))\n              {\n                try\n                {\n                  xctxt.pushCurrentNode(arelative);\n        \n                  score = execute(xctxt);\n        \n                  if (score != NodeTest.SCORE_NONE)\n                  {\n        \n                    if (score != NodeTest.SCORE_NONE)\n                      return score;\n                  }\n                }\n                finally\n                {\n                  xctxt.popCurrentNode();\n                }\n              }\n              xaxis = Axis.NAMESPACE;\n            }\n          }\n\n        }\n        finally\n        {\n          xctxt.popCurrentNode();\n        }\n      }\n\n    }\n\n    return score;", "functions": [{"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n\n    if (xctxt.getIteratorRoot() == xctxt.getCurrentNode())\n      return getStaticScore();\n    else\n      return this.SCORE_NONE;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "executeRelativePathPattern", "code": "  public XObject executeRelativePathPattern(\n          XPathContext xctxt, StepPattern prevStep)\n            throws javax.xml.transform.TransformerException\n  {\n\n    XObject score = NodeTest.SCORE_NONE;\n    int context = xctxt.getCurrentNode();\n    DTM dtm = xctxt.getDTM(context);\n\n    if (null != dtm)\n    {\n      int predContext = xctxt.getCurrentNode();\n      DTMAxisTraverser traverser;\n      \n      int axis = m_axis;\n      \n      boolean needToTraverseAttrs = WalkerFactory.isDownwardAxisOfMany(axis);\n      boolean iterRootIsAttr = (dtm.getNodeType(xctxt.getIteratorRoot()) \n                                 == DTM.ATTRIBUTE_NODE);\n\n      if((Axis.PRECEDING == axis) && iterRootIsAttr)\n      {\n        axis = Axis.PRECEDINGANDANCESTOR;\n      }\n      \n      traverser = dtm.getAxisTraverser(axis);\n\n      for (int relative = traverser.first(context); DTM.NULL != relative;\n              relative = traverser.next(context, relative))\n      {\n        try\n        {\n          xctxt.pushCurrentNode(relative);\n\n          score = execute(xctxt);\n\n          if (score != NodeTest.SCORE_NONE)\n          {\n\t      if (executePredicates(xctxt, dtm, context))\n\t\t  return score;\n\t      \n\t      score = NodeTest.SCORE_NONE;\n          }\n          \n          if(needToTraverseAttrs && iterRootIsAttr\n             && (DTM.ELEMENT_NODE == dtm.getNodeType(relative)))\n          {\n            int xaxis = Axis.ATTRIBUTE;\n            for (int i = 0; i < 2; i++) \n            {            \n              DTMAxisTraverser atraverser = dtm.getAxisTraverser(xaxis);\n        \n              for (int arelative = atraverser.first(relative); \n                      DTM.NULL != arelative;\n                      arelative = atraverser.next(relative, arelative))\n              {\n                try\n                {\n                  xctxt.pushCurrentNode(arelative);\n        \n                  score = execute(xctxt);\n        \n                  if (score != NodeTest.SCORE_NONE)\n                  {\n        \n                    if (score != NodeTest.SCORE_NONE)\n                      return score;\n                  }\n                }\n                finally\n                {\n                  xctxt.popCurrentNode();\n                }\n              }\n              xaxis = Axis.NAMESPACE;\n            }\n          }\n\n        }\n        finally\n        {\n          xctxt.popCurrentNode();\n        }\n      }\n\n    }\n\n    return score;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "TRY", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "IF", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "ASSIGN", "RETURN", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "CALL", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "IF", "CALL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [4, 18], [9, 19], [9, 20], [2, 21], [10, 22], [9, 23], [19, 24], [21, 25], [22, 26], [11, 27], [12, 28], [15, 29], [23, 30], [23, 31], [9, 32], [10, 33], [27, 34], [23, 35], [30, 36], [31, 37], [23, 38], [23, 39], [34, 40], [30, 41], [30, 42], [36, 43], [36, 44], [31, 45], [38, 46], [41, 47], [43, 48], [31, 49], [45, 50], [45, 51], [41, 52], [41, 53], [47, 54], [41, 55], [52, 56], [52, 57], [41, 58], [52, 59], [56, 60], [53, 61], [59, 62], [52, 63], [59, 64], [62, 65], [59, 66], [59, 67], [62, 68], [66, 69], [68, 70], [68, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 4], [19, 9], [20, 9], [21, 2], [22, 10], [23, 9], [24, 19], [25, 21], [26, 22], [27, 11], [28, 12], [29, 15], [30, 23], [31, 23], [32, 9], [33, 10], [34, 27], [35, 23], [36, 30], [37, 31], [38, 23], [39, 23], [40, 34], [41, 30], [42, 30], [43, 36], [44, 36], [45, 31], [46, 38], [47, 41], [48, 43], [49, 31], [50, 45], [51, 45], [52, 41], [53, 41], [54, 47], [55, 41], [56, 52], [57, 52], [58, 41], [59, 52], [60, 56], [61, 53], [62, 59], [63, 52], [64, 59], [65, 62], [66, 59], [67, 59], [68, 62], [69, 66], [70, 68], [71, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "ContextMatchStepPattern", "code": "  public ContextMatchStepPattern(int axis, int paxis)\n  {\n    super(DTMFilter.SHOW_ALL, axis, paxis);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6490", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/IdKeyPattern.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.IdKeyPattern", "code": "abstract class IdKeyPattern extends LocationPathPattern {\n\n    protected RelativePathPattern _left = null;;\n    private String _index = null;\n    private String _value = null;;\n\n    public IdKeyPattern(String index, String value) {\n\t_index = index;\n\t_value = value;\n    }\n\n    public String getIndexName() {\n\treturn(_index);\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn Type.NodeSet;\n    }\n    \n    public boolean isWildcard() {\n\treturn false;\n    }\n    \n    public void setLeft(RelativePathPattern left) {\n\t_left = left;\n    }\n\n    public StepPattern getKernelPattern() {\n\treturn(null);\n    }\n    \n    public void reduceKernelPattern() { }\n\n    public String toString() {\n\treturn \"id/keyPattern(\" + _index + \", \" + _value + ')';\n    }\n\n    /**\n     * This method is called when the constructor is compiled in\n     * Stylesheet.compileConstructor() and not as the syntax tree is traversed.\n     */\n    public void translate(ClassGenerator classGen,\n\t\t\t  MethodGenerator methodGen) {\n\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tfinal int getKeyIndex = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t \"getKeyIndex\",\n\t\t\t\t\t\t \"(Ljava/lang/String;)\"+\n\t\t\t\t\t\t KEY_INDEX_SIG);\n\t\n\tfinal int lookupId = cpg.addMethodref(KEY_INDEX_CLASS,\n\t\t\t\t\t      \"containsID\",\n\t\t\t\t\t      \"(ILjava/lang/Object;)I\");\n\tfinal int lookupKey = cpg.addMethodref(KEY_INDEX_CLASS,\n\t\t\t\t\t       \"containsKey\",\n\t\t\t\t\t       \"(ILjava/lang/Object;)I\");\n\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg,_index));\n\til.append(new INVOKEVIRTUAL(getKeyIndex));\n\t\n\til.append(SWAP);\n\til.append(new PUSH(cpg,_value));\n\tif (this instanceof IdPattern)\n\t    il.append(new INVOKEVIRTUAL(lookupId));\n\telse\n\t    il.append(new INVOKEVIRTUAL(lookupKey));\n\n\t_trueList.add(il.append(new IFNE(null)));\n\t_falseList.add(il.append(new GOTO(null)));", "functions": [{"function_name": "getIndexName", "code": "    public String getIndexName() {\n\treturn(_index);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn Type.NodeSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isWildcard", "code": "    public boolean isWildcard() {\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLeft", "code": "    public void setLeft(RelativePathPattern left) {\n\t_left = left;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getKernelPattern", "code": "    public StepPattern getKernelPattern() {\n\treturn(null);", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "reduceKernelPattern", "code": "    public void reduceKernelPattern() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"id/keyPattern(\" + _index + \", \" + _value + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen,\n\t\t\t  MethodGenerator methodGen) {\n\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tfinal int getKeyIndex = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t \"getKeyIndex\",\n\t\t\t\t\t\t \"(Ljava/lang/String;)\"+\n\t\t\t\t\t\t KEY_INDEX_SIG);\n\t\n\tfinal int lookupId = cpg.addMethodref(KEY_INDEX_CLASS,\n\t\t\t\t\t      \"containsID\",\n\t\t\t\t\t      \"(ILjava/lang/Object;)I\");\n\tfinal int lookupKey = cpg.addMethodref(KEY_INDEX_CLASS,\n\t\t\t\t\t       \"containsKey\",\n\t\t\t\t\t       \"(ILjava/lang/Object;)I\");\n\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg,_index));\n\til.append(new INVOKEVIRTUAL(getKeyIndex));\n\t\n\til.append(SWAP);\n\til.append(new PUSH(cpg,_value));\n\tif (this instanceof IdPattern)\n\t    il.append(new INVOKEVIRTUAL(lookupId));\n\telse\n\t    il.append(new INVOKEVIRTUAL(lookupKey));\n\n\t_trueList.add(il.append(new IFNE(null)));\n\t_falseList.add(il.append(new GOTO(null)));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [9, 17], [10, 18], [1, 19], [1, 20], [12, 21], [14, 22], [15, 23], [16, 24], [2, 25], [3, 26], [4, 27], [5, 28], [6, 29], [17, 30], [18, 31], [19, 32], [20, 33], [25, 34], [25, 35], [26, 36], [26, 37], [27, 38], [27, 39], [30, 40], [31, 41], [38, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 9], [18, 10], [19, 1], [20, 1], [21, 12], [22, 14], [23, 15], [24, 16], [25, 2], [26, 3], [27, 4], [28, 5], [29, 6], [30, 17], [31, 18], [32, 19], [33, 20], [34, 25], [35, 25], [36, 26], [37, 26], [38, 27], [39, 27], [40, 30], [41, 31], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "IdKeyPattern", "code": "    public IdKeyPattern(String index, String value) {\n\t_index = index;\n\t_value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.0-1518", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/NoTypeConversionAvailableException.java", "language": "java", "name": "org.apache.camel.NoTypeConversionAvailableException", "code": "public class NoTypeConversionAvailableException extends RuntimeCamelException {\n    private final Object value;\n    private final Class type;\n\n    public NoTypeConversionAvailableException(Object value, Class type) {\n        super(\"No converter available to convert value: \" + value + \" to the required type: \" + type.getName());\n        this.value = value;\n        this.type = type;\n    }\n\n    /**\n     * Returns the value which could not be converted\n     *\n     * @return the value that could not be converted\n     */\n    public Object getValue() {\n        return value;\n    }\n\n    /**\n     * Returns the required type\n     *\n     * @return the required type\n     */\n    public Class getType() {\n        return type;", "functions": [{"function_name": "getValue", "code": "    public Object getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public Class getType() {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "NoTypeConversionAvailableException", "code": "    public NoTypeConversionAvailableException(Object value, Class type) {\n        super(\"No converter available to convert value: \" + value + \" to the required type: \" + type.getName());\n        this.value = value;\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [5, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 5], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "ant-1.7-1242", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/sos/SOSLabel.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.sos.SOSLabel", "code": "public class SOSLabel extends SOS {\n\n    /**\n     * The version number to label.\n     *\n     * @param  version  The new version value\n     */\n    public void setVersion(String version) {\n        super.setInternalVersion(version);\n    }\n\n    /**\n     * The label to apply the the files in SourceSafe.\n     *\n     * @param  label  The new label value\n     *\n     * @ant.attribute group=\"required\"\n     */\n    public void setLabel(String label) {\n        super.setInternalLabel(label);\n    }\n\n    /**\n     * The comment to apply to all files being labelled.\n     *\n     * @param  comment  The new comment value\n     */\n    public void setComment(String comment) {\n        super.setInternalComment(comment);\n    }\n\n    /**\n     *  Build the command line <br>\n     *  AddLabel required parameters: -server -name -password -database -project -label<br>\n     *  AddLabel optional parameters: -verbose -comment<br>\n     *\n     * @return    Commandline the generated command to be executed\n     */\n    protected Commandline buildCmdLine() {\n        commandLine = new Commandline();\n\n        commandLine.createArgument().setValue(SOSCmd.FLAG_COMMAND);\n        commandLine.createArgument().setValue(SOSCmd.COMMAND_LABEL);\n\n        getRequiredAttributes();\n\n        if (getLabel() == null) {\n            throw new BuildException(\"label attribute must be set!\", getLocation());\n        }\n        commandLine.createArgument().setValue(SOSCmd.FLAG_LABEL);\n        commandLine.createArgument().setValue(getLabel());\n\n        commandLine.createArgument().setValue(getVerbose());\n        if (getComment() != null) {\n            commandLine.createArgument().setValue(SOSCmd.FLAG_COMMENT);\n            commandLine.createArgument().setValue(getComment());\n        }\n        return commandLine;", "functions": [{"function_name": "setVersion", "code": "    public void setVersion(String version) {\n        super.setInternalVersion(version);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLabel", "code": "    public void setLabel(String label) {\n        super.setInternalLabel(label);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setComment", "code": "    public void setComment(String comment) {\n        super.setInternalComment(comment);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "buildCmdLine", "code": "    protected Commandline buildCmdLine() {\n        commandLine = new Commandline();\n\n        commandLine.createArgument().setValue(SOSCmd.FLAG_COMMAND);\n        commandLine.createArgument().setValue(SOSCmd.COMMAND_LABEL);\n\n        getRequiredAttributes();\n\n        if (getLabel() == null) {\n            throw new BuildException(\"label attribute must be set!\", getLocation());\n        }\n        commandLine.createArgument().setValue(SOSCmd.FLAG_LABEL);\n        commandLine.createArgument().setValue(getLabel());\n\n        commandLine.createArgument().setValue(getVerbose());\n        if (getComment() != null) {\n            commandLine.createArgument().setValue(SOSCmd.FLAG_COMMENT);\n            commandLine.createArgument().setValue(getComment());\n        }\n        return commandLine;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [0, 6], [0, 7], [3, 8], [0, 9], [0, 10], [0, 11], [0, 12], [4, 13], [4, 14], [5, 15], [6, 16], [7, 17], [3, 18], [8, 19], [8, 20], [10, 21], [11, 22], [12, 23], [2, 24], [2, 25], [15, 26], [16, 27], [18, 28], [24, 29], [25, 30], [28, 31], [28, 32], [29, 33], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 0], [7, 0], [8, 3], [9, 0], [10, 0], [11, 0], [12, 0], [13, 4], [14, 4], [15, 5], [16, 6], [17, 7], [18, 3], [19, 8], [20, 8], [21, 10], [22, 11], [23, 12], [24, 2], [25, 2], [26, 15], [27, 16], [28, 18], [29, 24], [30, 25], [31, 28], [32, 28], [33, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}], "label": 0}
{"sample_id": "xalan-2.4-6689", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/Comment.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Comment", "code": "final class Comment extends Instruction {\n\n    public void parseContents(Parser parser) {\n\tparseChildren(parser);\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\ttypeCheckContents(stable);\n\treturn Type.String;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadHandler());\n\n\til.append(classGen.loadTranslet());\n\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t       \"stringValueHandler\",\n\t\t\t\t\t       STRING_VALUE_HANDLER_SIG)));\n\til.append(DUP);\n\til.append(methodGen.storeHandler());\n\n\ttranslateContents(classGen, methodGen);\n\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(STRING_VALUE_HANDLER,\n\t\t\t\t\t\t     \"getValue\",\n\t\t\t\t\t\t     \"()\" + STRING_SIG)));\n\tfinal int comment =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"comment\", \n\t\t\t\t      \"(\" + STRING_SIG + \")V\");\n\til.append(new INVOKEINTERFACE(comment, 2));\n\til.append(methodGen.storeHandler());", "functions": [{"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\ttypeCheckContents(stable);\n\treturn Type.String;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadHandler());\n\n\til.append(classGen.loadTranslet());\n\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t       \"stringValueHandler\",\n\t\t\t\t\t       STRING_VALUE_HANDLER_SIG)));\n\til.append(DUP);\n\til.append(methodGen.storeHandler());\n\n\ttranslateContents(classGen, methodGen);\n\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(STRING_VALUE_HANDLER,\n\t\t\t\t\t\t     \"getValue\",\n\t\t\t\t\t\t     \"()\" + STRING_SIG)));\n\tfinal int comment =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"comment\", \n\t\t\t\t      \"(\" + STRING_SIG + \")V\");\n\til.append(new INVOKEINTERFACE(comment, 2));\n\til.append(methodGen.storeHandler());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [6, 15], [7, 16], [1, 17], [8, 18], [10, 19], [12, 20], [13, 21], [14, 22], [2, 23], [3, 24], [16, 25], [17, 26], [17, 27], [18, 28], [20, 29], [26, 30], [26, 31], [28, 32], [28, 33], [29, 34], [31, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 6], [16, 7], [17, 1], [18, 8], [19, 10], [20, 12], [21, 13], [22, 14], [23, 2], [24, 3], [25, 16], [26, 17], [27, 17], [28, 18], [29, 20], [30, 26], [31, 26], [32, 28], [33, 28], [34, 29], [35, 31], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}], "label": 0}
{"sample_id": "jedit-4.1-4043", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "gnu/regexp/RETokenChar.java", "language": "java", "name": "gnu.regexp.RETokenChar", "code": "final class RETokenChar extends REToken {\n  private char[] ch;\n  private boolean insens;\n\n  RETokenChar(int subIndex, char c, boolean ins) {\n    super(subIndex);\n    ch = new char [1];\n    ch[0] = (insens = ins) ? Character.toLowerCase(c) : c;\n  }\n\n  int getMinimumLength() {\n    return ch.length;\n  }\n  \n    boolean match(CharIndexed input, REMatch mymatch) {\n\tint z = ch.length;\n\tchar c;\n\tfor (int i=0; i<z; i++) {\n\t    c = input.charAt(mymatch.index+i);\n\t    if (( (insens) ? Character.toLowerCase(c) : c ) != ch[i]) {\n\t\treturn false;\n\t    }\n\t}\n\tmymatch.index += z;\n\n\treturn next(input, mymatch);\n    }\n\n  // Overrides REToken.chain() to optimize for strings\n  boolean chain(REToken next) {\n    if (next instanceof RETokenChar) {\n      RETokenChar cnext = (RETokenChar) next;\n      // assume for now that next can only be one character\n      int newsize = ch.length + cnext.ch.length;\n      \n      char[] chTemp = new char [newsize];\n      \n      System.arraycopy(ch,0,chTemp,0,ch.length);\n      System.arraycopy(cnext.ch,0,chTemp,ch.length,cnext.ch.length);\n      \n      ch = chTemp;\n      return false;\n    } else return super.chain(next);\n  }\n\n  void dump(StringBuffer os) {\n    os.append(ch);", "functions": [{"function_name": "getMinimumLength", "code": "  int getMinimumLength() {\n    return ch.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\tint z = ch.length;\n\tchar c;\n\tfor (int i=0; i<z; i++) {\n\t    c = input.charAt(mymatch.index+i);\n\t    if (( (insens) ? Character.toLowerCase(c) : c ) != ch[i]) {\n\t\treturn false;\n\t    }\n\t}\n\tmymatch.index += z;\n\n\treturn next(input, mymatch);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [2, 10], [10, 11], [2, 12], [2, 13], [10, 14], [11, 15], [12, 16], [14, 17], [15, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 2], [11, 10], [12, 2], [13, 2], [14, 10], [15, 11], [16, 12], [17, 14], [18, 15], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "chain", "code": "  boolean chain(REToken next) {\n    if (next instanceof RETokenChar) {\n      RETokenChar cnext = (RETokenChar) next;\n      // assume for now that next can only be one character\n      int newsize = ch.length + cnext.ch.length;\n      \n      char[] chTemp = new char [newsize];\n      \n      System.arraycopy(ch,0,chTemp,0,ch.length);\n      System.arraycopy(cnext.ch,0,chTemp,ch.length,cnext.ch.length);\n      \n      ch = chTemp;\n      return false;\n    } else return super.chain(next);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [1, 10], [1, 11], [1, 12], [11, 13], [12, 14], [12, 15], [7, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 1], [11, 1], [12, 1], [13, 11], [14, 12], [15, 12], [16, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "dump", "code": "  void dump(StringBuffer os) {\n    os.append(ch);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RETokenChar", "code": "  RETokenChar(int subIndex, char c, boolean ins) {\n    super(subIndex);\n    ch = new char [1];\n    ch[0] = (insens = ins) ? Character.toLowerCase(c) : c;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "COND_EXPR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [6, 7], [6, 8], [5, 9], [4, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 6], [8, 6], [9, 5], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "ant-1.6-629", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/tar/TarOutputStream.java", "language": "java", "name": "org.apache.tools.tar.TarOutputStream", "code": "public class TarOutputStream extends FilterOutputStream {\n    /** Fail if a long file name is required in the archive. */\n    public static final int LONGFILE_ERROR = 0;\n\n    /** Long paths will be truncated in the archive. */\n    public static final int LONGFILE_TRUNCATE = 1;\n\n    /** GNU tar extensions are used to store long file names in the archive. */\n    public static final int LONGFILE_GNU = 2;\n\n    protected boolean   debug;\n    protected int       currSize;\n    protected int       currBytes;\n    protected byte[]    oneBuf;\n    protected byte[]    recordBuf;\n    protected int       assemLen;\n    protected byte[]    assemBuf;\n    protected TarBuffer buffer;\n    protected int       longFileMode = LONGFILE_ERROR;\n\n    public TarOutputStream(OutputStream os) {\n        this(os, TarBuffer.DEFAULT_BLKSIZE, TarBuffer.DEFAULT_RCDSIZE);\n    }\n\n    public TarOutputStream(OutputStream os, int blockSize) {\n        this(os, blockSize, TarBuffer.DEFAULT_RCDSIZE);\n    }\n\n    public TarOutputStream(OutputStream os, int blockSize, int recordSize) {\n        super(os);\n\n        this.buffer = new TarBuffer(os, blockSize, recordSize);\n        this.debug = false;\n        this.assemLen = 0;\n        this.assemBuf = new byte[recordSize];\n        this.recordBuf = new byte[recordSize];\n        this.oneBuf = new byte[1];\n    }\n\n    public void setLongFileMode(int longFileMode) {\n        this.longFileMode = longFileMode;\n    }\n\n\n    /**\n     * Sets the debugging flag.\n     *\n     * @param debugF True to turn on debugging.\n     */\n    public void setDebug(boolean debugF) {\n        this.debug = debugF;\n    }\n\n    /**\n     * Sets the debugging flag in this stream's TarBuffer.\n     *\n     * @param debug True to turn on debugging.\n     */\n    public void setBufferDebug(boolean debug) {\n        this.buffer.setDebug(debug);\n    }\n\n    /**\n     * Ends the TAR archive without closing the underlying OutputStream.\n     * The result is that the two EOF records of nulls are written.\n     */\n    public void finish() throws IOException {\n        this.writeEOFRecord();\n        this.writeEOFRecord();\n    }\n\n    /**\n     * Ends the TAR archive and closes the underlying OutputStream.\n     * This means that finish() is called followed by calling the\n     * TarBuffer's close().\n     */\n    public void close() throws IOException {\n        this.finish();\n        this.buffer.close();\n    }\n\n    /**\n     * Get the record size being used by this stream's TarBuffer.\n     *\n     * @return The TarBuffer record size.\n     */\n    public int getRecordSize() {\n        return this.buffer.getRecordSize();\n    }\n\n    /**\n     * Put an entry on the output stream. This writes the entry's\n     * header record and positions the output stream for writing\n     * the contents of the entry. Once this method is called, the\n     * stream is ready for calls to write() to write the entry's\n     * contents. Once the contents are written, closeEntry()\n     * <B>MUST</B> be called to ensure that all buffered data\n     * is completely written to the output stream.\n     *\n     * @param entry The TarEntry to be written to the archive.\n     */\n    public void putNextEntry(TarEntry entry) throws IOException {\n        if (entry.getName().length() >= TarConstants.NAMELEN) {\n\n            if (longFileMode == LONGFILE_GNU) {\n                TarEntry longLinkEntry = new TarEntry(TarConstants.GNU_LONGLINK,\n                                                      TarConstants.LF_GNUTYPE_LONGNAME);\n\n                longLinkEntry.setSize(entry.getName().length() + 1);\n                putNextEntry(longLinkEntry);\n                write(entry.getName().getBytes());\n                write(0);\n                closeEntry();\n            } else if (longFileMode != LONGFILE_TRUNCATE) {\n                throw new RuntimeException(\"file name '\" + entry.getName()\n                                             + \"' is too long ( > \"\n                                             + TarConstants.NAMELEN + \" bytes)\");\n            }\n        }\n\n        entry.writeEntryHeader(this.recordBuf);\n        this.buffer.writeRecord(this.recordBuf);\n\n        this.currBytes = 0;\n\n        if (entry.isDirectory()) {\n            this.currSize = 0;\n        } else {\n            this.currSize = (int) entry.getSize();\n        }\n    }\n\n    /**\n     * Close an entry. This method MUST be called for all file\n     * entries that contain data. The reason is that we must\n     * buffer data written to the stream in order to satisfy\n     * the buffer's record based writes. Thus, there may be\n     * data fragments still being assembled that must be written\n     * to the output stream before this entry is closed and the\n     * next entry written.\n     */\n    public void closeEntry() throws IOException {\n        if (this.assemLen > 0) {\n            for (int i = this.assemLen; i < this.assemBuf.length; ++i) {\n                this.assemBuf[i] = 0;\n            }\n\n            this.buffer.writeRecord(this.assemBuf);\n\n            this.currBytes += this.assemLen;\n            this.assemLen = 0;\n        }\n\n        if (this.currBytes < this.currSize) {\n            throw new IOException(\"entry closed at '\" + this.currBytes\n                                  + \"' before the '\" + this.currSize\n                                  + \"' bytes specified in the header were written\");\n        }\n    }\n\n    /**\n     * Writes a byte to the current tar archive entry.\n     *\n     * This method simply calls read( byte[], int, int ).\n     *\n     * @param b The byte written.\n     */\n    public void write(int b) throws IOException {\n        this.oneBuf[0] = (byte) b;\n\n        this.write(this.oneBuf, 0, 1);\n    }\n\n    /**\n     * Writes bytes to the current tar archive entry.\n     *\n     * This method simply calls write( byte[], int, int ).\n     *\n     * @param wBuf The buffer to write to the archive.\n     */\n    public void write(byte[] wBuf) throws IOException {\n        this.write(wBuf, 0, wBuf.length);\n    }\n\n    /**\n     * Writes bytes to the current tar archive entry. This method\n     * is aware of the current entry and will throw an exception if\n     * you attempt to write bytes past the length specified for the\n     * current entry. The method is also (painfully) aware of the\n     * record buffering required by TarBuffer, and manages buffers\n     * that are not a multiple of recordsize in length, including\n     * assembling records from small buffers.\n     *\n     * @param wBuf The buffer to write to the archive.\n     * @param wOffset The offset in the buffer from which to get bytes.\n     * @param numToWrite The number of bytes to write.\n     */\n    public void write(byte[] wBuf, int wOffset, int numToWrite) throws IOException {\n        if ((this.currBytes + numToWrite) > this.currSize) {\n            throw new IOException(\"request to write '\" + numToWrite\n                                  + \"' bytes exceeds size in header of '\"\n                                  + this.currSize + \"' bytes\");\n\n        }\n\n        if (this.assemLen > 0) {\n            if ((this.assemLen + numToWrite) >= this.recordBuf.length) {\n                int aLen = this.recordBuf.length - this.assemLen;\n\n                System.arraycopy(this.assemBuf, 0, this.recordBuf, 0,\n                                 this.assemLen);\n                System.arraycopy(wBuf, wOffset, this.recordBuf,\n                                 this.assemLen, aLen);\n                this.buffer.writeRecord(this.recordBuf);\n\n                this.currBytes += this.recordBuf.length;\n                wOffset += aLen;\n                numToWrite -= aLen;\n                this.assemLen = 0;\n            } else {\n                System.arraycopy(wBuf, wOffset, this.assemBuf, this.assemLen,\n                                 numToWrite);\n\n                wOffset += numToWrite;\n                this.assemLen += numToWrite;\n                numToWrite -= numToWrite;\n            }\n        }\n\n        while (numToWrite > 0) {\n            if (numToWrite < this.recordBuf.length) {\n                System.arraycopy(wBuf, wOffset, this.assemBuf, this.assemLen,\n                                 numToWrite);\n\n                this.assemLen += numToWrite;\n\n                break;\n            }\n\n            this.buffer.writeRecord(wBuf, wOffset);\n\n            int num = this.recordBuf.length;\n\n            this.currBytes += num;\n            numToWrite -= num;\n            wOffset += num;\n        }\n    }\n\n    /**\n     * Write an EOF (end of archive) record to the tar archive.\n     * An EOF record consists of a record of all zeros.\n     */\n    private void writeEOFRecord() throws IOException {\n        for (int i = 0; i < this.recordBuf.length; ++i) {\n            this.recordBuf[i] = 0;\n        }\n\n        this.buffer.writeRecord(this.recordBuf);", "functions": [{"function_name": "setLongFileMode", "code": "    public void setLongFileMode(int longFileMode) {\n        this.longFileMode = longFileMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDebug", "code": "    public void setDebug(boolean debugF) {\n        this.debug = debugF;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBufferDebug", "code": "    public void setBufferDebug(boolean debug) {\n        this.buffer.setDebug(debug);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "finish", "code": "    public void finish() throws IOException {\n        this.writeEOFRecord();\n        this.writeEOFRecord();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "close", "code": "    public void close() throws IOException {\n        this.finish();\n        this.buffer.close();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize() {\n        return this.buffer.getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "putNextEntry", "code": "    public void putNextEntry(TarEntry entry) throws IOException {\n        if (entry.getName().length() >= TarConstants.NAMELEN) {\n\n            if (longFileMode == LONGFILE_GNU) {\n                TarEntry longLinkEntry = new TarEntry(TarConstants.GNU_LONGLINK,\n                                                      TarConstants.LF_GNUTYPE_LONGNAME);\n\n                longLinkEntry.setSize(entry.getName().length() + 1);\n                putNextEntry(longLinkEntry);\n                write(entry.getName().getBytes());\n                write(0);\n                closeEntry();\n            } else if (longFileMode != LONGFILE_TRUNCATE) {\n                throw new RuntimeException(\"file name '\" + entry.getName()\n                                             + \"' is too long ( > \"\n                                             + TarConstants.NAMELEN + \" bytes)\");\n            }\n        }\n\n        entry.writeEntryHeader(this.recordBuf);\n        this.buffer.writeRecord(this.recordBuf);\n\n        this.currBytes = 0;\n\n        if (entry.isDirectory()) {\n            this.currSize = 0;\n        } else {\n            this.currSize = (int) entry.getSize();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [5, 8], [0, 9], [2, 10], [7, 11], [1, 12], [1, 13], [10, 14], [10, 15], [11, 16], [13, 17], [14, 18], [10, 19], [12, 20], [14, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [21, 27], [23, 28], [24, 29], [26, 30], [19, 31], [27, 32], [29, 33], [30, 34], [30, 35], [32, 36], [32, 37], [35, 38], [37, 39], [39, 40], [39, 41], [41, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 5], [9, 0], [10, 2], [11, 7], [12, 1], [13, 1], [14, 10], [15, 10], [16, 11], [17, 13], [18, 14], [19, 10], [20, 12], [21, 14], [22, 10], [23, 10], [24, 10], [25, 10], [26, 10], [27, 21], [28, 23], [29, 24], [30, 26], [31, 19], [32, 27], [33, 29], [34, 30], [35, 30], [36, 32], [37, 32], [38, 35], [39, 37], [40, 39], [41, 39], [42, 41], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "closeEntry", "code": "    public void closeEntry() throws IOException {\n        if (this.assemLen > 0) {\n            for (int i = this.assemLen; i < this.assemBuf.length; ++i) {\n                this.assemBuf[i] = 0;\n            }\n\n            this.buffer.writeRecord(this.assemBuf);\n\n            this.currBytes += this.assemLen;\n            this.assemLen = 0;\n        }\n\n        if (this.currBytes < this.currSize) {\n            throw new IOException(\"entry closed at '\" + this.currBytes\n                                  + \"' before the '\" + this.currSize\n                                  + \"' bytes specified in the header were written\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LOOP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [2, 6], [4, 7], [5, 8], [2, 9], [2, 10], [6, 11], [8, 12], [9, 13], [2, 14], [12, 15], [12, 16], [6, 17], [16, 18], [17, 19], [18, 20], [18, 21], [21, 22], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 2], [7, 4], [8, 5], [9, 2], [10, 2], [11, 6], [12, 8], [13, 9], [14, 2], [15, 12], [16, 12], [17, 6], [18, 16], [19, 17], [20, 18], [21, 18], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "write", "code": "    public void write(int b) throws IOException {\n        this.oneBuf[0] = (byte) b;\n\n        this.write(this.oneBuf, 0, 1);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "write", "code": "    public void write(byte[] wBuf) throws IOException {\n        this.write(wBuf, 0, wBuf.length);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "write", "code": "    public void write(byte[] wBuf, int wOffset, int numToWrite) throws IOException {\n        if ((this.currBytes + numToWrite) > this.currSize) {\n            throw new IOException(\"request to write '\" + numToWrite\n                                  + \"' bytes exceeds size in header of '\"\n                                  + this.currSize + \"' bytes\");\n\n        }\n\n        if (this.assemLen > 0) {\n            if ((this.assemLen + numToWrite) >= this.recordBuf.length) {\n                int aLen = this.recordBuf.length - this.assemLen;\n\n                System.arraycopy(this.assemBuf, 0, this.recordBuf, 0,\n                                 this.assemLen);\n                System.arraycopy(wBuf, wOffset, this.recordBuf,\n                                 this.assemLen, aLen);\n                this.buffer.writeRecord(this.recordBuf);\n\n                this.currBytes += this.recordBuf.length;\n                wOffset += aLen;\n                numToWrite -= aLen;\n                this.assemLen = 0;\n            } else {\n                System.arraycopy(wBuf, wOffset, this.assemBuf, this.assemLen,\n                                 numToWrite);\n\n                wOffset += numToWrite;\n                this.assemLen += numToWrite;\n                numToWrite -= numToWrite;\n            }\n        }\n\n        while (numToWrite > 0) {\n            if (numToWrite < this.recordBuf.length) {\n                System.arraycopy(wBuf, wOffset, this.assemBuf, this.assemLen,\n                                 numToWrite);\n\n                this.assemLen += numToWrite;\n\n                break;\n            }\n\n            this.buffer.writeRecord(wBuf, wOffset);\n\n            int num = this.recordBuf.length;\n\n            this.currBytes += num;\n            numToWrite -= num;\n            wOffset += num;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [1, 10], [1, 11], [7, 12], [2, 13], [8, 14], [3, 15], [9, 16], [1, 17], [1, 18], [1, 19], [11, 20], [13, 21], [15, 22], [1, 23], [11, 24], [13, 25], [21, 26], [22, 27], [11, 28], [11, 29], [13, 30], [13, 31], [13, 32], [13, 33], [13, 34], [13, 35], [13, 36], [13, 37], [13, 38], [13, 39], [27, 40], [27, 41], [34, 42], [13, 43], [39, 44], [39, 45], [25, 46], [41, 47], [47, 48], [47, 49], [49, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 1], [11, 1], [12, 7], [13, 2], [14, 8], [15, 3], [16, 9], [17, 1], [18, 1], [19, 1], [20, 11], [21, 13], [22, 15], [23, 1], [24, 11], [25, 13], [26, 21], [27, 22], [28, 11], [29, 11], [30, 13], [31, 13], [32, 13], [33, 13], [34, 13], [35, 13], [36, 13], [37, 13], [38, 13], [39, 13], [40, 27], [41, 27], [42, 34], [43, 13], [44, 39], [45, 39], [46, 25], [47, 41], [48, 47], [49, 47], [50, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "writeEOFRecord", "code": "    private void writeEOFRecord() throws IOException {\n        for (int i = 0; i < this.recordBuf.length; ++i) {\n            this.recordBuf[i] = 0;\n        }\n\n        this.buffer.writeRecord(this.recordBuf);", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "TarOutputStream", "code": "    public TarOutputStream(OutputStream os) {\n        this(os, TarBuffer.DEFAULT_BLKSIZE, TarBuffer.DEFAULT_RCDSIZE);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "TarOutputStream", "code": "    public TarOutputStream(OutputStream os, int blockSize) {\n        this(os, blockSize, TarBuffer.DEFAULT_RCDSIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TarOutputStream", "code": "    public TarOutputStream(OutputStream os, int blockSize, int recordSize) {\n        super(os);\n\n        this.buffer = new TarBuffer(os, blockSize, recordSize);\n        this.debug = false;\n        this.assemLen = 0;\n        this.assemBuf = new byte[recordSize];\n        this.recordBuf = new byte[recordSize];\n        this.oneBuf = new byte[1];", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [8, 11], [9, 12], [4, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 8], [12, 9], [13, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 1}
{"sample_id": "xalan-2.7-8115", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/NodeCounter.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.NodeCounter", "code": "public abstract class NodeCounter {\n    public static final int END = DTM.NULL;\n\n    protected int _node = END;\n    protected int _nodeType = DOM.FIRST_TYPE - 1;\n    protected double _value = Integer.MIN_VALUE;\n\n    public final DOM          _document;\n    public final DTMAxisIterator _iterator;\n    public final Translet     _translet;\n\n    protected String _format;\n    protected String _lang;\n    protected String _letterValue;\n    protected String _groupSep;\n    protected int    _groupSize;\n\n    private boolean _separFirst = true;\n    private boolean _separLast = false;\n    private Vector _separToks = new Vector();\n    private Vector _formatToks = new Vector();\n    private int _nSepars  = 0;\n    private int _nFormats = 0;\n\n    private final static String[] Thousands = \n        {\"\", \"m\", \"mm\", \"mmm\" };\n    private final static String[] Hundreds = \n    {\"\", \"c\", \"cc\", \"ccc\", \"cd\", \"d\", \"dc\", \"dcc\", \"dccc\", \"cm\"};\n    private final static String[] Tens = \n    {\"\", \"x\", \"xx\", \"xxx\", \"xl\", \"l\", \"lx\", \"lxx\", \"lxxx\", \"xc\"};\n    private final static String[] Ones = \n    {\"\", \"i\", \"ii\", \"iii\", \"iv\", \"v\", \"vi\", \"vii\", \"viii\", \"ix\"};\n  \n  private StringBuffer _tempBuffer = new StringBuffer();\n    \n    protected NodeCounter(Translet translet,\n              DOM document, DTMAxisIterator iterator) {\n    _translet = translet;\n    _document = document;\n    _iterator = iterator;\n    }\n\n    /** \n     * Set the start node for this counter. The same <tt>NodeCounter</tt>\n     * object can be used multiple times by resetting the starting node.\n     */\n    abstract public NodeCounter setStartNode(int node);\n\n    /** \n     * If the user specified a value attribute, use this instead of \n     * counting nodes.\n     */\n    public NodeCounter setValue(double value) {\n    _value = value;\n    return this;\n    }\n\n    /**\n     * Sets formatting fields before calling formatNumbers().\n     */\n    protected void setFormatting(String format, String lang, String letterValue,\n                 String groupSep, String groupSize) {\n    _lang = lang;\n    _groupSep = groupSep;\n    _letterValue = letterValue;\n\n    try {\n        _groupSize = Integer.parseInt(groupSize);\n    }\n    catch (NumberFormatException e) {\n       _groupSize = 0;\n    }\n    setTokens(format);\n\n }\n  \n private final void setTokens(final String format){\n        return;\n     \n     _format = format;\n     final int length = _format.length();\n     boolean isFirst = true;\n     _separFirst = true;\n     _separLast = false;\n     _nSepars  = 0;\n     _nFormats = 0;\n     _separToks.clear() ;\n     _formatToks.clear();\n\n         /* \n          * Tokenize the format string into alphanumeric and non-alphanumeric\n          * tokens as described in M. Kay page 241.\n          */\n         for (int j = 0, i = 0; i < length;) {\n                 char c = format.charAt(i);\n                 for (j = i; Character.isLetterOrDigit(c);) {\n                     if (++i == length) break;\n             c = format.charAt(i);\n                 }\n                 if (i > j) {\n                     if (isFirst) {\n                         _separToks.addElement(\".\");\n                         isFirst = _separFirst = false;\n                     }\n                     _formatToks.addElement(format.substring(j, i));\n                 }\n\n                 if (i == length) break;\n\n                 c = format.charAt(i);\n                 for (j = i; !Character.isLetterOrDigit(c);) {\n                     if (++i == length) break;\n                     c = format.charAt(i);\n                     isFirst = false;\n                 }\n                 if (i > j) {\n                     _separToks.addElement(format.substring(j, i));\n                 }\n             }\n\n         _nSepars = _separToks.size();\n         _nFormats = _formatToks.size(); \n         if (_nSepars > _nFormats) _separLast = true;\n\n         if (_separFirst) _nSepars--;\n         if (_separLast) _nSepars--;\n         if (_nSepars == 0) {\n             _separToks.insertElementAt(\".\", 1);\n             _nSepars++;\n         }\n         if (_separFirst) _nSepars ++;\n \n }\n    /**\n     * Sets formatting fields to their default values.\n     */\n    public NodeCounter setDefaultFormatting() {\n    setFormatting(\"1\", \"en\", \"alphabetic\", null, null);\n    return this;\n    }\n\n    /**\n     * Returns the position of <tt>node</tt> according to the level and \n     * the from and count patterns.\n     */\n    abstract public String getCounter();\n\n    /**\n     * Returns the position of <tt>node</tt> according to the level and \n     * the from and count patterns. This position is converted into a\n     * string based on the arguments passed.\n     */\n    public String getCounter(String format, String lang, String letterValue,\n                String groupSep, String groupSize) {\n    setFormatting(format, lang, letterValue, groupSep, groupSize);\n    return getCounter();\n    }\n\n    /**\n     * Returns true if <tt>node</tt> matches the count pattern. By\n     * default a node matches the count patterns if it is of the \n     * same type as the starting node.\n     */\n    public boolean matchesCount(int node) {\n    return _nodeType == _document.getExpandedTypeID(node);\n    }\n\n    /**\n     * Returns true if <tt>node</tt> matches the from pattern. By default, \n     * no node matches the from pattern.\n     */\n    public boolean matchesFrom(int node) {\n    return false;\n    }\n\n    /**\n     * Format a single value according to the format parameters.\n     */\n    protected String formatNumbers(int value) {\n    return formatNumbers(new int[] { value });\n    }\n\n    /**\n     * Format a sequence of values according to the format paramaters\n     * set by calling setFormatting().\n     */\n    protected String formatNumbers(int[] values) {\n    final int nValues = values.length;\n    final int length = _format.length();\n\n    boolean isEmpty = true;\n    for (int i = 0; i < nValues; i++)\n        if (values[i] != Integer.MIN_VALUE)\n        isEmpty = false;\n    if (isEmpty) return(\"\");\n\n    boolean isFirst = true;\n    int t = 0, n = 0, s = 1;\n  _tempBuffer.setLength(0);\n    final StringBuffer buffer = _tempBuffer;\n\n    if (_separFirst) buffer.append((String)_separToks.elementAt(0));\n\n    while (n < nValues) {\n        final int value = values[n];\n        if (value != Integer.MIN_VALUE) {\n        if (!isFirst) buffer.append((String) _separToks.elementAt(s++));\n        formatValue(value, (String)_formatToks.elementAt(t++), buffer);\n        if (t == _nFormats) t--;\n        if (s >= _nSepars) s--;\n        isFirst = false;\n        }\n        n++;\n    }\n\n    if (_separLast) buffer.append((String)_separToks.lastElement());\n    return buffer.toString();\n    }\n\n    /**\n     * Format a single value based on the appropriate formatting token. \n     * This method is based on saxon (Michael Kay) and only implements\n     * lang=\"en\".\n     */\n    private void formatValue(int value, String format, StringBuffer buffer) {\n        char c = format.charAt(0);\n\n        if (Character.isDigit(c)) {\n            char zero = (char)(c - Character.getNumericValue(c));\n\n            StringBuffer temp = buffer;\n            if (_groupSize > 0) {\n                temp = new StringBuffer();\n            }\n            String s = \"\";\n            int n = value;\n            while (n > 0) {\n                s = (char) ((int) zero + (n % 10)) + s;\n                n = n / 10;\n            }\n                \n            for (int i = 0; i < format.length() - s.length(); i++) {\n                temp.append(zero);\n            }\n            temp.append(s);\n            \n            if (_groupSize > 0) {\n                for (int i = 0; i < temp.length(); i++) {\n                    if (i != 0 && ((temp.length() - i) % _groupSize) == 0) {\n                        buffer.append(_groupSep);\n                    }\n                    buffer.append(temp.charAt(i));\n                }\n            }\n        } \n    else if (c == 'i' && !_letterValue.equals(\"alphabetic\")) {\n            buffer.append(romanValue(value));\n        } \n    else if (c == 'I' && !_letterValue.equals(\"alphabetic\")) {\n            buffer.append(romanValue(value).toUpperCase());\n        } \n    else {\n        int min = (int) c;\n        int max = (int) c;\n\n        if (c >= 0x3b1 && c <= 0x3c9) {\n        }\n        else {\n        while (Character.isLetterOrDigit((char) (max + 1))) {\n            max++;\n        }\n        }\n            buffer.append(alphaValue(value, min, max));\n        }\n    }\n\n    private String alphaValue(int value, int min, int max) {\n        if (value <= 0) {\n        return \"\" + value;\n    }\n\n        int range = max - min + 1;\n        char last = (char)(((value-1) % range) + min);\n        if (value > range) {\n            return alphaValue((value-1) / range, min, max) + last;\n        } \n    else {\n            return \"\" + last;\n        }\n    }\n\n    private String romanValue(int n) {\n        if (n <= 0 || n > 4000) {\n        return \"\" + n;\n    }\n        return\n        Thousands[n / 1000] +\n        Hundreds[(n / 100) % 10] +\n        Tens[(n/10) % 10] +\n        Ones[n % 10];", "functions": [{"function_name": "setStartNode", "code": "    abstract public NodeCounter setStartNode(int node);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setValue", "code": "    public NodeCounter setValue(double value) {\n    _value = value;\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFormatting", "code": "    protected void setFormatting(String format, String lang, String letterValue,\n                 String groupSep, String groupSize) {\n    _lang = lang;\n    _groupSep = groupSep;\n    _letterValue = letterValue;\n\n    try {\n        _groupSize = Integer.parseInt(groupSize);\n    }\n    catch (NumberFormatException e) {\n       _groupSize = 0;\n    }\n    setTokens(format);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [1, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 1], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setTokens", "code": " private final void setTokens(final String format){\n        return;\n     \n     _format = format;\n     final int length = _format.length();\n     boolean isFirst = true;\n     _separFirst = true;\n     _separLast = false;\n     _nSepars  = 0;\n     _nFormats = 0;\n     _separToks.clear() ;\n     _formatToks.clear();\n\n         /* \n          * Tokenize the format string into alphanumeric and non-alphanumeric\n          * tokens as described in M. Kay page 241.\n          */\n         for (int j = 0, i = 0; i < length;) {\n                 char c = format.charAt(i);\n                 for (j = i; Character.isLetterOrDigit(c);) {\n                     if (++i == length) break;\n             c = format.charAt(i);\n                 }\n                 if (i > j) {\n                     if (isFirst) {\n                         _separToks.addElement(\".\");\n                         isFirst = _separFirst = false;\n                     }\n                     _formatToks.addElement(format.substring(j, i));\n                 }\n\n                 if (i == length) break;\n\n                 c = format.charAt(i);\n                 for (j = i; !Character.isLetterOrDigit(c);) {\n                     if (++i == length) break;\n                     c = format.charAt(i);\n                     isFirst = false;\n                 }\n                 if (i > j) {\n                     _separToks.addElement(format.substring(j, i));\n                 }\n             }\n\n         _nSepars = _separToks.size();\n         _nFormats = _formatToks.size(); \n         if (_nSepars > _nFormats) _separLast = true;\n\n         if (_separFirst) _nSepars--;\n         if (_separLast) _nSepars--;\n         if (_nSepars == 0) {\n             _separToks.insertElementAt(\".\", 1);\n             _nSepars++;\n         }\n         if (_separFirst) _nSepars ++;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "IF", "LOOP", "IF", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "IF", "IF", "CALL", "CALL", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [5, 12], [0, 13], [0, 14], [6, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [11, 23], [5, 24], [13, 25], [14, 26], [6, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [18, 33], [19, 34], [20, 35], [21, 36], [7, 37], [8, 38], [2, 39], [24, 40], [27, 41], [28, 42], [28, 43], [6, 44], [29, 45], [29, 46], [30, 47], [31, 48], [31, 49], [6, 50], [6, 51], [39, 52], [39, 53], [28, 54], [44, 55], [30, 56], [31, 57], [32, 58], [27, 59], [28, 60], [28, 61], [54, 62], [54, 63], [30, 64], [31, 65], [57, 66], [57, 67], [59, 68], [60, 69], [61, 70], [64, 71], [65, 72], [56, 73], [56, 74], [73, 75], [74, 76], [75, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 5], [13, 0], [14, 0], [15, 6], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 11], [24, 5], [25, 13], [26, 14], [27, 6], [28, 6], [29, 6], [30, 6], [31, 6], [32, 6], [33, 18], [34, 19], [35, 20], [36, 21], [37, 7], [38, 8], [39, 2], [40, 24], [41, 27], [42, 28], [43, 28], [44, 6], [45, 29], [46, 29], [47, 30], [48, 31], [49, 31], [50, 6], [51, 6], [52, 39], [53, 39], [54, 28], [55, 44], [56, 30], [57, 31], [58, 32], [59, 27], [60, 28], [61, 28], [62, 54], [63, 54], [64, 30], [65, 31], [66, 57], [67, 57], [68, 59], [69, 60], [70, 61], [71, 64], [72, 65], [73, 56], [74, 56], [75, 73], [76, 74], [77, 75], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "setDefaultFormatting", "code": "    public NodeCounter setDefaultFormatting() {\n    setFormatting(\"1\", \"en\", \"alphabetic\", null, null);\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 2], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getCounter", "code": "    abstract public String getCounter();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getCounter", "code": "    public String getCounter(String format, String lang, String letterValue,\n                String groupSep, String groupSize) {\n    setFormatting(format, lang, letterValue, groupSep, groupSize);\n    return getCounter();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "matchesCount", "code": "    public boolean matchesCount(int node) {\n    return _nodeType == _document.getExpandedTypeID(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "matchesFrom", "code": "    public boolean matchesFrom(int node) {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "formatNumbers", "code": "    protected String formatNumbers(int value) {\n    return formatNumbers(new int[] { value });", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "formatNumbers", "code": "    protected String formatNumbers(int[] values) {\n    final int nValues = values.length;\n    final int length = _format.length();\n\n    boolean isEmpty = true;\n    for (int i = 0; i < nValues; i++)\n        if (values[i] != Integer.MIN_VALUE)\n        isEmpty = false;\n    if (isEmpty) return(\"\");\n\n    boolean isFirst = true;\n    int t = 0, n = 0, s = 1;\n  _tempBuffer.setLength(0);\n    final StringBuffer buffer = _tempBuffer;\n\n    if (_separFirst) buffer.append((String)_separToks.elementAt(0));\n\n    while (n < nValues) {\n        final int value = values[n];\n        if (value != Integer.MIN_VALUE) {\n        if (!isFirst) buffer.append((String) _separToks.elementAt(s++));\n        formatValue(value, (String)_formatToks.elementAt(t++), buffer);\n        if (t == _nFormats) t--;\n        if (s >= _nSepars) s--;\n        isFirst = false;\n        }\n        n++;\n    }\n\n    if (_separLast) buffer.append((String)_separToks.lastElement());\n    return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "IF", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [3, 15], [0, 16], [8, 17], [9, 18], [9, 19], [2, 20], [3, 21], [3, 22], [4, 23], [16, 24], [6, 25], [6, 26], [6, 27], [7, 28], [17, 29], [18, 30], [10, 31], [11, 32], [21, 33], [18, 34], [9, 35], [20, 36], [21, 37], [21, 38], [21, 39], [23, 40], [34, 41], [21, 42], [37, 43], [38, 44], [21, 45], [40, 46], [42, 47], [39, 48], [45, 49], [48, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 3], [16, 0], [17, 8], [18, 9], [19, 9], [20, 2], [21, 3], [22, 3], [23, 4], [24, 16], [25, 6], [26, 6], [27, 6], [28, 7], [29, 17], [30, 18], [31, 10], [32, 11], [33, 21], [34, 18], [35, 9], [36, 20], [37, 21], [38, 21], [39, 21], [40, 23], [41, 34], [42, 21], [43, 37], [44, 38], [45, 21], [46, 40], [47, 42], [48, 39], [49, 45], [50, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "formatValue", "code": "    private void formatValue(int value, String format, StringBuffer buffer) {\n        char c = format.charAt(0);\n\n        if (Character.isDigit(c)) {\n            char zero = (char)(c - Character.getNumericValue(c));\n\n            StringBuffer temp = buffer;\n            if (_groupSize > 0) {\n                temp = new StringBuffer();\n            }\n            String s = \"\";\n            int n = value;\n            while (n > 0) {\n                s = (char) ((int) zero + (n % 10)) + s;\n                n = n / 10;\n            }\n                \n            for (int i = 0; i < format.length() - s.length(); i++) {\n                temp.append(zero);\n            }\n            temp.append(s);\n            \n            if (_groupSize > 0) {\n                for (int i = 0; i < temp.length(); i++) {\n                    if (i != 0 && ((temp.length() - i) % _groupSize) == 0) {\n                        buffer.append(_groupSep);\n                    }\n                    buffer.append(temp.charAt(i));\n                }\n            }\n        } \n    else if (c == 'i' && !_letterValue.equals(\"alphabetic\")) {\n            buffer.append(romanValue(value));\n        } \n    else if (c == 'I' && !_letterValue.equals(\"alphabetic\")) {\n            buffer.append(romanValue(value).toUpperCase());\n        } \n    else {\n        int min = (int) c;\n        int max = (int) c;\n\n        if (c >= 0x3b1 && c <= 0x3c9) {\n        }\n        else {\n        while (Character.isLetterOrDigit((char) (max + 1))) {\n            max++;\n        }\n        }\n            buffer.append(alphaValue(value, min, max));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "CALL", "IF", "BINARY_OP", "IF", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LOOP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [8, 19], [9, 20], [9, 21], [10, 22], [1, 23], [11, 24], [12, 25], [15, 26], [18, 27], [8, 28], [8, 29], [8, 30], [19, 31], [19, 32], [6, 33], [20, 34], [21, 35], [10, 36], [22, 37], [24, 38], [25, 39], [14, 40], [26, 41], [8, 42], [28, 43], [8, 44], [31, 45], [32, 46], [33, 47], [36, 48], [11, 49], [38, 50], [38, 51], [11, 52], [12, 53], [12, 54], [15, 55], [17, 56], [42, 57], [28, 58], [43, 59], [43, 60], [44, 61], [36, 62], [48, 63], [53, 64], [54, 65], [55, 66], [56, 67], [58, 68], [59, 69], [60, 70], [61, 71], [36, 72], [62, 73], [36, 74], [64, 75], [72, 76], [73, 77], [73, 78], [65, 79], [68, 80], [62, 81], [77, 82], [77, 83], [78, 84], [79, 85], [80, 86], [83, 87], [85, 88], [87, 89], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 8], [20, 9], [21, 9], [22, 10], [23, 1], [24, 11], [25, 12], [26, 15], [27, 18], [28, 8], [29, 8], [30, 8], [31, 19], [32, 19], [33, 6], [34, 20], [35, 21], [36, 10], [37, 22], [38, 24], [39, 25], [40, 14], [41, 26], [42, 8], [43, 28], [44, 8], [45, 31], [46, 32], [47, 33], [48, 36], [49, 11], [50, 38], [51, 38], [52, 11], [53, 12], [54, 12], [55, 15], [56, 17], [57, 42], [58, 28], [59, 43], [60, 43], [61, 44], [62, 36], [63, 48], [64, 53], [65, 54], [66, 55], [67, 56], [68, 58], [69, 59], [70, 60], [71, 61], [72, 36], [73, 62], [74, 36], [75, 64], [76, 72], [77, 73], [78, 73], [79, 65], [80, 68], [81, 62], [82, 77], [83, 77], [84, 78], [85, 79], [86, 80], [87, 83], [88, 85], [89, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89]]}, {"function_name": "alphaValue", "code": "    private String alphaValue(int value, int min, int max) {\n        if (value <= 0) {\n        return \"\" + value;\n    }\n\n        int range = max - min + 1;\n        char last = (char)(((value-1) % range) + min);\n        if (value > range) {\n            return alphaValue((value-1) / range, min, max) + last;\n        } \n    else {\n            return \"\" + last;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [1, 10], [1, 11], [3, 12], [4, 13], [9, 14], [10, 15], [11, 16], [2, 17], [12, 18], [12, 19], [13, 20], [15, 21], [16, 22], [17, 23], [20, 24], [22, 25], [23, 26], [25, 27], [26, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 1], [11, 1], [12, 3], [13, 4], [14, 9], [15, 10], [16, 11], [17, 2], [18, 12], [19, 12], [20, 13], [21, 15], [22, 16], [23, 17], [24, 20], [25, 22], [26, 23], [27, 25], [28, 26], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "romanValue", "code": "    private String romanValue(int n) {\n        if (n <= 0 || n > 4000) {\n        return \"\" + n;\n    }\n        return\n        Thousands[n / 1000] +\n        Hundreds[(n / 100) % 10] +\n        Tens[(n/10) % 10] +\n        Ones[n % 10];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [5, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [4, 14], [11, 15], [14, 16], [6, 17], [17, 18], [17, 19], [10, 20], [10, 21], [19, 22], [20, 23], [20, 24], [21, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 5], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 4], [15, 11], [16, 14], [17, 6], [18, 17], [19, 17], [20, 10], [21, 10], [22, 19], [23, 20], [24, 20], [25, 21], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "NodeCounter", "code": "    protected NodeCounter(Translet translet,\n              DOM document, DTMAxisIterator iterator) {\n    _translet = translet;\n    _document = document;\n    _iterator = iterator;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "camel-1.6-2978", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/Resequencer.java", "language": "java", "name": "org.apache.camel.processor.Resequencer", "code": "public class Resequencer extends BatchProcessor {\n    public Resequencer(Processor processor, Expression expression) {\n        this(processor, createSet(expression));\n    }\n\n    public Resequencer(Processor processor, List<Expression> expressions) {\n        this(processor, createSet(expressions));\n    }\n\n    public Resequencer(Processor processor, Set<Exchange> collection) {\n        super(processor, collection);\n    }\n\n    @Override\n    public String toString() {\n        return \"Resequencer[to: \" + getProcessor() + \"]\";\n    }\n\n\n    protected static Set<Exchange> createSet(Expression<Exchange> expression) {\n        return createSet(new ExpressionComparator<Exchange>(expression));\n    }\n\n    protected static Set<Exchange> createSet(List<Expression> expressions) {\n        if (expressions.size() == 1) {\n            return createSet(expressions.get(0));\n        }\n        return createSet(new ExpressionListComparator(expressions));\n    }\n\n    protected static Set<Exchange> createSet(Comparator<? super Exchange> comparator) {\n        return new TreeSet<Exchange>(comparator);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Resequencer[to: \" + getProcessor() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createSet", "code": "    protected static Set<Exchange> createSet(Expression<Exchange> expression) {\n        return createSet(new ExpressionComparator<Exchange>(expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createSet", "code": "    protected static Set<Exchange> createSet(List<Expression> expressions) {\n        if (expressions.size() == 1) {\n            return createSet(expressions.get(0));\n        }\n        return createSet(new ExpressionListComparator(expressions));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [5, 8], [5, 9], [7, 10], [10, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 5], [9, 5], [10, 7], [11, 10], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createSet", "code": "    protected static Set<Exchange> createSet(Comparator<? super Exchange> comparator) {\n        return new TreeSet<Exchange>(comparator);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Resequencer", "code": "    public Resequencer(Processor processor, Expression expression) {\n        this(processor, createSet(expression));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Resequencer", "code": "    public Resequencer(Processor processor, List<Expression> expressions) {\n        this(processor, createSet(expressions));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Resequencer", "code": "    public Resequencer(Processor processor, Set<Exchange> collection) {\n        super(processor, collection);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.4-200", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/BuildEvent.java", "language": "java", "name": "org.apache.tools.ant.BuildEvent", "code": "public class BuildEvent extends EventObject {\n    private Project project;\n    private Target target;\n    private Task task;\n    private String message;\n    private int priority = Project.MSG_VERBOSE;\n    private Throwable exception;\n\n    /**\n     * Construct a BuildEvent for a project level event\n     *\n     * @param project the project that emitted the event.\n     */\n    public BuildEvent(Project project) {\n        super(project);\n        this.project = project;\n        this.target = null;\n        this.task = null;\n    }\n    \n    /**\n     * Construct a BuildEvent for a target level event\n     *\n     * @param target the target that emitted the event.\n     */\n    public BuildEvent(Target target) {\n        super(target);\n        this.project = target.getProject();\n        this.target = target;\n        this.task = null;\n    }\n    \n    /**\n     * Construct a BuildEvent for a task level event\n     *\n     * @param task the task that emitted the event.\n     */\n    public BuildEvent(Task task) {\n        super(task);\n        this.project = task.getProject();\n        this.target = task.getOwningTarget();\n        this.task = task;\n    }\n\n    public void setMessage(String message, int priority) {\n        this.message = message;\n        this.priority = priority;\n    }\n    \n    public void setException(Throwable exception) {\n        this.exception = exception;\n    }\n\n    /**\n     *  Returns the project that fired this event.\n     */\n    public Project getProject() {\n        return project;\n    }\n\n    /**\n     *  Returns the target that fired this event.\n     */\n    public Target getTarget() {\n        \n        return target;\n    }\n\n    /**\n     *  Returns the task that fired this event.\n     */\n    public Task getTask() {\n        return task;\n    }\n\n    /**\n     *  Returns the logging message. This field will only be set\n     *  for \"messageLogged\" events.\n     *\n     *  @see BuildListener#messageLogged(BuildEvent)\n     */\n    public String getMessage() {\n        return message;\n    }\n\n    /**\n     *  Returns the priority of the logging message. This field will only\n     *  be set for \"messageLogged\" events.\n     *\n     *  @see BuildListener#messageLogged(BuildEvent)\n     */\n    public int getPriority(){\n        return priority;\n    }\n\n    /**\n     *  Returns the exception that was thrown, if any. This field will only\n     *  be set for \"taskFinished\", \"targetFinished\", and \"buildFinished\" events.\n     *\n     *  @see BuildListener#taskFinished(BuildEvent)\n     *  @see BuildListener#targetFinished(BuildEvent)\n     *  @see BuildListener#buildFinished(BuildEvent)\n     */\n    public Throwable getException() {\n        return exception;", "functions": [{"function_name": "setMessage", "code": "    public void setMessage(String message, int priority) {\n        this.message = message;\n        this.priority = priority;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setException", "code": "    public void setException(Throwable exception) {\n        this.exception = exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProject", "code": "    public Project getProject() {\n        return project;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTarget", "code": "    public Target getTarget() {\n        \n        return target;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTask", "code": "    public Task getTask() {\n        return task;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMessage", "code": "    public String getMessage() {\n        return message;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPriority", "code": "    public int getPriority(){\n        return priority;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getException", "code": "    public Throwable getException() {\n        return exception;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BuildEvent", "code": "    public BuildEvent(Project project) {\n        super(project);\n        this.project = project;\n        this.target = null;\n        this.task = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "BuildEvent", "code": "    public BuildEvent(Target target) {\n        super(target);\n        this.project = target.getProject();\n        this.target = target;\n        this.task = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "BuildEvent", "code": "    public BuildEvent(Task task) {\n        super(task);\n        this.project = task.getProject();\n        this.target = task.getOwningTarget();\n        this.task = task;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.6-7650", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/FunctionCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.FunctionCall", "code": "class FunctionCall extends Expression {\n\n    private QName  _fname;\n    private final Vector _arguments;\n    private final static Vector EMPTY_ARG_LIST = new Vector(0);\n\n    protected final static String EXT_XSLTC = \n\tTRANSLET_URI;\n\n    protected final static String JAVA_EXT_XSLTC = \n\tEXT_XSLTC + \"/java\";\n\n    protected final static String EXT_XALAN = '';\n\n    protected final static String JAVA_EXT_XALAN = '';\n\n    protected final static String JAVA_EXT_XALAN_OLD = '';\n\t\n    protected final static String EXSLT_COMMON = '';\n\n    protected final static String EXSLT_MATH = '';\n\t\n    protected final static String EXSLT_SETS = '';\n\n    protected final static String EXSLT_DATETIME = '';\n\n    protected final static String EXSLT_STRINGS = '';\n\t\n    protected final static int NAMESPACE_FORMAT_JAVA = 0;\n    protected final static int NAMESPACE_FORMAT_CLASS = 1;\n    protected final static int NAMESPACE_FORMAT_PACKAGE = 2;\n    protected final static int NAMESPACE_FORMAT_CLASS_OR_PACKAGE = 3;\n\t\n    private int _namespace_format = NAMESPACE_FORMAT_JAVA;\n        \n    /**\n     * Stores reference to object for non-static Java calls\n     */\n    Expression _thisArgument = null;\n\n    private String      _className;\n    private Class       _clazz;\n    private Method      _chosenMethod;\n    private Constructor _chosenConstructor;\n    private MethodType  _chosenMethodType;\n\n    private boolean    unresolvedExternal;\n\n    private boolean     _isExtConstructor = false; \n\n    private boolean \t  _isStatic = false;\n\n    private boolean  resolveDynamic = false;\n    \n    private static final MultiHashtable _internal2Java = new MultiHashtable();\n\n    private static final Hashtable _java2Internal = new Hashtable();\n    \n    private static final Hashtable _extensionNamespaceTable = new Hashtable();\n\n    private static final Hashtable _extensionFunctionTable = new Hashtable();\n    /**\n     * inner class to used in internal2Java mappings, contains\n     * the Java type and the distance between the internal type and\n     * the Java type. \n     */\n    static class JavaType {\n\tpublic Class  type;\n\tpublic int distance;\n\t\n\tpublic JavaType(Class type, int distance){\n\t    this.type = type;\n\t    this.distance = distance;\n\t}\n\tpublic boolean equals(Object query){\n\t    return query.equals(type);\n\t}\n    } \n\n    /**\n     * Defines 2 conversion tables:\n     * 1. From internal types to Java types and\n     * 2. From Java types to internal types.\n     * These two tables are used when calling external (Java) functions.\n     */\n    static {\n\ttry {\n\t    final Class nodeClass     = Class.forName(\"org.w3c.dom.Node\");\n\t    final Class nodeListClass = Class.forName(\"org.w3c.dom.NodeList\");\n\n            \n\t    _internal2Java.put(Type.Boolean, new JavaType(Boolean.TYPE, 0));\n\t    _internal2Java.put(Type.Boolean, new JavaType(Boolean.class, 1));\n\t    _internal2Java.put(Type.Boolean, new JavaType(Object.class, 2));\n\n\t    _internal2Java.put(Type.Real, new JavaType(Double.TYPE, 0));\n\t    _internal2Java.put(Type.Real, new JavaType(Double.class, 1));\n\t    _internal2Java.put(Type.Real, new JavaType(Float.TYPE, 2));\n\t    _internal2Java.put(Type.Real, new JavaType(Long.TYPE, 3));\n\t    _internal2Java.put(Type.Real, new JavaType(Integer.TYPE, 4));\n\t    _internal2Java.put(Type.Real, new JavaType(Short.TYPE, 5));\n\t    _internal2Java.put(Type.Real, new JavaType(Byte.TYPE, 6));\n\t    _internal2Java.put(Type.Real, new JavaType(Character.TYPE, 7)); \n\t    _internal2Java.put(Type.Real, new JavaType(Object.class, 8));\n            \n\t    _internal2Java.put(Type.Int, new JavaType(Double.TYPE, 0));\n\t    _internal2Java.put(Type.Int, new JavaType(Double.class, 1));\n\t    _internal2Java.put(Type.Int, new JavaType(Float.TYPE, 2));\n\t    _internal2Java.put(Type.Int, new JavaType(Long.TYPE, 3));\n\t    _internal2Java.put(Type.Int, new JavaType(Integer.TYPE, 4));\n\t    _internal2Java.put(Type.Int, new JavaType(Short.TYPE, 5));\n\t    _internal2Java.put(Type.Int, new JavaType(Byte.TYPE, 6));\n\t    _internal2Java.put(Type.Int, new JavaType(Character.TYPE, 7)); \n\t    _internal2Java.put(Type.Int, new JavaType(Object.class, 8));\n            \n\t    _internal2Java.put(Type.String, new JavaType(String.class, 0)); \n\t    _internal2Java.put(Type.String, new JavaType(Object.class, 1));\n\n\t    _internal2Java.put(Type.NodeSet, new JavaType(nodeListClass, 0)); \n\t    _internal2Java.put(Type.NodeSet, new JavaType(nodeClass, 1)); \n\t    _internal2Java.put(Type.NodeSet, new JavaType(Object.class, 2));\n\t    _internal2Java.put(Type.NodeSet, new JavaType(String.class, 3)); \n\n\t    _internal2Java.put(Type.Node, new JavaType(nodeListClass, 0));\n\t    _internal2Java.put(Type.Node, new JavaType(nodeClass, 1));  \n\t    _internal2Java.put(Type.Node, new JavaType(Object.class, 2));\n\t    _internal2Java.put(Type.Node, new JavaType(String.class, 3));\n\n\t    _internal2Java.put(Type.ResultTree, new JavaType(nodeListClass, 0));\n\t    _internal2Java.put(Type.ResultTree, new JavaType(nodeClass, 1)); \n\t    _internal2Java.put(Type.ResultTree, new JavaType(Object.class, 2));\n\t    _internal2Java.put(Type.ResultTree, new JavaType(String.class, 3));\n\n\t    _internal2Java.put(Type.Reference, new JavaType(Object.class, 0));\n\n\t    _java2Internal.put(Boolean.TYPE, Type.Boolean); \n\t    _java2Internal.put(Void.TYPE, Type.Void);\n\t    _java2Internal.put(Character.TYPE, Type.Real); \n\t    _java2Internal.put(Byte.TYPE, Type.Real);\n\t    _java2Internal.put(Short.TYPE, Type.Real);\n\t    _java2Internal.put(Integer.TYPE, Type.Real);\n\t    _java2Internal.put(Long.TYPE, Type.Real);\n\t    _java2Internal.put(Float.TYPE, Type.Real);\n\t    _java2Internal.put(Double.TYPE, Type.Real);\n\n\t    _java2Internal.put(String.class, Type.String);\n\n\t    _java2Internal.put(Object.class, Type.Reference);\n\n\t    _java2Internal.put(nodeListClass, Type.NodeSet);\n\t    _java2Internal.put(nodeClass, Type.NodeSet);\n\t    \n\t    _extensionNamespaceTable.put(EXT_XALAN, \"org.apache.xalan.lib.Extensions\");\n\t    _extensionNamespaceTable.put(EXSLT_COMMON, \"org.apache.xalan.lib.ExsltCommon\");\n\t    _extensionNamespaceTable.put(EXSLT_MATH, \"org.apache.xalan.lib.ExsltMath\");\n\t    _extensionNamespaceTable.put(EXSLT_SETS, \"org.apache.xalan.lib.ExsltSets\");\n\t    _extensionNamespaceTable.put(EXSLT_DATETIME, \"org.apache.xalan.lib.ExsltDatetime\");\n\t    _extensionNamespaceTable.put(EXSLT_STRINGS, \"org.apache.xalan.lib.ExsltStrings\");\n\t    \n\t    _extensionFunctionTable.put(EXSLT_COMMON + \":nodeSet\", \"nodeset\");\n\t    _extensionFunctionTable.put(EXSLT_COMMON + \":objectType\", \"objectType\");\t    \n\t    _extensionFunctionTable.put(EXT_XALAN + \":nodeset\", \"nodeset\");\n\t}\n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(e);\n\t}\n    }\n\t\t\n    public FunctionCall(QName fname, Vector arguments) {\n\t_fname = fname;\n\t_arguments = arguments;\n\t_type = null;\n    }\n\n    public FunctionCall(QName fname) {\n\tthis(fname, EMPTY_ARG_LIST);\n    }\n\n    public String getName() {\n\treturn(_fname.toString());\n    }\n\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tif (_arguments != null) {\n\t    final int n = _arguments.size();\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = (Expression)_arguments.elementAt(i);\n\t\texp.setParser(parser);\n\t\texp.setParent(this);\n\t    }\n\t}\n    }\n\n    public String getClassNameFromUri(String uri) \n    {   \n        String className = (String)_extensionNamespaceTable.get(uri);\n    \n        if (className != null)\n            return className;\n        else {\n            if (uri.startsWith(JAVA_EXT_XSLTC)) {\n      \t    \tint length = JAVA_EXT_XSLTC.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else if (uri.startsWith(JAVA_EXT_XALAN)) {\n      \t    \tint length = JAVA_EXT_XALAN.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else if (uri.startsWith(JAVA_EXT_XALAN_OLD)) {\n      \t    \tint length = JAVA_EXT_XALAN_OLD.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else {\n      \t    \tint index = uri.lastIndexOf('/');\n      \t    \treturn (index > 0) ? uri.substring(index+1) : uri;\n            }      \n        }\n    }\n\n    /**\n     * Type check a function call. Since different type conversions apply,\n     * type checking is different for standard and external (Java) functions.\n     */\n    public Type typeCheck(SymbolTable stable) \n\tthrows TypeCheckError \n    {\n        if (_type != null) return _type;\n\n\tfinal String namespace = _fname.getNamespace();\n\tString local = _fname.getLocalPart();\n\n\tif (isExtension()) {\n\t    _fname = new QName(null, null, local);\n\t    return typeCheckStandard(stable);\n\t}\n\telse if (isStandard()) {\n\t    return typeCheckStandard(stable);\n\t}\n\telse {\n\t    try {\n\t    \t_className = getClassNameFromUri(namespace);\n\t\t  \n                final int pos = local.lastIndexOf('.');\n\t\tif (pos > 0) {\n\t\t    _isStatic = true;\n\t\t    if (_className != null && _className.length() > 0) {\n\t\t    \t_namespace_format = NAMESPACE_FORMAT_PACKAGE;\n\t\t     \t_className = _className + \".\" + local.substring(0, pos);\n\t\t    }\n\t\t    else {\n\t\t     \t_namespace_format = NAMESPACE_FORMAT_JAVA;\n\t\t     \t_className = local.substring(0, pos);\n\t\t    }\n\t\t\t  \n\t\t    _fname = new QName(namespace, null, local.substring(pos + 1));\n\t\t}\n\t\telse {\n\t\t    if (_className != null && _className.length() > 0) {\n\t\t    \ttry {\n                            _clazz = ObjectFactory.findProviderClass(\n                                _className, ObjectFactory.findClassLoader(), true);\n\t\t            _namespace_format = NAMESPACE_FORMAT_CLASS;\n\t\t    \t}\n\t\t    \tcatch (ClassNotFoundException e) {\n\t\t      \t    _namespace_format = NAMESPACE_FORMAT_PACKAGE;\t\n\t\t        }\n\t\t    }\n\t\t    else\n\t            \t_namespace_format = NAMESPACE_FORMAT_JAVA;\n\t\t\t\n\t\t    if (local.indexOf('-') > 0) {\n\t\t        local = replaceDash(local);\n\t\t    }\n\t\t    \n\t\t    String extFunction = (String)_extensionFunctionTable.get(namespace + \":\" + local);\n\t\t    if (extFunction != null) {\n\t\t      \t_fname = new QName(null, null, extFunction);\n\t\t      \treturn typeCheckStandard(stable);\n\t\t    }\n\t\t    else\n\t\t      \t_fname = new QName(namespace, null, local);\n\t\t}\n\t\t  \n\t\treturn typeCheckExternal(stable);\n\t    } \n\t    catch (TypeCheckError e) {\n\t\tErrorMsg errorMsg = e.getErrorMsg();\n\t\tif (errorMsg == null) {\n\t\t    final String name = _fname.getLocalPart();\n\t\t    errorMsg = new ErrorMsg(ErrorMsg.METHOD_NOT_FOUND_ERR, name);\n\t\t}\n\t\tgetParser().reportError(ERROR, errorMsg);\n\t\treturn _type = Type.Void;\n\t    }\n\t  }\n    }\n\n    /**\n     * Type check a call to a standard function. Insert CastExprs when needed.\n     * If as a result of the insertion of a CastExpr a type check error is \n     * thrown, then catch it and re-throw it with a new \"this\".\n     */\n    public Type typeCheckStandard(SymbolTable stable) throws TypeCheckError {\n\n\tfinal int n = _arguments.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\tfinal MethodType args = new MethodType(Type.Void, argsType);\n\tfinal MethodType ptype =\n\t    lookupPrimop(stable, _fname.getLocalPart(), args);\n\n\tif (ptype != null) {\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Type argType = (Type) ptype.argsType().elementAt(i);\n\t\tfinal Expression exp = (Expression)_arguments.elementAt(i);\n\t\tif (!argType.identicalTo(exp.getType())) {\n\t\t    try {\n\t\t\t_arguments.setElementAt(new CastExpr(exp, argType), i);\n\t\t    }\n\t\t    catch (TypeCheckError e) {\n\t\t    }\n\t\t}\n\t    }\n\t    _chosenMethodType = ptype;\n\t    return _type = ptype.resultType();\n\t}\n\tthrow new TypeCheckError(this);\n    }\n\n   \n\n    public Type typeCheckConstructor(SymbolTable stable) throws TypeCheckError{\n        final Vector constructors = findConstructors();\n\tif (constructors == null) {\n            throw new TypeCheckError(ErrorMsg.CONSTRUCTOR_NOT_FOUND, \n\t\t_className);\n        \n\t}\n\n\tfinal int nConstructors = constructors.size();\n\tfinal int nArgs = _arguments.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\n\tint bestConstrDistance = Integer.MAX_VALUE;\n\tfor (int j, i = 0; i < nConstructors; i++) {\n\t    final Constructor constructor = \n\t\t(Constructor)constructors.elementAt(i);\n\t    final Class[] paramTypes = constructor.getParameterTypes();\n\n\t    Class extType = null;\n\t    int currConstrDistance = 0;\n\t    for (j = 0; j < nArgs; j++) {\n\t\textType = paramTypes[j];\n\t\tfinal Type intType = (Type)argsType.elementAt(j);\n\t\tObject match = _internal2Java.maps(intType, extType);\n\t\tif (match != null) {\n\t\t    currConstrDistance += ((JavaType)match).distance;\n\t\t}\n\t\telse if (intType instanceof ObjectType) {\n\t\t    ObjectType objectType = (ObjectType)intType;\n\t\t    if (objectType.getJavaClass() == extType)\n\t\t        continue;\n\t\t    else if (extType.isAssignableFrom(objectType.getJavaClass()))\n\t\t        currConstrDistance += 1;\n\t\t    else {\n\t\t\tcurrConstrDistance = Integer.MAX_VALUE;\n\t\t\tbreak;\n\t\t    }\n\t\t}\n\t\telse {\n\t\t    currConstrDistance = Integer.MAX_VALUE;\n\t\t    break;\n\t\t} \n\t    }\n\n\t    if (j == nArgs && currConstrDistance < bestConstrDistance ) {\n\t        _chosenConstructor = constructor;\n\t        _isExtConstructor = true;\n\t\tbestConstrDistance = currConstrDistance;\n\t\t\n                _type = (_clazz != null) ? Type.newObjectType(_clazz)\n                    : Type.newObjectType(_className);\n\t    }\n\t}\n\n\tif (_type != null) {\n           return _type;\n\t}\n        else{\n          resolveDynamic = true;\n        }  \n\n        return  _type = (_clazz != null) ? Type.newObjectType(_clazz)\n                    : Type.newObjectType(_className);\n    }\n\n\n    /**\n     * Type check a call to an external (Java) method.\n     * The method must be static an public, and a legal type conversion\n     * must exist for all its arguments and its return type.\n     * Every method of name <code>_fname</code> is inspected\n     * as a possible candidate.\n     */\n    public Type typeCheckExternal(SymbolTable stable) throws TypeCheckError {\n\tint nArgs = _arguments.size();\n\tfinal String name = _fname.getLocalPart();\n    \n\tif (_fname.getLocalPart().equals(\"new\")) {\n\t    return typeCheckConstructor(stable);\n\t}\n\telse {\n\t    boolean hasThisArgument = false;\n\t  \n\t    if (nArgs == 0)\n\t        _isStatic = true;\n\t  \n\t    if (!_isStatic) {\n\t        if (_namespace_format == NAMESPACE_FORMAT_JAVA\n\t  \t    || _namespace_format == NAMESPACE_FORMAT_PACKAGE)\n\t   \t    hasThisArgument = true;\n\t  \t  \n\t  \tExpression firstArg = (Expression)_arguments.elementAt(0);\n\t  \tType firstArgType = (Type)firstArg.typeCheck(stable);\n\t  \t\n\t  \tif (_namespace_format == NAMESPACE_FORMAT_CLASS\n\t  \t    && firstArgType instanceof ObjectType\n\t  \t    && _clazz != null\n\t  \t    && _clazz.isAssignableFrom(((ObjectType)firstArgType).getJavaClass()))\n\t  \t    hasThisArgument = true;\n                else if(firstArgType instanceof ReferenceType){\n                    resolveDynamic = true;\n              \t    typeCheckArgs(stable);\n                    return Type.String;\n                }\n\t  \t\n\t  \tif (hasThisArgument) {\n\t  \t    _thisArgument = (Expression) _arguments.elementAt(0);\n\t  \t    _arguments.remove(0); nArgs--;\n\t\t    if (firstArgType instanceof ObjectType) {\n\t\t    \t_className = ((ObjectType) firstArgType).getJavaClassName();\n\t\t    }\n\t\t    else\n\t\t    \tthrow new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, name);  \t  \t\n\t  \t}\n\t    }\n\t    else if (_className.length() == 0) {\n\t\t/*\n\t\t * Warn user if external function could not be resolved.\n\t\t * Warning will _NOT_ be issued is the call is properly\n\t\t * wrapped in an <xsl:if> or <xsl:when> element. For details\n\t\t * see If.parserContents() and When.parserContents()\n\t\t */\n\t\tfinal Parser parser = getParser();\n\t\tif (parser != null) {\n\t\t    reportWarning(this, parser, ErrorMsg.FUNCTION_RESOLVE_ERR,\n\t\t\t\t  _fname.toString());\n\t\t}\n\t\tunresolvedExternal = true;\n\t    }\n\t}\n\t\n\tfinal Vector methods = findMethods();\n\t\n\tif (methods == null) {\n\t    throw new TypeCheckError(ErrorMsg.METHOD_NOT_FOUND_ERR, _className + \".\" + name);\n\t}\n\n\tClass extType = null;\n\tfinal int nMethods = methods.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\n\tint bestMethodDistance  = Integer.MAX_VALUE;\n\tfor (int j, i = 0; i < nMethods; i++) {\n\t    final Method method = (Method)methods.elementAt(i);\n\t    final Class[] paramTypes = method.getParameterTypes();\n\t    \n\t    int currMethodDistance = 0;\n\t    for (j = 0; j < nArgs; j++) {\n\t\textType = paramTypes[j];\n\t\tfinal Type intType = (Type)argsType.elementAt(j);\n\t\tObject match = _internal2Java.maps(intType, extType);\n\t\tif (match != null) {\n\t\t    currMethodDistance += ((JavaType)match).distance; \n\t\t}\n\t\telse {\n\t\t    if (intType instanceof ReferenceType) {\n\t\t       currMethodDistance += 1; \n\t\t    }\n\t\t    else if (intType instanceof ObjectType) {\n\t\t        ObjectType object = (ObjectType)intType;\n\t\t        if (extType.getName().equals(object.getJavaClassName()))\n\t\t            currMethodDistance += 0;\n\t\t      \telse if (extType.isAssignableFrom(object.getJavaClass()))\n\t\t            currMethodDistance += 1;\n\t\t      \telse {\n\t\t      \t    currMethodDistance = Integer.MAX_VALUE;\n\t\t      \t    break;\n\t\t        }\n\t\t    }\n\t\t    else {\n\t\t        currMethodDistance = Integer.MAX_VALUE;\n\t\t        break;\n\t\t    }\n\t\t}\n\t    }\n\n\t    if (j == nArgs) {\n\t\t  extType = method.getReturnType();\n\t\t\n\t\t  _type = (Type) _java2Internal.get(extType);\n\t\t  if (_type == null) {\n\t\t      _type = Type.newObjectType(extType);\n\t\t  }\t\t\n\n\t\t  if (_type != null && currMethodDistance < bestMethodDistance) {\n\t\t      _chosenMethod = method;\n\t\t      bestMethodDistance = currMethodDistance;\n\t\t  }\n\t    }\n\t}\n\t\n\tif (_chosenMethod != null && _thisArgument == null &&\n\t    !Modifier.isStatic(_chosenMethod.getModifiers())) {\n\t    throw new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, getMethodSignature(argsType));\n\t}\n\n\tif (_type != null) {\n\t    if (_type == Type.NodeSet) {\n            \tgetXSLTC().setMultiDocument(true);\n            }\n\t    return _type;\n\t}\n\n\tthrow new TypeCheckError(ErrorMsg.ARGUMENT_CONVERSION_ERR, getMethodSignature(argsType));\n    }\n\n    /**\n     * Type check the actual arguments of this function call.\n     */\n    public Vector typeCheckArgs(SymbolTable stable) throws TypeCheckError {\n\tfinal Vector result = new Vector();\n\tfinal Enumeration e = _arguments.elements();\t\n\twhile (e.hasMoreElements()) {\n\t    final Expression exp = (Expression)e.nextElement();\n\t    result.addElement(exp.typeCheck(stable));\n\t}\n\treturn result;\n    }\n\n    protected final Expression argument(int i) {\n\treturn (Expression)_arguments.elementAt(i);\n    }\n\n    protected final Expression argument() {\n\treturn argument(0);\n    }\n    \n    protected final int argumentCount() {\n\treturn _arguments.size();\n    }\n\n    protected final void setArgument(int i, Expression exp) {\n\t_arguments.setElementAt(exp, i);\n    }\n\n    /**\n     * Compile the function call and treat as an expression\n     * Update true/false-lists.\n     */\n    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) \n    {\n\tType type = Type.Boolean;\n\tif (_chosenMethodType != null)\n\t    type = _chosenMethodType.resultType();\n\n\tfinal InstructionList il = methodGen.getInstructionList();\n\ttranslate(classGen, methodGen);\n\n\tif ((type instanceof BooleanType) || (type instanceof IntType)) {\n\t    _falseList.add(il.append(new IFEQ(null)));\n\t}\n    }\n\n\n    /**\n     * Translate a function call. The compiled code will leave the function's\n     * return value on the JVM's stack.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal int n = argumentCount();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tint index;\n\n\tif (isStandard() || isExtension()) {\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startIterator(classGen, methodGen);\n\t    }\n\n\t    final String name = _fname.toString().replace('-', '_') + \"F\";\n\t    String args = Constants.EMPTYSTRING;\n\n\t    if (name.equals(\"sumF\")) {\n\t\targs = DOM_INTF_SIG;\n\t\til.append(methodGen.loadDOM());\n\t    }\n\t    else if (name.equals(\"normalize_spaceF\")) {\n\t\tif (_chosenMethodType.toSignature(args).\n\t\t    equals(\"()Ljava/lang/String;\")) {\n\t\t    args = \"I\"+DOM_INTF_SIG;\n\t\t    il.append(methodGen.loadContextNode());\n\t\t    il.append(methodGen.loadDOM());\n\t\t}\n\t    }\n\n\t    index = cpg.addMethodref(BASIS_LIBRARY_CLASS, name,\n\t\t\t\t     _chosenMethodType.toSignature(args));\n\t    il.append(new INVOKESTATIC(index));\n\t}\n\telse if (unresolvedExternal) {\n\t    index = cpg.addMethodref(BASIS_LIBRARY_CLASS,\n\t\t\t\t     \"unresolved_externalF\",\n\t\t\t\t     \"(Ljava/lang/String;)V\");\n\t    il.append(new PUSH(cpg, _fname.toString()));\n\t    il.append(new INVOKESTATIC(index));\n\t}\n\telse if (_isExtConstructor) {\n\t    final String clazz = \n\t\t_chosenConstructor.getDeclaringClass().getName();\n\t    Class[] paramTypes = _chosenConstructor.getParameterTypes();\n\t    \n\t    il.append(new NEW(cpg.addClass(_className)));\n\t    il.append(InstructionConstants.DUP);\n\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startIterator(classGen, methodGen);\n\t\texp.getType().translateTo(classGen, methodGen, paramTypes[i]);\n\t    }\n\n\t    final StringBuffer buffer = new StringBuffer();\n\t    buffer.append('(');\n\t    for (int i = 0; i < paramTypes.length; i++) {\n\t\tbuffer.append(getSignature(paramTypes[i]));\n\t    }\n\t    buffer.append(')');\n\t    buffer.append(\"V\");\n\n\t    index = cpg.addMethodref(clazz,\n\t\t\t\t     \"<init>\", \n\t\t\t\t     buffer.toString());\n\t    il.append(new INVOKESPECIAL(index));\n\n\t    (Type.Object).translateFrom(classGen, methodGen, \n\t\t\t\t_chosenConstructor.getDeclaringClass());\n\t    \n\t}\n\telse if(resolveDynamic) {\n\n          final LocalVariableGen _local = methodGen.addLocalVariable2(\"objects\",\n              org.apache.bcel.generic.Type.OBJECT, il.getEnd());\n\n          il.append(new PUSH(cpg, n + 1));\n          il.append(new ANEWARRAY(cpg.addClass(OBJECT_CLASS)));\n\n          il.append(DUP);\n          if (_thisArgument != null) {\n            il.append(new PUSH(cpg, 0));\n            _thisArgument.translate(classGen, methodGen);\n          }\n          else {\n            il.append(new PUSH(cpg, 0));\n            il.append(ACONST_NULL);\n          }\n          il.append(AASTORE);\n\n          for (int i = 0; i < n; i++) {\n            il.append(DUP);\n            il.append(new PUSH(cpg, i + 1));\n            Expression exp = argument(i);\n            exp.translate(classGen, methodGen);\n            exp.startIterator(classGen, methodGen);\n            exp.getType().translateTo(classGen, methodGen, Type.Reference);\n            il.append(AASTORE);\n          }\n          il.append(new ASTORE(_local.getIndex()));\n\n          String methodName = null;\n          if (_chosenMethod != null)\n            methodName = _chosenMethod.getName();\n          else\n            methodName = _fname.getLocalPart();\n\n          il.append(new PUSH(cpg, _className));\n          il.append(new PUSH(cpg, methodName));\n          il.append(new ALOAD(_local.getIndex()));\n\n          index = cpg.addMethodref(CALL_FUNCTION_CLASS, INVOKE_METHOD,\n              \"(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;\");\n          il.append(new INVOKESTATIC(index));\n\n        }\n\telse {\n\t    final String clazz = _chosenMethod.getDeclaringClass().getName();\n\t    Class[] paramTypes = _chosenMethod.getParameterTypes();\n\n\t    if (_thisArgument != null) {\n\t\t_thisArgument.translate(classGen, methodGen);\n\t    }\t    \n\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startIterator(classGen, methodGen);\n\t\texp.getType().translateTo(classGen, methodGen, paramTypes[i]);\n\t    }\n\n\t    final StringBuffer buffer = new StringBuffer();\n\t    buffer.append('(');\n\t    for (int i = 0; i < paramTypes.length; i++) {\n\t\tbuffer.append(getSignature(paramTypes[i]));\n\t    }\n\t    buffer.append(')');\n\t    buffer.append(getSignature(_chosenMethod.getReturnType()));\n\n\t    if (_thisArgument != null && _clazz.isInterface()) {\n\t        index = cpg.addInterfaceMethodref(clazz,\n\t\t\t\t     _fname.getLocalPart(),\n\t\t\t\t     buffer.toString());\n\t\til.append(new INVOKEINTERFACE(index, n+1));\n            }\n            else {\n\t        index = cpg.addMethodref(clazz,\n\t\t\t\t     _fname.getLocalPart(),\n\t\t\t\t     buffer.toString());\n\t        il.append(_thisArgument != null ? (InvokeInstruction) new INVOKEVIRTUAL(index) :\n\t    \t\t  (InvokeInstruction) new INVOKESTATIC(index));\n            }\n \n\t    _type.translateFrom(classGen, methodGen,\n\t\t\t\t_chosenMethod.getReturnType());\n\t}\n    }\n\n    public String toString() {\n\treturn \"funcall(\" + _fname + \", \" + _arguments + ')';\n    }\n\n    public boolean isStandard() {\n\tfinal String namespace = _fname.getNamespace();\n\treturn (namespace == null) || (namespace.equals(Constants.EMPTYSTRING));\n    }\n\n    public boolean isExtension() {\n\tfinal String namespace = _fname.getNamespace();\n\treturn (namespace != null) && (namespace.equals(EXT_XSLTC));\n    }\n\n    /**\n     * Returns a vector with all methods named <code>_fname</code>\n     * after stripping its namespace or <code>null</code>\n     * if no such methods exist.\n     */\n    private Vector findMethods() {\n\t  \n\t  Vector result = null;\n\t  final String namespace = _fname.getNamespace();\n\n\t  if (_className != null && _className.length() > 0) {\n\t    final int nArgs = _arguments.size();\n\t    try {\n\t      if (_clazz == null) {\n                _clazz = ObjectFactory.findProviderClass(\n                  _className, ObjectFactory.findClassLoader(), true);\n\n\t\tif (_clazz == null) {\n\t\t  final ErrorMsg msg =\n\t\t        new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n\t\t  getParser().reportError(Constants.ERROR, msg);\n\t\t}\n\t      }\n\n\t      final String methodName = _fname.getLocalPart();\n\t      final Method[] methods = _clazz.getMethods();\n\n\t      for (int i = 0; i < methods.length; i++) {\n\t\tfinal int mods = methods[i].getModifiers();\n\t\tif (Modifier.isPublic(mods)\n\t\t    && methods[i].getName().equals(methodName)\n\t\t    && methods[i].getParameterTypes().length == nArgs)\n\t\t{\n\t\t  if (result == null) {\n\t\t    result = new Vector();\n\t          }\n\t\t  result.addElement(methods[i]);\n\t\t}\n\t      }\n\t    }\n\t    catch (ClassNotFoundException e) {\n\t\t  final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n\t\t  getParser().reportError(Constants.ERROR, msg);\n\t    }\n\t  }\n\t  return result;\n    }\n\n    /**\n     * Returns a vector with all constructors named <code>_fname</code>\n     * after stripping its namespace or <code>null</code>\n     * if no such methods exist.\n     */\n    private Vector findConstructors() {\n        Vector result = null;\n        final String namespace = _fname.getNamespace();\n\n        final int nArgs = _arguments.size();\n        try {\n          if (_clazz == null) {\n            _clazz = ObjectFactory.findProviderClass(\n              _className, ObjectFactory.findClassLoader(), true);\n\n            if (_clazz == null) {\n              final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n              getParser().reportError(Constants.ERROR, msg);\n            }          \n          }\n\n          final Constructor[] constructors = _clazz.getConstructors();\n\n          for (int i = 0; i < constructors.length; i++) {\n              final int mods = constructors[i].getModifiers();\n              if (Modifier.isPublic(mods) &&\n                  constructors[i].getParameterTypes().length == nArgs)\n              {\n                if (result == null) {\n                  result = new Vector();\n                }\n                result.addElement(constructors[i]);\n              }\n          }\n        }\n        catch (ClassNotFoundException e) {\n          final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n          getParser().reportError(Constants.ERROR, msg);\n        }\n            \n        return result;\n    }\n\n\n    /**\n     * Compute the JVM signature for the class.\n     */\n    static final String getSignature(Class clazz) {\n\tif (clazz.isArray()) {\n\t    final StringBuffer sb = new StringBuffer();\n\t    Class cl = clazz;\n\t    while (cl.isArray()) {\n\t\tsb.append(\"[\");\n\t\tcl = cl.getComponentType();\n\t    }\n\t    sb.append(getSignature(cl));\n\t    return sb.toString();\n\t}\n\telse if (clazz.isPrimitive()) {\n\t    if (clazz == Integer.TYPE) {\n\t\treturn \"I\";\n\t    }\n\t    else if (clazz == Byte.TYPE) {\n\t\treturn \"B\";\n\t    }\n\t    else if (clazz == Long.TYPE) {\n\t\treturn \"J\";\n\t    }\n\t    else if (clazz == Float.TYPE) {\n\t\treturn \"F\";\n\t    }\n\t    else if (clazz == Double.TYPE) {\n\t\treturn \"D\";\n\t    }\n\t    else if (clazz == Short.TYPE) {\n\t\treturn \"S\";\n\t    }\n\t    else if (clazz == Character.TYPE) {\n\t\treturn \"C\";\n\t    }\n\t    else if (clazz == Boolean.TYPE) {\n\t\treturn \"Z\";\n\t    }\n\t    else if (clazz == Void.TYPE) {\n\t\treturn \"V\";\n\t    }\n\t    else {\n\t\tfinal String name = clazz.toString();\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);\n\t\tthrow new Error(err.toString());\n\t    }\n\t}\n\telse {\n\t    return \"L\" + clazz.getName().replace('.', '/') + ';';\n\t}\n    }\n\n    /**\n     * Compute the JVM method descriptor for the method.\n     */\n    static final String getSignature(Method meth) {\n\tfinal StringBuffer sb = new StringBuffer();\n\tsb.append('(');\n\tfor (int j = 0; j < params.length; j++) {\n\t    sb.append(getSignature(params[j]));\n\t}\n\treturn sb.append(')').append(getSignature(meth.getReturnType()))\n\t    .toString();\n    }\n\n    /**\n     * Compute the JVM constructor descriptor for the constructor.\n     */\n    static final String getSignature(Constructor cons) {\n\tfinal StringBuffer sb = new StringBuffer();\n\tsb.append('(');\n\tfor (int j = 0; j < params.length; j++) {\n\t    sb.append(getSignature(params[j]));\n\t}\n\treturn sb.append(\")V\").toString();\n    }\n    \n    /**\n     * Return the signature of the current method\n     */\n    private String getMethodSignature(Vector argsType) {\n \tfinal StringBuffer buf = new StringBuffer(_className);\n        buf.append('.').append(_fname.getLocalPart()).append('(');\n\t  \n\tint nArgs = argsType.size();\t    \n\tfor (int i = 0; i < nArgs; i++) {\n\t    final Type intType = (Type)argsType.elementAt(i);\n\t    buf.append(intType.toString());\n\t    if (i < nArgs - 1) buf.append(\", \");\n\t}\n\t  \n\tbuf.append(')');\n\treturn buf.toString();\n    }\n\n    /**\n     * To support EXSLT extensions, convert names with dash to allowable Java names: \n     * e.g., convert abc-xyz to abcXyz.\n     * Note: dashes only appear in middle of an EXSLT function or element name.\n     */\n    protected static String replaceDash(String name)\n    {\n        char dash = '-';\n        StringBuffer buff = new StringBuffer(\"\");\n        for (int i = 0; i < name.length(); i++) {\n        if (i > 0 && name.charAt(i-1) == dash)\n            buff.append(Character.toUpperCase(name.charAt(i)));\n        else if (name.charAt(i) != dash)\n            buff.append(name.charAt(i));\n        }\n        return buff.toString();", "functions": [{"function_name": "getName", "code": "    public String getName() {\n\treturn(_fname.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tif (_arguments != null) {\n\t    final int n = _arguments.size();\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = (Expression)_arguments.elementAt(i);\n\t\texp.setParser(parser);\n\t\texp.setParent(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [5, 9], [4, 10], [4, 11], [4, 12], [8, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 5], [10, 4], [11, 4], [12, 4], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getClassNameFromUri", "code": "    public String getClassNameFromUri(String uri) \n    {   \n        String className = (String)_extensionNamespaceTable.get(uri);\n    \n        if (className != null)\n            return className;\n        else {\n            if (uri.startsWith(JAVA_EXT_XSLTC)) {\n      \t    \tint length = JAVA_EXT_XSLTC.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else if (uri.startsWith(JAVA_EXT_XALAN)) {\n      \t    \tint length = JAVA_EXT_XALAN.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else if (uri.startsWith(JAVA_EXT_XALAN_OLD)) {\n      \t    \tint length = JAVA_EXT_XALAN_OLD.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else {\n      \t    \tint index = uri.lastIndexOf('/');\n      \t    \treturn (index > 0) ? uri.substring(index+1) : uri;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "IF", "CALL", "RETURN", "VAR_DECL", "CALL", "RETURN", "VAR_DECL", "COND_EXPR", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "COND_EXPR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [2, 10], [8, 11], [8, 12], [6, 13], [6, 14], [11, 15], [8, 16], [8, 17], [13, 18], [11, 19], [11, 20], [11, 21], [11, 22], [16, 23], [18, 24], [18, 25], [14, 26], [19, 27], [21, 28], [23, 29], [23, 30], [17, 31], [25, 32], [26, 33], [26, 34], [27, 35], [27, 36], [20, 37], [28, 38], [28, 39], [22, 40], [30, 41], [31, 42], [31, 43], [35, 44], [36, 45], [37, 46], [39, 47], [40, 48], [40, 49], [44, 50], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 2], [11, 8], [12, 8], [13, 6], [14, 6], [15, 11], [16, 8], [17, 8], [18, 13], [19, 11], [20, 11], [21, 11], [22, 11], [23, 16], [24, 18], [25, 18], [26, 14], [27, 19], [28, 21], [29, 23], [30, 23], [31, 17], [32, 25], [33, 26], [34, 26], [35, 27], [36, 27], [37, 20], [38, 28], [39, 28], [40, 22], [41, 30], [42, 31], [43, 31], [44, 35], [45, 36], [46, 37], [47, 39], [48, 40], [49, 40], [50, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) \n\tthrows TypeCheckError \n    {\n        if (_type != null) return _type;\n\n\tfinal String namespace = _fname.getNamespace();\n\tString local = _fname.getLocalPart();\n\n\tif (isExtension()) {\n\t    _fname = new QName(null, null, local);\n\t    return typeCheckStandard(stable);\n\t}\n\telse if (isStandard()) {\n\t    return typeCheckStandard(stable);\n\t}\n\telse {\n\t    try {\n\t    \t_className = getClassNameFromUri(namespace);\n\t\t  \n                final int pos = local.lastIndexOf('.');\n\t\tif (pos > 0) {\n\t\t    _isStatic = true;\n\t\t    if (_className != null && _className.length() > 0) {\n\t\t    \t_namespace_format = NAMESPACE_FORMAT_PACKAGE;\n\t\t     \t_className = _className + \".\" + local.substring(0, pos);\n\t\t    }\n\t\t    else {\n\t\t     \t_namespace_format = NAMESPACE_FORMAT_JAVA;\n\t\t     \t_className = local.substring(0, pos);\n\t\t    }\n\t\t\t  \n\t\t    _fname = new QName(namespace, null, local.substring(pos + 1));\n\t\t}\n\t\telse {\n\t\t    if (_className != null && _className.length() > 0) {\n\t\t    \ttry {\n                            _clazz = ObjectFactory.findProviderClass(\n                                _className, ObjectFactory.findClassLoader(), true);\n\t\t            _namespace_format = NAMESPACE_FORMAT_CLASS;\n\t\t    \t}\n\t\t    \tcatch (ClassNotFoundException e) {\n\t\t      \t    _namespace_format = NAMESPACE_FORMAT_PACKAGE;\t\n\t\t        }\n\t\t    }\n\t\t    else\n\t            \t_namespace_format = NAMESPACE_FORMAT_JAVA;\n\t\t\t\n\t\t    if (local.indexOf('-') > 0) {\n\t\t        local = replaceDash(local);\n\t\t    }\n\t\t    \n\t\t    String extFunction = (String)_extensionFunctionTable.get(namespace + \":\" + local);\n\t\t    if (extFunction != null) {\n\t\t      \t_fname = new QName(null, null, extFunction);\n\t\t      \treturn typeCheckStandard(stable);\n\t\t    }\n\t\t    else\n\t\t      \t_fname = new QName(namespace, null, local);\n\t\t}\n\t\t  \n\t\treturn typeCheckExternal(stable);\n\t    } \n\t    catch (TypeCheckError e) {\n\t\tErrorMsg errorMsg = e.getErrorMsg();\n\t\tif (errorMsg == null) {\n\t\t    final String name = _fname.getLocalPart();\n\t\t    errorMsg = new ErrorMsg(ErrorMsg.METHOD_NOT_FOUND_ERR, name);\n\t\t}\n\t\tgetParser().reportError(ERROR, errorMsg);\n\t\treturn _type = Type.Void;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "TRY", "RETURN", "CALL", "ASSIGN", "CATCH", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "IF", "VAR_DECL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [4, 8], [4, 9], [6, 10], [1, 11], [2, 12], [3, 13], [9, 14], [6, 15], [6, 16], [11, 17], [1, 18], [15, 19], [15, 20], [15, 21], [15, 22], [16, 23], [18, 24], [19, 25], [19, 26], [19, 27], [20, 28], [21, 29], [15, 30], [24, 31], [24, 32], [25, 33], [19, 34], [26, 35], [21, 36], [21, 37], [21, 38], [21, 39], [21, 40], [29, 41], [22, 42], [30, 43], [34, 44], [26, 45], [35, 46], [27, 47], [36, 48], [38, 49], [39, 50], [21, 51], [40, 52], [21, 53], [42, 54], [26, 55], [36, 56], [36, 57], [48, 58], [49, 59], [49, 60], [39, 61], [39, 62], [50, 63], [50, 64], [51, 65], [52, 66], [52, 67], [53, 68], [55, 69], [45, 70], [56, 71], [57, 72], [36, 73], [37, 74], [38, 75], [60, 76], [62, 77], [63, 78], [63, 79], [64, 80], [65, 81], [65, 82], [40, 83], [40, 84], [40, 85], [40, 86], [66, 87], [66, 88], [67, 89], [71, 90], [73, 91], [74, 92], [75, 93], [62, 94], [62, 95], [81, 96], [83, 97], [85, 98], [91, 99], [91, 100], [92, 101], [77, 102], [95, 103], [96, 104], [97, 105], [98, 106], [98, 107], [101, 108], [103, 109], [103, 110], [106, 111], [107, 112], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 4], [9, 4], [10, 6], [11, 1], [12, 2], [13, 3], [14, 9], [15, 6], [16, 6], [17, 11], [18, 1], [19, 15], [20, 15], [21, 15], [22, 15], [23, 16], [24, 18], [25, 19], [26, 19], [27, 19], [28, 20], [29, 21], [30, 15], [31, 24], [32, 24], [33, 25], [34, 19], [35, 26], [36, 21], [37, 21], [38, 21], [39, 21], [40, 21], [41, 29], [42, 22], [43, 30], [44, 34], [45, 26], [46, 35], [47, 27], [48, 36], [49, 38], [50, 39], [51, 21], [52, 40], [53, 21], [54, 42], [55, 26], [56, 36], [57, 36], [58, 48], [59, 49], [60, 49], [61, 39], [62, 39], [63, 50], [64, 50], [65, 51], [66, 52], [67, 52], [68, 53], [69, 55], [70, 45], [71, 56], [72, 57], [73, 36], [74, 37], [75, 38], [76, 60], [77, 62], [78, 63], [79, 63], [80, 64], [81, 65], [82, 65], [83, 40], [84, 40], [85, 40], [86, 40], [87, 66], [88, 66], [89, 67], [90, 71], [91, 73], [92, 74], [93, 75], [94, 62], [95, 62], [96, 81], [97, 83], [98, 85], [99, 91], [100, 91], [101, 92], [102, 77], [103, 95], [104, 96], [105, 97], [106, 98], [107, 98], [108, 101], [109, 103], [110, 103], [111, 106], [112, 107], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112]]}, {"function_name": "typeCheckStandard", "code": "    public Type typeCheckStandard(SymbolTable stable) throws TypeCheckError {\n\n\tfinal int n = _arguments.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\tfinal MethodType args = new MethodType(Type.Void, argsType);\n\tfinal MethodType ptype =\n\t    lookupPrimop(stable, _fname.getLocalPart(), args);\n\n\tif (ptype != null) {\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Type argType = (Type) ptype.argsType().elementAt(i);\n\t\tfinal Expression exp = (Expression)_arguments.elementAt(i);\n\t\tif (!argType.identicalTo(exp.getType())) {\n\t\t    try {\n\t\t\t_arguments.setElementAt(new CastExpr(exp, argType), i);\n\t\t    }\n\t\t    catch (TypeCheckError e) {\n\t\t    }\n\t\t}\n\t    }\n\t    _chosenMethodType = ptype;\n\t    return _type = ptype.resultType();\n\t}\n\tthrow new TypeCheckError(this);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "RETURN", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "TRY", "CALL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [9, 12], [3, 13], [4, 14], [5, 15], [6, 16], [10, 17], [2, 18], [11, 19], [13, 20], [17, 21], [11, 22], [11, 23], [11, 24], [22, 25], [11, 26], [22, 27], [25, 28], [27, 29], [23, 30], [24, 31], [27, 32], [31, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 9], [13, 3], [14, 4], [15, 5], [16, 6], [17, 10], [18, 2], [19, 11], [20, 13], [21, 17], [22, 11], [23, 11], [24, 11], [25, 22], [26, 11], [27, 22], [28, 25], [29, 27], [30, 23], [31, 24], [32, 27], [33, 31], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "typeCheckConstructor", "code": "    public Type typeCheckConstructor(SymbolTable stable) throws TypeCheckError{\n        final Vector constructors = findConstructors();\n\tif (constructors == null) {\n            throw new TypeCheckError(ErrorMsg.CONSTRUCTOR_NOT_FOUND, \n\t\t_className);\n        \n\t}\n\n\tfinal int nConstructors = constructors.size();\n\tfinal int nArgs = _arguments.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\n\tint bestConstrDistance = Integer.MAX_VALUE;\n\tfor (int j, i = 0; i < nConstructors; i++) {\n\t    final Constructor constructor = \n\t\t(Constructor)constructors.elementAt(i);\n\t    final Class[] paramTypes = constructor.getParameterTypes();\n\n\t    Class extType = null;\n\t    int currConstrDistance = 0;\n\t    for (j = 0; j < nArgs; j++) {\n\t\textType = paramTypes[j];\n\t\tfinal Type intType = (Type)argsType.elementAt(j);\n\t\tObject match = _internal2Java.maps(intType, extType);\n\t\tif (match != null) {\n\t\t    currConstrDistance += ((JavaType)match).distance;\n\t\t}\n\t\telse if (intType instanceof ObjectType) {\n\t\t    ObjectType objectType = (ObjectType)intType;\n\t\t    if (objectType.getJavaClass() == extType)\n\t\t        continue;\n\t\t    else if (extType.isAssignableFrom(objectType.getJavaClass()))\n\t\t        currConstrDistance += 1;\n\t\t    else {\n\t\t\tcurrConstrDistance = Integer.MAX_VALUE;\n\t\t\tbreak;\n\t\t    }\n\t\t}\n\t\telse {\n\t\t    currConstrDistance = Integer.MAX_VALUE;\n\t\t    break;\n\t\t} \n\t    }\n\n\t    if (j == nArgs && currConstrDistance < bestConstrDistance ) {\n\t        _chosenConstructor = constructor;\n\t        _isExtConstructor = true;\n\t\tbestConstrDistance = currConstrDistance;\n\t\t\n                _type = (_clazz != null) ? Type.newObjectType(_clazz)\n                    : Type.newObjectType(_className);\n\t    }\n\t}\n\n\tif (_type != null) {\n           return _type;\n\t}\n        else{\n          resolveDynamic = true;\n        }  \n\n        return  _type = (_clazz != null) ? Type.newObjectType(_clazz)\n                    : Type.newObjectType(_className);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "RETURN", "LITERAL_ANCHOR", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "IF", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [8, 14], [11, 15], [2, 16], [12, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [5, 24], [6, 25], [7, 26], [8, 27], [14, 28], [9, 29], [15, 30], [15, 31], [15, 32], [2, 33], [18, 34], [19, 35], [19, 36], [3, 37], [27, 38], [32, 39], [33, 40], [34, 41], [34, 42], [19, 43], [19, 44], [19, 45], [36, 46], [20, 47], [21, 48], [22, 49], [18, 50], [18, 51], [18, 52], [18, 53], [43, 54], [43, 55], [19, 56], [23, 57], [50, 58], [52, 59], [54, 60], [55, 61], [44, 62], [58, 63], [58, 64], [58, 65], [54, 66], [54, 67], [54, 68], [43, 69], [45, 70], [65, 71], [54, 72], [67, 73], [67, 74], [67, 75], [73, 76], [75, 77], [73, 78], [73, 79], [76, 80], [73, 81], [79, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 8], [15, 11], [16, 2], [17, 12], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 5], [25, 6], [26, 7], [27, 8], [28, 14], [29, 9], [30, 15], [31, 15], [32, 15], [33, 2], [34, 18], [35, 19], [36, 19], [37, 3], [38, 27], [39, 32], [40, 33], [41, 34], [42, 34], [43, 19], [44, 19], [45, 19], [46, 36], [47, 20], [48, 21], [49, 22], [50, 18], [51, 18], [52, 18], [53, 18], [54, 43], [55, 43], [56, 19], [57, 23], [58, 50], [59, 52], [60, 54], [61, 55], [62, 44], [63, 58], [64, 58], [65, 58], [66, 54], [67, 54], [68, 54], [69, 43], [70, 45], [71, 65], [72, 54], [73, 67], [74, 67], [75, 67], [76, 73], [77, 75], [78, 73], [79, 73], [80, 76], [81, 73], [82, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "typeCheckExternal", "code": "    public Type typeCheckExternal(SymbolTable stable) throws TypeCheckError {\n\tint nArgs = _arguments.size();\n\tfinal String name = _fname.getLocalPart();\n    \n\tif (_fname.getLocalPart().equals(\"new\")) {\n\t    return typeCheckConstructor(stable);\n\t}\n\telse {\n\t    boolean hasThisArgument = false;\n\t  \n\t    if (nArgs == 0)\n\t        _isStatic = true;\n\t  \n\t    if (!_isStatic) {\n\t        if (_namespace_format == NAMESPACE_FORMAT_JAVA\n\t  \t    || _namespace_format == NAMESPACE_FORMAT_PACKAGE)\n\t   \t    hasThisArgument = true;\n\t  \t  \n\t  \tExpression firstArg = (Expression)_arguments.elementAt(0);\n\t  \tType firstArgType = (Type)firstArg.typeCheck(stable);\n\t  \t\n\t  \tif (_namespace_format == NAMESPACE_FORMAT_CLASS\n\t  \t    && firstArgType instanceof ObjectType\n\t  \t    && _clazz != null\n\t  \t    && _clazz.isAssignableFrom(((ObjectType)firstArgType).getJavaClass()))\n\t  \t    hasThisArgument = true;\n                else if(firstArgType instanceof ReferenceType){\n                    resolveDynamic = true;\n              \t    typeCheckArgs(stable);\n                    return Type.String;\n                }\n\t  \t\n\t  \tif (hasThisArgument) {\n\t  \t    _thisArgument = (Expression) _arguments.elementAt(0);\n\t  \t    _arguments.remove(0); nArgs--;\n\t\t    if (firstArgType instanceof ObjectType) {\n\t\t    \t_className = ((ObjectType) firstArgType).getJavaClassName();\n\t\t    }\n\t\t    else\n\t\t    \tthrow new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, name);  \t  \t\n\t  \t}\n\t    }\n\t    else if (_className.length() == 0) {\n\t\t/*\n\t\t * Warn user if external function could not be resolved.\n\t\t * Warning will _NOT_ be issued is the call is properly\n\t\t * wrapped in an <xsl:if> or <xsl:when> element. For details\n\t\t * see If.parserContents() and When.parserContents()\n\t\t */\n\t\tfinal Parser parser = getParser();\n\t\tif (parser != null) {\n\t\t    reportWarning(this, parser, ErrorMsg.FUNCTION_RESOLVE_ERR,\n\t\t\t\t  _fname.toString());\n\t\t}\n\t\tunresolvedExternal = true;\n\t    }\n\t}\n\t\n\tfinal Vector methods = findMethods();\n\t\n\tif (methods == null) {\n\t    throw new TypeCheckError(ErrorMsg.METHOD_NOT_FOUND_ERR, _className + \".\" + name);\n\t}\n\n\tClass extType = null;\n\tfinal int nMethods = methods.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\n\tint bestMethodDistance  = Integer.MAX_VALUE;\n\tfor (int j, i = 0; i < nMethods; i++) {\n\t    final Method method = (Method)methods.elementAt(i);\n\t    final Class[] paramTypes = method.getParameterTypes();\n\t    \n\t    int currMethodDistance = 0;\n\t    for (j = 0; j < nArgs; j++) {\n\t\textType = paramTypes[j];\n\t\tfinal Type intType = (Type)argsType.elementAt(j);\n\t\tObject match = _internal2Java.maps(intType, extType);\n\t\tif (match != null) {\n\t\t    currMethodDistance += ((JavaType)match).distance; \n\t\t}\n\t\telse {\n\t\t    if (intType instanceof ReferenceType) {\n\t\t       currMethodDistance += 1; \n\t\t    }\n\t\t    else if (intType instanceof ObjectType) {\n\t\t        ObjectType object = (ObjectType)intType;\n\t\t        if (extType.getName().equals(object.getJavaClassName()))\n\t\t            currMethodDistance += 0;\n\t\t      \telse if (extType.isAssignableFrom(object.getJavaClass()))\n\t\t            currMethodDistance += 1;\n\t\t      \telse {\n\t\t      \t    currMethodDistance = Integer.MAX_VALUE;\n\t\t      \t    break;\n\t\t        }\n\t\t    }\n\t\t    else {\n\t\t        currMethodDistance = Integer.MAX_VALUE;\n\t\t        break;\n\t\t    }\n\t\t}\n\t    }\n\n\t    if (j == nArgs) {\n\t\t  extType = method.getReturnType();\n\t\t\n\t\t  _type = (Type) _java2Internal.get(extType);\n\t\t  if (_type == null) {\n\t\t      _type = Type.newObjectType(extType);\n\t\t  }\t\t\n\n\t\t  if (_type != null && currMethodDistance < bestMethodDistance) {\n\t\t      _chosenMethod = method;\n\t\t      bestMethodDistance = currMethodDistance;\n\t\t  }\n\t    }\n\t}\n\t\n\tif (_chosenMethod != null && _thisArgument == null &&\n\t    !Modifier.isStatic(_chosenMethod.getModifiers())) {\n\t    throw new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, getMethodSignature(argsType));\n\t}\n\n\tif (_type != null) {\n\t    if (_type == Type.NodeSet) {\n            \tgetXSLTC().setMultiDocument(true);\n            }\n\t    return _type;\n\t}\n\n\tthrow new TypeCheckError(ErrorMsg.ARGUMENT_CONVERSION_ERR, getMethodSignature(argsType));", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [2, 16], [3, 17], [4, 18], [9, 19], [11, 20], [15, 21], [2, 22], [2, 23], [16, 24], [3, 25], [17, 26], [17, 27], [4, 28], [4, 29], [4, 30], [4, 31], [4, 32], [6, 33], [7, 34], [8, 35], [9, 36], [19, 37], [10, 38], [11, 39], [11, 40], [11, 41], [11, 42], [20, 43], [12, 44], [13, 45], [23, 46], [25, 47], [26, 48], [27, 49], [27, 50], [28, 51], [29, 52], [29, 53], [4, 54], [36, 55], [39, 56], [40, 57], [42, 58], [43, 59], [47, 60], [49, 61], [50, 62], [28, 63], [28, 64], [29, 65], [29, 66], [29, 67], [53, 68], [30, 69], [31, 70], [55, 71], [56, 72], [39, 73], [39, 74], [39, 75], [39, 76], [39, 77], [40, 78], [57, 79], [41, 80], [23, 81], [63, 82], [64, 83], [28, 84], [28, 85], [65, 86], [29, 87], [32, 88], [71, 89], [56, 90], [56, 91], [72, 92], [72, 93], [74, 94], [74, 95], [77, 96], [78, 97], [81, 98], [82, 99], [82, 100], [83, 101], [85, 102], [65, 103], [86, 104], [66, 105], [89, 106], [56, 107], [90, 108], [73, 109], [94, 110], [74, 111], [95, 112], [95, 113], [77, 114], [96, 115], [96, 116], [98, 117], [63, 118], [63, 119], [100, 120], [64, 121], [84, 122], [103, 123], [103, 124], [65, 125], [67, 126], [107, 127], [108, 128], [91, 129], [109, 130], [109, 131], [73, 132], [73, 133], [94, 134], [111, 135], [113, 136], [113, 137], [75, 138], [76, 139], [114, 140], [121, 141], [123, 142], [90, 143], [130, 144], [132, 145], [94, 146], [94, 147], [136, 148], [137, 149], [137, 150], [139, 151], [123, 152], [123, 153], [123, 154], [103, 155], [143, 156], [109, 157], [133, 158], [147, 159], [123, 160], [153, 161], [153, 162], [155, 163], [158, 164], [161, 165], [153, 166], [162, 167], [161, 168], [161, 169], [165, 170], [166, 171], [167, 172], [161, 173], [169, 174], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 2], [17, 3], [18, 4], [19, 9], [20, 11], [21, 15], [22, 2], [23, 2], [24, 16], [25, 3], [26, 17], [27, 17], [28, 4], [29, 4], [30, 4], [31, 4], [32, 4], [33, 6], [34, 7], [35, 8], [36, 9], [37, 19], [38, 10], [39, 11], [40, 11], [41, 11], [42, 11], [43, 20], [44, 12], [45, 13], [46, 23], [47, 25], [48, 26], [49, 27], [50, 27], [51, 28], [52, 29], [53, 29], [54, 4], [55, 36], [56, 39], [57, 40], [58, 42], [59, 43], [60, 47], [61, 49], [62, 50], [63, 28], [64, 28], [65, 29], [66, 29], [67, 29], [68, 53], [69, 30], [70, 31], [71, 55], [72, 56], [73, 39], [74, 39], [75, 39], [76, 39], [77, 39], [78, 40], [79, 57], [80, 41], [81, 23], [82, 63], [83, 64], [84, 28], [85, 28], [86, 65], [87, 29], [88, 32], [89, 71], [90, 56], [91, 56], [92, 72], [93, 72], [94, 74], [95, 74], [96, 77], [97, 78], [98, 81], [99, 82], [100, 82], [101, 83], [102, 85], [103, 65], [104, 86], [105, 66], [106, 89], [107, 56], [108, 90], [109, 73], [110, 94], [111, 74], [112, 95], [113, 95], [114, 77], [115, 96], [116, 96], [117, 98], [118, 63], [119, 63], [120, 100], [121, 64], [122, 84], [123, 103], [124, 103], [125, 65], [126, 67], [127, 107], [128, 108], [129, 91], [130, 109], [131, 109], [132, 73], [133, 73], [134, 94], [135, 111], [136, 113], [137, 113], [138, 75], [139, 76], [140, 114], [141, 121], [142, 123], [143, 90], [144, 130], [145, 132], [146, 94], [147, 94], [148, 136], [149, 137], [150, 137], [151, 139], [152, 123], [153, 123], [154, 123], [155, 103], [156, 143], [157, 109], [158, 133], [159, 147], [160, 123], [161, 153], [162, 153], [163, 155], [164, 158], [165, 161], [166, 153], [167, 162], [168, 161], [169, 161], [170, 165], [171, 166], [172, 167], [173, 161], [174, 169], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174]]}, {"function_name": "typeCheckArgs", "code": "    public Vector typeCheckArgs(SymbolTable stable) throws TypeCheckError {\n\tfinal Vector result = new Vector();\n\tfinal Enumeration e = _arguments.elements();\t\n\twhile (e.hasMoreElements()) {\n\t    final Expression exp = (Expression)e.nextElement();\n\t    result.addElement(exp.typeCheck(stable));\n\t}\n\treturn result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [4, 9], [2, 10], [10, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 4], [10, 2], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "argument", "code": "    protected final Expression argument(int i) {\n\treturn (Expression)_arguments.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "argument", "code": "    protected final Expression argument() {\n\treturn argument(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "argumentCount", "code": "    protected final int argumentCount() {\n\treturn _arguments.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setArgument", "code": "    protected final void setArgument(int i, Expression exp) {\n\t_arguments.setElementAt(exp, i);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translateDesynthesized", "code": "    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) \n    {\n\tType type = Type.Boolean;\n\tif (_chosenMethodType != null)\n\t    type = _chosenMethodType.resultType();\n\n\tfinal InstructionList il = methodGen.getInstructionList();\n\ttranslate(classGen, methodGen);\n\n\tif ((type instanceof BooleanType) || (type instanceof IntType)) {\n\t    _falseList.add(il.append(new IFEQ(null)));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [3, 9], [7, 10], [7, 11], [2, 12], [3, 13], [9, 14], [1, 15], [13, 16], [15, 17], [17, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 3], [10, 7], [11, 7], [12, 2], [13, 3], [14, 9], [15, 1], [16, 13], [17, 15], [18, 17], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal int n = argumentCount();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tint index;\n\n\tif (isStandard() || isExtension()) {\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startIterator(classGen, methodGen);\n\t    }\n\n\t    final String name = _fname.toString().replace('-', '_') + \"F\";\n\t    String args = Constants.EMPTYSTRING;\n\n\t    if (name.equals(\"sumF\")) {\n\t\targs = DOM_INTF_SIG;\n\t\til.append(methodGen.loadDOM());\n\t    }\n\t    else if (name.equals(\"normalize_spaceF\")) {\n\t\tif (_chosenMethodType.toSignature(args).\n\t\t    equals(\"()Ljava/lang/String;\")) {\n\t\t    args = \"I\"+DOM_INTF_SIG;\n\t\t    il.append(methodGen.loadContextNode());\n\t\t    il.append(methodGen.loadDOM());\n\t\t}\n\t    }\n\n\t    index = cpg.addMethodref(BASIS_LIBRARY_CLASS, name,\n\t\t\t\t     _chosenMethodType.toSignature(args));\n\t    il.append(new INVOKESTATIC(index));\n\t}\n\telse if (unresolvedExternal) {\n\t    index = cpg.addMethodref(BASIS_LIBRARY_CLASS,\n\t\t\t\t     \"unresolved_externalF\",\n\t\t\t\t     \"(Ljava/lang/String;)V\");\n\t    il.append(new PUSH(cpg, _fname.toString()));\n\t    il.append(new INVOKESTATIC(index));\n\t}\n\telse if (_isExtConstructor) {\n\t    final String clazz = \n\t\t_chosenConstructor.getDeclaringClass().getName();\n\t    Class[] paramTypes = _chosenConstructor.getParameterTypes();\n\t    \n\t    il.append(new NEW(cpg.addClass(_className)));\n\t    il.append(InstructionConstants.DUP);\n\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startIterator(classGen, methodGen);\n\t\texp.getType().translateTo(classGen, methodGen, paramTypes[i]);\n\t    }\n\n\t    final StringBuffer buffer = new StringBuffer();\n\t    buffer.append('(');\n\t    for (int i = 0; i < paramTypes.length; i++) {\n\t\tbuffer.append(getSignature(paramTypes[i]));\n\t    }\n\t    buffer.append(')');\n\t    buffer.append(\"V\");\n\n\t    index = cpg.addMethodref(clazz,\n\t\t\t\t     \"<init>\", \n\t\t\t\t     buffer.toString());\n\t    il.append(new INVOKESPECIAL(index));\n\n\t    (Type.Object).translateFrom(classGen, methodGen, \n\t\t\t\t_chosenConstructor.getDeclaringClass());\n\t    \n\t}\n\telse if(resolveDynamic) {\n\n          final LocalVariableGen _local = methodGen.addLocalVariable2(\"objects\",\n              org.apache.bcel.generic.Type.OBJECT, il.getEnd());\n\n          il.append(new PUSH(cpg, n + 1));\n          il.append(new ANEWARRAY(cpg.addClass(OBJECT_CLASS)));\n\n          il.append(DUP);\n          if (_thisArgument != null) {\n            il.append(new PUSH(cpg, 0));\n            _thisArgument.translate(classGen, methodGen);\n          }\n          else {\n            il.append(new PUSH(cpg, 0));\n            il.append(ACONST_NULL);\n          }\n          il.append(AASTORE);\n\n          for (int i = 0; i < n; i++) {\n            il.append(DUP);\n            il.append(new PUSH(cpg, i + 1));\n            Expression exp = argument(i);\n            exp.translate(classGen, methodGen);\n            exp.startIterator(classGen, methodGen);\n            exp.getType().translateTo(classGen, methodGen, Type.Reference);\n            il.append(AASTORE);\n          }\n          il.append(new ASTORE(_local.getIndex()));\n\n          String methodName = null;\n          if (_chosenMethod != null)\n            methodName = _chosenMethod.getName();\n          else\n            methodName = _fname.getLocalPart();\n\n          il.append(new PUSH(cpg, _className));\n          il.append(new PUSH(cpg, methodName));\n          il.append(new ALOAD(_local.getIndex()));\n\n          index = cpg.addMethodref(CALL_FUNCTION_CLASS, INVOKE_METHOD,\n              \"(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;\");\n          il.append(new INVOKESTATIC(index));\n\n        }\n\telse {\n\t    final String clazz = _chosenMethod.getDeclaringClass().getName();\n\t    Class[] paramTypes = _chosenMethod.getParameterTypes();\n\n\t    if (_thisArgument != null) {\n\t\t_thisArgument.translate(classGen, methodGen);\n\t    }\t    \n\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startIterator(classGen, methodGen);\n\t\texp.getType().translateTo(classGen, methodGen, paramTypes[i]);\n\t    }\n\n\t    final StringBuffer buffer = new StringBuffer();\n\t    buffer.append('(');\n\t    for (int i = 0; i < paramTypes.length; i++) {\n\t\tbuffer.append(getSignature(paramTypes[i]));\n\t    }\n\t    buffer.append(')');\n\t    buffer.append(getSignature(_chosenMethod.getReturnType()));\n\n\t    if (_thisArgument != null && _clazz.isInterface()) {\n\t        index = cpg.addInterfaceMethodref(clazz,\n\t\t\t\t     _fname.getLocalPart(),\n\t\t\t\t     buffer.toString());\n\t\til.append(new INVOKEINTERFACE(index, n+1));\n            }\n            else {\n\t        index = cpg.addMethodref(clazz,\n\t\t\t\t     _fname.getLocalPart(),\n\t\t\t\t     buffer.toString());\n\t        il.append(_thisArgument != null ? (InvokeInstruction) new INVOKEVIRTUAL(index) :\n\t    \t\t  (InvokeInstruction) new INVOKESTATIC(index));\n            }\n \n\t    _type.translateFrom(classGen, methodGen,\n\t\t\t\t_chosenMethod.getReturnType());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "ASSIGN", "IF", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [1, 11], [1, 12], [1, 13], [1, 14], [9, 15], [9, 16], [3, 17], [4, 18], [5, 19], [10, 20], [1, 21], [1, 22], [11, 23], [11, 24], [14, 25], [10, 26], [10, 27], [10, 28], [10, 29], [10, 30], [8, 31], [8, 32], [8, 33], [21, 34], [22, 35], [23, 36], [24, 37], [13, 38], [14, 39], [20, 40], [20, 41], [20, 42], [20, 43], [20, 44], [20, 45], [20, 46], [20, 47], [20, 48], [20, 49], [20, 50], [20, 51], [10, 52], [10, 53], [10, 54], [10, 55], [26, 56], [10, 57], [28, 58], [10, 59], [10, 60], [31, 61], [32, 62], [33, 63], [35, 64], [23, 65], [36, 66], [11, 67], [11, 68], [38, 69], [38, 70], [14, 71], [14, 72], [14, 73], [20, 74], [40, 75], [20, 76], [20, 77], [41, 78], [20, 79], [43, 80], [44, 81], [20, 82], [20, 83], [20, 84], [20, 85], [20, 86], [47, 87], [20, 88], [49, 89], [20, 90], [50, 91], [20, 92], [20, 93], [20, 94], [10, 95], [52, 96], [53, 97], [54, 98], [55, 99], [57, 100], [27, 101], [28, 102], [60, 103], [29, 104], [30, 105], [62, 106], [63, 107], [63, 108], [65, 109], [67, 110], [70, 111], [39, 112], [74, 113], [75, 114], [75, 115], [76, 116], [77, 117], [79, 118], [42, 119], [43, 120], [81, 121], [45, 122], [46, 123], [82, 124], [83, 125], [84, 126], [85, 127], [86, 128], [47, 129], [47, 130], [87, 131], [48, 132], [88, 133], [49, 134], [91, 135], [93, 136], [94, 137], [51, 138], [95, 139], [97, 140], [97, 141], [26, 142], [26, 143], [28, 144], [28, 145], [28, 146], [28, 147], [103, 148], [105, 149], [109, 150], [111, 151], [111, 152], [40, 153], [40, 154], [40, 155], [40, 156], [115, 157], [116, 158], [41, 159], [41, 160], [43, 161], [43, 162], [43, 163], [43, 164], [44, 165], [123, 166], [125, 167], [126, 168], [129, 169], [130, 170], [133, 171], [49, 172], [49, 173], [49, 174], [49, 175], [49, 176], [49, 177], [49, 178], [50, 179], [50, 180], [50, 181], [50, 182], [136, 183], [137, 184], [138, 185], [138, 186], [142, 187], [144, 188], [102, 189], [65, 190], [65, 191], [65, 192], [150, 193], [153, 194], [154, 195], [155, 196], [156, 197], [159, 198], [161, 199], [120, 200], [173, 201], [134, 202], [176, 203], [180, 204], [182, 205], [184, 206], [190, 207], [191, 208], [192, 209], [194, 210], [195, 211], [195, 212], [196, 213], [197, 214], [197, 215], [203, 216], [204, 217], [205, 218], [209, 219], [194, 220], [194, 221], [210, 222], [213, 223], [216, 224], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 1], [12, 1], [13, 1], [14, 1], [15, 9], [16, 9], [17, 3], [18, 4], [19, 5], [20, 10], [21, 1], [22, 1], [23, 11], [24, 11], [25, 14], [26, 10], [27, 10], [28, 10], [29, 10], [30, 10], [31, 8], [32, 8], [33, 8], [34, 21], [35, 22], [36, 23], [37, 24], [38, 13], [39, 14], [40, 20], [41, 20], [42, 20], [43, 20], [44, 20], [45, 20], [46, 20], [47, 20], [48, 20], [49, 20], [50, 20], [51, 20], [52, 10], [53, 10], [54, 10], [55, 10], [56, 26], [57, 10], [58, 28], [59, 10], [60, 10], [61, 31], [62, 32], [63, 33], [64, 35], [65, 23], [66, 36], [67, 11], [68, 11], [69, 38], [70, 38], [71, 14], [72, 14], [73, 14], [74, 20], [75, 40], [76, 20], [77, 20], [78, 41], [79, 20], [80, 43], [81, 44], [82, 20], [83, 20], [84, 20], [85, 20], [86, 20], [87, 47], [88, 20], [89, 49], [90, 20], [91, 50], [92, 20], [93, 20], [94, 20], [95, 10], [96, 52], [97, 53], [98, 54], [99, 55], [100, 57], [101, 27], [102, 28], [103, 60], [104, 29], [105, 30], [106, 62], [107, 63], [108, 63], [109, 65], [110, 67], [111, 70], [112, 39], [113, 74], [114, 75], [115, 75], [116, 76], [117, 77], [118, 79], [119, 42], [120, 43], [121, 81], [122, 45], [123, 46], [124, 82], [125, 83], [126, 84], [127, 85], [128, 86], [129, 47], [130, 47], [131, 87], [132, 48], [133, 88], [134, 49], [135, 91], [136, 93], [137, 94], [138, 51], [139, 95], [140, 97], [141, 97], [142, 26], [143, 26], [144, 28], [145, 28], [146, 28], [147, 28], [148, 103], [149, 105], [150, 109], [151, 111], [152, 111], [153, 40], [154, 40], [155, 40], [156, 40], [157, 115], [158, 116], [159, 41], [160, 41], [161, 43], [162, 43], [163, 43], [164, 43], [165, 44], [166, 123], [167, 125], [168, 126], [169, 129], [170, 130], [171, 133], [172, 49], [173, 49], [174, 49], [175, 49], [176, 49], [177, 49], [178, 49], [179, 50], [180, 50], [181, 50], [182, 50], [183, 136], [184, 137], [185, 138], [186, 138], [187, 142], [188, 144], [189, 102], [190, 65], [191, 65], [192, 65], [193, 150], [194, 153], [195, 154], [196, 155], [197, 156], [198, 159], [199, 161], [200, 120], [201, 173], [202, 134], [203, 176], [204, 180], [205, 182], [206, 184], [207, 190], [208, 191], [209, 192], [210, 194], [211, 195], [212, 195], [213, 196], [214, 197], [215, 197], [216, 203], [217, 204], [218, 205], [219, 209], [220, 194], [221, 194], [222, 210], [223, 213], [224, 216], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"funcall(\" + _fname + \", \" + _arguments + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isStandard", "code": "    public boolean isStandard() {\n\tfinal String namespace = _fname.getNamespace();\n\treturn (namespace == null) || (namespace.equals(Constants.EMPTYSTRING));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isExtension", "code": "    public boolean isExtension() {\n\tfinal String namespace = _fname.getNamespace();\n\treturn (namespace != null) && (namespace.equals(EXT_XSLTC));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "findMethods", "code": "    private Vector findMethods() {\n\t  \n\t  Vector result = null;\n\t  final String namespace = _fname.getNamespace();\n\n\t  if (_className != null && _className.length() > 0) {\n\t    final int nArgs = _arguments.size();\n\t    try {\n\t      if (_clazz == null) {\n                _clazz = ObjectFactory.findProviderClass(\n                  _className, ObjectFactory.findClassLoader(), true);\n\n\t\tif (_clazz == null) {\n\t\t  final ErrorMsg msg =\n\t\t        new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n\t\t  getParser().reportError(Constants.ERROR, msg);\n\t\t}\n\t      }\n\n\t      final String methodName = _fname.getLocalPart();\n\t      final Method[] methods = _clazz.getMethods();\n\n\t      for (int i = 0; i < methods.length; i++) {\n\t\tfinal int mods = methods[i].getModifiers();\n\t\tif (Modifier.isPublic(mods)\n\t\t    && methods[i].getName().equals(methodName)\n\t\t    && methods[i].getParameterTypes().length == nArgs)\n\t\t{\n\t\t  if (result == null) {\n\t\t    result = new Vector();\n\t          }\n\t\t  result.addElement(methods[i]);\n\t\t}\n\t      }\n\t    }\n\t    catch (ClassNotFoundException e) {\n\t\t  final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n\t\t  getParser().reportError(Constants.ERROR, msg);\n\t    }\n\t  }\n\t  return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "TRY", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [3, 10], [4, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [8, 17], [8, 18], [9, 19], [12, 20], [13, 21], [16, 22], [7, 23], [12, 24], [13, 25], [13, 26], [14, 27], [15, 28], [16, 29], [22, 30], [24, 31], [20, 32], [25, 33], [13, 34], [29, 35], [16, 36], [25, 37], [33, 38], [33, 39], [29, 40], [35, 41], [36, 42], [25, 43], [37, 44], [39, 45], [26, 46], [29, 47], [42, 48], [42, 49], [44, 50], [38, 51], [39, 52], [39, 53], [47, 54], [40, 55], [37, 56], [56, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 3], [11, 4], [12, 6], [13, 6], [14, 6], [15, 6], [16, 6], [17, 8], [18, 8], [19, 9], [20, 12], [21, 13], [22, 16], [23, 7], [24, 12], [25, 13], [26, 13], [27, 14], [28, 15], [29, 16], [30, 22], [31, 24], [32, 20], [33, 25], [34, 13], [35, 29], [36, 16], [37, 25], [38, 33], [39, 33], [40, 29], [41, 35], [42, 36], [43, 25], [44, 37], [45, 39], [46, 26], [47, 29], [48, 42], [49, 42], [50, 44], [51, 38], [52, 39], [53, 39], [54, 47], [55, 40], [56, 37], [57, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "findConstructors", "code": "    private Vector findConstructors() {\n        Vector result = null;\n        final String namespace = _fname.getNamespace();\n\n        final int nArgs = _arguments.size();\n        try {\n          if (_clazz == null) {\n            _clazz = ObjectFactory.findProviderClass(\n              _className, ObjectFactory.findClassLoader(), true);\n\n            if (_clazz == null) {\n              final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n              getParser().reportError(Constants.ERROR, msg);\n            }          \n          }\n\n          final Constructor[] constructors = _clazz.getConstructors();\n\n          for (int i = 0; i < constructors.length; i++) {\n              final int mods = constructors[i].getModifiers();\n              if (Modifier.isPublic(mods) &&\n                  constructors[i].getParameterTypes().length == nArgs)\n              {\n                if (result == null) {\n                  result = new Vector();\n                }\n                result.addElement(constructors[i]);\n              }\n          }\n        }\n        catch (ClassNotFoundException e) {\n          final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n          getParser().reportError(Constants.ERROR, msg);\n        }\n            \n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CATCH", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [7, 11], [9, 12], [3, 13], [4, 14], [5, 15], [6, 16], [7, 17], [7, 18], [8, 19], [9, 20], [12, 21], [16, 22], [10, 23], [17, 24], [7, 25], [20, 26], [9, 27], [17, 28], [24, 29], [24, 30], [20, 31], [26, 32], [27, 33], [17, 34], [28, 35], [18, 36], [20, 37], [33, 38], [33, 39], [35, 40], [29, 41], [37, 42], [31, 43], [28, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 7], [12, 9], [13, 3], [14, 4], [15, 5], [16, 6], [17, 7], [18, 7], [19, 8], [20, 9], [21, 12], [22, 16], [23, 10], [24, 17], [25, 7], [26, 20], [27, 9], [28, 17], [29, 24], [30, 24], [31, 20], [32, 26], [33, 27], [34, 17], [35, 28], [36, 18], [37, 20], [38, 33], [39, 33], [40, 35], [41, 29], [42, 37], [43, 31], [44, 28], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "getSignature", "code": "    static final String getSignature(Class clazz) {\n\tif (clazz.isArray()) {\n\t    final StringBuffer sb = new StringBuffer();\n\t    Class cl = clazz;\n\t    while (cl.isArray()) {\n\t\tsb.append(\"[\");\n\t\tcl = cl.getComponentType();\n\t    }\n\t    sb.append(getSignature(cl));\n\t    return sb.toString();\n\t}\n\telse if (clazz.isPrimitive()) {\n\t    if (clazz == Integer.TYPE) {\n\t\treturn \"I\";\n\t    }\n\t    else if (clazz == Byte.TYPE) {\n\t\treturn \"B\";\n\t    }\n\t    else if (clazz == Long.TYPE) {\n\t\treturn \"J\";\n\t    }\n\t    else if (clazz == Float.TYPE) {\n\t\treturn \"F\";\n\t    }\n\t    else if (clazz == Double.TYPE) {\n\t\treturn \"D\";\n\t    }\n\t    else if (clazz == Short.TYPE) {\n\t\treturn \"S\";\n\t    }\n\t    else if (clazz == Character.TYPE) {\n\t\treturn \"C\";\n\t    }\n\t    else if (clazz == Boolean.TYPE) {\n\t\treturn \"Z\";\n\t    }\n\t    else if (clazz == Void.TYPE) {\n\t\treturn \"V\";\n\t    }\n\t    else {\n\t\tfinal String name = clazz.toString();\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);\n\t\tthrow new Error(err.toString());\n\t    }\n\t}\n\telse {\n\t    return \"L\" + clazz.getName().replace('.', '/') + ';';", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "CALL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [6, 12], [1, 13], [7, 14], [10, 15], [11, 16], [11, 17], [13, 18], [9, 19], [15, 20], [15, 21], [16, 22], [16, 23], [11, 24], [7, 25], [7, 26], [21, 27], [21, 28], [22, 29], [22, 30], [16, 31], [24, 32], [25, 33], [26, 34], [27, 35], [29, 36], [29, 37], [22, 38], [31, 39], [35, 40], [35, 41], [36, 42], [36, 43], [29, 44], [38, 45], [42, 46], [42, 47], [36, 48], [44, 49], [46, 50], [46, 51], [42, 52], [48, 53], [50, 54], [50, 55], [46, 56], [52, 57], [54, 58], [50, 59], [56, 60], [54, 61], [54, 62], [54, 63], [54, 64], [59, 65], [61, 66], [64, 67], [66, 68], [62, 69], [63, 70], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 6], [13, 1], [14, 7], [15, 10], [16, 11], [17, 11], [18, 13], [19, 9], [20, 15], [21, 15], [22, 16], [23, 16], [24, 11], [25, 7], [26, 7], [27, 21], [28, 21], [29, 22], [30, 22], [31, 16], [32, 24], [33, 25], [34, 26], [35, 27], [36, 29], [37, 29], [38, 22], [39, 31], [40, 35], [41, 35], [42, 36], [43, 36], [44, 29], [45, 38], [46, 42], [47, 42], [48, 36], [49, 44], [50, 46], [51, 46], [52, 42], [53, 48], [54, 50], [55, 50], [56, 46], [57, 52], [58, 54], [59, 50], [60, 56], [61, 54], [62, 54], [63, 54], [64, 54], [65, 59], [66, 61], [67, 64], [68, 66], [69, 62], [70, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "getSignature", "code": "    static final String getSignature(Method meth) {\n\tfinal StringBuffer sb = new StringBuffer();\n\tsb.append('(');\n\tfor (int j = 0; j < params.length; j++) {\n\t    sb.append(getSignature(params[j]));\n\t}\n\treturn sb.append(')').append(getSignature(meth.getReturnType()))\n\t    .toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [5, 8], [5, 9], [5, 10], [7, 11], [3, 12], [10, 13], [2, 14], [2, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 5], [9, 5], [10, 5], [11, 7], [12, 3], [13, 10], [14, 2], [15, 2], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getSignature", "code": "    static final String getSignature(Constructor cons) {\n\tfinal StringBuffer sb = new StringBuffer();\n\tsb.append('(');\n\tfor (int j = 0; j < params.length; j++) {\n\t    sb.append(getSignature(params[j]));\n\t}\n\treturn sb.append(\")V\").toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [5, 8], [5, 9], [7, 10], [3, 11], [2, 12], [2, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 5], [9, 5], [10, 7], [11, 3], [12, 2], [13, 2], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getMethodSignature", "code": "    private String getMethodSignature(Vector argsType) {\n \tfinal StringBuffer buf = new StringBuffer(_className);\n        buf.append('.').append(_fname.getLocalPart()).append('(');\n\t  \n\tint nArgs = argsType.size();\t    \n\tfor (int i = 0; i < nArgs; i++) {\n\t    final Type intType = (Type)argsType.elementAt(i);\n\t    buf.append(intType.toString());\n\t    if (i < nArgs - 1) buf.append(\", \");\n\t}\n\t  \n\tbuf.append(')');\n\treturn buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [0, 9], [7, 10], [2, 11], [2, 12], [3, 13], [9, 14], [9, 15], [9, 16], [4, 17], [11, 18], [2, 19], [2, 20], [15, 21], [16, 22], [11, 23], [18, 24], [19, 25], [23, 26], [24, 27], [12, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 0], [10, 7], [11, 2], [12, 2], [13, 3], [14, 9], [15, 9], [16, 9], [17, 4], [18, 11], [19, 2], [20, 2], [21, 15], [22, 16], [23, 11], [24, 18], [25, 19], [26, 23], [27, 24], [28, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "replaceDash", "code": "    protected static String replaceDash(String name)\n    {\n        char dash = '-';\n        StringBuffer buff = new StringBuffer(\"\");\n        for (int i = 0; i < name.length(); i++) {\n        if (i > 0 && name.charAt(i-1) == dash)\n            buff.append(Character.toUpperCase(name.charAt(i)));\n        else if (name.charAt(i) != dash)\n            buff.append(name.charAt(i));\n        }\n        return buff.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [3, 10], [4, 11], [8, 12], [8, 13], [2, 14], [10, 15], [12, 16], [8, 17], [13, 18], [13, 19], [12, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [22, 26], [23, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 3], [11, 4], [12, 8], [13, 8], [14, 2], [15, 10], [16, 12], [17, 8], [18, 13], [19, 13], [20, 12], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [26, 22], [27, 23], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "FunctionCall", "code": "    public FunctionCall(QName fname, Vector arguments) {\n\t_fname = fname;\n\t_arguments = arguments;\n\t_type = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "FunctionCall", "code": "    public FunctionCall(QName fname) {\n\tthis(fname, EMPTY_ARG_LIST);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ivy-2.0-3460", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/event/resolve/EndResolveDependencyEvent.java", "language": "java", "name": "org.apache.ivy.core.event.resolve.EndResolveDependencyEvent", "code": "public class EndResolveDependencyEvent extends ResolveDependencyEvent {\n    public static final String NAME = \"post-resolve-dependency\";\n\n    private ResolvedModuleRevision module;\n\n    private long duration;\n\n    public EndResolveDependencyEvent(DependencyResolver resolver, DependencyDescriptor dd, \n            ModuleRevisionId requestedRevisionId, ResolvedModuleRevision module, long duration) {\n        super(NAME, resolver, dd, requestedRevisionId);\n        this.module = module;\n        this.duration = duration;\n        addAttribute(\"duration\", String.valueOf(duration));\n        if (this.module != null) {\n            // override revision from the dependency descriptor\n            addAttribute(\"revision\", this.module.getDescriptor().getResolvedModuleRevisionId()\n                    .getRevision());\n            // now that we have loaded the dependency descriptor, we can put the extra attributes\n            // contained in the descriptor too\n            addAttributes(\n                this.module.getDescriptor().getResolvedModuleRevisionId()\n                                                .getQualifiedExtraAttributes());\n            addAttributes(\n                this.module.getDescriptor().getResolvedModuleRevisionId().getExtraAttributes());\n            \n            addAttribute(\"resolved\", \"true\");\n        } else {\n            addAttribute(\"resolved\", \"false\");\n        }\n    }\n\n    public ResolvedModuleRevision getModule() {\n        return module;\n    }\n    \n    /**\n     * Returns the time elapsed to resolve the dependency.\n     * <p>\n     * The time elapsed to resolve a dependency includes the time required to locate the the actual\n     * revision if the dependency descriptor use a version constraint, and to download the module\n     * metadata if necessary. It doesn't include any conflict management operations nor transitive\n     * dependency management. It's basically the time elapsed since the corresponding\n     * {@link StartResolveDependencyEvent}\n     * </p>\n     * \n     * @return the time elapsed to resolve the dependency.\n     */\n    public long getDuration() {\n        return duration;", "functions": [{"function_name": "getModule", "code": "    public ResolvedModuleRevision getModule() {\n        return module;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDuration", "code": "    public long getDuration() {\n        return duration;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "EndResolveDependencyEvent", "code": "    public EndResolveDependencyEvent(DependencyResolver resolver, DependencyDescriptor dd, \n            ModuleRevisionId requestedRevisionId, ResolvedModuleRevision module, long duration) {\n        super(NAME, resolver, dd, requestedRevisionId);\n        this.module = module;\n        this.duration = duration;\n        addAttribute(\"duration\", String.valueOf(duration));\n        if (this.module != null) {\n            // override revision from the dependency descriptor\n            addAttribute(\"revision\", this.module.getDescriptor().getResolvedModuleRevisionId()\n                    .getRevision());\n            // now that we have loaded the dependency descriptor, we can put the extra attributes\n            // contained in the descriptor too\n            addAttributes(\n                this.module.getDescriptor().getResolvedModuleRevisionId()\n                                                .getQualifiedExtraAttributes());\n            addAttributes(\n                this.module.getDescriptor().getResolvedModuleRevisionId().getExtraAttributes());\n            \n            addAttribute(\"resolved\", \"true\");\n        } else {\n            addAttribute(\"resolved\", \"false\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [7, 11], [8, 12], [8, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [14, 19], [14, 20], [15, 21], [15, 22], [18, 23], [16, 24], [16, 25], [16, 26], [17, 27], [17, 28], [17, 29], [18, 30], [18, 31], [18, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 7], [12, 8], [13, 8], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 14], [20, 14], [21, 15], [22, 15], [23, 18], [24, 16], [25, 16], [26, 16], [27, 17], [28, 17], [29, 17], [30, 18], [31, 18], [32, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}], "label": 0}
{"sample_id": "camel-1.2-1636", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/resequencer/Element.java", "language": "java", "name": "org.apache.camel.processor.resequencer.Element", "code": "class Element<E> implements TimeoutHandler {\n\n    /**\n     * The contained object.\n     */\n    private E object;\n\n    /**\n     * Not <code>null</code> if this element is currently beeing scheduled for\n     * timing out.\n     */\n    private Timeout timeout;\n    \n    /**\n     * Creates a new container instance.\n     * \n     * @param object contained object.\n     */\n    public Element(E object) {\n        this.object = object;\n    }\n    \n    /**\n     * Returns the contained object.\n     * \n     * @return the contained object.\n     */\n    public E getObject() {\n        return object;\n    }\n\n    /**\n     * Returns <code>true</code> if this element is currently scheduled for\n     * timing out.\n     * \n     * @return <code>true</code> if scheduled or <code>false</code> if not\n     *         scheduled or already timed-out.\n     */\n    public synchronized boolean scheduled() {\n        return timeout != null;\n    }\n    \n    /**\n     * Schedules the given timeout task. Before this methods calls the\n     * {@link Timeout#schedule()} method it adds this element as timeout\n     * listener.\n     * \n     * @param t a timeout task.\n     */\n    public synchronized void schedule(Timeout t) {\n        this.timeout = t;\n        this.timeout.addTimeoutHandlerFirst(this);\n        this.timeout.schedule();\n    }\n    \n    /**\n     * Cancels the scheduled timeout for this element. If this element is not\n     * scheduled or has already timed-out this method has no effect.\n     */\n    public synchronized void cancel() {\n        if (timeout != null) {\n            timeout.cancel();\n        }\n        timeout(null);\n    }\n\n    /**\n     * Marks this element as timed-out.\n     * \n     * @param t timeout task that caused the notification.\n     */\n    public synchronized void timeout(Timeout t) {\n        this.timeout = null;", "functions": [{"function_name": "getObject", "code": "    public E getObject() {\n        return object;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "scheduled", "code": "    public synchronized boolean scheduled() {\n        return timeout != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "schedule", "code": "    public synchronized void schedule(Timeout t) {\n        this.timeout = t;\n        this.timeout.addTimeoutHandlerFirst(this);\n        this.timeout.schedule();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "cancel", "code": "    public synchronized void cancel() {\n        if (timeout != null) {\n            timeout.cancel();\n        }\n        timeout(null);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "timeout", "code": "    public synchronized void timeout(Timeout t) {\n        this.timeout = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Element", "code": "    public Element(E object) {\n        this.object = object;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-1.5-5189", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/model/Sheet.java", "language": "java", "name": "org.apache.poi.hssf.model.Sheet", "code": "public class Sheet\n    extends java.lang.Object\n{\n    protected ArrayList              records        = null;\n    int                              preoffset      = 0;\n    int                              loc            = 0;\n    protected boolean                containsLabels = false;\n    protected int                    dimsloc        = 0;\n    protected DimensionsRecord       dims;\n    protected DefaultColWidthRecord  defaultcolwidth  = null;\n    protected DefaultRowHeightRecord defaultrowheight = null;\n    protected GridsetRecord          gridset          = null;\n    protected MergeCellsRecord       merged           = null;\n    protected int                    mergedloc        = 0;\n    private static POILogger         log              = \n        POILogFactory.getLogger(Sheet.class);\n    private ArrayList                columnSizes      = null;\n    protected ValueRecordsAggregate  cells            = null;\n    protected RowRecordsAggregate    rows             = null;\n    private Iterator                 valueRecIterator = null;\n    private Iterator                 rowRecIterator   = null;\n\n    /**\n     * Creates new Sheet with no intialization --useless at this point\n     * @see #createSheet(List,int,int)\n     */\n\n    public Sheet()\n    {\n    }\n\n    /**\n     * read support  (offset used as starting point for search) for low level\n     * API.  Pass in an array of Record objects, the sheet number (0 based) and\n     * a record offset (should be the location of the sheets BOF record).  A Sheet\n     * object is constructed and passed back with all of its initialization set\n     * to the passed in records and references to those records held. This function\n     * is normally called via Workbook.\n     *\n     * @param recs array containing those records in the sheet in sequence (normally obtained from RecordFactory)\n     * @param sheetnum integer specifying the sheet's number (0,1 or 2 in this release)\n     * @param offset of the sheet's BOF record\n     *\n     * @return Sheet object with all values set to those read from the file\n     *\n     * @see org.apache.poi.hssf.model.Workbook\n     * @see org.apache.poi.hssf.record.Record\n     */\n    public static Sheet createSheet(List recs, int sheetnum, int offset)\n    {\n        log.logFormatted(log.DEBUG,\n                         \"Sheet createSheet (existing file) with %\",\n                         new Integer(recs.size()));\n        Sheet     retval             = new Sheet();\n        ArrayList records            = new ArrayList(recs.size() / 5);\n        boolean   isfirstcell        = true;\n        boolean   isfirstrow         = true;\n        int       bofEofNestingLevel = 0;\n\n        for (int k = offset; k < recs.size(); k++)\n        {\n            Record rec = ( Record ) recs.get(k);\n\n            if (rec.getSid() == LabelRecord.sid)\n            {\n                log.log(log.DEBUG, \"Hit label record\");\n                retval.containsLabels = true;\n            }\n            else if (rec.getSid() == BOFRecord.sid)\n            {\n                bofEofNestingLevel++;\n            }\n            else if ((rec.getSid() == EOFRecord.sid)\n                     && (--bofEofNestingLevel == 0))\n            {\n                log.log(log.DEBUG, \"Hit EOF record at \");\n                records.add(rec);\n                break;\n            }\n            else if (rec.getSid() == DimensionsRecord.sid)\n            {\n                retval.dims    = ( DimensionsRecord ) rec;\n                retval.dimsloc = records.size();\n            }\n            else if (rec.getSid() == MergeCellsRecord.sid)\n            {\n                retval.merged    = ( MergeCellsRecord ) rec;\n                retval.mergedloc = k - offset;\n            }\n            else if (rec.getSid() == ColumnInfoRecord.sid)\n            {\n                if (retval.columnSizes == null)\n                {\n                    retval.columnSizes = new ArrayList();\n                }\n                retval.columnSizes.add(( ColumnInfoRecord ) rec);\n            }\n            else if (rec.getSid() == DefaultColWidthRecord.sid)\n            {\n                retval.defaultcolwidth = ( DefaultColWidthRecord ) rec;\n            }\n            else if (rec.getSid() == DefaultRowHeightRecord.sid)\n            {\n                retval.defaultrowheight = ( DefaultRowHeightRecord ) rec;\n            }\n            else if (rec.isValue())\n            {\n                if (isfirstcell)\n                {\n                    retval.cells = new ValueRecordsAggregate();\n                    rec          = retval.cells;\n                    retval.cells.construct(k, recs);\n                    isfirstcell = false;\n                }\n                else\n                {\n                    rec = null;\n                }\n            }\n            else if (rec.getSid() == RowRecord.sid)\n            {\n                if (isfirstrow)\n                {\n                    retval.rows = new RowRecordsAggregate();\n                    rec         = retval.rows;\n                    retval.rows.construct(k, recs);\n                    isfirstrow = false;\n                }\n                else\n                {\n                    rec = null;\n                }\n            }\n            if (rec != null)\n            {\n                records.add(rec);\n            }\n        }\n        retval.records = records;\n        log.log(log.DEBUG, \"sheet createSheet (existing file) exited\");\n        return retval;\n    }\n\n    /**\n     * read support  (offset = 0) Same as createSheet(Record[] recs, int, int)\n     * only the record offset is assumed to be 0.\n     *\n     * @param records  array containing those records in the sheet in sequence (normally obtained from RecordFactory)\n     * @param sheetnum integer specifying the sheet's number (0,1 or 2 in this release)\n     * @return Sheet object\n     */\n\n    public static Sheet createSheet(List records, int sheetnum)\n    {\n        log.log(log.DEBUG,\n                \"Sheet createSheet (exisiting file) assumed offset 0\");\n        return createSheet(records, sheetnum, 0);\n    }\n\n    /**\n     * Creates a sheet with all the usual records minus values and the \"index\"\n     * record (not required).  Sets the location pointer to where the first value\n     * records should go.  Use this to create a sheet from \"scratch\".\n     *\n     * @return Sheet object with all values set to defaults\n     */\n\n    public static Sheet createSheet()\n    {\n        log.log(log.DEBUG, \"Sheet createsheet from scratch called\");\n        Sheet     retval  = new Sheet();\n        ArrayList records = new ArrayList(30);\n\n        records.add(retval.createBOF());\n\n        records.add(retval.createCalcMode());\n        records.add(retval.createCalcCount());\n        records.add(retval.createRefMode());\n        records.add(retval.createIteration());\n        records.add(retval.createDelta());\n        records.add(retval.createSaveRecalc());\n        records.add(retval.createPrintHeaders());\n        records.add(retval.createPrintGridlines());\n        retval.gridset = ( GridsetRecord ) retval.createGridset();\n        records.add(retval.gridset);\n        records.add(retval.createGuts());\n        retval.defaultrowheight =\n            ( DefaultRowHeightRecord ) retval.createDefaultRowHeight();\n        records.add(retval.defaultrowheight);\n        records.add(retval.createWSBool());\n        records.add(retval.createHeader());\n        records.add(retval.createFooter());\n        records.add(retval.createHCenter());\n        records.add(retval.createVCenter());\n        records.add(retval.createPrintSetup());\n        retval.defaultcolwidth =\n            ( DefaultColWidthRecord ) retval.createDefaultColWidth();\n        records.add(retval.defaultcolwidth);\n        retval.dims    = ( DimensionsRecord ) retval.createDimensions();\n        retval.dimsloc = 19;\n        records.add(retval.dims);\n        records.add(retval.createWindowTwo());\n        retval.setLoc(records.size() - 1);\n        records.add(retval.createSelection());\n        records.add(retval.createEOF());\n        retval.records = records;\n        log.log(log.DEBUG, \"Sheet createsheet from scratch exit\");\n        return retval;\n    }\n\n    private void checkCells()\n    {\n        if (cells == null)\n        {\n            cells = new ValueRecordsAggregate();\n            records.add(getDimsLoc() + 1, cells);\n        }\n    }\n\n    private void checkRows()\n    {\n        if (rows == null)\n        {\n            rows = new RowRecordsAggregate();\n            records.add(getDimsLoc() + 1, rows);\n        }\n    }\n\n    public int addMergedRegion(short rowFrom, short colFrom, short rowTo,\n                               short colTo)\n    {\n        if (merged == null)\n        {\n            merged    = ( MergeCellsRecord ) createMergedCells();\n            mergedloc = records.size() - 1;\n            records.add(records.size() - 1, merged);\n        }\n        return merged.addArea(rowFrom, colFrom, rowTo, colTo);\n    }\n\n    public void removeMergedRegion(int index)\n    {\n        merged.removeAreaAt(index);\n        if (merged.getNumAreas() == 0)\n        {\n            merged = null;\n            records.remove(mergedloc);\n            mergedloc = 0;\n        }\n    }\n\n    public MergeCellsRecord.MergedRegion getMergedRegionAt(int index)\n    {\n        return merged.getAreaAt(index);\n    }\n\n    public int getNumMergedRegions()\n    {\n        return merged.getNumAreas();\n    }\n\n    /**\n     * This is basically a kludge to deal with the now obsolete Label records.  If\n     * you have to read in a sheet that contains Label records, be aware that the rest\n     * of the API doesn't deal with them, the low level structure only provides read-only\n     * semi-immutable structures (the sets are there for interface conformance with NO\n     * impelmentation).  In short, you need to call this function passing it a reference\n     * to the Workbook object.  All labels will be converted to LabelSST records and their\n     * contained strings will be written to the Shared String tabel (SSTRecord) within\n     * the Workbook.\n     *\n     * @param wb sheet's matching low level Workbook structure containing the SSTRecord.\n     * @see org.apache.poi.hssf.record.LabelRecord\n     * @see org.apache.poi.hssf.record.LabelSSTRecord\n     * @see org.apache.poi.hssf.record.SSTRecord\n     */\n\n    public void convertLabelRecords(Workbook wb)\n    {\n        log.log(log.DEBUG, \"convertLabelRecords called\");\n        if (containsLabels)\n        {\n            for (int k = 0; k < records.size(); k++)\n            {\n                Record rec = ( Record ) records.get(k);\n\n                if (rec.getSid() == LabelRecord.sid)\n                {\n                    LabelRecord oldrec = ( LabelRecord ) rec;\n\n                    records.remove(k);\n                    LabelSSTRecord newrec   = new LabelSSTRecord();\n                    int            stringid =\n                        wb.addSSTString(oldrec.getValue());\n\n                    newrec.setRow(oldrec.getRow());\n                    newrec.setColumn(oldrec.getColumn());\n                    newrec.setXFIndex(oldrec.getXFIndex());\n                    newrec.setSSTIndex(stringid);\n                    records.add(k, newrec);\n                }\n            }\n        }\n        log.log(log.DEBUG, \"convertLabelRecords exit\");\n    }\n\n    /**\n     * Returns the number of low level binary records in this sheet.  This adjusts things for the so called\n     * AgregateRecords.\n     *\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n    public int getNumRecords()\n    {\n        checkCells();\n        checkRows();\n        log.log(log.DEBUG, \"Sheet.getNumRecords\");\n        log.logFormatted(log.DEBUG, \"returning % + % + % - 2 = %\", new int[]\n        {\n            records.size(), cells.getPhysicalNumberOfCells(),\n            rows.getPhysicalNumberOfRows(),\n            records.size() + cells.getPhysicalNumberOfCells()\n            + rows.getPhysicalNumberOfRows() - 2\n        });\n        return records.size() + cells.getPhysicalNumberOfCells()\n               + rows.getPhysicalNumberOfRows() - 2;\n    }\n\n    /**\n     * Per an earlier reported bug in working with Andy Khan's excel read library.  This\n     * sets the values in the sheet's DimensionsRecord object to be correct.  Excel doesn't\n     * really care, but we want to play nice with other libraries.\n     *\n     * @see org.apache.poi.hssf.record.DimensionsRecord\n     */\n\n    public void setDimensions(short firstrow, short firstcol, short lastrow,\n                              short lastcol)\n    {\n        log.log(log.DEBUG, \"Sheet.setDimensions\");\n        log.log(log.DEBUG,\n                (new StringBuffer(\"firstrow\")).append(firstrow)\n                    .append(\"firstcol\").append(firstcol).append(\"lastrow\")\n                    .append(lastrow).append(\"lastcol\").append(lastcol)\n                    .toString());\n        dims.setFirstCol(firstcol);\n        dims.setFirstRow(firstrow);\n        dims.setLastCol(lastcol);\n        dims.setLastRow(lastrow);\n        log.log(log.DEBUG, \"Sheet.setDimensions exiting\");\n    }\n\n    /**\n     * set the locator for where we should look for the next value record.  The\n     * algorythm will actually start here and find the correct location so you\n     * can set this to 0 and watch performance go down the tubes but it will work.\n     * After a value is set this is automatically advanced.  Its also set by the\n     * create method.  So you probably shouldn't mess with this unless you have\n     * a compelling reason why or the help for the method you're calling says so.\n     * Check the other methods for whether they care about\n     * the loc pointer.  Many of the \"modify\" and \"remove\" methods re-initialize this\n     * to \"dimsloc\" which is the location of the Dimensions Record and presumably the\n     * start of the value section (at or around 19 dec).\n     *\n     * @param loc the record number to start at\n     *\n     */\n\n    public void setLoc(int loc)\n    {\n        valueRecIterator = null;\n        log.log(log.DEBUG, \"sheet.setLoc(): \" + loc);\n        this.loc = loc;\n    }\n\n    /**\n     * Returns the location pointer to the first record to look for when adding rows/values\n     *\n     */\n\n    public int getLoc()\n    {\n        log.log(log.DEBUG, \"sheet.getLoc():\" + loc);\n        return loc;\n    }\n\n    /**\n     * Set the preoffset when using DBCELL records (currently unused) - this is\n     * the position of this sheet within the whole file.\n     *\n     * @param offset the offset of the sheet's BOF within the file.\n     */\n\n    public void setPreOffset(int offset)\n    {\n        this.preoffset = offset;\n    }\n\n    /**\n     * get the preoffset when using DBCELL records (currently unused) - this is\n     * the position of this sheet within the whole file.\n     *\n     * @return offset the offset of the sheet's BOF within the file.\n     */\n\n    public int getPreOffset()\n    {\n        return preoffset;\n    }\n\n    /**\n     * Serializes all records in the sheet into one big byte array.  Use this to write\n     * the sheet out.\n     *\n     * @return byte[] array containing the binary representation of the records in this sheet\n     *\n     */\n\n    public byte [] serialize()\n    {\n        log.log(log.DEBUG, \"Sheet.serialize\");\n\n        byte[] retval    = null;\n\n        int    arraysize = getSize();\n        int    pos       = 0;\n\n        retval = new byte[ arraysize ];\n        for (int k = 0; k < records.size(); k++)\n        {\n\n            pos += (( Record ) records.get(k)).serialize(pos);\n        }\n        log.log(log.DEBUG, \"Sheet.serialize returning \" + retval);\n        return retval;\n    }\n\n    /**\n     * Serializes all records in the sheet into one big byte array.  Use this to write\n     * the sheet out.\n     *\n     * @param offset to begin write at\n     * @param data   array containing the binary representation of the records in this sheet\n     *\n     */\n\n    public int serialize(int offset, byte [] data)\n    {\n        log.log(log.DEBUG, \"Sheet.serialize using offsets\");\n\n        int pos       = 0;\n\n        for (int k = 0; k < records.size(); k++)\n        {\n\n            pos += (( Record ) records.get(k)).serialize(pos + offset);\n        }\n        log.log(log.DEBUG, \"Sheet.serialize returning \");\n        return pos;\n    }\n\n    /**\n     * Create a row record.  (does not add it to the records contained in this sheet)\n     *\n     * @param row number\n     * @return RowRecord created for the passed in row number\n     * @see org.apache.poi.hssf.record.RowRecord\n     */\n\n    public RowRecord createRow(int row)\n    {\n        log.log(log.DEBUG, \"create row number \" + row);\n        RowRecord rowrec = new RowRecord();\n\n        rowrec.setRowNumber(( short ) row);\n        rowrec.setHeight(( short ) 0xff);\n        rowrec.setOptimize(( short ) 0x0);\n        rowrec.setOptionFlags(( short ) 0x0);\n        rowrec.setXFIndex(( short ) 0x0);\n        return rowrec;\n    }\n\n    /**\n     * Create a LABELSST Record (does not add it to the records contained in this sheet)\n     *\n     * @param row the row the LabelSST is a member of\n     * @param col the column the LabelSST defines\n     * @param index the index of the string within the SST (use workbook addSSTString method)\n     * @return LabelSSTRecord newly created containing your SST Index, row,col.\n     * @see org.apache.poi.hssf.record.SSTRecord\n     */\n\n    public LabelSSTRecord createLabelSST(short row, short col, int index)\n    {\n        log.logFormatted(log.DEBUG, \"create labelsst row,col,index %,%,%\",\n                         new int[]\n        {\n            row, col, index\n        });\n        LabelSSTRecord rec = new LabelSSTRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setSSTIndex(index);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;\n    }\n\n    /**\n     * Create a NUMBER Record (does not add it to the records contained in this sheet)\n     *\n     * @param row the row the NumberRecord is a member of\n     * @param col the column the NumberRecord defines\n     * @param value for the number record\n     *\n     * @return NumberRecord for that row, col containing that value as added to the sheet\n     */\n\n    public NumberRecord createNumber(short row, short col, double value)\n    {\n        log.logFormatted(log.DEBUG, \"create number row,col,value %,%,%\",\n                         new double[]\n        {\n            row, col, value\n        });\n        NumberRecord rec = new NumberRecord();\n\n        rec.setRow(( short ) row);\n        rec.setColumn(col);\n        rec.setValue(value);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;\n    }\n\n    /**\n     * create a BLANK record (does not add it to the records contained in this sheet)\n     *\n     * @param row - the row the BlankRecord is a member of\n     * @param col - the column the BlankRecord is a member of\n     */\n\n    public BlankRecord createBlank(short row, short col)\n    {\n        log.logFormatted(log.DEBUG, \"create blank row,col %,%\", new short[]\n        {\n            row, col\n        });\n        BlankRecord rec = new BlankRecord();\n\n        rec.setRow(( short ) row);\n        rec.setColumn(col);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;\n    }\n\n    /**\n     * Attempts to parse the formula into PTGs and create a formula record\n     * DOES NOT WORK YET\n     *\n     * @param row - the row for the formula record\n     * @param col - the column of the formula record\n     * @param formula - a String representing the formula.  To be parsed to PTGs\n     * @return bogus/useless formula record\n     */\n\n    public FormulaRecord createFormula(short row, short col, String formula)\n    {\n        log.logFormatted(log.DEBUG, \"create formula row,col,formula %,%,%\",\n                         new short[]\n        {\n            row, col\n        }, formula);\n        FormulaRecord rec = new FormulaRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setOptions(( short ) 2);\n        rec.setValue(0);\n        rec.setXFIndex(( short ) 0x0f);\n        Ptg[] ptg  = FormulaUtil.parseFormula(formula);\n        int   size = 0;\n\n        for (int k = 0; k < ptg.length; k++)\n        {\n            size += ptg[ k ].getSize();\n            rec.pushExpressionToken(ptg[ k ]);\n        }\n        rec.setExpressionLength(( short ) size);\n        return rec;\n    }\n\n    /**\n     * Adds a value record to the sheet's contained binary records\n     * (i.e. LabelSSTRecord or NumberRecord).\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.\n     *\n     * @param row the row to add the cell value to\n     * @param col the cell value record itself.\n     */\n\n    public void addValueRecord(short row, CellValueRecordInterface col)\n    {\n        checkCells();\n        log.logFormatted(log.DEBUG, \"add value record  row,loc %,%\", new int[]\n        {\n            row, loc\n        });\n        DimensionsRecord d = ( DimensionsRecord ) records.get(getDimsLoc());\n\n        if (col.getColumn() > d.getLastCol())\n        {\n            d.setLastCol(( short ) (col.getColumn() + 1));\n        }\n        if (col.getColumn() < d.getFirstCol())\n        {\n            d.setFirstCol(col.getColumn());\n        }\n        cells.insertCell(col);\n\n        /*\n         * for (int k = loc; k < records.size(); k++)\n         * {\n         *   Record rec = ( Record ) records.get(k);\n         *\n         *   if (rec.getSid() == RowRecord.sid)\n         *   {\n         *       RowRecord rowrec = ( RowRecord ) rec;\n         *\n         *       if (rowrec.getRowNumber() == col.getRow())\n         *       {\n         *           records.add(k + 1, col);\n         *           loc = k;\n         *           if (rowrec.getLastCol() <= col.getColumn())\n         *           {\n         *               rowrec.setLastCol((( short ) (col.getColumn() + 1)));\n         *           }\n         *           break;\n         *       }\n         *   }\n         * }\n         */\n    }\n\n    /**\n     * remove a value record from the records array.\n     *\n     * This method is not loc sensitive, it resets loc to = dimsloc so no worries.\n     *\n     * @param row - the row of the value record you wish to remove\n     * @param col - a record supporting the CellValueRecordInterface.\n     * @see org.apache.poi.hssf.record.CellValueRecordInterface\n     */\n\n    public void removeValueRecord(short row, CellValueRecordInterface col)\n    {\n        checkCells();\n        log.logFormatted(log.DEBUG, \"remove value record row,dimsloc %,%\",\n                         new int[]\n        {\n            row, dimsloc\n        });\n        loc = dimsloc;\n        cells.removeCell(col);\n\n        /*\n         * for (int k = loc; k < records.size(); k++)\n         * {\n         *   Record rec = ( Record ) records.get(k);\n         *\n         *   if (rec.isValue())\n         *   {\n         *       CellValueRecordInterface cell =\n         *           ( CellValueRecordInterface ) rec;\n         *\n         *       if ((cell.getRow() == col.getRow())\n         *               && (cell.getColumn() == col.getColumn()))\n         *       {\n         *           records.remove(k);\n         *           break;\n         *       }\n         *   }\n         * }\n         */\n    }\n\n    /**\n     * replace a value record from the records array.\n     *\n     * This method is not loc sensitive, it resets loc to = dimsloc so no worries.\n     *\n     * @param newval - a record supporting the CellValueRecordInterface.  this will replace\n     *                the cell value with the same row and column.  If there isn't one, one will\n     *                be added.\n     */\n\n    public void replaceValueRecord(CellValueRecordInterface newval)\n    {\n        checkCells();\n        setLoc(dimsloc);\n        log.log(log.DEBUG, \"replaceValueRecord \");\n        cells.insertCell(newval);\n\n        /*\n         * CellValueRecordInterface oldval = getNextValueRecord();\n         *\n         * while (oldval != null)\n         * {\n         *   if (oldval.isEqual(newval))\n         *   {\n         *       records.set(( short ) (getLoc() - 1), newval);\n         *       return;\n         *   }\n         *   oldval = getNextValueRecord();\n         * }\n         * addValueRecord(newval.getRow(), newval);\n         * setLoc(dimsloc);\n         */\n    }\n\n    /**\n     * Adds a row record to the sheet\n     *\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.\n     *\n     * @param row the row record to be added\n     * @see #setLoc(int)\n     */\n\n    public void addRow(RowRecord row)\n    {\n        checkRows();\n        log.log(log.DEBUG, \"addRow \");\n        DimensionsRecord d = ( DimensionsRecord ) records.get(getDimsLoc());\n\n        if (row.getRowNumber() > d.getLastRow())\n        {\n            d.setLastRow(row.getRowNumber() + 1);\n        }\n        if (row.getRowNumber() < d.getFirstRow())\n        {\n            d.setFirstRow(row.getRowNumber());\n        }\n\n        rows.insertRow(row);\n\n        /*\n         * for (int k = loc; k < records.size(); k++)\n         * {\n         *   Record rec = ( Record ) records.get(k);\n         *\n         *   if (rec.getSid() == IndexRecord.sid)\n         *   {\n         *       index = ( IndexRecord ) rec;\n         *   }\n         *   if (rec.getSid() == RowRecord.sid)\n         *   {\n         *       RowRecord rowrec = ( RowRecord ) rec;\n         *\n         *       if (rowrec.getRowNumber() > row.getRowNumber())\n         *       {\n         *           records.add(k, row);\n         *           loc = k;\n         *           break;\n         *       }\n         *   }\n         *   if (rec.getSid() == WindowTwoRecord.sid)\n         *   {\n         *       records.add(k, row);\n         *       loc = k;\n         *       break;\n         *   }\n         * }\n         * if (index != null)\n         * {\n         *   if (index.getLastRowAdd1() <= row.getRowNumber())\n         *   {\n         *       index.setLastRowAdd1(row.getRowNumber() + 1);\n         *   }\n         * }\n         */\n        log.log(log.DEBUG, \"exit addRow\");\n    }\n\n    /**\n     * Removes a row record\n     *\n     * This method is not loc sensitive, it resets loc to = dimsloc so no worries.\n     *\n     * @param row  the row record to remove\n     */\n\n    public void removeRow(RowRecord row)\n    {\n        checkRows();\n\n        setLoc(getDimsLoc());\n        rows.removeRow(row);\n\n        /*\n         * for (int k = loc; k < records.size(); k++)\n         * {\n         *   Record rec = ( Record ) records.get(k);\n         *\n         *   if (rec.getSid() == RowRecord.sid)\n         *   {\n         *       RowRecord rowrec = ( RowRecord ) rec;\n         *\n         *       if (rowrec.getRowNumber() == row.getRowNumber())\n         *       {\n         *           records.remove(k);\n         *           break;\n         *       }\n         *   }\n         *   if (rec.getSid() == WindowTwoRecord.sid)\n         *   {\n         *       break;\n         *   }\n         * }\n         */\n    }\n\n    /**\n     * get the NEXT value record (from LOC).  The first record that is a value record\n     * (starting at LOC) will be returned.\n     *\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.  For this method, set loc to dimsloc to start with,\n     * subsequent calls will return values in (physical) sequence or NULL when you get to the end.\n     *\n     * @return CellValueRecordInterface representing the next value record or NULL if there are no more\n     * @see #setLoc(int)\n     */\n\n    public CellValueRecordInterface getNextValueRecord()\n    {\n        log.log(log.DEBUG, \"getNextValue loc= \" + loc);\n        if (valueRecIterator == null)\n        {\n            valueRecIterator = cells.getIterator();\n        }\n        if (!valueRecIterator.hasNext())\n        {\n            return null;\n        }\n        return ( CellValueRecordInterface ) valueRecIterator.next();\n\n        /*\n         *      if (this.getLoc() < records.size())\n         *     {\n         *         for (int k = getLoc(); k < records.size(); k++)\n         *         {\n         *             Record rec = ( Record ) records.get(k);\n         *\n         *             this.setLoc(k + 1);\n         *             if (rec instanceof CellValueRecordInterface)\n         *             {\n         *                 return ( CellValueRecordInterface ) rec;\n         *             }\n         *         }\n         *     }\n         *     return null;\n         */\n    }\n\n    /**\n     * get the NEXT RowRecord or CellValueRecord(from LOC).  The first record that\n     * is a Row record or CellValueRecord(starting at LOC) will be returned.\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.  For this method, set loc to dimsloc to start with.\n     * subsequent calls will return rows in (physical) sequence or NULL when you get to the end.\n     *\n     * @return RowRecord representing the next row record or CellValueRecordInterface\n     *  representing the next cellvalue or NULL if there are no more\n     * @see #setLoc(int)\n     *\n     */\n\n/*    public Record getNextRowOrValue()\n    {\n        log.debug((new StringBuffer(\"getNextRow loc= \")).append(loc)\n            .toString());\n        if (this.getLoc() < records.size())\n        {\n            for (int k = this.getLoc(); k < records.size(); k++)\n            {\n                Record rec = ( Record ) records.get(k);\n\n                this.setLoc(k + 1);\n                if (rec.getSid() == RowRecord.sid)\n                {\n                    return rec;\n                }\n                else if (rec.isValue())\n                {\n                    return rec;\n                }\n            }\n        }\n        return null;\n    }\n */\n\n    /**\n     * get the NEXT RowRecord (from LOC).  The first record that is a Row record\n     * (starting at LOC) will be returned.\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.  For this method, set loc to dimsloc to start with.\n     * subsequent calls will return rows in (physical) sequence or NULL when you get to the end.\n     *\n     * @return RowRecord representing the next row record or NULL if there are no more\n     * @see #setLoc(int)\n     *\n     */\n\n    public RowRecord getNextRow()\n    {\n        log.log(log.DEBUG, \"getNextRow loc= \" + loc);\n        if (rowRecIterator == null)\n        {\n            rowRecIterator = rows.getIterator();\n        }\n        if (!rowRecIterator.hasNext())\n        {\n            return null;\n        }\n        return ( RowRecord ) rowRecIterator.next();\n\n/*        if (this.getLoc() < records.size())\n        {\n            for (int k = this.getLoc(); k < records.size(); k++)\n            {\n                Record rec = ( Record ) records.get(k);\n\n                this.setLoc(k + 1);\n                if (rec.getSid() == RowRecord.sid)\n                {\n                    return ( RowRecord ) rec;\n                }\n            }\n        }*/\n    }\n\n    /**\n     * get the NEXT (from LOC) RowRecord where rownumber matches the given rownum.\n     * The first record that is a Row record (starting at LOC) that has the\n     * same rownum as the given rownum will be returned.\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.  For this method, set loc to dimsloc to start with.\n     * subsequent calls will return rows in (physical) sequence or NULL when you get to the end.\n     *\n     * @param rownum   which row to return (careful with LOC)\n     * @return RowRecord representing the next row record or NULL if there are no more\n     * @see #setLoc(int)\n     *\n     */\n\n    public RowRecord getRow(short rownum)\n    {\n        log.log(log.DEBUG, \"getNextRow loc= \" + loc);\n        return rows.getRow(rownum);\n\n        /*\n         * if (this.getLoc() < records.size())\n         * {\n         *   for (int k = this.getLoc(); k < records.size(); k++)\n         *   {\n         *       Record rec = ( Record ) records.get(k);\n         *\n         *       this.setLoc(k + 1);\n         *       if (rec.getSid() == RowRecord.sid)\n         *       {\n         *           if ((( RowRecord ) rec).getRowNumber() == rownum)\n         *           {\n         *               return ( RowRecord ) rec;\n         *           }\n         *       }\n         *   }\n         * }\n         */\n\n    }\n\n    /**\n     * Not currently used method to calculate and add dbcell records\n     *\n     */\n\n    public void addDBCellRecords()\n    {\n        int         offset        = 0;\n        int         recnum        = 0;\n        int         rownum        = 0;\n        IndexRecord index         = null;\n\n        IntList     rowOffsets    = new IntList();\n\n        for (recnum = 0; recnum < records.size(); recnum++)\n        {\n            Record rec = ( Record ) records.get(recnum);\n\n            if (rec.getSid() == IndexRecord.sid)\n            {\n                index = ( IndexRecord ) rec;\n            }\n            if (rec.getSid() != RowRecord.sid)\n            {\n                offset += rec.serialize().length;\n            }\n            else\n            {\n                break;\n            }\n        }\n\n        for (; recnum < records.size(); recnum++)\n        {\n            Record rec = ( Record ) records.get(recnum);\n\n            if (rec.getSid() == RowRecord.sid)\n            {\n                rownum++;\n                rowOffsets.add(offset);\n                if ((rownum % 32) == 0)\n                {\n\n                    for (int rn = recnum; rn < records.size(); rn++)\n                    {\n                        rec = ( Record ) records.get(rn);\n                        if ((!rec.isInValueSection())\n                                || (rec.getSid() == RowRecord.sid))\n                        {\n\n                            records.add(rn,\n                                        createDBCell(offset, rowOffsets,\n                                                     index));\n                            recnum = rn;\n                            break;\n                        }\n                    }\n                }\n                else\n                {\n                }\n            }\n            if (!rec.isInValueSection())\n            {\n                records.add(recnum, createDBCell(offset, rowOffsets, index));\n                break;\n            }\n            offset += rec.serialize().length;\n        }\n    }\n\n    /** not currently used */\n\n    private DBCellRecord createDBCell(int offset, IntList rowoffsets,\n                                      IndexRecord index)\n    {\n        DBCellRecord rec = new DBCellRecord();\n\n        rec.setRowOffset(offset - rowoffsets.get(0));\n\n        rec.addCellOffset(( short ) 0x0);\n\n        addDbCellToIndex(offset, index);\n        return rec;\n    }\n\n    /** not currently used */\n\n    private void addDbCellToIndex(int offset, IndexRecord index)\n    {\n        int numdbcells = index.getNumDbcells() + 1;\n\n        index.addDbcell(offset + preoffset);\n\n        for (int k = 0; k < numdbcells; k++)\n        {\n            int dbval = index.getDbcellAt(k);\n\n            index.setDbcell(k, dbval + 4);\n        }\n    }\n\n    /**\n     * creates the BOF record\n     * @see org.apache.poi.hssf.record.BOFRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a BOFRecord\n     */\n\n    protected Record createBOF()\n    {\n        BOFRecord retval = new BOFRecord();\n\n        retval.setVersion(( short ) 0x600);\n        retval.setType(( short ) 0x010);\n\n        retval.setBuild(( short ) 0x0dbb);\n        retval.setBuildYear(( short ) 1996);\n        retval.setHistoryBitMask(0xc1);\n        retval.setRequiredVersion(0x6);\n        return retval;\n    }\n\n    /**\n     * creates the Index record  - not currently used\n     * @see org.apache.poi.hssf.record.IndexRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a IndexRecord\n     */\n\n    protected Record createIndex()\n    {\n        IndexRecord retval = new IndexRecord();\n\n        retval.setLastRowAdd1(0);\n        return retval;\n    }\n\n    /**\n     * creates the CalcMode record and sets it to 1 (automatic formula caculation)\n     * @see org.apache.poi.hssf.record.CalcModeRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a CalcModeRecord\n     */\n\n    protected Record createCalcMode()\n    {\n        CalcModeRecord retval = new CalcModeRecord();\n\n        retval.setCalcMode(( short ) 1);\n        return retval;\n    }\n\n    /**\n     * creates the CalcCount record and sets it to 0x64 (default number of iterations)\n     * @see org.apache.poi.hssf.record.CalcCountRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a CalcCountRecord\n     */\n\n    protected Record createCalcCount()\n    {\n        CalcCountRecord retval = new CalcCountRecord();\n\n        return retval;\n    }\n\n    /**\n     * creates the RefMode record and sets it to A1 Mode (default reference mode)\n     * @see org.apache.poi.hssf.record.RefModeRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a RefModeRecord\n     */\n\n    protected Record createRefMode()\n    {\n        RefModeRecord retval = new RefModeRecord();\n\n        retval.setMode(retval.USE_A1_MODE);\n        return retval;\n    }\n\n    /**\n     * creates the Iteration record and sets it to false (don't iteratively calculate formulas)\n     * @see org.apache.poi.hssf.record.IterationRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a IterationRecord\n     */\n\n    protected Record createIteration()\n    {\n        IterationRecord retval = new IterationRecord();\n\n        retval.setIteration(false);\n        return retval;\n    }\n\n    /**\n     * creates the Delta record and sets it to 0.0010 (default accuracy)\n     * @see org.apache.poi.hssf.record.DeltaRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DeltaRecord\n     */\n\n    protected Record createDelta()\n    {\n        DeltaRecord retval = new DeltaRecord();\n\n        retval.setMaxChange((( double ) 0.0010));\n        return retval;\n    }\n\n    /**\n     * creates the SaveRecalc record and sets it to true (recalculate before saving)\n     * @see org.apache.poi.hssf.record.SaveRecalcRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a SaveRecalcRecord\n     */\n\n    protected Record createSaveRecalc()\n    {\n        SaveRecalcRecord retval = new SaveRecalcRecord();\n\n        retval.setRecalc(true);\n        return retval;\n    }\n\n    /**\n     * creates the PrintHeaders record and sets it to false (we don't create headers yet so why print them)\n     * @see org.apache.poi.hssf.record.PrintHeadersRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PrintHeadersRecord\n     */\n\n    protected Record createPrintHeaders()\n    {\n        PrintHeadersRecord retval = new PrintHeadersRecord();\n\n        retval.setPrintHeaders(false);\n        return retval;\n    }\n\n    /**\n     * creates the PrintGridlines record and sets it to false (that makes for ugly sheets).  As far as I can\n     * tell this does the same thing as the GridsetRecord\n     *\n     * @see org.apache.poi.hssf.record.PrintGridlinesRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PrintGridlinesRecord\n     */\n\n    protected Record createPrintGridlines()\n    {\n        PrintGridlinesRecord retval = new PrintGridlinesRecord();\n\n        retval.setPrintGridlines(false);\n        return retval;\n    }\n\n    /**\n     * creates the Gridset record and sets it to true (user has mucked with the gridlines)\n     * @see org.apache.poi.hssf.record.GridsetRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a GridsetRecord\n     */\n\n    protected Record createGridset()\n    {\n        GridsetRecord retval = new GridsetRecord();\n\n        retval.setGridset(true);\n        return retval;\n    }\n\n    /**\n     * creates the Guts record and sets leftrow/topcol guttter and rowlevelmax/collevelmax to 0\n     * @see org.apache.poi.hssf.record.GutsRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a GutsRecordRecord\n     */\n\n    protected Record createGuts()\n    {\n        GutsRecord retval = new GutsRecord();\n\n        retval.setLeftRowGutter(( short ) 0);\n        retval.setTopColGutter(( short ) 0);\n        retval.setRowLevelMax(( short ) 0);\n        retval.setColLevelMax(( short ) 0);\n        return retval;\n    }\n\n    /**\n     * creates the DefaultRowHeight Record and sets its options to 0 and rowheight to 0xff\n     * @see org.apache.poi.hssf.record.DefaultRowHeightRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DefaultRowHeightRecord\n     */\n\n    protected Record createDefaultRowHeight()\n    {\n        DefaultRowHeightRecord retval = new DefaultRowHeightRecord();\n\n        retval.setOptionFlags(( short ) 0);\n        retval.setRowHeight(( short ) 0xff);\n        return retval;\n    }\n\n    /**\n     * creates the WSBoolRecord and sets its values to defaults\n     * @see org.apache.poi.hssf.record.WSBoolRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a WSBoolRecord\n     */\n\n    protected Record createWSBool()\n    {\n        WSBoolRecord retval = new WSBoolRecord();\n\n        retval.setWSBool1(( byte ) 0x4);\n        retval.setWSBool2(( byte ) 0xffffffc1);\n        return retval;\n    }\n\n    /**\n     * creates the Header Record and sets it to nothing/0 length\n     * @see org.apache.poi.hssf.record.HeaderRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a HeaderRecord\n     */\n\n    protected Record createHeader()\n    {\n        HeaderRecord retval = new HeaderRecord();\n\n        retval.setHeaderLength(( byte ) 0);\n        retval.setHeader(null);\n        return retval;\n    }\n\n    /**\n     * creates the Footer Record and sets it to nothing/0 length\n     * @see org.apache.poi.hssf.record.FooterRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a FooterRecord\n     */\n\n    protected Record createFooter()\n    {\n        FooterRecord retval = new FooterRecord();\n\n        retval.setFooterLength(( byte ) 0);\n        retval.setFooter(null);\n        return retval;\n    }\n\n    /**\n     * creates the HCenter Record and sets it to false (don't horizontally center)\n     * @see org.apache.poi.hssf.record.HCenterRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a HCenterRecord\n     */\n\n    protected Record createHCenter()\n    {\n        HCenterRecord retval = new HCenterRecord();\n\n        retval.setHCenter(false);\n        return retval;\n    }\n\n    /**\n     * creates the VCenter Record and sets it to false (don't horizontally center)\n     * @see org.apache.poi.hssf.record.VCenterRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a VCenterRecord\n     */\n\n    protected Record createVCenter()\n    {\n        VCenterRecord retval = new VCenterRecord();\n\n        retval.setVCenter(false);\n        return retval;\n    }\n\n    /**\n     * creates the PrintSetup Record and sets it to defaults and marks it invalid\n     * @see org.apache.poi.hssf.record.PrintSetupRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PrintSetupRecord\n     */\n\n    protected Record createPrintSetup()\n    {\n        PrintSetupRecord retval = new PrintSetupRecord();\n\n        retval.setPaperSize(( short ) 1);\n        retval.setScale(( short ) 100);\n        retval.setPageStart(( short ) 1);\n        retval.setFitWidth(( short ) 1);\n        retval.setFitHeight(( short ) 1);\n        retval.setOptions(( short ) 2);\n        retval.setHResolution(( short ) 300);\n        retval.setVResolution(( short ) 300);\n        retval.setHeaderMargin(( double ) 0.5);\n        retval.setFooterMargin(( double ) 0.5);\n        retval.setCopies(( short ) 0);\n        return retval;\n    }\n\n    /**\n     * creates the DefaultColWidth Record and sets it to 8\n     * @see org.apache.poi.hssf.record.DefaultColWidthRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DefaultColWidthRecord\n     */\n\n    protected Record createDefaultColWidth()\n    {\n        DefaultColWidthRecord retval = new DefaultColWidthRecord();\n\n        retval.setColWidth(( short ) 8);\n        return retval;\n    }\n\n    /**\n     * creates the ColumnInfo Record and sets it to a default column/width\n     * @see org.apache.poi.hssf.record.ColumnInfoRecord\n     * @return record containing a ColumnInfoRecord\n     */\n\n    protected Record createColInfo()\n    {\n        ColumnInfoRecord retval = new ColumnInfoRecord();\n\n        retval.setColumnWidth(( short ) 0x8);\n        retval.setOptions(( short ) 6);\n        retval.setXFIndex(( short ) 0x0f);\n        return retval;\n    }\n\n    /**\n     * get the default column width for the sheet (if the columns do not define their own width)\n     * @return default column width\n     */\n\n    public short getDefaultColumnWidth()\n    {\n        return defaultcolwidth.getColWidth();\n    }\n\n    /**\n     * get whether gridlines are printed.\n     * @return true if printed\n     */\n\n    public boolean isGridsPrinted()\n    {\n        return !gridset.getGridset();\n    }\n\n    /**\n     * set whether gridlines printed or not.\n     * @param value     True if gridlines printed.\n     */\n\n    public void setGridsPrinted(boolean value)\n    {\n        gridset.setGridset(!value);\n    }\n\n    /**\n     * set the default column width for the sheet (if the columns do not define their own width)\n     * @param dcw  default column width\n     */\n\n    public void setDefaultColumnWidth(short dcw)\n    {\n        defaultcolwidth.setColWidth(dcw);\n    }\n\n    /**\n     * set the default row height for the sheet (if the rows do not define their own height)\n     */\n\n    public void setDefaultRowHeight(short dch)\n    {\n        defaultrowheight.setRowHeight(dch);\n    }\n\n    /**\n     * get the default row height for the sheet (if the rows do not define their own height)\n     * @return  default row height\n     */\n\n    public short getDefaultRowHeight()\n    {\n        return defaultrowheight.getRowHeight();\n    }\n\n    /**\n     * get the width of a given column in units of 1/20th of a point width (twips?)\n     * @param column index\n     * @see org.apache.poi.hssf.record.DefaultColWidthRecord\n     * @see org.apache.poi.hssf.record.ColumnInfoRecord\n     * @see #setColumnWidth(short,short)\n     * @return column width in units of 1/20th of a point (twips?)\n     */\n\n    public short getColumnWidth(short column)\n    {\n        short            retval = 0;\n        ColumnInfoRecord ci     = null;\n        int              k      = 0;\n\n        if (columnSizes != null)\n        {\n            for (k = 0; k < columnSizes.size(); k++)\n            {\n                ci = ( ColumnInfoRecord ) columnSizes.get(k);\n                if ((ci.getFirstColumn() >= column)\n                        && (ci.getLastColumn() <= column))\n                {\n                    break;\n                }\n                ci = null;\n            }\n        }\n        if (ci != null)\n        {\n            retval = ci.getColumnWidth();\n        }\n        else\n        {\n            retval = defaultcolwidth.getColWidth();\n        }\n        return retval;\n    }\n\n    /**\n     * set the width for a given column in 1/20th of a character width units\n     * @param column - the column number\n     * @param width (in units of 1/20th of a character width)\n     */\n\n    public void setColumnWidth(short column, short width)\n    {\n        ColumnInfoRecord ci = null;\n        int              k  = 0;\n\n        if (columnSizes == null)\n        {\n            columnSizes = new ArrayList();\n        }\n\n        for (k = 0; k < columnSizes.size(); k++)\n        {\n            ci = ( ColumnInfoRecord ) columnSizes.get(k);\n            if ((ci.getFirstColumn() >= column)\n                    && (ci.getLastColumn() <= column))\n            {\n                break;\n            }\n            ci = null;\n        }\n        if (ci != null)\n        {\n            if (ci.getColumnWidth() == width)\n            {\n\n            }\n            else if ((ci.getFirstColumn() == column)\n                     && (ci.getLastColumn() == column)){\n            }\n            else if ((ci.getFirstColumn() == column)\n                     || (ci.getLastColumn() == column))\n            {\n\n                if (ci.getFirstColumn() == column)\n                {\n                    ci.setFirstColumn(( short ) (column + 1));\n                }\n                else\n                {\n                    ci.setLastColumn(( short ) (column - 1));\n                }\n                ColumnInfoRecord nci = ( ColumnInfoRecord ) createColInfo();\n\n                nci.setFirstColumn(column);\n                nci.setLastColumn(column);\n                nci.setOptions(ci.getOptions());\n                nci.setXFIndex(ci.getXFIndex());\n                nci.setColumnWidth(width);\n                columnSizes.add(k, nci);\n                records.add((1 + getDimsLoc() - columnSizes.size()) + k, nci);\n                dimsloc++;\n            }\n        }\n        else\n        {\n\n            ColumnInfoRecord nci = ( ColumnInfoRecord ) createColInfo();\n\n            nci.setFirstColumn(column);\n            nci.setLastColumn(column);\n            nci.setColumnWidth(width);\n            columnSizes.add(k, nci);\n            records.add((1 + getDimsLoc() - columnSizes.size()) + k, nci);\n            dimsloc++;\n        }\n    }\n\n    /**\n     * creates the Dimensions Record and sets it to bogus values (you should set this yourself\n     * or let the high level API do it for you)\n     * @see org.apache.poi.hssf.record.DimensionsRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DimensionsRecord\n     */\n\n    protected Record createDimensions()\n    {\n        DimensionsRecord retval = new DimensionsRecord();\n\n        retval.setFirstCol(( short ) 0);\n        retval.setFirstRow(0);\n        return retval;\n    }\n\n    /**\n     * creates the WindowTwo Record and sets it to:  <P>\n     * options        = 0x6b6 <P>\n     * toprow         = 0 <P>\n     * leftcol        = 0 <P>\n     * headercolor    = 0x40 <P>\n     * pagebreakzoom  = 0x0 <P>\n     * normalzoom     = 0x0 <p>\n     * @see org.apache.poi.hssf.record.WindowTwoRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a WindowTwoRecord\n     */\n\n    protected Record createWindowTwo()\n    {\n        WindowTwoRecord retval = new WindowTwoRecord();\n\n        retval.setOptions(( short ) 0x6b6);\n        retval.setTopRow(( short ) 0);\n        retval.setLeftCol(( short ) 0);\n        retval.setHeaderColor(0x40);\n        retval.setPageBreakZoom(( short ) 0);\n        retval.setNormalZoom(( short ) 0);\n        return retval;\n    }\n\n    /**\n     * Creates the Selection record and sets it to nothing selected\n     *\n     * @see org.apache.poi.hssf.record.SelectionRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a SelectionRecord\n     */\n\n    protected Record createSelection()\n    {\n        SelectionRecord retval = new SelectionRecord();\n\n        retval.setPane(( byte ) 0x3);\n        retval.setActiveCellCol(( short ) 0x0);\n        retval.setActiveCellRow(( short ) 0x0);\n        retval.setNumRefs(( short ) 0x0);\n        return retval;\n    }\n\n    protected Record createMergedCells()\n    {\n        MergeCellsRecord retval = new MergeCellsRecord();\n\n        retval.setNumAreas(( short ) 0);\n        return retval;\n    }\n\n    /**\n     * creates the EOF record\n     * @see org.apache.poi.hssf.record.EOFRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a EOFRecord\n     */\n\n    protected Record createEOF()\n    {\n        return new EOFRecord();\n    }\n\n    /**\n     * get the location of the DimensionsRecord (which is the last record before the value section)\n     * @return location in the array of records of the DimensionsRecord\n     */\n\n    public int getDimsLoc()\n    {\n        log.log(log.DEBUG, \"getDimsLoc dimsloc= \" + dimsloc);\n        return dimsloc;\n    }\n\n    /**\n     * in the event the record is a dimensions record, resets both the loc index and dimsloc index\n     */\n\n    public void checkDimsLoc(Record rec, int recloc)\n    {\n        if (rec.getSid() == DimensionsRecord.sid)\n        {\n            loc     = recloc;\n            dimsloc = recloc;\n        }\n    }\n\n    public int getSize()\n    {\n        int retval = 0;\n\n        for (int k = 0; k < records.size(); k++)\n        {\n            retval += (( Record ) records.get(k)).getRecordSize();\n        }\n        return retval;\n    }\n\n    public List getRecords()\n    {\n        return records;\n    }\n\n    /**\n     * Gets the gridset record for this sheet.\n     */\n\n    public GridsetRecord getGridsetRecord()\n    {\n        return gridset;\n    }\n\n    /**\n     * Returns the first occurance of a record matching a particular sid.\n     */\n\n    public Record findFirstRecordBySid(short sid)\n    {\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); )\n        {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid)\n            {\n                return record;\n            }\n        }\n        return null;", "functions": [{"function_name": "createSheet", "code": "    public static Sheet createSheet(List recs, int sheetnum, int offset)\n    {\n        log.logFormatted(log.DEBUG,\n                         \"Sheet createSheet (existing file) with %\",\n                         new Integer(recs.size()));\n        Sheet     retval             = new Sheet();\n        ArrayList records            = new ArrayList(recs.size() / 5);\n        boolean   isfirstcell        = true;\n        boolean   isfirstrow         = true;\n        int       bofEofNestingLevel = 0;\n\n        for (int k = offset; k < recs.size(); k++)\n        {\n            Record rec = ( Record ) recs.get(k);\n\n            if (rec.getSid() == LabelRecord.sid)\n            {\n                log.log(log.DEBUG, \"Hit label record\");\n                retval.containsLabels = true;\n            }\n            else if (rec.getSid() == BOFRecord.sid)\n            {\n                bofEofNestingLevel++;\n            }\n            else if ((rec.getSid() == EOFRecord.sid)\n                     && (--bofEofNestingLevel == 0))\n            {\n                log.log(log.DEBUG, \"Hit EOF record at \");\n                records.add(rec);\n                break;\n            }\n            else if (rec.getSid() == DimensionsRecord.sid)\n            {\n                retval.dims    = ( DimensionsRecord ) rec;\n                retval.dimsloc = records.size();\n            }\n            else if (rec.getSid() == MergeCellsRecord.sid)\n            {\n                retval.merged    = ( MergeCellsRecord ) rec;\n                retval.mergedloc = k - offset;\n            }\n            else if (rec.getSid() == ColumnInfoRecord.sid)\n            {\n                if (retval.columnSizes == null)\n                {\n                    retval.columnSizes = new ArrayList();\n                }\n                retval.columnSizes.add(( ColumnInfoRecord ) rec);\n            }\n            else if (rec.getSid() == DefaultColWidthRecord.sid)\n            {\n                retval.defaultcolwidth = ( DefaultColWidthRecord ) rec;\n            }\n            else if (rec.getSid() == DefaultRowHeightRecord.sid)\n            {\n                retval.defaultrowheight = ( DefaultRowHeightRecord ) rec;\n            }\n            else if (rec.isValue())\n            {\n                if (isfirstcell)\n                {\n                    retval.cells = new ValueRecordsAggregate();\n                    rec          = retval.cells;\n                    retval.cells.construct(k, recs);\n                    isfirstcell = false;\n                }\n                else\n                {\n                    rec = null;\n                }\n            }\n            else if (rec.getSid() == RowRecord.sid)\n            {\n                if (isfirstrow)\n                {\n                    retval.rows = new RowRecordsAggregate();\n                    rec         = retval.rows;\n                    retval.rows.construct(k, recs);\n                    isfirstrow = false;\n                }\n                else\n                {\n                    rec = null;\n                }\n            }\n            if (rec != null)\n            {\n                records.add(rec);\n            }\n        }\n        retval.records = records;\n        log.log(log.DEBUG, \"sheet createSheet (existing file) exited\");\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "ASSIGN", "ASSIGN", "IF", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [0, 14], [11, 15], [2, 16], [2, 17], [2, 18], [13, 19], [3, 20], [4, 21], [5, 22], [6, 23], [7, 24], [14, 25], [14, 26], [16, 27], [17, 28], [17, 29], [23, 30], [25, 31], [27, 32], [28, 33], [28, 34], [29, 35], [30, 36], [30, 37], [16, 38], [33, 39], [33, 40], [34, 41], [17, 42], [17, 43], [18, 44], [39, 45], [39, 46], [33, 47], [40, 48], [40, 49], [42, 50], [43, 51], [45, 52], [45, 53], [46, 54], [33, 55], [33, 56], [48, 57], [49, 58], [52, 59], [52, 60], [53, 61], [39, 62], [39, 63], [56, 64], [59, 65], [59, 66], [52, 67], [60, 68], [45, 69], [45, 70], [62, 71], [65, 72], [65, 73], [66, 74], [52, 75], [67, 76], [69, 77], [72, 78], [72, 79], [73, 80], [59, 81], [76, 82], [78, 83], [72, 84], [65, 85], [67, 86], [78, 87], [83, 88], [86, 89], [84, 90], [84, 91], [84, 92], [84, 93], [84, 94], [87, 95], [87, 96], [87, 97], [87, 98], [87, 99], [90, 100], [91, 101], [94, 102], [95, 103], [96, 104], [99, 105], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 0], [15, 11], [16, 2], [17, 2], [18, 2], [19, 13], [20, 3], [21, 4], [22, 5], [23, 6], [24, 7], [25, 14], [26, 14], [27, 16], [28, 17], [29, 17], [30, 23], [31, 25], [32, 27], [33, 28], [34, 28], [35, 29], [36, 30], [37, 30], [38, 16], [39, 33], [40, 33], [41, 34], [42, 17], [43, 17], [44, 18], [45, 39], [46, 39], [47, 33], [48, 40], [49, 40], [50, 42], [51, 43], [52, 45], [53, 45], [54, 46], [55, 33], [56, 33], [57, 48], [58, 49], [59, 52], [60, 52], [61, 53], [62, 39], [63, 39], [64, 56], [65, 59], [66, 59], [67, 52], [68, 60], [69, 45], [70, 45], [71, 62], [72, 65], [73, 65], [74, 66], [75, 52], [76, 67], [77, 69], [78, 72], [79, 72], [80, 73], [81, 59], [82, 76], [83, 78], [84, 72], [85, 65], [86, 67], [87, 78], [88, 83], [89, 86], [90, 84], [91, 84], [92, 84], [93, 84], [94, 84], [95, 87], [96, 87], [97, 87], [98, 87], [99, 87], [100, 90], [101, 91], [102, 94], [103, 95], [104, 96], [105, 99], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105]]}, {"function_name": "createSheet", "code": "    public static Sheet createSheet(List records, int sheetnum)\n    {\n        log.log(log.DEBUG,\n                \"Sheet createSheet (exisiting file) assumed offset 0\");\n        return createSheet(records, sheetnum, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createSheet", "code": "    public static Sheet createSheet()\n    {\n        log.log(log.DEBUG, \"Sheet createsheet from scratch called\");\n        Sheet     retval  = new Sheet();\n        ArrayList records = new ArrayList(30);\n\n        records.add(retval.createBOF());\n\n        records.add(retval.createCalcMode());\n        records.add(retval.createCalcCount());\n        records.add(retval.createRefMode());\n        records.add(retval.createIteration());\n        records.add(retval.createDelta());\n        records.add(retval.createSaveRecalc());\n        records.add(retval.createPrintHeaders());\n        records.add(retval.createPrintGridlines());\n        retval.gridset = ( GridsetRecord ) retval.createGridset();\n        records.add(retval.gridset);\n        records.add(retval.createGuts());\n        retval.defaultrowheight =\n            ( DefaultRowHeightRecord ) retval.createDefaultRowHeight();\n        records.add(retval.defaultrowheight);\n        records.add(retval.createWSBool());\n        records.add(retval.createHeader());\n        records.add(retval.createFooter());\n        records.add(retval.createHCenter());\n        records.add(retval.createVCenter());\n        records.add(retval.createPrintSetup());\n        retval.defaultcolwidth =\n            ( DefaultColWidthRecord ) retval.createDefaultColWidth();\n        records.add(retval.defaultcolwidth);\n        retval.dims    = ( DimensionsRecord ) retval.createDimensions();\n        retval.dimsloc = 19;\n        records.add(retval.dims);\n        records.add(retval.createWindowTwo());\n        retval.setLoc(records.size() - 1);\n        records.add(retval.createSelection());\n        records.add(retval.createEOF());\n        retval.records = records;\n        log.log(log.DEBUG, \"Sheet createsheet from scratch exit\");\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [4, 36], [6, 37], [7, 38], [8, 39], [9, 40], [11, 41], [15, 42], [16, 43], [17, 44], [18, 45], [19, 46], [20, 47], [23, 48], [26, 49], [27, 50], [28, 51], [29, 52], [30, 53], [31, 54], [32, 55], [33, 56], [34, 57], [2, 58], [3, 59], [35, 60], [39, 61], [39, 62], [12, 63], [14, 64], [22, 65], [25, 66], [58, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 4], [37, 6], [38, 7], [39, 8], [40, 9], [41, 11], [42, 15], [43, 16], [44, 17], [45, 18], [46, 19], [47, 20], [48, 23], [49, 26], [50, 27], [51, 28], [52, 29], [53, 30], [54, 31], [55, 32], [56, 33], [57, 34], [58, 2], [59, 3], [60, 35], [61, 39], [62, 39], [63, 12], [64, 14], [65, 22], [66, 25], [67, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "checkCells", "code": "    private void checkCells()\n    {\n        if (cells == null)\n        {\n            cells = new ValueRecordsAggregate();\n            records.add(getDimsLoc() + 1, cells);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "checkRows", "code": "    private void checkRows()\n    {\n        if (rows == null)\n        {\n            rows = new RowRecordsAggregate();\n            records.add(getDimsLoc() + 1, rows);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "addMergedRegion", "code": "    public int addMergedRegion(short rowFrom, short colFrom, short rowTo,\n                               short colTo)\n    {\n        if (merged == null)\n        {\n            merged    = ( MergeCellsRecord ) createMergedCells();\n            mergedloc = records.size() - 1;\n            records.add(records.size() - 1, merged);\n        }\n        return merged.addArea(rowFrom, colFrom, rowTo, colTo);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [8, 9], [2, 10], [2, 11], [2, 12], [10, 13], [11, 14], [13, 15], [13, 16], [14, 17], [14, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 8], [10, 2], [11, 2], [12, 2], [13, 10], [14, 11], [15, 13], [16, 13], [17, 14], [18, 14], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "removeMergedRegion", "code": "    public void removeMergedRegion(int index)\n    {\n        merged.removeAreaAt(index);\n        if (merged.getNumAreas() == 0)\n        {\n            merged = null;\n            records.remove(mergedloc);\n            mergedloc = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [3, 6], [1, 7], [1, 8], [1, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 3], [7, 1], [8, 1], [9, 1], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getMergedRegionAt", "code": "    public MergeCellsRecord.MergedRegion getMergedRegionAt(int index)\n    {\n        return merged.getAreaAt(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNumMergedRegions", "code": "    public int getNumMergedRegions()\n    {\n        return merged.getNumAreas();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "convertLabelRecords", "code": "    public void convertLabelRecords(Workbook wb)\n    {\n        log.log(log.DEBUG, \"convertLabelRecords called\");\n        if (containsLabels)\n        {\n            for (int k = 0; k < records.size(); k++)\n            {\n                Record rec = ( Record ) records.get(k);\n\n                if (rec.getSid() == LabelRecord.sid)\n                {\n                    LabelRecord oldrec = ( LabelRecord ) rec;\n\n                    records.remove(k);\n                    LabelSSTRecord newrec   = new LabelSSTRecord();\n                    int            stringid =\n                        wb.addSSTString(oldrec.getValue());\n\n                    newrec.setRow(oldrec.getRow());\n                    newrec.setColumn(oldrec.getColumn());\n                    newrec.setXFIndex(oldrec.getXFIndex());\n                    newrec.setSSTIndex(stringid);\n                    records.add(k, newrec);\n                }\n            }\n        }\n        log.log(log.DEBUG, \"convertLabelRecords exit\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 6], [4, 7], [6, 8], [6, 9], [6, 10], [8, 11], [9, 12], [6, 13], [9, 14], [9, 15], [9, 16], [12, 17], [9, 18], [9, 19], [9, 20], [9, 21], [9, 22], [9, 23], [10, 24], [20, 25], [21, 26], [22, 27], [14, 28], [15, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 1], [7, 4], [8, 6], [9, 6], [10, 6], [11, 8], [12, 9], [13, 6], [14, 9], [15, 9], [16, 9], [17, 12], [18, 9], [19, 9], [20, 9], [21, 9], [22, 9], [23, 9], [24, 10], [25, 20], [26, 21], [27, 22], [28, 14], [29, 15], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getNumRecords", "code": "    public int getNumRecords()\n    {\n        checkCells();\n        checkRows();\n        log.log(log.DEBUG, \"Sheet.getNumRecords\");\n        log.logFormatted(log.DEBUG, \"returning % + % + % - 2 = %\", new int[]\n        {\n            records.size(), cells.getPhysicalNumberOfCells(),\n            rows.getPhysicalNumberOfRows(),\n            records.size() + cells.getPhysicalNumberOfCells()\n            + rows.getPhysicalNumberOfRows() - 2\n        });\n        return records.size() + cells.getPhysicalNumberOfCells()\n               + rows.getPhysicalNumberOfRows() - 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [4, 10], [8, 11], [8, 12], [12, 13], [12, 14], [3, 15], [3, 16], [3, 17], [3, 18], [15, 19], [15, 20], [20, 21], [20, 22], [22, 23], [22, 24], [1, 0], [2, 1], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 4], [11, 8], [12, 8], [13, 12], [14, 12], [15, 3], [16, 3], [17, 3], [18, 3], [19, 15], [20, 15], [21, 20], [22, 20], [23, 22], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "setDimensions", "code": "    public void setDimensions(short firstrow, short firstcol, short lastrow,\n                              short lastcol)\n    {\n        log.log(log.DEBUG, \"Sheet.setDimensions\");\n        log.log(log.DEBUG,\n                (new StringBuffer(\"firstrow\")).append(firstrow)\n                    .append(\"firstcol\").append(firstcol).append(\"lastrow\")\n                    .append(lastrow).append(\"lastcol\").append(lastcol)\n                    .toString());\n        dims.setFirstCol(firstcol);\n        dims.setFirstRow(firstrow);\n        dims.setLastCol(lastcol);\n        dims.setLastRow(lastrow);\n        log.log(log.DEBUG, \"Sheet.setDimensions exiting\");", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [5, 12], [10, 13], [11, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [18, 24], [20, 25], [22, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 5], [13, 10], [14, 11], [15, 13], [16, 13], [17, 13], [18, 13], [19, 13], [20, 13], [21, 13], [22, 13], [23, 13], [24, 18], [25, 20], [26, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "setLoc", "code": "    public void setLoc(int loc)\n    {\n        valueRecIterator = null;\n        log.log(log.DEBUG, \"sheet.setLoc(): \" + loc);\n        this.loc = loc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getLoc", "code": "    public int getLoc()\n    {\n        log.log(log.DEBUG, \"sheet.getLoc():\" + loc);\n        return loc;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setPreOffset", "code": "    public void setPreOffset(int offset)\n    {\n        this.preoffset = offset;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPreOffset", "code": "    public int getPreOffset()\n    {\n        return preoffset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "serialize", "code": "    public byte [] serialize()\n    {\n        log.log(log.DEBUG, \"Sheet.serialize\");\n\n        byte[] retval    = null;\n\n        int    arraysize = getSize();\n        int    pos       = 0;\n\n        retval = new byte[ arraysize ];\n        for (int k = 0; k < records.size(); k++)\n        {\n\n            pos += (( Record ) records.get(k)).serialize(pos);\n        }\n        log.log(log.DEBUG, \"Sheet.serialize returning \" + retval);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [3, 12], [4, 13], [5, 14], [9, 15], [10, 16], [2, 17], [2, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 3], [13, 4], [14, 5], [15, 9], [16, 10], [17, 2], [18, 2], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        log.log(log.DEBUG, \"Sheet.serialize using offsets\");\n\n        int pos       = 0;\n\n        for (int k = 0; k < records.size(); k++)\n        {\n\n            pos += (( Record ) records.get(k)).serialize(pos + offset);\n        }\n        log.log(log.DEBUG, \"Sheet.serialize returning \");\n        return pos;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [6, 9], [7, 10], [3, 11], [8, 12], [2, 13], [2, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 6], [10, 7], [11, 3], [12, 8], [13, 2], [14, 2], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "createRow", "code": "    public RowRecord createRow(int row)\n    {\n        log.log(log.DEBUG, \"create row number \" + row);\n        RowRecord rowrec = new RowRecord();\n\n        rowrec.setRowNumber(( short ) row);\n        rowrec.setHeight(( short ) 0xff);\n        rowrec.setOptimize(( short ) 0x0);\n        rowrec.setOptionFlags(( short ) 0x0);\n        rowrec.setXFIndex(( short ) 0x0);\n        return rowrec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [9, 11], [4, 12], [5, 13], [6, 14], [7, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 9], [12, 4], [13, 5], [14, 6], [15, 7], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "createLabelSST", "code": "    public LabelSSTRecord createLabelSST(short row, short col, int index)\n    {\n        log.logFormatted(log.DEBUG, \"create labelsst row,col,index %,%,%\",\n                         new int[]\n        {\n            row, col, index\n        });\n        LabelSSTRecord rec = new LabelSSTRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setSSTIndex(index);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [10, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 10], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createNumber", "code": "    public NumberRecord createNumber(short row, short col, double value)\n    {\n        log.logFormatted(log.DEBUG, \"create number row,col,value %,%,%\",\n                         new double[]\n        {\n            row, col, value\n        });\n        NumberRecord rec = new NumberRecord();\n\n        rec.setRow(( short ) row);\n        rec.setColumn(col);\n        rec.setValue(value);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [10, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 10], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createBlank", "code": "    public BlankRecord createBlank(short row, short col)\n    {\n        log.logFormatted(log.DEBUG, \"create blank row,col %,%\", new short[]\n        {\n            row, col\n        });\n        BlankRecord rec = new BlankRecord();\n\n        rec.setRow(( short ) row);\n        rec.setColumn(col);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [8, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 8], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "createFormula", "code": "    public FormulaRecord createFormula(short row, short col, String formula)\n    {\n        log.logFormatted(log.DEBUG, \"create formula row,col,formula %,%,%\",\n                         new short[]\n        {\n            row, col\n        }, formula);\n        FormulaRecord rec = new FormulaRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setOptions(( short ) 2);\n        rec.setValue(0);\n        rec.setXFIndex(( short ) 0x0f);\n        Ptg[] ptg  = FormulaUtil.parseFormula(formula);\n        int   size = 0;\n\n        for (int k = 0; k < ptg.length; k++)\n        {\n            size += ptg[ k ].getSize();\n            rec.pushExpressionToken(ptg[ k ]);\n        }\n        rec.setExpressionLength(( short ) size);\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [3, 17], [4, 18], [12, 19], [5, 20], [16, 21], [2, 22], [2, 23], [2, 24], [11, 25], [13, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 3], [18, 4], [19, 12], [20, 5], [21, 16], [22, 2], [23, 2], [24, 2], [25, 11], [26, 13], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "addValueRecord", "code": "    public void addValueRecord(short row, CellValueRecordInterface col)\n    {\n        checkCells();\n        log.logFormatted(log.DEBUG, \"add value record  row,loc %,%\", new int[]\n        {\n            row, loc\n        });\n        DimensionsRecord d = ( DimensionsRecord ) records.get(getDimsLoc());\n\n        if (col.getColumn() > d.getLastCol())\n        {\n            d.setLastCol(( short ) (col.getColumn() + 1));\n        }\n        if (col.getColumn() < d.getFirstCol())\n        {\n            d.setFirstCol(col.getColumn());\n        }\n        cells.insertCell(col);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [0, 10], [7, 11], [7, 12], [8, 13], [8, 14], [9, 15], [1, 16], [2, 17], [3, 18], [16, 19], [18, 20], [17, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 0], [11, 7], [12, 7], [13, 8], [14, 8], [15, 9], [16, 1], [17, 2], [18, 3], [19, 16], [20, 18], [21, 17], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "removeValueRecord", "code": "    public void removeValueRecord(short row, CellValueRecordInterface col)\n    {\n        checkCells();\n        log.logFormatted(log.DEBUG, \"remove value record row,dimsloc %,%\",\n                         new int[]\n        {\n            row, dimsloc\n        });\n        loc = dimsloc;\n        cells.removeCell(col);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "replaceValueRecord", "code": "    public void replaceValueRecord(CellValueRecordInterface newval)\n    {\n        checkCells();\n        setLoc(dimsloc);\n        log.log(log.DEBUG, \"replaceValueRecord \");\n        cells.insertCell(newval);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addRow", "code": "    public void addRow(RowRecord row)\n    {\n        checkRows();\n        log.log(log.DEBUG, \"addRow \");\n        DimensionsRecord d = ( DimensionsRecord ) records.get(getDimsLoc());\n\n        if (row.getRowNumber() > d.getLastRow())\n        {\n            d.setLastRow(row.getRowNumber() + 1);\n        }\n        if (row.getRowNumber() < d.getFirstRow())\n        {\n            d.setFirstRow(row.getRowNumber());\n        }\n\n        rows.insertRow(row);\n\n        /*\n         * for (int k = loc; k < records.size(); k++)\n         * {\n         *   Record rec = ( Record ) records.get(k);\n         *\n         *   if (rec.getSid() == IndexRecord.sid)\n         *   {\n         *       index = ( IndexRecord ) rec;\n         *   }\n         *   if (rec.getSid() == RowRecord.sid)\n         *   {\n         *       RowRecord rowrec = ( RowRecord ) rec;\n         *\n         *       if (rowrec.getRowNumber() > row.getRowNumber())\n         *       {\n         *           records.add(k, row);\n         *           loc = k;\n         *           break;\n         *       }\n         *   }\n         *   if (rec.getSid() == WindowTwoRecord.sid)\n         *   {\n         *       records.add(k, row);\n         *       loc = k;\n         *       break;\n         *   }\n         * }\n         * if (index != null)\n         * {\n         *   if (index.getLastRowAdd1() <= row.getRowNumber())\n         *   {\n         *       index.setLastRowAdd1(row.getRowNumber() + 1);\n         *   }\n         * }\n         */\n        log.log(log.DEBUG, \"exit addRow\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [0, 10], [5, 11], [7, 12], [7, 13], [8, 14], [8, 15], [9, 16], [1, 17], [2, 18], [3, 19], [17, 20], [18, 21], [19, 22], [21, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 0], [11, 5], [12, 7], [13, 7], [14, 8], [15, 8], [16, 9], [17, 1], [18, 2], [19, 3], [20, 17], [21, 18], [22, 19], [23, 21], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "removeRow", "code": "    public void removeRow(RowRecord row)\n    {\n        checkRows();\n\n        setLoc(getDimsLoc());\n        rows.removeRow(row);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getNextValueRecord", "code": "    public CellValueRecordInterface getNextValueRecord()\n    {\n        log.log(log.DEBUG, \"getNextValue loc= \" + loc);\n        if (valueRecIterator == null)\n        {\n            valueRecIterator = cells.getIterator();\n        }\n        if (!valueRecIterator.hasNext())\n        {\n            return null;\n        }\n        return ( CellValueRecordInterface ) valueRecIterator.next();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [0, 6], [1, 7], [2, 8], [5, 9], [6, 10], [8, 11], [3, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 0], [7, 1], [8, 2], [9, 5], [10, 6], [11, 8], [12, 3], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getNextRow", "code": "    public RowRecord getNextRow()\n    {\n        log.log(log.DEBUG, \"getNextRow loc= \" + loc);\n        if (rowRecIterator == null)\n        {\n            rowRecIterator = rows.getIterator();\n        }\n        if (!rowRecIterator.hasNext())\n        {\n            return null;\n        }\n        return ( RowRecord ) rowRecIterator.next();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [0, 6], [1, 7], [2, 8], [5, 9], [6, 10], [8, 11], [3, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 0], [7, 1], [8, 2], [9, 5], [10, 6], [11, 8], [12, 3], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRow", "code": "    public RowRecord getRow(short rownum)\n    {\n        log.log(log.DEBUG, \"getNextRow loc= \" + loc);\n        return rows.getRow(rownum);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addDBCellRecords", "code": "    public void addDBCellRecords()\n    {\n        int         offset        = 0;\n        int         recnum        = 0;\n        int         rownum        = 0;\n        IndexRecord index         = null;\n\n        IntList     rowOffsets    = new IntList();\n\n        for (recnum = 0; recnum < records.size(); recnum++)\n        {\n            Record rec = ( Record ) records.get(recnum);\n\n            if (rec.getSid() == IndexRecord.sid)\n            {\n                index = ( IndexRecord ) rec;\n            }\n            if (rec.getSid() != RowRecord.sid)\n            {\n                offset += rec.serialize().length;\n            }\n            else\n            {\n                break;\n            }\n        }\n\n        for (; recnum < records.size(); recnum++)\n        {\n            Record rec = ( Record ) records.get(recnum);\n\n            if (rec.getSid() == RowRecord.sid)\n            {\n                rownum++;\n                rowOffsets.add(offset);\n                if ((rownum % 32) == 0)\n                {\n\n                    for (int rn = recnum; rn < records.size(); rn++)\n                    {\n                        rec = ( Record ) records.get(rn);\n                        if ((!rec.isInValueSection())\n                                || (rec.getSid() == RowRecord.sid))\n                        {\n\n                            records.add(rn,\n                                        createDBCell(offset, rowOffsets,\n                                                     index));\n                            recnum = rn;\n                            break;\n                        }\n                    }\n                }\n                else\n                {\n                }\n            }\n            if (!rec.isInValueSection())\n            {\n                records.add(recnum, createDBCell(offset, rowOffsets, index));\n                break;\n            }\n            offset += rec.serialize().length;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "IF", "VAR_DECL", "CALL", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "IF", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [1, 11], [1, 12], [1, 13], [8, 14], [2, 15], [2, 16], [2, 17], [9, 18], [10, 19], [3, 20], [4, 21], [5, 22], [6, 23], [7, 24], [1, 25], [11, 26], [12, 27], [15, 28], [16, 29], [25, 30], [11, 31], [12, 32], [27, 33], [15, 34], [28, 35], [29, 36], [11, 37], [32, 38], [12, 39], [13, 40], [15, 41], [16, 42], [17, 43], [37, 44], [32, 45], [38, 46], [38, 47], [41, 48], [45, 49], [47, 50], [45, 51], [49, 52], [51, 53], [45, 54], [51, 55], [53, 56], [53, 57], [51, 58], [51, 59], [56, 60], [54, 61], [59, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 1], [12, 1], [13, 1], [14, 8], [15, 2], [16, 2], [17, 2], [18, 9], [19, 10], [20, 3], [21, 4], [22, 5], [23, 6], [24, 7], [25, 1], [26, 11], [27, 12], [28, 15], [29, 16], [30, 25], [31, 11], [32, 12], [33, 27], [34, 15], [35, 28], [36, 29], [37, 11], [38, 32], [39, 12], [40, 13], [41, 15], [42, 16], [43, 17], [44, 37], [45, 32], [46, 38], [47, 38], [48, 41], [49, 45], [50, 47], [51, 45], [52, 49], [53, 51], [54, 45], [55, 51], [56, 53], [57, 53], [58, 51], [59, 51], [60, 56], [61, 54], [62, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "createDBCell", "code": "    private DBCellRecord createDBCell(int offset, IntList rowoffsets,\n                                      IndexRecord index)\n    {\n        DBCellRecord rec = new DBCellRecord();\n\n        rec.setRowOffset(offset - rowoffsets.get(0));\n\n        rec.addCellOffset(( short ) 0x0);\n\n        addDbCellToIndex(offset, index);\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [8, 9], [2, 10], [7, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 8], [10, 2], [11, 7], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "addDbCellToIndex", "code": "    private void addDbCellToIndex(int offset, IndexRecord index)\n    {\n        int numdbcells = index.getNumDbcells() + 1;\n\n        index.addDbcell(offset + preoffset);\n\n        for (int k = 0; k < numdbcells; k++)\n        {\n            int dbval = index.getDbcellAt(k);\n\n            index.setDbcell(k, dbval + 4);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [6, 8], [2, 9], [1, 10], [1, 11], [9, 12], [9, 13], [10, 14], [7, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 6], [9, 2], [10, 1], [11, 1], [12, 9], [13, 9], [14, 10], [15, 7], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "createBOF", "code": "    protected Record createBOF()\n    {\n        BOFRecord retval = new BOFRecord();\n\n        retval.setVersion(( short ) 0x600);\n        retval.setType(( short ) 0x010);\n\n        retval.setBuild(( short ) 0x0dbb);\n        retval.setBuildYear(( short ) 1996);\n        retval.setHistoryBitMask(0xc1);\n        retval.setRequiredVersion(0x6);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "createIndex", "code": "    protected Record createIndex()\n    {\n        IndexRecord retval = new IndexRecord();\n\n        retval.setLastRowAdd1(0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createCalcMode", "code": "    protected Record createCalcMode()\n    {\n        CalcModeRecord retval = new CalcModeRecord();\n\n        retval.setCalcMode(( short ) 1);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createCalcCount", "code": "    protected Record createCalcCount()\n    {\n        CalcCountRecord retval = new CalcCountRecord();\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createRefMode", "code": "    protected Record createRefMode()\n    {\n        RefModeRecord retval = new RefModeRecord();\n\n        retval.setMode(retval.USE_A1_MODE);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createIteration", "code": "    protected Record createIteration()\n    {\n        IterationRecord retval = new IterationRecord();\n\n        retval.setIteration(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createDelta", "code": "    protected Record createDelta()\n    {\n        DeltaRecord retval = new DeltaRecord();\n\n        retval.setMaxChange((( double ) 0.0010));\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createSaveRecalc", "code": "    protected Record createSaveRecalc()\n    {\n        SaveRecalcRecord retval = new SaveRecalcRecord();\n\n        retval.setRecalc(true);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createPrintHeaders", "code": "    protected Record createPrintHeaders()\n    {\n        PrintHeadersRecord retval = new PrintHeadersRecord();\n\n        retval.setPrintHeaders(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createPrintGridlines", "code": "    protected Record createPrintGridlines()\n    {\n        PrintGridlinesRecord retval = new PrintGridlinesRecord();\n\n        retval.setPrintGridlines(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createGridset", "code": "    protected Record createGridset()\n    {\n        GridsetRecord retval = new GridsetRecord();\n\n        retval.setGridset(true);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createGuts", "code": "    protected Record createGuts()\n    {\n        GutsRecord retval = new GutsRecord();\n\n        retval.setLeftRowGutter(( short ) 0);\n        retval.setTopColGutter(( short ) 0);\n        retval.setRowLevelMax(( short ) 0);\n        retval.setColLevelMax(( short ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "createDefaultRowHeight", "code": "    protected Record createDefaultRowHeight()\n    {\n        DefaultRowHeightRecord retval = new DefaultRowHeightRecord();\n\n        retval.setOptionFlags(( short ) 0);\n        retval.setRowHeight(( short ) 0xff);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createWSBool", "code": "    protected Record createWSBool()\n    {\n        WSBoolRecord retval = new WSBoolRecord();\n\n        retval.setWSBool1(( byte ) 0x4);\n        retval.setWSBool2(( byte ) 0xffffffc1);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createHeader", "code": "    protected Record createHeader()\n    {\n        HeaderRecord retval = new HeaderRecord();\n\n        retval.setHeaderLength(( byte ) 0);\n        retval.setHeader(null);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createFooter", "code": "    protected Record createFooter()\n    {\n        FooterRecord retval = new FooterRecord();\n\n        retval.setFooterLength(( byte ) 0);\n        retval.setFooter(null);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createHCenter", "code": "    protected Record createHCenter()\n    {\n        HCenterRecord retval = new HCenterRecord();\n\n        retval.setHCenter(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createVCenter", "code": "    protected Record createVCenter()\n    {\n        VCenterRecord retval = new VCenterRecord();\n\n        retval.setVCenter(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createPrintSetup", "code": "    protected Record createPrintSetup()\n    {\n        PrintSetupRecord retval = new PrintSetupRecord();\n\n        retval.setPaperSize(( short ) 1);\n        retval.setScale(( short ) 100);\n        retval.setPageStart(( short ) 1);\n        retval.setFitWidth(( short ) 1);\n        retval.setFitHeight(( short ) 1);\n        retval.setOptions(( short ) 2);\n        retval.setHResolution(( short ) 300);\n        retval.setVResolution(( short ) 300);\n        retval.setHeaderMargin(( double ) 0.5);\n        retval.setFooterMargin(( double ) 0.5);\n        retval.setCopies(( short ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [3, 15], [4, 16], [5, 17], [6, 18], [7, 19], [8, 20], [9, 21], [10, 22], [11, 23], [12, 24], [13, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 3], [16, 4], [17, 5], [18, 6], [19, 7], [20, 8], [21, 9], [22, 10], [23, 11], [24, 12], [25, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "createDefaultColWidth", "code": "    protected Record createDefaultColWidth()\n    {\n        DefaultColWidthRecord retval = new DefaultColWidthRecord();\n\n        retval.setColWidth(( short ) 8);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createColInfo", "code": "    protected Record createColInfo()\n    {\n        ColumnInfoRecord retval = new ColumnInfoRecord();\n\n        retval.setColumnWidth(( short ) 0x8);\n        retval.setOptions(( short ) 6);\n        retval.setXFIndex(( short ) 0x0f);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getDefaultColumnWidth", "code": "    public short getDefaultColumnWidth()\n    {\n        return defaultcolwidth.getColWidth();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isGridsPrinted", "code": "    public boolean isGridsPrinted()\n    {\n        return !gridset.getGridset();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setGridsPrinted", "code": "    public void setGridsPrinted(boolean value)\n    {\n        gridset.setGridset(!value);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDefaultColumnWidth", "code": "    public void setDefaultColumnWidth(short dcw)\n    {\n        defaultcolwidth.setColWidth(dcw);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDefaultRowHeight", "code": "    public void setDefaultRowHeight(short dch)\n    {\n        defaultrowheight.setRowHeight(dch);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultRowHeight", "code": "    public short getDefaultRowHeight()\n    {\n        return defaultrowheight.getRowHeight();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColumnWidth", "code": "    public short getColumnWidth(short column)\n    {\n        short            retval = 0;\n        ColumnInfoRecord ci     = null;\n        int              k      = 0;\n\n        if (columnSizes != null)\n        {\n            for (k = 0; k < columnSizes.size(); k++)\n            {\n                ci = ( ColumnInfoRecord ) columnSizes.get(k);\n                if ((ci.getFirstColumn() >= column)\n                        && (ci.getLastColumn() <= column))\n                {\n                    break;\n                }\n                ci = null;\n            }\n        }\n        if (ci != null)\n        {\n            retval = ci.getColumnWidth();\n        }\n        else\n        {\n            retval = defaultcolwidth.getColWidth();\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [8, 10], [3, 11], [9, 12], [4, 13], [5, 14], [6, 15], [2, 16], [2, 17], [11, 18], [11, 19], [16, 20], [17, 21], [11, 22], [18, 23], [19, 24], [11, 25], [22, 26], [11, 27], [25, 28], [22, 29], [26, 30], [26, 31], [30, 32], [31, 33], [27, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 8], [11, 3], [12, 9], [13, 4], [14, 5], [15, 6], [16, 2], [17, 2], [18, 11], [19, 11], [20, 16], [21, 17], [22, 11], [23, 18], [24, 19], [25, 11], [26, 22], [27, 11], [28, 25], [29, 22], [30, 26], [31, 26], [32, 30], [33, 31], [34, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "setColumnWidth", "code": "    public void setColumnWidth(short column, short width)\n    {\n        ColumnInfoRecord ci = null;\n        int              k  = 0;\n\n        if (columnSizes == null)\n        {\n            columnSizes = new ArrayList();\n        }\n\n        for (k = 0; k < columnSizes.size(); k++)\n        {\n            ci = ( ColumnInfoRecord ) columnSizes.get(k);\n            if ((ci.getFirstColumn() >= column)\n                    && (ci.getLastColumn() <= column))\n            {\n                break;\n            }\n            ci = null;\n        }\n        if (ci != null)\n        {\n            if (ci.getColumnWidth() == width)\n            {\n\n            }\n            else if ((ci.getFirstColumn() == column)\n                     && (ci.getLastColumn() == column)){\n            }\n            else if ((ci.getFirstColumn() == column)\n                     || (ci.getLastColumn() == column))\n            {\n\n                if (ci.getFirstColumn() == column)\n                {\n                    ci.setFirstColumn(( short ) (column + 1));\n                }\n                else\n                {\n                    ci.setLastColumn(( short ) (column - 1));\n                }\n                ColumnInfoRecord nci = ( ColumnInfoRecord ) createColInfo();\n\n                nci.setFirstColumn(column);\n                nci.setLastColumn(column);\n                nci.setOptions(ci.getOptions());\n                nci.setXFIndex(ci.getXFIndex());\n                nci.setColumnWidth(width);\n                columnSizes.add(k, nci);\n                records.add((1 + getDimsLoc() - columnSizes.size()) + k, nci);\n                dimsloc++;\n            }\n        }\n        else\n        {\n\n            ColumnInfoRecord nci = ( ColumnInfoRecord ) createColInfo();\n\n            nci.setFirstColumn(column);\n            nci.setLastColumn(column);\n            nci.setColumnWidth(width);\n            columnSizes.add(k, nci);\n            records.add((1 + getDimsLoc() - columnSizes.size()) + k, nci);\n            dimsloc++;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [1, 12], [1, 13], [8, 14], [2, 15], [9, 16], [10, 17], [11, 18], [4, 19], [5, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [13, 26], [13, 27], [2, 28], [15, 29], [2, 30], [3, 31], [21, 32], [26, 33], [26, 34], [27, 35], [28, 36], [15, 37], [29, 38], [29, 39], [31, 40], [32, 41], [12, 42], [33, 43], [34, 44], [34, 45], [38, 46], [39, 47], [30, 48], [41, 49], [41, 50], [33, 51], [33, 52], [43, 53], [43, 54], [44, 55], [45, 56], [50, 57], [50, 58], [33, 59], [33, 60], [33, 61], [33, 62], [33, 63], [33, 64], [33, 65], [52, 66], [53, 67], [54, 68], [59, 69], [62, 70], [63, 71], [66, 72], [69, 73], [51, 74], [52, 75], [52, 76], [73, 77], [73, 78], [78, 79], [78, 80], [75, 81], [76, 82], [81, 83], [82, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 1], [13, 1], [14, 8], [15, 2], [16, 9], [17, 10], [18, 11], [19, 4], [20, 5], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 13], [27, 13], [28, 2], [29, 15], [30, 2], [31, 3], [32, 21], [33, 26], [34, 26], [35, 27], [36, 28], [37, 15], [38, 29], [39, 29], [40, 31], [41, 32], [42, 12], [43, 33], [44, 34], [45, 34], [46, 38], [47, 39], [48, 30], [49, 41], [50, 41], [51, 33], [52, 33], [53, 43], [54, 43], [55, 44], [56, 45], [57, 50], [58, 50], [59, 33], [60, 33], [61, 33], [62, 33], [63, 33], [64, 33], [65, 33], [66, 52], [67, 53], [68, 54], [69, 59], [70, 62], [71, 63], [72, 66], [73, 69], [74, 51], [75, 52], [76, 52], [77, 73], [78, 73], [79, 78], [80, 78], [81, 75], [82, 76], [83, 81], [84, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "createDimensions", "code": "    protected Record createDimensions()\n    {\n        DimensionsRecord retval = new DimensionsRecord();\n\n        retval.setFirstCol(( short ) 0);\n        retval.setFirstRow(0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createWindowTwo", "code": "    protected Record createWindowTwo()\n    {\n        WindowTwoRecord retval = new WindowTwoRecord();\n\n        retval.setOptions(( short ) 0x6b6);\n        retval.setTopRow(( short ) 0);\n        retval.setLeftCol(( short ) 0);\n        retval.setHeaderColor(0x40);\n        retval.setPageBreakZoom(( short ) 0);\n        retval.setNormalZoom(( short ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [2, 10], [3, 11], [4, 12], [6, 13], [7, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 2], [11, 3], [12, 4], [13, 6], [14, 7], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "createSelection", "code": "    protected Record createSelection()\n    {\n        SelectionRecord retval = new SelectionRecord();\n\n        retval.setPane(( byte ) 0x3);\n        retval.setActiveCellCol(( short ) 0x0);\n        retval.setActiveCellRow(( short ) 0x0);\n        retval.setNumRefs(( short ) 0x0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "createMergedCells", "code": "    protected Record createMergedCells()\n    {\n        MergeCellsRecord retval = new MergeCellsRecord();\n\n        retval.setNumAreas(( short ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createEOF", "code": "    protected Record createEOF()\n    {\n        return new EOFRecord();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDimsLoc", "code": "    public int getDimsLoc()\n    {\n        log.log(log.DEBUG, \"getDimsLoc dimsloc= \" + dimsloc);\n        return dimsloc;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "checkDimsLoc", "code": "    public void checkDimsLoc(Record rec, int recloc)\n    {\n        if (rec.getSid() == DimensionsRecord.sid)\n        {\n            loc     = recloc;\n            dimsloc = recloc;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        int retval = 0;\n\n        for (int k = 0; k < records.size(); k++)\n        {\n            retval += (( Record ) records.get(k)).getRecordSize();\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [3, 6], [2, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 3], [7, 2], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getRecords", "code": "    public List getRecords()\n    {\n        return records;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getGridsetRecord", "code": "    public GridsetRecord getGridsetRecord()\n    {\n        return gridset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "findFirstRecordBySid", "code": "    public Record findFirstRecordBySid(short sid)\n    {\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); )\n        {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid)\n            {\n                return record;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [2, 9], [6, 10], [8, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 2], [10, 6], [11, 8], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "Sheet", "code": "    public Sheet()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ivy-2.0-3298", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/ant/IvyCachePath.java", "language": "java", "name": "org.apache.ivy.ant.IvyCachePath", "code": "public class IvyCachePath extends IvyCacheTask {\n    private String pathid;\n\n    private String id;\n\n    public String getPathid() {\n        return pathid;\n    }\n\n    public void setPathid(String id) {\n        pathid = id;\n    }\n\n    /**\n     * @deprecated use setPathid instead\n     * @param id\n     */\n    public void setId(String id) {\n        this.id = id;\n    }\n\n    public void doExecute() throws BuildException {\n        prepareAndCheck();\n        if (pathid == null) {\n            if (id != null) {\n                pathid = id;\n                log(\"ID IS DEPRECATED, PLEASE USE PATHID INSTEAD\", Project.MSG_WARN);\n            } else {\n                throw new BuildException(\"pathid is required in ivy classpath\");\n            }\n        }\n        try {\n            Path path = new Path(getProject());\n            getProject().addReference(pathid, path);\n            for (Iterator iter = getArtifactReports().iterator(); iter.hasNext();) {\n                ArtifactDownloadReport a = (ArtifactDownloadReport) iter.next();\n                path.createPathElement().setLocation(a.getLocalFile());\n            }\n        } catch (Exception ex) {\n            throw new BuildException(\"impossible to build ivy path: \" + ex, ex);", "functions": [{"function_name": "getPathid", "code": "    public String getPathid() {\n        return pathid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPathid", "code": "    public void setPathid(String id) {\n        pathid = id;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setId", "code": "    public void setId(String id) {\n        this.id = id;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doExecute", "code": "    public void doExecute() throws BuildException {\n        prepareAndCheck();\n        if (pathid == null) {\n            if (id != null) {\n                pathid = id;\n                log(\"ID IS DEPRECATED, PLEASE USE PATHID INSTEAD\", Project.MSG_WARN);\n            } else {\n                throw new BuildException(\"pathid is required in ivy classpath\");\n            }\n        }\n        try {\n            Path path = new Path(getProject());\n            getProject().addReference(pathid, path);\n            for (Iterator iter = getArtifactReports().iterator(); iter.hasNext();) {\n                ArtifactDownloadReport a = (ArtifactDownloadReport) iter.next();\n                path.createPathElement().setLocation(a.getLocalFile());\n            }\n        } catch (Exception ex) {\n            throw new BuildException(\"impossible to build ivy path: \" + ex, ex);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "CATCH", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [2, 6], [0, 7], [3, 8], [4, 9], [1, 10], [2, 11], [6, 12], [8, 13], [4, 14], [10, 15], [5, 16], [11, 17], [13, 18], [4, 19], [4, 20], [16, 21], [11, 22], [17, 23], [18, 24], [19, 25], [20, 26], [22, 27], [11, 28], [11, 29], [25, 30], [14, 31], [27, 32], [28, 33], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 2], [7, 0], [8, 3], [9, 4], [10, 1], [11, 2], [12, 6], [13, 8], [14, 4], [15, 10], [16, 5], [17, 11], [18, 13], [19, 4], [20, 4], [21, 16], [22, 11], [23, 17], [24, 18], [25, 19], [26, 20], [27, 22], [28, 11], [29, 11], [30, 25], [31, 14], [32, 27], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}], "label": 0}
{"sample_id": "xalan-2.5-7029", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/trax/SmartTransformerFactoryImpl.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl", "code": "public class SmartTransformerFactoryImpl extends SAXTransformerFactory \n{\n\n    private TransformerFactory _xsltcFactory = null;\n    private TransformerFactory _xalanFactory = null;\n    private TransformerFactory _currFactory = null;\n    private ErrorListener      _errorlistener = null;\n    private URIResolver        _uriresolver = null;\n\n    /**\n     * implementation of the SmartTransformerFactory. This factory\n     * uses org.apache.xalan.xsltc.trax.TransformerFactory\n     * to return Templates objects; and uses \n     * org.apache.xalan.processor.TransformerFactory\n     * to return Transformer objects.  \n     */\n    public SmartTransformerFactoryImpl() { }\n\n    private void createXSLTCTransformerFactory() {\n \tfinal String xsltcMessage =\n\t    \"org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl \"+\n            \"could not create an \"+\n            \"org.apache.xalan.xsltc.trax.TransformerFactoryImpl.\";\n\t\n\ttry {\n\t    Class xsltcFactClass = Class.forName(\n\t\t\"org.apache.xalan.xsltc.trax.TransformerFactoryImpl\");\n\t    _xsltcFactory = (org.apache.xalan.xsltc.trax.TransformerFactoryImpl)\n\t\txsltcFactClass.newInstance();\n\t} \n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(xsltcMessage);\n\t} \n \tcatch (InstantiationException e) {\n\t    System.err.println(xsltcMessage);\n\t}\n \tcatch (IllegalAccessException e) {\n\t    System.err.println(xsltcMessage);\n\t}\n\t_currFactory = _xsltcFactory;\n    }\n\n    private void createXalanTransformerFactory() {\n \tfinal String xalanMessage =\n\t    \"org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl \"+\n\t    \"could not create an \"+\n\t    \"org.apache.xalan.processor.TransformerFactoryImpl.\";\n\ttry {\n\t    Class xalanFactClass = Class.forName(\n\t\t\"org.apache.xalan.processor.TransformerFactoryImpl\");\n\t    _xalanFactory = (SAXTransformerFactory)\n\t\txalanFactClass.newInstance();\n\t} \n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(xalanMessage);\n        }\n \tcatch (InstantiationException e) {\n\t    System.err.println(xalanMessage);\n\t}\n \tcatch (IllegalAccessException e) {\n\t    System.err.println(xalanMessage);\n\t}\n\t_currFactory = _xalanFactory;\n    }\n\n    public void setErrorListener(ErrorListener listener) \n\tthrows IllegalArgumentException \n    {\n\t_errorlistener = listener;\n    }\n\n    public ErrorListener getErrorListener() { \n\treturn _errorlistener;\n    }\n\n    public Object getAttribute(String name) \n\tthrows IllegalArgumentException \n    {\n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            return _xsltcFactory.getAttribute(name); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    return _xalanFactory.getAttribute(name);\n        }\n    }\n\n    public void setAttribute(String name, Object value) \n\tthrows IllegalArgumentException { \n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            _xsltcFactory.setAttribute(name, value); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    _xalanFactory.setAttribute(name, value);\n        }\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Look up the value of a feature (to see if it is supported).\n     * This method must be updated as the various methods and features of this\n     * class are implemented.\n     *\n     * @param name The feature name\n     * @return 'true' if feature is supported, 'false' if not\n     */\n    public boolean getFeature(String name) { \n        String[] features = {\n            DOMSource.FEATURE,\n            DOMResult.FEATURE,\n            SAXSource.FEATURE,\n            SAXResult.FEATURE,\n            StreamSource.FEATURE,\n            StreamResult.FEATURE\n        };\n\n        for (int i=0; i<features.length; i++) {\n            if (name.equals(features[i])) return true;\n\t}\n\n        return false;\n    }\n\n    public URIResolver getURIResolver() {\n\treturn _uriresolver; \n    } \n\n    public void setURIResolver(URIResolver resolver) {\n\t_uriresolver = resolver;\n    }\n\n    public Source getAssociatedStylesheet(Source source, String media,\n\t\t\t\t\t  String title, String charset)\n\tthrows TransformerConfigurationException \n    {\n\tif (_currFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\treturn _currFactory.getAssociatedStylesheet(source, media,\n\t\ttitle, charset);\n    }\n\n    /**\n     * Create a Transformer object that copies the input document to the\n     * result. Uses the org.apache.xalan.processor.TransformerFactory.\n     * @return A Transformer object.\n     */\n    public Transformer newTransformer()\n\tthrows TransformerConfigurationException \n    {\n\tif (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(); \n    }\n\n    /**\n     * Create a Transformer object that from the input stylesheet \n     * Uses the org.apache.xalan.processor.TransformerFactory.\n     * @param source the stylesheet.\n     * @return A Transformer object.\n     */\n    public Transformer newTransformer(Source source) throws\n\tTransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(source); \n    }\n\n    /**\n     * Create a Templates object that from the input stylesheet \n     * Uses the org.apache.xalan.xsltc.trax.TransformerFactory.\n     * @param source the stylesheet.\n     * @return A Templates object.\n     */\n    public Templates newTemplates(Source source)\n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xsltcFactory;\t \n\treturn _currFactory.newTemplates(source); \n    }\n\n    /**\n     * Get a TemplatesHandler object that can process SAX ContentHandler\n     * events into a Templates object. Uses the\n     * org.apache.xalan.xsltc.trax.TransformerFactory.\n     */\n    public TemplatesHandler newTemplatesHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\treturn ((SAXTransformerFactory)_xsltcFactory).newTemplatesHandler();\n    }\n\n    /**\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events based on a copy transformer. \n     * Uses org.apache.xalan.processor.TransformerFactory. \n     */\n    public TransformerHandler newTransformerHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn ((SAXTransformerFactory)_xalanFactory).newTransformerHandler(); \n    }\n\n    /**\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events based on a transformer specified by the stylesheet Source. \n     * Uses org.apache.xalan.processor.TransformerFactory. \n     */\n    public TransformerHandler newTransformerHandler(Source src) \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn \n            ((SAXTransformerFactory)_xalanFactory).newTransformerHandler(src); \n    }\n\n\n    /**\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events based on a transformer specified by the stylesheet Source. \n     * Uses org.apache.xalan.xsltc.trax.TransformerFactory. \n     */\n    public TransformerHandler newTransformerHandler(Templates templates) \n\tthrows TransformerConfigurationException  \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n        return \n        ((SAXTransformerFactory)_xsltcFactory).newTransformerHandler(templates);\n    }\n\n\n    /**\n     * Create an XMLFilter that uses the given source as the\n     * transformation instructions. Uses\n     * org.apache.xalan.xsltc.trax.TransformerFactory.\n     */\n    public XMLFilter newXMLFilter(Source src) \n\tthrows TransformerConfigurationException {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\tTemplates templates = _xsltcFactory.newTemplates(src);\n\tif (templates == null ) return null;\n\treturn newXMLFilter(templates); \n    }\n\n    /*\n     * Create an XMLFilter that uses the given source as the\n     * transformation instructions. Uses\n     * org.apache.xalan.xsltc.trax.TransformerFactory.\n     */\n    public XMLFilter newXMLFilter(Templates templates) \n\tthrows TransformerConfigurationException {\n\ttry {\n            return new org.apache.xalan.xsltc.trax.TrAXFilter(templates);\n        }\n        catch(TransformerConfigurationException e1) {\n            if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n\t    ErrorListener errorListener = _xsltcFactory.getErrorListener();\n            if(errorListener != null) {\n                try {\n                    errorListener.fatalError(e1);\n                    return null;\n                }\n                catch( TransformerException e2) {\n                    new TransformerConfigurationException(e2);\n                }\n            }\n            throw e1;", "functions": [{"function_name": "createXSLTCTransformerFactory", "code": "    private void createXSLTCTransformerFactory() {\n \tfinal String xsltcMessage =\n\t    \"org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl \"+\n            \"could not create an \"+\n            \"org.apache.xalan.xsltc.trax.TransformerFactoryImpl.\";\n\t\n\ttry {\n\t    Class xsltcFactClass = Class.forName(\n\t\t\"org.apache.xalan.xsltc.trax.TransformerFactoryImpl\");\n\t    _xsltcFactory = (org.apache.xalan.xsltc.trax.TransformerFactoryImpl)\n\t\txsltcFactClass.newInstance();\n\t} \n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(xsltcMessage);\n\t} \n \tcatch (InstantiationException e) {\n\t    System.err.println(xsltcMessage);\n\t}\n \tcatch (IllegalAccessException e) {\n\t    System.err.println(xsltcMessage);\n\t}\n\t_currFactory = _xsltcFactory;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "ASSIGN", "CATCH", "CATCH", "CATCH", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [4, 10], [5, 11], [6, 12], [7, 13], [9, 14], [9, 15], [8, 16], [13, 17], [15, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 4], [11, 5], [12, 6], [13, 7], [14, 9], [15, 9], [16, 8], [17, 13], [18, 15], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "createXalanTransformerFactory", "code": "    private void createXalanTransformerFactory() {\n \tfinal String xalanMessage =\n\t    \"org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl \"+\n\t    \"could not create an \"+\n\t    \"org.apache.xalan.processor.TransformerFactoryImpl.\";\n\ttry {\n\t    Class xalanFactClass = Class.forName(\n\t\t\"org.apache.xalan.processor.TransformerFactoryImpl\");\n\t    _xalanFactory = (SAXTransformerFactory)\n\t\txalanFactClass.newInstance();\n\t} \n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(xalanMessage);\n        }\n \tcatch (InstantiationException e) {\n\t    System.err.println(xalanMessage);\n\t}\n \tcatch (IllegalAccessException e) {\n\t    System.err.println(xalanMessage);\n\t}\n\t_currFactory = _xalanFactory;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "ASSIGN", "CATCH", "CATCH", "CATCH", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [4, 10], [5, 11], [6, 12], [7, 13], [9, 14], [9, 15], [8, 16], [13, 17], [15, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 4], [11, 5], [12, 6], [13, 7], [14, 9], [15, 9], [16, 8], [17, 13], [18, 15], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setErrorListener", "code": "    public void setErrorListener(ErrorListener listener) \n\tthrows IllegalArgumentException \n    {\n\t_errorlistener = listener;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorListener", "code": "    public ErrorListener getErrorListener() { \n\treturn _errorlistener;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAttribute", "code": "    public Object getAttribute(String name) \n\tthrows IllegalArgumentException \n    {\n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            return _xsltcFactory.getAttribute(name); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    return _xalanFactory.getAttribute(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "IF", "RETURN", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [11, 16], [13, 17], [5, 18], [7, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 11], [17, 13], [18, 5], [19, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setAttribute", "code": "    public void setAttribute(String name, Object value) \n\tthrows IllegalArgumentException { \n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            _xsltcFactory.setAttribute(name, value); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    _xalanFactory.setAttribute(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [1, 9], [5, 10], [1, 11], [6, 12], [7, 13], [8, 14], [10, 15], [12, 16], [5, 17], [6, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 1], [10, 5], [11, 1], [12, 6], [13, 7], [14, 8], [15, 10], [16, 12], [17, 5], [18, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getFeature", "code": "    public boolean getFeature(String name) { \n        String[] features = {\n            DOMSource.FEATURE,\n            DOMResult.FEATURE,\n            SAXSource.FEATURE,\n            SAXResult.FEATURE,\n            StreamSource.FEATURE,\n            StreamResult.FEATURE\n        };\n\n        for (int i=0; i<features.length; i++) {\n            if (name.equals(features[i])) return true;\n\t}\n\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getURIResolver", "code": "    public URIResolver getURIResolver() {\n\treturn _uriresolver; ", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setURIResolver", "code": "    public void setURIResolver(URIResolver resolver) {\n\t_uriresolver = resolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAssociatedStylesheet", "code": "    public Source getAssociatedStylesheet(Source source, String media,\n\t\t\t\t\t  String title, String charset)\n\tthrows TransformerConfigurationException \n    {\n\tif (_currFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\treturn _currFactory.getAssociatedStylesheet(source, media,\n\t\ttitle, charset);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [8, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 8], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "newTransformer", "code": "    public Transformer newTransformer()\n\tthrows TransformerConfigurationException \n    {\n\tif (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [3, 8], [4, 9], [7, 10], [8, 11], [9, 12], [2, 13], [3, 14], [4, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 3], [9, 4], [10, 7], [11, 8], [12, 9], [13, 2], [14, 3], [15, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "newTransformer", "code": "    public Transformer newTransformer(Source source) throws\n\tTransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(source); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [4, 10], [8, 11], [9, 12], [10, 13], [2, 14], [3, 15], [4, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 4], [11, 8], [12, 9], [13, 10], [14, 2], [15, 3], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newTemplates", "code": "    public Templates newTemplates(Source source)\n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xsltcFactory;\t \n\treturn _currFactory.newTemplates(source); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [4, 10], [8, 11], [9, 12], [10, 13], [2, 14], [3, 15], [4, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 4], [11, 8], [12, 9], [13, 10], [14, 2], [15, 3], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newTemplatesHandler", "code": "    public TemplatesHandler newTemplatesHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\treturn ((SAXTransformerFactory)_xsltcFactory).newTemplatesHandler();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [2, 11], [3, 12], [4, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 2], [12, 3], [13, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn ((SAXTransformerFactory)_xalanFactory).newTransformerHandler(); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [2, 11], [3, 12], [4, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 2], [12, 3], [13, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler(Source src) \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn \n            ((SAXTransformerFactory)_xalanFactory).newTransformerHandler(src); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [7, 10], [8, 11], [2, 12], [3, 13], [4, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 7], [11, 8], [12, 2], [13, 3], [14, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler(Templates templates) \n\tthrows TransformerConfigurationException  \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n        return \n        ((SAXTransformerFactory)_xsltcFactory).newTransformerHandler(templates);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [7, 10], [8, 11], [2, 12], [3, 13], [4, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 7], [11, 8], [12, 2], [13, 3], [14, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "newXMLFilter", "code": "    public XMLFilter newXMLFilter(Source src) \n\tthrows TransformerConfigurationException {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\tTemplates templates = _xsltcFactory.newTemplates(src);\n\tif (templates == null ) return null;\n\treturn newXMLFilter(templates); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [4, 11], [5, 12], [6, 13], [9, 14], [10, 15], [3, 16], [11, 17], [12, 18], [13, 19], [4, 20], [5, 21], [6, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 4], [12, 5], [13, 6], [14, 9], [15, 10], [16, 3], [17, 11], [18, 12], [19, 13], [20, 4], [21, 5], [22, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "newXMLFilter", "code": "    public XMLFilter newXMLFilter(Templates templates) \n\tthrows TransformerConfigurationException {\n\ttry {\n            return new org.apache.xalan.xsltc.trax.TrAXFilter(templates);\n        }\n        catch(TransformerConfigurationException e1) {\n            if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n\t    ErrorListener errorListener = _xsltcFactory.getErrorListener();\n            if(errorListener != null) {\n                try {\n                    errorListener.fatalError(e1);\n                    return null;\n                }\n                catch( TransformerException e2) {\n                    new TransformerConfigurationException(e2);\n                }\n            }\n            throw e1;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [3, 7], [3, 8], [4, 9], [6, 10], [8, 11], [6, 12], [10, 13], [7, 14], [11, 15], [12, 16], [12, 17], [8, 18], [17, 19], [12, 20], [16, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 3], [8, 3], [9, 4], [10, 6], [11, 8], [12, 6], [13, 10], [14, 7], [15, 11], [16, 12], [17, 12], [18, 8], [19, 17], [20, 12], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "SmartTransformerFactoryImpl", "code": "    public SmartTransformerFactoryImpl() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.4-2241", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/ProcessorType.java", "language": "java", "name": "org.apache.camel.model.ProcessorType", "code": "@XmlAccessorType(XmlAccessType.PROPERTY)\npublic abstract class ProcessorType<Type extends ProcessorType> extends OptionalIdentifiedType<Type> implements Block {\n    public static final String DEFAULT_TRACE_CATEGORY = \"org.apache.camel.TRACE\";\n    private static final transient Log LOG = LogFactory.getLog(ProcessorType.class);\n    private ErrorHandlerBuilder errorHandlerBuilder;\n    private Boolean inheritErrorHandlerFlag;\n    private NodeFactory nodeFactory;\n    private LinkedList<Block> blocks = new LinkedList<Block>();\n    private ProcessorType<? extends ProcessorType> parent;\n    private List<InterceptorType> interceptors = new ArrayList<InterceptorType>();\n    private String errorHandlerRef;\n\n    public abstract List<ProcessorType<?>> getOutputs();\n\n\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        throw new UnsupportedOperationException(\"Not implemented yet for class: \" + getClass().getName());\n    }\n\n    public Processor createOutputsProcessor(RouteContext routeContext) throws Exception {\n        Collection<ProcessorType<?>> outputs = getOutputs();\n        return createOutputsProcessor(routeContext, outputs);\n    }\n\n    public void addRoutes(RouteContext routeContext, Collection<Route> routes) throws Exception {\n        Processor processor = makeProcessor(routeContext);\n        if (!routeContext.isRouteAdded()) {\n            routeContext.addEventDrivenProcessor(processor);\n        }\n    }\n\n    /**\n     * Wraps the child processor in whatever necessary interceptors and error\n     * handlers\n     */\n    public Processor wrapProcessor(RouteContext routeContext, Processor processor) throws Exception {\n        processor = wrapProcessorInInterceptors(routeContext, processor);\n        return wrapInErrorHandler(routeContext, processor);\n    }\n\n\n    /**\n     * Sends the exchange to the given endpoint URI\n     */\n    public Type to(String uri) {\n        addOutput(new ToType(uri));\n        return (Type) this;\n    }\n\n    /**\n     * Sends the exchange to the given endpoint\n     */\n    public Type to(Endpoint endpoint) {\n        addOutput(new ToType(endpoint));\n        return (Type) this;\n    }\n\n    /**\n     * Sends the exchange to a list of endpoints using the\n     * {@link MulticastProcessor} pattern\n     */\n    public Type to(String... uris) {\n        for (String uri : uris) {\n            addOutput(new ToType(uri));\n        }\n        return (Type) this;\n    }\n\n    /**\n     * Sends the exchange to a list of endpoints using the\n     * {@link MulticastProcessor} pattern\n     */\n    public Type to(Endpoint... endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint));\n        }\n        return (Type) this;\n    }\n\n    /**\n     * Sends the exchange to a list of endpoint using the\n     * {@link MulticastProcessor} pattern\n     */\n    public Type to(Collection<Endpoint> endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint));\n        }\n        return (Type) this;\n    }\n\n    /**\n     * Multicasts messages to all its child outputs; so that each processor and\n     * destination gets a copy of the original message to avoid the processors\n     * interfering with each other.\n     */\n    public MulticastType multicast() {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Multicasts messages to all its child outputs; so that each processor and\n     * destination gets a copy of the original message to avoid the processors\n     * interfering with each other.\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @return the multicast type\n     */\n    public MulticastType multicast(AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;\n    }\n\n    /**\n     * Multicasts messages to all its child outputs; so that each processor and\n     * destination gets a copy of the original message to avoid the processors\n     * interfering with each other.\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @return the multicast type\n     */\n    public MulticastType multicast(AggregationStrategy aggregationStrategy) {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return answer;\n    }\n\n    /**\n     * Creates a {@link Pipeline} of the list of endpoints so that the message\n     * will get processed by each endpoint in turn and for request/response the\n     * output of one endpoint will be the input of the next endpoint\n     */\n    public Type pipeline(String... uris) {\n        return to(uris);\n    }\n\n    /**\n     * Creates a {@link Pipeline} of the list of endpoints so that the message\n     * will get processed by each endpoint in turn and for request/response the\n     * output of one endpoint will be the input of the next endpoint\n     */\n    public Type pipeline(Endpoint... endpoints) {\n        return to(endpoints);\n    }\n\n    /**\n     * Creates a {@link Pipeline} of the list of endpoints so that the message\n     * will get processed by each endpoint in turn and for request/response the\n     * output of one endpoint will be the input of the next endpoint\n     */\n    public Type pipeline(Collection<Endpoint> endpoints) {\n        return to(endpoints);\n    }\n\n    /**\n     * Ends the current block\n     */\n    public ProcessorType<? extends ProcessorType> end() {\n        if (blocks.isEmpty()) {\n            if (parent == null) {\n                throw new IllegalArgumentException(\"Root node with no active block\");\n            }\n            return parent;\n        }\n        popBlock();\n        return this;\n    }\n\n    /**\n     * Causes subsequent processors to be called asynchronously\n     *\n     * @param coreSize the number of threads that will be used to process\n     *                 messages in subsequent processors.\n     * @return a ThreadType builder that can be used to further configure the\n     *         the thread pool.\n     */\n    public ThreadType thread(int coreSize) {\n        ThreadType answer = new ThreadType(coreSize);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Causes subsequent processors to be called asynchronously\n     *\n     * @param executor the executor that will be used to process\n     *                 messages in subsequent processors.\n     * @return a ThreadType builder that can be used to further configure the\n     *         the thread pool.\n     */\n    public ProcessorType<Type> thread(ThreadPoolExecutor executor) {\n        ThreadType answer = new ThreadType(executor);\n        addOutput(answer);\n        return this;\n    }\n\n    /**\n     * Creates an {@link IdempotentConsumer} to avoid duplicate messages\n     */\n    public IdempotentConsumerType idempotentConsumer(Expression messageIdExpression,\n            MessageIdRepository messageIdRepository) {\n        IdempotentConsumerType answer = new IdempotentConsumerType(messageIdExpression, messageIdRepository);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates an {@link IdempotentConsumer} to avoid duplicate messages\n     *\n     * @return the builder used to create the expression\n     */\n    public ExpressionClause<IdempotentConsumerType> idempotentConsumer(MessageIdRepository messageIdRepository) {\n        IdempotentConsumerType answer = new IdempotentConsumerType();\n        answer.setMessageIdRepository(messageIdRepository);\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates a predicate expression which only if it is true then the\n     * exchange is forwarded to the destination\n     *\n     * @return the clause used to create the filter expression\n     */\n    public ExpressionClause<FilterType> filter() {\n        FilterType filter = new FilterType();\n        addOutput(filter);\n        return ExpressionClause.createAndSetExpression(filter);\n    }\n\n    /**\n     * Creates a predicate which is applied and only if it is true then the\n     * exchange is forwarded to the destination\n     *\n     * @return the builder for a predicate\n     */\n    public FilterType filter(Predicate predicate) {\n        FilterType filter = new FilterType(predicate);\n        addOutput(filter);\n        return filter;\n    }\n\n    public FilterType filter(ExpressionType expression) {\n        FilterType filter = getNodeFactory().createFilter();\n        filter.setExpression(expression);\n        addOutput(filter);\n        return filter;\n    }\n\n    public FilterType filter(String language, String expression) {\n        return filter(new LanguageExpression(language, expression));\n    }\n\n    public LoadBalanceType loadBalance() {\n        LoadBalanceType answer = new LoadBalanceType();\n        addOutput(answer);\n        return answer;\n    }\n\n\n    /**\n     * Creates a choice of one or more predicates with an otherwise clause\n     *\n     * @return the builder for a choice expression\n     */\n    public ChoiceType choice() {\n        ChoiceType answer = new ChoiceType();\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates a try/catch block\n     *\n     * @return the builder for a tryBlock expression\n     */\n    public TryType tryBlock() {\n        TryType answer = new TryType();\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates a dynamic <a\n     * List</a> pattern.\n     *\n     * @param receipients is the builder of the expression used in the\n     *                    {@link RecipientList} to decide the destinations\n     */\n    public Type recipientList(Expression receipients) {\n        RecipientListType answer = new RecipientListType(receipients);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Creates a dynamic <a\n     * List</a> pattern.\n     *\n     * @return the expression clause for the expression used in the\n     *                    {@link RecipientList} to decide the destinations\n     */\n    public ExpressionClause<ProcessorType<Type>> recipientList() {\n        RecipientListType answer = new RecipientListType();\n        addOutput(answer);\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        answer.setExpression(clause);\n        return clause;\n    }\n\n    /**\n     * Creates a <a\n     * Slip</a> pattern.\n     *\n     * @param header is the header that the {@link org.apache.camel.processor.RoutingSlip RoutingSlip}\n     * class will look in for the list of URIs to route the message to.\n     * @param uriDelimiter is the delimiter that will be used to split up\n     * the list of URIs in the routing slip.\n     */\n    public Type routingSlip(String header, String uriDelimiter) {\n        RoutingSlipType answer = new RoutingSlipType(header, uriDelimiter);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Creates a <a\n     * Slip</a> pattern.\n     *\n     * @param header is the header that the {@link org.apache.camel.processor.RoutingSlip RoutingSlip}\n     * class will look in for the list of URIs to route the message to. The list of URIs\n     * will be split based on the default delimiter\n     * {@link RoutingSlipType#DEFAULT_DELIMITER}.\n     */\n    public Type routingSlip(String header) {\n        RoutingSlipType answer = new RoutingSlipType(header);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Creates a <a\n     * Slip</a> pattern with the default header {@link RoutingSlipType#ROUTING_SLIP_HEADER}.\n     * The list of URIs in the header will be split based on the default delimiter\n     * {@link RoutingSlipType#DEFAULT_DELIMITER}.\n     */\n    public Type routingSlip() {\n        RoutingSlipType answer = new RoutingSlipType();\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * This splitter responds with the latest message returned from destination\n     * endpoint.\n     *\n     * @param receipients the expression on which to split\n     * @return the builder\n     */\n    public SplitterType splitter(Expression receipients) {\n        SplitterType answer = new SplitterType(receipients);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * This splitter responds with the latest message returned from destination\n     * endpoint.\n     *\n     * @return the expression clause for the expression on which to split\n     */\n    public ExpressionClause<SplitterType> splitter() {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * Answer from the splitter is produced using given {@link AggregationStrategy}\n     * @param partsExpression the expression on which to split\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @return the builder\n     */\n    public SplitterType splitter(Expression partsExpression, AggregationStrategy aggregationStrategy) {\n        SplitterType answer = new SplitterType(partsExpression);\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * Answer from the splitter is produced using given {@link AggregationStrategy}\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @return the expression clause for the expression on which to split\n     */\n    public ExpressionClause<SplitterType> splitter(AggregationStrategy aggregationStrategy) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * This splitter responds with the latest message returned from destination\n     * endpoint.\n     *\n     * @param receipients the expression on which to split\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @return the builder\n     */\n    public SplitterType splitter(Expression receipients, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType(receipients);\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * This splitter responds with the latest message returned from destination\n     * endpoint.\n     *\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @return the expression clause for the expression on which to split\n     */\n    public ExpressionClause<SplitterType> splitter(boolean parallelProcessing) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * Answer from the splitter is produced using given {@link AggregationStrategy}\n     * @param partsExpression the expression on which to split\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @return the builder\n     */\n    public SplitterType splitter(Expression partsExpression,\n            AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType(partsExpression);\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * Answer from the splitter is produced using given {@link AggregationStrategy}\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @return the expression clause for the expression on which to split\n     */\n    public ExpressionClause<SplitterType> splitter(AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n\n    /**\n     * Creates the <a\n     * pattern where a list of expressions are evaluated to be able to compare\n     * the message exchanges to reorder them. e.g. you may wish to sort by some\n     * headers\n     *\n     * @return the expression clause for the expressions on which to compare messages in order\n     */\n    public ExpressionClause<ResequencerType> resequencer() {\n        ResequencerType answer = new ResequencerType();\n        addOutput(answer);\n        ExpressionClause<ResequencerType> clause = new ExpressionClause<ResequencerType>(answer);\n        answer.expression(clause);\n        return clause;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to be able to compare the\n     * message exchanges to reorder them. e.g. you may wish to sort by some\n     * header\n     *\n     * @param expression the expression on which to compare messages in order\n     * @return the builder\n     */\n    public ResequencerType resequencer(Expression<Exchange> expression) {\n        return resequencer(Collections.<Expression>singletonList(expression));\n    }\n\n    /**\n     * Creates the <a\n     * pattern where a list of expressions are evaluated to be able to compare\n     * the message exchanges to reorder them. e.g. you may wish to sort by some\n     * headers\n     *\n     * @param expressions the expressions on which to compare messages in order\n     * @return the builder\n     */\n    public ResequencerType resequencer(List<Expression> expressions) {\n        ResequencerType answer = new ResequencerType(expressions);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where a list of expressions are evaluated to be able to compare\n     * the message exchanges to reorder them. e.g. you may wish to sort by some\n     * headers\n     *\n     * @param expressions the expressions on which to compare messages in order\n     * @return the builder\n     */\n    public ResequencerType resequencer(Expression... expressions) {\n        List<Expression> list = new ArrayList<Expression>();\n        list.addAll(Arrays.asList(expressions));\n        return resequencer(list);\n    }\n\n    /**\n     * Creates an <a\n     * pattern where a batch of messages are processed (up to a maximum amount\n     * or until some timeout is reached) and messages for the same correlation\n     * key are combined together using some kind of {@link AggregationStrategy}\n     * (by default the latest message is used) to compress many message exchanges\n     * into a smaller number of exchanges.\n     * <p/>\n     * A good example of this is stock market data; you may be receiving 30,000\n     * messages/second and you may want to throttle it right down so that multiple\n     * messages for the same stock are combined (or just the latest message is used\n     * and older prices are discarded). Another idea is to combine line item messages\n     * together into a single invoice message.\n     */\n    public ExpressionClause<AggregatorType> aggregator() {\n        AggregatorType answer = new AggregatorType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates an <a\n     * pattern where a batch of messages are processed (up to a maximum amount\n     * or until some timeout is reached) and messages for the same correlation\n     * key are combined together using some kind of {@link AggregationStrategy}\n     * (by default the latest message is used) to compress many message exchanges\n     * into a smaller number of exchanges.\n     * <p/>\n     * A good example of this is stock market data; you may be receiving 30,000\n     * messages/second and you may want to throttle it right down so that multiple\n     * messages for the same stock are combined (or just the latest message is used\n     * and older prices are discarded). Another idea is to combine line item messages\n     * together into a single invoice message.\n     *\n     * @param aggregationStrategy the strategy used for the aggregation\n     */\n    public ExpressionClause<AggregatorType> aggregator(AggregationStrategy aggregationStrategy) {\n        AggregatorType answer = new AggregatorType();\n        answer.setAggregationStrategy(aggregationStrategy);\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates an <a\n     * pattern using a custom aggregation collection implementation.\n     *\n     * @param aggregationCollection the collection used to perform the aggregation\n     */\n    public ExpressionClause<AggregatorType> aggregator(AggregationCollection aggregationCollection) {\n        AggregatorType answer = new AggregatorType();\n        answer.setAggregationCollection(aggregationCollection);\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates an <a\n     * pattern where a batch of messages are processed (up to a maximum amount\n     * or until some timeout is reached) and messages for the same correlation\n     * key are combined together using some kind of {@link AggregationStrategy}\n     * (by default the latest message is used) to compress many message exchanges\n     * into a smaller number of exchanges.\n     * <p/>\n     * A good example of this is stock market data; you may be receiving 30,000\n     * messages/second and you may want to throttle it right down so that multiple\n     * messages for the same stock are combined (or just the latest message is used\n     * and older prices are discarded). Another idea is to combine line item messages\n     * together into a single invoice message.\n     *\n     * @param correlationExpression the expression used to calculate the\n     *                              correlation key. For a JMS message this could be the\n     *                              expression <code>header(\"JMSDestination\")</code> or\n     *                              <code>header(\"JMSCorrelationID\")</code>\n     */\n    public AggregatorType aggregator(Expression correlationExpression) {\n        AggregatorType answer = new AggregatorType(correlationExpression);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates an <a\n     * pattern where a batch of messages are processed (up to a maximum amount\n     * or until some timeout is reached) and messages for the same correlation\n     * key are combined together using some kind of {@link AggregationStrategy}\n     * (by default the latest message is used) to compress many message exchanges\n     * into a smaller number of exchanges.\n     * <p/>\n     * A good example of this is stock market data; you may be receiving 30,000\n     * messages/second and you may want to throttle it right down so that multiple\n     * messages for the same stock are combined (or just the latest message is used\n     * and older prices are discarded). Another idea is to combine line item messages\n     * together into a single invoice message.\n     *\n     * @param correlationExpression the expression used to calculate the\n     *                              correlation key. For a JMS message this could be the\n     *                              expression <code>header(\"JMSDestination\")</code> or\n     *                              <code>header(\"JMSCorrelationID\")</code>\n     */\n    public AggregatorType aggregator(Expression correlationExpression, AggregationStrategy aggregationStrategy) {\n        AggregatorType answer = new AggregatorType(correlationExpression, aggregationStrategy);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * where an expression is used to calculate the time which the message will\n     * be dispatched on\n     *\n     * @param processAtExpression an expression to calculate the time at which\n     *                            the messages should be processed\n     * @return the builder\n     */\n    public DelayerType delayer(Expression<Exchange> processAtExpression) {\n        return delayer(processAtExpression, 0L);\n    }\n\n    /**\n     * Creates the <a\n     * where an expression is used to calculate the time which the message will\n     * be dispatched on\n     *\n     * @param processAtExpression an expression to calculate the time at which\n     *                            the messages should be processed\n     * @param delay               the delay in milliseconds which is added to the\n     *                            processAtExpression to determine the time the message\n     *                            should be processed\n     * @return the builder\n     */\n    public DelayerType delayer(Expression<Exchange> processAtExpression, long delay) {\n        DelayerType answer = new DelayerType(processAtExpression, delay);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * where an expression is used to calculate the time which the message will\n     * be dispatched on\n     * @return the expression clause to create the expression\n     */\n    public ExpressionClause<DelayerType> delayer() {\n        DelayerType answer = new DelayerType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates the <a\n     * where a fixed amount of milliseconds are used to delay processing of a\n     * message exchange\n     *\n     * @param delay the default delay in milliseconds\n     * @return the builder\n     */\n    public DelayerType delayer(long delay) {\n        return delayer(null, delay);\n    }\n\n    /**\n     * Creates the <a\n     * where an expression is used to calculate the time which the message will\n     * be dispatched on\n     *\n     * @return the builder\n     */\n    public ThrottlerType throttler(long maximumRequestCount) {\n        ThrottlerType answer = new ThrottlerType(maximumRequestCount);\n        addOutput(answer);\n        return answer;\n    }\n\n\n    public Type throwFault(Throwable fault) {\n        ThrowFaultType answer = new ThrowFaultType();\n        answer.setFault(fault);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    public Type throwFault(String message) {\n        return throwFault(new CamelException(message));\n    }\n\n    /**\n     * Intercepts outputs added to this node in the future (i.e. intercepts outputs added after this statement)\n     */\n    public Type interceptor(String ref) {\n        InterceptorRef interceptor = new InterceptorRef(ref);\n        intercept(interceptor);\n        return (Type) this;\n    }\n\n    /**\n     * Intercepts outputs added to this node in the future (i.e. intercepts outputs added after this statement)\n     */\n    public Type intercept(DelegateProcessor interceptor) {\n        intercept(new InterceptorRef(interceptor));\n        return (Type) this;\n    }\n\n    /**\n     * Intercepts outputs added to this node in the future (i.e. intercepts outputs added after this statement)\n     */\n    public InterceptType intercept() {\n        InterceptType answer = new InterceptType();\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Intercepts outputs added to this node in the future (i.e. intercepts outputs added after this statement)\n     */\n    public void intercept(InterceptorType interceptor) {\n        addOutput(interceptor);\n        pushBlock(interceptor);\n    }\n\n    /**\n     * Adds an interceptor around the whole of this nodes processing\n     *\n     * @param interceptor\n     */\n    public void addInterceptor(InterceptorType interceptor) {\n        interceptors.add(interceptor);\n    }\n\n    /**\n     * Adds an interceptor around the whole of this nodes processing\n     *\n     * @param interceptor\n     */\n    public void addInterceptor(DelegateProcessor interceptor) {\n        addInterceptor(new InterceptorRef(interceptor));\n    }\n\n    protected void pushBlock(Block block) {\n        blocks.add(block);\n    }\n\n    protected Block popBlock() {\n        return blocks.isEmpty() ? null : blocks.removeLast();\n    }\n\n    public Type proceed() {\n        ProceedType proceed = null;\n        ProcessorType currentProcessor = this;\n\n        if (currentProcessor instanceof InterceptType) {\n            proceed = ((InterceptType) currentProcessor).getProceed();\n            LOG.info(\"proceed() is the implied and hence not needed for an intercept()\");\n        }\n        if (proceed == null) {\n            for (ProcessorType node = parent; node != null; node = node.getParent()) {\n                if (node instanceof InterceptType) {\n                    InterceptType intercept = (InterceptType)node;\n                    proceed = intercept.getProceed();\n                    break;\n                }\n            }\n\n            if (proceed == null) {\n                throw new IllegalArgumentException(\"Cannot use proceed() without being within an intercept() block\");\n            }\n\n        }\n\n        addOutput(proceed);\n        return (Type) this;\n    }\n\n    public Type stop() {\n        ProcessorType currentProcessor = this;\n\n        if (currentProcessor instanceof InterceptType) {\n            ((InterceptType) currentProcessor).stopIntercept();\n        } else {\n            ProcessorType node;\n            for (node = parent; node != null; node = node.getParent()) {\n                if (node instanceof InterceptType) {\n                    ((InterceptType) node).stopIntercept();\n                    break;\n                }\n            }\n            if (node == null) {\n                throw new IllegalArgumentException(\"Cannot use stop() without being within an intercept() block\");\n            }\n        }\n\n        return (Type) this;\n    }\n\n    public ExceptionType exception(Class exceptionType) {\n        ExceptionType answer = new ExceptionType(exceptionType);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Apply an interceptor route if the predicate is true\n     */\n    public ChoiceType intercept(Predicate predicate) {\n        InterceptType answer = new InterceptType();\n        addOutput(answer);\n        return answer.when(predicate);\n    }\n\n    public Type interceptors(String... refs) {\n        for (String ref : refs) {\n            interceptor(ref);\n        }\n        return (Type) this;\n    }\n\n    /**\n     * Trace logs the exchange before it goes to the next processing step using\n     * the {@link #DEFAULT_TRACE_CATEGORY} logging category.\n     */\n    public Type trace() {\n        return trace(DEFAULT_TRACE_CATEGORY);\n    }\n\n    /**\n     * Trace logs the exchange before it goes to the next processing step using\n     * the specified logging category.\n     *\n     * @param category the logging category trace messages will sent to.\n     */\n    public Type trace(String category) {\n        final Log log = LogFactory.getLog(category);\n        return intercept(new DelegateProcessor() {\n            @Override\n            public void process(Exchange exchange) throws Exception {\n                log.trace(exchange);\n                processNext(exchange);\n            }\n        });\n    }\n\n    public PolicyRef policies() {\n        PolicyRef answer = new PolicyRef();\n        addOutput(answer);\n        return answer;\n    }\n\n    public PolicyRef policy(Policy policy) {\n        PolicyRef answer = new PolicyRef(policy);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Forces handling of faults as exceptions\n     *\n     * @return the current builder with the fault handler configured\n     */\n    public Type handleFault() {\n        intercept(new HandleFaultType());\n        return (Type) this;\n    }\n\n    /**\n     * Installs the given error handler builder\n     *\n     * @param errorHandlerBuilder the error handler to be used by default for\n     *                            all child routes\n     * @return the current builder with the error handler configured\n     */\n    public Type errorHandler(ErrorHandlerBuilder errorHandlerBuilder) {\n        setErrorHandlerBuilder(errorHandlerBuilder);\n        return (Type) this;\n    }\n\n    /**\n     * Configures whether or not the error handler is inherited by every\n     * processing node (or just the top most one)\n     *\n     * @param condition the flag as to whether error handlers should be\n     *                  inherited or not\n     * @return the current builder\n     */\n    public Type inheritErrorHandler(boolean condition) {\n        setInheritErrorHandlerFlag(condition);\n        return (Type) this;\n    }\n\n\n    /**\n     * Adds the custom processor to this destination which could be a final\n     * destination, or could be a transformation in a pipeline\n     */\n    public Type process(Processor processor) {\n        ProcessorRef answer = new ProcessorRef(processor);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds the custom processor reference to this destination which could be a final\n     * destination, or could be a transformation in a pipeline\n     */\n    public Type processRef(String ref) {\n        ProcessorRef answer = new ProcessorRef();\n        answer.setRef(ref);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean which is invoked which could be a final destination, or could\n     * be a transformation in a pipeline\n     */\n    public Type bean(Object bean) {\n        BeanRef answer = new BeanRef();\n        answer.setBean(bean);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean and method which is invoked which could be a final\n     * destination, or could be a transformation in a pipeline\n     */\n    public Type bean(Object bean, String method) {\n        BeanRef answer = new BeanRef();\n        answer.setBean(bean);\n        answer.setMethod(method);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean by type which is invoked which could be a final destination, or could\n     * be a transformation in a pipeline\n     */\n    public Type bean(Class beanType) {\n        BeanRef answer = new BeanRef();\n        answer.setBeanType(beanType);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean type and method which is invoked which could be a final\n     * destination, or could be a transformation in a pipeline\n     */\n    public Type bean(Class beanType, String method) {\n        BeanRef answer = new BeanRef();\n        answer.setBeanType(beanType);\n        answer.setMethod(method);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean which is invoked which could be a final destination, or could\n     * be a transformation in a pipeline\n     */\n    public Type beanRef(String ref) {\n        BeanRef answer = new BeanRef(ref);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean and method which is invoked which could be a final\n     * destination, or could be a transformation in a pipeline\n     */\n    public Type beanRef(String ref, String method) {\n        BeanRef answer = new BeanRef(ref, method);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the body on the IN message\n     */\n    public ExpressionClause<ProcessorType<Type>> setBody() {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetBodyType answer = new SetBodyType(clause);\n        addOutput(answer);\n        return clause;\n    }\n\n    /**\n     * Adds a processor which sets the body on the IN message\n     */\n    public Type setBody(Expression expression) {\n        SetBodyType answer = new SetBodyType(expression);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the body on the OUT message\n     *\n     * @deprecated Please use {@link #transform(Expression)} instead. Will be removed in Camel 2.0.\n     */\n    @Deprecated\n    public Type setOutBody(Expression expression) {\n        return transform(expression);\n    }\n\n    /**\n     * Adds a processor which sets the body on the OUT message\n     *\n     * @deprecated Please use {@link #transform()} instead. Will be removed in Camel 2.0.\n     */\n    @Deprecated\n    public ExpressionClause<ProcessorType<Type>> setOutBody() {\n        return transform();\n    }\n\n    /**\n     * Adds a processor which sets the body on the OUT message\n     */\n    public Type transform(Expression expression) {\n        TransformType answer = new TransformType(expression);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the body on the OUT message\n     */\n    public ExpressionClause<ProcessorType<Type>> transform() {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        TransformType answer = new TransformType(clause);\n        addOutput(answer);\n        return clause;\n    }\n\n    /**\n     * Adds a processor which sets the body on the FAULT message\n     */\n    public Type setFaultBody(Expression expression) {\n        return process(ProcessorBuilder.setFaultBody(expression));\n    }\n\n    /**\n     * Adds a processor which sets the header on the IN message\n     */\n    public ExpressionClause<ProcessorType<Type>> setHeader(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetHeaderType answer = new SetHeaderType(name, clause);\n        addOutput(answer);\n        return clause;\n    }\n\n    /**\n     * Adds a processor which sets the header on the IN message\n     */\n    public Type setHeader(String name, Expression expression) {\n        SetHeaderType answer = new SetHeaderType(name, expression);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the header on the IN message to the given value\n     */\n    public Type setHeader(String name, String value) {\n        SetHeaderType answer = new SetHeaderType(name, value);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the header on the OUT message\n     */\n    public ExpressionClause<ProcessorType<Type>> setOutHeader(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        process(ProcessorBuilder.setOutHeader(name, clause));\n        return clause;\n    }\n\n    /**\n     * Adds a processor which sets the header on the OUT message\n     */\n    public Type setOutHeader(String name, Expression expression) {\n        return process(ProcessorBuilder.setOutHeader(name, expression));\n    }\n\n    /**\n     * Adds a processor which sets the header on the OUT message\n     */\n    public Type setOutHeader(String name, String value) {\n        return (Type) setOutHeader(name).constant(value);\n    }\n\n    /**\n     * Adds a processor which sets the header on the FAULT message\n     */\n    public Type setFaultHeader(String name, Expression expression) {\n        return process(ProcessorBuilder.setFaultHeader(name, expression));\n    }\n\n    /**\n     * Adds a processor which sets the exchange property\n     */\n    public Type setProperty(String name, Expression expression) {\n        return process(ProcessorBuilder.setProperty(name, expression));\n    }\n\n\n    /**\n     * Adds a processor which sets the exchange property\n     */\n    public ExpressionClause<ProcessorType<Type>> setProperty(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        process(ProcessorBuilder.setProperty(name, clause));\n        return clause;\n    }\n\n    /**\n     * Adds a processor which removes the header on the IN message\n     */\n    public Type removeHeader(String name) {\n        return process(ProcessorBuilder.removeHeader(name));\n    }\n\n    /**\n     * Adds a processor which removes the header on the OUT message\n     */\n    public Type removeOutHeader(String name) {\n        return process(ProcessorBuilder.removeOutHeader(name));\n    }\n\n    /**\n     * Adds a processor which removes the header on the FAULT message\n     */\n    public Type removeFaultHeader(String name) {\n        return process(ProcessorBuilder.removeFaultHeader(name));\n    }\n\n    /**\n     * Adds a processor which removes the exchange property\n     */\n    public Type removeProperty(String name) {\n        return process(ProcessorBuilder.removeProperty(name));\n    }\n\n    /**\n     * Converts the IN message body to the specified type\n     */\n    public Type convertBodyTo(Class type) {\n        addOutput(new ConvertBodyType(type));\n        return (Type) this;\n    }\n\n    /**\n     * Converts the OUT message body to the specified type\n     *\n     * @deprecated Please use {@link #convertBodyTo(Class)} instead. Will be removed in Camel 2.0.\n     */\n    @Deprecated\n    public Type convertOutBodyTo(Class type) {\n        return process(new ConvertBodyProcessor(type));\n    }\n\n    /**\n     * Converts the FAULT message body to the specified type\n     *\n     * @deprecated Please use {@link #convertBodyTo(Class)} instead. Will be removed in Camel 2.0.\n     */\n    @Deprecated\n    public Type convertFaultBodyTo(Class type) {\n        return process(new ConvertBodyProcessor(type));\n    }\n\n\n    /**\n     * Unmarshals the in body using a {@link DataFormat} expression to define\n     * the format of the input message and the output will be set on the out message body.\n     *\n     * @return the expression to create the {@link DataFormat}\n     */\n    public DataFormatClause<ProcessorType<Type>> unmarshal() {\n        return new DataFormatClause<ProcessorType<Type>>(this, DataFormatClause.Operation.Unmarshal);\n    }\n\n    /**\n     * Unmarshals the in body using the specified {@link DataFormat}\n     * and sets the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type unmarshal(DataFormatType dataFormatType) {\n        addOutput(new UnmarshalType(dataFormatType));\n        return (Type) this;\n    }\n\n    /**\n     * Unmarshals the in body using the specified {@link DataFormat}\n     * and sets the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type unmarshal(DataFormat dataFormat) {\n        return unmarshal(new DataFormatType(dataFormat));\n    }\n\n    /**\n     * Unmarshals the in body using the specified {@link DataFormat}\n     * reference in the {@link Registry} and sets the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type unmarshal(String dataTypeRef) {\n        addOutput(new UnmarshalType(dataTypeRef));\n        return (Type) this;\n    }\n\n    /**\n     * Marshals the in body using a {@link DataFormat} expression to define\n     * the format of the output which will be added to the out body.\n     *\n     * @return the expression to create the {@link DataFormat}\n     */\n    public DataFormatClause<ProcessorType<Type>> marshal() {\n        return new DataFormatClause<ProcessorType<Type>>(this, DataFormatClause.Operation.Marshal);\n    }\n\n    /**\n     * Marshals the in body using the specified {@link DataFormat}\n     * and sets the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type marshal(DataFormatType dataFormatType) {\n        addOutput(new MarshalType(dataFormatType));\n        return (Type) this;\n    }\n\n    /**\n     * Marshals the in body using the specified {@link DataFormat}\n     * and sets the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type marshal(DataFormat dataFormat) {\n        return marshal(new DataFormatType(dataFormat));\n    }\n\n    /**\n     * Marshals the in body the specified {@link DataFormat}\n     * reference in the {@link Registry} and sets the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type marshal(String dataTypeRef) {\n        addOutput(new MarshalType(dataTypeRef));\n        return (Type) this;\n    }\n\n    @XmlTransient\n    public ProcessorType<? extends ProcessorType> getParent() {\n        return parent;\n    }\n\n    public void setParent(ProcessorType<? extends ProcessorType> parent) {\n        this.parent = parent;\n    }\n\n    @XmlTransient\n    public ErrorHandlerBuilder getErrorHandlerBuilder() {\n        if (errorHandlerBuilder == null) {\n            errorHandlerBuilder = createErrorHandlerBuilder();\n        }\n        return errorHandlerBuilder;\n    }\n\n    /**\n     * Sets the error handler to use with processors created by this builder\n     */\n    public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder) {\n        this.errorHandlerBuilder = errorHandlerBuilder;\n    }\n\n    /**\n     * Sets the error handler if one is not already set\n     */\n    protected void setErrorHandlerBuilderIfNull(ErrorHandlerBuilder errorHandlerBuilder) {\n        if (this.errorHandlerBuilder == null) {\n            setErrorHandlerBuilder(errorHandlerBuilder);\n        }\n    }\n\n    public String getErrorHandlerRef() {\n        return errorHandlerRef;\n    }\n\n    /**\n     * Sets the bean ref name of the error handler builder to use on this route\n     */\n    @XmlAttribute(required = false)\n    public void setErrorHandlerRef(String errorHandlerRef) {\n        this.errorHandlerRef = errorHandlerRef;\n        setErrorHandlerBuilder(new ErrorHandlerBuilderRef(errorHandlerRef));\n    }\n\n    @XmlTransient\n    public boolean isInheritErrorHandler() {\n        return isInheritErrorHandler(getInheritErrorHandlerFlag());\n    }\n\n    /**\n     * Lets default the inherit value to be true if there is none specified\n     */\n    public static boolean isInheritErrorHandler(Boolean value) {\n        return value == null || value.booleanValue();\n    }\n\n    @XmlAttribute(name = \"inheritErrorHandler\", required = false)\n    public Boolean getInheritErrorHandlerFlag() {\n        return inheritErrorHandlerFlag;\n    }\n\n    public void setInheritErrorHandlerFlag(Boolean inheritErrorHandlerFlag) {\n        this.inheritErrorHandlerFlag = inheritErrorHandlerFlag;\n    }\n\n    @XmlTransient\n    public NodeFactory getNodeFactory() {\n        if (nodeFactory == null) {\n            nodeFactory = new NodeFactory();\n        }\n        return nodeFactory;\n    }\n\n    public void setNodeFactory(NodeFactory nodeFactory) {\n        this.nodeFactory = nodeFactory;\n    }\n\n    /**\n     * Returns a label to describe this node such as the expression if some kind of expression node\n     */\n    public String getLabel() {\n        return \"\";\n    }\n\n\n    /**\n     * Creates the processor and wraps it in any necessary interceptors and\n     * error handlers\n     */\n    protected Processor makeProcessor(RouteContext routeContext) throws Exception {\n        Processor processor = createProcessor(routeContext);\n        return wrapProcessor(routeContext, processor);\n    }\n\n    /**\n     * A strategy method which allows derived classes to wrap the child\n     * processor in some kind of interceptor\n     *\n     * @param routeContext\n     * @param target       the processor which can be wrapped\n     * @return the original processor or a new wrapped interceptor\n     */\n    protected Processor wrapProcessorInInterceptors(RouteContext routeContext, Processor target) throws Exception {\n        if (target == null) {\n            throw new RuntimeCamelException(\"target not provided.\");\n        }\n\n        List<InterceptStrategy> strategies = new ArrayList<InterceptStrategy>();\n        CamelContext camelContext = routeContext.getCamelContext();\n        if (camelContext instanceof DefaultCamelContext) {\n            DefaultCamelContext defaultCamelContext = (DefaultCamelContext) camelContext;\n            strategies.addAll(defaultCamelContext.getInterceptStrategies());\n        }\n        strategies.addAll(routeContext.getInterceptStrategies());\n        for (InterceptStrategy strategy : strategies) {\n            if (strategy != null) {\n                target = strategy.wrapProcessorInInterceptors(this, target);\n            }\n        }\n\n        List<InterceptorType> list = routeContext.getRoute().getInterceptors();\n        if (interceptors != null) {\n            list.addAll(interceptors);\n        }\n        Collections.reverse(list);\n        Set<Processor> interceptors = new HashSet<Processor>();\n        interceptors.add(target);\n        for (InterceptorType interceptorType : list) {\n            DelegateProcessor interceptor = interceptorType.createInterceptor(routeContext);\n            if (!interceptors.contains(interceptor)) {\n                interceptors.add(interceptor);\n                if (interceptor.getProcessor() != null) {\n                    LOG.warn(\"Interceptor \" + interceptor + \" currently wraps target \"\n                            + interceptor.getProcessor()\n                            + \" is attempting to change target \" + target\n                            + \" new wrapping has been denied.\");\n                } else {\n                    interceptor.setProcessor(target);\n                    target = interceptor;\n                }\n            }\n        }\n        return target;\n    }\n\n    /**\n     * A strategy method to allow newly created processors to be wrapped in an\n     * error handler.\n     */\n    protected Processor wrapInErrorHandler(RouteContext routeContext, Processor target) throws Exception {\n        if (target == null) {\n            throw new RuntimeCamelException(\"target not provided.\");\n        }\n\n        ErrorHandlerWrappingStrategy strategy = routeContext.getErrorHandlerWrappingStrategy();\n\n        if (strategy != null) {\n            return strategy.wrapProcessorInErrorHandler(routeContext, this, target);\n        }\n\n        return getErrorHandlerBuilder().createErrorHandler(routeContext, target);\n    }\n\n    protected ErrorHandlerBuilder createErrorHandlerBuilder() {\n        if (errorHandlerRef != null) {\n            return new ErrorHandlerBuilderRef(errorHandlerRef);\n        }\n        if (isInheritErrorHandler()) {\n            return new DeadLetterChannelBuilder();\n        } else {\n            return new NoErrorHandlerBuilder();\n        }\n    }\n\n    protected void configureChild(ProcessorType output) {\n        output.setNodeFactory(getNodeFactory());\n    }\n\n    public void addOutput(ProcessorType processorType) {\n        processorType.setParent(this);\n        configureChild(processorType);\n        if (blocks.isEmpty()) {\n            getOutputs().add(processorType);\n        } else {\n            Block block = blocks.getLast();\n            block.addOutput(processorType);\n        }\n    }\n\n    /**\n     * Creates a new instance of some kind of composite processor which defaults\n     * to using a {@link Pipeline} but derived classes could change the\n     * behaviour\n     */\n    protected Processor createCompositeProcessor(List<Processor> list) {\n        return new Pipeline(list);\n    }\n\n    protected Processor createOutputsProcessor(RouteContext routeContext, Collection<ProcessorType<?>> outputs)\n        throws Exception {\n        List<Processor> list = new ArrayList<Processor>();\n        for (ProcessorType output : outputs) {\n            Processor processor = output.createProcessor(routeContext);\n            processor = output.wrapProcessorInInterceptors(routeContext, processor);\n\n            ProcessorType currentProcessor = this;\n            if (!(currentProcessor instanceof ExceptionType || currentProcessor instanceof TryType)) {\n                processor = output.wrapInErrorHandler(routeContext, processor);\n            }\n\n            list.add(processor);\n        }\n        Processor processor = null;\n        if (!list.isEmpty()) {\n            if (list.size() == 1) {\n                processor = list.get(0);\n            } else {\n                processor = createCompositeProcessor(list);\n            }\n        }\n        return processor;\n    }\n\n    public void clearOutput() {\n        getOutputs().clear();\n        blocks.clear();", "functions": [{"function_name": "getOutputs", "code": "    public abstract List<ProcessorType<?>> getOutputs();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "createProcessor", "code": "    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        throw new UnsupportedOperationException(\"Not implemented yet for class: \" + getClass().getName());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createOutputsProcessor", "code": "    public Processor createOutputsProcessor(RouteContext routeContext) throws Exception {\n        Collection<ProcessorType<?>> outputs = getOutputs();\n        return createOutputsProcessor(routeContext, outputs);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addRoutes", "code": "    public void addRoutes(RouteContext routeContext, Collection<Route> routes) throws Exception {\n        Processor processor = makeProcessor(routeContext);\n        if (!routeContext.isRouteAdded()) {\n            routeContext.addEventDrivenProcessor(processor);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "wrapProcessor", "code": "    public Processor wrapProcessor(RouteContext routeContext, Processor processor) throws Exception {\n        processor = wrapProcessorInInterceptors(routeContext, processor);\n        return wrapInErrorHandler(routeContext, processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "to", "code": "    public Type to(String uri) {\n        addOutput(new ToType(uri));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "to", "code": "    public Type to(Endpoint endpoint) {\n        addOutput(new ToType(endpoint));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "to", "code": "    public Type to(String... uris) {\n        for (String uri : uris) {\n            addOutput(new ToType(uri));\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "to", "code": "    public Type to(Endpoint... endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint));\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "to", "code": "    public Type to(Collection<Endpoint> endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint));\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "multicast", "code": "    public MulticastType multicast() {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "multicast", "code": "    public MulticastType multicast(AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "multicast", "code": "    public MulticastType multicast(AggregationStrategy aggregationStrategy) {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "pipeline", "code": "    public Type pipeline(String... uris) {\n        return to(uris);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "pipeline", "code": "    public Type pipeline(Endpoint... endpoints) {\n        return to(endpoints);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "pipeline", "code": "    public Type pipeline(Collection<Endpoint> endpoints) {\n        return to(endpoints);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "end", "code": "    public ProcessorType<? extends ProcessorType> end() {\n        if (blocks.isEmpty()) {\n            if (parent == null) {\n                throw new IllegalArgumentException(\"Root node with no active block\");\n            }\n            return parent;\n        }\n        popBlock();\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "RETURN", "IF", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [6, 7], [6, 8], [7, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 6], [8, 6], [9, 7], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "thread", "code": "    public ThreadType thread(int coreSize) {\n        ThreadType answer = new ThreadType(coreSize);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "thread", "code": "    public ProcessorType<Type> thread(ThreadPoolExecutor executor) {\n        ThreadType answer = new ThreadType(executor);\n        addOutput(answer);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "idempotentConsumer", "code": "    public IdempotentConsumerType idempotentConsumer(Expression messageIdExpression,\n            MessageIdRepository messageIdRepository) {\n        IdempotentConsumerType answer = new IdempotentConsumerType(messageIdExpression, messageIdRepository);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "idempotentConsumer", "code": "    public ExpressionClause<IdempotentConsumerType> idempotentConsumer(MessageIdRepository messageIdRepository) {\n        IdempotentConsumerType answer = new IdempotentConsumerType();\n        answer.setMessageIdRepository(messageIdRepository);\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "filter", "code": "    public ExpressionClause<FilterType> filter() {\n        FilterType filter = new FilterType();\n        addOutput(filter);\n        return ExpressionClause.createAndSetExpression(filter);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "filter", "code": "    public FilterType filter(Predicate predicate) {\n        FilterType filter = new FilterType(predicate);\n        addOutput(filter);\n        return filter;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "filter", "code": "    public FilterType filter(ExpressionType expression) {\n        FilterType filter = getNodeFactory().createFilter();\n        filter.setExpression(expression);\n        addOutput(filter);\n        return filter;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "filter", "code": "    public FilterType filter(String language, String expression) {\n        return filter(new LanguageExpression(language, expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "loadBalance", "code": "    public LoadBalanceType loadBalance() {\n        LoadBalanceType answer = new LoadBalanceType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "choice", "code": "    public ChoiceType choice() {\n        ChoiceType answer = new ChoiceType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "tryBlock", "code": "    public TryType tryBlock() {\n        TryType answer = new TryType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "recipientList", "code": "    public Type recipientList(Expression receipients) {\n        RecipientListType answer = new RecipientListType(receipients);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "recipientList", "code": "    public ExpressionClause<ProcessorType<Type>> recipientList() {\n        RecipientListType answer = new RecipientListType();\n        addOutput(answer);\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        answer.setExpression(clause);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "routingSlip", "code": "    public Type routingSlip(String header, String uriDelimiter) {\n        RoutingSlipType answer = new RoutingSlipType(header, uriDelimiter);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "routingSlip", "code": "    public Type routingSlip(String header) {\n        RoutingSlipType answer = new RoutingSlipType(header);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "routingSlip", "code": "    public Type routingSlip() {\n        RoutingSlipType answer = new RoutingSlipType();\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "splitter", "code": "    public SplitterType splitter(Expression receipients) {\n        SplitterType answer = new SplitterType(receipients);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "splitter", "code": "    public ExpressionClause<SplitterType> splitter() {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "splitter", "code": "    public SplitterType splitter(Expression partsExpression, AggregationStrategy aggregationStrategy) {\n        SplitterType answer = new SplitterType(partsExpression);\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "splitter", "code": "    public ExpressionClause<SplitterType> splitter(AggregationStrategy aggregationStrategy) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "splitter", "code": "    public SplitterType splitter(Expression receipients, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType(receipients);\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "splitter", "code": "    public ExpressionClause<SplitterType> splitter(boolean parallelProcessing) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "splitter", "code": "    public SplitterType splitter(Expression partsExpression,\n            AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType(partsExpression);\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "splitter", "code": "    public ExpressionClause<SplitterType> splitter(AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "resequencer", "code": "    public ExpressionClause<ResequencerType> resequencer() {\n        ResequencerType answer = new ResequencerType();\n        addOutput(answer);\n        ExpressionClause<ResequencerType> clause = new ExpressionClause<ResequencerType>(answer);\n        answer.expression(clause);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "resequencer", "code": "    public ResequencerType resequencer(Expression<Exchange> expression) {\n        return resequencer(Collections.<Expression>singletonList(expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "resequencer", "code": "    public ResequencerType resequencer(List<Expression> expressions) {\n        ResequencerType answer = new ResequencerType(expressions);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resequencer", "code": "    public ResequencerType resequencer(Expression... expressions) {\n        List<Expression> list = new ArrayList<Expression>();\n        list.addAll(Arrays.asList(expressions));\n        return resequencer(list);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "aggregator", "code": "    public ExpressionClause<AggregatorType> aggregator() {\n        AggregatorType answer = new AggregatorType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "aggregator", "code": "    public ExpressionClause<AggregatorType> aggregator(AggregationStrategy aggregationStrategy) {\n        AggregatorType answer = new AggregatorType();\n        answer.setAggregationStrategy(aggregationStrategy);\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "aggregator", "code": "    public ExpressionClause<AggregatorType> aggregator(AggregationCollection aggregationCollection) {\n        AggregatorType answer = new AggregatorType();\n        answer.setAggregationCollection(aggregationCollection);\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "aggregator", "code": "    public AggregatorType aggregator(Expression correlationExpression) {\n        AggregatorType answer = new AggregatorType(correlationExpression);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "aggregator", "code": "    public AggregatorType aggregator(Expression correlationExpression, AggregationStrategy aggregationStrategy) {\n        AggregatorType answer = new AggregatorType(correlationExpression, aggregationStrategy);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "delayer", "code": "    public DelayerType delayer(Expression<Exchange> processAtExpression) {\n        return delayer(processAtExpression, 0L);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "delayer", "code": "    public DelayerType delayer(Expression<Exchange> processAtExpression, long delay) {\n        DelayerType answer = new DelayerType(processAtExpression, delay);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "delayer", "code": "    public ExpressionClause<DelayerType> delayer() {\n        DelayerType answer = new DelayerType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "delayer", "code": "    public DelayerType delayer(long delay) {\n        return delayer(null, delay);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "throttler", "code": "    public ThrottlerType throttler(long maximumRequestCount) {\n        ThrottlerType answer = new ThrottlerType(maximumRequestCount);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "throwFault", "code": "    public Type throwFault(Throwable fault) {\n        ThrowFaultType answer = new ThrowFaultType();\n        answer.setFault(fault);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "throwFault", "code": "    public Type throwFault(String message) {\n        return throwFault(new CamelException(message));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "interceptor", "code": "    public Type interceptor(String ref) {\n        InterceptorRef interceptor = new InterceptorRef(ref);\n        intercept(interceptor);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "intercept", "code": "    public Type intercept(DelegateProcessor interceptor) {\n        intercept(new InterceptorRef(interceptor));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "intercept", "code": "    public InterceptType intercept() {\n        InterceptType answer = new InterceptType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "intercept", "code": "    public void intercept(InterceptorType interceptor) {\n        addOutput(interceptor);\n        pushBlock(interceptor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addInterceptor", "code": "    public void addInterceptor(InterceptorType interceptor) {\n        interceptors.add(interceptor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addInterceptor", "code": "    public void addInterceptor(DelegateProcessor interceptor) {\n        addInterceptor(new InterceptorRef(interceptor));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "pushBlock", "code": "    protected void pushBlock(Block block) {\n        blocks.add(block);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popBlock", "code": "    protected Block popBlock() {\n        return blocks.isEmpty() ? null : blocks.removeLast();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "proceed", "code": "    public Type proceed() {\n        ProceedType proceed = null;\n        ProcessorType currentProcessor = this;\n\n        if (currentProcessor instanceof InterceptType) {\n            proceed = ((InterceptType) currentProcessor).getProceed();\n            LOG.info(\"proceed() is the implied and hence not needed for an intercept()\");\n        }\n        if (proceed == null) {\n            for (ProcessorType node = parent; node != null; node = node.getParent()) {\n                if (node instanceof InterceptType) {\n                    InterceptType intercept = (InterceptType)node;\n                    proceed = intercept.getProceed();\n                    break;\n                }\n            }\n\n            if (proceed == null) {\n                throw new IllegalArgumentException(\"Cannot use proceed() without being within an intercept() block\");\n            }\n\n        }\n\n        addOutput(proceed);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [2, 10], [7, 11], [5, 12], [9, 13], [10, 14], [10, 15], [3, 16], [3, 17], [9, 18], [13, 19], [10, 20], [14, 21], [15, 22], [16, 23], [18, 24], [20, 25], [24, 26], [20, 27], [20, 28], [20, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 2], [11, 7], [12, 5], [13, 9], [14, 10], [15, 10], [16, 3], [17, 3], [18, 9], [19, 13], [20, 10], [21, 14], [22, 15], [23, 16], [24, 18], [25, 20], [26, 24], [27, 20], [28, 20], [29, 20], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "stop", "code": "    public Type stop() {\n        ProcessorType currentProcessor = this;\n\n        if (currentProcessor instanceof InterceptType) {\n            ((InterceptType) currentProcessor).stopIntercept();\n        } else {\n            ProcessorType node;\n            for (node = parent; node != null; node = node.getParent()) {\n                if (node instanceof InterceptType) {\n                    ((InterceptType) node).stopIntercept();\n                    break;\n                }\n            }\n            if (node == null) {\n                throw new IllegalArgumentException(\"Cannot use stop() without being within an intercept() block\");\n            }\n        }\n\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [5, 12], [8, 13], [6, 14], [9, 15], [10, 16], [12, 17], [14, 18], [17, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 5], [13, 8], [14, 6], [15, 9], [16, 10], [17, 12], [18, 14], [19, 17], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "exception", "code": "    public ExceptionType exception(Class exceptionType) {\n        ExceptionType answer = new ExceptionType(exceptionType);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "intercept", "code": "    public ChoiceType intercept(Predicate predicate) {\n        InterceptType answer = new InterceptType();\n        addOutput(answer);\n        return answer.when(predicate);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "interceptors", "code": "    public Type interceptors(String... refs) {\n        for (String ref : refs) {\n            interceptor(ref);\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "trace", "code": "    public Type trace() {\n        return trace(DEFAULT_TRACE_CATEGORY);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "trace", "code": "    public Type trace(String category) {\n        final Log log = LogFactory.getLog(category);\n        return intercept(new DelegateProcessor() {\n            @Override\n            public void process(Exchange exchange) throws Exception {\n                log.trace(exchange);\n                processNext(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [5, 7], [7, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 5], [8, 7], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "policies", "code": "    public PolicyRef policies() {\n        PolicyRef answer = new PolicyRef();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "policy", "code": "    public PolicyRef policy(Policy policy) {\n        PolicyRef answer = new PolicyRef(policy);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "handleFault", "code": "    public Type handleFault() {\n        intercept(new HandleFaultType());\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "errorHandler", "code": "    public Type errorHandler(ErrorHandlerBuilder errorHandlerBuilder) {\n        setErrorHandlerBuilder(errorHandlerBuilder);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inheritErrorHandler", "code": "    public Type inheritErrorHandler(boolean condition) {\n        setInheritErrorHandlerFlag(condition);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "process", "code": "    public Type process(Processor processor) {\n        ProcessorRef answer = new ProcessorRef(processor);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "processRef", "code": "    public Type processRef(String ref) {\n        ProcessorRef answer = new ProcessorRef();\n        answer.setRef(ref);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "bean", "code": "    public Type bean(Object bean) {\n        BeanRef answer = new BeanRef();\n        answer.setBean(bean);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "bean", "code": "    public Type bean(Object bean, String method) {\n        BeanRef answer = new BeanRef();\n        answer.setBean(bean);\n        answer.setMethod(method);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "bean", "code": "    public Type bean(Class beanType) {\n        BeanRef answer = new BeanRef();\n        answer.setBeanType(beanType);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "bean", "code": "    public Type bean(Class beanType, String method) {\n        BeanRef answer = new BeanRef();\n        answer.setBeanType(beanType);\n        answer.setMethod(method);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "beanRef", "code": "    public Type beanRef(String ref) {\n        BeanRef answer = new BeanRef(ref);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "beanRef", "code": "    public Type beanRef(String ref, String method) {\n        BeanRef answer = new BeanRef(ref, method);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setBody", "code": "    public ExpressionClause<ProcessorType<Type>> setBody() {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetBodyType answer = new SetBodyType(clause);\n        addOutput(answer);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setBody", "code": "    public Type setBody(Expression expression) {\n        SetBodyType answer = new SetBodyType(expression);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setOutBody", "code": "    @Deprecated\n    public Type setOutBody(Expression expression) {\n        return transform(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setOutBody", "code": "    @Deprecated\n    public ExpressionClause<ProcessorType<Type>> setOutBody() {\n        return transform();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "transform", "code": "    public Type transform(Expression expression) {\n        TransformType answer = new TransformType(expression);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "transform", "code": "    public ExpressionClause<ProcessorType<Type>> transform() {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        TransformType answer = new TransformType(clause);\n        addOutput(answer);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setFaultBody", "code": "    public Type setFaultBody(Expression expression) {\n        return process(ProcessorBuilder.setFaultBody(expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setHeader", "code": "    public ExpressionClause<ProcessorType<Type>> setHeader(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetHeaderType answer = new SetHeaderType(name, clause);\n        addOutput(answer);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setHeader", "code": "    public Type setHeader(String name, Expression expression) {\n        SetHeaderType answer = new SetHeaderType(name, expression);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setHeader", "code": "    public Type setHeader(String name, String value) {\n        SetHeaderType answer = new SetHeaderType(name, value);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOutHeader", "code": "    public ExpressionClause<ProcessorType<Type>> setOutHeader(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        process(ProcessorBuilder.setOutHeader(name, clause));\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOutHeader", "code": "    public Type setOutHeader(String name, Expression expression) {\n        return process(ProcessorBuilder.setOutHeader(name, expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setOutHeader", "code": "    public Type setOutHeader(String name, String value) {\n        return (Type) setOutHeader(name).constant(value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setFaultHeader", "code": "    public Type setFaultHeader(String name, Expression expression) {\n        return process(ProcessorBuilder.setFaultHeader(name, expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setProperty", "code": "    public Type setProperty(String name, Expression expression) {\n        return process(ProcessorBuilder.setProperty(name, expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setProperty", "code": "    public ExpressionClause<ProcessorType<Type>> setProperty(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        process(ProcessorBuilder.setProperty(name, clause));\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "removeHeader", "code": "    public Type removeHeader(String name) {\n        return process(ProcessorBuilder.removeHeader(name));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeOutHeader", "code": "    public Type removeOutHeader(String name) {\n        return process(ProcessorBuilder.removeOutHeader(name));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeFaultHeader", "code": "    public Type removeFaultHeader(String name) {\n        return process(ProcessorBuilder.removeFaultHeader(name));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeProperty", "code": "    public Type removeProperty(String name) {\n        return process(ProcessorBuilder.removeProperty(name));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "convertBodyTo", "code": "    public Type convertBodyTo(Class type) {\n        addOutput(new ConvertBodyType(type));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "convertOutBodyTo", "code": "    @Deprecated\n    public Type convertOutBodyTo(Class type) {\n        return process(new ConvertBodyProcessor(type));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "convertFaultBodyTo", "code": "    @Deprecated\n    public Type convertFaultBodyTo(Class type) {\n        return process(new ConvertBodyProcessor(type));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unmarshal", "code": "    public DataFormatClause<ProcessorType<Type>> unmarshal() {\n        return new DataFormatClause<ProcessorType<Type>>(this, DataFormatClause.Operation.Unmarshal);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "unmarshal", "code": "    public Type unmarshal(DataFormatType dataFormatType) {\n        addOutput(new UnmarshalType(dataFormatType));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unmarshal", "code": "    public Type unmarshal(DataFormat dataFormat) {\n        return unmarshal(new DataFormatType(dataFormat));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unmarshal", "code": "    public Type unmarshal(String dataTypeRef) {\n        addOutput(new UnmarshalType(dataTypeRef));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "marshal", "code": "    public DataFormatClause<ProcessorType<Type>> marshal() {\n        return new DataFormatClause<ProcessorType<Type>>(this, DataFormatClause.Operation.Marshal);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "marshal", "code": "    public Type marshal(DataFormatType dataFormatType) {\n        addOutput(new MarshalType(dataFormatType));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "marshal", "code": "    public Type marshal(DataFormat dataFormat) {\n        return marshal(new DataFormatType(dataFormat));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "marshal", "code": "    public Type marshal(String dataTypeRef) {\n        addOutput(new MarshalType(dataTypeRef));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getParent", "code": "    @XmlTransient\n    public ProcessorType<? extends ProcessorType> getParent() {\n        return parent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParent", "code": "    public void setParent(ProcessorType<? extends ProcessorType> parent) {\n        this.parent = parent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandlerBuilder", "code": "    @XmlTransient\n    public ErrorHandlerBuilder getErrorHandlerBuilder() {\n        if (errorHandlerBuilder == null) {\n            errorHandlerBuilder = createErrorHandlerBuilder();\n        }\n        return errorHandlerBuilder;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setErrorHandlerBuilder", "code": "    public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder) {\n        this.errorHandlerBuilder = errorHandlerBuilder;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorHandlerBuilderIfNull", "code": "    protected void setErrorHandlerBuilderIfNull(ErrorHandlerBuilder errorHandlerBuilder) {\n        if (this.errorHandlerBuilder == null) {\n            setErrorHandlerBuilder(errorHandlerBuilder);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getErrorHandlerRef", "code": "    public String getErrorHandlerRef() {\n        return errorHandlerRef;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorHandlerRef", "code": "    @XmlAttribute(required = false)\n    public void setErrorHandlerRef(String errorHandlerRef) {\n        this.errorHandlerRef = errorHandlerRef;\n        setErrorHandlerBuilder(new ErrorHandlerBuilderRef(errorHandlerRef));", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isInheritErrorHandler", "code": "    @XmlTransient\n    public boolean isInheritErrorHandler() {\n        return isInheritErrorHandler(getInheritErrorHandlerFlag());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isInheritErrorHandler", "code": "    public static boolean isInheritErrorHandler(Boolean value) {\n        return value == null || value.booleanValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getInheritErrorHandlerFlag", "code": "    @XmlAttribute(name = \"inheritErrorHandler\", required = false)\n    public Boolean getInheritErrorHandlerFlag() {\n        return inheritErrorHandlerFlag;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setInheritErrorHandlerFlag", "code": "    public void setInheritErrorHandlerFlag(Boolean inheritErrorHandlerFlag) {\n        this.inheritErrorHandlerFlag = inheritErrorHandlerFlag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNodeFactory", "code": "    @XmlTransient\n    public NodeFactory getNodeFactory() {\n        if (nodeFactory == null) {\n            nodeFactory = new NodeFactory();\n        }\n        return nodeFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setNodeFactory", "code": "    public void setNodeFactory(NodeFactory nodeFactory) {\n        this.nodeFactory = nodeFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLabel", "code": "    public String getLabel() {\n        return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "makeProcessor", "code": "    protected Processor makeProcessor(RouteContext routeContext) throws Exception {\n        Processor processor = createProcessor(routeContext);\n        return wrapProcessor(routeContext, processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "wrapProcessorInInterceptors", "code": "    protected Processor wrapProcessorInInterceptors(RouteContext routeContext, Processor target) throws Exception {\n        if (target == null) {\n            throw new RuntimeCamelException(\"target not provided.\");\n        }\n\n        List<InterceptStrategy> strategies = new ArrayList<InterceptStrategy>();\n        CamelContext camelContext = routeContext.getCamelContext();\n        if (camelContext instanceof DefaultCamelContext) {\n            DefaultCamelContext defaultCamelContext = (DefaultCamelContext) camelContext;\n            strategies.addAll(defaultCamelContext.getInterceptStrategies());\n        }\n        strategies.addAll(routeContext.getInterceptStrategies());\n        for (InterceptStrategy strategy : strategies) {\n            if (strategy != null) {\n                target = strategy.wrapProcessorInInterceptors(this, target);\n            }\n        }\n\n        List<InterceptorType> list = routeContext.getRoute().getInterceptors();\n        if (interceptors != null) {\n            list.addAll(interceptors);\n        }\n        Collections.reverse(list);\n        Set<Processor> interceptors = new HashSet<Processor>();\n        interceptors.add(target);\n        for (InterceptorType interceptorType : list) {\n            DelegateProcessor interceptor = interceptorType.createInterceptor(routeContext);\n            if (!interceptors.contains(interceptor)) {\n                interceptors.add(interceptor);\n                if (interceptor.getProcessor() != null) {\n                    LOG.warn(\"Interceptor \" + interceptor + \" currently wraps target \"\n                            + interceptor.getProcessor()\n                            + \" is attempting to change target \" + target\n                            + \" new wrapping has been denied.\");\n                } else {\n                    interceptor.setProcessor(target);\n                    target = interceptor;\n                }\n            }\n        }\n        return target;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "VAR_DECL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [4, 15], [0, 16], [7, 17], [10, 18], [2, 19], [2, 20], [3, 21], [15, 22], [5, 23], [6, 24], [16, 25], [7, 26], [8, 27], [9, 28], [10, 29], [18, 30], [19, 31], [4, 32], [23, 33], [24, 34], [7, 35], [29, 36], [19, 37], [20, 38], [34, 39], [35, 40], [36, 41], [37, 42], [19, 43], [24, 44], [42, 45], [42, 46], [44, 47], [37, 48], [37, 49], [37, 50], [50, 51], [51, 52], [51, 53], [53, 54], [54, 55], [54, 56], [56, 57], [56, 58], [58, 59], [58, 60], [60, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 4], [16, 0], [17, 7], [18, 10], [19, 2], [20, 2], [21, 3], [22, 15], [23, 5], [24, 6], [25, 16], [26, 7], [27, 8], [28, 9], [29, 10], [30, 18], [31, 19], [32, 4], [33, 23], [34, 24], [35, 7], [36, 29], [37, 19], [38, 20], [39, 34], [40, 35], [41, 36], [42, 37], [43, 19], [44, 24], [45, 42], [46, 42], [47, 44], [48, 37], [49, 37], [50, 37], [51, 50], [52, 51], [53, 51], [54, 53], [55, 54], [56, 54], [57, 56], [58, 56], [59, 58], [60, 58], [61, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "wrapInErrorHandler", "code": "    protected Processor wrapInErrorHandler(RouteContext routeContext, Processor target) throws Exception {\n        if (target == null) {\n            throw new RuntimeCamelException(\"target not provided.\");\n        }\n\n        ErrorHandlerWrappingStrategy strategy = routeContext.getErrorHandlerWrappingStrategy();\n\n        if (strategy != null) {\n            return strategy.wrapProcessorInErrorHandler(routeContext, this, target);\n        }\n\n        return getErrorHandlerBuilder().createErrorHandler(routeContext, target);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [7, 10], [2, 11], [8, 12], [3, 13], [4, 14], [9, 15], [11, 16], [14, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 7], [11, 2], [12, 8], [13, 3], [14, 4], [15, 9], [16, 11], [17, 14], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "createErrorHandlerBuilder", "code": "    protected ErrorHandlerBuilder createErrorHandlerBuilder() {\n        if (errorHandlerRef != null) {\n            return new ErrorHandlerBuilderRef(errorHandlerRef);\n        }\n        if (isInheritErrorHandler()) {\n            return new DeadLetterChannelBuilder();\n        } else {\n            return new NoErrorHandlerBuilder();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "BINARY_OP", "RETURN", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [2, 7], [4, 8], [5, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 2], [8, 4], [9, 5], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "configureChild", "code": "    protected void configureChild(ProcessorType output) {\n        output.setNodeFactory(getNodeFactory());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addOutput", "code": "    public void addOutput(ProcessorType processorType) {\n        processorType.setParent(this);\n        configureChild(processorType);\n        if (blocks.isEmpty()) {\n            getOutputs().add(processorType);\n        } else {\n            Block block = blocks.getLast();\n            block.addOutput(processorType);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createCompositeProcessor", "code": "    protected Processor createCompositeProcessor(List<Processor> list) {\n        return new Pipeline(list);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createOutputsProcessor", "code": "    protected Processor createOutputsProcessor(RouteContext routeContext, Collection<ProcessorType<?>> outputs)\n        throws Exception {\n        List<Processor> list = new ArrayList<Processor>();\n        for (ProcessorType output : outputs) {\n            Processor processor = output.createProcessor(routeContext);\n            processor = output.wrapProcessorInInterceptors(routeContext, processor);\n\n            ProcessorType currentProcessor = this;\n            if (!(currentProcessor instanceof ExceptionType || currentProcessor instanceof TryType)) {\n                processor = output.wrapInErrorHandler(routeContext, processor);\n            }\n\n            list.add(processor);\n        }\n        Processor processor = null;\n        if (!list.isEmpty()) {\n            if (list.size() == 1) {\n                processor = list.get(0);\n            } else {\n                processor = createCompositeProcessor(list);\n            }\n        }\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [4, 11], [4, 12], [4, 13], [5, 14], [9, 15], [4, 16], [11, 17], [4, 18], [15, 19], [15, 20], [17, 21], [17, 22], [18, 23], [13, 24], [9, 25], [9, 26], [11, 27], [25, 28], [26, 29], [27, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 4], [12, 4], [13, 4], [14, 5], [15, 9], [16, 4], [17, 11], [18, 4], [19, 15], [20, 15], [21, 17], [22, 17], [23, 18], [24, 13], [25, 9], [26, 9], [27, 11], [28, 25], [29, 26], [30, 27], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "clearOutput", "code": "    public void clearOutput() {\n        getOutputs().clear();\n        blocks.clear();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.5-7311", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/runtime/TransletLoader.java", "language": "java", "name": "org.apache.xalan.xsltc.runtime.TransletLoader", "code": "final public class TransletLoader {\n    \n\n    /**\n     * Create a translet loader.\n     * Get a handle to the system class loader\n     */\n    public TransletLoader() {\n\tClassLoader loader = Thread.currentThread().getContextClassLoader();\n\n\tfinal String loaderName = loader.getClass().getName();\n\tif (loaderName.equals(\"sun.misc.Launcher$ExtClassLoader\")) {\n\t    loader = ClassLoader.getSystemClassLoader();\n\t}\n\t_loader = loader;\n    }\n\n    /**\n     * Loads a Class definition, but does not run static initializers\n     */\n    public Class loadClass(String name) throws ClassNotFoundException {\n\treturn(Class.forName(name, false, _loader));\n    }\n\n    /**\n     * Loads a Class definition and runs static initializers.\n     */\n    public Class loadTranslet(String name) throws ClassNotFoundException {\n\treturn(Class.forName(name, true, _loader));", "functions": [{"function_name": "loadClass", "code": "    public Class loadClass(String name) throws ClassNotFoundException {\n\treturn(Class.forName(name, false, _loader));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "loadTranslet", "code": "    public Class loadTranslet(String name) throws ClassNotFoundException {\n\treturn(Class.forName(name, true, _loader));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "TransletLoader", "code": "    public TransletLoader() {\n\tClassLoader loader = Thread.currentThread().getContextClassLoader();\n\n\tfinal String loaderName = loader.getClass().getName();\n\tif (loaderName.equals(\"sun.misc.Launcher$ExtClassLoader\")) {\n\t    loader = ClassLoader.getSystemClassLoader();\n\t}\n\t_loader = loader;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [3, 8], [1, 9], [7, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 3], [9, 1], [10, 7], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "poi-2.0-5424", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/util/CommonsLogger.java", "language": "java", "name": "org.apache.poi.util.CommonsLogger", "code": "public class CommonsLogger extends POILogger\n{\n\n    private static LogFactory   _creator = LogFactory.getFactory();\n    private Log             log   = null;\n\n   \n    public void initialize(final String cat)\n    {\n        this.log = _creator.getInstance(cat);\n    }   \n     \n    /**\n     * Log a message\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 The object to log.\n     */\n\n    public void log(final int level, final Object obj1)\n    {\n        if(level==FATAL)\n        {\n          if(log.isFatalEnabled())\n          {\n            log.fatal(obj1);\n          }\n        }\n        else if(level==ERROR)\n        {\n          if(log.isErrorEnabled())\n          {\n            log.error(obj1);\n          }\n        }\n        else if(level==WARN)\n        {\n          if(log.isWarnEnabled())\n          {\n            log.warn(obj1);\n          }\n        }\n        else if(level==INFO)\n        {\n          if(log.isInfoEnabled())\n          {\n            log.info(obj1);\n          }\n        }\n        else if(level==DEBUG)\n        {\n          if(log.isDebugEnabled())\n          {\n            log.debug(obj1);\n          }\n        }\n        else\n        {\n          if(log.isTraceEnabled())\n          {\n            log.trace(obj1);\n          }\n        }\n\n    }\n\n    /**\n     * Check if a logger is enabled to log at the specified level\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 The logger to check.\n     */\n\n    public boolean check(final int level)\n    {\n        if(level==FATAL)\n        {\n          if(log.isFatalEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==ERROR)\n        {\n          if(log.isErrorEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==WARN)\n        {\n          if(log.isWarnEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==INFO)\n        {\n          if(log.isInfoEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==DEBUG)\n        {\n          if(log.isDebugEnabled())\n          {\n            return true;\n          }\n        }\n\n        return false;", "functions": [{"function_name": "initialize", "code": "    public void initialize(final String cat)\n    {\n        this.log = _creator.getInstance(cat);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1)\n    {\n        if(level==FATAL)\n        {\n          if(log.isFatalEnabled())\n          {\n            log.fatal(obj1);\n          }\n        }\n        else if(level==ERROR)\n        {\n          if(log.isErrorEnabled())\n          {\n            log.error(obj1);\n          }\n        }\n        else if(level==WARN)\n        {\n          if(log.isWarnEnabled())\n          {\n            log.warn(obj1);\n          }\n        }\n        else if(level==INFO)\n        {\n          if(log.isInfoEnabled())\n          {\n            log.info(obj1);\n          }\n        }\n        else if(level==DEBUG)\n        {\n          if(log.isDebugEnabled())\n          {\n            log.debug(obj1);\n          }\n        }\n        else\n        {\n          if(log.isTraceEnabled())\n          {\n            log.trace(obj1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "IF", "CALL", "IF", "BINARY_OP", "IF", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [6, 9], [6, 10], [4, 11], [8, 12], [9, 13], [9, 14], [6, 15], [11, 16], [13, 17], [9, 18], [15, 19], [8, 20], [13, 21], [13, 22], [18, 23], [11, 24], [21, 25], [22, 26], [15, 27], [18, 28], [21, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 6], [10, 6], [11, 4], [12, 8], [13, 9], [14, 9], [15, 6], [16, 11], [17, 13], [18, 9], [19, 15], [20, 8], [21, 13], [22, 13], [23, 18], [24, 11], [25, 21], [26, 22], [27, 15], [28, 18], [29, 21], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "check", "code": "    public boolean check(final int level)\n    {\n        if(level==FATAL)\n        {\n          if(log.isFatalEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==ERROR)\n        {\n          if(log.isErrorEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==WARN)\n        {\n          if(log.isWarnEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==INFO)\n        {\n          if(log.isInfoEnabled())\n          {\n            return true;\n          }\n        }\n        else if(level==DEBUG)\n        {\n          if(log.isDebugEnabled())\n          {\n            return true;\n          }\n        }\n\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "IF", "CALL", "IF", "BINARY_OP", "IF", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [2, 9], [7, 10], [7, 11], [5, 12], [9, 13], [10, 14], [10, 15], [7, 16], [12, 17], [9, 18], [14, 19], [10, 20], [16, 21], [12, 22], [18, 23], [14, 24], [20, 25], [16, 26], [22, 27], [24, 28], [20, 29], [26, 30], [24, 31], [29, 32], [31, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 2], [10, 7], [11, 7], [12, 5], [13, 9], [14, 10], [15, 10], [16, 7], [17, 12], [18, 9], [19, 14], [20, 10], [21, 16], [22, 12], [23, 18], [24, 14], [25, 20], [26, 16], [27, 22], [28, 24], [29, 20], [30, 26], [31, 24], [32, 29], [33, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}], "label": 1}
{"sample_id": "ant-1.6-704", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/Jar.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Jar", "code": "public class Jar extends Zip {\n    /** The index file name. */\n    private static final String INDEX_NAME = \"META-INF/INDEX.LIST\";\n\n    /** The manifest file name. */\n    private static final String MANIFEST_NAME = \"META-INF/MANIFEST.MF\";\n\n    /** merged manifests added through addConfiguredManifest */\n    private Manifest configuredManifest;\n    /** shadow of the above if upToDate check alters the value */\n    private Manifest savedConfiguredManifest;\n\n    /**  merged manifests added through filesets */\n    private Manifest filesetManifest;\n\n    /**\n     * Manifest of original archive, will be set to null if not in\n     * update mode.\n     */\n    private Manifest originalManifest;\n\n    /**\n     *  whether to merge fileset manifests;\n     *  value is true if filesetmanifest is 'merge' or 'mergewithoutmain'\n     */\n    private FilesetManifestConfig filesetManifestConfig;\n\n    /**\n     * whether to merge the main section of fileset manifests;\n     * value is true if filesetmanifest is 'merge'\n     */\n    private boolean mergeManifestsMain = true;\n\n    /** the manifest specified by the 'manifest' attribute **/\n    private Manifest manifest;\n\n    /** The encoding to use when reading in a manifest file */\n    private String manifestEncoding;\n\n    /**\n     * The file found from the 'manifest' attribute.  This can be\n     * either the location of a manifest, or the name of a jar added\n     * through a fileset.  If its the name of an added jar, the\n     * manifest is looked for in META-INF/MANIFEST.MF\n     */\n    private File manifestFile;\n\n    /** jar index is JDK 1.3+ only */\n    private boolean index = false;\n\n    /**\n     * whether to really create the archive in createEmptyZip, will\n     * get set in getResourcesToAdd.\n     */\n    private boolean createEmpty = false;\n\n    /**\n     * Stores all files that are in the root of the archive (i.e. that\n     * have a name that doesn't contain a slash) so they can get\n     * listed in the index.\n     *\n     * Will not be filled unless the user has asked for an index.\n     *\n     * @since Ant 1.6\n     */\n    private Vector rootEntries;\n\n    /**\n     * Path containing jars that shall be indexed in addition to this archive.\n     *\n     * @since Ant 1.6.2\n     */\n    private Path indexJars;\n\n    /**\n     * Extra fields needed to make Solaris recognize the archive as a jar file.\n     *\n     * @since Ant 1.6.3\n     */\n    private ZipExtraField[] JAR_MARKER = new ZipExtraField[] {\n        JarMarker.getInstance()\n    };\n\n    /** constructor */\n    public Jar() {\n        super();\n        archiveType = \"jar\";\n        emptyBehavior = \"create\";\n        setEncoding(\"UTF8\");\n        rootEntries = new Vector();\n    }\n\n    /**\n     * @ant.attribute ignore=\"true\"\n     */\n    public void setWhenempty(WhenEmpty we) {\n        log(\"JARs are never empty, they contain at least a manifest file\",\n            Project.MSG_WARN);\n    }\n\n    /**\n     * @deprecated Use setDestFile(File) instead\n     */\n    public void setJarfile(File jarFile) {\n        setDestFile(jarFile);\n    }\n\n    /**\n     * Set whether or not to create an index list for classes.\n     * This may speed up classloading in some cases.\n     */\n    public void setIndex(boolean flag) {\n        index = flag;\n    }\n\n    /**\n     * Set whether or not to create an index list for classes.\n     * This may speed up classloading in some cases.\n     */\n    public void setManifestEncoding(String manifestEncoding) {\n        this.manifestEncoding = manifestEncoding;\n    }\n\n    /**\n     * Allows the manifest for the archive file to be provided inline\n     * in the build file rather than in an external file.\n     *\n     * @param newManifest\n     * @throws ManifestException\n     */\n    public void addConfiguredManifest(Manifest newManifest)\n        throws ManifestException {\n        if (configuredManifest == null) {\n            configuredManifest = newManifest;\n        } else {\n            configuredManifest.merge(newManifest);\n        }\n        savedConfiguredManifest = configuredManifest;\n    }\n\n    /**\n     * The manifest file to use. This can be either the location of a manifest,\n     * or the name of a jar added through a fileset. If its the name of an added\n     * jar, the task expects the manifest to be in the jar at META-INF/MANIFEST.MF.\n     *\n     * @param manifestFile the manifest file to use.\n     */\n    public void setManifest(File manifestFile) {\n        if (!manifestFile.exists()) {\n            throw new BuildException(\"Manifest file: \" + manifestFile\n                                     + \" does not exist.\", getLocation());\n        }\n\n        this.manifestFile = manifestFile;\n    }\n\n    private Manifest getManifest(File manifestFile) {\n\n        Manifest newManifest = null;\n        FileInputStream fis = null;\n        InputStreamReader isr = null;\n        try {\n            fis = new FileInputStream(manifestFile);\n            if (manifestEncoding == null) {\n                isr = new InputStreamReader(fis);\n            } else {\n                isr = new InputStreamReader(fis, manifestEncoding);\n            }\n            newManifest = getManifest(isr);\n        } catch (UnsupportedEncodingException e) {\n            throw new BuildException(\"Unsupported encoding while reading manifest: \"\n                                     + e.getMessage(), e);\n        } catch (IOException e) {\n            throw new BuildException(\"Unable to read manifest file: \"\n                                     + manifestFile\n                                     + \" (\" + e.getMessage() + \")\", e);\n        } finally {\n            if (isr != null) {\n                try {\n                    isr.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n        return newManifest;\n    }\n\n    /**\n     * @return null if jarFile doesn't contain a manifest, the\n     * manifest otherwise.\n     * @since Ant 1.5.2\n     */\n    private Manifest getManifestFromJar(File jarFile) throws IOException {\n        ZipFile zf = null;\n        try {\n            zf = new ZipFile(jarFile);\n\n            Enumeration e = zf.entries();\n            while (e.hasMoreElements()) {\n                ZipEntry ze = (ZipEntry) e.nextElement();\n                if (ze.getName().equalsIgnoreCase(MANIFEST_NAME)) {\n                    InputStreamReader isr =\n                        new InputStreamReader(zf.getInputStream(ze), \"UTF-8\");\n                    return getManifest(isr);\n                }\n            }\n            return null;\n        } finally {\n            if (zf != null) {\n                try {\n                    zf.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n    }\n\n    private Manifest getManifest(Reader r) {\n\n        Manifest newManifest = null;\n        try {\n            newManifest = new Manifest(r);\n        } catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest: \" + manifestFile,\n                                     e, getLocation());\n        } catch (IOException e) {\n            throw new BuildException(\"Unable to read manifest file\"\n                                     + \" (\" + e.getMessage() + \")\", e);\n        }\n        return newManifest;\n    }\n\n    /**\n     * Behavior when a Manifest is found in a zipfileset or zipgroupfileset file.\n     * Valid values are \"skip\", \"merge\", and \"mergewithoutmain\".\n     * \"merge\" will merge all of manifests together, and merge this into any\n     * other specified manifests.\n     * \"mergewithoutmain\" merges everything but the Main section of the manifests.\n     * Default value is \"skip\".\n     *\n     * Note: if this attribute's value is not \"skip\", the created jar will not\n     * be readable by using java.util.jar.JarInputStream\n     *\n     * @param config setting for found manifest behavior.\n     */\n    public void setFilesetmanifest(FilesetManifestConfig config) {\n        filesetManifestConfig = config;\n        mergeManifestsMain = \"merge\".equals(config.getValue());\n\n        if (filesetManifestConfig != null\n            && !filesetManifestConfig.getValue().equals(\"skip\")) {\n\n            doubleFilePass = true;\n        }\n    }\n\n    /**\n     * Adds a zipfileset to include in the META-INF directory.\n     *\n     * @param fs zipfileset to add\n     */\n    public void addMetainf(ZipFileSet fs) {\n        fs.setPrefix(\"META-INF/\");\n        super.addFileset(fs);\n    }\n\n    /**\n     * @since Ant 1.6.2\n     */\n    public void addConfiguredIndexJars(Path p) {\n        if (indexJars == null) {\n            indexJars = new Path(getProject());\n        }\n        indexJars.append(p);\n    }\n\n    protected void initZipOutputStream(ZipOutputStream zOut)\n        throws IOException, BuildException {\n\n        if (!skipWriting) {\n            Manifest jarManifest = createManifest();\n            writeManifest(zOut, jarManifest);\n        }\n    }\n\n    private Manifest createManifest()\n        throws BuildException {\n        try {\n            Manifest finalManifest = Manifest.getDefaultManifest();\n\n            if (manifest == null) {\n                if (manifestFile != null) {\n                    manifest = getManifest(manifestFile);\n                }\n            }\n\n            /*\n             * Precedence: manifestFile wins over inline manifest,\n             * over manifests read from the filesets over the original\n             * manifest.\n             *\n             * merge with null argument is a no-op\n             */\n\n            if (isInUpdateMode()) {\n                finalManifest.merge(originalManifest);\n            }\n            finalManifest.merge(filesetManifest);\n            finalManifest.merge(configuredManifest);\n            finalManifest.merge(manifest, !mergeManifestsMain);\n\n            return finalManifest;\n\n        } catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest\", e, getLocation());\n        }\n    }\n\n    private void writeManifest(ZipOutputStream zOut, Manifest manifest)\n        throws IOException {\n        for (Enumeration e = manifest.getWarnings();\n             e.hasMoreElements();) {\n            log(\"Manifest warning: \" + (String) e.nextElement(),\n                Project.MSG_WARN);\n        }\n\n        zipDir(null, zOut, \"META-INF/\", ZipFileSet.DEFAULT_DIR_MODE,\n               JAR_MARKER);\n        ByteArrayOutputStream baos = new ByteArrayOutputStream();\n        OutputStreamWriter osw = new OutputStreamWriter(baos, \"UTF-8\");\n        PrintWriter writer = new PrintWriter(osw);\n        manifest.write(writer);\n        writer.flush();\n\n        ByteArrayInputStream bais =\n            new ByteArrayInputStream(baos.toByteArray());\n        super.zipFile(bais, zOut, MANIFEST_NAME,\n                      System.currentTimeMillis(), null,\n                      ZipFileSet.DEFAULT_FILE_MODE);\n        super.initZipOutputStream(zOut);\n    }\n\n    protected void finalizeZipOutputStream(ZipOutputStream zOut)\n        throws IOException, BuildException {\n\n        if (index) {\n            createIndexList(zOut);\n        }\n    }\n\n    /**\n     * Create the index list to speed up classloading.\n     * This is a JDK 1.3+ specific feature and is enabled by default. See\n     * the JAR index specification</a> for more details.\n     *\n     * @param zOut the zip stream representing the jar being built.\n     * @throws IOException thrown if there is an error while creating the\n     * index and adding it to the zip stream.\n     */\n    private void createIndexList(ZipOutputStream zOut) throws IOException {\n        ByteArrayOutputStream baos = new ByteArrayOutputStream();\n        PrintWriter writer = new PrintWriter(new OutputStreamWriter(baos,\n                                                                    \"UTF8\"));\n\n        writer.println(\"JarIndex-Version: 1.0\");\n        writer.println();\n\n        writer.println(zipFile.getName());\n\n        writeIndexLikeList(new ArrayList(addedDirs.keySet()), \n                           rootEntries, writer);\n        writer.println();\n\n        if (indexJars != null) {\n            Manifest mf = createManifest();\n            Manifest.Attribute classpath =\n                mf.getMainSection().getAttribute(Manifest.ATTRIBUTE_CLASSPATH);\n            String[] cpEntries = null;\n            if (classpath != null) {\n                StringTokenizer tok = new StringTokenizer(classpath.getValue(),\n                                                          \" \");\n                cpEntries = new String[tok.countTokens()];\n                int c = 0;\n                while (tok.hasMoreTokens()) {\n                    cpEntries[c++] = tok.nextToken();\n                }\n            }\n            String[] indexJarEntries = indexJars.list();\n            for (int i = 0; i < indexJarEntries.length; i++) {\n                String name = findJarName(indexJarEntries[i], cpEntries);\n                if (name != null) {\n                    ArrayList dirs = new ArrayList();\n                    ArrayList files = new ArrayList();\n                    grabFilesAndDirs(indexJarEntries[i], dirs, files);\n                    if (dirs.size() + files.size() > 0) {\n                        writer.println(name);\n                        writeIndexLikeList(dirs, files, writer);\n                        writer.println();\n                    }\n                }\n            }\n        }\n\n        writer.flush();\n        ByteArrayInputStream bais =\n            new ByteArrayInputStream(baos.toByteArray());\n        super.zipFile(bais, zOut, INDEX_NAME, System.currentTimeMillis(), null,\n                      ZipFileSet.DEFAULT_FILE_MODE);\n    }\n\n    /**\n     * Overridden from Zip class to deal with manifests and index lists.\n     */\n    protected void zipFile(InputStream is, ZipOutputStream zOut, String vPath,\n                           long lastModified, File fromArchive, int mode)\n        throws IOException {\n        if (MANIFEST_NAME.equalsIgnoreCase(vPath))  {\n            if (!doubleFilePass || (doubleFilePass && skipWriting)) {\n                filesetManifest(fromArchive, is);\n            }\n        } else if (INDEX_NAME.equalsIgnoreCase(vPath) && index) {\n            log(\"Warning: selected \" + archiveType\n                + \" files include a META-INF/INDEX.LIST which will\"\n                + \" be replaced by a newly generated one.\", Project.MSG_WARN);\n        } else {\n            if (index && vPath.indexOf(\"/\") == -1) {\n                rootEntries.addElement(vPath);\n            }\n            super.zipFile(is, zOut, vPath, lastModified, fromArchive, mode);\n        }\n    }\n\n    private void filesetManifest(File file, InputStream is) throws IOException {\n        if (manifestFile != null && manifestFile.equals(file)) {\n            log(\"Found manifest \" + file, Project.MSG_VERBOSE);\n            try {\n                if (is != null) {\n                    InputStreamReader isr;\n                    if (manifestEncoding == null) {\n                        isr = new InputStreamReader(is);\n                    } else {\n                        isr = new InputStreamReader(is, manifestEncoding);\n                    }\n                    manifest = getManifest(isr);\n                } else {\n                    manifest = getManifest(file);\n                }\n            } catch (UnsupportedEncodingException e) {\n                throw new BuildException(\"Unsupported encoding while reading \"\n                    + \"manifest: \" + e.getMessage(), e);\n            }\n        } else if (filesetManifestConfig != null\n                    && !filesetManifestConfig.getValue().equals(\"skip\")) {\n            log(\"Found manifest to merge in file \" + file,\n                Project.MSG_VERBOSE);\n\n            try {\n                Manifest newManifest = null;\n                if (is != null) {\n                    InputStreamReader isr;\n                    if (manifestEncoding == null) {\n                        isr = new InputStreamReader(is);\n                    } else {\n                        isr = new InputStreamReader(is, manifestEncoding);\n                    }\n                    newManifest = getManifest(isr);\n                } else {\n                    newManifest = getManifest(file);\n                }\n\n                if (filesetManifest == null) {\n                    filesetManifest = newManifest;\n                } else {\n                    filesetManifest.merge(newManifest);\n                }\n            } catch (UnsupportedEncodingException e) {\n                throw new BuildException(\"Unsupported encoding while reading \"\n                    + \"manifest: \" + e.getMessage(), e);\n            } catch (ManifestException e) {\n                log(\"Manifest in file \" + file + \" is invalid: \"\n                    + e.getMessage(), Project.MSG_ERR);\n                throw new BuildException(\"Invalid Manifest\", e, getLocation());\n            }\n        } else {\n\n\n        }\n    }\n\n    /**\n     * Collect the resources that are newer than the corresponding\n     * entries (or missing) in the original archive.\n     *\n     * <p>If we are going to recreate the archive instead of updating\n     * it, all resources should be considered as new, if a single one\n     * is.  Because of this, subclasses overriding this method must\n     * call <code>super.getResourcesToAdd</code> and indicate with the\n     * third arg if they already know that the archive is\n     * out-of-date.</p>\n     *\n     * @param filesets The filesets to grab resources from\n     * @param zipFile intended archive file (may or may not exist)\n     * @param needsUpdate whether we already know that the archive is\n     * out-of-date.  Subclasses overriding this method are supposed to\n     * set this value correctly in their call to\n     * super.getResourcesToAdd.\n     * @return an array of resources to add for each fileset passed in as well\n     *         as a flag that indicates whether the archive is uptodate.\n     *\n     * @exception BuildException if it likes\n     */\n    protected ArchiveState getResourcesToAdd(FileSet[] filesets,\n                                             File zipFile,\n                                             boolean needsUpdate)\n        throws BuildException {\n\n        if (zipFile.exists()) {\n\n            try {\n                originalManifest = getManifestFromJar(zipFile);\n                if (originalManifest == null) {\n                    log(\"Updating jar since the current jar has no manifest\",\n                        Project.MSG_VERBOSE);\n                    needsUpdate = true;\n                } else {\n                    Manifest mf = createManifest();\n                    if (!mf.equals(originalManifest)) {\n                        log(\"Updating jar since jar manifest has changed\",\n                            Project.MSG_VERBOSE);\n                        needsUpdate = true;\n                    }\n                }\n            } catch (Throwable t) {\n                log(\"error while reading original manifest: \" + t.getMessage(),\n                    Project.MSG_WARN);\n                needsUpdate = true;\n            }\n\n        } else {\n            needsUpdate = true;\n        }\n\n        createEmpty = needsUpdate;\n        return super.getResourcesToAdd(filesets, zipFile, needsUpdate);\n    }\n\n    protected boolean createEmptyZip(File zipFile) throws BuildException {\n        if (!createEmpty) {\n            return true;\n        }\n\n        ZipOutputStream zOut = null;\n        try {\n            log(\"Building MANIFEST-only jar: \"\n                + getDestFile().getAbsolutePath());\n            zOut = new ZipOutputStream(new FileOutputStream(getDestFile()));\n\n            zOut.setEncoding(getEncoding());\n            if (isCompress()) {\n                zOut.setMethod(ZipOutputStream.DEFLATED);\n            } else {\n                zOut.setMethod(ZipOutputStream.STORED);\n            }\n            initZipOutputStream(zOut);\n            finalizeZipOutputStream(zOut);\n        } catch (IOException ioe) {\n            throw new BuildException(\"Could not create almost empty JAR archive\"\n                                     + \" (\" + ioe.getMessage() + \")\", ioe,\n                                     getLocation());\n        } finally {\n            try {\n                if (zOut != null) {\n                    zOut.close();\n                }\n            } catch (IOException ex) {\n            }\n            createEmpty = false;\n        }\n        return true;\n    }\n\n    /**\n     * Make sure we don't think we already have a MANIFEST next time this task\n     * gets executed.\n     *\n     * @see Zip#cleanUp\n     */\n    protected void cleanUp() {\n        super.cleanUp();\n\n        if (!doubleFilePass || (doubleFilePass && !skipWriting)) {\n            manifest = null;\n            configuredManifest = savedConfiguredManifest;\n            filesetManifest = null;\n            originalManifest = null;\n        }\n        rootEntries.removeAllElements();\n    }\n\n    /**\n     * reset to default values.\n     *\n     * @see Zip#reset\n     *\n     * @since 1.44, Ant 1.5\n     */\n    public void reset() {\n        super.reset();\n        configuredManifest = null;\n        filesetManifestConfig = null;\n        mergeManifestsMain = false;\n        manifestFile = null;\n        index = false;\n    }\n\n    public static class FilesetManifestConfig extends EnumeratedAttribute {\n        public String[] getValues() {\n            return new String[] {\"skip\", \"merge\", \"mergewithoutmain\"};\n        }\n    }\n\n    /**\n     * Writes the directory entries from the first and the filenames\n     * from the second list to the given writer, one entry per line.\n     *\n     * @since Ant 1.6.2\n     */\n    protected final void writeIndexLikeList(List dirs, List files,\n                                            PrintWriter writer)\n        throws IOException {\n        Collections.sort(dirs);\n        Collections.sort(files);\n        Iterator iter = dirs.iterator();\n        while (iter.hasNext()) {\n            String dir = (String) iter.next();\n\n            dir = dir.replace('\\\\', '/');\n            if (dir.startsWith(\"./\")) {\n                dir = dir.substring(2);\n            }\n            while (dir.startsWith(\"/\")) {\n                dir = dir.substring(1);\n            }\n            int pos = dir.lastIndexOf('/');\n            if (pos != -1) {\n                dir = dir.substring(0, pos);\n            }\n\n            if (dir.startsWith(\"META-INF\")) {\n                continue;\n            }\n            writer.println(dir);\n        }\n\n        iter = files.iterator();\n        while (iter.hasNext()) {\n            writer.println(iter.next());\n        }\n    }\n\n    /**\n     * try to guess the name of the given file.\n     *\n     * <p>If this jar has a classpath attribute in its manifest, we\n     * can assume that it will only require an index of jars listed\n     * there.  try to find which classpath entry is most likely the\n     * one the given file name points to.</p>\n     *\n     * <p>In the absence of a classpath attribute, assume the other\n     * files will be placed inside the same directory as this jar and\n     * use their basename.</p>\n     *\n     * <p>if there is a classpath and the given file doesn't match any\n     * of its entries, return null.</p>\n     *\n     * @since Ant 1.7\n     */\n    protected static final String findJarName(String fileName, \n                                              String[] classpath) {\n        if (classpath == null) {\n            return (new File(fileName)).getName();\n        }\n        fileName = fileName.replace(File.separatorChar, '/');\n        TreeMap matches = new TreeMap(new Comparator() {\n                public int compare(Object o1, Object o2) {\n                    if (o1 instanceof String && o2 instanceof String) {\n                        return ((String) o2).length()\n                            - ((String) o1).length();\n                    }\n                    return 0;\n                }\n            });\n\n        for (int i = 0; i < classpath.length; i++) {\n            if (fileName.endsWith(classpath[i])) {\n                matches.put(classpath[i], classpath[i]);\n            } else {\n                int slash = classpath[i].indexOf(\"/\");\n                String candidate = classpath[i];\n                while (slash > -1) {\n                    candidate = candidate.substring(slash + 1);\n                    if (fileName.endsWith(candidate)) {\n                        matches.put(candidate, classpath[i]);\n                        break;\n                    }\n                    slash = candidate.indexOf(\"/\");\n                }\n            }\n        }\n                        \n        return matches.size() == 0 \n            ? null : (String) matches.get(matches.firstKey());\n    }\n\n    /**\n     * Grab lists of all root-level files and all directories\n     * contained in the given archive.\n     *\n     * @since Ant 1.7\n     */\n    protected static final void grabFilesAndDirs(String file, List dirs, \n                                                 List files)\n        throws IOException {\n        org.apache.tools.zip.ZipFile zf = null;\n        try {\n            zf = new org.apache.tools.zip.ZipFile(file, \"utf-8\");\n            Enumeration entries = zf.getEntries();\n            HashSet dirSet = new HashSet();\n            while (entries.hasMoreElements()) {\n                org.apache.tools.zip.ZipEntry ze = \n                    (org.apache.tools.zip.ZipEntry) entries.nextElement();\n                String name = ze.getName();\n                if (!name.startsWith(\"META-INF/\")) {\n                    if (ze.isDirectory()) {\n                        dirSet.add(name);\n                    } else if (name.indexOf(\"/\") == -1) {\n                        files.add(name);\n                    } else {\n                        dirSet.add(name.substring(0, \n                                                  name.lastIndexOf(\"/\") + 1));\n                    }\n                }\n            }\n            dirs.addAll(dirSet);\n        } finally {\n            if (zf != null) {\n                zf.close();", "functions": [{"function_name": "setWhenempty", "code": "    public void setWhenempty(WhenEmpty we) {\n        log(\"JARs are never empty, they contain at least a manifest file\",\n            Project.MSG_WARN);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setJarfile", "code": "    public void setJarfile(File jarFile) {\n        setDestFile(jarFile);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIndex", "code": "    public void setIndex(boolean flag) {\n        index = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setManifestEncoding", "code": "    public void setManifestEncoding(String manifestEncoding) {\n        this.manifestEncoding = manifestEncoding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addConfiguredManifest", "code": "    public void addConfiguredManifest(Manifest newManifest)\n        throws ManifestException {\n        if (configuredManifest == null) {\n            configuredManifest = newManifest;\n        } else {\n            configuredManifest.merge(newManifest);\n        }\n        savedConfiguredManifest = configuredManifest;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setManifest", "code": "    public void setManifest(File manifestFile) {\n        if (!manifestFile.exists()) {\n            throw new BuildException(\"Manifest file: \" + manifestFile\n                                     + \" does not exist.\", getLocation());\n        }\n\n        this.manifestFile = manifestFile;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getManifest", "code": "    private Manifest getManifest(File manifestFile) {\n\n        Manifest newManifest = null;\n        FileInputStream fis = null;\n        InputStreamReader isr = null;\n        try {\n            fis = new FileInputStream(manifestFile);\n            if (manifestEncoding == null) {\n                isr = new InputStreamReader(fis);\n            } else {\n                isr = new InputStreamReader(fis, manifestEncoding);\n            }\n            newManifest = getManifest(isr);\n        } catch (UnsupportedEncodingException e) {\n            throw new BuildException(\"Unsupported encoding while reading manifest: \"\n                                     + e.getMessage(), e);\n        } catch (IOException e) {\n            throw new BuildException(\"Unable to read manifest file: \"\n                                     + manifestFile\n                                     + \" (\" + e.getMessage() + \")\", e);\n        } finally {\n            if (isr != null) {\n                try {\n                    isr.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n        return newManifest;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CATCH", "CATCH", "IF", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [8, 12], [9, 13], [2, 14], [10, 15], [2, 16], [3, 17], [4, 18], [5, 19], [7, 20], [11, 21], [12, 22], [13, 23], [14, 24], [15, 25], [16, 26], [20, 27], [22, 28], [23, 29], [10, 30], [10, 31], [20, 32], [28, 33], [28, 34], [29, 35], [29, 36], [30, 37], [31, 38], [34, 39], [34, 40], [40, 41], [40, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 8], [13, 9], [14, 2], [15, 10], [16, 2], [17, 3], [18, 4], [19, 5], [20, 7], [21, 11], [22, 12], [23, 13], [24, 14], [25, 15], [26, 16], [27, 20], [28, 22], [29, 23], [30, 10], [31, 10], [32, 20], [33, 28], [34, 28], [35, 29], [36, 29], [37, 30], [38, 31], [39, 34], [40, 34], [41, 40], [42, 40], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "getManifestFromJar", "code": "    private Manifest getManifestFromJar(File jarFile) throws IOException {\n        ZipFile zf = null;\n        try {\n            zf = new ZipFile(jarFile);\n\n            Enumeration e = zf.entries();\n            while (e.hasMoreElements()) {\n                ZipEntry ze = (ZipEntry) e.nextElement();\n                if (ze.getName().equalsIgnoreCase(MANIFEST_NAME)) {\n                    InputStreamReader isr =\n                        new InputStreamReader(zf.getInputStream(ze), \"UTF-8\");\n                    return getManifest(isr);\n                }\n            }\n            return null;\n        } finally {\n            if (zf != null) {\n                try {\n                    zf.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "IF", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CATCH", "CALL", "CALL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [1, 11], [2, 12], [4, 13], [8, 14], [6, 15], [6, 16], [7, 17], [11, 18], [13, 19], [15, 20], [13, 21], [15, 22], [15, 23], [20, 24], [22, 25], [16, 26], [23, 27], [27, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 1], [12, 2], [13, 4], [14, 8], [15, 6], [16, 6], [17, 7], [18, 11], [19, 13], [20, 15], [21, 13], [22, 15], [23, 15], [24, 20], [25, 22], [26, 16], [27, 23], [28, 27], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getManifest", "code": "    private Manifest getManifest(Reader r) {\n\n        Manifest newManifest = null;\n        try {\n            newManifest = new Manifest(r);\n        } catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest: \" + manifestFile,\n                                     e, getLocation());\n        } catch (IOException e) {\n            throw new BuildException(\"Unable to read manifest file\"\n                                     + \" (\" + e.getMessage() + \")\", e);\n        }\n        return newManifest;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "CATCH", "CATCH", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [6, 8], [2, 9], [3, 10], [7, 11], [8, 12], [6, 13], [9, 14], [11, 15], [12, 16], [12, 17], [13, 18], [15, 19], [15, 20], [17, 21], [18, 22], [18, 23], [20, 24], [20, 25], [25, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 6], [9, 2], [10, 3], [11, 7], [12, 8], [13, 6], [14, 9], [15, 11], [16, 12], [17, 12], [18, 13], [19, 15], [20, 15], [21, 17], [22, 18], [23, 18], [24, 20], [25, 20], [26, 25], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "setFilesetmanifest", "code": "    public void setFilesetmanifest(FilesetManifestConfig config) {\n        filesetManifestConfig = config;\n        mergeManifestsMain = \"merge\".equals(config.getValue());\n\n        if (filesetManifestConfig != null\n            && !filesetManifestConfig.getValue().equals(\"skip\")) {\n\n            doubleFilePass = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [3, 6], [3, 7], [4, 8], [1, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [12, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 3], [7, 3], [8, 4], [9, 1], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "addMetainf", "code": "    public void addMetainf(ZipFileSet fs) {\n        fs.setPrefix(\"META-INF/\");\n        super.addFileset(fs);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addConfiguredIndexJars", "code": "    public void addConfiguredIndexJars(Path p) {\n        if (indexJars == null) {\n            indexJars = new Path(getProject());\n        }\n        indexJars.append(p);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "initZipOutputStream", "code": "    protected void initZipOutputStream(ZipOutputStream zOut)\n        throws IOException, BuildException {\n\n        if (!skipWriting) {\n            Manifest jarManifest = createManifest();\n            writeManifest(zOut, jarManifest);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createManifest", "code": "    private Manifest createManifest()\n        throws BuildException {\n        try {\n            Manifest finalManifest = Manifest.getDefaultManifest();\n\n            if (manifest == null) {\n                if (manifestFile != null) {\n                    manifest = getManifest(manifestFile);\n                }\n            }\n\n            /*\n             * Precedence: manifestFile wins over inline manifest,\n             * over manifests read from the filesets over the original\n             * manifest.\n             *\n             * merge with null argument is a no-op\n             */\n\n            if (isInUpdateMode()) {\n                finalManifest.merge(originalManifest);\n            }\n            finalManifest.merge(filesetManifest);\n            finalManifest.merge(configuredManifest);\n            finalManifest.merge(manifest, !mergeManifestsMain);\n\n            return finalManifest;\n\n        } catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest\", e, getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "IF", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [1, 8], [1, 9], [1, 10], [4, 11], [5, 12], [7, 13], [2, 14], [5, 15], [12, 16], [6, 17], [13, 18], [13, 19], [14, 20], [4, 21], [15, 22], [20, 23], [20, 24], [22, 25], [15, 26], [26, 27], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 1], [9, 1], [10, 1], [11, 4], [12, 5], [13, 7], [14, 2], [15, 5], [16, 12], [17, 6], [18, 13], [19, 13], [20, 14], [21, 4], [22, 15], [23, 20], [24, 20], [25, 22], [26, 15], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "writeManifest", "code": "    private void writeManifest(ZipOutputStream zOut, Manifest manifest)\n        throws IOException {\n        for (Enumeration e = manifest.getWarnings();\n             e.hasMoreElements();) {\n            log(\"Manifest warning: \" + (String) e.nextElement(),\n                Project.MSG_WARN);\n        }\n\n        zipDir(null, zOut, \"META-INF/\", ZipFileSet.DEFAULT_DIR_MODE,\n               JAR_MARKER);\n        ByteArrayOutputStream baos = new ByteArrayOutputStream();\n        OutputStreamWriter osw = new OutputStreamWriter(baos, \"UTF-8\");\n        PrintWriter writer = new PrintWriter(osw);\n        manifest.write(writer);\n        writer.flush();\n\n        ByteArrayInputStream bais =\n            new ByteArrayInputStream(baos.toByteArray());\n        super.zipFile(bais, zOut, MANIFEST_NAME,\n                      System.currentTimeMillis(), null,\n                      ZipFileSet.DEFAULT_FILE_MODE);\n        super.initZipOutputStream(zOut);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [5, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [4, 17], [10, 18], [10, 19], [14, 20], [16, 21], [5, 22], [5, 23], [22, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 5], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 4], [18, 10], [19, 10], [20, 14], [21, 16], [22, 5], [23, 5], [24, 22], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "finalizeZipOutputStream", "code": "    protected void finalizeZipOutputStream(ZipOutputStream zOut)\n        throws IOException, BuildException {\n\n        if (index) {\n            createIndexList(zOut);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createIndexList", "code": "    private void createIndexList(ZipOutputStream zOut) throws IOException {\n        ByteArrayOutputStream baos = new ByteArrayOutputStream();\n        PrintWriter writer = new PrintWriter(new OutputStreamWriter(baos,\n                                                                    \"UTF8\"));\n\n        writer.println(\"JarIndex-Version: 1.0\");\n        writer.println();\n\n        writer.println(zipFile.getName());\n\n        writeIndexLikeList(new ArrayList(addedDirs.keySet()), \n                           rootEntries, writer);\n        writer.println();\n\n        if (indexJars != null) {\n            Manifest mf = createManifest();\n            Manifest.Attribute classpath =\n                mf.getMainSection().getAttribute(Manifest.ATTRIBUTE_CLASSPATH);\n            String[] cpEntries = null;\n            if (classpath != null) {\n                StringTokenizer tok = new StringTokenizer(classpath.getValue(),\n                                                          \" \");\n                cpEntries = new String[tok.countTokens()];\n                int c = 0;\n                while (tok.hasMoreTokens()) {\n                    cpEntries[c++] = tok.nextToken();\n                }\n            }\n            String[] indexJarEntries = indexJars.list();\n            for (int i = 0; i < indexJarEntries.length; i++) {\n                String name = findJarName(indexJarEntries[i], cpEntries);\n                if (name != null) {\n                    ArrayList dirs = new ArrayList();\n                    ArrayList files = new ArrayList();\n                    grabFilesAndDirs(indexJarEntries[i], dirs, files);\n                    if (dirs.size() + files.size() > 0) {\n                        writer.println(name);\n                        writeIndexLikeList(dirs, files, writer);\n                        writer.println();\n                    }\n                }\n            }\n        }\n\n        writer.flush();\n        ByteArrayInputStream bais =\n            new ByteArrayInputStream(baos.toByteArray());\n        super.zipFile(bais, zOut, INDEX_NAME, System.currentTimeMillis(), null,\n                      ZipFileSet.DEFAULT_FILE_MODE);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [7, 22], [9, 23], [10, 24], [12, 25], [3, 26], [4, 27], [15, 28], [16, 29], [18, 30], [23, 31], [26, 32], [16, 33], [16, 34], [17, 35], [18, 36], [18, 37], [18, 38], [30, 39], [19, 40], [20, 41], [21, 42], [32, 43], [33, 44], [16, 45], [36, 46], [18, 47], [41, 48], [33, 49], [33, 50], [33, 51], [44, 52], [34, 53], [37, 54], [38, 55], [49, 56], [33, 57], [36, 58], [47, 59], [55, 60], [55, 61], [56, 62], [56, 63], [50, 64], [51, 65], [58, 66], [49, 67], [49, 68], [49, 69], [63, 70], [63, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 7], [23, 9], [24, 10], [25, 12], [26, 3], [27, 4], [28, 15], [29, 16], [30, 18], [31, 23], [32, 26], [33, 16], [34, 16], [35, 17], [36, 18], [37, 18], [38, 18], [39, 30], [40, 19], [41, 20], [42, 21], [43, 32], [44, 33], [45, 16], [46, 36], [47, 18], [48, 41], [49, 33], [50, 33], [51, 33], [52, 44], [53, 34], [54, 37], [55, 38], [56, 49], [57, 33], [58, 36], [59, 47], [60, 55], [61, 55], [62, 56], [63, 56], [64, 50], [65, 51], [66, 58], [67, 49], [68, 49], [69, 49], [70, 63], [71, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "zipFile", "code": "    protected void zipFile(InputStream is, ZipOutputStream zOut, String vPath,\n                           long lastModified, File fromArchive, int mode)\n        throws IOException {\n        if (MANIFEST_NAME.equalsIgnoreCase(vPath))  {\n            if (!doubleFilePass || (doubleFilePass && skipWriting)) {\n                filesetManifest(fromArchive, is);\n            }\n        } else if (INDEX_NAME.equalsIgnoreCase(vPath) && index) {\n            log(\"Warning: selected \" + archiveType\n                + \" files include a META-INF/INDEX.LIST which will\"\n                + \" be replaced by a newly generated one.\", Project.MSG_WARN);\n        } else {\n            if (index && vPath.indexOf(\"/\") == -1) {\n                rootEntries.addElement(vPath);\n            }\n            super.zipFile(is, zOut, vPath, lastModified, fromArchive, mode);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "CALL", "BINARY_OP", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [1, 11], [8, 12], [10, 13], [11, 14], [12, 15], [8, 16], [14, 17], [15, 18], [16, 19], [11, 20], [12, 21], [18, 22], [18, 23], [19, 24], [19, 25], [23, 26], [25, 27], [25, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 1], [12, 8], [13, 10], [14, 11], [15, 12], [16, 8], [17, 14], [18, 15], [19, 16], [20, 11], [21, 12], [22, 18], [23, 18], [24, 19], [25, 19], [26, 23], [27, 25], [28, 25], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "filesetManifest", "code": "    private void filesetManifest(File file, InputStream is) throws IOException {\n        if (manifestFile != null && manifestFile.equals(file)) {\n            log(\"Found manifest \" + file, Project.MSG_VERBOSE);\n            try {\n                if (is != null) {\n                    InputStreamReader isr;\n                    if (manifestEncoding == null) {\n                        isr = new InputStreamReader(is);\n                    } else {\n                        isr = new InputStreamReader(is, manifestEncoding);\n                    }\n                    manifest = getManifest(isr);\n                } else {\n                    manifest = getManifest(file);\n                }\n            } catch (UnsupportedEncodingException e) {\n                throw new BuildException(\"Unsupported encoding while reading \"\n                    + \"manifest: \" + e.getMessage(), e);\n            }\n        } else if (filesetManifestConfig != null\n                    && !filesetManifestConfig.getValue().equals(\"skip\")) {\n            log(\"Found manifest to merge in file \" + file,\n                Project.MSG_VERBOSE);\n\n            try {\n                Manifest newManifest = null;\n                if (is != null) {\n                    InputStreamReader isr;\n                    if (manifestEncoding == null) {\n                        isr = new InputStreamReader(is);\n                    } else {\n                        isr = new InputStreamReader(is, manifestEncoding);\n                    }\n                    newManifest = getManifest(isr);\n                } else {\n                    newManifest = getManifest(file);\n                }\n\n                if (filesetManifest == null) {\n                    filesetManifest = newManifest;\n                } else {\n                    filesetManifest.merge(newManifest);\n                }\n            } catch (UnsupportedEncodingException e) {\n                throw new BuildException(\"Unsupported encoding while reading \"\n                    + \"manifest: \" + e.getMessage(), e);\n            } catch (ManifestException e) {\n                log(\"Manifest in file \" + file + \" is invalid: \"\n                    + e.getMessage(), Project.MSG_ERR);\n                throw new BuildException(\"Invalid Manifest\", e, getLocation());\n            }\n        } else {", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "TRY", "CALL", "BINARY_OP", "TRY", "CALL", "BINARY_OP", "CATCH", "IF", "CALL", "LITERAL_ANCHOR", "CATCH", "CATCH", "IF", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [5, 9], [4, 10], [6, 11], [6, 12], [7, 13], [7, 14], [1, 15], [9, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [4, 22], [11, 23], [12, 24], [13, 25], [14, 26], [15, 27], [17, 28], [18, 29], [19, 30], [20, 31], [22, 32], [23, 33], [25, 34], [14, 35], [14, 36], [26, 37], [27, 38], [28, 39], [17, 40], [29, 41], [30, 42], [20, 43], [20, 44], [31, 45], [21, 46], [32, 47], [34, 48], [14, 49], [14, 50], [35, 51], [39, 52], [39, 53], [40, 54], [41, 55], [19, 56], [19, 57], [20, 58], [20, 59], [43, 60], [48, 61], [48, 62], [49, 63], [50, 64], [51, 65], [54, 66], [54, 67], [55, 68], [55, 69], [58, 70], [59, 71], [60, 72], [62, 73], [62, 74], [35, 75], [35, 76], [67, 77], [67, 78], [69, 79], [69, 80], [43, 81], [43, 82], [75, 83], [76, 84], [78, 85], [81, 86], [82, 87], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 5], [10, 4], [11, 6], [12, 6], [13, 7], [14, 7], [15, 1], [16, 9], [17, 10], [18, 10], [19, 10], [20, 10], [21, 10], [22, 4], [23, 11], [24, 12], [25, 13], [26, 14], [27, 15], [28, 17], [29, 18], [30, 19], [31, 20], [32, 22], [33, 23], [34, 25], [35, 14], [36, 14], [37, 26], [38, 27], [39, 28], [40, 17], [41, 29], [42, 30], [43, 20], [44, 20], [45, 31], [46, 21], [47, 32], [48, 34], [49, 14], [50, 14], [51, 35], [52, 39], [53, 39], [54, 40], [55, 41], [56, 19], [57, 19], [58, 20], [59, 20], [60, 43], [61, 48], [62, 48], [63, 49], [64, 50], [65, 51], [66, 54], [67, 54], [68, 55], [69, 55], [70, 58], [71, 59], [72, 60], [73, 62], [74, 62], [75, 35], [76, 35], [77, 67], [78, 67], [79, 69], [80, 69], [81, 43], [82, 43], [83, 75], [84, 76], [85, 78], [86, 81], [87, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}, {"function_name": "getResourcesToAdd", "code": "    protected ArchiveState getResourcesToAdd(FileSet[] filesets,\n                                             File zipFile,\n                                             boolean needsUpdate)\n        throws BuildException {\n\n        if (zipFile.exists()) {\n\n            try {\n                originalManifest = getManifestFromJar(zipFile);\n                if (originalManifest == null) {\n                    log(\"Updating jar since the current jar has no manifest\",\n                        Project.MSG_VERBOSE);\n                    needsUpdate = true;\n                } else {\n                    Manifest mf = createManifest();\n                    if (!mf.equals(originalManifest)) {\n                        log(\"Updating jar since jar manifest has changed\",\n                            Project.MSG_VERBOSE);\n                        needsUpdate = true;\n                    }\n                }\n            } catch (Throwable t) {\n                log(\"error while reading original manifest: \" + t.getMessage(),\n                    Project.MSG_WARN);\n                needsUpdate = true;\n            }\n\n        } else {\n            needsUpdate = true;\n        }\n\n        createEmpty = needsUpdate;\n        return super.getResourcesToAdd(filesets, zipFile, needsUpdate);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "TRY", "ASSIGN", "CATCH", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [8, 10], [8, 11], [9, 12], [11, 13], [8, 14], [10, 15], [10, 16], [11, 17], [11, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [11, 24], [11, 25], [22, 26], [22, 27], [18, 28], [24, 29], [25, 30], [17, 31], [17, 32], [31, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 8], [11, 8], [12, 9], [13, 11], [14, 8], [15, 10], [16, 10], [17, 11], [18, 11], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 11], [25, 11], [26, 22], [27, 22], [28, 18], [29, 24], [30, 25], [31, 17], [32, 17], [33, 31], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "createEmptyZip", "code": "    protected boolean createEmptyZip(File zipFile) throws BuildException {\n        if (!createEmpty) {\n            return true;\n        }\n\n        ZipOutputStream zOut = null;\n        try {\n            log(\"Building MANIFEST-only jar: \"\n                + getDestFile().getAbsolutePath());\n            zOut = new ZipOutputStream(new FileOutputStream(getDestFile()));\n\n            zOut.setEncoding(getEncoding());\n            if (isCompress()) {\n                zOut.setMethod(ZipOutputStream.DEFLATED);\n            } else {\n                zOut.setMethod(ZipOutputStream.STORED);\n            }\n            initZipOutputStream(zOut);\n            finalizeZipOutputStream(zOut);\n        } catch (IOException ioe) {\n            throw new BuildException(\"Could not create almost empty JAR archive\"\n                                     + \" (\" + ioe.getMessage() + \")\", ioe,\n                                     getLocation());\n        } finally {\n            try {\n                if (zOut != null) {\n                    zOut.close();\n                }\n            } catch (IOException ex) {\n            }\n            createEmpty = false;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "TRY", "CATCH", "IF", "ASSIGN", "CATCH", "IF", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [7, 12], [8, 13], [2, 14], [2, 15], [9, 16], [2, 17], [2, 18], [2, 19], [3, 20], [4, 21], [10, 22], [12, 23], [13, 24], [17, 25], [18, 26], [19, 27], [21, 28], [23, 29], [24, 30], [24, 31], [9, 32], [9, 33], [26, 34], [27, 35], [27, 36], [12, 37], [31, 38], [31, 39], [34, 40], [35, 41], [39, 42], [39, 43], [43, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 7], [13, 8], [14, 2], [15, 2], [16, 9], [17, 2], [18, 2], [19, 2], [20, 3], [21, 4], [22, 10], [23, 12], [24, 13], [25, 17], [26, 18], [27, 19], [28, 21], [29, 23], [30, 24], [31, 24], [32, 9], [33, 9], [34, 26], [35, 27], [36, 27], [37, 12], [38, 31], [39, 31], [40, 34], [41, 35], [42, 39], [43, 39], [44, 43], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "cleanUp", "code": "    protected void cleanUp() {\n        super.cleanUp();\n\n        if (!doubleFilePass || (doubleFilePass && !skipWriting)) {\n            manifest = null;\n            configuredManifest = savedConfiguredManifest;\n            filesetManifest = null;\n            originalManifest = null;\n        }\n        rootEntries.removeAllElements();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [6, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 6], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "reset", "code": "    public void reset() {\n        super.reset();\n        configuredManifest = null;\n        filesetManifestConfig = null;\n        mergeManifestsMain = false;\n        manifestFile = null;\n        index = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "writeIndexLikeList", "code": "    protected final void writeIndexLikeList(List dirs, List files,\n                                            PrintWriter writer)\n        throws IOException {\n        Collections.sort(dirs);\n        Collections.sort(files);\n        Iterator iter = dirs.iterator();\n        while (iter.hasNext()) {\n            String dir = (String) iter.next();\n\n            dir = dir.replace('\\\\', '/');\n            if (dir.startsWith(\"./\")) {\n                dir = dir.substring(2);\n            }\n            while (dir.startsWith(\"/\")) {\n                dir = dir.substring(1);\n            }\n            int pos = dir.lastIndexOf('/');\n            if (pos != -1) {\n                dir = dir.substring(0, pos);\n            }\n\n            if (dir.startsWith(\"META-INF\")) {\n                continue;\n            }\n            writer.println(dir);\n        }\n\n        iter = files.iterator();\n        while (iter.hasNext()) {\n            writer.println(iter.next());", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [0, 10], [0, 11], [8, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [3, 19], [1, 20], [2, 21], [13, 22], [14, 23], [16, 24], [17, 25], [2, 26], [20, 27], [13, 28], [22, 29], [23, 30], [15, 31], [24, 32], [25, 33], [26, 34], [14, 35], [31, 36], [16, 37], [17, 38], [34, 39], [34, 40], [18, 41], [35, 42], [37, 43], [38, 44], [42, 45], [43, 46], [44, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 0], [11, 0], [12, 8], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 3], [20, 1], [21, 2], [22, 13], [23, 14], [24, 16], [25, 17], [26, 2], [27, 20], [28, 13], [29, 22], [30, 23], [31, 15], [32, 24], [33, 25], [34, 26], [35, 14], [36, 31], [37, 16], [38, 17], [39, 34], [40, 34], [41, 18], [42, 35], [43, 37], [44, 38], [45, 42], [46, 43], [47, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "findJarName", "code": "    protected static final String findJarName(String fileName, \n                                              String[] classpath) {\n        if (classpath == null) {\n            return (new File(fileName)).getName();\n        }\n        fileName = fileName.replace(File.separatorChar, '/');\n        TreeMap matches = new TreeMap(new Comparator() {\n                public int compare(Object o1, Object o2) {\n                    if (o1 instanceof String && o2 instanceof String) {\n                        return ((String) o2).length()\n                            - ((String) o1).length();\n                    }\n                    return 0;\n                }\n            });\n\n        for (int i = 0; i < classpath.length; i++) {\n            if (fileName.endsWith(classpath[i])) {\n                matches.put(classpath[i], classpath[i]);\n            } else {\n                int slash = classpath[i].indexOf(\"/\");\n                String candidate = classpath[i];\n                while (slash > -1) {\n                    candidate = candidate.substring(slash + 1);\n                    if (fileName.endsWith(candidate)) {\n                        matches.put(candidate, classpath[i]);\n                        break;\n                    }\n                    slash = candidate.indexOf(\"/\");\n                }\n            }\n        }\n                        \n        return matches.size() == 0 \n            ? null : (String) matches.get(matches.firstKey());", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "FUNC_DECL", "CALL", "BINARY_OP", "CALL", "RETURN", "IF", "PARAM", "PARAM", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [4, 10], [7, 11], [7, 12], [2, 13], [3, 14], [9, 15], [4, 16], [10, 17], [7, 18], [12, 19], [12, 20], [13, 21], [2, 22], [14, 23], [15, 24], [16, 25], [18, 26], [13, 27], [13, 28], [13, 29], [23, 30], [25, 31], [27, 32], [13, 33], [30, 34], [30, 35], [30, 36], [30, 37], [27, 38], [32, 39], [34, 40], [35, 41], [27, 42], [38, 43], [27, 44], [29, 45], [35, 46], [41, 47], [41, 48], [42, 49], [38, 50], [44, 51], [45, 52], [46, 53], [49, 54], [38, 55], [51, 56], [56, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 4], [11, 7], [12, 7], [13, 2], [14, 3], [15, 9], [16, 4], [17, 10], [18, 7], [19, 12], [20, 12], [21, 13], [22, 2], [23, 14], [24, 15], [25, 16], [26, 18], [27, 13], [28, 13], [29, 13], [30, 23], [31, 25], [32, 27], [33, 13], [34, 30], [35, 30], [36, 30], [37, 30], [38, 27], [39, 32], [40, 34], [41, 35], [42, 27], [43, 38], [44, 27], [45, 29], [46, 35], [47, 41], [48, 41], [49, 42], [50, 38], [51, 44], [52, 45], [53, 46], [54, 49], [55, 38], [56, 51], [57, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "grabFilesAndDirs", "code": "    protected static final void grabFilesAndDirs(String file, List dirs, \n                                                 List files)\n        throws IOException {\n        org.apache.tools.zip.ZipFile zf = null;\n        try {\n            zf = new org.apache.tools.zip.ZipFile(file, \"utf-8\");\n            Enumeration entries = zf.getEntries();\n            HashSet dirSet = new HashSet();\n            while (entries.hasMoreElements()) {\n                org.apache.tools.zip.ZipEntry ze = \n                    (org.apache.tools.zip.ZipEntry) entries.nextElement();\n                String name = ze.getName();\n                if (!name.startsWith(\"META-INF/\")) {\n                    if (ze.isDirectory()) {\n                        dirSet.add(name);\n                    } else if (name.indexOf(\"/\") == -1) {\n                        files.add(name);\n                    } else {\n                        dirSet.add(name.substring(0, \n                                                  name.lastIndexOf(\"/\") + 1));\n                    }\n                }\n            }\n            dirs.addAll(dirSet);\n        } finally {\n            if (zf != null) {\n                zf.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [1, 11], [7, 12], [1, 13], [2, 14], [10, 15], [7, 16], [7, 17], [7, 18], [8, 19], [9, 20], [13, 21], [6, 22], [16, 23], [21, 24], [16, 25], [23, 26], [17, 27], [25, 28], [25, 29], [18, 30], [28, 31], [31, 32], [31, 33], [25, 34], [28, 35], [28, 36], [33, 37], [35, 38], [38, 39], [38, 40], [39, 41], [39, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 1], [12, 7], [13, 1], [14, 2], [15, 10], [16, 7], [17, 7], [18, 7], [19, 8], [20, 9], [21, 13], [22, 6], [23, 16], [24, 21], [25, 16], [26, 23], [27, 17], [28, 25], [29, 25], [30, 18], [31, 28], [32, 31], [33, 31], [34, 25], [35, 28], [36, 28], [37, 33], [38, 35], [39, 38], [40, 38], [41, 39], [42, 39], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "Jar", "code": "    public Jar() {\n        super();\n        archiveType = \"jar\";\n        emptyBehavior = \"create\";\n        setEncoding(\"UTF8\");\n        rootEntries = new Vector();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "camel-1.4-2499", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/CamelContext.java", "language": "java", "name": "org.apache.camel.CamelContext", "code": "public interface CamelContext extends Service {\n\n    /**\n     * Gets the name of the this context.\n     */\n    String getName();\n\n\n    /**\n     * Adds a component to the context.\n     */\n    void addComponent(String componentName, Component component);\n\n    /**\n     * Gets a component from the context by name.\n     */\n    Component getComponent(String componentName);\n\n    /**\n     * Gets a component from the context by name and specifying the expected type of component.\n     */\n    <T extends Component> T getComponent(String name, Class<T> componentType);\n\n    /**\n     * Removes a previously added component.\n     *\n     * @param componentName\n     * @return the previously added component or null if it had not been previously added.\n     */\n    Component removeComponent(String componentName);\n\n    /**\n     * Gets the a previously added component by name or lazily creates the component\n     * using the factory Callback.\n     *\n     * @param componentName the name of the component\n     * @param factory       used to create a new component instance if the component was not previously added.\n     * @return the component\n     */\n    Component getOrCreateComponent(String componentName, Callable<Component> factory);\n\n\n    /**\n     * Resolves the given URI to an {@link Endpoint}.  If the URI has a singleton endpoint\n     * registered, then the singleton is returned.  Otherwise, a new {@link Endpoint} is created\n     * and if the endpoint is a singleton it is registered as a singleton endpoint.\n     */\n    Endpoint getEndpoint(String uri);\n\n    /**\n     * Resolves the given URI to an {@link Endpoint} of the specified type.\n     * If the URI has a singleton endpoint registered, then the singleton is returned.\n     * Otherwise, a new {@link Endpoint} is created and if the endpoint is a\n     * singleton it is registered as a singleton endpoint.\n     */\n    <T extends Endpoint> T getEndpoint(String name, Class<T> endpointType);\n\n    /**\n     * Returns the collection of all registered singleton endpoints.\n     */\n    Collection<Endpoint> getSingletonEndpoints();\n\n    /**\n     * Adds the endpoint to the context using the given URI.  The endpoint will be registered as a singleton.\n     *\n     * @param uri the URI to be used to resolve this endpoint\n     * @param endpoint the endpoint to be added to the context\n     * @return the old endpoint that was previously registered to the context if there was\n     * already an endpoint for that URI\n     * @throws Exception if the new endpoint could not be started or the old endpoint could not be stopped\n     */\n    Endpoint addSingletonEndpoint(String uri, Endpoint endpoint) throws Exception;\n\n    /**\n     * Removes the singleton endpoint with the given URI\n     *\n     * @param uri the URI to be used to remove\n     * @return the endpoint that was removed or null if there is no endpoint for this URI\n     * @throws Exception if endpoint could not be stopped\n     */\n    Endpoint removeSingletonEndpoint(String uri) throws Exception;\n\n\n\n    /**\n     * Returns a list of the current route definitions\n     */\n    List<RouteType> getRouteDefinitions();\n\n    /**\n     * Returns the current routes in this context\n     */\n    List<Route> getRoutes();\n\n    /**\n     * Sets the routes for this context, replacing any current routes\n     *\n     * @param routes the new routes to use\n     */\n    void setRoutes(List<Route> routes);\n\n    /**\n     * Adds a collection of routes to this context\n     *\n     * @param routes the routes to add\n     */\n    void addRoutes(Collection<Route> routes) throws Exception;\n\n    /**\n     * Adds a collection of routes to this context using the given builder\n     * to build them\n     *\n     * @param builder the builder which will create the routes and add them to this context\n     * @throws Exception if the routes could not be created for whatever reason\n     */\n    void addRoutes(Routes builder) throws Exception;\n\n    /**\n     * Adds a collection of route definitions to the context\n     */\n    void addRouteDefinitions(Collection<RouteType> routeDefinitions) throws Exception;\n\n\n\n    /**\n     * Returns the converter of exchanges from one type to another\n     */\n    ExchangeConverter getExchangeConverter();\n\n    /**\n     * Returns the type converter used to coerce types from one type to another\n     */\n    TypeConverter getTypeConverter();\n\n    /**\n     * Returns the registry used to lookup components by name and type such as the Spring ApplicationContext,\n     * JNDI or the OSGi Service Registry\n     */\n    Registry getRegistry();\n\n    /**\n     * Returns the injector used to instantiate objects by type\n     */\n    Injector getInjector();\n\n    /**\n     * Returns the lifecycle strategy used to handle lifecycle notification\n     */\n    LifecycleStrategy getLifecycleStrategy();\n\n    /**\n     * Resolves a language for creating expressions\n     */\n    Language resolveLanguage(String language);\n\n    /**\n     * Creates a new ProducerTemplate\n     */\n    <E extends Exchange> ProducerTemplate<E> createProducerTemplate();\n\n    void addInterceptStrategy(InterceptStrategy interceptStrategy);", "functions": [{"function_name": "getName", "code": "    String getName();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "addComponent", "code": "    void addComponent(String componentName, Component component);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getComponent", "code": "    Component getComponent(String componentName);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getComponent", "code": "    <T extends Component> T getComponent(String name, Class<T> componentType);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeComponent", "code": "    Component removeComponent(String componentName);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOrCreateComponent", "code": "    Component getOrCreateComponent(String componentName, Callable<Component> factory);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndpoint", "code": "    Endpoint getEndpoint(String uri);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEndpoint", "code": "    <T extends Endpoint> T getEndpoint(String name, Class<T> endpointType);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSingletonEndpoints", "code": "    Collection<Endpoint> getSingletonEndpoints();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "addSingletonEndpoint", "code": "    Endpoint addSingletonEndpoint(String uri, Endpoint endpoint) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeSingletonEndpoint", "code": "    Endpoint removeSingletonEndpoint(String uri) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRouteDefinitions", "code": "    List<RouteType> getRouteDefinitions();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getRoutes", "code": "    List<Route> getRoutes();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setRoutes", "code": "    void setRoutes(List<Route> routes);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addRoutes", "code": "    void addRoutes(Collection<Route> routes) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addRoutes", "code": "    void addRoutes(Routes builder) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addRouteDefinitions", "code": "    void addRouteDefinitions(Collection<RouteType> routeDefinitions) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExchangeConverter", "code": "    ExchangeConverter getExchangeConverter();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getTypeConverter", "code": "    TypeConverter getTypeConverter();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getRegistry", "code": "    Registry getRegistry();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getInjector", "code": "    Injector getInjector();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getLifecycleStrategy", "code": "    LifecycleStrategy getLifecycleStrategy();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "resolveLanguage", "code": "    Language resolveLanguage(String language);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createProducerTemplate", "code": "    <E extends Exchange> ProducerTemplate<E> createProducerTemplate();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "addInterceptStrategy", "code": "    void addInterceptStrategy(InterceptStrategy interceptStrategy);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ant-1.7-799", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/BCFileSet.java", "language": "java", "name": "org.apache.tools.ant.types.resources.BCFileSet", "code": "public class BCFileSet extends FileSet {\n    /**\n     * Default constructor.\n     */\n    public BCFileSet() {\n    }\n\n    /**\n     * Construct a new BCFileSet from the specified FileSet.\n     * @param fs the FileSet from which to inherit config.\n     */\n    public BCFileSet(FileSet fs) {\n        super(fs);\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return an Iterator of Resources.\n     * @since Ant 1.7\n     */\n    public Iterator iterator() {\n        if (isReference()) {\n            return ((FileSet) getRef(getProject())).iterator();\n        }\n        FileResourceIterator result = new FileResourceIterator(getDir());\n        result.addFiles(getDirectoryScanner().getIncludedFiles());\n        result.addFiles(getDirectoryScanner().getIncludedDirectories());\n        return result;\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return number of elements as int.\n     * @since Ant 1.7\n     */\n    public int size() {\n        if (isReference()) {\n            return ((FileSet) getRef(getProject())).size();\n        }\n        return getDirectoryScanner().getIncludedFilesCount()\n            + getDirectoryScanner().getIncludedDirsCount();", "functions": [{"function_name": "iterator", "code": "    public Iterator iterator() {\n        if (isReference()) {\n            return ((FileSet) getRef(getProject())).iterator();\n        }\n        FileResourceIterator result = new FileResourceIterator(getDir());\n        result.addFiles(getDirectoryScanner().getIncludedFiles());\n        result.addFiles(getDirectoryScanner().getIncludedDirectories());\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [5, 8], [2, 9], [3, 10], [7, 11], [8, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 5], [9, 2], [10, 3], [11, 7], [12, 8], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "size", "code": "    public int size() {\n        if (isReference()) {\n            return ((FileSet) getRef(getProject())).size();\n        }\n        return getDirectoryScanner().getIncludedFilesCount()\n            + getDirectoryScanner().getIncludedDirsCount();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [2, 7], [5, 8], [6, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 2], [8, 5], [9, 6], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "BCFileSet", "code": "    public BCFileSet() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "BCFileSet", "code": "    public BCFileSet(FileSet fs) {\n        super(fs);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6827", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/dom/FilterIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.FilterIterator", "code": "public final class FilterIterator extends NodeIteratorBase {\n    private NodeIterator _source;\n    private final Filter _filter;\n    private final boolean _isReverse;\n\t\n    public FilterIterator(NodeIterator source, Filter filter) {\n\t_source = source;\n\t_filter = filter;\n\t_isReverse = source.isReverse();\n    }\n\n    public boolean isReverse() {\n\treturn _isReverse;\n    }\n\n    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);\n    }\n\n    public NodeIterator cloneIterator() {\n\ttry {\n\t    final FilterIterator clone = (FilterIterator)super.clone();\n\t    clone.setRestartable(false);\n\t    clone._source = _source.cloneIterator();\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;\n\t}\n    }\n    \n    public NodeIterator reset() {\n\t_source.reset();\n\treturn resetPosition();\n    }\n    \n    public int next() {\n\tint node;\n\twhile ((node = _source.next()) != END) {\n\t    if (_filter.test(node)) {\n\t\treturn returnNode(node);\n\t    }\n\t}\n\treturn END;\n    }\n\n    public NodeIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(_startNode = node); \n\t    return resetPosition();\n\t}\n\treturn this;\n    }\n\n    public void setMark() {\n\t_source.setMark();\n    }\n\n    public void gotoMark() {\n\t_source.gotoMark();", "functions": [{"function_name": "isReverse", "code": "    public boolean isReverse() {\n\treturn _isReverse;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRestartable", "code": "    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "cloneIterator", "code": "    public NodeIterator cloneIterator() {\n\ttry {\n\t    final FilterIterator clone = (FilterIterator)super.clone();\n\t    clone.setRestartable(false);\n\t    clone._source = _source.cloneIterator();\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "RETURN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [5, 9], [2, 10], [7, 11], [8, 12], [10, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 5], [10, 2], [11, 7], [12, 8], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "reset", "code": "    public NodeIterator reset() {\n\t_source.reset();\n\treturn resetPosition();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "next", "code": "    public int next() {\n\tint node;\n\twhile ((node = _source.next()) != END) {\n\t    if (_filter.test(node)) {\n\t\treturn returnNode(node);\n\t    }\n\t}\n\treturn END;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "ASSIGN", "CALL", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [6, 8], [5, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 6], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setStartNode", "code": "    public NodeIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(_startNode = node); \n\t    return resetPosition();\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_source.setMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_source.gotoMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FilterIterator", "code": "    public FilterIterator(NodeIterator source, Filter filter) {\n\t_source = source;\n\t_filter = filter;\n\t_isReverse = source.isReverse();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "ant-1.7-956", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/PropertyHelper.java", "language": "java", "name": "org.apache.tools.ant.PropertyHelper", "code": "public class PropertyHelper {\n\n    private Project project;\n    private PropertyHelper next;\n\n    /** Project properties map (usually String to String). */\n    private Hashtable properties = new Hashtable();\n\n    /**\n     * Map of \"user\" properties (as created in the Ant task, for example).\n     * Note that these key/value pairs are also always put into the\n     * project properties, so only the project properties need to be queried.\n     * Mapping is String to String.\n     */\n    private Hashtable userProperties = new Hashtable();\n\n    /**\n     * Map of inherited \"user\" properties - that are those \"user\"\n     * properties that have been created by tasks and not been set\n     * from the command line or a GUI tool.\n     * Mapping is String to String.\n     */\n    private Hashtable inheritedProperties = new Hashtable();\n\n    /**\n     * Default constructor.\n     */\n    protected PropertyHelper() {\n    }\n\n\n\n    /**\n     * Set the project for which this helper is performing property resolution.\n     *\n     * @param p the project instance.\n     */\n    public void setProject(Project p) {\n        this.project = p;\n    }\n\n    /**\n     * Get this PropertyHelper's Project.\n     * @return Project\n     */\n    public Project getProject() {\n        return project;\n    }\n\n    /** There are 2 ways to hook into property handling:\n     *  - you can replace the main PropertyHelper. The replacement is required\n     * to support the same semantics (of course :-)\n     *\n     *  - you can chain a property helper capable of storing some properties.\n     *  Again, you are required to respect the immutability semantics (at\n     *  least for non-dynamic properties)\n     *\n     * @param next the next property helper in the chain.\n     */\n    public void setNext(PropertyHelper next) {\n        this.next = next;\n    }\n\n    /**\n     * Get the next property helper in the chain.\n     *\n     * @return the next property helper.\n     */\n    public PropertyHelper getNext() {\n        return next;\n    }\n\n    /**\n     * Factory method to create a property processor.\n     * Users can provide their own or replace it using \"ant.PropertyHelper\"\n     * reference. User tasks can also add themselves to the chain, and provide\n     * dynamic properties.\n     *\n     * @param project the project for which the property helper is required.\n     *\n     * @return the project's property helper.\n     */\n    public static synchronized PropertyHelper getPropertyHelper(Project project) {\n        PropertyHelper helper\n                = (PropertyHelper) project.getReference(MagicNames.REFID_PROPERTY_HELPER);\n        if (helper != null) {\n            return helper;\n        }\n        helper = new PropertyHelper();\n        helper.setProject(project);\n\n        project.addReference(MagicNames.REFID_PROPERTY_HELPER, helper);\n        return helper;\n    }\n\n\n    /**\n     * Sets a property. Any existing property of the same name\n     * is overwritten, unless it is a user property. Will be called\n     * from setProperty().\n     *\n     * If all helpers return false, the property will be saved in\n     * the default properties table by setProperty.\n     *\n     * @param ns   The namespace that the property is in (currently\n     *             not used.\n     * @param name The name of property to set.\n     *             Must not be <code>null</code>.\n     * @param value The new value of the property.\n     *              Must not be <code>null</code>.\n     * @param inherited True if this property is inherited (an [sub]ant[call] property).\n     * @param user      True if this property is a user property.\n     * @param isNew     True is this is a new property.\n     * @return true if this helper has stored the property, false if it\n     *    couldn't. Each helper should delegate to the next one (unless it\n     *    has a good reason not to).\n     */\n    public boolean setPropertyHook(String ns, String name,\n                                   Object value,\n                                   boolean inherited, boolean user,\n                                   boolean isNew) {\n        if (getNext() != null) {\n            boolean subst = getNext().setPropertyHook(ns, name, value, inherited, user, isNew);\n            if (subst) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /** Get a property. If all hooks return null, the default\n     * tables will be used.\n     *\n     * @param ns namespace of the sought property.\n     * @param name name of the sought property.\n     * @param user True if this is a user property.\n     * @return The property, if returned by a hook, or null if none.\n     */\n    public Object getPropertyHook(String ns, String name, boolean user) {\n        if (getNext() != null) {\n            Object o = getNext().getPropertyHook(ns, name, user);\n            if (o != null) {\n                return o;\n            }\n        }\n        if (name.startsWith(\"toString:\")) {\n            name = name.substring(\"toString:\".length());\n            Object v = project.getReference(name);\n            return (v == null) ? null : v.toString();\n        }\n        return null;\n    }\n\n\n    /**\n     * Parses a string containing <code>${xxx}</code> style property\n     * references into two lists. The first list is a collection\n     * of text fragments, while the other is a set of string property names.\n     * <code>null</code> entries in the first list indicate a property\n     * reference from the second list.\n     *\n     * It can be overridden with a more efficient or customized version.\n     *\n     * @param value     Text to parse. Must not be <code>null</code>.\n     * @param fragments List to add text fragments to.\n     *                  Must not be <code>null</code>.\n     * @param propertyRefs List to add property names to.\n     *                     Must not be <code>null</code>.\n     *\n     * @exception BuildException if the string contains an opening\n     *                           <code>${</code> without a closing\n     *                           <code>}</code>\n     */\n    public void parsePropertyString(String value, Vector fragments,\n                                    Vector propertyRefs) throws BuildException {\n        parsePropertyStringDefault(value, fragments, propertyRefs);\n    }\n\n    /**\n     * Replaces <code>${xxx}</code> style constructions in the given value\n     * with the string value of the corresponding data types.\n     *\n     * @param ns    The namespace for the property.\n     * @param value The string to be scanned for property references.\n     *              May be <code>null</code>, in which case this\n     *              method returns immediately with no effect.\n     * @param keys  Mapping (String to String) of property names to their\n     *              values. If <code>null</code>, only project properties will\n     *              be used.\n     *\n     * @exception BuildException if the string contains an opening\n     *                           <code>${</code> without a closing\n     *                           <code>}</code>\n     * @return the original string with the properties replaced, or\n     *         <code>null</code> if the original string is <code>null</code>.\n     */\n    public String replaceProperties(String ns, String value, Hashtable keys) throws BuildException {\n        if (value == null || value.indexOf('$') == -1) {\n            return value;\n        }\n        Vector fragments = new Vector();\n        Vector propertyRefs = new Vector();\n        parsePropertyString(value, fragments, propertyRefs);\n\n        StringBuffer sb = new StringBuffer();\n        Enumeration i = fragments.elements();\n        Enumeration j = propertyRefs.elements();\n\n        while (i.hasMoreElements()) {\n            String fragment = (String) i.nextElement();\n            if (fragment == null) {\n                String propertyName = (String) j.nextElement();\n                Object replacement = null;\n\n                if (keys != null) {\n                    replacement = keys.get(propertyName);\n                }\n                if (replacement == null) {\n                    replacement = getProperty(ns, propertyName);\n                }\n                if (replacement == null) {\n                    project.log(\"Property \\\"\" + propertyName\n                            + \"\\\" has not been set\", Project.MSG_VERBOSE);\n                }\n                fragment = (replacement != null)\n                        ? replacement.toString() : \"${\" + propertyName + \"}\";\n            }\n            sb.append(fragment);\n        }\n        return sb.toString();\n    }\n\n\n    /** Default implementation of setProperty. Will be called from Project.\n     *  This is the original 1.5 implementation, with calls to the hook\n     *  added.\n     *  @param ns      The namespace for the property (currently not used).\n     *  @param name    The name of the property.\n     *  @param value   The value to set the property to.\n     *  @param verbose If this is true output extra log messages.\n     *  @return true if the property is set.\n     */\n    public synchronized boolean setProperty(String ns, String name,\n                                            Object value, boolean verbose) {\n        if (null != userProperties.get(name)) {\n            if (verbose) {\n                project.log(\"Override ignored for user property \\\"\" + name\n                        + \"\\\"\", Project.MSG_VERBOSE);\n            }\n            return false;\n        }\n\n        boolean done = setPropertyHook(ns, name, value, false, false, false);\n        if (done) {\n            return true;\n        }\n\n        if (null != properties.get(name) && verbose) {\n            project.log(\"Overriding previous definition of property \\\"\" + name\n                    + \"\\\"\", Project.MSG_VERBOSE);\n        }\n\n        if (verbose) {\n            project.log(\"Setting project property: \" + name + \" -> \"\n                    + value, Project.MSG_DEBUG);\n        }\n        if (name != null && value != null) {\n            properties.put(name, value);\n        }\n        return true;\n    }\n\n    /**\n     * Sets a property if no value currently exists. If the property\n     * exists already, a message is logged and the method returns with\n     * no other effect.\n     *\n     * @param ns   The namespace for the property (currently not used).\n     * @param name The name of property to set.\n     *             Must not be <code>null</code>.\n     * @param value The new value of the property.\n     *              Must not be <code>null</code>.\n     * @since Ant 1.6\n     */\n    public synchronized void setNewProperty(String ns, String name,\n                                            Object value) {\n        if (null != properties.get(name)) {\n            project.log(\"Override ignored for property \\\"\" + name\n                    + \"\\\"\", Project.MSG_VERBOSE);\n            return;\n        }\n        boolean done = setPropertyHook(ns, name, value, false, false, true);\n        if (done) {\n            return;\n        }\n        project.log(\"Setting project property: \" + name + \" -> \"\n                + value, Project.MSG_DEBUG);\n        if (name != null && value != null) {\n            properties.put(name, value);\n        }\n    }\n\n    /**\n     * Sets a user property, which cannot be overwritten by\n     * set/unset property calls. Any previous value is overwritten.\n     * @param ns   The namespace for the property (currently not used).\n     * @param name The name of property to set.\n     *             Must not be <code>null</code>.\n     * @param value The new value of the property.\n     *              Must not be <code>null</code>.\n     */\n    public synchronized void setUserProperty(String ns, String name,\n                                             Object value) {\n        project.log(\"Setting ro project property: \" + name + \" -> \"\n                + value, Project.MSG_DEBUG);\n        userProperties.put(name, value);\n\n        boolean done = setPropertyHook(ns, name, value, false, true, false);\n        if (done) {\n            return;\n        }\n        properties.put(name, value);\n    }\n\n    /**\n     * Sets an inherited user property, which cannot be overwritten by set/unset\n     * property calls. Any previous value is overwritten. Also marks\n     * these properties as properties that have not come from the\n     * command line.\n     *\n     * @param ns   The namespace for the property (currently not used).\n     * @param name The name of property to set.\n     *             Must not be <code>null</code>.\n     * @param value The new value of the property.\n     *              Must not be <code>null</code>.\n     */\n    public synchronized void setInheritedProperty(String ns, String name,\n                                                  Object value) {\n        inheritedProperties.put(name, value);\n\n        project.log(\"Setting ro project property: \" + name + \" -> \"\n                + value, Project.MSG_DEBUG);\n        userProperties.put(name, value);\n\n        boolean done = setPropertyHook(ns, name, value, true, false, false);\n        if (done) {\n            return;\n        }\n        properties.put(name, value);\n    }\n\n\n    /**\n     * Returns the value of a property, if it is set.  You can override\n     * this method in order to plug your own storage.\n     *\n     * @param ns   The namespace for the property (currently not used).\n     * @param name The name of the property.\n     *             May be <code>null</code>, in which case\n     *             the return value is also <code>null</code>.\n     * @return the property value, or <code>null</code> for no match\n     *         or if a <code>null</code> name is provided.\n     */\n    public synchronized Object getProperty(String ns, String name) {\n        if (name == null) {\n            return null;\n        }\n        Object o = getPropertyHook(ns, name, false);\n        if (o != null) {\n            return o;\n        }\n        return properties.get(name);\n    }\n    /**\n     * Returns the value of a user property, if it is set.\n     *\n     * @param ns   The namespace for the property (currently not used).\n     * @param name The name of the property.\n     *             May be <code>null</code>, in which case\n     *             the return value is also <code>null</code>.\n     * @return the property value, or <code>null</code> for no match\n     *         or if a <code>null</code> name is provided.\n     */\n    public synchronized Object getUserProperty(String ns, String name) {\n        if (name == null) {\n            return null;\n        }\n        Object o = getPropertyHook(ns, name, true);\n        if (o != null) {\n            return o;\n        }\n        return userProperties.get(name);\n    }\n\n\n    /**\n     * Returns a copy of the properties table.\n     * @return a hashtable containing all properties (including user properties).\n     */\n    public Hashtable getProperties() {\n        synchronized (properties) {\n            return new Hashtable(properties);\n        }\n    }\n\n    /**\n     * Returns a copy of the user property hashtable\n     * @return a hashtable containing just the user properties\n     */\n    public Hashtable getUserProperties() {\n        synchronized (userProperties) {\n            return new Hashtable(userProperties);\n        }\n    }\n\n    /**\n     * special back door for subclasses, internal access to the hashtables\n     * @return the live hashtable of all properties\n     */\n    protected Hashtable getInternalProperties() {\n        return properties;\n    }\n\n    /**\n     * special back door for subclasses, internal access to the hashtables\n     *\n     * @return the live hashtable of user properties\n     */\n    protected Hashtable getInternalUserProperties() {\n        return userProperties;\n    }\n\n    /**\n     * special back door for subclasses, internal access to the hashtables\n     *\n     * @return the live hashtable inherited properties\n     */\n    protected Hashtable getInternalInheritedProperties() {\n        return inheritedProperties;\n    }\n\n    /**\n     * Copies all user properties that have not been set on the\n     * command line or a GUI tool from this instance to the Project\n     * instance given as the argument.\n     *\n     * <p>To copy all \"user\" properties, you will also have to call\n     * {@link #copyUserProperties copyUserProperties}.</p>\n     *\n     * @param other the project to copy the properties to.  Must not be null.\n     *\n     * @since Ant 1.6\n     */\n    public void copyInheritedProperties(Project other) {\n        synchronized (inheritedProperties) {\n            Enumeration e = inheritedProperties.keys();\n            while (e.hasMoreElements()) {\n                String arg = e.nextElement().toString();\n                if (other.getUserProperty(arg) != null) {\n                    continue;\n                }\n                Object value = inheritedProperties.get(arg);\n                other.setInheritedProperty(arg, value.toString());\n            }\n        }\n    }\n\n    /**\n     * Copies all user properties that have been set on the command\n     * line or a GUI tool from this instance to the Project instance\n     * given as the argument.\n     *\n     * <p>To copy all \"user\" properties, you will also have to call\n     * {@link #copyInheritedProperties copyInheritedProperties}.</p>\n     *\n     * @param other the project to copy the properties to.  Must not be null.\n     *\n     * @since Ant 1.6\n     */\n    public void copyUserProperties(Project other) {\n        synchronized (userProperties) {\n            Enumeration e = userProperties.keys();\n            while (e.hasMoreElements()) {\n                Object arg = e.nextElement();\n                if (inheritedProperties.containsKey(arg)) {\n                    continue;\n                }\n                Object value = userProperties.get(arg);\n                other.setUserProperty(arg.toString(), value.toString());\n            }\n        }\n    }\n\n\n    /** Default parsing method. It is here only to support backward compatibility\n     * for the static ProjectHelper.parsePropertyString().\n     */\n    static void parsePropertyStringDefault(String value, Vector fragments, Vector propertyRefs)\n            throws BuildException {\n        int prev = 0;\n        int pos;\n        while ((pos = value.indexOf(\"$\", prev)) >= 0) {\n\n            if (pos > 0) {\n                fragments.addElement(value.substring(prev, pos));\n            }\n            if (pos == (value.length() - 1)) {\n                fragments.addElement(\"$\");\n                prev = pos + 1;\n            } else if (value.charAt(pos + 1) != '{') {\n                /*\n                fragments.addElement(value.substring(pos + 1, pos + 2));\n                prev = pos + 2;\n                */\n                if (value.charAt(pos + 1) == '$') {\n                    fragments.addElement(\"$\");\n                    prev = pos + 2;\n                } else {\n                    fragments.addElement(value.substring(pos, pos + 2));\n                    prev = pos + 2;\n                }\n            } else {\n                int endName = value.indexOf('}', pos);\n                if (endName < 0) {\n                    throw new BuildException(\"Syntax error in property: \" + value);\n                }\n                String propertyName = value.substring(pos + 2, endName);\n                fragments.addElement(null);\n                propertyRefs.addElement(propertyName);\n                prev = endName + 1;\n            }\n        }\n        if (prev < value.length()) {\n            fragments.addElement(value.substring(prev));", "functions": [{"function_name": "setProject", "code": "    public void setProject(Project p) {\n        this.project = p;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProject", "code": "    public Project getProject() {\n        return project;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNext", "code": "    public void setNext(PropertyHelper next) {\n        this.next = next;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNext", "code": "    public PropertyHelper getNext() {\n        return next;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPropertyHelper", "code": "    public static synchronized PropertyHelper getPropertyHelper(Project project) {\n        PropertyHelper helper\n                = (PropertyHelper) project.getReference(MagicNames.REFID_PROPERTY_HELPER);\n        if (helper != null) {\n            return helper;\n        }\n        helper = new PropertyHelper();\n        helper.setProject(project);\n\n        project.addReference(MagicNames.REFID_PROPERTY_HELPER, helper);\n        return helper;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [7, 9], [2, 10], [8, 11], [3, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 7], [10, 2], [11, 8], [12, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setPropertyHook", "code": "    public boolean setPropertyHook(String ns, String name,\n                                   Object value,\n                                   boolean inherited, boolean user,\n                                   boolean isNew) {\n        if (getNext() != null) {\n            boolean subst = getNext().setPropertyHook(ns, name, value, inherited, user, isNew);\n            if (subst) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [2, 12], [10, 13], [10, 14], [11, 15], [12, 16], [15, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 2], [13, 10], [14, 10], [15, 11], [16, 12], [17, 15], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getPropertyHook", "code": "    public Object getPropertyHook(String ns, String name, boolean user) {\n        if (getNext() != null) {\n            Object o = getNext().getPropertyHook(ns, name, user);\n            if (o != null) {\n                return o;\n            }\n        }\n        if (name.startsWith(\"toString:\")) {\n            name = name.substring(\"toString:\".length());\n            Object v = project.getReference(name);\n            return (v == null) ? null : v.toString();\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [2, 10], [2, 11], [8, 12], [3, 13], [3, 14], [9, 15], [9, 16], [10, 17], [2, 18], [13, 19], [17, 20], [17, 21], [17, 22], [11, 23], [18, 24], [13, 25], [19, 26], [14, 27], [22, 28], [24, 29], [27, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 2], [11, 2], [12, 8], [13, 3], [14, 3], [15, 9], [16, 9], [17, 10], [18, 2], [19, 13], [20, 17], [21, 17], [22, 17], [23, 11], [24, 18], [25, 13], [26, 19], [27, 14], [28, 22], [29, 24], [30, 27], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "parsePropertyString", "code": "    public void parsePropertyString(String value, Vector fragments,\n                                    Vector propertyRefs) throws BuildException {\n        parsePropertyStringDefault(value, fragments, propertyRefs);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "replaceProperties", "code": "    public String replaceProperties(String ns, String value, Hashtable keys) throws BuildException {\n        if (value == null || value.indexOf('$') == -1) {\n            return value;\n        }\n        Vector fragments = new Vector();\n        Vector propertyRefs = new Vector();\n        parsePropertyString(value, fragments, propertyRefs);\n\n        StringBuffer sb = new StringBuffer();\n        Enumeration i = fragments.elements();\n        Enumeration j = propertyRefs.elements();\n\n        while (i.hasMoreElements()) {\n            String fragment = (String) i.nextElement();\n            if (fragment == null) {\n                String propertyName = (String) j.nextElement();\n                Object replacement = null;\n\n                if (keys != null) {\n                    replacement = keys.get(propertyName);\n                }\n                if (replacement == null) {\n                    replacement = getProperty(ns, propertyName);\n                }\n                if (replacement == null) {\n                    project.log(\"Property \\\"\" + propertyName\n                            + \"\\\" has not been set\", Project.MSG_VERBOSE);\n                }\n                fragment = (replacement != null)\n                        ? replacement.toString() : \"${\" + propertyName + \"}\";\n            }\n            sb.append(fragment);\n        }\n        return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [0, 14], [8, 15], [2, 16], [2, 17], [3, 18], [4, 19], [5, 20], [6, 21], [7, 22], [8, 23], [15, 24], [15, 25], [2, 26], [16, 27], [24, 28], [24, 29], [25, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [27, 36], [29, 37], [16, 38], [31, 39], [32, 40], [33, 41], [17, 42], [38, 43], [39, 44], [40, 45], [41, 46], [34, 47], [43, 48], [43, 49], [43, 50], [31, 51], [32, 52], [33, 53], [35, 54], [48, 55], [48, 56], [50, 57], [51, 58], [52, 59], [53, 60], [56, 61], [58, 62], [58, 63], [63, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 0], [15, 8], [16, 2], [17, 2], [18, 3], [19, 4], [20, 5], [21, 6], [22, 7], [23, 8], [24, 15], [25, 15], [26, 2], [27, 16], [28, 24], [29, 24], [30, 25], [31, 16], [32, 16], [33, 16], [34, 16], [35, 16], [36, 27], [37, 29], [38, 16], [39, 31], [40, 32], [41, 33], [42, 17], [43, 38], [44, 39], [45, 40], [46, 41], [47, 34], [48, 43], [49, 43], [50, 43], [51, 31], [52, 32], [53, 33], [54, 35], [55, 48], [56, 48], [57, 50], [58, 51], [59, 52], [60, 53], [61, 56], [62, 58], [63, 58], [64, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "setProperty", "code": "    public synchronized boolean setProperty(String ns, String name,\n                                            Object value, boolean verbose) {\n        if (null != userProperties.get(name)) {\n            if (verbose) {\n                project.log(\"Override ignored for user property \\\"\" + name\n                        + \"\\\"\", Project.MSG_VERBOSE);\n            }\n            return false;\n        }\n\n        boolean done = setPropertyHook(ns, name, value, false, false, false);\n        if (done) {\n            return true;\n        }\n\n        if (null != properties.get(name) && verbose) {\n            project.log(\"Overriding previous definition of property \\\"\" + name\n                    + \"\\\"\", Project.MSG_VERBOSE);\n        }\n\n        if (verbose) {\n            project.log(\"Setting project property: \" + name + \" -> \"\n                    + value, Project.MSG_DEBUG);\n        }\n        if (name != null && value != null) {\n            properties.put(name, value);\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "RETURN", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [4, 14], [7, 15], [13, 16], [13, 17], [14, 18], [5, 19], [6, 20], [7, 21], [7, 22], [15, 23], [15, 24], [2, 25], [16, 26], [17, 27], [3, 28], [4, 29], [18, 30], [18, 31], [19, 32], [20, 33], [20, 34], [20, 35], [21, 36], [28, 37], [29, 38], [37, 39], [38, 40], [38, 41], [22, 42], [39, 43], [39, 44], [41, 45], [42, 46], [44, 47], [46, 48], [46, 49], [49, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 4], [15, 7], [16, 13], [17, 13], [18, 14], [19, 5], [20, 6], [21, 7], [22, 7], [23, 15], [24, 15], [25, 2], [26, 16], [27, 17], [28, 3], [29, 4], [30, 18], [31, 18], [32, 19], [33, 20], [34, 20], [35, 20], [36, 21], [37, 28], [38, 29], [39, 37], [40, 38], [41, 38], [42, 22], [43, 39], [44, 39], [45, 41], [46, 42], [47, 44], [48, 46], [49, 46], [50, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "setNewProperty", "code": "    public synchronized void setNewProperty(String ns, String name,\n                                            Object value) {\n        if (null != properties.get(name)) {\n            project.log(\"Override ignored for property \\\"\" + name\n                    + \"\\\"\", Project.MSG_VERBOSE);\n            return;\n        }\n        boolean done = setPropertyHook(ns, name, value, false, false, true);\n        if (done) {\n            return;\n        }\n        project.log(\"Setting project property: \" + name + \" -> \"\n                + value, Project.MSG_DEBUG);\n        if (name != null && value != null) {\n            properties.put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [4, 10], [8, 11], [8, 12], [9, 13], [2, 14], [3, 15], [4, 16], [10, 17], [10, 18], [1, 19], [11, 20], [12, 21], [13, 22], [15, 23], [15, 24], [15, 25], [4, 26], [22, 27], [22, 28], [26, 29], [28, 30], [29, 31], [29, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 4], [11, 8], [12, 8], [13, 9], [14, 2], [15, 3], [16, 4], [17, 10], [18, 10], [19, 1], [20, 11], [21, 12], [22, 13], [23, 15], [24, 15], [25, 15], [26, 4], [27, 22], [28, 22], [29, 26], [30, 28], [31, 29], [32, 29], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "setUserProperty", "code": "    public synchronized void setUserProperty(String ns, String name,\n                                             Object value) {\n        project.log(\"Setting ro project property: \" + name + \" -> \"\n                + value, Project.MSG_DEBUG);\n        userProperties.put(name, value);\n\n        boolean done = setPropertyHook(ns, name, value, false, true, false);\n        if (done) {\n            return;\n        }\n        properties.put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [8, 11], [10, 12], [10, 13], [10, 14], [11, 15], [15, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 8], [12, 10], [13, 10], [14, 10], [15, 11], [16, 15], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setInheritedProperty", "code": "    public synchronized void setInheritedProperty(String ns, String name,\n                                                  Object value) {\n        inheritedProperties.put(name, value);\n\n        project.log(\"Setting ro project property: \" + name + \" -> \"\n                + value, Project.MSG_DEBUG);\n        userProperties.put(name, value);\n\n        boolean done = setPropertyHook(ns, name, value, true, false, false);\n        if (done) {\n            return;\n        }\n        properties.put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [8, 12], [11, 13], [11, 14], [11, 15], [12, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 8], [13, 11], [14, 11], [15, 11], [16, 12], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getProperty", "code": "    public synchronized Object getProperty(String ns, String name) {\n        if (name == null) {\n            return null;\n        }\n        Object o = getPropertyHook(ns, name, false);\n        if (o != null) {\n            return o;\n        }\n        return properties.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [2, 10], [8, 11], [3, 12], [4, 13], [9, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 2], [11, 8], [12, 3], [13, 4], [14, 9], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getUserProperty", "code": "    public synchronized Object getUserProperty(String ns, String name) {\n        if (name == null) {\n            return null;\n        }\n        Object o = getPropertyHook(ns, name, true);\n        if (o != null) {\n            return o;\n        }\n        return userProperties.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [2, 10], [8, 11], [3, 12], [4, 13], [9, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 2], [11, 8], [12, 3], [13, 4], [14, 9], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getProperties", "code": "    public Hashtable getProperties() {\n        synchronized (properties) {\n            return new Hashtable(properties);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUserProperties", "code": "    public Hashtable getUserProperties() {\n        synchronized (userProperties) {\n            return new Hashtable(userProperties);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInternalProperties", "code": "    protected Hashtable getInternalProperties() {\n        return properties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInternalUserProperties", "code": "    protected Hashtable getInternalUserProperties() {\n        return userProperties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInternalInheritedProperties", "code": "    protected Hashtable getInternalInheritedProperties() {\n        return inheritedProperties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "copyInheritedProperties", "code": "    public void copyInheritedProperties(Project other) {\n        synchronized (inheritedProperties) {\n            Enumeration e = inheritedProperties.keys();\n            while (e.hasMoreElements()) {\n                String arg = e.nextElement().toString();\n                if (other.getUserProperty(arg) != null) {\n                    continue;\n                }\n                Object value = inheritedProperties.get(arg);\n                other.setInheritedProperty(arg, value.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "LOOP", "VAR_DECL", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [3, 8], [2, 9], [6, 10], [9, 11], [5, 12], [6, 13], [10, 14], [10, 15], [7, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 3], [9, 2], [10, 6], [11, 9], [12, 5], [13, 6], [14, 10], [15, 10], [16, 7], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "copyUserProperties", "code": "    public void copyUserProperties(Project other) {\n        synchronized (userProperties) {\n            Enumeration e = userProperties.keys();\n            while (e.hasMoreElements()) {\n                Object arg = e.nextElement();\n                if (inheritedProperties.containsKey(arg)) {\n                    continue;\n                }\n                Object value = userProperties.get(arg);\n                other.setUserProperty(arg.toString(), value.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "LOOP", "VAR_DECL", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [3, 8], [2, 9], [6, 10], [9, 11], [9, 12], [5, 13], [6, 14], [7, 15], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 3], [9, 2], [10, 6], [11, 9], [12, 9], [13, 5], [14, 6], [15, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "parsePropertyStringDefault", "code": "    static void parsePropertyStringDefault(String value, Vector fragments, Vector propertyRefs)\n            throws BuildException {\n        int prev = 0;\n        int pos;\n        while ((pos = value.indexOf(\"$\", prev)) >= 0) {\n\n            if (pos > 0) {\n                fragments.addElement(value.substring(prev, pos));\n            }\n            if (pos == (value.length() - 1)) {\n                fragments.addElement(\"$\");\n                prev = pos + 1;\n            } else if (value.charAt(pos + 1) != '{') {\n                /*\n                fragments.addElement(value.substring(pos + 1, pos + 2));\n                prev = pos + 2;\n                */\n                if (value.charAt(pos + 1) == '$') {\n                    fragments.addElement(\"$\");\n                    prev = pos + 2;\n                } else {\n                    fragments.addElement(value.substring(pos, pos + 2));\n                    prev = pos + 2;\n                }\n            } else {\n                int endName = value.indexOf('}', pos);\n                if (endName < 0) {\n                    throw new BuildException(\"Syntax error in property: \" + value);\n                }\n                String propertyName = value.substring(pos + 2, endName);\n                fragments.addElement(null);\n                propertyRefs.addElement(propertyName);\n                prev = endName + 1;\n            }\n        }\n        if (prev < value.length()) {\n            fragments.addElement(value.substring(prev));", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [8, 10], [2, 11], [2, 12], [9, 13], [9, 14], [4, 15], [1, 16], [11, 17], [11, 18], [12, 19], [14, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [17, 26], [17, 27], [17, 28], [17, 29], [22, 30], [22, 31], [11, 32], [11, 33], [23, 34], [23, 35], [12, 36], [17, 37], [17, 38], [17, 39], [27, 40], [29, 41], [31, 42], [32, 43], [33, 44], [36, 45], [37, 46], [39, 47], [26, 48], [27, 49], [40, 50], [28, 51], [41, 52], [41, 53], [42, 54], [43, 55], [46, 56], [48, 57], [49, 58], [51, 59], [29, 60], [29, 61], [29, 62], [29, 63], [53, 64], [57, 65], [58, 66], [60, 67], [61, 68], [62, 69], [63, 70], [64, 71], [66, 72], [67, 73], [68, 74], [69, 75], [74, 76], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 8], [11, 2], [12, 2], [13, 9], [14, 9], [15, 4], [16, 1], [17, 11], [18, 11], [19, 12], [20, 14], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [26, 17], [27, 17], [28, 17], [29, 17], [30, 22], [31, 22], [32, 11], [33, 11], [34, 23], [35, 23], [36, 12], [37, 17], [38, 17], [39, 17], [40, 27], [41, 29], [42, 31], [43, 32], [44, 33], [45, 36], [46, 37], [47, 39], [48, 26], [49, 27], [50, 40], [51, 28], [52, 41], [53, 41], [54, 42], [55, 43], [56, 46], [57, 48], [58, 49], [59, 51], [60, 29], [61, 29], [62, 29], [63, 29], [64, 53], [65, 57], [66, 58], [67, 60], [68, 61], [69, 62], [70, 63], [71, 64], [72, 66], [73, 67], [74, 68], [75, 69], [76, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76]]}, {"function_name": "PropertyHelper", "code": "    protected PropertyHelper() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.7-1280", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/zip/ZipShort.java", "language": "java", "name": "org.apache.tools.zip.ZipShort", "code": "public final class ZipShort implements Cloneable {\n    private static final int BYTE_MASK = 0xFF;\n    private static final int BYTE_1_MASK = 0xFF00;\n    private static final int BYTE_1_SHIFT = 8;\n\n    private int value;\n\n    /**\n     * Create instance from a number.\n     * @param value the int to store as a ZipShort\n     * @since 1.1\n     */\n    public ZipShort (int value) {\n        this.value = value;\n    }\n\n    /**\n     * Create instance from bytes.\n     * @param bytes the bytes to store as a ZipShort\n     * @since 1.1\n     */\n    public ZipShort (byte[] bytes) {\n        this(bytes, 0);\n    }\n\n    /**\n     * Create instance from the two bytes starting at offset.\n     * @param bytes the bytes to store as a ZipShort\n     * @param offset the offset to start\n     * @since 1.1\n     */\n    public ZipShort (byte[] bytes, int offset) {\n        value = ZipShort.getValue(bytes, offset);\n    }\n\n    /**\n     * Get value as two bytes in big endian byte order.\n     * @return the value as a a two byte array in big endian byte order\n     * @since 1.1\n     */\n    public byte[] getBytes() {\n        byte[] result = new byte[2];\n        result[0] = (byte) (value & BYTE_MASK);\n        result[1] = (byte) ((value & BYTE_1_MASK) >> BYTE_1_SHIFT);\n        return result;\n    }\n\n    /**\n     * Get value as Java int.\n     * @return value as a Java int\n     * @since 1.1\n     */\n    public int getValue() {\n        return value;\n    }\n\n    /**\n     * Get value as two bytes in big endian byte order.\n     * @param value the Java int to convert to bytes\n     * @return the converted int as a byte array in big endian byte order\n     */\n    public static byte[] getBytes(int value) {\n        byte[] result = new byte[2];\n        result[0] = (byte) (value & BYTE_MASK);\n        result[1] = (byte) ((value & BYTE_1_MASK) >> BYTE_1_SHIFT);\n        return result;\n    }\n\n    /**\n     * Helper method to get the value as a java int from two bytes starting at given array offset\n     * @param bytes the array of bytes\n     * @param offset the offset to start\n     * @return the correspondanding java int value\n     */\n    public static int getValue(byte[] bytes, int offset) {\n        int value = (bytes[offset + 1] << BYTE_1_SHIFT) & BYTE_1_MASK;\n        value += (bytes[offset] & BYTE_MASK);\n        return value;\n    }\n\n    /**\n     * Helper method to get the value as a java int from a two-byte array\n     * @param bytes the array of bytes\n     * @return the correspondanding java int value\n     */\n    public static int getValue(byte[] bytes) {\n        return getValue(bytes, 0);\n    }\n\n    /**\n     * Override to make two instances with same value equal.\n     * @param o an object to compare\n     * @return true if the objects are equal\n     * @since 1.1\n     */\n    public boolean equals(Object o) {\n        if (o == null || !(o instanceof ZipShort)) {\n            return false;\n        }\n        return value == ((ZipShort) o).getValue();\n    }\n\n    /**\n     * Override to make two instances with same value equal.\n     * @return the value stored in the ZipShort\n     * @since 1.1\n     */\n    public int hashCode() {\n        return value;", "functions": [{"function_name": "getBytes", "code": "    public byte[] getBytes() {\n        byte[] result = new byte[2];\n        result[0] = (byte) (value & BYTE_MASK);\n        result[1] = (byte) ((value & BYTE_1_MASK) >> BYTE_1_SHIFT);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [2, 7], [5, 8], [3, 9], [4, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 2], [8, 5], [9, 3], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getValue", "code": "    public int getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBytes", "code": "    public static byte[] getBytes(int value) {\n        byte[] result = new byte[2];\n        result[0] = (byte) (value & BYTE_MASK);\n        result[1] = (byte) ((value & BYTE_1_MASK) >> BYTE_1_SHIFT);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [2, 8], [6, 9], [4, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 2], [9, 6], [10, 4], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getValue", "code": "    public static int getValue(byte[] bytes, int offset) {\n        int value = (bytes[offset + 1] << BYTE_1_SHIFT) & BYTE_1_MASK;\n        value += (bytes[offset] & BYTE_MASK);\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [2, 7], [7, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 2], [8, 7], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getValue", "code": "    public static int getValue(byte[] bytes) {\n        return getValue(bytes, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "equals", "code": "    public boolean equals(Object o) {\n        if (o == null || !(o instanceof ZipShort)) {\n            return false;\n        }\n        return value == ((ZipShort) o).getValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "hashCode", "code": "    public int hashCode() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ZipShort", "code": "    public ZipShort (int value) {\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ZipShort", "code": "    public ZipShort (byte[] bytes) {\n        this(bytes, 0);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ZipShort", "code": "    public ZipShort (byte[] bytes, int offset) {\n        value = ZipShort.getValue(bytes, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ivy-2.0-3395", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/sort/ModuleInSort.java", "language": "java", "name": "org.apache.ivy.core.sort.ModuleInSort", "code": "class ModuleInSort {\n\n    private final ModuleDescriptor module;\n\n    private boolean isSorted = false;\n\n    private List loopElements = new LinkedList();\n\n    private boolean isLoopIntermediateElement = false;\n\n    private ModuleInSort caller;\n\n    public ModuleInSort(ModuleDescriptor moduleToSort) {\n        module = moduleToSort;\n    }\n\n    public boolean isInLoop() {\n        return isLoopIntermediateElement;\n    }\n\n    /** This ModuleInSort has been placed on the sorted list */\n    public boolean isSorted() {\n        if (isSorted) {\n            Message.debug(\"Module descriptor already sorted : \"\n                    + module.getModuleRevisionId().toString());\n            return true;\n        } else {\n            return false;\n        }\n    }\n\n    /** This ModuleInSort has already been analyzed.  It is either already added\n     * to the sorted list, either it is included in a loop and will be added\n     * when the root of the loop will be added to the list. \n     */\n    public boolean isProcessed() {\n        if (isSorted || isLoopIntermediateElement) {\n            Message.debug(\"Module descriptor is processed : \"\n                    + module.getModuleRevisionId().toString());\n            return true;\n        } else {\n            return false;\n        }\n    }\n\n    \n    public void setCaller(ModuleInSort caller) {\n        this.caller = caller;\n    }\n\n    public void endOfCall() {\n        caller = null;\n    }\n\n    /**\n     * Check if a adding this element as a dependency of caller will introduce a circular\n     * dependency. If it is, all the elements of the loop are flaged as 'loopIntermediateElement',\n     * and the loopElements of this module (which is the root of the loop) is updated. The\n     * depStrategy is invoked on order to report a correct circular loop message.\n     * \n     * @param futurCaller\n     * @param depStrategy\n     * @return true if a loop is detected.\n     */\n    public boolean checkLoop(ModuleInSort futurCaller, CircularDependencyStrategy depStrategy) {\n        if (caller != null) {\n            LinkedList elemOfLoop = new LinkedList();\n            elemOfLoop.add(this.module.getModuleRevisionId());\n            for (ModuleInSort stackEl = futurCaller; stackEl != this; stackEl = stackEl.caller) {\n                elemOfLoop.add(stackEl.module.getModuleRevisionId());\n                stackEl.isLoopIntermediateElement = true;\n                loopElements.add(stackEl);\n            }\n            elemOfLoop.add(this.module.getModuleRevisionId());\n            ModuleRevisionId[] mrids = (ModuleRevisionId[]) elemOfLoop\n                    .toArray(new ModuleRevisionId[elemOfLoop.size()]);\n            depStrategy.handleCircularDependency(mrids);\n            return true;\n        } else {\n            return false;\n        }\n    }\n\n    /**\n     * Add this module to the sorted list except if this module is an intermediary element of a\n     * loop. If this module is the 'root' of a loop, then all elements of that loops are added\n     * before.\n     * \n     * @param sorted\n     *            The list of sorted elements on which this module will be added\n     */\n    public void addToSortedListIfRequired(List sorted) {\n        if (!isLoopIntermediateElement) {\n            addToSortList(sorted);\n        }\n    }\n\n    /**\n     * Add this module to the sorted list. If current is the 'root' of a loop, then all elements of\n     * that loops are added before.\n     */\n    private void addToSortList(List sortedList) {\n        for (Iterator it = loopElements.iterator(); it.hasNext();) {\n            ModuleInSort moduleInLoop = (ModuleInSort) it.next();\n            moduleInLoop.addToSortList(sortedList);\n        }\n        if (!this.isSorted()) {\n            sortedList.add(module);\n            this.isSorted = true;\n        }\n    }\n\n    public String toString() {\n        return module.getModuleRevisionId().toString();\n    }\n\n    public DependencyDescriptor[] getDependencies() {\n        return module.getDependencies();\n    }\n\n    /** Log a warning saying that a loop is detected */\n    public static void logLoopWarning(List loopElement) {\n        Message.warn(\"circular dependency detected during sort: \"\n                + CircularDependencyHelper.formatMessageFromDescriptors(loopElement));\n    }\n\n    /**\n     * Return true if this module match the DependencyDescriptor with the given versionMatcher. If\n     * this module has no version defined, then true is always returned.\n     */\n    public boolean match(DependencyDescriptor descriptor, VersionMatcher versionMatcher) {\n        ModuleDescriptor md = module;\n        return md.getResolvedModuleRevisionId().getRevision() == null\n                || md.getResolvedModuleRevisionId().getRevision().equals(Ivy.getWorkingRevision())\n                || versionMatcher.accept(descriptor.getDependencyRevisionId(), md);\n        // Checking md.getResolvedModuleRevisionId().getRevision().equals(Ivy.getWorkingRevision()\n        // allow to consider any local non resolved ivy.xml\n        // as a valid module.\n    }\n\n    public ModuleDescriptor getSortedModuleDescriptor() {\n        return module;", "functions": [{"function_name": "isInLoop", "code": "    public boolean isInLoop() {\n        return isLoopIntermediateElement;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSorted", "code": "    public boolean isSorted() {\n        if (isSorted) {\n            Message.debug(\"Module descriptor already sorted : \"\n                    + module.getModuleRevisionId().toString());\n            return true;\n        } else {\n            return false;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [6, 7], [7, 8], [7, 9], [8, 10], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 6], [8, 7], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isProcessed", "code": "    public boolean isProcessed() {\n        if (isSorted || isLoopIntermediateElement) {\n            Message.debug(\"Module descriptor is processed : \"\n                    + module.getModuleRevisionId().toString());\n            return true;\n        } else {\n            return false;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [7, 8], [8, 9], [8, 10], [9, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 7], [9, 8], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setCaller", "code": "    public void setCaller(ModuleInSort caller) {\n        this.caller = caller;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "endOfCall", "code": "    public void endOfCall() {\n        caller = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "checkLoop", "code": "    public boolean checkLoop(ModuleInSort futurCaller, CircularDependencyStrategy depStrategy) {\n        if (caller != null) {\n            LinkedList elemOfLoop = new LinkedList();\n            elemOfLoop.add(this.module.getModuleRevisionId());\n            for (ModuleInSort stackEl = futurCaller; stackEl != this; stackEl = stackEl.caller) {\n                elemOfLoop.add(stackEl.module.getModuleRevisionId());\n                stackEl.isLoopIntermediateElement = true;\n                loopElements.add(stackEl);\n            }\n            elemOfLoop.add(this.module.getModuleRevisionId());\n            ModuleRevisionId[] mrids = (ModuleRevisionId[]) elemOfLoop\n                    .toArray(new ModuleRevisionId[elemOfLoop.size()]);\n            depStrategy.handleCircularDependency(mrids);\n            return true;\n        } else {\n            return false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [5, 11], [6, 12], [1, 13], [1, 14], [8, 15], [8, 16], [1, 17], [9, 18], [7, 19], [14, 20], [8, 21], [8, 22], [8, 23], [17, 24], [22, 25], [23, 26], [19, 27], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 5], [12, 6], [13, 1], [14, 1], [15, 8], [16, 8], [17, 1], [18, 9], [19, 7], [20, 14], [21, 8], [22, 8], [23, 8], [24, 17], [25, 22], [26, 23], [27, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "addToSortedListIfRequired", "code": "    public void addToSortedListIfRequired(List sorted) {\n        if (!isLoopIntermediateElement) {\n            addToSortList(sorted);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addToSortList", "code": "    private void addToSortList(List sortedList) {\n        for (Iterator it = loopElements.iterator(); it.hasNext();) {\n            ModuleInSort moduleInLoop = (ModuleInSort) it.next();\n            moduleInLoop.addToSortList(sortedList);\n        }\n        if (!this.isSorted()) {\n            sortedList.add(module);\n            this.isSorted = true;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "PARAM", "CALL", "CALL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [1, 7], [1, 8], [2, 9], [2, 10], [7, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 1], [8, 1], [9, 2], [10, 2], [11, 7], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "toString", "code": "    public String toString() {\n        return module.getModuleRevisionId().toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDependencies", "code": "    public DependencyDescriptor[] getDependencies() {\n        return module.getDependencies();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "logLoopWarning", "code": "    public static void logLoopWarning(List loopElement) {\n        Message.warn(\"circular dependency detected during sort: \"\n                + CircularDependencyHelper.formatMessageFromDescriptors(loopElement));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "match", "code": "    public boolean match(DependencyDescriptor descriptor, VersionMatcher versionMatcher) {\n        ModuleDescriptor md = module;\n        return md.getResolvedModuleRevisionId().getRevision() == null\n                || md.getResolvedModuleRevisionId().getRevision().equals(Ivy.getWorkingRevision())\n                || versionMatcher.accept(descriptor.getDependencyRevisionId(), md);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [6, 8], [7, 9], [7, 10], [9, 11], [9, 12], [10, 13], [10, 14], [11, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 6], [9, 7], [10, 7], [11, 9], [12, 9], [13, 10], [14, 10], [15, 11], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getSortedModuleDescriptor", "code": "    public ModuleDescriptor getSortedModuleDescriptor() {\n        return module;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ModuleInSort", "code": "    public ModuleInSort(ModuleDescriptor moduleToSort) {\n        module = moduleToSort;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8219", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/DTMException.java", "language": "java", "name": "org.apache.xml.dtm.DTMException", "code": "public class DTMException extends RuntimeException {\n    static final long serialVersionUID = -775576419181334734L;\n\n    /** Field locator specifies where the error occured.\n     *  @serial */\n    SourceLocator locator;\n\n    /**\n     * Method getLocator retrieves an instance of a SourceLocator\n     * object that specifies where an error occured.\n     *\n     * @return A SourceLocator object, or null if none was specified.\n     */\n    public SourceLocator getLocator() {\n        return locator;\n    }\n\n    /**\n     * Method setLocator sets an instance of a SourceLocator\n     * object that specifies where an error occured.\n     *\n     * @param location A SourceLocator object, or null to clear the location.\n     */\n    public void setLocator(SourceLocator location) {\n        locator = location;\n    }\n\n    /** Field containedException specifies a wrapped exception.  May be null.\n     *  @serial */\n    Throwable containedException;\n\n    /**\n     * This method retrieves an exception that this exception wraps.\n     *\n     * @return An Throwable object, or null.\n     * @see #getCause\n     */\n    public Throwable getException() {\n        return containedException;\n    }\n\n    /**\n     * Returns the cause of this throwable or <code>null</code> if the\n     * cause is nonexistent or unknown.  (The cause is the throwable that\n     * caused this throwable to get thrown.)\n     */\n    public Throwable getCause() {\n\n        return ((containedException == this)\n                ? null\n                : containedException);\n    }\n\n    /**\n     * Initializes the <i>cause</i> of this throwable to the specified value.\n     * (The cause is the throwable that caused this throwable to get thrown.)\n     *\n     * <p>This method can be called at most once.  It is generally called from\n     * within the constructor, or immediately after creating the\n     * throwable.  If this throwable was created\n     * with {@link #DTMException(Throwable)} or\n     * {@link #DTMException(String,Throwable)}, this method cannot be called\n     * even once.\n     *\n     * @param  cause the cause (which is saved for later retrieval by the\n     *         {@link #getCause()} method).  (A <tt>null</tt> value is\n     *         permitted, and indicates that the cause is nonexistent or\n     *         unknown.)\n     * @return  a reference to this <code>Throwable</code> instance.\n     * @throws IllegalArgumentException if <code>cause</code> is this\n     *         throwable.  (A throwable cannot\n     *         be its own cause.)\n     * @throws IllegalStateException if this throwable was\n     *         created with {@link #DTMException(Throwable)} or\n     *         {@link #DTMException(String,Throwable)}, or this method has already\n     *         been called on this throwable.\n     */\n    public synchronized Throwable initCause(Throwable cause) {\n\n        if ((this.containedException == null) && (cause != null)) {\n        }\n\n        if (cause == this) {\n            throw new IllegalArgumentException();\n        }\n\n        this.containedException = cause;\n\n        return this;\n    }\n\n    /**\n     * Create a new DTMException.\n     *\n     * @param message The error or warning message.\n     */\n    public DTMException(String message) {\n\n        super(message);\n\n        this.containedException = null;\n        this.locator            = null;\n    }\n\n    /**\n     * Create a new DTMException wrapping an existing exception.\n     *\n     * @param e The exception to be wrapped.\n     */\n    public DTMException(Throwable e) {\n\n        super(e.getMessage());\n\n        this.containedException = e;\n        this.locator            = null;\n    }\n\n    /**\n     * Wrap an existing exception in a DTMException.\n     *\n     * <p>This is used for throwing processor exceptions before\n     * the processing has started.</p>\n     *\n     * @param message The error or warning message, or null to\n     *                use the message from the embedded exception.\n     * @param e Any exception\n     */\n    public DTMException(String message, Throwable e) {\n\n        super(((message == null) || (message.length() == 0))\n              ? e.getMessage()\n              : message);\n\n        this.containedException = e;\n        this.locator            = null;\n    }\n\n    /**\n     * Create a new DTMException from a message and a Locator.\n     *\n     * <p>This constructor is especially useful when an application is\n     * creating its own exception from within a DocumentHandler\n     * callback.</p>\n     *\n     * @param message The error or warning message.\n     * @param locator The locator object for the error or warning.\n     */\n    public DTMException(String message, SourceLocator locator) {\n\n        super(message);\n\n        this.containedException = null;\n        this.locator            = locator;\n    }\n\n    /**\n     * Wrap an existing exception in a DTMException.\n     *\n     * @param message The error or warning message, or null to\n     *                use the message from the embedded exception.\n     * @param locator The locator object for the error or warning.\n     * @param e Any exception\n     */\n    public DTMException(String message, SourceLocator locator,\n                                Throwable e) {\n\n        super(message);\n\n        this.containedException = e;\n        this.locator            = locator;\n    }\n\n    /**\n     * Get the error message with location information\n     * appended.\n     */\n    public String getMessageAndLocation() {\n\n        StringBuffer sbuffer = new StringBuffer();\n        String       message = super.getMessage();\n\n        if (null != message) {\n            sbuffer.append(message);\n        }\n\n        if (null != locator) {\n            String systemID = locator.getSystemId();\n            int    line     = locator.getLineNumber();\n            int    column   = locator.getColumnNumber();\n\n            if (null != systemID) {\n                sbuffer.append(\"; SystemID: \");\n                sbuffer.append(systemID);\n            }\n\n            if (0 != line) {\n                sbuffer.append(\"; Line#: \");\n                sbuffer.append(line);\n            }\n\n            if (0 != column) {\n                sbuffer.append(\"; Column#: \");\n                sbuffer.append(column);\n            }\n        }\n\n        return sbuffer.toString();\n    }\n\n    /**\n     * Get the location information as a string.\n     *\n     * @return A string with location info, or null\n     * if there is no location information.\n     */\n    public String getLocationAsString() {\n\n        if (null != locator) {\n            StringBuffer sbuffer  = new StringBuffer();\n            String       systemID = locator.getSystemId();\n            int          line     = locator.getLineNumber();\n            int          column   = locator.getColumnNumber();\n\n            if (null != systemID) {\n                sbuffer.append(\"; SystemID: \");\n                sbuffer.append(systemID);\n            }\n\n            if (0 != line) {\n                sbuffer.append(\"; Line#: \");\n                sbuffer.append(line);\n            }\n\n            if (0 != column) {\n                sbuffer.append(\"; Column#: \");\n                sbuffer.append(column);\n            }\n\n            return sbuffer.toString();\n        } else {\n            return null;\n        }\n    }\n\n    /**\n     * Print the the trace of methods from where the error\n     * originated.  This will trace all nested exception\n     * objects, as well as this object.\n     */\n    public void printStackTrace() {\n        printStackTrace(new java.io.PrintWriter(System.err, true));\n    }\n\n    /**\n     * Print the the trace of methods from where the error\n     * originated.  This will trace all nested exception\n     * objects, as well as this object.\n     * @param s The stream where the dump will be sent to.\n     */\n    public void printStackTrace(java.io.PrintStream s) {\n        printStackTrace(new java.io.PrintWriter(s));\n    }\n\n    /**\n     * Print the the trace of methods from where the error\n     * originated.  This will trace all nested exception\n     * objects, as well as this object.\n     * @param s The writer where the dump will be sent to.\n     */\n    public void printStackTrace(java.io.PrintWriter s) {\n\n        if (s == null) {\n            s = new java.io.PrintWriter(System.err, true);\n        }\n\n        try {\n            String locInfo = getLocationAsString();\n\n            if (null != locInfo) {\n                s.println(locInfo);\n            }\n\n            super.printStackTrace(s);\n        } catch (Throwable e) {}\n\n        boolean isJdk14OrHigher = false;\n        try {\n            Throwable.class.getMethod(\"getCause\",null);\n            isJdk14OrHigher = true;\n        } catch (NoSuchMethodException nsme) {\n        }        \n\n        if (!isJdk14OrHigher) {\n            Throwable exception = getException();\n    \n            for (int i = 0; (i < 10) && (null != exception); i++) {\n                s.println(\"---------\");\n    \n                try {\n                    if (exception instanceof DTMException) {\n                        String locInfo =\n                            ((DTMException) exception)\n                                .getLocationAsString();\n    \n                        if (null != locInfo) {\n                            s.println(locInfo);\n                        }\n                    }\n    \n                    exception.printStackTrace(s);\n                } catch (Throwable e) {\n                    s.println(\"Could not print stack trace...\");\n                }\n    \n                try {\n                    Method meth =\n                        ((Object) exception).getClass().getMethod(\"getException\",\n                            null);\n    \n                    if (null != meth) {\n                        Throwable prev = exception;\n    \n                        exception = (Throwable) meth.invoke(exception, null);\n    \n                        if (prev == exception) {\n                            break;\n                        }\n                    } else {\n                        exception = null;\n                    }\n                } catch (InvocationTargetException ite) {\n                    exception = null;\n                } catch (IllegalAccessException iae) {\n                    exception = null;\n                } catch (NoSuchMethodException nsme) {\n                    exception = null;", "functions": [{"function_name": "getLocator", "code": "    public SourceLocator getLocator() {\n        return locator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLocator", "code": "    public void setLocator(SourceLocator location) {\n        locator = location;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getException", "code": "    public Throwable getException() {\n        return containedException;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCause", "code": "    public Throwable getCause() {\n\n        return ((containedException == this)\n                ? null\n                : containedException);", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "initCause", "code": "    public synchronized Throwable initCause(Throwable cause) {\n\n        if ((this.containedException == null) && (cause != null)) {\n        }\n\n        if (cause == this) {\n            throw new IllegalArgumentException();\n        }\n\n        this.containedException = cause;\n\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [2, 8], [7, 9], [7, 10], [8, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 2], [9, 7], [10, 7], [11, 8], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getMessageAndLocation", "code": "    public String getMessageAndLocation() {\n\n        StringBuffer sbuffer = new StringBuffer();\n        String       message = super.getMessage();\n\n        if (null != message) {\n            sbuffer.append(message);\n        }\n\n        if (null != locator) {\n            String systemID = locator.getSystemId();\n            int    line     = locator.getLineNumber();\n            int    column   = locator.getColumnNumber();\n\n            if (null != systemID) {\n                sbuffer.append(\"; SystemID: \");\n                sbuffer.append(systemID);\n            }\n\n            if (0 != line) {\n                sbuffer.append(\"; Line#: \");\n                sbuffer.append(line);\n            }\n\n            if (0 != column) {\n                sbuffer.append(\"; Column#: \");\n                sbuffer.append(column);\n            }\n        }\n\n        return sbuffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [7, 15], [8, 16], [5, 17], [9, 18], [10, 19], [11, 20], [3, 21], [18, 22], [19, 23], [20, 24], [12, 25], [13, 26], [14, 27], [9, 28], [9, 29], [10, 30], [10, 31], [11, 32], [11, 33], [29, 34], [31, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 7], [16, 8], [17, 5], [18, 9], [19, 10], [20, 11], [21, 3], [22, 18], [23, 19], [24, 20], [25, 12], [26, 13], [27, 14], [28, 9], [29, 9], [30, 10], [31, 10], [32, 11], [33, 11], [34, 29], [35, 31], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getLocationAsString", "code": "    public String getLocationAsString() {\n\n        if (null != locator) {\n            StringBuffer sbuffer  = new StringBuffer();\n            String       systemID = locator.getSystemId();\n            int          line     = locator.getLineNumber();\n            int          column   = locator.getColumnNumber();\n\n            if (null != systemID) {\n                sbuffer.append(\"; SystemID: \");\n                sbuffer.append(systemID);\n            }\n\n            if (0 != line) {\n                sbuffer.append(\"; Line#: \");\n                sbuffer.append(line);\n            }\n\n            if (0 != column) {\n                sbuffer.append(\"; Column#: \");\n                sbuffer.append(column);\n            }\n\n            return sbuffer.toString();\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [3, 13], [4, 14], [5, 15], [6, 16], [7, 17], [15, 18], [16, 19], [17, 20], [8, 21], [9, 22], [10, 23], [11, 24], [5, 25], [5, 26], [6, 27], [6, 28], [7, 29], [7, 30], [26, 31], [28, 32], [30, 33], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 3], [14, 4], [15, 5], [16, 6], [17, 7], [18, 15], [19, 16], [20, 17], [21, 8], [22, 9], [23, 10], [24, 11], [25, 5], [26, 5], [27, 6], [28, 6], [29, 7], [30, 7], [31, 26], [32, 28], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace() {\n        printStackTrace(new java.io.PrintWriter(System.err, true));", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace(java.io.PrintStream s) {\n        printStackTrace(new java.io.PrintWriter(s));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace(java.io.PrintWriter s) {\n\n        if (s == null) {\n            s = new java.io.PrintWriter(System.err, true);\n        }\n\n        try {\n            String locInfo = getLocationAsString();\n\n            if (null != locInfo) {\n                s.println(locInfo);\n            }\n\n            super.printStackTrace(s);\n        } catch (Throwable e) {}\n\n        boolean isJdk14OrHigher = false;\n        try {\n            Throwable.class.getMethod(\"getCause\",null);\n            isJdk14OrHigher = true;\n        } catch (NoSuchMethodException nsme) {\n        }        \n\n        if (!isJdk14OrHigher) {\n            Throwable exception = getException();\n    \n            for (int i = 0; (i < 10) && (null != exception); i++) {\n                s.println(\"---------\");\n    \n                try {\n                    if (exception instanceof DTMException) {\n                        String locInfo =\n                            ((DTMException) exception)\n                                .getLocationAsString();\n    \n                        if (null != locInfo) {\n                            s.println(locInfo);\n                        }\n                    }\n    \n                    exception.printStackTrace(s);\n                } catch (Throwable e) {\n                    s.println(\"Could not print stack trace...\");\n                }\n    \n                try {\n                    Method meth =\n                        ((Object) exception).getClass().getMethod(\"getException\",\n                            null);\n    \n                    if (null != meth) {\n                        Throwable prev = exception;\n    \n                        exception = (Throwable) meth.invoke(exception, null);\n    \n                        if (prev == exception) {\n                            break;\n                        }\n                    } else {\n                        exception = null;\n                    }\n                } catch (InvocationTargetException ite) {\n                    exception = null;\n                } catch (IllegalAccessException iae) {\n                    exception = null;\n                } catch (NoSuchMethodException nsme) {\n                    exception = null;", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "TRY", "IF", "PARAM", "CATCH", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "TRY", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CATCH", "CATCH", "CATCH", "IF", "VAR_DECL", "CATCH", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [4, 9], [4, 10], [5, 11], [1, 12], [1, 13], [2, 14], [2, 15], [3, 16], [9, 17], [11, 18], [12, 19], [14, 20], [15, 21], [15, 22], [17, 23], [10, 24], [5, 25], [12, 26], [12, 27], [19, 28], [19, 29], [13, 30], [9, 31], [25, 32], [26, 33], [26, 34], [26, 35], [26, 36], [26, 37], [27, 38], [27, 39], [12, 40], [28, 41], [29, 42], [12, 43], [32, 44], [36, 45], [27, 46], [39, 47], [40, 48], [33, 49], [34, 50], [35, 51], [36, 52], [36, 53], [45, 54], [38, 55], [39, 56], [39, 57], [49, 58], [50, 59], [51, 60], [36, 61], [52, 62], [36, 63], [55, 64], [56, 65], [61, 66], [52, 67], [65, 68], [63, 69], [56, 70], [69, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 4], [10, 4], [11, 5], [12, 1], [13, 1], [14, 2], [15, 2], [16, 3], [17, 9], [18, 11], [19, 12], [20, 14], [21, 15], [22, 15], [23, 17], [24, 10], [25, 5], [26, 12], [27, 12], [28, 19], [29, 19], [30, 13], [31, 9], [32, 25], [33, 26], [34, 26], [35, 26], [36, 26], [37, 26], [38, 27], [39, 27], [40, 12], [41, 28], [42, 29], [43, 12], [44, 32], [45, 36], [46, 27], [47, 39], [48, 40], [49, 33], [50, 34], [51, 35], [52, 36], [53, 36], [54, 45], [55, 38], [56, 39], [57, 39], [58, 49], [59, 50], [60, 51], [61, 36], [62, 52], [63, 36], [64, 55], [65, 56], [66, 61], [67, 52], [68, 65], [69, 63], [70, 56], [71, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "DTMException", "code": "    public DTMException(String message) {\n\n        super(message);\n\n        this.containedException = null;\n        this.locator            = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DTMException", "code": "    public DTMException(Throwable e) {\n\n        super(e.getMessage());\n\n        this.containedException = e;\n        this.locator            = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DTMException", "code": "    public DTMException(String message, Throwable e) {\n\n        super(((message == null) || (message.length() == 0))\n              ? e.getMessage()\n              : message);\n\n        this.containedException = e;\n        this.locator            = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [5, 8], [8, 9], [8, 10], [9, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 5], [9, 8], [10, 8], [11, 9], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "DTMException", "code": "    public DTMException(String message, SourceLocator locator) {\n\n        super(message);\n\n        this.containedException = null;\n        this.locator            = locator;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DTMException", "code": "    public DTMException(String message, SourceLocator locator,\n                                Throwable e) {\n\n        super(message);\n\n        this.containedException = e;\n        this.locator            = locator;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "camel-1.4-2054", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/jpa/JpaConsumer.java", "language": "java", "name": "org.apache.camel.component.jpa.JpaConsumer", "code": "public class JpaConsumer extends ScheduledPollConsumer<Exchange> {\n    private static final transient Log LOG = LogFactory.getLog(JpaConsumer.class);\n    private final JpaEndpoint endpoint;\n    private final TransactionStrategy template;\n    private QueryFactory queryFactory;\n    private DeleteHandler<Object> deleteHandler;\n    private String query;\n    private String namedQuery;\n    private String nativeQuery;\n\n    public JpaConsumer(JpaEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n        this.template = endpoint.createTransactionStrategy();\n    }\n\n    protected void poll() throws Exception {\n        template.execute(new JpaCallback() {\n            public Object doInJpa(EntityManager entityManager) throws PersistenceException {\n                Query query = getQueryFactory().createQuery(entityManager);\n                configureParameters(query);\n                List results = query.getResultList();\n                for (Object result : results) {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Processing new entity: \" + result);\n                    }\n\n                    if (lockEntity(result, entityManager)) {\n                        Exchange exchange = createExchange(result);\n                        try {\n                            getProcessor().process(exchange);\n                        } catch (Exception e) {\n                            throw new PersistenceException(e);\n                        }\n                        getDeleteHandler().deleteObject(entityManager, result);\n                    }\n                }\n                entityManager.flush();\n                return null;\n            }\n        });\n    }\n\n    public JpaEndpoint getEndpoint() {\n        return endpoint;\n    }\n\n    public QueryFactory getQueryFactory() {\n        if (queryFactory == null) {\n            queryFactory = createQueryFactory();\n            if (queryFactory == null) {\n                throw new IllegalArgumentException(\"No queryType property configured on this consumer, nor an entityType configured on the endpoint so cannot consume\");\n            }\n        }\n        return queryFactory;\n    }\n\n    public void setQueryFactory(QueryFactory queryFactory) {\n        this.queryFactory = queryFactory;\n    }\n\n    public DeleteHandler getDeleteHandler() {\n        if (deleteHandler == null) {\n            deleteHandler = createDeleteHandler();\n        }\n        return deleteHandler;\n    }\n\n    public void setDeleteHandler(DeleteHandler deleteHandler) {\n        this.deleteHandler = deleteHandler;\n    }\n\n    public String getNamedQuery() {\n        return namedQuery;\n    }\n\n    public void setNamedQuery(String namedQuery) {\n        this.namedQuery = namedQuery;\n    }\n\n    public String getNativeQuery() {\n        return nativeQuery;\n    }\n\n    public void setNativeQuery(String nativeQuery) {\n        this.nativeQuery = nativeQuery;\n    }\n\n    public String getQuery() {\n        return query;\n    }\n\n    public void setQuery(String query) {\n        this.query = query;\n    }\n\n\n    /**\n     * A strategy method to lock an object with an exclusive lock so that it can\n     * be processed\n     * \n     * @param entity the entity to be locked\n     * @param entityManager\n     * @return true if the entity was locked\n     */\n    protected boolean lockEntity(Object entity, EntityManager entityManager) {\n        if (!getEndpoint().isConsumeDelete() || !getEndpoint().isConsumeLockEntity()) {\n            return true;\n        }\n        try {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Acquiring exclusive lock on entity: \" + entity);\n            }\n            entityManager.lock(entity, LockModeType.WRITE);\n            return true;\n        } catch (Exception e) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Failed to achieve lock on entity: \" + entity + \". Reason: \" + e, e);\n            }\n            return false;\n        }\n    }\n\n    protected QueryFactory createQueryFactory() {\n        if (query != null) {\n            return QueryBuilder.query(query);\n        } else if (namedQuery != null) {\n            return QueryBuilder.namedQuery(namedQuery);\n        } else if (nativeQuery != null) {\n            return QueryBuilder.nativeQuery(nativeQuery);\n        } else {\n            Class<?> entityType = endpoint.getEntityType();\n            if (entityType == null) {\n                return null;\n            } else {\n                return QueryBuilder.query(\"select x from \" + entityType.getName() + \" x\");\n            }\n        }\n    }\n\n    protected DeleteHandler<Object> createDeleteHandler() {\n        Class<?> entityType = getEndpoint().getEntityType();\n        if (entityType != null) {\n            List<Method> methods = ObjectHelper.findMethodsWithAnnotation(entityType, Consumed.class);\n            if (methods.size() > 1) {\n                throw new IllegalArgumentException(\"Only one method can be annotated with the @Consumed annotation but found: \" + methods);\n            } else if (methods.size() == 1) {\n                final Method method = methods.get(0);\n\n                return new DeleteHandler<Object>() {\n                    public void deleteObject(EntityManager entityManager, Object entityBean) {\n                        ObjectHelper.invokeMethod(method, entityBean);\n                    }\n                };\n            }\n        }\n        if (getEndpoint().isConsumeDelete()) {\n            return new DeleteHandler<Object>() {\n                public void deleteObject(EntityManager entityManager, Object entityBean) {\n                    entityManager.remove(entityBean);\n                }\n            };\n        } else {\n            return new DeleteHandler<Object>() {\n                public void deleteObject(EntityManager entityManager, Object entityBean) {\n                }\n            };\n        }\n    }\n\n    protected void configureParameters(Query query) {\n        int maxResults = endpoint.getMaximumResults();\n        if (maxResults > 0) {\n            query.setMaxResults(maxResults);\n        }\n    }\n\n    protected Exchange createExchange(Object result) {\n        Exchange exchange = endpoint.createExchange();\n        exchange.getIn().setBody(result);\n        return exchange;", "functions": [{"function_name": "poll", "code": "    protected void poll() throws Exception {\n        template.execute(new JpaCallback() {\n            public Object doInJpa(EntityManager entityManager) throws PersistenceException {\n                Query query = getQueryFactory().createQuery(entityManager);\n                configureParameters(query);\n                List results = query.getResultList();\n                for (Object result : results) {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Processing new entity: \" + result);\n                    }\n\n                    if (lockEntity(result, entityManager)) {\n                        Exchange exchange = createExchange(result);\n                        try {\n                            getProcessor().process(exchange);\n                        } catch (Exception e) {\n                            throw new PersistenceException(e);\n                        }\n                        getDeleteHandler().deleteObject(entityManager, result);\n                    }\n                }\n                entityManager.flush();\n                return null;", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "TRY", "VAR_DECL", "CALL", "CATCH", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [4, 9], [3, 10], [3, 11], [5, 12], [5, 13], [6, 14], [7, 15], [12, 16], [13, 17], [15, 18], [12, 19], [12, 20], [12, 21], [19, 22], [13, 23], [21, 24], [22, 25], [19, 26], [20, 27], [23, 28], [25, 29], [26, 30], [28, 31], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 3], [7, 3], [8, 3], [9, 4], [10, 3], [11, 3], [12, 5], [13, 5], [14, 6], [15, 7], [16, 12], [17, 13], [18, 15], [19, 12], [20, 12], [21, 12], [22, 19], [23, 13], [24, 21], [25, 22], [26, 19], [27, 20], [28, 23], [29, 25], [30, 26], [31, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getEndpoint", "code": "    public JpaEndpoint getEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getQueryFactory", "code": "    public QueryFactory getQueryFactory() {\n        if (queryFactory == null) {\n            queryFactory = createQueryFactory();\n            if (queryFactory == null) {\n                throw new IllegalArgumentException(\"No queryType property configured on this consumer, nor an entityType configured on the endpoint so cannot consume\");\n            }\n        }\n        return queryFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [2, 7], [4, 8], [6, 9], [7, 10], [8, 11], [11, 12], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 2], [8, 4], [9, 6], [10, 7], [11, 8], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setQueryFactory", "code": "    public void setQueryFactory(QueryFactory queryFactory) {\n        this.queryFactory = queryFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDeleteHandler", "code": "    public DeleteHandler getDeleteHandler() {\n        if (deleteHandler == null) {\n            deleteHandler = createDeleteHandler();\n        }\n        return deleteHandler;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setDeleteHandler", "code": "    public void setDeleteHandler(DeleteHandler deleteHandler) {\n        this.deleteHandler = deleteHandler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamedQuery", "code": "    public String getNamedQuery() {\n        return namedQuery;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamedQuery", "code": "    public void setNamedQuery(String namedQuery) {\n        this.namedQuery = namedQuery;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNativeQuery", "code": "    public String getNativeQuery() {\n        return nativeQuery;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNativeQuery", "code": "    public void setNativeQuery(String nativeQuery) {\n        this.nativeQuery = nativeQuery;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getQuery", "code": "    public String getQuery() {\n        return query;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setQuery", "code": "    public void setQuery(String query) {\n        this.query = query;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "lockEntity", "code": "    protected boolean lockEntity(Object entity, EntityManager entityManager) {\n        if (!getEndpoint().isConsumeDelete() || !getEndpoint().isConsumeLockEntity()) {\n            return true;\n        }\n        try {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Acquiring exclusive lock on entity: \" + entity);\n            }\n            entityManager.lock(entity, LockModeType.WRITE);\n            return true;\n        } catch (Exception e) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Failed to achieve lock on entity: \" + entity + \". Reason: \" + e, e);\n            }\n            return false;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [5, 9], [5, 10], [6, 11], [1, 12], [7, 13], [2, 14], [8, 15], [8, 16], [9, 17], [10, 18], [14, 19], [15, 20], [16, 21], [7, 22], [10, 23], [22, 24], [23, 25], [24, 26], [25, 27], [27, 28], [27, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 5], [10, 5], [11, 6], [12, 1], [13, 7], [14, 2], [15, 8], [16, 8], [17, 9], [18, 10], [19, 14], [20, 15], [21, 16], [22, 7], [23, 10], [24, 22], [25, 23], [26, 24], [27, 25], [28, 27], [29, 27], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "createQueryFactory", "code": "    protected QueryFactory createQueryFactory() {\n        if (query != null) {\n            return QueryBuilder.query(query);\n        } else if (namedQuery != null) {\n            return QueryBuilder.namedQuery(namedQuery);\n        } else if (nativeQuery != null) {\n            return QueryBuilder.nativeQuery(nativeQuery);\n        } else {\n            Class<?> entityType = endpoint.getEntityType();\n            if (entityType == null) {\n                return null;\n            } else {\n                return QueryBuilder.query(\"select x from \" + entityType.getName() + \" x\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [1, 6], [3, 7], [4, 8], [2, 9], [5, 10], [6, 11], [4, 12], [4, 13], [4, 14], [8, 15], [9, 16], [12, 17], [14, 18], [12, 19], [12, 20], [17, 21], [13, 22], [19, 23], [20, 24], [23, 25], [25, 26], [25, 27], [27, 28], [27, 29], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 1], [7, 3], [8, 4], [9, 2], [10, 5], [11, 6], [12, 4], [13, 4], [14, 4], [15, 8], [16, 9], [17, 12], [18, 14], [19, 12], [20, 12], [21, 17], [22, 13], [23, 19], [24, 20], [25, 23], [26, 25], [27, 25], [28, 27], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "createDeleteHandler", "code": "    protected DeleteHandler<Object> createDeleteHandler() {\n        Class<?> entityType = getEndpoint().getEntityType();\n        if (entityType != null) {\n            List<Method> methods = ObjectHelper.findMethodsWithAnnotation(entityType, Consumed.class);\n            if (methods.size() > 1) {\n                throw new IllegalArgumentException(\"Only one method can be annotated with the @Consumed annotation but found: \" + methods);\n            } else if (methods.size() == 1) {\n                final Method method = methods.get(0);\n\n                return new DeleteHandler<Object>() {\n                    public void deleteObject(EntityManager entityManager, Object entityBean) {\n                        ObjectHelper.invokeMethod(method, entityBean);\n                    }\n                };\n            }\n        }\n        if (getEndpoint().isConsumeDelete()) {\n            return new DeleteHandler<Object>() {\n                public void deleteObject(EntityManager entityManager, Object entityBean) {\n                    entityManager.remove(entityBean);\n                }\n            };\n        } else {\n            return new DeleteHandler<Object>() {\n                public void deleteObject(EntityManager entityManager, Object entityBean) {", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "RETURN", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "FUNC_DECL", "FUNC_DECL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "FUNC_DECL", "CALL", "LITERAL_ANCHOR", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [2, 9], [2, 10], [5, 11], [3, 12], [6, 13], [7, 14], [9, 15], [9, 16], [12, 17], [13, 18], [14, 19], [15, 20], [9, 21], [16, 22], [16, 23], [10, 24], [18, 25], [18, 26], [19, 27], [19, 28], [15, 29], [15, 30], [20, 31], [20, 32], [21, 33], [19, 34], [29, 35], [33, 36], [35, 37], [30, 38], [36, 39], [37, 40], [37, 41], [38, 42], [37, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 2], [10, 2], [11, 5], [12, 3], [13, 6], [14, 7], [15, 9], [16, 9], [17, 12], [18, 13], [19, 14], [20, 15], [21, 9], [22, 16], [23, 16], [24, 10], [25, 18], [26, 18], [27, 19], [28, 19], [29, 15], [30, 15], [31, 20], [32, 20], [33, 21], [34, 19], [35, 29], [36, 33], [37, 35], [38, 30], [39, 36], [40, 37], [41, 37], [42, 38], [43, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "configureParameters", "code": "    protected void configureParameters(Query query) {\n        int maxResults = endpoint.getMaximumResults();\n        if (maxResults > 0) {\n            query.setMaxResults(maxResults);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createExchange", "code": "    protected Exchange createExchange(Object result) {\n        Exchange exchange = endpoint.createExchange();\n        exchange.getIn().setBody(result);\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "JpaConsumer", "code": "    public JpaConsumer(JpaEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n        this.template = endpoint.createTransactionStrategy();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "poi-2.0-5586", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/DimensionsRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DimensionsRecord", "code": "public class DimensionsRecord\n    extends Record\n{\n    public final static short sid = 0x200;\n    private int               field_1_first_row;\n    private short             field_3_first_col;\n    private short             field_4_last_col;\n\n    public DimensionsRecord()\n    {\n    }\n\n    /**\n     * Constructs a Dimensions record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x200 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public DimensionsRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a Dimensions record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x200 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public DimensionsRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A valid DIMENSIONS RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_first_row = LittleEndian.getInt(data, 0 + offset);\n        field_2_last_row  = LittleEndian.getInt(data, 4 + offset);\n        field_3_first_col = LittleEndian.getShort(data, 8 + offset);\n        field_4_last_col  = LittleEndian.getShort(data, 10 + offset);\n        field_5_zero      = LittleEndian.getShort(data, 12 + offset);\n    }\n\n    /**\n     * set the first row number for the sheet\n     * @param row - first row on the sheet\n     */\n\n    public void setFirstRow(int row)\n    {\n        field_1_first_row = row;\n    }\n\n    /**\n     * set the last row number for the sheet\n     * @param row - last row on the sheet\n     */\n\n    public void setLastRow(int row)\n    {\n        field_2_last_row = row;\n    }\n\n    /**\n     * set the first column number for the sheet\n     * @param col  first column on the sheet\n     */\n\n    public void setFirstCol(short col)\n    {\n        field_3_first_col = col;\n    }\n\n    /**\n     * set the last col number for the sheet\n     * @param col  last column on the sheet\n     */\n\n    public void setLastCol(short col)\n    {\n        field_4_last_col = col;\n    }\n\n    /**\n     * get the first row number for the sheet\n     * @return row - first row on the sheet\n     */\n\n    public int getFirstRow()\n    {\n        return field_1_first_row;\n    }\n\n    /**\n     * get the last row number for the sheet\n     * @return row - last row on the sheet\n     */\n\n    public int getLastRow()\n    {\n        return field_2_last_row;\n    }\n\n    /**\n     * get the first column number for the sheet\n     * @return column - first column on the sheet\n     */\n\n    public short getFirstCol()\n    {\n        return field_3_first_col;\n    }\n\n    /**\n     * get the last col number for the sheet\n     * @return column - last column on the sheet\n     */\n\n    public short getLastCol()\n    {\n        return field_4_last_col;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DIMENSIONS]\\n\");\n        buffer.append(\"    .firstrow       = \")\n            .append(Integer.toHexString(getFirstRow())).append(\"\\n\");\n        buffer.append(\"    .lastrow        = \")\n            .append(Integer.toHexString(getLastRow())).append(\"\\n\");\n        buffer.append(\"    .firstcol       = \")\n            .append(Integer.toHexString(getFirstCol())).append(\"\\n\");\n        buffer.append(\"    .lastcol        = \")\n            .append(Integer.toHexString(getLastCol())).append(\"\\n\");\n        buffer.append(\"    .zero           = \")\n            .append(Integer.toHexString(field_5_zero)).append(\"\\n\");\n        buffer.append(\"[/DIMENSIONS]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 14);\n        LittleEndian.putInt(data, 4 + offset, getFirstRow());\n        LittleEndian.putInt(data, 8 + offset, getLastRow());\n        LittleEndian.putShort(data, 12 + offset, getFirstCol());\n        LittleEndian.putShort(data, 14 + offset, getLastCol());\n        LittleEndian.putShort(data, 16 + offset, ( short ) 0);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 18;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      DimensionsRecord rec = new DimensionsRecord();\n      rec.field_1_first_row = field_1_first_row;\n      rec.field_2_last_row = field_2_last_row;\n      rec.field_3_first_col = field_3_first_col;\n      rec.field_4_last_col = field_4_last_col;\n      rec.field_5_zero = field_5_zero;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A valid DIMENSIONS RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_first_row = LittleEndian.getInt(data, 0 + offset);\n        field_2_last_row  = LittleEndian.getInt(data, 4 + offset);\n        field_3_first_col = LittleEndian.getShort(data, 8 + offset);\n        field_4_last_col  = LittleEndian.getShort(data, 10 + offset);\n        field_5_zero      = LittleEndian.getShort(data, 12 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [16, 21], [17, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [21, 16], [22, 17], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "setFirstRow", "code": "    public void setFirstRow(int row)\n    {\n        field_1_first_row = row;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLastRow", "code": "    public void setLastRow(int row)\n    {\n        field_2_last_row = row;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFirstCol", "code": "    public void setFirstCol(short col)\n    {\n        field_3_first_col = col;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLastCol", "code": "    public void setLastCol(short col)\n    {\n        field_4_last_col = col;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstRow", "code": "    public int getFirstRow()\n    {\n        return field_1_first_row;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastRow", "code": "    public int getLastRow()\n    {\n        return field_2_last_row;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstCol", "code": "    public short getFirstCol()\n    {\n        return field_3_first_col;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastCol", "code": "    public short getLastCol()\n    {\n        return field_4_last_col;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DIMENSIONS]\\n\");\n        buffer.append(\"    .firstrow       = \")\n            .append(Integer.toHexString(getFirstRow())).append(\"\\n\");\n        buffer.append(\"    .lastrow        = \")\n            .append(Integer.toHexString(getLastRow())).append(\"\\n\");\n        buffer.append(\"    .firstcol       = \")\n            .append(Integer.toHexString(getFirstCol())).append(\"\\n\");\n        buffer.append(\"    .lastcol        = \")\n            .append(Integer.toHexString(getLastCol())).append(\"\\n\");\n        buffer.append(\"    .zero           = \")\n            .append(Integer.toHexString(field_5_zero)).append(\"\\n\");\n        buffer.append(\"[/DIMENSIONS]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [4, 11], [5, 12], [5, 13], [5, 14], [6, 15], [6, 16], [6, 17], [7, 18], [7, 19], [7, 20], [8, 21], [8, 22], [8, 23], [9, 24], [9, 25], [9, 26], [10, 27], [2, 28], [13, 29], [14, 30], [16, 31], [17, 32], [19, 33], [20, 34], [22, 35], [23, 36], [25, 37], [26, 38], [32, 39], [34, 40], [36, 41], [38, 42], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 4], [12, 5], [13, 5], [14, 5], [15, 6], [16, 6], [17, 6], [18, 7], [19, 7], [20, 7], [21, 8], [22, 8], [23, 8], [24, 9], [25, 9], [26, 9], [27, 10], [28, 2], [29, 13], [30, 14], [31, 16], [32, 17], [33, 19], [34, 20], [35, 22], [36, 23], [37, 25], [38, 26], [39, 32], [40, 34], [41, 36], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 14);\n        LittleEndian.putInt(data, 4 + offset, getFirstRow());\n        LittleEndian.putInt(data, 8 + offset, getLastRow());\n        LittleEndian.putShort(data, 12 + offset, getFirstCol());\n        LittleEndian.putShort(data, 14 + offset, getLastCol());\n        LittleEndian.putShort(data, 16 + offset, ( short ) 0);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [5, 12], [6, 13], [6, 14], [7, 15], [7, 16], [8, 17], [8, 18], [9, 19], [9, 20], [10, 21], [11, 22], [5, 23], [12, 24], [14, 25], [16, 26], [18, 27], [20, 28], [10, 29], [21, 30], [22, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 5], [13, 6], [14, 6], [15, 7], [16, 7], [17, 8], [18, 8], [19, 9], [20, 9], [21, 10], [22, 11], [23, 5], [24, 12], [25, 14], [26, 16], [27, 18], [28, 20], [29, 10], [30, 21], [31, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 18;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      DimensionsRecord rec = new DimensionsRecord();\n      rec.field_1_first_row = field_1_first_row;\n      rec.field_2_last_row = field_2_last_row;\n      rec.field_3_first_col = field_3_first_col;\n      rec.field_4_last_col = field_4_last_col;\n      rec.field_5_zero = field_5_zero;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "DimensionsRecord", "code": "    public DimensionsRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DimensionsRecord", "code": "    public DimensionsRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DimensionsRecord", "code": "    public DimensionsRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.7-1355", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/VerifyJar.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.VerifyJar", "code": "public class VerifyJar extends AbstractJarSignerTask {\n    /**\n     * no file message {@value}\n     */\n    public static final String ERROR_NO_FILE = \"Not found :\";\n\n    /**\n     * The string we look for in the text to indicate direct verification\n     */\n    private static final String VERIFIED_TEXT = \"jar verified.\";\n\n    /**\n     * certification flag\n     */\n    private boolean certificates = false;\n    private BufferingOutputFilter outputCache = new BufferingOutputFilter();\n    /** Error output if there is a failure to verify the jar. */\n    public static final String ERROR_NO_VERIFY = \"Failed to verify \";\n\n    /**\n     * Ask for certificate information to be printed\n     * @param certificates if true print certificates.\n     */\n    public void setCertificates(boolean certificates) {\n        this.certificates = certificates;\n    }\n\n    /**\n     * verify our jar files\n     * @throws BuildException on error.\n     */\n    public void execute() throws BuildException {\n        final boolean hasJar = jar != null;\n\n        if (!hasJar && !hasResources()) {\n            throw new BuildException(ERROR_NO_SOURCE);\n        }\n\n        beginExecution();\n\n        RedirectorElement redirector = getRedirector();\n        redirector.setAlwaysLog(true);\n        FilterChain outputFilterChain = redirector.createOutputFilterChain();\n        outputFilterChain.add(outputCache);\n\n        try {\n            Path sources = createUnifiedSourcePath();\n            Iterator iter = sources.iterator();\n            while (iter.hasNext()) {\n                FileResource fr = (FileResource) iter.next();\n                verifyOneJar(fr.getFile());\n            }\n\n        } finally {\n            endExecution();\n        }\n\n    }\n\n    /**\n     * verify a JAR.\n     * @param jar the jar to verify.\n     * @throws BuildException if the file could not be verified\n     */\n    private void verifyOneJar(File jar) {\n        if (!jar.exists()) {\n            throw new BuildException(ERROR_NO_FILE + jar);\n        }\n        final ExecTask cmd = createJarSigner();\n\n        setCommonOptions(cmd);\n        bindToKeystore(cmd);\n\n        addValue(cmd, \"-verify\");\n\n        if (certificates) {\n            addValue(cmd, \"-certs\");\n        }\n\n        addValue(cmd, jar.getPath());\n\n        log(\"Verifying JAR: \" + jar.getAbsolutePath());\n        outputCache.clear();\n        BuildException ex = null;\n        try {\n            cmd.execute();\n        } catch (BuildException e) {\n            ex = e;\n        }\n        String results = outputCache.toString();\n        if (ex != null) {\n            if (results.indexOf(\"zip file closed\") >= 0) {\n                log(\"You are running \" + JARSIGNER_COMMAND + \" against a JVM with\"\n                    + \" a known bug that manifests as an IllegalStateException.\",\n                    Project.MSG_WARN);\n            } else {\n                throw ex;\n            }\n        }\n        if (results.indexOf(VERIFIED_TEXT) < 0) {\n            throw new BuildException(ERROR_NO_VERIFY + jar);\n        }\n    }\n\n    /**\n     * we are not thread safe here. Do not use on multiple threads at the same time.\n     */\n    private static class BufferingOutputFilter implements ChainableReader {\n\n        private BufferingOutputFilterReader buffer;\n\n        public Reader chain(Reader rdr) {\n            buffer = new BufferingOutputFilterReader(rdr);\n            return buffer;\n        }\n\n        public String toString() {\n            return buffer.toString();\n        }\n\n        public void clear() {\n            if (buffer != null) {\n                buffer.clear();\n            }\n        }\n    }\n\n    /**\n     * catch the output of the buffer\n     */\n    private static class BufferingOutputFilterReader extends Reader {\n\n        private Reader next;\n\n        private StringBuffer buffer = new StringBuffer();\n\n        public BufferingOutputFilterReader(Reader next) {\n            this.next = next;\n        }\n\n        public int read(char[] cbuf, int off, int len) throws IOException {\n            int result = next.read(cbuf, off, len);\n            buffer.append(cbuf, off, len);\n            return result;\n        }\n\n        public void close() throws IOException {\n            next.close();\n        }\n\n        public String toString() {\n            return buffer.toString();\n        }\n\n        public void clear() {\n            buffer = new StringBuffer();", "functions": [{"function_name": "setCertificates", "code": "    public void setCertificates(boolean certificates) {\n        this.certificates = certificates;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        final boolean hasJar = jar != null;\n\n        if (!hasJar && !hasResources()) {\n            throw new BuildException(ERROR_NO_SOURCE);\n        }\n\n        beginExecution();\n\n        RedirectorElement redirector = getRedirector();\n        redirector.setAlwaysLog(true);\n        FilterChain outputFilterChain = redirector.createOutputFilterChain();\n        outputFilterChain.add(outputCache);\n\n        try {\n            Path sources = createUnifiedSourcePath();\n            Iterator iter = sources.iterator();\n            while (iter.hasNext()) {\n                FileResource fr = (FileResource) iter.next();\n                verifyOneJar(fr.getFile());\n            }\n\n        } finally {\n            endExecution();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [0, 9], [0, 10], [0, 11], [4, 12], [1, 13], [6, 14], [2, 15], [10, 16], [3, 17], [4, 18], [12, 19], [5, 20], [6, 21], [7, 22], [8, 23], [18, 24], [20, 25], [6, 26], [26, 27], [21, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 0], [10, 0], [11, 0], [12, 4], [13, 1], [14, 6], [15, 2], [16, 10], [17, 3], [18, 4], [19, 12], [20, 5], [21, 6], [22, 7], [23, 8], [24, 18], [25, 20], [26, 6], [27, 26], [28, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "verifyOneJar", "code": "    private void verifyOneJar(File jar) {\n        if (!jar.exists()) {\n            throw new BuildException(ERROR_NO_FILE + jar);\n        }\n        final ExecTask cmd = createJarSigner();\n\n        setCommonOptions(cmd);\n        bindToKeystore(cmd);\n\n        addValue(cmd, \"-verify\");\n\n        if (certificates) {\n            addValue(cmd, \"-certs\");\n        }\n\n        addValue(cmd, jar.getPath());\n\n        log(\"Verifying JAR: \" + jar.getAbsolutePath());\n        outputCache.clear();\n        BuildException ex = null;\n        try {\n            cmd.execute();\n        } catch (BuildException e) {\n            ex = e;\n        }\n        String results = outputCache.toString();\n        if (ex != null) {\n            if (results.indexOf(\"zip file closed\") >= 0) {\n                log(\"You are running \" + JARSIGNER_COMMAND + \" against a JVM with\"\n                    + \" a known bug that manifests as an IllegalStateException.\",\n                    Project.MSG_WARN);\n            } else {\n                throw ex;\n            }\n        }\n        if (results.indexOf(VERIFIED_TEXT) < 0) {\n            throw new BuildException(ERROR_NO_VERIFY + jar);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [4, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [8, 19], [1, 20], [10, 21], [10, 22], [2, 23], [11, 24], [3, 25], [4, 26], [5, 27], [14, 28], [15, 29], [16, 30], [7, 31], [8, 32], [20, 33], [23, 34], [12, 35], [28, 36], [28, 37], [6, 38], [32, 39], [33, 40], [23, 41], [34, 42], [34, 43], [38, 44], [39, 45], [23, 46], [43, 47], [46, 48], [48, 49], [48, 50], [50, 51], [50, 52], [52, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 4], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 8], [20, 1], [21, 10], [22, 10], [23, 2], [24, 11], [25, 3], [26, 4], [27, 5], [28, 14], [29, 15], [30, 16], [31, 7], [32, 8], [33, 20], [34, 23], [35, 12], [36, 28], [37, 28], [38, 6], [39, 32], [40, 33], [41, 23], [42, 34], [43, 34], [44, 38], [45, 39], [46, 23], [47, 43], [48, 46], [49, 48], [50, 48], [51, 50], [52, 50], [53, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}], "label": 1}
{"sample_id": "poi-2.5-5627", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/usermodel/HSSFHeader.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFHeader", "code": "public class HSSFHeader extends Object {\n\n  HeaderRecord headerRecord;\n  String left;\n  String center;\n  String right;\n\n  /**\n   * Constructor.  Creates a new header interface from a header record\n   * @param headerRecord Header record to create the header with\n   */\n  protected HSSFHeader(HeaderRecord headerRecord) {\n    this.headerRecord = headerRecord;\n    String head = headerRecord.getHeader();\n    while (head != null && head.length() > 1) {\n\tint pos = head.length();\n\tswitch (head.substring(1, 2).charAt(0)) {\n\tcase 'L' :\n \t    if (head.indexOf(\"&C\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&C\"));\n\t    } \n\t    if (head.indexOf(\"&R\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&R\"));\n\t    } \n\t    left = head.substring(2, pos);\n\t    head = head.substring(pos);\n\t    break;\n\tcase 'C' : \n\t    if (head.indexOf(\"&L\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&L\"));\n\t    } \n\t    if (head.indexOf(\"&R\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&R\"));\n\t    } \n\t    center = head.substring(2, pos);\n\t    head = head.substring(pos);\n\t    break;\n\tcase 'R' : \n \t    if (head.indexOf(\"&C\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&C\"));\n\t    } \n\t    if (head.indexOf(\"&L\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&L\"));\n\t    } \n\t    right = head.substring(2, pos);\n\t    head = head.substring(pos);\n\t    break;\n\tdefault : head = null;\n\t}\n    }\n  }\n\n  /**\n   * Get the left side of the header.\n   * @return The string representing the left side.\n   */\n  public String getLeft() {\n    return left;\n  }\n\n  /**\n   * Sets the left string.\n   * @newLeft The string to set as the left side.\n   */\n  public void setLeft(String newLeft) {\n    left = newLeft;\n    createHeaderString();\n  }\n\n  /**\n   * Get the center of the header.\n   * @return The string representing the center.\n   */\n  public String getCenter() {\n    return center;\n  }\n\n  /**\n   * Sets the center string.\n   * @newLeft The string to set as the center.\n   */\n  public void setCenter(String newCenter) {\n    center = newCenter;\n    createHeaderString();\n  }\n\n  /**\n   * Get the right side of the header.\n   * @return The string representing the right side.\n   */\n  public String getRight() {\n    return right;\n  }\n\n  /**\n   * Sets the right string.\n   * @newLeft The string to set as the right side.\n   */\n  public void setRight(String newRight) {\n    right = newRight;\n    createHeaderString();\n  }\n\n  /**\n   * Creates the complete header string based on the left, center, and middle\n   * strings.\n   */\n  private void createHeaderString() {\n    headerRecord.setHeader(\n    \"&C\" + (center == null ? \"\" : center) +\n    \"&L\" + (left == null ? \"\" : left) +\n    \"&R\" + (right == null ? \"\" : right));\n    headerRecord.setHeaderLength((byte)headerRecord.getHeader().length());\n  }\n\n  /**\n   * Returns the string that represents the change in font size.\n   * @param size the new font size\n   * @return The special string to represent a new font size\n   */\n  public static String fontSize(short size) {\n    return \"&\" + size;\n  }\n\n  /**\n   * Returns the string that represents the change in font.\n   * @param font the new font\n   * @param style the fonts style\n   * @return The special string to represent a new font size\n   */\n  public static String font(String font, String style) {\n    return \"&\\\"\" + font + \",\" + style + \"\\\"\";\n  }\n\n  /**\n   * Returns the string representing the current page number\n   * @return The special string for page number\n   */\n  public static String page() {\n    return \"&P\";\n  }\n\n  /**\n   * Returns the string representing the number of pages.\n   * @return The special string for the number of pages\n   */\n  public static String numPages() {\n    return \"&N\";\n  }\n\n  /**\n   * Returns the string representing the current date\n   * @return The special string for the date\n   */\n  public static String date() {\n    return \"&D\";\n  }\n\n  /**\n   * Returns the string representing the current time\n   * @return The special string for the time\n   */\n  public static String time() {\n    return \"&T\";\n  }\n\n  /**\n   * Returns the string representing the current file name\n   * @return The special string for the file name\n   */\n  public static String file() {\n    return \"&F\";\n  }\n\n  /**\n   * Returns the string representing the current tab (sheet) name\n   * @return The special string for tab name\n   */\n  public static String tab() {\n    return \"&A\";", "functions": [{"function_name": "getLeft", "code": "  public String getLeft() {\n    return left;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLeft", "code": "  public void setLeft(String newLeft) {\n    left = newLeft;\n    createHeaderString();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCenter", "code": "  public String getCenter() {\n    return center;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCenter", "code": "  public void setCenter(String newCenter) {\n    center = newCenter;\n    createHeaderString();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRight", "code": "  public String getRight() {\n    return right;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRight", "code": "  public void setRight(String newRight) {\n    right = newRight;\n    createHeaderString();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createHeaderString", "code": "  private void createHeaderString() {\n    headerRecord.setHeader(\n    \"&C\" + (center == null ? \"\" : center) +\n    \"&L\" + (left == null ? \"\" : left) +\n    \"&R\" + (right == null ? \"\" : right));\n    headerRecord.setHeaderLength((byte)headerRecord.getHeader().length());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [3, 6], [4, 7], [5, 8], [5, 9], [6, 10], [6, 11], [9, 12], [11, 13], [11, 14], [13, 15], [13, 16], [14, 17], [14, 18], [16, 19], [18, 20], [18, 21], [20, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 3], [7, 4], [8, 5], [9, 5], [10, 6], [11, 6], [12, 9], [13, 11], [14, 11], [15, 13], [16, 13], [17, 14], [18, 14], [19, 16], [20, 18], [21, 18], [22, 20], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "fontSize", "code": "  public static String fontSize(short size) {\n    return \"&\" + size;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "font", "code": "  public static String font(String font, String style) {\n    return \"&\\\"\" + font + \",\" + style + \"\\\"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [6, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 6], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "page", "code": "  public static String page() {\n    return \"&P\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "numPages", "code": "  public static String numPages() {\n    return \"&N\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "date", "code": "  public static String date() {\n    return \"&D\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "time", "code": "  public static String time() {\n    return \"&T\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "file", "code": "  public static String file() {\n    return \"&F\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "tab", "code": "  public static String tab() {\n    return \"&A\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFHeader", "code": "  protected HSSFHeader(HeaderRecord headerRecord) {\n    this.headerRecord = headerRecord;\n    String head = headerRecord.getHeader();\n    while (head != null && head.length() > 1) {\n\tint pos = head.length();\n\tswitch (head.substring(1, 2).charAt(0)) {\n\tcase 'L' :\n \t    if (head.indexOf(\"&C\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&C\"));\n\t    } \n\t    if (head.indexOf(\"&R\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&R\"));\n\t    } \n\t    left = head.substring(2, pos);\n\t    head = head.substring(pos);\n\t    break;\n\tcase 'C' : \n\t    if (head.indexOf(\"&L\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&L\"));\n\t    } \n\t    if (head.indexOf(\"&R\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&R\"));\n\t    } \n\t    center = head.substring(2, pos);\n\t    head = head.substring(pos);\n\t    break;\n\tcase 'R' : \n \t    if (head.indexOf(\"&C\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&C\"));\n\t    } \n\t    if (head.indexOf(\"&L\") >= 0) {\n\t\tpos = Math.min(pos, head.indexOf(\"&L\"));\n\t    } \n\t    right = head.substring(2, pos);\n\t    head = head.substring(pos);\n\t    break;\n\tdefault : head = null;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "SWITCH", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [4, 8], [4, 9], [2, 10], [6, 11], [8, 12], [8, 13], [9, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [11, 27], [11, 28], [11, 29], [7, 30], [6, 31], [6, 32], [6, 33], [16, 34], [17, 35], [6, 36], [6, 37], [20, 38], [21, 39], [6, 40], [6, 41], [24, 42], [25, 43], [29, 44], [31, 45], [32, 46], [33, 47], [34, 48], [34, 49], [35, 50], [35, 51], [36, 52], [37, 53], [38, 54], [38, 55], [39, 56], [39, 57], [40, 58], [41, 59], [42, 60], [42, 61], [43, 62], [43, 63], [47, 64], [16, 65], [49, 66], [17, 67], [51, 68], [53, 69], [20, 70], [55, 71], [21, 72], [57, 73], [59, 74], [24, 75], [61, 76], [25, 77], [63, 78], [65, 79], [67, 80], [70, 81], [72, 82], [75, 83], [77, 84], [79, 85], [80, 86], [81, 87], [82, 88], [83, 89], [84, 90], [85, 91], [86, 92], [87, 93], [88, 94], [89, 95], [90, 96], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 4], [9, 4], [10, 2], [11, 6], [12, 8], [13, 8], [14, 9], [15, 6], [16, 6], [17, 6], [18, 6], [19, 6], [20, 6], [21, 6], [22, 6], [23, 6], [24, 6], [25, 6], [26, 6], [27, 11], [28, 11], [29, 11], [30, 7], [31, 6], [32, 6], [33, 6], [34, 16], [35, 17], [36, 6], [37, 6], [38, 20], [39, 21], [40, 6], [41, 6], [42, 24], [43, 25], [44, 29], [45, 31], [46, 32], [47, 33], [48, 34], [49, 34], [50, 35], [51, 35], [52, 36], [53, 37], [54, 38], [55, 38], [56, 39], [57, 39], [58, 40], [59, 41], [60, 42], [61, 42], [62, 43], [63, 43], [64, 47], [65, 16], [66, 49], [67, 17], [68, 51], [69, 53], [70, 20], [71, 55], [72, 21], [73, 57], [74, 59], [75, 24], [76, 61], [77, 25], [78, 63], [79, 65], [80, 67], [81, 70], [82, 72], [83, 75], [84, 77], [85, 79], [86, 80], [87, 81], [88, 82], [89, 83], [90, 84], [91, 85], [92, 86], [93, 87], [94, 88], [95, 89], [96, 90], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96]]}], "label": 1}
{"sample_id": "xalan-2.6-7814", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/extensions/ObjectFactory.java", "language": "java", "name": "org.apache.xalan.extensions.ObjectFactory", "code": "class ObjectFactory {\n\n\n    private static final String DEFAULT_PROPERTIES_FILENAME =\n                                                     \"xalan.properties\";\n\n    private static final String SERVICES_PATH = \"META-INF/services/\";\n\n    /** Set to true for debugging */\n    private static final boolean DEBUG = false;\n\n    /** cache the contents of the xalan.properties file.\n     *  Until an attempt has been made to read this file, this will\n     * be null; if the file does not exist or we encounter some other error\n     * during the read, this will be empty.\n     */\n    private static Properties fXalanProperties = null;\n\n    /***\n     * Cache the time stamp of the xalan.properties file so\n     * that we know if it's been modified and can invalidate\n     * the cache when necessary.\n     */\n    private static long fLastModified = -1;\n\n\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);\n\t\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);\n        }\n\t}\n\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);\n        }\n\t}\n    /**\n     * Finds the name of the required implementation class in the specified\n     * order.  The specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return name of class that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        FileInputStream fis =\n                                         ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                        fis.close();\n                    }\n\t            } catch (Exception x) {\n\t                fXalanProperties = null;\n\t                fLastModified = -1;\n\t            }\n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }else {\n            try {\n                FileInputStream fis =\n                           ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                fis.close();\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n\t\t\t}\n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);\n\t}\n\n    /** Prints a message to standard error if debugging is enabled. */\n    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);\n        }\n\t}\n    /**\n     * Figure out which ClassLoader to use.  For JDK 1.2 and later use\n     * the context ClassLoader.\n     */\n    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;\n\t}\n    /**\n     * Create an instance of a class using the specified ClassLoader\n     */ \n    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);\n        }\n    }\n\n    /**\n     * Find a Class using the specified ClassLoader\n     */ \n    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n            if (security != null){\n                security.checkPackageAccess(className);\n             }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;\n    }\n\n    /**\n     * Find the name of service provider using Jar Service Provider Mechanism\n     *\n     * @return instance of provider class if found or null\n     */\n    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n            rd.close();\n        } catch (IOException x) {\n            return null;\n        }\n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;\n    }\n\n\n    /**\n     * A configuration error.\n     */\n    static class ConfigurationError \n        extends Error {\n\n\n        /** Exception. */\n        private Exception exception;\n\n\n        /**\n         * Construct a new instance with the specified detail string and\n         * exception.\n         */\n        ConfigurationError(String msg, Exception x) {\n            super(msg);\n            this.exception = x;\n\t\t}\n\n        /** Returns the exception associated to this error. */\n        Exception getException() {\n            return exception;", "functions": [{"function_name": "createObject", "code": "    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createObject", "code": "    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [7, 11], [1, 12], [2, 13], [10, 14], [3, 15], [11, 16], [12, 17], [9, 18], [13, 19], [16, 20], [17, 21], [19, 22], [19, 23], [20, 24], [23, 25], [23, 26], [24, 27], [24, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 7], [12, 1], [13, 2], [14, 10], [15, 3], [16, 11], [17, 12], [18, 9], [19, 13], [20, 16], [21, 17], [22, 19], [23, 19], [24, 20], [25, 23], [26, 23], [27, 24], [28, 24], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [8, 13], [9, 14], [1, 15], [12, 16], [3, 17], [4, 18], [13, 19], [14, 20], [15, 21], [11, 22], [2, 23], [19, 24], [20, 25], [21, 26], [22, 27], [24, 28], [25, 29], [25, 30], [26, 31], [26, 32], [28, 33], [28, 34], [30, 35], [32, 36], [34, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 8], [14, 9], [15, 1], [16, 12], [17, 3], [18, 4], [19, 13], [20, 14], [21, 15], [22, 11], [23, 2], [24, 19], [25, 20], [26, 21], [27, 22], [28, 24], [29, 25], [30, 25], [31, 26], [32, 26], [33, 28], [34, 28], [35, 30], [36, 32], [37, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "lookUpFactoryClassName", "code": "    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        FileInputStream fis =\n                                         ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                        fis.close();\n                    }\n\t            } catch (Exception x) {\n\t                fXalanProperties = null;\n\t                fLastModified = -1;\n\t            }\n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }else {\n            try {\n                FileInputStream fis =\n                           ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                fis.close();\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n\t\t\t}\n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "TRY", "VAR_DECL", "CATCH", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "IF", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CATCH", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [5, 13], [5, 14], [5, 15], [2, 16], [11, 17], [3, 18], [3, 19], [3, 20], [3, 21], [12, 22], [4, 23], [14, 24], [6, 25], [2, 26], [18, 27], [3, 28], [3, 29], [19, 30], [19, 31], [14, 32], [24, 33], [15, 34], [26, 35], [18, 36], [27, 37], [28, 38], [28, 39], [28, 40], [19, 41], [19, 42], [19, 43], [20, 44], [21, 45], [14, 46], [35, 47], [36, 48], [36, 49], [36, 50], [18, 51], [40, 52], [29, 53], [30, 54], [30, 55], [41, 56], [42, 57], [43, 58], [31, 59], [46, 60], [47, 61], [47, 62], [36, 63], [36, 64], [36, 65], [51, 66], [38, 67], [38, 68], [39, 69], [40, 70], [40, 71], [52, 72], [54, 73], [55, 74], [58, 75], [59, 76], [60, 77], [62, 78], [63, 79], [49, 80], [50, 81], [67, 82], [68, 83], [39, 84], [39, 85], [39, 86], [71, 87], [75, 88], [81, 89], [69, 90], [86, 91], [71, 92], [87, 93], [88, 94], [88, 95], [70, 96], [70, 97], [71, 98], [93, 99], [96, 100], [97, 101], [98, 102], [99, 103], [92, 104], [92, 105], [104, 106], [105, 107], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 5], [14, 5], [15, 5], [16, 2], [17, 11], [18, 3], [19, 3], [20, 3], [21, 3], [22, 12], [23, 4], [24, 14], [25, 6], [26, 2], [27, 18], [28, 3], [29, 3], [30, 19], [31, 19], [32, 14], [33, 24], [34, 15], [35, 26], [36, 18], [37, 27], [38, 28], [39, 28], [40, 28], [41, 19], [42, 19], [43, 19], [44, 20], [45, 21], [46, 14], [47, 35], [48, 36], [49, 36], [50, 36], [51, 18], [52, 40], [53, 29], [54, 30], [55, 30], [56, 41], [57, 42], [58, 43], [59, 31], [60, 46], [61, 47], [62, 47], [63, 36], [64, 36], [65, 36], [66, 51], [67, 38], [68, 38], [69, 39], [70, 40], [71, 40], [72, 52], [73, 54], [74, 55], [75, 58], [76, 59], [77, 60], [78, 62], [79, 63], [80, 49], [81, 50], [82, 67], [83, 68], [84, 39], [85, 39], [86, 39], [87, 71], [88, 75], [89, 81], [90, 69], [91, 86], [92, 71], [93, 87], [94, 88], [95, 88], [96, 70], [97, 70], [98, 71], [99, 93], [100, 96], [101, 97], [102, 98], [103, 99], [104, 92], [105, 92], [106, 104], [107, 105], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107]]}, {"function_name": "debugPrintln", "code": "    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "findClassLoader", "code": "    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [4, 10], [5, 11], [6, 12], [2, 13], [8, 14], [9, 15], [13, 16], [8, 17], [14, 18], [9, 19], [9, 20], [9, 21], [20, 22], [9, 23], [20, 24], [20, 25], [21, 26], [20, 27], [24, 28], [25, 29], [27, 30], [24, 31], [28, 32], [25, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 4], [11, 5], [12, 6], [13, 2], [14, 8], [15, 9], [16, 13], [17, 8], [18, 14], [19, 9], [20, 9], [21, 9], [22, 20], [23, 9], [24, 20], [25, 20], [26, 21], [27, 20], [28, 24], [29, 25], [30, 27], [31, 24], [32, 28], [33, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "newInstance", "code": "    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [6, 11], [1, 12], [10, 13], [11, 14], [12, 15], [8, 16], [9, 17], [13, 18], [14, 19], [15, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [21, 26], [21, 27], [23, 28], [25, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 6], [12, 1], [13, 10], [14, 11], [15, 12], [16, 8], [17, 9], [18, 13], [19, 14], [20, 15], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 21], [27, 21], [28, 23], [29, 25], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "findProviderClass", "code": "    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n            if (security != null){\n                security.checkPackageAccess(className);\n             }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "IF", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "CALL", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [4, 11], [2, 12], [9, 13], [10, 14], [11, 15], [5, 16], [12, 17], [2, 18], [15, 19], [17, 20], [12, 21], [18, 22], [11, 23], [21, 24], [20, 25], [20, 26], [20, 27], [26, 28], [26, 29], [28, 30], [29, 31], [27, 32], [28, 33], [26, 34], [28, 35], [28, 36], [34, 37], [35, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 4], [12, 2], [13, 9], [14, 10], [15, 11], [16, 5], [17, 12], [18, 2], [19, 15], [20, 17], [21, 12], [22, 18], [23, 11], [24, 21], [25, 20], [26, 20], [27, 20], [28, 26], [29, 26], [30, 28], [31, 29], [32, 27], [33, 28], [34, 26], [35, 28], [36, 28], [37, 34], [38, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "findJarServiceProviderName", "code": "    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n            rd.close();\n        } catch (IOException x) {\n            return null;\n        }\n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CATCH", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [5, 17], [0, 18], [7, 19], [8, 20], [0, 21], [2, 22], [15, 23], [15, 24], [16, 25], [3, 26], [3, 27], [4, 28], [5, 29], [18, 30], [7, 31], [19, 32], [8, 33], [8, 34], [20, 35], [21, 36], [9, 37], [10, 38], [11, 39], [12, 40], [2, 41], [23, 42], [24, 43], [25, 44], [27, 45], [17, 46], [29, 47], [30, 48], [31, 49], [33, 50], [41, 51], [46, 52], [47, 53], [48, 54], [48, 55], [34, 56], [51, 57], [52, 58], [53, 59], [55, 60], [33, 61], [33, 62], [61, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 5], [18, 0], [19, 7], [20, 8], [21, 0], [22, 2], [23, 15], [24, 15], [25, 16], [26, 3], [27, 3], [28, 4], [29, 5], [30, 18], [31, 7], [32, 19], [33, 8], [34, 8], [35, 20], [36, 21], [37, 9], [38, 10], [39, 11], [40, 12], [41, 2], [42, 23], [43, 24], [44, 25], [45, 27], [46, 17], [47, 29], [48, 30], [49, 31], [50, 33], [51, 41], [52, 46], [53, 47], [54, 48], [55, 48], [56, 34], [57, 51], [58, 52], [59, 53], [60, 55], [61, 33], [62, 33], [63, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}], "label": 0}
{"sample_id": "poi-2.5-5919", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/DimensionsRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DimensionsRecord", "code": "public class DimensionsRecord\n    extends Record\n{\n    public final static short sid = 0x200;\n    private int               field_1_first_row;\n    private short             field_3_first_col;\n    private short             field_4_last_col;\n\n    public DimensionsRecord()\n    {\n    }\n\n    /**\n     * Constructs a Dimensions record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x200 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public DimensionsRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a Dimensions record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x200 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public DimensionsRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A valid DIMENSIONS RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_first_row = LittleEndian.getInt(data, 0 + offset);\n        field_2_last_row  = LittleEndian.getInt(data, 4 + offset);\n        field_3_first_col = LittleEndian.getShort(data, 8 + offset);\n        field_4_last_col  = LittleEndian.getShort(data, 10 + offset);\n        field_5_zero      = LittleEndian.getShort(data, 12 + offset);\n    }\n\n    /**\n     * set the first row number for the sheet\n     * @param row - first row on the sheet\n     */\n\n    public void setFirstRow(int row)\n    {\n        field_1_first_row = row;\n    }\n\n    /**\n     * set the last row number for the sheet\n     * @param row - last row on the sheet\n     */\n\n    public void setLastRow(int row)\n    {\n        field_2_last_row = row;\n    }\n\n    /**\n     * set the first column number for the sheet\n     * @param col  first column on the sheet\n     */\n\n    public void setFirstCol(short col)\n    {\n        field_3_first_col = col;\n    }\n\n    /**\n     * set the last col number for the sheet\n     * @param col  last column on the sheet\n     */\n\n    public void setLastCol(short col)\n    {\n        field_4_last_col = col;\n    }\n\n    /**\n     * get the first row number for the sheet\n     * @return row - first row on the sheet\n     */\n\n    public int getFirstRow()\n    {\n        return field_1_first_row;\n    }\n\n    /**\n     * get the last row number for the sheet\n     * @return row - last row on the sheet\n     */\n\n    public int getLastRow()\n    {\n        return field_2_last_row;\n    }\n\n    /**\n     * get the first column number for the sheet\n     * @return column - first column on the sheet\n     */\n\n    public short getFirstCol()\n    {\n        return field_3_first_col;\n    }\n\n    /**\n     * get the last col number for the sheet\n     * @return column - last column on the sheet\n     */\n\n    public short getLastCol()\n    {\n        return field_4_last_col;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DIMENSIONS]\\n\");\n        buffer.append(\"    .firstrow       = \")\n            .append(Integer.toHexString(getFirstRow())).append(\"\\n\");\n        buffer.append(\"    .lastrow        = \")\n            .append(Integer.toHexString(getLastRow())).append(\"\\n\");\n        buffer.append(\"    .firstcol       = \")\n            .append(Integer.toHexString(getFirstCol())).append(\"\\n\");\n        buffer.append(\"    .lastcol        = \")\n            .append(Integer.toHexString(getLastCol())).append(\"\\n\");\n        buffer.append(\"    .zero           = \")\n            .append(Integer.toHexString(field_5_zero)).append(\"\\n\");\n        buffer.append(\"[/DIMENSIONS]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 14);\n        LittleEndian.putInt(data, 4 + offset, getFirstRow());\n        LittleEndian.putInt(data, 8 + offset, getLastRow());\n        LittleEndian.putShort(data, 12 + offset, getFirstCol());\n        LittleEndian.putShort(data, 14 + offset, getLastCol());\n        LittleEndian.putShort(data, 16 + offset, ( short ) 0);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 18;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      DimensionsRecord rec = new DimensionsRecord();\n      rec.field_1_first_row = field_1_first_row;\n      rec.field_2_last_row = field_2_last_row;\n      rec.field_3_first_col = field_3_first_col;\n      rec.field_4_last_col = field_4_last_col;\n      rec.field_5_zero = field_5_zero;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A valid DIMENSIONS RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_first_row = LittleEndian.getInt(data, 0 + offset);\n        field_2_last_row  = LittleEndian.getInt(data, 4 + offset);\n        field_3_first_col = LittleEndian.getShort(data, 8 + offset);\n        field_4_last_col  = LittleEndian.getShort(data, 10 + offset);\n        field_5_zero      = LittleEndian.getShort(data, 12 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [16, 21], [17, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [21, 16], [22, 17], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "setFirstRow", "code": "    public void setFirstRow(int row)\n    {\n        field_1_first_row = row;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLastRow", "code": "    public void setLastRow(int row)\n    {\n        field_2_last_row = row;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFirstCol", "code": "    public void setFirstCol(short col)\n    {\n        field_3_first_col = col;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLastCol", "code": "    public void setLastCol(short col)\n    {\n        field_4_last_col = col;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstRow", "code": "    public int getFirstRow()\n    {\n        return field_1_first_row;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastRow", "code": "    public int getLastRow()\n    {\n        return field_2_last_row;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstCol", "code": "    public short getFirstCol()\n    {\n        return field_3_first_col;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastCol", "code": "    public short getLastCol()\n    {\n        return field_4_last_col;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DIMENSIONS]\\n\");\n        buffer.append(\"    .firstrow       = \")\n            .append(Integer.toHexString(getFirstRow())).append(\"\\n\");\n        buffer.append(\"    .lastrow        = \")\n            .append(Integer.toHexString(getLastRow())).append(\"\\n\");\n        buffer.append(\"    .firstcol       = \")\n            .append(Integer.toHexString(getFirstCol())).append(\"\\n\");\n        buffer.append(\"    .lastcol        = \")\n            .append(Integer.toHexString(getLastCol())).append(\"\\n\");\n        buffer.append(\"    .zero           = \")\n            .append(Integer.toHexString(field_5_zero)).append(\"\\n\");\n        buffer.append(\"[/DIMENSIONS]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [4, 11], [5, 12], [5, 13], [5, 14], [6, 15], [6, 16], [6, 17], [7, 18], [7, 19], [7, 20], [8, 21], [8, 22], [8, 23], [9, 24], [9, 25], [9, 26], [10, 27], [2, 28], [13, 29], [14, 30], [16, 31], [17, 32], [19, 33], [20, 34], [22, 35], [23, 36], [25, 37], [26, 38], [32, 39], [34, 40], [36, 41], [38, 42], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 4], [12, 5], [13, 5], [14, 5], [15, 6], [16, 6], [17, 6], [18, 7], [19, 7], [20, 7], [21, 8], [22, 8], [23, 8], [24, 9], [25, 9], [26, 9], [27, 10], [28, 2], [29, 13], [30, 14], [31, 16], [32, 17], [33, 19], [34, 20], [35, 22], [36, 23], [37, 25], [38, 26], [39, 32], [40, 34], [41, 36], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 14);\n        LittleEndian.putInt(data, 4 + offset, getFirstRow());\n        LittleEndian.putInt(data, 8 + offset, getLastRow());\n        LittleEndian.putShort(data, 12 + offset, getFirstCol());\n        LittleEndian.putShort(data, 14 + offset, getLastCol());\n        LittleEndian.putShort(data, 16 + offset, ( short ) 0);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [5, 12], [6, 13], [6, 14], [7, 15], [7, 16], [8, 17], [8, 18], [9, 19], [9, 20], [10, 21], [11, 22], [5, 23], [12, 24], [14, 25], [16, 26], [18, 27], [20, 28], [10, 29], [21, 30], [22, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 5], [13, 6], [14, 6], [15, 7], [16, 7], [17, 8], [18, 8], [19, 9], [20, 9], [21, 10], [22, 11], [23, 5], [24, 12], [25, 14], [26, 16], [27, 18], [28, 20], [29, 10], [30, 21], [31, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 18;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      DimensionsRecord rec = new DimensionsRecord();\n      rec.field_1_first_row = field_1_first_row;\n      rec.field_2_last_row = field_2_last_row;\n      rec.field_3_first_col = field_3_first_col;\n      rec.field_4_last_col = field_4_last_col;\n      rec.field_5_zero = field_5_zero;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "DimensionsRecord", "code": "    public DimensionsRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DimensionsRecord", "code": "    public DimensionsRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DimensionsRecord", "code": "    public DimensionsRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.4-6550", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/StylesheetComposed.java", "language": "java", "name": "org.apache.xalan.templates.StylesheetComposed", "code": "public class StylesheetComposed extends Stylesheet\n{\n\n  /**\n   * Uses an XSL stylesheet document.\n   * @param parent  The including or importing stylesheet.\n   */\n  public StylesheetComposed(Stylesheet parent)\n  {\n    super(parent);\n  }\n\n  /**\n   * Tell if this can be cast to a StylesheetComposed, meaning, you\n   * can ask questions from getXXXComposed functions.\n   *\n   * @return True since this is a StylesheetComposed \n   */\n  public boolean isAggregatedType()\n  {\n    return true;\n  }\n\n  /**\n   * Adds all recomposable values for this precedence level into the recomposableElements Vector\n   * that was passed in as the first parameter.  All elements added to the\n   * recomposableElements vector should extend ElemTemplateElement.\n   * @param recomposableElements a Vector of ElemTemplateElement objects that we will add all of\n   *        our recomposable objects to.\n   */\n  public void recompose(Vector recomposableElements) throws TransformerException\n  {\n\n\n\n    int n = getIncludeCountComposed();\n\n    for (int i = -1; i < n; i++)\n    {\n      Stylesheet included = getIncludeComposed(i);\n\n\n      int s = included.getOutputCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getOutput(j));\n      }\n\n\n      s = included.getAttributeSetCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getAttributeSet(j));\n      }\n\n\n      s = included.getDecimalFormatCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getDecimalFormat(j));\n      }\n\n\n      s = included.getKeyCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getKey(j));\n      }\n\n\n      s = included.getNamespaceAliasCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getNamespaceAlias(j));\n      }\n\n\n      s = included.getTemplateCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getTemplate(j));\n      }\n\n\n      s = included.getVariableOrParamCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getVariableOrParam(j));\n      }\n\n\n      s = included.getStripSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getStripSpace(j));\n      }\n\n      s = included.getPreserveSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getPreserveSpace(j));\n      }\n    }\n  }\n\n  /** Order in import chain.\n   *  @serial         */\n  private int m_importNumber = -1;\n\n  /** The precedence of this stylesheet in the global import list.\n   *  The lowest precedence stylesheet is 0.  A higher\n   *  number has a higher precedence.\n   *  @serial\n   */\n  private int m_importCountComposed;\n  \n  /* The count of imports composed for this stylesheet */\n  private int m_endImportCountComposed;\n\n  /**\n   * Recalculate the precedence of this stylesheet in the global\n   * import list.  The lowest precedence stylesheet is 0.  A higher\n   * number has a higher precedence.\n   */\n  void recomposeImports()\n  {\n\n    m_importNumber = getStylesheetRoot().getImportNumber(this);\n\n    StylesheetRoot root = getStylesheetRoot();\n    int globalImportCount = root.getGlobalImportCount();\n\n    m_importCountComposed = (globalImportCount - m_importNumber) - 1;\n    \n    int count = getImportCount();\n    if ( count > 0)\n    {\n      m_endImportCountComposed += count;\n      while (count > 0)\n        m_endImportCountComposed += this.getImport(--count).getEndImportCountComposed();\n    }\n    \n    count = getIncludeCountComposed();\n    while (count>0)\n    {\n      int imports = getIncludeComposed(--count).getImportCount();\n      m_endImportCountComposed += imports;\n      while (imports > 0)\n        m_endImportCountComposed +=getIncludeComposed(count).getImport(--imports).getEndImportCountComposed();\n     \n    }                                                            \n  }\n\n  /**\n   * Get a stylesheet from the \"import\" list.\n   *\n   * @param i Index of stylesheet in import list \n   *\n   * @return The stylesheet at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public StylesheetComposed getImportComposed(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    StylesheetRoot root = getStylesheetRoot();\n\n    return root.getGlobalImport(1 + m_importNumber + i);\n  }\n\n  /**\n   * Get the precedence of this stylesheet in the global import list.\n   * The lowest precedence is 0.  A higher number has a higher precedence.\n   *\n   * @return the precedence of this stylesheet in the global import list.\n   */\n  public int getImportCountComposed()\n  {\n    return m_importCountComposed;\n  }\n  \n  /**\n   * Get the number of import in this stylesheet's composed list.\n   *\n   * @return the number of imports in this stylesheet's composed list.\n   */\n  public int getEndImportCountComposed()\n  {\n    return m_endImportCountComposed;\n  }\n  \n\n  /**\n   * The combined list of includes.\n   * @serial\n   */\n  private transient Vector m_includesComposed;\n\n  /**\n   * Recompose the value of the composed include list.  Builds a composite\n   * list of all stylesheets included by this stylesheet to any depth.\n   *\n   * @param including Stylesheet to recompose\n   */\n  void recomposeIncludes(Stylesheet including)\n  {\n\n    int n = including.getIncludeCount();\n\n    if (n > 0)\n    {\n      if (null == m_includesComposed)\n        m_includesComposed = new Vector();\n\n      for (int i = 0; i < n; i++)\n      {\n        Stylesheet included = including.getInclude(i);\n        m_includesComposed.addElement(included);\n        recomposeIncludes(included);\n      }\n    }\n  }\n\n  /**\n   * Get an \"xsl:include\" property.\n   *\n   * @param i Index of stylesheet in \"include\" list \n   *\n   * @return The stylesheet at the given index in the \"include\" list \n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public Stylesheet getIncludeComposed(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (-1 == i)\n      return this;\n\n    if (null == m_includesComposed)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (Stylesheet) m_includesComposed.elementAt(i);\n  }\n\n  /**\n   * Get the number of included stylesheets.\n   *\n   * @return the number of included stylesheets.\n   */\n  public int getIncludeCountComposed()\n  {\n    return (null != m_includesComposed) ? m_includesComposed.size() : 0;\n  }\n\n  /**\n   * For compilation support, we need the option of overwriting\n   * (rather than appending to) previous composition.\n   * We could phase out the old API in favor of this one, but I'm\n   * holding off until we've made up our minds about compilation.\n   * ADDED 9/5/2000 to support compilation experiment.\n   * NOTE: GLP 29-Nov-00 I've left this method in so that CompilingStylesheetHandler will compile.  However,\n   *                     I'm not sure why it's needed or what it does and I've commented out the body.\n   *\n   * @param flushFirst Flag indicating the option of overwriting\n   * (rather than appending to) previous composition.\n   *\n   * @throws TransformerException\n   */\n  public void recomposeTemplates(boolean flushFirst) throws TransformerException", "functions": [{"function_name": "isAggregatedType", "code": "  public boolean isAggregatedType()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "recompose", "code": "  public void recompose(Vector recomposableElements) throws TransformerException\n  {\n\n\n\n    int n = getIncludeCountComposed();\n\n    for (int i = -1; i < n; i++)\n    {\n      Stylesheet included = getIncludeComposed(i);\n\n\n      int s = included.getOutputCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getOutput(j));\n      }\n\n\n      s = included.getAttributeSetCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getAttributeSet(j));\n      }\n\n\n      s = included.getDecimalFormatCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getDecimalFormat(j));\n      }\n\n\n      s = included.getKeyCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getKey(j));\n      }\n\n\n      s = included.getNamespaceAliasCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getNamespaceAlias(j));\n      }\n\n\n      s = included.getTemplateCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getTemplate(j));\n      }\n\n\n      s = included.getVariableOrParamCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getVariableOrParam(j));\n      }\n\n\n      s = included.getStripSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getStripSpace(j));\n      }\n\n      s = included.getPreserveSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getPreserveSpace(j));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [2, 16], [5, 17], [1, 18], [6, 19], [1, 20], [7, 21], [1, 22], [8, 23], [1, 24], [9, 25], [1, 26], [10, 27], [1, 28], [11, 29], [1, 30], [12, 31], [1, 32], [13, 33], [1, 34], [18, 35], [20, 36], [22, 37], [24, 38], [26, 39], [28, 40], [30, 41], [32, 42], [14, 43], [15, 44], [5, 45], [5, 46], [6, 47], [6, 48], [7, 49], [7, 50], [8, 51], [8, 52], [9, 53], [9, 54], [10, 55], [10, 56], [11, 57], [11, 58], [12, 59], [12, 60], [13, 61], [13, 62], [45, 63], [47, 64], [49, 65], [51, 66], [53, 67], [55, 68], [57, 69], [59, 70], [61, 71], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 2], [17, 5], [18, 1], [19, 6], [20, 1], [21, 7], [22, 1], [23, 8], [24, 1], [25, 9], [26, 1], [27, 10], [28, 1], [29, 11], [30, 1], [31, 12], [32, 1], [33, 13], [34, 1], [35, 18], [36, 20], [37, 22], [38, 24], [39, 26], [40, 28], [41, 30], [42, 32], [43, 14], [44, 15], [45, 5], [46, 5], [47, 6], [48, 6], [49, 7], [50, 7], [51, 8], [52, 8], [53, 9], [54, 9], [55, 10], [56, 10], [57, 11], [58, 11], [59, 12], [60, 12], [61, 13], [62, 13], [63, 45], [64, 47], [65, 49], [66, 51], [67, 53], [68, 55], [69, 57], [70, 59], [71, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "recomposeImports", "code": "  void recomposeImports()\n  {\n\n    m_importNumber = getStylesheetRoot().getImportNumber(this);\n\n    StylesheetRoot root = getStylesheetRoot();\n    int globalImportCount = root.getGlobalImportCount();\n\n    m_importCountComposed = (globalImportCount - m_importNumber) - 1;\n    \n    int count = getImportCount();\n    if ( count > 0)\n    {\n      m_endImportCountComposed += count;\n      while (count > 0)\n        m_endImportCountComposed += this.getImport(--count).getEndImportCountComposed();\n    }\n    \n    count = getIncludeCountComposed();\n    while (count>0)\n    {\n      int imports = getIncludeComposed(--count).getImportCount();\n      m_endImportCountComposed += imports;\n      while (imports > 0)\n        m_endImportCountComposed +=getIncludeComposed(count).getImport(--imports).getEndImportCountComposed();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [0, 9], [0, 10], [1, 11], [1, 12], [6, 13], [7, 14], [2, 15], [8, 16], [3, 17], [9, 18], [4, 19], [5, 20], [10, 21], [11, 22], [1, 23], [15, 24], [2, 25], [18, 26], [18, 27], [21, 28], [11, 29], [22, 30], [12, 31], [15, 32], [24, 33], [29, 34], [31, 35], [34, 36], [34, 37], [32, 38], [32, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 0], [10, 0], [11, 1], [12, 1], [13, 6], [14, 7], [15, 2], [16, 8], [17, 3], [18, 9], [19, 4], [20, 5], [21, 10], [22, 11], [23, 1], [24, 15], [25, 2], [26, 18], [27, 18], [28, 21], [29, 11], [30, 22], [31, 12], [32, 15], [33, 24], [34, 29], [35, 31], [36, 34], [37, 34], [38, 32], [39, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getImportComposed", "code": "  public StylesheetComposed getImportComposed(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    StylesheetRoot root = getStylesheetRoot();\n\n    return root.getGlobalImport(1 + m_importNumber + i);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getImportCountComposed", "code": "  public int getImportCountComposed()\n  {\n    return m_importCountComposed;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEndImportCountComposed", "code": "  public int getEndImportCountComposed()\n  {\n    return m_endImportCountComposed;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "recomposeIncludes", "code": "  void recomposeIncludes(Stylesheet including)\n  {\n\n    int n = including.getIncludeCount();\n\n    if (n > 0)\n    {\n      if (null == m_includesComposed)\n        m_includesComposed = new Vector();\n\n      for (int i = 0; i < n; i++)\n      {\n        Stylesheet included = including.getInclude(i);\n        m_includesComposed.addElement(included);\n        recomposeIncludes(included);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [6, 10], [5, 11], [6, 12], [10, 13], [5, 14], [5, 15], [5, 16], [12, 17], [11, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 6], [11, 5], [12, 6], [13, 10], [14, 5], [15, 5], [16, 5], [17, 12], [18, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getIncludeComposed", "code": "  public Stylesheet getIncludeComposed(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (-1 == i)\n      return this;\n\n    if (null == m_includesComposed)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (Stylesheet) m_includesComposed.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [3, 8], [1, 9], [5, 10], [6, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 3], [9, 1], [10, 5], [11, 6], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getIncludeCountComposed", "code": "  public int getIncludeCountComposed()\n  {\n    return (null != m_includesComposed) ? m_includesComposed.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "recomposeTemplates", "code": "  public void recomposeTemplates(boolean flushFirst) throws TransformerException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "StylesheetComposed", "code": "  public StylesheetComposed(Stylesheet parent)\n  {\n    super(parent);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.0-1589", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/bam/model/ActivityDefinition.java", "language": "java", "name": "org.apache.camel.bam.model.ActivityDefinition", "code": "@Entity\npublic class ActivityDefinition extends EntitySupport {\n    private String name;\n    private ProcessDefinition processDefinition;\n\n    @Override\n    @Id\n    @GeneratedValue\n    public Long getId() {\n        return super.getId();\n    }\n\n    @Override\n    public String toString() {\n        return \"Activity[\" + getId() + \" name: \" + getName() + \"]\";\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST})\n    public ProcessDefinition getProcessDefinition() {\n        return processDefinition;\n    }\n\n    public void setProcessDefinition(ProcessDefinition processDefinition) {\n        this.processDefinition = processDefinition;", "functions": [{"function_name": "getId", "code": "    @Override\n    @Id\n    @GeneratedValue\n    public Long getId() {\n        return super.getId();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Activity[\" + getId() + \" name: \" + getName() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProcessDefinition", "code": "    @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST})\n    public ProcessDefinition getProcessDefinition() {\n        return processDefinition;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessDefinition", "code": "    public void setProcessDefinition(ProcessDefinition processDefinition) {\n        this.processDefinition = processDefinition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-2793", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/cxf/util/CxfHeaderHelper.java", "language": "java", "name": "org.apache.camel.component.cxf.util.CxfHeaderHelper", "code": "public final class CxfHeaderHelper {\n\n    /**\n     * Utility class does not have public constructor\n     */\n    private CxfHeaderHelper() {\n    }\n\n\n    /**\n     * Progagates Camel headers to CXF message.\n     *\n     * @param strategy header filter strategy\n     * @param headers Camel header\n     * @param message CXF meassage\n     */\n    public static void propagateCamelToCxf(HeaderFilterStrategy strategy,\n            Map<String, Object> headers, Message message) {\n\n        Map<String, List<String>> cxfHeaders =\n            CastUtils.cast((Map)message.get(Message.PROTOCOL_HEADERS));\n\n        if (cxfHeaders == null) {\n            cxfHeaders = new HashMap<String, List<String>>();\n            message.put(Message.PROTOCOL_HEADERS, cxfHeaders);\n        }\n\n        for (Map.Entry<String, Object> entry : headers.entrySet()) {\n            if (strategy != null\n                    && !strategy.applyFilterToCamelHeaders(entry.getKey(), entry.getValue())) {\n\n                if (CamelTransportConstants.CONTENT_TYPE.equals(entry.getKey())) {\n                    message.put(Message.CONTENT_TYPE, entry.getValue());\n                } else if (Client.REQUEST_CONTEXT.equals(entry.getKey())\n                            || Client.RESPONSE_CONTEXT.equals(entry.getKey())\n                            || Message.RESPONSE_CODE.equals(entry.getKey())) {\n                    message.put(entry.getKey(), entry.getValue());\n                } else {\n                    List<String> listValue = new ArrayList<String>();\n                    listValue.add(entry.getValue().toString());\n                    cxfHeaders.put(entry.getKey(), listValue);\n                }\n            }\n        }\n    }\n\n    public static void propagateCxfToCamel(HeaderFilterStrategy strategy,\n            Message message, Map<String, Object> headers) {\n\n        if (strategy == null) {\n            return;\n        }\n\n        Map<String, List<String>> cxfHeaders =\n            CastUtils.cast((Map)message.get(Message.PROTOCOL_HEADERS));\n\n        if (cxfHeaders != null) {\n            for (Map.Entry<String, List<String>> entry : cxfHeaders.entrySet()) {\n                if (!strategy.applyFilterToExternalHeaders(entry.getKey(), entry.getValue())) {\n                    headers.put(entry.getKey(), entry.getValue().get(0));\n                }\n            }\n        }\n\n        String key = Message.CONTENT_TYPE;\n        Object value = message.get(key);\n        if (value != null && !strategy.applyFilterToExternalHeaders(key, value)) {\n            headers.put(CamelTransportConstants.CONTENT_TYPE, value);\n        }\n\n        key = Client.REQUEST_CONTEXT;\n        value = message.get(key);        \n        if (value != null && !strategy.applyFilterToExternalHeaders(key, value)) {\n            headers.put(key, value);\n        }\n\n        key = Client.RESPONSE_CONTEXT;\n        value = message.get(key);        \n        if (value != null && !strategy.applyFilterToExternalHeaders(key, value)) {\n            headers.put(key, value);", "functions": [{"function_name": "propagateCamelToCxf", "code": "    public static void propagateCamelToCxf(HeaderFilterStrategy strategy,\n            Map<String, Object> headers, Message message) {\n\n        Map<String, List<String>> cxfHeaders =\n            CastUtils.cast((Map)message.get(Message.PROTOCOL_HEADERS));\n\n        if (cxfHeaders == null) {\n            cxfHeaders = new HashMap<String, List<String>>();\n            message.put(Message.PROTOCOL_HEADERS, cxfHeaders);\n        }\n\n        for (Map.Entry<String, Object> entry : headers.entrySet()) {\n            if (strategy != null\n                    && !strategy.applyFilterToCamelHeaders(entry.getKey(), entry.getValue())) {\n\n                if (CamelTransportConstants.CONTENT_TYPE.equals(entry.getKey())) {\n                    message.put(Message.CONTENT_TYPE, entry.getValue());\n                } else if (Client.REQUEST_CONTEXT.equals(entry.getKey())\n                            || Client.RESPONSE_CONTEXT.equals(entry.getKey())\n                            || Message.RESPONSE_CODE.equals(entry.getKey())) {\n                    message.put(entry.getKey(), entry.getValue());\n                } else {\n                    List<String> listValue = new ArrayList<String>();\n                    listValue.add(entry.getValue().toString());\n                    cxfHeaders.put(entry.getKey(), listValue);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 8], [1, 9], [7, 10], [3, 11], [8, 12], [2, 13], [2, 14], [8, 15], [12, 16], [12, 17], [14, 18], [11, 19], [15, 20], [15, 21], [16, 22], [16, 23], [17, 24], [20, 25], [21, 26], [20, 27], [25, 28], [25, 29], [15, 30], [20, 31], [20, 32], [20, 33], [28, 34], [29, 35], [29, 36], [30, 37], [31, 38], [32, 39], [27, 40], [33, 41], [33, 42], [35, 43], [36, 44], [39, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 1], [9, 1], [10, 7], [11, 3], [12, 8], [13, 2], [14, 2], [15, 8], [16, 12], [17, 12], [18, 14], [19, 11], [20, 15], [21, 15], [22, 16], [23, 16], [24, 17], [25, 20], [26, 21], [27, 20], [28, 25], [29, 25], [30, 15], [31, 20], [32, 20], [33, 20], [34, 28], [35, 29], [36, 29], [37, 30], [38, 31], [39, 32], [40, 27], [41, 33], [42, 33], [43, 35], [44, 36], [45, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "propagateCxfToCamel", "code": "    public static void propagateCxfToCamel(HeaderFilterStrategy strategy,\n            Message message, Map<String, Object> headers) {\n\n        if (strategy == null) {\n            return;\n        }\n\n        Map<String, List<String>> cxfHeaders =\n            CastUtils.cast((Map)message.get(Message.PROTOCOL_HEADERS));\n\n        if (cxfHeaders != null) {\n            for (Map.Entry<String, List<String>> entry : cxfHeaders.entrySet()) {\n                if (!strategy.applyFilterToExternalHeaders(entry.getKey(), entry.getValue())) {\n                    headers.put(entry.getKey(), entry.getValue().get(0));\n                }\n            }\n        }\n\n        String key = Message.CONTENT_TYPE;\n        Object value = message.get(key);\n        if (value != null && !strategy.applyFilterToExternalHeaders(key, value)) {\n            headers.put(CamelTransportConstants.CONTENT_TYPE, value);\n        }\n\n        key = Client.REQUEST_CONTEXT;\n        value = message.get(key);        \n        if (value != null && !strategy.applyFilterToExternalHeaders(key, value)) {\n            headers.put(key, value);\n        }\n\n        key = Client.RESPONSE_CONTEXT;\n        value = message.get(key);        \n        if (value != null && !strategy.applyFilterToExternalHeaders(key, value)) {\n            headers.put(key, value);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [0, 14], [2, 15], [0, 16], [0, 17], [3, 18], [6, 19], [8, 20], [12, 21], [12, 22], [13, 23], [15, 24], [15, 25], [16, 26], [18, 27], [18, 28], [4, 29], [6, 30], [19, 31], [7, 32], [8, 33], [20, 34], [1, 35], [22, 36], [2, 37], [25, 38], [3, 39], [28, 40], [30, 41], [30, 42], [32, 43], [41, 44], [44, 45], [44, 46], [41, 47], [47, 48], [47, 49], [48, 50], [50, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 0], [15, 2], [16, 0], [17, 0], [18, 3], [19, 6], [20, 8], [21, 12], [22, 12], [23, 13], [24, 15], [25, 15], [26, 16], [27, 18], [28, 18], [29, 4], [30, 6], [31, 19], [32, 7], [33, 8], [34, 20], [35, 1], [36, 22], [37, 2], [38, 25], [39, 3], [40, 28], [41, 30], [42, 30], [43, 32], [44, 41], [45, 44], [46, 44], [47, 41], [48, 47], [49, 47], [50, 48], [51, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "CxfHeaderHelper", "code": "    private CxfHeaderHelper() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.7-8518", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/BooleanExpr.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.BooleanExpr", "code": "final class BooleanExpr extends Expression {\n    private boolean _value;\n\n    public BooleanExpr(boolean value) {\n\t_value = value;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_type = Type.Boolean;\n\treturn _type;\n    }\n\n    public String toString() {\n\treturn _value ? \"true()\" : \"false()\";\n    }\n\n    public boolean getValue() {\n\treturn _value;\n    }\n\n    public boolean contextDependent() {\n\treturn false;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));\n    }\n\n    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tif (_value) {\n\t}\n\telse {\n\t    _falseList.add(il.append(new GOTO(null)));", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_type = Type.Boolean;\n\treturn _type;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn _value ? \"true()\" : \"false()\";", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getValue", "code": "    public boolean getValue() {\n\treturn _value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "contextDependent", "code": "    public boolean contextDependent() {\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "translateDesynthesized", "code": "    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tif (_value) {\n\t}\n\telse {\n\t    _falseList.add(il.append(new GOTO(null)));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [6, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 6], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "BooleanExpr", "code": "    public BooleanExpr(boolean value) {\n\t_value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.5-7269", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/XMLStringFactory.java", "language": "java", "name": "org.apache.xml.utils.XMLStringFactory", "code": "public abstract class XMLStringFactory\n{\n\n  /**\n   * Create a new XMLString from a Java string.\n   *\n   *\n   * @param string Java String reference, which must be non-null.\n   *\n   * @return An XMLString object that wraps the String reference.\n   */\n  public abstract XMLString newstr(String string);\n\n  /**\n   * Create a XMLString from a FastStringBuffer.\n   *\n   *\n   * @param string FastStringBuffer reference, which must be non-null.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   *\n   * @return An XMLString object that wraps the FastStringBuffer reference.\n   */\n  public abstract XMLString newstr(FastStringBuffer string, int start, \n                                   int length);\n\n  /**\n   * Create a XMLString from a FastStringBuffer.\n   *\n   *\n   * @param string FastStringBuffer reference, which must be non-null.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   *\n   * @return An XMLString object that wraps the FastStringBuffer reference.\n   */\n  public abstract XMLString newstr(char[] string, int start, \n                                   int length);\n                                   \n  /**\n   * Get a cheap representation of an empty string.\n   * \n   * @return An non-null reference to an XMLString that represents \"\".\n   */\n  public abstract XMLString emptystr();", "functions": [{"function_name": "newstr", "code": "  public abstract XMLString newstr(String string);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "newstr", "code": "  public abstract XMLString newstr(FastStringBuffer string, int start, \n                                   int length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "newstr", "code": "  public abstract XMLString newstr(char[] string, int start, \n                                   int length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "emptystr", "code": "  public abstract XMLString emptystr();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.7-1029", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/MakeUrl.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.MakeUrl", "code": "public class MakeUrl extends Task {\n\n    /**\n     * name of the property to set\n     */\n    private String property;\n\n    /**\n     * name of a file to turn into a URL\n     */\n    private File file;\n\n    /**\n     * separator char\n     */\n    private String separator = \" \";\n\n    /**\n     * filesets of nested files to add to this url\n     */\n    private List filesets = new LinkedList();\n\n    /**\n     * paths to add\n     */\n    private List paths = new LinkedList();\n\n    /**\n     * validation flag\n     */\n    private boolean validate = true;\n\n    /** Missing file */\n    public static final String ERROR_MISSING_FILE = \"A source file is missing :\";\n    /** No property defined */\n    public static final String ERROR_NO_PROPERTY = \"No property defined\";\n    /** No files defined */\n    public static final String ERROR_NO_FILES = \"No files defined\";\n\n    /**\n     * set the name of a property to fill with the URL\n     *\n     * @param property the name of the property.\n     */\n    public void setProperty(String property) {\n        this.property = property;\n    }\n\n    /**\n     * the name of a file to be converted into a URL\n     *\n     * @param file the file to be converted.\n     */\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    /**\n     * a fileset of jar files to include in the URL, each\n     * separated by the separator\n     *\n     * @param fileset the fileset to be added.\n     */\n    public void addFileSet(FileSet fileset) {\n        filesets.add(fileset);\n    }\n\n    /**\n     * set the separator for the multi-url option.\n     *\n     * @param separator the separator to use.\n     */\n    public void setSeparator(String separator) {\n        this.separator = separator;\n    }\n\n    /**\n     * set this flag to trigger validation that every named file exists.\n     * Optional: default=true\n     *\n     * @param validate a <code>boolean</code> value.\n     */\n    public void setValidate(boolean validate) {\n        this.validate = validate;\n    }\n\n    /**\n     * add a path to the URL. All elements in the path\n     * will be converted to individual URL entries\n     *\n     * @param path a path value.\n     */\n    public void addPath(Path path) {\n        paths.add(path);\n    }\n\n    /**\n     * convert the filesets to urls.\n     *\n     * @return null for no files\n     */\n    private String filesetsToURL() {\n        if (filesets.isEmpty()) {\n            return \"\";\n        }\n        int count = 0;\n        StringBuffer urls = new StringBuffer();\n        ListIterator list = filesets.listIterator();\n        while (list.hasNext()) {\n            FileSet set = (FileSet) list.next();\n            DirectoryScanner scanner = set.getDirectoryScanner(getProject());\n            String[] files = scanner.getIncludedFiles();\n            for (int i = 0; i < files.length; i++) {\n                File f = new File(scanner.getBasedir(), files[i]);\n                validateFile(f);\n                String asUrl = toURL(f);\n                urls.append(asUrl);\n                log(asUrl, Project.MSG_DEBUG);\n                urls.append(separator);\n                count++;\n            }\n        }\n        return stripTrailingSeparator(urls, count);\n    }\n\n    /**\n     * convert the string buffer to a string, potentially stripping\n     * out any trailing separator\n     *\n     * @param urls  URL buffer\n     * @param count number of URL entries\n     * @return trimmed string, or empty string\n     */\n    private String stripTrailingSeparator(StringBuffer urls,\n                                          int count) {\n        if (count > 0) {\n            urls.delete(urls.length() - separator.length(), urls.length());\n            return new String(urls);\n        } else {\n            return \"\";\n        }\n    }\n\n\n    /**\n     * convert all paths to URLs\n     *\n     * @return the paths as a separated list of URLs\n     */\n    private String pathsToURL() {\n        if (paths.isEmpty()) {\n            return \"\";\n        }\n        int count = 0;\n        StringBuffer urls = new StringBuffer();\n        ListIterator list = paths.listIterator();\n        while (list.hasNext()) {\n            Path path = (Path) list.next();\n            String[] elements = path.list();\n            for (int i = 0; i < elements.length; i++) {\n                File f = new File(elements[i]);\n                validateFile(f);\n                String asUrl = toURL(f);\n                urls.append(asUrl);\n                log(asUrl, Project.MSG_DEBUG);\n                urls.append(separator);\n                count++;\n            }\n        }\n        return stripTrailingSeparator(urls, count);\n    }\n\n    /**\n     * verify that the file exists, if {@link #validate} is set\n     *\n     * @param fileToCheck file that may need to exist\n     * @throws BuildException with text beginning {@link #ERROR_MISSING_FILE}\n     */\n    private void validateFile(File fileToCheck) {\n        if (validate && !fileToCheck.exists()) {\n            throw new BuildException(ERROR_MISSING_FILE + fileToCheck.toString());\n        }\n    }\n\n    /**\n     * Create the url\n     *\n     * @throws org.apache.tools.ant.BuildException\n     *          if something goes wrong with the build\n     */\n    public void execute() throws BuildException {\n        validate();\n        if (getProject().getProperty(property) != null) {\n            return;\n        }\n        String url;\n        String filesetURL = filesetsToURL();\n        if (file != null) {\n            validateFile(file);\n            url = toURL(file);\n            if (filesetURL.length() > 0) {\n                url = url + separator + filesetURL;\n            }\n        } else {\n            url = filesetURL;\n        }\n        String pathURL = pathsToURL();\n        if (pathURL.length() > 0) {\n            if (url.length() > 0) {\n                url = url + separator + pathURL;\n            } else {\n                url = pathURL;\n            }\n        }\n        log(\"Setting \" + property + \" to URL \" + url, Project.MSG_VERBOSE);\n        getProject().setNewProperty(property, url);\n    }\n\n    /**\n     * check for errors\n     * @throws BuildException if we are not configured right\n     */\n    private void validate() {\n        if (property == null) {\n            throw new BuildException(ERROR_NO_PROPERTY);\n        }\n        if (file == null && filesets.isEmpty() && paths.isEmpty()) {\n            throw new BuildException(ERROR_NO_FILES);\n        }\n    }\n\n    /**\n     * convert a file to a URL;\n     *\n     * @param fileToConvert\n     * @return the file converted to a URL\n     */\n    private String toURL(File fileToConvert) {\n        String url;\n        url = FileUtils.getFileUtils().toURI(fileToConvert.getAbsolutePath());\n\n        return url;", "functions": [{"function_name": "setProperty", "code": "    public void setProperty(String property) {\n        this.property = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileSet", "code": "    public void addFileSet(FileSet fileset) {\n        filesets.add(fileset);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSeparator", "code": "    public void setSeparator(String separator) {\n        this.separator = separator;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValidate", "code": "    public void setValidate(boolean validate) {\n        this.validate = validate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addPath", "code": "    public void addPath(Path path) {\n        paths.add(path);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "filesetsToURL", "code": "    private String filesetsToURL() {\n        if (filesets.isEmpty()) {\n            return \"\";\n        }\n        int count = 0;\n        StringBuffer urls = new StringBuffer();\n        ListIterator list = filesets.listIterator();\n        while (list.hasNext()) {\n            FileSet set = (FileSet) list.next();\n            DirectoryScanner scanner = set.getDirectoryScanner(getProject());\n            String[] files = scanner.getIncludedFiles();\n            for (int i = 0; i < files.length; i++) {\n                File f = new File(scanner.getBasedir(), files[i]);\n                validateFile(f);\n                String asUrl = toURL(f);\n                urls.append(asUrl);\n                log(asUrl, Project.MSG_DEBUG);\n                urls.append(separator);\n                count++;\n            }\n        }\n        return stripTrailingSeparator(urls, count);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [6, 9], [2, 10], [2, 11], [2, 12], [2, 13], [3, 14], [4, 15], [5, 16], [6, 17], [10, 18], [17, 19], [10, 20], [10, 21], [11, 22], [12, 23], [10, 24], [10, 25], [10, 26], [10, 27], [10, 28], [23, 29], [13, 30], [20, 31], [21, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 6], [10, 2], [11, 2], [12, 2], [13, 2], [14, 3], [15, 4], [16, 5], [17, 6], [18, 10], [19, 17], [20, 10], [21, 10], [22, 11], [23, 12], [24, 10], [25, 10], [26, 10], [27, 10], [28, 10], [29, 23], [30, 13], [31, 20], [32, 21], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "stripTrailingSeparator", "code": "    private String stripTrailingSeparator(StringBuffer urls,\n                                          int count) {\n        if (count > 0) {\n            urls.delete(urls.length() - separator.length(), urls.length());\n            return new String(urls);\n        } else {\n            return \"\";", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [1, 10], [10, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 1], [11, 10], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "pathsToURL", "code": "    private String pathsToURL() {\n        if (paths.isEmpty()) {\n            return \"\";\n        }\n        int count = 0;\n        StringBuffer urls = new StringBuffer();\n        ListIterator list = paths.listIterator();\n        while (list.hasNext()) {\n            Path path = (Path) list.next();\n            String[] elements = path.list();\n            for (int i = 0; i < elements.length; i++) {\n                File f = new File(elements[i]);\n                validateFile(f);\n                String asUrl = toURL(f);\n                urls.append(asUrl);\n                log(asUrl, Project.MSG_DEBUG);\n                urls.append(separator);\n                count++;\n            }\n        }\n        return stripTrailingSeparator(urls, count);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [6, 9], [2, 10], [2, 11], [2, 12], [3, 13], [4, 14], [5, 15], [6, 16], [10, 17], [16, 18], [10, 19], [10, 20], [11, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [12, 27], [19, 28], [20, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 6], [10, 2], [11, 2], [12, 2], [13, 3], [14, 4], [15, 5], [16, 6], [17, 10], [18, 16], [19, 10], [20, 10], [21, 11], [22, 10], [23, 10], [24, 10], [25, 10], [26, 10], [27, 12], [28, 19], [29, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "validateFile", "code": "    private void validateFile(File fileToCheck) {\n        if (validate && !fileToCheck.exists()) {\n            throw new BuildException(ERROR_MISSING_FILE + fileToCheck.toString());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        validate();\n        if (getProject().getProperty(property) != null) {\n            return;\n        }\n        String url;\n        String filesetURL = filesetsToURL();\n        if (file != null) {\n            validateFile(file);\n            url = toURL(file);\n            if (filesetURL.length() > 0) {\n                url = url + separator + filesetURL;\n            }\n        } else {\n            url = filesetURL;\n        }\n        String pathURL = pathsToURL();\n        if (pathURL.length() > 0) {\n            if (url.length() > 0) {\n                url = url + separator + pathURL;\n            } else {\n                url = pathURL;\n            }\n        }\n        log(\"Setting \" + property + \" to URL \" + url, Project.MSG_VERBOSE);\n        getProject().setNewProperty(property, url);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [6, 11], [0, 12], [7, 13], [8, 14], [1, 15], [9, 16], [9, 17], [2, 18], [3, 19], [10, 20], [4, 21], [6, 22], [11, 23], [11, 24], [14, 25], [15, 26], [3, 27], [19, 28], [3, 29], [3, 30], [24, 31], [25, 32], [25, 33], [26, 34], [26, 35], [28, 36], [28, 37], [29, 38], [33, 39], [15, 40], [15, 41], [19, 42], [41, 43], [42, 44], [43, 45], [44, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 6], [12, 0], [13, 7], [14, 8], [15, 1], [16, 9], [17, 9], [18, 2], [19, 3], [20, 10], [21, 4], [22, 6], [23, 11], [24, 11], [25, 14], [26, 15], [27, 3], [28, 19], [29, 3], [30, 3], [31, 24], [32, 25], [33, 25], [34, 26], [35, 26], [36, 28], [37, 28], [38, 29], [39, 33], [40, 15], [41, 15], [42, 19], [43, 41], [44, 42], [45, 43], [46, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "validate", "code": "    private void validate() {\n        if (property == null) {\n            throw new BuildException(ERROR_NO_PROPERTY);\n        }\n        if (file == null && filesets.isEmpty() && paths.isEmpty()) {\n            throw new BuildException(ERROR_NO_FILES);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [3, 6], [3, 7], [2, 8], [4, 9], [5, 10], [7, 11], [7, 12], [8, 13], [12, 14], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 3], [7, 3], [8, 2], [9, 4], [10, 5], [11, 7], [12, 7], [13, 8], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "toURL", "code": "    private String toURL(File fileToConvert) {\n        String url;\n        url = FileUtils.getFileUtils().toURI(fileToConvert.getAbsolutePath());\n\n        return url;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "xalan-2.4-6395", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/TemplateSubPatternAssociation.java", "language": "java", "name": "org.apache.xalan.templates.TemplateSubPatternAssociation", "code": "class TemplateSubPatternAssociation implements Serializable, Cloneable\n{\n\n  /** Step pattern           */\n  StepPattern m_stepPattern;\n\n  /** Template pattern          */\n  private String m_pattern;\n\n  /** The template element         */\n  private ElemTemplate m_template;\n\n  /** Next pattern         */\n  private TemplateSubPatternAssociation m_next = null;\n\n  /** Flag indicating whether this is wild card pattern          */\n  private boolean m_wild;\n\n  /** Target string for this match pattern           */\n  private String m_targetString;\n\n  /**\n   * Construct a match pattern from a pattern and template.\n   * @param template The node that contains the template for this pattern.\n   * @param pattern An executable XSLT StepPattern.\n   * @param pat For now a Nodelist that contains old-style element patterns.\n   */\n  TemplateSubPatternAssociation(ElemTemplate template, StepPattern pattern, String pat)\n  {\n\n    m_pattern = pat;\n    m_template = template;\n    m_stepPattern = pattern;\n    m_targetString = m_stepPattern.getTargetString();\n    m_wild = m_targetString.equals(\"*\");\n  }\n\n  /**\n   * Clone this object.\n   *\n   * @return The cloned object.\n   *\n   * @throws CloneNotSupportedException\n   */\n  public Object clone() throws CloneNotSupportedException\n  {\n\n    TemplateSubPatternAssociation tspa =\n      (TemplateSubPatternAssociation) super.clone();\n\n    tspa.m_next = null;\n\n    return tspa;\n  }\n\n  /**\n   * Get the target string of the pattern.  For instance, if the pattern is\n   * \"foo/baz/boo[@daba]\", this string will be \"boo\".\n   *\n   * @return The \"target\" string.\n   */\n  public final String getTargetString()\n  {\n    return m_targetString;\n  }\n\n  /**\n   * Set Target String for this template pattern  \n   *\n   *\n   * @param key Target string to set\n   */\n  public void setTargetString(String key)\n  {\n    m_targetString = key;\n  }\n\n  /**\n   * Tell if two modes match according to the rules of XSLT.\n   *\n   * @param m1 mode to match\n   *\n   * @return True if the given mode matches this template's mode\n   */\n  boolean matchMode(QName m1)\n  {\n    return matchModes(m1, m_template.getMode());\n  }\n\n  /**\n   * Tell if two modes match according to the rules of XSLT.\n   *\n   * @param m1 First mode to match\n   * @param m2 Second mode to match\n   *\n   * @return True if the two given modes match\n   */\n  private boolean matchModes(QName m1, QName m2)\n  {\n    return (((null == m1) && (null == m2))\n            || ((null != m1) && (null != m2) && m1.equals(m2)));\n  }\n\n  /**\n   * Return the mode associated with the template.\n   *\n   *\n   * @param xctxt XPath context to use with this template\n   * @param targetNode Target node\n   * @return The mode associated with the template.\n   *\n   * @throws TransformerException\n   */\n  public boolean matches(XPathContext xctxt, int targetNode, QName mode)\n          throws TransformerException\n  {\n\n    double score = m_stepPattern.getMatchScore(xctxt, targetNode);\n\n    return (XPath.MATCH_SCORE_NONE != score)\n           && matchModes(mode, m_template.getMode());\n  }\n\n  /**\n   * Tell if the pattern for this association is a wildcard.\n   *\n   * @return true if this pattern is considered to be a wild match.\n   */\n  public final boolean isWild()\n  {\n    return m_wild;\n  }\n\n  /**\n   * Get associated XSLT StepPattern.\n   *\n   * @return An executable StepPattern object, never null.\n   *\n   */\n  public final StepPattern getStepPattern()\n  {\n    return m_stepPattern;\n  }\n\n  /**\n   * Get the pattern string for diagnostic purposes.\n   *\n   * @return The pattern string for diagnostic purposes.\n   *\n   */\n  public final String getPattern()\n  {\n    return m_pattern;\n  }\n\n  /**\n   * Return the position of the template in document\n   * order in the stylesheet.\n   *\n   * @return The position of the template in the overall template order.\n   */\n  public int getDocOrderPos()\n  {\n    return m_template.getUid();\n  }\n\n  /**\n   * Return the import level associated with the stylesheet into which  \n   * this template is composed.\n   *\n   * @return The import level of this template.\n   */\n  public final int getImportLevel()\n  {\n    return m_template.getStylesheetComposed().getImportCountComposed();\n  }\n\n  /**\n   * Get the assocated xsl:template.\n   *\n   * @return An ElemTemplate, never null.\n   *\n   */\n  public final ElemTemplate getTemplate()\n  {\n    return m_template;\n  }\n\n  /**\n   * Get the next association.\n   *\n   * @return A valid TemplateSubPatternAssociation, or null.\n   */\n  public final TemplateSubPatternAssociation getNext()\n  {\n    return m_next;\n  }\n\n  /**\n   * Set the next element on this association\n   * list, which should be equal or less in priority to\n   * this association, and, if equal priority, should occur\n   * before this template in document order.\n   *\n   * @param mp The next association to score if this one fails.\n   *\n   */\n  public void setNext(TemplateSubPatternAssociation mp)\n  {\n    m_next = mp;", "functions": [{"function_name": "clone", "code": "  public Object clone() throws CloneNotSupportedException\n  {\n\n    TemplateSubPatternAssociation tspa =\n      (TemplateSubPatternAssociation) super.clone();\n\n    tspa.m_next = null;\n\n    return tspa;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getTargetString", "code": "  public final String getTargetString()\n  {\n    return m_targetString;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTargetString", "code": "  public void setTargetString(String key)\n  {\n    m_targetString = key;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "matchMode", "code": "  boolean matchMode(QName m1)\n  {\n    return matchModes(m1, m_template.getMode());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "matchModes", "code": "  private boolean matchModes(QName m1, QName m2)\n  {\n    return (((null == m1) && (null == m2))\n            || ((null != m1) && (null != m2) && m1.equals(m2)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [5, 8], [6, 9], [6, 10], [8, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 5], [9, 6], [10, 6], [11, 8], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "matches", "code": "  public boolean matches(XPathContext xctxt, int targetNode, QName mode)\n          throws TransformerException\n  {\n\n    double score = m_stepPattern.getMatchScore(xctxt, targetNode);\n\n    return (XPath.MATCH_SCORE_NONE != score)\n           && matchModes(mode, m_template.getMode());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [2, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 2], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isWild", "code": "  public final boolean isWild()\n  {\n    return m_wild;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStepPattern", "code": "  public final StepPattern getStepPattern()\n  {\n    return m_stepPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPattern", "code": "  public final String getPattern()\n  {\n    return m_pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocOrderPos", "code": "  public int getDocOrderPos()\n  {\n    return m_template.getUid();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getImportLevel", "code": "  public final int getImportLevel()\n  {\n    return m_template.getStylesheetComposed().getImportCountComposed();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTemplate", "code": "  public final ElemTemplate getTemplate()\n  {\n    return m_template;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNext", "code": "  public final TemplateSubPatternAssociation getNext()\n  {\n    return m_next;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNext", "code": "  public void setNext(TemplateSubPatternAssociation mp)\n  {\n    m_next = mp;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TemplateSubPatternAssociation", "code": "  TemplateSubPatternAssociation(ElemTemplate template, StepPattern pattern, String pat)\n  {\n\n    m_pattern = pat;\n    m_template = template;\n    m_stepPattern = pattern;\n    m_targetString = m_stepPattern.getTargetString();\n    m_wild = m_targetString.equals(\"*\");", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "ant-1.7-1083", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/FailFast.java", "language": "java", "name": "org.apache.tools.ant.types.resources.FailFast", "code": "/*package-private*/ class FailFast implements Iterator {\n    private static final WeakHashMap MAP = new WeakHashMap();\n\n    /**\n     * Invalidate any in-use Iterators from the specified Object.\n     * @param o the parent Object.\n     */\n    static synchronized void invalidate(Object o) {\n        Set s = (Set) (MAP.get(o));\n        if (s != null) {\n            s.clear();\n        }\n    }\n\n    private static synchronized void add(FailFast f) {\n        Set s = (Set) (MAP.get(f.parent));\n        if (s == null) {\n            s = new HashSet();\n            MAP.put(f.parent, s);\n        }\n        s.add(f);\n    }\n\n    private static synchronized void remove(FailFast f) {\n        Set s = (Set) (MAP.get(f.parent));\n        if (s != null) {\n            s.remove(f);\n        }\n    }\n\n    private static synchronized void failFast(FailFast f) {\n        Set s = (Set) (MAP.get(f.parent));\n        if (!s.contains(f)) {\n            throw new ConcurrentModificationException();\n        }\n    }\n\n    private Object parent;\n    private Iterator wrapped;\n\n    /**\n     * Construct a new FailFast Iterator wrapping the specified Iterator\n     * and dependent upon the specified parent Object.\n     * @param o the parent Object.\n     * @param i the wrapped Iterator.\n     */\n    FailFast(Object o, Iterator i) {\n        if (o == null) {\n            throw new IllegalArgumentException(\"parent object is null\");\n        }\n        if (i == null) {\n            throw new IllegalArgumentException(\"cannot wrap null iterator\");\n        }\n        parent = o;\n        if (i.hasNext()) {\n            wrapped = i;\n            add(this);\n        }\n    }\n\n    /**\n     * Fulfill the Iterator contract.\n     * @return true if there are more elements.\n     */\n    public boolean hasNext() {\n        if (wrapped == null) {\n            return false;\n        }\n        failFast(this);\n        return wrapped.hasNext();\n    }\n\n    /**\n     * Fulfill the Iterator contract.\n     * @return the next element.\n     * @throws NoSuchElementException if no more elements.\n     */\n    public Object next() {\n        if (wrapped == null || !wrapped.hasNext()) {\n            throw new NoSuchElementException();\n        }\n        failFast(this);\n        try {\n            return wrapped.next();\n        } finally {\n            if (!wrapped.hasNext()) {\n                wrapped = null;\n                remove(this);\n            }\n        }\n    }\n\n    /**\n     * Fulfill the Iterator contract.\n     * @throws UnsupportedOperationException always.\n     */\n    public void remove() {\n        throw new UnsupportedOperationException();", "functions": [{"function_name": "invalidate", "code": "    static synchronized void invalidate(Object o) {\n        Set s = (Set) (MAP.get(o));\n        if (s != null) {\n            s.clear();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "add", "code": "    private static synchronized void add(FailFast f) {\n        Set s = (Set) (MAP.get(f.parent));\n        if (s == null) {\n            s = new HashSet();\n            MAP.put(f.parent, s);\n        }\n        s.add(f);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [1, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 1], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "remove", "code": "    private static synchronized void remove(FailFast f) {\n        Set s = (Set) (MAP.get(f.parent));\n        if (s != null) {\n            s.remove(f);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "failFast", "code": "    private static synchronized void failFast(FailFast f) {\n        Set s = (Set) (MAP.get(f.parent));\n        if (!s.contains(f)) {\n            throw new ConcurrentModificationException();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "hasNext", "code": "    public boolean hasNext() {\n        if (wrapped == null) {\n            return false;\n        }\n        failFast(this);\n        return wrapped.hasNext();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "next", "code": "    public Object next() {\n        if (wrapped == null || !wrapped.hasNext()) {\n            throw new NoSuchElementException();\n        }\n        failFast(this);\n        try {\n            return wrapped.next();\n        } finally {\n            if (!wrapped.hasNext()) {\n                wrapped = null;\n                remove(this);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [2, 6], [3, 7], [4, 8], [2, 9], [6, 10], [6, 11], [9, 12], [11, 13], [3, 14], [3, 15], [15, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 2], [7, 3], [8, 4], [9, 2], [10, 6], [11, 6], [12, 9], [13, 11], [14, 3], [15, 3], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "remove", "code": "    public void remove() {\n        throw new UnsupportedOperationException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FailFast", "code": "    FailFast(Object o, Iterator i) {\n        if (o == null) {\n            throw new IllegalArgumentException(\"parent object is null\");\n        }\n        if (i == null) {\n            throw new IllegalArgumentException(\"cannot wrap null iterator\");\n        }\n        parent = o;\n        if (i.hasNext()) {\n            wrapped = i;\n            add(this);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [2, 10], [8, 11], [3, 12], [9, 13], [1, 14], [1, 15], [10, 16], [12, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 2], [11, 8], [12, 3], [13, 9], [14, 1], [15, 1], [16, 10], [17, 12], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 0}
{"sample_id": "poi-2.5-5925", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/model/Sheet.java", "language": "java", "name": "org.apache.poi.hssf.model.Sheet", "code": "public class Sheet implements Model\n{\n    public static final short   LeftMargin = 0;\n    public static final short   RightMargin = 1;\n    public static final short   TopMargin = 2;\n    public static final short   BottomMargin = 3;\n\n    private static POILogger            log              = POILogFactory.getLogger(Sheet.class);\n\n    protected ArrayList                  records           =     null;\n              int                        loc               =     0;\n    protected boolean                    containsLabels    =     false;\n    protected int                        dimsloc           =     0;\n    protected DimensionsRecord           dims;\n    protected DefaultColWidthRecord      defaultcolwidth   =     null;\n    protected DefaultRowHeightRecord     defaultrowheight  =     null;\n    protected GridsetRecord              gridset           =     null;\n    protected PrintSetupRecord           printSetup        =     null;\n    protected HeaderRecord               header            =     null;\n    protected FooterRecord               footer            =     null;\n    protected PrintGridlinesRecord       printGridlines    =     null;\n    protected WindowTwoRecord            windowTwo         =     null;\n    protected MergeCellsRecord           merged            =     null;\n    protected Margin[]                   margins           =     null;\n    protected List                       mergedRecords     =     new ArrayList();\n    protected int                        numMergedRegions  =     0;\n    protected SelectionRecord            selection         =     null;\n    protected ColumnInfoRecordsAggregate columns           =     null;\n    protected ValueRecordsAggregate      cells             =     null;\n    protected RowRecordsAggregate        rows              =     null;\n    private   Iterator                   valueRecIterator  =     null;\n    private   Iterator                   rowRecIterator    =     null;\n    protected int                        eofLoc            =     0;\n    protected ProtectRecord              protect           =     null;\n    protected PageBreakRecord            rowBreaks         =     null;\n    protected PageBreakRecord            colBreaks         =     null;\n\n\t\n    public static final byte PANE_LOWER_RIGHT = (byte)0;\n    public static final byte PANE_UPPER_RIGHT = (byte)1;\n    public static final byte PANE_LOWER_LEFT = (byte)2;\n    public static final byte PANE_UPPER_LEFT = (byte)3;\n\n    /**\n     * Creates new Sheet with no intialization --useless at this point\n     * @see #createSheet(List,int,int)\n     */\n    public Sheet()\n    {\n    }\n\n    /**\n     * read support  (offset used as starting point for search) for low level\n     * API.  Pass in an array of Record objects, the sheet number (0 based) and\n     * a record offset (should be the location of the sheets BOF record).  A Sheet\n     * object is constructed and passed back with all of its initialization set\n     * to the passed in records and references to those records held. This function\n     * is normally called via Workbook.\n     *\n     * @param recs array containing those records in the sheet in sequence (normally obtained from RecordFactory)\n     * @param sheetnum integer specifying the sheet's number (0,1 or 2 in this release)\n     * @param offset of the sheet's BOF record\n     *\n     * @return Sheet object with all values set to those read from the file\n     *\n     * @see org.apache.poi.hssf.model.Workbook\n     * @see org.apache.poi.hssf.record.Record\n     */\n    public static Sheet createSheet(List recs, int sheetnum, int offset)\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.logFormatted(POILogger.DEBUG,\n                    \"Sheet createSheet (existing file) with %\",\n                    new Integer(recs.size()));\n        Sheet     retval             = new Sheet();\n        ArrayList records            = new ArrayList(recs.size() / 5);\n        boolean   isfirstcell        = true;\n        boolean   isfirstrow         = true;\n        int       bofEofNestingLevel = 0;\n\n        for (int k = offset; k < recs.size(); k++)\n        {\n            Record rec = ( Record ) recs.get(k);\n\n            if (rec.getSid() == LabelRecord.sid)\n            {\n                if (log.check( POILogger.DEBUG ))\n                    log.log(POILogger.DEBUG, \"Hit label record.\");\n                retval.containsLabels = true;\n            }\n            else if (rec.getSid() == BOFRecord.sid)\n            {\n                bofEofNestingLevel++;\n                if (log.check( POILogger.DEBUG ))\n                    log.log(POILogger.DEBUG, \"Hit BOF record. Nesting increased to \" + bofEofNestingLevel);\n            }\n            else if (rec.getSid() == EOFRecord.sid)\n            {\n                --bofEofNestingLevel;\n                if (log.check( POILogger.DEBUG ))\n                    log.log(POILogger.DEBUG, \"Hit EOF record. Nesting decreased to \" + bofEofNestingLevel);\n                if (bofEofNestingLevel == 0) {\n                    records.add(rec);\n                    retval.eofLoc = k;\n                    break;\n                }\n            }\n            else if (rec.getSid() == DimensionsRecord.sid)\n            {\n                if (retval.columns == null)\n                {\n                    retval.columns = new ColumnInfoRecordsAggregate();\n                    records.add(retval.columns);\n                }\n\n                retval.dims    = ( DimensionsRecord ) rec;\n                retval.dimsloc = records.size();\n            }\n            else if (rec.getSid() == MergeCellsRecord.sid)\n            {\n                retval.mergedRecords.add(rec);\n                retval.merged = ( MergeCellsRecord ) rec;\n                retval.numMergedRegions += retval.merged.getNumAreas();\n            }\n            else if (rec.getSid() == ColumnInfoRecord.sid)\n            {\n                ColumnInfoRecord col = (ColumnInfoRecord)rec;\n                if (retval.columns != null)\n                {\n                }\n                else\n                {\n                    rec = retval.columns = new ColumnInfoRecordsAggregate();\n                }\n                retval.columns.insertColumn(col);\n            }\n            else if (rec.getSid() == DefaultColWidthRecord.sid)\n            {\n                retval.defaultcolwidth = ( DefaultColWidthRecord ) rec;\n            }\n            else if (rec.getSid() == DefaultRowHeightRecord.sid)\n            {\n                retval.defaultrowheight = ( DefaultRowHeightRecord ) rec;\n            }\n            else if ( rec.isValue() && bofEofNestingLevel == 1 )\n            {\n                if ( isfirstcell )\n                {\n                    retval.cells = new ValueRecordsAggregate();\n                    rec = retval.cells;\n                    retval.cells.construct( k, recs );\n                    isfirstcell = false;\n                }\n                else\n                {\n                    rec = null;\n                }\n            }\n            else if ( rec.getSid() == StringRecord.sid )\n            {\n                rec = null;\n            }\n            else if ( rec.getSid() == RowRecord.sid )\n            {\n                RowRecord row = (RowRecord)rec;\n\n                if ( isfirstrow )\n                {\n                    retval.rows = new RowRecordsAggregate();\n                    rec = retval.rows;                    \n                    isfirstrow = false;\n                }\n                retval.rows.insertRow(row);\n            }\n            else if ( rec.getSid() == PrintGridlinesRecord.sid )\n            {\n                retval.printGridlines = (PrintGridlinesRecord) rec;\n            }\n            else if ( rec.getSid() == HeaderRecord.sid && bofEofNestingLevel == 1)\n            {\n                retval.header = (HeaderRecord) rec;\n            }\n            else if ( rec.getSid() == FooterRecord.sid && bofEofNestingLevel == 1)\n            {\n                retval.footer = (FooterRecord) rec;\n            }\n            else if ( rec.getSid() == PrintSetupRecord.sid && bofEofNestingLevel == 1)\n            {\n                retval.printSetup = (PrintSetupRecord) rec;\n            }\n            else if ( rec.getSid() == LeftMarginRecord.sid)\n            {\n                retval.getMargins()[LeftMargin] = (LeftMarginRecord) rec;\n            }\n            else if ( rec.getSid() == RightMarginRecord.sid)\n            {\n                retval.getMargins()[RightMargin] = (RightMarginRecord) rec;\n            }\n            else if ( rec.getSid() == TopMarginRecord.sid)\n            {\n                retval.getMargins()[TopMargin] = (TopMarginRecord) rec;\n            }\n            else if ( rec.getSid() == BottomMarginRecord.sid)\n            {\n                retval.getMargins()[BottomMargin] = (BottomMarginRecord) rec;\n            }\n            else if ( rec.getSid() == SelectionRecord.sid )\n            {\n                retval.selection = (SelectionRecord) rec;\n            }\n            else if ( rec.getSid() == WindowTwoRecord.sid )\n            {\n                retval.windowTwo = (WindowTwoRecord) rec;\n            }\n\t\t\telse if ( rec.getSid() == ProtectRecord.sid )\n\t\t\t{\n\t\t\t\tretval.protect = (ProtectRecord) rec;\n\t\t\t} \n\t\t\telse if (rec.getSid() == PageBreakRecord.HORIZONTAL_SID) \n\t\t\t{\t\n\t\t\t\tretval.rowBreaks = (PageBreakRecord)rec;\t\t\t\t\n\t\t\t}\n\t\t\telse if (rec.getSid() == PageBreakRecord.VERTICAL_SID) \n\t\t\t{\t\n\t\t\t\tretval.colBreaks = (PageBreakRecord)rec;\t\t\t\t\n\t\t\t}\n            \n            if (rec != null)\n            {\n                records.add(rec);\n            }\n        }\n        retval.records = records;\n        retval.checkCells();\n        retval.checkRows();\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"sheet createSheet (existing file) exited\");\n        return retval;\n    }\n\n    /**\n     * Clones the low level records of this sheet and returns the new sheet instance.\n     * This method is implemented by adding methods for deep cloning to all records that\n     * can be added to a sheet. The <b>Record</b> object does not implement cloneable. \n     * When adding a new record, implement a public clone method if and only if the record\n     * belongs to a sheet. \n     */\n    public Sheet cloneSheet()\n    {\n      ArrayList clonedRecords = new ArrayList(this.records.size());\n      for (int i=0; i<this.records.size();i++) {\n        Record rec = (Record)((Record)this.records.get(i)).clone();\n        if (rec instanceof RowRecordsAggregate) {\n          RowRecordsAggregate rrAgg = (RowRecordsAggregate)rec;\n          for (Iterator rowIter = rrAgg.getIterator();rowIter.hasNext();) {\n            Record rowRec = (Record)rowIter.next();\n            clonedRecords.add(rowRec);\n          }\n        } else if (rec instanceof ValueRecordsAggregate) {\n          ValueRecordsAggregate vrAgg = (ValueRecordsAggregate)rec;\n          for (Iterator cellIter = vrAgg.getIterator();cellIter.hasNext();) {\n            Record valRec = (Record)cellIter.next();\n            clonedRecords.add(valRec);\n          }\n        } else if (rec instanceof FormulaRecordAggregate) {\n          FormulaRecordAggregate fmAgg = (FormulaRecordAggregate)rec;\n          Record fmAggRec = fmAgg.getFormulaRecord();\n          if (fmAggRec != null)\n            clonedRecords.add(fmAggRec);\n          fmAggRec =   fmAgg.getStringRecord();\n          if (fmAggRec != null)\n            clonedRecords.add(fmAggRec);\n        } else {\n          clonedRecords.add(rec);\n        }\n      }\n      return createSheet(clonedRecords, 0, 0);\n    }\n\n\n    /**\n     * read support  (offset = 0) Same as createSheet(Record[] recs, int, int)\n     * only the record offset is assumed to be 0.\n     *\n     * @param records  array containing those records in the sheet in sequence (normally obtained from RecordFactory)\n     * @param sheetnum integer specifying the sheet's number (0,1 or 2 in this release)\n     * @return Sheet object\n     */\n\n    public static Sheet createSheet(List records, int sheetnum)\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG,\n                    \"Sheet createSheet (exisiting file) assumed offset 0\");\n        return createSheet(records, sheetnum, 0);\n    }\n\n    /**\n     * Creates a sheet with all the usual records minus values and the \"index\"\n     * record (not required).  Sets the location pointer to where the first value\n     * records should go.  Use this to create a sheet from \"scratch\".\n     *\n     * @return Sheet object with all values set to defaults\n     */\n\n    public static Sheet createSheet()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet createsheet from scratch called\");\n        Sheet     retval  = new Sheet();\n        ArrayList records = new ArrayList(30);\n\n        records.add(retval.createBOF());\n\n        records.add(retval.createCalcMode());\n        records.add(retval.createCalcCount() );\n        records.add( retval.createRefMode() );\n        records.add( retval.createIteration() );\n        records.add( retval.createDelta() );\n        records.add( retval.createSaveRecalc() );\n        records.add( retval.createPrintHeaders() );\n        retval.printGridlines = (PrintGridlinesRecord) retval.createPrintGridlines();\n        records.add( retval.printGridlines );\n        retval.gridset = (GridsetRecord) retval.createGridset();\n        records.add( retval.gridset );\n        records.add( retval.createGuts() );\n        retval.defaultrowheight =\n                (DefaultRowHeightRecord) retval.createDefaultRowHeight();\n        records.add( retval.defaultrowheight );\n        records.add( retval.createWSBool() );\n\n        retval.rowBreaks = new PageBreakRecord(PageBreakRecord.HORIZONTAL_SID);\n        records.add(retval.rowBreaks);\n        retval.colBreaks = new PageBreakRecord(PageBreakRecord.VERTICAL_SID);\n        records.add(retval.colBreaks);\n        \n        retval.header = (HeaderRecord) retval.createHeader();\n        records.add( retval.header );        \n        retval.footer = (FooterRecord) retval.createFooter();\n        records.add( retval.footer );\n        records.add( retval.createHCenter() );\n        records.add( retval.createVCenter() );\n        retval.printSetup = (PrintSetupRecord) retval.createPrintSetup();\n        records.add( retval.printSetup );\n        retval.defaultcolwidth =\n                (DefaultColWidthRecord) retval.createDefaultColWidth();\n        records.add( retval.defaultcolwidth);\n        ColumnInfoRecordsAggregate columns = new ColumnInfoRecordsAggregate();\n        records.add( columns );\n        retval.columns = columns;\n        retval.dims    = ( DimensionsRecord ) retval.createDimensions();\n        records.add(retval.dims);\n        retval.dimsloc = records.size()-1;\n        records.add(retval.windowTwo = retval.createWindowTwo());\n        retval.setLoc(records.size() - 1);\n        retval.selection = \n                (SelectionRecord) retval.createSelection();\n        records.add(retval.selection);\n\t\tretval.protect = (ProtectRecord) retval.createProtect();\n\t\trecords.add(retval.protect);\n        records.add(retval.createEOF());\n\n\n        retval.records = records;\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet createsheet from scratch exit\");\n        return retval;\n    }\n\n    private void checkCells()\n    {\n        if (cells == null)\n        {\n            cells = new ValueRecordsAggregate();\n            records.add(getDimsLoc() + 1, cells);\n        }\n    }\n\n    private void checkRows()\n    {\n        if (rows == null)\n        {\n            rows = new RowRecordsAggregate();\n            records.add(getDimsLoc() + 1, rows);\n        }\n    }\n\n    public int addMergedRegion(int rowFrom, short colFrom, int rowTo,\n                               short colTo)\n    {\n        if (merged == null || merged.getNumAreas() == 1027)\n        {\n            merged = ( MergeCellsRecord ) createMergedCells();\n            mergedRecords.add(merged);            \n            records.add(records.size() - 1, merged);\n        }\n        merged.addArea(rowFrom, colFrom, rowTo, colTo);\n        return numMergedRegions++; \n    }\n\n    public void removeMergedRegion(int index)\n    {\n        if (index >= numMergedRegions || mergedRecords.size() == 0)\n           return;\n            \n        int pos = 0;\n        int startNumRegions = 0;\n        \n        if (numMergedRegions - index < merged.getNumAreas())\n        {\n            pos = mergedRecords.size() - 1;\n            startNumRegions = numMergedRegions - merged.getNumAreas(); \n        }\n        else\n        {\n            for (int n = 0; n < mergedRecords.size(); n++)\n            {\n                MergeCellsRecord record = (MergeCellsRecord) mergedRecords.get(n);\n                if (startNumRegions + record.getNumAreas() > index)\n                {\n                    pos = n;\n                    break;\n                }\n                startNumRegions += record.getNumAreas(); \n            }\n        }\n\n        MergeCellsRecord rec = (MergeCellsRecord) mergedRecords.get(pos);\n        rec.removeAreaAt(index - startNumRegions);\n        numMergedRegions--;\n        if (rec.getNumAreas() == 0)\n        {\n\t\t\tmergedRecords.remove(pos);\n\t\t\trecords.remove(merged);            \n            if (merged == rec) {\n            \tif (mergedRecords.size() > 0) {\n            \t\tmerged = (MergeCellsRecord) mergedRecords.get(mergedRecords.size() - 1);\n            \t} else {\n            \t\tmerged = null;\n            \t}\n            }\n        }\n    }\n\n    public MergeCellsRecord.MergedRegion getMergedRegionAt(int index)\n    {\n        if (index >= numMergedRegions || mergedRecords.size() == 0)\n            return null;\n            \n        int pos = 0;\n        int startNumRegions = 0;\n        \n        if (numMergedRegions - index < merged.getNumAreas())\n        {\n            pos = mergedRecords.size() - 1;\n            startNumRegions = numMergedRegions - merged.getNumAreas();\n        }\n        else\n        {\n            for (int n = 0; n < mergedRecords.size(); n++)\n            {\n                MergeCellsRecord record = (MergeCellsRecord) mergedRecords.get(n);\n                if (startNumRegions + record.getNumAreas() > index)\n                {\n                    pos = n;\n                    break;\n                }\n                startNumRegions += record.getNumAreas(); \n            }\n        }\n        return ((MergeCellsRecord) mergedRecords.get(pos)).getAreaAt(index - startNumRegions);\n    }\n\n    public int getNumMergedRegions()\n    {\n        return numMergedRegions;\n    }\n\n    /**\n     * This is basically a kludge to deal with the now obsolete Label records.  If\n     * you have to read in a sheet that contains Label records, be aware that the rest\n     * of the API doesn't deal with them, the low level structure only provides read-only\n     * semi-immutable structures (the sets are there for interface conformance with NO\n     * impelmentation).  In short, you need to call this function passing it a reference\n     * to the Workbook object.  All labels will be converted to LabelSST records and their\n     * contained strings will be written to the Shared String tabel (SSTRecord) within\n     * the Workbook.\n     *\n     * @param wb sheet's matching low level Workbook structure containing the SSTRecord.\n     * @see org.apache.poi.hssf.record.LabelRecord\n     * @see org.apache.poi.hssf.record.LabelSSTRecord\n     * @see org.apache.poi.hssf.record.SSTRecord\n     */\n\n    public void convertLabelRecords(Workbook wb)\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"convertLabelRecords called\");\n        if (containsLabels)\n        {\n            for (int k = 0; k < records.size(); k++)\n            {\n                Record rec = ( Record ) records.get(k);\n\n                if (rec.getSid() == LabelRecord.sid)\n                {\n                    LabelRecord oldrec = ( LabelRecord ) rec;\n\n                    records.remove(k);\n                    LabelSSTRecord newrec   = new LabelSSTRecord();\n                    int            stringid =\n                        wb.addSSTString(oldrec.getValue());\n\n                    newrec.setRow(oldrec.getRow());\n                    newrec.setColumn(oldrec.getColumn());\n                    newrec.setXFIndex(oldrec.getXFIndex());\n                    newrec.setSSTIndex(stringid);\n                          records.add(k, newrec);\n                }\n            }\n        }\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"convertLabelRecords exit\");\n    }\n\n    /**\n     * Returns the number of low level binary records in this sheet.  This adjusts things for the so called\n     * AgregateRecords.\n     *\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n    public int getNumRecords()\n    {\n        checkCells();\n        checkRows();\n        if (log.check( POILogger.DEBUG ))\n        {\n            log.log(POILogger.DEBUG, \"Sheet.getNumRecords\");\n            log.logFormatted(POILogger.DEBUG, \"returning % + % + % - 2 = %\", new int[]\n            {\n                records.size(), cells.getPhysicalNumberOfCells(),\n                rows.getPhysicalNumberOfRows(),\n                records.size() + cells.getPhysicalNumberOfCells()\n                + rows.getPhysicalNumberOfRows() - 2\n            });\n        }\n        return records.size() + cells.getPhysicalNumberOfCells()\n               + rows.getPhysicalNumberOfRows() - 2;\n    }\n\n    /**\n     * Per an earlier reported bug in working with Andy Khan's excel read library.  This\n     * sets the values in the sheet's DimensionsRecord object to be correct.  Excel doesn't\n     * really care, but we want to play nice with other libraries.\n     *\n     * @see org.apache.poi.hssf.record.DimensionsRecord\n     */\n\n    public void setDimensions(int firstrow, short firstcol, int lastrow,\n                              short lastcol)\n    {\n        if (log.check( POILogger.DEBUG ))\n        {\n            log.log(POILogger.DEBUG, \"Sheet.setDimensions\");\n            log.log(POILogger.DEBUG,\n                    (new StringBuffer(\"firstrow\")).append(firstrow)\n                        .append(\"firstcol\").append(firstcol).append(\"lastrow\")\n                        .append(lastrow).append(\"lastcol\").append(lastcol)\n                        .toString());\n        }\n        dims.setFirstCol(firstcol);\n        dims.setFirstRow(firstrow);\n        dims.setLastCol(lastcol);\n        dims.setLastRow(lastrow);\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet.setDimensions exiting\");\n    }\n\n    /**\n     * set the locator for where we should look for the next value record.  The\n     * algorythm will actually start here and find the correct location so you\n     * can set this to 0 and watch performance go down the tubes but it will work.\n     * After a value is set this is automatically advanced.  Its also set by the\n     * create method.  So you probably shouldn't mess with this unless you have\n     * a compelling reason why or the help for the method you're calling says so.\n     * Check the other methods for whether they care about\n     * the loc pointer.  Many of the \"modify\" and \"remove\" methods re-initialize this\n     * to \"dimsloc\" which is the location of the Dimensions Record and presumably the\n     * start of the value section (at or around 19 dec).\n     *\n     * @param loc the record number to start at\n     *\n     */\n\n    public void setLoc(int loc)\n    {\n        valueRecIterator = null;\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"sheet.setLoc(): \" + loc);\n        this.loc = loc;\n    }\n\n    /**\n     * Returns the location pointer to the first record to look for when adding rows/values\n     *\n     */\n\n    public int getLoc()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"sheet.getLoc():\" + loc);\n        return loc;\n    }\n\n    /**\n     * Set the preoffset when using DBCELL records (currently unused) - this is\n     * the position of this sheet within the whole file.\n     *\n     * @param offset the offset of the sheet's BOF within the file.\n     */\n\n    public void setPreOffset(int offset)\n    {\n        this.preoffset = offset;\n    }\n\n    /**\n     * get the preoffset when using DBCELL records (currently unused) - this is\n     * the position of this sheet within the whole file.\n     *\n     * @return offset the offset of the sheet's BOF within the file.\n     */\n\n    public int getPreOffset()\n    {\n        return preoffset;\n    }\n\n    /**\n     * Serializes all records in the sheet into one big byte array.  Use this to write\n     * the sheet out.\n     *\n     * @return byte[] array containing the binary representation of the records in this sheet\n     *\n     */\n\n    public byte [] serialize()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet.serialize\");\n\n        byte[] retval    = null;\n\n        int    arraysize = getSize();\n        int    pos       = 0;\n\n        retval = new byte[ arraysize ];\n        for (int k = 0; k < records.size(); k++)\n        {\n\n            pos += (( Record ) records.get(k)).serialize(pos);\n        }\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet.serialize returning \" + retval);\n        return retval;\n    }\n\n    /**\n     * Serializes all records in the sheet into one big byte array.  Use this to write\n     * the sheet out.\n     *\n     * @param offset to begin write at\n     * @param data   array containing the binary representation of the records in this sheet\n     *\n     */\n\n    public int serialize(int offset, byte [] data)\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet.serialize using offsets\");\n\n        int pos       = 0;\n\n        for (int k = 0; k < records.size(); k++)\n        {\n            Record record = (( Record ) records.get(k));\n\n\n\n        }\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet.serialize returning \");\n        return pos;\n    }\n\n    /**\n     * Create a row record.  (does not add it to the records contained in this sheet)\n     *\n     * @param row number\n     * @return RowRecord created for the passed in row number\n     * @see org.apache.poi.hssf.record.RowRecord\n     */\n\n    public RowRecord createRow(int row)\n    {\n        return RowRecordsAggregate.createRow( row );\n    }\n\n    /**\n     * Create a LABELSST Record (does not add it to the records contained in this sheet)\n     *\n     * @param row the row the LabelSST is a member of\n     * @param col the column the LabelSST defines\n     * @param index the index of the string within the SST (use workbook addSSTString method)\n     * @return LabelSSTRecord newly created containing your SST Index, row,col.\n     * @see org.apache.poi.hssf.record.SSTRecord\n     */\n\n    public LabelSSTRecord createLabelSST(int row, short col, int index)\n    {\n        log.logFormatted(POILogger.DEBUG, \"create labelsst row,col,index %,%,%\",\n                         new int[]\n        {\n            row, col, index\n        });\n        LabelSSTRecord rec = new LabelSSTRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setSSTIndex(index);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;\n    }\n\n    /**\n     * Create a NUMBER Record (does not add it to the records contained in this sheet)\n     *\n     * @param row the row the NumberRecord is a member of\n     * @param col the column the NumberRecord defines\n     * @param value for the number record\n     *\n     * @return NumberRecord for that row, col containing that value as added to the sheet\n     */\n\n    public NumberRecord createNumber(int row, short col, double value)\n    {\n        log.logFormatted(POILogger.DEBUG, \"create number row,col,value %,%,%\",\n                         new double[]\n        {\n            row, col, value\n        });\n        NumberRecord rec = new NumberRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setValue(value);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;\n    }\n\n    /**\n     * create a BLANK record (does not add it to the records contained in this sheet)\n     *\n     * @param row - the row the BlankRecord is a member of\n     * @param col - the column the BlankRecord is a member of\n     */\n\n    public BlankRecord createBlank(int row, short col)\n    {\n        log.logFormatted(POILogger.DEBUG, \"create blank row,col %,%\", new int[]\n        {\n            row, col\n        });\n        BlankRecord rec = new BlankRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;\n    }\n\n    /**\n     * Attempts to parse the formula into PTGs and create a formula record\n     * DOES NOT WORK YET\n     *\n     * @param row - the row for the formula record\n     * @param col - the column of the formula record\n     * @param formula - a String representing the formula.  To be parsed to PTGs\n     * @return bogus/useless formula record\n     */\n\n    public FormulaRecord createFormula(int row, short col, String formula)\n    {\n        log.logFormatted(POILogger.DEBUG, \"create formula row,col,formula %,%,%\",\n                         new int[]\n        {\n            row, col\n        }, formula);\n        FormulaRecord rec = new FormulaRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setOptions(( short ) 2);\n        rec.setValue(0);\n        rec.setXFIndex(( short ) 0x0f);\n        fp.parse();\n        Ptg[] ptg  = fp.getRPNPtg();\n        int   size = 0;\n\n        for (int k = 0; k < ptg.length; k++)\n        {\n            size += ptg[ k ].getSize();\n            rec.pushExpressionToken(ptg[ k ]);\n        }\n        rec.setExpressionLength(( short ) size);\n        return rec;\n    }\n\n    /**\n     * Adds a value record to the sheet's contained binary records\n     * (i.e. LabelSSTRecord or NumberRecord).\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.\n     *\n     * @param row the row to add the cell value to\n     * @param col the cell value record itself.\n     */\n\n    public void addValueRecord(int row, CellValueRecordInterface col)\n    {\n        checkCells();\n        log.logFormatted(POILogger.DEBUG, \"add value record  row,loc %,%\", new int[]\n        {\n            row, loc\n        });\n        DimensionsRecord d = ( DimensionsRecord ) records.get(getDimsLoc());\n\n        if (col.getColumn() > d.getLastCol())\n        {\n            d.setLastCol(( short ) (col.getColumn() + 1));\n        }\n        if (col.getColumn() < d.getFirstCol())\n        {\n            d.setFirstCol(col.getColumn());\n        }\n        cells.insertCell(col);\n\n        /*\n         * for (int k = loc; k < records.size(); k++)\n         * {\n         *   Record rec = ( Record ) records.get(k);\n         *\n         *   if (rec.getSid() == RowRecord.sid)\n         *   {\n         *       RowRecord rowrec = ( RowRecord ) rec;\n         *\n         *       if (rowrec.getRowNumber() == col.getRow())\n         *       {\n         *           records.add(k + 1, col);\n         *           loc = k;\n         *           if (rowrec.getLastCol() <= col.getColumn())\n         *           {\n         *               rowrec.setLastCol((( short ) (col.getColumn() + 1)));\n         *           }\n         *           break;\n         *       }\n         *   }\n         * }\n         */\n    }\n\n    /**\n     * remove a value record from the records array.\n     *\n     * This method is not loc sensitive, it resets loc to = dimsloc so no worries.\n     *\n     * @param row - the row of the value record you wish to remove\n     * @param col - a record supporting the CellValueRecordInterface.\n     * @see org.apache.poi.hssf.record.CellValueRecordInterface\n     */\n\n    public void removeValueRecord(int row, CellValueRecordInterface col)\n    {\n        checkCells();\n        log.logFormatted(POILogger.DEBUG, \"remove value record row,dimsloc %,%\",\n                         new int[]{row, dimsloc} );\n        loc = dimsloc;\n        cells.removeCell(col);\n\n        /*\n         * for (int k = loc; k < records.size(); k++)\n         * {\n         *   Record rec = ( Record ) records.get(k);\n         *\n         *   if (rec.isValue())\n         *   {\n         *       CellValueRecordInterface cell =\n         *           ( CellValueRecordInterface ) rec;\n         *\n         *       if ((cell.getRow() == col.getRow())\n         *               && (cell.getColumn() == col.getColumn()))\n         *       {\n         *           records.remove(k);\n         *           break;\n         *       }\n         *   }\n         * }\n         */\n    }\n\n    /**\n     * replace a value record from the records array.\n     *\n     * This method is not loc sensitive, it resets loc to = dimsloc so no worries.\n     *\n     * @param newval - a record supporting the CellValueRecordInterface.  this will replace\n     *                the cell value with the same row and column.  If there isn't one, one will\n     *                be added.\n     */\n\n    public void replaceValueRecord(CellValueRecordInterface newval)\n    {\n        checkCells();\n        setLoc(dimsloc);\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"replaceValueRecord \");\n        cells.insertCell(newval);\n\n        /*\n         * CellValueRecordInterface oldval = getNextValueRecord();\n         *\n         * while (oldval != null)\n         * {\n         *   if (oldval.isEqual(newval))\n         *   {\n         *       records.set(( short ) (getLoc() - 1), newval);\n         *       return;\n         *   }\n         *   oldval = getNextValueRecord();\n         * }\n         * addValueRecord(newval.getRow(), newval);\n         * setLoc(dimsloc);\n         */\n    }\n\n    /**\n     * Adds a row record to the sheet\n     *\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.\n     *\n     * @param row the row record to be added\n     * @see #setLoc(int)\n     */\n\n    public void addRow(RowRecord row)\n    {\n        checkRows();\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"addRow \");\n        DimensionsRecord d = ( DimensionsRecord ) records.get(getDimsLoc());\n\n        if (row.getRowNumber() >= d.getLastRow())\n        {\n            d.setLastRow(row.getRowNumber() + 1);\n        }\n        if (row.getRowNumber() < d.getFirstRow())\n        {\n            d.setFirstRow(row.getRowNumber());\n        }\n         RowRecord existingRow = rows.getRow(row.getRowNumber());\n         if (existingRow != null)\n           rows.removeRow(existingRow);\n\n        rows.insertRow(row);\n\n        /*\n         * for (int k = loc; k < records.size(); k++)\n         * {\n         *   Record rec = ( Record ) records.get(k);\n         *\n         *   if (rec.getSid() == IndexRecord.sid)\n         *   {\n         *       index = ( IndexRecord ) rec;\n         *   }\n         *   if (rec.getSid() == RowRecord.sid)\n         *   {\n         *       RowRecord rowrec = ( RowRecord ) rec;\n         *\n         *       if (rowrec.getRowNumber() > row.getRowNumber())\n         *       {\n         *           records.add(k, row);\n         *           loc = k;\n         *           break;\n         *       }\n         *   }\n         *   if (rec.getSid() == WindowTwoRecord.sid)\n         *   {\n         *       records.add(k, row);\n         *       loc = k;\n         *       break;\n         *   }\n         * }\n         * if (index != null)\n         * {\n         *   if (index.getLastRowAdd1() <= row.getRowNumber())\n         *   {\n         *       index.setLastRowAdd1(row.getRowNumber() + 1);\n         *   }\n         * }\n         */\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"exit addRow\");\n    }\n\n    /**\n     * Removes a row record\n     *\n     * This method is not loc sensitive, it resets loc to = dimsloc so no worries.\n     *\n     * @param row  the row record to remove\n     */\n\n    public void removeRow(RowRecord row)\n    {\n        checkRows();\n\n        setLoc(getDimsLoc());\n        rows.removeRow(row);\n\n        /*\n         * for (int k = loc; k < records.size(); k++)\n         * {\n         *   Record rec = ( Record ) records.get(k);\n         *\n         *   if (rec.getSid() == RowRecord.sid)\n         *   {\n         *       RowRecord rowrec = ( RowRecord ) rec;\n         *\n         *       if (rowrec.getRowNumber() == row.getRowNumber())\n         *       {\n         *           records.remove(k);\n         *           break;\n         *       }\n         *   }\n         *   if (rec.getSid() == WindowTwoRecord.sid)\n         *   {\n         *       break;\n         *   }\n         * }\n         */\n    }\n\n    /**\n     * get the NEXT value record (from LOC).  The first record that is a value record\n     * (starting at LOC) will be returned.\n     *\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.  For this method, set loc to dimsloc to start with,\n     * subsequent calls will return values in (physical) sequence or NULL when you get to the end.\n     *\n     * @return CellValueRecordInterface representing the next value record or NULL if there are no more\n     * @see #setLoc(int)\n     */\n\n    public CellValueRecordInterface getNextValueRecord()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"getNextValue loc= \" + loc);\n        if (valueRecIterator == null)\n        {\n            valueRecIterator = cells.getIterator();\n        }\n        if (!valueRecIterator.hasNext())\n        {\n            return null;\n        }\n        return ( CellValueRecordInterface ) valueRecIterator.next();\n\n        /*\n         *      if (this.getLoc() < records.size())\n         *     {\n         *         for (int k = getLoc(); k < records.size(); k++)\n         *         {\n         *             Record rec = ( Record ) records.get(k);\n         *\n         *             this.setLoc(k + 1);\n         *             if (rec instanceof CellValueRecordInterface)\n         *             {\n         *                 return ( CellValueRecordInterface ) rec;\n         *             }\n         *         }\n         *     }\n         *     return null;\n         */\n    }\n\n    /**\n     * get the NEXT RowRecord or CellValueRecord(from LOC).  The first record that\n     * is a Row record or CellValueRecord(starting at LOC) will be returned.\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.  For this method, set loc to dimsloc to start with.\n     * subsequent calls will return rows in (physical) sequence or NULL when you get to the end.\n     *\n     * @return RowRecord representing the next row record or CellValueRecordInterface\n     *  representing the next cellvalue or NULL if there are no more\n     * @see #setLoc(int)\n     *\n     */\n\n/*    public Record getNextRowOrValue()\n    {\n        POILogger.DEBUG((new StringBuffer(\"getNextRow loc= \")).append(loc)\n            .toString());\n        if (this.getLoc() < records.size())\n        {\n            for (int k = this.getLoc(); k < records.size(); k++)\n            {\n                Record rec = ( Record ) records.get(k);\n\n                this.setLoc(k + 1);\n                if (rec.getSid() == RowRecord.sid)\n                {\n                    return rec;\n                }\n                else if (rec.isValue())\n                {\n                    return rec;\n                }\n            }\n        }\n        return null;\n    }\n */\n\n    /**\n     * get the NEXT RowRecord (from LOC).  The first record that is a Row record\n     * (starting at LOC) will be returned.\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.  For this method, set loc to dimsloc to start with.\n     * subsequent calls will return rows in (physical) sequence or NULL when you get to the end.\n     *\n     * @return RowRecord representing the next row record or NULL if there are no more\n     * @see #setLoc(int)\n     *\n     */\n\n    public RowRecord getNextRow()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"getNextRow loc= \" + loc);\n        if (rowRecIterator == null)\n        {\n            rowRecIterator = rows.getIterator();\n        }\n        if (!rowRecIterator.hasNext())\n        {\n            return null;\n        }\n        return ( RowRecord ) rowRecIterator.next();\n\n/*        if (this.getLoc() < records.size())\n        {\n            for (int k = this.getLoc(); k < records.size(); k++)\n            {\n                Record rec = ( Record ) records.get(k);\n\n                this.setLoc(k + 1);\n                if (rec.getSid() == RowRecord.sid)\n                {\n                    return ( RowRecord ) rec;\n                }\n            }\n        }*/\n    }\n\n    /**\n     * get the NEXT (from LOC) RowRecord where rownumber matches the given rownum.\n     * The first record that is a Row record (starting at LOC) that has the\n     * same rownum as the given rownum will be returned.\n     * <P>\n     * This method is \"loc\" sensitive.  Meaning you need to set LOC to where you\n     * want it to start searching.  If you don't know do this: setLoc(getDimsLoc).\n     * When adding several rows you can just start at the last one by leaving loc\n     * at what this sets it to.  For this method, set loc to dimsloc to start with.\n     * subsequent calls will return rows in (physical) sequence or NULL when you get to the end.\n     *\n     * @param rownum   which row to return (careful with LOC)\n     * @return RowRecord representing the next row record or NULL if there are no more\n     * @see #setLoc(int)\n     *\n     */\n\n    public RowRecord getRow(int rownum)\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"getNextRow loc= \" + loc);\n        return rows.getRow(rownum);\n\n        /*\n         * if (this.getLoc() < records.size())\n         * {\n         *   for (int k = this.getLoc(); k < records.size(); k++)\n         *   {\n         *       Record rec = ( Record ) records.get(k);\n         *\n         *       this.setLoc(k + 1);\n         *       if (rec.getSid() == RowRecord.sid)\n         *       {\n         *           if ((( RowRecord ) rec).getRowNumber() == rownum)\n         *           {\n         *               return ( RowRecord ) rec;\n         *           }\n         *       }\n         *   }\n         * }\n         */\n\n    }\n\n    /**\n     * Not currently used method to calculate and add dbcell records\n     *\n     */\n\n    public void addDBCellRecords()\n    {\n        int         offset        = 0;\n        int         recnum        = 0;\n        int         rownum        = 0;\n        IndexRecord index         = null;\n\n        IntList     rowOffsets    = new IntList();\n\n        for (recnum = 0; recnum < records.size(); recnum++)\n        {\n            Record rec = ( Record ) records.get(recnum);\n\n            if (rec.getSid() == IndexRecord.sid)\n            {\n                index = ( IndexRecord ) rec;\n            }\n            if (rec.getSid() != RowRecord.sid)\n            {\n                offset += rec.serialize().length;\n            }\n            else\n            {\n                break;\n            }\n        }\n\n        for (; recnum < records.size(); recnum++)\n        {\n            Record rec = ( Record ) records.get(recnum);\n\n            if (rec.getSid() == RowRecord.sid)\n            {\n                rownum++;\n                rowOffsets.add(offset);\n                if ((rownum % 32) == 0)\n                {\n\n                    for (int rn = recnum; rn < records.size(); rn++)\n                    {\n                        rec = ( Record ) records.get(rn);\n                        if ((!rec.isInValueSection())\n                                || (rec.getSid() == RowRecord.sid))\n                        {\n\n                            records.add(rn,\n                                        createDBCell(offset, rowOffsets,\n                                                     index));\n                            recnum = rn;\n                            break;\n                        }\n                    }\n                }\n                else\n                {\n                }\n            }\n            if (!rec.isInValueSection())\n            {\n                records.add(recnum, createDBCell(offset, rowOffsets, index));\n                break;\n            }\n            offset += rec.serialize().length;\n        }\n    }\n\n    /** not currently used */\n\n    private DBCellRecord createDBCell(int offset, IntList rowoffsets,\n                                      IndexRecord index)\n    {\n        DBCellRecord rec = new DBCellRecord();\n\n        rec.setRowOffset(offset - rowoffsets.get(0));\n\n        rec.addCellOffset(( short ) 0x0);\n\n        addDbCellToIndex(offset, index);\n        return rec;\n    }\n\n    /** not currently used */\n\n    private void addDbCellToIndex(int offset, IndexRecord index)\n    {\n        int numdbcells = index.getNumDbcells() + 1;\n\n        index.addDbcell(offset + preoffset);\n\n        for (int k = 0; k < numdbcells; k++)\n        {\n            int dbval = index.getDbcellAt(k);\n\n            index.setDbcell(k, dbval + 4);\n        }\n    }\n\n    /**\n     * creates the BOF record\n     * @see org.apache.poi.hssf.record.BOFRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a BOFRecord\n     */\n\n    protected Record createBOF()\n    {\n        BOFRecord retval = new BOFRecord();\n\n        retval.setVersion(( short ) 0x600);\n        retval.setType(( short ) 0x010);\n\n        retval.setBuild(( short ) 0x0dbb);\n        retval.setBuildYear(( short ) 1996);\n        retval.setHistoryBitMask(0xc1);\n        retval.setRequiredVersion(0x6);\n        return retval;\n    }\n\n    /**\n     * creates the Index record  - not currently used\n     * @see org.apache.poi.hssf.record.IndexRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a IndexRecord\n     */\n\n    protected Record createIndex()\n    {\n        IndexRecord retval = new IndexRecord();\n\n        retval.setLastRowAdd1(0);\n        return retval;\n    }\n\n    /**\n     * creates the CalcMode record and sets it to 1 (automatic formula caculation)\n     * @see org.apache.poi.hssf.record.CalcModeRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a CalcModeRecord\n     */\n\n    protected Record createCalcMode()\n    {\n        CalcModeRecord retval = new CalcModeRecord();\n\n        retval.setCalcMode(( short ) 1);\n        return retval;\n    }\n\n    /**\n     * creates the CalcCount record and sets it to 0x64 (default number of iterations)\n     * @see org.apache.poi.hssf.record.CalcCountRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a CalcCountRecord\n     */\n\n    protected Record createCalcCount()\n    {\n        CalcCountRecord retval = new CalcCountRecord();\n\n        return retval;\n    }\n\n    /**\n     * creates the RefMode record and sets it to A1 Mode (default reference mode)\n     * @see org.apache.poi.hssf.record.RefModeRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a RefModeRecord\n     */\n\n    protected Record createRefMode()\n    {\n        RefModeRecord retval = new RefModeRecord();\n\n        retval.setMode(RefModeRecord.USE_A1_MODE);\n        return retval;\n    }\n\n    /**\n     * creates the Iteration record and sets it to false (don't iteratively calculate formulas)\n     * @see org.apache.poi.hssf.record.IterationRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a IterationRecord\n     */\n\n    protected Record createIteration()\n    {\n        IterationRecord retval = new IterationRecord();\n\n        retval.setIteration(false);\n        return retval;\n    }\n\n    /**\n     * creates the Delta record and sets it to 0.0010 (default accuracy)\n     * @see org.apache.poi.hssf.record.DeltaRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DeltaRecord\n     */\n\n    protected Record createDelta()\n    {\n        DeltaRecord retval = new DeltaRecord();\n\n        retval.setMaxChange(0.0010);\n        return retval;\n    }\n\n    /**\n     * creates the SaveRecalc record and sets it to true (recalculate before saving)\n     * @see org.apache.poi.hssf.record.SaveRecalcRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a SaveRecalcRecord\n     */\n\n    protected Record createSaveRecalc()\n    {\n        SaveRecalcRecord retval = new SaveRecalcRecord();\n\n        retval.setRecalc(true);\n        return retval;\n    }\n\n    /**\n     * creates the PrintHeaders record and sets it to false (we don't create headers yet so why print them)\n     * @see org.apache.poi.hssf.record.PrintHeadersRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PrintHeadersRecord\n     */\n\n    protected Record createPrintHeaders()\n    {\n        PrintHeadersRecord retval = new PrintHeadersRecord();\n\n        retval.setPrintHeaders(false);\n        return retval;\n    }\n\n    /**\n     * creates the PrintGridlines record and sets it to false (that makes for ugly sheets).  As far as I can\n     * tell this does the same thing as the GridsetRecord\n     *\n     * @see org.apache.poi.hssf.record.PrintGridlinesRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PrintGridlinesRecord\n     */\n\n    protected Record createPrintGridlines()\n    {\n        PrintGridlinesRecord retval = new PrintGridlinesRecord();\n\n        retval.setPrintGridlines(false);\n        return retval;\n    }\n\n    /**\n     * creates the Gridset record and sets it to true (user has mucked with the gridlines)\n     * @see org.apache.poi.hssf.record.GridsetRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a GridsetRecord\n     */\n\n    protected Record createGridset()\n    {\n        GridsetRecord retval = new GridsetRecord();\n\n        retval.setGridset(true);\n        return retval;\n    }\n\n    /**\n     * creates the Guts record and sets leftrow/topcol guttter and rowlevelmax/collevelmax to 0\n     * @see org.apache.poi.hssf.record.GutsRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a GutsRecordRecord\n     */\n\n    protected Record createGuts()\n    {\n        GutsRecord retval = new GutsRecord();\n\n        retval.setLeftRowGutter(( short ) 0);\n        retval.setTopColGutter(( short ) 0);\n        retval.setRowLevelMax(( short ) 0);\n        retval.setColLevelMax(( short ) 0);\n        return retval;\n    }\n\n    /**\n     * creates the DefaultRowHeight Record and sets its options to 0 and rowheight to 0xff\n     * @see org.apache.poi.hssf.record.DefaultRowHeightRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DefaultRowHeightRecord\n     */\n\n    protected Record createDefaultRowHeight()\n    {\n        DefaultRowHeightRecord retval = new DefaultRowHeightRecord();\n\n        retval.setOptionFlags(( short ) 0);\n        retval.setRowHeight(( short ) 0xff);\n        return retval;\n    }\n\n    /**\n     * creates the WSBoolRecord and sets its values to defaults\n     * @see org.apache.poi.hssf.record.WSBoolRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a WSBoolRecord\n     */\n\n    protected Record createWSBool()\n    {\n        WSBoolRecord retval = new WSBoolRecord();\n\n        retval.setWSBool1(( byte ) 0x4);\n        retval.setWSBool2(( byte ) 0xffffffc1);\n        return retval;\n    }\n\n    /**\n     * creates the Header Record and sets it to nothing/0 length\n     * @see org.apache.poi.hssf.record.HeaderRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a HeaderRecord\n     */\n\n    protected Record createHeader()\n    {\n        HeaderRecord retval = new HeaderRecord();\n\n        retval.setHeaderLength(( byte ) 0);\n        retval.setHeader(null);\n        return retval;\n    }\n\n    /**\n     * creates the Footer Record and sets it to nothing/0 length\n     * @see org.apache.poi.hssf.record.FooterRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a FooterRecord\n     */\n\n    protected Record createFooter()\n    {\n        FooterRecord retval = new FooterRecord();\n\n        retval.setFooterLength(( byte ) 0);\n        retval.setFooter(null);\n        return retval;\n    }\n\n    /**\n     * creates the HCenter Record and sets it to false (don't horizontally center)\n     * @see org.apache.poi.hssf.record.HCenterRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a HCenterRecord\n     */\n\n    protected Record createHCenter()\n    {\n        HCenterRecord retval = new HCenterRecord();\n\n        retval.setHCenter(false);\n        return retval;\n    }\n\n    /**\n     * creates the VCenter Record and sets it to false (don't horizontally center)\n     * @see org.apache.poi.hssf.record.VCenterRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a VCenterRecord\n     */\n\n    protected Record createVCenter()\n    {\n        VCenterRecord retval = new VCenterRecord();\n\n        retval.setVCenter(false);\n        return retval;\n    }\n\n    /**\n     * creates the PrintSetup Record and sets it to defaults and marks it invalid\n     * @see org.apache.poi.hssf.record.PrintSetupRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PrintSetupRecord\n     */\n\n    protected Record createPrintSetup()\n    {\n        PrintSetupRecord retval = new PrintSetupRecord();\n\n        retval.setPaperSize(( short ) 1);\n        retval.setScale(( short ) 100);\n        retval.setPageStart(( short ) 1);\n        retval.setFitWidth(( short ) 1);\n        retval.setFitHeight(( short ) 1);\n        retval.setOptions(( short ) 2);\n        retval.setHResolution(( short ) 300);\n        retval.setVResolution(( short ) 300);\n        retval.setHeaderMargin( 0.5);\n        retval.setFooterMargin( 0.5);\n        retval.setCopies(( short ) 0);\n        return retval;\n    }\n\n    /**\n     * creates the DefaultColWidth Record and sets it to 8\n     * @see org.apache.poi.hssf.record.DefaultColWidthRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DefaultColWidthRecord\n     */\n\n    protected Record createDefaultColWidth()\n    {\n        DefaultColWidthRecord retval = new DefaultColWidthRecord();\n\n        retval.setColWidth(( short ) 8);\n        return retval;\n    }\n\n    /**\n     * creates the ColumnInfo Record and sets it to a default column/width\n     * @see org.apache.poi.hssf.record.ColumnInfoRecord\n     * @return record containing a ColumnInfoRecord\n     */\n\n    protected Record createColInfo()\n    {\n        return ColumnInfoRecordsAggregate.createColInfo();\n    }\n\n    /**\n     * get the default column width for the sheet (if the columns do not define their own width)\n     * @return default column width\n     */\n\n    public short getDefaultColumnWidth()\n    {\n        return defaultcolwidth.getColWidth();\n    }\n\n    /**\n     * get whether gridlines are printed.\n     * @return true if printed\n     */\n\n    public boolean isGridsPrinted()\n    {\n        return !gridset.getGridset();\n    }\n\n    /**\n     * set whether gridlines printed or not.\n     * @param value     True if gridlines printed.\n     */\n\n    public void setGridsPrinted(boolean value)\n    {\n        gridset.setGridset(!value);\n    }\n\n    /**\n     * set the default column width for the sheet (if the columns do not define their own width)\n     * @param dcw  default column width\n     */\n\n    public void setDefaultColumnWidth(short dcw)\n    {\n        defaultcolwidth.setColWidth(dcw);\n    }\n\n    /**\n     * set the default row height for the sheet (if the rows do not define their own height)\n     */\n\n    public void setDefaultRowHeight(short dch)\n    {\n        defaultrowheight.setRowHeight(dch);\n    }\n\n    /**\n     * get the default row height for the sheet (if the rows do not define their own height)\n     * @return  default row height\n     */\n\n    public short getDefaultRowHeight()\n    {\n        return defaultrowheight.getRowHeight();\n    }\n\n    /**\n     * get the width of a given column in units of 1/20th of a point width (twips?)\n     * @param column index\n     * @see org.apache.poi.hssf.record.DefaultColWidthRecord\n     * @see org.apache.poi.hssf.record.ColumnInfoRecord\n     * @see #setColumnWidth(short,short)\n     * @return column width in units of 1/20th of a point (twips?)\n     */\n\n    public short getColumnWidth(short column)\n    {\n        short            retval = 0;\n        ColumnInfoRecord ci     = null;\n\n        if (columns != null)\n        {\n            for ( Iterator iterator = columns.getIterator(); iterator.hasNext(); )\n            {\n                ci = ( ColumnInfoRecord ) iterator.next();\n                if ((ci.getFirstColumn() <= column)\n                        && (column <= ci.getLastColumn()))\n                {\n                    break;\n                }\n                ci = null;\n            }\n        }\n        if (ci != null)\n        {\n            retval = ci.getColumnWidth();\n        }\n        else\n        {\n            retval = defaultcolwidth.getColWidth();\n        }\n        return retval;\n    }\n\n    /**\n     * set the width for a given column in 1/20th of a character width units\n     * @param column - the column number\n     * @param width (in units of 1/20th of a character width)\n     */\n    public void setColumnWidth(short column, short width)\n    {\n        setColumn( column, new Short(width), null, null, null);\n    }\n\n    public void setColumn(short column, Short width, Integer level, Boolean hidden, Boolean collapsed)\n    {\n        if (columns == null)\n            columns = new ColumnInfoRecordsAggregate();\n\n        columns.setColumn( column, width, level, hidden, collapsed );\n    }\n\n    /**\n     * Creates an outline group for the specified columns.\n     * @param fromColumn    group from this column (inclusive)\n     * @param toColumn      group to this column (inclusive)\n     * @param indent        if true the group will be indented by one level,\n     *                      if false indenting will be removed by one level.\n     */\n    public void groupColumnRange(short fromColumn, short toColumn, boolean indent)\n    {\n\n        columns.groupColumnRange( fromColumn, toColumn, indent);\n\n        int maxLevel = 0;\n        for ( Iterator iterator = columns.getIterator(); iterator.hasNext(); )\n        {\n            ColumnInfoRecord columnInfoRecord = (ColumnInfoRecord) iterator.next();\n            maxLevel = Math.max(columnInfoRecord.getOutlineLevel(), maxLevel);\n        }\n\n        GutsRecord guts = (GutsRecord) findFirstRecordBySid( GutsRecord.sid );\n        guts.setColLevelMax( (short) ( maxLevel+1 ) );\n        if (maxLevel == 0)\n            guts.setTopColGutter( (short)0 );\n        else\n            guts.setTopColGutter( (short) ( 29 + (12 * (maxLevel-1)) ) );\n    }\n\n    /**\n     * creates the Dimensions Record and sets it to bogus values (you should set this yourself\n     * or let the high level API do it for you)\n     * @see org.apache.poi.hssf.record.DimensionsRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DimensionsRecord\n     */\n\n    protected Record createDimensions()\n    {\n        DimensionsRecord retval = new DimensionsRecord();\n\n        retval.setFirstCol(( short ) 0);\n        retval.setFirstRow(0);\n        return retval;\n    }\n\n    /**\n     * creates the WindowTwo Record and sets it to:  <P>\n     * options        = 0x6b6 <P>\n     * toprow         = 0 <P>\n     * leftcol        = 0 <P>\n     * headercolor    = 0x40 <P>\n     * pagebreakzoom  = 0x0 <P>\n     * normalzoom     = 0x0 <p>\n     * @see org.apache.poi.hssf.record.WindowTwoRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a WindowTwoRecord\n     */\n\n    protected WindowTwoRecord createWindowTwo()\n    {\n        WindowTwoRecord retval = new WindowTwoRecord();\n\n        retval.setOptions(( short ) 0x6b6);\n        retval.setTopRow(( short ) 0);\n        retval.setLeftCol(( short ) 0);\n        retval.setHeaderColor(0x40);\n        retval.setPageBreakZoom(( short ) 0);\n        retval.setNormalZoom(( short ) 0);\n        return retval;\n    }\n\n    /**\n     * Creates the Selection record and sets it to nothing selected\n     *\n     * @see org.apache.poi.hssf.record.SelectionRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a SelectionRecord\n     */\n\n    protected Record createSelection()\n    {\n        SelectionRecord retval = new SelectionRecord();\n\n        retval.setPane(( byte ) 0x3);\n        retval.setActiveCellCol(( short ) 0x0);\n        retval.setActiveCellRow(( short ) 0x0);\n        retval.setNumRefs(( short ) 0x0);\n        return retval;\n    }\n    \n    /**\n     * Returns the active row\n     *\n     * @see org.apache.poi.hssf.record.SelectionRecord\n     * @return row the active row index\n     */\n    public int getActiveCellRow()\n    {\n        if (selection == null)\n        {\n            return 0;\n        }\n        return selection.getActiveCellRow();\n    }\n    \n    /**\n     * Sets the active row\n     *\n     * @param row the row index\n     * @see org.apache.poi.hssf.record.SelectionRecord\n     */\n    public void setActiveCellRow(int row)\n    {\n        if (selection != null)\n        {\n            selection.setActiveCellRow(row);\n        }\n    }\n    \n    /**\n     * Returns the active column\n     *\n     * @see org.apache.poi.hssf.record.SelectionRecord\n     * @return row the active column index\n     */\n    public short getActiveCellCol()\n    {\n        if (selection == null)\n        {\n            return (short) 0;\n        }\n        return selection.getActiveCellCol();\n    }\n    \n    /**\n     * Sets the active column\n     *\n     * @param col the column index\n     * @see org.apache.poi.hssf.record.SelectionRecord\n     */\n    public void setActiveCellCol(short col)\n    {\n        if (selection != null)\n        {\n            selection.setActiveCellCol(col);\n        }\n    }\n\n    protected Record createMergedCells()\n    {\n        MergeCellsRecord retval = new MergeCellsRecord();\n        retval.setNumAreas(( short ) 0);\n        return retval;\n    }\n\n    /**\n     * creates the EOF record\n     * @see org.apache.poi.hssf.record.EOFRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a EOFRecord\n     */\n\n    protected Record createEOF()\n    {\n        return new EOFRecord();\n    }\n\n    /**\n     * get the location of the DimensionsRecord (which is the last record before the value section)\n     * @return location in the array of records of the DimensionsRecord\n     */\n\n    public int getDimsLoc()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"getDimsLoc dimsloc= \" + dimsloc);\n        return dimsloc;\n    }\n\n    /**\n     * in the event the record is a dimensions record, resets both the loc index and dimsloc index\n     */\n\n    public void checkDimsLoc(Record rec, int recloc)\n    {\n        if (rec.getSid() == DimensionsRecord.sid)\n        {\n            loc     = recloc;\n            dimsloc = recloc;\n        }\n    }\n\n    public int getSize()\n    {\n        int retval = 0;\n\n        for (int k = 0; k < records.size(); k++)\n        {\n            retval += (( Record ) records.get(k)).getRecordSize();\n        }\n        return retval;\n    }\n\n    public List getRecords()\n    {\n        return records;\n    }\n\n    /**\n     * Gets the gridset record for this sheet.\n     */\n\n    public GridsetRecord getGridsetRecord()\n    {\n        return gridset;\n    }\n\n    /**\n     * Returns the first occurance of a record matching a particular sid.\n     */\n\n    public Record findFirstRecordBySid(short sid)\n    {\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); )\n        {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid)\n            {\n                return record;\n            }\n        }\n        return null;\n    }\n\n    /**\n     * Sets the SCL record or creates it in the correct place if it does not\n     * already exist.\n     *\n     * @param sclRecord     The record to set.\n     */\n    public void setSCLRecord(SCLRecord sclRecord)\n    {\n        int oldRecordLoc = findFirstRecordLocBySid(SCLRecord.sid);\n        if (oldRecordLoc == -1)\n        {\n            int windowRecordLoc = findFirstRecordLocBySid(WindowTwoRecord.sid);\n            records.add(windowRecordLoc+1, sclRecord);\n        }\n        else\n        {\n            records.set(oldRecordLoc, sclRecord);\n        }\n\n    }\n\n    /**\n     * Finds the first occurance of a record matching a particular sid and\n     * returns it's position.\n     * @param sid   the sid to search for\n     * @return  the record position of the matching record or -1 if no match\n     *          is made.\n     */\n    public int findFirstRecordLocBySid( short sid )\n    {\n        int index = 0;\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); )\n        {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid)\n            {\n                return index;\n            }\n            index++;\n        }\n        return -1;\n    }\n\n    /**\n     * Returns the HeaderRecord.\n     * @return HeaderRecord for the sheet.\n     */\n    public HeaderRecord getHeader ()\n    {\n\treturn header;\n    }\n\n    /**\n     * Sets the HeaderRecord.\n     * @param newHeader The new HeaderRecord for the sheet.\n     */\n    public void setHeader (HeaderRecord newHeader)\n    {\n    \theader = newHeader;\n    }\n\n    /**\n     * Returns the FooterRecord.\n     * @return FooterRecord for the sheet.\n     */\n    public FooterRecord getFooter ()\n    {\n\t    return footer;\n    }\n\n    /**\n     * Sets the FooterRecord.\n     * @param newFooter The new FooterRecord for the sheet.\n     */\n    public void setFooter (FooterRecord newFooter)\n    {\n\t    footer = newFooter;\n    }\n\n    /**\n     * Returns the PrintSetupRecord.\n     * @return PrintSetupRecord for the sheet.\n     */\n    public PrintSetupRecord getPrintSetup ()\n    {\n\t    return printSetup;\n    }\n\n    /**\n     * Sets the PrintSetupRecord.\n     * @param newPrintSetup The new PrintSetupRecord for the sheet.\n     */\n    public void setPrintSetup (PrintSetupRecord newPrintSetup)\n    {\n\t    printSetup = newPrintSetup;\n    }\n\n    /**\n     * Returns the PrintGridlinesRecord.\n     * @return PrintGridlinesRecord for the sheet.\n     */\n    public PrintGridlinesRecord getPrintGridlines ()\n    {\n\t    return printGridlines;\n    }\n\n    /**\n     * Sets the PrintGridlinesRecord.\n     * @param newPrintGridlines The new PrintGridlinesRecord for the sheet.\n     */\n    public void setPrintGridlines (PrintGridlinesRecord newPrintGridlines)\n    {\n\t    printGridlines = newPrintGridlines;\n    }\n\n    /**\n     * Sets whether the sheet is selected\n     * @param sel True to select the sheet, false otherwise.\n     */\n    public void setSelected(boolean sel) {\n        windowTwo.setSelected(sel);\n    }\n\n     /**\n      * Gets the size of the margin in inches.\n      * @param margin which margin to get\n      * @return the size of the margin\n      */\n    public double getMargin(short margin) {\n\tif (getMargins()[margin] != null)\n\t    return margins[margin].getMargin();\n\telse {\n\t    switch ( margin )\n\t\t{\n\t\tcase LeftMargin:\n\t\t    return .75;\n\t\tcase RightMargin:\n\t\t    return .75;\n\t\tcase TopMargin:\n\t\t    return 1.0;\n\t\tcase BottomMargin:\n\t\t    return 1.0;\n\t\tdefault :\n\t\t    throw new RuntimeException( \"Unknown margin constant:  \" + margin );\n\t\t}\n\t}\n    }\n\n     /**\n      * Sets the size of the margin in inches.\n      * @param margin which margin to get\n      * @param size the size of the margin\n      */\n    public void setMargin(short margin, double size) {\n\tMargin m = getMargins()[margin];\n\tif (m  == null) {\n\t    switch ( margin )\n\t\t{\n\t\tcase LeftMargin:\n\t\t    m = new LeftMarginRecord();\n\t\t    records.add( getDimsLoc() + 1, m );\n\t\t    break;\n\t\tcase RightMargin:\n\t\t    m = new RightMarginRecord();\n\t\t    records.add( getDimsLoc() + 1, m );\n\t\t    break;\n\t\tcase TopMargin:\n\t\t    m = new TopMarginRecord();\n\t\t    records.add( getDimsLoc() + 1, m );\n\t\t    break;\n\t\tcase BottomMargin:\n\t\t    m = new BottomMarginRecord();\n\t\t    records.add( getDimsLoc() + 1, m );\n\t\t    break;\n\t\tdefault :\n\t\t    throw new RuntimeException( \"Unknown margin constant:  \" + margin );\n\t\t}\n\t    margins[margin] = m;\n\t}\n\tm.setMargin( size );\n    }\n\n    public int getEofLoc()\n    {\n        return eofLoc;\n    }\n\n    /**\n     * Creates a split (freezepane).\n     * @param colSplit      Horizonatal position of split.\n     * @param rowSplit      Vertical position of split.\n     * @param topRow        Top row visible in bottom pane\n     * @param leftmostColumn   Left column visible in right pane.\n     */\n    public void createFreezePane(int colSplit, int rowSplit, int topRow, int leftmostColumn )\n    {\n        int loc = findFirstRecordLocBySid(WindowTwoRecord.sid);\n        PaneRecord pane = new PaneRecord();\n        pane.setX((short)colSplit);\n        pane.setY((short)rowSplit);\n        pane.setTopRow((short) topRow);\n        pane.setLeftColumn((short) leftmostColumn);\n        if (rowSplit == 0)\n        {\n            pane.setTopRow((short)0);\n            pane.setActivePane((short)1);\n        }\n        else if (colSplit == 0)\n        {\n            pane.setLeftColumn((short)64);\n            pane.setActivePane((short)2);\n        }\n        else\n        {\n            pane.setActivePane((short)0);\n        }\n        records.add(loc+1, pane);\n\n        windowTwo.setFreezePanes(true);\n        windowTwo.setFreezePanesNoSplit(true);\n\n        SelectionRecord sel = (SelectionRecord) findFirstRecordBySid(SelectionRecord.sid);\n        sel.setPane((byte)pane.getActivePane());\n\n    }\n\n    /**\n     * Creates a split pane.\n     * @param xSplitPos      Horizonatal position of split (in 1/20th of a point).\n     * @param ySplitPos      Vertical position of split (in 1/20th of a point).\n     * @param topRow        Top row visible in bottom pane\n     * @param leftmostColumn   Left column visible in right pane.\n     * @param activePane    Active pane.  One of: PANE_LOWER_RIGHT,\n     *                      PANE_UPPER_RIGHT, PANE_LOWER_LEFT, PANE_UPPER_LEFT\n     * @see #PANE_LOWER_LEFT\n     * @see #PANE_LOWER_RIGHT\n     * @see #PANE_UPPER_LEFT\n     * @see #PANE_UPPER_RIGHT\n     */\n    public void createSplitPane(int xSplitPos, int ySplitPos, int topRow, int leftmostColumn, int activePane )\n    {\n        int loc = findFirstRecordLocBySid(WindowTwoRecord.sid);\n        PaneRecord r = new PaneRecord();\n        r.setX((short)xSplitPos);\n        r.setY((short)ySplitPos);\n        r.setTopRow((short) topRow);\n        r.setLeftColumn((short) leftmostColumn);\n        r.setActivePane((short) activePane);\n        records.add(loc+1, r);\n\n        windowTwo.setFreezePanes(false);\n        windowTwo.setFreezePanesNoSplit(false);\n\n        SelectionRecord sel = (SelectionRecord) findFirstRecordBySid(SelectionRecord.sid);\n        sel.setPane(PANE_LOWER_RIGHT);\n\n    }\n\n    public SelectionRecord getSelection()\n    {\n        return selection;\n    }\n\n    public void setSelection( SelectionRecord selection )\n    {\n        this.selection = selection;\n    }\n\n    /**\n     * creates a Protect record with protect set to false.\n     * @see org.apache.poi.hssf.record.ProtectRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return a ProtectRecord\n     */\n    protected Record createProtect()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"create protect record with protection disabled\");\n        ProtectRecord retval = new ProtectRecord();\n\n        retval.setProtect(false);\n        return retval;\n    }\n\n    public ProtectRecord getProtect()\n    {\n        return protect;\n    }\n\n    /**\n     * Sets whether the gridlines are shown in a viewer.\n     * @param show whether to show gridlines or not\n     */\n    public void setDisplayGridlines(boolean show) {\n        windowTwo.setDisplayGridlines(show);\n    }\n\n    /**\n     * Returns if gridlines are displayed.\n     * @return whether gridlines are displayed\n     */\n    public boolean isDisplayGridlines() {\n\treturn windowTwo.getDisplayGridlines();\n    }\n\n    /**\n     * Sets whether the formulas are shown in a viewer.\n     * @param show whether to show formulas or not\n     */\n    public void setDisplayFormulas(boolean show) {\n        windowTwo.setDisplayFormulas(show);\n    }\n\n    /**\n     * Returns if formulas are displayed.\n     * @return whether formulas are displayed\n     */\n    public boolean isDisplayFormulas() {\n\treturn windowTwo.getDisplayFormulas();\n    }\n\n    /**\n     * Sets whether the RowColHeadings are shown in a viewer.\n     * @param show whether to show RowColHeadings or not\n     */\n    public void setDisplayRowColHeadings(boolean show) {\n        windowTwo.setDisplayRowColHeadings(show);\n    }\n\n    /**\n     * Returns if RowColHeadings are displayed.\n     * @return whether RowColHeadings are displayed\n     */\n    public boolean isDisplayRowColHeadings() {\n\t    return windowTwo.getDisplayRowColHeadings();\n    }\n\n    /**\n     * Returns the array of margins.  If not created, will create.\n     *\n     * @return the array of marings.\n     */\n    protected Margin[] getMargins() {\n        if (margins == null)\n            margins = new Margin[4];\n    \treturn margins;\n    }\n\n    public int aggregateDrawingRecords(DrawingManager drawingManager)\n    {\n        int loc = findFirstRecordLocBySid(DrawingRecord.sid);\n        boolean noDrawingRecordsFound = loc == -1;\n        if (noDrawingRecordsFound)\n        {\n            EscherAggregate aggregate = new EscherAggregate( drawingManager );\n            loc = findFirstRecordLocBySid(EscherAggregate.sid);\n            if (loc == -1)\n            {\n                loc = findFirstRecordLocBySid( WindowTwoRecord.sid );\n            }\n            else\n            {\n                getRecords().remove(loc);\n            }\n            getRecords().add( loc, aggregate );\n            return loc;\n        }\n        else\n        {\n            List records = getRecords();\n            EscherAggregate r = EscherAggregate.createAggregate( records, loc, drawingManager );\n            int startloc = loc;\n            while ( loc + 1 < records.size()\n                    && records.get( loc ) instanceof DrawingRecord\n                    && records.get( loc + 1 ) instanceof ObjRecord )\n            {\n                loc += 2;\n            }\n            int endloc = loc-1;\n            for(int i = 0; i < (endloc - startloc + 1); i++)\n                records.remove(startloc);\n            records.add(startloc, r);\n\n            return startloc;\n        }\n    }\n\n    /**\n     * Perform any work necessary before the sheet is about to be serialized.\n     * For instance the escher aggregates size needs to be calculated before\n     * serialization so that the dgg record (which occurs first) can be written.\n     */\n    public void preSerialize()\n    {\n        for ( Iterator iterator = getRecords().iterator(); iterator.hasNext(); )\n        {\n            Record r = (Record) iterator.next();\n            if (r instanceof EscherAggregate){}\n        }\n    }\n\n    /**\n     * Shifts all the page breaks in the range \"count\" number of rows/columns\n     * @param breaks The page record to be shifted\n     * @param start Starting \"main\" value to shift breaks\n     * @param stop Ending \"main\" value to shift breaks\n     * @param count number of units (rows/columns) to shift by \n     */\n    public void shiftBreaks(PageBreakRecord breaks, short start, short stop, int count) {\n   \t\n    \tif(rowBreaks == null)\n    \t\treturn;\n    \tIterator iterator = breaks.getBreaksIterator();\n    \tList shiftedBreak = new ArrayList();\n    \twhile(iterator.hasNext()) \n    \t{\n    \t\tPageBreakRecord.Break breakItem = (PageBreakRecord.Break)iterator.next();\n    \t\tshort breakLocation = breakItem.main;\n    \t\tboolean inStart = (breakLocation >= start);\n    \t\tboolean inEnd = (breakLocation <= stop);\n    \t\tif(inStart && inEnd)\n    \t\t\tshiftedBreak.add(breakItem);\n    \t}\n    \t\n    \titerator = shiftedBreak.iterator();\n    \twhile (iterator.hasNext()) {    \t\t\n\t\t\tPageBreakRecord.Break breakItem = (PageBreakRecord.Break)iterator.next();\n    \t\tbreaks.removeBreak(breakItem.main);\n    \t\tbreaks.addBreak((short)(breakItem.main+count), breakItem.subFrom, breakItem.subTo);\n    \t}\n    }\n    \n    /**\n     * Sets a page break at the indicated row\n     * @param row\n     */\n    public void setRowBreak(int row, short fromCol, short toCol) {    \t\n    \trowBreaks.addBreak((short)row, fromCol, toCol);\n    }\n\n    /**\n     * Removes a page break at the indicated row\n     * @param row\n     */\n    public void removeRowBreak(int row) {\n    \trowBreaks.removeBreak((short)row);\n    }\n\n    /**\n     * Queries if the specified row has a page break\n     * @param row\n     * @return true if the specified row has a page break\n     */\n    public boolean isRowBroken(int row) {\n    \treturn rowBreaks.getBreak((short)row) != null;\n    }\n\n    /**\n     * Sets a page break at the indicated column\n     *\n     */\n    public void setColumnBreak(short column, short fromRow, short toRow) {    \t\n    \tcolBreaks.addBreak(column, fromRow, toRow);\n    }\n\n    /**\n     * Removes a page break at the indicated column\n     *\n     */\n    public void removeColumnBreak(short column) {\n    \tcolBreaks.removeBreak(column);\n    }\n\n    /**\n     * Queries if the specified column has a page break\n     *\n     * @return true if the specified column has a page break\n     */\n    public boolean isColumnBroken(short column) {\n    \treturn colBreaks.getBreak(column) != null;\n    }\n    \n    /**\n     * Shifts the horizontal page breaks for the indicated count\n     * @param startingRow\n     * @param endingRow\n     * @param count\n     */\n    public void shiftRowBreaks(int startingRow, int endingRow, int count) {\n    \tshiftBreaks(rowBreaks, (short)startingRow, (short)endingRow, (short)count);\n    }\n\n    /**\n     * Shifts the vertical page breaks for the indicated count\n     * @param startingCol\n     * @param endingCol\n     * @param count\n     */\n    public void shiftColumnBreaks(short startingCol, short endingCol, short count) {\n    \tshiftBreaks(colBreaks, startingCol, endingCol, count);\n    }\n    \n    /**\n     * Returns all the row page breaks\n     * @return\n     */\n    public Iterator getRowBreaks() {\n    \treturn rowBreaks.getBreaksIterator();\n    }\n    \n    /**\n     * Returns the number of row page breaks\n     * @return\n     */\n    public int getNumRowBreaks(){\n    \treturn (int)rowBreaks.getNumBreaks();\n    }\n    \n    /**\n     * Returns all the column page breaks\n     * @return\n     */\n    public Iterator getColumnBreaks(){\n    \treturn colBreaks.getBreaksIterator();\n    }\n    \n    /**\n     * Returns the number of column page breaks\n     * @return\n     */\n    public int getNumColumnBreaks(){\n    \treturn (int)colBreaks.getNumBreaks();\n    }\n\n    public void setColumnGroupCollapsed( short columnNumber, boolean collapsed )\n    {\n        if (collapsed)\n        {\n            columns.collapseColumn( columnNumber );\n        }\n        else\n        {\n            columns.expandColumn( columnNumber );\n        }\n    }\n\n\n\n\n\n\n\n\n    public void groupRowRange(int fromRow, int toRow, boolean indent)\n    {\n        checkRows();\n        for (int rowNum = fromRow; rowNum <= toRow; rowNum++)\n        {\n            RowRecord row = getRow( rowNum );\n            if (row == null)\n            {\n                row = createRow( rowNum );\n                addRow( row );\n            }\n            int level = row.getOutlineLevel();\n            if (indent) level++; else level--;\n            level = Math.max(0, level);\n            level = Math.min(7, level);\n            row.setOutlineLevel((short) ( level ));\n        }\n\n        recalcRowGutter();\n    }\n\n    private void recalcRowGutter()\n    {\n        int maxLevel = 0;\n        Iterator iterator = rows.getIterator();\n        while ( iterator.hasNext() )\n        {\n            RowRecord rowRecord = (RowRecord) iterator.next();\n            maxLevel = Math.max(rowRecord.getOutlineLevel(), maxLevel);\n        }\n\n        GutsRecord guts = (GutsRecord) findFirstRecordBySid( GutsRecord.sid );\n        guts.setRowLevelMax( (short) ( maxLevel + 1 ) );\n        guts.setLeftRowGutter( (short) ( 29 + (12 * (maxLevel)) ) );\n    }\n\n    public void setRowGroupCollapsed( int row, boolean collapse )\n    {\n        if (collapse)\n        {\n            rows.collapseRow( row );\n        }\n        else\n        {\n            rows.expandRow( row );", "functions": [{"function_name": "createSheet", "code": "    public static Sheet createSheet(List recs, int sheetnum, int offset)\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.logFormatted(POILogger.DEBUG,\n                    \"Sheet createSheet (existing file) with %\",\n                    new Integer(recs.size()));\n        Sheet     retval             = new Sheet();\n        ArrayList records            = new ArrayList(recs.size() / 5);\n        boolean   isfirstcell        = true;\n        boolean   isfirstrow         = true;\n        int       bofEofNestingLevel = 0;\n\n        for (int k = offset; k < recs.size(); k++)\n        {\n            Record rec = ( Record ) recs.get(k);\n\n            if (rec.getSid() == LabelRecord.sid)\n            {\n                if (log.check( POILogger.DEBUG ))\n                    log.log(POILogger.DEBUG, \"Hit label record.\");\n                retval.containsLabels = true;\n            }\n            else if (rec.getSid() == BOFRecord.sid)\n            {\n                bofEofNestingLevel++;\n                if (log.check( POILogger.DEBUG ))\n                    log.log(POILogger.DEBUG, \"Hit BOF record. Nesting increased to \" + bofEofNestingLevel);\n            }\n            else if (rec.getSid() == EOFRecord.sid)\n            {\n                --bofEofNestingLevel;\n                if (log.check( POILogger.DEBUG ))\n                    log.log(POILogger.DEBUG, \"Hit EOF record. Nesting decreased to \" + bofEofNestingLevel);\n                if (bofEofNestingLevel == 0) {\n                    records.add(rec);\n                    retval.eofLoc = k;\n                    break;\n                }\n            }\n            else if (rec.getSid() == DimensionsRecord.sid)\n            {\n                if (retval.columns == null)\n                {\n                    retval.columns = new ColumnInfoRecordsAggregate();\n                    records.add(retval.columns);\n                }\n\n                retval.dims    = ( DimensionsRecord ) rec;\n                retval.dimsloc = records.size();\n            }\n            else if (rec.getSid() == MergeCellsRecord.sid)\n            {\n                retval.mergedRecords.add(rec);\n                retval.merged = ( MergeCellsRecord ) rec;\n                retval.numMergedRegions += retval.merged.getNumAreas();\n            }\n            else if (rec.getSid() == ColumnInfoRecord.sid)\n            {\n                ColumnInfoRecord col = (ColumnInfoRecord)rec;\n                if (retval.columns != null)\n                {\n                }\n                else\n                {\n                    rec = retval.columns = new ColumnInfoRecordsAggregate();\n                }\n                retval.columns.insertColumn(col);\n            }\n            else if (rec.getSid() == DefaultColWidthRecord.sid)\n            {\n                retval.defaultcolwidth = ( DefaultColWidthRecord ) rec;\n            }\n            else if (rec.getSid() == DefaultRowHeightRecord.sid)\n            {\n                retval.defaultrowheight = ( DefaultRowHeightRecord ) rec;\n            }\n            else if ( rec.isValue() && bofEofNestingLevel == 1 )\n            {\n                if ( isfirstcell )\n                {\n                    retval.cells = new ValueRecordsAggregate();\n                    rec = retval.cells;\n                    retval.cells.construct( k, recs );\n                    isfirstcell = false;\n                }\n                else\n                {\n                    rec = null;\n                }\n            }\n            else if ( rec.getSid() == StringRecord.sid )\n            {\n                rec = null;\n            }\n            else if ( rec.getSid() == RowRecord.sid )\n            {\n                RowRecord row = (RowRecord)rec;\n\n                if ( isfirstrow )\n                {\n                    retval.rows = new RowRecordsAggregate();\n                    rec = retval.rows;                    \n                    isfirstrow = false;\n                }\n                retval.rows.insertRow(row);\n            }\n            else if ( rec.getSid() == PrintGridlinesRecord.sid )\n            {\n                retval.printGridlines = (PrintGridlinesRecord) rec;\n            }\n            else if ( rec.getSid() == HeaderRecord.sid && bofEofNestingLevel == 1)\n            {\n                retval.header = (HeaderRecord) rec;\n            }\n            else if ( rec.getSid() == FooterRecord.sid && bofEofNestingLevel == 1)\n            {\n                retval.footer = (FooterRecord) rec;\n            }\n            else if ( rec.getSid() == PrintSetupRecord.sid && bofEofNestingLevel == 1)\n            {\n                retval.printSetup = (PrintSetupRecord) rec;\n            }\n            else if ( rec.getSid() == LeftMarginRecord.sid)\n            {\n                retval.getMargins()[LeftMargin] = (LeftMarginRecord) rec;\n            }\n            else if ( rec.getSid() == RightMarginRecord.sid)\n            {\n                retval.getMargins()[RightMargin] = (RightMarginRecord) rec;\n            }\n            else if ( rec.getSid() == TopMarginRecord.sid)\n            {\n                retval.getMargins()[TopMargin] = (TopMarginRecord) rec;\n            }\n            else if ( rec.getSid() == BottomMarginRecord.sid)\n            {\n                retval.getMargins()[BottomMargin] = (BottomMarginRecord) rec;\n            }\n            else if ( rec.getSid() == SelectionRecord.sid )\n            {\n                retval.selection = (SelectionRecord) rec;\n            }\n            else if ( rec.getSid() == WindowTwoRecord.sid )\n            {\n                retval.windowTwo = (WindowTwoRecord) rec;\n            }\n\t\t\telse if ( rec.getSid() == ProtectRecord.sid )\n\t\t\t{\n\t\t\t\tretval.protect = (ProtectRecord) rec;\n\t\t\t} \n\t\t\telse if (rec.getSid() == PageBreakRecord.HORIZONTAL_SID) \n\t\t\t{\t\n\t\t\t\tretval.rowBreaks = (PageBreakRecord)rec;\t\t\t\t\n\t\t\t}\n\t\t\telse if (rec.getSid() == PageBreakRecord.VERTICAL_SID) \n\t\t\t{\t\n\t\t\t\tretval.colBreaks = (PageBreakRecord)rec;\t\t\t\t\n\t\t\t}\n            \n            if (rec != null)\n            {\n                records.add(rec);\n            }\n        }\n        retval.records = records;\n        retval.checkCells();\n        retval.checkRows();\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"sheet createSheet (existing file) exited\");\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "IF", "CALL", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "BINARY_OP", "IF", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "BINARY_OP", "IF", "VAR_DECL", "CALL", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "IF", "BINARY_OP", "CALL", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [0, 14], [0, 15], [0, 16], [3, 17], [9, 18], [2, 19], [3, 20], [3, 21], [3, 22], [17, 23], [4, 24], [5, 25], [6, 26], [7, 27], [8, 28], [9, 29], [19, 30], [20, 31], [21, 32], [21, 33], [27, 34], [29, 35], [29, 36], [31, 37], [32, 38], [32, 39], [21, 40], [33, 41], [34, 42], [34, 43], [35, 44], [20, 45], [38, 46], [38, 47], [32, 48], [39, 49], [21, 50], [40, 51], [22, 52], [46, 53], [46, 54], [38, 55], [38, 56], [47, 57], [48, 58], [50, 59], [40, 60], [53, 61], [53, 62], [46, 63], [54, 64], [55, 65], [56, 66], [48, 67], [60, 68], [61, 69], [61, 70], [62, 71], [46, 72], [46, 73], [63, 74], [55, 75], [65, 76], [56, 77], [67, 78], [69, 79], [69, 80], [61, 81], [61, 82], [70, 83], [53, 84], [53, 85], [53, 86], [72, 87], [74, 88], [55, 89], [55, 90], [77, 91], [78, 92], [79, 93], [79, 94], [80, 95], [61, 96], [81, 97], [84, 98], [63, 99], [63, 100], [91, 101], [93, 102], [93, 103], [94, 104], [69, 105], [97, 106], [100, 107], [102, 108], [102, 109], [93, 110], [103, 111], [103, 112], [79, 113], [81, 114], [108, 115], [108, 116], [109, 117], [111, 118], [114, 119], [115, 120], [115, 121], [108, 122], [108, 123], [116, 124], [102, 125], [119, 126], [120, 127], [120, 128], [121, 129], [108, 130], [125, 131], [110, 132], [110, 133], [110, 134], [110, 135], [110, 136], [127, 137], [127, 138], [128, 139], [128, 140], [115, 141], [132, 142], [133, 143], [136, 144], [137, 145], [137, 146], [138, 147], [138, 148], [120, 149], [139, 150], [140, 151], [122, 152], [122, 153], [122, 154], [145, 155], [145, 156], [146, 157], [146, 158], [127, 159], [147, 160], [148, 161], [152, 162], [154, 163], [155, 164], [155, 165], [156, 166], [137, 167], [157, 168], [158, 169], [164, 170], [164, 171], [165, 172], [145, 173], [170, 174], [170, 175], [171, 176], [155, 177], [173, 178], [174, 179], [174, 180], [175, 181], [164, 182], [177, 183], [179, 184], [179, 185], [180, 186], [170, 187], [182, 188], [184, 189], [184, 190], [185, 191], [174, 192], [187, 193], [189, 194], [189, 195], [190, 196], [179, 197], [194, 198], [195, 199], [184, 200], [198, 201], [189, 202], [194, 203], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 0], [15, 0], [16, 0], [17, 3], [18, 9], [19, 2], [20, 3], [21, 3], [22, 3], [23, 17], [24, 4], [25, 5], [26, 6], [27, 7], [28, 8], [29, 9], [30, 19], [31, 20], [32, 21], [33, 21], [34, 27], [35, 29], [36, 29], [37, 31], [38, 32], [39, 32], [40, 21], [41, 33], [42, 34], [43, 34], [44, 35], [45, 20], [46, 38], [47, 38], [48, 32], [49, 39], [50, 21], [51, 40], [52, 22], [53, 46], [54, 46], [55, 38], [56, 38], [57, 47], [58, 48], [59, 50], [60, 40], [61, 53], [62, 53], [63, 46], [64, 54], [65, 55], [66, 56], [67, 48], [68, 60], [69, 61], [70, 61], [71, 62], [72, 46], [73, 46], [74, 63], [75, 55], [76, 65], [77, 56], [78, 67], [79, 69], [80, 69], [81, 61], [82, 61], [83, 70], [84, 53], [85, 53], [86, 53], [87, 72], [88, 74], [89, 55], [90, 55], [91, 77], [92, 78], [93, 79], [94, 79], [95, 80], [96, 61], [97, 81], [98, 84], [99, 63], [100, 63], [101, 91], [102, 93], [103, 93], [104, 94], [105, 69], [106, 97], [107, 100], [108, 102], [109, 102], [110, 93], [111, 103], [112, 103], [113, 79], [114, 81], [115, 108], [116, 108], [117, 109], [118, 111], [119, 114], [120, 115], [121, 115], [122, 108], [123, 108], [124, 116], [125, 102], [126, 119], [127, 120], [128, 120], [129, 121], [130, 108], [131, 125], [132, 110], [133, 110], [134, 110], [135, 110], [136, 110], [137, 127], [138, 127], [139, 128], [140, 128], [141, 115], [142, 132], [143, 133], [144, 136], [145, 137], [146, 137], [147, 138], [148, 138], [149, 120], [150, 139], [151, 140], [152, 122], [153, 122], [154, 122], [155, 145], [156, 145], [157, 146], [158, 146], [159, 127], [160, 147], [161, 148], [162, 152], [163, 154], [164, 155], [165, 155], [166, 156], [167, 137], [168, 157], [169, 158], [170, 164], [171, 164], [172, 165], [173, 145], [174, 170], [175, 170], [176, 171], [177, 155], [178, 173], [179, 174], [180, 174], [181, 175], [182, 164], [183, 177], [184, 179], [185, 179], [186, 180], [187, 170], [188, 182], [189, 184], [190, 184], [191, 185], [192, 174], [193, 187], [194, 189], [195, 189], [196, 190], [197, 179], [198, 194], [199, 195], [200, 184], [201, 198], [202, 189], [203, 194], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203]]}, {"function_name": "cloneSheet", "code": "    public Sheet cloneSheet()\n    {\n      ArrayList clonedRecords = new ArrayList(this.records.size());\n      for (int i=0; i<this.records.size();i++) {\n        Record rec = (Record)((Record)this.records.get(i)).clone();\n        if (rec instanceof RowRecordsAggregate) {\n          RowRecordsAggregate rrAgg = (RowRecordsAggregate)rec;\n          for (Iterator rowIter = rrAgg.getIterator();rowIter.hasNext();) {\n            Record rowRec = (Record)rowIter.next();\n            clonedRecords.add(rowRec);\n          }\n        } else if (rec instanceof ValueRecordsAggregate) {\n          ValueRecordsAggregate vrAgg = (ValueRecordsAggregate)rec;\n          for (Iterator cellIter = vrAgg.getIterator();cellIter.hasNext();) {\n            Record valRec = (Record)cellIter.next();\n            clonedRecords.add(valRec);\n          }\n        } else if (rec instanceof FormulaRecordAggregate) {\n          FormulaRecordAggregate fmAgg = (FormulaRecordAggregate)rec;\n          Record fmAggRec = fmAgg.getFormulaRecord();\n          if (fmAggRec != null)\n            clonedRecords.add(fmAggRec);\n          fmAggRec =   fmAgg.getStringRecord();\n          if (fmAggRec != null)\n            clonedRecords.add(fmAggRec);\n        } else {\n          clonedRecords.add(rec);\n        }\n      }\n      return createSheet(clonedRecords, 0, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [2, 8], [2, 9], [3, 10], [8, 11], [8, 12], [5, 13], [2, 14], [11, 15], [11, 16], [8, 17], [8, 18], [10, 19], [15, 20], [11, 21], [11, 22], [17, 23], [15, 24], [15, 25], [15, 26], [15, 27], [21, 28], [17, 29], [15, 30], [24, 31], [15, 32], [25, 33], [21, 34], [17, 35], [17, 36], [9, 37], [24, 38], [31, 39], [32, 40], [25, 41], [33, 42], [26, 43], [21, 44], [21, 45], [29, 46], [34, 47], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 2], [9, 2], [10, 3], [11, 8], [12, 8], [13, 5], [14, 2], [15, 11], [16, 11], [17, 8], [18, 8], [19, 10], [20, 15], [21, 11], [22, 11], [23, 17], [24, 15], [25, 15], [26, 15], [27, 15], [28, 21], [29, 17], [30, 15], [31, 24], [32, 15], [33, 25], [34, 21], [35, 17], [36, 17], [37, 9], [38, 24], [39, 31], [40, 32], [41, 25], [42, 33], [43, 26], [44, 21], [45, 21], [46, 29], [47, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "createSheet", "code": "    public static Sheet createSheet(List records, int sheetnum)\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG,\n                    \"Sheet createSheet (exisiting file) assumed offset 0\");\n        return createSheet(records, sheetnum, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createSheet", "code": "    public static Sheet createSheet()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet createsheet from scratch called\");\n        Sheet     retval  = new Sheet();\n        ArrayList records = new ArrayList(30);\n\n        records.add(retval.createBOF());\n\n        records.add(retval.createCalcMode());\n        records.add(retval.createCalcCount() );\n        records.add( retval.createRefMode() );\n        records.add( retval.createIteration() );\n        records.add( retval.createDelta() );\n        records.add( retval.createSaveRecalc() );\n        records.add( retval.createPrintHeaders() );\n        retval.printGridlines = (PrintGridlinesRecord) retval.createPrintGridlines();\n        records.add( retval.printGridlines );\n        retval.gridset = (GridsetRecord) retval.createGridset();\n        records.add( retval.gridset );\n        records.add( retval.createGuts() );\n        retval.defaultrowheight =\n                (DefaultRowHeightRecord) retval.createDefaultRowHeight();\n        records.add( retval.defaultrowheight );\n        records.add( retval.createWSBool() );\n\n        retval.rowBreaks = new PageBreakRecord(PageBreakRecord.HORIZONTAL_SID);\n        records.add(retval.rowBreaks);\n        retval.colBreaks = new PageBreakRecord(PageBreakRecord.VERTICAL_SID);\n        records.add(retval.colBreaks);\n        \n        retval.header = (HeaderRecord) retval.createHeader();\n        records.add( retval.header );        \n        retval.footer = (FooterRecord) retval.createFooter();\n        records.add( retval.footer );\n        records.add( retval.createHCenter() );\n        records.add( retval.createVCenter() );\n        retval.printSetup = (PrintSetupRecord) retval.createPrintSetup();\n        records.add( retval.printSetup );\n        retval.defaultcolwidth =\n                (DefaultColWidthRecord) retval.createDefaultColWidth();\n        records.add( retval.defaultcolwidth);\n        ColumnInfoRecordsAggregate columns = new ColumnInfoRecordsAggregate();\n        records.add( columns );\n        retval.columns = columns;\n        retval.dims    = ( DimensionsRecord ) retval.createDimensions();\n        records.add(retval.dims);\n        retval.dimsloc = records.size()-1;\n        records.add(retval.windowTwo = retval.createWindowTwo());\n        retval.setLoc(records.size() - 1);\n        retval.selection = \n                (SelectionRecord) retval.createSelection();\n        records.add(retval.selection);\n\t\tretval.protect = (ProtectRecord) retval.createProtect();\n\t\trecords.add(retval.protect);\n        records.add(retval.createEOF());\n\n\n        retval.records = records;\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet createsheet from scratch exit\");\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [6, 51], [2, 52], [9, 53], [14, 54], [15, 55], [16, 56], [3, 57], [25, 58], [26, 59], [32, 60], [34, 61], [35, 62], [38, 63], [43, 64], [44, 65], [45, 66], [46, 67], [47, 68], [48, 69], [49, 70], [50, 71], [4, 72], [5, 73], [6, 74], [52, 75], [11, 76], [13, 77], [54, 78], [54, 79], [55, 80], [56, 81], [56, 82], [18, 83], [22, 84], [24, 85], [28, 86], [30, 87], [37, 88], [40, 89], [42, 90], [72, 91], [74, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 6], [52, 2], [53, 9], [54, 14], [55, 15], [56, 16], [57, 3], [58, 25], [59, 26], [60, 32], [61, 34], [62, 35], [63, 38], [64, 43], [65, 44], [66, 45], [67, 46], [68, 47], [69, 48], [70, 49], [71, 50], [72, 4], [73, 5], [74, 6], [75, 52], [76, 11], [77, 13], [78, 54], [79, 54], [80, 55], [81, 56], [82, 56], [83, 18], [84, 22], [85, 24], [86, 28], [87, 30], [88, 37], [89, 40], [90, 42], [91, 72], [92, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "checkCells", "code": "    private void checkCells()\n    {\n        if (cells == null)\n        {\n            cells = new ValueRecordsAggregate();\n            records.add(getDimsLoc() + 1, cells);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "checkRows", "code": "    private void checkRows()\n    {\n        if (rows == null)\n        {\n            rows = new RowRecordsAggregate();\n            records.add(getDimsLoc() + 1, rows);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "addMergedRegion", "code": "    public int addMergedRegion(int rowFrom, short colFrom, int rowTo,\n                               short colTo)\n    {\n        if (merged == null || merged.getNumAreas() == 1027)\n        {\n            merged = ( MergeCellsRecord ) createMergedCells();\n            mergedRecords.add(merged);            \n            records.add(records.size() - 1, merged);\n        }\n        merged.addArea(rowFrom, colFrom, rowTo, colTo);\n        return numMergedRegions++; ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [8, 9], [8, 10], [2, 11], [2, 12], [2, 13], [9, 14], [9, 15], [10, 16], [11, 17], [17, 18], [17, 19], [13, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 8], [10, 8], [11, 2], [12, 2], [13, 2], [14, 9], [15, 9], [16, 10], [17, 11], [18, 17], [19, 17], [20, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "removeMergedRegion", "code": "    public void removeMergedRegion(int index)\n    {\n        if (index >= numMergedRegions || mergedRecords.size() == 0)\n           return;\n            \n        int pos = 0;\n        int startNumRegions = 0;\n        \n        if (numMergedRegions - index < merged.getNumAreas())\n        {\n            pos = mergedRecords.size() - 1;\n            startNumRegions = numMergedRegions - merged.getNumAreas(); \n        }\n        else\n        {\n            for (int n = 0; n < mergedRecords.size(); n++)\n            {\n                MergeCellsRecord record = (MergeCellsRecord) mergedRecords.get(n);\n                if (startNumRegions + record.getNumAreas() > index)\n                {\n                    pos = n;\n                    break;\n                }\n                startNumRegions += record.getNumAreas(); \n            }\n        }\n\n        MergeCellsRecord rec = (MergeCellsRecord) mergedRecords.get(pos);\n        rec.removeAreaAt(index - startNumRegions);\n        numMergedRegions--;\n        if (rec.getNumAreas() == 0)\n        {\n\t\t\tmergedRecords.remove(pos);\n\t\t\trecords.remove(merged);            \n            if (merged == rec) {\n            \tif (mergedRecords.size() > 0) {\n            \t\tmerged = (MergeCellsRecord) mergedRecords.get(mergedRecords.size() - 1);\n            \t} else {\n            \t\tmerged = null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LOOP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [3, 10], [6, 11], [6, 12], [1, 13], [8, 14], [8, 15], [9, 16], [3, 17], [10, 18], [10, 19], [4, 20], [5, 21], [12, 22], [12, 23], [13, 24], [1, 25], [1, 26], [2, 27], [17, 28], [3, 29], [3, 30], [22, 31], [22, 32], [13, 33], [17, 34], [17, 35], [28, 36], [29, 37], [30, 38], [33, 39], [17, 40], [34, 41], [17, 42], [37, 43], [38, 44], [38, 45], [39, 46], [39, 47], [40, 48], [34, 49], [41, 50], [33, 51], [33, 52], [34, 53], [50, 54], [35, 55], [51, 56], [52, 57], [57, 58], [58, 59], [58, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 3], [11, 6], [12, 6], [13, 1], [14, 8], [15, 8], [16, 9], [17, 3], [18, 10], [19, 10], [20, 4], [21, 5], [22, 12], [23, 12], [24, 13], [25, 1], [26, 1], [27, 2], [28, 17], [29, 3], [30, 3], [31, 22], [32, 22], [33, 13], [34, 17], [35, 17], [36, 28], [37, 29], [38, 30], [39, 33], [40, 17], [41, 34], [42, 17], [43, 37], [44, 38], [45, 38], [46, 39], [47, 39], [48, 40], [49, 34], [50, 41], [51, 33], [52, 33], [53, 34], [54, 50], [55, 35], [56, 51], [57, 52], [58, 57], [59, 58], [60, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "getMergedRegionAt", "code": "    public MergeCellsRecord.MergedRegion getMergedRegionAt(int index)\n    {\n        if (index >= numMergedRegions || mergedRecords.size() == 0)\n            return null;\n            \n        int pos = 0;\n        int startNumRegions = 0;\n        \n        if (numMergedRegions - index < merged.getNumAreas())\n        {\n            pos = mergedRecords.size() - 1;\n            startNumRegions = numMergedRegions - merged.getNumAreas();\n        }\n        else\n        {\n            for (int n = 0; n < mergedRecords.size(); n++)\n            {\n                MergeCellsRecord record = (MergeCellsRecord) mergedRecords.get(n);\n                if (startNumRegions + record.getNumAreas() > index)\n                {\n                    pos = n;\n                    break;\n                }\n                startNumRegions += record.getNumAreas(); \n            }\n        }\n        return ((MergeCellsRecord) mergedRecords.get(pos)).getAreaAt(index - startNumRegions);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LOOP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [5, 8], [5, 9], [1, 10], [2, 11], [7, 12], [7, 13], [3, 14], [4, 15], [8, 16], [9, 17], [9, 18], [11, 19], [2, 20], [2, 21], [17, 22], [17, 23], [11, 24], [11, 25], [19, 26], [20, 27], [21, 28], [11, 29], [24, 30], [11, 31], [27, 32], [28, 33], [28, 34], [29, 35], [24, 36], [30, 37], [24, 38], [37, 39], [25, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 5], [9, 5], [10, 1], [11, 2], [12, 7], [13, 7], [14, 3], [15, 4], [16, 8], [17, 9], [18, 9], [19, 11], [20, 2], [21, 2], [22, 17], [23, 17], [24, 11], [25, 11], [26, 19], [27, 20], [28, 21], [29, 11], [30, 24], [31, 11], [32, 27], [33, 28], [34, 28], [35, 29], [36, 24], [37, 30], [38, 24], [39, 37], [40, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "getNumMergedRegions", "code": "    public int getNumMergedRegions()\n    {\n        return numMergedRegions;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "convertLabelRecords", "code": "    public void convertLabelRecords(Workbook wb)\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"convertLabelRecords called\");\n        if (containsLabels)\n        {\n            for (int k = 0; k < records.size(); k++)\n            {\n                Record rec = ( Record ) records.get(k);\n\n                if (rec.getSid() == LabelRecord.sid)\n                {\n                    LabelRecord oldrec = ( LabelRecord ) rec;\n\n                    records.remove(k);\n                    LabelSSTRecord newrec   = new LabelSSTRecord();\n                    int            stringid =\n                        wb.addSSTString(oldrec.getValue());\n\n                    newrec.setRow(oldrec.getRow());\n                    newrec.setColumn(oldrec.getColumn());\n                    newrec.setXFIndex(oldrec.getXFIndex());\n                    newrec.setSSTIndex(stringid);\n                          records.add(k, newrec);\n                }\n            }\n        }\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"convertLabelRecords exit\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "CALL", "CALL", "CALL", "LOOP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [2, 8], [3, 9], [7, 10], [8, 11], [9, 12], [8, 13], [8, 14], [11, 15], [13, 16], [8, 17], [13, 18], [13, 19], [13, 20], [16, 21], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [13, 27], [14, 28], [24, 29], [25, 30], [26, 31], [18, 32], [19, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 2], [9, 3], [10, 7], [11, 8], [12, 9], [13, 8], [14, 8], [15, 11], [16, 13], [17, 8], [18, 13], [19, 13], [20, 13], [21, 16], [22, 13], [23, 13], [24, 13], [25, 13], [26, 13], [27, 13], [28, 14], [29, 24], [30, 25], [31, 26], [32, 18], [33, 19], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getNumRecords", "code": "    public int getNumRecords()\n    {\n        checkCells();\n        checkRows();\n        if (log.check( POILogger.DEBUG ))\n        {\n            log.log(POILogger.DEBUG, \"Sheet.getNumRecords\");\n            log.logFormatted(POILogger.DEBUG, \"returning % + % + % - 2 = %\", new int[]\n            {\n                records.size(), cells.getPhysicalNumberOfCells(),\n                rows.getPhysicalNumberOfRows(),\n                records.size() + cells.getPhysicalNumberOfCells()\n                + rows.getPhysicalNumberOfRows() - 2\n            });\n        }\n        return records.size() + cells.getPhysicalNumberOfCells()\n               + rows.getPhysicalNumberOfRows() - 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [0, 5], [0, 6], [3, 7], [3, 8], [8, 9], [8, 10], [2, 11], [2, 12], [10, 13], [10, 14], [11, 15], [12, 16], [11, 17], [11, 18], [11, 19], [11, 20], [17, 21], [17, 22], [22, 23], [22, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 1], [4, 2], [5, 0], [6, 0], [7, 3], [8, 3], [9, 8], [10, 8], [11, 2], [12, 2], [13, 10], [14, 10], [15, 11], [16, 12], [17, 11], [18, 11], [19, 11], [20, 11], [21, 17], [22, 17], [23, 22], [24, 22], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "setDimensions", "code": "    public void setDimensions(int firstrow, short firstcol, int lastrow,\n                              short lastcol)\n    {\n        if (log.check( POILogger.DEBUG ))\n        {\n            log.log(POILogger.DEBUG, \"Sheet.setDimensions\");\n            log.log(POILogger.DEBUG,\n                    (new StringBuffer(\"firstrow\")).append(firstrow)\n                        .append(\"firstcol\").append(firstcol).append(\"lastrow\")\n                        .append(lastrow).append(\"lastcol\").append(lastcol)\n                        .toString());\n        }\n        dims.setFirstCol(firstcol);\n        dims.setFirstRow(firstrow);\n        dims.setLastCol(lastcol);\n        dims.setLastRow(lastrow);\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet.setDimensions exiting\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [1, 13], [13, 14], [2, 15], [2, 16], [15, 17], [16, 18], [17, 19], [17, 20], [17, 21], [17, 22], [17, 23], [17, 24], [17, 25], [17, 26], [17, 27], [22, 28], [24, 29], [26, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 1], [14, 13], [15, 2], [16, 2], [17, 15], [18, 16], [19, 17], [20, 17], [21, 17], [22, 17], [23, 17], [24, 17], [25, 17], [26, 17], [27, 17], [28, 22], [29, 24], [30, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "setLoc", "code": "    public void setLoc(int loc)\n    {\n        valueRecIterator = null;\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"sheet.setLoc(): \" + loc);\n        this.loc = loc;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [5, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 5], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getLoc", "code": "    public int getLoc()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"sheet.getLoc():\" + loc);\n        return loc;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setPreOffset", "code": "    public void setPreOffset(int offset)\n    {\n        this.preoffset = offset;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPreOffset", "code": "    public int getPreOffset()\n    {\n        return preoffset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "serialize", "code": "    public byte [] serialize()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet.serialize\");\n\n        byte[] retval    = null;\n\n        int    arraysize = getSize();\n        int    pos       = 0;\n\n        retval = new byte[ arraysize ];\n        for (int k = 0; k < records.size(); k++)\n        {\n\n            pos += (( Record ) records.get(k)).serialize(pos);\n        }\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet.serialize returning \" + retval);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [0, 10], [7, 11], [2, 12], [9, 13], [4, 14], [5, 15], [6, 16], [7, 17], [12, 18], [3, 19], [3, 20], [17, 21], [18, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 0], [11, 7], [12, 2], [13, 9], [14, 4], [15, 5], [16, 6], [17, 7], [18, 12], [19, 3], [20, 3], [21, 17], [22, 18], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet.serialize using offsets\");\n\n        int pos       = 0;\n\n        for (int k = 0; k < records.size(); k++)\n        {\n            Record record = (( Record ) records.get(k));\n\n\n\n        }\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"Sheet.serialize returning \");\n        return pos;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [5, 10], [2, 11], [3, 12], [9, 13], [4, 14], [5, 15], [11, 16], [3, 17], [15, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 5], [11, 2], [12, 3], [13, 9], [14, 4], [15, 5], [16, 11], [17, 3], [18, 15], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "createRow", "code": "    public RowRecord createRow(int row)\n    {\n        return RowRecordsAggregate.createRow( row );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createLabelSST", "code": "    public LabelSSTRecord createLabelSST(int row, short col, int index)\n    {\n        log.logFormatted(POILogger.DEBUG, \"create labelsst row,col,index %,%,%\",\n                         new int[]\n        {\n            row, col, index\n        });\n        LabelSSTRecord rec = new LabelSSTRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setSSTIndex(index);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [10, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 10], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createNumber", "code": "    public NumberRecord createNumber(int row, short col, double value)\n    {\n        log.logFormatted(POILogger.DEBUG, \"create number row,col,value %,%,%\",\n                         new double[]\n        {\n            row, col, value\n        });\n        NumberRecord rec = new NumberRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setValue(value);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [10, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 10], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createBlank", "code": "    public BlankRecord createBlank(int row, short col)\n    {\n        log.logFormatted(POILogger.DEBUG, \"create blank row,col %,%\", new int[]\n        {\n            row, col\n        });\n        BlankRecord rec = new BlankRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setXFIndex(( short ) 0x0f);\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [8, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 8], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "createFormula", "code": "    public FormulaRecord createFormula(int row, short col, String formula)\n    {\n        log.logFormatted(POILogger.DEBUG, \"create formula row,col,formula %,%,%\",\n                         new int[]\n        {\n            row, col\n        }, formula);\n        FormulaRecord rec = new FormulaRecord();\n\n        rec.setRow(row);\n        rec.setColumn(col);\n        rec.setOptions(( short ) 2);\n        rec.setValue(0);\n        rec.setXFIndex(( short ) 0x0f);\n        fp.parse();\n        Ptg[] ptg  = fp.getRPNPtg();\n        int   size = 0;\n\n        for (int k = 0; k < ptg.length; k++)\n        {\n            size += ptg[ k ].getSize();\n            rec.pushExpressionToken(ptg[ k ]);\n        }\n        rec.setExpressionLength(( short ) size);\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [3, 18], [4, 19], [13, 20], [5, 21], [17, 22], [2, 23], [2, 24], [2, 25], [12, 26], [14, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 3], [19, 4], [20, 13], [21, 5], [22, 17], [23, 2], [24, 2], [25, 2], [26, 12], [27, 14], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "addValueRecord", "code": "    public void addValueRecord(int row, CellValueRecordInterface col)\n    {\n        checkCells();\n        log.logFormatted(POILogger.DEBUG, \"add value record  row,loc %,%\", new int[]\n        {\n            row, loc\n        });\n        DimensionsRecord d = ( DimensionsRecord ) records.get(getDimsLoc());\n\n        if (col.getColumn() > d.getLastCol())\n        {\n            d.setLastCol(( short ) (col.getColumn() + 1));\n        }\n        if (col.getColumn() < d.getFirstCol())\n        {\n            d.setFirstCol(col.getColumn());\n        }\n        cells.insertCell(col);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [0, 10], [7, 11], [7, 12], [8, 13], [8, 14], [9, 15], [1, 16], [2, 17], [3, 18], [16, 19], [18, 20], [17, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 0], [11, 7], [12, 7], [13, 8], [14, 8], [15, 9], [16, 1], [17, 2], [18, 3], [19, 16], [20, 18], [21, 17], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "removeValueRecord", "code": "    public void removeValueRecord(int row, CellValueRecordInterface col)\n    {\n        checkCells();\n        log.logFormatted(POILogger.DEBUG, \"remove value record row,dimsloc %,%\",\n                         new int[]{row, dimsloc} );\n        loc = dimsloc;\n        cells.removeCell(col);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "replaceValueRecord", "code": "    public void replaceValueRecord(CellValueRecordInterface newval)\n    {\n        checkCells();\n        setLoc(dimsloc);\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"replaceValueRecord \");\n        cells.insertCell(newval);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addRow", "code": "    public void addRow(RowRecord row)\n    {\n        checkRows();\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"addRow \");\n        DimensionsRecord d = ( DimensionsRecord ) records.get(getDimsLoc());\n\n        if (row.getRowNumber() >= d.getLastRow())\n        {\n            d.setLastRow(row.getRowNumber() + 1);\n        }\n        if (row.getRowNumber() < d.getFirstRow())\n        {\n            d.setFirstRow(row.getRowNumber());\n        }\n         RowRecord existingRow = rows.getRow(row.getRowNumber());\n         if (existingRow != null)\n           rows.removeRow(existingRow);\n\n        rows.insertRow(row);\n\n        /*\n         * for (int k = loc; k < records.size(); k++)\n         * {\n         *   Record rec = ( Record ) records.get(k);\n         *\n         *   if (rec.getSid() == IndexRecord.sid)\n         *   {\n         *       index = ( IndexRecord ) rec;\n         *   }\n         *   if (rec.getSid() == RowRecord.sid)\n         *   {\n         *       RowRecord rowrec = ( RowRecord ) rec;\n         *\n         *       if (rowrec.getRowNumber() > row.getRowNumber())\n         *       {\n         *           records.add(k, row);\n         *           loc = k;\n         *           break;\n         *       }\n         *   }\n         *   if (rec.getSid() == WindowTwoRecord.sid)\n         *   {\n         *       records.add(k, row);\n         *       loc = k;\n         *       break;\n         *   }\n         * }\n         * if (index != null)\n         * {\n         *   if (index.getLastRowAdd1() <= row.getRowNumber())\n         *   {\n         *       index.setLastRowAdd1(row.getRowNumber() + 1);\n         *   }\n         * }\n         */\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"exit addRow\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [4, 12], [5, 13], [7, 14], [0, 15], [1, 16], [2, 17], [11, 18], [3, 19], [12, 20], [12, 21], [13, 22], [13, 23], [7, 24], [16, 25], [19, 26], [4, 27], [5, 28], [6, 29], [24, 30], [27, 31], [28, 32], [29, 33], [32, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 4], [13, 5], [14, 7], [15, 0], [16, 1], [17, 2], [18, 11], [19, 3], [20, 12], [21, 12], [22, 13], [23, 13], [24, 7], [25, 16], [26, 19], [27, 4], [28, 5], [29, 6], [30, 24], [31, 27], [32, 28], [33, 29], [34, 32], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "removeRow", "code": "    public void removeRow(RowRecord row)\n    {\n        checkRows();\n\n        setLoc(getDimsLoc());\n        rows.removeRow(row);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getNextValueRecord", "code": "    public CellValueRecordInterface getNextValueRecord()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"getNextValue loc= \" + loc);\n        if (valueRecIterator == null)\n        {\n            valueRecIterator = cells.getIterator();\n        }\n        if (!valueRecIterator.hasNext())\n        {\n            return null;\n        }\n        return ( CellValueRecordInterface ) valueRecIterator.next();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 8], [2, 9], [6, 10], [4, 11], [9, 12], [3, 13], [11, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 1], [9, 2], [10, 6], [11, 4], [12, 9], [13, 3], [14, 11], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getNextRow", "code": "    public RowRecord getNextRow()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"getNextRow loc= \" + loc);\n        if (rowRecIterator == null)\n        {\n            rowRecIterator = rows.getIterator();\n        }\n        if (!rowRecIterator.hasNext())\n        {\n            return null;\n        }\n        return ( RowRecord ) rowRecIterator.next();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 8], [2, 9], [6, 10], [4, 11], [9, 12], [3, 13], [11, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 1], [9, 2], [10, 6], [11, 4], [12, 9], [13, 3], [14, 11], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getRow", "code": "    public RowRecord getRow(int rownum)\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"getNextRow loc= \" + loc);\n        return rows.getRow(rownum);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addDBCellRecords", "code": "    public void addDBCellRecords()\n    {\n        int         offset        = 0;\n        int         recnum        = 0;\n        int         rownum        = 0;\n        IndexRecord index         = null;\n\n        IntList     rowOffsets    = new IntList();\n\n        for (recnum = 0; recnum < records.size(); recnum++)\n        {\n            Record rec = ( Record ) records.get(recnum);\n\n            if (rec.getSid() == IndexRecord.sid)\n            {\n                index = ( IndexRecord ) rec;\n            }\n            if (rec.getSid() != RowRecord.sid)\n            {\n                offset += rec.serialize().length;\n            }\n            else\n            {\n                break;\n            }\n        }\n\n        for (; recnum < records.size(); recnum++)\n        {\n            Record rec = ( Record ) records.get(recnum);\n\n            if (rec.getSid() == RowRecord.sid)\n            {\n                rownum++;\n                rowOffsets.add(offset);\n                if ((rownum % 32) == 0)\n                {\n\n                    for (int rn = recnum; rn < records.size(); rn++)\n                    {\n                        rec = ( Record ) records.get(rn);\n                        if ((!rec.isInValueSection())\n                                || (rec.getSid() == RowRecord.sid))\n                        {\n\n                            records.add(rn,\n                                        createDBCell(offset, rowOffsets,\n                                                     index));\n                            recnum = rn;\n                            break;\n                        }\n                    }\n                }\n                else\n                {\n                }\n            }\n            if (!rec.isInValueSection())\n            {\n                records.add(recnum, createDBCell(offset, rowOffsets, index));\n                break;\n            }\n            offset += rec.serialize().length;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "IF", "VAR_DECL", "CALL", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "IF", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [1, 11], [1, 12], [1, 13], [8, 14], [2, 15], [2, 16], [2, 17], [9, 18], [10, 19], [3, 20], [4, 21], [5, 22], [6, 23], [7, 24], [1, 25], [11, 26], [12, 27], [15, 28], [16, 29], [25, 30], [11, 31], [12, 32], [27, 33], [15, 34], [28, 35], [29, 36], [11, 37], [32, 38], [12, 39], [13, 40], [15, 41], [16, 42], [17, 43], [37, 44], [32, 45], [38, 46], [38, 47], [41, 48], [45, 49], [47, 50], [45, 51], [49, 52], [51, 53], [45, 54], [51, 55], [53, 56], [53, 57], [51, 58], [51, 59], [56, 60], [54, 61], [59, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 1], [12, 1], [13, 1], [14, 8], [15, 2], [16, 2], [17, 2], [18, 9], [19, 10], [20, 3], [21, 4], [22, 5], [23, 6], [24, 7], [25, 1], [26, 11], [27, 12], [28, 15], [29, 16], [30, 25], [31, 11], [32, 12], [33, 27], [34, 15], [35, 28], [36, 29], [37, 11], [38, 32], [39, 12], [40, 13], [41, 15], [42, 16], [43, 17], [44, 37], [45, 32], [46, 38], [47, 38], [48, 41], [49, 45], [50, 47], [51, 45], [52, 49], [53, 51], [54, 45], [55, 51], [56, 53], [57, 53], [58, 51], [59, 51], [60, 56], [61, 54], [62, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "createDBCell", "code": "    private DBCellRecord createDBCell(int offset, IntList rowoffsets,\n                                      IndexRecord index)\n    {\n        DBCellRecord rec = new DBCellRecord();\n\n        rec.setRowOffset(offset - rowoffsets.get(0));\n\n        rec.addCellOffset(( short ) 0x0);\n\n        addDbCellToIndex(offset, index);\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [8, 9], [2, 10], [7, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 8], [10, 2], [11, 7], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "addDbCellToIndex", "code": "    private void addDbCellToIndex(int offset, IndexRecord index)\n    {\n        int numdbcells = index.getNumDbcells() + 1;\n\n        index.addDbcell(offset + preoffset);\n\n        for (int k = 0; k < numdbcells; k++)\n        {\n            int dbval = index.getDbcellAt(k);\n\n            index.setDbcell(k, dbval + 4);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [6, 8], [2, 9], [1, 10], [1, 11], [9, 12], [9, 13], [10, 14], [7, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 6], [9, 2], [10, 1], [11, 1], [12, 9], [13, 9], [14, 10], [15, 7], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "createBOF", "code": "    protected Record createBOF()\n    {\n        BOFRecord retval = new BOFRecord();\n\n        retval.setVersion(( short ) 0x600);\n        retval.setType(( short ) 0x010);\n\n        retval.setBuild(( short ) 0x0dbb);\n        retval.setBuildYear(( short ) 1996);\n        retval.setHistoryBitMask(0xc1);\n        retval.setRequiredVersion(0x6);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "createIndex", "code": "    protected Record createIndex()\n    {\n        IndexRecord retval = new IndexRecord();\n\n        retval.setLastRowAdd1(0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createCalcMode", "code": "    protected Record createCalcMode()\n    {\n        CalcModeRecord retval = new CalcModeRecord();\n\n        retval.setCalcMode(( short ) 1);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createCalcCount", "code": "    protected Record createCalcCount()\n    {\n        CalcCountRecord retval = new CalcCountRecord();\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createRefMode", "code": "    protected Record createRefMode()\n    {\n        RefModeRecord retval = new RefModeRecord();\n\n        retval.setMode(RefModeRecord.USE_A1_MODE);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createIteration", "code": "    protected Record createIteration()\n    {\n        IterationRecord retval = new IterationRecord();\n\n        retval.setIteration(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createDelta", "code": "    protected Record createDelta()\n    {\n        DeltaRecord retval = new DeltaRecord();\n\n        retval.setMaxChange(0.0010);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createSaveRecalc", "code": "    protected Record createSaveRecalc()\n    {\n        SaveRecalcRecord retval = new SaveRecalcRecord();\n\n        retval.setRecalc(true);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createPrintHeaders", "code": "    protected Record createPrintHeaders()\n    {\n        PrintHeadersRecord retval = new PrintHeadersRecord();\n\n        retval.setPrintHeaders(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createPrintGridlines", "code": "    protected Record createPrintGridlines()\n    {\n        PrintGridlinesRecord retval = new PrintGridlinesRecord();\n\n        retval.setPrintGridlines(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createGridset", "code": "    protected Record createGridset()\n    {\n        GridsetRecord retval = new GridsetRecord();\n\n        retval.setGridset(true);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createGuts", "code": "    protected Record createGuts()\n    {\n        GutsRecord retval = new GutsRecord();\n\n        retval.setLeftRowGutter(( short ) 0);\n        retval.setTopColGutter(( short ) 0);\n        retval.setRowLevelMax(( short ) 0);\n        retval.setColLevelMax(( short ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "createDefaultRowHeight", "code": "    protected Record createDefaultRowHeight()\n    {\n        DefaultRowHeightRecord retval = new DefaultRowHeightRecord();\n\n        retval.setOptionFlags(( short ) 0);\n        retval.setRowHeight(( short ) 0xff);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createWSBool", "code": "    protected Record createWSBool()\n    {\n        WSBoolRecord retval = new WSBoolRecord();\n\n        retval.setWSBool1(( byte ) 0x4);\n        retval.setWSBool2(( byte ) 0xffffffc1);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createHeader", "code": "    protected Record createHeader()\n    {\n        HeaderRecord retval = new HeaderRecord();\n\n        retval.setHeaderLength(( byte ) 0);\n        retval.setHeader(null);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createFooter", "code": "    protected Record createFooter()\n    {\n        FooterRecord retval = new FooterRecord();\n\n        retval.setFooterLength(( byte ) 0);\n        retval.setFooter(null);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createHCenter", "code": "    protected Record createHCenter()\n    {\n        HCenterRecord retval = new HCenterRecord();\n\n        retval.setHCenter(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createVCenter", "code": "    protected Record createVCenter()\n    {\n        VCenterRecord retval = new VCenterRecord();\n\n        retval.setVCenter(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createPrintSetup", "code": "    protected Record createPrintSetup()\n    {\n        PrintSetupRecord retval = new PrintSetupRecord();\n\n        retval.setPaperSize(( short ) 1);\n        retval.setScale(( short ) 100);\n        retval.setPageStart(( short ) 1);\n        retval.setFitWidth(( short ) 1);\n        retval.setFitHeight(( short ) 1);\n        retval.setOptions(( short ) 2);\n        retval.setHResolution(( short ) 300);\n        retval.setVResolution(( short ) 300);\n        retval.setHeaderMargin( 0.5);\n        retval.setFooterMargin( 0.5);\n        retval.setCopies(( short ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [4, 14], [5, 15], [2, 16], [3, 17], [6, 18], [7, 19], [8, 20], [9, 21], [10, 22], [11, 23], [12, 24], [13, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 4], [15, 5], [16, 2], [17, 3], [18, 6], [19, 7], [20, 8], [21, 9], [22, 10], [23, 11], [24, 12], [25, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "createDefaultColWidth", "code": "    protected Record createDefaultColWidth()\n    {\n        DefaultColWidthRecord retval = new DefaultColWidthRecord();\n\n        retval.setColWidth(( short ) 8);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createColInfo", "code": "    protected Record createColInfo()\n    {\n        return ColumnInfoRecordsAggregate.createColInfo();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultColumnWidth", "code": "    public short getDefaultColumnWidth()\n    {\n        return defaultcolwidth.getColWidth();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isGridsPrinted", "code": "    public boolean isGridsPrinted()\n    {\n        return !gridset.getGridset();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setGridsPrinted", "code": "    public void setGridsPrinted(boolean value)\n    {\n        gridset.setGridset(!value);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDefaultColumnWidth", "code": "    public void setDefaultColumnWidth(short dcw)\n    {\n        defaultcolwidth.setColWidth(dcw);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDefaultRowHeight", "code": "    public void setDefaultRowHeight(short dch)\n    {\n        defaultrowheight.setRowHeight(dch);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultRowHeight", "code": "    public short getDefaultRowHeight()\n    {\n        return defaultrowheight.getRowHeight();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColumnWidth", "code": "    public short getColumnWidth(short column)\n    {\n        short            retval = 0;\n        ColumnInfoRecord ci     = null;\n\n        if (columns != null)\n        {\n            for ( Iterator iterator = columns.getIterator(); iterator.hasNext(); )\n            {\n                ci = ( ColumnInfoRecord ) iterator.next();\n                if ((ci.getFirstColumn() <= column)\n                        && (column <= ci.getLastColumn()))\n                {\n                    break;\n                }\n                ci = null;\n            }\n        }\n        if (ci != null)\n        {\n            retval = ci.getColumnWidth();\n        }\n        else\n        {\n            retval = defaultcolwidth.getColWidth();\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "IF", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [7, 9], [3, 10], [8, 11], [4, 12], [5, 13], [2, 14], [2, 15], [10, 16], [14, 17], [15, 18], [10, 19], [10, 20], [19, 21], [10, 22], [10, 23], [20, 24], [19, 25], [21, 26], [21, 27], [26, 28], [27, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 7], [10, 3], [11, 8], [12, 4], [13, 5], [14, 2], [15, 2], [16, 10], [17, 14], [18, 15], [19, 10], [20, 10], [21, 19], [22, 10], [23, 10], [24, 20], [25, 19], [26, 21], [27, 21], [28, 26], [29, 27], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "setColumnWidth", "code": "    public void setColumnWidth(short column, short width)\n    {\n        setColumn( column, new Short(width), null, null, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [3, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 3], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setColumn", "code": "    public void setColumn(short column, Short width, Integer level, Boolean hidden, Boolean collapsed)\n    {\n        if (columns == null)\n            columns = new ColumnInfoRecordsAggregate();\n\n        columns.setColumn( column, width, level, hidden, collapsed );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "groupColumnRange", "code": "    public void groupColumnRange(short fromColumn, short toColumn, boolean indent)\n    {\n\n        columns.groupColumnRange( fromColumn, toColumn, indent);\n\n        int maxLevel = 0;\n        for ( Iterator iterator = columns.getIterator(); iterator.hasNext(); )\n        {\n            ColumnInfoRecord columnInfoRecord = (ColumnInfoRecord) iterator.next();\n            maxLevel = Math.max(columnInfoRecord.getOutlineLevel(), maxLevel);\n        }\n\n        GutsRecord guts = (GutsRecord) findFirstRecordBySid( GutsRecord.sid );\n        guts.setColLevelMax( (short) ( maxLevel+1 ) );\n        if (maxLevel == 0)\n            guts.setTopColGutter( (short)0 );\n        else\n            guts.setTopColGutter( (short) ( 29 + (12 * (maxLevel-1)) ) );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [3, 10], [0, 11], [1, 12], [1, 13], [8, 14], [3, 15], [4, 16], [9, 17], [2, 18], [3, 19], [3, 20], [12, 21], [13, 22], [17, 23], [19, 24], [21, 25], [21, 26], [24, 27], [15, 28], [25, 29], [25, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 3], [11, 0], [12, 1], [13, 1], [14, 8], [15, 3], [16, 4], [17, 9], [18, 2], [19, 3], [20, 3], [21, 12], [22, 13], [23, 17], [24, 19], [25, 21], [26, 21], [27, 24], [28, 15], [29, 25], [30, 25], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "createDimensions", "code": "    protected Record createDimensions()\n    {\n        DimensionsRecord retval = new DimensionsRecord();\n\n        retval.setFirstCol(( short ) 0);\n        retval.setFirstRow(0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createWindowTwo", "code": "    protected WindowTwoRecord createWindowTwo()\n    {\n        WindowTwoRecord retval = new WindowTwoRecord();\n\n        retval.setOptions(( short ) 0x6b6);\n        retval.setTopRow(( short ) 0);\n        retval.setLeftCol(( short ) 0);\n        retval.setHeaderColor(0x40);\n        retval.setPageBreakZoom(( short ) 0);\n        retval.setNormalZoom(( short ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [2, 10], [3, 11], [4, 12], [6, 13], [7, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 2], [11, 3], [12, 4], [13, 6], [14, 7], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "createSelection", "code": "    protected Record createSelection()\n    {\n        SelectionRecord retval = new SelectionRecord();\n\n        retval.setPane(( byte ) 0x3);\n        retval.setActiveCellCol(( short ) 0x0);\n        retval.setActiveCellRow(( short ) 0x0);\n        retval.setNumRefs(( short ) 0x0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getActiveCellRow", "code": "    public int getActiveCellRow()\n    {\n        if (selection == null)\n        {\n            return 0;\n        }\n        return selection.getActiveCellRow();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setActiveCellRow", "code": "    public void setActiveCellRow(int row)\n    {\n        if (selection != null)\n        {\n            selection.setActiveCellRow(row);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getActiveCellCol", "code": "    public short getActiveCellCol()\n    {\n        if (selection == null)\n        {\n            return (short) 0;\n        }\n        return selection.getActiveCellCol();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setActiveCellCol", "code": "    public void setActiveCellCol(short col)\n    {\n        if (selection != null)\n        {\n            selection.setActiveCellCol(col);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createMergedCells", "code": "    protected Record createMergedCells()\n    {\n        MergeCellsRecord retval = new MergeCellsRecord();\n        retval.setNumAreas(( short ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createEOF", "code": "    protected Record createEOF()\n    {\n        return new EOFRecord();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDimsLoc", "code": "    public int getDimsLoc()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"getDimsLoc dimsloc= \" + dimsloc);\n        return dimsloc;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "checkDimsLoc", "code": "    public void checkDimsLoc(Record rec, int recloc)\n    {\n        if (rec.getSid() == DimensionsRecord.sid)\n        {\n            loc     = recloc;\n            dimsloc = recloc;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        int retval = 0;\n\n        for (int k = 0; k < records.size(); k++)\n        {\n            retval += (( Record ) records.get(k)).getRecordSize();\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [3, 6], [2, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 3], [7, 2], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getRecords", "code": "    public List getRecords()\n    {\n        return records;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getGridsetRecord", "code": "    public GridsetRecord getGridsetRecord()\n    {\n        return gridset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "findFirstRecordBySid", "code": "    public Record findFirstRecordBySid(short sid)\n    {\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); )\n        {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid)\n            {\n                return record;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [2, 9], [6, 10], [8, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 2], [10, 6], [11, 8], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setSCLRecord", "code": "    public void setSCLRecord(SCLRecord sclRecord)\n    {\n        int oldRecordLoc = findFirstRecordLocBySid(SCLRecord.sid);\n        if (oldRecordLoc == -1)\n        {\n            int windowRecordLoc = findFirstRecordLocBySid(WindowTwoRecord.sid);\n            records.add(windowRecordLoc+1, sclRecord);\n        }\n        else\n        {\n            records.set(oldRecordLoc, sclRecord);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [1, 8], [1, 9], [9, 10], [5, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 1], [9, 1], [10, 9], [11, 5], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "findFirstRecordLocBySid", "code": "    public int findFirstRecordLocBySid( short sid )\n    {\n        int index = 0;\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); )\n        {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid)\n            {\n                return index;\n            }\n            index++;\n        }\n        return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [3, 9], [7, 10], [2, 11], [7, 12], [10, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 3], [10, 7], [11, 2], [12, 7], [13, 10], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getHeader", "code": "    public HeaderRecord getHeader ()\n    {\n\treturn header;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHeader", "code": "    public void setHeader (HeaderRecord newHeader)\n    {\n    \theader = newHeader;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFooter", "code": "    public FooterRecord getFooter ()\n    {\n\t    return footer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFooter", "code": "    public void setFooter (FooterRecord newFooter)\n    {\n\t    footer = newFooter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPrintSetup", "code": "    public PrintSetupRecord getPrintSetup ()\n    {\n\t    return printSetup;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPrintSetup", "code": "    public void setPrintSetup (PrintSetupRecord newPrintSetup)\n    {\n\t    printSetup = newPrintSetup;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPrintGridlines", "code": "    public PrintGridlinesRecord getPrintGridlines ()\n    {\n\t    return printGridlines;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPrintGridlines", "code": "    public void setPrintGridlines (PrintGridlinesRecord newPrintGridlines)\n    {\n\t    printGridlines = newPrintGridlines;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSelected", "code": "    public void setSelected(boolean sel) {\n        windowTwo.setSelected(sel);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMargin", "code": "    public double getMargin(short margin) {\n\tif (getMargins()[margin] != null)\n\t    return margins[margin].getMargin();\n\telse {\n\t    switch ( margin )\n\t\t{\n\t\tcase LeftMargin:\n\t\t    return .75;\n\t\tcase RightMargin:\n\t\t    return .75;\n\t\tcase TopMargin:\n\t\t    return 1.0;\n\t\tcase BottomMargin:\n\t\t    return 1.0;\n\t\tdefault :\n\t\t    throw new RuntimeException( \"Unknown margin constant:  \" + margin );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [4, 7], [3, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [19, 20], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 4], [8, 3], [9, 5], [10, 5], [11, 5], [12, 5], [13, 5], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "setMargin", "code": "    public void setMargin(short margin, double size) {\n\tMargin m = getMargins()[margin];\n\tif (m  == null) {\n\t    switch ( margin )\n\t\t{\n\t\tcase LeftMargin:\n\t\t    m = new LeftMarginRecord();\n\t\t    records.add( getDimsLoc() + 1, m );\n\t\t    break;\n\t\tcase RightMargin:\n\t\t    m = new RightMarginRecord();\n\t\t    records.add( getDimsLoc() + 1, m );\n\t\t    break;\n\t\tcase TopMargin:\n\t\t    m = new TopMarginRecord();\n\t\t    records.add( getDimsLoc() + 1, m );\n\t\t    break;\n\t\tcase BottomMargin:\n\t\t    m = new BottomMarginRecord();\n\t\t    records.add( getDimsLoc() + 1, m );\n\t\t    break;\n\t\tdefault :\n\t\t    throw new RuntimeException( \"Unknown margin constant:  \" + margin );\n\t\t}\n\t    margins[margin] = m;\n\t}\n\tm.setMargin( size );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "ASSIGN", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [1, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [11, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [16, 25], [17, 26], [18, 27], [19, 28], [20, 29], [21, 30], [22, 31], [23, 32], [24, 33], [25, 34], [26, 35], [26, 36], [28, 37], [28, 38], [30, 39], [30, 40], [32, 41], [32, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 1], [11, 7], [12, 7], [13, 7], [14, 7], [15, 7], [16, 11], [17, 7], [18, 7], [19, 7], [20, 7], [21, 7], [22, 7], [23, 7], [24, 7], [25, 16], [26, 17], [27, 18], [28, 19], [29, 20], [30, 21], [31, 22], [32, 23], [33, 24], [34, 25], [35, 26], [36, 26], [37, 28], [38, 28], [39, 30], [40, 30], [41, 32], [42, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getEofLoc", "code": "    public int getEofLoc()\n    {\n        return eofLoc;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createFreezePane", "code": "    public void createFreezePane(int colSplit, int rowSplit, int topRow, int leftmostColumn )\n    {\n        int loc = findFirstRecordLocBySid(WindowTwoRecord.sid);\n        PaneRecord pane = new PaneRecord();\n        pane.setX((short)colSplit);\n        pane.setY((short)rowSplit);\n        pane.setTopRow((short) topRow);\n        pane.setLeftColumn((short) leftmostColumn);\n        if (rowSplit == 0)\n        {\n            pane.setTopRow((short)0);\n            pane.setActivePane((short)1);\n        }\n        else if (colSplit == 0)\n        {\n            pane.setLeftColumn((short)64);\n            pane.setActivePane((short)2);\n        }\n        else\n        {\n            pane.setActivePane((short)0);\n        }\n        records.add(loc+1, pane);\n\n        windowTwo.setFreezePanes(true);\n        windowTwo.setFreezePanesNoSplit(true);\n\n        SelectionRecord sel = (SelectionRecord) findFirstRecordBySid(SelectionRecord.sid);\n        sel.setPane((byte)pane.getActivePane());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [2, 14], [0, 15], [0, 16], [0, 17], [0, 18], [10, 19], [11, 20], [12, 21], [13, 22], [14, 23], [3, 24], [4, 25], [9, 26], [1, 27], [21, 28], [22, 29], [2, 30], [2, 31], [13, 32], [13, 33], [13, 34], [30, 35], [31, 36], [32, 37], [33, 38], [34, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 2], [15, 0], [16, 0], [17, 0], [18, 0], [19, 10], [20, 11], [21, 12], [22, 13], [23, 14], [24, 3], [25, 4], [26, 9], [27, 1], [28, 21], [29, 22], [30, 2], [31, 2], [32, 13], [33, 13], [34, 13], [35, 30], [36, 31], [37, 32], [38, 33], [39, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "createSplitPane", "code": "    public void createSplitPane(int xSplitPos, int ySplitPos, int topRow, int leftmostColumn, int activePane )\n    {\n        int loc = findFirstRecordLocBySid(WindowTwoRecord.sid);\n        PaneRecord r = new PaneRecord();\n        r.setX((short)xSplitPos);\n        r.setY((short)ySplitPos);\n        r.setTopRow((short) topRow);\n        r.setLeftColumn((short) leftmostColumn);\n        r.setActivePane((short) activePane);\n        records.add(loc+1, r);\n\n        windowTwo.setFreezePanes(false);\n        windowTwo.setFreezePanesNoSplit(false);\n\n        SelectionRecord sel = (SelectionRecord) findFirstRecordBySid(SelectionRecord.sid);\n        sel.setPane(PANE_LOWER_RIGHT);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [10, 18], [11, 19], [12, 20], [2, 21], [3, 22], [1, 23], [20, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 10], [19, 11], [20, 12], [21, 2], [22, 3], [23, 1], [24, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getSelection", "code": "    public SelectionRecord getSelection()\n    {\n        return selection;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSelection", "code": "    public void setSelection( SelectionRecord selection )\n    {\n        this.selection = selection;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProtect", "code": "    protected Record createProtect()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(POILogger.DEBUG, \"create protect record with protection disabled\");\n        ProtectRecord retval = new ProtectRecord();\n\n        retval.setProtect(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [2, 7], [3, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 2], [8, 3], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getProtect", "code": "    public ProtectRecord getProtect()\n    {\n        return protect;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDisplayGridlines", "code": "    public void setDisplayGridlines(boolean show) {\n        windowTwo.setDisplayGridlines(show);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDisplayGridlines", "code": "    public boolean isDisplayGridlines() {\n\treturn windowTwo.getDisplayGridlines();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDisplayFormulas", "code": "    public void setDisplayFormulas(boolean show) {\n        windowTwo.setDisplayFormulas(show);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDisplayFormulas", "code": "    public boolean isDisplayFormulas() {\n\treturn windowTwo.getDisplayFormulas();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDisplayRowColHeadings", "code": "    public void setDisplayRowColHeadings(boolean show) {\n        windowTwo.setDisplayRowColHeadings(show);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDisplayRowColHeadings", "code": "    public boolean isDisplayRowColHeadings() {\n\t    return windowTwo.getDisplayRowColHeadings();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMargins", "code": "    protected Margin[] getMargins() {\n        if (margins == null)\n            margins = new Margin[4];\n    \treturn margins;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "aggregateDrawingRecords", "code": "    public int aggregateDrawingRecords(DrawingManager drawingManager)\n    {\n        int loc = findFirstRecordLocBySid(DrawingRecord.sid);\n        boolean noDrawingRecordsFound = loc == -1;\n        if (noDrawingRecordsFound)\n        {\n            EscherAggregate aggregate = new EscherAggregate( drawingManager );\n            loc = findFirstRecordLocBySid(EscherAggregate.sid);\n            if (loc == -1)\n            {\n                loc = findFirstRecordLocBySid( WindowTwoRecord.sid );\n            }\n            else\n            {\n                getRecords().remove(loc);\n            }\n            getRecords().add( loc, aggregate );\n            return loc;\n        }\n        else\n        {\n            List records = getRecords();\n            EscherAggregate r = EscherAggregate.createAggregate( records, loc, drawingManager );\n            int startloc = loc;\n            while ( loc + 1 < records.size()\n                    && records.get( loc ) instanceof DrawingRecord\n                    && records.get( loc + 1 ) instanceof ObjRecord )\n            {\n                loc += 2;\n            }\n            int endloc = loc-1;\n            for(int i = 0; i < (endloc - startloc + 1); i++)\n                records.remove(startloc);\n            records.add(startloc, r);\n\n            return startloc;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [1, 17], [6, 18], [8, 19], [1, 20], [13, 21], [1, 22], [15, 23], [6, 24], [18, 25], [7, 26], [19, 27], [19, 28], [10, 29], [11, 30], [20, 31], [21, 32], [22, 33], [14, 34], [25, 35], [25, 36], [6, 37], [26, 38], [8, 39], [27, 40], [28, 41], [28, 42], [13, 43], [13, 44], [39, 45], [40, 46], [41, 47], [42, 48], [42, 49], [43, 50], [44, 51], [46, 52], [49, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 1], [18, 6], [19, 8], [20, 1], [21, 13], [22, 1], [23, 15], [24, 6], [25, 18], [26, 7], [27, 19], [28, 19], [29, 10], [30, 11], [31, 20], [32, 21], [33, 22], [34, 14], [35, 25], [36, 25], [37, 6], [38, 26], [39, 8], [40, 27], [41, 28], [42, 28], [43, 13], [44, 13], [45, 39], [46, 40], [47, 41], [48, 42], [49, 42], [50, 43], [51, 44], [52, 46], [53, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "preSerialize", "code": "    public void preSerialize()\n    {\n        for ( Iterator iterator = getRecords().iterator(); iterator.hasNext(); )\n        {\n            Record r = (Record) iterator.next();\n            if (r instanceof EscherAggregate){}", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [1, 6], [6, 7], [4, 8], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 1], [7, 6], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "shiftBreaks", "code": "    public void shiftBreaks(PageBreakRecord breaks, short start, short stop, int count) {\n   \t\n    \tif(rowBreaks == null)\n    \t\treturn;\n    \tIterator iterator = breaks.getBreaksIterator();\n    \tList shiftedBreak = new ArrayList();\n    \twhile(iterator.hasNext()) \n    \t{\n    \t\tPageBreakRecord.Break breakItem = (PageBreakRecord.Break)iterator.next();\n    \t\tshort breakLocation = breakItem.main;\n    \t\tboolean inStart = (breakLocation >= start);\n    \t\tboolean inEnd = (breakLocation <= stop);\n    \t\tif(inStart && inEnd)\n    \t\t\tshiftedBreak.add(breakItem);\n    \t}\n    \t\n    \titerator = shiftedBreak.iterator();\n    \twhile (iterator.hasNext()) {    \t\t\n\t\t\tPageBreakRecord.Break breakItem = (PageBreakRecord.Break)iterator.next();\n    \t\tbreaks.removeBreak(breakItem.main);\n    \t\tbreaks.addBreak((short)(breakItem.main+count), breakItem.subFrom, breakItem.subTo);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [2, 12], [5, 13], [5, 14], [1, 15], [11, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [3, 22], [4, 23], [14, 24], [1, 25], [1, 26], [17, 27], [17, 28], [18, 29], [19, 30], [25, 31], [15, 32], [21, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 2], [13, 5], [14, 5], [15, 1], [16, 11], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 3], [23, 4], [24, 14], [25, 1], [26, 1], [27, 17], [28, 17], [29, 18], [30, 19], [31, 25], [32, 15], [33, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "setRowBreak", "code": "    public void setRowBreak(int row, short fromCol, short toCol) {    \t\n    \trowBreaks.addBreak((short)row, fromCol, toCol);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeRowBreak", "code": "    public void removeRowBreak(int row) {\n    \trowBreaks.removeBreak((short)row);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isRowBroken", "code": "    public boolean isRowBroken(int row) {\n    \treturn rowBreaks.getBreak((short)row) != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setColumnBreak", "code": "    public void setColumnBreak(short column, short fromRow, short toRow) {    \t\n    \tcolBreaks.addBreak(column, fromRow, toRow);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeColumnBreak", "code": "    public void removeColumnBreak(short column) {\n    \tcolBreaks.removeBreak(column);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isColumnBroken", "code": "    public boolean isColumnBroken(short column) {\n    \treturn colBreaks.getBreak(column) != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "shiftRowBreaks", "code": "    public void shiftRowBreaks(int startingRow, int endingRow, int count) {\n    \tshiftBreaks(rowBreaks, (short)startingRow, (short)endingRow, (short)count);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "shiftColumnBreaks", "code": "    public void shiftColumnBreaks(short startingCol, short endingCol, short count) {\n    \tshiftBreaks(colBreaks, startingCol, endingCol, count);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRowBreaks", "code": "    public Iterator getRowBreaks() {\n    \treturn rowBreaks.getBreaksIterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumRowBreaks", "code": "    public int getNumRowBreaks(){\n    \treturn (int)rowBreaks.getNumBreaks();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColumnBreaks", "code": "    public Iterator getColumnBreaks(){\n    \treturn colBreaks.getBreaksIterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumColumnBreaks", "code": "    public int getNumColumnBreaks(){\n    \treturn (int)colBreaks.getNumBreaks();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setColumnGroupCollapsed", "code": "    public void setColumnGroupCollapsed( short columnNumber, boolean collapsed )\n    {\n        if (collapsed)\n        {\n            columns.collapseColumn( columnNumber );\n        }\n        else\n        {\n            columns.expandColumn( columnNumber );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "groupRowRange", "code": "    public void groupRowRange(int fromRow, int toRow, boolean indent)\n    {\n        checkRows();\n        for (int rowNum = fromRow; rowNum <= toRow; rowNum++)\n        {\n            RowRecord row = getRow( rowNum );\n            if (row == null)\n            {\n                row = createRow( rowNum );\n                addRow( row );\n            }\n            int level = row.getOutlineLevel();\n            if (indent) level++; else level--;\n            level = Math.max(0, level);\n            level = Math.min(7, level);\n            row.setOutlineLevel((short) ( level ));\n        }\n\n        recalcRowGutter();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [10, 15], [13, 16], [14, 17], [9, 18], [15, 19], [11, 20], [16, 21], [17, 22], [10, 23], [10, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 10], [16, 13], [17, 14], [18, 9], [19, 15], [20, 11], [21, 16], [22, 17], [23, 10], [24, 10], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "recalcRowGutter", "code": "    private void recalcRowGutter()\n    {\n        int maxLevel = 0;\n        Iterator iterator = rows.getIterator();\n        while ( iterator.hasNext() )\n        {\n            RowRecord rowRecord = (RowRecord) iterator.next();\n            maxLevel = Math.max(rowRecord.getOutlineLevel(), maxLevel);\n        }\n\n        GutsRecord guts = (GutsRecord) findFirstRecordBySid( GutsRecord.sid );\n        guts.setRowLevelMax( (short) ( maxLevel + 1 ) );\n        guts.setLeftRowGutter( (short) ( 29 + (12 * (maxLevel)) ) );", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 13], [2, 14], [11, 15], [11, 16], [12, 17], [14, 18], [15, 19], [18, 20], [8, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [13, 1], [14, 2], [15, 11], [16, 11], [17, 12], [18, 14], [19, 15], [20, 18], [21, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setRowGroupCollapsed", "code": "    public void setRowGroupCollapsed( int row, boolean collapse )\n    {\n        if (collapse)\n        {\n            rows.collapseRow( row );\n        }\n        else\n        {\n            rows.expandRow( row );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Sheet", "code": "    public Sheet()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.0-1557", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/mail/MailComponent.java", "language": "java", "name": "org.apache.camel.component.mail.MailComponent", "code": "public class MailComponent extends DefaultComponent<MailExchange> {\n    public static final String QUEUE_PREFIX = \"queue:\";\n    public static final String TOPIC_PREFIX = \"topic:\";\n    private MailConfiguration configuration;\n\n    /**\n     * Static builder method\n     */\n    public static MailComponent mailComponent() {\n        return new MailComponent();\n    }\n\n    /**\n     * Static builder method\n     */\n    public static MailComponent mailComponent(MailConfiguration configuration) {\n        return new MailComponent(configuration);\n    }\n\n    public MailComponent() {\n        this.configuration = new MailConfiguration();\n    }\n\n    public MailComponent(MailConfiguration configuration) {\n        this.configuration = configuration;\n    }\n\n    public MailComponent(CamelContext context) {\n        super(context);\n        this.configuration = new MailConfiguration();\n    }\n\n    @Override\n    protected Endpoint<MailExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n\n        MailConfiguration config = getConfiguration().copy();\n        config.configure(new URI(uri));\n\n        MailEndpoint endpoint = new MailEndpoint(uri, this, config);\n\n        IntrospectionSupport.setProperties(endpoint.getConfiguration(), parameters);\n        return endpoint;\n    }\n\n    public MailConfiguration getConfiguration() {\n        return configuration;\n    }\n\n    /**\n     * Sets the Mail configuration\n     *\n     * @param configuration the configuration to use by default for endpoints\n     */\n    public void setConfiguration(MailConfiguration configuration) {\n        this.configuration = configuration;\n    }\n\n    /**\n     * A strategy method allowing the URI destination to be translated into the actual Mail destination name\n     * (say by looking up in JNDI or something)\n     */\n    protected String convertPathToActualDestination(String path) {\n        return path;", "functions": [{"function_name": "mailComponent", "code": "    public static MailComponent mailComponent() {\n        return new MailComponent();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "mailComponent", "code": "    public static MailComponent mailComponent(MailConfiguration configuration) {\n        return new MailComponent(configuration);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createEndpoint", "code": "    @Override\n    protected Endpoint<MailExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n\n        MailConfiguration config = getConfiguration().copy();\n        config.configure(new URI(uri));\n\n        MailEndpoint endpoint = new MailEndpoint(uri, this, config);\n\n        IntrospectionSupport.setProperties(endpoint.getConfiguration(), parameters);\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [7, 9], [2, 10], [8, 11], [3, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 7], [10, 2], [11, 8], [12, 3], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getConfiguration", "code": "    public MailConfiguration getConfiguration() {\n        return configuration;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConfiguration", "code": "    public void setConfiguration(MailConfiguration configuration) {\n        this.configuration = configuration;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "convertPathToActualDestination", "code": "    protected String convertPathToActualDestination(String path) {\n        return path;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MailComponent", "code": "    public MailComponent() {\n        this.configuration = new MailConfiguration();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MailComponent", "code": "    public MailComponent(MailConfiguration configuration) {\n        this.configuration = configuration;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MailComponent", "code": "    public MailComponent(CamelContext context) {\n        super(context);\n        this.configuration = new MailConfiguration();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.6-2877", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jhc/JhcEndpoint.java", "language": "java", "name": "org.apache.camel.component.jhc.JhcEndpoint", "code": "public class JhcEndpoint extends DefaultEndpoint<JhcExchange> {\n\n    private HttpParams params;\n    private URI httpUri;\n\n    public JhcEndpoint(String endpointUri, JhcComponent component, URI httpUri) {\n        super(endpointUri, component);\n        params = component.getParams().copy();\n        this.httpUri = httpUri;\n    }\n\n    public JhcEndpoint(String endpointUri, URI httpUri, HttpParams params) {\n        super(endpointUri);\n        this.httpUri = httpUri;\n        this.params = params;\n    }\n\n    public HttpParams getParams() {\n        return params;\n    }\n\n    public void setParams(HttpParams params) {\n        this.params = params;\n    }\n\n    public URI getHttpUri() {\n        return httpUri;\n    }\n\n    public void setHttpUri(URI httpUri) {\n        this.httpUri = httpUri;\n    }\n\n    public String getProtocol() {\n        return httpUri.getScheme();\n    }\n\n    public String getHost() {\n        return httpUri.getHost();\n    }\n\n    public int getPort() {\n        if (httpUri.getPort() == -1) {\n            if (\"https\".equals(getProtocol())) {\n                return 443;\n            } else {\n                return 80;\n            }\n        }\n        return httpUri.getPort();\n    }\n\n    public String getPath() {\n        return httpUri.getPath();\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public Producer<JhcExchange> createProducer() throws Exception {\n        return new JhcProducer(this);\n    }\n\n    public Consumer<JhcExchange> createConsumer(Processor processor) throws Exception {\n        return new JhcConsumer(this, processor);\n    }\n\n    public HeaderFilterStrategy getHeaderFilterStrategy() {\n        if (getComponent() instanceof HeaderFilterStrategyAware) {\n            return ((HeaderFilterStrategyAware)getComponent()).getHeaderFilterStrategy();\n        } else {\n            return new JhcHeaderFilterStrategy();", "functions": [{"function_name": "getParams", "code": "    public HttpParams getParams() {\n        return params;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParams", "code": "    public void setParams(HttpParams params) {\n        this.params = params;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHttpUri", "code": "    public URI getHttpUri() {\n        return httpUri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHttpUri", "code": "    public void setHttpUri(URI httpUri) {\n        this.httpUri = httpUri;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProtocol", "code": "    public String getProtocol() {\n        return httpUri.getScheme();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHost", "code": "    public String getHost() {\n        return httpUri.getHost();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPort", "code": "    public int getPort() {\n        if (httpUri.getPort() == -1) {\n            if (\"https\".equals(getProtocol())) {\n                return 443;\n            } else {\n                return 80;\n            }\n        }\n        return httpUri.getPort();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [4, 7], [5, 8], [5, 9], [5, 10], [8, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 4], [8, 5], [9, 5], [10, 5], [11, 8], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getPath", "code": "    public String getPath() {\n        return httpUri.getPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProducer", "code": "    public Producer<JhcExchange> createProducer() throws Exception {\n        return new JhcProducer(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createConsumer", "code": "    public Consumer<JhcExchange> createConsumer(Processor processor) throws Exception {\n        return new JhcConsumer(this, processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getHeaderFilterStrategy", "code": "    public HeaderFilterStrategy getHeaderFilterStrategy() {\n        if (getComponent() instanceof HeaderFilterStrategyAware) {\n            return ((HeaderFilterStrategyAware)getComponent()).getHeaderFilterStrategy();\n        } else {\n            return new JhcHeaderFilterStrategy();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "JhcEndpoint", "code": "    public JhcEndpoint(String endpointUri, JhcComponent component, URI httpUri) {\n        super(endpointUri, component);\n        params = component.getParams().copy();\n        this.httpUri = httpUri;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "JhcEndpoint", "code": "    public JhcEndpoint(String endpointUri, URI httpUri, HttpParams params) {\n        super(endpointUri);\n        this.httpUri = httpUri;\n        this.params = params;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.7-8132", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/XSLTCDTMManager.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.XSLTCDTMManager", "code": "public class XSLTCDTMManager extends DTMManagerDefault\n{\n\t\n    /** The default class name to use as the manager. */\n    private static final String DEFAULT_CLASS_NAME =\n        \"org.apache.xalan.xsltc.dom.XSLTCDTMManager\";\n\n    private static final String DEFAULT_PROP_NAME =\n        \"org.apache.xalan.xsltc.dom.XSLTCDTMManager\";\n\n    /** Set this to true if you want a dump of the DTM after creation */\n    private static final boolean DUMPTREE = false;\n  \n    /** Set this to true if you want basic diagnostics */\n    private static final boolean DEBUG = false;\n\n    /**\n     * Constructor DTMManagerDefault\n     *\n     */\n    public XSLTCDTMManager()\n    {\n        super();\n    } \n\n    /**\n     * Obtain a new instance of a <code>DTMManager</code>.\n     * This static method creates a new factory instance.\n     * The current implementation just returns a new XSLTCDTMManager instance.\n     */\n    public static XSLTCDTMManager newInstance()\n    {\n        return new XSLTCDTMManager();\n    } \n\n    /**\n     * Look up the class that provides the XSLTC DTM Manager service.\n     * The following lookup procedure is used to find the service provider.\n     * <ol>\n     * <li>The value of the\n     * <code>org.apache.xalan.xsltc.dom.XSLTCDTMManager</code> property, is\n     * checked.</li>\n     * <li>The <code>xalan.propeties</code> file is checked for a property\n     * of the same name.</li>\n     * <li>The\n     * <code>META-INF/services/org.apache.xalan.xsltc.dom.XSLTCDTMManager</code>\n     * file is checked.\n     * </ol>\n     * The default is <code>org.apache.xalan.xsltc.dom.XSLTCDTMManager</code>.\n     */\n    public static Class getDTMManagerClass() {\n        Class mgrClass = ObjectFactory.lookUpFactoryClass(DEFAULT_PROP_NAME,\n                                                          null,\n                                                          DEFAULT_CLASS_NAME);\n        return (mgrClass != null) ? mgrClass : XSLTCDTMManager.class;\n    }\n\n    /**\n     * Get an instance of a DTM, loaded with the content from the\n     * specified source.  If the unique flag is true, a new instance will\n     * always be returned.  Otherwise it is up to the DTMManager to return a\n     * new instance or an instance that it already created and may be being used\n     * by someone else.\n     * (I think more parameters will need to be added for error handling, and\n     * entity resolution).\n     *\n     * @param source the specification of the source object.\n     * @param unique true if the returned DTM must be unique, probably because it\n     * is going to be mutated.\n     * @param whiteSpaceFilter Enables filtering of whitespace nodes, and may\n     *                         be null.\n     * @param incremental true if the DTM should be built incrementally, if\n     *                    possible.\n     * @param doIndexing true if the caller considers it worth it to use\n     *                   indexing schemes.\n     *\n     * @return a non-null DTM reference.\n     */\n    public DTM getDTM(Source source, boolean unique,\n                      DTMWSFilter whiteSpaceFilter, boolean incremental,\n                      boolean doIndexing)\n    {\n        return getDTM(source, unique, whiteSpaceFilter, incremental,\n\t\t      doIndexing, false, 0, true, false);\n    }\n\n    /**\n     * Get an instance of a DTM, loaded with the content from the\n     * specified source.  If the unique flag is true, a new instance will\n     * always be returned.  Otherwise it is up to the DTMManager to return a\n     * new instance or an instance that it already created and may be being used\n     * by someone else.\n     * (I think more parameters will need to be added for error handling, and\n     * entity resolution).\n     *\n     * @param source the specification of the source object.\n     * @param unique true if the returned DTM must be unique, probably because it\n     * is going to be mutated.\n     * @param whiteSpaceFilter Enables filtering of whitespace nodes, and may\n     *                         be null.\n     * @param incremental true if the DTM should be built incrementally, if\n     *                    possible.\n     * @param doIndexing true if the caller considers it worth it to use\n     *                   indexing schemes.\n     * @param buildIdIndex true if the id index table should be built.\n     * \n     * @return a non-null DTM reference.\n     */\n    public DTM getDTM(Source source, boolean unique,\n                      DTMWSFilter whiteSpaceFilter, boolean incremental,\n                      boolean doIndexing, boolean buildIdIndex)\n    {\n        return getDTM(source, unique, whiteSpaceFilter, incremental,\n\t\t      doIndexing, false, 0, buildIdIndex, false);\n    }\n  \n    /**\n     * Get an instance of a DTM, loaded with the content from the\n     * specified source.  If the unique flag is true, a new instance will\n     * always be returned.  Otherwise it is up to the DTMManager to return a\n     * new instance or an instance that it already created and may be being used\n     * by someone else.\n     * (I think more parameters will need to be added for error handling, and\n     * entity resolution).\n     *\n     * @param source the specification of the source object.\n     * @param unique true if the returned DTM must be unique, probably because it\n     * is going to be mutated.\n     * @param whiteSpaceFilter Enables filtering of whitespace nodes, and may\n     *                         be null.\n     * @param incremental true if the DTM should be built incrementally, if\n     *                    possible.\n     * @param doIndexing true if the caller considers it worth it to use\n     *                   indexing schemes.\n     * @param buildIdIndex true if the id index table should be built.\n     * @param newNameTable true if we want to use a separate ExpandedNameTable\n     *                     for this DTM.\n     * \n     * @return a non-null DTM reference.\n     */\n  public DTM getDTM(Source source, boolean unique,\n\t\t    DTMWSFilter whiteSpaceFilter, boolean incremental,\n\t\t    boolean doIndexing, boolean buildIdIndex,\n\t\t    boolean newNameTable)\n  {\n    return getDTM(source, unique, whiteSpaceFilter, incremental,\n\t\t  doIndexing, false, 0, buildIdIndex, newNameTable);\n  }\n  \n  /**\n     * Get an instance of a DTM, loaded with the content from the\n     * specified source.  If the unique flag is true, a new instance will\n     * always be returned.  Otherwise it is up to the DTMManager to return a\n     * new instance or an instance that it already created and may be being used\n     * by someone else.\n     * (I think more parameters will need to be added for error handling, and\n     * entity resolution).\n     *\n     * @param source the specification of the source object.\n     * @param unique true if the returned DTM must be unique, probably because it\n     * is going to be mutated.\n     * @param whiteSpaceFilter Enables filtering of whitespace nodes, and may\n     *                         be null.\n     * @param incremental true if the DTM should be built incrementally, if\n     *                    possible.\n     * @param doIndexing true if the caller considers it worth it to use\n     *                   indexing schemes.\n     * @param hasUserReader true if <code>source</code> is a\n     *                      <code>SAXSource</code> object that has an\n     *                      <code>XMLReader</code>, that was specified by the\n     *                      user.\n     * @param size  Specifies initial size of tables that represent the DTM\n     * @param buildIdIndex true if the id index table should be built.\n     *\n     * @return a non-null DTM reference.\n     */\n    public DTM getDTM(Source source, boolean unique,\n                      DTMWSFilter whiteSpaceFilter, boolean incremental,\n                      boolean doIndexing, boolean hasUserReader, int size,\n                      boolean buildIdIndex)\n    {\n      return getDTM(source, unique, whiteSpaceFilter, incremental,\n                    doIndexing, hasUserReader, size,\n                    buildIdIndex, false);\n  }\n  \n  /**\n     * Get an instance of a DTM, loaded with the content from the\n     * specified source.  If the unique flag is true, a new instance will\n     * always be returned.  Otherwise it is up to the DTMManager to return a\n     * new instance or an instance that it already created and may be being used\n     * by someone else.\n     * (I think more parameters will need to be added for error handling, and\n     * entity resolution).\n     *\n     * @param source the specification of the source object.\n     * @param unique true if the returned DTM must be unique, probably because it\n     * is going to be mutated.\n     * @param whiteSpaceFilter Enables filtering of whitespace nodes, and may\n     *                         be null.\n     * @param incremental true if the DTM should be built incrementally, if\n     *                    possible.\n     * @param doIndexing true if the caller considers it worth it to use\n     *                   indexing schemes.\n     * @param hasUserReader true if <code>source</code> is a\n     *                      <code>SAXSource</code> object that has an\n     *                      <code>XMLReader</code>, that was specified by the\n     *                      user.\n     * @param size  Specifies initial size of tables that represent the DTM\n     * @param buildIdIndex true if the id index table should be built.\n     * @param newNameTable true if we want to use a separate ExpandedNameTable\n     *                     for this DTM.\n     *\n     * @return a non-null DTM reference.\n     */\n  public DTM getDTM(Source source, boolean unique,\n\t\t    DTMWSFilter whiteSpaceFilter, boolean incremental,\n\t\t    boolean doIndexing, boolean hasUserReader, int size,\n\t\t    boolean buildIdIndex, boolean newNameTable)\n  {\n        if(DEBUG && null != source) {\n            System.out.println(\"Starting \"+\n\t\t\t (unique ? \"UNIQUE\" : \"shared\")+\n\t\t\t \" source: \"+source.getSystemId());\n        }\n\n        int dtmPos = getFirstFreeDTMID();\n        int documentID = dtmPos << IDENT_DTM_NODE_BITS;\n\n        if ((null != source) && source instanceof DOMSource)\n        {\n            final DOMSource domsrc = (DOMSource) source;\n            final org.w3c.dom.Node node = domsrc.getNode();\n            final DOM2SAX dom2sax = new DOM2SAX(node);\n      \n            SAXImpl dtm;\n\n            if (size <= 0) {\n                dtm = new SAXImpl(this, source, documentID,\n                                  whiteSpaceFilter, null, doIndexing, \n                                  DTMDefaultBase.DEFAULT_BLOCKSIZE,\n                                  buildIdIndex, newNameTable);\n            } else {\n                dtm = new SAXImpl(this, source, documentID,\n                                  whiteSpaceFilter, null, doIndexing, \n                                  size, buildIdIndex, newNameTable);\n            }\n      \n            dtm.setDocumentURI(source.getSystemId());\n\n            addDTM(dtm, dtmPos, 0);\n      \n            dom2sax.setContentHandler(dtm);\n      \n            try {\n                dom2sax.parse();\n            }\n            catch (RuntimeException re) {\n                throw re;\n            }\n            catch (Exception e) {\n                throw new org.apache.xml.utils.WrappedRuntimeException(e);\n            }\n      \n            return dtm;\n        }\n        else\n        {\n            boolean isSAXSource = (null != source)\n                                  ? (source instanceof SAXSource) : true;\n            boolean isStreamSource = (null != source)\n                                  ? (source instanceof StreamSource) : false;\n\n            if (isSAXSource || isStreamSource) {\n                XMLReader reader;\n                InputSource xmlSource;\n\n                if (null == source) {\n                    xmlSource = null;\n                    reader = null;\n                }\n                else {\n                    reader = getXMLReader(source);\n                    xmlSource = SAXSource.sourceToInputSource(source);\n\n                    String urlOfSource = xmlSource.getSystemId();\n\n                    if (null != urlOfSource) {\n                        try {\n                            urlOfSource = SystemIDResolver.getAbsoluteURI(urlOfSource);\n                        }\n                        catch (Exception e) {\n                            System.err.println(\"Can not absolutize URL: \" + urlOfSource);\n                        }\n\n                        xmlSource.setSystemId(urlOfSource);\n                    }\n                }\n\n                SAXImpl dtm;\n                if (size <= 0) {\n                    dtm = new SAXImpl(this, source, documentID, whiteSpaceFilter,\n\t\t\t              null, doIndexing, \n\t\t\t              DTMDefaultBase.DEFAULT_BLOCKSIZE,\n\t\t\t              buildIdIndex, newNameTable);\n                } else {\n                    dtm = new SAXImpl(this, source, documentID, whiteSpaceFilter,\n\t\t\t    null, doIndexing, size, buildIdIndex, newNameTable);\n                }\n\n                addDTM(dtm, dtmPos, 0);\n\n                if (null == reader) {\n                    return dtm;\n                }\n\n                reader.setContentHandler(dtm.getBuilder());\n                \n                if (!hasUserReader || null == reader.getDTDHandler()) {\n                    reader.setDTDHandler(dtm);\n                }\n                \n                if(!hasUserReader || null == reader.getErrorHandler()) {\n                    reader.setErrorHandler(dtm);\n                }\n\n                try {\n                }\n                catch (SAXNotRecognizedException e){}\n                catch (SAXNotSupportedException e){}\n\n                try {\n                    reader.parse(xmlSource);\n                }\n                catch (RuntimeException re) {\n                    throw re;\n                }\n                catch (Exception e) {\n                    throw new org.apache.xml.utils.WrappedRuntimeException(e);\n                } finally {\n                    if (!hasUserReader) {\n                        releaseXMLReader(reader);\n                    }\n                }\n\n                if (DUMPTREE) {\n                    System.out.println(\"Dumping SAX2DOM\");\n                    dtm.dumpDTM(System.err);\n                }\n\n                return dtm;\n            }\n            else {\n                throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_NOT_SUPPORTED, new Object[]{source}));", "functions": [{"function_name": "newInstance", "code": "    public static XSLTCDTMManager newInstance()\n    {\n        return new XSLTCDTMManager();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDTMManagerClass", "code": "    public static Class getDTMManagerClass() {\n        Class mgrClass = ObjectFactory.lookUpFactoryClass(DEFAULT_PROP_NAME,\n                                                          null,\n                                                          DEFAULT_CLASS_NAME);\n        return (mgrClass != null) ? mgrClass : XSLTCDTMManager.class;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDTM", "code": "    public DTM getDTM(Source source, boolean unique,\n                      DTMWSFilter whiteSpaceFilter, boolean incremental,\n                      boolean doIndexing)\n    {\n        return getDTM(source, unique, whiteSpaceFilter, incremental,\n\t\t      doIndexing, false, 0, true, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [7, 9], [7, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 7], [10, 7], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getDTM", "code": "    public DTM getDTM(Source source, boolean unique,\n                      DTMWSFilter whiteSpaceFilter, boolean incremental,\n                      boolean doIndexing, boolean buildIdIndex)\n    {\n        return getDTM(source, unique, whiteSpaceFilter, incremental,\n\t\t      doIndexing, false, 0, buildIdIndex, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getDTM", "code": "  public DTM getDTM(Source source, boolean unique,\n\t\t    DTMWSFilter whiteSpaceFilter, boolean incremental,\n\t\t    boolean doIndexing, boolean buildIdIndex,\n\t\t    boolean newNameTable)\n  {\n    return getDTM(source, unique, whiteSpaceFilter, incremental,\n\t\t  doIndexing, false, 0, buildIdIndex, newNameTable);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getDTM", "code": "    public DTM getDTM(Source source, boolean unique,\n                      DTMWSFilter whiteSpaceFilter, boolean incremental,\n                      boolean doIndexing, boolean hasUserReader, int size,\n                      boolean buildIdIndex)\n    {\n      return getDTM(source, unique, whiteSpaceFilter, incremental,\n                    doIndexing, hasUserReader, size,\n                    buildIdIndex, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getDTM", "code": "  public DTM getDTM(Source source, boolean unique,\n\t\t    DTMWSFilter whiteSpaceFilter, boolean incremental,\n\t\t    boolean doIndexing, boolean hasUserReader, int size,\n\t\t    boolean buildIdIndex, boolean newNameTable)\n  {\n        if(DEBUG && null != source) {\n            System.out.println(\"Starting \"+\n\t\t\t (unique ? \"UNIQUE\" : \"shared\")+\n\t\t\t \" source: \"+source.getSystemId());\n        }\n\n        int dtmPos = getFirstFreeDTMID();\n        int documentID = dtmPos << IDENT_DTM_NODE_BITS;\n\n        if ((null != source) && source instanceof DOMSource)\n        {\n            final DOMSource domsrc = (DOMSource) source;\n            final org.w3c.dom.Node node = domsrc.getNode();\n            final DOM2SAX dom2sax = new DOM2SAX(node);\n      \n            SAXImpl dtm;\n\n            if (size <= 0) {\n                dtm = new SAXImpl(this, source, documentID,\n                                  whiteSpaceFilter, null, doIndexing, \n                                  DTMDefaultBase.DEFAULT_BLOCKSIZE,\n                                  buildIdIndex, newNameTable);\n            } else {\n                dtm = new SAXImpl(this, source, documentID,\n                                  whiteSpaceFilter, null, doIndexing, \n                                  size, buildIdIndex, newNameTable);\n            }\n      \n            dtm.setDocumentURI(source.getSystemId());\n\n            addDTM(dtm, dtmPos, 0);\n      \n            dom2sax.setContentHandler(dtm);\n      \n            try {\n                dom2sax.parse();\n            }\n            catch (RuntimeException re) {\n                throw re;\n            }\n            catch (Exception e) {\n                throw new org.apache.xml.utils.WrappedRuntimeException(e);\n            }\n      \n            return dtm;\n        }\n        else\n        {\n            boolean isSAXSource = (null != source)\n                                  ? (source instanceof SAXSource) : true;\n            boolean isStreamSource = (null != source)\n                                  ? (source instanceof StreamSource) : false;\n\n            if (isSAXSource || isStreamSource) {\n                XMLReader reader;\n                InputSource xmlSource;\n\n                if (null == source) {\n                    xmlSource = null;\n                    reader = null;\n                }\n                else {\n                    reader = getXMLReader(source);\n                    xmlSource = SAXSource.sourceToInputSource(source);\n\n                    String urlOfSource = xmlSource.getSystemId();\n\n                    if (null != urlOfSource) {\n                        try {\n                            urlOfSource = SystemIDResolver.getAbsoluteURI(urlOfSource);\n                        }\n                        catch (Exception e) {\n                            System.err.println(\"Can not absolutize URL: \" + urlOfSource);\n                        }\n\n                        xmlSource.setSystemId(urlOfSource);\n                    }\n                }\n\n                SAXImpl dtm;\n                if (size <= 0) {\n                    dtm = new SAXImpl(this, source, documentID, whiteSpaceFilter,\n\t\t\t              null, doIndexing, \n\t\t\t              DTMDefaultBase.DEFAULT_BLOCKSIZE,\n\t\t\t              buildIdIndex, newNameTable);\n                } else {\n                    dtm = new SAXImpl(this, source, documentID, whiteSpaceFilter,\n\t\t\t    null, doIndexing, size, buildIdIndex, newNameTable);\n                }\n\n                addDTM(dtm, dtmPos, 0);\n\n                if (null == reader) {\n                    return dtm;\n                }\n\n                reader.setContentHandler(dtm.getBuilder());\n                \n                if (!hasUserReader || null == reader.getDTDHandler()) {\n                    reader.setDTDHandler(dtm);\n                }\n                \n                if(!hasUserReader || null == reader.getErrorHandler()) {\n                    reader.setErrorHandler(dtm);\n                }\n\n                try {\n                }\n                catch (SAXNotRecognizedException e){}\n                catch (SAXNotSupportedException e){}\n\n                try {\n                    reader.parse(xmlSource);\n                }\n                catch (RuntimeException re) {\n                    throw re;\n                }\n                catch (Exception e) {\n                    throw new org.apache.xml.utils.WrappedRuntimeException(e);\n                } finally {\n                    if (!hasUserReader) {\n                        releaseXMLReader(reader);\n                    }\n                }\n\n                if (DUMPTREE) {\n                    System.out.println(\"Dumping SAX2DOM\");\n                    dtm.dumpDTM(System.err);\n                }\n\n                return dtm;\n            }\n            else {\n                throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_NOT_SUPPORTED, new Object[]{source}));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "CATCH", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "RETURN", "IF", "TRY", "TRY", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "COND_EXPR", "COND_EXPR", "THROW_RAISE", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "CATCH", "CATCH", "CATCH", "CATCH", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [4, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [14, 26], [14, 27], [2, 28], [3, 29], [15, 30], [16, 31], [20, 32], [20, 33], [1, 34], [1, 35], [1, 36], [21, 37], [27, 38], [4, 39], [30, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [16, 53], [17, 54], [18, 55], [32, 56], [33, 57], [20, 58], [35, 59], [36, 60], [37, 61], [23, 62], [24, 63], [39, 64], [41, 65], [44, 66], [44, 67], [44, 68], [45, 69], [45, 70], [46, 71], [47, 72], [16, 73], [48, 74], [16, 75], [49, 76], [51, 77], [54, 78], [54, 79], [54, 80], [55, 81], [55, 82], [55, 83], [56, 84], [21, 85], [21, 86], [64, 87], [64, 88], [65, 89], [67, 90], [68, 91], [44, 92], [71, 93], [72, 94], [73, 95], [48, 96], [74, 97], [75, 98], [76, 99], [51, 100], [51, 101], [77, 102], [80, 103], [83, 104], [85, 105], [86, 106], [88, 107], [88, 108], [43, 109], [43, 110], [90, 111], [46, 112], [93, 113], [93, 114], [47, 115], [94, 116], [94, 117], [49, 118], [49, 119], [100, 120], [51, 121], [51, 122], [51, 123], [51, 124], [105, 125], [106, 126], [108, 127], [108, 128], [110, 129], [66, 130], [118, 131], [119, 132], [100, 133], [120, 134], [101, 135], [121, 136], [122, 137], [123, 138], [124, 139], [127, 140], [127, 141], [131, 142], [132, 143], [100, 144], [133, 145], [133, 146], [145, 147], [146, 148], [147, 149], [149, 150], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 4], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 14], [27, 14], [28, 2], [29, 3], [30, 15], [31, 16], [32, 20], [33, 20], [34, 1], [35, 1], [36, 1], [37, 21], [38, 27], [39, 4], [40, 30], [41, 16], [42, 16], [43, 16], [44, 16], [45, 16], [46, 16], [47, 16], [48, 16], [49, 16], [50, 16], [51, 16], [52, 16], [53, 16], [54, 17], [55, 18], [56, 32], [57, 33], [58, 20], [59, 35], [60, 36], [61, 37], [62, 23], [63, 24], [64, 39], [65, 41], [66, 44], [67, 44], [68, 44], [69, 45], [70, 45], [71, 46], [72, 47], [73, 16], [74, 48], [75, 16], [76, 49], [77, 51], [78, 54], [79, 54], [80, 54], [81, 55], [82, 55], [83, 55], [84, 56], [85, 21], [86, 21], [87, 64], [88, 64], [89, 65], [90, 67], [91, 68], [92, 44], [93, 71], [94, 72], [95, 73], [96, 48], [97, 74], [98, 75], [99, 76], [100, 51], [101, 51], [102, 77], [103, 80], [104, 83], [105, 85], [106, 86], [107, 88], [108, 88], [109, 43], [110, 43], [111, 90], [112, 46], [113, 93], [114, 93], [115, 47], [116, 94], [117, 94], [118, 49], [119, 49], [120, 100], [121, 51], [122, 51], [123, 51], [124, 51], [125, 105], [126, 106], [127, 108], [128, 108], [129, 110], [130, 66], [131, 118], [132, 119], [133, 100], [134, 120], [135, 101], [136, 121], [137, 122], [138, 123], [139, 124], [140, 127], [141, 127], [142, 131], [143, 132], [144, 100], [145, 133], [146, 133], [147, 145], [148, 146], [149, 147], [150, 149], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150]]}, {"function_name": "XSLTCDTMManager", "code": "    public XSLTCDTMManager()\n    {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.7-8067", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/serializer/CharInfo.java", "language": "java", "name": "org.apache.xml.serializer.CharInfo", "code": "final class CharInfo\n{\n    /** Given a character, lookup a String to output (e.g. a decorated entity reference). */\n    private Hashtable m_charToString = new Hashtable();\n\n    /**\n     * The name of the HTML entities file.\n     * If specified, the file will be resource loaded with the default class loader.\n     */\n    public static final String HTML_ENTITIES_RESOURCE = \n                \"org.apache.xml.serializer.HTMLEntities\";\n\n    /**\n     * The name of the XML entities file.\n     * If specified, the file will be resource loaded with the default class loader.\n     */\n    public static final String XML_ENTITIES_RESOURCE = \n                \"org.apache.xml.serializer.XMLEntities\";\n\n    /** The horizontal tab character, which the parser should always normalize. */\n    public static final char S_HORIZONAL_TAB = 0x09;\n\n    /** The linefeed character, which the parser should always normalize. */\n    public static final char S_LINEFEED = 0x0A;\n\n    /** The carriage return character, which the parser should always normalize. */\n    public static final char S_CARRIAGERETURN = 0x0D;\n    \n    /** This flag is an optimization for HTML entities. It false if entities \n     * other than quot (34), amp (38), lt (60) and gt (62) are defined\n     * in the range 0 to 127.\n     * @xsl.usage internal\n     */    \n    final boolean onlyQuotAmpLtGt;\n    \n    /** Copy the first 0,1 ... ASCII_MAX values into an array */\n    private static final int ASCII_MAX = 128;\n    \n    /** Array of values is faster access than a set of bits \n     * to quickly check ASCII characters in attribute values. \n     */\n    private boolean[] isSpecialAttrASCII = new boolean[ASCII_MAX];\n    \n    /** Array of values is faster access than a set of bits \n     * to quickly check ASCII characters in text nodes. \n     */\n    private boolean[] isSpecialTextASCII = new boolean[ASCII_MAX];\n\n    private boolean[] isCleanTextASCII = new boolean[ASCII_MAX];\n\n    /** An array of bits to record if the character is in the set.\n     * Although information in this array is complete, the\n     * isSpecialAttrASCII array is used first because access to its values\n     * is common and faster.\n     */   \n    private int array_of_bits[] = createEmptySetOfIntegers(65535);\n     \n    \n    /*\n     * This constant is used to shift an integer to quickly\n     * calculate which element its bit is stored in.\n     * 5 for 32 bit words (int) ,  6 for 64 bit words (long)\n     */\n    private static final int SHIFT_PER_WORD = 5;\n    \n    /*\n     * A mask to get the low order bits which are used to\n     * calculate the value of the bit within a given word,\n     * that will represent the presence of the integer in the \n     * set.\n     * \n     * 0x1F for 32 bit words (int),\n     * or 0x3F for 64 bit words (long) \n     */\n    private static final int LOW_ORDER_BITMASK = 0x1f;\n    \n    /*\n     * This is used for optimizing the lookup of bits representing\n     * the integers in the set. It is the index of the first element\n     * in the array array_of_bits[] that is not used.\n     */\n    private int firstWordNotUsed;\n\n\n    /**\n     * Constructor that reads in a resource file that describes the mapping of\n     * characters to entity references.\n     * This constructor is private, just to force the use\n     * of the getCharInfo(entitiesResource) factory\n     *\n     * Resource files must be encoded in UTF-8 and can either be properties\n     * files with a .properties extension assumed.  Alternatively, they can\n     * have the following form, with no particular extension assumed:\n     *\n     * <pre>\n     * # First char # is a comment\n     * Entity numericValue\n     * quot 34\n     * amp 38\n     * </pre>\n     *    \n     * @param entitiesResource Name of properties or resource file that should\n     * be loaded, which describes that mapping of characters to entity\n     * references.\n     */\n    private CharInfo(String entitiesResource, String method)\n    {\n        this(entitiesResource, method, false);\n    }\n\n    private CharInfo(String entitiesResource, String method, boolean internal)\n    {\n        ResourceBundle entities = null;\n        boolean noExtraEntities = true;\n\n\n        if (internal) { \n            try {\n                entities = PropertyResourceBundle.getBundle(entitiesResource);\n            } catch (Exception e) {}\n        }\n\n        if (entities != null) {\n            Enumeration keys = entities.getKeys();\n            while (keys.hasMoreElements()){\n                String name = (String) keys.nextElement();\n                String value = entities.getString(name);\n                int code = Integer.parseInt(value);\n                defineEntity(name, (char) code);\n                if (extraEntity(code))\n                    noExtraEntities = false;\n            }\n            set(S_LINEFEED);\n            set(S_CARRIAGERETURN);\n        } else {\n            InputStream is = null;\n\n            try {\n                if (internal) {\n                    is = CharInfo.class.getResourceAsStream(entitiesResource);\n                } else {\n                    ClassLoader cl = ObjectFactory.findClassLoader();\n                    if (cl == null) {\n                        is = ClassLoader.getSystemResourceAsStream(entitiesResource);\n                    } else {\n                        is = cl.getResourceAsStream(entitiesResource);\n                    }\n\n                    if (is == null) {\n                        try {\n                            URL url = new URL(entitiesResource);\n                            is = url.openStream();\n                        } catch (Exception e) {}\n                    }\n                }\n\n                if (is == null) {\n                    throw new RuntimeException(\n                        Utils.messages.createMessage(\n                            MsgKey.ER_RESOURCE_COULD_NOT_FIND,\n                            new Object[] {entitiesResource, entitiesResource}));\n                }\n\n\n                BufferedReader reader;\n                try {\n                    reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n                } catch (UnsupportedEncodingException e) {\n                    reader = new BufferedReader(new InputStreamReader(is));\n                }\n\n                String line = reader.readLine();\n\n                while (line != null) {\n                    if (line.length() == 0 || line.charAt(0) == '#') {\n                        line = reader.readLine();\n\n                        continue;\n                    }\n\n                    int index = line.indexOf(' ');\n\n                    if (index > 1) {\n                        String name = line.substring(0, index);\n\n                        ++index;\n\n                        if (index < line.length()) {\n                            String value = line.substring(index);\n                            index = value.indexOf(' ');\n\n                            if (index > 0) {\n                                value = value.substring(0, index);\n                            }\n\n                            int code = Integer.parseInt(value);\n\n                            defineEntity(name, (char) code);\n                            if (extraEntity(code))\n                                noExtraEntities = false;\n                        }\n                    }\n\n                    line = reader.readLine();\n                }\n\n                is.close();\n                set(S_LINEFEED);\n                set(S_CARRIAGERETURN);\n            } catch (Exception e) {\n                throw new RuntimeException(\n                    Utils.messages.createMessage(\n                        MsgKey.ER_RESOURCE_COULD_NOT_LOAD,\n                        new Object[] { entitiesResource,\n                                       e.toString(),\n                                       entitiesResource,\n                                       e.toString()}));\n            } finally {\n                if (is != null) {\n                    try {\n                        is.close();\n                    } catch (Exception except) {}\n                }\n            }\n        }\n          \n        /* initialize the array isCleanTextASCII[] with a cache of values\n         * for use by ToStream.character(char[], int , int)\n         * and the array isSpecialTextASCII[] with the opposite values\n         * (all in the name of performance!)\n         */\n        for (int ch = 0; ch <ASCII_MAX; ch++)\n        if((((0x20 <= ch || (0x0A == ch || 0x0D == ch || 0x09 == ch)))\n             && (!get(ch))) || ('\"' == ch))\n        {\n            isCleanTextASCII[ch] = true;\n            isSpecialTextASCII[ch] = false;\n        }\n        else {\n            isCleanTextASCII[ch] = false;\n            isSpecialTextASCII[ch] = true;     \n        }       \n        \n\n\n        onlyQuotAmpLtGt = noExtraEntities;\n\n        for (int i=0; i<ASCII_MAX; i++)\n            isSpecialAttrASCII[i] = get(i);   \n            \n        /* Now that we've used get(ch) just above to initialize the\n         * two arrays we will change by adding a tab to the set of \n         * special chars for XML (but not HTML!).\n         * We do this because a tab is always a\n         * special character in an XML attribute, \n         * but only a special character in XML text \n         * if it has an entity defined for it.\n         * This is the reason for this delay.\n         */\n        if (Method.XML.equals(method)) \n        {\n            isSpecialAttrASCII[S_HORIZONAL_TAB] = true;\n        }\n    }\n\n    /**\n     * Defines a new character reference. The reference's name and value are\n     * supplied. Nothing happens if the character reference is already defined.\n     * <p>Unlike internal entities, character references are a string to single\n     * character mapping. They are used to map non-ASCII characters both on\n     * parsing and printing, primarily for HTML documents. '&lt;amp;' is an\n     * example of a character reference.</p>\n     *\n     * @param name The entity's name\n     * @param value The entity's value\n     */\n    private void defineEntity(String name, char value)\n    {\n        StringBuffer sb = new StringBuffer(\"&\");\n        sb.append(name);\n        sb.append(';');\n        String entityString = sb.toString();\n        \n        defineChar2StringMapping(entityString, value);\n    }\n\n    private CharKey m_charKey = new CharKey();\n\n    /**\n     * Map a character to a String. For example given\n     * the character '>' this method would return the fully decorated\n     * entity name \"&lt;\".\n     * Strings for entity references are loaded from a properties file,\n     * but additional mappings defined through calls to defineChar2String()\n     * are possible. Such entity reference mappings could be over-ridden.\n     *\n     * This is reusing a stored key object, in an effort to avoid\n     * heap activity. Unfortunately, that introduces a threading risk.\n     * Simplest fix for now is to make it a synchronized method, or to give\n     * up the reuse; I see very little performance difference between them.\n     * Long-term solution would be to replace the hashtable with a sparse array\n     * keyed directly from the character's integer value; see DTM's\n     * string pool for a related solution.\n     *\n     * @param value The character that should be resolved to\n     * a String, e.g. resolve '>' to  \"&lt;\".\n     *\n     * @return The String that the character is mapped to, or null if not found.\n     * @xsl.usage internal\n     */\n    synchronized String getOutputStringForChar(char value)\n    {\n        m_charKey.setChar(value);\n        return (String) m_charToString.get(m_charKey);\n    }\n    \n    /**\n     * Tell if the character argument that is from\n     * an attribute value should have special treatment.\n     * \n     * @param value the value of a character that is in an attribute value\n     * @return true if the character should have any special treatment, \n     * such as when writing out attribute values, \n     * or entity references.\n     * @xsl.usage internal\n     */\n    final boolean isSpecialAttrChar(int value)\n    {\n\n        if (value < ASCII_MAX)\n            return isSpecialAttrASCII[value];\n\n        return get(value);\n    }    \n\n    /**\n     * Tell if the character argument that is from a \n     * text node should have special treatment.\n     * \n     * @param value the value of a character that is in a text node\n     * @return true if the character should have any special treatment, \n     * such as when writing out attribute values, \n     * or entity references.\n     * @xsl.usage internal\n     */\n    final boolean isSpecialTextChar(int value)\n    {\n\n        if (value < ASCII_MAX)\n            return isSpecialTextASCII[value];\n\n        return get(value);\n    }\n    \n    /**\n     * This method is used to determine if an ASCII character in\n     * a text node (not an attribute value) is \"clean\".\n     * @param value the character to check (0 to 127).\n     * @return true if the character can go to the writer as-is\n     * @xsl.usage internal\n     */\n    final boolean isTextASCIIClean(int value)\n    {\n        return isCleanTextASCII[value];\n    }\n    \n\n     \n    private static CharInfo getCharInfoBasedOnPrivilege(\n        final String entitiesFileName, final String method, \n        final boolean internal){\n            return (CharInfo) AccessController.doPrivileged(\n                new PrivilegedAction() {\n                        public Object run() {\n                            return new CharInfo(entitiesFileName, \n                              method, internal);}\n            });            \n    }\n     \n    /**\n     * Factory that reads in a resource file that describes the mapping of\n     * characters to entity references.\n     *\n     * Resource files must be encoded in UTF-8 and have a format like:\n     * <pre>\n     * # First char # is a comment\n     * Entity numericValue\n     * quot 34\n     * amp 38\n     * </pre>\n     * (Note: Why don't we just switch to .properties files? Oct-01 -sc)\n     *\n     * @param entitiesResource Name of entities resource file that should\n     * be loaded, which describes that mapping of characters to entity references.\n     * @param method the output method type, which should be one of \"xml\", \"html\", \"text\"...\n     * \n     * @xsl.usage internal\n     */\n    static CharInfo getCharInfo(String entitiesFileName, String method)\n    {\n        CharInfo charInfo = (CharInfo) m_getCharInfoCache.get(entitiesFileName);\n        if (charInfo != null) {\n            return charInfo;\n        }\n\n        try {\n            charInfo = getCharInfoBasedOnPrivilege(entitiesFileName, \n                                        method, true);\n            m_getCharInfoCache.put(entitiesFileName, charInfo);\n            return charInfo;\n        } catch (Exception e) {}\n\n        try {\n            return getCharInfoBasedOnPrivilege(entitiesFileName, \n                                method, false);\n        } catch (Exception e) {}\n\n        String absoluteEntitiesFileName;\n\n        if (entitiesFileName.indexOf(':') < 0) {\n            absoluteEntitiesFileName =\n                SystemIDResolver.getAbsoluteURIFromRelative(entitiesFileName);\n        } else {\n            try {\n                absoluteEntitiesFileName =\n                    SystemIDResolver.getAbsoluteURI(entitiesFileName, null);\n            } catch (TransformerException te) {\n                throw new WrappedRuntimeException(te);\n            }\n        }\n\n        return getCharInfoBasedOnPrivilege(entitiesFileName, \n                                method, false);\n    }\n\n    /** Table of user-specified char infos. */\n    private static Hashtable m_getCharInfoCache = new Hashtable();\n\n    /**\n     * Returns the array element holding the bit value for the\n     * given integer\n     * @param i the integer that might be in the set of integers\n     * \n     */\n    private static int arrayIndex(int i) {\n        return (i >> SHIFT_PER_WORD);\n    }\n\n    /**\n     * For a given integer in the set it returns the single bit\n     * value used within a given word that represents whether\n     * the integer is in the set or not.\n     */\n    private static int bit(int i) {\n        int ret = (1 << (i & LOW_ORDER_BITMASK));\n        return ret;\n    }\n\n    /**\n     * Creates a new empty set of integers (characters)\n     * @param max the maximum integer to be in the set.\n     */\n    private int[] createEmptySetOfIntegers(int max) {\n\n        int[] arr = new int[arrayIndex(max - 1) + 1];\n            return arr;\n \n    }\n\n    /**\n     * Adds the integer (character) to the set of integers.\n     * @param i the integer to add to the set, valid values are \n     * 0, 1, 2 ... up to the maximum that was specified at\n     * the creation of the set.\n     */\n    private final void set(int i) {   \n        setASCIIdirty(i);\n             \n        int k = j + 1;       \n        \n            firstWordNotUsed = k;\n            \n        array_of_bits[j] |= (1 << (i & LOW_ORDER_BITMASK));\n    }\n\n\n    /**\n     * Return true if the integer (character)is in the set of integers.\n     * \n     * This implementation uses an array of integers with 32 bits per\n     * integer.  If a bit is set to 1 the corresponding integer is \n     * in the set of integers.\n     * \n     * @param i an integer that is tested to see if it is the\n     * set of integers, or not.\n     */\n    private final boolean get(int i) {\n\n        boolean in_the_set = false;\n        if(j < firstWordNotUsed)\n            in_the_set = (array_of_bits[j] & \n                          (1 << (i & LOW_ORDER_BITMASK)));\n        return in_the_set;\n    }\n    \n    /**\n     * @return true if the entity \n     * @param code The value of the character that has an entity defined\n     * for it.\n     */\n    private boolean extraEntity(int entityValue)\n    {\n        boolean extra = false;\n        if (entityValue < 128)\n        {\n            switch (entityValue)\n            {\n\t\t\t\tcase '':\n                    break;\n                    extra = true;\n            }\n        }\n        return extra;\n    }    \n    \n    /**\n     * If the character is a printable ASCII character then\n     * mark it as not clean and needing replacement with\n     * a String on output.\n     * @param ch\n     */\n    private void setASCIIdirty(int j) \n    {\n        if (0 <= j && j < ASCII_MAX) \n        {\n            isCleanTextASCII[j] = false;\n            isSpecialTextASCII[j] = true;\n        } \n    }\n\n    /**\n     * If the character is a printable ASCII character then\n     * mark it as and not needing replacement with\n     * a String on output.\n     * @param ch\n     */    \n    private void setASCIIclean(int j)\n    {\n        if (0 <= j && j < ASCII_MAX) \n        {        \n            isCleanTextASCII[j] = true;\n            isSpecialTextASCII[j] = false;\n        }\n    }\n    \n    private void defineChar2StringMapping(String outputString, char inputChar) \n    {\n        CharKey character = new CharKey(inputChar);\n        m_charToString.put(character, outputString);\n        set(inputChar);        \n    }\n\n    /**\n     * Simple class for fast lookup of char values, when used with\n     * hashtables.  You can set the char, then use it as a key.\n     * \n     * This class is a copy of the one in org.apache.xml.utils. \n     * It exists to cut the serializers dependancy on that package.\n     *  \n     * @xsl.usage internal\n     */\n    private static class CharKey extends Object\n    {\n\n      /** String value          */\n      private char m_char;\n\n      /**\n       * Constructor CharKey\n       *\n       * @param key char value of this object.\n       */\n      public CharKey(char key)\n      {\n        m_char = key;\n      }\n  \n      /**\n       * Default constructor for a CharKey.\n       *\n       * @param key char value of this object.\n       */\n      public CharKey()\n      {\n      }\n  \n      /**\n       * Get the hash value of the character.  \n       *\n       * @return hash value of the character.\n       */\n      public final void setChar(char c)\n      {\n        m_char = c;\n      }\n\n\n\n      /**\n       * Get the hash value of the character.  \n       *\n       * @return hash value of the character.\n       */\n      public final int hashCode()\n      {\n        return (int)m_char;\n      }\n\n      /**\n       * Override of equals() for this object \n       *\n       * @param obj to compare to\n       *\n       * @return True if this object equals this string value \n       */\n      public final boolean equals(Object obj)\n      {\n        return ((CharKey)obj).m_char == m_char;", "functions": [{"function_name": "defineEntity", "code": "    private void defineEntity(String name, char value)\n    {\n        StringBuffer sb = new StringBuffer(\"&\");\n        sb.append(name);\n        sb.append(';');\n        String entityString = sb.toString();\n        \n        defineChar2StringMapping(entityString, value);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [6, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 6], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getOutputStringForChar", "code": "    synchronized String getOutputStringForChar(char value)\n    {\n        m_charKey.setChar(value);\n        return (String) m_charToString.get(m_charKey);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isSpecialAttrChar", "code": "    final boolean isSpecialAttrChar(int value)\n    {\n\n        if (value < ASCII_MAX)\n            return isSpecialAttrASCII[value];\n\n        return get(value);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isSpecialTextChar", "code": "    final boolean isSpecialTextChar(int value)\n    {\n\n        if (value < ASCII_MAX)\n            return isSpecialTextASCII[value];\n\n        return get(value);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isTextASCIIClean", "code": "    final boolean isTextASCIIClean(int value)\n    {\n        return isCleanTextASCII[value];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCharInfoBasedOnPrivilege", "code": "    private static CharInfo getCharInfoBasedOnPrivilege(\n        final String entitiesFileName, final String method, \n        final boolean internal){\n            return (CharInfo) AccessController.doPrivileged(\n                new PrivilegedAction() {\n                        public Object run() {\n                            return new CharInfo(entitiesFileName, \n                              method, internal);}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getCharInfo", "code": "    static CharInfo getCharInfo(String entitiesFileName, String method)\n    {\n        CharInfo charInfo = (CharInfo) m_getCharInfoCache.get(entitiesFileName);\n        if (charInfo != null) {\n            return charInfo;\n        }\n\n        try {\n            charInfo = getCharInfoBasedOnPrivilege(entitiesFileName, \n                                        method, true);\n            m_getCharInfoCache.put(entitiesFileName, charInfo);\n            return charInfo;\n        } catch (Exception e) {}\n\n        try {\n            return getCharInfoBasedOnPrivilege(entitiesFileName, \n                                method, false);\n        } catch (Exception e) {}\n\n        String absoluteEntitiesFileName;\n\n        if (entitiesFileName.indexOf(':') < 0) {\n            absoluteEntitiesFileName =\n                SystemIDResolver.getAbsoluteURIFromRelative(entitiesFileName);\n        } else {\n            try {\n                absoluteEntitiesFileName =\n                    SystemIDResolver.getAbsoluteURI(entitiesFileName, null);\n            } catch (TransformerException te) {\n                throw new WrappedRuntimeException(te);\n            }\n        }\n\n        return getCharInfoBasedOnPrivilege(entitiesFileName, \n                                method, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "TRY", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CATCH", "RETURN", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [10, 17], [2, 18], [11, 19], [11, 20], [13, 21], [5, 22], [5, 23], [6, 24], [16, 25], [18, 26], [2, 27], [20, 28], [21, 29], [23, 30], [7, 31], [26, 32], [18, 33], [27, 34], [30, 35], [32, 36], [33, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 10], [18, 2], [19, 11], [20, 11], [21, 13], [22, 5], [23, 5], [24, 6], [25, 16], [26, 18], [27, 2], [28, 20], [29, 21], [30, 23], [31, 7], [32, 26], [33, 18], [34, 27], [35, 30], [36, 32], [37, 33], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "arrayIndex", "code": "    private static int arrayIndex(int i) {\n        return (i >> SHIFT_PER_WORD);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "bit", "code": "    private static int bit(int i) {\n        int ret = (1 << (i & LOW_ORDER_BITMASK));\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createEmptySetOfIntegers", "code": "    private int[] createEmptySetOfIntegers(int max) {\n\n        int[] arr = new int[arrayIndex(max - 1) + 1];\n            return arr;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [4, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 4], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "set", "code": "    private final void set(int i) {   \n        setASCIIdirty(i);\n             \n        int k = j + 1;       \n        \n            firstWordNotUsed = k;\n            \n        array_of_bits[j] |= (1 << (i & LOW_ORDER_BITMASK));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 7], [6, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 1], [8, 6], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "get", "code": "    private final boolean get(int i) {\n\n        boolean in_the_set = false;\n        if(j < firstWordNotUsed)\n            in_the_set = (array_of_bits[j] & \n                          (1 << (i & LOW_ORDER_BITMASK)));\n        return in_the_set;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [8, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 8], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "extraEntity", "code": "    private boolean extraEntity(int entityValue)\n    {\n        boolean extra = false;\n        if (entityValue < 128)\n        {\n            switch (entityValue)\n            {\n\t\t\t\tcase '':\n                    break;\n                    extra = true;\n            }\n        }\n        return extra;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [6, 10], [6, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 6], [11, 6], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setASCIIdirty", "code": "    private void setASCIIdirty(int j) \n    {\n        if (0 <= j && j < ASCII_MAX) \n        {\n            isCleanTextASCII[j] = false;\n            isSpecialTextASCII[j] = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [7, 1], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setASCIIclean", "code": "    private void setASCIIclean(int j)\n    {\n        if (0 <= j && j < ASCII_MAX) \n        {        \n            isCleanTextASCII[j] = true;\n            isSpecialTextASCII[j] = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [7, 1], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "defineChar2StringMapping", "code": "    private void defineChar2StringMapping(String outputString, char inputChar) \n    {\n        CharKey character = new CharKey(inputChar);\n        m_charToString.put(character, outputString);\n        set(inputChar);        ", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "CharInfo", "code": "    private CharInfo(String entitiesResource, String method)\n    {\n        this(entitiesResource, method, false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "CharInfo", "code": "    private CharInfo(String entitiesResource, String method, boolean internal)\n    {\n        ResourceBundle entities = null;\n        boolean noExtraEntities = true;\n\n\n        if (internal) { \n            try {\n                entities = PropertyResourceBundle.getBundle(entitiesResource);\n            } catch (Exception e) {}\n        }\n\n        if (entities != null) {\n            Enumeration keys = entities.getKeys();\n            while (keys.hasMoreElements()){\n                String name = (String) keys.nextElement();\n                String value = entities.getString(name);\n                int code = Integer.parseInt(value);\n                defineEntity(name, (char) code);\n                if (extraEntity(code))\n                    noExtraEntities = false;\n            }\n            set(S_LINEFEED);\n            set(S_CARRIAGERETURN);\n        } else {\n            InputStream is = null;\n\n            try {\n                if (internal) {\n                    is = CharInfo.class.getResourceAsStream(entitiesResource);\n                } else {\n                    ClassLoader cl = ObjectFactory.findClassLoader();\n                    if (cl == null) {\n                        is = ClassLoader.getSystemResourceAsStream(entitiesResource);\n                    } else {\n                        is = cl.getResourceAsStream(entitiesResource);\n                    }\n\n                    if (is == null) {\n                        try {\n                            URL url = new URL(entitiesResource);\n                            is = url.openStream();\n                        } catch (Exception e) {}\n                    }\n                }\n\n                if (is == null) {\n                    throw new RuntimeException(\n                        Utils.messages.createMessage(\n                            MsgKey.ER_RESOURCE_COULD_NOT_FIND,\n                            new Object[] {entitiesResource, entitiesResource}));\n                }\n\n\n                BufferedReader reader;\n                try {\n                    reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n                } catch (UnsupportedEncodingException e) {\n                    reader = new BufferedReader(new InputStreamReader(is));\n                }\n\n                String line = reader.readLine();\n\n                while (line != null) {\n                    if (line.length() == 0 || line.charAt(0) == '#') {\n                        line = reader.readLine();\n\n                        continue;\n                    }\n\n                    int index = line.indexOf(' ');\n\n                    if (index > 1) {\n                        String name = line.substring(0, index);\n\n                        ++index;\n\n                        if (index < line.length()) {\n                            String value = line.substring(index);\n                            index = value.indexOf(' ');\n\n                            if (index > 0) {\n                                value = value.substring(0, index);\n                            }\n\n                            int code = Integer.parseInt(value);\n\n                            defineEntity(name, (char) code);\n                            if (extraEntity(code))\n                                noExtraEntities = false;\n                        }\n                    }\n\n                    line = reader.readLine();\n                }\n\n                is.close();\n                set(S_LINEFEED);\n                set(S_CARRIAGERETURN);\n            } catch (Exception e) {\n                throw new RuntimeException(\n                    Utils.messages.createMessage(\n                        MsgKey.ER_RESOURCE_COULD_NOT_LOAD,\n                        new Object[] { entitiesResource,\n                                       e.toString(),\n                                       entitiesResource,\n                                       e.toString()}));\n            } finally {\n                if (is != null) {\n                    try {\n                        is.close();\n                    } catch (Exception except) {}\n                }\n            }\n        }\n          \n        /* initialize the array isCleanTextASCII[] with a cache of values\n         * for use by ToStream.character(char[], int , int)\n         * and the array isSpecialTextASCII[] with the opposite values\n         * (all in the name of performance!)\n         */\n        for (int ch = 0; ch <ASCII_MAX; ch++)\n        if((((0x20 <= ch || (0x0A == ch || 0x0D == ch || 0x09 == ch)))\n             && (!get(ch))) || ('\"' == ch))\n        {\n            isCleanTextASCII[ch] = true;\n            isSpecialTextASCII[ch] = false;\n        }\n        else {\n            isCleanTextASCII[ch] = false;\n            isSpecialTextASCII[ch] = true;     \n        }       \n        \n\n\n        onlyQuotAmpLtGt = noExtraEntities;\n\n        for (int i=0; i<ASCII_MAX; i++)\n            isSpecialAttrASCII[i] = get(i);   \n            \n        /* Now that we've used get(ch) just above to initialize the\n         * two arrays we will change by adding a tab to the set of \n         * special chars for XML (but not HTML!).\n         * We do this because a tab is always a\n         * special character in an XML attribute, \n         * but only a special character in XML text \n         * if it has an entity defined for it.\n         * This is the reason for this delay.\n         */\n        if (Method.XML.equals(method)) \n        {\n            isSpecialAttrASCII[S_HORIZONAL_TAB] = true;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "LOOP", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "TRY", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CATCH", "LOOP", "VAR_DECL", "TRY", "VAR_DECL", "IF", "IF", "CALL", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CATCH", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [0, 13], [3, 14], [3, 15], [4, 16], [2, 17], [14, 18], [4, 19], [4, 20], [4, 21], [4, 22], [16, 23], [5, 24], [6, 25], [7, 26], [1, 27], [17, 28], [2, 29], [18, 30], [18, 31], [3, 32], [19, 33], [19, 34], [19, 35], [19, 36], [19, 37], [19, 38], [19, 39], [19, 40], [4, 41], [4, 42], [21, 43], [24, 44], [27, 45], [14, 46], [14, 47], [14, 48], [14, 49], [30, 50], [31, 51], [31, 52], [33, 53], [34, 54], [19, 55], [19, 56], [19, 57], [35, 58], [37, 59], [39, 60], [20, 61], [21, 62], [21, 63], [21, 64], [21, 65], [22, 66], [24, 67], [46, 68], [47, 69], [48, 70], [49, 71], [52, 72], [52, 73], [33, 74], [53, 75], [54, 76], [35, 77], [35, 78], [35, 79], [58, 80], [36, 81], [37, 82], [39, 83], [60, 84], [40, 85], [40, 86], [40, 87], [62, 88], [21, 89], [67, 90], [72, 91], [72, 92], [73, 93], [74, 94], [76, 95], [35, 96], [77, 97], [79, 98], [59, 99], [82, 100], [83, 101], [85, 102], [86, 103], [40, 104], [62, 105], [63, 106], [64, 107], [91, 108], [92, 109], [92, 110], [74, 111], [96, 112], [77, 113], [77, 114], [97, 115], [78, 116], [79, 117], [98, 118], [98, 119], [99, 120], [100, 121], [101, 122], [85, 123], [102, 124], [103, 125], [87, 126], [104, 127], [105, 128], [65, 129], [109, 130], [110, 131], [113, 132], [116, 133], [79, 134], [118, 135], [118, 136], [119, 137], [119, 138], [120, 139], [121, 140], [123, 141], [123, 142], [86, 143], [86, 144], [95, 145], [95, 146], [113, 147], [113, 148], [113, 149], [113, 150], [132, 151], [114, 152], [134, 153], [136, 154], [123, 155], [143, 156], [144, 157], [147, 158], [113, 159], [149, 160], [113, 161], [152, 162], [155, 163], [142, 164], [147, 165], [148, 166], [160, 167], [161, 168], [150, 169], [165, 170], [149, 171], [168, 172], [171, 173], [173, 174], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 0], [14, 3], [15, 3], [16, 4], [17, 2], [18, 14], [19, 4], [20, 4], [21, 4], [22, 4], [23, 16], [24, 5], [25, 6], [26, 7], [27, 1], [28, 17], [29, 2], [30, 18], [31, 18], [32, 3], [33, 19], [34, 19], [35, 19], [36, 19], [37, 19], [38, 19], [39, 19], [40, 19], [41, 4], [42, 4], [43, 21], [44, 24], [45, 27], [46, 14], [47, 14], [48, 14], [49, 14], [50, 30], [51, 31], [52, 31], [53, 33], [54, 34], [55, 19], [56, 19], [57, 19], [58, 35], [59, 37], [60, 39], [61, 20], [62, 21], [63, 21], [64, 21], [65, 21], [66, 22], [67, 24], [68, 46], [69, 47], [70, 48], [71, 49], [72, 52], [73, 52], [74, 33], [75, 53], [76, 54], [77, 35], [78, 35], [79, 35], [80, 58], [81, 36], [82, 37], [83, 39], [84, 60], [85, 40], [86, 40], [87, 40], [88, 62], [89, 21], [90, 67], [91, 72], [92, 72], [93, 73], [94, 74], [95, 76], [96, 35], [97, 77], [98, 79], [99, 59], [100, 82], [101, 83], [102, 85], [103, 86], [104, 40], [105, 62], [106, 63], [107, 64], [108, 91], [109, 92], [110, 92], [111, 74], [112, 96], [113, 77], [114, 77], [115, 97], [116, 78], [117, 79], [118, 98], [119, 98], [120, 99], [121, 100], [122, 101], [123, 85], [124, 102], [125, 103], [126, 87], [127, 104], [128, 105], [129, 65], [130, 109], [131, 110], [132, 113], [133, 116], [134, 79], [135, 118], [136, 118], [137, 119], [138, 119], [139, 120], [140, 121], [141, 123], [142, 123], [143, 86], [144, 86], [145, 95], [146, 95], [147, 113], [148, 113], [149, 113], [150, 113], [151, 132], [152, 114], [153, 134], [154, 136], [155, 123], [156, 143], [157, 144], [158, 147], [159, 113], [160, 149], [161, 113], [162, 152], [163, 155], [164, 142], [165, 147], [166, 148], [167, 160], [168, 161], [169, 150], [170, 165], [171, 149], [172, 168], [173, 171], [174, 173], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174]]}], "label": 1}
{"sample_id": "jedit-4.0-3917", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/gui/ErrorListCellRenderer.java", "language": "java", "name": "org.gjt.sp.jedit.gui.ErrorListCellRenderer", "code": "class ErrorListCellRenderer extends JComponent implements ListCellRenderer\n{\n\t//{{{ ErrorListCellRenderer constructor\n\tErrorListCellRenderer()\n\t{\n\t\tplainFont = UIManager.getFont(\"Label.font\");\n\t\tboldFont = new Font(plainFont.getName(),Font.BOLD,plainFont.getSize());\n\t\tplainFM = getFontMetrics(plainFont);\n\t\tboldFM = getFontMetrics(boldFont);\n\n\t\tsetBorder(new EmptyBorder(2,2,2,2));\n\t} //}}}\n\n\t//{{{ getListCellRendererComponent() method\n\tpublic Component getListCellRendererComponent(JList list, Object value,\n\t\tint index, boolean isSelected, boolean cellHasFocus)\n\t{\n\t\tErrorListDialog.ErrorEntry entry = (ErrorListDialog.ErrorEntry)value;\n\t\tthis.path = entry.path + \":\";\n\t\tthis.messages = entry.messages;\n\t\treturn this;\n\t} //}}}\n\n\t//{{{ getPreferredSize() method\n\tpublic Dimension getPreferredSize()\n\t{\n\t\tint width = boldFM.stringWidth(path);\n\t\tint height = boldFM.getHeight();\n\t\tfor(int i = 0; i < messages.length; i++)\n\t\t{\n\t\t\twidth = Math.max(plainFM.stringWidth(messages[i]),width);\n\t\t\theight += plainFM.getHeight();\n\t\t}\n\n\t\tInsets insets = getBorder().getBorderInsets(this);\n\t\twidth += insets.left + insets.right;\n\t\theight += insets.top + insets.bottom;\n\n\t\treturn new Dimension(width,height);\n\t} //}}}\n\n\t//{{{ paintComponent() method\n\tpublic void paintComponent(Graphics g)\n\t{\n\t\tInsets insets = getBorder().getBorderInsets(this);\n\t\tg.setFont(boldFont);\n\t\tg.drawString(path,insets.left,insets.top + boldFM.getAscent());\n\t\tint y = insets.top + boldFM.getHeight() + 2;\n\t\tg.setFont(plainFont);\n\t\tfor(int i = 0; i < messages.length; i++)\n\t\t{\n\t\t\tg.drawString(messages[i],insets.left,y + plainFM.getAscent());\n\t\t\ty += plainFM.getHeight();\n\t\t}\n\t} //}}}\n\n\t//{{{ Instance variables\n\tprivate String path;\n\tprivate String[] messages;\n\tprivate Font plainFont;\n\tprivate Font boldFont;\n\tprivate FontMetrics plainFM;\n\tprivate FontMetrics boldFM;", "functions": [{"function_name": "getListCellRendererComponent", "code": "\tpublic Component getListCellRendererComponent(JList list, Object value,\n\t\tint index, boolean isSelected, boolean cellHasFocus)\n\t{\n\t\tErrorListDialog.ErrorEntry entry = (ErrorListDialog.ErrorEntry)value;\n\t\tthis.path = entry.path + \":\";\n\t\tthis.messages = entry.messages;\n\t\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getPreferredSize", "code": "\tpublic Dimension getPreferredSize()\n\t{\n\t\tint width = boldFM.stringWidth(path);\n\t\tint height = boldFM.getHeight();\n\t\tfor(int i = 0; i < messages.length; i++)\n\t\t{\n\t\t\twidth = Math.max(plainFM.stringWidth(messages[i]),width);\n\t\t\theight += plainFM.getHeight();\n\t\t}\n\n\t\tInsets insets = getBorder().getBorderInsets(this);\n\t\twidth += insets.left + insets.right;\n\t\theight += insets.top + insets.bottom;\n\n\t\treturn new Dimension(width,height);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [3, 9], [7, 10], [8, 11], [2, 12], [4, 13], [5, 14], [12, 15], [3, 16], [3, 17], [3, 18], [16, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 3], [10, 7], [11, 8], [12, 2], [13, 4], [14, 5], [15, 12], [16, 3], [17, 3], [18, 3], [19, 16], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "paintComponent", "code": "\tpublic void paintComponent(Graphics g)\n\t{\n\t\tInsets insets = getBorder().getBorderInsets(this);\n\t\tg.setFont(boldFont);\n\t\tg.drawString(path,insets.left,insets.top + boldFM.getAscent());\n\t\tint y = insets.top + boldFM.getHeight() + 2;\n\t\tg.setFont(plainFont);\n\t\tfor(int i = 0; i < messages.length; i++)\n\t\t{\n\t\t\tg.drawString(messages[i],insets.left,y + plainFM.getAscent());\n\t\t\ty += plainFM.getHeight();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [2, 9], [7, 10], [3, 11], [1, 12], [1, 13], [1, 14], [9, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [16, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 2], [10, 7], [11, 3], [12, 1], [13, 1], [14, 1], [15, 9], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [21, 16], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "ErrorListCellRenderer", "code": "\tErrorListCellRenderer()\n\t{\n\t\tplainFont = UIManager.getFont(\"Label.font\");\n\t\tboldFont = new Font(plainFont.getName(),Font.BOLD,plainFont.getSize());\n\t\tplainFM = getFontMetrics(plainFont);\n\t\tboldFM = getFontMetrics(boldFont);\n\n\t\tsetBorder(new EmptyBorder(2,2,2,2));", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [6, 12], [6, 13], [6, 14], [9, 15], [9, 16], [10, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [12, 6], [13, 6], [14, 6], [15, 9], [16, 9], [17, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 0}
{"sample_id": "ivy-2.0-3343", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/repository/url/URLRepository.java", "language": "java", "name": "org.apache.ivy.plugins.repository.url.URLRepository", "code": "public class URLRepository extends AbstractRepository {\n    private RepositoryCopyProgressListener progress = new RepositoryCopyProgressListener(this);\n\n    private Map resourcesCache = new HashMap();\n\n    public Resource getResource(String source) throws IOException {\n        Resource res = (Resource) resourcesCache.get(source);\n        if (res == null) {\n            res = new URLResource(new URL(source));\n            resourcesCache.put(source, res);\n        }\n        return res;\n    }\n    \n    public void get(String source, File destination) throws IOException {\n        fireTransferInitiated(getResource(source), TransferEvent.REQUEST_GET);\n        try {\n            Resource res = getResource(source);\n            long totalLength = res.getContentLength();\n            if (totalLength > 0) {\n                progress.setTotalLength(new Long(totalLength));\n            }\n            FileUtil.copy(new URL(source), destination, progress);\n        } catch (IOException ex) {\n            fireTransferError(ex);\n            throw ex;\n        } catch (RuntimeException ex) {\n            fireTransferError(ex);\n            throw ex;\n        } finally {\n            progress.setTotalLength(null);\n        }\n    }\n\n    public void put(File source, String destination, boolean overwrite) throws IOException {\n        if (!overwrite) {\n            throw new UnsupportedOperationException(\n                    \"URL repository do not support append operations at the moment\");\n        }\n\n        fireTransferInitiated(getResource(destination), TransferEvent.REQUEST_PUT);\n        try {\n            long totalLength = source.length();\n            if (totalLength > 0) {\n                progress.setTotalLength(new Long(totalLength));\n            }\n            FileUtil.copy(source, new URL(destination), progress);\n        } catch (IOException ex) {\n            fireTransferError(ex);\n            throw ex;\n        } catch (RuntimeException ex) {\n            fireTransferError(ex);\n            throw ex;\n        } finally {\n            progress.setTotalLength(null);\n        }\n    }\n\n    private ApacheURLLister lister = new ApacheURLLister();\n\n    public List list(String parent) throws IOException {\n        if (parent.startsWith(\"http\")) {\n            List urls = lister.listAll(new URL(parent));\n            if (urls != null) {\n                List ret = new ArrayList(urls.size());\n                for (ListIterator iter = urls.listIterator(); iter.hasNext();) {\n                    URL url = (URL) iter.next();\n                    ret.add(url.toExternalForm());\n                }\n                return ret;\n            }\n        } else if (parent.startsWith(\"file\")) {\n            String path;\n            try {\n                path = new URI(parent).getPath();\n            } catch (URISyntaxException e) {\n                IOException ioe = new IOException(\"Couldn't list content of '\" + parent + \"'\");\n                ioe.initCause(e);\n                throw ioe;\n            }\n            \n            File file = new File(path);\n            if (file.exists() && file.isDirectory()) {\n                String[] files = file.list();\n                List ret = new ArrayList(files.length);\n                URL context = path.endsWith(\"/\") ? new URL(parent) : new URL(parent + \"/\");\n                for (int i = 0; i < files.length; i++) {\n                    ret.add(new URL(context, files[i]).toExternalForm());\n                }\n                return ret;\n            } else {\n                return Collections.EMPTY_LIST;\n            }\n\n        }\n        return null;", "functions": [{"function_name": "getResource", "code": "    public Resource getResource(String source) throws IOException {\n        Resource res = (Resource) resourcesCache.get(source);\n        if (res == null) {\n            res = new URLResource(new URL(source));\n            resourcesCache.put(source, res);\n        }\n        return res;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [2, 7], [2, 8], [3, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 2], [8, 2], [9, 3], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "get", "code": "    public void get(String source, File destination) throws IOException {\n        fireTransferInitiated(getResource(source), TransferEvent.REQUEST_GET);\n        try {\n            Resource res = getResource(source);\n            long totalLength = res.getContentLength();\n            if (totalLength > 0) {\n                progress.setTotalLength(new Long(totalLength));\n            }\n            FileUtil.copy(new URL(source), destination, progress);\n        } catch (IOException ex) {\n            fireTransferError(ex);\n            throw ex;\n        } catch (RuntimeException ex) {\n            fireTransferError(ex);\n            throw ex;\n        } finally {\n            progress.setTotalLength(null);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [0, 9], [1, 10], [4, 11], [5, 12], [1, 13], [6, 14], [9, 15], [10, 16], [4, 17], [5, 18], [13, 19], [14, 20], [7, 21], [8, 22], [6, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 0], [10, 1], [11, 4], [12, 5], [13, 1], [14, 6], [15, 9], [16, 10], [17, 4], [18, 5], [19, 13], [20, 14], [21, 7], [22, 8], [23, 6], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "put", "code": "    public void put(File source, String destination, boolean overwrite) throws IOException {\n        if (!overwrite) {\n            throw new UnsupportedOperationException(\n                    \"URL repository do not support append operations at the moment\");\n        }\n\n        fireTransferInitiated(getResource(destination), TransferEvent.REQUEST_PUT);\n        try {\n            long totalLength = source.length();\n            if (totalLength > 0) {\n                progress.setTotalLength(new Long(totalLength));\n            }\n            FileUtil.copy(source, new URL(destination), progress);\n        } catch (IOException ex) {\n            fireTransferError(ex);\n            throw ex;\n        } catch (RuntimeException ex) {\n            fireTransferError(ex);\n            throw ex;\n        } finally {\n            progress.setTotalLength(null);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "VAR_DECL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [0, 10], [1, 11], [6, 12], [7, 13], [1, 14], [8, 15], [10, 16], [2, 17], [11, 18], [6, 19], [7, 20], [14, 21], [15, 22], [9, 23], [17, 24], [8, 25], [24, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 0], [11, 1], [12, 6], [13, 7], [14, 1], [15, 8], [16, 10], [17, 2], [18, 11], [19, 6], [20, 7], [21, 14], [22, 15], [23, 9], [24, 17], [25, 8], [26, 24], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "list", "code": "    public List list(String parent) throws IOException {\n        if (parent.startsWith(\"http\")) {\n            List urls = lister.listAll(new URL(parent));\n            if (urls != null) {\n                List ret = new ArrayList(urls.size());\n                for (ListIterator iter = urls.listIterator(); iter.hasNext();) {\n                    URL url = (URL) iter.next();\n                    ret.add(url.toExternalForm());\n                }\n                return ret;\n            }\n        } else if (parent.startsWith(\"file\")) {\n            String path;\n            try {\n                path = new URI(parent).getPath();\n            } catch (URISyntaxException e) {\n                IOException ioe = new IOException(\"Couldn't list content of '\" + parent + \"'\");\n                ioe.initCause(e);\n                throw ioe;\n            }\n            \n            File file = new File(path);\n            if (file.exists() && file.isDirectory()) {\n                String[] files = file.list();\n                List ret = new ArrayList(files.length);\n                URL context = path.endsWith(\"/\") ? new URL(parent) : new URL(parent + \"/\");\n                for (int i = 0; i < files.length; i++) {\n                    ret.add(new URL(context, files[i]).toExternalForm());\n                }\n                return ret;\n            } else {\n                return Collections.EMPTY_LIST;\n            }\n\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CATCH", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [2, 8], [2, 9], [6, 10], [5, 11], [5, 12], [5, 13], [5, 14], [7, 15], [8, 16], [11, 17], [13, 18], [8, 19], [8, 20], [8, 21], [16, 22], [9, 23], [11, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [17, 30], [17, 31], [12, 32], [18, 33], [18, 34], [13, 35], [20, 36], [23, 37], [26, 38], [18, 39], [35, 40], [20, 41], [21, 42], [27, 43], [28, 44], [29, 45], [34, 46], [40, 47], [20, 48], [20, 49], [42, 50], [26, 51], [26, 52], [43, 53], [43, 54], [43, 55], [46, 56], [48, 57], [51, 58], [53, 59], [55, 60], [56, 61], [56, 62], [41, 63], [58, 64], [59, 65], [62, 66], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 2], [9, 2], [10, 6], [11, 5], [12, 5], [13, 5], [14, 5], [15, 7], [16, 8], [17, 11], [18, 13], [19, 8], [20, 8], [21, 8], [22, 16], [23, 9], [24, 11], [25, 11], [26, 11], [27, 11], [28, 11], [29, 11], [30, 17], [31, 17], [32, 12], [33, 18], [34, 18], [35, 13], [36, 20], [37, 23], [38, 26], [39, 18], [40, 35], [41, 20], [42, 21], [43, 27], [44, 28], [45, 29], [46, 34], [47, 40], [48, 20], [49, 20], [50, 42], [51, 26], [52, 26], [53, 43], [54, 43], [55, 43], [56, 46], [57, 48], [58, 51], [59, 53], [60, 55], [61, 56], [62, 56], [63, 41], [64, 58], [65, 59], [66, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}], "label": 1}
{"sample_id": "log4j-1.2-5005", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/or/RendererMap.java", "language": "java", "name": "org.apache.log4j.or.RendererMap", "code": "public class RendererMap {\n\n  Hashtable map;\n\n  static ObjectRenderer defaultRenderer = new DefaultRenderer();\n\n  public\n  RendererMap() {\n    map = new Hashtable();\n  }\n\n  /**\n     Add a renderer to a hierarchy passed as parameter.\n  */\n  static\n  public\n  void addRenderer(RendererSupport repository, String renderedClassName,\n\t\t   String renderingClassName) {\n    LogLog.debug(\"Rendering class: [\"+renderingClassName+\"], Rendered class: [\"+\n\t\t renderedClassName+\"].\");\n    ObjectRenderer renderer = (ObjectRenderer)\n             OptionConverter.instantiateByClassName(renderingClassName,\n\t\t\t\t\t\t    ObjectRenderer.class,\n\t\t\t\t\t\t    null);\n    if(renderer == null) {\n      LogLog.error(\"Could not instantiate renderer [\"+renderingClassName+\"].\");\n      return;\n    } else {\n      try {\n\tClass renderedClass = Loader.loadClass(renderedClassName);\n\trepository.setRenderer(renderedClass, renderer);\n      } catch(ClassNotFoundException e) {\n\tLogLog.error(\"Could not find class [\"+renderedClassName+\"].\", e);\n      }\n    }\n  }\n\n\n  /**\n     Find the appropriate renderer for the class type of the\n     <code>o</code> parameter. This is accomplished by calling the\n     {@link #get(Class)} method. Once a renderer is found, it is\n     applied on the object <code>o</code> and the result is returned\n     as a {@link String}. */\n  public\n  String findAndRender(Object o) {\n    if(o == null)\n      return null;\n    else\n      return get(o.getClass()).doRender(o);\n  }\n\n\n  /**\n     Syntactic sugar method that calls {@link #get(Class)} with the\n     class of the object parameter. */\n  public\n  ObjectRenderer get(Object o) {\n    if(o == null)\n      return null;\n    else\n      return get(o.getClass());\n  }\n\n\n  /**\n     Search the parents of <code>clazz</code> for a renderer. The\n     renderer closest in the hierarchy will be returned. If no\n     renderers could be found, then the default renderer is returned.\n\n     <p>The search first looks for a renderer configured for\n     <code>clazz</code>. If a renderer could not be found, then the\n     search continues by looking at all the interfaces implemented by\n     <code>clazz</code> including the super-interfaces of each\n     interface.  If a renderer cannot be found, then the search looks\n     for a renderer defined for the parent (superclass) of\n     <code>clazz</code>. If that fails, then all the interfaces\n     implemented by the parent of <code>clazz</code> are searched and\n     so on.\n\n     <p>For example, if A0, A1, A2 are classes and X0, X1, X2, Y0, Y1\n     are interfaces where A2 extends A1 which in turn extends A0 and\n     similarly X2 extends X1 which extends X0 and Y1 extends Y0. Let\n     us also assume that A1 implements the Y0 interface and that A2\n     implements the X2 interface.\n\n     <p>The table below shows the results returned by the\n     <code>get(A2.class)</code> method depending on the renderers\n     added to the map.\n\n     <p><table border=\"1\">\n     <tr><th>Added renderers</th><th>Value returned by <code>get(A2.class)</code></th>\n\n     <tr><td><code>A0Renderer</code>\n         <td align=\"center\"><code>A0Renderer</code>\n\n     <tr><td><code>A0Renderer, A1Renderer</code>\n         <td align=\"center\"><code>A1Renderer</code>\n\n     <tr><td><code>X0Renderer</code>\n         <td align=\"center\"><code>X0Renderer</code>\n\n     <tr><td><code>A1Renderer, X0Renderer</code>\n         <td align=\"center\"><code>X0Renderer</code>\n\n     </table>\n\n     <p>This search algorithm is not the most natural, although it is\n     particularly easy to implement. Future log4j versions\n     <em>may</em> implement a more intuitive search\n     algorithm. However, the present algorithm should be acceptable in\n     the vast majority of circumstances.\n\n */\n  public\n  ObjectRenderer get(Class clazz) {\n    //System.out.println(\"\\nget: \"+clazz);\n    ObjectRenderer r = null;\n    for(Class c = clazz; c != null; c = c.getSuperclass()) {\n      //System.out.println(\"Searching for class: \"+c);\n      r = (ObjectRenderer) map.get(c);\n      if(r != null) {\n\treturn r;\n      }\n      r = searchInterfaces(c);\n      if(r != null)\n\treturn r;\n    }\n    return defaultRenderer;\n  }\n\n  ObjectRenderer searchInterfaces(Class c) {\n    //System.out.println(\"Searching interfaces of class: \"+c);\n\n    ObjectRenderer r = (ObjectRenderer) map.get(c);\n    if(r != null) {\n      return r;\n    } else {\n      Class[] ia = c.getInterfaces();\n      for(int i = 0; i < ia.length; i++) {\n\tr = searchInterfaces(ia[i]);\n\tif(r != null)\n\t  return r;\n      }\n    }\n    return null;\n  }\n\n\n  public\n  ObjectRenderer getDefaultRenderer() {\n    return defaultRenderer;\n  }\n\n\n  public\n  void clear() {\n    map.clear();\n  }\n\n  /**\n     Register an {@link ObjectRenderer} for <code>clazz</code>.\n  */\n  public\n  void put(Class clazz, ObjectRenderer or) {\n    map.put(clazz, or);", "functions": [{"function_name": "addRenderer", "code": "  void addRenderer(RendererSupport repository, String renderedClassName,\n\t\t   String renderingClassName) {\n    LogLog.debug(\"Rendering class: [\"+renderingClassName+\"], Rendered class: [\"+\n\t\t renderedClassName+\"].\");\n    ObjectRenderer renderer = (ObjectRenderer)\n             OptionConverter.instantiateByClassName(renderingClassName,\n\t\t\t\t\t\t    ObjectRenderer.class,\n\t\t\t\t\t\t    null);\n    if(renderer == null) {\n      LogLog.error(\"Could not instantiate renderer [\"+renderingClassName+\"].\");\n      return;\n    } else {\n      try {\n\tClass renderedClass = Loader.loadClass(renderedClassName);\n\trepository.setRenderer(renderedClass, renderer);\n      } catch(ClassNotFoundException e) {\n\tLogLog.error(\"Could not find class [\"+renderedClassName+\"].\", e);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "TRY", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [1, 8], [1, 9], [6, 10], [7, 11], [8, 12], [8, 13], [1, 14], [2, 15], [11, 16], [11, 17], [8, 18], [14, 19], [15, 20], [17, 21], [12, 22], [13, 23], [19, 24], [19, 25], [21, 26], [21, 27], [22, 28], [25, 29], [27, 30], [28, 31], [28, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 1], [9, 1], [10, 6], [11, 7], [12, 8], [13, 8], [14, 1], [15, 2], [16, 11], [17, 11], [18, 8], [19, 14], [20, 15], [21, 17], [22, 12], [23, 13], [24, 19], [25, 19], [26, 21], [27, 21], [28, 22], [29, 25], [30, 27], [31, 28], [32, 28], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "findAndRender", "code": "  String findAndRender(Object o) {\n    if(o == null)\n      return null;\n    else\n      return get(o.getClass()).doRender(o);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "get", "code": "  ObjectRenderer get(Object o) {\n    if(o == null)\n      return null;\n    else\n      return get(o.getClass());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "get", "code": "  ObjectRenderer get(Class clazz) {\n    //System.out.println(\"\\nget: \"+clazz);\n    ObjectRenderer r = null;\n    for(Class c = clazz; c != null; c = c.getSuperclass()) {\n      //System.out.println(\"Searching for class: \"+c);\n      r = (ObjectRenderer) map.get(c);\n      if(r != null) {\n\treturn r;\n      }\n      r = searchInterfaces(c);\n      if(r != null)\n\treturn r;\n    }\n    return defaultRenderer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [6, 10], [3, 11], [7, 12], [7, 13], [2, 14], [8, 15], [2, 16], [13, 17], [14, 18], [8, 19], [15, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 6], [11, 3], [12, 7], [13, 7], [14, 2], [15, 8], [16, 2], [17, 13], [18, 14], [19, 8], [20, 15], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "searchInterfaces", "code": "  ObjectRenderer searchInterfaces(Class c) {\n    //System.out.println(\"Searching interfaces of class: \"+c);\n\n    ObjectRenderer r = (ObjectRenderer) map.get(c);\n    if(r != null) {\n      return r;\n    } else {\n      Class[] ia = c.getInterfaces();\n      for(int i = 0; i < ia.length; i++) {\n\tr = searchInterfaces(ia[i]);\n\tif(r != null)\n\t  return r;\n      }\n    }\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [7, 11], [3, 12], [7, 13], [8, 14], [13, 15], [13, 16], [7, 17], [7, 18], [16, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 7], [12, 3], [13, 7], [14, 8], [15, 13], [16, 13], [17, 7], [18, 7], [19, 16], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getDefaultRenderer", "code": "  ObjectRenderer getDefaultRenderer() {\n    return defaultRenderer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clear", "code": "  void clear() {\n    map.clear();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "put", "code": "  void put(Class clazz, ObjectRenderer or) {\n    map.put(clazz, or);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RendererMap", "code": "  RendererMap() {\n    map = new Hashtable();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.3-4550", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/io/VFSFile.java", "language": "java", "name": "org.gjt.sp.jedit.io.VFSFile", "code": "public class VFSFile implements Serializable\n{\n\t//{{{ findCompletion() method\n\t/**\n\t * Return the index of a file whose name matches the given string,\n\t * in a case-insensitive manner. Exact matches are preferred.\n\t * @param files The list of files\n\t * @param start The start index, inclusive\n\t * @param end The end index, exclusive\n\t * @param str The string to match\n\t * @param dirsOnly Only match directories?\n\t * @since jEdit 4.3pre3\n\t */\n\tpublic static int findCompletion(VFSFile[] files, int start, int end,\n\t\tString str, boolean dirsOnly)\n\t{\n\t\tfor(int i = start; i < end; i++)\n\t\t{\n\t\t\tVFSFile file = files[i];\n\t\t\tString matchAgainst = (MiscUtilities.isAbsolutePath(str)\n\t\t\t\t? file.getPath() : file.getName());\n\n\t\t\tif(dirsOnly && file.getType() == FILE)\n\t\t\t\tcontinue;\n\t\t\t/* try exact match first */\n\t\t\telse if(matchAgainst.equals(str))\n\t\t\t\treturn i;\n\t\t\telse if(matchAgainst.regionMatches(true,0,str,0,str.length()))\n\t\t\t\treturn i;\n\t\t}\n\n\t\treturn -1;\n\t} //}}}\n\n\t//{{{ findCompletion() method\n\tpublic static String findCompletion(String path, String complete,\n\t\tVFSBrowser browser, boolean dirsOnly)\n\t{\n\t\tLog.log(Log.DEBUG,VFSFile.class,\"findCompletion(\" + path + ',' + complete\n\t\t\t+ ',' + dirsOnly + ')');\n\n\t\tif(complete.equals(\"~\"))\n\t\t\treturn System.getProperty(\"user.home\");\n\t\telse if(complete.equals(\"-\"))\n\t\t\treturn browser.getView().getBuffer().getDirectory();\n\t\telse if(complete.equals(\"..\"))\n\t\t\treturn MiscUtilities.getParentOfPath(path);\n\n\t\tif(MiscUtilities.isAbsolutePath(complete))\n\t\t{\n\t\t\tif(MiscUtilities.isURL(complete))\n\t\t\t\treturn complete;\n\t\t\telse\n\t\t\t\tpath = \"roots:\";\n\t\t}\n\n\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\tif((vfs.getCapabilities() & VFS.LOW_LATENCY_CAP) == 0)\n\t\t\treturn null;\n\t\tObject session = vfs.createVFSSession(path,browser);\n\t\tif(session == null)\n\t\t\treturn null;\n\n\t\ttry\n\t\t{\n\t\t\tVFSFile[] files = vfs._listFiles(session,path,browser);\n\t\t\tint index = findCompletion(files,0,files.length,complete,dirsOnly);\n\t\t\tif(index != -1)\n\t\t\t\treturn files[index].path;\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tVFSManager.error(e,path,browser);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tVFSManager.error(e,path,browser);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getIcon() method\n\t/**\n\t * Returns the icon for the file.\n\t *\n\t * @since jEdit 4.3pre9\n\t */\n\tpublic final Icon getIcon(boolean expanded)\n\t{\n\t\treturn getIcon(expanded, jEdit._getBuffer(getSymlinkPath()) != null);\n\t} //}}}\n\n\t//{{{ getIcon() method\n\t/**\n\t * Returns the icon for the file.\n\t * Implementations of File system browsers can override this method\n\t *  \n\t * @since jEdit 4.3pre9\n\t */\n\tpublic Icon getIcon(boolean expanded, boolean openBuffer)\n\t{\n\t\treturn getDefaultIcon(expanded, openBuffer);\n\t} //}}}\n\n\t//{{{ getDefaultIcon() method\n\t/**\n\t * Returns the default icon for the file.\n\t *\n\t * @since jEdit 4.3pre9\n\t */\n\tpublic final Icon getDefaultIcon(boolean expanded, boolean openBuffer)\n\t{\n\t\tif(getType() == DIRECTORY)\n\t\t\treturn expanded ? FileCellRenderer.openDirIcon : FileCellRenderer.dirIcon;\n\t\telse if(getType() == FILESYSTEM)\n\t\t\treturn FileCellRenderer.filesystemIcon;\n\t\telse if(openBuffer)\n\t\t\treturn FileCellRenderer.openFileIcon;\n\t\telse\n\t\t\treturn FileCellRenderer.fileIcon;\n\t} //}}}\n\n\t//{{{ getDefaultIcon() method\n\t/**\n\t * Returns the default icon of the file.\n\t *\n\t * @return the default icon of the file\n\t * @since jEdit 4.3pre9\n\t */\n\tpublic final Icon getDefaultIcon(boolean expanded)\n\t{\n\t\treturn getDefaultIcon(expanded, jEdit._getBuffer(getSymlinkPath()) != null);\n\t} //}}}\n\n\t//{{{ File types\n\tpublic static final int FILE = 0;\n\tpublic static final int DIRECTORY = 1;\n\tpublic static final int FILESYSTEM = 2;\n\t//}}}\n\n\t//{{{ Instance variables\n\t/**\n\t * @deprecated Use the accessor/mutator methods instead.\n\t */\n\tpublic String name;\n\t/**\n\t * @deprecated Use the accessor/mutator methods instead.\n\t */\n\tpublic String path;\n\t/**\n\t * @deprecated Use the accessor/mutator methods instead.\n\t */\n\tpublic String symlinkPath;\n\t/**\n\t * @deprecated Use the accessor/mutator methods instead.\n\t */\n\tpublic String deletePath;\n\t/**\n\t * @deprecated Use the accessor/mutator methods instead.\n\t */\n\tpublic int type;\n\t/**\n\t * @deprecated Use the accessor/mutator methods instead.\n\t */\n\tpublic long length;\n\t/**\n\t * @deprecated Use the accessor/mutator methods instead.\n\t */\n\tpublic boolean hidden;\n\t/**\n\t * @deprecated Use the accessor/mutator methods instead.\n\t */\n\tpublic boolean canRead;\n\t/**\n\t * @deprecated Use the accessor/mutator methods instead.\n\t */\n\tpublic boolean canWrite;\n\t//}}}\n\n\t//{{{ VFSFile constructor\n\t/**\n\t * @since jEdit 4.3pre2\n\t */\n\tpublic VFSFile()\n\t{\n\t} //}}}\n\n\t//{{{ VFSFile constructor\n\tpublic VFSFile(String name, String path, String deletePath,\n\t\tint type, long length, boolean hidden)\n\t{\n\t\tthis.name = name;\n\t\tthis.path = path;\n\t\tthis.deletePath = deletePath;\n\t\tthis.symlinkPath = path;\n\t\tthis.type = type;\n\t\tthis.length = length;\n\t\tthis.hidden = hidden;\n\t\tif(path != null)\n\t\t{\n\t\t\t// maintain backwards compatibility\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\tcanRead = ((vfs.getCapabilities() & VFS.READ_CAP) != 0);\n\t\t\tcanWrite = ((vfs.getCapabilities() & VFS.WRITE_CAP) != 0);\n\t\t}\n\t} //}}}\n\n\t//{{{ getVFS() method\n\t/**\n\t * @return The originating virtual file system of this file.\n\t */\n\tpublic VFS getVFS()\n\t{\n\t\treturn VFSManager.getVFSForPath(path);\n\t} //}}}\n\t\n\t//{{{ getName() method\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ setName() method\n\tpublic void setName(String name)\n\t{\n\t\tthis.name = name;\n\t} //}}}\n\n\t//{{{ isBinary() method\n\t/**\n\t * Check if a file is binary file.\n\t *\n\t * @param session the VFS session\n\t * @return <code>true</code> if the file was detected as binary\n\t * @throws IOException IOException If an I/O error occurs\n\t * @since jEdit 4.3pre5\n\t */\n\tpublic boolean isBinary(Object session)\n\t\tthrows IOException\n\t{\n\t\tInputStream in = getVFS()._createInputStream(session,getPath(),\n\t\t\tfalse,jEdit.getActiveView());\n\t\tif(in == null)\n\t\t\tthrow new IOException(\"Unable to get a Stream for this file \"+this);\n\n\t\ttry\n\t\t{\n\t\t\treturn MiscUtilities.isBinary(in);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(in);\n\t\t}\n\t} //}}}\n\n\t//{{{ getPath() method\n\tpublic String getPath()\n\t{\n\t\treturn path;\n\t} //}}}\n\n\t//{{{ setPath() method\n\tpublic void setPath(String path)\n\t{\n\t\tthis.path = path;\n\t} //}}}\n\n\t//{{{ getSymlinkPath() method\n\tpublic String getSymlinkPath()\n\t{\n\t\treturn symlinkPath;\n\t} //}}}\n\n\t//{{{ setSymlinkPath() method\n\tpublic void setSymlinkPath(String symlinkPath)\n\t{\n\t\tthis.symlinkPath = symlinkPath;\n\t} //}}}\n\n\t//{{{ getDeletePath() method\n\tpublic String getDeletePath()\n\t{\n\t\treturn deletePath;\n\t} //}}}\n\n\t//{{{ setDeletePath() method\n\tpublic void setDeletePath(String deletePath)\n\t{\n\t\tthis.deletePath = deletePath;\n\t} //}}}\n\n\t//{{{ getType() method\n\tpublic int getType()\n\t{\n\t\treturn type;\n\t} //}}}\n\n\t//{{{ setType() method\n\tpublic void setType(int type)\n\t{\n\t\tthis.type = type;\n\t} //}}}\n\n\t//{{{ getLength() method\n\tpublic long getLength()\n\t{\n\t\treturn length;\n\t} //}}}\n\n\t//{{{ setLength() method\n\tpublic void setLength(long length)\n\t{\n\t\tthis.length = length;\n\t} //}}}\n\n\t//{{{ isHidden() method\n\tpublic boolean isHidden()\n\t{\n\t\treturn hidden;\n\t} //}}}\n\n\t//{{{ setHidden() method\n\tpublic void setHidden(boolean hidden)\n\t{\n\t\tthis.hidden = hidden;\n\t} //}}}\n\n\t//{{{ isReadable() method\n\tpublic boolean isReadable()\n\t{\n\t\treturn canRead;\n\t} //}}}\n\n\t//{{{ setReadable() method\n\tpublic void setReadable(boolean canRead)\n\t{\n\t\tthis.canRead = canRead;\n\t} //}}}\n\n\t//{{{ isWriteable() method\n\tpublic boolean isWriteable()\n\t{\n\t\treturn canWrite;\n\t} //}}}\n\n\t//{{{ setWriteable() method\n\tpublic void setWriteable(boolean canWrite)\n\t{\n\t\tthis.canWrite = canWrite;\n\t} //}}}\n\n\tprotected boolean colorCalculated;\n\tprotected Color color;\n\n\t//{{{ getExtendedAttribute() method\n\t/**\n\t * Returns the value of an extended attribute. Note that this\n\t * returns formatted strings (eg, \"10 Mb\" for a file size of\n\t * 1048576 bytes). If you need access to the raw data, access\n\t * fields and methods of this class.\n\t * @param name The extended attribute name\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic String getExtendedAttribute(String name)\n\t{\n\t\tif(name.equals(VFS.EA_TYPE))\n\t\t{\n\t\t\tswitch(getType())\n\t\t\t{\n\t\t\tcase FILE:\n\t\t\t\treturn jEdit.getProperty(\"vfs.browser.type.file\");\n\t\t\tcase DIRECTORY:\n\t\t\t\treturn jEdit.getProperty(\"vfs.browser.type.directory\");\n\t\t\tcase FILESYSTEM:\n\t\t\t\treturn jEdit.getProperty(\"vfs.browser.type.filesystem\");\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\t\t}\n\t\telse if(name.equals(VFS.EA_STATUS))\n\t\t{\n\t\t\tif(isReadable())\n\t\t\t{\n\t\t\t\tif(isWriteable())\n\t\t\t\t\treturn jEdit.getProperty(\"vfs.browser.status.rw\");\n\t\t\t\telse\n\t\t\t\t\treturn jEdit.getProperty(\"vfs.browser.status.ro\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(isWriteable())\n\t\t\t\t\treturn jEdit.getProperty(\"vfs.browser.status.append\");\n\t\t\t\telse\n\t\t\t\t\treturn jEdit.getProperty(\"vfs.browser.status.no\");\n\t\t\t}\n\t\t}\n\t\telse if(name.equals(VFS.EA_SIZE))\n\t\t{\n\t\t\tif(getType() != FILE)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn MiscUtilities.formatFileSize(getLength());\n\t\t}\n\t\telse\n\t\t\treturn null;\n\t} //}}}\n\n\t//{{{ getColor() method\n\t/**\n\t * Returns the color that will be used to display the file.\n\t *\n\t * @return the color of the file\n\t */\n\tpublic Color getColor()\n\t{\n\t\tif(!colorCalculated)\n\t\t{\n\t\t\tcolorCalculated = true;\n\t\t\tcolor = VFS.getDefaultColorFor(name);\n\t\t}\n\n\t\treturn color;\n\t} //}}}\n\n\t//{{{ toString() method\n\tpublic String toString()\n\t{\n\t\treturn name;\n\t} //}}}\n\t\n\t//{{{ fetchedAttrs() method\n\t/**\n\t * Returns true if the attributes are already fetched.\n\t *\n\t * @see #fetchAttrs()\n\t * @return <code>true</code> if the attributes are already fetched\n\t */\n\tprotected boolean fetchedAttrs()\n\t{\n\t\treturn fetchedAttrs;\n\t} //}}}\n\t\n\t//{{{ fetchAttrs() method\n\t/**\n\t * Fetch some attributes of the file.\n\t * Some attributes are not fetched during\n\t * file initialization because it takes time.\n\t * They are fetched here.\n\t * VFS implementation should overwrite this\n\t */\n\tprotected void fetchAttrs()\n\t{\n\t\tfetchedAttrs = true;\n\t} //}}}\n\n\t/** This is true if the attributes are already fetched. */\n\tprivate boolean fetchedAttrs;", "functions": [{"function_name": "findCompletion", "code": "\tpublic static int findCompletion(VFSFile[] files, int start, int end,\n\t\tString str, boolean dirsOnly)\n\t{\n\t\tfor(int i = start; i < end; i++)\n\t\t{\n\t\t\tVFSFile file = files[i];\n\t\t\tString matchAgainst = (MiscUtilities.isAbsolutePath(str)\n\t\t\t\t? file.getPath() : file.getName());\n\n\t\t\tif(dirsOnly && file.getType() == FILE)\n\t\t\t\tcontinue;\n\t\t\t/* try exact match first */\n\t\t\telse if(matchAgainst.equals(str))\n\t\t\t\treturn i;\n\t\t\telse if(matchAgainst.regionMatches(true,0,str,0,str.length()))\n\t\t\t\treturn i;\n\t\t}\n\n\t\treturn -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "IF", "BREAK_CONTINUE", "BINARY_OP", "IF", "RETURN", "CALL", "BINARY_OP", "COND_EXPR", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [10, 13], [10, 14], [10, 15], [13, 16], [13, 17], [13, 18], [15, 19], [11, 20], [16, 21], [16, 22], [19, 23], [20, 24], [20, 25], [20, 26], [22, 27], [22, 28], [22, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 10], [14, 10], [15, 10], [16, 13], [17, 13], [18, 13], [19, 15], [20, 11], [21, 16], [22, 16], [23, 19], [24, 20], [25, 20], [26, 20], [27, 22], [28, 22], [29, 22], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "findCompletion", "code": "\tpublic static String findCompletion(String path, String complete,\n\t\tVFSBrowser browser, boolean dirsOnly)\n\t{\n\t\tLog.log(Log.DEBUG,VFSFile.class,\"findCompletion(\" + path + ',' + complete\n\t\t\t+ ',' + dirsOnly + ')');\n\n\t\tif(complete.equals(\"~\"))\n\t\t\treturn System.getProperty(\"user.home\");\n\t\telse if(complete.equals(\"-\"))\n\t\t\treturn browser.getView().getBuffer().getDirectory();\n\t\telse if(complete.equals(\"..\"))\n\t\t\treturn MiscUtilities.getParentOfPath(path);\n\n\t\tif(MiscUtilities.isAbsolutePath(complete))\n\t\t{\n\t\t\tif(MiscUtilities.isURL(complete))\n\t\t\t\treturn complete;\n\t\t\telse\n\t\t\t\tpath = \"roots:\";\n\t\t}\n\n\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\tif((vfs.getCapabilities() & VFS.LOW_LATENCY_CAP) == 0)\n\t\t\treturn null;\n\t\tObject session = vfs.createVFSSession(path,browser);\n\t\tif(session == null)\n\t\t\treturn null;\n\n\t\ttry\n\t\t{\n\t\t\tVFSFile[] files = vfs._listFiles(session,path,browser);\n\t\t\tint index = findCompletion(files,0,files.length,complete,dirsOnly);\n\t\t\tif(index != -1)\n\t\t\t\treturn files[index].path;\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tVFSManager.error(e,path,browser);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tVFSManager.error(e,path,browser);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "TRY", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "CALL", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "IF", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [3, 19], [3, 20], [5, 21], [5, 22], [7, 23], [8, 24], [8, 25], [8, 26], [0, 27], [14, 28], [16, 29], [16, 30], [19, 31], [20, 32], [4, 33], [21, 34], [22, 35], [22, 36], [6, 37], [7, 38], [24, 39], [24, 40], [24, 41], [25, 42], [26, 43], [27, 44], [14, 45], [15, 46], [30, 47], [17, 48], [18, 49], [36, 50], [38, 51], [38, 52], [39, 53], [39, 54], [40, 55], [41, 56], [42, 57], [44, 58], [44, 59], [28, 60], [48, 61], [38, 62], [53, 63], [54, 64], [55, 65], [55, 66], [59, 67], [62, 68], [67, 69], [67, 70], [70, 71], [71, 72], [71, 73], [73, 74], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 3], [20, 3], [21, 5], [22, 5], [23, 7], [24, 8], [25, 8], [26, 8], [27, 0], [28, 14], [29, 16], [30, 16], [31, 19], [32, 20], [33, 4], [34, 21], [35, 22], [36, 22], [37, 6], [38, 7], [39, 24], [40, 24], [41, 24], [42, 25], [43, 26], [44, 27], [45, 14], [46, 15], [47, 30], [48, 17], [49, 18], [50, 36], [51, 38], [52, 38], [53, 39], [54, 39], [55, 40], [56, 41], [57, 42], [58, 44], [59, 44], [60, 28], [61, 48], [62, 38], [63, 53], [64, 54], [65, 55], [66, 55], [67, 59], [68, 62], [69, 67], [70, 67], [71, 70], [72, 71], [73, 71], [74, 73], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74]]}, {"function_name": "getIcon", "code": "\tpublic final Icon getIcon(boolean expanded)\n\t{\n\t\treturn getIcon(expanded, jEdit._getBuffer(getSymlinkPath()) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getIcon", "code": "\tpublic Icon getIcon(boolean expanded, boolean openBuffer)\n\t{\n\t\treturn getDefaultIcon(expanded, openBuffer);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDefaultIcon", "code": "\tpublic final Icon getDefaultIcon(boolean expanded, boolean openBuffer)\n\t{\n\t\tif(getType() == DIRECTORY)\n\t\t\treturn expanded ? FileCellRenderer.openDirIcon : FileCellRenderer.dirIcon;\n\t\telse if(getType() == FILESYSTEM)\n\t\t\treturn FileCellRenderer.filesystemIcon;\n\t\telse if(openBuffer)\n\t\t\treturn FileCellRenderer.openFileIcon;\n\t\telse\n\t\t\treturn FileCellRenderer.fileIcon;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "COND_EXPR", "CALL", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [5, 10], [6, 11], [7, 12], [7, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 5], [11, 6], [12, 7], [13, 7], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getDefaultIcon", "code": "\tpublic final Icon getDefaultIcon(boolean expanded)\n\t{\n\t\treturn getDefaultIcon(expanded, jEdit._getBuffer(getSymlinkPath()) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getVFS", "code": "\tpublic VFS getVFS()\n\t{\n\t\treturn VFSManager.getVFSForPath(path);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "\tpublic void setName(String name)\n\t{\n\t\tthis.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isBinary", "code": "\tpublic boolean isBinary(Object session)\n\t\tthrows IOException\n\t{\n\t\tInputStream in = getVFS()._createInputStream(session,getPath(),\n\t\t\tfalse,jEdit.getActiveView());\n\t\tif(in == null)\n\t\t\tthrow new IOException(\"Unable to get a Stream for this file \"+this);\n\n\t\ttry\n\t\t{\n\t\t\treturn MiscUtilities.isBinary(in);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(in);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "RETURN", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [5, 9], [6, 10], [7, 11], [3, 12], [10, 13], [12, 14], [13, 15], [14, 16], [14, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 5], [10, 6], [11, 7], [12, 3], [13, 10], [14, 12], [15, 13], [16, 14], [17, 14], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getPath", "code": "\tpublic String getPath()\n\t{\n\t\treturn path;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPath", "code": "\tpublic void setPath(String path)\n\t{\n\t\tthis.path = path;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSymlinkPath", "code": "\tpublic String getSymlinkPath()\n\t{\n\t\treturn symlinkPath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSymlinkPath", "code": "\tpublic void setSymlinkPath(String symlinkPath)\n\t{\n\t\tthis.symlinkPath = symlinkPath;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDeletePath", "code": "\tpublic String getDeletePath()\n\t{\n\t\treturn deletePath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDeletePath", "code": "\tpublic void setDeletePath(String deletePath)\n\t{\n\t\tthis.deletePath = deletePath;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "\tpublic int getType()\n\t{\n\t\treturn type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setType", "code": "\tpublic void setType(int type)\n\t{\n\t\tthis.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLength", "code": "\tpublic long getLength()\n\t{\n\t\treturn length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLength", "code": "\tpublic void setLength(long length)\n\t{\n\t\tthis.length = length;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isHidden", "code": "\tpublic boolean isHidden()\n\t{\n\t\treturn hidden;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHidden", "code": "\tpublic void setHidden(boolean hidden)\n\t{\n\t\tthis.hidden = hidden;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isReadable", "code": "\tpublic boolean isReadable()\n\t{\n\t\treturn canRead;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReadable", "code": "\tpublic void setReadable(boolean canRead)\n\t{\n\t\tthis.canRead = canRead;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isWriteable", "code": "\tpublic boolean isWriteable()\n\t{\n\t\treturn canWrite;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWriteable", "code": "\tpublic void setWriteable(boolean canWrite)\n\t{\n\t\tthis.canWrite = canWrite;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExtendedAttribute", "code": "\tpublic String getExtendedAttribute(String name)\n\t{\n\t\tif(name.equals(VFS.EA_TYPE))\n\t\t{\n\t\t\tswitch(getType())\n\t\t\t{\n\t\t\tcase FILE:\n\t\t\t\treturn jEdit.getProperty(\"vfs.browser.type.file\");\n\t\t\tcase DIRECTORY:\n\t\t\t\treturn jEdit.getProperty(\"vfs.browser.type.directory\");\n\t\t\tcase FILESYSTEM:\n\t\t\t\treturn jEdit.getProperty(\"vfs.browser.type.filesystem\");\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\t\t}\n\t\telse if(name.equals(VFS.EA_STATUS))\n\t\t{\n\t\t\tif(isReadable())\n\t\t\t{\n\t\t\t\tif(isWriteable())\n\t\t\t\t\treturn jEdit.getProperty(\"vfs.browser.status.rw\");\n\t\t\t\telse\n\t\t\t\t\treturn jEdit.getProperty(\"vfs.browser.status.ro\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(isWriteable())\n\t\t\t\t\treturn jEdit.getProperty(\"vfs.browser.status.append\");\n\t\t\t\telse\n\t\t\t\t\treturn jEdit.getProperty(\"vfs.browser.status.no\");\n\t\t\t}\n\t\t}\n\t\telse if(name.equals(VFS.EA_SIZE))\n\t\t{\n\t\t\tif(getType() != FILE)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn MiscUtilities.formatFileSize(getLength());\n\t\t}\n\t\telse\n\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "IF", "CALL", "SWITCH", "RETURN", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "BINARY_OP", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "CALL", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [5, 8], [5, 9], [3, 10], [7, 11], [8, 12], [5, 13], [10, 14], [7, 15], [7, 16], [7, 17], [7, 18], [13, 19], [13, 20], [13, 21], [10, 22], [10, 23], [15, 24], [16, 25], [17, 26], [18, 27], [19, 28], [20, 29], [21, 30], [22, 31], [22, 32], [22, 33], [23, 34], [23, 35], [23, 36], [25, 37], [26, 38], [27, 39], [28, 40], [31, 41], [32, 42], [34, 43], [35, 44], [41, 45], [42, 46], [43, 47], [44, 48], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 5], [9, 5], [10, 3], [11, 7], [12, 8], [13, 5], [14, 10], [15, 7], [16, 7], [17, 7], [18, 7], [19, 13], [20, 13], [21, 13], [22, 10], [23, 10], [24, 15], [25, 16], [26, 17], [27, 18], [28, 19], [29, 20], [30, 21], [31, 22], [32, 22], [33, 22], [34, 23], [35, 23], [36, 23], [37, 25], [38, 26], [39, 27], [40, 28], [41, 31], [42, 32], [43, 34], [44, 35], [45, 41], [46, 42], [47, 43], [48, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "getColor", "code": "\tpublic Color getColor()\n\t{\n\t\tif(!colorCalculated)\n\t\t{\n\t\t\tcolorCalculated = true;\n\t\t\tcolor = VFS.getDefaultColorFor(name);\n\t\t}\n\n\t\treturn color;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fetchedAttrs", "code": "\tprotected boolean fetchedAttrs()\n\t{\n\t\treturn fetchedAttrs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fetchAttrs", "code": "\tprotected void fetchAttrs()\n\t{\n\t\tfetchedAttrs = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "VFSFile", "code": "\tpublic VFSFile()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "VFSFile", "code": "\tpublic VFSFile(String name, String path, String deletePath,\n\t\tint type, long length, boolean hidden)\n\t{\n\t\tthis.name = name;\n\t\tthis.path = path;\n\t\tthis.deletePath = deletePath;\n\t\tthis.symlinkPath = path;\n\t\tthis.type = type;\n\t\tthis.length = length;\n\t\tthis.hidden = hidden;\n\t\tif(path != null)\n\t\t{\n\t\t\t// maintain backwards compatibility\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\tcanRead = ((vfs.getCapabilities() & VFS.READ_CAP) != 0);\n\t\t\tcanWrite = ((vfs.getCapabilities() & VFS.WRITE_CAP) != 0);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [8, 17], [1, 18], [1, 19], [18, 20], [19, 21], [16, 22], [20, 23], [20, 24], [21, 25], [21, 26], [24, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 8], [18, 1], [19, 1], [20, 18], [21, 19], [22, 16], [23, 20], [24, 20], [25, 21], [26, 21], [27, 24], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}], "label": 0}
{"sample_id": "camel-1.2-1724", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/irc/IrcConfiguration.java", "language": "java", "name": "org.apache.camel.component.irc.IrcConfiguration", "code": "public class IrcConfiguration implements Cloneable {\n    String target;\n    String hostname;\n    String password;\n    String nickname;\n    String realname;\n    String username;\n    boolean persistent = true;\n    boolean colors = true;\n    boolean onNick = true;\n    boolean onQuit = true;\n    boolean onJoin = true;\n    boolean onKick = true;\n    boolean onMode = true;\n    boolean onPart = true;\n    boolean onTopic = true;\n    boolean onPrivmsg = true;\n    int[] ports = {6667, 6668, 6669};\n\n    public IrcConfiguration() {\n    }\n\n    public IrcConfiguration(String hostname, String nickname, String displayname, String target) {\n        this.target = target;\n        this.hostname = hostname;\n        this.nickname = nickname;\n        this.username = nickname;\n        this.realname = displayname;\n    }\n\n    public IrcConfiguration(String hostname, String username, String password, String nickname, String displayname, String target) {\n        this.target = target;\n        this.hostname = hostname;\n        this.username = username;\n        this.password = password;\n        this.nickname = nickname;\n        this.realname = displayname;\n    }\n\n    public IrcConfiguration copy() {\n        try {\n            return (IrcConfiguration)clone();\n        } catch (CloneNotSupportedException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    public String getCacheKey() {\n        return hostname + \":\" + nickname;\n    }\n\n    public void configure(URI uri) {\n        setNickname(uri.getUserInfo());\n        setUsername(uri.getUserInfo());\n        setRealname(uri.getUserInfo());\n        setHostname(uri.getHost());\n        setTarget(uri.getPath().substring(1));\n    }\n\n    public String getHostname() {\n        return hostname;\n    }\n\n    public void setHostname(String hostname) {\n        this.hostname = hostname;\n    }\n\n    public String getPassword() {\n        return password;\n    }\n\n    public void setPassword(String password) {\n        this.password = password;\n    }\n\n    public String getNickname() {\n        return nickname;\n    }\n\n    public void setNickname(String nickname) {\n        this.nickname = nickname;\n    }\n\n    public String getRealname() {\n        return realname;\n    }\n\n    public void setRealname(String realname) {\n        this.realname = realname;\n    }\n\n    public String getUsername() {\n        return username;\n    }\n\n    public void setUsername(String username) {\n        this.username = username;\n    }\n\n    public int[] getPorts() {\n        return ports;\n    }\n\n    public void setPorts(int[] ports) {\n        this.ports = ports;\n    }\n\n    public String getTarget() {\n        return target;\n    }\n\n    public void setTarget(String target) {\n        this.target = target;\n    }\n\n    public boolean isPersistent() {\n        return persistent;\n    }\n\n    public void setPersistent(boolean persistent) {\n        this.persistent = persistent;\n    }\n\n    public boolean isColors() {\n        return colors;\n    }\n\n    public void setColors(boolean colors) {\n        this.colors = colors;\n    }\n\n    public boolean isOnNick() {\n        return onNick;\n    }\n\n    public void setOnNick(boolean onNick) {\n        this.onNick = onNick;\n    }\n\n    public boolean isOnQuit() {\n        return onQuit;\n    }\n\n    public void setOnQuit(boolean onQuit) {\n        this.onQuit = onQuit;\n    }\n\n    public boolean isOnJoin() {\n        return onJoin;\n    }\n\n    public void setOnJoin(boolean onJoin) {\n        this.onJoin = onJoin;\n    }\n\n    public boolean isOnKick() {\n        return onKick;\n    }\n\n    public void setOnKick(boolean onKick) {\n        this.onKick = onKick;\n    }\n\n    public boolean isOnMode() {\n        return onMode;\n    }\n\n    public void setOnMode(boolean onMode) {\n        this.onMode = onMode;\n    }\n\n    public boolean isOnPart() {\n        return onPart;\n    }\n\n    public void setOnPart(boolean onPart) {\n        this.onPart = onPart;\n    }\n\n    public boolean isOnTopic() {\n        return onTopic;\n    }\n\n    public void setOnTopic(boolean onTopic) {\n        this.onTopic = onTopic;\n    }\n\n    public boolean isOnPrivmsg() {\n        return onPrivmsg;\n    }\n\n    public void setOnPrivmsg(boolean onPrivmsg) {\n        this.onPrivmsg = onPrivmsg;\n    }\n\n    public String toString() {\n        return \"IrcConfiguration{\" + \"target='\" + target + '\\'' + \", hostname='\" + hostname + '\\'' + \", password='\" + password + '\\'' + \", nickname='\" + nickname + '\\'' + \", realname='\" + realname\n               + '\\'' + \", username='\" + username + '\\'' + \", persistent=\" + persistent + \", colors=\" + colors + \", onNick=\" + onNick + \", onQuit=\" + onQuit + \", onJoin=\" + onJoin + \", onKick=\"\n               + onKick + \", onMode=\" + onMode + \", onPart=\" + onPart + \", onTopic=\" + onTopic + \", onPrivmsg=\" + onPrivmsg + \", ports=\" + ports + '}';", "functions": [{"function_name": "copy", "code": "    public IrcConfiguration copy() {\n        try {\n            return (IrcConfiguration)clone();\n        } catch (CloneNotSupportedException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [3, 6], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getCacheKey", "code": "    public String getCacheKey() {\n        return hostname + \":\" + nickname;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "configure", "code": "    public void configure(URI uri) {\n        setNickname(uri.getUserInfo());\n        setUsername(uri.getUserInfo());\n        setRealname(uri.getUserInfo());\n        setHostname(uri.getHost());\n        setTarget(uri.getPath().substring(1));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [7, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [12, 7], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getHostname", "code": "    public String getHostname() {\n        return hostname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHostname", "code": "    public void setHostname(String hostname) {\n        this.hostname = hostname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPassword", "code": "    public String getPassword() {\n        return password;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPassword", "code": "    public void setPassword(String password) {\n        this.password = password;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNickname", "code": "    public String getNickname() {\n        return nickname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNickname", "code": "    public void setNickname(String nickname) {\n        this.nickname = nickname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRealname", "code": "    public String getRealname() {\n        return realname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRealname", "code": "    public void setRealname(String realname) {\n        this.realname = realname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUsername", "code": "    public String getUsername() {\n        return username;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUsername", "code": "    public void setUsername(String username) {\n        this.username = username;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPorts", "code": "    public int[] getPorts() {\n        return ports;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPorts", "code": "    public void setPorts(int[] ports) {\n        this.ports = ports;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTarget", "code": "    public String getTarget() {\n        return target;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTarget", "code": "    public void setTarget(String target) {\n        this.target = target;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isPersistent", "code": "    public boolean isPersistent() {\n        return persistent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPersistent", "code": "    public void setPersistent(boolean persistent) {\n        this.persistent = persistent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isColors", "code": "    public boolean isColors() {\n        return colors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setColors", "code": "    public void setColors(boolean colors) {\n        this.colors = colors;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isOnNick", "code": "    public boolean isOnNick() {\n        return onNick;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOnNick", "code": "    public void setOnNick(boolean onNick) {\n        this.onNick = onNick;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isOnQuit", "code": "    public boolean isOnQuit() {\n        return onQuit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOnQuit", "code": "    public void setOnQuit(boolean onQuit) {\n        this.onQuit = onQuit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isOnJoin", "code": "    public boolean isOnJoin() {\n        return onJoin;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOnJoin", "code": "    public void setOnJoin(boolean onJoin) {\n        this.onJoin = onJoin;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isOnKick", "code": "    public boolean isOnKick() {\n        return onKick;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOnKick", "code": "    public void setOnKick(boolean onKick) {\n        this.onKick = onKick;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isOnMode", "code": "    public boolean isOnMode() {\n        return onMode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOnMode", "code": "    public void setOnMode(boolean onMode) {\n        this.onMode = onMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isOnPart", "code": "    public boolean isOnPart() {\n        return onPart;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOnPart", "code": "    public void setOnPart(boolean onPart) {\n        this.onPart = onPart;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isOnTopic", "code": "    public boolean isOnTopic() {\n        return onTopic;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOnTopic", "code": "    public void setOnTopic(boolean onTopic) {\n        this.onTopic = onTopic;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isOnPrivmsg", "code": "    public boolean isOnPrivmsg() {\n        return onPrivmsg;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOnPrivmsg", "code": "    public void setOnPrivmsg(boolean onPrivmsg) {\n        this.onPrivmsg = onPrivmsg;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"IrcConfiguration{\" + \"target='\" + target + '\\'' + \", hostname='\" + hostname + '\\'' + \", password='\" + password + '\\'' + \", nickname='\" + nickname + '\\'' + \", realname='\" + realname\n               + '\\'' + \", username='\" + username + '\\'' + \", persistent=\" + persistent + \", colors=\" + colors + \", onNick=\" + onNick + \", onQuit=\" + onQuit + \", onJoin=\" + onJoin + \", onKick=\"\n               + onKick + \", onMode=\" + onMode + \", onPart=\" + onPart + \", onTopic=\" + onTopic + \", onPrivmsg=\" + onPrivmsg + \", ports=\" + ports + '}';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [14, 15], [14, 16], [16, 17], [17, 18], [17, 19], [19, 20], [20, 21], [20, 22], [22, 23], [23, 24], [23, 25], [25, 26], [26, 27], [26, 28], [28, 29], [29, 30], [29, 31], [31, 32], [32, 33], [32, 34], [34, 35], [35, 36], [35, 37], [37, 38], [37, 39], [39, 40], [40, 41], [40, 42], [42, 43], [42, 44], [44, 45], [45, 46], [45, 47], [47, 48], [47, 49], [49, 50], [50, 51], [50, 52], [52, 53], [52, 54], [54, 55], [55, 56], [55, 57], [57, 58], [57, 59], [59, 60], [60, 61], [60, 62], [62, 63], [62, 64], [64, 65], [65, 66], [65, 67], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 14], [16, 14], [17, 16], [18, 17], [19, 17], [20, 19], [21, 20], [22, 20], [23, 22], [24, 23], [25, 23], [26, 25], [27, 26], [28, 26], [29, 28], [30, 29], [31, 29], [32, 31], [33, 32], [34, 32], [35, 34], [36, 35], [37, 35], [38, 37], [39, 37], [40, 39], [41, 40], [42, 40], [43, 42], [44, 42], [45, 44], [46, 45], [47, 45], [48, 47], [49, 47], [50, 49], [51, 50], [52, 50], [53, 52], [54, 52], [55, 54], [56, 55], [57, 55], [58, 57], [59, 57], [60, 59], [61, 60], [62, 60], [63, 62], [64, 62], [65, 64], [66, 65], [67, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "IrcConfiguration", "code": "    public IrcConfiguration() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IrcConfiguration", "code": "    public IrcConfiguration(String hostname, String nickname, String displayname, String target) {\n        this.target = target;\n        this.hostname = hostname;\n        this.nickname = nickname;\n        this.username = nickname;\n        this.realname = displayname;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "IrcConfiguration", "code": "    public IrcConfiguration(String hostname, String username, String password, String nickname, String displayname, String target) {\n        this.target = target;\n        this.hostname = hostname;\n        this.username = username;\n        this.password = password;\n        this.nickname = nickname;\n        this.realname = displayname;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "xalan-2.6-7397", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/dom/NodeSortRecord.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.NodeSortRecord", "code": "public abstract class NodeSortRecord {\n    public static final int COMPARE_STRING     = 0;\n    public static final int COMPARE_NUMERIC    = 1;\n\n    public static final int COMPARE_ASCENDING  = 0;\n    public static final int COMPARE_DESCENDING = 1;\n\n    /**\n     * A reference to a collator. May be updated by subclass if the stylesheet\n     * specifies a different language (will be updated iff _locale is updated).\n     * @deprecated This field continues to exist for binary compatibility.\n     *             New code should not refer to it.\n     */\n    private static final Collator DEFAULT_COLLATOR = Collator.getInstance();\n\n    /**\n     * A reference to the first Collator\n     * @deprecated This field continues to exist for binary compatibility.\n     *             New code should not refer to it.\n     */\n    protected Collator _collator = DEFAULT_COLLATOR;\n    protected Collator[] _collators;\n\n    /**\n     * A locale field that might be set by an instance of a subclass.\n     * @deprecated This field continues to exist for binary compatibility.\n     *             New code should not refer to it.\n     */\n    protected Locale _locale;\n\n    protected CollatorFactory _collatorFactory;\n\n    protected SortSettings _settings;\n\n    private DOM    _dom = null;\n\n\n    /**\n     * This constructor is run by a call to ClassLoader in the\n     * makeNodeSortRecord method in the NodeSortRecordFactory class. Since we\n     * cannot pass any parameters to the constructor in that case we just set\n     * the default values here and wait for new values through initialize().\n     */ \n    public NodeSortRecord(int node) {\n\t_node = node;\n    }\n\n    public NodeSortRecord() {\n        this(0);\n    }\n\n    /**\n     * This method allows the caller to set the values that could not be passed\n     * to the default constructor.\n     */\n    public final void initialize(int node, int last, DOM dom,\n         SortSettings settings)\n        throws TransletException\n    {\n\t_dom = dom;\n\t_node = node;\n\t_last = last;\n        _settings = settings;\n\n        int levels = settings.getSortOrders().length;\n\t_values = new Object[levels];\n  \n        String colFactClassname = \n\t    System.getProperty(\"org.apache.xalan.xsltc.COLLATOR_FACTORY\");\n\n        if (colFactClassname != null) {\n            try {\n                Object candObj = ObjectFactory.findProviderClass(\n                    colFactClassname, ObjectFactory.findClassLoader(), true);\n                _collatorFactory = (CollatorFactory)candObj;\n            } catch (ClassNotFoundException e) {\n                throw new TransletException(e);\n            }\n            Locale[] locales = settings.getLocales();\n            _collators = new Collator[levels];\n            for (int i = 0; i < levels; i++){\n                _collators[i] = _collatorFactory.getCollator(locales[i]);\n            }\n            _collator = _collators[0];\n        } else {\n    \t    _collators = settings.getCollators();\n            _collator = _collators[0];\n        }\n    }\n\n    /**\n     * Returns the node for this sort object\n     */\n    public final int getNode() {\n\treturn _node;\n    }\n\n    /**\n     *\n     */\n    public final int compareDocOrder(NodeSortRecord other) {\n\treturn _node - other._node;\n    }\n\n    /**\n     * Get the string or numeric value of a specific level key for this sort\n     * element. The value is extracted from the DOM if it is not already in\n     * our sort key vector.\n     */\n    private final Comparable stringValue(int level) {\n    \tif (_scanned <= level) {\n            AbstractTranslet translet = _settings.getTranslet();\n            Locale[] locales = _settings.getLocales();\n            String[] caseOrder = _settings.getCaseOrders();\n\n    \t    final String str = extractValueFromDOM(_dom, _node, level,\n    \t\t\t\t\t\t   translet, _last);\n    \t    final Comparable key =\n                StringComparable.getComparator(str, locales[level],\n                                               _collators[level],\n                                               caseOrder[level]);\n    \t    _values[_scanned++] = key;\n    \t    return(key);\n    \t}\n    \treturn((Comparable)_values[level]);\n  }\n    \n    private final Double numericValue(int level) {\n\tif (_scanned <= level) {\n            AbstractTranslet translet = _settings.getTranslet();\n\n\t    final String str = extractValueFromDOM(_dom, _node, level,\n\t\t\t\t\t\t   translet, _last);\n\t    Double num;\n\t    try {\n\t\tnum = new Double(str);\n\t    }\n\t    catch (NumberFormatException e) {\n\t\tnum = new Double(Double.NEGATIVE_INFINITY);\n\t    }\n\t    _values[_scanned++] = num;\n\t    return(num);\n\t}\n\treturn((Double)_values[level]);\n    }\n\n    /**\n     * Compare this sort element to another. The first level is checked first,\n     * and we proceed to the next level only if the first level keys are\n     * identical (and so the key values may not even be extracted from the DOM)\n     *\n     * !!!!MUST OPTIMISE - THIS IS REALLY, REALLY SLOW!!!!\n     */\n    public int compareTo(NodeSortRecord other) {\n\tint cmp, level;\n        int[] sortOrder = _settings.getSortOrders();\n        int levels = _settings.getSortOrders().length;\n        int[] compareTypes = _settings.getTypes();\n\n\tfor (level = 0; level < levels; level++) {\n\t    if (compareTypes[level] == COMPARE_NUMERIC) {\n\t\tfinal Double our = numericValue(level);\n\t\tfinal Double their = other.numericValue(level);\n\t\tcmp = our.compareTo(their);\n\t    }\n\t    else {\n\t\tfinal Comparable our = stringValue(level);\n\t\tfinal Comparable their = other.stringValue(level);\n\t\tcmp = our.compareTo(their);\n\t    }\n\t    \n\t    if (cmp != 0) {\n\t\treturn sortOrder[level] == COMPARE_DESCENDING ? 0 - cmp : cmp;\n\t    }\n\t}\n\treturn(_node - other._node);\n    }\n\n    /**\n     * Returns the array of Collators used for text comparisons in this object.\n     * May be overridden by inheriting classes\n     */\n    public Collator[] getCollator() {\n\treturn _collators;\n    }\n\n    /**\n     * Extract the sort value for a level of this key.\n     */\n    public abstract String extractValueFromDOM(DOM dom, int current, int level,\n\t\t\t\t\t       AbstractTranslet translet,\n\t\t\t\t\t       int last);", "functions": [{"function_name": "initialize", "code": "    public final void initialize(int node, int last, DOM dom,\n         SortSettings settings)\n        throws TransletException\n    {\n\t_dom = dom;\n\t_node = node;\n\t_last = last;\n        _settings = settings;\n\n        int levels = settings.getSortOrders().length;\n\t_values = new Object[levels];\n  \n        String colFactClassname = \n\t    System.getProperty(\"org.apache.xalan.xsltc.COLLATOR_FACTORY\");\n\n        if (colFactClassname != null) {\n            try {\n                Object candObj = ObjectFactory.findProviderClass(\n                    colFactClassname, ObjectFactory.findClassLoader(), true);\n                _collatorFactory = (CollatorFactory)candObj;\n            } catch (ClassNotFoundException e) {\n                throw new TransletException(e);\n            }\n            Locale[] locales = settings.getLocales();\n            _collators = new Collator[levels];\n            for (int i = 0; i < levels; i++){\n                _collators[i] = _collatorFactory.getCollator(locales[i]);\n            }\n            _collator = _collators[0];\n        } else {\n    \t    _collators = settings.getCollators();\n            _collator = _collators[0];", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [1, 15], [1, 16], [8, 17], [2, 18], [3, 19], [1, 20], [1, 21], [1, 22], [14, 23], [1, 24], [16, 25], [16, 26], [18, 27], [21, 28], [15, 29], [25, 30], [16, 31], [14, 32], [14, 33], [30, 34], [26, 35], [20, 36], [22, 37], [32, 38], [35, 39], [35, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 1], [16, 1], [17, 8], [18, 2], [19, 3], [20, 1], [21, 1], [22, 1], [23, 14], [24, 1], [25, 16], [26, 16], [27, 18], [28, 21], [29, 15], [30, 25], [31, 16], [32, 14], [33, 14], [34, 30], [35, 26], [36, 20], [37, 22], [38, 32], [39, 35], [40, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "getNode", "code": "    public final int getNode() {\n\treturn _node;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compareDocOrder", "code": "    public final int compareDocOrder(NodeSortRecord other) {\n\treturn _node - other._node;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "stringValue", "code": "    private final Comparable stringValue(int level) {\n    \tif (_scanned <= level) {\n            AbstractTranslet translet = _settings.getTranslet();\n            Locale[] locales = _settings.getLocales();\n            String[] caseOrder = _settings.getCaseOrders();\n\n    \t    final String str = extractValueFromDOM(_dom, _node, level,\n    \t\t\t\t\t\t   translet, _last);\n    \t    final Comparable key =\n                StringComparable.getComparator(str, locales[level],\n                                               _collators[level],\n                                               caseOrder[level]);\n    \t    _values[_scanned++] = key;\n    \t    return(key);\n    \t}\n    \treturn((Comparable)_values[level]);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [7, 13], [8, 14], [9, 15], [10, 16], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 7], [14, 8], [15, 9], [16, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "numericValue", "code": "    private final Double numericValue(int level) {\n\tif (_scanned <= level) {\n            AbstractTranslet translet = _settings.getTranslet();\n\n\t    final String str = extractValueFromDOM(_dom, _node, level,\n\t\t\t\t\t\t   translet, _last);\n\t    Double num;\n\t    try {\n\t\tnum = new Double(str);\n\t    }\n\t    catch (NumberFormatException e) {\n\t\tnum = new Double(Double.NEGATIVE_INFINITY);\n\t    }\n\t    _values[_scanned++] = num;\n\t    return(num);\n\t}\n\treturn((Double)_values[level]);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "CATCH", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [6, 11], [6, 12], [8, 13], [9, 14], [11, 15], [12, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 6], [12, 6], [13, 8], [14, 9], [15, 11], [16, 12], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "compareTo", "code": "    public int compareTo(NodeSortRecord other) {\n\tint cmp, level;\n        int[] sortOrder = _settings.getSortOrders();\n        int levels = _settings.getSortOrders().length;\n        int[] compareTypes = _settings.getTypes();\n\n\tfor (level = 0; level < levels; level++) {\n\t    if (compareTypes[level] == COMPARE_NUMERIC) {\n\t\tfinal Double our = numericValue(level);\n\t\tfinal Double their = other.numericValue(level);\n\t\tcmp = our.compareTo(their);\n\t    }\n\t    else {\n\t\tfinal Comparable our = stringValue(level);\n\t\tfinal Comparable their = other.stringValue(level);\n\t\tcmp = our.compareTo(their);\n\t    }\n\t    \n\t    if (cmp != 0) {\n\t\treturn sortOrder[level] == COMPARE_DESCENDING ? 0 - cmp : cmp;\n\t    }\n\t}\n\treturn(_node - other._node);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "COND_EXPR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [10, 13], [3, 14], [4, 15], [5, 16], [11, 17], [12, 18], [11, 19], [17, 20], [12, 21], [12, 22], [12, 23], [12, 24], [19, 25], [12, 26], [12, 27], [25, 28], [25, 29], [26, 30], [21, 31], [22, 32], [27, 33], [23, 34], [24, 35], [28, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 10], [14, 3], [15, 4], [16, 5], [17, 11], [18, 12], [19, 11], [20, 17], [21, 12], [22, 12], [23, 12], [24, 12], [25, 19], [26, 12], [27, 12], [28, 25], [29, 25], [30, 26], [31, 21], [32, 22], [33, 27], [34, 23], [35, 24], [36, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getCollator", "code": "    public Collator[] getCollator() {\n\treturn _collators;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "extractValueFromDOM", "code": "    public abstract String extractValueFromDOM(DOM dom, int current, int level,\n\t\t\t\t\t       AbstractTranslet translet,\n\t\t\t\t\t       int last);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "NodeSortRecord", "code": "    public NodeSortRecord(int node) {\n\t_node = node;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "NodeSortRecord", "code": "    public NodeSortRecord() {\n        this(0);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-3.0-6178", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/DrawingRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DrawingRecord", "code": "public class DrawingRecord extends Record\n{\n    public static final short sid = 0xEC;\n\n    private byte[] recordData;\n\n    public DrawingRecord()\n    {\n    }\n\n    public DrawingRecord( RecordInputStream in )\n    {\n        super( in );\n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a MSODRAWING record\");\n        }\n    }\n\n    protected void fillFields( RecordInputStream in )\n    {\n      recordData = in.readRemainder();\n    }\n\n    public void processContinueRecord( byte[] record )\n    {\n        byte[] newBuffer = new byte[ recordData.length + record.length ];\n        System.arraycopy( recordData, 0, newBuffer, 0, recordData.length );\n        System.arraycopy( record, 0, newBuffer, recordData.length, record.length);\n        recordData = newBuffer;\n    }\n\n    public int serialize( int offset, byte[] data )\n    {\n        if (recordData == null)\n        {\n            recordData = new byte[ 0 ];\n        }\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) (recordData.length));\n        if (recordData.length > 0)\n        {\n            System.arraycopy(recordData, 0, data, 4 + offset, recordData.length);\n        }\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        int retval = 4;\n\n        if (recordData != null)\n        {\n            retval += recordData.length;\n        }\n        return retval;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public byte[] getData()\n    {\n        return recordData;\n    }\n\n    public void setData( byte[] thedata )\n    {\n        this.recordData = thedata;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a MSODRAWING record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields( RecordInputStream in )\n    {\n      recordData = in.readRemainder();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "processContinueRecord", "code": "    public void processContinueRecord( byte[] record )\n    {\n        byte[] newBuffer = new byte[ recordData.length + record.length ];\n        System.arraycopy( recordData, 0, newBuffer, 0, recordData.length );\n        System.arraycopy( record, 0, newBuffer, recordData.length, record.length);\n        recordData = newBuffer;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [5, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 5], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data )\n    {\n        if (recordData == null)\n        {\n            recordData = new byte[ 0 ];\n        }\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) (recordData.length));\n        if (recordData.length > 0)\n        {\n            System.arraycopy(recordData, 0, data, 4 + offset, recordData.length);\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [3, 10], [7, 11], [8, 12], [9, 13], [10, 14], [2, 15], [12, 16], [13, 17], [3, 18], [15, 19], [15, 20], [19, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 3], [11, 7], [12, 8], [13, 9], [14, 10], [15, 2], [16, 12], [17, 13], [18, 3], [19, 15], [20, 15], [21, 19], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        int retval = 4;\n\n        if (recordData != null)\n        {\n            retval += recordData.length;\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getData", "code": "    public byte[] getData()\n    {\n        return recordData;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setData", "code": "    public void setData( byte[] thedata )\n    {\n        this.recordData = thedata;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DrawingRecord", "code": "    public DrawingRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DrawingRecord", "code": "    public DrawingRecord( RecordInputStream in )\n    {\n        super( in );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "jedit-4.1-4147", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/syntax/Token.java", "language": "java", "name": "org.gjt.sp.jedit.syntax.Token", "code": "public class Token\n{\n\t//{{{ stringToToken() method\n\t/**\n\t * Converts a token type string to a token type constant.\n\t * @param value The token type\n\t * @since jEdit 4.1pre1\n\t */\n\tpublic static byte stringToToken(String value)\n\t{\n\t\tvalue = value.intern();\n\n\t\tif (value == \"NULL\")\n\t\t\treturn Token.NULL;\n\t\telse if (value == \"COMMENT1\")\n\t\t\treturn Token.COMMENT1;\n\t\telse if (value == \"COMMENT2\")\n\t\t\treturn Token.COMMENT2;\n\t\telse if (value == \"LITERAL1\")\n\t\t\treturn Token.LITERAL1;\n\t\telse if (value == \"LITERAL2\")\n\t\t\treturn Token.LITERAL2;\n\t\telse if (value == \"LABEL\")\n\t\t\treturn Token.LABEL;\n\t\telse if (value == \"KEYWORD1\")\n\t\t\treturn Token.KEYWORD1;\n\t\telse if (value == \"KEYWORD2\")\n\t\t\treturn Token.KEYWORD2;\n\t\telse if (value == \"KEYWORD3\")\n\t\t\treturn Token.KEYWORD3;\n\t\telse if (value == \"FUNCTION\")\n\t\t\treturn Token.FUNCTION;\n\t\telse if (value == \"MARKUP\")\n\t\t\treturn Token.MARKUP;\n\t\telse if (value == \"OPERATOR\")\n\t\t\treturn Token.OPERATOR;\n\t\telse if (value == \"DIGIT\")\n\t\t\treturn Token.DIGIT;\n\t\telse if (value == \"INVALID\")\n\t\t\treturn Token.INVALID;\n\t\telse\n\t\t\treturn -1;\n\t} //}}}\n\n\t//{{{ Token types\n\tpublic static final byte NULL = 0;\n\tpublic static final byte COMMENT1 = 1;\n\tpublic static final byte COMMENT2 = 2;\n\tpublic static final byte LITERAL1 = 3;\n\tpublic static final byte LITERAL2 = 4;\n\tpublic static final byte LABEL = 5;\n\tpublic static final byte KEYWORD1 = 6;\n\tpublic static final byte KEYWORD2 = 7;\n\tpublic static final byte KEYWORD3 = 8;\n\tpublic static final byte FUNCTION = 9;\n\tpublic static final byte MARKUP = 10;\n\tpublic static final byte OPERATOR = 11;\n\tpublic static final byte DIGIT = 12;\n\tpublic static final byte INVALID = 13; //}}}\n\n\tpublic static final byte ID_COUNT = 14;\n\n\t// Special:\n\tpublic static final byte WHITESPACE = 125;\n\tpublic static final byte TAB = 126;\n\tpublic static final byte END = 127;\n\n\t//{{{ Instance variables\n\t/**\n\t * The id of this token.\n\t */\n\tpublic byte id;\n\n\t/**\n\t * The start offset of this token.\n\t */\n\tpublic int offset;\n\n\t/**\n\t * The length of this token.\n\t */\n\tpublic int length;\n\n\t/**\n\t * The rule set of this token.\n\t */\n\tpublic ParserRuleSet rules;\n\n\t/**\n\t * The next token in the linked list.\n\t */\n\tpublic Token next;\n\t//}}}\n\n\t//{{{ Token constructor\n\t/**\n\t * Creates a new token.\n\t * @param id The id of the token\n\t * @param offset The start offset of the token\n\t * @param length The length of the token\n\t * @param rules The parser rule set that generated this token\n\t */\n\tpublic Token(byte id, int offset, int length, ParserRuleSet rules)\n\t{\n\t\tthis.id = id;\n\t\tthis.offset = offset;\n\t\tthis.length = length;\n\t\tthis.rules = rules;\n\t} //}}}\n\n\t//{{{ toString() method\n\t/**\n\t * Returns a string representation of this token.\n\t */\n\tpublic String toString()\n\t{\n\t\treturn \"[id=\" + id + \",offset=\" + offset + \",length=\" + length + \"]\";", "functions": [{"function_name": "stringToToken", "code": "\tpublic static byte stringToToken(String value)\n\t{\n\t\tvalue = value.intern();\n\n\t\tif (value == \"NULL\")\n\t\t\treturn Token.NULL;\n\t\telse if (value == \"COMMENT1\")\n\t\t\treturn Token.COMMENT1;\n\t\telse if (value == \"COMMENT2\")\n\t\t\treturn Token.COMMENT2;\n\t\telse if (value == \"LITERAL1\")\n\t\t\treturn Token.LITERAL1;\n\t\telse if (value == \"LITERAL2\")\n\t\t\treturn Token.LITERAL2;\n\t\telse if (value == \"LABEL\")\n\t\t\treturn Token.LABEL;\n\t\telse if (value == \"KEYWORD1\")\n\t\t\treturn Token.KEYWORD1;\n\t\telse if (value == \"KEYWORD2\")\n\t\t\treturn Token.KEYWORD2;\n\t\telse if (value == \"KEYWORD3\")\n\t\t\treturn Token.KEYWORD3;\n\t\telse if (value == \"FUNCTION\")\n\t\t\treturn Token.FUNCTION;\n\t\telse if (value == \"MARKUP\")\n\t\t\treturn Token.MARKUP;\n\t\telse if (value == \"OPERATOR\")\n\t\t\treturn Token.OPERATOR;\n\t\telse if (value == \"DIGIT\")\n\t\t\treturn Token.DIGIT;\n\t\telse if (value == \"INVALID\")\n\t\t\treturn Token.INVALID;\n\t\telse\n\t\t\treturn -1;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "ASSIGN", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [0, 6], [3, 7], [3, 8], [3, 9], [5, 10], [6, 11], [7, 12], [7, 13], [7, 14], [9, 15], [12, 16], [12, 17], [12, 18], [14, 19], [16, 20], [16, 21], [16, 22], [18, 23], [20, 24], [20, 25], [20, 26], [22, 27], [24, 28], [24, 29], [24, 30], [26, 31], [28, 32], [28, 33], [28, 34], [30, 35], [32, 36], [32, 37], [32, 38], [34, 39], [36, 40], [36, 41], [36, 42], [38, 43], [40, 44], [40, 45], [40, 46], [42, 47], [44, 48], [44, 49], [44, 50], [46, 51], [48, 52], [48, 53], [48, 54], [50, 55], [52, 56], [52, 57], [52, 58], [54, 59], [56, 60], [58, 61], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 0], [7, 3], [8, 3], [9, 3], [10, 5], [11, 6], [12, 7], [13, 7], [14, 7], [15, 9], [16, 12], [17, 12], [18, 12], [19, 14], [20, 16], [21, 16], [22, 16], [23, 18], [24, 20], [25, 20], [26, 20], [27, 22], [28, 24], [29, 24], [30, 24], [31, 26], [32, 28], [33, 28], [34, 28], [35, 30], [36, 32], [37, 32], [38, 32], [39, 34], [40, 36], [41, 36], [42, 36], [43, 38], [44, 40], [45, 40], [46, 40], [47, 42], [48, 44], [49, 44], [50, 44], [51, 46], [52, 48], [53, 48], [54, 48], [55, 50], [56, 52], [57, 52], [58, 52], [59, 54], [60, 56], [61, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn \"[id=\" + id + \",offset=\" + offset + \",length=\" + length + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "Token", "code": "\tpublic Token(byte id, int offset, int length, ParserRuleSet rules)\n\t{\n\t\tthis.id = id;\n\t\tthis.offset = offset;\n\t\tthis.length = length;\n\t\tthis.rules = rules;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "poi-1.5-5205", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/ProtectionRev4Record.java", "language": "java", "name": "org.apache.poi.hssf.record.ProtectionRev4Record", "code": "public class ProtectionRev4Record\n    extends Record\n{\n    public final static short sid = 0x1af;\n    private short             field_1_protect;\n\n    public ProtectionRev4Record()\n    {\n    }\n\n    /**\n     * Constructs a ProtectionRev4 record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x1af or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public ProtectionRev4Record(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a ProtectionRev4 record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x1af or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the data\n     */\n\n    public ProtectionRev4Record(short id, short size, byte [] data,\n                                int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PROTECTION REV 4 RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_protect = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set whether the this is protected shared/tracked workbook or not\n     * @param protect  whether to protect the workbook or not\n     */\n\n    public void setProtect(boolean protect)\n    {\n        if (protect)\n        {\n            field_1_protect = 1;\n        }\n        else\n        {\n            field_1_protect = 0;\n        }\n    }\n\n    /**\n     * get whether the this is protected shared/tracked workbook or not\n     * @return whether to protect the workbook or not\n     */\n\n    public short getProtect()\n    {\n        return field_1_protect;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PROT4REV]\\n\");\n        buffer.append(\"    .rowheight      = \")\n            .append(Integer.toHexString(getProtect())).append(\"\\n\");\n        buffer.append(\"[/PROT4REV]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getProtect());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PROTECTION REV 4 RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_protect = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setProtect", "code": "    public void setProtect(boolean protect)\n    {\n        if (protect)\n        {\n            field_1_protect = 1;\n        }\n        else\n        {\n            field_1_protect = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getProtect", "code": "    public short getProtect()\n    {\n        return field_1_protect;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PROT4REV]\\n\");\n        buffer.append(\"    .rowheight      = \")\n            .append(Integer.toHexString(getProtect())).append(\"\\n\");\n        buffer.append(\"[/PROT4REV]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getProtect());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ProtectionRev4Record", "code": "    public ProtectionRev4Record()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ProtectionRev4Record", "code": "    public ProtectionRev4Record(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ProtectionRev4Record", "code": "    public ProtectionRev4Record(short id, short size, byte [] data,\n                                int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.7-8313", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/lib/ExsltStrings.java", "language": "java", "name": "org.apache.xalan.lib.ExsltStrings", "code": "public class ExsltStrings extends ExsltBase\n{\n  /**\n   * The str:align function aligns a string within another string. \n   * <p>\n   * The first argument gives the target string to be aligned. The second argument gives \n   * the padding string within which it is to be aligned. \n   * <p>\n   * If the target string is shorter than the padding string then a range of characters \n   * in the padding string are repaced with those in the target string. Which characters \n   * are replaced depends on the value of the third argument, which gives the type of \n   * alignment. It can be one of 'left', 'right' or 'center'. If no third argument is \n   * given or if it is not one of these values, then it defaults to left alignment. \n   * <p>\n   * With left alignment, the range of characters replaced by the target string begins \n   * with the first character in the padding string. With right alignment, the range of \n   * characters replaced by the target string ends with the last character in the padding \n   * string. With center alignment, the range of characters replaced by the target string \n   * is in the middle of the padding string, such that either the number of unreplaced \n   * characters on either side of the range is the same or there is one less on the left \n   * than there is on the right. \n   * <p>\n   * If the target string is longer than the padding string, then it is truncated to be \n   * the same length as the padding string and returned.\n   *\n   * @param targetStr The target string\n   * @param paddingStr The padding string\n   * @param type The type of alignment\n   * \n   * @return The string after alignment\n   */\n  public static String align(String targetStr, String paddingStr, String type)\n  {\n    if (targetStr.length() >= paddingStr.length())\n      return targetStr.substring(0, paddingStr.length());\n    \n    if (type.equals(\"right\"))\n    {\n      return paddingStr.substring(0, paddingStr.length() - targetStr.length()) + targetStr;\n    }\n    else if (type.equals(\"center\"))\n    {\n      int startIndex = (paddingStr.length() - targetStr.length()) / 2;\n      return paddingStr.substring(0, startIndex) + targetStr + paddingStr.substring(startIndex + targetStr.length());\n    }\n    else\n    {\n      return targetStr + paddingStr.substring(targetStr.length());\n    }    \n  }\n\n  /**\n   * See above\n   */\n  public static String align(String targetStr, String paddingStr)\n  {\n    return align(targetStr, paddingStr, \"left\");\n  }\n  \n  /**\n   * The str:concat function takes a node set and returns the concatenation of the \n   * string values of the nodes in that node set. If the node set is empty, it returns \n   * an empty string.\n   *\n   * @param nl A node set\n   * @return The concatenation of the string values of the nodes in that node set\n   */\n  public static String concat(NodeList nl)\n  {\n    StringBuffer sb = new StringBuffer();\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node node = nl.item(i);\n      String value = toString(node);\n      \n      if (value != null && value.length() > 0)\n        sb.append(value);\n    }\n    \n    return sb.toString();\n  }\n    \n  /**\n   * The str:padding function creates a padding string of a certain length. \n   * The first argument gives the length of the padding string to be created. \n   * The second argument gives a string to be used to create the padding. This \n   * string is repeated as many times as is necessary to create a string of the \n   * length specified by the first argument; if the string is more than a character \n   * long, it may have to be truncated to produce the required length. If no second \n   * argument is specified, it defaults to a space (' '). If the second argument is \n   * an empty string, str:padding returns an empty string.\n   *\n   * @param length The length of the padding string to be created\n   * @param pattern The string to be used as pattern\n   *\n   * @return A padding string of the given length\n   */\n  public static String padding(double length, String pattern)\n  {\n    if (pattern == null || pattern.length() == 0)\n      return \"\";\n    \n    StringBuffer sb = new StringBuffer();\n    int len = (int)length;\n    int numAdded = 0;\n    int index = 0;\n    while (numAdded < len)\n    {\n      if (index == pattern.length())\n        index = 0;\n        \n      sb.append(pattern.charAt(index));\n      index++;\n      numAdded++;\n    }\n  \n    return sb.toString();\n  }\n\n  /**\n   * See above\n   */\n  public static String padding(double length)\n  {\n    return padding(length, \" \");\n  }\n    \n  /**\n   * The str:split function splits up a string and returns a node set of token \n   * elements, each containing one token from the string. \n   * <p>\n   * The first argument is the string to be split. The second argument is a pattern \n   * string. The string given by the first argument is split at any occurrence of \n   * this pattern. For example: \n   * <pre>\n   * str:split('a, simple, list', ', ') gives the node set consisting of: \n   *\n   * <token>a</token>\n   * <token>simple</token>\n   * <token>list</token>\n   * </pre>\n   * If the second argument is omitted, the default is the string '&#x20;' (i.e. a space).\n   *\n   * @param str The string to be split\n   * @param pattern The pattern\n   *\n   * @return A node set of split tokens\n   */\n  public static NodeList split(String str, String pattern)\n  {\n\n    \n    NodeSet resultSet = new NodeSet();\n    resultSet.setShouldCacheNodes(true);\n    \n    boolean done = false;\n    int fromIndex = 0;\n    int matchIndex = 0;\n    String token = null;\n    \n    while (!done && fromIndex < str.length())\n    {\n      matchIndex = str.indexOf(pattern, fromIndex);\n      if (matchIndex >= 0)\n      {\n\ttoken = str.substring(fromIndex, matchIndex);\n\tfromIndex = matchIndex + pattern.length();\n      }\n      else\n      {\n        done = true;\n        token = str.substring(fromIndex);\n      }\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        Element element = doc.createElement(\"token\");\n        Text text = doc.createTextNode(token);\n        element.appendChild(text);\n        resultSet.addNode(element);      \n      }\n    }\n    \n    return resultSet;\n  }\n  \n  /**\n   * See above\n   */\n  public static NodeList split(String str)\n  {\n    return split(str, \" \");\n  }\n\n  /**\n   * The str:tokenize function splits up a string and returns a node set of token \n   * elements, each containing one token from the string. \n   * <p>\n   * The first argument is the string to be tokenized. The second argument is a \n   * string consisting of a number of characters. Each character in this string is \n   * taken as a delimiting character. The string given by the first argument is split \n   * at any occurrence of any of these characters. For example: \n   * <pre>\n   * str:tokenize('2001-06-03T11:40:23', '-T:') gives the node set consisting of: \n   *\n   * <token>2001</token>\n   * <token>06</token>\n   * <token>03</token>\n   * <token>11</token>\n   * <token>40</token>\n   * <token>23</token>\n   * </pre>\n   * If the second argument is omitted, the default is the string '&#x9;&#xA;&#xD;&#x20;' \n   * (i.e. whitespace characters). \n   * <p>\n   * If the second argument is an empty string, the function returns a set of token \n   * elements, each of which holds a single character.\n   * <p>\n   * Note: This one is different from the tokenize extension function in the Xalan\n   * namespace. The one in Xalan returns a set of Text nodes, while this one wraps\n   * the Text nodes inside the token Element nodes.\n   *\n   * @param toTokenize The string to be tokenized\n   * @param delims The delimiter string\n   *\n   * @return A node set of split token elements\n   */\n  public static NodeList tokenize(String toTokenize, String delims)\n  {\n\n\n    NodeSet resultSet = new NodeSet();\n    \n    if (delims != null && delims.length() > 0)\n    {\n      StringTokenizer lTokenizer = new StringTokenizer(toTokenize, delims);\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        while (lTokenizer.hasMoreTokens())\n        {\n          Element element = doc.createElement(\"token\");\n          element.appendChild(doc.createTextNode(lTokenizer.nextToken()));\n          resultSet.addNode(element);      \n        }\n      }\n    }\n    else\n    {\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        for (int i = 0; i < toTokenize.length(); i++)\n        {\n          Element element = doc.createElement(\"token\");\n          element.appendChild(doc.createTextNode(toTokenize.substring(i, i+1)));\n          resultSet.addNode(element);              \n        }\n      }\n    }\n\n    return resultSet;\n  }\n\n  /**\n   * See above\n   */\n  public static NodeList tokenize(String toTokenize)\n  {\n    return tokenize(toTokenize, \" \\t\\n\\r\");\n  }\n    /**\n     * This class is not loaded until first referenced (see Java Language\n     * Specification by Gosling/Joy/Steele, section 12.4.1)\n     *\n     * The static members are created when this class is first referenced, as a\n     * lazy initialization not needing checking against null or any\n     * synchronization.\n     *\n     */\n    private static class DocumentHolder \n    {\n        private static final Document m_doc;", "functions": [{"function_name": "align", "code": "  public static String align(String targetStr, String paddingStr, String type)\n  {\n    if (targetStr.length() >= paddingStr.length())\n      return targetStr.substring(0, paddingStr.length());\n    \n    if (type.equals(\"right\"))\n    {\n      return paddingStr.substring(0, paddingStr.length() - targetStr.length()) + targetStr;\n    }\n    else if (type.equals(\"center\"))\n    {\n      int startIndex = (paddingStr.length() - targetStr.length()) / 2;\n      return paddingStr.substring(0, startIndex) + targetStr + paddingStr.substring(startIndex + targetStr.length());\n    }\n    else\n    {\n      return targetStr + paddingStr.substring(targetStr.length());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [2, 9], [6, 10], [1, 11], [7, 12], [8, 13], [9, 14], [9, 15], [6, 16], [6, 17], [6, 18], [10, 19], [11, 20], [13, 21], [13, 22], [16, 23], [17, 24], [20, 25], [23, 26], [24, 27], [24, 28], [18, 29], [25, 30], [25, 31], [26, 32], [27, 33], [28, 34], [29, 35], [29, 36], [30, 37], [30, 38], [33, 39], [34, 40], [36, 41], [36, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 2], [10, 6], [11, 1], [12, 7], [13, 8], [14, 9], [15, 9], [16, 6], [17, 6], [18, 6], [19, 10], [20, 11], [21, 13], [22, 13], [23, 16], [24, 17], [25, 20], [26, 23], [27, 24], [28, 24], [29, 18], [30, 25], [31, 25], [32, 26], [33, 27], [34, 28], [35, 29], [36, 29], [37, 30], [38, 30], [39, 33], [40, 34], [41, 36], [42, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "align", "code": "  public static String align(String targetStr, String paddingStr)\n  {\n    return align(targetStr, paddingStr, \"left\");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "concat", "code": "  public static String concat(NodeList nl)\n  {\n    StringBuffer sb = new StringBuffer();\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node node = nl.item(i);\n      String value = toString(node);\n      \n      if (value != null && value.length() > 0)\n        sb.append(value);\n    }\n    \n    return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [3, 11], [7, 12], [2, 13], [7, 14], [12, 15], [12, 16], [8, 17], [9, 18], [15, 19], [15, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 3], [12, 7], [13, 2], [14, 7], [15, 12], [16, 12], [17, 8], [18, 9], [19, 15], [20, 15], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "padding", "code": "  public static String padding(double length, String pattern)\n  {\n    if (pattern == null || pattern.length() == 0)\n      return \"\";\n    \n    StringBuffer sb = new StringBuffer();\n    int len = (int)length;\n    int numAdded = 0;\n    int index = 0;\n    while (numAdded < len)\n    {\n      if (index == pattern.length())\n        index = 0;\n        \n      sb.append(pattern.charAt(index));\n      index++;\n      numAdded++;\n    }\n  \n    return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [7, 12], [7, 13], [2, 14], [3, 15], [4, 16], [6, 17], [12, 18], [13, 19], [13, 20], [2, 21], [14, 22], [19, 23], [19, 24], [20, 25], [21, 26], [14, 27], [22, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 7], [13, 7], [14, 2], [15, 3], [16, 4], [17, 6], [18, 12], [19, 13], [20, 13], [21, 2], [22, 14], [23, 19], [24, 19], [25, 20], [26, 21], [27, 14], [28, 22], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "padding", "code": "  public static String padding(double length)\n  {\n    return padding(length, \" \");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "split", "code": "  public static NodeList split(String str, String pattern)\n  {\n\n    \n    NodeSet resultSet = new NodeSet();\n    resultSet.setShouldCacheNodes(true);\n    \n    boolean done = false;\n    int fromIndex = 0;\n    int matchIndex = 0;\n    String token = null;\n    \n    while (!done && fromIndex < str.length())\n    {\n      matchIndex = str.indexOf(pattern, fromIndex);\n      if (matchIndex >= 0)\n      {\n\ttoken = str.substring(fromIndex, matchIndex);\n\tfromIndex = matchIndex + pattern.length();\n      }\n      else\n      {\n        done = true;\n        token = str.substring(fromIndex);\n      }\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        Element element = doc.createElement(\"token\");\n        Text text = doc.createTextNode(token);\n        element.appendChild(text);\n        resultSet.addNode(element);      \n      }\n    }\n    \n    return resultSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [2, 12], [2, 13], [10, 14], [3, 15], [4, 16], [5, 17], [6, 18], [11, 19], [7, 20], [2, 21], [2, 22], [13, 23], [2, 24], [14, 25], [2, 26], [2, 27], [23, 28], [24, 29], [21, 30], [22, 31], [13, 32], [13, 33], [13, 34], [13, 35], [31, 36], [32, 37], [33, 38], [34, 39], [35, 40], [39, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 2], [13, 2], [14, 10], [15, 3], [16, 4], [17, 5], [18, 6], [19, 11], [20, 7], [21, 2], [22, 2], [23, 13], [24, 2], [25, 14], [26, 2], [27, 2], [28, 23], [29, 24], [30, 21], [31, 22], [32, 13], [33, 13], [34, 13], [35, 13], [36, 31], [37, 32], [38, 33], [39, 34], [40, 35], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "split", "code": "  public static NodeList split(String str)\n  {\n    return split(str, \" \");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "tokenize", "code": "  public static NodeList tokenize(String toTokenize, String delims)\n  {\n\n\n    NodeSet resultSet = new NodeSet();\n    \n    if (delims != null && delims.length() > 0)\n    {\n      StringTokenizer lTokenizer = new StringTokenizer(toTokenize, delims);\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        while (lTokenizer.hasMoreTokens())\n        {\n          Element element = doc.createElement(\"token\");\n          element.appendChild(doc.createTextNode(lTokenizer.nextToken()));\n          resultSet.addNode(element);      \n        }\n      }\n    }\n    else\n    {\n\n      Document doc = DocumentHolder.m_doc;\n      synchronized (doc)\n      {\n        for (int i = 0; i < toTokenize.length(); i++)\n        {\n          Element element = doc.createElement(\"token\");\n          element.appendChild(doc.createTextNode(toTokenize.substring(i, i+1)));\n          resultSet.addNode(element);              \n        }\n      }\n    }\n\n    return resultSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [6, 11], [3, 12], [2, 13], [2, 14], [10, 15], [10, 16], [11, 17], [13, 18], [14, 19], [9, 20], [13, 21], [18, 22], [14, 23], [13, 24], [13, 25], [13, 26], [14, 27], [14, 28], [25, 29], [21, 30], [28, 31], [23, 32], [29, 33], [30, 34], [31, 35], [32, 36], [33, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 6], [12, 3], [13, 2], [14, 2], [15, 10], [16, 10], [17, 11], [18, 13], [19, 14], [20, 9], [21, 13], [22, 18], [23, 14], [24, 13], [25, 13], [26, 13], [27, 14], [28, 14], [29, 25], [30, 21], [31, 28], [32, 23], [33, 29], [34, 30], [35, 31], [36, 32], [37, 33], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "tokenize", "code": "  public static NodeList tokenize(String toTokenize)\n  {\n    return tokenize(toTokenize, \" \\t\\n\\r\");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.5-460", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.cvslib.CvsTagDiff", "code": "public class CvsTagDiff extends AbstractCvsTask {\n\n    /**\n     * Token to identify a new file in the rdiff log\n     */\n    static final String FILE_IS_NEW = \" is new; current revision \";\n\n    /**\n     * Token to identify a modified file in the rdiff log\n     */\n    static final String FILE_HAS_CHANGED = \" changed from revision \";\n\n    /**\n     * Token to identify a removed file in the rdiff log\n     */\n    static final String FILE_WAS_REMOVED = \" is removed\";\n\n    /**\n     * The cvs package/module to analyse\n     */\n    private String m_package;\n\n    /**\n     * The earliest tag from which diffs are to be included in the report.\n     */\n    private String m_startTag;\n\n    /**\n     * The latest tag from which diffs are to be included in the report.\n     */\n    private String m_endTag;\n\n    /**\n     * The earliest date from which diffs are to be included in the report.\n     */\n    private String m_startDate;\n\n    /**\n     * The latest date from which diffs are to be included in the report.\n     */\n    private String m_endDate;\n\n    /**\n     * The file in which to write the diff report.\n     */\n    private File m_destfile;\n\n    /**\n     * Used to create the temp file for cvs log\n     */\n    private FileUtils m_fileUtils = FileUtils.newFileUtils();\n\n    /**\n     * The package/module to analyze.\n     */\n    public void setPackage(String p) {\n        m_package = p;\n    }\n\n    /**\n     * Set the start tag.\n     *\n     * @param s the start tag.\n     */\n    public void setStartTag(String s) {\n        m_startTag = s;\n    }\n\n    /**\n     * Set the start date.\n     *\n     * @param s the start date.\n     */\n    public void setStartDate(String s) {\n        m_startDate = s;\n    }\n\n    /**\n     * Set the end tag.\n     *\n     * @param s the end tag.\n     */\n    public void setEndTag(String s) {\n        m_endTag = s;\n    }\n\n    /**\n     * Set the end date.\n     *\n     * @param s the end date.\n     */\n    public void setEndDate(String s) {\n        m_endDate = s;\n    }\n\n    /**\n     * Set the output file for the diff.\n     *\n     * @param f the output file for the diff.\n     */\n    public void setDestFile(File f) {\n        m_destfile = f;\n    }\n\n    /**\n     * Execute task.\n     *\n     * @exception BuildException if an error occurs\n     */\n    public void execute() throws BuildException {\n        validate();\n\n        String rdiff = \"rdiff -s \" +\n            (m_startTag != null ? (\"-r \" + m_startTag) : (\"-D \" + m_startDate))\n            + \" \"\n            + (m_endTag != null ? (\"-r \" + m_endTag) : (\"-D \" + m_endDate))\n            + \" \" + m_package;\n        log(\"Cvs command is \" + rdiff, Project.MSG_VERBOSE);\n        setCommand(rdiff);\n\n        File tmpFile = null;\n        try {\n            tmpFile = m_fileUtils.createTempFile(\"cvstagdiff\", \".log\", null);\n            setOutput(tmpFile);\n\n            super.execute();\n\n            CvsTagEntry[] entries = parseRDiff(tmpFile);\n\n            writeTagDiff(entries);\n\n        } finally {\n            if (tmpFile != null) {\n                tmpFile.delete();\n            }\n        }\n    }\n\n    /**\n     * Parse the tmpFile and return and array of CvsTagEntry to be\n     * written in the output.\n     *\n     * @param tmpFile the File containing the output of the cvs rdiff command\n     * @return the entries in the output\n     * @exception BuildException if an error occurs\n     */\n    private CvsTagEntry[] parseRDiff(File tmpFile) throws BuildException {\n        BufferedReader reader = null;\n\n        try {\n            reader = new BufferedReader(new FileReader(tmpFile));\n\n\n            int headerLength = 5 + m_package.length() + 1;\n            Vector entries = new Vector();\n\n            String line = reader.readLine();\n            int index;\n            CvsTagEntry entry = null;\n\n            while (null != line) {\n                line = line.substring(headerLength);\n\n                if ((index = line.indexOf(FILE_IS_NEW)) != -1) {\n                    String filename = line.substring(0, index);\n                    String rev = line.substring(index + FILE_IS_NEW.length());\n\n                    entries.addElement(entry = new CvsTagEntry(filename, rev));\n                    log(entry.toString(), Project.MSG_VERBOSE);\n                } else if ((index = line.indexOf(FILE_HAS_CHANGED)) != -1) {\n                    String filename = line.substring(0, index);\n                    int revSeparator = line.indexOf(\" to \", index);\n                    String prevRevision =\n                        line.substring(index + FILE_HAS_CHANGED.length(),\n                                       revSeparator);\n                    String revision = line.substring(revSeparator + 4);\n\n                    entries.addElement(entry = new CvsTagEntry(filename,\n                                                               revision,\n                                                               prevRevision));\n                    log(entry.toString(), Project.MSG_VERBOSE);\n                } else if ((index = line.indexOf(FILE_WAS_REMOVED)) != -1) {\n                    String filename = line.substring(0, index);\n\n                    entries.addElement(entry = new CvsTagEntry(filename));\n                    log(entry.toString(), Project.MSG_VERBOSE);\n                }\n                line = reader.readLine();\n            }\n\n            CvsTagEntry[] array = new CvsTagEntry[entries.size()];\n            entries.copyInto(array);\n\n            return array;\n        } catch (IOException e) {\n            throw new BuildException(\"Error in parsing\", e);\n        } finally {\n            if (reader != null) {\n                try {\n                    reader.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n    }\n\n    /**\n     * Write the rdiff log.\n     *\n     * @param entries a <code>CvsTagEntry[]</code> value\n     * @exception BuildException if an error occurs\n     */\n    private void writeTagDiff(CvsTagEntry[] entries) throws BuildException {\n        FileOutputStream output = null;\n        try {\n            output = new FileOutputStream(m_destfile);\n            PrintWriter writer = new PrintWriter(\n                                     new OutputStreamWriter(output, \"UTF-8\"));\n            writer.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n            writer.print(\"<tagdiff \");\n            if (m_startTag != null) {\n                writer.print(\"startTag=\\\"\" + m_startTag + \"\\\" \");\n            } else {\n                writer.print(\"startDate=\\\"\" + m_startDate + \"\\\" \");\n            }\n            if (m_endTag != null) {\n                writer.print(\"endTag=\\\"\" + m_endTag + \"\\\" \");\n            } else {\n                writer.print(\"endDate=\\\"\" + m_endDate + \"\\\" \");\n            }\n            writer.println(\">\");\n            for (int i = 0, c = entries.length; i < c; i++) {\n                writeTagEntry(writer, entries[i]);\n            }\n            writer.println(\"</tagdiff>\");\n            writer.flush();\n            writer.close();\n        } catch (UnsupportedEncodingException uee) {\n            log(uee.toString(), Project.MSG_ERR);\n        } catch (IOException ioe) {\n            throw new BuildException(ioe.toString(), ioe);\n        } finally {\n            if (null != output) {\n                try {\n                    output.close();\n                } catch (IOException ioe) { }\n            }\n        }\n    }\n\n    /**\n     * Write a single entry to the given writer.\n     *\n     * @param writer a <code>PrintWriter</code> value\n     * @param entry a <code>CvsTagEntry</code> value\n     */\n    private void writeTagEntry(PrintWriter writer, CvsTagEntry entry) {\n        writer.println(\"\\t<entry>\");\n        writer.println(\"\\t\\t<file>\");\n        writer.println(\"\\t\\t\\t<name>\" + entry.getFile() + \"</name>\");\n        if (entry.getRevision() != null) {\n            writer.println(\"\\t\\t\\t<revision>\" + entry.getRevision()\n                           + \"</revision>\");\n        }\n        if (entry.getPreviousRevision() != null) {\n            writer.println(\"\\t\\t\\t<prevrevision>\"\n                           + entry.getPreviousRevision() + \"</prevrevision>\");\n        }\n        writer.println(\"\\t\\t</file>\");\n        writer.println(\"\\t</entry>\");\n    }\n\n    /**\n     * Validate the parameters specified for task.\n     *\n     * @exception BuildException if a parameter is not correctly set\n     */\n    private void validate() throws BuildException {\n        if (null == m_package) {\n            throw new BuildException(\"Package/module must be set.\");\n        }\n\n        if (null == m_destfile) {\n            throw new BuildException(\"Destfile must be set.\");\n        }\n\n        if (null == m_startTag && null == m_startDate) {\n            throw new BuildException(\"Start tag or start date must be set.\");\n        }\n\n        if (null != m_startTag && null != m_startDate) {\n            throw new BuildException(\"Only one of start tag and start date \"\n                                     + \"must be set.\");\n        }\n\n        if (null == m_endTag && null == m_endDate) {\n            throw new BuildException(\"End tag or end date must be set.\");\n        }\n\n        if (null != m_endTag && null != m_endDate) {\n            throw new BuildException(\"Only one of end tag and end date must \"\n                                     + \"be set.\");", "functions": [{"function_name": "setPackage", "code": "    public void setPackage(String p) {\n        m_package = p;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStartTag", "code": "    public void setStartTag(String s) {\n        m_startTag = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStartDate", "code": "    public void setStartDate(String s) {\n        m_startDate = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setEndTag", "code": "    public void setEndTag(String s) {\n        m_endTag = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setEndDate", "code": "    public void setEndDate(String s) {\n        m_endDate = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDestFile", "code": "    public void setDestFile(File f) {\n        m_destfile = f;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        validate();\n\n        String rdiff = \"rdiff -s \" +\n            (m_startTag != null ? (\"-r \" + m_startTag) : (\"-D \" + m_startDate))\n            + \" \"\n            + (m_endTag != null ? (\"-r \" + m_endTag) : (\"-D \" + m_endDate))\n            + \" \" + m_package;\n        log(\"Cvs command is \" + rdiff, Project.MSG_VERBOSE);\n        setCommand(rdiff);\n\n        File tmpFile = null;\n        try {\n            tmpFile = m_fileUtils.createTempFile(\"cvstagdiff\", \".log\", null);\n            setOutput(tmpFile);\n\n            super.execute();\n\n            CvsTagEntry[] entries = parseRDiff(tmpFile);\n\n            writeTagDiff(entries);\n\n        } finally {\n            if (tmpFile != null) {\n                tmpFile.delete();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [0, 8], [4, 9], [1, 10], [1, 11], [1, 12], [2, 13], [7, 14], [3, 15], [9, 16], [5, 17], [12, 18], [14, 19], [15, 20], [4, 21], [18, 22], [18, 23], [18, 24], [20, 25], [20, 26], [26, 27], [26, 28], [27, 29], [27, 30], [27, 31], [28, 32], [28, 33], [29, 34], [30, 35], [31, 36], [33, 37], [33, 38], [37, 39], [37, 40], [37, 41], [39, 42], [40, 43], [41, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 0], [9, 4], [10, 1], [11, 1], [12, 1], [13, 2], [14, 7], [15, 3], [16, 9], [17, 5], [18, 12], [19, 14], [20, 15], [21, 4], [22, 18], [23, 18], [24, 18], [25, 20], [26, 20], [27, 26], [28, 26], [29, 27], [30, 27], [31, 27], [32, 28], [33, 28], [34, 29], [35, 30], [36, 31], [37, 33], [38, 33], [39, 37], [40, 37], [41, 37], [42, 39], [43, 40], [44, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "parseRDiff", "code": "    private CvsTagEntry[] parseRDiff(File tmpFile) throws BuildException {\n        BufferedReader reader = null;\n\n        try {\n            reader = new BufferedReader(new FileReader(tmpFile));\n\n\n            int headerLength = 5 + m_package.length() + 1;\n            Vector entries = new Vector();\n\n            String line = reader.readLine();\n            int index;\n            CvsTagEntry entry = null;\n\n            while (null != line) {\n                line = line.substring(headerLength);\n\n                if ((index = line.indexOf(FILE_IS_NEW)) != -1) {\n                    String filename = line.substring(0, index);\n                    String rev = line.substring(index + FILE_IS_NEW.length());\n\n                    entries.addElement(entry = new CvsTagEntry(filename, rev));\n                    log(entry.toString(), Project.MSG_VERBOSE);\n                } else if ((index = line.indexOf(FILE_HAS_CHANGED)) != -1) {\n                    String filename = line.substring(0, index);\n                    int revSeparator = line.indexOf(\" to \", index);\n                    String prevRevision =\n                        line.substring(index + FILE_HAS_CHANGED.length(),\n                                       revSeparator);\n                    String revision = line.substring(revSeparator + 4);\n\n                    entries.addElement(entry = new CvsTagEntry(filename,\n                                                               revision,\n                                                               prevRevision));\n                    log(entry.toString(), Project.MSG_VERBOSE);\n                } else if ((index = line.indexOf(FILE_WAS_REMOVED)) != -1) {\n                    String filename = line.substring(0, index);\n\n                    entries.addElement(entry = new CvsTagEntry(filename));\n                    log(entry.toString(), Project.MSG_VERBOSE);\n                }\n                line = reader.readLine();\n            }\n\n            CvsTagEntry[] array = new CvsTagEntry[entries.size()];\n            entries.copyInto(array);\n\n            return array;\n        } catch (IOException e) {\n            throw new BuildException(\"Error in parsing\", e);\n        } finally {\n            if (reader != null) {\n                try {\n                    reader.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "IF", "CATCH", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [4, 14], [5, 15], [1, 16], [8, 17], [1, 18], [2, 19], [4, 20], [14, 21], [15, 22], [8, 23], [17, 24], [9, 25], [11, 26], [12, 27], [13, 28], [18, 29], [20, 30], [22, 31], [7, 32], [8, 33], [23, 34], [23, 35], [8, 36], [28, 37], [28, 38], [29, 39], [20, 40], [33, 41], [34, 42], [34, 43], [23, 44], [23, 45], [35, 46], [35, 47], [36, 48], [38, 49], [38, 50], [42, 51], [34, 52], [34, 53], [34, 54], [34, 55], [43, 56], [43, 57], [23, 58], [23, 59], [47, 60], [42, 61], [51, 62], [51, 63], [34, 64], [34, 65], [57, 66], [58, 67], [59, 68], [44, 69], [45, 70], [42, 71], [42, 72], [63, 73], [64, 74], [65, 75], [52, 76], [53, 77], [54, 78], [55, 79], [68, 80], [69, 81], [70, 82], [71, 83], [72, 84], [61, 85], [75, 86], [76, 87], [77, 88], [78, 89], [79, 90], [81, 91], [84, 92], [85, 93], [87, 94], [88, 95], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 4], [15, 5], [16, 1], [17, 8], [18, 1], [19, 2], [20, 4], [21, 14], [22, 15], [23, 8], [24, 17], [25, 9], [26, 11], [27, 12], [28, 13], [29, 18], [30, 20], [31, 22], [32, 7], [33, 8], [34, 23], [35, 23], [36, 8], [37, 28], [38, 28], [39, 29], [40, 20], [41, 33], [42, 34], [43, 34], [44, 23], [45, 23], [46, 35], [47, 35], [48, 36], [49, 38], [50, 38], [51, 42], [52, 34], [53, 34], [54, 34], [55, 34], [56, 43], [57, 43], [58, 23], [59, 23], [60, 47], [61, 42], [62, 51], [63, 51], [64, 34], [65, 34], [66, 57], [67, 58], [68, 59], [69, 44], [70, 45], [71, 42], [72, 42], [73, 63], [74, 64], [75, 65], [76, 52], [77, 53], [78, 54], [79, 55], [80, 68], [81, 69], [82, 70], [83, 71], [84, 72], [85, 61], [86, 75], [87, 76], [88, 77], [89, 78], [90, 79], [91, 81], [92, 84], [93, 85], [94, 87], [95, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95]]}, {"function_name": "writeTagDiff", "code": "    private void writeTagDiff(CvsTagEntry[] entries) throws BuildException {\n        FileOutputStream output = null;\n        try {\n            output = new FileOutputStream(m_destfile);\n            PrintWriter writer = new PrintWriter(\n                                     new OutputStreamWriter(output, \"UTF-8\"));\n            writer.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n            writer.print(\"<tagdiff \");\n            if (m_startTag != null) {\n                writer.print(\"startTag=\\\"\" + m_startTag + \"\\\" \");\n            } else {\n                writer.print(\"startDate=\\\"\" + m_startDate + \"\\\" \");\n            }\n            if (m_endTag != null) {\n                writer.print(\"endTag=\\\"\" + m_endTag + \"\\\" \");\n            } else {\n                writer.print(\"endDate=\\\"\" + m_endDate + \"\\\" \");\n            }\n            writer.println(\">\");\n            for (int i = 0, c = entries.length; i < c; i++) {\n                writeTagEntry(writer, entries[i]);\n            }\n            writer.println(\"</tagdiff>\");\n            writer.flush();\n            writer.close();\n        } catch (UnsupportedEncodingException uee) {\n            log(uee.toString(), Project.MSG_ERR);\n        } catch (IOException ioe) {\n            throw new BuildException(ioe.toString(), ioe);\n        } finally {\n            if (null != output) {\n                try {\n                    output.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "IF", "CATCH", "CATCH", "LOOP", "IF", "IF", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [5, 12], [1, 13], [1, 14], [1, 15], [7, 16], [1, 17], [8, 18], [9, 19], [1, 20], [1, 21], [1, 22], [2, 23], [4, 24], [11, 25], [12, 26], [6, 27], [15, 28], [17, 29], [18, 30], [19, 31], [20, 32], [21, 33], [10, 34], [22, 35], [24, 36], [26, 37], [27, 38], [7, 39], [7, 40], [8, 41], [8, 42], [9, 43], [9, 44], [34, 45], [24, 46], [41, 47], [42, 48], [43, 49], [44, 50], [45, 51], [47, 52], [47, 53], [48, 54], [48, 55], [49, 56], [49, 57], [50, 58], [50, 59], [53, 60], [55, 61], [57, 62], [59, 63], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 5], [13, 1], [14, 1], [15, 1], [16, 7], [17, 1], [18, 8], [19, 9], [20, 1], [21, 1], [22, 1], [23, 2], [24, 4], [25, 11], [26, 12], [27, 6], [28, 15], [29, 17], [30, 18], [31, 19], [32, 20], [33, 21], [34, 10], [35, 22], [36, 24], [37, 26], [38, 27], [39, 7], [40, 7], [41, 8], [42, 8], [43, 9], [44, 9], [45, 34], [46, 24], [47, 41], [48, 42], [49, 43], [50, 44], [51, 45], [52, 47], [53, 47], [54, 48], [55, 48], [56, 49], [57, 49], [58, 50], [59, 50], [60, 53], [61, 55], [62, 57], [63, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "writeTagEntry", "code": "    private void writeTagEntry(PrintWriter writer, CvsTagEntry entry) {\n        writer.println(\"\\t<entry>\");\n        writer.println(\"\\t\\t<file>\");\n        writer.println(\"\\t\\t\\t<name>\" + entry.getFile() + \"</name>\");\n        if (entry.getRevision() != null) {\n            writer.println(\"\\t\\t\\t<revision>\" + entry.getRevision()\n                           + \"</revision>\");\n        }\n        if (entry.getPreviousRevision() != null) {\n            writer.println(\"\\t\\t\\t<prevrevision>\"\n                           + entry.getPreviousRevision() + \"</prevrevision>\");\n        }\n        writer.println(\"\\t\\t</file>\");\n        writer.println(\"\\t</entry>\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [0, 10], [0, 11], [5, 12], [6, 13], [7, 14], [7, 15], [8, 16], [8, 17], [9, 18], [10, 19], [11, 20], [1, 21], [2, 22], [18, 23], [18, 24], [21, 25], [22, 26], [24, 27], [24, 28], [25, 29], [25, 30], [26, 31], [26, 32], [30, 33], [30, 34], [32, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 0], [11, 0], [12, 5], [13, 6], [14, 7], [15, 7], [16, 8], [17, 8], [18, 9], [19, 10], [20, 11], [21, 1], [22, 2], [23, 18], [24, 18], [25, 21], [26, 22], [27, 24], [28, 24], [29, 25], [30, 25], [31, 26], [32, 26], [33, 30], [34, 30], [35, 32], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "validate", "code": "    private void validate() throws BuildException {\n        if (null == m_package) {\n            throw new BuildException(\"Package/module must be set.\");\n        }\n\n        if (null == m_destfile) {\n            throw new BuildException(\"Destfile must be set.\");\n        }\n\n        if (null == m_startTag && null == m_startDate) {\n            throw new BuildException(\"Start tag or start date must be set.\");\n        }\n\n        if (null != m_startTag && null != m_startDate) {\n            throw new BuildException(\"Only one of start tag and start date \"\n                                     + \"must be set.\");\n        }\n\n        if (null == m_endTag && null == m_endDate) {\n            throw new BuildException(\"End tag or end date must be set.\");\n        }\n\n        if (null != m_endTag && null != m_endDate) {\n            throw new BuildException(\"Only one of end tag and end date must \"\n                                     + \"be set.\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 13], [7, 14], [7, 15], [2, 16], [8, 17], [8, 18], [3, 19], [9, 20], [9, 21], [4, 22], [10, 23], [10, 24], [5, 25], [11, 26], [6, 27], [12, 28], [13, 29], [14, 30], [15, 31], [16, 32], [17, 33], [18, 34], [19, 35], [20, 36], [21, 37], [22, 38], [23, 39], [24, 40], [25, 41], [27, 42], [29, 43], [32, 44], [35, 45], [38, 46], [41, 47], [42, 48], [43, 49], [43, 50], [45, 51], [45, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [13, 1], [14, 7], [15, 7], [16, 2], [17, 8], [18, 8], [19, 3], [20, 9], [21, 9], [22, 4], [23, 10], [24, 10], [25, 5], [26, 11], [27, 6], [28, 12], [29, 13], [30, 14], [31, 15], [32, 16], [33, 17], [34, 18], [35, 19], [36, 20], [37, 21], [38, 22], [39, 23], [40, 24], [41, 25], [42, 27], [43, 29], [44, 32], [45, 35], [46, 38], [47, 41], [48, 42], [49, 43], [50, 43], [51, 45], [52, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}], "label": 1}
{"sample_id": "poi-1.5-5213", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/SeriesListRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.SeriesListRecord", "code": "public class SeriesListRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1016;\n    private  short[]    field_1_seriesNumbers;\n\n\n    public SeriesListRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a SeriesList record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1016 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public SeriesListRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a SeriesList record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1016 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public SeriesListRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a SeriesList record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_seriesNumbers           = LittleEndian.getShortArray(data, 0x0 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[SeriesList]\\n\");\n\n        buffer.append(\"    .seriesNumbers        = \")\n            .append(\" (\").append(getSeriesNumbers()).append(\" )\\n\");\n\n        buffer.append(\"[/SeriesList]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShortArray(data, 4 + offset, field_1_seriesNumbers);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4 + field_1_seriesNumbers.length * 2 + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n\n    /**\n     * Get the series numbers field for the SeriesList record.\n     */\n    public short[] getSeriesNumbers()\n    {\n        return field_1_seriesNumbers;\n    }\n\n    /**\n     * Set the series numbers field for the SeriesList record.\n     */\n    public void setSeriesNumbers(short[] field_1_seriesNumbers)\n    {\n        this.field_1_seriesNumbers = field_1_seriesNumbers;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a SeriesList record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_seriesNumbers           = LittleEndian.getShortArray(data, 0x0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[SeriesList]\\n\");\n\n        buffer.append(\"    .seriesNumbers        = \")\n            .append(\" (\").append(getSeriesNumbers()).append(\" )\\n\");\n\n        buffer.append(\"[/SeriesList]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [9, 14], [10, 15], [11, 16], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 9], [15, 10], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShortArray(data, 4 + offset, field_1_seriesNumbers);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [6, 12], [9, 13], [10, 14], [12, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 6], [13, 9], [14, 10], [15, 12], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4 + field_1_seriesNumbers.length * 2 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSeriesNumbers", "code": "    public short[] getSeriesNumbers()\n    {\n        return field_1_seriesNumbers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSeriesNumbers", "code": "    public void setSeriesNumbers(short[] field_1_seriesNumbers)\n    {\n        this.field_1_seriesNumbers = field_1_seriesNumbers;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SeriesListRecord", "code": "    public SeriesListRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SeriesListRecord", "code": "    public SeriesListRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SeriesListRecord", "code": "    public SeriesListRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.3-61", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/taskdefs/ExecuteJava.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.ExecuteJava", "code": "public class ExecuteJava {\n\n    private Commandline javaCommand = null;\n    private Path classpath = null;\n    private CommandlineJava.SysProperties sysProperties = null;\n    private PrintStream out;\n\n    public void setJavaCommand(Commandline javaCommand) {\n        this.javaCommand = javaCommand;\n    }\n\n    public void setClasspath(Path p) {\n        classpath = p;\n    }\n\n    public void setSystemProperties(CommandlineJava.SysProperties s) {\n        sysProperties = s;\n    }\n\n    /**\n     * All output (System.out as well as System.err) will be written\n     * to this Stream.\n     */\n    public void setOutput(PrintStream out) {\n        this.out = out;\n    }\n\n    public void execute(Project project) throws BuildException{\n        PrintStream sOut = System.out;\n        PrintStream sErr = System.err;\n\n        final String classname = javaCommand.getExecutable();\n        final Object[] argument = { javaCommand.getArguments() };\n        try {\n            if (sysProperties != null) {\n                sysProperties.setSystem();\n            }\n\n            if (out != null) {\n                System.setErr(out);\n                System.setOut(out);\n            }\n\n            final Class[] param = { Class.forName(\"[Ljava.lang.String;\") };\n            Class target = null;\n            if (classpath == null) {\n                target = Class.forName(classname);\n            } else {\n                AntClassLoader loader = new AntClassLoader(project, classpath, false);\n                loader.setIsolated(true);\n                target = loader.forceLoadClass(classname);\n            }\n            final Method main = target.getMethod(\"main\", param);\n            main.invoke(null, argument);\n\n        } catch (NullPointerException e) {\n            throw new BuildException(\"Could not find main() method in \" + classname);\n        } catch (ClassNotFoundException e) {\n            throw new BuildException(\"Could not find \" + classname + \". Make sure you have it in your classpath\");\n        } catch (InvocationTargetException e) {\n            Throwable t = e.getTargetException();\n            if (!(t instanceof SecurityException)) {\n                throw new BuildException(t);\n            }\n        } catch (Exception e) {\n            throw new BuildException(e);\n        } finally {\n            if (sysProperties != null) {\n                sysProperties.restoreSystem();\n            }\n            if (out != null) {\n                System.setOut(sOut);\n                System.setErr(sErr);\n                out.close();", "functions": [{"function_name": "setJavaCommand", "code": "    public void setJavaCommand(Commandline javaCommand) {\n        this.javaCommand = javaCommand;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path p) {\n        classpath = p;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSystemProperties", "code": "    public void setSystemProperties(CommandlineJava.SysProperties s) {\n        sysProperties = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutput", "code": "    public void setOutput(PrintStream out) {\n        this.out = out;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute(Project project) throws BuildException{\n        PrintStream sOut = System.out;\n        PrintStream sErr = System.err;\n\n        final String classname = javaCommand.getExecutable();\n        final Object[] argument = { javaCommand.getArguments() };\n        try {\n            if (sysProperties != null) {\n                sysProperties.setSystem();\n            }\n\n            if (out != null) {\n                System.setErr(out);\n                System.setOut(out);\n            }\n\n            final Class[] param = { Class.forName(\"[Ljava.lang.String;\") };\n            Class target = null;\n            if (classpath == null) {\n                target = Class.forName(classname);\n            } else {\n                AntClassLoader loader = new AntClassLoader(project, classpath, false);\n                loader.setIsolated(true);\n                target = loader.forceLoadClass(classname);\n            }\n            final Method main = target.getMethod(\"main\", param);\n            main.invoke(null, argument);\n\n        } catch (NullPointerException e) {\n            throw new BuildException(\"Could not find main() method in \" + classname);\n        } catch (ClassNotFoundException e) {\n            throw new BuildException(\"Could not find \" + classname + \". Make sure you have it in your classpath\");\n        } catch (InvocationTargetException e) {\n            Throwable t = e.getTargetException();\n            if (!(t instanceof SecurityException)) {\n                throw new BuildException(t);\n            }\n        } catch (Exception e) {\n            throw new BuildException(e);\n        } finally {\n            if (sysProperties != null) {\n                sysProperties.restoreSystem();\n            }\n            if (out != null) {\n                System.setOut(sOut);\n                System.setErr(sErr);\n                out.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "IF", "CATCH", "CATCH", "CATCH", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "IF", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [7, 19], [8, 20], [9, 21], [10, 22], [10, 23], [11, 24], [12, 25], [1, 26], [14, 27], [17, 28], [18, 29], [3, 30], [19, 31], [20, 32], [21, 33], [22, 34], [24, 35], [25, 36], [26, 37], [13, 38], [14, 39], [27, 40], [15, 41], [28, 42], [29, 43], [2, 44], [7, 45], [7, 46], [7, 47], [8, 48], [22, 49], [23, 50], [35, 51], [36, 52], [38, 53], [14, 54], [14, 55], [14, 56], [16, 57], [17, 58], [17, 59], [18, 60], [49, 61], [51, 62], [51, 63], [52, 64], [54, 65], [55, 66], [39, 67], [56, 68], [57, 69], [63, 70], [67, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 7], [20, 8], [21, 9], [22, 10], [23, 10], [24, 11], [25, 12], [26, 1], [27, 14], [28, 17], [29, 18], [30, 3], [31, 19], [32, 20], [33, 21], [34, 22], [35, 24], [36, 25], [37, 26], [38, 13], [39, 14], [40, 27], [41, 15], [42, 28], [43, 29], [44, 2], [45, 7], [46, 7], [47, 7], [48, 8], [49, 22], [50, 23], [51, 35], [52, 36], [53, 38], [54, 14], [55, 14], [56, 14], [57, 16], [58, 17], [59, 17], [60, 18], [61, 49], [62, 51], [63, 51], [64, 52], [65, 54], [66, 55], [67, 39], [68, 56], [69, 57], [70, 63], [71, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}], "label": 0}
{"sample_id": "poi-2.0-5417", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/SheetPropertiesRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.SheetPropertiesRecord", "code": "public class SheetPropertiesRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1044;\n    private  short      field_1_flags;\n    private  BitField   chartTypeManuallyFormatted                  = new BitField(0x1);\n    private  BitField   plotVisibleOnly                             = new BitField(0x2);\n    private  BitField   doNotSizeWithWindow                         = new BitField(0x4);\n    private  BitField   defaultPlotDimensions                       = new BitField(0x8);\n    private  BitField   autoPlotArea                                = new BitField(0x10);\n    private  byte       field_2_empty;\n    public final static byte        EMPTY_NOT_PLOTTED              = 0;\n    public final static byte        EMPTY_ZERO                     = 1;\n    public final static byte        EMPTY_INTERPOLATED             = 2;\n\n\n    public SheetPropertiesRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a SheetProperties record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1044 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public SheetPropertiesRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a SheetProperties record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1044 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public SheetPropertiesRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a SheetProperties record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_flags                  = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_empty                  = data[ pos + 0x2 + offset ];\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[SHTPROPS]\\n\");\n        buffer.append(\"    .flags                = \")\n            .append(\"0x\").append(HexDump.toHex(  getFlags ()))\n            .append(\" (\").append( getFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .chartTypeManuallyFormatted     = \").append(isChartTypeManuallyFormatted()).append('\\n'); \n        buffer.append(\"         .plotVisibleOnly          = \").append(isPlotVisibleOnly()).append('\\n'); \n        buffer.append(\"         .doNotSizeWithWindow      = \").append(isDoNotSizeWithWindow()).append('\\n'); \n        buffer.append(\"         .defaultPlotDimensions     = \").append(isDefaultPlotDimensions()).append('\\n'); \n        buffer.append(\"         .autoPlotArea             = \").append(isAutoPlotArea()).append('\\n'); \n        buffer.append(\"    .empty                = \")\n            .append(\"0x\").append(HexDump.toHex(  getEmpty ()))\n            .append(\" (\").append( getEmpty() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/SHTPROPS]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_flags);\n        data[ 6 + offset + pos ] = field_2_empty;\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2 + 1;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        SheetPropertiesRecord rec = new SheetPropertiesRecord();\n    \n        rec.field_1_flags = field_1_flags;\n        rec.field_2_empty = field_2_empty;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the flags field for the SheetProperties record.\n     */\n    public short getFlags()\n    {\n        return field_1_flags;\n    }\n\n    /**\n     * Set the flags field for the SheetProperties record.\n     */\n    public void setFlags(short field_1_flags)\n    {\n        this.field_1_flags = field_1_flags;\n    }\n\n    /**\n     * Get the empty field for the SheetProperties record.\n     *\n     * @return  One of \n     *        EMPTY_NOT_PLOTTED\n     *        EMPTY_ZERO\n     *        EMPTY_INTERPOLATED\n     */\n    public byte getEmpty()\n    {\n        return field_2_empty;\n    }\n\n    /**\n     * Set the empty field for the SheetProperties record.\n     *\n     * @param field_2_empty\n     *        One of \n     *        EMPTY_NOT_PLOTTED\n     *        EMPTY_ZERO\n     *        EMPTY_INTERPOLATED\n     */\n    public void setEmpty(byte field_2_empty)\n    {\n        this.field_2_empty = field_2_empty;\n    }\n\n    /**\n     * Sets the chart type manually formatted field value.\n     * Has the chart type been manually formatted?\n     */\n    public void setChartTypeManuallyFormatted(boolean value)\n    {\n        field_1_flags = chartTypeManuallyFormatted.setShortBoolean(field_1_flags, value);\n    }\n\n    /**\n     * Has the chart type been manually formatted?\n     * @return  the chart type manually formatted field value.\n     */\n    public boolean isChartTypeManuallyFormatted()\n    {\n        return chartTypeManuallyFormatted.isSet(field_1_flags);\n    }\n\n    /**\n     * Sets the plot visible only field value.\n     * Only show visible cells on the chart.\n     */\n    public void setPlotVisibleOnly(boolean value)\n    {\n        field_1_flags = plotVisibleOnly.setShortBoolean(field_1_flags, value);\n    }\n\n    /**\n     * Only show visible cells on the chart.\n     * @return  the plot visible only field value.\n     */\n    public boolean isPlotVisibleOnly()\n    {\n        return plotVisibleOnly.isSet(field_1_flags);\n    }\n\n    /**\n     * Sets the do not size with window field value.\n     * Do not size the chart when the window changes size\n     */\n    public void setDoNotSizeWithWindow(boolean value)\n    {\n        field_1_flags = doNotSizeWithWindow.setShortBoolean(field_1_flags, value);\n    }\n\n    /**\n     * Do not size the chart when the window changes size\n     * @return  the do not size with window field value.\n     */\n    public boolean isDoNotSizeWithWindow()\n    {\n        return doNotSizeWithWindow.isSet(field_1_flags);\n    }\n\n    /**\n     * Sets the default plot dimensions field value.\n     * Indicates that the default area dimensions should be used.\n     */\n    public void setDefaultPlotDimensions(boolean value)\n    {\n        field_1_flags = defaultPlotDimensions.setShortBoolean(field_1_flags, value);\n    }\n\n    /**\n     * Indicates that the default area dimensions should be used.\n     * @return  the default plot dimensions field value.\n     */\n    public boolean isDefaultPlotDimensions()\n    {\n        return defaultPlotDimensions.isSet(field_1_flags);\n    }\n\n    /**\n     * Sets the auto plot area field value.\n     * ??\n     */\n    public void setAutoPlotArea(boolean value)\n    {\n        field_1_flags = autoPlotArea.setShortBoolean(field_1_flags, value);\n    }\n\n    /**\n     * ??\n     * @return  the auto plot area field value.\n     */\n    public boolean isAutoPlotArea()\n    {\n        return autoPlotArea.isSet(field_1_flags);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a SheetProperties record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_flags                  = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_empty                  = data[ pos + 0x2 + offset ];", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 8], [7, 9], [5, 10], [9, 11], [10, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 1], [9, 7], [10, 5], [11, 9], [12, 10], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[SHTPROPS]\\n\");\n        buffer.append(\"    .flags                = \")\n            .append(\"0x\").append(HexDump.toHex(  getFlags ()))\n            .append(\" (\").append( getFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .chartTypeManuallyFormatted     = \").append(isChartTypeManuallyFormatted()).append('\\n'); \n        buffer.append(\"         .plotVisibleOnly          = \").append(isPlotVisibleOnly()).append('\\n'); \n        buffer.append(\"         .doNotSizeWithWindow      = \").append(isDoNotSizeWithWindow()).append('\\n'); \n        buffer.append(\"         .defaultPlotDimensions     = \").append(isDefaultPlotDimensions()).append('\\n'); \n        buffer.append(\"         .autoPlotArea             = \").append(isAutoPlotArea()).append('\\n'); \n        buffer.append(\"    .empty                = \")\n            .append(\"0x\").append(HexDump.toHex(  getEmpty ()))\n            .append(\" (\").append( getEmpty() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/SHTPROPS]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [4, 15], [5, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [7, 23], [7, 24], [7, 25], [8, 26], [8, 27], [8, 28], [9, 29], [9, 30], [9, 31], [10, 32], [10, 33], [10, 34], [11, 35], [11, 36], [11, 37], [12, 38], [13, 39], [13, 40], [13, 41], [13, 42], [13, 43], [13, 44], [14, 45], [2, 46], [16, 47], [18, 48], [19, 49], [20, 50], [21, 51], [22, 52], [24, 53], [25, 54], [27, 55], [28, 56], [30, 57], [31, 58], [33, 59], [34, 60], [36, 61], [37, 62], [38, 63], [40, 64], [41, 65], [42, 66], [43, 67], [44, 68], [51, 69], [67, 70], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 4], [16, 5], [17, 6], [18, 6], [19, 6], [20, 6], [21, 6], [22, 6], [23, 7], [24, 7], [25, 7], [26, 8], [27, 8], [28, 8], [29, 9], [30, 9], [31, 9], [32, 10], [33, 10], [34, 10], [35, 11], [36, 11], [37, 11], [38, 12], [39, 13], [40, 13], [41, 13], [42, 13], [43, 13], [44, 13], [45, 14], [46, 2], [47, 16], [48, 18], [49, 19], [50, 20], [51, 21], [52, 22], [53, 24], [54, 25], [55, 27], [56, 28], [57, 30], [58, 31], [59, 33], [60, 34], [61, 36], [62, 37], [63, 38], [64, 40], [65, 41], [66, 42], [67, 43], [68, 44], [69, 51], [70, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_flags);\n        data[ 6 + offset + pos ] = field_2_empty;\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [8, 11], [9, 12], [2, 13], [10, 14], [8, 15], [11, 16], [12, 17], [6, 18], [14, 19], [15, 20], [15, 21], [18, 22], [22, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 8], [12, 9], [13, 2], [14, 10], [15, 8], [16, 11], [17, 12], [18, 6], [19, 14], [20, 15], [21, 15], [22, 18], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2 + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        SheetPropertiesRecord rec = new SheetPropertiesRecord();\n    \n        rec.field_1_flags = field_1_flags;\n        rec.field_2_empty = field_2_empty;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getFlags", "code": "    public short getFlags()\n    {\n        return field_1_flags;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFlags", "code": "    public void setFlags(short field_1_flags)\n    {\n        this.field_1_flags = field_1_flags;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEmpty", "code": "    public byte getEmpty()\n    {\n        return field_2_empty;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEmpty", "code": "    public void setEmpty(byte field_2_empty)\n    {\n        this.field_2_empty = field_2_empty;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setChartTypeManuallyFormatted", "code": "    public void setChartTypeManuallyFormatted(boolean value)\n    {\n        field_1_flags = chartTypeManuallyFormatted.setShortBoolean(field_1_flags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isChartTypeManuallyFormatted", "code": "    public boolean isChartTypeManuallyFormatted()\n    {\n        return chartTypeManuallyFormatted.isSet(field_1_flags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPlotVisibleOnly", "code": "    public void setPlotVisibleOnly(boolean value)\n    {\n        field_1_flags = plotVisibleOnly.setShortBoolean(field_1_flags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isPlotVisibleOnly", "code": "    public boolean isPlotVisibleOnly()\n    {\n        return plotVisibleOnly.isSet(field_1_flags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDoNotSizeWithWindow", "code": "    public void setDoNotSizeWithWindow(boolean value)\n    {\n        field_1_flags = doNotSizeWithWindow.setShortBoolean(field_1_flags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDoNotSizeWithWindow", "code": "    public boolean isDoNotSizeWithWindow()\n    {\n        return doNotSizeWithWindow.isSet(field_1_flags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDefaultPlotDimensions", "code": "    public void setDefaultPlotDimensions(boolean value)\n    {\n        field_1_flags = defaultPlotDimensions.setShortBoolean(field_1_flags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDefaultPlotDimensions", "code": "    public boolean isDefaultPlotDimensions()\n    {\n        return defaultPlotDimensions.isSet(field_1_flags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoPlotArea", "code": "    public void setAutoPlotArea(boolean value)\n    {\n        field_1_flags = autoPlotArea.setShortBoolean(field_1_flags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoPlotArea", "code": "    public boolean isAutoPlotArea()\n    {\n        return autoPlotArea.isSet(field_1_flags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SheetPropertiesRecord", "code": "    public SheetPropertiesRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SheetPropertiesRecord", "code": "    public SheetPropertiesRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SheetPropertiesRecord", "code": "    public SheetPropertiesRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.4-6770", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/processor/XSLTElementProcessor.java", "language": "java", "name": "org.apache.xalan.processor.XSLTElementProcessor", "code": "public class XSLTElementProcessor extends ElemTemplateElement\n{\n\n  /**\n   * Construct a processor for top-level elements.\n   */\n  XSLTElementProcessor(){}\n\t\n\tprivate IntStack m_savedLastOrder;\n\n  /**\n   * The element definition that this processor conforms to.\n   */\n  private XSLTElementDef m_elemDef;\n\n  /**\n   * Get the element definition that belongs to this element.\n   *\n   * @return The element definition object that produced and constrains this element.\n   */\n  XSLTElementDef getElemDef()\n  {\n    return m_elemDef;\n  }\n\n  /**\n   * Set the element definition that belongs to this element.\n   *\n   * @param def The element definition object that produced and constrains this element.\n   */\n  void setElemDef(XSLTElementDef def)\n  {\n    m_elemDef = def;\n  }\n\n  /**\n   * Resolve an external entity.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param publicId The public identifer, or null if none is\n   *                 available.\n   * @param systemId The system identifier provided in the XML\n   *                 document.\n   * @return The new input source, or null to require the\n   *         default behaviour.\n   */\n  public InputSource resolveEntity(\n          StylesheetHandler handler, String publicId, String systemId)\n            throws org.xml.sax.SAXException\n  {\n    return null;\n  }\n\n  /**\n   * Receive notification of a notation declaration.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param name The notation name.\n   * @param publicId The notation public identifier, or null if not\n   *                 available.\n   * @param systemId The notation system identifier.\n   * @see org.xml.sax.DTDHandler#notationDecl\n   */\n  public void notationDecl(StylesheetHandler handler, String name,\n                           String publicId, String systemId)\n  {\n\n  }\n\n  /**\n   * Receive notification of an unparsed entity declaration.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param name The entity name.\n   * @param publicId The entity public identifier, or null if not\n   *                 available.\n   * @param systemId The entity system identifier.\n   * @param notationName The name of the associated notation.\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void unparsedEntityDecl(StylesheetHandler handler, String name,\n                                 String publicId, String systemId,\n                                 String notationName)\n  {\n\n  }\n\n  /**\n   * Receive notification of the start of the non-text event.  This\n   * is sent to the current processor when any non-text event occurs.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   */\n  public void startNonText(StylesheetHandler handler) throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of the start of an element.\n   *\n   * @param name The element type name.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param localName The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param attributes The specified or defaulted attributes.\n   */\n  public void startElement(\n          StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)\n            throws org.xml.sax.SAXException\n  {\n\n    if (m_savedLastOrder == null)\n\t\t\t\tm_savedLastOrder = new IntStack();\n\t\t\tm_savedLastOrder.push(getElemDef().getLastOrder());\n\t\t\tgetElemDef().setLastOrder(-1);\n  }\n\n  /**\n   * Receive notification of the end of an element.\n   *\n   * @param name The element type name.\n   * @param attributes The specified or defaulted attributes.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param localName The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   */\n  public void endElement(\n          StylesheetHandler handler, String uri, String localName, String rawName)\n            throws org.xml.sax.SAXException\n  {\n\t\tif (m_savedLastOrder != null && !m_savedLastOrder.empty())\n\t\t\tgetElemDef().setLastOrder(m_savedLastOrder.pop());\n\t\t\n\t\tif (!getElemDef().getRequiredFound())\n\t\t\thandler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);\n  }\n\n  /**\n   * Receive notification of character data inside an element.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param ch The characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   */\n  public void characters(\n          StylesheetHandler handler, char ch[], int start, int length)\n            throws org.xml.sax.SAXException\n  {\n  }\n\n  /**\n   * Receive notification of ignorable whitespace in element content.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param ch The whitespace characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   */\n  public void ignorableWhitespace(\n          StylesheetHandler handler, char ch[], int start, int length)\n            throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of a processing instruction.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param target The processing instruction target.\n   * @param data The processing instruction data, or null if\n   *             none is supplied.\n   */\n  public void processingInstruction(\n          StylesheetHandler handler, String target, String data)\n            throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of a skipped entity.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param name The name of the skipped entity.\n   */\n  public void skippedEntity(StylesheetHandler handler, String name)\n          throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Set the properties of an object from the given attribute list.\n   * @param handler The stylesheet's Content handler, needed for\n   *                error reporting.\n   * @param rawName The raw name of the owner element, needed for\n   *                error reporting.\n   * @param attributes The list of attributes.\n   * @param target The target element where the properties will be set.\n   */\n  void setPropertiesFromAttributes(\n          StylesheetHandler handler, String rawName, Attributes attributes, \n          ElemTemplateElement target)\n            throws org.xml.sax.SAXException\n  {\n    setPropertiesFromAttributes(handler, rawName, attributes, target, true);\n  }\n\n  /**\n   * Set the properties of an object from the given attribute list.\n   * @param handler The stylesheet's Content handler, needed for\n   *                error reporting.\n   * @param rawName The raw name of the owner element, needed for\n   *                error reporting.\n   * @param attributes The list of attributes.\n   * @param target The target element where the properties will be set.\n   * @param throwError True if it should throw an error if an\n   * attribute is not defined.\n   * @return the attributes not allowed on this element.\n   *\n   * @throws TransformerException\n   */\n  Attributes setPropertiesFromAttributes(\n          StylesheetHandler handler, String rawName, Attributes attributes, \n          ElemTemplateElement target, boolean throwError)\n            throws org.xml.sax.SAXException\n  {\n\n    XSLTElementDef def = getElemDef();\n    AttributesImpl undefines = throwError ? null : new AttributesImpl();\n\n    Vector processedDefs = new Vector();\n\n    Vector errorDefs = new Vector();    \n    int nAttrs = attributes.getLength();\n\n    for (int i = 0; i < nAttrs; i++)\n    {\n      String attrUri = attributes.getURI(i);\n      if((null != attrUri) && (attrUri.length() == 0)\n                           && (attributes.getQName(i).startsWith(\"xmlns:\") || \n                               attributes.getQName(i).equals(\"xmlns\")))\n      {\n        attrUri = org.apache.xalan.templates.Constants.S_XMLNAMESPACEURI;\n      }\n      String attrLocalName = attributes.getLocalName(i);\n      XSLTAttributeDef attrDef = def.getAttributeDef(attrUri, attrLocalName);\n\n      if (null == attrDef)\n      {\n        if (throwError)\n        {\n\n        }\n        else\n        {\n          undefines.addAttribute(attrUri, attrLocalName,\n                                 attributes.getQName(i),\n                                 attributes.getType(i),\n                                 attributes.getValue(i));\n        }\n      }\n      else\n      {\n\n        boolean success = attrDef.setAttrValue(handler, attrUri, attrLocalName,\n                             attributes.getQName(i), attributes.getValue(i),\n                             target);\n                             \n        if (success)\n            processedDefs.addElement(attrDef);\n        else\n            errorDefs.addElement(attrDef);\n      }\n    }\n\n    XSLTAttributeDef[] attrDefs = def.getAttributes();\n    int nAttrDefs = attrDefs.length;\n\n    for (int i = 0; i < nAttrDefs; i++)\n    {\n      XSLTAttributeDef attrDef = attrDefs[i];\n      String defVal = attrDef.getDefault();\n\n      if (null != defVal)\n      {\n        if (!processedDefs.contains(attrDef))\n        {\n          attrDef.setDefAttrValue(handler, target);\n        }\n      }\n\n      if (attrDef.getRequired())\n      {\n        if ((!processedDefs.contains(attrDef)) && (!errorDefs.contains(attrDef)))\n          handler.error(\n            XSLMessages.createMessage(\n              XSLTErrorResources.ER_REQUIRES_ATTRIB, new Object[]{ rawName,\n                                                                   attrDef.getName() }), null);\n      }\n    }\n\n    return undefines;", "functions": [{"function_name": "getElemDef", "code": "  XSLTElementDef getElemDef()\n  {\n    return m_elemDef;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setElemDef", "code": "  void setElemDef(XSLTElementDef def)\n  {\n    m_elemDef = def;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "resolveEntity", "code": "  public InputSource resolveEntity(\n          StylesheetHandler handler, String publicId, String systemId)\n            throws org.xml.sax.SAXException\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "notationDecl", "code": "  public void notationDecl(StylesheetHandler handler, String name,\n                           String publicId, String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unparsedEntityDecl", "code": "  public void unparsedEntityDecl(StylesheetHandler handler, String name,\n                                 String publicId, String systemId,\n                                 String notationName)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "startNonText", "code": "  public void startNonText(StylesheetHandler handler) throws org.xml.sax.SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startElement", "code": "  public void startElement(\n          StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)\n            throws org.xml.sax.SAXException\n  {\n\n    if (m_savedLastOrder == null)\n\t\t\t\tm_savedLastOrder = new IntStack();\n\t\t\tm_savedLastOrder.push(getElemDef().getLastOrder());\n\t\t\tgetElemDef().setLastOrder(-1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [7, 10], [8, 11], [1, 12], [9, 13], [10, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 7], [11, 8], [12, 1], [13, 9], [14, 10], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "endElement", "code": "  public void endElement(\n          StylesheetHandler handler, String uri, String localName, String rawName)\n            throws org.xml.sax.SAXException\n  {\n\t\tif (m_savedLastOrder != null && !m_savedLastOrder.empty())\n\t\t\tgetElemDef().setLastOrder(m_savedLastOrder.pop());\n\t\t\n\t\tif (!getElemDef().getRequiredFound())\n\t\t\thandler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [7, 10], [2, 11], [8, 12], [8, 13], [9, 14], [11, 15], [13, 16], [15, 17], [9, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 7], [11, 2], [12, 8], [13, 8], [14, 9], [15, 11], [16, 13], [17, 15], [18, 9], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "characters", "code": "  public void characters(\n          StylesheetHandler handler, char ch[], int start, int length)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(\n          StylesheetHandler handler, char ch[], int start, int length)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(\n          StylesheetHandler handler, String target, String data)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(StylesheetHandler handler, String name)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPropertiesFromAttributes", "code": "  void setPropertiesFromAttributes(\n          StylesheetHandler handler, String rawName, Attributes attributes, \n          ElemTemplateElement target)\n            throws org.xml.sax.SAXException\n  {\n    setPropertiesFromAttributes(handler, rawName, attributes, target, true);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setPropertiesFromAttributes", "code": "  Attributes setPropertiesFromAttributes(\n          StylesheetHandler handler, String rawName, Attributes attributes, \n          ElemTemplateElement target, boolean throwError)\n            throws org.xml.sax.SAXException\n  {\n\n    XSLTElementDef def = getElemDef();\n    AttributesImpl undefines = throwError ? null : new AttributesImpl();\n\n    Vector processedDefs = new Vector();\n\n    Vector errorDefs = new Vector();    \n    int nAttrs = attributes.getLength();\n\n    for (int i = 0; i < nAttrs; i++)\n    {\n      String attrUri = attributes.getURI(i);\n      if((null != attrUri) && (attrUri.length() == 0)\n                           && (attributes.getQName(i).startsWith(\"xmlns:\") || \n                               attributes.getQName(i).equals(\"xmlns\")))\n      {\n        attrUri = org.apache.xalan.templates.Constants.S_XMLNAMESPACEURI;\n      }\n      String attrLocalName = attributes.getLocalName(i);\n      XSLTAttributeDef attrDef = def.getAttributeDef(attrUri, attrLocalName);\n\n      if (null == attrDef)\n      {\n        if (throwError)\n        {\n\n        }\n        else\n        {\n          undefines.addAttribute(attrUri, attrLocalName,\n                                 attributes.getQName(i),\n                                 attributes.getType(i),\n                                 attributes.getValue(i));\n        }\n      }\n      else\n      {\n\n        boolean success = attrDef.setAttrValue(handler, attrUri, attrLocalName,\n                             attributes.getQName(i), attributes.getValue(i),\n                             target);\n                             \n        if (success)\n            processedDefs.addElement(attrDef);\n        else\n            errorDefs.addElement(attrDef);\n      }\n    }\n\n    XSLTAttributeDef[] attrDefs = def.getAttributes();\n    int nAttrDefs = attrDefs.length;\n\n    for (int i = 0; i < nAttrDefs; i++)\n    {\n      XSLTAttributeDef attrDef = attrDefs[i];\n      String defVal = attrDef.getDefault();\n\n      if (null != defVal)\n      {\n        if (!processedDefs.contains(attrDef))\n        {\n          attrDef.setDefAttrValue(handler, target);\n        }\n      }\n\n      if (attrDef.getRequired())\n      {\n        if ((!processedDefs.contains(attrDef)) && (!errorDefs.contains(attrDef)))\n          handler.error(\n            XSLMessages.createMessage(\n              XSLTErrorResources.ER_REQUIRES_ATTRIB, new Object[]{ rawName,\n                                                                   attrDef.getName() }), null);\n      }\n    }\n\n    return undefines;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [5, 17], [2, 18], [2, 19], [2, 20], [2, 21], [4, 22], [5, 23], [5, 24], [5, 25], [5, 26], [5, 27], [6, 28], [7, 29], [8, 30], [9, 31], [10, 32], [18, 33], [19, 34], [2, 35], [23, 36], [26, 37], [5, 38], [31, 39], [31, 40], [18, 41], [19, 42], [34, 43], [20, 44], [23, 45], [23, 46], [23, 47], [36, 48], [24, 49], [25, 50], [37, 51], [37, 52], [27, 53], [41, 54], [42, 55], [26, 56], [51, 57], [51, 58], [52, 59], [52, 60], [41, 61], [54, 62], [54, 63], [45, 64], [45, 65], [46, 66], [57, 67], [58, 68], [59, 69], [59, 70], [60, 71], [61, 72], [61, 73], [42, 74], [66, 75], [66, 76], [47, 77], [67, 78], [68, 79], [77, 80], [77, 81], [77, 82], [73, 83], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 5], [18, 2], [19, 2], [20, 2], [21, 2], [22, 4], [23, 5], [24, 5], [25, 5], [26, 5], [27, 5], [28, 6], [29, 7], [30, 8], [31, 9], [32, 10], [33, 18], [34, 19], [35, 2], [36, 23], [37, 26], [38, 5], [39, 31], [40, 31], [41, 18], [42, 19], [43, 34], [44, 20], [45, 23], [46, 23], [47, 23], [48, 36], [49, 24], [50, 25], [51, 37], [52, 37], [53, 27], [54, 41], [55, 42], [56, 26], [57, 51], [58, 51], [59, 52], [60, 52], [61, 41], [62, 54], [63, 54], [64, 45], [65, 45], [66, 46], [67, 57], [68, 58], [69, 59], [70, 59], [71, 60], [72, 61], [73, 61], [74, 42], [75, 66], [76, 66], [77, 47], [78, 67], [79, 68], [80, 77], [81, 77], [82, 77], [83, 73], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83]]}, {"function_name": "XSLTElementProcessor", "code": "  XSLTElementProcessor(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.7-8046", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/compiler/OpMap.java", "language": "java", "name": "org.apache.xpath.compiler.OpMap", "code": "public class OpMap\n{\n\n  /**\n   * The current pattern string, for diagnostics purposes\n   */\n  protected String m_currentPattern;\n\n  /**\n   * Return the expression as a string for diagnostics.\n   *\n   * @return The expression string.\n   */\n  public String toString()\n  {\n    return m_currentPattern;\n  }\n\n  /**\n   * Return the expression as a string for diagnostics.\n   *\n   * @return The expression string.\n   */\n  public String getPatternString()\n  {\n    return m_currentPattern;\n  }\n\n  /**\n   * The starting size of the token queue.\n   */\n  static final int MAXTOKENQUEUESIZE = 500;\n\n  /*\n   * Amount to grow token queue when it becomes full\n   */\n  static final int BLOCKTOKENQUEUESIZE = 500;\n  \n  /**\n   *  TokenStack is the queue of used tokens. The current token is the token at the\n   * end of the m_tokenQueue. The idea is that the queue can be marked and a sequence\n   * of tokens can be reused.\n   */\n  ObjectVector m_tokenQueue = new ObjectVector(MAXTOKENQUEUESIZE, BLOCKTOKENQUEUESIZE);\n\n  /**\n   * Get the XPath as a list of tokens.\n   *\n   * @return ObjectVector of tokens.\n   */\n  public ObjectVector getTokenQueue()\n  {\n    return m_tokenQueue;\n  }\n\n  /**\n   * Get the XPath as a list of tokens.\n   *\n   * @param pos index into token queue.\n   *\n   * @return The token, normally a string.\n   */\n  public Object getToken(int pos)\n  {\n    return m_tokenQueue.elementAt(pos);\n  }\n\n  /**\n   * The current size of the token queue.\n   */\n\n  /**\n    * Get size of the token queue.\n   *\n   * @return The size of the token queue.\n   */\n  public int getTokenQueueSize()\n  {\n    return m_tokenQueue.size();\n    \n  }\n\n  /**\n   * An operations map is used instead of a proper parse tree.  It contains\n   * operations codes and indexes into the m_tokenQueue.\n   * I use an array instead of a full parse tree in order to cut down\n   * on the number of objects created.\n   */\n  OpMapVector m_opMap = null;\n\n  /**\n    * Get the opcode list that describes the XPath operations.  It contains\n   * operations codes and indexes into the m_tokenQueue.\n   * I use an array instead of a full parse tree in order to cut down\n   * on the number of objects created.\n   *\n   * @return An IntVector that is the opcode list that describes the XPath operations.\n   */\n  public OpMapVector getOpMap()\n  {\n    return m_opMap;\n  }\n\n\n  /**\n   * The length is always the opcode position + 1.\n   * Length is always expressed as the opcode+length bytes,\n   * so it is always 2 or greater.\n   */\n  public static final int MAPINDEX_LENGTH = 1;\n\n  /**\n   * Replace the large arrays\n   * with a small array.\n   */\n  void shrink()\n  {\n\n    int n = m_opMap.elementAt(MAPINDEX_LENGTH);\n    m_opMap.setToSize(n + 4);\n\n    m_opMap.setElementAt(0,n);\n    m_opMap.setElementAt(0,n+1);\n    m_opMap.setElementAt(0,n+2);\n\n\n    n = m_tokenQueue.size();\n    m_tokenQueue.setToSize(n + 4);\n\n    m_tokenQueue.setElementAt(null,n);\n    m_tokenQueue.setElementAt(null,n + 1);\n    m_tokenQueue.setElementAt(null,n + 2);\n  }\n\n  /**\n  * Given an operation position, return the current op.\n   *\n   * @param opPos index into op map.\n   * @return the op that corresponds to the opPos argument.\n   */\n  public int getOp(int opPos)\n  {\n    return m_opMap.elementAt(opPos);\n  }\n\n  /**\n  * Set the op at index to the given int.\n   *\n   * @param opPos index into op map.\n   * @param value Value to set\n   */\n  public void setOp(int opPos, int value)\n  {\n     m_opMap.setElementAt(value,opPos);\n  }\n  \n  /**\n   * Given an operation position, return the end position, i.e. the\n   * beginning of the next operation.\n   *\n   * @param opPos An op position of an operation for which there is a size \n   *              entry following.\n   * @return position of next operation in m_opMap.\n   */\n  public int getNextOpPos(int opPos)\n  {\n    return opPos + m_opMap.elementAt(opPos + 1);\n  }\n\n  /**\n   * Given a location step position, return the end position, i.e. the\n   * beginning of the next step.\n   *\n   * @param opPos the position of a location step.\n   * @return the position of the next location step.\n   */\n  public int getNextStepPos(int opPos)\n  {\n\n    int stepType = getOp(opPos);\n\n    if ((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES))\n    {\n      return getNextOpPos(opPos);\n    }\n    else if ((stepType >= OpCodes.FIRST_NODESET_OP)\n             && (stepType <= OpCodes.LAST_NODESET_OP))\n    {\n      int newOpPos = getNextOpPos(opPos);\n\n      while (OpCodes.OP_PREDICATE == getOp(newOpPos))\n      {\n        newOpPos = getNextOpPos(newOpPos);\n      }\n\n      stepType = getOp(newOpPos);\n\n      if (!((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES)))\n      {\n        return OpCodes.ENDOP;\n      }\n\n      return newOpPos;\n    }\n    else\n    {\n      throw new RuntimeException(\n        XSLMessages.createXPATHMessage(XPATHErrorResources.ER_UNKNOWN_STEP, new Object[]{new Integer(stepType).toString()})); \n    }\n  }\n\n  /**\n   * Given an operation position, return the end position, i.e. the\n   * beginning of the next operation.\n   *\n   * @param opMap The operations map.\n   * @param opPos index to operation, for which there is a size entry following.\n   * @return position of next operation in m_opMap.\n   */\n  public static int getNextOpPos(int[] opMap, int opPos)\n  {\n    return opPos + opMap[opPos + 1];\n  }\n\n  /**\n   * Given an FROM_stepType position, return the position of the\n   * first predicate, if there is one, or else this will point\n   * to the end of the FROM_stepType.\n   * Example:\n   *  int posOfPredicate = xpath.getNextOpPos(stepPos);\n   *  boolean hasPredicates =\n   *            OpCodes.OP_PREDICATE == xpath.getOp(posOfPredicate);\n   *\n   * @param opPos position of FROM_stepType op. \n   * @return position of predicate in FROM_stepType structure.\n   */\n  public int getFirstPredicateOpPos(int opPos)\n     throws javax.xml.transform.TransformerException\n  {\n\n    int stepType = m_opMap.elementAt(opPos);\n\n    if ((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES))\n    {\n      return opPos + m_opMap.elementAt(opPos + 2);\n    }\n    else if ((stepType >= OpCodes.FIRST_NODESET_OP)\n             && (stepType <= OpCodes.LAST_NODESET_OP))\n    {\n      return opPos + m_opMap.elementAt(opPos + 1);\n    }\n    else if(-2 == stepType)\n    {\n      return -2;\n    }\n    else\n    {\n      error(org.apache.xpath.res.XPATHErrorResources.ER_UNKNOWN_OPCODE);\n      return -1;\n    }\n  }\n  \n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg An error msgkey that corresponds to one of the constants found \n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is \n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which \n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to \n   *                              throw an exception.\n   */\n  public void error(String msg, Object[] args) throws javax.xml.transform.TransformerException\n  {\n\n    java.lang.String fmsg = org.apache.xalan.res.XSLMessages.createXPATHMessage(msg, args);\n    \n\n    throw new javax.xml.transform.TransformerException(fmsg);\n  }\n\n\n  /**\n   * Go to the first child of a given operation.\n   *\n   * @param opPos position of operation.\n   *\n   * @return The position of the first child of the operation.\n   */\n  public static int getFirstChildPos(int opPos)\n  {\n    return opPos + 2;\n  }\n\n  /**\n   * Get the length of an operation.\n   *\n   * @param opPos The position of the operation in the op map.\n   *\n   * @return The size of the operation.\n   */\n  public int getArgLength(int opPos)\n  {\n    return m_opMap.elementAt(opPos + MAPINDEX_LENGTH);\n  }\n\n  /**\n   * Given a location step, get the length of that step.\n   *\n   * @param opPos Position of location step in op map.\n   *\n   * @return The length of the step.\n   */\n  public int getArgLengthOfStep(int opPos)\n  {\n    return m_opMap.elementAt(opPos + MAPINDEX_LENGTH + 1) - 3;\n  }\n\n  /**\n   * Get the first child position of a given location step.\n   *\n   * @param opPos Position of location step in the location map.\n   *\n   * @return The first child position of the step.\n   */\n  public static int getFirstChildPosOfStep(int opPos)\n  {\n    return opPos + 3;\n  }\n\n  /**\n   * Get the test type of the step, i.e. NODETYPE_XXX value.\n   * \n   * @param opPosOfStep The position of the FROM_XXX step.\n   *\n   * @return NODETYPE_XXX value.\n   */\n  public int getStepTestType(int opPosOfStep)\n  {\n  }\n\n  /**\n   * Get the namespace of the step.\n   * \n   * @param opPosOfStep The position of the FROM_XXX step.\n   *\n   * @return The step's namespace, NodeTest.WILD, or null for null namespace.\n   */\n  public String getStepNS(int opPosOfStep)\n  {\n\n    int argLenOfStep = getArgLengthOfStep(opPosOfStep);\n\n    if (argLenOfStep == 3)\n    {\n      int index = m_opMap.elementAt(opPosOfStep + 4);\n\n      if (index >= 0)\n        return (String) m_tokenQueue.elementAt(index);\n      else if (OpCodes.ELEMWILDCARD == index)\n        return NodeTest.WILD;\n      else\n        return null;\n    }\n    else\n      return null;\n  }\n\n  /**\n   * Get the local name of the step.\n   * @param opPosOfStep The position of the FROM_XXX step.\n   *\n   * @return OpCodes.EMPTY, OpCodes.ELEMWILDCARD, or the local name.\n   */\n  public String getStepLocalName(int opPosOfStep)\n  {\n\n    int argLenOfStep = getArgLengthOfStep(opPosOfStep);\n\n    int index;\n\n    switch (argLenOfStep)\n    {\n    case 0 :\n      index = OpCodes.EMPTY;\n      break;\n    case 1 :\n      index = OpCodes.ELEMWILDCARD;\n      break;\n    case 2 :\n      index = m_opMap.elementAt(opPosOfStep + 4);\n      break;\n    case 3 :\n      index = m_opMap.elementAt(opPosOfStep + 5);\n      break;\n    default :\n      index = OpCodes.EMPTY;\n    }\n\n    if (index >= 0)\n      return (String) m_tokenQueue.elementAt(index).toString();\n    else if (OpCodes.ELEMWILDCARD == index)\n      return NodeTest.WILD;\n    else\n      return null;", "functions": [{"function_name": "toString", "code": "  public String toString()\n  {\n    return m_currentPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPatternString", "code": "  public String getPatternString()\n  {\n    return m_currentPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTokenQueue", "code": "  public ObjectVector getTokenQueue()\n  {\n    return m_tokenQueue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getToken", "code": "  public Object getToken(int pos)\n  {\n    return m_tokenQueue.elementAt(pos);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTokenQueueSize", "code": "  public int getTokenQueueSize()\n  {\n    return m_tokenQueue.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOpMap", "code": "  public OpMapVector getOpMap()\n  {\n    return m_opMap;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "shrink", "code": "  void shrink()\n  {\n\n    int n = m_opMap.elementAt(MAPINDEX_LENGTH);\n    m_opMap.setToSize(n + 4);\n\n    m_opMap.setElementAt(0,n);\n    m_opMap.setElementAt(0,n+1);\n    m_opMap.setElementAt(0,n+2);\n\n\n    n = m_tokenQueue.size();\n    m_tokenQueue.setToSize(n + 4);\n\n    m_tokenQueue.setElementAt(null,n);\n    m_tokenQueue.setElementAt(null,n + 1);\n    m_tokenQueue.setElementAt(null,n + 2);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [5, 16], [6, 17], [7, 18], [7, 19], [8, 20], [8, 21], [9, 22], [10, 23], [1, 24], [11, 25], [13, 26], [16, 27], [18, 28], [20, 29], [23, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 5], [17, 6], [18, 7], [19, 7], [20, 8], [21, 8], [22, 9], [23, 10], [24, 1], [25, 11], [26, 13], [27, 16], [28, 18], [29, 20], [30, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getOp", "code": "  public int getOp(int opPos)\n  {\n    return m_opMap.elementAt(opPos);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setOp", "code": "  public void setOp(int opPos, int value)\n  {\n     m_opMap.setElementAt(value,opPos);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNextOpPos", "code": "  public int getNextOpPos(int opPos)\n  {\n    return opPos + m_opMap.elementAt(opPos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNextStepPos", "code": "  public int getNextStepPos(int opPos)\n  {\n\n    int stepType = getOp(opPos);\n\n    if ((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES))\n    {\n      return getNextOpPos(opPos);\n    }\n    else if ((stepType >= OpCodes.FIRST_NODESET_OP)\n             && (stepType <= OpCodes.LAST_NODESET_OP))\n    {\n      int newOpPos = getNextOpPos(opPos);\n\n      while (OpCodes.OP_PREDICATE == getOp(newOpPos))\n      {\n        newOpPos = getNextOpPos(newOpPos);\n      }\n\n      stepType = getOp(newOpPos);\n\n      if (!((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES)))\n      {\n        return OpCodes.ENDOP;\n      }\n\n      return newOpPos;\n    }\n    else\n    {\n      throw new RuntimeException(\n        XSLMessages.createXPATHMessage(XPATHErrorResources.ER_UNKNOWN_STEP, new Object[]{new Integer(stepType).toString()})); ", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "RETURN", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [5, 9], [2, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [6, 16], [6, 17], [7, 18], [11, 19], [13, 20], [4, 21], [14, 22], [19, 23], [13, 24], [20, 25], [20, 26], [21, 27], [22, 28], [15, 29], [14, 30], [30, 31], [23, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 5], [10, 2], [11, 4], [12, 4], [13, 4], [14, 4], [15, 4], [16, 6], [17, 6], [18, 7], [19, 11], [20, 13], [21, 4], [22, 14], [23, 19], [24, 13], [25, 20], [26, 20], [27, 21], [28, 22], [29, 15], [30, 14], [31, 30], [32, 23], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getNextOpPos", "code": "  public static int getNextOpPos(int[] opMap, int opPos)\n  {\n    return opPos + opMap[opPos + 1];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getFirstPredicateOpPos", "code": "  public int getFirstPredicateOpPos(int opPos)\n     throws javax.xml.transform.TransformerException\n  {\n\n    int stepType = m_opMap.elementAt(opPos);\n\n    if ((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES))\n    {\n      return opPos + m_opMap.elementAt(opPos + 2);\n    }\n    else if ((stepType >= OpCodes.FIRST_NODESET_OP)\n             && (stepType <= OpCodes.LAST_NODESET_OP))\n    {\n      return opPos + m_opMap.elementAt(opPos + 1);\n    }\n    else if(-2 == stepType)\n    {\n      return -2;\n    }\n    else\n    {\n      error(org.apache.xpath.res.XPATHErrorResources.ER_UNKNOWN_OPCODE);\n      return -1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [5, 9], [5, 10], [2, 11], [6, 12], [4, 13], [7, 14], [7, 15], [8, 16], [6, 17], [6, 18], [12, 19], [13, 20], [16, 21], [17, 22], [6, 23], [18, 24], [20, 25], [21, 26], [25, 27], [26, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 5], [10, 5], [11, 2], [12, 6], [13, 4], [14, 7], [15, 7], [16, 8], [17, 6], [18, 6], [19, 12], [20, 13], [21, 16], [22, 17], [23, 6], [24, 18], [25, 20], [26, 21], [27, 25], [28, 26], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "error", "code": "  public void error(String msg, Object[] args) throws javax.xml.transform.TransformerException\n  {\n\n    java.lang.String fmsg = org.apache.xalan.res.XSLMessages.createXPATHMessage(msg, args);\n    \n\n    throw new javax.xml.transform.TransformerException(fmsg);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getFirstChildPos", "code": "  public static int getFirstChildPos(int opPos)\n  {\n    return opPos + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getArgLength", "code": "  public int getArgLength(int opPos)\n  {\n    return m_opMap.elementAt(opPos + MAPINDEX_LENGTH);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getArgLengthOfStep", "code": "  public int getArgLengthOfStep(int opPos)\n  {\n    return m_opMap.elementAt(opPos + MAPINDEX_LENGTH + 1) - 3;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getFirstChildPosOfStep", "code": "  public static int getFirstChildPosOfStep(int opPos)\n  {\n    return opPos + 3;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getStepTestType", "code": "  public int getStepTestType(int opPosOfStep)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStepNS", "code": "  public String getStepNS(int opPosOfStep)\n  {\n\n    int argLenOfStep = getArgLengthOfStep(opPosOfStep);\n\n    if (argLenOfStep == 3)\n    {\n      int index = m_opMap.elementAt(opPosOfStep + 4);\n\n      if (index >= 0)\n        return (String) m_tokenQueue.elementAt(index);\n      else if (OpCodes.ELEMWILDCARD == index)\n        return NodeTest.WILD;\n      else\n        return null;\n    }\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [5, 9], [2, 10], [7, 11], [7, 12], [7, 13], [11, 14], [11, 15], [11, 16], [13, 17], [8, 18], [14, 19], [12, 20], [18, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 5], [10, 2], [11, 7], [12, 7], [13, 7], [14, 11], [15, 11], [16, 11], [17, 13], [18, 8], [19, 14], [20, 12], [21, 18], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getStepLocalName", "code": "  public String getStepLocalName(int opPosOfStep)\n  {\n\n    int argLenOfStep = getArgLengthOfStep(opPosOfStep);\n\n    int index;\n\n    switch (argLenOfStep)\n    {\n    case 0 :\n      index = OpCodes.EMPTY;\n      break;\n    case 1 :\n      index = OpCodes.ELEMWILDCARD;\n      break;\n    case 2 :\n      index = m_opMap.elementAt(opPosOfStep + 4);\n      break;\n    case 3 :\n      index = m_opMap.elementAt(opPosOfStep + 5);\n      break;\n    default :\n      index = OpCodes.EMPTY;\n    }\n\n    if (index >= 0)\n      return (String) m_tokenQueue.elementAt(index).toString();\n    else if (OpCodes.ELEMWILDCARD == index)\n      return NodeTest.WILD;\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [6, 10], [6, 11], [8, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [4, 21], [9, 22], [7, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [23, 29], [25, 30], [26, 31], [30, 32], [31, 33], [32, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 6], [11, 6], [12, 8], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 4], [22, 9], [23, 7], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 23], [30, 25], [31, 26], [32, 30], [33, 31], [34, 32], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}], "label": 1}
{"sample_id": "camel-1.4-2553", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/atom/AtomEndpoint.java", "language": "java", "name": "org.apache.camel.component.atom.AtomEndpoint", "code": "public class AtomEndpoint extends DefaultPollingEndpoint<Exchange> {\n\n    /**\n     * Header key for the {@link org.apache.abdera.model.Feed} object is stored on the in message on the exchange.\n     */\n    public static final String HEADER_ATOM_FEED = \"org.apache.camel.component.atom.feed\";\n\n    private String atomUri;\n    private boolean splitEntries = true;\n    private Date lastUpdate;\n    private boolean filter = true;\n\n    public AtomEndpoint(String endpointUri, AtomComponent component, String atomUri) {\n        super(endpointUri, component);\n        this.atomUri = atomUri;\n\n        ObjectHelper.notNull(atomUri, \"atomUri property\");\n    }\n\n    public AtomEndpoint(String endpointUri, String atomUri) {\n        this(endpointUri);\n        this.atomUri = atomUri;\n\n        ObjectHelper.notNull(atomUri, \"atomUri property\");\n    }\n\n    public AtomEndpoint(String endpointUri) {\n        super(endpointUri);\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public Producer<Exchange> createProducer() throws Exception {\n        throw new UnsupportedOperationException(\"AtomProducer is not implemented\");\n    }\n\n    public Consumer<Exchange> createConsumer(Processor processor) throws Exception {\n        AtomConsumerSupport answer;\n        if (isSplitEntries()) {\n            answer = new AtomEntryPollingConsumer(this, processor, filter, lastUpdate);\n        } else {\n            answer = new AtomPollingConsumer(this, processor);\n        }\n        answer.setDelay(AtomConsumerSupport.DEFAULT_CONSUMER_DELAY);\n        configureConsumer(answer);\n        return answer;\n    }\n\n    /**\n     * Creates an Exchange with the entries as the in body.\n     *\n     * @param feed   the atom feed\n     * @return the created exchange\n     */\n    public Exchange createExchange(Feed feed) {\n        Exchange exchange = createExchange();\n        exchange.getIn().setBody(feed.getEntries());\n        exchange.getIn().setHeader(HEADER_ATOM_FEED, feed);\n        return exchange;\n    }\n\n    /**\n     * Creates an Exchange with the given entry as the in body.\n     *\n     * @param feed   the atom feed\n     * @param entry  the entry as the in body\n     * @return the created exchange\n     */\n    public Exchange createExchange(Feed feed, Entry entry) {\n        Exchange exchange = createExchange();\n        exchange.getIn().setBody(entry);\n        exchange.getIn().setHeader(HEADER_ATOM_FEED, feed);\n        return exchange;\n    }\n\n\n    public String getAtomUri() {\n        return atomUri;\n    }\n\n    public void setAtomUri(String atomUri) {\n        this.atomUri = atomUri;\n    }\n\n    public boolean isSplitEntries() {\n        return splitEntries;\n    }\n\n    /**\n     * Sets whether or not entries should be sent individually or whether the entire\n     * feed should be sent as a single message\n     */\n    public void setSplitEntries(boolean splitEntries) {\n        this.splitEntries = splitEntries;\n    }\n\n    public Date getLastUpdate() {\n        return lastUpdate;\n    }\n\n    /**\n     * Sets the timestamp to be used for filtering entries from the atom feeds.\n     * This options is only in conjunction with the splitEntries.\n     */\n    public void setLastUpdate(Date lastUpdate) {\n        this.lastUpdate = lastUpdate;\n    }\n\n    public boolean isFilter() {\n        return filter;\n    }\n\n    /**\n     * Sets wether to use filtering or not of the entries.\n     */\n    public void setFilter(boolean filter) {\n        this.filter = filter;", "functions": [{"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProducer", "code": "    public Producer<Exchange> createProducer() throws Exception {\n        throw new UnsupportedOperationException(\"AtomProducer is not implemented\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createConsumer", "code": "    public Consumer<Exchange> createConsumer(Processor processor) throws Exception {\n        AtomConsumerSupport answer;\n        if (isSplitEntries()) {\n            answer = new AtomEntryPollingConsumer(this, processor, filter, lastUpdate);\n        } else {\n            answer = new AtomPollingConsumer(this, processor);\n        }\n        answer.setDelay(AtomConsumerSupport.DEFAULT_CONSUMER_DELAY);\n        configureConsumer(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "createExchange", "code": "    public Exchange createExchange(Feed feed) {\n        Exchange exchange = createExchange();\n        exchange.getIn().setBody(feed.getEntries());\n        exchange.getIn().setHeader(HEADER_ATOM_FEED, feed);\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createExchange", "code": "    public Exchange createExchange(Feed feed, Entry entry) {\n        Exchange exchange = createExchange();\n        exchange.getIn().setBody(entry);\n        exchange.getIn().setHeader(HEADER_ATOM_FEED, feed);\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getAtomUri", "code": "    public String getAtomUri() {\n        return atomUri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAtomUri", "code": "    public void setAtomUri(String atomUri) {\n        this.atomUri = atomUri;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSplitEntries", "code": "    public boolean isSplitEntries() {\n        return splitEntries;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSplitEntries", "code": "    public void setSplitEntries(boolean splitEntries) {\n        this.splitEntries = splitEntries;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLastUpdate", "code": "    public Date getLastUpdate() {\n        return lastUpdate;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLastUpdate", "code": "    public void setLastUpdate(Date lastUpdate) {\n        this.lastUpdate = lastUpdate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFilter", "code": "    public boolean isFilter() {\n        return filter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFilter", "code": "    public void setFilter(boolean filter) {\n        this.filter = filter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AtomEndpoint", "code": "    public AtomEndpoint(String endpointUri, AtomComponent component, String atomUri) {\n        super(endpointUri, component);\n        this.atomUri = atomUri;\n\n        ObjectHelper.notNull(atomUri, \"atomUri property\");", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "AtomEndpoint", "code": "    public AtomEndpoint(String endpointUri, String atomUri) {\n        this(endpointUri);\n        this.atomUri = atomUri;\n\n        ObjectHelper.notNull(atomUri, \"atomUri property\");", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "AtomEndpoint", "code": "    public AtomEndpoint(String endpointUri) {\n        super(endpointUri);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-947", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/condition/IsSigned.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.condition.IsSigned", "code": "public class IsSigned extends DataType implements Condition {\n\n    private static final String SIG_START = \"META-INF/\";\n    private static final String SIG_END = \".SF\";\n    private static final int    SHORT_SIG_LIMIT = 8;\n\n    private String name;\n    private File file;\n\n    /**\n     * The jarfile that is to be tested for the presence\n     * of a signature.\n     * @param file jarfile to be tested.\n     */\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n   /**\n     * The signature name to check jarfile for.\n     * @param name signature to look for.\n     */\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    /**\n     * Returns <code>true</code> if the file exists and is signed with\n     * the signature specified, or, if <code>name</code> wasn't\n     * specified, if the file contains a signature.\n     * @param zipFile the zipfile to check\n     * @param name the signature to check (may be killed)\n     * @return true if the file is signed.\n     * @throws IOException on error\n     */\n    public static boolean isSigned(File zipFile, String name)\n        throws IOException {\n        ZipFile jarFile = null;\n        try {\n            jarFile = new ZipFile(zipFile);\n            if (null == name) {\n                Enumeration entries = jarFile.getEntries();\n                while (entries.hasMoreElements()) {\n                    String eName = ((ZipEntry) entries.nextElement()).getName();\n                    if (eName.startsWith(SIG_START)\n                        && eName.endsWith(SIG_END)) {\n                        return true;\n                    }\n                }\n                return false;\n            }\n            boolean shortSig = jarFile.getEntry(SIG_START\n                        + name.toUpperCase()\n                        + SIG_END) != null;\n            boolean longSig = false;\n            if (name.length() > SHORT_SIG_LIMIT) {\n                longSig = jarFile.getEntry(\n                    SIG_START\n                    + name.substring(0, SHORT_SIG_LIMIT).toUpperCase()\n                    + SIG_END) != null;\n            }\n\n            return shortSig || longSig;\n        } finally {\n            ZipFile.closeQuietly(jarFile);\n        }\n    }\n\n    /**\n     * Returns <code>true</code> if the file exists and is signed with\n     * the signature specified, or, if <code>name</code> wasn't\n     * specified, if the file contains a signature.\n     * @return true if the file is signed.\n     */\n    public boolean eval() {\n        if (file == null) {\n            throw new BuildException(\"The file attribute must be set.\");\n        }\n        if (!file.exists()) {\n            log(\"The file \\\"\" + file.getAbsolutePath()\n                + \"\\\" does not exist.\", Project.MSG_VERBOSE);\n            return false;\n        }\n\n        boolean r = false;\n        try {\n            r = isSigned(file, name);\n        } catch (IOException e) {\n            log(\"Got IOException reading file \\\"\" + file.getAbsolutePath()\n                + \"\\\"\" + e, Project.MSG_WARN);\n        }\n\n        if (r) {\n            log(\"File \\\"\" + file.getAbsolutePath() + \"\\\" is signed.\",\n                Project.MSG_VERBOSE);\n        }\n        return r;", "functions": [{"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSigned", "code": "    public static boolean isSigned(File zipFile, String name)\n        throws IOException {\n        ZipFile jarFile = null;\n        try {\n            jarFile = new ZipFile(zipFile);\n            if (null == name) {\n                Enumeration entries = jarFile.getEntries();\n                while (entries.hasMoreElements()) {\n                    String eName = ((ZipEntry) entries.nextElement()).getName();\n                    if (eName.startsWith(SIG_START)\n                        && eName.endsWith(SIG_END)) {\n                        return true;\n                    }\n                }\n                return false;\n            }\n            boolean shortSig = jarFile.getEntry(SIG_START\n                        + name.toUpperCase()\n                        + SIG_END) != null;\n            boolean longSig = false;\n            if (name.length() > SHORT_SIG_LIMIT) {\n                longSig = jarFile.getEntry(\n                    SIG_START\n                    + name.substring(0, SHORT_SIG_LIMIT).toUpperCase()\n                    + SIG_END) != null;\n            }\n\n            return shortSig || longSig;\n        } finally {\n            ZipFile.closeQuietly(jarFile);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [6, 12], [9, 13], [1, 14], [2, 15], [12, 16], [7, 17], [8, 18], [9, 19], [9, 20], [9, 21], [13, 22], [14, 23], [6, 24], [18, 25], [18, 26], [19, 27], [20, 28], [24, 29], [26, 30], [20, 31], [20, 32], [21, 33], [29, 34], [29, 35], [30, 36], [31, 37], [35, 38], [36, 39], [31, 40], [37, 41], [37, 42], [38, 43], [40, 44], [32, 45], [43, 46], [46, 47], [46, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 6], [13, 9], [14, 1], [15, 2], [16, 12], [17, 7], [18, 8], [19, 9], [20, 9], [21, 9], [22, 13], [23, 14], [24, 6], [25, 18], [26, 18], [27, 19], [28, 20], [29, 24], [30, 26], [31, 20], [32, 20], [33, 21], [34, 29], [35, 29], [36, 30], [37, 31], [38, 35], [39, 36], [40, 31], [41, 37], [42, 37], [43, 38], [44, 40], [45, 32], [46, 43], [47, 46], [48, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "eval", "code": "    public boolean eval() {\n        if (file == null) {\n            throw new BuildException(\"The file attribute must be set.\");\n        }\n        if (!file.exists()) {\n            log(\"The file \\\"\" + file.getAbsolutePath()\n                + \"\\\" does not exist.\", Project.MSG_VERBOSE);\n            return false;\n        }\n\n        boolean r = false;\n        try {\n            r = isSigned(file, name);\n        } catch (IOException e) {\n            log(\"Got IOException reading file \\\"\" + file.getAbsolutePath()\n                + \"\\\"\" + e, Project.MSG_WARN);\n        }\n\n        if (r) {\n            log(\"File \\\"\" + file.getAbsolutePath() + \"\\\" is signed.\",\n                Project.MSG_VERBOSE);\n        }\n        return r;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "IF", "IF", "CATCH", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [5, 8], [6, 9], [3, 10], [4, 11], [5, 12], [6, 13], [9, 14], [2, 15], [7, 16], [10, 17], [12, 18], [5, 19], [13, 20], [15, 21], [16, 22], [19, 23], [20, 24], [21, 25], [21, 26], [22, 27], [23, 28], [23, 29], [26, 30], [26, 31], [27, 32], [27, 33], [29, 34], [29, 35], [33, 36], [33, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 5], [9, 6], [10, 3], [11, 4], [12, 5], [13, 6], [14, 9], [15, 2], [16, 7], [17, 10], [18, 12], [19, 5], [20, 13], [21, 15], [22, 16], [23, 19], [24, 20], [25, 21], [26, 21], [27, 22], [28, 23], [29, 23], [30, 26], [31, 26], [32, 27], [33, 27], [34, 29], [35, 29], [36, 33], [37, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}], "label": 1}
{"sample_id": "poi-2.0-5426", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/formula/NamePtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.NamePtg", "code": "public class NamePtg\n    extends Ptg\n{\n    public final static short sid  = 0x23;\n    private final static int  SIZE = 5;\n    private short             field_1_label_index;\n    boolean xtra=false;\n\n\n    private NamePtg() {\n    }\n\n    /** Creates new NamePtg */\n\n    public NamePtg(String name, Workbook book)\n    {\n        final short n = (short) (book.getNumNames() + 1);\n        NameRecord rec;\n        for (short i = 1; i < n; i++) {\n            rec = book.getNameRecord(i - 1);\n            if (name.equals(rec.getNameText())) {\n                field_1_label_index = i;\n                return;\n            }\n        }\n        rec = new NameRecord();\n        rec.setNameText(name);\n        rec.setNameTextLength((byte) name.length());\n        book.addName(rec);\n        field_1_label_index = n;\n    }\n\n    /** Creates new NamePtg */\n\n    public NamePtg(byte [] data, int offset)\n    {\n        offset++;\n        field_1_label_index = LittleEndian.getShort(data, offset );\n        field_2_zero        = LittleEndian.getShort(data, offset + 2);\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n        array[offset+0]= (byte) (sid + ptgClass);\n        LittleEndian.putShort(array,offset+1,field_1_label_index);\n        LittleEndian.putShort(array,offset+3, field_2_zero);\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public String toFormulaString(Workbook book)\n    {\n        NameRecord rec = book.getNameRecord(field_1_label_index - 1);\n        return rec.getNameText();\n    }\n    \n    public byte getDefaultOperandClass() {return Ptg.CLASS_REF;}\n\n    public Object clone() {\n      NamePtg ptg = new NamePtg();\n      ptg.field_1_label_index = field_1_label_index;\n      ptg.field_2_zero = field_2_zero;\n      return ptg;", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[offset+0]= (byte) (sid + ptgClass);\n        LittleEndian.putShort(array,offset+1,field_1_label_index);\n        LittleEndian.putShort(array,offset+3, field_2_zero);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [6, 8], [7, 9], [5, 10], [5, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 6], [9, 7], [10, 5], [11, 5], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        NameRecord rec = book.getNameRecord(field_1_label_index - 1);\n        return rec.getNameText();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_REF;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      NamePtg ptg = new NamePtg();\n      ptg.field_1_label_index = field_1_label_index;\n      ptg.field_2_zero = field_2_zero;\n      return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "NamePtg", "code": "    private NamePtg() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NamePtg", "code": "    public NamePtg(String name, Workbook book)\n    {\n        final short n = (short) (book.getNumNames() + 1);\n        NameRecord rec;\n        for (short i = 1; i < n; i++) {\n            rec = book.getNameRecord(i - 1);\n            if (name.equals(rec.getNameText())) {\n                field_1_label_index = i;\n                return;\n            }\n        }\n        rec = new NameRecord();\n        rec.setNameText(name);\n        rec.setNameTextLength((byte) name.length());\n        book.addName(rec);\n        field_1_label_index = n;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [10, 12], [1, 13], [8, 14], [13, 15], [1, 16], [1, 17], [3, 18], [13, 19], [15, 20], [16, 21], [18, 22], [18, 23], [13, 24], [21, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 10], [13, 1], [14, 8], [15, 13], [16, 1], [17, 1], [18, 3], [19, 13], [20, 15], [21, 16], [22, 18], [23, 18], [24, 13], [25, 21], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "NamePtg", "code": "    public NamePtg(byte [] data, int offset)\n    {\n        offset++;\n        field_1_label_index = LittleEndian.getShort(data, offset );\n        field_2_zero        = LittleEndian.getShort(data, offset + 2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "camel-1.0-1511", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/bam/processor/JpaBamProcessor.java", "language": "java", "name": "org.apache.camel.bam.processor.JpaBamProcessor", "code": "public class JpaBamProcessor extends JpaBamProcessorSupport<ProcessInstance> {\n    private static final transient Log log = LogFactory.getLog(JpaBamProcessor.class);\n\n    public JpaBamProcessor(TransactionTemplate transactionTemplate, JpaTemplate template, Expression<Exchange> correlationKeyExpression, ActivityRules activityRules) {\n        super(transactionTemplate, template, correlationKeyExpression, activityRules);\n    }\n\n    public JpaBamProcessor(TransactionTemplate transactionTemplate, JpaTemplate template, Expression<Exchange> correlationKeyExpression, ActivityRules activityRules, Class<ProcessInstance> entitytype) {\n        super(transactionTemplate, template, correlationKeyExpression, activityRules, entitytype);\n    }\n\n    protected void processEntity(Exchange exchange, ProcessInstance process) throws Exception {\n        if (log.isDebugEnabled()) {\n            log.debug(\"Processing process instance: \" + process);\n        }\n\n        ActivityRules rules = getActivityRules();\n        ActivityState state = process.getOrCreateActivityState(rules);\n\n        state.processExchange(rules, new ProcessContext(exchange, rules, state));\n\n        rules.getProcessRules().processExchange(exchange, process);", "functions": [{"function_name": "processEntity", "code": "    protected void processEntity(Exchange exchange, ProcessInstance process) throws Exception {\n        if (log.isDebugEnabled()) {\n            log.debug(\"Processing process instance: \" + process);\n        }\n\n        ActivityRules rules = getActivityRules();\n        ActivityState state = process.getOrCreateActivityState(rules);\n\n        state.processExchange(rules, new ProcessContext(exchange, rules, state));\n\n        rules.getProcessRules().processExchange(exchange, process);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [6, 9], [7, 10], [1, 11], [2, 12], [3, 13], [13, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 6], [10, 7], [11, 1], [12, 2], [13, 3], [14, 13], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "JpaBamProcessor", "code": "    public JpaBamProcessor(TransactionTemplate transactionTemplate, JpaTemplate template, Expression<Exchange> correlationKeyExpression, ActivityRules activityRules) {\n        super(transactionTemplate, template, correlationKeyExpression, activityRules);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "JpaBamProcessor", "code": "    public JpaBamProcessor(TransactionTemplate transactionTemplate, JpaTemplate template, Expression<Exchange> correlationKeyExpression, ActivityRules activityRules, Class<ProcessInstance> entitytype) {\n        super(transactionTemplate, template, correlationKeyExpression, activityRules, entitytype);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "ant-1.7-1098", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/RegexpPatternMapper.java", "language": "java", "name": "org.apache.tools.ant.util.RegexpPatternMapper", "code": "public class RegexpPatternMapper implements FileNameMapper {\n\n    private static final int DECIMAL = 10;\n\n    protected RegexpMatcher reg = null;\n    protected char[] to = null;\n    protected StringBuffer result = new StringBuffer();\n\n    /**\n     * Constructor for RegexpPatternMapper.\n     * @throws BuildException on error.\n     */\n    public RegexpPatternMapper() throws BuildException {\n        reg = (new RegexpMatcherFactory()).newRegexpMatcher();\n    }\n\n    private boolean handleDirSep = false;\n    private int     regexpOptions = 0;\n\n    /**\n     * Attribute specifing whether to ignore the difference\n     * between / and \\ (the two common directory characters).\n     * @param handleDirSep a boolean, default is false.\n     * @since Ant 1.6.3\n     */\n    public void setHandleDirSep(boolean handleDirSep) {\n        this.handleDirSep = handleDirSep;\n    }\n\n    /**\n     * Attribute specifing whether to ignore the case difference\n     * in the names.\n     *\n     * @param caseSensitive a boolean, default is false.\n     * @since Ant 1.6.3\n     */\n    public void setCaseSensitive(boolean caseSensitive) {\n        if (!caseSensitive) {\n            regexpOptions = RegexpMatcher.MATCH_CASE_INSENSITIVE;\n        } else {\n            regexpOptions = 0;\n        }\n    }\n\n    /**\n     * Sets the &quot;from&quot; pattern. Required.\n     * @param from the from pattern.\n     * @throws BuildException on error.\n     */\n    public void setFrom(String from) throws BuildException {\n        try {\n            reg.setPattern(from);\n        } catch (NoClassDefFoundError e) {\n            throw new BuildException(\"Cannot load regular expression matcher\",\n                                     e);\n        }\n    }\n\n    /**\n     * Sets the &quot;to&quot; pattern. Required.\n     * @param to the to pattern.\n     * @throws BuildException on error.\n     */\n    public void setTo(String to) {\n        this.to = to.toCharArray();\n    }\n\n    /**\n     * Returns null if the source file name doesn't match the\n     * &quot;from&quot; pattern, an one-element array containing the\n     * translated file otherwise.\n     * @param sourceFileName the source file name\n     * @return a one-element array containing the translated file or\n     *         null if the to pattern did not match\n     */\n    public String[] mapFileName(String sourceFileName) {\n        if (handleDirSep) {\n            if (sourceFileName.indexOf(\"\\\\\") != -1) {\n                sourceFileName = sourceFileName.replace('\\\\', '/');\n            }\n        }\n        if (reg == null  || to == null\n            || !reg.matches(sourceFileName, regexpOptions)) {\n            return null;\n        }\n        return new String[] {replaceReferences(sourceFileName)};\n    }\n\n    /**\n     * Replace all backreferences in the to pattern with the matched\n     * groups of the source.\n     * @param source the source file name.\n     * @return the translated file name.\n     */\n    protected String replaceReferences(String source) {\n        Vector v = reg.getGroups(source, regexpOptions);\n\n        result.setLength(0);\n        for (int i = 0; i < to.length; i++) {\n            if (to[i] == '\\\\') {\n                if (++i < to.length) {\n                    int value = Character.digit(to[i], DECIMAL);\n                    if (value > -1) {\n                        result.append((String) v.elementAt(value));\n                    } else {\n                        result.append(to[i]);\n                    }\n                } else {\n                    result.append('\\\\');\n                }\n            } else {\n                result.append(to[i]);\n            }\n        }\n        return result.substring(0);", "functions": [{"function_name": "setHandleDirSep", "code": "    public void setHandleDirSep(boolean handleDirSep) {\n        this.handleDirSep = handleDirSep;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCaseSensitive", "code": "    public void setCaseSensitive(boolean caseSensitive) {\n        if (!caseSensitive) {\n            regexpOptions = RegexpMatcher.MATCH_CASE_INSENSITIVE;\n        } else {\n            regexpOptions = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setFrom", "code": "    public void setFrom(String from) throws BuildException {\n        try {\n            reg.setPattern(from);\n        } catch (NoClassDefFoundError e) {\n            throw new BuildException(\"Cannot load regular expression matcher\",\n                                     e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setTo", "code": "    public void setTo(String to) {\n        this.to = to.toCharArray();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "mapFileName", "code": "    public String[] mapFileName(String sourceFileName) {\n        if (handleDirSep) {\n            if (sourceFileName.indexOf(\"\\\\\") != -1) {\n                sourceFileName = sourceFileName.replace('\\\\', '/');\n            }\n        }\n        if (reg == null  || to == null\n            || !reg.matches(sourceFileName, regexpOptions)) {\n            return null;\n        }\n        return new String[] {replaceReferences(sourceFileName)};", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [1, 10], [6, 11], [8, 12], [8, 13], [9, 14], [12, 15], [13, 16], [14, 17], [14, 18], [9, 19], [18, 20], [19, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 1], [11, 6], [12, 8], [13, 8], [14, 9], [15, 12], [16, 13], [17, 14], [18, 14], [19, 9], [20, 18], [21, 19], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "replaceReferences", "code": "    protected String replaceReferences(String source) {\n        Vector v = reg.getGroups(source, regexpOptions);\n\n        result.setLength(0);\n        for (int i = 0; i < to.length; i++) {\n            if (to[i] == '\\\\') {\n                if (++i < to.length) {\n                    int value = Character.digit(to[i], DECIMAL);\n                    if (value > -1) {\n                        result.append((String) v.elementAt(value));\n                    } else {\n                        result.append(to[i]);\n                    }\n                } else {\n                    result.append('\\\\');\n                }\n            } else {\n                result.append(to[i]);\n            }\n        }\n        return result.substring(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [5, 8], [2, 9], [7, 10], [3, 11], [9, 12], [2, 13], [9, 14], [12, 15], [9, 16], [14, 17], [14, 18], [14, 19], [14, 20], [18, 21], [20, 22], [21, 23], [19, 24], [18, 25], [18, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 5], [9, 2], [10, 7], [11, 3], [12, 9], [13, 2], [14, 9], [15, 12], [16, 9], [17, 14], [18, 14], [19, 14], [20, 14], [21, 18], [22, 20], [23, 21], [24, 19], [25, 18], [26, 18], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "RegexpPatternMapper", "code": "    public RegexpPatternMapper() throws BuildException {\n        reg = (new RegexpMatcherFactory()).newRegexpMatcher();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "ant-1.6-727", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/ImportTask.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.ImportTask", "code": "public class ImportTask extends Task {\n    private String file;\n    private boolean optional;\n    private static final FileUtils FILE_UTILS = FileUtils.newFileUtils();\n\n    /**\n     * sets the optional attribute\n     *\n     * @param optional if true ignore files that are not present,\n     *                 default is false\n     */\n    public void setOptional(boolean optional) {\n        this.optional = optional;\n    }\n\n    /**\n     * the name of the file to import. How relative paths are resolved is still\n     * in flux: use absolute paths for safety.\n     * @param file the name of the file\n     */\n    public void setFile(String file) {\n        this.file = file;\n    }\n\n    /**\n     *  This relies on the task order model.\n     *\n     */\n    public void execute() {\n        if (file == null) {\n            throw new BuildException(\"import requires file attribute\");\n        }\n        if (getOwningTarget() == null\n            || !\"\".equals(getOwningTarget().getName())) {\n            throw new BuildException(\"import only allowed as a top-level task\");\n        }\n\n        ProjectHelper helper =\n                (ProjectHelper) getProject().getReference(\"ant.projectHelper\");\n        Vector importStack = helper.getImportStack();\n\n        if (importStack.size() == 0) {\n            throw new BuildException(\"import requires support in ProjectHelper\");\n        }\n\n        if (getLocation() == null || getLocation().getFileName() == null) {\n            throw new BuildException(\"Unable to get location of import task\");\n        }\n\n        File buildFile = new File(getLocation().getFileName());\n        buildFile = new File(buildFile.getAbsolutePath());\n\n        getProject().log(\"Importing file \" + file + \" from \"\n                         + buildFile.getAbsolutePath(), Project.MSG_VERBOSE);\n\n\n        File buildFileParent = new File(buildFile.getParent());\n        File importedFile = FILE_UTILS.resolveFile(buildFileParent,  file);\n\n        if (!importedFile.exists()) {\n            String message =\n                \"Cannot find \" + file + \" imported from \"\n                + buildFile.getAbsolutePath();\n            if (optional) {\n                getProject().log(message, Project.MSG_VERBOSE);\n                return;\n            } else {\n                throw new BuildException(message);\n            }\n        }\n\n        if (importStack.contains(importedFile)) {\n            getProject().log(\n                \"Skipped already imported file:\\n   \"\n                + importedFile + \"\\n\", Project.MSG_VERBOSE);\n            return;\n        }\n\n        try {\n            helper.parse(getProject(), importedFile);\n        } catch (BuildException ex) {\n            throw ProjectHelper.addLocationToBuildException(\n                ex, getLocation());", "functions": [{"function_name": "setOptional", "code": "    public void setOptional(boolean optional) {\n        this.optional = optional;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFile", "code": "    public void setFile(String file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() {\n        if (file == null) {\n            throw new BuildException(\"import requires file attribute\");\n        }\n        if (getOwningTarget() == null\n            || !\"\".equals(getOwningTarget().getName())) {\n            throw new BuildException(\"import only allowed as a top-level task\");\n        }\n\n        ProjectHelper helper =\n                (ProjectHelper) getProject().getReference(\"ant.projectHelper\");\n        Vector importStack = helper.getImportStack();\n\n        if (importStack.size() == 0) {\n            throw new BuildException(\"import requires support in ProjectHelper\");\n        }\n\n        if (getLocation() == null || getLocation().getFileName() == null) {\n            throw new BuildException(\"Unable to get location of import task\");\n        }\n\n        File buildFile = new File(getLocation().getFileName());\n        buildFile = new File(buildFile.getAbsolutePath());\n\n        getProject().log(\"Importing file \" + file + \" from \"\n                         + buildFile.getAbsolutePath(), Project.MSG_VERBOSE);\n\n\n        File buildFileParent = new File(buildFile.getParent());\n        File importedFile = FILE_UTILS.resolveFile(buildFileParent,  file);\n\n        if (!importedFile.exists()) {\n            String message =\n                \"Cannot find \" + file + \" imported from \"\n                + buildFile.getAbsolutePath();\n            if (optional) {\n                getProject().log(message, Project.MSG_VERBOSE);\n                return;\n            } else {\n                throw new BuildException(message);\n            }\n        }\n\n        if (importStack.contains(importedFile)) {\n            getProject().log(\n                \"Skipped already imported file:\\n   \"\n                + importedFile + \"\\n\", Project.MSG_VERBOSE);\n            return;\n        }\n\n        try {\n            helper.parse(getProject(), importedFile);\n        } catch (BuildException ex) {\n            throw ProjectHelper.addLocationToBuildException(\n                ex, getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "CATCH", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [3, 15], [0, 16], [0, 17], [7, 18], [8, 19], [11, 20], [12, 21], [13, 22], [1, 23], [2, 24], [3, 25], [3, 26], [4, 27], [5, 28], [16, 29], [17, 30], [6, 31], [7, 32], [18, 33], [18, 34], [8, 35], [19, 36], [19, 37], [9, 38], [11, 39], [20, 40], [20, 41], [12, 42], [21, 43], [22, 44], [23, 45], [2, 46], [28, 47], [29, 48], [30, 49], [31, 50], [32, 51], [33, 52], [33, 53], [34, 54], [34, 55], [35, 56], [10, 57], [39, 58], [40, 59], [41, 60], [41, 61], [42, 62], [44, 63], [46, 64], [25, 65], [25, 66], [26, 67], [48, 68], [48, 69], [50, 70], [51, 71], [53, 72], [56, 73], [57, 74], [58, 75], [59, 76], [62, 77], [64, 78], [65, 79], [25, 80], [67, 81], [67, 82], [69, 83], [69, 84], [74, 85], [76, 86], [78, 87], [78, 88], [80, 89], [82, 90], [82, 91], [84, 92], [88, 93], [91, 94], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 3], [16, 0], [17, 0], [18, 7], [19, 8], [20, 11], [21, 12], [22, 13], [23, 1], [24, 2], [25, 3], [26, 3], [27, 4], [28, 5], [29, 16], [30, 17], [31, 6], [32, 7], [33, 18], [34, 18], [35, 8], [36, 19], [37, 19], [38, 9], [39, 11], [40, 20], [41, 20], [42, 12], [43, 21], [44, 22], [45, 23], [46, 2], [47, 28], [48, 29], [49, 30], [50, 31], [51, 32], [52, 33], [53, 33], [54, 34], [55, 34], [56, 35], [57, 10], [58, 39], [59, 40], [60, 41], [61, 41], [62, 42], [63, 44], [64, 46], [65, 25], [66, 25], [67, 26], [68, 48], [69, 48], [70, 50], [71, 51], [72, 53], [73, 56], [74, 57], [75, 58], [76, 59], [77, 62], [78, 64], [79, 65], [80, 25], [81, 67], [82, 67], [83, 69], [84, 69], [85, 74], [86, 76], [87, 78], [88, 78], [89, 80], [90, 82], [91, 82], [92, 84], [93, 88], [94, 91], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}], "label": 1}
{"sample_id": "poi-3.0-6230", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hpsf/CustomProperty.java", "language": "java", "name": "org.apache.poi.hpsf.CustomProperty", "code": "public class CustomProperty extends MutableProperty\n{\n\n    private String name;\n\n    /**\n     * <p>Creates an empty {@link CustomProperty}. The set methods must be\n     * called to make it usable.</p>\n     */\n    public CustomProperty()\n    {\n        this.name = null;\n    }\n\n    /**\n     * <p>Creates a {@link CustomProperty} without a name by copying the\n     * underlying {@link Property}' attributes.</p>\n     * \n     * @param property the property to copy\n     */\n    public CustomProperty(final Property property)\n    {\n        this(property, null);\n    }\n\n    /**\n     * <p>Creates a {@link CustomProperty} with a name.</p>\n     * \n     * @param property This property's attributes are copied to the new custom\n     *        property.\n     * @param name The new custom property's name.\n     */\n    public CustomProperty(final Property property, final String name)\n    {\n        super(property);\n        this.name = name;\n    }\n\n    /**\n     * <p>Gets the property's name.</p>\n     *\n     * @return the property's name.\n     */\n    public String getName()\n    {\n        return name;\n    }\n\n    /**\n     * <p>Sets the property's name.</p>\n     *\n     * @param name The name to set.\n     */\n    public void setName(final String name)\n    {\n        this.name = name;\n    }\n\n\n    /**\n     * <p>Compares two custom properties for equality. The method returns\n     * <code>true</code> if all attributes of the two custom properties are\n     * equal.</p>\n     * \n     * @param o The custom property to compare with.\n     * @return <code>true</code> if both custom properties are equal, else\n     *         <code>false</code>.\n     * \n     * @see java.util.AbstractSet#equals(java.lang.Object)\n     */\n    public boolean equalsContents(final Object o)\n    {\n        final CustomProperty c = (CustomProperty) o;\n        final String name1 = c.getName();\n        final String name2 = this.getName();\n        boolean equalNames = true;\n        if (name1 == null)\n            equalNames = name2 == null;\n        else\n            equalNames = name1.equals(name2);\n        return equalNames && c.getID() == this.getID()\n                && c.getType() == this.getType()\n                && c.getValue().equals(this.getValue());\n    }\n\n    /**\n     * @see java.util.AbstractSet#hashCode()\n     */\n    public int hashCode()\n    {\n        return (int) this.getID();", "functions": [{"function_name": "getName", "code": "    public String getName()\n    {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(final String name)\n    {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "equalsContents", "code": "    public boolean equalsContents(final Object o)\n    {\n        final CustomProperty c = (CustomProperty) o;\n        final String name1 = c.getName();\n        final String name2 = this.getName();\n        boolean equalNames = true;\n        if (name1 == null)\n            equalNames = name2 == null;\n        else\n            equalNames = name1.equals(name2);\n        return equalNames && c.getID() == this.getID()\n                && c.getType() == this.getType()\n                && c.getValue().equals(this.getValue());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [8, 10], [8, 11], [2, 12], [2, 13], [9, 14], [3, 15], [5, 16], [10, 17], [11, 18], [11, 19], [12, 20], [13, 21], [4, 22], [18, 23], [19, 24], [21, 25], [17, 26], [18, 27], [24, 28], [24, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 8], [11, 8], [12, 2], [13, 2], [14, 9], [15, 3], [16, 5], [17, 10], [18, 11], [19, 11], [20, 12], [21, 13], [22, 4], [23, 18], [24, 19], [25, 21], [26, 17], [27, 18], [28, 24], [29, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "hashCode", "code": "    public int hashCode()\n    {\n        return (int) this.getID();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CustomProperty", "code": "    public CustomProperty()\n    {\n        this.name = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CustomProperty", "code": "    public CustomProperty(final Property property)\n    {\n        this(property, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CustomProperty", "code": "    public CustomProperty(final Property property, final String name)\n    {\n        super(property);\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "jedit-4.1-4124", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/XThis.java", "language": "java", "name": "bsh.XThis", "code": "class XThis extends This \n\t{\n\t/**\n\t\tA cache of proxy interface handlers.\n\t\tCurrently just one per interface.\n\t*/\n\tHashtable interfaces;\n\n\tInvocationHandler invocationHandler = new Handler();\n\n\tXThis( NameSpace namespace, Interpreter declaringInterp ) { \n\t\tsuper( namespace, declaringInterp ); \n\t}\n\n\tpublic String toString() {\n\t\treturn \"'this' reference (XThis) to Bsh object: \" + namespace.name;\n\t}\n\n\tString toStringShowInts( Class [] ints ) {\n\t\tStringBuffer sb = new StringBuffer( toString() + \"\\nimplements:\" );\n\t\tfor(int i=0; i<ints.length; i++)\n\t\t\tsb.append( \" \"+ ints[i].getName() + ((ints.length > 1)?\",\":\"\") );\n\t\treturn sb.toString();\n\t}\n\n\t/**\n\t\tGet dynamic proxy for interface, caching those it creates.\n\t*/\n\tpublic Object getInterface( Class clas ) {\n\t\tif ( interfaces == null )\n\t\t\tinterfaces = new Hashtable();\n\n\t\tObject interf = interfaces.get( clas );\n\t\tif ( interf == null ) {\n\t\t\tinterf = Proxy.newProxyInstance( clas.getClassLoader(), \n\t\t\t\tnew Class[] { clas }, invocationHandler );\n\t\t\tinterfaces.put( clas, interf );\n\t\t}\n\t\treturn interf;\n\t}\n\n\t/**\n\t\tGet a proxy interface for the specified XThis reference.\n\t\tThis is a static utility method because the interpreter doesn't \n\t\tcurrently allow access to direct methods of This objects.\n\t\t\n\tpublic static Object getInterface( XThis ths, Class interf ) { \n\t\treturn ths.getInterface( interf ); \n\t}\n\t*/\n\n\t/**\n\t\tThis is the invocation handler for the dynamic proxy.\n\t\t<p>\n\n\t\tNotes:\n\t\tInner class for the invocation handler seems to shield this unavailable\n\t\tinterface from JDK1.2 VM...  \n\t\t\n\t\tI don't understand this.  JThis works just fine even if those\n\t\tclasses aren't there (doesn't it?)  This class shouldn't be loaded\n\t\tif an XThis isn't instantiated in NameSpace.java, should it?\n\t*/\n\tclass Handler implements InvocationHandler, java.io.Serializable \n\t{\n\t\tpublic Object invoke( Object proxy, Method method, Object[] args ) \n\t\t\tthrows EvalError \n\t\t{\n\t\t\ttry { \n\t\t\t\treturn invokeImpl( proxy, method, args );\n\t\t\t} catch ( EvalError ee ) {\n\t\t\t\t// Ease debugging...\n\t\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\t\tInterpreter.debug( \"EvalError in scripted interface: \"\n\t\t\t\t\t+ XThis.this.toString() + \": \"+ ee );\n\t\t\t\tthrow ee;\n\t\t\t}\n\t\t}\n\n\t\tpublic Object invokeImpl( Object proxy, Method method, Object[] args ) \n\t\t\tthrows EvalError \n\t\t{\n\t\t\tCallStack callstack = newCallStack();\n\n\t\t\tClass [] sig = Reflect.getTypes( args );\n\t\t\tBshMethod bmethod = \n\t\t\t\tnamespace.getMethod( method.getName(), sig );\n\n\t\t\tif ( bmethod != null )\n\t\t\t\treturn Primitive.unwrap( \n\t\t\t\t\tbmethod.invokeDeclaredMethod( \n\t\t\t\t\targs, declaringInterpreter, callstack, null ) );\n\n\t\t\t// Look for the default handler\n\t\t\tbmethod = namespace.getMethod( \"invoke\", \n\t\t\t\tnew Class [] { null, null } );\n\n\t\t\t// Call script \"invoke( String methodName, Object [] args );\n\t\t\tif ( bmethod != null )\n\t\t\t\treturn Primitive.unwrap( \n\t\t\t\t\tbmethod.invokeDeclaredMethod( \n\t\t\t\t\tnew Object [] { method.getName(), args }, \n\t\t\t\t\tdeclaringInterpreter, callstack, null ) );\n\n\t\t\t/*\n\t\t\t\timplement the required part of the Object protocol:\n\t\t\t\t\tpublic int hashCode();\n\t\t\t\t\tpublic boolean equals(java.lang.Object);\n\t\t\t\t\tpublic java.lang.String toString();\n\t\t\t\tif these were not handled by scripted methods we must provide\n\t\t\t\ta default impl.\n\t\t\t*/\n\t\t\t// a default toString() that shows the interfaces we implement\n\t\t\tif ( method.getName().equals(\"toString\" ) )\n\t\t\t\treturn toStringShowInts( proxy.getClass().getInterfaces());\n\n\t\t\t// a default hashCode()\n\t\t\tif ( method.getName().equals(\"hashCode\" ) )\n\t\t\t\treturn new Integer(this.hashCode());\n\n\t\t\t// a default equals()\n\t\t\tif ( method.getName().equals(\"equals\" ) ) {\n\t\t\t\tObject obj = args[0];\n\t\t\t\treturn new Boolean( proxy == obj );\n\t\t\t}\n\n\t\t\tthrow new EvalError(\"Bsh script method: \"+ method.getName()\n\t\t\t\t+ \" not found in namespace: \"+ namespace.name );", "functions": [{"function_name": "toString", "code": "\tpublic String toString() {\n\t\treturn \"'this' reference (XThis) to Bsh object: \" + namespace.name;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toStringShowInts", "code": "\tString toStringShowInts( Class [] ints ) {\n\t\tStringBuffer sb = new StringBuffer( toString() + \"\\nimplements:\" );\n\t\tfor(int i=0; i<ints.length; i++)\n\t\t\tsb.append( \" \"+ ints[i].getName() + ((ints.length > 1)?\",\":\"\") );\n\t\treturn sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [7, 9], [2, 10], [8, 11], [9, 12], [9, 13], [11, 14], [11, 15], [12, 16], [12, 17], [12, 18], [13, 19], [18, 20], [13, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 7], [10, 2], [11, 8], [12, 9], [13, 9], [14, 11], [15, 11], [16, 12], [17, 12], [18, 12], [19, 13], [20, 18], [21, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getInterface", "code": "\tpublic Object getInterface( Class clas ) {\n\t\tif ( interfaces == null )\n\t\t\tinterfaces = new Hashtable();\n\n\t\tObject interf = interfaces.get( clas );\n\t\tif ( interf == null ) {\n\t\t\tinterf = Proxy.newProxyInstance( clas.getClassLoader(), \n\t\t\t\tnew Class[] { clas }, invocationHandler );\n\t\t\tinterfaces.put( clas, interf );\n\t\t}\n\t\treturn interf;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [6, 8], [3, 9], [4, 10], [7, 11], [2, 12], [2, 13], [10, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 6], [9, 3], [10, 4], [11, 7], [12, 2], [13, 2], [14, 10], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "XThis", "code": "\tXThis( NameSpace namespace, Interpreter declaringInterp ) { \n\t\tsuper( namespace, declaringInterp ); ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.0-5545", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/poifs/filesystem/DocumentOutputStream.java", "language": "java", "name": "org.apache.poi.poifs.filesystem.DocumentOutputStream", "code": "public class DocumentOutputStream\n    extends OutputStream\n{\n    private OutputStream stream;\n    private int          limit;\n    private int          written;\n\n    /**\n     * Create a DocumentOutputStream\n     *\n     * @param stream the OutputStream to which the data is actually\n     *               read\n     * @param limit the maximum number of bytes that can be written\n     */\n\n    DocumentOutputStream(final OutputStream stream, final int limit)\n    {\n        this.stream  = stream;\n        this.limit   = limit;\n        this.written = 0;\n    }\n\n    /**\n     * Writes the specified byte to this output stream. The general\n     * contract for write is that one byte is written to the output\n     * stream. The byte to be written is the eight low-order bits of\n     * the argument b. The 24 high-order bits of b are ignored.\n     *\n     * @param b the byte.\n     * @exception IOException if an I/O error occurs. In particular,\n     *                        an IOException may be thrown if the\n     *                        output stream has been closed, or if the\n     *                        writer tries to write too much data.\n     */\n\n    public void write(final int b)\n        throws IOException\n    {\n        limitCheck(1);\n        stream.write(b);\n    }\n\n    /**\n     * Writes b.length bytes from the specified byte array\n     * to this output stream.\n     *\n     * @param b the data.\n     * @exception IOException if an I/O error occurs.\n     */\n\n    public void write(final byte b[])\n        throws IOException\n    {\n        write(b, 0, b.length);\n    }\n\n    /**\n     * Writes len bytes from the specified byte array starting at\n     * offset off to this output stream.  The general contract for\n     * write(b, off, len) is that some of the bytes in the array b are\n     * written to the output stream in order; element b[off] is the\n     * first byte written and b[off+len-1] is the last byte written by\n     * this operation.<p>\n     * If b is null, a NullPointerException is thrown.<p>\n     * If off is negative, or len is negative, or off+len is greater\n     * than the length of the array b, then an\n     * IndexOutOfBoundsException is thrown.\n     *\n     * @param b the data.\n     * @param off the start offset in the data.\n     * @param len the number of bytes to write.\n     * @exception IOException if an I/O error occurs. In particular,\n     *                        an IOException</code> is thrown if the\n     *                        output stream is closed or if the writer\n     *                        tries to write too many bytes.\n     */\n\n    public void write(final byte b[], final int off, final int len)\n        throws IOException\n    {\n        limitCheck(len);\n        stream.write(b, off, len);\n    }\n\n    /**\n     * Flushes this output stream and forces any buffered output bytes\n     * to be written out.\n     *\n     * @exception IOException if an I/O error occurs.\n     */\n\n    public void flush()\n        throws IOException\n    {\n        stream.flush();\n    }\n\n    /**\n     * Closes this output stream and releases any system resources\n     * associated with this stream. The general contract of close is\n     * that it closes the output stream. A closed stream cannot\n     * perform output operations and cannot be reopened.\n     *\n     * @exception IOException if an I/O error occurs.\n     */\n\n    public void close()\n        throws IOException\n    {\n\n    }\n\n    /**\n     * write the rest of the document's data (fill in at the end)\n     *\n     * @param totalLimit the actual number of bytes the corresponding\n     *                   document must fill\n     * @param fill the byte to fill remaining space with\n     *\n     * @exception IOException on I/O error\n     */\n\n    void writeFiller(final int totalLimit, final byte fill)\n        throws IOException\n    {\n        if (totalLimit > written)\n        {\n            byte[] filler = new byte[ totalLimit - written ];\n\n            Arrays.fill(filler, fill);\n            stream.write(filler);\n        }\n    }\n\n    private void limitCheck(final int toBeWritten)\n        throws IOException\n    {\n        if ((written + toBeWritten) > limit)\n        {\n            throw new IOException(\"tried to write too much data\");\n        }\n        written += toBeWritten;", "functions": [{"function_name": "write", "code": "    public void write(final int b)\n        throws IOException\n    {\n        limitCheck(1);\n        stream.write(b);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "write", "code": "    public void write(final byte b[])\n        throws IOException\n    {\n        write(b, 0, b.length);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "write", "code": "    public void write(final byte b[], final int off, final int len)\n        throws IOException\n    {\n        limitCheck(len);\n        stream.write(b, off, len);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "flush", "code": "    public void flush()\n        throws IOException\n    {\n        stream.flush();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "close", "code": "    public void close()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "writeFiller", "code": "    void writeFiller(final int totalLimit, final byte fill)\n        throws IOException\n    {\n        if (totalLimit > written)\n        {\n            byte[] filler = new byte[ totalLimit - written ];\n\n            Arrays.fill(filler, fill);\n            stream.write(filler);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "limitCheck", "code": "    private void limitCheck(final int toBeWritten)\n        throws IOException\n    {\n        if ((written + toBeWritten) > limit)\n        {\n            throw new IOException(\"tried to write too much data\");\n        }\n        written += toBeWritten;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "DocumentOutputStream", "code": "    DocumentOutputStream(final OutputStream stream, final int limit)\n    {\n        this.stream  = stream;\n        this.limit   = limit;\n        this.written = 0;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.5-7267", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/functions/Function.java", "language": "java", "name": "org.apache.xpath.functions.Function", "code": "public abstract class Function extends Expression\n{\n\n  /**\n   * Set an argument expression for a function.  This method is called by the \n   * XPath compiler.\n   *\n   * @param arg non-null expression that represents the argument.\n   * @param argNum The argument number index.\n   *\n   * @throws WrongNumberArgsException If the argNum parameter is beyond what \n   * is specified for this function.\n   */\n  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n      reportWrongNumberArgs();\n  }\n\n  /**\n   * Check that the number of arguments passed to this function is correct.\n   * This method is meant to be overloaded by derived classes, to check for \n   * the number of arguments for a specific function type.  This method is \n   * called by the compiler for static number of arguments checking.\n   *\n   * @param argNum The number of arguments that is being passed to the function.\n   *\n   * @throws WrongNumberArgsException\n   */\n  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum != 0)\n      reportWrongNumberArgs();\n  }\n\n  /**\n   * Constructs and throws a WrongNumberArgException with the appropriate\n   * message for this function object.  This method is meant to be overloaded\n   * by derived classes so that the message will be as specific as possible.\n   *\n   * @throws WrongNumberArgsException\n   */\n  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n      throw new WrongNumberArgsException(XSLMessages.createXPATHMessage(\"zero\", null));\n  }\n\n  /**\n   * Execute an XPath function object.  The function must return\n   * a valid object.\n   * @param xctxt The execution current context.\n   * @return A valid XObject.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    System.out.println(\"Error! Function.execute should not be called!\");\n\n    return null;\n  }\n  \n  /**\n   * Call the visitors for the function arguments.\n   */\n  public void callArgVisitors(XPathVisitor visitor)\n  {\n  }\n\n  \n  /**\n   * @see XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tif(visitor.visitFunction(owner, this))\n  \t{\n  \t\tcallArgVisitors(visitor);\n  \t}\n  }\n  \n  /**\n   * @see Expression#deepEquals(Expression)\n   */\n  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \treturn true;\n  }\n\n  /**\n   * This function is currently only being used by Position()\n   * and Last(). See respective functions for more detail.\n   */\n  public void postCompileStep(Compiler compiler)", "functions": [{"function_name": "setArg", "code": "  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n      reportWrongNumberArgs();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "checkNumberArgs", "code": "  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum != 0)\n      reportWrongNumberArgs();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "reportWrongNumberArgs", "code": "  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n      throw new WrongNumberArgsException(XSLMessages.createXPATHMessage(\"zero\", null));", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    System.out.println(\"Error! Function.execute should not be called!\");\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "callArgVisitors", "code": "  public void callArgVisitors(XPathVisitor visitor)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tif(visitor.visitFunction(owner, this))\n  \t{\n  \t\tcallArgVisitors(visitor);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "deepEquals", "code": "  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "postCompileStep", "code": "  public void postCompileStep(Compiler compiler)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.5-7151", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/lib/Redirect.java", "language": "java", "name": "org.apache.xalan.lib.Redirect", "code": "public class Redirect\n{\n  /**\n   * List of formatter listeners indexed by filename.\n   */\n  protected Hashtable m_formatterListeners = new Hashtable ();\n\n  /**\n   * List of output streams indexed by filename.\n   */\n  protected Hashtable m_outputStreams = new Hashtable ();\n\n  /** \n   * Default append mode for bare open calls.  \n   * False for backwards compatibility (I think). \n   */\n  public static final boolean DEFAULT_APPEND_OPEN = false;\n\n  /** \n   * Default append mode for bare write calls.  \n   * False for backwards compatibility. \n   */\n  public static final boolean DEFAULT_APPEND_WRITE = false;\n\n  /**\n   * Open the given file and put it in the XML, HTML, or Text formatter listener's table.\n   */\n  public void open(XSLProcessorContext context, ElemExtensionCall elem)\n    throws java.net.MalformedURLException,\n           java.io.FileNotFoundException,\n           java.io.IOException,\n           javax.xml.transform.TransformerException\n  {\n    String fileName = getFilename(context, elem);\n    Object flistener = m_formatterListeners.get(fileName);\n    if(null == flistener)\n    {\n      String mkdirsExpr \n        = elem.getAttribute (\"mkdirs\", context.getContextNode(), \n                                                  context.getTransformer());\n      boolean mkdirs = (mkdirsExpr != null)\n                       ? (mkdirsExpr.equals(\"true\") || mkdirsExpr.equals(\"yes\")) : true;\n\n      String appendExpr = elem.getAttribute(\"append\", context.getContextNode(), context.getTransformer());\n\t  boolean append = (appendExpr != null)\n                       ? (appendExpr.equals(\"true\") || appendExpr.equals(\"yes\")) : DEFAULT_APPEND_OPEN;\n\n      Object ignored = makeFormatterListener(context, elem, fileName, true, mkdirs, append);\n    }\n  }\n  \n  /**\n   * Write the evalutation of the element children to the given file. Then close the file\n   * unless it was opened with the open extension element and is in the formatter listener's table.\n   */\n  public void write(XSLProcessorContext context, ElemExtensionCall elem)\n    throws java.net.MalformedURLException,\n           java.io.FileNotFoundException,\n           java.io.IOException,\n           javax.xml.transform.TransformerException\n  {\n    String fileName = getFilename(context, elem);\n    Object flObject = m_formatterListeners.get(fileName);\n    ContentHandler formatter;\n    boolean inTable = false;\n    if(null == flObject)\n    {\n      String mkdirsExpr \n        = ((ElemExtensionCall)elem).getAttribute (\"mkdirs\", \n                                                  context.getContextNode(), \n                                                  context.getTransformer());\n      boolean mkdirs = (mkdirsExpr != null)\n                       ? (mkdirsExpr.equals(\"true\") || mkdirsExpr.equals(\"yes\")) : true;\n\n      String appendExpr = elem.getAttribute(\"append\", context.getContextNode(), context.getTransformer());\n\t  boolean append = (appendExpr != null)\n                       ? (appendExpr.equals(\"true\") || appendExpr.equals(\"yes\")) : DEFAULT_APPEND_WRITE;\n\n      formatter = makeFormatterListener(context, elem, fileName, true, mkdirs, append);\n    }\n    else\n    {\n      inTable = true;\n      formatter = (ContentHandler)flObject;\n    }\n    \n    TransformerImpl transf = context.getTransformer();\n    \n    transf.executeChildTemplates(elem,\n                                 context.getContextNode(),\n                                 context.getMode(), formatter);\n    \n    if(!inTable)\n    {\n      OutputStream ostream = (OutputStream)m_outputStreams.get(fileName);\n      if(null != ostream)\n      {\n        try\n        {\n          formatter.endDocument();\n        }\n        catch(org.xml.sax.SAXException se)\n        {\n          throw new TransformerException(se);\n        }\n        ostream.close();\n        m_outputStreams.remove(fileName);\n        m_formatterListeners.remove(fileName);\n      }\n    }\n  }\n\n\n  /**\n   * Close the given file and remove it from the formatter listener's table.\n   */\n  public void close(XSLProcessorContext context, ElemExtensionCall elem)\n    throws java.net.MalformedURLException,\n    java.io.FileNotFoundException,\n    java.io.IOException,\n    javax.xml.transform.TransformerException\n  {\n    String fileName = getFilename(context, elem);\n    Object formatterObj = m_formatterListeners.get(fileName);\n    if(null != formatterObj)\n    {\n      ContentHandler fl = (ContentHandler)formatterObj;\n      try\n      {\n        fl.endDocument();\n      }\n      catch(org.xml.sax.SAXException se)\n      {\n        throw new TransformerException(se);\n      }\n      OutputStream ostream = (OutputStream)m_outputStreams.get(fileName);\n      if(null != ostream)\n      {\n        ostream.close();\n        m_outputStreams.remove(fileName);\n      }\n      m_formatterListeners.remove(fileName);\n    }\n  }\n\n  /**\n   * Get the filename from the 'select' or the 'file' attribute.\n   */\n  private String getFilename(XSLProcessorContext context, ElemExtensionCall elem)\n    throws java.net.MalformedURLException,\n    java.io.FileNotFoundException,\n    java.io.IOException,\n    javax.xml.transform.TransformerException\n  {\n    String fileName;\n    String fileNameExpr \n      = ((ElemExtensionCall)elem).getAttribute (\"select\", \n                                                context.getContextNode(), \n                                                context.getTransformer());\n    if(null != fileNameExpr)\n    {\n      org.apache.xpath.XPathContext xctxt \n        = context.getTransformer().getXPathContext();\n      XPath myxpath = new XPath(fileNameExpr, elem, xctxt.getNamespaceContext(), XPath.SELECT);\n      XObject xobj = myxpath.execute(xctxt, context.getContextNode(), elem);\n      fileName = xobj.str();\n      if((null == fileName) || (fileName.length() == 0))\n      {\n        fileName = elem.getAttribute (\"file\", \n                                      context.getContextNode(), \n                                      context.getTransformer());\n      }\n    }\n    else\n    {\n      fileName = elem.getAttribute (\"file\", context.getContextNode(), \n                                                               context.getTransformer());\n    }\n    if(null == fileName)\n    {\n      context.getTransformer().getMsgMgr().error(elem, elem, \n                                     context.getContextNode(), \n                                     XSLTErrorResources.ER_REDIRECT_COULDNT_GET_FILENAME);\n    }\n    return fileName;\n  }\n  \n  private String urlToFileName(String base)\n  {\n    if(null != base)\n    {\n      if(base.startsWith(\"file:/\"))\n      {\n        base = base.substring(5);\n      }\n      else if(base.startsWith(\"file:\"))\n      {\n        base = base.substring(4);\n      }\n    }\n    return base;\n  }\n\n  /**\n   * Create a new ContentHandler, based on attributes of the current ContentHandler.\n   */\n  private ContentHandler makeFormatterListener(XSLProcessorContext context,\n                                               ElemExtensionCall elem,\n                                               String fileName,\n                                               boolean shouldPutInTable,\n                                               boolean mkdirs, \n                                               boolean append)\n    throws java.net.MalformedURLException,\n    java.io.FileNotFoundException,\n    java.io.IOException,\n    javax.xml.transform.TransformerException\n  {\n    File file = new File(fileName);\n    TransformerImpl transformer = context.getTransformer();\n\n    if(!file.isAbsolute())\n    {\n\n      Result outputTarget = transformer.getOutputTarget();\n      if ( (null != outputTarget) && ((base = outputTarget.getSystemId()) != null) ) {\n        base = urlToFileName(base);\n      }\n      else\n      {\n        base = urlToFileName(transformer.getBaseURLOfSource());\n      }\n\n      if(null != base)\n      {\n        File baseFile = new File(base);\n        file = new File(baseFile.getParent(), fileName);\n      }\n    }\n\n    if(mkdirs)\n    {\n      String dirStr = file.getParent();\n      if((null != dirStr) && (dirStr.length() > 0))\n      {\n        File dir = new File(dirStr);\n        dir.mkdirs();\n      }\n    }\n\n    OutputProperties format = transformer.getOutputFormat();\n\n    FileOutputStream ostream = new FileOutputStream(file.getPath(), append);\n    \n    try\n    {\n      SerializationHandler flistener = \n        transformer.createSerializationHandler(new StreamResult(ostream),\n                                               format);\n      try\n      {\n        flistener.startDocument();\n      }\n      catch(org.xml.sax.SAXException se)\n      {\n        throw new TransformerException(se);\n      }\n      if(shouldPutInTable)\n      {\n        m_outputStreams.put(fileName, ostream);\n        m_formatterListeners.put(fileName, flistener);\n      }\n      return flistener;\n    }\n    catch(TransformerException te)\n    {\n      throw new javax.xml.transform.TransformerException(te);", "functions": [{"function_name": "open", "code": "  public void open(XSLProcessorContext context, ElemExtensionCall elem)\n    throws java.net.MalformedURLException,\n           java.io.FileNotFoundException,\n           java.io.IOException,\n           javax.xml.transform.TransformerException\n  {\n    String fileName = getFilename(context, elem);\n    Object flistener = m_formatterListeners.get(fileName);\n    if(null == flistener)\n    {\n      String mkdirsExpr \n        = elem.getAttribute (\"mkdirs\", context.getContextNode(), \n                                                  context.getTransformer());\n      boolean mkdirs = (mkdirsExpr != null)\n                       ? (mkdirsExpr.equals(\"true\") || mkdirsExpr.equals(\"yes\")) : true;\n\n      String appendExpr = elem.getAttribute(\"append\", context.getContextNode(), context.getTransformer());\n\t  boolean append = (appendExpr != null)\n                       ? (appendExpr.equals(\"true\") || appendExpr.equals(\"yes\")) : DEFAULT_APPEND_OPEN;\n\n      Object ignored = makeFormatterListener(context, elem, fileName, true, mkdirs, append);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [6, 12], [2, 13], [3, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [15, 20], [16, 21], [16, 22], [17, 23], [17, 24], [17, 25], [18, 26], [18, 27], [18, 28], [19, 29], [19, 30], [19, 31], [21, 32], [21, 33], [22, 34], [27, 35], [27, 36], [28, 37], [32, 38], [33, 39], [35, 40], [36, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 6], [13, 2], [14, 3], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 15], [21, 16], [22, 16], [23, 17], [24, 17], [25, 17], [26, 18], [27, 18], [28, 18], [29, 19], [30, 19], [31, 19], [32, 21], [33, 21], [34, 22], [35, 27], [36, 27], [37, 28], [38, 32], [39, 33], [40, 35], [41, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "write", "code": "  public void write(XSLProcessorContext context, ElemExtensionCall elem)\n    throws java.net.MalformedURLException,\n           java.io.FileNotFoundException,\n           java.io.IOException,\n           javax.xml.transform.TransformerException\n  {\n    String fileName = getFilename(context, elem);\n    Object flObject = m_formatterListeners.get(fileName);\n    ContentHandler formatter;\n    boolean inTable = false;\n    if(null == flObject)\n    {\n      String mkdirsExpr \n        = ((ElemExtensionCall)elem).getAttribute (\"mkdirs\", \n                                                  context.getContextNode(), \n                                                  context.getTransformer());\n      boolean mkdirs = (mkdirsExpr != null)\n                       ? (mkdirsExpr.equals(\"true\") || mkdirsExpr.equals(\"yes\")) : true;\n\n      String appendExpr = elem.getAttribute(\"append\", context.getContextNode(), context.getTransformer());\n\t  boolean append = (appendExpr != null)\n                       ? (appendExpr.equals(\"true\") || appendExpr.equals(\"yes\")) : DEFAULT_APPEND_WRITE;\n\n      formatter = makeFormatterListener(context, elem, fileName, true, mkdirs, append);\n    }\n    else\n    {\n      inTable = true;\n      formatter = (ContentHandler)flObject;\n    }\n    \n    TransformerImpl transf = context.getTransformer();\n    \n    transf.executeChildTemplates(elem,\n                                 context.getContextNode(),\n                                 context.getMode(), formatter);\n    \n    if(!inTable)\n    {\n      OutputStream ostream = (OutputStream)m_outputStreams.get(fileName);\n      if(null != ostream)\n      {\n        try\n        {\n          formatter.endDocument();\n        }\n        catch(org.xml.sax.SAXException se)\n        {\n          throw new TransformerException(se);\n        }\n        ostream.close();\n        m_outputStreams.remove(fileName);\n        m_formatterListeners.remove(fileName);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [1, 12], [1, 13], [10, 14], [10, 15], [2, 16], [3, 17], [3, 18], [3, 19], [3, 20], [11, 21], [4, 22], [6, 23], [7, 24], [12, 25], [3, 26], [3, 27], [3, 28], [12, 29], [25, 30], [27, 31], [28, 32], [17, 33], [18, 34], [19, 35], [12, 36], [12, 37], [12, 38], [29, 39], [13, 40], [32, 41], [33, 42], [33, 43], [34, 44], [34, 45], [34, 46], [35, 47], [35, 48], [35, 49], [39, 50], [29, 51], [42, 52], [42, 53], [43, 54], [48, 55], [48, 56], [49, 57], [50, 58], [52, 59], [53, 60], [55, 61], [56, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 1], [13, 1], [14, 10], [15, 10], [16, 2], [17, 3], [18, 3], [19, 3], [20, 3], [21, 11], [22, 4], [23, 6], [24, 7], [25, 12], [26, 3], [27, 3], [28, 3], [29, 12], [30, 25], [31, 27], [32, 28], [33, 17], [34, 18], [35, 19], [36, 12], [37, 12], [38, 12], [39, 29], [40, 13], [41, 32], [42, 33], [43, 33], [44, 34], [45, 34], [46, 34], [47, 35], [48, 35], [49, 35], [50, 39], [51, 29], [52, 42], [53, 42], [54, 43], [55, 48], [56, 48], [57, 49], [58, 50], [59, 52], [60, 53], [61, 55], [62, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "close", "code": "  public void close(XSLProcessorContext context, ElemExtensionCall elem)\n    throws java.net.MalformedURLException,\n    java.io.FileNotFoundException,\n    java.io.IOException,\n    javax.xml.transform.TransformerException\n  {\n    String fileName = getFilename(context, elem);\n    Object formatterObj = m_formatterListeners.get(fileName);\n    if(null != formatterObj)\n    {\n      ContentHandler fl = (ContentHandler)formatterObj;\n      try\n      {\n        fl.endDocument();\n      }\n      catch(org.xml.sax.SAXException se)\n      {\n        throw new TransformerException(se);\n      }\n      OutputStream ostream = (OutputStream)m_outputStreams.get(fileName);\n      if(null != ostream)\n      {\n        ostream.close();\n        m_outputStreams.remove(fileName);\n      }\n      m_formatterListeners.remove(fileName);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [6, 11], [2, 12], [3, 13], [1, 14], [7, 15], [9, 16], [15, 17], [16, 18], [9, 19], [7, 20], [7, 21], [8, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 6], [12, 2], [13, 3], [14, 1], [15, 7], [16, 9], [17, 15], [18, 16], [19, 9], [20, 7], [21, 7], [22, 8], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getFilename", "code": "  private String getFilename(XSLProcessorContext context, ElemExtensionCall elem)\n    throws java.net.MalformedURLException,\n    java.io.FileNotFoundException,\n    java.io.IOException,\n    javax.xml.transform.TransformerException\n  {\n    String fileName;\n    String fileNameExpr \n      = ((ElemExtensionCall)elem).getAttribute (\"select\", \n                                                context.getContextNode(), \n                                                context.getTransformer());\n    if(null != fileNameExpr)\n    {\n      org.apache.xpath.XPathContext xctxt \n        = context.getTransformer().getXPathContext();\n      XPath myxpath = new XPath(fileNameExpr, elem, xctxt.getNamespaceContext(), XPath.SELECT);\n      XObject xobj = myxpath.execute(xctxt, context.getContextNode(), elem);\n      fileName = xobj.str();\n      if((null == fileName) || (fileName.length() == 0))\n      {\n        fileName = elem.getAttribute (\"file\", \n                                      context.getContextNode(), \n                                      context.getTransformer());\n      }\n    }\n    else\n    {\n      fileName = elem.getAttribute (\"file\", context.getContextNode(), \n                                                               context.getTransformer());\n    }\n    if(null == fileName)\n    {\n      context.getTransformer().getMsgMgr().error(elem, elem, \n                                     context.getContextNode(), \n                                     XSLTErrorResources.ER_REDIRECT_COULDNT_GET_FILENAME);\n    }\n    return fileName;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [8, 10], [3, 11], [3, 12], [3, 13], [3, 14], [9, 15], [2, 16], [3, 17], [11, 18], [3, 19], [16, 20], [16, 21], [17, 22], [18, 23], [18, 24], [19, 25], [12, 26], [13, 27], [14, 28], [20, 29], [22, 30], [22, 31], [22, 32], [11, 33], [23, 34], [23, 35], [24, 36], [26, 37], [27, 38], [28, 39], [33, 40], [40, 41], [40, 42], [40, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 8], [11, 3], [12, 3], [13, 3], [14, 3], [15, 9], [16, 2], [17, 3], [18, 11], [19, 3], [20, 16], [21, 16], [22, 17], [23, 18], [24, 18], [25, 19], [26, 12], [27, 13], [28, 14], [29, 20], [30, 22], [31, 22], [32, 22], [33, 11], [34, 23], [35, 23], [36, 24], [37, 26], [38, 27], [39, 28], [40, 33], [41, 40], [42, 40], [43, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "urlToFileName", "code": "  private String urlToFileName(String base)\n  {\n    if(null != base)\n    {\n      if(base.startsWith(\"file:/\"))\n      {\n        base = base.substring(5);\n      }\n      else if(base.startsWith(\"file:\"))\n      {\n        base = base.substring(4);\n      }\n    }\n    return base;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [5, 8], [7, 9], [8, 10], [9, 11], [5, 12], [7, 13], [12, 14], [13, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 5], [9, 7], [10, 8], [11, 9], [12, 5], [13, 7], [14, 12], [15, 13], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "makeFormatterListener", "code": "  private ContentHandler makeFormatterListener(XSLProcessorContext context,\n                                               ElemExtensionCall elem,\n                                               String fileName,\n                                               boolean shouldPutInTable,\n                                               boolean mkdirs, \n                                               boolean append)\n    throws java.net.MalformedURLException,\n    java.io.FileNotFoundException,\n    java.io.IOException,\n    javax.xml.transform.TransformerException\n  {\n    File file = new File(fileName);\n    TransformerImpl transformer = context.getTransformer();\n\n    if(!file.isAbsolute())\n    {\n\n      Result outputTarget = transformer.getOutputTarget();\n      if ( (null != outputTarget) && ((base = outputTarget.getSystemId()) != null) ) {\n        base = urlToFileName(base);\n      }\n      else\n      {\n        base = urlToFileName(transformer.getBaseURLOfSource());\n      }\n\n      if(null != base)\n      {\n        File baseFile = new File(base);\n        file = new File(baseFile.getParent(), fileName);\n      }\n    }\n\n    if(mkdirs)\n    {\n      String dirStr = file.getParent();\n      if((null != dirStr) && (dirStr.length() > 0))\n      {\n        File dir = new File(dirStr);\n        dir.mkdirs();\n      }\n    }\n\n    OutputProperties format = transformer.getOutputFormat();\n\n    FileOutputStream ostream = new FileOutputStream(file.getPath(), append);\n    \n    try\n    {\n      SerializationHandler flistener = \n        transformer.createSerializationHandler(new StreamResult(ostream),\n                                               format);\n      try\n      {\n        flistener.startDocument();\n      }\n      catch(org.xml.sax.SAXException se)\n      {\n        throw new TransformerException(se);\n      }\n      if(shouldPutInTable)\n      {\n        m_outputStreams.put(fileName, ostream);\n        m_formatterListeners.put(fileName, flistener);\n      }\n      return flistener;\n    }\n    catch(TransformerException te)\n    {\n      throw new javax.xml.transform.TransformerException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "TRY", "VAR_DECL", "CALL", "THROW_RAISE", "CATCH", "CALL", "CALL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [5, 19], [14, 20], [17, 21], [2, 22], [3, 23], [4, 24], [4, 25], [5, 26], [5, 27], [5, 28], [6, 29], [7, 30], [20, 31], [21, 32], [17, 33], [18, 34], [22, 35], [24, 36], [26, 37], [27, 38], [16, 39], [16, 40], [32, 41], [34, 42], [24, 43], [36, 44], [36, 45], [25, 46], [26, 47], [37, 48], [38, 49], [38, 50], [28, 51], [24, 52], [44, 53], [44, 54], [45, 55], [26, 56], [27, 57], [27, 58], [49, 59], [49, 60], [50, 61], [43, 62], [56, 63], [47, 64], [57, 65], [58, 66], [60, 67], [63, 68], [65, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 5], [20, 14], [21, 17], [22, 2], [23, 3], [24, 4], [25, 4], [26, 5], [27, 5], [28, 5], [29, 6], [30, 7], [31, 20], [32, 21], [33, 17], [34, 18], [35, 22], [36, 24], [37, 26], [38, 27], [39, 16], [40, 16], [41, 32], [42, 34], [43, 24], [44, 36], [45, 36], [46, 25], [47, 26], [48, 37], [49, 38], [50, 38], [51, 28], [52, 24], [53, 44], [54, 44], [55, 45], [56, 26], [57, 27], [58, 27], [59, 49], [60, 49], [61, 50], [62, 43], [63, 56], [64, 47], [65, 57], [66, 58], [67, 60], [68, 63], [69, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}], "label": 0}
{"sample_id": "xalan-2.4-6567", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/utils/BoolStack.java", "language": "java", "name": "org.apache.xml.utils.BoolStack", "code": "public final class BoolStack implements Cloneable\n{\n\n  /** Array of boolean values          */\n  private boolean m_values[];\n\n  /** Array size allocated           */\n  private int m_allocatedSize;\n\n  /** Index into the array of booleans          */\n  private int m_index;\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is very small, for small lists.\n   */\n  public BoolStack()\n  {\n    this(32);\n  }\n\n  /**\n   * Construct a IntVector, using the given block size.\n   *\n   * @param size array size to allocate\n   */\n  public BoolStack(int size)\n  {\n\n    m_allocatedSize = size;\n    m_values = new boolean[size];\n    m_index = -1;\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return Current length of the list\n   */\n  public final int size()\n  {\n    return m_index + 1;\n  }\n\n  /**\n   * Pushes an item onto the top of this stack.\n   *\n   *\n   * @param val the boolean to be pushed onto this stack.\n   * @return  the <code>item</code> argument.\n   */\n  public final boolean push(boolean val)\n  {\n\n    if (m_index == m_allocatedSize - 1)\n      grow();\n\n    return (m_values[++m_index] = val);\n  }\n\n  /**\n   * Removes the object at the top of this stack and returns that\n   * object as the value of this function.\n   *\n   * @return     The object at the top of this stack.\n   * @throws  EmptyStackException  if this stack is empty.\n   */\n  public final boolean pop()\n  {\n    return m_values[m_index--];\n  }\n\n  /**\n   * Removes the object at the top of this stack and returns the\n   * next object at the top as the value of this function.\n   *\n   *\n   * @return Next object to the top or false if none there\n   */\n  public final boolean popAndTop()\n  {\n\n    m_index--;\n\n    return (m_index >= 0) ? m_values[m_index] : false;\n  }\n\n  /**\n   * Set the item at the top of this stack  \n   *\n   *\n   * @param b Object to set at the top of this stack\n   */\n  public final void setTop(boolean b)\n  {\n    m_values[m_index] = b;\n  }\n\n  /**\n   * Looks at the object at the top of this stack without removing it\n   * from the stack.\n   *\n   * @return     the object at the top of this stack.\n   * @throws  EmptyStackException  if this stack is empty.\n   */\n  public final boolean peek()\n  {\n    return m_values[m_index];\n  }\n\n  /**\n   * Looks at the object at the top of this stack without removing it\n   * from the stack.  If the stack is empty, it returns false.\n   *\n   * @return     the object at the top of this stack.\n   */\n  public final boolean peekOrFalse()\n  {\n    return (m_index > -1) ? m_values[m_index] : false;\n  }\n\n  /**\n   * Looks at the object at the top of this stack without removing it\n   * from the stack.  If the stack is empty, it returns true.\n   *\n   * @return     the object at the top of this stack.\n   */\n  public final boolean peekOrTrue()\n  {\n    return (m_index > -1) ? m_values[m_index] : true;\n  }\n\n  /**\n   * Tests if this stack is empty.\n   *\n   * @return  <code>true</code> if this stack is empty;\n   *          <code>false</code> otherwise.\n   */\n  public boolean isEmpty()\n  {\n    return (m_index == -1);\n  }\n\n  /**\n   * Grows the size of the stack\n   *\n   */\n  private void grow()\n  {\n\n    m_allocatedSize *= 2;\n\n    boolean newVector[] = new boolean[m_allocatedSize];\n\n    System.arraycopy(m_values, 0, newVector, 0, m_index + 1);\n\n    m_values = newVector;\n  }\n  \n  public Object clone() \n    throws CloneNotSupportedException\n  {\n    return super.clone();", "functions": [{"function_name": "size", "code": "  public final int size()\n  {\n    return m_index + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "push", "code": "  public final boolean push(boolean val)\n  {\n\n    if (m_index == m_allocatedSize - 1)\n      grow();\n\n    return (m_values[++m_index] = val);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "pop", "code": "  public final boolean pop()\n  {\n    return m_values[m_index--];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "popAndTop", "code": "  public final boolean popAndTop()\n  {\n\n    m_index--;\n\n    return (m_index >= 0) ? m_values[m_index] : false;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setTop", "code": "  public final void setTop(boolean b)\n  {\n    m_values[m_index] = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "peek", "code": "  public final boolean peek()\n  {\n    return m_values[m_index];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "peekOrFalse", "code": "  public final boolean peekOrFalse()\n  {\n    return (m_index > -1) ? m_values[m_index] : false;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "peekOrTrue", "code": "  public final boolean peekOrTrue()\n  {\n    return (m_index > -1) ? m_values[m_index] : true;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isEmpty", "code": "  public boolean isEmpty()\n  {\n    return (m_index == -1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "grow", "code": "  private void grow()\n  {\n\n    m_allocatedSize *= 2;\n\n    boolean newVector[] = new boolean[m_allocatedSize];\n\n    System.arraycopy(m_values, 0, newVector, 0, m_index + 1);\n\n    m_values = newVector;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [3, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 3], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "clone", "code": "  public Object clone() \n    throws CloneNotSupportedException\n  {\n    return super.clone();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BoolStack", "code": "  public BoolStack()\n  {\n    this(32);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BoolStack", "code": "  public BoolStack(int size)\n  {\n\n    m_allocatedSize = size;\n    m_values = new boolean[size];\n    m_index = -1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-4.0-3780", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/io/VFSManager.java", "language": "java", "name": "org.gjt.sp.jedit.io.VFSManager", "code": "public class VFSManager\n{\n\t//{{{ init() method\n\t/**\n\t * Do not call.\n\t */\n\tpublic static void init()\n\t{\n\t\tint count = jEdit.getIntegerProperty(\"ioThreadCount\",4);\n\t\tioThreadPool = new WorkThreadPool(\"jEdit I/O\",count);\n\t\tregisterVFS(FavoritesVFS.PROTOCOL,new FavoritesVFS());\n\t\tif(OperatingSystem.isDOSDerived())\n\t\t\tregisterVFS(FileRootsVFS.PROTOCOL,new FileRootsVFS());\n\t} //}}}\n\n\t//{{{ start() method\n\t/**\n\t * Do not call.\n\t */\n\tpublic static void start()\n\t{\n\t\tioThreadPool.start();\n\t} //}}}\n\n\t//{{{ VFS methods\n\n\t//{{{ getFileVFS() method\n\t/**\n\t * Returns the local filesystem VFS.\n\t * @since jEdit 2.5pre1\n\t */\n\tpublic static VFS getFileVFS()\n\t{\n\t\treturn fileVFS;\n\t} //}}}\n\n\t//{{{ getUrlVFS() method\n\t/**\n\t * Returns the URL VFS.\n\t * @since jEdit 2.5pre1\n\t */\n\tpublic static VFS getUrlVFS()\n\t{\n\t\treturn urlVFS;\n\t} //}}}\n\n\t//{{{ getVFSByName() method\n\t/**\n\t * Returns the VFS for the specified name.\n\t * @param name The VFS name\n\t * @since jEdit 2.6pre4\n\t */\n\tpublic static VFS getVFSByName(String name)\n\t{\n\t\treturn (VFS)vfsHash.get(name);\n\t} //}}}\n\n\t//{{{ getVFSForProtocol() method\n\t/**\n\t * Returns the VFS for the specified protocol.\n\t * @param protocol The protocol\n\t * @since jEdit 2.5pre1\n\t */\n\tpublic static VFS getVFSForProtocol(String protocol)\n\t{\n\t\tif(protocol.equals(\"file\"))\n\t\t\treturn fileVFS;\n\t\telse\n\t\t{\n\t\t\tVFS vfs = (VFS)protocolHash.get(protocol);\n\t\t\tif(vfs != null)\n\t\t\t\treturn vfs;\n\t\t\telse\n\t\t\t\treturn urlVFS;\n\t\t}\n\t} //}}}\n\n\t//{{{ getVFSForPath() method\n\t/**\n\t * Returns the VFS for the specified path.\n\t * @param path The path\n\t * @since jEdit 2.6pre4\n\t */\n\tpublic static VFS getVFSForPath(String path)\n\t{\n\t\tif(MiscUtilities.isURL(path))\n\t\t\treturn getVFSForProtocol(MiscUtilities.getProtocolOfURL(path));\n\t\telse\n\t\t\treturn fileVFS;\n\t} //}}}\n\n\t//{{{ registerVFS() method\n\t/**\n\t * Registers a virtual filesystem.\n\t * @param protocol The protocol\n\t * @param vfs The VFS\n\t * @since jEdit 2.5pre1\n\t */\n\tpublic static void registerVFS(String protocol, VFS vfs)\n\t{\n\t\tLog.log(Log.DEBUG,VFSManager.class,\"Registered \"\n\t\t\t+ vfs.getName() + \" filesystem for \"\n\t\t\t+ protocol + \" protocol\");\n\t\tvfsHash.put(vfs.getName(),vfs);\n\t\tprotocolHash.put(protocol,vfs);\n\t} //}}}\n\n\t//{{{ getFilesystems() method\n\t/**\n\t * Returns an enumeration of all registered filesystems.\n\t * @since jEdit 2.5pre1\n\t */\n\tpublic static Enumeration getFilesystems()\n\t{\n\t\treturn vfsHash.elements();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ I/O request methods\n\n\t//{{{ getIOThreadPool() method\n\t/**\n\t * Returns the I/O thread pool.\n\t */\n\tpublic static WorkThreadPool getIOThreadPool()\n\t{\n\t\treturn ioThreadPool;\n\t} //}}}\n\n\t//{{{ waitForRequests() method\n\t/**\n\t * Returns when all pending requests are complete.\n\t * @since jEdit 2.5pre1\n\t */\n\tpublic static void waitForRequests()\n\t{\n\t\tioThreadPool.waitForRequests();\n\t} //}}}\n\n\t//{{{ errorOccurred() method\n\t/**\n\t * Returns if the last request caused an error.\n\t */\n\tpublic static boolean errorOccurred()\n\t{\n\t\treturn error;\n\t} //}}}\n\n\t//{{{ getRequestCount() method\n\t/**\n\t * Returns the number of pending I/O requests.\n\t */\n\tpublic static int getRequestCount()\n\t{\n\t\treturn ioThreadPool.getRequestCount();\n\t} //}}}\n\n\t//{{{ runInAWTThread() method\n\t/**\n\t * Executes the specified runnable in the AWT thread once all\n\t * pending I/O requests are complete.\n\t * @since jEdit 2.5pre1\n\t */\n\tpublic static void runInAWTThread(Runnable run)\n\t{\n\t\tioThreadPool.addWorkRequest(run,true);\n\t} //}}}\n\n\t//{{{ runInWorkThread() method\n\t/**\n\t * Executes the specified runnable in one of the I/O threads.\n\t * @since jEdit 2.6pre2\n\t */\n\tpublic static void runInWorkThread(Runnable run)\n\t{\n\t\tioThreadPool.addWorkRequest(run,false);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ error() method\n\t/**\n\t * @deprecated Call the other <code>error()</code> method instead.\n\t */\n\tpublic static void error(final Component comp, final String error, final Object[] args)\n\t{\n\t\t// if we are already in the AWT thread, take a shortcut\n\t\tif(SwingUtilities.isEventDispatchThread())\n\t\t{\n\t\t\tGUIUtilities.error(comp,error,args);\n\t\t\treturn;\n\t\t}\n\n\t\t// the 'error' chicanery ensures that stuff like:\n\t\t// VFSManager.waitForRequests()\n\t\t// if(VFSManager.errorOccurred())\n\t\t//         ...\n\t\t// will work (because the below runnable will only be\n\t\t// executed in the next event)\n\t\tVFSManager.error = true;\n\n\t\trunInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tVFSManager.error = false;\n\n\t\t\t\tif(comp == null || !comp.isShowing())\n\t\t\t\t\tGUIUtilities.error(null,error,args);\n\t\t\t\telse\n\t\t\t\t\tGUIUtilities.error(comp,error,args);\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ error() method\n\t/**\n\t * Reports an I/O error.\n\t *\n\t * @param comp The component\n\t * @param path The path name that caused the error\n\t * @param message The error message property name\n\t * @param args Positional parameters\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic static void error(Component comp,\n\t\tfinal String path,\n\t\tString messageProp,\n\t\tObject[] args)\n\t{\n\t\tfinal Frame frame = JOptionPane.getFrameForComponent(comp);\n\n\t\tsynchronized(errorLock)\n\t\t{\n\t\t\terror = true;\n\n\t\t\terrors.addElement(new ErrorListDialog.ErrorEntry(\n\t\t\t\tpath,messageProp,args));\n\n\t\t\tif(errors.size() == 1)\n\t\t\t{\n\t\t\t\tfinal String caption = jEdit.getProperty(\n\t\t\t\t\t\"ioerror.caption\" + (errors.size() == 1\n\t\t\t\t\t? \"-1\" : \"\"),new Integer[] {\n\t\t\t\t\tnew Integer(errors.size()) });\n\n\t\t\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tnew ErrorListDialog(\n\t\t\t\t\t\t\tframe.isShowing()\n\t\t\t\t\t\t\t? frame\n\t\t\t\t\t\t\t: jEdit.getFirstView(),\n\t\t\t\t\t\t\tjEdit.getProperty(\"ioerror.title\"),\n\t\t\t\t\t\t\tcaption,errors,false);\n\t\t\t\t\t\terrors.removeAllElements();\n\t\t\t\t\t\terror = false;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ sendVFSUpdate() method\n\t/**\n\t * Sends a VFS update message.\n\t * @param vfs The VFS\n\t * @param path The path that changed\n\t * @param parent True if an update should be sent for the path's\n\t * parent too\n\t * @since jEdit 2.6pre4\n\t */\n\tpublic static void sendVFSUpdate(VFS vfs, String path, boolean parent)\n\t{\n\t\tif(parent)\n\t\t{\n\t\t\tsendVFSUpdate(vfs,vfs.getParentOfPath(path),false);\n\t\t\tsendVFSUpdate(vfs,path,false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// have to do this hack until VFSPath class is written\n\t\t\tif(path.length() != 1 && (path.endsWith(\"/\")\n\t\t\t\t|| path.endsWith(java.io.File.separator)))\n\t\t\t\tpath = path.substring(0,path.length() - 1);\n\n\t\t\tsynchronized(vfsUpdateLock)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < vfsUpdates.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tVFSUpdate msg = (VFSUpdate)vfsUpdates\n\t\t\t\t\t\t.elementAt(i);\n\t\t\t\t\tif(msg.getPath().equals(path))\n\t\t\t\t\t{\n\t\t\t\t\t\t// don't send two updates\n\t\t\t\t\t\t// for the same path\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvfsUpdates.addElement(new VFSUpdate(path));\n\n\t\t\t\tif(vfsUpdates.size() == 1)\n\t\t\t\t{\n\t\t\t\t\t// we were the first to add an update;\n\t\t\t\t\t// add update sending runnable to AWT\n\t\t\t\t\t// thread\n\t\t\t\t\tVFSManager.runInAWTThread(new SendVFSUpdatesSafely());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ SendVFSUpdatesSafely class\n\tstatic class SendVFSUpdatesSafely implements Runnable\n\t{\n\t\tpublic void run()\n\t\t{\n\t\t\tsynchronized(vfsUpdateLock)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < vfsUpdates.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tEditBus.send((VFSUpdate)vfsUpdates.elementAt(i));\n\t\t\t\t}\n\n\t\t\t\tvfsUpdates.removeAllElements();\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Static variables\n\tprivate static WorkThreadPool ioThreadPool;\n\tprivate static VFS fileVFS;\n\tprivate static VFS urlVFS;\n\tprivate static Hashtable vfsHash;\n\tprivate static Hashtable protocolHash;\n\tprivate static boolean error;\n\tprivate static Object errorLock;\n\tprivate static Vector errors;\n\tprivate static Object vfsUpdateLock;\n\tprivate static Vector vfsUpdates;\n\t//}}}\n\n\t//{{{ Class initializer\n\tstatic\n\t{\n\t\terrorLock = new Object();\n\t\terrors = new Vector();\n\t\tfileVFS = new FileVFS();\n\t\turlVFS = new UrlVFS();\n\t\tvfsHash = new Hashtable();\n\t\tprotocolHash = new Hashtable();\n\t\tvfsUpdateLock = new Object();\n\t\tvfsUpdates = new Vector();\n\t} //}}}\n\n\tprivate VFSManager() {}", "functions": [{"function_name": "init", "code": "\tpublic static void init()\n\t{\n\t\tint count = jEdit.getIntegerProperty(\"ioThreadCount\",4);\n\t\tioThreadPool = new WorkThreadPool(\"jEdit I/O\",count);\n\t\tregisterVFS(FavoritesVFS.PROTOCOL,new FavoritesVFS());\n\t\tif(OperatingSystem.isDOSDerived())\n\t\t\tregisterVFS(FileRootsVFS.PROTOCOL,new FileRootsVFS());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 6], [4, 7], [5, 8], [2, 9], [6, 10], [8, 11], [9, 12], [9, 13], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 1], [7, 4], [8, 5], [9, 2], [10, 6], [11, 8], [12, 9], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "start", "code": "\tpublic static void start()\n\t{\n\t\tioThreadPool.start();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFileVFS", "code": "\tpublic static VFS getFileVFS()\n\t{\n\t\treturn fileVFS;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getUrlVFS", "code": "\tpublic static VFS getUrlVFS()\n\t{\n\t\treturn urlVFS;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getVFSByName", "code": "\tpublic static VFS getVFSByName(String name)\n\t{\n\t\treturn (VFS)vfsHash.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getVFSForProtocol", "code": "\tpublic static VFS getVFSForProtocol(String protocol)\n\t{\n\t\tif(protocol.equals(\"file\"))\n\t\t\treturn fileVFS;\n\t\telse\n\t\t{\n\t\t\tVFS vfs = (VFS)protocolHash.get(protocol);\n\t\t\tif(vfs != null)\n\t\t\t\treturn vfs;\n\t\t\telse\n\t\t\t\treturn urlVFS;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [5, 9], [5, 10], [10, 11], [6, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 5], [10, 5], [11, 10], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getVFSForPath", "code": "\tpublic static VFS getVFSForPath(String path)\n\t{\n\t\tif(MiscUtilities.isURL(path))\n\t\t\treturn getVFSForProtocol(MiscUtilities.getProtocolOfURL(path));\n\t\telse\n\t\t\treturn fileVFS;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "registerVFS", "code": "\tpublic static void registerVFS(String protocol, VFS vfs)\n\t{\n\t\tLog.log(Log.DEBUG,VFSManager.class,\"Registered \"\n\t\t\t+ vfs.getName() + \" filesystem for \"\n\t\t\t+ protocol + \" protocol\");\n\t\tvfsHash.put(vfs.getName(),vfs);\n\t\tprotocolHash.put(protocol,vfs);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [7, 8], [7, 9], [9, 10], [10, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 7], [9, 7], [10, 9], [11, 10], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getFilesystems", "code": "\tpublic static Enumeration getFilesystems()\n\t{\n\t\treturn vfsHash.elements();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIOThreadPool", "code": "\tpublic static WorkThreadPool getIOThreadPool()\n\t{\n\t\treturn ioThreadPool;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "waitForRequests", "code": "\tpublic static void waitForRequests()\n\t{\n\t\tioThreadPool.waitForRequests();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "errorOccurred", "code": "\tpublic static boolean errorOccurred()\n\t{\n\t\treturn error;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRequestCount", "code": "\tpublic static int getRequestCount()\n\t{\n\t\treturn ioThreadPool.getRequestCount();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "runInAWTThread", "code": "\tpublic static void runInAWTThread(Runnable run)\n\t{\n\t\tioThreadPool.addWorkRequest(run,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "runInWorkThread", "code": "\tpublic static void runInWorkThread(Runnable run)\n\t{\n\t\tioThreadPool.addWorkRequest(run,false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "error", "code": "\tpublic static void error(final Component comp, final String error, final Object[] args)\n\t{\n\t\t// if we are already in the AWT thread, take a shortcut\n\t\tif(SwingUtilities.isEventDispatchThread())\n\t\t{\n\t\t\tGUIUtilities.error(comp,error,args);\n\t\t\treturn;\n\t\t}\n\n\t\t// the 'error' chicanery ensures that stuff like:\n\t\t// VFSManager.waitForRequests()\n\t\t// if(VFSManager.errorOccurred())\n\t\t//         ...\n\t\t// will work (because the below runnable will only be\n\t\t// executed in the next event)\n\t\tVFSManager.error = true;\n\n\t\trunInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tVFSManager.error = false;\n\n\t\t\t\tif(comp == null || !comp.isShowing())\n\t\t\t\t\tGUIUtilities.error(null,error,args);\n\t\t\t\telse\n\t\t\t\t\tGUIUtilities.error(comp,error,args);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "FUNC_DECL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [5, 8], [6, 9], [1, 10], [8, 11], [1, 12], [11, 13], [13, 14], [11, 15], [13, 16], [13, 17], [14, 18], [14, 19], [15, 20], [17, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 5], [9, 6], [10, 1], [11, 8], [12, 1], [13, 11], [14, 13], [15, 11], [16, 13], [17, 13], [18, 14], [19, 14], [20, 15], [21, 17], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "error", "code": "\tpublic static void error(Component comp,\n\t\tfinal String path,\n\t\tString messageProp,\n\t\tObject[] args)\n\t{\n\t\tfinal Frame frame = JOptionPane.getFrameForComponent(comp);\n\n\t\tsynchronized(errorLock)\n\t\t{\n\t\t\terror = true;\n\n\t\t\terrors.addElement(new ErrorListDialog.ErrorEntry(\n\t\t\t\tpath,messageProp,args));\n\n\t\t\tif(errors.size() == 1)\n\t\t\t{\n\t\t\t\tfinal String caption = jEdit.getProperty(\n\t\t\t\t\t\"ioerror.caption\" + (errors.size() == 1\n\t\t\t\t\t? \"-1\" : \"\"),new Integer[] {\n\t\t\t\t\tnew Integer(errors.size()) });\n\n\t\t\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tnew ErrorListDialog(\n\t\t\t\t\t\t\tframe.isShowing()\n\t\t\t\t\t\t\t? frame\n\t\t\t\t\t\t\t: jEdit.getFirstView(),\n\t\t\t\t\t\t\tjEdit.getProperty(\"ioerror.title\"),\n\t\t\t\t\t\t\tcaption,errors,false);\n\t\t\t\t\t\terrors.removeAllElements();\n\t\t\t\t\t\terror = false;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "ASSIGN", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "FUNC_DECL", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [0, 8], [0, 9], [1, 10], [6, 11], [7, 12], [7, 13], [8, 14], [9, 15], [6, 16], [16, 17], [11, 18], [17, 19], [18, 20], [20, 21], [20, 22], [19, 23], [19, 24], [19, 25], [18, 26], [21, 27], [21, 28], [21, 29], [23, 30], [25, 31], [25, 32], [25, 33], [26, 34], [29, 35], [29, 36], [32, 37], [33, 38], [33, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 0], [9, 0], [10, 1], [11, 6], [12, 7], [13, 7], [14, 8], [15, 9], [16, 6], [17, 16], [18, 11], [19, 17], [20, 18], [21, 20], [22, 20], [23, 19], [24, 19], [25, 19], [26, 18], [27, 21], [28, 21], [29, 21], [30, 23], [31, 25], [32, 25], [33, 25], [34, 26], [35, 29], [36, 29], [37, 32], [38, 33], [39, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "sendVFSUpdate", "code": "\tpublic static void sendVFSUpdate(VFS vfs, String path, boolean parent)\n\t{\n\t\tif(parent)\n\t\t{\n\t\t\tsendVFSUpdate(vfs,vfs.getParentOfPath(path),false);\n\t\t\tsendVFSUpdate(vfs,path,false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// have to do this hack until VFSPath class is written\n\t\t\tif(path.length() != 1 && (path.endsWith(\"/\")\n\t\t\t\t|| path.endsWith(java.io.File.separator)))\n\t\t\t\tpath = path.substring(0,path.length() - 1);\n\n\t\t\tsynchronized(vfsUpdateLock)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < vfsUpdates.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tVFSUpdate msg = (VFSUpdate)vfsUpdates\n\t\t\t\t\t\t.elementAt(i);\n\t\t\t\t\tif(msg.getPath().equals(path))\n\t\t\t\t\t{\n\t\t\t\t\t\t// don't send two updates\n\t\t\t\t\t\t// for the same path\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvfsUpdates.addElement(new VFSUpdate(path));\n\n\t\t\t\tif(vfsUpdates.size() == 1)\n\t\t\t\t{\n\t\t\t\t\t// we were the first to add an update;\n\t\t\t\t\t// add update sending runnable to AWT\n\t\t\t\t\t// thread\n\t\t\t\t\tVFSManager.runInAWTThread(new SendVFSUpdatesSafely());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "IF", "LOOP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [1, 9], [1, 10], [6, 11], [1, 12], [7, 13], [5, 14], [8, 15], [8, 16], [9, 17], [10, 18], [10, 19], [11, 20], [11, 21], [12, 22], [7, 23], [7, 24], [13, 25], [14, 26], [15, 27], [15, 28], [16, 29], [16, 30], [6, 31], [23, 32], [7, 33], [26, 34], [26, 35], [28, 36], [31, 37], [23, 38], [32, 39], [34, 40], [34, 41], [24, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 1], [10, 1], [11, 6], [12, 1], [13, 7], [14, 5], [15, 8], [16, 8], [17, 9], [18, 10], [19, 10], [20, 11], [21, 11], [22, 12], [23, 7], [24, 7], [25, 13], [26, 14], [27, 15], [28, 15], [29, 16], [30, 16], [31, 6], [32, 23], [33, 7], [34, 26], [35, 26], [36, 28], [37, 31], [38, 23], [39, 32], [40, 34], [41, 34], [42, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "VFSManager", "code": "\tprivate VFSManager() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.3-51", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/types/Mapper.java", "language": "java", "name": "org.apache.tools.ant.types.Mapper", "code": "public class Mapper extends DataType {\n\n    protected Project p;\n\n    protected MapperType type = null;\n\n    public Mapper(Project p) {\n        this.p = p;\n    }\n\n    /**\n     * Set the type of FileNameMapper to use.\n     */\n    public void setType(MapperType type) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.type = type;\n    }\n\n    protected String classname = null;\n\n    /**\n     * Set the class name of the FileNameMapper to use.\n     */\n    public void setClassname(String classname) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.classname = classname;\n    }\n\n    protected Path classpath = null;\n\n    /**\n     * Set the classpath to load the FileNameMapper through (attribute).\n     */\n    public void setClasspath(Path classpath) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);\n        }\n    }\n\n    /**\n     * Set the classpath to load the FileNameMapper through (nested element).\n     */\n    public Path createClasspath() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (this.classpath == null) {\n            this.classpath = new Path(p);\n        }\n        return this.classpath.createPath();\n    }\n\n    /**\n     * Set the classpath to load the FileNameMapper through via\n     * reference (attribute).\n     */\n    public void setClasspathRef(Reference r) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        createClasspath().setRefid(r);\n    }\n\n    protected String from = null;\n\n    /**\n     * Set the argument to FileNameMapper.setFrom\n     */\n    public void setFrom(String from) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.from = from;\n    }\n\n    protected String to = null;\n\n    /**\n     * Set the argument to FileNameMapper.setTo\n     */\n    public void setTo(String to) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.to = to;\n    }\n\n    /**\n     * Make this Mapper instance a reference to another Mapper.\n     *\n     * <p>You must not set any other attribute if you make it a\n     * reference.</p>\n     */\n    public void setRefid(Reference r) throws BuildException {\n        if (type != null || from != null || to != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);\n    }\n\n    /**\n     * Returns a fully configured FileNameMapper implementation.\n     */\n    public FileNameMapper getImplementation() throws BuildException {\n        if (isReference()) {\n            return getRef().getImplementation();\n        }\n        \n        if (type == null && classname == null) {\n            throw new BuildException(\"one of the attributes type or classname is required\");\n        }\n\n        if (type != null && classname != null) {\n            throw new BuildException(\"must not specify both type and classname attribute\");\n        }\n\n        try {\n            if (type != null) {\n                classname = type.getImplementation();\n            }\n\n            Class c = null;\n            if (classpath == null) {\n                c = Class.forName(classname);\n            } else {\n                AntClassLoader al = new AntClassLoader(p, classpath);\n                c = al.loadClass(classname);\n            }\n            \n            FileNameMapper m = (FileNameMapper) c.newInstance();\n            m.setFrom(from);\n            m.setTo(to);\n            return m;\n        } catch (BuildException be) {\n            throw be;\n        } catch (Throwable t) {\n            throw new BuildException(t);\n        } finally {\n            if (type != null) {\n                classname = null;\n            }\n        }\n    }\n        \n    /**\n     * Performs the check for circular references and returns the\n     * referenced Mapper.  \n     */\n    protected Mapper getRef() {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, p);\n        }\n        \n        Object o = ref.getReferencedObject(p);\n        if (!(o instanceof Mapper)) {\n            String msg = ref.getRefId()+\" doesn\\'t denote a mapper\";\n            throw new BuildException(msg);\n        } else {\n            return (Mapper) o;\n        }\n    }\n\n    /**\n     * Class as Argument to FileNameMapper.setType.\n     */\n    public static class MapperType extends EnumeratedAttribute {\n        private Properties implementations;\n\n        public MapperType() {\n            implementations = new Properties();\n            implementations.put(\"identity\", \n                                \"org.apache.tools.ant.util.IdentityMapper\");\n            implementations.put(\"flatten\", \n                                \"org.apache.tools.ant.util.FlatFileNameMapper\");\n            implementations.put(\"glob\", \n                                \"org.apache.tools.ant.util.GlobPatternMapper\");\n            implementations.put(\"merge\", \n                                \"org.apache.tools.ant.util.MergingMapper\");\n            implementations.put(\"regexp\", \n                                \"org.apache.tools.ant.util.RegexpPatternMapper\");\n        }\n\n        public String[] getValues() {\n            return new String[] {\"identity\", \"flatten\", \"glob\", \"merge\", \"regexp\"};\n        }\n\n        public String getImplementation() {\n            return implementations.getProperty(getValue());", "functions": [{"function_name": "setType", "code": "    public void setType(MapperType type) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setClassname", "code": "    public void setClassname(String classname) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.classname = classname;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [1, 8], [7, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 1], [9, 7], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (this.classpath == null) {\n            this.classpath = new Path(p);\n        }\n        return this.classpath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 6], [4, 7], [3, 8], [2, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 1], [7, 4], [8, 3], [9, 2], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setFrom", "code": "    public void setFrom(String from) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.from = from;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setTo", "code": "    public void setTo(String to) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.to = to;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setRefid", "code": "    public void setRefid(Reference r) throws BuildException {\n        if (type != null || from != null || to != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [5, 8], [6, 9], [6, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 5], [9, 6], [10, 6], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getImplementation", "code": "    public FileNameMapper getImplementation() throws BuildException {\n        if (isReference()) {\n            return getRef().getImplementation();\n        }\n        \n        if (type == null && classname == null) {\n            throw new BuildException(\"one of the attributes type or classname is required\");\n        }\n\n        if (type != null && classname != null) {\n            throw new BuildException(\"must not specify both type and classname attribute\");\n        }\n\n        try {\n            if (type != null) {\n                classname = type.getImplementation();\n            }\n\n            Class c = null;\n            if (classpath == null) {\n                c = Class.forName(classname);\n            } else {\n                AntClassLoader al = new AntClassLoader(p, classpath);\n                c = al.loadClass(classname);\n            }\n            \n            FileNameMapper m = (FileNameMapper) c.newInstance();\n            m.setFrom(from);\n            m.setTo(to);\n            return m;\n        } catch (BuildException be) {\n            throw be;\n        } catch (Throwable t) {\n            throw new BuildException(t);\n        } finally {\n            if (type != null) {\n                classname = null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "IF", "IF", "CATCH", "CATCH", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [3, 14], [4, 15], [5, 16], [6, 17], [7, 18], [1, 19], [1, 20], [10, 21], [12, 22], [2, 23], [13, 24], [13, 25], [3, 26], [14, 27], [14, 28], [4, 29], [16, 30], [17, 31], [10, 32], [21, 33], [11, 34], [22, 35], [23, 36], [24, 37], [25, 38], [26, 39], [27, 40], [28, 41], [29, 42], [5, 43], [9, 44], [10, 45], [10, 46], [12, 47], [36, 48], [39, 49], [42, 50], [43, 51], [45, 52], [32, 53], [46, 54], [47, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 3], [15, 4], [16, 5], [17, 6], [18, 7], [19, 1], [20, 1], [21, 10], [22, 12], [23, 2], [24, 13], [25, 13], [26, 3], [27, 14], [28, 14], [29, 4], [30, 16], [31, 17], [32, 10], [33, 21], [34, 11], [35, 22], [36, 23], [37, 24], [38, 25], [39, 26], [40, 27], [41, 28], [42, 29], [43, 5], [44, 9], [45, 10], [46, 10], [47, 12], [48, 36], [49, 39], [50, 42], [51, 43], [52, 45], [53, 32], [54, 46], [55, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "getRef", "code": "    protected Mapper getRef() {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, p);\n        }\n        \n        Object o = ref.getReferencedObject(p);\n        if (!(o instanceof Mapper)) {\n            String msg = ref.getRefId()+\" doesn\\'t denote a mapper\";\n            throw new BuildException(msg);\n        } else {\n            return (Mapper) o;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "RETURN", "THROW_RAISE", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [6, 10], [3, 11], [3, 12], [7, 13], [9, 14], [13, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 6], [11, 3], [12, 3], [13, 7], [14, 9], [15, 13], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "Mapper", "code": "    public Mapper(Project p) {\n        this.p = p;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6717", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/utils/synthetic/reflection/Field.java", "language": "java", "name": "org.apache.xml.utils.synthetic.reflection.Field", "code": "public class Field extends Object implements Member\n{\n\n  /** Field name, initializer          */\n  public String name, initializer = null;\n\n  /** Field modifiers          */\n  int modifiers;\n\n  /** Field realfield          */\n  java.lang.reflect.Field realfield = null;\n\n  /** Field declaringClass, type          */\n  Class declaringClass, type;\n\n  /**\n   * Proxy constructor \n   *\n   * @param realfield\n   * @param declaringClass\n   */\n  public Field(java.lang.reflect.Field realfield,\n               org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n\n    this(realfield.getName(), declaringClass);\n\n    this.realfield = realfield;\n    this.type =\n      org.apache.xml.utils.synthetic.Class.forClass(realfield.getType());\n  }\n\n  /**\n   * Synthesis constructor \n   *\n   * @param name\n   * @param declaringClass\n   */\n  public Field(String name,\n               org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n    this.name = name;\n    this.declaringClass = declaringClass;\n  }\n\n  /**\n   * Compares this Field against the specified object.\n   * Returns true if the objects are the same. Two\n   * Fields are the same if they were declared by the\n   * same class and have the same name and type.\n   *\n   * @param obj\n   *\n   */\n  public boolean equals(Object obj)\n  {\n\n    if (realfield != null)\n      return realfield.equals(obj);\n    else if (obj instanceof Field)\n    {\n      Field objf = (Field) obj;\n\n      return (declaringClass.equals(objf.declaringClass)\n              && name.equals(objf.name) && type.equals(objf.type));\n    }\n    else\n      return false;\n  }\n\n  /**\n   * Returns the value of the field represented by this\n   * Field, on the specified object. The value is\n   * automatically wrapped in an object if it has a\n   * primitive type.\n   * <p>\n   * The underlying field's value is obtained as follows:\n   * <p>\n   * If the underlying field is a static field, the object\n   * argument is ignored; it may be null.\n   * <p>\n   * Otherwise, the underlying field is an instance\n   * field. If the specified object argument is null, the\n   * method throws a NullPointerException. If the\n   * specified object is not an instance of the class or\n   * interface declaring the underlying field, the\n   * method throws an IllegalArgumentException.\n   * <p>\n   * If this Field object enforces Java language access\n   * control, and the underlying field is inaccessible,\n   * the method throws an IllegalAccessException.\n   * <p>\n   * Otherwise, the value is retrieved from the\n   * underlying instance or static field. If the field has a\n   * primitive type, the value is wrapped in an object\n   * before being returned, otherwise it is returned as\n   * is.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field.\n   * @throws NullPointerException\n   * if the specified object is null.\n   */\n  public Object get(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.get(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a boolean on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public boolean getBoolean(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getBoolean(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a byte on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public byte getByte(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getByte(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a char on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public char getChar(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getChar(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Returns the Class object representing the class or\n   * interface that declares the field represented by this\n   * Field object.\n   *\n   */\n  public org.apache.xml.utils.synthetic.Class getDeclaringClass()\n  {\n\n    if (realfield != null)\n      return org.apache.xml.utils.synthetic.Class.forClass(\n        realfield.getDeclaringClass());\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a double on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public double getDouble(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getDouble(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a float on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public float getFloat(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getFloat(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a int on specified object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public int getInt(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getInt(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a long on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public long getLong(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getLong(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Returns the Java language modifiers for the field\n   * represented by this Field object, as an integer. The\n   * Modifier class should be used to decode the\n   * modifiers.\n   *\n   */\n  public int getModifiers()\n  {\n\n    if (realfield != null)\n      modifiers = realfield.getModifiers();\n\n    return modifiers;\n  }\n\n  /**\n   * Method getInitializer \n   *\n   *\n   * (getInitializer) @return\n   */\n  public String getInitializer()\n  {\n    return initializer;\n  }\n\n  /**\n   * Method setInitializer \n   *\n   *\n   * @param i\n   *\n   * @throws SynthesisException\n   */\n  public void setInitializer(String i) throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    initializer = i;\n  }\n\n  /**\n   * Insert the method's description here.\n   * Creation date: (12-25-99 2:02:26 PM)\n   * @return java.lang.String\n   */\n  public java.lang.String getName()\n  {\n    return name;\n  }\n\n  /**\n   * Get the value of a field as a short on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public short getShort(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getShort(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Returns a Class object that identifies the declared\n   * type for the field represented by this Field object.\n   *\n   */\n  public Class getType()\n  {\n\n    if (realfield != null)\n      type = Class.forClass(realfield.getType());\n\n    return type;\n  }\n\n  /**\n   * Method setType \n   *\n   *\n   * @param type\n   *\n   * @throws SynthesisException\n   */\n  public void setType(org.apache.xml.utils.synthetic.Class type)\n          throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    this.type = type;\n  }\n\n  /**\n   * Returns a hashcode for this Field. This is\n   * computed as the exclusive-or of the hashcodes for\n   * the underlying field's declaring class name and its\n   * name.\n   *\n   */\n  public int hashCode()\n  {\n\n    if (realfield != null)\n      return realfield.hashCode();\n    else\n      return declaringClass.getName().hashCode() ^ name.hashCode();\n  }\n\n  /**\n   * Sets the field represented by this Field object on\n   * the specified object argument to the specified new\n   * value. The new value is automatically unwrapped\n   * if the underlying field has a primitive type.\n   *\n   * The operation proceeds as follows:\n   *\n   * If the underlying field is static, the object\n   * argument is ignored; it may be null.\n   *\n   * Otherwise the underlying field is an instance field.\n   * If the specified object argument is null, the\n   * method throws a NullPointerException. If the\n   * specified object argument is not an instance of the\n   * class or interface declaring the underlying field,\n   * the method throws an IllegalArgumentException.\n   *\n   * If this Field object enforces Java language access\n   * control, and the underlying field is inaccessible,\n   * the method throws an IllegalAccessException.\n   *\n   * If the underlying field is final, the method throws\n   * an IllegalAccessException.\n   *\n   * If the underlying field is of a primitive type, an\n   * unwrapping conversion is attempted to convert the\n   * new value to a value of a primitive type. If this\n   * attempt fails, the method throws an\n   * IllegalArgumentException.\n   *\n   * If, after possible unwrapping, the new value\n   * cannot be converted to the type of the underlying\n   * field by an identity or widening conversion, the\n   * method throws an IllegalArgumentException.\n   *\n   * The field is set to the possibly unwrapped and\n   * widened new value.\n   *\n   *\n   * @param obj\n   * @param value\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   * @throws NullPointerException\n   * if the specified object is null.\n   */\n  public void set(Object obj, Object value)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.set(obj, value);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as a boolean on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param z\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setBoolean(Object obj, boolean z)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setBoolean(obj, z);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as a byte on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param b\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setByte(Object obj, byte b)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setByte(obj, b);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as a char on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param c\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setChar(Object obj, char c)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setChar(obj, c);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Returns the Class object representing the class that\n   * declares the constructor represented by this\n   * Constructor object.\n   *\n   * @param declaringClass\n   */\n  public void setDeclaringClass(\n          org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n    this.declaringClass = declaringClass;\n  }\n\n  /**\n   * Set the value of a field as a double on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param d\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setDouble(Object obj, double d)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setDouble(obj, d);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as a float on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param f\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setFloat(Object obj, float f)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setFloat(obj, f);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as an int on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param i\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setInt(Object obj, int i)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setInt(obj, i);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as a long on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param l\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setLong(Object obj, long l)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setLong(obj, l);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Insert the method's description here.\n   * Creation date: (12-25-99 1:28:28 PM)\n   * @return int\n   * @param modifiers int\n   *\n   * @throws SynthesisException\n   */\n  public void setModifiers(int modifiers) throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    this.modifiers = modifiers;\n  }\n\n  /**\n   * Set the value of a field as a short on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param s\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setShort(Object obj, short s)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setShort(obj, s);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Return a string describing this Field. The format is\n   * the access modifiers for the field, if any, followed\n   * by the field type, followed by a space, followed by\n   * the fully-qualified name of the class declaring the\n   * field, followed by a period, followed by the name\n   * of the field. For example:\n   * <code>\n   * public static final int java.lang.Thread.MIN_PRIORITY\n   * private int java.io.FileDescriptor.fd\n   * </code>\n   *\n   * The modifiers are placed in canonical order as\n   * specified by \"The Java Language Specification\".\n   * This is public, protected or private first,\n   * and then other modifiers in the following order:\n   * static, final, transient, volatile.\n   *\n   */\n  public String toString()\n  {\n\n    if (realfield != null)\n      return realfield.toString();\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Output the Field as Java sourcecode\n   *\n   */\n  public String toSource()\n  {\n\n    StringBuffer sb = new StringBuffer(\n      java.lang.reflect.Modifier.toString(getModifiers())).append(' ').append(\n      getType().getJavaName()).append(' ').append(getName());\n    String i = getInitializer();\n\n    if (i != null && i.length() > 0)\n      sb.append('=').append(i);\n\n    sb.append(';');\n\n    return sb.toString();", "functions": [{"function_name": "equals", "code": "  public boolean equals(Object obj)\n  {\n\n    if (realfield != null)\n      return realfield.equals(obj);\n    else if (obj instanceof Field)\n    {\n      Field objf = (Field) obj;\n\n      return (declaringClass.equals(objf.declaringClass)\n              && name.equals(objf.name) && type.equals(objf.type));\n    }\n    else\n      return false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [5, 9], [6, 10], [3, 11], [3, 12], [11, 13], [13, 14], [13, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 5], [10, 6], [11, 3], [12, 3], [13, 11], [14, 13], [15, 13], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "get", "code": "  public Object get(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.get(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getBoolean", "code": "  public boolean getBoolean(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getBoolean(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getByte", "code": "  public byte getByte(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getByte(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getChar", "code": "  public char getChar(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getChar(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDeclaringClass", "code": "  public org.apache.xml.utils.synthetic.Class getDeclaringClass()\n  {\n\n    if (realfield != null)\n      return org.apache.xml.utils.synthetic.Class.forClass(\n        realfield.getDeclaringClass());\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDouble", "code": "  public double getDouble(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getDouble(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getFloat", "code": "  public float getFloat(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getFloat(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getInt", "code": "  public int getInt(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getInt(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLong", "code": "  public long getLong(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getLong(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getModifiers", "code": "  public int getModifiers()\n  {\n\n    if (realfield != null)\n      modifiers = realfield.getModifiers();\n\n    return modifiers;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getInitializer", "code": "  public String getInitializer()\n  {\n    return initializer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInitializer", "code": "  public void setInitializer(String i) throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    initializer = i;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getName", "code": "  public java.lang.String getName()\n  {\n    return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getShort", "code": "  public short getShort(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getShort(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getType", "code": "  public Class getType()\n  {\n\n    if (realfield != null)\n      type = Class.forClass(realfield.getType());\n\n    return type;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setType", "code": "  public void setType(org.apache.xml.utils.synthetic.Class type)\n          throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    this.type = type;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "hashCode", "code": "  public int hashCode()\n  {\n\n    if (realfield != null)\n      return realfield.hashCode();\n    else\n      return declaringClass.getName().hashCode() ^ name.hashCode();", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [5, 8], [5, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 5], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "set", "code": "  public void set(Object obj, Object value)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.set(obj, value);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setBoolean", "code": "  public void setBoolean(Object obj, boolean z)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setBoolean(obj, z);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setByte", "code": "  public void setByte(Object obj, byte b)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setByte(obj, b);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setChar", "code": "  public void setChar(Object obj, char c)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setChar(obj, c);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setDeclaringClass", "code": "  public void setDeclaringClass(\n          org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n    this.declaringClass = declaringClass;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDouble", "code": "  public void setDouble(Object obj, double d)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setDouble(obj, d);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setFloat", "code": "  public void setFloat(Object obj, float f)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setFloat(obj, f);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setInt", "code": "  public void setInt(Object obj, int i)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setInt(obj, i);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setLong", "code": "  public void setLong(Object obj, long l)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setLong(obj, l);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setModifiers", "code": "  public void setModifiers(int modifiers) throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    this.modifiers = modifiers;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setShort", "code": "  public void setShort(Object obj, short s)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setShort(obj, s);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "toString", "code": "  public String toString()\n  {\n\n    if (realfield != null)\n      return realfield.toString();\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toSource", "code": "  public String toSource()\n  {\n\n    StringBuffer sb = new StringBuffer(\n      java.lang.reflect.Modifier.toString(getModifiers())).append(' ').append(\n      getType().getJavaName()).append(' ').append(getName());\n    String i = getInitializer();\n\n    if (i != null && i.length() > 0)\n      sb.append('=').append(i);\n\n    sb.append(';');\n\n    return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [6, 8], [2, 9], [7, 10], [7, 11], [3, 12], [4, 13], [9, 14], [9, 15], [10, 16], [10, 17], [11, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [19, 24], [20, 25], [21, 26], [22, 27], [23, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 6], [9, 2], [10, 7], [11, 7], [12, 3], [13, 4], [14, 9], [15, 9], [16, 10], [17, 10], [18, 11], [19, 13], [20, 13], [21, 13], [22, 13], [23, 13], [24, 19], [25, 20], [26, 21], [27, 22], [28, 23], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "Field", "code": "  public Field(java.lang.reflect.Field realfield,\n               org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n\n    this(realfield.getName(), declaringClass);\n\n    this.realfield = realfield;\n    this.type =\n      org.apache.xml.utils.synthetic.Class.forClass(realfield.getType());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "Field", "code": "  public Field(String name,\n               org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n    this.name = name;\n    this.declaringClass = declaringClass;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.2-1973", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/spring/handler/CamelNamespaceHandler.java", "language": "java", "name": "org.apache.camel.spring.handler.CamelNamespaceHandler", "code": "public class CamelNamespaceHandler extends NamespaceHandlerSupport {\n    public static final String JAXB_PACKAGES = \"org.apache.camel.spring:org.apache.camel.model:org.apache.camel.model.config:org.apache.camel.model.dataformat:org.apache.camel.model.language\";\n\n    protected BeanDefinitionParser endpointParser = new BeanDefinitionParser(EndpointFactoryBean.class);\n    protected BeanDefinitionParser proxyParser = new BeanDefinitionParser(CamelProxyFactoryBean.class);\n    protected BeanDefinitionParser exportParser = new BeanDefinitionParser(CamelServiceExporter.class);\n    protected BeanDefinitionParser beanPostProcessorParser = new BeanDefinitionParser(CamelBeanPostProcessor.class);\n\n    protected Set<String> parserElementNames = new HashSet<String>();\n    private JAXBContext jaxbContext;\n\n    public void init() {\n        registerParser(\"endpoint\", endpointParser);\n        registerParser(\"proxy\", proxyParser);\n        registerParser(\"export\", exportParser);\n\n        registerParser(\"camelContext\", new CamelContextBeanDefinitionParser(CamelContextFactoryBean.class));\n\n        registerParser(\"xpath\", new BeanDefinitionParser(XPathBuilder.class) {\n            @Override\n            protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {\n                String xpath = DomUtils.getTextValue(element);\n                builder.addConstructorArg(xpath);\n                super.doParse(element, parserContext, builder);\n                builder.addPropertyValue(\"namespacesFromDom\", element);\n            }\n        });\n    }\n\n    protected void createBeanPostProcessor(ParserContext parserContext, String contextId, Element childElement) {\n        String beanPostProcessorId = contextId + \":beanPostProcessor\";\n        childElement.setAttribute(\"id\", beanPostProcessorId);\n        BeanDefinition definition = beanPostProcessorParser.parse(childElement, parserContext);\n        definition.getPropertyValues().addPropertyValue(\"camelContext\", new RuntimeBeanReference(contextId));\n    }\n\n    protected void registerScriptParser(String elementName, String engineName) {\n        registerParser(elementName, new ScriptDefinitionParser(engineName));\n    }\n\n    protected void registerParser(String name, org.springframework.beans.factory.xml.BeanDefinitionParser parser) {\n        parserElementNames.add(name);\n        registerBeanDefinitionParser(name, parser);\n    }\n\n    public Set<String> getParserElementNames() {\n        return parserElementNames;\n    }\n\n    protected Object parseUsingJaxb(Element element, ParserContext parserContext) {\n        try {\n            Unmarshaller unmarshaller = getJaxbContext().createUnmarshaller();\n            return unmarshaller.unmarshal(element);\n        } catch (JAXBException e) {\n            throw new BeanDefinitionStoreException(\"Failed to parse JAXB element: \" + e, e);\n        }\n    }\n\n    protected JAXBContext getJaxbContext() throws JAXBException {\n        if (jaxbContext == null) {\n            jaxbContext = createJaxbContext();\n        }\n        return jaxbContext;\n    }\n\n    protected JAXBContext createJaxbContext() throws JAXBException {\n        return JAXBContext.newInstance(JAXB_PACKAGES);\n    }\n\n    protected class CamelContextBeanDefinitionParser extends BeanDefinitionParser {\n        public CamelContextBeanDefinitionParser(Class type) {\n            super(type);\n        }\n\n        @Override\n            protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {\n            super.doParse(element, parserContext, builder);\n\n            String contextId = element.getAttribute(\"id\");\n\n            if (ObjectHelper.isNullOrBlank(contextId)) {\n                contextId = \"camelContext\";\n                element.setAttribute(\"id\", contextId);\n            }\n\n            Object value = parseUsingJaxb(element, parserContext);\n            if (value instanceof CamelContextFactoryBean) {\n                CamelContextFactoryBean factoryBean = (CamelContextFactoryBean)value;\n                builder.addPropertyValue(\"id\", contextId);\n                builder.addPropertyValue(\"routes\", factoryBean.getRoutes());\n\n                if (factoryBean.getPackages().length > 0) {\n                    builder.addPropertyValue(\"packages\", factoryBean.getPackages());\n                }\n            }\n\n            boolean createdBeanPostProcessor = false;\n            NodeList list = element.getChildNodes();\n            int size = list.getLength();\n            for (int i = 0; i < size; i++) {\n                Node child = list.item(i);\n                if (child instanceof Element) {\n                    Element childElement = (Element)child;\n                    String localName = child.getLocalName();\n                    if (localName.equals(\"beanPostProcessor\")) {\n                        createBeanPostProcessor(parserContext, contextId, childElement);\n                        createdBeanPostProcessor = true;\n                    } else if (localName.equals(\"endpoint\")) {\n                        BeanDefinition definition = endpointParser.parse(childElement, parserContext);\n                        String id = childElement.getAttribute(\"id\");\n                        if (ObjectHelper.isNotNullAndNonEmpty(id)) {\n                            definition.getPropertyValues().addPropertyValue(\"camelContext\", new RuntimeBeanReference(contextId));\n                            parserContext.registerComponent(new BeanComponentDefinition(definition, id));\n                        }\n                    } else if (localName.equals(\"proxy\")) {\n                        BeanDefinition definition = proxyParser.parse(childElement, parserContext);\n                        String id = childElement.getAttribute(\"id\");\n                        if (ObjectHelper.isNotNullAndNonEmpty(id)) {\n                            parserContext.registerComponent(new BeanComponentDefinition(definition, id));\n                        }\n                    } else if (localName.equals(\"export\")) {\n                        BeanDefinition definition = exportParser.parse(childElement, parserContext);\n                        String id = childElement.getAttribute(\"id\");\n                        if (ObjectHelper.isNotNullAndNonEmpty(id)) {\n                            parserContext.registerComponent(new BeanComponentDefinition(definition, id));\n                        }\n                    }\n                }\n            }\n            if (!createdBeanPostProcessor) {\n                Element childElement = element.getOwnerDocument().createElement(\"beanPostProcessor\");\n                element.appendChild(childElement);\n                createBeanPostProcessor(parserContext, contextId, childElement);", "functions": [{"function_name": "init", "code": "    public void init() {\n        registerParser(\"endpoint\", endpointParser);\n        registerParser(\"proxy\", proxyParser);\n        registerParser(\"export\", exportParser);\n\n        registerParser(\"camelContext\", new CamelContextBeanDefinitionParser(CamelContextFactoryBean.class));\n\n        registerParser(\"xpath\", new BeanDefinitionParser(XPathBuilder.class) {\n            @Override\n            protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {\n                String xpath = DomUtils.getTextValue(element);\n                builder.addConstructorArg(xpath);\n                super.doParse(element, parserContext, builder);\n                builder.addPropertyValue(\"namespacesFromDom\", element);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [2, 9], [3, 10], [4, 11], [5, 12], [6, 13], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [18, 20], [14, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 2], [10, 3], [11, 4], [12, 5], [13, 6], [14, 13], [15, 13], [16, 13], [17, 13], [18, 13], [19, 13], [20, 18], [21, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createBeanPostProcessor", "code": "    protected void createBeanPostProcessor(ParserContext parserContext, String contextId, Element childElement) {\n        String beanPostProcessorId = contextId + \":beanPostProcessor\";\n        childElement.setAttribute(\"id\", beanPostProcessorId);\n        BeanDefinition definition = beanPostProcessorParser.parse(childElement, parserContext);\n        definition.getPropertyValues().addPropertyValue(\"camelContext\", new RuntimeBeanReference(contextId));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [1, 9], [7, 10], [2, 11], [8, 12], [8, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 1], [10, 7], [11, 2], [12, 8], [13, 8], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "registerScriptParser", "code": "    protected void registerScriptParser(String elementName, String engineName) {\n        registerParser(elementName, new ScriptDefinitionParser(engineName));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "registerParser", "code": "    protected void registerParser(String name, org.springframework.beans.factory.xml.BeanDefinitionParser parser) {\n        parserElementNames.add(name);\n        registerBeanDefinitionParser(name, parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getParserElementNames", "code": "    public Set<String> getParserElementNames() {\n        return parserElementNames;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parseUsingJaxb", "code": "    protected Object parseUsingJaxb(Element element, ParserContext parserContext) {\n        try {\n            Unmarshaller unmarshaller = getJaxbContext().createUnmarshaller();\n            return unmarshaller.unmarshal(element);\n        } catch (JAXBException e) {\n            throw new BeanDefinitionStoreException(\"Failed to parse JAXB element: \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [7, 9], [6, 10], [9, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 7], [10, 6], [11, 9], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getJaxbContext", "code": "    protected JAXBContext getJaxbContext() throws JAXBException {\n        if (jaxbContext == null) {\n            jaxbContext = createJaxbContext();\n        }\n        return jaxbContext;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createJaxbContext", "code": "    protected JAXBContext createJaxbContext() throws JAXBException {\n        return JAXBContext.newInstance(JAXB_PACKAGES);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7879", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/ValueOf.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.ValueOf", "code": "final class ValueOf extends Instruction {\n    private Expression _select;\n    private boolean _escaping = true;\n    private boolean _isString = false;\n\n    public void display(int indent) {\n        indent(indent);\n        Util.println(\"ValueOf\");\n        indent(indent + IndentIncrement);\n        Util.println(\"select \" + _select.toString());\n    }\n\n    public void parseContents(Parser parser) {\n        _select = parser.parseExpression(this, \"select\", null);\n\n        if (_select.isDummy()) {\n            reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"select\");\n            return;\n        }\n        final String str = getAttribute(\"disable-output-escaping\");\n        if ((str != null) && (str.equals(\"yes\"))) _escaping = false;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n        Type type = _select.typeCheck(stable);\n\n        if (type != null && !type.identicalTo(Type.Node)) {\n            /***\n             *** %HZ% Would like to treat result-tree fragments in the same\n             *** %HZ% way as node sets for value-of, but that's running into\n             *** %HZ% some snags.  Instead, they'll be converted to String\n            if (type.identicalTo(Type.ResultTree)) {\n                _select = new CastExpr(new CastExpr(_select, Type.NodeSet),\n                                       Type.Node);\n            } else\n            ***/\n            if (type.identicalTo(Type.NodeSet)) {\n                _select = new CastExpr(_select, Type.Node);\n            } else {\n                _isString = true;\n                if (!type.identicalTo(Type.String)) {\n                    _select = new CastExpr(_select, Type.String);\n                }\n                _isString = true;\n            }\n        }\n        return Type.Void;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n        final ConstantPoolGen cpg = classGen.getConstantPool();\n        final InstructionList il = methodGen.getInstructionList();\n        final int setEscaping = cpg.addInterfaceMethodref(OUTPUT_HANDLER,\n                                                          \"setEscaping\",\"(Z)Z\");\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(new PUSH(cpg,false));\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n        }\n\n        if (_isString) {\n            final int characters = cpg.addMethodref(TRANSLET_CLASS,\n                                                    CHARACTERSW,\n                                                    CHARACTERSW_SIG);\n\n            il.append(classGen.loadTranslet());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEVIRTUAL(characters));\n        } else {\n            final int characters = cpg.addInterfaceMethodref(DOM_INTF,\n                                                             CHARACTERS,\n                                                             CHARACTERS_SIG);\n\n            il.append(methodGen.loadDOM());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEINTERFACE(characters, 3));\n        }\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(SWAP);\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n            il.append(POP);", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n        indent(indent);\n        Util.println(\"ValueOf\");\n        indent(indent + IndentIncrement);\n        Util.println(\"select \" + _select.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n        _select = parser.parseExpression(this, \"select\", null);\n\n        if (_select.isDummy()) {\n            reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"select\");\n            return;\n        }\n        final String str = getAttribute(\"disable-output-escaping\");\n        if ((str != null) && (str.equals(\"yes\"))) _escaping = false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [0, 7], [1, 8], [5, 9], [5, 10], [2, 11], [3, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [3, 18], [13, 19], [13, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 0], [8, 1], [9, 5], [10, 5], [11, 2], [12, 3], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 3], [19, 13], [20, 13], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n        Type type = _select.typeCheck(stable);\n\n        if (type != null && !type.identicalTo(Type.Node)) {\n            /***\n             *** %HZ% Would like to treat result-tree fragments in the same\n             *** %HZ% way as node sets for value-of, but that's running into\n             *** %HZ% some snags.  Instead, they'll be converted to String\n            if (type.identicalTo(Type.ResultTree)) {\n                _select = new CastExpr(new CastExpr(_select, Type.NodeSet),\n                                       Type.Node);\n            } else\n            ***/\n            if (type.identicalTo(Type.NodeSet)) {\n                _select = new CastExpr(_select, Type.Node);\n            } else {\n                _isString = true;\n                if (!type.identicalTo(Type.String)) {\n                    _select = new CastExpr(_select, Type.String);\n                }\n                _isString = true;\n            }\n        }\n        return Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [6, 10], [8, 11], [6, 12], [6, 13], [12, 14], [6, 15], [6, 16], [13, 17], [15, 18], [16, 19], [12, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 6], [11, 8], [12, 6], [13, 6], [14, 12], [15, 6], [16, 6], [17, 13], [18, 15], [19, 16], [20, 12], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n        final ConstantPoolGen cpg = classGen.getConstantPool();\n        final InstructionList il = methodGen.getInstructionList();\n        final int setEscaping = cpg.addInterfaceMethodref(OUTPUT_HANDLER,\n                                                          \"setEscaping\",\"(Z)Z\");\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(new PUSH(cpg,false));\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n        }\n\n        if (_isString) {\n            final int characters = cpg.addMethodref(TRANSLET_CLASS,\n                                                    CHARACTERSW,\n                                                    CHARACTERSW_SIG);\n\n            il.append(classGen.loadTranslet());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEVIRTUAL(characters));\n        } else {\n            final int characters = cpg.addInterfaceMethodref(DOM_INTF,\n                                                             CHARACTERS,\n                                                             CHARACTERS_SIG);\n\n            il.append(methodGen.loadDOM());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEINTERFACE(characters, 3));\n        }\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(SWAP);\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n            il.append(POP);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [4, 11], [5, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [3, 26], [3, 27], [3, 28], [11, 29], [11, 30], [15, 31], [17, 32], [18, 33], [19, 34], [21, 35], [9, 36], [22, 37], [23, 38], [25, 39], [10, 40], [26, 41], [27, 42], [28, 43], [31, 44], [33, 45], [41, 46], [42, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 4], [12, 5], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 3], [27, 3], [28, 3], [29, 11], [30, 11], [31, 15], [32, 17], [33, 18], [34, 19], [35, 21], [36, 9], [37, 22], [38, 23], [39, 25], [40, 10], [41, 26], [42, 27], [43, 28], [44, 31], [45, 33], [46, 41], [47, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}], "label": 0}
{"sample_id": "xalan-2.7-8024", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/SingletonIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.SingletonIterator", "code": "public class SingletonIterator extends DTMAxisIteratorBase {\n    private int _node;\n    private final boolean _isConstant;\n\n    public SingletonIterator() {\n\tthis(Integer.MIN_VALUE, false);\n    }\n\n    public SingletonIterator(int node) {\n\tthis(node, false);\n    }\n\n    public SingletonIterator(int node, boolean constant) {\n\t_node = _startNode = node;\n\t_isConstant = constant;\n    }\n    \n    /**\n     * Override the value of <tt>_node</tt> only when this\n     * object was constructed using the empty constructor.\n     */\n    public DTMAxisIterator setStartNode(int node) {\n\tif (_isConstant) {\n\t    _node = _startNode;\n\t    return resetPosition();\n\t}\n\telse if (_isRestartable) {\n\t    if (_node <= 0)\n\t\t_node = _startNode = node;\n\t    return resetPosition();\n\t}\n\treturn this;\n    }\n\t\n    public DTMAxisIterator reset() {\n\tif (_isConstant) {\n\t    _node = _startNode;\n\t    return resetPosition();\n\t}\n\telse {\n\t    final boolean temp = _isRestartable;\n\t    _isRestartable = true;\n\t    setStartNode(_startNode);\n\t    _isRestartable = temp;\n\t}\n\treturn this;\n    }\n    \n    public int next() {\n\tfinal int result = _node;\n\t_node = DTMAxisIterator.END;\n\treturn returnNode(result);\n    }\n\n    public void setMark() {\n\t_markedNode = _node;\n    }\n\n    public void gotoMark() {\n\t_node = _markedNode;", "functions": [{"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(int node) {\n\tif (_isConstant) {\n\t    _node = _startNode;\n\t    return resetPosition();\n\t}\n\telse if (_isRestartable) {\n\t    if (_node <= 0)\n\t\t_node = _startNode = node;\n\t    return resetPosition();\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "IF", "RETURN", "RETURN", "IF", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [4, 7], [5, 8], [2, 9], [6, 10], [7, 11], [7, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 4], [8, 5], [9, 2], [10, 6], [11, 7], [12, 7], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n\tif (_isConstant) {\n\t    _node = _startNode;\n\t    return resetPosition();\n\t}\n\telse {\n\t    final boolean temp = _isRestartable;\n\t    _isRestartable = true;\n\t    setStartNode(_startNode);\n\t    _isRestartable = temp;\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "RETURN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [4, 8], [2, 9], [7, 10], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 2], [7, 2], [8, 4], [9, 2], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "next", "code": "    public int next() {\n\tfinal int result = _node;\n\t_node = DTMAxisIterator.END;\n\treturn returnNode(result);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 0], [2, 0], [3, 1], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_markedNode = _node;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_node = _markedNode;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SingletonIterator", "code": "    public SingletonIterator() {\n\tthis(Integer.MIN_VALUE, false);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SingletonIterator", "code": "    public SingletonIterator(int node) {\n\tthis(node, false);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SingletonIterator", "code": "    public SingletonIterator(int node, boolean constant) {\n\t_node = _startNode = node;\n\t_isConstant = constant;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "ant-1.6-570", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/XmlLogger.java", "language": "java", "name": "org.apache.tools.ant.XmlLogger", "code": "public class XmlLogger implements BuildLogger {\n\n    private int msgOutputLevel = Project.MSG_DEBUG;\n    private PrintStream outStream;\n\n    /** DocumentBuilder to use when creating the document to start with. */\n    private static DocumentBuilder builder = getDocumentBuilder();\n\n    /**\n     * Returns a default DocumentBuilder instance or throws an\n     * ExceptionInInitializerError if it can't be created.\n     *\n     * @return a default DocumentBuilder instance.\n     */\n    private static DocumentBuilder getDocumentBuilder() {\n        try {\n            return DocumentBuilderFactory.newInstance().newDocumentBuilder();\n        } catch (Exception exc) {\n            throw new ExceptionInInitializerError(exc);\n        }\n    }\n\n    /** XML element name for a build. */\n    private static final String BUILD_TAG = \"build\";\n    /** XML element name for a target. */\n    private static final String TARGET_TAG = \"target\";\n    /** XML element name for a task. */\n    private static final String TASK_TAG = \"task\";\n    /** XML element name for a message. */\n    private static final String MESSAGE_TAG = \"message\";\n    /** XML attribute name for a name. */\n    private static final String NAME_ATTR = \"name\";\n    /** XML attribute name for a time. */\n    private static final String TIME_ATTR = \"time\";\n    /** XML attribute name for a message priority. */\n    private static final String PRIORITY_ATTR = \"priority\";\n    /** XML attribute name for a file location. */\n    private static final String LOCATION_ATTR = \"location\";\n    /** XML attribute name for an error description. */\n    private static final String ERROR_ATTR = \"error\";\n    /** XML element name for a stack trace. */\n    private static final String STACKTRACE_TAG = \"stacktrace\";\n\n    /** The complete log document for this build. */\n    private Document doc = builder.newDocument();\n    /** Mapping for when tasks started (Task to TimedElement). */\n    private Hashtable tasks = new Hashtable();\n    /** Mapping for when targets started (Task to TimedElement). */\n    private Hashtable targets = new Hashtable();\n    /**\n     * Mapping of threads to stacks of elements\n     * (Thread to Stack of TimedElement).\n     */\n    private Hashtable threadStacks = new Hashtable();\n    /**\n     * When the build started.\n     */\n    private TimedElement buildElement = null;\n\n    /** Utility class representing the time an element started. */\n    private static class TimedElement {\n        /**\n         * Start time in milliseconds\n         * (as returned by <code>System.currentTimeMillis()</code>).\n         */\n        private long startTime;\n        /** Element created at the start time. */\n        private Element element;\n        public String toString() {\n            return element.getTagName() + \":\" + element.getAttribute(\"name\");\n        }\n    }\n\n    /**\n     *  Constructs a new BuildListener that logs build events to an XML file.\n     */\n    public XmlLogger() {\n    }\n\n    /**\n     * Fired when the build starts, this builds the top-level element for the\n     * document and remembers the time of the start of the build.\n     *\n     * @param event Ignored.\n     */\n    public void buildStarted(BuildEvent event) {\n        buildElement = new TimedElement();\n        buildElement.startTime = System.currentTimeMillis();\n        buildElement.element = doc.createElement(BUILD_TAG);\n    }\n\n    /**\n     * Fired when the build finishes, this adds the time taken and any\n     * error stacktrace to the build element and writes the document to disk.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void buildFinished(BuildEvent event) {\n        long totalTime = System.currentTimeMillis() - buildElement.startTime;\n        buildElement.element.setAttribute(TIME_ATTR,\n                DefaultLogger.formatTime(totalTime));\n\n        if (event.getException() != null) {\n            buildElement.element.setAttribute(ERROR_ATTR,\n                    event.getException().toString());\n            Throwable t = event.getException();\n            Text errText = doc.createCDATASection(StringUtils.getStackTrace(t));\n            Element stacktrace = doc.createElement(STACKTRACE_TAG);\n            stacktrace.appendChild(errText);\n            buildElement.element.appendChild(stacktrace);\n        }\n\n        String outFilename = event.getProject().getProperty(\"XmlLogger.file\");\n        if (outFilename == null) {\n            outFilename = \"log.xml\";\n        }\n        String xslUri\n                = event.getProject().getProperty(\"ant.XmlLogger.stylesheet.uri\");\n        if (xslUri == null) {\n            xslUri = \"log.xsl\";\n        }\n        Writer out = null;\n        try {\n            OutputStream stream = outStream;\n            if (stream == null) {\n                stream = new FileOutputStream(outFilename);\n            }\n            out = new OutputStreamWriter(stream, \"UTF8\");\n            out.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n            if (xslUri.length() > 0) {\n                out.write(\"<?xml-stylesheet type=\\\"text/xsl\\\" href=\\\"\"\n                        + xslUri + \"\\\"?>\\n\\n\");\n            }\n            (new DOMElementWriter()).write(buildElement.element, out, 0, \"\\t\");\n            out.flush();\n        } catch (IOException exc) {\n            throw new BuildException(\"Unable to write log file\", exc);\n        } finally {\n            if (out != null) {\n                try {\n                    out.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n        buildElement = null;\n    }\n\n    /**\n     * Returns the stack of timed elements for the current thread.\n     * @return the stack of timed elements for the current thread\n     */\n    private Stack getStack() {\n        Stack threadStack = (Stack) threadStacks.get(Thread.currentThread());\n        if (threadStack == null) {\n            threadStack = new Stack();\n            threadStacks.put(Thread.currentThread(), threadStack);\n        }\n        /* For debugging purposes uncomment:\n        org.w3c.dom.Comment s = doc.createComment(\"stack=\" + threadStack);\n        buildElement.element.appendChild(s);\n         */\n        return threadStack;\n    }\n\n    /**\n     * Fired when a target starts building, this pushes a timed element\n     * for the target onto the stack of elements for the current thread,\n     * remembering the current time and the name of the target.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void targetStarted(BuildEvent event) {\n        Target target = event.getTarget();\n        TimedElement targetElement = new TimedElement();\n        targetElement.startTime = System.currentTimeMillis();\n        targetElement.element = doc.createElement(TARGET_TAG);\n        targetElement.element.setAttribute(NAME_ATTR, target.getName());\n        targets.put(target, targetElement);\n        getStack().push(targetElement);\n    }\n\n    /**\n     * Fired when a target finishes building, this adds the time taken\n     * and any error stacktrace to the appropriate target element in the log.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void targetFinished(BuildEvent event) {\n        Target target = event.getTarget();\n        TimedElement targetElement = (TimedElement) targets.get(target);\n        if (targetElement != null) {\n            long totalTime\n                    = System.currentTimeMillis() - targetElement.startTime;\n            targetElement.element.setAttribute(TIME_ATTR,\n                    DefaultLogger.formatTime(totalTime));\n\n            TimedElement parentElement = null;\n            Stack threadStack = getStack();\n            if (!threadStack.empty()) {\n                TimedElement poppedStack = (TimedElement) threadStack.pop();\n                if (poppedStack != targetElement) {\n                    throw new RuntimeException(\"Mismatch - popped element = \"\n                            + poppedStack\n                            + \" finished target element = \"\n                            + targetElement);\n                }\n                if (!threadStack.empty()) {\n                    parentElement = (TimedElement) threadStack.peek();\n                }\n            }\n            if (parentElement == null) {\n                buildElement.element.appendChild(targetElement.element);\n            } else {\n                parentElement.element.appendChild(targetElement.element);\n            }\n        }\n        targets.remove(target);\n    }\n\n    /**\n     * Fired when a task starts building, this pushes a timed element\n     * for the task onto the stack of elements for the current thread,\n     * remembering the current time and the name of the task.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void taskStarted(BuildEvent event) {\n        TimedElement taskElement = new TimedElement();\n        taskElement.startTime = System.currentTimeMillis();\n        taskElement.element = doc.createElement(TASK_TAG);\n\n        Task task = event.getTask();\n        String name = event.getTask().getTaskName();\n        if (name == null) {\n            name = \"\";\n        }\n        taskElement.element.setAttribute(NAME_ATTR, name);\n        taskElement.element.setAttribute(LOCATION_ATTR,\n                event.getTask().getLocation().toString());\n        tasks.put(task, taskElement);\n        getStack().push(taskElement);\n    }\n\n    /**\n     * Fired when a task finishes building, this adds the time taken\n     * and any error stacktrace to the appropriate task element in the log.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void taskFinished(BuildEvent event) {\n        Task task = event.getTask();\n        TimedElement taskElement = (TimedElement) tasks.get(task);\n        if (taskElement != null) {\n            long totalTime = System.currentTimeMillis() - taskElement.startTime;\n            taskElement.element.setAttribute(TIME_ATTR,\n                    DefaultLogger.formatTime(totalTime));\n            Target target = task.getOwningTarget();\n            TimedElement targetElement = null;\n            if (target != null) {\n                targetElement = (TimedElement) targets.get(target);\n            }\n            if (targetElement == null) {\n                buildElement.element.appendChild(taskElement.element);\n            } else {\n                targetElement.element.appendChild(taskElement.element);\n            }\n            Stack threadStack = getStack();\n            if (!threadStack.empty()) {\n                TimedElement poppedStack = (TimedElement) threadStack.pop();\n                if (poppedStack != taskElement) {\n                    throw new RuntimeException(\"Mismatch - popped element = \"\n                            + poppedStack + \" finished task element = \"\n                            + taskElement);\n                }\n            }\n            tasks.remove(task);\n        } else {\n            throw new RuntimeException(\"Unknown task \" + task + \" not in \" + tasks);\n        }\n    }\n\n\n    /**\n     * Get the TimedElement associated with a task.\n     *\n     * Where the task is not found directly, search for unknown elements which\n     * may be hiding the real task\n     */\n    private TimedElement getTaskElement(Task task) {\n        TimedElement element = (TimedElement) tasks.get(task);\n        if (element != null) {\n            return element;\n        }\n\n        for (Enumeration e = tasks.keys(); e.hasMoreElements();) {\n            Task key = (Task) e.nextElement();\n            if (key instanceof UnknownElement) {\n                if (((UnknownElement) key).getTask() == task) {\n                    return (TimedElement) tasks.get(key);\n                }\n            }\n        }\n\n        return null;\n    }\n\n    /**\n     * Fired when a message is logged, this adds a message element to the\n     * most appropriate parent element (task, target or build) and records\n     * the priority and text of the message.\n     *\n     * @param event An event with any relevant extra information.\n     *              Will not be <code>null</code>.\n     */\n    public void messageLogged(BuildEvent event) {\n        int priority = event.getPriority();\n        if (priority > msgOutputLevel) {\n            return;\n        }\n        Element messageElement = doc.createElement(MESSAGE_TAG);\n\n        String name = \"debug\";\n        switch (event.getPriority()) {\n            case Project.MSG_ERR:\n                name = \"error\";\n                break;\n            case Project.MSG_WARN:\n                name = \"warn\";\n                break;\n            case Project.MSG_INFO:\n                name = \"info\";\n                break;\n            default:\n                name = \"debug\";\n                break;\n        }\n        messageElement.setAttribute(PRIORITY_ATTR, name);\n\n        Text messageText = doc.createCDATASection(event.getMessage());\n        messageElement.appendChild(messageText);\n\n        TimedElement parentElement = null;\n\n        Task task = event.getTask();\n\n        Target target = event.getTarget();\n        if (task != null) {\n            parentElement = getTaskElement(task);\n        }\n        if (parentElement == null && target != null) {\n            parentElement = (TimedElement) targets.get(target);\n        }\n\n        /*\n        if (parentElement == null) {\n            Stack threadStack\n                    = (Stack) threadStacks.get(Thread.currentThread());\n            if (threadStack != null) {\n                if (!threadStack.empty()) {\n                    parentElement = (TimedElement) threadStack.peek();\n                }\n            }\n        }\n        */\n\n        if (parentElement != null) {\n            parentElement.element.appendChild(messageElement);\n        } else {\n            buildElement.element.appendChild(messageElement);\n        }\n    }\n\n\n    /**\n     * Set the logging level when using this as a Logger\n     *\n     * @param level the logging level -\n     *        see {@link org.apache.tools.ant.Project#MSG_ERR Project}\n     *        class for level definitions\n     */\n    public void setMessageOutputLevel(int level) {\n        msgOutputLevel = level;\n    }\n\n    /**\n     * Set the output stream to which logging output is sent when operating\n     * as a logger.\n     *\n     * @param output the output PrintStream.\n     */\n    public void setOutputPrintStream(PrintStream output) {\n        this.outStream = new PrintStream(output, true);\n    }\n\n    /**\n     * Ignore emacs mode, as it has no meaning in XML format\n     *\n     * @param emacsMode true if logger should produce emacs compatible\n     *        output\n     */\n    public void setEmacsMode(boolean emacsMode) {\n    }\n\n    /**\n     * Ignore error print stream. All output will be written to\n     * either the XML log file or the PrintStream provided to\n     * setOutputPrintStream\n     *\n     * @param err the stream we are going to ignore.\n     */\n    public void setErrorPrintStream(PrintStream err) {", "functions": [{"function_name": "getDocumentBuilder", "code": "    private static DocumentBuilder getDocumentBuilder() {\n        try {\n            return DocumentBuilderFactory.newInstance().newDocumentBuilder();\n        } catch (Exception exc) {\n            throw new ExceptionInInitializerError(exc);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {\n        buildElement = new TimedElement();\n        buildElement.startTime = System.currentTimeMillis();\n        buildElement.element = doc.createElement(BUILD_TAG);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        long totalTime = System.currentTimeMillis() - buildElement.startTime;\n        buildElement.element.setAttribute(TIME_ATTR,\n                DefaultLogger.formatTime(totalTime));\n\n        if (event.getException() != null) {\n            buildElement.element.setAttribute(ERROR_ATTR,\n                    event.getException().toString());\n            Throwable t = event.getException();\n            Text errText = doc.createCDATASection(StringUtils.getStackTrace(t));\n            Element stacktrace = doc.createElement(STACKTRACE_TAG);\n            stacktrace.appendChild(errText);\n            buildElement.element.appendChild(stacktrace);\n        }\n\n        String outFilename = event.getProject().getProperty(\"XmlLogger.file\");\n        if (outFilename == null) {\n            outFilename = \"log.xml\";\n        }\n        String xslUri\n                = event.getProject().getProperty(\"ant.XmlLogger.stylesheet.uri\");\n        if (xslUri == null) {\n            xslUri = \"log.xsl\";\n        }\n        Writer out = null;\n        try {\n            OutputStream stream = outStream;\n            if (stream == null) {\n                stream = new FileOutputStream(outFilename);\n            }\n            out = new OutputStreamWriter(stream, \"UTF8\");\n            out.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n            if (xslUri.length() > 0) {\n                out.write(\"<?xml-stylesheet type=\\\"text/xsl\\\" href=\\\"\"\n                        + xslUri + \"\\\"?>\\n\\n\");\n            }\n            (new DOMElementWriter()).write(buildElement.element, out, 0, \"\\t\");\n            out.flush();\n        } catch (IOException exc) {\n            throw new BuildException(\"Unable to write log file\", exc);\n        } finally {\n            if (out != null) {\n                try {\n                    out.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n        buildElement = null;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "IF", "CATCH", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [3, 16], [5, 17], [7, 18], [0, 19], [10, 20], [11, 21], [12, 22], [1, 23], [1, 24], [13, 25], [1, 26], [1, 27], [14, 28], [2, 29], [16, 30], [4, 31], [17, 32], [6, 33], [7, 34], [7, 35], [7, 36], [18, 37], [18, 38], [19, 39], [8, 40], [11, 41], [21, 42], [22, 43], [24, 44], [25, 45], [25, 46], [26, 47], [27, 48], [28, 49], [3, 50], [31, 51], [5, 52], [33, 53], [7, 54], [7, 55], [7, 56], [40, 57], [41, 58], [43, 59], [44, 60], [44, 61], [13, 62], [48, 63], [14, 64], [50, 65], [51, 66], [52, 67], [53, 68], [34, 69], [35, 70], [36, 71], [56, 72], [41, 73], [62, 74], [64, 75], [70, 76], [72, 77], [74, 78], [74, 79], [79, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 3], [17, 5], [18, 7], [19, 0], [20, 10], [21, 11], [22, 12], [23, 1], [24, 1], [25, 13], [26, 1], [27, 1], [28, 14], [29, 2], [30, 16], [31, 4], [32, 17], [33, 6], [34, 7], [35, 7], [36, 7], [37, 18], [38, 18], [39, 19], [40, 8], [41, 11], [42, 21], [43, 22], [44, 24], [45, 25], [46, 25], [47, 26], [48, 27], [49, 28], [50, 3], [51, 31], [52, 5], [53, 33], [54, 7], [55, 7], [56, 7], [57, 40], [58, 41], [59, 43], [60, 44], [61, 44], [62, 13], [63, 48], [64, 14], [65, 50], [66, 51], [67, 52], [68, 53], [69, 34], [70, 35], [71, 36], [72, 56], [73, 41], [74, 62], [75, 64], [76, 70], [77, 72], [78, 74], [79, 74], [80, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "getStack", "code": "    private Stack getStack() {\n        Stack threadStack = (Stack) threadStacks.get(Thread.currentThread());\n        if (threadStack == null) {\n            threadStack = new Stack();\n            threadStacks.put(Thread.currentThread(), threadStack);\n        }\n        /* For debugging purposes uncomment:\n        org.w3c.dom.Comment s = doc.createComment(\"stack=\" + threadStack);\n        buildElement.element.appendChild(s);\n         */\n        return threadStack;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [3, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 3], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {\n        Target target = event.getTarget();\n        TimedElement targetElement = new TimedElement();\n        targetElement.startTime = System.currentTimeMillis();\n        targetElement.element = doc.createElement(TARGET_TAG);\n        targetElement.element.setAttribute(NAME_ATTR, target.getName());\n        targets.put(target, targetElement);\n        getStack().push(targetElement);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [6, 10], [7, 11], [8, 12], [1, 13], [2, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 6], [11, 7], [12, 8], [13, 1], [14, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {\n        Target target = event.getTarget();\n        TimedElement targetElement = (TimedElement) targets.get(target);\n        if (targetElement != null) {\n            long totalTime\n                    = System.currentTimeMillis() - targetElement.startTime;\n            targetElement.element.setAttribute(TIME_ATTR,\n                    DefaultLogger.formatTime(totalTime));\n\n            TimedElement parentElement = null;\n            Stack threadStack = getStack();\n            if (!threadStack.empty()) {\n                TimedElement poppedStack = (TimedElement) threadStack.pop();\n                if (poppedStack != targetElement) {\n                    throw new RuntimeException(\"Mismatch - popped element = \"\n                            + poppedStack\n                            + \" finished target element = \"\n                            + targetElement);\n                }\n                if (!threadStack.empty()) {\n                    parentElement = (TimedElement) threadStack.peek();\n                }\n            }\n            if (parentElement == null) {\n                buildElement.element.appendChild(targetElement.element);\n            } else {\n                parentElement.element.appendChild(targetElement.element);\n            }\n        }\n        targets.remove(target);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [6, 12], [3, 13], [7, 14], [8, 15], [1, 16], [2, 17], [14, 18], [8, 19], [8, 20], [8, 21], [9, 22], [10, 23], [16, 24], [11, 25], [7, 26], [7, 27], [19, 28], [20, 29], [25, 30], [20, 31], [19, 32], [31, 33], [21, 34], [33, 35], [32, 36], [35, 37], [37, 38], [37, 39], [39, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 6], [13, 3], [14, 7], [15, 8], [16, 1], [17, 2], [18, 14], [19, 8], [20, 8], [21, 8], [22, 9], [23, 10], [24, 16], [25, 11], [26, 7], [27, 7], [28, 19], [29, 20], [30, 25], [31, 20], [32, 19], [33, 31], [34, 21], [35, 33], [36, 32], [37, 35], [38, 37], [39, 37], [40, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {\n        TimedElement taskElement = new TimedElement();\n        taskElement.startTime = System.currentTimeMillis();\n        taskElement.element = doc.createElement(TASK_TAG);\n\n        Task task = event.getTask();\n        String name = event.getTask().getTaskName();\n        if (name == null) {\n            name = \"\";\n        }\n        taskElement.element.setAttribute(NAME_ATTR, name);\n        taskElement.element.setAttribute(LOCATION_ATTR,\n                event.getTask().getLocation().toString());\n        tasks.put(task, taskElement);\n        getStack().push(taskElement);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [6, 13], [8, 14], [10, 15], [2, 16], [3, 17], [11, 18], [12, 19], [4, 20], [14, 21], [14, 22], [1, 23], [16, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 6], [14, 8], [15, 10], [16, 2], [17, 3], [18, 11], [19, 12], [20, 4], [21, 14], [22, 14], [23, 1], [24, 16], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {\n        Task task = event.getTask();\n        TimedElement taskElement = (TimedElement) tasks.get(task);\n        if (taskElement != null) {\n            long totalTime = System.currentTimeMillis() - taskElement.startTime;\n            taskElement.element.setAttribute(TIME_ATTR,\n                    DefaultLogger.formatTime(totalTime));\n            Target target = task.getOwningTarget();\n            TimedElement targetElement = null;\n            if (target != null) {\n                targetElement = (TimedElement) targets.get(target);\n            }\n            if (targetElement == null) {\n                buildElement.element.appendChild(taskElement.element);\n            } else {\n                targetElement.element.appendChild(taskElement.element);\n            }\n            Stack threadStack = getStack();\n            if (!threadStack.empty()) {\n                TimedElement poppedStack = (TimedElement) threadStack.pop();\n                if (poppedStack != taskElement) {\n                    throw new RuntimeException(\"Mismatch - popped element = \"\n                            + poppedStack + \" finished task element = \"\n                            + taskElement);\n                }\n            }\n            tasks.remove(task);\n        } else {\n            throw new RuntimeException(\"Unknown task \" + task + \" not in \" + tasks);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "THROW_RAISE", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [5, 14], [3, 15], [6, 16], [1, 17], [7, 18], [9, 19], [10, 20], [1, 21], [2, 22], [16, 23], [7, 24], [7, 25], [8, 26], [19, 27], [20, 28], [11, 29], [12, 30], [21, 31], [13, 32], [23, 33], [24, 34], [9, 35], [9, 36], [10, 37], [32, 38], [33, 39], [33, 40], [24, 41], [40, 42], [41, 43], [25, 44], [37, 45], [43, 46], [46, 47], [47, 48], [47, 49], [49, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 5], [15, 3], [16, 6], [17, 1], [18, 7], [19, 9], [20, 10], [21, 1], [22, 2], [23, 16], [24, 7], [25, 7], [26, 8], [27, 19], [28, 20], [29, 11], [30, 12], [31, 21], [32, 13], [33, 23], [34, 24], [35, 9], [36, 9], [37, 10], [38, 32], [39, 33], [40, 33], [41, 24], [42, 40], [43, 41], [44, 25], [45, 37], [46, 43], [47, 46], [48, 47], [49, 47], [50, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "getTaskElement", "code": "    private TimedElement getTaskElement(Task task) {\n        TimedElement element = (TimedElement) tasks.get(task);\n        if (element != null) {\n            return element;\n        }\n\n        for (Enumeration e = tasks.keys(); e.hasMoreElements();) {\n            Task key = (Task) e.nextElement();\n            if (key instanceof UnknownElement) {\n                if (((UnknownElement) key).getTask() == task) {\n                    return (TimedElement) tasks.get(key);\n                }\n            }\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [2, 10], [3, 11], [8, 12], [9, 13], [2, 14], [4, 15], [9, 16], [16, 17], [10, 18], [16, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 2], [11, 3], [12, 8], [13, 9], [14, 2], [15, 4], [16, 9], [17, 16], [18, 10], [19, 16], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {\n        int priority = event.getPriority();\n        if (priority > msgOutputLevel) {\n            return;\n        }\n        Element messageElement = doc.createElement(MESSAGE_TAG);\n\n        String name = \"debug\";\n        switch (event.getPriority()) {\n            case Project.MSG_ERR:\n                name = \"error\";\n                break;\n            case Project.MSG_WARN:\n                name = \"warn\";\n                break;\n            case Project.MSG_INFO:\n                name = \"info\";\n                break;\n            default:\n                name = \"debug\";\n                break;\n        }\n        messageElement.setAttribute(PRIORITY_ATTR, name);\n\n        Text messageText = doc.createCDATASection(event.getMessage());\n        messageElement.appendChild(messageText);\n\n        TimedElement parentElement = null;\n\n        Task task = event.getTask();\n\n        Target target = event.getTarget();\n        if (task != null) {\n            parentElement = getTaskElement(task);\n        }\n        if (parentElement == null && target != null) {\n            parentElement = (TimedElement) targets.get(target);\n        }\n\n        /*\n        if (parentElement == null) {\n            Stack threadStack\n                    = (Stack) threadStacks.get(Thread.currentThread());\n            if (threadStack != null) {\n                if (!threadStack.empty()) {\n                    parentElement = (TimedElement) threadStack.peek();\n                }\n            }\n        }\n        */\n\n        if (parentElement != null) {\n            parentElement.element.appendChild(messageElement);\n        } else {\n            buildElement.element.appendChild(messageElement);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [0, 17], [0, 18], [8, 19], [11, 20], [14, 21], [15, 22], [15, 23], [16, 24], [4, 25], [5, 26], [6, 27], [7, 28], [8, 29], [8, 30], [8, 31], [8, 32], [9, 33], [10, 34], [11, 35], [12, 36], [1, 37], [1, 38], [2, 39], [22, 40], [23, 41], [3, 42], [28, 43], [8, 44], [8, 45], [8, 46], [8, 47], [42, 48], [44, 49], [45, 50], [46, 51], [47, 52], [39, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 0], [18, 0], [19, 8], [20, 11], [21, 14], [22, 15], [23, 15], [24, 16], [25, 4], [26, 5], [27, 6], [28, 7], [29, 8], [30, 8], [31, 8], [32, 8], [33, 9], [34, 10], [35, 11], [36, 12], [37, 1], [38, 1], [39, 2], [40, 22], [41, 23], [42, 3], [43, 28], [44, 8], [45, 8], [46, 8], [47, 8], [48, 42], [49, 44], [50, 45], [51, 46], [52, 47], [53, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "setMessageOutputLevel", "code": "    public void setMessageOutputLevel(int level) {\n        msgOutputLevel = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutputPrintStream", "code": "    public void setOutputPrintStream(PrintStream output) {\n        this.outStream = new PrintStream(output, true);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setEmacsMode", "code": "    public void setEmacsMode(boolean emacsMode) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorPrintStream", "code": "    public void setErrorPrintStream(PrintStream err) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XmlLogger", "code": "    public XmlLogger() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.4-2051", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/xmpp/XmppConsumer.java", "language": "java", "name": "org.apache.camel.component.xmpp.XmppConsumer", "code": "public class XmppConsumer extends DefaultConsumer<XmppExchange> implements PacketListener {\n    private static final transient Log LOG = LogFactory.getLog(XmppConsumer.class);\n    private final XmppEndpoint endpoint;\n\n    public XmppConsumer(XmppEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        endpoint.getConnection().addPacketListener(this, endpoint.getFilter());\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        endpoint.getConnection().removePacketListener(this);\n        super.doStop();\n    }\n\n    public void processPacket(Packet packet) {\n\n        if (packet instanceof Message) {\n            Message message = (Message)packet;\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"<<<< message: \" + message.getBody());\n            }\n            XmppExchange exchange = endpoint.createExchange(message);\n            try {\n                getProcessor().process(exchange);\n            } catch (Exception e) {\n                e.printStackTrace();\n            }\n        } else if (packet instanceof RosterPacket) {\n            RosterPacket rosterPacket = (RosterPacket)packet;\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Roster packet with : \" + rosterPacket.getRosterItemCount() + \" item(s)\");\n                Iterator rosterItems = rosterPacket.getRosterItems();\n                while (rosterItems.hasNext()) {\n                    Object item = rosterItems.next();\n                    LOG.debug(\"Roster item: \" + item);\n                }\n            }\n        } else {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"<<<< ignored packet: \" + packet);", "functions": [{"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        endpoint.getConnection().addPacketListener(this, endpoint.getFilter());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        endpoint.getConnection().removePacketListener(this);\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "processPacket", "code": "    public void processPacket(Packet packet) {\n\n        if (packet instanceof Message) {\n            Message message = (Message)packet;\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"<<<< message: \" + message.getBody());\n            }\n            XmppExchange exchange = endpoint.createExchange(message);\n            try {\n                getProcessor().process(exchange);\n            } catch (Exception e) {\n                e.printStackTrace();\n            }\n        } else if (packet instanceof RosterPacket) {\n            RosterPacket rosterPacket = (RosterPacket)packet;\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Roster packet with : \" + rosterPacket.getRosterItemCount() + \" item(s)\");\n                Iterator rosterItems = rosterPacket.getRosterItems();\n                while (rosterItems.hasNext()) {\n                    Object item = rosterItems.next();\n                    LOG.debug(\"Roster item: \" + item);\n                }\n            }\n        } else {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"<<<< ignored packet: \" + packet);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [3, 12], [6, 13], [8, 14], [10, 15], [11, 16], [6, 17], [7, 18], [11, 19], [11, 20], [13, 21], [17, 22], [8, 23], [10, 24], [19, 25], [11, 26], [23, 27], [24, 28], [19, 29], [20, 30], [26, 31], [27, 32], [27, 33], [28, 34], [19, 35], [31, 36], [31, 37], [35, 38], [29, 39], [37, 40], [37, 41], [38, 42], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 3], [13, 6], [14, 8], [15, 10], [16, 11], [17, 6], [18, 7], [19, 11], [20, 11], [21, 13], [22, 17], [23, 8], [24, 10], [25, 19], [26, 11], [27, 23], [28, 24], [29, 19], [30, 20], [31, 26], [32, 27], [33, 27], [34, 28], [35, 19], [36, 31], [37, 31], [38, 35], [39, 29], [40, 37], [41, 37], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "XmppConsumer", "code": "    public XmppConsumer(XmppEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "poi-3.0-6048", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hpsf/MarkUnsupportedException.java", "language": "java", "name": "org.apache.poi.hpsf.MarkUnsupportedException", "code": "public class MarkUnsupportedException extends HPSFException\n{\n\n    /**\n     * <p>Constructor</p>\n     */\n    public MarkUnsupportedException()\n    {\n        super();\n    }\n\n\n    /**\n     * <p>Constructor</p>\n     *\n     * @param msg The exception's message string\n     */\n    public MarkUnsupportedException(final String msg)\n    {\n        super(msg);\n    }\n\n\n    /**\n     * <p>Constructor</p>\n     *\n     * @param reason This exception's underlying reason\n     */\n    public MarkUnsupportedException(final Throwable reason)\n    {\n        super(reason);\n    }\n\n\n   /**\n    * <p>Constructor</p>\n    *\n    * @param msg The exception's message string\n    * @param reason This exception's underlying reason\n    */\n    public MarkUnsupportedException(final String msg, final Throwable reason)\n    {\n        super(msg, reason);", "functions": [{"function_name": "MarkUnsupportedException", "code": "    public MarkUnsupportedException()\n    {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "MarkUnsupportedException", "code": "    public MarkUnsupportedException(final String msg)\n    {\n        super(msg);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "MarkUnsupportedException", "code": "    public MarkUnsupportedException(final Throwable reason)\n    {\n        super(reason);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "MarkUnsupportedException", "code": "    public MarkUnsupportedException(final String msg, final Throwable reason)\n    {\n        super(msg, reason);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-3172", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jms/EndpointMessageListener.java", "language": "java", "name": "org.apache.camel.component.jms.EndpointMessageListener", "code": "public class EndpointMessageListener implements MessageListener {\n    private static final transient Log LOG = LogFactory.getLog(EndpointMessageListener.class);\n    private JmsEndpoint endpoint;\n    private Processor processor;\n    private JmsBinding binding;\n    private boolean eagerLoadingOfProperties;\n    private Destination replyToDestination;\n    private JmsOperations template;\n    private boolean disableReplyTo;\n\n    public EndpointMessageListener(JmsEndpoint endpoint, Processor processor) {\n        this.endpoint = endpoint;\n        this.processor = processor;\n        endpoint.getConfiguration().configure(this);\n    }\n\n    public void onMessage(final Message message) {\n        RuntimeCamelException rce = null;\n        try {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(endpoint + \" consumer receiving JMS message: \" + message);\n            }\n            Destination replyDestination = getReplyToDestination(message);\n            final JmsExchange exchange = createExchange(message, replyDestination);\n            if (eagerLoadingOfProperties) {\n                exchange.getIn().getHeaders();\n            }\n\n            processor.process(exchange);\n\n            JmsMessage body = null;\n            if (exchange.isFailed()) {\n                if (exchange.getException() != null) {\n                    rce = wrapRuntimeCamelException(exchange.getException());\n                } else if (exchange.getFault().getBody() != null) {\n                    body = exchange.getFault();\n                }\n            } else {\n                body = exchange.getOut(false);\n            }\n            if (rce == null && body != null && !disableReplyTo) {\n                sendReply(replyDestination, message, exchange, body);\n            }\n        } catch (Exception e) {\n            rce = wrapRuntimeCamelException(e);\n        }\n        if (rce != null) {\n            LOG.warn(endpoint + \" consumer caught an exception while processing \"\n                     + \"JMS message: \" + message, rce);\n            throw rce;\n        }\n    }\n\n    public JmsExchange createExchange(Message message, Destination replyDestination) {\n        JmsExchange exchange = new JmsExchange(endpoint.getCamelContext(), endpoint.getExchangePattern(), getBinding(), message);\n        if (replyDestination != null && !disableReplyTo) {\n            exchange.setProperty(\"org.apache.camel.jms.replyDestination\", replyDestination);\n            exchange.setPattern(ExchangePattern.InOut);\n        }\n        return exchange;\n    }\n\n    public JmsBinding getBinding() {\n        if (binding == null) {\n            binding = new JmsBinding(endpoint);\n        }\n        return binding;\n    }\n\n    /**\n     * Sets the binding used to convert from a Camel message to and from a JMS\n     * message\n     *\n     * @param binding the binding to use\n     */\n    public void setBinding(JmsBinding binding) {\n        this.binding = binding;\n    }\n\n    public boolean isEagerLoadingOfProperties() {\n        return eagerLoadingOfProperties;\n    }\n\n    public void setEagerLoadingOfProperties(boolean eagerLoadingOfProperties) {\n        this.eagerLoadingOfProperties = eagerLoadingOfProperties;\n    }\n\n    public synchronized JmsOperations getTemplate() {\n        if (template == null) {\n            template = endpoint.createInOnlyTemplate();\n        }\n        return template;\n    }\n\n    public void setTemplate(JmsOperations template) {\n        this.template = template;\n    }\n\n    public boolean isDisableReplyTo() {\n        return disableReplyTo;\n    }\n\n    /**\n     * Allows the reply-to behaviour to be disabled\n     */\n    public void setDisableReplyTo(boolean disableReplyTo) {\n        this.disableReplyTo = disableReplyTo;\n    }\n\n    public Destination getReplyToDestination() {\n        return replyToDestination;\n    }\n\n    /**\n     * Provides an explicit reply to destination which overrides\n     * any incoming value of {@link Message#getJMSReplyTo()}\n     *\n     * @param replyToDestination the destination that should be used to send replies to\n     */\n    public void setReplyToDestination(Destination replyToDestination) {\n        this.replyToDestination = replyToDestination;\n    }\n\n\n    protected void sendReply(Destination replyDestination, final Message message, final JmsExchange exchange, final JmsMessage out) {\n        if (replyDestination == null) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Cannot send reply message as there is no replyDestination for: \" + out);\n            }\n            return;\n        }\n        getTemplate().send(replyDestination, new MessageCreator() {\n            public Message createMessage(Session session) throws JMSException {\n                Message reply = endpoint.getBinding().makeJmsMessage(exchange, out, session);\n\n                if (endpoint.getConfiguration().isUseMessageIDAsCorrelationID()) {\n                    String messageID = exchange.getIn().getHeader(\"JMSMessageID\", String.class);\n                    reply.setJMSCorrelationID(messageID);\n                } else {\n                    String correlationID = message.getJMSCorrelationID();\n                    if (correlationID != null) {\n                        reply.setJMSCorrelationID(correlationID);\n                    }\n                }\n\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(endpoint + \" sending reply JMS message: \" + reply);\n                }\n                return reply;\n            }\n        });\n    }\n\n    protected Destination getReplyToDestination(Message message) throws JMSException {\n        Destination destination = replyToDestination;\n        if (destination == null) {\n            destination = message.getJMSReplyTo();\n        }\n        return destination;", "functions": [{"function_name": "onMessage", "code": "    public void onMessage(final Message message) {\n        RuntimeCamelException rce = null;\n        try {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(endpoint + \" consumer receiving JMS message: \" + message);\n            }\n            Destination replyDestination = getReplyToDestination(message);\n            final JmsExchange exchange = createExchange(message, replyDestination);\n            if (eagerLoadingOfProperties) {\n                exchange.getIn().getHeaders();\n            }\n\n            processor.process(exchange);\n\n            JmsMessage body = null;\n            if (exchange.isFailed()) {\n                if (exchange.getException() != null) {\n                    rce = wrapRuntimeCamelException(exchange.getException());\n                } else if (exchange.getFault().getBody() != null) {\n                    body = exchange.getFault();\n                }\n            } else {\n                body = exchange.getOut(false);\n            }\n            if (rce == null && body != null && !disableReplyTo) {\n                sendReply(replyDestination, message, exchange, body);\n            }\n        } catch (Exception e) {\n            rce = wrapRuntimeCamelException(e);\n        }\n        if (rce != null) {\n            LOG.warn(endpoint + \" consumer caught an exception while processing \"\n                     + \"JMS message: \" + message, rce);\n            throw rce;", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "PARAM", "BINARY_OP", "CATCH", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [1, 14], [5, 15], [7, 16], [8, 17], [2, 18], [13, 19], [3, 20], [1, 21], [6, 22], [16, 23], [8, 24], [9, 25], [11, 26], [12, 27], [21, 28], [22, 29], [7, 30], [23, 31], [23, 32], [8, 33], [24, 34], [24, 35], [10, 36], [13, 37], [28, 38], [31, 39], [32, 40], [33, 41], [34, 42], [35, 43], [35, 44], [36, 45], [37, 46], [38, 47], [38, 48], [41, 49], [42, 50], [42, 51], [24, 52], [46, 53], [48, 54], [34, 55], [51, 56], [52, 57], [53, 58], [55, 59], [57, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 1], [15, 5], [16, 7], [17, 8], [18, 2], [19, 13], [20, 3], [21, 1], [22, 6], [23, 16], [24, 8], [25, 9], [26, 11], [27, 12], [28, 21], [29, 22], [30, 7], [31, 23], [32, 23], [33, 8], [34, 24], [35, 24], [36, 10], [37, 13], [38, 28], [39, 31], [40, 32], [41, 33], [42, 34], [43, 35], [44, 35], [45, 36], [46, 37], [47, 38], [48, 38], [49, 41], [50, 42], [51, 42], [52, 24], [53, 46], [54, 48], [55, 34], [56, 51], [57, 52], [58, 53], [59, 55], [60, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "createExchange", "code": "    public JmsExchange createExchange(Message message, Destination replyDestination) {\n        JmsExchange exchange = new JmsExchange(endpoint.getCamelContext(), endpoint.getExchangePattern(), getBinding(), message);\n        if (replyDestination != null && !disableReplyTo) {\n            exchange.setProperty(\"org.apache.camel.jms.replyDestination\", replyDestination);\n            exchange.setPattern(ExchangePattern.InOut);\n        }\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [3, 8], [2, 9], [2, 10], [7, 11], [8, 12], [8, 13], [8, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 3], [9, 2], [10, 2], [11, 7], [12, 8], [13, 8], [14, 8], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getBinding", "code": "    public JmsBinding getBinding() {\n        if (binding == null) {\n            binding = new JmsBinding(endpoint);\n        }\n        return binding;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setBinding", "code": "    public void setBinding(JmsBinding binding) {\n        this.binding = binding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isEagerLoadingOfProperties", "code": "    public boolean isEagerLoadingOfProperties() {\n        return eagerLoadingOfProperties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEagerLoadingOfProperties", "code": "    public void setEagerLoadingOfProperties(boolean eagerLoadingOfProperties) {\n        this.eagerLoadingOfProperties = eagerLoadingOfProperties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTemplate", "code": "    public synchronized JmsOperations getTemplate() {\n        if (template == null) {\n            template = endpoint.createInOnlyTemplate();\n        }\n        return template;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setTemplate", "code": "    public void setTemplate(JmsOperations template) {\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDisableReplyTo", "code": "    public boolean isDisableReplyTo() {\n        return disableReplyTo;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDisableReplyTo", "code": "    public void setDisableReplyTo(boolean disableReplyTo) {\n        this.disableReplyTo = disableReplyTo;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReplyToDestination", "code": "    public Destination getReplyToDestination() {\n        return replyToDestination;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplyToDestination", "code": "    public void setReplyToDestination(Destination replyToDestination) {\n        this.replyToDestination = replyToDestination;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "sendReply", "code": "    protected void sendReply(Destination replyDestination, final Message message, final JmsExchange exchange, final JmsMessage out) {\n        if (replyDestination == null) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Cannot send reply message as there is no replyDestination for: \" + out);\n            }\n            return;\n        }\n        getTemplate().send(replyDestination, new MessageCreator() {\n            public Message createMessage(Session session) throws JMSException {\n                Message reply = endpoint.getBinding().makeJmsMessage(exchange, out, session);\n\n                if (endpoint.getConfiguration().isUseMessageIDAsCorrelationID()) {\n                    String messageID = exchange.getIn().getHeader(\"JMSMessageID\", String.class);\n                    reply.setJMSCorrelationID(messageID);\n                } else {\n                    String correlationID = message.getJMSCorrelationID();\n                    if (correlationID != null) {\n                        reply.setJMSCorrelationID(correlationID);\n                    }\n                }\n\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(endpoint + \" sending reply JMS message: \" + reply);\n                }\n                return reply;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [6, 8], [1, 9], [1, 10], [7, 11], [8, 12], [10, 13], [12, 14], [14, 15], [14, 16], [14, 17], [14, 18], [14, 19], [10, 20], [16, 21], [17, 22], [20, 23], [17, 24], [17, 25], [17, 26], [22, 27], [18, 28], [23, 29], [16, 30], [24, 31], [17, 32], [28, 33], [30, 34], [31, 35], [25, 36], [26, 37], [34, 38], [24, 39], [37, 40], [38, 41], [40, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 6], [9, 1], [10, 1], [11, 7], [12, 8], [13, 10], [14, 12], [15, 14], [16, 14], [17, 14], [18, 14], [19, 14], [20, 10], [21, 16], [22, 17], [23, 20], [24, 17], [25, 17], [26, 17], [27, 22], [28, 18], [29, 23], [30, 16], [31, 24], [32, 17], [33, 28], [34, 30], [35, 31], [36, 25], [37, 26], [38, 34], [39, 24], [40, 37], [41, 38], [42, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getReplyToDestination", "code": "    protected Destination getReplyToDestination(Message message) throws JMSException {\n        Destination destination = replyToDestination;\n        if (destination == null) {\n            destination = message.getJMSReplyTo();\n        }\n        return destination;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "EndpointMessageListener", "code": "    public EndpointMessageListener(JmsEndpoint endpoint, Processor processor) {\n        this.endpoint = endpoint;\n        this.processor = processor;\n        endpoint.getConfiguration().configure(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "camel-1.2-1671", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/mail/MailBinding.java", "language": "java", "name": "org.apache.camel.component.mail.MailBinding", "code": "public class MailBinding {\n    public void populateMailMessage(MailEndpoint endpoint, MimeMessage mimeMessage, Exchange exchange) {\n        try {\n            appendHeadersFromCamel(mimeMessage, exchange, exchange.getIn());\n\n            String destination = endpoint.getConfiguration().getDestination();\n            if (destination != null) {\n                mimeMessage.setRecipients(Message.RecipientType.TO, destination);\n            }\n\n            if (empty(mimeMessage.getFrom())) {\n                String from = endpoint.getConfiguration().getFrom();\n                mimeMessage.setFrom(new InternetAddress(from));\n            }\n            mimeMessage.setText(exchange.getIn().getBody(String.class));\n        } catch (Exception e) {\n            throw new RuntimeMailException(\"Failed to populate body due to: \" + e + \". Exchange: \" + exchange, e);\n        }\n    }\n\n    protected boolean empty(Address[] addresses) {\n        return addresses == null || addresses.length == 0;\n    }\n\n    /**\n     * Extracts the body from the Mail message\n     * \n     * @param exchange\n     * @param message\n     */\n    public Object extractBodyFromMail(MailExchange exchange, Message message) {\n        try {\n            return message.getContent();\n        } catch (Exception e) {\n            throw new RuntimeMailException(\"Failed to extract body due to: \" + e + \". Message: \" + message, e);\n        }\n    }\n\n    /**\n     * Appends the Mail headers from the Camel {@link MailMessage}\n     */\n    protected void appendHeadersFromCamel(MimeMessage mimeMessage, Exchange exchange, org.apache.camel.Message camelMessage) throws MessagingException {\n        Set<Map.Entry<String, Object>> entries = camelMessage.getHeaders().entrySet();\n        for (Map.Entry<String, Object> entry : entries) {\n            String headerName = entry.getKey();\n            Object headerValue = entry.getValue();\n            if (headerValue != null) {\n                if (shouldOutputHeader(camelMessage, headerName, headerValue)) {\n\n                    if (ObjectConverter.isCollection(headerValue)) {\n                        Iterator iter = ObjectConverter.iterator(headerValue);\n                        while (iter.hasNext()) {\n                            Object value = iter.next();\n                            mimeMessage.addHeader(headerName, asString(exchange, value));\n                        }\n                    } else {\n                        mimeMessage.setHeader(headerName, asString(exchange, headerValue));\n                    }\n                }\n            }\n        }\n    }\n\n    /**\n     * Converts the given object value to a String\n     */\n    protected String asString(Exchange exchange, Object value) {\n        return exchange.getContext().getTypeConverter().convertTo(String.class, value);\n    }\n\n    /**\n     * Strategy to allow filtering of headers which are put on the Mail message\n     */\n    protected boolean shouldOutputHeader(org.apache.camel.Message camelMessage, String headerName, Object headerValue) {\n        return true;", "functions": [{"function_name": "populateMailMessage", "code": "    public void populateMailMessage(MailEndpoint endpoint, MimeMessage mimeMessage, Exchange exchange) {\n        try {\n            appendHeadersFromCamel(mimeMessage, exchange, exchange.getIn());\n\n            String destination = endpoint.getConfiguration().getDestination();\n            if (destination != null) {\n                mimeMessage.setRecipients(Message.RecipientType.TO, destination);\n            }\n\n            if (empty(mimeMessage.getFrom())) {\n                String from = endpoint.getConfiguration().getFrom();\n                mimeMessage.setFrom(new InternetAddress(from));\n            }\n            mimeMessage.setText(exchange.getIn().getBody(String.class));\n        } catch (Exception e) {\n            throw new RuntimeMailException(\"Failed to populate body due to: \" + e + \". Exchange: \" + exchange, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [1, 10], [6, 11], [7, 12], [1, 13], [9, 14], [10, 15], [6, 16], [11, 17], [12, 18], [8, 19], [13, 20], [14, 21], [15, 22], [6, 23], [7, 24], [19, 25], [21, 26], [23, 27], [16, 28], [26, 29], [26, 30], [28, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 1], [11, 6], [12, 7], [13, 1], [14, 9], [15, 10], [16, 6], [17, 11], [18, 12], [19, 8], [20, 13], [21, 14], [22, 15], [23, 6], [24, 7], [25, 19], [26, 21], [27, 23], [28, 16], [29, 26], [30, 26], [31, 28], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "empty", "code": "    protected boolean empty(Address[] addresses) {\n        return addresses == null || addresses.length == 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "extractBodyFromMail", "code": "    public Object extractBodyFromMail(MailExchange exchange, Message message) {\n        try {\n            return message.getContent();\n        } catch (Exception e) {\n            throw new RuntimeMailException(\"Failed to extract body due to: \" + e + \". Message: \" + message, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "appendHeadersFromCamel", "code": "    protected void appendHeadersFromCamel(MimeMessage mimeMessage, Exchange exchange, org.apache.camel.Message camelMessage) throws MessagingException {\n        Set<Map.Entry<String, Object>> entries = camelMessage.getHeaders().entrySet();\n        for (Map.Entry<String, Object> entry : entries) {\n            String headerName = entry.getKey();\n            Object headerValue = entry.getValue();\n            if (headerValue != null) {\n                if (shouldOutputHeader(camelMessage, headerName, headerValue)) {\n\n                    if (ObjectConverter.isCollection(headerValue)) {\n                        Iterator iter = ObjectConverter.iterator(headerValue);\n                        while (iter.hasNext()) {\n                            Object value = iter.next();\n                            mimeMessage.addHeader(headerName, asString(exchange, value));\n                        }\n                    } else {\n                        mimeMessage.setHeader(headerName, asString(exchange, headerValue));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "CALL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [6, 10], [9, 11], [6, 12], [10, 13], [7, 14], [8, 15], [12, 16], [12, 17], [17, 18], [17, 19], [17, 20], [17, 21], [19, 22], [21, 23], [19, 24], [20, 25], [19, 26], [26, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 6], [11, 9], [12, 6], [13, 10], [14, 7], [15, 8], [16, 12], [17, 12], [18, 17], [19, 17], [20, 17], [21, 17], [22, 19], [23, 21], [24, 19], [25, 20], [26, 19], [27, 26], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "asString", "code": "    protected String asString(Exchange exchange, Object value) {\n        return exchange.getContext().getTypeConverter().convertTo(String.class, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "shouldOutputHeader", "code": "    protected boolean shouldOutputHeader(org.apache.camel.Message camelMessage, String headerName, Object headerValue) {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.6-7707", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/NodeSet.java", "language": "java", "name": "org.apache.xpath.NodeSet", "code": "public class NodeSet\n        implements NodeList, NodeIterator, Cloneable, ContextNodeList\n{\n\n  /**\n   * Create an empty nodelist.\n   */\n  public NodeSet()\n  {\n    m_blocksize = 32;\n    m_mapSize = 0;\n  }\n\n  /**\n   * Create an empty, using the given block size.\n   *\n   * @param blocksize Size of blocks to allocate \n   */\n  public NodeSet(int blocksize)\n  {\n    m_blocksize = blocksize;\n    m_mapSize = 0;\n  }\n\n  /**\n   * Create a NodeSet, and copy the members of the\n   * given nodelist into it.\n   *\n   * @param nodelist List of Nodes to be made members of the new set.\n   */\n  public NodeSet(NodeList nodelist)\n  {\n\n    this(32);\n\n    addNodes(nodelist);\n  }\n\n  /**\n   * Create a NodeSet, and copy the members of the\n   * given NodeSet into it.\n   *\n   * @param nodelist Set of Nodes to be made members of the new set.\n   */\n  public NodeSet(NodeSet nodelist)\n  {\n\n    this(32);\n\n    addNodes((NodeIterator) nodelist);\n  }\n\n  /**\n   * Create a NodeSet, and copy the members of the\n   * given NodeIterator into it.\n   *\n   * @param ni Iterator which yields Nodes to be made members of the new set.\n   */\n  public NodeSet(NodeIterator ni)\n  {\n\n    this(32);\n\n    addNodes(ni);\n  }\n\n  /**\n   * Create a NodeSet which contains the given Node.\n   *\n   * @param node Single node to be added to the new set.\n   */\n  public NodeSet(Node node)\n  {\n\n    this(32);\n\n    addNode(node);\n  }\n\n  /**\n   * @return The root node of the Iterator, as specified when it was created.\n   * For non-Iterator NodeSets, this will be null.\n   */\n  public Node getRoot()\n  {\n    return null;\n  }\n\n  /**\n   * Get a cloned Iterator, and reset its state to the beginning of the\n   * iteration.\n   *\n   * @return a new NodeSet of the same type, having the same state...\n   * except that the reset() operation has been called.\n   *\n   * @throws CloneNotSupportedException if this subclass of NodeSet\n   * does not support the clone() operation.\n   */\n  public NodeIterator cloneWithReset() throws CloneNotSupportedException\n  {\n\n    NodeSet clone = (NodeSet) clone();\n\n    clone.reset();\n\n    return clone;\n  }\n\n  /**\n   * Reset the iterator. May have no effect on non-iterator Nodesets.\n   */\n  public void reset()\n  {\n    m_next = 0;\n  }\n\n  /**\n   *  This attribute determines which node types are presented via the\n   * iterator. The available set of constants is defined in the\n   * <code>NodeFilter</code> interface. For NodeSets, the mask has been\n   * hardcoded to show all nodes except EntityReference nodes, which have\n   * no equivalent in the XPath data model.\n   *\n   * @return integer used as a bit-array, containing flags defined in\n   * the DOM's NodeFilter class. The value will be \n   * <code>SHOW_ALL & ~SHOW_ENTITY_REFERENCE</code>, meaning that\n   * only entity references are suppressed.\n   */\n  public int getWhatToShow()\n  {\n    return NodeFilter.SHOW_ALL & ~NodeFilter.SHOW_ENTITY_REFERENCE;\n  }\n\n  /**\n   * The filter object used to screen nodes. Filters are applied to\n   * further reduce (and restructure) the NodeIterator's view of the\n   * document. In our case, we will be using hardcoded filters built\n   * into our iterators... but getFilter() is part of the DOM's \n   * NodeIterator interface, so we have to support it.\n   *\n   * @return null, which is slightly misleading. True, there is no\n   * user-written filter object, but in fact we are doing some very\n   * sophisticated custom filtering. A DOM purist might suggest\n   * returning a placeholder object just to indicate that this is\n   * not going to return all nodes selected by whatToShow.\n   */\n  public NodeFilter getFilter()\n  {\n    return null;\n  }\n\n  /**\n   *  The value of this flag determines whether the children of entity\n   * reference nodes are visible to the iterator. If false, they will be\n   * skipped over.\n   * <br> To produce a view of the document that has entity references\n   * expanded and does not expose the entity reference node itself, use the\n   * whatToShow flags to hide the entity reference node and set\n   * expandEntityReferences to true when creating the iterator. To produce\n   * a view of the document that has entity reference nodes but no entity\n   * expansion, use the whatToShow flags to show the entity reference node\n   * and set expandEntityReferences to false.\n   *\n   * @return true for all iterators based on NodeSet, meaning that the\n   * contents of EntityRefrence nodes may be returned (though whatToShow\n   * says that the EntityReferences themselves are not shown.)\n   */\n  public boolean getExpandEntityReferences()\n  {\n    return true;\n  }\n\n  /**\n   *  Returns the next node in the set and advances the position of the\n   * iterator in the set. After a NodeIterator is created, the first call\n   * to nextNode() returns the first node in the set.\n   * @return  The next <code>Node</code> in the set being iterated over, or\n   *   <code>null</code> if there are no more members in that set.\n   * @throws DOMException\n   *    INVALID_STATE_ERR: Raised if this method is called after the\n   *   <code>detach</code> method was invoked.\n   */\n  public Node nextNode() throws DOMException\n  {\n\n    if ((m_next) < this.size())\n    {\n      Node next = this.elementAt(m_next);\n\n      m_next++;\n\n      return next;\n    }\n    else\n      return null;\n  }\n\n  /**\n   *  Returns the previous node in the set and moves the position of the\n   * iterator backwards in the set.\n   * @return  The previous <code>Node</code> in the set being iterated over,\n   *   or<code>null</code> if there are no more members in that set.\n   * @throws DOMException\n   *    INVALID_STATE_ERR: Raised if this method is called after the\n   *   <code>detach</code> method was invoked.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a cached type, and hence doesn't know what the previous node was.\n   */\n  public Node previousNode() throws DOMException\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    if ((m_next - 1) > 0)\n    {\n      m_next--;\n\n      return this.elementAt(m_next);\n    }\n    else\n      return null;\n  }\n\n  /**\n   * Detaches the iterator from the set which it iterated over, releasing\n   * any computational resources and placing the iterator in the INVALID\n   * state. After<code>detach</code> has been invoked, calls to\n   * <code>nextNode</code> or<code>previousNode</code> will raise the\n   * exception INVALID_STATE_ERR.\n   * <p>\n   * This operation is a no-op in NodeSet, and will not cause \n   * INVALID_STATE_ERR to be raised by later operations.\n   * </p>\n   */\n  public void detach(){}\n\n  /**\n   * Tells if this NodeSet is \"fresh\", in other words, if\n   * the first nextNode() that is called will return the\n   * first node in the set.\n   *\n   * @return true if nextNode() would return the first node in the set,\n   * false if it would return a later one.\n   */\n  public boolean isFresh()\n  {\n    return (m_next == 0);\n  }\n\n  /**\n   * If an index is requested, NodeSet will call this method\n   * to run the iterator to the index.  By default this sets\n   * m_next to the index.  If the index argument is -1, this\n   * signals that the iterator should be run to the end.\n   *\n   * @param index Position to advance (or retreat) to, with\n   * 0 requesting the reset (\"fresh\") position and -1 (or indeed\n   * any out-of-bounds value) requesting the final position.\n   * @throws RuntimeException thrown if this NodeSet is not\n   * one of the types which supports indexing/counting.\n   */\n  public void runTo(int index)\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    if ((index >= 0) && (m_next < m_firstFree))\n      m_next = index;\n    else\n      m_next = m_firstFree - 1;\n  }\n\n  /**\n   * Returns the <code>index</code>th item in the collection. If\n   * <code>index</code> is greater than or equal to the number of nodes in\n   * the list, this returns <code>null</code>.\n   * \n   * TODO: What happens if index is out of range?\n   * \n   * @param index Index into the collection.\n   * @return The node at the <code>index</code>th position in the\n   *   <code>NodeList</code>, or <code>null</code> if that is not a valid\n   *   index.\n   */\n  public Node item(int index)\n  {\n\n    runTo(index);\n\n    return (Node) this.elementAt(index);\n  }\n\n  /**\n   * The number of nodes in the list. The range of valid child node indices is\n   * 0 to <code>length-1</code> inclusive. Note that this operation requires\n   * finding all the matching nodes, which may defeat attempts to defer\n   * that work.\n   *\n   * @return integer indicating how many nodes are represented by this list.\n   */\n  public int getLength()\n  {\n\n    runTo(-1);\n\n    return this.size();\n  }\n\n  /**\n   * Add a node to the NodeSet. Not all types of NodeSets support this\n   * operation\n   *\n   * @param n Node to be added\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  public void addNode(Node n)\n  {\n\n    if (!m_mutable)\n\n    this.addElement(n);\n  }\n\n  /**\n   * Insert a node at a given position.\n   *\n   * @param n Node to be added\n   * @param pos Offset at which the node is to be inserted,\n   * with 0 being the first position.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  public void insertNode(Node n, int pos)\n  {\n\n    if (!m_mutable)\n\n    insertElementAt(n, pos);\n  }\n\n  /**\n   * Remove a node.\n   *\n   * @param n Node to be added\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  public void removeNode(Node n)\n  {\n\n    if (!m_mutable)\n\n    this.removeElement(n);\n  }\n\n  /**\n   * Copy NodeList members into this nodelist, adding in\n   * document order.  If a node is null, don't add it.\n   *\n   * @param nodelist List of nodes which should now be referenced by\n   * this NodeSet.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  public void addNodes(NodeList nodelist)\n  {\n\n    if (!m_mutable)\n\n    {\n      int nChildren = nodelist.getLength();\n\n      for (int i = 0; i < nChildren; i++)\n      {\n        Node obj = nodelist.item(i);\n\n        if (null != obj)\n        {\n          addElement(obj);\n        }\n      }\n    }\n\n  }\n\n  /**\n   * <p>Copy NodeList members into this nodelist, adding in\n   * document order.  Only genuine node references will be copied;\n   * nulls appearing in the source NodeSet will\n   * not be added to this one. </p>\n   * \n   * <p> In case you're wondering why this function is needed: NodeSet\n   * implements both NodeIterator and NodeList. If this method isn't\n   * provided, Java can't decide which of those to use when addNodes()\n   * is invoked. Providing the more-explicit match avoids that\n   * ambiguity.)</p>\n   *\n   * @param ns NodeSet whose members should be merged into this NodeSet.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  public void addNodes(NodeSet ns)\n  {\n\n    if (!m_mutable)\n\n    addNodes((NodeIterator) ns);\n  }\n\n  /**\n   * Copy NodeList members into this nodelist, adding in\n   * document order.  Null references are not added.\n   *\n   * @param iterator NodeIterator which yields the nodes to be added.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  public void addNodes(NodeIterator iterator)\n  {\n\n    if (!m_mutable)\n\n    {\n      Node obj;\n\n      while (null != (obj = iterator.nextNode()))\n      {\n        addElement(obj);\n      }\n    }\n\n  }\n\n  /**\n   * Copy NodeList members into this nodelist, adding in\n   * document order.  If a node is null, don't add it.\n   *\n   * @param nodelist List of nodes to be added\n   * @param support The XPath runtime context.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  public void addNodesInDocOrder(NodeList nodelist, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    int nChildren = nodelist.getLength();\n\n    for (int i = 0; i < nChildren; i++)\n    {\n      Node node = nodelist.item(i);\n\n      if (null != node)\n      {\n        addNodeInDocOrder(node, support);\n      }\n    }\n  }\n\n  /**\n   * Copy NodeList members into this nodelist, adding in\n   * document order.  If a node is null, don't add it.\n   *\n   * @param iterator NodeIterator which yields the nodes to be added.\n   * @param support The XPath runtime context.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  public void addNodesInDocOrder(NodeIterator iterator, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    Node node;\n\n    while (null != (node = iterator.nextNode()))\n    {\n      addNodeInDocOrder(node, support);\n    }\n  }\n\n  /**\n   * Add the node list to this node set in document order.\n   *\n   * @param start index.\n   * @param end index.\n   * @param testIndex index.\n   * @param nodelist The nodelist to add.\n   * @param support The XPath runtime context.\n   *\n   * @return false always.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  private boolean addNodesInDocOrder(int start, int end, int testIndex,\n                                     NodeList nodelist, XPathContext support)\n  {\n\n  if (!m_mutable){}\n\n    boolean foundit = false;\n    int i;\n    Node node = nodelist.item(testIndex);\n\n    for (i = end; i >= start; i--)\n    {\n      Node child = (Node) elementAt(i);\n\n      if (child == node)\n      {\n\n        break;\n      }\n\n      if (!DOM2Helper.isNodeAfter(node, child))\n      {\n        insertElementAt(node, i + 1);\n\n        testIndex--;\n\n        if (testIndex > 0)\n        {\n          boolean foundPrev = addNodesInDocOrder(0, i, testIndex, nodelist,\n                                                 support);\n\n          if (!foundPrev)\n          {\n            addNodesInDocOrder(i, size() - 1, testIndex, nodelist, support);\n          }\n        }\n\n        break;\n      }\n    }\n\n    if (i == -1)\n    {\n      insertElementAt(node, 0);\n    }\n\n    return foundit;\n  }\n\n  /**\n   * Add the node into a vector of nodes where it should occur in\n   * document order.\n   * @param v Vector of nodes, presumably containing Nodes\n   * @param obj Node object.\n   *\n   * @param node The node to be added.\n   * @param test true if we should test for doc order\n   * @param support The XPath runtime context.\n   * @return insertIndex.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  public int addNodeInDocOrder(Node node, boolean test, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    int insertIndex = -1;\n\n    if (test)\n    {\n\n      int size = size(), i;\n\n      for (i = size - 1; i >= 0; i--)\n      {\n        Node child = (Node) elementAt(i);\n\n        if (child == node)\n        {\n\n          break;\n        }\n\n        if (!DOM2Helper.isNodeAfter(node, child))\n        {\n          break;\n        }\n      }\n\n      if (i != -2)\n      {\n        insertIndex = i + 1;\n\n        insertElementAt(node, insertIndex);\n      }\n    }\n    else\n    {\n      insertIndex = this.size();\n\n      boolean foundit = false;\n\n      for (int i = 0; i < insertIndex; i++)\n      {\n        if (this.item(i).equals(node))\n        {\n          foundit = true;\n\n          break;\n        }\n      }\n\n      if (!foundit)\n        addElement(node);\n    }\n\n    return insertIndex;\n  }\n  /**\n   * Add the node into a vector of nodes where it should occur in\n   * document order.\n   * @param v Vector of nodes, presumably containing Nodes\n   * @param obj Node object.\n   *\n   * @param node The node to be added.\n   * @param support The XPath runtime context.\n   *\n   * @return The index where it was inserted.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a mutable type.\n   */\n  public int addNodeInDocOrder(Node node, XPathContext support)\n  {\n\n    if (!m_mutable)\n\n    return addNodeInDocOrder(node, true, support);\n  }\n\n  /** If this node is being used as an iterator, the next index that nextNode()\n   *  will return.  */\n  transient protected int m_next = 0;\n\n  /**\n   * Get the current position, which is one less than\n   * the next nextNode() call will retrieve.  i.e. if\n   * you call getCurrentPos() and the return is 0, the next\n   * fetch will take place at index 1.\n   *\n   * @return The the current position index.\n   */\n  public int getCurrentPos()\n  {\n    return m_next;\n  }\n\n  /**\n   * Set the current position in the node set.\n   * @param i Must be a valid index.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a cached type, and thus doesn't permit indexed access.\n   */\n  public void setCurrentPos(int i)\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    m_next = i;\n  }\n\n  /**\n   * Return the last fetched node.  Needed to support the UnionPathIterator.\n   *\n   * @return the last fetched node.\n   * @throws RuntimeException thrown if this NodeSet is not of \n   * a cached type, and thus doesn't permit indexed access.\n   */\n  public Node getCurrentNode()\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    int saved = m_next;\n    Node n = (m_next < m_firstFree) ? elementAt(m_next) : null;\n    return n;\n  }\n\n  /** True if this list can be mutated.  */\n  transient protected boolean m_mutable = true;\n\n  /** True if this list is cached.\n   *  @serial  */\n  transient protected boolean m_cacheNodes = true;\n\n  /**\n   * Get whether or not this is a cached node set.\n   *\n   *\n   * @return True if this list is cached.\n   */\n  public boolean getShouldCacheNodes()\n  {\n    return m_cacheNodes;\n  }\n\n  /**\n   * If setShouldCacheNodes(true) is called, then nodes will\n   * be cached.  They are not cached by default. This switch must\n   * be set before the first call to nextNode is made, to ensure\n   * that all nodes are cached.\n   *\n   * @param b true if this node set should be cached.\n   * @throws RuntimeException thrown if an attempt is made to\n   * request caching after we've already begun stepping through the\n   * nodes in this set.\n  */\n  public void setShouldCacheNodes(boolean b)\n  {\n\n    if (!isFresh())\n      throw new RuntimeException();\n\n    m_cacheNodes = b;\n    m_mutable = true;\n  }\n  \n  \n  transient private int m_last = 0;\n  \n  public int getLast()\n  {\n    return m_last;\n  }\n  \n  public void setLast(int last)\n  {\n    m_last = last;\n  }\n  \n  /** Size of blocks to allocate.\n   *  @serial          */\n  private int m_blocksize;\n\n  /** Array of nodes this points to.\n   *  @serial          */\n  Node m_map[];\n\n  /** Number of nodes in this NodeVector.\n   *  @serial          */\n  protected int m_firstFree = 0;\n\n  /** Size of the array this points to.\n   *  @serial           */\n\n  /**\n   * Get a cloned LocPathIterator.\n   *\n   * @return A clone of this\n   *\n   * @throws CloneNotSupportedException\n   */\n  public Object clone() throws CloneNotSupportedException\n  {\n\n    NodeSet clone = (NodeSet) super.clone();\n\n    if ((null != this.m_map) && (this.m_map == clone.m_map))\n    {\n      clone.m_map = new Node[this.m_map.length];\n\n      System.arraycopy(this.m_map, 0, clone.m_map, 0, this.m_map.length);\n    }\n\n    return clone;\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return Number of nodes in this NodeVector\n   */\n  public int size()\n  {\n    return m_firstFree;\n  }\n\n  /**\n   * Append a Node onto the vector.\n   *\n   * @param value Node to add to the vector\n   */\n  public void addElement(Node value)\n  {\n    if (!m_mutable)\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      if (null == m_map)\n      {\n        m_map = new Node[m_blocksize];\n        m_mapSize = m_blocksize;\n      }\n      else\n      {\n        m_mapSize += m_blocksize;\n\n        Node newMap[] = new Node[m_mapSize];\n\n        System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n        m_map = newMap;\n      }\n    }\n\n    m_map[m_firstFree] = value;\n\n    m_firstFree++;\n  }\n\n  /**\n   * Append a Node onto the vector.\n   *\n   * @param value Node to add to the vector\n   */\n  public final void push(Node value)\n  {\n\n    int ff = m_firstFree;\n\n    if ((ff + 1) >= m_mapSize)\n    {\n      if (null == m_map)\n      {\n        m_map = new Node[m_blocksize];\n        m_mapSize = m_blocksize;\n      }\n      else\n      {\n        m_mapSize += m_blocksize;\n\n        Node newMap[] = new Node[m_mapSize];\n\n        System.arraycopy(m_map, 0, newMap, 0, ff + 1);\n\n        m_map = newMap;\n      }\n    }\n\n    m_map[ff] = value;\n\n    ff++;\n\n    m_firstFree = ff;\n  }\n\n  /**\n   * Pop a node from the tail of the vector and return the result.\n   *\n   * @return the node at the tail of the vector\n   */\n  public final Node pop()\n  {\n\n    m_firstFree--;\n\n    Node n = m_map[m_firstFree];\n\n    m_map[m_firstFree] = null;\n\n    return n;\n  }\n\n  /**\n   * Pop a node from the tail of the vector and return the\n   * top of the stack after the pop.\n   *\n   * @return The top of the stack after it's been popped \n   */\n  public final Node popAndTop()\n  {\n\n    m_firstFree--;\n\n    m_map[m_firstFree] = null;\n\n    return (m_firstFree == 0) ? null : m_map[m_firstFree - 1];\n  }\n\n  /**\n   * Pop a node from the tail of the vector.\n   */\n  public final void popQuick()\n  {\n\n    m_firstFree--;\n\n    m_map[m_firstFree] = null;\n  }\n\n  /**\n   * Return the node at the top of the stack without popping the stack.\n   * Special purpose method for TransformerImpl, pushElemTemplateElement.\n   * Performance critical.\n   *\n   * @return Node at the top of the stack or null if stack is empty.  \n   */\n  public final Node peepOrNull()\n  {\n    return ((null != m_map) && (m_firstFree > 0))\n           ? m_map[m_firstFree - 1] : null;\n  }\n\n  /**\n   * Push a pair of nodes into the stack.  \n   * Special purpose method for TransformerImpl, pushElemTemplateElement.\n   * Performance critical.\n   *\n   * @param v1 First node to add to vector\n   * @param v2 Second node to add to vector\n   */\n  public final void pushPair(Node v1, Node v2)\n  {\n\n    if (null == m_map)\n    {\n      m_map = new Node[m_blocksize];\n      m_mapSize = m_blocksize;\n    }\n    else\n    {\n      if ((m_firstFree + 2) >= m_mapSize)\n      {\n        m_mapSize += m_blocksize;\n\n        Node newMap[] = new Node[m_mapSize];\n\n        System.arraycopy(m_map, 0, newMap, 0, m_firstFree);\n\n        m_map = newMap;\n      }\n    }\n\n    m_map[m_firstFree] = v1;\n    m_map[m_firstFree + 1] = v2;\n    m_firstFree += 2;\n  }\n\n  /**\n   * Pop a pair of nodes from the tail of the stack. \n   * Special purpose method for TransformerImpl, pushElemTemplateElement.\n   * Performance critical.\n   */\n  public final void popPair()\n  {\n\n    m_firstFree -= 2;\n    m_map[m_firstFree] = null;\n    m_map[m_firstFree + 1] = null;\n  }\n\n  /**\n   * Set the tail of the stack to the given node.\n   * Special purpose method for TransformerImpl, pushElemTemplateElement.\n   * Performance critical.\n   *\n   * @param n Node to set at the tail of vector\n   */\n  public final void setTail(Node n)\n  {\n    m_map[m_firstFree - 1] = n;\n  }\n\n  /**\n   * Set the given node one position from the tail.\n   * Special purpose method for TransformerImpl, pushElemTemplateElement.\n   * Performance critical.\n   *\n   * @param n Node to set\n   */\n  public final void setTailSub1(Node n)\n  {\n    m_map[m_firstFree - 2] = n;\n  }\n\n  /**\n   * Return the node at the tail of the vector without popping\n   * Special purpose method for TransformerImpl, pushElemTemplateElement.\n   * Performance critical.\n   *\n   * @return Node at the tail of the vector\n   */\n  public final Node peepTail()\n  {\n    return m_map[m_firstFree - 1];\n  }\n\n  /**\n   * Return the node one position from the tail without popping.\n   * Special purpose method for TransformerImpl, pushElemTemplateElement.\n   * Performance critical.\n   *\n   * @return Node one away from the tail\n   */\n  public final Node peepTailSub1()\n  {\n    return m_map[m_firstFree - 2];\n  }\n\n  /**\n   * Inserts the specified node in this vector at the specified index.\n   * Each component in this vector with an index greater or equal to\n   * the specified index is shifted upward to have an index one greater\n   * than the value it had previously.\n   *\n   * @param value Node to insert\n   * @param at Position where to insert\n   */\n  public void insertElementAt(Node value, int at)\n  {\n    if (!m_mutable)\n\n    if (null == m_map)\n    {\n      m_map = new Node[m_blocksize];\n      m_mapSize = m_blocksize;\n    }\n    else if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      Node newMap[] = new Node[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    if (at <= (m_firstFree - 1))\n    {\n      System.arraycopy(m_map, at, m_map, at + 1, m_firstFree - at);\n    }\n\n    m_map[at] = value;\n\n    m_firstFree++;\n  }\n\n  /**\n   * Append the nodes to the list.\n   *\n   * @param nodes NodeVector to append to this list\n   */\n  public void appendNodes(NodeSet nodes)\n  {\n\n    int nNodes = nodes.size();\n\n    if (null == m_map)\n    {\n      m_mapSize = nNodes + m_blocksize;\n      m_map = new Node[m_mapSize];\n    }\n    else if ((m_firstFree + nNodes) >= m_mapSize)\n    {\n      m_mapSize += (nNodes + m_blocksize);\n\n      Node newMap[] = new Node[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + nNodes);\n\n      m_map = newMap;\n    }\n\n    System.arraycopy(nodes.m_map, 0, m_map, m_firstFree, nNodes);\n\n    m_firstFree += nNodes;\n  }\n\n  /**\n   * Inserts the specified node in this vector at the specified index.\n   * Each component in this vector with an index greater or equal to\n   * the specified index is shifted upward to have an index one greater\n   * than the value it had previously.\n   */\n  public void removeAllElements()\n  {\n\n    if (null == m_map)\n      return;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      m_map[i] = null;\n    }\n\n    m_firstFree = 0;\n  }\n\n  /**\n   * Removes the first occurrence of the argument from this vector.\n   * If the object is found in this vector, each component in the vector\n   * with an index greater or equal to the object's index is shifted\n   * downward to have an index one smaller than the value it had\n   * previously.\n   *\n   * @param s Node to remove from the list\n   *\n   * @return True if the node was successfully removed\n   */\n  public boolean removeElement(Node s)\n  {\n    if (!m_mutable)\n\n    if (null == m_map)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      Node node = m_map[i];\n\n      if ((null != node) && node.equals(s))\n      {\n        if (i < m_firstFree - 1)\n          System.arraycopy(m_map, i + 1, m_map, i, m_firstFree - i - 1);\n\n        m_firstFree--;\n        m_map[m_firstFree] = null;\n\n        return true;\n      }\n    }\n\n    return false;\n  }\n\n  /**\n   * Deletes the component at the specified index. Each component in\n   * this vector with an index greater or equal to the specified\n   * index is shifted downward to have an index one smaller than\n   * the value it had previously.\n   *\n   * @param i Index of node to remove\n   */\n  public void removeElementAt(int i)\n  {\n\n    if (null == m_map)\n      return;\n      \n    if (i >= m_firstFree)\n      throw new ArrayIndexOutOfBoundsException(i + \" >= \" + m_firstFree);\n    else if (i < 0)\n      throw new ArrayIndexOutOfBoundsException(i);\n\n    if (i < m_firstFree - 1)\n      System.arraycopy(m_map, i + 1, m_map, i, m_firstFree - i - 1);\n\n    m_firstFree--;\n    m_map[m_firstFree] = null;\n  }\n\n  /**\n   * Sets the component at the specified index of this vector to be the\n   * specified object. The previous component at that position is discarded.\n   *\n   * The index must be a value greater than or equal to 0 and less\n   * than the current size of the vector.\n   *\n   * @param node Node to set\n   * @param index Index of where to set the node\n   */\n  public void setElementAt(Node node, int index)\n  {\n    if (!m_mutable)\n\n    if (null == m_map)\n    {\n      m_map = new Node[m_blocksize];\n      m_mapSize = m_blocksize;\n    }\n\n    m_map[index] = node;\n  }\n\n  /**\n   * Get the nth element.\n   *\n   * @param i Index of node to get\n   *\n   * @return Node at specified index\n   */\n  public Node elementAt(int i)\n  {\n\n    if (null == m_map)\n      return null;\n\n    return m_map[i];\n  }\n\n  /**\n   * Tell if the table contains the given node.\n   *\n   * @param s Node to look for\n   *\n   * @return True if the given node was found.\n   */\n  public boolean contains(Node s)\n  {\n    runTo(-1);\n\n    if (null == m_map)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      Node node = m_map[i];\n\n      if ((null != node) && node.equals(s))\n        return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem Node to look for\n   * @param index Index of where to start the search\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(Node elem, int index)\n  {\n    runTo(-1);\n\n    if (null == m_map)\n      return -1;\n\n    for (int i = index; i < m_firstFree; i++)\n    {\n      Node node = m_map[i];\n\n      if ((null != node) && node.equals(elem))\n        return i;\n    }\n\n    return -1;\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem Node to look for \n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(Node elem)\n  {\n    runTo(-1);\n\n    if (null == m_map)\n      return -1;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      Node node = m_map[i];\n\n      if ((null != node) && node.equals(elem))\n        return i;\n    }\n\n    return -1;", "functions": [{"function_name": "getRoot", "code": "  public Node getRoot()\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "cloneWithReset", "code": "  public NodeIterator cloneWithReset() throws CloneNotSupportedException\n  {\n\n    NodeSet clone = (NodeSet) clone();\n\n    clone.reset();\n\n    return clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "reset", "code": "  public void reset()\n  {\n    m_next = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWhatToShow", "code": "  public int getWhatToShow()\n  {\n    return NodeFilter.SHOW_ALL & ~NodeFilter.SHOW_ENTITY_REFERENCE;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFilter", "code": "  public NodeFilter getFilter()\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExpandEntityReferences", "code": "  public boolean getExpandEntityReferences()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "nextNode", "code": "  public Node nextNode() throws DOMException\n  {\n\n    if ((m_next) < this.size())\n    {\n      Node next = this.elementAt(m_next);\n\n      m_next++;\n\n      return next;\n    }\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [1, 6], [3, 7], [6, 8], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 1], [7, 3], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "previousNode", "code": "  public Node previousNode() throws DOMException\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    if ((m_next - 1) > 0)\n    {\n      m_next--;\n\n      return this.elementAt(m_next);\n    }\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "RETURN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [4, 9], [5, 10], [9, 11], [7, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [9, 4], [10, 5], [11, 9], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "detach", "code": "  public void detach(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isFresh", "code": "  public boolean isFresh()\n  {\n    return (m_next == 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "runTo", "code": "  public void runTo(int index)\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    if ((index >= 0) && (m_next < m_firstFree))\n      m_next = index;\n    else\n      m_next = m_firstFree - 1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [4, 9], [5, 10], [6, 11], [9, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 4], [10, 5], [11, 6], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "item", "code": "  public Node item(int index)\n  {\n\n    runTo(index);\n\n    return (Node) this.elementAt(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLength", "code": "  public int getLength()\n  {\n\n    runTo(-1);\n\n    return this.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addNode", "code": "  public void addNode(Node n)\n  {\n\n    if (!m_mutable)\n\n    this.addElement(n);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "insertNode", "code": "  public void insertNode(Node n, int pos)\n  {\n\n    if (!m_mutable)\n\n    insertElementAt(n, pos);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeNode", "code": "  public void removeNode(Node n)\n  {\n\n    if (!m_mutable)\n\n    this.removeElement(n);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addNodes", "code": "  public void addNodes(NodeList nodelist)\n  {\n\n    if (!m_mutable)\n\n    {\n      int nChildren = nodelist.getLength();\n\n      for (int i = 0; i < nChildren; i++)\n      {\n        Node obj = nodelist.item(i);\n\n        if (null != obj)\n        {\n          addElement(obj);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [3, 7], [4, 8], [6, 9], [3, 10], [9, 11], [7, 12], [6, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 3], [8, 4], [9, 6], [10, 3], [11, 9], [12, 7], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "addNodes", "code": "  public void addNodes(NodeSet ns)\n  {\n\n    if (!m_mutable)\n\n    addNodes((NodeIterator) ns);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addNodes", "code": "  public void addNodes(NodeIterator iterator)\n  {\n\n    if (!m_mutable)\n\n    {\n      Node obj;\n\n      while (null != (obj = iterator.nextNode()))\n      {\n        addElement(obj);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [5, 6], [5, 7], [3, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 5], [7, 5], [8, 3], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "addNodesInDocOrder", "code": "  public void addNodesInDocOrder(NodeList nodelist, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    int nChildren = nodelist.getLength();\n\n    for (int i = 0; i < nChildren; i++)\n    {\n      Node node = nodelist.item(i);\n\n      if (null != node)\n      {\n        addNodeInDocOrder(node, support);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [7, 10], [1, 11], [10, 12], [8, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 7], [11, 1], [12, 10], [13, 8], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addNodesInDocOrder", "code": "  public void addNodesInDocOrder(NodeIterator iterator, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    Node node;\n\n    while (null != (node = iterator.nextNode()))\n    {\n      addNodeInDocOrder(node, support);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [1, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 1], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addNodesInDocOrder", "code": "  private boolean addNodesInDocOrder(int start, int end, int testIndex,\n                                     NodeList nodelist, XPathContext support)\n  {\n\n  if (!m_mutable){}\n\n    boolean foundit = false;\n    int i;\n    Node node = nodelist.item(testIndex);\n\n    for (i = end; i >= start; i--)\n    {\n      Node child = (Node) elementAt(i);\n\n      if (child == node)\n      {\n\n        break;\n      }\n\n      if (!DOM2Helper.isNodeAfter(node, child))\n      {\n        insertElementAt(node, i + 1);\n\n        testIndex--;\n\n        if (testIndex > 0)\n        {\n          boolean foundPrev = addNodesInDocOrder(0, i, testIndex, nodelist,\n                                                 support);\n\n          if (!foundPrev)\n          {\n            addNodesInDocOrder(i, size() - 1, testIndex, nodelist, support);\n          }\n        }\n\n        break;\n      }\n    }\n\n    if (i == -1)\n    {\n      insertElementAt(node, 0);\n    }\n\n    return foundit;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [3, 14], [3, 15], [13, 16], [3, 17], [3, 18], [3, 19], [4, 20], [6, 21], [2, 22], [17, 23], [18, 24], [22, 25], [17, 26], [17, 27], [18, 28], [27, 29], [17, 30], [19, 31], [27, 32], [27, 33], [29, 34], [30, 35], [35, 36], [33, 37], [32, 38], [37, 39], [38, 40], [40, 41], [40, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 3], [15, 3], [16, 13], [17, 3], [18, 3], [19, 3], [20, 4], [21, 6], [22, 2], [23, 17], [24, 18], [25, 22], [26, 17], [27, 17], [28, 18], [29, 27], [30, 17], [31, 19], [32, 27], [33, 27], [34, 29], [35, 30], [36, 35], [37, 33], [38, 32], [39, 37], [40, 38], [41, 40], [42, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "addNodeInDocOrder", "code": "  public int addNodeInDocOrder(Node node, boolean test, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    int insertIndex = -1;\n\n    if (test)\n    {\n\n      int size = size(), i;\n\n      for (i = size - 1; i >= 0; i--)\n      {\n        Node child = (Node) elementAt(i);\n\n        if (child == node)\n        {\n\n          break;\n        }\n\n        if (!DOM2Helper.isNodeAfter(node, child))\n        {\n          break;\n        }\n      }\n\n      if (i != -2)\n      {\n        insertIndex = i + 1;\n\n        insertElementAt(node, insertIndex);\n      }\n    }\n    else\n    {\n      insertIndex = this.size();\n\n      boolean foundit = false;\n\n      for (int i = 0; i < insertIndex; i++)\n      {\n        if (this.item(i).equals(node))\n        {\n          foundit = true;\n\n          break;\n        }\n      }\n\n      if (!foundit)\n        addElement(node);\n    }\n\n    return insertIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "LOOP", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [3, 14], [9, 15], [2, 16], [11, 17], [12, 18], [12, 19], [8, 20], [9, 21], [10, 22], [17, 23], [12, 24], [12, 25], [12, 26], [18, 27], [19, 28], [13, 29], [9, 30], [16, 31], [11, 32], [11, 33], [24, 34], [25, 35], [28, 36], [21, 37], [21, 38], [21, 39], [33, 40], [24, 41], [25, 42], [21, 43], [40, 44], [26, 45], [43, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 3], [15, 9], [16, 2], [17, 11], [18, 12], [19, 12], [20, 8], [21, 9], [22, 10], [23, 17], [24, 12], [25, 12], [26, 12], [27, 18], [28, 19], [29, 13], [30, 9], [31, 16], [32, 11], [33, 11], [34, 24], [35, 25], [36, 28], [37, 21], [38, 21], [39, 21], [40, 33], [41, 24], [42, 25], [43, 21], [44, 40], [45, 26], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "addNodeInDocOrder", "code": "  public int addNodeInDocOrder(Node node, XPathContext support)\n  {\n\n    if (!m_mutable)\n\n    return addNodeInDocOrder(node, true, support);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getCurrentPos", "code": "  public int getCurrentPos()\n  {\n    return m_next;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCurrentPos", "code": "  public void setCurrentPos(int i)\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    m_next = i;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getCurrentNode", "code": "  public Node getCurrentNode()\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    int saved = m_next;\n    Node n = (m_next < m_firstFree) ? elementAt(m_next) : null;\n    return n;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "THROW_RAISE", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [5, 7], [6, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [7, 5], [8, 6], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getShouldCacheNodes", "code": "  public boolean getShouldCacheNodes()\n  {\n    return m_cacheNodes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShouldCacheNodes", "code": "  public void setShouldCacheNodes(boolean b)\n  {\n\n    if (!isFresh())\n      throw new RuntimeException();\n\n    m_cacheNodes = b;\n    m_mutable = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [3, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 3], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLast", "code": "  public int getLast()\n  {\n    return m_last;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLast", "code": "  public void setLast(int last)\n  {\n    m_last = last;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clone", "code": "  public Object clone() throws CloneNotSupportedException\n  {\n\n    NodeSet clone = (NodeSet) super.clone();\n\n    if ((null != this.m_map) && (this.m_map == clone.m_map))\n    {\n      clone.m_map = new Node[this.m_map.length];\n\n      System.arraycopy(this.m_map, 0, clone.m_map, 0, this.m_map.length);\n    }\n\n    return clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [4, 6], [2, 7], [2, 8], [6, 9], [7, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 4], [7, 2], [8, 2], [9, 6], [10, 7], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "size", "code": "  public int size()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addElement", "code": "  public void addElement(Node value)\n  {\n    if (!m_mutable)\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      if (null == m_map)\n      {\n        m_map = new Node[m_blocksize];\n        m_mapSize = m_blocksize;\n      }\n      else\n      {\n        m_mapSize += m_blocksize;\n\n        Node newMap[] = new Node[m_mapSize];\n\n        System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n        m_map = newMap;\n      }\n    }\n\n    m_map[m_firstFree] = value;\n\n    m_firstFree++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [7, 9], [6, 10], [8, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [13, 17], [13, 18], [13, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 7], [10, 6], [11, 8], [12, 6], [13, 6], [14, 6], [15, 6], [16, 6], [17, 13], [18, 13], [19, 13], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "push", "code": "  public final void push(Node value)\n  {\n\n    int ff = m_firstFree;\n\n    if ((ff + 1) >= m_mapSize)\n    {\n      if (null == m_map)\n      {\n        m_map = new Node[m_blocksize];\n        m_mapSize = m_blocksize;\n      }\n      else\n      {\n        m_mapSize += m_blocksize;\n\n        Node newMap[] = new Node[m_mapSize];\n\n        System.arraycopy(m_map, 0, newMap, 0, ff + 1);\n\n        m_map = newMap;\n      }\n    }\n\n    m_map[ff] = value;\n\n    ff++;\n\n    m_firstFree = ff;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [7, 9], [8, 10], [7, 11], [9, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [14, 18], [14, 19], [14, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 7], [10, 8], [11, 7], [12, 9], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 14], [19, 14], [20, 14], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "pop", "code": "  public final Node pop()\n  {\n\n    m_firstFree--;\n\n    Node n = m_map[m_firstFree];\n\n    m_map[m_firstFree] = null;\n\n    return n;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "popAndTop", "code": "  public final Node popAndTop()\n  {\n\n    m_firstFree--;\n\n    m_map[m_firstFree] = null;\n\n    return (m_firstFree == 0) ? null : m_map[m_firstFree - 1];", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [2, 5], [3, 6], [5, 7], [2, 8], [8, 9], [1, 0], [2, 1], [3, 0], [4, 2], [5, 2], [6, 3], [7, 5], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "popQuick", "code": "  public final void popQuick()\n  {\n\n    m_firstFree--;\n\n    m_map[m_firstFree] = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "peepOrNull", "code": "  public final Node peepOrNull()\n  {\n    return ((null != m_map) && (m_firstFree > 0))\n           ? m_map[m_firstFree - 1] : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [2, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 2], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "pushPair", "code": "  public final void pushPair(Node v1, Node v2)\n  {\n\n    if (null == m_map)\n    {\n      m_map = new Node[m_blocksize];\n      m_mapSize = m_blocksize;\n    }\n    else\n    {\n      if ((m_firstFree + 2) >= m_mapSize)\n      {\n        m_mapSize += m_blocksize;\n\n        Node newMap[] = new Node[m_mapSize];\n\n        System.arraycopy(m_map, 0, newMap, 0, m_firstFree);\n\n        m_map = newMap;\n      }\n    }\n\n    m_map[m_firstFree] = v1;\n    m_map[m_firstFree + 1] = v2;\n    m_firstFree += 2;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [4, 8], [1, 9], [7, 10], [9, 11], [1, 12], [1, 13], [5, 14], [9, 15], [11, 16], [14, 17], [9, 18], [9, 19], [9, 20], [16, 21], [19, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 4], [9, 1], [10, 7], [11, 9], [12, 1], [13, 1], [14, 5], [15, 9], [16, 11], [17, 14], [18, 9], [19, 9], [20, 9], [21, 16], [22, 19], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "popPair", "code": "  public final void popPair()\n  {\n\n    m_firstFree -= 2;\n    m_map[m_firstFree] = null;\n    m_map[m_firstFree + 1] = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setTail", "code": "  public final void setTail(Node n)\n  {\n    m_map[m_firstFree - 1] = n;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setTailSub1", "code": "  public final void setTailSub1(Node n)\n  {\n    m_map[m_firstFree - 2] = n;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "peepTail", "code": "  public final Node peepTail()\n  {\n    return m_map[m_firstFree - 1];", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "peepTailSub1", "code": "  public final Node peepTailSub1()\n  {\n    return m_map[m_firstFree - 2];", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "insertElementAt", "code": "  public void insertElementAt(Node value, int at)\n  {\n    if (!m_mutable)\n\n    if (null == m_map)\n    {\n      m_map = new Node[m_blocksize];\n      m_mapSize = m_blocksize;\n    }\n    else if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      Node newMap[] = new Node[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    if (at <= (m_firstFree - 1))\n    {\n      System.arraycopy(m_map, at, m_map, at + 1, m_firstFree - at);\n    }\n\n    m_map[at] = value;\n\n    m_firstFree++;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [6, 8], [7, 9], [7, 10], [1, 11], [8, 12], [9, 13], [10, 14], [11, 15], [11, 16], [9, 17], [13, 18], [7, 19], [7, 20], [16, 21], [9, 22], [9, 23], [9, 24], [18, 25], [23, 26], [23, 27], [23, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 6], [9, 7], [10, 7], [11, 1], [12, 8], [13, 9], [14, 10], [15, 11], [16, 11], [17, 9], [18, 13], [19, 7], [20, 7], [21, 16], [22, 9], [23, 9], [24, 9], [25, 18], [26, 23], [27, 23], [28, 23], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "appendNodes", "code": "  public void appendNodes(NodeSet nodes)\n  {\n\n    int nNodes = nodes.size();\n\n    if (null == m_map)\n    {\n      m_mapSize = nNodes + m_blocksize;\n      m_map = new Node[m_mapSize];\n    }\n    else if ((m_firstFree + nNodes) >= m_mapSize)\n    {\n      m_mapSize += (nNodes + m_blocksize);\n\n      Node newMap[] = new Node[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + nNodes);\n\n      m_map = newMap;\n    }\n\n    System.arraycopy(nodes.m_map, 0, m_map, m_firstFree, nNodes);\n\n    m_firstFree += nNodes;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [5, 8], [6, 9], [7, 10], [2, 11], [6, 12], [9, 13], [1, 14], [1, 15], [6, 16], [6, 17], [6, 18], [15, 19], [17, 20], [17, 21], [17, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 5], [9, 6], [10, 7], [11, 2], [12, 6], [13, 9], [14, 1], [15, 1], [16, 6], [17, 6], [18, 6], [19, 15], [20, 17], [21, 17], [22, 17], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "removeAllElements", "code": "  public void removeAllElements()\n  {\n\n    if (null == m_map)\n      return;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      m_map[i] = null;\n    }\n\n    m_firstFree = 0;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [6, 8], [1, 9], [1, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 6], [9, 1], [10, 1], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "removeElement", "code": "  public boolean removeElement(Node s)\n  {\n    if (!m_mutable)\n\n    if (null == m_map)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      Node node = m_map[i];\n\n      if ((null != node) && node.equals(s))\n      {\n        if (i < m_firstFree - 1)\n          System.arraycopy(m_map, i + 1, m_map, i, m_firstFree - i - 1);\n\n        m_firstFree--;\n        m_map[m_firstFree] = null;\n\n        return true;\n      }\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [2, 9], [7, 10], [7, 11], [8, 12], [2, 13], [10, 14], [11, 15], [8, 16], [8, 17], [12, 18], [12, 19], [16, 20], [8, 21], [17, 22], [19, 23], [21, 24], [17, 25], [22, 26], [25, 27], [25, 28], [26, 29], [27, 30], [27, 31], [28, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 2], [10, 7], [11, 7], [12, 8], [13, 2], [14, 10], [15, 11], [16, 8], [17, 8], [18, 12], [19, 12], [20, 16], [21, 8], [22, 17], [23, 19], [24, 21], [25, 17], [26, 22], [27, 25], [28, 25], [29, 26], [30, 27], [31, 27], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "removeElementAt", "code": "  public void removeElementAt(int i)\n  {\n\n    if (null == m_map)\n      return;\n      \n    if (i >= m_firstFree)\n      throw new ArrayIndexOutOfBoundsException(i + \" >= \" + m_firstFree);\n    else if (i < 0)\n      throw new ArrayIndexOutOfBoundsException(i);\n\n    if (i < m_firstFree - 1)\n      System.arraycopy(m_map, i + 1, m_map, i, m_firstFree - i - 1);\n\n    m_firstFree--;\n    m_map[m_firstFree] = null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "IF", "THROW_RAISE", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [3, 10], [3, 11], [5, 12], [1, 13], [6, 14], [7, 15], [7, 16], [8, 17], [11, 18], [13, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [19, 25], [19, 26], [20, 27], [24, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 3], [11, 3], [12, 5], [13, 1], [14, 6], [15, 7], [16, 7], [17, 8], [18, 11], [19, 13], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 19], [26, 19], [27, 20], [28, 24], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "setElementAt", "code": "  public void setElementAt(Node node, int index)\n  {\n    if (!m_mutable)\n\n    if (null == m_map)\n    {\n      m_map = new Node[m_blocksize];\n      m_mapSize = m_blocksize;\n    }\n\n    m_map[index] = node;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "elementAt", "code": "  public Node elementAt(int i)\n  {\n\n    if (null == m_map)\n      return null;\n\n    return m_map[i];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "contains", "code": "  public boolean contains(Node s)\n  {\n    runTo(-1);\n\n    if (null == m_map)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      Node node = m_map[i];\n\n      if ((null != node) && node.equals(s))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [0, 9], [2, 10], [2, 11], [7, 12], [8, 13], [9, 14], [10, 15], [10, 16], [2, 17], [15, 18], [16, 19], [16, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 0], [10, 2], [11, 2], [12, 7], [13, 8], [14, 9], [15, 10], [16, 10], [17, 2], [18, 15], [19, 16], [20, 16], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "indexOf", "code": "  public int indexOf(Node elem, int index)\n  {\n    runTo(-1);\n\n    if (null == m_map)\n      return -1;\n\n    for (int i = index; i < m_firstFree; i++)\n    {\n      Node node = m_map[i];\n\n      if ((null != node) && node.equals(elem))\n        return i;\n    }\n\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [3, 9], [0, 10], [2, 11], [2, 12], [8, 13], [9, 14], [10, 15], [11, 16], [11, 17], [17, 18], [17, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 3], [10, 0], [11, 2], [12, 2], [13, 8], [14, 9], [15, 10], [16, 11], [17, 11], [18, 17], [19, 17], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "indexOf", "code": "  public int indexOf(Node elem)\n  {\n    runTo(-1);\n\n    if (null == m_map)\n      return -1;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      Node node = m_map[i];\n\n      if ((null != node) && node.equals(elem))\n        return i;\n    }\n\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [0, 9], [2, 10], [2, 11], [7, 12], [8, 13], [9, 14], [10, 15], [10, 16], [2, 17], [16, 18], [16, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 0], [10, 2], [11, 2], [12, 7], [13, 8], [14, 9], [15, 10], [16, 10], [17, 2], [18, 16], [19, 16], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "NodeSet", "code": "  public NodeSet()\n  {\n    m_blocksize = 32;\n    m_mapSize = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "NodeSet", "code": "  public NodeSet(int blocksize)\n  {\n    m_blocksize = blocksize;\n    m_mapSize = 0;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "NodeSet", "code": "  public NodeSet(NodeList nodelist)\n  {\n\n    this(32);\n\n    addNodes(nodelist);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "NodeSet", "code": "  public NodeSet(NodeSet nodelist)\n  {\n\n    this(32);\n\n    addNodes((NodeIterator) nodelist);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "NodeSet", "code": "  public NodeSet(NodeIterator ni)\n  {\n\n    this(32);\n\n    addNodes(ni);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "NodeSet", "code": "  public NodeSet(Node node)\n  {\n\n    this(32);\n\n    addNode(node);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "camel-1.6-2741", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/DelayProcessorSupport.java", "language": "java", "name": "org.apache.camel.processor.DelayProcessorSupport", "code": "public abstract class DelayProcessorSupport extends DelegateProcessor {\n    private static final transient Log LOG = LogFactory.getLog(Delayer.class);\n    private CountDownLatch stoppedLatch = new CountDownLatch(1);\n    private boolean fastStop = true;\n\n    public DelayProcessorSupport(Processor processor) {\n        super(processor);\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        delay(exchange);\n        super.process(exchange);\n    }\n\n    public boolean isFastStop() {\n        return fastStop;\n    }\n\n    /**\n     * Enables & disables a fast stop; basically to avoid waiting a possibly\n     * long time for delays to complete before the context shuts down; instead\n     * the current processing method throws\n     * {@link org.apache.camel.AlreadyStoppedException} to terminate processing.\n     */\n    public void setFastStop(boolean fastStop) {\n        this.fastStop = fastStop;\n    }\n\n    protected void doStop() throws Exception {\n        stoppedLatch.countDown();\n        super.doStop();\n    }\n\n    protected abstract void delay(Exchange exchange) throws Exception;\n\n    /**\n     * Wait until the given system time before continuing\n     * \n     * @param time the system time to wait for\n     * @param exchange the exchange being processed\n     */\n    protected void waitUntil(long time, Exchange exchange) throws Exception {\n        while (true) {\n            long delay = time - currentSystemTime();\n            if (delay < 0) {\n                return;\n            } else {\n                if (isFastStop() && !isRunAllowed()) {\n                    throw new AlreadyStoppedException();\n                }\n                try {\n                    sleep(delay);\n                } catch (InterruptedException e) {\n                    handleSleepInteruptedException(e);\n                }\n            }\n        }\n    }\n\n    protected void sleep(long delay) throws InterruptedException {\n        if (delay <= 0) {\n            return;\n        }\n        if (LOG.isTraceEnabled()) {\n            LOG.trace(\"Sleeping for: \" + delay + \" millis\");\n        }\n        if (isFastStop()) {\n            stoppedLatch.await(delay, TimeUnit.MILLISECONDS);\n        } else {\n            Thread.sleep(delay);\n        }\n    }\n\n    /**\n     * Called when a sleep is interupted; allows derived classes to handle this\n     * case differently\n     */\n    protected void handleSleepInteruptedException(InterruptedException e) {\n        LOG.debug(\"Sleep interupted: \" + e, e);\n    }\n\n    protected long currentSystemTime() {\n        return System.currentTimeMillis();", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        delay(exchange);\n        super.process(exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFastStop", "code": "    public boolean isFastStop() {\n        return fastStop;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFastStop", "code": "    public void setFastStop(boolean fastStop) {\n        this.fastStop = fastStop;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        stoppedLatch.countDown();\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "delay", "code": "    protected abstract void delay(Exchange exchange) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "waitUntil", "code": "    protected void waitUntil(long time, Exchange exchange) throws Exception {\n        while (true) {\n            long delay = time - currentSystemTime();\n            if (delay < 0) {\n                return;\n            } else {\n                if (isFastStop() && !isRunAllowed()) {\n                    throw new AlreadyStoppedException();\n                }\n                try {\n                    sleep(delay);\n                } catch (InterruptedException e) {\n                    handleSleepInteruptedException(e);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "TRY", "IF", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [5, 8], [5, 9], [5, 10], [7, 11], [6, 12], [8, 13], [9, 14], [12, 15], [8, 16], [9, 17], [14, 18], [14, 19], [13, 20], [17, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 5], [9, 5], [10, 5], [11, 7], [12, 6], [13, 8], [14, 9], [15, 12], [16, 8], [17, 9], [18, 14], [19, 14], [20, 13], [21, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "sleep", "code": "    protected void sleep(long delay) throws InterruptedException {\n        if (delay <= 0) {\n            return;\n        }\n        if (LOG.isTraceEnabled()) {\n            LOG.trace(\"Sleeping for: \" + delay + \" millis\");\n        }\n        if (isFastStop()) {\n            stoppedLatch.await(delay, TimeUnit.MILLISECONDS);\n        } else {\n            Thread.sleep(delay);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [7, 9], [1, 10], [1, 11], [2, 12], [12, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 7], [10, 1], [11, 1], [12, 2], [13, 12], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "handleSleepInteruptedException", "code": "    protected void handleSleepInteruptedException(InterruptedException e) {\n        LOG.debug(\"Sleep interupted: \" + e, e);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "currentSystemTime", "code": "    protected long currentSystemTime() {\n        return System.currentTimeMillis();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DelayProcessorSupport", "code": "    public DelayProcessorSupport(Processor processor) {\n        super(processor);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.6-7588", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/Include.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Include", "code": "final class Include extends TopLevelElement {\n\n    private Stylesheet _included = null;\n\n    public Stylesheet getIncludedStylesheet() {\n\treturn _included;\n    }\n\n    public void parseContents(final Parser parser) {\n\tXSLTC xsltc = parser.getXSLTC();\n\tStylesheet context = parser.getCurrentStylesheet();\n        \n\tString docToLoad = getAttribute(\"href\");\n\ttry {\n\t    if (context.checkForLoop(docToLoad)) {\n\t\tfinal ErrorMsg msg = new ErrorMsg(ErrorMsg.CIRCULAR_INCLUDE_ERR,\n                                                  docToLoad, this);\n\t\tparser.reportError(Constants.FATAL, msg);\n\t\treturn;\n\t    }\n\n\t    InputSource input = null;\n\t    XMLReader reader = null;\n\t    String currLoadedDoc = context.getSystemId();\n\t    SourceLoader loader = context.getSourceLoader();\n            \n\t    if (loader != null) {\n\t\tinput = loader.loadSource(docToLoad, currLoadedDoc, xsltc);\n                if (input != null) {\n                    docToLoad = input.getSystemId();\n                    reader = xsltc.getXMLReader();\n                }\n\t    }\n\n            if (input == null) {\n                docToLoad = SystemIDResolver.getAbsoluteURI(docToLoad, currLoadedDoc);\n                input = new InputSource(docToLoad);\n\t    }\n\n\t    if (input == null) {\n\t\tfinal ErrorMsg msg = \n\t\t    new ErrorMsg(ErrorMsg.FILE_NOT_FOUND_ERR, docToLoad, this);\n\t\tparser.reportError(Constants.FATAL, msg);\n\t\treturn;\n\t    }\n\n\t    final SyntaxTreeNode root;\n            if (reader != null) {\n                root = parser.parse(reader,input);\n            }\n            else {\n                root = parser.parse(input);\n            }\n              \n\t    if (root == null) return;\n\t    _included = parser.makeStylesheet(root);\n\t    if (_included == null) return;\n\n\t    _included.setSourceLoader(loader);\n\t    _included.setSystemId(docToLoad);\n\t    _included.setParentStylesheet(context);\n\t    _included.setIncludingStylesheet(context);\n\t    _included.setTemplateInlining(context.getTemplateInlining());\n\n\t    final int precedence = context.getImportPrecedence();\n\t    _included.setImportPrecedence(precedence);\n\t    parser.setCurrentStylesheet(_included);\n\t    _included.parseContents(parser);\n\n\t    final Enumeration elements = _included.elements();\n\t    final Stylesheet topStylesheet = parser.getTopLevelStylesheet();\n\t    while (elements.hasMoreElements()) {\n\t\tfinal Object element = elements.nextElement();\n\t\tif (element instanceof TopLevelElement) {\n\t\t    if (element instanceof Variable) {\n\t\t\ttopStylesheet.addVariable((Variable) element);\n\t\t    }\n\t\t    else if (element instanceof Param) {\n\t\t\ttopStylesheet.addParam((Param) element);\n\t\t    }\n\t\t    else {\n\t\t\ttopStylesheet.addElement((TopLevelElement) element);\n\t\t    }\n\t\t}\n\t    }\n\t}\n\tcatch (Exception e) {\n\t    e.printStackTrace();\n\t}\n\tfinally {\n\t    parser.setCurrentStylesheet(context);\n\t}\n    }\n    \n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn Type.Void;\n    }\n    \n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {", "functions": [{"function_name": "getIncludedStylesheet", "code": "    public Stylesheet getIncludedStylesheet() {\n\treturn _included;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parseContents", "code": "    public void parseContents(final Parser parser) {\n\tXSLTC xsltc = parser.getXSLTC();\n\tStylesheet context = parser.getCurrentStylesheet();\n        \n\tString docToLoad = getAttribute(\"href\");\n\ttry {\n\t    if (context.checkForLoop(docToLoad)) {\n\t\tfinal ErrorMsg msg = new ErrorMsg(ErrorMsg.CIRCULAR_INCLUDE_ERR,\n                                                  docToLoad, this);\n\t\tparser.reportError(Constants.FATAL, msg);\n\t\treturn;\n\t    }\n\n\t    InputSource input = null;\n\t    XMLReader reader = null;\n\t    String currLoadedDoc = context.getSystemId();\n\t    SourceLoader loader = context.getSourceLoader();\n            \n\t    if (loader != null) {\n\t\tinput = loader.loadSource(docToLoad, currLoadedDoc, xsltc);\n                if (input != null) {\n                    docToLoad = input.getSystemId();\n                    reader = xsltc.getXMLReader();\n                }\n\t    }\n\n            if (input == null) {\n                docToLoad = SystemIDResolver.getAbsoluteURI(docToLoad, currLoadedDoc);\n                input = new InputSource(docToLoad);\n\t    }\n\n\t    if (input == null) {\n\t\tfinal ErrorMsg msg = \n\t\t    new ErrorMsg(ErrorMsg.FILE_NOT_FOUND_ERR, docToLoad, this);\n\t\tparser.reportError(Constants.FATAL, msg);\n\t\treturn;\n\t    }\n\n\t    final SyntaxTreeNode root;\n            if (reader != null) {\n                root = parser.parse(reader,input);\n            }\n            else {\n                root = parser.parse(input);\n            }\n              \n\t    if (root == null) return;\n\t    _included = parser.makeStylesheet(root);\n\t    if (_included == null) return;\n\n\t    _included.setSourceLoader(loader);\n\t    _included.setSystemId(docToLoad);\n\t    _included.setParentStylesheet(context);\n\t    _included.setIncludingStylesheet(context);\n\t    _included.setTemplateInlining(context.getTemplateInlining());\n\n\t    final int precedence = context.getImportPrecedence();\n\t    _included.setImportPrecedence(precedence);\n\t    parser.setCurrentStylesheet(_included);\n\t    _included.parseContents(parser);\n\n\t    final Enumeration elements = _included.elements();\n\t    final Stylesheet topStylesheet = parser.getTopLevelStylesheet();\n\t    while (elements.hasMoreElements()) {\n\t\tfinal Object element = elements.nextElement();\n\t\tif (element instanceof TopLevelElement) {\n\t\t    if (element instanceof Variable) {\n\t\t\ttopStylesheet.addVariable((Variable) element);\n\t\t    }\n\t\t    else if (element instanceof Param) {\n\t\t\ttopStylesheet.addParam((Param) element);\n\t\t    }\n\t\t    else {\n\t\t\ttopStylesheet.addElement((TopLevelElement) element);\n\t\t    }\n\t\t}\n\t    }\n\t}\n\tcatch (Exception e) {\n\t    e.printStackTrace();\n\t}\n\tfinally {\n\t    parser.setCurrentStylesheet(context);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [7, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [11, 33], [11, 34], [1, 35], [12, 36], [12, 37], [13, 38], [15, 39], [16, 40], [17, 41], [22, 42], [2, 43], [3, 44], [4, 45], [6, 46], [7, 47], [7, 48], [8, 49], [9, 50], [10, 51], [28, 52], [34, 53], [35, 54], [37, 55], [38, 56], [15, 57], [15, 58], [39, 59], [40, 60], [17, 61], [41, 62], [18, 63], [19, 64], [20, 65], [21, 66], [22, 67], [22, 68], [43, 69], [47, 70], [13, 71], [13, 72], [15, 73], [16, 74], [16, 75], [61, 76], [17, 77], [22, 78], [47, 79], [48, 80], [71, 81], [72, 82], [58, 83], [74, 84], [75, 85], [76, 86], [77, 87], [68, 88], [79, 89], [79, 90], [61, 91], [61, 92], [89, 93], [91, 94], [92, 95], [79, 96], [89, 97], [89, 98], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 7], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 11], [34, 11], [35, 1], [36, 12], [37, 12], [38, 13], [39, 15], [40, 16], [41, 17], [42, 22], [43, 2], [44, 3], [45, 4], [46, 6], [47, 7], [48, 7], [49, 8], [50, 9], [51, 10], [52, 28], [53, 34], [54, 35], [55, 37], [56, 38], [57, 15], [58, 15], [59, 39], [60, 40], [61, 17], [62, 41], [63, 18], [64, 19], [65, 20], [66, 21], [67, 22], [68, 22], [69, 43], [70, 47], [71, 13], [72, 13], [73, 15], [74, 16], [75, 16], [76, 61], [77, 17], [78, 22], [79, 47], [80, 48], [81, 71], [82, 72], [83, 58], [84, 74], [85, 75], [86, 76], [87, 77], [88, 68], [89, 79], [90, 79], [91, 61], [92, 61], [93, 89], [94, 91], [95, 92], [96, 79], [97, 89], [98, 89], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-1.5-5343", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/formula/ParenthesisPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.ParenthesisPtg", "code": "public class ParenthesisPtg\n    extends Ptg\n    implements OperationPtg\n{\n   \n\n   \n\n    public void writeBytes(byte [] array, int offset)\n    {\n    }\n\n    public int getSize()\n    {\n        return 0;\n    }\n\n    public int getType()\n    {\n        return TYPE_BINARY;\n    }\n\n    public int getNumberOfOperands()\n    {\n        return 0;\n    }\n\n    public String toFormulaString()\n    {\n        return \"(\";\n    }\n\n    public String toFormulaString(Ptg [] operands)\n    {\n        return \"(\";", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return TYPE_BINARY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfOperands", "code": "    public int getNumberOfOperands()\n    {\n        return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString()\n    {\n        return \"(\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Ptg [] operands)\n    {\n        return \"(\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "ant-1.3-88", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/taskdefs/Expand.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Expand", "code": "public class Expand extends MatchingTask {\n    \n    /**\n     * Do the work.\n     *\n     * @exception BuildException Thrown in unrecoverable error.\n     */\n    public void execute() throws BuildException {\n        if (\"expand\".equals(taskType)) {\n            log(\"!! expand is deprecated. Use unzip instead. !!\");\n        }\n        \n\n        Touch touch = (Touch) project.createTask(\"touch\");\n        touch.setOwningTarget(target);\n        touch.setTaskName(getTaskName());\n        touch.setLocation(getLocation());\n        \n        if (source == null) {\n            throw new BuildException(\"Source attribute must be specified\");\n        }\n        if (dest == null) {\n            throw new BuildException(\"Dest attribute must be specified\");\n        }\n\n        if (source.isDirectory()) {\n            DirectoryScanner ds = super.getDirectoryScanner(source);\n    \n            String[] files = ds.getIncludedFiles();\n            for (int i = 0; i < files.length; ++i) {\n                File file = new File(source, files[i]);\n                expandFile(touch, file, dest);\n            }\n        }\n        else {\n            expandFile(touch, source, dest);\n        }\n        \n\n    }\n\n    private void expandFile(Touch touch, File srcF, File dir) {\n        ZipInputStream zis = null;\n        try {\n            log(\"Expanding: \" + srcF + \" into \" + dir, Project.MSG_INFO);\n            zis = new ZipInputStream(new FileInputStream(srcF));\n            ZipEntry ze = null;\n\n            while ((ze = zis.getNextEntry()) != null) {\n                File f = new File(dir, project.translatePath(ze.getName()));\n                try {\n                    log(\"expand-file \" + ze.getName() , Project.MSG_VERBOSE );\n                    File dirF=new File(f.getParent());\n                    dirF.mkdirs();\n                    \n                    if (ze.isDirectory()) {\n                        f.mkdirs(); \n                    } else {\n                        byte[] buffer = new byte[1024];\n                        int length = 0;\n                        FileOutputStream fos = new FileOutputStream(f);\n                        \n                        while ((length = zis.read(buffer)) >= 0) {\n                            fos.write(buffer, 0, length);\n                        }\n                        \n                        fos.close();\n                    }\n                    \n                    if (project.getJavaVersion() != Project.JAVA_1_1) {\n                        touch.setFile(f);\n                        touch.setMillis(ze.getTime());\n                        touch.touch();\n                    }\n                    \n                } catch( FileNotFoundException ex ) {\n                    log(\"Unable to expand to file \" + f.getPath(), Project.MSG_WARN);\n                }\n            }\n            log(\"expand complete\", Project.MSG_VERBOSE );\n        } catch (IOException ioe) {\n            throw new BuildException(\"Error while expanding \" + srcF.getPath(), ioe);\n        } finally {\n            if (zis != null) {\n                try {\n                    zis.close();\n                }\n                catch (IOException e) {}\n            }\n        }\n    }\n    \n    /**\n     * Set the destination directory. File will be unzipped into the\n     * destination directory.\n     *\n     * @param d Path to the directory.\n     */\n    public void setDest(File d) {\n        this.dest=d;\n    }\n\n    /**\n     * Set the path to zip-file.\n     *\n     * @param s Path to zip-file.\n     */\n    public void setSrc(File s) {\n        this.source = s;", "functions": [{"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (\"expand\".equals(taskType)) {\n            log(\"!! expand is deprecated. Use unzip instead. !!\");\n        }\n        \n\n        Touch touch = (Touch) project.createTask(\"touch\");\n        touch.setOwningTarget(target);\n        touch.setTaskName(getTaskName());\n        touch.setLocation(getLocation());\n        \n        if (source == null) {\n            throw new BuildException(\"Source attribute must be specified\");\n        }\n        if (dest == null) {\n            throw new BuildException(\"Dest attribute must be specified\");\n        }\n\n        if (source.isDirectory()) {\n            DirectoryScanner ds = super.getDirectoryScanner(source);\n    \n            String[] files = ds.getIncludedFiles();\n            for (int i = 0; i < files.length; ++i) {\n                File file = new File(source, files[i]);\n                expandFile(touch, file, dest);\n            }\n        }\n        else {\n            expandFile(touch, source, dest);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [0, 9], [0, 10], [0, 11], [5, 12], [1, 13], [1, 14], [1, 15], [2, 16], [7, 17], [3, 18], [8, 19], [9, 20], [10, 21], [12, 22], [1, 23], [13, 24], [16, 25], [18, 26], [4, 27], [5, 28], [13, 29], [14, 30], [25, 31], [26, 32], [27, 33], [28, 34], [13, 35], [13, 36], [29, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 0], [10, 0], [11, 0], [12, 5], [13, 1], [14, 1], [15, 1], [16, 2], [17, 7], [18, 3], [19, 8], [20, 9], [21, 10], [22, 12], [23, 1], [24, 13], [25, 16], [26, 18], [27, 4], [28, 5], [29, 13], [30, 14], [31, 25], [32, 26], [33, 27], [34, 28], [35, 13], [36, 13], [37, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "expandFile", "code": "    private void expandFile(Touch touch, File srcF, File dir) {\n        ZipInputStream zis = null;\n        try {\n            log(\"Expanding: \" + srcF + \" into \" + dir, Project.MSG_INFO);\n            zis = new ZipInputStream(new FileInputStream(srcF));\n            ZipEntry ze = null;\n\n            while ((ze = zis.getNextEntry()) != null) {\n                File f = new File(dir, project.translatePath(ze.getName()));\n                try {\n                    log(\"expand-file \" + ze.getName() , Project.MSG_VERBOSE );\n                    File dirF=new File(f.getParent());\n                    dirF.mkdirs();\n                    \n                    if (ze.isDirectory()) {\n                        f.mkdirs(); \n                    } else {\n                        byte[] buffer = new byte[1024];\n                        int length = 0;\n                        FileOutputStream fos = new FileOutputStream(f);\n                        \n                        while ((length = zis.read(buffer)) >= 0) {\n                            fos.write(buffer, 0, length);\n                        }\n                        \n                        fos.close();\n                    }\n                    \n                    if (project.getJavaVersion() != Project.JAVA_1_1) {\n                        touch.setFile(f);\n                        touch.setMillis(ze.getTime());\n                        touch.touch();\n                    }\n                    \n                } catch( FileNotFoundException ex ) {\n                    log(\"Unable to expand to file \" + f.getPath(), Project.MSG_WARN);\n                }\n            }\n            log(\"expand complete\", Project.MSG_VERBOSE );\n        } catch (IOException ioe) {\n            throw new BuildException(\"Error while expanding \" + srcF.getPath(), ioe);\n        } finally {\n            if (zis != null) {\n                try {\n                    zis.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "CATCH", "LOOP", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CATCH", "BINARY_OP", "CATCH", "IF", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [7, 11], [1, 12], [8, 13], [1, 14], [1, 15], [2, 16], [6, 17], [10, 18], [11, 19], [12, 20], [8, 21], [8, 22], [13, 23], [13, 24], [9, 25], [14, 26], [15, 27], [17, 28], [19, 29], [21, 30], [21, 31], [21, 32], [21, 33], [24, 34], [26, 35], [27, 36], [17, 37], [29, 38], [29, 39], [31, 40], [32, 41], [21, 42], [21, 43], [22, 44], [36, 45], [36, 46], [30, 47], [40, 48], [32, 49], [32, 50], [32, 51], [32, 52], [33, 53], [43, 54], [44, 55], [46, 56], [47, 57], [31, 58], [31, 59], [31, 60], [32, 61], [49, 62], [32, 63], [53, 64], [54, 65], [54, 66], [55, 67], [57, 68], [57, 69], [59, 70], [62, 71], [62, 72], [50, 73], [51, 74], [49, 75], [72, 76], [52, 77], [75, 78], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 7], [12, 1], [13, 8], [14, 1], [15, 1], [16, 2], [17, 6], [18, 10], [19, 11], [20, 12], [21, 8], [22, 8], [23, 13], [24, 13], [25, 9], [26, 14], [27, 15], [28, 17], [29, 19], [30, 21], [31, 21], [32, 21], [33, 21], [34, 24], [35, 26], [36, 27], [37, 17], [38, 29], [39, 29], [40, 31], [41, 32], [42, 21], [43, 21], [44, 22], [45, 36], [46, 36], [47, 30], [48, 40], [49, 32], [50, 32], [51, 32], [52, 32], [53, 33], [54, 43], [55, 44], [56, 46], [57, 47], [58, 31], [59, 31], [60, 31], [61, 32], [62, 49], [63, 32], [64, 53], [65, 54], [66, 54], [67, 55], [68, 57], [69, 57], [70, 59], [71, 62], [72, 62], [73, 50], [74, 51], [75, 49], [76, 72], [77, 52], [78, 75], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78]]}, {"function_name": "setDest", "code": "    public void setDest(File d) {\n        this.dest=d;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSrc", "code": "    public void setSrc(File s) {\n        this.source = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.4-198", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/Rename.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Rename", "code": "public class Rename extends Task {\n\n    private File src;\n    private File dest;\n    private boolean replace = true;\n\n\n    /**\n     * Sets the file to be renamed.\n     * @param src the file to rename\n     */\n    public void setSrc(File src) {\n        this.src = src;\n    }\n\n    /**\n     * Sets the new name of the file.\n     * @param dest the new name of the file.\n     */\n    public void setDest(File dest) {\n        this.dest = dest;\n    }\n\n    /**\n     * Sets wheter an existing file should be replaced.\n     * @param replace <code>on</code>, if an existing file should be replaced.\n     */\n    public void setReplace(String replace) {\n        this.replace = project.toBoolean(replace);\n    }\n\n\n    /**\n     * Renames the file <code>src</code> to <code>dest</code>\n     * @exception org.apache.tools.ant.BuildException The exception is\n     * thrown, if the rename operation fails.\n     */\n    public void execute() throws BuildException {\n        log(\"DEPRECATED - The rename task is deprecated.  Use move instead.\");\n\n        if (dest == null) {\n            throw new BuildException(\"dest attribute is required\", location);\n        }\n\n        if (src == null) {\n            throw new BuildException(\"src attribute is required\", location);\n        }\n\n        if (replace && dest.exists()) {\n            if (!dest.delete()) {\n                throw new BuildException(\"Unable to remove existing file \" +\n                      dest);\n            }\n       }\n        if (!src.renameTo(dest)) {\n            throw new BuildException(\"Unable to rename \" + src + \" to \" +\n                  dest);", "functions": [{"function_name": "setSrc", "code": "    public void setSrc(File src) {\n        this.src = src;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDest", "code": "    public void setDest(File dest) {\n        this.dest = dest;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setReplace", "code": "    public void setReplace(String replace) {\n        this.replace = project.toBoolean(replace);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        log(\"DEPRECATED - The rename task is deprecated.  Use move instead.\");\n\n        if (dest == null) {\n            throw new BuildException(\"dest attribute is required\", location);\n        }\n\n        if (src == null) {\n            throw new BuildException(\"src attribute is required\", location);\n        }\n\n        if (replace && dest.exists()) {\n            if (!dest.delete()) {\n                throw new BuildException(\"Unable to remove existing file \" +\n                      dest);\n            }\n       }\n        if (!src.renameTo(dest)) {\n            throw new BuildException(\"Unable to rename \" + src + \" to \" +\n                  dest);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "IF", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [0, 9], [1, 10], [2, 11], [6, 12], [3, 13], [7, 14], [4, 15], [8, 16], [9, 17], [10, 18], [11, 19], [13, 20], [15, 21], [18, 22], [11, 23], [20, 24], [21, 25], [22, 26], [23, 27], [26, 28], [26, 29], [27, 30], [29, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 0], [10, 1], [11, 2], [12, 6], [13, 3], [14, 7], [15, 4], [16, 8], [17, 9], [18, 10], [19, 11], [20, 13], [21, 15], [22, 18], [23, 11], [24, 20], [25, 21], [26, 22], [27, 23], [28, 26], [29, 26], [30, 27], [31, 29], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}], "label": 0}
{"sample_id": "camel-1.2-1908", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/builder/DataTypeExpression.java", "language": "java", "name": "org.apache.camel.builder.DataTypeExpression", "code": "public class DataTypeExpression<T extends ProcessorType> {\n    private final ProcessorType<T> processorType;\n    private final Operation operation;\n\n    public enum Operation {\n        Marshal, Unmarshal\n    };\n\n    public DataTypeExpression(ProcessorType<T> processorType, Operation operation) {\n        this.processorType = processorType;\n        this.operation = operation;\n    }\n\n    /**\n     * Uses the Java Serialization data format\n     */\n    public T serialization() {\n        return dataFormat(new SerializationDataFormat());\n    }\n\n    /**\n     * Uses the JAXB data format\n     */\n    public T jaxb() {\n        return dataFormat(new JaxbDataFormat());\n    }\n\n    /**\n     * Uses the JAXB data format turning pretty printing on or off\n     */\n    public T jaxb(boolean prettyPrint) {\n        return dataFormat(new JaxbDataFormat(prettyPrint));\n    }\n\n    /**\n     * Uses the JAXB data format\n     */\n    public T xmlBeans() {\n        return dataFormat(new XMLBeansDataFormat());\n    }\n\n    /**\n     * Uses the\n     * data format for dealing with lots of different message formats such as SWIFT etc.\n     */\n    public T artixDS() {\n        return dataFormat(new ArtixDSDataFormat());\n    }\n\n    /**\n     * Uses the\n     * data format with the specified type of ComplexDataObject\n     * for marshalling and unmarshalling messages using the dataObject's default Source and Sink.\n     */\n    public T artixDS(Class<?> dataObjectType) {\n        return dataFormat(new ArtixDSDataFormat(dataObjectType));\n    }\n\n\n    /**\n     * Uses the\n     * data format with the specified type of ComplexDataObject\n     * for marshalling and unmarshalling messages using the dataObject's default Source and Sink.\n     */\n    public T artixDS(Class<?> elementType, ArtixDSContentType contentType) {\n        return dataFormat(new ArtixDSDataFormat(elementType, contentType));\n    }\n\n    /**\n     * Uses the\n     * data format with the specified content type\n     * for marshalling and unmarshalling messages\n     */\n    public T artixDS(ArtixDSContentType contentType) {\n        return dataFormat(new ArtixDSDataFormat(contentType));\n    }\n\n    private T dataFormat(DataFormatType dataFormatType) {\n        switch (operation) {\n            case Unmarshal:\n                return processorType.unmarshal(dataFormatType);\n            case Marshal:\n                return processorType.marshal(dataFormatType);\n            default:\n                throw new IllegalArgumentException(\"Unknown value: \" + operation);", "functions": [{"function_name": "serialization", "code": "    public T serialization() {\n        return dataFormat(new SerializationDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "jaxb", "code": "    public T jaxb() {\n        return dataFormat(new JaxbDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "jaxb", "code": "    public T jaxb(boolean prettyPrint) {\n        return dataFormat(new JaxbDataFormat(prettyPrint));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "xmlBeans", "code": "    public T xmlBeans() {\n        return dataFormat(new XMLBeansDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "artixDS", "code": "    public T artixDS() {\n        return dataFormat(new ArtixDSDataFormat());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "artixDS", "code": "    public T artixDS(Class<?> dataObjectType) {\n        return dataFormat(new ArtixDSDataFormat(dataObjectType));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "artixDS", "code": "    public T artixDS(Class<?> elementType, ArtixDSContentType contentType) {\n        return dataFormat(new ArtixDSDataFormat(elementType, contentType));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "artixDS", "code": "    public T artixDS(ArtixDSContentType contentType) {\n        return dataFormat(new ArtixDSDataFormat(contentType));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "dataFormat", "code": "    private T dataFormat(DataFormatType dataFormatType) {\n        switch (operation) {\n            case Unmarshal:\n                return processorType.unmarshal(dataFormatType);\n            case Marshal:\n                return processorType.marshal(dataFormatType);\n            default:\n                throw new IllegalArgumentException(\"Unknown value: \" + operation);", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "DataTypeExpression", "code": "    public DataTypeExpression(ProcessorType<T> processorType, Operation operation) {\n        this.processorType = processorType;\n        this.operation = operation;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.7-1133", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask", "code": "public class JlinkTask extends MatchingTask {\n\n    /**\n     * The output file for this run of jlink. Usually a jar or zip file.\n     * @param outfile the output file\n     */\n    public  void setOutfile(File outfile) {\n        this.outfile = outfile;\n    }\n\n    /**\n     * Establishes the object that contains the files to\n     * be merged into the output.\n     * @return a path to be configured\n     */\n    public  Path createMergefiles() {\n        if (this.mergefiles == null) {\n            this.mergefiles = new Path(getProject());\n        }\n        return this.mergefiles.createPath();\n    }\n\n    /**\n     * Sets the files to be merged into the output.\n     * @param mergefiles a path\n     */\n    public  void setMergefiles(Path mergefiles) {\n        if (this.mergefiles == null) {\n            this.mergefiles = mergefiles;\n        } else {\n            this.mergefiles.append(mergefiles);\n        }\n    }\n\n    /**\n     * Establishes the object that contains the files to\n     * be added to the output.\n     * @return a path to be configured\n     */\n    public  Path createAddfiles() {\n        if (this.addfiles == null) {\n            this.addfiles = new Path(getProject());\n        }\n        return this.addfiles.createPath();\n    }\n\n    /**\n     * Sets the files to be added into the output.\n     * @param addfiles a path\n     */\n    public  void setAddfiles(Path addfiles) {\n        if (this.addfiles == null) {\n            this.addfiles = addfiles;\n        } else {\n            this.addfiles.append(addfiles);\n        }\n    }\n\n    /**\n     * Defines whether or not the output should be compacted.\n     * @param compress a <code>boolean</code> value\n     */\n    public  void setCompress(boolean compress) {\n        this.compress = compress;\n    }\n\n    /**\n     * Does the adding and merging.\n     * @throws BuildException on error\n     */\n    public  void execute() throws BuildException {\n        if (outfile == null) {\n            throw new BuildException(\"outfile attribute is required! \"\n                + \"Please set.\");\n        }\n        if (!haveAddFiles() && !haveMergeFiles()) {\n            throw new BuildException(\"addfiles or mergefiles required! \"\n                + \"Please set.\");\n        }\n        log(\"linking:     \" + outfile.getPath());\n        log(\"compression: \" + compress, Project.MSG_VERBOSE);\n        jlink linker = new jlink();\n        linker.setOutfile(outfile.getPath());\n        linker.setCompression(compress);\n        if (haveMergeFiles()) {\n            log(\"merge files: \" + mergefiles.toString(), Project.MSG_VERBOSE);\n            linker.addMergeFiles(mergefiles.list());\n        }\n        if (haveAddFiles()) {\n            log(\"add files: \" + addfiles.toString(), Project.MSG_VERBOSE);\n            linker.addAddFiles(addfiles.list());\n        }\n        try  {\n            linker.link();\n        } catch (Exception ex) {\n            throw new BuildException(ex, getLocation());\n        }\n    }\n\n    private boolean haveAddFiles() {\n        return haveEntries(addfiles);\n    }\n\n    private boolean haveMergeFiles() {\n        return haveEntries(mergefiles);\n    }\n\n    private boolean haveEntries(Path p) {\n        if (p == null) {\n            return false;\n        }\n        if (p.size() > 0) {\n            return true;\n        }\n        return false;\n    }\n\n    private  File outfile = null;\n\n    private  Path mergefiles = null;\n\n    private  Path addfiles = null;\n\n    private  boolean compress = false;", "functions": [{"function_name": "setOutfile", "code": "    public  void setOutfile(File outfile) {\n        this.outfile = outfile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createMergefiles", "code": "    public  Path createMergefiles() {\n        if (this.mergefiles == null) {\n            this.mergefiles = new Path(getProject());\n        }\n        return this.mergefiles.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setMergefiles", "code": "    public  void setMergefiles(Path mergefiles) {\n        if (this.mergefiles == null) {\n            this.mergefiles = mergefiles;\n        } else {\n            this.mergefiles.append(mergefiles);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createAddfiles", "code": "    public  Path createAddfiles() {\n        if (this.addfiles == null) {\n            this.addfiles = new Path(getProject());\n        }\n        return this.addfiles.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setAddfiles", "code": "    public  void setAddfiles(Path addfiles) {\n        if (this.addfiles == null) {\n            this.addfiles = addfiles;\n        } else {\n            this.addfiles.append(addfiles);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setCompress", "code": "    public  void setCompress(boolean compress) {\n        this.compress = compress;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public  void execute() throws BuildException {\n        if (outfile == null) {\n            throw new BuildException(\"outfile attribute is required! \"\n                + \"Please set.\");\n        }\n        if (!haveAddFiles() && !haveMergeFiles()) {\n            throw new BuildException(\"addfiles or mergefiles required! \"\n                + \"Please set.\");\n        }\n        log(\"linking:     \" + outfile.getPath());\n        log(\"compression: \" + compress, Project.MSG_VERBOSE);\n        jlink linker = new jlink();\n        linker.setOutfile(outfile.getPath());\n        linker.setCompression(compress);\n        if (haveMergeFiles()) {\n            log(\"merge files: \" + mergefiles.toString(), Project.MSG_VERBOSE);\n            linker.addMergeFiles(mergefiles.list());\n        }\n        if (haveAddFiles()) {\n            log(\"add files: \" + addfiles.toString(), Project.MSG_VERBOSE);\n            linker.addAddFiles(addfiles.list());\n        }\n        try  {\n            linker.link();\n        } catch (Exception ex) {\n            throw new BuildException(ex, getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "VAR_DECL", "IF", "IF", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [0, 10], [0, 11], [0, 12], [0, 13], [5, 14], [6, 15], [7, 16], [1, 17], [11, 18], [4, 19], [12, 20], [13, 21], [5, 22], [14, 23], [14, 24], [6, 25], [15, 26], [16, 27], [2, 28], [2, 29], [3, 30], [3, 31], [20, 32], [21, 33], [21, 34], [22, 35], [25, 36], [27, 37], [28, 38], [29, 39], [30, 40], [31, 41], [35, 42], [36, 43], [39, 44], [39, 45], [41, 46], [41, 47], [42, 48], [42, 49], [43, 50], [43, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 0], [11, 0], [12, 0], [13, 0], [14, 5], [15, 6], [16, 7], [17, 1], [18, 11], [19, 4], [20, 12], [21, 13], [22, 5], [23, 14], [24, 14], [25, 6], [26, 15], [27, 16], [28, 2], [29, 2], [30, 3], [31, 3], [32, 20], [33, 21], [34, 21], [35, 22], [36, 25], [37, 27], [38, 28], [39, 29], [40, 30], [41, 31], [42, 35], [43, 36], [44, 39], [45, 39], [46, 41], [47, 41], [48, 42], [49, 42], [50, 43], [51, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "haveAddFiles", "code": "    private boolean haveAddFiles() {\n        return haveEntries(addfiles);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "haveMergeFiles", "code": "    private boolean haveMergeFiles() {\n        return haveEntries(mergefiles);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "haveEntries", "code": "    private boolean haveEntries(Path p) {\n        if (p == null) {\n            return false;\n        }\n        if (p.size() > 0) {\n            return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [6, 9], [6, 10], [3, 11], [7, 12], [8, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 6], [10, 6], [11, 3], [12, 7], [13, 8], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "poi-2.5-5703", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/LegendRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.LegendRecord", "code": "public class LegendRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1015;\n    private  int        field_1_xAxisUpperLeft;\n    private  int        field_2_yAxisUpperLeft;\n    private  int        field_3_xSize;\n    private  int        field_4_ySize;\n    private  byte       field_5_type;\n    public final static byte        TYPE_BOTTOM                    = 0;\n    public final static byte        TYPE_CORNER                    = 1;\n    public final static byte        TYPE_TOP                       = 2;\n    public final static byte        TYPE_RIGHT                     = 3;\n    public final static byte        TYPE_LEFT                      = 4;\n    public final static byte        TYPE_UNDOCKED                  = 7;\n    private  byte       field_6_spacing;\n    public final static byte        SPACING_CLOSE                  = 0;\n    public final static byte        SPACING_MEDIUM                 = 1;\n    public final static byte        SPACING_OPEN                   = 2;\n    private  short      field_7_options;\n    private  BitField   autoPosition                                = new BitField(0x1);\n    private  BitField   autoSeries                                  = new BitField(0x2);\n    private  BitField   autoXPositioning                            = new BitField(0x4);\n    private  BitField   autoYPositioning                            = new BitField(0x8);\n    private  BitField   vertical                                    = new BitField(0x10);\n    private  BitField   dataTable                                   = new BitField(0x20);\n\n\n    public LegendRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Legend record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1015 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public LegendRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a Legend record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1015 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public LegendRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Legend record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_xAxisUpperLeft         = LittleEndian.getInt(data, pos + 0x0 + offset);\n        field_2_yAxisUpperLeft         = LittleEndian.getInt(data, pos + 0x4 + offset);\n        field_3_xSize                  = LittleEndian.getInt(data, pos + 0x8 + offset);\n        field_4_ySize                  = LittleEndian.getInt(data, pos + 0xc + offset);\n        field_5_type                   = data[ pos + 0x10 + offset ];\n        field_6_spacing                = data[ pos + 0x11 + offset ];\n        field_7_options                = LittleEndian.getShort(data, pos + 0x12 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[LEGEND]\\n\");\n        buffer.append(\"    .xAxisUpperLeft       = \")\n            .append(\"0x\").append(HexDump.toHex(  getXAxisUpperLeft ()))\n            .append(\" (\").append( getXAxisUpperLeft() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .yAxisUpperLeft       = \")\n            .append(\"0x\").append(HexDump.toHex(  getYAxisUpperLeft ()))\n            .append(\" (\").append( getYAxisUpperLeft() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .xSize                = \")\n            .append(\"0x\").append(HexDump.toHex(  getXSize ()))\n            .append(\" (\").append( getXSize() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .ySize                = \")\n            .append(\"0x\").append(HexDump.toHex(  getYSize ()))\n            .append(\" (\").append( getYSize() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .type                 = \")\n            .append(\"0x\").append(HexDump.toHex(  getType ()))\n            .append(\" (\").append( getType() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .spacing              = \")\n            .append(\"0x\").append(HexDump.toHex(  getSpacing ()))\n            .append(\" (\").append( getSpacing() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .options              = \")\n            .append(\"0x\").append(HexDump.toHex(  getOptions ()))\n            .append(\" (\").append( getOptions() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .autoPosition             = \").append(isAutoPosition()).append('\\n'); \n        buffer.append(\"         .autoSeries               = \").append(isAutoSeries()).append('\\n'); \n        buffer.append(\"         .autoXPositioning         = \").append(isAutoXPositioning()).append('\\n'); \n        buffer.append(\"         .autoYPositioning         = \").append(isAutoYPositioning()).append('\\n'); \n        buffer.append(\"         .vertical                 = \").append(isVertical()).append('\\n'); \n        buffer.append(\"         .dataTable                = \").append(isDataTable()).append('\\n'); \n\n        buffer.append(\"[/LEGEND]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_xAxisUpperLeft);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_yAxisUpperLeft);\n        LittleEndian.putInt(data, 12 + offset + pos, field_3_xSize);\n        LittleEndian.putInt(data, 16 + offset + pos, field_4_ySize);\n        data[ 20 + offset + pos ] = field_5_type;\n        data[ 21 + offset + pos ] = field_6_spacing;\n        LittleEndian.putShort(data, 22 + offset + pos, field_7_options);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 4 + 4 + 4 + 4 + 1 + 1 + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        LegendRecord rec = new LegendRecord();\n    \n        rec.field_1_xAxisUpperLeft = field_1_xAxisUpperLeft;\n        rec.field_2_yAxisUpperLeft = field_2_yAxisUpperLeft;\n        rec.field_3_xSize = field_3_xSize;\n        rec.field_4_ySize = field_4_ySize;\n        rec.field_5_type = field_5_type;\n        rec.field_6_spacing = field_6_spacing;\n        rec.field_7_options = field_7_options;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the x axis upper left field for the Legend record.\n     */\n    public int getXAxisUpperLeft()\n    {\n        return field_1_xAxisUpperLeft;\n    }\n\n    /**\n     * Set the x axis upper left field for the Legend record.\n     */\n    public void setXAxisUpperLeft(int field_1_xAxisUpperLeft)\n    {\n        this.field_1_xAxisUpperLeft = field_1_xAxisUpperLeft;\n    }\n\n    /**\n     * Get the y axis upper left field for the Legend record.\n     */\n    public int getYAxisUpperLeft()\n    {\n        return field_2_yAxisUpperLeft;\n    }\n\n    /**\n     * Set the y axis upper left field for the Legend record.\n     */\n    public void setYAxisUpperLeft(int field_2_yAxisUpperLeft)\n    {\n        this.field_2_yAxisUpperLeft = field_2_yAxisUpperLeft;\n    }\n\n    /**\n     * Get the x size field for the Legend record.\n     */\n    public int getXSize()\n    {\n        return field_3_xSize;\n    }\n\n    /**\n     * Set the x size field for the Legend record.\n     */\n    public void setXSize(int field_3_xSize)\n    {\n        this.field_3_xSize = field_3_xSize;\n    }\n\n    /**\n     * Get the y size field for the Legend record.\n     */\n    public int getYSize()\n    {\n        return field_4_ySize;\n    }\n\n    /**\n     * Set the y size field for the Legend record.\n     */\n    public void setYSize(int field_4_ySize)\n    {\n        this.field_4_ySize = field_4_ySize;\n    }\n\n    /**\n     * Get the type field for the Legend record.\n     *\n     * @return  One of \n     *        TYPE_BOTTOM\n     *        TYPE_CORNER\n     *        TYPE_TOP\n     *        TYPE_RIGHT\n     *        TYPE_LEFT\n     *        TYPE_UNDOCKED\n     */\n    public byte getType()\n    {\n        return field_5_type;\n    }\n\n    /**\n     * Set the type field for the Legend record.\n     *\n     * @param field_5_type\n     *        One of \n     *        TYPE_BOTTOM\n     *        TYPE_CORNER\n     *        TYPE_TOP\n     *        TYPE_RIGHT\n     *        TYPE_LEFT\n     *        TYPE_UNDOCKED\n     */\n    public void setType(byte field_5_type)\n    {\n        this.field_5_type = field_5_type;\n    }\n\n    /**\n     * Get the spacing field for the Legend record.\n     *\n     * @return  One of \n     *        SPACING_CLOSE\n     *        SPACING_MEDIUM\n     *        SPACING_OPEN\n     */\n    public byte getSpacing()\n    {\n        return field_6_spacing;\n    }\n\n    /**\n     * Set the spacing field for the Legend record.\n     *\n     * @param field_6_spacing\n     *        One of \n     *        SPACING_CLOSE\n     *        SPACING_MEDIUM\n     *        SPACING_OPEN\n     */\n    public void setSpacing(byte field_6_spacing)\n    {\n        this.field_6_spacing = field_6_spacing;\n    }\n\n    /**\n     * Get the options field for the Legend record.\n     */\n    public short getOptions()\n    {\n        return field_7_options;\n    }\n\n    /**\n     * Set the options field for the Legend record.\n     */\n    public void setOptions(short field_7_options)\n    {\n        this.field_7_options = field_7_options;\n    }\n\n    /**\n     * Sets the auto position field value.\n     * automatic positioning (1=docked)\n     */\n    public void setAutoPosition(boolean value)\n    {\n        field_7_options = autoPosition.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * automatic positioning (1=docked)\n     * @return  the auto position field value.\n     */\n    public boolean isAutoPosition()\n    {\n        return autoPosition.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the auto series field value.\n     * excel 5 only (true)\n     */\n    public void setAutoSeries(boolean value)\n    {\n        field_7_options = autoSeries.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * excel 5 only (true)\n     * @return  the auto series field value.\n     */\n    public boolean isAutoSeries()\n    {\n        return autoSeries.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the auto x positioning field value.\n     * position of legend on the x axis is automatic\n     */\n    public void setAutoXPositioning(boolean value)\n    {\n        field_7_options = autoXPositioning.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * position of legend on the x axis is automatic\n     * @return  the auto x positioning field value.\n     */\n    public boolean isAutoXPositioning()\n    {\n        return autoXPositioning.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the auto y positioning field value.\n     * position of legend on the y axis is automatic\n     */\n    public void setAutoYPositioning(boolean value)\n    {\n        field_7_options = autoYPositioning.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * position of legend on the y axis is automatic\n     * @return  the auto y positioning field value.\n     */\n    public boolean isAutoYPositioning()\n    {\n        return autoYPositioning.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the vertical field value.\n     * vertical or horizontal legend (1 or 0 respectively).  Always 0 if not automatic.\n     */\n    public void setVertical(boolean value)\n    {\n        field_7_options = vertical.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * vertical or horizontal legend (1 or 0 respectively).  Always 0 if not automatic.\n     * @return  the vertical field value.\n     */\n    public boolean isVertical()\n    {\n        return vertical.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the data table field value.\n     * 1 if chart contains data table\n     */\n    public void setDataTable(boolean value)\n    {\n        field_7_options = dataTable.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * 1 if chart contains data table\n     * @return  the data table field value.\n     */\n    public boolean isDataTable()\n    {\n        return dataTable.isSet(field_7_options);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Legend record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_xAxisUpperLeft         = LittleEndian.getInt(data, pos + 0x0 + offset);\n        field_2_yAxisUpperLeft         = LittleEndian.getInt(data, pos + 0x4 + offset);\n        field_3_xSize                  = LittleEndian.getInt(data, pos + 0x8 + offset);\n        field_4_ySize                  = LittleEndian.getInt(data, pos + 0xc + offset);\n        field_5_type                   = data[ pos + 0x10 + offset ];\n        field_6_spacing                = data[ pos + 0x11 + offset ];\n        field_7_options                = LittleEndian.getShort(data, pos + 0x12 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [5, 12], [8, 13], [9, 14], [10, 15], [11, 16], [1, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [18, 23], [6, 24], [7, 25], [19, 26], [20, 27], [21, 28], [22, 29], [23, 30], [24, 31], [25, 32], [26, 33], [27, 34], [28, 35], [29, 36], [31, 37], [32, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 5], [13, 8], [14, 9], [15, 10], [16, 11], [17, 1], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 18], [24, 6], [25, 7], [26, 19], [27, 20], [28, 21], [29, 22], [30, 23], [31, 24], [32, 25], [33, 26], [34, 27], [35, 28], [36, 29], [37, 31], [38, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[LEGEND]\\n\");\n        buffer.append(\"    .xAxisUpperLeft       = \")\n            .append(\"0x\").append(HexDump.toHex(  getXAxisUpperLeft ()))\n            .append(\" (\").append( getXAxisUpperLeft() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .yAxisUpperLeft       = \")\n            .append(\"0x\").append(HexDump.toHex(  getYAxisUpperLeft ()))\n            .append(\" (\").append( getYAxisUpperLeft() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .xSize                = \")\n            .append(\"0x\").append(HexDump.toHex(  getXSize ()))\n            .append(\" (\").append( getXSize() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .ySize                = \")\n            .append(\"0x\").append(HexDump.toHex(  getYSize ()))\n            .append(\" (\").append( getYSize() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .type                 = \")\n            .append(\"0x\").append(HexDump.toHex(  getType ()))\n            .append(\" (\").append( getType() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .spacing              = \")\n            .append(\"0x\").append(HexDump.toHex(  getSpacing ()))\n            .append(\" (\").append( getSpacing() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .options              = \")\n            .append(\"0x\").append(HexDump.toHex(  getOptions ()))\n            .append(\" (\").append( getOptions() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .autoPosition             = \").append(isAutoPosition()).append('\\n'); \n        buffer.append(\"         .autoSeries               = \").append(isAutoSeries()).append('\\n'); \n        buffer.append(\"         .autoXPositioning         = \").append(isAutoXPositioning()).append('\\n'); \n        buffer.append(\"         .autoYPositioning         = \").append(isAutoYPositioning()).append('\\n'); \n        buffer.append(\"         .vertical                 = \").append(isVertical()).append('\\n'); \n        buffer.append(\"         .dataTable                = \").append(isDataTable()).append('\\n'); \n\n        buffer.append(\"[/LEGEND]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [4, 26], [5, 27], [5, 28], [5, 29], [6, 30], [6, 31], [6, 32], [7, 33], [7, 34], [7, 35], [8, 36], [8, 37], [8, 38], [9, 39], [9, 40], [9, 41], [10, 42], [10, 43], [10, 44], [11, 45], [12, 46], [12, 47], [12, 48], [12, 49], [12, 50], [12, 51], [13, 52], [14, 53], [14, 54], [14, 55], [14, 56], [14, 57], [14, 58], [15, 59], [16, 60], [16, 61], [16, 62], [16, 63], [16, 64], [16, 65], [17, 66], [18, 67], [18, 68], [18, 69], [18, 70], [18, 71], [18, 72], [19, 73], [20, 74], [20, 75], [20, 76], [20, 77], [20, 78], [20, 79], [21, 80], [22, 81], [22, 82], [22, 83], [22, 84], [22, 85], [22, 86], [23, 87], [24, 88], [24, 89], [24, 90], [24, 91], [24, 92], [24, 93], [25, 94], [2, 95], [28, 96], [29, 97], [31, 98], [32, 99], [34, 100], [35, 101], [37, 102], [38, 103], [40, 104], [41, 105], [43, 106], [44, 107], [45, 108], [47, 109], [48, 110], [49, 111], [50, 112], [51, 113], [52, 114], [54, 115], [55, 116], [56, 117], [57, 118], [58, 119], [59, 120], [61, 121], [62, 122], [63, 123], [64, 124], [65, 125], [66, 126], [68, 127], [69, 128], [70, 129], [71, 130], [72, 131], [73, 132], [75, 133], [76, 134], [77, 135], [78, 136], [79, 137], [80, 138], [82, 139], [83, 140], [84, 141], [85, 142], [86, 143], [87, 144], [89, 145], [90, 146], [91, 147], [92, 148], [93, 149], [112, 150], [118, 151], [124, 152], [130, 153], [136, 154], [142, 155], [148, 156], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 4], [27, 5], [28, 5], [29, 5], [30, 6], [31, 6], [32, 6], [33, 7], [34, 7], [35, 7], [36, 8], [37, 8], [38, 8], [39, 9], [40, 9], [41, 9], [42, 10], [43, 10], [44, 10], [45, 11], [46, 12], [47, 12], [48, 12], [49, 12], [50, 12], [51, 12], [52, 13], [53, 14], [54, 14], [55, 14], [56, 14], [57, 14], [58, 14], [59, 15], [60, 16], [61, 16], [62, 16], [63, 16], [64, 16], [65, 16], [66, 17], [67, 18], [68, 18], [69, 18], [70, 18], [71, 18], [72, 18], [73, 19], [74, 20], [75, 20], [76, 20], [77, 20], [78, 20], [79, 20], [80, 21], [81, 22], [82, 22], [83, 22], [84, 22], [85, 22], [86, 22], [87, 23], [88, 24], [89, 24], [90, 24], [91, 24], [92, 24], [93, 24], [94, 25], [95, 2], [96, 28], [97, 29], [98, 31], [99, 32], [100, 34], [101, 35], [102, 37], [103, 38], [104, 40], [105, 41], [106, 43], [107, 44], [108, 45], [109, 47], [110, 48], [111, 49], [112, 50], [113, 51], [114, 52], [115, 54], [116, 55], [117, 56], [118, 57], [119, 58], [120, 59], [121, 61], [122, 62], [123, 63], [124, 64], [125, 65], [126, 66], [127, 68], [128, 69], [129, 70], [130, 71], [131, 72], [132, 73], [133, 75], [134, 76], [135, 77], [136, 78], [137, 79], [138, 80], [139, 82], [140, 83], [141, 84], [142, 85], [143, 86], [144, 87], [145, 89], [146, 90], [147, 91], [148, 92], [149, 93], [150, 112], [151, 118], [152, 124], [153, 130], [154, 136], [155, 142], [156, 148], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_xAxisUpperLeft);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_yAxisUpperLeft);\n        LittleEndian.putInt(data, 12 + offset + pos, field_3_xSize);\n        LittleEndian.putInt(data, 16 + offset + pos, field_4_ySize);\n        data[ 20 + offset + pos ] = field_5_type;\n        data[ 21 + offset + pos ] = field_6_spacing;\n        LittleEndian.putShort(data, 22 + offset + pos, field_7_options);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [6, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [14, 21], [2, 22], [15, 23], [16, 24], [17, 25], [18, 26], [19, 27], [13, 28], [20, 29], [21, 30], [23, 31], [7, 32], [8, 33], [24, 34], [25, 35], [26, 36], [27, 37], [28, 38], [28, 39], [32, 40], [33, 41], [40, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 6], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [21, 14], [22, 2], [23, 15], [24, 16], [25, 17], [26, 18], [27, 19], [28, 13], [29, 20], [30, 21], [31, 23], [32, 7], [33, 8], [34, 24], [35, 25], [36, 26], [37, 27], [38, 28], [39, 28], [40, 32], [41, 33], [42, 40], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 4 + 4 + 4 + 4 + 1 + 1 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [14, 15], [14, 16], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [15, 14], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        LegendRecord rec = new LegendRecord();\n    \n        rec.field_1_xAxisUpperLeft = field_1_xAxisUpperLeft;\n        rec.field_2_yAxisUpperLeft = field_2_yAxisUpperLeft;\n        rec.field_3_xSize = field_3_xSize;\n        rec.field_4_ySize = field_4_ySize;\n        rec.field_5_type = field_5_type;\n        rec.field_6_spacing = field_6_spacing;\n        rec.field_7_options = field_7_options;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getXAxisUpperLeft", "code": "    public int getXAxisUpperLeft()\n    {\n        return field_1_xAxisUpperLeft;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXAxisUpperLeft", "code": "    public void setXAxisUpperLeft(int field_1_xAxisUpperLeft)\n    {\n        this.field_1_xAxisUpperLeft = field_1_xAxisUpperLeft;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getYAxisUpperLeft", "code": "    public int getYAxisUpperLeft()\n    {\n        return field_2_yAxisUpperLeft;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setYAxisUpperLeft", "code": "    public void setYAxisUpperLeft(int field_2_yAxisUpperLeft)\n    {\n        this.field_2_yAxisUpperLeft = field_2_yAxisUpperLeft;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXSize", "code": "    public int getXSize()\n    {\n        return field_3_xSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXSize", "code": "    public void setXSize(int field_3_xSize)\n    {\n        this.field_3_xSize = field_3_xSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getYSize", "code": "    public int getYSize()\n    {\n        return field_4_ySize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setYSize", "code": "    public void setYSize(int field_4_ySize)\n    {\n        this.field_4_ySize = field_4_ySize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "    public byte getType()\n    {\n        return field_5_type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setType", "code": "    public void setType(byte field_5_type)\n    {\n        this.field_5_type = field_5_type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSpacing", "code": "    public byte getSpacing()\n    {\n        return field_6_spacing;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSpacing", "code": "    public void setSpacing(byte field_6_spacing)\n    {\n        this.field_6_spacing = field_6_spacing;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptions", "code": "    public short getOptions()\n    {\n        return field_7_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOptions", "code": "    public void setOptions(short field_7_options)\n    {\n        this.field_7_options = field_7_options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoPosition", "code": "    public void setAutoPosition(boolean value)\n    {\n        field_7_options = autoPosition.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoPosition", "code": "    public boolean isAutoPosition()\n    {\n        return autoPosition.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoSeries", "code": "    public void setAutoSeries(boolean value)\n    {\n        field_7_options = autoSeries.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoSeries", "code": "    public boolean isAutoSeries()\n    {\n        return autoSeries.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoXPositioning", "code": "    public void setAutoXPositioning(boolean value)\n    {\n        field_7_options = autoXPositioning.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoXPositioning", "code": "    public boolean isAutoXPositioning()\n    {\n        return autoXPositioning.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoYPositioning", "code": "    public void setAutoYPositioning(boolean value)\n    {\n        field_7_options = autoYPositioning.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoYPositioning", "code": "    public boolean isAutoYPositioning()\n    {\n        return autoYPositioning.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVertical", "code": "    public void setVertical(boolean value)\n    {\n        field_7_options = vertical.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isVertical", "code": "    public boolean isVertical()\n    {\n        return vertical.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDataTable", "code": "    public void setDataTable(boolean value)\n    {\n        field_7_options = dataTable.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDataTable", "code": "    public boolean isDataTable()\n    {\n        return dataTable.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LegendRecord", "code": "    public LegendRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "LegendRecord", "code": "    public LegendRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LegendRecord", "code": "    public LegendRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.6-7434", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/res/XPATHErrorResources_ca.java", "language": "java", "name": "org.apache.xpath.res.XPATHErrorResources_ca", "code": "public class XPATHErrorResources_ca extends ListResourceBundle\n{\n\n/*\n * General notes to translators:\n *\n * This file contains error and warning messages related to XPath Error\n * Handling.\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n *  8) The context node is the node in the document with respect to which an\n *     XPath expression is being evaluated.\n *\n *  9) An iterator is an object that traverses nodes in the tree, one at a time.\n *\n *  10) NCName is an XML term used to describe a name that does not contain a\n *     colon (a \"no-colon name\").\n *\n *  11) QName is an XML term meaning \"qualified name\".\n */\n\n  /** Field MAX_CODE          */\n\n  /** Field MAX_WARNING          */\n\n  /** Field MAX_OTHERS          */\n  public static final int MAX_OTHERS = 20;\n\n  /** Field MAX_MESSAGES          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * static variables\n   */\n  public static final String ERROR0000 = \"ERROR0000\";\n  public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH =\n         \"ER_CURRENT_NOT_ALLOWED_IN_MATCH\";\n  public static final String ER_CURRENT_TAKES_NO_ARGS =\n         \"ER_CURRENT_TAKES_NO_ARGS\";\n  public static final String ER_DOCUMENT_REPLACED = \"ER_DOCUMENT_REPLACED\";\n  public static final String ER_CONTEXT_HAS_NO_OWNERDOC =\n         \"ER_CONTEXT_HAS_NO_OWNERDOC\";\n  public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS =\n         \"ER_LOCALNAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS =\n         \"ER_NAMESPACEURI_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS =\n         \"ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NUMBER_HAS_TOO_MANY_ARGS =\n         \"ER_NUMBER_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAME_HAS_TOO_MANY_ARGS =\n         \"ER_NAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRING_HAS_TOO_MANY_ARGS =\n         \"ER_STRING_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS =\n         \"ER_STRINGLENGTH_HAS_TOO_MANY_ARGS\";\n  public static final String ER_TRANSLATE_TAKES_3_ARGS =\n         \"ER_TRANSLATE_TAKES_3_ARGS\";\n  public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG =\n         \"ER_UNPARSEDENTITYURI_TAKES_1_ARG\";\n  public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED =\n         \"ER_NAMESPACEAXIS_NOT_IMPLEMENTED\";\n  public static final String ER_UNKNOWN_AXIS = \"ER_UNKNOWN_AXIS\";\n  public static final String ER_UNKNOWN_MATCH_OPERATION =\n         \"ER_UNKNOWN_MATCH_OPERATION\";\n  public static final String ER_INCORRECT_ARG_LENGTH =\"ER_INCORRECT_ARG_LENGTH\";\n  public static final String ER_CANT_CONVERT_TO_NUMBER =\n         \"ER_CANT_CONVERT_TO_NUMBER\";\n  public static final String ER_CANT_CONVERT_TO_NODELIST =\n         \"ER_CANT_CONVERT_TO_NODELIST\";\n  public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST =\n         \"ER_CANT_CONVERT_TO_MUTABLENODELIST\";\n  public static final String ER_CANT_CONVERT_TO_TYPE =\"ER_CANT_CONVERT_TO_TYPE\";\n  public static final String ER_EXPECTED_MATCH_PATTERN =\n         \"ER_EXPECTED_MATCH_PATTERN\";\n  public static final String ER_COULDNOT_GET_VAR_NAMED =\n         \"ER_COULDNOT_GET_VAR_NAMED\";\n  public static final String ER_UNKNOWN_OPCODE = \"ER_UNKNOWN_OPCODE\";\n  public static final String ER_EXTRA_ILLEGAL_TOKENS =\"ER_EXTRA_ILLEGAL_TOKENS\";\n  public static final String ER_EXPECTED_DOUBLE_QUOTE =\n         \"ER_EXPECTED_DOUBLE_QUOTE\";\n  public static final String ER_EXPECTED_SINGLE_QUOTE =\n         \"ER_EXPECTED_SINGLE_QUOTE\";\n  public static final String ER_EMPTY_EXPRESSION = \"ER_EMPTY_EXPRESSION\";\n  public static final String ER_EXPECTED_BUT_FOUND = \"ER_EXPECTED_BUT_FOUND\";\n  public static final String ER_INCORRECT_PROGRAMMER_ASSERTION =\n         \"ER_INCORRECT_PROGRAMMER_ASSERTION\";\n  public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL =\n         \"ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL\";\n  public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG\";\n  public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG\";\n  public static final String ER_PREDICATE_ILLEGAL_SYNTAX =\n         \"ER_PREDICATE_ILLEGAL_SYNTAX\";\n  public static final String ER_ILLEGAL_AXIS_NAME = \"ER_ILLEGAL_AXIS_NAME\";\n  public static final String ER_UNKNOWN_NODETYPE = \"ER_UNKNOWN_NODETYPE\";\n  public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED =\n         \"ER_PATTERN_LITERAL_NEEDS_BE_QUOTED\";\n  public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER =\n         \"ER_COULDNOT_BE_FORMATTED_TO_NUMBER\";\n  public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON =\n         \"ER_COULDNOT_CREATE_XMLPROCESSORLIAISON\";\n  public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP =\n         \"ER_DIDNOT_FIND_XPATH_SELECT_EXP\";\n  public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH =\n         \"ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH\";\n  public static final String ER_ERROR_OCCURED = \"ER_ERROR_OCCURED\";\n  public static final String ER_ILLEGAL_VARIABLE_REFERENCE =\n         \"ER_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String ER_AXES_NOT_ALLOWED = \"ER_AXES_NOT_ALLOWED\";\n  public static final String ER_KEY_HAS_TOO_MANY_ARGS =\n         \"ER_KEY_HAS_TOO_MANY_ARGS\";\n  public static final String ER_COUNT_TAKES_1_ARG = \"ER_COUNT_TAKES_1_ARG\";\n  public static final String ER_COULDNOT_FIND_FUNCTION =\n         \"ER_COULDNOT_FIND_FUNCTION\";\n  public static final String ER_UNSUPPORTED_ENCODING =\"ER_UNSUPPORTED_ENCODING\";\n  public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING =\n         \"ER_PROBLEM_IN_DTM_NEXTSIBLING\";\n  public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL =\n         \"ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL\";\n  public static final String ER_SETDOMFACTORY_NOT_SUPPORTED =\n         \"ER_SETDOMFACTORY_NOT_SUPPORTED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_PARSE_NOT_SUPPORTED = \"ER_PARSE_NOT_SUPPORTED\";\n  public static final String ER_SAX_API_NOT_HANDLED = \"ER_SAX_API_NOT_HANDLED\";\npublic static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =\n         \"ER_IGNORABLE_WHITESPACE_NOT_HANDLED\";\n  public static final String ER_DTM_CANNOT_HANDLE_NODES =\n         \"ER_DTM_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_CANNOT_HANDLE_NODES =\n         \"ER_XERCES_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_PARSE_ERROR_DETAILS =\n         \"ER_XERCES_PARSE_ERROR_DETAILS\";\n  public static final String ER_XERCES_PARSE_ERROR = \"ER_XERCES_PARSE_ERROR\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_CANNOT_CREATE_URL = \"ER_CANNOT_CREATE_URL\";\n  public static final String ER_XPATH_READOBJECT = \"ER_XPATH_READOBJECT\";\n public static final String ER_FUNCTION_TOKEN_NOT_FOUND =\n         \"ER_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String ER_CANNOT_DEAL_XPATH_TYPE =\n         \"ER_CANNOT_DEAL_XPATH_TYPE\";\n  public static final String ER_NODESET_NOT_MUTABLE = \"ER_NODESET_NOT_MUTABLE\";\n  public static final String ER_NODESETDTM_NOT_MUTABLE =\n         \"ER_NODESETDTM_NOT_MUTABLE\";\n   /**  Variable not resolvable:   */\n  public static final String ER_VAR_NOT_RESOLVABLE = \"ER_VAR_NOT_RESOLVABLE\";\n   /** Null error handler  */\n public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n   /**  Programmer's assertion: unknown opcode  */\n  public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE =\n         \"ER_PROG_ASSERT_UNKNOWN_OPCODE\";\n   /**  0 or 1   */\n  public static final String ER_ZERO_OR_ONE = \"ER_ZERO_OR_ONE\";\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =\n         \"ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = \"ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  fsb() not supported for XStringForChars   */\n  public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS =\n         \"ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS\";\n   /**  Could not find variable with the name of   */\n public static final String ER_COULD_NOT_FIND_VAR = \"ER_COULD_NOT_FIND_VAR\";\n   /**  XStringForChars can not take a string for an argument   */\n public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING =\n         \"ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING\";\n   /**  The FastStringBuffer argument can not be null   */\n public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL =\n         \"ER_FASTSTRINGBUFFER_CANNOT_BE_NULL\";\n   /**  2 or 3   */\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n   /** Variable accessed before it is bound! */\n  public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND =\n         \"ER_VARIABLE_ACCESSED_BEFORE_BIND\";\n   /** XStringForFSB can not take a string for an argument! */\n public static final String ER_FSB_CANNOT_TAKE_STRING =\n         \"ER_FSB_CANNOT_TAKE_STRING\";\n   /** Error! Setting the root of a walker to null! */\n  public static final String ER_SETTING_WALKER_ROOT_TO_NULL =\n         \"ER_SETTING_WALKER_ROOT_TO_NULL\";\n   /** This NodeSetDTM can not iterate to a previous node! */\n  public static final String ER_NODESETDTM_CANNOT_ITERATE =\n         \"ER_NODESETDTM_CANNOT_ITERATE\";\n  /** This NodeSet can not iterate to a previous node! */\n public static final String ER_NODESET_CANNOT_ITERATE =\n         \"ER_NODESET_CANNOT_ITERATE\";\n  /** This NodeSetDTM can not do indexing or counting functions! */\n  public static final String ER_NODESETDTM_CANNOT_INDEX =\n         \"ER_NODESETDTM_CANNOT_INDEX\";\n  /** This NodeSet can not do indexing or counting functions! */\n  public static final String ER_NODESET_CANNOT_INDEX =\n         \"ER_NODESET_CANNOT_INDEX\";\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n  public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE =\n         \"ER_CANNOT_CALL_SETSHOULDCACHENODE\";\n  /** {0} only allows {1} arguments */\n public static final String ER_ONLY_ALLOWS = \"ER_ONLY_ALLOWS\";\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n  public static final String ER_UNKNOWN_STEP = \"ER_UNKNOWN_STEP\";\n  /** Problem with RelativeLocationPath */\n  public static final String ER_EXPECTED_REL_LOC_PATH =\n         \"ER_EXPECTED_REL_LOC_PATH\";\n  /** Problem with LocationPath */\n  public static final String ER_EXPECTED_LOC_PATH = \"ER_EXPECTED_LOC_PATH\";\n  /** Problem with Step */\n  public static final String ER_EXPECTED_LOC_STEP = \"ER_EXPECTED_LOC_STEP\";\n  /** Problem with NodeTest */\n  public static final String ER_EXPECTED_NODE_TEST = \"ER_EXPECTED_NODE_TEST\";\n  /** Expected step pattern */\n  public static final String ER_EXPECTED_STEP_PATTERN =\n        \"ER_EXPECTED_STEP_PATTERN\";\n  /** Expected relative path pattern */\n  public static final String ER_EXPECTED_REL_PATH_PATTERN =\n         \"ER_EXPECTED_REL_PATH_PATTERN\";\n  /** localname in QNAME should be a valid NCName */\n  /** prefix in QNAME should be a valid NCName */\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n  public static final String ER_CANT_CONVERT_TO_BOOLEAN =\n         \"ER_CANT_CONVERT_TO_BOOLEAN\";\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n  public static final String ER_CANT_CONVERT_TO_SINGLENODE =\n         \"ER_CANT_CONVERT_TO_SINGLENODE\";\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n  public static final String ER_CANT_GET_SNAPSHOT_LENGTH =\n         \"ER_CANT_GET_SNAPSHOT_LENGTH\";\n  /** Field ER_NON_ITERATOR_TYPE                */\n  public static final String ER_NON_ITERATOR_TYPE = \"ER_NON_ITERATOR_TYPE\";\n  /** Field ER_DOC_MUTATED                      */\n  public static final String ER_DOC_MUTATED = \"ER_DOC_MUTATED\";\n  public static final String ER_INVALID_XPATH_TYPE = \"ER_INVALID_XPATH_TYPE\";\n  public static final String ER_EMPTY_XPATH_RESULT = \"ER_EMPTY_XPATH_RESULT\";\n  public static final String ER_INCOMPATIBLE_TYPES = \"ER_INCOMPATIBLE_TYPES\";\n  public static final String ER_NULL_RESOLVER = \"ER_NULL_RESOLVER\";\n  public static final String ER_CANT_CONVERT_TO_STRING =\n         \"ER_CANT_CONVERT_TO_STRING\";\n  public static final String ER_NON_SNAPSHOT_TYPE = \"ER_NON_SNAPSHOT_TYPE\";\n  public static final String ER_WRONG_DOCUMENT = \"ER_WRONG_DOCUMENT\";\n  /* Note to translators:  The XPath expression cannot be evaluated with respect\n   * to this type of node.\n   */\n  /** Field ER_WRONG_NODETYPE                    */\n  public static final String ER_WRONG_NODETYPE = \"ER_WRONG_NODETYPE\";\n  public static final String ER_XPATH_ERROR = \"ER_XPATH_ERROR\";\n\n  public static final String WG_LOCALE_NAME_NOT_HANDLED =\n         \"WG_LOCALE_NAME_NOT_HANDLED\";\n  public static final String WG_PROPERTY_NOT_SUPPORTED =\n         \"WG_PROPERTY_NOT_SUPPORTED\";\n  public static final String WG_DONT_DO_ANYTHING_WITH_NS =\n         \"WG_DONT_DO_ANYTHING_WITH_NS\";\n  public static final String WG_SECURITY_EXCEPTION = \"WG_SECURITY_EXCEPTION\";\n  public static final String WG_QUO_NO_LONGER_DEFINED =\n         \"WG_QUO_NO_LONGER_DEFINED\";\n  public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST =\n         \"WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST\";\n  public static final String WG_FUNCTION_TOKEN_NOT_FOUND =\n         \"WG_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String WG_COULDNOT_FIND_FUNCTION =\n         \"WG_COULDNOT_FIND_FUNCTION\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED =\n         \"WG_EXPAND_ENTITIES_NOT_SUPPORTED\";\n  public static final String WG_ILLEGAL_VARIABLE_REFERENCE =\n         \"WG_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String WG_UNSUPPORTED_ENCODING =\"WG_UNSUPPORTED_ENCODING\";\n\n\n\n  public static final Object[][] contents = {\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"La funci\\u00f3 current() no \\u00e9s permesa en un patr\\u00f3 de coincid\\u00e8ncia. \" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"La funci\\u00f3 current() no accepta arguments. \" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"La implementaci\\u00f3 de la funci\\u00f3 document() s'ha substitu\\u00eft per org.apache.xalan.xslt.FuncDocument. \"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"El context no t\\u00e9 un document de propietari. \"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"local-name() t\\u00e9 massa arguments. \"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"namespace-uri() t\\u00e9 massa arguments. \"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"normalize-space() t\\u00e9 massa arguments. \"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"number() t\\u00e9 massa arguments. \"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"name() t\\u00e9 massa arguments. \"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"string() t\\u00e9 massa arguments. \"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"string-length() t\\u00e9 massa arguments. \"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"La funci\\u00f3 translate() t\\u00e9 tres arguments. \"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"La funci\\u00f3 unparsed-entity-uri ha de tenir un argument. \"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"L'eix de l'espai de noms encara no s'ha implementat. \"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"Eix desconegut: {0} \"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"Operaci\\u00f3 de coincid\\u00e8ncia desconeguda. \"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"La longitud de l'argument de la prova de node processing-instruction() no \\u00e9s correcta. \"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"No es pot convertir {0} en un n\\u00famero. \"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"No es pot convertir {0} en una NodeList. \"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"No es pot convertir {0} en un NodeSetDTM. \"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"No es pot convertir {0} en un tipus #{1} \"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"El patr\\u00f3 de coincid\\u00e8ncia de getMatchScore \\u00e9s l'esperat. \"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"No s''ha pogut obtenir la variable {0}. \"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"ERROR. Codi op desconegut: {0} \"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"Senyals addicionals no permesos: {0} \"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"Les cometes del literal s\\u00f3n incorrectes. Hi ha d'haver cometes dobles. \"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"Les cometes del literal s\\u00f3n incorrectes. Hi ha d'haver una cometa simple. \"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"Expressi\\u00f3 buida. \"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"S''esperava {0}, per\\u00f2 s''ha detectat {1} \"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"L''afirmaci\\u00f3 del programador \\u00e9s incorrecta. - {0} \"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"L'argument boolean(...) ja no \\u00e9s opcional amb l'esborrany d'XPath 19990709. \"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"S'ha trobat ',' per\\u00f2 no hi havia cap argument abans. \"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"S'ha trobat ',' per\\u00f2 no hi havia cap argument darrere. \"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"'..[predicate]' o '.[predicate]' no \\u00e9s una sintaxi permesa. En comptes d'aix\\u00f2, utilitzeu 'self::node()[predicate]'. \"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"Nom d''eix no perm\\u00e8s: {0} \"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"Tipus de node desconegut: {0} \"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"El literal de patr\\u00f3 ({0}) ha d''anar entre cometes. \"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"{0} no s''ha pogut formatar com a n\\u00famero. \"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"No s''ha pogut crear la relaci\\u00f3 XML TransformerFactory: {0} \"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"Error. No s'ha trobat l'expressi\\u00f3 select d'xpath (-select). \"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"ERROR. No s'ha trobat ENDOP despr\\u00e9s d'OP_LOCATIONPATH. \"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"S'ha produ\\u00eft un error. \"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"S''ha donat VariableReference per a una variable fora de context o sense definici\\u00f3. Nom = {0} \"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"Nom\\u00e9s es permeten els eixos subordinat:: i atribut:: en els patrons de coincid\\u00e8ncia. Eixos incorrectes = {0} \"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"key() t\\u00e9 un nombre incorrecte d'arguments. \"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"La funci\\u00f3 count ha de tenir un argument. \"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"No s''ha pogut trobar la funci\\u00f3: {0} \"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"Codificaci\\u00f3 sense suport: {0} \"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"S'ha produ\\u00eft un error en el DTM de getNextSibling. S'intentar\\u00e0 solucionar. \"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"Error del programador: no es pot escriure a EmptyNodeList. \"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"XPathContext no d\\u00f3na suport a setDOMFactory. \"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"El prefix s''ha de resoldre en un espai de noms: {0} \"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"L''an\\u00e0lisi (origen InputSource) no t\\u00e9 suport a XPathContext. No es pot obrir {0}. \"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"Car\\u00e0cters SAX API (char ch[]... no es poden gestionar pel DTM. \"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"ignorableWhitespace(char ch[]... no es poden gestionar pel DTM. \"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison no pot gestionar nodes del tipus {0}. \"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper no pot gestionar nodes del tipus {0}. \"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"Error de DOM2Helper.parse: ID del sistema - {0} l\\u00ednia - {1} \"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"Error de DOM2Helper.parse \"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"S''ha detectat un suplent UTF-16 no v\\u00e0lid: {0} ? \"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"Error d'E/S \"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"No es pot crear la url de: {0} \"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"En XPath.readObject: {0} \"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"No s'ha trobat el senyal de funci\\u00f3. \"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"No s''ha pogut tractar amb el tipus d''XPath: {0} \"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"Aquest NodeSet no \\u00e9s mutable. \"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"Aquest NodeSetDTM no \\u00e9s mutable. \"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"No es pot resoldre la variable: {0} \"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"Manejador d'error nul \"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"Afirmaci\\u00f3 del programador: opcode desconegut: {0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 o 1 \"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"rtf() no t\\u00e9 suport de XRTreeFragSelectWrapper \"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"asNodeIterator() no t\\u00e9 suport de XRTreeFragSelectWrapper \"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"fsb() no t\\u00e9 suport de XStringForChars \"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"No s''ha trobat la variable amb el nom de {0} \"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"XStringForChars no pot agafar una cadena com a argument. \"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"L'argument FastStringBuffer no pot ser nul.\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 o 3 \"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"S'ha accedit a la variable abans que estigu\\u00e9s vinculada. \"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"XStringForFSB no pot agafar una cadena com a argument. \"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n Error. S'est\\u00e0 establint l'arrel d'un itinerant en nul. \"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"Aquest NodeSetDTM no es pot iterar en un node previ \"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"Aquest NodeSet no es pot iterar en un node previ \"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"Aquest NodeSetDTM no pot indexar ni efectuar funcions de recompte \"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"Aquest NodeSet no pot indexar ni efectuar funcions de recompte \"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"No es pot cridar setShouldCacheNodes despr\\u00e9s que s'hagi cridat nextNode \"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"{0} nom\\u00e9s permet {1} arguments \"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"Afirmaci\\u00f3 del programador a getNextStepPos: stepType desconegut: {0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"S''esperava una via d''acc\\u00e9s d''ubicaci\\u00f3, per\\u00f2 s''ha trobat el senyal seg\\u00fcent\\u003a {0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"S'esperava una prova de node que coincid\\u00eds amb NCName:* o QName. \"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"S'esperava un patr\\u00f3 de pas per\\u00f2 s'ha trobat '/'. \"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"S'esperava un patr\\u00f3 de via d'acc\\u00e9s relativa. \"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"No es pot convertir {0} en boole\\u00e0. \"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"No es pot convertir {0} en un node \\u00fanic. Aquest captador fa refer\\u00e8ncia als tipus ANY_UNORDERED_NODE_TYPE i FIRST_ORDERED_NODE_TYPE. \"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"No es pot obtenir la longitud de la instant\\u00e0nia del tipus: {0}. Aquest captador fa refer\\u00e8ncia als tipus UNORDERED_NODE_SNAPSHOT_TYPE i ORDERED_NODE_SNAPSHOT_TYPE. \"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"No es pot iterar en un tipus no iterador: {0} \"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"El document s'ha modificat des que es van produir els resultats. L'iterador no \\u00e9s v\\u00e0lid. \"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"L''argument de tipus XPath no \\u00e9s v\\u00e0lid: {0} \"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"L'objecte de resultats XPath est\\u00e0 buit. \"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"El tipus retornat {0} no es pot encaixar en el tipus especificat {1} \"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"No es pot resoldre el prefix amb un solucionador de prefix nul. \"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"No es pot convertir {0} en cadena. \"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"No es pot cridar snapshotItem en el tipus: {0}. Aquest m\\u00e8tode fa refer\\u00e8ncia als tipus UNORDERED_NODE_SNAPSHOT_TYPE i ORDERED_NODE_SNAPSHOT_TYPE. \"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"El node de context no pertany al document vinculat a aquest XPathEvaluator. \"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"El tipus de node de context no t\\u00e9 suport. \"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"S'ha produ\\u00eft un error desconegut a XPath.\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"No s'ha gestionat encara el nom d'entorn nacional en la funci\\u00f3 format-number. \"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"La propietat XSL no t\\u00e9 suport: {0} \"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"No feu res ara mateix amb l''espai de noms {0} de la propietat: {1} \"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"S''ha produ\\u00eft SecurityException en intentar accedir a la propietat de sistema XSL: {0} \"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"Sintaxi antiga: quo(...) ja no est\\u00e0 definit a XPath. \"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"XPath necessita un objecte dedu\\u00eft per implementar nodeTest. \"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"No s'ha trobat el senyal de funci\\u00f3. \"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"No s''ha pogut trobar la funci\\u00f3: {0} \"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"No es pot crear la URL de: {0} \"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"L'opci\\u00f3 -E no t\\u00e9 suport a l'analitzador de DTM \"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"S''ha donat VariableReference per a una variable fora de context o sense definici\\u00f3. Nom = {0} \"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"Codificaci\\u00f3 sense suport: {0} \"},\n\n\n\n  { \"ui_language\", \"ca\"},\n  { \"help_language\", \"ca\"},\n  { \"language\", \"ca\"},\n  { \"BAD_CODE\", \"El par\\u00e0metre de createMessage estava fora dels l\\u00edmits. \"},\n  { \"FORMAT_FAILED\", \"S'ha generat una excepci\\u00f3 durant la crida messageFormat. \"},\n  { \"version\", \">>>>>>> Versi\\u00f3 Xalan \"},\n  { \"version2\", \"<<<<<<< \"},\n  { \"yes\", \"s\\u00ed\"},\n  { \"line\", \"L\\u00ednia n\\u00fam. \"},\n  { \"column\", \"Columna n\\u00fam. \"},\n  { \"xsldone\", \"XSLProcessor: fet \"},\n  { \"xpath_option\", \"Opcions d'xpath: \"},\n  { \"optionIN\", \"[-in inputXMLURL] \"},\n  { \"optionSelect\", \"[-select expressi\\u00f3 xpath] \"},\n  { \"optionMatch\", \"[-match patr\\u00f3 coincid\\u00e8ncia (per a diagn\\u00f2stics de coincid\\u00e8ncia)] \"},\n  { \"optionAnyExpr\", \"O nom\\u00e9s una expressi\\u00f3 xpath far\\u00e0 un buidatge de diagn\\u00f2stic. \"},\n  { \"noParsermsg1\", \"El proc\\u00e9s XSL no ha estat correcte. \"},\n  { \"noParsermsg2\", \"** No s'ha trobat l'analitzador ** \"},\n  { \"noParsermsg3\", \"Comproveu la vostra classpath. \"},\n  { \"noParsermsg4\", \"Si no teniu XML Parser for Java d'IBM, el podeu baixar d' \"},\n  { \"gtone\", \">1 \" },\n  { \"zero\", \"0 \" },\n  { \"one\", \"1 \" },\n  { \"two\" , \"2 \" },\n  { \"three\", \"3 \" }\n\n  };\n\n\n\n  /** Field BAD_CODE          */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** Field FORMAT_FAILED          */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** Field ERROR_RESOURCES          */\n  public static final String ERROR_RESOURCES =\n    \"org.apache.xpath.res.XPATHErrorResources\";\n\n  /** Field ERROR_STRING          */\n  public static final String ERROR_STRING = \"#error\";\n\n  /** Field ERROR_HEADER          */\n  public static final String ERROR_HEADER = \"Error: \";\n\n  /** Field WARNING_HEADER          */\n  public static final String WARNING_HEADER = \"Av\\u00eds: \";\n\n  /** Field XSL_HEADER          */\n  public static final String XSL_HEADER = \"XSL \";\n\n  /** Field XML_HEADER          */\n  public static final String XML_HEADER = \"XML \";\n\n  /** Field QUERY_HEADER          */\n  public static final String QUERY_HEADER = \"PATTERN \";\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   * Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   * of ResourceBundle.getBundle().\n   *\n   * @param res the name of the resource to load.\n   * @param locale the locale to prefer when searching for the bundle\n   *\n   * @param className Name of local-specific subclass.\n   * @return the ResourceBundle\n   * @throws MissingResourceException\n   */\n  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"ca\", \"ES\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"ca\", \"ES\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "camel-1.0-1572", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/xmpp/XmppConsumer.java", "language": "java", "name": "org.apache.camel.component.xmpp.XmppConsumer", "code": "public class XmppConsumer extends DefaultConsumer<XmppExchange> implements PacketListener {\n    private static final transient Log log = LogFactory.getLog(XmppConsumer.class);\n    private final XmppEndpoint endpoint;\n\n    public XmppConsumer(XmppEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        endpoint.getConnection().addPacketListener(this, endpoint.getFilter());\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        endpoint.getConnection().removePacketListener(this);\n        super.doStop();\n    }\n\n    public void processPacket(Packet packet) {\n\n        if (packet instanceof Message) {\n            Message message = (Message) packet;\n            if (log.isDebugEnabled()) {\n                log.debug(\"<<<< message: \" + message.getBody());\n            }\n            XmppExchange exchange = endpoint.createExchange(message);\n            try {\n\t\t\t\tgetProcessor().process(exchange);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n        }\n        else if (packet instanceof RosterPacket) {\n            RosterPacket rosterPacket = (RosterPacket) packet;\n            if (log.isDebugEnabled()) {\n                log.debug(\"Roster packet with : \" + rosterPacket.getRosterItemCount() + \" item(s)\");\n                Iterator rosterItems = rosterPacket.getRosterItems();\n                while (rosterItems.hasNext()) {\n                    Object item = rosterItems.next();\n                    log.debug(\"Roster item: \" + item);\n                }\n            }\n        }\n        else {\n            if (log.isDebugEnabled()) {\n                log.debug(\"<<<< ignored packet: \" + packet);", "functions": [{"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        endpoint.getConnection().addPacketListener(this, endpoint.getFilter());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        endpoint.getConnection().removePacketListener(this);\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "processPacket", "code": "    public void processPacket(Packet packet) {\n\n        if (packet instanceof Message) {\n            Message message = (Message) packet;\n            if (log.isDebugEnabled()) {\n                log.debug(\"<<<< message: \" + message.getBody());\n            }\n            XmppExchange exchange = endpoint.createExchange(message);\n            try {\n\t\t\t\tgetProcessor().process(exchange);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n        }\n        else if (packet instanceof RosterPacket) {\n            RosterPacket rosterPacket = (RosterPacket) packet;\n            if (log.isDebugEnabled()) {\n                log.debug(\"Roster packet with : \" + rosterPacket.getRosterItemCount() + \" item(s)\");\n                Iterator rosterItems = rosterPacket.getRosterItems();\n                while (rosterItems.hasNext()) {\n                    Object item = rosterItems.next();\n                    log.debug(\"Roster item: \" + item);\n                }\n            }\n        }\n        else {\n            if (log.isDebugEnabled()) {\n                log.debug(\"<<<< ignored packet: \" + packet);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [3, 12], [6, 13], [8, 14], [10, 15], [11, 16], [6, 17], [7, 18], [11, 19], [11, 20], [13, 21], [17, 22], [8, 23], [10, 24], [19, 25], [11, 26], [23, 27], [24, 28], [19, 29], [20, 30], [26, 31], [27, 32], [27, 33], [28, 34], [19, 35], [31, 36], [31, 37], [35, 38], [29, 39], [37, 40], [37, 41], [38, 42], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 3], [13, 6], [14, 8], [15, 10], [16, 11], [17, 6], [18, 7], [19, 11], [20, 11], [21, 13], [22, 17], [23, 8], [24, 10], [25, 19], [26, 11], [27, 23], [28, 24], [29, 19], [30, 20], [31, 26], [32, 27], [33, 27], [34, 28], [35, 19], [36, 31], [37, 31], [38, 35], [39, 29], [40, 37], [41, 37], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "XmppConsumer", "code": "    public XmppConsumer(XmppEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.4-2485", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/CamelExchangeException.java", "language": "java", "name": "org.apache.camel.CamelExchangeException", "code": "public class CamelExchangeException extends CamelException {\n    private static final long serialVersionUID = -8721487431101572630L;\n    private final Exchange exchange;\n\n    public CamelExchangeException(String message, Exchange exchange) {\n        super(createMessage(message, exchange));\n        this.exchange = exchange;\n    }\n\n    public CamelExchangeException(String message, Exchange exchange, Throwable cause) {\n        super(createMessage(message, exchange), cause);\n        this.exchange = exchange;\n    }\n\n    /**\n     * Returns the exchange which caused the exception\n     */\n    public Exchange getExchange() {\n        return exchange;\n    }\n\n    protected static String createMessage(String message, Exchange exchange) {\n        return message + \" on the exchange: \" + exchange;", "functions": [{"function_name": "getExchange", "code": "    public Exchange getExchange() {\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createMessage", "code": "    protected static String createMessage(String message, Exchange exchange) {\n        return message + \" on the exchange: \" + exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "CamelExchangeException", "code": "    public CamelExchangeException(String message, Exchange exchange) {\n        super(createMessage(message, exchange));\n        this.exchange = exchange;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CamelExchangeException", "code": "    public CamelExchangeException(String message, Exchange exchange, Throwable cause) {\n        super(createMessage(message, exchange), cause);\n        this.exchange = exchange;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-4.3-4758", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/org/objectweb/asm/CodeVisitor.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.org.objectweb.asm.CodeVisitor", "code": "public interface CodeVisitor {\n\n  /**\n   * Visits a zero operand instruction.\n   *\n   * @param opcode the opcode of the instruction to be visited. This opcode is\n   *      either NOP, ACONST_NULL, ICONST_M1, ICONST_0, ICONST_1, ICONST_2,\n   *      ICONST_3, ICONST_4, ICONST_5, LCONST_0, LCONST_1, FCONST_0, FCONST_1,\n   *      FCONST_2, DCONST_0, DCONST_1,\n   *\n   *      IALOAD, LALOAD, FALOAD, DALOAD, AALOAD, BALOAD, CALOAD, SALOAD,\n   *      IASTORE, LASTORE, FASTORE, DASTORE, AASTORE, BASTORE, CASTORE,\n   *      SASTORE,\n   *\n   *      POP, POP2, DUP, DUP_X1, DUP_X2, DUP2, DUP2_X1, DUP2_X2, SWAP,\n   *\n   *      IADD, LADD, FADD, DADD, ISUB, LSUB, FSUB, DSUB, IMUL, LMUL, FMUL,\n   *      DMUL, IDIV, LDIV, FDIV, DDIV, IREM, LREM, FREM, DREM, INEG, LNEG,\n   *      FNEG, DNEG, ISHL, LSHL, ISHR, LSHR, IUSHR, LUSHR, IAND, LAND, IOR,\n   *      LOR, IXOR, LXOR,\n   *\n   *      I2L, I2F, I2D, L2I, L2F, L2D, F2I, F2L, F2D, D2I, D2L, D2F, I2B, I2C,\n   *      I2S,\n   *\n   *      LCMP, FCMPL, FCMPG, DCMPL, DCMPG,\n   *\n   *      IRETURN, LRETURN, FRETURN, DRETURN, ARETURN, RETURN,\n   *\n   *      ARRAYLENGTH,\n   *\n   *      ATHROW,\n   *\n   *      MONITORENTER, or MONITOREXIT.\n   */\n\n  void visitInsn (int opcode);\n\n  /**\n   * Visits an instruction with a single int operand.\n   *\n   * @param opcode the opcode of the instruction to be visited. This opcode is\n   *      either BIPUSH, SIPUSH or NEWARRAY.\n   * @param operand the operand of the instruction to be visited.\n   */\n\n  void visitIntInsn (int opcode, int operand);\n\n  /**\n   * Visits a local variable instruction. A local variable instruction is an\n   * instruction that loads or stores the value of a local variable.\n   *\n   * @param opcode the opcode of the local variable instruction to be visited.\n   *      This opcode is either ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE,\n   *      LSTORE, FSTORE, DSTORE, ASTORE or RET.\n   * @param var the operand of the instruction to be visited. This operand is\n   *      the index of a local variable.\n   */\n\n  void visitVarInsn (int opcode, int var);\n\n  /**\n   * Visits a type instruction. A type instruction is an instruction that\n   * takes a type descriptor as parameter.\n   *\n   * @param opcode the opcode of the type instruction to be visited. This opcode\n   *      is either NEW, ANEWARRAY, CHECKCAST or INSTANCEOF.\n   * @param desc the operand of the instruction to be visited. This operand is\n   *      must be a fully qualified class name in internal form, or the type\n   *      descriptor of an array type (see {@link Type Type}).\n   */\n\n  void visitTypeInsn (int opcode, String desc);\n\n  /**\n   * Visits a field instruction. A field instruction is an instruction that\n   * loads or stores the value of a field of an object.\n   *\n   * @param opcode the opcode of the type instruction to be visited. This opcode\n   *      is either GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD.\n   * @param owner the internal name of the field's owner class (see {@link\n   *      Type#getInternalName getInternalName}).\n   * @param name the field's name.\n   * @param desc the field's descriptor (see {@link Type Type}).\n   */\n\n  void visitFieldInsn (int opcode, String owner, String name, String desc);\n\n  /**\n   * Visits a method instruction. A method instruction is an instruction that\n   * invokes a method.\n   *\n   * @param opcode the opcode of the type instruction to be visited. This opcode\n   *      is either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or\n   *      INVOKEINTERFACE.\n   * @param owner the internal name of the method's owner class (see {@link\n   *      Type#getInternalName getInternalName}).\n   * @param name the method's name.\n   * @param desc the method's descriptor (see {@link Type Type}).\n   */\n\n  void visitMethodInsn (int opcode, String owner, String name, String desc);\n\n  /**\n   * Visits a jump instruction. A jump instruction is an instruction that may\n   * jump to another instruction.\n   *\n   * @param opcode the opcode of the type instruction to be visited. This opcode\n   *      is either IFEQ, IFNE, IFLT, IFGE, IFGT, IFLE, IF_ICMPEQ, IF_ICMPNE,\n   *      IF_ICMPLT, IF_ICMPGE, IF_ICMPGT, IF_ICMPLE, IF_ACMPEQ, IF_ACMPNE,\n   *      GOTO, JSR, IFNULL or IFNONNULL.\n   * @param label the operand of the instruction to be visited. This operand is\n   *      a label that designates the instruction to which the jump instruction\n   *      may jump.\n   */\n\n  void visitJumpInsn (int opcode, Label label);\n\n  /**\n   * Visits a label. A label designates the instruction that will be visited\n   * just after it.\n   *\n   * @param label a {@link Label Label} object.\n   */\n\n  void visitLabel (Label label);\n\n  // -------------------------------------------------------------------------\n  // Special instructions\n  // -------------------------------------------------------------------------\n\n  /**\n   * Visits a LDC instruction.\n   *\n   * @param cst the constant to be loaded on the stack. This parameter must be\n   *      a non null {@link java.lang.Integer Integer}, a {@link java.lang.Float\n   *      Float}, a {@link java.lang.Long Long}, a {@link java.lang.Double\n   *      Double} or a {@link String String}.\n   */\n\n  void visitLdcInsn (Object cst);\n\n  /**\n   * Visits an IINC instruction.\n   *\n   * @param var index of the local variable to be incremented.\n   * @param increment amount to increment the local variable by.\n   */\n\n  void visitIincInsn (int var, int increment);\n\n  /**\n   * Visits a TABLESWITCH instruction.\n   *\n   * @param min the minimum key value.\n   * @param max the maximum key value.\n   * @param dflt beginning of the default handler block.\n   * @param labels beginnings of the handler blocks. <tt>labels[i]</tt> is the\n   *      beginning of the handler block for the <tt>min + i</tt> key.\n   */\n\n  void visitTableSwitchInsn (int min, int max, Label dflt, Label labels[]);\n\n  /**\n   * Visits a LOOKUPSWITCH instruction.\n   *\n   * @param dflt beginning of the default handler block.\n   * @param keys the values of the keys.\n   * @param labels beginnings of the handler blocks. <tt>labels[i]</tt> is the\n   *      beginning of the handler block for the <tt>keys[i]</tt> key.\n   */\n\n  void visitLookupSwitchInsn (Label dflt, int keys[], Label labels[]);\n\n  /**\n   * Visits a MULTIANEWARRAY instruction.\n   *\n   * @param desc an array type descriptor (see {@link Type Type}).\n   * @param dims number of dimensions of the array to allocate.\n   */\n\n  void visitMultiANewArrayInsn (String desc, int dims);\n\n  // -------------------------------------------------------------------------\n  // Exceptions table entries, max stack size and max locals\n  // -------------------------------------------------------------------------\n\n  /**\n   * Visits a try catch block.\n   *\n   * @param start beginning of the exception handler's scope (inclusive).\n   * @param end end of the exception handler's scope (exclusive).\n   * @param handler beginning of the exception handler's code.\n   * @param type internal name of the type of exceptions handled by the handler,\n   *      or <tt>null</tt> to catch any exceptions (for \"finally\" blocks).\n   * @throws IllegalArgumentException if one of the labels has not already been\n   *      visited by this visitor (by the {@link #visitLabel visitLabel}\n   *      method).\n   */\n\n  void visitTryCatchBlock (Label start, Label end, Label handler, String type);\n\n  /**\n   * Visits the maximum stack size and the maximum number of local variables of\n   * the method.\n   *\n   * @param maxStack maximum stack size of the method.\n   * @param maxLocals maximum number of local variables for the method.\n   */\n\n  void visitMaxs (int maxStack, int maxLocals);\n\n  // -------------------------------------------------------------------------\n  // Debug information\n  // -------------------------------------------------------------------------\n\n  /**\n   * Visits a local variable declaration.\n   *\n   * @param name the name of a local variable.\n   * @param desc the type descriptor of this local variable.\n   * @param start the first instruction corresponding to the scope of this\n   *      local variable (inclusive).\n   * @param end the last instruction corresponding to the scope of this\n   *      local variable (exclusive).\n   * @param index the local variable's index.\n   * @throws IllegalArgumentException if one of the labels has not already been\n   *      visited by this visitor (by the {@link #visitLabel visitLabel}\n   *      method).\n   */\n\n  void visitLocalVariable (\n    String name,\n    String desc,\n    Label start,\n    Label end,\n    int index);\n\n  /**\n   * Visits a line number declaration.\n   *\n   * @param line a line number. This number refers to the source file\n   *      from which the class was compiled.\n   * @param start the first instruction corresponding to this line number.\n   * @throws IllegalArgumentException if <tt>start</tt> has not already been\n   *      visited by this visitor (by the {@link #visitLabel visitLabel}\n   *      method).\n   */\n\n  void visitLineNumber (int line, Label start);", "functions": [{"function_name": "visitInsn", "code": "  void visitInsn (int opcode);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "visitIntInsn", "code": "  void visitIntInsn (int opcode, int operand);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "visitVarInsn", "code": "  void visitVarInsn (int opcode, int var);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "visitTypeInsn", "code": "  void visitTypeInsn (int opcode, String desc);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "visitFieldInsn", "code": "  void visitFieldInsn (int opcode, String owner, String name, String desc);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "visitMethodInsn", "code": "  void visitMethodInsn (int opcode, String owner, String name, String desc);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "visitJumpInsn", "code": "  void visitJumpInsn (int opcode, Label label);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "visitLabel", "code": "  void visitLabel (Label label);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "visitLdcInsn", "code": "  void visitLdcInsn (Object cst);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "visitIincInsn", "code": "  void visitIincInsn (int var, int increment);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "visitTableSwitchInsn", "code": "  void visitTableSwitchInsn (int min, int max, Label dflt, Label labels[]);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "visitLookupSwitchInsn", "code": "  void visitLookupSwitchInsn (Label dflt, int keys[], Label labels[]);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "visitMultiANewArrayInsn", "code": "  void visitMultiANewArrayInsn (String desc, int dims);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "visitTryCatchBlock", "code": "  void visitTryCatchBlock (Label start, Label end, Label handler, String type);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "visitMaxs", "code": "  void visitMaxs (int maxStack, int maxLocals);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "visitLocalVariable", "code": "  void visitLocalVariable (\n    String name,\n    String desc,\n    Label start,\n    Label end,\n    int index);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "visitLineNumber", "code": "  void visitLineNumber (int line, Label start);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6315", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/AreaRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.AreaRecord", "code": "public class AreaRecord\n    extends Record\n{\n    public final static short      sid                             = 0x101A;\n    private  short      field_1_formatFlags;\n    private  BitField   stacked                                     = BitFieldFactory.getInstance(0x1);\n    private  BitField   displayAsPercentage                         = BitFieldFactory.getInstance(0x2);\n    private  BitField   shadow                                      = BitFieldFactory.getInstance(0x4);\n\n\n    public AreaRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Area record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x101A or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public AreaRecord(RecordInputStream in)\n    {\n        super(in);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Area record\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n\n        field_1_formatFlags            = in.readShort();\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AREA]\\n\");\n        buffer.append(\"    .formatFlags          = \")\n            .append(\"0x\").append(HexDump.toHex(  getFormatFlags ()))\n            .append(\" (\").append( getFormatFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .stacked                  = \").append(isStacked()).append('\\n'); \n        buffer.append(\"         .displayAsPercentage      = \").append(isDisplayAsPercentage()).append('\\n'); \n        buffer.append(\"         .shadow                   = \").append(isShadow()).append('\\n'); \n\n        buffer.append(\"[/AREA]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_formatFlags);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n        AreaRecord rec = new AreaRecord();\n    \n        rec.field_1_formatFlags = field_1_formatFlags;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the format flags field for the Area record.\n     */\n    public short getFormatFlags()\n    {\n        return field_1_formatFlags;\n    }\n\n    /**\n     * Set the format flags field for the Area record.\n     */\n    public void setFormatFlags(short field_1_formatFlags)\n    {\n        this.field_1_formatFlags = field_1_formatFlags;\n    }\n\n    /**\n     * Sets the stacked field value.\n     * series is stacked\n     */\n    public void setStacked(boolean value)\n    {\n        field_1_formatFlags = stacked.setShortBoolean(field_1_formatFlags, value);\n    }\n\n    /**\n     * series is stacked\n     * @return  the stacked field value.\n     */\n    public boolean isStacked()\n    {\n        return stacked.isSet(field_1_formatFlags);\n    }\n\n    /**\n     * Sets the display as percentage field value.\n     * results displayed as percentages\n     */\n    public void setDisplayAsPercentage(boolean value)\n    {\n        field_1_formatFlags = displayAsPercentage.setShortBoolean(field_1_formatFlags, value);\n    }\n\n    /**\n     * results displayed as percentages\n     * @return  the display as percentage field value.\n     */\n    public boolean isDisplayAsPercentage()\n    {\n        return displayAsPercentage.isSet(field_1_formatFlags);\n    }\n\n    /**\n     * Sets the shadow field value.\n     * display a shadow for the chart\n     */\n    public void setShadow(boolean value)\n    {\n        field_1_formatFlags = shadow.setShortBoolean(field_1_formatFlags, value);\n    }\n\n    /**\n     * display a shadow for the chart\n     * @return  the shadow field value.\n     */\n    public boolean isShadow()\n    {\n        return shadow.isSet(field_1_formatFlags);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Area record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n\n        field_1_formatFlags            = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AREA]\\n\");\n        buffer.append(\"    .formatFlags          = \")\n            .append(\"0x\").append(HexDump.toHex(  getFormatFlags ()))\n            .append(\" (\").append( getFormatFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .stacked                  = \").append(isStacked()).append('\\n'); \n        buffer.append(\"         .displayAsPercentage      = \").append(isDisplayAsPercentage()).append('\\n'); \n        buffer.append(\"         .shadow                   = \").append(isShadow()).append('\\n'); \n\n        buffer.append(\"[/AREA]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [4, 11], [5, 12], [5, 13], [5, 14], [6, 15], [6, 16], [6, 17], [7, 18], [7, 19], [7, 20], [8, 21], [9, 22], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [10, 28], [2, 29], [13, 30], [14, 31], [16, 32], [17, 33], [19, 34], [20, 35], [21, 36], [23, 37], [24, 38], [25, 39], [26, 40], [27, 41], [40, 42], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 4], [12, 5], [13, 5], [14, 5], [15, 6], [16, 6], [17, 6], [18, 7], [19, 7], [20, 7], [21, 8], [22, 9], [23, 9], [24, 9], [25, 9], [26, 9], [27, 9], [28, 10], [29, 2], [30, 13], [31, 14], [32, 16], [33, 17], [34, 19], [35, 20], [36, 21], [37, 23], [38, 24], [39, 25], [40, 26], [41, 27], [42, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_formatFlags);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [6, 9], [7, 10], [8, 11], [2, 12], [9, 13], [7, 14], [10, 15], [11, 16], [13, 17], [14, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 6], [10, 7], [11, 8], [12, 2], [13, 9], [14, 7], [15, 10], [16, 11], [17, 13], [18, 14], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        AreaRecord rec = new AreaRecord();\n    \n        rec.field_1_formatFlags = field_1_formatFlags;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFormatFlags", "code": "    public short getFormatFlags()\n    {\n        return field_1_formatFlags;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFormatFlags", "code": "    public void setFormatFlags(short field_1_formatFlags)\n    {\n        this.field_1_formatFlags = field_1_formatFlags;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStacked", "code": "    public void setStacked(boolean value)\n    {\n        field_1_formatFlags = stacked.setShortBoolean(field_1_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isStacked", "code": "    public boolean isStacked()\n    {\n        return stacked.isSet(field_1_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDisplayAsPercentage", "code": "    public void setDisplayAsPercentage(boolean value)\n    {\n        field_1_formatFlags = displayAsPercentage.setShortBoolean(field_1_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDisplayAsPercentage", "code": "    public boolean isDisplayAsPercentage()\n    {\n        return displayAsPercentage.isSet(field_1_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setShadow", "code": "    public void setShadow(boolean value)\n    {\n        field_1_formatFlags = shadow.setShortBoolean(field_1_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isShadow", "code": "    public boolean isShadow()\n    {\n        return shadow.isSet(field_1_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AreaRecord", "code": "    public AreaRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AreaRecord", "code": "    public AreaRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.7-8133", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/trax/SAX2DOM.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.SAX2DOM", "code": "public class SAX2DOM implements ContentHandler, LexicalHandler, Constants {\n\n    private Node _root = null;\n    private Document _document = null;\n    private Node _nextSibling = null;\n    private Stack _nodeStk = new Stack();\n    private Vector _namespaceDecls = null;\n    private Node _lastSibling = null;\n\n    public SAX2DOM() throws ParserConfigurationException {\n\tfinal DocumentBuilderFactory factory = \n\t\tDocumentBuilderFactory.newInstance();\n\t_document = factory.newDocumentBuilder().newDocument();\n\t_root = _document;\n    }\n\n    public SAX2DOM(Node root, Node nextSibling) throws ParserConfigurationException {\n\t_root = root;\n\tif (root instanceof Document) {\n\t  _document = (Document)root;\n\t}\n\telse if (root != null) {\n\t  _document = root.getOwnerDocument();\n\t}\n\telse {\n\t  final DocumentBuilderFactory factory = \n\t\tDocumentBuilderFactory.newInstance();\n\t  _document = factory.newDocumentBuilder().newDocument();\n\t  _root = _document;\n\t}\n\t\n\t_nextSibling = nextSibling;\n    }\n    \n    public SAX2DOM(Node root) throws ParserConfigurationException {\n        this(root, null);\n    }\n\n    public Node getDOM() {\n\treturn _root;\n    }\n\n    public void characters(char[] ch, int start, int length) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\n        if (last != _document) {\n            final String text = new String(ch, start, length);\n            if( _lastSibling != null && _lastSibling.getNodeType() == Node.TEXT_NODE ){\n                  ((Text)_lastSibling).appendData(text);\n            }\n            else if (last == _root && _nextSibling != null) {\n                _lastSibling = last.insertBefore(_document.createTextNode(text), _nextSibling);\n            }\n            else {\n                _lastSibling = last.appendChild(_document.createTextNode(text));\n            }\n            \n        }\n    }\n\n    public void startDocument() {\n\t_nodeStk.push(_root);\n    }\n\n    public void endDocument() {\n        _nodeStk.pop();\n    }\n\n    public void startElement(String namespace, String localName, String qName,\n\tAttributes attrs) \n    {\n\tfinal Element tmp = (Element)_document.createElementNS(namespace, qName);\n\n\tif (_namespaceDecls != null) {\n\t    final int nDecls = _namespaceDecls.size();\n\t    for (int i = 0; i < nDecls; i++) {\n\t\tfinal String prefix = (String) _namespaceDecls.elementAt(i++);\n\n\t\tif (prefix == null || prefix.equals(EMPTYSTRING)) {\n\t\t    tmp.setAttributeNS(XMLNS_URI, XMLNS_PREFIX,\n\t\t\t(String) _namespaceDecls.elementAt(i));\n\t\t}\n\t\telse {\n\t\t    tmp.setAttributeNS(XMLNS_URI, XMLNS_STRING + prefix, \n\t\t\t(String) _namespaceDecls.elementAt(i));\n\t\t}\n\t    }\n\t    _namespaceDecls.clear();\n\t}\n\n\tfinal int nattrs = attrs.getLength();\n\tfor (int i = 0; i < nattrs; i++) {\n\t    if (attrs.getLocalName(i) == null) {\n\t\ttmp.setAttribute(attrs.getQName(i), attrs.getValue(i));\n\t    }\n\t    else {\n\t\ttmp.setAttributeNS(attrs.getURI(i), attrs.getQName(i), \n\t\t    attrs.getValue(i));\n\t    }\n\t}\n\n\tNode last = (Node)_nodeStk.peek();\n\t\n\tif (last == _root && _nextSibling != null)\n\t    last.insertBefore(tmp, _nextSibling);\n\telse\n\t    last.appendChild(tmp);\n\n\t_nodeStk.push(tmp);\n\t_lastSibling = null;\n    }\n\n    public void endElement(String namespace, String localName, String qName) {\n\t_nodeStk.pop();  \n\t_lastSibling = null;\n    }\n\n    public void startPrefixMapping(String prefix, String uri) {\n\tif (_namespaceDecls == null) {\n\t    _namespaceDecls = new Vector(2);\n\t}\n\t_namespaceDecls.addElement(prefix);\n\t_namespaceDecls.addElement(uri);\n    }\n\n    public void endPrefixMapping(String prefix) {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void ignorableWhitespace(char[] ch, int start, int length) {\n    }\n\n    /**\n     * adds processing instruction node to DOM.\n     */\n    public void processingInstruction(String target, String data) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\tProcessingInstruction pi = _document.createProcessingInstruction(\n\t\ttarget, data);\n\tif (pi != null){\n          if (last == _root && _nextSibling != null)\n              last.insertBefore(pi, _nextSibling);\n          else\n              last.appendChild(pi);\n          \n          _lastSibling = pi;\n        }\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setDocumentLocator(Locator locator) {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void skippedEntity(String name) {\n    }\n\n\n    /**\n     * Lexical Handler method to create comment node in DOM tree.\n     */\n    public void comment(char[] ch, int start, int length) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\tComment comment = _document.createComment(new String(ch,start,length));\n\tif (comment != null){\n          if (last == _root && _nextSibling != null)\n              last.insertBefore(comment, _nextSibling);\n          else\n              last.appendChild(comment);\n          \n          _lastSibling = comment;\n        }\n    }\n\n    public void startCDATA() { }\n    public void endCDATA() { }\n    public void startEntity(java.lang.String name) { }\n    public void endDTD() { }\n    public void endEntity(String name) { }\n    public void startDTD(String name, String publicId, String systemId)", "functions": [{"function_name": "getDOM", "code": "    public Node getDOM() {\n\treturn _root;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "characters", "code": "    public void characters(char[] ch, int start, int length) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\n        if (last != _document) {\n            final String text = new String(ch, start, length);\n            if( _lastSibling != null && _lastSibling.getNodeType() == Node.TEXT_NODE ){\n                  ((Text)_lastSibling).appendData(text);\n            }\n            else if (last == _root && _nextSibling != null) {\n                _lastSibling = last.insertBefore(_document.createTextNode(text), _nextSibling);\n            }\n            else {\n                _lastSibling = last.appendChild(_document.createTextNode(text));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [7, 9], [7, 10], [2, 11], [9, 12], [10, 13], [10, 14], [8, 15], [12, 16], [12, 17], [13, 18], [14, 19], [9, 20], [9, 21], [16, 22], [20, 23], [21, 24], [23, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 7], [10, 7], [11, 2], [12, 9], [13, 10], [14, 10], [15, 8], [16, 12], [17, 12], [18, 13], [19, 14], [20, 9], [21, 9], [22, 16], [23, 20], [24, 21], [25, 23], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "startDocument", "code": "    public void startDocument() {\n\t_nodeStk.push(_root);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endDocument", "code": "    public void endDocument() {\n        _nodeStk.pop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startElement", "code": "    public void startElement(String namespace, String localName, String qName,\n\tAttributes attrs) \n    {\n\tfinal Element tmp = (Element)_document.createElementNS(namespace, qName);\n\n\tif (_namespaceDecls != null) {\n\t    final int nDecls = _namespaceDecls.size();\n\t    for (int i = 0; i < nDecls; i++) {\n\t\tfinal String prefix = (String) _namespaceDecls.elementAt(i++);\n\n\t\tif (prefix == null || prefix.equals(EMPTYSTRING)) {\n\t\t    tmp.setAttributeNS(XMLNS_URI, XMLNS_PREFIX,\n\t\t\t(String) _namespaceDecls.elementAt(i));\n\t\t}\n\t\telse {\n\t\t    tmp.setAttributeNS(XMLNS_URI, XMLNS_STRING + prefix, \n\t\t\t(String) _namespaceDecls.elementAt(i));\n\t\t}\n\t    }\n\t    _namespaceDecls.clear();\n\t}\n\n\tfinal int nattrs = attrs.getLength();\n\tfor (int i = 0; i < nattrs; i++) {\n\t    if (attrs.getLocalName(i) == null) {\n\t\ttmp.setAttribute(attrs.getQName(i), attrs.getValue(i));\n\t    }\n\t    else {\n\t\ttmp.setAttributeNS(attrs.getURI(i), attrs.getQName(i), \n\t\t    attrs.getValue(i));\n\t    }\n\t}\n\n\tNode last = (Node)_nodeStk.peek();\n\t\n\tif (last == _root && _nextSibling != null)\n\t    last.insertBefore(tmp, _nextSibling);\n\telse\n\t    last.appendChild(tmp);\n\n\t_nodeStk.push(tmp);\n\t_lastSibling = null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [3, 14], [5, 15], [11, 16], [1, 17], [1, 18], [13, 19], [13, 20], [3, 21], [4, 22], [5, 23], [5, 24], [15, 25], [19, 26], [2, 27], [21, 28], [3, 29], [5, 30], [23, 31], [6, 32], [28, 33], [28, 34], [23, 35], [23, 36], [24, 37], [21, 38], [21, 39], [35, 40], [23, 41], [38, 42], [38, 43], [38, 44], [39, 45], [39, 46], [40, 47], [40, 48], [35, 49], [35, 50], [48, 51], [36, 52], [49, 53], [49, 54], [50, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 3], [15, 5], [16, 11], [17, 1], [18, 1], [19, 13], [20, 13], [21, 3], [22, 4], [23, 5], [24, 5], [25, 15], [26, 19], [27, 2], [28, 21], [29, 3], [30, 5], [31, 23], [32, 6], [33, 28], [34, 28], [35, 23], [36, 23], [37, 24], [38, 21], [39, 21], [40, 35], [41, 23], [42, 38], [43, 38], [44, 38], [45, 39], [46, 39], [47, 40], [48, 40], [49, 35], [50, 35], [51, 48], [52, 36], [53, 49], [54, 49], [55, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "endElement", "code": "    public void endElement(String namespace, String localName, String qName) {\n\t_nodeStk.pop();  \n\t_lastSibling = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "startPrefixMapping", "code": "    public void startPrefixMapping(String prefix, String uri) {\n\tif (_namespaceDecls == null) {\n\t    _namespaceDecls = new Vector(2);\n\t}\n\t_namespaceDecls.addElement(prefix);\n\t_namespaceDecls.addElement(uri);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "endPrefixMapping", "code": "    public void endPrefixMapping(String prefix) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ignorableWhitespace", "code": "    public void ignorableWhitespace(char[] ch, int start, int length) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "processingInstruction", "code": "    public void processingInstruction(String target, String data) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\tProcessingInstruction pi = _document.createProcessingInstruction(\n\t\ttarget, data);\n\tif (pi != null){\n          if (last == _root && _nextSibling != null)\n              last.insertBefore(pi, _nextSibling);\n          else\n              last.appendChild(pi);\n          \n          _lastSibling = pi;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [1, 10], [7, 11], [3, 12], [7, 13], [7, 14], [11, 15], [11, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 1], [11, 7], [12, 3], [13, 7], [14, 7], [15, 11], [16, 11], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setDocumentLocator", "code": "    public void setDocumentLocator(Locator locator) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "skippedEntity", "code": "    public void skippedEntity(String name) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "comment", "code": "    public void comment(char[] ch, int start, int length) {\n\tfinal Node last = (Node)_nodeStk.peek();\n\tComment comment = _document.createComment(new String(ch,start,length));\n\tif (comment != null){\n          if (last == _root && _nextSibling != null)\n              last.insertBefore(comment, _nextSibling);\n          else\n              last.appendChild(comment);\n          \n          _lastSibling = comment;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [2, 10], [1, 11], [8, 12], [10, 13], [3, 14], [8, 15], [8, 16], [12, 17], [12, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 2], [11, 1], [12, 8], [13, 10], [14, 3], [15, 8], [16, 8], [17, 12], [18, 12], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "startCDATA", "code": "    public void startCDATA() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endCDATA", "code": "    public void endCDATA() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "startEntity", "code": "    public void startEntity(java.lang.String name) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endDTD", "code": "    public void endDTD() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endEntity", "code": "    public void endEntity(String name) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startDTD", "code": "    public void startDTD(String name, String publicId, String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SAX2DOM", "code": "    public SAX2DOM() throws ParserConfigurationException {\n\tfinal DocumentBuilderFactory factory = \n\t\tDocumentBuilderFactory.newInstance();\n\t_document = factory.newDocumentBuilder().newDocument();\n\t_root = _document;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "SAX2DOM", "code": "    public SAX2DOM(Node root, Node nextSibling) throws ParserConfigurationException {\n\t_root = root;\n\tif (root instanceof Document) {\n\t  _document = (Document)root;\n\t}\n\telse if (root != null) {\n\t  _document = root.getOwnerDocument();\n\t}\n\telse {\n\t  final DocumentBuilderFactory factory = \n\t\tDocumentBuilderFactory.newInstance();\n\t  _document = factory.newDocumentBuilder().newDocument();\n\t  _root = _document;\n\t}\n\t\n\t_nextSibling = nextSibling;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [0, 7], [5, 8], [5, 9], [8, 10], [1, 11], [5, 12], [5, 13], [5, 14], [13, 15], [9, 16], [14, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 0], [8, 5], [9, 5], [10, 8], [11, 1], [12, 5], [13, 5], [14, 5], [15, 13], [16, 9], [17, 14], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "SAX2DOM", "code": "    public SAX2DOM(Node root) throws ParserConfigurationException {\n        this(root, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-2.5-5928", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/util/LittleEndian.java", "language": "java", "name": "org.apache.poi.util.LittleEndian", "code": "public class LittleEndian\n         implements LittleEndianConsts {\n\n    /**\n     *  Constructor for the LittleEndian object\n     */\n    private LittleEndian() { }\n\n\n    /**\n     *  get a short value from a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the short (16-bit) value\n     */\n\n    public static short getShort(final byte[] data, final int offset) {\n        return (short) getNumber(data, offset, SHORT_SIZE);\n    }\n\n\n    /**\n     *  get an unsigned short value from a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the unsigned short (16-bit) value in an integer\n     */\n    public static int getUShort(final byte[] data, final int offset) {\n        short num = (short) getNumber(data, offset, SHORT_SIZE);\n        int retNum;\n        if (num < 0) {\n            retNum = ((int) Short.MAX_VALUE + 1) * 2 + (int) num;\n        } else {\n            retNum = (int) num;\n        }\n        return retNum;\n    }\n\n\n    /**\n     *  get a short array from a byte array.\n     *\n     *@param  data    Description of the Parameter\n     *@param  offset  Description of the Parameter\n     *@param  size    Description of the Parameter\n     *@return         The simpleShortArray value\n     */\n    public static short[] getSimpleShortArray(final byte[] data, final int offset, final int size) {\n        short[] results = new short[size];\n        for (int i = 0; i < size; i++) {\n            results[i] = getShort(data, offset + 2 + (i * 2));\n        }\n        return results;\n    }\n\n\n    /**\n     *  get a short array from a byte array. The short array is assumed to start\n     *  with a word describing the length of the array.\n     *\n     *@param  data    Description of the Parameter\n     *@param  offset  Description of the Parameter\n     *@return         The shortArray value\n     */\n    public static short[] getShortArray(final byte[] data, final int offset) {\n        int size = (short) getNumber(data, offset, SHORT_SIZE);\n        short[] results = getSimpleShortArray(data, offset, size);\n        return results;\n    }\n\n\n    /**\n     *  get a short value from the beginning of a byte array\n     *\n     *@param  data  the byte array\n     *@return       the short (16-bit) value\n     */\n\n    public static short getShort(final byte[] data) {\n        return getShort(data, 0);\n    }\n\n\n    /**\n     *  get an unsigned short value from the beginning of a byte array\n     *\n     *@param  data  the byte array\n     *@return       the unsigned short (16-bit) value in an int\n     */\n    public static int getUShort(final byte[] data) {\n        return getUShort(data, 0);\n    }\n\n\n    /**\n     *  get an int value from a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the int (32-bit) value\n     */\n\n    public static int getInt(final byte[] data, final int offset) {\n        return (int) getNumber(data, offset, INT_SIZE);\n    }\n\n\n    /**\n     *  get an int value from the beginning of a byte array\n     *\n     *@param  data  the byte array\n     *@return       the int (32-bit) value\n     */\n\n    public static int getInt(final byte[] data) {\n        return getInt(data, 0);\n    }\n\n\n    /**\n     *  get an unsigned int value from a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the unsigned int (32-bit) value in a long\n     */\n    public static long getUInt(final byte[] data, final int offset) {\n        int num = (int) getNumber(data, offset, INT_SIZE);\n        long retNum;\n        if (num < 0) {\n            retNum = ((long) Integer.MAX_VALUE + 1) * 2 + (long) num;\n        } else {\n            retNum = (int) num;\n        }\n        return retNum;\n    }\n\n    /**\n     *  get an unsigned int value from a byte array\n     *\n     *@param  data    the byte array\n     *@return         the unsigned int (32-bit) value in a long\n     */\n    public static long getUInt(final byte[] data) {\n\treturn getUInt(data,0);\n    }\n\n    /**\n     *  get a long value from a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the long (64-bit) value\n     */\n\n    public static long getLong(final byte[] data, final int offset) {\n        return getNumber(data, offset, LONG_SIZE);\n    }\n\n\n    /**\n     *  get a long value from the beginning of a byte array\n     *\n     *@param  data  the byte array\n     *@return       the long (64-bit) value\n     */\n\n    public static long getLong(final byte[] data) {\n        return getLong(data, 0);\n    }\n\n\n    /**\n     *  get a double value from a byte array, reads it in little endian format\n     *  then converts the resulting revolting IEEE 754 (curse them) floating\n     *  point number to a happy java double\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the double (64-bit) value\n     */\n\n    public static double getDouble(final byte[] data, final int offset) {\n        return Double.longBitsToDouble(getNumber(data, offset, DOUBLE_SIZE));\n    }\n\n\n    /**\n     *  get a double value from the beginning of a byte array\n     *\n     *@param  data  the byte array\n     *@return       the double (64-bit) value\n     */\n\n    public static double getDouble(final byte[] data) {\n        return getDouble(data, 0);\n    }\n\n\n    /**\n     *  put a short value into a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@param  value   the short (16-bit) value\n     */\n    public static void putShort(final byte[] data, final int offset,\n            final short value) {\n        putNumber(data, offset, value, SHORT_SIZE);\n    }\n\n\n    /**\n     *  put a array of shorts into a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@param  value   the short array\n     */\n    public static void putShortArray(final byte[] data, final int offset, final short[] value) {\n        putNumber(data, offset, value.length, SHORT_SIZE);\n        for (int i = 0; i < value.length; i++) {\n            putNumber(data, offset + 2 + (i * 2), value[i], SHORT_SIZE);\n        }\n    }\n\n    /**\n     * put an unsigned short value into a byte array\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     * @param value the short (16-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n    public static void putUShort(final byte[] data, final int offset,\n                                final int value)\n    {\n        putNumber(data, offset, value, SHORT_SIZE);\n    }\n\n    /**\n     *  put a short value into beginning of a byte array\n     *\n     *@param  data   the byte array\n     *@param  value  the short (16-bit) value\n     */\n\n    public static void putShort(final byte[] data, final short value) {\n        putShort(data, 0, value);\n    }\n\n\n    /**\n     *  put an int value into a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@param  value   the int (32-bit) value\n     */\n\n    public static void putInt(final byte[] data, final int offset,\n            final int value) {\n        putNumber(data, offset, value, INT_SIZE);\n    }\n\n\n    /**\n     *  put an int value into beginning of a byte array\n     *\n     *@param  data   the byte array\n     *@param  value  the int (32-bit) value\n     */\n\n    public static void putInt(final byte[] data, final int value) {\n        putInt(data, 0, value);\n    }\n\n\n    /**\n     *  put a long value into a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@param  value   the long (64-bit) value\n     */\n\n    public static void putLong(final byte[] data, final int offset,\n            final long value) {\n        putNumber(data, offset, value, LONG_SIZE);\n    }\n\n\n    /**\n     *  put a long value into beginning of a byte array\n     *\n     *@param  data   the byte array\n     *@param  value  the long (64-bit) value\n     */\n\n    public static void putLong(final byte[] data, final long value) {\n        putLong(data, 0, value);\n    }\n\n\n    /**\n     *  put a double value into a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@param  value   the double (64-bit) value\n     */\n\n    public static void putDouble(final byte[] data, final int offset,\n            final double value) {\n        if (Double.isNaN(value))\n            putNumber(data, offset, -276939487313920L, DOUBLE_SIZE);\n        else\n            putNumber(data, offset, Double.doubleToLongBits(value), DOUBLE_SIZE);\n    }\n\n\n    /**\n     *  put a double value into beginning of a byte array\n     *\n     *@param  data   the byte array\n     *@param  value  the double (64-bit) value\n     */\n\n    public static void putDouble(final byte[] data, final double value) {\n        putDouble(data, 0, value);\n    }\n\n\n    /**\n     *  Exception to handle buffer underruns\n     *\n     *@author     Marc Johnson (mjohnson at apache dot org)\n     */\n\n    public static class BufferUnderrunException\n             extends IOException {\n\n        /**\n         *  simple constructor\n         */\n\n        BufferUnderrunException() {\n            super(\"buffer underrun\");\n        }\n    }\n\n\n    /**\n     *  get a short value from an InputStream\n     *\n     *@param  stream                       the InputStream from which the short\n     *      is to be read\n     *@return                              the short (16-bit) value\n     *@exception  IOException              will be propagated back to the caller\n     *@exception  BufferUnderrunException  if the stream cannot provide enough\n     *      bytes\n     */\n\n    public static short readShort(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getShort(readFromStream(stream, SHORT_SIZE));\n    }\n\n\n    /**\n     *  get an int value from an InputStream\n     *\n     *@param  stream                       the InputStream from which the int is\n     *      to be read\n     *@return                              the int (32-bit) value\n     *@exception  IOException              will be propagated back to the caller\n     *@exception  BufferUnderrunException  if the stream cannot provide enough\n     *      bytes\n     */\n\n    public static int readInt(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getInt(readFromStream(stream, INT_SIZE));\n    }\n\n\n    /**\n     *  get a long value from an InputStream\n     *\n     *@param  stream                       the InputStream from which the long\n     *      is to be read\n     *@return                              the long (64-bit) value\n     *@exception  IOException              will be propagated back to the caller\n     *@exception  BufferUnderrunException  if the stream cannot provide enough\n     *      bytes\n     */\n\n    public static long readLong(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getLong(readFromStream(stream, LONG_SIZE));\n    }\n\n    /**\n     *  Read the appropriate number of bytes from the stream and return them to\n     *  the caller. <p>\n     *\n     *  However, for the purposes of the POI project, this risk is deemed\n     *  negligible. It is, however, so noted.\n     *\n     *@param  stream                       the InputStream we're reading from\n     *@param  size                         the number of bytes to read; in\n     *      99.99% of cases, this will be SHORT_SIZE, INT_SIZE, or LONG_SIZE --\n     *      but it doesn't have to be.\n     *@return                              the byte array containing the\n     *      required number of bytes. The array will contain all zero's on end\n     *      of stream\n     *@exception  IOException              will be propagated back to the caller\n     *@exception  BufferUnderrunException  if the stream cannot provide enough\n     *      bytes\n     */\n\n    public static byte[] readFromStream(final InputStream stream,\n            final int size)\n             throws IOException, BufferUnderrunException {\n        byte[] buffer = new byte[size];\n\n        int count = stream.read(buffer);\n\n        if (count == -1) {\n\n            Arrays.fill(buffer, (byte) 0);\n        } else if (count != size) {\n            throw new BufferUnderrunException();\n        }\n        return buffer;\n    }\n\n\n    /**\n     *  Gets the number attribute of the LittleEndian class\n     *\n     *@param  data    Description of the Parameter\n     *@param  offset  Description of the Parameter\n     *@param  size    Description of the Parameter\n     *@return         The number value\n     */\n    private static long getNumber(final byte[] data, final int offset,\n            final int size) {\n        long result = 0;\n\n        for (int j = offset + size - 1; j >= offset; j--) {\n            result <<= 8;\n            result |= 0xff & data[j];\n        }\n        return result;\n    }\n\n\n    /**\n     *  Description of the Method\n     *\n     *@param  data    Description of the Parameter\n     *@param  offset  Description of the Parameter\n     *@param  value   Description of the Parameter\n     *@param  size    Description of the Parameter\n     */\n    private static void putNumber(final byte[] data, final int offset,\n            final long value, final int size) {\n        int limit = size + offset;\n        long v = value;\n\n        for (int j = offset; j < limit; j++) {\n            data[j] = (byte) (v & 0xFF);\n            v >>= 8;\n        }\n    }\n\n\n    /**\n     *  Convert an 'unsigned' byte to an integer. ie, don't carry across the\n     *  sign.\n     *\n     *@param  b  Description of the Parameter\n     *@return    Description of the Return Value\n     */\n    public static int ubyteToInt(byte b) {\n        return ((b & 0x80) == 0 ? (int) b : (int) (b & (byte) 0x7f) + 0x80);\n    }\n\n\n    /**\n     *  get the unsigned value of a byte.\n     *\n     *@param  data    the byte array.\n     *@param  offset  a starting offset into the byte array.\n     *@return         the unsigned value of the byte as a 32 bit integer\n     */\n    public static int getUnsignedByte(final byte[] data, final int offset) {\n        return (int) getNumber(data, offset, BYTE_SIZE);\n    }\n\n\n    /**\n     *  get the unsigned value of a byte.\n     *\n     *@param  data  the byte array\n     *@return       the unsigned value of the byte as a 32 bit integer\n     */\n    public static int getUnsignedByte(final byte[] data) {\n        return getUnsignedByte(data, 0);\n    }\n\n\n    /**\n     *  Copy a portion of a byte array\n     *\n     *@param  data                        the original byte array\n     *@param  offset                      Where to start copying from.\n     *@param  size                        Number of bytes to copy.\n     *@return                             The byteArray value\n     *@throws  IndexOutOfBoundsException  - if copying would cause access of\n     *      data outside array bounds.\n     */\n    public static byte[] getByteArray(final byte[] data, int offset, int size) {\n        byte[] copy = new byte[size];\n        System.arraycopy(data, offset, copy, 0, size);\n\n        return copy;", "functions": [{"function_name": "getShort", "code": "    public static short getShort(final byte[] data, final int offset) {\n        return (short) getNumber(data, offset, SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUShort", "code": "    public static int getUShort(final byte[] data, final int offset) {\n        short num = (short) getNumber(data, offset, SHORT_SIZE);\n        int retNum;\n        if (num < 0) {\n            retNum = ((int) Short.MAX_VALUE + 1) * 2 + (int) num;\n        } else {\n            retNum = (int) num;\n        }\n        return retNum;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [7, 8], [2, 9], [2, 10], [4, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 7], [9, 2], [10, 2], [11, 4], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getSimpleShortArray", "code": "    public static short[] getSimpleShortArray(final byte[] data, final int offset, final int size) {\n        short[] results = new short[size];\n        for (int i = 0; i < size; i++) {\n            results[i] = getShort(data, offset + 2 + (i * 2));\n        }\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [8, 10], [10, 11], [11, 12], [11, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 8], [11, 10], [12, 11], [13, 11], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getShortArray", "code": "    public static short[] getShortArray(final byte[] data, final int offset) {\n        int size = (short) getNumber(data, offset, SHORT_SIZE);\n        short[] results = getSimpleShortArray(data, offset, size);\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getShort", "code": "    public static short getShort(final byte[] data) {\n        return getShort(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUShort", "code": "    public static int getUShort(final byte[] data) {\n        return getUShort(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getInt", "code": "    public static int getInt(final byte[] data, final int offset) {\n        return (int) getNumber(data, offset, INT_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getInt", "code": "    public static int getInt(final byte[] data) {\n        return getInt(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUInt", "code": "    public static long getUInt(final byte[] data, final int offset) {\n        int num = (int) getNumber(data, offset, INT_SIZE);\n        long retNum;\n        if (num < 0) {\n            retNum = ((long) Integer.MAX_VALUE + 1) * 2 + (long) num;\n        } else {\n            retNum = (int) num;\n        }\n        return retNum;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [7, 8], [2, 9], [2, 10], [4, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 7], [9, 2], [10, 2], [11, 4], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getUInt", "code": "    public static long getUInt(final byte[] data) {\n\treturn getUInt(data,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLong", "code": "    public static long getLong(final byte[] data, final int offset) {\n        return getNumber(data, offset, LONG_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLong", "code": "    public static long getLong(final byte[] data) {\n        return getLong(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDouble", "code": "    public static double getDouble(final byte[] data, final int offset) {\n        return Double.longBitsToDouble(getNumber(data, offset, DOUBLE_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDouble", "code": "    public static double getDouble(final byte[] data) {\n        return getDouble(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putShort", "code": "    public static void putShort(final byte[] data, final int offset,\n            final short value) {\n        putNumber(data, offset, value, SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putShortArray", "code": "    public static void putShortArray(final byte[] data, final int offset, final short[] value) {\n        putNumber(data, offset, value.length, SHORT_SIZE);\n        for (int i = 0; i < value.length; i++) {\n            putNumber(data, offset + 2 + (i * 2), value[i], SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [1, 8], [7, 9], [9, 10], [9, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 1], [9, 7], [10, 9], [11, 9], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "putUShort", "code": "    public static void putUShort(final byte[] data, final int offset,\n                                final int value)\n    {\n        putNumber(data, offset, value, SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putShort", "code": "    public static void putShort(final byte[] data, final short value) {\n        putShort(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putInt", "code": "    public static void putInt(final byte[] data, final int offset,\n            final int value) {\n        putNumber(data, offset, value, INT_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putInt", "code": "    public static void putInt(final byte[] data, final int value) {\n        putInt(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putLong", "code": "    public static void putLong(final byte[] data, final int offset,\n            final long value) {\n        putNumber(data, offset, value, LONG_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putLong", "code": "    public static void putLong(final byte[] data, final long value) {\n        putLong(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putDouble", "code": "    public static void putDouble(final byte[] data, final int offset,\n            final double value) {\n        if (Double.isNaN(value))\n            putNumber(data, offset, -276939487313920L, DOUBLE_SIZE);\n        else\n            putNumber(data, offset, Double.doubleToLongBits(value), DOUBLE_SIZE);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "putDouble", "code": "    public static void putDouble(final byte[] data, final double value) {\n        putDouble(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readShort", "code": "    public static short readShort(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getShort(readFromStream(stream, SHORT_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readInt", "code": "    public static int readInt(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getInt(readFromStream(stream, INT_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readLong", "code": "    public static long readLong(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getLong(readFromStream(stream, LONG_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readFromStream", "code": "    public static byte[] readFromStream(final InputStream stream,\n            final int size)\n             throws IOException, BufferUnderrunException {\n        byte[] buffer = new byte[size];\n\n        int count = stream.read(buffer);\n\n        if (count == -1) {\n\n            Arrays.fill(buffer, (byte) 0);\n        } else if (count != size) {\n            throw new BufferUnderrunException();\n        }\n        return buffer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [8, 10], [3, 11], [7, 12], [2, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 8], [11, 3], [12, 7], [13, 2], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getNumber", "code": "    private static long getNumber(final byte[] data, final int offset,\n            final int size) {\n        long result = 0;\n\n        for (int j = offset + size - 1; j >= offset; j--) {\n            result <<= 8;\n            result |= 0xff & data[j];\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [2, 10], [2, 11], [9, 12], [10, 13], [11, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 2], [11, 2], [12, 9], [13, 10], [14, 11], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "putNumber", "code": "    private static void putNumber(final byte[] data, final int offset,\n            final long value, final int size) {\n        int limit = size + offset;\n        long v = value;\n\n        for (int j = offset; j < limit; j++) {\n            data[j] = (byte) (v & 0xFF);\n            v >>= 8;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [1, 10], [1, 11], [10, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 1], [11, 1], [12, 10], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "ubyteToInt", "code": "    public static int ubyteToInt(byte b) {\n        return ((b & 0x80) == 0 ? (int) b : (int) (b & (byte) 0x7f) + 0x80);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [4, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 4], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getUnsignedByte", "code": "    public static int getUnsignedByte(final byte[] data, final int offset) {\n        return (int) getNumber(data, offset, BYTE_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUnsignedByte", "code": "    public static int getUnsignedByte(final byte[] data) {\n        return getUnsignedByte(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getByteArray", "code": "    public static byte[] getByteArray(final byte[] data, int offset, int size) {\n        byte[] copy = new byte[size];\n        System.arraycopy(data, offset, copy, 0, size);\n\n        return copy;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "LittleEndian", "code": "    private LittleEndian() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.6-3122", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/spring/integration/adapter/CamelSourceAdapter.java", "language": "java", "name": "org.apache.camel.component.spring.integration.adapter.CamelSourceAdapter", "code": "public class CamelSourceAdapter extends AbstractCamelAdapter implements InitializingBean {\n    protected final Object lifecycleMonitor = new Object();\n    private final Log logger = LogFactory.getLog(this.getClass());\n    private Consumer consumer;\n    private Endpoint camelEndpoint;\n    private MessageChannel requestChannel;\n    private DirectChannel replyChannel;\n    \n    private volatile boolean initialized;\n\n    public void setRequestChannel(MessageChannel channel) {\n        requestChannel = channel;        \n    }\n\n    public MessageChannel getChannel() {\n        return requestChannel;\n    }\n\n    public void setReplyChannel(DirectChannel channel) {        \n        replyChannel = channel;\n    }\n\n    protected class ConsumerProcessor implements AsyncProcessor {\n        public void process(Exchange exchange) throws Exception {\n            AsyncProcessorHelper.process(this, exchange);      \n        }\n\n        public boolean process(final Exchange exchange, final AsyncCallback callback) {\n            org.springframework.integration.core.Message request =\n                SpringIntegrationBinding.createSpringIntegrationMessage(exchange);\n            Map<String, Object> headers = new HashMap<String, Object>();\n            if (exchange.getPattern().isOutCapable()) {\n                headers.put(MessageHeaders.REPLY_CHANNEL , replyChannel);\n                replyChannel.subscribe(new MessageHandler() {                \n                    public void handleMessage(Message<?> message) {\n                        SpringIntegrationBinding.storeToCamelMessage(message, exchange.getOut());\n                        callback.done(true);\n                    }\n                });\n            }\n                 \n            requestChannel.send(request);\n            \n            if (!exchange.getPattern().isOutCapable()) {\n                callback.done(true);\n            }            \n            return true;\n        }\n    }\n\n    public final void afterPropertiesSet() throws Exception {\n        synchronized (this.lifecycleMonitor) {\n            if (this.initialized) {\n                return;\n            }\n        }\n        this.initialize();\n        this.initialized = true;\n    }\n\n    protected void initialize() throws Exception {\n        camelEndpoint = getCamelContext().getEndpoint(getCamelEndpointUri());\n        consumer = camelEndpoint.createConsumer(new ConsumerProcessor());\n        consumer.start();", "functions": [{"function_name": "setRequestChannel", "code": "    public void setRequestChannel(MessageChannel channel) {\n        requestChannel = channel;        ", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getChannel", "code": "    public MessageChannel getChannel() {\n        return requestChannel;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplyChannel", "code": "    public void setReplyChannel(DirectChannel channel) {        \n        replyChannel = channel;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "afterPropertiesSet", "code": "    public final void afterPropertiesSet() throws Exception {\n        synchronized (this.lifecycleMonitor) {\n            if (this.initialized) {\n                return;\n            }\n        }\n        this.initialize();\n        this.initialized = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "RETURN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "initialize", "code": "    protected void initialize() throws Exception {\n        camelEndpoint = getCamelContext().getEndpoint(getCamelEndpointUri());\n        consumer = camelEndpoint.createConsumer(new ConsumerProcessor());\n        consumer.start();", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ivy-2.0-3542", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/repository/Repository.java", "language": "java", "name": "org.apache.ivy.plugins.repository.Repository", "code": "public interface Repository {\n\n    /**\n     * Return the resource associated with a specified identifier. If the resource does not exist,\n     * it should return a Resource with exists() returning false. An IOException should only be\n     * thrown when a real IO problem occurs, like the impossibility to connect to a server.\n     * \n     * @param source\n     *            A string identifying the resource.\n     * @return The resource associated with the resource identifier.\n     * @throws IOException\n     *             On error whle trying to get resource.\n     */\n    Resource getResource(String source) throws IOException;\n\n    /**\n     * Fetch a resource from the repository.\n     * \n     * @param source\n     *            A string identifying the resource to be fetched.\n     * @param destination\n     *            Where to place the fetched resource.\n     * @throws IOException\n     *             On retrieval failure.\n     */\n    void get(String source, File destination) throws IOException;\n\n    /**\n     * Transfer a resource to the repository\n     * \n     * @param artifact\n     *            The artifact to be transferred.\n     * @param source\n     *            The local file to be transferred.\n     * @param destination\n     *            Where to transfer the resource.\n     * @param overwrite\n     *            Whether the transfer should overwrite an existing resource.\n     * @throws IOException\n     *             On publication failure.\n     */\n    void put(Artifact artifact, File source, String destination, boolean overwrite)\n            throws IOException;\n\n    /**\n     * Return a listing of resources names\n     * \n     * @param parent\n     *            The parent directory from which to generate the listing.\n     * @return A listing of the parent directory's file content, as a List of String.\n     * @throws IOException\n     *             On listing failure.\n     */\n    List list(String parent) throws IOException;\n\n    /**\n     * Add a listener to the repository.\n     * \n     * @param listener\n     *            The listener to attach to the repository.\n     */\n    void addTransferListener(TransferListener listener);\n\n    /**\n     * Remove a listener on the repository\n     * \n     * @param listener\n     *            The listener to remove\n     */\n    void removeTransferListener(TransferListener listener);\n\n    /**\n     * Determine if a given listener is attached to the repository.\n     * \n     * @param listener\n     *            The listener being quireied\n     * @return <code>true</code> if the provided listener is attached to the repository,\n     *         <code>false</code> if not.\n     */\n    boolean hasTransferListener(TransferListener listener);\n\n    /**\n     * Get the repository's file separator string.\n     * \n     * @return The repository's file separator delimiter\n     */\n    String getFileSeparator();\n\n    /**\n     * Normalize a string.\n     * \n     * @param source\n     *            The string to normalize.\n     * @return The normalized string.\n     */\n    String standardize(String source);\n\n    /**\n     * Return the name of the repository\n     */\n    String getName();", "functions": [{"function_name": "getResource", "code": "    Resource getResource(String source) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "get", "code": "    void get(String source, File destination) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "put", "code": "    void put(Artifact artifact, File source, String destination, boolean overwrite)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "list", "code": "    List list(String parent) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addTransferListener", "code": "    void addTransferListener(TransferListener listener);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "removeTransferListener", "code": "    void removeTransferListener(TransferListener listener);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hasTransferListener", "code": "    boolean hasTransferListener(TransferListener listener);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFileSeparator", "code": "    String getFileSeparator();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "standardize", "code": "    String standardize(String source);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "    String getName();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.6-2804", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/file/FileEndpoint.java", "language": "java", "name": "org.apache.camel.component.file.FileEndpoint", "code": "public class FileEndpoint extends ScheduledPollEndpoint<FileExchange> {\n    public static final transient String DEFAULT_LOCK_FILE_POSTFIX = \".camelLock\";\n\n    private static final transient Log LOG = LogFactory.getLog(FileEndpoint.class);\n    private static final transient String DEFAULT_STRATEGYFACTORY_CLASS =\n        \"org.apache.camel.component.file.strategy.FileProcessStrategyFactory\";\n\n    private File file;\n    private FileProcessStrategy fileProcessStrategy;\n    private boolean autoCreate = true;\n    private boolean lock = true;\n    private boolean delete;\n    private boolean noop;\n    private boolean append = true;\n    private String moveNamePrefix;\n    private String moveNamePostfix;\n    private String[] excludedNamePrefixes;\n    private String[] excludedNamePostfixes;\n    private String preMoveNamePrefix;\n    private String preMoveNamePostfix;\n    private String excludedNamePrefix;\n    private String excludedNamePostfix;\n    private int bufferSize = 128 * 1024;\n    private boolean ignoreFileNameHeader;\n    private Expression expression;\n    private Expression preMoveExpression;\n\n    protected FileEndpoint(File file, String endpointUri, FileComponent component) {\n        super(endpointUri, component);\n        this.file = file;\n    }\n\n    public FileEndpoint(String endpointUri, File file) {\n        super(endpointUri);\n        this.file = file;\n    }\n\n    public FileEndpoint(File file) {\n        this.file = file;\n    }\n\n    public FileEndpoint() {\n    }\n\n    public Producer<FileExchange> createProducer() throws Exception {\n        Producer<FileExchange> result = new FileProducer(this);\n        return result;\n    }\n\n    public Consumer<FileExchange> createConsumer(Processor processor) throws Exception {\n        Consumer<FileExchange> result = new FileConsumer(this, processor);\n\n        if (isDelete() && (getMoveNamePrefix() != null || getMoveNamePostfix() != null || getExpression() != null)) {\n            throw new IllegalArgumentException(\"You cannot set delet and a moveNamePrefix, moveNamePostfix or expression option\");\n        }\n        \n        configureConsumer(result);\n        return result;\n    }\n\n    /**\n     * Create a new exchange for communicating with this endpoint\n     *\n     * @param file  the file\n     * @return the created exchange\n     */\n    public FileExchange createExchange(File file) {\n        return new FileExchange(getCamelContext(), getExchangePattern(), file);\n    }\n\n    @Override\n    public FileExchange createExchange() {\n        return createExchange(getFile());\n    }\n\n    @Override\n    public FileExchange createExchange(ExchangePattern pattern) {\n        return new FileExchange(getCamelContext(), pattern, file);\n    }\n\n    /**\n     * Return the file name that will be auto-generated for the given message if none is provided\n     */\n    public String getGeneratedFileName(Message message) {\n        return getFileFriendlyMessageId(message.getMessageId());\n    }\n\n    /**\n     * Configures the given message with the file which sets the body to the file object\n     * and sets the {@link FileComponent#HEADER_FILE_NAME} header.\n     */\n    public void configureMessage(File file, Message message) {\n        message.setBody(file);\n        String relativePath = file.getPath().substring(getFile().getPath().length());\n        if (relativePath.startsWith(File.separator) || relativePath.startsWith(\"/\")) {\n            relativePath = relativePath.substring(1);\n        }\n        message.setHeader(FileComponent.HEADER_FILE_NAME, relativePath);\n    }\n\n    public File getFile() {\n        ObjectHelper.notNull(file, \"file\");\n        if (autoCreate && !file.exists()) {\n            file.mkdirs();\n        }\n        return file;\n    }\n\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public boolean isAutoCreate() {\n        return this.autoCreate;\n    }\n\n    public void setAutoCreate(boolean autoCreate) {\n        this.autoCreate = autoCreate;\n    }\n\n    public FileProcessStrategy getFileStrategy() {\n        if (fileProcessStrategy == null) {\n            fileProcessStrategy = createFileStrategy();\n            LOG.debug(\"Using file process strategy: \" + fileProcessStrategy);\n        }\n        return fileProcessStrategy;\n    }\n\n    /**\n     * Sets the strategy to be used when the file has been processed such as\n     * deleting or renaming it etc.\n     *\n     * @param fileProcessStrategy the new strategy to use\n     */\n    public void setFileStrategy(FileProcessStrategy fileProcessStrategy) {\n        this.fileProcessStrategy = fileProcessStrategy;\n    }\n\n    public boolean isDelete() {\n        return delete;\n    }\n\n    public void setDelete(boolean delete) {\n        this.delete = delete;\n    }\n\n    public boolean isLock() {\n        return lock;\n    }\n\n    public void setLock(boolean lock) {\n        this.lock = lock;\n    }\n\n    public String getMoveNamePostfix() {\n        return moveNamePostfix;\n    }\n\n    /**\n     * Sets the name postfix appended to moved files. For example to rename all\n     * the files from <tt>*</tt> to <tt>*.done</tt> set this value to <tt>.done</tt>\n     */\n    public void setMoveNamePostfix(String moveNamePostfix) {\n        this.moveNamePostfix = moveNamePostfix;\n    }\n\n    public String getMoveNamePrefix() {\n        return moveNamePrefix;\n    }\n\n    /**\n     * Sets the name prefix appended to moved files. For example to move\n     * processed files into a hidden directory called <tt>.camel</tt> set this value to\n     * <tt>.camel/</tt>\n     */\n    public void setMoveNamePrefix(String moveNamePrefix) {\n        this.moveNamePrefix = moveNamePrefix;\n    }\n\n    public String[] getExcludedNamePrefixes() {\n        return excludedNamePrefixes;\n    }\n\n    /**\n     * Sets the excluded file name prefixes, such as <tt>\".\"</tt> for hidden files which\n     * are excluded by default\n     *\n     * @deprecated use ExcludedNamePrefix. Will be removed in Camel 2.0.\n     */\n    public void setExcludedNamePrefixes(String[] excludedNamePrefixes) {\n        this.excludedNamePrefixes = excludedNamePrefixes;\n    }\n\n    public String[] getExcludedNamePostfixes() {\n        return excludedNamePostfixes;\n    }\n\n    /**\n     * Sets the excluded file name postfixes, such as {@link FileEndpoint#DEFAULT_LOCK_FILE_POSTFIX}\n     * to ignore lock files by default.\n     *\n     * @deprecated use ExcludedNamePostfix. Will be removed in Camel 2.0.\n     */\n    public void setExcludedNamePostfixes(String[] excludedNamePostfixes) {\n        this.excludedNamePostfixes = excludedNamePostfixes;\n    }\n\n    public String getPreMoveNamePrefix() {\n        return preMoveNamePrefix;\n    }\n\n    public void setPreMoveNamePrefix(String preMoveNamePrefix) {\n        this.preMoveNamePrefix = preMoveNamePrefix;\n    }\n\n    /**\n     * Sets the name prefix appended to pre moved files. For example to move\n     * files before processing into a inprogress directory called <tt>.inprogress</tt> set this value to\n     * <tt>.inprogress/</tt>\n     */\n    public String getPreMoveNamePostfix() {\n        return preMoveNamePostfix;\n    }\n\n    /**\n     * Sets the name postfix appended to pre moved files. For example to rename\n     * files before processing from <tt>*</tt> to <tt>*.inprogress</tt> set this value to <tt>.inprogress</tt>\n     */\n    public void setPreMoveNamePostfix(String preMoveNamePostfix) {\n        this.preMoveNamePostfix = preMoveNamePostfix;\n    }\n\n    public boolean isNoop() {\n        return noop;\n    }\n\n    /**\n     * If set to true then the default {@link FileProcessStrategy} will be to use the\n     * {@link org.apache.camel.component.file.strategy.NoOpFileProcessStrategy NoOpFileProcessStrategy}\n     * to not move or copy processed files\n     */\n    public void setNoop(boolean noop) {\n        this.noop = noop;\n    }\n\n    public boolean isAppend() {\n        return append;\n    }\n\n    /**\n     * When writing do we append to the end of the file, or replace it?\n     * The default is to append\n     */\n    public void setAppend(boolean append) {\n        this.append = append;\n    }\n\n    public int getBufferSize() {\n        return bufferSize;\n    }\n\n    /**\n     * Sets the buffer size used to read/write files\n     */\n    public void setBufferSize(int bufferSize) {\n        this.bufferSize = bufferSize;\n    }\n\n    public boolean isIgnoreFileNameHeader() {\n        return ignoreFileNameHeader;\n    }\n\n    /**\n     * If this flag is enabled then producers will ignore the {@link FileComponent#HEADER_FILE_NAME}\n     * header and generate a new dynamic file\n     */\n    public void setIgnoreFileNameHeader(boolean ignoreFileNameHeader) {\n        this.ignoreFileNameHeader = ignoreFileNameHeader;\n    }\n\n    public String getExcludedNamePrefix() {\n        return excludedNamePrefix;\n    }\n\n    public void setExcludedNamePrefix(String excludedNamePrefix) {\n        this.excludedNamePrefix = excludedNamePrefix;\n    }\n\n    public String getExcludedNamePostfix() {\n        return excludedNamePostfix;\n    }\n\n    public void setExcludedNamePostfix(String excludedNamePostfix) {\n        this.excludedNamePostfix = excludedNamePostfix;\n    }\n\n    public Expression getExpression() {\n        return expression;\n    }\n\n    public void setExpression(Expression expression) {\n        this.expression = expression;\n    }\n\n    /**\n     * Sets the expression based on {@link FileLanguage}\n     */\n    public void setExpression(String fileLanguageExpression) {\n        this.expression = FileLanguage.file(fileLanguageExpression);\n    }\n\n    public Expression getPreMoveExpression() {\n        return preMoveExpression;\n    }\n\n    public void setPreMoveExpression(Expression expression) {\n        this.preMoveExpression = expression;\n    }\n\n    /**\n     * Sets the pre move expression based on {@link FileLanguage}\n     */\n    public void setPreMoveExpression(String fileLanguageExpression) {\n        this.preMoveExpression = FileLanguage.file(fileLanguageExpression);\n    }\n\n    /**\n     * A strategy method to lazily create the file strategy\n     */\n    protected FileProcessStrategy createFileStrategy() {\n        Class<?> factory = null;\n        try {\n            FactoryFinder finder = getCamelContext().createFactoryFinder(\"META-INF/services/org/apache/camel/component/\");\n            factory = finder.findClass(\"file\", \"strategy.factory.\");\n        } catch (ClassNotFoundException e) {\n            LOG.debug(\"'strategy.factory.class' not found\", e);\n        } catch (IOException e) {\n            LOG.debug(\"No strategy factory defined in 'META-INF/services/org/apache/camel/component/file'\", e);\n        }\n\n        if (factory == null) {\n            factory = ObjectHelper.loadClass(DEFAULT_STRATEGYFACTORY_CLASS);\n            if (factory == null) {\n                throw new TypeNotPresentException(\"FileProcessStrategyFactory class not found\", null);\n            }\n        }\n\n        try {\n            Method factoryMethod = factory.getMethod(\"createFileProcessStrategy\", Map.class);\n            return (FileProcessStrategy) ObjectHelper.invokeMethod(factoryMethod, null, getParamsAsMap());\n        } catch (NoSuchMethodException e) {\n            throw new TypeNotPresentException(factory.getSimpleName()\n                + \".createFileProcessStrategy(Properties params) method not found\", e);\n        }\n    }\n\n    protected Map<String, Object> getParamsAsMap() {\n        Map<String, Object> params = new HashMap<String, Object>();\n\n        if (isNoop()) {\n            params.put(\"noop\", Boolean.toString(true));\n        }\n        if (isDelete()) {\n            params.put(\"delete\", Boolean.toString(true));\n        }\n        if (isAppend()) {\n            params.put(\"append\", Boolean.toString(true));\n        }\n        if (isLock()) {\n            params.put(\"lock\", Boolean.toString(true));\n        }\n        if (moveNamePrefix != null) {\n            params.put(\"moveNamePrefix\", moveNamePrefix);\n        }\n        if (moveNamePostfix != null) {\n            params.put(\"moveNamePostfix\", moveNamePostfix);\n        }\n        if (preMoveNamePrefix != null) {\n            params.put(\"preMoveNamePrefix\", preMoveNamePrefix);\n        }\n        if (preMoveNamePostfix != null) {\n            params.put(\"preMoveNamePostfix\", preMoveNamePostfix);\n        }\n        if (expression != null) {\n            params.put(\"expression\", expression);\n        }\n        if (preMoveExpression != null) {\n            params.put(\"preMoveExpression\", preMoveExpression);\n        }\n\n        return params;\n    }\n\n    @Override\n    protected String createEndpointUri() {\n    }\n\n    protected String getFileFriendlyMessageId(String id) {\n        return UuidGenerator.generateSanitizedId(id);", "functions": [{"function_name": "createProducer", "code": "    public Producer<FileExchange> createProducer() throws Exception {\n        Producer<FileExchange> result = new FileProducer(this);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createConsumer", "code": "    public Consumer<FileExchange> createConsumer(Processor processor) throws Exception {\n        Consumer<FileExchange> result = new FileConsumer(this, processor);\n\n        if (isDelete() && (getMoveNamePrefix() != null || getMoveNamePostfix() != null || getExpression() != null)) {\n            throw new IllegalArgumentException(\"You cannot set delet and a moveNamePrefix, moveNamePostfix or expression option\");\n        }\n        \n        configureConsumer(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [6, 9], [3, 10], [7, 11], [8, 12], [8, 13], [11, 14], [12, 15], [12, 16], [13, 17], [13, 18], [17, 19], [17, 20], [18, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 6], [10, 3], [11, 7], [12, 8], [13, 8], [14, 11], [15, 12], [16, 12], [17, 13], [18, 13], [19, 17], [20, 17], [21, 18], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "createExchange", "code": "    public FileExchange createExchange(File file) {\n        return new FileExchange(getCamelContext(), getExchangePattern(), file);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createExchange", "code": "    @Override\n    public FileExchange createExchange() {\n        return createExchange(getFile());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createExchange", "code": "    @Override\n    public FileExchange createExchange(ExchangePattern pattern) {\n        return new FileExchange(getCamelContext(), pattern, file);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getGeneratedFileName", "code": "    public String getGeneratedFileName(Message message) {\n        return getFileFriendlyMessageId(message.getMessageId());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "configureMessage", "code": "    public void configureMessage(File file, Message message) {\n        message.setBody(file);\n        String relativePath = file.getPath().substring(getFile().getPath().length());\n        if (relativePath.startsWith(File.separator) || relativePath.startsWith(\"/\")) {\n            relativePath = relativePath.substring(1);\n        }\n        message.setHeader(FileComponent.HEADER_FILE_NAME, relativePath);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [6, 8], [6, 9], [2, 10], [1, 11], [8, 12], [10, 13], [11, 14], [13, 15], [14, 16], [15, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 6], [9, 6], [10, 2], [11, 1], [12, 8], [13, 10], [14, 11], [15, 13], [16, 14], [17, 15], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getFile", "code": "    public File getFile() {\n        ObjectHelper.notNull(file, \"file\");\n        if (autoCreate && !file.exists()) {\n            file.mkdirs();\n        }\n        return file;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [0, 4], [3, 5], [4, 6], [2, 7], [1, 0], [2, 0], [3, 2], [4, 0], [5, 3], [6, 4], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAutoCreate", "code": "    public boolean isAutoCreate() {\n        return this.autoCreate;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoCreate", "code": "    public void setAutoCreate(boolean autoCreate) {\n        this.autoCreate = autoCreate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFileStrategy", "code": "    public FileProcessStrategy getFileStrategy() {\n        if (fileProcessStrategy == null) {\n            fileProcessStrategy = createFileStrategy();\n            LOG.debug(\"Using file process strategy: \" + fileProcessStrategy);\n        }\n        return fileProcessStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setFileStrategy", "code": "    public void setFileStrategy(FileProcessStrategy fileProcessStrategy) {\n        this.fileProcessStrategy = fileProcessStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDelete", "code": "    public boolean isDelete() {\n        return delete;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDelete", "code": "    public void setDelete(boolean delete) {\n        this.delete = delete;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isLock", "code": "    public boolean isLock() {\n        return lock;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLock", "code": "    public void setLock(boolean lock) {\n        this.lock = lock;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMoveNamePostfix", "code": "    public String getMoveNamePostfix() {\n        return moveNamePostfix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMoveNamePostfix", "code": "    public void setMoveNamePostfix(String moveNamePostfix) {\n        this.moveNamePostfix = moveNamePostfix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMoveNamePrefix", "code": "    public String getMoveNamePrefix() {\n        return moveNamePrefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMoveNamePrefix", "code": "    public void setMoveNamePrefix(String moveNamePrefix) {\n        this.moveNamePrefix = moveNamePrefix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExcludedNamePrefixes", "code": "    public String[] getExcludedNamePrefixes() {\n        return excludedNamePrefixes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExcludedNamePrefixes", "code": "    public void setExcludedNamePrefixes(String[] excludedNamePrefixes) {\n        this.excludedNamePrefixes = excludedNamePrefixes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExcludedNamePostfixes", "code": "    public String[] getExcludedNamePostfixes() {\n        return excludedNamePostfixes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExcludedNamePostfixes", "code": "    public void setExcludedNamePostfixes(String[] excludedNamePostfixes) {\n        this.excludedNamePostfixes = excludedNamePostfixes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPreMoveNamePrefix", "code": "    public String getPreMoveNamePrefix() {\n        return preMoveNamePrefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPreMoveNamePrefix", "code": "    public void setPreMoveNamePrefix(String preMoveNamePrefix) {\n        this.preMoveNamePrefix = preMoveNamePrefix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPreMoveNamePostfix", "code": "    public String getPreMoveNamePostfix() {\n        return preMoveNamePostfix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPreMoveNamePostfix", "code": "    public void setPreMoveNamePostfix(String preMoveNamePostfix) {\n        this.preMoveNamePostfix = preMoveNamePostfix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNoop", "code": "    public boolean isNoop() {\n        return noop;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNoop", "code": "    public void setNoop(boolean noop) {\n        this.noop = noop;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAppend", "code": "    public boolean isAppend() {\n        return append;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAppend", "code": "    public void setAppend(boolean append) {\n        this.append = append;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBufferSize", "code": "    public int getBufferSize() {\n        return bufferSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBufferSize", "code": "    public void setBufferSize(int bufferSize) {\n        this.bufferSize = bufferSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isIgnoreFileNameHeader", "code": "    public boolean isIgnoreFileNameHeader() {\n        return ignoreFileNameHeader;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreFileNameHeader", "code": "    public void setIgnoreFileNameHeader(boolean ignoreFileNameHeader) {\n        this.ignoreFileNameHeader = ignoreFileNameHeader;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExcludedNamePrefix", "code": "    public String getExcludedNamePrefix() {\n        return excludedNamePrefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExcludedNamePrefix", "code": "    public void setExcludedNamePrefix(String excludedNamePrefix) {\n        this.excludedNamePrefix = excludedNamePrefix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExcludedNamePostfix", "code": "    public String getExcludedNamePostfix() {\n        return excludedNamePostfix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExcludedNamePostfix", "code": "    public void setExcludedNamePostfix(String excludedNamePostfix) {\n        this.excludedNamePostfix = excludedNamePostfix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExpression", "code": "    public Expression getExpression() {\n        return expression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExpression", "code": "    public void setExpression(Expression expression) {\n        this.expression = expression;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setExpression", "code": "    public void setExpression(String fileLanguageExpression) {\n        this.expression = FileLanguage.file(fileLanguageExpression);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPreMoveExpression", "code": "    public Expression getPreMoveExpression() {\n        return preMoveExpression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPreMoveExpression", "code": "    public void setPreMoveExpression(Expression expression) {\n        this.preMoveExpression = expression;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPreMoveExpression", "code": "    public void setPreMoveExpression(String fileLanguageExpression) {\n        this.preMoveExpression = FileLanguage.file(fileLanguageExpression);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createFileStrategy", "code": "    protected FileProcessStrategy createFileStrategy() {\n        Class<?> factory = null;\n        try {\n            FactoryFinder finder = getCamelContext().createFactoryFinder(\"META-INF/services/org/apache/camel/component/\");\n            factory = finder.findClass(\"file\", \"strategy.factory.\");\n        } catch (ClassNotFoundException e) {\n            LOG.debug(\"'strategy.factory.class' not found\", e);\n        } catch (IOException e) {\n            LOG.debug(\"No strategy factory defined in 'META-INF/services/org/apache/camel/component/file'\", e);\n        }\n\n        if (factory == null) {\n            factory = ObjectHelper.loadClass(DEFAULT_STRATEGYFACTORY_CLASS);\n            if (factory == null) {\n                throw new TypeNotPresentException(\"FileProcessStrategyFactory class not found\", null);\n            }\n        }\n\n        try {\n            Method factoryMethod = factory.getMethod(\"createFileProcessStrategy\", Map.class);\n            return (FileProcessStrategy) ObjectHelper.invokeMethod(factoryMethod, null, getParamsAsMap());\n        } catch (NoSuchMethodException e) {\n            throw new TypeNotPresentException(factory.getSimpleName()\n                + \".createFileProcessStrategy(Properties params) method not found\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "TRY", "VAR_DECL", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "CATCH", "CATCH", "VAR_DECL", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [3, 10], [3, 11], [5, 12], [2, 13], [8, 14], [3, 15], [4, 16], [12, 17], [6, 18], [7, 19], [13, 20], [2, 21], [9, 22], [10, 23], [15, 24], [11, 25], [17, 26], [18, 27], [18, 28], [19, 29], [13, 30], [20, 31], [21, 32], [22, 33], [23, 34], [24, 35], [24, 36], [25, 37], [26, 38], [26, 39], [30, 40], [37, 41], [40, 42], [40, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 3], [11, 3], [12, 5], [13, 2], [14, 8], [15, 3], [16, 4], [17, 12], [18, 6], [19, 7], [20, 13], [21, 2], [22, 9], [23, 10], [24, 15], [25, 11], [26, 17], [27, 18], [28, 18], [29, 19], [30, 13], [31, 20], [32, 21], [33, 22], [34, 23], [35, 24], [36, 24], [37, 25], [38, 26], [39, 26], [40, 30], [41, 37], [42, 40], [43, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "getParamsAsMap", "code": "    protected Map<String, Object> getParamsAsMap() {\n        Map<String, Object> params = new HashMap<String, Object>();\n\n        if (isNoop()) {\n            params.put(\"noop\", Boolean.toString(true));\n        }\n        if (isDelete()) {\n            params.put(\"delete\", Boolean.toString(true));\n        }\n        if (isAppend()) {\n            params.put(\"append\", Boolean.toString(true));\n        }\n        if (isLock()) {\n            params.put(\"lock\", Boolean.toString(true));\n        }\n        if (moveNamePrefix != null) {\n            params.put(\"moveNamePrefix\", moveNamePrefix);\n        }\n        if (moveNamePostfix != null) {\n            params.put(\"moveNamePostfix\", moveNamePostfix);\n        }\n        if (preMoveNamePrefix != null) {\n            params.put(\"preMoveNamePrefix\", preMoveNamePrefix);\n        }\n        if (preMoveNamePostfix != null) {\n            params.put(\"preMoveNamePostfix\", preMoveNamePostfix);\n        }\n        if (expression != null) {\n            params.put(\"expression\", expression);\n        }\n        if (preMoveExpression != null) {\n            params.put(\"preMoveExpression\", preMoveExpression);\n        }\n\n        return params;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [3, 14], [4, 15], [5, 16], [6, 17], [7, 18], [8, 19], [9, 20], [10, 21], [11, 22], [13, 23], [14, 24], [15, 25], [16, 26], [17, 27], [18, 28], [12, 29], [2, 30], [3, 31], [4, 32], [5, 33], [6, 34], [7, 35], [8, 36], [9, 37], [10, 38], [11, 39], [30, 40], [31, 41], [32, 42], [33, 43], [34, 44], [35, 45], [36, 46], [36, 47], [37, 48], [37, 49], [38, 50], [38, 51], [39, 52], [39, 53], [46, 54], [48, 55], [50, 56], [52, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 3], [15, 4], [16, 5], [17, 6], [18, 7], [19, 8], [20, 9], [21, 10], [22, 11], [23, 13], [24, 14], [25, 15], [26, 16], [27, 17], [28, 18], [29, 12], [30, 2], [31, 3], [32, 4], [33, 5], [34, 6], [35, 7], [36, 8], [37, 9], [38, 10], [39, 11], [40, 30], [41, 31], [42, 32], [43, 33], [44, 34], [45, 35], [46, 36], [47, 36], [48, 37], [49, 37], [50, 38], [51, 38], [52, 39], [53, 39], [54, 46], [55, 48], [56, 50], [57, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "createEndpointUri", "code": "    @Override\n    protected String createEndpointUri() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getFileFriendlyMessageId", "code": "    protected String getFileFriendlyMessageId(String id) {\n        return UuidGenerator.generateSanitizedId(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FileEndpoint", "code": "    protected FileEndpoint(File file, String endpointUri, FileComponent component) {\n        super(endpointUri, component);\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "FileEndpoint", "code": "    public FileEndpoint(String endpointUri, File file) {\n        super(endpointUri);\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FileEndpoint", "code": "    public FileEndpoint(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FileEndpoint", "code": "    public FileEndpoint() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.5-6926", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/templates/StylesheetComposed.java", "language": "java", "name": "org.apache.xalan.templates.StylesheetComposed", "code": "public class StylesheetComposed extends Stylesheet\n{\n\n  /**\n   * Uses an XSL stylesheet document.\n   * @param parent  The including or importing stylesheet.\n   */\n  public StylesheetComposed(Stylesheet parent)\n  {\n    super(parent);\n  }\n\n  /**\n   * Tell if this can be cast to a StylesheetComposed, meaning, you\n   * can ask questions from getXXXComposed functions.\n   *\n   * @return True since this is a StylesheetComposed \n   */\n  public boolean isAggregatedType()\n  {\n    return true;\n  }\n\n  /**\n   * Adds all recomposable values for this precedence level into the recomposableElements Vector\n   * that was passed in as the first parameter.  All elements added to the\n   * recomposableElements vector should extend ElemTemplateElement.\n   * @param recomposableElements a Vector of ElemTemplateElement objects that we will add all of\n   *        our recomposable objects to.\n   */\n  public void recompose(Vector recomposableElements) throws TransformerException\n  {\n\n\n\n    int n = getIncludeCountComposed();\n\n    for (int i = -1; i < n; i++)\n    {\n      Stylesheet included = getIncludeComposed(i);\n\n\n      int s = included.getOutputCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getOutput(j));\n      }\n\n\n      s = included.getAttributeSetCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getAttributeSet(j));\n      }\n\n\n      s = included.getDecimalFormatCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getDecimalFormat(j));\n      }\n\n\n      s = included.getKeyCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getKey(j));\n      }\n\n\n      s = included.getNamespaceAliasCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getNamespaceAlias(j));\n      }\n\n\n      s = included.getTemplateCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getTemplate(j));\n      }\n\n\n      s = included.getVariableOrParamCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getVariableOrParam(j));\n      }\n\n\n      s = included.getStripSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getStripSpace(j));\n      }\n\n      s = included.getPreserveSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getPreserveSpace(j));\n      }\n    }\n  }\n\n  /** Order in import chain.\n   *  @serial         */\n  private int m_importNumber = -1;\n\n  /** The precedence of this stylesheet in the global import list.\n   *  The lowest precedence stylesheet is 0.  A higher\n   *  number has a higher precedence.\n   *  @serial\n   */\n  private int m_importCountComposed;\n  \n  /* The count of imports composed for this stylesheet */\n  private int m_endImportCountComposed;\n\n  /**\n   * Recalculate the precedence of this stylesheet in the global\n   * import list.  The lowest precedence stylesheet is 0.  A higher\n   * number has a higher precedence.\n   */\n  void recomposeImports()\n  {\n\n    m_importNumber = getStylesheetRoot().getImportNumber(this);\n\n    StylesheetRoot root = getStylesheetRoot();\n    int globalImportCount = root.getGlobalImportCount();\n\n    m_importCountComposed = (globalImportCount - m_importNumber) - 1;\n    \n    int count = getImportCount();\n    if ( count > 0)\n    {\n      m_endImportCountComposed += count;\n      while (count > 0)\n        m_endImportCountComposed += this.getImport(--count).getEndImportCountComposed();\n    }\n    \n    count = getIncludeCountComposed();\n    while (count>0)\n    {\n      int imports = getIncludeComposed(--count).getImportCount();\n      m_endImportCountComposed += imports;\n      while (imports > 0)\n        m_endImportCountComposed +=getIncludeComposed(count).getImport(--imports).getEndImportCountComposed();\n     \n    }                                                            \n  }\n\n  /**\n   * Get a stylesheet from the \"import\" list.\n   *\n   * @param i Index of stylesheet in import list \n   *\n   * @return The stylesheet at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public StylesheetComposed getImportComposed(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    StylesheetRoot root = getStylesheetRoot();\n\n    return root.getGlobalImport(1 + m_importNumber + i);\n  }\n\n  /**\n   * Get the precedence of this stylesheet in the global import list.\n   * The lowest precedence is 0.  A higher number has a higher precedence.\n   *\n   * @return the precedence of this stylesheet in the global import list.\n   */\n  public int getImportCountComposed()\n  {\n    return m_importCountComposed;\n  }\n  \n  /**\n   * Get the number of import in this stylesheet's composed list.\n   *\n   * @return the number of imports in this stylesheet's composed list.\n   */\n  public int getEndImportCountComposed()\n  {\n    return m_endImportCountComposed;\n  }\n  \n\n  /**\n   * The combined list of includes.\n   * @serial\n   */\n  private transient Vector m_includesComposed;\n\n  /**\n   * Recompose the value of the composed include list.  Builds a composite\n   * list of all stylesheets included by this stylesheet to any depth.\n   *\n   * @param including Stylesheet to recompose\n   */\n  void recomposeIncludes(Stylesheet including)\n  {\n\n    int n = including.getIncludeCount();\n\n    if (n > 0)\n    {\n      if (null == m_includesComposed)\n        m_includesComposed = new Vector();\n\n      for (int i = 0; i < n; i++)\n      {\n        Stylesheet included = including.getInclude(i);\n        m_includesComposed.addElement(included);\n        recomposeIncludes(included);\n      }\n    }\n  }\n\n  /**\n   * Get an \"xsl:include\" property.\n   *\n   * @param i Index of stylesheet in \"include\" list \n   *\n   * @return The stylesheet at the given index in the \"include\" list \n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public Stylesheet getIncludeComposed(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (-1 == i)\n      return this;\n\n    if (null == m_includesComposed)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (Stylesheet) m_includesComposed.elementAt(i);\n  }\n\n  /**\n   * Get the number of included stylesheets.\n   *\n   * @return the number of included stylesheets.\n   */\n  public int getIncludeCountComposed()\n  {\n    return (null != m_includesComposed) ? m_includesComposed.size() : 0;\n  }\n\n  /**\n   * For compilation support, we need the option of overwriting\n   * (rather than appending to) previous composition.\n   * We could phase out the old API in favor of this one, but I'm\n   * holding off until we've made up our minds about compilation.\n   * ADDED 9/5/2000 to support compilation experiment.\n   * NOTE: GLP 29-Nov-00 I've left this method in so that CompilingStylesheetHandler will compile.  However,\n   *                     I'm not sure why it's needed or what it does and I've commented out the body.\n   *\n   * @param flushFirst Flag indicating the option of overwriting\n   * (rather than appending to) previous composition.\n   *\n   * @throws TransformerException\n   */\n  public void recomposeTemplates(boolean flushFirst) throws TransformerException", "functions": [{"function_name": "isAggregatedType", "code": "  public boolean isAggregatedType()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "recompose", "code": "  public void recompose(Vector recomposableElements) throws TransformerException\n  {\n\n\n\n    int n = getIncludeCountComposed();\n\n    for (int i = -1; i < n; i++)\n    {\n      Stylesheet included = getIncludeComposed(i);\n\n\n      int s = included.getOutputCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getOutput(j));\n      }\n\n\n      s = included.getAttributeSetCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getAttributeSet(j));\n      }\n\n\n      s = included.getDecimalFormatCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getDecimalFormat(j));\n      }\n\n\n      s = included.getKeyCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getKey(j));\n      }\n\n\n      s = included.getNamespaceAliasCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getNamespaceAlias(j));\n      }\n\n\n      s = included.getTemplateCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getTemplate(j));\n      }\n\n\n      s = included.getVariableOrParamCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getVariableOrParam(j));\n      }\n\n\n      s = included.getStripSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getStripSpace(j));\n      }\n\n      s = included.getPreserveSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        recomposableElements.addElement(included.getPreserveSpace(j));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [2, 16], [5, 17], [1, 18], [6, 19], [1, 20], [7, 21], [1, 22], [8, 23], [1, 24], [9, 25], [1, 26], [10, 27], [1, 28], [11, 29], [1, 30], [12, 31], [1, 32], [13, 33], [1, 34], [18, 35], [20, 36], [22, 37], [24, 38], [26, 39], [28, 40], [30, 41], [32, 42], [14, 43], [15, 44], [5, 45], [5, 46], [6, 47], [6, 48], [7, 49], [7, 50], [8, 51], [8, 52], [9, 53], [9, 54], [10, 55], [10, 56], [11, 57], [11, 58], [12, 59], [12, 60], [13, 61], [13, 62], [45, 63], [47, 64], [49, 65], [51, 66], [53, 67], [55, 68], [57, 69], [59, 70], [61, 71], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 2], [17, 5], [18, 1], [19, 6], [20, 1], [21, 7], [22, 1], [23, 8], [24, 1], [25, 9], [26, 1], [27, 10], [28, 1], [29, 11], [30, 1], [31, 12], [32, 1], [33, 13], [34, 1], [35, 18], [36, 20], [37, 22], [38, 24], [39, 26], [40, 28], [41, 30], [42, 32], [43, 14], [44, 15], [45, 5], [46, 5], [47, 6], [48, 6], [49, 7], [50, 7], [51, 8], [52, 8], [53, 9], [54, 9], [55, 10], [56, 10], [57, 11], [58, 11], [59, 12], [60, 12], [61, 13], [62, 13], [63, 45], [64, 47], [65, 49], [66, 51], [67, 53], [68, 55], [69, 57], [70, 59], [71, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "recomposeImports", "code": "  void recomposeImports()\n  {\n\n    m_importNumber = getStylesheetRoot().getImportNumber(this);\n\n    StylesheetRoot root = getStylesheetRoot();\n    int globalImportCount = root.getGlobalImportCount();\n\n    m_importCountComposed = (globalImportCount - m_importNumber) - 1;\n    \n    int count = getImportCount();\n    if ( count > 0)\n    {\n      m_endImportCountComposed += count;\n      while (count > 0)\n        m_endImportCountComposed += this.getImport(--count).getEndImportCountComposed();\n    }\n    \n    count = getIncludeCountComposed();\n    while (count>0)\n    {\n      int imports = getIncludeComposed(--count).getImportCount();\n      m_endImportCountComposed += imports;\n      while (imports > 0)\n        m_endImportCountComposed +=getIncludeComposed(count).getImport(--imports).getEndImportCountComposed();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [0, 9], [0, 10], [1, 11], [1, 12], [6, 13], [7, 14], [2, 15], [8, 16], [3, 17], [9, 18], [4, 19], [5, 20], [10, 21], [11, 22], [1, 23], [15, 24], [2, 25], [18, 26], [18, 27], [21, 28], [11, 29], [22, 30], [12, 31], [15, 32], [24, 33], [29, 34], [31, 35], [34, 36], [34, 37], [32, 38], [32, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 0], [10, 0], [11, 1], [12, 1], [13, 6], [14, 7], [15, 2], [16, 8], [17, 3], [18, 9], [19, 4], [20, 5], [21, 10], [22, 11], [23, 1], [24, 15], [25, 2], [26, 18], [27, 18], [28, 21], [29, 11], [30, 22], [31, 12], [32, 15], [33, 24], [34, 29], [35, 31], [36, 34], [37, 34], [38, 32], [39, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getImportComposed", "code": "  public StylesheetComposed getImportComposed(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    StylesheetRoot root = getStylesheetRoot();\n\n    return root.getGlobalImport(1 + m_importNumber + i);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getImportCountComposed", "code": "  public int getImportCountComposed()\n  {\n    return m_importCountComposed;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEndImportCountComposed", "code": "  public int getEndImportCountComposed()\n  {\n    return m_endImportCountComposed;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "recomposeIncludes", "code": "  void recomposeIncludes(Stylesheet including)\n  {\n\n    int n = including.getIncludeCount();\n\n    if (n > 0)\n    {\n      if (null == m_includesComposed)\n        m_includesComposed = new Vector();\n\n      for (int i = 0; i < n; i++)\n      {\n        Stylesheet included = including.getInclude(i);\n        m_includesComposed.addElement(included);\n        recomposeIncludes(included);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [6, 10], [5, 11], [6, 12], [10, 13], [5, 14], [5, 15], [5, 16], [12, 17], [11, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 6], [11, 5], [12, 6], [13, 10], [14, 5], [15, 5], [16, 5], [17, 12], [18, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getIncludeComposed", "code": "  public Stylesheet getIncludeComposed(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (-1 == i)\n      return this;\n\n    if (null == m_includesComposed)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (Stylesheet) m_includesComposed.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [3, 8], [1, 9], [5, 10], [6, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 3], [9, 1], [10, 5], [11, 6], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getIncludeCountComposed", "code": "  public int getIncludeCountComposed()\n  {\n    return (null != m_includesComposed) ? m_includesComposed.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "recomposeTemplates", "code": "  public void recomposeTemplates(boolean flushFirst) throws TransformerException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "StylesheetComposed", "code": "  public StylesheetComposed(Stylesheet parent)\n  {\n    super(parent);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-3114", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/Description.java", "language": "java", "name": "org.apache.camel.model.Description", "code": "@XmlRootElement(name = \"description\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class Description {\n    @XmlAttribute(required = false)\n    private String lang;\n\n    @XmlValue\n    private String text;\n\n    public String getLang() {\n        return lang;\n    }\n\n    public void setLang(String lang) {\n        this.lang = lang;\n    }\n\n    public String getText() {\n        return text;\n    }\n\n    public void setText(String text) {\n        this.text = text;", "functions": [{"function_name": "getLang", "code": "    public String getLang() {\n        return lang;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLang", "code": "    public void setLang(String lang) {\n        this.lang = lang;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getText", "code": "    public String getText() {\n        return text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setText", "code": "    public void setText(String text) {\n        this.text = text;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1127", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKIN", "code": "public class MSVSSCHECKIN extends MSVSS {\n\n    /**\n     * Builds a command line to execute ss.\n     * @return     The constructed commandline.\n     */\n    protected Commandline buildCmdLine() {\n        Commandline commandLine = new Commandline();\n\n        if (getVsspath() == null) {\n            String msg = \"vsspath attribute must be set!\";\n            throw new BuildException(msg, getLocation());\n        }\n\n        commandLine.setExecutable(getSSCommand());\n        commandLine.createArgument().setValue(COMMAND_CHECKIN);\n\n        commandLine.createArgument().setValue(getVsspath());\n        commandLine.createArgument().setValue(getLocalpath());\n        commandLine.createArgument().setValue(getAutoresponse());\n        commandLine.createArgument().setValue(getRecursive());\n        commandLine.createArgument().setValue(getWritable());\n        commandLine.createArgument().setValue(getLogin());\n        commandLine.createArgument().setValue(getComment());\n\n        return commandLine;\n    }\n\n    /**\n     * Override the project working directory.\n     *\n     * @param   localPath   The path on disk.\n     */\n    public void setLocalpath(Path localPath) {\n        super.setInternalLocalPath(localPath.toString());\n    }\n\n    /**\n     * Check-in files recursively. Defaults to false.\n     *\n     * @param recursive  The boolean value for recursive.\n     */\n    public void setRecursive(boolean recursive) {\n        super.setInternalRecursive(recursive);\n    }\n\n    /**\n     * Unset the READ-ONLY flag on local copies of files checked-in to VSS.\n     * Defaults to false.\n     *\n     * @param   writable The boolean value for writable.\n     */\n    public final void setWritable(boolean writable) {\n        super.setInternalWritable(writable);\n    }\n\n    /**\n     * Autoresponce behaviour. Valid options are Y and N.\n     *\n     * @param response The auto response value.\n     */\n    public void setAutoresponse(String response) {\n        super.setInternalAutoResponse(response);\n    }\n\n    /**\n     * Comment to apply to files checked-in to SourceSafe.\n     *\n     * @param comment The comment to apply in SourceSafe\n     */\n    public void setComment(String comment) {\n        super.setInternalComment(comment);", "functions": [{"function_name": "buildCmdLine", "code": "    protected Commandline buildCmdLine() {\n        Commandline commandLine = new Commandline();\n\n        if (getVsspath() == null) {\n            String msg = \"vsspath attribute must be set!\";\n            throw new BuildException(msg, getLocation());\n        }\n\n        commandLine.setExecutable(getSSCommand());\n        commandLine.createArgument().setValue(COMMAND_CHECKIN);\n\n        commandLine.createArgument().setValue(getVsspath());\n        commandLine.createArgument().setValue(getLocalpath());\n        commandLine.createArgument().setValue(getAutoresponse());\n        commandLine.createArgument().setValue(getRecursive());\n        commandLine.createArgument().setValue(getWritable());\n        commandLine.createArgument().setValue(getLogin());\n        commandLine.createArgument().setValue(getComment());\n\n        return commandLine;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [4, 14], [5, 15], [6, 16], [7, 17], [8, 18], [9, 19], [10, 20], [11, 21], [12, 22], [2, 23], [2, 24], [13, 25], [13, 26], [3, 27], [14, 28], [15, 29], [16, 30], [17, 31], [18, 32], [19, 33], [20, 34], [23, 35], [35, 36], [24, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 4], [15, 5], [16, 6], [17, 7], [18, 8], [19, 9], [20, 10], [21, 11], [22, 12], [23, 2], [24, 2], [25, 13], [26, 13], [27, 3], [28, 14], [29, 15], [30, 16], [31, 17], [32, 18], [33, 19], [34, 20], [35, 23], [36, 35], [37, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "setLocalpath", "code": "    public void setLocalpath(Path localPath) {\n        super.setInternalLocalPath(localPath.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRecursive", "code": "    public void setRecursive(boolean recursive) {\n        super.setInternalRecursive(recursive);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWritable", "code": "    public final void setWritable(boolean writable) {\n        super.setInternalWritable(writable);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoresponse", "code": "    public void setAutoresponse(String response) {\n        super.setInternalAutoResponse(response);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setComment", "code": "    public void setComment(String comment) {\n        super.setInternalComment(comment);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-2.0-5613", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/util/ShortList.java", "language": "java", "name": "org.apache.poi.util.ShortList", "code": "public class ShortList\n{\n    private short[]          _array;\n    private int              _limit;\n    private static final int _default_size = 128;\n\n    /**\n     * create an ShortList of default size\n     */\n\n    public ShortList()\n    {\n        this(_default_size);\n    }\n\n    /**\n     * create a copy of an existing ShortList\n     *\n     * @param list the existing ShortList\n     */\n\n    public ShortList(final ShortList list)\n    {\n        this(list._array.length);\n        System.arraycopy(list._array, 0, _array, 0, _array.length);\n        _limit = list._limit;\n    }\n\n    /**\n     * create an ShortList with a predefined initial size\n     *\n     * @param initialCapacity the size for the internal array\n     */\n\n    public ShortList(final int initialCapacity)\n    {\n        _array = new short[ initialCapacity ];\n        _limit = 0;\n    }\n\n    /**\n     * add the specfied value at the specified index\n     *\n     * @param index the index where the new value is to be added\n     * @param value the new value\n     *\n     * @exception IndexOutOfBoundsException if the index is out of\n     *            range (index < 0 || index > size()).\n     */\n\n    public void add(final int index, final short value)\n    {\n        if (index > _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        else if (index == _limit)\n        {\n            add(value);\n        }\n        else\n        {\n\n            if (_limit == _array.length)\n            {\n                growArray(_limit * 2);\n            }\n            System.arraycopy(_array, index, _array, index + 1,\n                             _limit - index);\n            _array[ index ] = value;\n            _limit++;\n        }\n    }\n\n    /**\n     * Appends the specified element to the end of this list\n     *\n     * @param value element to be appended to this list.\n     *\n     * @return true (as per the general contract of the Collection.add\n     *         method).\n     */\n\n    public boolean add(final short value)\n    {\n        if (_limit == _array.length)\n        {\n            growArray(_limit * 2);\n        }\n        _array[ _limit++ ] = value;\n        return true;\n    }\n\n    /**\n     * Appends all of the elements in the specified collection to the\n     * end of this list, in the order that they are returned by the\n     * specified collection's iterator.  The behavior of this\n     * operation is unspecified if the specified collection is\n     * modified while the operation is in progress.  (Note that this\n     * will occur if the specified collection is this list, and it's\n     * nonempty.)\n     *\n     * @param c collection whose elements are to be added to this\n     *          list.\n     *\n     * @return true if this list changed as a result of the call.\n     */\n\n    public boolean addAll(final ShortList c)\n    {\n        if (c._limit != 0)\n        {\n            if ((_limit + c._limit) > _array.length)\n            {\n                growArray(_limit + c._limit);\n            }\n            System.arraycopy(c._array, 0, _array, _limit, c._limit);\n            _limit += c._limit;\n        }\n        return true;\n    }\n\n    /**\n     * Inserts all of the elements in the specified collection into\n     * this list at the specified position.  Shifts the element\n     * currently at that position (if any) and any subsequent elements\n     * to the right (increases their indices).  The new elements will\n     * appear in this list in the order that they are returned by the\n     * specified collection's iterator.  The behavior of this\n     * operation is unspecified if the specified collection is\n     * modified while the operation is in progress.  (Note that this\n     * will occur if the specified collection is this list, and it's\n     * nonempty.)\n     *\n     * @param index index at which to insert first element from the\n     *              specified collection.\n     * @param c elements to be inserted into this list.\n     *\n     * @return true if this list changed as a result of the call.\n     *\n     * @exception IndexOutOfBoundsException if the index is out of\n     *            range (index < 0 || index > size())\n     */\n\n    public boolean addAll(final int index, final ShortList c)\n    {\n        if (index > _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        if (c._limit != 0)\n        {\n            if ((_limit + c._limit) > _array.length)\n            {\n                growArray(_limit + c._limit);\n            }\n\n            System.arraycopy(_array, index, _array, index + c._limit,\n                             _limit - index);\n\n            System.arraycopy(c._array, 0, _array, index, c._limit);\n            _limit += c._limit;\n        }\n        return true;\n    }\n\n    /**\n     * Removes all of the elements from this list.  This list will be\n     * empty after this call returns (unless it throws an exception).\n     */\n\n    public void clear()\n    {\n        _limit = 0;\n    }\n\n    /**\n     * Returns true if this list contains the specified element.  More\n     * formally, returns true if and only if this list contains at\n     * least one element e such that o == e\n     *\n     * @param o element whose presence in this list is to be tested.\n     *\n     * @return true if this list contains the specified element.\n     */\n\n    public boolean contains(final short o)\n    {\n        boolean rval = false;\n\n        for (int j = 0; !rval && (j < _limit); j++)\n        {\n            if (_array[ j ] == o)\n            {\n                rval = true;\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Returns true if this list contains all of the elements of the\n     * specified collection.\n     *\n     * @param c collection to be checked for containment in this list.\n     *\n     * @return true if this list contains all of the elements of the\n     *         specified collection.\n     */\n\n    public boolean containsAll(final ShortList c)\n    {\n        boolean rval = true;\n\n        if (this != c)\n        {\n            for (int j = 0; rval && (j < c._limit); j++)\n            {\n                if (!contains(c._array[ j ]))\n                {\n                    rval = false;\n                }\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Compares the specified object with this list for equality.\n     * Returns true if and only if the specified object is also a\n     * list, both lists have the same size, and all corresponding\n     * pairs of elements in the two lists are equal.  (Two elements e1\n     * and e2 are equal if e1 == e2.)  In other words, two lists are\n     * defined to be equal if they contain the same elements in the\n     * same order.  This definition ensures that the equals method\n     * works properly across different implementations of the List\n     * interface.\n     *\n     * @param o the object to be compared for equality with this list.\n     *\n     * @return true if the specified object is equal to this list.\n     */\n\n    public boolean equals(final Object o)\n    {\n        boolean rval = this == o;\n\n        if (!rval && (o != null) && (o.getClass() == this.getClass()))\n        {\n            ShortList other = ( ShortList ) o;\n\n            if (other._limit == _limit)\n            {\n\n                rval = true;\n                for (int j = 0; rval && (j < _limit); j++)\n                {\n                    rval = _array[ j ] == other._array[ j ];\n                }\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Returns the element at the specified position in this list.\n     *\n     * @param index index of element to return.\n     *\n     * @return the element at the specified position in this list.\n     *\n     * @exception IndexOutOfBoundsException if the index is out of\n     *            range (index < 0 || index >= size()).\n     */\n\n    public short get(final int index)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        return _array[ index ];\n    }\n\n    /**\n     * Returns the hash code value for this list.  The hash code of a\n     * list is defined to be the result of the following calculation:\n     *\n     * <code>\n     * hashCode = 1;\n     * Iterator i = list.iterator();\n     * while (i.hasNext()) {\n     *      Object obj = i.next();\n     *      hashCode = 31*hashCode + (obj==null ? 0 : obj.hashCode());\n     * }\n     * </code>\n     *\n     * This ensures that list1.equals(list2) implies that\n     * list1.hashCode()==list2.hashCode() for any two lists, list1 and\n     * list2, as required by the general contract of Object.hashCode.\n     *\n     * @return the hash code value for this list.\n     */\n\n    public int hashCode()\n    {\n        int hash = 0;\n\n        for (int j = 0; j < _limit; j++)\n        {\n            hash = (31 * hash) + _array[ j ];\n        }\n        return hash;\n    }\n\n    /**\n     * Returns the index in this list of the first occurrence of the\n     * specified element, or -1 if this list does not contain this\n     * element.  More formally, returns the lowest index i such that\n     * (o == get(i)), or -1 if there is no such index.\n     *\n     * @param o element to search for.\n     *\n     * @return the index in this list of the first occurrence of the\n     *         specified element, or -1 if this list does not contain\n     *         this element.\n     */\n\n    public int indexOf(final short o)\n    {\n        int rval = 0;\n\n        for (; rval < _limit; rval++)\n        {\n            if (o == _array[ rval ])\n            {\n                break;\n            }\n        }\n        if (rval == _limit)\n        {\n        }\n        return rval;\n    }\n\n    /**\n     * Returns true if this list contains no elements.\n     *\n     * @return true if this list contains no elements.\n     */\n\n    public boolean isEmpty()\n    {\n        return _limit == 0;\n    }\n\n    /**\n     * Returns the index in this list of the last occurrence of the\n     * specified element, or -1 if this list does not contain this\n     * element.  More formally, returns the highest index i such that\n     * (o == get(i)), or -1 if there is no such index.\n     *\n     * @param o element to search for.\n     *\n     * @return the index in this list of the last occurrence of the\n     *         specified element, or -1 if this list does not contain\n     *         this element.\n     */\n\n    public int lastIndexOf(final short o)\n    {\n        int rval = _limit - 1;\n\n        for (; rval >= 0; rval--)\n        {\n            if (o == _array[ rval ])\n            {\n                break;\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Removes the element at the specified position in this list.\n     * Shifts any subsequent elements to the left (subtracts one from\n     * their indices).  Returns the element that was removed from the\n     * list.\n     *\n     * @param index the index of the element to removed.\n     *\n     * @return the element previously at the specified position.\n     *\n     * @exception IndexOutOfBoundsException if the index is out of\n     *            range (index < 0 || index >= size()).\n     */\n\n    public short remove(final int index)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        short rval = _array[ index ];\n\n        System.arraycopy(_array, index + 1, _array, index, _limit - index);\n        _limit--;\n        return rval;\n    }\n\n    /**\n     * Removes the first occurrence in this list of the specified\n     * element (optional operation).  If this list does not contain\n     * the element, it is unchanged.  More formally, removes the\n     * element with the lowest index i such that (o.equals(get(i)))\n     * (if such an element exists).\n     *\n     * @param o element to be removed from this list, if present.\n     *\n     * @return true if this list contained the specified element.\n     */\n\n    public boolean removeValue(final short o)\n    {\n        boolean rval = false;\n\n        for (int j = 0; !rval && (j < _limit); j++)\n        {\n            if (o == _array[ j ])\n            {\n                System.arraycopy(_array, j + 1, _array, j, _limit - j);\n                _limit--;\n                rval = true;\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Removes from this list all the elements that are contained in\n     * the specified collection\n     *\n     * @param c collection that defines which elements will be removed\n     *          from this list.\n     *\n     * @return true if this list changed as a result of the call.\n     */\n\n    public boolean removeAll(final ShortList c)\n    {\n        boolean rval = false;\n\n        for (int j = 0; j < c._limit; j++)\n        {\n            if (removeValue(c._array[ j ]))\n            {\n                rval = true;\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Retains only the elements in this list that are contained in\n     * the specified collection.  In other words, removes from this\n     * list all the elements that are not contained in the specified\n     * collection.\n     *\n     * @param c collection that defines which elements this set will\n     *          retain.\n     *\n     * @return true if this list changed as a result of the call.\n     */\n\n    public boolean retainAll(final ShortList c)\n    {\n        boolean rval = false;\n\n        for (int j = 0; j < _limit; )\n        {\n            if (!c.contains(_array[ j ]))\n            {\n                remove(j);\n                rval = true;\n            }\n            else\n            {\n                j++;\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Replaces the element at the specified position in this list\n     * with the specified element\n     *\n     * @param index index of element to replace.\n     * @param element element to be stored at the specified position.\n     *\n     * @return the element previously at the specified position.\n     *\n     * @exception IndexOutOfBoundsException if the index is out of\n     *            range (index < 0 || index >= size()).\n     */\n\n    public short set(final int index, final short element)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        short rval = _array[ index ];\n\n        _array[ index ] = element;\n        return rval;\n    }\n\n    /**\n     * Returns the number of elements in this list. If this list\n     * contains more than Integer.MAX_VALUE elements, returns\n     * Integer.MAX_VALUE.\n     *\n     * @return the number of elements in this ShortList\n     */\n\n    public int size()\n    {\n        return _limit;\n    }\n\n    /**\n     * Returns an array containing all of the elements in this list in\n     * proper sequence.  Obeys the general contract of the\n     * Collection.toArray method.\n     *\n     * @return an array containing all of the elements in this list in\n     *         proper sequence.\n     */\n\n    public short [] toArray()\n    {\n        short[] rval = new short[ _limit ];\n\n        System.arraycopy(_array, 0, rval, 0, _limit);\n        return rval;\n    }\n\n    /**\n     * Returns an array containing all of the elements in this list in\n     * proper sequence.  Obeys the general contract of the\n     * Collection.toArray(Object[]) method.\n     *\n     * @param a the array into which the elements of this list are to\n     *          be stored, if it is big enough; otherwise, a new array\n     *          is allocated for this purpose.\n     *\n     * @return an array containing the elements of this list.\n     */\n\n    public short [] toArray(final short [] a)\n    {\n        short[] rval;\n\n        if (a.length == _limit)\n        {\n            System.arraycopy(_array, 0, a, 0, _limit);\n            rval = a;\n        }\n        else\n        {\n            rval = toArray();\n        }\n        return rval;\n    }\n\n    private void growArray(final int new_size)\n    {\n        int     size      = (new_size == _array.length) ? new_size + 1\n                                                        : new_size;\n        short[] new_array = new short[ size ];\n\n        System.arraycopy(_array, 0, new_array, 0, _limit);\n        _array = new_array;", "functions": [{"function_name": "add", "code": "    public void add(final int index, final short value)\n    {\n        if (index > _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        else if (index == _limit)\n        {\n            add(value);\n        }\n        else\n        {\n\n            if (_limit == _array.length)\n            {\n                growArray(_limit * 2);\n            }\n            System.arraycopy(_array, index, _array, index + 1,\n                             _limit - index);\n            _array[ index ] = value;\n            _limit++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "IF", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [4, 8], [7, 9], [4, 10], [4, 11], [8, 12], [4, 13], [11, 14], [11, 15], [15, 16], [8, 17], [17, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 4], [9, 7], [10, 4], [11, 4], [12, 8], [13, 4], [14, 11], [15, 11], [16, 15], [17, 8], [18, 17], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "add", "code": "    public boolean add(final short value)\n    {\n        if (_limit == _array.length)\n        {\n            growArray(_limit * 2);\n        }\n        _array[ _limit++ ] = value;\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [2, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 2], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "addAll", "code": "    public boolean addAll(final ShortList c)\n    {\n        if (c._limit != 0)\n        {\n            if ((_limit + c._limit) > _array.length)\n            {\n                growArray(_limit + c._limit);\n            }\n            System.arraycopy(c._array, 0, _array, _limit, c._limit);\n            _limit += c._limit;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [2, 8], [2, 9], [6, 10], [9, 11], [10, 12], [6, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 2], [9, 2], [10, 6], [11, 9], [12, 10], [13, 6], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addAll", "code": "    public boolean addAll(final int index, final ShortList c)\n    {\n        if (index > _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        if (c._limit != 0)\n        {\n            if ((_limit + c._limit) > _array.length)\n            {\n                growArray(_limit + c._limit);\n            }\n\n            System.arraycopy(_array, index, _array, index + c._limit,\n                             _limit - index);\n\n            System.arraycopy(c._array, 0, _array, index, c._limit);\n            _limit += c._limit;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [7, 10], [3, 11], [2, 12], [2, 13], [2, 14], [9, 15], [11, 16], [13, 17], [14, 18], [14, 19], [15, 20], [9, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 7], [11, 3], [12, 2], [13, 2], [14, 2], [15, 9], [16, 11], [17, 13], [18, 14], [19, 14], [20, 15], [21, 9], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "clear", "code": "    public void clear()\n    {\n        _limit = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "contains", "code": "    public boolean contains(final short o)\n    {\n        boolean rval = false;\n\n        for (int j = 0; !rval && (j < _limit); j++)\n        {\n            if (_array[ j ] == o)\n            {\n                rval = true;\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [2, 10], [6, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 2], [11, 6], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "containsAll", "code": "    public boolean containsAll(final ShortList c)\n    {\n        boolean rval = true;\n\n        if (this != c)\n        {\n            for (int j = 0; rval && (j < c._limit); j++)\n            {\n                if (!contains(c._array[ j ]))\n                {\n                    rval = false;\n                }\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [6, 9], [8, 10], [9, 11], [6, 12], [9, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 6], [10, 8], [11, 9], [12, 6], [13, 9], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "equals", "code": "    public boolean equals(final Object o)\n    {\n        boolean rval = this == o;\n\n        if (!rval && (o != null) && (o.getClass() == this.getClass()))\n        {\n            ShortList other = ( ShortList ) o;\n\n            if (other._limit == _limit)\n            {\n\n                rval = true;\n                for (int j = 0; rval && (j < _limit); j++)\n                {\n                    rval = _array[ j ] == other._array[ j ];\n                }\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LOOP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [3, 10], [6, 11], [8, 12], [9, 13], [6, 14], [8, 15], [13, 16], [14, 17], [6, 18], [17, 19], [18, 20], [14, 21], [14, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 3], [11, 6], [12, 8], [13, 9], [14, 6], [15, 8], [16, 13], [17, 14], [18, 6], [19, 17], [20, 18], [21, 14], [22, 14], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "get", "code": "    public short get(final int index)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        return _array[ index ];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "hashCode", "code": "    public int hashCode()\n    {\n        int hash = 0;\n\n        for (int j = 0; j < _limit; j++)\n        {\n            hash = (31 * hash) + _array[ j ];\n        }\n        return hash;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [2, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 2], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "indexOf", "code": "    public int indexOf(final short o)\n    {\n        int rval = 0;\n\n        for (; rval < _limit; rval++)\n        {\n            if (o == _array[ rval ])\n            {\n                break;\n            }\n        }\n        if (rval == _limit)\n        {\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [3, 8], [4, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 3], [9, 4], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "isEmpty", "code": "    public boolean isEmpty()\n    {\n        return _limit == 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "lastIndexOf", "code": "    public int lastIndexOf(final short o)\n    {\n        int rval = _limit - 1;\n\n        for (; rval >= 0; rval--)\n        {\n            if (o == _array[ rval ])\n            {\n                break;\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [8, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 8], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "remove", "code": "    public short remove(final int index)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        short rval = _array[ index ];\n\n        System.arraycopy(_array, index + 1, _array, index, _limit - index);\n        _limit--;\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [5, 8], [3, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 5], [9, 3], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "removeValue", "code": "    public boolean removeValue(final short o)\n    {\n        boolean rval = false;\n\n        for (int j = 0; !rval && (j < _limit); j++)\n        {\n            if (o == _array[ j ])\n            {\n                System.arraycopy(_array, j + 1, _array, j, _limit - j);\n                _limit--;\n                rval = true;\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [2, 10], [6, 11], [6, 12], [11, 13], [12, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 2], [11, 6], [12, 6], [13, 11], [14, 12], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "removeAll", "code": "    public boolean removeAll(final ShortList c)\n    {\n        boolean rval = false;\n\n        for (int j = 0; j < c._limit; j++)\n        {\n            if (removeValue(c._array[ j ]))\n            {\n                rval = true;\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [2, 9], [6, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 2], [10, 6], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "retainAll", "code": "    public boolean retainAll(final ShortList c)\n    {\n        boolean rval = false;\n\n        for (int j = 0; j < _limit; )\n        {\n            if (!c.contains(_array[ j ]))\n            {\n                remove(j);\n                rval = true;\n            }\n            else\n            {\n                j++;\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [2, 9], [6, 10], [6, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 2], [10, 6], [11, 6], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "set", "code": "    public short set(final int index, final short element)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        short rval = _array[ index ];\n\n        _array[ index ] = element;\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [3, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 3], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "size", "code": "    public int size()\n    {\n        return _limit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toArray", "code": "    public short [] toArray()\n    {\n        short[] rval = new short[ _limit ];\n\n        System.arraycopy(_array, 0, rval, 0, _limit);\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toArray", "code": "    public short [] toArray(final short [] a)\n    {\n        short[] rval;\n\n        if (a.length == _limit)\n        {\n            System.arraycopy(_array, 0, a, 0, _limit);\n            rval = a;\n        }\n        else\n        {\n            rval = toArray();\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [6, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 6], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "growArray", "code": "    private void growArray(final int new_size)\n    {\n        int     size      = (new_size == _array.length) ? new_size + 1\n                                                        : new_size;\n        short[] new_array = new short[ size ];\n\n        System.arraycopy(_array, 0, new_array, 0, _limit);\n        _array = new_array;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [5, 7], [2, 8], [8, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 5], [8, 2], [9, 8], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "ShortList", "code": "    public ShortList()\n    {\n        this(_default_size);", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ShortList", "code": "    public ShortList(final ShortList list)\n    {\n        this(list._array.length);\n        System.arraycopy(list._array, 0, _array, 0, _array.length);\n        _limit = list._limit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ShortList", "code": "    public ShortList(final int initialCapacity)\n    {\n        _array = new short[ initialCapacity ];\n        _limit = 0;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.6-7959", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/util/CompareGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.CompareGenerator", "code": "public final class CompareGenerator extends MethodGenerator {\n\n    private static int DOM_INDEX      = 1;\n    private static int CURRENT_INDEX  = 2;\n    private static int LEVEL_INDEX    = 3;\n    private static int TRANSLET_INDEX = 4;\n    private static int LAST_INDEX     = 5;\n    private int ITERATOR_INDEX = 6;\n\n    private final Instruction _iloadCurrent;\n    private final Instruction _istoreCurrent;\n    private final Instruction _aloadDom;\n    private final Instruction _iloadLast;\n    private final Instruction _aloadIterator;\n    private final Instruction _astoreIterator;\n\n    public CompareGenerator(int access_flags, Type return_type,\n\t\t\t    Type[] arg_types, String[] arg_names,\n\t\t\t    String method_name, String class_name,\n\t\t\t    InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_iloadCurrent = new ILOAD(CURRENT_INDEX);\n\t_istoreCurrent = new ISTORE(CURRENT_INDEX);\n\t_aloadDom = new ALOAD(DOM_INDEX);\n\t_iloadLast = new ILOAD(LAST_INDEX);\n\n\tLocalVariableGen iterator =\n\t    addLocalVariable(\"iterator\",\n\t\t\t     Util.getJCRefType(Constants.NODE_ITERATOR_SIG),\n\t\t\t     null, null);\n\tITERATOR_INDEX = iterator.getIndex();\n\t_aloadIterator = new ALOAD(ITERATOR_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\til.append(new ACONST_NULL());\n\til.append(storeIterator());\n    }\n\n    public Instruction loadLastNode() {\n\treturn _iloadLast;\n    }\n\n    public Instruction loadCurrentNode() {\n\treturn _iloadCurrent;\n    }\n\n    public Instruction storeCurrentNode() {\n\treturn _istoreCurrent;\n    }\n\n    public Instruction loadDOM() {\n\treturn _aloadDom;\n    }\n\n    public int getHandlerIndex() {\n    }\n\n    public int getIteratorIndex() {\n\treturn INVALID_INDEX;\n    }\n\n    public Instruction storeIterator() {\n\treturn _astoreIterator;\n    }\n    \n    public Instruction loadIterator() {\n\treturn _aloadIterator;\n    }\n\n    public int getLocalIndex(String name) {\n\tif (name.equals(\"current\")) {\n\t    return CURRENT_INDEX;\n\t}\n\treturn super.getLocalIndex(name);", "functions": [{"function_name": "loadLastNode", "code": "    public Instruction loadLastNode() {\n\treturn _iloadLast;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadCurrentNode", "code": "    public Instruction loadCurrentNode() {\n\treturn _iloadCurrent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeCurrentNode", "code": "    public Instruction storeCurrentNode() {\n\treturn _istoreCurrent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadDOM", "code": "    public Instruction loadDOM() {\n\treturn _aloadDom;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHandlerIndex", "code": "    public int getHandlerIndex() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIteratorIndex", "code": "    public int getIteratorIndex() {\n\treturn INVALID_INDEX;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeIterator", "code": "    public Instruction storeIterator() {\n\treturn _astoreIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadIterator", "code": "    public Instruction loadIterator() {\n\treturn _aloadIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {\n\tif (name.equals(\"current\")) {\n\t    return CURRENT_INDEX;\n\t}\n\treturn super.getLocalIndex(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "CompareGenerator", "code": "    public CompareGenerator(int access_flags, Type return_type,\n\t\t\t    Type[] arg_types, String[] arg_names,\n\t\t\t    String method_name, String class_name,\n\t\t\t    InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_iloadCurrent = new ILOAD(CURRENT_INDEX);\n\t_istoreCurrent = new ISTORE(CURRENT_INDEX);\n\t_aloadDom = new ALOAD(DOM_INDEX);\n\t_iloadLast = new ILOAD(LAST_INDEX);\n\n\tLocalVariableGen iterator =\n\t    addLocalVariable(\"iterator\",\n\t\t\t     Util.getJCRefType(Constants.NODE_ITERATOR_SIG),\n\t\t\t     null, null);\n\tITERATOR_INDEX = iterator.getIndex();\n\t_aloadIterator = new ALOAD(ITERATOR_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\til.append(new ACONST_NULL());\n\til.append(storeIterator());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [10, 19], [11, 20], [12, 21], [13, 22], [14, 23], [1, 24], [15, 25], [16, 26], [17, 27], [18, 28], [24, 29], [24, 30], [24, 31], [24, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 10], [20, 11], [21, 12], [22, 13], [23, 14], [24, 1], [25, 15], [26, 16], [27, 17], [28, 18], [29, 24], [30, 24], [31, 24], [32, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}], "label": 0}
{"sample_id": "xalan-2.7-8576", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/DecimalFormatting.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.DecimalFormatting", "code": "final class DecimalFormatting extends TopLevelElement {\n\n    private static final String DFS_CLASS = \"java.text.DecimalFormatSymbols\";\n    private static final String DFS_SIG   = \"Ljava/text/DecimalFormatSymbols;\";\n\n    private QName _name = null;\n\n    /**\n     * No type check needed for the <xsl:decimal-formatting/> element\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn Type.Void;\n    }\n\n    /**\n     * Parse the name of the <xsl:decimal-formatting/> element\n     */\n    public void parseContents(Parser parser) {\n        final String name = getAttribute(\"name\");\n        if (name.length() > 0) {\n            if (!XML11Char.isXML11ValidQName(name)){\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this);\n                parser.reportError(Constants.ERROR, err);           \n            }\n        }\n        _name = parser.getQNameIgnoreDefaultNs(name);\n        if (_name == null) {\n            _name = parser.getQNameIgnoreDefaultNs(EMPTYSTRING);\n        }         \n\n\tSymbolTable stable = parser.getSymbolTable();\n\tif (stable.getDecimalFormatting(_name) != null) {\n\t    reportWarning(this, parser, ErrorMsg.SYMBOLS_REDEF_ERR,\n\t\t_name.toString());\n\t}\n\telse {\n\t    stable.addDecimalFormatting(_name, this);\n\t}\n    }\n\n    /**\n     * This method is called when the constructor is compiled in\n     * Stylesheet.compileConstructor() and not as the syntax tree is traversed.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\t\n\tfinal int init = cpg.addMethodref(DFS_CLASS, \"<init>\",\n                                          \"(\"+LOCALE_SIG+\")V\");\n\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg, _name.toString()));\n\n\til.append(new NEW(cpg.addClass(DFS_CLASS)));\n\til.append(DUP);\n        il.append(new GETSTATIC(cpg.addFieldref(LOCALE_CLASS, \"US\",\n                                                LOCALE_SIG)));\n\til.append(new INVOKESPECIAL(init));\n\n\tString tmp = getAttribute(\"NaN\");\n\tif ((tmp == null) || (tmp.equals(EMPTYSTRING))) {\n\t    int nan = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t       \"setNaN\", \"(Ljava/lang/String;)V\");\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, \"NaN\"));\n\t    il.append(new INVOKEVIRTUAL(nan));\n\t}\n\n\ttmp = getAttribute(\"infinity\");\n\tif ((tmp == null) || (tmp.equals(EMPTYSTRING))) {\n\t    int inf = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t       \"setInfinity\",\n\t\t\t\t       \"(Ljava/lang/String;)V\");\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, \"Infinity\"));\n\t    il.append(new INVOKEVIRTUAL(inf));\n\t}\n\t    \n\tfinal int nAttributes = _attributes.getLength();\n\tfor (int i = 0; i < nAttributes; i++) {\n\t    final String name = _attributes.getQName(i);\n\t    final String value = _attributes.getValue(i);\n\n\t    boolean valid = true;\n\t    int method = 0;\n\n\t    if (name.equals(\"decimal-separator\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setDecimalSeparator\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"grouping-separator\")) {\n\t\tmethod =  cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t   \"setGroupingSeparator\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"minus-sign\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setMinusSign\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"percent\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setPercent\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"per-mille\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setPerMill\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"zero-digit\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setZeroDigit\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"digit\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setDigit\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"pattern-separator\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setPatternSeparator\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"NaN\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setNaN\", \"(Ljava/lang/String;)V\");\n\t        il.append(DUP);\n\t\til.append(new PUSH(cpg, value));\n\t\til.append(new INVOKEVIRTUAL(method));\n\t\tvalid = false;\n\t    }\n\t    else if (name.equals(\"infinity\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setInfinity\",\n\t\t\t\t\t  \"(Ljava/lang/String;)V\");\n\t        il.append(DUP);\n\t\til.append(new PUSH(cpg, value));\n\t\til.append(new INVOKEVIRTUAL(method));\n\t\tvalid = false;\n\t    }\n\t    else {\n\t\tvalid = false;\n\t    }\n\n\t    if (valid) {\n\t\til.append(DUP);\n\t\til.append(new PUSH(cpg, value.charAt(0)));\n\t\til.append(new INVOKEVIRTUAL(method));\n\t    }\n\n\t}\n\n\tfinal int put = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"addDecimalFormat\",\n\t\t\t\t\t \"(\"+STRING_SIG+DFS_SIG+\")V\");\n\til.append(new INVOKEVIRTUAL(put));\n    }\n\n    /**\n     * Creates the default, nameless, DecimalFormat object in\n     * AbstractTranslet's format_symbols hashtable.\n     * This should be called for every stylesheet, and the entry\n     * may be overridden by later nameless xsl:decimal-format instructions.\n     */\n    public static void translateDefaultDFS(ClassGenerator classGen,\n\t\t\t\t\t   MethodGenerator methodGen) {\n\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\tfinal int init = cpg.addMethodref(DFS_CLASS, \"<init>\",\n                                          \"(\"+LOCALE_SIG+\")V\");\n\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg, EMPTYSTRING));\n\n\til.append(new NEW(cpg.addClass(DFS_CLASS)));\n\til.append(DUP);\n        il.append(new GETSTATIC(cpg.addFieldref(LOCALE_CLASS, \"US\",\n                                                LOCALE_SIG)));\n\til.append(new INVOKESPECIAL(init));\n\n\tint nan = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t   \"setNaN\", \"(Ljava/lang/String;)V\");\n\til.append(DUP);\n\til.append(new PUSH(cpg, \"NaN\"));\n\til.append(new INVOKEVIRTUAL(nan));\n\n\tint inf = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t   \"setInfinity\",\n\t\t\t\t   \"(Ljava/lang/String;)V\");\n\til.append(DUP);\n\til.append(new PUSH(cpg, \"Infinity\"));\n\til.append(new INVOKEVIRTUAL(inf));\n\n\tfinal int put = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"addDecimalFormat\",\n\t\t\t\t\t \"(\"+STRING_SIG+DFS_SIG+\")V\");\n\til.append(new INVOKEVIRTUAL(put));", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n        final String name = getAttribute(\"name\");\n        if (name.length() > 0) {\n            if (!XML11Char.isXML11ValidQName(name)){\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this);\n                parser.reportError(Constants.ERROR, err);           \n            }\n        }\n        _name = parser.getQNameIgnoreDefaultNs(name);\n        if (_name == null) {\n            _name = parser.getQNameIgnoreDefaultNs(EMPTYSTRING);\n        }         \n\n\tSymbolTable stable = parser.getSymbolTable();\n\tif (stable.getDecimalFormatting(_name) != null) {\n\t    reportWarning(this, parser, ErrorMsg.SYMBOLS_REDEF_ERR,\n\t\t_name.toString());\n\t}\n\telse {\n\t    stable.addDecimalFormatting(_name, this);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [0, 9], [4, 10], [7, 11], [7, 12], [2, 13], [8, 14], [9, 15], [4, 16], [10, 17], [10, 18], [5, 19], [1, 20], [1, 21], [3, 22], [16, 23], [19, 24], [21, 25], [22, 26], [16, 27], [16, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 0], [10, 4], [11, 7], [12, 7], [13, 2], [14, 8], [15, 9], [16, 4], [17, 10], [18, 10], [19, 5], [20, 1], [21, 1], [22, 3], [23, 16], [24, 19], [25, 21], [26, 22], [27, 16], [28, 16], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\t\n\tfinal int init = cpg.addMethodref(DFS_CLASS, \"<init>\",\n                                          \"(\"+LOCALE_SIG+\")V\");\n\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg, _name.toString()));\n\n\til.append(new NEW(cpg.addClass(DFS_CLASS)));\n\til.append(DUP);\n        il.append(new GETSTATIC(cpg.addFieldref(LOCALE_CLASS, \"US\",\n                                                LOCALE_SIG)));\n\til.append(new INVOKESPECIAL(init));\n\n\tString tmp = getAttribute(\"NaN\");\n\tif ((tmp == null) || (tmp.equals(EMPTYSTRING))) {\n\t    int nan = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t       \"setNaN\", \"(Ljava/lang/String;)V\");\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, \"NaN\"));\n\t    il.append(new INVOKEVIRTUAL(nan));\n\t}\n\n\ttmp = getAttribute(\"infinity\");\n\tif ((tmp == null) || (tmp.equals(EMPTYSTRING))) {\n\t    int inf = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t       \"setInfinity\",\n\t\t\t\t       \"(Ljava/lang/String;)V\");\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, \"Infinity\"));\n\t    il.append(new INVOKEVIRTUAL(inf));\n\t}\n\t    \n\tfinal int nAttributes = _attributes.getLength();\n\tfor (int i = 0; i < nAttributes; i++) {\n\t    final String name = _attributes.getQName(i);\n\t    final String value = _attributes.getValue(i);\n\n\t    boolean valid = true;\n\t    int method = 0;\n\n\t    if (name.equals(\"decimal-separator\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setDecimalSeparator\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"grouping-separator\")) {\n\t\tmethod =  cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t   \"setGroupingSeparator\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"minus-sign\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setMinusSign\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"percent\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setPercent\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"per-mille\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setPerMill\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"zero-digit\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setZeroDigit\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"digit\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setDigit\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"pattern-separator\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setPatternSeparator\", \"(C)V\");\n\t    }\n\t    else if (name.equals(\"NaN\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setNaN\", \"(Ljava/lang/String;)V\");\n\t        il.append(DUP);\n\t\til.append(new PUSH(cpg, value));\n\t\til.append(new INVOKEVIRTUAL(method));\n\t\tvalid = false;\n\t    }\n\t    else if (name.equals(\"infinity\")) {\n\t\tmethod = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t\t  \"setInfinity\",\n\t\t\t\t\t  \"(Ljava/lang/String;)V\");\n\t        il.append(DUP);\n\t\til.append(new PUSH(cpg, value));\n\t\til.append(new INVOKEVIRTUAL(method));\n\t\tvalid = false;\n\t    }\n\t    else {\n\t\tvalid = false;\n\t    }\n\n\t    if (valid) {\n\t\til.append(DUP);\n\t\til.append(new PUSH(cpg, value.charAt(0)));\n\t\til.append(new INVOKEVIRTUAL(method));\n\t    }\n\n\t}\n\n\tfinal int put = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"addDecimalFormat\",\n\t\t\t\t\t \"(\"+STRING_SIG+DFS_SIG+\")V\");\n\til.append(new INVOKEVIRTUAL(put));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [4, 14], [0, 15], [5, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [12, 23], [1, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [3, 31], [4, 32], [14, 33], [14, 34], [15, 35], [5, 36], [16, 37], [16, 38], [6, 39], [17, 40], [18, 41], [20, 42], [21, 43], [22, 44], [7, 45], [8, 46], [9, 47], [24, 48], [24, 49], [26, 50], [26, 51], [2, 52], [4, 53], [4, 54], [4, 55], [34, 56], [35, 57], [5, 58], [5, 59], [5, 60], [38, 61], [39, 62], [41, 63], [42, 64], [43, 65], [45, 66], [45, 67], [48, 68], [48, 69], [50, 70], [50, 71], [51, 72], [27, 73], [28, 74], [29, 75], [30, 76], [53, 77], [54, 78], [32, 79], [58, 80], [59, 81], [36, 82], [63, 83], [66, 84], [66, 85], [69, 86], [25, 87], [25, 88], [25, 89], [70, 90], [70, 91], [71, 92], [26, 93], [78, 94], [79, 95], [79, 96], [81, 97], [82, 98], [82, 99], [85, 100], [86, 101], [87, 102], [88, 103], [90, 104], [90, 105], [91, 106], [50, 107], [93, 108], [103, 109], [104, 110], [104, 111], [105, 112], [70, 113], [107, 114], [108, 115], [108, 116], [109, 117], [110, 118], [110, 119], [111, 120], [90, 121], [113, 122], [114, 123], [114, 124], [118, 125], [118, 126], [119, 127], [104, 128], [121, 129], [122, 130], [122, 131], [125, 132], [125, 133], [126, 134], [110, 135], [128, 136], [129, 137], [129, 138], [132, 139], [132, 140], [133, 141], [118, 142], [135, 143], [136, 144], [136, 145], [139, 146], [140, 147], [125, 148], [142, 149], [143, 150], [143, 151], [146, 152], [132, 153], [132, 154], [132, 155], [132, 156], [132, 157], [148, 158], [149, 159], [149, 160], [139, 161], [139, 162], [139, 163], [139, 164], [139, 165], [139, 166], [153, 167], [154, 168], [155, 169], [157, 170], [158, 171], [158, 172], [161, 173], [162, 174], [163, 175], [164, 176], [166, 177], [170, 178], [170, 179], [177, 180], [177, 181], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 4], [15, 0], [16, 5], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 12], [24, 1], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 3], [32, 4], [33, 14], [34, 14], [35, 15], [36, 5], [37, 16], [38, 16], [39, 6], [40, 17], [41, 18], [42, 20], [43, 21], [44, 22], [45, 7], [46, 8], [47, 9], [48, 24], [49, 24], [50, 26], [51, 26], [52, 2], [53, 4], [54, 4], [55, 4], [56, 34], [57, 35], [58, 5], [59, 5], [60, 5], [61, 38], [62, 39], [63, 41], [64, 42], [65, 43], [66, 45], [67, 45], [68, 48], [69, 48], [70, 50], [71, 50], [72, 51], [73, 27], [74, 28], [75, 29], [76, 30], [77, 53], [78, 54], [79, 32], [80, 58], [81, 59], [82, 36], [83, 63], [84, 66], [85, 66], [86, 69], [87, 25], [88, 25], [89, 25], [90, 70], [91, 70], [92, 71], [93, 26], [94, 78], [95, 79], [96, 79], [97, 81], [98, 82], [99, 82], [100, 85], [101, 86], [102, 87], [103, 88], [104, 90], [105, 90], [106, 91], [107, 50], [108, 93], [109, 103], [110, 104], [111, 104], [112, 105], [113, 70], [114, 107], [115, 108], [116, 108], [117, 109], [118, 110], [119, 110], [120, 111], [121, 90], [122, 113], [123, 114], [124, 114], [125, 118], [126, 118], [127, 119], [128, 104], [129, 121], [130, 122], [131, 122], [132, 125], [133, 125], [134, 126], [135, 110], [136, 128], [137, 129], [138, 129], [139, 132], [140, 132], [141, 133], [142, 118], [143, 135], [144, 136], [145, 136], [146, 139], [147, 140], [148, 125], [149, 142], [150, 143], [151, 143], [152, 146], [153, 132], [154, 132], [155, 132], [156, 132], [157, 132], [158, 148], [159, 149], [160, 149], [161, 139], [162, 139], [163, 139], [164, 139], [165, 139], [166, 139], [167, 153], [168, 154], [169, 155], [170, 157], [171, 158], [172, 158], [173, 161], [174, 162], [175, 163], [176, 164], [177, 166], [178, 170], [179, 170], [180, 177], [181, 177], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181]]}, {"function_name": "translateDefaultDFS", "code": "    public static void translateDefaultDFS(ClassGenerator classGen,\n\t\t\t\t\t   MethodGenerator methodGen) {\n\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\tfinal int init = cpg.addMethodref(DFS_CLASS, \"<init>\",\n                                          \"(\"+LOCALE_SIG+\")V\");\n\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg, EMPTYSTRING));\n\n\til.append(new NEW(cpg.addClass(DFS_CLASS)));\n\til.append(DUP);\n        il.append(new GETSTATIC(cpg.addFieldref(LOCALE_CLASS, \"US\",\n                                                LOCALE_SIG)));\n\til.append(new INVOKESPECIAL(init));\n\n\tint nan = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t   \"setNaN\", \"(Ljava/lang/String;)V\");\n\til.append(DUP);\n\til.append(new PUSH(cpg, \"NaN\"));\n\til.append(new INVOKEVIRTUAL(nan));\n\n\tint inf = cpg.addMethodref(DFS_CLASS,\n\t\t\t\t   \"setInfinity\",\n\t\t\t\t   \"(Ljava/lang/String;)V\");\n\til.append(DUP);\n\til.append(new PUSH(cpg, \"Infinity\"));\n\til.append(new INVOKEVIRTUAL(inf));\n\n\tfinal int put = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"addDecimalFormat\",\n\t\t\t\t\t \"(\"+STRING_SIG+DFS_SIG+\")V\");\n\til.append(new INVOKEVIRTUAL(put));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [9, 22], [1, 23], [10, 24], [11, 25], [2, 26], [13, 27], [14, 28], [3, 29], [16, 30], [17, 31], [19, 32], [20, 33], [21, 34], [4, 35], [5, 36], [6, 37], [23, 38], [23, 39], [25, 40], [26, 41], [26, 42], [28, 43], [29, 44], [29, 45], [31, 46], [32, 47], [35, 48], [35, 49], [38, 50], [38, 51], [46, 52], [48, 53], [48, 54], [51, 55], [54, 56], [55, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 9], [23, 1], [24, 10], [25, 11], [26, 2], [27, 13], [28, 14], [29, 3], [30, 16], [31, 17], [32, 19], [33, 20], [34, 21], [35, 4], [36, 5], [37, 6], [38, 23], [39, 23], [40, 25], [41, 26], [42, 26], [43, 28], [44, 29], [45, 29], [46, 31], [47, 32], [48, 35], [49, 35], [50, 38], [51, 38], [52, 46], [53, 48], [54, 48], [55, 51], [56, 54], [57, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}], "label": 1}
{"sample_id": "ant-1.7-865", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java", "language": "java", "name": "org.apache.tools.ant.util.regexp.RegexpMatcherFactory", "code": "public class RegexpMatcherFactory {\n\n    /** Constructor for RegexpMatcherFactory. */\n    public RegexpMatcherFactory() {\n    }\n\n    /***\n     * Create a new regular expression instance.\n     * @return the matcher\n     * @throws BuildException on error\n     */\n    public RegexpMatcher newRegexpMatcher() throws BuildException {\n        return newRegexpMatcher(null);\n    }\n\n    /***\n     * Create a new regular expression instance.\n     *\n     * @param p Project whose ant.regexp.regexpimpl property will be used.\n     * @return the matcher\n     * @throws BuildException on error\n     */\n    public RegexpMatcher newRegexpMatcher(Project p) throws BuildException {\n        String systemDefault = null;\n        if (p == null) {\n            systemDefault = System.getProperty(MagicNames.REGEXP_IMPL);\n        } else {\n            systemDefault = p.getProperty(MagicNames.REGEXP_IMPL);\n        }\n\n        if (systemDefault != null) {\n            return createInstance(systemDefault);\n        }\n\n        Throwable cause = null;\n\n        try {\n            testAvailability(\"java.util.regex.Matcher\");\n            return createInstance(\"org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher\");\n        } catch (BuildException be) {\n            cause = orCause(\n                cause, be,\n                JavaEnvUtils.getJavaVersionNumber() < JavaEnvUtils.VERSION_1_4);\n        }\n\n        try {\n            testAvailability(\"org.apache.oro.text.regex.Pattern\");\n            return createInstance(\"org.apache.tools.ant.util.regexp.JakartaOroMatcher\");\n        } catch (BuildException be) {\n            cause = orCause(cause, be, true);\n        }\n\n        try {\n            testAvailability(\"org.apache.regexp.RE\");\n            return createInstance(\"org.apache.tools.ant.util.regexp.JakartaRegexpMatcher\");\n        } catch (BuildException be) {\n            cause = orCause(cause, be, true);\n        }\n        throw new BuildException(\"No supported regular expression matcher found\"\n                + (cause != null ? \": \" + cause : \"\"), cause);\n    }\n\n    static Throwable orCause(Throwable deflt, BuildException be, boolean ignoreCnfe) {\n        if (deflt != null) {\n            return deflt;\n        }\n        Throwable t = be.getException();\n        return ignoreCnfe && t instanceof ClassNotFoundException ? null : t;\n    }\n\n    /**\n     * Create an instance of a matcher from a classname.\n     *\n     * @param className a <code>String</code> value\n     * @return a <code>RegexpMatcher</code> value\n     * @exception BuildException if an error occurs\n     */\n    protected RegexpMatcher createInstance(String className) throws BuildException {\n        return (RegexpMatcher) ClasspathUtils.newInstance(className, RegexpMatcherFactory.class\n                .getClassLoader(), RegexpMatcher.class);\n    }\n\n    /**\n     * Test if a particular class is available to be used.\n     *\n     * @param className a <code>String</code> value\n     * @exception BuildException if an error occurs\n     */\n    protected void testAvailability(String className) throws BuildException {\n        try {\n            Class.forName(className);\n        } catch (Throwable t) {\n            throw new BuildException(t);\n        }\n    }\n\n    /**\n     * Checks if a RegExp-Matcher is available.\n     * @param project  The project to check for (may be <code>null</code>)\n     * @return <code>true</code> if available otherwise <code>false</code>\n     */\n    public static boolean regexpMatcherPresent(Project project) {\n        try {\n            new RegexpMatcherFactory().newRegexpMatcher(project);\n            return true;\n        } catch (Throwable ex) {\n            return false;", "functions": [{"function_name": "newRegexpMatcher", "code": "    public RegexpMatcher newRegexpMatcher() throws BuildException {\n        return newRegexpMatcher(null);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "newRegexpMatcher", "code": "    public RegexpMatcher newRegexpMatcher(Project p) throws BuildException {\n        String systemDefault = null;\n        if (p == null) {\n            systemDefault = System.getProperty(MagicNames.REGEXP_IMPL);\n        } else {\n            systemDefault = p.getProperty(MagicNames.REGEXP_IMPL);\n        }\n\n        if (systemDefault != null) {\n            return createInstance(systemDefault);\n        }\n\n        Throwable cause = null;\n\n        try {\n            testAvailability(\"java.util.regex.Matcher\");\n            return createInstance(\"org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher\");\n        } catch (BuildException be) {\n            cause = orCause(\n                cause, be,\n                JavaEnvUtils.getJavaVersionNumber() < JavaEnvUtils.VERSION_1_4);\n        }\n\n        try {\n            testAvailability(\"org.apache.oro.text.regex.Pattern\");\n            return createInstance(\"org.apache.tools.ant.util.regexp.JakartaOroMatcher\");\n        } catch (BuildException be) {\n            cause = orCause(cause, be, true);\n        }\n\n        try {\n            testAvailability(\"org.apache.regexp.RE\");\n            return createInstance(\"org.apache.tools.ant.util.regexp.JakartaRegexpMatcher\");\n        } catch (BuildException be) {\n            cause = orCause(cause, be, true);\n        }\n        throw new BuildException(\"No supported regular expression matcher found\"\n                + (cause != null ? \": \" + cause : \"\"), cause);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "TRY", "TRY", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CATCH", "RETURN", "CATCH", "RETURN", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [6, 17], [7, 18], [10, 19], [12, 20], [2, 21], [14, 22], [3, 23], [16, 24], [4, 25], [5, 26], [6, 27], [17, 28], [18, 29], [8, 30], [19, 31], [19, 32], [11, 33], [20, 34], [21, 35], [13, 36], [22, 37], [23, 38], [15, 39], [24, 40], [25, 41], [27, 42], [7, 43], [7, 44], [31, 45], [31, 46], [31, 47], [33, 48], [36, 49], [39, 50], [43, 51], [44, 52], [46, 53], [47, 54], [48, 55], [49, 56], [50, 57], [57, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 6], [18, 7], [19, 10], [20, 12], [21, 2], [22, 14], [23, 3], [24, 16], [25, 4], [26, 5], [27, 6], [28, 17], [29, 18], [30, 8], [31, 19], [32, 19], [33, 11], [34, 20], [35, 21], [36, 13], [37, 22], [38, 23], [39, 15], [40, 24], [41, 25], [42, 27], [43, 7], [44, 7], [45, 31], [46, 31], [47, 31], [48, 33], [49, 36], [50, 39], [51, 43], [52, 44], [53, 46], [54, 47], [55, 48], [56, 49], [57, 50], [58, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "orCause", "code": "    static Throwable orCause(Throwable deflt, BuildException be, boolean ignoreCnfe) {\n        if (deflt != null) {\n            return deflt;\n        }\n        Throwable t = be.getException();\n        return ignoreCnfe && t instanceof ClassNotFoundException ? null : t;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [7, 9], [7, 10], [2, 11], [3, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 7], [10, 7], [11, 2], [12, 3], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "createInstance", "code": "    protected RegexpMatcher createInstance(String className) throws BuildException {\n        return (RegexpMatcher) ClasspathUtils.newInstance(className, RegexpMatcherFactory.class\n                .getClassLoader(), RegexpMatcher.class);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "testAvailability", "code": "    protected void testAvailability(String className) throws BuildException {\n        try {\n            Class.forName(className);\n        } catch (Throwable t) {\n            throw new BuildException(t);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "regexpMatcherPresent", "code": "    public static boolean regexpMatcherPresent(Project project) {\n        try {\n            new RegexpMatcherFactory().newRegexpMatcher(project);\n            return true;\n        } catch (Throwable ex) {\n            return false;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "RegexpMatcherFactory", "code": "    public RegexpMatcherFactory() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.6-2808", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/interceptor/Debugger.java", "language": "java", "name": "org.apache.camel.processor.interceptor.Debugger", "code": "public class Debugger implements InterceptStrategy {\n    private static final transient Log LOG = LogFactory.getLog(Debugger.class);\n\n    private int exchangeBufferSize = -1;\n    private Map<String, DebugInterceptor> interceptors = new HashMap<String, DebugInterceptor>();\n    private boolean logExchanges = true;\n    private boolean enabled = true;\n    private Tracer tracer = new Tracer();\n\n\n    /**\n     * A helper method to return the debugger instance for a given {@link CamelContext} if one is enabled\n     *\n     * @param context the camel context the debugger is connected to\n     * @return the debugger or null if none can be found\n     */\n    public static Debugger getDebugger(CamelContext context) {\n        if (context instanceof DefaultCamelContext) {\n            DefaultCamelContext defaultCamelContext = (DefaultCamelContext) context;\n            List<InterceptStrategy> list = defaultCamelContext.getInterceptStrategies();\n            for (InterceptStrategy interceptStrategy : list) {\n                if (interceptStrategy instanceof Debugger) {\n                    return (Debugger)interceptStrategy;\n                }\n            }\n        }\n        return null;\n    }\n\n\n    public DebugInterceptor getInterceptor(String id) {\n        return interceptors.get(id);\n    }\n\n\n    /**\n     * Returns the list of exchanges sent to the given node in the DSL\n     */\n    public List<Exchange> getExchanges(String id) {\n        DebugInterceptor interceptor = getInterceptor(id);\n        if (interceptor == null) {\n            return null;\n        } else {\n            return interceptor.getExchanges();\n        }\n    }\n\n    public void setEnable(boolean flag) {\n        enabled = flag;\n        tracer.setEnabled(flag);\n        for (DebugInterceptor interceptor : interceptors.values()) {\n            interceptor.setEnabled(flag);\n        }\n    }\n\n    public boolean isEnabled() {\n        return enabled;\n    }\n\n    /**\n     * Returns the breakpoint object for the given node in the DSL\n     */\n    public Breakpoint getBreakpoint(String id) {\n        DebugInterceptor interceptor = getInterceptor(id);\n        if (interceptor == null) {\n            return null;\n        } else {\n            return interceptor.getBreakpoint();\n        }\n    }\n\n    public TraceFormatter getTraceFormatter() {\n        return tracer.getFormatter();\n    }\n\n    public void setTraceFormatter(TraceFormatter formatter) {\n        tracer.setFormatter(formatter);\n    }\n\n    public void setLogExchanges(boolean flag) {\n        logExchanges = flag;\n    }\n\n\n    public Processor wrapProcessorInInterceptors(ProcessorType processorType, Processor target) throws Exception {\n        String id = processorType.idOrCreate();\n        if (logExchanges) {\n            TraceInterceptor  traceInterceptor = new TraceInterceptor(processorType, target, tracer);\n            target = traceInterceptor;\n        }\n        DebugInterceptor interceptor = new DebugInterceptor(processorType, target, createExchangeList(), createExceptionsList());\n        interceptors.put(id, interceptor);\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Adding \" + id + \" interceptor: \" + interceptor);\n        }\n        return interceptor;\n    }\n\n    protected List<Exchange> createExchangeList() {\n        if (exchangeBufferSize == 0) {\n            return null;\n        } else if (exchangeBufferSize > 0) {\n            return new ArrayList<Exchange>();\n        } else {\n            return new ArrayList<Exchange>();\n        }\n    }\n\n    protected List<ExceptionEvent> createExceptionsList() {\n        return new ArrayList<ExceptionEvent>();", "functions": [{"function_name": "getDebugger", "code": "    public static Debugger getDebugger(CamelContext context) {\n        if (context instanceof DefaultCamelContext) {\n            DefaultCamelContext defaultCamelContext = (DefaultCamelContext) context;\n            List<InterceptStrategy> list = defaultCamelContext.getInterceptStrategies();\n            for (InterceptStrategy interceptStrategy : list) {\n                if (interceptStrategy instanceof Debugger) {\n                    return (Debugger)interceptStrategy;\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [6, 9], [7, 10], [9, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 6], [10, 7], [11, 9], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getInterceptor", "code": "    public DebugInterceptor getInterceptor(String id) {\n        return interceptors.get(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getExchanges", "code": "    public List<Exchange> getExchanges(String id) {\n        DebugInterceptor interceptor = getInterceptor(id);\n        if (interceptor == null) {\n            return null;\n        } else {\n            return interceptor.getExchanges();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setEnable", "code": "    public void setEnable(boolean flag) {\n        enabled = flag;\n        tracer.setEnabled(flag);\n        for (DebugInterceptor interceptor : interceptors.values()) {\n            interceptor.setEnabled(flag);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isEnabled", "code": "    public boolean isEnabled() {\n        return enabled;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBreakpoint", "code": "    public Breakpoint getBreakpoint(String id) {\n        DebugInterceptor interceptor = getInterceptor(id);\n        if (interceptor == null) {\n            return null;\n        } else {\n            return interceptor.getBreakpoint();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getTraceFormatter", "code": "    public TraceFormatter getTraceFormatter() {\n        return tracer.getFormatter();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTraceFormatter", "code": "    public void setTraceFormatter(TraceFormatter formatter) {\n        tracer.setFormatter(formatter);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLogExchanges", "code": "    public void setLogExchanges(boolean flag) {\n        logExchanges = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "wrapProcessorInInterceptors", "code": "    public Processor wrapProcessorInInterceptors(ProcessorType processorType, Processor target) throws Exception {\n        String id = processorType.idOrCreate();\n        if (logExchanges) {\n            TraceInterceptor  traceInterceptor = new TraceInterceptor(processorType, target, tracer);\n            target = traceInterceptor;\n        }\n        DebugInterceptor interceptor = new DebugInterceptor(processorType, target, createExchangeList(), createExceptionsList());\n        interceptors.put(id, interceptor);\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Adding \" + id + \" interceptor: \" + interceptor);\n        }\n        return interceptor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [3, 10], [4, 11], [5, 12], [2, 13], [10, 14], [10, 15], [4, 16], [13, 17], [11, 18], [17, 19], [19, 20], [19, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 3], [11, 4], [12, 5], [13, 2], [14, 10], [15, 10], [16, 4], [17, 13], [18, 11], [19, 17], [20, 19], [21, 19], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "createExchangeList", "code": "    protected List<Exchange> createExchangeList() {\n        if (exchangeBufferSize == 0) {\n            return null;\n        } else if (exchangeBufferSize > 0) {\n            return new ArrayList<Exchange>();\n        } else {\n            return new ArrayList<Exchange>();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [3, 6], [2, 7], [2, 8], [4, 9], [5, 10], [7, 11], [8, 12], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 3], [7, 2], [8, 2], [9, 4], [10, 5], [11, 7], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createExceptionsList", "code": "    protected List<ExceptionEvent> createExceptionsList() {\n        return new ArrayList<ExceptionEvent>();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7450", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/SecuritySupport12.java", "language": "java", "name": "org.apache.xml.dtm.ref.SecuritySupport12", "code": "class SecuritySupport12 extends SecuritySupport {\n\n    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;\n            }\n        });\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;\n                }\n            });\n    }\n\n    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;\n                }\n            });\n    }\n\n    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);\n                }\n            });\n    }\n\n    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();\n        }\n    }\n\n    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;\n                }\n            });\n    }\n    \n    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());\n                }\n            })).booleanValue();\n    }\n    \n    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "functions": [{"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "COND_EXPR", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [7, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 7], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [8, 10], [10, 11], [8, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 8], [11, 10], [12, 8], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLastModified", "code": "    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "camel-1.2-1643", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/language/ELExpression.java", "language": "java", "name": "org.apache.camel.model.language.ELExpression", "code": "@XmlRootElement(name = \"el\")\npublic class ELExpression extends ExpressionType {\n    public ELExpression() {\n    }\n\n    public ELExpression(String expression) {\n        super(expression);\n    }\n\n    public String getLanguage() {\n        return \"el\";", "functions": [{"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return \"el\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ELExpression", "code": "    public ELExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ELExpression", "code": "    public ELExpression(String expression) {\n        super(expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-946", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/depend/DirectoryIterator.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.depend.DirectoryIterator", "code": "public class DirectoryIterator implements ClassFileIterator {\n\n    /**\n     * This is a stack of current iterators supporting the depth first\n     * traversal of the directory tree.\n     */\n    private Stack enumStack;\n\n    /**\n     * The current directory iterator. As directories encounter lower level\n     * directories, the current iterator is pushed onto the iterator stack\n     * and a new iterator over the sub directory becomes the current\n     * directory. This implements a depth first traversal of the directory\n     * namespace.\n     */\n    private Enumeration currentEnum;\n\n    /**\n     * Creates a directory iterator. The directory iterator is created to\n     * scan the root directory. If the changeInto flag is given, then the\n     * entries returned will be relative to this directory and not the\n     * current directory.\n     *\n     * @param rootDirectory the root if the directory namespace which is to\n     *      be iterated over\n     * @param changeInto if true then the returned entries will be relative\n     *      to the rootDirectory and not the current directory.\n     * @exception IOException if there is a problem reading the directory\n     *      information.\n     */\n    public DirectoryIterator(File rootDirectory, boolean changeInto)\n         throws IOException {\n        super();\n\n        enumStack = new Stack();\n\n        Vector filesInRoot = getDirectoryEntries(rootDirectory);\n\n        currentEnum = filesInRoot.elements();\n    }\n\n    /**\n     * Get a vector covering all the entries (files and subdirectories in a\n     * directory).\n     *\n     * @param directory the directory to be scanned.\n     * @return a vector containing File objects for each entry in the\n     *      directory.\n     */\n    private Vector getDirectoryEntries(File directory) {\n        Vector files = new Vector();\n\n        String[] filesInDir = directory.list();\n\n        if (filesInDir != null) {\n            int length = filesInDir.length;\n\n            for (int i = 0; i < length; ++i) {\n                files.addElement(new File(directory, filesInDir[i]));\n            }\n        }\n\n        return files;\n    }\n\n    /**\n     * Template method to allow subclasses to supply elements for the\n     * iteration. The directory iterator maintains a stack of iterators\n     * covering each level in the directory hierarchy. The current iterator\n     * covers the current directory being scanned. If the next entry in that\n     * directory is a subdirectory, the current iterator is pushed onto the\n     * stack and a new iterator is created for the subdirectory. If the\n     * entry is a file, it is returned as the next element and the iterator\n     * remains valid. If there are no more entries in the current directory,\n     * the topmost iterator on the stack is popped off to become the\n     * current iterator.\n     *\n     * @return the next ClassFile in the iteration.\n     */\n    public ClassFile getNextClassFile() {\n        ClassFile nextElement = null;\n\n        try {\n            while (nextElement == null) {\n                if (currentEnum.hasMoreElements()) {\n                    File element = (File) currentEnum.nextElement();\n\n                    if (element.isDirectory()) {\n\n                        enumStack.push(currentEnum);\n\n                        Vector files = getDirectoryEntries(element);\n\n                        currentEnum = files.elements();\n                    } else {\n\n                        FileInputStream inFileStream\n                            = new FileInputStream(element);\n\n                        if (element.getName().endsWith(\".class\")) {\n\n                            ClassFile javaClass = new ClassFile();\n\n                            javaClass.read(inFileStream);\n\n                            nextElement = javaClass;\n                        }\n                    }\n                } else {\n                    if (enumStack.empty()) {\n                        break;\n                    } else {\n                        currentEnum = (Enumeration) enumStack.pop();\n                    }\n                }\n            }\n        } catch (IOException e) {\n            nextElement = null;\n        }\n\n        return nextElement;", "functions": [{"function_name": "getDirectoryEntries", "code": "    private Vector getDirectoryEntries(File directory) {\n        Vector files = new Vector();\n\n        String[] filesInDir = directory.list();\n\n        if (filesInDir != null) {\n            int length = filesInDir.length;\n\n            for (int i = 0; i < length; ++i) {\n                files.addElement(new File(directory, filesInDir[i]));\n            }\n        }\n\n        return files;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [4, 11], [7, 12], [7, 13], [7, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 4], [12, 7], [13, 7], [14, 7], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getNextClassFile", "code": "    public ClassFile getNextClassFile() {\n        ClassFile nextElement = null;\n\n        try {\n            while (nextElement == null) {\n                if (currentEnum.hasMoreElements()) {\n                    File element = (File) currentEnum.nextElement();\n\n                    if (element.isDirectory()) {\n\n                        enumStack.push(currentEnum);\n\n                        Vector files = getDirectoryEntries(element);\n\n                        currentEnum = files.elements();\n                    } else {\n\n                        FileInputStream inFileStream\n                            = new FileInputStream(element);\n\n                        if (element.getName().endsWith(\".class\")) {\n\n                            ClassFile javaClass = new ClassFile();\n\n                            javaClass.read(inFileStream);\n\n                            nextElement = javaClass;\n                        }\n                    }\n                } else {\n                    if (enumStack.empty()) {\n                        break;\n                    } else {\n                        currentEnum = (Enumeration) enumStack.pop();\n                    }\n                }\n            }\n        } catch (IOException e) {\n            nextElement = null;\n        }\n\n        return nextElement;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "BREAK_CONTINUE", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [3, 7], [4, 8], [5, 9], [6, 10], [8, 11], [9, 12], [9, 13], [9, 14], [9, 15], [13, 16], [14, 17], [13, 18], [14, 19], [14, 20], [14, 21], [13, 22], [19, 23], [14, 24], [14, 25], [15, 26], [19, 27], [23, 28], [20, 29], [24, 30], [21, 31], [22, 32], [19, 33], [19, 34], [28, 35], [27, 36], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [7, 3], [8, 4], [9, 5], [10, 6], [11, 8], [12, 9], [13, 9], [14, 9], [15, 9], [16, 13], [17, 14], [18, 13], [19, 14], [20, 14], [21, 14], [22, 13], [23, 19], [24, 14], [25, 14], [26, 15], [27, 19], [28, 23], [29, 20], [30, 24], [31, 21], [32, 22], [33, 19], [34, 19], [35, 28], [36, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "DirectoryIterator", "code": "    public DirectoryIterator(File rootDirectory, boolean changeInto)\n         throws IOException {\n        super();\n\n        enumStack = new Stack();\n\n        Vector filesInRoot = getDirectoryEntries(rootDirectory);\n\n        currentEnum = filesInRoot.elements();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ant-1.7-1107", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/ejb/BorlandGenerateClient.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.ejb.BorlandGenerateClient", "code": "public class BorlandGenerateClient extends Task {\n    static final String JAVA_MODE = \"java\";\n    static final String FORK_MODE = \"fork\";\n\n    /** debug the generateclient task */\n    boolean debug = false;\n\n    /** hold the ejbjar file name */\n    File ejbjarfile = null;\n\n    /** hold the client jar file name */\n    File clientjarfile = null;\n\n    /** hold the classpath */\n    Path classpath;\n\n    /** hold the mode (java|fork) */\n    String mode = FORK_MODE;\n\n    /** hold the version */\n    int version = BorlandDeploymentTool.BAS;\n\n    /**\n     * Set the version attribute.\n     * @param version the value to use.\n     */\n    public void setVersion(int version) {\n        this.version = version;\n    }\n\n    /**\n     * Command launching mode: java or fork.\n     * @param s the mode to use.\n     */\n    public void setMode(String s) {\n        mode = s;\n    }\n\n    /**\n     * If true, turn on the debug mode for each of the Borland tools launched.\n     * @param debug a <code>boolean</code> value.\n     */\n    public void setDebug(boolean debug) {\n        this.debug = debug;\n    }\n\n    /**\n     * EJB JAR file.\n     * @param ejbfile the file to use.\n     */\n    public void setEjbjar(File ejbfile) {\n        ejbjarfile = ejbfile;\n    }\n\n    /**\n     * Client JAR file name.\n     * @param clientjar the file to use.\n     */\n    public void setClientjar(File clientjar) {\n        clientjarfile = clientjar;\n    }\n\n    /**\n     * Path to use for classpath.\n     * @param classpath the path to use.\n     */\n    public void setClasspath(Path classpath) {\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);\n        }\n    }\n\n    /**\n     * Adds path to the classpath.\n     * @return a path to be configured as a nested element.\n     */\n    public Path createClasspath() {\n        if (this.classpath == null) {\n            this.classpath = new Path(getProject());\n        }\n        return this.classpath.createPath();\n    }\n\n    /**\n     * Reference to existing path, to use as a classpath.\n     * @param r the reference to use.\n     */\n    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);\n    }\n\n\n    /**\n     * Do the work.\n     *\n     * The work is actually done by creating a separate JVM to run a java task.\n     *\n     * @exception BuildException if something goes wrong with the build\n     */\n    public void execute() throws BuildException {\n        if (ejbjarfile == null || ejbjarfile.isDirectory()) {\n            throw new BuildException(\"invalid ejb jar file.\");\n        }\n\n        if (clientjarfile == null || clientjarfile.isDirectory()) {\n            log(\"invalid or missing client jar file.\", Project.MSG_VERBOSE);\n            String ejbjarname = ejbjarfile.getAbsolutePath();\n            String clientname = ejbjarname.substring(0, ejbjarname.lastIndexOf(\".\"));\n            clientname = clientname + \"client.jar\";\n            clientjarfile = new File(clientname);\n        }\n\n        if (mode == null) {\n            log(\"mode is null default mode  is java\");\n            setMode(JAVA_MODE);\n        }\n\n        if (!(version == BorlandDeploymentTool.BES\n            || version == BorlandDeploymentTool.BAS)) {\n            throw new BuildException(\"version \" + version\n                                      + \" is not supported\");\n        }\n\n        log(\"client jar file is \" + clientjarfile);\n\n        if (mode.equalsIgnoreCase(FORK_MODE)) {\n            executeFork();\n        } else {\n            executeJava();\n\t\t}\n    }\n\n    /**\n     * launch the generate client using java api.\n     * @throws BuildException if there is an error.\n     */\n    protected void executeJava() throws BuildException {\n        try {\n            if (version == BorlandDeploymentTool.BES)  {\n                throw new BuildException(\"java mode is supported only for \"\n                    + \"previous version <=\" + BorlandDeploymentTool.BAS);\n            }\n\n            log(\"mode : java\");\n\n            Java execTask = null;\n            execTask = new Java(this);\n\n            execTask.setDir(new File(\".\"));\n            execTask.setClassname(\"com.inprise.server.commandline.EJBUtilities\");\n            execTask.setClasspath(classpath.concatSystemClasspath());\n\n            execTask.setFork(true);\n            execTask.createArg().setValue(\"generateclient\");\n            if (debug) {\n                execTask.createArg().setValue(\"-trace\");\n            }\n\n            execTask.createArg().setValue(\"-short\");\n            execTask.createArg().setValue(\"-jarfile\");\n            execTask.createArg().setValue(ejbjarfile.getAbsolutePath());\n            execTask.createArg().setValue(\"-single\");\n            execTask.createArg().setValue(\"-clientjarfile\");\n            execTask.createArg().setValue(clientjarfile.getAbsolutePath());\n\n            log(\"Calling EJBUtilities\", Project.MSG_VERBOSE);\n            execTask.execute();\n\n        } catch (Exception e) {\n            String msg = \"Exception while calling generateclient Details: \" + e.toString();\n            throw new BuildException(msg, e);\n        }\n    }\n\n    /**\n     * launch the generate client using system api.\n     * @throws BuildException if there is an error.\n     */\n    protected  void executeFork() throws BuildException {\n        if (version == BorlandDeploymentTool.BAS) {\n            executeForkV4();\n        }\n        if (version == BorlandDeploymentTool.BES) {\n            executeForkV5();\n        }\n    }\n\n    /**\n     * launch the generate client using system api.\n     * @throws BuildException if there is an error.\n     */\n    protected  void executeForkV4() throws BuildException {\n        try {\n\n            log(\"mode : fork \" + BorlandDeploymentTool.BAS, Project.MSG_DEBUG);\n\n            ExecTask execTask = new ExecTask(this);\n\n            execTask.setDir(new File(\".\"));\n            execTask.setExecutable(\"iastool\");\n            execTask.createArg().setValue(\"generateclient\");\n            if (debug) {\n                execTask.createArg().setValue(\"-trace\");\n            }\n\n            execTask.createArg().setValue(\"-short\");\n            execTask.createArg().setValue(\"-jarfile\");\n            execTask.createArg().setValue(ejbjarfile.getAbsolutePath());\n            execTask.createArg().setValue(\"-single\");\n            execTask.createArg().setValue(\"-clientjarfile\");\n            execTask.createArg().setValue(clientjarfile.getAbsolutePath());\n\n            log(\"Calling iastool\", Project.MSG_VERBOSE);\n            execTask.execute();\n        } catch (Exception e) {\n            String msg = \"Exception while calling generateclient Details: \"\n                + e.toString();\n            throw new BuildException(msg, e);\n        }\n\n    }\n\n    /**\n     * launch the generate client using system api.\n     * @throws BuildException if there is an error.\n     */\n    protected  void executeForkV5() throws BuildException {\n        try {\n            log(\"mode : fork \" + BorlandDeploymentTool.BES, Project.MSG_DEBUG);\n            ExecTask execTask = new ExecTask(this);\n\n            execTask.setDir(new File(\".\"));\n\n            execTask.setExecutable(\"iastool\");\n            if (debug) {\n                execTask.createArg().setValue(\"-debug\");\n            }\n            execTask.createArg().setValue(\"-genclient\");\n            execTask.createArg().setValue(\"-jars\");\n            execTask.createArg().setValue(ejbjarfile.getAbsolutePath());\n            execTask.createArg().setValue(\"-target\");\n            execTask.createArg().setValue(clientjarfile.getAbsolutePath());\n            execTask.createArg().setValue(\"-cp\");\n            execTask.createArg().setValue(classpath.toString());\n            log(\"Calling iastool\", Project.MSG_VERBOSE);\n            execTask.execute();\n        } catch (Exception e) {\n            String msg = \"Exception while calling generateclient Details: \"\n                + e.toString();\n            throw new BuildException(msg, e);", "functions": [{"function_name": "setVersion", "code": "    public void setVersion(int version) {\n        this.version = version;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMode", "code": "    public void setMode(String s) {\n        mode = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDebug", "code": "    public void setDebug(boolean debug) {\n        this.debug = debug;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setEjbjar", "code": "    public void setEjbjar(File ejbfile) {\n        ejbjarfile = ejbfile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClientjar", "code": "    public void setClientjar(File clientjar) {\n        clientjarfile = clientjar;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (this.classpath == null) {\n            this.classpath = new Path(getProject());\n        }\n        return this.classpath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (ejbjarfile == null || ejbjarfile.isDirectory()) {\n            throw new BuildException(\"invalid ejb jar file.\");\n        }\n\n        if (clientjarfile == null || clientjarfile.isDirectory()) {\n            log(\"invalid or missing client jar file.\", Project.MSG_VERBOSE);\n            String ejbjarname = ejbjarfile.getAbsolutePath();\n            String clientname = ejbjarname.substring(0, ejbjarname.lastIndexOf(\".\"));\n            clientname = clientname + \"client.jar\";\n            clientjarfile = new File(clientname);\n        }\n\n        if (mode == null) {\n            log(\"mode is null default mode  is java\");\n            setMode(JAVA_MODE);\n        }\n\n        if (!(version == BorlandDeploymentTool.BES\n            || version == BorlandDeploymentTool.BAS)) {\n            throw new BuildException(\"version \" + version\n                                      + \" is not supported\");\n        }\n\n        log(\"client jar file is \" + clientjarfile);\n\n        if (mode.equalsIgnoreCase(FORK_MODE)) {\n            executeFork();\n        } else {\n            executeJava();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [4, 10], [5, 11], [7, 12], [2, 13], [8, 14], [8, 15], [9, 16], [4, 17], [4, 18], [10, 19], [10, 20], [5, 21], [11, 22], [11, 23], [1, 24], [1, 25], [12, 26], [13, 27], [3, 28], [3, 29], [4, 30], [4, 31], [4, 32], [20, 33], [21, 34], [23, 35], [27, 36], [29, 37], [30, 38], [31, 39], [17, 40], [18, 41], [32, 42], [34, 43], [36, 44], [36, 45], [39, 46], [40, 47], [40, 48], [45, 49], [47, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 4], [11, 5], [12, 7], [13, 2], [14, 8], [15, 8], [16, 9], [17, 4], [18, 4], [19, 10], [20, 10], [21, 5], [22, 11], [23, 11], [24, 1], [25, 1], [26, 12], [27, 13], [28, 3], [29, 3], [30, 4], [31, 4], [32, 4], [33, 20], [34, 21], [35, 23], [36, 27], [37, 29], [38, 30], [39, 31], [40, 17], [41, 18], [42, 32], [43, 34], [44, 36], [45, 36], [46, 39], [47, 40], [48, 40], [49, 45], [50, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "executeJava", "code": "    protected void executeJava() throws BuildException {\n        try {\n            if (version == BorlandDeploymentTool.BES)  {\n                throw new BuildException(\"java mode is supported only for \"\n                    + \"previous version <=\" + BorlandDeploymentTool.BAS);\n            }\n\n            log(\"mode : java\");\n\n            Java execTask = null;\n            execTask = new Java(this);\n\n            execTask.setDir(new File(\".\"));\n            execTask.setClassname(\"com.inprise.server.commandline.EJBUtilities\");\n            execTask.setClasspath(classpath.concatSystemClasspath());\n\n            execTask.setFork(true);\n            execTask.createArg().setValue(\"generateclient\");\n            if (debug) {\n                execTask.createArg().setValue(\"-trace\");\n            }\n\n            execTask.createArg().setValue(\"-short\");\n            execTask.createArg().setValue(\"-jarfile\");\n            execTask.createArg().setValue(ejbjarfile.getAbsolutePath());\n            execTask.createArg().setValue(\"-single\");\n            execTask.createArg().setValue(\"-clientjarfile\");\n            execTask.createArg().setValue(clientjarfile.getAbsolutePath());\n\n            log(\"Calling EJBUtilities\", Project.MSG_VERBOSE);\n            execTask.execute();\n\n        } catch (Exception e) {\n            String msg = \"Exception while calling generateclient Details: \" + e.toString();\n            throw new BuildException(msg, e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "VAR_DECL", "IF", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [2, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [5, 23], [6, 24], [9, 25], [10, 26], [11, 27], [12, 28], [13, 29], [14, 30], [15, 31], [16, 32], [17, 33], [18, 34], [19, 35], [20, 36], [21, 37], [4, 38], [22, 39], [5, 40], [7, 41], [26, 42], [27, 43], [28, 44], [29, 45], [30, 46], [31, 47], [3, 48], [32, 49], [36, 50], [40, 51], [41, 52], [41, 53], [48, 54], [51, 55], [54, 56], [55, 57], [57, 58], [57, 59], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 2], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 5], [24, 6], [25, 9], [26, 10], [27, 11], [28, 12], [29, 13], [30, 14], [31, 15], [32, 16], [33, 17], [34, 18], [35, 19], [36, 20], [37, 21], [38, 4], [39, 22], [40, 5], [41, 7], [42, 26], [43, 27], [44, 28], [45, 29], [46, 30], [47, 31], [48, 3], [49, 32], [50, 36], [51, 40], [52, 41], [53, 41], [54, 48], [55, 51], [56, 54], [57, 55], [58, 57], [59, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "executeFork", "code": "    protected  void executeFork() throws BuildException {\n        if (version == BorlandDeploymentTool.BAS) {\n            executeForkV4();\n        }\n        if (version == BorlandDeploymentTool.BES) {\n            executeForkV5();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "executeForkV4", "code": "    protected  void executeForkV4() throws BuildException {\n        try {\n\n            log(\"mode : fork \" + BorlandDeploymentTool.BAS, Project.MSG_DEBUG);\n\n            ExecTask execTask = new ExecTask(this);\n\n            execTask.setDir(new File(\".\"));\n            execTask.setExecutable(\"iastool\");\n            execTask.createArg().setValue(\"generateclient\");\n            if (debug) {\n                execTask.createArg().setValue(\"-trace\");\n            }\n\n            execTask.createArg().setValue(\"-short\");\n            execTask.createArg().setValue(\"-jarfile\");\n            execTask.createArg().setValue(ejbjarfile.getAbsolutePath());\n            execTask.createArg().setValue(\"-single\");\n            execTask.createArg().setValue(\"-clientjarfile\");\n            execTask.createArg().setValue(clientjarfile.getAbsolutePath());\n\n            log(\"Calling iastool\", Project.MSG_VERBOSE);\n            execTask.execute();\n        } catch (Exception e) {\n            String msg = \"Exception while calling generateclient Details: \"\n                + e.toString();\n            throw new BuildException(msg, e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [5, 19], [8, 20], [9, 21], [10, 22], [11, 23], [12, 24], [13, 25], [14, 26], [15, 27], [16, 28], [17, 29], [4, 30], [18, 31], [6, 32], [21, 33], [22, 34], [23, 35], [24, 36], [25, 37], [26, 38], [3, 39], [27, 40], [29, 41], [31, 42], [32, 43], [32, 44], [39, 45], [45, 46], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 5], [20, 8], [21, 9], [22, 10], [23, 11], [24, 12], [25, 13], [26, 14], [27, 15], [28, 16], [29, 17], [30, 4], [31, 18], [32, 6], [33, 21], [34, 22], [35, 23], [36, 24], [37, 25], [38, 26], [39, 3], [40, 27], [41, 29], [42, 31], [43, 32], [44, 32], [45, 39], [46, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "executeForkV5", "code": "    protected  void executeForkV5() throws BuildException {\n        try {\n            log(\"mode : fork \" + BorlandDeploymentTool.BES, Project.MSG_DEBUG);\n            ExecTask execTask = new ExecTask(this);\n\n            execTask.setDir(new File(\".\"));\n\n            execTask.setExecutable(\"iastool\");\n            if (debug) {\n                execTask.createArg().setValue(\"-debug\");\n            }\n            execTask.createArg().setValue(\"-genclient\");\n            execTask.createArg().setValue(\"-jars\");\n            execTask.createArg().setValue(ejbjarfile.getAbsolutePath());\n            execTask.createArg().setValue(\"-target\");\n            execTask.createArg().setValue(clientjarfile.getAbsolutePath());\n            execTask.createArg().setValue(\"-cp\");\n            execTask.createArg().setValue(classpath.toString());\n            log(\"Calling iastool\", Project.MSG_VERBOSE);\n            execTask.execute();\n        } catch (Exception e) {\n            String msg = \"Exception while calling generateclient Details: \"\n                + e.toString();\n            throw new BuildException(msg, e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [5, 19], [8, 20], [9, 21], [10, 22], [11, 23], [12, 24], [13, 25], [14, 26], [15, 27], [16, 28], [17, 29], [4, 30], [18, 31], [6, 32], [21, 33], [22, 34], [23, 35], [24, 36], [25, 37], [26, 38], [27, 39], [3, 40], [29, 41], [31, 42], [32, 43], [32, 44], [40, 45], [45, 46], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 5], [20, 8], [21, 9], [22, 10], [23, 11], [24, 12], [25, 13], [26, 14], [27, 15], [28, 16], [29, 17], [30, 4], [31, 18], [32, 6], [33, 21], [34, 22], [35, 23], [36, 24], [37, 25], [38, 26], [39, 27], [40, 3], [41, 29], [42, 31], [43, 32], [44, 32], [45, 40], [46, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}], "label": 0}
{"sample_id": "camel-1.2-1823", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/jms/JmsIOConverter.java", "language": "java", "name": "org.apache.camel.component.jms.JmsIOConverter", "code": "@Converter\npublic final class JmsIOConverter {\n    \n    private JmsIOConverter() {        \n    }\n    \n    /**\n     * @param message\n     * @return a ByteBuffer\n     * @throws Exception\n     */\n    @Converter\n    public static ByteBuffer toByteBuffer(final Message message) throws Exception {\n\n        if (message instanceof TextMessage) {\n            final String text = ((TextMessage)message).getText();\n            return NIOConverter.toByteBuffer(text);\n        }\n        if (message instanceof BytesMessage) {\n            final BytesMessage bmsg = (BytesMessage)message;\n            final int len = (int)bmsg.getBodyLength();\n            final byte[] data = new byte[len];\n            bmsg.readBytes(data, len);\n            return NIOConverter.toByteBuffer(data);\n\n        }\n        if (message instanceof StreamMessage) {\n            final StreamMessage msg = (StreamMessage)message;\n            final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();\n            final DataOutputStream dataOut = new DataOutputStream(bytesOut);\n            try {\n                while (true) {\n                    final Object obj = msg.readObject();\n                    writeData(dataOut, obj);\n                }\n            } catch (MessageEOFException e) {\n            }\n            dataOut.close();\n            return NIOConverter.toByteBuffer(bytesOut.toByteArray());\n        }\n        if (message instanceof MapMessage) {\n            final MapMessage msg = (MapMessage)message;\n            final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();\n            final DataOutputStream dataOut = new DataOutputStream(bytesOut);\n            for (final Enumeration en = msg.getMapNames(); en.hasMoreElements();) {\n                final Object obj = msg.getObject(en.nextElement().toString());\n                writeData(dataOut, obj);\n            }\n            dataOut.close();\n            return NIOConverter.toByteBuffer(bytesOut.toByteArray());\n        }\n        if (message instanceof ObjectMessage) {\n            ObjectMessage objMessage = (ObjectMessage)message;\n            Object object = objMessage.getObject();\n            ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();\n            ObjectOutputStream objectOut = new ObjectOutputStream(bytesOut);\n            objectOut.writeObject(object);\n            objectOut.close();\n            return NIOConverter.toByteBuffer(bytesOut.toByteArray());\n        }\n        return null;\n\n    }\n\n    private static void writeData(DataOutputStream dataOut, Object data) throws Exception {\n\n        if (data instanceof byte[]) {\n            dataOut.write((byte[])data);\n        } else if (data instanceof String) {\n            dataOut.writeUTF(data.toString());\n        } else if (data instanceof Double) {\n            dataOut.writeDouble(((Double)data).doubleValue());\n        } else if (data instanceof Float) {\n            dataOut.writeFloat(((Float)data).floatValue());\n        } else if (data instanceof Long) {\n            dataOut.writeLong(((Long)data).longValue());\n        } else if (data instanceof Integer) {\n            dataOut.writeInt(((Integer)data).intValue());\n        } else if (data instanceof Short) {\n            dataOut.writeShort(((Short)data).shortValue());\n        } else if (data instanceof Character) {\n            dataOut.writeChar(((Character)data).charValue());\n        } else if (data instanceof Byte) {\n            dataOut.writeByte(((Byte)data).byteValue());\n        } else if (data instanceof Boolean) {\n            dataOut.writeBoolean(((Boolean)data).booleanValue());", "functions": [{"function_name": "toByteBuffer", "code": "    @Converter\n    public static ByteBuffer toByteBuffer(final Message message) throws Exception {\n\n        if (message instanceof TextMessage) {\n            final String text = ((TextMessage)message).getText();\n            return NIOConverter.toByteBuffer(text);\n        }\n        if (message instanceof BytesMessage) {\n            final BytesMessage bmsg = (BytesMessage)message;\n            final int len = (int)bmsg.getBodyLength();\n            final byte[] data = new byte[len];\n            bmsg.readBytes(data, len);\n            return NIOConverter.toByteBuffer(data);\n\n        }\n        if (message instanceof StreamMessage) {\n            final StreamMessage msg = (StreamMessage)message;\n            final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();\n            final DataOutputStream dataOut = new DataOutputStream(bytesOut);\n            try {\n                while (true) {\n                    final Object obj = msg.readObject();\n                    writeData(dataOut, obj);\n                }\n            } catch (MessageEOFException e) {\n            }\n            dataOut.close();\n            return NIOConverter.toByteBuffer(bytesOut.toByteArray());\n        }\n        if (message instanceof MapMessage) {\n            final MapMessage msg = (MapMessage)message;\n            final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();\n            final DataOutputStream dataOut = new DataOutputStream(bytesOut);\n            for (final Enumeration en = msg.getMapNames(); en.hasMoreElements();) {\n                final Object obj = msg.getObject(en.nextElement().toString());\n                writeData(dataOut, obj);\n            }\n            dataOut.close();\n            return NIOConverter.toByteBuffer(bytesOut.toByteArray());\n        }\n        if (message instanceof ObjectMessage) {\n            ObjectMessage objMessage = (ObjectMessage)message;\n            Object object = objMessage.getObject();\n            ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();\n            ObjectOutputStream objectOut = new ObjectOutputStream(bytesOut);\n            objectOut.writeObject(object);\n            objectOut.close();\n            return NIOConverter.toByteBuffer(bytesOut.toByteArray());\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "LOOP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [4, 11], [5, 12], [6, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [4, 24], [4, 25], [4, 26], [4, 27], [4, 28], [5, 29], [5, 30], [5, 31], [5, 32], [6, 33], [6, 34], [14, 35], [2, 36], [2, 37], [19, 38], [3, 39], [20, 40], [24, 41], [4, 42], [25, 43], [25, 44], [29, 45], [5, 46], [33, 47], [35, 48], [15, 49], [16, 50], [17, 51], [38, 52], [20, 53], [21, 54], [22, 55], [41, 56], [44, 57], [26, 58], [27, 59], [20, 60], [20, 61], [44, 62], [31, 63], [53, 64], [44, 65], [64, 66], [62, 67], [66, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 4], [12, 5], [13, 6], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 4], [25, 4], [26, 4], [27, 4], [28, 4], [29, 5], [30, 5], [31, 5], [32, 5], [33, 6], [34, 6], [35, 14], [36, 2], [37, 2], [38, 19], [39, 3], [40, 20], [41, 24], [42, 4], [43, 25], [44, 25], [45, 29], [46, 5], [47, 33], [48, 35], [49, 15], [50, 16], [51, 17], [52, 38], [53, 20], [54, 21], [55, 22], [56, 41], [57, 44], [58, 26], [59, 27], [60, 20], [61, 20], [62, 44], [63, 31], [64, 53], [65, 44], [66, 64], [67, 62], [68, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "writeData", "code": "    private static void writeData(DataOutputStream dataOut, Object data) throws Exception {\n\n        if (data instanceof byte[]) {\n            dataOut.write((byte[])data);\n        } else if (data instanceof String) {\n            dataOut.writeUTF(data.toString());\n        } else if (data instanceof Double) {\n            dataOut.writeDouble(((Double)data).doubleValue());\n        } else if (data instanceof Float) {\n            dataOut.writeFloat(((Float)data).floatValue());\n        } else if (data instanceof Long) {\n            dataOut.writeLong(((Long)data).longValue());\n        } else if (data instanceof Integer) {\n            dataOut.writeInt(((Integer)data).intValue());\n        } else if (data instanceof Short) {\n            dataOut.writeShort(((Short)data).shortValue());\n        } else if (data instanceof Character) {\n            dataOut.writeChar(((Character)data).charValue());\n        } else if (data instanceof Byte) {\n            dataOut.writeByte(((Byte)data).byteValue());\n        } else if (data instanceof Boolean) {\n            dataOut.writeBoolean(((Boolean)data).booleanValue());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [6, 8], [6, 9], [1, 10], [8, 11], [8, 12], [4, 13], [11, 14], [11, 15], [6, 16], [13, 17], [14, 18], [14, 19], [8, 20], [18, 21], [18, 22], [11, 23], [21, 24], [21, 25], [14, 26], [24, 27], [24, 28], [18, 29], [27, 30], [21, 31], [24, 32], [27, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 6], [9, 6], [10, 1], [11, 8], [12, 8], [13, 4], [14, 11], [15, 11], [16, 6], [17, 13], [18, 14], [19, 14], [20, 8], [21, 18], [22, 18], [23, 11], [24, 21], [25, 21], [26, 14], [27, 24], [28, 24], [29, 18], [30, 27], [31, 21], [32, 24], [33, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "JmsIOConverter", "code": "    private JmsIOConverter() {        ", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.7-8180", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/IntVector.java", "language": "java", "name": "org.apache.xml.utils.IntVector", "code": "public class IntVector implements Cloneable\n{\n\n  /** Size of blocks to allocate          */\n  protected int m_blocksize;\n\n  /** Array of ints          */\n\n  /** Number of ints in array          */\n  protected int m_firstFree = 0;\n\n  /** Size of array          */\n  protected int m_mapSize;\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is very small, for small lists.\n   */\n  public IntVector()\n  {\n\n    m_blocksize = 32;\n    m_mapSize = m_blocksize;\n    m_map = new int[m_blocksize];\n  }\n\n  /**\n   * Construct a IntVector, using the given block size.\n   *\n   * @param blocksize Size of block to allocate\n   */\n  public IntVector(int blocksize)\n  {\n\n    m_blocksize = blocksize;\n    m_mapSize = blocksize;\n    m_map = new int[blocksize];\n  }\n  \n  /**\n   * Construct a IntVector, using the given block size.\n   *\n   * @param blocksize Size of block to allocate\n   */\n  public IntVector(int blocksize, int increaseSize)\n  {\n\n    m_blocksize = increaseSize;\n    m_mapSize = blocksize;\n    m_map = new int[blocksize];\n  }\n\n  /**\n   * Copy constructor for IntVector\n   * \n   * @param v Existing IntVector to copy\n   */\n  public IntVector(IntVector v)\n  {\n  \tm_map = new int[v.m_mapSize];\n    m_mapSize = v.m_mapSize;\n    m_firstFree = v.m_firstFree;\n  \tm_blocksize = v.m_blocksize;\n  \tSystem.arraycopy(v.m_map, 0, m_map, 0, m_firstFree);\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return length of the list\n   */\n  public final int size()\n  {\n    return m_firstFree;\n  }\n  \n  /**\n   * Get the length of the list.\n   *\n   * @return length of the list\n   */\n  public final void setSize(int sz)\n  {\n    m_firstFree = sz;\n  }\n\n\n  /**\n   * Append a int onto the vector.\n   *\n   * @param value Int to add to the list \n   */\n  public final void addElement(int value)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      int newMap[] = new int[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = value;\n\n    m_firstFree++;\n  }\n  \n  /**\n   * Append several int values onto the vector.\n   *\n   * @param value Int to add to the list \n   */\n  public final void addElements(int value, int numberOfElements)\n  {\n\n    if ((m_firstFree + numberOfElements) >= m_mapSize)\n    {\n      m_mapSize += (m_blocksize+numberOfElements);\n\n      int newMap[] = new int[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    for (int i = 0; i < numberOfElements; i++) \n    {\n      m_map[m_firstFree] = value;\n      m_firstFree++;\n    }\n  }\n  \n  /**\n   * Append several slots onto the vector, but do not set the values.\n   *\n   * @param numberOfElements Int to add to the list \n   */\n  public final void addElements(int numberOfElements)\n  {\n\n    if ((m_firstFree + numberOfElements) >= m_mapSize)\n    {\n      m_mapSize += (m_blocksize+numberOfElements);\n\n      int newMap[] = new int[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n    \n    m_firstFree += numberOfElements;\n  }\n  \n\n  /**\n   * Inserts the specified node in this vector at the specified index.\n   * Each component in this vector with an index greater or equal to\n   * the specified index is shifted upward to have an index one greater\n   * than the value it had previously.\n   *\n   * @param value Int to insert\n   * @param at Index of where to insert \n   */\n  public final void insertElementAt(int value, int at)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      int newMap[] = new int[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    if (at <= (m_firstFree - 1))\n    {\n      System.arraycopy(m_map, at, m_map, at + 1, m_firstFree - at);\n    }\n\n    m_map[at] = value;\n\n    m_firstFree++;\n  }\n\n  /**\n   * Inserts the specified node in this vector at the specified index.\n   * Each component in this vector with an index greater or equal to\n   * the specified index is shifted upward to have an index one greater\n   * than the value it had previously.\n   */\n  public final void removeAllElements()\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      m_map[i] = java.lang.Integer.MIN_VALUE;\n    }\n\n    m_firstFree = 0;\n  }\n\n  /**\n   * Removes the first occurrence of the argument from this vector.\n   * If the object is found in this vector, each component in the vector\n   * with an index greater or equal to the object's index is shifted\n   * downward to have an index one smaller than the value it had\n   * previously.\n   *\n   * @param s Int to remove from array\n   *\n   * @return True if the int was removed, false if it was not found\n   */\n  public final boolean removeElement(int s)\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i] == s)\n      {\n        if ((i + 1) < m_firstFree)\n          System.arraycopy(m_map, i + 1, m_map, i - 1, m_firstFree - i);\n        else\n          m_map[i] = java.lang.Integer.MIN_VALUE;\n\n        m_firstFree--;\n\n        return true;\n      }\n    }\n\n    return false;\n  }\n\n  /**\n   * Deletes the component at the specified index. Each component in\n   * this vector with an index greater or equal to the specified\n   * index is shifted downward to have an index one smaller than\n   * the value it had previously.\n   *\n   * @param i index of where to remove and int\n   */\n  public final void removeElementAt(int i)\n  {\n\n    if (i > m_firstFree)\n      System.arraycopy(m_map, i + 1, m_map, i, m_firstFree);\n    else\n      m_map[i] = java.lang.Integer.MIN_VALUE;\n\n    m_firstFree--;\n  }\n\n  /**\n   * Sets the component at the specified index of this vector to be the\n   * specified object. The previous component at that position is discarded.\n   *\n   * The index must be a value greater than or equal to 0 and less\n   * than the current size of the vector.\n   *\n   * @param value object to set\n   * @param index Index of where to set the object\n   */\n  public final void setElementAt(int value, int index)\n  {\n    m_map[index] = value;\n  }\n\n  /**\n   * Get the nth element.\n   *\n   * @param i index of object to get\n   *\n   * @return object at given index\n   */\n  public final int elementAt(int i)\n  {\n    return m_map[i];\n  }\n\n  /**\n   * Tell if the table contains the given node.\n   *\n   * @param s object to look for\n   *\n   * @return true if the object is in the list\n   */\n  public final boolean contains(int s)\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i] == s)\n        return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem object to look for\n   * @param index Index of where to begin search\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public final int indexOf(int elem, int index)\n  {\n\n    for (int i = index; i < m_firstFree; i++)\n    {\n      if (m_map[i] == elem)\n        return i;\n    }\n\n    return java.lang.Integer.MIN_VALUE;\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem object to look for\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public final int indexOf(int elem)\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i] == elem)\n        return i;\n    }\n\n    return java.lang.Integer.MIN_VALUE;\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem Object to look for\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public final int lastIndexOf(int elem)\n  {\n\n    for (int i = (m_firstFree - 1); i >= 0; i--)\n    {\n      if (m_map[i] == elem)\n        return i;\n    }\n\n    return java.lang.Integer.MIN_VALUE;\n  }\n  \n  /**\n   * Returns clone of current IntVector\n   * \n   * @return clone of current IntVector\n   */\n  public Object clone()\n    throws CloneNotSupportedException\n  {\n  \treturn new IntVector(this);", "functions": [{"function_name": "size", "code": "  public final int size()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSize", "code": "  public final void setSize(int sz)\n  {\n    m_firstFree = sz;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addElement", "code": "  public final void addElement(int value)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      int newMap[] = new int[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = value;\n\n    m_firstFree++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [6, 10], [8, 11], [8, 12], [8, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 6], [11, 8], [12, 8], [13, 8], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addElements", "code": "  public final void addElements(int value, int numberOfElements)\n  {\n\n    if ((m_firstFree + numberOfElements) >= m_mapSize)\n    {\n      m_mapSize += (m_blocksize+numberOfElements);\n\n      int newMap[] = new int[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    for (int i = 0; i < numberOfElements; i++) \n    {\n      m_map[m_firstFree] = value;\n      m_firstFree++;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 9], [1, 10], [2, 11], [2, 12], [2, 13], [12, 14], [12, 15], [12, 16], [13, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 1], [10, 1], [11, 2], [12, 2], [13, 2], [14, 12], [15, 12], [16, 12], [17, 13], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "addElements", "code": "  public final void addElements(int numberOfElements)\n  {\n\n    if ((m_firstFree + numberOfElements) >= m_mapSize)\n    {\n      m_mapSize += (m_blocksize+numberOfElements);\n\n      int newMap[] = new int[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n    \n    m_firstFree += numberOfElements;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [8, 10], [8, 11], [8, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 8], [11, 8], [12, 8], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "insertElementAt", "code": "  public final void insertElementAt(int value, int at)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      int newMap[] = new int[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    if (at <= (m_firstFree - 1))\n    {\n      System.arraycopy(m_map, at, m_map, at + 1, m_firstFree - at);\n    }\n\n    m_map[at] = value;\n\n    m_firstFree++;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [6, 8], [2, 9], [7, 10], [1, 11], [8, 12], [2, 13], [2, 14], [2, 15], [10, 16], [11, 17], [11, 18], [14, 19], [14, 20], [14, 21], [18, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 6], [9, 2], [10, 7], [11, 1], [12, 8], [13, 2], [14, 2], [15, 2], [16, 10], [17, 11], [18, 11], [19, 14], [20, 14], [21, 14], [22, 18], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "removeAllElements", "code": "  public final void removeAllElements()\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      m_map[i] = java.lang.Integer.MIN_VALUE;\n    }\n\n    m_firstFree = 0;", "ast_nodes": ["FUNC_DECL", "LOOP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "removeElement", "code": "  public final boolean removeElement(int s)\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i] == s)\n      {\n        if ((i + 1) < m_firstFree)\n          System.arraycopy(m_map, i + 1, m_map, i - 1, m_firstFree - i);\n        else\n          m_map[i] = java.lang.Integer.MIN_VALUE;\n\n        m_firstFree--;\n\n        return true;\n      }\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [2, 8], [6, 9], [6, 10], [9, 11], [10, 12], [10, 13], [10, 14], [12, 15], [14, 16], [14, 17], [14, 18], [15, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 2], [9, 6], [10, 6], [11, 9], [12, 10], [13, 10], [14, 10], [15, 12], [16, 14], [17, 14], [18, 14], [19, 15], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "removeElementAt", "code": "  public final void removeElementAt(int i)\n  {\n\n    if (i > m_firstFree)\n      System.arraycopy(m_map, i + 1, m_map, i, m_firstFree);\n    else\n      m_map[i] = java.lang.Integer.MIN_VALUE;\n\n    m_firstFree--;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setElementAt", "code": "  public final void setElementAt(int value, int index)\n  {\n    m_map[index] = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "elementAt", "code": "  public final int elementAt(int i)\n  {\n    return m_map[i];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "contains", "code": "  public final boolean contains(int s)\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i] == s)\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [6, 8], [2, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 6], [9, 2], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "indexOf", "code": "  public final int indexOf(int elem, int index)\n  {\n\n    for (int i = index; i < m_firstFree; i++)\n    {\n      if (m_map[i] == elem)\n        return i;\n    }\n\n    return java.lang.Integer.MIN_VALUE;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "BINARY_OP", "IF", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "indexOf", "code": "  public final int indexOf(int elem)\n  {\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i] == elem)\n        return i;\n    }\n\n    return java.lang.Integer.MIN_VALUE;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "lastIndexOf", "code": "  public final int lastIndexOf(int elem)\n  {\n\n    for (int i = (m_firstFree - 1); i >= 0; i--)\n    {\n      if (m_map[i] == elem)\n        return i;\n    }\n\n    return java.lang.Integer.MIN_VALUE;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [5, 8], [2, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 5], [9, 2], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "clone", "code": "  public Object clone()\n    throws CloneNotSupportedException\n  {\n  \treturn new IntVector(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "IntVector", "code": "  public IntVector()\n  {\n\n    m_blocksize = 32;\n    m_mapSize = m_blocksize;\n    m_map = new int[m_blocksize];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "IntVector", "code": "  public IntVector(int blocksize)\n  {\n\n    m_blocksize = blocksize;\n    m_mapSize = blocksize;\n    m_map = new int[blocksize];", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "IntVector", "code": "  public IntVector(int blocksize, int increaseSize)\n  {\n\n    m_blocksize = increaseSize;\n    m_mapSize = blocksize;\n    m_map = new int[blocksize];", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "IntVector", "code": "  public IntVector(IntVector v)\n  {\n  \tm_map = new int[v.m_mapSize];\n    m_mapSize = v.m_mapSize;\n    m_firstFree = v.m_firstFree;\n  \tm_blocksize = v.m_blocksize;\n  \tSystem.arraycopy(v.m_map, 0, m_map, 0, m_firstFree);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "poi-2.0-5431", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/SeriesIndexRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.SeriesIndexRecord", "code": "public class SeriesIndexRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1065;\n    private  short      field_1_index;\n\n\n    public SeriesIndexRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a SeriesIndex record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1065 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public SeriesIndexRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a SeriesIndex record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1065 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public SeriesIndexRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a SeriesIndex record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_index                  = LittleEndian.getShort(data, pos + 0x0 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[SINDEX]\\n\");\n        buffer.append(\"    .index                = \")\n            .append(\"0x\").append(HexDump.toHex(  getIndex ()))\n            .append(\" (\").append( getIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/SINDEX]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_index);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        SeriesIndexRecord rec = new SeriesIndexRecord();\n    \n        rec.field_1_index = field_1_index;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the index field for the SeriesIndex record.\n     */\n    public short getIndex()\n    {\n        return field_1_index;\n    }\n\n    /**\n     * Set the index field for the SeriesIndex record.\n     */\n    public void setIndex(short field_1_index)\n    {\n        this.field_1_index = field_1_index;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a SeriesIndex record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_index                  = LittleEndian.getShort(data, pos + 0x0 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[SINDEX]\\n\");\n        buffer.append(\"    .index                = \")\n            .append(\"0x\").append(HexDump.toHex(  getIndex ()))\n            .append(\" (\").append( getIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/SINDEX]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [7, 16], [2, 17], [9, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [22, 24], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 6], [16, 7], [17, 2], [18, 9], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_index);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [6, 9], [7, 10], [8, 11], [2, 12], [9, 13], [7, 14], [10, 15], [11, 16], [13, 17], [14, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 6], [10, 7], [11, 8], [12, 2], [13, 9], [14, 7], [15, 10], [16, 11], [17, 13], [18, 14], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        SeriesIndexRecord rec = new SeriesIndexRecord();\n    \n        rec.field_1_index = field_1_index;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getIndex", "code": "    public short getIndex()\n    {\n        return field_1_index;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIndex", "code": "    public void setIndex(short field_1_index)\n    {\n        this.field_1_index = field_1_index;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SeriesIndexRecord", "code": "    public SeriesIndexRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SeriesIndexRecord", "code": "    public SeriesIndexRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SeriesIndexRecord", "code": "    public SeriesIndexRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.1-4039", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/commands/dir.java", "language": "java", "name": "bsh.commands.dir", "code": "public class dir \n{\n\tstatic final String [] months = { \"Jan\", \"Feb\", \"Mar\", \"Apr\", \n\t\t\"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\" };\n\n\tpublic static String usage() {\n\t\treturn \"usage: dir( String dir )\\n       dir()\";\n\t}\n\n\tpublic static void invoke( Interpreter env, NameSpace namespace ) {\n\t\t//String dir = getCWD( namespace );\n\t\tString dir = \".\";\n\t\tinvoke( env, namespace, dir );\n\t}\n\n\tpublic static void invoke( \n\t\tInterpreter env, NameSpace namespace, String dir ) \n\t{\n\t\tFile file;\n\t\ttry {\n\t\t\tfile =  env.pathToFile( dir );\n\t\t} catch (IOException e ) {\n\t\t\tenv.println(\"error reading path: \"+e);\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !file.exists() || !file.canRead() ) {\n\t\t\tenv.println( \"Can't read \" + file );\n\t\t\treturn;\n\t\t}\n\t\tif ( !file.isDirectory() )  {\n\t\t\tenv.println(\"'\"+dir+\"' is not a directory\");\n\t\t}\n\n\t\tString [] files = file.list();\n\t\tfiles = bubbleSort(files);\n\n\t\tfor( int i=0; i< files.length; i++ ) {\n\t\t\tFile f = new File( dir + File.separator + files[i] );\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tsb.append( f.canRead() ? \"r\": \"-\" );\n\t\t\tsb.append( f.canWrite() ? \"w\": \"-\" );\n\t\t\tsb.append( \"_\" );\n\t\t\tsb.append( \" \");\n\n\t\t\tDate d = new Date(f.lastModified());\n\t\t\tGregorianCalendar c = new GregorianCalendar();\n\t\t\tc.setTime(d);\n\t\t\tint day\t= c.get(Calendar.DAY_OF_MONTH);\n\t\t\tsb.append( months[ c.get(Calendar.MONTH) ] + \" \" + day );\n\t\t\tif ( day < 10 ) \n\t\t\t\tsb.append(\" \");\n\n\t\t\tsb.append(\" \");\n\n\t\t\t// hack to get fixed length 'length' field\n\t\t\tint fieldlen = 8;\n\t\t\tStringBuffer len = new StringBuffer();\n\t\t\tfor(int j=0; j<fieldlen; j++)\n\t\t\t\tlen.append(\" \");\n\t\t\tlen.insert(0, f.length());\n\t\t\tlen.setLength(fieldlen);\n\t\t\t// hack to move the spaces to the front\n\t\t\tint si = len.toString().indexOf(\" \");\n\t\t\tif ( si != -1 ) {\n\t\t\t\tString pad = len.toString().substring(si);\n\t\t\t\tlen.setLength(si);\n\t\t\t\tlen.insert(0, pad);\n\t\t\t}\n\t\t\t\n\t\t\tsb.append( len.toString() );\n\n\t\t\tsb.append( \" \" + f.getName() );\n\t\t\tif ( f.isDirectory() ) \n\t\t\t\tsb.append(\"/\");\n\n\t\t\tenv.println( sb.toString() );\n\t\t}\n\t}\n\n\tpublic static String [] bubbleSort( String [] in ) {\n\t\tVector v = new Vector();\n\t\tfor(int i=0; i<in.length; i++)\n\t\t\tv.addElement(in[i]);\n\n\t\tint n = v.size();\n\t\tboolean swap = true;\n\t\twhile ( swap ) {\n\t\t\tswap = false;\n\t\t\tfor(int i=0; i<(n-1); i++)\n\t\t\t\tif ( ((String)v.elementAt(i)).compareTo(\n\t\t\t\t\t\t((String)v.elementAt(i+1)) ) > 0 ) {\n\t\t\t\t\tString tmp = (String)v.elementAt(i+1);\n\t\t\t\t\tv.removeElementAt( i+1 );\n\t\t\t\t\tv.insertElementAt( tmp, i );\n\t\t\t\t\tswap = true;\n\t\t\t\t}\n\t\t}\n\n\t\tString [] out = new String [ n ];\n\t\tv.copyInto(out);\n\t\treturn out;", "functions": [{"function_name": "usage", "code": "\tpublic static String usage() {\n\t\treturn \"usage: dir( String dir )\\n       dir()\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "invoke", "code": "\tpublic static void invoke( Interpreter env, NameSpace namespace ) {\n\t\t//String dir = getCWD( namespace );\n\t\tString dir = \".\";\n\t\tinvoke( env, namespace, dir );", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "invoke", "code": "\tpublic static void invoke( \n\t\tInterpreter env, NameSpace namespace, String dir ) \n\t{\n\t\tFile file;\n\t\ttry {\n\t\t\tfile =  env.pathToFile( dir );\n\t\t} catch (IOException e ) {\n\t\t\tenv.println(\"error reading path: \"+e);\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !file.exists() || !file.canRead() ) {\n\t\t\tenv.println( \"Can't read \" + file );\n\t\t\treturn;\n\t\t}\n\t\tif ( !file.isDirectory() )  {\n\t\t\tenv.println(\"'\"+dir+\"' is not a directory\");\n\t\t}\n\n\t\tString [] files = file.list();\n\t\tfiles = bubbleSort(files);\n\n\t\tfor( int i=0; i< files.length; i++ ) {\n\t\t\tFile f = new File( dir + File.separator + files[i] );\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tsb.append( f.canRead() ? \"r\": \"-\" );\n\t\t\tsb.append( f.canWrite() ? \"w\": \"-\" );\n\t\t\tsb.append( \"_\" );\n\t\t\tsb.append( \" \");\n\n\t\t\tDate d = new Date(f.lastModified());\n\t\t\tGregorianCalendar c = new GregorianCalendar();\n\t\t\tc.setTime(d);\n\t\t\tint day\t= c.get(Calendar.DAY_OF_MONTH);\n\t\t\tsb.append( months[ c.get(Calendar.MONTH) ] + \" \" + day );\n\t\t\tif ( day < 10 ) \n\t\t\t\tsb.append(\" \");\n\n\t\t\tsb.append(\" \");\n\n\t\t\t// hack to get fixed length 'length' field\n\t\t\tint fieldlen = 8;\n\t\t\tStringBuffer len = new StringBuffer();\n\t\t\tfor(int j=0; j<fieldlen; j++)\n\t\t\t\tlen.append(\" \");\n\t\t\tlen.insert(0, f.length());\n\t\t\tlen.setLength(fieldlen);\n\t\t\t// hack to move the spaces to the front\n\t\t\tint si = len.toString().indexOf(\" \");\n\t\t\tif ( si != -1 ) {\n\t\t\t\tString pad = len.toString().substring(si);\n\t\t\t\tlen.setLength(si);\n\t\t\t\tlen.insert(0, pad);\n\t\t\t}\n\t\t\t\n\t\t\tsb.append( len.toString() );\n\n\t\t\tsb.append( \" \" + f.getName() );\n\t\t\tif ( f.isDirectory() ) \n\t\t\t\tsb.append(\"/\");\n\n\t\t\tenv.println( sb.toString() );", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CATCH", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "CALL", "CALL", "RETURN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [3, 12], [4, 13], [5, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [11, 27], [2, 28], [4, 29], [13, 30], [13, 31], [14, 32], [5, 33], [1, 34], [15, 35], [1, 36], [1, 37], [16, 38], [1, 39], [1, 40], [18, 41], [1, 42], [21, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [3, 51], [4, 52], [14, 53], [33, 54], [34, 55], [15, 56], [36, 57], [37, 58], [16, 59], [38, 60], [17, 61], [40, 62], [40, 63], [18, 64], [19, 65], [20, 66], [42, 67], [21, 68], [43, 69], [44, 70], [22, 71], [23, 72], [24, 73], [46, 74], [47, 75], [48, 76], [49, 77], [25, 78], [26, 79], [51, 80], [52, 81], [53, 82], [56, 83], [57, 84], [57, 85], [16, 86], [16, 87], [61, 88], [64, 89], [18, 90], [68, 91], [70, 92], [73, 93], [76, 94], [76, 95], [76, 96], [77, 97], [77, 98], [77, 99], [79, 100], [80, 101], [80, 102], [81, 103], [82, 104], [86, 105], [59, 106], [88, 107], [92, 108], [100, 109], [102, 110], [106, 111], [92, 112], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 3], [13, 4], [14, 5], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 11], [28, 2], [29, 4], [30, 13], [31, 13], [32, 14], [33, 5], [34, 1], [35, 15], [36, 1], [37, 1], [38, 16], [39, 1], [40, 1], [41, 18], [42, 1], [43, 21], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 3], [52, 4], [53, 14], [54, 33], [55, 34], [56, 15], [57, 36], [58, 37], [59, 16], [60, 38], [61, 17], [62, 40], [63, 40], [64, 18], [65, 19], [66, 20], [67, 42], [68, 21], [69, 43], [70, 44], [71, 22], [72, 23], [73, 24], [74, 46], [75, 47], [76, 48], [77, 49], [78, 25], [79, 26], [80, 51], [81, 52], [82, 53], [83, 56], [84, 57], [85, 57], [86, 16], [87, 16], [88, 61], [89, 64], [90, 18], [91, 68], [92, 70], [93, 73], [94, 76], [95, 76], [96, 76], [97, 77], [98, 77], [99, 77], [100, 79], [101, 80], [102, 80], [103, 81], [104, 82], [105, 86], [106, 59], [107, 88], [108, 92], [109, 100], [110, 102], [111, 106], [112, 92], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112]]}, {"function_name": "bubbleSort", "code": "\tpublic static String [] bubbleSort( String [] in ) {\n\t\tVector v = new Vector();\n\t\tfor(int i=0; i<in.length; i++)\n\t\t\tv.addElement(in[i]);\n\n\t\tint n = v.size();\n\t\tboolean swap = true;\n\t\twhile ( swap ) {\n\t\t\tswap = false;\n\t\t\tfor(int i=0; i<(n-1); i++)\n\t\t\t\tif ( ((String)v.elementAt(i)).compareTo(\n\t\t\t\t\t\t((String)v.elementAt(i+1)) ) > 0 ) {\n\t\t\t\t\tString tmp = (String)v.elementAt(i+1);\n\t\t\t\t\tv.removeElementAt( i+1 );\n\t\t\t\t\tv.insertElementAt( tmp, i );\n\t\t\t\t\tswap = true;\n\t\t\t\t}\n\t\t}\n\n\t\tString [] out = new String [ n ];\n\t\tv.copyInto(out);\n\t\treturn out;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [3, 11], [4, 12], [5, 13], [6, 14], [7, 15], [11, 16], [11, 17], [3, 18], [6, 19], [16, 20], [17, 21], [18, 22], [16, 23], [20, 24], [21, 25], [11, 26], [16, 27], [16, 28], [16, 29], [20, 30], [27, 31], [29, 32], [32, 33], [23, 34], [34, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 3], [12, 4], [13, 5], [14, 6], [15, 7], [16, 11], [17, 11], [18, 3], [19, 6], [20, 16], [21, 17], [22, 18], [23, 16], [24, 20], [25, 21], [26, 11], [27, 16], [28, 16], [29, 16], [30, 20], [31, 27], [32, 29], [33, 32], [34, 23], [35, 34], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}], "label": 0}
{"sample_id": "xalan-2.5-7080", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/PositionCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.PositionCall", "code": "final class PositionCall extends FunctionCall {\n\n    public PositionCall(QName fname) {\n\tsuper(fname);\n    }\n\n    public boolean hasPositionCall() {\n\treturn true;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (methodGen instanceof CompareGenerator) {\n\t    il.append(((CompareGenerator)methodGen).loadCurrentNode());\n\t}\n\telse if (methodGen instanceof TestGenerator) {\n\t    il.append(new ILOAD(POSITION_INDEX));\n\t}\n\telse {\n\t    final ConstantPoolGen cpg = classGen.getConstantPool();\n            final int index =\n                    cpg.addMethodref(BASIS_LIBRARY_CLASS, \"positionF\",\n                                     \"(\"+NODE_ITERATOR_SIG+\")I\");\n\n\t    il.append(methodGen.loadIterator());\n            il.append(new INVOKESTATIC(index));", "functions": [{"function_name": "hasPositionCall", "code": "    public boolean hasPositionCall() {\n\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (methodGen instanceof CompareGenerator) {\n\t    il.append(((CompareGenerator)methodGen).loadCurrentNode());\n\t}\n\telse if (methodGen instanceof TestGenerator) {\n\t    il.append(new ILOAD(POSITION_INDEX));\n\t}\n\telse {\n\t    final ConstantPoolGen cpg = classGen.getConstantPool();\n            final int index =\n                    cpg.addMethodref(BASIS_LIBRARY_CLASS, \"positionF\",\n                                     \"(\"+NODE_ITERATOR_SIG+\")I\");\n\n\t    il.append(methodGen.loadIterator());\n            il.append(new INVOKESTATIC(index));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [5, 9], [5, 10], [1, 11], [5, 12], [5, 13], [5, 14], [12, 15], [13, 16], [9, 17], [10, 18], [14, 19], [17, 20], [17, 21], [20, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 5], [10, 5], [11, 1], [12, 5], [13, 5], [14, 5], [15, 12], [16, 13], [17, 9], [18, 10], [19, 14], [20, 17], [21, 17], [22, 20], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "PositionCall", "code": "    public PositionCall(QName fname) {\n\tsuper(fname);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6536", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/trax/XSLTCSource.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.XSLTCSource", "code": "public final class XSLTCSource implements Source {\n\n    private String     _systemId = null;\n    private DOMImpl    _dom      = null;\n    private DTDMonitor _dtd      = null;\n\n    private final static String LEXICAL_HANDLER_PROPERTY = '';\n\n    /**\n     * Create a new XSLTC-specific DOM source\n     * @param size The estimated node-count for this DOM. A good guess here\n     * speeds up the DOM build process.\n     */\n    public XSLTCSource(int size) {\n\t_dom = new DOMImpl(size);\n\t_dtd = new DTDMonitor();\n    }\n\n    /**\n     * Create a new XSLTC-specific DOM source\n     */\n    public XSLTCSource() {\n\t_dom = new DOMImpl();\n\t_dtd = new DTDMonitor();\n    }\n\n    /**\n     * Implements javax.xml.transform.Source.setSystemId()\n     * Set the system identifier for this Source. \n     * This Source can get its input either directly from a file (in this case\n     * it will instanciate and use a JAXP parser) or it can receive it through\n     * ContentHandler/LexicalHandler interfaces.\n     * @param systemId The system Id for this Source\n     */\n    public void setSystemId(String systemId) {\n\tif ((new File(systemId)).exists())\n\t    _systemId = \"file:\"+systemId;\n\telse\n\t    _systemId = systemId;\n\t_dom.setDocumentURI(_systemId);\n    }\n\n    /**\n     * Implements javax.xml.transform.Source.getSystemId()\n     * Get the system identifier that was set with setSystemId.\n     * @return The system identifier that was set with setSystemId,\n     *         or null if setSystemId was not called.\n     */\n    public String getSystemId() {\n\treturn(_systemId);\n    }\n\n    /**\n     * Build the internal XSLTC-specific DOM.\n     * @param reader An XMLReader that will pass the XML contents to the DOM\n     * @param systemId Specifies the input file\n     * @throws SAXException\n     */\n    public void build(XMLReader reader, String systemId) throws SAXException {\n\ttry {\n\t    if ((systemId == null) && (_systemId == null)) {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.XSLTC_SOURCE_ERR);\n\t\tthrow new SAXException(err.toString());\n\t    }\n\n\t    if (systemId == null) systemId = _systemId;\n\t    setSystemId(systemId);\n\n\t    InputSource input = new InputSource(systemId);\n\n\t    _dtd.handleDTD(reader);\n\n\t    DOMBuilder builder = _dom.getBuilder();\n\n\t    reader.setContentHandler(builder);\n\t    try {\n\t\treader.setProperty(LEXICAL_HANDLER_PROPERTY, builder);\n\t    }\n\t    catch (SAXException e) {\n\t    }\n\n\t    reader.parse(input);\n\t}\n\tcatch (IOException e) {\n\t    throw new SAXException(e);\n\t}\n    }\n\n    /**\n     * Build the internal XSLTC-specific DOM.\n     * @param systemId Specifies the input file\n     * @throws SAXException\n     */\n    public void build(String systemId) throws SAXException {\n\ttry {\n\t    final SAXParserFactory factory = SAXParserFactory.newInstance();\n\t    final SAXParser parser = factory.newSAXParser();\n\t    final XMLReader reader = parser.getXMLReader();\n\n\t    build(reader, systemId);\n\t}\n\tcatch (ParserConfigurationException e) {\n\t    throw new SAXException(e);\n\t}\n    }\n\n    /**\n     * Build the internal XSLTC-specific DOM.\n     * @param reader An XMLReader that will pass the XML contents to the DOM\n     * @throws SAXException\n     */\n    public void build(XMLReader reader) throws SAXException {\n\tbuild(reader, _systemId);\n    }\n\n    /**\n     * Build the internal XSLTC-specific DOM.\n     * The setSystemId() must be called prior to this method.\n     * @throws SAXException\n     */\n    public void build() throws SAXException {\n\tbuild(_systemId);\n    }    \n\n    /**\n     * Returns the internal DOM that is encapsulated in this Source\n     */\n    protected DOMImpl getDOM() {\n\treturn(_dom);\n    }\n\n    /**\n     * Returns the internal DTD that is encapsulated in this Source\n     */\n    protected DTDMonitor getDTD() {\n\treturn(_dtd);", "functions": [{"function_name": "setSystemId", "code": "    public void setSystemId(String systemId) {\n\tif ((new File(systemId)).exists())\n\t    _systemId = \"file:\"+systemId;\n\telse\n\t    _systemId = systemId;\n\t_dom.setDocumentURI(_systemId);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSystemId", "code": "    public String getSystemId() {\n\treturn(_systemId);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "build", "code": "    public void build(XMLReader reader, String systemId) throws SAXException {\n\ttry {\n\t    if ((systemId == null) && (_systemId == null)) {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.XSLTC_SOURCE_ERR);\n\t\tthrow new SAXException(err.toString());\n\t    }\n\n\t    if (systemId == null) systemId = _systemId;\n\t    setSystemId(systemId);\n\n\t    InputSource input = new InputSource(systemId);\n\n\t    _dtd.handleDTD(reader);\n\n\t    DOMBuilder builder = _dom.getBuilder();\n\n\t    reader.setContentHandler(builder);\n\t    try {\n\t\treader.setProperty(LEXICAL_HANDLER_PROPERTY, builder);\n\t    }\n\t    catch (SAXException e) {\n\t    }\n\n\t    reader.parse(input);\n\t}\n\tcatch (IOException e) {\n\t    throw new SAXException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "THROW_RAISE", "CALL", "CATCH", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [1, 11], [5, 12], [1, 13], [1, 14], [1, 15], [8, 16], [9, 17], [10, 18], [5, 19], [6, 20], [7, 21], [8, 22], [16, 23], [9, 24], [9, 25], [17, 26], [17, 27], [24, 28], [26, 29], [27, 30], [28, 31], [25, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 1], [12, 5], [13, 1], [14, 1], [15, 1], [16, 8], [17, 9], [18, 10], [19, 5], [20, 6], [21, 7], [22, 8], [23, 16], [24, 9], [25, 9], [26, 17], [27, 17], [28, 24], [29, 26], [30, 27], [31, 28], [32, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "build", "code": "    public void build(String systemId) throws SAXException {\n\ttry {\n\t    final SAXParserFactory factory = SAXParserFactory.newInstance();\n\t    final SAXParser parser = factory.newSAXParser();\n\t    final XMLReader reader = parser.getXMLReader();\n\n\t    build(reader, systemId);\n\t}\n\tcatch (ParserConfigurationException e) {\n\t    throw new SAXException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [1, 8], [7, 9], [4, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 1], [9, 7], [10, 4], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "build", "code": "    public void build(XMLReader reader) throws SAXException {\n\tbuild(reader, _systemId);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "build", "code": "    public void build() throws SAXException {\n\tbuild(_systemId);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDOM", "code": "    protected DOMImpl getDOM() {\n\treturn(_dom);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDTD", "code": "    protected DTDMonitor getDTD() {\n\treturn(_dtd);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XSLTCSource", "code": "    public XSLTCSource(int size) {\n\t_dom = new DOMImpl(size);\n\t_dtd = new DTDMonitor();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "XSLTCSource", "code": "    public XSLTCSource() {\n\t_dom = new DOMImpl();\n\t_dtd = new DTDMonitor();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "log4j-1.2-5055", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/lf5/viewer/categoryexplorer/CategoryElement.java", "language": "java", "name": "org.apache.log4j.lf5.viewer.categoryexplorer.CategoryElement", "code": "public class CategoryElement {\n  //--------------------------------------------------------------------------\n  //   Constants:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Protected Variables:\n  //--------------------------------------------------------------------------\n  protected String _categoryTitle;\n\n  //--------------------------------------------------------------------------\n  //   Private Variables:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Constructors:\n  //--------------------------------------------------------------------------\n\n  public CategoryElement() {\n    super();\n  }\n\n  public CategoryElement(String title) {\n    _categoryTitle = title;\n  }\n\n  //--------------------------------------------------------------------------\n  //   Public Methods:\n  //--------------------------------------------------------------------------\n\n  public String getTitle() {\n    return (_categoryTitle);\n  }\n\n  public void setTitle(String title) {\n    _categoryTitle = title;", "functions": [{"function_name": "getTitle", "code": "  public String getTitle() {\n    return (_categoryTitle);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTitle", "code": "  public void setTitle(String title) {\n    _categoryTitle = title;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CategoryElement", "code": "  public CategoryElement() {\n    super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "CategoryElement", "code": "  public CategoryElement(String title) {\n    _categoryTitle = title;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7623", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/DTMAxisIterNodeList.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMAxisIterNodeList", "code": "public class DTMAxisIterNodeList extends DTMNodeListBase {\n    private DTM m_dtm;\n    private DTMAxisIterator m_iter;\n    private IntVector m_cachedNodes;\n    private int m_last = -1;\n    private DTMAxisIterNodeList() {\n    }\n\n    /**\n     * Public constructor: Wrap a DTMNodeList around an existing\n     * and preconfigured DTMAxisIterator\n     */\n    public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {\n        if (dtmAxisIterator == null) {\n            m_last = 0;\n        } else {\n            m_cachedNodes = new IntVector();\n            m_dtm = dtm;\n        }\n        m_iter = dtmAxisIterator;\n    }\n\n    /**\n     * Access the wrapped DTMIterator. I'm not sure whether anyone will\n     * need this or not, but let's write it and think about it.\n     *\n     */\n    public DTMAxisIterator getDTMAxisIterator() {\n        return m_iter;\n    }\n  \n\n\n    /**\n     * Returns the <code>index</code>th item in the collection. If \n     * <code>index</code> is greater than or equal to the number of nodes in \n     * the list, this returns <code>null</code>.\n     * @param indexIndex into the collection.\n     * @return The node at the <code>index</code>th position in the \n     *   <code>NodeList</code>, or <code>null</code> if that is not a valid \n     *   index.\n     */\n    public Node item(int index) {\n        if (m_iter != null) {\n            int node;\n            int count = m_cachedNodes.size();\n\n            if (count > index) {\n                node = m_cachedNodes.elementAt(index);\n                return m_dtm.getNode(node);\n            } else if (m_last == -1) {\n                while (((node = m_iter.next()) != DTMAxisIterator.END)\n                           && count <= index) {\n                    m_cachedNodes.addElement(node);\n                    count++;\n                }\n                if (node == DTMAxisIterator.END) {\n                    m_last = count;\n                } else {\n                    return m_dtm.getNode(node);\n                }\n            }\n        }\n        return null;\n    }\n\n    /**\n     * The number of nodes in the list. The range of valid child node indices \n     * is 0 to <code>length-1</code> inclusive. \n     */\n    public int getLength() {\n        if (m_last == -1) {\n            int node;\n            while ((node = m_iter.next()) != DTMAxisIterator.END) {\n                m_cachedNodes.addElement(node);\n            }\n            m_last = m_cachedNodes.size();\n        }\n        return m_last;", "functions": [{"function_name": "getDTMAxisIterator", "code": "    public DTMAxisIterator getDTMAxisIterator() {\n        return m_iter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "item", "code": "    public Node item(int index) {\n        if (m_iter != null) {\n            int node;\n            int count = m_cachedNodes.size();\n\n            if (count > index) {\n                node = m_cachedNodes.elementAt(index);\n                return m_dtm.getNode(node);\n            } else if (m_last == -1) {\n                while (((node = m_iter.next()) != DTMAxisIterator.END)\n                           && count <= index) {\n                    m_cachedNodes.addElement(node);\n                    count++;\n                }\n                if (node == DTMAxisIterator.END) {\n                    m_last = count;\n                } else {\n                    return m_dtm.getNode(node);\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "IF", "LOOP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [6, 10], [6, 11], [10, 12], [6, 13], [7, 14], [10, 15], [10, 16], [12, 17], [13, 18], [6, 19], [15, 20], [16, 21], [19, 22], [15, 23], [21, 24], [21, 25], [23, 26], [15, 27], [16, 28], [25, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 6], [11, 6], [12, 10], [13, 6], [14, 7], [15, 10], [16, 10], [17, 12], [18, 13], [19, 6], [20, 15], [21, 16], [22, 19], [23, 15], [24, 21], [25, 21], [26, 23], [27, 15], [28, 16], [29, 25], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getLength", "code": "    public int getLength() {\n        if (m_last == -1) {\n            int node;\n            while ((node = m_iter.next()) != DTMAxisIterator.END) {\n                m_cachedNodes.addElement(node);\n            }\n            m_last = m_cachedNodes.size();\n        }\n        return m_last;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [2, 7], [4, 8], [7, 9], [8, 10], [4, 11], [10, 12], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 2], [8, 4], [9, 7], [10, 8], [11, 4], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "DTMAxisIterNodeList", "code": "    private DTMAxisIterNodeList() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DTMAxisIterNodeList", "code": "    public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {\n        if (dtmAxisIterator == null) {\n            m_last = 0;\n        } else {\n            m_cachedNodes = new IntVector();\n            m_dtm = dtm;\n        }\n        m_iter = dtmAxisIterator;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [1, 8], [1, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 1], [9, 1], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 1}
{"sample_id": "camel-1.6-3032", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/cxf/spring/CxfEndpointBeanDefinitionParser.java", "language": "java", "name": "org.apache.camel.component.cxf.spring.CxfEndpointBeanDefinitionParser", "code": "public class CxfEndpointBeanDefinitionParser extends AbstractBeanDefinitionParser {\n\n    @Override\n    protected Class getBeanClass(Element arg0) {\n        return CxfSpringEndpointBean.class;\n    }\n\n    @Override\n    protected void mapAttribute(BeanDefinitionBuilder bean, Element e, String name, String val) {\n        if (\"endpointName\".equals(name) || \"serviceName\".equals(name)) {\n            QName q = parseQName(e, val);\n            bean.addPropertyValue(name, q);\n        } else {\n            mapToProperty(bean, name, val);\n        }\n    }\n\n    @Override\n    protected void mapElement(ParserContext ctx, BeanDefinitionBuilder bean, Element el, String name) {\n        if (\"properties\".equals(name)) {\n            Map map = ctx.getDelegate().parseMapElement(el, bean.getBeanDefinition());\n            bean.addPropertyValue(\"properties\", map);\n        } else if (\"binding\".equals(name)) {\n            setFirstChildAsProperty(el, ctx, bean, \"bindingConfig\");\n        } else if (\"inInterceptors\".equals(name) || \"inFaultInterceptors\".equals(name)\n            || \"outInterceptors\".equals(name) || \"outFaultInterceptors\".equals(name)\n            || \"features\".equals(name) || \"schemaLocations\".equals(name)\n            || \"handlers\".equals(name)) {\n            java.util.List list = (java.util.List)ctx.getDelegate().parseListElement(el, bean.getBeanDefinition());\n            bean.addPropertyValue(name, list);\n        } else {\n            setFirstChildAsProperty(el, ctx, bean, name);\n        }\n    }\n\n\n    @Override\n    protected void doParse(Element element, ParserContext ctx, BeanDefinitionBuilder bean) {\n        super.doParse(element, ctx, bean);\n        bean.setLazyInit(false);\n    }\n\n    @Override\n    protected String resolveId(Element elem,\n                               AbstractBeanDefinition definition,\n                               ParserContext ctx)\n        throws BeanDefinitionStoreException {\n        String id = super.resolveId(elem, definition, ctx);\n        if (StringUtils.isEmpty(id)) {\n            throw new BeanDefinitionStoreException(\"The bean id is needed.\");\n        }\n\n        return id;\n    }\n\n    @Override\n    protected boolean hasBusProperty() {\n        return true;\n    }\n    \n    public static class CxfSpringEndpointBean extends CxfEndpointBean implements ApplicationContextAware {\n        public CxfSpringEndpointBean() {\n            super();\n        }\n        \n        public CxfSpringEndpointBean(ReflectionServiceFactoryBean factory) {\n            super(factory);\n        }\n        \n        public void setApplicationContext(ApplicationContext ctx) throws BeansException {\n            if (getBus() == null) {\n                Bus bus = BusFactory.getDefaultBus();                \n                setBus(bus);\n            }\n            BusWiringBeanFactoryPostProcessor.updateBusReferencesInContext(getBus(), ctx);", "functions": [{"function_name": "getBeanClass", "code": "    @Override\n    protected Class getBeanClass(Element arg0) {\n        return CxfSpringEndpointBean.class;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "mapAttribute", "code": "    @Override\n    protected void mapAttribute(BeanDefinitionBuilder bean, Element e, String name, String val) {\n        if (\"endpointName\".equals(name) || \"serviceName\".equals(name)) {\n            QName q = parseQName(e, val);\n            bean.addPropertyValue(name, q);\n        } else {\n            mapToProperty(bean, name, val);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [1, 10], [1, 11], [8, 12], [9, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 1], [11, 1], [12, 8], [13, 9], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "mapElement", "code": "    @Override\n    protected void mapElement(ParserContext ctx, BeanDefinitionBuilder bean, Element el, String name) {\n        if (\"properties\".equals(name)) {\n            Map map = ctx.getDelegate().parseMapElement(el, bean.getBeanDefinition());\n            bean.addPropertyValue(\"properties\", map);\n        } else if (\"binding\".equals(name)) {\n            setFirstChildAsProperty(el, ctx, bean, \"bindingConfig\");\n        } else if (\"inInterceptors\".equals(name) || \"inFaultInterceptors\".equals(name)\n            || \"outInterceptors\".equals(name) || \"outFaultInterceptors\".equals(name)\n            || \"features\".equals(name) || \"schemaLocations\".equals(name)\n            || \"handlers\".equals(name)) {\n            java.util.List list = (java.util.List)ctx.getDelegate().parseListElement(el, bean.getBeanDefinition());\n            bean.addPropertyValue(name, list);\n        } else {\n            setFirstChildAsProperty(el, ctx, bean, name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [1, 10], [7, 11], [8, 12], [9, 13], [1, 14], [8, 15], [12, 16], [12, 17], [6, 18], [14, 19], [10, 20], [8, 21], [8, 22], [16, 23], [17, 24], [17, 25], [18, 26], [20, 27], [24, 28], [25, 29], [25, 30], [27, 31], [15, 32], [29, 33], [30, 34], [30, 35], [32, 36], [34, 37], [35, 38], [35, 39], [36, 40], [38, 41], [39, 42], [39, 43], [42, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 1], [11, 7], [12, 8], [13, 9], [14, 1], [15, 8], [16, 12], [17, 12], [18, 6], [19, 14], [20, 10], [21, 8], [22, 8], [23, 16], [24, 17], [25, 17], [26, 18], [27, 20], [28, 24], [29, 25], [30, 25], [31, 27], [32, 15], [33, 29], [34, 30], [35, 30], [36, 32], [37, 34], [38, 35], [39, 35], [40, 36], [41, 38], [42, 39], [43, 39], [44, 42], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "doParse", "code": "    @Override\n    protected void doParse(Element element, ParserContext ctx, BeanDefinitionBuilder bean) {\n        super.doParse(element, ctx, bean);\n        bean.setLazyInit(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resolveId", "code": "    @Override\n    protected String resolveId(Element elem,\n                               AbstractBeanDefinition definition,\n                               ParserContext ctx)\n        throws BeanDefinitionStoreException {\n        String id = super.resolveId(elem, definition, ctx);\n        if (StringUtils.isEmpty(id)) {\n            throw new BeanDefinitionStoreException(\"The bean id is needed.\");\n        }\n\n        return id;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "hasBusProperty", "code": "    @Override\n    protected boolean hasBusProperty() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6624", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/utils/synthetic/TestDriver.java", "language": "java", "name": "org.apache.xml.utils.synthetic.TestDriver", "code": "public class TestDriver\n{\n\n  /** Field sampleField          */\n  public static int sampleField = 32;\n\n  /** Field inTest          */\n  private boolean inTest = false;\n\n  /**\n   * Method main \n   *\n   *\n   * @param args\n   */\n  public static void main(String[] args)\n  {\n\n    try\n    {\n      System.out.println(\"Proxying java.awt.Frame...\");\n\n      Class myC = Class.forName(\"java.awt.Frame\");\n\n      myC.toSource(System.out, 0);\n      System.out.println(\n        \"\\nProxying org.apache.xml.utils.synthetic.TestDriver...\");\n\n      myC =\n        Class.forName(\"com.ibm.org.apache.xml.utils.synthetic.TestDriver\");\n\n      myC.toSource(System.out, 0);\n    }\n    catch (ClassNotFoundException e)\n    {\n      System.out.println(\"Couldn't proxy: \");\n      e.printStackTrace();\n    }\n\n    try\n    {\n      System.out.println(\"\\nBuild a new beast...\");\n\n      Class myC = Class.declareClass(\n        \"com.ibm.org.apache.xml.utils.synthetic.BuildMe\");\n      Class inner = myC.declareInnerClass(\"island\");\n\n      inner.addExtends(Class.forName(\"java.lang.String\"));\n\n      Method m = inner.declareMethod(\"getValue\");\n\n      m.setReturnType(Class.forName(\"java.lang.String\"));\n      m.getBody().append(\"return toString();\");\n      myC.toSource(System.out, 0);\n    }\n    catch (ClassNotFoundException e)\n    {\n      e.printStackTrace();\n    }\n    catch (SynthesisException e)\n    {\n      e.printStackTrace();\n    }\n    catch (IllegalStateException e)\n    {\n      System.out.println(\"Unwritten function: \" + e);\n      e.printStackTrace();\n    }\n  }\n\n  /**\n   * Method dumpClass \n   *\n   *\n   * @param C\n   */\n  public static void dumpClass(Class C)\n  {\n\n    System.out.println(\"toString(): \" + C);\n    System.out.println(\"\\tisPrimitive(): \" + C.isPrimitive());\n    System.out.println(\"\\tisInterface(): \" + C.isInterface());\n    System.out.println(\"\\tisInstance(\\\"foo\\\"): \" + C.isInstance(\"foo\"));\n    System.out.println(\"\\tisArray(): \" + C.isArray());\n    System.out.println(\"\\tgetRealClass(): \" + C.getRealClass());\n  }\n\n  /**\n   * Method quickcheck \n   *\n   */\n  public void quickcheck()\n  {\n\n    Inner a = new Inner();\n\n    a.setTest(!a.getTest());\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"internal\"/>\n   * Class Inner <needs-comment/>\n   */\n  private class Inner\n  {\n\n    /**\n     * Method getTest \n     *\n     *\n     * @return\n     */\n    public boolean getTest()\n    {\n      return inTest;\n    }\n\n    /**\n     * Method setTest \n     *\n     *\n     * @param test\n     */\n    public void setTest(boolean test)\n    {\n      inTest = test;", "functions": [{"function_name": "main", "code": "  public static void main(String[] args)\n  {\n\n    try\n    {\n      System.out.println(\"Proxying java.awt.Frame...\");\n\n      Class myC = Class.forName(\"java.awt.Frame\");\n\n      myC.toSource(System.out, 0);\n      System.out.println(\n        \"\\nProxying org.apache.xml.utils.synthetic.TestDriver...\");\n\n      myC =\n        Class.forName(\"com.ibm.org.apache.xml.utils.synthetic.TestDriver\");\n\n      myC.toSource(System.out, 0);\n    }\n    catch (ClassNotFoundException e)\n    {\n      System.out.println(\"Couldn't proxy: \");\n      e.printStackTrace();\n    }\n\n    try\n    {\n      System.out.println(\"\\nBuild a new beast...\");\n\n      Class myC = Class.declareClass(\n        \"com.ibm.org.apache.xml.utils.synthetic.BuildMe\");\n      Class inner = myC.declareInnerClass(\"island\");\n\n      inner.addExtends(Class.forName(\"java.lang.String\"));\n\n      Method m = inner.declareMethod(\"getValue\");\n\n      m.setReturnType(Class.forName(\"java.lang.String\"));\n      m.getBody().append(\"return toString();\");\n      myC.toSource(System.out, 0);\n    }\n    catch (ClassNotFoundException e)\n    {\n      e.printStackTrace();\n    }\n    catch (SynthesisException e)\n    {\n      e.printStackTrace();\n    }\n    catch (IllegalStateException e)\n    {\n      System.out.println(\"Unwritten function: \" + e);\n      e.printStackTrace();", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "PARAM", "CATCH", "CATCH", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [2, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [4, 22], [4, 23], [5, 24], [6, 25], [12, 26], [13, 27], [14, 28], [7, 29], [15, 30], [8, 31], [9, 32], [16, 33], [10, 34], [10, 35], [17, 36], [18, 37], [19, 38], [20, 39], [11, 40], [21, 41], [23, 42], [27, 43], [28, 44], [29, 45], [30, 46], [31, 47], [32, 48], [35, 49], [37, 50], [40, 51], [42, 52], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 2], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 4], [23, 4], [24, 5], [25, 6], [26, 12], [27, 13], [28, 14], [29, 7], [30, 15], [31, 8], [32, 9], [33, 16], [34, 10], [35, 10], [36, 17], [37, 18], [38, 19], [39, 20], [40, 11], [41, 21], [42, 23], [43, 27], [44, 28], [45, 29], [46, 30], [47, 31], [48, 32], [49, 35], [50, 37], [51, 40], [52, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "dumpClass", "code": "  public static void dumpClass(Class C)\n  {\n\n    System.out.println(\"toString(): \" + C);\n    System.out.println(\"\\tisPrimitive(): \" + C.isPrimitive());\n    System.out.println(\"\\tisInterface(): \" + C.isInterface());\n    System.out.println(\"\\tisInstance(\\\"foo\\\"): \" + C.isInstance(\"foo\"));\n    System.out.println(\"\\tisArray(): \" + C.isArray());\n    System.out.println(\"\\tgetRealClass(): \" + C.getRealClass());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [8, 15], [9, 16], [9, 17], [10, 18], [10, 19], [11, 20], [11, 21], [12, 22], [12, 23], [13, 24], [18, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 8], [16, 9], [17, 9], [18, 10], [19, 10], [20, 11], [21, 11], [22, 12], [23, 12], [24, 13], [25, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "quickcheck", "code": "  public void quickcheck()\n  {\n\n    Inner a = new Inner();\n\n    a.setTest(!a.getTest());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [1, 0], [2, 0], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-1.5-5328", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/poifs/storage/DocumentBlock.java", "language": "java", "name": "org.apache.poi.poifs.storage.DocumentBlock", "code": "public class DocumentBlock\n    extends BigBlock\n{\n    private static final byte _default_value = ( byte ) 0xFF;\n    private byte[]            _data;\n    private int               _bytes_read;\n\n    /**\n     * create a document block from a raw data block\n     *\n     * @param block the raw data block\n     *\n     * @exception IOException\n     */\n\n    public DocumentBlock(final RawDataBlock block)\n        throws IOException\n    {\n        _data       = block.getData();\n        _bytes_read = _data.length;\n    }\n\n    /**\n     * Create a single instance initialized with data.\n     *\n     * @param stream the InputStream delivering the data.\n     *\n     * @exception IOException\n     */\n\n    public DocumentBlock(final InputStream stream)\n        throws IOException\n    {\n        this();\n        int count = stream.read(_data);\n\n        _bytes_read = (count == -1) ? 0\n                                    : count;\n    }\n\n    /**\n     * Create a single instance initialized with default values\n     */\n\n    private DocumentBlock()\n    {\n        _data = new byte[ POIFSConstants.BIG_BLOCK_SIZE ];\n        Arrays.fill(_data, _default_value);\n    }\n\n    /**\n     * Get the number of bytes read for this block\n     *\n     * @return bytes read into the block\n     */\n\n    public int size()\n    {\n        return _bytes_read;\n    }\n\n    /**\n     * Was this a partially read block?\n     *\n     * @return true if the block was only partially filled with data\n     */\n\n    public boolean partiallyRead()\n    {\n        return _bytes_read != POIFSConstants.BIG_BLOCK_SIZE;\n    }\n\n    /**\n     * @return the fill byte used\n     */\n\n    public static byte getFillByte()\n    {\n        return _default_value;\n    }\n\n    /**\n     * convert a single long array into an array of DocumentBlock\n     * instances\n     *\n     * @param array the byte array to be converted\n     * @param size the intended size of the array (which may be smaller)\n     *\n     * @return an array of DocumentBlock instances, filled from the\n     *         input array\n     */\n\n    public static DocumentBlock [] convert(final byte [] array,\n                                           final int size)\n    {\n        DocumentBlock[] rval   =\n            new DocumentBlock[ (size + POIFSConstants.BIG_BLOCK_SIZE - 1) / POIFSConstants.BIG_BLOCK_SIZE ];\n        int             offset = 0;\n\n        for (int k = 0; k < rval.length; k++)\n        {\n            rval[ k ] = new DocumentBlock();\n            if (offset < array.length)\n            {\n                int length = Math.min(POIFSConstants.BIG_BLOCK_SIZE,\n                                      array.length - offset);\n\n                System.arraycopy(array, offset, rval[ k ]._data, 0, length);\n                if (length != POIFSConstants.BIG_BLOCK_SIZE)\n                {\n                    Arrays.fill(rval[ k ]._data, length,\n                                POIFSConstants.BIG_BLOCK_SIZE,\n                                _default_value);\n                }\n            }\n            else\n            {\n                Arrays.fill(rval[ k ]._data, _default_value);\n            }\n            offset += POIFSConstants.BIG_BLOCK_SIZE;\n        }\n        return rval;\n    }\n\n    /**\n     * read data from an array of DocumentBlocks\n     *\n     * @param blocks the blocks to read from\n     * @param buffer the buffer to write the data into\n     * @param offset the offset into the array of blocks to read from\n     */\n\n    public static void read(final DocumentBlock [] blocks,\n                            final byte [] buffer, final int offset)\n    {\n        int firstBlockIndex  = offset / POIFSConstants.BIG_BLOCK_SIZE;\n        int firstBlockOffset = offset % POIFSConstants.BIG_BLOCK_SIZE;\n        int lastBlockIndex   = (offset + buffer.length - 1)\n                               / POIFSConstants.BIG_BLOCK_SIZE;\n\n        if (firstBlockIndex == lastBlockIndex)\n        {\n            System.arraycopy(blocks[ firstBlockIndex ]._data,\n                             firstBlockOffset, buffer, 0, buffer.length);\n        }\n        else\n        {\n            int buffer_offset = 0;\n\n            System.arraycopy(blocks[ firstBlockIndex ]._data,\n                             firstBlockOffset, buffer, buffer_offset,\n                             POIFSConstants.BIG_BLOCK_SIZE\n                             - firstBlockOffset);\n            buffer_offset += POIFSConstants.BIG_BLOCK_SIZE - firstBlockOffset;\n            for (int j = firstBlockIndex + 1; j < lastBlockIndex; j++)\n            {\n                System.arraycopy(blocks[ j ]._data, 0, buffer, buffer_offset,\n                                 POIFSConstants.BIG_BLOCK_SIZE);\n                buffer_offset += POIFSConstants.BIG_BLOCK_SIZE;\n            }\n            System.arraycopy(blocks[ lastBlockIndex ]._data, 0, buffer,\n                             buffer_offset, buffer.length - buffer_offset);\n        }\n    }\n\n    /* ********** START extension of BigBlock ********** */\n\n    /**\n     * Write the block's data to an OutputStream\n     *\n     * @param stream the OutputStream to which the stored data should\n     *               be written\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream\n     */\n\n    void writeData(final OutputStream stream)\n        throws IOException\n    {\n        doWriteData(stream, _data);", "functions": [{"function_name": "size", "code": "    public int size()\n    {\n        return _bytes_read;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "partiallyRead", "code": "    public boolean partiallyRead()\n    {\n        return _bytes_read != POIFSConstants.BIG_BLOCK_SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFillByte", "code": "    public static byte getFillByte()\n    {\n        return _default_value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "convert", "code": "    public static DocumentBlock [] convert(final byte [] array,\n                                           final int size)\n    {\n        DocumentBlock[] rval   =\n            new DocumentBlock[ (size + POIFSConstants.BIG_BLOCK_SIZE - 1) / POIFSConstants.BIG_BLOCK_SIZE ];\n        int             offset = 0;\n\n        for (int k = 0; k < rval.length; k++)\n        {\n            rval[ k ] = new DocumentBlock();\n            if (offset < array.length)\n            {\n                int length = Math.min(POIFSConstants.BIG_BLOCK_SIZE,\n                                      array.length - offset);\n\n                System.arraycopy(array, offset, rval[ k ]._data, 0, length);\n                if (length != POIFSConstants.BIG_BLOCK_SIZE)\n                {\n                    Arrays.fill(rval[ k ]._data, length,\n                                POIFSConstants.BIG_BLOCK_SIZE,\n                                _default_value);\n                }\n            }\n            else\n            {\n                Arrays.fill(rval[ k ]._data, _default_value);\n            }\n            offset += POIFSConstants.BIG_BLOCK_SIZE;\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [2, 10], [8, 11], [2, 12], [2, 13], [4, 14], [8, 15], [8, 16], [12, 17], [14, 18], [8, 19], [15, 20], [8, 21], [18, 22], [18, 23], [21, 24], [16, 25], [15, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 2], [11, 8], [12, 2], [13, 2], [14, 4], [15, 8], [16, 8], [17, 12], [18, 14], [19, 8], [20, 15], [21, 8], [22, 18], [23, 18], [24, 21], [25, 16], [26, 15], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "read", "code": "    public static void read(final DocumentBlock [] blocks,\n                            final byte [] buffer, final int offset)\n    {\n        int firstBlockIndex  = offset / POIFSConstants.BIG_BLOCK_SIZE;\n        int firstBlockOffset = offset % POIFSConstants.BIG_BLOCK_SIZE;\n        int lastBlockIndex   = (offset + buffer.length - 1)\n                               / POIFSConstants.BIG_BLOCK_SIZE;\n\n        if (firstBlockIndex == lastBlockIndex)\n        {\n            System.arraycopy(blocks[ firstBlockIndex ]._data,\n                             firstBlockOffset, buffer, 0, buffer.length);\n        }\n        else\n        {\n            int buffer_offset = 0;\n\n            System.arraycopy(blocks[ firstBlockIndex ]._data,\n                             firstBlockOffset, buffer, buffer_offset,\n                             POIFSConstants.BIG_BLOCK_SIZE\n                             - firstBlockOffset);\n            buffer_offset += POIFSConstants.BIG_BLOCK_SIZE - firstBlockOffset;\n            for (int j = firstBlockIndex + 1; j < lastBlockIndex; j++)\n            {\n                System.arraycopy(blocks[ j ]._data, 0, buffer, buffer_offset,\n                                 POIFSConstants.BIG_BLOCK_SIZE);\n                buffer_offset += POIFSConstants.BIG_BLOCK_SIZE;\n            }\n            System.arraycopy(blocks[ lastBlockIndex ]._data, 0, buffer,\n                             buffer_offset, buffer.length - buffer_offset);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [4, 13], [1, 14], [9, 15], [1, 16], [1, 17], [1, 18], [11, 19], [14, 20], [14, 21], [16, 22], [17, 23], [10, 24], [18, 25], [19, 26], [19, 27], [9, 28], [9, 29], [9, 30], [29, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 4], [14, 1], [15, 9], [16, 1], [17, 1], [18, 1], [19, 11], [20, 14], [21, 14], [22, 16], [23, 17], [24, 10], [25, 18], [26, 19], [27, 19], [28, 9], [29, 9], [30, 9], [31, 29], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "writeData", "code": "    void writeData(final OutputStream stream)\n        throws IOException\n    {\n        doWriteData(stream, _data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DocumentBlock", "code": "    public DocumentBlock(final RawDataBlock block)\n        throws IOException\n    {\n        _data       = block.getData();\n        _bytes_read = _data.length;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DocumentBlock", "code": "    public DocumentBlock(final InputStream stream)\n        throws IOException\n    {\n        this();\n        int count = stream.read(_data);\n\n        _bytes_read = (count == -1) ? 0\n                                    : count;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "ASSIGN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [4, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 4], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "DocumentBlock", "code": "    private DocumentBlock()\n    {\n        _data = new byte[ POIFSConstants.BIG_BLOCK_SIZE ];\n        Arrays.fill(_data, _default_value);", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-3.0-6180", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/ddf/EscherClientAnchorRecord.java", "language": "java", "name": "org.apache.poi.ddf.EscherClientAnchorRecord", "code": "public class EscherClientAnchorRecord\n        extends EscherRecord\n{\n    public static final short RECORD_ID = (short) 0xF010;\n    public static final String RECORD_DESCRIPTION = \"MsofbtClientAnchor\";\n\n    private short field_1_flag;\n    private short field_2_col1;\n    private short field_3_dx1;\n    private short field_4_row1;\n    private short field_5_dy1;\n    private short field_6_col2;\n    private short field_7_dx2;\n    private short field_8_row2;\n    private short field_9_dy2;\n    private byte[] remainingData;\n    private boolean shortRecord = false;\n\n    /**\n     * This method deserializes the record from a byte array.\n     *\n     * @param data          The byte array containing the escher record information\n     * @param offset        The starting offset into <code>data</code>.\n     * @param recordFactory May be null since this is not a container record.\n     * @return The number of bytes read from the byte array.\n     */\n    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        int pos            = offset + 8;\n        int size           = 0;\n\n        field_1_flag   =  LittleEndian.getShort( data, pos + size );     size += 2;\n        field_2_col1   =  LittleEndian.getShort( data, pos + size );     size += 2;\n        field_3_dx1    =  LittleEndian.getShort( data, pos + size );     size += 2;\n        field_4_row1   =  LittleEndian.getShort( data, pos + size );     size += 2;\n        if(bytesRemaining >= 18) {\n\t\t    field_5_dy1    =  LittleEndian.getShort( data, pos + size );     size += 2;\n\t\t    field_6_col2   =  LittleEndian.getShort( data, pos + size );     size += 2;\n\t\t    field_7_dx2    =  LittleEndian.getShort( data, pos + size );     size += 2;\n\t\t    field_8_row2   =  LittleEndian.getShort( data, pos + size );     size += 2;\n\t\t    field_9_dy2    =  LittleEndian.getShort( data, pos + size );     size += 2;\n\t\t\tshortRecord = false;\n        } else {\n\t\t\tshortRecord = true;\n\t\t}\n        bytesRemaining -= size;\n        remainingData  =  new byte[bytesRemaining];\n        System.arraycopy( data, pos + size, remainingData, 0, bytesRemaining );\n        return 8 + size + bytesRemaining;\n    }\n\n    /**\n     * This method serializes this escher record into a byte array.\n     *\n     * @param offset   The offset into <code>data</code> to start writing the record data to.\n     * @param data     The byte array to serialize to.\n     * @param listener A listener to retrieve start and end callbacks.  Use a <code>NullEscherSerailizationListener</code> to ignore these events.\n     * @return The number of bytes written.\n     * @see NullEscherSerializationListener\n     */\n    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        if (remainingData == null) remainingData = new byte[0];\n        LittleEndian.putShort( data, offset, getOptions() );\n        LittleEndian.putShort( data, offset + 2, getRecordId() );\n        int remainingBytes = remainingData.length + (shortRecord ? 8 : 18);\n        LittleEndian.putInt( data, offset + 4, remainingBytes );\n        LittleEndian.putShort( data, offset + 8, field_1_flag );\n        LittleEndian.putShort( data, offset + 10, field_2_col1 );\n        LittleEndian.putShort( data, offset + 12, field_3_dx1 );\n        LittleEndian.putShort( data, offset + 14, field_4_row1 );\n        if(!shortRecord) {\n            LittleEndian.putShort( data, offset + 16, field_5_dy1 );\n            LittleEndian.putShort( data, offset + 18, field_6_col2 );\n            LittleEndian.putShort( data, offset + 20, field_7_dx2 );\n            LittleEndian.putShort( data, offset + 22, field_8_row2 );\n            LittleEndian.putShort( data, offset + 24, field_9_dy2 );\n        }\n        System.arraycopy( remainingData, 0, data, offset + (shortRecord ? 16 : 26), remainingData.length );\n        int pos = offset + 8 + (shortRecord ? 8 : 18) + remainingData.length;\n\n        listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );\n        return pos - offset;\n    }\n\n    /**\n     * Returns the number of bytes that are required to serialize this record.\n     *\n     * @return Number of bytes\n     */\n    public int getRecordSize()\n    {\n        return 8 + (shortRecord ? 8 : 18) + (remainingData == null ? 0 : remainingData.length);\n    }\n\n    /**\n     * The record id for this record.\n     */\n    public short getRecordId()\n    {\n        return RECORD_ID;\n    }\n\n    /**\n     * The short name for this record\n     */\n    public String getRecordName()\n    {\n        return \"ClientAnchor\";\n    }\n\n    /**\n     * Returns the string representation for this record.\n     *\n     * @return A string\n     */\n    public String toString()\n    {\n        String nl = System.getProperty(\"line.separator\");\n\n        String extraData;\n        ByteArrayOutputStream b = new ByteArrayOutputStream();\n        try\n        {\n            HexDump.dump(this.remainingData, 0, b, 0);\n            extraData = b.toString();\n        }\n        catch ( Exception e )\n        {\n            extraData = \"error\\n\";\n        }\n        return getClass().getName() + \":\" + nl +\n                \"  RecordId: 0x\" + HexDump.toHex(RECORD_ID) + nl +\n                \"  Options: 0x\" + HexDump.toHex(getOptions()) + nl +\n                \"  Flag: \" + field_1_flag + nl +\n                \"  Col1: \" + field_2_col1 + nl +\n                \"  DX1: \" + field_3_dx1 + nl +\n                \"  Row1: \" + field_4_row1 + nl +\n                \"  DY1: \" + field_5_dy1 + nl +\n                \"  Col2: \" + field_6_col2 + nl +\n                \"  DX2: \" + field_7_dx2 + nl +\n                \"  Row2: \" + field_8_row2 + nl +\n                \"  DY2: \" + field_9_dy2 + nl +\n                \"  Extra Data:\" + nl + extraData;\n\n    }\n\n    /**\n     * 0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.\n     */\n    public short getFlag()\n    {\n        return field_1_flag;\n    }\n\n    /**\n     * 0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.\n     */\n    public void setFlag( short field_1_flag )\n    {\n        this.field_1_flag = field_1_flag;\n    }\n\n    /**\n     * The column number for the top-left position.  0 based.\n     */\n    public short getCol1()\n    {\n        return field_2_col1;\n    }\n\n    /**\n     * The column number for the top-left position.  0 based.\n     */\n    public void setCol1( short field_2_col1 )\n    {\n        this.field_2_col1 = field_2_col1;\n    }\n\n    /**\n     * The x offset within the top-left cell.  Range is from 0 to 1023.\n     */\n    public short getDx1()\n    {\n        return field_3_dx1;\n    }\n\n    /**\n     * The x offset within the top-left cell.  Range is from 0 to 1023.\n     */\n    public void setDx1( short field_3_dx1 )\n    {\n        this.field_3_dx1 = field_3_dx1;\n    }\n\n    /**\n     * The row number for the top-left corner of the shape.\n     */\n    public short getRow1()\n    {\n        return field_4_row1;\n    }\n\n    /**\n     * The row number for the top-left corner of the shape.\n     */\n    public void setRow1( short field_4_row1 )\n    {\n        this.field_4_row1 = field_4_row1;\n    }\n\n    /**\n     * The y offset within the top-left corner of the current shape.\n     */\n    public short getDy1()\n    {\n        return field_5_dy1;\n    }\n\n    /**\n     * The y offset within the top-left corner of the current shape.\n     */\n    public void setDy1( short field_5_dy1 )\n    {\n        shortRecord = false;\n        this.field_5_dy1 = field_5_dy1;\n    }\n\n    /**\n     * The column of the bottom right corner of this shape.\n     */\n    public short getCol2()\n    {\n        return field_6_col2;\n    }\n\n    /**\n     * The column of the bottom right corner of this shape.\n     */\n    public void setCol2( short field_6_col2 )\n    {\n        shortRecord = false;\n        this.field_6_col2 = field_6_col2;\n    }\n\n    /**\n     * The x offset withing the cell for the bottom-right corner of this shape.\n     */\n    public short getDx2()\n    {\n        return field_7_dx2;\n    }\n\n    /**\n     * The x offset withing the cell for the bottom-right corner of this shape.\n     */\n    public void setDx2( short field_7_dx2 )\n    {\n        shortRecord = false;\n        this.field_7_dx2 = field_7_dx2;\n    }\n\n    /**\n     * The row number for the bottom-right corner of the current shape.\n     */\n    public short getRow2()\n    {\n        return field_8_row2;\n    }\n\n    /**\n     * The row number for the bottom-right corner of the current shape.\n     */\n    public void setRow2( short field_8_row2 )\n    {\n        shortRecord = false;\n        this.field_8_row2 = field_8_row2;\n    }\n\n    /**\n     * The y offset withing the cell for the bottom-right corner of this shape.\n     */\n    public short getDy2()\n    {\n        return field_9_dy2;\n    }\n\n    /**\n     * The y offset withing the cell for the bottom-right corner of this shape.\n     */\n    public void setDy2( short field_9_dy2 )\n    {\n        shortRecord = false;\n        this.field_9_dy2 = field_9_dy2;\n    }\n\n    /**\n     * Any remaining data in the record\n     */\n    public byte[] getRemainingData()\n    {\n        return remainingData;\n    }\n\n    /**\n     * Any remaining data in the record\n     */\n    public void setRemainingData( byte[] remainingData )\n    {\n        this.remainingData = remainingData;", "functions": [{"function_name": "fillFields", "code": "    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        int pos            = offset + 8;\n        int size           = 0;\n\n        field_1_flag   =  LittleEndian.getShort( data, pos + size );     size += 2;\n        field_2_col1   =  LittleEndian.getShort( data, pos + size );     size += 2;\n        field_3_dx1    =  LittleEndian.getShort( data, pos + size );     size += 2;\n        field_4_row1   =  LittleEndian.getShort( data, pos + size );     size += 2;\n        if(bytesRemaining >= 18) {\n\t\t    field_5_dy1    =  LittleEndian.getShort( data, pos + size );     size += 2;\n\t\t    field_6_col2   =  LittleEndian.getShort( data, pos + size );     size += 2;\n\t\t    field_7_dx2    =  LittleEndian.getShort( data, pos + size );     size += 2;\n\t\t    field_8_row2   =  LittleEndian.getShort( data, pos + size );     size += 2;\n\t\t    field_9_dy2    =  LittleEndian.getShort( data, pos + size );     size += 2;\n\t\t\tshortRecord = false;\n        } else {\n\t\t\tshortRecord = true;\n\t\t}\n        bytesRemaining -= size;\n        remainingData  =  new byte[bytesRemaining];\n        System.arraycopy( data, pos + size, remainingData, 0, bytesRemaining );\n        return 8 + size + bytesRemaining;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [2, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [9, 22], [10, 23], [10, 24], [13, 25], [14, 26], [15, 27], [16, 28], [17, 29], [18, 30], [19, 31], [20, 32], [21, 33], [3, 34], [4, 35], [5, 36], [22, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [27, 50], [29, 51], [31, 52], [33, 53], [35, 54], [38, 55], [39, 56], [40, 57], [41, 58], [42, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [48, 65], [49, 66], [58, 67], [60, 68], [62, 69], [64, 70], [66, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 2], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 9], [23, 10], [24, 10], [25, 13], [26, 14], [27, 15], [28, 16], [29, 17], [30, 18], [31, 19], [32, 20], [33, 21], [34, 3], [35, 4], [36, 5], [37, 22], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 27], [51, 29], [52, 31], [53, 33], [54, 35], [55, 38], [56, 39], [57, 40], [58, 41], [59, 42], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 48], [66, 49], [67, 58], [68, 60], [69, 62], [70, 64], [71, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        if (remainingData == null) remainingData = new byte[0];\n        LittleEndian.putShort( data, offset, getOptions() );\n        LittleEndian.putShort( data, offset + 2, getRecordId() );\n        int remainingBytes = remainingData.length + (shortRecord ? 8 : 18);\n        LittleEndian.putInt( data, offset + 4, remainingBytes );\n        LittleEndian.putShort( data, offset + 8, field_1_flag );\n        LittleEndian.putShort( data, offset + 10, field_2_col1 );\n        LittleEndian.putShort( data, offset + 12, field_3_dx1 );\n        LittleEndian.putShort( data, offset + 14, field_4_row1 );\n        if(!shortRecord) {\n            LittleEndian.putShort( data, offset + 16, field_5_dy1 );\n            LittleEndian.putShort( data, offset + 18, field_6_col2 );\n            LittleEndian.putShort( data, offset + 20, field_7_dx2 );\n            LittleEndian.putShort( data, offset + 22, field_8_row2 );\n            LittleEndian.putShort( data, offset + 24, field_9_dy2 );\n        }\n        System.arraycopy( remainingData, 0, data, offset + (shortRecord ? 16 : 26), remainingData.length );\n        int pos = offset + 8 + (shortRecord ? 8 : 18) + remainingData.length;\n\n        listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );\n        return pos - offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [5, 19], [0, 20], [10, 21], [10, 22], [2, 23], [11, 24], [11, 25], [12, 26], [13, 27], [14, 28], [15, 29], [16, 30], [4, 31], [17, 32], [17, 33], [18, 34], [5, 35], [19, 36], [20, 37], [23, 38], [24, 39], [3, 40], [3, 41], [3, 42], [3, 43], [3, 44], [26, 45], [27, 46], [28, 47], [29, 48], [30, 49], [31, 50], [33, 51], [38, 52], [38, 53], [39, 54], [39, 55], [40, 56], [41, 57], [42, 58], [43, 59], [44, 60], [50, 61], [50, 62], [35, 63], [52, 64], [52, 65], [53, 66], [56, 67], [57, 68], [58, 69], [59, 70], [60, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 5], [20, 0], [21, 10], [22, 10], [23, 2], [24, 11], [25, 11], [26, 12], [27, 13], [28, 14], [29, 15], [30, 16], [31, 4], [32, 17], [33, 17], [34, 18], [35, 5], [36, 19], [37, 20], [38, 23], [39, 24], [40, 3], [41, 3], [42, 3], [43, 3], [44, 3], [45, 26], [46, 27], [47, 28], [48, 29], [49, 30], [50, 31], [51, 33], [52, 38], [53, 38], [54, 39], [55, 39], [56, 40], [57, 41], [58, 42], [59, 43], [60, 44], [61, 50], [62, 50], [63, 35], [64, 52], [65, 52], [66, 53], [67, 56], [68, 57], [69, 58], [70, 59], [71, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 8 + (shortRecord ? 8 : 18) + (remainingData == null ? 0 : remainingData.length);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [6, 9], [7, 10], [7, 11], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 6], [10, 7], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getRecordId", "code": "    public short getRecordId()\n    {\n        return RECORD_ID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordName", "code": "    public String getRecordName()\n    {\n        return \"ClientAnchor\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        String nl = System.getProperty(\"line.separator\");\n\n        String extraData;\n        ByteArrayOutputStream b = new ByteArrayOutputStream();\n        try\n        {\n            HexDump.dump(this.remainingData, 0, b, 0);\n            extraData = b.toString();\n        }\n        catch ( Exception e )\n        {\n            extraData = \"error\\n\";\n        }\n        return getClass().getName() + \":\" + nl +\n                \"  RecordId: 0x\" + HexDump.toHex(RECORD_ID) + nl +\n                \"  Options: 0x\" + HexDump.toHex(getOptions()) + nl +\n                \"  Flag: \" + field_1_flag + nl +\n                \"  Col1: \" + field_2_col1 + nl +\n                \"  DX1: \" + field_3_dx1 + nl +\n                \"  Row1: \" + field_4_row1 + nl +\n                \"  DY1: \" + field_5_dy1 + nl +\n                \"  Col2: \" + field_6_col2 + nl +\n                \"  DX2: \" + field_7_dx2 + nl +\n                \"  Row2: \" + field_8_row2 + nl +\n                \"  DY2: \" + field_9_dy2 + nl +\n                \"  Extra Data:\" + nl + extraData;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CATCH", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [6, 8], [2, 9], [2, 10], [3, 11], [5, 12], [8, 13], [7, 14], [9, 15], [10, 16], [10, 17], [12, 18], [13, 19], [13, 20], [14, 21], [20, 22], [22, 23], [23, 24], [23, 25], [25, 26], [26, 27], [27, 28], [27, 29], [29, 30], [30, 31], [31, 32], [31, 33], [33, 34], [34, 35], [35, 36], [35, 37], [37, 38], [38, 39], [39, 40], [39, 41], [41, 42], [42, 43], [43, 44], [43, 45], [45, 46], [46, 47], [47, 48], [47, 49], [49, 50], [50, 51], [51, 52], [51, 53], [53, 54], [54, 55], [55, 56], [55, 57], [57, 58], [58, 59], [58, 60], [59, 61], [60, 62], [60, 63], [63, 64], [64, 65], [64, 66], [66, 67], [66, 68], [68, 69], [69, 70], [69, 71], [71, 72], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 6], [9, 2], [10, 2], [11, 3], [12, 5], [13, 8], [14, 7], [15, 9], [16, 10], [17, 10], [18, 12], [19, 13], [20, 13], [21, 14], [22, 20], [23, 22], [24, 23], [25, 23], [26, 25], [27, 26], [28, 27], [29, 27], [30, 29], [31, 30], [32, 31], [33, 31], [34, 33], [35, 34], [36, 35], [37, 35], [38, 37], [39, 38], [40, 39], [41, 39], [42, 41], [43, 42], [44, 43], [45, 43], [46, 45], [47, 46], [48, 47], [49, 47], [50, 49], [51, 50], [52, 51], [53, 51], [54, 53], [55, 54], [56, 55], [57, 55], [58, 57], [59, 58], [60, 58], [61, 59], [62, 60], [63, 60], [64, 63], [65, 64], [66, 64], [67, 66], [68, 66], [69, 68], [70, 69], [71, 69], [72, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72]]}, {"function_name": "getFlag", "code": "    public short getFlag()\n    {\n        return field_1_flag;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFlag", "code": "    public void setFlag( short field_1_flag )\n    {\n        this.field_1_flag = field_1_flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCol1", "code": "    public short getCol1()\n    {\n        return field_2_col1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCol1", "code": "    public void setCol1( short field_2_col1 )\n    {\n        this.field_2_col1 = field_2_col1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDx1", "code": "    public short getDx1()\n    {\n        return field_3_dx1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDx1", "code": "    public void setDx1( short field_3_dx1 )\n    {\n        this.field_3_dx1 = field_3_dx1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRow1", "code": "    public short getRow1()\n    {\n        return field_4_row1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRow1", "code": "    public void setRow1( short field_4_row1 )\n    {\n        this.field_4_row1 = field_4_row1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDy1", "code": "    public short getDy1()\n    {\n        return field_5_dy1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDy1", "code": "    public void setDy1( short field_5_dy1 )\n    {\n        shortRecord = false;\n        this.field_5_dy1 = field_5_dy1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCol2", "code": "    public short getCol2()\n    {\n        return field_6_col2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCol2", "code": "    public void setCol2( short field_6_col2 )\n    {\n        shortRecord = false;\n        this.field_6_col2 = field_6_col2;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDx2", "code": "    public short getDx2()\n    {\n        return field_7_dx2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDx2", "code": "    public void setDx2( short field_7_dx2 )\n    {\n        shortRecord = false;\n        this.field_7_dx2 = field_7_dx2;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRow2", "code": "    public short getRow2()\n    {\n        return field_8_row2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRow2", "code": "    public void setRow2( short field_8_row2 )\n    {\n        shortRecord = false;\n        this.field_8_row2 = field_8_row2;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDy2", "code": "    public short getDy2()\n    {\n        return field_9_dy2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDy2", "code": "    public void setDy2( short field_9_dy2 )\n    {\n        shortRecord = false;\n        this.field_9_dy2 = field_9_dy2;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRemainingData", "code": "    public byte[] getRemainingData()\n    {\n        return remainingData;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRemainingData", "code": "    public void setRemainingData( byte[] remainingData )\n    {\n        this.remainingData = remainingData;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.4-6672", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/transformer/SerializerSwitcher.java", "language": "java", "name": "org.apache.xalan.transformer.SerializerSwitcher", "code": "public class SerializerSwitcher\n{\n\n  /**\n   * Switch to HTML serializer if element is HTML\n   *\n   *\n   * @param transformer Non-null transformer instance\n   * @param ns Namespace URI of the element\n   * @param localName Local part of name of element\n   *\n   * @throws TransformerException\n   */\n  public static void switchSerializerIfHTML(\n          TransformerImpl transformer, String ns, String localName)\n            throws TransformerException\n  {\n\n    if (null == transformer)\n      return;\n\n    if (((null == ns) || (ns.length() == 0))\n            && localName.equalsIgnoreCase(\"html\"))\n    {\n      if (null != transformer.getOutputPropertyNoDefault(OutputKeys.METHOD))\n        return;\n\n      Properties prevProperties = transformer.getOutputFormat().getProperties();\n      \n      OutputProperties htmlOutputProperties = new OutputProperties(Method.HTML);\n\n      htmlOutputProperties.copyFrom(prevProperties, true);\n      Properties htmlProperties = htmlOutputProperties.getProperties();\n\n      try\n      {\n        Serializer oldSerializer = transformer.getSerializer();\n\n        if (null != oldSerializer)\n        {\n          Serializer serializer =\n            SerializerFactory.getSerializer(htmlProperties);\n\n          Writer writer = oldSerializer.getWriter();\n\n          if (null != writer)\n            serializer.setWriter(writer);\n          else\n          {\n            OutputStream os = oldSerializer.getOutputStream();\n\n            if (null != os)\n              serializer.setOutputStream(os);\n          }\n\n          transformer.setSerializer(serializer);\n\n          ContentHandler ch = serializer.asContentHandler();\n\n          transformer.setContentHandler(ch);\n        }\n      }\n      catch (java.io.IOException e)\n      {\n        throw new TransformerException(e);\n      }\n    }\n  }\n  \n  /**\n   * Get the value of a property, without using the default properties.  This \n   * can be used to test if a property has been explicitly set by the stylesheet \n   * or user.\n   *\n   * @param name The property name, which is a fully-qualified URI.\n   *\n   * @return The value of the property, or null if not found.\n   *\n   * @throws IllegalArgumentException If the property is not supported, \n   * and is not namespaced.\n   */\n  private static String getOutputPropertyNoDefault(String qnameString, Properties props)\n    throws IllegalArgumentException\n  {    \n    String value = (String)props.get(qnameString);\n    \n    return value;\n  }\n  \n  /**\n   * Switch to HTML serializer if element is HTML\n   *\n   *\n   * @param ns Namespace URI of the element\n   * @param localName Local part of name of element\n   *\n   * @throws TransformerException\n   * @return new contentHandler.\n   */\n  public static Serializer switchSerializerIfHTML(\n          String ns, String localName, Properties props, Serializer oldSerializer)\n            throws TransformerException\n  {\n    Serializer newSerializer = oldSerializer;\n\n    if (((null == ns) || (ns.length() == 0))\n            && localName.equalsIgnoreCase(\"html\"))\n    {\n      if (null != getOutputPropertyNoDefault(OutputKeys.METHOD, props))\n        return newSerializer;\n\n      Properties prevProperties = props;\n      \n      OutputProperties htmlOutputProperties = new OutputProperties(Method.HTML);\n\n      htmlOutputProperties.copyFrom(prevProperties, true);\n      Properties htmlProperties = htmlOutputProperties.getProperties();\n\n      {\n        if (null != oldSerializer)\n        {\n          Serializer serializer =\n            SerializerFactory.getSerializer(htmlProperties);\n\n          Writer writer = oldSerializer.getWriter();\n\n          if (null != writer)\n            serializer.setWriter(writer);\n          else\n          {\n            OutputStream os = serializer.getOutputStream();\n\n            if (null != os)\n              serializer.setOutputStream(os);\n          }\n          newSerializer = serializer;\n        }\n      }\n    }\n    return newSerializer;", "functions": [{"function_name": "switchSerializerIfHTML", "code": "  public static void switchSerializerIfHTML(\n          TransformerImpl transformer, String ns, String localName)\n            throws TransformerException\n  {\n\n    if (null == transformer)\n      return;\n\n    if (((null == ns) || (ns.length() == 0))\n            && localName.equalsIgnoreCase(\"html\"))\n    {\n      if (null != transformer.getOutputPropertyNoDefault(OutputKeys.METHOD))\n        return;\n\n      Properties prevProperties = transformer.getOutputFormat().getProperties();\n      \n      OutputProperties htmlOutputProperties = new OutputProperties(Method.HTML);\n\n      htmlOutputProperties.copyFrom(prevProperties, true);\n      Properties htmlProperties = htmlOutputProperties.getProperties();\n\n      try\n      {\n        Serializer oldSerializer = transformer.getSerializer();\n\n        if (null != oldSerializer)\n        {\n          Serializer serializer =\n            SerializerFactory.getSerializer(htmlProperties);\n\n          Writer writer = oldSerializer.getWriter();\n\n          if (null != writer)\n            serializer.setWriter(writer);\n          else\n          {\n            OutputStream os = oldSerializer.getOutputStream();\n\n            if (null != os)\n              serializer.setOutputStream(os);\n          }\n\n          transformer.setSerializer(serializer);\n\n          ContentHandler ch = serializer.asContentHandler();\n\n          transformer.setContentHandler(ch);\n        }\n      }\n      catch (java.io.IOException e)\n      {\n        throw new TransformerException(e);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [6, 14], [6, 15], [8, 16], [9, 17], [9, 18], [9, 19], [1, 20], [13, 21], [13, 22], [14, 23], [15, 24], [15, 25], [17, 26], [18, 27], [10, 28], [20, 29], [11, 30], [12, 31], [22, 32], [22, 33], [24, 34], [24, 35], [25, 36], [26, 37], [18, 38], [18, 39], [18, 40], [18, 41], [27, 42], [19, 43], [31, 44], [18, 45], [18, 46], [39, 47], [38, 48], [39, 49], [39, 50], [39, 51], [47, 52], [40, 53], [41, 54], [49, 55], [49, 56], [55, 57], [50, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 6], [15, 6], [16, 8], [17, 9], [18, 9], [19, 9], [20, 1], [21, 13], [22, 13], [23, 14], [24, 15], [25, 15], [26, 17], [27, 18], [28, 10], [29, 20], [30, 11], [31, 12], [32, 22], [33, 22], [34, 24], [35, 24], [36, 25], [37, 26], [38, 18], [39, 18], [40, 18], [41, 18], [42, 27], [43, 19], [44, 31], [45, 18], [46, 18], [47, 39], [48, 38], [49, 39], [50, 39], [51, 39], [52, 47], [53, 40], [54, 41], [55, 49], [56, 49], [57, 55], [58, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "getOutputPropertyNoDefault", "code": "  private static String getOutputPropertyNoDefault(String qnameString, Properties props)\n    throws IllegalArgumentException\n  {    \n    String value = (String)props.get(qnameString);\n    \n    return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "switchSerializerIfHTML", "code": "  public static Serializer switchSerializerIfHTML(\n          String ns, String localName, Properties props, Serializer oldSerializer)\n            throws TransformerException\n  {\n    Serializer newSerializer = oldSerializer;\n\n    if (((null == ns) || (ns.length() == 0))\n            && localName.equalsIgnoreCase(\"html\"))\n    {\n      if (null != getOutputPropertyNoDefault(OutputKeys.METHOD, props))\n        return newSerializer;\n\n      Properties prevProperties = props;\n      \n      OutputProperties htmlOutputProperties = new OutputProperties(Method.HTML);\n\n      htmlOutputProperties.copyFrom(prevProperties, true);\n      Properties htmlProperties = htmlOutputProperties.getProperties();\n\n      {\n        if (null != oldSerializer)\n        {\n          Serializer serializer =\n            SerializerFactory.getSerializer(htmlProperties);\n\n          Writer writer = oldSerializer.getWriter();\n\n          if (null != writer)\n            serializer.setWriter(writer);\n          else\n          {\n            OutputStream os = serializer.getOutputStream();\n\n            if (null != os)\n              serializer.setOutputStream(os);\n          }\n          newSerializer = serializer;\n        }\n      }\n    }\n    return newSerializer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [8, 13], [8, 14], [2, 15], [2, 16], [12, 17], [12, 18], [13, 19], [14, 20], [14, 21], [15, 22], [9, 23], [16, 24], [10, 25], [18, 26], [18, 27], [20, 28], [20, 29], [21, 30], [15, 31], [15, 32], [15, 33], [22, 34], [15, 35], [31, 36], [31, 37], [31, 38], [31, 39], [36, 40], [32, 41], [33, 42], [37, 43], [37, 44], [43, 45], [38, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 8], [14, 8], [15, 2], [16, 2], [17, 12], [18, 12], [19, 13], [20, 14], [21, 14], [22, 15], [23, 9], [24, 16], [25, 10], [26, 18], [27, 18], [28, 20], [29, 20], [30, 21], [31, 15], [32, 15], [33, 15], [34, 22], [35, 15], [36, 31], [37, 31], [38, 31], [39, 31], [40, 36], [41, 32], [42, 33], [43, 37], [44, 37], [45, 43], [46, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}], "label": 0}
{"sample_id": "xalan-2.6-7813", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/res/XMLErrorResources_ko.java", "language": "java", "name": "org.apache.xml.res.XMLErrorResources_ko", "code": "public class XMLErrorResources_ko extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 61;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 0;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 4;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Message keys\n   */\n  public static final String ER_FUNCTION_NOT_SUPPORTED = \"ER_FUNCTION_NOT_SUPPORTED\";\n  public static final String ER_CANNOT_OVERWRITE_CAUSE = \"ER_CANNOT_OVERWRITE_CAUSE\";\n  public static final String ER_NO_DEFAULT_IMPL = \"ER_NO_DEFAULT_IMPL\";\n  public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = \"ER_CHUNKEDINTARRAY_NOT_SUPPORTED\";\n  public static final String ER_OFFSET_BIGGER_THAN_SLOT = \"ER_OFFSET_BIGGER_THAN_SLOT\";\n  public static final String ER_COROUTINE_NOT_AVAIL = \"ER_COROUTINE_NOT_AVAIL\";\n  public static final String ER_COROUTINE_CO_EXIT = \"ER_COROUTINE_CO_EXIT\";\n  public static final String ER_COJOINROUTINESET_FAILED = \"ER_COJOINROUTINESET_FAILED\";\n  public static final String ER_COROUTINE_PARAM = \"ER_COROUTINE_PARAM\";\n  public static final String ER_PARSER_DOTERMINATE_ANSWERS = \"ER_PARSER_DOTERMINATE_ANSWERS\";\n  public static final String ER_NO_PARSE_CALL_WHILE_PARSING = \"ER_NO_PARSE_CALL_WHILE_PARSING\";\n  public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = \"ER_ITERATOR_CLONE_NOT_SUPPORTED\";\n  public static final String ER_UNKNOWN_AXIS_TYPE = \"ER_UNKNOWN_AXIS_TYPE\";\n  public static final String ER_AXIS_NOT_SUPPORTED = \"ER_AXIS_NOT_SUPPORTED\";\n  public static final String ER_NO_DTMIDS_AVAIL = \"ER_NO_DTMIDS_AVAIL\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_NODE_NON_NULL = \"ER_NODE_NON_NULL\";\n  public static final String ER_COULD_NOT_RESOLVE_NODE = \"ER_COULD_NOT_RESOLVE_NODE\";\n  public static final String ER_STARTPARSE_WHILE_PARSING = \"ER_STARTPARSE_WHILE_PARSING\";\n  public static final String ER_STARTPARSE_NEEDS_SAXPARSER = \"ER_STARTPARSE_NEEDS_SAXPARSER\";\n  public static final String ER_COULD_NOT_INIT_PARSER = \"ER_COULD_NOT_INIT_PARSER\";\n  public static final String ER_EXCEPTION_CREATING_POOL = \"ER_EXCEPTION_CREATING_POOL\";\n  public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = \"ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE\";\n  public static final String ER_SCHEME_REQUIRED = \"ER_SCHEME_REQUIRED\";\n  public static final String ER_NO_SCHEME_IN_URI = \"ER_NO_SCHEME_IN_URI\";\n  public static final String ER_NO_SCHEME_INURI = \"ER_NO_SCHEME_INURI\";\n  public static final String ER_PATH_INVALID_CHAR = \"ER_PATH_INVALID_CHAR\";\n  public static final String ER_SCHEME_FROM_NULL_STRING = \"ER_SCHEME_FROM_NULL_STRING\";\n  public static final String ER_SCHEME_NOT_CONFORMANT = \"ER_SCHEME_NOT_CONFORMANT\";\n  public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = \"ER_HOST_ADDRESS_NOT_WELLFORMED\";\n  public static final String ER_PORT_WHEN_HOST_NULL = \"ER_PORT_WHEN_HOST_NULL\";\n  public static final String ER_INVALID_PORT = \"ER_INVALID_PORT\";\n  public static final String ER_FRAG_FOR_GENERIC_URI =\"ER_FRAG_FOR_GENERIC_URI\";\n  public static final String ER_FRAG_WHEN_PATH_NULL = \"ER_FRAG_WHEN_PATH_NULL\";\n  public static final String ER_FRAG_INVALID_CHAR = \"ER_FRAG_INVALID_CHAR\";\n  public static final String ER_PARSER_IN_USE = \"ER_PARSER_IN_USE\";\n  public static final String ER_CANNOT_CHANGE_WHILE_PARSING = \"ER_CANNOT_CHANGE_WHILE_PARSING\";\n  public static final String ER_SELF_CAUSATION_NOT_PERMITTED = \"ER_SELF_CAUSATION_NOT_PERMITTED\";\n  public static final String ER_NO_USERINFO_IF_NO_HOST = \"ER_NO_USERINFO_IF_NO_HOST\";\n  public static final String ER_NO_PORT_IF_NO_HOST = \"ER_NO_PORT_IF_NO_HOST\";\n  public static final String ER_NO_QUERY_STRING_IN_PATH = \"ER_NO_QUERY_STRING_IN_PATH\";\n  public static final String ER_NO_FRAGMENT_STRING_IN_PATH = \"ER_NO_FRAGMENT_STRING_IN_PATH\";\n  public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = \"ER_CANNOT_INIT_URI_EMPTY_PARMS\";\n  public static final String ER_METHOD_NOT_SUPPORTED =\"ER_METHOD_NOT_SUPPORTED\";\n  public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = \"ER_INCRSAXSRCFILTER_NOT_RESTARTABLE\";\n  public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = \"ER_XMLRDR_NOT_BEFORE_STARTPARSE\";\n  public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = \"ER_AXIS_TRAVERSER_NOT_SUPPORTED\";\n  public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = \"ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER\";\n  public static final String ER_SYSTEMID_UNKNOWN = \"ER_SYSTEMID_UNKNOWN\";\n  public static final String ER_LOCATION_UNKNOWN = \"ER_LOCATION_UNKNOWN\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = \"ER_CREATEDOCUMENT_NOT_SUPPORTED\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT\";\n  public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = \"ER_CANT_OUTPUT_TEXT_BEFORE_DOC\";\n  public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = \"ER_CANT_HAVE_MORE_THAN_ONE_ROOT\";\n  public static final String ER_ARG_LOCALNAME_NULL = \"ER_ARG_LOCALNAME_NULL\";\n  public static final String ER_ARG_LOCALNAME_INVALID = \"ER_ARG_LOCALNAME_INVALID\";\n  public static final String ER_ARG_PREFIX_INVALID = \"ER_ARG_PREFIX_INVALID\";\n\n  public static final String ER_RESOURCE_COULD_NOT_FIND = \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD = \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_INVALID_UTF16_SURROGATE = \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_NAMESPACE_PREFIX = \"ER_NAMESPACE_PREFIX\";\n  public static final String ER_STRAY_ATTRIBUTE = \"ER_STRAY_ATTIRBUTE\";\n  public static final String ER_STRAY_NAMESPACE = \"ER_STRAY_NAMESPACE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE = \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = \"ER_COULD_NOT_LOAD_METHOD_PROPERTY\";\n  public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = \"ER_SERIALIZER_NOT_CONTENTHANDLER\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = \"ER_ILLEGAL_ATTRIBUTE_POSITION\";\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /** The lookup table for error messages.   */\n  public static final Object[][] contents = {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"\\ud568\\uc218\\uac00 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"\\uc6d0\\uc778\\uc744 \\uacb9\\uccd0\\uc4f8 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"\\uae30\\ubcf8 \\uad6c\\ud604\\uc774 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. \"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"ChunkedIntArray({0})\\uac00 \\ud604\\uc7ac \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"\\uc624\\ud504\\uc14b\\uc774 \\uc2ac\\ub86f\\ubcf4\\ub2e4 \\ud07d\\ub2c8\\ub2e4.\"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"Coroutine\\uc744 \\uc0ac\\uc6a9\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4, id={0}\"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager\\uac00 co_exit() \\uc694\\uccad\\uc744 \\ubc1b\\uc558\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"co_joinCoroutineSet()\\uac00 \\uc2e4\\ud328\\ud588\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_COROUTINE_PARAM,\n      \"Coroutine \\ub9e4\\uac1c\\ubcc0\\uc218 \\uc624\\ub958({0})\"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\nUNEXPECTED: \\uad6c\\ubd84 \\ubd84\\uc11d\\uae30 doTerminate\\uac00 {0}\\uc5d0 \\uc751\\ub2f5\\ud569\\ub2c8\\ub2e4.\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"\\uad6c\\ubb38 \\ubd84\\uc11d \\uc911\\uc5d0\\ub294 parse\\ub97c \\ud638\\ucd9c\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"\\uc624\\ub958: {0} \\ucd95\\uc5d0 \\ub300\\ud574 \\uc720\\ud615\\ud654\\ub41c \\ubc18\\ubcf5\\uae30\\ub97c \\uad6c\\ud604\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"\\uc624\\ub958: {0} \\ucd95\\uc5d0 \\ub300\\ud55c \\ubc18\\ubcf5\\uae30\\ub97c \\uad6c\\ud604\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. \"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"\\ubc18\\ubcf5\\uae30 \\ubcf5\\uc81c\\uac00 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"\\uc54c \\uc218 \\uc5c6\\ub294 axis traversal \\uc720\\ud615: {0}\"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"Axis traverser\\uac00 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"\\uc0ac\\uc6a9 \\uac00\\ub2a5\\ud55c \\ucd94\\uac00 DTM ID\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_NOT_SUPPORTED,\n      \"\\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n    { ER_NODE_NON_NULL,\n      \"getDTMHandleFromNode\\uc758 \\ub178\\ub4dc\\ub294 \\ub110(null) \\uc774\\uc678\\uc758 \\uac12\\uc774\\uc5b4\\uc57c \\ud569\\ub2c8\\ub2e4.\"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"\\ub178\\ub4dc\\ub97c \\ud578\\ub4e4\\ub85c \\ubd84\\uc11d\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"\\uad6c\\ubb38 \\ubd84\\uc11d \\uc911\\uc5d0\\ub294 startParse\\ub97c \\ud638\\ucd9c\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse\\ub294 \\ub110(null)\\uc774 \\uc544\\ub2cc SAXParser\\ub97c \\ud544\\uc694\\ub85c \\ud569\\ub2c8\\ub2e4.\"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"\\uad6c\\ubb38 \\ubd84\\uc11d\\uae30\\ub97c \\ucd08\\uae30\\ud654\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"\\ud480\\uc758 \\uc0c8 \\uc778\\uc2a4\\ud134\\uc2a4 \\uc791\\uc131 \\uc911 \\uc608\\uc678\"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"\\uacbd\\ub85c\\uc5d0 \\uc798\\ubabb\\ub41c \\uc774\\uc2a4\\ucf00\\uc774\\ud504 \\uc21c\\uc11c\\uac00 \\uc788\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_SCHEME_REQUIRED,\n       \"\\uc124\\uacc4\\uac00 \\ud544\\uc694\\ud569\\ub2c8\\ub2e4!\"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"URI\\uc5d0 \\uc124\\uacc4\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n    { ER_NO_SCHEME_INURI,\n       \"URI\\uc5d0 \\uc124\\uacc4\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"\\uacbd\\ub85c\\uc5d0 \\uc798\\ubabb\\ub41c \\ubb38\\uc790\\uac00 \\uc788\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"\\ub110(null) \\ubb38\\uc790\\uc5f4\\uc5d0\\uc11c \\uc124\\uacc4\\ub97c \\uc124\\uc815\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"\\uc124\\uacc4\\uac00 \\uc77c\\uce58\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"\\ud638\\uc2a4\\ud2b8\\uac00 \\uc644\\uc804\\ud55c \\uc8fc\\uc18c\\uac00 \\uc544\\ub2d9\\ub2c8\\ub2e4.\"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"\\ud638\\uc2a4\\ud2b8\\uac00 \\ub110(null)\\uc774\\uba74 \\ud3ec\\ud2b8\\ub97c \\uc124\\uc815\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_INVALID_PORT,\n       \"\\uc798\\ubabb\\ub41c \\ud3ec\\ud2b8 \\ubc88\\ud638\"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"\\uc77c\\ubc18 URI\\uc5d0 \\ub300\\ud574\\uc11c\\ub9cc \\ub2e8\\ud3b8\\uc744 \\uc124\\uc815\\ud560 \\uc218 \\uc788\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"\\uacbd\\ub85c\\uac00 \\ub110(null)\\uc774\\uba74 \\ub2e8\\ud3b8\\uc744 \\uc124\\uc815\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"\\ub2e8\\ud3b8\\uc5d0 \\uc798\\ubabb\\ub41c \\ubb38\\uc790\\uac00 \\uc788\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_PARSER_IN_USE,\n      \"\\uad6c\\ubb38 \\ubd84\\uc11d\\uae30\\uac00 \\uc774\\ubbf8 \\uc0ac\\uc6a9 \\uc911\\uc785\\ub2c8\\ub2e4.\"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"\\uad6c\\ubb38 \\ubd84\\uc11d \\uc911\\uc5d0\\ub294 {0} {1}\\uc744(\\ub97c) \\ubcc0\\uacbd\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"Self-causation\\uc774 \\ud5c8\\uc6a9\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"\\ud638\\uc2a4\\ud2b8\\ub97c \\uc9c0\\uc815\\ud558\\uc9c0 \\uc54a\\uc740 \\uacbd\\uc6b0\\uc5d0\\ub294 Userinfo\\ub97c \\uc9c0\\uc815\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"\\ud638\\uc2a4\\ud2b8\\ub97c \\uc9c0\\uc815\\ud558\\uc9c0 \\uc54a\\uc740 \\uacbd\\uc6b0\\uc5d0\\ub294 \\ud3ec\\ud2b8\\ub97c \\uc9c0\\uc815\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"\\uacbd\\ub85c \\ubc0f \\uc870\\ud68c \\ubb38\\uc790\\uc5f4\\uc5d0 \\uc870\\ud68c \\ubb38\\uc790\\uc5f4\\uc744 \\uc9c0\\uc815\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"\\uacbd\\ub85c \\ubc0f \\ub2e8\\ud3b8 \\ub458 \\ub2e4\\uc5d0 \\ub2e8\\ud3b8\\uc744 \\uc9c0\\uc815\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"\\ube48 \\ub9e4\\uac1c\\ubcc0\\uc218\\ub85c URI\\ub97c \\ucd08\\uae30\\ud654\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"\\uc544\\uc9c1 \\uba54\\uc18c\\ub4dc\\uac00 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc558\\uc2b5\\ub2c8\\ub2e4. \"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"\\ud604\\uc7ac IncrementalSAXSource_Filter\\ub97c \\ub2e4\\uc2dc \\uc2dc\\uc791\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"startParse \\uc694\\uccad \\uc804\\uc5d0 XMLReader\\ub97c \\uc2dc\\uc791\\ud588\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"Axis traverser\\uac00 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"\\ub110(null) PrintWriter\\ub85c ListingErrorHandler\\ub97c \\uc791\\uc131\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"SystemId\\ub97c \\uc54c \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"\\uc624\\ub958\\uc758 \\uc704\\uce58\\ub97c \\uc54c \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"\\uc811\\ub450\\ubd80\\ub294 \\uc774\\ub984 \\uacf5\\uac04\\uc73c\\ub85c \\ubd84\\uc11d\\ub418\\uc5b4\\uc57c \\ud569\\ub2c8\\ub2e4: {0}\"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"XPathContext\\uc5d0\\uc11c createDocument()\\uac00 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"\\ud558\\uc704 \\uc18d\\uc131\\uc5d0 \\uc18c\\uc720\\uc790 \\ubb38\\uc11c\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"\\ud558\\uc704 \\uc18d\\uc131\\uc5d0 \\uc18c\\uc720\\uc790 \\ubb38\\uc11c \\uc694\\uc18c\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"\\uacbd\\uace0: \\ubb38\\uc11c \\uc694\\uc18c \\uc55e\\uc5d0 \\ud14d\\uc2a4\\ud2b8\\ub97c \\ucd9c\\ub825\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4! \\ubb34\\uc2dc \\uc911...\"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"DOM\\uc5d0 \\ub458 \\uc774\\uc0c1\\uc758 \\ub8e8\\ud2b8\\uac00 \\uc788\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"'localName' \\uc778\\uc218\\uac00 \\ub110(null)\\uc785\\ub2c8\\ub2e4.\"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"QNAME\\uc758 \\ub85c\\uceec \\uc774\\ub984\\uc740 \\uc62c\\ubc14\\ub978 NCName\\uc774\\uc5b4\\uc57c \\ud569\\ub2c8\\ub2e4.\"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"QNAME\\uc758 \\uc811\\ub450\\ubd80\\ub294 \\uc62c\\ubc14\\ub978 NCName\\uc774\\uc5b4\\uc57c \\ud569\\ub2c8\\ub2e4.\"},\n\n    { \"BAD_CODE\", \"createMessage\\uc5d0 \\ub300\\ud55c \\ub9e4\\uac1c\\ubcc0\\uc218\\uac00 \\ubc94\\uc704\\ub97c \\ubc97\\uc5b4\\ub0a9\\ub2c8\\ub2e4.\"},\n    { \"FORMAT_FAILED\", \"messageFormat \\ud638\\ucd9c \\uc911 \\uc608\\uc678 \\ubc1c\\uc0dd\"},\n    { \"line\", \"\\ud589 #\"},\n    { \"column\",\"\\uc5f4 #\"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"''{0}'' \\uc9c1\\ub82c\\ud654 \\ud504\\ub85c\\uadf8\\ub7a8 \\ud074\\ub798\\uc2a4\\uac00 org.xml.sax.ContentHandler\\ub97c \\uad6c\\ud604\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"[ {0} ] \\uc790\\uc6d0\\uc744 \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"[ {0} ] \\uc790\\uc6d0\\uc774 {1} \\n {2} \\t {3}\\uc744(\\ub97c) \\ub85c\\ub4dc\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. \" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"\\ubc84\\ud37c \\ud06c\\uae30 <=0\" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"\\uc798\\ubabb\\ub41c UTF-16 \\ub300\\ub9ac\\uc790(surrogate)\\uac00 \\ubc1c\\uacac\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4: {0} ?\" },\n\n    {ER_OIERROR,\n      \"IO \\uc624\\ub958\" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"\\ud558\\uc704 \\ub178\\ub4dc\\uac00 \\uc0dd\\uc131\\ub41c \\uc774\\ud6c4 \\ub610\\ub294 \\uc694\\uc18c\\uac00 \\uc791\\uc131\\ub418\\uae30 \\uc774\\uc804\\uc5d0 {0} \\uc18d\\uc131\\uc744 \\ucd94\\uac00\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. \\uc18d\\uc131\\uc774 \\ubb34\\uc2dc\\ub429\\ub2c8\\ub2e4.\"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"''{0}'' \\uc811\\ub450\\ubd80\\uc5d0 \\ub300\\ud55c \\uc774\\ub984 \\uacf5\\uac04\\uc774 \\uc120\\uc5b8\\ub418\\uc9c0 \\uc54a\\uc558\\uc2b5\\ub2c8\\ub2e4.\" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"''{0}'' \\uc18d\\uc131\\uc774 \\uc694\\uc18c\\uc758 \\uc678\\ubd80\\uc5d0 \\uc788\\uc2b5\\ub2c8\\ub2e4.\" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"''{0}''=''{1}'' \\uc774\\ub984 \\uacf5\\uac04 \\uc120\\uc5b8\\uc774 \\uc694\\uc18c\\uc758 \\uc678\\ubd80\\uc5d0 \\uc788\\uc2b5\\ub2c8\\ub2e4.\" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"''{0}''(CLASSPATH \\ud655\\uc778)\\uc744(\\ub97c) \\ub85c\\ub4dc\\ud560 \\uc218 \\uc5c6\\uc73c\\ubbc0\\ub85c, \\ud604\\uc7ac \\uae30\\ubcf8\\uac12\\ub9cc\\uc744 \\uc0ac\\uc6a9 \\uc911\\uc785\\ub2c8\\ub2e4.\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"''{1}''\\ucd9c\\ub825 \\uba54\\uc18c\\ub4dc(CLASSPATH \\ud655\\uc778)\\uc5d0 \\ub300\\ud55c ''{0}'' \\ud2b9\\uc131 \\ud30c\\uc77c\\uc744 \\ub85c\\ub4dc\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\" }\n\n\n  };\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"ko\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"ko\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "poi-3.0-6155", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/poifs/property/Property.java", "language": "java", "name": "org.apache.poi.poifs.property.Property", "code": "public abstract class Property\n    implements Child, POIFSViewable\n{\n    static final private byte   _default_fill             = ( byte ) 0x00;\n    static final private int    _name_size_offset         = 0x40;\n    static final private int    _max_name_length          =\n        (_name_size_offset / LittleEndianConsts.SHORT_SIZE) - 1;\n    static final protected int  _NO_INDEX                 = -1;\n\n    static final private int    _node_color_offset        = 0x43;\n    static final private int    _previous_property_offset = 0x44;\n    static final private int    _next_property_offset     = 0x48;\n    static final private int    _child_property_offset    = 0x4C;\n    static final private int    _storage_clsid_offset     = 0x50;\n    static final private int    _user_flags_offset        = 0x60;\n    static final private int    _seconds_1_offset         = 0x64;\n    static final private int    _days_1_offset            = 0x68;\n    static final private int    _seconds_2_offset         = 0x6C;\n    static final private int    _days_2_offset            = 0x70;\n    static final private int    _start_block_offset       = 0x74;\n    static final private int    _size_offset              = 0x78;\n\n    static final protected byte _NODE_BLACK               = 1;\n    static final protected byte _NODE_RED                 = 0;\n\n    static final private int    _big_block_minimum_bytes  = 4096;\n    private String              _name;\n    private ShortField          _name_size;\n    private ByteField           _property_type;\n    private ByteField           _node_color;\n    private IntegerField        _previous_property;\n    private IntegerField        _next_property;\n    private IntegerField        _child_property;\n    private ClassID             _storage_clsid;\n    private IntegerField        _user_flags;\n    private IntegerField        _seconds_1;\n    private IntegerField        _days_1;\n    private IntegerField        _seconds_2;\n    private IntegerField        _days_2;\n    private IntegerField        _start_block;\n    private IntegerField        _size;\n    private byte[]              _raw_data;\n    private int                 _index;\n    private Child               _next_child;\n    private Child               _previous_child;\n\n    /**\n     * Default constructor\n     */\n\n    protected Property()\n    {\n        _raw_data = new byte[ POIFSConstants.PROPERTY_SIZE ];\n        Arrays.fill(_raw_data, _default_fill);\n        _name_size         = new ShortField(_name_size_offset);\n        _property_type     =\n            new ByteField(PropertyConstants.PROPERTY_TYPE_OFFSET);\n        _node_color        = new ByteField(_node_color_offset);\n        _previous_property = new IntegerField(_previous_property_offset,\n                                              _NO_INDEX, _raw_data);\n        _next_property     = new IntegerField(_next_property_offset,\n                                              _NO_INDEX, _raw_data);\n        _child_property    = new IntegerField(_child_property_offset,\n                                              _NO_INDEX, _raw_data);\n        _storage_clsid     = new ClassID(_raw_data,_storage_clsid_offset);\n        _user_flags        = new IntegerField(_user_flags_offset, 0, _raw_data);\n        _seconds_1         = new IntegerField(_seconds_1_offset, 0,\n                                              _raw_data);\n        _days_1            = new IntegerField(_days_1_offset, 0, _raw_data);\n        _seconds_2         = new IntegerField(_seconds_2_offset, 0,\n                                              _raw_data);\n        _days_2            = new IntegerField(_days_2_offset, 0, _raw_data);\n        _start_block       = new IntegerField(_start_block_offset);\n        _size              = new IntegerField(_size_offset, 0, _raw_data);\n        _index             = _NO_INDEX;\n        setName(\"\");\n        setNextChild(null);\n        setPreviousChild(null);\n    }\n\n    /**\n     * Constructor from byte data\n     *\n     * @param index index number\n     * @param array byte data\n     * @param offset offset into byte data\n     */\n\n    protected Property(final int index, final byte [] array, final int offset)\n    {\n        _raw_data = new byte[ POIFSConstants.PROPERTY_SIZE ];\n        System.arraycopy(array, offset, _raw_data, 0,\n                         POIFSConstants.PROPERTY_SIZE);\n        _name_size         = new ShortField(_name_size_offset, _raw_data);\n        _property_type     =\n            new ByteField(PropertyConstants.PROPERTY_TYPE_OFFSET, _raw_data);\n        _node_color        = new ByteField(_node_color_offset, _raw_data);\n        _previous_property = new IntegerField(_previous_property_offset,\n                                              _raw_data);\n        _next_property     = new IntegerField(_next_property_offset,\n                                              _raw_data);\n        _child_property    = new IntegerField(_child_property_offset,\n                                              _raw_data);\n        _storage_clsid     = new ClassID(_raw_data,_storage_clsid_offset);\n        _user_flags        = new IntegerField(_user_flags_offset, 0, _raw_data);\n        _seconds_1         = new IntegerField(_seconds_1_offset, _raw_data);\n        _days_1            = new IntegerField(_days_1_offset, _raw_data);\n        _seconds_2         = new IntegerField(_seconds_2_offset, _raw_data);\n        _days_2            = new IntegerField(_days_2_offset, _raw_data);\n        _start_block       = new IntegerField(_start_block_offset, _raw_data);\n        _size              = new IntegerField(_size_offset, _raw_data);\n        _index             = index;\n        int name_length = (_name_size.get() / LittleEndianConsts.SHORT_SIZE)\n                          - 1;\n\n        if (name_length < 1)\n        {\n            _name = \"\";\n        }\n        else\n        {\n            char[] char_array  = new char[ name_length ];\n            int    name_offset = 0;\n\n            for (int j = 0; j < name_length; j++)\n            {\n                char_array[ j ] = ( char ) new ShortField(name_offset,\n                                                          _raw_data).get();\n                name_offset     += LittleEndianConsts.SHORT_SIZE;\n            }\n            _name = new String(char_array, 0, name_length);\n        }\n        _next_child     = null;\n        _previous_child = null;\n    }\n\n    /**\n     * Write the raw data to an OutputStream.\n     *\n     * @param stream the OutputStream to which the data should be\n     *               written.\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream.\n     */\n\n    public void writeData(final OutputStream stream)\n        throws IOException\n    {\n        stream.write(_raw_data);\n    }\n\n    /**\n     * Set the start block for the document referred to by this\n     * Property.\n     *\n     * @param startBlock the start block index\n     */\n\n    public void setStartBlock(final int startBlock)\n    {\n        _start_block.set(startBlock, _raw_data);\n    }\n\n    /**\n     * @return the start block\n     */\n\n    public int getStartBlock()\n    {\n        return _start_block.get();\n    }\n\n    /**\n     * find out the document size\n     *\n     * @return size in bytes\n     */\n\n    public int getSize()\n    {\n        return _size.get();\n    }\n\n    /**\n     * Based on the currently defined size, should this property use\n     * small blocks?\n     *\n     * @return true if the size is less than _big_block_minimum_bytes\n     */\n\n    public boolean shouldUseSmallBlocks()\n    {\n        return Property.isSmall(_size.get());\n    }\n\n    /**\n     * does the length indicate a small document?\n     *\n     * @param length length in bytes\n     *\n     * @return true if the length is less than\n     *         _big_block_minimum_bytes\n     */\n\n    public static boolean isSmall(final int length)\n    {\n        return length < _big_block_minimum_bytes;\n    }\n\n    /**\n     * Get the name of this property\n     *\n     * @return property name as String\n     */\n\n    public String getName()\n    {\n        return _name;\n    }\n\n    /**\n     * @return true if a directory type Property\n     */\n\n    abstract public boolean isDirectory();\n\n    /**\n     * Sets the storage clsid, which is the Class ID of a COM object which\n     *   reads and writes this stream\n     * @return storage Class ID for this property stream\n     */\n    public ClassID getStorageClsid()\n    {\n        return _storage_clsid;\n    }\n\n    /**\n     * Set the name; silently truncates the name if it's too long.\n     *\n     * @param name the new name\n     */\n    protected final void setName(final String name)\n    {\n        char[] char_array = name.toCharArray();\n        int    limit      = Math.min(char_array.length, _max_name_length);\n\n        _name = new String(char_array, 0, limit);\n        short offset = 0;\n        int   j      = 0;\n\n        for (; j < limit; j++)\n        {\n            new ShortField(offset, ( short ) char_array[ j ], _raw_data);\n            offset += LittleEndianConsts.SHORT_SIZE;\n        }\n        for (; j < _max_name_length + 1; j++)\n        {\n            new ShortField(offset, ( short ) 0, _raw_data);\n            offset += LittleEndianConsts.SHORT_SIZE;\n        }\n\n        _name_size\n            .set(( short ) ((limit + 1)\n                            * LittleEndianConsts.SHORT_SIZE), _raw_data);\n    }\n\n    /**\n     * Sets the storage class ID for this property stream. This is the Class ID\n     *   of the COM object which can read and write this property stream\n     * @param clsidStorage Storage Class ID\n     */\n    public void setStorageClsid( ClassID clsidStorage)\n    {\n        _storage_clsid = clsidStorage;\n        if( clsidStorage == null) {\n            Arrays.fill( _raw_data, _storage_clsid_offset, _storage_clsid_offset + ClassID.LENGTH, (byte) 0);\n        } else {\n            clsidStorage.write( _raw_data, _storage_clsid_offset);\n        }\n    }\n    /**\n     * Set the property type. Makes no attempt to validate the value.\n     *\n     * @param propertyType the property type (root, file, directory)\n     */\n\n    protected void setPropertyType(final byte propertyType)\n    {\n        _property_type.set(propertyType, _raw_data);\n    }\n\n    /**\n     * Set the node color.\n     *\n     * @param nodeColor the node color (red or black)\n     */\n\n    protected void setNodeColor(final byte nodeColor)\n    {\n        _node_color.set(nodeColor, _raw_data);\n    }\n\n    /**\n     * Set the child property.\n     *\n     * @param child the child property's index in the Property Table\n     */\n\n    protected void setChildProperty(final int child)\n    {\n        _child_property.set(child, _raw_data);\n    }\n\n    /**\n     * Get the child property (its index in the Property Table)\n     *\n     * @return child property index\n     */\n\n    protected int getChildIndex()\n    {\n        return _child_property.get();\n    }\n\n    /**\n     * Set the size of the document associated with this Property\n     *\n     * @param size the size of the document, in bytes\n     */\n\n    protected void setSize(final int size)\n    {\n        _size.set(size, _raw_data);\n    }\n\n    /**\n     * Set the index for this Property\n     *\n     * @param index this Property's index within its containing\n     *              Property Table\n     */\n\n    protected void setIndex(final int index)\n    {\n        _index = index;\n    }\n\n    /**\n     * get the index for this Property\n     *\n     * @return the index of this Property within its Property Table\n     */\n\n    protected int getIndex()\n    {\n        return _index;\n    }\n\n    /**\n     * Perform whatever activities need to be performed prior to\n     * writing\n     */\n\n    abstract protected void preWrite();\n\n    /**\n     * get the next sibling\n     *\n     * @return index of next sibling\n     */\n\n    int getNextChildIndex()\n    {\n        return _next_property.get();\n    }\n\n    /**\n     * get the previous sibling\n     *\n     * @return index of previous sibling\n     */\n\n    int getPreviousChildIndex()\n    {\n        return _previous_property.get();\n    }\n\n    /**\n     * determine whether the specified index is valid\n     *\n     * @param index value to be checked\n     *\n     * @return true if the index is valid\n     */\n\n    static boolean isValidIndex(int index)\n    {\n        return index != _NO_INDEX;\n    }\n\n    /* ********** START implementation of Child ********** */\n\n    /**\n     * Get the next Child, if any\n     *\n     * @return the next Child; may return null\n     */\n\n    public Child getNextChild()\n    {\n        return _next_child;\n    }\n\n    /**\n     * Get the previous Child, if any\n     *\n     * @return the previous Child; may return null\n     */\n\n    public Child getPreviousChild()\n    {\n        return _previous_child;\n    }\n\n    /**\n     * Set the next Child\n     *\n     * @param child the new 'next' child; may be null, which has the\n     *              effect of saying there is no 'next' child\n     */\n\n    public void setNextChild(final Child child)\n    {\n        _next_child = child;\n        _next_property.set((child == null) ? _NO_INDEX\n                                           : (( Property ) child)\n                                               .getIndex(), _raw_data);\n    }\n\n    /**\n     * Set the previous Child\n     *\n     * @param child the new 'previous' child; may be null, which has\n     *              the effect of saying there is no 'previous' child\n     */\n\n    public void setPreviousChild(final Child child)\n    {\n        _previous_child = child;\n        _previous_property.set((child == null) ? _NO_INDEX\n                                               : (( Property ) child)\n                                                   .getIndex(), _raw_data);\n    }\n\n    /* **********  END  implementation of Child ********** */\n    /* ********** START begin implementation of POIFSViewable ********** */\n\n    /**\n     * Get an array of objects, some of which may implement\n     * POIFSViewable\n     *\n     * @return an array of Object; may not be null, but may be empty\n     */\n\n    public Object [] getViewableArray()\n    {\n        Object[] results = new Object[ 5 ];\n\n        results[ 0 ] = \"Name          = \\\"\" + getName() + \"\\\"\";\n        results[ 1 ] = \"Property Type = \" + _property_type.get();\n        results[ 2 ] = \"Node Color    = \" + _node_color.get();\n        long time = _days_1.get();\n\n        time         <<= 32;\n        time         += (( long ) _seconds_1.get()) & 0x0000FFFFL;\n        results[ 3 ] = \"Time 1        = \" + time;\n        time         = _days_2.get();\n        time         <<= 32;\n        time         += (( long ) _seconds_2.get()) & 0x0000FFFFL;\n        results[ 4 ] = \"Time 2        = \" + time;\n        return results;\n    }\n\n    /**\n     * Get an Iterator of objects, some of which may implement\n     * POIFSViewable\n     *\n     * @return an Iterator; may not be null, but may have an empty\n     * back end store\n     */\n\n    public Iterator getViewableIterator()\n    {\n        return Collections.EMPTY_LIST.iterator();\n    }\n\n    /**\n     * Give viewers a hint as to whether to call getViewableArray or\n     * getViewableIterator\n     *\n     * @return true if a viewer should call getViewableArray, false if\n     *         a viewer should call getViewableIterator\n     */\n\n    public boolean preferArray()\n    {\n        return true;\n    }\n\n    /**\n     * Provides a short description of the object, to be used when a\n     * POIFSViewable object has not provided its contents.\n     *\n     * @return short description\n     */\n\n    public String getShortDescription()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"Property: \\\"\").append(getName()).append(\"\\\"\");\n        return buffer.toString();", "functions": [{"function_name": "writeData", "code": "    public void writeData(final OutputStream stream)\n        throws IOException\n    {\n        stream.write(_raw_data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStartBlock", "code": "    public void setStartBlock(final int startBlock)\n    {\n        _start_block.set(startBlock, _raw_data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStartBlock", "code": "    public int getStartBlock()\n    {\n        return _start_block.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return _size.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "shouldUseSmallBlocks", "code": "    public boolean shouldUseSmallBlocks()\n    {\n        return Property.isSmall(_size.get());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isSmall", "code": "    public static boolean isSmall(final int length)\n    {\n        return length < _big_block_minimum_bytes;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getName", "code": "    public String getName()\n    {\n        return _name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isDirectory", "code": "    abstract public boolean isDirectory();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getStorageClsid", "code": "    public ClassID getStorageClsid()\n    {\n        return _storage_clsid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    protected final void setName(final String name)\n    {\n        char[] char_array = name.toCharArray();\n        int    limit      = Math.min(char_array.length, _max_name_length);\n\n        _name = new String(char_array, 0, limit);\n        short offset = 0;\n        int   j      = 0;\n\n        for (; j < limit; j++)\n        {\n            new ShortField(offset, ( short ) char_array[ j ], _raw_data);\n            offset += LittleEndianConsts.SHORT_SIZE;\n        }\n        for (; j < _max_name_length + 1; j++)\n        {\n            new ShortField(offset, ( short ) 0, _raw_data);\n            offset += LittleEndianConsts.SHORT_SIZE;\n        }\n\n        _name_size\n            .set(( short ) ((limit + 1)\n                            * LittleEndianConsts.SHORT_SIZE), _raw_data);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [9, 12], [3, 13], [4, 14], [11, 15], [5, 16], [6, 17], [8, 18], [1, 19], [1, 20], [12, 21], [2, 22], [2, 23], [15, 24], [18, 25], [25, 26], [20, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 9], [13, 3], [14, 4], [15, 11], [16, 5], [17, 6], [18, 8], [19, 1], [20, 1], [21, 12], [22, 2], [23, 2], [24, 15], [25, 18], [26, 25], [27, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "setStorageClsid", "code": "    public void setStorageClsid( ClassID clsidStorage)\n    {\n        _storage_clsid = clsidStorage;\n        if( clsidStorage == null) {\n            Arrays.fill( _raw_data, _storage_clsid_offset, _storage_clsid_offset + ClassID.LENGTH, (byte) 0);\n        } else {\n            clsidStorage.write( _raw_data, _storage_clsid_offset);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 6], [1, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 1], [7, 1], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setPropertyType", "code": "    protected void setPropertyType(final byte propertyType)\n    {\n        _property_type.set(propertyType, _raw_data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNodeColor", "code": "    protected void setNodeColor(final byte nodeColor)\n    {\n        _node_color.set(nodeColor, _raw_data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setChildProperty", "code": "    protected void setChildProperty(final int child)\n    {\n        _child_property.set(child, _raw_data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getChildIndex", "code": "    protected int getChildIndex()\n    {\n        return _child_property.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSize", "code": "    protected void setSize(final int size)\n    {\n        _size.set(size, _raw_data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIndex", "code": "    protected void setIndex(final int index)\n    {\n        _index = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIndex", "code": "    protected int getIndex()\n    {\n        return _index;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "preWrite", "code": "    abstract protected void preWrite();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getNextChildIndex", "code": "    int getNextChildIndex()\n    {\n        return _next_property.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPreviousChildIndex", "code": "    int getPreviousChildIndex()\n    {\n        return _previous_property.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isValidIndex", "code": "    static boolean isValidIndex(int index)\n    {\n        return index != _NO_INDEX;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNextChild", "code": "    public Child getNextChild()\n    {\n        return _next_child;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPreviousChild", "code": "    public Child getPreviousChild()\n    {\n        return _previous_child;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNextChild", "code": "    public void setNextChild(final Child child)\n    {\n        _next_child = child;\n        _next_property.set((child == null) ? _NO_INDEX\n                                           : (( Property ) child)\n                                               .getIndex(), _raw_data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setPreviousChild", "code": "    public void setPreviousChild(final Child child)\n    {\n        _previous_child = child;\n        _previous_property.set((child == null) ? _NO_INDEX\n                                               : (( Property ) child)\n                                                   .getIndex(), _raw_data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getViewableArray", "code": "    public Object [] getViewableArray()\n    {\n        Object[] results = new Object[ 5 ];\n\n        results[ 0 ] = \"Name          = \\\"\" + getName() + \"\\\"\";\n        results[ 1 ] = \"Property Type = \" + _property_type.get();\n        results[ 2 ] = \"Node Color    = \" + _node_color.get();\n        long time = _days_1.get();\n\n        time         <<= 32;\n        time         += (( long ) _seconds_1.get()) & 0x0000FFFFL;\n        results[ 3 ] = \"Time 1        = \" + time;\n        time         = _days_2.get();\n        time         <<= 32;\n        time         += (( long ) _seconds_2.get()) & 0x0000FFFFL;\n        results[ 4 ] = \"Time 2        = \" + time;\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [4, 14], [5, 15], [6, 16], [7, 17], [8, 18], [9, 19], [10, 20], [2, 21], [11, 22], [12, 23], [13, 24], [14, 25], [15, 26], [18, 27], [19, 28], [22, 29], [22, 30], [23, 31], [23, 32], [24, 33], [24, 34], [3, 35], [4, 36], [15, 37], [8, 38], [19, 39], [11, 40], [12, 41], [34, 42], [34, 43], [13, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 4], [15, 5], [16, 6], [17, 7], [18, 8], [19, 9], [20, 10], [21, 2], [22, 11], [23, 12], [24, 13], [25, 14], [26, 15], [27, 18], [28, 19], [29, 22], [30, 22], [31, 23], [32, 23], [33, 24], [34, 24], [35, 3], [36, 4], [37, 15], [38, 8], [39, 19], [40, 11], [41, 12], [42, 34], [43, 34], [44, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "getViewableIterator", "code": "    public Iterator getViewableIterator()\n    {\n        return Collections.EMPTY_LIST.iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "preferArray", "code": "    public boolean preferArray()\n    {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getShortDescription", "code": "    public String getShortDescription()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"Property: \\\"\").append(getName()).append(\"\\\"\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [4, 6], [4, 7], [2, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [6, 4], [7, 4], [8, 2], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "Property", "code": "    protected Property()\n    {\n        _raw_data = new byte[ POIFSConstants.PROPERTY_SIZE ];\n        Arrays.fill(_raw_data, _default_fill);\n        _name_size         = new ShortField(_name_size_offset);\n        _property_type     =\n            new ByteField(PropertyConstants.PROPERTY_TYPE_OFFSET);\n        _node_color        = new ByteField(_node_color_offset);\n        _previous_property = new IntegerField(_previous_property_offset,\n                                              _NO_INDEX, _raw_data);\n        _next_property     = new IntegerField(_next_property_offset,\n                                              _NO_INDEX, _raw_data);\n        _child_property    = new IntegerField(_child_property_offset,\n                                              _NO_INDEX, _raw_data);\n        _storage_clsid     = new ClassID(_raw_data,_storage_clsid_offset);\n        _user_flags        = new IntegerField(_user_flags_offset, 0, _raw_data);\n        _seconds_1         = new IntegerField(_seconds_1_offset, 0,\n                                              _raw_data);\n        _days_1            = new IntegerField(_days_1_offset, 0, _raw_data);\n        _seconds_2         = new IntegerField(_seconds_2_offset, 0,\n                                              _raw_data);\n        _days_2            = new IntegerField(_days_2_offset, 0, _raw_data);\n        _start_block       = new IntegerField(_start_block_offset);\n        _size              = new IntegerField(_size_offset, 0, _raw_data);\n        _index             = _NO_INDEX;\n        setName(\"\");\n        setNextChild(null);\n        setPreviousChild(null);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [2, 22], [3, 23], [5, 24], [6, 25], [7, 26], [8, 27], [9, 28], [10, 29], [11, 30], [12, 31], [13, 32], [14, 33], [15, 34], [16, 35], [17, 36], [18, 37], [24, 38], [26, 39], [27, 40], [28, 41], [29, 42], [30, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 2], [23, 3], [24, 5], [25, 6], [26, 7], [27, 8], [28, 9], [29, 10], [30, 11], [31, 12], [32, 13], [33, 14], [34, 15], [35, 16], [36, 17], [37, 18], [38, 24], [39, 26], [40, 27], [41, 28], [42, 29], [43, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "Property", "code": "    protected Property(final int index, final byte [] array, final int offset)\n    {\n        _raw_data = new byte[ POIFSConstants.PROPERTY_SIZE ];\n        System.arraycopy(array, offset, _raw_data, 0,\n                         POIFSConstants.PROPERTY_SIZE);\n        _name_size         = new ShortField(_name_size_offset, _raw_data);\n        _property_type     =\n            new ByteField(PropertyConstants.PROPERTY_TYPE_OFFSET, _raw_data);\n        _node_color        = new ByteField(_node_color_offset, _raw_data);\n        _previous_property = new IntegerField(_previous_property_offset,\n                                              _raw_data);\n        _next_property     = new IntegerField(_next_property_offset,\n                                              _raw_data);\n        _child_property    = new IntegerField(_child_property_offset,\n                                              _raw_data);\n        _storage_clsid     = new ClassID(_raw_data,_storage_clsid_offset);\n        _user_flags        = new IntegerField(_user_flags_offset, 0, _raw_data);\n        _seconds_1         = new IntegerField(_seconds_1_offset, _raw_data);\n        _days_1            = new IntegerField(_days_1_offset, _raw_data);\n        _seconds_2         = new IntegerField(_seconds_2_offset, _raw_data);\n        _days_2            = new IntegerField(_days_2_offset, _raw_data);\n        _start_block       = new IntegerField(_start_block_offset, _raw_data);\n        _size              = new IntegerField(_size_offset, _raw_data);\n        _index             = index;\n        int name_length = (_name_size.get() / LittleEndianConsts.SHORT_SIZE)\n                          - 1;\n\n        if (name_length < 1)\n        {\n            _name = \"\";\n        }\n        else\n        {\n            char[] char_array  = new char[ name_length ];\n            int    name_offset = 0;\n\n            for (int j = 0; j < name_length; j++)\n            {\n                char_array[ j ] = ( char ) new ShortField(name_offset,\n                                                          _raw_data).get();\n                name_offset     += LittleEndianConsts.SHORT_SIZE;\n            }\n            _name = new String(char_array, 0, name_length);\n        }\n        _next_child     = null;\n        _previous_child = null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [6, 26], [7, 27], [1, 28], [1, 29], [1, 30], [8, 31], [2, 32], [10, 33], [11, 34], [12, 35], [13, 36], [14, 37], [15, 38], [16, 39], [17, 40], [18, 41], [19, 42], [20, 43], [21, 44], [22, 45], [23, 46], [24, 47], [1, 48], [28, 49], [1, 50], [32, 51], [32, 52], [39, 53], [48, 54], [29, 55], [50, 56], [52, 57], [54, 58], [28, 59], [28, 60], [28, 61], [60, 62], [62, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 6], [27, 7], [28, 1], [29, 1], [30, 1], [31, 8], [32, 2], [33, 10], [34, 11], [35, 12], [36, 13], [37, 14], [38, 15], [39, 16], [40, 17], [41, 18], [42, 19], [43, 20], [44, 21], [45, 22], [46, 23], [47, 24], [48, 1], [49, 28], [50, 1], [51, 32], [52, 32], [53, 39], [54, 48], [55, 29], [56, 50], [57, 52], [58, 54], [59, 28], [60, 28], [61, 28], [62, 60], [63, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}], "label": 1}
{"sample_id": "poi-2.5-5892", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/ddf/EscherPropertyMetaData.java", "language": "java", "name": "org.apache.poi.ddf.EscherPropertyMetaData", "code": "public class EscherPropertyMetaData\n{\n    public final static byte TYPE_UNKNOWN = (byte) 0;\n    public final static byte TYPE_BOOLEAN = (byte) 1;\n    public final static byte TYPE_RGB = (byte) 2;\n    public final static byte TYPE_SHAPEPATH = (byte) 3;\n    public final static byte TYPE_SIMPLE = (byte)4;\n    public final static byte TYPE_ARRAY = (byte)5;;\n\n    private String description;\n    private byte type;\n\n\n    /**\n     * @param description The description of the escher property.\n     */\n    public EscherPropertyMetaData( String description )\n    {\n        this.description = description;\n    }\n\n    /**\n     *\n     * @param description   The description of the escher property.\n     * @param type          The type of the property.\n     */\n    public EscherPropertyMetaData( String description, byte type )\n    {\n        this.description = description;\n        this.type = type;\n    }\n\n    public String getDescription()\n    {\n        return description;\n    }\n\n    public byte getType()\n    {\n        return type;", "functions": [{"function_name": "getDescription", "code": "    public String getDescription()\n    {\n        return description;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public byte getType()\n    {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "EscherPropertyMetaData", "code": "    public EscherPropertyMetaData( String description )\n    {\n        this.description = description;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "EscherPropertyMetaData", "code": "    public EscherPropertyMetaData( String description, byte type )\n    {\n        this.description = description;\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.6-7375", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/templates/ElemElement.java", "language": "java", "name": "org.apache.xalan.templates.ElemElement", "code": "public class ElemElement extends ElemUse\n{\n\n  /**\n   * The name attribute is interpreted as an attribute value template.\n   * It is an error if the string that results from instantiating the\n   * attribute value template is not a QName.\n   * @serial\n   */\n  protected AVT m_name_avt = null;\n\n  /**\n   * Set the \"name\" attribute.\n   * The name attribute is interpreted as an attribute value template.\n   * It is an error if the string that results from instantiating the\n   * attribute value template is not a QName.\n   *\n   * @param v Name attribute to set for this element\n   */\n  public void setName(AVT v)\n  {\n    m_name_avt = v;\n  }\n\n  /**\n   * Get the \"name\" attribute.\n   * The name attribute is interpreted as an attribute value template.\n   * It is an error if the string that results from instantiating the\n   * attribute value template is not a QName.\n   *\n   * @return Name attribute for this element\n   */\n  public AVT getName()\n  {\n    return m_name_avt;\n  }\n\n  /**\n   * If the namespace attribute is present, then it also is interpreted\n   * as an attribute value template. The string that results from\n   * instantiating the attribute value template should be a URI reference.\n   * It is not an error if the string is not a syntactically legal URI reference.\n   * @serial\n   */\n  protected AVT m_namespace_avt = null;\n\n  /**\n   * Set the \"namespace\" attribute.\n   * If the namespace attribute is present, then it also is interpreted\n   * as an attribute value template. The string that results from\n   * instantiating the attribute value template should be a URI reference.\n   * It is not an error if the string is not a syntactically legal URI reference.\n   *\n   * @param v NameSpace attribute to set for this element\n   */\n  public void setNamespace(AVT v)\n  {\n    m_namespace_avt = v;\n  }\n\n  /**\n   * Get the \"namespace\" attribute.\n   * If the namespace attribute is present, then it also is interpreted\n   * as an attribute value template. The string that results from\n   * instantiating the attribute value template should be a URI reference.\n   * It is not an error if the string is not a syntactically legal URI reference.\n   *\n   * @return Namespace attribute for this element\n   */\n  public AVT getNamespace()\n  {\n    return m_namespace_avt;\n  }\n  \n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    \n    StylesheetRoot.ComposeState cstate = sroot.getComposeState();\n    java.util.Vector vnames = cstate.getVariableNames();\n    if(null != m_name_avt)\n      m_name_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_namespace_avt)\n      m_namespace_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n  }\n\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_ELEMENT;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return This element's name \n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_ELEMENT_STRING;\n  }\n   \n  /**\n   * Resolve the namespace into a prefix.  Meant to be\n   * overidded by elemAttribute if this class is derived.\n   *\n   * @param rhandler The current result tree handler.\n   * @param prefix The probable prefix if already known.\n   * @param nodeNamespace  The namespace.\n   *\n   * @return The prefix to be used.\n   */\n  protected String resolvePrefix(SerializationHandler rhandler,\n                                 String prefix, String nodeNamespace)\n    throws TransformerException\n  {\n\n    return prefix;\n  }\n    \n  /**\n   * Create an element in the result tree.\n   * The xsl:element element allows an element to be created with a\n   * computed name. The expanded-name of the element to be created\n   * is specified by a required name attribute and an optional namespace\n   * attribute. The content of the xsl:element element is a template\n   * for the attributes and children of the created element.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n       if (TransformerImpl.S_DEBUG)\n         transformer.getTraceManager().fireTraceEvent(this);\n\n \tSerializationHandler rhandler = transformer.getSerializationHandler();\n    XPathContext xctxt = transformer.getXPathContext();\n    int sourceNode = xctxt.getCurrentNode();\n    \n    \n    String nodeName = m_name_avt == null ? null : m_name_avt.evaluate(xctxt, sourceNode, this);\n\n    String prefix = null;\n    String nodeNamespace = \"\";\n\n    if ((nodeName != null) && (!m_name_avt.isSimple()) && (!XMLChar.isValidQName(nodeName)))\n    {\n      transformer.getMsgMgr().warn(\n        this, XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_VALUE,\n        new Object[]{ Constants.ATTRNAME_NAME, nodeName });\n\n      nodeName = null;\n    }\n\n    else if (nodeName != null)\n    {\n      prefix = QName.getPrefixPart(nodeName);\n\n      if (null != m_namespace_avt)\n      {\n        nodeNamespace = m_namespace_avt.evaluate(xctxt, sourceNode, this);\n        if (null == nodeNamespace || \n            (prefix != null && prefix.length()>0 && nodeNamespace.length()== 0) )\n          transformer.getMsgMgr().error(\n              this, XSLTErrorResources.ER_NULL_URI_NAMESPACE);\n        else\n        {\n\n        prefix = resolvePrefix(rhandler, prefix, nodeNamespace);\n        if (null == prefix)\n          prefix = \"\";\n\n        if (prefix.length() > 0)\n          nodeName = (prefix + \":\" + QName.getLocalPart(nodeName));\n        else\n          nodeName = QName.getLocalPart(nodeName);\n        }\n      }\n\n      else    \n      {\n        try\n        {\n          nodeNamespace = getNamespaceForPrefix(prefix);\n\n\n          if ( (null == nodeNamespace) && (prefix.length() == 0) )\n            nodeNamespace = \"\";\n          else if (null == nodeNamespace)\n          {\n            transformer.getMsgMgr().warn(\n              this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX,\n              new Object[]{ prefix });\n\n            nodeName = null;\n          }\n\n        }\n        catch (Exception ex)\n        {\n          transformer.getMsgMgr().warn(\n            this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX,\n            new Object[]{ prefix });\n\n          nodeName = null;\n        }\n      }\n    }\n\n    constructNode(nodeName, prefix, nodeNamespace, transformer);\n\n    if (TransformerImpl.S_DEBUG)\n      transformer.getTraceManager().fireTraceEndEvent(this);\n  }\n  \n  /**\n   * Construct a node in the result tree.  This method is overloaded by \n   * xsl:attribute. At this class level, this method creates an element.\n   * If the node is null, we instantiate only the content of the node in accordance\n   * with section 7.1.2 of the XSLT 1.0 Recommendation.\n   *\n   * @param nodeName The name of the node, which may be <code>null</code>.  If <code>null</code>,\n   *                 only the non-attribute children of this node will be processed.\n   * @param prefix The prefix for the namespace, which may be <code>null</code>.\n   *               If not <code>null</code>, this prefix will be mapped and unmapped.\n   * @param nodeNamespace The namespace of the node, which may be not be <code>null</code>.\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  void constructNode(\n          String nodeName, String prefix, String nodeNamespace, TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    boolean shouldAddAttrs;\n\n    try\n    {\n      SerializationHandler rhandler = transformer.getResultTreeHandler();\n\n      if (null == nodeName)\n      {\n        shouldAddAttrs = false;\n      }\n      else\n      {\n        if (null != prefix)\n        {\n          rhandler.startPrefixMapping(prefix, nodeNamespace, true);\n        }\n\n        rhandler.startElement(nodeNamespace, QName.getLocalPart(nodeName),\n                              nodeName);\n\n        super.execute(transformer);\n\n        shouldAddAttrs = true;\n      }\n\n      transformer.executeChildTemplates(this, shouldAddAttrs);\n\n      if (null != nodeName)\n      {\n        rhandler.endElement(nodeNamespace, QName.getLocalPart(nodeName),\n                            nodeName);\n        if (null != prefix)\n        {\n          rhandler.endPrefixMapping(prefix);\n        }\n      }\n    }\n    catch (SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n  }\n  \n  /**\n   * Call the children visitors.\n   * @param visitor The visitor whose appropriate method will be called.\n   */\n  protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n  {\n  \tif(callAttrs)\n  \t{\n  \t  if(null != m_name_avt)\n  \t\tm_name_avt.callVisitors(visitor);\n  \t\t\n  \t  if(null != m_namespace_avt)\n  \t\tm_namespace_avt.callVisitors(visitor);\n  \t}\n  \t\t\n    super.callChildVisitors(visitor, callAttrs);", "functions": [{"function_name": "setName", "code": "  public void setName(AVT v)\n  {\n    m_name_avt = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "  public AVT getName()\n  {\n    return m_name_avt;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamespace", "code": "  public void setNamespace(AVT v)\n  {\n    m_namespace_avt = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamespace", "code": "  public AVT getNamespace()\n  {\n    return m_namespace_avt;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    \n    StylesheetRoot.ComposeState cstate = sroot.getComposeState();\n    java.util.Vector vnames = cstate.getVariableNames();\n    if(null != m_name_avt)\n      m_name_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_namespace_avt)\n      m_namespace_avt.fixupVariables(vnames, cstate.getGlobalsSize());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [6, 9], [2, 10], [7, 11], [3, 12], [4, 13], [8, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 6], [10, 2], [11, 7], [12, 3], [13, 4], [14, 8], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_ELEMENT;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_ELEMENT_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "resolvePrefix", "code": "  protected String resolvePrefix(SerializationHandler rhandler,\n                                 String prefix, String nodeNamespace)\n    throws TransformerException\n  {\n\n    return prefix;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n       if (TransformerImpl.S_DEBUG)\n         transformer.getTraceManager().fireTraceEvent(this);\n\n \tSerializationHandler rhandler = transformer.getSerializationHandler();\n    XPathContext xctxt = transformer.getXPathContext();\n    int sourceNode = xctxt.getCurrentNode();\n    \n    \n    String nodeName = m_name_avt == null ? null : m_name_avt.evaluate(xctxt, sourceNode, this);\n\n    String prefix = null;\n    String nodeNamespace = \"\";\n\n    if ((nodeName != null) && (!m_name_avt.isSimple()) && (!XMLChar.isValidQName(nodeName)))\n    {\n      transformer.getMsgMgr().warn(\n        this, XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_VALUE,\n        new Object[]{ Constants.ATTRNAME_NAME, nodeName });\n\n      nodeName = null;\n    }\n\n    else if (nodeName != null)\n    {\n      prefix = QName.getPrefixPart(nodeName);\n\n      if (null != m_namespace_avt)\n      {\n        nodeNamespace = m_namespace_avt.evaluate(xctxt, sourceNode, this);\n        if (null == nodeNamespace || \n            (prefix != null && prefix.length()>0 && nodeNamespace.length()== 0) )\n          transformer.getMsgMgr().error(\n              this, XSLTErrorResources.ER_NULL_URI_NAMESPACE);\n        else\n        {\n\n        prefix = resolvePrefix(rhandler, prefix, nodeNamespace);\n        if (null == prefix)\n          prefix = \"\";\n\n        if (prefix.length() > 0)\n          nodeName = (prefix + \":\" + QName.getLocalPart(nodeName));\n        else\n          nodeName = QName.getLocalPart(nodeName);\n        }\n      }\n\n      else    \n      {\n        try\n        {\n          nodeNamespace = getNamespaceForPrefix(prefix);\n\n\n          if ( (null == nodeNamespace) && (prefix.length() == 0) )\n            nodeNamespace = \"\";\n          else if (null == nodeNamespace)\n          {\n            transformer.getMsgMgr().warn(\n              this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX,\n              new Object[]{ prefix });\n\n            nodeName = null;\n          }\n\n        }\n        catch (Exception ex)\n        {\n          transformer.getMsgMgr().warn(\n            this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX,\n            new Object[]{ prefix });\n\n          nodeName = null;\n        }\n      }\n    }\n\n    constructNode(nodeName, prefix, nodeNamespace, transformer);\n\n    if (TransformerImpl.S_DEBUG)\n      transformer.getTraceManager().fireTraceEndEvent(this);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "IF", "LITERAL_ANCHOR", "CALL", "CATCH", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [2, 13], [1, 14], [12, 15], [13, 16], [13, 17], [3, 18], [4, 19], [5, 20], [6, 21], [7, 22], [8, 23], [9, 24], [14, 25], [12, 26], [15, 27], [2, 28], [2, 29], [17, 30], [17, 31], [20, 32], [20, 33], [20, 34], [24, 35], [26, 36], [12, 37], [28, 38], [29, 39], [31, 40], [34, 41], [26, 42], [26, 43], [36, 44], [37, 45], [42, 46], [42, 47], [43, 48], [26, 49], [47, 50], [47, 51], [42, 52], [43, 53], [43, 54], [43, 55], [48, 56], [48, 57], [49, 58], [46, 59], [46, 60], [50, 61], [47, 62], [51, 63], [51, 64], [52, 65], [53, 66], [54, 67], [43, 68], [55, 69], [56, 70], [56, 71], [57, 72], [59, 73], [60, 74], [61, 75], [62, 76], [63, 77], [63, 78], [64, 79], [53, 80], [53, 81], [66, 82], [66, 83], [54, 84], [67, 85], [68, 86], [70, 87], [70, 88], [71, 89], [71, 90], [50, 91], [50, 92], [80, 93], [81, 94], [84, 95], [89, 96], [89, 97], [90, 98], [91, 99], [92, 100], [94, 101], [94, 102], [102, 103], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 2], [14, 1], [15, 12], [16, 13], [17, 13], [18, 3], [19, 4], [20, 5], [21, 6], [22, 7], [23, 8], [24, 9], [25, 14], [26, 12], [27, 15], [28, 2], [29, 2], [30, 17], [31, 17], [32, 20], [33, 20], [34, 20], [35, 24], [36, 26], [37, 12], [38, 28], [39, 29], [40, 31], [41, 34], [42, 26], [43, 26], [44, 36], [45, 37], [46, 42], [47, 42], [48, 43], [49, 26], [50, 47], [51, 47], [52, 42], [53, 43], [54, 43], [55, 43], [56, 48], [57, 48], [58, 49], [59, 46], [60, 46], [61, 50], [62, 47], [63, 51], [64, 51], [65, 52], [66, 53], [67, 54], [68, 43], [69, 55], [70, 56], [71, 56], [72, 57], [73, 59], [74, 60], [75, 61], [76, 62], [77, 63], [78, 63], [79, 64], [80, 53], [81, 53], [82, 66], [83, 66], [84, 54], [85, 67], [86, 68], [87, 70], [88, 70], [89, 71], [90, 71], [91, 50], [92, 50], [93, 80], [94, 81], [95, 84], [96, 89], [97, 89], [98, 90], [99, 91], [100, 92], [101, 94], [102, 94], [103, 102], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103]]}, {"function_name": "constructNode", "code": "  void constructNode(\n          String nodeName, String prefix, String nodeNamespace, TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    boolean shouldAddAttrs;\n\n    try\n    {\n      SerializationHandler rhandler = transformer.getResultTreeHandler();\n\n      if (null == nodeName)\n      {\n        shouldAddAttrs = false;\n      }\n      else\n      {\n        if (null != prefix)\n        {\n          rhandler.startPrefixMapping(prefix, nodeNamespace, true);\n        }\n\n        rhandler.startElement(nodeNamespace, QName.getLocalPart(nodeName),\n                              nodeName);\n\n        super.execute(transformer);\n\n        shouldAddAttrs = true;\n      }\n\n      transformer.executeChildTemplates(this, shouldAddAttrs);\n\n      if (null != nodeName)\n      {\n        rhandler.endElement(nodeNamespace, QName.getLocalPart(nodeName),\n                            nodeName);\n        if (null != prefix)\n        {\n          rhandler.endPrefixMapping(prefix);\n        }\n      }\n    }\n    catch (SAXException se)\n    {\n      throw new TransformerException(se);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "IF", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [8, 12], [1, 13], [9, 14], [11, 15], [8, 16], [12, 17], [9, 18], [14, 19], [10, 20], [16, 21], [8, 22], [9, 23], [9, 24], [18, 25], [9, 26], [21, 27], [22, 28], [23, 29], [24, 30], [25, 31], [26, 32], [16, 33], [18, 34], [34, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 8], [13, 1], [14, 9], [15, 11], [16, 8], [17, 12], [18, 9], [19, 14], [20, 10], [21, 16], [22, 8], [23, 9], [24, 9], [25, 18], [26, 9], [27, 21], [28, 22], [29, 23], [30, 24], [31, 25], [32, 26], [33, 16], [34, 18], [35, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "callChildVisitors", "code": "  protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n  {\n  \tif(callAttrs)\n  \t{\n  \t  if(null != m_name_avt)\n  \t\tm_name_avt.callVisitors(visitor);\n  \t\t\n  \t  if(null != m_namespace_avt)\n  \t\tm_namespace_avt.callVisitors(visitor);\n  \t}\n  \t\t\n    super.callChildVisitors(visitor, callAttrs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [4, 8], [6, 9], [5, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 4], [9, 6], [10, 5], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 1}
{"sample_id": "ivy-2.0-3291", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/conflict/RegexpConflictManager.java", "language": "java", "name": "org.apache.ivy.plugins.conflict.RegexpConflictManager", "code": "public class RegexpConflictManager extends AbstractConflictManager {\n    private Pattern pattern = Pattern.compile(\"(.*)\");\n\n    private boolean mIgnoreNonMatching;\n\n    public RegexpConflictManager() {\n    }\n\n    public void setRegexp(String regexp) {\n        pattern = Pattern.compile(regexp);\n        Matcher matcher = pattern.matcher(\"abcdef\");\n        if (matcher.groupCount() != 1) {\n            String message = \"Pattern does not contain ONE (capturing group): '\" + pattern + \"'\";\n            Message.error(message);\n            throw new IllegalArgumentException(message);\n        }\n    }\n\n    public void setIgnoreNonMatching(boolean ignoreNonMatching) {\n        mIgnoreNonMatching = ignoreNonMatching;\n    }\n\n    public Collection resolveConflicts(IvyNode parent, Collection conflicts) {\n        IvyNode lastNode = null;\n        for (Iterator iter = conflicts.iterator(); iter.hasNext();) {\n            IvyNode node = (IvyNode) iter.next();\n\n            if (lastNode != null && !matchEquals(node, lastNode)) {\n                String msg = lastNode + \":\" + getMatch(lastNode) + \" (needed by \"\n                        + Arrays.asList(lastNode.getAllRealCallers()) + \") conflicts with \" + node\n                        + \":\" + getMatch(node) + \" (needed by \"\n                        + Arrays.asList(node.getAllRealCallers()) + \")\";\n                throw new StrictConflictException(msg);\n            }\n            if (lastNode == null || nodeIsGreater(node, lastNode)) {\n                lastNode = node;\n            }\n        }\n\n        return Collections.singleton(lastNode);\n    }\n\n    private boolean nodeIsGreater(IvyNode node, IvyNode lastNode) {\n        return getMatch(node).compareTo(getMatch(lastNode)) > 0;\n    }\n\n    private boolean matchEquals(IvyNode lastNode, IvyNode node) {\n        return getMatch(lastNode).equals(getMatch(node));\n    }\n\n    private String getMatch(IvyNode node) {\n        String revision = node.getId().getRevision();\n        Matcher matcher = pattern.matcher(revision);\n        if (matcher.matches()) {\n            String match = matcher.group(1);\n            if (match != null) {\n                return match;\n            }\n            warnOrThrow(\"First group of pattern: '\" + pattern + \"' does not match: \" + revision\n                    + \" \" + node);\n        } else {\n            warnOrThrow(\"Pattern: '\" + pattern + \"' does not match: \" + revision + \" \" + node);\n        }\n        return revision;\n    }\n\n    private void warnOrThrow(String message) {\n        if (mIgnoreNonMatching) {\n            Message.warn(message);\n        } else {\n            throw new StrictConflictException(message);", "functions": [{"function_name": "setRegexp", "code": "    public void setRegexp(String regexp) {\n        pattern = Pattern.compile(regexp);\n        Matcher matcher = pattern.matcher(\"abcdef\");\n        if (matcher.groupCount() != 1) {\n            String message = \"Pattern does not contain ONE (capturing group): '\" + pattern + \"'\";\n            Message.error(message);\n            throw new IllegalArgumentException(message);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [4, 8], [4, 9], [2, 10], [5, 11], [6, 12], [1, 13], [10, 14], [7, 15], [15, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 4], [9, 4], [10, 2], [11, 5], [12, 6], [13, 1], [14, 10], [15, 7], [16, 15], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setIgnoreNonMatching", "code": "    public void setIgnoreNonMatching(boolean ignoreNonMatching) {\n        mIgnoreNonMatching = ignoreNonMatching;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "resolveConflicts", "code": "    public Collection resolveConflicts(IvyNode parent, Collection conflicts) {\n        IvyNode lastNode = null;\n        for (Iterator iter = conflicts.iterator(); iter.hasNext();) {\n            IvyNode node = (IvyNode) iter.next();\n\n            if (lastNode != null && !matchEquals(node, lastNode)) {\n                String msg = lastNode + \":\" + getMatch(lastNode) + \" (needed by \"\n                        + Arrays.asList(lastNode.getAllRealCallers()) + \") conflicts with \" + node\n                        + \":\" + getMatch(node) + \" (needed by \"\n                        + Arrays.asList(node.getAllRealCallers()) + \")\";\n                throw new StrictConflictException(msg);\n            }\n            if (lastNode == null || nodeIsGreater(node, lastNode)) {\n                lastNode = node;\n            }\n        }\n\n        return Collections.singleton(lastNode);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [3, 11], [8, 12], [9, 13], [2, 14], [12, 15], [12, 16], [9, 17], [9, 18], [13, 19], [13, 20], [8, 21], [16, 22], [17, 23], [20, 24], [10, 25], [18, 26], [26, 27], [26, 28], [28, 29], [28, 30], [29, 31], [30, 32], [30, 33], [33, 34], [33, 35], [35, 36], [35, 37], [37, 38], [38, 39], [38, 40], [40, 41], [40, 42], [41, 43], [42, 44], [42, 45], [45, 46], [45, 47], [47, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 3], [12, 8], [13, 9], [14, 2], [15, 12], [16, 12], [17, 9], [18, 9], [19, 13], [20, 13], [21, 8], [22, 16], [23, 17], [24, 20], [25, 10], [26, 18], [27, 26], [28, 26], [29, 28], [30, 28], [31, 29], [32, 30], [33, 30], [34, 33], [35, 33], [36, 35], [37, 35], [38, 37], [39, 38], [40, 38], [41, 40], [42, 40], [43, 41], [44, 42], [45, 42], [46, 45], [47, 45], [48, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "nodeIsGreater", "code": "    private boolean nodeIsGreater(IvyNode node, IvyNode lastNode) {\n        return getMatch(node).compareTo(getMatch(lastNode)) > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "matchEquals", "code": "    private boolean matchEquals(IvyNode lastNode, IvyNode node) {\n        return getMatch(lastNode).equals(getMatch(node));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getMatch", "code": "    private String getMatch(IvyNode node) {\n        String revision = node.getId().getRevision();\n        Matcher matcher = pattern.matcher(revision);\n        if (matcher.matches()) {\n            String match = matcher.group(1);\n            if (match != null) {\n                return match;\n            }\n            warnOrThrow(\"First group of pattern: '\" + pattern + \"' does not match: \" + revision\n                    + \" \" + node);\n        } else {\n            warnOrThrow(\"Pattern: '\" + pattern + \"' does not match: \" + revision + \" \" + node);\n        }\n        return revision;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [3, 9], [4, 10], [2, 11], [2, 12], [7, 13], [10, 14], [11, 15], [12, 16], [7, 17], [13, 18], [8, 19], [15, 20], [16, 21], [19, 22], [20, 23], [20, 24], [21, 25], [21, 26], [24, 27], [26, 28], [27, 29], [27, 30], [28, 31], [28, 32], [30, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 3], [10, 4], [11, 2], [12, 2], [13, 7], [14, 10], [15, 11], [16, 12], [17, 7], [18, 13], [19, 8], [20, 15], [21, 16], [22, 19], [23, 20], [24, 20], [25, 21], [26, 21], [27, 24], [28, 26], [29, 27], [30, 27], [31, 28], [32, 28], [33, 30], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "warnOrThrow", "code": "    private void warnOrThrow(String message) {\n        if (mIgnoreNonMatching) {\n            Message.warn(message);\n        } else {\n            throw new StrictConflictException(message);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "RegexpConflictManager", "code": "    public RegexpConflictManager() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.7-8442", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/RealExpr.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.RealExpr", "code": "final class RealExpr extends Expression {\n    private double _value;\n\n    public RealExpr(double value) {\n\t_value = value;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn _type = Type.Real;\n    }\n\n    public String toString() {\n\treturn \"real-expr(\" + _value + ')';\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn _type = Type.Real;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"real-expr(\" + _value + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "RealExpr", "code": "    public RealExpr(double value) {\n\t_value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.5-6871", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/StringVector.java", "language": "java", "name": "org.apache.xml.utils.StringVector", "code": "public class StringVector implements java.io.Serializable\n{\n\n  /** @serial Size of blocks to allocate           */\n  protected int m_blocksize;\n\n  /** @serial Array of strings this contains          */\n  protected String m_map[];\n\n  /** @serial Number of strings this contains          */\n  protected int m_firstFree = 0;\n\n  /** @serial Size of the array          */\n  protected int m_mapSize;\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is very small, for small lists.\n   */\n  public StringVector()\n  {\n\n    m_blocksize = 8;\n    m_mapSize = m_blocksize;\n    m_map = new String[m_blocksize];\n  }\n\n  /**\n   * Construct a StringVector, using the given block size.\n   *\n   * @param blocksize Size of the blocks to allocate \n   */\n  public StringVector(int blocksize)\n  {\n\n    m_blocksize = blocksize;\n    m_mapSize = blocksize;\n    m_map = new String[blocksize];\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return Number of strings in the list \n   */\n  public int getLength()\n  {\n    return m_firstFree;\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return Number of strings in the list\n   */\n  public final int size()\n  {\n    return m_firstFree;\n  }\n\n  /**\n   * Append a string onto the vector.\n   *\n   * @param value Sting to add to the vector\n   */\n  public final void addElement(String value)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      String newMap[] = new String[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = value;\n\n    m_firstFree++;\n  }\n\n  /**\n   * Get the nth element.\n   *\n   * @param i Index of string to find\n   *\n   * @return String at given index\n   */\n  public final String elementAt(int i)\n  {\n    return m_map[i];\n  }\n\n  /**\n   * Tell if the table contains the given string.\n   *\n   * @param s String to look for\n   *\n   * @return True if the string is in this table  \n   */\n  public final boolean contains(String s)\n  {\n\n    if (null == s)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equals(s))\n        return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Tell if the table contains the given string. Ignore case.\n   *\n   * @param s String to find\n   *\n   * @return True if the String is in this vector\n   */\n  public final boolean containsIgnoreCase(String s)\n  {\n\n    if (null == s)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equalsIgnoreCase(s))\n        return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Tell if the table contains the given string.\n   *\n   * @param s String to push into the vector\n   */\n  public final void push(String s)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      String newMap[] = new String[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = s;\n\n    m_firstFree++;\n  }\n\n  /**\n   * Pop the tail of this vector.\n   *\n   * @return The String last added to this vector or null not found.\n   * The string is removed from the vector.\n   */\n  public final String pop()\n  {\n\n    if (m_firstFree <= 0)\n      return null;\n\n    m_firstFree--;\n\n    String s = m_map[m_firstFree];\n\n    m_map[m_firstFree] = null;\n\n    return s;\n  }\n\n  /**\n   * Get the string at the tail of this vector without popping.\n   *\n   * @return The string at the tail of this vector.\n   */\n  public final String peek()\n  {\n    return (m_firstFree <= 0) ? null : m_map[m_firstFree - 1];", "functions": [{"function_name": "getLength", "code": "  public int getLength()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "size", "code": "  public final int size()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addElement", "code": "  public final void addElement(String value)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      String newMap[] = new String[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = value;\n\n    m_firstFree++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [6, 10], [8, 11], [8, 12], [8, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 6], [11, 8], [12, 8], [13, 8], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "elementAt", "code": "  public final String elementAt(int i)\n  {\n    return m_map[i];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "contains", "code": "  public final boolean contains(String s)\n  {\n\n    if (null == s)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equals(s))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [2, 9], [7, 10], [8, 11], [9, 12], [2, 13], [12, 14], [9, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 2], [10, 7], [11, 8], [12, 9], [13, 2], [14, 12], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "containsIgnoreCase", "code": "  public final boolean containsIgnoreCase(String s)\n  {\n\n    if (null == s)\n      return false;\n\n    for (int i = 0; i < m_firstFree; i++)\n    {\n      if (m_map[i].equalsIgnoreCase(s))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [2, 9], [7, 10], [8, 11], [9, 12], [2, 13], [12, 14], [9, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 2], [10, 7], [11, 8], [12, 9], [13, 2], [14, 12], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "push", "code": "  public final void push(String s)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      String newMap[] = new String[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = s;\n\n    m_firstFree++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [6, 10], [8, 11], [8, 12], [8, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 6], [11, 8], [12, 8], [13, 8], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "pop", "code": "  public final String pop()\n  {\n\n    if (m_firstFree <= 0)\n      return null;\n\n    m_firstFree--;\n\n    String s = m_map[m_firstFree];\n\n    m_map[m_firstFree] = null;\n\n    return s;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "peek", "code": "  public final String peek()\n  {\n    return (m_firstFree <= 0) ? null : m_map[m_firstFree - 1];", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "StringVector", "code": "  public StringVector()\n  {\n\n    m_blocksize = 8;\n    m_mapSize = m_blocksize;\n    m_map = new String[m_blocksize];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "StringVector", "code": "  public StringVector(int blocksize)\n  {\n\n    m_blocksize = blocksize;\n    m_mapSize = blocksize;\n    m_map = new String[blocksize];", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.7-8170", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/templates/ElemExtensionCall.java", "language": "java", "name": "org.apache.xalan.templates.ElemExtensionCall", "code": "public class ElemExtensionCall extends ElemLiteralResult\n{\n    static final long serialVersionUID = 3171339708500216920L;\n\n  /** The Namespace URI for this extension call element.\n   *  @serial          */\n  String m_extns;\n\n  /** Language used by extension.\n   *  @serial          */\n  String m_lang;\n\n  /** URL pointing to extension.\n   *  @serial          */\n  String m_srcURL;\n\n  /** Source for script.\n   *  @serial          */\n  String m_scriptSrc;\n\n  /** Declaration for Extension element. \n   *  @serial          */\n  ElemExtensionDecl m_decl = null;\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   *@return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_EXTENSIONCALL;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The element's name\n   */\n\n\n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    m_extns = this.getNamespace();   \n    m_decl = getElemExtensionDecl(sroot, m_extns);\n    if (m_decl == null)\n      sroot.getExtensionNamespacesManager().registerExtension(m_extns);\n  }\n \n  /**\n   * Return the ElemExtensionDecl for this extension element \n   *\n   *\n   * @param stylesheet Stylesheet root associated with this extension element\n   * @param namespace Namespace associated with this extension element\n   *\n   * @return the ElemExtensionDecl for this extension element. \n   */\n  private ElemExtensionDecl getElemExtensionDecl(StylesheetRoot stylesheet,\n          String namespace)\n  {\n\n    ElemExtensionDecl decl = null;\n    int n = stylesheet.getGlobalImportCount();\n\n    for (int i = 0; i < n; i++)\n    {\n      Stylesheet imported = stylesheet.getGlobalImport(i);\n\n      for (ElemTemplateElement child = imported.getFirstChildElem();\n              child != null; child = child.getNextSiblingElem())\n      {\n        if (Constants.ELEMNAME_EXTENSIONDECL == child.getXSLToken())\n        {\n          decl = (ElemExtensionDecl) child;\n\n          String prefix = decl.getPrefix();\n          String declNamespace = child.getNamespaceForPrefix(prefix);\n\n          if (namespace.equals(declNamespace))\n          {\n            return decl;\n          }\n        }\n      }\n    }\n\n    return null;\n  }\n  \n  /**\n   * Execute the fallbacks when an extension is not available.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  private void executeFallbacks(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n    for (ElemTemplateElement child = m_firstChild; child != null;\n             child = child.m_nextSibling)\n    {\n      if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK)\n      {\n        try\n        {\n          transformer.pushElemTemplateElement(child);\n          ((ElemFallback) child).executeFallback(transformer);\n        }\n        finally\n        {\n          transformer.popElemTemplateElement();\n        }\n      }\n    }\n\n  }\n  \n  /**\n   * Return true if this extension element has a <xsl:fallback> child element.\n   *\n   * @return true if this extension element has a <xsl:fallback> child element.\n   */\n  private boolean hasFallbackChildren()\n  {\n    for (ElemTemplateElement child = m_firstChild; child != null;\n             child = child.m_nextSibling)\n    {\n      if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK)\n        return true;\n    }\n    \n    return false;\n  }\n\n\n  /**\n   * Execute an extension.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(TransformerImpl transformer)\n            throws TransformerException\n  {\n    if (transformer.getStylesheet().isSecureProcessing())\n      throw new TransformerException(\n        XSLMessages.createMessage(\n          XSLTErrorResources.ER_EXTENSION_ELEMENT_NOT_ALLOWED_IN_SECURE_PROCESSING,\n          new Object[] {getRawName()}));\n          \n    if (transformer.getDebug())\n\t\ttransformer.getTraceManager().fireTraceEvent(this);\n    try\n    {\n      transformer.getResultTreeHandler().flushPending();\n\n      ExtensionsTable etable = transformer.getExtensionsTable();\n      ExtensionHandler nsh = etable.get(m_extns);\n\n      if (null == nsh)\n      {\n        if (hasFallbackChildren())\n        {\n          executeFallbacks(transformer);\n        }\n        else\n        {\n\t  TransformerException te = new TransformerException(XSLMessages.createMessage(\n\t  \tXSLTErrorResources.ER_CALL_TO_EXT_FAILED, new Object[]{getNodeName()}));\n\t  transformer.getErrorListener().fatalError(te);\n        }\n        \n        return;\n      }\n\n      try\n      {\n        nsh.processElement(this.getLocalName(), this, transformer,\n                           getStylesheet(), this);\n      }\n      catch (Exception e)\n      {\n\n\tif (hasFallbackChildren())\n\t  executeFallbacks(transformer);\n\telse\n\t{\n          if(e instanceof TransformerException)\n          {\n            TransformerException te = (TransformerException)e;\n            if(null == te.getLocator())\n              te.setLocator(this);\n            \n            transformer.getErrorListener().fatalError(te);            \n          }\n          else if (e instanceof RuntimeException)\n          {\n            transformer.getErrorListener().fatalError(new TransformerException(e));\n          }\n          else\n          {\n            transformer.getErrorListener().warning(new TransformerException(e));\n          }\n        }\n      }\n    }\n    catch(TransformerException e)\n    {\n      transformer.getErrorListener().fatalError(e);\n    }\n    catch(SAXException se) {\n      throw new TransformerException(se);\n    }\n    if (transformer.getDebug())\n\t\ttransformer.getTraceManager().fireTraceEndEvent(this);\n  }\n\n  /**\n   * Return the value of the attribute interpreted as an Attribute\n   * Value Template (in other words, you can use curly expressions\n   *\n   * @param rawName Raw name of the attribute to get\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @return the value of the attribute\n   *\n   * @throws TransformerException\n   */\n  public String getAttribute(\n          String rawName, org.w3c.dom.Node sourceNode, TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    AVT avt = getLiteralResultAttribute(rawName);\n\n    if ((null != avt) && avt.getRawName().equals(rawName))\n    {\n      XPathContext xctxt = transformer.getXPathContext();\n\n      return avt.evaluate(xctxt, \n            xctxt.getDTMHandleFromNode(sourceNode), \n            this);\n    }\n\n    return null;\n  }\n  \n  /**\n   * Accept a visitor and call the appropriate method \n   * for this class.\n   * \n   * @param visitor The visitor whose appropriate method will be called.\n   * @return true if the children of the object should be visited.\n   */\n  protected boolean accept(XSLTVisitor visitor)\n  {\n  \treturn visitor.visitExtensionElement(this);", "functions": [{"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_EXTENSIONCALL;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    m_extns = this.getNamespace();   \n    m_decl = getElemExtensionDecl(sroot, m_extns);\n    if (m_decl == null)\n      sroot.getExtensionNamespacesManager().registerExtension(m_extns);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [6, 9], [5, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 6], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getElemExtensionDecl", "code": "  private ElemExtensionDecl getElemExtensionDecl(StylesheetRoot stylesheet,\n          String namespace)\n  {\n\n    ElemExtensionDecl decl = null;\n    int n = stylesheet.getGlobalImportCount();\n\n    for (int i = 0; i < n; i++)\n    {\n      Stylesheet imported = stylesheet.getGlobalImport(i);\n\n      for (ElemTemplateElement child = imported.getFirstChildElem();\n              child != null; child = child.getNextSiblingElem())\n      {\n        if (Constants.ELEMNAME_EXTENSIONDECL == child.getXSLToken())\n        {\n          decl = (ElemExtensionDecl) child;\n\n          String prefix = decl.getPrefix();\n          String declNamespace = child.getNamespaceForPrefix(prefix);\n\n          if (namespace.equals(declNamespace))\n          {\n            return decl;\n          }\n        }\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [3, 11], [4, 12], [9, 13], [9, 14], [2, 15], [9, 16], [13, 17], [14, 18], [10, 19], [16, 20], [9, 21], [16, 22], [16, 23], [16, 24], [20, 25], [22, 26], [16, 27], [22, 28], [23, 29], [24, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 3], [12, 4], [13, 9], [14, 9], [15, 2], [16, 9], [17, 13], [18, 14], [19, 10], [20, 16], [21, 9], [22, 16], [23, 16], [24, 16], [25, 20], [26, 22], [27, 16], [28, 22], [29, 23], [30, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "executeFallbacks", "code": "  private void executeFallbacks(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n    for (ElemTemplateElement child = m_firstChild; child != null;\n             child = child.m_nextSibling)\n    {\n      if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK)\n      {\n        try\n        {\n          transformer.pushElemTemplateElement(child);\n          ((ElemFallback) child).executeFallback(transformer);\n        }\n        finally\n        {\n          transformer.popElemTemplateElement();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [7, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 7], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "hasFallbackChildren", "code": "  private boolean hasFallbackChildren()\n  {\n    for (ElemTemplateElement child = m_firstChild; child != null;\n             child = child.m_nextSibling)\n    {\n      if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK)\n        return true;\n    }\n    \n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "execute", "code": "  public void execute(TransformerImpl transformer)\n            throws TransformerException\n  {\n    if (transformer.getStylesheet().isSecureProcessing())\n      throw new TransformerException(\n        XSLMessages.createMessage(\n          XSLTErrorResources.ER_EXTENSION_ELEMENT_NOT_ALLOWED_IN_SECURE_PROCESSING,\n          new Object[] {getRawName()}));\n          \n    if (transformer.getDebug())\n\t\ttransformer.getTraceManager().fireTraceEvent(this);\n    try\n    {\n      transformer.getResultTreeHandler().flushPending();\n\n      ExtensionsTable etable = transformer.getExtensionsTable();\n      ExtensionHandler nsh = etable.get(m_extns);\n\n      if (null == nsh)\n      {\n        if (hasFallbackChildren())\n        {\n          executeFallbacks(transformer);\n        }\n        else\n        {\n\t  TransformerException te = new TransformerException(XSLMessages.createMessage(\n\t  \tXSLTErrorResources.ER_CALL_TO_EXT_FAILED, new Object[]{getNodeName()}));\n\t  transformer.getErrorListener().fatalError(te);\n        }\n        \n        return;\n      }\n\n      try\n      {\n        nsh.processElement(this.getLocalName(), this, transformer,\n                           getStylesheet(), this);\n      }\n      catch (Exception e)\n      {\n\n\tif (hasFallbackChildren())\n\t  executeFallbacks(transformer);\n\telse\n\t{\n          if(e instanceof TransformerException)\n          {\n            TransformerException te = (TransformerException)e;\n            if(null == te.getLocator())\n              te.setLocator(this);\n            \n            transformer.getErrorListener().fatalError(te);            \n          }\n          else if (e instanceof RuntimeException)\n          {\n            transformer.getErrorListener().fatalError(new TransformerException(e));\n          }\n          else\n          {\n            transformer.getErrorListener().warning(new TransformerException(e));\n          }\n        }\n      }\n    }\n    catch(TransformerException e)\n    {\n      transformer.getErrorListener().fatalError(e);\n    }\n    catch(SAXException se) {\n      throw new TransformerException(se);\n    }\n    if (transformer.getDebug())\n\t\ttransformer.getTraceManager().fireTraceEndEvent(this);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "IF", "IF", "PARAM", "CALL", "CATCH", "CATCH", "TRY", "IF", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "CATCH", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "VAR_DECL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [3, 13], [4, 14], [4, 15], [1, 16], [7, 17], [9, 18], [10, 19], [2, 20], [3, 21], [14, 22], [15, 23], [16, 24], [17, 25], [8, 26], [18, 27], [9, 28], [10, 29], [10, 30], [19, 31], [11, 32], [12, 33], [20, 34], [21, 35], [22, 36], [26, 37], [27, 38], [28, 39], [30, 40], [27, 41], [27, 42], [28, 43], [30, 44], [41, 45], [41, 46], [30, 47], [30, 48], [36, 49], [45, 50], [41, 51], [41, 52], [47, 53], [44, 54], [41, 55], [51, 56], [54, 57], [45, 58], [45, 59], [55, 60], [51, 61], [56, 62], [56, 63], [58, 64], [59, 65], [64, 66], [65, 67], [57, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 3], [14, 4], [15, 4], [16, 1], [17, 7], [18, 9], [19, 10], [20, 2], [21, 3], [22, 14], [23, 15], [24, 16], [25, 17], [26, 8], [27, 18], [28, 9], [29, 10], [30, 10], [31, 19], [32, 11], [33, 12], [34, 20], [35, 21], [36, 22], [37, 26], [38, 27], [39, 28], [40, 30], [41, 27], [42, 27], [43, 28], [44, 30], [45, 41], [46, 41], [47, 30], [48, 30], [49, 36], [50, 45], [51, 41], [52, 41], [53, 47], [54, 44], [55, 41], [56, 51], [57, 54], [58, 45], [59, 45], [60, 55], [61, 51], [62, 56], [63, 56], [64, 58], [65, 59], [66, 64], [67, 65], [68, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "getAttribute", "code": "  public String getAttribute(\n          String rawName, org.w3c.dom.Node sourceNode, TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    AVT avt = getLiteralResultAttribute(rawName);\n\n    if ((null != avt) && avt.getRawName().equals(rawName))\n    {\n      XPathContext xctxt = transformer.getXPathContext();\n\n      return avt.evaluate(xctxt, \n            xctxt.getDTMHandleFromNode(sourceNode), \n            this);\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [8, 11], [8, 12], [3, 13], [9, 14], [11, 15], [12, 16], [14, 17], [10, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 8], [12, 8], [13, 3], [14, 9], [15, 11], [16, 12], [17, 14], [18, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "accept", "code": "  protected boolean accept(XSLTVisitor visitor)\n  {\n  \treturn visitor.visitExtensionElement(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "camel-1.0-1449", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/builder/xml/XsltBuilder.java", "language": "java", "name": "org.apache.camel.builder.xml.XsltBuilder", "code": "public class XsltBuilder implements Processor {\n    private Map<String, Object> parameters = new HashMap<String, Object>();\n    private XmlConverter converter = new XmlConverter();\n    private Transformer transformer;\n    private ResultHandler resultHandler = new StringResultHandler();\n    private boolean failOnNullBody = true;\n\n    public XsltBuilder() {\n    }\n\n    public XsltBuilder(Transformer transformer) {\n        this.transformer = transformer;\n    }\n\n    @Override\n    public String toString() {\n        return \"XSLT[\" + transformer + \"]\";\n    }\n\n    public synchronized void process(Exchange exchange) throws Exception {\n        Transformer transformer = getTransformer();\n        if (transformer == null) {\n            throw new IllegalArgumentException(\"No transformer configured!\");\n        }\n        configureTransformer(transformer, exchange);\n        Source source = getSource(exchange);\n        Result result = resultHandler.getResult();\n        transformer.transform(source, result);\n        resultHandler.setBody(exchange.getIn());\n    }\n\n\n    /**\n     * Creates an XSLT processor using the given transformer instance\n     */\n    public static XsltBuilder xslt(Transformer transformer) {\n        return new XsltBuilder(transformer);\n    }\n\n    /**\n     * Creates an XSLT processor using the given XSLT source\n     */\n    public static XsltBuilder xslt(Source xslt) throws TransformerConfigurationException {\n        notNull(xslt, \"xslt\");\n        XsltBuilder answer = new XsltBuilder();\n        answer.setTransformerSource(xslt);\n        return answer;\n    }\n\n    /**\n     * Creates an XSLT processor using the given XSLT source\n     */\n    public static XsltBuilder xslt(File xslt) throws TransformerConfigurationException {\n        notNull(xslt, \"xslt\");\n        return xslt(new StreamSource(xslt));\n    }\n\n    /**\n     * Creates an XSLT processor using the given XSLT source\n     */\n    public static XsltBuilder xslt(URL xslt) throws TransformerConfigurationException, IOException {\n        notNull(xslt, \"xslt\");\n        return xslt(xslt.openStream());\n    }\n\n    /**\n     * Creates an XSLT processor using the given XSLT source\n     */\n    public static XsltBuilder xslt(InputStream xslt) throws TransformerConfigurationException, IOException {\n        notNull(xslt, \"xslt\");\n        return xslt(new StreamSource(xslt));\n    }\n\n    /**\n     * Sets the output as being a byte[]\n     */\n    public XsltBuilder outputBytes() {\n        setResultHandler(new StreamResultHandler());\n        return this;\n    }\n\n    /**\n     * Sets the output as being a String\n     */\n    public XsltBuilder outputString() {\n        setResultHandler(new StringResultHandler());\n        return this;\n    }\n\n    /**\n     * Sets the output as being a DOM\n     */\n    public XsltBuilder outputDOM() {\n        setResultHandler(new DomResultHandler());\n        return this;\n    }\n\n    public XsltBuilder parameter(String name, Object value) {\n        parameters.put(name, value);\n        return this;\n    }\n\n\n    public Map<String, Object> getParameters() {\n        return parameters;\n    }\n\n    public void setParameters(Map<String, Object> parameters) {\n        this.parameters = parameters;\n    }\n\n    public Transformer getTransformer() {\n        return transformer;\n    }\n\n    public void setTransformer(Transformer transformer) {\n        this.transformer = transformer;\n    }\n\n    public boolean isFailOnNullBody() {\n        return failOnNullBody;\n    }\n\n    public void setFailOnNullBody(boolean failOnNullBody) {\n        this.failOnNullBody = failOnNullBody;\n    }\n\n    public ResultHandler getResultHandler() {\n        return resultHandler;\n    }\n\n    public void setResultHandler(ResultHandler resultHandler) {\n        this.resultHandler = resultHandler;\n    }\n\n    public void setTransformerSource(Source source) throws TransformerConfigurationException {\n        setTransformer(converter.getTransformerFactory().newTransformer(source));\n    }\n\n\n    /**\n     * Converts the inbound body to a {@link Source}\n     */\n    protected Source getSource(Exchange exchange) {\n        Message in = exchange.getIn();\n        Source source = in.getBody(Source.class);\n        if (source == null) {\n            if (isFailOnNullBody()) {\n                throw new ExpectedBodyTypeException(exchange, Source.class);\n            }\n            else {\n                try {\n                    source = converter.toSource(converter.createDocument());\n                }\n                catch (ParserConfigurationException e) {\n                    throw new RuntimeTransformException(e);\n                }\n            }\n        }\n        return source;\n    }\n\n    /**\n     * Configures the transformerwith exchange specific parameters\n     */\n    protected void configureTransformer(Transformer transformer, Exchange exchange) {\n        transformer.clearParameters();\n\n        addParameters(transformer, exchange.getProperties());\n        addParameters(transformer, exchange.getIn().getHeaders());\n        addParameters(transformer, getParameters());\n\n        transformer.setParameter(\"exchange\", exchange);\n        transformer.setParameter(\"in\", exchange.getIn());\n        transformer.setParameter(\"out\", exchange.getOut());\n    }\n\n    protected void addParameters(Transformer transformer, Map<String, Object> map) {\n        Set<Map.Entry<String, Object>> propertyEntries = map.entrySet();\n        for (Map.Entry<String, Object> entry : propertyEntries) {\n            transformer.setParameter(entry.getKey(), entry.getValue());", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"XSLT[\" + transformer + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "process", "code": "    public synchronized void process(Exchange exchange) throws Exception {\n        Transformer transformer = getTransformer();\n        if (transformer == null) {\n            throw new IllegalArgumentException(\"No transformer configured!\");\n        }\n        configureTransformer(transformer, exchange);\n        Source source = getSource(exchange);\n        Result result = resultHandler.getResult();\n        transformer.transform(source, result);\n        resultHandler.setBody(exchange.getIn());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [6, 10], [1, 11], [2, 12], [3, 13], [9, 14], [4, 15], [13, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 6], [11, 1], [12, 2], [13, 3], [14, 9], [15, 4], [16, 13], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "xslt", "code": "    public static XsltBuilder xslt(Transformer transformer) {\n        return new XsltBuilder(transformer);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "xslt", "code": "    public static XsltBuilder xslt(Source xslt) throws TransformerConfigurationException {\n        notNull(xslt, \"xslt\");\n        XsltBuilder answer = new XsltBuilder();\n        answer.setTransformerSource(xslt);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "xslt", "code": "    public static XsltBuilder xslt(File xslt) throws TransformerConfigurationException {\n        notNull(xslt, \"xslt\");\n        return xslt(new StreamSource(xslt));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "xslt", "code": "    public static XsltBuilder xslt(URL xslt) throws TransformerConfigurationException, IOException {\n        notNull(xslt, \"xslt\");\n        return xslt(xslt.openStream());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "xslt", "code": "    public static XsltBuilder xslt(InputStream xslt) throws TransformerConfigurationException, IOException {\n        notNull(xslt, \"xslt\");\n        return xslt(new StreamSource(xslt));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "outputBytes", "code": "    public XsltBuilder outputBytes() {\n        setResultHandler(new StreamResultHandler());\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "outputString", "code": "    public XsltBuilder outputString() {\n        setResultHandler(new StringResultHandler());\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "outputDOM", "code": "    public XsltBuilder outputDOM() {\n        setResultHandler(new DomResultHandler());\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "parameter", "code": "    public XsltBuilder parameter(String name, Object value) {\n        parameters.put(name, value);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getParameters", "code": "    public Map<String, Object> getParameters() {\n        return parameters;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParameters", "code": "    public void setParameters(Map<String, Object> parameters) {\n        this.parameters = parameters;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTransformer", "code": "    public Transformer getTransformer() {\n        return transformer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransformer", "code": "    public void setTransformer(Transformer transformer) {\n        this.transformer = transformer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFailOnNullBody", "code": "    public boolean isFailOnNullBody() {\n        return failOnNullBody;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFailOnNullBody", "code": "    public void setFailOnNullBody(boolean failOnNullBody) {\n        this.failOnNullBody = failOnNullBody;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResultHandler", "code": "    public ResultHandler getResultHandler() {\n        return resultHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResultHandler", "code": "    public void setResultHandler(ResultHandler resultHandler) {\n        this.resultHandler = resultHandler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTransformerSource", "code": "    public void setTransformerSource(Source source) throws TransformerConfigurationException {\n        setTransformer(converter.getTransformerFactory().newTransformer(source));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSource", "code": "    protected Source getSource(Exchange exchange) {\n        Message in = exchange.getIn();\n        Source source = in.getBody(Source.class);\n        if (source == null) {\n            if (isFailOnNullBody()) {\n                throw new ExpectedBodyTypeException(exchange, Source.class);\n            }\n            else {\n                try {\n                    source = converter.toSource(converter.createDocument());\n                }\n                catch (ParserConfigurationException e) {\n                    throw new RuntimeTransformException(e);\n                }\n            }\n        }\n        return source;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "TRY", "THROW_RAISE", "CATCH", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [7, 12], [7, 13], [12, 14], [13, 15], [14, 16], [12, 17], [16, 18], [17, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 7], [13, 7], [14, 12], [15, 13], [16, 14], [17, 12], [18, 16], [19, 17], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "configureTransformer", "code": "    protected void configureTransformer(Transformer transformer, Exchange exchange) {\n        transformer.clearParameters();\n\n        addParameters(transformer, exchange.getProperties());\n        addParameters(transformer, exchange.getIn().getHeaders());\n        addParameters(transformer, getParameters());\n\n        transformer.setParameter(\"exchange\", exchange);\n        transformer.setParameter(\"in\", exchange.getIn());\n        transformer.setParameter(\"out\", exchange.getOut());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [3, 11], [4, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 3], [12, 4], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "addParameters", "code": "    protected void addParameters(Transformer transformer, Map<String, Object> map) {\n        Set<Map.Entry<String, Object>> propertyEntries = map.entrySet();\n        for (Map.Entry<String, Object> entry : propertyEntries) {\n            transformer.setParameter(entry.getKey(), entry.getValue());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "XsltBuilder", "code": "    public XsltBuilder() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "XsltBuilder", "code": "    public XsltBuilder(Transformer transformer) {\n        this.transformer = transformer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.3-4615", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/classpath/BshClassLoader.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.classpath.BshClassLoader", "code": "public class BshClassLoader extends URLClassLoader\n{\n    BshClassManager classManager;\n\n    /**\n        @param bases URLs JARClassLoader seems to require absolute paths\n    */\n    public BshClassLoader( BshClassManager classManager, URL [] bases ) {\n        super( bases );\n        this.classManager = classManager;\n    }\n\n    /**\n        @param bcp URLs JARClassLoader seems to require absolute paths\n    */\n    public BshClassLoader( BshClassManager classManager, BshClassPath bcp ) {\n        this( classManager, bcp.getPathComponents() );\n    }\n\n    /**\n        For use by children\n        @param classManager URLs JARClassLoader seems to require absolute paths\n    */\n    protected BshClassLoader( BshClassManager classManager ) {\n        this( classManager, new URL [] { } );\n    }\n\n    // public version of addURL\n    public void addURL( URL url ) {\n        super.addURL( url );\n    }\n\n    /**\n        This modification allows us to reload classes which are in the\n        Java VM user classpath.  We search first rather than delegate to\n        the parent classloader (or bootstrap path) first.\n\n        An exception is for BeanShell core classes which are always loaded from\n        the same classloader as the interpreter.\n    */\n    public Class loadClass(String name, boolean resolve)\n        throws ClassNotFoundException\n    {\n        Class c = null;\n\n        /*\n            Check first for classes loaded through this loader.\n            The VM will not allow a class to be loaded twice.\n        */\n        c = findLoadedClass(name);\n        if ( c != null )\n            return c;\n\n// This is copied from ClassManagerImpl\n// We should refactor this somehow if it sticks around\n        if ( name.startsWith( ClassManagerImpl.BSH_PACKAGE ) )\n            try {\n                return org.gjt.sp.jedit.bsh.Interpreter.class.getClassLoader().loadClass( name );\n            } catch ( ClassNotFoundException e ) {}\n\n        /*\n            Try to find the class using our classloading mechanism.\n            Note: I wish we didn't have to catch the exception here... slow\n        */\n        try {\n            c = findClass( name );\n        } catch ( ClassNotFoundException e ) { }\n\n        if ( c == null )\n            throw new ClassNotFoundException(\"here in loaClass\");\n\n        if ( resolve )\n            resolveClass( c );\n\n        return c;\n    }\n\n    /**\n        Find the correct source for the class...\n\n        Try designated loader if any\n        Try our URLClassLoader paths if any\n        Try base loader if any\n        Try system ???\n    */\n    // add some caching for not found classes?\n    protected Class findClass( String name )\n        throws ClassNotFoundException\n    {\n        // Deal with this cast somehow... maybe have this class use\n        // ClassManagerImpl type directly.\n        // Don't add the method to BshClassManager... it's really an impl thing\n        ClassManagerImpl bcm = (ClassManagerImpl)getClassManager();\n\n        // Should we try to load the class ourselves or delegate?\n        // look for overlay loader\n\n        // Deal with this cast somehow... maybe have this class use\n        // ClassManagerImpl type directly.\n        // Don't add the method to BshClassManager... it's really an impl thing\n        ClassLoader cl = bcm.getLoaderForClass( name );\n\n        Class c;\n\n        // If there is a designated loader and it's not us delegate to it\n        if ( cl != null && cl != this )\n            try {\n                return cl.loadClass( name );\n            } catch ( ClassNotFoundException e ) {\n                throw new ClassNotFoundException(\n                    \"Designated loader could not find class: \"+e );\n            }\n\n        // Let URLClassLoader try any paths it may have\n        if ( getURLs().length > 0 )\n            try {\n                return super.findClass(name);\n            } catch ( ClassNotFoundException e ) {\n                //System.out.println(\n                //\t\"base loader here caught class not found: \"+name );\n            }\n\n\n        // If there is a baseLoader and it's not us delegate to it\n        cl = bcm.getBaseLoader();\n\n        if ( cl != null && cl != this )\n            try {\n                return cl.loadClass( name );\n            } catch ( ClassNotFoundException e ) { }\n\n        // Try system loader\n        return bcm.plainClassForName( name );\n    }\n\n    /*\n        The superclass does something like this\n\n        c = findLoadedClass(name);\n        if null\n            try\n                if parent not null\n                    c = parent.loadClass(name, false);\n                else\n                    c = findBootstrapClass(name);\n            catch ClassNotFoundException\n                c = findClass(name);\n    */\n\n    BshClassManager getClassManager() { return classManager; }", "functions": [{"function_name": "addURL", "code": "    public void addURL( URL url ) {\n        super.addURL( url );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadClass", "code": "    public Class loadClass(String name, boolean resolve)\n        throws ClassNotFoundException\n    {\n        Class c = null;\n\n        /*\n            Check first for classes loaded through this loader.\n            The VM will not allow a class to be loaded twice.\n        */\n        c = findLoadedClass(name);\n        if ( c != null )\n            return c;\n\n// This is copied from ClassManagerImpl\n// We should refactor this somehow if it sticks around\n        if ( name.startsWith( ClassManagerImpl.BSH_PACKAGE ) )\n            try {\n                return org.gjt.sp.jedit.bsh.Interpreter.class.getClassLoader().loadClass( name );\n            } catch ( ClassNotFoundException e ) {}\n\n        /*\n            Try to find the class using our classloading mechanism.\n            Note: I wish we didn't have to catch the exception here... slow\n        */\n        try {\n            c = findClass( name );\n        } catch ( ClassNotFoundException e ) { }\n\n        if ( c == null )\n            throw new ClassNotFoundException(\"here in loaClass\");\n\n        if ( resolve )\n            resolveClass( c );\n\n        return c;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "TRY", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "CATCH", "TRY", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [3, 11], [4, 12], [5, 13], [5, 14], [6, 15], [6, 16], [0, 17], [2, 18], [10, 19], [11, 20], [4, 21], [13, 22], [13, 23], [16, 24], [17, 25], [7, 26], [19, 27], [21, 28], [23, 29], [23, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 3], [12, 4], [13, 5], [14, 5], [15, 6], [16, 6], [17, 0], [18, 2], [19, 10], [20, 11], [21, 4], [22, 13], [23, 13], [24, 16], [25, 17], [26, 7], [27, 19], [28, 21], [29, 23], [30, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "findClass", "code": "    protected Class findClass( String name )\n        throws ClassNotFoundException\n    {\n        // Deal with this cast somehow... maybe have this class use\n        // ClassManagerImpl type directly.\n        // Don't add the method to BshClassManager... it's really an impl thing\n        ClassManagerImpl bcm = (ClassManagerImpl)getClassManager();\n\n        // Should we try to load the class ourselves or delegate?\n        // look for overlay loader\n\n        // Deal with this cast somehow... maybe have this class use\n        // ClassManagerImpl type directly.\n        // Don't add the method to BshClassManager... it's really an impl thing\n        ClassLoader cl = bcm.getLoaderForClass( name );\n\n        Class c;\n\n        // If there is a designated loader and it's not us delegate to it\n        if ( cl != null && cl != this )\n            try {\n                return cl.loadClass( name );\n            } catch ( ClassNotFoundException e ) {\n                throw new ClassNotFoundException(\n                    \"Designated loader could not find class: \"+e );\n            }\n\n        // Let URLClassLoader try any paths it may have\n        if ( getURLs().length > 0 )\n            try {\n                return super.findClass(name);\n            } catch ( ClassNotFoundException e ) {\n                //System.out.println(\n                //\t\"base loader here caught class not found: \"+name );\n            }\n\n\n        // If there is a baseLoader and it's not us delegate to it\n        cl = bcm.getBaseLoader();\n\n        if ( cl != null && cl != this )\n            try {\n                return cl.loadClass( name );\n            } catch ( ClassNotFoundException e ) { }\n\n        // Try system loader\n        return bcm.plainClassForName( name );", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "TRY", "BINARY_OP", "ASSIGN", "TRY", "BINARY_OP", "TRY", "BINARY_OP", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CATCH", "RETURN", "LITERAL_ANCHOR", "CALL", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [0, 12], [3, 13], [3, 14], [4, 15], [4, 16], [10, 17], [10, 18], [11, 19], [11, 20], [12, 21], [13, 22], [13, 23], [14, 24], [14, 25], [15, 26], [15, 27], [16, 28], [16, 29], [6, 30], [18, 31], [20, 32], [26, 33], [27, 34], [29, 35], [7, 36], [33, 37], [37, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 0], [13, 3], [14, 3], [15, 4], [16, 4], [17, 10], [18, 10], [19, 11], [20, 11], [21, 12], [22, 13], [23, 13], [24, 14], [25, 14], [26, 15], [27, 15], [28, 16], [29, 16], [30, 6], [31, 18], [32, 20], [33, 26], [34, 27], [35, 29], [36, 7], [37, 33], [38, 37], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getClassManager", "code": "    BshClassManager getClassManager() { return classManager; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BshClassLoader", "code": "    public BshClassLoader( BshClassManager classManager, URL [] bases ) {\n        super( bases );\n        this.classManager = classManager;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BshClassLoader", "code": "    public BshClassLoader( BshClassManager classManager, BshClassPath bcp ) {\n        this( classManager, bcp.getPathComponents() );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BshClassLoader", "code": "    protected BshClassLoader( BshClassManager classManager ) {\n        this( classManager, new URL [] { } );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-2.5-5809", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/util/ByteField.java", "language": "java", "name": "org.apache.poi.util.ByteField", "code": "public class ByteField\n    implements FixedField\n{\n    private static final byte _default_value = 0;\n    private byte              _value;\n    private final int         _offset;\n\n    /**\n     * construct the ByteField with its offset into its containing\n     * byte array and a default value of 0\n     *\n     * @param offset of the field within its byte array\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public ByteField(final int offset)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset, _default_value);\n    }\n\n    /**\n     * construct the ByteField with its offset into its containing\n     * byte array and initialize its value\n     *\n     * @param offset of the field within its byte array\n     * @param value the initial value\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public ByteField(final int offset, final byte value)\n        throws ArrayIndexOutOfBoundsException\n    {\n        if (offset < 0)\n        {\n            throw new ArrayIndexOutOfBoundsException(\n                \"offset cannot be negative\");\n        }\n        _offset = offset;\n        set(value);\n    }\n\n    /**\n     * Construct the ByteField with its offset into its containing\n     * byte array and initialize its value from its byte array\n     *\n     * @param offset of the field within its byte array\n     * @param data the byte array to read the value from\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is not\n     *            within the range of 0..(data.length - 1)\n     */\n\n    public ByteField(final int offset, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        readFromBytes(data);\n    }\n\n    /**\n     * construct the ByteField with its offset into its containing\n     * byte array, initialize its value, and write its value to its\n     * byte array\n     *\n     * @param offset of the field within its byte array\n     * @param value the initial value\n     * @param data the byte array to write the value to\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is not\n     *            within the range of 0..(data.length - 1)\n     */\n\n    public ByteField(final int offset, final byte value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset, value);\n        writeToBytes(data);\n    }\n\n    /**\n     * get the ByteField's current value\n     *\n     * @return current value\n     */\n\n    public byte get()\n    {\n        return _value;\n    }\n\n    /**\n     * set the ByteField's current value\n     *\n     * @param value to be set\n     */\n\n    public void set(final byte value)\n    {\n        _value = value;\n    }\n\n    /**\n     * set the ByteField's current value and write it to a byte array\n     *\n     * @param value to be set\n     * @param data the byte array to write the value to\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of the byte array's range\n     */\n\n    public void set(final byte value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        set(value);\n        writeToBytes(data);\n    }\n\n    /* ********** START implementation of FixedField ********** */\n\n    /**\n     * set the value from its offset into an array of bytes\n     *\n     * @param data the byte array from which the value is to be read\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of range of the bte array\n     */\n\n    public void readFromBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = data[ _offset ];\n    }\n\n    /**\n     * set the value from an InputStream\n     *\n     * @param stream the InputStream from which the value is to be\n     *               read\n     *\n     * @exception BufferUnderrunException if there is not enough data\n     *            available from the InputStream\n     * @exception IOException if an IOException is thrown from reading\n     *            the InputStream\n     */\n\n    public void readFromStream(final InputStream stream)\n        throws IOException, BufferUnderrunException\n    {\n        _value =\n            (LittleEndian.readFromStream(stream,\n                                         LittleEndianConsts.BYTE_SIZE))[ 0 ];\n    }\n\n    /**\n     * write the value out to an array of bytes at the appropriate\n     * offset\n     *\n     * @param data the array of bytes to which the value is to be\n     *             written\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of the byte array's range\n     */\n\n    public void writeToBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        data[ _offset ] = _value;\n    }\n\n    /**\n     * return the value as a String\n     *\n     * @return the value as a String\n     */\n\n    public String toString()\n    {\n        return String.valueOf(_value);", "functions": [{"function_name": "get", "code": "    public byte get()\n    {\n        return _value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "set", "code": "    public void set(final byte value)\n    {\n        _value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "set", "code": "    public void set(final byte value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        set(value);\n        writeToBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readFromBytes", "code": "    public void readFromBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = data[ _offset ];", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "readFromStream", "code": "    public void readFromStream(final InputStream stream)\n        throws IOException, BufferUnderrunException\n    {\n        _value =\n            (LittleEndian.readFromStream(stream,\n                                         LittleEndianConsts.BYTE_SIZE))[ 0 ];", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "writeToBytes", "code": "    public void writeToBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        data[ _offset ] = _value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        return String.valueOf(_value);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ByteField", "code": "    public ByteField(final int offset)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset, _default_value);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ByteField", "code": "    public ByteField(final int offset, final byte value)\n        throws ArrayIndexOutOfBoundsException\n    {\n        if (offset < 0)\n        {\n            throw new ArrayIndexOutOfBoundsException(\n                \"offset cannot be negative\");\n        }\n        _offset = offset;\n        set(value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "ByteField", "code": "    public ByteField(final int offset, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        readFromBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ByteField", "code": "    public ByteField(final int offset, final byte value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset, value);\n        writeToBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.4-6482", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/utils/SuballocatedByteVector.java", "language": "java", "name": "org.apache.xml.utils.SuballocatedByteVector", "code": "public class SuballocatedByteVector\n{\n  /** Size of blocks to allocate          */\n  protected int m_blocksize;\n  \n  /** Number of blocks to (over)allocate by */\n  protected  int m_numblocks=32;\n  \n  /** Array of arrays of bytes          */\n  protected byte m_map[][];\n\n  /** Number of bytes in array          */\n  protected int m_firstFree = 0;\n\n  /** \"Shortcut\" handle to m_map[0] */\n  protected byte m_map0[];\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is very small, for small lists.\n   */\n  public SuballocatedByteVector()\n  {\n    this(2048);\n  }\n\n  /**\n   * Construct a ByteVector, using the given block size.\n   *\n   * @param blocksize Size of block to allocate\n   */\n  public SuballocatedByteVector(int blocksize)\n  {\n    m_blocksize = blocksize;\n    m_map0=new byte[blocksize];\n    m_map = new byte[m_numblocks][];\n    m_map[0]=m_map0;\n  }\n  \n  /**\n   * Construct a ByteVector, using the given block size.\n   *\n   * @param blocksize Size of block to allocate\n   */\n  public SuballocatedByteVector(int blocksize, int increaseSize)\n  {\n    this(blocksize);\n  }\n\n\n  /**\n   * Get the length of the list.\n   *\n   * @return length of the list\n   */\n  public int size()\n  {\n    return m_firstFree;\n  }\n  \n  /**\n   * Set the length of the list.\n   *\n   * @return length of the list\n   */\n  private  void setSize(int sz)\n  {\n    if(m_firstFree<sz)\n      m_firstFree = sz;\n  }\n\n  /**\n   * Append a byte onto the vector.\n   *\n   * @param value Byte to add to the list \n   */\n  public  void addElement(byte value)\n  {\n    if(m_firstFree<m_blocksize)\n      m_map0[m_firstFree++]=value;\n    else\n    {\n      int index=m_firstFree/m_blocksize;\n      int offset=m_firstFree%m_blocksize;\n      ++m_firstFree;\n\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        byte[][] newMap=new byte[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      byte[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new byte[m_blocksize];\n      block[offset]=value;\n    }\n  }\n  \n  /**\n   * Append several byte values onto the vector.\n   *\n   * @param value Byte to add to the list \n   */\n  private  void addElements(byte value, int numberOfElements)\n  {\n    if(m_firstFree+numberOfElements<m_blocksize)\n      for (int i = 0; i < numberOfElements; i++) \n      {\n        m_map0[m_firstFree++]=value;\n      }\n    else\n    {\n      int index=m_firstFree/m_blocksize;\n      int offset=m_firstFree%m_blocksize;\n      m_firstFree+=numberOfElements;\n      while( numberOfElements>0)\n      {\n        if(index>=m_map.length)\n        {\n          int newsize=index+m_numblocks;\n          byte[][] newMap=new byte[newsize][];\n          System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n          m_map=newMap;\n        }\n        byte[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new byte[m_blocksize];\n        int copied=(m_blocksize-offset < numberOfElements)\n          ? m_blocksize-offset : numberOfElements;\n        numberOfElements-=copied;\n        while(copied-- > 0)\n          block[offset++]=value;\n\n        ++index;offset=0;\n      }\n    }\n  }\n  \n  /**\n   * Append several slots onto the vector, but do not set the values.\n   * Note: \"Not Set\" means the value is unspecified.\n   *\n   * @param value Byte to add to the list \n   */\n  private  void addElements(int numberOfElements)\n  {\n    int newlen=m_firstFree+numberOfElements;\n    if(newlen>m_blocksize)\n    {\n      int index=m_firstFree%m_blocksize;\n      int newindex=(m_firstFree+numberOfElements)%m_blocksize;\n      for(int i=index+1;i<=newindex;++i)\n        m_map[i]=new byte[m_blocksize];\n    }\n    m_firstFree=newlen;\n  }\n  \n  /**\n   * Inserts the specified node in this vector at the specified index.\n   * Each component in this vector with an index greater or equal to\n   * the specified index is shifted upward to have an index one greater\n   * than the value it had previously.\n   *\n   * Insertion may be an EXPENSIVE operation!\n   *\n   * @param value Byte to insert\n   * @param at Index of where to insert \n   */\n  private  void insertElementAt(byte value, int at)\n  {\n    if(at==m_firstFree)\n      addElement(value);\n    else if (at>m_firstFree)\n    {\n      int index=at/m_blocksize;\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        byte[][] newMap=new byte[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      byte[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new byte[m_blocksize];\n      int offset=at%m_blocksize;\n      block[offset]=value;\n      m_firstFree=offset+1;\n    }\n    else\n    {\n      int index=at/m_blocksize;\n      int maxindex=m_firstFree+1/m_blocksize;\n      ++m_firstFree;\n      int offset=at%m_blocksize;\n      byte push;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        byte[] block=m_map[index];\n        if(null==block)\n        {\n          push=0;\n          block=m_map[index]=new byte[m_blocksize];\n        }\n        else\n        {\n          push=block[m_blocksize-1];\n          System.arraycopy(block, offset , block, offset+1, copylen);\n        }\n        block[offset]=value;\n        value=push;\n        offset=0;\n        ++index;\n      }\n    }\n  }\n\n  /**\n   * Wipe it out. \n   */\n  public void removeAllElements()\n  {\n    m_firstFree = 0;\n  }\n\n  /**\n   * Removes the first occurrence of the argument from this vector.\n   * If the object is found in this vector, each component in the vector\n   * with an index greater or equal to the object's index is shifted\n   * downward to have an index one smaller than the value it had\n   * previously.\n   *\n   * @param s Byte to remove from array\n   *\n   * @return True if the byte was removed, false if it was not found\n   */\n  private  boolean removeElement(byte s)\n  {\n    int at=indexOf(s,0);\n    if(at<0)\n      return false;\n    removeElementAt(at);\n    return true;\n  }\n\n  /**\n   * Deletes the component at the specified index. Each component in\n   * this vector with an index greater or equal to the specified\n   * index is shifted downward to have an index one smaller than\n   * the value it had previously.\n   *\n   * @param at index of where to remove a byte\n   */\n  private  void removeElementAt(int at)\n  {\n    if(at<m_firstFree)\n    {\n      int index=at/m_blocksize;\n      int maxindex=m_firstFree/m_blocksize;\n      int offset=at%m_blocksize;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        byte[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new byte[m_blocksize];\n        else\n          System.arraycopy(block, offset+1, block, offset, copylen);\n        if(index<maxindex)\n        {\n          byte[] next=m_map[index+1];\n          if(next!=null)\n            block[m_blocksize-1]=(next!=null) ? next[0] : 0;\n        }\n        else\n          block[m_blocksize-1]=0;\n        offset=0;\n        ++index;\n      }\n    }\n    --m_firstFree;\n  }\n\n  /**\n   * Sets the component at the specified index of this vector to be the\n   * specified object. The previous component at that position is discarded.\n   *\n   * The index must be a value greater than or equal to 0 and less\n   * than the current size of the vector.\n   *\n   * @param node object to set\n   * @param index Index of where to set the object\n   */\n  public void setElementAt(byte value, int at)\n  {\n    if(at<m_blocksize)\n    {\n      m_map0[at]=value;\n      return;\n    }\n\n    int index=at/m_blocksize;\n    int offset=at%m_blocksize;\n        \n    if(index>=m_map.length)\n    {\n      int newsize=index+m_numblocks;\n      byte[][] newMap=new byte[newsize][];\n      System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n      m_map=newMap;\n    }\n\n    byte[] block=m_map[index];\n    if(null==block)\n      block=m_map[index]=new byte[m_blocksize];\n    block[offset]=value;\n\n    if(at>=m_firstFree)\n      m_firstFree=at+1;\n  }\n\n  /**\n   * Get the nth element. This is often at the innermost loop of an\n   * application, so performance is critical.\n   *\n   * @param i index of value to get\n   *\n   * @return value at given index. If that value wasn't previously set,\n   * the result is undefined for performance reasons. It may throw an\n   * exception (see below), may return zero, or (if setSize has previously\n   * been used) may return stale data.\n   *\n   * @throw ArrayIndexOutOfBoundsException if the index was _clearly_\n   * unreasonable (negative, or past the highest block).\n   *\n   * @throw NullPointerException if the index points to a block that could\n   * have existed (based on the highest index used) but has never had anything\n   * set into it.\n   * %REVIEW% Could add a catch to create the block in that case, or return 0.\n   * Try/Catch is _supposed_ to be nearly free when not thrown to. Do we\n   * believe that? Should we have a separate safeElementAt?\n   */\n  public byte elementAt(int i)\n  {\n    if(i<m_blocksize)\n      return m_map0[i];\n\n    return m_map[i/m_blocksize][i%m_blocksize];\n  }\n\n  /**\n   * Tell if the table contains the given node.\n   *\n   * @param s object to look for\n   *\n   * @return true if the object is in the list\n   */\n  private  boolean contains(byte s)\n  {\n    return (indexOf(s,0) >= 0);\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem object to look for\n   * @param index Index of where to begin search\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(byte elem, int index)\n  {\n    if(index>=m_firstFree)\n      return -1;\n          \n    int bindex=index/m_blocksize;\n    int boffset=index%m_blocksize;\n    int maxindex=m_firstFree/m_blocksize;\n    byte[] block;\n    \n    for(;bindex<maxindex;++bindex)\n    {\n      block=m_map[bindex];\n      if(block!=null)\n        for(int offset=boffset;offset<m_blocksize;++offset)\n          if(block[offset]==elem)\n            return offset+bindex*m_blocksize;\n    }\n    int maxoffset=m_firstFree%m_blocksize;\n    block=m_map[maxindex];\n    for(int offset=boffset;offset<maxoffset;++offset)\n      if(block[offset]==elem)\n        return offset+maxindex*m_blocksize;\n\n    return -1;    \n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem object to look for\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(byte elem)\n  {\n    return indexOf(elem,0);\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem Object to look for\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  private  int lastIndexOf(byte elem)\n  {\n    int boffset=m_firstFree%m_blocksize;\n    for(int index=m_firstFree/m_blocksize;\n        index>=0;\n        --index)\n    {\n      byte[] block=m_map[index];\n      if(block!=null)\n        for(int offset=boffset; offset>=0; --offset)\n          if(block[offset]==elem)\n            return offset+index*m_blocksize;\n    }\n    return -1;", "functions": [{"function_name": "size", "code": "  public int size()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSize", "code": "  private  void setSize(int sz)\n  {\n    if(m_firstFree<sz)\n      m_firstFree = sz;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addElement", "code": "  public  void addElement(byte value)\n  {\n    if(m_firstFree<m_blocksize)\n      m_map0[m_firstFree++]=value;\n    else\n    {\n      int index=m_firstFree/m_blocksize;\n      int offset=m_firstFree%m_blocksize;\n      ++m_firstFree;\n\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        byte[][] newMap=new byte[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      byte[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new byte[m_blocksize];\n      block[offset]=value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [6, 12], [4, 13], [11, 14], [6, 15], [6, 16], [7, 17], [8, 18], [13, 19], [6, 20], [6, 21], [21, 22], [21, 23], [16, 24], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 6], [13, 4], [14, 11], [15, 6], [16, 6], [17, 7], [18, 8], [19, 13], [20, 6], [21, 6], [22, 21], [23, 21], [24, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "addElements", "code": "  private  void addElements(byte value, int numberOfElements)\n  {\n    if(m_firstFree+numberOfElements<m_blocksize)\n      for (int i = 0; i < numberOfElements; i++) \n      {\n        m_map0[m_firstFree++]=value;\n      }\n    else\n    {\n      int index=m_firstFree/m_blocksize;\n      int offset=m_firstFree%m_blocksize;\n      m_firstFree+=numberOfElements;\n      while( numberOfElements>0)\n      {\n        if(index>=m_map.length)\n        {\n          int newsize=index+m_numblocks;\n          byte[][] newMap=new byte[newsize][];\n          System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n          m_map=newMap;\n        }\n        byte[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new byte[m_blocksize];\n        int copied=(m_blocksize-offset < numberOfElements)\n          ? m_blocksize-offset : numberOfElements;\n        numberOfElements-=copied;\n        while(copied-- > 0)\n          block[offset++]=value;\n\n        ++index;offset=0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "LOOP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [5, 10], [6, 11], [1, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [11, 18], [7, 19], [8, 20], [4, 21], [4, 22], [6, 23], [13, 24], [6, 25], [15, 26], [17, 27], [23, 28], [13, 29], [24, 30], [14, 31], [15, 32], [26, 33], [17, 34], [17, 35], [31, 36], [31, 37], [32, 38], [17, 39], [17, 40], [37, 41], [40, 42], [40, 43], [35, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 5], [11, 6], [12, 1], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 11], [19, 7], [20, 8], [21, 4], [22, 4], [23, 6], [24, 13], [25, 6], [26, 15], [27, 17], [28, 23], [29, 13], [30, 24], [31, 14], [32, 15], [33, 26], [34, 17], [35, 17], [36, 31], [37, 31], [38, 32], [39, 17], [40, 17], [41, 37], [42, 40], [43, 40], [44, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "addElements", "code": "  private  void addElements(int numberOfElements)\n  {\n    int newlen=m_firstFree+numberOfElements;\n    if(newlen>m_blocksize)\n    {\n      int index=m_firstFree%m_blocksize;\n      int newindex=(m_firstFree+numberOfElements)%m_blocksize;\n      for(int i=index+1;i<=newindex;++i)\n        m_map[i]=new byte[m_blocksize];\n    }\n    m_firstFree=newlen;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [6, 10], [6, 11], [7, 12], [8, 13], [6, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 6], [11, 6], [12, 7], [13, 8], [14, 6], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "insertElementAt", "code": "  private  void insertElementAt(byte value, int at)\n  {\n    if(at==m_firstFree)\n      addElement(value);\n    else if (at>m_firstFree)\n    {\n      int index=at/m_blocksize;\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        byte[][] newMap=new byte[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      byte[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new byte[m_blocksize];\n      int offset=at%m_blocksize;\n      block[offset]=value;\n      m_firstFree=offset+1;\n    }\n    else\n    {\n      int index=at/m_blocksize;\n      int maxindex=m_firstFree+1/m_blocksize;\n      ++m_firstFree;\n      int offset=at%m_blocksize;\n      byte push;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        byte[] block=m_map[index];\n        if(null==block)\n        {\n          push=0;\n          block=m_map[index]=new byte[m_blocksize];\n        }\n        else\n        {\n          push=block[m_blocksize-1];\n          System.arraycopy(block, offset , block, offset+1, copylen);\n        }\n        block[offset]=value;\n        value=push;\n        offset=0;\n        ++index;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 16], [4, 17], [8, 18], [4, 19], [4, 20], [14, 21], [16, 22], [8, 23], [8, 24], [8, 25], [10, 26], [11, 27], [12, 28], [19, 29], [13, 30], [14, 31], [21, 32], [16, 33], [16, 34], [17, 35], [8, 36], [8, 37], [8, 38], [23, 39], [27, 40], [29, 41], [31, 42], [16, 43], [16, 44], [36, 45], [39, 46], [25, 47], [40, 48], [44, 49], [44, 50], [34, 51], [23, 52], [23, 53], [23, 54], [23, 55], [47, 56], [47, 57], [52, 58], [54, 59], [55, 60], [58, 61], [53, 62], [62, 63], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 4], [14, 4], [15, 4], [16, 4], [17, 4], [18, 8], [19, 4], [20, 4], [21, 14], [22, 16], [23, 8], [24, 8], [25, 8], [26, 10], [27, 11], [28, 12], [29, 19], [30, 13], [31, 14], [32, 21], [33, 16], [34, 16], [35, 17], [36, 8], [37, 8], [38, 8], [39, 23], [40, 27], [41, 29], [42, 31], [43, 16], [44, 16], [45, 36], [46, 39], [47, 25], [48, 40], [49, 44], [50, 44], [51, 34], [52, 23], [53, 23], [54, 23], [55, 23], [56, 47], [57, 47], [58, 52], [59, 54], [60, 55], [61, 58], [62, 53], [63, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "removeAllElements", "code": "  public void removeAllElements()\n  {\n    m_firstFree = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeElement", "code": "  private  boolean removeElement(byte s)\n  {\n    int at=indexOf(s,0);\n    if(at<0)\n      return false;\n    removeElementAt(at);\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [2, 8], [7, 9], [8, 10], [3, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 2], [9, 7], [10, 8], [11, 3], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "removeElementAt", "code": "  private  void removeElementAt(int at)\n  {\n    if(at<m_firstFree)\n    {\n      int index=at/m_blocksize;\n      int maxindex=m_firstFree/m_blocksize;\n      int offset=at%m_blocksize;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        byte[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new byte[m_blocksize];\n        else\n          System.arraycopy(block, offset+1, block, offset, copylen);\n        if(index<maxindex)\n        {\n          byte[] next=m_map[index+1];\n          if(next!=null)\n            block[m_blocksize-1]=(next!=null) ? next[0] : 0;\n        }\n        else\n          block[m_blocksize-1]=0;\n        offset=0;\n        ++index;\n      }\n    }\n    --m_firstFree;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [5, 13], [6, 14], [7, 15], [4, 16], [9, 17], [10, 18], [16, 19], [9, 20], [9, 21], [9, 22], [10, 23], [10, 24], [18, 25], [12, 26], [20, 27], [21, 28], [23, 29], [24, 30], [26, 31], [26, 32], [21, 33], [28, 34], [29, 35], [20, 36], [33, 37], [36, 38], [37, 39], [37, 40], [22, 41], [40, 42], [33, 43], [41, 44], [37, 45], [43, 46], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 5], [14, 6], [15, 7], [16, 4], [17, 9], [18, 10], [19, 16], [20, 9], [21, 9], [22, 9], [23, 10], [24, 10], [25, 18], [26, 12], [27, 20], [28, 21], [29, 23], [30, 24], [31, 26], [32, 26], [33, 21], [34, 28], [35, 29], [36, 20], [37, 33], [38, 36], [39, 37], [40, 37], [41, 22], [42, 40], [43, 33], [44, 41], [45, 37], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "setElementAt", "code": "  public void setElementAt(byte value, int at)\n  {\n    if(at<m_blocksize)\n    {\n      m_map0[at]=value;\n      return;\n    }\n\n    int index=at/m_blocksize;\n    int offset=at%m_blocksize;\n        \n    if(index>=m_map.length)\n    {\n      int newsize=index+m_numblocks;\n      byte[][] newMap=new byte[newsize][];\n      System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n      m_map=newMap;\n    }\n\n    byte[] block=m_map[index];\n    if(null==block)\n      block=m_map[index]=new byte[m_blocksize];\n    block[offset]=value;\n\n    if(at>=m_firstFree)\n      m_firstFree=at+1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [2, 12], [4, 13], [7, 14], [1, 15], [2, 16], [12, 17], [4, 18], [4, 19], [5, 20], [6, 21], [7, 22], [15, 23], [16, 24], [4, 25], [4, 26], [7, 27], [23, 28], [26, 29], [26, 30], [19, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 2], [13, 4], [14, 7], [15, 1], [16, 2], [17, 12], [18, 4], [19, 4], [20, 5], [21, 6], [22, 7], [23, 15], [24, 16], [25, 4], [26, 4], [27, 7], [28, 23], [29, 26], [30, 26], [31, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "elementAt", "code": "  public byte elementAt(int i)\n  {\n    if(i<m_blocksize)\n      return m_map0[i];\n\n    return m_map[i/m_blocksize][i%m_blocksize];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "contains", "code": "  private  boolean contains(byte s)\n  {\n    return (indexOf(s,0) >= 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "indexOf", "code": "  public int indexOf(byte elem, int index)\n  {\n    if(index>=m_firstFree)\n      return -1;\n          \n    int bindex=index/m_blocksize;\n    int boffset=index%m_blocksize;\n    int maxindex=m_firstFree/m_blocksize;\n    byte[] block;\n    \n    for(;bindex<maxindex;++bindex)\n    {\n      block=m_map[bindex];\n      if(block!=null)\n        for(int offset=boffset;offset<m_blocksize;++offset)\n          if(block[offset]==elem)\n            return offset+bindex*m_blocksize;\n    }\n    int maxoffset=m_firstFree%m_blocksize;\n    block=m_map[maxindex];\n    for(int offset=boffset;offset<maxoffset;++offset)\n      if(block[offset]==elem)\n        return offset+maxindex*m_blocksize;\n\n    return -1;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [0, 15], [4, 16], [9, 17], [9, 18], [13, 19], [13, 20], [3, 21], [4, 22], [6, 23], [7, 24], [8, 25], [17, 26], [19, 27], [22, 28], [22, 29], [4, 30], [27, 31], [28, 32], [28, 33], [29, 34], [32, 35], [32, 36], [35, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 0], [16, 4], [17, 9], [18, 9], [19, 13], [20, 13], [21, 3], [22, 4], [23, 6], [24, 7], [25, 8], [26, 17], [27, 19], [28, 22], [29, 22], [30, 4], [31, 27], [32, 28], [33, 28], [34, 29], [35, 32], [36, 32], [37, 35], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "indexOf", "code": "  public int indexOf(byte elem)\n  {\n    return indexOf(elem,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "lastIndexOf", "code": "  private  int lastIndexOf(byte elem)\n  {\n    int boffset=m_firstFree%m_blocksize;\n    for(int index=m_firstFree/m_blocksize;\n        index>=0;\n        --index)\n    {\n      byte[] block=m_map[index];\n      if(block!=null)\n        for(int offset=boffset; offset>=0; --offset)\n          if(block[offset]==elem)\n            return offset+index*m_blocksize;\n    }\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [2, 13], [11, 14], [11, 15], [12, 16], [14, 17], [14, 18], [15, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 2], [14, 11], [15, 11], [16, 12], [17, 14], [18, 14], [19, 15], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "SuballocatedByteVector", "code": "  public SuballocatedByteVector()\n  {\n    this(2048);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SuballocatedByteVector", "code": "  public SuballocatedByteVector(int blocksize)\n  {\n    m_blocksize = blocksize;\n    m_map0=new byte[blocksize];\n    m_map = new byte[m_numblocks][];\n    m_map[0]=m_map0;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "SuballocatedByteVector", "code": "  public SuballocatedByteVector(int blocksize, int increaseSize)\n  {\n    this(blocksize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8022", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/axes/ChildTestIterator.java", "language": "java", "name": "org.apache.xpath.axes.ChildTestIterator", "code": "public class ChildTestIterator extends BasicTestIterator\n{\n    static final long serialVersionUID = -7936835957960705722L;\n  /** The traverser to use to navigate over the descendants. */\n  transient protected DTMAxisTraverser m_traverser;\n  \n  /** The extended type ID, not set until setRoot. */\n\n\n  /**\n   * Create a ChildTestIterator object.\n   *\n   * @param compiler A reference to the Compiler that contains the op map.\n   * @param opPos The position within the op map, which contains the\n   * location path expression for this itterator.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  ChildTestIterator(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis);\n  }\n  \n  /**\n   * Create a ChildTestIterator object.\n   *\n   * @param traverser Traverser that tells how the KeyIterator is to be handled.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public ChildTestIterator(DTMAxisTraverser traverser)\n  {\n\n    super(null);\n\n    m_traverser = traverser;\n  }\n\n  /**\n   * Get the next node via getNextXXX.  Bottlenecked for derived class override.\n   * @return The next node on the axis, or DTM.NULL.\n   */\n  protected int getNextNode()\n  {                     \n    if(true /* 0 == m_extendedTypeID */)\n    {\n      m_lastFetched = (DTM.NULL == m_lastFetched)\n                   ? m_traverser.first(m_context)\n                   : m_traverser.next(m_context, m_lastFetched);\n    }\n\n    return m_lastFetched;\n  }\n\n  \n  /**\n   *  Get a cloned Iterator that is reset to the beginning\n   *  of the query.\n   * \n   *  @return A cloned NodeIterator set of the start of the query.\n   * \n   *  @throws CloneNotSupportedException\n   */\n  public DTMIterator cloneWithReset() throws CloneNotSupportedException\n  {\n\n    ChildTestIterator clone = (ChildTestIterator) super.cloneWithReset();\n    clone.m_traverser = m_traverser;\n\n    return clone;\n  }\n  \n\n  /**\n   * Initialize the context values for this expression\n   * after it is cloned.\n   *\n   * @param context The XPath runtime context for this\n   * transformation.\n   */\n  public void setRoot(int context, Object environment)\n  {\n    super.setRoot(context, environment);\n    m_traverser = m_cdtm.getAxisTraverser(Axis.CHILD);\n    \n    \n  }\n  \n  /**\n   * Returns the axis being iterated, if it is known.\n   * \n   * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple \n   * types.\n   */\n  public int getAxis()\n  {\n    return org.apache.xml.dtm.Axis.CHILD;\n  }\n\n  /**\n   *  Detaches the iterator from the set which it iterated over, releasing\n   * any computational resources and placing the iterator in the INVALID\n   * state. After<code>detach</code> has been invoked, calls to\n   * <code>nextNode</code> or<code>previousNode</code> will raise the\n   * exception INVALID_STATE_ERR.\n   */\n  public void detach()\n  {   \n    if(m_allowDetach)\n    {\n      m_traverser = null;\n      \n      super.detach();", "functions": [{"function_name": "getNextNode", "code": "  protected int getNextNode()\n  {                     \n    if(true /* 0 == m_extendedTypeID */)\n    {\n      m_lastFetched = (DTM.NULL == m_lastFetched)\n                   ? m_traverser.first(m_context)\n                   : m_traverser.next(m_context, m_lastFetched);\n    }\n\n    return m_lastFetched;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "cloneWithReset", "code": "  public DTMIterator cloneWithReset() throws CloneNotSupportedException\n  {\n\n    ChildTestIterator clone = (ChildTestIterator) super.cloneWithReset();\n    clone.m_traverser = m_traverser;\n\n    return clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRoot", "code": "  public void setRoot(int context, Object environment)\n  {\n    super.setRoot(context, environment);\n    m_traverser = m_cdtm.getAxisTraverser(Axis.CHILD);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAxis", "code": "  public int getAxis()\n  {\n    return org.apache.xml.dtm.Axis.CHILD;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "detach", "code": "  public void detach()\n  {   \n    if(m_allowDetach)\n    {\n      m_traverser = null;\n      \n      super.detach();", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ChildTestIterator", "code": "  ChildTestIterator(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ChildTestIterator", "code": "  public ChildTestIterator(DTMAxisTraverser traverser)\n  {\n\n    super(null);\n\n    m_traverser = traverser;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "jedit-4.3-4725", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/syntax/ParserRule.java", "language": "java", "name": "org.gjt.sp.jedit.syntax.ParserRule", "code": "public class ParserRule\n{\n\n\t//{{{ Major actions\n\tpublic static final int MAJOR_ACTIONS = 0x000000FF;\n\tpublic static final int SEQ = 0;\n\tpublic static final int SPAN = 1 << 1;\n\tpublic static final int MARK_PREVIOUS = 1 << 2;\n\tpublic static final int MARK_FOLLOWING = 1 << 3;\n\tpublic static final int EOL_SPAN = 1 << 4;\n\t//}}}\n\n\t//{{{ Action hints\n\tpublic static final int ACTION_HINTS = 0x0000FF00;\n\n\t@Deprecated\n\tpublic static final int EXCLUDE_MATCH = 1 << 8;\n\n\tpublic static final int NO_LINE_BREAK = 1 << 9;\n\tpublic static final int NO_WORD_BREAK = 1 << 10;\n\tpublic static final int IS_ESCAPE = 1 << 11;\n\n\t@Deprecated\n\tpublic static final int NO_ESCAPE = 1 << 12;\n\n\tpublic static final int REGEXP = 1 << 13;\n\t//}}}\n\n\t//{{{ Special Match Token Types\n\tpublic static final byte MATCH_TYPE_CONTEXT \t= -1;\n\tpublic static final byte MATCH_TYPE_RULE \t= -2;\n\t//}}}\n\n\t//{{{ Position match hints\n\tpublic static final int AT_LINE_START = 1 << 1;\n\tpublic static final int AT_WHITESPACE_END = 1 << 2;\n\tpublic static final int AT_WORD_START = 1 << 3;\n\t//}}}\n\n\t//{{{ Instance variables\n\tpublic final String upHashChar;\n\tpublic final char[] upHashChars;\n\tpublic final int startPosMatch;\n\tpublic final char[] start;\n\tpublic final Pattern startRegexp;\n\n\tpublic final int endPosMatch;\n\tpublic final char[] end;\n\n\tpublic final int action;\n\tpublic final byte token;\n\n\t/**\n\t * matchType is the type of the token for the matched region. Special\n\t * values are: MATCH_TYPE_CONTEXT = default token for the context,\n\t * MATCH_TYPE_RULE = same token as the rule itself.\n\t *\n\t * @since jEdit 4.3pre10\n\t */\n\tpublic final byte matchType;\n\n\t/**\n\t * escapeRule is the rule-specific sequence used to escape other\n\t * characters while the rule is in effect. If this character is\n\t * non-zero, the character following the escape char will be skipped\n\t * during parsing, and highlighted with the rule's token.\n\t *\n\t * @since jEdit 4.3pre12\n\t */\n\tpublic final ParserRule escapeRule;\n\n\tpublic ParserRuleSet delegate;\n\n\t/**\n\t* @deprecated As the linking between rules is not anymore done within the rule but external. See {@link ParserRuleSet#getRules(Character)}\n\t*/\n\tpublic ParserRule next;\n\t//}}}\n\n\t//{{{ createSequenceRule() method\n\tpublic static final ParserRule createSequenceRule(\n\t\tint posMatch, String seq, ParserRuleSet delegate, byte id)\n\t{\n\t\treturn new ParserRule(SEQ, seq.substring(0,1),\n\t\t\tposMatch, seq.toCharArray(), null,\n\t\t\t0, null, delegate, id, MATCH_TYPE_CONTEXT, null);\n\t} //}}}\n\n\t//{{{ createRegexpSequenceRule() method\n\t/**\n\t * @deprecated Use {@link #createRegexpSequenceRule(String,int,String,ParserRuleSet,byte,boolean)} instead\n\t */\n\tpublic static final ParserRule createRegexpSequenceRule(\n\t\tchar hashChar, int posMatch, String seq,\n\t\tParserRuleSet delegate, byte id, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\treturn createRegexpSequenceRule(String.valueOf(hashChar), posMatch,\n\t\t\tseq, delegate, id, ignoreCase);\n\t} //}}}\n\n\t//{{{ createRegexpSequenceRule() method\n\tpublic static final ParserRule createRegexpSequenceRule(\n\t\tString hashChar, int posMatch, String seq,\n\t\tParserRuleSet delegate, byte id, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\treturn new ParserRule(SEQ | REGEXP, hashChar, posMatch,\n\t\t\tnull, Pattern.compile(seq,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\t0, null, delegate, id, MATCH_TYPE_CONTEXT, null);\n\t} //}}}\n\n\t//{{{ createRegexpSequenceRule() method\n\tpublic static final ParserRule createRegexpSequenceRule(\n\t\tint posMatch, char[] hashChars, String seq,\n\t\tParserRuleSet delegate, byte id, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\treturn new ParserRule(hashChars, SEQ | REGEXP, posMatch,\n\t\t\tnull, Pattern.compile(seq,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\t0, null, delegate, id, MATCH_TYPE_CONTEXT, null);\n\t} //}}}\n\n\t//{{{ createSpanRule() method\n\tpublic static final ParserRule createSpanRule(\n\t\tint startPosMatch, String start, int endPosMatch, String end,\n\t\tParserRuleSet delegate, byte id, byte matchType,\n\t\tboolean noLineBreak, boolean noWordBreak, String escape)\n\t{\n\t\tint ruleAction = SPAN |\n\t\t\t((noLineBreak) ? NO_LINE_BREAK : 0) |\n\t\t\t((noWordBreak) ? NO_WORD_BREAK : 0);\n\n\t\treturn new ParserRule(ruleAction, start.substring(0,1), startPosMatch,\n\t\t\tstart.toCharArray(), null,\n\t\t\tendPosMatch, end.toCharArray(),\n\t\t\tdelegate, id, matchType, escape);\n\t} //}}}\n\n\t//{{{ createRegexpSpanRule() method\n\tpublic static final ParserRule createRegexpSpanRule(\n\t\tString hashChar, int startPosMatch, String start,\n\t\tint endPosMatch, String end, ParserRuleSet delegate, byte id,\n\t\tbyte matchType, boolean noLineBreak, boolean noWordBreak,\n\t\tboolean ignoreCase, String escape)\n\t\tthrows PatternSyntaxException\n\t{\n\t\tint ruleAction = SPAN | REGEXP |\n\t\t\t((noLineBreak) ? NO_LINE_BREAK : 0) |\n\t\t\t((noWordBreak) ? NO_WORD_BREAK : 0);\n\n\t\treturn new ParserRule(ruleAction, hashChar, startPosMatch, null,\n\t\t\tPattern.compile(start,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\tendPosMatch, end.toCharArray(), delegate, id, matchType,\n\t\t\tescape);\n\t} //}}}\n\n\t//{{{ createRegexpSpanRule() method\n\tpublic static final ParserRule createRegexpSpanRule(\n\t\tint startPosMatch, char[] hashChars, String start,\n\t\tint endPosMatch, String end, ParserRuleSet delegate, byte id,\n\t\tbyte matchType, boolean noLineBreak, boolean noWordBreak,\n\t\tboolean ignoreCase, String escape)\n\t\tthrows PatternSyntaxException\n\t{\n\t\tint ruleAction = SPAN | REGEXP |\n\t\t\t((noLineBreak) ? NO_LINE_BREAK : 0) |\n\t\t\t((noWordBreak) ? NO_WORD_BREAK : 0);\n\n\t\treturn new ParserRule(hashChars, ruleAction, startPosMatch, null,\n\t\t\tPattern.compile(start,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\tendPosMatch, end.toCharArray(), delegate, id,\n\t\t\tmatchType, escape);\n\t} //}}}\n\n\t//{{{ createEOLSpanRule() method\n\tpublic static final ParserRule createEOLSpanRule(\n\t\tint posMatch, String seq, ParserRuleSet delegate, byte id,\n\t\tbyte matchType)\n\t{\n\t\tint ruleAction = EOL_SPAN | NO_LINE_BREAK;\n\n\t\treturn new ParserRule(ruleAction, seq.substring(0,1), posMatch,\n\t\t\tseq.toCharArray(), null, 0, null,\n\t\t\tdelegate, id, matchType, null);\n\t} //}}}\n\n\t//{{{ createRegexpEOLSpanRule() method\n\t/**\n\t * @deprecated Use {@link #createRegexpEOLSpanRule(String,int,String,ParserRuleSet,byte,byte,boolean)} instead\n\t */\n\tpublic static final ParserRule createRegexpEOLSpanRule(\n\t\tchar hashChar, int posMatch, String seq, ParserRuleSet delegate,\n\t\tbyte id, byte matchType, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\treturn createRegexpEOLSpanRule(String.valueOf(hashChar),\n\t\t\tposMatch,seq,delegate,id,matchType,ignoreCase);\n\t} //}}}\n\n\t//{{{ createRegexpEOLSpanRule() method\n\tpublic static final ParserRule createRegexpEOLSpanRule(\n\t\tString hashChar, int posMatch, String seq, ParserRuleSet delegate,\n\t\tbyte id, byte matchType, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\tint ruleAction = EOL_SPAN | REGEXP | NO_LINE_BREAK;\n\n\t\treturn new ParserRule(ruleAction, hashChar, posMatch,\n\t\t\tnull, Pattern.compile(seq,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\t0, null, delegate, id, matchType, null);\n\t} //}}}\n\n\t//{{{ createRegexpEOLSpanRule() method\n\tpublic static final ParserRule createRegexpEOLSpanRule(\n\t\tint posMatch, char[] hashChars, String seq, ParserRuleSet delegate,\n\t\tbyte id, byte matchType, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\tint ruleAction = EOL_SPAN | REGEXP | NO_LINE_BREAK;\n\n\t\treturn new ParserRule(hashChars, ruleAction, posMatch,\n\t\t\tnull, Pattern.compile(seq,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\t0, null, delegate, id, matchType, null);\n\t} //}}}\n\n\t//{{{ createMarkFollowingRule() method\n\tpublic static final ParserRule createMarkFollowingRule(\n\t\tint posMatch, String seq, byte id, byte matchType)\n\t{\n\t\tint ruleAction = MARK_FOLLOWING;\n\n\t\treturn new ParserRule(ruleAction, seq.substring(0,1), posMatch,\n\t\t\tseq.toCharArray(), null, 0, null, null, id, matchType,\n\t\t\tnull);\n\t} //}}}\n\n\t//{{{ createMarkPreviousRule() method\n\tpublic static final ParserRule createMarkPreviousRule(\n\t\tint posMatch, String seq, byte id, byte matchType)\n\t{\n\t\tint ruleAction = MARK_PREVIOUS;\n\n\t\treturn new ParserRule(ruleAction, seq.substring(0,1), posMatch,\n\t\t\tseq.toCharArray(), null, 0, null, null, id, matchType,\n\t\t\tnull);\n\t} //}}}\n\n\t//{{{ createEscapeRule() method\n\tpublic static final ParserRule createEscapeRule(String seq)\n\t{\n\t\tint ruleAction = IS_ESCAPE;\n\n\t\treturn new ParserRule(ruleAction, seq.substring(0,1),\n\t\t\t0, seq.toCharArray(), null, 0, null,\n\t\t\tnull, Token.NULL, MATCH_TYPE_CONTEXT, null);\n\t} //}}}\n\n\t//{{{ toString() method\n\tpublic String toString()\n\t{\n\t\tStringBuilder result = new StringBuilder();\n\t\tresult.append(getClass().getName()).append(\"[action=\");\n\t\tswitch (action & MAJOR_ACTIONS)\n\t\t{\n\t\t\tcase SEQ: result.append(\"SEQ\"); break;\n\t\t\tcase SPAN: result.append(\"SPAN\"); break;\n\t\t\tcase MARK_PREVIOUS: result.append(\"MARK_PREVIOUS\"); break;\n\t\t\tcase MARK_FOLLOWING: result.append(\"MARK_FOLLOWING\"); break;\n\t\t\tcase EOL_SPAN: result.append(\"EOL_SPAN\"); break;\n\t\t\tdefault: result.append(\"UNKNOWN\"); break;\n\t\t}\n\t\tint actionHints = action & ACTION_HINTS;\n\t\tresult.append(\"[matchType=\").append(matchType == MATCH_TYPE_CONTEXT ? \"MATCH_TYPE_CONTEXT\" : (matchType == MATCH_TYPE_RULE ? \"MATCH_TYPE_RULE\" : Token.tokenToString(matchType)));\n\t\tresult.append(\",NO_LINE_BREAK=\").append((actionHints & NO_LINE_BREAK) != 0);\n\t\tresult.append(\",NO_WORD_BREAK=\").append((actionHints & NO_WORD_BREAK) != 0);\n\t\tresult.append(\",IS_ESCAPE=\").append((actionHints & IS_ESCAPE) != 0);\n\t\tresult.append(\",REGEXP=\").append((actionHints & REGEXP) != 0);\n\t\tresult.append(\"],upHashChar=\").append(upHashChar);\n\t\tresult.append(\",upHashChars=\").append(Arrays.toString(upHashChars));\n\t\tresult.append(\",startPosMatch=\");\n\t\tresult.append(\"[AT_LINE_START=\").append((startPosMatch & AT_LINE_START) != 0);\n\t\tresult.append(\",AT_WHITESPACE_END=\").append((startPosMatch & AT_WHITESPACE_END) != 0);\n\t\tresult.append(\",AT_WORD_START=\").append((startPosMatch & AT_WORD_START) != 0);\n\t\tresult.append(\"],start=\").append(null==start?null:String.valueOf(start));\n\t\tresult.append(\",startRegexp=\").append(startRegexp);\n\t\tresult.append(\",endPosMatch=\");\n\t\tresult.append(\"[AT_LINE_START=\").append((endPosMatch & AT_LINE_START) != 0);\n\t\tresult.append(\",AT_WHITESPACE_END=\").append((endPosMatch & AT_WHITESPACE_END) != 0);\n\t\tresult.append(\",AT_WORD_START=\").append((endPosMatch & AT_WORD_START) != 0);\n\t\tresult.append(\"],end=\").append(null==end?null:String.valueOf(end));\n\t\tresult.append(\",delegate=\").append(delegate);\n\t\tresult.append(\",escapeRule=\").append(escapeRule);\n\t\tresult.append(\",token=\").append(Token.tokenToString(token)).append(']');\n\t\treturn result.toString();\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate ParserRule(int action, String hashChar,\n\t\tint startPosMatch, char[] start, Pattern startRegexp,\n\t\tint endPosMatch, char[] end,\n\t\tParserRuleSet delegate, byte token, byte matchType,\n\t\tString escape)\n\t{\n\t\tthis.action = action;\n\t\tthis.upHashChar = null == hashChar ? null : hashChar.toUpperCase();\n\t\tthis.upHashChars = null;\n\t\tthis.startPosMatch = startPosMatch;\n\t\tthis.start = start;\n\t\tthis.startRegexp = startRegexp;\n\t\tthis.endPosMatch = endPosMatch;\n\t\tthis.end = end;\n\t\tthis.delegate = delegate;\n\t\tthis.token = token;\n\t\tthis.matchType = matchType;\n\t\tthis.escapeRule = (escape != null && escape.length() > 0) ?\n\t\t\t\t\tcreateEscapeRule(escape) : null;\n\n\t\tif(this.delegate == null)\n\t\t{\n\t\t\tif((action & MAJOR_ACTIONS) != SEQ)\n\t\t\t{\n\t\t\t\tthis.delegate = ParserRuleSet.getStandardRuleSet(token);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate ParserRule(char[] hashChars, int action,\n\t\tint startPosMatch, char[] start, Pattern startRegexp,\n\t\tint endPosMatch, char[] end,\n\t\tParserRuleSet delegate, byte token, byte matchType,\n\t\tString escape)\n\t{\n\t\tthis.action = action;\n\t\tthis.upHashChar = null;\n\t\tSet<Character> hashCharsSet = new HashSet<Character>();\n\t\tfor (char c : hashChars)\n\t\t{\n\t\t\thashCharsSet.add(Character.toUpperCase(c));\n\t\t}\n\t\tthis.upHashChars = new char[hashCharsSet.size()];\n\t\tint i = 0;\n\t\tfor (Character c : hashCharsSet)\n\t\t{\n\t\t\tthis.upHashChars[i++] = c;\n\t\t}\n\t\tArrays.sort(this.upHashChars);\n\t\tthis.startPosMatch = startPosMatch;\n\t\tthis.start = start;\n\t\tthis.startRegexp = startRegexp;\n\t\tthis.endPosMatch = endPosMatch;\n\t\tthis.end = end;\n\t\tthis.delegate = delegate;\n\t\tthis.token = token;\n\t\tthis.matchType = matchType;\n\t\tthis.escapeRule = (escape != null && escape.length() > 0) ?\n\t\t\t\t\tcreateEscapeRule(escape) : null;\n\n\t\tif(this.delegate == null)\n\t\t{\n\t\t\tif((action & MAJOR_ACTIONS) != SEQ)\n\t\t\t{\n\t\t\t\tthis.delegate = ParserRuleSet.getStandardRuleSet(token);", "functions": [{"function_name": "createSequenceRule", "code": "\tpublic static final ParserRule createSequenceRule(\n\t\tint posMatch, String seq, ParserRuleSet delegate, byte id)\n\t{\n\t\treturn new ParserRule(SEQ, seq.substring(0,1),\n\t\t\tposMatch, seq.toCharArray(), null,\n\t\t\t0, null, delegate, id, MATCH_TYPE_CONTEXT, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 6], [10, 6], [11, 6], [12, 6], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "createRegexpSequenceRule", "code": "\tpublic static final ParserRule createRegexpSequenceRule(\n\t\tchar hashChar, int posMatch, String seq,\n\t\tParserRuleSet delegate, byte id, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\treturn createRegexpSequenceRule(String.valueOf(hashChar), posMatch,\n\t\t\tseq, delegate, id, ignoreCase);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createRegexpSequenceRule", "code": "\tpublic static final ParserRule createRegexpSequenceRule(\n\t\tString hashChar, int posMatch, String seq,\n\t\tParserRuleSet delegate, byte id, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\treturn new ParserRule(SEQ | REGEXP, hashChar, posMatch,\n\t\t\tnull, Pattern.compile(seq,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\t0, null, delegate, id, MATCH_TYPE_CONTEXT, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 8], [11, 8], [12, 8], [13, 8], [14, 8], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "createRegexpSequenceRule", "code": "\tpublic static final ParserRule createRegexpSequenceRule(\n\t\tint posMatch, char[] hashChars, String seq,\n\t\tParserRuleSet delegate, byte id, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\treturn new ParserRule(hashChars, SEQ | REGEXP, posMatch,\n\t\t\tnull, Pattern.compile(seq,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\t0, null, delegate, id, MATCH_TYPE_CONTEXT, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 8], [11, 8], [12, 8], [13, 8], [14, 8], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "createSpanRule", "code": "\tpublic static final ParserRule createSpanRule(\n\t\tint startPosMatch, String start, int endPosMatch, String end,\n\t\tParserRuleSet delegate, byte id, byte matchType,\n\t\tboolean noLineBreak, boolean noWordBreak, String escape)\n\t{\n\t\tint ruleAction = SPAN |\n\t\t\t((noLineBreak) ? NO_LINE_BREAK : 0) |\n\t\t\t((noWordBreak) ? NO_WORD_BREAK : 0);\n\n\t\treturn new ParserRule(ruleAction, start.substring(0,1), startPosMatch,\n\t\t\tstart.toCharArray(), null,\n\t\t\tendPosMatch, end.toCharArray(),\n\t\t\tdelegate, id, matchType, escape);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [13, 14], [13, 15], [13, 16], [13, 17], [2, 18], [17, 19], [17, 20], [18, 21], [18, 22], [21, 23], [22, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 13], [15, 13], [16, 13], [17, 13], [18, 2], [19, 17], [20, 17], [21, 18], [22, 18], [23, 21], [24, 22], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "createRegexpSpanRule", "code": "\tpublic static final ParserRule createRegexpSpanRule(\n\t\tString hashChar, int startPosMatch, String start,\n\t\tint endPosMatch, String end, ParserRuleSet delegate, byte id,\n\t\tbyte matchType, boolean noLineBreak, boolean noWordBreak,\n\t\tboolean ignoreCase, String escape)\n\t\tthrows PatternSyntaxException\n\t{\n\t\tint ruleAction = SPAN | REGEXP |\n\t\t\t((noLineBreak) ? NO_LINE_BREAK : 0) |\n\t\t\t((noWordBreak) ? NO_WORD_BREAK : 0);\n\n\t\treturn new ParserRule(ruleAction, hashChar, startPosMatch, null,\n\t\t\tPattern.compile(start,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\tendPosMatch, end.toCharArray(), delegate, id, matchType,\n\t\t\tescape);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [15, 16], [15, 17], [15, 18], [2, 19], [17, 20], [19, 21], [19, 22], [20, 23], [21, 24], [22, 25], [22, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 15], [17, 15], [18, 15], [19, 2], [20, 17], [21, 19], [22, 19], [23, 20], [24, 21], [25, 22], [26, 22], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "createRegexpSpanRule", "code": "\tpublic static final ParserRule createRegexpSpanRule(\n\t\tint startPosMatch, char[] hashChars, String start,\n\t\tint endPosMatch, String end, ParserRuleSet delegate, byte id,\n\t\tbyte matchType, boolean noLineBreak, boolean noWordBreak,\n\t\tboolean ignoreCase, String escape)\n\t\tthrows PatternSyntaxException\n\t{\n\t\tint ruleAction = SPAN | REGEXP |\n\t\t\t((noLineBreak) ? NO_LINE_BREAK : 0) |\n\t\t\t((noWordBreak) ? NO_WORD_BREAK : 0);\n\n\t\treturn new ParserRule(hashChars, ruleAction, startPosMatch, null,\n\t\t\tPattern.compile(start,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\tendPosMatch, end.toCharArray(), delegate, id,\n\t\t\tmatchType, escape);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [15, 16], [15, 17], [15, 18], [2, 19], [17, 20], [19, 21], [19, 22], [20, 23], [21, 24], [22, 25], [22, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 15], [17, 15], [18, 15], [19, 2], [20, 17], [21, 19], [22, 19], [23, 20], [24, 21], [25, 22], [26, 22], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "createEOLSpanRule", "code": "\tpublic static final ParserRule createEOLSpanRule(\n\t\tint posMatch, String seq, ParserRuleSet delegate, byte id,\n\t\tbyte matchType)\n\t{\n\t\tint ruleAction = EOL_SPAN | NO_LINE_BREAK;\n\n\t\treturn new ParserRule(ruleAction, seq.substring(0,1), posMatch,\n\t\t\tseq.toCharArray(), null, 0, null,\n\t\t\tdelegate, id, matchType, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [2, 15], [14, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 8], [11, 8], [12, 8], [13, 8], [14, 8], [15, 2], [16, 14], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "createRegexpEOLSpanRule", "code": "\tpublic static final ParserRule createRegexpEOLSpanRule(\n\t\tchar hashChar, int posMatch, String seq, ParserRuleSet delegate,\n\t\tbyte id, byte matchType, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\treturn createRegexpEOLSpanRule(String.valueOf(hashChar),\n\t\t\tposMatch,seq,delegate,id,matchType,ignoreCase);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createRegexpEOLSpanRule", "code": "\tpublic static final ParserRule createRegexpEOLSpanRule(\n\t\tString hashChar, int posMatch, String seq, ParserRuleSet delegate,\n\t\tbyte id, byte matchType, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\tint ruleAction = EOL_SPAN | REGEXP | NO_LINE_BREAK;\n\n\t\treturn new ParserRule(ruleAction, hashChar, posMatch,\n\t\t\tnull, Pattern.compile(seq,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\t0, null, delegate, id, matchType, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [2, 16], [14, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 10], [12, 10], [13, 10], [14, 10], [15, 10], [16, 2], [17, 14], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "createRegexpEOLSpanRule", "code": "\tpublic static final ParserRule createRegexpEOLSpanRule(\n\t\tint posMatch, char[] hashChars, String seq, ParserRuleSet delegate,\n\t\tbyte id, byte matchType, boolean ignoreCase)\n\t\tthrows PatternSyntaxException\n\t{\n\t\tint ruleAction = EOL_SPAN | REGEXP | NO_LINE_BREAK;\n\n\t\treturn new ParserRule(hashChars, ruleAction, posMatch,\n\t\t\tnull, Pattern.compile(seq,(ignoreCase ? Pattern.CASE_INSENSITIVE : 0)),\n\t\t\t0, null, delegate, id, matchType, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [2, 16], [14, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 10], [12, 10], [13, 10], [14, 10], [15, 10], [16, 2], [17, 14], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "createMarkFollowingRule", "code": "\tpublic static final ParserRule createMarkFollowingRule(\n\t\tint posMatch, String seq, byte id, byte matchType)\n\t{\n\t\tint ruleAction = MARK_FOLLOWING;\n\n\t\treturn new ParserRule(ruleAction, seq.substring(0,1), posMatch,\n\t\t\tseq.toCharArray(), null, 0, null, null, id, matchType,\n\t\t\tnull);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [7, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [14, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 7], [10, 7], [11, 7], [12, 7], [13, 7], [14, 7], [15, 14], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "createMarkPreviousRule", "code": "\tpublic static final ParserRule createMarkPreviousRule(\n\t\tint posMatch, String seq, byte id, byte matchType)\n\t{\n\t\tint ruleAction = MARK_PREVIOUS;\n\n\t\treturn new ParserRule(ruleAction, seq.substring(0,1), posMatch,\n\t\t\tseq.toCharArray(), null, 0, null, null, id, matchType,\n\t\t\tnull);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [7, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [14, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 7], [10, 7], [11, 7], [12, 7], [13, 7], [14, 7], [15, 14], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "createEscapeRule", "code": "\tpublic static final ParserRule createEscapeRule(String seq)\n\t{\n\t\tint ruleAction = IS_ESCAPE;\n\n\t\treturn new ParserRule(ruleAction, seq.substring(0,1),\n\t\t\t0, seq.toCharArray(), null, 0, null,\n\t\t\tnull, Token.NULL, MATCH_TYPE_CONTEXT, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\tStringBuilder result = new StringBuilder();\n\t\tresult.append(getClass().getName()).append(\"[action=\");\n\t\tswitch (action & MAJOR_ACTIONS)\n\t\t{\n\t\t\tcase SEQ: result.append(\"SEQ\"); break;\n\t\t\tcase SPAN: result.append(\"SPAN\"); break;\n\t\t\tcase MARK_PREVIOUS: result.append(\"MARK_PREVIOUS\"); break;\n\t\t\tcase MARK_FOLLOWING: result.append(\"MARK_FOLLOWING\"); break;\n\t\t\tcase EOL_SPAN: result.append(\"EOL_SPAN\"); break;\n\t\t\tdefault: result.append(\"UNKNOWN\"); break;\n\t\t}\n\t\tint actionHints = action & ACTION_HINTS;\n\t\tresult.append(\"[matchType=\").append(matchType == MATCH_TYPE_CONTEXT ? \"MATCH_TYPE_CONTEXT\" : (matchType == MATCH_TYPE_RULE ? \"MATCH_TYPE_RULE\" : Token.tokenToString(matchType)));\n\t\tresult.append(\",NO_LINE_BREAK=\").append((actionHints & NO_LINE_BREAK) != 0);\n\t\tresult.append(\",NO_WORD_BREAK=\").append((actionHints & NO_WORD_BREAK) != 0);\n\t\tresult.append(\",IS_ESCAPE=\").append((actionHints & IS_ESCAPE) != 0);\n\t\tresult.append(\",REGEXP=\").append((actionHints & REGEXP) != 0);\n\t\tresult.append(\"],upHashChar=\").append(upHashChar);\n\t\tresult.append(\",upHashChars=\").append(Arrays.toString(upHashChars));\n\t\tresult.append(\",startPosMatch=\");\n\t\tresult.append(\"[AT_LINE_START=\").append((startPosMatch & AT_LINE_START) != 0);\n\t\tresult.append(\",AT_WHITESPACE_END=\").append((startPosMatch & AT_WHITESPACE_END) != 0);\n\t\tresult.append(\",AT_WORD_START=\").append((startPosMatch & AT_WORD_START) != 0);\n\t\tresult.append(\"],start=\").append(null==start?null:String.valueOf(start));\n\t\tresult.append(\",startRegexp=\").append(startRegexp);\n\t\tresult.append(\",endPosMatch=\");\n\t\tresult.append(\"[AT_LINE_START=\").append((endPosMatch & AT_LINE_START) != 0);\n\t\tresult.append(\",AT_WHITESPACE_END=\").append((endPosMatch & AT_WHITESPACE_END) != 0);\n\t\tresult.append(\",AT_WORD_START=\").append((endPosMatch & AT_WORD_START) != 0);\n\t\tresult.append(\"],end=\").append(null==end?null:String.valueOf(end));\n\t\tresult.append(\",delegate=\").append(delegate);\n\t\tresult.append(\",escapeRule=\").append(escapeRule);\n\t\tresult.append(\",token=\").append(Token.tokenToString(token)).append(']');\n\t\treturn result.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "SWITCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [3, 27], [0, 28], [6, 29], [6, 30], [6, 31], [7, 32], [7, 33], [8, 34], [8, 35], [9, 36], [9, 37], [10, 38], [10, 39], [11, 40], [11, 41], [12, 42], [12, 43], [13, 44], [14, 45], [14, 46], [15, 47], [15, 48], [16, 49], [16, 50], [17, 51], [17, 52], [18, 53], [18, 54], [19, 55], [20, 56], [20, 57], [21, 58], [21, 59], [22, 60], [22, 61], [23, 62], [23, 63], [24, 64], [24, 65], [25, 66], [25, 67], [26, 68], [26, 69], [2, 70], [3, 71], [3, 72], [3, 73], [3, 74], [3, 75], [3, 76], [28, 77], [28, 78], [4, 79], [30, 80], [31, 81], [37, 82], [39, 83], [41, 84], [43, 85], [48, 86], [50, 87], [52, 88], [54, 89], [57, 90], [61, 91], [63, 92], [65, 93], [67, 94], [69, 95], [3, 96], [3, 97], [3, 98], [3, 99], [3, 100], [3, 101], [77, 102], [78, 103], [82, 104], [82, 105], [82, 106], [83, 107], [83, 108], [84, 109], [84, 110], [85, 111], [85, 112], [86, 113], [86, 114], [86, 115], [87, 116], [87, 117], [88, 118], [88, 119], [89, 120], [89, 121], [91, 122], [91, 123], [92, 124], [92, 125], [93, 126], [93, 127], [94, 128], [94, 129], [95, 130], [95, 131], [95, 132], [96, 133], [97, 134], [98, 135], [99, 136], [100, 137], [101, 138], [106, 139], [115, 140], [130, 141], [130, 142], [130, 143], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 3], [28, 0], [29, 6], [30, 6], [31, 6], [32, 7], [33, 7], [34, 8], [35, 8], [36, 9], [37, 9], [38, 10], [39, 10], [40, 11], [41, 11], [42, 12], [43, 12], [44, 13], [45, 14], [46, 14], [47, 15], [48, 15], [49, 16], [50, 16], [51, 17], [52, 17], [53, 18], [54, 18], [55, 19], [56, 20], [57, 20], [58, 21], [59, 21], [60, 22], [61, 22], [62, 23], [63, 23], [64, 24], [65, 24], [66, 25], [67, 25], [68, 26], [69, 26], [70, 2], [71, 3], [72, 3], [73, 3], [74, 3], [75, 3], [76, 3], [77, 28], [78, 28], [79, 4], [80, 30], [81, 31], [82, 37], [83, 39], [84, 41], [85, 43], [86, 48], [87, 50], [88, 52], [89, 54], [90, 57], [91, 61], [92, 63], [93, 65], [94, 67], [95, 69], [96, 3], [97, 3], [98, 3], [99, 3], [100, 3], [101, 3], [102, 77], [103, 78], [104, 82], [105, 82], [106, 82], [107, 83], [108, 83], [109, 84], [110, 84], [111, 85], [112, 85], [113, 86], [114, 86], [115, 86], [116, 87], [117, 87], [118, 88], [119, 88], [120, 89], [121, 89], [122, 91], [123, 91], [124, 92], [125, 92], [126, 93], [127, 93], [128, 94], [129, 94], [130, 95], [131, 95], [132, 95], [133, 96], [134, 97], [135, 98], [136, 99], [137, 100], [138, 101], [139, 106], [140, 115], [141, 130], [142, 130], [143, 130], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143]]}, {"function_name": "ParserRule", "code": "\tprivate ParserRule(int action, String hashChar,\n\t\tint startPosMatch, char[] start, Pattern startRegexp,\n\t\tint endPosMatch, char[] end,\n\t\tParserRuleSet delegate, byte token, byte matchType,\n\t\tString escape)\n\t{\n\t\tthis.action = action;\n\t\tthis.upHashChar = null == hashChar ? null : hashChar.toUpperCase();\n\t\tthis.upHashChars = null;\n\t\tthis.startPosMatch = startPosMatch;\n\t\tthis.start = start;\n\t\tthis.startRegexp = startRegexp;\n\t\tthis.endPosMatch = endPosMatch;\n\t\tthis.end = end;\n\t\tthis.delegate = delegate;\n\t\tthis.token = token;\n\t\tthis.matchType = matchType;\n\t\tthis.escapeRule = (escape != null && escape.length() > 0) ?\n\t\t\t\t\tcreateEscapeRule(escape) : null;\n\n\t\tif(this.delegate == null)\n\t\t{\n\t\t\tif((action & MAJOR_ACTIONS) != SEQ)\n\t\t\t{\n\t\t\t\tthis.delegate = ParserRuleSet.getStandardRuleSet(token);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [1, 26], [13, 27], [14, 28], [23, 29], [24, 30], [26, 31], [28, 32], [28, 33], [28, 34], [30, 35], [30, 36], [30, 37], [31, 38], [34, 39], [34, 40], [37, 41], [26, 42], [39, 43], [39, 44], [40, 45], [42, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 1], [27, 13], [28, 14], [29, 23], [30, 24], [31, 26], [32, 28], [33, 28], [34, 28], [35, 30], [36, 30], [37, 30], [38, 31], [39, 34], [40, 34], [41, 37], [42, 26], [43, 39], [44, 39], [45, 40], [46, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "ParserRule", "code": "\tprivate ParserRule(char[] hashChars, int action,\n\t\tint startPosMatch, char[] start, Pattern startRegexp,\n\t\tint endPosMatch, char[] end,\n\t\tParserRuleSet delegate, byte token, byte matchType,\n\t\tString escape)\n\t{\n\t\tthis.action = action;\n\t\tthis.upHashChar = null;\n\t\tSet<Character> hashCharsSet = new HashSet<Character>();\n\t\tfor (char c : hashChars)\n\t\t{\n\t\t\thashCharsSet.add(Character.toUpperCase(c));\n\t\t}\n\t\tthis.upHashChars = new char[hashCharsSet.size()];\n\t\tint i = 0;\n\t\tfor (Character c : hashCharsSet)\n\t\t{\n\t\t\tthis.upHashChars[i++] = c;\n\t\t}\n\t\tArrays.sort(this.upHashChars);\n\t\tthis.startPosMatch = startPosMatch;\n\t\tthis.start = start;\n\t\tthis.startRegexp = startRegexp;\n\t\tthis.endPosMatch = endPosMatch;\n\t\tthis.end = end;\n\t\tthis.delegate = delegate;\n\t\tthis.token = token;\n\t\tthis.matchType = matchType;\n\t\tthis.escapeRule = (escape != null && escape.length() > 0) ?\n\t\t\t\t\tcreateEscapeRule(escape) : null;\n\n\t\tif(this.delegate == null)\n\t\t{\n\t\t\tif((action & MAJOR_ACTIONS) != SEQ)\n\t\t\t{\n\t\t\t\tthis.delegate = ParserRuleSet.getStandardRuleSet(token);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [1, 31], [17, 32], [18, 33], [3, 34], [5, 35], [29, 36], [31, 37], [33, 38], [33, 39], [33, 40], [2, 41], [28, 42], [4, 43], [37, 44], [40, 45], [40, 46], [43, 47], [31, 48], [45, 49], [45, 50], [46, 51], [48, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 1], [32, 17], [33, 18], [34, 3], [35, 5], [36, 29], [37, 31], [38, 33], [39, 33], [40, 33], [41, 2], [42, 28], [43, 4], [44, 37], [45, 40], [46, 40], [47, 43], [48, 31], [49, 45], [50, 45], [51, 46], [52, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}], "label": 0}
{"sample_id": "camel-1.4-2268", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/converter/jaxp/StaxConverter.java", "language": "java", "name": "org.apache.camel.converter.jaxp.StaxConverter", "code": "@Converter\npublic class StaxConverter {\n    private XMLInputFactory inputFactory;\n    private XMLOutputFactory outputFactory;\n\n    @Converter\n    public XMLEventWriter createXMLEventWriter(OutputStream out) throws XMLStreamException {\n        return getOutputFactory().createXMLEventWriter(out);\n    }\n\n    @Converter\n    public XMLEventWriter createXMLEventWriter(Writer writer) throws XMLStreamException {\n        return getOutputFactory().createXMLEventWriter(writer);\n    }\n\n    @Converter\n    public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException {\n        return getOutputFactory().createXMLEventWriter(result);\n    }\n\n    @Converter\n    public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream) throws XMLStreamException {\n        return getOutputFactory().createXMLStreamWriter(outputStream);\n    }\n\n    @Converter\n    public XMLStreamWriter createXMLStreamWriter(Writer writer) throws XMLStreamException {\n        return getOutputFactory().createXMLStreamWriter(writer);\n    }\n\n    @Converter\n    public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException {\n        return getOutputFactory().createXMLStreamWriter(result);\n    }\n\n    @Converter\n    public XMLStreamReader createXMLStreamReader(InputStream in) throws XMLStreamException {\n        return getInputFactory().createXMLStreamReader(in);\n    }\n\n    @Converter\n    public XMLStreamReader createXMLStreamReader(Reader in) throws XMLStreamException {\n        return getInputFactory().createXMLStreamReader(in);\n    }\n\n    @Converter\n    public XMLStreamReader createXMLStreamReader(Source in) throws XMLStreamException {\n        return getInputFactory().createXMLStreamReader(in);\n    }\n\n    @Converter\n    public XMLEventReader createXMLEventReader(InputStream in) throws XMLStreamException {\n        return getInputFactory().createXMLEventReader(in);\n    }\n\n    @Converter\n    public XMLEventReader createXMLEventReader(Reader in) throws XMLStreamException {\n        return getInputFactory().createXMLEventReader(in);\n    }\n\n    @Converter\n    public XMLEventReader createXMLEventReader(XMLStreamReader in) throws XMLStreamException {\n        return getInputFactory().createXMLEventReader(in);\n    }\n\n    @Converter\n    public XMLEventReader createXMLEventReader(Source in) throws XMLStreamException {\n        return getInputFactory().createXMLEventReader(in);\n    }\n\n\n    public XMLInputFactory getInputFactory() {\n        if (inputFactory == null) {\n            inputFactory = XMLInputFactory.newInstance();\n        }\n        return inputFactory;\n    }\n\n    public void setInputFactory(XMLInputFactory inputFactory) {\n        this.inputFactory = inputFactory;\n    }\n\n    public XMLOutputFactory getOutputFactory() {\n        if (outputFactory == null) {\n            outputFactory = XMLOutputFactory.newInstance();\n        }\n        return outputFactory;\n    }\n\n    public void setOutputFactory(XMLOutputFactory outputFactory) {\n        this.outputFactory = outputFactory;", "functions": [{"function_name": "createXMLEventWriter", "code": "    @Converter\n    public XMLEventWriter createXMLEventWriter(OutputStream out) throws XMLStreamException {\n        return getOutputFactory().createXMLEventWriter(out);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLEventWriter", "code": "    @Converter\n    public XMLEventWriter createXMLEventWriter(Writer writer) throws XMLStreamException {\n        return getOutputFactory().createXMLEventWriter(writer);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLEventWriter", "code": "    @Converter\n    public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException {\n        return getOutputFactory().createXMLEventWriter(result);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLStreamWriter", "code": "    @Converter\n    public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream) throws XMLStreamException {\n        return getOutputFactory().createXMLStreamWriter(outputStream);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLStreamWriter", "code": "    @Converter\n    public XMLStreamWriter createXMLStreamWriter(Writer writer) throws XMLStreamException {\n        return getOutputFactory().createXMLStreamWriter(writer);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLStreamWriter", "code": "    @Converter\n    public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException {\n        return getOutputFactory().createXMLStreamWriter(result);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLStreamReader", "code": "    @Converter\n    public XMLStreamReader createXMLStreamReader(InputStream in) throws XMLStreamException {\n        return getInputFactory().createXMLStreamReader(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLStreamReader", "code": "    @Converter\n    public XMLStreamReader createXMLStreamReader(Reader in) throws XMLStreamException {\n        return getInputFactory().createXMLStreamReader(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLStreamReader", "code": "    @Converter\n    public XMLStreamReader createXMLStreamReader(Source in) throws XMLStreamException {\n        return getInputFactory().createXMLStreamReader(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLEventReader", "code": "    @Converter\n    public XMLEventReader createXMLEventReader(InputStream in) throws XMLStreamException {\n        return getInputFactory().createXMLEventReader(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLEventReader", "code": "    @Converter\n    public XMLEventReader createXMLEventReader(Reader in) throws XMLStreamException {\n        return getInputFactory().createXMLEventReader(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLEventReader", "code": "    @Converter\n    public XMLEventReader createXMLEventReader(XMLStreamReader in) throws XMLStreamException {\n        return getInputFactory().createXMLEventReader(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createXMLEventReader", "code": "    @Converter\n    public XMLEventReader createXMLEventReader(Source in) throws XMLStreamException {\n        return getInputFactory().createXMLEventReader(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getInputFactory", "code": "    public XMLInputFactory getInputFactory() {\n        if (inputFactory == null) {\n            inputFactory = XMLInputFactory.newInstance();\n        }\n        return inputFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setInputFactory", "code": "    public void setInputFactory(XMLInputFactory inputFactory) {\n        this.inputFactory = inputFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputFactory", "code": "    public XMLOutputFactory getOutputFactory() {\n        if (outputFactory == null) {\n            outputFactory = XMLOutputFactory.newInstance();\n        }\n        return outputFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOutputFactory", "code": "    public void setOutputFactory(XMLOutputFactory outputFactory) {\n        this.outputFactory = outputFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-940", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/JavaResource.java", "language": "java", "name": "org.apache.tools.ant.types.resources.JavaResource", "code": "public class JavaResource extends Resource {\n\n    private Path classpath;\n    private Reference loader;\n\n    /**\n     * Default constructor.\n     */\n    public JavaResource() {\n    }\n\n    /**\n     * Construct a new JavaResource using the specified name and\n     * classpath.\n     *\n     * @param name   the resource name.\n     * @param path   the classpath.\n     */\n    public JavaResource(String name, Path path) {\n        setName(name);\n        classpath = path;\n    }\n\n    /**\n     * Set the classpath to use when looking up a resource.\n     * @param classpath to add to any existing classpath\n     */\n    public void setClasspath(Path classpath) {\n        checkAttributesAllowed();\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);\n        }\n    }\n\n    /**\n     * Add a classpath to use when looking up a resource.\n     * @return The classpath to be configured\n     */\n    public Path createClasspath() {\n        checkChildrenAllowed();\n        if (this.classpath == null) {\n            this.classpath = new Path(getProject());\n        }\n        return this.classpath.createPath();\n    }\n\n    /**\n     * Set the classpath to use when looking up a resource,\n     * given as reference to a &lt;path&gt; defined elsewhere\n     * @param r The reference value\n     */\n    public void setClasspathRef(Reference r) {\n        checkAttributesAllowed();\n        createClasspath().setRefid(r);\n    }\n\n    /**\n     * get the classpath used by this <code>LoadProperties</code>.\n     * @return The classpath\n     */\n    public Path getClasspath() {\n        return isReference()\n            ? ((JavaResource) getCheckedRef()).getClasspath() : classpath;\n    }\n\n    /**\n     * Use the reference to locate the loader. If the loader is not\n     * found, taskdef will use the specified classpath and register it\n     * with the specified name.\n     *\n     * This allow multiple taskdef/typedef to use the same class loader,\n     * so they can be used together. It eliminate the need to\n     * put them in the CLASSPATH.\n     *\n     * @param r the reference to locate the loader.\n     */\n    public void setLoaderRef(Reference r) {\n        checkAttributesAllowed();\n        loader = r;\n    }\n\n    /**\n     * Overrides the super version.\n     * @param r the Reference to set.\n     */\n    public void setRefid(Reference r) {\n        if (loader != null || classpath != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);\n    }\n\n    /**\n     * Learn whether this file exists.\n     * @return true if this resource exists.\n     */\n    public boolean isExists() {\n        InputStream is = null;\n        try {\n            return isReference() ? ((Resource) getCheckedRef()).isExists()\n                : (is = getInputStream()) != null;\n        } catch (IOException ex) {\n            return false;\n        } finally {\n            FileUtils.close(is);\n        }\n    }\n\n    /**\n     * Return an InputStream for reading the contents of this Resource.\n     * @return an InputStream object.\n     * @throws IOException if an error occurs.\n     */\n    public InputStream getInputStream() throws IOException {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getInputStream();\n        }\n        ClassLoader cl = null;\n        if (loader != null) {\n            cl = (ClassLoader) loader.getReferencedObject();\n        }\n        if (cl == null) {\n            if (getClasspath() != null) {\n                cl = getProject().createClassLoader(classpath);\n            } else {\n                cl = JavaResource.class.getClassLoader();\n            }\n            if (loader != null && cl != null) {\n                getProject().addReference(loader.getRefId(), cl);\n            }\n        }\n\n        return cl == null ? ClassLoader.getSystemResourceAsStream(getName())\n            : cl.getResourceAsStream(getName());\n    }\n\n    /**\n     * Compare this JavaResource to another Resource.\n     * @param another the other Resource against which to compare.\n     * @return a negative integer, zero, or a positive integer as this\n     * JavaResource is less than, equal to, or greater than the\n     * specified Resource.\n     */\n    public int compareTo(Object another) {\n        if (isReference()) {\n            return ((Comparable) getCheckedRef()).compareTo(another);\n        }\n        if (another.getClass().equals(getClass())) {\n            JavaResource otherjr = (JavaResource) another;\n            if (!getName().equals(otherjr.getName())) {\n                return getName().compareTo(otherjr.getName());\n            }\n            if (loader != otherjr.loader) {\n                if (loader == null) {\n                    return -1;\n                }\n                if (otherjr.loader == null) {\n                    return 1;\n                }\n                return loader.getRefId().compareTo(otherjr.loader.getRefId());\n            }\n            Path p = getClasspath();\n            Path op = otherjr.getClasspath();\n            if (p != op) {\n                if (p == null) {\n                    return -1;\n                }\n                if (op == null) {\n                    return 1;\n                }\n                return p.toString().compareTo(op.toString());\n            }\n            return 0;\n        }\n        return super.compareTo(another);", "functions": [{"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        checkAttributesAllowed();\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        checkChildrenAllowed();\n        if (this.classpath == null) {\n            this.classpath = new Path(getProject());\n        }\n        return this.classpath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [0, 4], [1, 5], [3, 6], [2, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 2], [4, 0], [5, 1], [6, 3], [7, 2], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        checkAttributesAllowed();\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getClasspath", "code": "    public Path getClasspath() {\n        return isReference()\n            ? ((JavaResource) getCheckedRef()).getClasspath() : classpath;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setLoaderRef", "code": "    public void setLoaderRef(Reference r) {\n        checkAttributesAllowed();\n        loader = r;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRefid", "code": "    public void setRefid(Reference r) {\n        if (loader != null || classpath != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isExists", "code": "    public boolean isExists() {\n        InputStream is = null;\n        try {\n            return isReference() ? ((Resource) getCheckedRef()).isExists()\n                : (is = getInputStream()) != null;\n        } catch (IOException ex) {\n            return false;\n        } finally {\n            FileUtils.close(is);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "CATCH", "RETURN", "CALL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [2, 8], [6, 9], [7, 10], [7, 11], [10, 12], [10, 13], [7, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 2], [9, 6], [10, 7], [11, 7], [12, 10], [13, 10], [14, 7], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getInputStream", "code": "    public InputStream getInputStream() throws IOException {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getInputStream();\n        }\n        ClassLoader cl = null;\n        if (loader != null) {\n            cl = (ClassLoader) loader.getReferencedObject();\n        }\n        if (cl == null) {\n            if (getClasspath() != null) {\n                cl = getProject().createClassLoader(classpath);\n            } else {\n                cl = JavaResource.class.getClassLoader();\n            }\n            if (loader != null && cl != null) {\n                getProject().addReference(loader.getRefId(), cl);\n            }\n        }\n\n        return cl == null ? ClassLoader.getSystemResourceAsStream(getName())\n            : cl.getResourceAsStream(getName());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "COND_EXPR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [5, 9], [6, 10], [6, 11], [6, 12], [2, 13], [2, 14], [7, 15], [8, 16], [4, 17], [5, 18], [10, 19], [11, 20], [12, 21], [13, 22], [14, 23], [3, 24], [22, 25], [22, 26], [23, 27], [23, 28], [18, 29], [13, 30], [25, 31], [26, 32], [14, 33], [14, 34], [24, 35], [30, 36], [33, 37], [34, 38], [36, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 5], [10, 6], [11, 6], [12, 6], [13, 2], [14, 2], [15, 7], [16, 8], [17, 4], [18, 5], [19, 10], [20, 11], [21, 12], [22, 13], [23, 14], [24, 3], [25, 22], [26, 22], [27, 23], [28, 23], [29, 18], [30, 13], [31, 25], [32, 26], [33, 14], [34, 14], [35, 24], [36, 30], [37, 33], [38, 34], [39, 36], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "compareTo", "code": "    public int compareTo(Object another) {\n        if (isReference()) {\n            return ((Comparable) getCheckedRef()).compareTo(another);\n        }\n        if (another.getClass().equals(getClass())) {\n            JavaResource otherjr = (JavaResource) another;\n            if (!getName().equals(otherjr.getName())) {\n                return getName().compareTo(otherjr.getName());\n            }\n            if (loader != otherjr.loader) {\n                if (loader == null) {\n                    return -1;\n                }\n                if (otherjr.loader == null) {\n                    return 1;\n                }\n                return loader.getRefId().compareTo(otherjr.loader.getRefId());\n            }\n            Path p = getClasspath();\n            Path op = otherjr.getClasspath();\n            if (p != op) {\n                if (p == null) {\n                    return -1;\n                }\n                if (op == null) {\n                    return 1;\n                }\n                return p.toString().compareTo(op.toString());\n            }\n            return 0;\n        }\n        return super.compareTo(another);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "IF", "IF", "CALL", "CALL", "RETURN", "IF", "IF", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [5, 14], [3, 15], [7, 16], [8, 17], [11, 18], [12, 19], [14, 20], [8, 21], [8, 22], [8, 23], [9, 24], [10, 25], [11, 26], [11, 27], [11, 28], [12, 29], [19, 30], [15, 31], [21, 32], [22, 33], [23, 34], [26, 35], [27, 36], [28, 37], [29, 38], [30, 39], [32, 40], [22, 41], [33, 42], [23, 43], [34, 44], [35, 45], [27, 46], [36, 47], [28, 48], [37, 49], [38, 50], [40, 51], [41, 52], [43, 53], [45, 54], [46, 55], [48, 56], [50, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 5], [15, 3], [16, 7], [17, 8], [18, 11], [19, 12], [20, 14], [21, 8], [22, 8], [23, 8], [24, 9], [25, 10], [26, 11], [27, 11], [28, 11], [29, 12], [30, 19], [31, 15], [32, 21], [33, 22], [34, 23], [35, 26], [36, 27], [37, 28], [38, 29], [39, 30], [40, 32], [41, 22], [42, 33], [43, 23], [44, 34], [45, 35], [46, 27], [47, 36], [48, 28], [49, 37], [50, 38], [51, 40], [52, 41], [53, 43], [54, 45], [55, 46], [56, 48], [57, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "JavaResource", "code": "    public JavaResource() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "JavaResource", "code": "    public JavaResource(String name, Path path) {\n        setName(name);\n        classpath = path;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-3.2-3626", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/options/ToolBarOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.ToolBarOptionPane", "code": "public class ToolBarOptionPane extends AbstractOptionPane\n{\n\tpublic ToolBarOptionPane()\n\t{\n\t\tsuper(\"toolbar\");\n\t}\n\n\t// protected members\n\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\n\t\tJPanel panel = new JPanel(new GridLayout(2,1));\n\n\t\t/* Show toolbar */\n\t\tshowToolbar = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.toolbar.showToolbar\"));\n\t\tshowToolbar.setSelected(jEdit.getBooleanProperty(\"view.showToolbar\"));\n\t\tpanel.add(showToolbar);\n\n\t\tpanel.add(new JLabel(jEdit.getProperty(\n\t\t\t\"options.toolbar.caption\")));\n\n\t\tadd(BorderLayout.NORTH,panel);\n\n\t\tString toolbar = jEdit.getProperty(\"view.toolbar\");\n\t\tStringTokenizer st = new StringTokenizer(toolbar);\n\t\tlistModel = new DefaultListModel();\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString actionName = (String)st.nextToken();\n\n\t\t\tString label = ContextOptionPane.getActionLabel(actionName);\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\n\t\t\tIcon icon;\n\t\t\tString iconName;\n\t\t\tif(actionName.equals(\"-\"))\n\t\t\t{\n\t\t\t\ticonName = null;\n\t\t\t\ticon = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ticonName = jEdit.getProperty(actionName + \".icon\");\n\t\t\t\tif(iconName == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\ticon = GUIUtilities.loadIcon(iconName);\n\t\t\t}\n\t\t\tlistModel.addElement(new Button(actionName,iconName,icon,label));\n\t\t}\n\n\t\tlist = new JList(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.addListSelectionListener(new ListHandler());\n\t\tlist.setCellRenderer(new ButtonCellRenderer());\n\n\t\tadd(BorderLayout.CENTER,new JScrollPane(list));\n\n\t\tJPanel buttons = new JPanel();\n\t\tbuttons.setBorder(new EmptyBorder(3,0,0,0));\n\t\tbuttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));\n\t\tbuttons.add(Box.createGlue());\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tadd = new JButton(jEdit.getProperty(\"options.toolbar.add\"));\n\t\tadd.addActionListener(actionHandler);\n\t\tbuttons.add(add);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tremove = new JButton(jEdit.getProperty(\"options.toolbar.remove\"));\n\t\tremove.addActionListener(actionHandler);\n\t\tbuttons.add(remove);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveUp = new JButton(jEdit.getProperty(\"options.toolbar.moveUp\"));\n\t\tmoveUp.addActionListener(actionHandler);\n\t\tbuttons.add(moveUp);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveDown = new JButton(jEdit.getProperty(\"options.toolbar.moveDown\"));\n\t\tmoveDown.addActionListener(actionHandler);\n\t\tbuttons.add(moveDown);\n\t\tbuttons.add(Box.createGlue());\n\n\t\tupdateButtons();\n\t\tadd(BorderLayout.SOUTH,buttons);\n\n\t\t// create actions list\n\t\tEditAction[] actions = jEdit.getActions();\n\t\tVector vector = new Vector(actions.length);\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tString actionName = actions[i].getName();\n\t\t\tString label = jEdit.getProperty(actionName + \".label\");\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\t\t\tvector.addElement(new Button(actionName,null,null,label));\n\t\t}\n\t\tMiscUtilities.quicksort(vector,new ButtonCompare());\n\n\t\tactionsList = new DefaultListModel();\n\t\tactionsList.ensureCapacity(vector.size());\n\t\tfor(int i = 0; i < vector.size(); i++)\n\t\t{\n\t\t\tactionsList.addElement(vector.elementAt(i));\n\t\t}\n\n\t\t// create icons list\n\t\ticonList = new DefaultComboBoxModel();\n\t\tst = new StringTokenizer(jEdit.getProperty(\"icons\"));\n\t\twhile(st.hasMoreElements())\n\t\t{\n\t\t\tString icon = st.nextToken();\n\t\t\ticonList.addElement(new IconListEntry(\n\t\t\t\tGUIUtilities.loadIcon(icon),icon));\n\t\t}\n\t}\n\n\tclass ButtonCompare implements MiscUtilities.Compare\n\t{\n\t\tpublic int compare(Object obj1, Object obj2)\n\t\t{\n\t\t\treturn ((Button)obj1).label.toLowerCase().compareTo(\n\t\t\t\t((Button)obj2).label.toLowerCase());\n\t\t}\n\t}\n\n\tprotected void _save()\n\t{\n\t\tjEdit.setBooleanProperty(\"view.showToolbar\",showToolbar\n\t\t\t.isSelected());\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor(int i = 0; i < listModel.getSize(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(' ');\n\t\t\tButton button = (Button)listModel.elementAt(i);\n\t\t\tbuf.append(button.actionName);\n\t\t\tjEdit.setProperty(button.actionName + \".icon\",button.iconName);\n\t\t}\n\t\tjEdit.setProperty(\"view.toolbar\",buf.toString());\n\t}\n\n\t// private members\n\tprivate JCheckBox showToolbar;\n\tprivate DefaultListModel listModel;\n\tprivate JList list;\n\tprivate JButton add;\n\tprivate JButton remove;\n\tprivate JButton moveUp, moveDown;\n\n\tprivate DefaultListModel actionsList;\n\tprivate DefaultComboBoxModel iconList;\n\n\tprivate void updateButtons()\n\t{\n\t\tint index = list.getSelectedIndex();\n\t\tremove.setEnabled(index != -1 && listModel.getSize() != 0);\n\t\tmoveUp.setEnabled(index > 0);\n\t\tmoveDown.setEnabled(index != -1 && index != listModel.getSize() - 1);\n\t}\n\n\tstatic class Button\n\t{\n\t\tString actionName;\n\t\tString iconName;\n\t\tIcon icon;\n\t\tString label;\n\n\t\tButton(String actionName, String iconName, Icon icon, String label)\n\t\t{\n\t\t\tthis.actionName = actionName;\n\t\t\tthis.iconName = iconName;\n\t\t\tthis.icon = icon;\n\t\t\tif(label.equals(\"-\"))\n\t\t\t\tthis.label = label;\n\t\t\telse\n\t\t\t\tthis.label = GUIUtilities.prettifyMenuLabel(label);\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn label;\n\t\t}\n\t}\n\n\tstatic class IconListEntry\n\t{\n\t\tIcon icon;\n\t\tString name;\n\n\t\tIconListEntry(Icon icon, String name)\n\t\t{\n\t\t\tthis.icon = icon;\n\t\t\tthis.name = name;\n\t\t}\n\t}\n\n\tstatic class ButtonCellRenderer extends DefaultListCellRenderer\n\t{\n\t\tpublic Component getListCellRendererComponent(JList list,\n\t\t\tObject value, int index, boolean isSelected,\n\t\t\tboolean cellHasFocus)\n\t\t{\n\t\t\tsuper.getListCellRendererComponent(list,value,index,\n\t\t\t\tisSelected,cellHasFocus);\n\n\t\t\tButton button = (Button)value;\n\t\t\tsetText(button.label);\n\t\t\tsetIcon(button.icon);\n\n\t\t\treturn this;\n\t\t}\n\t}\n\n\tstatic class IconCellRenderer extends DefaultListCellRenderer\n\t{\n\t\tpublic Component getListCellRendererComponent(JList list,\n\t\t\tObject value, int index, boolean isSelected,\n\t\t\tboolean cellHasFocus)\n\t\t{\n\t\t\tsuper.getListCellRendererComponent(list,value,index,\n\t\t\t\tisSelected,cellHasFocus);\n\n\t\t\tIconListEntry icon = (IconListEntry)value;\n\t\t\tsetText(icon.name);\n\t\t\tsetIcon(icon.icon);\n\n\t\t\treturn this;\n\t\t}\n\t}\n\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\n\t\t\tif(source == add)\n\t\t\t{\n\t\t\t\tToolBarAddDialog dialog = new ToolBarAddDialog(\n\t\t\t\t\tToolBarOptionPane.this,\n\t\t\t\t\tactionsList,iconList);\n\t\t\t\tButton selection = dialog.getSelection();\n\t\t\t\tif(selection == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tif(index == -1)\n\t\t\t\t\tindex = listModel.getSize();\n\t\t\t\telse\n\t\t\t\t\tindex++;\n\n\t\t\t\tlistModel.insertElementAt(selection,index);\n\t\t\t\tlist.setSelectedIndex(index);\n\t\t\t}\n\t\t\telse if(source == remove)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tupdateButtons();\n\t\t\t}\n\t\t\telse if(source == moveUp)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tObject selected = list.getSelectedValue();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tlistModel.insertElementAt(selected,index-1);\n\t\t\t\tlist.setSelectedIndex(index-1);\n\t\t\t}\n\t\t\telse if(source == moveDown)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tObject selected = list.getSelectedValue();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tlistModel.insertElementAt(selected,index+1);\n\t\t\t\tlist.setSelectedIndex(index+1);\n\t\t\t}\n\t\t}\n\t}\n\n\tclass ListHandler implements ListSelectionListener\n\t{\n\t\tpublic void valueChanged(ListSelectionEvent evt)\n\t\t{\n\t\t\tupdateButtons();", "functions": [{"function_name": "_init", "code": "\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\n\t\tJPanel panel = new JPanel(new GridLayout(2,1));\n\n\t\t/* Show toolbar */\n\t\tshowToolbar = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.toolbar.showToolbar\"));\n\t\tshowToolbar.setSelected(jEdit.getBooleanProperty(\"view.showToolbar\"));\n\t\tpanel.add(showToolbar);\n\n\t\tpanel.add(new JLabel(jEdit.getProperty(\n\t\t\t\"options.toolbar.caption\")));\n\n\t\tadd(BorderLayout.NORTH,panel);\n\n\t\tString toolbar = jEdit.getProperty(\"view.toolbar\");\n\t\tStringTokenizer st = new StringTokenizer(toolbar);\n\t\tlistModel = new DefaultListModel();\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString actionName = (String)st.nextToken();\n\n\t\t\tString label = ContextOptionPane.getActionLabel(actionName);\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\n\t\t\tIcon icon;\n\t\t\tString iconName;\n\t\t\tif(actionName.equals(\"-\"))\n\t\t\t{\n\t\t\t\ticonName = null;\n\t\t\t\ticon = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ticonName = jEdit.getProperty(actionName + \".icon\");\n\t\t\t\tif(iconName == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\ticon = GUIUtilities.loadIcon(iconName);\n\t\t\t}\n\t\t\tlistModel.addElement(new Button(actionName,iconName,icon,label));\n\t\t}\n\n\t\tlist = new JList(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.addListSelectionListener(new ListHandler());\n\t\tlist.setCellRenderer(new ButtonCellRenderer());\n\n\t\tadd(BorderLayout.CENTER,new JScrollPane(list));\n\n\t\tJPanel buttons = new JPanel();\n\t\tbuttons.setBorder(new EmptyBorder(3,0,0,0));\n\t\tbuttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));\n\t\tbuttons.add(Box.createGlue());\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tadd = new JButton(jEdit.getProperty(\"options.toolbar.add\"));\n\t\tadd.addActionListener(actionHandler);\n\t\tbuttons.add(add);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tremove = new JButton(jEdit.getProperty(\"options.toolbar.remove\"));\n\t\tremove.addActionListener(actionHandler);\n\t\tbuttons.add(remove);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveUp = new JButton(jEdit.getProperty(\"options.toolbar.moveUp\"));\n\t\tmoveUp.addActionListener(actionHandler);\n\t\tbuttons.add(moveUp);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveDown = new JButton(jEdit.getProperty(\"options.toolbar.moveDown\"));\n\t\tmoveDown.addActionListener(actionHandler);\n\t\tbuttons.add(moveDown);\n\t\tbuttons.add(Box.createGlue());\n\n\t\tupdateButtons();\n\t\tadd(BorderLayout.SOUTH,buttons);\n\n\t\t// create actions list\n\t\tEditAction[] actions = jEdit.getActions();\n\t\tVector vector = new Vector(actions.length);\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tString actionName = actions[i].getName();\n\t\t\tString label = jEdit.getProperty(actionName + \".label\");\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\t\t\tvector.addElement(new Button(actionName,null,null,label));\n\t\t}\n\t\tMiscUtilities.quicksort(vector,new ButtonCompare());\n\n\t\tactionsList = new DefaultListModel();\n\t\tactionsList.ensureCapacity(vector.size());\n\t\tfor(int i = 0; i < vector.size(); i++)\n\t\t{\n\t\t\tactionsList.addElement(vector.elementAt(i));\n\t\t}\n\n\t\t// create icons list\n\t\ticonList = new DefaultComboBoxModel();\n\t\tst = new StringTokenizer(jEdit.getProperty(\"icons\"));\n\t\twhile(st.hasMoreElements())\n\t\t{\n\t\t\tString icon = st.nextToken();\n\t\t\ticonList.addElement(new IconListEntry(\n\t\t\t\tGUIUtilities.loadIcon(icon),icon));", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [0, 14], [2, 15], [0, 16], [0, 17], [0, 18], [3, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [8, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [1, 54], [13, 55], [14, 56], [15, 57], [16, 58], [17, 59], [18, 60], [3, 61], [3, 62], [3, 63], [4, 64], [5, 65], [22, 66], [25, 67], [26, 68], [29, 69], [30, 70], [33, 71], [34, 72], [37, 73], [6, 74], [38, 75], [39, 76], [40, 77], [7, 78], [41, 79], [42, 80], [43, 81], [45, 82], [8, 83], [8, 84], [8, 85], [8, 86], [8, 87], [8, 88], [47, 89], [9, 90], [10, 91], [49, 92], [51, 93], [52, 94], [11, 95], [53, 96], [1, 97], [55, 98], [2, 99], [2, 100], [3, 101], [61, 102], [61, 103], [3, 104], [67, 105], [68, 106], [69, 107], [70, 108], [71, 109], [72, 110], [73, 111], [77, 112], [77, 113], [77, 114], [77, 115], [8, 116], [83, 117], [86, 118], [86, 119], [91, 120], [92, 121], [93, 122], [94, 123], [95, 124], [97, 125], [54, 126], [98, 127], [99, 128], [101, 129], [103, 130], [62, 131], [105, 132], [107, 133], [109, 134], [111, 135], [116, 136], [83, 137], [117, 138], [119, 139], [87, 140], [121, 141], [123, 142], [124, 143], [124, 144], [125, 145], [129, 146], [129, 147], [131, 148], [63, 149], [83, 150], [137, 151], [137, 152], [83, 153], [83, 154], [83, 155], [88, 156], [148, 157], [150, 158], [152, 159], [153, 160], [154, 161], [155, 162], [160, 163], [163, 164], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 0], [15, 2], [16, 0], [17, 0], [18, 0], [19, 3], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 8], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 1], [55, 13], [56, 14], [57, 15], [58, 16], [59, 17], [60, 18], [61, 3], [62, 3], [63, 3], [64, 4], [65, 5], [66, 22], [67, 25], [68, 26], [69, 29], [70, 30], [71, 33], [72, 34], [73, 37], [74, 6], [75, 38], [76, 39], [77, 40], [78, 7], [79, 41], [80, 42], [81, 43], [82, 45], [83, 8], [84, 8], [85, 8], [86, 8], [87, 8], [88, 8], [89, 47], [90, 9], [91, 10], [92, 49], [93, 51], [94, 52], [95, 11], [96, 53], [97, 1], [98, 55], [99, 2], [100, 2], [101, 3], [102, 61], [103, 61], [104, 3], [105, 67], [106, 68], [107, 69], [108, 70], [109, 71], [110, 72], [111, 73], [112, 77], [113, 77], [114, 77], [115, 77], [116, 8], [117, 83], [118, 86], [119, 86], [120, 91], [121, 92], [122, 93], [123, 94], [124, 95], [125, 97], [126, 54], [127, 98], [128, 99], [129, 101], [130, 103], [131, 62], [132, 105], [133, 107], [134, 109], [135, 111], [136, 116], [137, 83], [138, 117], [139, 119], [140, 87], [141, 121], [142, 123], [143, 124], [144, 124], [145, 125], [146, 129], [147, 129], [148, 131], [149, 63], [150, 83], [151, 137], [152, 137], [153, 83], [154, 83], [155, 83], [156, 88], [157, 148], [158, 150], [159, 152], [160, 153], [161, 154], [162, 155], [163, 160], [164, 163], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164]]}, {"function_name": "_save", "code": "\tprotected void _save()\n\t{\n\t\tjEdit.setBooleanProperty(\"view.showToolbar\",showToolbar\n\t\t\t.isSelected());\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor(int i = 0; i < listModel.getSize(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(' ');\n\t\t\tButton button = (Button)listModel.elementAt(i);\n\t\t\tbuf.append(button.actionName);\n\t\t\tjEdit.setProperty(button.actionName + \".icon\",button.iconName);\n\t\t}\n\t\tjEdit.setProperty(\"view.toolbar\",buf.toString());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [3, 7], [1, 8], [1, 9], [4, 10], [2, 11], [5, 12], [5, 13], [1, 14], [1, 15], [9, 16], [1, 17], [14, 18], [9, 19], [16, 20], [18, 21], [8, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 3], [8, 1], [9, 1], [10, 4], [11, 2], [12, 5], [13, 5], [14, 1], [15, 1], [16, 9], [17, 1], [18, 14], [19, 9], [20, 16], [21, 18], [22, 8], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "updateButtons", "code": "\tprivate void updateButtons()\n\t{\n\t\tint index = list.getSelectedIndex();\n\t\tremove.setEnabled(index != -1 && listModel.getSize() != 0);\n\t\tmoveUp.setEnabled(index > 0);\n\t\tmoveDown.setEnabled(index != -1 && index != listModel.getSize() - 1);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 8], [5, 9], [5, 10], [6, 11], [7, 12], [7, 13], [9, 14], [10, 15], [12, 16], [12, 17], [13, 18], [14, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 1], [9, 5], [10, 5], [11, 6], [12, 7], [13, 7], [14, 9], [15, 10], [16, 12], [17, 12], [18, 13], [19, 14], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "ToolBarOptionPane", "code": "\tpublic ToolBarOptionPane()\n\t{\n\t\tsuper(\"toolbar\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "log4j-1.2-4989", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/lf5/viewer/LogTable.java", "language": "java", "name": "org.apache.log4j.lf5.viewer.LogTable", "code": "public class LogTable extends JTable {\n  private static final long serialVersionUID = 4867085140195148458L;\n  //--------------------------------------------------------------------------\n  //   Constants:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Protected Variables:\n  //--------------------------------------------------------------------------\n  protected int _rowHeight = 30;\n  protected JTextArea _detailTextArea;\n\n  // For the columns:\n  protected int _numCols = 9;\n  protected TableColumn[] _tableColumns = new TableColumn[_numCols];\n  protected int[] _colWidths = {40, 40, 40, 70, 70, 360, 440, 200, 60};\n  protected LogTableColumn[] _colNames = LogTableColumn.getLogTableColumnArray();\n  protected int _colDate = 0;\n  protected int _colThread = 1;\n  protected int _colMessageNum = 2;\n  protected int _colLevel = 3;\n  protected int _colNDC = 4;\n  protected int _colCategory = 5;\n  protected int _colMessage = 6;\n  protected int _colLocation = 7;\n  protected int _colThrown = 8;\n\n  protected DateFormatManager _dateFormatManager = null;\n\n  //--------------------------------------------------------------------------\n  //   Private Variables:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Constructors:\n  //--------------------------------------------------------------------------\n\n  public LogTable(JTextArea detailTextArea) {\n    super();\n\n    init();\n\n    _detailTextArea = detailTextArea;\n\n    setModel(new FilteredLogTableModel());\n\n    Enumeration columns = getColumnModel().getColumns();\n    int i = 0;\n    while (columns.hasMoreElements()) {\n      TableColumn col = (TableColumn) columns.nextElement();\n      col.setCellRenderer(new LogTableRowRenderer());\n      col.setPreferredWidth(_colWidths[i]);\n\n      _tableColumns[i] = col;\n      i++;\n    }\n\n    ListSelectionModel rowSM = getSelectionModel();\n    rowSM.addListSelectionListener(new LogTableListSelectionListener(this));\n\n    //setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);\n  }\n\n  //--------------------------------------------------------------------------\n  //   Public Methods:\n  //--------------------------------------------------------------------------\n\n  /**\n   * Get the DateFormatManager for formatting dates.\n   */\n  public DateFormatManager getDateFormatManager() {\n    return _dateFormatManager;\n  }\n\n  /**\n   * Set the date format manager for formatting dates.\n   */\n  public void setDateFormatManager(DateFormatManager dfm) {\n    _dateFormatManager = dfm;\n  }\n\n  public synchronized void clearLogRecords() {\n    //For JDK1.3\n    //((DefaultTableModel)getModel()).setRowCount(0);\n\n    // For JDK1.2.x\n    getFilteredLogTableModel().clear();\n  }\n\n  public FilteredLogTableModel getFilteredLogTableModel() {\n    return (FilteredLogTableModel) getModel();\n  }\n\n  // default view if a view is not set and saved\n  public void setDetailedView() {\n    //TODO: Defineable Views.\n    TableColumnModel model = getColumnModel();\n    // Remove all the columns:\n    for (int f = 0; f < _numCols; f++) {\n      model.removeColumn(_tableColumns[f]);\n    }\n    // Add them back in the correct order:\n    for (int i = 0; i < _numCols; i++) {\n      model.addColumn(_tableColumns[i]);\n    }\n    //SWING BUG:\n    sizeColumnsToFit(-1);\n  }\n\n  public void setView(List columns) {\n    TableColumnModel model = getColumnModel();\n\n    // Remove all the columns:\n    for (int f = 0; f < _numCols; f++) {\n      model.removeColumn(_tableColumns[f]);\n    }\n    Iterator selectedColumns = columns.iterator();\n    Vector columnNameAndNumber = getColumnNameAndNumber();\n    while (selectedColumns.hasNext()) {\n      // add the column to the view\n      model.addColumn(_tableColumns[columnNameAndNumber.indexOf(selectedColumns.next())]);\n    }\n\n    //SWING BUG:\n    sizeColumnsToFit(-1);\n  }\n\n  public void setFont(Font font) {\n    super.setFont(font);\n    Graphics g = this.getGraphics();\n    if (g != null) {\n      FontMetrics fm = g.getFontMetrics(font);\n      int height = fm.getHeight();\n      _rowHeight = height + height / 3;\n      setRowHeight(_rowHeight);\n    }\n\n\n  }\n\n\n  //--------------------------------------------------------------------------\n  //   Protected Methods:\n  //--------------------------------------------------------------------------\n\n  protected void init() {\n    setRowHeight(_rowHeight);\n    setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n  }\n\n  // assign a column number to a column name\n  protected Vector getColumnNameAndNumber() {\n    Vector columnNameAndNumber = new Vector();\n    for (int i = 0; i < _colNames.length; i++) {\n      columnNameAndNumber.add(i, _colNames[i]);\n    }\n    return columnNameAndNumber;\n  }\n\n  //--------------------------------------------------------------------------\n  //   Private Methods:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Nested Top-Level Classes or Interfaces:\n  //--------------------------------------------------------------------------\n\n  class LogTableListSelectionListener implements ListSelectionListener {\n    protected JTable _table;\n\n    public LogTableListSelectionListener(JTable table) {\n      _table = table;\n    }\n\n    public void valueChanged(ListSelectionEvent e) {\n      //Ignore extra messages.\n      if (e.getValueIsAdjusting()) {\n        return;\n      }\n\n      ListSelectionModel lsm = (ListSelectionModel) e.getSource();\n      if (lsm.isSelectionEmpty()) {\n        //no rows are selected\n      } else {\n        StringBuffer buf = new StringBuffer();\n        int selectedRow = lsm.getMinSelectionIndex();\n\n        for (int i = 0; i < _numCols - 1; i++) {\n          String value = \"\";\n          Object obj = _table.getModel().getValueAt(selectedRow, i);\n          if (obj != null) {\n            value = obj.toString();\n          }\n\n          buf.append(_colNames[i] + \":\");\n          buf.append(\"\\t\");\n\n          if (i == _colThread || i == _colMessage || i == _colLevel) {\n            buf.append(\"\\t\"); // pad out the date.\n          }\n\n          if (i == _colDate || i == _colNDC) {\n            buf.append(\"\\t\\t\"); // pad out the date.\n          }\n\n//               if( i == _colSequence)\n//               {\n//                  buf.append(\"\\t\\t\\t\"); // pad out the Sequnce.\n//               }\n\n          buf.append(value);\n          buf.append(\"\\n\");\n        }\n        buf.append(_colNames[_numCols - 1] + \":\\n\");\n        Object obj = _table.getModel().getValueAt(selectedRow, _numCols - 1);\n        if (obj != null) {\n          buf.append(obj.toString());\n        }\n\n        _detailTextArea.setText(buf.toString());", "functions": [{"function_name": "getDateFormatManager", "code": "  public DateFormatManager getDateFormatManager() {\n    return _dateFormatManager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDateFormatManager", "code": "  public void setDateFormatManager(DateFormatManager dfm) {\n    _dateFormatManager = dfm;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clearLogRecords", "code": "  public synchronized void clearLogRecords() {\n    //For JDK1.3\n    //((DefaultTableModel)getModel()).setRowCount(0);\n\n    // For JDK1.2.x\n    getFilteredLogTableModel().clear();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFilteredLogTableModel", "code": "  public FilteredLogTableModel getFilteredLogTableModel() {\n    return (FilteredLogTableModel) getModel();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDetailedView", "code": "  public void setDetailedView() {\n    //TODO: Defineable Views.\n    TableColumnModel model = getColumnModel();\n    // Remove all the columns:\n    for (int f = 0; f < _numCols; f++) {\n      model.removeColumn(_tableColumns[f]);\n    }\n    // Add them back in the correct order:\n    for (int i = 0; i < _numCols; i++) {\n      model.addColumn(_tableColumns[i]);\n    }\n    //SWING BUG:\n    sizeColumnsToFit(-1);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [3, 8], [1, 9], [1, 10], [2, 11], [2, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 3], [9, 1], [10, 1], [11, 2], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setView", "code": "  public void setView(List columns) {\n    TableColumnModel model = getColumnModel();\n\n    // Remove all the columns:\n    for (int f = 0; f < _numCols; f++) {\n      model.removeColumn(_tableColumns[f]);\n    }\n    Iterator selectedColumns = columns.iterator();\n    Vector columnNameAndNumber = getColumnNameAndNumber();\n    while (selectedColumns.hasNext()) {\n      // add the column to the view\n      model.addColumn(_tableColumns[columnNameAndNumber.indexOf(selectedColumns.next())]);\n    }\n\n    //SWING BUG:\n    sizeColumnsToFit(-1);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [7, 10], [2, 11], [3, 12], [5, 13], [1, 14], [4, 15], [4, 16], [14, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 7], [11, 2], [12, 3], [13, 5], [14, 1], [15, 4], [16, 4], [17, 14], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setFont", "code": "  public void setFont(Font font) {\n    super.setFont(font);\n    Graphics g = this.getGraphics();\n    if (g != null) {\n      FontMetrics fm = g.getFontMetrics(font);\n      int height = fm.getHeight();\n      _rowHeight = height + height / 3;\n      setRowHeight(_rowHeight);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 8], [1, 9], [2, 10], [9, 11], [5, 12], [6, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 1], [9, 1], [10, 2], [11, 9], [12, 5], [13, 6], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "init", "code": "  protected void init() {\n    setRowHeight(_rowHeight);\n    setSelectionMode(ListSelectionModel.SINGLE_SELECTION);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColumnNameAndNumber", "code": "  protected Vector getColumnNameAndNumber() {\n    Vector columnNameAndNumber = new Vector();\n    for (int i = 0; i < _colNames.length; i++) {\n      columnNameAndNumber.add(i, _colNames[i]);\n    }\n    return columnNameAndNumber;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "LogTable", "code": "  public LogTable(JTextArea detailTextArea) {\n    super();\n\n    init();\n\n    _detailTextArea = detailTextArea;\n\n    setModel(new FilteredLogTableModel());\n\n    Enumeration columns = getColumnModel().getColumns();\n    int i = 0;\n    while (columns.hasMoreElements()) {\n      TableColumn col = (TableColumn) columns.nextElement();\n      col.setCellRenderer(new LogTableRowRenderer());\n      col.setPreferredWidth(_colWidths[i]);\n\n      _tableColumns[i] = col;\n      i++;\n    }\n\n    ListSelectionModel rowSM = getSelectionModel();\n    rowSM.addListSelectionListener(new LogTableListSelectionListener(this));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [6, 11], [1, 12], [2, 13], [3, 14], [4, 15], [8, 16], [2, 17], [2, 18], [2, 19], [15, 20], [19, 21], [13, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 6], [12, 1], [13, 2], [14, 3], [15, 4], [16, 8], [17, 2], [18, 2], [19, 2], [20, 15], [21, 19], [22, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}], "label": 1}
{"sample_id": "xalan-2.4-6681", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/util/NodeSortRecordGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.NodeSortRecordGenerator", "code": "public final class NodeSortRecordGenerator extends ClassGenerator {\n    private final Instruction _aloadTranslet;\n\n    public NodeSortRecordGenerator(String className, String superClassName,\n\t\t\t\t   String fileName,\n\t\t\t\t   int accessFlags, String[] interfaces,\n\t\t\t\t   Stylesheet stylesheet) {\n\tsuper(className, superClassName, fileName,\n\t      accessFlags, interfaces, stylesheet);\n\t_aloadTranslet = new ALOAD(TRANSLET_INDEX);\n    }\n    \n    /**\n     * The index of the translet pointer within the execution of\n     * the test method.\n     */\n    public Instruction loadTranslet() {\n\treturn _aloadTranslet;\n    }\n\n    /**\n     * Returns <tt>true</tt> since this class is external to the\n     * translet.\n     */\n    public boolean isExternal() {\n\treturn true;", "functions": [{"function_name": "loadTranslet", "code": "    public Instruction loadTranslet() {\n\treturn _aloadTranslet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isExternal", "code": "    public boolean isExternal() {\n\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "NodeSortRecordGenerator", "code": "    public NodeSortRecordGenerator(String className, String superClassName,\n\t\t\t\t   String fileName,\n\t\t\t\t   int accessFlags, String[] interfaces,\n\t\t\t\t   Stylesheet stylesheet) {\n\tsuper(className, superClassName, fileName,\n\t      accessFlags, interfaces, stylesheet);\n\t_aloadTranslet = new ALOAD(TRANSLET_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "camel-1.4-2151", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/idempotent/jpa/MessageProcessed.java", "language": "java", "name": "org.apache.camel.processor.idempotent.jpa.MessageProcessed", "code": "@Entity\n@UniqueConstraint(columnNames = {\"processorName\", \"messageId\" })\npublic class MessageProcessed {\n    private Long id;\n    private String messageId;\n    private String processorName;\n\n\n    @Override\n    public String toString() {\n        return \"MessageProcessed[processorName: \" + getProcessorName() + \" messageId: \" + getMessageId() + \"]\";\n    }\n\n    @Id\n    @GeneratedValue\n    public Long getId() {\n        return id;\n    }\n\n    public void setId(Long id) {\n        this.id = id;\n    }\n\n    public String getMessageId() {\n        return messageId;\n    }\n\n    public void setMessageId(String messageId) {\n        this.messageId = messageId;\n    }\n\n    public String getProcessorName() {\n        return processorName;\n    }\n\n    public void setProcessorName(String processorName) {\n        this.processorName = processorName;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"MessageProcessed[processorName: \" + getProcessorName() + \" messageId: \" + getMessageId() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getId", "code": "    @Id\n    @GeneratedValue\n    public Long getId() {\n        return id;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setId", "code": "    public void setId(Long id) {\n        this.id = id;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMessageId", "code": "    public String getMessageId() {\n        return messageId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessageId", "code": "    public void setMessageId(String messageId) {\n        this.messageId = messageId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProcessorName", "code": "    public String getProcessorName() {\n        return processorName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessorName", "code": "    public void setProcessorName(String processorName) {\n        this.processorName = processorName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8526", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/DTM.java", "language": "java", "name": "org.apache.xml.dtm.DTM", "code": "public interface DTM\n{\n\n  /**\n   * Null node handles are represented by this value.\n   */\n  public static final int NULL = -1;\n\n\n  /**\n   * The node is a <code>Root</code>.\n   */\n  public static final short ROOT_NODE = 0;\n  \n  /**\n   * The node is an <code>Element</code>.\n   */\n  public static final short ELEMENT_NODE = 1;\n\n  /**\n   * The node is an <code>Attr</code>.\n   */\n  public static final short ATTRIBUTE_NODE = 2;\n\n  /**\n   * The node is a <code>Text</code> node.\n   */\n  public static final short TEXT_NODE = 3;\n\n  /**\n   * The node is a <code>CDATASection</code>.\n   */\n  public static final short CDATA_SECTION_NODE = 4;\n\n  /**\n   * The node is an <code>EntityReference</code>.\n   */\n  public static final short ENTITY_REFERENCE_NODE = 5;\n\n  /**\n   * The node is an <code>Entity</code>.\n   */\n  public static final short ENTITY_NODE = 6;\n\n  /**\n   * The node is a <code>ProcessingInstruction</code>.\n   */\n  public static final short PROCESSING_INSTRUCTION_NODE = 7;\n\n  /**\n   * The node is a <code>Comment</code>.\n   */\n  public static final short COMMENT_NODE = 8;\n\n  /**\n   * The node is a <code>Document</code>.\n   */\n  public static final short DOCUMENT_NODE = 9;\n\n  /**\n   * The node is a <code>DocumentType</code>.\n   */\n  public static final short DOCUMENT_TYPE_NODE = 10;\n\n  /**\n   * The node is a <code>DocumentFragment</code>.\n   */\n  public static final short DOCUMENT_FRAGMENT_NODE = 11;\n\n  /**\n   * The node is a <code>Notation</code>.\n   */\n  public static final short NOTATION_NODE = 12;\n\n  /**\n   * The node is a <code>namespace node</code>. Note that this is not\n   * currently a node type defined by the DOM API.\n   */\n  public static final short NAMESPACE_NODE = 13;\n  \n  /**\n   * The number of valid nodetypes.\n   */\n  public static final short  NTYPES = 14;\n\n\n  /**\n   * Set an implementation dependent feature.\n   * <p>\n   * %REVIEW% Do we really expect to set features on DTMs?\n   *\n   * @param featureId A feature URL.\n   * @param state true if this feature should be on, false otherwise.\n   */\n  public void setFeature(String featureId, boolean state);\n\n  /**\n   * Set a run time property for this DTM instance.\n   *\n   * @param property a <code>String</code> value\n   * @param value an <code>Object</code> value\n   */\n  public void setProperty(String property, Object value);\n\n\n  /**\n   * This returns a stateless \"traverser\", that can navigate over an\n   * XPath axis, though not in document order.\n   *\n   * @param axis One of Axes.ANCESTORORSELF, etc.\n   *\n   * @return A DTMAxisIterator, or null if the givin axis isn't supported.\n   */\n  public DTMAxisTraverser getAxisTraverser(final int axis);\n\n  /**\n   * This is a shortcut to the iterators that implement\n   * XPath axes.\n   * Returns a bare-bones iterator that must be initialized\n   * with a start node (using iterator.setStartNode()).\n   *\n   * @param axis One of Axes.ANCESTORORSELF, etc.\n   *\n   * @return A DTMAxisIterator, or null if the givin axis isn't supported.\n   */\n  public DTMAxisIterator getAxisIterator(final int axis);\n\n  /**\n   * Get an iterator that can navigate over an XPath Axis, predicated by\n   * the extended type ID.\n   *\n   * @param axis\n   * @param type An extended type ID.\n   *\n   * @return A DTMAxisIterator, or null if the givin axis isn't supported.\n   */\n  public DTMAxisIterator getTypedAxisIterator(final int axis, final int type);\n\n  /**\n   * Given a node handle, test if it has child nodes.\n   * <p> %REVIEW% This is obviously useful at the DOM layer, where it\n   * would permit testing this without having to create a proxy\n   * node. It's less useful in the DTM API, where\n   * (dtm.getFirstChild(nodeHandle)!=DTM.NULL) is just as fast and\n   * almost as self-evident. But it's a convenience, and eases porting\n   * of DOM code to DTM.  </p>\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return int true if the given node has child nodes.\n   */\n  public boolean hasChildNodes(int nodeHandle);\n\n  /**\n   * Given a node handle, get the handle of the node's first child.\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return int DTM node-number of first child,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getFirstChild(int nodeHandle);\n\n  /**\n   * Given a node handle, get the handle of the node's last child.\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return int Node-number of last child,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getLastChild(int nodeHandle);\n\n  /**\n   * Retrieves an attribute node by local name and namespace URI\n   *\n   * %TBD% Note that we currently have no way to support\n   * the DOM's old getAttribute() call, which accesses only the qname.\n   *\n   * @param elementHandle Handle of the node upon which to look up this attribute.\n   * @param namespaceURI The namespace URI of the attribute to\n   *   retrieve, or null.\n   * @param name The local name of the attribute to\n   *   retrieve.\n   * @return The attribute node handle with the specified name (\n   *   <code>nodeName</code>) or <code>DTM.NULL</code> if there is no such\n   *   attribute.\n   */\n  public int getAttributeNode(int elementHandle, String namespaceURI,\n                              String name);\n\n  /**\n   * Given a node handle, get the index of the node's first attribute.\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return Handle of first attribute, or DTM.NULL to indicate none exists.\n   */\n  public int getFirstAttribute(int nodeHandle);\n\n  /**\n   * Given a node handle, get the index of the node's first namespace node.\n   *\n   * @param nodeHandle handle to node, which should probably be an element\n   *                   node, but need not be.\n   *\n   * @param inScope true if all namespaces in scope should be\n   *                   returned, false if only the node's own\n   *                   namespace declarations should be returned.\n   * @return handle of first namespace,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getFirstNamespaceNode(int nodeHandle, boolean inScope);\n\n  /**\n   * Given a node handle, advance to its next sibling.\n   * @param nodeHandle int Handle of the node.\n   * @return int Node-number of next sibling,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getNextSibling(int nodeHandle);\n\n  /**\n   * Given a node handle, find its preceeding sibling.\n   * WARNING: DTM implementations may be asymmetric; in some,\n   * this operation has been resolved by search, and is relatively expensive.\n   *\n   * @param nodeHandle the id of the node.\n   * @return int Node-number of the previous sib,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getPreviousSibling(int nodeHandle);\n\n  /**\n   * Given a node handle, advance to the next attribute. If an\n   * element, we advance to its first attribute; if an attr, we advance to\n   * the next attr of the same element.\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return int DTM node-number of the resolved attr,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getNextAttribute(int nodeHandle);\n\n  /**\n   * Given a namespace handle, advance to the next namespace in the same scope\n   * (local or local-plus-inherited, as selected by getFirstNamespaceNode)\n   *\n   * @param baseHandle handle to original node from where the first child\n   * was relative to (needed to return nodes in document order).\n   * @param namespaceHandle handle to node which must be of type\n   * NAMESPACE_NODE.\n   * NEEDSDOC @param inScope\n   * @return handle of next namespace,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getNextNamespaceNode(int baseHandle, int namespaceHandle,\n                                  boolean inScope);\n\n  /**\n   * Given a node handle, find its parent node.\n   *\n   * @param nodeHandle the id of the node.\n   * @return int Node handle of parent,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getParent(int nodeHandle);\n\n  /**\n   * Given a DTM which contains only a single document, \n   * find the Node Handle of the  Document node. Note \n   * that if the DTM is configured so it can contain multiple\n   * documents, this call will return the Document currently\n   * under construction -- but may return null if it's between\n   * documents. Generally, you should use getOwnerDocument(nodeHandle)\n   * or getDocumentRoot(nodeHandle) instead.\n   *\n   * @return int Node handle of document, or DTM.NULL if a shared DTM\n   * can not tell us which Document is currently active.\n   */\n  public int getDocument();\n\n  /**\n   * Given a node handle, find the owning document node. This version mimics\n   * the behavior of the DOM call by the same name.\n   *\n   * @param nodeHandle the id of the node.\n   * @return int Node handle of owning document, or DTM.NULL if the node was\n   * a Document.\n   * @see #getDocumentRoot(int nodeHandle)\n   */\n  public int getOwnerDocument(int nodeHandle);\n\n  /**\n   * Given a node handle, find the owning document node.\n   *\n   * @param nodeHandle the id of the node.\n   * @return int Node handle of owning document, or the node itself if it was\n   * a Document. (Note difference from DOM, where getOwnerDocument returns\n   * null for the Document node.)\n   * @see #getOwnerDocument(int nodeHandle)\n   */\n  public int getDocumentRoot(int nodeHandle);\n\n  /**\n   * Get the string-value of a node as a String object\n   * for the definition of a node's string-value).\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return A string object that represents the string-value of the given node.\n   */\n  public XMLString getStringValue(int nodeHandle);\n\n  /**\n   * Get number of character array chunks in\n   * the string-value of a node.\n   * for the definition of a node's string-value).\n   * Note that a single text node may have multiple text chunks.\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return number of character array chunks in\n   *         the string-value of a node.\n   */\n  public int getStringValueChunkCount(int nodeHandle);\n\n  /**\n   * Get a character array chunk in the string-value of a node.\n   * for the definition of a node's string-value).\n   * Note that a single text node may have multiple text chunks.\n   *\n   * @param nodeHandle The node ID.\n   * @param chunkIndex Which chunk to get.\n   * @param startAndLen  A two-integer array which, upon return, WILL\n   * BE FILLED with values representing the chunk's start position\n   * within the returned character buffer and the length of the chunk.\n   * @return The character array buffer within which the chunk occurs,\n   * setting startAndLen's contents as a side-effect.\n   */\n  public char[] getStringValueChunk(int nodeHandle, int chunkIndex,\n                                    int[] startAndLen);\n\n  /**\n   * Given a node handle, return an ID that represents the node's expanded name.\n   *\n   * @param nodeHandle The handle to the node in question.\n   *\n   * @return the expanded-name id of the node.\n   */\n  public int getExpandedTypeID(int nodeHandle);\n\n  /**\n   * Given an expanded name, return an ID.  If the expanded-name does not\n   * exist in the internal tables, the entry will be created, and the ID will\n   * be returned.  Any additional nodes that are created that have this\n   * expanded name will use this ID.\n   *\n   * NEEDSDOC @param namespace\n   * NEEDSDOC @param localName\n   * NEEDSDOC @param type\n   *\n   * @return the expanded-name id of the node.\n   */\n  public int getExpandedTypeID(String namespace, String localName, int type);\n\n  /**\n   * Given an expanded-name ID, return the local name part.\n   *\n   * @param ExpandedNameID an ID that represents an expanded-name.\n   * @return String Local name of this node.\n   */\n  public String getLocalNameFromExpandedNameID(int ExpandedNameID);\n\n  /**\n   * Given an expanded-name ID, return the namespace URI part.\n   *\n   * @param ExpandedNameID an ID that represents an expanded-name.\n   * @return String URI value of this node's namespace, or null if no\n   * namespace was resolved.\n   */\n  public String getNamespaceFromExpandedNameID(int ExpandedNameID);\n\n  /**\n   * Given a node handle, return its DOM-style node name. This will\n   * include names such as #text or #document.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   * %REVIEW% Document when empty string is possible...\n   */\n  public String getNodeName(int nodeHandle);\n\n  /**\n   * Given a node handle, return the XPath node name.  This should be\n   * the name as described by the XPath data model, NOT the DOM-style\n   * name.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node.\n   */\n  public String getNodeNameX(int nodeHandle);\n\n  /**\n   * Given a node handle, return its DOM-style localname.\n   * (As defined in Namespaces, this is the portion of the name after the\n   * prefix, if present, or the whole node name if no prefix exists)\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Local name of this node.\n   */\n  public String getLocalName(int nodeHandle);\n\n  /**\n   * Given a namespace handle, return the prefix that the namespace decl is\n   * mapping.\n   * Given a node handle, return the prefix used to map to the namespace.\n   * (As defined in Namespaces, this is the portion of the name before any\n   * colon character).\n   *\n   * <p> %REVIEW% Are you sure you want \"\" for no prefix?  </p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String prefix of this node's name, or \"\" if no explicit\n   * namespace prefix was given.\n   */\n  public String getPrefix(int nodeHandle);\n\n  /**\n   * Given a node handle, return its DOM-style namespace URI\n   * (As defined in Namespaces, this is the declared URI which this node's\n   * prefix -- or default in lieu thereof -- was mapped to.)\n   * @param nodeHandle the id of the node.\n   * @return String URI value of this node's namespace, or null if no\n   * namespace was resolved.\n   */\n  public String getNamespaceURI(int nodeHandle);\n\n  /**\n   * Given a node handle, return its node value. This is mostly\n   * as defined by the DOM, but may ignore some conveniences.\n   * <p>\n   * @param nodeHandle The node id.\n   * @return String Value of this node, or null if not\n   * meaningful for this node type.\n   */\n  public String getNodeValue(int nodeHandle);\n\n  /**\n   * Given a node handle, return its DOM-style node type.\n   *\n   * <p>%REVIEW% Generally, returning short is false economy. Return int?</p>\n   *\n   * @param nodeHandle The node id.\n   * @return int Node type, as per the DOM's Node._NODE constants.\n   */\n  public short getNodeType(int nodeHandle);\n\n  /**\n   * Get the depth level of this node in the tree (equals 1 for\n   * a parentless node).\n   *\n   * @param nodeHandle The node id.\n   * @return the number of ancestors, plus one\n   * @xsl.usage internal\n   */\n  public short getLevel(int nodeHandle);\n\n\n  /**\n   * Tests whether DTM DOM implementation implements a specific feature and\n   * that feature is supported by this node.\n   * @param feature The name of the feature to test.\n   * @param version This is the version number of the feature to test.\n   *   If the version is not\n   *   specified, supporting any version of the feature will cause the\n   *   method to return <code>true</code>.\n   * @return Returns <code>true</code> if the specified feature is\n   *   supported on this node, <code>false</code> otherwise.\n   */\n  public boolean isSupported(String feature, String version);\n\n  /**\n   * Return the base URI of the document entity. If it is not known\n   * (because the document was parsed from a socket connection or from\n   * standard input, for example), the value of this property is unknown.\n   *\n   * @return the document base URI String object or null if unknown.\n   */\n  public String getDocumentBaseURI();\n\n  /**\n   * Set the base URI of the document entity.\n   *\n   * @param baseURI the document base URI String object or null if unknown.\n   */\n  public void setDocumentBaseURI(String baseURI);\n\n  /**\n   * Return the system identifier of the document entity. If\n   * it is not known, the value of this property is null.\n   *\n   * @param nodeHandle The node id, which can be any valid node handle.\n   * @return the system identifier String object or null if unknown.\n   */\n  public String getDocumentSystemIdentifier(int nodeHandle);\n\n  /**\n   * Return the name of the character encoding scheme\n   *        in which the document entity is expressed.\n   *\n   * @param nodeHandle The node id, which can be any valid node handle.\n   * @return the document encoding String object.\n   */\n  public String getDocumentEncoding(int nodeHandle);\n\n  /**\n   * Return an indication of the standalone status of the document,\n   *        either \"yes\" or \"no\". This property is derived from the optional\n   *        standalone document declaration in the XML declaration at the\n   *        beginning of the document entity, and has no value if there is no\n   *        standalone document declaration.\n   *\n   * @param nodeHandle The node id, which can be any valid node handle.\n   * @return the document standalone String object, either \"yes\", \"no\", or null.\n   */\n  public String getDocumentStandalone(int nodeHandle);\n\n  /**\n   * Return a string representing the XML version of the document. This\n   * property is derived from the XML declaration optionally present at the\n   * beginning of the document entity, and has no value if there is no XML\n   * declaration.\n   *\n   * @param documentHandle the document handle\n   * @return the document version String object\n   */\n  public String getDocumentVersion(int documentHandle);\n\n  /**\n   * Return an indication of\n   * whether the processor has read the complete DTD. Its value is a\n   * boolean. If it is false, then certain properties (indicated in their\n   * descriptions below) may be unknown. If it is true, those properties\n   * are never unknown.\n   *\n   * @return <code>true</code> if all declarations were processed;\n   *         <code>false</code> otherwise.\n   */\n  public boolean getDocumentAllDeclarationsProcessed();\n\n  /**\n   *   A document type declaration information item has the following properties:\n   *\n   *     1. [system identifier] The system identifier of the external subset, if\n   *        it exists. Otherwise this property has no value.\n   *\n   * @return the system identifier String object, or null if there is none.\n   */\n  public String getDocumentTypeDeclarationSystemIdentifier();\n\n  /**\n   * Return the public identifier of the external subset,\n   * normalized as described in 4.2.2 External Entities [XML]. If there is\n   * no external subset or if it has no public identifier, this property\n   * has no value.\n   *\n   * @return the public identifier String object, or null if there is none.\n   */\n  public String getDocumentTypeDeclarationPublicIdentifier();\n\n  /**\n   * Returns the <code>Element</code> whose <code>ID</code> is given by\n   * <code>elementId</code>. If no such element exists, returns\n   * <code>DTM.NULL</code>. Behavior is not defined if more than one element\n   * has this <code>ID</code>. Attributes (including those\n   * with the name \"ID\") are not of type ID unless so defined by DTD/Schema\n   * information available to the DTM implementation.\n   * Implementations that do not know whether attributes are of type ID or\n   * not are expected to return <code>DTM.NULL</code>.\n   *\n   * <p>%REVIEW% Presumably IDs are still scoped to a single document,\n   * and this operation searches only within a single document, right?\n   * Wouldn't want collisions between DTMs in the same process.</p>\n   *\n   * @param elementId The unique <code>id</code> value for an element.\n   * @return The handle of the matching element.\n   */\n  public int getElementById(String elementId);\n\n  /**\n   * The getUnparsedEntityURI function returns the URI of the unparsed\n   * entity with the specified name in the same document as the context\n   * node (see [3.3 Unparsed Entities]). It returns the empty string if\n   * there is no such entity.\n   * <p>\n   * XML processors may choose to use the System Identifier (if one\n   * is provided) to resolve the entity, rather than the URI in the\n   * Public Identifier. The details are dependent on the processor, and\n   * we would have to support some form of plug-in resolver to handle\n   * this properly. Currently, we simply return the System Identifier if\n   * present, and hope that it a usable URI or that our caller can\n   * map it to one.\n   * %REVIEW% Resolve Public Identifiers... or consider changing function name.\n   * <p>\n   * If we find a relative URI\n   * reference, XML expects it to be resolved in terms of the base URI\n   * of the document. The DOM doesn't do that for us, and it isn't\n   * entirely clear whether that should be done here; currently that's\n   * pushed up to a higher level of our application. (Note that DOM Level\n   * 1 didn't store the document's base URI.)\n   * %REVIEW% Consider resolving Relative URIs.\n   * <p>\n   * (The DOM's statement that \"An XML processor may choose to\n   * completely expand entities before the structure model is passed\n   * to the DOM\" refers only to parsed entities, not unparsed, and hence\n   * doesn't affect this function.)\n   *\n   * @param name A string containing the Entity Name of the unparsed\n   * entity.\n   *\n   * @return String containing the URI of the Unparsed Entity, or an\n   * empty string if no such entity exists.\n   */\n  public String getUnparsedEntityURI(String name);\n\n\n  /**\n   * Return true if the xsl:strip-space or xsl:preserve-space was processed\n   * during construction of the document contained in this DTM.\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  public boolean supportsPreStripping();\n\n  /**\n   * Figure out whether nodeHandle2 should be considered as being later\n   * in the document than nodeHandle1, in Document Order as defined\n   * by the XPath model. This may not agree with the ordering defined\n   * by other XML applications.\n   * <p>\n   * There are some cases where ordering isn't defined, and neither are\n   * the results of this function -- though we'll generally return true.\n   * <p>\n   * %REVIEW% Make sure this does the right thing with attribute nodes!!!\n   * <p>\n   * %REVIEW% Consider renaming for clarity. Perhaps isDocumentOrder(a,b)?\n   *\n   * @param firstNodeHandle DOM Node to perform position comparison on.\n   * @param secondNodeHandle DOM Node to perform position comparison on.\n   *\n   * @return false if secondNode comes before firstNode, otherwise return true.\n   * You can think of this as\n   * <code>(firstNode.documentOrderPosition &lt;= secondNode.documentOrderPosition)</code>.\n   */\n  public boolean isNodeAfter(int firstNodeHandle, int secondNodeHandle);\n\n  /**\n   * 2. [element content whitespace] A boolean indicating whether a\n   * text node represents white space appearing within element content\n   * (see [XML], 2.10 \"White Space Handling\").  Note that validating\n   * XML processors are required by XML 1.0 to provide this\n   * information... but that DOM Level 2 did not support it, since it\n   * depends on knowledge of the DTD which DOM2 could not guarantee\n   * would be available.\n   * <p>\n   * If there is no declaration for the containing element, an XML\n   * processor must assume that the whitespace could be meaningful and\n   * return false. If no declaration has been read, but the [all\n   * declarations processed] property of the document information item\n   * is false (so there may be an unread declaration), then the value\n   * of this property is indeterminate for white space characters and\n   * should probably be reported as false. It is always false for text\n   * nodes that contain anything other than (or in addition to) white\n   * space.\n   * <p>\n   * Note too that it always returns false for non-Text nodes.\n   * <p>\n   * %REVIEW% Joe wants to rename this isWhitespaceInElementContent() for clarity\n   *\n   * @param nodeHandle the node ID.\n   * @return <code>true</code> if the node definitely represents whitespace in\n   * element content; <code>false</code> otherwise.\n   */\n  public boolean isCharacterElementContentWhitespace(int nodeHandle);\n\n  /**\n   *    10. [all declarations processed] This property is not strictly speaking\n   *        part of the infoset of the document. Rather it is an indication of\n   *        whether the processor has read the complete DTD. Its value is a\n   *        boolean. If it is false, then certain properties (indicated in their\n   *        descriptions below) may be unknown. If it is true, those properties\n   *        are never unknown.\n   *\n   * @param documentHandle A node handle that must identify a document.\n   * @return <code>true</code> if all declarations were processed;\n   *         <code>false</code> otherwise.\n   */\n  public boolean isDocumentAllDeclarationsProcessed(int documentHandle);\n\n  /**\n   *     5. [specified] A flag indicating whether this attribute was actually\n   *        specified in the start-tag of its element, or was defaulted from the\n   *        DTD (or schema).\n   *\n   * @param attributeHandle The attribute handle\n   * @return <code>true</code> if the attribute was specified;\n   *         <code>false</code> if it was defaulted or the handle doesn't\n   *            refer to an attribute node.\n   */\n  public boolean isAttributeSpecified(int attributeHandle);\n\n\n  /**\n   * Directly call the\n   * characters method on the passed ContentHandler for the\n   * for the definition of a node's string-value). Multiple calls to the\n   * ContentHandler's characters methods may well occur for a single call to\n   * this method.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   * @param normalize true if the content should be normalized according to\n   * the rules for the XPath\n   * function.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchCharactersEvents(\n    int nodeHandle, org.xml.sax.ContentHandler ch, boolean normalize)\n      throws org.xml.sax.SAXException;\n\n  /**\n   * Directly create SAX parser events representing the XML content of\n   * a DTM subtree. This is a \"serialize\" operation.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n    throws org.xml.sax.SAXException;\n\n  /**\n   * Return an DOM node for the given node.\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return A node representation of the DTM node.\n   */\n  public org.w3c.dom.Node getNode(int nodeHandle);\n\n\n  /**\n   * @return true iff we're building this model incrementally (eg\n   * we're partnered with a CoroutineParser) and thus require that the\n   * transformation and the parse run simultaneously. Guidance to the\n   * DTMManager.\n   */\n  public boolean needsTwoThreads();\n\n\n  /**\n   * Return this DTM's content handler, if it has one.\n   *\n   * @return null if this model doesn't respond to SAX events.\n   */\n  public org.xml.sax.ContentHandler getContentHandler();\n\n  /**\n   * Return this DTM's lexical handler, if it has one.\n   *\n   * %REVIEW% Should this return null if constrution already done/begun?\n   *\n   * @return null if this model doesn't respond to lexical SAX events.\n   */\n  public org.xml.sax.ext.LexicalHandler getLexicalHandler();\n\n  /**\n   * Return this DTM's EntityResolver, if it has one.\n   *\n   * @return null if this model doesn't respond to SAX entity ref events.\n   */\n  public org.xml.sax.EntityResolver getEntityResolver();\n\n  /**\n   * Return this DTM's DTDHandler, if it has one.\n   *\n   * @return null if this model doesn't respond to SAX dtd events.\n   */\n  public org.xml.sax.DTDHandler getDTDHandler();\n\n  /**\n   * Return this DTM's ErrorHandler, if it has one.\n   *\n   * @return null if this model doesn't respond to SAX error events.\n   */\n  public org.xml.sax.ErrorHandler getErrorHandler();\n\n  /**\n   * Return this DTM's DeclHandler, if it has one.\n   *\n   * @return null if this model doesn't respond to SAX Decl events.\n   */\n  public org.xml.sax.ext.DeclHandler getDeclHandler();\n\n  /**\n   * Append a child to \"the end of the document\". Please note that\n   * the node is always cloned in a base DTM, since our basic behavior\n   * is immutable so nodes can't be removed from their previous\n   * location.\n   *\n   * <p> %REVIEW%  DTM maintains an insertion cursor which\n   * performs a depth-first tree walk as nodes come in, and this operation\n   * is really equivalent to:\n   *    insertionCursor.appendChild(document.importNode(newChild)))\n   * where the insert point is the last element that was appended (or\n   * the last one popped back to by an end-element operation).</p>\n   *\n   * @param newChild Must be a valid new node handle.\n   * @param clone true if the child should be cloned into the document.\n   * @param cloneDepth if the clone argument is true, specifies that the\n   *                   clone should include all it's children.\n   */\n  public void appendChild(int newChild, boolean clone, boolean cloneDepth);\n\n  /**\n   * Append a text node child that will be constructed from a string,\n   * to the end of the document. Behavior is otherwise like appendChild().\n   *\n   * @param str Non-null reference to a string.\n   */\n  public void appendTextChild(String str);\n\n  /**\n   * Get the location of a node in the source document.\n   *\n   * @param node an <code>int</code> value\n   * @return a <code>SourceLocator</code> value or null if no location\n   * is available\n   */\n  public SourceLocator getSourceLocatorFor(int node);\n\n  /**\n   * As the DTM is registered with the DTMManager, this method\n   * will be called. This will give the DTM implementation a\n   * chance to initialize any subsystems that are required to\n   * build the DTM\n   */\n  public void documentRegistration();\n\n  /**\n   * As documents are released from the DTMManager, the DTM implementation\n   * will be notified of the event. This will allow the DTM implementation\n   * to shutdown any subsystem activity that may of been assoiated with\n   * the active DTM Implementation.\n   */\n\n   public void documentRelease();\n\n   /**\n    * Migrate a DTM built with an old DTMManager to a new DTMManager.\n    * After the migration, the new DTMManager will treat the DTM as\n    * one that is built by itself.\n    * This is used to support DTM sharing between multiple transformations.\n    * @param manager the DTMManager\n    */\n   public void migrateTo(DTMManager manager);", "functions": [{"function_name": "setFeature", "code": "  public void setFeature(String featureId, boolean state);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperty", "code": "  public void setProperty(String property, Object value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAxisTraverser", "code": "  public DTMAxisTraverser getAxisTraverser(final int axis);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAxisIterator", "code": "  public DTMAxisIterator getAxisIterator(final int axis);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypedAxisIterator", "code": "  public DTMAxisIterator getTypedAxisIterator(final int axis, final int type);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasChildNodes", "code": "  public boolean hasChildNodes(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstChild", "code": "  public int getFirstChild(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastChild", "code": "  public int getLastChild(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAttributeNode", "code": "  public int getAttributeNode(int elementHandle, String namespaceURI,\n                              String name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFirstAttribute", "code": "  public int getFirstAttribute(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstNamespaceNode", "code": "  public int getFirstNamespaceNode(int nodeHandle, boolean inScope);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNextSibling", "code": "  public int getNextSibling(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPreviousSibling", "code": "  public int getPreviousSibling(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNextAttribute", "code": "  public int getNextAttribute(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNextNamespaceNode", "code": "  public int getNextNamespaceNode(int baseHandle, int namespaceHandle,\n                                  boolean inScope);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getParent", "code": "  public int getParent(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocument", "code": "  public int getDocument();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getOwnerDocument", "code": "  public int getOwnerDocument(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentRoot", "code": "  public int getDocumentRoot(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStringValue", "code": "  public XMLString getStringValue(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStringValueChunkCount", "code": "  public int getStringValueChunkCount(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStringValueChunk", "code": "  public char[] getStringValueChunk(int nodeHandle, int chunkIndex,\n                                    int[] startAndLen);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getExpandedTypeID", "code": "  public int getExpandedTypeID(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExpandedTypeID", "code": "  public int getExpandedTypeID(String namespace, String localName, int type);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLocalNameFromExpandedNameID", "code": "  public String getLocalNameFromExpandedNameID(int ExpandedNameID);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespaceFromExpandedNameID", "code": "  public String getNamespaceFromExpandedNameID(int ExpandedNameID);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeNameX", "code": "  public String getNodeNameX(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalName", "code": "  public String getLocalName(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPrefix", "code": "  public String getPrefix(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespaceURI", "code": "  public String getNamespaceURI(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeValue", "code": "  public String getNodeValue(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeType", "code": "  public short getNodeType(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLevel", "code": "  public short getLevel(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSupported", "code": "  public boolean isSupported(String feature, String version);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentBaseURI", "code": "  public String getDocumentBaseURI();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setDocumentBaseURI", "code": "  public void setDocumentBaseURI(String baseURI);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentSystemIdentifier", "code": "  public String getDocumentSystemIdentifier(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentEncoding", "code": "  public String getDocumentEncoding(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentStandalone", "code": "  public String getDocumentStandalone(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentVersion", "code": "  public String getDocumentVersion(int documentHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentAllDeclarationsProcessed", "code": "  public boolean getDocumentAllDeclarationsProcessed();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDocumentTypeDeclarationSystemIdentifier", "code": "  public String getDocumentTypeDeclarationSystemIdentifier();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDocumentTypeDeclarationPublicIdentifier", "code": "  public String getDocumentTypeDeclarationPublicIdentifier();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getElementById", "code": "  public int getElementById(String elementId);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getUnparsedEntityURI", "code": "  public String getUnparsedEntityURI(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "supportsPreStripping", "code": "  public boolean supportsPreStripping();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isNodeAfter", "code": "  public boolean isNodeAfter(int firstNodeHandle, int secondNodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isCharacterElementContentWhitespace", "code": "  public boolean isCharacterElementContentWhitespace(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isDocumentAllDeclarationsProcessed", "code": "  public boolean isDocumentAllDeclarationsProcessed(int documentHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isAttributeSpecified", "code": "  public boolean isAttributeSpecified(int attributeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dispatchCharactersEvents", "code": "  public void dispatchCharactersEvents(\n    int nodeHandle, org.xml.sax.ContentHandler ch, boolean normalize)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispatchToEvents", "code": "  public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNode", "code": "  public org.w3c.dom.Node getNode(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "needsTwoThreads", "code": "  public boolean needsTwoThreads();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getContentHandler", "code": "  public org.xml.sax.ContentHandler getContentHandler();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getLexicalHandler", "code": "  public org.xml.sax.ext.LexicalHandler getLexicalHandler();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getEntityResolver", "code": "  public org.xml.sax.EntityResolver getEntityResolver();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDTDHandler", "code": "  public org.xml.sax.DTDHandler getDTDHandler();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getErrorHandler", "code": "  public org.xml.sax.ErrorHandler getErrorHandler();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDeclHandler", "code": "  public org.xml.sax.ext.DeclHandler getDeclHandler();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "appendChild", "code": "  public void appendChild(int newChild, boolean clone, boolean cloneDepth);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "appendTextChild", "code": "  public void appendTextChild(String str);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSourceLocatorFor", "code": "  public SourceLocator getSourceLocatorFor(int node);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "documentRegistration", "code": "  public void documentRegistration();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "documentRelease", "code": "   public void documentRelease();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "migrateTo", "code": "   public void migrateTo(DTMManager manager);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.5-7077", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/dom/MultiDOM.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.MultiDOM", "code": "public final class MultiDOM implements DOM {\n\n    private static final int NO_TYPE = DOM.FIRST_TYPE - 2;\n    private static final int INITIAL_SIZE = 4;\n    \n    private DOM[] _adapters;\n    private DOMAdapter _main;\n    private int _free;\n    private int _size;\n\n    private Hashtable _documents = new Hashtable();\n\n    private final class AxisIterator extends DTMAxisIteratorBase {\n        private final int _axis;\n        private final int _type;\n        private DTMAxisIterator _source;\n        private int _dtmId = -1;\n\n        public AxisIterator(final int axis, final int type) {\n            _axis = axis;\n            _type = type;\n        }\n\n        public int next() {\n            if (_source == null) {\n                return(END);\n            }\n            return _source.next();\n        }\n\n\n        public void setRestartable(boolean flag) {\n            if (_source != null) {\n                _source.setRestartable(flag);\n            }\n        }\n\n        public DTMAxisIterator setStartNode(final int node) {\n            if (node == DTM.NULL) {\n                return this;\n            }\n\n            int dom = node >>> DTMManager.IDENT_DTM_NODE_BITS;\n\n            if (_source == null || _dtmId != dom) {\n                if (_type == NO_TYPE) {\n                    _source = _adapters[dom].getAxisIterator(_axis);\n                } else if (_axis == Axis.CHILD) {\n                    _source = _adapters[dom].getTypedChildren(_type);\n                } else {\n                    _source = _adapters[dom].getTypedAxisIterator(_axis, _type);\n                }\n            }\n\n            _dtmId = dom;\n            _source.setStartNode(node);\n            return this;\n        }\n\n        public DTMAxisIterator reset() {\n            if (_source != null) {\n                _source.reset();\n            }\n            return this;\n        }\n    \n        public int getLast() {\n            if (_source != null) {\n                return _source.getLast();\n            }\n            else {\n                return END;\n            }\n        }\n\n        public int getPosition() {\n            if (_source != null) {\n                return _source.getPosition();\n            }\n            else {\n                return END;\n            }\n        }\n    \n        public boolean isReverse() {\n\t    return Axis.isReverse[_axis];\n        }\n    \n        public void setMark() {\n            if (_source != null) {\n                _source.setMark();\n            }\n        }\n    \n        public void gotoMark() {\n            if (_source != null) {\n                _source.gotoMark();\n            }\n        }\n    \n        public DTMAxisIterator cloneIterator() {\n            final AxisIterator clone = new AxisIterator(_axis, _type);\n            if (_source != null) {\n                clone._source = _source.cloneIterator();\n            }\n            clone._dtmId = _dtmId;\n            return clone;\n        }\n\t}\n\n    /**************************************************************\n     * This is a specialised iterator for predicates comparing node or\n     * attribute values to variable or parameter values.\n     */\n    private final class NodeValueIterator extends DTMAxisIteratorBase {\n\n        private DTMAxisIterator _source;\n        private String _value;\n        private boolean _op;\n        private final boolean _isReverse;\n        private int _returnType = RETURN_PARENT;\n\n        public NodeValueIterator(DTMAxisIterator source, int returnType,\n                                 String value, boolean op) {\n            _source = source;\n            _returnType = returnType;\n            _value = value;\n            _op = op;\n            _isReverse = source.isReverse();\n        }\n\n        public boolean isReverse() {\n            return _isReverse;\n        }\n    \n        public DTMAxisIterator cloneIterator() {\n            try {\n                NodeValueIterator clone = (NodeValueIterator)super.clone();\n                clone._source = _source.cloneIterator();\n                clone.setRestartable(false);\n                return clone.reset();\n            }\n            catch (CloneNotSupportedException e) {\n                BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n                                          e.toString());\n                return null;\n            }\n        }\n\n\n        public void setRestartable(boolean isRestartable) {\n            _isRestartable = isRestartable;\n            _source.setRestartable(isRestartable);\n        }\n\n        public DTMAxisIterator reset() {\n            _source.reset();\n            return resetPosition();\n        }\n\n        public int next() {\n\n            int node;\n            while ((node = _source.next()) != END) {\n                String val = getStringValueX(node);\n                if (_value.equals(val) == _op) {\n                    if (_returnType == RETURN_CURRENT)\n                        return returnNode(node);\n                    else\n                        return returnNode(getParent(node));\n                }\n            }\n            return END;\n        }\n\n        public DTMAxisIterator setStartNode(int node) {\n            if (_isRestartable) {\n                _source.setStartNode(_startNode = node); \n                return resetPosition();\n            }\n            return this;\n        }\n\n        public void setMark() {\n            _source.setMark();\n        }\n\n        public void gotoMark() {\n            _source.gotoMark();\n        }\n    }                       \n\n    public MultiDOM(DOM main) {\n        _size = INITIAL_SIZE;\n        _free = 1;\n        _adapters = new DOM[INITIAL_SIZE];\n        DOMAdapter adapter = (DOMAdapter)main;\n        _adapters[0] = adapter;\n        _main = adapter;\n\n        addDOMAdapter(adapter, false);\n    }\n\n    public int nextMask() {\n        return _free;\n    }\n\n    public void setupMapping(String[] names, String[] namespaces) {\n    }\n\n    public int addDOMAdapter(DOMAdapter adapter) {\n        return addDOMAdapter(adapter, true);\n    }\n\n    private int addDOMAdapter(DOMAdapter adapter, boolean indexByURI) {\n        DOM dom = adapter.getDOMImpl();\n        \n        int domNo = 1;\n        int dtmSize = 1;\n        SuballocatedIntVector dtmIds = null;\n        if (dom instanceof DTMDefaultBase) {\n            DTMDefaultBase dtmdb = (DTMDefaultBase)dom;\n            dtmIds = dtmdb.getDTMIDs();\n            dtmSize = dtmIds.size();\n            domNo = dtmIds.elementAt(dtmSize-1) >>> DTMManager.IDENT_DTM_NODE_BITS;\n        }\n        else if (dom instanceof SimpleResultTreeImpl) {\n            SimpleResultTreeImpl simpleRTF = (SimpleResultTreeImpl)dom;\n            domNo = simpleRTF.getDocument() >>> DTMManager.IDENT_DTM_NODE_BITS;\n        }\n                  \n        if (domNo >= _size) {\n            int oldSize = _size;\n            do {\n            \t_size *= 2;\n            } while (_size <= domNo);\n            \n            final DOMAdapter[] newArray = new DOMAdapter[_size];\n            System.arraycopy(_adapters, 0, newArray, 0, oldSize);\n            _adapters = newArray;\n        }\n        \n        _free = domNo + 1;\n        \n        if (dtmSize == 1) {\n            _adapters[domNo] = adapter;\n        }\n        else if (dtmIds != null) {\n            int domPos = 0;\n            for (int i = dtmSize - 1; i >= 0; i++) {\n                domPos = dtmIds.elementAt(i) >>> DTMManager.IDENT_DTM_NODE_BITS;\n                _adapters[domPos] = adapter;\n            }\n            domNo = domPos;\n        }\n\n        if (indexByURI) {\n            String uri = adapter.getDocumentURI(0);\n            _documents.put(uri, new Integer(domNo));\n        }\n        \n        if (dom instanceof AdaptiveResultTreeImpl) {\n            AdaptiveResultTreeImpl adaptiveRTF = (AdaptiveResultTreeImpl)dom;\n            DOM nestedDom = adaptiveRTF.getNestedDOM();\n            if (nestedDom != null) {\n                DOMAdapter newAdapter = new DOMAdapter(nestedDom, \n                                                       adapter.getNamesArray(),\n                                                       adapter.getNamespaceArray());\n                addDOMAdapter(newAdapter);  \n            } \n        }\n        \n        return domNo;\n    }\n        \n    public int getDocumentMask(String uri) {\n        Integer domIdx = (Integer)_documents.get(uri);\n        if (domIdx == null) {\n            return(-1);\n        } else {\n            return domIdx.intValue();\n        }\n    }\n    \n    public DOM getDOMAdapter(String uri) {\n        Integer domIdx = (Integer)_documents.get(uri);\n        if (domIdx == null) {\n            return(null);\n        } else {\n            return(_adapters[domIdx.intValue()]);\n        }\n    }\n    \n    public int getDocument() \n    {\n        return _main.getDocument();\n    }\n\n    /** \n      * Returns singleton iterator containing the document root \n      */\n    public DTMAxisIterator getIterator() {\n        return _main.getIterator();\n    }\n    \n    public String getStringValue() {\n        return _main.getStringValue();\n    }\n    \n    public DTMAxisIterator getChildren(final int node) {\n        return _adapters[getDTMId(node)].getChildren(node);\n    }\n    \n    public DTMAxisIterator getTypedChildren(final int type) {\n        return new AxisIterator(Axis.CHILD, type);\n    }\n    \n    public DTMAxisIterator getAxisIterator(final int axis) {\n        return new AxisIterator(axis, NO_TYPE);\n    }\n    \n    public DTMAxisIterator getTypedAxisIterator(final int axis, final int type)\n    {\n        return new AxisIterator(axis, type);\n    }\n\n    public DTMAxisIterator getNthDescendant(int node, int n,\n                                            boolean includeself)\n    {\n        return _adapters[getDTMId(node)].getNthDescendant(node, n, includeself);\n    }\n\n    public DTMAxisIterator getNodeValueIterator(DTMAxisIterator iterator,\n                                                int type, String value,\n                                                boolean op)\n    {\n        return(new NodeValueIterator(iterator, type, value, op));\n    }\n\n    public DTMAxisIterator getNamespaceAxisIterator(final int axis,\n                                                    final int ns)\n    {\n        DTMAxisIterator iterator = _main.getNamespaceAxisIterator(axis, ns);\n        return(iterator);        \n    }\n\n    public DTMAxisIterator orderNodes(DTMAxisIterator source, int node) {\n        return _adapters[getDTMId(node)].orderNodes(source, node);\n    }\n\n    public int getExpandedTypeID(final int node) {\n    \tif (node != DTM.NULL) {\n            return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getExpandedTypeID(node);\n    \t}\n    \telse {\n    \t    return DTM.NULL;\n    \t}\n    }\n\n    public int getNamespaceType(final int node) {\n        return _adapters[getDTMId(node)].getNamespaceType(node);\n    }\n    \n    public int getNSType(int node)\n   {\n        return _adapters[getDTMId(node)].getNSType(node);\n   }\n    \n    public int getParent(final int node) {\n        if (node == DTM.NULL) {\n            return DTM.NULL;\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getParent(node);\n    }\n    \n    public int getAttributeNode(final int type, final int el) {\n        if (el == DTM.NULL) {\n            return DTM.NULL;\n        }\n        return _adapters[el >>> DTMManager.IDENT_DTM_NODE_BITS].getAttributeNode(type, el);\n    }\n    \n    public String getNodeName(final int node) {\n        if (node == DTM.NULL) {\n            return \"\";\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getNodeName(node);\n    }\n    \n    public String getNodeNameX(final int node) {\n        if (node == DTM.NULL) {\n            return \"\";\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getNodeNameX(node);\n    }\n\n    public String getNamespaceName(final int node) {\n        if (node == DTM.NULL) {\n            return \"\";\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getNamespaceName(node);\n    }\n    \n    public String getStringValueX(final int node) {\n        if (node == DTM.NULL) {\n            return \"\";\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getStringValueX(node);\n    }\n    \n    public void copy(final int node, SerializationHandler handler)\n        throws TransletException\n    {\n        if (node != DTM.NULL) {\n            _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].copy(node, handler);\n        }\n    }\n    \n    public void copy(DTMAxisIterator nodes, SerializationHandler handler)\n            throws TransletException\n    {\n        int node;\n        while ((node = nodes.next()) != DTM.NULL) {\n            _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].copy(node, handler);\n        }\n    }\n\n\n    public String shallowCopy(final int node, SerializationHandler handler)\n            throws TransletException\n    {\n        if (node == DTM.NULL) {\n            return \"\";\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].shallowCopy(node, handler);\n    }\n    \n    public boolean lessThan(final int node1, final int node2) {\n        if (node1 == DTM.NULL) {\n            return true;\n        }\n        if (node2 == DTM.NULL) {\n            return false;\n        }\n        final int dom1 = getDTMId(node1);\n        final int dom2 = getDTMId(node2);\n        return dom1 == dom2 ? _adapters[dom1].lessThan(node1, node2)\n                            : dom1 < dom2;\n    }\n    \n    public void characters(final int textNode, SerializationHandler handler)\n                 throws TransletException\n    {\n        if (textNode != DTM.NULL) {\n            _adapters[textNode >>> DTMManager.IDENT_DTM_NODE_BITS].characters(textNode, handler);\n        }\n    }\n\n    public void setFilter(StripFilter filter) {\n        for (int dom=0; dom<_free; dom++) {\n            if (_adapters[dom] != null) {\n                _adapters[dom].setFilter(filter);\n            }\n        }\n    }\n\n    public Node makeNode(int index) {\n        if (index == DTM.NULL) {\n            return null;\n        }\n        return _adapters[getDTMId(index)].makeNode(index);\n    }\n\n    public Node makeNode(DTMAxisIterator iter) {\n        return _main.makeNode(iter);\n    }\n\n    public NodeList makeNodeList(int index) {\n        if (index == DTM.NULL) {\n            return null;\n        }\n        return _adapters[getDTMId(index)].makeNodeList(index);\n    }\n\n    public NodeList makeNodeList(DTMAxisIterator iter) {\n        return _main.makeNodeList(iter);\n    }\n\n    public String getLanguage(int node) {\n        return _adapters[getDTMId(node)].getLanguage(node);\n    }\n\n    public int getSize() {\n        int size = 0;\n        for (int i=0; i<_size; i++) {\n            size += _adapters[i].getSize();\n        }\n        return(size);\n    }\n\n    public String getDocumentURI(int node) {\n        if (node == DTM.NULL) {\n            node = DOM.NULL;\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getDocumentURI(0);\n    }\n\n    public boolean isElement(final int node) {\n        if (node == DTM.NULL) {\n            return false;\n        }\n        return(_adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].isElement(node));\n    }\n\n    public boolean isAttribute(final int node) {\n        if (node == DTM.NULL) {\n            return false;\n        }\n        return(_adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].isAttribute(node));\n    }\n    \n    public int getDTMId(int nodeHandle)\n    {\n        if (nodeHandle == DTM.NULL)\n            return 0;\n        \n        int id = nodeHandle >>> DTMManager.IDENT_DTM_NODE_BITS;\n        while (id >= 2 && _adapters[id] == _adapters[id-1]) {\n            id--;\n        }\n        return id;\n    }\n    \n    public int getNodeIdent(int nodeHandle)\n    {\n        return _adapters[nodeHandle >>> DTMManager.IDENT_DTM_NODE_BITS].getNodeIdent(nodeHandle);\n    }\n    \n    public int getNodeHandle(int nodeId)\n    {\n        return _main.getNodeHandle(nodeId);\n    }\n    \n    public DOM getResultTreeFrag(int initSize, int rtfType)\n    {\n        return _main.getResultTreeFrag(initSize, rtfType);\n    }\n    \n    public DOM getMain()\n    {\n        return _main;\n    }\n    \n    /**\n     * Returns a DOMBuilder class wrapped in a SAX adapter.\n     */\n    public SerializationHandler getOutputDomBuilder()\n    {\n        return _main.getOutputDomBuilder();\n    }\n\n    public String lookupNamespace(int node, String prefix) \n        throws TransletException\n    {\n        return _main.lookupNamespace(node, prefix);\n    }\n\n    public String getUnparsedEntityURI(String entity) {\n        return _main.getUnparsedEntityURI(entity);\n    }\n\n    public Hashtable getElementsWithIDs() {\n        return _main.getElementsWithIDs();", "functions": [{"function_name": "nextMask", "code": "    public int nextMask() {\n        return _free;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setupMapping", "code": "    public void setupMapping(String[] names, String[] namespaces) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addDOMAdapter", "code": "    public int addDOMAdapter(DOMAdapter adapter) {\n        return addDOMAdapter(adapter, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addDOMAdapter", "code": "    private int addDOMAdapter(DOMAdapter adapter, boolean indexByURI) {\n        DOM dom = adapter.getDOMImpl();\n        \n        int domNo = 1;\n        int dtmSize = 1;\n        SuballocatedIntVector dtmIds = null;\n        if (dom instanceof DTMDefaultBase) {\n            DTMDefaultBase dtmdb = (DTMDefaultBase)dom;\n            dtmIds = dtmdb.getDTMIDs();\n            dtmSize = dtmIds.size();\n            domNo = dtmIds.elementAt(dtmSize-1) >>> DTMManager.IDENT_DTM_NODE_BITS;\n        }\n        else if (dom instanceof SimpleResultTreeImpl) {\n            SimpleResultTreeImpl simpleRTF = (SimpleResultTreeImpl)dom;\n            domNo = simpleRTF.getDocument() >>> DTMManager.IDENT_DTM_NODE_BITS;\n        }\n                  \n        if (domNo >= _size) {\n            int oldSize = _size;\n            do {\n            \t_size *= 2;\n            } while (_size <= domNo);\n            \n            final DOMAdapter[] newArray = new DOMAdapter[_size];\n            System.arraycopy(_adapters, 0, newArray, 0, oldSize);\n            _adapters = newArray;\n        }\n        \n        _free = domNo + 1;\n        \n        if (dtmSize == 1) {\n            _adapters[domNo] = adapter;\n        }\n        else if (dtmIds != null) {\n            int domPos = 0;\n            for (int i = dtmSize - 1; i >= 0; i++) {\n                domPos = dtmIds.elementAt(i) >>> DTMManager.IDENT_DTM_NODE_BITS;\n                _adapters[domPos] = adapter;\n            }\n            domNo = domPos;\n        }\n\n        if (indexByURI) {\n            String uri = adapter.getDocumentURI(0);\n            _documents.put(uri, new Integer(domNo));\n        }\n        \n        if (dom instanceof AdaptiveResultTreeImpl) {\n            AdaptiveResultTreeImpl adaptiveRTF = (AdaptiveResultTreeImpl)dom;\n            DOM nestedDom = adaptiveRTF.getNestedDOM();\n            if (nestedDom != null) {\n                DOMAdapter newAdapter = new DOMAdapter(nestedDom, \n                                                       adapter.getNamesArray(),\n                                                       adapter.getNamespaceArray());\n                addDOMAdapter(newAdapter);  \n            } \n        }\n        \n        return domNo;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [4, 14], [4, 15], [0, 16], [5, 17], [6, 18], [6, 19], [2, 20], [2, 21], [2, 22], [3, 23], [14, 24], [15, 25], [16, 26], [5, 27], [5, 28], [5, 29], [18, 30], [6, 31], [7, 32], [8, 33], [9, 34], [10, 35], [20, 36], [3, 37], [14, 38], [14, 39], [24, 40], [4, 41], [26, 42], [5, 43], [5, 44], [28, 45], [18, 46], [6, 47], [6, 48], [6, 49], [20, 50], [36, 51], [21, 52], [37, 53], [23, 54], [14, 55], [38, 56], [44, 57], [44, 58], [18, 59], [47, 60], [48, 61], [49, 62], [20, 63], [54, 64], [56, 65], [39, 66], [28, 67], [59, 68], [60, 69], [50, 70], [38, 71], [38, 72], [38, 73], [67, 74], [68, 75], [69, 76], [70, 77], [70, 78], [72, 79], [73, 80], [76, 81], [79, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 4], [15, 4], [16, 0], [17, 5], [18, 6], [19, 6], [20, 2], [21, 2], [22, 2], [23, 3], [24, 14], [25, 15], [26, 16], [27, 5], [28, 5], [29, 5], [30, 18], [31, 6], [32, 7], [33, 8], [34, 9], [35, 10], [36, 20], [37, 3], [38, 14], [39, 14], [40, 24], [41, 4], [42, 26], [43, 5], [44, 5], [45, 28], [46, 18], [47, 6], [48, 6], [49, 6], [50, 20], [51, 36], [52, 21], [53, 37], [54, 23], [55, 14], [56, 38], [57, 44], [58, 44], [59, 18], [60, 47], [61, 48], [62, 49], [63, 20], [64, 54], [65, 56], [66, 39], [67, 28], [68, 59], [69, 60], [70, 50], [71, 38], [72, 38], [73, 38], [74, 67], [75, 68], [76, 69], [77, 70], [78, 70], [79, 72], [80, 73], [81, 76], [82, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "getDocumentMask", "code": "    public int getDocumentMask(String uri) {\n        Integer domIdx = (Integer)_documents.get(uri);\n        if (domIdx == null) {\n            return(-1);\n        } else {\n            return domIdx.intValue();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getDOMAdapter", "code": "    public DOM getDOMAdapter(String uri) {\n        Integer domIdx = (Integer)_documents.get(uri);\n        if (domIdx == null) {\n            return(null);\n        } else {\n            return(_adapters[domIdx.intValue()]);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getDocument", "code": "    public int getDocument() \n    {\n        return _main.getDocument();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIterator", "code": "    public DTMAxisIterator getIterator() {\n        return _main.getIterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStringValue", "code": "    public String getStringValue() {\n        return _main.getStringValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getChildren", "code": "    public DTMAxisIterator getChildren(final int node) {\n        return _adapters[getDTMId(node)].getChildren(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getTypedChildren", "code": "    public DTMAxisIterator getTypedChildren(final int type) {\n        return new AxisIterator(Axis.CHILD, type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAxisIterator", "code": "    public DTMAxisIterator getAxisIterator(final int axis) {\n        return new AxisIterator(axis, NO_TYPE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTypedAxisIterator", "code": "    public DTMAxisIterator getTypedAxisIterator(final int axis, final int type)\n    {\n        return new AxisIterator(axis, type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNthDescendant", "code": "    public DTMAxisIterator getNthDescendant(int node, int n,\n                                            boolean includeself)\n    {\n        return _adapters[getDTMId(node)].getNthDescendant(node, n, includeself);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNodeValueIterator", "code": "    public DTMAxisIterator getNodeValueIterator(DTMAxisIterator iterator,\n                                                int type, String value,\n                                                boolean op)\n    {\n        return(new NodeValueIterator(iterator, type, value, op));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNamespaceAxisIterator", "code": "    public DTMAxisIterator getNamespaceAxisIterator(final int axis,\n                                                    final int ns)\n    {\n        DTMAxisIterator iterator = _main.getNamespaceAxisIterator(axis, ns);\n        return(iterator);        ", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "orderNodes", "code": "    public DTMAxisIterator orderNodes(DTMAxisIterator source, int node) {\n        return _adapters[getDTMId(node)].orderNodes(source, node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getExpandedTypeID", "code": "    public int getExpandedTypeID(final int node) {\n    \tif (node != DTM.NULL) {\n            return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getExpandedTypeID(node);\n    \t}\n    \telse {\n    \t    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNamespaceType", "code": "    public int getNamespaceType(final int node) {\n        return _adapters[getDTMId(node)].getNamespaceType(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNSType", "code": "    public int getNSType(int node)\n   {\n        return _adapters[getDTMId(node)].getNSType(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getParent", "code": "    public int getParent(final int node) {\n        if (node == DTM.NULL) {\n            return DTM.NULL;\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getParent(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getAttributeNode", "code": "    public int getAttributeNode(final int type, final int el) {\n        if (el == DTM.NULL) {\n            return DTM.NULL;\n        }\n        return _adapters[el >>> DTMManager.IDENT_DTM_NODE_BITS].getAttributeNode(type, el);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [2, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 2], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNodeName", "code": "    public String getNodeName(final int node) {\n        if (node == DTM.NULL) {\n            return \"\";\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getNodeName(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNodeNameX", "code": "    public String getNodeNameX(final int node) {\n        if (node == DTM.NULL) {\n            return \"\";\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getNodeNameX(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNamespaceName", "code": "    public String getNamespaceName(final int node) {\n        if (node == DTM.NULL) {\n            return \"\";\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getNamespaceName(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getStringValueX", "code": "    public String getStringValueX(final int node) {\n        if (node == DTM.NULL) {\n            return \"\";\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getStringValueX(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "copy", "code": "    public void copy(final int node, SerializationHandler handler)\n        throws TransletException\n    {\n        if (node != DTM.NULL) {\n            _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].copy(node, handler);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "copy", "code": "    public void copy(DTMAxisIterator nodes, SerializationHandler handler)\n            throws TransletException\n    {\n        int node;\n        while ((node = nodes.next()) != DTM.NULL) {\n            _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].copy(node, handler);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [1, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [8, 1], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "shallowCopy", "code": "    public String shallowCopy(final int node, SerializationHandler handler)\n            throws TransletException\n    {\n        if (node == DTM.NULL) {\n            return \"\";\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].shallowCopy(node, handler);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [2, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 2], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "lessThan", "code": "    public boolean lessThan(final int node1, final int node2) {\n        if (node1 == DTM.NULL) {\n            return true;\n        }\n        if (node2 == DTM.NULL) {\n            return false;\n        }\n        final int dom1 = getDTMId(node1);\n        final int dom2 = getDTMId(node2);\n        return dom1 == dom2 ? _adapters[dom1].lessThan(node1, node2)\n                            : dom1 < dom2;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [5, 10], [8, 11], [8, 12], [2, 13], [3, 14], [4, 15], [5, 16], [8, 17], [15, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 5], [11, 8], [12, 8], [13, 2], [14, 3], [15, 4], [16, 5], [17, 8], [18, 15], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "characters", "code": "    public void characters(final int textNode, SerializationHandler handler)\n                 throws TransletException\n    {\n        if (textNode != DTM.NULL) {\n            _adapters[textNode >>> DTMManager.IDENT_DTM_NODE_BITS].characters(textNode, handler);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setFilter", "code": "    public void setFilter(StripFilter filter) {\n        for (int dom=0; dom<_free; dom++) {\n            if (_adapters[dom] != null) {\n                _adapters[dom].setFilter(filter);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 6], [5, 7], [4, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 1], [7, 5], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "makeNode", "code": "    public Node makeNode(int index) {\n        if (index == DTM.NULL) {\n            return null;\n        }\n        return _adapters[getDTMId(index)].makeNode(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "makeNode", "code": "    public Node makeNode(DTMAxisIterator iter) {\n        return _main.makeNode(iter);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "makeNodeList", "code": "    public NodeList makeNodeList(int index) {\n        if (index == DTM.NULL) {\n            return null;\n        }\n        return _adapters[getDTMId(index)].makeNodeList(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "makeNodeList", "code": "    public NodeList makeNodeList(DTMAxisIterator iter) {\n        return _main.makeNodeList(iter);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLanguage", "code": "    public String getLanguage(int node) {\n        return _adapters[getDTMId(node)].getLanguage(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSize", "code": "    public int getSize() {\n        int size = 0;\n        for (int i=0; i<_size; i++) {\n            size += _adapters[i].getSize();\n        }\n        return(size);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDocumentURI", "code": "    public String getDocumentURI(int node) {\n        if (node == DTM.NULL) {\n            node = DOM.NULL;\n        }\n        return _adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].getDocumentURI(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [5, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 5], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isElement", "code": "    public boolean isElement(final int node) {\n        if (node == DTM.NULL) {\n            return false;\n        }\n        return(_adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].isElement(node));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isAttribute", "code": "    public boolean isAttribute(final int node) {\n        if (node == DTM.NULL) {\n            return false;\n        }\n        return(_adapters[node >>> DTMManager.IDENT_DTM_NODE_BITS].isAttribute(node));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getDTMId", "code": "    public int getDTMId(int nodeHandle)\n    {\n        if (nodeHandle == DTM.NULL)\n            return 0;\n        \n        int id = nodeHandle >>> DTMManager.IDENT_DTM_NODE_BITS;\n        while (id >= 2 && _adapters[id] == _adapters[id-1]) {\n            id--;\n        }\n        return id;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [4, 8], [6, 9], [6, 10], [3, 11], [7, 12], [10, 13], [9, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 4], [9, 6], [10, 6], [11, 3], [12, 7], [13, 10], [14, 9], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getNodeIdent", "code": "    public int getNodeIdent(int nodeHandle)\n    {\n        return _adapters[nodeHandle >>> DTMManager.IDENT_DTM_NODE_BITS].getNodeIdent(nodeHandle);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNodeHandle", "code": "    public int getNodeHandle(int nodeId)\n    {\n        return _main.getNodeHandle(nodeId);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResultTreeFrag", "code": "    public DOM getResultTreeFrag(int initSize, int rtfType)\n    {\n        return _main.getResultTreeFrag(initSize, rtfType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getMain", "code": "    public DOM getMain()\n    {\n        return _main;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOutputDomBuilder", "code": "    public SerializationHandler getOutputDomBuilder()\n    {\n        return _main.getOutputDomBuilder();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "lookupNamespace", "code": "    public String lookupNamespace(int node, String prefix) \n        throws TransletException\n    {\n        return _main.lookupNamespace(node, prefix);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUnparsedEntityURI", "code": "    public String getUnparsedEntityURI(String entity) {\n        return _main.getUnparsedEntityURI(entity);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getElementsWithIDs", "code": "    public Hashtable getElementsWithIDs() {\n        return _main.getElementsWithIDs();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MultiDOM", "code": "    public MultiDOM(DOM main) {\n        _size = INITIAL_SIZE;\n        _free = 1;\n        _adapters = new DOM[INITIAL_SIZE];\n        DOMAdapter adapter = (DOMAdapter)main;\n        _adapters[0] = adapter;\n        _main = adapter;\n\n        addDOMAdapter(adapter, false);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [7, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 7], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 1}
{"sample_id": "xalan-2.7-8437", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/DTMAxisTraverser.java", "language": "java", "name": "org.apache.xml.dtm.DTMAxisTraverser", "code": "public abstract class DTMAxisTraverser\n{\n\n  /**\n   * By the nature of the stateless traversal, the context node can not be\n   * returned or the iteration will go into an infinate loop.  So to traverse \n   * an axis, the first function must be used to get the first node.\n   *\n   * <p>This method needs to be overloaded only by those axis that process\n   * the self node. <\\p>\n   *\n   * @param context The context node of this traversal. This is the point\n   * that the traversal starts from.\n   * @return the first node in the traversal.\n   */\n  public int first(int context)\n  {\n    return next(context, context);\n  }\n\n  /**\n   * By the nature of the stateless traversal, the context node can not be\n   * returned or the iteration will go into an infinate loop.  So to traverse \n   * an axis, the first function must be used to get the first node.\n   *\n   * <p>This method needs to be overloaded only by those axis that process\n   * the self node. <\\p>\n   *\n   * @param context The context node of this traversal. This is the point\n   * of origin for the traversal -- its \"root node\" or starting point.\n   * @param extendedTypeID The extended type ID that must match.\n   *\n   * @return the first node in the traversal.\n   */\n  public int first(int context, int extendedTypeID)\n  {\n    return next(context, context, extendedTypeID);\n  }\n\n  /**\n   * Traverse to the next node after the current node.\n   *\n   * @param context The context node of this traversal. This is the point\n   * of origin for the traversal -- its \"root node\" or starting point.\n   * @param current The current node of the traversal. This is the last known\n   * location in the traversal, typically the node-handle returned by the\n   * previous traversal step. For the first traversal step, context\n   * should be set equal to current. Note that in order to test whether\n   * context is in the set, you must use the first() method instead.\n   *\n   * @return the next node in the iteration, or DTM.NULL.\n   * @see #first(int)\n   */\n  public abstract int next(int context, int current);\n\n  /**\n   * Traverse to the next node after the current node that is matched\n   * by the extended type ID.\n   *\n   * @param context The context node of this traversal. This is the point\n   * of origin for the traversal -- its \"root node\" or starting point.\n   * @param current The current node of the traversal. This is the last known\n   * location in the traversal, typically the node-handle returned by the\n   * previous traversal step. For the first traversal step, context\n   * should be set equal to current. Note that in order to test whether\n   * context is in the set, you must use the first() method instead.\n   * @param extendedTypeID The extended type ID that must match.\n   *\n   * @return the next node in the iteration, or DTM.NULL.\n   * @see #first(int,int)\n   */\n  public abstract int next(int context, int current, int extendedTypeID);", "functions": [{"function_name": "first", "code": "  public int first(int context)\n  {\n    return next(context, context);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "first", "code": "  public int first(int context, int extendedTypeID)\n  {\n    return next(context, context, extendedTypeID);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "next", "code": "  public abstract int next(int context, int current);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "next", "code": "  public abstract int next(int context, int current, int extendedTypeID);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.4-6810", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/dom/NodeCounter.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.NodeCounter", "code": "public abstract class NodeCounter implements Axis {\n    public static final int END = DOM.NULL;\n\n    protected int _node = END;\n    protected int _nodeType = DOM.FIRST_TYPE - 1;\n    protected int _value = Integer.MIN_VALUE;\n\n    public final DOM          _document;\n    public final NodeIterator _iterator;\n    public final Translet     _translet;\n\n    protected String _format;\n    protected String _lang;\n    protected String _letterValue;\n    protected String _groupSep;\n    protected int    _groupSize;\n\n    private boolean separFirst = true;\n    private boolean separLast = false;\n    private Vector separToks = null;\n    private Vector formatToks = null;\n    private int nSepars  = 0;\n    private int nFormats = 0;\n\n    private static String[] Thousands = \n        {\"\", \"m\", \"mm\", \"mmm\" };\n    private static String[] Hundreds = \n\t{\"\", \"c\", \"cc\", \"ccc\", \"cd\", \"d\", \"dc\", \"dcc\", \"dccc\", \"cm\"};\n    private static String[] Tens = \n\t{\"\", \"x\", \"xx\", \"xxx\", \"xl\", \"l\", \"lx\", \"lxx\", \"lxxx\", \"xc\"};\n    private static String[] Ones = \n\t{\"\", \"i\", \"ii\", \"iii\", \"iv\", \"v\", \"vi\", \"vii\", \"viii\", \"ix\"};\n\n    protected NodeCounter(Translet translet,\n\t\t\t  DOM document, NodeIterator iterator) {\n\t_translet = translet;\n\t_document = document;\n\t_iterator = iterator;\n    }\n\n    /** \n     * Set the start node for this counter. The same <tt>NodeCounter</tt>\n     * object can be used multiple times by resetting the starting node.\n     */\n    abstract public NodeCounter setStartNode(int node);\n\n    /** \n     * If the user specified a value attribute, use this instead of \n     * counting nodes.\n     */\n    public NodeCounter setValue(int value) {\n\t_value = value;\n\treturn this;\n    }\n\n    /**\n     * Sets formatting fields before calling formatNumbers().\n     */\n    protected void setFormatting(String format, String lang, String letterValue,\n\t\t\t\t String groupSep, String groupSize) {\n\t_lang = lang;\n\t_format = format;\n\t_groupSep = groupSep;\n\t_letterValue = letterValue;\n\n\ttry {\n\t    _groupSize = Integer.parseInt(groupSize);\n\t}\n\tcatch (NumberFormatException e) {\n\t    _groupSize = 0;\n\t}\n\n\tfinal int length = _format.length();\n\tboolean isFirst = true;\n\tseparFirst = true;\n\tseparLast = false;\n\n        separToks = new Vector();\n        formatToks = new Vector();\n\n\t/* \n\t * Tokenize the format string into alphanumeric and non-alphanumeric\n\t * tokens as described in M. Kay page 241.\n\t */\n\tfor (int j = 0, i = 0; i < length;) {\n            char c = _format.charAt(i);\n            for (j = i; Character.isLetterOrDigit(c);) {\n                if (++i == length) break;\n\t\tc = _format.charAt(i);\n            }\n            if (i > j) {\n                if (isFirst) {\n                    separToks.addElement(\".\");\n                    isFirst = separFirst = false;\n                }\n                formatToks.addElement(_format.substring(j, i));\n            }\n\n            if (i == length) break;\n\n            c = _format.charAt(i);\n            for (j = i; !Character.isLetterOrDigit(c);) {\n                if (++i == length) break;\n                c = _format.charAt(i);\n                isFirst = false;\n            }\n            if (i > j) {\n                separToks.addElement(_format.substring(j, i));\n            }\n        }\n\n\tnSepars = separToks.size();\n\tnFormats = formatToks.size(); \n\tif (nSepars > nFormats) separLast = true;\n\n\tif (separFirst) nSepars--;\n\tif (separLast) nSepars--;\n\tif (nSepars == 0) {\n\t    separToks.insertElementAt(\".\", 1);\n \t    nSepars++;\n\t}\n\tif (separFirst) nSepars ++;\n    }\n\n    /**\n     * Sets formatting fields to their default values.\n     */\n    public NodeCounter setDefaultFormatting() {\n\tsetFormatting(\"1\", \"en\", \"alphabetic\", null, null);\n\treturn this;\n    }\n\n    /**\n     * Returns the position of <tt>node</tt> according to the level and \n     * the from and count patterns.\n     */\n    abstract public String getCounter();\n\n    /**\n     * Returns the position of <tt>node</tt> according to the level and \n     * the from and count patterns. This position is converted into a\n     * string based on the arguments passed.\n     */\n    public String getCounter(String format, String lang, String letterValue,\n\t\t\t     String groupSep, String groupSize) {\n\tsetFormatting(format, lang, letterValue, groupSep, groupSize);\n\treturn getCounter();\n    }\n\n    /**\n     * Returns true if <tt>node</tt> matches the count pattern. By\n     * default a node matches the count patterns if it is of the \n     * same type as the starting node.\n     */\n    public boolean matchesCount(int node) {\n\treturn _nodeType == _document.getType(node);\n    }\n\n    /**\n     * Returns true if <tt>node</tt> matches the from pattern. By default, \n     * no node matches the from pattern.\n     */\n    public boolean matchesFrom(int node) {\n\treturn false;\n    }\n\n    /**\n     * Format a single value according to the format parameters.\n     */\n    protected String formatNumbers(int value) {\n\treturn formatNumbers(new int[] { value });\n    }\n\n    /**\n     * Format a sequence of values according to the format paramaters\n     * set by calling setFormatting().\n     */\n    protected String formatNumbers(int[] values) {\n\tfinal int nValues = values.length;\n\tfinal int length = _format.length();\n\n\tboolean isEmpty = true;\n\tfor (int i = 0; i < nValues; i++)\n\t    if (values[i] != Integer.MIN_VALUE)\n\t\tisEmpty = false;\n\tif (isEmpty) return(\"\");\n\n\tboolean isFirst = true;\n\tint t = 0, n = 0, s = 1;\n\tfinal StringBuffer buffer = new StringBuffer();\n\n\tif (separFirst) buffer.append((String)separToks.elementAt(0));\n\n\twhile (n < nValues) {\n\t    final int value = values[n];\n\t    if (value != Integer.MIN_VALUE) {\n\t\tif (!isFirst) buffer.append((String) separToks.elementAt(s++));\n\t\tformatValue(value, (String)formatToks.elementAt(t++), buffer);\n\t\tif (t == nFormats) t--;\n\t\tif (s >= nSepars) s--;\n\t\tisFirst = false;\n\t    }\n\t    n++;\n\t}\n\n\tif (separLast) buffer.append((String)separToks.lastElement());\n\treturn buffer.toString();\n    }\n\n    /**\n     * Format a single value based on the appropriate formatting token. \n     * This method is based on saxon (Michael Kay) and only implements\n     * lang=\"en\".\n     */\n    private void formatValue(int value, String format, StringBuffer buffer) {\n\n        char c = format.charAt(0);\n        if (Character.isDigit(c)) {\n            char zero = (char)(c - Character.getNumericValue(c));\n\n            StringBuffer temp = buffer;\n            if (_groupSize > 0) {\n                temp = new StringBuffer();\n            }\n            String s = \"\";\n            int n = value;\n            while (n > 0) {\n                s = (char) ((int) zero + (n % 10)) + s;\n                n = n / 10;\n            }\n                \n            for (int i = 0; i < format.length() - s.length(); i++) {\n                temp.append(zero);\n            }\n            temp.append(s);\n            \n            if (_groupSize > 0) {\n                for (int i = 0; i < temp.length(); i++) {\n                    if (i != 0 && ((temp.length() - i) % _groupSize) == 0) {\n                        buffer.append(_groupSep);\n                    }\n                    buffer.append(temp.charAt(i));\n                }\n            }\n        } \n\telse if (c == 'i' && !_letterValue.equals(\"alphabetic\")) {\n            buffer.append(romanValue(value));\n        } \n\telse if (c == 'I' && !_letterValue.equals(\"alphabetic\")) {\n            buffer.append(romanValue(value).toUpperCase());\n        } \n\telse {\n            int min = (int) c;\n            int max = (int) c;\n            while (Character.isLetterOrDigit((char) (max+1))) {\n\t\tmax++;\n\t    }\n            buffer.append(alphaValue(value, min, max));\n        }\n    }\n\n    private String alphaValue(int value, int min, int max) {\n        if (value <= 0) {\n\t    return \"\" + value;\n\t}\n\n        int range = max - min + 1;\n        char last = (char)(((value-1) % range) + min);\n        if (value > range) {\n            return alphaValue((value-1) / range, min, max) + last;\n        } \n\telse {\n            return \"\" + last;\n        }\n    }\n\n    private String romanValue(int n) {\n        if (n <= 0 || n > 4000) {\n\t    return \"\" + n;\n\t}\n        return\n\t    Thousands[n / 1000] +\n\t    Hundreds[(n / 100) % 10] +\n\t    Tens[(n/10) % 10] +\n\t    Ones[n % 10];", "functions": [{"function_name": "setStartNode", "code": "    abstract public NodeCounter setStartNode(int node);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setValue", "code": "    public NodeCounter setValue(int value) {\n\t_value = value;\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFormatting", "code": "    protected void setFormatting(String format, String lang, String letterValue,\n\t\t\t\t String groupSep, String groupSize) {\n\t_lang = lang;\n\t_format = format;\n\t_groupSep = groupSep;\n\t_letterValue = letterValue;\n\n\ttry {\n\t    _groupSize = Integer.parseInt(groupSize);\n\t}\n\tcatch (NumberFormatException e) {\n\t    _groupSize = 0;\n\t}\n\n\tfinal int length = _format.length();\n\tboolean isFirst = true;\n\tseparFirst = true;\n\tseparLast = false;\n\n        separToks = new Vector();\n        formatToks = new Vector();\n\n\t/* \n\t * Tokenize the format string into alphanumeric and non-alphanumeric\n\t * tokens as described in M. Kay page 241.\n\t */\n\tfor (int j = 0, i = 0; i < length;) {\n            char c = _format.charAt(i);\n            for (j = i; Character.isLetterOrDigit(c);) {\n                if (++i == length) break;\n\t\tc = _format.charAt(i);\n            }\n            if (i > j) {\n                if (isFirst) {\n                    separToks.addElement(\".\");\n                    isFirst = separFirst = false;\n                }\n                formatToks.addElement(_format.substring(j, i));\n            }\n\n            if (i == length) break;\n\n            c = _format.charAt(i);\n            for (j = i; !Character.isLetterOrDigit(c);) {\n                if (++i == length) break;\n                c = _format.charAt(i);\n                isFirst = false;\n            }\n            if (i > j) {\n                separToks.addElement(_format.substring(j, i));\n            }\n        }\n\n\tnSepars = separToks.size();\n\tnFormats = formatToks.size(); \n\tif (nSepars > nFormats) separLast = true;\n\n\tif (separFirst) nSepars--;\n\tif (separLast) nSepars--;\n\tif (nSepars == 0) {\n\t    separToks.insertElementAt(\".\", 1);\n \t    nSepars++;\n\t}\n\tif (separFirst) nSepars ++;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CATCH", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "IF", "LOOP", "IF", "IF", "LOOP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [5, 16], [0, 17], [0, 18], [6, 19], [0, 20], [0, 21], [0, 22], [0, 23], [9, 24], [0, 25], [0, 26], [0, 27], [0, 28], [15, 29], [5, 30], [17, 31], [18, 32], [6, 33], [6, 34], [6, 35], [6, 36], [6, 37], [6, 38], [20, 39], [21, 40], [22, 41], [23, 42], [7, 43], [8, 44], [9, 45], [2, 46], [30, 47], [33, 48], [34, 49], [34, 50], [6, 51], [35, 52], [35, 53], [36, 54], [37, 55], [37, 56], [6, 57], [6, 58], [24, 59], [45, 60], [46, 61], [46, 62], [34, 63], [51, 64], [36, 65], [37, 66], [38, 67], [59, 68], [33, 69], [34, 70], [34, 71], [63, 72], [63, 73], [36, 74], [37, 75], [66, 76], [66, 77], [69, 78], [70, 79], [71, 80], [74, 81], [75, 82], [65, 83], [65, 84], [83, 85], [84, 86], [85, 87], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 5], [17, 0], [18, 0], [19, 6], [20, 0], [21, 0], [22, 0], [23, 0], [24, 9], [25, 0], [26, 0], [27, 0], [28, 0], [29, 15], [30, 5], [31, 17], [32, 18], [33, 6], [34, 6], [35, 6], [36, 6], [37, 6], [38, 6], [39, 20], [40, 21], [41, 22], [42, 23], [43, 7], [44, 8], [45, 9], [46, 2], [47, 30], [48, 33], [49, 34], [50, 34], [51, 6], [52, 35], [53, 35], [54, 36], [55, 37], [56, 37], [57, 6], [58, 6], [59, 24], [60, 45], [61, 46], [62, 46], [63, 34], [64, 51], [65, 36], [66, 37], [67, 38], [68, 59], [69, 33], [70, 34], [71, 34], [72, 63], [73, 63], [74, 36], [75, 37], [76, 66], [77, 66], [78, 69], [79, 70], [80, 71], [81, 74], [82, 75], [83, 65], [84, 65], [85, 83], [86, 84], [87, 85], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}, {"function_name": "setDefaultFormatting", "code": "    public NodeCounter setDefaultFormatting() {\n\tsetFormatting(\"1\", \"en\", \"alphabetic\", null, null);\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 2], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getCounter", "code": "    abstract public String getCounter();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getCounter", "code": "    public String getCounter(String format, String lang, String letterValue,\n\t\t\t     String groupSep, String groupSize) {\n\tsetFormatting(format, lang, letterValue, groupSep, groupSize);\n\treturn getCounter();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "matchesCount", "code": "    public boolean matchesCount(int node) {\n\treturn _nodeType == _document.getType(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "matchesFrom", "code": "    public boolean matchesFrom(int node) {\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "formatNumbers", "code": "    protected String formatNumbers(int value) {\n\treturn formatNumbers(new int[] { value });", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "formatNumbers", "code": "    protected String formatNumbers(int[] values) {\n\tfinal int nValues = values.length;\n\tfinal int length = _format.length();\n\n\tboolean isEmpty = true;\n\tfor (int i = 0; i < nValues; i++)\n\t    if (values[i] != Integer.MIN_VALUE)\n\t\tisEmpty = false;\n\tif (isEmpty) return(\"\");\n\n\tboolean isFirst = true;\n\tint t = 0, n = 0, s = 1;\n\tfinal StringBuffer buffer = new StringBuffer();\n\n\tif (separFirst) buffer.append((String)separToks.elementAt(0));\n\n\twhile (n < nValues) {\n\t    final int value = values[n];\n\t    if (value != Integer.MIN_VALUE) {\n\t\tif (!isFirst) buffer.append((String) separToks.elementAt(s++));\n\t\tformatValue(value, (String)formatToks.elementAt(t++), buffer);\n\t\tif (t == nFormats) t--;\n\t\tif (s >= nSepars) s--;\n\t\tisFirst = false;\n\t    }\n\t    n++;\n\t}\n\n\tif (separLast) buffer.append((String)separToks.lastElement());\n\treturn buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "RETURN", "IF", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [3, 15], [8, 16], [9, 17], [9, 18], [2, 19], [3, 20], [3, 21], [4, 22], [5, 23], [6, 24], [6, 25], [6, 26], [7, 27], [16, 28], [17, 29], [10, 30], [11, 31], [20, 32], [17, 33], [9, 34], [19, 35], [20, 36], [20, 37], [20, 38], [22, 39], [33, 40], [20, 41], [36, 42], [37, 43], [20, 44], [39, 45], [41, 46], [38, 47], [44, 48], [47, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 3], [16, 8], [17, 9], [18, 9], [19, 2], [20, 3], [21, 3], [22, 4], [23, 5], [24, 6], [25, 6], [26, 6], [27, 7], [28, 16], [29, 17], [30, 10], [31, 11], [32, 20], [33, 17], [34, 9], [35, 19], [36, 20], [37, 20], [38, 20], [39, 22], [40, 33], [41, 20], [42, 36], [43, 37], [44, 20], [45, 39], [46, 41], [47, 38], [48, 44], [49, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "formatValue", "code": "    private void formatValue(int value, String format, StringBuffer buffer) {\n\n        char c = format.charAt(0);\n        if (Character.isDigit(c)) {\n            char zero = (char)(c - Character.getNumericValue(c));\n\n            StringBuffer temp = buffer;\n            if (_groupSize > 0) {\n                temp = new StringBuffer();\n            }\n            String s = \"\";\n            int n = value;\n            while (n > 0) {\n                s = (char) ((int) zero + (n % 10)) + s;\n                n = n / 10;\n            }\n                \n            for (int i = 0; i < format.length() - s.length(); i++) {\n                temp.append(zero);\n            }\n            temp.append(s);\n            \n            if (_groupSize > 0) {\n                for (int i = 0; i < temp.length(); i++) {\n                    if (i != 0 && ((temp.length() - i) % _groupSize) == 0) {\n                        buffer.append(_groupSep);\n                    }\n                    buffer.append(temp.charAt(i));\n                }\n            }\n        } \n\telse if (c == 'i' && !_letterValue.equals(\"alphabetic\")) {\n            buffer.append(romanValue(value));\n        } \n\telse if (c == 'I' && !_letterValue.equals(\"alphabetic\")) {\n            buffer.append(romanValue(value).toUpperCase());\n        } \n\telse {\n            int min = (int) c;\n            int max = (int) c;\n            while (Character.isLetterOrDigit((char) (max+1))) {\n\t\tmax++;\n\t    }\n            buffer.append(alphaValue(value, min, max));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "CALL", "IF", "BINARY_OP", "IF", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [8, 19], [9, 20], [9, 21], [10, 22], [1, 23], [11, 24], [12, 25], [15, 26], [18, 27], [8, 28], [8, 29], [8, 30], [19, 31], [19, 32], [6, 33], [20, 34], [21, 35], [10, 36], [22, 37], [24, 38], [25, 39], [14, 40], [26, 41], [8, 42], [28, 43], [8, 44], [31, 45], [32, 46], [33, 47], [36, 48], [11, 49], [38, 50], [38, 51], [11, 52], [12, 53], [12, 54], [15, 55], [17, 56], [42, 57], [44, 58], [36, 59], [48, 60], [53, 61], [54, 62], [55, 63], [56, 64], [43, 65], [58, 66], [36, 67], [59, 68], [36, 69], [61, 70], [65, 71], [67, 72], [68, 73], [68, 74], [62, 75], [59, 76], [73, 77], [73, 78], [74, 79], [75, 80], [78, 81], [80, 82], [81, 83], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 8], [20, 9], [21, 9], [22, 10], [23, 1], [24, 11], [25, 12], [26, 15], [27, 18], [28, 8], [29, 8], [30, 8], [31, 19], [32, 19], [33, 6], [34, 20], [35, 21], [36, 10], [37, 22], [38, 24], [39, 25], [40, 14], [41, 26], [42, 8], [43, 28], [44, 8], [45, 31], [46, 32], [47, 33], [48, 36], [49, 11], [50, 38], [51, 38], [52, 11], [53, 12], [54, 12], [55, 15], [56, 17], [57, 42], [58, 44], [59, 36], [60, 48], [61, 53], [62, 54], [63, 55], [64, 56], [65, 43], [66, 58], [67, 36], [68, 59], [69, 36], [70, 61], [71, 65], [72, 67], [73, 68], [74, 68], [75, 62], [76, 59], [77, 73], [78, 73], [79, 74], [80, 75], [81, 78], [82, 80], [83, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83]]}, {"function_name": "alphaValue", "code": "    private String alphaValue(int value, int min, int max) {\n        if (value <= 0) {\n\t    return \"\" + value;\n\t}\n\n        int range = max - min + 1;\n        char last = (char)(((value-1) % range) + min);\n        if (value > range) {\n            return alphaValue((value-1) / range, min, max) + last;\n        } \n\telse {\n            return \"\" + last;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [1, 10], [1, 11], [3, 12], [4, 13], [9, 14], [10, 15], [11, 16], [2, 17], [12, 18], [12, 19], [13, 20], [15, 21], [16, 22], [17, 23], [20, 24], [22, 25], [23, 26], [25, 27], [26, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 1], [11, 1], [12, 3], [13, 4], [14, 9], [15, 10], [16, 11], [17, 2], [18, 12], [19, 12], [20, 13], [21, 15], [22, 16], [23, 17], [24, 20], [25, 22], [26, 23], [27, 25], [28, 26], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "romanValue", "code": "    private String romanValue(int n) {\n        if (n <= 0 || n > 4000) {\n\t    return \"\" + n;\n\t}\n        return\n\t    Thousands[n / 1000] +\n\t    Hundreds[(n / 100) % 10] +\n\t    Tens[(n/10) % 10] +\n\t    Ones[n % 10];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [5, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [4, 14], [11, 15], [14, 16], [6, 17], [17, 18], [17, 19], [10, 20], [10, 21], [19, 22], [20, 23], [20, 24], [21, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 5], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 4], [15, 11], [16, 14], [17, 6], [18, 17], [19, 17], [20, 10], [21, 10], [22, 19], [23, 20], [24, 20], [25, 21], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "NodeCounter", "code": "    protected NodeCounter(Translet translet,\n\t\t\t  DOM document, NodeIterator iterator) {\n\t_translet = translet;\n\t_document = document;\n\t_iterator = iterator;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "log4j-1.2-4991", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/Level.java", "language": "java", "name": "org.apache.log4j.Level", "code": "public class Level extends Priority implements Serializable {\n\n   /**\n    * TRACE level integer value.\n    * @since 1.2.12\n    */\n  public static final int TRACE_INT = 5000;\n\n  /**\n     The <code>OFF</code> has the highest possible rank and is\n     intended to turn off logging.  */\n  final static public Level OFF = new Level(OFF_INT, \"OFF\", 0);\n\n  /**\n     The <code>FATAL</code> level designates very severe error\n     events that will presumably lead the application to abort.\n   */\n  final static public Level FATAL = new Level(FATAL_INT, \"FATAL\", 0);\n\n  /**\n     The <code>ERROR</code> level designates error events that\n     might still allow the application to continue running.  */\n  final static public Level ERROR = new Level(ERROR_INT, \"ERROR\", 3);\n\n  /**\n     The <code>WARN</code> level designates potentially harmful situations.\n  */\n  final static public Level WARN  = new Level(WARN_INT, \"WARN\",  4);\n\n  /**\n     The <code>INFO</code> level designates informational messages\n     that highlight the progress of the application at coarse-grained\n     level.  */\n  final static public Level INFO  = new Level(INFO_INT, \"INFO\",  6);\n\n  /**\n     The <code>DEBUG</code> Level designates fine-grained\n     informational events that are most useful to debug an\n     application.  */\n  final static public Level DEBUG = new Level(DEBUG_INT, \"DEBUG\", 7);\n\n  /**\n    * The <code>TRACE</code> Level designates finer-grained\n    * informational events than the <code>DEBUG</code level.\n   *  @since 1.2.12\n    */\n  public static final Level TRACE = new Level(TRACE_INT, \"TRACE\", 7);\n\n\n  /**\n     The <code>ALL</code> has the lowest possible rank and is intended to\n     turn on all logging.  */\n  final static public Level ALL = new Level(ALL_INT, \"ALL\", 7);\n\n  /**\n   * Serialization version id.\n   */\n  static final long serialVersionUID = 3491141966387921974L;\n\n  /**\n     Instantiate a Level object.\n   */\n  protected\n  Level(int level, String levelStr, int syslogEquivalent) {\n    super(level, levelStr, syslogEquivalent);\n  }\n\n\n  /**\n     Convert the string passed as argument to a level. If the\n     conversion fails, then this method returns {@link #DEBUG}. \n  */\n  public\n  static\n  Level toLevel(String sArg) {\n    return (Level) toLevel(sArg, Level.DEBUG);\n  }\n\n  /**\n    Convert an integer passed as argument to a level. If the\n    conversion fails, then this method returns {@link #DEBUG}.\n\n  */\n  public\n  static\n  Level toLevel(int val) {\n    return (Level) toLevel(val, Level.DEBUG);\n  }\n\n  /**\n    Convert an integer passed as argument to a level. If the\n    conversion fails, then this method returns the specified default.\n  */\n  public\n  static\n  Level toLevel(int val, Level defaultLevel) {\n    switch(val) {\n    case ALL_INT: return ALL;\n    case DEBUG_INT: return Level.DEBUG;\n    case INFO_INT: return Level.INFO;\n    case WARN_INT: return Level.WARN;\n    case ERROR_INT: return Level.ERROR;\n    case FATAL_INT: return Level.FATAL;\n    case OFF_INT: return OFF;\n    case TRACE_INT: return Level.TRACE;\n    default: return defaultLevel;\n    }\n  }\n\n  /**\n     Convert the string passed as argument to a level. If the\n     conversion fails, then this method returns the value of\n     <code>defaultLevel</code>.  \n  */\n  public\n  static\n  Level toLevel(String sArg, Level defaultLevel) {                  \n    if(sArg == null)\n       return defaultLevel;\n    \n    String s = sArg.toUpperCase();\n\n    if(s.equals(\"ALL\")) return Level.ALL; \n    if(s.equals(\"DEBUG\")) return Level.DEBUG; \n    if(s.equals(\"INFO\"))  return Level.INFO;\n    if(s.equals(\"WARN\"))  return Level.WARN;  \n    if(s.equals(\"ERROR\")) return Level.ERROR;\n    if(s.equals(\"FATAL\")) return Level.FATAL;\n    if(s.equals(\"OFF\")) return Level.OFF;\n    if(s.equals(\"TRACE\")) return Level.TRACE;\n    //\n    //   For Turkish i problem, see bug 40937\n    //\n    if(s.equals(\"\\u0130NFO\")) return Level.INFO;\n    return defaultLevel;\n  }\n\n    /**\n     * Custom deserialization of Level.\n     * @param s serialization stream.\n     * @throws IOException if IO exception.\n     * @throws ClassNotFoundException if class not found.\n     */\n    private void readObject(final ObjectInputStream s) throws IOException, ClassNotFoundException {\n      s.defaultReadObject();\n      level = s.readInt();\n      syslogEquivalent = s.readInt();\n      levelStr = s.readUTF();\n      if (levelStr == null) {\n          levelStr = \"\";\n      }\n    }\n\n    /**\n     * Serialize level.\n     * @param s serialization stream.\n     * @throws IOException if exception during serialization.\n     */\n    private void writeObject(final ObjectOutputStream s) throws IOException {\n        s.defaultWriteObject();\n        s.writeInt(level);\n        s.writeInt(syslogEquivalent);\n        s.writeUTF(levelStr);\n    }\n\n    /**\n     * Resolved deserialized level to one of the stock instances.\n     * May be overriden in classes derived from Level.\n     * @return resolved object.\n     * @throws ObjectStreamException if exception during resolution.\n     */\n    private Object readResolve() throws ObjectStreamException {\n        //\n        //  if the deserizalized object is exactly an instance of Level\n        //\n        if (getClass() == Level.class) {\n            return toLevel(level);\n        }\n        //\n        //   extension of Level can't substitute stock item\n        //\n        return this;", "functions": [{"function_name": "toLevel", "code": "  Level toLevel(String sArg) {\n    return (Level) toLevel(sArg, Level.DEBUG);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toLevel", "code": "  Level toLevel(int val) {\n    return (Level) toLevel(val, Level.DEBUG);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toLevel", "code": "  Level toLevel(int val, Level defaultLevel) {\n    switch(val) {\n    case ALL_INT: return ALL;\n    case DEBUG_INT: return Level.DEBUG;\n    case INFO_INT: return Level.INFO;\n    case WARN_INT: return Level.WARN;\n    case ERROR_INT: return Level.ERROR;\n    case FATAL_INT: return Level.FATAL;\n    case OFF_INT: return OFF;\n    case TRACE_INT: return Level.TRACE;\n    default: return defaultLevel;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "toLevel", "code": "  Level toLevel(String sArg, Level defaultLevel) {                  \n    if(sArg == null)\n       return defaultLevel;\n    \n    String s = sArg.toUpperCase();\n\n    if(s.equals(\"ALL\")) return Level.ALL; \n    if(s.equals(\"DEBUG\")) return Level.DEBUG; \n    if(s.equals(\"INFO\"))  return Level.INFO;\n    if(s.equals(\"WARN\"))  return Level.WARN;  \n    if(s.equals(\"ERROR\")) return Level.ERROR;\n    if(s.equals(\"FATAL\")) return Level.FATAL;\n    if(s.equals(\"OFF\")) return Level.OFF;\n    if(s.equals(\"TRACE\")) return Level.TRACE;\n    //\n    //   For Turkish i problem, see bug 40937\n    //\n    if(s.equals(\"\\u0130NFO\")) return Level.INFO;\n    return defaultLevel;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [2, 16], [3, 17], [3, 18], [4, 19], [4, 20], [5, 21], [5, 22], [6, 23], [6, 24], [7, 25], [7, 26], [8, 27], [8, 28], [9, 29], [9, 30], [10, 31], [10, 32], [12, 33], [12, 34], [16, 35], [18, 36], [20, 37], [22, 38], [24, 39], [26, 40], [28, 41], [30, 42], [32, 43], [11, 44], [34, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 2], [17, 3], [18, 3], [19, 4], [20, 4], [21, 5], [22, 5], [23, 6], [24, 6], [25, 7], [26, 7], [27, 8], [28, 8], [29, 9], [30, 9], [31, 10], [32, 10], [33, 12], [34, 12], [35, 16], [36, 18], [37, 20], [38, 22], [39, 24], [40, 26], [41, 28], [42, 30], [43, 32], [44, 11], [45, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "readObject", "code": "    private void readObject(final ObjectInputStream s) throws IOException, ClassNotFoundException {\n      s.defaultReadObject();\n      level = s.readInt();\n      syslogEquivalent = s.readInt();\n      levelStr = s.readUTF();\n      if (levelStr == null) {\n          levelStr = \"\";", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [4, 9], [5, 10], [6, 11], [1, 12], [12, 13], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 4], [10, 5], [11, 6], [12, 1], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "writeObject", "code": "    private void writeObject(final ObjectOutputStream s) throws IOException {\n        s.defaultWriteObject();\n        s.writeInt(level);\n        s.writeInt(syslogEquivalent);\n        s.writeUTF(levelStr);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "readResolve", "code": "    private Object readResolve() throws ObjectStreamException {\n        //\n        //  if the deserizalized object is exactly an instance of Level\n        //\n        if (getClass() == Level.class) {\n            return toLevel(level);\n        }\n        //\n        //   extension of Level can't substitute stock item\n        //\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "Level", "code": "  Level(int level, String levelStr, int syslogEquivalent) {\n    super(level, levelStr, syslogEquivalent);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "camel-1.4-2261", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/loadbalancer/LoadBalancerType.java", "language": "java", "name": "org.apache.camel.model.loadbalancer.LoadBalancerType", "code": "@XmlType(name = \"loadBalancerType\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class LoadBalancerType extends IdentifiedType implements LoadBalancer {\n\n    @XmlTransient\n    private LoadBalancer loadBalancer;\n    @XmlTransient\n    private String loadBalancerTypeName;\n\n    public LoadBalancerType() {\n    }\n\n    public LoadBalancerType(LoadBalancer loadBalancer) {\n        this.loadBalancer = loadBalancer;\n    }\n\n    protected LoadBalancerType(String loadBalancerTypeName) {\n        this.loadBalancerTypeName = loadBalancerTypeName;\n    }\n\n    public static LoadBalancer getLoadBalancer(RouteContext routeContext, LoadBalancerType type, String ref) {\n        if (type == null) {\n            notNull(ref, \"ref or LoadBalancerType\");\n            LoadBalancer loadBalancer = routeContext.lookup(ref, LoadBalancer.class);\n            if (loadBalancer instanceof LoadBalancerType) {\n                type = (LoadBalancerType) loadBalancer;\n            } else {\n                return loadBalancer;\n            }\n        }\n        return type.getLoadBalancer(routeContext);\n    }\n\n\n    /**\n     * Sets a named property on the data format instance using introspection\n     */\n    protected void setProperty(Object bean, String name, Object value) {\n        try {\n            IntrospectionSupport.setProperty(bean, name, value);\n        } catch (Exception e) {\n            throw new IllegalArgumentException(\"Failed to set property \" + name + \" on \" + bean\n                                               + \". Reason: \" + e, e);\n        }\n    }\n\n    /**\n     * Allows derived classes to customize the load balancer\n     */\n    protected void configureLoadBalancer(LoadBalancer loadBalancer) {\n    }\n\n    public LoadBalancer getLoadBalancer(RouteContext routeContext) {\n        if (loadBalancer == null) {\n            loadBalancer = createLoadBalancer(routeContext);\n            ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n            configureLoadBalancer(loadBalancer);\n        }\n        return loadBalancer;\n    }\n\n    /**\n     * Factory method to create the load balancer instance\n     */\n    protected LoadBalancer createLoadBalancer(RouteContext routeContext) {\n        if (loadBalancerTypeName != null) {\n            Class type = ObjectHelper.loadClass(loadBalancerTypeName, getClass().getClassLoader());\n            if (type == null) {\n                throw new IllegalArgumentException(\"The class \" + loadBalancerTypeName + \" is not on the classpath! Cannot use the loadBalancer \" + this);\n            }\n            return (LoadBalancer) ObjectHelper.newInstance(type);\n        }\n        return null;\n    }\n\n\n    public void addProcessor(Processor processor) {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.addProcessor(processor);\n    }\n\n    public List<Processor> getProcessors() {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        return loadBalancer.getProcessors();\n    }\n\n    public void removeProcessor(Processor processor) {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.removeProcessor(processor);\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.process(exchange);", "functions": [{"function_name": "getLoadBalancer", "code": "    public static LoadBalancer getLoadBalancer(RouteContext routeContext, LoadBalancerType type, String ref) {\n        if (type == null) {\n            notNull(ref, \"ref or LoadBalancerType\");\n            LoadBalancer loadBalancer = routeContext.lookup(ref, LoadBalancer.class);\n            if (loadBalancer instanceof LoadBalancerType) {\n                type = (LoadBalancerType) loadBalancer;\n            } else {\n                return loadBalancer;\n            }\n        }\n        return type.getLoadBalancer(routeContext);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [7, 10], [8, 11], [2, 12], [8, 13], [9, 14], [12, 15], [8, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 7], [11, 8], [12, 2], [13, 8], [14, 9], [15, 12], [16, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setProperty", "code": "    protected void setProperty(Object bean, String name, Object value) {\n        try {\n            IntrospectionSupport.setProperty(bean, name, value);\n        } catch (Exception e) {\n            throw new IllegalArgumentException(\"Failed to set property \" + name + \" on \" + bean\n                                               + \". Reason: \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [6, 8], [8, 9], [9, 10], [10, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 6], [9, 8], [10, 9], [11, 10], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "configureLoadBalancer", "code": "    protected void configureLoadBalancer(LoadBalancer loadBalancer) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLoadBalancer", "code": "    public LoadBalancer getLoadBalancer(RouteContext routeContext) {\n        if (loadBalancer == null) {\n            loadBalancer = createLoadBalancer(routeContext);\n            ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n            configureLoadBalancer(loadBalancer);\n        }\n        return loadBalancer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [2, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 2], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createLoadBalancer", "code": "    protected LoadBalancer createLoadBalancer(RouteContext routeContext) {\n        if (loadBalancerTypeName != null) {\n            Class type = ObjectHelper.loadClass(loadBalancerTypeName, getClass().getClassLoader());\n            if (type == null) {\n                throw new IllegalArgumentException(\"The class \" + loadBalancerTypeName + \" is not on the classpath! Cannot use the loadBalancer \" + this);\n            }\n            return (LoadBalancer) ObjectHelper.newInstance(type);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [7, 10], [6, 11], [7, 12], [10, 13], [8, 14], [12, 15], [14, 16], [15, 17], [16, 18], [17, 19], [19, 20], [19, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 7], [11, 6], [12, 7], [13, 10], [14, 8], [15, 12], [16, 14], [17, 15], [18, 16], [19, 17], [20, 19], [21, 19], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "addProcessor", "code": "    public void addProcessor(Processor processor) {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.addProcessor(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getProcessors", "code": "    public List<Processor> getProcessors() {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        return loadBalancer.getProcessors();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeProcessor", "code": "    public void removeProcessor(Processor processor) {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.removeProcessor(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.process(exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "LoadBalancerType", "code": "    public LoadBalancerType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "LoadBalancerType", "code": "    public LoadBalancerType(LoadBalancer loadBalancer) {\n        this.loadBalancer = loadBalancer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LoadBalancerType", "code": "    protected LoadBalancerType(String loadBalancerTypeName) {\n        this.loadBalancerTypeName = loadBalancerTypeName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7709", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/Parser.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Parser", "code": "public class Parser implements Constants, ContentHandler {\n\n\n    private Locator _locator = null;\n\n\n    private Hashtable   _qNames;\n    private Hashtable   _namespaces;\n    private QName       _useAttributeSets;\n    private QName       _excludeResultPrefixes;\n    private QName       _extensionElementPrefixes;\n    private Hashtable   _variableScope;\n    private Stylesheet  _currentStylesheet;\n    private Output      _output;\n\n\n    private SyntaxTreeNode _root;\n\n    private String _target;\n\n    private int _currentImportPrecedence;\n\n    public Parser(XSLTC xsltc) {\n\t_xsltc = xsltc;\n    }\n\n    public void init() {\n\t_qNames              = new Hashtable(512);\n\t_namespaces          = new Hashtable();\n\t_instructionClasses  = new Hashtable();\n\t_instructionAttrs    = new Hashtable();\n\t_variableScope       = new Hashtable();\n\t_template            = null;\n\t_errors              = new Vector();\n\t_warnings            = new Vector();\n\t_symbolTable         = new SymbolTable();\n\t_xpathParser         = new XPathParser(this);\n\t_currentStylesheet   = null;\n        _output              = null;\n        _root                = null;\n        _rootNamespaceDef    = false;\n\t_currentImportPrecedence = 1;\n\t\n\tinitStdClasses();\n\tinitInstructionAttrs();\n\tinitExtClasses();\n\tinitSymbolTable();\n\t\n\t_useAttributeSets =\n\t    getQName(XSLT_URI, XSL, \"use-attribute-sets\");\n\t_excludeResultPrefixes =\n\t    getQName(XSLT_URI, XSL, \"exclude-result-prefixes\");\n\t_extensionElementPrefixes =\n\t    getQName(XSLT_URI, XSL, \"extension-element-prefixes\");\n    }\n\n    public void setOutput(Output output) {\n\tif (_output != null) {\n\t    if (_output.getImportPrecedence() <= output.getImportPrecedence()) {\n\t\tString cdata = _output.getCdata();\n\t\toutput.mergeCdata(cdata);\n\t\t_output.disable();\n\t\t_output = output;\n\t    }\n\t    else {\n\t\toutput.disable();\n\t    }\n\t}\n\telse {\n\t    _output = output;\n\t}\n    }\n\n    public Output getOutput() {\n\treturn _output;\n    }\n\n    public Properties getOutputProperties() {\n\treturn getTopLevelStylesheet().getOutputProperties();\n    }\n\n    public void addVariable(Variable var) {\n\taddVariableOrParam(var);\n    }\n\n    public void addParameter(Param param) {\n\taddVariableOrParam(param);\n    }\n\n    private void addVariableOrParam(VariableBase var) {\n\tObject existing = _variableScope.get(var.getName());\n\tif (existing != null) {\n\t    if (existing instanceof Stack) {\n\t\tStack stack = (Stack)existing;\n\t\tstack.push(var);\n\t    }\n\t    else if (existing instanceof VariableBase) {\n\t\tStack stack = new Stack();\n\t\tstack.push(existing);\n\t\tstack.push(var);\n\t\t_variableScope.put(var.getName(), stack);\n\t    }\n\t}\n\telse {\n\t    _variableScope.put(var.getName(), var);\n\t}\n    }\n\n    public void removeVariable(QName name) {\n\tObject existing = _variableScope.get(name);\n\tif (existing instanceof Stack) {\n\t    Stack stack = (Stack)existing;\n\t    if (!stack.isEmpty()) stack.pop();\n\t    if (!stack.isEmpty()) return;\n\t}\n\t_variableScope.remove(name);\n    }\n\n    public VariableBase lookupVariable(QName name) {\n\tObject existing = _variableScope.get(name);\n\tif (existing instanceof VariableBase) {\n\t    return((VariableBase)existing);\n\t}\n\telse if (existing instanceof Stack) {\n\t    Stack stack = (Stack)existing;\n\t    return((VariableBase)stack.peek());\n\t}\n\treturn(null);\n    }\n\n    public void setXSLTC(XSLTC xsltc) {\n\t_xsltc = xsltc;\n    }\n\n    public XSLTC getXSLTC() {\n\treturn _xsltc;\n    }\n\n    public int getCurrentImportPrecedence() {\n\treturn _currentImportPrecedence;\n    }\n    \n    public int getNextImportPrecedence() {\n\treturn ++_currentImportPrecedence;\n    }\n\n    public void setCurrentStylesheet(Stylesheet stylesheet) {\n\t_currentStylesheet = stylesheet;\n    }\n\n    public Stylesheet getCurrentStylesheet() {\n\treturn _currentStylesheet;\n    }\n    \n    public Stylesheet getTopLevelStylesheet() {\n\treturn _xsltc.getStylesheet();\n    }\n\n    public QName getQNameSafe(final String stringRep) {\n\tfinal int colon = stringRep.lastIndexOf(':');\n\tif (colon != -1) {\n\t    final String prefix = stringRep.substring(0, colon);\n\t    final String localname = stringRep.substring(colon + 1);\n\t    String namespace = null;\n\t    \n\t    if (prefix.equals(XMLNS_PREFIX) == false) {\n\t\tnamespace = _symbolTable.lookupNamespace(prefix);\n\t\tif (namespace == null) namespace = EMPTYSTRING;\n\t    }\n\t    return getQName(namespace, prefix, localname);\n\t}\n\telse {\n\t    final String uri = stringRep.equals(XMLNS_PREFIX) ? null\n\t\t: _symbolTable.lookupNamespace(EMPTYSTRING);\n\t    return getQName(uri, null, stringRep);\n\t}\n    }\n    \n    public QName getQName(final String stringRep) {\n\treturn getQName(stringRep, true, false);    \n    }\n\n    public QName getQNameIgnoreDefaultNs(final String stringRep) {\n\treturn getQName(stringRep, true, true);\n    }\n\n    public QName getQName(final String stringRep, boolean reportError) {\n\treturn getQName(stringRep, reportError, false);\n    }\n\n    private QName getQName(final String stringRep, boolean reportError,\n\tboolean ignoreDefaultNs) \n    {\n\tfinal int colon = stringRep.lastIndexOf(':');\n\tif (colon != -1) {\n\t    final String prefix = stringRep.substring(0, colon);\n\t    final String localname = stringRep.substring(colon + 1);\n\t    String namespace = null;\n\t    \n\t    if (prefix.equals(XMLNS_PREFIX) == false) {\n\t\tnamespace = _symbolTable.lookupNamespace(prefix);\n\t\tif (namespace == null && reportError) {\n\t\t    final int line = _locator.getLineNumber();\n\t\t    ErrorMsg err = new ErrorMsg(ErrorMsg.NAMESPACE_UNDEF_ERR,\n\t\t\t\t\t\tline, prefix);\n\t\t    reportError(ERROR, err);\n\t\t}\n\t    }\n\t    return getQName(namespace, prefix, localname);\n\t}\n\telse {\n\t    if (stringRep.equals(XMLNS_PREFIX)) {\n\t\tignoreDefaultNs = true;\n\t    }\n\t    final String defURI = ignoreDefaultNs ? null \n\t\t\t\t  : _symbolTable.lookupNamespace(EMPTYSTRING);\n\t    return getQName(defURI, null, stringRep);\n\t}\n    }\n\n    public QName getQName(String namespace, String prefix, String localname) {\n\tif (namespace == null || namespace.equals(EMPTYSTRING)) {\n\t    QName name = (QName)_qNames.get(localname);\n\t    if (name == null) {\n\t\tname = new QName(null, prefix, localname);\n\t\t_qNames.put(localname, name);\n\t    }\n\t    return name;\n\t}\n\telse {\n\t    Dictionary space = (Dictionary)_namespaces.get(namespace);\n\t    if (space == null) {\n\t\tfinal QName name = new QName(namespace, prefix, localname);\n\t\t_namespaces.put(namespace, space = new Hashtable());\n\t\tspace.put(localname, name);\n\t\treturn name;\n\t    }\n\t    else {\n\t\tQName name = (QName)space.get(localname);\n\t\tif (name == null) {\n\t\t    name = new QName(namespace, prefix, localname);\n\t\t    space.put(localname, name);\n\t\t}\n\t\treturn name;\n\t    }\n\t}\n    }\n    \n    public QName getQName(String scope, String name) {\n\treturn getQName(scope + name);\n    }\n\n    public QName getQName(QName scope, QName name) {\n\treturn getQName(scope.toString() + name.toString());\n    }\n\n    public QName getUseAttributeSets() {\n\treturn _useAttributeSets;\n    }\n\n    public QName getExtensionElementPrefixes() {\n\treturn _extensionElementPrefixes;\n    }\n\n    public QName getExcludeResultPrefixes() {\n\treturn _excludeResultPrefixes;\n    }\n    \n    /**\t\n     * Create an instance of the <code>Stylesheet</code> class,\n     * and then parse, typecheck and compile the instance.\n     * Must be called after <code>parse()</code>.\n     */\n    public Stylesheet makeStylesheet(SyntaxTreeNode element) \n\tthrows CompilerException {\n\ttry {\n\t    Stylesheet stylesheet;\n\n\t    if (element instanceof Stylesheet) {\n\t\tstylesheet = (Stylesheet)element;\n\t    }\n\t    else {\n\t\tstylesheet = new Stylesheet();\n\t\tstylesheet.setSimplified();\n\t\tstylesheet.addElement(element);\n\t\tstylesheet.setAttributes(element.getAttributes());\n\n\t\tif (element.lookupNamespace(EMPTYSTRING) == null) {\n\t\t    element.addPrefixMapping(EMPTYSTRING, EMPTYSTRING);\n\t\t}\n\t    }\n\t    stylesheet.setParser(this);\n\t    return stylesheet;\n\t}\n\tcatch (ClassCastException e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.NOT_STYLESHEET_ERR, element);\n\t    throw new CompilerException(err.toString());\n\t}\n    }\n    \n    /**\n     * Instanciates a SAX2 parser and generate the AST from the input.\n     */\n    public void createAST(Stylesheet stylesheet) {\n\ttry {\n\t    if (stylesheet != null) {\n\t\tstylesheet.parseContents(this);\n\t\tfinal int precedence = stylesheet.getImportPrecedence();\n\t\tfinal Enumeration elements = stylesheet.elements();\n\t\twhile (elements.hasMoreElements()) {\n\t\t    Object child = elements.nextElement();\n\t\t    if (child instanceof Text) {\n\t\t\tfinal int l = _locator.getLineNumber();\n\t\t\tErrorMsg err =\n\t\t\t    new ErrorMsg(ErrorMsg.ILLEGAL_TEXT_NODE_ERR,l,null);\n\t\t\treportError(ERROR, err);\n\t\t    }\n\t\t}\n\t\tif (!errorsFound()) {\n\t\t    stylesheet.typeCheck(_symbolTable);\n\t\t}\n\t    }\n\t}\n\tcatch (TypeCheckError e) {\n\t    reportError(ERROR, new ErrorMsg(e));\n\t}\n    }\n\n    /**\n     * Parses a stylesheet and builds the internal abstract syntax tree\n     * @param reader A SAX2 SAXReader (parser)\n     * @param input A SAX2 InputSource can be passed to a SAX reader\n     * @return The root of the abstract syntax tree\n     */\n    public SyntaxTreeNode parse(XMLReader reader, InputSource input) {\n\ttry {\n\t    reader.setContentHandler(this);\n\t    reader.parse(input);\n\t    return (SyntaxTreeNode)getStylesheet(_root);\t\n\t}\n\tcatch (IOException e) {\n\t    if (_xsltc.debug()) e.printStackTrace();\n\t    reportError(ERROR,new ErrorMsg(e));\n\t}\n\tcatch (SAXException e) {\n\t    Throwable ex = e.getException();\n\t    if (_xsltc.debug()) {\n\t\te.printStackTrace();\n\t\tif (ex != null) ex.printStackTrace();\n\t    }\n\t    reportError(ERROR, new ErrorMsg(e));\n\t}\n\tcatch (CompilerException e) {\n\t    if (_xsltc.debug()) e.printStackTrace();\n\t    reportError(ERROR, new ErrorMsg(e));\n\t}\n\tcatch (Exception e) {\n\t    if (_xsltc.debug()) e.printStackTrace();\n\t    reportError(ERROR, new ErrorMsg(e));\n\t}\n\treturn null;\n    }\n\n    /**\n     * Parses a stylesheet and builds the internal abstract syntax tree\n     * @param input A SAX2 InputSource can be passed to a SAX reader\n     * @return The root of the abstract syntax tree\n     */\n    public SyntaxTreeNode parse(InputSource input) {\n\ttry {\n\t    final SAXParserFactory factory = SAXParserFactory.newInstance();\n\t    try {\n\t\tfactory.setFeature(Constants.NAMESPACE_FEATURE,true);\n\t    }\n\t    catch (Exception e) {\n\t\tfactory.setNamespaceAware(true);\n\t    }\n\t    final SAXParser parser = factory.newSAXParser();\n\t    final XMLReader reader = parser.getXMLReader();\n\t    return(parse(reader, input));\n\t}\n\tcatch (ParserConfigurationException e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.SAX_PARSER_CONFIG_ERR);\n\t    reportError(ERROR, err);\n\t}\n\tcatch (SAXParseException e){\n\t    reportError(ERROR, new ErrorMsg(e.getMessage(),e.getLineNumber()));\n\t}\n\tcatch (SAXException e) {\n\t    reportError(ERROR, new ErrorMsg(e.getMessage()));\n\t}\n\treturn null;\n    }\n\n    public SyntaxTreeNode getDocumentRoot() {\n\treturn _root;\n    }\n\n    private String _PImedia = null;\n    private String _PItitle = null;\n    private String _PIcharset = null;\n\n    /**\n     * Set the parameters to use to locate the correct <?xml-stylesheet ...?>\n     * processing instruction in the case where the input document is an\n     * XML document with one or more references to a stylesheet.\n     * @param media The media attribute to be matched. May be null, in which\n     * case the prefered templates will be used (i.e. alternate = no).\n     * @param title The value of the title attribute to match. May be null.\n     * @param charset The value of the charset attribute to match. May be null.\n     */\n    protected void setPIParameters(String media, String title, String charset) {\n\t_PImedia = media;\n\t_PItitle = title;\n\t_PIcharset = charset;\n    }\n\n    /**\n     * Extracts the DOM for the stylesheet. In the case of an embedded\n     * stylesheet, it extracts the DOM subtree corresponding to the \n     * embedded stylesheet that has an 'id' attribute whose value is the\n     * same as the value declared in the <?xml-stylesheet...?> processing \n     * instruction (P.I.). In the xml-stylesheet P.I. the value is labeled\n     * as the 'href' data of the P.I. The extracted DOM representing the\n     * stylesheet is returned as an Element object.\n     */\n    private SyntaxTreeNode getStylesheet(SyntaxTreeNode root)\n\tthrows CompilerException {\n\n\tif (_target == null) {\n\t    if (!_rootNamespaceDef) {\n\t\tErrorMsg msg = new ErrorMsg(ErrorMsg.MISSING_XSLT_URI_ERR);\n\t\tthrow new CompilerException(msg.toString());\n\t    }\n\t    return(root);\n\t}\n\n\tif (_target.charAt(0) == '#') {\n\t    SyntaxTreeNode element = findStylesheet(root, _target.substring(1));\n\t    if (element == null) {\n\t\tErrorMsg msg = new ErrorMsg(ErrorMsg.MISSING_XSLT_TARGET_ERR,\n\t\t\t\t\t    _target, root);\n\t\tthrow new CompilerException(msg.toString());\n\t    }\n\t    return(element);\n\t}\n\telse {\n\t    return(loadExternalStylesheet(_target));\n\t}\n    }\n\n    /**\n     * Find a Stylesheet element with a specific ID attribute value.\n     * This method is used to find a Stylesheet node that is referred\n     * in a <?xml-stylesheet ... ?> processing instruction.\n     */\n    private SyntaxTreeNode findStylesheet(SyntaxTreeNode root, String href) {\n\n\tif (root == null) return null;\n\n\tif (root instanceof Stylesheet) {\n\t    String id = root.getAttribute(\"id\");\n\t    if (id.equals(href)) return root;\n\t}\n\tVector children = root.getContents();\n\tif (children != null) {\n\t    final int count = children.size();\n\t    for (int i = 0; i < count; i++) {\n\t\tSyntaxTreeNode child = (SyntaxTreeNode)children.elementAt(i);\n\t\tSyntaxTreeNode node = findStylesheet(child, href);\n\t\tif (node != null) return node;\n\t    }\n\t}\n\treturn null;\t\n    }\n\n    /**\n     * For embedded stylesheets: Load an external file with stylesheet\n     */\n    private SyntaxTreeNode loadExternalStylesheet(String location)\n\tthrows CompilerException {\n\n\tInputSource source;\n\n\tif ((new File(location)).exists())\n\t    source = new InputSource(\"file:\"+location);\n\telse\n\t    source = new InputSource(location);\n\n\tSyntaxTreeNode external = (SyntaxTreeNode)parse(source);\n\treturn(external);\n    }\n\n    private void initAttrTable(String elementName, String[] attrs) {\n\t_instructionAttrs.put(getQName(XSLT_URI, XSL, elementName),\n\t\t\t\tattrs);\n    }\n\n    private void initInstructionAttrs() {\n\tinitAttrTable(\"template\", \n\t    new String[] {\"match\", \"name\", \"priority\", \"mode\"});\n\tinitAttrTable(\"stylesheet\", \n\t    new String[] {\"id\", \"version\", \"extension-element-prefixes\",\n\t\t\"exclude-result-prefixes\"});\n\tinitAttrTable(\"transform\",\n\t    new String[] {\"id\", \"version\", \"extension-element-prefixes\",\n\t\t\"exclude-result-prefixes\"});\n\tinitAttrTable(\"text\", new String[] {\"disable-output-escaping\"}); \n\tinitAttrTable(\"if\", new String[] {\"test\"}); \n\tinitAttrTable(\"choose\", new String[] {}); \n\tinitAttrTable(\"when\", new String[] {\"test\"}); \n\tinitAttrTable(\"otherwise\", new String[] {}); \n\tinitAttrTable(\"for-each\", new String[] {\"select\"}); \n\tinitAttrTable(\"message\", new String[] {\"terminate\"}); \n\tinitAttrTable(\"number\", \n\t    new String[] {\"level\", \"count\", \"from\", \"value\", \"format\", \"lang\",\n\t\t\"letter-value\", \"grouping-separator\", \"grouping-size\"});\n\t\tinitAttrTable(\"comment\", new String[] {}); \n\tinitAttrTable(\"copy\", new String[] {\"use-attribute-sets\"}); \n\tinitAttrTable(\"copy-of\", new String[] {\"select\"}); \n\tinitAttrTable(\"param\", new String[] {\"name\", \"select\"}); \n\tinitAttrTable(\"with-param\", new String[] {\"name\", \"select\"}); \n\tinitAttrTable(\"variable\", new String[] {\"name\", \"select\"}); \n\tinitAttrTable(\"output\", \n\t    new String[] {\"method\", \"version\", \"encoding\", \n\t\t\"omit-xml-declaration\", \"standalone\", \"doctype-public\",\n\t\t\"doctype-system\", \"cdata-section-elements\", \"indent\",\n\t\t\"media-type\"}); \n\tinitAttrTable(\"sort\", \n\t   new String[] {\"select\", \"order\", \"case-order\", \"lang\", \"data-type\"});\n\tinitAttrTable(\"key\", new String[] {\"name\", \"match\", \"use\"}); \n\tinitAttrTable(\"fallback\", new String[] {}); \n\tinitAttrTable(\"attribute\", new String[] {\"name\", \"namespace\"}); \n\tinitAttrTable(\"attribute-set\", \n\t    new String[] {\"name\", \"use-attribute-sets\"}); \n\tinitAttrTable(\"value-of\", \n\t    new String[] {\"select\", \"disable-output-escaping\"}); \n\tinitAttrTable(\"element\", \n\t    new String[] {\"name\", \"namespace\", \"use-attribute-sets\"}); \n\tinitAttrTable(\"call-template\", new String[] {\"name\"}); \n\tinitAttrTable(\"apply-templates\", new String[] {\"select\", \"mode\"}); \n\tinitAttrTable(\"apply-imports\", new String[] {}); \n\tinitAttrTable(\"decimal-format\", \n\t    new String[] {\"name\", \"decimal-separator\", \"grouping-separator\",\n\t\t\"infinity\", \"minus-sign\", \"NaN\", \"percent\", \"per-mille\",\n\t\t\"zero-digit\", \"digit\", \"pattern-separator\"}); \n\tinitAttrTable(\"import\", new String[] {\"href\"}); \n\tinitAttrTable(\"include\", new String[] {\"href\"}); \n\tinitAttrTable(\"strip-space\", new String[] {\"elements\"}); \n\tinitAttrTable(\"preserve-space\", new String[] {\"elements\"}); \n\tinitAttrTable(\"processing-instruction\", new String[] {\"name\"}); \n\tinitAttrTable(\"namespace-alias\", \n\t   new String[] {\"stylesheet-prefix\", \"result-prefix\"}); \n    }\n\n\n\n    /**\n     * Initialize the _instructionClasses Hashtable, which maps XSL element\n     * names to Java classes in this package.\n     */\n    private void initStdClasses() {\n\tinitStdClass(\"template\", \"Template\");\n\tinitStdClass(\"stylesheet\", \"Stylesheet\");\n\tinitStdClass(\"transform\", \"Stylesheet\");\n\tinitStdClass(\"text\", \"Text\");\n\tinitStdClass(\"if\", \"If\");\n\tinitStdClass(\"choose\", \"Choose\");\n\tinitStdClass(\"when\", \"When\");\n\tinitStdClass(\"otherwise\", \"Otherwise\");\n\tinitStdClass(\"for-each\", \"ForEach\");\n\tinitStdClass(\"message\", \"Message\");\n\tinitStdClass(\"number\", \"Number\");\n\tinitStdClass(\"comment\", \"Comment\");\n\tinitStdClass(\"copy\", \"Copy\");\n\tinitStdClass(\"copy-of\", \"CopyOf\");\n\tinitStdClass(\"param\", \"Param\");\n\tinitStdClass(\"with-param\", \"WithParam\");\n\tinitStdClass(\"variable\", \"Variable\");\n\tinitStdClass(\"output\", \"Output\");\n\tinitStdClass(\"sort\", \"Sort\");\n\tinitStdClass(\"key\", \"Key\");\n\tinitStdClass(\"fallback\", \"Fallback\");\n\tinitStdClass(\"attribute\", \"XslAttribute\");\n\tinitStdClass(\"attribute-set\", \"AttributeSet\");\n\tinitStdClass(\"value-of\", \"ValueOf\");\n\tinitStdClass(\"element\", \"XslElement\");\n\tinitStdClass(\"call-template\", \"CallTemplate\");\n\tinitStdClass(\"apply-templates\", \"ApplyTemplates\");\n\tinitStdClass(\"apply-imports\", \"ApplyImports\");\n\tinitStdClass(\"decimal-format\", \"DecimalFormatting\");\n\tinitStdClass(\"import\", \"Import\");\n\tinitStdClass(\"include\", \"Include\");\n\tinitStdClass(\"strip-space\", \"Whitespace\");\n\tinitStdClass(\"preserve-space\", \"Whitespace\");\n\tinitStdClass(\"processing-instruction\", \"ProcessingInstruction\");\n\tinitStdClass(\"namespace-alias\", \"NamespaceAlias\");\n    }\n    \n    private void initStdClass(String elementName, String className) {\n\t_instructionClasses.put(getQName(XSLT_URI, XSL, elementName),\n\t\t\t\tCOMPILER_PACKAGE + '.' + className);\n    }\n\n    public boolean elementSupported(String namespace, String localName) {\n\treturn(_instructionClasses.get(getQName(namespace, XSL, localName)) != null);\n    }\n\n    public boolean functionSupported(String fname) {\n\treturn(_symbolTable.lookupPrimop(fname) != null);\n    }\n\n    private void initExtClasses() {\n\tinitExtClass(\"output\", \"TransletOutput\");\n        initExtClass(REDIRECT_URI, \"write\", \"TransletOutput\");\n    }\n\n    private void initExtClass(String elementName, String className) {\n\t_instructionClasses.put(getQName(TRANSLET_URI, TRANSLET, elementName),\n\t\t\t\tCOMPILER_PACKAGE + '.' + className);\n    }\n\n    private void initExtClass(String namespace, String elementName, String className) {\n        _instructionClasses.put(getQName(namespace, TRANSLET, elementName),\n                                COMPILER_PACKAGE + '.' + className);\n    }\n\n    /**\n     * Add primops and base functions to the symbol table.\n     */\n    private void initSymbolTable() {\n\tMethodType I_V  = new MethodType(Type.Int, Type.Void);\n\tMethodType I_R  = new MethodType(Type.Int, Type.Real);\n\tMethodType I_S  = new MethodType(Type.Int, Type.String);\n\tMethodType I_D  = new MethodType(Type.Int, Type.NodeSet);\n\tMethodType R_I  = new MethodType(Type.Real, Type.Int);\n\tMethodType R_V  = new MethodType(Type.Real, Type.Void);\n\tMethodType R_R  = new MethodType(Type.Real, Type.Real);\n\tMethodType R_D  = new MethodType(Type.Real, Type.NodeSet);\n\tMethodType R_O  = new MethodType(Type.Real, Type.Reference);\n\tMethodType I_I  = new MethodType(Type.Int, Type.Int);\n \tMethodType D_O  = new MethodType(Type.NodeSet, Type.Reference);\n\tMethodType D_V  = new MethodType(Type.NodeSet, Type.Void);\n\tMethodType D_S  = new MethodType(Type.NodeSet, Type.String);\n\tMethodType D_D  = new MethodType(Type.NodeSet, Type.NodeSet);\n\tMethodType A_V  = new MethodType(Type.Node, Type.Void);\n\tMethodType S_V  = new MethodType(Type.String, Type.Void);\n\tMethodType S_S  = new MethodType(Type.String, Type.String);\n\tMethodType S_A  = new MethodType(Type.String, Type.Node);\n\tMethodType S_D  = new MethodType(Type.String, Type.NodeSet);\n\tMethodType S_O  = new MethodType(Type.String, Type.Reference);\n\tMethodType B_O  = new MethodType(Type.Boolean, Type.Reference);\n\tMethodType B_V  = new MethodType(Type.Boolean, Type.Void);\n\tMethodType B_B  = new MethodType(Type.Boolean, Type.Boolean);\n\tMethodType B_S  = new MethodType(Type.Boolean, Type.String);\n\tMethodType D_X  = new MethodType(Type.NodeSet, Type.Object);\n\tMethodType R_RR = new MethodType(Type.Real, Type.Real, Type.Real);\n\tMethodType I_II = new MethodType(Type.Int, Type.Int, Type.Int);\n\tMethodType B_RR = new MethodType(Type.Boolean, Type.Real, Type.Real);\n\tMethodType B_II = new MethodType(Type.Boolean, Type.Int, Type.Int);\n\tMethodType S_SS = new MethodType(Type.String, Type.String, Type.String);\n\tMethodType S_DS = new MethodType(Type.String, Type.Real, Type.String);\n\tMethodType S_SR = new MethodType(Type.String, Type.String, Type.Real);\n\tMethodType O_SO = new MethodType(Type.Reference, Type.String, Type.Reference);\n\n\tMethodType D_SS =\n\t    new MethodType(Type.NodeSet, Type.String, Type.String);\n\tMethodType D_SD = \n\t    new MethodType(Type.NodeSet, Type.String, Type.NodeSet);\n\tMethodType B_BB =\n\t    new MethodType(Type.Boolean, Type.Boolean, Type.Boolean);\n\tMethodType B_SS =\n\t    new MethodType(Type.Boolean, Type.String, Type.String);\n\tMethodType S_SD =\n\t    new MethodType(Type.String, Type.String, Type.NodeSet);\n\tMethodType S_DSS =\n\t    new MethodType(Type.String, Type.Real, Type.String, Type.String);\n\tMethodType S_SRR =\n\t    new MethodType(Type.String, Type.String, Type.Real, Type.Real);\n\tMethodType S_SSS =\n\t    new MethodType(Type.String, Type.String, Type.String, Type.String);\n\n\t/*\n\t * Standard functions: implemented but not in this table concat().\n\t * When adding a new function make sure to uncomment\n\t * the corresponding line in <tt>FunctionAvailableCall</tt>.\n\t */\n\n\n\t_symbolTable.addPrimop(\"current\", A_V);\n\t_symbolTable.addPrimop(\"last\", I_V);\n\t_symbolTable.addPrimop(\"position\", I_V);\n\t_symbolTable.addPrimop(\"true\", B_V);\n\t_symbolTable.addPrimop(\"false\", B_V);\n\t_symbolTable.addPrimop(\"not\", B_B);\n\t_symbolTable.addPrimop(\"name\", S_V);\n\t_symbolTable.addPrimop(\"name\", S_A);\n\t_symbolTable.addPrimop(\"generate-id\", S_V);\n\t_symbolTable.addPrimop(\"generate-id\", S_A);\n\t_symbolTable.addPrimop(\"ceiling\", R_R);\n\t_symbolTable.addPrimop(\"floor\", R_R);\n\t_symbolTable.addPrimop(\"round\", R_R);\n\t_symbolTable.addPrimop(\"contains\", B_SS);\n\t_symbolTable.addPrimop(\"number\", R_O);\n\t_symbolTable.addPrimop(\"number\", R_V);\n\t_symbolTable.addPrimop(\"boolean\", B_O);\n\t_symbolTable.addPrimop(\"string\", S_O);\n\t_symbolTable.addPrimop(\"string\", S_V);\n\t_symbolTable.addPrimop(\"translate\", S_SSS);\n\t_symbolTable.addPrimop(\"string-length\", I_V);\n\t_symbolTable.addPrimop(\"string-length\", I_S);\n\t_symbolTable.addPrimop(\"starts-with\", B_SS);\n\t_symbolTable.addPrimop(\"format-number\", S_DS);\n\t_symbolTable.addPrimop(\"format-number\", S_DSS);\n\t_symbolTable.addPrimop(\"unparsed-entity-uri\", S_S);\n\t_symbolTable.addPrimop(\"key\", D_SS);\n\t_symbolTable.addPrimop(\"key\", D_SD);\n\t_symbolTable.addPrimop(\"id\", D_S);\n\t_symbolTable.addPrimop(\"id\", D_D);\n\t_symbolTable.addPrimop(\"namespace-uri\", S_V);\n\t_symbolTable.addPrimop(\"function-available\", B_S);\n\t_symbolTable.addPrimop(\"element-available\", B_S);\n\t_symbolTable.addPrimop(\"document\", D_S);\n\t_symbolTable.addPrimop(\"document\", D_V);\n\n\t_symbolTable.addPrimop(\"count\", I_D);\n\t_symbolTable.addPrimop(\"sum\", R_D);\n\t_symbolTable.addPrimop(\"local-name\", S_V);\n\t_symbolTable.addPrimop(\"local-name\", S_D);\n\t_symbolTable.addPrimop(\"namespace-uri\", S_V);\n\t_symbolTable.addPrimop(\"namespace-uri\", S_D);\n\t_symbolTable.addPrimop(\"substring\", S_SR);\n\t_symbolTable.addPrimop(\"substring\", S_SRR);\n\t_symbolTable.addPrimop(\"substring-after\", S_SS);\n\t_symbolTable.addPrimop(\"substring-before\", S_SS);\n\t_symbolTable.addPrimop(\"normalize-space\", S_V);\n\t_symbolTable.addPrimop(\"normalize-space\", S_S);\n\t_symbolTable.addPrimop(\"system-property\", S_S);\n\n        _symbolTable.addPrimop(\"nodeset\", D_O);\n        _symbolTable.addPrimop(\"objectType\", S_O);\n        _symbolTable.addPrimop(\"cast\", O_SO);\n\n\t_symbolTable.addPrimop(\"+\", R_RR);\t\n\t_symbolTable.addPrimop(\"-\", R_RR);\t\n\t_symbolTable.addPrimop(\"*\", R_RR);\t\n\t_symbolTable.addPrimop(\"/\", R_RR);\t\n\t_symbolTable.addPrimop(\"%\", R_RR);\t\n\n\t_symbolTable.addPrimop(\"+\", I_II);\t\n\t_symbolTable.addPrimop(\"-\", I_II);\t\n\t_symbolTable.addPrimop(\"*\", I_II);\t\n\n\t_symbolTable.addPrimop(\"<\",  B_RR);\t\n\t_symbolTable.addPrimop(\"<=\", B_RR);\t\n\t_symbolTable.addPrimop(\">\",  B_RR);\t\n\t_symbolTable.addPrimop(\">=\", B_RR);\t\n\n\t_symbolTable.addPrimop(\"<\",  B_II);\t\n\t_symbolTable.addPrimop(\"<=\", B_II);\t\n\t_symbolTable.addPrimop(\">\",  B_II);\t\n\t_symbolTable.addPrimop(\">=\", B_II);\t\n\n\t_symbolTable.addPrimop(\"<\",  B_BB);\t\n\t_symbolTable.addPrimop(\"<=\", B_BB);\t\n\t_symbolTable.addPrimop(\">\",  B_BB);\t\n\t_symbolTable.addPrimop(\">=\", B_BB);\t\n\n\t_symbolTable.addPrimop(\"or\", B_BB);\t\n\t_symbolTable.addPrimop(\"and\", B_BB);\t\n\n\t_symbolTable.addPrimop(\"u-\", R_R);\t\n\t_symbolTable.addPrimop(\"u-\", I_I);\t\n    }\n\n    public SymbolTable getSymbolTable() {\n\treturn _symbolTable;\n    }\n\n    public Template getTemplate() {\n\treturn _template;\n    }\n\n    public void setTemplate(Template template) {\n\t_template = template;\n    }\n\n    private int _templateIndex = 0;\n\n    public int getTemplateIndex() {\n\treturn(_templateIndex++);\n    }\n\n    /**\n     * Creates a new node in the abstract syntax tree. This node can be\n     *  o) a supported XSLT 1.0 element\n     *  o) an unsupported XSLT element (post 1.0)\n     *  o) a supported XSLT extension\n     *  o) an unsupported XSLT extension\n     *  o) a literal result element (not an XSLT element and not an extension)\n     * Unsupported elements do not directly generate an error. We have to wait\n     * until we have received all child elements of an unsupported element to\n     * see if any <xsl:fallback> elements exist.\n     */\n\n    private boolean versionIsOne = true;\n\n    public SyntaxTreeNode makeInstance(String uri, String prefix, \n\tString local, Attributes attributes)\n    {\n\tSyntaxTreeNode node = null;\n\tQName  qname = getQName(uri, prefix, local);\n\tString className = (String)_instructionClasses.get(qname);\n\n\tif (className != null) {\n\t    try {\n\t\tfinal Class clazz = ObjectFactory.findProviderClass(\n                    className, ObjectFactory.findClassLoader(), true);\n\t\tnode = (SyntaxTreeNode)clazz.newInstance();\n\t\tnode.setQName(qname);\n\t\tnode.setParser(this);\n\t\tif (_locator != null) {\n\t\t    node.setLineNumber(_locator.getLineNumber());\n\t\t}\n\t\tif (node instanceof Stylesheet) {\n\t\t    _xsltc.setStylesheet((Stylesheet)node);\n\t\t}\n\t\tcheckForSuperfluousAttributes(node, attributes);\n\t    }\n\t    catch (ClassNotFoundException e) {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, node);\n\t\treportError(ERROR, err);\n\t    }\n\t    catch (Exception e) {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.INTERNAL_ERR,\n\t\t\t\t\t    e.getMessage(), node);\n\t\treportError(FATAL, err);\n\t    }\n\t}\n\telse {\n\t    if (uri != null) {\n\t\tif (uri.equals(XSLT_URI)) {\n\t\t    node = new UnsupportedElement(uri, prefix, local, false);\n\t\t    UnsupportedElement element = (UnsupportedElement)node;\n\t\t    ErrorMsg msg = new ErrorMsg(ErrorMsg.UNSUPPORTED_XSL_ERR,\n\t\t\t\t\t\t_locator.getLineNumber(),local);\n\t\t    element.setErrorMessage(msg);\n\t\t    if (versionIsOne) {\n\t\t    \treportError(UNSUPPORTED,msg);\n \t\t    }\n\t\t}\n\t\telse if (uri.equals(TRANSLET_URI)) {\n\t\t    node = new UnsupportedElement(uri, prefix, local, true);\n\t\t    UnsupportedElement element = (UnsupportedElement)node;\n\t\t    ErrorMsg msg = new ErrorMsg(ErrorMsg.UNSUPPORTED_EXT_ERR,\n\t\t\t\t\t\t_locator.getLineNumber(),local);\n\t\t    element.setErrorMessage(msg);\n\t\t}\n\t\telse {\n\t\t    Stylesheet sheet = _xsltc.getStylesheet();\n\t\t    if ((sheet != null) && (sheet.isExtension(uri))) {\n\t\t\tif (sheet != (SyntaxTreeNode)_parentStack.peek()) {\n\t\t\t    node = new UnsupportedElement(uri, prefix, local, true);\n\t\t\t    UnsupportedElement elem = (UnsupportedElement)node;\n\t\t\t    ErrorMsg msg =\n\t\t\t\tnew ErrorMsg(ErrorMsg.UNSUPPORTED_EXT_ERR,\n\t\t\t\t\t     _locator.getLineNumber(),\n\t\t\t\t\t     prefix+\":\"+local);\n\t\t\t    elem.setErrorMessage(msg);\n\t\t\t}\n\t\t    }\n\t\t}\n\t    }\n\t    if (node == null) node = new LiteralElement();\n\t}\n\tif ((node != null) && (node instanceof LiteralElement)) {\n\t    ((LiteralElement)node).setQName(qname);\n\t}\n\treturn(node);\n    }\n\n    /**\n     * checks the list of attributes against a list of allowed attributes\n     * for a particular element node.\n     */\n    private void checkForSuperfluousAttributes(SyntaxTreeNode node, \n\tAttributes attrs)\n    {\n\tQName qname = node.getQName();\n\tboolean isStylesheet = (node instanceof Stylesheet); \n        String[] legal = (String[]) _instructionAttrs.get(qname);\n\tif (versionIsOne && legal != null) {\n\t    int j;\n\t    final int n = attrs.getLength();\n\n\t    for (int i = 0; i < n; i++) {\n\t        final String attrQName = attrs.getQName(i);\n\n\t        if (isStylesheet && attrQName.equals(\"version\")) {\n\t            versionIsOne = attrs.getValue(i).equals(\"1.0\");\n\t        }\n\n\t        if (attrQName.startsWith(\"xml\") ||\n\t\t    attrQName.indexOf(':') > 0) continue;\n\n\t        for (j = 0; j < legal.length; j++) {\n\t            if (attrQName.equalsIgnoreCase(legal[j])) {\n\t\t        break;\n\t\t    }\t\n\t        }\n\t        if (j == legal.length) {\n\t            final ErrorMsg err = \n\t\t        new ErrorMsg(ErrorMsg.ILLEGAL_ATTRIBUTE_ERR, \n\t\t\t\tattrQName, node);\n\t\t    reportError(WARNING, err);\n\t        }\n\t    }\n        }\t\n    }\n\n\n    /**\n     * Parse an XPath expression:\n     *  @parent - XSL element where the expression occured\n     *  @exp    - textual representation of the expression\n     */\n    public Expression parseExpression(SyntaxTreeNode parent, String exp) {\n\treturn (Expression)parseTopLevel(parent, \"<EXPRESSION>\"+exp, null);\n    }\n\n    /**\n     * Parse an XPath expression:\n     *  @parent - XSL element where the expression occured\n     *  @attr   - name of this element's attribute to get expression from\n     *  @def    - default expression (if the attribute was not found)\n     */\n    public Expression parseExpression(SyntaxTreeNode parent,\n\t\t\t\t      String attr, String def) {\n        String exp = parent.getAttribute(attr);\n        if ((exp.length() == 0) && (def != null)) exp = def;\n        return (Expression)parseTopLevel(parent, \"<EXPRESSION>\"+exp, exp);\n    }\n\n    /**\n     * Parse an XPath pattern:\n     *  @parent - XSL element where the pattern occured\n     *  @exp    - textual representation of the pattern\n     */\n    public Pattern parsePattern(SyntaxTreeNode parent, String pattern) {\n\treturn (Pattern)parseTopLevel(parent, \"<PATTERN>\"+pattern, pattern);\n    }\n\n    /**\n     * Parse an XPath pattern:\n     *  @parent - XSL element where the pattern occured\n     *  @attr   - name of this element's attribute to get pattern from\n     *  @def    - default pattern (if the attribute was not found)\n     */\n    public Pattern parsePattern(SyntaxTreeNode parent,\n\t\t\t\tString attr, String def) {\n        String pattern = parent.getAttribute(attr);\n\tif ((pattern.length() == 0) && (def != null)) pattern = def;\n        return (Pattern)parseTopLevel(parent, \"<PATTERN>\"+pattern, pattern);\n    }\n\n    /**\n     * Parse an XPath expression or pattern using the generated XPathParser\n     * The method will return a Dummy node if the XPath parser fails.\n     */\n    private SyntaxTreeNode parseTopLevel(SyntaxTreeNode parent, String text,\n\t\t\t\t\t String expression) {\n\tint line = 0;\n\tif (_locator != null) line = _locator.getLineNumber();\n\n\ttry {\n\t    _xpathParser.setScanner(new XPathLexer(new StringReader(text)));\n\t    Symbol result = _xpathParser.parse(expression, line);\n\t    if (result != null) {\n\t\tfinal SyntaxTreeNode node = (SyntaxTreeNode)result.value;\n\t\tif (node != null) {\n\t\t    node.setParser(this);\n\t\t    node.setParent(parent);\n\t\t    node.setLineNumber(line);\n\t\t    return node;\n\t\t}\n\t    } \n\t    reportError(ERROR, new ErrorMsg(ErrorMsg.XPATH_PARSER_ERR,\n\t\t\t\t\t    expression, parent));\n\t}\n\tcatch (Exception e) {\n\t    if (_xsltc.debug()) e.printStackTrace();\n\t    reportError(ERROR, new ErrorMsg(ErrorMsg.XPATH_PARSER_ERR,\n\t\t\t\t\t    expression, parent));\n\t}\n\n\tSyntaxTreeNode.Dummy.setParser(this);\n        return SyntaxTreeNode.Dummy; \n    }\n\n    /************************ ERROR HANDLING SECTION ************************/\n\n    /**\n     * Returns true if there were any errors during compilation\n     */\n    public boolean errorsFound() {\n\treturn _errors.size() > 0;\n    }\n\n    /**\n     * Prints all compile-time errors\n     */\n    public void printErrors() {\n\tfinal int size = _errors.size();\n\tif (size > 0) {\n\t    System.err.println(new ErrorMsg(ErrorMsg.COMPILER_ERROR_KEY));\n\t    for (int i = 0; i < size; i++) {\n\t\tSystem.err.println(\"  \" + _errors.elementAt(i));\n\t    }\n\t}\n    }\n\n    /**\n     * Prints all compile-time warnings\n     */\n    public void printWarnings() {\n\tfinal int size = _warnings.size();\n\tif (size > 0) {\n\t    System.err.println(new ErrorMsg(ErrorMsg.COMPILER_WARNING_KEY));\n\t    for (int i = 0; i < size; i++) {\n\t\tSystem.err.println(\"  \" + _warnings.elementAt(i));\n\t    }\n\t}\n    }\n\n    /**\n     * Common error/warning message handler\n     */\n    public void reportError(final int category, final ErrorMsg error) {\n\tswitch (category) {\n\tcase Constants.INTERNAL:\n\t    _errors.addElement(error);\n\t    break;\n\tcase Constants.UNSUPPORTED:\n\t    _errors.addElement(error);\n\t    break;\n\tcase Constants.FATAL:\n\t    _errors.addElement(error);\n\t    break;\n\tcase Constants.ERROR:\n\t    _errors.addElement(error);\n\t    break;\n\tcase Constants.WARNING:\n\t    _warnings.addElement(error);\n\t    break;\n\t}\n    }\n\n    public Vector getErrors() {\n\treturn _errors;\n    }\n\n    public Vector getWarnings() {\n\treturn _warnings;\n    }\n\n    /************************ SAX2 ContentHandler INTERFACE *****************/\n\n    private Stack _parentStack = null;\n    private Hashtable _prefixMapping = null;\n\n    /**\n     * SAX2: Receive notification of the beginning of a document.\n     */\n    public void startDocument() {\n\t_root = null;\n\t_target = null;\n\t_prefixMapping = null;\n\t_parentStack = new Stack();\n    }\n\n    /**\n     * SAX2: Receive notification of the end of a document.\n     */\n    public void endDocument() { }\n\n\n    /**\n     * SAX2: Begin the scope of a prefix-URI Namespace mapping.\n     *       This has to be passed on to the symbol table!\n     */\n    public void startPrefixMapping(String prefix, String uri) {\n\tif (_prefixMapping == null) {\n\t    _prefixMapping = new Hashtable();\n\t}\n\t_prefixMapping.put(prefix, uri);\n    }\n\n    /**\n     * SAX2: End the scope of a prefix-URI Namespace mapping.\n     *       This has to be passed on to the symbol table!\n     */\n    public void endPrefixMapping(String prefix) { }\n\n    /**\n     * SAX2: Receive notification of the beginning of an element.\n     *       The parser may re-use the attribute list that we're passed so\n     *       we clone the attributes in our own Attributes implementation\n     */\n    public void startElement(String uri, String localname,\n\t\t\t     String qname, Attributes attributes) \n\tthrows SAXException {\n\tfinal int col = qname.lastIndexOf(':');\n\tfinal String prefix = (col == -1) ? null : qname.substring(0, col);\n\n\tSyntaxTreeNode element = makeInstance(uri, prefix, \n\t\t\t\t\tlocalname, attributes);\n\tif (element == null) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.ELEMENT_PARSE_ERR,\n\t\t\t\t\tprefix+':'+localname);\n\t    throw new SAXException(err.toString());\n\t}\n\n\tif (_root == null) {\n\t    if ((_prefixMapping == null) ||\n\t\t(_prefixMapping.containsValue(Constants.XSLT_URI) == false))\n\t\t_rootNamespaceDef = false;\n\t    else\n\t\t_rootNamespaceDef = true;\n\t    _root = element;\n\t}\n\telse {\n\t    SyntaxTreeNode parent = (SyntaxTreeNode)_parentStack.peek();\n\t    parent.addElement(element);\n\t    element.setParent(parent);\n\t}\n\telement.setAttributes((Attributes)new AttributeList(attributes));\n\telement.setPrefixMapping(_prefixMapping);\n\t\n\tif (element instanceof Stylesheet) {\n\t    getSymbolTable().setCurrentNode(element);\n\t    ((Stylesheet)element).excludeExtensionPrefixes(this);\n\t}\n\n\t_prefixMapping = null;\n\t_parentStack.push(element);\n    }\n\n    /**\n     * SAX2: Receive notification of the end of an element.\n     */\n    public void endElement(String uri, String localname, String qname) {\n\t_parentStack.pop();\n    }\n\n    /**\n     * SAX2: Receive notification of character data.\n     */\n    public void characters(char[] ch, int start, int length) {\n\tString string = new String(ch, start, length);\n\tSyntaxTreeNode parent = (SyntaxTreeNode)_parentStack.peek();\n\n\tif (string.length() == 0) return;\n\n\tif (parent instanceof Text) {\n\t    ((Text)parent).setText(string);\n\t    return;\n\t}\n\n\tif (parent instanceof Stylesheet) return;\n\n\tSyntaxTreeNode bro = parent.lastChild();\n\tif ((bro != null) && (bro instanceof Text)) {\n\t    Text text = (Text)bro;\n\t    if (!text.isTextElement()) {\n\t\tif ((length > 1) || ( ((int)ch[0]) < 0x100)) {\n\t\t    text.setText(string);\n\t\t    return;\n\t\t}\n\t    }\n\t}\n\n\tparent.addElement(new Text(string));\n    }\n\n    private String getTokenValue(String token) {\n\tfinal int start = token.indexOf('\"');\n\tfinal int stop = token.lastIndexOf('\"');\n\treturn token.substring(start+1, stop);\n    }\n\n    /**\n     * SAX2: Receive notification of a processing instruction.\n     *       These require special handling for stylesheet PIs.\n     */\n    public void processingInstruction(String name, String value) {\n\tif ((_target == null) && (name.equals(\"xml-stylesheet\"))) {\n\n\n\t    StringTokenizer tokens = new StringTokenizer(value);\n\t    while (tokens.hasMoreElements()) {\n\t\tString token = (String)tokens.nextElement();\n\t\tif (token.startsWith(\"href\"))\n\t\t    href = getTokenValue(token);\n\t\telse if (token.startsWith(\"media\"))\n\t\t    media = getTokenValue(token);\n\t\telse if (token.startsWith(\"title\"))\n\t\t    title = getTokenValue(token);\n\t\telse if (token.startsWith(\"charset\"))\n\t\t    charset = getTokenValue(token);\n\t    }\n\n\t    if ( ((_PImedia == null) || (_PImedia.equals(media))) &&\n\t\t ((_PItitle == null) || (_PImedia.equals(title))) &&\n\t\t ((_PIcharset == null) || (_PImedia.equals(charset))) ) {\n\t\t_target = href;\n\t    }\n\t}\n    }\n\n    /**\n     * IGNORED - all ignorable whitespace is ignored\n     */\n    public void ignorableWhitespace(char[] ch, int start, int length) { }\n\n    /**\n     * IGNORED - we do not have to do anything with skipped entities\n     */\n    public void skippedEntity(String name) { }\n\n    /**\n     * Store the document locator to later retrieve line numbers of all\n     * elements from the stylesheet\n     */\n    public void setDocumentLocator(Locator locator) {\n\t_locator = locator;", "functions": [{"function_name": "init", "code": "    public void init() {\n\t_qNames              = new Hashtable(512);\n\t_namespaces          = new Hashtable();\n\t_instructionClasses  = new Hashtable();\n\t_instructionAttrs    = new Hashtable();\n\t_variableScope       = new Hashtable();\n\t_template            = null;\n\t_errors              = new Vector();\n\t_warnings            = new Vector();\n\t_symbolTable         = new SymbolTable();\n\t_xpathParser         = new XPathParser(this);\n\t_currentStylesheet   = null;\n        _output              = null;\n        _root                = null;\n        _rootNamespaceDef    = false;\n\t_currentImportPrecedence = 1;\n\t\n\tinitStdClasses();\n\tinitInstructionAttrs();\n\tinitExtClasses();\n\tinitSymbolTable();\n\t\n\t_useAttributeSets =\n\t    getQName(XSLT_URI, XSL, \"use-attribute-sets\");\n\t_excludeResultPrefixes =\n\t    getQName(XSLT_URI, XSL, \"exclude-result-prefixes\");\n\t_extensionElementPrefixes =\n\t    getQName(XSLT_URI, XSL, \"extension-element-prefixes\");", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [1, 23], [2, 24], [3, 25], [8, 26], [9, 27], [10, 28], [11, 29], [12, 30], [13, 31], [14, 32], [15, 33], [16, 34], [17, 35], [18, 36], [19, 37], [20, 38], [21, 39], [22, 40], [23, 41], [24, 42], [25, 43], [40, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 1], [24, 2], [25, 3], [26, 8], [27, 9], [28, 10], [29, 11], [30, 12], [31, 13], [32, 14], [33, 15], [34, 16], [35, 17], [36, 18], [37, 19], [38, 20], [39, 21], [40, 22], [41, 23], [42, 24], [43, 25], [44, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "setOutput", "code": "    public void setOutput(Output output) {\n\tif (_output != null) {\n\t    if (_output.getImportPrecedence() <= output.getImportPrecedence()) {\n\t\tString cdata = _output.getCdata();\n\t\toutput.mergeCdata(cdata);\n\t\t_output.disable();\n\t\t_output = output;\n\t    }\n\t    else {\n\t\toutput.disable();\n\t    }\n\t}\n\telse {\n\t    _output = output;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [4, 7], [4, 8], [7, 9], [7, 10], [4, 11], [4, 12], [4, 13], [4, 14], [8, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 4], [8, 4], [9, 7], [10, 7], [11, 4], [12, 4], [13, 4], [14, 4], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getOutput", "code": "    public Output getOutput() {\n\treturn _output;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOutputProperties", "code": "    public Properties getOutputProperties() {\n\treturn getTopLevelStylesheet().getOutputProperties();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addVariable", "code": "    public void addVariable(Variable var) {\n\taddVariableOrParam(var);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addParameter", "code": "    public void addParameter(Param param) {\n\taddVariableOrParam(param);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addVariableOrParam", "code": "    private void addVariableOrParam(VariableBase var) {\n\tObject existing = _variableScope.get(var.getName());\n\tif (existing != null) {\n\t    if (existing instanceof Stack) {\n\t\tStack stack = (Stack)existing;\n\t\tstack.push(var);\n\t    }\n\t    else if (existing instanceof VariableBase) {\n\t\tStack stack = new Stack();\n\t\tstack.push(existing);\n\t\tstack.push(var);\n\t\t_variableScope.put(var.getName(), stack);\n\t    }\n\t}\n\telse {\n\t    _variableScope.put(var.getName(), var);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [1, 8], [5, 9], [5, 10], [7, 11], [8, 12], [9, 13], [5, 14], [9, 15], [5, 16], [9, 17], [9, 18], [9, 19], [17, 20], [15, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 1], [9, 5], [10, 5], [11, 7], [12, 8], [13, 9], [14, 5], [15, 9], [16, 5], [17, 9], [18, 9], [19, 9], [20, 17], [21, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "removeVariable", "code": "    public void removeVariable(QName name) {\n\tObject existing = _variableScope.get(name);\n\tif (existing instanceof Stack) {\n\t    Stack stack = (Stack)existing;\n\t    if (!stack.isEmpty()) stack.pop();\n\t    if (!stack.isEmpty()) return;\n\t}\n\t_variableScope.remove(name);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [6, 10], [6, 11], [7, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 6], [11, 6], [12, 7], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "lookupVariable", "code": "    public VariableBase lookupVariable(QName name) {\n\tObject existing = _variableScope.get(name);\n\tif (existing instanceof VariableBase) {\n\t    return((VariableBase)existing);\n\t}\n\telse if (existing instanceof Stack) {\n\t    Stack stack = (Stack)existing;\n\t    return((VariableBase)stack.peek());\n\t}\n\treturn(null);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [2, 9], [3, 10], [6, 11], [6, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 2], [10, 3], [11, 6], [12, 6], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setXSLTC", "code": "    public void setXSLTC(XSLTC xsltc) {\n\t_xsltc = xsltc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXSLTC", "code": "    public XSLTC getXSLTC() {\n\treturn _xsltc;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCurrentImportPrecedence", "code": "    public int getCurrentImportPrecedence() {\n\treturn _currentImportPrecedence;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNextImportPrecedence", "code": "    public int getNextImportPrecedence() {\n\treturn ++_currentImportPrecedence;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCurrentStylesheet", "code": "    public void setCurrentStylesheet(Stylesheet stylesheet) {\n\t_currentStylesheet = stylesheet;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCurrentStylesheet", "code": "    public Stylesheet getCurrentStylesheet() {\n\treturn _currentStylesheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTopLevelStylesheet", "code": "    public Stylesheet getTopLevelStylesheet() {\n\treturn _xsltc.getStylesheet();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getQNameSafe", "code": "    public QName getQNameSafe(final String stringRep) {\n\tfinal int colon = stringRep.lastIndexOf(':');\n\tif (colon != -1) {\n\t    final String prefix = stringRep.substring(0, colon);\n\t    final String localname = stringRep.substring(colon + 1);\n\t    String namespace = null;\n\t    \n\t    if (prefix.equals(XMLNS_PREFIX) == false) {\n\t\tnamespace = _symbolTable.lookupNamespace(prefix);\n\t\tif (namespace == null) namespace = EMPTYSTRING;\n\t    }\n\t    return getQName(namespace, prefix, localname);\n\t}\n\telse {\n\t    final String uri = stringRep.equals(XMLNS_PREFIX) ? null\n\t\t: _symbolTable.lookupNamespace(EMPTYSTRING);\n\t    return getQName(uri, null, stringRep);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "VAR_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [4, 12], [2, 13], [5, 14], [7, 15], [8, 16], [13, 17], [14, 18], [6, 19], [8, 20], [16, 21], [16, 22], [9, 23], [10, 24], [11, 25], [19, 26], [19, 27], [19, 28], [20, 29], [8, 30], [24, 31], [25, 32], [20, 33], [29, 34], [30, 35], [31, 36], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 4], [13, 2], [14, 5], [15, 7], [16, 8], [17, 13], [18, 14], [19, 6], [20, 8], [21, 16], [22, 16], [23, 9], [24, 10], [25, 11], [26, 19], [27, 19], [28, 19], [29, 20], [30, 8], [31, 24], [32, 25], [33, 20], [34, 29], [35, 30], [36, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getQName", "code": "    public QName getQName(final String stringRep) {\n\treturn getQName(stringRep, true, false);    ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getQNameIgnoreDefaultNs", "code": "    public QName getQNameIgnoreDefaultNs(final String stringRep) {\n\treturn getQName(stringRep, true, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getQName", "code": "    public QName getQName(final String stringRep, boolean reportError) {\n\treturn getQName(stringRep, reportError, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getQName", "code": "    private QName getQName(final String stringRep, boolean reportError,\n\tboolean ignoreDefaultNs) \n    {\n\tfinal int colon = stringRep.lastIndexOf(':');\n\tif (colon != -1) {\n\t    final String prefix = stringRep.substring(0, colon);\n\t    final String localname = stringRep.substring(colon + 1);\n\t    String namespace = null;\n\t    \n\t    if (prefix.equals(XMLNS_PREFIX) == false) {\n\t\tnamespace = _symbolTable.lookupNamespace(prefix);\n\t\tif (namespace == null && reportError) {\n\t\t    final int line = _locator.getLineNumber();\n\t\t    ErrorMsg err = new ErrorMsg(ErrorMsg.NAMESPACE_UNDEF_ERR,\n\t\t\t\t\t\tline, prefix);\n\t\t    reportError(ERROR, err);\n\t\t}\n\t    }\n\t    return getQName(namespace, prefix, localname);\n\t}\n\telse {\n\t    if (stringRep.equals(XMLNS_PREFIX)) {\n\t\tignoreDefaultNs = true;\n\t    }\n\t    final String defURI = ignoreDefaultNs ? null \n\t\t\t\t  : _symbolTable.lookupNamespace(EMPTYSTRING);\n\t    return getQName(defURI, null, stringRep);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "VAR_DECL", "IF", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [6, 15], [2, 16], [7, 17], [9, 18], [10, 19], [11, 20], [16, 21], [17, 22], [8, 23], [11, 24], [20, 25], [20, 26], [12, 27], [13, 28], [14, 29], [23, 30], [23, 31], [9, 32], [24, 33], [11, 34], [28, 35], [29, 36], [32, 37], [24, 38], [24, 39], [33, 40], [34, 41], [35, 42], [24, 43], [40, 44], [38, 45], [39, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 6], [16, 2], [17, 7], [18, 9], [19, 10], [20, 11], [21, 16], [22, 17], [23, 8], [24, 11], [25, 20], [26, 20], [27, 12], [28, 13], [29, 14], [30, 23], [31, 23], [32, 9], [33, 24], [34, 11], [35, 28], [36, 29], [37, 32], [38, 24], [39, 24], [40, 33], [41, 34], [42, 35], [43, 24], [44, 40], [45, 38], [46, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "getQName", "code": "    public QName getQName(String namespace, String prefix, String localname) {\n\tif (namespace == null || namespace.equals(EMPTYSTRING)) {\n\t    QName name = (QName)_qNames.get(localname);\n\t    if (name == null) {\n\t\tname = new QName(null, prefix, localname);\n\t\t_qNames.put(localname, name);\n\t    }\n\t    return name;\n\t}\n\telse {\n\t    Dictionary space = (Dictionary)_namespaces.get(namespace);\n\t    if (space == null) {\n\t\tfinal QName name = new QName(namespace, prefix, localname);\n\t\t_namespaces.put(namespace, space = new Hashtable());\n\t\tspace.put(localname, name);\n\t\treturn name;\n\t    }\n\t    else {\n\t\tQName name = (QName)space.get(localname);\n\t\tif (name == null) {\n\t\t    name = new QName(namespace, prefix, localname);\n\t\t    space.put(localname, name);\n\t\t}\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [5, 12], [6, 13], [9, 14], [12, 15], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [13, 21], [14, 22], [17, 23], [6, 24], [6, 25], [7, 26], [9, 27], [9, 28], [10, 29], [23, 30], [25, 31], [20, 32], [28, 33], [17, 34], [17, 35], [18, 36], [31, 37], [33, 38], [35, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 5], [13, 6], [14, 9], [15, 12], [16, 6], [17, 6], [18, 6], [19, 6], [20, 6], [21, 13], [22, 14], [23, 17], [24, 6], [25, 6], [26, 7], [27, 9], [28, 9], [29, 10], [30, 23], [31, 25], [32, 20], [33, 28], [34, 17], [35, 17], [36, 18], [37, 31], [38, 33], [39, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getQName", "code": "    public QName getQName(String scope, String name) {\n\treturn getQName(scope + name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getQName", "code": "    public QName getQName(QName scope, QName name) {\n\treturn getQName(scope.toString() + name.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getUseAttributeSets", "code": "    public QName getUseAttributeSets() {\n\treturn _useAttributeSets;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExtensionElementPrefixes", "code": "    public QName getExtensionElementPrefixes() {\n\treturn _extensionElementPrefixes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExcludeResultPrefixes", "code": "    public QName getExcludeResultPrefixes() {\n\treturn _excludeResultPrefixes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "makeStylesheet", "code": "    public Stylesheet makeStylesheet(SyntaxTreeNode element) \n\tthrows CompilerException {\n\ttry {\n\t    Stylesheet stylesheet;\n\n\t    if (element instanceof Stylesheet) {\n\t\tstylesheet = (Stylesheet)element;\n\t    }\n\t    else {\n\t\tstylesheet = new Stylesheet();\n\t\tstylesheet.setSimplified();\n\t\tstylesheet.addElement(element);\n\t\tstylesheet.setAttributes(element.getAttributes());\n\n\t\tif (element.lookupNamespace(EMPTYSTRING) == null) {\n\t\t    element.addPrefixMapping(EMPTYSTRING, EMPTYSTRING);\n\t\t}\n\t    }\n\t    stylesheet.setParser(this);\n\t    return stylesheet;\n\t}\n\tcatch (ClassCastException e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.NOT_STYLESHEET_ERR, element);\n\t    throw new CompilerException(err.toString());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "IF", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [3, 8], [1, 9], [5, 10], [7, 11], [5, 12], [11, 13], [8, 14], [12, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [15, 21], [15, 22], [16, 23], [19, 24], [12, 25], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 3], [9, 1], [10, 5], [11, 7], [12, 5], [13, 11], [14, 8], [15, 12], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 15], [22, 15], [23, 16], [24, 19], [25, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "createAST", "code": "    public void createAST(Stylesheet stylesheet) {\n\ttry {\n\t    if (stylesheet != null) {\n\t\tstylesheet.parseContents(this);\n\t\tfinal int precedence = stylesheet.getImportPrecedence();\n\t\tfinal Enumeration elements = stylesheet.elements();\n\t\twhile (elements.hasMoreElements()) {\n\t\t    Object child = elements.nextElement();\n\t\t    if (child instanceof Text) {\n\t\t\tfinal int l = _locator.getLineNumber();\n\t\t\tErrorMsg err =\n\t\t\t    new ErrorMsg(ErrorMsg.ILLEGAL_TEXT_NODE_ERR,l,null);\n\t\t\treportError(ERROR, err);\n\t\t    }\n\t\t}\n\t\tif (!errorsFound()) {\n\t\t    stylesheet.typeCheck(_symbolTable);\n\t\t}\n\t    }\n\t}\n\tcatch (TypeCheckError e) {\n\t    reportError(ERROR, new ErrorMsg(e));", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "BINARY_OP", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [3, 6], [4, 7], [4, 8], [4, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [4, 15], [8, 16], [8, 17], [9, 18], [10, 19], [7, 20], [16, 21], [16, 22], [16, 23], [17, 24], [16, 25], [22, 26], [23, 27], [26, 28], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 3], [7, 4], [8, 4], [9, 4], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 4], [16, 8], [17, 8], [18, 9], [19, 10], [20, 7], [21, 16], [22, 16], [23, 16], [24, 17], [25, 16], [26, 22], [27, 23], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "parse", "code": "    public SyntaxTreeNode parse(XMLReader reader, InputSource input) {\n\ttry {\n\t    reader.setContentHandler(this);\n\t    reader.parse(input);\n\t    return (SyntaxTreeNode)getStylesheet(_root);\t\n\t}\n\tcatch (IOException e) {\n\t    if (_xsltc.debug()) e.printStackTrace();\n\t    reportError(ERROR,new ErrorMsg(e));\n\t}\n\tcatch (SAXException e) {\n\t    Throwable ex = e.getException();\n\t    if (_xsltc.debug()) {\n\t\te.printStackTrace();\n\t\tif (ex != null) ex.printStackTrace();\n\t    }\n\t    reportError(ERROR, new ErrorMsg(e));\n\t}\n\tcatch (CompilerException e) {\n\t    if (_xsltc.debug()) e.printStackTrace();\n\t    reportError(ERROR, new ErrorMsg(e));\n\t}\n\tcatch (Exception e) {\n\t    if (_xsltc.debug()) e.printStackTrace();\n\t    reportError(ERROR, new ErrorMsg(e));\n\t}\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "CATCH", "CATCH", "CATCH", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [6, 11], [7, 12], [8, 13], [8, 14], [9, 15], [2, 16], [2, 17], [6, 18], [11, 19], [7, 20], [12, 21], [8, 22], [13, 23], [9, 24], [15, 25], [10, 26], [18, 27], [11, 28], [20, 29], [12, 30], [22, 31], [13, 32], [14, 33], [24, 34], [15, 35], [32, 36], [13, 37], [32, 38], [36, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 6], [12, 7], [13, 8], [14, 8], [15, 9], [16, 2], [17, 2], [18, 6], [19, 11], [20, 7], [21, 12], [22, 8], [23, 13], [24, 9], [25, 15], [26, 10], [27, 18], [28, 11], [29, 20], [30, 12], [31, 22], [32, 13], [33, 14], [34, 24], [35, 15], [36, 32], [37, 13], [38, 32], [39, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "parse", "code": "    public SyntaxTreeNode parse(InputSource input) {\n\ttry {\n\t    final SAXParserFactory factory = SAXParserFactory.newInstance();\n\t    try {\n\t\tfactory.setFeature(Constants.NAMESPACE_FEATURE,true);\n\t    }\n\t    catch (Exception e) {\n\t\tfactory.setNamespaceAware(true);\n\t    }\n\t    final SAXParser parser = factory.newSAXParser();\n\t    final XMLReader reader = parser.getXMLReader();\n\t    return(parse(reader, input));\n\t}\n\tcatch (ParserConfigurationException e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.SAX_PARSER_CONFIG_ERR);\n\t    reportError(ERROR, err);\n\t}\n\tcatch (SAXParseException e){\n\t    reportError(ERROR, new ErrorMsg(e.getMessage(),e.getLineNumber()));\n\t}\n\tcatch (SAXException e) {\n\t    reportError(ERROR, new ErrorMsg(e.getMessage()));\n\t}\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [7, 13], [8, 14], [11, 15], [5, 16], [6, 17], [7, 18], [9, 19], [10, 20], [11, 21], [12, 22], [16, 23], [17, 24], [13, 25], [15, 26], [21, 27], [23, 28], [24, 29], [24, 30], [26, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 7], [14, 8], [15, 11], [16, 5], [17, 6], [18, 7], [19, 9], [20, 10], [21, 11], [22, 12], [23, 16], [24, 17], [25, 13], [26, 15], [27, 21], [28, 23], [29, 24], [30, 24], [31, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getDocumentRoot", "code": "    public SyntaxTreeNode getDocumentRoot() {\n\treturn _root;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPIParameters", "code": "    protected void setPIParameters(String media, String title, String charset) {\n\t_PImedia = media;\n\t_PItitle = title;\n\t_PIcharset = charset;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getStylesheet", "code": "    private SyntaxTreeNode getStylesheet(SyntaxTreeNode root)\n\tthrows CompilerException {\n\n\tif (_target == null) {\n\t    if (!_rootNamespaceDef) {\n\t\tErrorMsg msg = new ErrorMsg(ErrorMsg.MISSING_XSLT_URI_ERR);\n\t\tthrow new CompilerException(msg.toString());\n\t    }\n\t    return(root);\n\t}\n\n\tif (_target.charAt(0) == '#') {\n\t    SyntaxTreeNode element = findStylesheet(root, _target.substring(1));\n\t    if (element == null) {\n\t\tErrorMsg msg = new ErrorMsg(ErrorMsg.MISSING_XSLT_TARGET_ERR,\n\t\t\t\t\t    _target, root);\n\t\tthrow new CompilerException(msg.toString());\n\t    }\n\t    return(element);\n\t}\n\telse {\n\t    return(loadExternalStylesheet(_target));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [4, 11], [2, 12], [2, 13], [5, 14], [6, 15], [8, 16], [11, 17], [8, 18], [8, 19], [16, 20], [9, 21], [13, 22], [13, 23], [18, 24], [21, 25], [22, 26], [24, 27], [19, 28], [25, 29], [26, 30], [23, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 4], [12, 2], [13, 2], [14, 5], [15, 6], [16, 8], [17, 11], [18, 8], [19, 8], [20, 16], [21, 9], [22, 13], [23, 13], [24, 18], [25, 21], [26, 22], [27, 24], [28, 19], [29, 25], [30, 26], [31, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "findStylesheet", "code": "    private SyntaxTreeNode findStylesheet(SyntaxTreeNode root, String href) {\n\n\tif (root == null) return null;\n\n\tif (root instanceof Stylesheet) {\n\t    String id = root.getAttribute(\"id\");\n\t    if (id.equals(href)) return root;\n\t}\n\tVector children = root.getContents();\n\tif (children != null) {\n\t    final int count = children.size();\n\t    for (int i = 0; i < count; i++) {\n\t\tSyntaxTreeNode child = (SyntaxTreeNode)children.elementAt(i);\n\t\tSyntaxTreeNode node = findStylesheet(child, href);\n\t\tif (node != null) return node;\n\t    }\n\t}\n\treturn null;\t", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [5, 11], [5, 12], [2, 13], [2, 14], [9, 15], [3, 16], [4, 17], [4, 18], [11, 19], [12, 20], [13, 21], [17, 22], [17, 23], [13, 24], [13, 25], [13, 26], [14, 27], [18, 28], [24, 29], [24, 30], [13, 31], [28, 32], [30, 33], [25, 34], [26, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 5], [12, 5], [13, 2], [14, 2], [15, 9], [16, 3], [17, 4], [18, 4], [19, 11], [20, 12], [21, 13], [22, 17], [23, 17], [24, 13], [25, 13], [26, 13], [27, 14], [28, 18], [29, 24], [30, 24], [31, 13], [32, 28], [33, 30], [34, 25], [35, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "loadExternalStylesheet", "code": "    private SyntaxTreeNode loadExternalStylesheet(String location)\n\tthrows CompilerException {\n\n\tInputSource source;\n\n\tif ((new File(location)).exists())\n\t    source = new InputSource(\"file:\"+location);\n\telse\n\t    source = new InputSource(location);\n\n\tSyntaxTreeNode external = (SyntaxTreeNode)parse(source);\n\treturn(external);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [3, 8], [6, 9], [2, 10], [7, 11], [8, 12], [12, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 3], [9, 6], [10, 2], [11, 7], [12, 8], [13, 12], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "initAttrTable", "code": "    private void initAttrTable(String elementName, String[] attrs) {\n\t_instructionAttrs.put(getQName(XSLT_URI, XSL, elementName),\n\t\t\t\tattrs);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "initInstructionAttrs", "code": "    private void initInstructionAttrs() {\n\tinitAttrTable(\"template\", \n\t    new String[] {\"match\", \"name\", \"priority\", \"mode\"});\n\tinitAttrTable(\"stylesheet\", \n\t    new String[] {\"id\", \"version\", \"extension-element-prefixes\",\n\t\t\"exclude-result-prefixes\"});\n\tinitAttrTable(\"transform\",\n\t    new String[] {\"id\", \"version\", \"extension-element-prefixes\",\n\t\t\"exclude-result-prefixes\"});\n\tinitAttrTable(\"text\", new String[] {\"disable-output-escaping\"}); \n\tinitAttrTable(\"if\", new String[] {\"test\"}); \n\tinitAttrTable(\"choose\", new String[] {}); \n\tinitAttrTable(\"when\", new String[] {\"test\"}); \n\tinitAttrTable(\"otherwise\", new String[] {}); \n\tinitAttrTable(\"for-each\", new String[] {\"select\"}); \n\tinitAttrTable(\"message\", new String[] {\"terminate\"}); \n\tinitAttrTable(\"number\", \n\t    new String[] {\"level\", \"count\", \"from\", \"value\", \"format\", \"lang\",\n\t\t\"letter-value\", \"grouping-separator\", \"grouping-size\"});\n\t\tinitAttrTable(\"comment\", new String[] {}); \n\tinitAttrTable(\"copy\", new String[] {\"use-attribute-sets\"}); \n\tinitAttrTable(\"copy-of\", new String[] {\"select\"}); \n\tinitAttrTable(\"param\", new String[] {\"name\", \"select\"}); \n\tinitAttrTable(\"with-param\", new String[] {\"name\", \"select\"}); \n\tinitAttrTable(\"variable\", new String[] {\"name\", \"select\"}); \n\tinitAttrTable(\"output\", \n\t    new String[] {\"method\", \"version\", \"encoding\", \n\t\t\"omit-xml-declaration\", \"standalone\", \"doctype-public\",\n\t\t\"doctype-system\", \"cdata-section-elements\", \"indent\",\n\t\t\"media-type\"}); \n\tinitAttrTable(\"sort\", \n\t   new String[] {\"select\", \"order\", \"case-order\", \"lang\", \"data-type\"});\n\tinitAttrTable(\"key\", new String[] {\"name\", \"match\", \"use\"}); \n\tinitAttrTable(\"fallback\", new String[] {}); \n\tinitAttrTable(\"attribute\", new String[] {\"name\", \"namespace\"}); \n\tinitAttrTable(\"attribute-set\", \n\t    new String[] {\"name\", \"use-attribute-sets\"}); \n\tinitAttrTable(\"value-of\", \n\t    new String[] {\"select\", \"disable-output-escaping\"}); \n\tinitAttrTable(\"element\", \n\t    new String[] {\"name\", \"namespace\", \"use-attribute-sets\"}); \n\tinitAttrTable(\"call-template\", new String[] {\"name\"}); \n\tinitAttrTable(\"apply-templates\", new String[] {\"select\", \"mode\"}); \n\tinitAttrTable(\"apply-imports\", new String[] {}); \n\tinitAttrTable(\"decimal-format\", \n\t    new String[] {\"name\", \"decimal-separator\", \"grouping-separator\",\n\t\t\"infinity\", \"minus-sign\", \"NaN\", \"percent\", \"per-mille\",\n\t\t\"zero-digit\", \"digit\", \"pattern-separator\"}); \n\tinitAttrTable(\"import\", new String[] {\"href\"}); \n\tinitAttrTable(\"include\", new String[] {\"href\"}); \n\tinitAttrTable(\"strip-space\", new String[] {\"elements\"}); \n\tinitAttrTable(\"preserve-space\", new String[] {\"elements\"}); \n\tinitAttrTable(\"processing-instruction\", new String[] {\"name\"}); \n\tinitAttrTable(\"namespace-alias\", \n\t   new String[] {\"stylesheet-prefix\", \"result-prefix\"}); ", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [1, 36], [2, 37], [3, 38], [4, 39], [5, 40], [6, 41], [7, 42], [8, 43], [9, 44], [10, 45], [11, 46], [12, 47], [13, 48], [14, 49], [15, 50], [16, 51], [17, 52], [18, 53], [19, 54], [20, 55], [21, 56], [22, 57], [23, 58], [24, 59], [25, 60], [26, 61], [27, 62], [28, 63], [29, 64], [30, 65], [31, 66], [32, 67], [33, 68], [34, 69], [35, 70], [1, 71], [1, 72], [2, 73], [3, 74], [4, 75], [5, 76], [6, 77], [7, 78], [7, 79], [7, 80], [7, 81], [7, 82], [7, 83], [7, 84], [7, 85], [7, 86], [7, 87], [7, 88], [9, 89], [9, 90], [10, 91], [11, 92], [11, 93], [11, 94], [12, 95], [12, 96], [13, 97], [13, 98], [14, 99], [14, 100], [16, 101], [16, 102], [16, 103], [17, 104], [17, 105], [17, 106], [17, 107], [17, 108], [18, 109], [18, 110], [18, 111], [18, 112], [18, 113], [18, 114], [18, 115], [18, 116], [18, 117], [18, 118], [19, 119], [19, 120], [20, 121], [20, 122], [21, 123], [21, 124], [22, 125], [23, 126], [25, 127], [25, 128], [25, 129], [25, 130], [25, 131], [25, 132], [25, 133], [25, 134], [25, 135], [26, 136], [27, 137], [29, 138], [31, 139], [32, 140], [33, 141], [33, 142], [33, 143], [33, 144], [34, 145], [34, 146], [34, 147], [34, 148], [35, 149], [35, 150], [35, 151], [35, 152], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 1], [37, 2], [38, 3], [39, 4], [40, 5], [41, 6], [42, 7], [43, 8], [44, 9], [45, 10], [46, 11], [47, 12], [48, 13], [49, 14], [50, 15], [51, 16], [52, 17], [53, 18], [54, 19], [55, 20], [56, 21], [57, 22], [58, 23], [59, 24], [60, 25], [61, 26], [62, 27], [63, 28], [64, 29], [65, 30], [66, 31], [67, 32], [68, 33], [69, 34], [70, 35], [71, 1], [72, 1], [73, 2], [74, 3], [75, 4], [76, 5], [77, 6], [78, 7], [79, 7], [80, 7], [81, 7], [82, 7], [83, 7], [84, 7], [85, 7], [86, 7], [87, 7], [88, 7], [89, 9], [90, 9], [91, 10], [92, 11], [93, 11], [94, 11], [95, 12], [96, 12], [97, 13], [98, 13], [99, 14], [100, 14], [101, 16], [102, 16], [103, 16], [104, 17], [105, 17], [106, 17], [107, 17], [108, 17], [109, 18], [110, 18], [111, 18], [112, 18], [113, 18], [114, 18], [115, 18], [116, 18], [117, 18], [118, 18], [119, 19], [120, 19], [121, 20], [122, 20], [123, 21], [124, 21], [125, 22], [126, 23], [127, 25], [128, 25], [129, 25], [130, 25], [131, 25], [132, 25], [133, 25], [134, 25], [135, 25], [136, 26], [137, 27], [138, 29], [139, 31], [140, 32], [141, 33], [142, 33], [143, 33], [144, 33], [145, 34], [146, 34], [147, 34], [148, 34], [149, 35], [150, 35], [151, 35], [152, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152]]}, {"function_name": "initStdClasses", "code": "    private void initStdClasses() {\n\tinitStdClass(\"template\", \"Template\");\n\tinitStdClass(\"stylesheet\", \"Stylesheet\");\n\tinitStdClass(\"transform\", \"Stylesheet\");\n\tinitStdClass(\"text\", \"Text\");\n\tinitStdClass(\"if\", \"If\");\n\tinitStdClass(\"choose\", \"Choose\");\n\tinitStdClass(\"when\", \"When\");\n\tinitStdClass(\"otherwise\", \"Otherwise\");\n\tinitStdClass(\"for-each\", \"ForEach\");\n\tinitStdClass(\"message\", \"Message\");\n\tinitStdClass(\"number\", \"Number\");\n\tinitStdClass(\"comment\", \"Comment\");\n\tinitStdClass(\"copy\", \"Copy\");\n\tinitStdClass(\"copy-of\", \"CopyOf\");\n\tinitStdClass(\"param\", \"Param\");\n\tinitStdClass(\"with-param\", \"WithParam\");\n\tinitStdClass(\"variable\", \"Variable\");\n\tinitStdClass(\"output\", \"Output\");\n\tinitStdClass(\"sort\", \"Sort\");\n\tinitStdClass(\"key\", \"Key\");\n\tinitStdClass(\"fallback\", \"Fallback\");\n\tinitStdClass(\"attribute\", \"XslAttribute\");\n\tinitStdClass(\"attribute-set\", \"AttributeSet\");\n\tinitStdClass(\"value-of\", \"ValueOf\");\n\tinitStdClass(\"element\", \"XslElement\");\n\tinitStdClass(\"call-template\", \"CallTemplate\");\n\tinitStdClass(\"apply-templates\", \"ApplyTemplates\");\n\tinitStdClass(\"apply-imports\", \"ApplyImports\");\n\tinitStdClass(\"decimal-format\", \"DecimalFormatting\");\n\tinitStdClass(\"import\", \"Import\");\n\tinitStdClass(\"include\", \"Include\");\n\tinitStdClass(\"strip-space\", \"Whitespace\");\n\tinitStdClass(\"preserve-space\", \"Whitespace\");\n\tinitStdClass(\"processing-instruction\", \"ProcessingInstruction\");\n\tinitStdClass(\"namespace-alias\", \"NamespaceAlias\");", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [1, 36], [1, 37], [2, 38], [2, 39], [3, 40], [3, 41], [4, 42], [4, 43], [5, 44], [5, 45], [6, 46], [6, 47], [7, 48], [7, 49], [8, 50], [8, 51], [9, 52], [9, 53], [10, 54], [10, 55], [11, 56], [11, 57], [12, 58], [12, 59], [13, 60], [13, 61], [14, 62], [14, 63], [15, 64], [15, 65], [16, 66], [16, 67], [17, 68], [17, 69], [18, 70], [18, 71], [19, 72], [19, 73], [20, 74], [20, 75], [21, 76], [21, 77], [22, 78], [22, 79], [23, 80], [23, 81], [24, 82], [24, 83], [25, 84], [25, 85], [26, 86], [26, 87], [27, 88], [27, 89], [28, 90], [28, 91], [29, 92], [29, 93], [30, 94], [30, 95], [31, 96], [31, 97], [32, 98], [32, 99], [33, 100], [33, 101], [34, 102], [34, 103], [35, 104], [35, 105], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 1], [37, 1], [38, 2], [39, 2], [40, 3], [41, 3], [42, 4], [43, 4], [44, 5], [45, 5], [46, 6], [47, 6], [48, 7], [49, 7], [50, 8], [51, 8], [52, 9], [53, 9], [54, 10], [55, 10], [56, 11], [57, 11], [58, 12], [59, 12], [60, 13], [61, 13], [62, 14], [63, 14], [64, 15], [65, 15], [66, 16], [67, 16], [68, 17], [69, 17], [70, 18], [71, 18], [72, 19], [73, 19], [74, 20], [75, 20], [76, 21], [77, 21], [78, 22], [79, 22], [80, 23], [81, 23], [82, 24], [83, 24], [84, 25], [85, 25], [86, 26], [87, 26], [88, 27], [89, 27], [90, 28], [91, 28], [92, 29], [93, 29], [94, 30], [95, 30], [96, 31], [97, 31], [98, 32], [99, 32], [100, 33], [101, 33], [102, 34], [103, 34], [104, 35], [105, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105]]}, {"function_name": "initStdClass", "code": "    private void initStdClass(String elementName, String className) {\n\t_instructionClasses.put(getQName(XSLT_URI, XSL, elementName),\n\t\t\t\tCOMPILER_PACKAGE + '.' + className);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "elementSupported", "code": "    public boolean elementSupported(String namespace, String localName) {\n\treturn(_instructionClasses.get(getQName(namespace, XSL, localName)) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "functionSupported", "code": "    public boolean functionSupported(String fname) {\n\treturn(_symbolTable.lookupPrimop(fname) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "initExtClasses", "code": "    private void initExtClasses() {\n\tinitExtClass(\"output\", \"TransletOutput\");\n        initExtClass(REDIRECT_URI, \"write\", \"TransletOutput\");", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [2, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "initExtClass", "code": "    private void initExtClass(String elementName, String className) {\n\t_instructionClasses.put(getQName(TRANSLET_URI, TRANSLET, elementName),\n\t\t\t\tCOMPILER_PACKAGE + '.' + className);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "initExtClass", "code": "    private void initExtClass(String namespace, String elementName, String className) {\n        _instructionClasses.put(getQName(namespace, TRANSLET, elementName),\n                                COMPILER_PACKAGE + '.' + className);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "initSymbolTable", "code": "    private void initSymbolTable() {\n\tMethodType I_V  = new MethodType(Type.Int, Type.Void);\n\tMethodType I_R  = new MethodType(Type.Int, Type.Real);\n\tMethodType I_S  = new MethodType(Type.Int, Type.String);\n\tMethodType I_D  = new MethodType(Type.Int, Type.NodeSet);\n\tMethodType R_I  = new MethodType(Type.Real, Type.Int);\n\tMethodType R_V  = new MethodType(Type.Real, Type.Void);\n\tMethodType R_R  = new MethodType(Type.Real, Type.Real);\n\tMethodType R_D  = new MethodType(Type.Real, Type.NodeSet);\n\tMethodType R_O  = new MethodType(Type.Real, Type.Reference);\n\tMethodType I_I  = new MethodType(Type.Int, Type.Int);\n \tMethodType D_O  = new MethodType(Type.NodeSet, Type.Reference);\n\tMethodType D_V  = new MethodType(Type.NodeSet, Type.Void);\n\tMethodType D_S  = new MethodType(Type.NodeSet, Type.String);\n\tMethodType D_D  = new MethodType(Type.NodeSet, Type.NodeSet);\n\tMethodType A_V  = new MethodType(Type.Node, Type.Void);\n\tMethodType S_V  = new MethodType(Type.String, Type.Void);\n\tMethodType S_S  = new MethodType(Type.String, Type.String);\n\tMethodType S_A  = new MethodType(Type.String, Type.Node);\n\tMethodType S_D  = new MethodType(Type.String, Type.NodeSet);\n\tMethodType S_O  = new MethodType(Type.String, Type.Reference);\n\tMethodType B_O  = new MethodType(Type.Boolean, Type.Reference);\n\tMethodType B_V  = new MethodType(Type.Boolean, Type.Void);\n\tMethodType B_B  = new MethodType(Type.Boolean, Type.Boolean);\n\tMethodType B_S  = new MethodType(Type.Boolean, Type.String);\n\tMethodType D_X  = new MethodType(Type.NodeSet, Type.Object);\n\tMethodType R_RR = new MethodType(Type.Real, Type.Real, Type.Real);\n\tMethodType I_II = new MethodType(Type.Int, Type.Int, Type.Int);\n\tMethodType B_RR = new MethodType(Type.Boolean, Type.Real, Type.Real);\n\tMethodType B_II = new MethodType(Type.Boolean, Type.Int, Type.Int);\n\tMethodType S_SS = new MethodType(Type.String, Type.String, Type.String);\n\tMethodType S_DS = new MethodType(Type.String, Type.Real, Type.String);\n\tMethodType S_SR = new MethodType(Type.String, Type.String, Type.Real);\n\tMethodType O_SO = new MethodType(Type.Reference, Type.String, Type.Reference);\n\n\tMethodType D_SS =\n\t    new MethodType(Type.NodeSet, Type.String, Type.String);\n\tMethodType D_SD = \n\t    new MethodType(Type.NodeSet, Type.String, Type.NodeSet);\n\tMethodType B_BB =\n\t    new MethodType(Type.Boolean, Type.Boolean, Type.Boolean);\n\tMethodType B_SS =\n\t    new MethodType(Type.Boolean, Type.String, Type.String);\n\tMethodType S_SD =\n\t    new MethodType(Type.String, Type.String, Type.NodeSet);\n\tMethodType S_DSS =\n\t    new MethodType(Type.String, Type.Real, Type.String, Type.String);\n\tMethodType S_SRR =\n\t    new MethodType(Type.String, Type.String, Type.Real, Type.Real);\n\tMethodType S_SSS =\n\t    new MethodType(Type.String, Type.String, Type.String, Type.String);\n\n\t/*\n\t * Standard functions: implemented but not in this table concat().\n\t * When adding a new function make sure to uncomment\n\t * the corresponding line in <tt>FunctionAvailableCall</tt>.\n\t */\n\n\n\t_symbolTable.addPrimop(\"current\", A_V);\n\t_symbolTable.addPrimop(\"last\", I_V);\n\t_symbolTable.addPrimop(\"position\", I_V);\n\t_symbolTable.addPrimop(\"true\", B_V);\n\t_symbolTable.addPrimop(\"false\", B_V);\n\t_symbolTable.addPrimop(\"not\", B_B);\n\t_symbolTable.addPrimop(\"name\", S_V);\n\t_symbolTable.addPrimop(\"name\", S_A);\n\t_symbolTable.addPrimop(\"generate-id\", S_V);\n\t_symbolTable.addPrimop(\"generate-id\", S_A);\n\t_symbolTable.addPrimop(\"ceiling\", R_R);\n\t_symbolTable.addPrimop(\"floor\", R_R);\n\t_symbolTable.addPrimop(\"round\", R_R);\n\t_symbolTable.addPrimop(\"contains\", B_SS);\n\t_symbolTable.addPrimop(\"number\", R_O);\n\t_symbolTable.addPrimop(\"number\", R_V);\n\t_symbolTable.addPrimop(\"boolean\", B_O);\n\t_symbolTable.addPrimop(\"string\", S_O);\n\t_symbolTable.addPrimop(\"string\", S_V);\n\t_symbolTable.addPrimop(\"translate\", S_SSS);\n\t_symbolTable.addPrimop(\"string-length\", I_V);\n\t_symbolTable.addPrimop(\"string-length\", I_S);\n\t_symbolTable.addPrimop(\"starts-with\", B_SS);\n\t_symbolTable.addPrimop(\"format-number\", S_DS);\n\t_symbolTable.addPrimop(\"format-number\", S_DSS);\n\t_symbolTable.addPrimop(\"unparsed-entity-uri\", S_S);\n\t_symbolTable.addPrimop(\"key\", D_SS);\n\t_symbolTable.addPrimop(\"key\", D_SD);\n\t_symbolTable.addPrimop(\"id\", D_S);\n\t_symbolTable.addPrimop(\"id\", D_D);\n\t_symbolTable.addPrimop(\"namespace-uri\", S_V);\n\t_symbolTable.addPrimop(\"function-available\", B_S);\n\t_symbolTable.addPrimop(\"element-available\", B_S);\n\t_symbolTable.addPrimop(\"document\", D_S);\n\t_symbolTable.addPrimop(\"document\", D_V);\n\n\t_symbolTable.addPrimop(\"count\", I_D);\n\t_symbolTable.addPrimop(\"sum\", R_D);\n\t_symbolTable.addPrimop(\"local-name\", S_V);\n\t_symbolTable.addPrimop(\"local-name\", S_D);\n\t_symbolTable.addPrimop(\"namespace-uri\", S_V);\n\t_symbolTable.addPrimop(\"namespace-uri\", S_D);\n\t_symbolTable.addPrimop(\"substring\", S_SR);\n\t_symbolTable.addPrimop(\"substring\", S_SRR);\n\t_symbolTable.addPrimop(\"substring-after\", S_SS);\n\t_symbolTable.addPrimop(\"substring-before\", S_SS);\n\t_symbolTable.addPrimop(\"normalize-space\", S_V);\n\t_symbolTable.addPrimop(\"normalize-space\", S_S);\n\t_symbolTable.addPrimop(\"system-property\", S_S);\n\n        _symbolTable.addPrimop(\"nodeset\", D_O);\n        _symbolTable.addPrimop(\"objectType\", S_O);\n        _symbolTable.addPrimop(\"cast\", O_SO);\n\n\t_symbolTable.addPrimop(\"+\", R_RR);\t\n\t_symbolTable.addPrimop(\"-\", R_RR);\t\n\t_symbolTable.addPrimop(\"*\", R_RR);\t\n\t_symbolTable.addPrimop(\"/\", R_RR);\t\n\t_symbolTable.addPrimop(\"%\", R_RR);\t\n\n\t_symbolTable.addPrimop(\"+\", I_II);\t\n\t_symbolTable.addPrimop(\"-\", I_II);\t\n\t_symbolTable.addPrimop(\"*\", I_II);\t\n\n\t_symbolTable.addPrimop(\"<\",  B_RR);\t\n\t_symbolTable.addPrimop(\"<=\", B_RR);\t\n\t_symbolTable.addPrimop(\">\",  B_RR);\t\n\t_symbolTable.addPrimop(\">=\", B_RR);\t\n\n\t_symbolTable.addPrimop(\"<\",  B_II);\t\n\t_symbolTable.addPrimop(\"<=\", B_II);\t\n\t_symbolTable.addPrimop(\">\",  B_II);\t\n\t_symbolTable.addPrimop(\">=\", B_II);\t\n\n\t_symbolTable.addPrimop(\"<\",  B_BB);\t\n\t_symbolTable.addPrimop(\"<=\", B_BB);\t\n\t_symbolTable.addPrimop(\">\",  B_BB);\t\n\t_symbolTable.addPrimop(\">=\", B_BB);\t\n\n\t_symbolTable.addPrimop(\"or\", B_BB);\t\n\t_symbolTable.addPrimop(\"and\", B_BB);\t\n\n\t_symbolTable.addPrimop(\"u-\", R_R);\t\n\t_symbolTable.addPrimop(\"u-\", I_I);\t", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [0, 54], [0, 55], [0, 56], [0, 57], [0, 58], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 64], [0, 65], [0, 66], [0, 67], [0, 68], [0, 69], [0, 70], [0, 71], [0, 72], [0, 73], [0, 74], [0, 75], [0, 76], [0, 77], [0, 78], [0, 79], [0, 80], [0, 81], [0, 82], [0, 83], [0, 84], [0, 85], [0, 86], [0, 87], [0, 88], [0, 89], [0, 90], [0, 91], [0, 92], [0, 93], [0, 94], [0, 95], [0, 96], [0, 97], [0, 98], [0, 99], [0, 100], [0, 101], [0, 102], [0, 103], [0, 104], [0, 105], [0, 106], [0, 107], [0, 108], [0, 109], [0, 110], [0, 111], [0, 112], [0, 113], [0, 114], [0, 115], [0, 116], [42, 117], [43, 118], [44, 119], [45, 120], [46, 121], [47, 122], [48, 123], [49, 124], [50, 125], [51, 126], [52, 127], [53, 128], [54, 129], [55, 130], [56, 131], [57, 132], [58, 133], [59, 134], [60, 135], [61, 136], [62, 137], [63, 138], [64, 139], [65, 140], [66, 141], [67, 142], [68, 143], [69, 144], [70, 145], [71, 146], [72, 147], [73, 148], [74, 149], [75, 150], [76, 151], [77, 152], [78, 153], [79, 154], [80, 155], [81, 156], [82, 157], [83, 158], [84, 159], [85, 160], [86, 161], [87, 162], [88, 163], [89, 164], [90, 165], [91, 166], [92, 167], [93, 168], [94, 169], [95, 170], [96, 171], [97, 172], [98, 173], [99, 174], [100, 175], [101, 176], [102, 177], [103, 178], [104, 179], [105, 180], [106, 181], [107, 182], [108, 183], [109, 184], [110, 185], [111, 186], [112, 187], [113, 188], [114, 189], [115, 190], [116, 191], [1, 192], [2, 193], [3, 194], [4, 195], [5, 196], [6, 197], [7, 198], [8, 199], [9, 200], [10, 201], [11, 202], [12, 203], [13, 204], [14, 205], [15, 206], [16, 207], [17, 208], [18, 209], [19, 210], [20, 211], [21, 212], [22, 213], [23, 214], [24, 215], [25, 216], [26, 217], [27, 218], [28, 219], [29, 220], [30, 221], [31, 222], [32, 223], [33, 224], [34, 225], [35, 226], [36, 227], [37, 228], [38, 229], [39, 230], [40, 231], [41, 232], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 0], [55, 0], [56, 0], [57, 0], [58, 0], [59, 0], [60, 0], [61, 0], [62, 0], [63, 0], [64, 0], [65, 0], [66, 0], [67, 0], [68, 0], [69, 0], [70, 0], [71, 0], [72, 0], [73, 0], [74, 0], [75, 0], [76, 0], [77, 0], [78, 0], [79, 0], [80, 0], [81, 0], [82, 0], [83, 0], [84, 0], [85, 0], [86, 0], [87, 0], [88, 0], [89, 0], [90, 0], [91, 0], [92, 0], [93, 0], [94, 0], [95, 0], [96, 0], [97, 0], [98, 0], [99, 0], [100, 0], [101, 0], [102, 0], [103, 0], [104, 0], [105, 0], [106, 0], [107, 0], [108, 0], [109, 0], [110, 0], [111, 0], [112, 0], [113, 0], [114, 0], [115, 0], [116, 0], [117, 42], [118, 43], [119, 44], [120, 45], [121, 46], [122, 47], [123, 48], [124, 49], [125, 50], [126, 51], [127, 52], [128, 53], [129, 54], [130, 55], [131, 56], [132, 57], [133, 58], [134, 59], [135, 60], [136, 61], [137, 62], [138, 63], [139, 64], [140, 65], [141, 66], [142, 67], [143, 68], [144, 69], [145, 70], [146, 71], [147, 72], [148, 73], [149, 74], [150, 75], [151, 76], [152, 77], [153, 78], [154, 79], [155, 80], [156, 81], [157, 82], [158, 83], [159, 84], [160, 85], [161, 86], [162, 87], [163, 88], [164, 89], [165, 90], [166, 91], [167, 92], [168, 93], [169, 94], [170, 95], [171, 96], [172, 97], [173, 98], [174, 99], [175, 100], [176, 101], [177, 102], [178, 103], [179, 104], [180, 105], [181, 106], [182, 107], [183, 108], [184, 109], [185, 110], [186, 111], [187, 112], [188, 113], [189, 114], [190, 115], [191, 116], [192, 1], [193, 2], [194, 3], [195, 4], [196, 5], [197, 6], [198, 7], [199, 8], [200, 9], [201, 10], [202, 11], [203, 12], [204, 13], [205, 14], [206, 15], [207, 16], [208, 17], [209, 18], [210, 19], [211, 20], [212, 21], [213, 22], [214, 23], [215, 24], [216, 25], [217, 26], [218, 27], [219, 28], [220, 29], [221, 30], [222, 31], [223, 32], [224, 33], [225, 34], [226, 35], [227, 36], [228, 37], [229, 38], [230, 39], [231, 40], [232, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232]]}, {"function_name": "getSymbolTable", "code": "    public SymbolTable getSymbolTable() {\n\treturn _symbolTable;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTemplate", "code": "    public Template getTemplate() {\n\treturn _template;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTemplate", "code": "    public void setTemplate(Template template) {\n\t_template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTemplateIndex", "code": "    public int getTemplateIndex() {\n\treturn(_templateIndex++);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "makeInstance", "code": "    public SyntaxTreeNode makeInstance(String uri, String prefix, \n\tString local, Attributes attributes)\n    {\n\tSyntaxTreeNode node = null;\n\tQName  qname = getQName(uri, prefix, local);\n\tString className = (String)_instructionClasses.get(qname);\n\n\tif (className != null) {\n\t    try {\n\t\tfinal Class clazz = ObjectFactory.findProviderClass(\n                    className, ObjectFactory.findClassLoader(), true);\n\t\tnode = (SyntaxTreeNode)clazz.newInstance();\n\t\tnode.setQName(qname);\n\t\tnode.setParser(this);\n\t\tif (_locator != null) {\n\t\t    node.setLineNumber(_locator.getLineNumber());\n\t\t}\n\t\tif (node instanceof Stylesheet) {\n\t\t    _xsltc.setStylesheet((Stylesheet)node);\n\t\t}\n\t\tcheckForSuperfluousAttributes(node, attributes);\n\t    }\n\t    catch (ClassNotFoundException e) {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, node);\n\t\treportError(ERROR, err);\n\t    }\n\t    catch (Exception e) {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.INTERNAL_ERR,\n\t\t\t\t\t    e.getMessage(), node);\n\t\treportError(FATAL, err);\n\t    }\n\t}\n\telse {\n\t    if (uri != null) {\n\t\tif (uri.equals(XSLT_URI)) {\n\t\t    node = new UnsupportedElement(uri, prefix, local, false);\n\t\t    UnsupportedElement element = (UnsupportedElement)node;\n\t\t    ErrorMsg msg = new ErrorMsg(ErrorMsg.UNSUPPORTED_XSL_ERR,\n\t\t\t\t\t\t_locator.getLineNumber(),local);\n\t\t    element.setErrorMessage(msg);\n\t\t    if (versionIsOne) {\n\t\t    \treportError(UNSUPPORTED,msg);\n \t\t    }\n\t\t}\n\t\telse if (uri.equals(TRANSLET_URI)) {\n\t\t    node = new UnsupportedElement(uri, prefix, local, true);\n\t\t    UnsupportedElement element = (UnsupportedElement)node;\n\t\t    ErrorMsg msg = new ErrorMsg(ErrorMsg.UNSUPPORTED_EXT_ERR,\n\t\t\t\t\t\t_locator.getLineNumber(),local);\n\t\t    element.setErrorMessage(msg);\n\t\t}\n\t\telse {\n\t\t    Stylesheet sheet = _xsltc.getStylesheet();\n\t\t    if ((sheet != null) && (sheet.isExtension(uri))) {\n\t\t\tif (sheet != (SyntaxTreeNode)_parentStack.peek()) {\n\t\t\t    node = new UnsupportedElement(uri, prefix, local, true);\n\t\t\t    UnsupportedElement elem = (UnsupportedElement)node;\n\t\t\t    ErrorMsg msg =\n\t\t\t\tnew ErrorMsg(ErrorMsg.UNSUPPORTED_EXT_ERR,\n\t\t\t\t\t     _locator.getLineNumber(),\n\t\t\t\t\t     prefix+\":\"+local);\n\t\t\t    elem.setErrorMessage(msg);\n\t\t\t}\n\t\t    }\n\t\t}\n\t    }\n\t    if (node == null) node = new LiteralElement();\n\t}\n\tif ((node != null) && (node instanceof LiteralElement)) {\n\t    ((LiteralElement)node).setQName(qname);\n\t}\n\treturn(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CATCH", "CATCH", "IF", "IF", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [11, 13], [11, 14], [3, 15], [3, 16], [3, 17], [12, 18], [5, 19], [6, 20], [14, 21], [15, 22], [16, 23], [17, 24], [17, 25], [17, 26], [17, 27], [17, 28], [4, 29], [15, 30], [22, 31], [16, 32], [23, 33], [24, 34], [25, 35], [17, 36], [26, 37], [27, 38], [17, 39], [17, 40], [17, 41], [30, 42], [32, 43], [32, 44], [24, 45], [25, 46], [38, 47], [28, 48], [43, 49], [32, 50], [32, 51], [32, 52], [34, 53], [35, 54], [26, 55], [27, 56], [41, 57], [48, 58], [48, 59], [43, 60], [43, 61], [43, 62], [43, 63], [32, 64], [32, 65], [53, 66], [56, 67], [60, 68], [43, 69], [43, 70], [51, 71], [65, 72], [60, 73], [68, 74], [68, 75], [61, 76], [62, 77], [70, 78], [50, 79], [71, 80], [72, 81], [73, 82], [75, 83], [77, 84], [78, 85], [73, 86], [73, 87], [73, 88], [73, 89], [82, 90], [86, 91], [89, 92], [91, 93], [91, 94], [92, 95], [93, 96], [96, 97], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 11], [14, 11], [15, 3], [16, 3], [17, 3], [18, 12], [19, 5], [20, 6], [21, 14], [22, 15], [23, 16], [24, 17], [25, 17], [26, 17], [27, 17], [28, 17], [29, 4], [30, 15], [31, 22], [32, 16], [33, 23], [34, 24], [35, 25], [36, 17], [37, 26], [38, 27], [39, 17], [40, 17], [41, 17], [42, 30], [43, 32], [44, 32], [45, 24], [46, 25], [47, 38], [48, 28], [49, 43], [50, 32], [51, 32], [52, 32], [53, 34], [54, 35], [55, 26], [56, 27], [57, 41], [58, 48], [59, 48], [60, 43], [61, 43], [62, 43], [63, 43], [64, 32], [65, 32], [66, 53], [67, 56], [68, 60], [69, 43], [70, 43], [71, 51], [72, 65], [73, 60], [74, 68], [75, 68], [76, 61], [77, 62], [78, 70], [79, 50], [80, 71], [81, 72], [82, 73], [83, 75], [84, 77], [85, 78], [86, 73], [87, 73], [88, 73], [89, 73], [90, 82], [91, 86], [92, 89], [93, 91], [94, 91], [95, 92], [96, 93], [97, 96], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97]]}, {"function_name": "checkForSuperfluousAttributes", "code": "    private void checkForSuperfluousAttributes(SyntaxTreeNode node, \n\tAttributes attrs)\n    {\n\tQName qname = node.getQName();\n\tboolean isStylesheet = (node instanceof Stylesheet); \n        String[] legal = (String[]) _instructionAttrs.get(qname);\n\tif (versionIsOne && legal != null) {\n\t    int j;\n\t    final int n = attrs.getLength();\n\n\t    for (int i = 0; i < n; i++) {\n\t        final String attrQName = attrs.getQName(i);\n\n\t        if (isStylesheet && attrQName.equals(\"version\")) {\n\t            versionIsOne = attrs.getValue(i).equals(\"1.0\");\n\t        }\n\n\t        if (attrQName.startsWith(\"xml\") ||\n\t\t    attrQName.indexOf(':') > 0) continue;\n\n\t        for (j = 0; j < legal.length; j++) {\n\t            if (attrQName.equalsIgnoreCase(legal[j])) {\n\t\t        break;\n\t\t    }\t\n\t        }\n\t        if (j == legal.length) {\n\t            final ErrorMsg err = \n\t\t        new ErrorMsg(ErrorMsg.ILLEGAL_ATTRIBUTE_ERR, \n\t\t\t\tattrQName, node);\n\t\t    reportError(WARNING, err);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LOOP", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [3, 12], [4, 13], [8, 14], [11, 15], [2, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [9, 22], [17, 23], [18, 24], [18, 25], [19, 26], [19, 27], [20, 28], [8, 29], [17, 30], [18, 31], [25, 32], [27, 33], [27, 34], [28, 35], [21, 36], [17, 37], [31, 38], [33, 39], [33, 40], [34, 41], [20, 42], [35, 43], [30, 44], [31, 45], [40, 46], [42, 47], [47, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 3], [13, 4], [14, 8], [15, 11], [16, 2], [17, 8], [18, 8], [19, 8], [20, 8], [21, 8], [22, 9], [23, 17], [24, 18], [25, 18], [26, 19], [27, 19], [28, 20], [29, 8], [30, 17], [31, 18], [32, 25], [33, 27], [34, 27], [35, 28], [36, 21], [37, 17], [38, 31], [39, 33], [40, 33], [41, 34], [42, 20], [43, 35], [44, 30], [45, 31], [46, 40], [47, 42], [48, 47], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "parseExpression", "code": "    public Expression parseExpression(SyntaxTreeNode parent, String exp) {\n\treturn (Expression)parseTopLevel(parent, \"<EXPRESSION>\"+exp, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "parseExpression", "code": "    public Expression parseExpression(SyntaxTreeNode parent,\n\t\t\t\t      String attr, String def) {\n        String exp = parent.getAttribute(attr);\n        if ((exp.length() == 0) && (def != null)) exp = def;\n        return (Expression)parseTopLevel(parent, \"<EXPRESSION>\"+exp, exp);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 8], [2, 9], [7, 10], [7, 11], [3, 12], [8, 13], [10, 14], [11, 15], [11, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 1], [9, 2], [10, 7], [11, 7], [12, 3], [13, 8], [14, 10], [15, 11], [16, 11], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "parsePattern", "code": "    public Pattern parsePattern(SyntaxTreeNode parent, String pattern) {\n\treturn (Pattern)parseTopLevel(parent, \"<PATTERN>\"+pattern, pattern);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parsePattern", "code": "    public Pattern parsePattern(SyntaxTreeNode parent,\n\t\t\t\tString attr, String def) {\n        String pattern = parent.getAttribute(attr);\n\tif ((pattern.length() == 0) && (def != null)) pattern = def;\n        return (Pattern)parseTopLevel(parent, \"<PATTERN>\"+pattern, pattern);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 8], [2, 9], [7, 10], [7, 11], [3, 12], [8, 13], [10, 14], [11, 15], [11, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 1], [9, 2], [10, 7], [11, 7], [12, 3], [13, 8], [14, 10], [15, 11], [16, 11], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "parseTopLevel", "code": "    private SyntaxTreeNode parseTopLevel(SyntaxTreeNode parent, String text,\n\t\t\t\t\t String expression) {\n\tint line = 0;\n\tif (_locator != null) line = _locator.getLineNumber();\n\n\ttry {\n\t    _xpathParser.setScanner(new XPathLexer(new StringReader(text)));\n\t    Symbol result = _xpathParser.parse(expression, line);\n\t    if (result != null) {\n\t\tfinal SyntaxTreeNode node = (SyntaxTreeNode)result.value;\n\t\tif (node != null) {\n\t\t    node.setParser(this);\n\t\t    node.setParent(parent);\n\t\t    node.setLineNumber(line);\n\t\t    return node;\n\t\t}\n\t    } \n\t    reportError(ERROR, new ErrorMsg(ErrorMsg.XPATH_PARSER_ERR,\n\t\t\t\t\t    expression, parent));\n\t}\n\tcatch (Exception e) {\n\t    if (_xsltc.debug()) e.printStackTrace();\n\t    reportError(ERROR, new ErrorMsg(ErrorMsg.XPATH_PARSER_ERR,\n\t\t\t\t\t    expression, parent));\n\t}\n\n\tSyntaxTreeNode.Dummy.setParser(this);\n        return SyntaxTreeNode.Dummy; ", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [2, 11], [3, 12], [9, 13], [2, 14], [10, 15], [2, 16], [3, 17], [12, 18], [4, 19], [9, 20], [13, 21], [14, 22], [10, 23], [10, 24], [15, 25], [11, 26], [16, 27], [17, 28], [20, 29], [13, 30], [23, 31], [27, 32], [23, 33], [31, 34], [23, 35], [23, 36], [23, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 2], [12, 3], [13, 9], [14, 2], [15, 10], [16, 2], [17, 3], [18, 12], [19, 4], [20, 9], [21, 13], [22, 14], [23, 10], [24, 10], [25, 15], [26, 11], [27, 16], [28, 17], [29, 20], [30, 13], [31, 23], [32, 27], [33, 23], [34, 31], [35, 23], [36, 23], [37, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "errorsFound", "code": "    public boolean errorsFound() {\n\treturn _errors.size() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "printErrors", "code": "    public void printErrors() {\n\tfinal int size = _errors.size();\n\tif (size > 0) {\n\t    System.err.println(new ErrorMsg(ErrorMsg.COMPILER_ERROR_KEY));\n\t    for (int i = 0; i < size; i++) {\n\t\tSystem.err.println(\"  \" + _errors.elementAt(i));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [4, 7], [1, 8], [8, 9], [4, 10], [4, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 4], [8, 1], [9, 8], [10, 4], [11, 4], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "printWarnings", "code": "    public void printWarnings() {\n\tfinal int size = _warnings.size();\n\tif (size > 0) {\n\t    System.err.println(new ErrorMsg(ErrorMsg.COMPILER_WARNING_KEY));\n\t    for (int i = 0; i < size; i++) {\n\t\tSystem.err.println(\"  \" + _warnings.elementAt(i));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [4, 7], [1, 8], [8, 9], [4, 10], [4, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 4], [8, 1], [9, 8], [10, 4], [11, 4], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "reportError", "code": "    public void reportError(final int category, final ErrorMsg error) {\n\tswitch (category) {\n\tcase Constants.INTERNAL:\n\t    _errors.addElement(error);\n\t    break;\n\tcase Constants.UNSUPPORTED:\n\t    _errors.addElement(error);\n\t    break;\n\tcase Constants.FATAL:\n\t    _errors.addElement(error);\n\t    break;\n\tcase Constants.ERROR:\n\t    _errors.addElement(error);\n\t    break;\n\tcase Constants.WARNING:\n\t    _warnings.addElement(error);\n\t    break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getErrors", "code": "    public Vector getErrors() {\n\treturn _errors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getWarnings", "code": "    public Vector getWarnings() {\n\treturn _warnings;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startDocument", "code": "    public void startDocument() {\n\t_root = null;\n\t_target = null;\n\t_prefixMapping = null;\n\t_parentStack = new Stack();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "endDocument", "code": "    public void endDocument() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "startPrefixMapping", "code": "    public void startPrefixMapping(String prefix, String uri) {\n\tif (_prefixMapping == null) {\n\t    _prefixMapping = new Hashtable();\n\t}\n\t_prefixMapping.put(prefix, uri);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "endPrefixMapping", "code": "    public void endPrefixMapping(String prefix) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startElement", "code": "    public void startElement(String uri, String localname,\n\t\t\t     String qname, Attributes attributes) \n\tthrows SAXException {\n\tfinal int col = qname.lastIndexOf(':');\n\tfinal String prefix = (col == -1) ? null : qname.substring(0, col);\n\n\tSyntaxTreeNode element = makeInstance(uri, prefix, \n\t\t\t\t\tlocalname, attributes);\n\tif (element == null) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.ELEMENT_PARSE_ERR,\n\t\t\t\t\tprefix+':'+localname);\n\t    throw new SAXException(err.toString());\n\t}\n\n\tif (_root == null) {\n\t    if ((_prefixMapping == null) ||\n\t\t(_prefixMapping.containsValue(Constants.XSLT_URI) == false))\n\t\t_rootNamespaceDef = false;\n\t    else\n\t\t_rootNamespaceDef = true;\n\t    _root = element;\n\t}\n\telse {\n\t    SyntaxTreeNode parent = (SyntaxTreeNode)_parentStack.peek();\n\t    parent.addElement(element);\n\t    element.setParent(parent);\n\t}\n\telement.setAttributes((Attributes)new AttributeList(attributes));\n\telement.setPrefixMapping(_prefixMapping);\n\t\n\tif (element instanceof Stylesheet) {\n\t    getSymbolTable().setCurrentNode(element);\n\t    ((Stylesheet)element).excludeExtensionPrefixes(this);\n\t}\n\n\t_prefixMapping = null;\n\t_parentStack.push(element);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [0, 14], [0, 15], [2, 16], [3, 17], [12, 18], [2, 19], [2, 20], [16, 21], [3, 22], [3, 23], [17, 24], [4, 25], [5, 26], [6, 27], [1, 28], [15, 29], [2, 30], [2, 31], [2, 32], [20, 33], [22, 34], [26, 35], [26, 36], [26, 37], [27, 38], [28, 39], [20, 40], [20, 41], [33, 42], [33, 43], [34, 44], [23, 45], [35, 46], [37, 47], [19, 48], [40, 49], [41, 50], [42, 51], [42, 52], [43, 53], [45, 54], [54, 55], [55, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 0], [15, 0], [16, 2], [17, 3], [18, 12], [19, 2], [20, 2], [21, 16], [22, 3], [23, 3], [24, 17], [25, 4], [26, 5], [27, 6], [28, 1], [29, 15], [30, 2], [31, 2], [32, 2], [33, 20], [34, 22], [35, 26], [36, 26], [37, 26], [38, 27], [39, 28], [40, 20], [41, 20], [42, 33], [43, 33], [44, 34], [45, 23], [46, 35], [47, 37], [48, 19], [49, 40], [50, 41], [51, 42], [52, 42], [53, 43], [54, 45], [55, 54], [56, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "endElement", "code": "    public void endElement(String uri, String localname, String qname) {\n\t_parentStack.pop();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "characters", "code": "    public void characters(char[] ch, int start, int length) {\n\tString string = new String(ch, start, length);\n\tSyntaxTreeNode parent = (SyntaxTreeNode)_parentStack.peek();\n\n\tif (string.length() == 0) return;\n\n\tif (parent instanceof Text) {\n\t    ((Text)parent).setText(string);\n\t    return;\n\t}\n\n\tif (parent instanceof Stylesheet) return;\n\n\tSyntaxTreeNode bro = parent.lastChild();\n\tif ((bro != null) && (bro instanceof Text)) {\n\t    Text text = (Text)bro;\n\t    if (!text.isTextElement()) {\n\t\tif ((length > 1) || ( ((int)ch[0]) < 0x100)) {\n\t\t    text.setText(string);\n\t\t    return;\n\t\t}\n\t    }\n\t}\n\n\tparent.addElement(new Text(string));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [3, 13], [3, 14], [4, 15], [5, 16], [5, 17], [11, 18], [1, 19], [1, 20], [12, 21], [12, 22], [2, 23], [4, 24], [17, 25], [17, 26], [7, 27], [19, 28], [22, 29], [6, 30], [19, 31], [31, 32], [31, 33], [32, 34], [32, 35], [31, 36], [34, 37], [35, 38], [34, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 3], [14, 3], [15, 4], [16, 5], [17, 5], [18, 11], [19, 1], [20, 1], [21, 12], [22, 12], [23, 2], [24, 4], [25, 17], [26, 17], [27, 7], [28, 19], [29, 22], [30, 6], [31, 19], [32, 31], [33, 31], [34, 32], [35, 32], [36, 31], [37, 34], [38, 35], [39, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getTokenValue", "code": "    private String getTokenValue(String token) {\n\tfinal int start = token.indexOf('\"');\n\tfinal int stop = token.lastIndexOf('\"');\n\treturn token.substring(start+1, stop);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [3, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 3], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "processingInstruction", "code": "    public void processingInstruction(String name, String value) {\n\tif ((_target == null) && (name.equals(\"xml-stylesheet\"))) {\n\n\n\t    StringTokenizer tokens = new StringTokenizer(value);\n\t    while (tokens.hasMoreElements()) {\n\t\tString token = (String)tokens.nextElement();\n\t\tif (token.startsWith(\"href\"))\n\t\t    href = getTokenValue(token);\n\t\telse if (token.startsWith(\"media\"))\n\t\t    media = getTokenValue(token);\n\t\telse if (token.startsWith(\"title\"))\n\t\t    title = getTokenValue(token);\n\t\telse if (token.startsWith(\"charset\"))\n\t\t    charset = getTokenValue(token);\n\t    }\n\n\t    if ( ((_PImedia == null) || (_PImedia.equals(media))) &&\n\t\t ((_PItitle == null) || (_PImedia.equals(title))) &&\n\t\t ((_PIcharset == null) || (_PImedia.equals(charset))) ) {\n\t\t_target = href;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [4, 9], [5, 10], [6, 11], [8, 12], [9, 13], [10, 14], [10, 15], [6, 16], [6, 17], [7, 18], [5, 19], [14, 20], [14, 21], [15, 22], [15, 23], [16, 24], [16, 25], [21, 26], [22, 27], [22, 28], [23, 29], [23, 30], [24, 31], [24, 32], [16, 33], [25, 34], [28, 35], [30, 36], [31, 37], [31, 38], [24, 39], [32, 40], [33, 41], [17, 42], [37, 43], [31, 44], [38, 45], [39, 46], [37, 47], [43, 48], [44, 49], [47, 50], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 4], [10, 5], [11, 6], [12, 8], [13, 9], [14, 10], [15, 10], [16, 6], [17, 6], [18, 7], [19, 5], [20, 14], [21, 14], [22, 15], [23, 15], [24, 16], [25, 16], [26, 21], [27, 22], [28, 22], [29, 23], [30, 23], [31, 24], [32, 24], [33, 16], [34, 25], [35, 28], [36, 30], [37, 31], [38, 31], [39, 24], [40, 32], [41, 33], [42, 17], [43, 37], [44, 31], [45, 38], [46, 39], [47, 37], [48, 43], [49, 44], [50, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "ignorableWhitespace", "code": "    public void ignorableWhitespace(char[] ch, int start, int length) { }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "skippedEntity", "code": "    public void skippedEntity(String name) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDocumentLocator", "code": "    public void setDocumentLocator(Locator locator) {\n\t_locator = locator;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Parser", "code": "    public Parser(XSLTC xsltc) {\n\t_xsltc = xsltc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.2-1930", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/language/ExpressionType.java", "language": "java", "name": "org.apache.camel.model.language.ExpressionType", "code": "@XmlType(name = \"expressionType\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class ExpressionType {\n    @XmlAttribute\n    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)\n    @XmlID\n    private String id;\n    @XmlValue\n    private String expression;\n    @XmlTransient\n    private Predicate predicate;\n    @XmlTransient\n    private Expression expressionValue;\n\n    public static String getLabel(List<ExpressionType> expressions) {\n        CollectionStringBuffer buffer = new CollectionStringBuffer();\n        for (ExpressionType expression : expressions) {\n            buffer.append(expression.getLabel());\n        }\n        return buffer.toString();\n    }\n\n    public ExpressionType() {\n    }\n\n    public ExpressionType(String expression) {\n        this.expression = expression;\n    }\n\n    public ExpressionType(Predicate predicate) {\n        this.predicate = predicate;\n    }\n\n    public ExpressionType(Expression expression) {\n        this.expressionValue = expression;\n    }\n\n    @Override\n    public String toString() {\n        return getLanguage() + \"Expression[\" + getExpression() + \"]\";\n    }\n\n    public String getLanguage() {\n        return \"\";\n    }\n\n    public Predicate<Exchange> createPredicate(RouteContext route) {\n        if (predicate == null) {\n            CamelContext camelContext = route.getCamelContext();\n            Language language = camelContext.resolveLanguage(getLanguage());\n            predicate = language.createPredicate(getExpression());\n        }\n        return predicate;\n    }\n\n    public Expression createExpression(RouteContext routeContext) {\n        if (expressionValue == null) {\n            CamelContext camelContext = routeContext.getCamelContext();\n            Language language = camelContext.resolveLanguage(getLanguage());\n            expressionValue = language.createExpression(getExpression());\n        }\n        return expressionValue;\n    }\n\n    public String getExpression() {\n        return expression;\n    }\n\n    public void setExpression(String expression) {\n        this.expression = expression;\n    }\n\n    /**\n     * Gets the value of the id property.\n     *\n     * @return possible object is\n     *         {@link String }\n     */\n    public String getId() {\n        return id;\n    }\n\n    /**\n     * Sets the value of the id property.\n     *\n     * @param value allowed object is\n     *              {@link String }\n     */\n    public void setId(String value) {\n        this.id = value;\n    }\n\n    public Predicate getPredicate() {\n        return predicate;\n    }\n\n    public Expression getExpressionValue() {\n        return expressionValue;\n    }\n\n    /**\n     * Returns some descriptive text to describe this node\n     */\n    public String getLabel() {\n        String language = getExpression();\n        if (ObjectHelper.isNullOrBlank(language)) {\n            Predicate predicate = getPredicate();\n            if (predicate != null) {\n                return predicate.toString();\n            }\n            Expression expressionValue = getExpressionValue();\n            if (expressionValue != null) {\n                return expressionValue.toString();\n            }\n        }\n        else {\n            return language;\n        }\n        return \"\";", "functions": [{"function_name": "getLabel", "code": "    public static String getLabel(List<ExpressionType> expressions) {\n        CollectionStringBuffer buffer = new CollectionStringBuffer();\n        for (ExpressionType expression : expressions) {\n            buffer.append(expression.getLabel());\n        }\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return getLanguage() + \"Expression[\" + getExpression() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createPredicate", "code": "    public Predicate<Exchange> createPredicate(RouteContext route) {\n        if (predicate == null) {\n            CamelContext camelContext = route.getCamelContext();\n            Language language = camelContext.resolveLanguage(getLanguage());\n            predicate = language.createPredicate(getExpression());\n        }\n        return predicate;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [2, 8], [8, 9], [5, 10], [6, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 2], [9, 8], [10, 5], [11, 6], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createExpression", "code": "    public Expression createExpression(RouteContext routeContext) {\n        if (expressionValue == null) {\n            CamelContext camelContext = routeContext.getCamelContext();\n            Language language = camelContext.resolveLanguage(getLanguage());\n            expressionValue = language.createExpression(getExpression());\n        }\n        return expressionValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [2, 8], [8, 9], [5, 10], [6, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 2], [9, 8], [10, 5], [11, 6], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getExpression", "code": "    public String getExpression() {\n        return expression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExpression", "code": "    public void setExpression(String expression) {\n        this.expression = expression;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getId", "code": "    public String getId() {\n        return id;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setId", "code": "    public void setId(String value) {\n        this.id = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPredicate", "code": "    public Predicate getPredicate() {\n        return predicate;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExpressionValue", "code": "    public Expression getExpressionValue() {\n        return expressionValue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLabel", "code": "    public String getLabel() {\n        String language = getExpression();\n        if (ObjectHelper.isNullOrBlank(language)) {\n            Predicate predicate = getPredicate();\n            if (predicate != null) {\n                return predicate.toString();\n            }\n            Expression expressionValue = getExpressionValue();\n            if (expressionValue != null) {\n                return expressionValue.toString();\n            }\n        }\n        else {\n            return language;\n        }\n        return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [3, 11], [7, 12], [9, 13], [7, 14], [12, 15], [8, 16], [9, 17], [13, 18], [10, 19], [14, 20], [17, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 3], [12, 7], [13, 9], [14, 7], [15, 12], [16, 8], [17, 9], [18, 13], [19, 10], [20, 14], [21, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "ExpressionType", "code": "    public ExpressionType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ExpressionType", "code": "    public ExpressionType(String expression) {\n        this.expression = expression;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ExpressionType", "code": "    public ExpressionType(Predicate predicate) {\n        this.predicate = predicate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ExpressionType", "code": "    public ExpressionType(Expression expression) {\n        this.expressionValue = expression;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.2-1828", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/Aggregator.java", "language": "java", "name": "org.apache.camel.processor.Aggregator", "code": "public class Aggregator extends BatchProcessor {\n    public Aggregator(Endpoint endpoint, Processor processor, Expression correlationExpression,\n                      AggregationStrategy aggregationStrategy) {\n        this(endpoint, processor, new AggregationCollection(correlationExpression, aggregationStrategy));\n    }\n\n    public Aggregator(Endpoint endpoint, Processor processor, AggregationCollection collection) {\n        super(endpoint, processor, collection);\n    }\n\n    @Override\n    public String toString() {\n        return \"Aggregator[to: \" + getProcessor() + \"]\";", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Aggregator[to: \" + getProcessor() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "Aggregator", "code": "    public Aggregator(Endpoint endpoint, Processor processor, Expression correlationExpression,\n                      AggregationStrategy aggregationStrategy) {\n        this(endpoint, processor, new AggregationCollection(correlationExpression, aggregationStrategy));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Aggregator", "code": "    public Aggregator(Endpoint endpoint, Processor processor, AggregationCollection collection) {\n        super(endpoint, processor, collection);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "ant-1.7-1022", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/bzip2/CBZip2OutputStream.java", "language": "java", "name": "org.apache.tools.bzip2.CBZip2OutputStream", "code": "public class CBZip2OutputStream extends OutputStream implements BZip2Constants {\n    protected static final int SETMASK = (1 << 21);\n    protected static final int CLEARMASK = (~SETMASK);\n    protected static final int GREATER_ICOST = 15;\n    protected static final int LESSER_ICOST = 0;\n    protected static final int SMALL_THRESH = 20;\n    protected static final int DEPTH_THRESH = 10;\n\n    /*\n      If you are ever unlucky/improbable enough\n      to get a stack overflow whilst sorting,\n      increase the following constant and try\n      again.  In practice I have never seen the\n      stack go above 27 elems, so the following\n      limit seems very generous.\n    */\n    protected static final int QSORT_STACK_SIZE = 1000;\n\n    private static void panic() {\n        System.out.println(\"panic\");\n    }\n\n    private void makeMaps() {\n        int i;\n        nInUse = 0;\n        for (i = 0; i < 256; i++) {\n            if (inUse[i]) {\n                seqToUnseq[nInUse] = (char) i;\n                unseqToSeq[i] = (char) nInUse;\n                nInUse++;\n            }\n        }\n    }\n\n    protected static void hbMakeCodeLengths(char[] len, int[] freq,\n                                            int alphaSize, int maxLen) {\n        /*\n          Nodes and heap entries run from 1.  Entry 0\n          for both the heap and nodes is a sentinel.\n        */\n        int nNodes, nHeap, n1, n2, i, j, k;\n        boolean  tooLong;\n\n        int[] heap = new int[MAX_ALPHA_SIZE + 2];\n        int[] weight = new int[MAX_ALPHA_SIZE * 2];\n        int[] parent = new int[MAX_ALPHA_SIZE * 2];\n\n        for (i = 0; i < alphaSize; i++) {\n            weight[i + 1] = (freq[i] == 0 ? 1 : freq[i]) << 8;\n        }\n\n        while (true) {\n            nNodes = alphaSize;\n            nHeap = 0;\n\n            heap[0] = 0;\n            weight[0] = 0;\n            parent[0] = -2;\n\n            for (i = 1; i <= alphaSize; i++) {\n                parent[i] = -1;\n                nHeap++;\n                heap[nHeap] = i;\n                {\n                    int zz, tmp;\n                    zz = nHeap;\n                    tmp = heap[zz];\n                    while (weight[tmp] < weight[heap[zz >> 1]]) {\n                        heap[zz] = heap[zz >> 1];\n                        zz >>= 1;\n                    }\n                    heap[zz] = tmp;\n                }\n            }\n            if (!(nHeap < (MAX_ALPHA_SIZE + 2))) {\n                panic();\n            }\n\n            while (nHeap > 1) {\n                n1 = heap[1];\n                heap[1] = heap[nHeap];\n                nHeap--;\n                {\n                    int zz = 0, yy = 0, tmp = 0;\n                    zz = 1;\n                    tmp = heap[zz];\n                    while (true) {\n                        yy = zz << 1;\n                        if (yy > nHeap) {\n                            break;\n                        }\n                        if (yy < nHeap\n                            && weight[heap[yy + 1]] < weight[heap[yy]]) {\n                            yy++;\n                        }\n                        if (weight[tmp] < weight[heap[yy]]) {\n                            break;\n                        }\n                        heap[zz] = heap[yy];\n                        zz = yy;\n                    }\n                    heap[zz] = tmp;\n                }\n                n2 = heap[1];\n                heap[1] = heap[nHeap];\n                nHeap--;\n                {\n                    int zz = 0, yy = 0, tmp = 0;\n                    zz = 1;\n                    tmp = heap[zz];\n                    while (true) {\n                        yy = zz << 1;\n                        if (yy > nHeap) {\n                            break;\n                        }\n                        if (yy < nHeap\n                            && weight[heap[yy + 1]] < weight[heap[yy]]) {\n                            yy++;\n                        }\n                        if (weight[tmp] < weight[heap[yy]]) {\n                            break;\n                        }\n                        heap[zz] = heap[yy];\n                        zz = yy;\n                    }\n                    heap[zz] = tmp;\n                }\n                nNodes++;\n                parent[n1] = parent[n2] = nNodes;\n\n                weight[nNodes] = ((weight[n1] & 0xffffff00)\n                                  + (weight[n2] & 0xffffff00))\n                    | (1 + (((weight[n1] & 0x000000ff)\n                            > (weight[n2] & 0x000000ff))\n                            ? (weight[n1] & 0x000000ff)\n                            : (weight[n2] & 0x000000ff)));\n\n                parent[nNodes] = -1;\n                nHeap++;\n                heap[nHeap] = nNodes;\n                {\n                    int zz = 0, tmp = 0;\n                    zz = nHeap;\n                    tmp = heap[zz];\n                    while (weight[tmp] < weight[heap[zz >> 1]]) {\n                        heap[zz] = heap[zz >> 1];\n                        zz >>= 1;\n                    }\n                    heap[zz] = tmp;\n                }\n            }\n            if (!(nNodes < (MAX_ALPHA_SIZE * 2))) {\n                panic();\n            }\n\n            tooLong = false;\n            for (i = 1; i <= alphaSize; i++) {\n                j = 0;\n                k = i;\n                while (parent[k] >= 0) {\n                    k = parent[k];\n                    j++;\n                }\n                len[i - 1] = (char) j;\n                if (j > maxLen) {\n                    tooLong = true;\n                }\n            }\n\n            if (!tooLong) {\n                break;\n            }\n\n            for (i = 1; i < alphaSize; i++) {\n                j = weight[i] >> 8;\n                j = 1 + (j / 2);\n                weight[i] = j << 8;\n            }\n        }\n    }\n\n    /*\n      index of the last char in the block, so\n      the block size == last + 1.\n    */\n    int last;\n\n    /*\n      index in zptr[] of original string after sorting.\n    */\n    int origPtr;\n\n    /*\n      always: in the range 0 .. 9.\n      The current block size is 100000 * this number.\n    */\n    int blockSize100k;\n\n    boolean blockRandomised;\n\n    int bytesOut;\n    int bsBuff;\n    int bsLive;\n    CRC mCrc = new CRC();\n\n    private boolean[] inUse = new boolean[256];\n    private int nInUse;\n\n    private char[] seqToUnseq = new char[256];\n    private char[] unseqToSeq = new char[256];\n\n    private char[] selector = new char[MAX_SELECTORS];\n    private char[] selectorMtf = new char[MAX_SELECTORS];\n\n    private char[] block;\n    private int[] quadrant;\n    private int[] zptr;\n    private short[] szptr;\n    private int[] ftab;\n\n    private int nMTF;\n\n    private int[] mtfFreq = new int[MAX_ALPHA_SIZE];\n\n    /*\n     * Used when sorting.  If too many long comparisons\n     * happen, we stop sorting, randomise the block\n     * slightly, and try again.\n     */\n    private int workFactor;\n    private int workDone;\n    private int workLimit;\n    private boolean firstAttempt;\n    private int nBlocksRandomised;\n\n    private int currentChar = -1;\n    private int runLength = 0;\n\n    public CBZip2OutputStream(OutputStream inStream) throws IOException {\n        this(inStream, 9);\n    }\n\n    public CBZip2OutputStream(OutputStream inStream, int inBlockSize)\n        throws IOException {\n        block = null;\n        quadrant = null;\n        zptr = null;\n        ftab = null;\n\n        bsSetStream(inStream);\n\n        workFactor = 50;\n        if (inBlockSize > 9) {\n            inBlockSize = 9;\n        }\n        if (inBlockSize < 1) {\n            inBlockSize = 1;\n        }\n        blockSize100k = inBlockSize;\n        allocateCompressStructures();\n        initialize();\n        initBlock();\n    }\n\n    /**\n     *\n     * modified by Oliver Merkel, 010128\n     *\n     */\n    public void write(int bv) throws IOException {\n        int b = (256 + bv) % 256;\n        if (currentChar != -1) {\n            if (currentChar == b) {\n                runLength++;\n                if (runLength > 254) {\n                    writeRun();\n                    currentChar = -1;\n                    runLength = 0;\n                }\n            } else {\n                writeRun();\n                runLength = 1;\n                currentChar = b;\n            }\n        } else {\n            currentChar = b;\n            runLength++;\n        }\n    }\n\n    private void writeRun() throws IOException {\n        if (last < allowableBlockSize) {\n            inUse[currentChar] = true;\n            for (int i = 0; i < runLength; i++) {\n                mCrc.updateCRC((char) currentChar);\n            }\n            switch (runLength) {\n            case 1:\n                last++;\n                block[last + 1] = (char) currentChar;\n                break;\n            case 2:\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                break;\n            case 3:\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                break;\n            default:\n                inUse[runLength - 4] = true;\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) (runLength - 4);\n                break;\n            }\n        } else {\n            endBlock();\n            initBlock();\n            writeRun();\n        }\n    }\n\n    boolean closed = false;\n\n    protected void finalize() throws Throwable {\n        close();\n        super.finalize();\n    }\n\n    public void close() throws IOException {\n        if (closed) {\n            return;\n        }\n\n        if (runLength > 0) {\n            writeRun();\n        }\n        currentChar = -1;\n        endBlock();\n        endCompression();\n        closed = true;\n        super.close();\n        bsStream.close();\n    }\n\n    public void flush() throws IOException {\n        super.flush();\n        bsStream.flush();\n    }\n\n    private int blockCRC, combinedCRC;\n\n    private void initialize() throws IOException {\n        bytesOut = 0;\n        nBlocksRandomised = 0;\n\n        /* Write `magic' bytes h indicating file-format == huffmanised,\n           followed by a digit indicating blockSize100k.\n        */\n        bsPutUChar('h');\n        bsPutUChar('0' + blockSize100k);\n\n        combinedCRC = 0;\n    }\n\n    private int allowableBlockSize;\n\n    private void initBlock() {\n        mCrc.initialiseCRC();\n        last = -1;\n\n        for (int i = 0; i < 256; i++) {\n            inUse[i] = false;\n        }\n\n        /* 20 is just a paranoia constant */\n        allowableBlockSize = baseBlockSize * blockSize100k - 20;\n    }\n\n    private void endBlock() throws IOException {\n        blockCRC = mCrc.getFinalCRC();\n        combinedCRC = (combinedCRC << 1) | (combinedCRC >>> 31);\n        combinedCRC ^= blockCRC;\n\n        /* sort the block and establish posn of original string */\n        doReversibleTransformation();\n\n        /*\n          A 6-byte block header, the value chosen arbitrarily\n          as 0x314159265359 :-).  A 32 bit value does not really\n          give a strong enough guarantee that the value will not\n          appear by chance in the compressed datastream.  Worst-case\n          probability of this event, for a 900k block, is about\n          2.0e-3 for 32 bits, 1.0e-5 for 40 bits and 4.0e-8 for 48 bits.\n          For a compressed file of size 100Gb -- about 100000 blocks --\n          only a 48-bit marker will do.  NB: normal compression/\n          decompression do *not* rely on these statistical properties.\n          They are only important when trying to recover blocks from\n          damaged files.\n        */\n        bsPutUChar(0x31);\n        bsPutUChar(0x41);\n        bsPutUChar(0x59);\n        bsPutUChar(0x26);\n        bsPutUChar(0x53);\n        bsPutUChar(0x59);\n\n        /* Now the block's CRC, so it is in a known place. */\n        bsPutint(blockCRC);\n\n        /* Now a single bit indicating randomisation. */\n        if (blockRandomised) {\n            bsW(1, 1);\n            nBlocksRandomised++;\n        } else {\n            bsW(1, 0);\n        }\n\n        /* Finally, block's contents proper. */\n        moveToFrontCodeAndSend();\n    }\n\n    private void endCompression() throws IOException {\n        /*\n          Now another magic 48-bit number, 0x177245385090, to\n          indicate the end of the last block.  (sqrt(pi), if\n          you want to know.  I did want to use e, but it contains\n          too much repetition -- 27 18 28 18 28 46 -- for me\n          to feel statistically comfortable.  Call me paranoid.)\n        */\n        bsPutUChar(0x17);\n        bsPutUChar(0x72);\n        bsPutUChar(0x45);\n        bsPutUChar(0x38);\n        bsPutUChar(0x50);\n        bsPutUChar(0x90);\n\n        bsPutint(combinedCRC);\n\n        bsFinishedWithStream();\n    }\n\n    private void hbAssignCodes (int[] code, char[] length, int minLen,\n                                int maxLen, int alphaSize) {\n        int n, vec, i;\n\n        vec = 0;\n        for (n = minLen; n <= maxLen; n++) {\n            for (i = 0; i < alphaSize; i++) {\n                if (length[i] == n) {\n                    code[i] = vec;\n                    vec++;\n                }\n            };\n            vec <<= 1;\n        }\n    }\n\n    private void bsSetStream(OutputStream f) {\n        bsStream = f;\n        bsLive = 0;\n        bsBuff = 0;\n        bytesOut = 0;\n    }\n\n    private void bsFinishedWithStream() throws IOException {\n        while (bsLive > 0) {\n            int ch = (bsBuff >> 24);\n            try {\n            } catch (IOException e) {\n                throw  e;\n            }\n            bsBuff <<= 8;\n            bsLive -= 8;\n            bytesOut++;\n        }\n    }\n\n    private void bsW(int n, int v) throws IOException {\n        while (bsLive >= 8) {\n            int ch = (bsBuff >> 24);\n            try {\n            } catch (IOException e) {\n                throw e;\n            }\n            bsBuff <<= 8;\n            bsLive -= 8;\n            bytesOut++;\n        }\n        bsBuff |= (v << (32 - bsLive - n));\n        bsLive += n;\n    }\n\n    private void bsPutUChar(int c) throws IOException {\n        bsW(8, c);\n    }\n\n    private void bsPutint(int u) throws IOException {\n        bsW(8, (u >> 24) & 0xff);\n        bsW(8, (u >> 16) & 0xff);\n        bsW(8, (u >>  8) & 0xff);\n        bsW(8,  u        & 0xff);\n    }\n\n    private void bsPutIntVS(int numBits, int c) throws IOException {\n        bsW(numBits, c);\n    }\n\n    private void sendMTFValues() throws IOException {\n        char len[][] = new char[N_GROUPS][MAX_ALPHA_SIZE];\n\n        int v, t, i, j, gs, ge, totc, bt, bc, iter;\n        int nSelectors = 0, alphaSize, minLen, maxLen, selCtr;\n        int nGroups, nBytes;\n\n        alphaSize = nInUse + 2;\n        for (t = 0; t < N_GROUPS; t++) {\n            for (v = 0; v < alphaSize; v++) {\n                len[t][v] = (char) GREATER_ICOST;\n            }\n        }\n\n        /* Decide how many coding tables to use */\n        if (nMTF <= 0) {\n            panic();\n        }\n\n        if (nMTF < 200) {\n            nGroups = 2;\n        } else if (nMTF < 600) {\n            nGroups = 3;\n        } else if (nMTF < 1200) {\n            nGroups = 4;\n        } else if (nMTF < 2400) {\n            nGroups = 5;\n        } else {\n            nGroups = 6;\n        }\n\n        /* Generate an initial set of coding tables */ {\n            int nPart, remF, tFreq, aFreq;\n\n            nPart = nGroups;\n            remF  = nMTF;\n            gs = 0;\n            while (nPart > 0) {\n                tFreq = remF / nPart;\n                ge = gs - 1;\n                aFreq = 0;\n                while (aFreq < tFreq && ge < alphaSize - 1) {\n                    ge++;\n                    aFreq += mtfFreq[ge];\n                }\n\n                if (ge > gs && nPart != nGroups && nPart != 1\n                    && ((nGroups - nPart) % 2 == 1)) {\n                    aFreq -= mtfFreq[ge];\n                    ge--;\n                }\n\n                for (v = 0; v < alphaSize; v++) {\n                    if (v >= gs && v <= ge) {\n                        len[nPart - 1][v] = (char) LESSER_ICOST;\n                    } else {\n                        len[nPart - 1][v] = (char) GREATER_ICOST;\n                    }\n                }\n\n                nPart--;\n                gs = ge + 1;\n                remF -= aFreq;\n            }\n        }\n\n        int[][] rfreq = new int[N_GROUPS][MAX_ALPHA_SIZE];\n        int[] fave = new int[N_GROUPS];\n        short[] cost = new short[N_GROUPS];\n        /*\n          Iterate up to N_ITERS times to improve the tables.\n        */\n        for (iter = 0; iter < N_ITERS; iter++) {\n            for (t = 0; t < nGroups; t++) {\n                fave[t] = 0;\n            }\n\n            for (t = 0; t < nGroups; t++) {\n                for (v = 0; v < alphaSize; v++) {\n                    rfreq[t][v] = 0;\n                }\n            }\n\n            nSelectors = 0;\n            totc = 0;\n            gs = 0;\n            while (true) {\n\n                /* Set group start & end marks. */\n                if (gs >= nMTF) {\n                    break;\n                }\n                ge = gs + G_SIZE - 1;\n                if (ge >= nMTF) {\n                    ge = nMTF - 1;\n                }\n\n                /*\n                  Calculate the cost of this group as coded\n                  by each of the coding tables.\n                */\n                for (t = 0; t < nGroups; t++) {\n                    cost[t] = 0;\n                }\n\n                if (nGroups == 6) {\n                    short cost0, cost1, cost2, cost3, cost4, cost5;\n                    cost0 = cost1 = cost2 = cost3 = cost4 = cost5 = 0;\n                    for (i = gs; i <= ge; i++) {\n                        short icv = szptr[i];\n                        cost0 += len[0][icv];\n                        cost1 += len[1][icv];\n                        cost2 += len[2][icv];\n                        cost3 += len[3][icv];\n                        cost4 += len[4][icv];\n                        cost5 += len[5][icv];\n                    }\n                    cost[0] = cost0;\n                    cost[1] = cost1;\n                    cost[2] = cost2;\n                    cost[3] = cost3;\n                    cost[4] = cost4;\n                    cost[5] = cost5;\n                } else {\n                    for (i = gs; i <= ge; i++) {\n                        short icv = szptr[i];\n                        for (t = 0; t < nGroups; t++) {\n                            cost[t] += len[t][icv];\n                        }\n                    }\n                }\n\n                /*\n                  Find the coding table which is best for this group,\n                  and record its identity in the selector table.\n                */\n                bc = 999999999;\n                bt = -1;\n                for (t = 0; t < nGroups; t++) {\n                    if (cost[t] < bc) {\n                        bc = cost[t];\n                        bt = t;\n                    }\n                };\n                totc += bc;\n                fave[bt]++;\n                selector[nSelectors] = (char) bt;\n                nSelectors++;\n\n                /*\n                  Increment the symbol frequencies for the selected table.\n                */\n                for (i = gs; i <= ge; i++) {\n                    rfreq[bt][szptr[i]]++;\n                }\n\n                gs = ge + 1;\n            }\n\n            /*\n              Recompute the tables based on the accumulated frequencies.\n            */\n            for (t = 0; t < nGroups; t++) {\n                hbMakeCodeLengths(len[t], rfreq[t], alphaSize, 20);\n            }\n        }\n\n        rfreq = null;\n        fave = null;\n        cost = null;\n\n        if (!(nGroups < 8)) {\n            panic();\n        }\n        if (!(nSelectors < 32768 && nSelectors <= (2 + (900000 / G_SIZE)))) {\n            panic();\n        }\n\n\n        /* Compute MTF values for the selectors. */\n        {\n            char[] pos = new char[N_GROUPS];\n            char ll_i, tmp2, tmp;\n            for (i = 0; i < nGroups; i++) {\n                pos[i] = (char) i;\n            }\n            for (i = 0; i < nSelectors; i++) {\n                ll_i = selector[i];\n                j = 0;\n                tmp = pos[j];\n                while (ll_i != tmp) {\n                    j++;\n                    tmp2 = tmp;\n                    tmp = pos[j];\n                    pos[j] = tmp2;\n                }\n                pos[0] = tmp;\n                selectorMtf[i] = (char) j;\n            }\n        }\n\n        int[][] code = new int[N_GROUPS][MAX_ALPHA_SIZE];\n\n        /* Assign actual codes for the tables. */\n        for (t = 0; t < nGroups; t++) {\n            minLen = 32;\n            maxLen = 0;\n            for (i = 0; i < alphaSize; i++) {\n                if (len[t][i] > maxLen) {\n                    maxLen = len[t][i];\n                }\n                if (len[t][i] < minLen) {\n                    minLen = len[t][i];\n                }\n            }\n            if (maxLen > 20) {\n                panic();\n            }\n            if (minLen < 1) {\n                panic();\n            }\n            hbAssignCodes(code[t], len[t], minLen, maxLen, alphaSize);\n        }\n\n        /* Transmit the mapping table. */\n        {\n            boolean[] inUse16 = new boolean[16];\n            for (i = 0; i < 16; i++) {\n                inUse16[i] = false;\n                for (j = 0; j < 16; j++) {\n                    if (inUse[i * 16 + j]) {\n                        inUse16[i] = true;\n                    }\n                }\n            }\n\n            nBytes = bytesOut;\n            for (i = 0; i < 16; i++) {\n                if (inUse16[i]) {\n                    bsW(1, 1);\n                } else {\n                    bsW(1, 0);\n                }\n            }\n\n            for (i = 0; i < 16; i++) {\n                if (inUse16[i]) {\n                    for (j = 0; j < 16; j++) {\n                        if (inUse[i * 16 + j]) {\n                            bsW(1, 1);\n                        } else {\n                            bsW(1, 0);\n                        }\n                    }\n                }\n            }\n\n        }\n\n        /* Now the selectors. */\n        nBytes = bytesOut;\n        bsW (3, nGroups);\n        bsW (15, nSelectors);\n        for (i = 0; i < nSelectors; i++) {\n            for (j = 0; j < selectorMtf[i]; j++) {\n                bsW(1, 1);\n            }\n            bsW(1, 0);\n        }\n\n        /* Now the coding tables. */\n        nBytes = bytesOut;\n\n        for (t = 0; t < nGroups; t++) {\n            int curr = len[t][0];\n            bsW(5, curr);\n            for (i = 0; i < alphaSize; i++) {\n                while (curr < len[t][i]) {\n                    bsW(2, 2);\n                    curr++; /* 10 */\n                }\n                while (curr > len[t][i]) {\n                    bsW(2, 3);\n                    curr--; /* 11 */\n                }\n                bsW (1, 0);\n            }\n        }\n\n        /* And finally, the block data proper */\n        nBytes = bytesOut;\n        selCtr = 0;\n        gs = 0;\n        while (true) {\n            if (gs >= nMTF) {\n                break;\n            }\n            ge = gs + G_SIZE - 1;\n            if (ge >= nMTF) {\n                ge = nMTF - 1;\n            }\n            for (i = gs; i <= ge; i++) {\n                bsW(len[selector[selCtr]][szptr[i]],\n                    code[selector[selCtr]][szptr[i]]);\n            }\n\n            gs = ge + 1;\n            selCtr++;\n        }\n        if (!(selCtr == nSelectors)) {\n            panic();\n        }\n    }\n\n    private void moveToFrontCodeAndSend () throws IOException {\n        bsPutIntVS(24, origPtr);\n        generateMTFValues();\n        sendMTFValues();\n    }\n\n    private OutputStream bsStream;\n\n    private void simpleSort(int lo, int hi, int d) {\n        int i, j, h, bigN, hp;\n        int v;\n\n        bigN = hi - lo + 1;\n        if (bigN < 2) {\n            return;\n        }\n\n        hp = 0;\n        while (incs[hp] < bigN) {\n            hp++;\n        }\n        hp--;\n\n        for (; hp >= 0; hp--) {\n            h = incs[hp];\n\n            i = lo + h;\n            while (true) {\n                /* copy 1 */\n                if (i > hi) {\n                    break;\n                }\n                v = zptr[i];\n                j = i;\n                while (fullGtU(zptr[j - h] + d, v + d)) {\n                    zptr[j] = zptr[j - h];\n                    j = j - h;\n                    if (j <= (lo + h - 1)) {\n                        break;\n                    }\n                }\n                zptr[j] = v;\n                i++;\n\n                /* copy 2 */\n                if (i > hi) {\n                    break;\n                }\n                v = zptr[i];\n                j = i;\n                while (fullGtU(zptr[j - h] + d, v + d)) {\n                    zptr[j] = zptr[j - h];\n                    j = j - h;\n                    if (j <= (lo + h - 1)) {\n                        break;\n                    }\n                }\n                zptr[j] = v;\n                i++;\n\n                /* copy 3 */\n                if (i > hi) {\n                    break;\n                }\n                v = zptr[i];\n                j = i;\n                while (fullGtU(zptr[j - h] + d, v + d)) {\n                    zptr[j] = zptr[j - h];\n                    j = j - h;\n                    if (j <= (lo + h - 1)) {\n                        break;\n                    }\n                }\n                zptr[j] = v;\n                i++;\n\n                if (workDone > workLimit && firstAttempt) {\n                    return;\n                }\n            }\n        }\n    }\n\n    private void vswap(int p1, int p2, int n) {\n        int temp = 0;\n        while (n > 0) {\n            temp = zptr[p1];\n            zptr[p1] = zptr[p2];\n            zptr[p2] = temp;\n            p1++;\n            p2++;\n            n--;\n        }\n    }\n\n    private char med3(char a, char b, char c) {\n        char t;\n        if (a > b) {\n            t = a;\n            a = b;\n            b = t;\n        }\n        if (b > c) {\n            t = b;\n            b = c;\n            c = t;\n        }\n        if (a > b) {\n            b = a;\n        }\n        return b;\n    }\n\n    private static class StackElem {\n        int ll;\n        int hh;\n        int dd;\n    }\n\n    private void qSort3(int loSt, int hiSt, int dSt) {\n        int unLo, unHi, ltLo, gtHi, med, n, m;\n        int sp, lo, hi, d;\n        StackElem[] stack = new StackElem[QSORT_STACK_SIZE];\n        for (int count = 0; count < QSORT_STACK_SIZE; count++) {\n            stack[count] = new StackElem();\n        }\n\n        sp = 0;\n\n        stack[sp].ll = loSt;\n        stack[sp].hh = hiSt;\n        stack[sp].dd = dSt;\n        sp++;\n\n        while (sp > 0) {\n            if (sp >= QSORT_STACK_SIZE) {\n                panic();\n            }\n\n            sp--;\n            lo = stack[sp].ll;\n            hi = stack[sp].hh;\n            d = stack[sp].dd;\n\n            if (hi - lo < SMALL_THRESH || d > DEPTH_THRESH) {\n                simpleSort(lo, hi, d);\n                if (workDone > workLimit && firstAttempt) {\n                    return;\n                }\n                continue;\n            }\n\n            med = med3(block[zptr[lo] + d + 1],\n                       block[zptr[hi            ] + d  + 1],\n                       block[zptr[(lo + hi) >> 1] + d + 1]);\n\n            unLo = ltLo = lo;\n            unHi = gtHi = hi;\n\n            while (true) {\n                while (true) {\n                    if (unLo > unHi) {\n                        break;\n                    }\n                    n = ((int) block[zptr[unLo] + d + 1]) - med;\n                    if (n == 0) {\n                        int temp = 0;\n                        temp = zptr[unLo];\n                        zptr[unLo] = zptr[ltLo];\n                        zptr[ltLo] = temp;\n                        ltLo++;\n                        unLo++;\n                        continue;\n                    };\n                    if (n >  0) {\n                        break;\n                    }\n                    unLo++;\n                }\n                while (true) {\n                    if (unLo > unHi) {\n                        break;\n                    }\n                    n = ((int) block[zptr[unHi] + d + 1]) - med;\n                    if (n == 0) {\n                        int temp = 0;\n                        temp = zptr[unHi];\n                        zptr[unHi] = zptr[gtHi];\n                        zptr[gtHi] = temp;\n                        gtHi--;\n                        unHi--;\n                        continue;\n                    };\n                    if (n <  0) {\n                        break;\n                    }\n                    unHi--;\n                }\n                if (unLo > unHi) {\n                    break;\n                }\n                int temp = 0;\n                temp = zptr[unLo];\n                zptr[unLo] = zptr[unHi];\n                zptr[unHi] = temp;\n                unLo++;\n                unHi--;\n            }\n\n            if (gtHi < ltLo) {\n                stack[sp].ll = lo;\n                stack[sp].hh = hi;\n                stack[sp].dd = d + 1;\n                sp++;\n                continue;\n            }\n\n            n = ((ltLo - lo) < (unLo - ltLo)) ? (ltLo - lo) : (unLo - ltLo);\n            vswap(lo, unLo - n, n);\n            m = ((hi - gtHi) < (gtHi - unHi)) ? (hi - gtHi) : (gtHi - unHi);\n            vswap(unLo, hi - m + 1, m);\n\n            n = lo + unLo - ltLo - 1;\n            m = hi - (gtHi - unHi) + 1;\n\n            stack[sp].ll = lo;\n            stack[sp].hh = n;\n            stack[sp].dd = d;\n            sp++;\n\n            stack[sp].ll = n + 1;\n            stack[sp].hh = m - 1;\n            stack[sp].dd = d + 1;\n            sp++;\n\n            stack[sp].ll = m;\n            stack[sp].hh = hi;\n            stack[sp].dd = d;\n            sp++;\n        }\n    }\n\n    private void mainSort() {\n        int i, j, ss, sb;\n        int[] runningOrder = new int[256];\n        int[] copy = new int[256];\n        boolean[] bigDone = new boolean[256];\n        int c1, c2;\n        int numQSorted;\n\n        /*\n          In the various block-sized structures, live data runs\n          from 0 to last+NUM_OVERSHOOT_BYTES inclusive.  First,\n          set up the overshoot area for block.\n        */\n\n        for (i = 0; i < NUM_OVERSHOOT_BYTES; i++) {\n            block[last + i + 2] = block[(i % (last + 1)) + 1];\n        }\n        for (i = 0; i <= last + NUM_OVERSHOOT_BYTES; i++) {\n            quadrant[i] = 0;\n        }\n\n        block[0] = (char) (block[last + 1]);\n\n        if (last < 4000) {\n            /*\n              Use simpleSort(), since the full sorting mechanism\n              has quite a large constant overhead.\n            */\n            for (i = 0; i <= last; i++) {\n                zptr[i] = i;\n            }\n            firstAttempt = false;\n            workDone = workLimit = 0;\n            simpleSort(0, last, 0);\n        } else {\n            numQSorted = 0;\n            for (i = 0; i <= 255; i++) {\n                bigDone[i] = false;\n            }\n\n            for (i = 0; i <= 65536; i++) {\n                ftab[i] = 0;\n            }\n\n            c1 = block[0];\n            for (i = 0; i <= last; i++) {\n                c2 = block[i + 1];\n                ftab[(c1 << 8) + c2]++;\n                c1 = c2;\n            }\n\n            for (i = 1; i <= 65536; i++) {\n                ftab[i] += ftab[i - 1];\n            }\n\n            c1 = block[1];\n            for (i = 0; i < last; i++) {\n                c2 = block[i + 2];\n                j = (c1 << 8) + c2;\n                c1 = c2;\n                ftab[j]--;\n                zptr[ftab[j]] = i;\n            }\n\n            j = ((block[last + 1]) << 8) + (block[1]);\n            ftab[j]--;\n            zptr[ftab[j]] = last;\n\n            /*\n              Now ftab contains the first loc of every small bucket.\n              Calculate the running order, from smallest to largest\n              big bucket.\n            */\n\n            for (i = 0; i <= 255; i++) {\n                runningOrder[i] = i;\n            }\n\n            {\n                int vv;\n                int h = 1;\n                do {\n                    h = 3 * h + 1;\n                }\n                while (h <= 256);\n                do {\n                    h = h / 3;\n                    for (i = h; i <= 255; i++) {\n                        vv = runningOrder[i];\n                        j = i;\n                        while ((ftab[((runningOrder[j - h]) + 1) << 8]\n                                - ftab[(runningOrder[j - h]) << 8])\n                                > (ftab[((vv) + 1) << 8] - ftab[(vv) << 8])) {\n                            runningOrder[j] = runningOrder[j - h];\n                            j = j - h;\n                            if (j <= (h - 1)) {\n                                break;\n                            }\n                        }\n                        runningOrder[j] = vv;\n                    }\n                } while (h != 1);\n            }\n\n            /*\n              The main sorting loop.\n            */\n            for (i = 0; i <= 255; i++) {\n\n                /*\n                  Process big buckets, starting with the least full.\n                */\n                ss = runningOrder[i];\n\n                /*\n                  Complete the big bucket [ss] by quicksorting\n                  any unsorted small buckets [ss, j].  Hopefully\n                  previous pointer-scanning phases have already\n                  completed many of the small buckets [ss, j], so\n                  we don't have to sort them at all.\n                */\n                for (j = 0; j <= 255; j++) {\n                    sb = (ss << 8) + j;\n                    if (!((ftab[sb] & SETMASK) == SETMASK)) {\n                        int lo = ftab[sb] & CLEARMASK;\n                        int hi = (ftab[sb + 1] & CLEARMASK) - 1;\n                        if (hi > lo) {\n                            qSort3(lo, hi, 2);\n                            numQSorted += (hi - lo + 1);\n                            if (workDone > workLimit && firstAttempt) {\n                                return;\n                            }\n                        }\n                        ftab[sb] |= SETMASK;\n                    }\n                }\n\n                /*\n                  The ss big bucket is now done.  Record this fact,\n                  and update the quadrant descriptors.  Remember to\n                  update quadrants in the overshoot area too, if\n                  necessary.  The \"if (i < 255)\" test merely skips\n                  this updating for the last bucket processed, since\n                  updating for the last bucket is pointless.\n                */\n                bigDone[ss] = true;\n\n                if (i < 255) {\n                    int bbStart  = ftab[ss << 8] & CLEARMASK;\n                    int bbSize   = (ftab[(ss + 1) << 8] & CLEARMASK) - bbStart;\n                    int shifts   = 0;\n\n                    while ((bbSize >> shifts) > 65534) {\n                        shifts++;\n                    }\n\n                    for (j = 0; j < bbSize; j++) {\n                        int a2update = zptr[bbStart + j];\n                        int qVal = (j >> shifts);\n                        quadrant[a2update] = qVal;\n                        if (a2update < NUM_OVERSHOOT_BYTES) {\n                            quadrant[a2update + last + 1] = qVal;\n                        }\n                    }\n\n                    if (!(((bbSize - 1) >> shifts) <= 65535)) {\n                        panic();\n                    }\n                }\n\n                /*\n                  Now scan this big bucket so as to synthesise the\n                  sorted order for small buckets [t, ss] for all t != ss.\n                */\n                for (j = 0; j <= 255; j++) {\n                    copy[j] = ftab[(j << 8) + ss] & CLEARMASK;\n                }\n\n                for (j = ftab[ss << 8] & CLEARMASK;\n                     j < (ftab[(ss + 1) << 8] & CLEARMASK); j++) {\n                    c1 = block[zptr[j]];\n                    if (!bigDone[c1]) {\n                        zptr[copy[c1]] = zptr[j] == 0 ? last : zptr[j] - 1;\n                        copy[c1]++;\n                    }\n                }\n\n                for (j = 0; j <= 255; j++) {\n                    ftab[(j << 8) + ss] |= SETMASK;\n                }\n            }\n        }\n    }\n\n    private void randomiseBlock() {\n        int i;\n        int rNToGo = 0;\n        int rTPos  = 0;\n        for (i = 0; i < 256; i++) {\n            inUse[i] = false;\n        }\n\n        for (i = 0; i <= last; i++) {\n            if (rNToGo == 0) {\n                rNToGo = (char) rNums[rTPos];\n                rTPos++;\n                if (rTPos == 512) {\n                    rTPos = 0;\n                }\n            }\n            rNToGo--;\n            block[i + 1] ^= ((rNToGo == 1) ? 1 : 0);\n            block[i + 1] &= 0xFF;\n\n            inUse[block[i + 1]] = true;\n        }\n    }\n\n    private void doReversibleTransformation() {\n        int i;\n\n        workLimit = workFactor * last;\n        workDone = 0;\n        blockRandomised = false;\n        firstAttempt = true;\n\n        mainSort();\n\n        if (workDone > workLimit && firstAttempt) {\n            randomiseBlock();\n            workLimit = workDone = 0;\n            blockRandomised = true;\n            firstAttempt = false;\n            mainSort();\n        }\n\n        origPtr = -1;\n        for (i = 0; i <= last; i++) {\n            if (zptr[i] == 0) {\n                origPtr = i;\n                break;\n            }\n        };\n\n        if (origPtr == -1) {\n            panic();\n        }\n    }\n\n    private boolean fullGtU(int i1, int i2) {\n        int k;\n        char c1, c2;\n        int s1, s2;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        k = last + 1;\n\n        do {\n            c1 = block[i1 + 1];\n            c2 = block[i2 + 1];\n            if (c1 != c2) {\n                return (c1 > c2);\n            }\n            s1 = quadrant[i1];\n            s2 = quadrant[i2];\n            if (s1 != s2) {\n                return (s1 > s2);\n            }\n            i1++;\n            i2++;\n\n            c1 = block[i1 + 1];\n            c2 = block[i2 + 1];\n            if (c1 != c2) {\n                return (c1 > c2);\n            }\n            s1 = quadrant[i1];\n            s2 = quadrant[i2];\n            if (s1 != s2) {\n                return (s1 > s2);\n            }\n            i1++;\n            i2++;\n\n            c1 = block[i1 + 1];\n            c2 = block[i2 + 1];\n            if (c1 != c2) {\n                return (c1 > c2);\n            }\n            s1 = quadrant[i1];\n            s2 = quadrant[i2];\n            if (s1 != s2) {\n                return (s1 > s2);\n            }\n            i1++;\n            i2++;\n\n            c1 = block[i1 + 1];\n            c2 = block[i2 + 1];\n            if (c1 != c2) {\n                return (c1 > c2);\n            }\n            s1 = quadrant[i1];\n            s2 = quadrant[i2];\n            if (s1 != s2) {\n                return (s1 > s2);\n            }\n            i1++;\n            i2++;\n\n            if (i1 > last) {\n                i1 -= last;\n                i1--;\n            };\n            if (i2 > last) {\n                i2 -= last;\n                i2--;\n            };\n\n            k -= 4;\n            workDone++;\n        } while (k >= 0);\n\n        return false;\n    }\n\n    /*\n      Knuth's increments seem to work better\n      than Incerpi-Sedgewick here.  Possibly\n      because the number of elems to sort is\n      usually small, typically <= 20.\n    */\n    private int[] incs = {1, 4, 13, 40, 121, 364, 1093, 3280,\n                           9841, 29524, 88573, 265720,\n                           797161, 2391484};\n\n    private void allocateCompressStructures () {\n        int n = baseBlockSize * blockSize100k;\n        block = new char[(n + 1 + NUM_OVERSHOOT_BYTES)];\n        quadrant = new int[(n + NUM_OVERSHOOT_BYTES)];\n        zptr = new int[n];\n        ftab = new int[65537];\n\n        if (block == null || quadrant == null || zptr == null\n            || ftab == null) {\n        }\n\n        /*\n          The back end needs a place to store the MTF values\n          whilst it calculates the coding tables.  We could\n          put them in the zptr array.  However, these values\n          will fit in a short, so we overlay szptr at the\n          start of zptr, in the hope of reducing the number\n          of cache misses induced by the multiple traversals\n          of the MTF values when calculating coding tables.\n          Seems to improve compression speed by about 1%.\n        */\n\n\n        szptr = new short[2 * n];\n    }\n\n    private void generateMTFValues() {\n        char[] yy = new char[256];\n        int  i, j;\n        char tmp;\n        char tmp2;\n        int zPend;\n        int wr;\n        int EOB;\n\n        makeMaps();\n        EOB = nInUse + 1;\n\n        for (i = 0; i <= EOB; i++) {\n            mtfFreq[i] = 0;\n        }\n\n        wr = 0;\n        zPend = 0;\n        for (i = 0; i < nInUse; i++) {\n            yy[i] = (char) i;\n        }\n\n\n        for (i = 0; i <= last; i++) {\n            char ll_i;\n\n            ll_i = unseqToSeq[block[zptr[i]]];\n\n            j = 0;\n            tmp = yy[j];\n            while (ll_i != tmp) {\n                j++;\n                tmp2 = tmp;\n                tmp = yy[j];\n                yy[j] = tmp2;\n            };\n            yy[0] = tmp;\n\n            if (j == 0) {\n                zPend++;\n            } else {\n                if (zPend > 0) {\n                    zPend--;\n                    while (true) {\n                        switch (zPend % 2) {\n                        case 0:\n                            szptr[wr] = (short) RUNA;\n                            wr++;\n                            mtfFreq[RUNA]++;\n                            break;\n                        case 1:\n                            szptr[wr] = (short) RUNB;\n                            wr++;\n                            mtfFreq[RUNB]++;\n                            break;\n                        };\n                        if (zPend < 2) {\n                            break;\n                        }\n                        zPend = (zPend - 2) / 2;\n                    };\n                    zPend = 0;\n                }\n                szptr[wr] = (short) (j + 1);\n                wr++;\n                mtfFreq[j + 1]++;\n            }\n        }\n\n        if (zPend > 0) {\n            zPend--;\n            while (true) {\n                switch (zPend % 2) {\n                case 0:\n                    szptr[wr] = (short) RUNA;\n                    wr++;\n                    mtfFreq[RUNA]++;\n                    break;\n                case 1:\n                    szptr[wr] = (short) RUNB;\n                    wr++;\n                    mtfFreq[RUNB]++;\n                    break;\n                }\n                if (zPend < 2) {\n                    break;\n                }\n                zPend = (zPend - 2) / 2;\n            }\n        }\n\n        szptr[wr] = (short) EOB;\n        wr++;\n        mtfFreq[EOB]++;\n\n        nMTF = wr;", "functions": [{"function_name": "panic", "code": "    private static void panic() {\n        System.out.println(\"panic\");", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "makeMaps", "code": "    private void makeMaps() {\n        int i;\n        nInUse = 0;\n        for (i = 0; i < 256; i++) {\n            if (inUse[i]) {\n                seqToUnseq[nInUse] = (char) i;\n                unseqToSeq[i] = (char) nInUse;\n                nInUse++;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [1, 6], [3, 7], [4, 8], [5, 9], [6, 10], [6, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 1], [7, 3], [8, 4], [9, 5], [10, 6], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "hbMakeCodeLengths", "code": "    protected static void hbMakeCodeLengths(char[] len, int[] freq,\n                                            int alphaSize, int maxLen) {\n        /*\n          Nodes and heap entries run from 1.  Entry 0\n          for both the heap and nodes is a sentinel.\n        */\n        int nNodes, nHeap, n1, n2, i, j, k;\n        boolean  tooLong;\n\n        int[] heap = new int[MAX_ALPHA_SIZE + 2];\n        int[] weight = new int[MAX_ALPHA_SIZE * 2];\n        int[] parent = new int[MAX_ALPHA_SIZE * 2];\n\n        for (i = 0; i < alphaSize; i++) {\n            weight[i + 1] = (freq[i] == 0 ? 1 : freq[i]) << 8;\n        }\n\n        while (true) {\n            nNodes = alphaSize;\n            nHeap = 0;\n\n            heap[0] = 0;\n            weight[0] = 0;\n            parent[0] = -2;\n\n            for (i = 1; i <= alphaSize; i++) {\n                parent[i] = -1;\n                nHeap++;\n                heap[nHeap] = i;\n                {\n                    int zz, tmp;\n                    zz = nHeap;\n                    tmp = heap[zz];\n                    while (weight[tmp] < weight[heap[zz >> 1]]) {\n                        heap[zz] = heap[zz >> 1];\n                        zz >>= 1;\n                    }\n                    heap[zz] = tmp;\n                }\n            }\n            if (!(nHeap < (MAX_ALPHA_SIZE + 2))) {\n                panic();\n            }\n\n            while (nHeap > 1) {\n                n1 = heap[1];\n                heap[1] = heap[nHeap];\n                nHeap--;\n                {\n                    int zz = 0, yy = 0, tmp = 0;\n                    zz = 1;\n                    tmp = heap[zz];\n                    while (true) {\n                        yy = zz << 1;\n                        if (yy > nHeap) {\n                            break;\n                        }\n                        if (yy < nHeap\n                            && weight[heap[yy + 1]] < weight[heap[yy]]) {\n                            yy++;\n                        }\n                        if (weight[tmp] < weight[heap[yy]]) {\n                            break;\n                        }\n                        heap[zz] = heap[yy];\n                        zz = yy;\n                    }\n                    heap[zz] = tmp;\n                }\n                n2 = heap[1];\n                heap[1] = heap[nHeap];\n                nHeap--;\n                {\n                    int zz = 0, yy = 0, tmp = 0;\n                    zz = 1;\n                    tmp = heap[zz];\n                    while (true) {\n                        yy = zz << 1;\n                        if (yy > nHeap) {\n                            break;\n                        }\n                        if (yy < nHeap\n                            && weight[heap[yy + 1]] < weight[heap[yy]]) {\n                            yy++;\n                        }\n                        if (weight[tmp] < weight[heap[yy]]) {\n                            break;\n                        }\n                        heap[zz] = heap[yy];\n                        zz = yy;\n                    }\n                    heap[zz] = tmp;\n                }\n                nNodes++;\n                parent[n1] = parent[n2] = nNodes;\n\n                weight[nNodes] = ((weight[n1] & 0xffffff00)\n                                  + (weight[n2] & 0xffffff00))\n                    | (1 + (((weight[n1] & 0x000000ff)\n                            > (weight[n2] & 0x000000ff))\n                            ? (weight[n1] & 0x000000ff)\n                            : (weight[n2] & 0x000000ff)));\n\n                parent[nNodes] = -1;\n                nHeap++;\n                heap[nHeap] = nNodes;\n                {\n                    int zz = 0, tmp = 0;\n                    zz = nHeap;\n                    tmp = heap[zz];\n                    while (weight[tmp] < weight[heap[zz >> 1]]) {\n                        heap[zz] = heap[zz >> 1];\n                        zz >>= 1;\n                    }\n                    heap[zz] = tmp;\n                }\n            }\n            if (!(nNodes < (MAX_ALPHA_SIZE * 2))) {\n                panic();\n            }\n\n            tooLong = false;\n            for (i = 1; i <= alphaSize; i++) {\n                j = 0;\n                k = i;\n                while (parent[k] >= 0) {\n                    k = parent[k];\n                    j++;\n                }\n                len[i - 1] = (char) j;\n                if (j > maxLen) {\n                    tooLong = true;\n                }\n            }\n\n            if (!tooLong) {\n                break;\n            }\n\n            for (i = 1; i < alphaSize; i++) {\n                j = weight[i] >> 8;\n                j = 1 + (j / 2);\n                weight[i] = j << 8;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LOOP", "IF", "LOOP", "IF", "LOOP", "IF", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [14, 22], [15, 23], [15, 24], [17, 25], [17, 26], [1, 27], [18, 28], [19, 29], [20, 30], [21, 31], [21, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [2, 38], [3, 39], [4, 40], [5, 41], [24, 42], [16, 43], [17, 44], [17, 45], [26, 46], [27, 47], [28, 48], [29, 49], [30, 50], [32, 51], [33, 52], [34, 53], [35, 54], [36, 55], [38, 56], [39, 57], [40, 58], [41, 59], [15, 60], [15, 61], [15, 62], [44, 63], [17, 64], [45, 65], [17, 66], [17, 67], [18, 68], [48, 69], [19, 70], [19, 71], [19, 72], [19, 73], [19, 74], [19, 75], [19, 76], [19, 77], [19, 78], [19, 79], [19, 80], [19, 81], [19, 82], [19, 83], [20, 84], [50, 85], [21, 86], [21, 87], [21, 88], [21, 89], [56, 90], [56, 91], [60, 92], [61, 93], [62, 94], [65, 95], [67, 96], [19, 97], [70, 98], [19, 99], [19, 100], [73, 101], [74, 102], [75, 103], [19, 104], [76, 105], [19, 106], [19, 107], [19, 108], [80, 109], [19, 110], [19, 111], [21, 112], [86, 113], [21, 114], [21, 115], [89, 116], [33, 117], [34, 118], [35, 119], [91, 120], [91, 121], [38, 122], [92, 123], [93, 124], [93, 125], [94, 126], [44, 127], [45, 128], [71, 129], [71, 130], [102, 131], [102, 132], [76, 133], [76, 134], [76, 135], [107, 136], [77, 137], [77, 138], [77, 139], [80, 140], [80, 141], [80, 142], [111, 143], [81, 144], [81, 145], [81, 146], [121, 147], [122, 148], [124, 149], [127, 150], [64, 151], [70, 152], [70, 153], [131, 154], [131, 155], [132, 156], [132, 157], [76, 158], [76, 159], [133, 160], [134, 161], [135, 162], [76, 163], [78, 164], [79, 165], [80, 166], [80, 167], [140, 168], [141, 169], [142, 170], [80, 171], [82, 172], [83, 173], [86, 174], [86, 175], [151, 176], [152, 177], [154, 178], [154, 179], [154, 180], [156, 181], [157, 182], [133, 183], [161, 184], [161, 185], [135, 186], [163, 187], [140, 188], [169, 189], [169, 190], [142, 191], [171, 192], [174, 193], [178, 194], [179, 195], [180, 196], [180, 197], [187, 198], [192, 199], [153, 200], [98, 201], [196, 202], [197, 203], [175, 204], [113, 205], [200, 206], [201, 207], [204, 208], [205, 209], [184, 210], [189, 211], [210, 212], [211, 213], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 14], [23, 15], [24, 15], [25, 17], [26, 17], [27, 1], [28, 18], [29, 19], [30, 20], [31, 21], [32, 21], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 2], [39, 3], [40, 4], [41, 5], [42, 24], [43, 16], [44, 17], [45, 17], [46, 26], [47, 27], [48, 28], [49, 29], [50, 30], [51, 32], [52, 33], [53, 34], [54, 35], [55, 36], [56, 38], [57, 39], [58, 40], [59, 41], [60, 15], [61, 15], [62, 15], [63, 44], [64, 17], [65, 45], [66, 17], [67, 17], [68, 18], [69, 48], [70, 19], [71, 19], [72, 19], [73, 19], [74, 19], [75, 19], [76, 19], [77, 19], [78, 19], [79, 19], [80, 19], [81, 19], [82, 19], [83, 19], [84, 20], [85, 50], [86, 21], [87, 21], [88, 21], [89, 21], [90, 56], [91, 56], [92, 60], [93, 61], [94, 62], [95, 65], [96, 67], [97, 19], [98, 70], [99, 19], [100, 19], [101, 73], [102, 74], [103, 75], [104, 19], [105, 76], [106, 19], [107, 19], [108, 19], [109, 80], [110, 19], [111, 19], [112, 21], [113, 86], [114, 21], [115, 21], [116, 89], [117, 33], [118, 34], [119, 35], [120, 91], [121, 91], [122, 38], [123, 92], [124, 93], [125, 93], [126, 94], [127, 44], [128, 45], [129, 71], [130, 71], [131, 102], [132, 102], [133, 76], [134, 76], [135, 76], [136, 107], [137, 77], [138, 77], [139, 77], [140, 80], [141, 80], [142, 80], [143, 111], [144, 81], [145, 81], [146, 81], [147, 121], [148, 122], [149, 124], [150, 127], [151, 64], [152, 70], [153, 70], [154, 131], [155, 131], [156, 132], [157, 132], [158, 76], [159, 76], [160, 133], [161, 134], [162, 135], [163, 76], [164, 78], [165, 79], [166, 80], [167, 80], [168, 140], [169, 141], [170, 142], [171, 80], [172, 82], [173, 83], [174, 86], [175, 86], [176, 151], [177, 152], [178, 154], [179, 154], [180, 154], [181, 156], [182, 157], [183, 133], [184, 161], [185, 161], [186, 135], [187, 163], [188, 140], [189, 169], [190, 169], [191, 142], [192, 171], [193, 174], [194, 178], [195, 179], [196, 180], [197, 180], [198, 187], [199, 192], [200, 153], [201, 98], [202, 196], [203, 197], [204, 175], [205, 113], [206, 200], [207, 201], [208, 204], [209, 205], [210, 184], [211, 189], [212, 210], [213, 211], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213]]}, {"function_name": "write", "code": "    public void write(int bv) throws IOException {\n        int b = (256 + bv) % 256;\n        if (currentChar != -1) {\n            if (currentChar == b) {\n                runLength++;\n                if (runLength > 254) {\n                    writeRun();\n                    currentChar = -1;\n                    runLength = 0;\n                }\n            } else {\n                writeRun();\n                runLength = 1;\n                currentChar = b;\n            }\n        } else {\n            currentChar = b;\n            runLength++;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [1, 8], [5, 9], [7, 10], [7, 11], [5, 12], [11, 13], [5, 14], [5, 15], [5, 16], [12, 17], [15, 18], [17, 19], [12, 20], [12, 21], [12, 22], [20, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 1], [9, 5], [10, 7], [11, 7], [12, 5], [13, 11], [14, 5], [15, 5], [16, 5], [17, 12], [18, 15], [19, 17], [20, 12], [21, 12], [22, 12], [23, 20], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "writeRun", "code": "    private void writeRun() throws IOException {\n        if (last < allowableBlockSize) {\n            inUse[currentChar] = true;\n            for (int i = 0; i < runLength; i++) {\n                mCrc.updateCRC((char) currentChar);\n            }\n            switch (runLength) {\n            case 1:\n                last++;\n                block[last + 1] = (char) currentChar;\n                break;\n            case 2:\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                break;\n            case 3:\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                break;\n            default:\n                inUse[runLength - 4] = true;\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) currentChar;\n                last++;\n                block[last + 1] = (char) (runLength - 4);\n                break;\n            }\n        } else {\n            endBlock();\n            initBlock();\n            writeRun();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "SWITCH", "LOOP", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [1, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [9, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [4, 30], [4, 31], [23, 32], [18, 33], [33, 34], [18, 35], [19, 36], [20, 37], [21, 38], [22, 39], [23, 40], [24, 41], [25, 42], [26, 43], [27, 44], [28, 45], [29, 46], [35, 47], [36, 48], [37, 49], [38, 50], [39, 51], [40, 52], [41, 53], [42, 54], [43, 55], [44, 56], [45, 57], [46, 58], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 1], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 9], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 3], [27, 3], [28, 3], [29, 3], [30, 4], [31, 4], [32, 23], [33, 18], [34, 33], [35, 18], [36, 19], [37, 20], [38, 21], [39, 22], [40, 23], [41, 24], [42, 25], [43, 26], [44, 27], [45, 28], [46, 29], [47, 35], [48, 36], [49, 37], [50, 38], [51, 39], [52, 40], [53, 41], [54, 42], [55, 43], [56, 44], [57, 45], [58, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "finalize", "code": "    protected void finalize() throws Throwable {\n        close();\n        super.finalize();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "close", "code": "    public void close() throws IOException {\n        if (closed) {\n            return;\n        }\n\n        if (runLength > 0) {\n            writeRun();\n        }\n        currentChar = -1;\n        endBlock();\n        endCompression();\n        closed = true;\n        super.close();\n        bsStream.close();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [7, 10], [8, 11], [2, 12], [1, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 7], [11, 8], [12, 2], [13, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "flush", "code": "    public void flush() throws IOException {\n        super.flush();\n        bsStream.flush();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "initialize", "code": "    private void initialize() throws IOException {\n        bytesOut = 0;\n        nBlocksRandomised = 0;\n\n        /* Write `magic' bytes h indicating file-format == huffmanised,\n           followed by a digit indicating blockSize100k.\n        */\n        bsPutUChar('h');\n        bsPutUChar('0' + blockSize100k);\n\n        combinedCRC = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [5, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 5], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "initBlock", "code": "    private void initBlock() {\n        mCrc.initialiseCRC();\n        last = -1;\n\n        for (int i = 0; i < 256; i++) {\n            inUse[i] = false;\n        }\n\n        /* 20 is just a paranoia constant */\n        allowableBlockSize = baseBlockSize * blockSize100k - 20;", "ast_nodes": ["FUNC_DECL", "LOOP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [6, 10], [1, 11], [1, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 6], [11, 1], [12, 1], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "endBlock", "code": "    private void endBlock() throws IOException {\n        blockCRC = mCrc.getFinalCRC();\n        combinedCRC = (combinedCRC << 1) | (combinedCRC >>> 31);\n        combinedCRC ^= blockCRC;\n\n        /* sort the block and establish posn of original string */\n        doReversibleTransformation();\n\n        /*\n          A 6-byte block header, the value chosen arbitrarily\n          as 0x314159265359 :-).  A 32 bit value does not really\n          give a strong enough guarantee that the value will not\n          appear by chance in the compressed datastream.  Worst-case\n          probability of this event, for a 900k block, is about\n          2.0e-3 for 32 bits, 1.0e-5 for 40 bits and 4.0e-8 for 48 bits.\n          For a compressed file of size 100Gb -- about 100000 blocks --\n          only a 48-bit marker will do.  NB: normal compression/\n          decompression do *not* rely on these statistical properties.\n          They are only important when trying to recover blocks from\n          damaged files.\n        */\n        bsPutUChar(0x31);\n        bsPutUChar(0x41);\n        bsPutUChar(0x59);\n        bsPutUChar(0x26);\n        bsPutUChar(0x53);\n        bsPutUChar(0x59);\n\n        /* Now the block's CRC, so it is in a known place. */\n        bsPutint(blockCRC);\n\n        /* Now a single bit indicating randomisation. */\n        if (blockRandomised) {\n            bsW(1, 1);\n            nBlocksRandomised++;\n        } else {\n            bsW(1, 0);\n        }\n\n        /* Finally, block's contents proper. */\n        moveToFrontCodeAndSend();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [4, 14], [5, 15], [6, 16], [7, 17], [8, 18], [9, 19], [12, 20], [13, 21], [1, 22], [1, 23], [20, 24], [20, 25], [22, 26], [22, 27], [23, 28], [23, 29], [24, 30], [25, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 4], [15, 5], [16, 6], [17, 7], [18, 8], [19, 9], [20, 12], [21, 13], [22, 1], [23, 1], [24, 20], [25, 20], [26, 22], [27, 22], [28, 23], [29, 23], [30, 24], [31, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "endCompression", "code": "    private void endCompression() throws IOException {\n        /*\n          Now another magic 48-bit number, 0x177245385090, to\n          indicate the end of the last block.  (sqrt(pi), if\n          you want to know.  I did want to use e, but it contains\n          too much repetition -- 27 18 28 18 28 46 -- for me\n          to feel statistically comfortable.  Call me paranoid.)\n        */\n        bsPutUChar(0x17);\n        bsPutUChar(0x72);\n        bsPutUChar(0x45);\n        bsPutUChar(0x38);\n        bsPutUChar(0x50);\n        bsPutUChar(0x90);\n\n        bsPutint(combinedCRC);\n\n        bsFinishedWithStream();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "hbAssignCodes", "code": "    private void hbAssignCodes (int[] code, char[] length, int minLen,\n                                int maxLen, int alphaSize) {\n        int n, vec, i;\n\n        vec = 0;\n        for (n = minLen; n <= maxLen; n++) {\n            for (i = 0; i < alphaSize; i++) {\n                if (length[i] == n) {\n                    code[i] = vec;\n                    vec++;\n                }\n            };\n            vec <<= 1;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [0, 10], [1, 11], [10, 12], [1, 13], [11, 14], [11, 15], [13, 16], [11, 17], [15, 18], [17, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 0], [11, 1], [12, 10], [13, 1], [14, 11], [15, 11], [16, 13], [17, 11], [18, 15], [19, 17], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "bsSetStream", "code": "    private void bsSetStream(OutputStream f) {\n        bsStream = f;\n        bsLive = 0;\n        bsBuff = 0;\n        bytesOut = 0;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "bsFinishedWithStream", "code": "    private void bsFinishedWithStream() throws IOException {\n        while (bsLive > 0) {\n            int ch = (bsBuff >> 24);\n            try {\n            } catch (IOException e) {\n                throw  e;\n            }\n            bsBuff <<= 8;\n            bsLive -= 8;\n            bytesOut++;", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 6], [1, 7], [3, 8], [6, 9], [7, 10], [8, 11], [4, 12], [12, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 1], [7, 1], [8, 3], [9, 6], [10, 7], [11, 8], [12, 4], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "bsW", "code": "    private void bsW(int n, int v) throws IOException {\n        while (bsLive >= 8) {\n            int ch = (bsBuff >> 24);\n            try {\n            } catch (IOException e) {\n                throw e;\n            }\n            bsBuff <<= 8;\n            bsLive -= 8;\n            bytesOut++;\n        }\n        bsBuff |= (v << (32 - bsLive - n));\n        bsLive += n;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CATCH", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [5, 7], [1, 8], [1, 9], [6, 10], [7, 11], [1, 12], [1, 13], [8, 14], [11, 15], [12, 16], [13, 17], [14, 18], [9, 19], [15, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 5], [8, 1], [9, 1], [10, 6], [11, 7], [12, 1], [13, 1], [14, 8], [15, 11], [16, 12], [17, 13], [18, 14], [19, 9], [20, 15], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "bsPutUChar", "code": "    private void bsPutUChar(int c) throws IOException {\n        bsW(8, c);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "bsPutint", "code": "    private void bsPutint(int u) throws IOException {\n        bsW(8, (u >> 24) & 0xff);\n        bsW(8, (u >> 16) & 0xff);\n        bsW(8, (u >>  8) & 0xff);\n        bsW(8,  u        & 0xff);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [5, 12], [5, 13], [6, 14], [8, 15], [8, 16], [10, 17], [10, 18], [12, 19], [12, 20], [16, 21], [18, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 5], [13, 5], [14, 6], [15, 8], [16, 8], [17, 10], [18, 10], [19, 12], [20, 12], [21, 16], [22, 18], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "bsPutIntVS", "code": "    private void bsPutIntVS(int numBits, int c) throws IOException {\n        bsW(numBits, c);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "sendMTFValues", "code": "    private void sendMTFValues() throws IOException {\n        char len[][] = new char[N_GROUPS][MAX_ALPHA_SIZE];\n\n        int v, t, i, j, gs, ge, totc, bt, bc, iter;\n        int nSelectors = 0, alphaSize, minLen, maxLen, selCtr;\n        int nGroups, nBytes;\n\n        alphaSize = nInUse + 2;\n        for (t = 0; t < N_GROUPS; t++) {\n            for (v = 0; v < alphaSize; v++) {\n                len[t][v] = (char) GREATER_ICOST;\n            }\n        }\n\n        /* Decide how many coding tables to use */\n        if (nMTF <= 0) {\n            panic();\n        }\n\n        if (nMTF < 200) {\n            nGroups = 2;\n        } else if (nMTF < 600) {\n            nGroups = 3;\n        } else if (nMTF < 1200) {\n            nGroups = 4;\n        } else if (nMTF < 2400) {\n            nGroups = 5;\n        } else {\n            nGroups = 6;\n        }\n\n        /* Generate an initial set of coding tables */ {\n            int nPart, remF, tFreq, aFreq;\n\n            nPart = nGroups;\n            remF  = nMTF;\n            gs = 0;\n            while (nPart > 0) {\n                tFreq = remF / nPart;\n                ge = gs - 1;\n                aFreq = 0;\n                while (aFreq < tFreq && ge < alphaSize - 1) {\n                    ge++;\n                    aFreq += mtfFreq[ge];\n                }\n\n                if (ge > gs && nPart != nGroups && nPart != 1\n                    && ((nGroups - nPart) % 2 == 1)) {\n                    aFreq -= mtfFreq[ge];\n                    ge--;\n                }\n\n                for (v = 0; v < alphaSize; v++) {\n                    if (v >= gs && v <= ge) {\n                        len[nPart - 1][v] = (char) LESSER_ICOST;\n                    } else {\n                        len[nPart - 1][v] = (char) GREATER_ICOST;\n                    }\n                }\n\n                nPart--;\n                gs = ge + 1;\n                remF -= aFreq;\n            }\n        }\n\n        int[][] rfreq = new int[N_GROUPS][MAX_ALPHA_SIZE];\n        int[] fave = new int[N_GROUPS];\n        short[] cost = new short[N_GROUPS];\n        /*\n          Iterate up to N_ITERS times to improve the tables.\n        */\n        for (iter = 0; iter < N_ITERS; iter++) {\n            for (t = 0; t < nGroups; t++) {\n                fave[t] = 0;\n            }\n\n            for (t = 0; t < nGroups; t++) {\n                for (v = 0; v < alphaSize; v++) {\n                    rfreq[t][v] = 0;\n                }\n            }\n\n            nSelectors = 0;\n            totc = 0;\n            gs = 0;\n            while (true) {\n\n                /* Set group start & end marks. */\n                if (gs >= nMTF) {\n                    break;\n                }\n                ge = gs + G_SIZE - 1;\n                if (ge >= nMTF) {\n                    ge = nMTF - 1;\n                }\n\n                /*\n                  Calculate the cost of this group as coded\n                  by each of the coding tables.\n                */\n                for (t = 0; t < nGroups; t++) {\n                    cost[t] = 0;\n                }\n\n                if (nGroups == 6) {\n                    short cost0, cost1, cost2, cost3, cost4, cost5;\n                    cost0 = cost1 = cost2 = cost3 = cost4 = cost5 = 0;\n                    for (i = gs; i <= ge; i++) {\n                        short icv = szptr[i];\n                        cost0 += len[0][icv];\n                        cost1 += len[1][icv];\n                        cost2 += len[2][icv];\n                        cost3 += len[3][icv];\n                        cost4 += len[4][icv];\n                        cost5 += len[5][icv];\n                    }\n                    cost[0] = cost0;\n                    cost[1] = cost1;\n                    cost[2] = cost2;\n                    cost[3] = cost3;\n                    cost[4] = cost4;\n                    cost[5] = cost5;\n                } else {\n                    for (i = gs; i <= ge; i++) {\n                        short icv = szptr[i];\n                        for (t = 0; t < nGroups; t++) {\n                            cost[t] += len[t][icv];\n                        }\n                    }\n                }\n\n                /*\n                  Find the coding table which is best for this group,\n                  and record its identity in the selector table.\n                */\n                bc = 999999999;\n                bt = -1;\n                for (t = 0; t < nGroups; t++) {\n                    if (cost[t] < bc) {\n                        bc = cost[t];\n                        bt = t;\n                    }\n                };\n                totc += bc;\n                fave[bt]++;\n                selector[nSelectors] = (char) bt;\n                nSelectors++;\n\n                /*\n                  Increment the symbol frequencies for the selected table.\n                */\n                for (i = gs; i <= ge; i++) {\n                    rfreq[bt][szptr[i]]++;\n                }\n\n                gs = ge + 1;\n            }\n\n            /*\n              Recompute the tables based on the accumulated frequencies.\n            */\n            for (t = 0; t < nGroups; t++) {\n                hbMakeCodeLengths(len[t], rfreq[t], alphaSize, 20);\n            }\n        }\n\n        rfreq = null;\n        fave = null;\n        cost = null;\n\n        if (!(nGroups < 8)) {\n            panic();\n        }\n        if (!(nSelectors < 32768 && nSelectors <= (2 + (900000 / G_SIZE)))) {\n            panic();\n        }\n\n\n        /* Compute MTF values for the selectors. */\n        {\n            char[] pos = new char[N_GROUPS];\n            char ll_i, tmp2, tmp;\n            for (i = 0; i < nGroups; i++) {\n                pos[i] = (char) i;\n            }\n            for (i = 0; i < nSelectors; i++) {\n                ll_i = selector[i];\n                j = 0;\n                tmp = pos[j];\n                while (ll_i != tmp) {\n                    j++;\n                    tmp2 = tmp;\n                    tmp = pos[j];\n                    pos[j] = tmp2;\n                }\n                pos[0] = tmp;\n                selectorMtf[i] = (char) j;\n            }\n        }\n\n        int[][] code = new int[N_GROUPS][MAX_ALPHA_SIZE];\n\n        /* Assign actual codes for the tables. */\n        for (t = 0; t < nGroups; t++) {\n            minLen = 32;\n            maxLen = 0;\n            for (i = 0; i < alphaSize; i++) {\n                if (len[t][i] > maxLen) {\n                    maxLen = len[t][i];\n                }\n                if (len[t][i] < minLen) {\n                    minLen = len[t][i];\n                }\n            }\n            if (maxLen > 20) {\n                panic();\n            }\n            if (minLen < 1) {\n                panic();\n            }\n            hbAssignCodes(code[t], len[t], minLen, maxLen, alphaSize);\n        }\n\n        /* Transmit the mapping table. */\n        {\n            boolean[] inUse16 = new boolean[16];\n            for (i = 0; i < 16; i++) {\n                inUse16[i] = false;\n                for (j = 0; j < 16; j++) {\n                    if (inUse[i * 16 + j]) {\n                        inUse16[i] = true;\n                    }\n                }\n            }\n\n            nBytes = bytesOut;\n            for (i = 0; i < 16; i++) {\n                if (inUse16[i]) {\n                    bsW(1, 1);\n                } else {\n                    bsW(1, 0);\n                }\n            }\n\n            for (i = 0; i < 16; i++) {\n                if (inUse16[i]) {\n                    for (j = 0; j < 16; j++) {\n                        if (inUse[i * 16 + j]) {\n                            bsW(1, 1);\n                        } else {\n                            bsW(1, 0);\n                        }\n                    }\n                }\n            }\n\n        }\n\n        /* Now the selectors. */\n        nBytes = bytesOut;\n        bsW (3, nGroups);\n        bsW (15, nSelectors);\n        for (i = 0; i < nSelectors; i++) {\n            for (j = 0; j < selectorMtf[i]; j++) {\n                bsW(1, 1);\n            }\n            bsW(1, 0);\n        }\n\n        /* Now the coding tables. */\n        nBytes = bytesOut;\n\n        for (t = 0; t < nGroups; t++) {\n            int curr = len[t][0];\n            bsW(5, curr);\n            for (i = 0; i < alphaSize; i++) {\n                while (curr < len[t][i]) {\n                    bsW(2, 2);\n                    curr++; /* 10 */\n                }\n                while (curr > len[t][i]) {\n                    bsW(2, 3);\n                    curr--; /* 11 */\n                }\n                bsW (1, 0);\n            }\n        }\n\n        /* And finally, the block data proper */\n        nBytes = bytesOut;\n        selCtr = 0;\n        gs = 0;\n        while (true) {\n            if (gs >= nMTF) {\n                break;\n            }\n            ge = gs + G_SIZE - 1;\n            if (ge >= nMTF) {\n                ge = nMTF - 1;\n            }\n            for (i = gs; i <= ge; i++) {\n                bsW(len[selector[selCtr]][szptr[i]],\n                    code[selector[selCtr]][szptr[i]]);\n            }\n\n            gs = ge + 1;\n            selCtr++;\n        }\n        if (!(selCtr == nSelectors)) {\n            panic();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "LOOP", "LOOP", "LOOP", "VAR_DECL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "LOOP", "LOOP", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LOOP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "IF", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LOOP", "LOOP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "IF", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LOOP", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LOOP", "IF", "LOOP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [1, 20], [2, 21], [0, 22], [0, 23], [0, 24], [3, 25], [3, 26], [0, 27], [4, 28], [4, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [5, 37], [5, 38], [0, 39], [0, 40], [0, 41], [0, 42], [7, 43], [8, 44], [0, 45], [0, 46], [0, 47], [9, 48], [9, 49], [0, 50], [0, 51], [13, 52], [13, 53], [14, 54], [15, 55], [15, 56], [0, 57], [2, 58], [2, 59], [2, 60], [22, 61], [23, 62], [3, 63], [3, 64], [26, 65], [4, 66], [29, 67], [30, 68], [31, 69], [33, 70], [33, 71], [34, 72], [34, 73], [0, 74], [35, 75], [35, 76], [5, 77], [5, 78], [5, 79], [38, 80], [39, 81], [39, 82], [40, 83], [40, 84], [43, 85], [43, 86], [44, 87], [45, 88], [46, 89], [47, 90], [9, 91], [9, 92], [9, 93], [9, 94], [49, 95], [50, 96], [0, 97], [0, 98], [0, 99], [52, 100], [52, 101], [53, 102], [54, 103], [15, 104], [56, 105], [57, 106], [17, 107], [1, 108], [2, 109], [58, 110], [58, 111], [59, 112], [2, 113], [60, 114], [63, 115], [63, 116], [3, 117], [4, 118], [66, 119], [66, 120], [33, 121], [70, 122], [71, 123], [34, 124], [72, 125], [73, 126], [35, 127], [75, 128], [76, 129], [5, 130], [77, 131], [78, 132], [79, 133], [79, 134], [5, 135], [5, 136], [39, 137], [82, 138], [84, 139], [7, 140], [85, 141], [86, 142], [8, 143], [91, 144], [91, 145], [92, 146], [9, 147], [9, 148], [9, 149], [93, 150], [93, 151], [94, 152], [94, 153], [50, 154], [50, 155], [50, 156], [96, 157], [97, 158], [100, 159], [100, 160], [101, 161], [13, 162], [14, 163], [104, 164], [104, 165], [106, 166], [109, 167], [113, 168], [60, 169], [63, 170], [63, 171], [116, 172], [117, 173], [118, 174], [118, 175], [120, 176], [127, 177], [127, 178], [35, 179], [36, 180], [131, 181], [132, 182], [79, 183], [79, 184], [134, 185], [135, 186], [136, 187], [39, 188], [39, 189], [137, 190], [39, 191], [39, 192], [39, 193], [40, 194], [141, 195], [141, 196], [145, 197], [92, 198], [92, 199], [92, 200], [92, 201], [92, 202], [92, 203], [147, 204], [148, 205], [149, 206], [93, 207], [151, 208], [153, 209], [50, 210], [50, 211], [154, 212], [154, 213], [155, 214], [156, 215], [50, 216], [50, 217], [50, 218], [159, 219], [160, 220], [52, 221], [162, 222], [165, 223], [167, 224], [58, 225], [59, 226], [168, 227], [168, 228], [63, 229], [170, 230], [171, 231], [66, 232], [121, 233], [127, 234], [177, 235], [178, 236], [179, 237], [77, 238], [78, 239], [183, 240], [184, 241], [192, 242], [195, 243], [91, 244], [92, 245], [198, 246], [198, 247], [92, 248], [92, 249], [199, 250], [199, 251], [92, 252], [92, 253], [200, 254], [201, 255], [201, 256], [202, 257], [92, 258], [203, 259], [207, 260], [207, 261], [94, 262], [211, 263], [154, 264], [213, 265], [214, 266], [214, 267], [215, 268], [215, 269], [216, 270], [217, 271], [218, 272], [219, 273], [100, 274], [221, 275], [104, 276], [226, 277], [229, 278], [229, 279], [64, 280], [232, 281], [232, 282], [233, 283], [233, 284], [124, 285], [124, 286], [137, 287], [137, 288], [137, 289], [244, 290], [245, 291], [199, 292], [251, 293], [252, 294], [253, 295], [200, 296], [200, 297], [200, 298], [254, 299], [256, 300], [258, 301], [203, 302], [261, 303], [262, 304], [263, 305], [264, 306], [155, 307], [266, 308], [266, 309], [267, 310], [267, 311], [156, 312], [268, 313], [271, 314], [159, 315], [159, 316], [274, 317], [277, 318], [170, 319], [171, 320], [233, 321], [283, 322], [284, 323], [285, 324], [285, 325], [286, 326], [286, 327], [183, 328], [184, 329], [189, 330], [291, 331], [292, 332], [296, 333], [296, 334], [200, 335], [200, 336], [200, 337], [200, 338], [200, 339], [200, 340], [297, 341], [297, 342], [200, 343], [201, 344], [202, 345], [301, 346], [301, 347], [207, 348], [306, 349], [306, 350], [309, 351], [309, 352], [310, 353], [311, 354], [311, 355], [313, 356], [315, 357], [316, 358], [319, 359], [319, 360], [320, 361], [320, 362], [234, 363], [234, 364], [296, 365], [296, 366], [297, 367], [343, 368], [344, 369], [345, 370], [348, 371], [264, 372], [264, 373], [363, 374], [364, 375], [292, 376], [292, 377], [365, 378], [365, 379], [297, 380], [297, 381], [297, 382], [297, 383], [297, 384], [297, 385], [368, 386], [370, 387], [321, 388], [321, 389], [321, 390], [375, 391], [379, 392], [335, 393], [336, 394], [337, 395], [338, 396], [339, 397], [340, 398], [386, 399], [388, 400], [388, 401], [389, 402], [389, 403], [390, 404], [365, 405], [399, 406], [372, 407], [373, 408], [404, 409], [380, 410], [381, 411], [382, 412], [383, 413], [384, 414], [385, 415], [406, 416], [407, 417], [408, 418], [416, 419], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 1], [21, 2], [22, 0], [23, 0], [24, 0], [25, 3], [26, 3], [27, 0], [28, 4], [29, 4], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 5], [38, 5], [39, 0], [40, 0], [41, 0], [42, 0], [43, 7], [44, 8], [45, 0], [46, 0], [47, 0], [48, 9], [49, 9], [50, 0], [51, 0], [52, 13], [53, 13], [54, 14], [55, 15], [56, 15], [57, 0], [58, 2], [59, 2], [60, 2], [61, 22], [62, 23], [63, 3], [64, 3], [65, 26], [66, 4], [67, 29], [68, 30], [69, 31], [70, 33], [71, 33], [72, 34], [73, 34], [74, 0], [75, 35], [76, 35], [77, 5], [78, 5], [79, 5], [80, 38], [81, 39], [82, 39], [83, 40], [84, 40], [85, 43], [86, 43], [87, 44], [88, 45], [89, 46], [90, 47], [91, 9], [92, 9], [93, 9], [94, 9], [95, 49], [96, 50], [97, 0], [98, 0], [99, 0], [100, 52], [101, 52], [102, 53], [103, 54], [104, 15], [105, 56], [106, 57], [107, 17], [108, 1], [109, 2], [110, 58], [111, 58], [112, 59], [113, 2], [114, 60], [115, 63], [116, 63], [117, 3], [118, 4], [119, 66], [120, 66], [121, 33], [122, 70], [123, 71], [124, 34], [125, 72], [126, 73], [127, 35], [128, 75], [129, 76], [130, 5], [131, 77], [132, 78], [133, 79], [134, 79], [135, 5], [136, 5], [137, 39], [138, 82], [139, 84], [140, 7], [141, 85], [142, 86], [143, 8], [144, 91], [145, 91], [146, 92], [147, 9], [148, 9], [149, 9], [150, 93], [151, 93], [152, 94], [153, 94], [154, 50], [155, 50], [156, 50], [157, 96], [158, 97], [159, 100], [160, 100], [161, 101], [162, 13], [163, 14], [164, 104], [165, 104], [166, 106], [167, 109], [168, 113], [169, 60], [170, 63], [171, 63], [172, 116], [173, 117], [174, 118], [175, 118], [176, 120], [177, 127], [178, 127], [179, 35], [180, 36], [181, 131], [182, 132], [183, 79], [184, 79], [185, 134], [186, 135], [187, 136], [188, 39], [189, 39], [190, 137], [191, 39], [192, 39], [193, 39], [194, 40], [195, 141], [196, 141], [197, 145], [198, 92], [199, 92], [200, 92], [201, 92], [202, 92], [203, 92], [204, 147], [205, 148], [206, 149], [207, 93], [208, 151], [209, 153], [210, 50], [211, 50], [212, 154], [213, 154], [214, 155], [215, 156], [216, 50], [217, 50], [218, 50], [219, 159], [220, 160], [221, 52], [222, 162], [223, 165], [224, 167], [225, 58], [226, 59], [227, 168], [228, 168], [229, 63], [230, 170], [231, 171], [232, 66], [233, 121], [234, 127], [235, 177], [236, 178], [237, 179], [238, 77], [239, 78], [240, 183], [241, 184], [242, 192], [243, 195], [244, 91], [245, 92], [246, 198], [247, 198], [248, 92], [249, 92], [250, 199], [251, 199], [252, 92], [253, 92], [254, 200], [255, 201], [256, 201], [257, 202], [258, 92], [259, 203], [260, 207], [261, 207], [262, 94], [263, 211], [264, 154], [265, 213], [266, 214], [267, 214], [268, 215], [269, 215], [270, 216], [271, 217], [272, 218], [273, 219], [274, 100], [275, 221], [276, 104], [277, 226], [278, 229], [279, 229], [280, 64], [281, 232], [282, 232], [283, 233], [284, 233], [285, 124], [286, 124], [287, 137], [288, 137], [289, 137], [290, 244], [291, 245], [292, 199], [293, 251], [294, 252], [295, 253], [296, 200], [297, 200], [298, 200], [299, 254], [300, 256], [301, 258], [302, 203], [303, 261], [304, 262], [305, 263], [306, 264], [307, 155], [308, 266], [309, 266], [310, 267], [311, 267], [312, 156], [313, 268], [314, 271], [315, 159], [316, 159], [317, 274], [318, 277], [319, 170], [320, 171], [321, 233], [322, 283], [323, 284], [324, 285], [325, 285], [326, 286], [327, 286], [328, 183], [329, 184], [330, 189], [331, 291], [332, 292], [333, 296], [334, 296], [335, 200], [336, 200], [337, 200], [338, 200], [339, 200], [340, 200], [341, 297], [342, 297], [343, 200], [344, 201], [345, 202], [346, 301], [347, 301], [348, 207], [349, 306], [350, 306], [351, 309], [352, 309], [353, 310], [354, 311], [355, 311], [356, 313], [357, 315], [358, 316], [359, 319], [360, 319], [361, 320], [362, 320], [363, 234], [364, 234], [365, 296], [366, 296], [367, 297], [368, 343], [369, 344], [370, 345], [371, 348], [372, 264], [373, 264], [374, 363], [375, 364], [376, 292], [377, 292], [378, 365], [379, 365], [380, 297], [381, 297], [382, 297], [383, 297], [384, 297], [385, 297], [386, 368], [387, 370], [388, 321], [389, 321], [390, 321], [391, 375], [392, 379], [393, 335], [394, 336], [395, 337], [396, 338], [397, 339], [398, 340], [399, 386], [400, 388], [401, 388], [402, 389], [403, 389], [404, 390], [405, 365], [406, 399], [407, 372], [408, 373], [409, 404], [410, 380], [411, 381], [412, 382], [413, 383], [414, 384], [415, 385], [416, 406], [417, 407], [418, 408], [419, 416], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419]]}, {"function_name": "moveToFrontCodeAndSend", "code": "    private void moveToFrontCodeAndSend () throws IOException {\n        bsPutIntVS(24, origPtr);\n        generateMTFValues();\n        sendMTFValues();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "simpleSort", "code": "    private void simpleSort(int lo, int hi, int d) {\n        int i, j, h, bigN, hp;\n        int v;\n\n        bigN = hi - lo + 1;\n        if (bigN < 2) {\n            return;\n        }\n\n        hp = 0;\n        while (incs[hp] < bigN) {\n            hp++;\n        }\n        hp--;\n\n        for (; hp >= 0; hp--) {\n            h = incs[hp];\n\n            i = lo + h;\n            while (true) {\n                /* copy 1 */\n                if (i > hi) {\n                    break;\n                }\n                v = zptr[i];\n                j = i;\n                while (fullGtU(zptr[j - h] + d, v + d)) {\n                    zptr[j] = zptr[j - h];\n                    j = j - h;\n                    if (j <= (lo + h - 1)) {\n                        break;\n                    }\n                }\n                zptr[j] = v;\n                i++;\n\n                /* copy 2 */\n                if (i > hi) {\n                    break;\n                }\n                v = zptr[i];\n                j = i;\n                while (fullGtU(zptr[j - h] + d, v + d)) {\n                    zptr[j] = zptr[j - h];\n                    j = j - h;\n                    if (j <= (lo + h - 1)) {\n                        break;\n                    }\n                }\n                zptr[j] = v;\n                i++;\n\n                /* copy 3 */\n                if (i > hi) {\n                    break;\n                }\n                v = zptr[i];\n                j = i;\n                while (fullGtU(zptr[j - h] + d, v + d)) {\n                    zptr[j] = zptr[j - h];\n                    j = j - h;\n                    if (j <= (lo + h - 1)) {\n                        break;\n                    }\n                }\n                zptr[j] = v;\n                i++;\n\n                if (workDone > workLimit && firstAttempt) {\n                    return;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LOOP", "IF", "LOOP", "IF", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [3, 12], [0, 13], [1, 14], [9, 15], [11, 16], [3, 17], [12, 18], [13, 19], [14, 20], [1, 21], [1, 22], [19, 23], [19, 24], [14, 25], [14, 26], [14, 27], [14, 28], [14, 29], [14, 30], [14, 31], [21, 32], [25, 33], [14, 34], [26, 35], [14, 36], [14, 37], [27, 38], [14, 39], [28, 40], [14, 41], [14, 42], [29, 43], [14, 44], [30, 45], [14, 46], [14, 47], [31, 48], [25, 49], [33, 50], [26, 51], [35, 52], [35, 53], [27, 54], [28, 55], [40, 56], [40, 57], [29, 58], [30, 59], [45, 60], [45, 61], [31, 62], [51, 63], [26, 64], [26, 65], [55, 66], [28, 67], [28, 68], [59, 69], [30, 70], [30, 71], [51, 72], [63, 73], [64, 74], [55, 75], [66, 76], [67, 77], [59, 78], [69, 79], [70, 80], [73, 81], [73, 82], [53, 83], [76, 84], [76, 85], [57, 86], [79, 87], [79, 88], [61, 89], [65, 90], [68, 91], [71, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 3], [13, 0], [14, 1], [15, 9], [16, 11], [17, 3], [18, 12], [19, 13], [20, 14], [21, 1], [22, 1], [23, 19], [24, 19], [25, 14], [26, 14], [27, 14], [28, 14], [29, 14], [30, 14], [31, 14], [32, 21], [33, 25], [34, 14], [35, 26], [36, 14], [37, 14], [38, 27], [39, 14], [40, 28], [41, 14], [42, 14], [43, 29], [44, 14], [45, 30], [46, 14], [47, 14], [48, 31], [49, 25], [50, 33], [51, 26], [52, 35], [53, 35], [54, 27], [55, 28], [56, 40], [57, 40], [58, 29], [59, 30], [60, 45], [61, 45], [62, 31], [63, 51], [64, 26], [65, 26], [66, 55], [67, 28], [68, 28], [69, 59], [70, 30], [71, 30], [72, 51], [73, 63], [74, 64], [75, 55], [76, 66], [77, 67], [78, 59], [79, 69], [80, 70], [81, 73], [82, 73], [83, 53], [84, 76], [85, 76], [86, 57], [87, 79], [88, 79], [89, 61], [90, 65], [91, 68], [92, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "vswap", "code": "    private void vswap(int p1, int p2, int n) {\n        int temp = 0;\n        while (n > 0) {\n            temp = zptr[p1];\n            zptr[p1] = zptr[p2];\n            zptr[p2] = temp;\n            p1++;\n            p2++;\n            n--;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [1, 9], [1, 10], [1, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 1], [10, 1], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "med3", "code": "    private char med3(char a, char b, char c) {\n        char t;\n        if (a > b) {\n            t = a;\n            a = b;\n            b = t;\n        }\n        if (b > c) {\n            t = b;\n            b = c;\n            c = t;\n        }\n        if (a > b) {\n            b = a;\n        }\n        return b;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [2, 12], [3, 13], [3, 14], [3, 15], [4, 16], [4, 17], [4, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 2], [13, 3], [14, 3], [15, 3], [16, 4], [17, 4], [18, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "qSort3", "code": "    private void qSort3(int loSt, int hiSt, int dSt) {\n        int unLo, unHi, ltLo, gtHi, med, n, m;\n        int sp, lo, hi, d;\n        StackElem[] stack = new StackElem[QSORT_STACK_SIZE];\n        for (int count = 0; count < QSORT_STACK_SIZE; count++) {\n            stack[count] = new StackElem();\n        }\n\n        sp = 0;\n\n        stack[sp].ll = loSt;\n        stack[sp].hh = hiSt;\n        stack[sp].dd = dSt;\n        sp++;\n\n        while (sp > 0) {\n            if (sp >= QSORT_STACK_SIZE) {\n                panic();\n            }\n\n            sp--;\n            lo = stack[sp].ll;\n            hi = stack[sp].hh;\n            d = stack[sp].dd;\n\n            if (hi - lo < SMALL_THRESH || d > DEPTH_THRESH) {\n                simpleSort(lo, hi, d);\n                if (workDone > workLimit && firstAttempt) {\n                    return;\n                }\n                continue;\n            }\n\n            med = med3(block[zptr[lo] + d + 1],\n                       block[zptr[hi            ] + d  + 1],\n                       block[zptr[(lo + hi) >> 1] + d + 1]);\n\n            unLo = ltLo = lo;\n            unHi = gtHi = hi;\n\n            while (true) {\n                while (true) {\n                    if (unLo > unHi) {\n                        break;\n                    }\n                    n = ((int) block[zptr[unLo] + d + 1]) - med;\n                    if (n == 0) {\n                        int temp = 0;\n                        temp = zptr[unLo];\n                        zptr[unLo] = zptr[ltLo];\n                        zptr[ltLo] = temp;\n                        ltLo++;\n                        unLo++;\n                        continue;\n                    };\n                    if (n >  0) {\n                        break;\n                    }\n                    unLo++;\n                }\n                while (true) {\n                    if (unLo > unHi) {\n                        break;\n                    }\n                    n = ((int) block[zptr[unHi] + d + 1]) - med;\n                    if (n == 0) {\n                        int temp = 0;\n                        temp = zptr[unHi];\n                        zptr[unHi] = zptr[gtHi];\n                        zptr[gtHi] = temp;\n                        gtHi--;\n                        unHi--;\n                        continue;\n                    };\n                    if (n <  0) {\n                        break;\n                    }\n                    unHi--;\n                }\n                if (unLo > unHi) {\n                    break;\n                }\n                int temp = 0;\n                temp = zptr[unLo];\n                zptr[unLo] = zptr[unHi];\n                zptr[unHi] = temp;\n                unLo++;\n                unHi--;\n            }\n\n            if (gtHi < ltLo) {\n                stack[sp].ll = lo;\n                stack[sp].hh = hi;\n                stack[sp].dd = d + 1;\n                sp++;\n                continue;\n            }\n\n            n = ((ltLo - lo) < (unLo - ltLo)) ? (ltLo - lo) : (unLo - ltLo);\n            vswap(lo, unLo - n, n);\n            m = ((hi - gtHi) < (gtHi - unHi)) ? (hi - gtHi) : (gtHi - unHi);\n            vswap(unLo, hi - m + 1, m);\n\n            n = lo + unLo - ltLo - 1;\n            m = hi - (gtHi - unHi) + 1;\n\n            stack[sp].ll = lo;\n            stack[sp].hh = n;\n            stack[sp].dd = d;\n            sp++;\n\n            stack[sp].ll = n + 1;\n            stack[sp].hh = m - 1;\n            stack[sp].dd = d + 1;\n            sp++;\n\n            stack[sp].ll = m;\n            stack[sp].hh = hi;\n            stack[sp].dd = d;\n            sp++;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "LOOP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "COND_EXPR", "BREAK_CONTINUE", "VAR_DECL", "IF", "LOOP", "LOOP", "ASSIGN", "ASSIGN", "CALL", "BREAK_CONTINUE", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "IF", "IF", "IF", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [1, 15], [1, 16], [1, 17], [1, 18], [9, 19], [13, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [15, 36], [16, 37], [1, 38], [1, 39], [1, 40], [17, 41], [1, 42], [1, 43], [1, 44], [18, 45], [2, 46], [2, 47], [24, 48], [25, 49], [26, 50], [30, 51], [31, 52], [32, 53], [33, 54], [34, 55], [35, 56], [15, 57], [16, 58], [16, 59], [16, 60], [16, 61], [38, 62], [39, 63], [40, 64], [17, 65], [17, 66], [41, 67], [41, 68], [46, 69], [48, 70], [49, 71], [50, 72], [51, 73], [51, 74], [52, 75], [52, 76], [53, 77], [53, 78], [54, 79], [54, 80], [54, 81], [56, 82], [56, 83], [56, 84], [15, 85], [15, 86], [15, 87], [16, 88], [16, 89], [16, 90], [59, 91], [60, 92], [61, 93], [66, 94], [17, 95], [68, 96], [18, 97], [74, 98], [76, 99], [81, 100], [81, 101], [84, 102], [84, 103], [85, 104], [58, 105], [59, 106], [60, 107], [60, 108], [60, 109], [61, 110], [61, 111], [61, 112], [66, 113], [94, 114], [104, 115], [107, 116], [108, 117], [60, 118], [109, 119], [110, 120], [111, 121], [61, 122], [112, 123], [64, 124], [64, 125], [64, 126], [107, 127], [116, 128], [108, 129], [108, 130], [117, 131], [118, 132], [109, 133], [110, 134], [120, 135], [111, 136], [111, 137], [121, 138], [122, 139], [112, 140], [124, 141], [124, 142], [125, 143], [125, 144], [126, 145], [126, 146], [108, 147], [108, 148], [108, 149], [111, 150], [111, 151], [111, 152], [130, 153], [137, 154], [142, 155], [132, 156], [139, 157], [155, 158], [155, 159], [156, 160], [156, 161], [157, 162], [157, 163], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 1], [16, 1], [17, 1], [18, 1], [19, 9], [20, 13], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 15], [37, 16], [38, 1], [39, 1], [40, 1], [41, 17], [42, 1], [43, 1], [44, 1], [45, 18], [46, 2], [47, 2], [48, 24], [49, 25], [50, 26], [51, 30], [52, 31], [53, 32], [54, 33], [55, 34], [56, 35], [57, 15], [58, 16], [59, 16], [60, 16], [61, 16], [62, 38], [63, 39], [64, 40], [65, 17], [66, 17], [67, 41], [68, 41], [69, 46], [70, 48], [71, 49], [72, 50], [73, 51], [74, 51], [75, 52], [76, 52], [77, 53], [78, 53], [79, 54], [80, 54], [81, 54], [82, 56], [83, 56], [84, 56], [85, 15], [86, 15], [87, 15], [88, 16], [89, 16], [90, 16], [91, 59], [92, 60], [93, 61], [94, 66], [95, 17], [96, 68], [97, 18], [98, 74], [99, 76], [100, 81], [101, 81], [102, 84], [103, 84], [104, 85], [105, 58], [106, 59], [107, 60], [108, 60], [109, 60], [110, 61], [111, 61], [112, 61], [113, 66], [114, 94], [115, 104], [116, 107], [117, 108], [118, 60], [119, 109], [120, 110], [121, 111], [122, 61], [123, 112], [124, 64], [125, 64], [126, 64], [127, 107], [128, 116], [129, 108], [130, 108], [131, 117], [132, 118], [133, 109], [134, 110], [135, 120], [136, 111], [137, 111], [138, 121], [139, 122], [140, 112], [141, 124], [142, 124], [143, 125], [144, 125], [145, 126], [146, 126], [147, 108], [148, 108], [149, 108], [150, 111], [151, 111], [152, 111], [153, 130], [154, 137], [155, 142], [156, 132], [157, 139], [158, 155], [159, 155], [160, 156], [161, 156], [162, 157], [163, 157], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163]]}, {"function_name": "mainSort", "code": "    private void mainSort() {\n        int i, j, ss, sb;\n        int[] runningOrder = new int[256];\n        int[] copy = new int[256];\n        boolean[] bigDone = new boolean[256];\n        int c1, c2;\n        int numQSorted;\n\n        /*\n          In the various block-sized structures, live data runs\n          from 0 to last+NUM_OVERSHOOT_BYTES inclusive.  First,\n          set up the overshoot area for block.\n        */\n\n        for (i = 0; i < NUM_OVERSHOOT_BYTES; i++) {\n            block[last + i + 2] = block[(i % (last + 1)) + 1];\n        }\n        for (i = 0; i <= last + NUM_OVERSHOOT_BYTES; i++) {\n            quadrant[i] = 0;\n        }\n\n        block[0] = (char) (block[last + 1]);\n\n        if (last < 4000) {\n            /*\n              Use simpleSort(), since the full sorting mechanism\n              has quite a large constant overhead.\n            */\n            for (i = 0; i <= last; i++) {\n                zptr[i] = i;\n            }\n            firstAttempt = false;\n            workDone = workLimit = 0;\n            simpleSort(0, last, 0);\n        } else {\n            numQSorted = 0;\n            for (i = 0; i <= 255; i++) {\n                bigDone[i] = false;\n            }\n\n            for (i = 0; i <= 65536; i++) {\n                ftab[i] = 0;\n            }\n\n            c1 = block[0];\n            for (i = 0; i <= last; i++) {\n                c2 = block[i + 1];\n                ftab[(c1 << 8) + c2]++;\n                c1 = c2;\n            }\n\n            for (i = 1; i <= 65536; i++) {\n                ftab[i] += ftab[i - 1];\n            }\n\n            c1 = block[1];\n            for (i = 0; i < last; i++) {\n                c2 = block[i + 2];\n                j = (c1 << 8) + c2;\n                c1 = c2;\n                ftab[j]--;\n                zptr[ftab[j]] = i;\n            }\n\n            j = ((block[last + 1]) << 8) + (block[1]);\n            ftab[j]--;\n            zptr[ftab[j]] = last;\n\n            /*\n              Now ftab contains the first loc of every small bucket.\n              Calculate the running order, from smallest to largest\n              big bucket.\n            */\n\n            for (i = 0; i <= 255; i++) {\n                runningOrder[i] = i;\n            }\n\n            {\n                int vv;\n                int h = 1;\n                do {\n                    h = 3 * h + 1;\n                }\n                while (h <= 256);\n                do {\n                    h = h / 3;\n                    for (i = h; i <= 255; i++) {\n                        vv = runningOrder[i];\n                        j = i;\n                        while ((ftab[((runningOrder[j - h]) + 1) << 8]\n                                - ftab[(runningOrder[j - h]) << 8])\n                                > (ftab[((vv) + 1) << 8] - ftab[(vv) << 8])) {\n                            runningOrder[j] = runningOrder[j - h];\n                            j = j - h;\n                            if (j <= (h - 1)) {\n                                break;\n                            }\n                        }\n                        runningOrder[j] = vv;\n                    }\n                } while (h != 1);\n            }\n\n            /*\n              The main sorting loop.\n            */\n            for (i = 0; i <= 255; i++) {\n\n                /*\n                  Process big buckets, starting with the least full.\n                */\n                ss = runningOrder[i];\n\n                /*\n                  Complete the big bucket [ss] by quicksorting\n                  any unsorted small buckets [ss, j].  Hopefully\n                  previous pointer-scanning phases have already\n                  completed many of the small buckets [ss, j], so\n                  we don't have to sort them at all.\n                */\n                for (j = 0; j <= 255; j++) {\n                    sb = (ss << 8) + j;\n                    if (!((ftab[sb] & SETMASK) == SETMASK)) {\n                        int lo = ftab[sb] & CLEARMASK;\n                        int hi = (ftab[sb + 1] & CLEARMASK) - 1;\n                        if (hi > lo) {\n                            qSort3(lo, hi, 2);\n                            numQSorted += (hi - lo + 1);\n                            if (workDone > workLimit && firstAttempt) {\n                                return;\n                            }\n                        }\n                        ftab[sb] |= SETMASK;\n                    }\n                }\n\n                /*\n                  The ss big bucket is now done.  Record this fact,\n                  and update the quadrant descriptors.  Remember to\n                  update quadrants in the overshoot area too, if\n                  necessary.  The \"if (i < 255)\" test merely skips\n                  this updating for the last bucket processed, since\n                  updating for the last bucket is pointless.\n                */\n                bigDone[ss] = true;\n\n                if (i < 255) {\n                    int bbStart  = ftab[ss << 8] & CLEARMASK;\n                    int bbSize   = (ftab[(ss + 1) << 8] & CLEARMASK) - bbStart;\n                    int shifts   = 0;\n\n                    while ((bbSize >> shifts) > 65534) {\n                        shifts++;\n                    }\n\n                    for (j = 0; j < bbSize; j++) {\n                        int a2update = zptr[bbStart + j];\n                        int qVal = (j >> shifts);\n                        quadrant[a2update] = qVal;\n                        if (a2update < NUM_OVERSHOOT_BYTES) {\n                            quadrant[a2update + last + 1] = qVal;\n                        }\n                    }\n\n                    if (!(((bbSize - 1) >> shifts) <= 65535)) {\n                        panic();\n                    }\n                }\n\n                /*\n                  Now scan this big bucket so as to synthesise the\n                  sorted order for small buckets [t, ss] for all t != ss.\n                */\n                for (j = 0; j <= 255; j++) {\n                    copy[j] = ftab[(j << 8) + ss] & CLEARMASK;\n                }\n\n                for (j = ftab[ss << 8] & CLEARMASK;\n                     j < (ftab[(ss + 1) << 8] & CLEARMASK); j++) {\n                    c1 = block[zptr[j]];\n                    if (!bigDone[c1]) {\n                        zptr[copy[c1]] = zptr[j] == 0 ? last : zptr[j] - 1;\n                        copy[c1]++;\n                    }\n                }\n\n                for (j = 0; j <= 255; j++) {\n                    ftab[(j << 8) + ss] |= SETMASK;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LOOP", "LOOP", "IF", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [2, 12], [2, 13], [3, 14], [3, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [10, 24], [12, 25], [13, 26], [15, 27], [16, 28], [16, 29], [1, 30], [1, 31], [1, 32], [1, 33], [17, 34], [17, 35], [1, 36], [1, 37], [18, 38], [18, 39], [1, 40], [19, 41], [19, 42], [20, 43], [20, 44], [1, 45], [21, 46], [21, 47], [22, 48], [22, 49], [1, 50], [1, 51], [1, 52], [1, 53], [23, 54], [23, 55], [2, 56], [3, 57], [6, 58], [7, 59], [8, 60], [16, 61], [16, 62], [16, 63], [16, 64], [16, 65], [28, 66], [29, 67], [30, 68], [31, 69], [34, 70], [35, 71], [37, 72], [39, 73], [41, 74], [42, 75], [44, 76], [46, 77], [47, 78], [48, 79], [49, 80], [50, 81], [51, 82], [51, 83], [52, 84], [53, 85], [55, 86], [11, 87], [56, 88], [61, 89], [61, 90], [62, 91], [62, 92], [63, 93], [63, 94], [64, 95], [16, 96], [65, 97], [65, 98], [16, 99], [30, 100], [68, 101], [69, 102], [32, 103], [17, 104], [72, 105], [18, 106], [18, 107], [18, 108], [18, 109], [19, 110], [20, 111], [20, 112], [21, 113], [22, 114], [84, 115], [23, 116], [89, 117], [90, 118], [62, 119], [91, 120], [92, 121], [93, 122], [94, 123], [64, 124], [64, 125], [64, 126], [64, 127], [64, 128], [64, 129], [95, 130], [96, 131], [65, 132], [97, 133], [98, 134], [100, 135], [100, 136], [30, 137], [31, 138], [105, 139], [108, 140], [40, 141], [45, 142], [113, 143], [114, 144], [57, 145], [57, 146], [61, 147], [62, 148], [63, 149], [124, 150], [125, 151], [125, 152], [126, 153], [132, 154], [65, 155], [100, 156], [135, 157], [137, 158], [138, 159], [140, 160], [20, 161], [145, 162], [145, 163], [146, 164], [146, 165], [149, 166], [150, 167], [150, 168], [125, 169], [125, 170], [125, 171], [152, 172], [153, 173], [153, 174], [127, 175], [128, 176], [129, 177], [132, 178], [132, 179], [132, 180], [154, 181], [155, 182], [100, 183], [156, 184], [100, 185], [100, 186], [158, 187], [159, 188], [159, 189], [160, 190], [109, 191], [110, 192], [161, 193], [112, 194], [163, 195], [119, 196], [120, 197], [121, 198], [124, 199], [168, 200], [169, 201], [125, 202], [176, 203], [132, 204], [178, 205], [182, 206], [156, 207], [184, 208], [184, 209], [189, 210], [191, 211], [192, 212], [193, 213], [194, 214], [195, 215], [147, 216], [196, 217], [197, 218], [197, 219], [198, 220], [200, 221], [170, 222], [178, 223], [179, 224], [180, 225], [206, 226], [207, 227], [156, 228], [156, 229], [216, 230], [217, 231], [217, 232], [219, 233], [166, 234], [169, 235], [177, 236], [223, 237], [178, 238], [178, 239], [224, 240], [224, 241], [207, 242], [227, 243], [228, 244], [230, 245], [231, 246], [232, 247], [234, 248], [171, 249], [203, 250], [236, 251], [223, 252], [237, 253], [238, 254], [239, 255], [243, 256], [208, 257], [208, 258], [209, 259], [209, 260], [248, 261], [250, 262], [250, 263], [254, 264], [254, 265], [229, 266], [257, 267], [258, 268], [259, 269], [260, 270], [260, 271], [235, 272], [263, 273], [241, 274], [258, 275], [271, 276], [272, 277], [272, 278], [274, 279], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 2], [13, 2], [14, 3], [15, 3], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 10], [25, 12], [26, 13], [27, 15], [28, 16], [29, 16], [30, 1], [31, 1], [32, 1], [33, 1], [34, 17], [35, 17], [36, 1], [37, 1], [38, 18], [39, 18], [40, 1], [41, 19], [42, 19], [43, 20], [44, 20], [45, 1], [46, 21], [47, 21], [48, 22], [49, 22], [50, 1], [51, 1], [52, 1], [53, 1], [54, 23], [55, 23], [56, 2], [57, 3], [58, 6], [59, 7], [60, 8], [61, 16], [62, 16], [63, 16], [64, 16], [65, 16], [66, 28], [67, 29], [68, 30], [69, 31], [70, 34], [71, 35], [72, 37], [73, 39], [74, 41], [75, 42], [76, 44], [77, 46], [78, 47], [79, 48], [80, 49], [81, 50], [82, 51], [83, 51], [84, 52], [85, 53], [86, 55], [87, 11], [88, 56], [89, 61], [90, 61], [91, 62], [92, 62], [93, 63], [94, 63], [95, 64], [96, 16], [97, 65], [98, 65], [99, 16], [100, 30], [101, 68], [102, 69], [103, 32], [104, 17], [105, 72], [106, 18], [107, 18], [108, 18], [109, 18], [110, 19], [111, 20], [112, 20], [113, 21], [114, 22], [115, 84], [116, 23], [117, 89], [118, 90], [119, 62], [120, 91], [121, 92], [122, 93], [123, 94], [124, 64], [125, 64], [126, 64], [127, 64], [128, 64], [129, 64], [130, 95], [131, 96], [132, 65], [133, 97], [134, 98], [135, 100], [136, 100], [137, 30], [138, 31], [139, 105], [140, 108], [141, 40], [142, 45], [143, 113], [144, 114], [145, 57], [146, 57], [147, 61], [148, 62], [149, 63], [150, 124], [151, 125], [152, 125], [153, 126], [154, 132], [155, 65], [156, 100], [157, 135], [158, 137], [159, 138], [160, 140], [161, 20], [162, 145], [163, 145], [164, 146], [165, 146], [166, 149], [167, 150], [168, 150], [169, 125], [170, 125], [171, 125], [172, 152], [173, 153], [174, 153], [175, 127], [176, 128], [177, 129], [178, 132], [179, 132], [180, 132], [181, 154], [182, 155], [183, 100], [184, 156], [185, 100], [186, 100], [187, 158], [188, 159], [189, 159], [190, 160], [191, 109], [192, 110], [193, 161], [194, 112], [195, 163], [196, 119], [197, 120], [198, 121], [199, 124], [200, 168], [201, 169], [202, 125], [203, 176], [204, 132], [205, 178], [206, 182], [207, 156], [208, 184], [209, 184], [210, 189], [211, 191], [212, 192], [213, 193], [214, 194], [215, 195], [216, 147], [217, 196], [218, 197], [219, 197], [220, 198], [221, 200], [222, 170], [223, 178], [224, 179], [225, 180], [226, 206], [227, 207], [228, 156], [229, 156], [230, 216], [231, 217], [232, 217], [233, 219], [234, 166], [235, 169], [236, 177], [237, 223], [238, 178], [239, 178], [240, 224], [241, 224], [242, 207], [243, 227], [244, 228], [245, 230], [246, 231], [247, 232], [248, 234], [249, 171], [250, 203], [251, 236], [252, 223], [253, 237], [254, 238], [255, 239], [256, 243], [257, 208], [258, 208], [259, 209], [260, 209], [261, 248], [262, 250], [263, 250], [264, 254], [265, 254], [266, 229], [267, 257], [268, 258], [269, 259], [270, 260], [271, 260], [272, 235], [273, 263], [274, 241], [275, 258], [276, 271], [277, 272], [278, 272], [279, 274], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279]]}, {"function_name": "randomiseBlock", "code": "    private void randomiseBlock() {\n        int i;\n        int rNToGo = 0;\n        int rTPos  = 0;\n        for (i = 0; i < 256; i++) {\n            inUse[i] = false;\n        }\n\n        for (i = 0; i <= last; i++) {\n            if (rNToGo == 0) {\n                rNToGo = (char) rNums[rTPos];\n                rTPos++;\n                if (rTPos == 512) {\n                    rTPos = 0;\n                }\n            }\n            rNToGo--;\n            block[i + 1] ^= ((rNToGo == 1) ? 1 : 0);\n            block[i + 1] &= 0xFF;\n\n            inUse[block[i + 1]] = true;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [2, 9], [1, 10], [7, 11], [8, 12], [9, 13], [3, 14], [4, 15], [1, 16], [1, 17], [1, 18], [10, 19], [2, 20], [16, 21], [17, 22], [18, 23], [10, 24], [19, 25], [20, 26], [23, 27], [23, 28], [23, 29], [24, 30], [10, 31], [17, 32], [29, 33], [18, 34], [30, 35], [32, 36], [34, 37], [24, 38], [16, 39], [38, 40], [39, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 2], [10, 1], [11, 7], [12, 8], [13, 9], [14, 3], [15, 4], [16, 1], [17, 1], [18, 1], [19, 10], [20, 2], [21, 16], [22, 17], [23, 18], [24, 10], [25, 19], [26, 20], [27, 23], [28, 23], [29, 23], [30, 24], [31, 10], [32, 17], [33, 29], [34, 18], [35, 30], [36, 32], [37, 34], [38, 24], [39, 16], [40, 38], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "doReversibleTransformation", "code": "    private void doReversibleTransformation() {\n        int i;\n\n        workLimit = workFactor * last;\n        workDone = 0;\n        blockRandomised = false;\n        firstAttempt = true;\n\n        mainSort();\n\n        if (workDone > workLimit && firstAttempt) {\n            randomiseBlock();\n            workLimit = workDone = 0;\n            blockRandomised = true;\n            firstAttempt = false;\n            mainSort();\n        }\n\n        origPtr = -1;\n        for (i = 0; i <= last; i++) {\n            if (zptr[i] == 0) {\n                origPtr = i;\n                break;\n            }\n        };\n\n        if (origPtr == -1) {\n            panic();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [0, 8], [3, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [5, 15], [2, 16], [7, 17], [8, 18], [9, 19], [11, 20], [12, 21], [13, 22], [14, 23], [1, 24], [16, 25], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [16, 31], [25, 32], [27, 33], [28, 34], [29, 35], [16, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 0], [9, 3], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 5], [16, 2], [17, 7], [18, 8], [19, 9], [20, 11], [21, 12], [22, 13], [23, 14], [24, 1], [25, 16], [26, 3], [27, 3], [28, 3], [29, 3], [30, 3], [31, 16], [32, 25], [33, 27], [34, 28], [35, 29], [36, 16], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "fullGtU", "code": "    private boolean fullGtU(int i1, int i2) {\n        int k;\n        char c1, c2;\n        int s1, s2;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        c1 = block[i1 + 1];\n        c2 = block[i2 + 1];\n        if (c1 != c2) {\n            return (c1 > c2);\n        }\n        i1++;\n        i2++;\n\n        k = last + 1;\n\n        do {\n            c1 = block[i1 + 1];\n            c2 = block[i2 + 1];\n            if (c1 != c2) {\n                return (c1 > c2);\n            }\n            s1 = quadrant[i1];\n            s2 = quadrant[i2];\n            if (s1 != s2) {\n                return (s1 > s2);\n            }\n            i1++;\n            i2++;\n\n            c1 = block[i1 + 1];\n            c2 = block[i2 + 1];\n            if (c1 != c2) {\n                return (c1 > c2);\n            }\n            s1 = quadrant[i1];\n            s2 = quadrant[i2];\n            if (s1 != s2) {\n                return (s1 > s2);\n            }\n            i1++;\n            i2++;\n\n            c1 = block[i1 + 1];\n            c2 = block[i2 + 1];\n            if (c1 != c2) {\n                return (c1 > c2);\n            }\n            s1 = quadrant[i1];\n            s2 = quadrant[i2];\n            if (s1 != s2) {\n                return (s1 > s2);\n            }\n            i1++;\n            i2++;\n\n            c1 = block[i1 + 1];\n            c2 = block[i2 + 1];\n            if (c1 != c2) {\n                return (c1 > c2);\n            }\n            s1 = quadrant[i1];\n            s2 = quadrant[i2];\n            if (s1 != s2) {\n                return (s1 > s2);\n            }\n            i1++;\n            i2++;\n\n            if (i1 > last) {\n                i1 -= last;\n                i1--;\n            };\n            if (i2 > last) {\n                i2 -= last;\n                i2--;\n            };\n\n            k -= 4;\n            workDone++;\n        } while (k >= 0);\n\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [0, 16], [3, 17], [0, 18], [0, 19], [4, 20], [0, 21], [0, 22], [5, 23], [0, 24], [0, 25], [6, 26], [0, 27], [0, 28], [7, 29], [0, 30], [0, 31], [8, 32], [0, 33], [0, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [15, 45], [16, 46], [3, 47], [4, 48], [5, 49], [6, 50], [7, 51], [8, 52], [2, 53], [35, 54], [36, 55], [37, 56], [2, 57], [2, 58], [38, 59], [2, 60], [2, 61], [39, 62], [2, 63], [2, 64], [40, 65], [2, 66], [2, 67], [41, 68], [2, 69], [2, 70], [42, 71], [2, 72], [2, 73], [43, 74], [2, 75], [2, 76], [44, 77], [2, 78], [2, 79], [46, 80], [47, 81], [48, 82], [49, 83], [50, 84], [51, 85], [52, 86], [53, 87], [37, 88], [38, 89], [39, 90], [40, 91], [41, 92], [42, 93], [43, 94], [44, 95], [18, 96], [19, 97], [21, 98], [22, 99], [24, 100], [25, 101], [27, 102], [28, 103], [30, 104], [31, 105], [33, 106], [34, 107], [35, 108], [36, 109], [88, 110], [89, 111], [90, 112], [91, 113], [92, 114], [93, 115], [94, 116], [95, 117], [96, 118], [97, 119], [98, 120], [99, 121], [100, 122], [101, 123], [102, 124], [103, 125], [104, 126], [105, 127], [106, 128], [107, 129], [60, 130], [61, 131], [66, 132], [67, 133], [72, 134], [73, 135], [78, 136], [79, 137], [130, 138], [131, 139], [132, 140], [133, 141], [134, 142], [135, 143], [136, 144], [137, 145], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 0], [17, 3], [18, 0], [19, 0], [20, 4], [21, 0], [22, 0], [23, 5], [24, 0], [25, 0], [26, 6], [27, 0], [28, 0], [29, 7], [30, 0], [31, 0], [32, 8], [33, 0], [34, 0], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 15], [46, 16], [47, 3], [48, 4], [49, 5], [50, 6], [51, 7], [52, 8], [53, 2], [54, 35], [55, 36], [56, 37], [57, 2], [58, 2], [59, 38], [60, 2], [61, 2], [62, 39], [63, 2], [64, 2], [65, 40], [66, 2], [67, 2], [68, 41], [69, 2], [70, 2], [71, 42], [72, 2], [73, 2], [74, 43], [75, 2], [76, 2], [77, 44], [78, 2], [79, 2], [80, 46], [81, 47], [82, 48], [83, 49], [84, 50], [85, 51], [86, 52], [87, 53], [88, 37], [89, 38], [90, 39], [91, 40], [92, 41], [93, 42], [94, 43], [95, 44], [96, 18], [97, 19], [98, 21], [99, 22], [100, 24], [101, 25], [102, 27], [103, 28], [104, 30], [105, 31], [106, 33], [107, 34], [108, 35], [109, 36], [110, 88], [111, 89], [112, 90], [113, 91], [114, 92], [115, 93], [116, 94], [117, 95], [118, 96], [119, 97], [120, 98], [121, 99], [122, 100], [123, 101], [124, 102], [125, 103], [126, 104], [127, 105], [128, 106], [129, 107], [130, 60], [131, 61], [132, 66], [133, 67], [134, 72], [135, 73], [136, 78], [137, 79], [138, 130], [139, 131], [140, 132], [141, 133], [142, 134], [143, 135], [144, 136], [145, 137], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145]]}, {"function_name": "allocateCompressStructures", "code": "    private void allocateCompressStructures () {\n        int n = baseBlockSize * blockSize100k;\n        block = new char[(n + 1 + NUM_OVERSHOOT_BYTES)];\n        quadrant = new int[(n + NUM_OVERSHOOT_BYTES)];\n        zptr = new int[n];\n        ftab = new int[65537];\n\n        if (block == null || quadrant == null || zptr == null\n            || ftab == null) {\n        }\n\n        /*\n          The back end needs a place to store the MTF values\n          whilst it calculates the coding tables.  We could\n          put them in the zptr array.  However, these values\n          will fit in a short, so we overlay szptr at the\n          start of zptr, in the hope of reducing the number\n          of cache misses induced by the multiple traversals\n          of the MTF values when calculating coding tables.\n          Seems to improve compression speed by about 1%.\n        */\n\n\n        szptr = new short[2 * n];", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [4, 10], [2, 11], [3, 12], [9, 13], [10, 14], [10, 15], [5, 16], [7, 17], [8, 18], [12, 19], [14, 20], [15, 21], [15, 22], [18, 23], [21, 24], [22, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 4], [11, 2], [12, 3], [13, 9], [14, 10], [15, 10], [16, 5], [17, 7], [18, 8], [19, 12], [20, 14], [21, 15], [22, 15], [23, 18], [24, 21], [25, 22], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "generateMTFValues", "code": "    private void generateMTFValues() {\n        char[] yy = new char[256];\n        int  i, j;\n        char tmp;\n        char tmp2;\n        int zPend;\n        int wr;\n        int EOB;\n\n        makeMaps();\n        EOB = nInUse + 1;\n\n        for (i = 0; i <= EOB; i++) {\n            mtfFreq[i] = 0;\n        }\n\n        wr = 0;\n        zPend = 0;\n        for (i = 0; i < nInUse; i++) {\n            yy[i] = (char) i;\n        }\n\n\n        for (i = 0; i <= last; i++) {\n            char ll_i;\n\n            ll_i = unseqToSeq[block[zptr[i]]];\n\n            j = 0;\n            tmp = yy[j];\n            while (ll_i != tmp) {\n                j++;\n                tmp2 = tmp;\n                tmp = yy[j];\n                yy[j] = tmp2;\n            };\n            yy[0] = tmp;\n\n            if (j == 0) {\n                zPend++;\n            } else {\n                if (zPend > 0) {\n                    zPend--;\n                    while (true) {\n                        switch (zPend % 2) {\n                        case 0:\n                            szptr[wr] = (short) RUNA;\n                            wr++;\n                            mtfFreq[RUNA]++;\n                            break;\n                        case 1:\n                            szptr[wr] = (short) RUNB;\n                            wr++;\n                            mtfFreq[RUNB]++;\n                            break;\n                        };\n                        if (zPend < 2) {\n                            break;\n                        }\n                        zPend = (zPend - 2) / 2;\n                    };\n                    zPend = 0;\n                }\n                szptr[wr] = (short) (j + 1);\n                wr++;\n                mtfFreq[j + 1]++;\n            }\n        }\n\n        if (zPend > 0) {\n            zPend--;\n            while (true) {\n                switch (zPend % 2) {\n                case 0:\n                    szptr[wr] = (short) RUNA;\n                    wr++;\n                    mtfFreq[RUNA]++;\n                    break;\n                case 1:\n                    szptr[wr] = (short) RUNB;\n                    wr++;\n                    mtfFreq[RUNB]++;\n                    break;\n                }\n                if (zPend < 2) {\n                    break;\n                }\n                zPend = (zPend - 2) / 2;\n            }\n        }\n\n        szptr[wr] = (short) EOB;\n        wr++;\n        mtfFreq[EOB]++;\n\n        nMTF = wr;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LOOP", "LITERAL_ANCHOR", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "SWITCH", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "SWITCH", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [2, 16], [3, 17], [3, 18], [0, 19], [0, 20], [4, 21], [4, 22], [0, 23], [0, 24], [1, 25], [14, 26], [2, 27], [2, 28], [2, 29], [16, 30], [18, 31], [19, 32], [20, 33], [22, 34], [23, 35], [25, 36], [27, 37], [2, 38], [28, 39], [2, 40], [2, 41], [2, 42], [3, 43], [4, 44], [35, 45], [11, 46], [25, 47], [25, 48], [27, 49], [37, 50], [41, 51], [44, 52], [25, 53], [47, 54], [48, 55], [27, 56], [49, 57], [28, 58], [28, 59], [28, 60], [53, 61], [47, 62], [54, 63], [48, 64], [48, 65], [48, 66], [48, 67], [55, 68], [49, 69], [57, 70], [38, 71], [61, 72], [61, 73], [48, 74], [48, 75], [27, 76], [56, 77], [49, 78], [69, 79], [73, 80], [76, 81], [77, 82], [78, 83], [69, 84], [69, 85], [69, 86], [84, 87], [85, 88], [86, 89], [84, 90], [87, 91], [85, 92], [85, 93], [85, 94], [85, 95], [88, 96], [89, 97], [89, 98], [85, 99], [85, 100], [98, 101], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 2], [17, 3], [18, 3], [19, 0], [20, 0], [21, 4], [22, 4], [23, 0], [24, 0], [25, 1], [26, 14], [27, 2], [28, 2], [29, 2], [30, 16], [31, 18], [32, 19], [33, 20], [34, 22], [35, 23], [36, 25], [37, 27], [38, 2], [39, 28], [40, 2], [41, 2], [42, 2], [43, 3], [44, 4], [45, 35], [46, 11], [47, 25], [48, 25], [49, 27], [50, 37], [51, 41], [52, 44], [53, 25], [54, 47], [55, 48], [56, 27], [57, 49], [58, 28], [59, 28], [60, 28], [61, 53], [62, 47], [63, 54], [64, 48], [65, 48], [66, 48], [67, 48], [68, 55], [69, 49], [70, 57], [71, 38], [72, 61], [73, 61], [74, 48], [75, 48], [76, 27], [77, 56], [78, 49], [79, 69], [80, 73], [81, 76], [82, 77], [83, 78], [84, 69], [85, 69], [86, 69], [87, 84], [88, 85], [89, 86], [90, 84], [91, 87], [92, 85], [93, 85], [94, 85], [95, 85], [96, 88], [97, 89], [98, 89], [99, 85], [100, 85], [101, 98], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101]]}, {"function_name": "CBZip2OutputStream", "code": "    public CBZip2OutputStream(OutputStream inStream) throws IOException {\n        this(inStream, 9);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CBZip2OutputStream", "code": "    public CBZip2OutputStream(OutputStream inStream, int inBlockSize)\n        throws IOException {\n        block = null;\n        quadrant = null;\n        zptr = null;\n        ftab = null;\n\n        bsSetStream(inStream);\n\n        workFactor = 50;\n        if (inBlockSize > 9) {\n            inBlockSize = 9;\n        }\n        if (inBlockSize < 1) {\n            inBlockSize = 1;\n        }\n        blockSize100k = inBlockSize;\n        allocateCompressStructures();\n        initialize();\n        initBlock();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [9, 17], [10, 18], [11, 19], [13, 20], [14, 21], [15, 22], [16, 23], [1, 24], [2, 25], [24, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 9], [18, 10], [19, 11], [20, 13], [21, 14], [22, 15], [23, 16], [24, 1], [25, 2], [26, 24], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}], "label": 1}
{"sample_id": "jedit-4.3-4765", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/DockableWindowManager.java", "language": "java", "name": "org.gjt.sp.jedit.gui.DockableWindowManager", "code": "@SuppressWarnings(\"serial\")\n// {{{ abstract class DockableWindowManager\n/**\n * <p>Keeps track of all dockable windows for a single View, and provides\n * an API for getting/showing/hiding them. </p>\n *\n * <p>Each {@link org.gjt.sp.jedit.View} has an instance of this class.</p>\n *\n * <p><b>dockables.xml:</b></p>\n *\n * <p>Dockable window definitions are read from <code>dockables.xml</code> files\n * contained inside plugin JARs. A dockable definition file has the following\n * form: </p>\n *\n * <pre>&lt;?xml version=\"1.0\"?&gt;\n *&lt;!DOCTYPE DOCKABLES SYSTEM \"dockables.dtd\"&gt;\n *&lt;DOCKABLES&gt;\n *    &lt;DOCKABLE NAME=\"<i>dockableName</i>\" MOVABLE=\"TRUE|FALSE\"&gt;\n *        // Code to create the dockable\n *    &lt;/DOCKABLE&gt;\n *&lt;/DOCKABLES&gt;</pre>\n *\n * <p>The MOVABLE attribute specifies the behavior when the docking position of\n * the dockable window is changed. If MOVABLE is TRUE, the existing instance of\n * the dockable window is moved to the new docking position, and if the dockable\n * window implements the DockableWindow interface (see {@link DockableWindow}),\n * it is also notified about the change in docking position before it is moved.\n * If MOVABLE is FALSE, the BeanShell code is invoked to get the instance of\n * the dockable window to put in the new docking position. Typically, the\n * BeanShell code returns a new instance of the dockable window, and the state\n * of the existing instance is not preserved after the change. It is therefore\n * recommended to set MOVABLE to TRUE for all dockables in order to make them\n * preserve their state when they are moved. For backward compatibility reasons,\n * this attribute is set to FALSE by default.</p>\n * <p>More than one <code>&lt;DOCKABLE&gt;</code> tag may be present. The code that\n * creates the dockable can reference any BeanShell built-in variable\n * (see {@link org.gjt.sp.jedit.BeanShell}), along with a variable\n * <code>position</code> whose value is one of\n * {@link #FLOATING}, {@link #TOP}, {@link #LEFT}, {@link #BOTTOM},\n * and {@link #RIGHT}. </p>\n *\n * <p>The following properties must be defined for each dockable window: </p>\n *\n * <ul>\n * <li><code><i>dockableName</i>.title</code> - the string to show on the dockable\n * button. </li>\n * <li><code><i>dockableName</i>.label</code> - The string to use for generating\n *    menu items and action names. </li>\n * <li><code><i>dockableName</i>.longtitle</code> - (optional) the string to use\n *      in the dockable's floating window title (when it is floating).\n *       If not specified, the <code><i>dockableName</i>.title</code> property is used. </li>\n * </ul>\n *\n * A number of actions are automatically created for each dockable window:\n *\n * <ul>\n * <li><code><i>dockableName</i></code> - opens the dockable window.</li>\n * <li><code><i>dockableName</i>-toggle</code> - toggles the dockable window's visibility.</li>\n * <li><code><i>dockableName</i>-float</code> - opens the dockable window in a new\n * floating window.</li>\n * </ul>\n *\n * Note that only the first action needs a <code>label</code> property, the\n * rest have automatically-generated labels.\n *\n * <p> <b>Implementation details:</b></p>\n *\n * <p> When an instance of this class is initialized by the {@link org.gjt.sp.jedit.View}\n * class, it\n * iterates through the list of registered dockable windows (from jEdit itself,\n * and any loaded plugins) and\n * examines options supplied by the user in the <b>Global\n * Options</b> dialog box. Any plugins designated for one of the\n * four docking positions are displayed.</p>\n *\n * <p> To create an instance of a dockable window, the <code>DockableWindowManager</code>\n * finds and executes the BeanShell code extracted from the appropriate\n * <code>dockables.xml</code> file. This code will typically consist of a call\n * to the constructor of the dockable window component. The result of the\n * BeanShell expression, typically a newly constructed component, is placed\n * in a window managed by this class. </p>\n *\n * @see org.gjt.sp.jedit.View#getDockableWindowManager()\n *\n * @author Slava Pestov\n * @author John Gellene (API documentation)\n * @author Shlomy Reinstein (refactoring into a base and an impl)\n * @version $Id: DockableWindowManager.java 16341 2009-10-14 10:05:51Z kpouer $\n * @since jEdit 2.6pre3\n *\n */\n public abstract class DockableWindowManager extends JPanel implements EBComponent\n{\n\n\t//{{{ Constants\n\t/**\n\t * Floating position.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic static final String FLOATING = \"floating\";\n\n\t/**\n\t * Top position.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic static final String TOP = \"top\";\n\n\t/**\n\t * Left position.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic static final String LEFT = \"left\";\n\n\t/**\n\t * Bottom position.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic static final String BOTTOM = \"bottom\";\n\n\t/**\n\t * Right position.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic static final String RIGHT = \"right\";\n\t//}}}\n\n\t// {{{ data members\n\tprivate final Map<PluginJAR, Set<String>> plugins = new HashMap<PluginJAR, Set<String>>(); \n\tprivate final Map<String, String> positions = new HashMap<String, String>();\n\tprotected View view;\n\tprotected DockableWindowFactory factory;\n\tprotected Map<String, JComponent> windows = new HashMap<String, JComponent>();\n\n\t// variables for toggling all dock areas\n\tprivate boolean tBottom, tTop, tLeft, tRight;\n\tprivate boolean closeToggle = true;\n\n\tprivate static final String ALTERNATE_LAYOUT_PROP = \"view.docking.alternateLayout\";\n\tprivate boolean alternateLayout;\n\t// }}}\n\n\t// {{{ DockableWindowManager constructor\n\tpublic DockableWindowManager(View view, DockableWindowFactory instance,\n\t\t\tViewConfig config)\n\t{\n\t\tthis.view = view;\n\t\tthis.factory = instance;\n\t\talternateLayout = jEdit.getBooleanProperty(ALTERNATE_LAYOUT_PROP);\n\t} // }}}\n\n\t// {{{ Abstract methods\n\tpublic abstract void setMainPanel(JPanel panel);\n\tpublic abstract void showDockableWindow(String name);\n\tpublic abstract void hideDockableWindow(String name);\n\n\t/** Completely dispose of a dockable - called when a plugin is\n\t    unloaded, to remove all references to the its dockables. */\n\tpublic abstract void disposeDockableWindow(String name);\n\tpublic abstract JComponent floatDockableWindow(String name);\n\tpublic abstract boolean isDockableWindowDocked(String name);\n\tpublic abstract boolean isDockableWindowVisible(String name);\n\tpublic abstract void closeCurrentArea();\n\tpublic abstract DockingLayout getDockingLayout(ViewConfig config);\n\tpublic abstract DockingArea getLeftDockingArea();\n\tpublic abstract DockingArea getRightDockingArea();\n\tpublic abstract DockingArea getTopDockingArea();\n\tpublic abstract DockingArea getBottomDockingArea();\n\t// }}}\n\n\t// {{{ public methods\n\t// {{{ init()\n\tpublic void init()\n\t{\n\t\tEditBus.addToBus(this);\n\n\t\tIterator<DockableWindowFactory.Window> entries = factory.getDockableWindowIterator();\n\t\twhile(entries.hasNext())\n\t\t{\n\t\t\tDockableWindowFactory.Window window = entries.next();\n\t\t\tString dockable = window.name;\n\t\t\tpositions.put(dockable, getDockablePosition(dockable));\n\t\t\taddPluginDockable(window.plugin, dockable);\n\t\t}\n\t} // }}}\n\n\t// {{{ close()\n\tpublic void close()\n\t{\n\t\tEditBus.removeFromBus(this);\n\t} // }}}\n\n\t// {{{ applyDockingLayout\n\tpublic void applyDockingLayout(DockingLayout docking)\n\t{\n\t\t// By default, use the docking positions specified by the jEdit properties\n\t\tIterator<Entry<String, String>> iterator = positions.entrySet().iterator();\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\tEntry<String, String> entry = iterator.next();\n\t\t\tString dockable = entry.getKey();\n\t\t\tString position = entry.getValue();\n\t\t\tif (! position.equals(FLOATING))\n\t\t\t\tshowDockableWindow(dockable);\n\t\t}\n\t} //}}}\n\n\t//{{{ addDockableWindow() method\n\t/**\n\t * Opens the specified dockable window. As of jEdit 4.0pre1, has the\n\t * same effect as calling showDockableWindow().\n\t * @param name The dockable window name\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic void addDockableWindow(String name)\n\t{\n\t\tshowDockableWindow(name);\n\t} //}}}\n\n\t//{{{ removeDockableWindow() method\n\t/**\n\t * Hides the specified dockable window. As of jEdit 4.2pre1, has the\n\t * same effect as calling hideDockableWindow().\n\t * @param name The dockable window name\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void removeDockableWindow(String name)\n\t{\n\t\thideDockableWindow(name);\n\t} //}}}\n\n\t//{{{ toggleDockableWindow() method\n\t/**\n\t * Toggles the visibility of the specified dockable window.\n\t * @param name The dockable window name\n\t */\n\tpublic void toggleDockableWindow(String name)\n\t{\n\t\tif(isDockableWindowVisible(name))\n\t\t\tremoveDockableWindow(name);\n\t\telse\n\t\t\taddDockableWindow(name);\n\t} //}}}\n\n\t//{{{ getDockableWindow() method\n\t/**\n\t * Returns the specified dockable window.\n\t *\n\t * Note that this method\n\t * will return null if the dockable has not been added yet.\n\t * Make sure you call {@link #addDockableWindow(String)} first.\n\t *\n\t * @param name The name of the dockable window\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic JComponent getDockableWindow(String name)\n\t{\n\t\treturn getDockable(name);\n\t} //}}}\n\n\t// {{{ toggleDockAreas()\n\t/**\n\t * Hides all visible dock areas, or shows them again,\n\t * if the last time it was a hide.\n\t * @since jEdit 4.3pre16\n\t *\n\t */\n\tpublic void toggleDockAreas()\n\t{\n\t\tif (closeToggle)\n\t\t{\n\t\t\ttTop = getTopDockingArea().getCurrent() != null;\n\t\t\ttLeft = getLeftDockingArea().getCurrent() != null;\n\t\t\ttRight = getRightDockingArea().getCurrent() != null;\n\t\t\ttBottom = getBottomDockingArea().getCurrent() != null;\n\t\t\tgetBottomDockingArea().show(null);\n\t\t\tgetTopDockingArea().show(null);\n\t\t\tgetRightDockingArea().show(null);\n\t\t\tgetLeftDockingArea().show(null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (tBottom) getBottomDockingArea().showMostRecent();\n\t\t\tif (tLeft) getLeftDockingArea().showMostRecent();\n\t\t\tif (tRight) getRightDockingArea().showMostRecent();\n\t\t\tif (tTop) getTopDockingArea().showMostRecent();\n\t\t}\n\t\tcloseToggle = !closeToggle;\n\t\tview.getTextArea().requestFocus();\n\t} // }}}\n\n\t// {{{ dockableTitleChanged\n\tpublic void dockableTitleChanged(String dockable, String newTitle)\n\t{\n\t} // }}}\n\n\t// {{{ closeListener() method\n\t/**\n\t *\n\t * The actionEvent \"close-docking-area\" by default only works on\n\t * windows that are docked. If you want your floatable plugins to also\n\t * respond to this event, you need to add key listeners to each component\n\t * in your plugin that usually has keyboard focus.\n\t * This function returns a key listener which does exactly that.\n\t * You should not need to call this method - it is used by FloatingWindowContainer.\n\t *\n\t * @param dockableName the name of your dockable\n\t * @return a KeyListener you can add to that plugin's component.\n\t * @since jEdit 4.3pre6\n\t *\n\t */\n\tpublic KeyListener closeListener(String dockableName)\n\t{\n\t\treturn new KeyHandler(dockableName);\n\t}\n\t// }}}\n\n\t//{{{ getView() method\n\t/**\n\t * Returns this dockable window manager's view.\n\t * @since jEdit 4.0pre2\n\t */\n\tpublic View getView()\n\t{\n\t\treturn view;\n\t} //}}}\n\n\t//{{{ getDockable method\n\t/**\n\t * @since jEdit 4.3pre2\n\t */\n\tpublic JComponent getDockable(String name)\n\t{\n\t\treturn windows.get(name);\n\t} // }}}\n\n\t//{{{ getDockableTitle() method\n\t/**\n\t * Returns the title of the specified dockable window.\n\t * @param name The name of the dockable window.\n\t * @since jEdit 4.1pre5\n\t */\n\tpublic String getDockableTitle(String name)\n\t{\n\t\treturn longTitle(name);\n\t}//}}}\n\n\t//{{{ setDockableTitle() method\n\t/**\n\t * Changes the .longtitle property of a dockable window, which corresponds to the\n\t * title shown when it is floating (not docked). Fires a change event that makes sure\n\t * all floating dockables change their title.\n\t *\n\t * @param dockable the name of the dockable, as specified in the dockables.xml\n\t * @param title the new .longtitle you want to see above it.\n\t * @since 4.3pre5\n\t *\n\t */\n\tpublic void setDockableTitle(String dockable, String title)\n\t{\n\t\tString propName = getLongTitlePropertyName(dockable);\n\t\tString oldTitle = jEdit.getProperty(propName);\n\t\tjEdit.setProperty(propName, title);\n\t\tfirePropertyChange(propName, oldTitle, title);\n\t\tdockableTitleChanged(dockable, title);\n\t}\n\t// }}}\n\n\t//{{{ getRegisteredDockableWindows() method\n\tpublic static String[] getRegisteredDockableWindows()\n\t{\n\t\treturn DockableWindowFactory.getInstance()\n\t\t\t.getRegisteredDockableWindows();\n\t} //}}}\n\n\t//{{{ getDockableWindowPluginClassName() method\n\tpublic static String getDockableWindowPluginName(String name)\n\t{\n\t\tString pluginClass =\n\t\t\tDockableWindowFactory.getInstance().getDockableWindowPluginClass(name);\n\t\tif (pluginClass == null)\n\t\t\treturn null;\n\t\treturn jEdit.getProperty(\"plugin.\" + pluginClass + \".name\");\n\t} //}}}\n\n\t// {{{ setDockingLayout method\n\tpublic void setDockingLayout(DockingLayout docking)\n\t{\n\t\tapplyDockingLayout(docking);\n\t\tapplyAlternateLayout(alternateLayout);\n\t} // }}}\n\n\t// {{{ addPluginDockable\n\tprivate void addPluginDockable(PluginJAR plugin, String name)\n\t{\n\t\tSet<String> dockables = plugins.get(plugin);\n\t\tif (dockables == null)\n\t\t{\n\t\t\tdockables = new HashSet<String>();\n\t\t\tplugins.put(plugin, dockables);\n\t\t}\n\t\tdockables.add(name);\n\t}\n\t// }}}\n\t\n\t// {{{ handleMessage() method\n\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif (msg instanceof DockableWindowUpdate)\n\t\t{\n\t\t\tif(((DockableWindowUpdate)msg).getWhat() == DockableWindowUpdate.PROPERTIES_CHANGED)\n\t\t\t\tpropertiesChanged();\n\t\t}\n\t\telse if (msg instanceof PropertiesChanged)\n\t\t\tpropertiesChanged();\n\t\telse if(msg instanceof PluginUpdate)\n\t\t{\n\t\t\tPluginUpdate pmsg = (PluginUpdate)msg;\n\t\t\tif (pmsg.getWhat() == PluginUpdate.LOADED)\n\t\t\t{\n\t\t\t\tIterator<DockableWindowFactory.Window> iter = factory.getDockableWindowIterator();\n\t\t\t\twhile (iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tDockableWindowFactory.Window w = iter.next();\n\t\t\t\t\tif (w.plugin == pmsg.getPluginJAR())\n\t\t\t\t\t{\n\t\t\t\t\t\tString position = getDockablePosition(w.name);\n\t\t\t\t\t\tpositions.put(w.name, position);\n\t\t\t\t\t\taddPluginDockable(w.plugin, w.name);\n\t\t\t\t\t\tdockableLoaded(w.name, position);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpropertiesChanged();\n\t\t\t}\n\t\t\telse if(pmsg.isExiting())\n\t\t\t{\n\t\t\t\t// we don't care\n\t\t\t}\n\t\t\telse if(pmsg.getWhat() == PluginUpdate.DEACTIVATED ||\n\t\t\t\t\tpmsg.getWhat() == PluginUpdate.UNLOADED)\n\t\t\t{\n\t\t\t\tSet<String> dockables = plugins.remove(pmsg.getPluginJAR());\n\t\t\t\tif (dockables != null)\n\t\t\t\t{\n\t\t\t\t\tfor (String dockable: dockables)\n\t\t\t\t\t{\n\t\t\t\t\t\tdisposeDockableWindow(dockable);\n\t\t\t\t\t\twindows.remove(dockable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} // }}}\n\n\t// {{{ longTitle() method\n\tpublic String longTitle(String name)\n\t{\n\t\tString title = jEdit.getProperty(getLongTitlePropertyName(name));\n\t\tif (title == null)\n\t\t\treturn shortTitle(name);\n\t\treturn title;\n\t} // }}}\n\n\t// {{{ shortTitle() method\n\tpublic String shortTitle(String name)\n\t{\n\t\tString title = jEdit.getProperty(name + \".title\");\n\t\tif(title == null)\n\t\t\treturn \"NO TITLE PROPERTY: \" + name;\n\t\treturn title;\n\t} // }}}\n\n\t// }}}\n\n\t// {{{ protected methods\n\t// {{{ applyAlternateLayout\n\tprotected void applyAlternateLayout(boolean alternateLayout)\n\t{\n\t} //}}}\n\n\t// {{{\n\tprotected void dockableLoaded(String dockableName, String position)\n\t{\n\t}\n\t// }}}\n\t\n\t// {{{\n\tprotected void dockingPositionChanged(String dockableName,\n\t\tString oldPosition, String newPosition)\n\t{\n\t} //}}}\n\n\t// {{{ getAlternateLayoutProp()\n\tprotected boolean getAlternateLayoutProp()\n\t{\n\t\treturn alternateLayout;\n\t} // }}}\n\n\t// {{{ propertiesChanged\n\tprotected void propertiesChanged()\n\t{\n\t\tif(view.isPlainView())\n\t\t\treturn;\n\n\t\tboolean newAlternateLayout = jEdit.getBooleanProperty(ALTERNATE_LAYOUT_PROP);\n\t\tif (newAlternateLayout != alternateLayout)\n\t\t{\n\t\t\talternateLayout = newAlternateLayout;\n\t\t\tapplyAlternateLayout(newAlternateLayout);\n\t\t}\n\n\t\tString[] dockables = factory.getRegisteredDockableWindows();\n\t\tfor(int i = 0; i < dockables.length; i++)\n\t\t{\n\t\t\tString dockable = dockables[i];\n\t\t\tString oldPosition = positions.get(dockable);\n\t\t\tString newPosition = getDockablePosition(dockable);\n\t\t\tif (oldPosition == null || !newPosition.equals(oldPosition))\n\t\t\t{\n\t\t\t\tpositions.put(dockable, newPosition);\n\t\t\t\tdockingPositionChanged(dockable, oldPosition, newPosition);\n\t\t\t}\n\t\t}\n\n\t} // }}}\n\n\t// {{{ createDockable()\n\tprotected JComponent createDockable(String name)\n\t{\n\t\tDockableWindowFactory.Window wf = factory.getDockableWindowFactory(name);\n\t\tif (wf == null)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Unknown dockable window: \" + name);\n\t\t\treturn null;\n\t\t}\n\t\tString position = getDockablePosition(name);\n\t\tJComponent window = wf.createDockableWindow(view, position);\n\t\tif (window != null)\n\t\t\twindows.put(name, window);\n\t\treturn window;\n\t} // }}}\n\n\t// {{{ getDockablePosition()\n\tprotected String getDockablePosition(String name)\n\t{\n\t\treturn jEdit.getProperty(name + \".dock-position\", FLOATING);\n\t} // }}}\n\n\t// {{{ focusDockable\n\tprotected void focusDockable(String name)\n\t{\n\t\tJComponent c = getDockable(name);\n\t\tif (c == null)\n\t\t\treturn;\n\t\tif (c instanceof DefaultFocusComponent)\n\t\t\t((DefaultFocusComponent)c).focusOnDefaultComponent();\n\t\telse\n\t\t\tc.requestFocus();\n\t} // }}}\n\n\t// {{{ getLongTitlePropertyName()\n\tprotected String getLongTitlePropertyName(String dockableName)\n\t{\n\t\treturn dockableName + \".longtitle\";\n\t} //}}}\n\t// }}}\n\n\n\t// {{{ Inner classes\n\t// {{{ DockingArea interface\n\tpublic interface DockingArea\n\t{\n\t\tvoid showMostRecent();\n\t\tString getCurrent();\n\t\tvoid show(String name);\n\t\tString [] getDockables();\n\t}\n\t// }}}\n\n\t//{{{ KeyHandler class\n\t/**\n\t * This keyhandler responds to only two key events - those corresponding to\n\t * the close-docking-area action event.\n\t *\n\t * @author ezust\n\t */\n\tclass KeyHandler extends KeyAdapter\n\t{\n\t\tstatic final String action = \"close-docking-area\";\n\t\tVector<Key> b1, b2;\n\t\tString name;\n\t\tint match1, match2;\n\n\t\tpublic KeyHandler(String dockableName)\n\t\t{\n\t\t\tString shortcut1=jEdit.getProperty(action + \".shortcut\");\n\t\t\tString shortcut2=jEdit.getProperty(action + \".shortcut2\");\n\t\t\tif (shortcut1 != null)\n\t\t\t\tb1 = parseShortcut(shortcut1);\n\t\t\tif (shortcut2 != null)\n\t\t\t\tb2 = parseShortcut(shortcut2);\n\t\t\tname = dockableName;\n\t\t\tmatch1 = match2 = 0;\n\t\t}\n\n\t\t@Override\n\t\tpublic void keyTyped(KeyEvent e)\n\t\t{\n\t\t\tif (b1 != null)\n\t\t\t\tmatch1 = match(e, b1, match1);\n\t\t\tif (b2 != null)\n\t\t\t\tmatch2 = match(e, b2, match2);\n\t\t\tif ((match1 > 0 && match1 == b1.size()) ||\n\t\t\t\t(match2 > 0 && match2 == b2.size()))\n\t\t\t{\n\t\t\t\thideDockableWindow(name);\n\t\t\t\tmatch1 = match2 = 0;\n\t\t\t}\n\t\t}\n\n\t\tprivate int match(KeyEvent e, Vector<Key> shortcut, int index)\n\t\t{\n\t\t\tchar c = e.getKeyChar();\n\t\t\tif (shortcut != null && c == shortcut.get(index).key)\n\t\t\t\treturn index + 1;\n\t\t\treturn 0;\n\t\t}\n\n\t\tprivate Vector<Key> parseShortcut(String shortcut)\n\t\t{\n\t\t\tVector<Key> keys = new Vector<Key>();\n\t\t\tString [] parts = shortcut.split(\"\\\\s+\");\n\t\t\tfor (String part: parts)\n\t\t\t{\n\t\t\t\tif (part.length() > 0)\n\t\t\t\t\tkeys.add(KeyEventTranslator.parseKey(part));\n\t\t\t}\n\t\t\treturn keys;\n\t\t}\n\t} //}}}\n\n\t// {{{ DockingLayout class\n\t/**\n\t * Objects of DockingLayout class describe which dockables are docked where,\n\t * which ones are floating, and their sizes/positions for saving/loading perspectives.\n\t */\n\tpublic abstract static class DockingLayout\n\t{\n\t\tpublic static final int NO_VIEW_INDEX = -1;\n\t\tpublic abstract boolean loadLayout(String baseName, int viewIndex);\n\t\tpublic abstract boolean saveLayout(String baseName, int viewIndex);\n\t\tpublic abstract String getName();\n\n\t\tpublic void setPlainView(boolean plain)\n\t\t{\n\t\t}\n\n\t\tpublic String [] getSavedLayouts()\n\t\t{\n\t\t\tString layoutDir = getLayoutDirectory();\n\t\t\tif (layoutDir == null)\n\t\t\t\treturn null;\n\t\t\tFile dir = new File(layoutDir);\n\t\t\tFile[] files = dir.listFiles(new FilenameFilter()\n\t\t\t{\n\t\t\t\tpublic boolean accept(File dir, String name)\n\t\t\t\t{\n\t\t\t\t\treturn name.endsWith(\".xml\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tString[] layouts = new String[files.length];\n\t\t\tfor (int i = 0; i < files.length; i++)\n\t\t\t\tlayouts[i] = fileToLayout(files[i].getName());\n\t\t\treturn layouts;\n\t\t}\n\n\t\tprivate static String fileToLayout(String filename)\n\t\t{\n\t\t\treturn filename.replaceFirst(\".xml\", \"\");\n\t\t}\n\n\t\tprivate static String layoutToFile(String baseName, int viewIndex)\n\t\t{\n\t\t\tStringBuilder name = new StringBuilder(baseName);\n\t\t\tif (viewIndex != NO_VIEW_INDEX)\n\t\t\t\tname.append(\"-view\").append(viewIndex);\n\t\t\tname.append(\".xml\");\n\t\t\treturn name.toString();\n\t\t}\n\n\t\tpublic String getLayoutFilename(String baseName, int viewIndex)\n\t\t{\n\t\t\tString dir = getLayoutDirectory();\n\t\t\tif (dir == null)\n\t\t\t\treturn null;\n\t\t\treturn dir + File.separator + layoutToFile(baseName, viewIndex);\n\t\t}\n\n\t\tprivate String getLayoutDirectory()\n\t\t{\n\t\t\tString name = getName();\n\t\t\tif (name == null)\n\t\t\t\treturn null;\n\t\t\tString dir = jEdit.getSettingsDirectory();\n\t\t\tif (dir == null)\n\t\t\t\treturn null;\n\t\t\tdir = dir + File.separator + name;\n\t\t\tFile d = new File(dir);\n\t\t\tif (!d.exists())\n\t\t\t\td.mkdir();\n\t\t\treturn dir;", "functions": [{"function_name": "setMainPanel", "code": "\tpublic abstract void setMainPanel(JPanel panel);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "showDockableWindow", "code": "\tpublic abstract void showDockableWindow(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hideDockableWindow", "code": "\tpublic abstract void hideDockableWindow(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "disposeDockableWindow", "code": "\tpublic abstract void disposeDockableWindow(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "floatDockableWindow", "code": "\tpublic abstract JComponent floatDockableWindow(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isDockableWindowDocked", "code": "\tpublic abstract boolean isDockableWindowDocked(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isDockableWindowVisible", "code": "\tpublic abstract boolean isDockableWindowVisible(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "closeCurrentArea", "code": "\tpublic abstract void closeCurrentArea();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDockingLayout", "code": "\tpublic abstract DockingLayout getDockingLayout(ViewConfig config);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLeftDockingArea", "code": "\tpublic abstract DockingArea getLeftDockingArea();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getRightDockingArea", "code": "\tpublic abstract DockingArea getRightDockingArea();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getTopDockingArea", "code": "\tpublic abstract DockingArea getTopDockingArea();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getBottomDockingArea", "code": "\tpublic abstract DockingArea getBottomDockingArea();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "init", "code": "\tpublic void init()\n\t{\n\t\tEditBus.addToBus(this);\n\n\t\tIterator<DockableWindowFactory.Window> entries = factory.getDockableWindowIterator();\n\t\twhile(entries.hasNext())\n\t\t{\n\t\t\tDockableWindowFactory.Window window = entries.next();\n\t\t\tString dockable = window.name;\n\t\t\tpositions.put(dockable, getDockablePosition(dockable));\n\t\t\taddPluginDockable(window.plugin, dockable);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [2, 7], [1, 8], [1, 9], [9, 10], [6, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 2], [8, 1], [9, 1], [10, 9], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "close", "code": "\tpublic void close()\n\t{\n\t\tEditBus.removeFromBus(this);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "applyDockingLayout", "code": "\tpublic void applyDockingLayout(DockingLayout docking)\n\t{\n\t\t// By default, use the docking positions specified by the jEdit properties\n\t\tIterator<Entry<String, String>> iterator = positions.entrySet().iterator();\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\tEntry<String, String> entry = iterator.next();\n\t\t\tString dockable = entry.getKey();\n\t\t\tString position = entry.getValue();\n\t\t\tif (! position.equals(FLOATING))\n\t\t\t\tshowDockableWindow(dockable);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [5, 10], [9, 11], [5, 12], [6, 13], [7, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 5], [11, 9], [12, 5], [13, 6], [14, 7], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "addDockableWindow", "code": "\tpublic void addDockableWindow(String name)\n\t{\n\t\tshowDockableWindow(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeDockableWindow", "code": "\tpublic void removeDockableWindow(String name)\n\t{\n\t\thideDockableWindow(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toggleDockableWindow", "code": "\tpublic void toggleDockableWindow(String name)\n\t{\n\t\tif(isDockableWindowVisible(name))\n\t\t\tremoveDockableWindow(name);\n\t\telse\n\t\t\taddDockableWindow(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDockableWindow", "code": "\tpublic JComponent getDockableWindow(String name)\n\t{\n\t\treturn getDockable(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toggleDockAreas", "code": "\tpublic void toggleDockAreas()\n\t{\n\t\tif (closeToggle)\n\t\t{\n\t\t\ttTop = getTopDockingArea().getCurrent() != null;\n\t\t\ttLeft = getLeftDockingArea().getCurrent() != null;\n\t\t\ttRight = getRightDockingArea().getCurrent() != null;\n\t\t\ttBottom = getBottomDockingArea().getCurrent() != null;\n\t\t\tgetBottomDockingArea().show(null);\n\t\t\tgetTopDockingArea().show(null);\n\t\t\tgetRightDockingArea().show(null);\n\t\t\tgetLeftDockingArea().show(null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (tBottom) getBottomDockingArea().showMostRecent();\n\t\t\tif (tLeft) getLeftDockingArea().showMostRecent();\n\t\t\tif (tRight) getRightDockingArea().showMostRecent();\n\t\t\tif (tTop) getTopDockingArea().showMostRecent();\n\t\t}\n\t\tcloseToggle = !closeToggle;\n\t\tview.getTextArea().requestFocus();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "ASSIGN", "CALL", "IF", "IF", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [5, 17], [6, 18], [7, 19], [8, 20], [9, 21], [10, 22], [11, 23], [12, 24], [13, 25], [14, 26], [15, 27], [16, 28], [17, 29], [18, 30], [19, 31], [20, 32], [21, 33], [22, 34], [23, 35], [24, 36], [25, 37], [25, 38], [26, 39], [26, 40], [27, 41], [27, 42], [28, 43], [28, 44], [38, 45], [40, 46], [42, 47], [44, 48], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 5], [18, 6], [19, 7], [20, 8], [21, 9], [22, 10], [23, 11], [24, 12], [25, 13], [26, 14], [27, 15], [28, 16], [29, 17], [30, 18], [31, 19], [32, 20], [33, 21], [34, 22], [35, 23], [36, 24], [37, 25], [38, 25], [39, 26], [40, 26], [41, 27], [42, 27], [43, 28], [44, 28], [45, 38], [46, 40], [47, 42], [48, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "dockableTitleChanged", "code": "\tpublic void dockableTitleChanged(String dockable, String newTitle)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "closeListener", "code": "\tpublic KeyListener closeListener(String dockableName)\n\t{\n\t\treturn new KeyHandler(dockableName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getView", "code": "\tpublic View getView()\n\t{\n\t\treturn view;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDockable", "code": "\tpublic JComponent getDockable(String name)\n\t{\n\t\treturn windows.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDockableTitle", "code": "\tpublic String getDockableTitle(String name)\n\t{\n\t\treturn longTitle(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDockableTitle", "code": "\tpublic void setDockableTitle(String dockable, String title)\n\t{\n\t\tString propName = getLongTitlePropertyName(dockable);\n\t\tString oldTitle = jEdit.getProperty(propName);\n\t\tjEdit.setProperty(propName, title);\n\t\tfirePropertyChange(propName, oldTitle, title);\n\t\tdockableTitleChanged(dockable, title);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getRegisteredDockableWindows", "code": "\tpublic static String[] getRegisteredDockableWindows()\n\t{\n\t\treturn DockableWindowFactory.getInstance()\n\t\t\t.getRegisteredDockableWindows();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDockableWindowPluginName", "code": "\tpublic static String getDockableWindowPluginName(String name)\n\t{\n\t\tString pluginClass =\n\t\t\tDockableWindowFactory.getInstance().getDockableWindowPluginClass(name);\n\t\tif (pluginClass == null)\n\t\t\treturn null;\n\t\treturn jEdit.getProperty(\"plugin.\" + pluginClass + \".name\");", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [5, 8], [6, 9], [7, 10], [3, 11], [8, 12], [8, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 5], [9, 6], [10, 7], [11, 3], [12, 8], [13, 8], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setDockingLayout", "code": "\tpublic void setDockingLayout(DockingLayout docking)\n\t{\n\t\tapplyDockingLayout(docking);\n\t\tapplyAlternateLayout(alternateLayout);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addPluginDockable", "code": "\tprivate void addPluginDockable(PluginJAR plugin, String name)\n\t{\n\t\tSet<String> dockables = plugins.get(plugin);\n\t\tif (dockables == null)\n\t\t{\n\t\t\tdockables = new HashSet<String>();\n\t\t\tplugins.put(plugin, dockables);\n\t\t}\n\t\tdockables.add(name);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [1, 9], [1, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 1], [10, 1], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "handleMessage", "code": "\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif (msg instanceof DockableWindowUpdate)\n\t\t{\n\t\t\tif(((DockableWindowUpdate)msg).getWhat() == DockableWindowUpdate.PROPERTIES_CHANGED)\n\t\t\t\tpropertiesChanged();\n\t\t}\n\t\telse if (msg instanceof PropertiesChanged)\n\t\t\tpropertiesChanged();\n\t\telse if(msg instanceof PluginUpdate)\n\t\t{\n\t\t\tPluginUpdate pmsg = (PluginUpdate)msg;\n\t\t\tif (pmsg.getWhat() == PluginUpdate.LOADED)\n\t\t\t{\n\t\t\t\tIterator<DockableWindowFactory.Window> iter = factory.getDockableWindowIterator();\n\t\t\t\twhile (iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tDockableWindowFactory.Window w = iter.next();\n\t\t\t\t\tif (w.plugin == pmsg.getPluginJAR())\n\t\t\t\t\t{\n\t\t\t\t\t\tString position = getDockablePosition(w.name);\n\t\t\t\t\t\tpositions.put(w.name, position);\n\t\t\t\t\t\taddPluginDockable(w.plugin, w.name);\n\t\t\t\t\t\tdockableLoaded(w.name, position);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpropertiesChanged();\n\t\t\t}\n\t\t\telse if(pmsg.isExiting())\n\t\t\t{\n\t\t\t\t// we don't care\n\t\t\t}\n\t\t\telse if(pmsg.getWhat() == PluginUpdate.DEACTIVATED ||\n\t\t\t\t\tpmsg.getWhat() == PluginUpdate.UNLOADED)\n\t\t\t{\n\t\t\t\tSet<String> dockables = plugins.remove(pmsg.getPluginJAR());\n\t\t\t\tif (dockables != null)\n\t\t\t\t{\n\t\t\t\t\tfor (String dockable: dockables)\n\t\t\t\t\t{\n\t\t\t\t\t\tdisposeDockableWindow(dockable);\n\t\t\t\t\t\twindows.remove(dockable);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "IF", "CALL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [5, 8], [3, 9], [7, 10], [5, 11], [5, 12], [7, 13], [11, 14], [11, 15], [14, 16], [14, 17], [11, 18], [11, 19], [15, 20], [16, 21], [11, 22], [18, 23], [16, 24], [16, 25], [21, 26], [21, 27], [18, 28], [18, 29], [19, 30], [24, 31], [26, 32], [27, 33], [28, 34], [24, 35], [31, 36], [25, 37], [28, 38], [34, 39], [29, 40], [37, 41], [28, 42], [28, 43], [28, 44], [38, 45], [35, 46], [35, 47], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 5], [9, 3], [10, 7], [11, 5], [12, 5], [13, 7], [14, 11], [15, 11], [16, 14], [17, 14], [18, 11], [19, 11], [20, 15], [21, 16], [22, 11], [23, 18], [24, 16], [25, 16], [26, 21], [27, 21], [28, 18], [29, 18], [30, 19], [31, 24], [32, 26], [33, 27], [34, 28], [35, 24], [36, 31], [37, 25], [38, 28], [39, 34], [40, 29], [41, 37], [42, 28], [43, 28], [44, 28], [45, 38], [46, 35], [47, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "longTitle", "code": "\tpublic String longTitle(String name)\n\t{\n\t\tString title = jEdit.getProperty(getLongTitlePropertyName(name));\n\t\tif (title == null)\n\t\t\treturn shortTitle(name);\n\t\treturn title;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [6, 8], [3, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 6], [9, 3], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "shortTitle", "code": "\tpublic String shortTitle(String name)\n\t{\n\t\tString title = jEdit.getProperty(name + \".title\");\n\t\tif(title == null)\n\t\t\treturn \"NO TITLE PROPERTY: \" + name;\n\t\treturn title;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [6, 8], [3, 9], [7, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 6], [9, 3], [10, 7], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "applyAlternateLayout", "code": "\tprotected void applyAlternateLayout(boolean alternateLayout)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dockableLoaded", "code": "\tprotected void dockableLoaded(String dockableName, String position)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "dockingPositionChanged", "code": "\tprotected void dockingPositionChanged(String dockableName,\n\t\tString oldPosition, String newPosition)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAlternateLayoutProp", "code": "\tprotected boolean getAlternateLayoutProp()\n\t{\n\t\treturn alternateLayout;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "propertiesChanged", "code": "\tprotected void propertiesChanged()\n\t{\n\t\tif(view.isPlainView())\n\t\t\treturn;\n\n\t\tboolean newAlternateLayout = jEdit.getBooleanProperty(ALTERNATE_LAYOUT_PROP);\n\t\tif (newAlternateLayout != alternateLayout)\n\t\t{\n\t\t\talternateLayout = newAlternateLayout;\n\t\t\tapplyAlternateLayout(newAlternateLayout);\n\t\t}\n\n\t\tString[] dockables = factory.getRegisteredDockableWindows();\n\t\tfor(int i = 0; i < dockables.length; i++)\n\t\t{\n\t\t\tString dockable = dockables[i];\n\t\t\tString oldPosition = positions.get(dockable);\n\t\t\tString newPosition = getDockablePosition(dockable);\n\t\t\tif (oldPosition == null || !newPosition.equals(oldPosition))\n\t\t\t{\n\t\t\t\tpositions.put(dockable, newPosition);\n\t\t\t\tdockingPositionChanged(dockable, oldPosition, newPosition);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [5, 8], [5, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [4, 15], [10, 16], [1, 17], [3, 18], [3, 19], [16, 20], [16, 21], [11, 22], [12, 23], [10, 24], [10, 25], [21, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 5], [9, 5], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 4], [16, 10], [17, 1], [18, 3], [19, 3], [20, 16], [21, 16], [22, 11], [23, 12], [24, 10], [25, 10], [26, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "createDockable", "code": "\tprotected JComponent createDockable(String name)\n\t{\n\t\tDockableWindowFactory.Window wf = factory.getDockableWindowFactory(name);\n\t\tif (wf == null)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Unknown dockable window: \" + name);\n\t\t\treturn null;\n\t\t}\n\t\tString position = getDockablePosition(name);\n\t\tJComponent window = wf.createDockableWindow(view, position);\n\t\tif (window != null)\n\t\t\twindows.put(name, window);\n\t\treturn window;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [5, 9], [2, 10], [8, 11], [3, 12], [4, 13], [5, 14], [9, 15], [6, 16], [14, 17], [5, 18], [18, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 5], [10, 2], [11, 8], [12, 3], [13, 4], [14, 5], [15, 9], [16, 6], [17, 14], [18, 5], [19, 18], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getDockablePosition", "code": "\tprotected String getDockablePosition(String name)\n\t{\n\t\treturn jEdit.getProperty(name + \".dock-position\", FLOATING);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "focusDockable", "code": "\tprotected void focusDockable(String name)\n\t{\n\t\tJComponent c = getDockable(name);\n\t\tif (c == null)\n\t\t\treturn;\n\t\tif (c instanceof DefaultFocusComponent)\n\t\t\t((DefaultFocusComponent)c).focusOnDefaultComponent();\n\t\telse\n\t\t\tc.requestFocus();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [7, 9], [3, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 7], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getLongTitlePropertyName", "code": "\tprotected String getLongTitlePropertyName(String dockableName)\n\t{\n\t\treturn dockableName + \".longtitle\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DockableWindowManager", "code": "\tpublic DockableWindowManager(View view, DockableWindowFactory instance,\n\t\t\tViewConfig config)\n\t{\n\t\tthis.view = view;\n\t\tthis.factory = instance;\n\t\talternateLayout = jEdit.getBooleanProperty(ALTERNATE_LAYOUT_PROP);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "jedit-4.1-4191", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/BeanShellAction.java", "language": "java", "name": "org.gjt.sp.jedit.BeanShellAction", "code": "public class BeanShellAction extends EditAction\n{\n\tpublic BeanShellAction(String name, String code, String isSelected,\n\t\tboolean noRepeat, boolean noRecord)\n\t{\n\t\tsuper(name);\n\n\t\tthis.code = code;\n\t\tthis.isSelected = isSelected;\n\t\tthis.noRepeat = noRepeat;\n\t\tthis.noRecord = noRecord;\n\n\t\t/* Some characters that we like to use in action names\n\t\t * ('.', '-') are not allowed in BeanShell identifiers. */\n\t\tsanitizedName = name.replace('.','_').replace('-','_');\n\n\t\t// evaluate isSelected now so that menus don't take a long\n\t\t// time to first come up\n\t\tif(isSelected != null)\n\t\t{\n\t\t\tString cachedIsSelectedName = \"selected_\" + sanitizedName;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tcachedIsSelected = BeanShell.cacheBlock(cachedIsSelectedName,\n\t\t\t\t\tisSelected,false);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\t\tnew BeanShellErrorDialog(null,e);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic void invoke(View view)\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(cachedCode == null)\n\t\t\t{\n\t\t\t\tString cachedCodeName = \"action_\" + sanitizedName;\n\t\t\t\tcachedCode = BeanShell.cacheBlock(cachedCodeName,code,false);\n\t\t\t}\n\n\t\t\tBeanShell.runCachedBlock(cachedCode,view,null);\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\tnew BeanShellErrorDialog(view,e);\n\t\t}\n\t}\n\n\tpublic boolean isToggle()\n\t{\n\t\treturn isSelected != null;\n\t}\n\n\tpublic boolean isSelected(View view)\n\t{\n\t\tif(isSelected == null)\n\t\t\treturn false;\n\n\t\ttry\n\t\t{\n\t\t\treturn Boolean.TRUE.equals(BeanShell.runCachedBlock(\n\t\t\t\tcachedIsSelected,view,null));\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\tnew BeanShellErrorDialog(view,e);\n\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic boolean noRepeat()\n\t{\n\t\treturn noRepeat;\n\t}\n\n\tpublic boolean noRecord()\n\t{\n\t\treturn noRecord;\n\t}\n\n\tpublic String getCode()\n\t{\n\t\treturn code.trim();\n\t}\n\n\t// private members\n\tprivate boolean noRepeat;\n\tprivate boolean noRecord;\n\tprivate String code;\n\tprivate String isSelected;\n\tprivate BshMethod cachedCode;\n\tprivate BshMethod cachedIsSelected;\n\tprivate String sanitizedName;", "functions": [{"function_name": "invoke", "code": "\tpublic void invoke(View view)\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(cachedCode == null)\n\t\t\t{\n\t\t\t\tString cachedCodeName = \"action_\" + sanitizedName;\n\t\t\t\tcachedCode = BeanShell.cacheBlock(cachedCodeName,code,false);\n\t\t\t}\n\n\t\t\tBeanShell.runCachedBlock(cachedCode,view,null);\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\tnew BeanShellErrorDialog(view,e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [3, 7], [3, 8], [5, 9], [4, 10], [6, 11], [4, 12], [12, 13], [10, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 3], [8, 3], [9, 5], [10, 4], [11, 6], [12, 4], [13, 12], [14, 10], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isToggle", "code": "\tpublic boolean isToggle()\n\t{\n\t\treturn isSelected != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isSelected", "code": "\tpublic boolean isSelected(View view)\n\t{\n\t\tif(isSelected == null)\n\t\t\treturn false;\n\n\t\ttry\n\t\t{\n\t\t\treturn Boolean.TRUE.equals(BeanShell.runCachedBlock(\n\t\t\t\tcachedIsSelected,view,null));\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\tnew BeanShellErrorDialog(view,e);\n\n\t\t\treturn false;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "RETURN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [2, 7], [4, 8], [5, 9], [6, 10], [7, 11], [8, 12], [4, 13], [4, 14], [9, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 2], [8, 4], [9, 5], [10, 6], [11, 7], [12, 8], [13, 4], [14, 4], [15, 9], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "noRepeat", "code": "\tpublic boolean noRepeat()\n\t{\n\t\treturn noRepeat;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "noRecord", "code": "\tpublic boolean noRecord()\n\t{\n\t\treturn noRecord;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCode", "code": "\tpublic String getCode()\n\t{\n\t\treturn code.trim();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "BeanShellAction", "code": "\tpublic BeanShellAction(String name, String code, String isSelected,\n\t\tboolean noRepeat, boolean noRecord)\n\t{\n\t\tsuper(name);\n\n\t\tthis.code = code;\n\t\tthis.isSelected = isSelected;\n\t\tthis.noRepeat = noRepeat;\n\t\tthis.noRecord = noRecord;\n\n\t\t/* Some characters that we like to use in action names\n\t\t * ('.', '-') are not allowed in BeanShell identifiers. */\n\t\tsanitizedName = name.replace('.','_').replace('-','_');\n\n\t\t// evaluate isSelected now so that menus don't take a long\n\t\t// time to first come up\n\t\tif(isSelected != null)\n\t\t{\n\t\t\tString cachedIsSelectedName = \"selected_\" + sanitizedName;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tcachedIsSelected = BeanShell.cacheBlock(cachedIsSelectedName,\n\t\t\t\t\tisSelected,false);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\t\tnew BeanShellErrorDialog(null,e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [1, 14], [7, 15], [8, 16], [13, 17], [16, 18], [16, 19], [16, 20], [13, 21], [14, 22], [20, 23], [20, 24], [17, 25], [17, 26], [21, 27], [22, 28], [25, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 1], [15, 7], [16, 8], [17, 13], [18, 16], [19, 16], [20, 16], [21, 13], [22, 14], [23, 20], [24, 20], [25, 17], [26, 17], [27, 21], [28, 22], [29, 25], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}], "label": 0}
{"sample_id": "jedit-4.2-4300", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/jEdit.java", "language": "java", "name": "org.gjt.sp.jedit.jEdit", "code": "public class jEdit\n{\n\t//{{{ getVersion() method\n\t/**\n\t * Returns the jEdit version as a human-readable string.\n\t */\n\tpublic static String getVersion()\n\t{\n\t\treturn MiscUtilities.buildToVersion(getBuild());\n\t} //}}}\n\n\t//{{{ getBuild() method\n\t/**\n\t * Returns the internal version. MiscUtilities.compareStrings() can be used\n\t * to compare different internal versions.\n\t */\n\tpublic static String getBuild()\n\t{\n\t\t// (major).(minor).(<99 = preX, 99 = final).(bug fix)\n\t\treturn \"04.02.99.00\";\n\t} //}}}\n\n\t//{{{ main() method\n\t/**\n\t * The main method of the jEdit application.\n\t * This should never be invoked directly.\n\t * @param args The command line arguments\n\t */\n\tpublic static void main(String[] args)\n\t{\n\t\t//{{{ Check for Java 1.3 or later\n\t\tString javaVersion = System.getProperty(\"java.version\");\n\t\tif(javaVersion.compareTo(\"1.3\") < 0)\n\t\t{\n\t\t\tSystem.err.println(\"You are running Java version \"\n\t\t\t\t+ javaVersion + \".\");\n\t\t\tSystem.err.println(\"jEdit requires Java 1.3 or later.\");\n\t\t\tSystem.exit(1);\n\t\t} //}}}\n\n\t\t// later on we need to know if certain code is called from\n\t\t// the main thread\n\t\tmainThread = Thread.currentThread();\n\n\t\tsettingsDirectory = \".jedit\";\n\n\t\t// MacOS users expect the app to keep running after all windows\n\t\t// are closed\n\t\tbackground = OperatingSystem.isMacOS();\n\n\t\t//{{{ Parse command line\n\t\tboolean endOpts = false;\n\t\tint level = Log.WARNING;\n\t\tString portFile = \"server\";\n\t\tboolean restore = true;\n\t\tboolean newView = true;\n\t\tboolean newPlainView = false;\n\t\tboolean gui = true; // open initial view?\n\t\tboolean loadPlugins = true;\n\t\tboolean runStartupScripts = true;\n\t\tboolean quit = false;\n\t\tboolean wait = false;\n\t\tString userDir = System.getProperty(\"user.dir\");\n\n\t\t// script to run\n\t\tString scriptFile = null;\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tString arg = args[i];\n\t\t\tif(arg == null)\n\t\t\t\tcontinue;\n\t\t\telse if(arg.length() == 0)\n\t\t\t\targs[i] = null;\n\t\t\telse if(arg.startsWith(\"-\") && !endOpts)\n\t\t\t{\n\t\t\t\tif(arg.equals(\"--\"))\n\t\t\t\t\tendOpts = true;\n\t\t\t\telse if(arg.equals(\"-usage\"))\n\t\t\t\t{\n\t\t\t\t\tversion();\n\t\t\t\t\tSystem.err.println();\n\t\t\t\t\tusage();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\telse if(arg.equals(\"-version\"))\n\t\t\t\t{\n\t\t\t\t\tversion();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\telse if(arg.startsWith(\"-log=\"))\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tlevel = Integer.parseInt(arg.substring(\"-log=\".length()));\n\t\t\t\t\t}\n\t\t\t\t\tcatch(NumberFormatException nf)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(\"Malformed option: \" + arg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(arg.equals(\"-nosettings\"))\n\t\t\t\t\tsettingsDirectory = null;\n\t\t\t\telse if(arg.startsWith(\"-settings=\"))\n\t\t\t\t\tsettingsDirectory = arg.substring(10);\n\t\t\t\telse if(arg.startsWith(\"-noserver\"))\n\t\t\t\t\tportFile = null;\n\t\t\t\telse if(arg.equals(\"-server\"))\n\t\t\t\t\tportFile = \"server\";\n\t\t\t\telse if(arg.startsWith(\"-server=\"))\n\t\t\t\t\tportFile = arg.substring(8);\n\t\t\t\telse if(arg.startsWith(\"-background\"))\n\t\t\t\t\tbackground = true;\n\t\t\t\telse if(arg.startsWith(\"-nobackground\"))\n\t\t\t\t\tbackground = false;\n\t\t\t\telse if(arg.equals(\"-gui\"))\n\t\t\t\t\tgui = true;\n\t\t\t\telse if(arg.equals(\"-nogui\"))\n\t\t\t\t\tgui = false;\n\t\t\t\telse if(arg.equals(\"-newview\"))\n\t\t\t\t\tnewView = true;\n\t\t\t\telse if(arg.equals(\"-newplainview\"))\n\t\t\t\t\tnewPlainView = true;\n\t\t\t\telse if(arg.equals(\"-reuseview\"))\n\t\t\t\t\tnewPlainView = newView = false;\n\t\t\t\telse if(arg.equals(\"-restore\"))\n\t\t\t\t\trestore = true;\n\t\t\t\telse if(arg.equals(\"-norestore\"))\n\t\t\t\t\trestore = false;\n\t\t\t\telse if(arg.equals(\"-plugins\"))\n\t\t\t\t\tloadPlugins = true;\n\t\t\t\telse if(arg.equals(\"-noplugins\"))\n\t\t\t\t\tloadPlugins = false;\n\t\t\t\telse if(arg.equals(\"-startupscripts\"))\n\t\t\t\t\trunStartupScripts = true;\n\t\t\t\telse if(arg.equals(\"-nostartupscripts\"))\n\t\t\t\t\trunStartupScripts = false;\n\t\t\t\telse if(arg.startsWith(\"-run=\"))\n\t\t\t\t\tscriptFile = arg.substring(5);\n\t\t\t\telse if(arg.equals(\"-wait\"))\n\t\t\t\t\twait = true;\n\t\t\t\telse if(arg.equals(\"-quit\"))\n\t\t\t\t\tquit = true;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Unknown option: \"\n\t\t\t\t\t\t+ arg);\n\t\t\t\t\tusage();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\targs[i] = null;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ We need these initializations very early on\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tsettingsDirectory = MiscUtilities.constructPath(\n\t\t\t\tSystem.getProperty(\"user.home\"),\n\t\t\t\tsettingsDirectory);\n\t\t\tsettingsDirectory = MiscUtilities.resolveSymlinks(\n\t\t\t\tsettingsDirectory);\n\t\t}\n\n\t\tif(settingsDirectory != null && portFile != null)\n\t\t\tportFile = MiscUtilities.constructPath(settingsDirectory,portFile);\n\t\telse\n\t\t\tportFile = null;\n\n\t\tLog.init(true,level);\n\t\t//}}}\n\n\t\t//{{{ Try connecting to another running jEdit instance\n\t\tif(portFile != null && new File(portFile).exists())\n\t\t{\n\t\t\tint port, key;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tBufferedReader in = new BufferedReader(new FileReader(portFile));\n\t\t\t\tString check = in.readLine();\n\t\t\t\tif(!check.equals(\"b\"))\n\t\t\t\t\tthrow new Exception(\"Wrong port file format\");\n\n\t\t\t\tport = Integer.parseInt(in.readLine());\n\t\t\t\tkey = Integer.parseInt(in.readLine());\n\n\t\t\t\tSocket socket = new Socket(InetAddress.getByName(\"127.0.0.1\"),port);\n\t\t\t\tDataOutputStream out = new DataOutputStream(\n\t\t\t\t\tsocket.getOutputStream());\n\t\t\t\tout.writeInt(key);\n\n\t\t\t\tString script;\n\t\t\t\tif(quit)\n\t\t\t\t{\n\t\t\t\t\tscript = \"socket.close();\\n\"\n\t\t\t\t\t\t+ \"jEdit.exit(null,true);\\n\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tscript = makeServerScript(wait,restore,\n\t\t\t\t\t\tnewView,newPlainView,args,\n\t\t\t\t\t\tscriptFile);\n\t\t\t\t}\n\n\t\t\t\tout.writeUTF(script);\n\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,\"Waiting for server\");\n\t\t\t\t// block until its closed\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsocket.getInputStream().read();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t}\n\n\t\t\t\tin.close();\n\t\t\t\tout.close();\n\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\t// ok, this one seems to confuse newbies\n\t\t\t\t// endlessly, so log it as NOTICE, not\n\t\t\t\t// ERROR\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"An error occurred\"\n\t\t\t\t\t+ \" while connecting to the jEdit server instance.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"This probably means that\"\n\t\t\t\t\t+ \" jEdit crashed and/or exited abnormally\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"the last time it was run.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"If you don't\"\n\t\t\t\t\t+ \" know what this means, don't worry.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,e);\n\t\t\t}\n\t\t}\n\n\t\tif(quit)\n\t\t{\n\t\t\t// if no server running and user runs jedit -quit,\n\t\t\t// just exit\n\t\t\tSystem.exit(0);\n\t\t} //}}}\n\n\t\t// don't show splash screen if there is a file named\n\t\t// 'nosplash' in the settings directory\n\t\tif(!new File(settingsDirectory,\"nosplash\").exists())\n\t\t\tGUIUtilities.showSplashScreen();\n\n\t\t//{{{ Initialize settings directory\n\t\tWriter stream;\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile _settingsDirectory = new File(settingsDirectory);\n\t\t\tif(!_settingsDirectory.exists())\n\t\t\t\t_settingsDirectory.mkdirs();\n\t\t\tFile _macrosDirectory = new File(settingsDirectory,\"macros\");\n\t\t\tif(!_macrosDirectory.exists())\n\t\t\t\t_macrosDirectory.mkdir();\n\n\t\t\tString logPath = MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"activity.log\");\n\n\t\t\tbackupSettingsFile(new File(logPath));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstream = new BufferedWriter(new FileWriter(logPath));\n\n\t\t\t\t// Write a warning message:\n\t\t\t\tString lineSep = System.getProperty(\"line.separator\");\n\t\t\t\tstream.write(\"Log file created on \" + new Date());\n\t\t\t\tstream.write(lineSep);\n\t\t\t\tstream.write(\"IMPORTANT:\");\n\t\t\t\tstream.write(lineSep);\n\t\t\t\tstream.write(\"Because updating this file after \"\n\t\t\t\t\t+ \"every log message would kill\");\n\t\t\t\tstream.write(lineSep);\n\t\t\t\tstream.write(\"performance, it will be *incomplete* \"\n\t\t\t\t\t+ \"unless you invoke the\");\n\t\t\t\tstream.write(lineSep);\n\t\t\t\tstream.write(\"Utilities->Troubleshooting->Update \"\n\t\t\t\t\t+ \"Activity Log on Disk command!\");\n\t\t\t\tstream.write(lineSep);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\tstream = null;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstream = null;\n\t\t} //}}}\n\n\t\tLog.setLogWriter(stream);\n\n\t\tLog.log(Log.NOTICE,jEdit.class,\"jEdit version \" + getVersion());\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"Settings directory is \"\n\t\t\t+ settingsDirectory);\n\n\t\t//{{{ Get things rolling\n\t\tinitMisc();\n\t\tinitSystemProperties();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tGUIUtilities.init();\n\t\tBeanShell.init();\n\n\t\tif(jEditHome != null)\n\t\t\tinitSiteProperties();\n\n\t\tinitUserProperties();\n\t\t//}}}\n\n\t\t//{{{ Initialize server\n\t\tif(portFile != null)\n\t\t{\n\t\t\tserver = new EditServer(portFile);\n\t\t\tif(!server.isOK())\n\t\t\t\tserver = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(background)\n\t\t\t{\n\t\t\t\tbackground = false;\n\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"You cannot specify both the\"\n\t\t\t\t\t+ \" -background and -noserver switches\");\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Do more stuff\n\t\tinitPLAF();\n\n\t\tVFSManager.init();\n\t\tinitResources();\n\t\tSearchAndReplace.load();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tif(loadPlugins)\n\t\t\tinitPlugins();\n\n\t\tHistoryModel.loadHistory();\n\t\tBufferHistory.load();\n\t\tKillRing.load();\n\t\tpropertiesChanged();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\t// Buffer sort\n\t\tsortBuffers = getBooleanProperty(\"sortBuffers\");\n\t\tsortByName = getBooleanProperty(\"sortByName\");\n\n\t\treloadModes();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\t\t//}}}\n\n\t\t//{{{ Initialize Java 1.4-specific code\n\t\tif(OperatingSystem.hasJava14())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tClassLoader loader = jEdit.class.getClassLoader();\n\t\t\t\tClass clazz;\n\t\t\t\tif(loader != null)\n\t\t\t\t\tclazz = loader.loadClass(\"org.gjt.sp.jedit.Java14\");\n\t\t\t\telse\n\t\t\t\t\tclazz = Class.forName(\"org.gjt.sp.jedit.Java14\");\n\t\t\t\tjava.lang.reflect.Method meth = clazz\n\t\t\t\t\t.getMethod(\"init\",new Class[0]);\n\t\t\t\tmeth.invoke(null,new Object[0]);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Activate plugins that must be activated at startup\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\t((PluginJAR)jars.elementAt(i)).activatePluginIfNecessary();\n\t\t} //}}}\n\n\t\t//{{{ Load macros and run startup scripts, after plugins and settings are loaded\n\t\tMacros.loadMacros();\n\t\tMacros.getMacroActionSet().initKeyBindings();\n\n\t\tif(runStartupScripts && jEditHome != null)\n\t\t{\n\t\t\tString path = MiscUtilities.constructPath(jEditHome,\"startup\");\n\t\t\tFile file = new File(path);\n\t\t\tif(file.exists())\n\t\t\t\trunStartupScripts(file);\n\t\t}\n\n\t\tif(runStartupScripts && settingsDirectory != null)\n\t\t{\n\t\t\tString path = MiscUtilities.constructPath(settingsDirectory,\"startup\");\n\t\t\tFile file = new File(path);\n\t\t\tif(!file.exists())\n\t\t\t\tfile.mkdirs();\n\t\t\telse\n\t\t\t\trunStartupScripts(file);\n\t\t} //}}}\n\n\t\t//{{{ Run script specified with -run= parameter\n\t\tif(scriptFile != null)\n\t\t{\n\t\t\tscriptFile = MiscUtilities.constructPath(userDir,scriptFile);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tBeanShell.getNameSpace().setVariable(\"args\",args);\n\t\t\t}\n\t\t\tcatch(UtilEvalError e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t}\n\t\t\tBeanShell.runScript(null,scriptFile,null,false);\n\t\t} //}}}\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\t// Open files, create the view and hide the splash screen.\n\t\tfinishStartup(gui,restore,userDir,args);\n\t} //}}}\n\n\t//{{{ Property methods\n\n\t//{{{ getProperties() method\n\t/**\n\t * Returns the properties object which contains all known\n\t * jEdit properties. Note that as of jEdit 4.2pre10, this returns a\n\t * new collection, not the existing properties instance.\n\t * @since jEdit 3.1pre4\n\t */\n\tpublic static final Properties getProperties()\n\t{\n\t\treturn propMgr.getProperties();\n\t} //}}}\n\n\t//{{{ getProperty() method\n\t/**\n\t * Fetches a property, returning null if it's not defined.\n\t * @param name The property\n\t */\n\tpublic static final String getProperty(String name)\n\t{\n\t\treturn propMgr.getProperty(name);\n\t} //}}}\n\n\t//{{{ getProperty() method\n\t/**\n\t * Fetches a property, returning the default value if it's not\n\t * defined.\n\t * @param name The property\n\t * @param def The default value\n\t */\n\tpublic static final String getProperty(String name, String def)\n\t{\n\t\tString value = propMgr.getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t\treturn value;\n\t} //}}}\n\n\t//{{{ getProperty() method\n\t/**\n\t * Returns the property with the specified name.<p>\n\t *\n\t * The elements of the <code>args</code> array are substituted\n\t * into the value of the property in place of strings of the\n\t * form <code>{<i>n</i>}</code>, where <code><i>n</i></code> is an index\n\t * in the array.<p>\n\t *\n\t * You can find out more about this feature by reading the\n\t * documentation for the <code>format</code> method of the\n\t * <code>java.text.MessageFormat</code> class.\n\t *\n\t * @param name The property\n\t * @param args The positional parameters\n\t */\n\tpublic static final String getProperty(String name, Object[] args)\n\t{\n\t\tif(name == null)\n\t\t\treturn null;\n\t\tif(args == null)\n\t\t\treturn getProperty(name);\n\t\telse\n\t\t{\n\t\t\tString value = getProperty(name);\n\t\t\tif(value == null)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn MessageFormat.format(value,args);\n\t\t}\n\t} //}}}\n\n\t//{{{ getBooleanProperty() method\n\t/**\n\t * Returns the value of a boolean property.\n\t * @param name The property\n\t */\n\tpublic static final boolean getBooleanProperty(String name)\n\t{\n\t\treturn getBooleanProperty(name,false);\n\t} //}}}\n\n\t//{{{ getBooleanProperty() method\n\t/**\n\t * Returns the value of a boolean property.\n\t * @param name The property\n\t * @param def The default value\n\t */\n\tpublic static final boolean getBooleanProperty(String name, boolean def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse if(value.equals(\"true\") || value.equals(\"yes\")\n\t\t\t|| value.equals(\"on\"))\n\t\t\treturn true;\n\t\telse if(value.equals(\"false\") || value.equals(\"no\")\n\t\t\t|| value.equals(\"off\"))\n\t\t\treturn false;\n\t\telse\n\t\t\treturn def;\n\t} //}}}\n\n\t//{{{ getIntegerProperty() method\n\t/**\n\t * Returns the value of an integer property.\n\t * @param name The property\n\t * @param def The default value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static final int getIntegerProperty(String name, int def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Integer.parseInt(value.trim());\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ getDoubleProperty() method\n\tpublic static double getDoubleProperty(String name, double def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Double.parseDouble(value.trim());\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\t\t}\n\t}\n\t//}}}\n\n\t//{{{ getFontProperty() method\n\t/**\n\t * Returns the value of a font property. The family is stored\n\t * in the <code><i>name</i></code> property, the font size is stored\n\t * in the <code><i>name</i>size</code> property, and the font style is\n\t * stored in <code><i>name</i>style</code>. For example, if\n\t * <code><i>name</i></code> is <code>view.gutter.font</code>, the\n\t * properties will be named <code>view.gutter.font</code>,\n\t * <code>view.gutter.fontsize</code>, and\n\t * <code>view.gutter.fontstyle</code>.\n\t *\n\t * @param name The property\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static final Font getFontProperty(String name)\n\t{\n\t\treturn getFontProperty(name,null);\n\t} //}}}\n\n\t//{{{ getFontProperty() method\n\t/**\n\t * Returns the value of a font property. The family is stored\n\t * in the <code><i>name</i></code> property, the font size is stored\n\t * in the <code><i>name</i>size</code> property, and the font style is\n\t * stored in <code><i>name</i>style</code>. For example, if\n\t * <code><i>name</i></code> is <code>view.gutter.font</code>, the\n\t * properties will be named <code>view.gutter.font</code>,\n\t * <code>view.gutter.fontsize</code>, and\n\t * <code>view.gutter.fontstyle</code>.\n\t *\n\t * @param name The property\n\t * @param def The default value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static final Font getFontProperty(String name, Font def)\n\t{\n\t\tString family = getProperty(name);\n\t\tString sizeString = getProperty(name + \"size\");\n\t\tString styleString = getProperty(name + \"style\");\n\n\t\tif(family == null || sizeString == null || styleString == null)\n\t\t\treturn def;\n\t\telse\n\t\t{\n\t\t\tint size, style;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tsize = Integer.parseInt(sizeString);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstyle = Integer.parseInt(styleString);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\n\t\t\treturn new Font(family,style,size);\n\t\t}\n\t} //}}}\n\n\t//{{{ getColorProperty() method\n\t/**\n\t * Returns the value of a color property.\n\t * @param name The property name\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static Color getColorProperty(String name)\n\t{\n\t\treturn getColorProperty(name,Color.black);\n\t} //}}}\n\n\t//{{{ getColorProperty() method\n\t/**\n\t * Returns the value of a color property.\n\t * @param name The property name\n\t * @param def The default value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static Color getColorProperty(String name, Color def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t\treturn GUIUtilities.parseColor(value,def);\n\t} //}}}\n\n\t//{{{ setColorProperty() method\n\t/**\n\t * Sets the value of a color property.\n\t * @param name The property name\n\t * @param value The value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static void setColorProperty(String name, Color value)\n\t{\n\t\tsetProperty(name,GUIUtilities.getColorHexString(value));\n\t} //}}}\n\n\t//{{{ setProperty() method\n\t/**\n\t * Sets a property to a new value.\n\t * @param name The property\n\t * @param value The new value\n\t */\n\tpublic static final void setProperty(String name, String value)\n\t{\n\t\tpropMgr.setProperty(name,value);\n\t} //}}}\n\n\t//{{{ setTemporaryProperty() method\n\t/**\n\t * Sets a property to a new value. Properties set using this\n\t * method are not saved to the user properties list.\n\t * @param name The property\n\t * @param value The new value\n\t * @since jEdit 2.3final\n\t */\n\tpublic static final void setTemporaryProperty(String name, String value)\n\t{\n\t\tpropMgr.setTemporaryProperty(name,value);\n\t} //}}}\n\n\t//{{{ setBooleanProperty() method\n\t/**\n\t * Sets a boolean property.\n\t * @param name The property\n\t * @param value The value\n\t */\n\tpublic static final void setBooleanProperty(String name, boolean value)\n\t{\n\t\tsetProperty(name,value ? \"true\" : \"false\");\n\t} //}}}\n\n\t//{{{ setIntegerProperty() method\n\t/**\n\t * Sets the value of an integer property.\n\t * @param name The property\n\t * @param value The value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static final void setIntegerProperty(String name, int value)\n\t{\n\t\tsetProperty(name,String.valueOf(value));\n\t} //}}}\n\n\t//{{{ setDoubleProperty() method\n\tpublic static final void setDoubleProperty(String name, double value)\n\t{\n\t\tsetProperty(name,String.valueOf(value));\n\t}\n\t//}}}\n\n\t//{{{ setFontProperty() method\n\t/**\n\t * Sets the value of a font property. The family is stored\n\t * in the <code><i>name</i></code> property, the font size is stored\n\t * in the <code><i>name</i>size</code> property, and the font style is\n\t * stored in <code><i>name</i>style</code>. For example, if\n\t * <code><i>name</i></code> is <code>view.gutter.font</code>, the\n\t * properties will be named <code>view.gutter.font</code>,\n\t * <code>view.gutter.fontsize</code>, and\n\t * <code>view.gutter.fontstyle</code>.\n\t *\n\t * @param name The property\n\t * @param value The value\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static final void setFontProperty(String name, Font value)\n\t{\n\t\tsetProperty(name,value.getFamily());\n\t\tsetIntegerProperty(name + \"size\",value.getSize());\n\t\tsetIntegerProperty(name + \"style\",value.getStyle());\n\t} //}}}\n\n\t//{{{ unsetProperty() method\n\t/**\n\t * Unsets (clears) a property.\n\t * @param name The property\n\t */\n\tpublic static final void unsetProperty(String name)\n\t{\n\t\tpropMgr.unsetProperty(name);\n\t} //}}}\n\n\t//{{{ resetProperty() method\n\t/**\n\t * Resets a property to its default value.\n\t * @param name The property\n\t *\n\t * @since jEdit 2.5pre3\n\t */\n\tpublic static final void resetProperty(String name)\n\t{\n\t\tpropMgr.resetProperty(name);\n\t} //}}}\n\n\t//{{{ propertiesChanged() method\n\t/**\n\t * Reloads various settings from the properties.\n\t */\n\tpublic static void propertiesChanged()\n\t{\n\t\tinitKeyBindings();\n\n\t\tAutosave.setInterval(getIntegerProperty(\"autosave\",30));\n\n\t\tsaveCaret = getBooleanProperty(\"saveCaret\");\n\n\t\tUIDefaults defaults = UIManager.getDefaults();\n\n\t\t// give all text areas the same font\n\t\tFont font = getFontProperty(\"view.font\");\n\n\t\t//defaults.put(\"TextField.font\",font);\n\t\tdefaults.put(\"TextArea.font\",font);\n\t\tdefaults.put(\"TextPane.font\",font);\n\n\t\t// Enable/Disable tooltips\n\t\tToolTipManager.sharedInstance().setEnabled(\n\t\t\tjEdit.getBooleanProperty(\"showTooltips\"));\n\n\t\tinitProxy();\n\n\t\t// we do this here instead of adding buffers to the bus.\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tbuffer.resetCachedProperties();\n\t\t\tbuffer.propertiesChanged();\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tHistoryModel.propertiesChanged();\n\t\tKillRing.propertiesChanged();\n\n\t\tEditBus.send(new PropertiesChanged(null));\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Plugin management methods\n\n\t//{{{ getNotLoadedPluginJARs() method\n\t/**\n\t * Returns a list of plugin JARs that are not currently loaded\n\t * by examining the user and system plugin directories.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic static String[] getNotLoadedPluginJARs()\n\t{\n\t\tVector returnValue = new Vector();\n\n\t\tif(jEditHome != null)\n\t\t{\n\t\t\tString systemPluginDir = MiscUtilities\n\t\t\t\t.constructPath(jEditHome,\"jars\");\n\n\t\t\tString[] list = new File(systemPluginDir).list();\n\t\t\tif(list != null)\n\t\t\t\tgetNotLoadedPluginJARs(returnValue,systemPluginDir,list);\n\t\t}\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tString userPluginDir = MiscUtilities\n\t\t\t\t.constructPath(settingsDirectory,\"jars\");\n\t\t\tString[] list = new File(userPluginDir).list();\n\t\t\tif(list != null)\n\t\t\t{\n\t\t\t\tgetNotLoadedPluginJARs(returnValue,\n\t\t\t\t\tuserPluginDir,list);\n\t\t\t}\n\t\t}\n\n\t\tString[] _returnValue = new String[returnValue.size()];\n\t\treturnValue.copyInto(_returnValue);\n\t\treturn _returnValue;\n\t} //}}}\n\n\t//{{{ getPlugin() method\n\t/**\n\t * Returns the plugin with the specified class name.\n\t */\n\tpublic static EditPlugin getPlugin(String name)\n\t{\n\t\treturn getPlugin(name, false);\n\t} //}}}\n\n\t//{{{ getPlugin(String, boolean) method\n\t/**\n\t * Returns the plugin with the specified class name. If\n\t * <code>loadIfNecessary</code> is true, the plugin will be activated in\n\t * case it has not yet been started.\n\t * @since jEdit 4.2pre4\n\t */\n\tpublic static EditPlugin getPlugin(String name, boolean loadIfNecessary)\n\t{\n\t\tEditPlugin[] plugins = getPlugins();\n\t\tEditPlugin plugin = null;\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tif(plugins[i].getClassName().equals(name))\n\t\t\t\tplugin = plugins[i];\n\t\t\tif(loadIfNecessary)\n\t\t\t{\n\t\t\t\tif(plugin instanceof EditPlugin.Deferred)\n\t\t\t\t{\n\t\t\t\t\tplugin.getPluginJAR().activatePlugin();\n\t\t\t\t\tplugin = plugin.getPluginJAR().getPlugin();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn plugin;\n\t} //}}}\n\n\t//{{{ getPlugins() method\n\t/**\n\t * Returns an array of installed plugins.\n\t */\n\tpublic static EditPlugin[] getPlugins()\n\t{\n\t\tVector vector = new Vector();\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\tEditPlugin plugin = ((PluginJAR)jars.elementAt(i))\n\t\t\t\t.getPlugin();\n\t\t\tif(plugin != null)\n\t\t\t\tvector.add(plugin);\n\t\t}\n\n\t\tEditPlugin[] array = new EditPlugin[vector.size()];\n\t\tvector.copyInto(array);\n\t\treturn array;\n\t} //}}}\n\n\t//{{{ getPluginJARs() method\n\t/**\n\t * Returns an array of installed plugins.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static PluginJAR[] getPluginJARs()\n\t{\n\t\tPluginJAR[] array = new PluginJAR[jars.size()];\n\t\tjars.copyInto(array);\n\t\treturn array;\n\t} //}}}\n\n\t//{{{ getPluginJAR() method\n\t/**\n\t * Returns the JAR with the specified path name.\n\t * @param path The path name\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static PluginJAR getPluginJAR(String path)\n\t{\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\tPluginJAR jar = (PluginJAR)jars.elementAt(i);\n\t\t\tif(jar.getPath().equals(path))\n\t\t\t\treturn jar;\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ addPluginJAR() method\n\t/**\n\t * Loads the plugin JAR with the specified path. Some notes about this\n\t * method:\n\t *\n\t * <ul>\n\t * <li>Calling this at a time other than jEdit startup can have\n\t * unpredictable results if the plugin has not been updated for the\n\t * jEdit 4.2 plugin API.\n\t * <li>You must make sure yourself the plugin is not already loaded.\n\t * <li>After loading, you just make sure all the plugin's dependencies\n\t * are satisified before activating the plugin, using the\n\t * {@link PluginJAR#checkDependencies()} method.\n\t * </ul>\n\t *\n\t * @param path The JAR file path\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static void addPluginJAR(String path)\n\t{\n\t\t// backwards compatibility...\n\t\tPluginJAR jar = new EditPlugin.JAR(new File(path));\n\t\tjars.addElement(jar);\n\t\tjar.init();\n\n\t\tEditBus.send(new PluginUpdate(jar,PluginUpdate.LOADED,false));\n\t\tif(!isMainThread())\n\t\t{\n\t\t\tEditBus.send(new DynamicMenuChanged(\"plugins\"));\n\t\t\tinitKeyBindings();\n\t\t}\n\t} //}}}\n\n\t//{{{ addPluginJARsFromDirectory() method\n\t/**\n\t * Loads all plugins in a directory.\n\t * @param directory The directory\n\t * @since jEdit 4.2pre1\n\t */\n\tprivate static void addPluginJARsFromDirectory(String directory)\n\t{\n\t\tLog.log(Log.NOTICE,jEdit.class,\"Loading plugins from \"\n\t\t\t+ directory);\n\n\t\tFile file = new File(directory);\n\t\tif(!(file.exists() && file.isDirectory()))\n\t\t\treturn;\n\t\tString[] plugins = file.list();\n\t\tif(plugins == null)\n\t\t\treturn;\n\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tString plugin = plugins[i];\n\t\t\tif(!plugin.toLowerCase().endsWith(\".jar\"))\n\t\t\t\tcontinue;\n\n\t\t\tString path = MiscUtilities.constructPath(directory,plugin);\n\n\t\t\t// remove this when 4.1 plugin API is deprecated\n\t\t\tif(plugin.equals(\"EditBuddy.jar\")\n\t\t\t\t|| plugin.equals(\"PluginManager.jar\")\n\t\t\t\t|| plugin.equals(\"Firewall.jar\")\n\t\t\t\t|| plugin.equals(\"Tidy.jar\")\n\t\t\t\t|| plugin.equals(\"DragAndDrop.jar\"))\n\t\t\t{\n\t\t\t\tpluginError(path,\"plugin-error.obsolete\",null);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\taddPluginJAR(path);\n\t\t}\n\t} //}}}\n\n\t//{{{ removePluginJAR() method\n\t/**\n\t * Unloads the given plugin JAR with the specified path. Note that\n\t * calling this at a time other than jEdit shutdown can have\n\t * unpredictable results if the plugin has not been updated for the\n\t * jEdit 4.2 plugin API.\n\t *\n\t * @param jar The <code>PluginJAR</code> instance\n\t * @param exit Set to true if jEdit is exiting; enables some\n\t * shortcuts so the editor can close faster.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static void removePluginJAR(PluginJAR jar, boolean exit)\n\t{\n\t\tif(exit)\n\t\t{\n\t\t\tjar.uninit(true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tjar.uninit(false);\n\t\t\tjars.removeElement(jar);\n\t\t\tinitKeyBindings();\n\t\t}\n\n\t\tEditBus.send(new PluginUpdate(jar,PluginUpdate.UNLOADED,exit));\n\t\tif(!isMainThread() && !exit)\n\t\t\tEditBus.send(new DynamicMenuChanged(\"plugins\"));\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Action methods\n\n\t//{{{ getActionContext() method\n\t/**\n\t * Returns the action context used to store editor actions.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static ActionContext getActionContext()\n\t{\n\t\treturn actionContext;\n\t} //}}}\n\n\t//{{{ addActionSet() method\n\t/**\n\t * Adds a new action set to jEdit's list. Plugins probably won't\n\t * need to call this method.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static void addActionSet(ActionSet actionSet)\n\t{\n\t\tactionContext.addActionSet(actionSet);\n\t} //}}}\n\n\t//{{{ removeActionSet() method\n\t/**\n\t * Removes an action set from jEdit's list. Plugins probably won't\n\t * need to call this method.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static void removeActionSet(ActionSet actionSet)\n\t{\n\t\tactionContext.removeActionSet(actionSet);\n\t} //}}}\n\n\t//{{{ getBuiltInActionSet() method\n\t/**\n\t * Returns the set of commands built into jEdit.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static ActionSet getBuiltInActionSet()\n\t{\n\t\treturn builtInActionSet;\n\t} //}}}\n\n\t//{{{ getActionSets() method\n\t/**\n\t * Returns all registered action sets.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static ActionSet[] getActionSets()\n\t{\n\t\treturn actionContext.getActionSets();\n\t} //}}}\n\n\t//{{{ getAction() method\n\t/**\n\t * Returns the specified action.\n\t * @param name The action name\n\t */\n\tpublic static EditAction getAction(String name)\n\t{\n\t\treturn actionContext.getAction(name);\n\t} //}}}\n\n\t//{{{ getActionSetForAction() method\n\t/**\n\t * Returns the action set that contains the specified action.\n\t *\n\t * @param action The action\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static ActionSet getActionSetForAction(String action)\n\t{\n\t\treturn actionContext.getActionSetForAction(action);\n\t} //}}}\n\n\t//{{{ getActionSetForAction() method\n\t/**\n\t * @deprecated Use the form that takes a String instead\n\t */\n\tpublic static ActionSet getActionSetForAction(EditAction action)\n\t{\n\t\treturn actionContext.getActionSetForAction(action.getName());\n\t} //}}}\n\n\t//{{{ getActions() method\n\t/**\n\t * @deprecated Call getActionNames() instead\n\t */\n\tpublic static EditAction[] getActions()\n\t{\n\t\tString[] names = actionContext.getActionNames();\n\t\tEditAction[] actions = new EditAction[names.length];\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tactions[i] = actionContext.getAction(names[i]);\n\t\t\tif(actions[i] == null)\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,\"wtf: \" + names[i]);\n\t\t}\n\t\treturn actions;\n\t} //}}}\n\n\t//{{{ getActionNames() method\n\t/**\n\t * Returns all registered action names.\n\t */\n\tpublic static String[] getActionNames()\n\t{\n\t\treturn actionContext.getActionNames();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Edit mode methods\n\n\t//{{{ reloadModes() method\n\t/**\n\t * Reloads all edit modes.\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static void reloadModes()\n\t{\n\t\t/* Try to guess the eventual size to avoid unnecessary\n\t\t * copying */\n\t\tmodes = new Vector(50);\n\n\t\t//{{{ Load the global catalog\n\t\tif(jEditHome == null)\n\t\t\tloadModeCatalog(\"/modes/catalog\",true);\n\t\telse\n\t\t{\n\t\t\tloadModeCatalog(MiscUtilities.constructPath(jEditHome,\n\t\t\t\t\"modes\",\"catalog\"),false);\n\t\t} //}}}\n\n\t\t//{{{ Load user catalog\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile userModeDir = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"modes\"));\n\t\t\tif(!userModeDir.exists())\n\t\t\t\tuserModeDir.mkdirs();\n\n\t\t\tFile userCatalog = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"modes\",\"catalog\"));\n\t\t\tif(!userCatalog.exists())\n\t\t\t{\n\t\t\t\t// create dummy catalog\n\t\t\t\tFileWriter out = null;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tout = new FileWriter(userCatalog);\n\t\t\t\t\tout.write(jEdit.getProperty(\"defaultCatalog\"));\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tif(out != null)\n\t\t\t\t\t\t\tout.close();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(IOException e)\n\t\t\t\t\t{\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tloadModeCatalog(userCatalog.getPath(),false);\n\t\t} //}}}\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\t// This reloads the token marker and sends a message\n\t\t\t// which causes edit panes to repaint their text areas\n\t\t\tbuffer.setMode();\n\n\t\t\tbuffer = buffer.next;\n\t\t}\n\t} //}}}\n\n\t//{{{ getMode() method\n\t/**\n\t * Returns the edit mode with the specified name.\n\t * @param name The edit mode\n\t */\n\tpublic static Mode getMode(String name)\n\t{\n\t\tfor(int i = 0; i < modes.size(); i++)\n\t\t{\n\t\t\tMode mode = (Mode)modes.elementAt(i);\n\t\t\tif(mode.getName().equals(name))\n\t\t\t\treturn mode;\n\t\t}\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getModes() method\n\t/**\n\t * Returns an array of installed edit modes.\n\t */\n\tpublic static Mode[] getModes()\n\t{\n\t\tMode[] array = new Mode[modes.size()];\n\t\tmodes.copyInto(array);\n\t\treturn array;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Buffer creation methods\n\n\t//{{{ openFiles() method\n\t/**\n\t * Opens the file names specified in the argument array. This\n\t * handles +line and +marker arguments just like the command\n\t * line parser.\n\t * @param parent The parent directory\n\t * @param args The file names to open\n\t * @since jEdit 3.2pre4\n\t */\n\tpublic static Buffer openFiles(View view, String parent, String[] args)\n\t{\n\t\tBuffer retVal = null;\n\t\tBuffer lastBuffer = null;\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tString arg = args[i];\n\t\t\tif(arg == null)\n\t\t\t\tcontinue;\n\t\t\telse if(arg.startsWith(\"+line:\") || arg.startsWith(\"+marker:\"))\n\t\t\t{\n\t\t\t\tif(lastBuffer != null)\n\t\t\t\t\tgotoMarker(view,lastBuffer,arg);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlastBuffer = openFile(null,parent,arg,false,null);\n\n\t\t\tif(retVal == null && lastBuffer != null)\n\t\t\t\tretVal = lastBuffer;\n\t\t}\n\n\t\tif(view != null && retVal != null)\n\t\t\tview.setBuffer(retVal);\n\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ openFile() method\n\t/**\n\t * Opens a file. Note that as of jEdit 2.5pre1, this may return\n\t * null if the buffer could not be opened.\n\t * @param view The view to open the file in\n\t * @param path The file path\n\t *\n\t * @since jEdit 2.4pre1\n\t */\n\tpublic static Buffer openFile(View view, String path)\n\t{\n\t\treturn openFile(view,null,path,false,new Hashtable());\n\t} //}}}\n\n\t//{{{ openFile() method\n\t/**\n\t * @deprecated The openFile() forms with the readOnly parameter\n\t * should not be used. The readOnly prameter is no longer supported.\n\t */\n\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean readOnly, boolean newFile)\n\t{\n\t\treturn openFile(view,parent,path,newFile,new Hashtable());\n\t} //}}}\n\n\t//{{{ openFile() method\n\t/**\n\t * @deprecated The openFile() forms with the readOnly parameter\n\t * should not be used. The readOnly prameter is no longer supported.\n\t */\n\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean readOnly, boolean newFile,\n\t\tHashtable props)\n\t{\n\t\treturn openFile(view,parent,path,newFile,props);\n\t} //}}}\n\n\t//{{{ openFile() method\n\t/**\n\t * Opens a file. This may return null if the buffer could not be\n\t * opened for some reason.\n\t * @param view The view to open the file in\n\t * @param parent The parent directory of the file\n\t * @param path The path name of the file\n\t * @param newFile True if the file should not be loaded from disk\n\t * be prompted if it should be reloaded\n\t * @param props Buffer-local properties to set in the buffer\n\t *\n\t * @since jEdit 3.2pre10\n\t */\n\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean newFile, Hashtable props)\n\t{\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\tif(view != null && parent == null)\n\t\t\tparent = view.getBuffer().getDirectory();\n\n\t\tif(MiscUtilities.isURL(path))\n\t\t{\n\t\t\tif(MiscUtilities.getProtocolOfURL(path).equals(\"file\"))\n\t\t\t\tpath = path.substring(5);\n\t\t}\n\n\t\tpath = MiscUtilities.constructPath(parent,path);\n\n\t\tBuffer newBuffer;\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer buffer = getBuffer(path);\n\t\t\tif(buffer != null)\n\t\t\t{\n\t\t\t\tif(view != null)\n\t\t\t\t\tview.setBuffer(buffer);\n\n\t\t\t\treturn buffer;\n\t\t\t}\n\n\t\t\tif(props == null)\n\t\t\t\tprops = new Hashtable();\n\n\t\t\tBufferHistory.Entry entry = BufferHistory.getEntry(path);\n\n\t\t\tif(entry != null && saveCaret && props.get(Buffer.CARET) == null)\n\t\t\t{\n\t\t\t\tprops.put(Buffer.CARET,new Integer(entry.caret));\n\t\t\t\t/* if(entry.selection != null)\n\t\t\t\t{\n\t\t\t\t\t// getSelection() converts from string to\n\t\t\t\t\t// Selection[]\n\t\t\t\t\tprops.put(Buffer.SELECTION,entry.getSelection());\n\t\t\t\t} */\n\t\t\t}\n\n\t\t\tif(entry != null && props.get(Buffer.ENCODING) == null)\n\t\t\t{\n\t\t\t\tif(entry.encoding != null)\n\t\t\t\t\tprops.put(Buffer.ENCODING,entry.encoding);\n\t\t\t}\n\n\t\t\tnewBuffer = new Buffer(path,newFile,false,props);\n\n\t\t\tif(!newBuffer.load(view,false))\n\t\t\t\treturn null;\n\n\t\t\taddBufferToList(newBuffer);\n\t\t}\n\n\t\tEditBus.send(new BufferUpdate(newBuffer,view,BufferUpdate.CREATED));\n\n\t\tif(view != null)\n\t\t\tview.setBuffer(newBuffer);\n\n\t\treturn newBuffer;\n\t} //}}}\n\n\t//{{{ openTemporary() method\n\t/**\n\t * Opens a temporary buffer. A temporary buffer is like a normal\n\t * buffer, except that an event is not fired, the the buffer is\n\t * not added to the buffers list.\n\t *\n\t * @param view The view to open the file in\n\t * @param parent The parent directory of the file\n\t * @param path The path name of the file\n\t * @param newFile True if the file should not be loaded from disk\n\t *\n\t * @since jEdit 3.2pre10\n\t */\n\tpublic static Buffer openTemporary(View view, String parent,\n\t\tString path, boolean newFile)\n\t{\n\t\tif(view != null && parent == null)\n\t\t\tparent = view.getBuffer().getDirectory();\n\n\t\tif(MiscUtilities.isURL(path))\n\t\t{\n\t\t\tif(MiscUtilities.getProtocolOfURL(path).equals(\"file\"))\n\t\t\t\tpath = path.substring(5);\n\t\t}\n\n\t\tpath = MiscUtilities.constructPath(parent,path);\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer buffer = getBuffer(path);\n\t\t\tif(buffer != null)\n\t\t\t\treturn buffer;\n\n\t\t\tbuffer = new Buffer(path,newFile,true,new Hashtable());\n\t\t\tif(!buffer.load(view,false))\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn buffer;\n\t\t}\n\t} //}}}\n\n\t//{{{ commitTemporary() method\n\t/**\n\t * Adds a temporary buffer to the buffer list. This must be done\n\t * before allowing the user to interact with the buffer in any\n\t * way.\n\t * @param buffer The buffer\n\t */\n\tpublic static void commitTemporary(Buffer buffer)\n\t{\n\t\tif(!buffer.isTemporary())\n\t\t\treturn;\n\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\taddBufferToList(buffer);\n\t\tbuffer.commitTemporary();\n\n\t\t// send full range of events to avoid breaking plugins\n\t\tEditBus.send(new BufferUpdate(buffer,null,BufferUpdate.CREATED));\n\t\tEditBus.send(new BufferUpdate(buffer,null,BufferUpdate.LOAD_STARTED));\n\t\tEditBus.send(new BufferUpdate(buffer,null,BufferUpdate.LOADED));\n\t} //}}}\n\n\t//{{{ newFile() method\n\t/**\n\t * Creates a new `untitled' file.\n\t * @param view The view to create the file in\n\t */\n\tpublic static Buffer newFile(View view)\n\t{\n\t\tString path;\n\n\t\tif(view != null && view.getBuffer() != null)\n\t\t{\n\t\t\tpath = view.getBuffer().getDirectory();\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\t// don't want 'New File' to create a read only buffer\n\t\t\t// if current file is on SQL VFS or something\n\t\t\tif((vfs.getCapabilities() & VFS.WRITE_CAP) == 0)\n\t\t\t\tpath = System.getProperty(\"user.home\");\n\t\t}\n\t\telse\n\t\t\tpath = null;\n\n\t\treturn newFile(view,path);\n\t} //}}}\n\n\t//{{{ newFile() method\n\t/**\n\t * Creates a new `untitled' file.\n\t * @param view The view to create the file in\n\t * @param dir The directory to create the file in\n\t * @since jEdit 3.1pre2\n\t */\n\tpublic static Buffer newFile(View view, String dir)\n\t{\n\t\t// If only one new file is open which is clean, just close\n\t\t// it, which will create an 'Untitled-1'\n\t\tif(dir != null\n\t\t\t&& buffersFirst != null\n\t\t\t&& buffersFirst == buffersLast\n\t\t\t&& buffersFirst.isUntitled()\n\t\t\t&& !buffersFirst.isDirty())\n\t\t{\n\t\t\tcloseBuffer(view,buffersFirst);\n\t\t\t// return the newly created 'untitled-1'\n\t\t\treturn buffersFirst;\n\t\t}\n\n\t\t// Find the highest Untitled-n file\n\t\tint untitledCount = 0;\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.getName().startsWith(\"Untitled-\"))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tuntitledCount = Math.max(untitledCount,\n\t\t\t\t\t\tInteger.parseInt(buffer.getName()\n\t\t\t\t\t\t.substring(9)));\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException nf)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\treturn openFile(view,dir,\"Untitled-\" + (untitledCount+1),true,null);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Buffer management methods\n\n\t//{{{ closeBuffer() method\n\t/**\n\t * Closes a buffer. If there are unsaved changes, the user is\n\t * prompted if they should be saved first.\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @return True if the buffer was really closed, false otherwise\n\t */\n\tpublic static boolean closeBuffer(View view, Buffer buffer)\n\t{\n\t\t// Wait for pending I/O requests\n\t\tif(buffer.isPerformingIO())\n\t\t{\n\t\t\tVFSManager.waitForRequests();\n\t\t\tif(VFSManager.errorOccurred())\n\t\t\t\treturn false;\n\t\t}\n\n\t\tif(buffer.isDirty())\n\t\t{\n\t\t\tObject[] args = { buffer.getName() };\n\t\t\tint result = GUIUtilities.confirm(view,\"notsaved\",args,\n\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION,\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\tif(result == JOptionPane.YES_OPTION)\n\t\t\t{\n\t\t\t\tif(!buffer.save(view,null,true))\n\t\t\t\t\treturn false;\n\n\t\t\t\tVFSManager.waitForRequests();\n\t\t\t\tif(buffer.getBooleanProperty(BufferIORequest\n\t\t\t\t\t.ERROR_OCCURRED))\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(result != JOptionPane.NO_OPTION)\n\t\t\t\treturn false;\n\t\t}\n\n\t\t_closeBuffer(view,buffer);\n\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ _closeBuffer() method\n\t/**\n\t * Closes the buffer, even if it has unsaved changes.\n\t * @param view The view, may be null\n\t * @param buffer The buffer\n\t *\n\t * @exception NullPointerException if the buffer is null\n\t *\n\t * @since jEdit 2.2pre1\n\t */\n\tpublic static void _closeBuffer(View view, Buffer buffer)\n\t{\n\t\tif(buffer.isClosed())\n\t\t{\n\t\t\t// can happen if the user presses C+w twice real\n\t\t\t// quick and the buffer has unsaved changes\n\t\t\treturn;\n\t\t}\n\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\tif(!buffer.isNewFile())\n\t\t{\n\t\t\tif(view != null)\n\t\t\t\tview.getEditPane().saveCaretInfo();\n\t\t\tInteger _caret = (Integer)buffer.getProperty(Buffer.CARET);\n\t\t\tint caret = (_caret == null ? 0 : _caret.intValue());\n\n\t\t\tBufferHistory.setEntry(buffer.getPath(),caret,\n\t\t\t\t(Selection[])buffer.getProperty(Buffer.SELECTION),\n\t\t\t\tbuffer.getStringProperty(Buffer.ENCODING));\n\t\t}\n\n\t\tString path = buffer.getSymlinkPath();\n\t\tif((VFSManager.getVFSForPath(path).getCapabilities()\n\t\t\t& VFS.CASE_INSENSITIVE_CAP) != 0)\n\t\t{\n\t\t\tpath = path.toLowerCase();\n\t\t}\n\t\tbufferHash.remove(path);\n\t\tremoveBufferFromList(buffer);\n\t\tbuffer.close();\n\t\tDisplayManager.bufferClosed(buffer);\n\n\t\tEditBus.send(new BufferUpdate(buffer,view,BufferUpdate.CLOSED));\n\n\t\t// Create a new file when the last is closed\n\t\tif(buffersFirst == null && buffersLast == null)\n\t\t\tnewFile(view);\n\t} //}}}\n\n\t//{{{ closeAllBuffers() method\n\t/**\n\t * Closes all open buffers.\n\t * @param view The view\n\t */\n\tpublic static boolean closeAllBuffers(View view)\n\t{\n\t\treturn closeAllBuffers(view,false);\n\t} //}}}\n\n\t//{{{ closeAllBuffers() method\n\t/**\n\t * Closes all open buffers.\n\t * @param view The view\n\t * @param isExiting This must be false unless this method is\n\t * being called by the exit() method\n\t */\n\tpublic static boolean closeAllBuffers(View view, boolean isExiting)\n\t{\n\t\tif(view != null)\n\t\t\tview.getEditPane().saveCaretInfo();\n\n\t\tboolean dirty = false;\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.isDirty())\n\t\t\t{\n\t\t\t\tdirty = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tif(dirty)\n\t\t{\n\t\t\tboolean ok = new CloseDialog(view).isOK();\n\t\t\tif(!ok)\n\t\t\t\treturn false;\n\t\t}\n\n\t\t// Wait for pending I/O requests\n\t\tVFSManager.waitForRequests();\n\t\tif(VFSManager.errorOccurred())\n\t\t\treturn false;\n\n\t\t// close remaining buffers (the close dialog only deals with\n\t\t// dirty ones)\n\n\t\tbuffer = buffersFirst;\n\n\t\t// zero it here so that BufferTabs doesn't have any problems\n\t\tbuffersFirst = buffersLast = null;\n\t\tbufferHash.clear();\n\t\tbufferCount = 0;\n\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(!buffer.isNewFile())\n\t\t\t{\n\t\t\t\tInteger _caret = (Integer)buffer.getProperty(Buffer.CARET);\n\t\t\t\tint caret = (_caret == null ? 0 : _caret.intValue());\n\t\t\t\tBufferHistory.setEntry(buffer.getPath(),caret,\n\t\t\t\t\t(Selection[])buffer.getProperty(Buffer.SELECTION),\n\t\t\t\t\tbuffer.getStringProperty(Buffer.ENCODING));\n\t\t\t}\n\n\t\t\tbuffer.close();\n\t\t\tDisplayManager.bufferClosed(buffer);\n\t\t\tif(!isExiting)\n\t\t\t{\n\t\t\t\tEditBus.send(new BufferUpdate(buffer,view,\n\t\t\t\t\tBufferUpdate.CLOSED));\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tif(!isExiting)\n\t\t\tnewFile(view);\n\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ saveAllBuffers() method\n\t/**\n\t * Saves all open buffers.\n\t * @param view The view\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static void saveAllBuffers(View view)\n\t{\n\t\tsaveAllBuffers(view,jEdit.getBooleanProperty(\"confirmSaveAll\"));\n\t} //}}}\n\n\t//{{{ saveAllBuffers() method\n\t/**\n\t * Saves all open buffers.\n\t * @param view The view\n\t * @param confirm If true, a confirmation dialog will be shown first\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void saveAllBuffers(View view, boolean confirm)\n\t{\n\t\tif(confirm)\n\t\t{\n\t\t\tint result = GUIUtilities.confirm(view,\"saveall\",null,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn;\n\t\t}\n\n\t\tBuffer current = view.getBuffer();\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.isDirty())\n\t\t\t{\n\t\t\t\tif(buffer.isNewFile())\n\t\t\t\t\tview.setBuffer(buffer);\n\t\t\t\tbuffer.save(view,null,true);\n\t\t\t}\n\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tview.setBuffer(current);\n\t} //}}}\n\n\t//{{{ reloadAllBuffers() method\n\t/**\n\t * Reloads all open buffers.\n\t * @param view The view\n\t * @param confirm If true, a confirmation dialog will be shown first\n\t *\tif any buffers are dirty\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void reloadAllBuffers(final View view, boolean confirm)\n\t{\n\t\tboolean hasDirty = false;\n\t\tBuffer[] buffers = jEdit.getBuffers();\n\n\t\tfor(int i = 0; i < buffers.length && hasDirty == false; i++)\n\t\t\thasDirty = buffers[i].isDirty();\n\n\t\tif(confirm && hasDirty)\n\t\t{\n\t\t\tint result = GUIUtilities.confirm(view,\"reload-all\",null,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn;\n\t\t}\n\n\t\t// save caret info. Buffer.load() will load it.\n\t\tView _view = viewsFirst;\n\t\twhile(_view != null)\n\t\t{\n\t\t\tEditPane[] panes = _view.getEditPanes();\n\t\t\tfor(int i = 0; i < panes.length; i++)\n\t\t\t{\n\t\t\t\tpanes[i].saveCaretInfo();\n\t\t\t}\n\n\t\t\t_view = _view.next;\n\t\t}\n\n\t\tfor(int i = 0; i < buffers.length; i++)\n\t\t{\n\t\t\tBuffer buffer = buffers[i];\n\t\t\tbuffer.load(view,true);\n\t\t}\n\t} //}}}\n\n\t//{{{ _getBuffer() method\n\t/**\n\t * Returns the buffer with the specified path name. The path name\n\t * must be an absolute, canonical, path.\n\t *\n\t * @param path The path name\n\t * @see MiscUtilities#constructPath(String,String)\n\t * @see MiscUtilities#resolveSymlinks(String)\n\t * @see #getBuffer(String)\n\t *\n\t * @since jEdit 4.2pre7\n\t */\n\tpublic static Buffer _getBuffer(String path)\n\t{\n\t\t// paths on case-insensitive filesystems are stored as lower\n\t\t// case in the hash.\n\t\tif((VFSManager.getVFSForPath(path).getCapabilities()\n\t\t\t& VFS.CASE_INSENSITIVE_CAP) != 0)\n\t\t{\n\t\t\tpath = path.toLowerCase();\n\t\t}\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\treturn (Buffer)bufferHash.get(path);\n\t\t}\n\t} //}}}\n\n\t//{{{ getBuffer() method\n\t/**\n\t * Returns the buffer with the specified path name. The path name\n\t * must be an absolute path. This method automatically resolves\n\t * symbolic links. If performance is critical, cache the canonical\n\t * path and call {@link #_getBuffer(String)} instead.\n\t *\n\t * @param path The path name\n\t * @see MiscUtilities#constructPath(String,String)\n\t * @see MiscUtilities#resolveSymlinks(String)\n\t */\n\tpublic static Buffer getBuffer(String path)\n\t{\n\t\treturn _getBuffer(MiscUtilities.resolveSymlinks(path));\n\t} //}}}\n\n\t//{{{ getBuffers() method\n\t/**\n\t * Returns an array of open buffers.\n\t */\n\tpublic static Buffer[] getBuffers()\n\t{\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer[] buffers = new Buffer[bufferCount];\n\t\t\tBuffer buffer = buffersFirst;\n\t\t\tfor(int i = 0; i < bufferCount; i++)\n\t\t\t{\n\t\t\t\tbuffers[i] = buffer;\n\t\t\t\tbuffer = buffer.next;\n\t\t\t}\n\t\t\treturn buffers;\n\t\t}\n\t} //}}}\n\n\t//{{{ getBufferCount() method\n\t/**\n\t * Returns the number of open buffers.\n\t */\n\tpublic static int getBufferCount()\n\t{\n\t\treturn bufferCount;\n\t} //}}}\n\n\t//{{{ getFirstBuffer() method\n\t/**\n\t * Returns the first buffer.\n\t */\n\tpublic static Buffer getFirstBuffer()\n\t{\n\t\treturn buffersFirst;\n\t} //}}}\n\n\t//{{{ getLastBuffer() method\n\t/**\n\t * Returns the last buffer.\n\t */\n\tpublic static Buffer getLastBuffer()\n\t{\n\t\treturn buffersLast;\n\t} //}}}\n\n\t//{{{ checkBufferStatus() method\n\t/**\n\t * Checks each buffer's status on disk and shows the dialog box\n\t * informing the user that buffers changed on disk, if necessary.\n\t * @param view The view\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static void checkBufferStatus(View view)\n\t{\n\t\t// still need to call the status check even if the option is\n\t\t// off, so that the write protection is updated if it changes\n\t\t// on disk\n\t\tboolean showDialogSetting = getBooleanProperty(\n\t\t\t\"autoReloadDialog\");\n\n\t\t// auto reload changed buffers?\n\t\tboolean autoReloadSetting = getBooleanProperty(\n\t\t\t\"autoReload\");\n\n\t\t// the problem with this is that if we have two edit panes\n\t\t// looking at the same buffer and the file is reloaded both\n\t\t// will jump to the same location\n\t\tView _view = viewsFirst;\n\t\twhile(_view != null)\n\t\t{\n\t\t\tEditPane[] editPanes = _view.getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\teditPanes[i].saveCaretInfo();\n\t\t\t}\n\t\t\t_view = _view.next;\n\t\t}\n\n\t\tBuffer buffer = buffersFirst;\n\t\tint[] states = new int[bufferCount];\n\t\tint i = 0;\n\t\tboolean show = false;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tstates[i] = buffer.checkFileStatus(view);\n\n\t\t\tswitch(states[i])\n\t\t\t{\n\t\t\tcase Buffer.FILE_CHANGED:\n\t\t\t\tif(autoReloadSetting\n\t\t\t\t\t&& showDialogSetting\n\t\t\t\t\t&& !buffer.isDirty())\n\t\t\t\t{\n\t\t\t\t\tbuffer.load(view,true);\n\t\t\t\t}\n\t\t\t\t/* fall through */\n\t\t\tcase Buffer.FILE_DELETED:\n\t\t\t\tshow = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tbuffer = buffer.next;\n\t\t\ti++;\n\t\t}\n\n\t\tif(show && showDialogSetting)\n\t\t\tnew FilesChangedDialog(view,states,autoReloadSetting);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ View methods\n\n\t//{{{ getInputHandler() method\n\t/**\n\t * Returns the current input handler (key binding to action mapping)\n\t * @see org.gjt.sp.jedit.gui.InputHandler\n\t */\n\tpublic static InputHandler getInputHandler()\n\t{\n\t\treturn inputHandler;\n\t} //}}}\n\n\t/* public static void newViewTest()\n\t{\n\t\tlong time = System.currentTimeMillis();\n\t\tfor(int i = 0; i < 30; i++)\n\t\t{\n\t\t\tBuffer b = newFile(null);\n\t\t\tb.insert(0,\"x\");\n\t\t\tnew View(b,null,false);\n\t\t}\n\t\tSystem.err.println(System.currentTimeMillis() - time);\n\t} */\n\n\t//{{{ newView() method\n\t/**\n\t * Creates a new view.\n\t * @param view An existing view\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static View newView(View view)\n\t{\n\t\treturn newView(view,null,false);\n\t} //}}}\n\n\t//{{{ newView() method\n\t/**\n\t * Creates a new view of a buffer.\n\t * @param view An existing view\n\t * @param buffer The buffer\n\t */\n\tpublic static View newView(View view, Buffer buffer)\n\t{\n\t\treturn newView(view,buffer,false);\n\t} //}}}\n\n\t//{{{ newView() method\n\t/**\n\t * Creates a new view of a buffer.\n\t * @param view An existing view\n\t * @param buffer The buffer\n\t * @param plainView If true, the view will not have dockable windows or\n\t * tool bars.\n\t *\n\t * @since 4.1pre2\n\t */\n\tpublic static View newView(View view, Buffer buffer, boolean plainView)\n\t{\n\t\tView.ViewConfig config;\n\t\tif(view != null && (plainView == view.isPlainView()))\n\t\t\tconfig = view.getViewConfig();\n\t\telse\n\t\t\tconfig = new View.ViewConfig(plainView);\n\t\treturn newView(view,buffer,config);\n\t} //}}}\n\n\t//{{{ newView() method\n\t/**\n\t * Creates a new view.\n\t * @param view An existing view\n\t * @param buffer A buffer to display, or null\n\t * @param config Encapsulates the view geometry, split configuration\n\t * and if the view is a plain view\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static View newView(View view, Buffer buffer, View.ViewConfig config)\n\t{\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\ttry\n\t\t{\n\t\t\tif(view != null)\n\t\t\t{\n\t\t\t\tview.showWaitCursor();\n\t\t\t\tview.getEditPane().saveCaretInfo();\n\t\t\t}\n\n\t\t\tView newView = new View(buffer,config);\n\t\t\taddViewToList(newView);\n\n\t\t\tif(!config.plainView)\n\t\t\t{\n\t\t\t\tDockableWindowManager wm = newView.getDockableWindowManager();\n\t\t\t\tif(config.top != null\n\t\t\t\t\t&& config.top.length() != 0)\n\t\t\t\t\twm.showDockableWindow(config.top);\n\n\t\t\t\tif(config.left != null\n\t\t\t\t\t&& config.left.length() != 0)\n\t\t\t\t\twm.showDockableWindow(config.left);\n\n\t\t\t\tif(config.bottom != null\n\t\t\t\t\t&& config.bottom.length() != 0)\n\t\t\t\t\twm.showDockableWindow(config.bottom);\n\n\t\t\t\tif(config.right != null\n\t\t\t\t\t&& config.right.length() != 0)\n\t\t\t\t\twm.showDockableWindow(config.right);\n\t\t\t}\n\n\t\t\tnewView.pack();\n\n\t\t\tif(config.width != 0 && config.height != 0)\n\t\t\t{\n\t\t\t\tRectangle desired = new Rectangle(\n\t\t\t\t\tconfig.x,config.y,config.width,\n\t\t\t\t\tconfig.height);\n\t\t\t\tif(OperatingSystem.isX11() && Debug.GEOMETRY_WORKAROUND)\n\t\t\t\t{\n\t\t\t\t\tnew GUIUtilities.UnixWorkaround(newView,\n\t\t\t\t\t\t\"view\",desired,config.extState);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tnewView.setBounds(desired);\n\t\t\t\t\tGUIUtilities.setExtendedState(newView,\n\t\t\t\t\t\tconfig.extState);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tGUIUtilities.centerOnScreen(newView);\n\n\t\t\tEditBus.send(new ViewUpdate(newView,ViewUpdate.CREATED));\n\n\t\t\tnewView.setVisible(true);\n\n\t\t\t// show tip of the day\n\t\t\tif(newView == viewsFirst)\n\t\t\t{\n\t\t\t\tnewView.getTextArea().requestFocus();\n\n\t\t\t\t// Don't show the welcome message if jEdit was started\n\t\t\t\t// with the -nosettings switch\n\t\t\t\tif(settingsDirectory != null && getBooleanProperty(\"firstTime\"))\n\t\t\t\t\tnew HelpViewer();\n\t\t\t\telse if(jEdit.getBooleanProperty(\"tip.show\"))\n\t\t\t\t\tnew TipOfTheDay(newView);\n\n\t\t\t\tsetBooleanProperty(\"firstTime\",false);\n\t\t\t}\n\t\t\telse\n\t\t\t\tGUIUtilities.requestFocus(newView,newView.getTextArea());\n\n\t\t\treturn newView;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(view != null)\n\t\t\t\tview.hideWaitCursor();\n\t\t}\n\t} //}}}\n\n\t//{{{ closeView() method\n\t/**\n\t * Closes a view.\n\t *\n\t * jEdit will exit if this was the last open view.\n\t */\n\tpublic static void closeView(View view)\n\t{\n\t\tcloseView(view,true);\n\t} //}}}\n\n\t//{{{ getViews() method\n\t/**\n\t * Returns an array of all open views.\n\t */\n\tpublic static View[] getViews()\n\t{\n\t\tView[] views = new View[viewCount];\n\t\tView view = viewsFirst;\n\t\tfor(int i = 0; i < viewCount; i++)\n\t\t{\n\t\t\tviews[i] = view;\n\t\t\tview = view.next;\n\t\t}\n\t\treturn views;\n\t} //}}}\n\n\t//{{{ getViewCount() method\n\t/**\n\t * Returns the number of open views.\n\t */\n\tpublic static int getViewCount()\n\t{\n\t\treturn viewCount;\n\t} //}}}\n\n\t//{{{ getFirstView() method\n\t/**\n\t * Returns the first view.\n\t */\n\tpublic static View getFirstView()\n\t{\n\t\treturn viewsFirst;\n\t} //}}}\n\n\t//{{{ getLastView() method\n\t/**\n\t * Returns the last view.\n\t */\n\tpublic static View getLastView()\n\t{\n\t\treturn viewsLast;\n\t} //}}}\n\n\t//{{{ getActiveView() method\n\t/**\n\t * Returns the currently focused view.\n\t * @since jEdit 4.1pre1\n\t */\n\tpublic static View getActiveView()\n\t{\n\t\tif(activeView == null)\n\t\t{\n\t\t\t// eg user just closed a view and didn't focus another\n\t\t\treturn viewsFirst;\n\t\t}\n\t\telse\n\t\t\treturn activeView;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Miscellaneous methods\n\n\t//{{{ isMainThread() method\n\t/**\n\t * Returns true if the currently running thread is the main thread.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static boolean isMainThread()\n\t{\n\t\treturn (Thread.currentThread() == mainThread);\n\t} //}}}\n\n\t//{{{ isBackgroundMode() method\n\t/**\n\t * Returns true if jEdit was started with the <code>-background</code>\n\t * command-line switch.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static boolean isBackgroundModeEnabled()\n\t{\n\t\treturn background;\n\t} //}}}\n\n\t//{{{ showMemoryStatusDialog() method\n\t/**\n\t * Performs garbage collection and displays a dialog box showing\n\t * memory status.\n\t * @param view The view\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static void showMemoryDialog(View view)\n\t{\n\t\tRuntime rt = Runtime.getRuntime();\n\t\tint before = (int) (rt.freeMemory() / 1024);\n\t\tSystem.gc();\n\t\tint after = (int) (rt.freeMemory() / 1024);\n\t\tint total = (int) (rt.totalMemory() / 1024);\n\n\t\tJProgressBar progress = new JProgressBar(0,total);\n\t\tprogress.setValue(total - after);\n\t\tprogress.setStringPainted(true);\n\t\tprogress.setString(jEdit.getProperty(\"memory-status.use\",\n\t\t\tnew Object[] { new Integer(total - after),\n\t\t\tnew Integer(total) }));\n\n\t\tObject[] message = new Object[4];\n\t\tmessage[0] = getProperty(\"memory-status.gc\",\n\t\t\tnew Object[] { new Integer(after - before) });\n\t\tmessage[1] = Box.createVerticalStrut(12);\n\t\tmessage[2] = progress;\n\t\tmessage[3] = Box.createVerticalStrut(6);\n\n\t\tJOptionPane.showMessageDialog(view,message,\n\t\t\tjEdit.getProperty(\"memory-status.title\"),\n\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t} //}}}\n\n\t//{{{ getJEditHome() method\n\t/**\n\t * Returns the jEdit install directory.\n\t */\n\tpublic static String getJEditHome()\n\t{\n\t\treturn jEditHome;\n\t} //}}}\n\n\t//{{{ getSettingsDirectory() method\n\t/**\n\t * Returns the path of the directory where user-specific settings\n\t * are stored. This will be <code>null</code> if jEdit was\n\t * started with the <code>-nosettings</code> command-line switch; do not\n\t * blindly use this method without checking for a <code>null</code>\n\t * return value first.\n\t */\n\tpublic static String getSettingsDirectory()\n\t{\n\t\treturn settingsDirectory;\n\t} //}}}\n\n\t//{{{ getJARCacheDirectory() method\n\t/**\n\t * Returns the directory where plugin cache files are stored.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static String getJARCacheDirectory()\n\t{\n\t\treturn jarCacheDirectory;\n\t} //}}}\n\n\t//{{{ backupSettingsFile() method\n\t/**\n\t * Backs up the specified file in the settings directory.\n\t * You should call this on any settings files your plugin\n\t * writes.\n\t * @param file The file\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static void backupSettingsFile(File file)\n\t{\n\t\tif(settingsDirectory == null)\n\t\t\treturn;\n\n\t\tString backupDir = MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"settings-backup\");\n\t\tFile dir = new File(backupDir);\n\t\tif(!dir.exists())\n\t\t\tdir.mkdirs();\n\n\t\t// ... sweet. saveBackup() will create backupDir if it\n\t\t// doesn't exist.\n\n\t\tMiscUtilities.saveBackup(file,5,null,\"~\",backupDir);\n\t} //}}}\n\n\t//{{{ saveSettings() method\n\t/**\n\t * Saves all user preferences to disk.\n\t */\n\tpublic static void saveSettings()\n\t{\n\t\tif(settingsDirectory == null)\n\t\t\treturn;\n\n\t\tAbbrevs.save();\n\t\tFavoritesVFS.saveFavorites();\n\t\tHistoryModel.saveHistory();\n\t\tRegisters.saveRegisters();\n\t\tSearchAndReplace.save();\n\t\tBufferHistory.save();\n\t\tKillRing.save();\n\n\t\tFile file1 = new File(MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"#properties#save#\"));\n\t\tFile file2 = new File(MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"properties\"));\n\t\tif(file2.exists() && file2.lastModified() != propsModTime)\n\t\t{\n\t\t\tLog.log(Log.WARNING,jEdit.class,file2 + \" changed\"\n\t\t\t\t+ \" on disk; will not save user properties\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbackupSettingsFile(file2);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tOutputStream out = new FileOutputStream(file1);\n\t\t\t\tpropMgr.saveUserProps(out);\n\t\t\t\tfile2.delete();\n\t\t\t\tfile1.renameTo(file2);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t\t}\n\n\t\t\tpropsModTime = file2.lastModified();\n\t\t}\n\t} //}}}\n\n\t//{{{ exit() method\n\t/**\n\t * Exits cleanly from jEdit, prompting the user if any unsaved files\n\t * should be saved first.\n\t * @param view The view from which this exit was called\n\t * @param reallyExit If background mode is enabled and this parameter\n\t * is true, then jEdit will close all open views instead of exiting\n\t * entirely.\n\t */\n\tpublic static void exit(View view, boolean reallyExit)\n\t{\n\t\t// Close dialog, view.close() call need a view...\n\t\tif(view == null)\n\t\t\tview = activeView;\n\n\t\t// Wait for pending I/O requests\n\t\tVFSManager.waitForRequests();\n\n\t\t// Send EditorExitRequested\n\t\tEditBus.send(new EditorExitRequested(view));\n\n\t\t// Even if reallyExit is false, we still exit properly\n\t\t// if background mode is off\n\t\treallyExit |= !background;\n\n\t\tPerspectiveManager.savePerspective(false);\n\n\t\t// Close all buffers\n\t\tif(!closeAllBuffers(view,reallyExit))\n\t\t\treturn;\n\n\t\t// If we are running in background mode and\n\t\t// reallyExit was not specified, then return here.\n\t\tif(!reallyExit)\n\t\t{\n\t\t\t// in this case, we can't directly call\n\t\t\t// view.close(); we have to call closeView()\n\t\t\t// for all open views\n\t\t\tview = viewsFirst;\n\t\t\twhile(view != null)\n\t\t\t{\n\t\t\t\tcloseView(view,false);\n\t\t\t\tview = view.next;\n\t\t\t}\n\n\t\t\t// Save settings in case user kills the backgrounded\n\t\t\t// jEdit process\n\t\t\tsaveSettings();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Save view properties here\n\t\t\tif(view != null)\n\t\t\t\tview.close();\n\n\t\t\t// Stop autosave timer\n\t\t\tAutosave.stop();\n\n\t\t\t// Stop server\n\t\t\tif(server != null)\n\t\t\t\tserver.stopServer();\n\n\t\t\t// Stop all plugins\n\t\t\tPluginJAR[] plugins = getPluginJARs();\n\t\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t\t{\n\t\t\t\tremovePluginJAR(plugins[i],true);\n\t\t\t}\n\n\t\t\t// Send EditorExiting\n\t\t\tEditBus.send(new EditorExiting(null));\n\n\t\t\t// Save settings\n\t\t\tsaveSettings();\n\n\t\t\t// Close activity log stream\n\t\t\tLog.closeStream();\n\n\t\t\t// Byebye...\n\t\t\tSystem.exit(0);\n\t\t}\n\t} //}}}\n\n\t//{{{ getEditServer() method\n\t/**\n\t * Returns the edit server instance. You can use this to find out the\n\t * port number jEdit is listening on.\n\t * @since jEdit 4.2pre10\n\t */\n\tpublic static EditServer getEditServer()\n\t{\n\t\treturn server;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Package-private members\n\n\t//{{{ updatePosition() method\n\t/**\n\t * If buffer sorting is enabled, this repositions the buffer.\n\t */\n\tstatic void updatePosition(String oldPath, Buffer buffer)\n\t{\n\t\tif((VFSManager.getVFSForPath(oldPath).getCapabilities()\n\t\t\t& VFS.CASE_INSENSITIVE_CAP) != 0)\n\t\t{\n\t\t\toldPath = oldPath.toLowerCase();\n\t\t}\n\n\t\tbufferHash.remove(oldPath);\n\n\t\tString path = buffer.getSymlinkPath();\n\t\tif((VFSManager.getVFSForPath(path).getCapabilities()\n\t\t\t& VFS.CASE_INSENSITIVE_CAP) != 0)\n\t\t{\n\t\t\tpath = path.toLowerCase();\n\t\t}\n\n\t\tbufferHash.put(path,buffer);\n\n\t\tif(sortBuffers)\n\t\t{\n\t\t\tremoveBufferFromList(buffer);\n\t\t\taddBufferToList(buffer);\n\t\t}\n\t} //}}}\n\n\t//{{{ addMode() method\n\t/**\n\t * Do not call this method. It is only public so that classes\n\t * in the org.gjt.sp.jedit.syntax package can access it.\n\t * @param mode The edit mode\n\t */\n\tpublic static void addMode(Mode mode)\n\t{\n\t\t//Log.log(Log.DEBUG,jEdit.class,\"Adding edit mode \"\n\t\t//\t+ mode.getName());\n\n\t\tmodes.addElement(mode);\n\t} //}}}\n\n\t//{{{ loadMode() method\n\t/**\n\t * Loads an XML-defined edit mode from the specified reader.\n\t * @param mode The edit mode\n\t */\n\t/* package-private */ static void loadMode(Mode mode)\n\t{\n\t\tfinal String fileName = (String)mode.getProperty(\"file\");\n\n\t\tLog.log(Log.NOTICE,jEdit.class,\"Loading edit mode \" + fileName);\n\n\t\tfinal XmlParser parser = new XmlParser();\n\t\tXModeHandler xmh = new XModeHandler(mode.getName())\n\t\t{\n\t\t\tpublic void error(String what, Object subst)\n\t\t\t{\n\t\t\t\tint line = parser.getLineNumber();\n\t\t\t\tint column = parser.getColumnNumber();\n\n\t\t\t\tString msg;\n\n\t\t\t\tif(subst == null)\n\t\t\t\t\tmsg = jEdit.getProperty(\"xmode-error.\" + what);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmsg = jEdit.getProperty(\"xmode-error.\" + what,\n\t\t\t\t\t\tnew String[] { subst.toString() });\n\t\t\t\t\tif(subst instanceof Throwable)\n\t\t\t\t\t\tLog.log(Log.ERROR,this,subst);\n\t\t\t\t}\n\n\t\t\t\tObject[] args = { fileName, new Integer(line),\n\t\t\t\t\tnew Integer(column), msg };\n\t\t\t\tGUIUtilities.error(null,\"xmode-error\",args);\n\t\t\t}\n\n\t\t\tpublic TokenMarker getTokenMarker(String modeName)\n\t\t\t{\n\t\t\t\tMode mode = getMode(modeName);\n\t\t\t\tif(mode == null)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn mode.getTokenMarker();\n\t\t\t}\n\t\t};\n\n\t\tmode.setTokenMarker(xmh.getTokenMarker());\n\n\t\tReader grammar = null;\n\n\t\tparser.setHandler(xmh);\n\t\ttry\n\t\t{\n\t\t\tgrammar = new BufferedReader(new FileReader(fileName));\n\n\t\t\tparser.parse(null, null, grammar);\n\n\t\t\tmode.setProperties(xmh.getModeProperties());\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR, jEdit.class, e);\n\n\t\t\tif (e instanceof XmlException)\n\t\t\t{\n\t\t\t\tXmlException xe = (XmlException) e;\n\t\t\t\tint line = xe.getLine();\n\t\t\t\tString message = xe.getMessage();\n\n\t\t\t\tObject[] args = { fileName, new Integer(line), null,\n\t\t\t\t\tmessage };\n\t\t\t\tGUIUtilities.error(null,\"xmode-error\",args);\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(grammar != null)\n\t\t\t\t\tgrammar.close();\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ addPluginProps() method\n\tstatic void addPluginProps(Properties map)\n\t{\n\t\tpropMgr.addPluginProps(map);\n\t} //}}}\n\n\t//{{{ removePluginProps() method\n\tstatic void removePluginProps(Properties map)\n\t{\n\t\tpropMgr.removePluginProps(map);\n\t} //}}}\n\n\t//{{{ pluginError() method\n\tstatic void pluginError(String path, String messageProp,\n\t\tObject[] args)\n\t{\n\t\tsynchronized(pluginErrorLock)\n\t\t{\n\t\t\tif(pluginErrors == null)\n\t\t\t\tpluginErrors = new Vector();\n\n\t\t\tErrorListDialog.ErrorEntry newEntry =\n\t\t\t\tnew ErrorListDialog.ErrorEntry(\n\t\t\t\tpath,messageProp,args);\n\n\t\t\tfor(int i = 0; i < pluginErrors.size(); i++)\n\t\t\t{\n\t\t\t\tif(pluginErrors.get(i).equals(newEntry))\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\tpluginErrors.addElement(newEntry);\n\n\t\t\tif(startupDone)\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tshowPluginErrorDialog();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ setActiveView() method\n\tstatic void setActiveView(View view)\n\t{\n\t\tjEdit.activeView = view;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\n\t//{{{ Static variables\n\tprivate static String jEditHome;\n\tprivate static String settingsDirectory;\n\tprivate static String jarCacheDirectory;\n\tprivate static long propsModTime;\n\tprivate static PropertyManager propMgr;\n\tprivate static EditServer server;\n\tprivate static boolean background;\n\tprivate static ActionContext actionContext;\n\tprivate static ActionSet builtInActionSet;\n\tprivate static Vector pluginErrors;\n\tprivate static Object pluginErrorLock = new Object();\n\tprivate static Vector jars;\n\tprivate static Vector modes;\n\tprivate static boolean saveCaret;\n\tprivate static InputHandler inputHandler;\n\n\t// buffer link list\n\tprivate static boolean sortBuffers;\n\tprivate static boolean sortByName;\n\tprivate static int bufferCount;\n\tprivate static Buffer buffersFirst;\n\tprivate static Buffer buffersLast;\n\tprivate static Map bufferHash;\n\n\t// makes openTemporary() thread-safe\n\tprivate static Object bufferListLock = new Object();\n\n\t// view link list\n\tprivate static int viewCount;\n\tprivate static View viewsFirst;\n\tprivate static View viewsLast;\n\tprivate static View activeView;\n\n\tprivate static boolean startupDone;\n\n\tprivate static Thread mainThread;\n\t//}}}\n\n\tprivate jEdit() {}\n\n\t//{{{ usage() method\n\tprivate static void usage()\n\t{\n\t\tSystem.out.println(\"Usage: jedit [<options>] [<files>]\");\n\n\t\tSystem.out.println(\"\t<file> +marker:<marker>: Positions caret\"\n\t\t\t+ \" at marker <marker>\");\n\t\tSystem.out.println(\"\t<file> +line:<line>: Positions caret\"\n\t\t\t+ \" at line number <line>\");\n\t\tSystem.out.println(\"\t--: End of options\");\n\t\tSystem.out.println(\"\t-background: Run in background mode\");\n\t\tSystem.out.println(\"\t-nobackground: Disable background mode (default)\");\n\t\tSystem.out.println(\"\t-gui: Only if running in background mode; open initial view (default)\");\n\t\tSystem.out.println(\"\t-nogui: Only if running in background mode; don't open initial view\");\n\t\tSystem.out.println(\"\t-log=<level>: Log messages with level equal to or higher than this to\");\n\t\tSystem.out.println(\"\t standard error. <level> must be between 1 and 9. Default is 7.\");\n\t\tSystem.out.println(\"\t-newplainview: Client instance opens a new plain view\");\n\t\tSystem.out.println(\"\t-newview: Client instance opens a new view (default)\");\n\t\tSystem.out.println(\"\t-plugins: Load plugins (default)\");\n\t\tSystem.out.println(\"\t-noplugins: Don't load any plugins\");\n\t\tSystem.out.println(\"\t-restore: Restore previously open files (default)\");\n\t\tSystem.out.println(\"\t-norestore: Don't restore previously open files\");\n\t\tSystem.out.println(\"\t-reuseview: Client instance reuses existing view\");\n\t\tSystem.out.println(\"\t-quit: Quit a running instance\");\n\t\tSystem.out.println(\"\t-run=<script>: Run the specified BeanShell script\");\n\t\tSystem.out.println(\"\t-server: Read/write server info from/to $HOME/.jedit/server (default)\");\n\t\tSystem.out.println(\"\t-server=<name>: Read/write server info from/to $HOME/.jedit/<name>\");\n\t\tSystem.out.println(\"\t-noserver: Don't start edit server\");\n\t\tSystem.out.println(\"\t-settings=<path>: Load user-specific settings from <path>\");\n\t\tSystem.out.println(\"\t-nosettings: Don't load user-specific settings\");\n\t\tSystem.out.println(\"\t-startupscripts: Run startup scripts (default)\");\n\t\tSystem.out.println(\"\t-nostartupscripts: Don't run startup scripts\");\n\t\tSystem.out.println(\"\t-usage: Print this message and exit\");\n\t\tSystem.out.println(\"\t-version: Print jEdit version and exit\");\n\t\tSystem.out.println(\"\t-wait: Wait until the user closes the specified buffer in the server\");\n\t\tSystem.out.println(\"\t instance. Does nothing if passed to the initial jEdit instance.\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Report bugs to Slava Pestov <slava@jedit.org>.\");\n\t} //}}}\n\n\t//{{{ version() method\n\tprivate static void version()\n\t{\n\t\tSystem.out.println(\"jEdit \" + getVersion());\n\t} //}}}\n\n\t//{{{ makeServerScript() method\n\t/**\n\t * Creates a BeanShell script that can be sent to a running edit server.\n\t */\n\tprivate static String makeServerScript(boolean wait,\n\t\tboolean restore, boolean newView,\n\t\tboolean newPlainView, String[] args,\n\t\tString scriptFile)\n\t{\n\t\tStringBuffer script = new StringBuffer();\n\n\t\tString userDir = System.getProperty(\"user.dir\");\n\n\t\tscript.append(\"parent = \\\"\");\n\t\tscript.append(MiscUtilities.charsToEscapes(userDir));\n\t\tscript.append(\"\\\";\\n\");\n\n\t\tscript.append(\"args = new String[\");\n\t\tscript.append(args.length);\n\t\tscript.append(\"];\\n\");\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tscript.append(\"args[\");\n\t\t\tscript.append(i);\n\t\t\tscript.append(\"] = \");\n\n\t\t\tif(args[i] == null)\n\t\t\t\tscript.append(\"null\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tscript.append('\"');\n\t\t\t\tscript.append(MiscUtilities.charsToEscapes(args[i]));\n\t\t\t\tscript.append('\"');\n\t\t\t}\n\n\t\t\tscript.append(\";\\n\");\n\t\t}\n\n\t\tscript.append(\"view = jEdit.getLastView();\\n\");\n\t\tscript.append(\"buffer = EditServer.handleClient(\"\n\t\t\t+ restore + \",\" + newView + \",\" + newPlainView +\n\t\t\t\",parent,args);\\n\");\n\t\tscript.append(\"if(buffer != null && \" + wait + \") {\\n\");\n\t\tscript.append(\"\\tbuffer.setWaitSocket(socket);\\n\");\n\t\tscript.append(\"\\tdoNotCloseSocket = true;\\n\");\n\t\tscript.append(\"}\\n\");\n\t\tscript.append(\"if(view != jEdit.getLastView() && \" + wait + \") {\\n\");\n\t\tscript.append(\"\\tjEdit.getLastView().setWaitSocket(socket);\\n\");\n\t\tscript.append(\"\\tdoNotCloseSocket = true;\\n\");\n\t\tscript.append(\"}\\n\");\n\t\tscript.append(\"if(doNotCloseSocket == void)\\n\");\n\t\tscript.append(\"\\tsocket.close();\\n\");\n\n\t\tif(scriptFile != null)\n\t\t{\n\t\t\tscriptFile = MiscUtilities.constructPath(userDir,scriptFile);\n\t\t\tscript.append(\"BeanShell.runScript(view,\\\"\"\n\t\t\t\t+ MiscUtilities.charsToEscapes(scriptFile)\n\t\t\t\t+ \"\\\",null,this.namespace);\\n\");\n\t\t}\n\n\t\treturn script.toString();\n\t} //}}}\n\n\t//{{{ initMisc() method\n\t/**\n\t * Initialise various objects, register protocol handlers.\n\t */\n\tprivate static void initMisc()\n\t{\n\t\tjars = new Vector();\n\t\tactionContext = new ActionContext()\n\t\t{\n\t\t\tpublic void invokeAction(EventObject evt,\n\t\t\t\tEditAction action)\n\t\t\t{\n\t\t\t\tView view = GUIUtilities.getView(\n\t\t\t\t\t(Component)evt.getSource());\n\n\t\t\t\tboolean actionBarVisible;\n\t\t\t\tif(view.getActionBar() == null\n\t\t\t\t\t|| !view.getActionBar().isShowing())\n\t\t\t\t\tactionBarVisible = false;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tactionBarVisible = view.getActionBar()\n\t\t\t\t\t\t.isVisible();\n\t\t\t\t}\n\n\t\t\t\tview.getInputHandler().invokeAction(action);\n\n\t\t\t\tif(actionBarVisible)\n\t\t\t\t{\n\t\t\t\t\t// XXX: action bar might not be 'temp'\n\t\t\t\t\tActionBar actionBar = view\n\t\t\t\t\t\t.getActionBar();\n\t\t\t\t\tif(actionBar != null)\n\t\t\t\t\t\tview.removeToolBar(actionBar);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tbufferHash = new HashMap();\n\n\t\tinputHandler = new DefaultInputHandler(null);\n\n\t\t// Add our protocols to java.net.URL's list\n\t\tSystem.getProperties().put(\"java.protocol.handler.pkgs\",\n\t\t\t\"org.gjt.sp.jedit.proto|\" +\n\t\t\tSystem.getProperty(\"java.protocol.handler.pkgs\",\"\"));\n\n\t\t// Set the User-Agent string used by the java.net HTTP handler\n\t\tString userAgent = \"jEdit/\" + getVersion()\n\t\t\t+ \" (Java \" + System.getProperty(\"java.version\")\n\t\t\t+ \". \" + System.getProperty(\"java.vendor\")\n\t\t\t+ \"; \" + System.getProperty(\"os.arch\") + \")\";\n\t\tSystem.getProperties().put(\"http.agent\",userAgent);\n\n\t\t/* Determine installation directory.\n\t\t * If the jedit.home property is set, use that.\n\t\t * Then, look for jedit.jar in the classpath.\n\t\t * If that fails, assume this is the web start version. */\n\t\tjEditHome = System.getProperty(\"jedit.home\");\n\t\tif(jEditHome == null)\n\t\t{\n\t\t\tString classpath = System\n\t\t\t\t.getProperty(\"java.class.path\");\n\t\t\tint index = classpath.toLowerCase()\n\t\t\t\t.indexOf(\"jedit.jar\");\n\t\t\tint start = classpath.lastIndexOf(File\n\t\t\t\t.pathSeparator,index) + 1;\n\t\t\t// if started with java -jar jedit.jar\n\t\t\t if(classpath.equalsIgnoreCase(\"jedit.jar\"))\n\t\t\t{\n\t\t\t\tjEditHome = System.getProperty(\"user.dir\");\n\t\t\t}\n\t\t\telse if(index > start)\n\t\t\t{\n\t\t\t\tjEditHome = classpath.substring(start,\n\t\t\t\t\tindex - 1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// check if web start\n\t\t\t\t/* if(jEdit.class.getResource(\"/modes/catalog\") != null)\n\t\t\t\t{\n\t\t\t\t\t// modes bundled in; hence web start\n\t\t\t\t\tjEditHome = null;\n\t\t\t\t}\n\t\t\t\telse */\n\t\t\t\t{\n\t\t\t\t\t// use user.dir as last resort\n\t\t\t\t\tjEditHome = System.getProperty(\"user.dir\");\n\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"jedit.jar not in class path!\");\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"Assuming jEdit is installed in \"\n\t\t\t\t\t\t+ jEditHome + \".\");\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"Override with jedit.home \"\n\t\t\t\t\t\t+ \"system property.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tjEditHome = MiscUtilities.resolveSymlinks(jEditHome);\n\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"jEdit home directory is \" + jEditHome);\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tjarCacheDirectory = MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"jars-cache\");\n\t\t\tnew File(jarCacheDirectory).mkdirs();\n\t\t}\n\n\t\t//if(jEditHome == null)\n\t\t//\tLog.log(Log.DEBUG,jEdit.class,\"Web start mode\");\n\n\t\t// Add an EditBus component that will reload edit modes and\n\t\t// macros if they are changed from within the editor\n\t\tEditBus.addToBus(new SettingsReloader());\n\n\t\t// Perhaps if Xerces wasn't slightly brain-damaged, we would\n\t\t// not need this\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tThread.currentThread().setContextClassLoader(\n\t\t\t\t\tnew JARClassLoader());\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ initSystemProperties() method\n\t/**\n\t * Load system properties.\n\t */\n\tprivate static void initSystemProperties()\n\t{\n\t\tpropMgr = new PropertyManager();\n\n\t\ttry\n\t\t{\n\t\t\tpropMgr.loadSystemProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit.props\"));\n\t\t\tpropMgr.loadSystemProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit_gui.props\"));\n\t\t\tpropMgr.loadSystemProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit_keys.props\"));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,\n\t\t\t\t\"Error while loading system properties!\");\n\t\t\tLog.log(Log.ERROR,jEdit.class,\n\t\t\t\t\"One of the following property files could not be loaded:\\n\"\n\t\t\t\t+ \"- jedit.props\\n\"\n\t\t\t\t+ \"- jedit_gui.props\\n\"\n\t\t\t\t+ \"- jedit_keys.props\\n\"\n\t\t\t\t+ \"jedit.jar is probably corrupt.\");\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t} //}}}\n\n\t//{{{ initSiteProperties() method\n\t/**\n\t * Load site properties.\n\t */\n\tprivate static void initSiteProperties()\n\t{\n\t\t// site properties are loaded as default properties, overwriting\n\t\t// jEdit's system properties\n\n\t\tString siteSettingsDirectory = MiscUtilities.constructPath(\n\t\t\tjEditHome, \"properties\");\n\t\tFile siteSettings = new File(siteSettingsDirectory);\n\n\t\tif (!(siteSettings.exists() && siteSettings.isDirectory()))\n\t\t\treturn;\n\n\t\tString[] snippets = siteSettings.list();\n\t\tif (snippets == null)\n\t\t\treturn;\n\n\t\tMiscUtilities.quicksort(snippets,\n\t\t\tnew MiscUtilities.StringICaseCompare());\n\n\t\tfor (int i = 0; i < snippets.length; ++i)\n\t\t{\n\t\t\tString snippet = snippets[i];\n\t\t\tif(!snippet.toLowerCase().endsWith(\".props\"))\n\t\t\t\tcontinue;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString path = MiscUtilities.constructPath(\n\t\t\t\t\tsiteSettingsDirectory,snippet);\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,\n\t\t\t\t\t\"Loading site snippet: \" + path);\n\n\t\t\t\tpropMgr.loadSiteProps(new FileInputStream(new File(path)));\n\t\t\t}\n\t\t\tcatch(FileNotFoundException fnf)\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,fnf);\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,\"Cannot load site snippet \"\n\t\t\t\t\t+ snippet);\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ initResources() method\n\tprivate static void initResources()\n\t{\n\t\tbuiltInActionSet = new ActionSet(null,null,null,\n\t\t\tjEdit.class.getResource(\"actions.xml\"));\n\t\tbuiltInActionSet.setLabel(getProperty(\"action-set.jEdit\"));\n\t\tbuiltInActionSet.load();\n\n\t\tactionContext.addActionSet(builtInActionSet);\n\n\t\tDockableWindowManager.loadDockableWindows(null,\n\t\t\tjEdit.class.getResource(\"dockables.xml\"),\n\t\t\tnull);\n\n\t\tServiceManager.loadServices(null,\n\t\t\tjEdit.class.getResource(\"services.xml\"),\n\t\t\tnull);\n\t} //}}}\n\n\t//{{{ initPlugins() method\n\t/**\n\t * Loads plugins.\n\t */\n\tprivate static void initPlugins()\n\t{\n\t\tif(jEditHome != null)\n\t\t{\n\t\t\taddPluginJARsFromDirectory(MiscUtilities.constructPath(\n\t\t\t\tjEditHome,\"jars\"));\n\t\t}\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile jarsDirectory = new File(settingsDirectory,\"jars\");\n\t\t\tif(!jarsDirectory.exists())\n\t\t\t\tjarsDirectory.mkdir();\n\t\t\taddPluginJARsFromDirectory(jarsDirectory.getPath());\n\t\t}\n\n\t\tPluginJAR[] jars = getPluginJARs();\n\t\tfor(int i = 0; i < jars.length; i++)\n\t\t{\n\t\t\tjars[i].checkDependencies();\n\t\t}\n\t} //}}}\n\n\t//{{{ initUserProperties() method\n\t/**\n\t * Loads user properties.\n\t */\n\tprivate static void initUserProperties()\n\t{\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile file = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"properties\"));\n\t\t\tpropsModTime = file.lastModified();\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpropMgr.loadUserProps(\n\t\t\t\t\tnew FileInputStream(file));\n\t\t\t}\n\t\t\tcatch(FileNotFoundException fnf)\n\t\t\t{\n\t\t\t\t//Log.log(Log.DEBUG,jEdit.class,fnf);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ fontStyleToString() method\n\tprivate static String fontStyleToString(int style)\n\t{\n\t\tif(style == 0)\n\t\t\treturn \"PLAIN\";\n\t\telse if(style == Font.BOLD)\n\t\t\treturn \"BOLD\";\n\t\telse if(style == Font.ITALIC)\n\t\t\treturn \"ITALIC\";\n\t\telse if(style == (Font.BOLD | Font.ITALIC))\n\t\t\treturn \"BOLDITALIC\";\n\t\telse\n\t\t\tthrow new RuntimeException(\"Invalid style: \" + style);\n\t} //}}}\n\n\t//{{{ fontToString() method\n\tprivate static String fontToString(Font font)\n\t{\n\t\treturn font.getFamily()\n\t\t\t+ \"-\"\n\t\t\t+ fontStyleToString(font.getStyle())\n\t\t\t+ \"-\"\n\t\t\t+ font.getSize();\n\t} //}}}\n\t\n\t//{{{ initPLAF() method\n\t/**\n\t * Sets the Swing look and feel.\n\t */\n\tprivate static void initPLAF()\n\t{\n\t\tFont primaryFont = jEdit.getFontProperty(\n\t\t\t\"metal.primary.font\");\n\t\tif(primaryFont != null)\n\t\t{\n\t\t\tString primaryFontString =\n\t\t\t\tfontToString(primaryFont);\n\n\t\t\tSystem.getProperties().put(\n\t\t\t\t\"swing.plaf.metal.controlFont\",\n\t\t\t\tprimaryFontString);\n\t\t\tSystem.getProperties().put(\n\t\t\t\t\"swing.plaf.metal.menuFont\",\n\t\t\t\tprimaryFontString);\n\t\t}\n\n\t\tFont secondaryFont = jEdit.getFontProperty(\n\t\t\t\"metal.secondary.font\");\n\t\tif(secondaryFont != null)\n\t\t{\n\t\t\tString secondaryFontString =\n\t\t\t\tfontToString(secondaryFont);\n\n\t\t\tSystem.getProperties().put(\n\t\t\t\t\"swing.plaf.metal.systemFont\",\n\t\t\t\tsecondaryFontString);\n\t\t\tSystem.getProperties().put(\n\t\t\t\t\"swing.plaf.metal.userFont\",\n\t\t\t\tsecondaryFontString);\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tString lf = getProperty(\"lookAndFeel\");\n\t\t\tif(lf != null && lf.length() != 0)\n\t\t\t\tUIManager.setLookAndFeel(lf);\n\t\t\telse if(OperatingSystem.isMacOS())\n\t\t\t{\n\t\t\t\tUIManager.setLookAndFeel(UIManager\n\t\t\t\t\t.getSystemLookAndFeelClassName());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tUIManager.setLookAndFeel(UIManager\n\t\t\t\t\t.getCrossPlatformLookAndFeelClassName());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t}\n\n\t\tUIDefaults defaults = UIManager.getDefaults();\n\n\t\t// give all Swing components our colors\n\t\tif(jEdit.getBooleanProperty(\"textColors\"))\n\t\t{\n\t\t\tColor background = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.bgColor\"));\n\t\t\tColor foreground = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.fgColor\"));\n\t\t\tColor caretColor = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.caretColor\"));\n\t\t\tColor selectionColor = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.selectionColor\"));\n\n\t\t\tString[] prefixes = { \"TextField\", \"TextArea\", \"List\", \"Table\" };\n\t\t\tfor(int i = 0; i < prefixes.length; i++)\n\t\t\t{\n\t\t\t\tString prefix = prefixes[i];\n\t\t\t\tdefaults.put(prefix + \".disabledBackground\",background);\n\t\t\t\tdefaults.put(prefix + \".background\",background);\n\t\t\t\tdefaults.put(prefix + \".disabledForeground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".foreground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".caretForeground\",caretColor);\n\t\t\t\tdefaults.put(prefix + \".selectionForeground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".selectionBackground\",selectionColor);\n\t\t\t\t//defaults.put(prefix + \".inactiveForeground\",foreground);\n\t\t\t}\n\n\t\t\tdefaults.put(\"Tree.background\",background);\n\t\t\tdefaults.put(\"Tree.foreground\",foreground);\n\t\t\tdefaults.put(\"Tree.textBackground\",background);\n\t\t\tdefaults.put(\"Tree.textForeground\",foreground);\n\t\t\tdefaults.put(\"Tree.selectionForeground\",foreground);\n\t\t\tdefaults.put(\"Tree.selectionBackground\",selectionColor);\n\t\t}\n\n\t\tdefaults.remove(\"SplitPane.border\");\n\t\tdefaults.remove(\"SplitPaneDivider.border\");\n\t} //}}}\n\n\t//{{{ runStartupScripts() method\n\t/**\n\t * Runs scripts in a directory.\n\t */\n\tprivate static void runStartupScripts(File directory)\n\t{\n\t\tif (!directory.isDirectory())\n\t\t\treturn;\n\n\t\tFile[] snippets = directory.listFiles();\n\t\tif (snippets == null)\n\t\t\treturn;\n\n\t\tMiscUtilities.quicksort(snippets,\n\t\t\tnew MiscUtilities.StringICaseCompare());\n\n\t\tfor(int i = 0; i < snippets.length; ++i)\n\t\t{\n\t\t\tFile snippet = snippets[i];\n\n\t\t\tMacros.Handler handler = Macros.getHandlerForPathName(\n\t\t\t\tsnippet.getPath());\n\t\t\tif(handler == null)\n\t\t\t\tcontinue;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMacros.Macro newMacro = handler.createMacro(\n\t\t\t\t\tsnippet.getName(),\n\t\t\t\t\tsnippet.getPath());\n\t\t\t\thandler.runMacro(null,newMacro,false);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ initProxy() method\n\tprivate static void initProxy()\n\t{\n\t\tboolean socksEnabled = jEdit.getBooleanProperty(\"socks.enabled\");\n\t\tif(!socksEnabled)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,jEdit.class,\"SOCKS proxy disabled\");\n                        System.getProperties().remove(\"socksProxyHost\");\n                        System.getProperties().remove(\"socksProxyPort\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString socksHost = jEdit.getProperty(\"firewall.socks.host\");\n\t\t\tif( socksHost != null )\n\t\t\t{\n\t\t\t\tSystem.setProperty(\"socksProxyHost\", socksHost);\n\t\t\t\tLog.log(Log.DEBUG, jEdit.class,\n\t\t\t\t\t\"SOCKS proxy enabled: \" + socksHost);\n                        }\n\n\t\t\tString socksPort =  jEdit.getProperty(\"firewall.socks.port\");\n\t\t\tif(socksPort != null)\n\t\t\t\tSystem.setProperty(\"socksProxyPort\", socksPort);\n\t\t}\n\n\t\tboolean httpEnabled = jEdit.getBooleanProperty(\"firewall.enabled\");\n\t\tif (!httpEnabled)\n\t\t{\n\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy disabled\");\n\t\t\tSystem.getProperties().remove(\"proxySet\");\n\t\t\tSystem.getProperties().remove(\"proxyHost\");\n\t\t\tSystem.getProperties().remove(\"proxyPort\");\n\t\t\tSystem.getProperties().remove(\"http.proxyHost\");\n\t\t\tSystem.getProperties().remove(\"http.proxyPort\");\n\t\t\tSystem.getProperties().remove(\"http.nonProxyHosts\");\n\t\t\tAuthenticator.setDefault(null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// set proxy host\n\t\t\tString host = jEdit.getProperty(\"firewall.host\");\n\t\t\tif (host == null)\n\t\t\t\treturn;\n\n\t\t\tSystem.setProperty(\"http.proxyHost\", host);\n\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy enabled: \" + host);\n\t\t\t// set proxy port\n\t\t\tString port = jEdit.getProperty(\"firewall.port\");\n\t\t\tif (port != null)\n\t\t\t\tSystem.setProperty(\"http.proxyPort\", port);\n\n\t\t\t// set non proxy hosts list\n\t\t\tString nonProxyHosts = jEdit.getProperty(\"firewall.nonProxyHosts\");\n\t\t\tif (nonProxyHosts != null)\n\t\t\t\tSystem.setProperty(\"http.nonProxyHosts\", nonProxyHosts);\n\n\t\t\t// set proxy authentication\n\t\t\tString username = jEdit.getProperty(\"firewall.user\");\n\t\t\tString password = jEdit.getProperty(\"firewall.password\");\n\n\t\t\t// null not supported?\n\t\t\tif(password == null)\n\t\t\t\tpassword = \"\";\n\n\t\t\tif(username == null || username.length()==0)\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy without user\");\n\t\t\t\tAuthenticator.setDefault(new FirewallAuthenticator(null));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy user: \" + username);\n\t\t\t\tPasswordAuthentication pw = new PasswordAuthentication(\n\t\t\t\t\tusername,password.toCharArray()\n\t\t\t\t);\n\t\t\t\tAuthenticator.setDefault(new FirewallAuthenticator(pw));\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ FirewallAuthenticator class\n\tstatic class FirewallAuthenticator extends Authenticator\n\t{\n\t\tPasswordAuthentication pw;\n\n\t\tpublic FirewallAuthenticator(PasswordAuthentication pw)\n\t\t{\n\t\t\tthis.pw = pw;\n\t\t}\n\n\t\tprotected PasswordAuthentication getPasswordAuthentication()\n\t\t{\n\t\t\treturn pw;\n\t\t}\n\t} //}}}\n\n\t//{{{ finishStartup() method\n\tprivate static void finishStartup(final boolean gui, final boolean restore,\n\t\tfinal String userDir, final String[] args)\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tBuffer buffer = openFiles(null,userDir,args);\n\n\t\t\t\tint count = getBufferCount();\n\t\t\t\tif(count == 0)\n\t\t\t\t\tnewFile(null);\n\n\t\t\t\tView view = null;\n\n\t\t\t\tboolean restoreFiles = restore\n\t\t\t\t\t&& jEdit.getBooleanProperty(\"restore\")\n\t\t\t\t\t&& (getBufferCount() == 0 ||\n\t\t\t\t\tjEdit.getBooleanProperty(\"restore.cli\"));\n\n\t\t\t\tif(gui || count != 0)\n\t\t\t\t{\n\t\t\t\t\tview = PerspectiveManager\n\t\t\t\t\t\t.loadPerspective(\n\t\t\t\t\t\trestoreFiles);\n\n\t\t\t\t\tif(view == null)\n\t\t\t\t\t\tview = newView(null,buffer);\n\t\t\t\t\telse if(buffer != null)\n\t\t\t\t\t\tview.setBuffer(buffer);\n\t\t\t\t}\n\n\t\t\t\t// Start I/O threads\n\t\t\t\tEditBus.send(new EditorStarted(null));\n\n\t\t\t\tVFSManager.start();\n\n\t\t\t\t// Start edit server\n\t\t\t\tif(server != null)\n\t\t\t\t\tserver.start();\n\n\t\t\t\tGUIUtilities.hideSplashScreen();\n\n\t\t\t\tLog.log(Log.MESSAGE,jEdit.class,\"Startup \"\n\t\t\t\t\t+ \"complete\");\n\n\t\t\t\t//{{{ Report any plugin errors\n\t\t\t\tif(pluginErrors != null)\n\t\t\t\t{\n\t\t\t\t\tshowPluginErrorDialog();\n\t\t\t\t} //}}}\n\n\t\t\t\tstartupDone = true;\n\n\t\t\t\t// in one case not a single AWT class will\n\t\t\t\t// have been touched (splash screen off +\n\t\t\t\t// -nogui -nobackground switches on command\n\t\t\t\t// line)\n\t\t\t\tToolkit.getDefaultToolkit();\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ showPluginErrorDialog() method\n\tprivate static void showPluginErrorDialog()\n\t{\n\t\tif(pluginErrors == null)\n\t\t\treturn;\n\n\t\tString caption = getProperty(\n\t\t\t\"plugin-error.caption\" + (pluginErrors.size() == 1\n\t\t\t? \"-1\" : \"\"));\n\n\t\tFrame frame = (PluginManager.getInstance() == null\n\t\t\t? (Frame)viewsFirst\n\t\t\t: (Frame)PluginManager.getInstance());\n\n\t\tnew ErrorListDialog(frame,\n\t\t\tgetProperty(\"plugin-error.title\"),\n\t\t\tcaption,pluginErrors,true);\n\t\tpluginErrors = null;\n\t} //}}}\n\n\t//{{{ getNotLoadedPluginJARs() method\n\tprivate static void getNotLoadedPluginJARs(Vector returnValue,\n\t\tString dir, String[] list)\n\t{\nloop:\t\tfor(int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tString name = list[i];\n\t\t\tif(!name.toLowerCase().endsWith(\".jar\"))\n\t\t\t\tcontinue loop;\n\n\t\t\tString path = MiscUtilities.constructPath(dir,name);\n\n\t\t\tfor(int j = 0; j < jars.size(); j++)\n\t\t\t{\n\t\t\t\tPluginJAR jar = (PluginJAR)\n\t\t\t\t\tjars.elementAt(j);\n\t\t\t\tString jarPath = jar.getPath();\n\t\t\t\tString jarName = MiscUtilities.getFileName(jarPath);\n\n\t\t\t\tif(path.equals(jarPath))\n\t\t\t\t\tcontinue loop;\n\t\t\t\telse if(!new File(jarPath).exists()\n\t\t\t\t\t&& name.equals(jarName))\n\t\t\t\t\tcontinue loop;\n\t\t\t}\n\n\t\t\treturnValue.addElement(path);\n\t\t}\n\t} //}}}\n\n\t//{{{ gotoMarker() method\n\tprivate static void gotoMarker(final View view, final Buffer buffer,\n\t\tfinal String marker)\n\t{\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tint pos;\n\n\t\t\t\t// Handle line number\n\t\t\t\tif(marker.startsWith(\"+line:\"))\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tint line = Integer.parseInt(marker.substring(6));\n\t\t\t\t\t\tpos = buffer.getLineStartOffset(line - 1);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Handle marker\n\t\t\t\telse if(marker.startsWith(\"+marker:\"))\n\t\t\t\t{\n\t\t\t\t\tif(marker.length() != 9)\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\tMarker m = buffer.getMarker(marker.charAt(8));\n\t\t\t\t\tif(m == null)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tpos = m.getPosition();\n\t\t\t\t}\n\t\t\t\t// Can't happen\n\t\t\t\telse\n\t\t\t\t\tthrow new InternalError();\n\n\t\t\t\tif(view != null && view.getBuffer() == buffer)\n\t\t\t\t\tview.getTextArea().setCaretPosition(pos);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbuffer.setIntegerProperty(Buffer.CARET,pos);\n\t\t\t\t\tbuffer.unsetProperty(Buffer.SCROLL_VERT);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ addBufferToList() method\n\tprivate static void addBufferToList(Buffer buffer)\n\t{\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tString symlinkPath = buffer.getSymlinkPath();\n\t\t\tif((VFSManager.getVFSForPath(symlinkPath).getCapabilities()\n\t\t\t\t& VFS.CASE_INSENSITIVE_CAP) != 0)\n\t\t\t{\n\t\t\t\tsymlinkPath = symlinkPath.toLowerCase();\n\t\t\t}\n\n\t\t\t// if only one, clean, 'untitled' buffer is open, we\n\t\t\t// replace it\n\t\t\tif(viewCount <= 1 && buffersFirst != null\n\t\t\t\t&& buffersFirst == buffersLast\n\t\t\t\t&& buffersFirst.isUntitled()\n\t\t\t\t&& !buffersFirst.isDirty())\n\t\t\t{\n\t\t\t\tBuffer oldBuffersFirst = buffersFirst;\n\t\t\t\tbuffersFirst = buffersLast = buffer;\n\t\t\t\tDisplayManager.bufferClosed(oldBuffersFirst);\n\t\t\t\tEditBus.send(new BufferUpdate(oldBuffersFirst,\n\t\t\t\t\tnull,BufferUpdate.CLOSED));\n\n\t\t\t\tbufferHash.clear();\n\n\t\t\t\tbufferHash.put(symlinkPath,buffer);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tbufferCount++;\n\n\t\t\tbufferHash.put(symlinkPath,buffer);\n\n\t\t\tif(buffersFirst == null)\n\t\t\t{\n\t\t\t\tbuffersFirst = buffersLast = buffer;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t//{{{ Sort buffer list\n\t\t\telse if(sortBuffers)\n\t\t\t{\n\t\t\t\tString str11, str12;\n\t\t\t\tif(sortByName)\n\t\t\t\t{\n\t\t\t\t\tstr11 = buffer.getName();\n\t\t\t\t\tstr12 = buffer.getDirectory();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tstr11 = buffer.getDirectory();\n\t\t\t\t\tstr12 = buffer.getName();\n\t\t\t\t}\n\n\t\t\t\tBuffer _buffer = buffersFirst;\n\t\t\t\twhile(_buffer != null)\n\t\t\t\t{\n\t\t\t\t\tString str21, str22;\n\t\t\t\t\tif(sortByName)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr21 = _buffer.getName();\n\t\t\t\t\t\tstr22 = _buffer.getDirectory();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tstr21 = _buffer.getDirectory();\n\t\t\t\t\t\tstr22 = _buffer.getName();\n\t\t\t\t\t}\n\n\t\t\t\t\tint comp = MiscUtilities.compareStrings(str11,str21,true);\n\t\t\t\t\tif(comp < 0 || (comp == 0 && MiscUtilities.compareStrings(str12,str22,true) < 0))\n\t\t\t\t\t{\n\t\t\t\t\t\tbuffer.next = _buffer;\n\t\t\t\t\t\tbuffer.prev = _buffer.prev;\n\t\t\t\t\t\t_buffer.prev = buffer;\n\t\t\t\t\t\tif(_buffer != buffersFirst)\n\t\t\t\t\t\t\tbuffer.prev.next = buffer;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbuffersFirst = buffer;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t_buffer = _buffer.next;\n\t\t\t\t}\n\t\t\t} //}}}\n\n\t\t\tbuffer.prev = buffersLast;\n\t\t\t// fixes the hang that can occur if we 'save as' to a\n\t\t\t// new filename which requires re-sorting\n\t\t\tbuffer.next = null;\n\t\t\tbuffersLast.next = buffer;\n\t\t\tbuffersLast = buffer;\n\t\t}\n\t} //}}}\n\n\t//{{{ removeBufferFromList() method\n\tprivate static void removeBufferFromList(Buffer buffer)\n\t{\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tbufferCount--;\n\n\t\t\tboolean caseInsensitiveFilesystem =\n\t\t\t\tOperatingSystem.isDOSDerived()\n\t\t\t\t|| OperatingSystem.isMacOS();\n\t\t\tString path = buffer.getPath();\n\t\t\tif(caseInsensitiveFilesystem)\n\t\t\t\tpath = path.toLowerCase();\n\n\t\t\tbufferHash.remove(path);\n\n\t\t\tif(buffer == buffersFirst && buffer == buffersLast)\n\t\t\t{\n\t\t\t\tbuffersFirst = buffersLast = null;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(buffer == buffersFirst)\n\t\t\t{\n\t\t\t\tbuffersFirst = buffer.next;\n\t\t\t\tbuffer.next.prev = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.prev.next = buffer.next;\n\t\t\t}\n\n\t\t\tif(buffer == buffersLast)\n\t\t\t{\n\t\t\t\tbuffersLast = buffersLast.prev;\n\t\t\t\tbuffer.prev.next = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.next.prev = buffer.prev;\n\t\t\t}\n\n\t\t\t// fixes the hang that can occur if we 'save as' to a new\n\t\t\t// filename which requires re-sorting\n\t\t\tbuffer.next = buffer.prev = null;\n\t\t}\n\t} //}}}\n\n\t//{{{ addViewToList() method\n\tprivate static void addViewToList(View view)\n\t{\n\t\tviewCount++;\n\n\t\tif(viewsFirst == null)\n\t\t\tviewsFirst = viewsLast = view;\n\t\telse\n\t\t{\n\t\t\tview.prev = viewsLast;\n\t\t\tviewsLast.next = view;\n\t\t\tviewsLast = view;\n\t\t}\n\t} //}}}\n\n\t//{{{ removeViewFromList() method\n\tprivate static void removeViewFromList(View view)\n\t{\n\t\tviewCount--;\n\n\t\tif(viewsFirst == viewsLast)\n\t\t{\n\t\t\tviewsFirst = viewsLast = null;\n\t\t\treturn;\n\t\t}\n\n\t\tif(view == viewsFirst)\n\t\t{\n\t\t\tviewsFirst = view.next;\n\t\t\tview.next.prev = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview.prev.next = view.next;\n\t\t}\n\n\t\tif(view == viewsLast)\n\t\t{\n\t\t\tviewsLast = viewsLast.prev;\n\t\t\tview.prev.next = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview.next.prev = view.prev;\n\t\t}\n\t} //}}}\n\n\t//{{{ closeView() method\n\t/**\n\t * closeView() used by exit().\n\t */\n\tprivate static void closeView(View view, boolean callExit)\n\t{\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\tif(viewsFirst == viewsLast && callExit)\n\t\t\texit(view,false); /* exit does editor event & save */\n\t\telse\n\t\t{\n\t\t\tEditBus.send(new ViewUpdate(view,ViewUpdate.CLOSED));\n\n\t\t\tview.close();\n\t\t\tremoveViewFromList(view);\n\n\t\t\tif(view == activeView)\n\t\t\t\tactiveView = null;\n\t\t}\n\t} //}}}\n\n\t//{{{ loadModeCatalog() method\n\t/**\n\t * Loads a mode catalog file.\n\t * @since jEdit 3.2pre2\n\t */\n\tprivate static void loadModeCatalog(String path, boolean resource)\n\t{\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"Loading mode catalog file \" + path);\n\n\t\tModeCatalogHandler handler = new ModeCatalogHandler(\n\t\t\tMiscUtilities.getParentOfPath(path),resource);\n\t\tXmlParser parser = new XmlParser();\n\t\tparser.setHandler(handler);\n\t\tReader in = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream _in;\n\t\t\tif(resource)\n\t\t\t\t_in = jEdit.class.getResourceAsStream(path);\n\t\t\telse\n\t\t\t\t_in = new FileInputStream(path);\n\t\t\tin = new BufferedReader(new InputStreamReader(_in));\n\t\t\tparser.parse(null, null, in);\n\t\t}\n\t\tcatch(XmlException xe)\n\t\t{\n\t\t\tint line = xe.getLine();\n\t\t\tString message = xe.getMessage();\n\t\t\tLog.log(Log.ERROR,jEdit.class,path + \":\" + line\n\t\t\t\t+ \": \" + message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(in != null)\n\t\t\t\t\tin.close();\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ initKeyBindings() method\n\t/**\n\t * Loads all key bindings from the properties.\n\t * @since 3.1pre1\n\t */\n\tprivate static void initKeyBindings()\n\t{\n\t\tinputHandler.removeAllKeyBindings();\n\n\t\tActionSet[] actionSets = getActionSets();\n\t\tfor(int i = 0; i < actionSets.length; i++)\n\t\t{\n\t\t\tactionSets[i].initKeyBindings();", "functions": [{"function_name": "getVersion", "code": "\tpublic static String getVersion()\n\t{\n\t\treturn MiscUtilities.buildToVersion(getBuild());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getBuild", "code": "\tpublic static String getBuild()\n\t{\n\t\t// (major).(minor).(<99 = preX, 99 = final).(bug fix)\n\t\treturn \"04.02.99.00\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "main", "code": "\tpublic static void main(String[] args)\n\t{\n\t\t//{{{ Check for Java 1.3 or later\n\t\tString javaVersion = System.getProperty(\"java.version\");\n\t\tif(javaVersion.compareTo(\"1.3\") < 0)\n\t\t{\n\t\t\tSystem.err.println(\"You are running Java version \"\n\t\t\t\t+ javaVersion + \".\");\n\t\t\tSystem.err.println(\"jEdit requires Java 1.3 or later.\");\n\t\t\tSystem.exit(1);\n\t\t} //}}}\n\n\t\t// later on we need to know if certain code is called from\n\t\t// the main thread\n\t\tmainThread = Thread.currentThread();\n\n\t\tsettingsDirectory = \".jedit\";\n\n\t\t// MacOS users expect the app to keep running after all windows\n\t\t// are closed\n\t\tbackground = OperatingSystem.isMacOS();\n\n\t\t//{{{ Parse command line\n\t\tboolean endOpts = false;\n\t\tint level = Log.WARNING;\n\t\tString portFile = \"server\";\n\t\tboolean restore = true;\n\t\tboolean newView = true;\n\t\tboolean newPlainView = false;\n\t\tboolean gui = true; // open initial view?\n\t\tboolean loadPlugins = true;\n\t\tboolean runStartupScripts = true;\n\t\tboolean quit = false;\n\t\tboolean wait = false;\n\t\tString userDir = System.getProperty(\"user.dir\");\n\n\t\t// script to run\n\t\tString scriptFile = null;\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tString arg = args[i];\n\t\t\tif(arg == null)\n\t\t\t\tcontinue;\n\t\t\telse if(arg.length() == 0)\n\t\t\t\targs[i] = null;\n\t\t\telse if(arg.startsWith(\"-\") && !endOpts)\n\t\t\t{\n\t\t\t\tif(arg.equals(\"--\"))\n\t\t\t\t\tendOpts = true;\n\t\t\t\telse if(arg.equals(\"-usage\"))\n\t\t\t\t{\n\t\t\t\t\tversion();\n\t\t\t\t\tSystem.err.println();\n\t\t\t\t\tusage();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\telse if(arg.equals(\"-version\"))\n\t\t\t\t{\n\t\t\t\t\tversion();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\telse if(arg.startsWith(\"-log=\"))\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tlevel = Integer.parseInt(arg.substring(\"-log=\".length()));\n\t\t\t\t\t}\n\t\t\t\t\tcatch(NumberFormatException nf)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(\"Malformed option: \" + arg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(arg.equals(\"-nosettings\"))\n\t\t\t\t\tsettingsDirectory = null;\n\t\t\t\telse if(arg.startsWith(\"-settings=\"))\n\t\t\t\t\tsettingsDirectory = arg.substring(10);\n\t\t\t\telse if(arg.startsWith(\"-noserver\"))\n\t\t\t\t\tportFile = null;\n\t\t\t\telse if(arg.equals(\"-server\"))\n\t\t\t\t\tportFile = \"server\";\n\t\t\t\telse if(arg.startsWith(\"-server=\"))\n\t\t\t\t\tportFile = arg.substring(8);\n\t\t\t\telse if(arg.startsWith(\"-background\"))\n\t\t\t\t\tbackground = true;\n\t\t\t\telse if(arg.startsWith(\"-nobackground\"))\n\t\t\t\t\tbackground = false;\n\t\t\t\telse if(arg.equals(\"-gui\"))\n\t\t\t\t\tgui = true;\n\t\t\t\telse if(arg.equals(\"-nogui\"))\n\t\t\t\t\tgui = false;\n\t\t\t\telse if(arg.equals(\"-newview\"))\n\t\t\t\t\tnewView = true;\n\t\t\t\telse if(arg.equals(\"-newplainview\"))\n\t\t\t\t\tnewPlainView = true;\n\t\t\t\telse if(arg.equals(\"-reuseview\"))\n\t\t\t\t\tnewPlainView = newView = false;\n\t\t\t\telse if(arg.equals(\"-restore\"))\n\t\t\t\t\trestore = true;\n\t\t\t\telse if(arg.equals(\"-norestore\"))\n\t\t\t\t\trestore = false;\n\t\t\t\telse if(arg.equals(\"-plugins\"))\n\t\t\t\t\tloadPlugins = true;\n\t\t\t\telse if(arg.equals(\"-noplugins\"))\n\t\t\t\t\tloadPlugins = false;\n\t\t\t\telse if(arg.equals(\"-startupscripts\"))\n\t\t\t\t\trunStartupScripts = true;\n\t\t\t\telse if(arg.equals(\"-nostartupscripts\"))\n\t\t\t\t\trunStartupScripts = false;\n\t\t\t\telse if(arg.startsWith(\"-run=\"))\n\t\t\t\t\tscriptFile = arg.substring(5);\n\t\t\t\telse if(arg.equals(\"-wait\"))\n\t\t\t\t\twait = true;\n\t\t\t\telse if(arg.equals(\"-quit\"))\n\t\t\t\t\tquit = true;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Unknown option: \"\n\t\t\t\t\t\t+ arg);\n\t\t\t\t\tusage();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\targs[i] = null;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ We need these initializations very early on\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tsettingsDirectory = MiscUtilities.constructPath(\n\t\t\t\tSystem.getProperty(\"user.home\"),\n\t\t\t\tsettingsDirectory);\n\t\t\tsettingsDirectory = MiscUtilities.resolveSymlinks(\n\t\t\t\tsettingsDirectory);\n\t\t}\n\n\t\tif(settingsDirectory != null && portFile != null)\n\t\t\tportFile = MiscUtilities.constructPath(settingsDirectory,portFile);\n\t\telse\n\t\t\tportFile = null;\n\n\t\tLog.init(true,level);\n\t\t//}}}\n\n\t\t//{{{ Try connecting to another running jEdit instance\n\t\tif(portFile != null && new File(portFile).exists())\n\t\t{\n\t\t\tint port, key;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tBufferedReader in = new BufferedReader(new FileReader(portFile));\n\t\t\t\tString check = in.readLine();\n\t\t\t\tif(!check.equals(\"b\"))\n\t\t\t\t\tthrow new Exception(\"Wrong port file format\");\n\n\t\t\t\tport = Integer.parseInt(in.readLine());\n\t\t\t\tkey = Integer.parseInt(in.readLine());\n\n\t\t\t\tSocket socket = new Socket(InetAddress.getByName(\"127.0.0.1\"),port);\n\t\t\t\tDataOutputStream out = new DataOutputStream(\n\t\t\t\t\tsocket.getOutputStream());\n\t\t\t\tout.writeInt(key);\n\n\t\t\t\tString script;\n\t\t\t\tif(quit)\n\t\t\t\t{\n\t\t\t\t\tscript = \"socket.close();\\n\"\n\t\t\t\t\t\t+ \"jEdit.exit(null,true);\\n\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tscript = makeServerScript(wait,restore,\n\t\t\t\t\t\tnewView,newPlainView,args,\n\t\t\t\t\t\tscriptFile);\n\t\t\t\t}\n\n\t\t\t\tout.writeUTF(script);\n\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,\"Waiting for server\");\n\t\t\t\t// block until its closed\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsocket.getInputStream().read();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t}\n\n\t\t\t\tin.close();\n\t\t\t\tout.close();\n\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\t// ok, this one seems to confuse newbies\n\t\t\t\t// endlessly, so log it as NOTICE, not\n\t\t\t\t// ERROR\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"An error occurred\"\n\t\t\t\t\t+ \" while connecting to the jEdit server instance.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"This probably means that\"\n\t\t\t\t\t+ \" jEdit crashed and/or exited abnormally\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"the last time it was run.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,\"If you don't\"\n\t\t\t\t\t+ \" know what this means, don't worry.\");\n\t\t\t\tLog.log(Log.NOTICE,jEdit.class,e);\n\t\t\t}\n\t\t}\n\n\t\tif(quit)\n\t\t{\n\t\t\t// if no server running and user runs jedit -quit,\n\t\t\t// just exit\n\t\t\tSystem.exit(0);\n\t\t} //}}}\n\n\t\t// don't show splash screen if there is a file named\n\t\t// 'nosplash' in the settings directory\n\t\tif(!new File(settingsDirectory,\"nosplash\").exists())\n\t\t\tGUIUtilities.showSplashScreen();\n\n\t\t//{{{ Initialize settings directory\n\t\tWriter stream;\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile _settingsDirectory = new File(settingsDirectory);\n\t\t\tif(!_settingsDirectory.exists())\n\t\t\t\t_settingsDirectory.mkdirs();\n\t\t\tFile _macrosDirectory = new File(settingsDirectory,\"macros\");\n\t\t\tif(!_macrosDirectory.exists())\n\t\t\t\t_macrosDirectory.mkdir();\n\n\t\t\tString logPath = MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"activity.log\");\n\n\t\t\tbackupSettingsFile(new File(logPath));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstream = new BufferedWriter(new FileWriter(logPath));\n\n\t\t\t\t// Write a warning message:\n\t\t\t\tString lineSep = System.getProperty(\"line.separator\");\n\t\t\t\tstream.write(\"Log file created on \" + new Date());\n\t\t\t\tstream.write(lineSep);\n\t\t\t\tstream.write(\"IMPORTANT:\");\n\t\t\t\tstream.write(lineSep);\n\t\t\t\tstream.write(\"Because updating this file after \"\n\t\t\t\t\t+ \"every log message would kill\");\n\t\t\t\tstream.write(lineSep);\n\t\t\t\tstream.write(\"performance, it will be *incomplete* \"\n\t\t\t\t\t+ \"unless you invoke the\");\n\t\t\t\tstream.write(lineSep);\n\t\t\t\tstream.write(\"Utilities->Troubleshooting->Update \"\n\t\t\t\t\t+ \"Activity Log on Disk command!\");\n\t\t\t\tstream.write(lineSep);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\tstream = null;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstream = null;\n\t\t} //}}}\n\n\t\tLog.setLogWriter(stream);\n\n\t\tLog.log(Log.NOTICE,jEdit.class,\"jEdit version \" + getVersion());\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"Settings directory is \"\n\t\t\t+ settingsDirectory);\n\n\t\t//{{{ Get things rolling\n\t\tinitMisc();\n\t\tinitSystemProperties();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tGUIUtilities.init();\n\t\tBeanShell.init();\n\n\t\tif(jEditHome != null)\n\t\t\tinitSiteProperties();\n\n\t\tinitUserProperties();\n\t\t//}}}\n\n\t\t//{{{ Initialize server\n\t\tif(portFile != null)\n\t\t{\n\t\t\tserver = new EditServer(portFile);\n\t\t\tif(!server.isOK())\n\t\t\t\tserver = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(background)\n\t\t\t{\n\t\t\t\tbackground = false;\n\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"You cannot specify both the\"\n\t\t\t\t\t+ \" -background and -noserver switches\");\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Do more stuff\n\t\tinitPLAF();\n\n\t\tVFSManager.init();\n\t\tinitResources();\n\t\tSearchAndReplace.load();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\tif(loadPlugins)\n\t\t\tinitPlugins();\n\n\t\tHistoryModel.loadHistory();\n\t\tBufferHistory.load();\n\t\tKillRing.load();\n\t\tpropertiesChanged();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\t// Buffer sort\n\t\tsortBuffers = getBooleanProperty(\"sortBuffers\");\n\t\tsortByName = getBooleanProperty(\"sortByName\");\n\n\t\treloadModes();\n\n\t\tGUIUtilities.advanceSplashProgress();\n\t\t//}}}\n\n\t\t//{{{ Initialize Java 1.4-specific code\n\t\tif(OperatingSystem.hasJava14())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tClassLoader loader = jEdit.class.getClassLoader();\n\t\t\t\tClass clazz;\n\t\t\t\tif(loader != null)\n\t\t\t\t\tclazz = loader.loadClass(\"org.gjt.sp.jedit.Java14\");\n\t\t\t\telse\n\t\t\t\t\tclazz = Class.forName(\"org.gjt.sp.jedit.Java14\");\n\t\t\t\tjava.lang.reflect.Method meth = clazz\n\t\t\t\t\t.getMethod(\"init\",new Class[0]);\n\t\t\t\tmeth.invoke(null,new Object[0]);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Activate plugins that must be activated at startup\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\t((PluginJAR)jars.elementAt(i)).activatePluginIfNecessary();\n\t\t} //}}}\n\n\t\t//{{{ Load macros and run startup scripts, after plugins and settings are loaded\n\t\tMacros.loadMacros();\n\t\tMacros.getMacroActionSet().initKeyBindings();\n\n\t\tif(runStartupScripts && jEditHome != null)\n\t\t{\n\t\t\tString path = MiscUtilities.constructPath(jEditHome,\"startup\");\n\t\t\tFile file = new File(path);\n\t\t\tif(file.exists())\n\t\t\t\trunStartupScripts(file);\n\t\t}\n\n\t\tif(runStartupScripts && settingsDirectory != null)\n\t\t{\n\t\t\tString path = MiscUtilities.constructPath(settingsDirectory,\"startup\");\n\t\t\tFile file = new File(path);\n\t\t\tif(!file.exists())\n\t\t\t\tfile.mkdirs();\n\t\t\telse\n\t\t\t\trunStartupScripts(file);\n\t\t} //}}}\n\n\t\t//{{{ Run script specified with -run= parameter\n\t\tif(scriptFile != null)\n\t\t{\n\t\t\tscriptFile = MiscUtilities.constructPath(userDir,scriptFile);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tBeanShell.getNameSpace().setVariable(\"args\",args);\n\t\t\t}\n\t\t\tcatch(UtilEvalError e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\t}\n\t\t\tBeanShell.runScript(null,scriptFile,null,false);\n\t\t} //}}}\n\n\t\tGUIUtilities.advanceSplashProgress();\n\n\t\t// Open files, create the view and hide the splash screen.\n\t\tfinishStartup(gui,restore,userDir,args);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "LOOP", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "TRY", "CALL", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CATCH", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "IF", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "THROW_RAISE", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [1, 35], [2, 36], [3, 37], [0, 38], [0, 39], [4, 40], [5, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [0, 54], [0, 55], [7, 56], [0, 57], [8, 58], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 64], [0, 65], [0, 66], [9, 67], [11, 68], [13, 69], [0, 70], [14, 71], [15, 72], [16, 73], [0, 74], [0, 75], [0, 76], [30, 77], [1, 78], [35, 79], [2, 80], [2, 81], [2, 82], [36, 83], [3, 84], [3, 85], [3, 86], [37, 87], [38, 88], [40, 89], [5, 90], [44, 91], [45, 92], [6, 93], [7, 94], [7, 95], [56, 96], [8, 97], [58, 98], [64, 99], [65, 100], [9, 101], [9, 102], [9, 103], [9, 104], [9, 105], [9, 106], [67, 107], [11, 108], [68, 109], [68, 110], [13, 111], [13, 112], [69, 113], [69, 114], [70, 115], [14, 116], [14, 117], [71, 118], [71, 119], [72, 120], [16, 121], [16, 122], [17, 123], [18, 124], [19, 125], [20, 126], [21, 127], [22, 128], [23, 129], [24, 130], [25, 131], [26, 132], [27, 133], [29, 134], [74, 135], [75, 136], [76, 137], [77, 138], [77, 139], [31, 140], [1, 141], [78, 142], [1, 143], [80, 144], [83, 145], [84, 146], [87, 147], [4, 148], [90, 149], [90, 150], [90, 151], [90, 152], [90, 153], [91, 154], [92, 155], [95, 156], [7, 157], [99, 158], [100, 159], [100, 160], [9, 161], [101, 162], [101, 163], [9, 164], [103, 165], [105, 166], [12, 167], [111, 168], [111, 169], [111, 170], [111, 171], [111, 172], [111, 173], [111, 174], [111, 175], [111, 176], [113, 177], [114, 178], [116, 179], [117, 180], [118, 181], [119, 182], [15, 183], [15, 184], [121, 185], [121, 186], [121, 187], [16, 188], [124, 189], [30, 190], [30, 191], [30, 192], [139, 193], [140, 194], [141, 195], [141, 196], [141, 197], [78, 198], [143, 199], [80, 200], [80, 201], [81, 202], [82, 203], [84, 204], [85, 205], [86, 206], [4, 207], [90, 208], [151, 209], [95, 210], [157, 211], [161, 212], [101, 213], [101, 214], [101, 215], [101, 216], [101, 217], [101, 218], [101, 219], [101, 220], [101, 221], [101, 222], [101, 223], [164, 224], [102, 225], [103, 226], [104, 227], [105, 228], [106, 229], [167, 230], [111, 231], [111, 232], [111, 233], [169, 234], [111, 235], [111, 236], [111, 237], [111, 238], [111, 239], [174, 240], [174, 241], [183, 242], [184, 243], [185, 244], [185, 245], [187, 246], [190, 247], [191, 248], [192, 249], [142, 250], [198, 251], [203, 252], [206, 253], [149, 254], [149, 255], [208, 256], [150, 257], [151, 258], [151, 259], [209, 260], [153, 261], [94, 262], [94, 263], [210, 264], [162, 265], [162, 266], [214, 267], [216, 268], [218, 269], [220, 270], [222, 271], [163, 272], [223, 273], [225, 274], [227, 275], [168, 276], [168, 277], [168, 278], [168, 279], [168, 280], [231, 281], [169, 282], [235, 283], [172, 284], [173, 285], [238, 286], [239, 287], [240, 288], [241, 289], [175, 290], [176, 291], [243, 292], [244, 293], [185, 294], [245, 295], [245, 296], [249, 297], [249, 298], [251, 299], [254, 300], [208, 301], [257, 302], [258, 303], [259, 304], [262, 305], [263, 306], [265, 307], [267, 308], [267, 309], [268, 310], [268, 311], [269, 312], [269, 313], [271, 314], [271, 315], [272, 316], [273, 317], [277, 318], [278, 319], [279, 320], [280, 321], [282, 322], [170, 323], [170, 324], [284, 325], [285, 326], [286, 327], [287, 328], [288, 329], [291, 330], [292, 331], [244, 332], [293, 333], [294, 334], [298, 335], [257, 336], [303, 337], [304, 338], [305, 339], [305, 340], [318, 341], [318, 342], [320, 343], [320, 344], [321, 345], [321, 346], [323, 347], [324, 348], [326, 349], [244, 350], [332, 351], [332, 352], [333, 353], [348, 354], [348, 355], [350, 356], [351, 357], [351, 358], [332, 359], [352, 360], [357, 361], [357, 362], [358, 363], [359, 364], [361, 365], [361, 366], [362, 367], [351, 368], [351, 369], [351, 370], [351, 371], [365, 372], [365, 373], [361, 374], [366, 375], [357, 376], [357, 377], [368, 378], [372, 379], [372, 380], [365, 381], [373, 382], [374, 383], [376, 384], [379, 385], [379, 386], [372, 387], [380, 388], [381, 389], [374, 390], [385, 391], [385, 392], [379, 393], [386, 394], [387, 395], [383, 396], [390, 397], [391, 398], [391, 399], [385, 400], [392, 401], [393, 402], [395, 403], [396, 404], [397, 405], [398, 406], [398, 407], [391, 408], [399, 409], [400, 410], [404, 411], [405, 412], [406, 413], [406, 414], [398, 415], [407, 416], [408, 417], [412, 418], [413, 419], [413, 420], [406, 421], [414, 422], [415, 423], [417, 424], [419, 425], [419, 426], [413, 427], [420, 428], [421, 429], [425, 430], [425, 431], [419, 432], [426, 433], [427, 434], [430, 435], [430, 436], [425, 437], [431, 438], [432, 439], [435, 440], [435, 441], [430, 442], [436, 443], [437, 444], [440, 445], [440, 446], [435, 447], [441, 448], [442, 449], [445, 450], [445, 451], [440, 452], [446, 453], [447, 454], [450, 455], [450, 456], [445, 457], [451, 458], [452, 459], [454, 460], [455, 461], [455, 462], [450, 463], [456, 464], [457, 465], [461, 466], [461, 467], [455, 468], [462, 469], [463, 470], [466, 471], [466, 472], [461, 473], [467, 474], [468, 475], [471, 476], [471, 477], [466, 478], [472, 479], [473, 480], [476, 481], [476, 482], [471, 483], [477, 484], [478, 485], [481, 486], [476, 487], [482, 488], [483, 489], [481, 490], [486, 491], [487, 492], [489, 493], [481, 494], [481, 495], [481, 496], [490, 497], [494, 498], [496, 499], [499, 500], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 1], [36, 2], [37, 3], [38, 0], [39, 0], [40, 4], [41, 5], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 0], [55, 0], [56, 7], [57, 0], [58, 8], [59, 0], [60, 0], [61, 0], [62, 0], [63, 0], [64, 0], [65, 0], [66, 0], [67, 9], [68, 11], [69, 13], [70, 0], [71, 14], [72, 15], [73, 16], [74, 0], [75, 0], [76, 0], [77, 30], [78, 1], [79, 35], [80, 2], [81, 2], [82, 2], [83, 36], [84, 3], [85, 3], [86, 3], [87, 37], [88, 38], [89, 40], [90, 5], [91, 44], [92, 45], [93, 6], [94, 7], [95, 7], [96, 56], [97, 8], [98, 58], [99, 64], [100, 65], [101, 9], [102, 9], [103, 9], [104, 9], [105, 9], [106, 9], [107, 67], [108, 11], [109, 68], [110, 68], [111, 13], [112, 13], [113, 69], [114, 69], [115, 70], [116, 14], [117, 14], [118, 71], [119, 71], [120, 72], [121, 16], [122, 16], [123, 17], [124, 18], [125, 19], [126, 20], [127, 21], [128, 22], [129, 23], [130, 24], [131, 25], [132, 26], [133, 27], [134, 29], [135, 74], [136, 75], [137, 76], [138, 77], [139, 77], [140, 31], [141, 1], [142, 78], [143, 1], [144, 80], [145, 83], [146, 84], [147, 87], [148, 4], [149, 90], [150, 90], [151, 90], [152, 90], [153, 90], [154, 91], [155, 92], [156, 95], [157, 7], [158, 99], [159, 100], [160, 100], [161, 9], [162, 101], [163, 101], [164, 9], [165, 103], [166, 105], [167, 12], [168, 111], [169, 111], [170, 111], [171, 111], [172, 111], [173, 111], [174, 111], [175, 111], [176, 111], [177, 113], [178, 114], [179, 116], [180, 117], [181, 118], [182, 119], [183, 15], [184, 15], [185, 121], [186, 121], [187, 121], [188, 16], [189, 124], [190, 30], [191, 30], [192, 30], [193, 139], [194, 140], [195, 141], [196, 141], [197, 141], [198, 78], [199, 143], [200, 80], [201, 80], [202, 81], [203, 82], [204, 84], [205, 85], [206, 86], [207, 4], [208, 90], [209, 151], [210, 95], [211, 157], [212, 161], [213, 101], [214, 101], [215, 101], [216, 101], [217, 101], [218, 101], [219, 101], [220, 101], [221, 101], [222, 101], [223, 101], [224, 164], [225, 102], [226, 103], [227, 104], [228, 105], [229, 106], [230, 167], [231, 111], [232, 111], [233, 111], [234, 169], [235, 111], [236, 111], [237, 111], [238, 111], [239, 111], [240, 174], [241, 174], [242, 183], [243, 184], [244, 185], [245, 185], [246, 187], [247, 190], [248, 191], [249, 192], [250, 142], [251, 198], [252, 203], [253, 206], [254, 149], [255, 149], [256, 208], [257, 150], [258, 151], [259, 151], [260, 209], [261, 153], [262, 94], [263, 94], [264, 210], [265, 162], [266, 162], [267, 214], [268, 216], [269, 218], [270, 220], [271, 222], [272, 163], [273, 223], [274, 225], [275, 227], [276, 168], [277, 168], [278, 168], [279, 168], [280, 168], [281, 231], [282, 169], [283, 235], [284, 172], [285, 173], [286, 238], [287, 239], [288, 240], [289, 241], [290, 175], [291, 176], [292, 243], [293, 244], [294, 185], [295, 245], [296, 245], [297, 249], [298, 249], [299, 251], [300, 254], [301, 208], [302, 257], [303, 258], [304, 259], [305, 262], [306, 263], [307, 265], [308, 267], [309, 267], [310, 268], [311, 268], [312, 269], [313, 269], [314, 271], [315, 271], [316, 272], [317, 273], [318, 277], [319, 278], [320, 279], [321, 280], [322, 282], [323, 170], [324, 170], [325, 284], [326, 285], [327, 286], [328, 287], [329, 288], [330, 291], [331, 292], [332, 244], [333, 293], [334, 294], [335, 298], [336, 257], [337, 303], [338, 304], [339, 305], [340, 305], [341, 318], [342, 318], [343, 320], [344, 320], [345, 321], [346, 321], [347, 323], [348, 324], [349, 326], [350, 244], [351, 332], [352, 332], [353, 333], [354, 348], [355, 348], [356, 350], [357, 351], [358, 351], [359, 332], [360, 352], [361, 357], [362, 357], [363, 358], [364, 359], [365, 361], [366, 361], [367, 362], [368, 351], [369, 351], [370, 351], [371, 351], [372, 365], [373, 365], [374, 361], [375, 366], [376, 357], [377, 357], [378, 368], [379, 372], [380, 372], [381, 365], [382, 373], [383, 374], [384, 376], [385, 379], [386, 379], [387, 372], [388, 380], [389, 381], [390, 374], [391, 385], [392, 385], [393, 379], [394, 386], [395, 387], [396, 383], [397, 390], [398, 391], [399, 391], [400, 385], [401, 392], [402, 393], [403, 395], [404, 396], [405, 397], [406, 398], [407, 398], [408, 391], [409, 399], [410, 400], [411, 404], [412, 405], [413, 406], [414, 406], [415, 398], [416, 407], [417, 408], [418, 412], [419, 413], [420, 413], [421, 406], [422, 414], [423, 415], [424, 417], [425, 419], [426, 419], [427, 413], [428, 420], [429, 421], [430, 425], [431, 425], [432, 419], [433, 426], [434, 427], [435, 430], [436, 430], [437, 425], [438, 431], [439, 432], [440, 435], [441, 435], [442, 430], [443, 436], [444, 437], [445, 440], [446, 440], [447, 435], [448, 441], [449, 442], [450, 445], [451, 445], [452, 440], [453, 446], [454, 447], [455, 450], [456, 450], [457, 445], [458, 451], [459, 452], [460, 454], [461, 455], [462, 455], [463, 450], [464, 456], [465, 457], [466, 461], [467, 461], [468, 455], [469, 462], [470, 463], [471, 466], [472, 466], [473, 461], [474, 467], [475, 468], [476, 471], [477, 471], [478, 466], [479, 472], [480, 473], [481, 476], [482, 476], [483, 471], [484, 477], [485, 478], [486, 481], [487, 476], [488, 482], [489, 483], [490, 481], [491, 486], [492, 487], [493, 489], [494, 481], [495, 481], [496, 481], [497, 490], [498, 494], [499, 496], [500, 499], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493], [494, 494], [495, 495], [496, 496], [497, 497], [498, 498], [499, 499], [500, 500]]}, {"function_name": "getProperties", "code": "\tpublic static final Properties getProperties()\n\t{\n\t\treturn propMgr.getProperties();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProperty", "code": "\tpublic static final String getProperty(String name)\n\t{\n\t\treturn propMgr.getProperty(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getProperty", "code": "\tpublic static final String getProperty(String name, String def)\n\t{\n\t\tString value = propMgr.getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t\treturn value;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [7, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 7], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getProperty", "code": "\tpublic static final String getProperty(String name, Object[] args)\n\t{\n\t\tif(name == null)\n\t\t\treturn null;\n\t\tif(args == null)\n\t\t\treturn getProperty(name);\n\t\telse\n\t\t{\n\t\t\tString value = getProperty(name);\n\t\t\tif(value == null)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn MessageFormat.format(value,args);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [1, 9], [1, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [9, 16], [9, 17], [15, 18], [16, 19], [17, 20], [10, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 1], [10, 1], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 9], [17, 9], [18, 15], [19, 16], [20, 17], [21, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getBooleanProperty", "code": "\tpublic static final boolean getBooleanProperty(String name)\n\t{\n\t\treturn getBooleanProperty(name,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBooleanProperty", "code": "\tpublic static final boolean getBooleanProperty(String name, boolean def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse if(value.equals(\"true\") || value.equals(\"yes\")\n\t\t\t|| value.equals(\"on\"))\n\t\t\treturn true;\n\t\telse if(value.equals(\"false\") || value.equals(\"no\")\n\t\t\t|| value.equals(\"off\"))\n\t\t\treturn false;\n\t\telse\n\t\t\treturn def;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [5, 10], [7, 11], [2, 12], [8, 13], [8, 14], [8, 15], [9, 16], [10, 17], [10, 18], [14, 19], [15, 20], [15, 21], [17, 22], [18, 23], [18, 24], [20, 25], [21, 26], [21, 27], [23, 28], [24, 29], [26, 30], [27, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 5], [11, 7], [12, 2], [13, 8], [14, 8], [15, 8], [16, 9], [17, 10], [18, 10], [19, 14], [20, 15], [21, 15], [22, 17], [23, 18], [24, 18], [25, 20], [26, 21], [27, 21], [28, 23], [29, 24], [30, 26], [31, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getIntegerProperty", "code": "\tpublic static final int getIntegerProperty(String name, int def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Integer.parseInt(value.trim());\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [2, 9], [7, 10], [7, 11], [10, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 2], [10, 7], [11, 7], [12, 10], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getDoubleProperty", "code": "\tpublic static double getDoubleProperty(String name, double def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Double.parseDouble(value.trim());\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [2, 9], [7, 10], [7, 11], [10, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 2], [10, 7], [11, 7], [12, 10], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getFontProperty", "code": "\tpublic static final Font getFontProperty(String name)\n\t{\n\t\treturn getFontProperty(name,null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFontProperty", "code": "\tpublic static final Font getFontProperty(String name, Font def)\n\t{\n\t\tString family = getProperty(name);\n\t\tString sizeString = getProperty(name + \"size\");\n\t\tString styleString = getProperty(name + \"style\");\n\n\t\tif(family == null || sizeString == null || styleString == null)\n\t\t\treturn def;\n\t\telse\n\t\t{\n\t\t\tint size, style;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tsize = Integer.parseInt(sizeString);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstyle = Integer.parseInt(styleString);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn def;\n\t\t\t}\n\n\t\t\treturn new Font(family,style,size);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "TRY", "TRY", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CATCH", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [8, 13], [8, 14], [2, 15], [3, 16], [4, 17], [9, 18], [10, 19], [11, 20], [13, 21], [14, 22], [14, 23], [15, 24], [16, 25], [19, 26], [10, 27], [20, 28], [11, 29], [22, 30], [23, 31], [24, 32], [25, 33], [27, 34], [29, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 8], [14, 8], [15, 2], [16, 3], [17, 4], [18, 9], [19, 10], [20, 11], [21, 13], [22, 14], [23, 14], [24, 15], [25, 16], [26, 19], [27, 10], [28, 20], [29, 11], [30, 22], [31, 23], [32, 24], [33, 25], [34, 27], [35, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getColorProperty", "code": "\tpublic static Color getColorProperty(String name)\n\t{\n\t\treturn getColorProperty(name,Color.black);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getColorProperty", "code": "\tpublic static Color getColorProperty(String name, Color def)\n\t{\n\t\tString value = getProperty(name);\n\t\tif(value == null)\n\t\t\treturn def;\n\t\telse\n\t\t\treturn GUIUtilities.parseColor(value,def);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [7, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 7], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setColorProperty", "code": "\tpublic static void setColorProperty(String name, Color value)\n\t{\n\t\tsetProperty(name,GUIUtilities.getColorHexString(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setProperty", "code": "\tpublic static final void setProperty(String name, String value)\n\t{\n\t\tpropMgr.setProperty(name,value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setTemporaryProperty", "code": "\tpublic static final void setTemporaryProperty(String name, String value)\n\t{\n\t\tpropMgr.setTemporaryProperty(name,value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBooleanProperty", "code": "\tpublic static final void setBooleanProperty(String name, boolean value)\n\t{\n\t\tsetProperty(name,value ? \"true\" : \"false\");", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setIntegerProperty", "code": "\tpublic static final void setIntegerProperty(String name, int value)\n\t{\n\t\tsetProperty(name,String.valueOf(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDoubleProperty", "code": "\tpublic static final void setDoubleProperty(String name, double value)\n\t{\n\t\tsetProperty(name,String.valueOf(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setFontProperty", "code": "\tpublic static final void setFontProperty(String name, Font value)\n\t{\n\t\tsetProperty(name,value.getFamily());\n\t\tsetIntegerProperty(name + \"size\",value.getSize());\n\t\tsetIntegerProperty(name + \"style\",value.getStyle());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [4, 8], [4, 9], [5, 10], [7, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 4], [9, 4], [10, 5], [11, 7], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "unsetProperty", "code": "\tpublic static final void unsetProperty(String name)\n\t{\n\t\tpropMgr.unsetProperty(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "resetProperty", "code": "\tpublic static final void resetProperty(String name)\n\t{\n\t\tpropMgr.resetProperty(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "propertiesChanged", "code": "\tpublic static void propertiesChanged()\n\t{\n\t\tinitKeyBindings();\n\n\t\tAutosave.setInterval(getIntegerProperty(\"autosave\",30));\n\n\t\tsaveCaret = getBooleanProperty(\"saveCaret\");\n\n\t\tUIDefaults defaults = UIManager.getDefaults();\n\n\t\t// give all text areas the same font\n\t\tFont font = getFontProperty(\"view.font\");\n\n\t\t//defaults.put(\"TextField.font\",font);\n\t\tdefaults.put(\"TextArea.font\",font);\n\t\tdefaults.put(\"TextPane.font\",font);\n\n\t\t// Enable/Disable tooltips\n\t\tToolTipManager.sharedInstance().setEnabled(\n\t\t\tjEdit.getBooleanProperty(\"showTooltips\"));\n\n\t\tinitProxy();\n\n\t\t// we do this here instead of adding buffers to the bus.\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tbuffer.resetCachedProperties();\n\t\t\tbuffer.propertiesChanged();\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tHistoryModel.propertiesChanged();\n\t\tKillRing.propertiesChanged();\n\n\t\tEditBus.send(new PropertiesChanged(null));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [5, 16], [8, 17], [10, 18], [11, 19], [12, 20], [3, 21], [4, 22], [13, 23], [14, 24], [16, 25], [1, 26], [1, 27], [1, 28], [18, 29], [21, 30], [23, 31], [24, 32], [24, 33], [29, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 5], [17, 8], [18, 10], [19, 11], [20, 12], [21, 3], [22, 4], [23, 13], [24, 14], [25, 16], [26, 1], [27, 1], [28, 1], [29, 18], [30, 21], [31, 23], [32, 24], [33, 24], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getNotLoadedPluginJARs", "code": "\tpublic static String[] getNotLoadedPluginJARs()\n\t{\n\t\tVector returnValue = new Vector();\n\n\t\tif(jEditHome != null)\n\t\t{\n\t\t\tString systemPluginDir = MiscUtilities\n\t\t\t\t.constructPath(jEditHome,\"jars\");\n\n\t\t\tString[] list = new File(systemPluginDir).list();\n\t\t\tif(list != null)\n\t\t\t\tgetNotLoadedPluginJARs(returnValue,systemPluginDir,list);\n\t\t}\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tString userPluginDir = MiscUtilities\n\t\t\t\t.constructPath(settingsDirectory,\"jars\");\n\t\t\tString[] list = new File(userPluginDir).list();\n\t\t\tif(list != null)\n\t\t\t{\n\t\t\t\tgetNotLoadedPluginJARs(returnValue,\n\t\t\t\t\tuserPluginDir,list);\n\t\t\t}\n\t\t}\n\n\t\tString[] _returnValue = new String[returnValue.size()];\n\t\treturnValue.copyInto(_returnValue);\n\t\treturn _returnValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [3, 9], [3, 10], [3, 11], [7, 12], [4, 13], [4, 14], [4, 15], [8, 16], [5, 17], [2, 18], [9, 19], [13, 20], [19, 21], [10, 22], [11, 23], [13, 24], [20, 25], [14, 26], [15, 27], [9, 28], [22, 29], [23, 30], [26, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 3], [10, 3], [11, 3], [12, 7], [13, 4], [14, 4], [15, 4], [16, 8], [17, 5], [18, 2], [19, 9], [20, 13], [21, 19], [22, 10], [23, 11], [24, 13], [25, 20], [26, 14], [27, 15], [28, 9], [29, 22], [30, 23], [31, 26], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "getPlugin", "code": "\tpublic static EditPlugin getPlugin(String name)\n\t{\n\t\treturn getPlugin(name, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getPlugin", "code": "\tpublic static EditPlugin getPlugin(String name, boolean loadIfNecessary)\n\t{\n\t\tEditPlugin[] plugins = getPlugins();\n\t\tEditPlugin plugin = null;\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tif(plugins[i].getClassName().equals(name))\n\t\t\t\tplugin = plugins[i];\n\t\t\tif(loadIfNecessary)\n\t\t\t{\n\t\t\t\tif(plugin instanceof EditPlugin.Deferred)\n\t\t\t\t{\n\t\t\t\t\tplugin.getPluginJAR().activatePlugin();\n\t\t\t\t\tplugin = plugin.getPluginJAR().getPlugin();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn plugin;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [3, 10], [4, 11], [2, 12], [8, 13], [9, 14], [9, 15], [9, 16], [13, 17], [13, 18], [13, 19], [13, 20], [19, 21], [20, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 3], [11, 4], [12, 2], [13, 8], [14, 9], [15, 9], [16, 9], [17, 13], [18, 13], [19, 13], [20, 13], [21, 19], [22, 20], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getPlugins", "code": "\tpublic static EditPlugin[] getPlugins()\n\t{\n\t\tVector vector = new Vector();\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\tEditPlugin plugin = ((PluginJAR)jars.elementAt(i))\n\t\t\t\t.getPlugin();\n\t\t\tif(plugin != null)\n\t\t\t\tvector.add(plugin);\n\t\t}\n\n\t\tEditPlugin[] array = new EditPlugin[vector.size()];\n\t\tvector.copyInto(array);\n\t\treturn array;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [3, 8], [6, 9], [4, 10], [2, 11], [7, 12], [3, 13], [7, 14], [12, 15], [8, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 3], [9, 6], [10, 4], [11, 2], [12, 7], [13, 3], [14, 7], [15, 12], [16, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getPluginJARs", "code": "\tpublic static PluginJAR[] getPluginJARs()\n\t{\n\t\tPluginJAR[] array = new PluginJAR[jars.size()];\n\t\tjars.copyInto(array);\n\t\treturn array;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getPluginJAR", "code": "\tpublic static PluginJAR getPluginJAR(String path)\n\t{\n\t\tfor(int i = 0; i < jars.size(); i++)\n\t\t{\n\t\t\tPluginJAR jar = (PluginJAR)jars.elementAt(i);\n\t\t\tif(jar.getPath().equals(path))\n\t\t\t\treturn jar;\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [10, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 10], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "addPluginJAR", "code": "\tpublic static void addPluginJAR(String path)\n\t{\n\t\t// backwards compatibility...\n\t\tPluginJAR jar = new EditPlugin.JAR(new File(path));\n\t\tjars.addElement(jar);\n\t\tjar.init();\n\n\t\tEditBus.send(new PluginUpdate(jar,PluginUpdate.LOADED,false));\n\t\tif(!isMainThread())\n\t\t{\n\t\t\tEditBus.send(new DynamicMenuChanged(\"plugins\"));\n\t\t\tinitKeyBindings();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [2, 9], [1, 10], [1, 11], [8, 12], [9, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 2], [10, 1], [11, 1], [12, 8], [13, 9], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "addPluginJARsFromDirectory", "code": "\tprivate static void addPluginJARsFromDirectory(String directory)\n\t{\n\t\tLog.log(Log.NOTICE,jEdit.class,\"Loading plugins from \"\n\t\t\t+ directory);\n\n\t\tFile file = new File(directory);\n\t\tif(!(file.exists() && file.isDirectory()))\n\t\t\treturn;\n\t\tString[] plugins = file.list();\n\t\tif(plugins == null)\n\t\t\treturn;\n\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tString plugin = plugins[i];\n\t\t\tif(!plugin.toLowerCase().endsWith(\".jar\"))\n\t\t\t\tcontinue;\n\n\t\t\tString path = MiscUtilities.constructPath(directory,plugin);\n\n\t\t\t// remove this when 4.1 plugin API is deprecated\n\t\t\tif(plugin.equals(\"EditBuddy.jar\")\n\t\t\t\t|| plugin.equals(\"PluginManager.jar\")\n\t\t\t\t|| plugin.equals(\"Firewall.jar\")\n\t\t\t\t|| plugin.equals(\"Tidy.jar\")\n\t\t\t\t|| plugin.equals(\"DragAndDrop.jar\"))\n\t\t\t{\n\t\t\t\tpluginError(path,\"plugin-error.obsolete\",null);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\taddPluginJAR(path);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [4, 10], [4, 11], [0, 12], [1, 13], [1, 14], [1, 15], [1, 16], [9, 17], [3, 18], [11, 19], [11, 20], [5, 21], [12, 22], [1, 23], [13, 24], [15, 25], [15, 26], [1, 27], [22, 28], [13, 29], [24, 30], [24, 31], [14, 32], [26, 33], [13, 34], [30, 35], [31, 36], [31, 37], [33, 38], [34, 39], [34, 40], [36, 41], [37, 42], [37, 43], [42, 44], [43, 45], [43, 46], [45, 47], [46, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 4], [11, 4], [12, 0], [13, 1], [14, 1], [15, 1], [16, 1], [17, 9], [18, 3], [19, 11], [20, 11], [21, 5], [22, 12], [23, 1], [24, 13], [25, 15], [26, 15], [27, 1], [28, 22], [29, 13], [30, 24], [31, 24], [32, 14], [33, 26], [34, 13], [35, 30], [36, 31], [37, 31], [38, 33], [39, 34], [40, 34], [41, 36], [42, 37], [43, 37], [44, 42], [45, 43], [46, 43], [47, 45], [48, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "removePluginJAR", "code": "\tpublic static void removePluginJAR(PluginJAR jar, boolean exit)\n\t{\n\t\tif(exit)\n\t\t{\n\t\t\tjar.uninit(true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tjar.uninit(false);\n\t\t\tjars.removeElement(jar);\n\t\t\tinitKeyBindings();\n\t\t}\n\n\t\tEditBus.send(new PluginUpdate(jar,PluginUpdate.UNLOADED,exit));\n\t\tif(!isMainThread() && !exit)\n\t\t\tEditBus.send(new DynamicMenuChanged(\"plugins\"));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [5, 8], [6, 9], [7, 10], [2, 11], [2, 12], [2, 13], [2, 14], [10, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 5], [9, 6], [10, 7], [11, 2], [12, 2], [13, 2], [14, 2], [15, 10], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getActionContext", "code": "\tpublic static ActionContext getActionContext()\n\t{\n\t\treturn actionContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addActionSet", "code": "\tpublic static void addActionSet(ActionSet actionSet)\n\t{\n\t\tactionContext.addActionSet(actionSet);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeActionSet", "code": "\tpublic static void removeActionSet(ActionSet actionSet)\n\t{\n\t\tactionContext.removeActionSet(actionSet);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBuiltInActionSet", "code": "\tpublic static ActionSet getBuiltInActionSet()\n\t{\n\t\treturn builtInActionSet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getActionSets", "code": "\tpublic static ActionSet[] getActionSets()\n\t{\n\t\treturn actionContext.getActionSets();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAction", "code": "\tpublic static EditAction getAction(String name)\n\t{\n\t\treturn actionContext.getAction(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getActionSetForAction", "code": "\tpublic static ActionSet getActionSetForAction(String action)\n\t{\n\t\treturn actionContext.getActionSetForAction(action);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getActionSetForAction", "code": "\tpublic static ActionSet getActionSetForAction(EditAction action)\n\t{\n\t\treturn actionContext.getActionSetForAction(action.getName());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getActions", "code": "\tpublic static EditAction[] getActions()\n\t{\n\t\tString[] names = actionContext.getActionNames();\n\t\tEditAction[] actions = new EditAction[names.length];\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tactions[i] = actionContext.getAction(names[i]);\n\t\t\tif(actions[i] == null)\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,\"wtf: \" + names[i]);\n\t\t}\n\t\treturn actions;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [4, 7], [6, 8], [2, 9], [2, 10], [6, 11], [8, 12], [9, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 4], [8, 6], [9, 2], [10, 2], [11, 6], [12, 8], [13, 9], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getActionNames", "code": "\tpublic static String[] getActionNames()\n\t{\n\t\treturn actionContext.getActionNames();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "reloadModes", "code": "\tpublic static void reloadModes()\n\t{\n\t\t/* Try to guess the eventual size to avoid unnecessary\n\t\t * copying */\n\t\tmodes = new Vector(50);\n\n\t\t//{{{ Load the global catalog\n\t\tif(jEditHome == null)\n\t\t\tloadModeCatalog(\"/modes/catalog\",true);\n\t\telse\n\t\t{\n\t\t\tloadModeCatalog(MiscUtilities.constructPath(jEditHome,\n\t\t\t\t\"modes\",\"catalog\"),false);\n\t\t} //}}}\n\n\t\t//{{{ Load user catalog\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile userModeDir = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"modes\"));\n\t\t\tif(!userModeDir.exists())\n\t\t\t\tuserModeDir.mkdirs();\n\n\t\t\tFile userCatalog = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"modes\",\"catalog\"));\n\t\t\tif(!userCatalog.exists())\n\t\t\t{\n\t\t\t\t// create dummy catalog\n\t\t\t\tFileWriter out = null;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tout = new FileWriter(userCatalog);\n\t\t\t\t\tout.write(jEdit.getProperty(\"defaultCatalog\"));\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tif(out != null)\n\t\t\t\t\t\t\tout.close();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(IOException e)\n\t\t\t\t\t{\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tloadModeCatalog(userCatalog.getPath(),false);\n\t\t} //}}}\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\t// This reloads the token marker and sends a message\n\t\t\t// which causes edit panes to repaint their text areas\n\t\t\tbuffer.setMode();\n\n\t\t\tbuffer = buffer.next;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [0, 8], [5, 9], [3, 10], [3, 11], [3, 12], [3, 13], [6, 14], [4, 15], [7, 16], [8, 17], [1, 18], [1, 19], [3, 20], [10, 21], [12, 22], [4, 23], [15, 24], [15, 25], [17, 26], [20, 27], [20, 28], [10, 29], [10, 30], [11, 31], [12, 32], [13, 33], [23, 34], [23, 35], [29, 36], [29, 37], [31, 38], [33, 39], [35, 40], [35, 41], [36, 42], [36, 43], [29, 44], [29, 45], [29, 46], [30, 47], [38, 48], [38, 49], [39, 50], [43, 51], [37, 52], [45, 53], [46, 54], [43, 55], [51, 56], [53, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 0], [9, 5], [10, 3], [11, 3], [12, 3], [13, 3], [14, 6], [15, 4], [16, 7], [17, 8], [18, 1], [19, 1], [20, 3], [21, 10], [22, 12], [23, 4], [24, 15], [25, 15], [26, 17], [27, 20], [28, 20], [29, 10], [30, 10], [31, 11], [32, 12], [33, 13], [34, 23], [35, 23], [36, 29], [37, 29], [38, 31], [39, 33], [40, 35], [41, 35], [42, 36], [43, 36], [44, 29], [45, 29], [46, 29], [47, 30], [48, 38], [49, 38], [50, 39], [51, 43], [52, 37], [53, 45], [54, 46], [55, 43], [56, 51], [57, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "getMode", "code": "\tpublic static Mode getMode(String name)\n\t{\n\t\tfor(int i = 0; i < modes.size(); i++)\n\t\t{\n\t\t\tMode mode = (Mode)modes.elementAt(i);\n\t\t\tif(mode.getName().equals(name))\n\t\t\t\treturn mode;\n\t\t}\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [10, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 10], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getModes", "code": "\tpublic static Mode[] getModes()\n\t{\n\t\tMode[] array = new Mode[modes.size()];\n\t\tmodes.copyInto(array);\n\t\treturn array;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "openFiles", "code": "\tpublic static Buffer openFiles(View view, String parent, String[] args)\n\t{\n\t\tBuffer retVal = null;\n\t\tBuffer lastBuffer = null;\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tString arg = args[i];\n\t\t\tif(arg == null)\n\t\t\t\tcontinue;\n\t\t\telse if(arg.startsWith(\"+line:\") || arg.startsWith(\"+marker:\"))\n\t\t\t{\n\t\t\t\tif(lastBuffer != null)\n\t\t\t\t\tgotoMarker(view,lastBuffer,arg);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlastBuffer = openFile(null,parent,arg,false,null);\n\n\t\t\tif(retVal == null && lastBuffer != null)\n\t\t\t\tretVal = lastBuffer;\n\t\t}\n\n\t\tif(view != null && retVal != null)\n\t\t\tview.setBuffer(retVal);\n\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [2, 11], [9, 12], [9, 13], [3, 14], [3, 15], [3, 16], [4, 17], [5, 18], [12, 19], [13, 20], [14, 21], [3, 22], [15, 23], [15, 24], [15, 25], [3, 26], [14, 27], [21, 28], [21, 29], [22, 30], [23, 31], [25, 32], [28, 33], [29, 34], [30, 35], [30, 36], [30, 37], [23, 38], [23, 39], [31, 40], [31, 41], [39, 42], [40, 43], [41, 44], [39, 45], [42, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 2], [12, 9], [13, 9], [14, 3], [15, 3], [16, 3], [17, 4], [18, 5], [19, 12], [20, 13], [21, 14], [22, 3], [23, 15], [24, 15], [25, 15], [26, 3], [27, 14], [28, 21], [29, 21], [30, 22], [31, 23], [32, 25], [33, 28], [34, 29], [35, 30], [36, 30], [37, 30], [38, 23], [39, 23], [40, 31], [41, 31], [42, 39], [43, 40], [44, 41], [45, 39], [46, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "openFile", "code": "\tpublic static Buffer openFile(View view, String path)\n\t{\n\t\treturn openFile(view,null,path,false,new Hashtable());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "openFile", "code": "\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean readOnly, boolean newFile)\n\t{\n\t\treturn openFile(view,parent,path,newFile,new Hashtable());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "openFile", "code": "\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean readOnly, boolean newFile,\n\t\tHashtable props)\n\t{\n\t\treturn openFile(view,parent,path,newFile,props);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "openFile", "code": "\tpublic static Buffer openFile(View view, String parent,\n\t\tString path, boolean newFile, Hashtable props)\n\t{\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\tif(view != null && parent == null)\n\t\t\tparent = view.getBuffer().getDirectory();\n\n\t\tif(MiscUtilities.isURL(path))\n\t\t{\n\t\t\tif(MiscUtilities.getProtocolOfURL(path).equals(\"file\"))\n\t\t\t\tpath = path.substring(5);\n\t\t}\n\n\t\tpath = MiscUtilities.constructPath(parent,path);\n\n\t\tBuffer newBuffer;\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer buffer = getBuffer(path);\n\t\t\tif(buffer != null)\n\t\t\t{\n\t\t\t\tif(view != null)\n\t\t\t\t\tview.setBuffer(buffer);\n\n\t\t\t\treturn buffer;\n\t\t\t}\n\n\t\t\tif(props == null)\n\t\t\t\tprops = new Hashtable();\n\n\t\t\tBufferHistory.Entry entry = BufferHistory.getEntry(path);\n\n\t\t\tif(entry != null && saveCaret && props.get(Buffer.CARET) == null)\n\t\t\t{\n\t\t\t\tprops.put(Buffer.CARET,new Integer(entry.caret));\n\t\t\t\t/* if(entry.selection != null)\n\t\t\t\t{\n\t\t\t\t\t// getSelection() converts from string to\n\t\t\t\t\t// Selection[]\n\t\t\t\t\tprops.put(Buffer.SELECTION,entry.getSelection());\n\t\t\t\t} */\n\t\t\t}\n\n\t\t\tif(entry != null && props.get(Buffer.ENCODING) == null)\n\t\t\t{\n\t\t\t\tif(entry.encoding != null)\n\t\t\t\t\tprops.put(Buffer.ENCODING,entry.encoding);\n\t\t\t}\n\n\t\t\tnewBuffer = new Buffer(path,newFile,false,props);\n\n\t\t\tif(!newBuffer.load(view,false))\n\t\t\t\treturn null;\n\n\t\t\taddBufferToList(newBuffer);\n\t\t}\n\n\t\tEditBus.send(new BufferUpdate(newBuffer,view,BufferUpdate.CREATED));\n\n\t\tif(view != null)\n\t\t\tview.setBuffer(newBuffer);\n\n\t\treturn newBuffer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [4, 21], [5, 22], [0, 23], [2, 24], [11, 25], [12, 26], [0, 27], [13, 28], [13, 29], [0, 30], [14, 31], [15, 32], [17, 33], [18, 34], [20, 35], [4, 36], [5, 37], [22, 38], [22, 39], [23, 40], [28, 41], [29, 42], [30, 43], [14, 44], [31, 45], [31, 46], [32, 47], [32, 48], [16, 49], [17, 50], [33, 51], [18, 52], [18, 53], [34, 54], [19, 55], [36, 56], [37, 57], [38, 58], [39, 59], [43, 60], [44, 61], [45, 62], [45, 63], [46, 64], [15, 65], [47, 66], [47, 67], [48, 68], [50, 69], [53, 70], [36, 71], [56, 72], [57, 73], [44, 74], [61, 75], [65, 76], [68, 77], [53, 78], [70, 79], [71, 80], [72, 81], [80, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 4], [22, 5], [23, 0], [24, 2], [25, 11], [26, 12], [27, 0], [28, 13], [29, 13], [30, 0], [31, 14], [32, 15], [33, 17], [34, 18], [35, 20], [36, 4], [37, 5], [38, 22], [39, 22], [40, 23], [41, 28], [42, 29], [43, 30], [44, 14], [45, 31], [46, 31], [47, 32], [48, 32], [49, 16], [50, 17], [51, 33], [52, 18], [53, 18], [54, 34], [55, 19], [56, 36], [57, 37], [58, 38], [59, 39], [60, 43], [61, 44], [62, 45], [63, 45], [64, 46], [65, 15], [66, 47], [67, 47], [68, 48], [69, 50], [70, 53], [71, 36], [72, 56], [73, 57], [74, 44], [75, 61], [76, 65], [77, 68], [78, 53], [79, 70], [80, 71], [81, 72], [82, 80], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "openTemporary", "code": "\tpublic static Buffer openTemporary(View view, String parent,\n\t\tString path, boolean newFile)\n\t{\n\t\tif(view != null && parent == null)\n\t\t\tparent = view.getBuffer().getDirectory();\n\n\t\tif(MiscUtilities.isURL(path))\n\t\t{\n\t\t\tif(MiscUtilities.getProtocolOfURL(path).equals(\"file\"))\n\t\t\t\tpath = path.substring(5);\n\t\t}\n\n\t\tpath = MiscUtilities.constructPath(parent,path);\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer buffer = getBuffer(path);\n\t\t\tif(buffer != null)\n\t\t\t\treturn buffer;\n\n\t\t\tbuffer = new Buffer(path,newFile,true,new Hashtable());\n\t\t\tif(!buffer.load(view,false))\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn buffer;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "IF", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "RETURN", "RETURN", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [7, 13], [7, 14], [7, 15], [0, 16], [8, 17], [8, 18], [10, 19], [1, 20], [2, 21], [12, 22], [12, 23], [14, 24], [15, 25], [16, 26], [18, 27], [9, 28], [20, 29], [21, 30], [22, 31], [23, 32], [26, 33], [26, 34], [20, 35], [29, 36], [30, 37], [35, 38], [36, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 7], [14, 7], [15, 7], [16, 0], [17, 8], [18, 8], [19, 10], [20, 1], [21, 2], [22, 12], [23, 12], [24, 14], [25, 15], [26, 16], [27, 18], [28, 9], [29, 20], [30, 21], [31, 22], [32, 23], [33, 26], [34, 26], [35, 20], [36, 29], [37, 30], [38, 35], [39, 36], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "commitTemporary", "code": "\tpublic static void commitTemporary(Buffer buffer)\n\t{\n\t\tif(!buffer.isTemporary())\n\t\t\treturn;\n\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\taddBufferToList(buffer);\n\t\tbuffer.commitTemporary();\n\n\t\t// send full range of events to avoid breaking plugins\n\t\tEditBus.send(new BufferUpdate(buffer,null,BufferUpdate.CREATED));\n\t\tEditBus.send(new BufferUpdate(buffer,null,BufferUpdate.LOAD_STARTED));\n\t\tEditBus.send(new BufferUpdate(buffer,null,BufferUpdate.LOADED));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [3, 11], [4, 12], [5, 13], [8, 14], [11, 15], [12, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 3], [12, 4], [13, 5], [14, 8], [15, 11], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "newFile", "code": "\tpublic static Buffer newFile(View view)\n\t{\n\t\tString path;\n\n\t\tif(view != null && view.getBuffer() != null)\n\t\t{\n\t\t\tpath = view.getBuffer().getDirectory();\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\t// don't want 'New File' to create a read only buffer\n\t\t\t// if current file is on SQL VFS or something\n\t\t\tif((vfs.getCapabilities() & VFS.WRITE_CAP) == 0)\n\t\t\t\tpath = System.getProperty(\"user.home\");\n\t\t}\n\t\telse\n\t\t\tpath = null;\n\n\t\treturn newFile(view,path);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [6, 11], [7, 12], [8, 13], [2, 14], [10, 15], [10, 16], [11, 17], [8, 18], [13, 19], [13, 20], [9, 21], [14, 22], [18, 23], [20, 24], [22, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 6], [12, 7], [13, 8], [14, 2], [15, 10], [16, 10], [17, 11], [18, 8], [19, 13], [20, 13], [21, 9], [22, 14], [23, 18], [24, 20], [25, 22], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "newFile", "code": "\tpublic static Buffer newFile(View view, String dir)\n\t{\n\t\t// If only one new file is open which is clean, just close\n\t\t// it, which will create an 'Untitled-1'\n\t\tif(dir != null\n\t\t\t&& buffersFirst != null\n\t\t\t&& buffersFirst == buffersLast\n\t\t\t&& buffersFirst.isUntitled()\n\t\t\t&& !buffersFirst.isDirty())\n\t\t{\n\t\t\tcloseBuffer(view,buffersFirst);\n\t\t\t// return the newly created 'untitled-1'\n\t\t\treturn buffersFirst;\n\t\t}\n\n\t\t// Find the highest Untitled-n file\n\t\tint untitledCount = 0;\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.getName().startsWith(\"Untitled-\"))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tuntitledCount = Math.max(untitledCount,\n\t\t\t\t\t\tInteger.parseInt(buffer.getName()\n\t\t\t\t\t\t.substring(9)));\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException nf)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\treturn openFile(view,dir,\"Untitled-\" + (untitledCount+1),true,null);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [5, 10], [8, 11], [8, 12], [8, 13], [2, 14], [9, 15], [4, 16], [5, 17], [10, 18], [10, 19], [13, 20], [13, 21], [2, 22], [14, 23], [5, 24], [19, 25], [19, 26], [20, 27], [14, 28], [23, 29], [26, 30], [26, 31], [28, 32], [29, 33], [31, 34], [31, 35], [28, 36], [34, 37], [35, 38], [36, 39], [39, 40], [40, 41], [41, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 5], [11, 8], [12, 8], [13, 8], [14, 2], [15, 9], [16, 4], [17, 5], [18, 10], [19, 10], [20, 13], [21, 13], [22, 2], [23, 14], [24, 5], [25, 19], [26, 19], [27, 20], [28, 14], [29, 23], [30, 26], [31, 26], [32, 28], [33, 29], [34, 31], [35, 31], [36, 28], [37, 34], [38, 35], [39, 36], [40, 39], [41, 40], [42, 41], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "closeBuffer", "code": "\tpublic static boolean closeBuffer(View view, Buffer buffer)\n\t{\n\t\t// Wait for pending I/O requests\n\t\tif(buffer.isPerformingIO())\n\t\t{\n\t\t\tVFSManager.waitForRequests();\n\t\t\tif(VFSManager.errorOccurred())\n\t\t\t\treturn false;\n\t\t}\n\n\t\tif(buffer.isDirty())\n\t\t{\n\t\t\tObject[] args = { buffer.getName() };\n\t\t\tint result = GUIUtilities.confirm(view,\"notsaved\",args,\n\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION,\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\tif(result == JOptionPane.YES_OPTION)\n\t\t\t{\n\t\t\t\tif(!buffer.save(view,null,true))\n\t\t\t\t\treturn false;\n\n\t\t\t\tVFSManager.waitForRequests();\n\t\t\t\tif(buffer.getBooleanProperty(BufferIORequest\n\t\t\t\t\t.ERROR_OCCURRED))\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(result != JOptionPane.NO_OPTION)\n\t\t\t\treturn false;\n\t\t}\n\n\t\t_closeBuffer(view,buffer);\n\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "BINARY_OP", "RETURN", "CALL", "CALL", "RETURN", "BINARY_OP", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [2, 10], [2, 11], [2, 12], [3, 13], [10, 14], [10, 15], [13, 16], [13, 17], [3, 18], [14, 19], [14, 20], [10, 21], [10, 22], [11, 23], [16, 24], [19, 25], [21, 26], [10, 27], [22, 28], [22, 29], [23, 30], [12, 31], [21, 32], [28, 33], [29, 34], [29, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 2], [11, 2], [12, 2], [13, 3], [14, 10], [15, 10], [16, 13], [17, 13], [18, 3], [19, 14], [20, 14], [21, 10], [22, 10], [23, 11], [24, 16], [25, 19], [26, 21], [27, 10], [28, 22], [29, 22], [30, 23], [31, 12], [32, 21], [33, 28], [34, 29], [35, 29], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "_closeBuffer", "code": "\tpublic static void _closeBuffer(View view, Buffer buffer)\n\t{\n\t\tif(buffer.isClosed())\n\t\t{\n\t\t\t// can happen if the user presses C+w twice real\n\t\t\t// quick and the buffer has unsaved changes\n\t\t\treturn;\n\t\t}\n\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\tif(!buffer.isNewFile())\n\t\t{\n\t\t\tif(view != null)\n\t\t\t\tview.getEditPane().saveCaretInfo();\n\t\t\tInteger _caret = (Integer)buffer.getProperty(Buffer.CARET);\n\t\t\tint caret = (_caret == null ? 0 : _caret.intValue());\n\n\t\t\tBufferHistory.setEntry(buffer.getPath(),caret,\n\t\t\t\t(Selection[])buffer.getProperty(Buffer.SELECTION),\n\t\t\t\tbuffer.getStringProperty(Buffer.ENCODING));\n\t\t}\n\n\t\tString path = buffer.getSymlinkPath();\n\t\tif((VFSManager.getVFSForPath(path).getCapabilities()\n\t\t\t& VFS.CASE_INSENSITIVE_CAP) != 0)\n\t\t{\n\t\t\tpath = path.toLowerCase();\n\t\t}\n\t\tbufferHash.remove(path);\n\t\tremoveBufferFromList(buffer);\n\t\tbuffer.close();\n\t\tDisplayManager.bufferClosed(buffer);\n\n\t\tEditBus.send(new BufferUpdate(buffer,view,BufferUpdate.CLOSED));\n\n\t\t// Create a new file when the last is closed\n\t\tif(buffersFirst == null && buffersLast == null)\n\t\t\tnewFile(view);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [4, 15], [0, 16], [5, 17], [1, 18], [8, 19], [8, 20], [9, 21], [14, 22], [14, 23], [3, 24], [4, 25], [4, 26], [4, 27], [16, 28], [5, 29], [19, 30], [20, 31], [2, 32], [23, 33], [4, 34], [27, 35], [32, 36], [33, 37], [34, 38], [34, 39], [25, 40], [27, 41], [35, 42], [34, 43], [40, 44], [40, 45], [40, 46], [26, 47], [41, 48], [46, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 4], [16, 0], [17, 5], [18, 1], [19, 8], [20, 8], [21, 9], [22, 14], [23, 14], [24, 3], [25, 4], [26, 4], [27, 4], [28, 16], [29, 5], [30, 19], [31, 20], [32, 2], [33, 23], [34, 4], [35, 27], [36, 32], [37, 33], [38, 34], [39, 34], [40, 25], [41, 27], [42, 35], [43, 34], [44, 40], [45, 40], [46, 40], [47, 26], [48, 41], [49, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "closeAllBuffers", "code": "\tpublic static boolean closeAllBuffers(View view)\n\t{\n\t\treturn closeAllBuffers(view,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "closeAllBuffers", "code": "\tpublic static boolean closeAllBuffers(View view, boolean isExiting)\n\t{\n\t\tif(view != null)\n\t\t\tview.getEditPane().saveCaretInfo();\n\n\t\tboolean dirty = false;\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.isDirty())\n\t\t\t{\n\t\t\t\tdirty = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tif(dirty)\n\t\t{\n\t\t\tboolean ok = new CloseDialog(view).isOK();\n\t\t\tif(!ok)\n\t\t\t\treturn false;\n\t\t}\n\n\t\t// Wait for pending I/O requests\n\t\tVFSManager.waitForRequests();\n\t\tif(VFSManager.errorOccurred())\n\t\t\treturn false;\n\n\t\t// close remaining buffers (the close dialog only deals with\n\t\t// dirty ones)\n\n\t\tbuffer = buffersFirst;\n\n\t\t// zero it here so that BufferTabs doesn't have any problems\n\t\tbuffersFirst = buffersLast = null;\n\t\tbufferHash.clear();\n\t\tbufferCount = 0;\n\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(!buffer.isNewFile())\n\t\t\t{\n\t\t\t\tInteger _caret = (Integer)buffer.getProperty(Buffer.CARET);\n\t\t\t\tint caret = (_caret == null ? 0 : _caret.intValue());\n\t\t\t\tBufferHistory.setEntry(buffer.getPath(),caret,\n\t\t\t\t\t(Selection[])buffer.getProperty(Buffer.SELECTION),\n\t\t\t\t\tbuffer.getStringProperty(Buffer.ENCODING));\n\t\t\t}\n\n\t\t\tbuffer.close();\n\t\t\tDisplayManager.bufferClosed(buffer);\n\t\t\tif(!isExiting)\n\t\t\t{\n\t\t\t\tEditBus.send(new BufferUpdate(buffer,view,\n\t\t\t\t\tBufferUpdate.CLOSED));\n\t\t\t}\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tif(!isExiting)\n\t\t\tnewFile(view);\n\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "RETURN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [3, 14], [0, 15], [0, 16], [0, 17], [0, 18], [4, 19], [4, 20], [0, 21], [6, 22], [9, 23], [13, 24], [2, 25], [3, 26], [3, 27], [14, 28], [15, 29], [17, 30], [19, 31], [5, 32], [5, 33], [6, 34], [22, 35], [8, 36], [9, 37], [23, 38], [3, 39], [3, 40], [3, 41], [27, 42], [30, 43], [32, 44], [6, 45], [34, 46], [37, 47], [27, 48], [27, 49], [44, 50], [33, 51], [34, 52], [26, 53], [27, 54], [51, 55], [34, 56], [53, 57], [54, 58], [54, 59], [48, 60], [56, 61], [54, 62], [60, 63], [60, 64], [60, 65], [49, 66], [65, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 3], [15, 0], [16, 0], [17, 0], [18, 0], [19, 4], [20, 4], [21, 0], [22, 6], [23, 9], [24, 13], [25, 2], [26, 3], [27, 3], [28, 14], [29, 15], [30, 17], [31, 19], [32, 5], [33, 5], [34, 6], [35, 22], [36, 8], [37, 9], [38, 23], [39, 3], [40, 3], [41, 3], [42, 27], [43, 30], [44, 32], [45, 6], [46, 34], [47, 37], [48, 27], [49, 27], [50, 44], [51, 33], [52, 34], [53, 26], [54, 27], [55, 51], [56, 34], [57, 53], [58, 54], [59, 54], [60, 48], [61, 56], [62, 54], [63, 60], [64, 60], [65, 60], [66, 49], [67, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "saveAllBuffers", "code": "\tpublic static void saveAllBuffers(View view)\n\t{\n\t\tsaveAllBuffers(view,jEdit.getBooleanProperty(\"confirmSaveAll\"));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "saveAllBuffers", "code": "\tpublic static void saveAllBuffers(View view, boolean confirm)\n\t{\n\t\tif(confirm)\n\t\t{\n\t\t\tint result = GUIUtilities.confirm(view,\"saveall\",null,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn;\n\t\t}\n\n\t\tBuffer current = view.getBuffer();\n\n\t\tBuffer buffer = buffersFirst;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tif(buffer.isDirty())\n\t\t\t{\n\t\t\t\tif(buffer.isNewFile())\n\t\t\t\t\tview.setBuffer(buffer);\n\t\t\t\tbuffer.save(view,null,true);\n\t\t\t}\n\n\t\t\tbuffer = buffer.next;\n\t\t}\n\n\t\tview.setBuffer(current);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [3, 11], [4, 12], [4, 13], [1, 14], [9, 15], [12, 16], [12, 17], [9, 18], [13, 19], [9, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [18, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 3], [12, 4], [13, 4], [14, 1], [15, 9], [16, 12], [17, 12], [18, 9], [19, 13], [20, 9], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "reloadAllBuffers", "code": "\tpublic static void reloadAllBuffers(final View view, boolean confirm)\n\t{\n\t\tboolean hasDirty = false;\n\t\tBuffer[] buffers = jEdit.getBuffers();\n\n\t\tfor(int i = 0; i < buffers.length && hasDirty == false; i++)\n\t\t\thasDirty = buffers[i].isDirty();\n\n\t\tif(confirm && hasDirty)\n\t\t{\n\t\t\tint result = GUIUtilities.confirm(view,\"reload-all\",null,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn;\n\t\t}\n\n\t\t// save caret info. Buffer.load() will load it.\n\t\tView _view = viewsFirst;\n\t\twhile(_view != null)\n\t\t{\n\t\t\tEditPane[] panes = _view.getEditPanes();\n\t\t\tfor(int i = 0; i < panes.length; i++)\n\t\t\t{\n\t\t\t\tpanes[i].saveCaretInfo();\n\t\t\t}\n\n\t\t\t_view = _view.next;\n\t\t}\n\n\t\tfor(int i = 0; i < buffers.length; i++)\n\t\t{\n\t\t\tBuffer buffer = buffers[i];\n\t\t\tbuffer.load(view,true);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [4, 12], [5, 13], [1, 14], [2, 15], [2, 16], [11, 17], [4, 18], [4, 19], [5, 20], [13, 21], [13, 22], [6, 23], [7, 24], [1, 25], [1, 26], [2, 27], [15, 28], [18, 29], [18, 30], [21, 31], [5, 32], [25, 33], [16, 34], [19, 35], [20, 36], [15, 37], [35, 38], [35, 39], [15, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 4], [13, 5], [14, 1], [15, 2], [16, 2], [17, 11], [18, 4], [19, 4], [20, 5], [21, 13], [22, 13], [23, 6], [24, 7], [25, 1], [26, 1], [27, 2], [28, 15], [29, 18], [30, 18], [31, 21], [32, 5], [33, 25], [34, 16], [35, 19], [36, 20], [37, 15], [38, 35], [39, 35], [40, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "_getBuffer", "code": "\tpublic static Buffer _getBuffer(String path)\n\t{\n\t\t// paths on case-insensitive filesystems are stored as lower\n\t\t// case in the hash.\n\t\tif((VFSManager.getVFSForPath(path).getCapabilities()\n\t\t\t& VFS.CASE_INSENSITIVE_CAP) != 0)\n\t\t{\n\t\t\tpath = path.toLowerCase();\n\t\t}\n\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\treturn (Buffer)bufferHash.get(path);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [3, 7], [1, 8], [6, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 3], [8, 1], [9, 6], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getBuffer", "code": "\tpublic static Buffer getBuffer(String path)\n\t{\n\t\treturn _getBuffer(MiscUtilities.resolveSymlinks(path));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBuffers", "code": "\tpublic static Buffer[] getBuffers()\n\t{\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tBuffer[] buffers = new Buffer[bufferCount];\n\t\t\tBuffer buffer = buffersFirst;\n\t\t\tfor(int i = 0; i < bufferCount; i++)\n\t\t\t{\n\t\t\t\tbuffers[i] = buffer;\n\t\t\t\tbuffer = buffer.next;\n\t\t\t}\n\t\t\treturn buffers;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getBufferCount", "code": "\tpublic static int getBufferCount()\n\t{\n\t\treturn bufferCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstBuffer", "code": "\tpublic static Buffer getFirstBuffer()\n\t{\n\t\treturn buffersFirst;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastBuffer", "code": "\tpublic static Buffer getLastBuffer()\n\t{\n\t\treturn buffersLast;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "checkBufferStatus", "code": "\tpublic static void checkBufferStatus(View view)\n\t{\n\t\t// still need to call the status check even if the option is\n\t\t// off, so that the write protection is updated if it changes\n\t\t// on disk\n\t\tboolean showDialogSetting = getBooleanProperty(\n\t\t\t\"autoReloadDialog\");\n\n\t\t// auto reload changed buffers?\n\t\tboolean autoReloadSetting = getBooleanProperty(\n\t\t\t\"autoReload\");\n\n\t\t// the problem with this is that if we have two edit panes\n\t\t// looking at the same buffer and the file is reloaded both\n\t\t// will jump to the same location\n\t\tView _view = viewsFirst;\n\t\twhile(_view != null)\n\t\t{\n\t\t\tEditPane[] editPanes = _view.getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\teditPanes[i].saveCaretInfo();\n\t\t\t}\n\t\t\t_view = _view.next;\n\t\t}\n\n\t\tBuffer buffer = buffersFirst;\n\t\tint[] states = new int[bufferCount];\n\t\tint i = 0;\n\t\tboolean show = false;\n\t\twhile(buffer != null)\n\t\t{\n\t\t\tstates[i] = buffer.checkFileStatus(view);\n\n\t\t\tswitch(states[i])\n\t\t\t{\n\t\t\tcase Buffer.FILE_CHANGED:\n\t\t\t\tif(autoReloadSetting\n\t\t\t\t\t&& showDialogSetting\n\t\t\t\t\t&& !buffer.isDirty())\n\t\t\t\t{\n\t\t\t\t\tbuffer.load(view,true);\n\t\t\t\t}\n\t\t\t\t/* fall through */\n\t\t\tcase Buffer.FILE_DELETED:\n\t\t\t\tshow = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tbuffer = buffer.next;\n\t\t\ti++;\n\t\t}\n\n\t\tif(show && showDialogSetting)\n\t\t\tnew FilesChangedDialog(view,states,autoReloadSetting);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [7, 14], [1, 15], [2, 16], [13, 17], [3, 18], [4, 19], [7, 20], [7, 21], [14, 22], [9, 23], [10, 24], [2, 25], [2, 26], [7, 27], [20, 28], [23, 29], [24, 30], [16, 31], [16, 32], [26, 33], [21, 34], [16, 35], [32, 36], [20, 37], [35, 38], [36, 39], [36, 40], [20, 41], [32, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 7], [15, 1], [16, 2], [17, 13], [18, 3], [19, 4], [20, 7], [21, 7], [22, 14], [23, 9], [24, 10], [25, 2], [26, 2], [27, 7], [28, 20], [29, 23], [30, 24], [31, 16], [32, 16], [33, 26], [34, 21], [35, 16], [36, 32], [37, 20], [38, 35], [39, 36], [40, 36], [41, 20], [42, 32], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "getInputHandler", "code": "\tpublic static InputHandler getInputHandler()\n\t{\n\t\treturn inputHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "newView", "code": "\tpublic static View newView(View view)\n\t{\n\t\treturn newView(view,null,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "newView", "code": "\tpublic static View newView(View view, Buffer buffer)\n\t{\n\t\treturn newView(view,buffer,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "newView", "code": "\tpublic static View newView(View view, Buffer buffer, boolean plainView)\n\t{\n\t\tView.ViewConfig config;\n\t\tif(view != null && (plainView == view.isPlainView()))\n\t\t\tconfig = view.getViewConfig();\n\t\telse\n\t\t\tconfig = new View.ViewConfig(plainView);\n\t\treturn newView(view,buffer,config);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [8, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 8], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newView", "code": "\tpublic static View newView(View view, Buffer buffer, View.ViewConfig config)\n\t{\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\ttry\n\t\t{\n\t\t\tif(view != null)\n\t\t\t{\n\t\t\t\tview.showWaitCursor();\n\t\t\t\tview.getEditPane().saveCaretInfo();\n\t\t\t}\n\n\t\t\tView newView = new View(buffer,config);\n\t\t\taddViewToList(newView);\n\n\t\t\tif(!config.plainView)\n\t\t\t{\n\t\t\t\tDockableWindowManager wm = newView.getDockableWindowManager();\n\t\t\t\tif(config.top != null\n\t\t\t\t\t&& config.top.length() != 0)\n\t\t\t\t\twm.showDockableWindow(config.top);\n\n\t\t\t\tif(config.left != null\n\t\t\t\t\t&& config.left.length() != 0)\n\t\t\t\t\twm.showDockableWindow(config.left);\n\n\t\t\t\tif(config.bottom != null\n\t\t\t\t\t&& config.bottom.length() != 0)\n\t\t\t\t\twm.showDockableWindow(config.bottom);\n\n\t\t\t\tif(config.right != null\n\t\t\t\t\t&& config.right.length() != 0)\n\t\t\t\t\twm.showDockableWindow(config.right);\n\t\t\t}\n\n\t\t\tnewView.pack();\n\n\t\t\tif(config.width != 0 && config.height != 0)\n\t\t\t{\n\t\t\t\tRectangle desired = new Rectangle(\n\t\t\t\t\tconfig.x,config.y,config.width,\n\t\t\t\t\tconfig.height);\n\t\t\t\tif(OperatingSystem.isX11() && Debug.GEOMETRY_WORKAROUND)\n\t\t\t\t{\n\t\t\t\t\tnew GUIUtilities.UnixWorkaround(newView,\n\t\t\t\t\t\t\"view\",desired,config.extState);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tnewView.setBounds(desired);\n\t\t\t\t\tGUIUtilities.setExtendedState(newView,\n\t\t\t\t\t\tconfig.extState);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tGUIUtilities.centerOnScreen(newView);\n\n\t\t\tEditBus.send(new ViewUpdate(newView,ViewUpdate.CREATED));\n\n\t\t\tnewView.setVisible(true);\n\n\t\t\t// show tip of the day\n\t\t\tif(newView == viewsFirst)\n\t\t\t{\n\t\t\t\tnewView.getTextArea().requestFocus();\n\n\t\t\t\t// Don't show the welcome message if jEdit was started\n\t\t\t\t// with the -nosettings switch\n\t\t\t\tif(settingsDirectory != null && getBooleanProperty(\"firstTime\"))\n\t\t\t\t\tnew HelpViewer();\n\t\t\t\telse if(jEdit.getBooleanProperty(\"tip.show\"))\n\t\t\t\t\tnew TipOfTheDay(newView);\n\n\t\t\t\tsetBooleanProperty(\"firstTime\",false);\n\t\t\t}\n\t\t\telse\n\t\t\t\tGUIUtilities.requestFocus(newView,newView.getTextArea());\n\n\t\t\treturn newView;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(view != null)\n\t\t\t\tview.hideWaitCursor();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "IF", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [0, 12], [5, 13], [7, 14], [1, 15], [1, 16], [8, 17], [1, 18], [1, 19], [11, 20], [12, 21], [5, 22], [13, 23], [7, 24], [7, 25], [15, 26], [16, 27], [8, 28], [8, 29], [8, 30], [17, 31], [17, 32], [9, 33], [9, 34], [9, 35], [9, 36], [9, 37], [10, 38], [20, 39], [24, 40], [7, 41], [25, 42], [25, 43], [7, 44], [29, 45], [31, 46], [32, 47], [33, 48], [34, 49], [35, 50], [36, 51], [11, 52], [11, 53], [41, 54], [41, 55], [42, 56], [25, 57], [43, 58], [43, 59], [44, 60], [45, 61], [30, 62], [33, 63], [48, 64], [48, 65], [34, 66], [49, 67], [49, 68], [35, 69], [50, 70], [50, 71], [36, 72], [51, 73], [51, 74], [37, 75], [52, 76], [42, 77], [56, 78], [58, 79], [59, 80], [29, 81], [29, 82], [29, 83], [64, 84], [64, 85], [65, 86], [67, 87], [67, 88], [68, 89], [70, 90], [70, 91], [71, 92], [73, 93], [73, 94], [74, 95], [83, 96], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 0], [13, 5], [14, 7], [15, 1], [16, 1], [17, 8], [18, 1], [19, 1], [20, 11], [21, 12], [22, 5], [23, 13], [24, 7], [25, 7], [26, 15], [27, 16], [28, 8], [29, 8], [30, 8], [31, 17], [32, 17], [33, 9], [34, 9], [35, 9], [36, 9], [37, 9], [38, 10], [39, 20], [40, 24], [41, 7], [42, 25], [43, 25], [44, 7], [45, 29], [46, 31], [47, 32], [48, 33], [49, 34], [50, 35], [51, 36], [52, 11], [53, 11], [54, 41], [55, 41], [56, 42], [57, 25], [58, 43], [59, 43], [60, 44], [61, 45], [62, 30], [63, 33], [64, 48], [65, 48], [66, 34], [67, 49], [68, 49], [69, 35], [70, 50], [71, 50], [72, 36], [73, 51], [74, 51], [75, 37], [76, 52], [77, 42], [78, 56], [79, 58], [80, 59], [81, 29], [82, 29], [83, 29], [84, 64], [85, 64], [86, 65], [87, 67], [88, 67], [89, 68], [90, 70], [91, 70], [92, 71], [93, 73], [94, 73], [95, 74], [96, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96]]}, {"function_name": "closeView", "code": "\tpublic static void closeView(View view)\n\t{\n\t\tcloseView(view,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getViews", "code": "\tpublic static View[] getViews()\n\t{\n\t\tView[] views = new View[viewCount];\n\t\tView view = viewsFirst;\n\t\tfor(int i = 0; i < viewCount; i++)\n\t\t{\n\t\t\tviews[i] = view;\n\t\t\tview = view.next;\n\t\t}\n\t\treturn views;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getViewCount", "code": "\tpublic static int getViewCount()\n\t{\n\t\treturn viewCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstView", "code": "\tpublic static View getFirstView()\n\t{\n\t\treturn viewsFirst;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastView", "code": "\tpublic static View getLastView()\n\t{\n\t\treturn viewsLast;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getActiveView", "code": "\tpublic static View getActiveView()\n\t{\n\t\tif(activeView == null)\n\t\t{\n\t\t\t// eg user just closed a view and didn't focus another\n\t\t\treturn viewsFirst;\n\t\t}\n\t\telse\n\t\t\treturn activeView;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isMainThread", "code": "\tpublic static boolean isMainThread()\n\t{\n\t\treturn (Thread.currentThread() == mainThread);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isBackgroundModeEnabled", "code": "\tpublic static boolean isBackgroundModeEnabled()\n\t{\n\t\treturn background;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "showMemoryDialog", "code": "\tpublic static void showMemoryDialog(View view)\n\t{\n\t\tRuntime rt = Runtime.getRuntime();\n\t\tint before = (int) (rt.freeMemory() / 1024);\n\t\tSystem.gc();\n\t\tint after = (int) (rt.freeMemory() / 1024);\n\t\tint total = (int) (rt.totalMemory() / 1024);\n\n\t\tJProgressBar progress = new JProgressBar(0,total);\n\t\tprogress.setValue(total - after);\n\t\tprogress.setStringPainted(true);\n\t\tprogress.setString(jEdit.getProperty(\"memory-status.use\",\n\t\t\tnew Object[] { new Integer(total - after),\n\t\t\tnew Integer(total) }));\n\n\t\tObject[] message = new Object[4];\n\t\tmessage[0] = getProperty(\"memory-status.gc\",\n\t\t\tnew Object[] { new Integer(after - before) });\n\t\tmessage[1] = Box.createVerticalStrut(12);\n\t\tmessage[2] = progress;\n\t\tmessage[3] = Box.createVerticalStrut(6);\n\n\t\tJOptionPane.showMessageDialog(view,message,\n\t\t\tjEdit.getProperty(\"memory-status.title\"),\n\t\t\tJOptionPane.INFORMATION_MESSAGE);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [8, 17], [9, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [2, 24], [6, 25], [17, 26], [18, 27], [19, 28], [20, 29], [1, 30], [21, 31], [24, 32], [3, 33], [4, 34], [5, 35], [9, 36], [10, 37], [11, 38], [12, 39], [33, 40], [33, 41], [34, 42], [34, 43], [35, 44], [35, 45], [20, 46], [21, 47], [21, 48], [46, 49], [48, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 8], [18, 9], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 2], [25, 6], [26, 17], [27, 18], [28, 19], [29, 20], [30, 1], [31, 21], [32, 24], [33, 3], [34, 4], [35, 5], [36, 9], [37, 10], [38, 11], [39, 12], [40, 33], [41, 33], [42, 34], [43, 34], [44, 35], [45, 35], [46, 20], [47, 21], [48, 21], [49, 46], [50, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "getJEditHome", "code": "\tpublic static String getJEditHome()\n\t{\n\t\treturn jEditHome;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSettingsDirectory", "code": "\tpublic static String getSettingsDirectory()\n\t{\n\t\treturn settingsDirectory;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getJARCacheDirectory", "code": "\tpublic static String getJARCacheDirectory()\n\t{\n\t\treturn jarCacheDirectory;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "backupSettingsFile", "code": "\tpublic static void backupSettingsFile(File file)\n\t{\n\t\tif(settingsDirectory == null)\n\t\t\treturn;\n\n\t\tString backupDir = MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"settings-backup\");\n\t\tFile dir = new File(backupDir);\n\t\tif(!dir.exists())\n\t\t\tdir.mkdirs();\n\n\t\t// ... sweet. saveBackup() will create backupDir if it\n\t\t// doesn't exist.\n\n\t\tMiscUtilities.saveBackup(file,5,null,\"~\",backupDir);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [4, 8], [4, 9], [6, 10], [6, 11], [6, 12], [1, 13], [2, 14], [3, 15], [9, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 4], [9, 4], [10, 6], [11, 6], [12, 6], [13, 1], [14, 2], [15, 3], [16, 9], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "saveSettings", "code": "\tpublic static void saveSettings()\n\t{\n\t\tif(settingsDirectory == null)\n\t\t\treturn;\n\n\t\tAbbrevs.save();\n\t\tFavoritesVFS.saveFavorites();\n\t\tHistoryModel.saveHistory();\n\t\tRegisters.saveRegisters();\n\t\tSearchAndReplace.save();\n\t\tBufferHistory.save();\n\t\tKillRing.save();\n\n\t\tFile file1 = new File(MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"#properties#save#\"));\n\t\tFile file2 = new File(MiscUtilities.constructPath(\n\t\t\tsettingsDirectory,\"properties\"));\n\t\tif(file2.exists() && file2.lastModified() != propsModTime)\n\t\t{\n\t\t\tLog.log(Log.WARNING,jEdit.class,file2 + \" changed\"\n\t\t\t\t+ \" on disk; will not save user properties\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbackupSettingsFile(file2);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tOutputStream out = new FileOutputStream(file1);\n\t\t\t\tpropMgr.saveUserProps(out);\n\t\t\t\tfile2.delete();\n\t\t\t\tfile1.renameTo(file2);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);\n\t\t\t}\n\n\t\t\tpropsModTime = file2.lastModified();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "TRY", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [4, 13], [4, 14], [1, 15], [5, 16], [5, 17], [2, 18], [3, 19], [14, 20], [1, 21], [15, 22], [15, 23], [1, 24], [1, 25], [16, 26], [18, 27], [19, 28], [21, 29], [15, 30], [15, 31], [15, 32], [25, 33], [27, 34], [28, 35], [22, 36], [23, 37], [33, 38], [33, 39], [39, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 4], [14, 4], [15, 1], [16, 5], [17, 5], [18, 2], [19, 3], [20, 14], [21, 1], [22, 15], [23, 15], [24, 1], [25, 1], [26, 16], [27, 18], [28, 19], [29, 21], [30, 15], [31, 15], [32, 15], [33, 25], [34, 27], [35, 28], [36, 22], [37, 23], [38, 33], [39, 33], [40, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "exit", "code": "\tpublic static void exit(View view, boolean reallyExit)\n\t{\n\t\t// Close dialog, view.close() call need a view...\n\t\tif(view == null)\n\t\t\tview = activeView;\n\n\t\t// Wait for pending I/O requests\n\t\tVFSManager.waitForRequests();\n\n\t\t// Send EditorExitRequested\n\t\tEditBus.send(new EditorExitRequested(view));\n\n\t\t// Even if reallyExit is false, we still exit properly\n\t\t// if background mode is off\n\t\treallyExit |= !background;\n\n\t\tPerspectiveManager.savePerspective(false);\n\n\t\t// Close all buffers\n\t\tif(!closeAllBuffers(view,reallyExit))\n\t\t\treturn;\n\n\t\t// If we are running in background mode and\n\t\t// reallyExit was not specified, then return here.\n\t\tif(!reallyExit)\n\t\t{\n\t\t\t// in this case, we can't directly call\n\t\t\t// view.close(); we have to call closeView()\n\t\t\t// for all open views\n\t\t\tview = viewsFirst;\n\t\t\twhile(view != null)\n\t\t\t{\n\t\t\t\tcloseView(view,false);\n\t\t\t\tview = view.next;\n\t\t\t}\n\n\t\t\t// Save settings in case user kills the backgrounded\n\t\t\t// jEdit process\n\t\t\tsaveSettings();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Save view properties here\n\t\t\tif(view != null)\n\t\t\t\tview.close();\n\n\t\t\t// Stop autosave timer\n\t\t\tAutosave.stop();\n\n\t\t\t// Stop server\n\t\t\tif(server != null)\n\t\t\t\tserver.stopServer();\n\n\t\t\t// Stop all plugins\n\t\t\tPluginJAR[] plugins = getPluginJARs();\n\t\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t\t{\n\t\t\t\tremovePluginJAR(plugins[i],true);\n\t\t\t}\n\n\t\t\t// Send EditorExiting\n\t\t\tEditBus.send(new EditorExiting(null));\n\n\t\t\t// Save settings\n\t\t\tsaveSettings();\n\n\t\t\t// Close activity log stream\n\t\t\tLog.closeStream();\n\n\t\t\t// Byebye...\n\t\t\tSystem.exit(0);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "IF", "IF", "LOOP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [0, 8], [0, 9], [0, 10], [0, 11], [3, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [8, 18], [10, 19], [3, 20], [12, 21], [1, 22], [1, 23], [1, 24], [1, 25], [13, 26], [15, 27], [1, 28], [16, 29], [1, 30], [17, 31], [1, 32], [22, 33], [25, 34], [14, 35], [15, 36], [27, 37], [16, 38], [29, 39], [31, 40], [34, 41], [13, 42], [13, 43], [17, 44], [17, 45], [42, 46], [45, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 0], [9, 0], [10, 0], [11, 0], [12, 3], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 8], [19, 10], [20, 3], [21, 12], [22, 1], [23, 1], [24, 1], [25, 1], [26, 13], [27, 15], [28, 1], [29, 16], [30, 1], [31, 17], [32, 1], [33, 22], [34, 25], [35, 14], [36, 15], [37, 27], [38, 16], [39, 29], [40, 31], [41, 34], [42, 13], [43, 13], [44, 17], [45, 17], [46, 42], [47, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "getEditServer", "code": "\tpublic static EditServer getEditServer()\n\t{\n\t\treturn server;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "updatePosition", "code": "\tstatic void updatePosition(String oldPath, Buffer buffer)\n\t{\n\t\tif((VFSManager.getVFSForPath(oldPath).getCapabilities()\n\t\t\t& VFS.CASE_INSENSITIVE_CAP) != 0)\n\t\t{\n\t\t\toldPath = oldPath.toLowerCase();\n\t\t}\n\n\t\tbufferHash.remove(oldPath);\n\n\t\tString path = buffer.getSymlinkPath();\n\t\tif((VFSManager.getVFSForPath(path).getCapabilities()\n\t\t\t& VFS.CASE_INSENSITIVE_CAP) != 0)\n\t\t{\n\t\t\tpath = path.toLowerCase();\n\t\t}\n\n\t\tbufferHash.put(path,buffer);\n\n\t\tif(sortBuffers)\n\t\t{\n\t\t\tremoveBufferFromList(buffer);\n\t\t\taddBufferToList(buffer);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [4, 10], [8, 11], [8, 12], [3, 13], [10, 14], [10, 15], [1, 16], [1, 17], [2, 18], [12, 19], [4, 20], [15, 21], [18, 22], [19, 23], [20, 24], [21, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 4], [11, 8], [12, 8], [13, 3], [14, 10], [15, 10], [16, 1], [17, 1], [18, 2], [19, 12], [20, 4], [21, 15], [22, 18], [23, 19], [24, 20], [25, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "addMode", "code": "\tpublic static void addMode(Mode mode)\n\t{\n\t\t//Log.log(Log.DEBUG,jEdit.class,\"Adding edit mode \"\n\t\t//\t+ mode.getName());\n\n\t\tmodes.addElement(mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadMode", "code": "\t/* package-private */ static void loadMode(Mode mode)\n\t{\n\t\tfinal String fileName = (String)mode.getProperty(\"file\");\n\n\t\tLog.log(Log.NOTICE,jEdit.class,\"Loading edit mode \" + fileName);\n\n\t\tfinal XmlParser parser = new XmlParser();\n\t\tXModeHandler xmh = new XModeHandler(mode.getName())\n\t\t{\n\t\t\tpublic void error(String what, Object subst)\n\t\t\t{\n\t\t\t\tint line = parser.getLineNumber();\n\t\t\t\tint column = parser.getColumnNumber();\n\n\t\t\t\tString msg;\n\n\t\t\t\tif(subst == null)\n\t\t\t\t\tmsg = jEdit.getProperty(\"xmode-error.\" + what);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmsg = jEdit.getProperty(\"xmode-error.\" + what,\n\t\t\t\t\t\tnew String[] { subst.toString() });\n\t\t\t\t\tif(subst instanceof Throwable)\n\t\t\t\t\t\tLog.log(Log.ERROR,this,subst);\n\t\t\t\t}\n\n\t\t\t\tObject[] args = { fileName, new Integer(line),\n\t\t\t\t\tnew Integer(column), msg };\n\t\t\t\tGUIUtilities.error(null,\"xmode-error\",args);\n\t\t\t}\n\n\t\t\tpublic TokenMarker getTokenMarker(String modeName)\n\t\t\t{\n\t\t\t\tMode mode = getMode(modeName);\n\t\t\t\tif(mode == null)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn mode.getTokenMarker();\n\t\t\t}\n\t\t};\n\n\t\tmode.setTokenMarker(xmh.getTokenMarker());\n\n\t\tReader grammar = null;\n\n\t\tparser.setHandler(xmh);\n\t\ttry\n\t\t{\n\t\t\tgrammar = new BufferedReader(new FileReader(fileName));\n\n\t\t\tparser.parse(null, null, grammar);\n\n\t\t\tmode.setProperties(xmh.getModeProperties());\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t\tLog.log(Log.ERROR, jEdit.class, e);\n\n\t\t\tif (e instanceof XmlException)\n\t\t\t{\n\t\t\t\tXmlException xe = (XmlException) e;\n\t\t\t\tint line = xe.getLine();\n\t\t\t\tString message = xe.getMessage();\n\n\t\t\t\tObject[] args = { fileName, new Integer(line), null,\n\t\t\t\t\tmessage };\n\t\t\t\tGUIUtilities.error(null,\"xmode-error\",args);\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(grammar != null)\n\t\t\t\t\tgrammar.close();\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "TRY", "CATCH", "CALL", "CALL", "CALL", "CATCH", "IF", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "FUNC_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "PARAM", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [0, 9], [0, 10], [0, 11], [7, 12], [7, 13], [8, 14], [1, 15], [1, 16], [1, 17], [2, 18], [10, 19], [3, 20], [4, 21], [11, 22], [13, 23], [14, 24], [8, 25], [15, 26], [16, 27], [16, 28], [17, 29], [20, 30], [20, 31], [20, 32], [22, 33], [5, 34], [12, 35], [13, 36], [23, 37], [14, 38], [14, 39], [14, 40], [14, 41], [29, 42], [30, 43], [30, 44], [30, 45], [31, 46], [31, 47], [31, 48], [31, 49], [31, 50], [31, 51], [31, 52], [34, 53], [14, 54], [43, 55], [43, 56], [43, 57], [31, 58], [47, 59], [54, 60], [54, 61], [39, 62], [40, 63], [55, 64], [56, 65], [57, 66], [44, 67], [58, 68], [58, 69], [47, 70], [47, 71], [59, 72], [49, 73], [50, 74], [38, 75], [38, 76], [46, 77], [46, 78], [70, 79], [47, 80], [71, 81], [70, 82], [80, 83], [81, 84], [83, 85], [84, 86], [85, 87], [83, 88], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 0], [10, 0], [11, 0], [12, 7], [13, 7], [14, 8], [15, 1], [16, 1], [17, 1], [18, 2], [19, 10], [20, 3], [21, 4], [22, 11], [23, 13], [24, 14], [25, 8], [26, 15], [27, 16], [28, 16], [29, 17], [30, 20], [31, 20], [32, 20], [33, 22], [34, 5], [35, 12], [36, 13], [37, 23], [38, 14], [39, 14], [40, 14], [41, 14], [42, 29], [43, 30], [44, 30], [45, 30], [46, 31], [47, 31], [48, 31], [49, 31], [50, 31], [51, 31], [52, 31], [53, 34], [54, 14], [55, 43], [56, 43], [57, 43], [58, 31], [59, 47], [60, 54], [61, 54], [62, 39], [63, 40], [64, 55], [65, 56], [66, 57], [67, 44], [68, 58], [69, 58], [70, 47], [71, 47], [72, 59], [73, 49], [74, 50], [75, 38], [76, 38], [77, 46], [78, 46], [79, 70], [80, 47], [81, 71], [82, 70], [83, 80], [84, 81], [85, 83], [86, 84], [87, 85], [88, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "addPluginProps", "code": "\tstatic void addPluginProps(Properties map)\n\t{\n\t\tpropMgr.addPluginProps(map);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removePluginProps", "code": "\tstatic void removePluginProps(Properties map)\n\t{\n\t\tpropMgr.removePluginProps(map);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "pluginError", "code": "\tstatic void pluginError(String path, String messageProp,\n\t\tObject[] args)\n\t{\n\t\tsynchronized(pluginErrorLock)\n\t\t{\n\t\t\tif(pluginErrors == null)\n\t\t\t\tpluginErrors = new Vector();\n\n\t\t\tErrorListDialog.ErrorEntry newEntry =\n\t\t\t\tnew ErrorListDialog.ErrorEntry(\n\t\t\t\tpath,messageProp,args);\n\n\t\t\tfor(int i = 0; i < pluginErrors.size(); i++)\n\t\t\t{\n\t\t\t\tif(pluginErrors.get(i).equals(newEntry))\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\tpluginErrors.addElement(newEntry);\n\n\t\t\tif(startupDone)\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tshowPluginErrorDialog();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "IF", "LOOP", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [7, 10], [5, 11], [9, 12], [6, 13], [7, 14], [10, 15], [4, 16], [11, 17], [11, 18], [5, 19], [14, 20], [16, 21], [18, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 7], [11, 5], [12, 9], [13, 6], [14, 7], [15, 10], [16, 4], [17, 11], [18, 11], [19, 5], [20, 14], [21, 16], [22, 18], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "setActiveView", "code": "\tstatic void setActiveView(View view)\n\t{\n\t\tjEdit.activeView = view;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "usage", "code": "\tprivate static void usage()\n\t{\n\t\tSystem.out.println(\"Usage: jedit [<options>] [<files>]\");\n\n\t\tSystem.out.println(\"\t<file> +marker:<marker>: Positions caret\"\n\t\t\t+ \" at marker <marker>\");\n\t\tSystem.out.println(\"\t<file> +line:<line>: Positions caret\"\n\t\t\t+ \" at line number <line>\");\n\t\tSystem.out.println(\"\t--: End of options\");\n\t\tSystem.out.println(\"\t-background: Run in background mode\");\n\t\tSystem.out.println(\"\t-nobackground: Disable background mode (default)\");\n\t\tSystem.out.println(\"\t-gui: Only if running in background mode; open initial view (default)\");\n\t\tSystem.out.println(\"\t-nogui: Only if running in background mode; don't open initial view\");\n\t\tSystem.out.println(\"\t-log=<level>: Log messages with level equal to or higher than this to\");\n\t\tSystem.out.println(\"\t standard error. <level> must be between 1 and 9. Default is 7.\");\n\t\tSystem.out.println(\"\t-newplainview: Client instance opens a new plain view\");\n\t\tSystem.out.println(\"\t-newview: Client instance opens a new view (default)\");\n\t\tSystem.out.println(\"\t-plugins: Load plugins (default)\");\n\t\tSystem.out.println(\"\t-noplugins: Don't load any plugins\");\n\t\tSystem.out.println(\"\t-restore: Restore previously open files (default)\");\n\t\tSystem.out.println(\"\t-norestore: Don't restore previously open files\");\n\t\tSystem.out.println(\"\t-reuseview: Client instance reuses existing view\");\n\t\tSystem.out.println(\"\t-quit: Quit a running instance\");\n\t\tSystem.out.println(\"\t-run=<script>: Run the specified BeanShell script\");\n\t\tSystem.out.println(\"\t-server: Read/write server info from/to $HOME/.jedit/server (default)\");\n\t\tSystem.out.println(\"\t-server=<name>: Read/write server info from/to $HOME/.jedit/<name>\");\n\t\tSystem.out.println(\"\t-noserver: Don't start edit server\");\n\t\tSystem.out.println(\"\t-settings=<path>: Load user-specific settings from <path>\");\n\t\tSystem.out.println(\"\t-nosettings: Don't load user-specific settings\");\n\t\tSystem.out.println(\"\t-startupscripts: Run startup scripts (default)\");\n\t\tSystem.out.println(\"\t-nostartupscripts: Don't run startup scripts\");\n\t\tSystem.out.println(\"\t-usage: Print this message and exit\");\n\t\tSystem.out.println(\"\t-version: Print jEdit version and exit\");\n\t\tSystem.out.println(\"\t-wait: Wait until the user closes the specified buffer in the server\");\n\t\tSystem.out.println(\"\t instance. Does nothing if passed to the initial jEdit instance.\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Report bugs to Slava Pestov <slava@jedit.org>.\");", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [1, 33], [3, 34], [4, 35], [5, 36], [6, 37], [7, 38], [8, 39], [9, 40], [10, 41], [11, 42], [12, 43], [13, 44], [14, 45], [15, 46], [16, 47], [17, 48], [18, 49], [19, 50], [20, 51], [21, 52], [22, 53], [23, 54], [24, 55], [25, 56], [26, 57], [27, 58], [28, 59], [29, 60], [30, 61], [31, 62], [32, 63], [61, 64], [61, 65], [62, 66], [62, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 1], [34, 3], [35, 4], [36, 5], [37, 6], [38, 7], [39, 8], [40, 9], [41, 10], [42, 11], [43, 12], [44, 13], [45, 14], [46, 15], [47, 16], [48, 17], [49, 18], [50, 19], [51, 20], [52, 21], [53, 22], [54, 23], [55, 24], [56, 25], [57, 26], [58, 27], [59, 28], [60, 29], [61, 30], [62, 31], [63, 32], [64, 61], [65, 61], [66, 62], [67, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "version", "code": "\tprivate static void version()\n\t{\n\t\tSystem.out.println(\"jEdit \" + getVersion());", "ast_nodes": ["FUNC_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "makeServerScript", "code": "\tprivate static String makeServerScript(boolean wait,\n\t\tboolean restore, boolean newView,\n\t\tboolean newPlainView, String[] args,\n\t\tString scriptFile)\n\t{\n\t\tStringBuffer script = new StringBuffer();\n\n\t\tString userDir = System.getProperty(\"user.dir\");\n\n\t\tscript.append(\"parent = \\\"\");\n\t\tscript.append(MiscUtilities.charsToEscapes(userDir));\n\t\tscript.append(\"\\\";\\n\");\n\n\t\tscript.append(\"args = new String[\");\n\t\tscript.append(args.length);\n\t\tscript.append(\"];\\n\");\n\n\t\tfor(int i = 0; i < args.length; i++)\n\t\t{\n\t\t\tscript.append(\"args[\");\n\t\t\tscript.append(i);\n\t\t\tscript.append(\"] = \");\n\n\t\t\tif(args[i] == null)\n\t\t\t\tscript.append(\"null\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tscript.append('\"');\n\t\t\t\tscript.append(MiscUtilities.charsToEscapes(args[i]));\n\t\t\t\tscript.append('\"');\n\t\t\t}\n\n\t\t\tscript.append(\";\\n\");\n\t\t}\n\n\t\tscript.append(\"view = jEdit.getLastView();\\n\");\n\t\tscript.append(\"buffer = EditServer.handleClient(\"\n\t\t\t+ restore + \",\" + newView + \",\" + newPlainView +\n\t\t\t\",parent,args);\\n\");\n\t\tscript.append(\"if(buffer != null && \" + wait + \") {\\n\");\n\t\tscript.append(\"\\tbuffer.setWaitSocket(socket);\\n\");\n\t\tscript.append(\"\\tdoNotCloseSocket = true;\\n\");\n\t\tscript.append(\"}\\n\");\n\t\tscript.append(\"if(view != jEdit.getLastView() && \" + wait + \") {\\n\");\n\t\tscript.append(\"\\tjEdit.getLastView().setWaitSocket(socket);\\n\");\n\t\tscript.append(\"\\tdoNotCloseSocket = true;\\n\");\n\t\tscript.append(\"}\\n\");\n\t\tscript.append(\"if(doNotCloseSocket == void)\\n\");\n\t\tscript.append(\"\\tsocket.close();\\n\");\n\n\t\tif(scriptFile != null)\n\t\t{\n\t\t\tscriptFile = MiscUtilities.constructPath(userDir,scriptFile);\n\t\t\tscript.append(\"BeanShell.runScript(view,\\\"\"\n\t\t\t\t+ MiscUtilities.charsToEscapes(scriptFile)\n\t\t\t\t+ \"\\\",null,this.namespace);\\n\");\n\t\t}\n\n\t\treturn script.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [3, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [13, 33], [14, 34], [15, 35], [16, 36], [17, 37], [18, 38], [19, 39], [20, 40], [21, 41], [22, 42], [23, 43], [24, 44], [25, 45], [3, 46], [27, 47], [29, 48], [30, 49], [31, 50], [32, 51], [4, 52], [5, 53], [2, 54], [2, 55], [39, 56], [39, 57], [43, 58], [43, 59], [44, 60], [44, 61], [3, 62], [46, 63], [3, 64], [3, 65], [3, 66], [3, 67], [52, 68], [54, 69], [55, 70], [57, 71], [59, 72], [61, 73], [62, 74], [46, 75], [63, 76], [64, 77], [66, 78], [69, 79], [69, 80], [73, 81], [73, 82], [46, 83], [46, 84], [46, 85], [75, 86], [80, 87], [80, 88], [82, 89], [83, 90], [84, 91], [85, 92], [89, 93], [89, 94], [94, 95], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 3], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 13], [34, 14], [35, 15], [36, 16], [37, 17], [38, 18], [39, 19], [40, 20], [41, 21], [42, 22], [43, 23], [44, 24], [45, 25], [46, 3], [47, 27], [48, 29], [49, 30], [50, 31], [51, 32], [52, 4], [53, 5], [54, 2], [55, 2], [56, 39], [57, 39], [58, 43], [59, 43], [60, 44], [61, 44], [62, 3], [63, 46], [64, 3], [65, 3], [66, 3], [67, 3], [68, 52], [69, 54], [70, 55], [71, 57], [72, 59], [73, 61], [74, 62], [75, 46], [76, 63], [77, 64], [78, 66], [79, 69], [80, 69], [81, 73], [82, 73], [83, 46], [84, 46], [85, 46], [86, 75], [87, 80], [88, 80], [89, 82], [90, 83], [91, 84], [92, 85], [93, 89], [94, 89], [95, 94], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95]]}, {"function_name": "initMisc", "code": "\tprivate static void initMisc()\n\t{\n\t\tjars = new Vector();\n\t\tactionContext = new ActionContext()\n\t\t{\n\t\t\tpublic void invokeAction(EventObject evt,\n\t\t\t\tEditAction action)\n\t\t\t{\n\t\t\t\tView view = GUIUtilities.getView(\n\t\t\t\t\t(Component)evt.getSource());\n\n\t\t\t\tboolean actionBarVisible;\n\t\t\t\tif(view.getActionBar() == null\n\t\t\t\t\t|| !view.getActionBar().isShowing())\n\t\t\t\t\tactionBarVisible = false;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tactionBarVisible = view.getActionBar()\n\t\t\t\t\t\t.isVisible();\n\t\t\t\t}\n\n\t\t\t\tview.getInputHandler().invokeAction(action);\n\n\t\t\t\tif(actionBarVisible)\n\t\t\t\t{\n\t\t\t\t\t// XXX: action bar might not be 'temp'\n\t\t\t\t\tActionBar actionBar = view\n\t\t\t\t\t\t.getActionBar();\n\t\t\t\t\tif(actionBar != null)\n\t\t\t\t\t\tview.removeToolBar(actionBar);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tbufferHash = new HashMap();\n\n\t\tinputHandler = new DefaultInputHandler(null);\n\n\t\t// Add our protocols to java.net.URL's list\n\t\tSystem.getProperties().put(\"java.protocol.handler.pkgs\",\n\t\t\t\"org.gjt.sp.jedit.proto|\" +\n\t\t\tSystem.getProperty(\"java.protocol.handler.pkgs\",\"\"));\n\n\t\t// Set the User-Agent string used by the java.net HTTP handler\n\t\tString userAgent = \"jEdit/\" + getVersion()\n\t\t\t+ \" (Java \" + System.getProperty(\"java.version\")\n\t\t\t+ \". \" + System.getProperty(\"java.vendor\")\n\t\t\t+ \"; \" + System.getProperty(\"os.arch\") + \")\";\n\t\tSystem.getProperties().put(\"http.agent\",userAgent);\n\n\t\t/* Determine installation directory.\n\t\t * If the jedit.home property is set, use that.\n\t\t * Then, look for jedit.jar in the classpath.\n\t\t * If that fails, assume this is the web start version. */\n\t\tjEditHome = System.getProperty(\"jedit.home\");\n\t\tif(jEditHome == null)\n\t\t{\n\t\t\tString classpath = System\n\t\t\t\t.getProperty(\"java.class.path\");\n\t\t\tint index = classpath.toLowerCase()\n\t\t\t\t.indexOf(\"jedit.jar\");\n\t\t\tint start = classpath.lastIndexOf(File\n\t\t\t\t.pathSeparator,index) + 1;\n\t\t\t// if started with java -jar jedit.jar\n\t\t\t if(classpath.equalsIgnoreCase(\"jedit.jar\"))\n\t\t\t{\n\t\t\t\tjEditHome = System.getProperty(\"user.dir\");\n\t\t\t}\n\t\t\telse if(index > start)\n\t\t\t{\n\t\t\t\tjEditHome = classpath.substring(start,\n\t\t\t\t\tindex - 1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// check if web start\n\t\t\t\t/* if(jEdit.class.getResource(\"/modes/catalog\") != null)\n\t\t\t\t{\n\t\t\t\t\t// modes bundled in; hence web start\n\t\t\t\t\tjEditHome = null;\n\t\t\t\t}\n\t\t\t\telse */\n\t\t\t\t{\n\t\t\t\t\t// use user.dir as last resort\n\t\t\t\t\tjEditHome = System.getProperty(\"user.dir\");\n\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"jedit.jar not in class path!\");\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"Assuming jEdit is installed in \"\n\t\t\t\t\t\t+ jEditHome + \".\");\n\t\t\t\t\tLog.log(Log.WARNING,jEdit.class,\"Override with jedit.home \"\n\t\t\t\t\t\t+ \"system property.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tjEditHome = MiscUtilities.resolveSymlinks(jEditHome);\n\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"jEdit home directory is \" + jEditHome);\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tjarCacheDirectory = MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"jars-cache\");\n\t\t\tnew File(jarCacheDirectory).mkdirs();\n\t\t}\n\n\t\t//if(jEditHome == null)\n\t\t//\tLog.log(Log.DEBUG,jEdit.class,\"Web start mode\");\n\n\t\t// Add an EditBus component that will reload edit modes and\n\t\t// macros if they are changed from within the editor\n\t\tEditBus.addToBus(new SettingsReloader());\n\n\t\t// Perhaps if Xerces wasn't slightly brain-damaged, we would\n\t\t// not need this\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tThread.currentThread().setContextClassLoader(", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [4, 17], [5, 18], [6, 19], [7, 20], [8, 21], [2, 22], [2, 23], [2, 24], [2, 25], [9, 26], [10, 27], [11, 28], [3, 29], [12, 30], [13, 31], [14, 32], [15, 33], [16, 34], [17, 35], [1, 36], [1, 37], [20, 38], [22, 39], [22, 40], [27, 41], [28, 42], [29, 43], [29, 44], [30, 45], [30, 46], [31, 47], [33, 48], [36, 49], [37, 50], [39, 51], [40, 52], [23, 53], [24, 54], [25, 55], [44, 56], [44, 57], [45, 58], [45, 59], [48, 60], [48, 61], [48, 62], [48, 63], [48, 64], [48, 65], [35, 66], [50, 67], [22, 68], [53, 69], [53, 70], [54, 71], [55, 72], [56, 73], [57, 74], [57, 75], [58, 76], [58, 77], [48, 78], [61, 79], [66, 80], [39, 81], [68, 82], [71, 83], [75, 84], [75, 85], [60, 86], [60, 87], [78, 88], [61, 89], [79, 90], [79, 91], [63, 92], [80, 93], [39, 94], [39, 95], [39, 96], [39, 97], [81, 98], [82, 99], [84, 100], [85, 101], [85, 102], [86, 103], [61, 104], [89, 105], [90, 106], [91, 107], [91, 108], [94, 109], [95, 110], [96, 111], [97, 112], [98, 113], [102, 114], [102, 115], [86, 116], [103, 117], [87, 118], [104, 119], [92, 120], [109, 121], [109, 122], [110, 123], [110, 124], [112, 125], [113, 126], [114, 127], [115, 128], [115, 129], [119, 130], [124, 131], [129, 132], [129, 133], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 4], [18, 5], [19, 6], [20, 7], [21, 8], [22, 2], [23, 2], [24, 2], [25, 2], [26, 9], [27, 10], [28, 11], [29, 3], [30, 12], [31, 13], [32, 14], [33, 15], [34, 16], [35, 17], [36, 1], [37, 1], [38, 20], [39, 22], [40, 22], [41, 27], [42, 28], [43, 29], [44, 29], [45, 30], [46, 30], [47, 31], [48, 33], [49, 36], [50, 37], [51, 39], [52, 40], [53, 23], [54, 24], [55, 25], [56, 44], [57, 44], [58, 45], [59, 45], [60, 48], [61, 48], [62, 48], [63, 48], [64, 48], [65, 48], [66, 35], [67, 50], [68, 22], [69, 53], [70, 53], [71, 54], [72, 55], [73, 56], [74, 57], [75, 57], [76, 58], [77, 58], [78, 48], [79, 61], [80, 66], [81, 39], [82, 68], [83, 71], [84, 75], [85, 75], [86, 60], [87, 60], [88, 78], [89, 61], [90, 79], [91, 79], [92, 63], [93, 80], [94, 39], [95, 39], [96, 39], [97, 39], [98, 81], [99, 82], [100, 84], [101, 85], [102, 85], [103, 86], [104, 61], [105, 89], [106, 90], [107, 91], [108, 91], [109, 94], [110, 95], [111, 96], [112, 97], [113, 98], [114, 102], [115, 102], [116, 86], [117, 103], [118, 87], [119, 104], [120, 92], [121, 109], [122, 109], [123, 110], [124, 110], [125, 112], [126, 113], [127, 114], [128, 115], [129, 115], [130, 119], [131, 124], [132, 129], [133, 129], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133]]}, {"function_name": "initSystemProperties", "code": "\tprivate static void initSystemProperties()\n\t{\n\t\tpropMgr = new PropertyManager();\n\n\t\ttry\n\t\t{\n\t\t\tpropMgr.loadSystemProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit.props\"));\n\t\t\tpropMgr.loadSystemProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit_gui.props\"));\n\t\t\tpropMgr.loadSystemProps(jEdit.class.getResourceAsStream(\n\t\t\t\t\"/org/gjt/sp/jedit/jedit_keys.props\"));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,\n\t\t\t\t\"Error while loading system properties!\");\n\t\t\tLog.log(Log.ERROR,jEdit.class,\n\t\t\t\t\"One of the following property files could not be loaded:\\n\"\n\t\t\t\t+ \"- jedit.props\\n\"\n\t\t\t\t+ \"- jedit_gui.props\\n\"\n\t\t\t\t+ \"- jedit_keys.props\\n\"\n\t\t\t\t+ \"jedit.jar is probably corrupt.\");\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t\tSystem.exit(1);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [1, 6], [3, 7], [2, 8], [2, 9], [2, 10], [2, 11], [4, 12], [5, 13], [6, 14], [8, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [16, 21], [16, 22], [22, 23], [22, 24], [24, 25], [24, 26], [26, 27], [26, 28], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 1], [7, 3], [8, 2], [9, 2], [10, 2], [11, 2], [12, 4], [13, 5], [14, 6], [15, 8], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 16], [22, 16], [23, 22], [24, 22], [25, 24], [26, 24], [27, 26], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "initSiteProperties", "code": "\tprivate static void initSiteProperties()\n\t{\n\t\t// site properties are loaded as default properties, overwriting\n\t\t// jEdit's system properties\n\n\t\tString siteSettingsDirectory = MiscUtilities.constructPath(\n\t\t\tjEditHome, \"properties\");\n\t\tFile siteSettings = new File(siteSettingsDirectory);\n\n\t\tif (!(siteSettings.exists() && siteSettings.isDirectory()))\n\t\t\treturn;\n\n\t\tString[] snippets = siteSettings.list();\n\t\tif (snippets == null)\n\t\t\treturn;\n\n\t\tMiscUtilities.quicksort(snippets,\n\t\t\tnew MiscUtilities.StringICaseCompare());\n\n\t\tfor (int i = 0; i < snippets.length; ++i)\n\t\t{\n\t\t\tString snippet = snippets[i];\n\t\t\tif(!snippet.toLowerCase().endsWith(\".props\"))\n\t\t\t\tcontinue;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString path = MiscUtilities.constructPath(\n\t\t\t\t\tsiteSettingsDirectory,snippet);\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,\n\t\t\t\t\t\"Loading site snippet: \" + path);\n\n\t\t\t\tpropMgr.loadSiteProps(new FileInputStream(new File(path)));\n\t\t\t}\n\t\t\tcatch(FileNotFoundException fnf)\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG,jEdit.class,fnf);\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,\"Cannot load site snippet \"\n\t\t\t\t\t+ snippet);\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "TRY", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "CATCH", "VAR_DECL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [2, 10], [4, 11], [4, 12], [1, 13], [1, 14], [1, 15], [8, 16], [10, 17], [3, 18], [12, 19], [12, 20], [5, 21], [6, 22], [13, 23], [13, 24], [13, 25], [14, 26], [14, 27], [1, 28], [22, 29], [13, 30], [13, 31], [27, 32], [23, 33], [23, 34], [24, 35], [30, 36], [31, 37], [25, 38], [32, 39], [34, 40], [36, 41], [37, 42], [40, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 2], [11, 4], [12, 4], [13, 1], [14, 1], [15, 1], [16, 8], [17, 10], [18, 3], [19, 12], [20, 12], [21, 5], [22, 6], [23, 13], [24, 13], [25, 13], [26, 14], [27, 14], [28, 1], [29, 22], [30, 13], [31, 13], [32, 27], [33, 23], [34, 23], [35, 24], [36, 30], [37, 31], [38, 25], [39, 32], [40, 34], [41, 36], [42, 37], [43, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "initResources", "code": "\tprivate static void initResources()\n\t{\n\t\tbuiltInActionSet = new ActionSet(null,null,null,\n\t\t\tjEdit.class.getResource(\"actions.xml\"));\n\t\tbuiltInActionSet.setLabel(getProperty(\"action-set.jEdit\"));\n\t\tbuiltInActionSet.load();\n\n\t\tactionContext.addActionSet(builtInActionSet);\n\n\t\tDockableWindowManager.loadDockableWindows(null,\n\t\t\tjEdit.class.getResource(\"dockables.xml\"),\n\t\t\tnull);\n\n\t\tServiceManager.loadServices(null,\n\t\t\tjEdit.class.getResource(\"services.xml\"),\n\t\t\tnull);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [2, 11], [2, 12], [5, 13], [6, 14], [8, 15], [11, 16], [13, 17], [14, 18], [14, 19], [14, 20], [14, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 2], [12, 2], [13, 5], [14, 6], [15, 8], [16, 11], [17, 13], [18, 14], [19, 14], [20, 14], [21, 14], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "initPlugins", "code": "\tprivate static void initPlugins()\n\t{\n\t\tif(jEditHome != null)\n\t\t{\n\t\t\taddPluginJARsFromDirectory(MiscUtilities.constructPath(\n\t\t\t\tjEditHome,\"jars\"));\n\t\t}\n\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile jarsDirectory = new File(settingsDirectory,\"jars\");\n\t\t\tif(!jarsDirectory.exists())\n\t\t\t\tjarsDirectory.mkdir();\n\t\t\taddPluginJARsFromDirectory(jarsDirectory.getPath());\n\t\t}\n\n\t\tPluginJAR[] jars = getPluginJARs();\n\t\tfor(int i = 0; i < jars.length; i++)\n\t\t{\n\t\t\tjars[i].checkDependencies();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [2, 8], [3, 9], [3, 10], [6, 11], [7, 12], [1, 13], [3, 14], [9, 15], [4, 16], [1, 17], [14, 18], [9, 19], [10, 20], [16, 21], [20, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 2], [9, 3], [10, 3], [11, 6], [12, 7], [13, 1], [14, 3], [15, 9], [16, 4], [17, 1], [18, 14], [19, 9], [20, 10], [21, 16], [22, 20], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "initUserProperties", "code": "\tprivate static void initUserProperties()\n\t{\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tFile file = new File(MiscUtilities.constructPath(\n\t\t\t\tsettingsDirectory,\"properties\"));\n\t\t\tpropsModTime = file.lastModified();\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpropMgr.loadUserProps(\n\t\t\t\t\tnew FileInputStream(file));\n\t\t\t}\n\t\t\tcatch(FileNotFoundException fnf)\n\t\t\t{\n\t\t\t\t//Log.log(Log.DEBUG,jEdit.class,fnf);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CATCH", "CATCH", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [3, 7], [1, 8], [3, 9], [8, 10], [4, 11], [6, 12], [9, 13], [11, 14], [14, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 3], [8, 1], [9, 3], [10, 8], [11, 4], [12, 6], [13, 9], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "fontStyleToString", "code": "\tprivate static String fontStyleToString(int style)\n\t{\n\t\tif(style == 0)\n\t\t\treturn \"PLAIN\";\n\t\telse if(style == Font.BOLD)\n\t\t\treturn \"BOLD\";\n\t\telse if(style == Font.ITALIC)\n\t\t\treturn \"ITALIC\";\n\t\telse if(style == (Font.BOLD | Font.ITALIC))\n\t\t\treturn \"BOLDITALIC\";\n\t\telse\n\t\t\tthrow new RuntimeException(\"Invalid style: \" + style);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [3, 8], [4, 9], [5, 10], [6, 11], [6, 12], [6, 13], [7, 14], [11, 15], [11, 16], [11, 17], [12, 18], [15, 19], [16, 20], [17, 21], [19, 22], [22, 23], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 3], [9, 4], [10, 5], [11, 6], [12, 6], [13, 6], [14, 7], [15, 11], [16, 11], [17, 11], [18, 12], [19, 15], [20, 16], [21, 17], [22, 19], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "fontToString", "code": "\tprivate static String fontToString(Font font)\n\t{\n\t\treturn font.getFamily()\n\t\t\t+ \"-\"\n\t\t\t+ fontStyleToString(font.getStyle())\n\t\t\t+ \"-\"\n\t\t\t+ font.getSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [8, 10], [9, 11], [9, 12], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [10, 8], [11, 9], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "initPLAF", "code": "\tprivate static void initPLAF()\n\t{\n\t\tFont primaryFont = jEdit.getFontProperty(\n\t\t\t\"metal.primary.font\");\n\t\tif(primaryFont != null)\n\t\t{\n\t\t\tString primaryFontString =\n\t\t\t\tfontToString(primaryFont);\n\n\t\t\tSystem.getProperties().put(\n\t\t\t\t\"swing.plaf.metal.controlFont\",\n\t\t\t\tprimaryFontString);\n\t\t\tSystem.getProperties().put(\n\t\t\t\t\"swing.plaf.metal.menuFont\",\n\t\t\t\tprimaryFontString);\n\t\t}\n\n\t\tFont secondaryFont = jEdit.getFontProperty(\n\t\t\t\"metal.secondary.font\");\n\t\tif(secondaryFont != null)\n\t\t{\n\t\t\tString secondaryFontString =\n\t\t\t\tfontToString(secondaryFont);\n\n\t\t\tSystem.getProperties().put(\n\t\t\t\t\"swing.plaf.metal.systemFont\",\n\t\t\t\tsecondaryFontString);\n\t\t\tSystem.getProperties().put(\n\t\t\t\t\"swing.plaf.metal.userFont\",\n\t\t\t\tsecondaryFontString);\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tString lf = getProperty(\"lookAndFeel\");\n\t\t\tif(lf != null && lf.length() != 0)\n\t\t\t\tUIManager.setLookAndFeel(lf);\n\t\t\telse if(OperatingSystem.isMacOS())\n\t\t\t{\n\t\t\t\tUIManager.setLookAndFeel(UIManager\n\t\t\t\t\t.getSystemLookAndFeelClassName());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tUIManager.setLookAndFeel(UIManager\n\t\t\t\t\t.getCrossPlatformLookAndFeelClassName());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t}\n\n\t\tUIDefaults defaults = UIManager.getDefaults();\n\n\t\t// give all Swing components our colors\n\t\tif(jEdit.getBooleanProperty(\"textColors\"))\n\t\t{\n\t\t\tColor background = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.bgColor\"));\n\t\t\tColor foreground = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.fgColor\"));\n\t\t\tColor caretColor = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.caretColor\"));\n\t\t\tColor selectionColor = new javax.swing.plaf.ColorUIResource(\n\t\t\t\tjEdit.getColorProperty(\"view.selectionColor\"));\n\n\t\t\tString[] prefixes = { \"TextField\", \"TextArea\", \"List\", \"Table\" };\n\t\t\tfor(int i = 0; i < prefixes.length; i++)\n\t\t\t{\n\t\t\t\tString prefix = prefixes[i];\n\t\t\t\tdefaults.put(prefix + \".disabledBackground\",background);\n\t\t\t\tdefaults.put(prefix + \".background\",background);\n\t\t\t\tdefaults.put(prefix + \".disabledForeground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".foreground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".caretForeground\",caretColor);\n\t\t\t\tdefaults.put(prefix + \".selectionForeground\",foreground);\n\t\t\t\tdefaults.put(prefix + \".selectionBackground\",selectionColor);\n\t\t\t\t//defaults.put(prefix + \".inactiveForeground\",foreground);\n\t\t\t}\n\n\t\t\tdefaults.put(\"Tree.background\",background);\n\t\t\tdefaults.put(\"Tree.foreground\",foreground);\n\t\t\tdefaults.put(\"Tree.textBackground\",background);\n\t\t\tdefaults.put(\"Tree.textForeground\",foreground);\n\t\t\tdefaults.put(\"Tree.selectionForeground\",foreground);\n\t\t\tdefaults.put(\"Tree.selectionBackground\",selectionColor);\n\t\t}\n\n\t\tdefaults.remove(\"SplitPane.border\");\n\t\tdefaults.remove(\"SplitPaneDivider.border\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "TRY", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [3, 12], [3, 13], [4, 14], [6, 15], [8, 16], [9, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [10, 24], [2, 25], [12, 26], [12, 27], [4, 28], [14, 29], [5, 30], [6, 31], [15, 32], [7, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [18, 40], [11, 41], [26, 42], [12, 43], [27, 44], [27, 45], [13, 46], [4, 47], [4, 48], [30, 49], [6, 50], [6, 51], [33, 52], [34, 53], [35, 54], [36, 55], [37, 56], [38, 57], [39, 58], [18, 59], [20, 60], [21, 61], [22, 62], [23, 63], [44, 64], [44, 65], [45, 66], [46, 67], [47, 68], [48, 69], [28, 70], [50, 71], [51, 72], [31, 73], [18, 74], [18, 75], [18, 76], [18, 77], [18, 78], [18, 79], [18, 80], [18, 81], [19, 82], [19, 83], [19, 84], [19, 85], [60, 86], [61, 87], [62, 88], [63, 89], [26, 90], [26, 91], [68, 92], [69, 93], [71, 94], [72, 95], [74, 96], [75, 97], [76, 98], [77, 99], [78, 100], [79, 101], [80, 102], [86, 103], [87, 104], [88, 105], [89, 106], [90, 107], [91, 108], [96, 109], [97, 110], [98, 111], [99, 112], [100, 113], [101, 114], [102, 115], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 3], [13, 3], [14, 4], [15, 6], [16, 8], [17, 9], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 10], [25, 2], [26, 12], [27, 12], [28, 4], [29, 14], [30, 5], [31, 6], [32, 15], [33, 7], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 18], [41, 11], [42, 26], [43, 12], [44, 27], [45, 27], [46, 13], [47, 4], [48, 4], [49, 30], [50, 6], [51, 6], [52, 33], [53, 34], [54, 35], [55, 36], [56, 37], [57, 38], [58, 39], [59, 18], [60, 20], [61, 21], [62, 22], [63, 23], [64, 44], [65, 44], [66, 45], [67, 46], [68, 47], [69, 48], [70, 28], [71, 50], [72, 51], [73, 31], [74, 18], [75, 18], [76, 18], [77, 18], [78, 18], [79, 18], [80, 18], [81, 18], [82, 19], [83, 19], [84, 19], [85, 19], [86, 60], [87, 61], [88, 62], [89, 63], [90, 26], [91, 26], [92, 68], [93, 69], [94, 71], [95, 72], [96, 74], [97, 75], [98, 76], [99, 77], [100, 78], [101, 79], [102, 80], [103, 86], [104, 87], [105, 88], [106, 89], [107, 90], [108, 91], [109, 96], [110, 97], [111, 98], [112, 99], [113, 100], [114, 101], [115, 102], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115]]}, {"function_name": "runStartupScripts", "code": "\tprivate static void runStartupScripts(File directory)\n\t{\n\t\tif (!directory.isDirectory())\n\t\t\treturn;\n\n\t\tFile[] snippets = directory.listFiles();\n\t\tif (snippets == null)\n\t\t\treturn;\n\n\t\tMiscUtilities.quicksort(snippets,\n\t\t\tnew MiscUtilities.StringICaseCompare());\n\n\t\tfor(int i = 0; i < snippets.length; ++i)\n\t\t{\n\t\t\tFile snippet = snippets[i];\n\n\t\t\tMacros.Handler handler = Macros.getHandlerForPathName(\n\t\t\t\tsnippet.getPath());\n\t\t\tif(handler == null)\n\t\t\t\tcontinue;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMacros.Macro newMacro = handler.createMacro(\n\t\t\t\t\tsnippet.getName(),\n\t\t\t\t\tsnippet.getPath());\n\t\t\t\thandler.runMacro(null,newMacro,false);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,e);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "VAR_DECL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [2, 9], [4, 10], [4, 11], [1, 12], [1, 13], [1, 14], [1, 15], [7, 16], [9, 17], [3, 18], [12, 19], [12, 20], [13, 21], [13, 22], [1, 23], [12, 24], [22, 25], [14, 26], [19, 27], [24, 28], [24, 29], [20, 30], [26, 31], [30, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 2], [10, 4], [11, 4], [12, 1], [13, 1], [14, 1], [15, 1], [16, 7], [17, 9], [18, 3], [19, 12], [20, 12], [21, 13], [22, 13], [23, 1], [24, 12], [25, 22], [26, 14], [27, 19], [28, 24], [29, 24], [30, 20], [31, 26], [32, 30], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "initProxy", "code": "\tprivate static void initProxy()\n\t{\n\t\tboolean socksEnabled = jEdit.getBooleanProperty(\"socks.enabled\");\n\t\tif(!socksEnabled)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,jEdit.class,\"SOCKS proxy disabled\");\n                        System.getProperties().remove(\"socksProxyHost\");\n                        System.getProperties().remove(\"socksProxyPort\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString socksHost = jEdit.getProperty(\"firewall.socks.host\");\n\t\t\tif( socksHost != null )\n\t\t\t{\n\t\t\t\tSystem.setProperty(\"socksProxyHost\", socksHost);\n\t\t\t\tLog.log(Log.DEBUG, jEdit.class,\n\t\t\t\t\t\"SOCKS proxy enabled: \" + socksHost);\n                        }\n\n\t\t\tString socksPort =  jEdit.getProperty(\"firewall.socks.port\");\n\t\t\tif(socksPort != null)\n\t\t\t\tSystem.setProperty(\"socksProxyPort\", socksPort);\n\t\t}\n\n\t\tboolean httpEnabled = jEdit.getBooleanProperty(\"firewall.enabled\");\n\t\tif (!httpEnabled)\n\t\t{\n\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy disabled\");\n\t\t\tSystem.getProperties().remove(\"proxySet\");\n\t\t\tSystem.getProperties().remove(\"proxyHost\");\n\t\t\tSystem.getProperties().remove(\"proxyPort\");\n\t\t\tSystem.getProperties().remove(\"http.proxyHost\");\n\t\t\tSystem.getProperties().remove(\"http.proxyPort\");\n\t\t\tSystem.getProperties().remove(\"http.nonProxyHosts\");\n\t\t\tAuthenticator.setDefault(null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// set proxy host\n\t\t\tString host = jEdit.getProperty(\"firewall.host\");\n\t\t\tif (host == null)\n\t\t\t\treturn;\n\n\t\t\tSystem.setProperty(\"http.proxyHost\", host);\n\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy enabled: \" + host);\n\t\t\t// set proxy port\n\t\t\tString port = jEdit.getProperty(\"firewall.port\");\n\t\t\tif (port != null)\n\t\t\t\tSystem.setProperty(\"http.proxyPort\", port);\n\n\t\t\t// set non proxy hosts list\n\t\t\tString nonProxyHosts = jEdit.getProperty(\"firewall.nonProxyHosts\");\n\t\t\tif (nonProxyHosts != null)\n\t\t\t\tSystem.setProperty(\"http.nonProxyHosts\", nonProxyHosts);\n\n\t\t\t// set proxy authentication\n\t\t\tString username = jEdit.getProperty(\"firewall.user\");\n\t\t\tString password = jEdit.getProperty(\"firewall.password\");\n\n\t\t\t// null not supported?\n\t\t\tif(password == null)\n\t\t\t\tpassword = \"\";\n\n\t\t\tif(username == null || username.length()==0)\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy without user\");\n\t\t\t\tAuthenticator.setDefault(new FirewallAuthenticator(null));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.log(Log.DEBUG, jEdit.class, \"HTTP proxy user: \" + username);\n\t\t\t\tPasswordAuthentication pw = new PasswordAuthentication(\n\t\t\t\t\tusername,password.toCharArray()\n\t\t\t\t);\n\t\t\t\tAuthenticator.setDefault(new FirewallAuthenticator(pw));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [3, 17], [3, 18], [3, 19], [4, 20], [5, 21], [6, 22], [9, 23], [11, 24], [1, 25], [1, 26], [13, 27], [13, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [15, 37], [16, 38], [18, 39], [3, 40], [3, 41], [3, 42], [20, 43], [5, 44], [21, 45], [21, 46], [6, 47], [22, 48], [7, 49], [8, 50], [9, 51], [23, 52], [10, 53], [11, 54], [24, 55], [12, 56], [25, 57], [26, 58], [28, 59], [14, 60], [29, 61], [30, 62], [31, 63], [32, 64], [33, 65], [34, 66], [35, 67], [36, 68], [16, 69], [38, 70], [17, 71], [39, 72], [19, 73], [40, 74], [41, 75], [42, 76], [5, 77], [5, 78], [5, 79], [5, 80], [45, 81], [45, 82], [46, 83], [47, 84], [49, 85], [50, 86], [51, 87], [53, 88], [54, 89], [56, 90], [57, 91], [60, 92], [62, 93], [63, 94], [64, 95], [65, 96], [66, 97], [67, 98], [69, 99], [71, 100], [18, 101], [18, 102], [73, 103], [74, 104], [75, 105], [77, 106], [44, 107], [78, 108], [79, 109], [80, 110], [101, 111], [102, 112], [107, 113], [108, 114], [109, 115], [111, 116], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 3], [18, 3], [19, 3], [20, 4], [21, 5], [22, 6], [23, 9], [24, 11], [25, 1], [26, 1], [27, 13], [28, 13], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 15], [38, 16], [39, 18], [40, 3], [41, 3], [42, 3], [43, 20], [44, 5], [45, 21], [46, 21], [47, 6], [48, 22], [49, 7], [50, 8], [51, 9], [52, 23], [53, 10], [54, 11], [55, 24], [56, 12], [57, 25], [58, 26], [59, 28], [60, 14], [61, 29], [62, 30], [63, 31], [64, 32], [65, 33], [66, 34], [67, 35], [68, 36], [69, 16], [70, 38], [71, 17], [72, 39], [73, 19], [74, 40], [75, 41], [76, 42], [77, 5], [78, 5], [79, 5], [80, 5], [81, 45], [82, 45], [83, 46], [84, 47], [85, 49], [86, 50], [87, 51], [88, 53], [89, 54], [90, 56], [91, 57], [92, 60], [93, 62], [94, 63], [95, 64], [96, 65], [97, 66], [98, 67], [99, 69], [100, 71], [101, 18], [102, 18], [103, 73], [104, 74], [105, 75], [106, 77], [107, 44], [108, 78], [109, 79], [110, 80], [111, 101], [112, 102], [113, 107], [114, 108], [115, 109], [116, 111], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116]]}, {"function_name": "finishStartup", "code": "\tprivate static void finishStartup(final boolean gui, final boolean restore,\n\t\tfinal String userDir, final String[] args)\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tBuffer buffer = openFiles(null,userDir,args);\n\n\t\t\t\tint count = getBufferCount();\n\t\t\t\tif(count == 0)\n\t\t\t\t\tnewFile(null);\n\n\t\t\t\tView view = null;\n\n\t\t\t\tboolean restoreFiles = restore\n\t\t\t\t\t&& jEdit.getBooleanProperty(\"restore\")\n\t\t\t\t\t&& (getBufferCount() == 0 ||\n\t\t\t\t\tjEdit.getBooleanProperty(\"restore.cli\"));\n\n\t\t\t\tif(gui || count != 0)\n\t\t\t\t{\n\t\t\t\t\tview = PerspectiveManager\n\t\t\t\t\t\t.loadPerspective(\n\t\t\t\t\t\trestoreFiles);\n\n\t\t\t\t\tif(view == null)\n\t\t\t\t\t\tview = newView(null,buffer);\n\t\t\t\t\telse if(buffer != null)\n\t\t\t\t\t\tview.setBuffer(buffer);\n\t\t\t\t}\n\n\t\t\t\t// Start I/O threads\n\t\t\t\tEditBus.send(new EditorStarted(null));\n\n\t\t\t\tVFSManager.start();\n\n\t\t\t\t// Start edit server\n\t\t\t\tif(server != null)\n\t\t\t\t\tserver.start();\n\n\t\t\t\tGUIUtilities.hideSplashScreen();\n\n\t\t\t\tLog.log(Log.MESSAGE,jEdit.class,\"Startup \"\n\t\t\t\t\t+ \"complete\");\n\n\t\t\t\t//{{{ Report any plugin errors\n\t\t\t\tif(pluginErrors != null)\n\t\t\t\t{\n\t\t\t\t\tshowPluginErrorDialog();\n\t\t\t\t} //}}}\n\n\t\t\t\tstartupDone = true;\n\n\t\t\t\t// in one case not a single AWT class will\n\t\t\t\t// have been touched (splash screen off +\n\t\t\t\t// -nogui -nobackground switches on command\n\t\t\t\t// line)\n\t\t\t\tToolkit.getDefaultToolkit();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [7, 8], [7, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [8, 18], [7, 19], [7, 20], [9, 21], [7, 22], [7, 23], [10, 24], [13, 25], [17, 26], [18, 27], [19, 28], [9, 29], [21, 30], [23, 31], [10, 32], [24, 33], [11, 34], [12, 35], [13, 36], [25, 37], [14, 38], [15, 39], [8, 40], [28, 41], [28, 42], [31, 43], [32, 44], [32, 45], [10, 46], [33, 47], [34, 48], [34, 49], [36, 50], [39, 51], [44, 52], [32, 53], [45, 54], [46, 55], [48, 56], [48, 57], [49, 58], [44, 59], [52, 60], [53, 61], [56, 62], [57, 63], [57, 64], [58, 65], [61, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [8, 7], [9, 7], [10, 7], [11, 7], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 8], [19, 7], [20, 7], [21, 9], [22, 7], [23, 7], [24, 10], [25, 13], [26, 17], [27, 18], [28, 19], [29, 9], [30, 21], [31, 23], [32, 10], [33, 24], [34, 11], [35, 12], [36, 13], [37, 25], [38, 14], [39, 15], [40, 8], [41, 28], [42, 28], [43, 31], [44, 32], [45, 32], [46, 10], [47, 33], [48, 34], [49, 34], [50, 36], [51, 39], [52, 44], [53, 32], [54, 45], [55, 46], [56, 48], [57, 48], [58, 49], [59, 44], [60, 52], [61, 53], [62, 56], [63, 57], [64, 57], [65, 58], [66, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "showPluginErrorDialog", "code": "\tprivate static void showPluginErrorDialog()\n\t{\n\t\tif(pluginErrors == null)\n\t\t\treturn;\n\n\t\tString caption = getProperty(\n\t\t\t\"plugin-error.caption\" + (pluginErrors.size() == 1\n\t\t\t? \"-1\" : \"\"));\n\n\t\tFrame frame = (PluginManager.getInstance() == null\n\t\t\t? (Frame)viewsFirst\n\t\t\t: (Frame)PluginManager.getInstance());\n\n\t\tnew ErrorListDialog(frame,\n\t\t\tgetProperty(\"plugin-error.title\"),\n\t\t\tcaption,pluginErrors,true);\n\t\tpluginErrors = null;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [4, 8], [5, 9], [5, 10], [1, 11], [2, 12], [7, 13], [10, 14], [11, 15], [12, 16], [11, 17], [15, 18], [15, 19], [16, 20], [16, 21], [20, 22], [20, 23], [20, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 4], [9, 5], [10, 5], [11, 1], [12, 2], [13, 7], [14, 10], [15, 11], [16, 12], [17, 11], [18, 15], [19, 15], [20, 16], [21, 16], [22, 20], [23, 20], [24, 20], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getNotLoadedPluginJARs", "code": "\tprivate static void getNotLoadedPluginJARs(Vector returnValue,\n\t\tString dir, String[] list)\n\t{\nloop:\t\tfor(int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tString name = list[i];\n\t\t\tif(!name.toLowerCase().endsWith(\".jar\"))\n\t\t\t\tcontinue loop;\n\n\t\t\tString path = MiscUtilities.constructPath(dir,name);\n\n\t\t\tfor(int j = 0; j < jars.size(); j++)\n\t\t\t{\n\t\t\t\tPluginJAR jar = (PluginJAR)\n\t\t\t\t\tjars.elementAt(j);\n\t\t\t\tString jarPath = jar.getPath();\n\t\t\t\tString jarName = MiscUtilities.getFileName(jarPath);\n\n\t\t\t\tif(path.equals(jarPath))\n\t\t\t\t\tcontinue loop;\n\t\t\t\telse if(!new File(jarPath).exists()\n\t\t\t\t\t&& name.equals(jarName))\n\t\t\t\t\tcontinue loop;\n\t\t\t}\n\n\t\t\treturnValue.addElement(path);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [6, 11], [8, 12], [8, 13], [1, 14], [6, 15], [6, 16], [6, 17], [6, 18], [11, 19], [7, 20], [13, 21], [15, 22], [15, 23], [15, 24], [6, 25], [21, 26], [22, 27], [22, 28], [16, 29], [17, 30], [28, 31], [28, 32], [18, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 6], [12, 8], [13, 8], [14, 1], [15, 6], [16, 6], [17, 6], [18, 6], [19, 11], [20, 7], [21, 13], [22, 15], [23, 15], [24, 15], [25, 6], [26, 21], [27, 22], [28, 22], [29, 16], [30, 17], [31, 28], [32, 28], [33, 18], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "gotoMarker", "code": "\tprivate static void gotoMarker(final View view, final Buffer buffer,\n\t\tfinal String marker)\n\t{\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tint pos;\n\n\t\t\t\t// Handle line number\n\t\t\t\tif(marker.startsWith(\"+line:\"))\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tint line = Integer.parseInt(marker.substring(6));\n\t\t\t\t\t\tpos = buffer.getLineStartOffset(line - 1);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Handle marker\n\t\t\t\telse if(marker.startsWith(\"+marker:\"))\n\t\t\t\t{\n\t\t\t\t\tif(marker.length() != 9)\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\tMarker m = buffer.getMarker(marker.charAt(8));\n\t\t\t\t\tif(m == null)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tpos = m.getPosition();\n\t\t\t\t}\n\t\t\t\t// Can't happen\n\t\t\t\telse\n\t\t\t\t\tthrow new InternalError();\n\n\t\t\t\tif(view != null && view.getBuffer() == buffer)\n\t\t\t\t\tview.getTextArea().setCaretPosition(pos);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbuffer.setIntegerProperty(Buffer.CARET,pos);\n\t\t\t\t\tbuffer.unsetProperty(Buffer.SCROLL_VERT);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [7, 10], [8, 11], [8, 12], [7, 13], [10, 14], [10, 15], [11, 16], [11, 17], [8, 18], [12, 19], [7, 20], [7, 21], [13, 22], [14, 23], [15, 24], [16, 25], [11, 26], [11, 27], [11, 28], [17, 29], [18, 30], [18, 31], [11, 32], [26, 33], [26, 34], [28, 35], [28, 36], [30, 37], [18, 38], [32, 39], [34, 40], [27, 41], [36, 42], [36, 43], [38, 44], [31, 45], [41, 46], [44, 47], [45, 48], [46, 49], [47, 50], [48, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 7], [11, 8], [12, 8], [13, 7], [14, 10], [15, 10], [16, 11], [17, 11], [18, 8], [19, 12], [20, 7], [21, 7], [22, 13], [23, 14], [24, 15], [25, 16], [26, 11], [27, 11], [28, 11], [29, 17], [30, 18], [31, 18], [32, 11], [33, 26], [34, 26], [35, 28], [36, 28], [37, 30], [38, 18], [39, 32], [40, 34], [41, 27], [42, 36], [43, 36], [44, 38], [45, 31], [46, 41], [47, 44], [48, 45], [49, 46], [50, 47], [51, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "addBufferToList", "code": "\tprivate static void addBufferToList(Buffer buffer)\n\t{\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tString symlinkPath = buffer.getSymlinkPath();\n\t\t\tif((VFSManager.getVFSForPath(symlinkPath).getCapabilities()\n\t\t\t\t& VFS.CASE_INSENSITIVE_CAP) != 0)\n\t\t\t{\n\t\t\t\tsymlinkPath = symlinkPath.toLowerCase();\n\t\t\t}\n\n\t\t\t// if only one, clean, 'untitled' buffer is open, we\n\t\t\t// replace it\n\t\t\tif(viewCount <= 1 && buffersFirst != null\n\t\t\t\t&& buffersFirst == buffersLast\n\t\t\t\t&& buffersFirst.isUntitled()\n\t\t\t\t&& !buffersFirst.isDirty())\n\t\t\t{\n\t\t\t\tBuffer oldBuffersFirst = buffersFirst;\n\t\t\t\tbuffersFirst = buffersLast = buffer;\n\t\t\t\tDisplayManager.bufferClosed(oldBuffersFirst);\n\t\t\t\tEditBus.send(new BufferUpdate(oldBuffersFirst,\n\t\t\t\t\tnull,BufferUpdate.CLOSED));\n\n\t\t\t\tbufferHash.clear();\n\n\t\t\t\tbufferHash.put(symlinkPath,buffer);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tbufferCount++;\n\n\t\t\tbufferHash.put(symlinkPath,buffer);\n\n\t\t\tif(buffersFirst == null)\n\t\t\t{\n\t\t\t\tbuffersFirst = buffersLast = buffer;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t//{{{ Sort buffer list\n\t\t\telse if(sortBuffers)\n\t\t\t{\n\t\t\t\tString str11, str12;\n\t\t\t\tif(sortByName)\n\t\t\t\t{\n\t\t\t\t\tstr11 = buffer.getName();\n\t\t\t\t\tstr12 = buffer.getDirectory();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tstr11 = buffer.getDirectory();\n\t\t\t\t\tstr12 = buffer.getName();\n\t\t\t\t}\n\n\t\t\t\tBuffer _buffer = buffersFirst;\n\t\t\t\twhile(_buffer != null)\n\t\t\t\t{\n\t\t\t\t\tString str21, str22;\n\t\t\t\t\tif(sortByName)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr21 = _buffer.getName();\n\t\t\t\t\t\tstr22 = _buffer.getDirectory();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tstr21 = _buffer.getDirectory();\n\t\t\t\t\t\tstr22 = _buffer.getName();\n\t\t\t\t\t}\n\n\t\t\t\t\tint comp = MiscUtilities.compareStrings(str11,str21,true);\n\t\t\t\t\tif(comp < 0 || (comp == 0 && MiscUtilities.compareStrings(str12,str22,true) < 0))\n\t\t\t\t\t{\n\t\t\t\t\t\tbuffer.next = _buffer;\n\t\t\t\t\t\tbuffer.prev = _buffer.prev;\n\t\t\t\t\t\t_buffer.prev = buffer;\n\t\t\t\t\t\tif(_buffer != buffersFirst)\n\t\t\t\t\t\t\tbuffer.prev.next = buffer;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbuffersFirst = buffer;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t_buffer = _buffer.next;\n\t\t\t\t}\n\t\t\t} //}}}\n\n\t\t\tbuffer.prev = buffersLast;\n\t\t\t// fixes the hang that can occur if we 'save as' to a\n\t\t\t// new filename which requires re-sorting\n\t\t\tbuffer.next = null;\n\t\t\tbuffersLast.next = buffer;\n\t\t\tbuffersLast = buffer;", "ast_nodes": ["FUNC_DECL", "PARAM", "IF", "IF", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [0, 12], [3, 13], [4, 14], [8, 15], [2, 16], [11, 17], [3, 18], [3, 19], [13, 20], [13, 21], [14, 22], [14, 23], [5, 24], [10, 25], [10, 26], [10, 27], [10, 28], [2, 29], [3, 30], [3, 31], [3, 32], [3, 33], [3, 34], [21, 35], [21, 36], [4, 37], [23, 38], [25, 39], [29, 40], [32, 41], [34, 42], [36, 43], [36, 44], [37, 45], [38, 46], [25, 47], [25, 48], [25, 49], [25, 50], [39, 51], [41, 52], [44, 53], [44, 54], [25, 55], [47, 56], [27, 57], [27, 58], [27, 59], [27, 60], [53, 61], [54, 62], [47, 63], [47, 64], [56, 65], [56, 66], [48, 67], [57, 68], [58, 69], [59, 70], [60, 71], [64, 72], [47, 73], [47, 74], [47, 75], [65, 76], [65, 77], [66, 78], [67, 79], [49, 80], [49, 81], [49, 82], [49, 83], [64, 84], [64, 85], [76, 86], [76, 87], [77, 88], [80, 89], [81, 90], [82, 91], [83, 92], [87, 93], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 0], [13, 3], [14, 4], [15, 8], [16, 2], [17, 11], [18, 3], [19, 3], [20, 13], [21, 13], [22, 14], [23, 14], [24, 5], [25, 10], [26, 10], [27, 10], [28, 10], [29, 2], [30, 3], [31, 3], [32, 3], [33, 3], [34, 3], [35, 21], [36, 21], [37, 4], [38, 23], [39, 25], [40, 29], [41, 32], [42, 34], [43, 36], [44, 36], [45, 37], [46, 38], [47, 25], [48, 25], [49, 25], [50, 25], [51, 39], [52, 41], [53, 44], [54, 44], [55, 25], [56, 47], [57, 27], [58, 27], [59, 27], [60, 27], [61, 53], [62, 54], [63, 47], [64, 47], [65, 56], [66, 56], [67, 48], [68, 57], [69, 58], [70, 59], [71, 60], [72, 64], [73, 47], [74, 47], [75, 47], [76, 65], [77, 65], [78, 66], [79, 67], [80, 49], [81, 49], [82, 49], [83, 49], [84, 64], [85, 64], [86, 76], [87, 76], [88, 77], [89, 80], [90, 81], [91, 82], [92, 83], [93, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93]]}, {"function_name": "removeBufferFromList", "code": "\tprivate static void removeBufferFromList(Buffer buffer)\n\t{\n\t\tsynchronized(bufferListLock)\n\t\t{\n\t\t\tbufferCount--;\n\n\t\t\tboolean caseInsensitiveFilesystem =\n\t\t\t\tOperatingSystem.isDOSDerived()\n\t\t\t\t|| OperatingSystem.isMacOS();\n\t\t\tString path = buffer.getPath();\n\t\t\tif(caseInsensitiveFilesystem)\n\t\t\t\tpath = path.toLowerCase();\n\n\t\t\tbufferHash.remove(path);\n\n\t\t\tif(buffer == buffersFirst && buffer == buffersLast)\n\t\t\t{\n\t\t\t\tbuffersFirst = buffersLast = null;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(buffer == buffersFirst)\n\t\t\t{\n\t\t\t\tbuffersFirst = buffer.next;\n\t\t\t\tbuffer.next.prev = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.prev.next = buffer.next;\n\t\t\t}\n\n\t\t\tif(buffer == buffersLast)\n\t\t\t{\n\t\t\t\tbuffersLast = buffersLast.prev;\n\t\t\t\tbuffer.prev.next = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.next.prev = buffer.prev;\n\t\t\t}\n\n\t\t\t// fixes the hang that can occur if we 'save as' to a new\n\t\t\t// filename which requires re-sorting\n\t\t\tbuffer.next = buffer.prev = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [0, 12], [8, 13], [4, 14], [11, 15], [11, 16], [5, 17], [6, 18], [7, 19], [13, 20], [2, 21], [2, 22], [2, 23], [3, 24], [3, 25], [3, 26], [4, 27], [17, 28], [19, 29], [19, 30], [22, 31], [25, 32], [27, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 0], [13, 8], [14, 4], [15, 11], [16, 11], [17, 5], [18, 6], [19, 7], [20, 13], [21, 2], [22, 2], [23, 2], [24, 3], [25, 3], [26, 3], [27, 4], [28, 17], [29, 19], [30, 19], [31, 22], [32, 25], [33, 27], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "addViewToList", "code": "\tprivate static void addViewToList(View view)\n\t{\n\t\tviewCount++;\n\n\t\tif(viewsFirst == null)\n\t\t\tviewsFirst = viewsLast = view;\n\t\telse\n\t\t{\n\t\t\tview.prev = viewsLast;\n\t\t\tviewsLast.next = view;\n\t\t\tviewsLast = view;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "removeViewFromList", "code": "\tprivate static void removeViewFromList(View view)\n\t{\n\t\tviewCount--;\n\n\t\tif(viewsFirst == viewsLast)\n\t\t{\n\t\t\tviewsFirst = viewsLast = null;\n\t\t\treturn;\n\t\t}\n\n\t\tif(view == viewsFirst)\n\t\t{\n\t\t\tviewsFirst = view.next;\n\t\t\tview.next.prev = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview.prev.next = view.next;\n\t\t}\n\n\t\tif(view == viewsLast)\n\t\t{\n\t\t\tviewsLast = viewsLast.prev;\n\t\t\tview.prev.next = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview.next.prev = view.prev;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [1, 9], [1, 10], [1, 11], [2, 12], [2, 13], [2, 14], [3, 15], [10, 16], [13, 17], [15, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 1], [10, 1], [11, 1], [12, 2], [13, 2], [14, 2], [15, 3], [16, 10], [17, 13], [18, 15], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "closeView", "code": "\tprivate static void closeView(View view, boolean callExit)\n\t{\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\tif(viewsFirst == viewsLast && callExit)\n\t\t\texit(view,false); /* exit does editor event & save */\n\t\telse\n\t\t{\n\t\t\tEditBus.send(new ViewUpdate(view,ViewUpdate.CLOSED));\n\n\t\t\tview.close();\n\t\t\tremoveViewFromList(view);\n\n\t\t\tif(view == activeView)\n\t\t\t\tactiveView = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [1, 11], [1, 12], [1, 13], [7, 14], [6, 15], [13, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 1], [12, 1], [13, 1], [14, 7], [15, 6], [16, 13], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "loadModeCatalog", "code": "\tprivate static void loadModeCatalog(String path, boolean resource)\n\t{\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"Loading mode catalog file \" + path);\n\n\t\tModeCatalogHandler handler = new ModeCatalogHandler(\n\t\t\tMiscUtilities.getParentOfPath(path),resource);\n\t\tXmlParser parser = new XmlParser();\n\t\tparser.setHandler(handler);\n\t\tReader in = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream _in;\n\t\t\tif(resource)\n\t\t\t\t_in = jEdit.class.getResourceAsStream(path);\n\t\t\telse\n\t\t\t\t_in = new FileInputStream(path);\n\t\t\tin = new BufferedReader(new InputStreamReader(_in));\n\t\t\tparser.parse(null, null, in);\n\t\t}\n\t\tcatch(XmlException xe)\n\t\t{\n\t\t\tint line = xe.getLine();\n\t\t\tString message = xe.getMessage();\n\t\t\tLog.log(Log.ERROR,jEdit.class,path + \":\" + line\n\t\t\t\t+ \": \" + message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,jEdit.class,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(in != null)\n\t\t\t\t\tin.close();\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,jEdit.class,io);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "TRY", "CATCH", "CATCH", "IF", "VAR_DECL", "CALL", "CALL", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [0, 12], [0, 13], [7, 14], [7, 15], [9, 16], [9, 17], [1, 18], [1, 19], [2, 20], [3, 21], [4, 22], [13, 23], [15, 24], [8, 25], [9, 26], [18, 27], [18, 28], [19, 29], [10, 30], [10, 31], [22, 32], [23, 33], [14, 34], [15, 35], [24, 36], [26, 37], [16, 38], [17, 39], [29, 40], [30, 41], [31, 42], [37, 43], [43, 44], [43, 45], [45, 46], [46, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 0], [13, 0], [14, 7], [15, 7], [16, 9], [17, 9], [18, 1], [19, 1], [20, 2], [21, 3], [22, 4], [23, 13], [24, 15], [25, 8], [26, 9], [27, 18], [28, 18], [29, 19], [30, 10], [31, 10], [32, 22], [33, 23], [34, 14], [35, 15], [36, 24], [37, 26], [38, 16], [39, 17], [40, 29], [41, 30], [42, 31], [43, 37], [44, 43], [45, 43], [46, 45], [47, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "initKeyBindings", "code": "\tprivate static void initKeyBindings()\n\t{\n\t\tinputHandler.removeAllKeyBindings();\n\n\t\tActionSet[] actionSets = getActionSets();\n\t\tfor(int i = 0; i < actionSets.length; i++)\n\t\t{\n\t\t\tactionSets[i].initKeyBindings();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jEdit", "code": "\tprivate jEdit() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.4-154", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/XSLTProcess.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.XSLTProcess", "code": "public class XSLTProcess extends MatchingTask {\n\n    private File destDir = null;\n\n    private File baseDir = null;\n\n    private String xslFile = null;\n\n    private String targetExtension = \".html\";\n    private Vector params = new Vector();\n\n    private File inFile = null;\n\n    private File outFile = null;\n\n    private String processor;\n    private Path classpath = null;\n    private XSLTLiaison liaison;\n    private boolean stylesheetLoaded = false;\n\n    private boolean force = false;\n\n    private FileUtils fileUtils;\n\n    /**\n     * Creates a new XSLTProcess Task.\n     **/\n    public XSLTProcess() {\n        fileUtils = FileUtils.newFileUtils();\n\t}\n    /**\n     * Executes the task.\n     */\n\n    public void execute() throws BuildException {\n        DirectoryScanner scanner;\n        String[]         list;\n        String[]         dirs;\n\n        if (xslFile == null) {\n            throw new BuildException(\"no stylesheet specified\", location);\n        }\n\n        if (baseDir == null) {\n            baseDir = project.resolveFile(\".\");\n        }\n\n        liaison = getLiaison();\n        log(\"Using \"+liaison.getClass().toString(), Project.MSG_VERBOSE);\n\n        File stylesheet = project.resolveFile(xslFile);\n        if (!stylesheet.exists()) {\n            stylesheet = fileUtils.resolveFile(baseDir, xslFile);\n            /*\n             * shouldn't throw out deprecation warnings before we know,\n             * the wrong version has been used.\n             */\n            if (stylesheet.exists()) {\n                log(\"DEPRECATED - the style attribute should be relative to the project\\'s\");\n                log(\"             basedir, not the tasks\\'s basedir.\");\n            }\n        }\n\n        if (inFile != null && outFile != null) {\n            process(inFile, outFile, stylesheet);\n            return;\n        }\n\n        /*\n         * if we get here, in and out have not been specified, we are\n         * in batch processing mode.\n         */\n\n        if (destDir == null ) {\n            String msg = \"destdir attributes must be set!\";\n            throw new BuildException(msg);\n        }\n        scanner = getDirectoryScanner(baseDir);\n        log(\"Transforming into \"+destDir, Project.MSG_INFO);\n\n        list = scanner.getIncludedFiles();\n        for (int i = 0;i < list.length; ++i) {\n            process( baseDir, list[i], destDir, stylesheet );\n        }\n\n        dirs = scanner.getIncludedDirectories();\n        for (int j = 0;j < dirs.length;++j){\n            list=new File(baseDir,dirs[j]).list();\n            for (int i = 0;i < list.length;++i)\n                process( baseDir, list[i], destDir, stylesheet );\n        }\n\t}\n    /**\n     * Set whether to check dependencies, or always generate.\n     **/\n    public void setForce(boolean force) {\n        this.force = force;\n\t}\n    /**\n     * Set the base directory.\n     **/\n    public void setBasedir(File dir) {\n        baseDir = dir;\n\t}\n    /**\n     * Set the destination directory into which the XSL result\n     * files should be copied to\n     * @param dirName the name of the destination directory\n     **/\n    public void setDestdir(File dir) {\n        destDir = dir;\n\t}\n    /**\n     * Set the desired file extension to be used for the target\n     * @param name the extension to use\n     **/\n    public void setExtension(String name) {\n        targetExtension = name;\n\t}\n    /**\n     * Sets the file to use for styling relative to the base directory\n     * of this task.\n     */\n    public void setStyle(String xslFile) {\n        this.xslFile = xslFile;\n    }\n\n    /**\n     * Set the classpath to load the Processor through (attribute).\n     */\n    public void setClasspath(Path classpath) {\n        createClasspath().append(classpath);\n    }\n\n    /**\n     * Set the classpath to load the Processor through (nested element).\n     */\n    public Path createClasspath() {\n        if (classpath == null) {\n            classpath = new Path(project);\n        }\n        return classpath.createPath();\n    }\n\n    /**\n     * Set the classpath to load the Processor through via reference\n     * (attribute).\n     */\n    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);\n    }\n\n\n    public void setProcessor(String processor) {\n        this.processor = processor;\n    }\n\n    /**\n     * Load processor here instead of in setProcessor - this will be\n     * called from within execute, so we have access to the latest\n     * classpath.\n     */\n    private void resolveProcessor(String proc) throws Exception {\n        if (proc.equals(\"trax\")) {\n            final Class clazz =\n                loadClass(\"org.apache.tools.ant.taskdefs.optional.TraXLiaison\");\n            liaison = (XSLTLiaison)clazz.newInstance();\n        } else if (proc.equals(\"xslp\")) {\n            log(\"DEPRECATED - xslp processor is deprecated. Use trax or xalan instead.\");\n            final Class clazz =\n                loadClass(\"org.apache.tools.ant.taskdefs.optional.XslpLiaison\");\n            liaison = (XSLTLiaison) clazz.newInstance();\n        } else if (proc.equals(\"xalan\")) {\n            final Class clazz =\n                loadClass(\"org.apache.tools.ant.taskdefs.optional.XalanLiaison\");\n            liaison = (XSLTLiaison)clazz.newInstance();\n        } else {\n            liaison = (XSLTLiaison) loadClass(proc).newInstance();\n        }\n    }\n\n    /**\n     * Load named class either via the system classloader or a given\n     * custom classloader.\n     */\n    private Class loadClass(String classname) throws Exception {\n        if (classpath == null) {\n            return Class.forName(classname);\n        } else {\n            AntClassLoader al = new AntClassLoader(project, classpath);\n            Class c = al.loadClass(classname);\n            AntClassLoader.initializeClass(c);\n            return c;\n        }\n    }\n\n    /**\n     * Sets an out file\n     */\n    public void setOut(File outFile){\n        this.outFile = outFile;\n    }\n\n    /**\n     * Sets an input xml file to be styled\n     */\n    public void setIn(File inFile){\n        this.inFile = inFile;\n    }\n\n    /**\n     * Processes the given input XML file and stores the result\n     * in the given resultFile.\n     **/\n    private void process(File baseDir, String xmlFile, File destDir,\n                         File stylesheet)\n        throws BuildException {\n\n        String fileExt=targetExtension;\n        File   outFile=null;\n        File   inFile=null;\n\n        try {\n            long styleSheetLastModified = stylesheet.lastModified();\n            inFile = new File(baseDir,xmlFile);\n            int dotPos = xmlFile.lastIndexOf('.');\n            if(dotPos>0){\n                outFile = new File(destDir,xmlFile.substring(0,xmlFile.lastIndexOf('.'))+fileExt);\n            }else{\n                outFile = new File(destDir,xmlFile+fileExt);\n            }\n            if (force ||\n                inFile.lastModified() > outFile.lastModified() ||\n                styleSheetLastModified > outFile.lastModified()) {\n                ensureDirectoryFor( outFile );\n                log(\"Transforming into \"+destDir);\n\n                configureLiaison(stylesheet);\n                liaison.transform(inFile, outFile);\n            }\n        }\n        catch (Exception ex) {\n            log(\"Failed to process \" + inFile, Project.MSG_INFO);\n            if (outFile != null) {\n                outFile.delete();\n            }\n\n            throw new BuildException(ex);\n        }\n\t}\n\n    private void process(File inFile, File outFile, File stylesheet) throws BuildException {\n        try{\n            long styleSheetLastModified = stylesheet.lastModified();\n            log(\"In file \"+inFile+\" time: \" + inFile.lastModified() , Project.MSG_DEBUG);\n            log(\"Out file \"+outFile+\" time: \" + outFile.lastModified() , Project.MSG_DEBUG);\n            log(\"Style file \"+xslFile+\" time: \" + styleSheetLastModified , Project.MSG_DEBUG);\n            if (force ||\n                inFile.lastModified() > outFile.lastModified() ||\n                styleSheetLastModified > outFile.lastModified()) {\n                ensureDirectoryFor( outFile );\n                log(\"Processing \" + inFile + \" to \" + outFile, Project.MSG_INFO);\n                configureLiaison(stylesheet);\n                liaison.transform(inFile, outFile);\n            }\n        }catch (Exception ex) {\n            log(\"Failed to process \" + inFile, Project.MSG_INFO);\n            if(outFile!=null)outFile.delete();\n            throw new BuildException(ex);\n        }\n    }\n\n    private void ensureDirectoryFor( File targetFile ) throws BuildException {\n        File directory = new File( targetFile.getParent() );\n        if (!directory.exists()) {\n            if (!directory.mkdirs()) {\n                throw new BuildException(\"Unable to create directory: \"\n                                         + directory.getAbsolutePath() );\n            }\n        }\n    }\n\n    protected XSLTLiaison getLiaison() {\n        if (liaison == null) {\n            if (processor != null) {\n                try {\n                    resolveProcessor(processor);\n                } catch (Exception e) {\n                    throw new BuildException(e);\n                }\n            } else {\n                try {\n                    resolveProcessor(\"trax\");\n                } catch (Throwable e1) {\n                    try {\n                        resolveProcessor(\"xslp\");\n                    } catch (Throwable e2) {\n                        try {\n                            resolveProcessor(\"xalan\");\n                        } catch (Throwable e3) {\n                            e3.printStackTrace();\n                            e2.printStackTrace();\n                            throw new BuildException(e1);\n                        }\n                    }\n                }\n            }\n        }\n        return liaison;\n    }\n\n    public Param createParam() {\n        Param p = new Param();\n        params.addElement(p);\n        return p;\n    }\n\n    public class Param {\n        private String name=null;\n        private String expression=null;\n\n        public void setName(String name){\n            this.name = name;\n        }\n\n        public void setExpression(String expression){\n            this.expression = expression;\n        }\n\n        public String getName() throws BuildException{\n            if(name==null)throw new BuildException(\"Name attribute is missing.\");\n            return name;\n        }\n\n        public String getExpression() throws BuildException{\n            if(expression==null)throw new BuildException(\"Expression attribute is missing.\");\n            return expression;\n        }\n    }\n\n    /**\n     * Loads the stylesheet and set xsl:param parameters.\n     */\n    protected void configureLiaison(File stylesheet) throws BuildException {\n        if (stylesheetLoaded) {\n            return;\n        }\n        stylesheetLoaded = true;\n\n        try {\n            log( \"Loading stylesheet \" + stylesheet, Project.MSG_INFO);\n            liaison.setStylesheet( stylesheet );\n            for(Enumeration e = params.elements();e.hasMoreElements();) {\n                Param p = (Param)e.nextElement();\n                liaison.addParam( p.getName(), p.getExpression() );\n            }\n        } catch (Exception ex) {\n            log(\"Failed to read stylesheet \" + stylesheet, Project.MSG_INFO);\n            throw new BuildException(ex);", "functions": [{"function_name": "execute", "code": "    public void execute() throws BuildException {\n        DirectoryScanner scanner;\n        String[]         list;\n        String[]         dirs;\n\n        if (xslFile == null) {\n            throw new BuildException(\"no stylesheet specified\", location);\n        }\n\n        if (baseDir == null) {\n            baseDir = project.resolveFile(\".\");\n        }\n\n        liaison = getLiaison();\n        log(\"Using \"+liaison.getClass().toString(), Project.MSG_VERBOSE);\n\n        File stylesheet = project.resolveFile(xslFile);\n        if (!stylesheet.exists()) {\n            stylesheet = fileUtils.resolveFile(baseDir, xslFile);\n            /*\n             * shouldn't throw out deprecation warnings before we know,\n             * the wrong version has been used.\n             */\n            if (stylesheet.exists()) {\n                log(\"DEPRECATED - the style attribute should be relative to the project\\'s\");\n                log(\"             basedir, not the tasks\\'s basedir.\");\n            }\n        }\n\n        if (inFile != null && outFile != null) {\n            process(inFile, outFile, stylesheet);\n            return;\n        }\n\n        /*\n         * if we get here, in and out have not been specified, we are\n         * in batch processing mode.\n         */\n\n        if (destDir == null ) {\n            String msg = \"destdir attributes must be set!\";\n            throw new BuildException(msg);\n        }\n        scanner = getDirectoryScanner(baseDir);\n        log(\"Transforming into \"+destDir, Project.MSG_INFO);\n\n        list = scanner.getIncludedFiles();\n        for (int i = 0;i < list.length; ++i) {\n            process( baseDir, list[i], destDir, stylesheet );\n        }\n\n        dirs = scanner.getIncludedDirectories();\n        for (int j = 0;j < dirs.length;++j){\n            list=new File(baseDir,dirs[j]).list();\n            for (int i = 0;i < list.length;++i)\n                process( baseDir, list[i], destDir, stylesheet );", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LOOP", "CALL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [2, 14], [0, 15], [0, 16], [0, 17], [3, 18], [4, 19], [5, 20], [0, 21], [0, 22], [7, 23], [8, 24], [1, 25], [13, 26], [15, 27], [16, 28], [17, 29], [3, 30], [3, 31], [18, 32], [4, 33], [19, 34], [19, 35], [5, 36], [6, 37], [21, 38], [22, 39], [23, 40], [8, 41], [24, 42], [25, 43], [1, 44], [1, 45], [2, 46], [2, 47], [28, 48], [30, 49], [4, 50], [34, 51], [35, 52], [36, 53], [5, 54], [38, 55], [38, 56], [7, 57], [41, 58], [25, 59], [44, 60], [31, 61], [54, 62], [55, 63], [57, 64], [58, 65], [25, 66], [60, 67], [36, 68], [36, 69], [64, 70], [68, 71], [69, 72], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 2], [15, 0], [16, 0], [17, 0], [18, 3], [19, 4], [20, 5], [21, 0], [22, 0], [23, 7], [24, 8], [25, 1], [26, 13], [27, 15], [28, 16], [29, 17], [30, 3], [31, 3], [32, 18], [33, 4], [34, 19], [35, 19], [36, 5], [37, 6], [38, 21], [39, 22], [40, 23], [41, 8], [42, 24], [43, 25], [44, 1], [45, 1], [46, 2], [47, 2], [48, 28], [49, 30], [50, 4], [51, 34], [52, 35], [53, 36], [54, 5], [55, 38], [56, 38], [57, 7], [58, 41], [59, 25], [60, 44], [61, 31], [62, 54], [63, 55], [64, 57], [65, 58], [66, 25], [67, 60], [68, 36], [69, 36], [70, 64], [71, 68], [72, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72]]}, {"function_name": "setForce", "code": "    public void setForce(boolean force) {\n        this.force = force;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBasedir", "code": "    public void setBasedir(File dir) {\n        baseDir = dir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDestdir", "code": "    public void setDestdir(File dir) {\n        destDir = dir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setExtension", "code": "    public void setExtension(String name) {\n        targetExtension = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStyle", "code": "    public void setStyle(String xslFile) {\n        this.xslFile = xslFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        createClasspath().append(classpath);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (classpath == null) {\n            classpath = new Path(project);\n        }\n        return classpath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setProcessor", "code": "    public void setProcessor(String processor) {\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "resolveProcessor", "code": "    private void resolveProcessor(String proc) throws Exception {\n        if (proc.equals(\"trax\")) {\n            final Class clazz =\n                loadClass(\"org.apache.tools.ant.taskdefs.optional.TraXLiaison\");\n            liaison = (XSLTLiaison)clazz.newInstance();\n        } else if (proc.equals(\"xslp\")) {\n            log(\"DEPRECATED - xslp processor is deprecated. Use trax or xalan instead.\");\n            final Class clazz =\n                loadClass(\"org.apache.tools.ant.taskdefs.optional.XslpLiaison\");\n            liaison = (XSLTLiaison) clazz.newInstance();\n        } else if (proc.equals(\"xalan\")) {\n            final Class clazz =\n                loadClass(\"org.apache.tools.ant.taskdefs.optional.XalanLiaison\");\n            liaison = (XSLTLiaison)clazz.newInstance();\n        } else {\n            liaison = (XSLTLiaison) loadClass(proc).newInstance();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "IF", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [4, 8], [5, 9], [3, 10], [6, 11], [1, 12], [5, 13], [9, 14], [3, 15], [3, 16], [7, 17], [5, 18], [5, 19], [10, 20], [16, 21], [12, 22], [17, 23], [13, 24], [15, 25], [20, 26], [18, 27], [19, 28], [24, 29], [27, 30], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 4], [9, 5], [10, 3], [11, 6], [12, 1], [13, 5], [14, 9], [15, 3], [16, 3], [17, 7], [18, 5], [19, 5], [20, 10], [21, 16], [22, 12], [23, 17], [24, 13], [25, 15], [26, 20], [27, 18], [28, 19], [29, 24], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "loadClass", "code": "    private Class loadClass(String classname) throws Exception {\n        if (classpath == null) {\n            return Class.forName(classname);\n        } else {\n            AntClassLoader al = new AntClassLoader(project, classpath);\n            Class c = al.loadClass(classname);\n            AntClassLoader.initializeClass(c);\n            return c;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [1, 9], [7, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 1], [10, 7], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setOut", "code": "    public void setOut(File outFile){\n        this.outFile = outFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIn", "code": "    public void setIn(File inFile){\n        this.inFile = inFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "process", "code": "    private void process(File baseDir, String xmlFile, File destDir,\n                         File stylesheet)\n        throws BuildException {\n\n        String fileExt=targetExtension;\n        File   outFile=null;\n        File   inFile=null;\n\n        try {\n            long styleSheetLastModified = stylesheet.lastModified();\n            inFile = new File(baseDir,xmlFile);\n            int dotPos = xmlFile.lastIndexOf('.');\n            if(dotPos>0){\n                outFile = new File(destDir,xmlFile.substring(0,xmlFile.lastIndexOf('.'))+fileExt);\n            }else{\n                outFile = new File(destDir,xmlFile+fileExt);\n            }\n            if (force ||\n                inFile.lastModified() > outFile.lastModified() ||\n                styleSheetLastModified > outFile.lastModified()) {\n                ensureDirectoryFor( outFile );\n                log(\"Transforming into \"+destDir);\n\n                configureLiaison(stylesheet);\n                liaison.transform(inFile, outFile);\n            }\n        }\n        catch (Exception ex) {\n            log(\"Failed to process \" + inFile, Project.MSG_INFO);\n            if (outFile != null) {\n                outFile.delete();\n            }\n\n            throw new BuildException(ex);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [9, 14], [9, 15], [10, 16], [11, 17], [1, 18], [2, 19], [3, 20], [14, 21], [15, 22], [9, 23], [16, 24], [16, 25], [17, 26], [12, 27], [18, 28], [13, 29], [22, 30], [23, 31], [10, 32], [10, 33], [10, 34], [10, 35], [24, 36], [25, 37], [11, 38], [11, 39], [27, 40], [15, 41], [31, 42], [34, 43], [37, 44], [37, 45], [38, 46], [39, 47], [43, 48], [46, 49], [47, 50], [50, 51], [51, 52], [51, 53], [52, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 9], [15, 9], [16, 10], [17, 11], [18, 1], [19, 2], [20, 3], [21, 14], [22, 15], [23, 9], [24, 16], [25, 16], [26, 17], [27, 12], [28, 18], [29, 13], [30, 22], [31, 23], [32, 10], [33, 10], [34, 10], [35, 10], [36, 24], [37, 25], [38, 11], [39, 11], [40, 27], [41, 15], [42, 31], [43, 34], [44, 37], [45, 37], [46, 38], [47, 39], [48, 43], [49, 46], [50, 47], [51, 50], [52, 51], [53, 51], [54, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "process", "code": "    private void process(File inFile, File outFile, File stylesheet) throws BuildException {\n        try{\n            long styleSheetLastModified = stylesheet.lastModified();\n            log(\"In file \"+inFile+\" time: \" + inFile.lastModified() , Project.MSG_DEBUG);\n            log(\"Out file \"+outFile+\" time: \" + outFile.lastModified() , Project.MSG_DEBUG);\n            log(\"Style file \"+xslFile+\" time: \" + styleSheetLastModified , Project.MSG_DEBUG);\n            if (force ||\n                inFile.lastModified() > outFile.lastModified() ||\n                styleSheetLastModified > outFile.lastModified()) {\n                ensureDirectoryFor( outFile );\n                log(\"Processing \" + inFile + \" to \" + outFile, Project.MSG_INFO);\n                configureLiaison(stylesheet);\n                liaison.transform(inFile, outFile);\n            }\n        }catch (Exception ex) {\n            log(\"Failed to process \" + inFile, Project.MSG_INFO);\n            if(outFile!=null)outFile.delete();\n            throw new BuildException(ex);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "THROW_RAISE", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [6, 10], [1, 11], [1, 12], [1, 13], [8, 14], [9, 15], [5, 16], [10, 17], [10, 18], [11, 19], [12, 20], [13, 21], [7, 22], [9, 23], [15, 24], [16, 25], [6, 26], [6, 27], [6, 28], [6, 29], [17, 30], [18, 31], [19, 32], [20, 33], [20, 34], [21, 35], [21, 36], [25, 37], [28, 38], [31, 39], [31, 40], [32, 41], [32, 42], [34, 43], [34, 44], [36, 45], [36, 46], [38, 47], [42, 48], [44, 49], [46, 50], [47, 51], [47, 52], [52, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 6], [11, 1], [12, 1], [13, 1], [14, 8], [15, 9], [16, 5], [17, 10], [18, 10], [19, 11], [20, 12], [21, 13], [22, 7], [23, 9], [24, 15], [25, 16], [26, 6], [27, 6], [28, 6], [29, 6], [30, 17], [31, 18], [32, 19], [33, 20], [34, 20], [35, 21], [36, 21], [37, 25], [38, 28], [39, 31], [40, 31], [41, 32], [42, 32], [43, 34], [44, 34], [45, 36], [46, 36], [47, 38], [48, 42], [49, 44], [50, 46], [51, 47], [52, 47], [53, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "ensureDirectoryFor", "code": "    private void ensureDirectoryFor( File targetFile ) throws BuildException {\n        File directory = new File( targetFile.getParent() );\n        if (!directory.exists()) {\n            if (!directory.mkdirs()) {\n                throw new BuildException(\"Unable to create directory: \"\n                                         + directory.getAbsolutePath() );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [5, 7], [6, 8], [5, 9], [9, 10], [10, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 5], [8, 6], [9, 5], [10, 9], [11, 10], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getLiaison", "code": "    protected XSLTLiaison getLiaison() {\n        if (liaison == null) {\n            if (processor != null) {\n                try {\n                    resolveProcessor(processor);\n                } catch (Exception e) {\n                    throw new BuildException(e);\n                }\n            } else {\n                try {\n                    resolveProcessor(\"trax\");\n                } catch (Throwable e1) {\n                    try {\n                        resolveProcessor(\"xslp\");\n                    } catch (Throwable e2) {\n                        try {\n                            resolveProcessor(\"xalan\");\n                        } catch (Throwable e3) {\n                            e3.printStackTrace();\n                            e2.printStackTrace();\n                            throw new BuildException(e1);\n                        }\n                    }\n                }\n            }\n        }\n        return liaison;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "TRY", "LITERAL_ANCHOR", "CATCH", "CATCH", "TRY", "CALL", "THROW_RAISE", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "TRY", "CALL", "CATCH", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [4, 8], [6, 9], [7, 10], [8, 11], [10, 12], [7, 13], [11, 14], [8, 15], [12, 16], [13, 17], [14, 18], [16, 19], [12, 20], [19, 21], [20, 22], [21, 23], [19, 24], [23, 25], [21, 26], [21, 27], [24, 28], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 4], [9, 6], [10, 7], [11, 8], [12, 10], [13, 7], [14, 11], [15, 8], [16, 12], [17, 13], [18, 14], [19, 16], [20, 12], [21, 19], [22, 20], [23, 21], [24, 19], [25, 23], [26, 21], [27, 21], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "createParam", "code": "    public Param createParam() {\n        Param p = new Param();\n        params.addElement(p);\n        return p;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "configureLiaison", "code": "    protected void configureLiaison(File stylesheet) throws BuildException {\n        if (stylesheetLoaded) {\n            return;\n        }\n        stylesheetLoaded = true;\n\n        try {\n            log( \"Loading stylesheet \" + stylesheet, Project.MSG_INFO);\n            liaison.setStylesheet( stylesheet );\n            for(Enumeration e = params.elements();e.hasMoreElements();) {\n                Param p = (Param)e.nextElement();\n                liaison.addParam( p.getName(), p.getExpression() );\n            }\n        } catch (Exception ex) {\n            log(\"Failed to read stylesheet \" + stylesheet, Project.MSG_INFO);\n            throw new BuildException(ex);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "LOOP", "ASSIGN", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [5, 8], [1, 9], [1, 10], [6, 11], [2, 12], [7, 13], [4, 14], [5, 15], [10, 16], [14, 17], [5, 18], [5, 19], [16, 20], [17, 21], [18, 22], [18, 23], [15, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 5], [9, 1], [10, 1], [11, 6], [12, 2], [13, 7], [14, 4], [15, 5], [16, 10], [17, 14], [18, 5], [19, 5], [20, 16], [21, 17], [22, 18], [23, 18], [24, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "XSLTProcess", "code": "    public XSLTProcess() {\n        fileUtils = FileUtils.newFileUtils();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.0-5396", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/util/ShortField.java", "language": "java", "name": "org.apache.poi.util.ShortField", "code": "public class ShortField\n    implements FixedField\n{\n    private short     _value;\n    private final int _offset;\n\n    /**\n     * construct the ShortField with its offset into its containing\n     * byte array\n     *\n     * @param offset of the field within its byte array\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public ShortField(final int offset)\n        throws ArrayIndexOutOfBoundsException\n    {\n        if (offset < 0)\n        {\n            throw new ArrayIndexOutOfBoundsException(\"Illegal offset: \"\n                                                     + offset);\n        }\n        _offset = offset;\n    }\n\n    /**\n     * construct the ShortField with its offset into its containing\n     * byte array and initialize its value\n     *\n     * @param offset of the field within its byte array\n     * @param value the initial value\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public ShortField(final int offset, final short value)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value);\n    }\n\n    /**\n     * Construct the ShortField with its offset into its containing\n     * byte array and initialize its value from its byte array\n     *\n     * @param offset of the field within its byte array\n     * @param data the byte array to read the value from\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is not\n     *            within the range of 0..(data.length - 1)\n     */\n\n    public ShortField(final int offset, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        readFromBytes(data);\n    }\n\n    /**\n     * construct the ShortField with its offset into its containing\n     * byte array, initialize its value, and write its value to its\n     * byte array\n     *\n     * @param offset of the field within its byte array\n     * @param value the initial value\n     * @param data the byte array to write the value to\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public ShortField(final int offset, final short value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value, data);\n    }\n\n    /**\n     * get the ShortField's current value\n     *\n     * @return current value\n     */\n\n    public short get()\n    {\n        return _value;\n    }\n\n    /**\n     * set the ShortField's current value\n     *\n     * @param value to be set\n     */\n\n    public void set(final short value)\n    {\n        _value = value;\n    }\n\n    /**\n     * set the ShortField's current value and write it to a byte array\n     *\n     * @param value to be set\n     * @param data the byte array to write the value to\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of range\n     */\n\n    public void set(final short value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = value;\n        writeToBytes(data);\n    }\n\n    /* ********** START implementation of FixedField ********** */\n\n    /**\n     * set the value from its offset into an array of bytes\n     *\n     * @param data the byte array from which the value is to be read\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of range\n     */\n\n    public void readFromBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = LittleEndian.getShort(data, _offset);\n    }\n\n    /**\n     * set the value from an InputStream\n     *\n     * @param stream the InputStream from which the value is to be\n     *               read\n     *\n     * @exception BufferUnderrunException if there is not enough data\n     *            available from the InputStream\n     * @exception IOException if an IOException is thrown from reading\n     *            the InputStream\n     */\n\n    public void readFromStream(final InputStream stream)\n        throws IOException, BufferUnderrunException\n    {\n        _value = LittleEndian.readShort(stream);\n    }\n\n    /**\n     * write the value out to an array of bytes at the appropriate\n     * offset\n     *\n     * @param data the array of bytes to which the value is to be\n     *             written\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of range\n     */\n\n    public void writeToBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        LittleEndian.putShort(data, _offset, _value);\n    }\n\n    /**\n     * return the value as a String\n     *\n     * @return the value as a String\n     */\n\n    public String toString()\n    {\n        return String.valueOf(_value);", "functions": [{"function_name": "get", "code": "    public short get()\n    {\n        return _value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "set", "code": "    public void set(final short value)\n    {\n        _value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "set", "code": "    public void set(final short value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = value;\n        writeToBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readFromBytes", "code": "    public void readFromBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = LittleEndian.getShort(data, _offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "readFromStream", "code": "    public void readFromStream(final InputStream stream)\n        throws IOException, BufferUnderrunException\n    {\n        _value = LittleEndian.readShort(stream);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "writeToBytes", "code": "    public void writeToBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        LittleEndian.putShort(data, _offset, _value);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        return String.valueOf(_value);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ShortField", "code": "    public ShortField(final int offset)\n        throws ArrayIndexOutOfBoundsException\n    {\n        if (offset < 0)\n        {\n            throw new ArrayIndexOutOfBoundsException(\"Illegal offset: \"\n                                                     + offset);\n        }\n        _offset = offset;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ShortField", "code": "    public ShortField(final int offset, final short value)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ShortField", "code": "    public ShortField(final int offset, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        readFromBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ShortField", "code": "    public ShortField(final int offset, final short value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-2759", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/builder/DeadLetterChannelBuilder.java", "language": "java", "name": "org.apache.camel.builder.DeadLetterChannelBuilder", "code": "public class DeadLetterChannelBuilder extends ErrorHandlerBuilderSupport {\n    private RedeliveryPolicy redeliveryPolicy = new RedeliveryPolicy();\n    private Processor onRedelivery;\n    private ExceptionPolicyStrategy exceptionPolicyStrategy = ErrorHandlerSupport.createDefaultExceptionPolicyStrategy();\n    private ProcessorFactory deadLetterFactory;\n    private Processor defaultDeadLetterEndpoint;\n    private Expression defaultDeadLetterEndpointExpression;\n    private String defaultDeadLetterEndpointUri = \"log:org.apache.camel.DeadLetterChannel?level=error\";\n    private Logger logger = DeadLetterChannel.createDefaultLogger();\n\n    public DeadLetterChannelBuilder() {\n    }\n\n    public DeadLetterChannelBuilder(Processor processor) {\n        this(new ConstantProcessorBuilder(processor));\n    }\n\n    public DeadLetterChannelBuilder(ProcessorFactory deadLetterFactory) {\n        this.deadLetterFactory = deadLetterFactory;\n    }\n\n    public ErrorHandlerBuilder copy() {\n        DeadLetterChannelBuilder answer = new DeadLetterChannelBuilder(deadLetterFactory);\n        answer.setRedeliveryPolicy(getRedeliveryPolicy().copy());\n        return answer;\n    }\n\n    public Processor createErrorHandler(RouteContext routeContext, Processor processor) throws Exception {\n        Processor deadLetter = getDeadLetterFactory().createProcessor();\n        DeadLetterChannel answer = new DeadLetterChannel(processor, deadLetter, onRedelivery, getRedeliveryPolicy(), getLogger(), getExceptionPolicyStrategy());\n        StreamCaching.enable(routeContext);\n        configure(answer);\n        return answer;\n    }\n\n    public DeadLetterChannelBuilder backOffMultiplier(double backOffMultiplier) {\n        getRedeliveryPolicy().backOffMultiplier(backOffMultiplier);\n        return this;\n    }\n\n    public DeadLetterChannelBuilder collisionAvoidancePercent(short collisionAvoidancePercent) {\n        getRedeliveryPolicy().collisionAvoidancePercent(collisionAvoidancePercent);\n        return this;\n    }\n\n    public DeadLetterChannelBuilder initialRedeliveryDelay(long initialRedeliveryDelay) {\n        getRedeliveryPolicy().initialRedeliveryDelay(initialRedeliveryDelay);\n        return this;\n    }\n\n    public DeadLetterChannelBuilder maximumRedeliveries(int maximumRedeliveries) {\n        getRedeliveryPolicy().maximumRedeliveries(maximumRedeliveries);\n        return this;\n    }\n\n    public DeadLetterChannelBuilder maximumRedeliveryDelay(long maximumRedeliveryDelay) {\n        getRedeliveryPolicy().maximumRedeliveryDelay(maximumRedeliveryDelay);\n        return this;\n    }\n\n    public DeadLetterChannelBuilder useCollisionAvoidance() {\n        getRedeliveryPolicy().useCollisionAvoidance();\n        return this;\n    }\n\n    public DeadLetterChannelBuilder useExponentialBackOff() {\n        getRedeliveryPolicy().useExponentialBackOff();\n        return this;\n    }\n\n    public DeadLetterChannelBuilder retriesExhaustedLogLevel(LoggingLevel retriesExhaustedLogLevel) {\n        getRedeliveryPolicy().setRetriesExhaustedLogLevel(retriesExhaustedLogLevel);\n        return this;\n    }\n\n    public DeadLetterChannelBuilder retryAttemptedLogLevel(LoggingLevel retryAttemptedLogLevel) {\n        getRedeliveryPolicy().setRetryAttemptedLogLevel(retryAttemptedLogLevel);\n        return this;\n    }\n\n    /**\n     * Sets the logger used for caught exceptions\n     */\n    public DeadLetterChannelBuilder logger(Logger logger) {\n        setLogger(logger);\n        return this;\n    }\n\n    /**\n     * Sets the logging level of exceptions caught\n     */\n    public DeadLetterChannelBuilder loggingLevel(LoggingLevel level) {\n        getLogger().setLevel(level);\n        return this;\n    }\n\n    /**\n     * Sets the log used for caught exceptions\n     */\n    public DeadLetterChannelBuilder log(Log log) {\n        getLogger().setLog(log);\n        return this;\n    }\n\n    /**\n     * Sets the log used for caught exceptions\n     */\n    public DeadLetterChannelBuilder log(String log) {\n        return log(LogFactory.getLog(log));\n    }\n\n    /**\n     * Sets the log used for caught exceptions\n     */\n    public DeadLetterChannelBuilder log(Class log) {\n        return log(LogFactory.getLog(log));\n    }\n\n    /**\n     * Sets the exception policy to use\n     */\n    public DeadLetterChannelBuilder exceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy) {\n        setExceptionPolicyStrategy(exceptionPolicyStrategy);\n        return this;\n    }\n\n    /**\n     * Sets a processor that should be processed <b>before</b> a redelivey attempt.\n     * <p/>\n     * Can be used to change the {@link org.apache.camel.Exchange} <b>before</b> its being redelivered.\n     */\n    public DeadLetterChannelBuilder onRedelivery(Processor processor) {\n        setOnRedelivery(processor);\n        return this;\n    }\n\n    public RedeliveryPolicy getRedeliveryPolicy() {\n        return redeliveryPolicy;\n    }\n\n    /**\n     * Sets the redelivery policy\n     */\n    public void setRedeliveryPolicy(RedeliveryPolicy redeliveryPolicy) {\n        this.redeliveryPolicy = redeliveryPolicy;\n    }\n\n    public ProcessorFactory getDeadLetterFactory() {\n        if (deadLetterFactory == null) {\n            deadLetterFactory = new ProcessorFactory() {\n                public Processor createProcessor() {\n                    return getDefaultDeadLetterEndpoint();\n                }\n            };\n        }\n        return deadLetterFactory;\n    }\n\n    /**\n     * Sets the default dead letter queue factory\n     */\n    public void setDeadLetterFactory(ProcessorFactory deadLetterFactory) {\n        this.deadLetterFactory = deadLetterFactory;\n    }\n\n    public Processor getDefaultDeadLetterEndpoint() {\n        if (defaultDeadLetterEndpoint == null) {\n            defaultDeadLetterEndpoint = new RecipientList(getDefaultDeadLetterEndpointExpression());\n        }\n        return defaultDeadLetterEndpoint;\n    }\n\n    /**\n     * Sets the default dead letter endpoint used\n     */\n    public void setDefaultDeadLetterEndpoint(Processor defaultDeadLetterEndpoint) {\n        this.defaultDeadLetterEndpoint = defaultDeadLetterEndpoint;\n    }\n\n    public Expression getDefaultDeadLetterEndpointExpression() {\n        if (defaultDeadLetterEndpointExpression == null) {\n            defaultDeadLetterEndpointExpression = ExpressionBuilder\n                .constantExpression(getDefaultDeadLetterEndpointUri());\n        }\n        return defaultDeadLetterEndpointExpression;\n    }\n\n    /**\n     * Sets the expression used to decide the dead letter channel endpoint for\n     * an exchange if no factory is provided via\n     * {@link #setDeadLetterFactory(ProcessorFactory)}\n     */\n    public void setDefaultDeadLetterEndpointExpression(Expression defaultDeadLetterEndpointExpression) {\n        this.defaultDeadLetterEndpointExpression = defaultDeadLetterEndpointExpression;\n    }\n\n    public String getDefaultDeadLetterEndpointUri() {\n        return defaultDeadLetterEndpointUri;\n    }\n\n    /**\n     * Sets the default dead letter endpoint URI used if no factory is provided\n     * via {@link #setDeadLetterFactory(ProcessorFactory)} and no expression is\n     * provided via {@link #setDefaultDeadLetterEndpointExpression(Expression)}\n     *\n     * @param defaultDeadLetterEndpointUri the default URI if no deadletter\n     *                factory or expression is provided\n     */\n    public void setDefaultDeadLetterEndpointUri(String defaultDeadLetterEndpointUri) {\n        this.defaultDeadLetterEndpointUri = defaultDeadLetterEndpointUri;\n    }\n\n    public Logger getLogger() {\n        return logger;\n    }\n\n    public void setLogger(Logger logger) {\n        this.logger = logger;\n    }\n\n    /**\n     * Sets the exception policy strategy to use for resolving the {@link org.apache.camel.model.ExceptionType}\n     * to use for a given thrown exception\n     */\n    public ExceptionPolicyStrategy getExceptionPolicyStrategy() {\n        return exceptionPolicyStrategy;\n    }\n\n    public void setExceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy) {\n        this.exceptionPolicyStrategy = exceptionPolicyStrategy;\n    }\n\n    public Processor getOnRedelivery() {\n        return onRedelivery;\n    }\n\n    public void setOnRedelivery(Processor onRedelivery) {\n        this.onRedelivery = onRedelivery;\n    }\n\n    @Override\n    public String toString() {\n        return \"DeadLetterChannelBuilder(\" + (deadLetterFactory != null ? deadLetterFactory : defaultDeadLetterEndpoint) + \")\";", "functions": [{"function_name": "copy", "code": "    public ErrorHandlerBuilder copy() {\n        DeadLetterChannelBuilder answer = new DeadLetterChannelBuilder(deadLetterFactory);\n        answer.setRedeliveryPolicy(getRedeliveryPolicy().copy());\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createErrorHandler", "code": "    public Processor createErrorHandler(RouteContext routeContext, Processor processor) throws Exception {\n        Processor deadLetter = getDeadLetterFactory().createProcessor();\n        DeadLetterChannel answer = new DeadLetterChannel(processor, deadLetter, onRedelivery, getRedeliveryPolicy(), getLogger(), getExceptionPolicyStrategy());\n        StreamCaching.enable(routeContext);\n        configure(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [8, 10], [8, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 8], [11, 8], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "backOffMultiplier", "code": "    public DeadLetterChannelBuilder backOffMultiplier(double backOffMultiplier) {\n        getRedeliveryPolicy().backOffMultiplier(backOffMultiplier);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "collisionAvoidancePercent", "code": "    public DeadLetterChannelBuilder collisionAvoidancePercent(short collisionAvoidancePercent) {\n        getRedeliveryPolicy().collisionAvoidancePercent(collisionAvoidancePercent);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "initialRedeliveryDelay", "code": "    public DeadLetterChannelBuilder initialRedeliveryDelay(long initialRedeliveryDelay) {\n        getRedeliveryPolicy().initialRedeliveryDelay(initialRedeliveryDelay);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "maximumRedeliveries", "code": "    public DeadLetterChannelBuilder maximumRedeliveries(int maximumRedeliveries) {\n        getRedeliveryPolicy().maximumRedeliveries(maximumRedeliveries);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "maximumRedeliveryDelay", "code": "    public DeadLetterChannelBuilder maximumRedeliveryDelay(long maximumRedeliveryDelay) {\n        getRedeliveryPolicy().maximumRedeliveryDelay(maximumRedeliveryDelay);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "useCollisionAvoidance", "code": "    public DeadLetterChannelBuilder useCollisionAvoidance() {\n        getRedeliveryPolicy().useCollisionAvoidance();\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "useExponentialBackOff", "code": "    public DeadLetterChannelBuilder useExponentialBackOff() {\n        getRedeliveryPolicy().useExponentialBackOff();\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "retriesExhaustedLogLevel", "code": "    public DeadLetterChannelBuilder retriesExhaustedLogLevel(LoggingLevel retriesExhaustedLogLevel) {\n        getRedeliveryPolicy().setRetriesExhaustedLogLevel(retriesExhaustedLogLevel);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "retryAttemptedLogLevel", "code": "    public DeadLetterChannelBuilder retryAttemptedLogLevel(LoggingLevel retryAttemptedLogLevel) {\n        getRedeliveryPolicy().setRetryAttemptedLogLevel(retryAttemptedLogLevel);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "logger", "code": "    public DeadLetterChannelBuilder logger(Logger logger) {\n        setLogger(logger);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "loggingLevel", "code": "    public DeadLetterChannelBuilder loggingLevel(LoggingLevel level) {\n        getLogger().setLevel(level);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "log", "code": "    public DeadLetterChannelBuilder log(Log log) {\n        getLogger().setLog(log);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "log", "code": "    public DeadLetterChannelBuilder log(String log) {\n        return log(LogFactory.getLog(log));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "log", "code": "    public DeadLetterChannelBuilder log(Class log) {\n        return log(LogFactory.getLog(log));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "exceptionPolicyStrategy", "code": "    public DeadLetterChannelBuilder exceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy) {\n        setExceptionPolicyStrategy(exceptionPolicyStrategy);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "onRedelivery", "code": "    public DeadLetterChannelBuilder onRedelivery(Processor processor) {\n        setOnRedelivery(processor);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRedeliveryPolicy", "code": "    public RedeliveryPolicy getRedeliveryPolicy() {\n        return redeliveryPolicy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRedeliveryPolicy", "code": "    public void setRedeliveryPolicy(RedeliveryPolicy redeliveryPolicy) {\n        this.redeliveryPolicy = redeliveryPolicy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDeadLetterFactory", "code": "    public ProcessorFactory getDeadLetterFactory() {\n        if (deadLetterFactory == null) {\n            deadLetterFactory = new ProcessorFactory() {\n                public Processor createProcessor() {\n                    return getDefaultDeadLetterEndpoint();\n                }\n            };\n        }\n        return deadLetterFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setDeadLetterFactory", "code": "    public void setDeadLetterFactory(ProcessorFactory deadLetterFactory) {\n        this.deadLetterFactory = deadLetterFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultDeadLetterEndpoint", "code": "    public Processor getDefaultDeadLetterEndpoint() {\n        if (defaultDeadLetterEndpoint == null) {\n            defaultDeadLetterEndpoint = new RecipientList(getDefaultDeadLetterEndpointExpression());\n        }\n        return defaultDeadLetterEndpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setDefaultDeadLetterEndpoint", "code": "    public void setDefaultDeadLetterEndpoint(Processor defaultDeadLetterEndpoint) {\n        this.defaultDeadLetterEndpoint = defaultDeadLetterEndpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultDeadLetterEndpointExpression", "code": "    public Expression getDefaultDeadLetterEndpointExpression() {\n        if (defaultDeadLetterEndpointExpression == null) {\n            defaultDeadLetterEndpointExpression = ExpressionBuilder\n                .constantExpression(getDefaultDeadLetterEndpointUri());\n        }\n        return defaultDeadLetterEndpointExpression;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setDefaultDeadLetterEndpointExpression", "code": "    public void setDefaultDeadLetterEndpointExpression(Expression defaultDeadLetterEndpointExpression) {\n        this.defaultDeadLetterEndpointExpression = defaultDeadLetterEndpointExpression;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultDeadLetterEndpointUri", "code": "    public String getDefaultDeadLetterEndpointUri() {\n        return defaultDeadLetterEndpointUri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefaultDeadLetterEndpointUri", "code": "    public void setDefaultDeadLetterEndpointUri(String defaultDeadLetterEndpointUri) {\n        this.defaultDeadLetterEndpointUri = defaultDeadLetterEndpointUri;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLogger", "code": "    public Logger getLogger() {\n        return logger;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLogger", "code": "    public void setLogger(Logger logger) {\n        this.logger = logger;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExceptionPolicyStrategy", "code": "    public ExceptionPolicyStrategy getExceptionPolicyStrategy() {\n        return exceptionPolicyStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExceptionPolicyStrategy", "code": "    public void setExceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy) {\n        this.exceptionPolicyStrategy = exceptionPolicyStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOnRedelivery", "code": "    public Processor getOnRedelivery() {\n        return onRedelivery;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOnRedelivery", "code": "    public void setOnRedelivery(Processor onRedelivery) {\n        this.onRedelivery = onRedelivery;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"DeadLetterChannelBuilder(\" + (deadLetterFactory != null ? deadLetterFactory : defaultDeadLetterEndpoint) + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "DeadLetterChannelBuilder", "code": "    public DeadLetterChannelBuilder() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DeadLetterChannelBuilder", "code": "    public DeadLetterChannelBuilder(Processor processor) {\n        this(new ConstantProcessorBuilder(processor));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DeadLetterChannelBuilder", "code": "    public DeadLetterChannelBuilder(ProcessorFactory deadLetterFactory) {\n        this.deadLetterFactory = deadLetterFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.7-8125", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/trace/GenerateEvent.java", "language": "java", "name": "org.apache.xalan.trace.GenerateEvent", "code": "public class GenerateEvent implements java.util.EventListener\n{\n\n  /**\n   * The XSLT Transformer, which either directly or indirectly contains most needed information.\n   *\n   * @see org.apache.xalan.transformer.TransformerImpl\n   */\n  public TransformerImpl m_processor;\n\n  /**\n   * The type of SAX event that was generated, as enumerated in the EVENTTYPE_XXX constants below.\n   */\n  public int m_eventtype;\n\n\n  /**\n   * Character data from a character or cdata event.\n   */\n  public char m_characters[];\n\n  /**\n   * The start position of the current data in m_characters.\n   */\n  public int m_start;\n\n  /**\n   * The length of the current data in m_characters.\n   */\n  public int m_length;\n\n  /**\n   * The name of the element or PI.\n   */\n  public String m_name;\n\n  /**\n   * The string data in the element (comments and PIs).\n   */\n  public String m_data;\n\n  /**\n   * The current attribute list.\n   */\n  public Attributes m_atts;\n\n  /**\n   * Constructor for startDocument, endDocument events.\n   *\n   * @param processor The XSLT TransformerFactory instance.\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   */\n  public GenerateEvent(TransformerImpl processor, int eventType)\n  {\n    m_processor = processor;\n    m_eventtype = eventType;\n  }\n\n  /**\n   * Constructor for startElement, endElement events.\n   *\n   * @param processor The XSLT TransformerFactory Instance.\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param name The name of the element.\n   * @param atts The SAX attribute list.\n   */\n  public GenerateEvent(TransformerImpl processor, int eventType, String name,\n                       Attributes atts)\n  {\n\n    m_name = name;\n    m_atts = atts;\n    m_processor = processor;\n    m_eventtype = eventType;\n  }\n\n  /**\n   * Constructor for characters, cdate events.\n   *\n   * @param processor The XSLT TransformerFactory instance.\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param ch The char array from the SAX event.\n   * @param start The start offset to be used in the char array.\n   * @param length The end offset to be used in the chara array.\n   */\n  public GenerateEvent(TransformerImpl processor, int eventType, char ch[],\n                       int start, int length)\n  {\n\n    m_characters = ch;\n    m_start = start;\n    m_length = length;\n    m_processor = processor;\n    m_eventtype = eventType;\n  }\n\n  /**\n   * Constructor for processingInstruction events.\n   *\n   * @param processor The instance of the XSLT processor.\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param name The name of the processing instruction.\n   * @param data The processing instruction data.\n   */\n  public GenerateEvent(TransformerImpl processor, int eventType, String name,\n                       String data)\n  {\n\n    m_name = name;\n    m_data = data;\n    m_processor = processor;\n    m_eventtype = eventType;\n  }\n\n  /**\n   * Constructor for comment and entity ref events.\n   *\n   * @param processor The XSLT processor instance.\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param data The comment or entity ref data.\n   */\n  public GenerateEvent(TransformerImpl processor, int eventType, String data)\n  {\n\n    m_data = data;\n    m_processor = processor;\n    m_eventtype = eventType;", "functions": [{"function_name": "GenerateEvent", "code": "  public GenerateEvent(TransformerImpl processor, int eventType)\n  {\n    m_processor = processor;\n    m_eventtype = eventType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "GenerateEvent", "code": "  public GenerateEvent(TransformerImpl processor, int eventType, String name,\n                       Attributes atts)\n  {\n\n    m_name = name;\n    m_atts = atts;\n    m_processor = processor;\n    m_eventtype = eventType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "GenerateEvent", "code": "  public GenerateEvent(TransformerImpl processor, int eventType, char ch[],\n                       int start, int length)\n  {\n\n    m_characters = ch;\n    m_start = start;\n    m_length = length;\n    m_processor = processor;\n    m_eventtype = eventType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "GenerateEvent", "code": "  public GenerateEvent(TransformerImpl processor, int eventType, String name,\n                       String data)\n  {\n\n    m_name = name;\n    m_data = data;\n    m_processor = processor;\n    m_eventtype = eventType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "GenerateEvent", "code": "  public GenerateEvent(TransformerImpl processor, int eventType, String data)\n  {\n\n    m_data = data;\n    m_processor = processor;\n    m_eventtype = eventType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "poi-2.5-5679", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/formula/MissingArgPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.MissingArgPtg", "code": "public class MissingArgPtg\n    extends  Ptg\n{\n   \n    private final static int SIZE = 1;\n    public final static byte sid  = 0x16;\n   \n    public MissingArgPtg()\n    {\n    }\n\n    public MissingArgPtg(byte [] data, int offset)\n    {\n    }\n    \n  \n     \n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n   \n    public String toFormulaString(Workbook book)\n    {\n        return \" \";\n    }\n    \n    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}\n        \n    public Object clone() {\n      return new MissingArgPtg();", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \" \";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      return new MissingArgPtg();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MissingArgPtg", "code": "    public MissingArgPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "MissingArgPtg", "code": "    public MissingArgPtg(byte [] data, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-2.0-5526", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/RefreshAllRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.RefreshAllRecord", "code": "public class RefreshAllRecord\n    extends Record\n{\n    public final static short sid = 0x1B7;\n    private short             field_1_refreshall;\n\n    public RefreshAllRecord()\n    {\n    }\n\n    /**\n     * Constructs a RefreshAll record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x187 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public RefreshAllRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a RefreshAll record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x187 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record data\n     */\n\n    public RefreshAllRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A REFRESHALL RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_refreshall = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set whether to refresh all external data when loading a sheet\n     * @param refreshall or not\n     */\n\n    public void setRefreshAll(boolean refreshall)\n    {\n        if (refreshall)\n        {\n            field_1_refreshall = 1;\n        }\n        else\n        {\n            field_1_refreshall = 0;\n        }\n    }\n\n    /**\n     * get whether to refresh all external data when loading a sheet\n     * @return refreshall or not\n     */\n\n    public boolean getRefreshAll()\n    {\n        return (field_1_refreshall == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[REFRESHALL]\\n\");\n        buffer.append(\"    .refreshall      = \").append(getRefreshAll())\n            .append(\"\\n\");\n        buffer.append(\"[/REFRESHALL]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_refreshall);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A REFRESHALL RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_refreshall = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setRefreshAll", "code": "    public void setRefreshAll(boolean refreshall)\n    {\n        if (refreshall)\n        {\n            field_1_refreshall = 1;\n        }\n        else\n        {\n            field_1_refreshall = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getRefreshAll", "code": "    public boolean getRefreshAll()\n    {\n        return (field_1_refreshall == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[REFRESHALL]\\n\");\n        buffer.append(\"    .refreshall      = \").append(getRefreshAll())\n            .append(\"\\n\");\n        buffer.append(\"[/REFRESHALL]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_refreshall);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RefreshAllRecord", "code": "    public RefreshAllRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "RefreshAllRecord", "code": "    public RefreshAllRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RefreshAllRecord", "code": "    public RefreshAllRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.2-4405", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "bsh/Interpreter.java", "language": "java", "name": "bsh.Interpreter", "code": "public class Interpreter \n\timplements Runnable, ConsoleInterface,Serializable\n{\n\t/* --- Begin static members --- */\n\n\tpublic static final String VERSION = \"2.0b1.1-jedit-1\";\n\t/*\n\t\tDebug utils are static so that they are reachable by code that doesn't\n\t\tnecessarily have an interpreter reference (e.g. tracing in utils).\n\t\tIn the future we may want to allow debug/trace to be turned on on\n\t\ta per interpreter basis, in which case we'll need to use the parent \n\t\treference in some way to determine the scope of the command that \n\t\tturns it on or off.\n\t*/\n    public static boolean DEBUG, TRACE, LOCALSCOPING;\n\n\t// This should be per instance\n    transient static PrintStream debug;\n\tstatic String systemLineSeparator = \"\\n\"; // default\n\n\tstatic { \n\t\tstaticInit();\n\t}\n\n\t/** Shared system object visible under bsh.system */\n\tstatic This sharedObject;\n\n\t/** \n\t\tStrict Java mode \n\t\t@see setStrictJava( boolean )\n\t*/\n\tprivate boolean strictJava = false;\n\n\t/* --- End static members --- */\n\n\t/* --- Instance data --- */\n\n\ttransient Parser parser;\n    NameSpace globalNameSpace;\n    transient Reader in;\n    transient PrintStream out;\n    transient PrintStream err;\n    ConsoleInterface console; \n\n\t/** If this interpeter is a child of another, the parent */\n\tInterpreter parent;\n\n\t/** The name of the file or other source that this interpreter is reading */\n\tString sourceFileInfo;\n\n\t/** by default in interactive mode System.exit() on EOF */\n\tprivate boolean exitOnEOF = true;\n\n    protected boolean \n\t\tevalOnly, \t\t// Interpreter has no input stream, use eval() only\n\t\tinteractive;\t// Interpreter has a user, print prompts, etc.\n\n\t/* --- End instance data --- */\n\n\t/**\n\t\tThe main constructor.\n\t\tAll constructors should now pass through here.\n\n\t\t@param namespace If namespace is non-null then this interpreter's \n\t\troot namespace will be set to the one provided.  If it is null a new \n\t\tone will be created for it.\n\t\t@param parent The parent interpreter if this interpreter is a child \n\t\t\tof another.  May be null.  Children share a BshClassManager with\n\t\t\ttheir parent instance.\n\t\t@param sourceFileInfo An informative string holding the filename \n\t\tor other description of the source from which this interpreter is\n\t\treading... used for debugging.  May be null.\n\t*/\n    public Interpreter(\n\t\tReader in, PrintStream out, PrintStream err, \n\t\tboolean interactive, NameSpace namespace,\n\t\tInterpreter parent, String sourceFileInfo )\n    {\n\t\tparser = new Parser( in );\n\t\tlong t1=System.currentTimeMillis();\n        this.in = in;\n        this.out = out;\n        this.err = err;\n        this.interactive = interactive;\n\t\tdebug = err;\n\t\tthis.parent = parent;\n\t\tif ( parent != null )\n\t\t\tsetStrictJava( parent.getStrictJava() );\n\t\tthis.sourceFileInfo = sourceFileInfo;\n\n\t\tBshClassManager bcm = BshClassManager.createClassManager( this );\n\t\tif ( namespace == null )\n        \tthis.globalNameSpace = new NameSpace( bcm, \"global\");\n\t\telse\n\t\t\tthis.globalNameSpace = namespace;\n\n\t\t// now done in NameSpace automatically when root\n\t\t// The classes which are imported by default\n\t\t//globalNameSpace.loadDefaultImports();\n\n\t\t/* \n\t\t\tCreate the root \"bsh\" system object if it doesn't exist.\n\t\t*/\n\t\tif ( ! ( getu(\"bsh\") instanceof bsh.This ) )\n\t\t\tinitRootSystemObject();\n\n\t\tif ( interactive )\n\t\t\tloadRCFiles();\n\n\t\tlong t2=System.currentTimeMillis();\n\t\tif ( Interpreter.DEBUG ) \n\t\t\tInterpreter.debug(\"Time to initialize interpreter: \"+(t2-t1));\n    }\n\n    public Interpreter(\n\t\tReader in, PrintStream out, PrintStream err, \n\t\tboolean interactive, NameSpace namespace)\n    {\n\t\tthis( in, out, err, interactive, namespace, null, null );\n\t}\n\n    public Interpreter(\n\t\tReader in, PrintStream out, PrintStream err, boolean interactive)\n    {\n        this(in, out, err, interactive, null);\n    }\n\n\t/**\n\t\tConstruct a new interactive interpreter attached to the specified \n\t\tconsole using the specified parent namespace.\n\t*/\n    public Interpreter(ConsoleInterface console, NameSpace globalNameSpace) {\n\n        this( console.getIn(), console.getOut(), console.getErr(), \n\t\t\ttrue, globalNameSpace );\n\n\t\tsetConsole( console );\n    }\n\n\t/**\n\t\tConstruct a new interactive interpreter attached to the specified \n\t\tconsole.\n\t*/\n    public Interpreter(ConsoleInterface console) {\n        this(console, null);\n    }\n\n\t/**\n\t\tCreate an interpreter for evaluation only.\n\t*/\n    public Interpreter()\n    {\n\t\tthis( new StringReader(\"\"), \n\t\t\tSystem.out, System.err, false, null );\n        evalOnly = true;\n\t\tsetu( \"bsh.evalOnly\", new Primitive(true) );\n    }\n\n\t// End constructors\n\n\t/**\n\t\tAttach a console\n\t\tNote: this method is incomplete.\n\t*/\n\tpublic void setConsole( ConsoleInterface console ) {\n\t\tthis.console = console;\n\t\tsetu( \"bsh.console\", console );\n\t\t// redundant with constructor\n\t\tsetOut( console.getOut() );\n\t\tsetErr( console.getErr() );\n\t\t// need to set the input stream - reinit the parser?\n\t}\n\n\tprivate void initRootSystemObject() \n\t{\n\t\tBshClassManager bcm = getClassManager();\n\t\t// bsh\n\t\tsetu(\"bsh\", new NameSpace( bcm, \"Bsh Object\" ).getThis( this ) );\n\n\t\t// init the static shared sharedObject if it's not there yet\n\t\tif ( sharedObject == null )\n\t\t\tsharedObject = new NameSpace( \n\t\t\t\tbcm, \"Bsh Shared System Object\" ).getThis( this );\n\t\t// bsh.system\n\t\tsetu( \"bsh.system\", sharedObject );\n\t\tsetu( \"bsh.shared\", sharedObject ); // alias\n\n\t\t// bsh.help\n\t\tThis helpText = new NameSpace( \n\t\t\tbcm, \"Bsh Command Help Text\" ).getThis( this );\n\t\tsetu( \"bsh.help\", helpText );\n\n\t\t// bsh.cwd\n\t\ttry {\n\t\t\tsetu( \"bsh.cwd\", System.getProperty(\"user.dir\") );\n\t\t} catch ( SecurityException e ) { \n\t\t\t// applets can't see sys props\n\t\t\tsetu( \"bsh.cwd\", \".\" );\n\t\t}\n\n\t\t// bsh.interactive\n\t\tsetu( \"bsh.interactive\", new Primitive(interactive) );\n\t\t// bsh.evalOnly\n\t\tsetu( \"bsh.evalOnly\", new Primitive(evalOnly) );\n\t}\n\n\t/**\n\t\tSet the global namespace for this interpreter.\n\t\t<p>\n\n\t\tNote: This is here for completeness.  If you're using this a lot \n\t\tit may be an indication that you are doing more work than you have \n\t\tto.  For example, caching the interpreter instance rather than the \n\t\tnamespace should not add a significant overhead.  No state other \n\t\tthan the debug status is stored in the interpreter.\n\t\t<p>\n\n\t\tAll features of the namespace can also be accessed using the \n\t\tinterpreter via eval() and the script variable 'this.namespace'\n\t\t(or global.namespace as necessary).\n\t*/\n\tpublic void setNameSpace( NameSpace globalNameSpace ) {\n\t\tthis.globalNameSpace = globalNameSpace;\n\t}\n\n\t/**\n\t\tGet the global namespace of this interpreter.\n\t\t<p>\n\n\t\tNote: This is here for completeness.  If you're using this a lot \n\t\tit may be an indication that you are doing more work than you have \n\t\tto.  For example, caching the interpreter instance rather than the \n\t\tnamespace should not add a significant overhead.  No state other than \n\t\tthe debug status is stored in the interpreter.  \n\t\t<p>\n\n\t\tAll features of the namespace can also be accessed using the \n\t\tinterpreter via eval() and the script variable 'this.namespace'\n\t\t(or global.namespace as necessary).\n\t*/\n\tpublic NameSpace getNameSpace() {\n\t\treturn globalNameSpace;\n\t}\n\n\t/**\n\t\tRun the text only interpreter on the command line or specify a file.\n\t*/\n    public static void main( String [] args ) \n\t{\n        if ( args.length > 0 ) {\n\t\t\tString filename = args[0];\n\n\t\t\tString [] bshArgs;\n\t\t\tif ( args.length > 1 ) {\n\t\t\t\tbshArgs = new String [ args.length -1 ];\n\t\t\t\tSystem.arraycopy( args, 1, bshArgs, 0, args.length-1 );\n\t\t\t} else\n\t\t\t\tbshArgs = new String [0];\n\n            Interpreter interpreter = new Interpreter();\n\t\t\tinterpreter.setu( \"bsh.args\", bshArgs );\n\t\t\ttry {\n\t\t\t\tObject result = \n\t\t\t\t\tinterpreter.source( filename, interpreter.globalNameSpace );\n\t\t\t\tif ( result instanceof Class )\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinvokeMain( (Class)result, bshArgs );\n\t\t\t\t\t} catch ( Exception e ) \n\t\t\t\t\t{\n\t\t\t\t\t\tObject o = e;\n\t\t\t\t\t\tif ( e instanceof InvocationTargetException )\n\t\t\t\t\t\t\to = ((InvocationTargetException)e)\n\t\t\t\t\t\t\t\t.getTargetException();\n\t\t\t\t\t\tSystem.err.println(\n\t\t\t\t\t\t\t\"Class: \"+result+\" main method threw exception:\"+o);\n\t\t\t\t\t}\n\t\t\t} catch ( FileNotFoundException e ) {\n\t\t\t\tSystem.out.println(\"File not found: \"+e);\n\t\t\t} catch ( TargetError e ) {\n\t\t\t\tSystem.out.println(\"Script threw exception: \"+e);\n\t\t\t\tif ( e.inNativeCode() )\n\t\t\t\t\te.printStackTrace( DEBUG, System.err );\n\t\t\t} catch ( EvalError e ) {\n\t\t\t\tSystem.out.println(\"Evaluation Error: \"+e);\n\t\t\t} catch ( IOException e ) {\n\t\t\t\tSystem.out.println(\"I/O Error: \"+e);\n\t\t\t}\n        } else \n\t\t{\n\t\t\t// Workaround for JDK bug 4071281, where system.in.available() \n\t\t\t// returns too large a value. This bug has been fixed in JDK 1.2.\n\t\t\tInputStream src;\n\t\t\tif ( System.getProperty(\"os.name\").startsWith(\"Windows\") \n\t\t\t\t&& System.getProperty(\"java.version\").startsWith(\"1.1.\"))\n\t\t\t{\n\t\t\t\tsrc = new FilterInputStream(System.in) {\n\t\t\t\t\tpublic int available() throws IOException {\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\telse\n\t\t\t\tsrc = System.in;\n\n            Reader in = new CommandLineReader( new InputStreamReader(src));\n            Interpreter interpreter = \n\t\t\t\tnew Interpreter( in, System.out, System.err, true );\n        \tinterpreter.run();\n        }\n    }\n\n\tpublic static void invokeMain( Class clas, String [] args ) \n\t\tthrows Exception\n\t{\n    \tMethod main = Reflect.resolveJavaMethod(\n\t\t\tnull/*BshClassManager*/, clas, \"main\", \n\t\t\tnew Class [] { String [].class }, true/*onlyStatic*/ );\n\t\tif ( main != null )\n\t\t\tmain.invoke( null, new Object [] { args } );\n\t}\n\n\t/**\n\t\tRun interactively.  (printing prompts, etc.)\n\t*/\n    public void run() \n\t{\n        if(evalOnly)\n            throw new RuntimeException(\"bsh Interpreter: No stream\");\n\n        /*\n          We'll print our banner using eval(String) in order to\n          exercise the parser and get the basic expression classes loaded...\n          This ameliorates the delay after typing the first statement.\n        */\n        if ( interactive )\n\t\t\ttry { \n\t\t\t\teval(\"printBanner();\"); \n\t\t\t} catch ( EvalError e ) {\n\t\t\t\tprintln(\n\t\t\t\t\t\"BeanShell \"+VERSION+\" - by Pat Niemeyer (pat@pat.net)\");\n\t\t\t}\n\n\t\t// init the callstack.  \n\t\tCallStack callstack = new CallStack( globalNameSpace );\n\n        boolean eof = false;\n        while( !eof )\n        {\n            try\n            {\n                // try to sync up the console\n                System.out.flush();\n                System.err.flush();\n                Thread.yield();  // this helps a little\n\n                if ( interactive )\n                    print( getBshPrompt() );\n\n                eof = Line();\n\n                if( get_jjtree().nodeArity() > 0 )  // number of child nodes \n                {\n                    SimpleNode node = (SimpleNode)(get_jjtree().rootNode());\n\n                    if(DEBUG)\n                        node.dump(\">\");\n\n                    Object ret = node.eval( callstack, this );\n\t\t\t\t\n\t\t\t\t\t// sanity check during development\n\t\t\t\t\tif ( callstack.depth() > 1 )\n\t\t\t\t\t\tthrow new InterpreterError(\n\t\t\t\t\t\t\t\"Callstack growing: \"+callstack);\n\n                    if(ret instanceof ReturnControl)\n                        ret = ((ReturnControl)ret).value;\n                    if(ret != Primitive.VOID)\n                    {\n                        setu(\"$_\", ret);\n                        Object show = getu(\"bsh.show\");\n                        if(show instanceof Boolean &&\n                            ((Boolean)show).booleanValue() == true)\n                            println(\"<\" + ret + \">\");\n                    }\n                }\n            }\n            catch(ParseException e)\n            {\n                error(\"Parser Error: \" + e.getMessage(DEBUG));\n\t\t\t\tif ( DEBUG )\n                \te.printStackTrace();\n                if(!interactive)\n                    eof = true;\n\n                parser.reInitInput(in);\n            }\n            catch(InterpreterError e)\n            {\n                error(\"Internal Error: \" + e.getMessage());\n                e.printStackTrace();\n                if(!interactive)\n                    eof = true;\n            }\n            catch(TargetError e)\n            {\n                error(\"// Uncaught Exception: \" + e );\n\t\t\t\tif ( e.inNativeCode() )\n\t\t\t\t\te.printStackTrace( DEBUG, err );\n                if(!interactive)\n                    eof = true;\n\t\t\t\tsetu(\"$_e\", e.getTarget());\n            }\n            catch (EvalError e)\n            {\n\t\t\t\tif ( interactive )\n\t\t\t\t\terror( \"EvalError: \"+e.toString() );\n\t\t\t\telse\n\t\t\t\t\terror( \"EvalError: \"+e.getMessage() );\n\n                if(DEBUG)\n                    e.printStackTrace();\n\n                if(!interactive)\n                    eof = true;\n            }\n            catch(Exception e)\n            {\n                error(\"Unknown error: \" + e);\n\t\t\t\tif ( DEBUG )\n                \te.printStackTrace();\n                if(!interactive)\n                    eof = true;\n            }\n            catch(TokenMgrError e)\n            {\n\t\t\t\terror(\"Error parsing input: \" + e);\n\n\t\t\t\t/*\n\t\t\t\t\tWe get stuck in infinite loops here when unicode escapes\n\t\t\t\t\tfail.  Must re-init the char stream reader \n\t\t\t\t\t(ASCII_UCodeESC_CharStream.java)\n\t\t\t\t*/\n\t\t\t\tparser.reInitTokenInput( in );\n\n                if(!interactive)\n                    eof = true;\n            }\n            finally\n            {\n                get_jjtree().reset();\n\t\t\t\t// reinit the callstack\n\t\t\t\tif ( callstack.depth() > 1 ) {\n\t\t\t\t\tcallstack.clear();\n\t\t\t\t\tcallstack.push( globalNameSpace );\n\t\t\t\t}\n            }\n        }\n\n\t\tif ( interactive && exitOnEOF )\n\t\t\tSystem.exit(0);\n    }\n\n\t// begin source and eval\n\n\t/**\n\t\tRead text from fileName and eval it.\n\t*/\n    public Object source( String filename, NameSpace nameSpace ) \n\t\tthrows FileNotFoundException, IOException, EvalError \n\t{\n\t\tFile file = pathToFile( filename );\n\t\tif ( Interpreter.DEBUG ) debug(\"Sourcing file: \"+file);\n\t\tReader sourceIn = new BufferedReader( new FileReader(file) );\n\t\ttry {\n\t\t\treturn eval( sourceIn, nameSpace, filename );\n\t\t} finally {\n\t\t\tsourceIn.close();\n\t\t}\n\t}\n\n\t/**\n\t\tRead text from fileName and eval it.\n\t\tConvenience method.  Use the global namespace.\n\t*/\n    public Object source( String filename ) \n\t\tthrows FileNotFoundException, IOException, EvalError \n\t{\n\t\treturn source( filename, globalNameSpace );\n\t}\n\n    /**\n        Spawn a non-interactive local interpreter to evaluate text in the \n\t\tspecified namespace.  \n\n\t\tReturn value is the evaluated object (or corresponding primitive \n\t\twrapper).\n\n\t\t@param sourceFileInfo is for information purposes only.  It is used to\n\t\tdisplay error messages (and in the future may be made available to\n\t\tthe script).\n\t\t@throws EvalError on script problems\n\t\t@throws TargetError on unhandled exceptions from the script\n    */\n\t/*\n\t\tNote: we need a form of eval that passes the callstack through...\n\t*/\n\t/*\n\tCan't this be combined with run() ?\n\trun seems to have stuff in it for interactive vs. non-interactive...\n\tcompare them side by side and see what they do differently, aside from the\n\texception handling.\n\t*/\n\n    public Object eval( \n\t\tReader in, NameSpace nameSpace, String sourceFileInfo\n\t\t\t/*, CallStack callstack */ ) \n\t\tthrows EvalError \n\t{\n\t\tObject retVal = null;\n\t\tif ( Interpreter.DEBUG ) debug(\"eval: nameSpace = \"+nameSpace);\n\n\t\t/* \n\t\t\tCreate non-interactive local interpreter for this namespace\n\t\t\twith source from the input stream and out/err same as \n\t\t\tthis interpreter.\n\t\t*/\n        Interpreter localInterpreter = \n\t\t\tnew Interpreter( \n\t\t\t\tin, out, err, false, nameSpace, this, sourceFileInfo  );\n\n\t\tCallStack callstack = new CallStack( nameSpace );\n\n        boolean eof = false;\n        while(!eof)\n        {\n\t\t\tSimpleNode node = null;\n            try\n            {\n                eof = localInterpreter.Line();\n                if (localInterpreter.get_jjtree().nodeArity() > 0)\n                {\n                    node = (SimpleNode)localInterpreter.get_jjtree().rootNode();\n\t\t\t\t\t// nodes remember from where they were sourced\n\t\t\t\t\tnode.setSourceFile( sourceFileInfo );\n\n\t\t\t\t\tif ( TRACE )\n\t\t\t\t\t\tprintln( \"// \" +node.getText() );\n\n                    retVal = node.eval( callstack, localInterpreter );\n\n\t\t\t\t\t// sanity check during development\n\t\t\t\t\tif ( callstack.depth() > 1 )\n\t\t\t\t\t\tthrow new InterpreterError(\n\t\t\t\t\t\t\t\"Callstack growing: \"+callstack);\n\n                    if ( retVal instanceof ReturnControl ) {\n                        retVal = ((ReturnControl)retVal).value;\n\t\t\t\t\t\tbreak; // non-interactive, return control now\n\t\t\t\t\t}\n                }\n            } catch(ParseException e) {\n\t\t\t\t/*\n                throw new EvalError(\n\t\t\t\t\t\"Sourced file: \"+sourceFileInfo+\" parser Error: \" \n\t\t\t\t\t+ e.getMessage( DEBUG ), node, callstack );\n\t\t\t\t*/\n\t\t\t\tif ( DEBUG )\n\t\t\t\t\t// show extra \"expecting...\" info\n\t\t\t\t\terror( e.getMessage(DEBUG) );\n\n\t\t\t\t// add the source file info and throw again\n\t\t\t\te.setErrorSourceFile( sourceFileInfo );\n\t\t\t\tthrow e;\n\n            } catch ( InterpreterError e ) {\n                e.printStackTrace();\n                throw new EvalError(\n\t\t\t\t\t\"Sourced file: \"+sourceFileInfo+\" internal Error: \" \n\t\t\t\t\t+ e.getMessage(), node, callstack);\n            } catch ( TargetError e ) {\n\t\t\t\t// failsafe, set the Line as the origin of the error.\n\t\t\t\tif ( e.getNode()==null )\n\t\t\t\t\te.setNode( node );\n\t\t\t\te.reThrow(\"Sourced file: \"+sourceFileInfo);\n            } catch ( EvalError e) {\n                if ( DEBUG)\n                    e.printStackTrace();\n\t\t\t\t// failsafe, set the Line as the origin of the error.\n\t\t\t\tif ( e.getNode()==null )\n\t\t\t\t\te.setNode( node );\n\t\t\t\te.reThrow( \"Sourced file: \"+sourceFileInfo );\n            } catch ( Exception e) {\n                if ( DEBUG)\n                \te.printStackTrace();\n                throw new EvalError(\n\t\t\t\t\t\"Sourced file: \"+sourceFileInfo+\" unknown error: \" \n\t\t\t\t\t+ e.getMessage(), node, callstack);\n            } catch(TokenMgrError e) {\n                throw new EvalError(\n\t\t\t\t\t\"Sourced file: \"+sourceFileInfo+\" Token Parsing Error: \" \n\t\t\t\t\t+ e.getMessage(), node, callstack );\n            } finally {\n                localInterpreter.get_jjtree().reset();\n\n\t\t\t\t// reinit the callstack\n\t\t\t\tif ( callstack.depth() > 1 ) {\n\t\t\t\t\tcallstack.clear();\n\t\t\t\t\tcallstack.push( nameSpace );\n\t\t\t\t}\n            }\n        }\n\t\treturn Primitive.unwrap( retVal );\n    }\n\n\t/**\n\t\tEvaluate the inputstream in this interpreter's global namespace.\n\t*/\n    public Object eval( Reader in ) throws EvalError \n\t{\n\t\treturn eval( in, globalNameSpace, \"eval stream\" );\n\t}\n\n\t/**\n\t\tEvaluate the string in this interpreter's global namespace.\n\t*/\n    public Object eval( String statements ) throws EvalError {\n\t\tif ( Interpreter.DEBUG ) debug(\"eval(String): \"+statements);\n\t\treturn eval(statements, globalNameSpace);\n\t}\n\n\t/**\n\t\tEvaluate the string in the specified namespace.\n\t*/\n    public Object eval( String statements, NameSpace nameSpace ) \n\t\tthrows EvalError \n\t{\n\n\t\tString s = ( statements.endsWith(\";\") ? statements : statements+\";\" );\n        return eval( \n\t\t\tnew StringReader(s), nameSpace, \n\t\t\t\"inline evaluation of: ``\"+ showEvalString(s)+\"''\" );\n    }\n\n\tprivate String showEvalString( String s ) {\n\t\ts = s.replace('\\n', ' ');\n\t\ts = s.replace('\\r', ' ');\n\t\tif ( s.length() > 80 )\n\t\t\ts = s.substring( 0, 80 ) + \" . . . \";\n\t\treturn s;\n\t}\n\n\t// end source and eval\n\n\t/**\n\t\tPrint an error message in a standard format on the output stream\n\t\tassociated with this interpreter. On the GUI console this will appear \n\t\tin red, etc.\n\t*/\n    public final void error( Object o ) {\n\t\tif ( console != null )\n\t\t\t\tconsole.error( \"// Error: \" + o +\"\\n\" );\n\t\telse {\n\t\t\terr.println(\"// Error: \" + o );\n\t\t\terr.flush();\n\t\t}\n    }\n\n\t// ConsoleInterface\n\t// The interpreter reflexively implements the console interface that it \n\t// uses.  Should clean this up by using an inner class to implement the\n\t// console for us.\n\n\t/** \n\t\tGet the input stream associated with this interpreter.\n\t\tThis may be be stdin or the GUI console.\n\t*/\n\tpublic Reader getIn() { return in; }\n\n\t/** \n\t\tGet the outptut stream associated with this interpreter.\n\t\tThis may be be stdout or the GUI console.\n\t*/\n\tpublic PrintStream getOut() { return out; }\n\n\t/** \n\t\tGet the error output stream associated with this interpreter.\n\t\tThis may be be stderr or the GUI console.\n\t*/\n\tpublic PrintStream getErr() { return err; }\n\n    public final void println( Object o )\n    {\n        print( String.valueOf(o) + systemLineSeparator );\n    }\n\n    public final void print( Object o )\n    {\n\t\tif (console != null) {\n            console.print(o);\n        } else {\n            out.print(o);\n            out.flush();\n        }\n    }\n\n\t// End ConsoleInterface\n\n\t/**\n\t\tPrint a debug message on debug stream associated with this interpreter\n\t\tonly if debugging is turned on.\n\t*/\n    public final static void debug(String s)\n    {\n        if ( DEBUG )\n            debug.println(\"// Debug: \" + s);\n    }\n\n\t/* \n\t\tPrimary interpreter set and get variable methods\n\t\tNote: These are squeltching errors... should they?\n\t*/\n\n\t/**\n\t\tGet the value of the name.\n\t\tname may be any value. e.g. a variable or field\n\t*/\n    public Object get( String name ) throws EvalError {\n\t\ttry {\n\t\t\tObject ret = globalNameSpace.get( name, this );\n\t\t\treturn Primitive.unwrap( ret );\n\t\t} catch ( UtilEvalError e ) { \n\t\t\tthrow e.toEvalError( SimpleNode.JAVACODE, new CallStack() ); \n\t\t}\n\t}\n\n\t/**\n\t\tUnchecked get for internal use\n\t*/\n    Object getu( String name ) {\n\t\ttry { \n\t\t\treturn get( name );\n\t\t} catch ( EvalError e ) { \n\t\t\tthrow new InterpreterError(\"set: \"+e);\n\t\t}\n\t}\n\n\t/**\n\t\tAssign the value to the name.\t\n\t\tname may evaluate to anything assignable. e.g. a variable or field.\n\t*/\n    public void set( String name, Object value )\n\t\tthrows EvalError \n\t{\n\t\t// map null to Primtive.NULL coming in...\n\t\tif ( value == null )\n\t\t\tvalue = Primitive.NULL;\n\n\t\tCallStack callstack = new CallStack();\n\t\ttry {\n\t\t\tif ( Name.isCompound( name ) ) \n\t\t\t{\n\t\t\t\tLHS lhs = globalNameSpace.getNameResolver( name ).toLHS( \n\t\t\t\t\tcallstack, this );\n\t\t\t\tlhs.assign( value, false );\n\t\t\t} else // optimization for common case\n\t\t\t\tglobalNameSpace.setVariable( name, value, false );\n\t\t} catch ( UtilEvalError e ) { \n\t\t\tthrow e.toEvalError( SimpleNode.JAVACODE, callstack ); \n\t\t}\n\t}\n\n\t/**\n\t\tUnchecked set for internal use\n\t*/\n    void setu(String name, Object value) {\n\t\ttry { \n\t\t\tset(name, value);\n\t\t} catch ( EvalError e ) { \n\t\t\tthrow new InterpreterError(\"set: \"+e);\n\t\t}\n\t}\n\n    public void set(String name, long value) throws EvalError {\n        set(name, new Primitive(value));\n\t}\n    public void set(String name, int value) throws EvalError {\n        set(name, new Primitive(value));\n\t}\n    public void set(String name, double value) throws EvalError {\n        set(name, new Primitive(value));\n\t}\n    public void set(String name, float value) throws EvalError {\n        set(name, new Primitive(value));\n\t}\n    public void set(String name, boolean value) throws EvalError {\n        set(name, new Primitive(value));\n\t}\n\n\t/**\n\t\tUnassign the variable name.\t\n\t\tName should evaluate to a variable.\n\t*/\n    public void unset( String name ) \n\t\tthrows EvalError \n\t{\n\t\t/*\n\t\t\tWe jump through some hoops here to handle arbitrary cases like\n\t\t\tunset(\"bsh.foo\");\n\t\t*/\n\t\tCallStack callstack = new CallStack();\n\t\ttry {\n\t\t\tLHS lhs = globalNameSpace.getNameResolver( name ).toLHS( \n\t\t\t\tcallstack, this );\n\n\t\t\tif ( lhs.type != LHS.VARIABLE )\n\t\t\t\tthrow new EvalError(\"Can't unset, not a variable: \"+name, \n\t\t\t\t\tSimpleNode.JAVACODE, new CallStack() );\n\n\t\t\t//lhs.assign( null, false );\n\t\t\tlhs.nameSpace.unsetVariable( name );\n\t\t} catch ( UtilEvalError e ) {\n\t\t\tthrow new EvalError( e.getMessage(), \n\t\t\t\tSimpleNode.JAVACODE, new CallStack() );\n\t\t}\n\t}\n\n\t// end primary set and get methods\n\n\t/**\n\t\tGet a reference to the interpreter (global namespace), cast \n\t\tto the specified interface type.  Assuming the appropriate \n\t\tmethods of the interface are defined in the interpreter, then you may \n\t\tuse this interface from Java, just like any other Java object.\n\t\t<p>\n\n\t\tFor example:\n\t\t<pre>\n\t\t\tInterpreter interpreter = new Interpreter();\n\t\t\t// define a method called run()\n\t\t\tinterpreter.eval(\"run() { ... }\");\n\t\t\n\t\t\t// Fetch a reference to the interpreter as a Runnable\n\t\t\tRunnable runnable = \n\t\t\t\t(Runnable)interpreter.getInterface( Runnable.class );\n\t\t</pre>\n\t\t<p>\n\n\t\tNote that the interpreter does *not* require that any or all of the\n\t\tmethods of the interface be defined at the time the interface is\n\t\tgenerated.  However if you attempt to invoke one that is not defined\n\t\tyou will get a runtime exception.\n\t\t<p>\n\n\t\tNote also that this convenience method has exactly the same effect as \n\t\tevaluating the script:\n\t\t<pre>\n\t\t\t(Type)this;\n\t\t</pre>\n\t\t<p>\n\n\t\tFor example, the following is identical to the previous example:\n\t\t<p>\n\n\t\t<pre>\n\t\t\t// Fetch a reference to the interpreter as a Runnable\n\t\t\tRunnable runnable = \n\t\t\t\t(Runnable)interpreter.eval( \"(Runnable)this\" );\n\t\t</pre>\n\t\t<p>\n\n\t\t<em>Version requirement</em> Although standard Java interface types \n\t\tare always available, to be used with arbitrary interfaces this \n\t\tfeature requires that you are using Java 1.3 or greater.\n\t\t<p>\n\n\t\t@throws EvalError if the interface cannot be generated because the\n\t\tversion of Java does not support the proxy mechanism. \n\t*/\n\tpublic Object getInterface( Class interf ) throws EvalError\n\t{\n\t\ttry {\n\t\t\treturn globalNameSpace.getThis( this ).getInterface( interf );\n\t\t} catch ( UtilEvalError e ) {\n\t\t\tthrow e.toEvalError( SimpleNode.JAVACODE, new CallStack() );\n\t\t}\n\t}\n\n\t/*\tMethods for interacting with Parser */\n\n\tprivate JJTParserState get_jjtree() {\n\t\treturn parser.jjtree;\n\t}\n\n  \tprivate JavaCharStream get_jj_input_stream() {\n\t\treturn parser.jj_input_stream;\n\t}\n\n  \tprivate boolean Line() throws ParseException {\n\t\treturn parser.Line();\n\t}\n\n\t/*\tEnd methods for interacting with Parser */\n\n\tvoid loadRCFiles() {\n\t\ttry {\n\t\t\tString rcfile = \n\t\t\t\t// Default is c:\\windows under win98, $HOME under Unix\n\t\t\t\tSystem.getProperty(\"user.home\") + File.separator + \".bshrc\";\n\t\t\tsource( rcfile, globalNameSpace );\n\t\t} catch ( Exception e ) { \n\t\t\t// squeltch security exception, filenotfoundexception\n\t\t\tif ( Interpreter.DEBUG ) debug(\"Could not find rc file: \"+e);\n\t\t}\n\t}\n\n\t/**\n\t\tLocalize a path to the file name based on the bsh.cwd interpreter \n\t\tworking directory.\n\t*/\n    public File pathToFile( String fileName ) \n\t\tthrows IOException\n\t{\n\t\tFile file = new File( fileName );\n\n\t\t// if relative, fix up to bsh.cwd\n\t\tif ( !file.isAbsolute() ) {\n\t\t\tString cwd = (String)getu(\"bsh.cwd\");\n\t\t\tfile = new File( cwd + File.separator + fileName );\n\t\t}\n\n\t\t// The canonical file name is also absolute.\n\t\t// No need for getAbsolutePath() here...\n\t\treturn new File( file.getCanonicalPath() );\n\t}\n\n\tpublic static void redirectOutputToFile( String filename ) \n\t{\n\t\ttry {\n\t\t\tPrintStream pout = new PrintStream( \n\t\t\t\tnew FileOutputStream( filename ) );\n\t\t\tSystem.setOut( pout );\n\t\t\tSystem.setErr( pout );\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.err.println(\"Can't redirect output to file: \"+filename );\n\t\t}\n\t}\n\n\t/**\n\t\tSet an external class loader to be used for all basic class loading\n\t\tin BeanShell.  \n\t\t<p>\n\n\t\tBeanShell will use this at the same point it would otherwise use the \n\t\tplain Class.forName().\n\t\ti.e. if no explicit classpath management is done from the script\n\t\t(addClassPath(), setClassPath(), reloadClasses()) then BeanShell will\n\t\tonly use the supplied classloader.  If additional classpath management\n\t\tis done then BeanShell will perform that in addition to the supplied\n\t\texternal classloader.  \n\t\tHowever BeanShell is not currently able to reload\n\t\tclasses supplied through the external classloader.\n\t\t<p>\n\n\t\t@see BshClassManager#setClassLoader( ClassLoader )\n\t*/\n\tpublic void setClassLoader( ClassLoader externalCL ) {\n\t\tgetClassManager().setClassLoader( externalCL );\n\t}\n\n\t/**\n\t\tGet the class manager associated with this interpreter\n\t\t(the BshClassManager of this interpreter's global namespace).\n\t\tThis is primarily a convenience method.\n\t*/\n\tpublic BshClassManager getClassManager() \n\t{\n\t\treturn getNameSpace().getClassManager();\n\t}\n\t\n\t/**\n\t\tSet strict Java mode on or off.  \n\t\tThis mode attempts to make BeanShell syntax behave as Java\n\t\tsyntax, eliminating conveniences like loose variables, etc.\n\t\tWhen enabled, variables are required to be declared or initialized \n\t\tbefore use and method arguments are reqired to have types. \n\t\t<p>\n\n\t\tThis mode will become more strict in a future release when \n\t\tclasses are interpreted and there is an alternative to scripting\n\t\tobjects as method closures.\n\t*/\n\tpublic void setStrictJava( boolean b ) { \n\t\tthis.strictJava = b; \n\t}\n\n\t/**\n\t\t@see #setStrictJava( boolean )\n\t*/\n\tpublic boolean getStrictJava() { \n\t\treturn this.strictJava;\n\t}\n\n\tstatic void staticInit() \n\t{\n\t/* \n\t\tApparently in some environments you can't catch the security exception\n\t\tat all...  e.g. as an applet in IE  ... will probably have to work \n\t\taround \n\t*/\n\t\ttry {\n\t\t\tsystemLineSeparator = System.getProperty(\"line.separator\");\n    \t\tdebug = System.err;\n    \t\tDEBUG = Boolean.getBoolean(\"debug\");\n    \t\tTRACE = Boolean.getBoolean(\"trace\");\n    \t\tLOCALSCOPING = Boolean.getBoolean(\"localscoping\");\n\t\t\tString outfilename = System.getProperty(\"outfile\");\n\t\t\tif ( outfilename != null )\n\t\t\t\tredirectOutputToFile( outfilename );\n\t\t} catch ( SecurityException e ) { \n\t\t\tSystem.err.println(\"Could not init static:\"+e);\n\t\t} catch ( Exception e ) {\n\t\t\tSystem.err.println(\"Could not init static(2):\"+e);\n\t\t} catch ( Throwable e ) { \n\t\t\tSystem.err.println(\"Could not init static(3):\"+e);\n\t\t}\n\t}\n\n\t/**\n\t\tSpecify the source of the text from which this interpreter is reading.\n\t\tNote: there is a difference between what file the interrpeter is \n\t\tsourcing and from what file a method was originally parsed.  One\n\t\tfile may call a method sourced from another file.  See SimpleNode\n\t\tfor origination file info.\n\t\t@see bsh.SimpleNode#getSourceFile()\n\t*/\n\tpublic String getSourceFileInfo() { \n\t\tif ( sourceFileInfo != null )\n\t\t\treturn sourceFileInfo;\n\t\telse\n\t\t\treturn \"<unknown source>\";\n\t}\n\n\t/**\n\t\tGet the parent Interpreter of this interpreter, if any.\n\t\tCurrently this relationship implies the following:\n\t\t\t1) Parent and child share a BshClassManager\n\t\t\t2) Children indicate the parent's source file information in error\n\t\t\treporting.\n\t\tWhen created as part of a source() / eval() the child also shares\n\t\tthe parent's namespace.  But that is not necessary in general.\n\t*/\n\tpublic Interpreter getParent() {\n\t\treturn parent;\n\t}\n\n\tpublic void setOut( PrintStream out ) {\n\t\tthis.out = out;\n\t}\n\tpublic void setErr( PrintStream err ) {\n\t\tthis.err = err;\n\t}\n\n\t/**\n\t\tDe-serialization setup.\n\t\tDefault out and err streams to stdout, stderr if they are null.\n\t*/\n\tprivate void readObject(ObjectInputStream stream) \n\t\tthrows java.io.IOException, ClassNotFoundException\n\t{\n\t\tstream.defaultReadObject();\n\n\t\t// set transient fields\n\t\tif ( console != null ) {\n\t\t\tsetOut( console.getOut() );\n\t\t\tsetErr( console.getErr() );\n\t\t} else {\n\t\t\tsetOut( System.out );\n\t\t\tsetErr( System.err );\n\t\t}\n\t}\n\n\t/**\n\t\tGet the prompt string defined by the getBshPrompt() method in the\n\t\tglobal namespace.  This may be from the getBshPrompt() command or may\n\t\tbe defined by the user as with any other method.\n\t\tDefaults to \"bsh % \" if the method is not defined or there is an error.\n\t*/\n\tprivate String getBshPrompt() \n\t{\n\t\ttry {\n\t\t\treturn (String)eval(\"getBshPrompt()\");\n\t\t} catch ( Exception e ) {\n\t\t\treturn \"bsh % \";\n\t\t}\n\t}\n\n\t/**\n\t\tSpecify whether, in interactive mode, the interpreter exits Java upon\n\t\tend of input.  If true, when in interactive mode the interpreter will\n\t\tissue a System.exit(0) upon eof.  If false the interpreter no\n\t\tSystem.exit() will be done.\n\t\t<p/>\n\t\tNote: if you wish to cause an EOF externally you can try closing the\n\t\tinput stream.  This is not guaranteed to work in older versions of Java\n\t\tdue to Java limitations, but should work in newer JDK/JREs.  (That was\n\t\tthe motivation for the Java NIO package).\n\t*/\n\tpublic void setExitOnEOF( boolean value ) {\n\t\texitOnEOF = value; // ug", "functions": [{"function_name": "setConsole", "code": "\tpublic void setConsole( ConsoleInterface console ) {\n\t\tthis.console = console;\n\t\tsetu( \"bsh.console\", console );\n\t\t// redundant with constructor\n\t\tsetOut( console.getOut() );\n\t\tsetErr( console.getErr() );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "initRootSystemObject", "code": "\tprivate void initRootSystemObject() \n\t{\n\t\tBshClassManager bcm = getClassManager();\n\t\t// bsh\n\t\tsetu(\"bsh\", new NameSpace( bcm, \"Bsh Object\" ).getThis( this ) );\n\n\t\t// init the static shared sharedObject if it's not there yet\n\t\tif ( sharedObject == null )\n\t\t\tsharedObject = new NameSpace( \n\t\t\t\tbcm, \"Bsh Shared System Object\" ).getThis( this );\n\t\t// bsh.system\n\t\tsetu( \"bsh.system\", sharedObject );\n\t\tsetu( \"bsh.shared\", sharedObject ); // alias\n\n\t\t// bsh.help\n\t\tThis helpText = new NameSpace( \n\t\t\tbcm, \"Bsh Command Help Text\" ).getThis( this );\n\t\tsetu( \"bsh.help\", helpText );\n\n\t\t// bsh.cwd\n\t\ttry {\n\t\t\tsetu( \"bsh.cwd\", System.getProperty(\"user.dir\") );\n\t\t} catch ( SecurityException e ) { \n\t\t\t// applets can't see sys props\n\t\t\tsetu( \"bsh.cwd\", \".\" );\n\t\t}\n\n\t\t// bsh.interactive\n\t\tsetu( \"bsh.interactive\", new Primitive(interactive) );\n\t\t// bsh.evalOnly\n\t\tsetu( \"bsh.evalOnly\", new Primitive(evalOnly) );", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CATCH", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [3, 11], [0, 12], [5, 13], [5, 14], [6, 15], [6, 16], [1, 17], [8, 18], [2, 19], [9, 20], [10, 21], [3, 22], [11, 23], [12, 24], [12, 25], [4, 26], [7, 27], [17, 28], [17, 29], [19, 30], [19, 31], [22, 32], [24, 33], [24, 34], [27, 35], [27, 36], [28, 37], [32, 38], [32, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 3], [12, 0], [13, 5], [14, 5], [15, 6], [16, 6], [17, 1], [18, 8], [19, 2], [20, 9], [21, 10], [22, 3], [23, 11], [24, 12], [25, 12], [26, 4], [27, 7], [28, 17], [29, 17], [30, 19], [31, 19], [32, 22], [33, 24], [34, 24], [35, 27], [36, 27], [37, 28], [38, 32], [39, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "setNameSpace", "code": "\tpublic void setNameSpace( NameSpace globalNameSpace ) {\n\t\tthis.globalNameSpace = globalNameSpace;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNameSpace", "code": "\tpublic NameSpace getNameSpace() {\n\t\treturn globalNameSpace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "main", "code": "    public static void main( String [] args ) \n\t{\n        if ( args.length > 0 ) {\n\t\t\tString filename = args[0];\n\n\t\t\tString [] bshArgs;\n\t\t\tif ( args.length > 1 ) {\n\t\t\t\tbshArgs = new String [ args.length -1 ];\n\t\t\t\tSystem.arraycopy( args, 1, bshArgs, 0, args.length-1 );\n\t\t\t} else\n\t\t\t\tbshArgs = new String [0];\n\n            Interpreter interpreter = new Interpreter();\n\t\t\tinterpreter.setu( \"bsh.args\", bshArgs );\n\t\t\ttry {\n\t\t\t\tObject result = \n\t\t\t\t\tinterpreter.source( filename, interpreter.globalNameSpace );\n\t\t\t\tif ( result instanceof Class )\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinvokeMain( (Class)result, bshArgs );\n\t\t\t\t\t} catch ( Exception e ) \n\t\t\t\t\t{\n\t\t\t\t\t\tObject o = e;\n\t\t\t\t\t\tif ( e instanceof InvocationTargetException )\n\t\t\t\t\t\t\to = ((InvocationTargetException)e)\n\t\t\t\t\t\t\t\t.getTargetException();\n\t\t\t\t\t\tSystem.err.println(\n\t\t\t\t\t\t\t\"Class: \"+result+\" main method threw exception:\"+o);\n\t\t\t\t\t}\n\t\t\t} catch ( FileNotFoundException e ) {\n\t\t\t\tSystem.out.println(\"File not found: \"+e);\n\t\t\t} catch ( TargetError e ) {\n\t\t\t\tSystem.out.println(\"Script threw exception: \"+e);\n\t\t\t\tif ( e.inNativeCode() )\n\t\t\t\t\te.printStackTrace( DEBUG, System.err );\n\t\t\t} catch ( EvalError e ) {\n\t\t\t\tSystem.out.println(\"Evaluation Error: \"+e);\n\t\t\t} catch ( IOException e ) {\n\t\t\t\tSystem.out.println(\"I/O Error: \"+e);\n\t\t\t}\n        } else \n\t\t{\n\t\t\t// Workaround for JDK bug 4071281, where system.in.available() \n\t\t\t// returns too large a value. This bug has been fixed in JDK 1.2.\n\t\t\tInputStream src;\n\t\t\tif ( System.getProperty(\"os.name\").startsWith(\"Windows\") \n\t\t\t\t&& System.getProperty(\"java.version\").startsWith(\"1.1.\"))\n\t\t\t{\n\t\t\t\tsrc = new FilterInputStream(System.in) {\n\t\t\t\t\tpublic int available() throws IOException {\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\telse\n\t\t\t\tsrc = System.in;\n\n            Reader in = new CommandLineReader( new InputStreamReader(src));\n            Interpreter interpreter = \n\t\t\t\tnew Interpreter( in, System.out, System.err, true );\n        \tinterpreter.run();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CATCH", "CATCH", "CATCH", "CATCH", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "IF", "TRY", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [3, 13], [1, 14], [6, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [1, 22], [10, 23], [4, 24], [5, 25], [6, 26], [15, 27], [15, 28], [18, 29], [20, 30], [20, 31], [22, 32], [9, 33], [10, 34], [23, 35], [24, 36], [25, 37], [6, 38], [27, 39], [27, 40], [28, 41], [28, 42], [16, 43], [17, 44], [29, 45], [18, 46], [19, 47], [30, 48], [21, 49], [10, 50], [10, 51], [38, 52], [40, 53], [42, 54], [43, 55], [44, 56], [29, 57], [46, 58], [47, 59], [48, 60], [48, 61], [30, 62], [34, 63], [50, 64], [50, 65], [50, 66], [12, 67], [52, 68], [55, 69], [56, 70], [58, 71], [59, 72], [48, 73], [60, 74], [64, 75], [51, 76], [68, 77], [73, 78], [60, 79], [76, 80], [77, 81], [78, 82], [82, 83], [82, 84], [84, 85], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 3], [14, 1], [15, 6], [16, 8], [17, 8], [18, 8], [19, 8], [20, 8], [21, 8], [22, 1], [23, 10], [24, 4], [25, 5], [26, 6], [27, 15], [28, 15], [29, 18], [30, 20], [31, 20], [32, 22], [33, 9], [34, 10], [35, 23], [36, 24], [37, 25], [38, 6], [39, 27], [40, 27], [41, 28], [42, 28], [43, 16], [44, 17], [45, 29], [46, 18], [47, 19], [48, 30], [49, 21], [50, 10], [51, 10], [52, 38], [53, 40], [54, 42], [55, 43], [56, 44], [57, 29], [58, 46], [59, 47], [60, 48], [61, 48], [62, 30], [63, 34], [64, 50], [65, 50], [66, 50], [67, 12], [68, 52], [69, 55], [70, 56], [71, 58], [72, 59], [73, 48], [74, 60], [75, 64], [76, 51], [77, 68], [78, 73], [79, 60], [80, 76], [81, 77], [82, 78], [83, 82], [84, 82], [85, 84], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "invokeMain", "code": "\tpublic static void invokeMain( Class clas, String [] args ) \n\t\tthrows Exception\n\t{\n    \tMethod main = Reflect.resolveJavaMethod(\n\t\t\tnull/*BshClassManager*/, clas, \"main\", \n\t\t\tnew Class [] { String [].class }, true/*onlyStatic*/ );\n\t\tif ( main != null )\n\t\t\tmain.invoke( null, new Object [] { args } );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [6, 9], [8, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 6], [10, 8], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "run", "code": "    public void run() \n\t{\n        if(evalOnly)\n            throw new RuntimeException(\"bsh Interpreter: No stream\");\n\n        /*\n          We'll print our banner using eval(String) in order to\n          exercise the parser and get the basic expression classes loaded...\n          This ameliorates the delay after typing the first statement.\n        */\n        if ( interactive )\n\t\t\ttry { \n\t\t\t\teval(\"printBanner();\"); \n\t\t\t} catch ( EvalError e ) {\n\t\t\t\tprintln(\n\t\t\t\t\t\"BeanShell \"+VERSION+\" - by Pat Niemeyer (pat@pat.net)\");\n\t\t\t}\n\n\t\t// init the callstack.  \n\t\tCallStack callstack = new CallStack( globalNameSpace );\n\n        boolean eof = false;\n        while( !eof )\n        {\n            try\n            {\n                // try to sync up the console\n                System.out.flush();\n                System.err.flush();\n                Thread.yield();  // this helps a little\n\n                if ( interactive )\n                    print( getBshPrompt() );\n\n                eof = Line();\n\n                if( get_jjtree().nodeArity() > 0 )  // number of child nodes \n                {\n                    SimpleNode node = (SimpleNode)(get_jjtree().rootNode());\n\n                    if(DEBUG)\n                        node.dump(\">\");\n\n                    Object ret = node.eval( callstack, this );\n\t\t\t\t\n\t\t\t\t\t// sanity check during development\n\t\t\t\t\tif ( callstack.depth() > 1 )\n\t\t\t\t\t\tthrow new InterpreterError(\n\t\t\t\t\t\t\t\"Callstack growing: \"+callstack);\n\n                    if(ret instanceof ReturnControl)\n                        ret = ((ReturnControl)ret).value;\n                    if(ret != Primitive.VOID)\n                    {\n                        setu(\"$_\", ret);\n                        Object show = getu(\"bsh.show\");\n                        if(show instanceof Boolean &&\n                            ((Boolean)show).booleanValue() == true)\n                            println(\"<\" + ret + \">\");\n                    }\n                }\n            }\n            catch(ParseException e)\n            {\n                error(\"Parser Error: \" + e.getMessage(DEBUG));\n\t\t\t\tif ( DEBUG )\n                \te.printStackTrace();\n                if(!interactive)\n                    eof = true;\n\n                parser.reInitInput(in);\n            }\n            catch(InterpreterError e)\n            {\n                error(\"Internal Error: \" + e.getMessage());\n                e.printStackTrace();\n                if(!interactive)\n                    eof = true;\n            }\n            catch(TargetError e)\n            {\n                error(\"// Uncaught Exception: \" + e );\n\t\t\t\tif ( e.inNativeCode() )\n\t\t\t\t\te.printStackTrace( DEBUG, err );\n                if(!interactive)\n                    eof = true;\n\t\t\t\tsetu(\"$_e\", e.getTarget());\n            }\n            catch (EvalError e)\n            {\n\t\t\t\tif ( interactive )\n\t\t\t\t\terror( \"EvalError: \"+e.toString() );\n\t\t\t\telse\n\t\t\t\t\terror( \"EvalError: \"+e.getMessage() );\n\n                if(DEBUG)\n                    e.printStackTrace();\n\n                if(!interactive)\n                    eof = true;\n            }\n            catch(Exception e)\n            {\n                error(\"Unknown error: \" + e);\n\t\t\t\tif ( DEBUG )\n                \te.printStackTrace();\n                if(!interactive)\n                    eof = true;\n            }\n            catch(TokenMgrError e)\n            {\n\t\t\t\terror(\"Error parsing input: \" + e);\n\n\t\t\t\t/*\n\t\t\t\t\tWe get stuck in infinite loops here when unicode escapes\n\t\t\t\t\tfail.  Must re-init the char stream reader \n\t\t\t\t\t(ASCII_UCodeESC_CharStream.java)\n\t\t\t\t*/\n\t\t\t\tparser.reInitTokenInput( in );\n\n                if(!interactive)\n                    eof = true;\n            }\n            finally\n            {\n                get_jjtree().reset();\n\t\t\t\t// reinit the callstack\n\t\t\t\tif ( callstack.depth() > 1 ) {\n\t\t\t\t\tcallstack.clear();\n\t\t\t\t\tcallstack.push( globalNameSpace );\n\t\t\t\t}\n            }\n        }\n\n\t\tif ( interactive && exitOnEOF )\n\t\t\tSystem.exit(0);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "BINARY_OP", "TRY", "THROW_RAISE", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "IF", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "IF", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [5, 8], [6, 9], [1, 10], [2, 11], [3, 12], [4, 13], [8, 14], [9, 15], [10, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [11, 24], [11, 25], [8, 26], [15, 27], [17, 28], [11, 29], [18, 30], [19, 31], [19, 32], [20, 33], [20, 34], [20, 35], [21, 36], [21, 37], [22, 38], [23, 39], [23, 40], [24, 41], [11, 42], [11, 43], [11, 44], [11, 45], [14, 46], [26, 47], [28, 48], [28, 49], [29, 50], [18, 51], [18, 52], [19, 53], [21, 54], [37, 55], [21, 56], [22, 57], [22, 58], [23, 59], [23, 60], [24, 61], [24, 62], [24, 63], [24, 64], [24, 65], [24, 66], [41, 67], [41, 68], [42, 69], [25, 70], [46, 71], [17, 72], [17, 73], [30, 74], [52, 75], [31, 76], [32, 77], [53, 78], [33, 79], [34, 80], [35, 81], [35, 82], [54, 83], [54, 84], [36, 85], [37, 86], [56, 87], [38, 88], [58, 89], [39, 90], [40, 91], [60, 92], [61, 93], [62, 94], [63, 95], [63, 96], [68, 97], [70, 98], [71, 99], [71, 100], [74, 101], [75, 102], [76, 103], [78, 104], [79, 105], [81, 106], [82, 107], [85, 108], [87, 109], [88, 110], [89, 111], [89, 112], [90, 113], [92, 114], [92, 115], [61, 116], [61, 117], [62, 118], [95, 119], [96, 120], [96, 121], [64, 122], [65, 123], [100, 124], [106, 125], [106, 126], [107, 127], [107, 128], [116, 129], [61, 130], [119, 131], [123, 132], [66, 133], [116, 134], [129, 135], [129, 136], [117, 137], [130, 138], [131, 139], [134, 140], [135, 141], [137, 142], [140, 143], [140, 144], [144, 145], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 5], [9, 6], [10, 1], [11, 2], [12, 3], [13, 4], [14, 8], [15, 9], [16, 10], [17, 11], [18, 11], [19, 11], [20, 11], [21, 11], [22, 11], [23, 11], [24, 11], [25, 11], [26, 8], [27, 15], [28, 17], [29, 11], [30, 18], [31, 19], [32, 19], [33, 20], [34, 20], [35, 20], [36, 21], [37, 21], [38, 22], [39, 23], [40, 23], [41, 24], [42, 11], [43, 11], [44, 11], [45, 11], [46, 14], [47, 26], [48, 28], [49, 28], [50, 29], [51, 18], [52, 18], [53, 19], [54, 21], [55, 37], [56, 21], [57, 22], [58, 22], [59, 23], [60, 23], [61, 24], [62, 24], [63, 24], [64, 24], [65, 24], [66, 24], [67, 41], [68, 41], [69, 42], [70, 25], [71, 46], [72, 17], [73, 17], [74, 30], [75, 52], [76, 31], [77, 32], [78, 53], [79, 33], [80, 34], [81, 35], [82, 35], [83, 54], [84, 54], [85, 36], [86, 37], [87, 56], [88, 38], [89, 58], [90, 39], [91, 40], [92, 60], [93, 61], [94, 62], [95, 63], [96, 63], [97, 68], [98, 70], [99, 71], [100, 71], [101, 74], [102, 75], [103, 76], [104, 78], [105, 79], [106, 81], [107, 82], [108, 85], [109, 87], [110, 88], [111, 89], [112, 89], [113, 90], [114, 92], [115, 92], [116, 61], [117, 61], [118, 62], [119, 95], [120, 96], [121, 96], [122, 64], [123, 65], [124, 100], [125, 106], [126, 106], [127, 107], [128, 107], [129, 116], [130, 61], [131, 119], [132, 123], [133, 66], [134, 116], [135, 129], [136, 129], [137, 117], [138, 130], [139, 131], [140, 134], [141, 135], [142, 137], [143, 140], [144, 140], [145, 144], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145]]}, {"function_name": "source", "code": "    public Object source( String filename, NameSpace nameSpace ) \n\t\tthrows FileNotFoundException, IOException, EvalError \n\t{\n\t\tFile file = pathToFile( filename );\n\t\tif ( Interpreter.DEBUG ) debug(\"Sourcing file: \"+file);\n\t\tReader sourceIn = new BufferedReader( new FileReader(file) );\n\t\ttry {\n\t\t\treturn eval( sourceIn, nameSpace, filename );\n\t\t} finally {\n\t\t\tsourceIn.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [2, 10], [3, 11], [4, 12], [10, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 2], [11, 3], [12, 4], [13, 10], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "source", "code": "    public Object source( String filename ) \n\t\tthrows FileNotFoundException, IOException, EvalError \n\t{\n\t\treturn source( filename, globalNameSpace );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "eval", "code": "    public Object eval( \n\t\tReader in, NameSpace nameSpace, String sourceFileInfo\n\t\t\t/*, CallStack callstack */ ) \n\t\tthrows EvalError \n\t{\n\t\tObject retVal = null;\n\t\tif ( Interpreter.DEBUG ) debug(\"eval: nameSpace = \"+nameSpace);\n\n\t\t/* \n\t\t\tCreate non-interactive local interpreter for this namespace\n\t\t\twith source from the input stream and out/err same as \n\t\t\tthis interpreter.\n\t\t*/\n        Interpreter localInterpreter = \n\t\t\tnew Interpreter( \n\t\t\t\tin, out, err, false, nameSpace, this, sourceFileInfo  );\n\n\t\tCallStack callstack = new CallStack( nameSpace );\n\n        boolean eof = false;\n        while(!eof)\n        {\n\t\t\tSimpleNode node = null;\n            try\n            {\n                eof = localInterpreter.Line();\n                if (localInterpreter.get_jjtree().nodeArity() > 0)\n                {\n                    node = (SimpleNode)localInterpreter.get_jjtree().rootNode();\n\t\t\t\t\t// nodes remember from where they were sourced\n\t\t\t\t\tnode.setSourceFile( sourceFileInfo );\n\n\t\t\t\t\tif ( TRACE )\n\t\t\t\t\t\tprintln( \"// \" +node.getText() );\n\n                    retVal = node.eval( callstack, localInterpreter );\n\n\t\t\t\t\t// sanity check during development\n\t\t\t\t\tif ( callstack.depth() > 1 )\n\t\t\t\t\t\tthrow new InterpreterError(\n\t\t\t\t\t\t\t\"Callstack growing: \"+callstack);\n\n                    if ( retVal instanceof ReturnControl ) {\n                        retVal = ((ReturnControl)retVal).value;\n\t\t\t\t\t\tbreak; // non-interactive, return control now\n\t\t\t\t\t}\n                }\n            } catch(ParseException e) {\n\t\t\t\t/*\n                throw new EvalError(\n\t\t\t\t\t\"Sourced file: \"+sourceFileInfo+\" parser Error: \" \n\t\t\t\t\t+ e.getMessage( DEBUG ), node, callstack );\n\t\t\t\t*/\n\t\t\t\tif ( DEBUG )\n\t\t\t\t\t// show extra \"expecting...\" info\n\t\t\t\t\terror( e.getMessage(DEBUG) );\n\n\t\t\t\t// add the source file info and throw again\n\t\t\t\te.setErrorSourceFile( sourceFileInfo );\n\t\t\t\tthrow e;\n\n            } catch ( InterpreterError e ) {\n                e.printStackTrace();\n                throw new EvalError(\n\t\t\t\t\t\"Sourced file: \"+sourceFileInfo+\" internal Error: \" \n\t\t\t\t\t+ e.getMessage(), node, callstack);\n            } catch ( TargetError e ) {\n\t\t\t\t// failsafe, set the Line as the origin of the error.\n\t\t\t\tif ( e.getNode()==null )\n\t\t\t\t\te.setNode( node );\n\t\t\t\te.reThrow(\"Sourced file: \"+sourceFileInfo);\n            } catch ( EvalError e) {\n                if ( DEBUG)\n                    e.printStackTrace();\n\t\t\t\t// failsafe, set the Line as the origin of the error.\n\t\t\t\tif ( e.getNode()==null )\n\t\t\t\t\te.setNode( node );\n\t\t\t\te.reThrow( \"Sourced file: \"+sourceFileInfo );\n            } catch ( Exception e) {\n                if ( DEBUG)\n                \te.printStackTrace();\n                throw new EvalError(\n\t\t\t\t\t\"Sourced file: \"+sourceFileInfo+\" unknown error: \" \n\t\t\t\t\t+ e.getMessage(), node, callstack);\n            } catch(TokenMgrError e) {\n                throw new EvalError(\n\t\t\t\t\t\"Sourced file: \"+sourceFileInfo+\" Token Parsing Error: \" \n\t\t\t\t\t+ e.getMessage(), node, callstack );\n            } finally {\n                localInterpreter.get_jjtree().reset();\n\n\t\t\t\t// reinit the callstack\n\t\t\t\tif ( callstack.depth() > 1 ) {\n\t\t\t\t\tcallstack.clear();\n\t\t\t\t\tcallstack.push( nameSpace );\n\t\t\t\t}\n            }\n        }\n\t\treturn Primitive.unwrap( retVal );", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "THROW_RAISE", "IF", "IF", "IF", "IF", "THROW_RAISE", "THROW_RAISE", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [2, 13], [3, 14], [4, 15], [5, 16], [6, 17], [7, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 24], [12, 25], [12, 26], [16, 27], [17, 28], [19, 29], [12, 30], [20, 31], [21, 32], [21, 33], [22, 34], [22, 35], [23, 36], [24, 37], [25, 38], [25, 39], [26, 40], [12, 41], [13, 42], [28, 43], [29, 44], [29, 45], [30, 46], [31, 47], [32, 48], [22, 49], [34, 50], [23, 51], [36, 52], [37, 53], [24, 54], [25, 55], [26, 56], [26, 57], [26, 58], [40, 59], [40, 60], [41, 61], [19, 62], [19, 63], [47, 64], [48, 65], [33, 66], [49, 67], [34, 68], [50, 69], [50, 70], [35, 71], [51, 72], [36, 73], [52, 74], [52, 75], [53, 76], [39, 77], [56, 78], [57, 79], [57, 80], [26, 81], [26, 82], [26, 83], [60, 84], [64, 85], [64, 86], [65, 87], [65, 88], [67, 89], [72, 90], [76, 91], [76, 92], [77, 93], [56, 94], [79, 95], [80, 96], [80, 97], [81, 98], [58, 99], [86, 100], [86, 101], [88, 102], [88, 103], [92, 104], [92, 105], [56, 106], [95, 107], [99, 108], [83, 109], [101, 110], [103, 111], [105, 112], [107, 113], [108, 114], [108, 115], [109, 116], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 2], [14, 3], [15, 4], [16, 5], [17, 6], [18, 7], [19, 12], [20, 12], [21, 12], [22, 12], [23, 12], [24, 12], [25, 12], [26, 12], [27, 16], [28, 17], [29, 19], [30, 12], [31, 20], [32, 21], [33, 21], [34, 22], [35, 22], [36, 23], [37, 24], [38, 25], [39, 25], [40, 26], [41, 12], [42, 13], [43, 28], [44, 29], [45, 29], [46, 30], [47, 31], [48, 32], [49, 22], [50, 34], [51, 23], [52, 36], [53, 37], [54, 24], [55, 25], [56, 26], [57, 26], [58, 26], [59, 40], [60, 40], [61, 41], [62, 19], [63, 19], [64, 47], [65, 48], [66, 33], [67, 49], [68, 34], [69, 50], [70, 50], [71, 35], [72, 51], [73, 36], [74, 52], [75, 52], [76, 53], [77, 39], [78, 56], [79, 57], [80, 57], [81, 26], [82, 26], [83, 26], [84, 60], [85, 64], [86, 64], [87, 65], [88, 65], [89, 67], [90, 72], [91, 76], [92, 76], [93, 77], [94, 56], [95, 79], [96, 80], [97, 80], [98, 81], [99, 58], [100, 86], [101, 86], [102, 88], [103, 88], [104, 92], [105, 92], [106, 56], [107, 95], [108, 99], [109, 83], [110, 101], [111, 103], [112, 105], [113, 107], [114, 108], [115, 108], [116, 109], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116]]}, {"function_name": "eval", "code": "    public Object eval( Reader in ) throws EvalError \n\t{\n\t\treturn eval( in, globalNameSpace, \"eval stream\" );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "eval", "code": "    public Object eval( String statements ) throws EvalError {\n\t\tif ( Interpreter.DEBUG ) debug(\"eval(String): \"+statements);\n\t\treturn eval(statements, globalNameSpace);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "eval", "code": "    public Object eval( String statements, NameSpace nameSpace ) \n\t\tthrows EvalError \n\t{\n\n\t\tString s = ( statements.endsWith(\";\") ? statements : statements+\";\" );\n        return eval( \n\t\t\tnew StringReader(s), nameSpace, \n\t\t\t\"inline evaluation of: ``\"+ showEvalString(s)+\"''\" );", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [6, 9], [6, 10], [8, 11], [8, 12], [10, 13], [10, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [9, 6], [10, 6], [11, 8], [12, 8], [13, 10], [14, 10], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "showEvalString", "code": "\tprivate String showEvalString( String s ) {\n\t\ts = s.replace('\\n', ' ');\n\t\ts = s.replace('\\r', ' ');\n\t\tif ( s.length() > 80 )\n\t\t\ts = s.substring( 0, 80 ) + \" . . . \";\n\t\treturn s;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [0, 6], [2, 7], [4, 8], [4, 9], [5, 10], [6, 11], [7, 12], [10, 13], [10, 14], [11, 15], [11, 16], [12, 17], [12, 18], [18, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 0], [7, 2], [8, 4], [9, 4], [10, 5], [11, 6], [12, 7], [13, 10], [14, 10], [15, 11], [16, 11], [17, 12], [18, 12], [19, 18], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "error", "code": "    public final void error( Object o ) {\n\t\tif ( console != null )\n\t\t\t\tconsole.error( \"// Error: \" + o +\"\\n\" );\n\t\telse {\n\t\t\terr.println(\"// Error: \" + o );\n\t\t\terr.flush();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [4, 8], [7, 9], [8, 10], [8, 11], [9, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 4], [9, 7], [10, 8], [11, 8], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getIn", "code": "\tpublic Reader getIn() { return in; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOut", "code": "\tpublic PrintStream getOut() { return out; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getErr", "code": "\tpublic PrintStream getErr() { return err; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "println", "code": "    public final void println( Object o )\n    {\n        print( String.valueOf(o) + systemLineSeparator );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "print", "code": "    public final void print( Object o )\n    {\n\t\tif (console != null) {\n            console.print(o);\n        } else {\n            out.print(o);\n            out.flush();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "debug", "code": "    public final static void debug(String s)\n    {\n        if ( DEBUG )\n            debug.println(\"// Debug: \" + s);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "get", "code": "    public Object get( String name ) throws EvalError {\n\t\ttry {\n\t\t\tObject ret = globalNameSpace.get( name, this );\n\t\t\treturn Primitive.unwrap( ret );\n\t\t} catch ( UtilEvalError e ) { \n\t\t\tthrow e.toEvalError( SimpleNode.JAVACODE, new CallStack() ); ", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [6, 8], [5, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 6], [9, 5], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getu", "code": "    Object getu( String name ) {\n\t\ttry { \n\t\t\treturn get( name );\n\t\t} catch ( EvalError e ) { \n\t\t\tthrow new InterpreterError(\"set: \"+e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "set", "code": "    public void set( String name, Object value )\n\t\tthrows EvalError \n\t{\n\t\t// map null to Primtive.NULL coming in...\n\t\tif ( value == null )\n\t\t\tvalue = Primitive.NULL;\n\n\t\tCallStack callstack = new CallStack();\n\t\ttry {\n\t\t\tif ( Name.isCompound( name ) ) \n\t\t\t{\n\t\t\t\tLHS lhs = globalNameSpace.getNameResolver( name ).toLHS( \n\t\t\t\t\tcallstack, this );\n\t\t\t\tlhs.assign( value, false );\n\t\t\t} else // optimization for common case\n\t\t\t\tglobalNameSpace.setVariable( name, value, false );\n\t\t} catch ( UtilEvalError e ) { \n\t\t\tthrow e.toEvalError( SimpleNode.JAVACODE, callstack ); ", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "CATCH", "IF", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [6, 9], [7, 10], [2, 11], [3, 12], [8, 13], [9, 14], [7, 15], [7, 16], [15, 17], [7, 18], [18, 19], [16, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 6], [10, 7], [11, 2], [12, 3], [13, 8], [14, 9], [15, 7], [16, 7], [17, 15], [18, 7], [19, 18], [20, 16], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setu", "code": "    void setu(String name, Object value) {\n\t\ttry { \n\t\t\tset(name, value);\n\t\t} catch ( EvalError e ) { \n\t\t\tthrow new InterpreterError(\"set: \"+e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "set", "code": "    public void set(String name, long value) throws EvalError {\n        set(name, new Primitive(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "set", "code": "    public void set(String name, int value) throws EvalError {\n        set(name, new Primitive(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "set", "code": "    public void set(String name, double value) throws EvalError {\n        set(name, new Primitive(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "set", "code": "    public void set(String name, float value) throws EvalError {\n        set(name, new Primitive(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "set", "code": "    public void set(String name, boolean value) throws EvalError {\n        set(name, new Primitive(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unset", "code": "    public void unset( String name ) \n\t\tthrows EvalError \n\t{\n\t\t/*\n\t\t\tWe jump through some hoops here to handle arbitrary cases like\n\t\t\tunset(\"bsh.foo\");\n\t\t*/\n\t\tCallStack callstack = new CallStack();\n\t\ttry {\n\t\t\tLHS lhs = globalNameSpace.getNameResolver( name ).toLHS( \n\t\t\t\tcallstack, this );\n\n\t\t\tif ( lhs.type != LHS.VARIABLE )\n\t\t\t\tthrow new EvalError(\"Can't unset, not a variable: \"+name, \n\t\t\t\t\tSimpleNode.JAVACODE, new CallStack() );\n\n\t\t\t//lhs.assign( null, false );\n\t\t\tlhs.nameSpace.unsetVariable( name );\n\t\t} catch ( UtilEvalError e ) {\n\t\t\tthrow new EvalError( e.getMessage(), \n\t\t\t\tSimpleNode.JAVACODE, new CallStack() );", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 8], [5, 9], [5, 10], [2, 11], [7, 12], [9, 13], [6, 14], [12, 15], [12, 16], [13, 17], [13, 18], [14, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 1], [9, 5], [10, 5], [11, 2], [12, 7], [13, 9], [14, 6], [15, 12], [16, 12], [17, 13], [18, 13], [19, 14], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getInterface", "code": "\tpublic Object getInterface( Class interf ) throws EvalError\n\t{\n\t\ttry {\n\t\t\treturn globalNameSpace.getThis( this ).getInterface( interf );\n\t\t} catch ( UtilEvalError e ) {\n\t\t\tthrow e.toEvalError( SimpleNode.JAVACODE, new CallStack() );", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "get_jjtree", "code": "\tprivate JJTParserState get_jjtree() {\n\t\treturn parser.jjtree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "get_jj_input_stream", "code": "  \tprivate JavaCharStream get_jj_input_stream() {\n\t\treturn parser.jj_input_stream;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Line", "code": "  \tprivate boolean Line() throws ParseException {\n\t\treturn parser.Line();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadRCFiles", "code": "\tvoid loadRCFiles() {\n\t\ttry {\n\t\t\tString rcfile = \n\t\t\t\t// Default is c:\\windows under win98, $HOME under Unix\n\t\t\t\tSystem.getProperty(\"user.home\") + File.separator + \".bshrc\";\n\t\t\tsource( rcfile, globalNameSpace );\n\t\t} catch ( Exception e ) { \n\t\t\t// squeltch security exception, filenotfoundexception\n\t\t\tif ( Interpreter.DEBUG ) debug(\"Could not find rc file: \"+e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "VAR_DECL", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [10, 12], [11, 13], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "pathToFile", "code": "    public File pathToFile( String fileName ) \n\t\tthrows IOException\n\t{\n\t\tFile file = new File( fileName );\n\n\t\t// if relative, fix up to bsh.cwd\n\t\tif ( !file.isAbsolute() ) {\n\t\t\tString cwd = (String)getu(\"bsh.cwd\");\n\t\t\tfile = new File( cwd + File.separator + fileName );\n\t\t}\n\n\t\t// The canonical file name is also absolute.\n\t\t// No need for getAbsolutePath() here...\n\t\treturn new File( file.getCanonicalPath() );", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [3, 9], [2, 10], [10, 11], [11, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 3], [10, 2], [11, 10], [12, 11], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "redirectOutputToFile", "code": "\tpublic static void redirectOutputToFile( String filename ) \n\t{\n\t\ttry {\n\t\t\tPrintStream pout = new PrintStream( \n\t\t\t\tnew FileOutputStream( filename ) );\n\t\t\tSystem.setOut( pout );\n\t\t\tSystem.setErr( pout );\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.err.println(\"Can't redirect output to file: \"+filename );", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setClassLoader", "code": "\tpublic void setClassLoader( ClassLoader externalCL ) {\n\t\tgetClassManager().setClassLoader( externalCL );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getClassManager", "code": "\tpublic BshClassManager getClassManager() \n\t{\n\t\treturn getNameSpace().getClassManager();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setStrictJava", "code": "\tpublic void setStrictJava( boolean b ) { \n\t\tthis.strictJava = b; ", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStrictJava", "code": "\tpublic boolean getStrictJava() { \n\t\treturn this.strictJava;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "staticInit", "code": "\tstatic void staticInit() \n\t{\n\t/* \n\t\tApparently in some environments you can't catch the security exception\n\t\tat all...  e.g. as an applet in IE  ... will probably have to work \n\t\taround \n\t*/\n\t\ttry {\n\t\t\tsystemLineSeparator = System.getProperty(\"line.separator\");\n    \t\tdebug = System.err;\n    \t\tDEBUG = Boolean.getBoolean(\"debug\");\n    \t\tTRACE = Boolean.getBoolean(\"trace\");\n    \t\tLOCALSCOPING = Boolean.getBoolean(\"localscoping\");\n\t\t\tString outfilename = System.getProperty(\"outfile\");\n\t\t\tif ( outfilename != null )\n\t\t\t\tredirectOutputToFile( outfilename );\n\t\t} catch ( SecurityException e ) { \n\t\t\tSystem.err.println(\"Could not init static:\"+e);\n\t\t} catch ( Exception e ) {\n\t\t\tSystem.err.println(\"Could not init static(2):\"+e);\n\t\t} catch ( Throwable e ) { \n\t\t\tSystem.err.println(\"Could not init static(3):\"+e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CATCH", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [5, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [3, 14], [4, 15], [5, 16], [7, 17], [6, 18], [8, 19], [9, 20], [10, 21], [12, 22], [13, 23], [14, 24], [15, 25], [18, 26], [19, 27], [20, 28], [21, 29], [22, 30], [23, 31], [24, 32], [25, 33], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 5], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 3], [15, 4], [16, 5], [17, 7], [18, 6], [19, 8], [20, 9], [21, 10], [22, 12], [23, 13], [24, 14], [25, 15], [26, 18], [27, 19], [28, 20], [29, 21], [30, 22], [31, 23], [32, 24], [33, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getSourceFileInfo", "code": "\tpublic String getSourceFileInfo() { \n\t\tif ( sourceFileInfo != null )\n\t\t\treturn sourceFileInfo;\n\t\telse\n\t\t\treturn \"<unknown source>\";", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getParent", "code": "\tpublic Interpreter getParent() {\n\t\treturn parent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOut", "code": "\tpublic void setOut( PrintStream out ) {\n\t\tthis.out = out;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErr", "code": "\tpublic void setErr( PrintStream err ) {\n\t\tthis.err = err;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "readObject", "code": "\tprivate void readObject(ObjectInputStream stream) \n\t\tthrows java.io.IOException, ClassNotFoundException\n\t{\n\t\tstream.defaultReadObject();\n\n\t\t// set transient fields\n\t\tif ( console != null ) {\n\t\t\tsetOut( console.getOut() );\n\t\t\tsetErr( console.getErr() );\n\t\t} else {\n\t\t\tsetOut( System.out );\n\t\t\tsetErr( System.err );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getBshPrompt", "code": "\tprivate String getBshPrompt() \n\t{\n\t\ttry {\n\t\t\treturn (String)eval(\"getBshPrompt()\");\n\t\t} catch ( Exception e ) {\n\t\t\treturn \"bsh % \";", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [3, 6], [6, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setExitOnEOF", "code": "\tpublic void setExitOnEOF( boolean value ) {\n\t\texitOnEOF = value; // ug", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Interpreter", "code": "    public Interpreter(\n\t\tReader in, PrintStream out, PrintStream err, \n\t\tboolean interactive, NameSpace namespace,\n\t\tInterpreter parent, String sourceFileInfo )\n    {\n\t\tparser = new Parser( in );\n\t\tlong t1=System.currentTimeMillis();\n        this.in = in;\n        this.out = out;\n        this.err = err;\n        this.interactive = interactive;\n\t\tdebug = err;\n\t\tthis.parent = parent;\n\t\tif ( parent != null )\n\t\t\tsetStrictJava( parent.getStrictJava() );\n\t\tthis.sourceFileInfo = sourceFileInfo;\n\n\t\tBshClassManager bcm = BshClassManager.createClassManager( this );\n\t\tif ( namespace == null )\n        \tthis.globalNameSpace = new NameSpace( bcm, \"global\");\n\t\telse\n\t\t\tthis.globalNameSpace = namespace;\n\n\t\t// now done in NameSpace automatically when root\n\t\t// The classes which are imported by default\n\t\t//globalNameSpace.loadDefaultImports();\n\n\t\t/* \n\t\t\tCreate the root \"bsh\" system object if it doesn't exist.\n\t\t*/\n\t\tif ( ! ( getu(\"bsh\") instanceof bsh.This ) )\n\t\t\tinitRootSystemObject();\n\n\t\tif ( interactive )\n\t\t\tloadRCFiles();\n\n\t\tlong t2=System.currentTimeMillis();\n\t\tif ( Interpreter.DEBUG ) \n\t\t\tInterpreter.debug(\"Time to initialize interpreter: \"+(t2-t1));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [4, 16], [5, 17], [0, 18], [7, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [1, 27], [2, 28], [3, 29], [4, 30], [16, 31], [5, 32], [5, 33], [17, 34], [6, 35], [7, 36], [19, 37], [8, 38], [26, 39], [27, 40], [31, 41], [33, 42], [36, 43], [40, 44], [40, 45], [42, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 4], [17, 5], [18, 0], [19, 7], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 1], [28, 2], [29, 3], [30, 4], [31, 16], [32, 5], [33, 5], [34, 17], [35, 6], [36, 7], [37, 19], [38, 8], [39, 26], [40, 27], [41, 31], [42, 33], [43, 36], [44, 40], [45, 40], [46, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "Interpreter", "code": "    public Interpreter(\n\t\tReader in, PrintStream out, PrintStream err, \n\t\tboolean interactive, NameSpace namespace)\n    {\n\t\tthis( in, out, err, interactive, namespace, null, null );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "Interpreter", "code": "    public Interpreter(\n\t\tReader in, PrintStream out, PrintStream err, boolean interactive)\n    {\n        this(in, out, err, interactive, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Interpreter", "code": "    public Interpreter(ConsoleInterface console, NameSpace globalNameSpace) {\n\n        this( console.getIn(), console.getOut(), console.getErr(), \n\t\t\ttrue, globalNameSpace );\n\n\t\tsetConsole( console );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "Interpreter", "code": "    public Interpreter(ConsoleInterface console) {\n        this(console, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Interpreter", "code": "    public Interpreter()\n    {\n\t\tthis( new StringReader(\"\"), \n\t\t\tSystem.out, System.err, false, null );\n        evalOnly = true;\n\t\tsetu( \"bsh.evalOnly\", new Primitive(true) );", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "poi-3.0-6090", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/ChartRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.ChartRecord", "code": "public class ChartRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1002;\n    private  int        field_1_x;\n    private  int        field_2_y;\n    private  int        field_3_width;\n    private  int        field_4_height;\n\n\n    public ChartRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Chart record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1002 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public ChartRecord(RecordInputStream in)\n    {\n        super(in);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Chart record\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_x                      = in.readInt();\n        field_2_y                      = in.readInt();\n        field_3_width                  = in.readInt();\n        field_4_height                 = in.readInt();\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[CHART]\\n\");\n        buffer.append(\"    .x                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getX ()))\n            .append(\" (\").append( getX() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .y                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getY ()))\n            .append(\" (\").append( getY() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .width                = \")\n            .append(\"0x\").append(HexDump.toHex(  getWidth ()))\n            .append(\" (\").append( getWidth() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .height               = \")\n            .append(\"0x\").append(HexDump.toHex(  getHeight ()))\n            .append(\" (\").append( getHeight() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/CHART]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_x);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_y);\n        LittleEndian.putInt(data, 12 + offset + pos, field_3_width);\n        LittleEndian.putInt(data, 16 + offset + pos, field_4_height);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 4 + 4 + 4 + 4;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n        ChartRecord rec = new ChartRecord();\n    \n        rec.field_1_x = field_1_x;\n        rec.field_2_y = field_2_y;\n        rec.field_3_width = field_3_width;\n        rec.field_4_height = field_4_height;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the x field for the Chart record.\n     */\n    public int getX()\n    {\n        return field_1_x;\n    }\n\n    /**\n     * Set the x field for the Chart record.\n     */\n    public void setX(int field_1_x)\n    {\n        this.field_1_x = field_1_x;\n    }\n\n    /**\n     * Get the y field for the Chart record.\n     */\n    public int getY()\n    {\n        return field_2_y;\n    }\n\n    /**\n     * Set the y field for the Chart record.\n     */\n    public void setY(int field_2_y)\n    {\n        this.field_2_y = field_2_y;\n    }\n\n    /**\n     * Get the width field for the Chart record.\n     */\n    public int getWidth()\n    {\n        return field_3_width;\n    }\n\n    /**\n     * Set the width field for the Chart record.\n     */\n    public void setWidth(int field_3_width)\n    {\n        this.field_3_width = field_3_width;\n    }\n\n    /**\n     * Get the height field for the Chart record.\n     */\n    public int getHeight()\n    {\n        return field_4_height;\n    }\n\n    /**\n     * Set the height field for the Chart record.\n     */\n    public void setHeight(int field_4_height)\n    {\n        this.field_4_height = field_4_height;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Chart record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_x                      = in.readInt();\n        field_2_y                      = in.readInt();\n        field_3_width                  = in.readInt();\n        field_4_height                 = in.readInt();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[CHART]\\n\");\n        buffer.append(\"    .x                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getX ()))\n            .append(\" (\").append( getX() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .y                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getY ()))\n            .append(\" (\").append( getY() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .width                = \")\n            .append(\"0x\").append(HexDump.toHex(  getWidth ()))\n            .append(\" (\").append( getWidth() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .height               = \")\n            .append(\"0x\").append(HexDump.toHex(  getHeight ()))\n            .append(\" (\").append( getHeight() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/CHART]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [4, 14], [5, 15], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [9, 29], [10, 30], [10, 31], [10, 32], [10, 33], [10, 34], [10, 35], [11, 36], [12, 37], [12, 38], [12, 39], [12, 40], [12, 41], [12, 42], [13, 43], [2, 44], [15, 45], [17, 46], [18, 47], [19, 48], [20, 49], [21, 50], [22, 51], [24, 52], [25, 53], [26, 54], [27, 55], [28, 56], [29, 57], [31, 58], [32, 59], [33, 60], [34, 61], [35, 62], [36, 63], [38, 64], [39, 65], [40, 66], [41, 67], [42, 68], [49, 69], [55, 70], [61, 71], [67, 72], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 4], [15, 5], [16, 6], [17, 6], [18, 6], [19, 6], [20, 6], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 9], [30, 10], [31, 10], [32, 10], [33, 10], [34, 10], [35, 10], [36, 11], [37, 12], [38, 12], [39, 12], [40, 12], [41, 12], [42, 12], [43, 13], [44, 2], [45, 15], [46, 17], [47, 18], [48, 19], [49, 20], [50, 21], [51, 22], [52, 24], [53, 25], [54, 26], [55, 27], [56, 28], [57, 29], [58, 31], [59, 32], [60, 33], [61, 34], [62, 35], [63, 36], [64, 38], [65, 39], [66, 40], [67, 41], [68, 42], [69, 49], [70, 55], [71, 61], [72, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_x);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_y);\n        LittleEndian.putInt(data, 12 + offset + pos, field_3_width);\n        LittleEndian.putInt(data, 16 + offset + pos, field_4_height);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [6, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [2, 18], [12, 19], [13, 20], [14, 21], [15, 22], [10, 23], [16, 24], [17, 25], [19, 26], [20, 27], [21, 28], [22, 29], [23, 30], [23, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 6], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 2], [19, 12], [20, 13], [21, 14], [22, 15], [23, 10], [24, 16], [25, 17], [26, 19], [27, 20], [28, 21], [29, 22], [30, 23], [31, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 4 + 4 + 4 + 4;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        ChartRecord rec = new ChartRecord();\n    \n        rec.field_1_x = field_1_x;\n        rec.field_2_y = field_2_y;\n        rec.field_3_width = field_3_width;\n        rec.field_4_height = field_4_height;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getX", "code": "    public int getX()\n    {\n        return field_1_x;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setX", "code": "    public void setX(int field_1_x)\n    {\n        this.field_1_x = field_1_x;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getY", "code": "    public int getY()\n    {\n        return field_2_y;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setY", "code": "    public void setY(int field_2_y)\n    {\n        this.field_2_y = field_2_y;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWidth", "code": "    public int getWidth()\n    {\n        return field_3_width;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWidth", "code": "    public void setWidth(int field_3_width)\n    {\n        this.field_3_width = field_3_width;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeight", "code": "    public int getHeight()\n    {\n        return field_4_height;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHeight", "code": "    public void setHeight(int field_4_height)\n    {\n        this.field_4_height = field_4_height;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ChartRecord", "code": "    public ChartRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ChartRecord", "code": "    public ChartRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.6-2775", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/SetHeaderType.java", "language": "java", "name": "org.apache.camel.model.SetHeaderType", "code": "@XmlRootElement(name = \"setHeader\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class SetHeaderType extends ExpressionNode {\n    @XmlAttribute(required = true)\n    private String headerName;\n    \n    public SetHeaderType() {\n    }\n\n    public SetHeaderType(String headerName, ExpressionType expression) {\n        super(expression);\n        setHeaderName(headerName);\n    }\n\n    public SetHeaderType(String headerName, Expression expression) {\n        super(expression);\n        setHeaderName(headerName);        \n    }\n\n    public SetHeaderType(String headerName, String value) {\n        super(ExpressionBuilder.constantExpression(value));\n        setHeaderName(headerName);        \n    }   \n    \n    @Override\n    public String toString() {\n        return \"SetHeader[\" + getHeaderName() + \", \" + getExpression() + \"]\";\n    }\n\n    @Override\n    public String getShortName() {\n        return \"setHeader\";\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        ObjectHelper.notEmpty(headerName, \"headerName\");\n        Expression expr = getExpression().createExpression(routeContext);\n        return ProcessorBuilder.setHeader(getHeaderName(), expr);\n    }\n\n    public void setHeaderName(String headerName) {\n        this.headerName = headerName;\n    }\n\n    public String getHeaderName() {\n        return headerName;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"SetHeader[\" + getHeaderName() + \", \" + getExpression() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getShortName", "code": "    @Override\n    public String getShortName() {\n        return \"setHeader\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        ObjectHelper.notEmpty(headerName, \"headerName\");\n        Expression expr = getExpression().createExpression(routeContext);\n        return ProcessorBuilder.setHeader(getHeaderName(), expr);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [2, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 2], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setHeaderName", "code": "    public void setHeaderName(String headerName) {\n        this.headerName = headerName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeaderName", "code": "    public String getHeaderName() {\n        return headerName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SetHeaderType", "code": "    public SetHeaderType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SetHeaderType", "code": "    public SetHeaderType(String headerName, ExpressionType expression) {\n        super(expression);\n        setHeaderName(headerName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SetHeaderType", "code": "    public SetHeaderType(String headerName, Expression expression) {\n        super(expression);\n        setHeaderName(headerName);        ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SetHeaderType", "code": "    public SetHeaderType(String headerName, String value) {\n        super(ExpressionBuilder.constantExpression(value));\n        setHeaderName(headerName);        ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.6-7627", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/dom/FilterIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.FilterIterator", "code": "public final class FilterIterator extends DTMAxisIteratorBase {\n\n    /**\n     * Reference to source iterator.\n     */\n    private DTMAxisIterator _source;\n\n    /**\n     * Reference to a filter object that to be applied to each node.\n     */\n    private final DTMFilter _filter;\n\n    /**\n     * A flag indicating if position is reversed.\n     */\n    private final boolean _isReverse;\n\t\n    public FilterIterator(DTMAxisIterator source, DTMFilter filter) {\n\t_source = source;\n\t_filter = filter;\n\t_isReverse = source.isReverse();\n    }\n\n    public boolean isReverse() {\n\treturn _isReverse;\n    }\n\n\n    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);\n    }\n\n    public DTMAxisIterator cloneIterator() {\n\n\ttry {\n\t    final FilterIterator clone = (FilterIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;\n\t}\n    }\n    \n    public DTMAxisIterator reset() {\n\t_source.reset();\n\treturn resetPosition();\n    }\n    \n    public int next() {\n\tint node;\n\twhile ((node = _source.next()) != END) {\n\t    if (_filter.acceptNode(node, DTMFilter.SHOW_ALL) == DTMIterator.FILTER_ACCEPT) {\n\t\treturn returnNode(node);\n\t    }\n\t}\n\treturn END;\n    }\n\n    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(_startNode = node); \n\t    return resetPosition();\n\t}\n\treturn this;\n    }\n\n    public void setMark() {\n\t_source.setMark();\n    }\n\n    public void gotoMark() {\n\t_source.gotoMark();", "functions": [{"function_name": "isReverse", "code": "    public boolean isReverse() {\n\treturn _isReverse;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRestartable", "code": "    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "cloneIterator", "code": "    public DTMAxisIterator cloneIterator() {\n\n\ttry {\n\t    final FilterIterator clone = (FilterIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "RETURN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [5, 9], [2, 10], [7, 11], [8, 12], [10, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 5], [10, 2], [11, 7], [12, 8], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n\t_source.reset();\n\treturn resetPosition();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "next", "code": "    public int next() {\n\tint node;\n\twhile ((node = _source.next()) != END) {\n\t    if (_filter.acceptNode(node, DTMFilter.SHOW_ALL) == DTMIterator.FILTER_ACCEPT) {\n\t\treturn returnNode(node);\n\t    }\n\t}\n\treturn END;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "ASSIGN", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [6, 8], [5, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 6], [9, 5], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(_startNode = node); \n\t    return resetPosition();\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_source.setMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_source.gotoMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FilterIterator", "code": "    public FilterIterator(DTMAxisIterator source, DTMFilter filter) {\n\t_source = source;\n\t_filter = filter;\n\t_isReverse = source.isReverse();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "camel-1.4-2199", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/cxf/CxfSoapConsumer.java", "language": "java", "name": "org.apache.camel.component.cxf.CxfSoapConsumer", "code": "public class CxfSoapConsumer implements Consumer {\n\n    private static final Log LOG = LogFactory.getLog(CxfSoapConsumer.class);\n\n    private final CxfSoapEndpoint endpoint;\n    private final Consumer consumer;\n    private MessageObserver inMessageObserver;\n    private Server server;\n\n    public CxfSoapConsumer(CxfSoapEndpoint endpoint, Processor processor) throws Exception {\n        this.endpoint = endpoint;\n        Processor soapProcessor = new AsyncProcessorDecorator(processor,\n                new Processor() {\n                    public void process(Exchange exchange) throws Exception {\n                        processSoapConsumerIn(exchange);\n                    }\n                },\n                new Processor() {\n                    public void process(Exchange exchange) throws Exception {\n                        processSoapConsumerOut(exchange);\n                    }\n                });\n        this.consumer = endpoint.getInnerEndpoint().createConsumer(soapProcessor);\n        Class sei = CxfEndpointUtils.getSEIClass(endpoint.getServiceClass());\n        ServerFactoryBean sfb = CxfEndpointUtils.getServerFactoryBean(sei);\n        sfb.setWsdlURL(endpoint.getWsdl().getURL().toString());\n        if (endpoint.getServiceName() != null) {\n            sfb.setServiceName(endpoint.getServiceName());\n        }\n        if (endpoint.getEndpointName() != null) {\n            sfb.setEndpointName(endpoint.getEndpointName());\n        }\n        sfb.setDestinationFactory(new NullDestinationFactory());\n        sfb.setStart(false);\n\n        server = sfb.create();\n    }\n\n\n    public void start() throws Exception {\n        server.start();\n        inMessageObserver = server.getDestination().getMessageObserver();\n        consumer.start();\n\n    }\n\n    public void stop() throws Exception {\n        server.stop();\n        consumer.stop();\n    }\n\n    protected Bus getBus() {\n        return endpoint.getBus();\n    }\n\n    protected void processSoapConsumerIn(Exchange exchange) throws Exception {\n        LOG.info(\"processSoapConsumerIn: \" + exchange);\n        org.apache.cxf.message.Message inMessage = CxfSoapBinding.getCxfInMessage(exchange, false);\n        org.apache.cxf.message.Exchange cxfExchange = inMessage.getExchange();\n        cxfExchange.put(org.apache.cxf.endpoint.Endpoint.class, server.getEndpoint());\n        cxfExchange.put(Bus.class, getBus());\n        cxfExchange.setConduit(new NullConduit());\n        inMessageObserver.onMessage(inMessage);\n        exchange.getIn().setBody(inMessage.getContent(Source.class));\n        exchange.getIn().setHeaders(inMessage);\n\n    }\n\n    protected void processSoapConsumerOut(Exchange exchange) throws Exception {\n        LOG.info(\"processSoapConsumerOut: \" + exchange);\n\n        org.apache.cxf.message.Message outMessage = CxfSoapBinding.getCxfOutMessage(exchange, false);\n        org.apache.cxf.message.Exchange cxfExchange = outMessage.getExchange();\n        InterceptorChain chain = OutgoingChainInterceptor.getOutInterceptorChain(cxfExchange);\n        outMessage.setInterceptorChain(chain);\n        chain.doIntercept(outMessage);\n        CachedOutputStream outputStream = (CachedOutputStream)outMessage.getContent(OutputStream.class);\n        exchange.getOut().setBody(outputStream.getInputStream());", "functions": [{"function_name": "start", "code": "    public void start() throws Exception {\n        server.start();\n        inMessageObserver = server.getDestination().getMessageObserver();\n        consumer.start();", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "stop", "code": "    public void stop() throws Exception {\n        server.stop();\n        consumer.stop();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBus", "code": "    protected Bus getBus() {\n        return endpoint.getBus();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "processSoapConsumerIn", "code": "    protected void processSoapConsumerIn(Exchange exchange) throws Exception {\n        LOG.info(\"processSoapConsumerIn: \" + exchange);\n        org.apache.cxf.message.Message inMessage = CxfSoapBinding.getCxfInMessage(exchange, false);\n        org.apache.cxf.message.Exchange cxfExchange = inMessage.getExchange();\n        cxfExchange.put(org.apache.cxf.endpoint.Endpoint.class, server.getEndpoint());\n        cxfExchange.put(Bus.class, getBus());\n        cxfExchange.setConduit(new NullConduit());\n        inMessageObserver.onMessage(inMessage);\n        exchange.getIn().setBody(inMessage.getContent(Source.class));\n        exchange.getIn().setHeaders(inMessage);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [4, 11], [5, 12], [7, 13], [8, 14], [9, 15], [1, 16], [2, 17], [10, 18], [12, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 4], [12, 5], [13, 7], [14, 8], [15, 9], [16, 1], [17, 2], [18, 10], [19, 12], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "processSoapConsumerOut", "code": "    protected void processSoapConsumerOut(Exchange exchange) throws Exception {\n        LOG.info(\"processSoapConsumerOut: \" + exchange);\n\n        org.apache.cxf.message.Message outMessage = CxfSoapBinding.getCxfOutMessage(exchange, false);\n        org.apache.cxf.message.Exchange cxfExchange = outMessage.getExchange();\n        InterceptorChain chain = OutgoingChainInterceptor.getOutInterceptorChain(cxfExchange);\n        outMessage.setInterceptorChain(chain);\n        chain.doIntercept(outMessage);\n        CachedOutputStream outputStream = (CachedOutputStream)outMessage.getContent(OutputStream.class);\n        exchange.getOut().setBody(outputStream.getInputStream());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [2, 11], [3, 12], [4, 13], [9, 14], [10, 15], [1, 16], [13, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 2], [12, 3], [13, 4], [14, 9], [15, 10], [16, 1], [17, 13], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "CxfSoapConsumer", "code": "    public CxfSoapConsumer(CxfSoapEndpoint endpoint, Processor processor) throws Exception {\n        this.endpoint = endpoint;\n        Processor soapProcessor = new AsyncProcessorDecorator(processor,\n                new Processor() {\n                    public void process(Exchange exchange) throws Exception {\n                        processSoapConsumerIn(exchange);\n                    }\n                },\n                new Processor() {\n                    public void process(Exchange exchange) throws Exception {\n                        processSoapConsumerOut(exchange);\n                    }\n                });\n        this.consumer = endpoint.getInnerEndpoint().createConsumer(soapProcessor);\n        Class sei = CxfEndpointUtils.getSEIClass(endpoint.getServiceClass());\n        ServerFactoryBean sfb = CxfEndpointUtils.getServerFactoryBean(sei);\n        sfb.setWsdlURL(endpoint.getWsdl().getURL().toString());\n        if (endpoint.getServiceName() != null) {\n            sfb.setServiceName(endpoint.getServiceName());\n        }\n        if (endpoint.getEndpointName() != null) {\n            sfb.setEndpointName(endpoint.getEndpointName());\n        }\n        sfb.setDestinationFactory(new NullDestinationFactory());\n        sfb.setStart(false);\n\n        server = sfb.create();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [0, 13], [0, 14], [0, 15], [8, 16], [9, 17], [10, 18], [11, 19], [11, 20], [12, 21], [12, 22], [13, 23], [3, 24], [4, 25], [14, 26], [5, 27], [1, 28], [2, 29], [23, 30], [23, 31], [25, 32], [26, 33], [27, 34], [27, 35], [28, 36], [29, 37], [34, 38], [35, 39], [38, 40], [39, 41], [38, 42], [39, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 0], [14, 0], [15, 0], [16, 8], [17, 9], [18, 10], [19, 11], [20, 11], [21, 12], [22, 12], [23, 13], [24, 3], [25, 4], [26, 14], [27, 5], [28, 1], [29, 2], [30, 23], [31, 23], [32, 25], [33, 26], [34, 27], [35, 27], [36, 28], [37, 29], [38, 34], [39, 35], [40, 38], [41, 39], [42, 38], [43, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}], "label": 0}
{"sample_id": "ant-1.6-676", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/selectors/DateSelector.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.DateSelector", "code": "public class DateSelector extends BaseExtendSelector {\n\n    private long millis = -1;\n    private String dateTime = null;\n    private boolean includeDirs = false;\n    private int granularity = 0;\n    private int cmp = 2;\n    private String pattern;\n    /** Key to used for parameterized custom selector */\n    public static final String MILLIS_KEY = \"millis\";\n    /** Key to used for parameterized custom selector */\n    public static final String DATETIME_KEY = \"datetime\";\n    /** Key to used for parameterized custom selector */\n    public static final String CHECKDIRS_KEY = \"checkdirs\";\n    /** Key to used for parameterized custom selector */\n    public static final String GRANULARITY_KEY = \"granularity\";\n    /** Key to used for parameterized custom selector */\n    public static final String WHEN_KEY = \"when\";\n    /** Key to used for parameterized custom selector */\n    public static final String PATTERN_KEY = \"pattern\";\n\n    /**\n     * Creates a new <code>DateSelector</code> instance.\n     *\n     */\n    public DateSelector() {\n        if (Os.isFamily(\"dos\")) {\n            granularity = 2000;\n        }\n    }\n\n    /**\n     * @return a string describing this object\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer(\"{dateselector date: \");\n        buf.append(dateTime);\n        buf.append(\" compare: \");\n        if (cmp == 0) {\n            buf.append(\"before\");\n        } else if (cmp == 1) {\n            buf.append(\"after\");\n        } else {\n            buf.append(\"equal\");\n        }\n        buf.append(\" granularity: \");\n        buf.append(granularity);\n        if (pattern != null) {\n            buf.append(\" pattern: \").append(pattern);\n        }\n        buf.append(\"}\");\n        return buf.toString();\n    }\n\n    /**\n     * For users that prefer to express time in milliseconds since 1970\n     *\n     * @param millis the time to compare file's last modified date to,\n     *        expressed in milliseconds\n     */\n    public void setMillis(long millis) {\n        this.millis = millis;\n    }\n\n    /**\n     * Returns the millisecond value the selector is set for.\n     * @return the millisecond value\n     */\n    public long getMillis() {\n        if (dateTime != null) {\n            validate();\n        }\n        return millis;\n    }\n\n    /**\n     * Sets the date. The user must supply it in MM/DD/YYYY HH:MM AM_PM\n     * format\n     *\n     * @param dateTime a string in MM/DD/YYYY HH:MM AM_PM format\n     */\n    public void setDatetime(String dateTime) {\n        this.dateTime = dateTime;\n    }\n\n    /**\n     * Should we be checking dates on directories?\n     *\n     * @param includeDirs whether to check the timestamp on directories\n     */\n    public void setCheckdirs(boolean includeDirs) {\n        this.includeDirs = includeDirs;\n    }\n\n    /**\n     * Sets the number of milliseconds leeway we will give before we consider\n     * a file not to have matched a date.\n     * @param granularity the number of milliconds leeway\n     */\n    public void setGranularity(int granularity) {\n        this.granularity = granularity;\n    }\n\n    /**\n     * Sets the type of comparison to be done on the file's last modified\n     * date.\n     *\n     * @param cmp The comparison to perform, an EnumeratedAttribute\n     */\n    public void setWhen(TimeComparisons cmp) {\n        this.cmp = cmp.getIndex();\n    }\n\n    /**\n     * Sets the pattern to be used for the SimpleDateFormat\n     *\n     * @param pattern the pattern that defines the date format\n     */\n    public void setPattern(String pattern) {\n        this.pattern = pattern;\n    }\n\n    /**\n     * When using this as a custom selector, this method will be called.\n     * It translates each parameter into the appropriate setXXX() call.\n     *\n     * @param parameters the complete set of parameters for this selector\n     */\n    public void setParameters(Parameter[] parameters) {\n        super.setParameters(parameters);\n        if (parameters != null) {\n            for (int i = 0; i < parameters.length; i++) {\n                String paramname = parameters[i].getName();\n                if (MILLIS_KEY.equalsIgnoreCase(paramname)) {\n                    try {\n                        setMillis(new Long(parameters[i].getValue()\n                        ).longValue());\n                    } catch (NumberFormatException nfe) {\n                        setError(\"Invalid millisecond setting \"\n                                + parameters[i].getValue());\n                    }\n                } else if (DATETIME_KEY.equalsIgnoreCase(paramname)) {\n                    setDatetime(parameters[i].getValue());\n                } else if (CHECKDIRS_KEY.equalsIgnoreCase(paramname)) {\n                    setCheckdirs(Project.toBoolean(parameters[i].getValue()));\n                } else if (GRANULARITY_KEY.equalsIgnoreCase(paramname)) {\n                    try {\n                        setGranularity(new Integer(parameters[i].getValue()\n                        ).intValue());\n                    } catch (NumberFormatException nfe) {\n                        setError(\"Invalid granularity setting \"\n                            + parameters[i].getValue());\n                    }\n                } else if (WHEN_KEY.equalsIgnoreCase(paramname)) {\n                    TimeComparisons cmp = new TimeComparisons();\n                    cmp.setValue(parameters[i].getValue());\n                    setWhen(cmp);\n                } else if (PATTERN_KEY.equalsIgnoreCase(paramname)) {\n                    setPattern(parameters[i].getValue());\n                } else {\n                    setError(\"Invalid parameter \" + paramname);\n                }\n            }\n        }\n    }\n\n    /**\n     * This is a consistency check to ensure the selector's required\n     * values have been set.\n     */\n    public void verifySettings() {\n        if (dateTime == null && millis < 0) {\n            setError(\"You must provide a datetime or the number of \"\n                    + \"milliseconds.\");\n        } else if (millis < 0 && dateTime != null) {\n            DateFormat df = ((pattern == null)\n                ? DateFormat.getDateTimeInstance(\n                    DateFormat.SHORT, DateFormat.SHORT, Locale.US)\n                : new SimpleDateFormat(pattern));\n\n            try {\n                setMillis(df.parse(dateTime).getTime());\n                if (millis < 0) {\n                    setError(\"Date of \" + dateTime\n                        + \" results in negative milliseconds value\"\n                        + \" relative to epoch (January 1, 1970, 00:00:00 GMT).\");\n                }\n            } catch (ParseException pe) {\n                setError(\"Date of \" + dateTime\n                        + \" Cannot be parsed correctly. It should be in\"\n                        + ((pattern == null)\n                        ? \" MM/DD/YYYY HH:MM AM_PM\" : pattern) + \" format.\");\n            }\n        }\n    }\n\n    /**\n     * The heart of the matter. This is where the selector gets to decide\n     * on the inclusion of a file in a particular fileset.\n     *\n     * @param basedir the base directory the scan is being done from\n     * @param filename is the name of the file to check\n     * @param file is a java.io.File object the selector can use\n     * @return whether the file should be selected or not\n     */\n    public boolean isSelected(File basedir, String filename, File file) {\n\n        validate();\n\n        if (file.isDirectory() && (!includeDirs)) {\n            return true;\n        }\n        if (cmp == 0) {\n            return ((file.lastModified() - granularity) < millis);\n        } else if (cmp == 1) {\n            return ((file.lastModified() + granularity) > millis);\n        } else {\n            return (Math.abs(file.lastModified() - millis) <= granularity);\n        }\n    }\n\n    /**\n     * Enumerated attribute with the values for time comparison.\n     * <p>\n     */\n    public static class TimeComparisons extends EnumeratedAttribute {\n        /**\n         * @return the values as an array of strings\n         */\n        public String[] getValues() {\n            return new String[]{\"before\", \"after\", \"equal\"};", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer(\"{dateselector date: \");\n        buf.append(dateTime);\n        buf.append(\" compare: \");\n        if (cmp == 0) {\n            buf.append(\"before\");\n        } else if (cmp == 1) {\n            buf.append(\"after\");\n        } else {\n            buf.append(\"equal\");\n        }\n        buf.append(\" granularity: \");\n        buf.append(granularity);\n        if (pattern != null) {\n            buf.append(\" pattern: \").append(pattern);\n        }\n        buf.append(\"}\");\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [0, 9], [3, 10], [3, 11], [0, 12], [0, 13], [6, 14], [7, 15], [9, 16], [10, 17], [11, 18], [12, 19], [4, 20], [2, 21], [17, 22], [3, 23], [20, 24], [21, 25], [21, 26], [10, 27], [10, 28], [23, 29], [27, 30], [28, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 0], [10, 3], [11, 3], [12, 0], [13, 0], [14, 6], [15, 7], [16, 9], [17, 10], [18, 11], [19, 12], [20, 4], [21, 2], [22, 17], [23, 3], [24, 20], [25, 21], [26, 21], [27, 10], [28, 10], [29, 23], [30, 27], [31, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "setMillis", "code": "    public void setMillis(long millis) {\n        this.millis = millis;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMillis", "code": "    public long getMillis() {\n        if (dateTime != null) {\n            validate();\n        }\n        return millis;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setDatetime", "code": "    public void setDatetime(String dateTime) {\n        this.dateTime = dateTime;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCheckdirs", "code": "    public void setCheckdirs(boolean includeDirs) {\n        this.includeDirs = includeDirs;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setGranularity", "code": "    public void setGranularity(int granularity) {\n        this.granularity = granularity;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setWhen", "code": "    public void setWhen(TimeComparisons cmp) {\n        this.cmp = cmp.getIndex();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setPattern", "code": "    public void setPattern(String pattern) {\n        this.pattern = pattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setParameters", "code": "    public void setParameters(Parameter[] parameters) {\n        super.setParameters(parameters);\n        if (parameters != null) {\n            for (int i = 0; i < parameters.length; i++) {\n                String paramname = parameters[i].getName();\n                if (MILLIS_KEY.equalsIgnoreCase(paramname)) {\n                    try {\n                        setMillis(new Long(parameters[i].getValue()\n                        ).longValue());\n                    } catch (NumberFormatException nfe) {\n                        setError(\"Invalid millisecond setting \"\n                                + parameters[i].getValue());\n                    }\n                } else if (DATETIME_KEY.equalsIgnoreCase(paramname)) {\n                    setDatetime(parameters[i].getValue());\n                } else if (CHECKDIRS_KEY.equalsIgnoreCase(paramname)) {\n                    setCheckdirs(Project.toBoolean(parameters[i].getValue()));\n                } else if (GRANULARITY_KEY.equalsIgnoreCase(paramname)) {\n                    try {\n                        setGranularity(new Integer(parameters[i].getValue()\n                        ).intValue());\n                    } catch (NumberFormatException nfe) {\n                        setError(\"Invalid granularity setting \"\n                            + parameters[i].getValue());\n                    }\n                } else if (WHEN_KEY.equalsIgnoreCase(paramname)) {\n                    TimeComparisons cmp = new TimeComparisons();\n                    cmp.setValue(parameters[i].getValue());\n                    setWhen(cmp);\n                } else if (PATTERN_KEY.equalsIgnoreCase(paramname)) {\n                    setPattern(parameters[i].getValue());\n                } else {\n                    setError(\"Invalid parameter \" + paramname);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "TRY", "IF", "CALL", "CATCH", "CALL", "IF", "CALL", "CALL", "CALL", "IF", "CALL", "TRY", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CATCH", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [4, 8], [7, 9], [7, 10], [4, 11], [9, 12], [9, 13], [7, 14], [12, 15], [12, 16], [14, 17], [8, 18], [15, 19], [15, 20], [9, 21], [14, 22], [19, 23], [19, 24], [15, 25], [12, 26], [17, 27], [22, 28], [23, 29], [19, 30], [25, 31], [26, 32], [21, 33], [27, 34], [28, 35], [19, 36], [19, 37], [25, 38], [34, 39], [28, 40], [23, 41], [23, 42], [30, 43], [31, 44], [38, 45], [32, 46], [34, 47], [41, 48], [37, 49], [44, 50], [45, 51], [48, 52], [42, 53], [50, 54], [45, 55], [50, 56], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 4], [9, 7], [10, 7], [11, 4], [12, 9], [13, 9], [14, 7], [15, 12], [16, 12], [17, 14], [18, 8], [19, 15], [20, 15], [21, 9], [22, 14], [23, 19], [24, 19], [25, 15], [26, 12], [27, 17], [28, 22], [29, 23], [30, 19], [31, 25], [32, 26], [33, 21], [34, 27], [35, 28], [36, 19], [37, 19], [38, 25], [39, 34], [40, 28], [41, 23], [42, 23], [43, 30], [44, 31], [45, 38], [46, 32], [47, 34], [48, 41], [49, 37], [50, 44], [51, 45], [52, 48], [53, 42], [54, 50], [55, 45], [56, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "verifySettings", "code": "    public void verifySettings() {\n        if (dateTime == null && millis < 0) {\n            setError(\"You must provide a datetime or the number of \"\n                    + \"milliseconds.\");\n        } else if (millis < 0 && dateTime != null) {\n            DateFormat df = ((pattern == null)\n                ? DateFormat.getDateTimeInstance(\n                    DateFormat.SHORT, DateFormat.SHORT, Locale.US)\n                : new SimpleDateFormat(pattern));\n\n            try {\n                setMillis(df.parse(dateTime).getTime());\n                if (millis < 0) {\n                    setError(\"Date of \" + dateTime\n                        + \" results in negative milliseconds value\"\n                        + \" relative to epoch (January 1, 1970, 00:00:00 GMT).\");\n                }\n            } catch (ParseException pe) {\n                setError(\"Date of \" + dateTime\n                        + \" Cannot be parsed correctly. It should be in\"\n                        + ((pattern == null)\n                        ? \" MM/DD/YYYY HH:MM AM_PM\" : pattern) + \" format.\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "TRY", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [3, 6], [2, 7], [2, 8], [4, 9], [4, 10], [1, 11], [5, 12], [6, 13], [7, 14], [7, 15], [9, 16], [10, 17], [11, 18], [15, 19], [7, 20], [8, 21], [18, 22], [18, 23], [14, 24], [19, 25], [20, 26], [21, 27], [21, 28], [21, 29], [24, 30], [15, 31], [26, 32], [29, 33], [30, 34], [30, 35], [31, 36], [35, 37], [35, 38], [36, 39], [36, 40], [37, 41], [37, 42], [38, 43], [38, 44], [40, 45], [40, 46], [42, 47], [44, 48], [46, 49], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 3], [7, 2], [8, 2], [9, 4], [10, 4], [11, 1], [12, 5], [13, 6], [14, 7], [15, 7], [16, 9], [17, 10], [18, 11], [19, 15], [20, 7], [21, 8], [22, 18], [23, 18], [24, 14], [25, 19], [26, 20], [27, 21], [28, 21], [29, 21], [30, 24], [31, 15], [32, 26], [33, 29], [34, 30], [35, 30], [36, 31], [37, 35], [38, 35], [39, 36], [40, 36], [41, 37], [42, 37], [43, 38], [44, 38], [45, 40], [46, 40], [47, 42], [48, 44], [49, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "isSelected", "code": "    public boolean isSelected(File basedir, String filename, File file) {\n\n        validate();\n\n        if (file.isDirectory() && (!includeDirs)) {\n            return true;\n        }\n        if (cmp == 0) {\n            return ((file.lastModified() - granularity) < millis);\n        } else if (cmp == 1) {\n            return ((file.lastModified() + granularity) > millis);\n        } else {\n            return (Math.abs(file.lastModified() - millis) <= granularity);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [0, 9], [6, 10], [1, 11], [7, 12], [2, 13], [8, 14], [6, 15], [6, 16], [10, 17], [11, 18], [13, 19], [15, 20], [16, 21], [18, 22], [20, 23], [21, 24], [22, 25], [23, 26], [24, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 0], [10, 6], [11, 1], [12, 7], [13, 2], [14, 8], [15, 6], [16, 6], [17, 10], [18, 11], [19, 13], [20, 15], [21, 16], [22, 18], [23, 20], [24, 21], [25, 22], [26, 23], [27, 24], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "DateSelector", "code": "    public DateSelector() {\n        if (Os.isFamily(\"dos\")) {\n            granularity = 2000;", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "poi-2.5-5810", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/usermodel/EscherGraphics2d.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.EscherGraphics2d", "code": "public class EscherGraphics2d extends Graphics2D\n{\n    private EscherGraphics escherGraphics;\n    private BufferedImage img;\n    private AffineTransform trans;\n    private Stroke stroke;\n    private Paint paint;\n    private Shape deviceclip;\n    private POILogger logger = POILogFactory.getLogger(getClass());\n\n    /**\n     * Constructs one escher graphics object from an escher graphics object.\n     *\n     * @param escherGraphics    the original EscherGraphics2d object to copy\n     */\n    public EscherGraphics2d(EscherGraphics escherGraphics)\n    {\n        this.escherGraphics = escherGraphics;\n        setImg( new BufferedImage(1, 1, 2) );\n        setColor(Color.black);\n    }\n\n    public void addRenderingHints(Map map)\n    {\n        getG2D().addRenderingHints(map);\n    }\n\n    public void clearRect(int i, int j, int k, int l)\n    {\n        Paint paint1 = getPaint();\n        setColor(getBackground());\n        fillRect(i, j, k, l);\n        setPaint(paint1);\n    }\n\n    public void clip(Shape shape)\n    {\n        if(getDeviceclip() != null)\n        {\n            Area area = new Area(getClip());\n            if(shape != null)\n                area.intersect(new Area(shape));\n            shape = area;\n        }\n        setClip(shape);\n    }\n\n    public void clipRect(int x, int y, int width, int height)\n    {\n        clip(new Rectangle(x,y,width,height));\n    }\n\n    public void copyArea(int x, int y, int width, int height,\n\t\t\t\t  int dx, int dy)\n    {\n        getG2D().copyArea(x,y,width,height,dx,dy);\n    }\n\n    public Graphics create()\n    {\n        EscherGraphics2d g2d = new EscherGraphics2d(escherGraphics);\n        return g2d;\n    }\n\n    public void dispose()\n    {\n        getEscherGraphics().dispose();\n        getG2D().dispose();\n        getImg().flush();\n    }\n\n    public void draw(Shape shape)\n    {\n        if (logger.check( POILogger.WARN ))\n            logger.log(POILogger.WARN,\"copyArea not supported\");\n    }\n\n    public void drawArc(int x, int y, int width, int height,\n\t\t\t\t int startAngle, int arcAngle)\n    {\n        draw(new java.awt.geom.Arc2D.Float(x, y, width, height, startAngle, arcAngle, 0));\n    }\n\n    public void drawGlyphVector(GlyphVector g, float x, float y)\n    {\n        fill(g.getOutline(x, y));\n    }\n\n    public boolean drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1,\n            int sx2, int sy2, Color bgColor, ImageObserver imageobserver)\n    {\n        if (logger.check( POILogger.WARN ))\n            logger.log(POILogger.WARN,\"drawImage() not supported\");\n        return true;\n    }\n\n    public boolean drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1,\n            int sx2, int sy2, ImageObserver imageobserver)\n    {\n        if (logger.check( POILogger.WARN ))\n            logger.log(POILogger.WARN,\"drawImage() not supported\");\n        return drawImage(image, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, null, imageobserver);\n    }\n    public boolean drawImage(Image image, int dx1, int dy1, int dx2, int dy2, Color bgColor, ImageObserver imageobserver)\n    {\n        if (logger.check( POILogger.WARN ))\n            logger.log(POILogger.WARN,\"drawImage() not supported\");\n        return true;\n    }\n\n    public boolean drawImage(Image img, int x, int y,\n\t\t\t\t      int width, int height,\n\t\t\t\t      ImageObserver observer)\n    {\n        return drawImage(img, x,y,width,height, null, observer);\n    }\n\n    public boolean drawImage(Image image, int x, int y, Color bgColor, ImageObserver imageobserver)\n    {\n        return drawImage(image, x, y, image.getWidth(imageobserver), image.getHeight(imageobserver), bgColor, imageobserver);\n    }\n\n    public boolean drawImage(Image image, int x, int y, ImageObserver imageobserver)\n    {\n        return drawImage(image, x, y, image.getWidth(imageobserver), image.getHeight(imageobserver), imageobserver);\n    }\n\n    public boolean drawImage(Image image, AffineTransform affinetransform, ImageObserver imageobserver)\n    {\n        AffineTransform affinetransform1 = (AffineTransform)getTrans().clone();\n        getTrans().concatenate(affinetransform);\n        drawImage(image, 0, 0, imageobserver);\n        setTrans( affinetransform1 );\n        return true;\n    }\n\n    public void drawImage(BufferedImage bufferedimage, BufferedImageOp op, int x, int y)\n    {\n        BufferedImage img = op.filter(bufferedimage, null);\n        drawImage(((Image) (img)), new AffineTransform(1.0F, 0.0F, 0.0F, 1.0F, x, y), null);\n    }\n\n    public void drawLine(int x1, int y1, int x2, int y2)\n    {\n        getEscherGraphics().drawLine(x1,y1,x2,y2);\n    }\n\n    public void drawOval(int x, int y, int width, int height)\n    {\n        getEscherGraphics().drawOval(x,y,width,height);\n    }\n\n    public void drawPolygon(int xPoints[], int yPoints[],\n\t\t\t\t     int nPoints)\n    {\n        getEscherGraphics().drawPolygon(xPoints, yPoints, nPoints);\n    }\n\n    public void drawPolyline(int xPoints[], int yPoints[], int nPoints)\n    {\n        if(nPoints > 0)\n        {\n            GeneralPath generalpath = new GeneralPath();\n            generalpath.moveTo(xPoints[0], yPoints[0]);\n            for(int j = 1; j < nPoints; j++)\n                generalpath.lineTo(xPoints[j], yPoints[j]);\n\n            draw(generalpath);\n        }\n    }\n\n    public void drawRect(int x, int y, int width, int height)\n    {\n        escherGraphics.drawRect(x,y,width,height);\n    }\n\n    public void drawRenderableImage(RenderableImage renderableimage, AffineTransform affinetransform)\n    {\n        drawRenderedImage(renderableimage.createDefaultRendering(), affinetransform);\n    }\n\n    public void drawRenderedImage(RenderedImage renderedimage, AffineTransform affinetransform)\n    {\n        BufferedImage bufferedimage = new BufferedImage(renderedimage.getColorModel(), renderedimage.getData().createCompatibleWritableRaster(), false, null);\n        bufferedimage.setData(renderedimage.getData());\n        drawImage(bufferedimage, affinetransform, null);\n    }\n\n    public void drawRoundRect(int i, int j, int k, int l, int i1, int j1)\n    {\n        draw(new java.awt.geom.RoundRectangle2D.Float(i, j, k, l, i1, j1));\n    }\n\n    public void drawString(String string, float x, float y)\n    {\n        getEscherGraphics().drawString(string, (int)x, (int)y);\n    }\n\n    public void drawString(String string, int x, int y)\n    {\n        getEscherGraphics().drawString(string, x, y);\n    }\n\n    public void drawString(AttributedCharacterIterator attributedcharacteriterator, float x, float y)\n    {\n        TextLayout textlayout = new TextLayout(attributedcharacteriterator, getFontRenderContext());\n        Paint paint1 = getPaint();\n        setColor(getColor());\n        fill(textlayout.getOutline(AffineTransform.getTranslateInstance(x, y)));\n        setPaint(paint1);\n    }\n\n    public void drawString(AttributedCharacterIterator attributedcharacteriterator, int x, int y)\n    {\n        drawString(attributedcharacteriterator, x, y);\n    }\n\n    public void fill(Shape shape)\n    {\n        if (logger.check( POILogger.WARN ))\n            logger.log(POILogger.WARN,\"fill(Shape) not supported\");\n    }\n\n    public void fillArc(int i, int j, int k, int l, int i1, int j1)\n    {\n        fill(new java.awt.geom.Arc2D.Float(i, j, k, l, i1, j1, 2));\n    }\n\n    public void fillOval(int x, int y, int width, int height)\n    {\n        escherGraphics.fillOval(x,y,width,height);\n    }\n\n    /**\n     * Fills a closed polygon defined by\n     * arrays of <i>x</i> and <i>y</i> coordinates.\n     * <p>\n     * This method draws the polygon defined by <code>nPoint</code> line\n     * segments, where the first <code>nPoint&nbsp;-&nbsp;1</code>\n     * line segments are line segments from\n     * <code>(xPoints[i&nbsp;-&nbsp;1],&nbsp;yPoints[i&nbsp;-&nbsp;1])</code>\n     * to <code>(xPoints[i],&nbsp;yPoints[i])</code>, for\n     * 1&nbsp;&le;&nbsp;<i>i</i>&nbsp;&le;&nbsp;<code>nPoints</code>.\n     * The figure is automatically closed by drawing a line connecting\n     * the final point to the first point, if those points are different.\n     * <p>\n     * The area inside the polygon is defined using an\n     * even-odd fill rule, also known as the alternating rule.\n     * @param        xPoints   a an array of <code>x</code> coordinates.\n     * @param        yPoints   a an array of <code>y</code> coordinates.\n     * @param        nPoints   a the total number of points.\n     * @see          java.awt.Graphics#drawPolygon(int[], int[], int)\n     */\n    public void fillPolygon(int xPoints[], int yPoints[], int nPoints)\n    {\n        escherGraphics.fillPolygon(xPoints, yPoints, nPoints);\n    }\n\n    public void fillRect(int x, int y, int width, int height)\n    {\n        getEscherGraphics().fillRect(x,y,width,height);\n    }\n\n    public void fillRoundRect(int x, int y, int width, int height,\n\t\t\t\t       int arcWidth, int arcHeight)\n    {\n        fill(new java.awt.geom.RoundRectangle2D.Float(x, y, width, height, arcWidth, arcHeight));\n    }\n\n    public Color getBackground()\n    {\n        return getEscherGraphics().getBackground();\n    }\n\n    public Shape getClip()\n    {\n        try\n        {\n            return getTrans().createInverse().createTransformedShape(getDeviceclip());\n        }\n        catch(Exception _ex)\n        {\n            return null;\n        }\n    }\n\n    public Rectangle getClipBounds()\n    {\n        if(getDeviceclip() != null)\n            return getClip().getBounds();\n        else\n            return null;\n    }\n\n    public Color getColor()\n    {\n        return escherGraphics.getColor();\n    }\n\n    public Composite getComposite()\n    {\n        return getG2D().getComposite();\n    }\n\n    public GraphicsConfiguration getDeviceConfiguration()\n    {\n        return getG2D().getDeviceConfiguration();\n    }\n\n    public Font getFont()\n    {\n        return getEscherGraphics().getFont();\n    }\n\n    public FontMetrics getFontMetrics(Font font)\n    {\n        return getEscherGraphics().getFontMetrics(font);\n    }\n\n    public FontRenderContext getFontRenderContext()\n    {\n        getG2D().setTransform(getTrans());\n        return getG2D().getFontRenderContext();\n    }\n\n    public Paint getPaint()\n    {\n        return paint;\n    }\n\n    public Object getRenderingHint(java.awt.RenderingHints.Key key)\n    {\n        return getG2D().getRenderingHint(key);\n    }\n\n    public RenderingHints getRenderingHints()\n    {\n        return getG2D().getRenderingHints();\n    }\n\n    public Stroke getStroke()\n    {\n        return stroke;\n    }\n\n    public AffineTransform getTransform()\n    {\n        return (AffineTransform)getTrans().clone();\n    }\n\n    public boolean hit(Rectangle rectangle, Shape shape, boolean flag)\n    {\n        getG2D().setTransform(getTrans());\n        getG2D().setStroke(getStroke());\n        getG2D().setClip(getClip());\n        return getG2D().hit(rectangle, shape, flag);\n    }\n\n    public void rotate(double d)\n    {\n        getTrans().rotate(d);\n    }\n\n    public void rotate(double d, double d1, double d2)\n    {\n        getTrans().rotate(d, d1, d2);\n    }\n\n    public void scale(double d, double d1)\n    {\n        getTrans().scale(d, d1);\n    }\n\n    public void setBackground(Color c)\n    {\n        getEscherGraphics().setBackground(c);\n    }\n\n    public void setClip(int i, int j, int k, int l)\n    {\n        setClip(((Shape) (new Rectangle(i, j, k, l))));\n    }\n\n    public void setClip(Shape shape)\n    {\n        setDeviceclip( getTrans().createTransformedShape(shape) );\n    }\n\n    public void setColor(Color c)\n    {\n        escherGraphics.setColor(c);\n    }\n\n    public void setComposite(Composite composite)\n    {\n        getG2D().setComposite(composite);\n    }\n\n    public void setFont(Font font)\n    {\n        getEscherGraphics().setFont(font);\n    }\n\n    public void setPaint(Paint paint1)\n    {\n        if(paint1 != null)\n        {\n            paint = paint1;\n            if(paint1 instanceof Color)\n                setColor( (Color)paint1 );\n        }\n    }\n\n    public void setPaintMode()\n    {\n        getEscherGraphics().setPaintMode();\n    }\n\n    public void setRenderingHint(java.awt.RenderingHints.Key key, Object obj)\n    {\n        getG2D().setRenderingHint(key, obj);\n    }\n\n    public void setRenderingHints(Map map)\n    {\n        getG2D().setRenderingHints(map);\n    }\n\n    public void setStroke(Stroke s)\n    {\n        stroke = s;\n    }\n\n    public void setTransform(AffineTransform affinetransform)\n    {\n        setTrans( (AffineTransform)affinetransform.clone() );\n    }\n\n    public void setXORMode(Color color1)\n    {\n        getEscherGraphics().setXORMode(color1);\n    }\n\n    public void shear(double d, double d1)\n    {\n        getTrans().shear(d, d1);\n    }\n\n    public void transform(AffineTransform affinetransform)\n    {\n        getTrans().concatenate(affinetransform);\n    }\n\n\n    public void translate(double d, double d1)\n    {\n        getTrans().translate(d, d1);\n    }\n\n    public void translate(int i, int j)\n    {\n        getTrans().translate(i, j);\n    }\n\n    private EscherGraphics getEscherGraphics()\n    {\n        return escherGraphics;\n    }\n\n    private BufferedImage getImg()\n    {\n        return img;\n    }\n\n    private void setImg( BufferedImage img )\n    {\n        this.img = img;\n    }\n\n    private Graphics2D getG2D()\n    {\n        return (Graphics2D) img.getGraphics();\n    }\n\n    private AffineTransform getTrans()\n    {\n        return trans;\n    }\n\n    private void setTrans( AffineTransform trans )\n    {\n        this.trans = trans;\n    }\n\n    private Shape getDeviceclip()\n    {\n        return deviceclip;\n    }\n\n    private void setDeviceclip( Shape deviceclip )\n    {\n        this.deviceclip = deviceclip;", "functions": [{"function_name": "addRenderingHints", "code": "    public void addRenderingHints(Map map)\n    {\n        getG2D().addRenderingHints(map);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "clearRect", "code": "    public void clearRect(int i, int j, int k, int l)\n    {\n        Paint paint1 = getPaint();\n        setColor(getBackground());\n        fillRect(i, j, k, l);\n        setPaint(paint1);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [8, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 8], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "clip", "code": "    public void clip(Shape shape)\n    {\n        if(getDeviceclip() != null)\n        {\n            Area area = new Area(getClip());\n            if(shape != null)\n                area.intersect(new Area(shape));\n            shape = area;\n        }\n        setClip(shape);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [1, 9], [5, 10], [5, 11], [10, 12], [6, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 1], [10, 5], [11, 5], [12, 10], [13, 6], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "clipRect", "code": "    public void clipRect(int x, int y, int width, int height)\n    {\n        clip(new Rectangle(x,y,width,height));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "copyArea", "code": "    public void copyArea(int x, int y, int width, int height,\n\t\t\t\t  int dx, int dy)\n    {\n        getG2D().copyArea(x,y,width,height,dx,dy);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "create", "code": "    public Graphics create()\n    {\n        EscherGraphics2d g2d = new EscherGraphics2d(escherGraphics);\n        return g2d;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispose", "code": "    public void dispose()\n    {\n        getEscherGraphics().dispose();\n        getG2D().dispose();\n        getImg().flush();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "draw", "code": "    public void draw(Shape shape)\n    {\n        if (logger.check( POILogger.WARN ))\n            logger.log(POILogger.WARN,\"copyArea not supported\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "drawArc", "code": "    public void drawArc(int x, int y, int width, int height,\n\t\t\t\t int startAngle, int arcAngle)\n    {\n        draw(new java.awt.geom.Arc2D.Float(x, y, width, height, startAngle, arcAngle, 0));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "drawGlyphVector", "code": "    public void drawGlyphVector(GlyphVector g, float x, float y)\n    {\n        fill(g.getOutline(x, y));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1,\n            int sx2, int sy2, Color bgColor, ImageObserver imageobserver)\n    {\n        if (logger.check( POILogger.WARN ))\n            logger.log(POILogger.WARN,\"drawImage() not supported\");\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [2, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 2], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1,\n            int sx2, int sy2, ImageObserver imageobserver)\n    {\n        if (logger.check( POILogger.WARN ))\n            logger.log(POILogger.WARN,\"drawImage() not supported\");\n        return drawImage(image, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, null, imageobserver);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [13, 15], [2, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 13], [16, 2], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image image, int dx1, int dy1, int dx2, int dy2, Color bgColor, ImageObserver imageobserver)\n    {\n        if (logger.check( POILogger.WARN ))\n            logger.log(POILogger.WARN,\"drawImage() not supported\");\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image img, int x, int y,\n\t\t\t\t      int width, int height,\n\t\t\t\t      ImageObserver observer)\n    {\n        return drawImage(img, x,y,width,height, null, observer);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image image, int x, int y, Color bgColor, ImageObserver imageobserver)\n    {\n        return drawImage(image, x, y, image.getWidth(imageobserver), image.getHeight(imageobserver), bgColor, imageobserver);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image image, int x, int y, ImageObserver imageobserver)\n    {\n        return drawImage(image, x, y, image.getWidth(imageobserver), image.getHeight(imageobserver), imageobserver);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image image, AffineTransform affinetransform, ImageObserver imageobserver)\n    {\n        AffineTransform affinetransform1 = (AffineTransform)getTrans().clone();\n        getTrans().concatenate(affinetransform);\n        drawImage(image, 0, 0, imageobserver);\n        setTrans( affinetransform1 );\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [8, 10], [8, 11], [9, 12], [2, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 8], [11, 8], [12, 9], [13, 2], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "drawImage", "code": "    public void drawImage(BufferedImage bufferedimage, BufferedImageOp op, int x, int y)\n    {\n        BufferedImage img = op.filter(bufferedimage, null);\n        drawImage(((Image) (img)), new AffineTransform(1.0F, 0.0F, 0.0F, 1.0F, x, y), null);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [6, 8], [1, 9], [8, 10], [8, 11], [8, 12], [8, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 6], [9, 1], [10, 8], [11, 8], [12, 8], [13, 8], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "drawLine", "code": "    public void drawLine(int x1, int y1, int x2, int y2)\n    {\n        getEscherGraphics().drawLine(x1,y1,x2,y2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "drawOval", "code": "    public void drawOval(int x, int y, int width, int height)\n    {\n        getEscherGraphics().drawOval(x,y,width,height);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "drawPolygon", "code": "    public void drawPolygon(int xPoints[], int yPoints[],\n\t\t\t\t     int nPoints)\n    {\n        getEscherGraphics().drawPolygon(xPoints, yPoints, nPoints);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "drawPolyline", "code": "    public void drawPolyline(int xPoints[], int yPoints[], int nPoints)\n    {\n        if(nPoints > 0)\n        {\n            GeneralPath generalpath = new GeneralPath();\n            generalpath.moveTo(xPoints[0], yPoints[0]);\n            for(int j = 1; j < nPoints; j++)\n                generalpath.lineTo(xPoints[j], yPoints[j]);\n\n            draw(generalpath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [1, 9], [6, 10], [1, 11], [6, 12], [7, 13], [6, 14], [11, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 1], [10, 6], [11, 1], [12, 6], [13, 7], [14, 6], [15, 11], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "drawRect", "code": "    public void drawRect(int x, int y, int width, int height)\n    {\n        escherGraphics.drawRect(x,y,width,height);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "drawRenderableImage", "code": "    public void drawRenderableImage(RenderableImage renderableimage, AffineTransform affinetransform)\n    {\n        drawRenderedImage(renderableimage.createDefaultRendering(), affinetransform);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "drawRenderedImage", "code": "    public void drawRenderedImage(RenderedImage renderedimage, AffineTransform affinetransform)\n    {\n        BufferedImage bufferedimage = new BufferedImage(renderedimage.getColorModel(), renderedimage.getData().createCompatibleWritableRaster(), false, null);\n        bufferedimage.setData(renderedimage.getData());\n        drawImage(bufferedimage, affinetransform, null);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [1, 8], [8, 9], [8, 10], [8, 11], [8, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 1], [9, 8], [10, 8], [11, 8], [12, 8], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "drawRoundRect", "code": "    public void drawRoundRect(int i, int j, int k, int l, int i1, int j1)\n    {\n        draw(new java.awt.geom.RoundRectangle2D.Float(i, j, k, l, i1, j1));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "drawString", "code": "    public void drawString(String string, float x, float y)\n    {\n        getEscherGraphics().drawString(string, (int)x, (int)y);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "drawString", "code": "    public void drawString(String string, int x, int y)\n    {\n        getEscherGraphics().drawString(string, x, y);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "drawString", "code": "    public void drawString(AttributedCharacterIterator attributedcharacteriterator, float x, float y)\n    {\n        TextLayout textlayout = new TextLayout(attributedcharacteriterator, getFontRenderContext());\n        Paint paint1 = getPaint();\n        setColor(getColor());\n        fill(textlayout.getOutline(AffineTransform.getTranslateInstance(x, y)));\n        setPaint(paint1);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [7, 9], [8, 10], [1, 11], [2, 12], [9, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 7], [10, 8], [11, 1], [12, 2], [13, 9], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "drawString", "code": "    public void drawString(AttributedCharacterIterator attributedcharacteriterator, int x, int y)\n    {\n        drawString(attributedcharacteriterator, x, y);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "fill", "code": "    public void fill(Shape shape)\n    {\n        if (logger.check( POILogger.WARN ))\n            logger.log(POILogger.WARN,\"fill(Shape) not supported\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "fillArc", "code": "    public void fillArc(int i, int j, int k, int l, int i1, int j1)\n    {\n        fill(new java.awt.geom.Arc2D.Float(i, j, k, l, i1, j1, 2));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "fillOval", "code": "    public void fillOval(int x, int y, int width, int height)\n    {\n        escherGraphics.fillOval(x,y,width,height);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "fillPolygon", "code": "    public void fillPolygon(int xPoints[], int yPoints[], int nPoints)\n    {\n        escherGraphics.fillPolygon(xPoints, yPoints, nPoints);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "fillRect", "code": "    public void fillRect(int x, int y, int width, int height)\n    {\n        getEscherGraphics().fillRect(x,y,width,height);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillRoundRect", "code": "    public void fillRoundRect(int x, int y, int width, int height,\n\t\t\t\t       int arcWidth, int arcHeight)\n    {\n        fill(new java.awt.geom.RoundRectangle2D.Float(x, y, width, height, arcWidth, arcHeight));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getBackground", "code": "    public Color getBackground()\n    {\n        return getEscherGraphics().getBackground();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getClip", "code": "    public Shape getClip()\n    {\n        try\n        {\n            return getTrans().createInverse().createTransformedShape(getDeviceclip());\n        }\n        catch(Exception _ex)\n        {\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [5, 7], [5, 8], [7, 9], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [7, 5], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getClipBounds", "code": "    public Rectangle getClipBounds()\n    {\n        if(getDeviceclip() != null)\n            return getClip().getBounds();\n        else\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [4, 8], [6, 9], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 4], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getColor", "code": "    public Color getColor()\n    {\n        return escherGraphics.getColor();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getComposite", "code": "    public Composite getComposite()\n    {\n        return getG2D().getComposite();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDeviceConfiguration", "code": "    public GraphicsConfiguration getDeviceConfiguration()\n    {\n        return getG2D().getDeviceConfiguration();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFont", "code": "    public Font getFont()\n    {\n        return getEscherGraphics().getFont();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFontMetrics", "code": "    public FontMetrics getFontMetrics(Font font)\n    {\n        return getEscherGraphics().getFontMetrics(font);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFontRenderContext", "code": "    public FontRenderContext getFontRenderContext()\n    {\n        getG2D().setTransform(getTrans());\n        return getG2D().getFontRenderContext();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [3, 5], [5, 6], [1, 0], [2, 1], [3, 0], [4, 2], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getPaint", "code": "    public Paint getPaint()\n    {\n        return paint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRenderingHint", "code": "    public Object getRenderingHint(java.awt.RenderingHints.Key key)\n    {\n        return getG2D().getRenderingHint(key);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRenderingHints", "code": "    public RenderingHints getRenderingHints()\n    {\n        return getG2D().getRenderingHints();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStroke", "code": "    public Stroke getStroke()\n    {\n        return stroke;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTransform", "code": "    public AffineTransform getTransform()\n    {\n        return (AffineTransform)getTrans().clone();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hit", "code": "    public boolean hit(Rectangle rectangle, Shape shape, boolean flag)\n    {\n        getG2D().setTransform(getTrans());\n        getG2D().setStroke(getStroke());\n        getG2D().setClip(getClip());\n        return getG2D().hit(rectangle, shape, flag);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [10, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 10], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "rotate", "code": "    public void rotate(double d)\n    {\n        getTrans().rotate(d);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "rotate", "code": "    public void rotate(double d, double d1, double d2)\n    {\n        getTrans().rotate(d, d1, d2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "scale", "code": "    public void scale(double d, double d1)\n    {\n        getTrans().scale(d, d1);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setBackground", "code": "    public void setBackground(Color c)\n    {\n        getEscherGraphics().setBackground(c);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setClip", "code": "    public void setClip(int i, int j, int k, int l)\n    {\n        setClip(((Shape) (new Rectangle(i, j, k, l))));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setClip", "code": "    public void setClip(Shape shape)\n    {\n        setDeviceclip( getTrans().createTransformedShape(shape) );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setColor", "code": "    public void setColor(Color c)\n    {\n        escherGraphics.setColor(c);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setComposite", "code": "    public void setComposite(Composite composite)\n    {\n        getG2D().setComposite(composite);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFont", "code": "    public void setFont(Font font)\n    {\n        getEscherGraphics().setFont(font);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setPaint", "code": "    public void setPaint(Paint paint1)\n    {\n        if(paint1 != null)\n        {\n            paint = paint1;\n            if(paint1 instanceof Color)\n                setColor( (Color)paint1 );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [4, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setPaintMode", "code": "    public void setPaintMode()\n    {\n        getEscherGraphics().setPaintMode();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRenderingHint", "code": "    public void setRenderingHint(java.awt.RenderingHints.Key key, Object obj)\n    {\n        getG2D().setRenderingHint(key, obj);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setRenderingHints", "code": "    public void setRenderingHints(Map map)\n    {\n        getG2D().setRenderingHints(map);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setStroke", "code": "    public void setStroke(Stroke s)\n    {\n        stroke = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTransform", "code": "    public void setTransform(AffineTransform affinetransform)\n    {\n        setTrans( (AffineTransform)affinetransform.clone() );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setXORMode", "code": "    public void setXORMode(Color color1)\n    {\n        getEscherGraphics().setXORMode(color1);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "shear", "code": "    public void shear(double d, double d1)\n    {\n        getTrans().shear(d, d1);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "transform", "code": "    public void transform(AffineTransform affinetransform)\n    {\n        getTrans().concatenate(affinetransform);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translate", "code": "    public void translate(double d, double d1)\n    {\n        getTrans().translate(d, d1);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "translate", "code": "    public void translate(int i, int j)\n    {\n        getTrans().translate(i, j);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getEscherGraphics", "code": "    private EscherGraphics getEscherGraphics()\n    {\n        return escherGraphics;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getImg", "code": "    private BufferedImage getImg()\n    {\n        return img;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setImg", "code": "    private void setImg( BufferedImage img )\n    {\n        this.img = img;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getG2D", "code": "    private Graphics2D getG2D()\n    {\n        return (Graphics2D) img.getGraphics();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTrans", "code": "    private AffineTransform getTrans()\n    {\n        return trans;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTrans", "code": "    private void setTrans( AffineTransform trans )\n    {\n        this.trans = trans;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDeviceclip", "code": "    private Shape getDeviceclip()\n    {\n        return deviceclip;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDeviceclip", "code": "    private void setDeviceclip( Shape deviceclip )\n    {\n        this.deviceclip = deviceclip;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "EscherGraphics2d", "code": "    public EscherGraphics2d(EscherGraphics escherGraphics)\n    {\n        this.escherGraphics = escherGraphics;\n        setImg( new BufferedImage(1, 1, 2) );\n        setColor(Color.black);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [5, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 5], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.5-7059", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/StringCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.StringCall", "code": "final class StringCall extends FunctionCall {\n    public StringCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal int argc = argumentCount();\n\tif (argc > 1) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.ILLEGAL_ARG_ERR, this);\n\t    throw new TypeCheckError(err);\n\t}\n\n\tif (argc > 0) {\n\t    argument().typeCheck(stable);\n\t}\n\treturn _type = Type.String;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tType targ;\n\n\tif (argumentCount() == 0) {\n\t    il.append(methodGen.loadContextNode());\n\t    targ = Type.Node;\n\t}\n\telse {\n\t    final Expression arg = argument();\n\t    arg.translate(classGen, methodGen);\n\t    arg.startResetIterator(classGen, methodGen);\n\t    targ = arg.getType();\n\t}\n\n\tif (!targ.identicalTo(Type.String)) {\n\t    targ.translateTo(classGen, methodGen, Type.String);", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal int argc = argumentCount();\n\tif (argc > 1) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.ILLEGAL_ARG_ERR, this);\n\t    throw new TypeCheckError(err);\n\t}\n\n\tif (argc > 0) {\n\t    argument().typeCheck(stable);\n\t}\n\treturn _type = Type.String;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [7, 9], [3, 10], [3, 11], [8, 12], [4, 13], [2, 14], [10, 15], [14, 16], [11, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 7], [10, 3], [11, 3], [12, 8], [13, 4], [14, 2], [15, 10], [16, 14], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tType targ;\n\n\tif (argumentCount() == 0) {\n\t    il.append(methodGen.loadContextNode());\n\t    targ = Type.Node;\n\t}\n\telse {\n\t    final Expression arg = argument();\n\t    arg.translate(classGen, methodGen);\n\t    arg.startResetIterator(classGen, methodGen);\n\t    targ = arg.getType();\n\t}\n\n\tif (!targ.identicalTo(Type.String)) {\n\t    targ.translateTo(classGen, methodGen, Type.String);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [8, 10], [8, 11], [4, 12], [1, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [14, 19], [9, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 8], [11, 8], [12, 4], [13, 1], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 14], [20, 9], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "StringCall", "code": "    public StringCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ivy-2.0-3408", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/module/descriptor/DependencyDescriptor.java", "language": "java", "name": "org.apache.ivy.core.module.descriptor.DependencyDescriptor", "code": "public interface DependencyDescriptor extends ExtendableItem {\n    ModuleId getDependencyId();\n\n    /**\n     * Used to indicate that this revision must be used in case of conflicts, independently of\n     * conflicts manager. This only works for direct dependencies, and not transitive ones.\n     * \n     * @return true if this dependency should be used, false if conflicts manager can do its work.\n     */\n    boolean isForce();\n\n    /**\n     * Used to indicate that this dependency is a changing one. A changing dependency in ivy means\n     * that the revision may have its artifacts modified without revision change. When new artifacts\n     * are published a new ivy file should also be published with a new publication date to indicate\n     * to ivy that artifacts have changed and that they should be downloaded again.\n     * \n     * @return true if this dependency is a changing one\n     */\n    boolean isChanging();\n\n    boolean isTransitive();\n\n    ModuleRevisionId getParentRevisionId();\n\n    /**\n     * Returns the constraint on dependency this descriptor represents.\n     * \n     * @return the constraint on dependency.\n     */\n    ModuleRevisionId getDependencyRevisionId();\n\n    /**\n     * Returns the dynamic constraint on dependency this descriptor represents.\n     * \n     * @return the dynamic constraint on dependency, or exact constraint if no dynamic constraint is\n     *         specified.\n     */\n    ModuleRevisionId getDynamicConstraintDependencyRevisionId();\n\n    String[] getModuleConfigurations();\n\n    String[] getDependencyConfigurations(String moduleConfiguration, String requestedConfiguration);\n\n    String[] getDependencyConfigurations(String moduleConfiguration);\n\n    String[] getDependencyConfigurations(String[] moduleConfigurations);\n\n    Namespace getNamespace();\n\n    DependencyArtifactDescriptor[] getAllDependencyArtifacts();\n\n    DependencyArtifactDescriptor[] getDependencyArtifacts(String moduleConfigurations);\n\n    DependencyArtifactDescriptor[] getDependencyArtifacts(String[] moduleConfigurations);\n\n    IncludeRule[] getAllIncludeRules();\n\n    IncludeRule[] getIncludeRules(String moduleConfigurations);\n\n    IncludeRule[] getIncludeRules(String[] moduleConfigurations);\n\n    ExcludeRule[] getAllExcludeRules();\n\n    ExcludeRule[] getExcludeRules(String moduleConfigurations);\n\n    ExcludeRule[] getExcludeRules(String[] moduleConfigurations);\n\n    /**\n     * Returns true if\n     * \n     * @param moduleConfigurations\n     * @param artifactId\n     * @return\n     */\n    boolean doesExclude(String[] moduleConfigurations, ArtifactId artifactId);\n\n    /**\n     * Returns true if this descriptor contains any exclusion rule\n     * \n     * @return true if this descriptor contains any exclusion rule\n     */\n    public boolean canExclude();\n\n    DependencyDescriptor asSystem();\n    \n    /**\n     * Clones current dependency descriptor with another revision.\n     * \n     * @param revision\n     *            the revision of the cloned dependency descriptor\n     * @return the cloned dependency descriptor\n     * @throws IllegalArgumentException\n     *             if the given {@link ModuleRevisionId} has not the same {@link ModuleId} as the\n     *             {@link ModuleRevisionId} of this descriptor.\n     */\n    DependencyDescriptor clone(ModuleRevisionId revision);", "functions": [{"function_name": "getDependencyId", "code": "    ModuleId getDependencyId();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isForce", "code": "    boolean isForce();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isChanging", "code": "    boolean isChanging();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isTransitive", "code": "    boolean isTransitive();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getParentRevisionId", "code": "    ModuleRevisionId getParentRevisionId();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDependencyRevisionId", "code": "    ModuleRevisionId getDependencyRevisionId();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDynamicConstraintDependencyRevisionId", "code": "    ModuleRevisionId getDynamicConstraintDependencyRevisionId();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getModuleConfigurations", "code": "    String[] getModuleConfigurations();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDependencyConfigurations", "code": "    String[] getDependencyConfigurations(String moduleConfiguration, String requestedConfiguration);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDependencyConfigurations", "code": "    String[] getDependencyConfigurations(String moduleConfiguration);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDependencyConfigurations", "code": "    String[] getDependencyConfigurations(String[] moduleConfigurations);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespace", "code": "    Namespace getNamespace();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getAllDependencyArtifacts", "code": "    DependencyArtifactDescriptor[] getAllDependencyArtifacts();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDependencyArtifacts", "code": "    DependencyArtifactDescriptor[] getDependencyArtifacts(String moduleConfigurations);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDependencyArtifacts", "code": "    DependencyArtifactDescriptor[] getDependencyArtifacts(String[] moduleConfigurations);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAllIncludeRules", "code": "    IncludeRule[] getAllIncludeRules();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIncludeRules", "code": "    IncludeRule[] getIncludeRules(String moduleConfigurations);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIncludeRules", "code": "    IncludeRule[] getIncludeRules(String[] moduleConfigurations);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAllExcludeRules", "code": "    ExcludeRule[] getAllExcludeRules();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getExcludeRules", "code": "    ExcludeRule[] getExcludeRules(String moduleConfigurations);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExcludeRules", "code": "    ExcludeRule[] getExcludeRules(String[] moduleConfigurations);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doesExclude", "code": "    boolean doesExclude(String[] moduleConfigurations, ArtifactId artifactId);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "canExclude", "code": "    public boolean canExclude();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "asSystem", "code": "    DependencyDescriptor asSystem();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "clone", "code": "    DependencyDescriptor clone(ModuleRevisionId revision);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-939", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/depend/constantpool/Utf8CPInfo.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.depend.constantpool.Utf8CPInfo", "code": "public class Utf8CPInfo extends ConstantPoolEntry {\n    /** The String value of the UTF-8 entry */\n    private String value;\n\n    /** Constructor.  */\n    public Utf8CPInfo() {\n        super(CONSTANT_UTF8, 1);\n    }\n\n    /**\n     * read a constant pool entry from a class stream.\n     *\n     * @param cpStream the DataInputStream which contains the constant pool\n     *      entry to be read.\n     * @exception IOException if there is a problem reading the entry from\n     *      the stream.\n     */\n    public void read(DataInputStream cpStream) throws IOException {\n        value = cpStream.readUTF();\n    }\n\n    /**\n     * Print a readable version of the constant pool entry.\n     *\n     * @return the string representation of this constant pool entry.\n     */\n    public String toString() {\n        return \"UTF8 Value = \" + value;\n    }\n\n    /**\n     * Get the string value of the UTF-8 entry\n     *\n     * @return the UTF-8 value as a Java string\n     */\n    public String getValue() {\n        return value;", "functions": [{"function_name": "read", "code": "    public void read(DataInputStream cpStream) throws IOException {\n        value = cpStream.readUTF();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"UTF8 Value = \" + value;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getValue", "code": "    public String getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Utf8CPInfo", "code": "    public Utf8CPInfo() {\n        super(CONSTANT_UTF8, 1);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8491", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/IntStack.java", "language": "java", "name": "org.apache.xml.utils.IntStack", "code": "public class IntStack extends IntVector\n{\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is very small, for small lists.\n   */\n  public IntStack()\n  {\n    super();\n  }\n\n  /**\n   * Construct a IntVector, using the given block size.\n   *\n   * @param blocksize Size of block to allocate\n   */\n  public IntStack(int blocksize)\n  {\n    super(blocksize);\n  }\n  \n  /**\n   * Copy constructor for IntStack\n   * \n   * @param v IntStack to copy\n   */\n  public IntStack (IntStack v)\n  {\n  \tsuper(v);\n  }\n\n  /**\n   * Pushes an item onto the top of this stack.\n   *\n   * @param   i   the int to be pushed onto this stack.\n   * @return  the <code>item</code> argument.\n   */\n  public int push(int i)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      int newMap[] = new int[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = i;\n\n    m_firstFree++;\n\n    return i;\n  }\n\n  /**\n   * Removes the object at the top of this stack and returns that\n   * object as the value of this function.\n   *\n   * @return     The object at the top of this stack.\n   */\n  public final int pop()\n  {\n    return m_map[--m_firstFree];\n  }\n\n  /**\n   * Quickly pops a number of items from the stack.\n   */\n\n  public final void quickPop(int n)\n  {\n    m_firstFree -= n;\n  }\n\n  /**\n   * Looks at the object at the top of this stack without removing it\n   * from the stack.\n   *\n   * @return     the object at the top of this stack.\n   * @throws  EmptyStackException  if this stack is empty.\n   */\n  public final int peek()\n  {\n    try {\n      return m_map[m_firstFree - 1];\n    }\n    catch (ArrayIndexOutOfBoundsException e)\n    {\n      throw new EmptyStackException();\n    }\n  }\n\n  /**\n   * Looks at the object at the position the stack counting down n items.\n   *\n   * @param n The number of items down, indexed from zero.\n   * @return     the object at n items down.\n   * @throws  EmptyStackException  if this stack is empty.\n   */\n  public int peek(int n)\n  {\n    try {\n      return m_map[m_firstFree-(1+n)];\n    }\n    catch (ArrayIndexOutOfBoundsException e)\n    {\n      throw new EmptyStackException();\n    }\n  }\n\n  /**\n   * Sets an object at a the top of the statck\n   *\n   *\n   * @param val object to set at the top\n   * @throws  EmptyStackException  if this stack is empty.\n   */\n  public void setTop(int val)\n  {\n    try {\n      m_map[m_firstFree - 1] = val;\n    }\n    catch (ArrayIndexOutOfBoundsException e)\n    {\n      throw new EmptyStackException();\n    }\n  }\n\n  /**\n   * Tests if this stack is empty.\n   *\n   * @return  <code>true</code> if this stack is empty;\n   *          <code>false</code> otherwise.\n   * @since   JDK1.0\n   */\n  public boolean empty()\n  {\n    return m_firstFree == 0;\n  }\n\n  /**\n   * Returns where an object is on this stack.\n   *\n   * @param   o   the desired object.\n   * @return  the distance from the top of the stack where the object is]\n   *          located; the return value <code>-1</code> indicates that the\n   *          object is not on the stack.\n   * @since   JDK1.0\n   */\n  public int search(int o)\n  {\n\n    int i = lastIndexOf(o);\n\n    if (i >= 0)\n    {\n      return size() - i;\n    }\n\n    return -1;\n  }\n  \n  /**\n   * Returns clone of current IntStack\n   * \n   * @return clone of current IntStack\n   */\n  public Object clone()\n    throws CloneNotSupportedException\n  {\n  \treturn (IntStack) super.clone();", "functions": [{"function_name": "push", "code": "  public int push(int i)\n  {\n\n    if ((m_firstFree + 1) >= m_mapSize)\n    {\n      m_mapSize += m_blocksize;\n\n      int newMap[] = new int[m_mapSize];\n\n      System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1);\n\n      m_map = newMap;\n    }\n\n    m_map[m_firstFree] = i;\n\n    m_firstFree++;\n\n    return i;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [2, 8], [2, 9], [2, 10], [7, 11], [9, 12], [9, 13], [9, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 2], [9, 2], [10, 2], [11, 7], [12, 9], [13, 9], [14, 9], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "pop", "code": "  public final int pop()\n  {\n    return m_map[--m_firstFree];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "quickPop", "code": "  public final void quickPop(int n)\n  {\n    m_firstFree -= n;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "peek", "code": "  public final int peek()\n  {\n    try {\n      return m_map[m_firstFree - 1];\n    }\n    catch (ArrayIndexOutOfBoundsException e)\n    {\n      throw new EmptyStackException();", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [3, 6], [6, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "peek", "code": "  public int peek(int n)\n  {\n    try {\n      return m_map[m_firstFree-(1+n)];\n    }\n    catch (ArrayIndexOutOfBoundsException e)\n    {\n      throw new EmptyStackException();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [5, 6], [4, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 5], [7, 4], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setTop", "code": "  public void setTop(int val)\n  {\n    try {\n      m_map[m_firstFree - 1] = val;\n    }\n    catch (ArrayIndexOutOfBoundsException e)\n    {\n      throw new EmptyStackException();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "empty", "code": "  public boolean empty()\n  {\n    return m_firstFree == 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "search", "code": "  public int search(int o)\n  {\n\n    int i = lastIndexOf(o);\n\n    if (i >= 0)\n    {\n      return size() - i;\n    }\n\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [3, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 3], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "clone", "code": "  public Object clone()\n    throws CloneNotSupportedException\n  {\n  \treturn (IntStack) super.clone();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "IntStack", "code": "  public IntStack()\n  {\n    super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IntStack", "code": "  public IntStack(int blocksize)\n  {\n    super(blocksize);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "IntStack", "code": "  public IntStack (IntStack v)\n  {\n  \tsuper(v);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "poi-1.5-5238", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/RefreshAllRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.RefreshAllRecord", "code": "public class RefreshAllRecord\n    extends Record\n{\n    public final static short sid = 0x1B7;\n    private short             field_1_refreshall;\n\n    public RefreshAllRecord()\n    {\n    }\n\n    /**\n     * Constructs a RefreshAll record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x187 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public RefreshAllRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a RefreshAll record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x187 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record data\n     */\n\n    public RefreshAllRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A REFRESHALL RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_refreshall = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set whether to refresh all external data when loading a sheet\n     * @param refreshall or not\n     */\n\n    public void setRefreshAll(boolean refreshall)\n    {\n        if (refreshall)\n        {\n            field_1_refreshall = 1;\n        }\n        else\n        {\n            field_1_refreshall = 0;\n        }\n    }\n\n    /**\n     * get whether to refresh all external data when loading a sheet\n     * @return refreshall or not\n     */\n\n    public boolean getRefreshAll()\n    {\n        return (field_1_refreshall == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[REFRESHALL]\\n\");\n        buffer.append(\"    .refreshall      = \").append(getRefreshAll())\n            .append(\"\\n\");\n        buffer.append(\"[/REFRESHALL]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_refreshall);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A REFRESHALL RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_refreshall = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setRefreshAll", "code": "    public void setRefreshAll(boolean refreshall)\n    {\n        if (refreshall)\n        {\n            field_1_refreshall = 1;\n        }\n        else\n        {\n            field_1_refreshall = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getRefreshAll", "code": "    public boolean getRefreshAll()\n    {\n        return (field_1_refreshall == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[REFRESHALL]\\n\");\n        buffer.append(\"    .refreshall      = \").append(getRefreshAll())\n            .append(\"\\n\");\n        buffer.append(\"[/REFRESHALL]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_refreshall);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RefreshAllRecord", "code": "    public RefreshAllRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "RefreshAllRecord", "code": "    public RefreshAllRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RefreshAllRecord", "code": "    public RefreshAllRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.7-8314", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/SuballocatedByteVector.java", "language": "java", "name": "org.apache.xml.utils.SuballocatedByteVector", "code": "public class SuballocatedByteVector\n{\n  /** Size of blocks to allocate          */\n  protected int m_blocksize;\n  \n  /** Number of blocks to (over)allocate by */\n  protected  int m_numblocks=32;\n  \n  /** Array of arrays of bytes          */\n  protected byte m_map[][];\n\n  /** Number of bytes in array          */\n  protected int m_firstFree = 0;\n\n  /** \"Shortcut\" handle to m_map[0] */\n  protected byte m_map0[];\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is very small, for small lists.\n   */\n  public SuballocatedByteVector()\n  {\n    this(2048);\n  }\n\n  /**\n   * Construct a ByteVector, using the given block size.\n   *\n   * @param blocksize Size of block to allocate\n   */\n  public SuballocatedByteVector(int blocksize)\n  {\n    m_blocksize = blocksize;\n    m_map0=new byte[blocksize];\n    m_map = new byte[m_numblocks][];\n    m_map[0]=m_map0;\n  }\n  \n  /**\n   * Construct a ByteVector, using the given block size.\n   *\n   * @param blocksize Size of block to allocate\n   */\n  public SuballocatedByteVector(int blocksize, int increaseSize)\n  {\n    this(blocksize);\n  }\n\n\n  /**\n   * Get the length of the list.\n   *\n   * @return length of the list\n   */\n  public int size()\n  {\n    return m_firstFree;\n  }\n  \n  /**\n   * Set the length of the list.\n   *\n   * @return length of the list\n   */\n  private  void setSize(int sz)\n  {\n    if(m_firstFree<sz)\n      m_firstFree = sz;\n  }\n\n  /**\n   * Append a byte onto the vector.\n   *\n   * @param value Byte to add to the list \n   */\n  public  void addElement(byte value)\n  {\n    if(m_firstFree<m_blocksize)\n      m_map0[m_firstFree++]=value;\n    else\n    {\n      int index=m_firstFree/m_blocksize;\n      int offset=m_firstFree%m_blocksize;\n      ++m_firstFree;\n\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        byte[][] newMap=new byte[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      byte[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new byte[m_blocksize];\n      block[offset]=value;\n    }\n  }\n  \n  /**\n   * Append several byte values onto the vector.\n   *\n   * @param value Byte to add to the list \n   */\n  private  void addElements(byte value, int numberOfElements)\n  {\n    if(m_firstFree+numberOfElements<m_blocksize)\n      for (int i = 0; i < numberOfElements; i++) \n      {\n        m_map0[m_firstFree++]=value;\n      }\n    else\n    {\n      int index=m_firstFree/m_blocksize;\n      int offset=m_firstFree%m_blocksize;\n      m_firstFree+=numberOfElements;\n      while( numberOfElements>0)\n      {\n        if(index>=m_map.length)\n        {\n          int newsize=index+m_numblocks;\n          byte[][] newMap=new byte[newsize][];\n          System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n          m_map=newMap;\n        }\n        byte[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new byte[m_blocksize];\n        int copied=(m_blocksize-offset < numberOfElements)\n          ? m_blocksize-offset : numberOfElements;\n        numberOfElements-=copied;\n        while(copied-- > 0)\n          block[offset++]=value;\n\n        ++index;offset=0;\n      }\n    }\n  }\n  \n  /**\n   * Append several slots onto the vector, but do not set the values.\n   * Note: \"Not Set\" means the value is unspecified.\n   *\n   * @param numberOfElements\n   */\n  private  void addElements(int numberOfElements)\n  {\n    int newlen=m_firstFree+numberOfElements;\n    if(newlen>m_blocksize)\n    {\n      int index=m_firstFree%m_blocksize;\n      int newindex=(m_firstFree+numberOfElements)%m_blocksize;\n      for(int i=index+1;i<=newindex;++i)\n        m_map[i]=new byte[m_blocksize];\n    }\n    m_firstFree=newlen;\n  }\n  \n  /**\n   * Inserts the specified node in this vector at the specified index.\n   * Each component in this vector with an index greater or equal to\n   * the specified index is shifted upward to have an index one greater\n   * than the value it had previously.\n   *\n   * Insertion may be an EXPENSIVE operation!\n   *\n   * @param value Byte to insert\n   * @param at Index of where to insert \n   */\n  private  void insertElementAt(byte value, int at)\n  {\n    if(at==m_firstFree)\n      addElement(value);\n    else if (at>m_firstFree)\n    {\n      int index=at/m_blocksize;\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        byte[][] newMap=new byte[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      byte[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new byte[m_blocksize];\n      int offset=at%m_blocksize;\n      block[offset]=value;\n      m_firstFree=offset+1;\n    }\n    else\n    {\n      int index=at/m_blocksize;\n      int maxindex=m_firstFree+1/m_blocksize;\n      ++m_firstFree;\n      int offset=at%m_blocksize;\n      byte push;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        byte[] block=m_map[index];\n        if(null==block)\n        {\n          push=0;\n          block=m_map[index]=new byte[m_blocksize];\n        }\n        else\n        {\n          push=block[m_blocksize-1];\n          System.arraycopy(block, offset , block, offset+1, copylen);\n        }\n        block[offset]=value;\n        value=push;\n        offset=0;\n        ++index;\n      }\n    }\n  }\n\n  /**\n   * Wipe it out. \n   */\n  public void removeAllElements()\n  {\n    m_firstFree = 0;\n  }\n\n  /**\n   * Removes the first occurrence of the argument from this vector.\n   * If the object is found in this vector, each component in the vector\n   * with an index greater or equal to the object's index is shifted\n   * downward to have an index one smaller than the value it had\n   * previously.\n   *\n   * @param s Byte to remove from array\n   *\n   * @return True if the byte was removed, false if it was not found\n   */\n  private  boolean removeElement(byte s)\n  {\n    int at=indexOf(s,0);\n    if(at<0)\n      return false;\n    removeElementAt(at);\n    return true;\n  }\n\n  /**\n   * Deletes the component at the specified index. Each component in\n   * this vector with an index greater or equal to the specified\n   * index is shifted downward to have an index one smaller than\n   * the value it had previously.\n   *\n   * @param at index of where to remove a byte\n   */\n  private  void removeElementAt(int at)\n  {\n    if(at<m_firstFree)\n    {\n      int index=at/m_blocksize;\n      int maxindex=m_firstFree/m_blocksize;\n      int offset=at%m_blocksize;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        byte[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new byte[m_blocksize];\n        else\n          System.arraycopy(block, offset+1, block, offset, copylen);\n        if(index<maxindex)\n        {\n          byte[] next=m_map[index+1];\n          if(next!=null)\n            block[m_blocksize-1]=(next!=null) ? next[0] : 0;\n        }\n        else\n          block[m_blocksize-1]=0;\n        offset=0;\n        ++index;\n      }\n    }\n    --m_firstFree;\n  }\n\n  /**\n   * Sets the component at the specified index of this vector to be the\n   * specified object. The previous component at that position is discarded.\n   *\n   * The index must be a value greater than or equal to 0 and less\n   * than the current size of the vector.\n   *\n   * @param value\n   * @param at     Index of where to set the object\n   */\n  public void setElementAt(byte value, int at)\n  {\n    if(at<m_blocksize)\n    {\n      m_map0[at]=value;\n      return;\n    }\n\n    int index=at/m_blocksize;\n    int offset=at%m_blocksize;\n        \n    if(index>=m_map.length)\n    {\n      int newsize=index+m_numblocks;\n      byte[][] newMap=new byte[newsize][];\n      System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n      m_map=newMap;\n    }\n\n    byte[] block=m_map[index];\n    if(null==block)\n      block=m_map[index]=new byte[m_blocksize];\n    block[offset]=value;\n\n    if(at>=m_firstFree)\n      m_firstFree=at+1;\n  }\n\n  /**\n   * Get the nth element. This is often at the innermost loop of an\n   * application, so performance is critical.\n   *\n   * @param i index of value to get\n   *\n   * @return value at given index. If that value wasn't previously set,\n   * the result is undefined for performance reasons. It may throw an\n   * exception (see below), may return zero, or (if setSize has previously\n   * been used) may return stale data.\n   *\n   * @throws ArrayIndexOutOfBoundsException if the index was _clearly_\n   * unreasonable (negative, or past the highest block).\n   *\n   * @throws NullPointerException if the index points to a block that could\n   * have existed (based on the highest index used) but has never had anything\n   * set into it.\n   * %REVIEW% Could add a catch to create the block in that case, or return 0.\n   * Try/Catch is _supposed_ to be nearly free when not thrown to. Do we\n   * believe that? Should we have a separate safeElementAt?\n   */\n  public byte elementAt(int i)\n  {\n    if(i<m_blocksize)\n      return m_map0[i];\n\n    return m_map[i/m_blocksize][i%m_blocksize];\n  }\n\n  /**\n   * Tell if the table contains the given node.\n   *\n   * @param s object to look for\n   *\n   * @return true if the object is in the list\n   */\n  private  boolean contains(byte s)\n  {\n    return (indexOf(s,0) >= 0);\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem object to look for\n   * @param index Index of where to begin search\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(byte elem, int index)\n  {\n    if(index>=m_firstFree)\n      return -1;\n          \n    int bindex=index/m_blocksize;\n    int boffset=index%m_blocksize;\n    int maxindex=m_firstFree/m_blocksize;\n    byte[] block;\n    \n    for(;bindex<maxindex;++bindex)\n    {\n      block=m_map[bindex];\n      if(block!=null)\n        for(int offset=boffset;offset<m_blocksize;++offset)\n          if(block[offset]==elem)\n            return offset+bindex*m_blocksize;\n    }\n    int maxoffset=m_firstFree%m_blocksize;\n    block=m_map[maxindex];\n    for(int offset=boffset;offset<maxoffset;++offset)\n      if(block[offset]==elem)\n        return offset+maxindex*m_blocksize;\n\n    return -1;    \n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem object to look for\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(byte elem)\n  {\n    return indexOf(elem,0);\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem Object to look for\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  private  int lastIndexOf(byte elem)\n  {\n    int boffset=m_firstFree%m_blocksize;\n    for(int index=m_firstFree/m_blocksize;\n        index>=0;\n        --index)\n    {\n      byte[] block=m_map[index];\n      if(block!=null)\n        for(int offset=boffset; offset>=0; --offset)\n          if(block[offset]==elem)\n            return offset+index*m_blocksize;\n    }\n    return -1;", "functions": [{"function_name": "size", "code": "  public int size()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSize", "code": "  private  void setSize(int sz)\n  {\n    if(m_firstFree<sz)\n      m_firstFree = sz;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addElement", "code": "  public  void addElement(byte value)\n  {\n    if(m_firstFree<m_blocksize)\n      m_map0[m_firstFree++]=value;\n    else\n    {\n      int index=m_firstFree/m_blocksize;\n      int offset=m_firstFree%m_blocksize;\n      ++m_firstFree;\n\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        byte[][] newMap=new byte[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      byte[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new byte[m_blocksize];\n      block[offset]=value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [6, 12], [4, 13], [11, 14], [6, 15], [6, 16], [7, 17], [8, 18], [13, 19], [6, 20], [6, 21], [21, 22], [21, 23], [16, 24], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 6], [13, 4], [14, 11], [15, 6], [16, 6], [17, 7], [18, 8], [19, 13], [20, 6], [21, 6], [22, 21], [23, 21], [24, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "addElements", "code": "  private  void addElements(byte value, int numberOfElements)\n  {\n    if(m_firstFree+numberOfElements<m_blocksize)\n      for (int i = 0; i < numberOfElements; i++) \n      {\n        m_map0[m_firstFree++]=value;\n      }\n    else\n    {\n      int index=m_firstFree/m_blocksize;\n      int offset=m_firstFree%m_blocksize;\n      m_firstFree+=numberOfElements;\n      while( numberOfElements>0)\n      {\n        if(index>=m_map.length)\n        {\n          int newsize=index+m_numblocks;\n          byte[][] newMap=new byte[newsize][];\n          System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n          m_map=newMap;\n        }\n        byte[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new byte[m_blocksize];\n        int copied=(m_blocksize-offset < numberOfElements)\n          ? m_blocksize-offset : numberOfElements;\n        numberOfElements-=copied;\n        while(copied-- > 0)\n          block[offset++]=value;\n\n        ++index;offset=0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "LOOP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [5, 10], [6, 11], [1, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [11, 18], [7, 19], [8, 20], [4, 21], [4, 22], [6, 23], [13, 24], [6, 25], [15, 26], [17, 27], [23, 28], [13, 29], [24, 30], [14, 31], [15, 32], [26, 33], [17, 34], [17, 35], [31, 36], [31, 37], [32, 38], [17, 39], [17, 40], [37, 41], [40, 42], [40, 43], [35, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 5], [11, 6], [12, 1], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 11], [19, 7], [20, 8], [21, 4], [22, 4], [23, 6], [24, 13], [25, 6], [26, 15], [27, 17], [28, 23], [29, 13], [30, 24], [31, 14], [32, 15], [33, 26], [34, 17], [35, 17], [36, 31], [37, 31], [38, 32], [39, 17], [40, 17], [41, 37], [42, 40], [43, 40], [44, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "addElements", "code": "  private  void addElements(int numberOfElements)\n  {\n    int newlen=m_firstFree+numberOfElements;\n    if(newlen>m_blocksize)\n    {\n      int index=m_firstFree%m_blocksize;\n      int newindex=(m_firstFree+numberOfElements)%m_blocksize;\n      for(int i=index+1;i<=newindex;++i)\n        m_map[i]=new byte[m_blocksize];\n    }\n    m_firstFree=newlen;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [6, 10], [6, 11], [7, 12], [8, 13], [6, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 6], [11, 6], [12, 7], [13, 8], [14, 6], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "insertElementAt", "code": "  private  void insertElementAt(byte value, int at)\n  {\n    if(at==m_firstFree)\n      addElement(value);\n    else if (at>m_firstFree)\n    {\n      int index=at/m_blocksize;\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        byte[][] newMap=new byte[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      byte[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new byte[m_blocksize];\n      int offset=at%m_blocksize;\n      block[offset]=value;\n      m_firstFree=offset+1;\n    }\n    else\n    {\n      int index=at/m_blocksize;\n      int maxindex=m_firstFree+1/m_blocksize;\n      ++m_firstFree;\n      int offset=at%m_blocksize;\n      byte push;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        byte[] block=m_map[index];\n        if(null==block)\n        {\n          push=0;\n          block=m_map[index]=new byte[m_blocksize];\n        }\n        else\n        {\n          push=block[m_blocksize-1];\n          System.arraycopy(block, offset , block, offset+1, copylen);\n        }\n        block[offset]=value;\n        value=push;\n        offset=0;\n        ++index;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 16], [4, 17], [8, 18], [4, 19], [4, 20], [14, 21], [16, 22], [8, 23], [8, 24], [8, 25], [10, 26], [11, 27], [12, 28], [19, 29], [13, 30], [14, 31], [21, 32], [16, 33], [16, 34], [17, 35], [8, 36], [8, 37], [8, 38], [23, 39], [27, 40], [29, 41], [31, 42], [16, 43], [16, 44], [36, 45], [39, 46], [25, 47], [40, 48], [44, 49], [44, 50], [34, 51], [23, 52], [23, 53], [23, 54], [23, 55], [47, 56], [47, 57], [52, 58], [54, 59], [55, 60], [58, 61], [53, 62], [62, 63], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 4], [14, 4], [15, 4], [16, 4], [17, 4], [18, 8], [19, 4], [20, 4], [21, 14], [22, 16], [23, 8], [24, 8], [25, 8], [26, 10], [27, 11], [28, 12], [29, 19], [30, 13], [31, 14], [32, 21], [33, 16], [34, 16], [35, 17], [36, 8], [37, 8], [38, 8], [39, 23], [40, 27], [41, 29], [42, 31], [43, 16], [44, 16], [45, 36], [46, 39], [47, 25], [48, 40], [49, 44], [50, 44], [51, 34], [52, 23], [53, 23], [54, 23], [55, 23], [56, 47], [57, 47], [58, 52], [59, 54], [60, 55], [61, 58], [62, 53], [63, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "removeAllElements", "code": "  public void removeAllElements()\n  {\n    m_firstFree = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeElement", "code": "  private  boolean removeElement(byte s)\n  {\n    int at=indexOf(s,0);\n    if(at<0)\n      return false;\n    removeElementAt(at);\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [2, 8], [7, 9], [8, 10], [3, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 2], [9, 7], [10, 8], [11, 3], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "removeElementAt", "code": "  private  void removeElementAt(int at)\n  {\n    if(at<m_firstFree)\n    {\n      int index=at/m_blocksize;\n      int maxindex=m_firstFree/m_blocksize;\n      int offset=at%m_blocksize;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        byte[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new byte[m_blocksize];\n        else\n          System.arraycopy(block, offset+1, block, offset, copylen);\n        if(index<maxindex)\n        {\n          byte[] next=m_map[index+1];\n          if(next!=null)\n            block[m_blocksize-1]=(next!=null) ? next[0] : 0;\n        }\n        else\n          block[m_blocksize-1]=0;\n        offset=0;\n        ++index;\n      }\n    }\n    --m_firstFree;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [5, 13], [6, 14], [7, 15], [4, 16], [9, 17], [10, 18], [16, 19], [9, 20], [9, 21], [9, 22], [10, 23], [10, 24], [18, 25], [12, 26], [20, 27], [21, 28], [23, 29], [24, 30], [26, 31], [26, 32], [21, 33], [28, 34], [29, 35], [20, 36], [33, 37], [36, 38], [37, 39], [37, 40], [22, 41], [40, 42], [33, 43], [41, 44], [37, 45], [43, 46], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 5], [14, 6], [15, 7], [16, 4], [17, 9], [18, 10], [19, 16], [20, 9], [21, 9], [22, 9], [23, 10], [24, 10], [25, 18], [26, 12], [27, 20], [28, 21], [29, 23], [30, 24], [31, 26], [32, 26], [33, 21], [34, 28], [35, 29], [36, 20], [37, 33], [38, 36], [39, 37], [40, 37], [41, 22], [42, 40], [43, 33], [44, 41], [45, 37], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "setElementAt", "code": "  public void setElementAt(byte value, int at)\n  {\n    if(at<m_blocksize)\n    {\n      m_map0[at]=value;\n      return;\n    }\n\n    int index=at/m_blocksize;\n    int offset=at%m_blocksize;\n        \n    if(index>=m_map.length)\n    {\n      int newsize=index+m_numblocks;\n      byte[][] newMap=new byte[newsize][];\n      System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n      m_map=newMap;\n    }\n\n    byte[] block=m_map[index];\n    if(null==block)\n      block=m_map[index]=new byte[m_blocksize];\n    block[offset]=value;\n\n    if(at>=m_firstFree)\n      m_firstFree=at+1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [2, 12], [4, 13], [7, 14], [1, 15], [2, 16], [12, 17], [4, 18], [4, 19], [5, 20], [6, 21], [7, 22], [15, 23], [16, 24], [4, 25], [4, 26], [7, 27], [23, 28], [26, 29], [26, 30], [19, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 2], [13, 4], [14, 7], [15, 1], [16, 2], [17, 12], [18, 4], [19, 4], [20, 5], [21, 6], [22, 7], [23, 15], [24, 16], [25, 4], [26, 4], [27, 7], [28, 23], [29, 26], [30, 26], [31, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "elementAt", "code": "  public byte elementAt(int i)\n  {\n    if(i<m_blocksize)\n      return m_map0[i];\n\n    return m_map[i/m_blocksize][i%m_blocksize];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "contains", "code": "  private  boolean contains(byte s)\n  {\n    return (indexOf(s,0) >= 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "indexOf", "code": "  public int indexOf(byte elem, int index)\n  {\n    if(index>=m_firstFree)\n      return -1;\n          \n    int bindex=index/m_blocksize;\n    int boffset=index%m_blocksize;\n    int maxindex=m_firstFree/m_blocksize;\n    byte[] block;\n    \n    for(;bindex<maxindex;++bindex)\n    {\n      block=m_map[bindex];\n      if(block!=null)\n        for(int offset=boffset;offset<m_blocksize;++offset)\n          if(block[offset]==elem)\n            return offset+bindex*m_blocksize;\n    }\n    int maxoffset=m_firstFree%m_blocksize;\n    block=m_map[maxindex];\n    for(int offset=boffset;offset<maxoffset;++offset)\n      if(block[offset]==elem)\n        return offset+maxindex*m_blocksize;\n\n    return -1;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [0, 15], [4, 16], [9, 17], [9, 18], [13, 19], [13, 20], [3, 21], [4, 22], [6, 23], [7, 24], [8, 25], [17, 26], [19, 27], [22, 28], [22, 29], [4, 30], [27, 31], [28, 32], [28, 33], [29, 34], [32, 35], [32, 36], [35, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 0], [16, 4], [17, 9], [18, 9], [19, 13], [20, 13], [21, 3], [22, 4], [23, 6], [24, 7], [25, 8], [26, 17], [27, 19], [28, 22], [29, 22], [30, 4], [31, 27], [32, 28], [33, 28], [34, 29], [35, 32], [36, 32], [37, 35], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "indexOf", "code": "  public int indexOf(byte elem)\n  {\n    return indexOf(elem,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "lastIndexOf", "code": "  private  int lastIndexOf(byte elem)\n  {\n    int boffset=m_firstFree%m_blocksize;\n    for(int index=m_firstFree/m_blocksize;\n        index>=0;\n        --index)\n    {\n      byte[] block=m_map[index];\n      if(block!=null)\n        for(int offset=boffset; offset>=0; --offset)\n          if(block[offset]==elem)\n            return offset+index*m_blocksize;\n    }\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [2, 13], [11, 14], [11, 15], [12, 16], [14, 17], [14, 18], [15, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 2], [14, 11], [15, 11], [16, 12], [17, 14], [18, 14], [19, 15], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "SuballocatedByteVector", "code": "  public SuballocatedByteVector()\n  {\n    this(2048);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SuballocatedByteVector", "code": "  public SuballocatedByteVector(int blocksize)\n  {\n    m_blocksize = blocksize;\n    m_map0=new byte[blocksize];\n    m_map = new byte[m_numblocks][];\n    m_map[0]=m_map0;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "SuballocatedByteVector", "code": "  public SuballocatedByteVector(int blocksize, int increaseSize)\n  {\n    this(blocksize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.1-4057", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/ParseException.java", "language": "java", "name": "bsh.ParseException", "code": "class ParseException extends EvalError {\n\tString sourceFile = \"<unknown>\";\n\n  /**\n   * This constructor is used by the method \"generateParseException\"\n   * in\tthe generated parser.  Calling this constructor\tgenerates\n   * a new object of this type with the\tfields \"currentToken\",\n   * \"expectedTokenSequences\", and \"tokenImage\"\tset.  The boolean\n   * flag \"specialConstructor\" is also set to true to indicate that\n   * this constructor was used to create this object.\n   * This constructor calls its\tsuper class with the empty string\n   * to\tforce the \"toString\" method of parent class \"Throwable\"\tto\n   * print the error message in\tthe form:\n   *\t ParseException: <result of getMessage>\n   */\n  public ParseException(Token currentTokenVal,\n\t\t\tint[][]\texpectedTokenSequencesVal,\n\t\t\tString[] tokenImageVal\n\t\t       )\n  {\n\tthis();\n    specialConstructor = true;\n    currentToken = currentTokenVal;\n    expectedTokenSequences = expectedTokenSequencesVal;\n    tokenImage = tokenImageVal;\n  }\n\n  /**\n   * The following constructors\tare for\tuse by you for whatever\n   * purpose you can think of.\tConstructing the exception in this\n   * manner makes the exception\tbehave in the normal way - i.e., as\n   * documented\tin the class \"Throwable\".  The fields \"errorToken\",\n   * \"expectedTokenSequences\", and \"tokenImage\"\tdo not contain\n   * relevant information.  The\tJavaCC generated code does not use\n   * these constructors.\n   */\n\n  public ParseException() {\n    this(\"\");\n    specialConstructor = false;\n  }\n\n  public ParseException(String message)\t{\n\t\tsuper(message);\n    \tspecialConstructor = false;\n  }\n\n  /**\n   * This variable determines which constructor\twas used to create\n   * this object and thereby affects the semantics of the\n   * \"getMessage\" method (see below).\n   */\n  protected boolean specialConstructor;\n\n  /**\n   * This is the last token that has been consumed successfully.  If\n   * this object has been created due to a parse error,\tthe token\n   * followng this token will (therefore) be the first error token.\n   */\n  public Token currentToken;\n\n  /**\n   * Each entry\tin this\tarray is an array of integers.\tEach array\n   * of\tintegers represents a sequence of tokens (by their ordinal\n   * values) that is expected at this point of the parse.\n   */\n  public int[][] expectedTokenSequences;\n\n  /**\n   * This is a reference to the\t\"tokenImage\" array of the generated\n   * parser within which the parse error occurred.  This array is\n   * defined in\tthe generated ...Constants interface.\n   */\n  public String[] tokenImage;\n\n  /**\n   * This method has the standard behavior when\tthis object has\tbeen\n   * created using the standard\tconstructors.  Otherwise, it uses\n   * \"currentToken\" and\t\"expectedTokenSequences\" to generate a parse\n   * error message and returns it.  If this object has been created\n   * due to a parse error, and you do not catch\tit (it gets thrown\n   * from the parser), then this method\tis called during the printing\n   * of\tthe final stack\ttrace, and hence the correct error message\n   * gets displayed.\n   */\n  public String\tgetMessage() {\n\treturn getMessage( false );\n  }\n\n  public String\tgetMessage( boolean debug ) {\n    if (!specialConstructor) {\n      return super.getMessage();\n    }\n    String expected = \"\";\n    int\tmaxSize\t= 0;\n    for\t(int i = 0; i <\texpectedTokenSequences.length; i++) {\n      if (maxSize < expectedTokenSequences[i].length) {\n\tmaxSize\t= expectedTokenSequences[i].length;\n      }\n      for (int j = 0; j\t< expectedTokenSequences[i].length; j++) {\n\texpected += tokenImage[expectedTokenSequences[i][j]] + \" \";\n      }\n      if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0)\t{\n\texpected += \"...\";\n      }\n      expected += eol +\t\"    \";\n    }\n    String retval = \"In file: \"+ sourceFile +\" Encountered \\\"\";\n    Token tok =\tcurrentToken.next;\n    for\t(int i = 0; i <\tmaxSize; i++) {\n      if (i != 0) retval += \" \";\n      if (tok.kind == 0) {\n\tretval += tokenImage[0];\n\tbreak;\n      }\n      retval +=\tadd_escapes(tok.image);\n      tok = tok.next;\n    }\n    retval += \"\\\" at line \" + currentToken.next.beginLine + \", column \"\t+ currentToken.next.beginColumn\t+ \".\" +\teol;\n\n\tif ( debug ) {\n\t\tif (expectedTokenSequences.length == 1) {\n\t\t  retval +=\t\"Was expecting:\" + eol + \"    \";\n\t\t} else {\n\t\t  retval +=\t\"Was expecting one of:\"\t+ eol +\t\"    \";\n\t\t}\n\n\t\tretval += expected;\n\t}\n\n    return retval;\n  }\n\n  /**\n   * The end of\tline string for\tthis machine.\n   */\n  protected String eol = System.getProperty(\"line.separator\", \"\\n\");\n\n  /**\n   * Used to convert raw characters to their escaped version\n   * when these\traw version cannot be used as part of an ASCII\n   * string literal.\n   */\n  protected String add_escapes(String str) {\n      StringBuffer retval = new\tStringBuffer();\n      char ch;\n      for (int i = 0; i\t< str.length();\ti++) {\n\tswitch (str.charAt(i))\n\t{\n\t   case\t0 :\n\t      continue;\n\t   case\t'\\b':\n\t      retval.append(\"\\\\b\");\n\t      continue;\n\t   case\t'\\t':\n\t      retval.append(\"\\\\t\");\n\t      continue;\n\t   case\t'\\n':\n\t      retval.append(\"\\\\n\");\n\t      continue;\n\t   case\t'\\f':\n\t      retval.append(\"\\\\f\");\n\t      continue;\n\t   case\t'\\r':\n\t      retval.append(\"\\\\r\");\n\t      continue;\n\t   case\t'\\\"':\n\t      retval.append(\"\\\\\\\"\");\n\t      continue;\n\t   case\t'\\'':\n\t      retval.append(\"\\\\\\'\");\n\t      continue;\n\t   case\t'\\\\':\n\t      retval.append(\"\\\\\\\\\");\n\t      continue;\n\t   default:\n\t      if ((ch =\tstr.charAt(i)) < 0x20 || ch > 0x7e) {\n\t\t String\ts = \"0000\" + Integer.toString(ch, 16);\n\t\t retval.append(\"\\\\u\" + s.substring(s.length() -\t4, s.length()));\n\t      }\telse {\n\t\t retval.append(ch);\n\t      }\n\t      continue;\n\t}\n      }\n      return retval.toString();\n   }\n\n\t\n\t// added for bsh\n\tpublic String getErrorText() { \n\t\t// copied from generated getMessage()\n\t\tint\tmaxSize\t= 0;\n\t\tfor\t(int i = 0; i <\texpectedTokenSequences.length; i++) {\n\t\t  if (maxSize < expectedTokenSequences[i].length)\n\t\t\tmaxSize\t= expectedTokenSequences[i].length;\n\t\t}\n\n\t\tString retval = \"\";\n\t\tToken tok =\tcurrentToken.next;\n\t\tfor\t(int i = 0; i <\tmaxSize; i++) \n\t\t{\n\t\t  if (i != 0) retval += \" \";\n\t\t  if (tok.kind == 0) {\n\t\t\tretval += tokenImage[0];\n\t\t\tbreak;\n\t\t  }\n\t\t  retval +=\tadd_escapes(tok.image);\n\t\t  tok = tok.next;\n\t\t}\n\t\t\n\t\treturn retval;\n\t}\n\n\t// added for bsh\n\tpublic int getErrorLineNumber() { \n    \treturn currentToken.next.beginLine;\n\t}\n\n\t// added for bsh\n\tpublic String getErrorSourceFile() { \n\t\treturn sourceFile; \n\t}\n\n\t/**\n\t\tUsed to add source file info to exception\n\t*/\n\tpublic void setErrorSourceFile( String file ) {\n\t\tthis.sourceFile = file;\n\t}\n\n\tpublic String toString() {\n\t\treturn getMessage();", "functions": [{"function_name": "getMessage", "code": "  public String\tgetMessage() {\n\treturn getMessage( false );", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMessage", "code": "  public String\tgetMessage( boolean debug ) {\n    if (!specialConstructor) {\n      return super.getMessage();\n    }\n    String expected = \"\";\n    int\tmaxSize\t= 0;\n    for\t(int i = 0; i <\texpectedTokenSequences.length; i++) {\n      if (maxSize < expectedTokenSequences[i].length) {\n\tmaxSize\t= expectedTokenSequences[i].length;\n      }\n      for (int j = 0; j\t< expectedTokenSequences[i].length; j++) {\n\texpected += tokenImage[expectedTokenSequences[i][j]] + \" \";\n      }\n      if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0)\t{\n\texpected += \"...\";\n      }\n      expected += eol +\t\"    \";\n    }\n    String retval = \"In file: \"+ sourceFile +\" Encountered \\\"\";\n    Token tok =\tcurrentToken.next;\n    for\t(int i = 0; i <\tmaxSize; i++) {\n      if (i != 0) retval += \" \";\n      if (tok.kind == 0) {\n\tretval += tokenImage[0];\n\tbreak;\n      }\n      retval +=\tadd_escapes(tok.image);\n      tok = tok.next;\n    }\n    retval += \"\\\" at line \" + currentToken.next.beginLine + \", column \"\t+ currentToken.next.beginColumn\t+ \".\" +\teol;\n\n\tif ( debug ) {\n\t\tif (expectedTokenSequences.length == 1) {\n\t\t  retval +=\t\"Was expecting:\" + eol + \"    \";\n\t\t} else {\n\t\t  retval +=\t\"Was expecting one of:\"\t+ eol +\t\"    \";\n\t\t}\n\n\t\tretval += expected;\n\t}\n\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "IF", "LOOP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [3, 12], [6, 13], [2, 14], [11, 15], [3, 16], [3, 17], [5, 18], [6, 19], [6, 20], [6, 21], [7, 22], [8, 23], [9, 24], [2, 25], [14, 26], [15, 27], [3, 28], [3, 29], [16, 30], [17, 31], [3, 32], [18, 33], [18, 34], [6, 35], [19, 36], [20, 37], [21, 38], [6, 39], [26, 40], [27, 41], [27, 42], [29, 43], [16, 44], [30, 45], [17, 46], [31, 47], [34, 48], [35, 49], [36, 50], [14, 51], [14, 52], [42, 53], [16, 54], [46, 55], [49, 56], [19, 57], [20, 58], [20, 59], [21, 60], [51, 61], [52, 62], [53, 63], [53, 64], [57, 65], [36, 66], [58, 67], [61, 68], [61, 69], [62, 70], [62, 71], [64, 72], [66, 73], [67, 74], [69, 75], [71, 76], [54, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 3], [13, 6], [14, 2], [15, 11], [16, 3], [17, 3], [18, 5], [19, 6], [20, 6], [21, 6], [22, 7], [23, 8], [24, 9], [25, 2], [26, 14], [27, 15], [28, 3], [29, 3], [30, 16], [31, 17], [32, 3], [33, 18], [34, 18], [35, 6], [36, 19], [37, 20], [38, 21], [39, 6], [40, 26], [41, 27], [42, 27], [43, 29], [44, 16], [45, 30], [46, 17], [47, 31], [48, 34], [49, 35], [50, 36], [51, 14], [52, 14], [53, 42], [54, 16], [55, 46], [56, 49], [57, 19], [58, 20], [59, 20], [60, 21], [61, 51], [62, 52], [63, 53], [64, 53], [65, 57], [66, 36], [67, 58], [68, 61], [69, 61], [70, 62], [71, 62], [72, 64], [73, 66], [74, 67], [75, 69], [76, 71], [77, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "add_escapes", "code": "  protected String add_escapes(String str) {\n      StringBuffer retval = new\tStringBuffer();\n      char ch;\n      for (int i = 0; i\t< str.length();\ti++) {\n\tswitch (str.charAt(i))\n\t{\n\t   case\t0 :\n\t      continue;\n\t   case\t'\\b':\n\t      retval.append(\"\\\\b\");\n\t      continue;\n\t   case\t'\\t':\n\t      retval.append(\"\\\\t\");\n\t      continue;\n\t   case\t'\\n':\n\t      retval.append(\"\\\\n\");\n\t      continue;\n\t   case\t'\\f':\n\t      retval.append(\"\\\\f\");\n\t      continue;\n\t   case\t'\\r':\n\t      retval.append(\"\\\\r\");\n\t      continue;\n\t   case\t'\\\"':\n\t      retval.append(\"\\\\\\\"\");\n\t      continue;\n\t   case\t'\\'':\n\t      retval.append(\"\\\\\\'\");\n\t      continue;\n\t   case\t'\\\\':\n\t      retval.append(\"\\\\\\\\\");\n\t      continue;\n\t   default:\n\t      if ((ch =\tstr.charAt(i)) < 0x20 || ch > 0x7e) {\n\t\t String\ts = \"0000\" + Integer.toString(ch, 16);\n\t\t retval.append(\"\\\\u\" + s.substring(s.length() -\t4, s.length()));\n\t      }\telse {\n\t\t retval.append(ch);\n\t      }\n\t      continue;\n\t}\n      }\n      return retval.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "SWITCH", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [4, 10], [8, 11], [2, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 30], [8, 31], [8, 32], [14, 33], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 39], [8, 40], [8, 41], [14, 42], [33, 43], [33, 44], [34, 45], [35, 46], [36, 47], [37, 48], [38, 49], [39, 50], [40, 51], [41, 52], [14, 53], [14, 54], [43, 55], [44, 56], [44, 57], [54, 58], [42, 59], [57, 60], [58, 61], [58, 62], [59, 63], [59, 64], [61, 65], [61, 66], [63, 67], [66, 68], [66, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 4], [11, 8], [12, 2], [13, 8], [14, 8], [15, 8], [16, 8], [17, 8], [18, 8], [19, 8], [20, 8], [21, 8], [22, 8], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 8], [31, 8], [32, 8], [33, 14], [34, 8], [35, 8], [36, 8], [37, 8], [38, 8], [39, 8], [40, 8], [41, 8], [42, 14], [43, 33], [44, 33], [45, 34], [46, 35], [47, 36], [48, 37], [49, 38], [50, 39], [51, 40], [52, 41], [53, 14], [54, 14], [55, 43], [56, 44], [57, 44], [58, 54], [59, 42], [60, 57], [61, 58], [62, 58], [63, 59], [64, 59], [65, 61], [66, 61], [67, 63], [68, 66], [69, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "getErrorText", "code": "\tpublic String getErrorText() { \n\t\t// copied from generated getMessage()\n\t\tint\tmaxSize\t= 0;\n\t\tfor\t(int i = 0; i <\texpectedTokenSequences.length; i++) {\n\t\t  if (maxSize < expectedTokenSequences[i].length)\n\t\t\tmaxSize\t= expectedTokenSequences[i].length;\n\t\t}\n\n\t\tString retval = \"\";\n\t\tToken tok =\tcurrentToken.next;\n\t\tfor\t(int i = 0; i <\tmaxSize; i++) \n\t\t{\n\t\t  if (i != 0) retval += \" \";\n\t\t  if (tok.kind == 0) {\n\t\t\tretval += tokenImage[0];\n\t\t\tbreak;\n\t\t  }\n\t\t  retval +=\tadd_escapes(tok.image);\n\t\t  tok = tok.next;\n\t\t}\n\t\t\n\t\treturn retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [5, 8], [2, 9], [2, 10], [4, 11], [5, 12], [6, 13], [2, 14], [2, 15], [9, 16], [10, 17], [2, 18], [12, 19], [5, 20], [15, 21], [9, 22], [16, 23], [10, 24], [17, 25], [12, 26], [9, 27], [24, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 5], [9, 2], [10, 2], [11, 4], [12, 5], [13, 6], [14, 2], [15, 2], [16, 9], [17, 10], [18, 2], [19, 12], [20, 5], [21, 15], [22, 9], [23, 16], [24, 10], [25, 17], [26, 12], [27, 9], [28, 24], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getErrorLineNumber", "code": "\tpublic int getErrorLineNumber() { \n    \treturn currentToken.next.beginLine;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getErrorSourceFile", "code": "\tpublic String getErrorSourceFile() { \n\t\treturn sourceFile; ", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorSourceFile", "code": "\tpublic void setErrorSourceFile( String file ) {\n\t\tthis.sourceFile = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "\tpublic String toString() {\n\t\treturn getMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ParseException", "code": "  public ParseException(Token currentTokenVal,\n\t\t\tint[][]\texpectedTokenSequencesVal,\n\t\t\tString[] tokenImageVal\n\t\t       )\n  {\n\tthis();\n    specialConstructor = true;\n    currentToken = currentTokenVal;\n    expectedTokenSequences = expectedTokenSequencesVal;\n    tokenImage = tokenImageVal;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "ParseException", "code": "  public ParseException() {\n    this(\"\");\n    specialConstructor = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ParseException", "code": "  public ParseException(String message)\t{\n\t\tsuper(message);\n    \tspecialConstructor = false;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.6-2711", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/seda/CollectionProducer.java", "language": "java", "name": "org.apache.camel.component.seda.CollectionProducer", "code": "public class CollectionProducer extends DefaultProducer implements AsyncProcessor {\n    private final Collection<Exchange> queue;\n\n    public CollectionProducer(Endpoint endpoint, Collection<Exchange> queue) {\n        super(endpoint);\n        this.queue = queue;\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        queue.add(exchange.copy());\n    }\n\n    public boolean process(Exchange exchange, AsyncCallback callback) {\n        queue.add(exchange.copy());\n        callback.done(true);\n        return true;", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        queue.add(exchange.copy());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "process", "code": "    public boolean process(Exchange exchange, AsyncCallback callback) {\n        queue.add(exchange.copy());\n        callback.done(true);\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "CollectionProducer", "code": "    public CollectionProducer(Endpoint endpoint, Collection<Exchange> queue) {\n        super(endpoint);\n        this.queue = queue;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "jedit-4.1-4010", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/syntax/KeywordMap.java", "language": "java", "name": "org.gjt.sp.jedit.syntax.KeywordMap", "code": "public class KeywordMap\n{\n\t//{{{ KeywordMap constructor\n\t/**\n\t * Creates a new <code>KeywordMap</code>.\n\t * @param ignoreCase True if keys are case insensitive\n\t */\n\tpublic KeywordMap(boolean ignoreCase)\n\t{\n\t\tthis(ignoreCase, 52);\n\t\tthis.ignoreCase = ignoreCase;\n\t\tnoWordSep = new StringBuffer();\n\t} //}}}\n\n\t//{{{ KeywordMap constructor\n\t/**\n\t * Creates a new <code>KeywordMap</code>.\n\t * @param ignoreCase True if the keys are case insensitive\n\t * @param mapLength The number of `buckets' to create.\n\t * A value of 52 will give good performance for most maps.\n\t */\n\tpublic KeywordMap(boolean ignoreCase, int mapLength)\n\t{\n\t\tthis.mapLength = mapLength;\n\t\tthis.ignoreCase = ignoreCase;\n\t\tmap = new Keyword[mapLength];\n\t} //}}}\n\n\t//{{{ lookup() method\n\t/**\n\t * Looks up a key.\n\t * @param text The text segment\n\t * @param offset The offset of the substring within the text segment\n\t * @param length The length of the substring\n\t */\n\tpublic byte lookup(Segment text, int offset, int length)\n\t{\n\t\tif(length == 0)\n\t\t\treturn Token.NULL;\n\t\tKeyword k = map[getSegmentMapKey(text, offset, length)];\n\t\twhile(k != null)\n\t\t{\n\t\t\tif(length != k.keyword.length)\n\t\t\t{\n\t\t\t\tk = k.next;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(TextUtilities.regionMatches(ignoreCase,text,offset,\n\t\t\t\tk.keyword))\n\t\t\t\treturn k.id;\n\t\t\tk = k.next;\n\t\t}\n\t\treturn Token.NULL;\n\t} //}}}\n\n\t//{{{ add() method\n\t/**\n\t * Adds a key-value mapping.\n\t * @param keyword The key\n\t * @param id The value\n\t */\n\tpublic void add(String keyword, byte id)\n\t{\n\t\tint key = getStringMapKey(keyword);\n\n\t\tchar[] chars = keyword.toCharArray();\n\n\t\t// complete-word command needs a list of all non-alphanumeric\n\t\t// characters used in a keyword map.\nloop:\t\tfor(int i = 0; i < chars.length; i++)\n\t\t{\n\t\t\tchar ch = chars[i];\n\t\t\tif(!Character.isLetterOrDigit(ch))\n\t\t\t{\n\t\t\t\tfor(int j = 0; j < noWordSep.length(); j++)\n\t\t\t\t{\n\t\t\t\t\tif(noWordSep.charAt(j) == ch)\n\t\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\n\t\t\t\tnoWordSep.append(ch);\n\t\t\t}\n\t\t}\n\n\t\tnoWordSepStr = null;\n\t\tmap[key] = new Keyword(chars,id,map[key]);\n\t} //}}}\n\n\t//{{{ getNonAlphaNumericChars() method\n\t/**\n\t * Returns all non-alphanumeric characters that appear in the\n\t * keywords of this keyword map.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic String getNonAlphaNumericChars()\n\t{\n\t\treturn noWordSep.toString();\n\t} //}}}\n\n\t//{{{ getKeywords() method\n\t/**\n\t * Returns an array containing all keywords in this keyword map.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic String[] getKeywords()\n\t{\n\t\tVector vector = new Vector(100);\n\t\tfor(int i = 0; i < map.length; i++)\n\t\t{\n\t\t\tKeyword keyword = map[i];\n\t\t\twhile(keyword != null)\n\t\t\t{\n\t\t\t\tvector.addElement(new String(keyword.keyword));\n\t\t\t\tkeyword = keyword.next;\n\t\t\t}\n\t\t}\n\t\tString[] retVal = new String[vector.size()];\n\t\tvector.copyInto(retVal);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ getIgnoreCase() method\n\t/**\n\t * Returns true if the keyword map is set to be case insensitive,\n\t * false otherwise.\n\t */\n\tpublic boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;\n\t} //}}}\n\n\t//{{{ setIgnoreCase() method\n\t/**\n\t * Sets if the keyword map should be case insensitive.\n\t * @param ignoreCase True if the keyword map should be case\n\t * insensitive, false otherwise\n\t */\n\tpublic void setIgnoreCase(boolean ignoreCase)\n\t{\n\t\tthis.ignoreCase = ignoreCase;\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate int mapLength;\n\tprivate Keyword[] map;\n\tprivate boolean ignoreCase;\n\tprivate StringBuffer noWordSep;\n\tprivate String noWordSepStr;\n\t//}}}\n\n\t//{{{ getStringMapKey() method\n\tprivate int getStringMapKey(String s)\n\t{\n\t\treturn (Character.toUpperCase(s.charAt(0)) +\n\t\t\t\tCharacter.toUpperCase(s.charAt(s.length()-1)))\n\t\t\t\t% mapLength;\n\t} //}}}\n\n\t//{{{ getSegmentMapKey() method\n\tprotected int getSegmentMapKey(Segment s, int off, int len)\n\t{\n\t\treturn (Character.toUpperCase(s.array[off]) +\n\t\t\t\tCharacter.toUpperCase(s.array[off + len - 1]))\n\t\t\t\t% mapLength;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Keyword class\n\tclass Keyword\n\t{\n\t\tpublic Keyword(char[] keyword, byte id, Keyword next)\n\t\t{\n\t\t\tthis.keyword = keyword;\n\t\t\tthis.id = id;\n\t\t\tthis.next = next;\n\t\t}\n\n\t\tpublic char[] keyword;\n\t\tpublic byte id;\n\t\tpublic Keyword next;", "functions": [{"function_name": "lookup", "code": "\tpublic byte lookup(Segment text, int offset, int length)\n\t{\n\t\tif(length == 0)\n\t\t\treturn Token.NULL;\n\t\tKeyword k = map[getSegmentMapKey(text, offset, length)];\n\t\twhile(k != null)\n\t\t{\n\t\t\tif(length != k.keyword.length)\n\t\t\t{\n\t\t\t\tk = k.next;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(TextUtilities.regionMatches(ignoreCase,text,offset,\n\t\t\t\tk.keyword))\n\t\t\t\treturn k.id;\n\t\t\tk = k.next;\n\t\t}\n\t\treturn Token.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [4, 9], [4, 10], [2, 11], [2, 12], [8, 13], [10, 14], [2, 15], [11, 16], [11, 17], [12, 18], [12, 19], [3, 20], [12, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 4], [10, 4], [11, 2], [12, 2], [13, 8], [14, 10], [15, 2], [16, 11], [17, 11], [18, 12], [19, 12], [20, 3], [21, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "add", "code": "\tpublic void add(String keyword, byte id)\n\t{\n\t\tint key = getStringMapKey(keyword);\n\n\t\tchar[] chars = keyword.toCharArray();\n\n\t\t// complete-word command needs a list of all non-alphanumeric\n\t\t// characters used in a keyword map.\nloop:\t\tfor(int i = 0; i < chars.length; i++)\n\t\t{\n\t\t\tchar ch = chars[i];\n\t\t\tif(!Character.isLetterOrDigit(ch))\n\t\t\t{\n\t\t\t\tfor(int j = 0; j < noWordSep.length(); j++)\n\t\t\t\t{\n\t\t\t\t\tif(noWordSep.charAt(j) == ch)\n\t\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\n\t\t\t\tnoWordSep.append(ch);\n\t\t\t}\n\t\t}\n\n\t\tnoWordSepStr = null;\n\t\tmap[key] = new Keyword(chars,id,map[key]);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "CALL", "BINARY_OP", "IF", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [6, 9], [7, 10], [1, 11], [1, 12], [2, 13], [3, 14], [11, 15], [1, 16], [11, 17], [11, 18], [17, 19], [17, 20], [19, 21], [20, 22], [20, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 6], [10, 7], [11, 1], [12, 1], [13, 2], [14, 3], [15, 11], [16, 1], [17, 11], [18, 11], [19, 17], [20, 17], [21, 19], [22, 20], [23, 20], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getNonAlphaNumericChars", "code": "\tpublic String getNonAlphaNumericChars()\n\t{\n\t\treturn noWordSep.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getKeywords", "code": "\tpublic String[] getKeywords()\n\t{\n\t\tVector vector = new Vector(100);\n\t\tfor(int i = 0; i < map.length; i++)\n\t\t{\n\t\t\tKeyword keyword = map[i];\n\t\t\twhile(keyword != null)\n\t\t\t{\n\t\t\t\tvector.addElement(new String(keyword.keyword));\n\t\t\t\tkeyword = keyword.next;\n\t\t\t}\n\t\t}\n\t\tString[] retVal = new String[vector.size()];\n\t\tvector.copyInto(retVal);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [3, 8], [4, 9], [2, 10], [7, 11], [3, 12], [9, 13], [11, 14], [7, 15], [7, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 3], [9, 4], [10, 2], [11, 7], [12, 3], [13, 9], [14, 11], [15, 7], [16, 7], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getIgnoreCase", "code": "\tpublic boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreCase", "code": "\tpublic void setIgnoreCase(boolean ignoreCase)\n\t{\n\t\tthis.ignoreCase = ignoreCase;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStringMapKey", "code": "\tprivate int getStringMapKey(String s)\n\t{\n\t\treturn (Character.toUpperCase(s.charAt(0)) +\n\t\t\t\tCharacter.toUpperCase(s.charAt(s.length()-1)))\n\t\t\t\t% mapLength;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [5, 7], [6, 8], [7, 9], [8, 10], [9, 11], [9, 12], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 5], [8, 6], [9, 7], [10, 8], [11, 9], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSegmentMapKey", "code": "\tprotected int getSegmentMapKey(Segment s, int off, int len)\n\t{\n\t\treturn (Character.toUpperCase(s.array[off]) +\n\t\t\t\tCharacter.toUpperCase(s.array[off + len - 1]))\n\t\t\t\t% mapLength;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [6, 8], [7, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [8, 6], [9, 7], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "KeywordMap", "code": "\tpublic KeywordMap(boolean ignoreCase)\n\t{\n\t\tthis(ignoreCase, 52);\n\t\tthis.ignoreCase = ignoreCase;\n\t\tnoWordSep = new StringBuffer();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "KeywordMap", "code": "\tpublic KeywordMap(boolean ignoreCase, int mapLength)\n\t{\n\t\tthis.mapLength = mapLength;\n\t\tthis.ignoreCase = ignoreCase;\n\t\tmap = new Keyword[mapLength];", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "jedit-4.2-4261", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/search/SearchBar.java", "language": "java", "name": "org.gjt.sp.jedit.search.SearchBar", "code": "public class SearchBar extends JPanel\n{\n\t//{{{ SearchBar constructor\n\tpublic SearchBar(final View view, boolean temp)\n\t{\n\t\tsetLayout(new BoxLayout(this,BoxLayout.X_AXIS));\n\n\t\tthis.view = view;\n\n\t\tadd(Box.createHorizontalStrut(2));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"view.search.find\"));\n\t\tadd(label);\n\t\tadd(Box.createHorizontalStrut(12));\n\t\tadd(find = new HistoryTextField(\"find\"));\n\t\tfind.setSelectAllOnFocus(true);\n\t\tDimension max = find.getPreferredSize();\n\t\tmax.width = Integer.MAX_VALUE;\n\t\tfind.setMaximumSize(max);\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tfind.addKeyListener(new KeyHandler());\n\t\tfind.addActionListener(actionHandler);\n\t\tfind.getDocument().addDocumentListener(new DocumentHandler());\n\n\t\tInsets margin = new Insets(1,1,1,1);\n\n\t\tadd(Box.createHorizontalStrut(12));\n\t\tadd(ignoreCase = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.case\")));\n\t\tignoreCase.addActionListener(actionHandler);\n\t\tignoreCase.setMargin(margin);\n\t\tignoreCase.setRequestFocusEnabled(false);\n\t\tadd(Box.createHorizontalStrut(2));\n\t\tadd(regexp = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.regexp\")));\n\t\tregexp.addActionListener(actionHandler);\n\t\tregexp.setMargin(margin);\n\t\tregexp.setRequestFocusEnabled(false);\n\t\tadd(Box.createHorizontalStrut(2));\n\t\tadd(hyperSearch = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.hypersearch\")));\n\t\thyperSearch.addActionListener(actionHandler);\n\t\thyperSearch.setMargin(margin);\n\t\thyperSearch.setRequestFocusEnabled(false);\n\n\t\tupdate();\n\n\t\t//{{{ Create the timer used by incremental search\n\t\ttimer = new Timer(0,new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tif(!incrementalSearch(searchStart,searchReverse))\n\t\t\t\t{\n\t\t\t\t\tif(!incrementalSearch(\n\t\t\t\t\t\t(searchReverse\n\t\t\t\t\t\t? view.getBuffer().getLength()\n\t\t\t\t\t\t: 0),searchReverse))\n\t\t\t\t\t{\n\t\t\t\t\t\t// not found at all.\n\t\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\t\t\"view.status.search-not-found\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}); //}}}\n\n\t\t// if 'temp' is true, hide search bar after user is done with it\n\t\tthis.temp = temp;\n\n\t\tpropertiesChanged();\n\t} //}}}\n\n\t//{{{ getField() method\n\tpublic HistoryTextField getField()\n\t{\n\t\treturn find;\n\t} //}}}\n\n\t//{{{ setHyperSearch() method\n\tpublic void setHyperSearch(boolean hyperSearch)\n\t{\n\t\tjEdit.setBooleanProperty(\"view.search.hypersearch.toggle\",hyperSearch);\n\t\tthis.hyperSearch.setSelected(hyperSearch);\n\t} //}}}\n\n\t//{{{ update() method\n\tpublic void update()\n\t{\n\t\tignoreCase.setSelected(SearchAndReplace.getIgnoreCase());\n\t\tregexp.setSelected(SearchAndReplace.getRegexp());\n\t\thyperSearch.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.search.hypersearch.toggle\"));\n\t} //}}}\n\n\t//{{{ propertiesChanged() method\n\tpublic void propertiesChanged()\n\t{\n\t\tif(temp)\n\t\t{\n\t\t\tif(close == null)\n\t\t\t{\n\t\t\t\tclose = new RolloverButton(GUIUtilities.loadIcon(\"closebox.gif\"));\n\t\t\t\tclose.addActionListener(new ActionHandler());\n\t\t\t\tclose.setToolTipText(jEdit.getProperty(\n\t\t\t\t\t\"view.search.close-tooltip\"));\n\t\t\t}\n\t\t\tadd(close);\n\t\t}\n\t\telse if(close != null)\n\t\t\tremove(close);\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate View view;\n\tprivate HistoryTextField find;\n\tprivate JCheckBox ignoreCase, regexp, hyperSearch;\n\tprivate Timer timer;\n\n\t// close button only there if 'temp' is true\n\tprivate RolloverButton close;\n\n\tprivate int searchStart;\n\tprivate boolean searchReverse;\n\tprivate boolean temp;\n\t//}}}\n\n\t//{{{ find() method\n\tprivate void find(boolean reverse)\n\t{\n\t\ttimer.stop();\n\n\t\tString text = find.getText();\n\t\t//{{{ If nothing entered, show search and replace dialog box\n\t\tif(text.length() == 0)\n\t\t{\n\t\t\tjEdit.setBooleanProperty(\"search.hypersearch.toggle\",\n\t\t\t\thyperSearch.isSelected());\n\t\t\tSearchDialog.showSearchDialog(view,null,SearchDialog.CURRENT_BUFFER);\n\t\t} //}}}\n\t\t//{{{ HyperSearch\n\t\telse if(hyperSearch.isSelected())\n\t\t{\n\t\t\tif(temp)\n\t\t\t{\n\t\t\t\tview.removeToolBar(SearchBar.this);\n\t\t\t}\n                        else\n\t\t\t\tfind.setText(null);\n\n\t\t\tSearchAndReplace.setSearchString(text);\n\t\t\tSearchAndReplace.setSearchFileSet(new CurrentBufferSet());\n\t\t\tSearchAndReplace.hyperSearch(view);\n\t\t} //}}}\n\t\t//{{{ Incremental search\n\t\telse\n\t\t{\n\t\t\tif(reverse && SearchAndReplace.getRegexp())\n\t\t\t{\n\t\t\t\tGUIUtilities.error(view,\"regexp-reverse\",null);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// on enter, start search from end\n\t\t\t// of current match to find next one\n\t\t\tint start;\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\ttextArea.getCaretPosition());\n\t\t\tif(s == null)\n\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\telse if(reverse)\n\t\t\t\tstart = s.getStart();\n\t\t\telse\n\t\t\t\tstart = s.getEnd();\n\n\t\t\tif(!incrementalSearch(start,reverse))\n\t\t\t{\n\t\t\t\t// not found. start from\n\t\t\t\t// beginning\n\t\t\t\tif(!incrementalSearch(reverse\n\t\t\t\t\t? view.getBuffer().getLength()\n\t\t\t\t\t: 0,reverse))\n\t\t\t\t{\n\t\t\t\t\t// not found at all.\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\t\"view.status.search-not-found\"));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// inform user search restarted\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\"view.status.auto-wrap\"));\n\t\t\t\t\t// beep if beep property set\n\t\t\t\t\tif(jEdit.getBooleanProperty(\"search.beepOnSearchAutoWrap\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ incrementalSearch() method\n\tprivate boolean incrementalSearch(int start, boolean reverse)\n\t{\n\t\t/* For example, if the current fileset is a directory,\n\t\t * C+g will find the next match within that fileset.\n\t\t * This can be annoying if you have just done an\n\t\t * incremental search and want the next occurrence\n\t\t * in the current buffer. */\n\t\tSearchAndReplace.setSearchFileSet(new CurrentBufferSet());\n\t\tSearchAndReplace.setSearchString(find.getText());\n\t\tSearchAndReplace.setReverseSearch(reverse);\n\n\t\ttry\n\t\t{\n\t\t\tif(SearchAndReplace.find(view,view.getBuffer(),start,false,reverse))\n\t\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,e);\n\n\t\t\t// invalid regexp, ignore\n\t\t\t// return true to avoid annoying beeping while\n\t\t\t// typing a re\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ timerIncrementalSearch() method\n\tprivate void timerIncrementalSearch(int start, boolean reverse)\n\t{\n\t\tthis.searchStart = start;\n\t\tthis.searchReverse = reverse;\n\n\t\ttimer.stop();\n\t\ttimer.setRepeats(false);\n\t\ttimer.setInitialDelay(150);\n\t\ttimer.start();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\t//{{{ actionPerformed() method\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\t\t\tif(source == find)\n\t\t\t\tfind(false);\n\t\t\telse if(source == hyperSearch)\n\t\t\t{\n\t\t\t\tjEdit.setBooleanProperty(\"view.search.hypersearch.toggle\",\n\t\t\t\t\thyperSearch.isSelected());\n\t\t\t\tupdate();\n\t\t\t}\n\t\t\telse if(source == ignoreCase)\n\t\t\t{\n\t\t\t\tSearchAndReplace.setIgnoreCase(ignoreCase\n\t\t\t\t\t.isSelected());\n\t\t\t}\n\t\t\telse if(source == regexp)\n\t\t\t{\n\t\t\t\tSearchAndReplace.setRegexp(regexp\n\t\t\t\t\t.isSelected());\n\t\t\t}\n\t\t\telse if(source == close)\n\t\t\t{\n\t\t\t\tview.removeToolBar(SearchBar.this);\n\t\t\t\tview.getEditPane().focusOnTextArea();\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ DocumentHandler class\n\tclass DocumentHandler implements DocumentListener\n\t{\n\t\t//{{{ insertUpdate() method\n\t\tpublic void insertUpdate(DocumentEvent evt)\n\t\t{\n\t\t\t// on insert, start search from beginning of\n\t\t\t// current match. This will continue to highlight\n\t\t\t// the current match until another match is found\n\t\t\tif(!hyperSearch.isSelected())\n\t\t\t{\n\t\t\t\tint start;\n\t\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\t\ttextArea.getCaretPosition());\n\t\t\t\tif(s == null)\n\t\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\t\telse\n\t\t\t\t\tstart = s.getStart();\n\n\t\t\t\ttimerIncrementalSearch(start,false);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ removeUpdate() method\n\t\tpublic void removeUpdate(DocumentEvent evt)\n\t\t{\n\t\t\t// on backspace, restart from beginning\n\t\t\tif(!hyperSearch.isSelected())\n\t\t\t{\n\t\t\t\tString text = find.getText();\n\t\t\t\tif(text.length() != 0)\n\t\t\t\t{\n\t\t\t\t\t// don't beep if not found.\n\t\t\t\t\t// subsequent beeps are very\n\t\t\t\t\t// annoying when backspacing an\n\t\t\t\t\t// invalid search string.\n\t\t\t\t\tif(regexp.isSelected())\n\t\t\t\t\t{\n\t\t\t\t\t\t// reverse regexp search\n\t\t\t\t\t\t// not supported yet, so\n\t\t\t\t\t\t// 'simulate' with restart\n\t\t\t\t\t\ttimerIncrementalSearch(0,false);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tint start;\n\t\t\t\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\t\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\t\t\t\ttextArea.getCaretPosition());\n\t\t\t\t\t\tif(s == null)\n\t\t\t\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tstart = s.getStart();\n\t\t\t\t\t\ttimerIncrementalSearch(start,true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ changedUpdate() method\n\t\tpublic void changedUpdate(DocumentEvent evt) {}\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ KeyHandler class\n\tclass KeyHandler extends KeyAdapter\n\t{\n\t\tpublic void keyPressed(KeyEvent evt)\n\t\t{\n\t\t\tswitch(evt.getKeyCode())\n\t\t\t{\n\t\t\tcase KeyEvent.VK_ESCAPE:\n\t\t\t\tif(temp)\n\t\t\t\t{\n\t\t\t\t\tview.removeToolBar(SearchBar.this);\n\t\t\t\t}\n\t\t\t\tevt.consume();\n\t\t\t\tview.getEditPane().focusOnTextArea();\n\t\t\t\tbreak;\n\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\tif(evt.isShiftDown())\n\t\t\t\t{\n\t\t\t\t\tevt.consume();\n\t\t\t\t\tfind(true);\n\t\t\t\t}\n\t\t\t\tbreak;", "functions": [{"function_name": "getField", "code": "\tpublic HistoryTextField getField()\n\t{\n\t\treturn find;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHyperSearch", "code": "\tpublic void setHyperSearch(boolean hyperSearch)\n\t{\n\t\tjEdit.setBooleanProperty(\"view.search.hypersearch.toggle\",hyperSearch);\n\t\tthis.hyperSearch.setSelected(hyperSearch);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "update", "code": "\tpublic void update()\n\t{\n\t\tignoreCase.setSelected(SearchAndReplace.getIgnoreCase());\n\t\tregexp.setSelected(SearchAndReplace.getRegexp());\n\t\thyperSearch.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.search.hypersearch.toggle\"));", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "propertiesChanged", "code": "\tpublic void propertiesChanged()\n\t{\n\t\tif(temp)\n\t\t{\n\t\t\tif(close == null)\n\t\t\t{\n\t\t\t\tclose = new RolloverButton(GUIUtilities.loadIcon(\"closebox.gif\"));\n\t\t\t\tclose.addActionListener(new ActionHandler());\n\t\t\t\tclose.setToolTipText(jEdit.getProperty(\n\t\t\t\t\t\"view.search.close-tooltip\"));\n\t\t\t}\n\t\t\tadd(close);\n\t\t}\n\t\telse if(close != null)\n\t\t\tremove(close);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [8, 9], [4, 10], [4, 11], [4, 12], [10, 13], [11, 14], [12, 15], [13, 16], [15, 17], [17, 18], [1, 0], [2, 1], [3, 2], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [9, 8], [10, 4], [11, 4], [12, 4], [13, 10], [14, 11], [15, 12], [16, 13], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "find", "code": "\tprivate void find(boolean reverse)\n\t{\n\t\ttimer.stop();\n\n\t\tString text = find.getText();\n\t\t//{{{ If nothing entered, show search and replace dialog box\n\t\tif(text.length() == 0)\n\t\t{\n\t\t\tjEdit.setBooleanProperty(\"search.hypersearch.toggle\",\n\t\t\t\thyperSearch.isSelected());\n\t\t\tSearchDialog.showSearchDialog(view,null,SearchDialog.CURRENT_BUFFER);\n\t\t} //}}}\n\t\t//{{{ HyperSearch\n\t\telse if(hyperSearch.isSelected())\n\t\t{\n\t\t\tif(temp)\n\t\t\t{\n\t\t\t\tview.removeToolBar(SearchBar.this);\n\t\t\t}\n                        else\n\t\t\t\tfind.setText(null);\n\n\t\t\tSearchAndReplace.setSearchString(text);\n\t\t\tSearchAndReplace.setSearchFileSet(new CurrentBufferSet());\n\t\t\tSearchAndReplace.hyperSearch(view);\n\t\t} //}}}\n\t\t//{{{ Incremental search\n\t\telse\n\t\t{\n\t\t\tif(reverse && SearchAndReplace.getRegexp())\n\t\t\t{\n\t\t\t\tGUIUtilities.error(view,\"regexp-reverse\",null);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// on enter, start search from end\n\t\t\t// of current match to find next one\n\t\t\tint start;\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\ttextArea.getCaretPosition());\n\t\t\tif(s == null)\n\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\telse if(reverse)\n\t\t\t\tstart = s.getStart();\n\t\t\telse\n\t\t\t\tstart = s.getEnd();\n\n\t\t\tif(!incrementalSearch(start,reverse))\n\t\t\t{\n\t\t\t\t// not found. start from\n\t\t\t\t// beginning\n\t\t\t\tif(!incrementalSearch(reverse\n\t\t\t\t\t? view.getBuffer().getLength()\n\t\t\t\t\t: 0,reverse))\n\t\t\t\t{\n\t\t\t\t\t// not found at all.\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\t\"view.status.search-not-found\"));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// inform user search restarted\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\"view.status.auto-wrap\"));\n\t\t\t\t\t// beep if beep property set\n\t\t\t\t\tif(jEdit.getBooleanProperty(\"search.beepOnSearchAutoWrap\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [5, 8], [5, 9], [2, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 16], [4, 17], [1, 18], [1, 19], [11, 20], [12, 21], [12, 22], [16, 23], [4, 24], [4, 25], [4, 26], [18, 27], [19, 28], [19, 29], [11, 30], [12, 31], [22, 32], [13, 33], [14, 34], [16, 35], [23, 36], [25, 37], [17, 38], [30, 39], [21, 40], [21, 41], [31, 42], [33, 43], [16, 44], [38, 45], [17, 46], [30, 47], [39, 48], [40, 49], [41, 50], [44, 51], [44, 52], [47, 53], [30, 54], [30, 55], [48, 56], [48, 57], [53, 58], [54, 59], [55, 60], [57, 61], [47, 62], [59, 63], [60, 64], [62, 65], [63, 66], [64, 67], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 5], [9, 5], [10, 2], [11, 4], [12, 4], [13, 4], [14, 4], [15, 4], [16, 4], [17, 4], [18, 1], [19, 1], [20, 11], [21, 12], [22, 12], [23, 16], [24, 4], [25, 4], [26, 4], [27, 18], [28, 19], [29, 19], [30, 11], [31, 12], [32, 22], [33, 13], [34, 14], [35, 16], [36, 23], [37, 25], [38, 17], [39, 30], [40, 21], [41, 21], [42, 31], [43, 33], [44, 16], [45, 38], [46, 17], [47, 30], [48, 39], [49, 40], [50, 41], [51, 44], [52, 44], [53, 47], [54, 30], [55, 30], [56, 48], [57, 48], [58, 53], [59, 54], [60, 55], [61, 57], [62, 47], [63, 59], [64, 60], [65, 62], [66, 63], [67, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "incrementalSearch", "code": "\tprivate boolean incrementalSearch(int start, boolean reverse)\n\t{\n\t\t/* For example, if the current fileset is a directory,\n\t\t * C+g will find the next match within that fileset.\n\t\t * This can be annoying if you have just done an\n\t\t * incremental search and want the next occurrence\n\t\t * in the current buffer. */\n\t\tSearchAndReplace.setSearchFileSet(new CurrentBufferSet());\n\t\tSearchAndReplace.setSearchString(find.getText());\n\t\tSearchAndReplace.setReverseSearch(reverse);\n\n\t\ttry\n\t\t{\n\t\t\tif(SearchAndReplace.find(view,view.getBuffer(),start,false,reverse))\n\t\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,e);\n\n\t\t\t// invalid regexp, ignore\n\t\t\t// return true to avoid annoying beeping while\n\t\t\t// typing a re\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "CALL", "CALL", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [7, 13], [9, 14], [10, 15], [11, 16], [6, 17], [12, 18], [13, 19], [13, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 7], [14, 9], [15, 10], [16, 11], [17, 6], [18, 12], [19, 13], [20, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "timerIncrementalSearch", "code": "\tprivate void timerIncrementalSearch(int start, boolean reverse)\n\t{\n\t\tthis.searchStart = start;\n\t\tthis.searchReverse = reverse;\n\n\t\ttimer.stop();\n\t\ttimer.setRepeats(false);\n\t\ttimer.setInitialDelay(150);\n\t\ttimer.start();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "SearchBar", "code": "\tpublic SearchBar(final View view, boolean temp)\n\t{\n\t\tsetLayout(new BoxLayout(this,BoxLayout.X_AXIS));\n\n\t\tthis.view = view;\n\n\t\tadd(Box.createHorizontalStrut(2));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"view.search.find\"));\n\t\tadd(label);\n\t\tadd(Box.createHorizontalStrut(12));\n\t\tadd(find = new HistoryTextField(\"find\"));\n\t\tfind.setSelectAllOnFocus(true);\n\t\tDimension max = find.getPreferredSize();\n\t\tmax.width = Integer.MAX_VALUE;\n\t\tfind.setMaximumSize(max);\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tfind.addKeyListener(new KeyHandler());\n\t\tfind.addActionListener(actionHandler);\n\t\tfind.getDocument().addDocumentListener(new DocumentHandler());\n\n\t\tInsets margin = new Insets(1,1,1,1);\n\n\t\tadd(Box.createHorizontalStrut(12));\n\t\tadd(ignoreCase = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.case\")));\n\t\tignoreCase.addActionListener(actionHandler);\n\t\tignoreCase.setMargin(margin);\n\t\tignoreCase.setRequestFocusEnabled(false);\n\t\tadd(Box.createHorizontalStrut(2));\n\t\tadd(regexp = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.regexp\")));\n\t\tregexp.addActionListener(actionHandler);\n\t\tregexp.setMargin(margin);\n\t\tregexp.setRequestFocusEnabled(false);\n\t\tadd(Box.createHorizontalStrut(2));\n\t\tadd(hyperSearch = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.hypersearch\")));\n\t\thyperSearch.addActionListener(actionHandler);\n\t\thyperSearch.setMargin(margin);\n\t\thyperSearch.setRequestFocusEnabled(false);\n\n\t\tupdate();\n\n\t\t//{{{ Create the timer used by incremental search\n\t\ttimer = new Timer(0,new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tif(!incrementalSearch(searchStart,searchReverse))\n\t\t\t\t{\n\t\t\t\t\tif(!incrementalSearch(\n\t\t\t\t\t\t(searchReverse\n\t\t\t\t\t\t? view.getBuffer().getLength()\n\t\t\t\t\t\t: 0),searchReverse))\n\t\t\t\t\t{\n\t\t\t\t\t\t// not found at all.\n\t\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\t\t\"view.status.search-not-found\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}); //}}}\n\n\t\t// if 'temp' is true, hide search bar after user is done with it\n\t\tthis.temp = temp;\n\n\t\tpropertiesChanged();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [9, 38], [11, 39], [14, 40], [15, 41], [16, 42], [19, 43], [20, 44], [21, 45], [24, 46], [25, 47], [1, 48], [26, 49], [28, 50], [2, 51], [3, 52], [31, 53], [32, 54], [33, 55], [4, 56], [35, 57], [37, 58], [38, 59], [38, 60], [40, 61], [41, 62], [43, 63], [44, 64], [46, 65], [47, 66], [48, 67], [48, 68], [48, 69], [48, 70], [49, 71], [54, 72], [55, 73], [56, 74], [57, 75], [59, 76], [61, 77], [63, 78], [65, 79], [72, 80], [74, 81], [76, 82], [76, 83], [77, 84], [78, 85], [79, 86], [82, 87], [82, 88], [88, 89], [89, 90], [88, 91], [90, 92], [90, 93], [91, 94], [93, 95], [94, 96], [96, 97], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 9], [39, 11], [40, 14], [41, 15], [42, 16], [43, 19], [44, 20], [45, 21], [46, 24], [47, 25], [48, 1], [49, 26], [50, 28], [51, 2], [52, 3], [53, 31], [54, 32], [55, 33], [56, 4], [57, 35], [58, 37], [59, 38], [60, 38], [61, 40], [62, 41], [63, 43], [64, 44], [65, 46], [66, 47], [67, 48], [68, 48], [69, 48], [70, 48], [71, 49], [72, 54], [73, 55], [74, 56], [75, 57], [76, 59], [77, 61], [78, 63], [79, 65], [80, 72], [81, 74], [82, 76], [83, 76], [84, 77], [85, 78], [86, 79], [87, 82], [88, 82], [89, 88], [90, 89], [91, 88], [92, 90], [93, 90], [94, 91], [95, 93], [96, 94], [97, 96], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97]]}], "label": 1}
{"sample_id": "xalan-2.4-6711", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/Stylesheet.java", "language": "java", "name": "org.apache.xalan.templates.Stylesheet", "code": "public class Stylesheet extends ElemTemplateElement\n        implements java.io.Serializable /* , Document */\n{\n\n  /**\n   * Constructor for a Stylesheet.\n   * @param parent  The including or importing stylesheet.\n   */\n  public Stylesheet(Stylesheet parent)\n  {\n\n    if (null != parent)\n    {\n      m_stylesheetParent = parent;\n      m_stylesheetRoot = parent.getStylesheetRoot();\n    }\n  }\n\n  /**\n   * Get the owning stylesheet.  This looks up the\n   * inheritance chain until it calls getStylesheet\n   * on a Stylesheet object, which will return itself.\n   *\n   * @return The owning stylesheet, itself.\n   */\n  public Stylesheet getStylesheet()\n  {\n    return this;\n  }\n\n  /**\n   * Tell if this can be cast to a StylesheetComposed, meaning, you\n   * can ask questions from getXXXComposed functions.\n   *\n   * @return False if this is not a StylesheetComposed\n   */\n  public boolean isAggregatedType()\n  {\n    return false;\n  }\n\n  /**\n   * Tell if this is the root of the stylesheet tree.\n   *\n   * @return False is this is not the root of the stylesheet tree.\n   */\n  public boolean isRoot()\n  {\n    return false;\n  }\n\n  /**\n   * Extension to be used when serializing to disk.\n   */\n  public static final String STYLESHEET_EXT = \".lxc\";\n\n  /**\n   * Read the stylesheet from a serialization stream.\n   *\n   * @param stream Input stream to read from\n   *\n   * @throws IOException\n   * @throws TransformerException\n   */\n  private void readObject(ObjectInputStream stream)\n          throws IOException, TransformerException\n  {\n\n    try\n    {\n      stream.defaultReadObject();\n    }\n    catch (ClassNotFoundException cnfe)\n    {\n      throw new TransformerException(cnfe);\n    }\n\n  }\n\n  /**\n   * Write out the given output stream \n   *\n   *\n   * @param stream The output stream to write out\n   *\n   * @throws IOException\n   */\n  private void writeObject(ObjectOutputStream stream) throws IOException\n  {\n\n    stream.defaultWriteObject();\n\n  }\n\n\n  /**\n   * The \"xmlns:xsl\" property.\n   * @serial\n   */\n  private String m_XmlnsXsl;\n\n  /**\n   * Set the \"xmlns:xsl\" property.\n   *\n   * @param v The value to be set for the \"xmlns:xsl\" property.\n   */\n  public void setXmlnsXsl(String v)\n  {\n    m_XmlnsXsl = v;\n  }\n\n  /**\n   * Get the \"xmlns:xsl\" property.\n   *\n   * @return The value of the \"xmlns:xsl\" property.\n   */\n  public String getXmlnsXsl()\n  {\n    return m_XmlnsXsl;\n  }\n\n  /**\n   * The \"extension-element-prefixes\" property, actually contains URIs.\n   * @serial\n   */\n  private StringVector m_ExtensionElementURIs;\n\n  /**\n   * Set the \"extension-element-prefixes\" property.\n   *\n   * @param v The value to be set for the \"extension-element-prefixes\" \n   * property: a vector of extension element URIs.\n   */\n  public void setExtensionElementPrefixes(StringVector v)\n  {\n    m_ExtensionElementURIs = v;\n  }\n\n  /**\n   * Get and \"extension-element-prefix\" property.\n   *\n   * @param i Index of extension element URI in list \n   *\n   * @return The extension element URI at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public String getExtensionElementPrefix(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_ExtensionElementURIs)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return m_ExtensionElementURIs.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"extension-element-prefixes\" Strings.\n   *\n   * @return Number of URIs in the list\n   */\n  public int getExtensionElementPrefixCount()\n  {\n    return (null != m_ExtensionElementURIs)\n           ? m_ExtensionElementURIs.size() : 0;\n  }\n\n  /**\n   * Find out if this contains a given \"extension-element-prefix\" property.\n   *\n   * @param uri URI of extension element to look for\n   *\n   * @return True if the given URI was found in the list \n   */\n  public boolean containsExtensionElementURI(String uri)\n  {\n\n    if (null == m_ExtensionElementURIs)\n      return false;\n\n    return m_ExtensionElementURIs.contains(uri);\n  }\n\n  /**\n   * The \"exclude-result-prefixes\" property.\n   * @serial\n   */\n  private StringVector m_ExcludeResultPrefixs;\n\n  /**\n   * Set the \"exclude-result-prefixes\" property.\n   * The designation of a namespace as an excluded namespace is\n   * effective within the subtree of the stylesheet rooted at\n   * the element bearing the exclude-result-prefixes or\n   * xsl:exclude-result-prefixes attribute; a subtree rooted\n   * at an xsl:stylesheet element does not include any stylesheets\n   * imported or included by children of that xsl:stylesheet element.\n   *\n   * @param v A StringVector of prefixes to exclude \n   */\n  public void setExcludeResultPrefixes(StringVector v)\n  {\n    m_ExcludeResultPrefixs = v;\n  }\n\n  /**\n   * Get an \"exclude-result-prefix\" property.\n   * The designation of a namespace as an excluded namespace is\n   * effective within the subtree of the stylesheet rooted at\n   * the element bearing the exclude-result-prefixes or\n   * xsl:exclude-result-prefixes attribute; a subtree rooted\n   * at an xsl:stylesheet element does not include any stylesheets\n   * imported or included by children of that xsl:stylesheet element.\n   *\n   * @param i Index of prefix to get in list \n   *\n   * @return Prefix to be excluded at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public String getExcludeResultPrefix(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_ExcludeResultPrefixs)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return m_ExcludeResultPrefixs.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"exclude-result-prefixes\" Strings.\n   *\n   * @return The number of prefix strings to be excluded. \n   */\n  public int getExcludeResultPrefixCount()\n  {\n    return (null != m_ExcludeResultPrefixs)\n           ? m_ExcludeResultPrefixs.size() : 0;\n  }\n\n  /**\n   * Get whether or not the passed prefix is contained flagged by\n   * the \"exclude-result-prefixes\" property.\n   *\n   * @param prefix non-null reference to prefix that might be excluded.\n   * @param uri reference to namespace that prefix maps to\n   *\n   * @return true if the prefix should normally be excluded.>\n   */\n  public boolean containsExcludeResultPrefix(String prefix, String uri) \n  {\n\n    if (null == m_ExcludeResultPrefixs || uri == null )\n      return false;\n    \n    for (int i =0; i< m_ExcludeResultPrefixs.size(); i++)\n    {\n      if (uri.equals(getNamespaceForPrefix(m_ExcludeResultPrefixs.elementAt(i))))\n        return true;\n    }\n    \n    return false;\n\n  /*  if (prefix.length() == 0)\n      prefix = Constants.ATTRVAL_DEFAULT_PREFIX;\n\n    return m_ExcludeResultPrefixs.contains(prefix); */\n  }\n\n  /**\n   * The \"id\" property.\n   * @serial\n   */\n  private String m_Id;\n\n  /**\n   * Set the \"id\" property.\n   *\n   * @param v Value for the \"id\" property.\n   */\n  public void setId(String v)\n  {\n    m_Id = v;\n  }\n\n  /**\n   * Get the \"id\" property.\n   *\n   * @return The value of the \"id\" property.\n   */\n  public String getId()\n  {\n    return m_Id;\n  }\n\n  /**\n   * The \"version\" property.\n   * @serial\n   */\n  private String m_Version;\n\n  /**\n   * Set the \"version\" property.\n   *\n   * @param v Value for the \"version\" property.\n   */\n  public void setVersion(String v)\n  {\n    m_Version = v;\n  }\n\n  /**\n   * Get the \"version\" property.\n   *\n   * @return The value of the \"version\" property.\n   */\n  public String getVersion()\n  {\n    return m_Version;\n  }\n\n  /**\n   * The \"xsl:import\" list.\n   * @serial\n   */\n  private Vector m_imports;\n\n  /**\n   * Add a stylesheet to the \"import\" list.\n   *\n   * @param v Stylesheet to add to the import list\n   */\n  public void setImport(StylesheetComposed v)\n  {\n\n    if (null == m_imports)\n      m_imports = new Vector();\n\n    m_imports.addElement(v);\n  }\n\n  /**\n   * Get a stylesheet from the \"import\" list.\n   *\n   * @param i Index of the stylesheet to get\n   *\n   * @return The stylesheet at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public StylesheetComposed getImport(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_imports)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (StylesheetComposed) m_imports.elementAt(i);\n  }\n\n  /**\n   * Get the number of imported stylesheets.\n   *\n   * @return the number of imported stylesheets.\n   */\n  public int getImportCount()\n  {\n    return (null != m_imports) ? m_imports.size() : 0;\n  }\n\n  /**\n   * The \"xsl:include\" properties.\n   * @serial\n   */\n  private Vector m_includes;\n\n  /**\n   * Add a stylesheet to the \"include\" list.\n   *\n   * @param v Stylesheet to add to the \"include\" list  \n   */\n  public void setInclude(Stylesheet v)\n  {\n\n    if (null == m_includes)\n      m_includes = new Vector();\n\n    m_includes.addElement(v);\n  }\n\n  /**\n   * Get the stylesheet at the given in index in \"include\" list\n   *\n   * @param i Index of stylesheet to get\n   *\n   * @return Stylesheet at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public Stylesheet getInclude(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_includes)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (Stylesheet) m_includes.elementAt(i);\n  }\n\n  /**\n   * Get the number of included stylesheets.\n   *\n   * @return the number of included stylesheets.\n   */\n  public int getIncludeCount()\n  {\n    return (null != m_includes) ? m_includes.size() : 0;\n  }\n\n  /**\n   * Table of tables of element decimal-format.\n   * @see DecimalFormatProperties\n   * @serial\n   */\n  Stack m_DecimalFormatDeclarations;\n\n  /**\n   * Process the xsl:decimal-format element.\n   *\n   * @param edf Decimal-format element to push into stack  \n   */\n  public void setDecimalFormat(DecimalFormatProperties edf)\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      m_DecimalFormatDeclarations = new Stack();\n\n    m_DecimalFormatDeclarations.push(edf);\n  }\n\n  /**\n   * Get an \"xsl:decimal-format\" property.\n   * \n   * @see DecimalFormatProperties\n   *\n   * @param name The qualified name of the decimal format property.\n   * @return null if not found, otherwise a DecimalFormatProperties\n   * object, from which you can get a DecimalFormatSymbols object.\n   */\n  public DecimalFormatProperties getDecimalFormat(QName name)\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      return null;\n\n    int n = getDecimalFormatCount();\n\n    for (int i = (n - 1); i >= 0; i++)\n    {\n      DecimalFormatProperties dfp = getDecimalFormat(i);\n\n      if (dfp.getName().equals(name))\n        return dfp;\n    }\n\n    return null;\n  }\n\n  /**\n   * Get an \"xsl:decimal-format\" property.\n   * @see DecimalFormatProperties\n   *\n   * @param i Index of decimal-format property in stack\n   *\n   * @return The decimal-format property at the given index \n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public DecimalFormatProperties getDecimalFormat(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (DecimalFormatProperties) m_DecimalFormatDeclarations.elementAt(i);\n  }\n\n  /**\n   * Get the number of xsl:decimal-format declarations.\n   * @see DecimalFormatProperties\n   *\n   * @return the number of xsl:decimal-format declarations.\n   */\n  public int getDecimalFormatCount()\n  {\n    return (null != m_DecimalFormatDeclarations)\n           ? m_DecimalFormatDeclarations.size() : 0;\n  }\n\n  /**\n   * The \"xsl:strip-space\" properties,\n   * A lookup table of all space stripping elements.\n   * @serial\n   */\n  private Vector m_whitespaceStrippingElements;\n\n  /**\n   * Set the \"xsl:strip-space\" properties.\n   *\n   * @param wsi WhiteSpaceInfo element to add to list \n   */\n  public void setStripSpaces(WhiteSpaceInfo wsi)\n  {\n\n    if (null == m_whitespaceStrippingElements)\n    {\n      m_whitespaceStrippingElements = new Vector();\n    }\n\n    m_whitespaceStrippingElements.addElement(wsi);\n  }\n\n  /**\n   * Get an \"xsl:strip-space\" property.\n   *\n   * @param i Index of WhiteSpaceInfo to get\n   *\n   * @return WhiteSpaceInfo at given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public WhiteSpaceInfo getStripSpace(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_whitespaceStrippingElements)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (WhiteSpaceInfo) m_whitespaceStrippingElements.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:strip-space\" properties.\n   *\n   * @return the number of \"xsl:strip-space\" properties.\n   */\n  public int getStripSpaceCount()\n  {\n    return (null != m_whitespaceStrippingElements)\n           ? m_whitespaceStrippingElements.size() : 0;\n  }\n\n  /**\n   * The \"xsl:preserve-space\" property,\n   * A lookup table of all space preserving elements.\n   * @serial\n   */\n  private Vector m_whitespacePreservingElements;\n\n  /**\n   * Set the \"xsl:preserve-space\" property.\n   *\n   * @param wsi WhiteSpaceInfo element to add to list\n   */\n  public void setPreserveSpaces(WhiteSpaceInfo wsi)\n  {\n\n    if (null == m_whitespacePreservingElements)\n    {\n      m_whitespacePreservingElements = new Vector();\n    }\n\n    m_whitespacePreservingElements.addElement(wsi);\n  }\n\n  /**\n   * Get a \"xsl:preserve-space\" property.\n   *\n   * @param i Index of WhiteSpaceInfo to get\n   *\n   * @return WhiteSpaceInfo at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public WhiteSpaceInfo getPreserveSpace(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_whitespacePreservingElements)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (WhiteSpaceInfo) m_whitespacePreservingElements.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:preserve-space\" properties.\n   *\n   * @return the number of \"xsl:preserve-space\" properties.\n   */\n  public int getPreserveSpaceCount()\n  {\n    return (null != m_whitespacePreservingElements)\n           ? m_whitespacePreservingElements.size() : 0;\n  }\n\n  /**\n   * The \"xsl:output\" properties.  This is a vector of OutputProperties objects.\n   * @serial\n   */\n  private Vector m_output;\n\n  /**\n   * Set the \"xsl:output\" property.\n   *\n   * @param v non-null reference to the OutputProperties object to be \n   *          added to the collection.\n   */\n  public void setOutput(OutputProperties v)\n  {\n    if (null == m_output)\n    {\n      m_output = new Vector();\n    }\n\n    m_output.addElement(v);\n  }\n\n  /**\n   * Get an \"xsl:output\" property.\n   *\n   * @param i Index of OutputFormatExtended to get\n   *\n   * @return non-null reference to an OutputProperties object.\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public OutputProperties getOutput(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_output)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (OutputProperties) m_output.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:output\" properties.\n   *\n   * @return The number of OutputProperties objects contained in this stylesheet.\n   */\n  public int getOutputCount()\n  {\n    return (null != m_output)\n           ? m_output.size() : 0;\n  }\n\n  /**\n   * The \"xsl:key\" property.\n   * @serial\n   */\n  private Vector m_keyDeclarations;\n\n  /**\n   * Set the \"xsl:key\" property.\n   *\n   * @param v KeyDeclaration element to add to the list of key declarations \n   */\n  public void setKey(KeyDeclaration v)\n  {\n\n    if (null == m_keyDeclarations)\n      m_keyDeclarations = new Vector();\n\n    m_keyDeclarations.addElement(v);\n  }\n\n  /**\n   * Get an \"xsl:key\" property.\n   *\n   * @param i Index of KeyDeclaration element to get\n   *\n   * @return KeyDeclaration element at given index in list \n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public KeyDeclaration getKey(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_keyDeclarations)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (KeyDeclaration) m_keyDeclarations.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:key\" properties.\n   *\n   * @return the number of \"xsl:key\" properties.\n   */\n  public int getKeyCount()\n  {\n    return (null != m_keyDeclarations) ? m_keyDeclarations.size() : 0;\n  }\n\n  /**\n   * The \"xsl:attribute-set\" property.\n   * @serial\n   */\n  private Vector m_attributeSets;\n\n  /**\n   * Set the \"xsl:attribute-set\" property.\n   *\n   * @param attrSet ElemAttributeSet to add to the list of attribute sets\n   */\n  public void setAttributeSet(ElemAttributeSet attrSet)\n  {\n\n    if (null == m_attributeSets)\n    {\n      m_attributeSets = new Vector();\n    }\n\n    m_attributeSets.addElement(attrSet);\n  }\n\n  /**\n   * Get an \"xsl:attribute-set\" property.\n   *\n   * @param i Index of ElemAttributeSet to get in list\n   *\n   * @return ElemAttributeSet at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public ElemAttributeSet getAttributeSet(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_attributeSets)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemAttributeSet) m_attributeSets.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:attribute-set\" properties.\n   *\n   * @return the number of \"xsl:attribute-set\" properties.\n   */\n  public int getAttributeSetCount()\n  {\n    return (null != m_attributeSets) ? m_attributeSets.size() : 0;\n  }\n\n  /**\n   * The \"xsl:variable\" and \"xsl:param\" properties.\n   * @serial\n   */\n  private Vector m_topLevelVariables;\n\n  /**\n   * Set the \"xsl:variable\" property.\n   *\n   * @param v ElemVariable object to add to list of top level variables\n   */\n  public void setVariable(ElemVariable v)\n  {\n\n    if (null == m_topLevelVariables)\n      m_topLevelVariables = new Vector();\n\n    m_topLevelVariables.addElement(v);\n  }\n  \n  /**\n   * Get an \"xsl:variable\" or \"xsl:param\" property.\n   *\n   * @param qname non-null reference to the qualified name of the variable.\n   *\n   * @return The ElemVariable with the given name in the list or null\n   */\n  public ElemVariable getVariableOrParam(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = (ElemVariable) getVariableOrParam(i);\n\n        if (var.getName().equals(qname))\n          return var;\n      }\n    }\n\n    return null;\n  }\n\n\n  /**\n   * Get an \"xsl:variable\" property.\n   *\n   * @param qname Qualified name of the xsl:variable to get \n   *\n   * @return reference to the variable named by qname, or null if not found.\n   */\n  public ElemVariable getVariable(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = getVariableOrParam(i);\n        if((var.getXSLToken() == Constants.ELEMNAME_VARIABLE) &&\n           (var.getName().equals(qname)))\n          return var;\n      }\n    }\n\n    return null;\n  }\n\n  /**\n   * Get an \"xsl:variable\" property.\n   *\n   * @param i Index of variable to get in the list\n   *\n   * @return ElemVariable at the given index in the list \n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public ElemVariable getVariableOrParam(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_topLevelVariables)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemVariable) m_topLevelVariables.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:variable\" properties.\n   *\n   * @return the number of \"xsl:variable\" properties.\n   */\n  public int getVariableOrParamCount()\n  {\n    return (null != m_topLevelVariables) ? m_topLevelVariables.size() : 0;\n  }\n\n  /**\n   * Set an \"xsl:param\" property.\n   *\n   * @param v A non-null ElemParam reference.\n   */\n  public void setParam(ElemParam v)\n  {\n    setVariable(v);\n  }\n\n  /**\n   * Get an \"xsl:param\" property.\n   *\n   * @param qname non-null reference to qualified name of the parameter.\n   *\n   * @return ElemParam with the given name in the list or null\n   */\n  public ElemParam getParam(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = getVariableOrParam(i);\n        if((var.getXSLToken() == Constants.ELEMNAME_PARAMVARIABLE) &&\n           (var.getName().equals(qname)))\n          return (ElemParam)var;\n      }\n    }\n\n    return null;\n  }\n\n  /**\n   * The \"xsl:template\" properties.\n   * @serial\n   */\n  private Vector m_templates;\n\n  /**\n   * Set an \"xsl:template\" property.\n   *\n   * @param v ElemTemplate to add to list of templates\n   */\n  public void setTemplate(ElemTemplate v)\n  {\n\n    if (null == m_templates)\n      m_templates = new Vector();\n\n    m_templates.addElement(v);\n    v.setStylesheet(this);\n  }\n\n  /**\n   * Get an \"xsl:template\" property.\n   *\n   * @param i Index of ElemTemplate in the list to get\n   *\n   * @return ElemTemplate at the given index in the list\n   *\n   * @throws TransformerException\n   */\n  public ElemTemplate getTemplate(int i) throws TransformerException\n  {\n\n    if (null == m_templates)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemTemplate) m_templates.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:template\" properties.\n   *\n   * @return the number of \"xsl:template\" properties.\n   */\n  public int getTemplateCount()\n  {\n    return (null != m_templates) ? m_templates.size() : 0;\n  }\n\n  /**\n   * The \"xsl:namespace-alias\" properties.\n   * @serial\n   */\n  private Vector m_prefix_aliases;\n\n  /**\n   * Set the \"xsl:namespace-alias\" property.\n   *\n   * @param na NamespaceAlias elemeent to add to the list\n   */\n  public void setNamespaceAlias(NamespaceAlias na)\n  {\n\n    if (m_prefix_aliases == null)\n      m_prefix_aliases = new Vector();\n\n    m_prefix_aliases.addElement(na);\n  }\n\n  /**\n   * Get an \"xsl:namespace-alias\" property.\n   *\n   * @param i Index of NamespaceAlias element to get from the list \n   *\n   * @return NamespaceAlias element at the given index in the list\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public NamespaceAlias getNamespaceAlias(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_prefix_aliases)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (NamespaceAlias) m_prefix_aliases.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:namespace-alias\" properties.\n   *\n   * @return the number of \"xsl:namespace-alias\" properties.\n   */\n  public int getNamespaceAliasCount()\n  {\n    return (null != m_prefix_aliases) ? m_prefix_aliases.size() : 0;\n  }\n\n  /**\n   * The \"non-xsl-top-level\" properties.\n   * @serial\n   */\n  private Hashtable m_NonXslTopLevel;\n\n  /**\n   * Set found a non-xslt element.\n   *\n   * @param name Qualified name of the element\n   * @param obj The element object\n   */\n  public void setNonXslTopLevel(QName name, Object obj)\n  {\n\n    if (null == m_NonXslTopLevel)\n      m_NonXslTopLevel = new Hashtable();\n\n    m_NonXslTopLevel.put(name, obj);\n  }\n\n  /**\n   * Get a non-xslt element.\n   *\n   * @param name Qualified name of the element to get\n   *\n   * @return The object associate with the given name \n   */\n  public Object getNonXslTopLevel(QName name)\n  {\n    return (null != m_NonXslTopLevel) ? m_NonXslTopLevel.get(name) : null;\n  }\n\n\n  /**\n   * The base URL of the XSL document.\n   * @serial\n   */\n  private String m_href = null;\n\n  /** The doctype-public element.\n   *  @serial          */\n  private String m_publicId;\n\n  /** The doctype-system element.\n   *  @serial          */\n  private String m_systemId;\n\n  /**\n   * Get the base identifier with which this stylesheet is associated.\n   *\n   * @return the base identifier with which this stylesheet is associated.\n   */\n  public String getHref()\n  {\n    return m_href;\n  }\n\n  /**\n   * Set the base identifier with which this stylesheet is associated.\n   *\n   * @param baseIdent the base identifier with which this stylesheet is associated.\n   */\n  public void setHref(String baseIdent)\n  {\n    m_href = baseIdent;\n  }\n\n  /**\n   * Set the location information for this element.\n   *\n   * @param locator SourceLocator object with location information  \n   */\n  public void setLocaterInfo(SourceLocator locator)\n  {\n\n    if (null != locator)\n    {\n      m_publicId = locator.getPublicId();\n      m_systemId = locator.getSystemId();\n\n      if (null != m_systemId)\n      {\n        try\n        {\n          m_href = SystemIDResolver.getAbsoluteURI(m_systemId, null);\n        }\n        catch (TransformerException se)\n        {\n\n        }\n      }\n\n      super.setLocaterInfo(locator);\n    }\n  }\n\n  /**\n   * The root of the stylesheet, where all the tables common\n   * to all stylesheets are kept.\n   * @serial\n   */\n  private StylesheetRoot m_stylesheetRoot;\n\n  /**\n   * Get the root of the stylesheet, where all the tables common\n   * to all stylesheets are kept.\n   *\n   * @return the root of the stylesheet\n   */\n  public StylesheetRoot getStylesheetRoot()\n  {\n    return m_stylesheetRoot;\n  }\n\n  /**\n   * Set the root of the stylesheet, where all the tables common\n   * to all stylesheets are kept.\n   *\n   * @param v the root of the stylesheet\n   */\n  public void setStylesheetRoot(StylesheetRoot v)\n  {\n    m_stylesheetRoot = v;\n  }\n\n  /**\n   * The parent of the stylesheet.  This will be null if this\n   * is the root stylesheet.\n   * @serial\n   */\n  private Stylesheet m_stylesheetParent;\n\n  /**\n   * Get the parent of the stylesheet.  This will be null if this\n   * is the root stylesheet.\n   *\n   * @return the parent of the stylesheet.\n   */\n  public Stylesheet getStylesheetParent()\n  {\n    return m_stylesheetParent;\n  }\n\n  /**\n   * Set the parent of the stylesheet.  This should be null if this\n   * is the root stylesheet.\n   *\n   * @param v the parent of the stylesheet.\n   */\n  public void setStylesheetParent(Stylesheet v)\n  {\n    m_stylesheetParent = v;\n  }\n\n  /**\n   * Get the owning aggregated stylesheet, or this\n   * stylesheet if it is aggregated.\n   *\n   * @return the owning aggregated stylesheet or itself\n   */\n  public StylesheetComposed getStylesheetComposed()\n  {\n\n    Stylesheet sheet = this;\n\n    while (!sheet.isAggregatedType())\n    {\n      sheet = sheet.getStylesheetParent();\n    }\n\n    return (StylesheetComposed) sheet;\n  }\n\n  /**\n   * Get the type of the node.  We'll pretend we're a Document.\n   *\n   * @return the type of the node: document node.\n   */\n  public short getNodeType()\n  {\n    return DTM.DOCUMENT_NODE;\n  }\n\n  /**\n   * Get an integer representation of the element type.\n   *\n   * @return An integer representation of the element, defined in the\n   *     Constants class.\n   * @see org.apache.xalan.templates.Constants\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_STYLESHEET;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The node name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_STYLESHEET_STRING;\n  }\n\n  /**\n   * Replace an \"xsl:template\" property.\n   * This is a hook for CompilingStylesheetHandler, to allow\n   * us to access a template, compile it, instantiate it,\n   * and replace the original with the compiled instance.\n   * ADDED 9/5/2000 to support compilation experiment\n   *\n   * @param v Compiled template to replace with\n   * @param i Index of template to be replaced\n   *\n   * @throws TransformerException\n   */\n  public void replaceTemplate(ElemTemplate v, int i) throws TransformerException\n  {\n\n    if (null == m_templates)\n      throw new ArrayIndexOutOfBoundsException();\n\n    replaceChild(v, (ElemTemplateElement)m_templates.elementAt(i));\n    m_templates.setElementAt(v, i);\n    v.setStylesheet(this);\n  }\n  \n    /**\n     * Call the children visitors.\n     * @param visitor The visitor whose appropriate method will be called.\n     */\n    protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n    {\n      int s = getImportCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tgetImport(j).callVisitors(visitor);\n      }\n   \n      s = getIncludeCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tgetInclude(j).callVisitors(visitor);\n      }\n\n      s = getOutputCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getOutput(j));\n      }\n\n\n      s = getAttributeSetCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tElemAttributeSet attrSet = getAttributeSet(j);\n        if (visitor.visitTopLevelInstruction(attrSet))\n        {\n          attrSet.callChildVisitors(visitor);\n        }\n      }\n\n      s = getDecimalFormatCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getDecimalFormat(j));\n      }\n\n\n      s = getKeyCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getKey(j));\n      }\n\n\n      s = getNamespaceAliasCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getNamespaceAlias(j));\n      }\n\n\n      s = getTemplateCount();\n      for (int j = 0; j < s; j++)\n      {\n        try\n        {\n          ElemTemplate template = getTemplate(j);\n          if (visitor.visitTopLevelInstruction(template))\n          {\n            template.callChildVisitors(visitor);\n          }\n        }\n        catch (TransformerException te)\n        {\n          throw new org.apache.xml.utils.WrappedRuntimeException(te);\n        }\n      }\n\n\n      s = getVariableOrParamCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tElemVariable var = getVariableOrParam(j);\n        if (visitor.visitTopLevelVariableOrParamDecl(var))\n        {\n          var.callChildVisitors(visitor);\n        }\n      }\n\n\n      s = getStripSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getStripSpace(j));\n      }\n\n      s = getPreserveSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getPreserveSpace(j));\n      }\n      \n      if(null != m_NonXslTopLevel)\n      {\n      \tjava.util.Enumeration enum1 = m_NonXslTopLevel.elements();\n      \twhile(enum1.hasMoreElements())\n      \t{\n      \t  ElemTemplateElement elem = (ElemTemplateElement)enum1.nextElement();\n          if (visitor.visitTopLevelInstruction(elem))\n          {\n            elem.callChildVisitors(visitor);\n          }\n      \t\t\n      \t}\n      }\n    }\n        \n          \n  /**\n   * Accept a visitor and call the appropriate method \n   * for this class.\n   * \n   * @param visitor The visitor whose appropriate method will be called.\n   * @return true if the children of the object should be visited.\n   */\n  protected boolean accept(XSLTVisitor visitor)\n  {\n  \treturn visitor.visitStylesheet(this);", "functions": [{"function_name": "getStylesheet", "code": "  public Stylesheet getStylesheet()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isAggregatedType", "code": "  public boolean isAggregatedType()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isRoot", "code": "  public boolean isRoot()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "readObject", "code": "  private void readObject(ObjectInputStream stream)\n          throws IOException, TransformerException\n  {\n\n    try\n    {\n      stream.defaultReadObject();\n    }\n    catch (ClassNotFoundException cnfe)\n    {\n      throw new TransformerException(cnfe);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "writeObject", "code": "  private void writeObject(ObjectOutputStream stream) throws IOException\n  {\n\n    stream.defaultWriteObject();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setXmlnsXsl", "code": "  public void setXmlnsXsl(String v)\n  {\n    m_XmlnsXsl = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXmlnsXsl", "code": "  public String getXmlnsXsl()\n  {\n    return m_XmlnsXsl;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExtensionElementPrefixes", "code": "  public void setExtensionElementPrefixes(StringVector v)\n  {\n    m_ExtensionElementURIs = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExtensionElementPrefix", "code": "  public String getExtensionElementPrefix(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_ExtensionElementURIs)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return m_ExtensionElementURIs.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExtensionElementPrefixCount", "code": "  public int getExtensionElementPrefixCount()\n  {\n    return (null != m_ExtensionElementURIs)\n           ? m_ExtensionElementURIs.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "containsExtensionElementURI", "code": "  public boolean containsExtensionElementURI(String uri)\n  {\n\n    if (null == m_ExtensionElementURIs)\n      return false;\n\n    return m_ExtensionElementURIs.contains(uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setExcludeResultPrefixes", "code": "  public void setExcludeResultPrefixes(StringVector v)\n  {\n    m_ExcludeResultPrefixs = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExcludeResultPrefix", "code": "  public String getExcludeResultPrefix(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_ExcludeResultPrefixs)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return m_ExcludeResultPrefixs.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExcludeResultPrefixCount", "code": "  public int getExcludeResultPrefixCount()\n  {\n    return (null != m_ExcludeResultPrefixs)\n           ? m_ExcludeResultPrefixs.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "containsExcludeResultPrefix", "code": "  public boolean containsExcludeResultPrefix(String prefix, String uri) \n  {\n\n    if (null == m_ExcludeResultPrefixs || uri == null )\n      return false;\n    \n    for (int i =0; i< m_ExcludeResultPrefixs.size(); i++)\n    {\n      if (uri.equals(getNamespaceForPrefix(m_ExcludeResultPrefixs.elementAt(i))))\n        return true;\n    }\n    \n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [3, 9], [2, 10], [7, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [2, 17], [13, 18], [14, 19], [15, 20], [16, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 3], [10, 2], [11, 7], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 2], [18, 13], [19, 14], [20, 15], [21, 16], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "setId", "code": "  public void setId(String v)\n  {\n    m_Id = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getId", "code": "  public String getId()\n  {\n    return m_Id;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVersion", "code": "  public void setVersion(String v)\n  {\n    m_Version = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVersion", "code": "  public String getVersion()\n  {\n    return m_Version;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setImport", "code": "  public void setImport(StylesheetComposed v)\n  {\n\n    if (null == m_imports)\n      m_imports = new Vector();\n\n    m_imports.addElement(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getImport", "code": "  public StylesheetComposed getImport(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_imports)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (StylesheetComposed) m_imports.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getImportCount", "code": "  public int getImportCount()\n  {\n    return (null != m_imports) ? m_imports.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setInclude", "code": "  public void setInclude(Stylesheet v)\n  {\n\n    if (null == m_includes)\n      m_includes = new Vector();\n\n    m_includes.addElement(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getInclude", "code": "  public Stylesheet getInclude(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_includes)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (Stylesheet) m_includes.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getIncludeCount", "code": "  public int getIncludeCount()\n  {\n    return (null != m_includes) ? m_includes.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setDecimalFormat", "code": "  public void setDecimalFormat(DecimalFormatProperties edf)\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      m_DecimalFormatDeclarations = new Stack();\n\n    m_DecimalFormatDeclarations.push(edf);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDecimalFormat", "code": "  public DecimalFormatProperties getDecimalFormat(QName name)\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      return null;\n\n    int n = getDecimalFormatCount();\n\n    for (int i = (n - 1); i >= 0; i++)\n    {\n      DecimalFormatProperties dfp = getDecimalFormat(i);\n\n      if (dfp.getName().equals(name))\n        return dfp;\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [2, 10], [2, 11], [7, 12], [3, 13], [8, 14], [9, 15], [10, 16], [10, 17], [2, 18], [17, 19], [11, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 2], [11, 2], [12, 7], [13, 3], [14, 8], [15, 9], [16, 10], [17, 10], [18, 2], [19, 17], [20, 11], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getDecimalFormat", "code": "  public DecimalFormatProperties getDecimalFormat(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (DecimalFormatProperties) m_DecimalFormatDeclarations.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDecimalFormatCount", "code": "  public int getDecimalFormatCount()\n  {\n    return (null != m_DecimalFormatDeclarations)\n           ? m_DecimalFormatDeclarations.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setStripSpaces", "code": "  public void setStripSpaces(WhiteSpaceInfo wsi)\n  {\n\n    if (null == m_whitespaceStrippingElements)\n    {\n      m_whitespaceStrippingElements = new Vector();\n    }\n\n    m_whitespaceStrippingElements.addElement(wsi);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getStripSpace", "code": "  public WhiteSpaceInfo getStripSpace(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_whitespaceStrippingElements)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (WhiteSpaceInfo) m_whitespaceStrippingElements.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getStripSpaceCount", "code": "  public int getStripSpaceCount()\n  {\n    return (null != m_whitespaceStrippingElements)\n           ? m_whitespaceStrippingElements.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setPreserveSpaces", "code": "  public void setPreserveSpaces(WhiteSpaceInfo wsi)\n  {\n\n    if (null == m_whitespacePreservingElements)\n    {\n      m_whitespacePreservingElements = new Vector();\n    }\n\n    m_whitespacePreservingElements.addElement(wsi);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getPreserveSpace", "code": "  public WhiteSpaceInfo getPreserveSpace(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_whitespacePreservingElements)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (WhiteSpaceInfo) m_whitespacePreservingElements.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getPreserveSpaceCount", "code": "  public int getPreserveSpaceCount()\n  {\n    return (null != m_whitespacePreservingElements)\n           ? m_whitespacePreservingElements.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOutput", "code": "  public void setOutput(OutputProperties v)\n  {\n    if (null == m_output)\n    {\n      m_output = new Vector();\n    }\n\n    m_output.addElement(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getOutput", "code": "  public OutputProperties getOutput(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_output)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (OutputProperties) m_output.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getOutputCount", "code": "  public int getOutputCount()\n  {\n    return (null != m_output)\n           ? m_output.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setKey", "code": "  public void setKey(KeyDeclaration v)\n  {\n\n    if (null == m_keyDeclarations)\n      m_keyDeclarations = new Vector();\n\n    m_keyDeclarations.addElement(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getKey", "code": "  public KeyDeclaration getKey(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_keyDeclarations)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (KeyDeclaration) m_keyDeclarations.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getKeyCount", "code": "  public int getKeyCount()\n  {\n    return (null != m_keyDeclarations) ? m_keyDeclarations.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setAttributeSet", "code": "  public void setAttributeSet(ElemAttributeSet attrSet)\n  {\n\n    if (null == m_attributeSets)\n    {\n      m_attributeSets = new Vector();\n    }\n\n    m_attributeSets.addElement(attrSet);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getAttributeSet", "code": "  public ElemAttributeSet getAttributeSet(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_attributeSets)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemAttributeSet) m_attributeSets.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getAttributeSetCount", "code": "  public int getAttributeSetCount()\n  {\n    return (null != m_attributeSets) ? m_attributeSets.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setVariable", "code": "  public void setVariable(ElemVariable v)\n  {\n\n    if (null == m_topLevelVariables)\n      m_topLevelVariables = new Vector();\n\n    m_topLevelVariables.addElement(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getVariableOrParam", "code": "  public ElemVariable getVariableOrParam(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = (ElemVariable) getVariableOrParam(i);\n\n        if (var.getName().equals(qname))\n          return var;\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [7, 12], [10, 13], [10, 14], [6, 15], [14, 16], [11, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 7], [13, 10], [14, 10], [15, 6], [16, 14], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getVariable", "code": "  public ElemVariable getVariable(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = getVariableOrParam(i);\n        if((var.getXSLToken() == Constants.ELEMNAME_VARIABLE) &&\n           (var.getName().equals(qname)))\n          return var;\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [7, 12], [10, 13], [10, 14], [6, 15], [14, 16], [14, 17], [11, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 7], [13, 10], [14, 10], [15, 6], [16, 14], [17, 14], [18, 11], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getVariableOrParam", "code": "  public ElemVariable getVariableOrParam(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_topLevelVariables)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemVariable) m_topLevelVariables.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getVariableOrParamCount", "code": "  public int getVariableOrParamCount()\n  {\n    return (null != m_topLevelVariables) ? m_topLevelVariables.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setParam", "code": "  public void setParam(ElemParam v)\n  {\n    setVariable(v);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParam", "code": "  public ElemParam getParam(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = getVariableOrParam(i);\n        if((var.getXSLToken() == Constants.ELEMNAME_PARAMVARIABLE) &&\n           (var.getName().equals(qname)))\n          return (ElemParam)var;\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [7, 12], [10, 13], [10, 14], [6, 15], [14, 16], [14, 17], [11, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 7], [13, 10], [14, 10], [15, 6], [16, 14], [17, 14], [18, 11], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setTemplate", "code": "  public void setTemplate(ElemTemplate v)\n  {\n\n    if (null == m_templates)\n      m_templates = new Vector();\n\n    m_templates.addElement(v);\n    v.setStylesheet(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getTemplate", "code": "  public ElemTemplate getTemplate(int i) throws TransformerException\n  {\n\n    if (null == m_templates)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemTemplate) m_templates.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getTemplateCount", "code": "  public int getTemplateCount()\n  {\n    return (null != m_templates) ? m_templates.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setNamespaceAlias", "code": "  public void setNamespaceAlias(NamespaceAlias na)\n  {\n\n    if (m_prefix_aliases == null)\n      m_prefix_aliases = new Vector();\n\n    m_prefix_aliases.addElement(na);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNamespaceAlias", "code": "  public NamespaceAlias getNamespaceAlias(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_prefix_aliases)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (NamespaceAlias) m_prefix_aliases.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNamespaceAliasCount", "code": "  public int getNamespaceAliasCount()\n  {\n    return (null != m_prefix_aliases) ? m_prefix_aliases.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setNonXslTopLevel", "code": "  public void setNonXslTopLevel(QName name, Object obj)\n  {\n\n    if (null == m_NonXslTopLevel)\n      m_NonXslTopLevel = new Hashtable();\n\n    m_NonXslTopLevel.put(name, obj);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNonXslTopLevel", "code": "  public Object getNonXslTopLevel(QName name)\n  {\n    return (null != m_NonXslTopLevel) ? m_NonXslTopLevel.get(name) : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getHref", "code": "  public String getHref()\n  {\n    return m_href;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHref", "code": "  public void setHref(String baseIdent)\n  {\n    m_href = baseIdent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLocaterInfo", "code": "  public void setLocaterInfo(SourceLocator locator)\n  {\n\n    if (null != locator)\n    {\n      m_publicId = locator.getPublicId();\n      m_systemId = locator.getSystemId();\n\n      if (null != m_systemId)\n      {\n        try\n        {\n          m_href = SystemIDResolver.getAbsoluteURI(m_systemId, null);\n        }\n        catch (TransformerException se)\n        {\n\n        }\n      }\n\n      super.setLocaterInfo(locator);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [1, 8], [4, 9], [6, 10], [7, 11], [8, 12], [9, 13], [9, 14], [14, 15], [15, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 1], [9, 4], [10, 6], [11, 7], [12, 8], [13, 9], [14, 9], [15, 14], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getStylesheetRoot", "code": "  public StylesheetRoot getStylesheetRoot()\n  {\n    return m_stylesheetRoot;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStylesheetRoot", "code": "  public void setStylesheetRoot(StylesheetRoot v)\n  {\n    m_stylesheetRoot = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheetParent", "code": "  public Stylesheet getStylesheetParent()\n  {\n    return m_stylesheetParent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStylesheetParent", "code": "  public void setStylesheetParent(Stylesheet v)\n  {\n    m_stylesheetParent = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheetComposed", "code": "  public StylesheetComposed getStylesheetComposed()\n  {\n\n    Stylesheet sheet = this;\n\n    while (!sheet.isAggregatedType())\n    {\n      sheet = sheet.getStylesheetParent();\n    }\n\n    return (StylesheetComposed) sheet;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNodeType", "code": "  public short getNodeType()\n  {\n    return DTM.DOCUMENT_NODE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_STYLESHEET;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_STYLESHEET_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "replaceTemplate", "code": "  public void replaceTemplate(ElemTemplate v, int i) throws TransformerException\n  {\n\n    if (null == m_templates)\n      throw new ArrayIndexOutOfBoundsException();\n\n    replaceChild(v, (ElemTemplateElement)m_templates.elementAt(i));\n    m_templates.setElementAt(v, i);\n    v.setStylesheet(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "callChildVisitors", "code": "    protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n    {\n      int s = getImportCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tgetImport(j).callVisitors(visitor);\n      }\n   \n      s = getIncludeCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tgetInclude(j).callVisitors(visitor);\n      }\n\n      s = getOutputCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getOutput(j));\n      }\n\n\n      s = getAttributeSetCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tElemAttributeSet attrSet = getAttributeSet(j);\n        if (visitor.visitTopLevelInstruction(attrSet))\n        {\n          attrSet.callChildVisitors(visitor);\n        }\n      }\n\n      s = getDecimalFormatCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getDecimalFormat(j));\n      }\n\n\n      s = getKeyCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getKey(j));\n      }\n\n\n      s = getNamespaceAliasCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getNamespaceAlias(j));\n      }\n\n\n      s = getTemplateCount();\n      for (int j = 0; j < s; j++)\n      {\n        try\n        {\n          ElemTemplate template = getTemplate(j);\n          if (visitor.visitTopLevelInstruction(template))\n          {\n            template.callChildVisitors(visitor);\n          }\n        }\n        catch (TransformerException te)\n        {\n          throw new org.apache.xml.utils.WrappedRuntimeException(te);\n        }\n      }\n\n\n      s = getVariableOrParamCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tElemVariable var = getVariableOrParam(j);\n        if (visitor.visitTopLevelVariableOrParamDecl(var))\n        {\n          var.callChildVisitors(visitor);\n        }\n      }\n\n\n      s = getStripSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getStripSpace(j));\n      }\n\n      s = getPreserveSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getPreserveSpace(j));\n      }\n      \n      if(null != m_NonXslTopLevel)\n      {\n      \tjava.util.Enumeration enum1 = m_NonXslTopLevel.elements();\n      \twhile(enum1.hasMoreElements())\n      \t{\n      \t  ElemTemplateElement elem = (ElemTemplateElement)enum1.nextElement();\n          if (visitor.visitTopLevelInstruction(elem))\n          {\n            elem.callChildVisitors(visitor);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "TRY", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [0, 18], [3, 19], [0, 20], [4, 21], [0, 22], [5, 23], [0, 24], [6, 25], [0, 26], [7, 27], [0, 28], [8, 29], [0, 30], [9, 31], [0, 32], [10, 33], [0, 34], [11, 35], [0, 36], [12, 37], [1, 38], [1, 39], [16, 40], [18, 41], [20, 42], [4, 43], [4, 44], [22, 45], [5, 46], [24, 47], [26, 48], [28, 49], [30, 50], [9, 51], [9, 52], [32, 53], [34, 54], [36, 55], [13, 56], [38, 57], [2, 58], [2, 59], [3, 60], [3, 61], [43, 62], [4, 63], [46, 64], [46, 65], [46, 66], [5, 67], [6, 68], [6, 69], [7, 70], [7, 71], [8, 72], [8, 73], [51, 74], [9, 75], [10, 76], [10, 77], [11, 78], [11, 79], [12, 80], [12, 81], [38, 82], [38, 83], [39, 84], [58, 85], [60, 86], [44, 87], [64, 88], [65, 89], [68, 90], [70, 91], [72, 92], [52, 93], [76, 94], [78, 95], [80, 96], [82, 97], [43, 98], [88, 99], [66, 100], [51, 101], [65, 102], [82, 103], [83, 104], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 0], [19, 3], [20, 0], [21, 4], [22, 0], [23, 5], [24, 0], [25, 6], [26, 0], [27, 7], [28, 0], [29, 8], [30, 0], [31, 9], [32, 0], [33, 10], [34, 0], [35, 11], [36, 0], [37, 12], [38, 1], [39, 1], [40, 16], [41, 18], [42, 20], [43, 4], [44, 4], [45, 22], [46, 5], [47, 24], [48, 26], [49, 28], [50, 30], [51, 9], [52, 9], [53, 32], [54, 34], [55, 36], [56, 13], [57, 38], [58, 2], [59, 2], [60, 3], [61, 3], [62, 43], [63, 4], [64, 46], [65, 46], [66, 46], [67, 5], [68, 6], [69, 6], [70, 7], [71, 7], [72, 8], [73, 8], [74, 51], [75, 9], [76, 10], [77, 10], [78, 11], [79, 11], [80, 12], [81, 12], [82, 38], [83, 38], [84, 39], [85, 58], [86, 60], [87, 44], [88, 64], [89, 65], [90, 68], [91, 70], [92, 72], [93, 52], [94, 76], [95, 78], [96, 80], [97, 82], [98, 43], [99, 88], [100, 66], [101, 51], [102, 65], [103, 82], [104, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104]]}, {"function_name": "accept", "code": "  protected boolean accept(XSLTVisitor visitor)\n  {\n  \treturn visitor.visitStylesheet(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Stylesheet", "code": "  public Stylesheet(Stylesheet parent)\n  {\n\n    if (null != parent)\n    {\n      m_stylesheetParent = parent;\n      m_stylesheetRoot = parent.getStylesheetRoot();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "xalan-2.6-7689", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/utils/synthetic/reflection/Method.java", "language": "java", "name": "org.apache.xml.utils.synthetic.reflection.Method", "code": "public class Method extends EntryPoint implements Member\n{\n\n  /**\n   * Insert the method's description here.\n   * <p>\n   * Creation date: (12-27-99 2:31:39 PM)\n   * @param realConstructor java.lang.reflect.Constructor\n   *\n   * @param name\n   * @param declaringclass\n   */\n  public Method(String name,\n                org.apache.xml.utils.synthetic.Class declaringclass)\n  {\n\n    super(declaringclass);\n\n    this.name = name;\n  }\n\n  /**\n   * Insert the method's description here.\n   * <p>\n   * Creation date: (12-27-99 2:31:39 PM)\n   * @param realConstructor java.lang.reflect.Constructor\n   *\n   * @param ctor\n   * @param declaringclass\n   */\n  public Method(java.lang.reflect.Method ctor,\n                org.apache.xml.utils.synthetic.Class declaringclass)\n  {\n    super(ctor, declaringclass);\n  }\n\n  /**\n   * Insert the method's description here.\n   * <p>\n   * Creation date: (12-27-99 2:31:39 PM)\n   * @param realConstructor java.lang.reflect.Constructor\n   *\n   * @param realmethod\n   */\n  public Method(java.lang.reflect.Method realmethod)\n  {\n    super(realmethod);\n  }\n\n  /**\n   * Returns a hashcode for this Method. The hashcode\n   * is computed as the exclusive-or of the hashcodes\n   * for the underlying method's declaring class name\n   * and the method's name.\n   *\n   */\n\n  /**\n   * Returns a hashcode for this Constructor. The\n   * hashcode for a Method is the hashcode for the\n   * underlying constructor's declaring class name,\n   * XORed with the name of this method.\n   */\n  public int hashCode()\n  {\n    return getDeclaringClass().getName().hashCode() ^ getName().hashCode();\n  }\n\n  /**\n   * Invokes the underlying method represented by this\n   * Method object, on the specified object with the\n   * specified parameters. Individual parameters are\n   * automatically unwrapped to match primitive\n   * formal parameters, and both primitive and\n   * reference parameters are subject to widening\n   * conversions as necessary. The value returned by\n   * the underlying method is automatically wrapped\n   * in an object if it has a primitive type.\n   *\n   * Method invocation proceeds with the following\n   * steps, in order:\n   *\n   * If the underlying method is static, then the\n   * specified object argument is ignored. It may be\n   * null.\n   *\n   * Otherwise, the method is an instance method. If\n   * the specified object argument is null, the\n   * invocation throws a NullPointerException.\n   * Otherwise, if the specified object argument is not\n   * an instance of the class or interface declaring the\n   * underlying method, the invocation throws an\n   * IllegalArgumentException.\n   *\n   * If this Method object enforces Java language access\n   * control and the underlying method is inaccessible,\n   * the invocation throws an IllegalAccessException.\n   *\n   * If the number of actual parameters supplied via\n   * args is different from the number of formal\n   * parameters required by the underlying method, the\n   * invocation throws an IllegalArgumentException.\n   *\n   * For each actual parameter in the supplied args\n   * array:\n   *\n   * If the corresponding formal parameter has a\n   * primitive type, an unwrapping conversion is\n   * attempted to convert the object value to a value of\n   * a primitive type. If this attempt fails, the\n   * invocation throws an IllegalArgumentException.\n   *\n   * If, after possible unwrapping, the parameter value\n   * cannot be converted to the corresponding formal\n   * parameter type by an identity or widening\n   * conversion, the invocation throws an\n   * IllegalArgumentException.\n   *\n   * If the underlying method is an instance method, it\n   * is invoked using dynamic method lookup as\n   * documented in The Java Language Specification,\n   * section 15.11.4.4; in particular, overriding based\n   * on the runtime type of the target object will occur.\n   *\n   * If the underlying method is static, it is invoked as\n   * exactly the method on the declaring class.\n   *\n   * Control transfers to the underlying method. If the\n   * method completes abruptly by throwing an\n   * exception, the exception is placed in an\n   * InvocationTargetException and thrown in turn to\n   * the caller of invoke.\n   *\n   * If the method completes normally, the value it\n   * returns is returned to the caller of invoke; if the\n   * value has a primitive type, it is first appropriately\n   * wrapped in an object. If the underlying method\n   * return type is void, the invocation returns null.\n   *\n   * Throws: IllegalAccessException\n   * if the underlying method is inaccessible.\n   * Throws: IllegalArgumentException\n   * if the number of actual and formal\n   * parameters differ, or if an unwrapping\n   * conversion fails.\n   * Throws: InvocationTargetException\n   * if the underlying method throws an\n   * exception.\n   * Throws: NullPointerException\n   * if the specified object is null.\n   *\n   * @param obj\n   * @param args\n   *\n   *\n   * @throws IllegalAccessException\n   * @throws IllegalArgumentException\n   * @throws java.lang.reflect.InvocationTargetException\n   */\n  public Object invoke(Object obj, Object args[])\n          throws IllegalAccessException, IllegalArgumentException,\n                 java.lang.reflect.InvocationTargetException\n  {\n\n    if (realep != null)\n      return ((java.lang.reflect.Method) realep).invoke(obj, args);\n    else\n      throw new IllegalAccessException(\n        \"Un-reified org.apache.xml.utils.synthetic.Class doesn't yet support invocation\");\n  }\n\n  /**\n   * Method setReturnType \n   *\n   *\n   * @param returntype\n   *\n   * @throws SynthesisException\n   */\n  public void setReturnType(org.apache.xml.utils.synthetic.Class returntype)\n          throws SynthesisException\n  {\n\n    if (realep != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    this.returntype = returntype;", "functions": [{"function_name": "hashCode", "code": "  public int hashCode()\n  {\n    return getDeclaringClass().getName().hashCode() ^ getName().hashCode();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "invoke", "code": "  public Object invoke(Object obj, Object args[])\n          throws IllegalAccessException, IllegalArgumentException,\n                 java.lang.reflect.InvocationTargetException\n  {\n\n    if (realep != null)\n      return ((java.lang.reflect.Method) realep).invoke(obj, args);\n    else\n      throw new IllegalAccessException(\n        \"Un-reified org.apache.xml.utils.synthetic.Class doesn't yet support invocation\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setReturnType", "code": "  public void setReturnType(org.apache.xml.utils.synthetic.Class returntype)\n          throws SynthesisException\n  {\n\n    if (realep != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    this.returntype = returntype;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "Method", "code": "  public Method(String name,\n                org.apache.xml.utils.synthetic.Class declaringclass)\n  {\n\n    super(declaringclass);\n\n    this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Method", "code": "  public Method(java.lang.reflect.Method ctor,\n                org.apache.xml.utils.synthetic.Class declaringclass)\n  {\n    super(ctor, declaringclass);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Method", "code": "  public Method(java.lang.reflect.Method realmethod)\n  {\n    super(realmethod);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-1034", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/ClasspathUtils.java", "language": "java", "name": "org.apache.tools.ant.util.ClasspathUtils", "code": "public class ClasspathUtils {\n\n    /**\n     * Name of the magic property that controls classloader reuse in Ant 1.4.\n     */\n    public static final String REUSE_LOADER_REF = MagicNames.REFID_CLASSPATH_REUSE_LOADER;\n\n    /**\n     * Convenience overloaded version of {@link\n     * #getClassLoaderForPath(Project, Reference, boolean)}.\n     *\n     * <p>Assumes the logical 'false' for the reverseLoader.</p>\n     *\n     * @param p the project\n     * @param ref the reference\n     * @return The class loader\n     */\n    public static ClassLoader getClassLoaderForPath(\n        Project p, Reference ref) {\n\n        return getClassLoaderForPath(p, ref, false);\n    }\n\n    /**\n     * Convenience overloaded version of {@link #getClassLoaderForPath(Project, Path,\n     * String, boolean)}.\n     *\n     * <p>Delegates to the other one after extracting the referenced\n     * Path from the Project. This checks also that the passed\n     * Reference is pointing to a Path all right.</p>\n     * @param p current Ant project\n     * @param ref Reference to Path structure\n     * @param reverseLoader if set to true this new loader will take\n     * precedence over its parent (which is contra the regular\n     * classloader behaviour)\n     * @return The class loader\n     */\n    public static ClassLoader getClassLoaderForPath(\n        Project p, Reference ref, boolean reverseLoader) {\n\n        String pathId = ref.getRefId();\n        Object path = p.getReference(pathId);\n        if (!(path instanceof Path)) {\n            throw new BuildException(\n                \"The specified classpathref \"\n                    + pathId\n                    + \" does not reference a Path.\");\n        }\n        String loaderId = MagicNames.REFID_CLASSPATH_LOADER_PREFIX + pathId;\n        return getClassLoaderForPath(p, (Path) path, loaderId, reverseLoader);\n    }\n\n    /**\n     * Convenience overloaded version of {@link\n     * #getClassLoaderForPath(Project, Path, String, boolean)}.\n     *\n     * <p>Assumes the logical 'false' for the reverseLoader.</p>\n     *\n     * @param p current Ant project\n     * @param path the path\n     * @param loaderId the loader id string\n     * @return The class loader\n     */\n    public static ClassLoader getClassLoaderForPath(\n        Project p, Path path, String loaderId) {\n\n        return getClassLoaderForPath(p, path, loaderId, false);\n    }\n\n    /**\n     * Convenience overloaded version of {@link\n     * #getClassLoaderForPath(Project, Path, String, boolean, boolean)}.\n     *\n     * <p>Sets value for 'reuseLoader' to true if the magic property\n     * has been set.</p>\n     *\n     * @param p the project\n     * @param path the path\n     * @param loaderId the loader id string\n     * @param reverseLoader if set to true this new loader will take\n     * precedence over its parent (which is contra the regular\n     * classloader behaviour)\n     * @return The class loader\n     */\n    public static ClassLoader getClassLoaderForPath(\n        Project p, Path path, String loaderId, boolean reverseLoader) {\n        return getClassLoaderForPath(p, path, loaderId, reverseLoader,\n                                     isMagicPropertySet(p));\n    }\n\n    /**\n     * Gets a classloader that loads classes from the classpath\n     * defined in the path argument.\n     *\n     * <p>Based on the setting of the magic property\n     * 'ant.reuse.loader' this will try to reuse the previously\n     * created loader with that id, and of course store it there upon\n     * creation.</p>\n     * @param p             Ant Project where the handled components are living in.\n     * @param path          Path object to be used as classpath for this classloader\n     * @param loaderId      identification for this Loader,\n     * @param reverseLoader if set to true this new loader will take\n     *                      precedence over its parent (which is contra the regular\n     *                      classloader behaviour)\n     * @param reuseLoader   if true reuse the loader if it is found\n     * @return              ClassLoader that uses the Path as its classpath.\n     */\n    public static ClassLoader getClassLoaderForPath(\n        Project p, Path path, String loaderId, boolean reverseLoader,\n        boolean reuseLoader) {\n\n        ClassLoader cl = null;\n\n        if (loaderId != null && reuseLoader) {\n            Object reusedLoader = p.getReference(loaderId);\n            if (reusedLoader != null\n                && !(reusedLoader instanceof ClassLoader)) {\n                throw new BuildException(\"The specified loader id \" + loaderId\n                    + \" does not reference a class loader\");\n            }\n            cl = (ClassLoader) reusedLoader;\n        }\n        if (cl == null) {\n            cl = getUniqueClassLoaderForPath(p, path, reverseLoader);\n            if (loaderId != null && reuseLoader) {\n                p.addReference(loaderId, cl);\n            }\n        }\n        return cl;\n    }\n\n    /**\n     * Gets a fresh, different, previously unused classloader that uses the\n     * passed path as its classpath.\n     *\n     * <p>This method completely ignores the ant.reuse.loader magic\n     * property and should be used with caution.</p>\n     * @param p             Ant Project where the handled components are living in.\n     * @param path          the classpath for this loader\n     * @param reverseLoader if set to true this new loader will take\n     *                      precedence over its parent (which is contra the regular\n     *                      classloader behaviour)\n     * @return The fresh, different, previously unused class loader.\n     */\n    public static ClassLoader getUniqueClassLoaderForPath(\n        Project p,\n        Path path,\n        boolean reverseLoader) {\n        AntClassLoader acl = p.createClassLoader(path);\n        if (reverseLoader) {\n            acl.setParentFirst(false);\n            acl.addJavaLibraries();\n        }\n        return acl;\n    }\n\n    /**\n     * Creates a fresh object instance of the specified classname.\n     *\n     * <p> This uses the userDefinedLoader to load the specified class,\n     * and then makes an instance using the default no-argument constructor.\n     * </p>\n     *\n     * @param className the full qualified class name to load.\n     * @param userDefinedLoader the classloader to use.\n     * @return The fresh object instance\n     * @throws BuildException when loading or instantiation failed.\n     */\n    public static Object newInstance(\n            String className,\n            ClassLoader userDefinedLoader) {\n        return newInstance(className, userDefinedLoader, Object.class);\n    }\n\n    /**\n     * Creates a fresh object instance of the specified classname.\n     *\n     * <p> This uses the userDefinedLoader to load the specified class,\n     * and then makes an instance using the default no-argument constructor.\n     * </p>\n     *\n     * @param className the full qualified class name to load.\n     * @param userDefinedLoader the classloader to use.\n     * @param expectedType the Class that the result should be assignment\n     * compatible with. (No ClassCastException will be thrown in case\n     * the result of this method is casted to the expectedType)\n     * @return The fresh object instance\n     * @throws BuildException when loading or instantiation failed.\n     * @since Ant 1.7\n     */\n    public static Object newInstance(\n        String className,\n        ClassLoader userDefinedLoader,\n        Class expectedType) {\n        try {\n            Class clazz = Class.forName(className, true, userDefinedLoader);\n            Object o = clazz.newInstance();\n            if (!expectedType.isInstance(o)) {\n                throw new BuildException(\n                    \"Class of unexpected Type: \"\n                        + className\n                        + \" expected :\"\n                        + expectedType);\n            }\n            return o;\n        } catch (ClassNotFoundException e) {\n            throw new BuildException(\n                \"Class not found: \"\n                    + className,\n                e);\n        } catch (InstantiationException e) {\n            throw new BuildException(\n                \"Could not instantiate \"\n                    + className\n                    + \". Specified class should have a no \"\n                    + \"argument constructor.\",\n                e);\n        } catch (IllegalAccessException e) {\n            throw new BuildException(\n                \"Could not instantiate \"\n                    + className\n                    + \". Specified class should have a \"\n                    + \"public constructor.\",\n                e);\n        } catch (LinkageError e) {\n            throw new BuildException(\n                \"Class \"\n                    + className\n                    + \" could not be loaded because of an invalid dependency.\",\n                e);\n        }\n    }\n\n    /**\n     * Obtains a delegate that helps out with classic classpath configuration.\n     *\n     * @param component your projectComponent that needs the assistence\n     * @return the helper, delegate.\n     * @see ClasspathUtils.Delegate\n     */\n    public static Delegate getDelegate(ProjectComponent component) {\n        return new Delegate(component);\n    }\n\n    /**\n     * Checks for the magic property that enables class loader reuse\n     * for <taskdef> and <typedef> in Ant 1.5 and earlier.\n     */\n    private static boolean isMagicPropertySet(Project p) {\n        return p.getProperty(REUSE_LOADER_REF) != null;\n    }\n\n    /**\n     * Delegate that helps out any specific ProjectComponent that needs\n     * dynamic classloading.\n     *\n     * <p>Ant ProjectComponents that need a to be able to dynamically load\n     * Classes and instantiate them often expose the following ant syntax\n     * sugar: </p>\n     *\n     * <ul><li> nested &lt;classpath&gt; </li>\n     * <li> attribute @classpathref </li>\n     * <li> attribute @classname </li></ul>\n     *\n     * <p> This class functions as a delegate handling the configuration\n     * issues for this recurring pattern.  Its usage pattern, as the name\n     * suggests, is delegation rather than inheritance. </p>\n     *\n     * @since Ant 1.6\n     */\n    public static class Delegate {\n        private final ProjectComponent component;\n        private Path classpath;\n        private String classpathId;\n        private String className;\n        private String loaderId;\n        private boolean reverseLoader = false;\n\n        /**\n         * Construct a Delegate\n         * @param component the ProjectComponent this delegate is for.\n         */\n        Delegate(ProjectComponent component) {\n            this.component = component;\n        }\n\n        /**\n         * This method is a Delegate method handling the @classpath attribute.\n         *\n         * <p>This attribute can set a path to add to the classpath.</p>\n         *\n         * @param classpath the path to use for the classpath.\n         */\n        public void setClasspath(Path classpath) {\n            if (this.classpath == null) {\n                this.classpath = classpath;\n            } else {\n                this.classpath.append(classpath);\n            }\n        }\n\n        /**\n         * Delegate method handling the &lt;classpath&gt; tag.\n         *\n         * <p>This nested path-like structure can set a path to add to the\n         * classpath.</p>\n         *\n         * @return the created path.\n         */\n        public Path createClasspath() {\n            if (this.classpath == null) {\n                this.classpath = new Path(component.getProject());\n            }\n            return this.classpath.createPath();\n        }\n\n        /**\n         * Delegate method handling the @classname attribute.\n         *\n         * <p>This attribute sets the full qualified class name of the class\n         * to load and instantiate.</p>\n         *\n         * @param fcqn the name of the class to load.\n         */\n        public void setClassname(String fcqn) {\n            this.className = fcqn;\n        }\n\n        /**\n         * Delegate method handling the @classpathref attribute.\n         *\n         * <p>This attribute can add a referenced path-like structure to the\n         * classpath.</p>\n         *\n         * @param r the reference to the classpath.\n         */\n        public void setClasspathref(Reference r) {\n            this.classpathId = r.getRefId();\n            createClasspath().setRefid(r);\n        }\n\n        /**\n         * Delegate method handling the @reverseLoader attribute.\n         *\n         * <p>This attribute can set a boolean indicating that the used\n         * classloader should NOT follow the classical parent-first scheme.\n         * </p>\n         *\n         * <p>By default this is supposed to be false.</p>\n         *\n         * <p>Caution: this behaviour is contradictory to the normal way\n         * classloaders work.  Do not let your ProjectComponent use it if\n         * you are not really sure.</p>\n         *\n         * @param reverseLoader if true reverse the order of looking up a class.\n         */\n        public void setReverseLoader(boolean reverseLoader) {\n            this.reverseLoader = reverseLoader;\n        }\n\n        /**\n         * Sets the loaderRef.\n         * @param r the reference to the loader.\n         */\n        public void setLoaderRef(Reference r) {\n            this.loaderId = r.getRefId();\n        }\n\n\n        /**\n         * Finds or creates the classloader for this object.\n         * @return The class loader.\n         */\n        public ClassLoader getClassLoader() {\n            return getClassLoaderForPath(\n                    getContextProject(),\n                    this.classpath,\n                    getClassLoadId(),\n                    this.reverseLoader,\n                    loaderId != null || isMagicPropertySet(getContextProject()));\n        }\n\n        /**\n         * The project of the ProjectComponent we are working for.\n         */\n        private Project getContextProject() {\n            return this.component.getProject();\n        }\n\n        /**\n         * Computes the loaderId based on the configuration of the component.\n         * @return a loader identifier.\n         */\n        public String getClassLoadId() {\n            return this.loaderId == null && this.classpathId != null\n                ? MagicNames.REFID_CLASSPATH_LOADER_PREFIX + this.classpathId\n                : this.loaderId;\n        }\n\n        /**\n         * Helper method obtaining a fresh instance of the class specified\n         * in the @classname and using the specified classpath.\n         *\n         * @return the fresh instantiated object.\n         */\n        public Object newInstance() {\n            return ClasspathUtils.newInstance(this.className, getClassLoader());\n        }\n\n        /**\n         * The classpath.\n         * @return the classpath.\n         */\n        public Path getClasspath() {\n            return classpath;\n        }\n\n        /**\n         * Get the reverseLoader setting.\n         * @return true if looking up in reverse order.\n         */\n        public boolean isReverseLoader() {\n            return reverseLoader;", "functions": [{"function_name": "getClassLoaderForPath", "code": "    public static ClassLoader getClassLoaderForPath(\n        Project p, Reference ref) {\n\n        return getClassLoaderForPath(p, ref, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getClassLoaderForPath", "code": "    public static ClassLoader getClassLoaderForPath(\n        Project p, Reference ref, boolean reverseLoader) {\n\n        String pathId = ref.getRefId();\n        Object path = p.getReference(pathId);\n        if (!(path instanceof Path)) {\n            throw new BuildException(\n                \"The specified classpathref \"\n                    + pathId\n                    + \" does not reference a Path.\");\n        }\n        String loaderId = MagicNames.REFID_CLASSPATH_LOADER_PREFIX + pathId;\n        return getClassLoaderForPath(p, (Path) path, loaderId, reverseLoader);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [2, 11], [3, 12], [4, 13], [5, 14], [12, 15], [15, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 2], [12, 3], [13, 4], [14, 5], [15, 12], [16, 15], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getClassLoaderForPath", "code": "    public static ClassLoader getClassLoaderForPath(\n        Project p, Path path, String loaderId) {\n\n        return getClassLoaderForPath(p, path, loaderId, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getClassLoaderForPath", "code": "    public static ClassLoader getClassLoaderForPath(\n        Project p, Path path, String loaderId, boolean reverseLoader) {\n        return getClassLoaderForPath(p, path, loaderId, reverseLoader,\n                                     isMagicPropertySet(p));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getClassLoaderForPath", "code": "    public static ClassLoader getClassLoaderForPath(\n        Project p, Path path, String loaderId, boolean reverseLoader,\n        boolean reuseLoader) {\n\n        ClassLoader cl = null;\n\n        if (loaderId != null && reuseLoader) {\n            Object reusedLoader = p.getReference(loaderId);\n            if (reusedLoader != null\n                && !(reusedLoader instanceof ClassLoader)) {\n                throw new BuildException(\"The specified loader id \" + loaderId\n                    + \" does not reference a class loader\");\n            }\n            cl = (ClassLoader) reusedLoader;\n        }\n        if (cl == null) {\n            cl = getUniqueClassLoaderForPath(p, path, reverseLoader);\n            if (loaderId != null && reuseLoader) {\n                p.addReference(loaderId, cl);\n            }\n        }\n        return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [2, 12], [10, 13], [3, 14], [3, 15], [11, 16], [4, 17], [12, 18], [2, 19], [3, 20], [14, 21], [16, 22], [18, 23], [19, 24], [14, 25], [21, 26], [21, 27], [15, 28], [12, 29], [23, 30], [25, 31], [27, 32], [31, 33], [33, 34], [33, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 2], [13, 10], [14, 3], [15, 3], [16, 11], [17, 4], [18, 12], [19, 2], [20, 3], [21, 14], [22, 16], [23, 18], [24, 19], [25, 14], [26, 21], [27, 21], [28, 15], [29, 12], [30, 23], [31, 25], [32, 27], [33, 31], [34, 33], [35, 33], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getUniqueClassLoaderForPath", "code": "    public static ClassLoader getUniqueClassLoaderForPath(\n        Project p,\n        Path path,\n        boolean reverseLoader) {\n        AntClassLoader acl = p.createClassLoader(path);\n        if (reverseLoader) {\n            acl.setParentFirst(false);\n            acl.addJavaLibraries();\n        }\n        return acl;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [2, 8], [2, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 2], [9, 2], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "newInstance", "code": "    public static Object newInstance(\n            String className,\n            ClassLoader userDefinedLoader) {\n        return newInstance(className, userDefinedLoader, Object.class);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "newInstance", "code": "    public static Object newInstance(\n        String className,\n        ClassLoader userDefinedLoader,\n        Class expectedType) {\n        try {\n            Class clazz = Class.forName(className, true, userDefinedLoader);\n            Object o = clazz.newInstance();\n            if (!expectedType.isInstance(o)) {\n                throw new BuildException(\n                    \"Class of unexpected Type: \"\n                        + className\n                        + \" expected :\"\n                        + expectedType);\n            }\n            return o;\n        } catch (ClassNotFoundException e) {\n            throw new BuildException(\n                \"Class not found: \"\n                    + className,\n                e);\n        } catch (InstantiationException e) {\n            throw new BuildException(\n                \"Could not instantiate \"\n                    + className\n                    + \". Specified class should have a no \"\n                    + \"argument constructor.\",\n                e);\n        } catch (IllegalAccessException e) {\n            throw new BuildException(\n                \"Could not instantiate \"\n                    + className\n                    + \". Specified class should have a \"\n                    + \"public constructor.\",\n                e);\n        } catch (LinkageError e) {\n            throw new BuildException(\n                \"Class \"\n                    + className\n                    + \" could not be loaded because of an invalid dependency.\",\n                e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "CATCH", "CATCH", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [6, 14], [7, 15], [8, 16], [10, 17], [13, 18], [14, 19], [15, 20], [16, 21], [10, 22], [11, 23], [12, 24], [18, 25], [19, 26], [20, 27], [21, 28], [22, 29], [24, 30], [25, 31], [25, 32], [26, 33], [26, 34], [27, 35], [27, 36], [28, 37], [29, 38], [32, 39], [34, 40], [34, 41], [36, 42], [36, 43], [38, 44], [41, 45], [43, 46], [44, 47], [44, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 6], [15, 7], [16, 8], [17, 10], [18, 13], [19, 14], [20, 15], [21, 16], [22, 10], [23, 11], [24, 12], [25, 18], [26, 19], [27, 20], [28, 21], [29, 22], [30, 24], [31, 25], [32, 25], [33, 26], [34, 26], [35, 27], [36, 27], [37, 28], [38, 29], [39, 32], [40, 34], [41, 34], [42, 36], [43, 36], [44, 38], [45, 41], [46, 43], [47, 44], [48, 44], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "getDelegate", "code": "    public static Delegate getDelegate(ProjectComponent component) {\n        return new Delegate(component);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isMagicPropertySet", "code": "    private static boolean isMagicPropertySet(Project p) {\n        return p.getProperty(REUSE_LOADER_REF) != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "ant-1.3-65", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/taskdefs/Jar.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Jar", "code": "public class Jar extends Zip {\n\n    private File manifest;    \n    private boolean manifestAdded;    \n\n    public Jar() {\n        super();\n        archiveType = \"jar\";\n        emptyBehavior = \"create\";\n    }\n\n    public void setJarfile(File jarFile) {\n        super.setZipfile(jarFile);\n    }\n\n    public void setManifest(File manifestFile) {\n        manifest = manifestFile;\n        if (!manifest.exists())\n            throw new BuildException(\"Manifest file: \" + manifest + \" does not exist.\");\n\n        ZipFileSet fs = new ZipFileSet();\n        fs.setDir(new File(manifest.getParent()));\n        fs.setIncludes(manifest.getName());\n        fs.setFullpath(\"META-INF/MANIFEST.MF\");\n        super.addFileset(fs);\n    }\n\n\n    protected void initZipOutputStream(ZipOutputStream zOut)\n        throws IOException, BuildException\n    {\n        if (manifest == null) {\n            String s = \"/org/apache/tools/ant/defaultManifest.mf\";\n            InputStream in = this.getClass().getResourceAsStream(s);\n            if ( in == null )\n                throw new BuildException ( \"Could not find: \" + s );\n            zipDir(null, zOut, \"META-INF/\");\n            zipFile(in, zOut, \"META-INF/MANIFEST.MF\", System.currentTimeMillis());\n        }\n\n        super.initZipOutputStream(zOut);\n    }\n\n    protected void zipFile(File file, ZipOutputStream zOut, String vPath)\n        throws IOException\n    {\n        if (vPath.equalsIgnoreCase(\"META-INF/MANIFEST.MF\"))  {\n            if (manifest == null || !manifest.equals(file) || manifestAdded) {\n                log(\"Warning: selected \"+archiveType+\" files include a META-INF/MANIFEST.MF which will be ignored \" +\n                    \"(please use manifest attribute to \"+archiveType+\" task)\", Project.MSG_WARN);\n            } else {\n                super.zipFile(file, zOut, vPath);\n                manifestAdded = true;\n            }\n        } else {\n            super.zipFile(file, zOut, vPath);\n        }\n    }\n\n    /**\n     * Make sure we don't think we already have a MANIFEST next time this task\n     * gets executed.\n     */\n    protected void cleanUp() {\n        manifestAdded = false;\n        super.cleanUp();", "functions": [{"function_name": "setJarfile", "code": "    public void setJarfile(File jarFile) {\n        super.setZipfile(jarFile);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setManifest", "code": "    public void setManifest(File manifestFile) {\n        manifest = manifestFile;\n        if (!manifest.exists())\n            throw new BuildException(\"Manifest file: \" + manifest + \" does not exist.\");\n\n        ZipFileSet fs = new ZipFileSet();\n        fs.setDir(new File(manifest.getParent()));\n        fs.setIncludes(manifest.getName());\n        fs.setFullpath(\"META-INF/MANIFEST.MF\");\n        super.addFileset(fs);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [0, 9], [4, 10], [5, 11], [6, 12], [1, 13], [7, 14], [12, 15], [14, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 0], [10, 4], [11, 5], [12, 6], [13, 1], [14, 7], [15, 12], [16, 14], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "initZipOutputStream", "code": "    protected void initZipOutputStream(ZipOutputStream zOut)\n        throws IOException, BuildException\n    {\n        if (manifest == null) {\n            String s = \"/org/apache/tools/ant/defaultManifest.mf\";\n            InputStream in = this.getClass().getResourceAsStream(s);\n            if ( in == null )\n                throw new BuildException ( \"Could not find: \" + s );\n            zipDir(null, zOut, \"META-INF/\");\n            zipFile(in, zOut, \"META-INF/MANIFEST.MF\", System.currentTimeMillis());\n        }\n\n        super.initZipOutputStream(zOut);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [1, 8], [1, 9], [4, 10], [4, 11], [8, 12], [8, 13], [9, 14], [9, 15], [10, 16], [11, 17], [6, 18], [16, 19], [5, 20], [5, 21], [19, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 1], [9, 1], [10, 4], [11, 4], [12, 8], [13, 8], [14, 9], [15, 9], [16, 10], [17, 11], [18, 6], [19, 16], [20, 5], [21, 5], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "zipFile", "code": "    protected void zipFile(File file, ZipOutputStream zOut, String vPath)\n        throws IOException\n    {\n        if (vPath.equalsIgnoreCase(\"META-INF/MANIFEST.MF\"))  {\n            if (manifest == null || !manifest.equals(file) || manifestAdded) {\n                log(\"Warning: selected \"+archiveType+\" files include a META-INF/MANIFEST.MF which will be ignored \" +\n                    \"(please use manifest attribute to \"+archiveType+\" task)\", Project.MSG_WARN);\n            } else {\n                super.zipFile(file, zOut, vPath);\n                manifestAdded = true;\n            }\n        } else {\n            super.zipFile(file, zOut, vPath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [8, 9], [6, 10], [6, 11], [9, 12], [9, 13], [10, 14], [11, 15], [13, 16], [15, 17], [15, 18], [18, 19], [19, 20], [19, 21], [21, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 8], [10, 6], [11, 6], [12, 9], [13, 9], [14, 10], [15, 11], [16, 13], [17, 15], [18, 15], [19, 18], [20, 19], [21, 19], [22, 21], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "cleanUp", "code": "    protected void cleanUp() {\n        manifestAdded = false;\n        super.cleanUp();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Jar", "code": "    public Jar() {\n        super();\n        archiveType = \"jar\";\n        emptyBehavior = \"create\";", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.2-1684", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/language/JavaScriptExpression.java", "language": "java", "name": "org.apache.camel.model.language.JavaScriptExpression", "code": "@XmlRootElement(name = \"javaScript\")\npublic class JavaScriptExpression extends ExpressionType {\n    public JavaScriptExpression() {\n    }\n\n    public JavaScriptExpression(String expression) {\n        super(expression);\n    }\n\n    public String getLanguage() {\n        return \"js\";", "functions": [{"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return \"js\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JavaScriptExpression", "code": "    public JavaScriptExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "JavaScriptExpression", "code": "    public JavaScriptExpression(String expression) {\n        super(expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-2727", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/bean/BeanInvocation.java", "language": "java", "name": "org.apache.camel.component.bean.BeanInvocation", "code": "public class BeanInvocation implements Externalizable {\n    private Object[] args;\n    private MethodBean methodBean;\n    private transient Method method;\n\n    public BeanInvocation() {\n    }\n\n    public BeanInvocation(Method method, Object[] args) {\n        this.method = method;\n        this.args = args;\n    }\n\n    @Override\n    public String toString() {\n        Object list = null;\n        if (args != null) {\n            list = Arrays.asList(args);\n        }\n        return \"BeanInvocation \" + method + \" with \" + list + \"]\";\n    }\n\n    public Object[] getArgs() {\n        return args;\n    }\n\n    public Method getMethod() {\n        return method;\n    }\n\n    public void setMethod(Method method) {\n        this.method = method;\n    }\n\n    public void setArgs(Object[] args) {\n        this.args = args;\n    }\n\n    /**\n     * This causes us to invoke the endpoint Pojo using reflection.\n     *\n     * @param pojo     the bean on which to perform this invocation\n     * @param exchange the exchange carrying the method invocation\n     */\n    public void invoke(Object pojo, Exchange exchange) {\n        try {\n            Object response = getMethod().invoke(pojo, getArgs());\n            exchange.getOut().setBody(response);\n        } catch (InvocationTargetException e) {\n            exchange.setException(e.getCause());\n        } catch (RuntimeException e) {\n            throw e;\n        } catch (Throwable e) {\n            throw new RuntimeException(e);\n        }\n    }\n\n    public void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException {\n        methodBean = ObjectHelper.cast(MethodBean.class, objectInput.readObject());\n        try {\n            method = methodBean.getMethod();\n        } catch (NoSuchMethodException e) {\n            throw IOHelper.createIOException(e);\n        }\n        args = ObjectHelper.cast(Object[].class, objectInput.readObject());\n    }\n\n    public void writeExternal(ObjectOutput objectOutput) throws IOException {\n        if (methodBean == null) {\n            methodBean = new MethodBean(method);\n        }\n        objectOutput.writeObject(methodBean);\n        objectOutput.writeObject(args);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        Object list = null;\n        if (args != null) {\n            list = Arrays.asList(args);\n        }\n        return \"BeanInvocation \" + method + \" with \" + list + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [5, 8], [3, 9], [7, 10], [2, 11], [10, 12], [10, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 5], [9, 3], [10, 7], [11, 2], [12, 10], [13, 10], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getArgs", "code": "    public Object[] getArgs() {\n        return args;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMethod", "code": "    public Method getMethod() {\n        return method;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMethod", "code": "    public void setMethod(Method method) {\n        this.method = method;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setArgs", "code": "    public void setArgs(Object[] args) {\n        this.args = args;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "invoke", "code": "    public void invoke(Object pojo, Exchange exchange) {\n        try {\n            Object response = getMethod().invoke(pojo, getArgs());\n            exchange.getOut().setBody(response);\n        } catch (InvocationTargetException e) {\n            exchange.setException(e.getCause());\n        } catch (RuntimeException e) {\n            throw e;\n        } catch (Throwable e) {\n            throw new RuntimeException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "CATCH", "CATCH", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [8, 11], [6, 12], [10, 13], [7, 14], [12, 15], [14, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 8], [12, 6], [13, 10], [14, 7], [15, 12], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "readExternal", "code": "    public void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException {\n        methodBean = ObjectHelper.cast(MethodBean.class, objectInput.readObject());\n        try {\n            method = methodBean.getMethod();\n        } catch (NoSuchMethodException e) {\n            throw IOHelper.createIOException(e);\n        }\n        args = ObjectHelper.cast(Object[].class, objectInput.readObject());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "ASSIGN", "CATCH", "ASSIGN", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [4, 7], [1, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 4], [8, 1], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "writeExternal", "code": "    public void writeExternal(ObjectOutput objectOutput) throws IOException {\n        if (methodBean == null) {\n            methodBean = new MethodBean(method);\n        }\n        objectOutput.writeObject(methodBean);\n        objectOutput.writeObject(args);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "BeanInvocation", "code": "    public BeanInvocation() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "BeanInvocation", "code": "    public BeanInvocation(Method method, Object[] args) {\n        this.method = method;\n        this.args = args;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-3.0-6152", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/ddf/EscherDggRecord.java", "language": "java", "name": "org.apache.poi.ddf.EscherDggRecord", "code": "public class EscherDggRecord\n    extends EscherRecord\n{\n    public static final short RECORD_ID = (short) 0xF006;\n    public static final String RECORD_DESCRIPTION = \"MsofbtDgg\";\n\n    private int field_1_shapeIdMax;\n    private int field_3_numShapesSaved;\n    private int field_4_drawingsSaved;\n    private FileIdCluster[] field_5_fileIdClusters;\n\n    public static class FileIdCluster\n    {\n        public FileIdCluster( int drawingGroupId, int numShapeIdsUsed )\n        {\n            this.field_1_drawingGroupId = drawingGroupId;\n            this.field_2_numShapeIdsUsed = numShapeIdsUsed;\n        }\n\n        private int field_1_drawingGroupId;\n        private int field_2_numShapeIdsUsed;\n\n        public int getDrawingGroupId()\n        {\n            return field_1_drawingGroupId;\n        }\n\n        public int getNumShapeIdsUsed()\n        {\n            return field_2_numShapeIdsUsed;\n        }\n\n        public void incrementShapeId( )\n        {\n            this.field_2_numShapeIdsUsed++;\n        }\n    }\n\n    /**\n     * This method deserializes the record from a byte array.\n     *\n     * @param data          The byte array containing the escher record information\n     * @param offset        The starting offset into <code>data</code>.\n     * @param recordFactory May be null since this is not a container record.\n     * @return The number of bytes read from the byte array.\n     */\n    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        int pos            = offset + 8;\n        int size           = 0;\n        field_1_shapeIdMax     =  LittleEndian.getInt( data, pos + size );size+=4;\n        int field_2_numIdClusters  =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_3_numShapesSaved =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_4_drawingsSaved  =  LittleEndian.getInt( data, pos + size );size+=4;\n        for (int i = 0; i < field_5_fileIdClusters.length; i++)\n        {\n            field_5_fileIdClusters[i] = new FileIdCluster(LittleEndian.getInt( data, pos + size ), LittleEndian.getInt( data, pos + size + 4 ));\n            size += 8;\n        }\n        bytesRemaining         -= size;\n        if (bytesRemaining != 0)\n            throw new RecordFormatException(\"Expecting no remaining data but got \" + bytesRemaining + \" byte(s).\");\n        return 8 + size + bytesRemaining;\n    }\n\n    /**\n     * This method serializes this escher record into a byte array.\n     *\n     * @param offset   The offset into <code>data</code> to start writing the record data to.\n     * @param data     The byte array to serialize to.\n     * @param listener A listener to retrieve start and end callbacks.  Use a <code>NullEscherSerailizationListener</code> to ignore these events.\n     * @return The number of bytes written.\n     *\n     * @see NullEscherSerializationListener\n     */\n    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        int pos = offset;\n        LittleEndian.putShort( data, pos, getOptions() );     pos += 2;\n        LittleEndian.putShort( data, pos, getRecordId() );    pos += 2;\n        int remainingBytes = getRecordSize() - 8;\n        LittleEndian.putInt( data, pos, remainingBytes );              pos += 4;\n\n        LittleEndian.putInt( data, pos, field_1_shapeIdMax );          pos += 4;\n        LittleEndian.putInt( data, pos, getNumIdClusters() );          pos += 4;\n        LittleEndian.putInt( data, pos, field_3_numShapesSaved );      pos += 4;\n        LittleEndian.putInt( data, pos, field_4_drawingsSaved );       pos += 4;\n        for ( int i = 0; i < field_5_fileIdClusters.length; i++ )\n        {\n            LittleEndian.putInt( data, pos, field_5_fileIdClusters[i].field_1_drawingGroupId );   pos += 4;\n            LittleEndian.putInt( data, pos, field_5_fileIdClusters[i].field_2_numShapeIdsUsed );  pos += 4;\n        }\n\n        listener.afterRecordSerialize( pos, getRecordId(), getRecordSize(), this );\n        return getRecordSize();\n    }\n\n    /**\n     * Returns the number of bytes that are required to serialize this record.\n     *\n     * @return Number of bytes\n     */\n    public int getRecordSize()\n    {\n        return 8 + 16 + (8 * field_5_fileIdClusters.length);\n    }\n\n    public short getRecordId()\n    {\n        return RECORD_ID;\n    }\n\n    /**\n     * The short name for this record\n     */\n    public String getRecordName()\n    {\n        return \"Dgg\";\n    }\n\n    public String toString()\n    {\n        String nl = System.getProperty(\"line.separator\");\n\n        StringBuffer field_5_string = new StringBuffer();\n        for ( int i = 0; i < field_5_fileIdClusters.length; i++ )\n        {\n            field_5_string.append(\"  DrawingGroupId\").append(i+1).append(\": \");\n            field_5_string.append(field_5_fileIdClusters[i].field_1_drawingGroupId);\n            field_5_string.append(nl);\n            field_5_string.append(\"  NumShapeIdsUsed\").append(i+1).append(\": \");\n            field_5_string.append(field_5_fileIdClusters[i].field_2_numShapeIdsUsed);\n            field_5_string.append(nl);\n        }\n        return getClass().getName() + \":\" + nl +\n                \"  RecordId: 0x\" + HexDump.toHex(RECORD_ID) + nl +\n                \"  Options: 0x\" + HexDump.toHex(getOptions()) + nl +\n                \"  ShapeIdMax: \" + field_1_shapeIdMax + nl +\n                \"  NumIdClusters: \" + getNumIdClusters() + nl +\n                \"  NumShapesSaved: \" + field_3_numShapesSaved + nl +\n                \"  DrawingsSaved: \" + field_4_drawingsSaved + nl +\n                \"\" + field_5_string.toString();\n\n    }\n\n    public int getShapeIdMax()\n    {\n        return field_1_shapeIdMax;\n    }\n\n    /**\n     * The maximum is actually the next available. shape id.\n     */\n    public void setShapeIdMax( int field_1_shapeIdMax )\n    {\n        this.field_1_shapeIdMax = field_1_shapeIdMax;\n    }\n\n    /**\n     * Number of id clusters + 1\n     */ \n    public int getNumIdClusters()\n    {\n        return field_5_fileIdClusters.length + 1;\n    }\n\n    public int getNumShapesSaved()\n    {\n        return field_3_numShapesSaved;\n    }\n\n    public void setNumShapesSaved( int field_3_numShapesSaved )\n    {\n        this.field_3_numShapesSaved = field_3_numShapesSaved;\n    }\n\n    public int getDrawingsSaved()\n    {\n        return field_4_drawingsSaved;\n    }\n\n    public void setDrawingsSaved( int field_4_drawingsSaved )\n    {\n        this.field_4_drawingsSaved = field_4_drawingsSaved;\n    }\n\n    public FileIdCluster[] getFileIdClusters()\n    {\n        return field_5_fileIdClusters;\n    }\n\n    public void setFileIdClusters( FileIdCluster[] field_5_fileIdClusters )\n    {\n        this.field_5_fileIdClusters = field_5_fileIdClusters;\n    }\n\n    public void addCluster( int dgId, int numShapedUsed )\n    {\n        List clusters = new ArrayList(Arrays.asList(field_5_fileIdClusters));\n        clusters.add(new FileIdCluster(dgId, numShapedUsed));\n        Collections.sort(clusters, new Comparator()\n        {\n            public int compare( Object o1, Object o2 )\n            {\n                FileIdCluster f1 = (FileIdCluster) o1;\n                FileIdCluster f2 = (FileIdCluster) o2;\n                if (f1.getDrawingGroupId() == f2.getDrawingGroupId())\n                    return 0;\n                if (f1.getDrawingGroupId() < f2.getDrawingGroupId())\n                    return -1;\n                else\n                    return +1;\n            }\n        } );\n        field_5_fileIdClusters = (FileIdCluster[]) clusters.toArray( new FileIdCluster[clusters.size()] );", "functions": [{"function_name": "fillFields", "code": "    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        int pos            = offset + 8;\n        int size           = 0;\n        field_1_shapeIdMax     =  LittleEndian.getInt( data, pos + size );size+=4;\n        int field_2_numIdClusters  =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_3_numShapesSaved =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_4_drawingsSaved  =  LittleEndian.getInt( data, pos + size );size+=4;\n        for (int i = 0; i < field_5_fileIdClusters.length; i++)\n        {\n            field_5_fileIdClusters[i] = new FileIdCluster(LittleEndian.getInt( data, pos + size ), LittleEndian.getInt( data, pos + size + 4 ));\n            size += 8;\n        }\n        bytesRemaining         -= size;\n        if (bytesRemaining != 0)\n            throw new RecordFormatException(\"Expecting no remaining data but got \" + bytesRemaining + \" byte(s).\");\n        return 8 + size + bytesRemaining;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [2, 13], [0, 14], [3, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [11, 23], [12, 24], [13, 25], [16, 26], [17, 27], [18, 28], [19, 29], [20, 30], [4, 31], [21, 32], [22, 33], [5, 34], [6, 35], [7, 36], [23, 37], [24, 38], [3, 39], [3, 40], [3, 41], [27, 42], [29, 43], [31, 44], [33, 45], [35, 46], [38, 47], [38, 48], [39, 49], [40, 50], [48, 51], [50, 52], [50, 53], [52, 54], [53, 55], [54, 56], [54, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 2], [14, 0], [15, 3], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 11], [24, 12], [25, 13], [26, 16], [27, 17], [28, 18], [29, 19], [30, 20], [31, 4], [32, 21], [33, 22], [34, 5], [35, 6], [36, 7], [37, 23], [38, 24], [39, 3], [40, 3], [41, 3], [42, 27], [43, 29], [44, 31], [45, 33], [46, 35], [47, 38], [48, 38], [49, 39], [50, 40], [51, 48], [52, 50], [53, 50], [54, 52], [55, 53], [56, 54], [57, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        int pos = offset;\n        LittleEndian.putShort( data, pos, getOptions() );     pos += 2;\n        LittleEndian.putShort( data, pos, getRecordId() );    pos += 2;\n        int remainingBytes = getRecordSize() - 8;\n        LittleEndian.putInt( data, pos, remainingBytes );              pos += 4;\n\n        LittleEndian.putInt( data, pos, field_1_shapeIdMax );          pos += 4;\n        LittleEndian.putInt( data, pos, getNumIdClusters() );          pos += 4;\n        LittleEndian.putInt( data, pos, field_3_numShapesSaved );      pos += 4;\n        LittleEndian.putInt( data, pos, field_4_drawingsSaved );       pos += 4;\n        for ( int i = 0; i < field_5_fileIdClusters.length; i++ )\n        {\n            LittleEndian.putInt( data, pos, field_5_fileIdClusters[i].field_1_drawingGroupId );   pos += 4;\n            LittleEndian.putInt( data, pos, field_5_fileIdClusters[i].field_2_numShapeIdsUsed );  pos += 4;\n        }\n\n        listener.afterRecordSerialize( pos, getRecordId(), getRecordSize(), this );\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [2, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [9, 26], [9, 27], [11, 28], [13, 29], [15, 30], [16, 31], [17, 32], [19, 33], [3, 34], [21, 35], [22, 36], [23, 37], [24, 38], [25, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [34, 45], [34, 46], [40, 47], [42, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 2], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 9], [27, 9], [28, 11], [29, 13], [30, 15], [31, 16], [32, 17], [33, 19], [34, 3], [35, 21], [36, 22], [37, 23], [38, 24], [39, 25], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 34], [46, 34], [47, 40], [48, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 8 + 16 + (8 * field_5_fileIdClusters.length);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getRecordId", "code": "    public short getRecordId()\n    {\n        return RECORD_ID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordName", "code": "    public String getRecordName()\n    {\n        return \"Dgg\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        String nl = System.getProperty(\"line.separator\");\n\n        StringBuffer field_5_string = new StringBuffer();\n        for ( int i = 0; i < field_5_fileIdClusters.length; i++ )\n        {\n            field_5_string.append(\"  DrawingGroupId\").append(i+1).append(\": \");\n            field_5_string.append(field_5_fileIdClusters[i].field_1_drawingGroupId);\n            field_5_string.append(nl);\n            field_5_string.append(\"  NumShapeIdsUsed\").append(i+1).append(\": \");\n            field_5_string.append(field_5_fileIdClusters[i].field_2_numShapeIdsUsed);\n            field_5_string.append(nl);\n        }\n        return getClass().getName() + \":\" + nl +\n                \"  RecordId: 0x\" + HexDump.toHex(RECORD_ID) + nl +\n                \"  Options: 0x\" + HexDump.toHex(getOptions()) + nl +\n                \"  ShapeIdMax: \" + field_1_shapeIdMax + nl +\n                \"  NumIdClusters: \" + getNumIdClusters() + nl +\n                \"  NumShapesSaved: \" + field_3_numShapesSaved + nl +\n                \"  DrawingsSaved: \" + field_4_drawingsSaved + nl +\n                \"\" + field_5_string.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [5, 8], [3, 9], [4, 10], [8, 11], [8, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [10, 20], [12, 21], [15, 22], [15, 23], [15, 24], [18, 25], [18, 26], [18, 27], [21, 28], [23, 29], [24, 30], [26, 31], [27, 32], [28, 33], [28, 34], [30, 35], [32, 36], [34, 37], [37, 38], [38, 39], [38, 40], [40, 41], [41, 42], [41, 43], [43, 44], [43, 45], [45, 46], [46, 47], [47, 48], [47, 49], [49, 50], [50, 51], [50, 52], [51, 53], [52, 54], [52, 55], [55, 56], [56, 57], [56, 58], [58, 59], [58, 60], [60, 61], [61, 62], [61, 63], [63, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 5], [9, 3], [10, 4], [11, 8], [12, 8], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 10], [21, 12], [22, 15], [23, 15], [24, 15], [25, 18], [26, 18], [27, 18], [28, 21], [29, 23], [30, 24], [31, 26], [32, 27], [33, 28], [34, 28], [35, 30], [36, 32], [37, 34], [38, 37], [39, 38], [40, 38], [41, 40], [42, 41], [43, 41], [44, 43], [45, 43], [46, 45], [47, 46], [48, 47], [49, 47], [50, 49], [51, 50], [52, 50], [53, 51], [54, 52], [55, 52], [56, 55], [57, 56], [58, 56], [59, 58], [60, 58], [61, 60], [62, 61], [63, 61], [64, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "getShapeIdMax", "code": "    public int getShapeIdMax()\n    {\n        return field_1_shapeIdMax;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShapeIdMax", "code": "    public void setShapeIdMax( int field_1_shapeIdMax )\n    {\n        this.field_1_shapeIdMax = field_1_shapeIdMax;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumIdClusters", "code": "    public int getNumIdClusters()\n    {\n        return field_5_fileIdClusters.length + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNumShapesSaved", "code": "    public int getNumShapesSaved()\n    {\n        return field_3_numShapesSaved;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNumShapesSaved", "code": "    public void setNumShapesSaved( int field_3_numShapesSaved )\n    {\n        this.field_3_numShapesSaved = field_3_numShapesSaved;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDrawingsSaved", "code": "    public int getDrawingsSaved()\n    {\n        return field_4_drawingsSaved;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDrawingsSaved", "code": "    public void setDrawingsSaved( int field_4_drawingsSaved )\n    {\n        this.field_4_drawingsSaved = field_4_drawingsSaved;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFileIdClusters", "code": "    public FileIdCluster[] getFileIdClusters()\n    {\n        return field_5_fileIdClusters;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFileIdClusters", "code": "    public void setFileIdClusters( FileIdCluster[] field_5_fileIdClusters )\n    {\n        this.field_5_fileIdClusters = field_5_fileIdClusters;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addCluster", "code": "    public void addCluster( int dgId, int numShapedUsed )\n    {\n        List clusters = new ArrayList(Arrays.asList(field_5_fileIdClusters));\n        clusters.add(new FileIdCluster(dgId, numShapedUsed));\n        Collections.sort(clusters, new Comparator()\n        {\n            public int compare( Object o1, Object o2 )\n            {\n                FileIdCluster f1 = (FileIdCluster) o1;\n                FileIdCluster f2 = (FileIdCluster) o2;\n                if (f1.getDrawingGroupId() == f2.getDrawingGroupId())\n                    return 0;\n                if (f1.getDrawingGroupId() < f2.getDrawingGroupId())\n                    return -1;\n                else\n                    return +1;\n            }\n        } );\n        field_5_fileIdClusters = (FileIdCluster[]) clusters.toArray( new FileIdCluster[clusters.size()] );", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 9], [4, 10], [7, 11], [9, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [10, 19], [13, 20], [13, 21], [13, 22], [14, 23], [14, 24], [20, 25], [21, 26], [22, 27], [22, 28], [23, 29], [24, 30], [24, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 1], [10, 4], [11, 7], [12, 9], [13, 11], [14, 11], [15, 11], [16, 11], [17, 11], [18, 11], [19, 10], [20, 13], [21, 13], [22, 13], [23, 14], [24, 14], [25, 20], [26, 21], [27, 22], [28, 22], [29, 23], [30, 24], [31, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}], "label": 1}
{"sample_id": "camel-1.4-2512", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/management/InstrumentationLifecycleStrategy.java", "language": "java", "name": "org.apache.camel.management.InstrumentationLifecycleStrategy", "code": "public class InstrumentationLifecycleStrategy implements LifecycleStrategy {\n    private static final transient Log LOG = LogFactory.getLog(InstrumentationProcessor.class);\n\n    private InstrumentationAgent agent;\n    private CamelNamingStrategy namingStrategy;\n    private boolean initialized;\n\n    private Map<Endpoint, InstrumentationProcessor> interceptorMap =\n        new HashMap<Endpoint, InstrumentationProcessor>();\n\n    public InstrumentationLifecycleStrategy() {\n        this(new DefaultInstrumentationAgent());\n    }\n\n    public InstrumentationLifecycleStrategy(InstrumentationAgent agent) {\n        this.agent = agent;\n    }\n    /**\n     * Constructor for camel context that has been started.\n     *\n     * @param agent\n     * @param context\n     */\n    public InstrumentationLifecycleStrategy(InstrumentationAgent agent,\n            CamelContext context) {\n        this.agent = agent;\n        onContextStart(context);\n    }\n\n    public void onContextStart(CamelContext context) {\n        if (context instanceof DefaultCamelContext) {\n            try {\n                initialized = true;\n                DefaultCamelContext dc = (DefaultCamelContext)context;\n                dc.addService(agent);\n                namingStrategy = new CamelNamingStrategy(agent.getMBeanObjectDomainName());\n                ManagedService ms = new ManagedService(dc);\n                agent.register(ms, getNamingStrategy().getObjectName(dc));\n            } catch (Exception e) {\n                LOG.warn(\"Could not register CamelContext MBean\", e);\n            }\n        }\n    }\n\n    public void onEndpointAdd(Endpoint<? extends Exchange> endpoint) {\n\n        if (!initialized) {\n            return;\n        }\n\n        try {\n            ManagedEndpoint me = new ManagedEndpoint(endpoint);\n            agent.register(me, getNamingStrategy().getObjectName(me));\n        } catch (JMException e) {\n            LOG.warn(\"Could not register Endpoint MBean\", e);\n        }\n    }\n\n    public void onRoutesAdd(Collection<Route> routes) {\n\n        if (!initialized) {\n            return;\n        }\n\n        for (Route route : routes) {\n            try {\n                ManagedRoute mr = new ManagedRoute(route);\n                InstrumentationProcessor interceptor = interceptorMap.get(route.getEndpoint());\n                if (interceptor == null) {\n                    LOG.warn(\"Instrumentation processor not found for route endpoint \"\n                             + route.getEndpoint());\n                } else {\n                    interceptor.setCounter(mr);\n                }\n                agent.register(mr, getNamingStrategy().getObjectName(mr));\n            } catch (JMException e) {\n                LOG.warn(\"Could not register Route MBean\", e);\n            }\n        }\n    }\n\n    public void onServiceAdd(CamelContext context, Service service) {\n\n        if (!initialized) {\n            return;\n        }\n        if (service instanceof ServiceSupport) {\n            try {\n                ManagedService ms = new ManagedService((ServiceSupport)service);\n                agent.register(ms, getNamingStrategy().getObjectName(context, ms));\n            } catch (JMException e) {\n                LOG.warn(\"Could not register Service MBean\", e);\n            }\n        }\n    }\n\n    public void onRouteContextCreate(RouteContext routeContext) {\n\n        if (!initialized) {\n            return;\n        }\n\n        Map<ProcessorType, PerformanceCounter> counterMap =\n            new HashMap<ProcessorType, PerformanceCounter>();\n\n        RouteType route = routeContext.getRoute();\n        \n        for (ProcessorType processor : route.getOutputs()) {\n            ObjectName name = null;\n            try {\n                name = getNamingStrategy().getObjectName(routeContext, processor);\n\n                PerformanceCounter pc = new PerformanceCounter();\n                agent.register(pc, name);\n\n                counterMap.put(processor, pc);\n            } catch (MalformedObjectNameException e) {\n                LOG.warn(\"Could not create MBean name: \" + name, e);\n            } catch (JMException e) {\n                LOG.warn(\"Could not register PerformanceCounter MBean: \" + name, e);\n            }\n        }\n        \n        routeContext.addInterceptStrategy(new InstrumentationInterceptStrategy(counterMap));\n\n        routeContext.setErrorHandlerWrappingStrategy(\n                new InstrumentationErrorHandlerWrappingStrategy(counterMap));\n\n\n        RouteType routeType = routeContext.getRoute();\n        if (routeType.getInputs() != null && !routeType.getInputs().isEmpty()) {\n            if (routeType.getInputs().size() > 1) {\n                LOG.warn(\"Add InstrumentationProcessor to first input only.\");\n            }\n\n            Endpoint endpoint  = routeType.getInputs().get(0).getEndpoint();\n\n            List<ProcessorType<?>> exceptionHandlers = new ArrayList<ProcessorType<?>>();\n            List<ProcessorType<?>> outputs = new ArrayList<ProcessorType<?>>();\n\n            for (ProcessorType output : routeType.getOutputs()) {\n                if (output instanceof ExceptionType) {\n                    exceptionHandlers.add(output);\n                } else {\n                    outputs.add(output);\n                }\n            }\n\n            routeType.clearOutput();\n\n            routeType.getOutputs().addAll(exceptionHandlers);\n\n            InstrumentationProcessor processor = new InstrumentationProcessor();\n            routeType.intercept(processor);\n\n            for (ProcessorType<?> processorType : outputs) {\n                routeType.addOutput(processorType);\n            }\n\n            interceptorMap.put(endpoint, processor);\n        }\n\n    }\n\n    public CamelNamingStrategy getNamingStrategy() {\n        return namingStrategy;\n    }\n\n    public void setNamingStrategy(CamelNamingStrategy strategy) {\n        this.namingStrategy = strategy;\n    }\n\n    public void setAgent(InstrumentationAgent agent) {\n        this.agent = agent;", "functions": [{"function_name": "onContextStart", "code": "    public void onContextStart(CamelContext context) {\n        if (context instanceof DefaultCamelContext) {\n            try {\n                initialized = true;\n                DefaultCamelContext dc = (DefaultCamelContext)context;\n                dc.addService(agent);\n                namingStrategy = new CamelNamingStrategy(agent.getMBeanObjectDomainName());\n                ManagedService ms = new ManagedService(dc);\n                agent.register(ms, getNamingStrategy().getObjectName(dc));\n            } catch (Exception e) {\n                LOG.warn(\"Could not register CamelContext MBean\", e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "TRY", "CATCH", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [5, 12], [8, 13], [6, 14], [9, 15], [11, 16], [12, 17], [13, 18], [15, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 4], [12, 5], [13, 8], [14, 6], [15, 9], [16, 11], [17, 12], [18, 13], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "onEndpointAdd", "code": "    public void onEndpointAdd(Endpoint<? extends Exchange> endpoint) {\n\n        if (!initialized) {\n            return;\n        }\n\n        try {\n            ManagedEndpoint me = new ManagedEndpoint(endpoint);\n            agent.register(me, getNamingStrategy().getObjectName(me));\n        } catch (JMException e) {\n            LOG.warn(\"Could not register Endpoint MBean\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "VAR_DECL", "CALL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [4, 8], [6, 9], [5, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 4], [9, 6], [10, 5], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "onRoutesAdd", "code": "    public void onRoutesAdd(Collection<Route> routes) {\n\n        if (!initialized) {\n            return;\n        }\n\n        for (Route route : routes) {\n            try {\n                ManagedRoute mr = new ManagedRoute(route);\n                InstrumentationProcessor interceptor = interceptorMap.get(route.getEndpoint());\n                if (interceptor == null) {\n                    LOG.warn(\"Instrumentation processor not found for route endpoint \"\n                             + route.getEndpoint());\n                } else {\n                    interceptor.setCounter(mr);\n                }\n                agent.register(mr, getNamingStrategy().getObjectName(mr));\n            } catch (JMException e) {\n                LOG.warn(\"Could not register Route MBean\", e);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "TRY", "RETURN", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [7, 11], [6, 12], [10, 13], [11, 14], [8, 15], [9, 16], [12, 17], [13, 18], [7, 19], [7, 20], [15, 21], [20, 22], [22, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 7], [12, 6], [13, 10], [14, 11], [15, 8], [16, 9], [17, 12], [18, 13], [19, 7], [20, 7], [21, 15], [22, 20], [23, 22], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "onServiceAdd", "code": "    public void onServiceAdd(CamelContext context, Service service) {\n\n        if (!initialized) {\n            return;\n        }\n        if (service instanceof ServiceSupport) {\n            try {\n                ManagedService ms = new ManagedService((ServiceSupport)service);\n                agent.register(ms, getNamingStrategy().getObjectName(context, ms));\n            } catch (JMException e) {\n                LOG.warn(\"Could not register Service MBean\", e);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "TRY", "RETURN", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [6, 8], [6, 9], [6, 10], [8, 11], [10, 12], [9, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 6], [9, 6], [10, 6], [11, 8], [12, 10], [13, 9], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "onRouteContextCreate", "code": "    public void onRouteContextCreate(RouteContext routeContext) {\n\n        if (!initialized) {\n            return;\n        }\n\n        Map<ProcessorType, PerformanceCounter> counterMap =\n            new HashMap<ProcessorType, PerformanceCounter>();\n\n        RouteType route = routeContext.getRoute();\n        \n        for (ProcessorType processor : route.getOutputs()) {\n            ObjectName name = null;\n            try {\n                name = getNamingStrategy().getObjectName(routeContext, processor);\n\n                PerformanceCounter pc = new PerformanceCounter();\n                agent.register(pc, name);\n\n                counterMap.put(processor, pc);\n            } catch (MalformedObjectNameException e) {\n                LOG.warn(\"Could not create MBean name: \" + name, e);\n            } catch (JMException e) {\n                LOG.warn(\"Could not register PerformanceCounter MBean: \" + name, e);\n            }\n        }\n        \n        routeContext.addInterceptStrategy(new InstrumentationInterceptStrategy(counterMap));\n\n        routeContext.setErrorHandlerWrappingStrategy(\n                new InstrumentationErrorHandlerWrappingStrategy(counterMap));\n\n\n        RouteType routeType = routeContext.getRoute();\n        if (routeType.getInputs() != null && !routeType.getInputs().isEmpty()) {\n            if (routeType.getInputs().size() > 1) {\n                LOG.warn(\"Add InstrumentationProcessor to first input only.\");\n            }\n\n            Endpoint endpoint  = routeType.getInputs().get(0).getEndpoint();\n\n            List<ProcessorType<?>> exceptionHandlers = new ArrayList<ProcessorType<?>>();\n            List<ProcessorType<?>> outputs = new ArrayList<ProcessorType<?>>();\n\n            for (ProcessorType output : routeType.getOutputs()) {\n                if (output instanceof ExceptionType) {\n                    exceptionHandlers.add(output);\n                } else {\n                    outputs.add(output);\n                }\n            }\n\n            routeType.clearOutput();\n\n            routeType.getOutputs().addAll(exceptionHandlers);\n\n            InstrumentationProcessor processor = new InstrumentationProcessor();\n            routeType.intercept(processor);\n\n            for (ProcessorType<?> processorType : outputs) {\n                routeType.addOutput(processorType);\n            }\n\n            interceptorMap.put(endpoint, processor);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "TRY", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "VAR_DECL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [8, 18], [8, 19], [2, 20], [9, 21], [10, 22], [3, 23], [3, 24], [3, 25], [4, 26], [5, 27], [6, 28], [1, 29], [1, 30], [1, 31], [1, 32], [17, 33], [18, 34], [19, 35], [19, 36], [23, 37], [23, 38], [23, 39], [12, 40], [31, 41], [13, 42], [13, 43], [14, 44], [15, 45], [16, 46], [33, 47], [33, 48], [23, 49], [23, 50], [23, 51], [24, 52], [11, 53], [42, 54], [46, 55], [46, 56], [17, 57], [48, 58], [37, 59], [38, 60], [39, 61], [51, 62], [56, 63], [57, 64], [59, 65], [60, 66], [62, 67], [42, 68], [42, 69], [65, 70], [66, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 8], [19, 8], [20, 2], [21, 9], [22, 10], [23, 3], [24, 3], [25, 3], [26, 4], [27, 5], [28, 6], [29, 1], [30, 1], [31, 1], [32, 1], [33, 17], [34, 18], [35, 19], [36, 19], [37, 23], [38, 23], [39, 23], [40, 12], [41, 31], [42, 13], [43, 13], [44, 14], [45, 15], [46, 16], [47, 33], [48, 33], [49, 23], [50, 23], [51, 23], [52, 24], [53, 11], [54, 42], [55, 46], [56, 46], [57, 17], [58, 48], [59, 37], [60, 38], [61, 39], [62, 51], [63, 56], [64, 57], [65, 59], [66, 60], [67, 62], [68, 42], [69, 42], [70, 65], [71, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "getNamingStrategy", "code": "    public CamelNamingStrategy getNamingStrategy() {\n        return namingStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamingStrategy", "code": "    public void setNamingStrategy(CamelNamingStrategy strategy) {\n        this.namingStrategy = strategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAgent", "code": "    public void setAgent(InstrumentationAgent agent) {\n        this.agent = agent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "InstrumentationLifecycleStrategy", "code": "    public InstrumentationLifecycleStrategy() {\n        this(new DefaultInstrumentationAgent());", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "InstrumentationLifecycleStrategy", "code": "    public InstrumentationLifecycleStrategy(InstrumentationAgent agent) {\n        this.agent = agent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "InstrumentationLifecycleStrategy", "code": "    public InstrumentationLifecycleStrategy(InstrumentationAgent agent,\n            CamelContext context) {\n        this.agent = agent;\n        onContextStart(context);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-1.5-5342", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/poifs/filesystem/DocumentNode.java", "language": "java", "name": "org.apache.poi.poifs.filesystem.DocumentNode", "code": "public class DocumentNode\n    extends EntryNode\n    implements DocumentEntry, POIFSViewable\n{\n\n    private POIFSDocument _document;\n\n    /**\n     * create a DocumentNode. This method is not public by design; it\n     * is intended strictly for the internal use of this package\n     *\n     * @param property the DocumentProperty for this DocumentEntry\n     * @param parent the parent of this entry\n     */\n\n    DocumentNode(final DocumentProperty property, final DirectoryNode parent)\n    {\n        super(property, parent);\n        _document = property.getDocument();\n    }\n\n    /**\n     * get the POIFSDocument\n     *\n     * @return the internal POIFSDocument\n     */\n\n    POIFSDocument getDocument()\n    {\n        return _document;\n    }\n\n    /* ********** START implementation of DocumentEntry ********** */\n\n    /**\n     * get the zize of the document, in bytes\n     *\n     * @return size in bytes\n     */\n\n    public int getSize()\n    {\n        return getProperty().getSize();\n    }\n\n    /* **********  END  implementation of DocumentEntry ********** */\n    /* ********** START implementation of Entry ********** */\n\n    /**\n     * is this a DocumentEntry?\n     *\n     * @return true if the Entry is a DocumentEntry, else false\n     */\n\n    public boolean isDocumentEntry()\n    {\n        return true;\n    }\n\n    /* **********  END  implementation of Entry ********** */\n    /* ********** START extension of Entry ********** */\n\n    /**\n     * extensions use this method to verify internal rules regarding\n     * deletion of the underlying store.\n     *\n     * @return true if it's ok to delete the underlying store, else\n     *         false\n     */\n\n    protected boolean isDeleteOK()\n    {\n        return true;\n    }\n\n    /* **********  END  extension of Entry ********** */\n    /* ********** START begin implementation of POIFSViewable ********** */\n\n    /**\n     * Get an array of objects, some of which may implement\n     * POIFSViewable\n     *\n     * @return an array of Object; may not be null, but may be empty\n     */\n\n    public Object [] getViewableArray()\n    {\n        return new Object[ 0 ];\n    }\n\n    /**\n     * Get an Iterator of objects, some of which may implement\n     * POIFSViewable\n     *\n     * @return an Iterator; may not be null, but may have an empty\n     * back end store\n     */\n\n    public Iterator getViewableIterator()\n    {\n        List components = new ArrayList();\n\n        components.add(getProperty());\n        components.add(_document);\n        return components.iterator();\n    }\n\n    /**\n     * Give viewers a hint as to whether to call getViewableArray or\n     * getViewableIterator\n     *\n     * @return true if a viewer should call getViewableArray, false if\n     *         a viewer should call getViewableIterator\n     */\n\n    public boolean preferArray()\n    {\n        return false;\n    }\n\n    /**\n     * Provides a short description of the object, to be used when a\n     * POIFSViewable object has not provided its contents.\n     *\n     * @return short description\n     */\n\n    public String getShortDescription()\n    {\n        return getName();", "functions": [{"function_name": "getDocument", "code": "    POIFSDocument getDocument()\n    {\n        return _document;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return getProperty().getSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDocumentEntry", "code": "    public boolean isDocumentEntry()\n    {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDeleteOK", "code": "    protected boolean isDeleteOK()\n    {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getViewableArray", "code": "    public Object [] getViewableArray()\n    {\n        return new Object[ 0 ];", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getViewableIterator", "code": "    public Iterator getViewableIterator()\n    {\n        List components = new ArrayList();\n\n        components.add(getProperty());\n        components.add(_document);\n        return components.iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "preferArray", "code": "    public boolean preferArray()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getShortDescription", "code": "    public String getShortDescription()\n    {\n        return getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DocumentNode", "code": "    DocumentNode(final DocumentProperty property, final DirectoryNode parent)\n    {\n        super(property, parent);\n        _document = property.getDocument();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.4-2432", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/impl/LoggingExceptionHandler.java", "language": "java", "name": "org.apache.camel.impl.LoggingExceptionHandler", "code": "public class LoggingExceptionHandler implements ExceptionHandler {\n    private final Logger logger;\n\n    public LoggingExceptionHandler(Class ownerType) {\n        this(new Logger(LogFactory.getLog(ownerType), LoggingLevel.ERROR));\n    }\n\n    public LoggingExceptionHandler(Logger logger) {\n        this.logger = logger;\n    }\n\n    public void handleException(Throwable exception) {\n        logger.log(exception.getMessage(), exception);", "functions": [{"function_name": "handleException", "code": "    public void handleException(Throwable exception) {\n        logger.log(exception.getMessage(), exception);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LoggingExceptionHandler", "code": "    public LoggingExceptionHandler(Class ownerType) {\n        this(new Logger(LogFactory.getLog(ownerType), LoggingLevel.ERROR));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LoggingExceptionHandler", "code": "    public LoggingExceptionHandler(Logger logger) {\n        this.logger = logger;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.2-1889", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/DelegateProcessor.java", "language": "java", "name": "org.apache.camel.processor.DelegateProcessor", "code": "public class DelegateProcessor extends ServiceSupport implements Processor {\n    protected Processor processor;\n\n    public DelegateProcessor() {\n    }\n\n    public DelegateProcessor(Processor processor) {\n        this.processor = processor;\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        processNext(exchange);\n    }\n\n    protected void processNext(Exchange exchange) throws Exception {\n        if (processor != null) {\n            processor.process(exchange);\n        }\n    }\n\n    @Override\n    public String toString() {\n        return \"Delegate(\" + processor + \")\";\n    }\n\n    public Processor getProcessor() {\n        return processor;\n    }\n\n    public void setProcessor(Processor processor) {\n        this.processor = processor;\n    }\n\n    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processor);\n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processor);\n    }\n\n    /**\n     * Proceed with the underlying delegated processor\n     */\n    public void proceed(Exchange exchange) throws Exception {\n        processNext(exchange);", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        processNext(exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "processNext", "code": "    protected void processNext(Exchange exchange) throws Exception {\n        if (processor != null) {\n            processor.process(exchange);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Delegate(\" + processor + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getProcessor", "code": "    public Processor getProcessor() {\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessor", "code": "    public void setProcessor(Processor processor) {\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processor);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processor);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "proceed", "code": "    public void proceed(Exchange exchange) throws Exception {\n        processNext(exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DelegateProcessor", "code": "    public DelegateProcessor() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DelegateProcessor", "code": "    public DelegateProcessor(Processor processor) {\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8078", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/ValueOf.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.ValueOf", "code": "final class ValueOf extends Instruction {\n    private Expression _select;\n    private boolean _escaping = true;\n    private boolean _isString = false;\n\n    public void display(int indent) {\n        indent(indent);\n        Util.println(\"ValueOf\");\n        indent(indent + IndentIncrement);\n        Util.println(\"select \" + _select.toString());\n    }\n\n    public void parseContents(Parser parser) {\n        _select = parser.parseExpression(this, \"select\", null);\n\n        if (_select.isDummy()) {\n            reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"select\");\n            return;\n        }\n        final String str = getAttribute(\"disable-output-escaping\");\n        if ((str != null) && (str.equals(\"yes\"))) _escaping = false;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n        Type type = _select.typeCheck(stable);\n\n        if (type != null && !type.identicalTo(Type.Node)) {\n            /***\n             *** %HZ% Would like to treat result-tree fragments in the same\n             *** %HZ% way as node sets for value-of, but that's running into\n             *** %HZ% some snags.  Instead, they'll be converted to String\n            if (type.identicalTo(Type.ResultTree)) {\n                _select = new CastExpr(new CastExpr(_select, Type.NodeSet),\n                                       Type.Node);\n            } else\n            ***/\n            if (type.identicalTo(Type.NodeSet)) {\n                _select = new CastExpr(_select, Type.Node);\n            } else {\n                _isString = true;\n                if (!type.identicalTo(Type.String)) {\n                    _select = new CastExpr(_select, Type.String);\n                }\n                _isString = true;\n            }\n        }\n        return Type.Void;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n        final ConstantPoolGen cpg = classGen.getConstantPool();\n        final InstructionList il = methodGen.getInstructionList();\n        final int setEscaping = cpg.addInterfaceMethodref(OUTPUT_HANDLER,\n                                                          \"setEscaping\",\"(Z)Z\");\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(new PUSH(cpg,false));\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n        }\n\n        if (_isString) {\n            final int characters = cpg.addMethodref(TRANSLET_CLASS,\n                                                    CHARACTERSW,\n                                                    CHARACTERSW_SIG);\n\n            il.append(classGen.loadTranslet());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEVIRTUAL(characters));\n        } else {\n            final int characters = cpg.addInterfaceMethodref(DOM_INTF,\n                                                             CHARACTERS,\n                                                             CHARACTERS_SIG);\n\n            il.append(methodGen.loadDOM());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEINTERFACE(characters, 3));\n        }\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(SWAP);\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n            il.append(POP);", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n        indent(indent);\n        Util.println(\"ValueOf\");\n        indent(indent + IndentIncrement);\n        Util.println(\"select \" + _select.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n        _select = parser.parseExpression(this, \"select\", null);\n\n        if (_select.isDummy()) {\n            reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"select\");\n            return;\n        }\n        final String str = getAttribute(\"disable-output-escaping\");\n        if ((str != null) && (str.equals(\"yes\"))) _escaping = false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [0, 7], [1, 8], [5, 9], [5, 10], [2, 11], [3, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [3, 18], [13, 19], [13, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 0], [8, 1], [9, 5], [10, 5], [11, 2], [12, 3], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 3], [19, 13], [20, 13], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n        Type type = _select.typeCheck(stable);\n\n        if (type != null && !type.identicalTo(Type.Node)) {\n            /***\n             *** %HZ% Would like to treat result-tree fragments in the same\n             *** %HZ% way as node sets for value-of, but that's running into\n             *** %HZ% some snags.  Instead, they'll be converted to String\n            if (type.identicalTo(Type.ResultTree)) {\n                _select = new CastExpr(new CastExpr(_select, Type.NodeSet),\n                                       Type.Node);\n            } else\n            ***/\n            if (type.identicalTo(Type.NodeSet)) {\n                _select = new CastExpr(_select, Type.Node);\n            } else {\n                _isString = true;\n                if (!type.identicalTo(Type.String)) {\n                    _select = new CastExpr(_select, Type.String);\n                }\n                _isString = true;\n            }\n        }\n        return Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [6, 10], [8, 11], [6, 12], [6, 13], [12, 14], [6, 15], [6, 16], [13, 17], [15, 18], [16, 19], [12, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 6], [11, 8], [12, 6], [13, 6], [14, 12], [15, 6], [16, 6], [17, 13], [18, 15], [19, 16], [20, 12], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n        final ConstantPoolGen cpg = classGen.getConstantPool();\n        final InstructionList il = methodGen.getInstructionList();\n        final int setEscaping = cpg.addInterfaceMethodref(OUTPUT_HANDLER,\n                                                          \"setEscaping\",\"(Z)Z\");\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(new PUSH(cpg,false));\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n        }\n\n        if (_isString) {\n            final int characters = cpg.addMethodref(TRANSLET_CLASS,\n                                                    CHARACTERSW,\n                                                    CHARACTERSW_SIG);\n\n            il.append(classGen.loadTranslet());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEVIRTUAL(characters));\n        } else {\n            final int characters = cpg.addInterfaceMethodref(DOM_INTF,\n                                                             CHARACTERS,\n                                                             CHARACTERS_SIG);\n\n            il.append(methodGen.loadDOM());\n            _select.translate(classGen, methodGen);\n            il.append(methodGen.loadHandler());\n            il.append(new INVOKEINTERFACE(characters, 3));\n        }\n\n        if (!_escaping) {\n            il.append(methodGen.loadHandler());\n            il.append(SWAP);\n            il.append(new INVOKEINTERFACE(setEscaping,2));\n            il.append(POP);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [4, 11], [5, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [3, 26], [3, 27], [3, 28], [11, 29], [11, 30], [15, 31], [17, 32], [18, 33], [19, 34], [21, 35], [9, 36], [22, 37], [23, 38], [25, 39], [10, 40], [26, 41], [27, 42], [28, 43], [31, 44], [33, 45], [41, 46], [42, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 4], [12, 5], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 3], [27, 3], [28, 3], [29, 11], [30, 11], [31, 15], [32, 17], [33, 18], [34, 19], [35, 21], [36, 9], [37, 22], [38, 23], [39, 25], [40, 10], [41, 26], [42, 27], [43, 28], [44, 31], [45, 33], [46, 41], [47, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}], "label": 1}
{"sample_id": "poi-3.0-5973", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/IterationRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.IterationRecord", "code": "public class IterationRecord\n    extends Record\n{\n    public final static short sid = 0x11;\n    private short             field_1_iteration;\n\n    public IterationRecord()\n    {\n    }\n\n    /**\n     * Constructs an Iteration record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x11 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public IterationRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An ITERATION RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_iteration = in.readShort();\n    }\n\n    /**\n     * set whether or not to iterate for calculations\n     * @param iterate or not\n     */\n\n    public void setIteration(boolean iterate)\n    {\n        if (iterate)\n        {\n            field_1_iteration = 1;\n        }\n        else\n        {\n            field_1_iteration = 0;\n        }\n    }\n\n    /**\n     * get whether or not to iterate for calculations\n     *\n     * @return whether iterative calculations are turned off or on\n     */\n\n    public boolean getIteration()\n    {\n        return (field_1_iteration == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[ITERATION]\\n\");\n        buffer.append(\"    .iteration      = \").append(getIteration())\n            .append(\"\\n\");\n        buffer.append(\"[/ITERATION]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, field_1_iteration);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n      IterationRecord rec = new IterationRecord();\n      rec.field_1_iteration = field_1_iteration;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An ITERATION RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_iteration = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIteration", "code": "    public void setIteration(boolean iterate)\n    {\n        if (iterate)\n        {\n            field_1_iteration = 1;\n        }\n        else\n        {\n            field_1_iteration = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getIteration", "code": "    public boolean getIteration()\n    {\n        return (field_1_iteration == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[ITERATION]\\n\");\n        buffer.append(\"    .iteration      = \").append(getIteration())\n            .append(\"\\n\");\n        buffer.append(\"[/ITERATION]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, field_1_iteration);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [6, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 6], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      IterationRecord rec = new IterationRecord();\n      rec.field_1_iteration = field_1_iteration;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "IterationRecord", "code": "    public IterationRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IterationRecord", "code": "    public IterationRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.6-7890", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/FilteredAbsoluteLocationPath.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.FilteredAbsoluteLocationPath", "code": "final class FilteredAbsoluteLocationPath extends Expression {\n\n    public FilteredAbsoluteLocationPath() {\n\t_path = null;\n    }\n\n    public FilteredAbsoluteLocationPath(Expression path) {\n\t_path = path;\n\tif (path != null) {\n\t    _path.setParent(this);\n\t}\n    }\n\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tif (_path != null) {\n\t    _path.setParser(parser);\n\t}\n    }\n\n    public Expression getPath() {\n\treturn(_path);\n    }\n    \n    public String toString() {\n\treturn \"FilteredAbsoluteLocationPath(\" +\n\t    (_path != null ? _path.toString() : \"null\") + ')';\n    }\n\t\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_path != null) {\n\t    final Type ptype = _path.typeCheck(stable);\n\t\t_path = new CastExpr(_path, Type.NodeSet);\n\t    \n\t}\n\treturn _type = Type.NodeSet;\t\n    }\n\t\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tif (_path != null) {\n\t    final int initDFI = cpg.addMethodref(DUP_FILTERED_ITERATOR,\n\t\t\t\t\t\t\"<init>\",\n\t\t\t\t\t\t\"(\"\n\t\t\t\t\t\t+ NODE_ITERATOR_SIG\n\t\t\t\t\t\t+ \")V\");\n\t    il.append(new NEW(cpg.addClass(DUP_FILTERED_ITERATOR)));\n\t    il.append(DUP);\n\n\t    _path.translate(classGen, methodGen);\n\n\t    il.append(new INVOKESPECIAL(initDFI));\n\t}\n\telse {\n\t    final int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getIterator\",\n\t\t\t\t\t\t      \"()\"+NODE_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(new INVOKEINTERFACE(git, 1));", "functions": [{"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tif (_path != null) {\n\t    _path.setParser(parser);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getPath", "code": "    public Expression getPath() {\n\treturn(_path);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"FilteredAbsoluteLocationPath(\" +\n\t    (_path != null ? _path.toString() : \"null\") + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [5, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_path != null) {\n\t    final Type ptype = _path.typeCheck(stable);\n\t\t_path = new CastExpr(_path, Type.NodeSet);\n\t    \n\t}\n\treturn _type = Type.NodeSet;\t", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [2, 8], [8, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 2], [9, 8], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tif (_path != null) {\n\t    final int initDFI = cpg.addMethodref(DUP_FILTERED_ITERATOR,\n\t\t\t\t\t\t\"<init>\",\n\t\t\t\t\t\t\"(\"\n\t\t\t\t\t\t+ NODE_ITERATOR_SIG\n\t\t\t\t\t\t+ \")V\");\n\t    il.append(new NEW(cpg.addClass(DUP_FILTERED_ITERATOR)));\n\t    il.append(DUP);\n\n\t    _path.translate(classGen, methodGen);\n\n\t    il.append(new INVOKESPECIAL(initDFI));\n\t}\n\telse {\n\t    final int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getIterator\",\n\t\t\t\t\t\t      \"()\"+NODE_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(new INVOKEINTERFACE(git, 1));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [2, 10], [3, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [12, 18], [13, 19], [7, 20], [14, 21], [17, 22], [8, 23], [18, 24], [20, 25], [20, 26], [22, 27], [23, 28], [23, 29], [25, 30], [28, 31], [28, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 2], [11, 3], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 12], [19, 13], [20, 7], [21, 14], [22, 17], [23, 8], [24, 18], [25, 20], [26, 20], [27, 22], [28, 23], [29, 23], [30, 25], [31, 28], [32, 28], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "FilteredAbsoluteLocationPath", "code": "    public FilteredAbsoluteLocationPath() {\n\t_path = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FilteredAbsoluteLocationPath", "code": "    public FilteredAbsoluteLocationPath(Expression path) {\n\t_path = path;\n\tif (path != null) {\n\t    _path.setParent(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "xalan-2.5-6879", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/XPathException.java", "language": "java", "name": "org.apache.xpath.XPathException", "code": "public class XPathException extends TransformerException\n{\n\n  /** The home of the expression that caused the error.\n   *  @serial  */\n  Object m_styleNode = null;\n\n  /**\n   * Get the stylesheet node from where this error originated.\n   * @return The stylesheet node from where this error originated, or null.\n   */\n  public Object getStylesheetNode()\n  {\n    return m_styleNode;\n  }\n  \n  /**\n   * Set the stylesheet node from where this error originated.\n   * @param styleNode The stylesheet node from where this error originated, or null.\n   */\n  public void setStylesheetNode(Object styleNode)\n  {\n    m_styleNode = styleNode;\n  }\n\n\n  /** A nested exception.\n   *  @serial   */\n  protected Exception m_exception;\n\n  /**\n   * Create an XPathException object that holds\n   * an error message.\n   * @param message The error message.\n   */\n  public XPathException(String message, ExpressionNode ex)\n  {\n    super(message);\n    this.setLocator(ex);\n    setStylesheetNode(getStylesheetNode(ex));\n  }\n  \n  /**\n   * Create an XPathException object that holds\n   * an error message.\n   * @param message The error message.\n   */\n  public XPathException(String message)\n  {\n    super(message);\n  }\n\n  \n  /**\n   * Get the XSLT ElemVariable that this sub-expression references.  In order for \n   * this to work, the SourceLocator must be the owning ElemTemplateElement.\n   * @return The dereference to the ElemVariable, or null if not found.\n   */\n  public org.w3c.dom.Node getStylesheetNode(ExpressionNode ex)\n  {\n  \t\n    ExpressionNode owner = getExpressionOwner(ex);\n\n    if (null != owner && owner instanceof org.w3c.dom.Node)\n    {\n\t\treturn ((org.w3c.dom.Node)owner);\n    }\n    return null;\n\n  }\n  \n  /**\n   * Get the first non-Expression parent of this node.\n   * @return null or first ancestor that is not an Expression.\n   */\n  protected ExpressionNode getExpressionOwner(ExpressionNode ex)\n  {\n  \tExpressionNode parent = ex.exprGetParent();\n  \twhile((null != parent) && (parent instanceof Expression))\n  \t\tparent = parent.exprGetParent();\n  \treturn parent;\n  }\n\n\n\n  /**\n   * Create an XPathException object that holds\n   * an error message and the stylesheet node that\n   * the error originated from.\n   * @param message The error message.\n   * @param styleNode The stylesheet node that the error originated from.\n   */\n  public XPathException(String message, Object styleNode)\n  {\n\n    super(message);\n\n    m_styleNode = styleNode;\n  }\n\n  /**\n   * Create an XPathException object that holds\n   * an error message, the stylesheet node that\n   * the error originated from, and another exception\n   * that caused this exception.\n   * @param message The error message.\n   * @param styleNode The stylesheet node that the error originated from.\n   * @param e The exception that caused this exception.\n   */\n  public XPathException(String message, Node styleNode, Exception e)\n  {\n\n    super(message);\n\n    m_styleNode = styleNode;\n    this.m_exception = e;\n  }\n\n  /**\n   * Create an XPathException object that holds\n   * an error message, and another exception\n   * that caused this exception.\n   * @param message The error message.\n   * @param e The exception that caused this exception.\n   */\n  public XPathException(String message, Exception e)\n  {\n\n    super(message);\n\n    this.m_exception = e;\n  }\n\n  /**\n   * Print the the trace of methods from where the error\n   * originated.  This will trace all nested exception\n   * objects, as well as this object.\n   * @param s The stream where the dump will be sent to.\n   */\n  public void printStackTrace(java.io.PrintStream s)\n  {\n\n    if (s == null)\n      s = System.err;\n\n    try\n    {\n      super.printStackTrace(s);\n    }\n    catch (Exception e){}\n\n    Throwable exception = m_exception;\n\n    for (int i = 0; (i < 10) && (null != exception); i++)\n    {\n      s.println(\"---------\");\n      exception.printStackTrace(s);\n\n      if (exception instanceof TransformerException)\n      {\n        TransformerException se = (TransformerException) exception;\n        Throwable prev = exception;\n\n        exception = se.getException();\n\n        if (prev == exception)\n          break;\n      }\n      else\n      {\n        exception = null;\n      }\n    }\n  }\n\n  /**\n   * Find the most contained message.\n   *\n   * @return The error message of the originating exception.\n   */\n  public String getMessage()\n  {\n\n    String lastMessage = super.getMessage();\n    Throwable exception = m_exception;\n\n    while (null != exception)\n    {\n      String nextMessage = exception.getMessage();\n\n      if (null != nextMessage)\n        lastMessage = nextMessage;\n\n      if (exception instanceof TransformerException)\n      {\n        TransformerException se = (TransformerException) exception;\n        Throwable prev = exception;\n\n        exception = se.getException();\n\n        if (prev == exception)\n          break;\n      }\n      else\n      {\n        exception = null;\n      }\n    }\n\n    return (null != lastMessage) ? lastMessage : \"\";\n  }\n\n  /**\n   * Print the the trace of methods from where the error\n   * originated.  This will trace all nested exception\n   * objects, as well as this object.\n   * @param s The writer where the dump will be sent to.\n   */\n  public void printStackTrace(java.io.PrintWriter s)\n  {\n\n    if (s == null)\n      s = new java.io.PrintWriter(System.err);\n\n    try\n    {\n      super.printStackTrace(s);\n    }\n    catch (Exception e){}\n\n    Throwable exception = m_exception;\n\n    for (int i = 0; (i < 10) && (null != exception); i++)\n    {\n      s.println(\"---------\");\n\n      try\n      {\n        exception.printStackTrace(s);\n      }\n      catch (Exception e)\n      {\n        s.println(\"Could not print stack trace...\");\n      }\n\n      if (exception instanceof TransformerException)\n      {\n        TransformerException se = (TransformerException) exception;\n        Throwable prev = exception;\n\n        exception = se.getException();\n\n        if (prev == exception)\n        {\n          exception = null;\n\n          break;\n        }\n      }\n      else\n      {\n        exception = null;\n      }\n    }\n  }\n\n  /**\n   *  Return the embedded exception, if any.\n   *  Overrides javax.xml.transform.TransformerException.getException().\n   * \n   *  @return The embedded exception, or null if there is none.\n   */\n  public Throwable getException()\n  {\n    return m_exception;", "functions": [{"function_name": "getStylesheetNode", "code": "  public Object getStylesheetNode()\n  {\n    return m_styleNode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStylesheetNode", "code": "  public void setStylesheetNode(Object styleNode)\n  {\n    m_styleNode = styleNode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheetNode", "code": "  public org.w3c.dom.Node getStylesheetNode(ExpressionNode ex)\n  {\n  \t\n    ExpressionNode owner = getExpressionOwner(ex);\n\n    if (null != owner && owner instanceof org.w3c.dom.Node)\n    {\n\t\treturn ((org.w3c.dom.Node)owner);\n    }\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [6, 9], [3, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 6], [10, 3], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getExpressionOwner", "code": "  protected ExpressionNode getExpressionOwner(ExpressionNode ex)\n  {\n  \tExpressionNode parent = ex.exprGetParent();\n  \twhile((null != parent) && (parent instanceof Expression))\n  \t\tparent = parent.exprGetParent();\n  \treturn parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [6, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 6], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "printStackTrace", "code": "  public void printStackTrace(java.io.PrintStream s)\n  {\n\n    if (s == null)\n      s = System.err;\n\n    try\n    {\n      super.printStackTrace(s);\n    }\n    catch (Exception e){}\n\n    Throwable exception = m_exception;\n\n    for (int i = 0; (i < 10) && (null != exception); i++)\n    {\n      s.println(\"---------\");\n      exception.printStackTrace(s);\n\n      if (exception instanceof TransformerException)\n      {\n        TransformerException se = (TransformerException) exception;\n        Throwable prev = exception;\n\n        exception = se.getException();\n\n        if (prev == exception)\n          break;\n      }\n      else\n      {\n        exception = null;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "TRY", "IF", "PARAM", "BINARY_OP", "CATCH", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [1, 9], [6, 10], [6, 11], [4, 12], [8, 13], [9, 14], [1, 15], [1, 16], [10, 17], [11, 18], [1, 19], [9, 20], [9, 21], [9, 22], [16, 23], [9, 24], [20, 25], [20, 26], [9, 27], [24, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 1], [10, 6], [11, 6], [12, 4], [13, 8], [14, 9], [15, 1], [16, 1], [17, 10], [18, 11], [19, 1], [20, 9], [21, 9], [22, 9], [23, 16], [24, 9], [25, 20], [26, 20], [27, 9], [28, 24], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getMessage", "code": "  public String getMessage()\n  {\n\n    String lastMessage = super.getMessage();\n    Throwable exception = m_exception;\n\n    while (null != exception)\n    {\n      String nextMessage = exception.getMessage();\n\n      if (null != nextMessage)\n        lastMessage = nextMessage;\n\n      if (exception instanceof TransformerException)\n      {\n        TransformerException se = (TransformerException) exception;\n        Throwable prev = exception;\n\n        exception = se.getException();\n\n        if (prev == exception)\n          break;\n      }\n      else\n      {\n        exception = null;\n      }\n    }\n\n    return (null != lastMessage) ? lastMessage : \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [5, 8], [2, 9], [2, 10], [2, 11], [6, 12], [8, 13], [9, 14], [10, 15], [9, 16], [9, 17], [9, 18], [10, 19], [15, 20], [11, 21], [9, 22], [16, 23], [16, 24], [9, 25], [22, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 5], [9, 2], [10, 2], [11, 2], [12, 6], [13, 8], [14, 9], [15, 10], [16, 9], [17, 9], [18, 9], [19, 10], [20, 15], [21, 11], [22, 9], [23, 16], [24, 16], [25, 9], [26, 22], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "printStackTrace", "code": "  public void printStackTrace(java.io.PrintWriter s)\n  {\n\n    if (s == null)\n      s = new java.io.PrintWriter(System.err);\n\n    try\n    {\n      super.printStackTrace(s);\n    }\n    catch (Exception e){}\n\n    Throwable exception = m_exception;\n\n    for (int i = 0; (i < 10) && (null != exception); i++)\n    {\n      s.println(\"---------\");\n\n      try\n      {\n        exception.printStackTrace(s);\n      }\n      catch (Exception e)\n      {\n        s.println(\"Could not print stack trace...\");\n      }\n\n      if (exception instanceof TransformerException)\n      {\n        TransformerException se = (TransformerException) exception;\n        Throwable prev = exception;\n\n        exception = se.getException();\n\n        if (prev == exception)\n        {\n          exception = null;\n\n          break;\n        }\n      }\n      else\n      {\n        exception = null;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "TRY", "IF", "PARAM", "BINARY_OP", "CATCH", "BINARY_OP", "IF", "TRY", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [1, 9], [1, 10], [6, 11], [6, 12], [4, 13], [8, 14], [9, 15], [10, 16], [1, 17], [11, 18], [12, 19], [1, 20], [13, 21], [9, 22], [9, 23], [9, 24], [10, 25], [17, 26], [9, 27], [22, 28], [9, 29], [16, 30], [27, 31], [22, 32], [29, 33], [30, 34], [22, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 1], [10, 1], [11, 6], [12, 6], [13, 4], [14, 8], [15, 9], [16, 10], [17, 1], [18, 11], [19, 12], [20, 1], [21, 13], [22, 9], [23, 9], [24, 9], [25, 10], [26, 17], [27, 9], [28, 22], [29, 9], [30, 16], [31, 27], [32, 22], [33, 29], [34, 30], [35, 22], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getException", "code": "  public Throwable getException()\n  {\n    return m_exception;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XPathException", "code": "  public XPathException(String message, ExpressionNode ex)\n  {\n    super(message);\n    this.setLocator(ex);\n    setStylesheetNode(getStylesheetNode(ex));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "XPathException", "code": "  public XPathException(String message)\n  {\n    super(message);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XPathException", "code": "  public XPathException(String message, Object styleNode)\n  {\n\n    super(message);\n\n    m_styleNode = styleNode;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "XPathException", "code": "  public XPathException(String message, Node styleNode, Exception e)\n  {\n\n    super(message);\n\n    m_styleNode = styleNode;\n    this.m_exception = e;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "XPathException", "code": "  public XPathException(String message, Exception e)\n  {\n\n    super(message);\n\n    this.m_exception = e;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "jedit-4.3-4720", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/ExtendedGridLayoutConstraints.java", "language": "java", "name": "org.gjt.sp.jedit.gui.ExtendedGridLayoutConstraints", "code": "public class ExtendedGridLayoutConstraints\n{\n\t/**\n\t  * Specifies that this component is the\n\t  * last component in its column or row\n\t  * and takes up the remaining space.\n\t  */\n\tpublic static final int REMAINDER = Integer.MAX_VALUE;\n\t\n\t/**\n\t  * Specifies the row in which a component starts its display area.\n\t  * {@code row} has to be non-negative and the default\n\t  * value is 0.\n\t  */\n\tprivate int row;\n\t\n\t/**\n\t  * Specifies the column in which a component starts its display area.\n\t  * {@code col} has to be non-negative.\n\t  */\n\tprivate int col;\n\t\n\t/**\n\t  * Specifies the number of cells in a row for the\n\t  * component's display area.\n\t  * <p>\n\t  * Use {@code REMAINDER} to specify that the component's\n\t  * display area will be from its grid position to the last\n\t  * cell in the row.\n\t  * <p>\n\t  * {@code colspan} has to be {@literal >= 1} and the default\n\t  * value is 1.\n\t  * \n\t  * @see #REMAINDER\n\t  * @see #rowspan\n\t  */\n\tprivate int colspan;\n\t\n\t/**\n\t  * Specifies the effective number of cells in a row for the\n\t  * component's display area. This is used internally\n\t  * to get the effective number of cells in a row in cases\n\t  * where {@code REMAINDER} is used for colspan.\n\t  * \n\t  * @see #REMAINDER\n\t  * @see #colspan\n\t  */\n\tprivate int effectiveColspan;\n\t\n\t/**\n\t  * Specifies the number of cells in a column for the\n\t  * component's display area.\n\t  * <p>\n\t  * Use {@code REMAINDER} to specify that the component's\n\t  * display area will be from its grid position to the last\n\t  * cell in the column.\n\t  * <p>\n\t  * {@code rowspan} has to be {@literal >= 1} and the default\n\t  * value is 1.\n\t  * \n\t  * @see #REMAINDER\n\t  * @see #colspan\n\t  */\n\tprivate int rowspan;\n\t\n\t/**\n\t  * Specifies the effective number of cells in a column for the\n\t  * component's display area. This is used internally\n\t  * to get the effective number of cells in a column in cases\n\t  * where {@code REMAINDER} is used for rowspan.\n\t  * \n\t  * @see #REMAINDER\n\t  * @see #rowspan\n\t  */\n\tprivate int effectiveRowspan;\n\t\n\t/**\n\t  * Specifies if this Constraint is used as placeholder to build the grid.\n\t  * This is used internally and the default value is {@code false}.\n\t  */\n\tprivate boolean placeholder;\n\t\n\t/**\n\t  * Specifies the mainConstraints object for which this constraints\n\t  * object is a placeholder. If this constraints object is no placeholder,\n\t  * mainConstraints is set to {@code null}.\n\t  */\n\tprivate ExtendedGridLayoutConstraints mainConstraints;\n\t\n\t/**\n\t  * Specifies the {@code Component} this constraints object describes.\n\t  */\n\tprivate Component component;\n\t\n\t/**\n\t  * Creates an {@code ExtendedGridLayoutConstraints} object with\n\t  * all of its fields set to their default value. For further information\n\t  * about the default values see\n\t  * {@link #ExtendedGridLayoutConstraints(int, int, int, java.awt.Component)}.\n\t  * \n\t  * @param component The {@code Component} this constraints object describes\n\t  */\n\tpublic ExtendedGridLayoutConstraints(Component component)\n\t{\n\t\tthis(0,0,1,1,component,false,null);\n\t}\n\t\n\t/**\n\t  * Creates an {@code ExtendedGridLayoutConstraints} object with\n\t  * all of its fields set to their default value\n\t  * except of the row which is specified. For further information\n\t  * about the default values see\n\t  * {@link #ExtendedGridLayoutConstraints(int, int, int, java.awt.Component)}.\n\t  * \n\t  * @param row       The row in which a component starts its display area. First row is 0\n\t  * @param component The {@code Component} this constraints object d describes\n\t  * @throws IllegalArgumentException If row {@literal < 0}\n\t  */\n\tpublic ExtendedGridLayoutConstraints(int row, Component component)\n\t{\n\t\tthis(row,0,1,1,component,false,null);\n\t}\n\t\n\t/**\n\t  * Creates an {@code ExtendedGridLayoutConstraints} object with\n\t  * all of its fields set to the passed-in arguments.\n\t  * \n\t  * @param row       The row in which a component starts its display area.\n\t  *                  First row is 0. Default value is 0.\n\t  * @param colspan   The number of cells in a row for the component's display area.\n\t  *                  Use {@code REMAINDER} to specify that the component's\n\t  *                  display area will be from its grid position to the last\n\t  *                  cell in the row. Default value is 1.\n\t  * @param rowspan   The number of cells in a column for the component's display area.\n\t  *                  Use {@code REMAINDER} to specify that the component's\n\t  *                  display area will be from its grid position to the last\n\t  *                  cell in the column. Default value is 1.\n\t  * @param component The {@code Component} this constraints object describes\n\t  * @throws IllegalArgumentException If row {@literal < 0}\n\t  * @throws IllegalArgumentException If colspan {@literal < 1}\n\t  * @throws IllegalArgumentException If rowspan {@literal < 1}\n\t  */\n\tpublic ExtendedGridLayoutConstraints(int row, int colspan, int rowspan, Component component)\n\t{\n\t\tthis(row,0,colspan,rowspan,component,false,null);\n\t}\n\t\n\t/**\n\t  * Creates an {@code ExtendedGridLayoutConstraints} object with\n\t  * all of its fields set to the passed-in arguments.\n\t  * \n\t  * @param row             The row in which a component starts its display area.\n\t  *                        First row is 0.\n\t  * @param col             The col in which a component starts its display area.\n\t  *                        First col is 0.\n\t  * @param colspan         The number of cells in a row for the component's display area.\n\t  *                        Use {@code REMAINDER} to specify that the component's\n\t  *                        display area will be from its grid position to the last\n\t  *                        cell in the row.\n\t  * @param rowspan         The number of cells in a column for the component's display area.\n\t  *                        Use {@code REMAINDER} to specify that the component's\n\t  *                        display area will be from its grid position to the last\n\t  *                        cell in the column.\n\t  * @param component       The {@code Component} this constraints object describes\n\t  * @param placeholder     If this constraints are used as placeholder to build the grid\n\t  * @param mainConstraints The mainConstraints object for which this constraints\n\t  *                        object is a placeholder\n\t  * @throws IllegalArgumentException If row {@literal < 0}\n\t  * @throws IllegalArgumentException If col {@literal < 0}\n\t  * @throws IllegalArgumentException If colspan {@literal < 1}\n\t  * @throws IllegalArgumentException If rowspan {@literal < 1}\n\t  */\n\tprivate ExtendedGridLayoutConstraints(int row, int col, int colspan, int rowspan, Component component, boolean placeholder, ExtendedGridLayoutConstraints mainConstraints)\n\t{\n\t\tif (row < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"row must be non-negative (\" + row + ')');\n\t\t}\n\t\tif (col < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"col must be non-negative (\" + col + ')');\n\t\t}\n\t\tif (colspan < 1)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"colspan must be at least 1 (\" + colspan + ')');\n\t\t}\n\t\tif (rowspan < 1)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"rowspan must be at least 1 (\" + rowspan + ')');\n\t\t}\n\t\tthis.row = row;\n\t\tthis.col = col;\n\t\tthis.colspan = colspan;\n\t\teffectiveColspan = 1;\n\t\tthis.rowspan = rowspan;\n\t\teffectiveRowspan = 1;\n\t\tthis.component = component;\n\t\tthis.placeholder = placeholder;\n\t\tthis.mainConstraints = mainConstraints;\n\t}\n\t\n\t/**\n\t  * Creates an {@code ExtendedGridLayoutConstraints} object which can be\n\t  * used as placeholder for building a grid with colspans.\n\t  * \n\t  * @param forUsage If the returned object will be used in the grid\n\t  *                 and therefor the effectiveColspan should be raised by one\n\t  * @return The newly created {@code ExtendedGridLayoutConstraints}\n\t  *         object or {@code null} if no colspan is applicable\n\t  * @see #getRowspanPlaceholder(boolean)\n\t  */\n\tExtendedGridLayoutConstraints getColspanPlaceholder(boolean forUsage)\n\t{\n\t\tif (1 == colspan)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tExtendedGridLayoutConstraints result = new ExtendedGridLayoutConstraints(row,col+1,colspan==REMAINDER ? REMAINDER : colspan-1,rowspan,component,true,null == mainConstraints ? this : mainConstraints);\n\t\tif (forUsage && (result.mainConstraints.row == row))\n\t\t{\n\t\t\tresult.mainConstraints.effectiveColspan++;\n\t\t}\n\t\treturn result;\n\t}\n\t\n\t/**\n\t  * Creates an {@code ExtendedGridLayoutConstraints} object which can be\n\t  * used as placeholder for building a grid with rowspans.\n\t  * \n\t  * @param forUsage If the returned object will be used in the grid\n\t  *                 and therefor the effectiveRowspan should be raised by one\n\t  * @return The newly created {@code ExtendedGridLayoutConstraints}\n\t  *         object or {@code null} if no rowspan is applicable\n\t  * @see #getColspanPlaceholder(boolean)\n\t  */\n\tExtendedGridLayoutConstraints getRowspanPlaceholder(boolean forUsage)\n\t{\n\t\tif (1 == rowspan)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tExtendedGridLayoutConstraints result = new ExtendedGridLayoutConstraints(row+1,col,colspan,rowspan==REMAINDER ? REMAINDER : rowspan-1,component,true,null == mainConstraints ? this : mainConstraints);\n\t\tif (forUsage && (result.mainConstraints.col == col))\n\t\t{\n\t\t\tresult.mainConstraints.effectiveRowspan++;\n\t\t}\n\t\treturn result;\n\t}\n\t\n\t/**\n\t  * @return The row in which the component starts its display area.\n\t  */\n\tpublic int getRow()\n\t{\n\t\treturn row;\n\t}\n\t\n\t/**\n\t  * @return The column in which the component starts its display area.\n\t  */\n\tpublic int getCol()\n\t{\n\t\treturn col;\n\t}\n\t\n\t/**\n\t  * @param col The column in which the component starts its display area.\n\t  */\n\tvoid setCol(int col)\n\t{\n\t\tif (col < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"col must be non-negative (\" + col + ')');\n\t\t}\n\t\tthis.col = col;\n\t}\n\t\n\t/**\n\t  * @return The number of cells in a row for the component's display area\n\t  *         or {@code REMAINDER} if the component's display area will be\n\t  *         from its grid position to the last cell in the row.\n\t  */\n\tpublic int getColspan()\n\t{\n\t\treturn colspan;\n\t}\n\t\n\t/**\n\t  * @return The effective number of cells in a row for the component's display area.\n\t  */\n\tint getEffectiveColspan()\n\t{\n\t\treturn null == mainConstraints ? effectiveColspan : mainConstraints.effectiveColspan;\n\t}\n\t\n\t/**\n\t  * @return The number of cells in a column for the component's display area\n\t  *         or {@code REMAINDER} if the component's display area will be\n\t  *         from its grid position to the last cell in the column.\n\t  */\n\tpublic int getRowspan()\n\t{\n\t\treturn rowspan;\n\t}\n\t\n\t/**\n\t  * @return The effective number of cells in a column for the component's display area.\n\t  */\n\tint getEffectiveRowspan()\n\t{\n\t\treturn null == mainConstraints ? effectiveRowspan : mainConstraints.effectiveRowspan;\n\t}\n\t\n\t/**\n\t  * @return The {@code Component} this constraints object describes\n\t  */\n\tComponent getComponent()\n\t{\n\t\treturn component;\n\t}\n\t\n\t/**\n\t  * @return Whether this constraints object is a placeholder or not\n\t  */\n\tpublic boolean isPlaceholder()\n\t{\n\t\treturn placeholder;\n\t}\n\t\n\t/**\n\t  * @return A work copy if this constraints object. This is a flat copy\n\t  *         which means that the reference to the component stays the same.\n\t  *         The returned object could be used without modifying this\n\t  *         constraints object.\n\t  */\n\tExtendedGridLayoutConstraints getWorkCopy()\n\t{\n\t\treturn new ExtendedGridLayoutConstraints(row,col,colspan,rowspan,component,placeholder,(null == mainConstraints ? null : mainConstraints.getWorkCopy()));\n\t}\n\t\n\t/**\n\t  * Indicates whether some other object is \"equal to\" this one.\n\t  * <p>\n\t  * The {@code equals} method implements an equivalence relation\n\t  * on non-null object references:\n\t  * <ul>\n\t  * <li>It is <i>reflexive</i>: for any non-null reference value\n\t  *     {@code x}, {@code x.equals(x)} returns\n\t  *     {@code true}.\n\t  * <li>It is <i>symmetric</i>: for any non-null reference values\n\t  *     {@code x} and {@code y}, {@code x.equals(y)}\n\t  *     returns {@code true} if and only if\n\t  *     {@code y.equals(x)} returns {@code true}.\n\t  * <li>It is <i>transitive</i>: for any non-null reference values\n\t  *     {@code x}, {@code y}, and {@code z}, if\n\t  *     {@code x.equals(y)} returns {@code true} and\n\t  *     {@code y.equals(z)} returns {@code true}, then\n\t  *     {@code x.equals(z)} returns {@code true}.\n\t  * <li>It is <i>consistent</i>: for any non-null reference values\n\t  *     {@code x} and {@code y}, multiple invocations of\n\t  *     <tt>x.equals(y)</tt> consistently return {@code true}\n\t  *     or consistently return {@code false}, provided no\n\t  *     information used in {@code equals} comparisons on the\n\t  *     objects is modified.\n\t  * <li>For any non-null reference value {@code x},\n\t  *     {@code x.equals(null)} returns {@code false}.\n\t  * </ul>\n\t  * <p>\n\t  * The <tt>equals</tt> method for class\n\t  * {@code ExtendedGridLayoutConstraints} returns {@code true}\n\t  * if and only if the constraints objects describe the same {@code Component}\n\t  * \n\t  * @param o the reference object with which to compare.\n\t  * @return {@code true} if this object is the same as the o\n\t  *         argument; {@code false} otherwise.\n\t  * @see #hashCode()\n\t  * @see <a href=\"http://java.sun.com/j2se/1.5.0/docs/api/java/util/Hashtable.html\"><code>java.util.Hashtable</code></a>\n\t  */\n\tpublic boolean equals(Object o)\n\t{\n\t\tif ((o == null) ||\n\t\t    (!(o instanceof ExtendedGridLayoutConstraints)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (component == null)\n\t\t{\n\t\t\treturn ((ExtendedGridLayoutConstraints)o).component == null;\n\t\t}\n\t\treturn component.equals(((ExtendedGridLayoutConstraints)o).component);\n\t}\n\t\n\t/**\n\t  * Returns a hash code value for the object. This method is\n\t  * supported for the benefit of hashtables such as those provided by\n\t  * {@code java.util.Hashtable}.\n\t  * <p>\n\t  * The general contract of {@code hashCode} is:\n\t  * <ul>\n\t  * <li>Whenever it is invoked on the same object more than once during\n\t  *     an execution of a Java application, the <tt>hashCode</tt> method\n\t  *     must consistently return the same integer, provided no information\n\t  *     used in <tt>equals</tt> comparisons on the object is modified.\n\t  *     This integer need not remain consistent from one execution of an\n\t  *     application to another execution of the same application.\n\t  * <li>If two objects are equal according to the <tt>equals(Object)</tt>\n\t  *     method, then calling the {@code hashCode} method on each of\n\t  *     the two objects must produce the same integer result.\n\t  * <li>It is <em>not</em> required that if two objects are unequal\n\t  *     according to the\n\t  *     <a href=\"http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)\">{@code java.lang.Object#equals(java.lang.Object)}</a>\n\t  *     method, then calling the <tt>hashCode</tt> method on each of the\n\t  *     two objects must produce distinct integer results.  However, the\n\t  *     programmer should be aware that producing distinct integer results\n\t  *     for unequal objects may improve the performance of hashtables.\n\t  * </ul>\n\t  * \n\t  * @return a hash code value for this object.\n\t  * @see #equals(java.lang.Object)\n\t  * @see <a href=\"http://java.sun.com/j2se/1.5.0/docs/api/java/util/Hashtable.html\"><code>java.util.Hashtable</code></a>\n\t  */\n\tpublic int hashCode()\n\t{\n\t\tif (null == component)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn component.hashCode();\n\t}\n\t\n\t/**\n\t  * Returns a string representation of the object. In general, the\n\t  * {@code toString} method returns a string that\n\t  * \"textually represents\" this object. The result should\n\t  * be a concise but informative representation that is easy for a\n\t  * person to read.\n\t  * \n\t  * @return  a string representation of the object.\n\t  */\n\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[row=\" + row + \",col=\" + col\n\t\t\t+ \",colspan=\" + colspan + \",effectiveColspan=\" + effectiveColspan\n\t\t\t+ \",rowspan=\" + rowspan + \",effectiveRowspan=\" + effectiveRowspan\n\t\t\t+ \",placeholder=\" + placeholder + \",component=\" + component\n\t\t\t+ \",mainConstraints=\" + mainConstraints + \"]\";", "functions": [{"function_name": "getColspanPlaceholder", "code": "\tExtendedGridLayoutConstraints getColspanPlaceholder(boolean forUsage)\n\t{\n\t\tif (1 == colspan)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tExtendedGridLayoutConstraints result = new ExtendedGridLayoutConstraints(row,col+1,colspan==REMAINDER ? REMAINDER : colspan-1,rowspan,component,true,null == mainConstraints ? this : mainConstraints);\n\t\tif (forUsage && (result.mainConstraints.row == row))\n\t\t{\n\t\t\tresult.mainConstraints.effectiveColspan++;\n\t\t}\n\t\treturn result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [6, 8], [3, 9], [4, 10], [7, 11], [9, 12], [9, 13], [9, 14], [9, 15], [10, 16], [12, 17], [14, 18], [14, 19], [15, 20], [17, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 6], [9, 3], [10, 4], [11, 7], [12, 9], [13, 9], [14, 9], [15, 9], [16, 10], [17, 12], [18, 14], [19, 14], [20, 15], [21, 17], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getRowspanPlaceholder", "code": "\tExtendedGridLayoutConstraints getRowspanPlaceholder(boolean forUsage)\n\t{\n\t\tif (1 == rowspan)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tExtendedGridLayoutConstraints result = new ExtendedGridLayoutConstraints(row+1,col,colspan,rowspan==REMAINDER ? REMAINDER : rowspan-1,component,true,null == mainConstraints ? this : mainConstraints);\n\t\tif (forUsage && (result.mainConstraints.col == col))\n\t\t{\n\t\t\tresult.mainConstraints.effectiveRowspan++;\n\t\t}\n\t\treturn result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [6, 8], [3, 9], [4, 10], [7, 11], [9, 12], [9, 13], [9, 14], [9, 15], [10, 16], [12, 17], [14, 18], [14, 19], [15, 20], [17, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 6], [9, 3], [10, 4], [11, 7], [12, 9], [13, 9], [14, 9], [15, 9], [16, 10], [17, 12], [18, 14], [19, 14], [20, 15], [21, 17], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getRow", "code": "\tpublic int getRow()\n\t{\n\t\treturn row;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCol", "code": "\tpublic int getCol()\n\t{\n\t\treturn col;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCol", "code": "\tvoid setCol(int col)\n\t{\n\t\tif (col < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"col must be non-negative (\" + col + ')');\n\t\t}\n\t\tthis.col = col;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getColspan", "code": "\tpublic int getColspan()\n\t{\n\t\treturn colspan;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEffectiveColspan", "code": "\tint getEffectiveColspan()\n\t{\n\t\treturn null == mainConstraints ? effectiveColspan : mainConstraints.effectiveColspan;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRowspan", "code": "\tpublic int getRowspan()\n\t{\n\t\treturn rowspan;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEffectiveRowspan", "code": "\tint getEffectiveRowspan()\n\t{\n\t\treturn null == mainConstraints ? effectiveRowspan : mainConstraints.effectiveRowspan;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getComponent", "code": "\tComponent getComponent()\n\t{\n\t\treturn component;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isPlaceholder", "code": "\tpublic boolean isPlaceholder()\n\t{\n\t\treturn placeholder;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getWorkCopy", "code": "\tExtendedGridLayoutConstraints getWorkCopy()\n\t{\n\t\treturn new ExtendedGridLayoutConstraints(row,col,colspan,rowspan,component,placeholder,(null == mainConstraints ? null : mainConstraints.getWorkCopy()));", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "equals", "code": "\tpublic boolean equals(Object o)\n\t{\n\t\tif ((o == null) ||\n\t\t    (!(o instanceof ExtendedGridLayoutConstraints)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (component == null)\n\t\t{\n\t\t\treturn ((ExtendedGridLayoutConstraints)o).component == null;\n\t\t}\n\t\treturn component.equals(((ExtendedGridLayoutConstraints)o).component);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [8, 13], [10, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 8], [14, 10], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "hashCode", "code": "\tpublic int hashCode()\n\t{\n\t\tif (null == component)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn component.hashCode();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[row=\" + row + \",col=\" + col\n\t\t\t+ \",colspan=\" + colspan + \",effectiveColspan=\" + effectiveColspan\n\t\t\t+ \",rowspan=\" + rowspan + \",effectiveRowspan=\" + effectiveRowspan\n\t\t\t+ \",placeholder=\" + placeholder + \",component=\" + component\n\t\t\t+ \",mainConstraints=\" + mainConstraints + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [14, 15], [14, 16], [16, 17], [17, 18], [17, 19], [19, 20], [20, 21], [20, 22], [22, 23], [23, 24], [23, 25], [25, 26], [26, 27], [26, 28], [28, 29], [29, 30], [29, 31], [31, 32], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 14], [16, 14], [17, 16], [18, 17], [19, 17], [20, 19], [21, 20], [22, 20], [23, 22], [24, 23], [25, 23], [26, 25], [27, 26], [28, 26], [29, 28], [30, 29], [31, 29], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "ExtendedGridLayoutConstraints", "code": "\tpublic ExtendedGridLayoutConstraints(Component component)\n\t{\n\t\tthis(0,0,1,1,component,false,null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ExtendedGridLayoutConstraints", "code": "\tpublic ExtendedGridLayoutConstraints(int row, Component component)\n\t{\n\t\tthis(row,0,1,1,component,false,null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ExtendedGridLayoutConstraints", "code": "\tpublic ExtendedGridLayoutConstraints(int row, int colspan, int rowspan, Component component)\n\t{\n\t\tthis(row,0,colspan,rowspan,component,false,null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ExtendedGridLayoutConstraints", "code": "\tprivate ExtendedGridLayoutConstraints(int row, int col, int colspan, int rowspan, Component component, boolean placeholder, ExtendedGridLayoutConstraints mainConstraints)\n\t{\n\t\tif (row < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"row must be non-negative (\" + row + ')');\n\t\t}\n\t\tif (col < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"col must be non-negative (\" + col + ')');\n\t\t}\n\t\tif (colspan < 1)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"colspan must be at least 1 (\" + colspan + ')');\n\t\t}\n\t\tif (rowspan < 1)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"rowspan must be at least 1 (\" + rowspan + ')');\n\t\t}\n\t\tthis.row = row;\n\t\tthis.col = col;\n\t\tthis.colspan = colspan;\n\t\teffectiveColspan = 1;\n\t\tthis.rowspan = rowspan;\n\t\teffectiveRowspan = 1;\n\t\tthis.component = component;\n\t\tthis.placeholder = placeholder;\n\t\tthis.mainConstraints = mainConstraints;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [2, 22], [3, 23], [4, 24], [15, 25], [17, 26], [1, 27], [21, 28], [2, 29], [22, 30], [3, 31], [23, 32], [4, 33], [24, 34], [27, 35], [29, 36], [31, 37], [33, 38], [35, 39], [36, 40], [37, 41], [38, 42], [39, 43], [39, 44], [40, 45], [40, 46], [41, 47], [41, 48], [42, 49], [42, 50], [44, 51], [46, 52], [48, 53], [50, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 2], [23, 3], [24, 4], [25, 15], [26, 17], [27, 1], [28, 21], [29, 2], [30, 22], [31, 3], [32, 23], [33, 4], [34, 24], [35, 27], [36, 29], [37, 31], [38, 33], [39, 35], [40, 36], [41, 37], [42, 38], [43, 39], [44, 39], [45, 40], [46, 40], [47, 41], [48, 41], [49, 42], [50, 42], [51, 44], [52, 46], [53, 48], [54, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}], "label": 0}
{"sample_id": "ant-1.4-178", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/zip/AsiExtraField.java", "language": "java", "name": "org.apache.tools.zip.AsiExtraField", "code": "public class AsiExtraField implements ZipExtraField, UnixStat, Cloneable {\n\n    private final static ZipShort HEADER_ID = new ZipShort(0x756E);\n\n    /**\n     * Standard Unix stat(2) file mode.\n     *\n     * @since 1.1\n     */\n    private int mode = 0;\n    /**\n     * User ID.\n     *\n     * @since 1.1\n     */\n    private int uid = 0;\n    /**\n     * Group ID.\n     *\n     * @since 1.1\n     */\n    private int gid = 0;\n    /**\n     * File this entry points to, if it is a symbolic link.\n     *\n     * <p>empty string - if entry is not a symbolic link.</p>\n     *\n     * @since 1.1\n     */\n    private String link = \"\";\n    /**\n     * Is this an entry for a directory?\n     *\n     * @since 1.1\n     */\n    private boolean dirFlag = false;\n\n    /**\n     * Instance used to calculate checksums.\n     *\n     * @since 1.1\n     */\n    private CRC32 crc = new CRC32();\n\n    public AsiExtraField() {\n    }\n\n    /**\n     * The Header-ID.\n     *\n     * @since 1.1\n     */\n    public ZipShort getHeaderId() {\n        return HEADER_ID;\n    }\n\n    /**\n     * Length of the extra field in the local file data - without\n     * Header-ID or length specifier.\n     *\n     * @since 1.1\n     */\n    public ZipShort getLocalFileDataLength() {\n                            return(getLinkedFile().getBytes().length);\n    }\n\n    /**\n     * Delegate to local file data.\n     *\n     * @since 1.1\n     */\n    public ZipShort getCentralDirectoryLength() {\n        return getLocalFileDataLength();\n    }\n\n    /**\n     * The actual data to put into local file data - without Header-ID\n     * or length specifier.\n     *\n     * @since 1.1\n     */\n    public byte[] getLocalFileDataData() {\n        byte[] data = new byte[getLocalFileDataLength().getValue() - 4];\n        System.arraycopy((new ZipShort(getMode())).getBytes(), 0, data, 0, 2);\n\n        byte[] linkArray = getLinkedFile().getBytes();\n        System.arraycopy((new ZipLong(linkArray.length)).getBytes(),\n                         0, data, 2, 4);\n\n        System.arraycopy((new ZipShort(getUserId())).getBytes(), \n                         0, data, 6, 2);\n        System.arraycopy((new ZipShort(getGroupId())).getBytes(),\n                         0, data, 8, 2);\n\n        System.arraycopy(linkArray, 0, data, 10, linkArray.length);\n\n        crc.reset();\n        crc.update(data);\n        long checksum = crc.getValue();\n\n        byte[] result = new byte[data.length + 4];\n        System.arraycopy((new ZipLong(checksum)).getBytes(), 0, result, 0, 4);\n        System.arraycopy(data, 0, result, 4, data.length);\n        return result;\n    }\n\n    /**\n     * Delegate to local file data.\n     *\n     * @since 1.1\n     */\n    public byte[] getCentralDirectoryData() {\n        return getLocalFileDataData();\n    }\n\n    /**\n     * Set the user id.\n     *\n     * @since 1.1\n     */\n    public void setUserId(int uid) {\n        this.uid = uid;\n    }\n\n    /**\n     * Get the user id.\n     *\n     * @since 1.1\n     */\n    public int getUserId() {\n        return uid;\n    }\n\n    /**\n     * Set the group id.\n     *\n     * @since 1.1\n     */\n    public void setGroupId(int gid) {\n        this.gid = gid;\n    }\n\n    /**\n     * Get the group id.\n     *\n     * @since 1.1\n     */\n    public int getGroupId() {\n        return gid;\n    }\n\n    /**\n     * Indicate that this entry is a symbolic link to the given filename.\n     *\n     * @param name Name of the file this entry links to, empty String\n     *             if it is not a symbolic link.\n     *\n     * @since 1.1\n     */\n    public void setLinkedFile(String name) {\n        link = name;\n        mode = getMode(mode);\n    }\n\n    /**\n     * Name of linked file\n     *\n     * @return name of the file this entry links to if it is a\n     *         symbolic link, the empty string otherwise.\n     *\n     * @since 1.1\n     */\n    public String getLinkedFile() {\n        return link;\n    }\n\n    /**\n     * Is this entry a symbolic link?\n     *\n     * @since 1.1\n     */\n    public boolean isLink() {\n        return getLinkedFile().length() != 0;\n    }\n\n    /**\n     * File mode of this file.\n     *\n     * @since 1.1\n     */\n    public void setMode(int mode) {\n        this.mode = getMode(mode);\n    }\n\n    /**\n     * File mode of this file.\n     *\n     * @since 1.1\n     */\n    public int getMode() {\n        return mode;\n    }\n\n    /**\n     * Indicate whether this entry is a directory.\n     *\n     * @since 1.1\n     */\n    public void setDirectory(boolean dirFlag) {\n        this.dirFlag = dirFlag;\n        mode = getMode(mode);\n    }\n\n    /**\n     * Is this entry a directory?\n     *\n     * @since 1.1\n     */\n    public boolean isDirectory() {\n        return dirFlag && !isLink();\n    }\n\n    /**\n     * Populate data from this array as if it was in local file data.\n     *\n     * @since 1.1\n     */\n    public void parseFromLocalFileData(byte[] data, int offset, int length)\n        throws ZipException {\n\n        long givenChecksum = (new ZipLong(data, offset)).getValue();\n        byte[] tmp = new byte[length-4];\n        System.arraycopy(data, offset+4, tmp, 0, length-4);\n        crc.reset();\n        crc.update(tmp);\n        long realChecksum = crc.getValue();\n        if (givenChecksum != realChecksum) {\n            throw new ZipException(\"bad CRC checksum \" \n                                   + Long.toHexString(givenChecksum)\n                                   + \" instead of \" \n                                   + Long.toHexString(realChecksum));\n        }\n        \n        int newMode = (new ZipShort(tmp, 0)).getValue();\n        byte[] linkArray = new byte[(int) (new ZipLong(tmp, 2)).getValue()];\n        uid = (new ZipShort(tmp, 6)).getValue();\n        gid = (new ZipShort(tmp, 8)).getValue();\n\n        if (linkArray.length == 0) {\n            link = \"\";\n        } else {\n            System.arraycopy(tmp, 10, linkArray, 0, linkArray.length);\n            link = new String(linkArray);\n        }\n        setDirectory((newMode & DIR_FLAG) != 0);\n        setMode(newMode);\n\t\t\n    }\n\n    /**\n     * Get the file mode for given permissions with the correct file type.\n     *\n     * @since 1.1\n     */\n    protected int getMode(int mode) {\n        int type = FILE_FLAG;\n        if (isLink()) {\n            type = LINK_FLAG;\n        } else if (isDirectory()) {\n            type = DIR_FLAG;\n        }\n        return type | (mode & PERM_MASK);", "functions": [{"function_name": "getHeaderId", "code": "    public ZipShort getHeaderId() {\n        return HEADER_ID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalFileDataLength", "code": "    public ZipShort getLocalFileDataLength() {\n                            return(getLinkedFile().getBytes().length);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCentralDirectoryLength", "code": "    public ZipShort getCentralDirectoryLength() {\n        return getLocalFileDataLength();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalFileDataData", "code": "    public byte[] getLocalFileDataData() {\n        byte[] data = new byte[getLocalFileDataLength().getValue() - 4];\n        System.arraycopy((new ZipShort(getMode())).getBytes(), 0, data, 0, 2);\n\n        byte[] linkArray = getLinkedFile().getBytes();\n        System.arraycopy((new ZipLong(linkArray.length)).getBytes(),\n                         0, data, 2, 4);\n\n        System.arraycopy((new ZipShort(getUserId())).getBytes(), \n                         0, data, 6, 2);\n        System.arraycopy((new ZipShort(getGroupId())).getBytes(),\n                         0, data, 8, 2);\n\n        System.arraycopy(linkArray, 0, data, 10, linkArray.length);\n\n        crc.reset();\n        crc.update(data);\n        long checksum = crc.getValue();\n\n        byte[] result = new byte[data.length + 4];\n        System.arraycopy((new ZipLong(checksum)).getBytes(), 0, result, 0, 4);\n        System.arraycopy(data, 0, result, 4, data.length);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [6, 15], [6, 16], [7, 17], [7, 18], [7, 19], [7, 20], [3, 21], [10, 22], [10, 23], [11, 24], [11, 25], [11, 26], [11, 27], [12, 28], [12, 29], [12, 30], [12, 31], [13, 32], [13, 33], [13, 34], [13, 35], [4, 36], [14, 37], [14, 38], [14, 39], [14, 40], [20, 41], [2, 42], [27, 43], [27, 44], [31, 45], [31, 46], [35, 47], [36, 48], [40, 49], [40, 50], [5, 51], [42, 52], [51, 53], [51, 54], [54, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 6], [16, 6], [17, 7], [18, 7], [19, 7], [20, 7], [21, 3], [22, 10], [23, 10], [24, 11], [25, 11], [26, 11], [27, 11], [28, 12], [29, 12], [30, 12], [31, 12], [32, 13], [33, 13], [34, 13], [35, 13], [36, 4], [37, 14], [38, 14], [39, 14], [40, 14], [41, 20], [42, 2], [43, 27], [44, 27], [45, 31], [46, 31], [47, 35], [48, 36], [49, 40], [50, 40], [51, 5], [52, 42], [53, 51], [54, 51], [55, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "getCentralDirectoryData", "code": "    public byte[] getCentralDirectoryData() {\n        return getLocalFileDataData();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUserId", "code": "    public void setUserId(int uid) {\n        this.uid = uid;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUserId", "code": "    public int getUserId() {\n        return uid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setGroupId", "code": "    public void setGroupId(int gid) {\n        this.gid = gid;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getGroupId", "code": "    public int getGroupId() {\n        return gid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLinkedFile", "code": "    public void setLinkedFile(String name) {\n        link = name;\n        mode = getMode(mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLinkedFile", "code": "    public String getLinkedFile() {\n        return link;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isLink", "code": "    public boolean isLink() {\n        return getLinkedFile().length() != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setMode", "code": "    public void setMode(int mode) {\n        this.mode = getMode(mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMode", "code": "    public int getMode() {\n        return mode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDirectory", "code": "    public void setDirectory(boolean dirFlag) {\n        this.dirFlag = dirFlag;\n        mode = getMode(mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isDirectory", "code": "    public boolean isDirectory() {\n        return dirFlag && !isLink();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "parseFromLocalFileData", "code": "    public void parseFromLocalFileData(byte[] data, int offset, int length)\n        throws ZipException {\n\n        long givenChecksum = (new ZipLong(data, offset)).getValue();\n        byte[] tmp = new byte[length-4];\n        System.arraycopy(data, offset+4, tmp, 0, length-4);\n        crc.reset();\n        crc.update(tmp);\n        long realChecksum = crc.getValue();\n        if (givenChecksum != realChecksum) {\n            throw new ZipException(\"bad CRC checksum \" \n                                   + Long.toHexString(givenChecksum)\n                                   + \" instead of \" \n                                   + Long.toHexString(realChecksum));\n        }\n        \n        int newMode = (new ZipShort(tmp, 0)).getValue();\n        byte[] linkArray = new byte[(int) (new ZipLong(tmp, 2)).getValue()];\n        uid = (new ZipShort(tmp, 6)).getValue();\n        gid = (new ZipShort(tmp, 8)).getValue();\n\n        if (linkArray.length == 0) {\n            link = \"\";\n        } else {\n            System.arraycopy(tmp, 10, linkArray, 0, linkArray.length);\n            link = new String(linkArray);\n        }\n        setDirectory((newMode & DIR_FLAG) != 0);\n        setMode(newMode);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [0, 14], [0, 15], [4, 16], [0, 17], [0, 18], [0, 19], [12, 20], [13, 21], [14, 22], [15, 23], [3, 24], [4, 25], [5, 26], [19, 27], [19, 28], [19, 29], [7, 30], [20, 31], [20, 32], [1, 33], [1, 34], [1, 35], [22, 36], [22, 37], [23, 38], [23, 39], [24, 40], [24, 41], [25, 42], [27, 43], [29, 44], [6, 45], [30, 46], [33, 47], [34, 48], [34, 49], [35, 50], [2, 51], [42, 52], [45, 53], [51, 54], [51, 55], [52, 56], [52, 57], [57, 58], [57, 59], [59, 60], [59, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 0], [15, 0], [16, 4], [17, 0], [18, 0], [19, 0], [20, 12], [21, 13], [22, 14], [23, 15], [24, 3], [25, 4], [26, 5], [27, 19], [28, 19], [29, 19], [30, 7], [31, 20], [32, 20], [33, 1], [34, 1], [35, 1], [36, 22], [37, 22], [38, 23], [39, 23], [40, 24], [41, 24], [42, 25], [43, 27], [44, 29], [45, 6], [46, 30], [47, 33], [48, 34], [49, 34], [50, 35], [51, 2], [52, 42], [53, 45], [54, 51], [55, 51], [56, 52], [57, 52], [58, 57], [59, 57], [60, 59], [61, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "getMode", "code": "    protected int getMode(int mode) {\n        int type = FILE_FLAG;\n        if (isLink()) {\n            type = LINK_FLAG;\n        } else if (isDirectory()) {\n            type = DIR_FLAG;\n        }\n        return type | (mode & PERM_MASK);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [5, 8], [6, 9], [2, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 5], [9, 6], [10, 2], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "AsiExtraField", "code": "    public AsiExtraField() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.6-743", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.cvslib.ChangeLogParser", "code": "class ChangeLogParser {\n    private static final int GET_FILE = 1;\n    private static final int GET_DATE = 2;\n    private static final int GET_COMMENT = 3;\n    private static final int GET_REVISION = 4;\n    private static final int GET_PREVIOUS_REV = 5;\n\n    /** input format for dates read in from cvs log */\n    private static final SimpleDateFormat c_inputDate\n        = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n    static {\n        TimeZone utc = TimeZone.getTimeZone(\"UTC\");\n        c_inputDate.setTimeZone(utc);\n    }\n\n    private String m_file;\n    private String m_date;\n    private String m_author;\n    private String m_comment;\n    private String m_revision;\n    private String m_previousRevision;\n\n    private int m_status = GET_FILE;\n\n    /** rcs entries */\n    private final Hashtable m_entries = new Hashtable();\n\n    /**\n     * Get a list of rcs entries as an array.\n     *\n     * @return a list of rcs entries as an array\n     */\n    CVSEntry[] getEntrySetAsArray() {\n        final CVSEntry[] array = new CVSEntry[ m_entries.size() ];\n        Enumeration e = m_entries.elements();\n        int i = 0;\n        while (e.hasMoreElements()) {\n            array[i++] = (CVSEntry) e.nextElement();\n        }\n        return array;\n    }\n\n    /**\n     * Receive notification about the process writing\n     * to standard output.\n     */\n    public void stdout(final String line) {\n        switch(m_status) {\n            case GET_FILE:\n                reset();\n                processFile(line);\n                break;\n            case GET_REVISION:\n                processRevision(line);\n                break;\n\n            case GET_DATE:\n                processDate(line);\n                break;\n\n            case GET_COMMENT:\n                processComment(line);\n                break;\n\n            case GET_PREVIOUS_REV:\n                processGetPreviousRevision(line);\n                break;\n        }\n    }\n\n    /**\n     * Process a line while in \"GET_COMMENT\" state.\n     *\n     * @param line the line\n     */\n    private void processComment(final String line) {\n        final String lineSeparator = System.getProperty(\"line.separator\");\n        if (line.startsWith(\"======\")) {\n            final int end;\n            m_comment = m_comment.substring(0, end);\n            saveEntry();\n            m_status = GET_FILE;\n        } else if (line.startsWith(\"----------------------------\")) {\n            final int end;\n            m_comment = m_comment.substring(0, end);\n            m_status = GET_PREVIOUS_REV;\n        } else {\n            m_comment += line + lineSeparator;\n        }\n    }\n\n    /**\n     * Process a line while in \"GET_FILE\" state.\n     *\n     * @param line the line\n     */\n    private void processFile(final String line) {\n        if (line.startsWith(\"Working file:\")) {\n            m_file = line.substring(14, line.length());\n            m_status = GET_REVISION;\n        }\n    }\n\n    /**\n     * Process a line while in \"REVISION\" state.\n     *\n     * @param line the line\n     */\n    private void processRevision(final String line) {\n        if (line.startsWith(\"revision\")) {\n            m_revision = line.substring(9);\n            m_status = GET_DATE;\n        } else if (line.startsWith(\"======\")) {\n            m_status = GET_FILE;\n        }\n    }\n\n    /**\n     * Process a line while in \"DATE\" state.\n     *\n     * @param line the line\n     */\n    private void processDate(final String line) {\n        if (line.startsWith(\"date:\")) {\n            m_date = line.substring(6, 25);\n            String lineData = line.substring(line.indexOf(\";\") + 1);\n            m_author = lineData.substring(10, lineData.indexOf(\";\"));\n\n            m_status = GET_COMMENT;\n\n            m_comment = \"\";\n        }\n    }\n\n    /**\n     * Process a line while in \"GET_PREVIOUS_REVISION\" state.\n     *\n     * @param line the line\n     */\n    private void processGetPreviousRevision(final String line) {\n        if (!line.startsWith(\"revision\")) {\n            throw new IllegalStateException(\"Unexpected line from CVS: \"\n                + line);\n        }\n        m_previousRevision = line.substring(9);\n\n        saveEntry();\n\n        m_revision = m_previousRevision;\n        m_status = GET_DATE;\n    }\n\n    /**\n     * Utility method that saves the current entry.\n     */\n    private void saveEntry() {\n        final String entryKey = m_date + m_author + m_comment;\n        CVSEntry entry;\n        if (!m_entries.containsKey(entryKey)) {\n            entry = new CVSEntry(parseDate(m_date), m_author, m_comment);\n            m_entries.put(entryKey, entry);\n        } else {\n            entry = (CVSEntry) m_entries.get(entryKey);\n        }\n\n        entry.addFile(m_file, m_revision, m_previousRevision);\n    }\n\n    /**\n     * Parse date out from expected format.\n     *\n     * @param date the string holding dat\n     * @return the date object or null if unknown date format\n     */\n    private Date parseDate(final String date) {\n        try {\n            return c_inputDate.parse(date);\n        } catch (ParseException e) {\n            return null;\n        }\n    }\n\n    /**\n     * reset all internal attributes except status.\n     */\n    private void reset() {\n        m_file = null;\n        m_date = null;\n        m_author = null;\n        m_comment = null;\n        m_revision = null;\n        m_previousRevision = null;", "functions": [{"function_name": "getEntrySetAsArray", "code": "    CVSEntry[] getEntrySetAsArray() {\n        final CVSEntry[] array = new CVSEntry[ m_entries.size() ];\n        Enumeration e = m_entries.elements();\n        int i = 0;\n        while (e.hasMoreElements()) {\n            array[i++] = (CVSEntry) e.nextElement();\n        }\n        return array;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [2, 9], [5, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 2], [10, 5], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "stdout", "code": "    public void stdout(final String line) {\n        switch(m_status) {\n            case GET_FILE:\n                reset();\n                processFile(line);\n                break;\n            case GET_REVISION:\n                processRevision(line);\n                break;\n\n            case GET_DATE:\n                processDate(line);\n                break;\n\n            case GET_COMMENT:\n                processComment(line);\n                break;\n\n            case GET_PREVIOUS_REV:\n                processGetPreviousRevision(line);\n                break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "processComment", "code": "    private void processComment(final String line) {\n        final String lineSeparator = System.getProperty(\"line.separator\");\n        if (line.startsWith(\"======\")) {\n            final int end;\n            m_comment = m_comment.substring(0, end);\n            saveEntry();\n            m_status = GET_FILE;\n        } else if (line.startsWith(\"----------------------------\")) {\n            final int end;\n            m_comment = m_comment.substring(0, end);\n            m_status = GET_PREVIOUS_REV;\n        } else {\n            m_comment += line + lineSeparator;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [2, 9], [4, 10], [6, 11], [1, 12], [1, 13], [1, 14], [9, 15], [4, 16], [4, 17], [4, 18], [14, 19], [16, 20], [18, 21], [19, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 2], [10, 4], [11, 6], [12, 1], [13, 1], [14, 1], [15, 9], [16, 4], [17, 4], [18, 4], [19, 14], [20, 16], [21, 18], [22, 19], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "processFile", "code": "    private void processFile(final String line) {\n        if (line.startsWith(\"Working file:\")) {\n            m_file = line.substring(14, line.length());\n            m_status = GET_REVISION;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [6, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 6], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "processRevision", "code": "    private void processRevision(final String line) {\n        if (line.startsWith(\"revision\")) {\n            m_revision = line.substring(9);\n            m_status = GET_DATE;\n        } else if (line.startsWith(\"======\")) {\n            m_status = GET_FILE;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 8], [1, 9], [3, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 1], [9, 1], [10, 3], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "processDate", "code": "    private void processDate(final String line) {\n        if (line.startsWith(\"date:\")) {\n            m_date = line.substring(6, 25);\n            String lineData = line.substring(line.indexOf(\";\") + 1);\n            m_author = lineData.substring(10, lineData.indexOf(\";\"));\n\n            m_status = GET_COMMENT;\n\n            m_comment = \"\";", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [8, 11], [4, 12], [9, 13], [11, 14], [11, 15], [12, 16], [13, 17], [13, 18], [14, 19], [16, 20], [16, 21], [21, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 8], [12, 4], [13, 9], [14, 11], [15, 11], [16, 12], [17, 13], [18, 13], [19, 14], [20, 16], [21, 16], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "processGetPreviousRevision", "code": "    private void processGetPreviousRevision(final String line) {\n        if (!line.startsWith(\"revision\")) {\n            throw new IllegalStateException(\"Unexpected line from CVS: \"\n                + line);\n        }\n        m_previousRevision = line.substring(9);\n\n        saveEntry();\n\n        m_revision = m_previousRevision;\n        m_status = GET_DATE;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [6, 8], [1, 9], [7, 10], [8, 11], [9, 12], [12, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 6], [9, 1], [10, 7], [11, 8], [12, 9], [13, 12], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "saveEntry", "code": "    private void saveEntry() {\n        final String entryKey = m_date + m_author + m_comment;\n        CVSEntry entry;\n        if (!m_entries.containsKey(entryKey)) {\n            entry = new CVSEntry(parseDate(m_date), m_author, m_comment);\n            m_entries.put(entryKey, entry);\n        } else {\n            entry = (CVSEntry) m_entries.get(entryKey);\n        }\n\n        entry.addFile(m_file, m_revision, m_previousRevision);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [1, 8], [1, 9], [6, 10], [9, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 1], [9, 1], [10, 6], [11, 9], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "parseDate", "code": "    private Date parseDate(final String date) {\n        try {\n            return c_inputDate.parse(date);\n        } catch (ParseException e) {\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "reset", "code": "    private void reset() {\n        m_file = null;\n        m_date = null;\n        m_author = null;\n        m_comment = null;\n        m_revision = null;\n        m_previousRevision = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "ant-1.6-546", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/input/MultipleChoiceInputRequest.java", "language": "java", "name": "org.apache.tools.ant.input.MultipleChoiceInputRequest", "code": "public class MultipleChoiceInputRequest extends InputRequest {\n    private Vector choices = new Vector();\n\n    /**\n     * @param prompt The prompt to show to the user.  Must not be null.\n     * @param choices holds all input values that are allowed.\n     *                Must not be null.\n     */\n    public MultipleChoiceInputRequest(String prompt, Vector choices) {\n        super(prompt);\n        if (choices == null) {\n            throw new IllegalArgumentException(\"choices must not be null\");\n        }\n        this.choices = choices;\n    }\n\n    /**\n     * @return The possible values.\n     */\n    public Vector getChoices() {\n        return choices;\n    }\n\n    /**\n     * @return true if the input is one of the allowed values.\n     */\n    public boolean isInputValid() {\n        return choices.contains(getInput());", "functions": [{"function_name": "getChoices", "code": "    public Vector getChoices() {\n        return choices;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isInputValid", "code": "    public boolean isInputValid() {\n        return choices.contains(getInput());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "MultipleChoiceInputRequest", "code": "    public MultipleChoiceInputRequest(String prompt, Vector choices) {\n        super(prompt);\n        if (choices == null) {\n            throw new IllegalArgumentException(\"choices must not be null\");\n        }\n        this.choices = choices;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "ant-1.7-1335", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter", "code": "public abstract class DefaultCompilerAdapter implements CompilerAdapter {\n\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n\n    protected Path src;\n    protected File destDir;\n    protected String encoding;\n    protected boolean debug = false;\n    protected boolean optimize = false;\n    protected boolean deprecation = false;\n    protected boolean depend = false;\n    protected boolean verbose = false;\n    protected String target;\n    protected Path bootclasspath;\n    protected Path extdirs;\n    protected Path compileClasspath;\n    protected Path compileSourcepath;\n    protected Project project;\n    protected Location location;\n    protected boolean includeAntRuntime;\n    protected boolean includeJavaRuntime;\n    protected String memoryInitialSize;\n    protected String memoryMaximumSize;\n\n    protected File[] compileList;\n    protected Javac attributes;\n\n    protected static final String lSep = StringUtils.LINE_SEP;\n\n\n    /**\n     * Set the Javac instance which contains the configured compilation\n     * attributes.\n     *\n     * @param attributes a configured Javac task.\n     */\n    public void setJavac(Javac attributes) {\n        this.attributes = attributes;\n        src = attributes.getSrcdir();\n        destDir = attributes.getDestdir();\n        encoding = attributes.getEncoding();\n        debug = attributes.getDebug();\n        optimize = attributes.getOptimize();\n        deprecation = attributes.getDeprecation();\n        depend = attributes.getDepend();\n        verbose = attributes.getVerbose();\n        target = attributes.getTarget();\n        bootclasspath = attributes.getBootclasspath();\n        extdirs = attributes.getExtdirs();\n        compileList = attributes.getFileList();\n        compileClasspath = attributes.getClasspath();\n        compileSourcepath = attributes.getSourcepath();\n        project = attributes.getProject();\n        location = attributes.getLocation();\n        includeAntRuntime = attributes.getIncludeantruntime();\n        includeJavaRuntime = attributes.getIncludejavaruntime();\n        memoryInitialSize = attributes.getMemoryInitialSize();\n        memoryMaximumSize = attributes.getMemoryMaximumSize();\n    }\n\n    /**\n     * Get the Javac task instance associated with this compiler adapter\n     *\n     * @return the configured Javac task instance used by this adapter.\n     */\n    public Javac getJavac() {\n        return attributes;\n    }\n\n    /**\n     * Get the project this compiler adapter was created in.\n     * @return the owner project\n     * @since Ant 1.6\n     */\n    protected Project getProject() {\n        return project;\n    }\n\n    /**\n     * Builds the compilation classpath.\n     * @return the compilation class path\n     */\n    protected Path getCompileClasspath() {\n        Path classpath = new Path(project);\n\n\n        if (destDir != null && getJavac().isIncludeDestClasses()) {\n            classpath.setLocation(destDir);\n        }\n\n\n        Path cp = compileClasspath;\n        if (cp == null) {\n            cp = new Path(project);\n        }\n        if (includeAntRuntime) {\n            classpath.addExisting(cp.concatSystemClasspath(\"last\"));\n        } else {\n            classpath.addExisting(cp.concatSystemClasspath(\"ignore\"));\n        }\n\n        if (includeJavaRuntime) {\n            classpath.addJavaRuntime();\n        }\n\n        return classpath;\n    }\n\n    /**\n     * Get the command line arguments for the switches.\n     * @param cmd the command line\n     * @return the command line\n     */\n    protected Commandline setupJavacCommandlineSwitches(Commandline cmd) {\n        return setupJavacCommandlineSwitches(cmd, false);\n    }\n\n    /**\n     * Does the command line argument processing common to classic and\n     * modern.  Doesn't add the files to compile.\n     * @param cmd the command line\n     * @param useDebugLevel if true set set the debug level with the -g switch\n     * @return the command line\n     */\n    protected Commandline setupJavacCommandlineSwitches(Commandline cmd,\n                                                        boolean useDebugLevel) {\n        Path classpath = getCompileClasspath();\n        Path sourcepath = null;\n        if (compileSourcepath != null) {\n            sourcepath = compileSourcepath;\n        } else {\n            sourcepath = src;\n        }\n\n        String memoryParameterPrefix = assumeJava11() ? \"-J-\" : \"-J-X\";\n        if (memoryInitialSize != null) {\n            if (!attributes.isForkedJavac()) {\n                attributes.log(\"Since fork is false, ignoring \"\n                               + \"memoryInitialSize setting.\",\n                               Project.MSG_WARN);\n            } else {\n                cmd.createArgument().setValue(memoryParameterPrefix\n                                              + \"ms\" + memoryInitialSize);\n            }\n        }\n\n        if (memoryMaximumSize != null) {\n            if (!attributes.isForkedJavac()) {\n                attributes.log(\"Since fork is false, ignoring \"\n                               + \"memoryMaximumSize setting.\",\n                               Project.MSG_WARN);\n            } else {\n                cmd.createArgument().setValue(memoryParameterPrefix\n                                              + \"mx\" + memoryMaximumSize);\n            }\n        }\n\n        if (attributes.getNowarn()) {\n            cmd.createArgument().setValue(\"-nowarn\");\n        }\n\n        if (deprecation) {\n            cmd.createArgument().setValue(\"-deprecation\");\n        }\n\n        if (destDir != null) {\n            cmd.createArgument().setValue(\"-d\");\n            cmd.createArgument().setFile(destDir);\n        }\n\n        cmd.createArgument().setValue(\"-classpath\");\n\n        if (assumeJava11()) {\n            Path cp = new Path(project);\n\n            Path bp = getBootClassPath();\n            if (bp.size() > 0) {\n                cp.append(bp);\n            }\n\n            if (extdirs != null) {\n                cp.addExtdirs(extdirs);\n            }\n            cp.append(classpath);\n            cp.append(sourcepath);\n            cmd.createArgument().setPath(cp);\n        } else {\n            cmd.createArgument().setPath(classpath);\n            if (sourcepath.size() > 0) {\n                cmd.createArgument().setValue(\"-sourcepath\");\n                cmd.createArgument().setPath(sourcepath);\n            }\n            if (target != null) {\n                cmd.createArgument().setValue(\"-target\");\n                cmd.createArgument().setValue(target);\n            }\n\n            Path bp = getBootClassPath();\n            if (bp.size() > 0) {\n                cmd.createArgument().setValue(\"-bootclasspath\");\n                cmd.createArgument().setPath(bp);\n            }\n\n            if (extdirs != null && extdirs.size() > 0) {\n                cmd.createArgument().setValue(\"-extdirs\");\n                cmd.createArgument().setPath(extdirs);\n            }\n        }\n\n        if (encoding != null) {\n            cmd.createArgument().setValue(\"-encoding\");\n            cmd.createArgument().setValue(encoding);\n        }\n        if (debug) {\n            if (useDebugLevel && !assumeJava11()) {\n                String debugLevel = attributes.getDebugLevel();\n                if (debugLevel != null) {\n                    cmd.createArgument().setValue(\"-g:\" + debugLevel);\n                } else {\n                    cmd.createArgument().setValue(\"-g\");\n                }\n            } else {\n                cmd.createArgument().setValue(\"-g\");\n            }\n        } else if (getNoDebugArgument() != null) {\n            cmd.createArgument().setValue(getNoDebugArgument());\n        }\n        if (optimize) {\n            cmd.createArgument().setValue(\"-O\");\n        }\n\n        if (depend) {\n            if (assumeJava11()) {\n                cmd.createArgument().setValue(\"-depend\");\n            } else if (assumeJava12()) {\n                cmd.createArgument().setValue(\"-Xdepend\");\n            } else {\n                attributes.log(\"depend attribute is not supported by the \"\n                               + \"modern compiler\", Project.MSG_WARN);\n            }\n        }\n\n        if (verbose) {\n            cmd.createArgument().setValue(\"-verbose\");\n        }\n\n        addCurrentCompilerArgs(cmd);\n\n        return cmd;\n    }\n\n    /**\n     * Does the command line argument processing for modern.  Doesn't\n     * add the files to compile.\n     * @param cmd the command line\n     * @return the command line\n     */\n    protected Commandline setupModernJavacCommandlineSwitches(Commandline cmd) {\n        setupJavacCommandlineSwitches(cmd, true);\n        if (attributes.getSource() != null && !assumeJava13()) {\n            cmd.createArgument().setValue(\"-source\");\n            String source = attributes.getSource();\n            if (source.equals(\"1.1\") || source.equals(\"1.2\")) {\n                cmd.createArgument().setValue(\"1.3\");\n            } else {\n                cmd.createArgument().setValue(source);\n            }\n        } else if ((assumeJava15() || assumeJava16())\n                   && attributes.getTarget() != null) {\n            String t = attributes.getTarget();\n            if (t.equals(\"1.1\") || t.equals(\"1.2\") || t.equals(\"1.3\")\n                || t.equals(\"1.4\")) {\n                String s = t;\n                if (t.equals(\"1.1\")) {\n                    s = \"1.2\";\n                }\n                attributes.log(\"\", Project.MSG_WARN);\n                attributes.log(\"          WARNING\", Project.MSG_WARN);\n                attributes.log(\"\", Project.MSG_WARN);\n                attributes.log(\"The -source switch defaults to 1.5 in JDK 1.5 and 1.6.\",\n                               Project.MSG_WARN);\n                attributes.log(\"If you specify -target \" + t\n                               + \" you now must also specify -source \" + s\n                               + \".\", Project.MSG_WARN);\n                attributes.log(\"Ant will implicitly add -source \" + s\n                               + \" for you.  Please change your build file.\",\n                               Project.MSG_WARN);\n                cmd.createArgument().setValue(\"-source\");\n                cmd.createArgument().setValue(s);\n            }\n        }\n        return cmd;\n    }\n\n    /**\n     * Does the command line argument processing for modern and adds\n     * the files to compile as well.\n     * @return the command line\n     */\n    protected Commandline setupModernJavacCommand() {\n        Commandline cmd = new Commandline();\n        setupModernJavacCommandlineSwitches(cmd);\n\n        logAndAddFilesToCompile(cmd);\n        return cmd;\n    }\n\n    /**\n     * Set up the command line.\n     * @return the command line\n     */\n    protected Commandline setupJavacCommand() {\n        return setupJavacCommand(false);\n    }\n\n    /**\n     * Does the command line argument processing for classic and adds\n     * the files to compile as well.\n     * @param debugLevelCheck if true set the debug level with the -g switch\n     * @return the command line\n     */\n    protected Commandline setupJavacCommand(boolean debugLevelCheck) {\n        Commandline cmd = new Commandline();\n        setupJavacCommandlineSwitches(cmd, debugLevelCheck);\n        logAndAddFilesToCompile(cmd);\n        return cmd;\n    }\n\n    /**\n     * Logs the compilation parameters, adds the files to compile and logs the\n     * &quot;niceSourceList&quot;\n     * @param cmd the command line\n     */\n    protected void logAndAddFilesToCompile(Commandline cmd) {\n        attributes.log(\"Compilation \" + cmd.describeArguments(),\n                       Project.MSG_VERBOSE);\n\n        StringBuffer niceSourceList = new StringBuffer(\"File\");\n        if (compileList.length != 1) {\n            niceSourceList.append(\"s\");\n        }\n        niceSourceList.append(\" to be compiled:\");\n\n        niceSourceList.append(StringUtils.LINE_SEP);\n\n        for (int i = 0; i < compileList.length; i++) {\n            String arg = compileList[i].getAbsolutePath();\n            cmd.createArgument().setValue(arg);\n            niceSourceList.append(\"    \");\n            niceSourceList.append(arg);\n            niceSourceList.append(StringUtils.LINE_SEP);\n        }\n\n        attributes.log(niceSourceList.toString(), Project.MSG_VERBOSE);\n    }\n\n    /**\n     * Do the compile with the specified arguments.\n     * @param args - arguments to pass to process on command line\n     * @param firstFileName - index of the first source file in args,\n     * if the index is negative, no temporary file will ever be\n     * created, but this may hit the command line length limit on your\n     * system.\n     * @return the exit code of the compilation\n     */\n    protected int executeExternalCompile(String[] args, int firstFileName) {\n        return executeExternalCompile(args, firstFileName, true);\n    }\n\n    /**\n     * Do the compile with the specified arguments.\n     * @param args - arguments to pass to process on command line\n     * @param firstFileName - index of the first source file in args,\n     * if the index is negative, no temporary file will ever be\n     * created, but this may hit the command line length limit on your\n     * system.\n     * @param quoteFiles - if set to true, filenames containing\n     * spaces will be quoted when they appear in the external file.\n     * This is necessary when running JDK 1.4's javac and probably\n     * others.\n     * @return the exit code of the compilation\n     *\n     * @since Ant 1.6\n     */\n    protected int executeExternalCompile(String[] args, int firstFileName,\n                                         boolean quoteFiles) {\n        String[] commandArray = null;\n        File tmpFile = null;\n\n        try {\n            /*\n             * Many system have been reported to get into trouble with\n             * long command lines - no, not only Windows ;-).\n             *\n             * POSIX seems to define a lower limit of 4k, so use a temporary\n             * file if the total length of the command line exceeds this limit.\n             */\n            if (Commandline.toString(args).length() > COMMAND_LINE_LIMIT\n                && firstFileName >= 0) {\n                PrintWriter out = null;\n                try {\n                    tmpFile = FILE_UTILS.createTempFile(\n                        \"files\", \"\", getJavac().getTempdir(), true, true);\n                    out = new PrintWriter(new FileWriter(tmpFile));\n                    for (int i = firstFileName; i < args.length; i++) {\n                        if (quoteFiles && args[i].indexOf(\" \") > -1) {\n                            args[i] = args[i].replace(File.separatorChar, '/');\n                            out.println(\"\\\"\" + args[i] + \"\\\"\");\n                        } else {\n                            out.println(args[i]);\n                        }\n                    }\n                    out.flush();\n                    commandArray = new String[firstFileName + 1];\n                    System.arraycopy(args, 0, commandArray, 0, firstFileName);\n                    commandArray[firstFileName] = \"@\" + tmpFile;\n                } catch (IOException e) {\n                    throw new BuildException(\"Error creating temporary file\",\n                                             e, location);\n                } finally {\n                    FileUtils.close(out);\n                }\n            } else {\n                commandArray = args;\n            }\n\n            try {\n                Execute exe = new Execute(\n                                  new LogStreamHandler(attributes,\n                                                       Project.MSG_INFO,\n                                                       Project.MSG_WARN));\n                if (Os.isFamily(\"openvms\")) {\n                    exe.setVMLauncher(true);\n                }\n                exe.setAntRun(project);\n                exe.setWorkingDirectory(project.getBaseDir());\n                exe.setCommandline(commandArray);\n                exe.execute();\n                return exe.getExitValue();\n            } catch (IOException e) {\n                throw new BuildException(\"Error running \" + args[0]\n                        + \" compiler\", e, location);\n            }\n        } finally {\n            if (tmpFile != null) {\n                tmpFile.delete();\n            }\n        }\n    }\n\n    /**\n     * Add extdirs to classpath\n     * @param classpath the classpath to use\n     * @deprecated since 1.5.x.\n     *             Use org.apache.tools.ant.types.Path#addExtdirs instead.\n     */\n    protected void addExtdirsToClasspath(Path classpath) {\n        classpath.addExtdirs(extdirs);\n    }\n\n    /**\n     * Adds the command line arguments specific to the current implementation.\n     * @param cmd the command line to use\n     */\n    protected void addCurrentCompilerArgs(Commandline cmd) {\n        cmd.addArguments(getJavac().getCurrentCompilerArgs());\n    }\n\n    /**\n     * Shall we assume JDK 1.1 command line switches?\n     * @return true if jdk 1.1\n     * @since Ant 1.5\n     */\n    protected boolean assumeJava11() {\n        return \"javac1.1\".equals(attributes.getCompilerVersion());\n    }\n\n    /**\n     * Shall we assume JDK 1.2 command line switches?\n     * @return true if jdk 1.2\n     * @since Ant 1.5\n     */\n    protected boolean assumeJava12() {\n        return \"javac1.2\".equals(attributes.getCompilerVersion())\n            || (\"classic\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_2))\n            || (\"extJavac\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_2));\n    }\n\n    /**\n     * Shall we assume JDK 1.3 command line switches?\n     * @return true if jdk 1.3\n     * @since Ant 1.5\n     */\n    protected boolean assumeJava13() {\n        return \"javac1.3\".equals(attributes.getCompilerVersion())\n            || (\"classic\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_3))\n            || (\"modern\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_3))\n            || (\"extJavac\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_3));\n    }\n\n    /**\n     * Shall we assume JDK 1.4 command line switches?\n     * @return true if jdk 1.4\n     * @since Ant 1.6.3\n     */\n    protected boolean assumeJava14() {\n        return \"javac1.4\".equals(attributes.getCompilerVersion())\n            || (\"classic\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_4))\n            || (\"modern\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_4))\n            || (\"extJavac\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_4));\n    }\n\n    /**\n     * Shall we assume JDK 1.5 command line switches?\n     * @return true if JDK 1.5\n     * @since Ant 1.6.3\n     */\n    protected boolean assumeJava15() {\n        return \"javac1.5\".equals(attributes.getCompilerVersion())\n            || (\"classic\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_5))\n            || (\"modern\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_5))\n            || (\"extJavac\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_5));\n    }\n\n    /**\n     * Shall we assume JDK 1.6 command line switches?\n     * @return true if JDK 1.6\n     * @since Ant 1.7\n     */\n    protected boolean assumeJava16() {\n        return \"javac1.6\".equals(attributes.getCompilerVersion())\n            || (\"classic\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_6))\n            || (\"modern\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_6))\n            || (\"extJavac\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_6));\n    }\n\n    /**\n     * Combines a user specified bootclasspath with the system\n     * bootclasspath taking build.sysclasspath into account.\n     *\n     * @return a non-null Path instance that combines the user\n     * specified and the system bootclasspath.\n     */\n    protected Path getBootClassPath() {\n        Path bp = new Path(project);\n        if (bootclasspath != null) {\n            bp.append(bootclasspath);\n        }\n        return bp.concatSystemBootClasspath(\"ignore\");\n    }\n\n    /**\n     * The argument the compiler wants to see if the debug attribute\n     * has been set to false.\n     *\n     * <p>A return value of <code>null</code> means no argument at all.</p>\n     *\n     * @return \"-g:none\" unless we expect to invoke a JDK 1.1 compiler.\n     *\n     * @since Ant 1.6.3\n     */\n    protected String getNoDebugArgument() {\n        return assumeJava11() ? null : \"-g:none\";", "functions": [{"function_name": "setJavac", "code": "    public void setJavac(Javac attributes) {\n        this.attributes = attributes;\n        src = attributes.getSrcdir();\n        destDir = attributes.getDestdir();\n        encoding = attributes.getEncoding();\n        debug = attributes.getDebug();\n        optimize = attributes.getOptimize();\n        deprecation = attributes.getDeprecation();\n        depend = attributes.getDepend();\n        verbose = attributes.getVerbose();\n        target = attributes.getTarget();\n        bootclasspath = attributes.getBootclasspath();\n        extdirs = attributes.getExtdirs();\n        compileList = attributes.getFileList();\n        compileClasspath = attributes.getClasspath();\n        compileSourcepath = attributes.getSourcepath();\n        project = attributes.getProject();\n        location = attributes.getLocation();\n        includeAntRuntime = attributes.getIncludeantruntime();\n        includeJavaRuntime = attributes.getIncludejavaruntime();\n        memoryInitialSize = attributes.getMemoryInitialSize();\n        memoryMaximumSize = attributes.getMemoryMaximumSize();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [2, 23], [3, 24], [4, 25], [5, 26], [6, 27], [7, 28], [8, 29], [9, 30], [10, 31], [11, 32], [12, 33], [13, 34], [14, 35], [15, 36], [16, 37], [17, 38], [18, 39], [19, 40], [20, 41], [21, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 2], [24, 3], [25, 4], [26, 5], [27, 6], [28, 7], [29, 8], [30, 9], [31, 10], [32, 11], [33, 12], [34, 13], [35, 14], [36, 15], [37, 16], [38, 17], [39, 18], [40, 19], [41, 20], [42, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getJavac", "code": "    public Javac getJavac() {\n        return attributes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProject", "code": "    protected Project getProject() {\n        return project;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCompileClasspath", "code": "    protected Path getCompileClasspath() {\n        Path classpath = new Path(project);\n\n\n        if (destDir != null && getJavac().isIncludeDestClasses()) {\n            classpath.setLocation(destDir);\n        }\n\n\n        Path cp = compileClasspath;\n        if (cp == null) {\n            cp = new Path(project);\n        }\n        if (includeAntRuntime) {\n            classpath.addExisting(cp.concatSystemClasspath(\"last\"));\n        } else {\n            classpath.addExisting(cp.concatSystemClasspath(\"ignore\"));\n        }\n\n        if (includeJavaRuntime) {\n            classpath.addJavaRuntime();\n        }\n\n        return classpath;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [6, 9], [8, 10], [9, 11], [9, 12], [7, 13], [2, 14], [3, 15], [3, 16], [4, 17], [6, 18], [11, 19], [12, 20], [15, 21], [16, 22], [17, 23], [21, 24], [22, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 6], [10, 8], [11, 9], [12, 9], [13, 7], [14, 2], [15, 3], [16, 3], [17, 4], [18, 6], [19, 11], [20, 12], [21, 15], [22, 16], [23, 17], [24, 21], [25, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "setupJavacCommandlineSwitches", "code": "    protected Commandline setupJavacCommandlineSwitches(Commandline cmd) {\n        return setupJavacCommandlineSwitches(cmd, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setupJavacCommandlineSwitches", "code": "    protected Commandline setupJavacCommandlineSwitches(Commandline cmd,\n                                                        boolean useDebugLevel) {\n        Path classpath = getCompileClasspath();\n        Path sourcepath = null;\n        if (compileSourcepath != null) {\n            sourcepath = compileSourcepath;\n        } else {\n            sourcepath = src;\n        }\n\n        String memoryParameterPrefix = assumeJava11() ? \"-J-\" : \"-J-X\";\n        if (memoryInitialSize != null) {\n            if (!attributes.isForkedJavac()) {\n                attributes.log(\"Since fork is false, ignoring \"\n                               + \"memoryInitialSize setting.\",\n                               Project.MSG_WARN);\n            } else {\n                cmd.createArgument().setValue(memoryParameterPrefix\n                                              + \"ms\" + memoryInitialSize);\n            }\n        }\n\n        if (memoryMaximumSize != null) {\n            if (!attributes.isForkedJavac()) {\n                attributes.log(\"Since fork is false, ignoring \"\n                               + \"memoryMaximumSize setting.\",\n                               Project.MSG_WARN);\n            } else {\n                cmd.createArgument().setValue(memoryParameterPrefix\n                                              + \"mx\" + memoryMaximumSize);\n            }\n        }\n\n        if (attributes.getNowarn()) {\n            cmd.createArgument().setValue(\"-nowarn\");\n        }\n\n        if (deprecation) {\n            cmd.createArgument().setValue(\"-deprecation\");\n        }\n\n        if (destDir != null) {\n            cmd.createArgument().setValue(\"-d\");\n            cmd.createArgument().setFile(destDir);\n        }\n\n        cmd.createArgument().setValue(\"-classpath\");\n\n        if (assumeJava11()) {\n            Path cp = new Path(project);\n\n            Path bp = getBootClassPath();\n            if (bp.size() > 0) {\n                cp.append(bp);\n            }\n\n            if (extdirs != null) {\n                cp.addExtdirs(extdirs);\n            }\n            cp.append(classpath);\n            cp.append(sourcepath);\n            cmd.createArgument().setPath(cp);\n        } else {\n            cmd.createArgument().setPath(classpath);\n            if (sourcepath.size() > 0) {\n                cmd.createArgument().setValue(\"-sourcepath\");\n                cmd.createArgument().setPath(sourcepath);\n            }\n            if (target != null) {\n                cmd.createArgument().setValue(\"-target\");\n                cmd.createArgument().setValue(target);\n            }\n\n            Path bp = getBootClassPath();\n            if (bp.size() > 0) {\n                cmd.createArgument().setValue(\"-bootclasspath\");\n                cmd.createArgument().setPath(bp);\n            }\n\n            if (extdirs != null && extdirs.size() > 0) {\n                cmd.createArgument().setValue(\"-extdirs\");\n                cmd.createArgument().setPath(extdirs);\n            }\n        }\n\n        if (encoding != null) {\n            cmd.createArgument().setValue(\"-encoding\");\n            cmd.createArgument().setValue(encoding);\n        }\n        if (debug) {\n            if (useDebugLevel && !assumeJava11()) {\n                String debugLevel = attributes.getDebugLevel();\n                if (debugLevel != null) {\n                    cmd.createArgument().setValue(\"-g:\" + debugLevel);\n                } else {\n                    cmd.createArgument().setValue(\"-g\");\n                }\n            } else {\n                cmd.createArgument().setValue(\"-g\");\n            }\n        } else if (getNoDebugArgument() != null) {\n            cmd.createArgument().setValue(getNoDebugArgument());\n        }\n        if (optimize) {\n            cmd.createArgument().setValue(\"-O\");\n        }\n\n        if (depend) {\n            if (assumeJava11()) {\n                cmd.createArgument().setValue(\"-depend\");\n            } else if (assumeJava12()) {\n                cmd.createArgument().setValue(\"-Xdepend\");\n            } else {\n                attributes.log(\"depend attribute is not supported by the \"\n                               + \"modern compiler\", Project.MSG_WARN);\n            }\n        }\n\n        if (verbose) {\n            cmd.createArgument().setValue(\"-verbose\");\n        }\n\n        addCurrentCompilerArgs(cmd);\n\n        return cmd;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [5, 20], [6, 21], [7, 22], [0, 23], [8, 24], [10, 25], [11, 26], [12, 27], [14, 28], [3, 29], [20, 30], [5, 31], [21, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [7, 39], [7, 40], [7, 41], [23, 42], [24, 43], [11, 44], [26, 45], [12, 46], [27, 47], [13, 48], [28, 49], [15, 50], [16, 51], [2, 52], [29, 53], [29, 54], [4, 55], [30, 56], [30, 57], [31, 58], [6, 59], [6, 60], [33, 61], [34, 62], [36, 63], [37, 64], [7, 65], [7, 66], [7, 67], [7, 68], [38, 69], [39, 70], [42, 71], [8, 72], [8, 73], [9, 74], [10, 75], [44, 76], [46, 77], [48, 78], [48, 79], [48, 80], [14, 81], [14, 82], [52, 83], [53, 84], [55, 85], [20, 86], [31, 87], [31, 88], [58, 89], [59, 90], [60, 91], [61, 92], [61, 93], [62, 94], [62, 95], [35, 96], [63, 97], [64, 98], [64, 99], [65, 100], [66, 101], [69, 102], [70, 103], [70, 104], [40, 105], [41, 106], [72, 107], [73, 108], [74, 109], [75, 110], [83, 111], [29, 112], [85, 113], [86, 114], [31, 115], [87, 116], [91, 117], [33, 118], [33, 119], [92, 120], [92, 121], [93, 122], [34, 123], [34, 124], [36, 125], [36, 126], [37, 127], [37, 128], [38, 129], [39, 130], [108, 131], [109, 132], [110, 133], [44, 134], [44, 135], [46, 136], [46, 137], [53, 138], [53, 139], [112, 140], [114, 141], [115, 142], [116, 143], [88, 144], [118, 145], [119, 146], [123, 147], [124, 148], [125, 149], [126, 150], [127, 151], [128, 152], [134, 153], [135, 154], [136, 155], [137, 156], [138, 157], [139, 158], [140, 159], [142, 160], [87, 161], [87, 162], [146, 163], [148, 164], [150, 165], [152, 166], [153, 167], [154, 168], [154, 169], [155, 170], [156, 171], [156, 172], [157, 173], [157, 174], [158, 175], [161, 176], [162, 177], [167, 178], [170, 179], [176, 180], [177, 181], [178, 182], [179, 183], [181, 184], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 5], [21, 6], [22, 7], [23, 0], [24, 8], [25, 10], [26, 11], [27, 12], [28, 14], [29, 3], [30, 20], [31, 5], [32, 21], [33, 7], [34, 7], [35, 7], [36, 7], [37, 7], [38, 7], [39, 7], [40, 7], [41, 7], [42, 23], [43, 24], [44, 11], [45, 26], [46, 12], [47, 27], [48, 13], [49, 28], [50, 15], [51, 16], [52, 2], [53, 29], [54, 29], [55, 4], [56, 30], [57, 30], [58, 31], [59, 6], [60, 6], [61, 33], [62, 34], [63, 36], [64, 37], [65, 7], [66, 7], [67, 7], [68, 7], [69, 38], [70, 39], [71, 42], [72, 8], [73, 8], [74, 9], [75, 10], [76, 44], [77, 46], [78, 48], [79, 48], [80, 48], [81, 14], [82, 14], [83, 52], [84, 53], [85, 55], [86, 20], [87, 31], [88, 31], [89, 58], [90, 59], [91, 60], [92, 61], [93, 61], [94, 62], [95, 62], [96, 35], [97, 63], [98, 64], [99, 64], [100, 65], [101, 66], [102, 69], [103, 70], [104, 70], [105, 40], [106, 41], [107, 72], [108, 73], [109, 74], [110, 75], [111, 83], [112, 29], [113, 85], [114, 86], [115, 31], [116, 87], [117, 91], [118, 33], [119, 33], [120, 92], [121, 92], [122, 93], [123, 34], [124, 34], [125, 36], [126, 36], [127, 37], [128, 37], [129, 38], [130, 39], [131, 108], [132, 109], [133, 110], [134, 44], [135, 44], [136, 46], [137, 46], [138, 53], [139, 53], [140, 112], [141, 114], [142, 115], [143, 116], [144, 88], [145, 118], [146, 119], [147, 123], [148, 124], [149, 125], [150, 126], [151, 127], [152, 128], [153, 134], [154, 135], [155, 136], [156, 137], [157, 138], [158, 139], [159, 140], [160, 142], [161, 87], [162, 87], [163, 146], [164, 148], [165, 150], [166, 152], [167, 153], [168, 154], [169, 154], [170, 155], [171, 156], [172, 156], [173, 157], [174, 157], [175, 158], [176, 161], [177, 162], [178, 167], [179, 170], [180, 176], [181, 177], [182, 178], [183, 179], [184, 181], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184]]}, {"function_name": "setupModernJavacCommandlineSwitches", "code": "    protected Commandline setupModernJavacCommandlineSwitches(Commandline cmd) {\n        setupJavacCommandlineSwitches(cmd, true);\n        if (attributes.getSource() != null && !assumeJava13()) {\n            cmd.createArgument().setValue(\"-source\");\n            String source = attributes.getSource();\n            if (source.equals(\"1.1\") || source.equals(\"1.2\")) {\n                cmd.createArgument().setValue(\"1.3\");\n            } else {\n                cmd.createArgument().setValue(source);\n            }\n        } else if ((assumeJava15() || assumeJava16())\n                   && attributes.getTarget() != null) {\n            String t = attributes.getTarget();\n            if (t.equals(\"1.1\") || t.equals(\"1.2\") || t.equals(\"1.3\")\n                || t.equals(\"1.4\")) {\n                String s = t;\n                if (t.equals(\"1.1\")) {\n                    s = \"1.2\";\n                }\n                attributes.log(\"\", Project.MSG_WARN);\n                attributes.log(\"          WARNING\", Project.MSG_WARN);\n                attributes.log(\"\", Project.MSG_WARN);\n                attributes.log(\"The -source switch defaults to 1.5 in JDK 1.5 and 1.6.\",\n                               Project.MSG_WARN);\n                attributes.log(\"If you specify -target \" + t\n                               + \" you now must also specify -source \" + s\n                               + \".\", Project.MSG_WARN);\n                attributes.log(\"Ant will implicitly add -source \" + s\n                               + \" for you.  Please change your build file.\",\n                               Project.MSG_WARN);\n                cmd.createArgument().setValue(\"-source\");\n                cmd.createArgument().setValue(s);\n            }\n        }\n        return cmd;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [0, 6], [4, 7], [2, 8], [2, 9], [5, 10], [5, 11], [6, 12], [4, 13], [4, 14], [7, 15], [7, 16], [8, 17], [2, 18], [11, 19], [11, 20], [13, 21], [15, 22], [15, 23], [16, 24], [16, 25], [17, 26], [17, 27], [9, 28], [18, 29], [13, 30], [13, 31], [21, 32], [21, 33], [14, 34], [8, 35], [8, 36], [26, 37], [27, 38], [29, 39], [13, 40], [13, 41], [13, 42], [13, 43], [13, 44], [13, 45], [13, 46], [13, 47], [30, 48], [32, 49], [33, 50], [33, 51], [35, 52], [36, 53], [40, 54], [41, 55], [42, 56], [43, 57], [44, 58], [45, 59], [46, 60], [47, 61], [48, 62], [50, 63], [51, 64], [51, 65], [53, 66], [55, 67], [56, 68], [56, 69], [57, 70], [57, 71], [30, 72], [64, 73], [65, 74], [69, 75], [71, 76], [72, 77], [76, 78], [76, 79], [79, 80], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 0], [7, 4], [8, 2], [9, 2], [10, 5], [11, 5], [12, 6], [13, 4], [14, 4], [15, 7], [16, 7], [17, 8], [18, 2], [19, 11], [20, 11], [21, 13], [22, 15], [23, 15], [24, 16], [25, 16], [26, 17], [27, 17], [28, 9], [29, 18], [30, 13], [31, 13], [32, 21], [33, 21], [34, 14], [35, 8], [36, 8], [37, 26], [38, 27], [39, 29], [40, 13], [41, 13], [42, 13], [43, 13], [44, 13], [45, 13], [46, 13], [47, 13], [48, 30], [49, 32], [50, 33], [51, 33], [52, 35], [53, 36], [54, 40], [55, 41], [56, 42], [57, 43], [58, 44], [59, 45], [60, 46], [61, 47], [62, 48], [63, 50], [64, 51], [65, 51], [66, 53], [67, 55], [68, 56], [69, 56], [70, 57], [71, 57], [72, 30], [73, 64], [74, 65], [75, 69], [76, 71], [77, 72], [78, 76], [79, 76], [80, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "setupModernJavacCommand", "code": "    protected Commandline setupModernJavacCommand() {\n        Commandline cmd = new Commandline();\n        setupModernJavacCommandlineSwitches(cmd);\n\n        logAndAddFilesToCompile(cmd);\n        return cmd;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setupJavacCommand", "code": "    protected Commandline setupJavacCommand() {\n        return setupJavacCommand(false);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setupJavacCommand", "code": "    protected Commandline setupJavacCommand(boolean debugLevelCheck) {\n        Commandline cmd = new Commandline();\n        setupJavacCommandlineSwitches(cmd, debugLevelCheck);\n        logAndAddFilesToCompile(cmd);\n        return cmd;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "logAndAddFilesToCompile", "code": "    protected void logAndAddFilesToCompile(Commandline cmd) {\n        attributes.log(\"Compilation \" + cmd.describeArguments(),\n                       Project.MSG_VERBOSE);\n\n        StringBuffer niceSourceList = new StringBuffer(\"File\");\n        if (compileList.length != 1) {\n            niceSourceList.append(\"s\");\n        }\n        niceSourceList.append(\" to be compiled:\");\n\n        niceSourceList.append(StringUtils.LINE_SEP);\n\n        for (int i = 0; i < compileList.length; i++) {\n            String arg = compileList[i].getAbsolutePath();\n            cmd.createArgument().setValue(arg);\n            niceSourceList.append(\"    \");\n            niceSourceList.append(arg);\n            niceSourceList.append(StringUtils.LINE_SEP);\n        }\n\n        attributes.log(niceSourceList.toString(), Project.MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [0, 10], [5, 11], [1, 12], [8, 13], [9, 14], [3, 15], [10, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [2, 22], [15, 23], [16, 24], [16, 25], [19, 26], [20, 27], [22, 28], [12, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 0], [11, 5], [12, 1], [13, 8], [14, 9], [15, 3], [16, 10], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 2], [23, 15], [24, 16], [25, 16], [26, 19], [27, 20], [28, 22], [29, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "executeExternalCompile", "code": "    protected int executeExternalCompile(String[] args, int firstFileName) {\n        return executeExternalCompile(args, firstFileName, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "executeExternalCompile", "code": "    protected int executeExternalCompile(String[] args, int firstFileName,\n                                         boolean quoteFiles) {\n        String[] commandArray = null;\n        File tmpFile = null;\n\n        try {\n            /*\n             * Many system have been reported to get into trouble with\n             * long command lines - no, not only Windows ;-).\n             *\n             * POSIX seems to define a lower limit of 4k, so use a temporary\n             * file if the total length of the command line exceeds this limit.\n             */\n            if (Commandline.toString(args).length() > COMMAND_LINE_LIMIT\n                && firstFileName >= 0) {\n                PrintWriter out = null;\n                try {\n                    tmpFile = FILE_UTILS.createTempFile(\n                        \"files\", \"\", getJavac().getTempdir(), true, true);\n                    out = new PrintWriter(new FileWriter(tmpFile));\n                    for (int i = firstFileName; i < args.length; i++) {\n                        if (quoteFiles && args[i].indexOf(\" \") > -1) {\n                            args[i] = args[i].replace(File.separatorChar, '/');\n                            out.println(\"\\\"\" + args[i] + \"\\\"\");\n                        } else {\n                            out.println(args[i]);\n                        }\n                    }\n                    out.flush();\n                    commandArray = new String[firstFileName + 1];\n                    System.arraycopy(args, 0, commandArray, 0, firstFileName);\n                    commandArray[firstFileName] = \"@\" + tmpFile;\n                } catch (IOException e) {\n                    throw new BuildException(\"Error creating temporary file\",\n                                             e, location);\n                } finally {\n                    FileUtils.close(out);\n                }\n            } else {\n                commandArray = args;\n            }\n\n            try {\n                Execute exe = new Execute(\n                                  new LogStreamHandler(attributes,\n                                                       Project.MSG_INFO,\n                                                       Project.MSG_WARN));\n                if (Os.isFamily(\"openvms\")) {\n                    exe.setVMLauncher(true);\n                }\n                exe.setAntRun(project);\n                exe.setWorkingDirectory(project.getBaseDir());\n                exe.setCommandline(commandArray);\n                exe.execute();\n                return exe.getExitValue();\n            } catch (IOException e) {\n                throw new BuildException(\"Error running \" + args[0]\n                        + \" compiler\", e, location);\n            }\n        } finally {\n            if (tmpFile != null) {\n                tmpFile.delete();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "TRY", "IF", "BINARY_OP", "CATCH", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "TRY", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CATCH", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [8, 11], [8, 12], [8, 13], [8, 14], [9, 15], [2, 16], [3, 17], [10, 18], [11, 19], [12, 20], [8, 21], [8, 22], [8, 23], [8, 24], [13, 25], [9, 26], [9, 27], [15, 28], [15, 29], [7, 30], [19, 31], [23, 32], [25, 33], [14, 34], [9, 35], [26, 36], [26, 37], [28, 38], [29, 39], [31, 40], [13, 41], [34, 42], [26, 43], [36, 44], [26, 45], [26, 46], [26, 47], [26, 48], [37, 49], [26, 50], [26, 51], [27, 52], [39, 53], [40, 54], [40, 55], [41, 56], [44, 57], [45, 58], [46, 59], [46, 60], [37, 61], [50, 62], [51, 63], [55, 64], [57, 65], [58, 66], [47, 67], [61, 68], [62, 69], [63, 70], [63, 71], [63, 72], [63, 73], [63, 74], [67, 75], [68, 76], [72, 77], [55, 78], [61, 79], [61, 80], [61, 81], [76, 82], [80, 83], [76, 84], [83, 85], [83, 86], [81, 87], [84, 88], [86, 89], [87, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 8], [12, 8], [13, 8], [14, 8], [15, 9], [16, 2], [17, 3], [18, 10], [19, 11], [20, 12], [21, 8], [22, 8], [23, 8], [24, 8], [25, 13], [26, 9], [27, 9], [28, 15], [29, 15], [30, 7], [31, 19], [32, 23], [33, 25], [34, 14], [35, 9], [36, 26], [37, 26], [38, 28], [39, 29], [40, 31], [41, 13], [42, 34], [43, 26], [44, 36], [45, 26], [46, 26], [47, 26], [48, 26], [49, 37], [50, 26], [51, 26], [52, 27], [53, 39], [54, 40], [55, 40], [56, 41], [57, 44], [58, 45], [59, 46], [60, 46], [61, 37], [62, 50], [63, 51], [64, 55], [65, 57], [66, 58], [67, 47], [68, 61], [69, 62], [70, 63], [71, 63], [72, 63], [73, 63], [74, 63], [75, 67], [76, 68], [77, 72], [78, 55], [79, 61], [80, 61], [81, 61], [82, 76], [83, 80], [84, 76], [85, 83], [86, 83], [87, 81], [88, 84], [89, 86], [90, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "addExtdirsToClasspath", "code": "    protected void addExtdirsToClasspath(Path classpath) {\n        classpath.addExtdirs(extdirs);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addCurrentCompilerArgs", "code": "    protected void addCurrentCompilerArgs(Commandline cmd) {\n        cmd.addArguments(getJavac().getCurrentCompilerArgs());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "assumeJava11", "code": "    protected boolean assumeJava11() {\n        return \"javac1.1\".equals(attributes.getCompilerVersion());", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "assumeJava12", "code": "    protected boolean assumeJava12() {\n        return \"javac1.2\".equals(attributes.getCompilerVersion())\n            || (\"classic\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_2))\n            || (\"extJavac\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_2));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [6, 9], [7, 10], [7, 11], [8, 12], [9, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 6], [10, 7], [11, 7], [12, 8], [13, 9], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "assumeJava13", "code": "    protected boolean assumeJava13() {\n        return \"javac1.3\".equals(attributes.getCompilerVersion())\n            || (\"classic\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_3))\n            || (\"modern\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_3))\n            || (\"extJavac\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_3));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [6, 9], [7, 10], [7, 11], [8, 12], [8, 13], [9, 14], [11, 15], [12, 16], [12, 17], [13, 18], [15, 19], [17, 20], [18, 21], [20, 22], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 6], [10, 7], [11, 7], [12, 8], [13, 8], [14, 9], [15, 11], [16, 12], [17, 12], [18, 13], [19, 15], [20, 17], [21, 18], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "assumeJava14", "code": "    protected boolean assumeJava14() {\n        return \"javac1.4\".equals(attributes.getCompilerVersion())\n            || (\"classic\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_4))\n            || (\"modern\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_4))\n            || (\"extJavac\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_4));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [6, 9], [7, 10], [7, 11], [8, 12], [8, 13], [9, 14], [11, 15], [12, 16], [12, 17], [13, 18], [15, 19], [17, 20], [18, 21], [20, 22], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 6], [10, 7], [11, 7], [12, 8], [13, 8], [14, 9], [15, 11], [16, 12], [17, 12], [18, 13], [19, 15], [20, 17], [21, 18], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "assumeJava15", "code": "    protected boolean assumeJava15() {\n        return \"javac1.5\".equals(attributes.getCompilerVersion())\n            || (\"classic\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_5))\n            || (\"modern\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_5))\n            || (\"extJavac\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_5));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [6, 9], [7, 10], [7, 11], [8, 12], [8, 13], [9, 14], [11, 15], [12, 16], [12, 17], [13, 18], [15, 19], [17, 20], [18, 21], [20, 22], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 6], [10, 7], [11, 7], [12, 8], [13, 8], [14, 9], [15, 11], [16, 12], [17, 12], [18, 13], [19, 15], [20, 17], [21, 18], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "assumeJava16", "code": "    protected boolean assumeJava16() {\n        return \"javac1.6\".equals(attributes.getCompilerVersion())\n            || (\"classic\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_6))\n            || (\"modern\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_6))\n            || (\"extJavac\".equals(attributes.getCompilerVersion())\n                && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_6));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [6, 9], [7, 10], [7, 11], [8, 12], [8, 13], [9, 14], [11, 15], [12, 16], [12, 17], [13, 18], [15, 19], [17, 20], [18, 21], [20, 22], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 6], [10, 7], [11, 7], [12, 8], [13, 8], [14, 9], [15, 11], [16, 12], [17, 12], [18, 13], [19, 15], [20, 17], [21, 18], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getBootClassPath", "code": "    protected Path getBootClassPath() {\n        Path bp = new Path(project);\n        if (bootclasspath != null) {\n            bp.append(bootclasspath);\n        }\n        return bp.concatSystemBootClasspath(\"ignore\");", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [5, 7], [3, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 5], [8, 3], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getNoDebugArgument", "code": "    protected String getNoDebugArgument() {\n        return assumeJava11() ? null : \"-g:none\";", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "ant-1.4-217", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/TaskOutputStream.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.TaskOutputStream", "code": "public class TaskOutputStream extends OutputStream {\n\n    private Task task;\n    private StringBuffer line;\n    private int msgOutputLevel;\n\n    /**\n     * Constructs a new JavacOutputStream with the given project\n     * as the output source for messages.\n     */\n\n    TaskOutputStream(Task task, int msgOutputLevel) {\n        this.task = task;\n        this.msgOutputLevel = msgOutputLevel;\n\n        line = new StringBuffer();\n    }\n\n    /**\n     * Write a character to the output stream. This method looks\n     * to make sure that there isn't an error being reported and\n     * will flush each line of input out to the project's log stream.\n     */\n\n    public void write(int c) throws IOException {\n        char cc = (char)c;\n        if (cc == '\\r' || cc == '\\n') {\n            if (line.length() > 0) {\n                processLine();\n            }\n        } else {\n            line.append(cc);\n        }\n    }\n\n    /**\n     * Processes a line of input and determines if an error occured.\n     */\n\n    private void processLine() {\n        String s = line.toString();\n        task.log(s, msgOutputLevel);\n        line = new StringBuffer();", "functions": [{"function_name": "write", "code": "    public void write(int c) throws IOException {\n        char cc = (char)c;\n        if (cc == '\\r' || cc == '\\n') {\n            if (line.length() > 0) {\n                processLine();\n            }\n        } else {\n            line.append(cc);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [5, 9], [6, 10], [7, 11], [9, 12], [9, 13], [5, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 5], [10, 6], [11, 7], [12, 9], [13, 9], [14, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "processLine", "code": "    private void processLine() {\n        String s = line.toString();\n        task.log(s, msgOutputLevel);\n        line = new StringBuffer();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "TaskOutputStream", "code": "    TaskOutputStream(Task task, int msgOutputLevel) {\n        this.task = task;\n        this.msgOutputLevel = msgOutputLevel;\n\n        line = new StringBuffer();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.7-8597", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/res/XPATHErrorResources_ru.java", "language": "java", "name": "org.apache.xpath.res.XPATHErrorResources_ru", "code": "public class XPATHErrorResources_ru extends ListResourceBundle\n{\n\n/*\n * General notes to translators:\n *\n * This file contains error and warning messages related to XPath Error\n * Handling.\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n *  8) The context node is the node in the document with respect to which an\n *     XPath expression is being evaluated.\n *\n *  9) An iterator is an object that traverses nodes in the tree, one at a time.\n *\n *  10) NCName is an XML term used to describe a name that does not contain a\n *     colon (a \"no-colon name\").\n *\n *  11) QName is an XML term meaning \"qualified name\".\n */\n\n  /** Field MAX_CODE          */\n\n  /** Field MAX_WARNING          */\n\n  /** Field MAX_OTHERS          */\n  public static final int MAX_OTHERS = 20;\n\n  /** Field MAX_MESSAGES          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * static variables\n   */\n  public static final String ERROR0000 = \"ERROR0000\";\n  public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH =\n         \"ER_CURRENT_NOT_ALLOWED_IN_MATCH\";\n  public static final String ER_CURRENT_TAKES_NO_ARGS =\n         \"ER_CURRENT_TAKES_NO_ARGS\";\n  public static final String ER_DOCUMENT_REPLACED = \"ER_DOCUMENT_REPLACED\";\n  public static final String ER_CONTEXT_HAS_NO_OWNERDOC =\n         \"ER_CONTEXT_HAS_NO_OWNERDOC\";\n  public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS =\n         \"ER_LOCALNAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS =\n         \"ER_NAMESPACEURI_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS =\n         \"ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NUMBER_HAS_TOO_MANY_ARGS =\n         \"ER_NUMBER_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAME_HAS_TOO_MANY_ARGS =\n         \"ER_NAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRING_HAS_TOO_MANY_ARGS =\n         \"ER_STRING_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS =\n         \"ER_STRINGLENGTH_HAS_TOO_MANY_ARGS\";\n  public static final String ER_TRANSLATE_TAKES_3_ARGS =\n         \"ER_TRANSLATE_TAKES_3_ARGS\";\n  public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG =\n         \"ER_UNPARSEDENTITYURI_TAKES_1_ARG\";\n  public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED =\n         \"ER_NAMESPACEAXIS_NOT_IMPLEMENTED\";\n  public static final String ER_UNKNOWN_AXIS = \"ER_UNKNOWN_AXIS\";\n  public static final String ER_UNKNOWN_MATCH_OPERATION =\n         \"ER_UNKNOWN_MATCH_OPERATION\";\n  public static final String ER_INCORRECT_ARG_LENGTH =\"ER_INCORRECT_ARG_LENGTH\";\n  public static final String ER_CANT_CONVERT_TO_NUMBER =\n         \"ER_CANT_CONVERT_TO_NUMBER\";\n  public static final String ER_CANT_CONVERT_TO_NODELIST =\n         \"ER_CANT_CONVERT_TO_NODELIST\";\n  public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST =\n         \"ER_CANT_CONVERT_TO_MUTABLENODELIST\";\n  public static final String ER_CANT_CONVERT_TO_TYPE =\"ER_CANT_CONVERT_TO_TYPE\";\n  public static final String ER_EXPECTED_MATCH_PATTERN =\n         \"ER_EXPECTED_MATCH_PATTERN\";\n  public static final String ER_COULDNOT_GET_VAR_NAMED =\n         \"ER_COULDNOT_GET_VAR_NAMED\";\n  public static final String ER_UNKNOWN_OPCODE = \"ER_UNKNOWN_OPCODE\";\n  public static final String ER_EXTRA_ILLEGAL_TOKENS =\"ER_EXTRA_ILLEGAL_TOKENS\";\n  public static final String ER_EXPECTED_DOUBLE_QUOTE =\n         \"ER_EXPECTED_DOUBLE_QUOTE\";\n  public static final String ER_EXPECTED_SINGLE_QUOTE =\n         \"ER_EXPECTED_SINGLE_QUOTE\";\n  public static final String ER_EMPTY_EXPRESSION = \"ER_EMPTY_EXPRESSION\";\n  public static final String ER_EXPECTED_BUT_FOUND = \"ER_EXPECTED_BUT_FOUND\";\n  public static final String ER_INCORRECT_PROGRAMMER_ASSERTION =\n         \"ER_INCORRECT_PROGRAMMER_ASSERTION\";\n  public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL =\n         \"ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL\";\n  public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG\";\n  public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG\";\n  public static final String ER_PREDICATE_ILLEGAL_SYNTAX =\n         \"ER_PREDICATE_ILLEGAL_SYNTAX\";\n  public static final String ER_ILLEGAL_AXIS_NAME = \"ER_ILLEGAL_AXIS_NAME\";\n  public static final String ER_UNKNOWN_NODETYPE = \"ER_UNKNOWN_NODETYPE\";\n  public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED =\n         \"ER_PATTERN_LITERAL_NEEDS_BE_QUOTED\";\n  public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER =\n         \"ER_COULDNOT_BE_FORMATTED_TO_NUMBER\";\n  public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON =\n         \"ER_COULDNOT_CREATE_XMLPROCESSORLIAISON\";\n  public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP =\n         \"ER_DIDNOT_FIND_XPATH_SELECT_EXP\";\n  public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH =\n         \"ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH\";\n  public static final String ER_ERROR_OCCURED = \"ER_ERROR_OCCURED\";\n  public static final String ER_ILLEGAL_VARIABLE_REFERENCE =\n         \"ER_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String ER_AXES_NOT_ALLOWED = \"ER_AXES_NOT_ALLOWED\";\n  public static final String ER_KEY_HAS_TOO_MANY_ARGS =\n         \"ER_KEY_HAS_TOO_MANY_ARGS\";\n  public static final String ER_COUNT_TAKES_1_ARG = \"ER_COUNT_TAKES_1_ARG\";\n  public static final String ER_COULDNOT_FIND_FUNCTION =\n         \"ER_COULDNOT_FIND_FUNCTION\";\n  public static final String ER_UNSUPPORTED_ENCODING =\"ER_UNSUPPORTED_ENCODING\";\n  public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING =\n         \"ER_PROBLEM_IN_DTM_NEXTSIBLING\";\n  public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL =\n         \"ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL\";\n  public static final String ER_SETDOMFACTORY_NOT_SUPPORTED =\n         \"ER_SETDOMFACTORY_NOT_SUPPORTED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_PARSE_NOT_SUPPORTED = \"ER_PARSE_NOT_SUPPORTED\";\n  public static final String ER_SAX_API_NOT_HANDLED = \"ER_SAX_API_NOT_HANDLED\";\npublic static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =\n         \"ER_IGNORABLE_WHITESPACE_NOT_HANDLED\";\n  public static final String ER_DTM_CANNOT_HANDLE_NODES =\n         \"ER_DTM_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_CANNOT_HANDLE_NODES =\n         \"ER_XERCES_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_PARSE_ERROR_DETAILS =\n         \"ER_XERCES_PARSE_ERROR_DETAILS\";\n  public static final String ER_XERCES_PARSE_ERROR = \"ER_XERCES_PARSE_ERROR\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_CANNOT_CREATE_URL = \"ER_CANNOT_CREATE_URL\";\n  public static final String ER_XPATH_READOBJECT = \"ER_XPATH_READOBJECT\";\n public static final String ER_FUNCTION_TOKEN_NOT_FOUND =\n         \"ER_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String ER_CANNOT_DEAL_XPATH_TYPE =\n         \"ER_CANNOT_DEAL_XPATH_TYPE\";\n  public static final String ER_NODESET_NOT_MUTABLE = \"ER_NODESET_NOT_MUTABLE\";\n  public static final String ER_NODESETDTM_NOT_MUTABLE =\n         \"ER_NODESETDTM_NOT_MUTABLE\";\n   /**  Variable not resolvable:   */\n  public static final String ER_VAR_NOT_RESOLVABLE = \"ER_VAR_NOT_RESOLVABLE\";\n   /** Null error handler  */\n public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n   /**  Programmer's assertion: unknown opcode  */\n  public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE =\n         \"ER_PROG_ASSERT_UNKNOWN_OPCODE\";\n   /**  0 or 1   */\n  public static final String ER_ZERO_OR_ONE = \"ER_ZERO_OR_ONE\";\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =\n         \"ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = \"ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  fsb() not supported for XStringForChars   */\n  public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS =\n         \"ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS\";\n   /**  Could not find variable with the name of   */\n public static final String ER_COULD_NOT_FIND_VAR = \"ER_COULD_NOT_FIND_VAR\";\n   /**  XStringForChars can not take a string for an argument   */\n public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING =\n         \"ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING\";\n   /**  The FastStringBuffer argument can not be null   */\n public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL =\n         \"ER_FASTSTRINGBUFFER_CANNOT_BE_NULL\";\n   /**  2 or 3   */\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n   /** Variable accessed before it is bound! */\n  public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND =\n         \"ER_VARIABLE_ACCESSED_BEFORE_BIND\";\n   /** XStringForFSB can not take a string for an argument! */\n public static final String ER_FSB_CANNOT_TAKE_STRING =\n         \"ER_FSB_CANNOT_TAKE_STRING\";\n   /** Error! Setting the root of a walker to null! */\n  public static final String ER_SETTING_WALKER_ROOT_TO_NULL =\n         \"ER_SETTING_WALKER_ROOT_TO_NULL\";\n   /** This NodeSetDTM can not iterate to a previous node! */\n  public static final String ER_NODESETDTM_CANNOT_ITERATE =\n         \"ER_NODESETDTM_CANNOT_ITERATE\";\n  /** This NodeSet can not iterate to a previous node! */\n public static final String ER_NODESET_CANNOT_ITERATE =\n         \"ER_NODESET_CANNOT_ITERATE\";\n  /** This NodeSetDTM can not do indexing or counting functions! */\n  public static final String ER_NODESETDTM_CANNOT_INDEX =\n         \"ER_NODESETDTM_CANNOT_INDEX\";\n  /** This NodeSet can not do indexing or counting functions! */\n  public static final String ER_NODESET_CANNOT_INDEX =\n         \"ER_NODESET_CANNOT_INDEX\";\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n  public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE =\n         \"ER_CANNOT_CALL_SETSHOULDCACHENODE\";\n  /** {0} only allows {1} arguments */\n public static final String ER_ONLY_ALLOWS = \"ER_ONLY_ALLOWS\";\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n  public static final String ER_UNKNOWN_STEP = \"ER_UNKNOWN_STEP\";\n  /** Problem with RelativeLocationPath */\n  public static final String ER_EXPECTED_REL_LOC_PATH =\n         \"ER_EXPECTED_REL_LOC_PATH\";\n  /** Problem with LocationPath */\n  public static final String ER_EXPECTED_LOC_PATH = \"ER_EXPECTED_LOC_PATH\";\n  /** Problem with Step */\n  public static final String ER_EXPECTED_LOC_STEP = \"ER_EXPECTED_LOC_STEP\";\n  /** Problem with NodeTest */\n  public static final String ER_EXPECTED_NODE_TEST = \"ER_EXPECTED_NODE_TEST\";\n  /** Expected step pattern */\n  public static final String ER_EXPECTED_STEP_PATTERN =\n        \"ER_EXPECTED_STEP_PATTERN\";\n  /** Expected relative path pattern */\n  public static final String ER_EXPECTED_REL_PATH_PATTERN =\n         \"ER_EXPECTED_REL_PATH_PATTERN\";\n  /** localname in QNAME should be a valid NCName */\n  /** prefix in QNAME should be a valid NCName */\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n  public static final String ER_CANT_CONVERT_TO_BOOLEAN =\n         \"ER_CANT_CONVERT_TO_BOOLEAN\";\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n  public static final String ER_CANT_CONVERT_TO_SINGLENODE =\n         \"ER_CANT_CONVERT_TO_SINGLENODE\";\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n  public static final String ER_CANT_GET_SNAPSHOT_LENGTH =\n         \"ER_CANT_GET_SNAPSHOT_LENGTH\";\n  /** Field ER_NON_ITERATOR_TYPE                */\n  public static final String ER_NON_ITERATOR_TYPE = \"ER_NON_ITERATOR_TYPE\";\n  /** Field ER_DOC_MUTATED                      */\n  public static final String ER_DOC_MUTATED = \"ER_DOC_MUTATED\";\n  public static final String ER_INVALID_XPATH_TYPE = \"ER_INVALID_XPATH_TYPE\";\n  public static final String ER_EMPTY_XPATH_RESULT = \"ER_EMPTY_XPATH_RESULT\";\n  public static final String ER_INCOMPATIBLE_TYPES = \"ER_INCOMPATIBLE_TYPES\";\n  public static final String ER_NULL_RESOLVER = \"ER_NULL_RESOLVER\";\n  public static final String ER_CANT_CONVERT_TO_STRING =\n         \"ER_CANT_CONVERT_TO_STRING\";\n  public static final String ER_NON_SNAPSHOT_TYPE = \"ER_NON_SNAPSHOT_TYPE\";\n  public static final String ER_WRONG_DOCUMENT = \"ER_WRONG_DOCUMENT\";\n  /* Note to translators:  The XPath expression cannot be evaluated with respect\n   * to this type of node.\n   */\n  /** Field ER_WRONG_NODETYPE                    */\n  public static final String ER_WRONG_NODETYPE = \"ER_WRONG_NODETYPE\";\n  public static final String ER_XPATH_ERROR = \"ER_XPATH_ERROR\";\n\n  public static final String WG_LOCALE_NAME_NOT_HANDLED =\n         \"WG_LOCALE_NAME_NOT_HANDLED\";\n  public static final String WG_PROPERTY_NOT_SUPPORTED =\n         \"WG_PROPERTY_NOT_SUPPORTED\";\n  public static final String WG_DONT_DO_ANYTHING_WITH_NS =\n         \"WG_DONT_DO_ANYTHING_WITH_NS\";\n  public static final String WG_SECURITY_EXCEPTION = \"WG_SECURITY_EXCEPTION\";\n  public static final String WG_QUO_NO_LONGER_DEFINED =\n         \"WG_QUO_NO_LONGER_DEFINED\";\n  public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST =\n         \"WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST\";\n  public static final String WG_FUNCTION_TOKEN_NOT_FOUND =\n         \"WG_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String WG_COULDNOT_FIND_FUNCTION =\n         \"WG_COULDNOT_FIND_FUNCTION\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED =\n         \"WG_EXPAND_ENTITIES_NOT_SUPPORTED\";\n  public static final String WG_ILLEGAL_VARIABLE_REFERENCE =\n         \"WG_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String WG_UNSUPPORTED_ENCODING =\"WG_UNSUPPORTED_ENCODING\";\n\n\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return new Object[][]{\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"\\u0424\\u0443\\u043d\\u043a\\u0446\\u0438\\u044f current() \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u0430 \\u0432 \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d\\u0435 \\u0434\\u043b\\u044f \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u044f!\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 current() \\u043d\\u0435\\u0442 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432!\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"\\u0420\\u0435\\u0430\\u043b\\u0438\\u0437\\u0430\\u0446\\u0438\\u044f \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 document() \\u0437\\u0430\\u043c\\u0435\\u043d\\u0435\\u043d\\u0430 \\u043d\\u0430 org.apache.xalan.xslt.FuncDocument!\"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"\\u0412 \\u043a\\u043e\\u043d\\u0442\\u0435\\u043a\\u0441\\u0442\\u0435 \\u043e\\u0442\\u0441\\u0443\\u0442\\u0441\\u0442\\u0432\\u0443\\u0435\\u0442 \\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442-\\u0432\\u043b\\u0430\\u0434\\u0435\\u043b\\u0435\\u0446!\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 local-name() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 namespace-uri() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 normalize-space() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 number() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 name() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 string() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 string-length() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 translate() \\u0434\\u043e\\u043b\\u0436\\u043d\\u043e \\u0431\\u044b\\u0442\\u044c \\u0442\\u0440\\u0438 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u0430!\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 unparsed-entity-uri \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u0431\\u044b\\u0442\\u044c \\u043e\\u0434\\u0438\\u043d \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442!\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"\\u041e\\u0441\\u044c \\u043f\\u0440\\u043e\\u0441\\u0442\\u0440\\u0430\\u043d\\u0441\\u0442\\u0432\\u0430 \\u0438\\u043c\\u0435\\u043d \\u0435\\u0449\\u0435 \\u043d\\u0435 \\u0440\\u0435\\u0430\\u043b\\u0438\\u0437\\u043e\\u0432\\u0430\\u043d\\u0430!\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u0430\\u044f \\u043e\\u0441\\u044c: {0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u0430\\u044f \\u043e\\u043f\\u0435\\u0440\\u0430\\u0446\\u0438\\u044f \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u044f!\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"\\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u0430\\u044f \\u0434\\u043b\\u0438\\u043d\\u0430 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432 \\u043f\\u0440\\u0438 \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u0438 \\u0443\\u0437\\u043b\\u0430 processing-instruction()!\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 \\u0447\\u0438\\u0441\\u043b\\u043e\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 NodeList!\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 NodeSetDTM!\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 \\u0442\\u0438\\u043f#{1}\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"\\u0412 getMatchScore \\u043e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0441\\u044f \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d \\u0434\\u043b\\u044f \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u044f!\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"\\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u043f\\u043e\\u043b\\u0443\\u0447\\u0438\\u0442\\u044c \\u043f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u0443\\u044e {0}\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430! \\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u044b\\u0439 \\u043a\\u043e\\u0434 \\u043e\\u043f\\u0435\\u0440\\u0430\\u0446\\u0438\\u0438: {0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"\\u0414\\u043e\\u043f\\u043e\\u043b\\u043d\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u044b\\u0435 \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u0435 \\u043c\\u0430\\u0440\\u043a\\u0435\\u0440\\u044b: {0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"\\u041b\\u0438\\u0442\\u0435\\u0440\\u0430\\u043b \\u043d\\u0435 \\u0437\\u0430\\u043a\\u043b\\u044e\\u0447\\u0435\\u043d \\u0432 \\u043a\\u0430\\u0432\\u044b\\u0447\\u043a\\u0438... \\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0438\\u0441\\u044c \\u0434\\u0432\\u043e\\u0439\\u043d\\u044b\\u0435 \\u043a\\u0430\\u0432\\u044b\\u0447\\u043a\\u0438!\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"\\u041b\\u0438\\u0442\\u0435\\u0440\\u0430\\u043b \\u043d\\u0435 \\u0437\\u0430\\u043a\\u043b\\u044e\\u0447\\u0435\\u043d \\u0432 \\u043a\\u0430\\u0432\\u044b\\u0447\\u043a\\u0438... \\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0438\\u0441\\u044c \\u043e\\u0434\\u0438\\u043d\\u043e\\u0447\\u043d\\u044b\\u0435 \\u043a\\u0430\\u0432\\u044b\\u0447\\u043a\\u0438!\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"\\u041f\\u0443\\u0441\\u0442\\u043e\\u0435 \\u0432\\u044b\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435!\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"\\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c {0}, \\u043e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u043e: {1}\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"\\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\\u0435 \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u043d\\u043e\\u0435 \\u043f\\u0440\\u0435\\u0434\\u043f\\u043e\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0435! - {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"\\u0412 19990709 XPath \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442 boolean(...) \\u0431\\u043e\\u043b\\u044c\\u0448\\u0435 \\u043d\\u0435 \\u044f\\u0432\\u043b\\u044f\\u0435\\u0442\\u0441\\u044f \\u043d\\u0435\\u043e\\u0431\\u044f\\u0437\\u0430\\u0442\\u0435\\u043b\\u044c\\u043d\\u044b\\u043c.\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"\\u041e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u0430 \\u0437\\u0430\\u043f\\u044f\\u0442\\u0430\\u044f ',' \\u043d\\u043e \\u043f\\u0435\\u0440\\u0435\\u0434 \\u043d\\u0435\\u0439 \\u043e\\u0442\\u0441\\u0443\\u0442\\u0441\\u0442\\u0432\\u0443\\u0435\\u0442 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442!\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"\\u041e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u0430 \\u0437\\u0430\\u043f\\u044f\\u0442\\u0430\\u044f ',' \\u043d\\u043e \\u043f\\u043e\\u0441\\u043b\\u0435 \\u043d\\u0435\\u0435 \\u043e\\u0442\\u0441\\u0443\\u0442\\u0441\\u0442\\u0432\\u0443\\u0435\\u0442 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442!\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"\\u0421\\u0438\\u043d\\u0442\\u0430\\u043a\\u0441\\u0438\\u0441 '..[\\u043f\\u0440\\u0435\\u0434\\u0438\\u043a\\u0430\\u0442]' \\u0438\\u043b\\u0438 '.[\\u043f\\u0440\\u0435\\u0434\\u0438\\u043a\\u0430\\u0442]' \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c. \\u0418\\u0441\\u043f\\u043e\\u043b\\u044c\\u0437\\u0443\\u0439\\u0442\\u0435 'self::node()[\\u043f\\u0440\\u0435\\u0434\\u0438\\u043a\\u0430\\u0442]'.\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"\\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\\u0435 \\u0438\\u043c\\u044f \\u043e\\u0441\\u0438: {0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u044b\\u0439 \\u0442\\u0438\\u043f \\u0443\\u0437\\u043b\\u0430: {0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"\\u0412 \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d\\u0435 \\u043b\\u0438\\u0442\\u0435\\u0440\\u0430\\u043b ({0}) \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u0431\\u044b\\u0442\\u044c \\u0437\\u0430\\u043a\\u043b\\u044e\\u0447\\u0435\\u043d \\u0432 \\u043a\\u0430\\u0432\\u044b\\u0447\\u043a\\u0438!\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"{0} \\u043d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043e\\u0442\\u0444\\u043e\\u0440\\u043c\\u0430\\u0442\\u0438\\u0440\\u043e\\u0432\\u0430\\u0442\\u044c \\u043a\\u0430\\u043a \\u0447\\u0438\\u0441\\u043b\\u043e!\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0441\\u043e\\u0437\\u0434\\u0430\\u0442\\u044c XML TransformerFactory Liaison: {0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430! \\u041d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u043e \\u0432\\u044b\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435 \\u0432\\u044b\\u0431\\u043e\\u0440\\u0430 xpath (-select).\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430! \\u041f\\u043e\\u0441\\u043b\\u0435 OP_LOCATIONPATH \\u043e\\u0442\\u0441\\u0443\\u0442\\u0441\\u0442\\u0432\\u0443\\u0435\\u0442 ENDOP\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430!\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"VariableReference \\u0434\\u043b\\u044f \\u043f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u043e\\u0439 \\u0437\\u0430\\u0434\\u0430\\u043d \\u0432\\u043d\\u0435 \\u043a\\u043e\\u043d\\u0442\\u0435\\u043a\\u0441\\u0442\\u0430 \\u0438\\u043b\\u0438 \\u0431\\u0435\\u0437 \\u043e\\u043f\\u0440\\u0435\\u0434\\u0435\\u043b\\u0435\\u043d\\u0438\\u044f! \\u0418\\u043c\\u044f = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"\\u0412 \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d\\u0430\\u0445 \\u0441\\u043e\\u043e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0438\\u044f \\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b \\u0442\\u043e\\u043b\\u044c\\u043a\\u043e \\u043e\\u0441\\u0438 child:: \\u0438 attribute::! \\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u0435 \\u043e\\u0441\\u0438 = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"\\u0412 key() \\u0443\\u043a\\u0430\\u0437\\u0430\\u043d\\u043e \\u043d\\u0435\\u0432\\u0435\\u0440\\u043d\\u043e\\u0435 \\u0447\\u0438\\u0441\\u043b\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 count \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u0431\\u044b\\u0442\\u044c \\u043e\\u0434\\u0438\\u043d \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442!\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"\\u0424\\u0443\\u043d\\u043a\\u0446\\u0438\\u044f \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u0430: {0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"\\u041d\\u0435\\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u043c\\u0430\\u044f \\u043a\\u043e\\u0434\\u0438\\u0440\\u043e\\u0432\\u043a\\u0430: {0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 \\u0432 DTM \\u0432 getNextSibling... \\u041f\\u043e\\u043f\\u044b\\u0442\\u043a\\u0430 \\u0432\\u043e\\u0441\\u0441\\u0442\\u0430\\u043d\\u043e\\u0432\\u043b\\u0435\\u043d\\u0438\\u044f\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"\\u041f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u043d\\u0430\\u044f \\u043e\\u0448\\u0438\\u0431\\u043a\\u0430: \\u0437\\u0430\\u043f\\u0438\\u0441\\u044c \\u0432 EmptyNodeList \\u043d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u0430.\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"setDOMFactory \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f XPathContext!\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"\\u041f\\u0440\\u0435\\u0444\\u0438\\u043a\\u0441 \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u043e\\u0431\\u0435\\u0441\\u043f\\u0435\\u0447\\u0438\\u0432\\u0430\\u0442\\u044c \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435 \\u0432 \\u043f\\u0440\\u043e\\u0441\\u0442\\u0440\\u0430\\u043d\\u0441\\u0442\\u0432\\u043e \\u0438\\u043c\\u0435\\u043d: {0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"\\u0410\\u043d\\u0430\\u043b\\u0438\\u0437 \\u0441 (InputSource \\u0438\\u0441\\u0442\\u043e\\u0447\\u043d\\u0438\\u043a) \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f \\u0432 XPathContext! \\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u043e\\u0442\\u043a\\u0440\\u044b\\u0442\\u044c {0}\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"SAX API characters(char ch[]... \\u043d\\u0435 \\u043e\\u0431\\u0440\\u0430\\u0431\\u043e\\u0442\\u0430\\u043d DTM!\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"ignorableWhitespace(char ch[]... \\u043d\\u0435 \\u043e\\u0431\\u0440\\u0430\\u0431\\u043e\\u0442\\u0430\\u043d DTM!\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u043e\\u0431\\u0440\\u0430\\u0431\\u0430\\u0442\\u044b\\u0432\\u0430\\u0442\\u044c \\u0443\\u0437\\u043b\\u044b \\u0442\\u0438\\u043f\\u0430 {0}\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u043e\\u0431\\u0440\\u0430\\u0431\\u0430\\u0442\\u044b\\u0432\\u0430\\u0442\\u044c \\u0443\\u0437\\u043b\\u044b \\u0442\\u0438\\u043f\\u0430 {0}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 DOM2Helper.parse: SystemID - {0} \\u0441\\u0442\\u0440\\u043e\\u043a\\u0430 - {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 DOM2Helper.parse\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"\\u041e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u043e \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\\u0435 \\u0437\\u043d\\u0430\\u0447\\u0435\\u043d\\u0438\\u0435 UTF-16: {0} ?\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 \\u0432\\u0432\\u043e\\u0434\\u0430-\\u0432\\u044b\\u0432\\u043e\\u0434\\u0430\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"\\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u0441\\u043e\\u0437\\u0434\\u0430\\u0442\\u044c URL \\u0434\\u043b\\u044f {0}\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"\\u0412 XPath.readObject: {0}\"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\u041c\\u0430\\u0440\\u043a\\u0435\\u0440 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d.\"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"\\u0420\\u0430\\u0431\\u043e\\u0442\\u0430 \\u0441 \\u0442\\u0438\\u043f\\u043e\\u043c XPath \\u043d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u0430: {0}\"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 \\u043d\\u0430\\u0431\\u043e\\u0440 NodeSet \\u043d\\u0435 \\u044f\\u0432\\u043b\\u044f\\u0435\\u0442\\u0441\\u044f \\u0434\\u0432\\u0443\\u0441\\u0442\\u043e\\u0440\\u043e\\u043d\\u043d\\u0438\\u043c\"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 \\u043d\\u0430\\u0431\\u043e\\u0440 NodeSetDTM \\u043d\\u0435 \\u044f\\u0432\\u043b\\u044f\\u0435\\u0442\\u0441\\u044f \\u0434\\u0432\\u0443\\u0441\\u0442\\u043e\\u0440\\u043e\\u043d\\u043d\\u0438\\u043c\"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u043f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u0443\\u044e: {0}\"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"\\u041f\\u0443\\u0441\\u0442\\u043e\\u0439 \\u043e\\u0431\\u0440\\u0430\\u0431\\u043e\\u0442\\u0447\\u0438\\u043a \\u043e\\u0448\\u0438\\u0431\\u043a\\u0438\"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"\\u041f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u043d\\u043e\\u0435 \\u043f\\u0440\\u0435\\u0434\\u043f\\u043e\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0435: \\u043d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u044b\\u0439 \\u043a\\u043e\\u0434 \\u043e\\u043f\\u0435\\u0440\\u0430\\u0446\\u0438\\u0438 {0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 \\u0438\\u043b\\u0438 1\"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"rtf() \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f XRTreeFragSelectWrapper\"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"asNodeIterator() \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f XRTreeFragSelectWrapper\"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"fsb() \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f XStringForChars\"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"\\u041f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u0430\\u044f {0} \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u0430\"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"\\u0410\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442 XStringForChars \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0431\\u044b\\u0442\\u044c \\u0441\\u0442\\u0440\\u043e\\u043a\\u043e\\u0439\"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"\\u0410\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442 FastStringBuffer \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0431\\u044b\\u0442\\u044c \\u043f\\u0443\\u0441\\u0442\\u044b\\u043c\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 \\u0438\\u043b\\u0438 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"\\u041e\\u0431\\u0440\\u0430\\u0449\\u0435\\u043d\\u0438\\u0435 \\u043a \\u043f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u043e\\u0439 \\u0434\\u043e \\u0435\\u0435 \\u0441\\u0432\\u044f\\u0437\\u044b\\u0432\\u0430\\u043d\\u0438\\u044f!\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"\\u0410\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442 XStringForFSB \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0431\\u044b\\u0442\\u044c \\u0441\\u0442\\u0440\\u043e\\u043a\\u043e\\u0439!\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n !!!! \\u041e\\u0448\\u0438\\u0431\\u043a\\u0430! \\u041a\\u043e\\u0440\\u043d\\u0435\\u0432\\u043e\\u043c\\u0443 \\u043a\\u0430\\u0442\\u0430\\u043b\\u043e\\u0433\\u0443 walker \\u043f\\u0440\\u0438\\u0441\\u0432\\u043e\\u0435\\u043d\\u043e \\u043f\\u0443\\u0441\\u0442\\u043e\\u0435 \\u0437\\u043d\\u0430\\u0447\\u0435\\u043d\\u0438\\u0435!!!\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 NodeSetDTM \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0440\\u0430\\u0431\\u043e\\u0442\\u0430\\u0442\\u044c \\u0441 \\u043f\\u0440\\u0435\\u0434\\u044b\\u0434\\u0443\\u0449\\u0438\\u043c \\u0443\\u0437\\u043b\\u043e\\u043c!\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 NodeSet \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0440\\u0430\\u0431\\u043e\\u0442\\u0430\\u0442\\u044c \\u0441 \\u043f\\u0440\\u0435\\u0434\\u044b\\u0434\\u0443\\u0449\\u0438\\u043c \\u0443\\u0437\\u043b\\u043e\\u043c!\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 NodeSetDTM \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0432\\u044b\\u043f\\u043e\\u043b\\u043d\\u044f\\u0442\\u044c \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 \\u0438\\u043d\\u0434\\u0435\\u043a\\u0441\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d\\u0438\\u044f \\u0438 \\u043f\\u043e\\u0434\\u0441\\u0447\\u0435\\u0442\\u0430!\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 NodeSet \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0432\\u044b\\u043f\\u043e\\u043b\\u043d\\u044f\\u0442\\u044c \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 \\u0438\\u043d\\u0434\\u0435\\u043a\\u0441\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d\\u0438\\u044f \\u0438 \\u043f\\u043e\\u0434\\u0441\\u0447\\u0435\\u0442\\u0430!\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"\\u041d\\u0435\\u043b\\u044c\\u0437\\u044f \\u0432\\u044b\\u0437\\u044b\\u0432\\u0430\\u0442\\u044c setShouldCacheNodes \\u043f\\u043e\\u0441\\u043b\\u0435 \\u0432\\u044b\\u0437\\u043e\\u0432\\u0430 nextNode!\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"\\u041c\\u0430\\u043a\\u0441\\u0438\\u043c\\u0430\\u043b\\u044c\\u043d\\u043e\\u0435 \\u0447\\u0438\\u0441\\u043b\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432 {0} \\u0440\\u0430\\u0432\\u043d\\u043e {1}\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"\\u041f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u043d\\u043e\\u0435 \\u043f\\u0440\\u0435\\u0434\\u043f\\u043e\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0435 \\u0432 getNextStepPos: \\u043d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u044b\\u0439 \\u0442\\u0438\\u043f stepType: {0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"\\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0441\\u044f \\u043f\\u0443\\u0442\\u044c, \\u043e\\u0434\\u043d\\u0430\\u043a\\u043e \\u0431\\u044b\\u043b \\u043e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d \\u0441\\u043b\\u0435\\u0434\\u0443\\u044e\\u0449\\u0438\\u0439 \\u043c\\u0430\\u0440\\u043a\\u0435\\u0440\\u003a  {0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"\\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u0435 \\u0443\\u0437\\u043b\\u0430, \\u0441\\u043e\\u043e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0443\\u044e\\u0449\\u0435\\u0435 NCName:* \\u0438\\u043b\\u0438 QName. \"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"\\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0441\\u044f \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d \\u0448\\u0430\\u0433\\u0430, \\u043e\\u0434\\u043d\\u0430\\u043a\\u043e \\u0431\\u044b\\u043b \\u043e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d '/'.\"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"\\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0441\\u044f \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d \\u043e\\u0442\\u043d\\u043e\\u0441\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u043e\\u0433\\u043e \\u043f\\u0443\\u0442\\u0438.\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 \\u0431\\u0443\\u043b\\u0435\\u0432\\u0441\\u043a\\u0438\\u0439 \\u0442\\u0438\\u043f.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 \\u043e\\u0442\\u0434\\u0435\\u043b\\u044c\\u043d\\u044b\\u0439 \\u0443\\u0437\\u0435\\u043b. \\u0414\\u0430\\u043d\\u043d\\u0430\\u044f \\u043f\\u0440\\u043e\\u0446\\u0435\\u0434\\u0443\\u0440\\u0430 \\u043f\\u043e\\u043b\\u0443\\u0447\\u0435\\u043d\\u0438\\u044f \\u043e\\u0442\\u043d\\u043e\\u0441\\u0438\\u0442\\u0441\\u044f \\u043a \\u0442\\u0438\\u043f\\u0430\\u043c ANY_UNORDERED_NODE_TYPE \\u0438 FIRST_ORDERED_NODE_TYPE.\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u043e\\u043b\\u0443\\u0447\\u0438\\u0442\\u044c \\u0434\\u043b\\u0438\\u043d\\u0443 \\u043c\\u043e\\u043c\\u0435\\u043d\\u0442\\u0430\\u043b\\u044c\\u043d\\u043e\\u0439 \\u043a\\u043e\\u043f\\u0438\\u0438 \\u0434\\u043b\\u044f \\u0442\\u0438\\u043f\\u0430: {0}. \\u0414\\u0430\\u043d\\u043d\\u0430\\u044f \\u043f\\u0440\\u043e\\u0446\\u0435\\u0434\\u0443\\u0440\\u0430 \\u043f\\u043e\\u043b\\u0443\\u0447\\u0435\\u043d\\u0438\\u044f \\u043e\\u0442\\u043d\\u043e\\u0441\\u0438\\u0442\\u0441\\u044f \\u043a \\u0442\\u0438\\u043f\\u0430\\u043c UNORDERED_NODE_SNAPSHOT_TYPE \\u0438 ORDERED_NODE_SNAPSHOT_TYPE.\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0432\\u044b\\u043f\\u043e\\u043b\\u043d\\u0438\\u0442\\u044c \\u0446\\u0438\\u043a\\u043b \\u0434\\u043b\\u044f \\u043d\\u0435 \\u0442\\u0438\\u043f\\u0430, \\u043d\\u0435 \\u0434\\u043e\\u043f\\u0443\\u0441\\u043a\\u0430\\u044e\\u0449\\u0435\\u0433\\u043e \\u0438\\u0442\\u0435\\u0440\\u0430\\u0446\\u0438\\u044e: {0}\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"\\u0421 \\u043c\\u043e\\u043c\\u0435\\u043d\\u0442\\u0430 \\u043f\\u043e\\u043b\\u0443\\u0447\\u0435\\u043d\\u0438\\u044f \\u0440\\u0435\\u0437\\u0443\\u043b\\u044c\\u0442\\u0430\\u0442\\u0430 \\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442 \\u0431\\u044b\\u043b \\u0438\\u0437\\u043c\\u0435\\u043d\\u0435\\u043d. \\u0418\\u0442\\u0435\\u0440\\u0430\\u0442\\u043e\\u0440 \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c.\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"\\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u0439 \\u0442\\u0438\\u043f \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u0430 XPath: {0}\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"\\u041f\\u0443\\u0441\\u0442\\u043e\\u0439 \\u043e\\u0431\\u044a\\u0435\\u043a\\u0442 \\u0440\\u0435\\u0437\\u0443\\u043b\\u044c\\u0442\\u0430\\u0442\\u0430 XPath\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"\\u0412\\u043e\\u0437\\u0432\\u0440\\u0430\\u0449\\u0435\\u043d\\u043d\\u044b\\u0439 \\u0442\\u0438\\u043f {0} \\u043d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0438\\u043d\\u0443\\u0434\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u0432 \\u0443\\u043a\\u0430\\u0437\\u0430\\u043d\\u043d\\u044b\\u0439 \\u0442\\u0438\\u043f: {1}\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u043f\\u0440\\u0435\\u0444\\u0438\\u043a\\u0441 \\u0441 \\u043f\\u043e\\u043c\\u043e\\u0449\\u044c\\u044e \\u043f\\u0443\\u0441\\u0442\\u043e\\u0433\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u0435\\u043b\\u044f.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 \\u0441\\u0442\\u0440\\u043e\\u043a\\u0443.\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0432\\u044b\\u0437\\u0432\\u0430\\u0442\\u044c snapshotItem \\u0434\\u043b\\u044f \\u0442\\u0438\\u043f\\u0430: {0}. \\u0414\\u0430\\u043d\\u043d\\u0430\\u044f \\u043f\\u0440\\u043e\\u0446\\u0435\\u0434\\u0443\\u0440\\u0430 \\u043e\\u0442\\u043d\\u043e\\u0441\\u0438\\u0442\\u0441\\u044f \\u043a \\u0442\\u0438\\u043f\\u0430\\u043c UNORDERED_NODE_SNAPSHOT_TYPE \\u0438 ORDERED_NODE_SNAPSHOT_TYPE.\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"\\u0423\\u0437\\u0435\\u043b \\u043a\\u043e\\u043d\\u0442\\u0435\\u043a\\u0441\\u0442\\u0430 \\u043d\\u0435 \\u043e\\u0442\\u043d\\u043e\\u0441\\u0438\\u0442\\u0441\\u044f \\u043a \\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442\\u0443, \\u0441\\u0432\\u044f\\u0437\\u0430\\u043d\\u043d\\u043e\\u043c\\u0443 \\u0441 \\u0434\\u0430\\u043d\\u043d\\u044b\\u043c XPathEvaluator.\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"\\u0422\\u0438\\u043f \\u0443\\u0437\\u043b\\u0430 \\u043a\\u043e\\u043d\\u0442\\u0435\\u043a\\u0441\\u0442\\u0430 \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f.\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u0430\\u044f \\u043e\\u0448\\u0438\\u0431\\u043a\\u0430 \\u0432 XPath.\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"\\u041b\\u043e\\u043a\\u0430\\u043b\\u044c\\u043d\\u043e\\u0435 \\u0438\\u043c\\u044f \\u0432 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 format-number \\u0435\\u0449\\u0435 \\u043d\\u0435 \\u043e\\u0431\\u0440\\u0430\\u0431\\u043e\\u0442\\u0430\\u043d\\u043e!\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"\\u0421\\u0432\\u043e\\u0439\\u0441\\u0442\\u0432\\u043e XSL \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f: {0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"\\u041d\\u0435 \\u0432\\u044b\\u043f\\u043e\\u043b\\u043d\\u044f\\u0439\\u0442\\u0435 \\u043d\\u0438\\u043a\\u0430\\u043a\\u0438\\u0445 \\u043e\\u043f\\u0435\\u0440\\u0430\\u0446\\u0438\\u0439 \\u0441 \\u043f\\u0440\\u043e\\u0441\\u0442\\u0440\\u0430\\u043d\\u0441\\u0442\\u0432\\u043e\\u043c \\u0438\\u043c\\u0435\\u043d {0} \\u0432 \\u0441\\u0432\\u043e\\u0439\\u0441\\u0442\\u0432\\u0435: {1}\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"SecurityException \\u043f\\u0440\\u0438 \\u043f\\u043e\\u043f\\u044b\\u0442\\u043a\\u0435 \\u043e\\u0431\\u0440\\u0430\\u0449\\u0435\\u043d\\u0438\\u044f \\u043a \\u0441\\u0438\\u0441\\u0442\\u0435\\u043c\\u043d\\u043e\\u043c\\u0443 \\u0441\\u0432\\u043e\\u0439\\u0441\\u0442\\u0432\\u0443 XSL: {0}\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"\\u0421\\u0442\\u0430\\u0440\\u044b\\u0439 \\u0441\\u0438\\u043d\\u0442\\u0430\\u043a\\u0441\\u0438\\u0441: quo(...) \\u0431\\u043e\\u043b\\u044c\\u0448\\u0435 \\u043d\\u0435 \\u043e\\u043f\\u0440\\u0435\\u0434\\u0435\\u043b\\u0435\\u043d \\u0432 XPath.\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"\\u0414\\u043b\\u044f \\u0440\\u0435\\u0430\\u043b\\u0438\\u0437\\u0430\\u0446\\u0438\\u0438 nodeTest \\u0432 XPath \\u043d\\u0435\\u043e\\u0431\\u0445\\u043e\\u0434\\u0438\\u043c \\u043f\\u0440\\u043e\\u0438\\u0437\\u0432\\u043e\\u0434\\u043d\\u044b\\u0439 \\u043e\\u0431\\u044a\\u0435\\u043a\\u0442!\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\u041c\\u0430\\u0440\\u043a\\u0435\\u0440 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d.\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"\\u0424\\u0443\\u043d\\u043a\\u0446\\u0438\\u044f \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u0430: {0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0441\\u043e\\u0437\\u0434\\u0430\\u0442\\u044c URL \\u0438\\u0437: {0}\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"\\u041e\\u043f\\u0446\\u0438\\u044f -E \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f \\u0430\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440\\u043e\\u043c DTM\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"VariableReference \\u0434\\u043b\\u044f \\u043f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u043e\\u0439 \\u0437\\u0430\\u0434\\u0430\\u043d \\u0432\\u043d\\u0435 \\u043a\\u043e\\u043d\\u0442\\u0435\\u043a\\u0441\\u0442\\u0430 \\u0438\\u043b\\u0438 \\u0431\\u0435\\u0437 \\u043e\\u043f\\u0440\\u0435\\u0434\\u0435\\u043b\\u0435\\u043d\\u0438\\u044f! \\u0418\\u043c\\u044f = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"\\u041d\\u0435\\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u043c\\u0430\\u044f \\u043a\\u043e\\u0434\\u0438\\u0440\\u043e\\u0432\\u043a\\u0430: {0}\"},\n\n\n\n  { \"ui_language\", \"en\"},\n  { \"help_language\", \"en\"},\n  { \"language\", \"en\"},\n  { \"BAD_CODE\", \"\\u041f\\u0430\\u0440\\u0430\\u043c\\u0435\\u0442\\u0440 createMessage \\u043b\\u0435\\u0436\\u0438\\u0442 \\u0432\\u043d\\u0435 \\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\\u0433\\u043e \\u0434\\u0438\\u0430\\u043f\\u0430\\u0437\\u043e\\u043d\\u0430\"},\n  { \"FORMAT_FAILED\", \"\\u0418\\u0441\\u043a\\u043b\\u044e\\u0447\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u0430\\u044f \\u0441\\u0438\\u0442\\u0443\\u0430\\u0446\\u0438\\u044f \\u043f\\u0440\\u0438 \\u0432\\u044b\\u0437\\u043e\\u0432\\u0435 messageFormat\"},\n  { \"version\", \">>>>>>> \\u0412\\u0435\\u0440\\u0441\\u0438\\u044f Xalan\"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"\\u0434\\u0430\"},\n  { \"line\", \"\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0441\\u0442\\u0440\\u043e\\u043a\\u0438\"},\n  { \"column\", \"\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0441\\u0442\\u043e\\u043b\\u0431\\u0446\\u0430\"},\n  { \"xsldone\", \"XSLProcessor: \\u0432\\u044b\\u043f\\u043e\\u043b\\u043d\\u0435\\u043d\\u043e\"},\n  { \"xpath_option\", \"\\u041f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u043c\\u044b\\u0435 \\u043e\\u043f\\u0446\\u0438\\u0438:\"},\n  { \"optionIN\", \"   [-in inputXMLURL]\"},\n  { \"optionSelect\", \"   [-select \\u0432\\u044b\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435 xpath]\"},\n  { \"optionMatch\", \"   [-match \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u044f (\\u0434\\u043b\\u044f \\u0434\\u0438\\u0430\\u0433\\u043d\\u043e\\u0441\\u0442\\u0438\\u043a\\u0438)]\"},\n  { \"optionAnyExpr\", \"\\u0418\\u043b\\u0438 \\u043f\\u0440\\u043e\\u0441\\u0442\\u043e \\u0443\\u043a\\u0430\\u0436\\u0438\\u0442\\u0435 \\u0432\\u044b\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435 xpath \\u0434\\u043b\\u044f \\u0441\\u043e\\u0437\\u0434\\u0430\\u043d\\u0438\\u044f \\u0434\\u0438\\u0430\\u0433\\u043d\\u043e\\u0441\\u0442\\u0438\\u0447\\u0435\\u0441\\u043a\\u043e\\u0433\\u043e \\u0434\\u0430\\u043c\\u043f\\u0430\"},\n  { \"noParsermsg1\", \"\\u0412 \\u043f\\u0440\\u043e\\u0446\\u0435\\u0441\\u0441\\u0435 XSL \\u043e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u044b \\u043e\\u0448\\u0438\\u0431\\u043a\\u0438.\"},\n  { \"noParsermsg2\", \"** \\u0410\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440 \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d **\"},\n  { \"noParsermsg3\", \"\\u041f\\u0440\\u043e\\u0432\\u0435\\u0440\\u044c\\u0442\\u0435 \\u0437\\u043d\\u0430\\u0447\\u0435\\u043d\\u0438\\u0435 classpath.\"},\n  { \"noParsermsg4\", \"\\u0415\\u0441\\u043b\\u0438 \\u0443 \\u0432\\u0430\\u0441 \\u043d\\u0435\\u0442 \\u0430\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440\\u0430 XML Parser for Java \\u0444\\u0438\\u0440\\u043c\\u044b IBM, \\u0432\\u044b \\u043c\\u043e\\u0436\\u0435\\u0442\\u0435 \\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044c \\u0435\\u0433\\u043e \\u0441 \\u0441\\u0430\\u0439\\u0442\\u0430\"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }\n\n  };\n  }\n\n\n\n  /** Field BAD_CODE          */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** Field FORMAT_FAILED          */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** Field ERROR_RESOURCES          */\n  public static final String ERROR_RESOURCES =\n    \"org.apache.xpath.res.XPATHErrorResources\";\n\n  /** Field ERROR_STRING          */\n  public static final String ERROR_STRING = \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430\";\n\n  /** Field ERROR_HEADER          */\n  public static final String ERROR_HEADER = \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430:\";\n\n  /** Field WARNING_HEADER          */\n  public static final String WARNING_HEADER = \"\\u041f\\u0440\\u0435\\u0434\\u0443\\u043f\\u0440\\u0435\\u0436\\u0434\\u0435\\u043d\\u0438\\u0435: \";\n\n  /** Field XSL_HEADER          */\n  public static final String XSL_HEADER = \"XSL \";\n\n  /** Field XML_HEADER          */\n  public static final String XML_HEADER = \"XML \";\n\n  /** Field QUERY_HEADER          */\n  public static final String QUERY_HEADER = \"PATTERN \";\n\n\n  /**\n   * Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   * of ResourceBundle.getBundle().\n   *\n   * @param className Name of local-specific subclass.\n   * @return the ResourceBundle\n   * @throws MissingResourceException\n   */\n  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"en\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return new Object[][]{\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"\\u0424\\u0443\\u043d\\u043a\\u0446\\u0438\\u044f current() \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u0430 \\u0432 \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d\\u0435 \\u0434\\u043b\\u044f \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u044f!\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 current() \\u043d\\u0435\\u0442 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432!\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"\\u0420\\u0435\\u0430\\u043b\\u0438\\u0437\\u0430\\u0446\\u0438\\u044f \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 document() \\u0437\\u0430\\u043c\\u0435\\u043d\\u0435\\u043d\\u0430 \\u043d\\u0430 org.apache.xalan.xslt.FuncDocument!\"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"\\u0412 \\u043a\\u043e\\u043d\\u0442\\u0435\\u043a\\u0441\\u0442\\u0435 \\u043e\\u0442\\u0441\\u0443\\u0442\\u0441\\u0442\\u0432\\u0443\\u0435\\u0442 \\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442-\\u0432\\u043b\\u0430\\u0434\\u0435\\u043b\\u0435\\u0446!\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 local-name() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 namespace-uri() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 normalize-space() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 number() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 name() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 string() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 string-length() \\u0441\\u043b\\u0438\\u0448\\u043a\\u043e\\u043c \\u043c\\u043d\\u043e\\u0433\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 translate() \\u0434\\u043e\\u043b\\u0436\\u043d\\u043e \\u0431\\u044b\\u0442\\u044c \\u0442\\u0440\\u0438 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u0430!\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 unparsed-entity-uri \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u0431\\u044b\\u0442\\u044c \\u043e\\u0434\\u0438\\u043d \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442!\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"\\u041e\\u0441\\u044c \\u043f\\u0440\\u043e\\u0441\\u0442\\u0440\\u0430\\u043d\\u0441\\u0442\\u0432\\u0430 \\u0438\\u043c\\u0435\\u043d \\u0435\\u0449\\u0435 \\u043d\\u0435 \\u0440\\u0435\\u0430\\u043b\\u0438\\u0437\\u043e\\u0432\\u0430\\u043d\\u0430!\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u0430\\u044f \\u043e\\u0441\\u044c: {0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u0430\\u044f \\u043e\\u043f\\u0435\\u0440\\u0430\\u0446\\u0438\\u044f \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u044f!\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"\\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u0430\\u044f \\u0434\\u043b\\u0438\\u043d\\u0430 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432 \\u043f\\u0440\\u0438 \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u0438 \\u0443\\u0437\\u043b\\u0430 processing-instruction()!\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 \\u0447\\u0438\\u0441\\u043b\\u043e\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 NodeList!\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 NodeSetDTM!\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 \\u0442\\u0438\\u043f#{1}\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"\\u0412 getMatchScore \\u043e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0441\\u044f \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d \\u0434\\u043b\\u044f \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u044f!\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"\\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u043f\\u043e\\u043b\\u0443\\u0447\\u0438\\u0442\\u044c \\u043f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u0443\\u044e {0}\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430! \\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u044b\\u0439 \\u043a\\u043e\\u0434 \\u043e\\u043f\\u0435\\u0440\\u0430\\u0446\\u0438\\u0438: {0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"\\u0414\\u043e\\u043f\\u043e\\u043b\\u043d\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u044b\\u0435 \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u0435 \\u043c\\u0430\\u0440\\u043a\\u0435\\u0440\\u044b: {0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"\\u041b\\u0438\\u0442\\u0435\\u0440\\u0430\\u043b \\u043d\\u0435 \\u0437\\u0430\\u043a\\u043b\\u044e\\u0447\\u0435\\u043d \\u0432 \\u043a\\u0430\\u0432\\u044b\\u0447\\u043a\\u0438... \\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0438\\u0441\\u044c \\u0434\\u0432\\u043e\\u0439\\u043d\\u044b\\u0435 \\u043a\\u0430\\u0432\\u044b\\u0447\\u043a\\u0438!\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"\\u041b\\u0438\\u0442\\u0435\\u0440\\u0430\\u043b \\u043d\\u0435 \\u0437\\u0430\\u043a\\u043b\\u044e\\u0447\\u0435\\u043d \\u0432 \\u043a\\u0430\\u0432\\u044b\\u0447\\u043a\\u0438... \\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0438\\u0441\\u044c \\u043e\\u0434\\u0438\\u043d\\u043e\\u0447\\u043d\\u044b\\u0435 \\u043a\\u0430\\u0432\\u044b\\u0447\\u043a\\u0438!\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"\\u041f\\u0443\\u0441\\u0442\\u043e\\u0435 \\u0432\\u044b\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435!\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"\\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c {0}, \\u043e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u043e: {1}\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"\\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\\u0435 \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u043d\\u043e\\u0435 \\u043f\\u0440\\u0435\\u0434\\u043f\\u043e\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0435! - {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"\\u0412 19990709 XPath \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442 boolean(...) \\u0431\\u043e\\u043b\\u044c\\u0448\\u0435 \\u043d\\u0435 \\u044f\\u0432\\u043b\\u044f\\u0435\\u0442\\u0441\\u044f \\u043d\\u0435\\u043e\\u0431\\u044f\\u0437\\u0430\\u0442\\u0435\\u043b\\u044c\\u043d\\u044b\\u043c.\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"\\u041e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u0430 \\u0437\\u0430\\u043f\\u044f\\u0442\\u0430\\u044f ',' \\u043d\\u043e \\u043f\\u0435\\u0440\\u0435\\u0434 \\u043d\\u0435\\u0439 \\u043e\\u0442\\u0441\\u0443\\u0442\\u0441\\u0442\\u0432\\u0443\\u0435\\u0442 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442!\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"\\u041e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u0430 \\u0437\\u0430\\u043f\\u044f\\u0442\\u0430\\u044f ',' \\u043d\\u043e \\u043f\\u043e\\u0441\\u043b\\u0435 \\u043d\\u0435\\u0435 \\u043e\\u0442\\u0441\\u0443\\u0442\\u0441\\u0442\\u0432\\u0443\\u0435\\u0442 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442!\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"\\u0421\\u0438\\u043d\\u0442\\u0430\\u043a\\u0441\\u0438\\u0441 '..[\\u043f\\u0440\\u0435\\u0434\\u0438\\u043a\\u0430\\u0442]' \\u0438\\u043b\\u0438 '.[\\u043f\\u0440\\u0435\\u0434\\u0438\\u043a\\u0430\\u0442]' \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c. \\u0418\\u0441\\u043f\\u043e\\u043b\\u044c\\u0437\\u0443\\u0439\\u0442\\u0435 'self::node()[\\u043f\\u0440\\u0435\\u0434\\u0438\\u043a\\u0430\\u0442]'.\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"\\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\\u0435 \\u0438\\u043c\\u044f \\u043e\\u0441\\u0438: {0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u044b\\u0439 \\u0442\\u0438\\u043f \\u0443\\u0437\\u043b\\u0430: {0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"\\u0412 \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d\\u0435 \\u043b\\u0438\\u0442\\u0435\\u0440\\u0430\\u043b ({0}) \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u0431\\u044b\\u0442\\u044c \\u0437\\u0430\\u043a\\u043b\\u044e\\u0447\\u0435\\u043d \\u0432 \\u043a\\u0430\\u0432\\u044b\\u0447\\u043a\\u0438!\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"{0} \\u043d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043e\\u0442\\u0444\\u043e\\u0440\\u043c\\u0430\\u0442\\u0438\\u0440\\u043e\\u0432\\u0430\\u0442\\u044c \\u043a\\u0430\\u043a \\u0447\\u0438\\u0441\\u043b\\u043e!\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0441\\u043e\\u0437\\u0434\\u0430\\u0442\\u044c XML TransformerFactory Liaison: {0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430! \\u041d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u043e \\u0432\\u044b\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435 \\u0432\\u044b\\u0431\\u043e\\u0440\\u0430 xpath (-select).\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430! \\u041f\\u043e\\u0441\\u043b\\u0435 OP_LOCATIONPATH \\u043e\\u0442\\u0441\\u0443\\u0442\\u0441\\u0442\\u0432\\u0443\\u0435\\u0442 ENDOP\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430!\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"VariableReference \\u0434\\u043b\\u044f \\u043f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u043e\\u0439 \\u0437\\u0430\\u0434\\u0430\\u043d \\u0432\\u043d\\u0435 \\u043a\\u043e\\u043d\\u0442\\u0435\\u043a\\u0441\\u0442\\u0430 \\u0438\\u043b\\u0438 \\u0431\\u0435\\u0437 \\u043e\\u043f\\u0440\\u0435\\u0434\\u0435\\u043b\\u0435\\u043d\\u0438\\u044f! \\u0418\\u043c\\u044f = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"\\u0412 \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d\\u0430\\u0445 \\u0441\\u043e\\u043e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0438\\u044f \\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b \\u0442\\u043e\\u043b\\u044c\\u043a\\u043e \\u043e\\u0441\\u0438 child:: \\u0438 attribute::! \\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u0435 \\u043e\\u0441\\u0438 = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"\\u0412 key() \\u0443\\u043a\\u0430\\u0437\\u0430\\u043d\\u043e \\u043d\\u0435\\u0432\\u0435\\u0440\\u043d\\u043e\\u0435 \\u0447\\u0438\\u0441\\u043b\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432.\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"\\u0423 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 count \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u0431\\u044b\\u0442\\u044c \\u043e\\u0434\\u0438\\u043d \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442!\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"\\u0424\\u0443\\u043d\\u043a\\u0446\\u0438\\u044f \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u0430: {0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"\\u041d\\u0435\\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u043c\\u0430\\u044f \\u043a\\u043e\\u0434\\u0438\\u0440\\u043e\\u0432\\u043a\\u0430: {0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 \\u0432 DTM \\u0432 getNextSibling... \\u041f\\u043e\\u043f\\u044b\\u0442\\u043a\\u0430 \\u0432\\u043e\\u0441\\u0441\\u0442\\u0430\\u043d\\u043e\\u0432\\u043b\\u0435\\u043d\\u0438\\u044f\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"\\u041f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u043d\\u0430\\u044f \\u043e\\u0448\\u0438\\u0431\\u043a\\u0430: \\u0437\\u0430\\u043f\\u0438\\u0441\\u044c \\u0432 EmptyNodeList \\u043d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u0430.\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"setDOMFactory \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f XPathContext!\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"\\u041f\\u0440\\u0435\\u0444\\u0438\\u043a\\u0441 \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u043e\\u0431\\u0435\\u0441\\u043f\\u0435\\u0447\\u0438\\u0432\\u0430\\u0442\\u044c \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435 \\u0432 \\u043f\\u0440\\u043e\\u0441\\u0442\\u0440\\u0430\\u043d\\u0441\\u0442\\u0432\\u043e \\u0438\\u043c\\u0435\\u043d: {0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"\\u0410\\u043d\\u0430\\u043b\\u0438\\u0437 \\u0441 (InputSource \\u0438\\u0441\\u0442\\u043e\\u0447\\u043d\\u0438\\u043a) \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f \\u0432 XPathContext! \\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u043e\\u0442\\u043a\\u0440\\u044b\\u0442\\u044c {0}\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"SAX API characters(char ch[]... \\u043d\\u0435 \\u043e\\u0431\\u0440\\u0430\\u0431\\u043e\\u0442\\u0430\\u043d DTM!\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"ignorableWhitespace(char ch[]... \\u043d\\u0435 \\u043e\\u0431\\u0440\\u0430\\u0431\\u043e\\u0442\\u0430\\u043d DTM!\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u043e\\u0431\\u0440\\u0430\\u0431\\u0430\\u0442\\u044b\\u0432\\u0430\\u0442\\u044c \\u0443\\u0437\\u043b\\u044b \\u0442\\u0438\\u043f\\u0430 {0}\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u043e\\u0431\\u0440\\u0430\\u0431\\u0430\\u0442\\u044b\\u0432\\u0430\\u0442\\u044c \\u0443\\u0437\\u043b\\u044b \\u0442\\u0438\\u043f\\u0430 {0}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 DOM2Helper.parse: SystemID - {0} \\u0441\\u0442\\u0440\\u043e\\u043a\\u0430 - {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 DOM2Helper.parse\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"\\u041e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u043e \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\\u0435 \\u0437\\u043d\\u0430\\u0447\\u0435\\u043d\\u0438\\u0435 UTF-16: {0} ?\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 \\u0432\\u0432\\u043e\\u0434\\u0430-\\u0432\\u044b\\u0432\\u043e\\u0434\\u0430\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"\\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u0441\\u043e\\u0437\\u0434\\u0430\\u0442\\u044c URL \\u0434\\u043b\\u044f {0}\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"\\u0412 XPath.readObject: {0}\"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\u041c\\u0430\\u0440\\u043a\\u0435\\u0440 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d.\"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"\\u0420\\u0430\\u0431\\u043e\\u0442\\u0430 \\u0441 \\u0442\\u0438\\u043f\\u043e\\u043c XPath \\u043d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u0430: {0}\"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 \\u043d\\u0430\\u0431\\u043e\\u0440 NodeSet \\u043d\\u0435 \\u044f\\u0432\\u043b\\u044f\\u0435\\u0442\\u0441\\u044f \\u0434\\u0432\\u0443\\u0441\\u0442\\u043e\\u0440\\u043e\\u043d\\u043d\\u0438\\u043c\"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 \\u043d\\u0430\\u0431\\u043e\\u0440 NodeSetDTM \\u043d\\u0435 \\u044f\\u0432\\u043b\\u044f\\u0435\\u0442\\u0441\\u044f \\u0434\\u0432\\u0443\\u0441\\u0442\\u043e\\u0440\\u043e\\u043d\\u043d\\u0438\\u043c\"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u043f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u0443\\u044e: {0}\"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"\\u041f\\u0443\\u0441\\u0442\\u043e\\u0439 \\u043e\\u0431\\u0440\\u0430\\u0431\\u043e\\u0442\\u0447\\u0438\\u043a \\u043e\\u0448\\u0438\\u0431\\u043a\\u0438\"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"\\u041f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u043d\\u043e\\u0435 \\u043f\\u0440\\u0435\\u0434\\u043f\\u043e\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0435: \\u043d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u044b\\u0439 \\u043a\\u043e\\u0434 \\u043e\\u043f\\u0435\\u0440\\u0430\\u0446\\u0438\\u0438 {0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 \\u0438\\u043b\\u0438 1\"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"rtf() \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f XRTreeFragSelectWrapper\"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"asNodeIterator() \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f XRTreeFragSelectWrapper\"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"fsb() \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f XStringForChars\"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"\\u041f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u0430\\u044f {0} \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u0430\"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"\\u0410\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442 XStringForChars \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0431\\u044b\\u0442\\u044c \\u0441\\u0442\\u0440\\u043e\\u043a\\u043e\\u0439\"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"\\u0410\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442 FastStringBuffer \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0431\\u044b\\u0442\\u044c \\u043f\\u0443\\u0441\\u0442\\u044b\\u043c\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 \\u0438\\u043b\\u0438 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"\\u041e\\u0431\\u0440\\u0430\\u0449\\u0435\\u043d\\u0438\\u0435 \\u043a \\u043f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u043e\\u0439 \\u0434\\u043e \\u0435\\u0435 \\u0441\\u0432\\u044f\\u0437\\u044b\\u0432\\u0430\\u043d\\u0438\\u044f!\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"\\u0410\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442 XStringForFSB \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0431\\u044b\\u0442\\u044c \\u0441\\u0442\\u0440\\u043e\\u043a\\u043e\\u0439!\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n !!!! \\u041e\\u0448\\u0438\\u0431\\u043a\\u0430! \\u041a\\u043e\\u0440\\u043d\\u0435\\u0432\\u043e\\u043c\\u0443 \\u043a\\u0430\\u0442\\u0430\\u043b\\u043e\\u0433\\u0443 walker \\u043f\\u0440\\u0438\\u0441\\u0432\\u043e\\u0435\\u043d\\u043e \\u043f\\u0443\\u0441\\u0442\\u043e\\u0435 \\u0437\\u043d\\u0430\\u0447\\u0435\\u043d\\u0438\\u0435!!!\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 NodeSetDTM \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0440\\u0430\\u0431\\u043e\\u0442\\u0430\\u0442\\u044c \\u0441 \\u043f\\u0440\\u0435\\u0434\\u044b\\u0434\\u0443\\u0449\\u0438\\u043c \\u0443\\u0437\\u043b\\u043e\\u043c!\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 NodeSet \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0440\\u0430\\u0431\\u043e\\u0442\\u0430\\u0442\\u044c \\u0441 \\u043f\\u0440\\u0435\\u0434\\u044b\\u0434\\u0443\\u0449\\u0438\\u043c \\u0443\\u0437\\u043b\\u043e\\u043c!\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 NodeSetDTM \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0432\\u044b\\u043f\\u043e\\u043b\\u043d\\u044f\\u0442\\u044c \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 \\u0438\\u043d\\u0434\\u0435\\u043a\\u0441\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d\\u0438\\u044f \\u0438 \\u043f\\u043e\\u0434\\u0441\\u0447\\u0435\\u0442\\u0430!\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"\\u0414\\u0430\\u043d\\u043d\\u044b\\u0439 NodeSet \\u043d\\u0435 \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0432\\u044b\\u043f\\u043e\\u043b\\u043d\\u044f\\u0442\\u044c \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 \\u0438\\u043d\\u0434\\u0435\\u043a\\u0441\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d\\u0438\\u044f \\u0438 \\u043f\\u043e\\u0434\\u0441\\u0447\\u0435\\u0442\\u0430!\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"\\u041d\\u0435\\u043b\\u044c\\u0437\\u044f \\u0432\\u044b\\u0437\\u044b\\u0432\\u0430\\u0442\\u044c setShouldCacheNodes \\u043f\\u043e\\u0441\\u043b\\u0435 \\u0432\\u044b\\u0437\\u043e\\u0432\\u0430 nextNode!\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"\\u041c\\u0430\\u043a\\u0441\\u0438\\u043c\\u0430\\u043b\\u044c\\u043d\\u043e\\u0435 \\u0447\\u0438\\u0441\\u043b\\u043e \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u043e\\u0432 {0} \\u0440\\u0430\\u0432\\u043d\\u043e {1}\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"\\u041f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u043d\\u043e\\u0435 \\u043f\\u0440\\u0435\\u0434\\u043f\\u043e\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0435 \\u0432 getNextStepPos: \\u043d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u044b\\u0439 \\u0442\\u0438\\u043f stepType: {0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"\\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0441\\u044f \\u043f\\u0443\\u0442\\u044c, \\u043e\\u0434\\u043d\\u0430\\u043a\\u043e \\u0431\\u044b\\u043b \\u043e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d \\u0441\\u043b\\u0435\\u0434\\u0443\\u044e\\u0449\\u0438\\u0439 \\u043c\\u0430\\u0440\\u043a\\u0435\\u0440\\u003a  {0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"\\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u0435 \\u0443\\u0437\\u043b\\u0430, \\u0441\\u043e\\u043e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0443\\u044e\\u0449\\u0435\\u0435 NCName:* \\u0438\\u043b\\u0438 QName. \"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"\\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0441\\u044f \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d \\u0448\\u0430\\u0433\\u0430, \\u043e\\u0434\\u043d\\u0430\\u043a\\u043e \\u0431\\u044b\\u043b \\u043e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d '/'.\"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"\\u041e\\u0436\\u0438\\u0434\\u0430\\u043b\\u0441\\u044f \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d \\u043e\\u0442\\u043d\\u043e\\u0441\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u043e\\u0433\\u043e \\u043f\\u0443\\u0442\\u0438.\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 \\u0431\\u0443\\u043b\\u0435\\u0432\\u0441\\u043a\\u0438\\u0439 \\u0442\\u0438\\u043f.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 \\u043e\\u0442\\u0434\\u0435\\u043b\\u044c\\u043d\\u044b\\u0439 \\u0443\\u0437\\u0435\\u043b. \\u0414\\u0430\\u043d\\u043d\\u0430\\u044f \\u043f\\u0440\\u043e\\u0446\\u0435\\u0434\\u0443\\u0440\\u0430 \\u043f\\u043e\\u043b\\u0443\\u0447\\u0435\\u043d\\u0438\\u044f \\u043e\\u0442\\u043d\\u043e\\u0441\\u0438\\u0442\\u0441\\u044f \\u043a \\u0442\\u0438\\u043f\\u0430\\u043c ANY_UNORDERED_NODE_TYPE \\u0438 FIRST_ORDERED_NODE_TYPE.\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u043e\\u043b\\u0443\\u0447\\u0438\\u0442\\u044c \\u0434\\u043b\\u0438\\u043d\\u0443 \\u043c\\u043e\\u043c\\u0435\\u043d\\u0442\\u0430\\u043b\\u044c\\u043d\\u043e\\u0439 \\u043a\\u043e\\u043f\\u0438\\u0438 \\u0434\\u043b\\u044f \\u0442\\u0438\\u043f\\u0430: {0}. \\u0414\\u0430\\u043d\\u043d\\u0430\\u044f \\u043f\\u0440\\u043e\\u0446\\u0435\\u0434\\u0443\\u0440\\u0430 \\u043f\\u043e\\u043b\\u0443\\u0447\\u0435\\u043d\\u0438\\u044f \\u043e\\u0442\\u043d\\u043e\\u0441\\u0438\\u0442\\u0441\\u044f \\u043a \\u0442\\u0438\\u043f\\u0430\\u043c UNORDERED_NODE_SNAPSHOT_TYPE \\u0438 ORDERED_NODE_SNAPSHOT_TYPE.\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0432\\u044b\\u043f\\u043e\\u043b\\u043d\\u0438\\u0442\\u044c \\u0446\\u0438\\u043a\\u043b \\u0434\\u043b\\u044f \\u043d\\u0435 \\u0442\\u0438\\u043f\\u0430, \\u043d\\u0435 \\u0434\\u043e\\u043f\\u0443\\u0441\\u043a\\u0430\\u044e\\u0449\\u0435\\u0433\\u043e \\u0438\\u0442\\u0435\\u0440\\u0430\\u0446\\u0438\\u044e: {0}\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"\\u0421 \\u043c\\u043e\\u043c\\u0435\\u043d\\u0442\\u0430 \\u043f\\u043e\\u043b\\u0443\\u0447\\u0435\\u043d\\u0438\\u044f \\u0440\\u0435\\u0437\\u0443\\u043b\\u044c\\u0442\\u0430\\u0442\\u0430 \\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442 \\u0431\\u044b\\u043b \\u0438\\u0437\\u043c\\u0435\\u043d\\u0435\\u043d. \\u0418\\u0442\\u0435\\u0440\\u0430\\u0442\\u043e\\u0440 \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c.\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"\\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u0439 \\u0442\\u0438\\u043f \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442\\u0430 XPath: {0}\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"\\u041f\\u0443\\u0441\\u0442\\u043e\\u0439 \\u043e\\u0431\\u044a\\u0435\\u043a\\u0442 \\u0440\\u0435\\u0437\\u0443\\u043b\\u044c\\u0442\\u0430\\u0442\\u0430 XPath\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"\\u0412\\u043e\\u0437\\u0432\\u0440\\u0430\\u0449\\u0435\\u043d\\u043d\\u044b\\u0439 \\u0442\\u0438\\u043f {0} \\u043d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0438\\u043d\\u0443\\u0434\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u0432 \\u0443\\u043a\\u0430\\u0437\\u0430\\u043d\\u043d\\u044b\\u0439 \\u0442\\u0438\\u043f: {1}\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u043f\\u0440\\u0435\\u0444\\u0438\\u043a\\u0441 \\u0441 \\u043f\\u043e\\u043c\\u043e\\u0449\\u044c\\u044e \\u043f\\u0443\\u0441\\u0442\\u043e\\u0433\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u0435\\u043b\\u044f.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c {0} \\u0432 \\u0441\\u0442\\u0440\\u043e\\u043a\\u0443.\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0432\\u044b\\u0437\\u0432\\u0430\\u0442\\u044c snapshotItem \\u0434\\u043b\\u044f \\u0442\\u0438\\u043f\\u0430: {0}. \\u0414\\u0430\\u043d\\u043d\\u0430\\u044f \\u043f\\u0440\\u043e\\u0446\\u0435\\u0434\\u0443\\u0440\\u0430 \\u043e\\u0442\\u043d\\u043e\\u0441\\u0438\\u0442\\u0441\\u044f \\u043a \\u0442\\u0438\\u043f\\u0430\\u043c UNORDERED_NODE_SNAPSHOT_TYPE \\u0438 ORDERED_NODE_SNAPSHOT_TYPE.\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"\\u0423\\u0437\\u0435\\u043b \\u043a\\u043e\\u043d\\u0442\\u0435\\u043a\\u0441\\u0442\\u0430 \\u043d\\u0435 \\u043e\\u0442\\u043d\\u043e\\u0441\\u0438\\u0442\\u0441\\u044f \\u043a \\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442\\u0443, \\u0441\\u0432\\u044f\\u0437\\u0430\\u043d\\u043d\\u043e\\u043c\\u0443 \\u0441 \\u0434\\u0430\\u043d\\u043d\\u044b\\u043c XPathEvaluator.\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"\\u0422\\u0438\\u043f \\u0443\\u0437\\u043b\\u0430 \\u043a\\u043e\\u043d\\u0442\\u0435\\u043a\\u0441\\u0442\\u0430 \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f.\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u0430\\u044f \\u043e\\u0448\\u0438\\u0431\\u043a\\u0430 \\u0432 XPath.\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"\\u041b\\u043e\\u043a\\u0430\\u043b\\u044c\\u043d\\u043e\\u0435 \\u0438\\u043c\\u044f \\u0432 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 format-number \\u0435\\u0449\\u0435 \\u043d\\u0435 \\u043e\\u0431\\u0440\\u0430\\u0431\\u043e\\u0442\\u0430\\u043d\\u043e!\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"\\u0421\\u0432\\u043e\\u0439\\u0441\\u0442\\u0432\\u043e XSL \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f: {0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"\\u041d\\u0435 \\u0432\\u044b\\u043f\\u043e\\u043b\\u043d\\u044f\\u0439\\u0442\\u0435 \\u043d\\u0438\\u043a\\u0430\\u043a\\u0438\\u0445 \\u043e\\u043f\\u0435\\u0440\\u0430\\u0446\\u0438\\u0439 \\u0441 \\u043f\\u0440\\u043e\\u0441\\u0442\\u0440\\u0430\\u043d\\u0441\\u0442\\u0432\\u043e\\u043c \\u0438\\u043c\\u0435\\u043d {0} \\u0432 \\u0441\\u0432\\u043e\\u0439\\u0441\\u0442\\u0432\\u0435: {1}\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"SecurityException \\u043f\\u0440\\u0438 \\u043f\\u043e\\u043f\\u044b\\u0442\\u043a\\u0435 \\u043e\\u0431\\u0440\\u0430\\u0449\\u0435\\u043d\\u0438\\u044f \\u043a \\u0441\\u0438\\u0441\\u0442\\u0435\\u043c\\u043d\\u043e\\u043c\\u0443 \\u0441\\u0432\\u043e\\u0439\\u0441\\u0442\\u0432\\u0443 XSL: {0}\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"\\u0421\\u0442\\u0430\\u0440\\u044b\\u0439 \\u0441\\u0438\\u043d\\u0442\\u0430\\u043a\\u0441\\u0438\\u0441: quo(...) \\u0431\\u043e\\u043b\\u044c\\u0448\\u0435 \\u043d\\u0435 \\u043e\\u043f\\u0440\\u0435\\u0434\\u0435\\u043b\\u0435\\u043d \\u0432 XPath.\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"\\u0414\\u043b\\u044f \\u0440\\u0435\\u0430\\u043b\\u0438\\u0437\\u0430\\u0446\\u0438\\u0438 nodeTest \\u0432 XPath \\u043d\\u0435\\u043e\\u0431\\u0445\\u043e\\u0434\\u0438\\u043c \\u043f\\u0440\\u043e\\u0438\\u0437\\u0432\\u043e\\u0434\\u043d\\u044b\\u0439 \\u043e\\u0431\\u044a\\u0435\\u043a\\u0442!\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\u041c\\u0430\\u0440\\u043a\\u0435\\u0440 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u0438 \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d.\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"\\u0424\\u0443\\u043d\\u043a\\u0446\\u0438\\u044f \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u0430: {0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0441\\u043e\\u0437\\u0434\\u0430\\u0442\\u044c URL \\u0438\\u0437: {0}\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"\\u041e\\u043f\\u0446\\u0438\\u044f -E \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f \\u0430\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440\\u043e\\u043c DTM\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"VariableReference \\u0434\\u043b\\u044f \\u043f\\u0435\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u043e\\u0439 \\u0437\\u0430\\u0434\\u0430\\u043d \\u0432\\u043d\\u0435 \\u043a\\u043e\\u043d\\u0442\\u0435\\u043a\\u0441\\u0442\\u0430 \\u0438\\u043b\\u0438 \\u0431\\u0435\\u0437 \\u043e\\u043f\\u0440\\u0435\\u0434\\u0435\\u043b\\u0435\\u043d\\u0438\\u044f! \\u0418\\u043c\\u044f = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"\\u041d\\u0435\\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u043c\\u0430\\u044f \\u043a\\u043e\\u0434\\u0438\\u0440\\u043e\\u0432\\u043a\\u0430: {0}\"},\n\n\n\n  { \"ui_language\", \"en\"},\n  { \"help_language\", \"en\"},\n  { \"language\", \"en\"},\n  { \"BAD_CODE\", \"\\u041f\\u0430\\u0440\\u0430\\u043c\\u0435\\u0442\\u0440 createMessage \\u043b\\u0435\\u0436\\u0438\\u0442 \\u0432\\u043d\\u0435 \\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\\u0433\\u043e \\u0434\\u0438\\u0430\\u043f\\u0430\\u0437\\u043e\\u043d\\u0430\"},\n  { \"FORMAT_FAILED\", \"\\u0418\\u0441\\u043a\\u043b\\u044e\\u0447\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u0430\\u044f \\u0441\\u0438\\u0442\\u0443\\u0430\\u0446\\u0438\\u044f \\u043f\\u0440\\u0438 \\u0432\\u044b\\u0437\\u043e\\u0432\\u0435 messageFormat\"},\n  { \"version\", \">>>>>>> \\u0412\\u0435\\u0440\\u0441\\u0438\\u044f Xalan\"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"\\u0434\\u0430\"},\n  { \"line\", \"\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0441\\u0442\\u0440\\u043e\\u043a\\u0438\"},\n  { \"column\", \"\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0441\\u0442\\u043e\\u043b\\u0431\\u0446\\u0430\"},\n  { \"xsldone\", \"XSLProcessor: \\u0432\\u044b\\u043f\\u043e\\u043b\\u043d\\u0435\\u043d\\u043e\"},\n  { \"xpath_option\", \"\\u041f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u043c\\u044b\\u0435 \\u043e\\u043f\\u0446\\u0438\\u0438:\"},\n  { \"optionIN\", \"   [-in inputXMLURL]\"},\n  { \"optionSelect\", \"   [-select \\u0432\\u044b\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435 xpath]\"},\n  { \"optionMatch\", \"   [-match \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d \\u0441\\u0440\\u0430\\u0432\\u043d\\u0435\\u043d\\u0438\\u044f (\\u0434\\u043b\\u044f \\u0434\\u0438\\u0430\\u0433\\u043d\\u043e\\u0441\\u0442\\u0438\\u043a\\u0438)]\"},\n  { \"optionAnyExpr\", \"\\u0418\\u043b\\u0438 \\u043f\\u0440\\u043e\\u0441\\u0442\\u043e \\u0443\\u043a\\u0430\\u0436\\u0438\\u0442\\u0435 \\u0432\\u044b\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435 xpath \\u0434\\u043b\\u044f \\u0441\\u043e\\u0437\\u0434\\u0430\\u043d\\u0438\\u044f \\u0434\\u0438\\u0430\\u0433\\u043d\\u043e\\u0441\\u0442\\u0438\\u0447\\u0435\\u0441\\u043a\\u043e\\u0433\\u043e \\u0434\\u0430\\u043c\\u043f\\u0430\"},\n  { \"noParsermsg1\", \"\\u0412 \\u043f\\u0440\\u043e\\u0446\\u0435\\u0441\\u0441\\u0435 XSL \\u043e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u044b \\u043e\\u0448\\u0438\\u0431\\u043a\\u0438.\"},\n  { \"noParsermsg2\", \"** \\u0410\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440 \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d **\"},\n  { \"noParsermsg3\", \"\\u041f\\u0440\\u043e\\u0432\\u0435\\u0440\\u044c\\u0442\\u0435 \\u0437\\u043d\\u0430\\u0447\\u0435\\u043d\\u0438\\u0435 classpath.\"},\n  { \"noParsermsg4\", \"\\u0415\\u0441\\u043b\\u0438 \\u0443 \\u0432\\u0430\\u0441 \\u043d\\u0435\\u0442 \\u0430\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440\\u0430 XML Parser for Java \\u0444\\u0438\\u0440\\u043c\\u044b IBM, \\u0432\\u044b \\u043c\\u043e\\u0436\\u0435\\u0442\\u0435 \\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044c \\u0435\\u0433\\u043e \\u0441 \\u0441\\u0430\\u0439\\u0442\\u0430\"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81], [1, 82], [1, 83], [1, 84], [1, 85], [1, 86], [1, 87], [1, 88], [1, 89], [1, 90], [1, 91], [1, 92], [1, 93], [1, 94], [1, 95], [1, 96], [1, 97], [1, 98], [1, 99], [1, 100], [1, 101], [1, 102], [1, 103], [1, 104], [1, 105], [1, 106], [1, 107], [1, 108], [1, 109], [1, 110], [1, 111], [1, 112], [1, 113], [1, 114], [1, 115], [1, 116], [1, 117], [1, 118], [1, 119], [1, 120], [1, 121], [1, 122], [1, 123], [1, 124], [1, 125], [1, 126], [1, 127], [1, 128], [1, 129], [1, 130], [1, 131], [1, 132], [1, 133], [1, 134], [1, 135], [1, 136], [1, 137], [1, 138], [1, 139], [1, 140], [1, 141], [1, 142], [1, 143], [1, 144], [1, 145], [1, 146], [1, 147], [1, 148], [1, 149], [1, 150], [1, 151], [1, 152], [1, 153], [1, 154], [1, 155], [1, 156], [1, 157], [1, 158], [1, 159], [1, 160], [1, 161], [1, 162], [1, 163], [1, 164], [1, 165], [1, 166], [1, 167], [1, 168], [1, 169], [1, 170], [1, 171], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [72, 1], [73, 1], [74, 1], [75, 1], [76, 1], [77, 1], [78, 1], [79, 1], [80, 1], [81, 1], [82, 1], [83, 1], [84, 1], [85, 1], [86, 1], [87, 1], [88, 1], [89, 1], [90, 1], [91, 1], [92, 1], [93, 1], [94, 1], [95, 1], [96, 1], [97, 1], [98, 1], [99, 1], [100, 1], [101, 1], [102, 1], [103, 1], [104, 1], [105, 1], [106, 1], [107, 1], [108, 1], [109, 1], [110, 1], [111, 1], [112, 1], [113, 1], [114, 1], [115, 1], [116, 1], [117, 1], [118, 1], [119, 1], [120, 1], [121, 1], [122, 1], [123, 1], [124, 1], [125, 1], [126, 1], [127, 1], [128, 1], [129, 1], [130, 1], [131, 1], [132, 1], [133, 1], [134, 1], [135, 1], [136, 1], [137, 1], [138, 1], [139, 1], [140, 1], [141, 1], [142, 1], [143, 1], [144, 1], [145, 1], [146, 1], [147, 1], [148, 1], [149, 1], [150, 1], [151, 1], [152, 1], [153, 1], [154, 1], [155, 1], [156, 1], [157, 1], [158, 1], [159, 1], [160, 1], [161, 1], [162, 1], [163, 1], [164, 1], [165, 1], [166, 1], [167, 1], [168, 1], [169, 1], [170, 1], [171, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171]]}, {"function_name": "loadResourceBundle", "code": "  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"en\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "log4j-1.1-4928", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/net/SMTPAppender.java", "language": "java", "name": "org.apache.log4j.net.SMTPAppender", "code": "public class SMTPAppender extends AppenderSkeleton {\n  private String to;\n  private String from;\n  private String subject;\n  private String smtpHost;\n  private int bufferSize = 512;\n  private boolean locationInfo = false;\n\n  protected CyclicBuffer cb = new CyclicBuffer(bufferSize);\n  protected Message msg;\n\n\n\n /**\n     A string constant used in naming the <em>To</em> field of\n     outgoing e-mail output file. Current value of this string\n     constant is <b>To</b>.\n\n     <p>Note that all option keys are case sensitive.\n     \n     @deprecated Options are now handled using the JavaBeans paradigm. \n     This constant will be removed in the <em>near</em> term.\n  */\n  public static final String TO_OPTION = \"To\";\n\n /**\n     A string constant used in naming the <em>From</em> field of\n     outgoing e-mail output file. Current value of this string\n     constant is <b>From</b>.\n\n     <p>Note that all option keys are case sensitive.\n\n     @deprecated Options are now handled using the JavaBeans paradigm. \n     This constant will be removed in the <em>near</em> term.     \n  */\n  public static final String FROM_OPTION = \"From\";\n\n /**\n     A string constant used in naming the <em>Subject</em> field of\n     outgoing e-mail output file. Current value of this string\n     constant is <b>Subject</b>.\n\n     <p>Note that all option keys are case sensitive.\n     \n     @deprecated Options are now handled using the JavaBeans paradigm. \n     This constant will be removed in the <em>near</em> term.\n  */\n  public static final String SUBJECT_OPTION = \"Subject\";\n\n\n /**\n     A string constant used in naming the SMTP host that will be\n     contacted to send the e-mail. Current value of this string\n     constant is <b>SMTPHost</b>.\n\n     <p>Note that all option keys are case sensitive.\n     \n     @deprecated Options are now handled using the JavaBeans paradigm. \n     This constant will be removed in the <em>near</em> term.\n  */\n  public static final String SMTP_HOST_OPTION = \"SMTPHost\";\n\n /**\n     A string constant used in naming the cyclic buffer size option.\n     Current value of this string constant is <b>BufferSize</b>.\n\n     <p>Note that all option keys are case sensitive.\n     \n     @deprecated Options are now handled using the JavaBeans paradigm. \n     This constant will be removed in the <em>near</em> term.\n  */\n  public static final String BUFFER_SIZE_OPTION = \"BufferSize\";\n\n\n /**\n     A string constant used in naming the class of the\n     TriggeringEventEvaluator that this SMTPApepdner wll use. Current\n     value of this string constant is <b>EvaluatorClass</b>.\n\n     <p>Note that all option keys are case sensitive.\n     \n     @deprecated Options are now handled using the JavaBeans paradigm. \n     This constant will be removed in the <em>near</em> term.\n  */\n  public static final String EVALUATOR_CLASS_OPTION = \"EvaluatorClass\";\n\n\n  /**\n     A string constant used in naming the option for setting the the\n     location information flag.  Current value of this string\n     constant is <b>LocationInfo</b>.  \n\n     <p>Note that all option keys are case sensitive.\n\n     @deprecated Options are now handled using the JavaBeans paradigm. \n     This constant will be removed in the <em>near</em> term.\n  */\n  public static final String LOCATION_INFO_OPTION = \"LocationInfo\";\n  \n  protected TriggeringEventEvaluator evaluator;\n\n\n\n  /**\n     The default constructor will instantiate the appender with a\n     {@link TriggeringEventEvaluator} that will trigger on events with\n     priority ERROR or higher.*/\n  public\n  SMTPAppender() {\n    this(new DefaultEvaluator());\n  }\n\n  \n  /**\n     Use <code>evaluator</code> passed as parameter as the {@link\n     TriggeringEventEvaluator} for this SMTPAppender.  */\n  public \n  SMTPAppender(TriggeringEventEvaluator evaluator) {\n    this.evaluator = evaluator;\n  }\n\n /**\n     Retuns the option names for this component in addition in\n     addition to the options of its super class {@link\n     AppenderSkeleton}.\n     \n     @deprecated We now use JavaBeans introspection to configure\n     components. Options strings are no longer needed.\n  */\n  public\n  String[] getOptionStrings() {\n    return OptionConverter.concatanateArrays(super.getOptionStrings(),\n          new String[] {TO_OPTION, FROM_OPTION, SUBJECT_OPTION, \n\t\t\t  SMTP_HOST_OPTION, BUFFER_SIZE_OPTION,  \n\t\t\t  EVALUATOR_CLASS_OPTION, LOCATION_INFO_OPTION });\n  }\n  \n\n  /**\n     Activate the specified options, such as the smtp host, the\n     recipient, from, etc. */\n  public\n  void activateOptions() {\n    Properties props = System.getProperties();\n    if (smtpHost != null)\n      props.put(\"mail.smtp.host\", smtpHost);\n\n    \n    Session session = Session.getDefaultInstance(props, null);\n    //session.setDebug(true);\n    msg = new MimeMessage(session);\n     \n     try {\n       if (from != null)\n\t msg.setFrom(getAddress(from));\n       else\n\t msg.setFrom();\n\n       msg.setRecipients(Message.RecipientType.TO, parseAddress(to));\n       if(subject != null)\n\t msg.setSubject(subject);\n     } catch(MessagingException e) {\n       LogLog.error(\"Could not activate SMTPAppender options.\", e );\n     }\n  }\n  \n  /**\n     Perform SMTPAppender specific appending actions, mainly adding\n     the event to a cyclic buffer and checking if the event triggers\n     an e-mail to be sent. */\n  public\n  void append(LoggingEvent event) {\n\n    if(!checkEntryConditions()) {\n      return;\n    }\n\n    event.getThreadName();\n    event.getNDC();\n    if(locationInfo) {\n      event.getLocationInformation();\t\n    }\n    cb.add(event);    \n    if(evaluator.isTriggeringEvent(event)) {\n      sendBuffer();\n    }\n  }\n\n /**\n     This method determines if there is a sense in attempting to append.\n     \n     <p>It checks whether there is a set output target and also if\n     there is a set layout. If these checks fail, then the boolean\n     value <code>false</code> is returned. */\n  protected\n  boolean checkEntryConditions() {\n    if(this.msg == null) {\n      errorHandler.error(\"Message object not configured.\");\n      return false;\n    }\n\n    if(this.evaluator == null) {\n      errorHandler.error(\"No TriggeringEventEvaluator is set for appender [\"+\n\t\t\t name+\"].\");\n      return false;\n    }\n\n    \n    if(this.layout == null) {\n      errorHandler.error(\"No layout set for appender named [\"+name+\"].\");\n      return false;\n    }\n    return true;\n  }\n\n\n  synchronized\n  public\n  void close() {\n    this.closed = true;\n  }\n\n  InternetAddress getAddress(String addressStr) {\n    try {\n      return new InternetAddress(addressStr);\n    } catch(AddressException e) {\n      errorHandler.error(\"Could not parse address [\"+addressStr+\"].\", e,\n\t\t\t ErrorCode.ADDRESS_PARSE_FAILURE);\n      return null;\n    }\n  }\n\n  InternetAddress[] parseAddress(String addressStr) {\n    try {\n      return InternetAddress.parse(addressStr, true);\n    } catch(AddressException e) {\n      errorHandler.error(\"Could not parse address [\"+addressStr+\"].\", e,\n\t\t\t ErrorCode.ADDRESS_PARSE_FAILURE);\n      return null;\n    }\n  }\n\n  /**\n     Returns value of the <b>To</b> option.\n   */\n  public\n  String getTo() {\n    return to;\n  }\n\n\n  /**\n     The <code>SMTPAppender</code> requires a {@link Layout layout}.  \n  */\n  public\n  boolean requiresLayout() {\n    return true;\n  }\n\n  /**\n     Send the contents of the cyclic buffer as an e-mail message.\n   */\n  protected\n  void sendBuffer() {\n\n    // Note: this code already owns the monitor for this\n    // appender. This frees us from needing to synchronize on 'cb'.\n    try {      \n      MimeBodyPart part = new MimeBodyPart();\n\n      StringBuffer sbuf = new StringBuffer();\n      String t = layout.getHeader();\n      if(t != null)\n\tsbuf.append(t);\n      int len =  cb.length(); \n      for(int i = 0; i < len; i++) {\n\t//sbuf.append(MimeUtility.encodeText(layout.format(cb.get())));\n\tLoggingEvent event = cb.get();\n\tsbuf.append(layout.format(event));\n\tif(layout.ignoresThrowable()) {\n\t  String[] s = event.getThrowableStrRep();\n\t  if (s != null) {\n\t    for(int j = 0; j < s.length; j++) {\n\t      sbuf.append(s[j]);\n\t    }\n\t  }\n\t}\n      }\n      t = layout.getFooter();\n      if(t != null)\n\tsbuf.append(t);\n      part.setContent(sbuf.toString(), layout.getContentType());      \n\n      Multipart mp = new MimeMultipart();\n      mp.addBodyPart(part);\n      msg.setContent(mp);\n\n      msg.setSentDate(new Date());\n      Transport.send(msg);      \n    } catch(Exception e) {\n      LogLog.error(\"Error occured while sending e-mail notification.\", e);\n    }\n  }\n  \n\n\n  /**\n     Returns value of the <b>EvaluatorClass</b> option.\n   */\n  public\n  String getEvaluatorClass() {\n    return evaluator == null ? null : evaluator.getClass().getName();\n  }\n  \n  /**\n     Returns value of the <b>From</b> option.\n   */\n  public\n  String getFrom() {\n    return from;\n  }\n\n  /**\n     Returns value of the <b>Subject</b> option.\n   */\n  public\n  String getSubject() {\n    return subject;\n  }\n\n\n/**\n   @deprecated Use the setter method for the option directly, instead\n   of the generic <code>setOption</code> method.  */\n  public\n  void setOption(String option, String value) {\n    if(value == null) return;\n    super.setOption(option, value);    \n\n    if(option.equals(TO_OPTION)) \n      to = value;\n    else if (option.equals(FROM_OPTION))\n      from = value;\n    else if (option.equals(SMTP_HOST_OPTION)) \n      smtpHost = value;\n    else if (option.equals(SUBJECT_OPTION)) \n      subject = value;\n    else if (option.equals(EVALUATOR_CLASS_OPTION)) {      \n      evaluator = (TriggeringEventEvaluator) \n                OptionConverter.instantiateByClassName(value, \n                                           TriggeringEventEvaluator.class,\n                                                       evaluator);    \n    } else if (option.equals(BUFFER_SIZE_OPTION)) {\n      bufferSize = OptionConverter.toInt(value, bufferSize);    \n      cb.resize(bufferSize);\n    } else if (option.equals(LOCATION_INFO_OPTION))\n      locationInfo = OptionConverter.toBoolean(value, locationInfo);\n  }\n\n\n  /**\n     The <b>From</b> option takes a string value which should be a\n     e-mail address of the sender.\n   */\n  public\n  void setFrom(String from) {\n    this.from = from;\n  }\n  \n  /**\n     The <b>Subject</b> option takes a string value which should be a\n     the subject of the e-mail message.\n   */\n  public\n  void setSubject(String subject) {\n    this.subject = subject;\n  }\n  \n\n  /**\n     The <b>BufferSize</b> option takes a positive integer\n     representing the maximum number of logging events to collect in a\n     cyclic buffer. When the <code>BufferSize</code> is reached,\n     oldest events are deleted as new events are added to the\n     buffer. By default the size of the cyclic buffer is 512 events.\n   */\n  public\n  void setBufferSize(int bufferSize) {\n    this.bufferSize = bufferSize;\n    cb.resize(bufferSize);\n  }\n  \n  /**\n     The <b>SMTPHost</b> option takes a string value which should be a\n     the host name of the SMTP server that will send the e-mail message.\n   */\n  public\n  void setSMTPHost(String smtpHost) {\n    this.smtpHost = smtpHost;\n  }\n  \n  /**\n     Returns value of the <b>SMTPHost</b> option.\n   */\n  public\n  String getSMTPHost() {\n    return smtpHost;\n  }\n\n  /**\n     The <b>To</b> option takes a string value which should be a\n     comma separated list of e-mail address of the recipients.\n   */\n  public\n  void setTo(String to) {\n    this.to = to;\n  }\n\n  \n\n  /**\n     Returns value of the <b>BufferSize</b> option.\n   */\n  public\n  int getBufferSize() {\n    return bufferSize;\n  }\n  \n  /**\n     The <b>EvaluatorClass</b> option takes a string value\n     representing the name of the class implementing the {@link\n     TriggeringEventEvaluator} interface. A corresponding object will\n     be instantiated and assigned as the triggering event evaluator\n     for the SMTPAppender.\n   */\n  public\n  void setEvaluatorClass(String value) {\n      evaluator = (TriggeringEventEvaluator) \n                OptionConverter.instantiateByClassName(value, \n\t\t\t\t\t   TriggeringEventEvaluator.class,\n\t\t\t\t\t\t       evaluator);    \n  }\n  \n  \n  /**\n     The <b>LocationInfo</b> option takes a boolean value. By\n     default, it is set to false which means there will be no effort\n     to extract the location information related to the event. As a\n     result, the layout that formats the events as they are sent out\n     in an e-mail is likely to place the wrong location information\n     (if present in the format).\n     \n     <p>Location information extraction is comparatively very slow and\n     should be avoided unless performance is not a concern.\n   */\n  public\n  void setLocationInfo(boolean locationInfo) {\n    this.locationInfo = locationInfo;\n  }\n  \n  /**\n     Returns value of the <b>LocationInfo</b> option.\n   */\n  public\n  boolean getLocationInfo() {\n    return locationInfo;", "functions": [{"function_name": "getOptionStrings", "code": "  String[] getOptionStrings() {\n    return OptionConverter.concatanateArrays(super.getOptionStrings(),\n          new String[] {TO_OPTION, FROM_OPTION, SUBJECT_OPTION, \n\t\t\t  SMTP_HOST_OPTION, BUFFER_SIZE_OPTION,  \n\t\t\t  EVALUATOR_CLASS_OPTION, LOCATION_INFO_OPTION });", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "activateOptions", "code": "  void activateOptions() {\n    Properties props = System.getProperties();\n    if (smtpHost != null)\n      props.put(\"mail.smtp.host\", smtpHost);\n\n    \n    Session session = Session.getDefaultInstance(props, null);\n    //session.setDebug(true);\n    msg = new MimeMessage(session);\n     \n     try {\n       if (from != null)\n\t msg.setFrom(getAddress(from));\n       else\n\t msg.setFrom();\n\n       msg.setRecipients(Message.RecipientType.TO, parseAddress(to));\n       if(subject != null)\n\t msg.setSubject(subject);\n     } catch(MessagingException e) {\n       LogLog.error(\"Could not activate SMTPAppender options.\", e );", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "CATCH", "IF", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [3, 9], [6, 10], [1, 11], [7, 12], [8, 13], [2, 14], [3, 15], [9, 16], [4, 17], [5, 18], [6, 19], [10, 20], [11, 21], [7, 22], [7, 23], [12, 24], [14, 25], [15, 26], [18, 27], [23, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 3], [10, 6], [11, 1], [12, 7], [13, 8], [14, 2], [15, 3], [16, 9], [17, 4], [18, 5], [19, 6], [20, 10], [21, 11], [22, 7], [23, 7], [24, 12], [25, 14], [26, 15], [27, 18], [28, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "append", "code": "  void append(LoggingEvent event) {\n\n    if(!checkEntryConditions()) {\n      return;\n    }\n\n    event.getThreadName();\n    event.getNDC();\n    if(locationInfo) {\n      event.getLocationInformation();\t\n    }\n    cb.add(event);    \n    if(evaluator.isTriggeringEvent(event)) {\n      sendBuffer();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [3, 9], [3, 10], [1, 11], [2, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 3], [10, 3], [11, 1], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "checkEntryConditions", "code": "  boolean checkEntryConditions() {\n    if(this.msg == null) {\n      errorHandler.error(\"Message object not configured.\");\n      return false;\n    }\n\n    if(this.evaluator == null) {\n      errorHandler.error(\"No TriggeringEventEvaluator is set for appender [\"+\n\t\t\t name+\"].\");\n      return false;\n    }\n\n    \n    if(this.layout == null) {\n      errorHandler.error(\"No layout set for appender named [\"+name+\"].\");\n      return false;\n    }\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [2, 9], [6, 10], [3, 11], [7, 12], [4, 13], [8, 14], [9, 15], [2, 16], [11, 17], [3, 18], [13, 19], [4, 20], [16, 21], [18, 22], [20, 23], [21, 24], [21, 25], [22, 26], [22, 27], [25, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 2], [10, 6], [11, 3], [12, 7], [13, 4], [14, 8], [15, 9], [16, 2], [17, 11], [18, 3], [19, 13], [20, 4], [21, 16], [22, 18], [23, 20], [24, 21], [25, 21], [26, 22], [27, 22], [28, 25], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "close", "code": "  void close() {\n    this.closed = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAddress", "code": "  InternetAddress getAddress(String addressStr) {\n    try {\n      return new InternetAddress(addressStr);\n    } catch(AddressException e) {\n      errorHandler.error(\"Could not parse address [\"+addressStr+\"].\", e,\n\t\t\t ErrorCode.ADDRESS_PARSE_FAILURE);\n      return null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [3, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 3], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "parseAddress", "code": "  InternetAddress[] parseAddress(String addressStr) {\n    try {\n      return InternetAddress.parse(addressStr, true);\n    } catch(AddressException e) {\n      errorHandler.error(\"Could not parse address [\"+addressStr+\"].\", e,\n\t\t\t ErrorCode.ADDRESS_PARSE_FAILURE);\n      return null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [3, 8], [6, 9], [8, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 3], [9, 6], [10, 8], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getTo", "code": "  String getTo() {\n    return to;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "requiresLayout", "code": "  boolean requiresLayout() {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "sendBuffer", "code": "  void sendBuffer() {\n\n    // Note: this code already owns the monitor for this\n    // appender. This frees us from needing to synchronize on 'cb'.\n    try {      \n      MimeBodyPart part = new MimeBodyPart();\n\n      StringBuffer sbuf = new StringBuffer();\n      String t = layout.getHeader();\n      if(t != null)\n\tsbuf.append(t);\n      int len =  cb.length(); \n      for(int i = 0; i < len; i++) {\n\t//sbuf.append(MimeUtility.encodeText(layout.format(cb.get())));\n\tLoggingEvent event = cb.get();\n\tsbuf.append(layout.format(event));\n\tif(layout.ignoresThrowable()) {\n\t  String[] s = event.getThrowableStrRep();\n\t  if (s != null) {\n\t    for(int j = 0; j < s.length; j++) {\n\t      sbuf.append(s[j]);\n\t    }\n\t  }\n\t}\n      }\n      t = layout.getFooter();\n      if(t != null)\n\tsbuf.append(t);\n      part.setContent(sbuf.toString(), layout.getContentType());      \n\n      Multipart mp = new MimeMultipart();\n      mp.addBodyPart(part);\n      msg.setContent(mp);\n\n      msg.setSentDate(new Date());\n      Transport.send(msg);      \n    } catch(Exception e) {\n      LogLog.error(\"Error occured while sending e-mail notification.\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [4, 16], [1, 17], [5, 18], [7, 19], [2, 20], [12, 21], [3, 22], [15, 23], [15, 24], [4, 25], [16, 26], [17, 27], [5, 28], [5, 29], [6, 30], [7, 31], [19, 32], [8, 33], [9, 34], [10, 35], [20, 36], [28, 37], [5, 38], [5, 39], [28, 40], [28, 41], [38, 42], [29, 43], [40, 44], [40, 45], [44, 46], [41, 47], [45, 48], [45, 49], [45, 50], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 4], [17, 1], [18, 5], [19, 7], [20, 2], [21, 12], [22, 3], [23, 15], [24, 15], [25, 4], [26, 16], [27, 17], [28, 5], [29, 5], [30, 6], [31, 7], [32, 19], [33, 8], [34, 9], [35, 10], [36, 20], [37, 28], [38, 5], [39, 5], [40, 28], [41, 28], [42, 38], [43, 29], [44, 40], [45, 40], [46, 44], [47, 41], [48, 45], [49, 45], [50, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "getEvaluatorClass", "code": "  String getEvaluatorClass() {\n    return evaluator == null ? null : evaluator.getClass().getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [3, 6], [5, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFrom", "code": "  String getFrom() {\n    return from;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSubject", "code": "  String getSubject() {\n    return subject;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOption", "code": "  void setOption(String option, String value) {\n    if(value == null) return;\n    super.setOption(option, value);    \n\n    if(option.equals(TO_OPTION)) \n      to = value;\n    else if (option.equals(FROM_OPTION))\n      from = value;\n    else if (option.equals(SMTP_HOST_OPTION)) \n      smtpHost = value;\n    else if (option.equals(SUBJECT_OPTION)) \n      subject = value;\n    else if (option.equals(EVALUATOR_CLASS_OPTION)) {      \n      evaluator = (TriggeringEventEvaluator) \n                OptionConverter.instantiateByClassName(value, \n                                           TriggeringEventEvaluator.class,\n                                                       evaluator);    \n    } else if (option.equals(BUFFER_SIZE_OPTION)) {\n      bufferSize = OptionConverter.toInt(value, bufferSize);    \n      cb.resize(bufferSize);\n    } else if (option.equals(LOCATION_INFO_OPTION))\n      locationInfo = OptionConverter.toBoolean(value, locationInfo);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "IF", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [5, 9], [5, 10], [1, 11], [8, 12], [9, 13], [9, 14], [5, 15], [13, 16], [13, 17], [9, 18], [16, 19], [16, 20], [13, 21], [19, 22], [19, 23], [22, 24], [16, 25], [22, 26], [19, 27], [19, 28], [26, 29], [28, 30], [25, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 5], [10, 5], [11, 1], [12, 8], [13, 9], [14, 9], [15, 5], [16, 13], [17, 13], [18, 9], [19, 16], [20, 16], [21, 13], [22, 19], [23, 19], [24, 22], [25, 16], [26, 22], [27, 19], [28, 19], [29, 26], [30, 28], [31, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "setFrom", "code": "  void setFrom(String from) {\n    this.from = from;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSubject", "code": "  void setSubject(String subject) {\n    this.subject = subject;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBufferSize", "code": "  void setBufferSize(int bufferSize) {\n    this.bufferSize = bufferSize;\n    cb.resize(bufferSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSMTPHost", "code": "  void setSMTPHost(String smtpHost) {\n    this.smtpHost = smtpHost;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSMTPHost", "code": "  String getSMTPHost() {\n    return smtpHost;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTo", "code": "  void setTo(String to) {\n    this.to = to;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBufferSize", "code": "  int getBufferSize() {\n    return bufferSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEvaluatorClass", "code": "  void setEvaluatorClass(String value) {\n      evaluator = (TriggeringEventEvaluator) \n                OptionConverter.instantiateByClassName(value, \n\t\t\t\t\t   TriggeringEventEvaluator.class,\n\t\t\t\t\t\t       evaluator);    ", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setLocationInfo", "code": "  void setLocationInfo(boolean locationInfo) {\n    this.locationInfo = locationInfo;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocationInfo", "code": "  boolean getLocationInfo() {\n    return locationInfo;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SMTPAppender", "code": "  SMTPAppender() {\n    this(new DefaultEvaluator());", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SMTPAppender", "code": "  SMTPAppender(TriggeringEventEvaluator evaluator) {\n    this.evaluator = evaluator;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7737", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/DTMException.java", "language": "java", "name": "org.apache.xml.dtm.DTMException", "code": "public class DTMException extends RuntimeException {\n\n    /** Field locator specifies where the error occured.\n     *  @serial */\n    SourceLocator locator;\n\n    /**\n     * Method getLocator retrieves an instance of a SourceLocator\n     * object that specifies where an error occured.\n     *\n     * @return A SourceLocator object, or null if none was specified.\n     */\n    public SourceLocator getLocator() {\n        return locator;\n    }\n\n    /**\n     * Method setLocator sets an instance of a SourceLocator\n     * object that specifies where an error occured.\n     *\n     * @param location A SourceLocator object, or null to clear the location.\n     */\n    public void setLocator(SourceLocator location) {\n        locator = location;\n    }\n\n    /** Field containedException specifies a wrapped exception.  May be null.\n     *  @serial */\n    Throwable containedException;\n\n    /**\n     * This method retrieves an exception that this exception wraps.\n     *\n     * @return An Throwable object, or null.\n     * @see #getCause\n     */\n    public Throwable getException() {\n        return containedException;\n    }\n\n    /**\n     * Returns the cause of this throwable or <code>null</code> if the\n     * cause is nonexistent or unknown.  (The cause is the throwable that\n     * caused this throwable to get thrown.)\n     */\n    public Throwable getCause() {\n\n        return ((containedException == this)\n                ? null\n                : containedException);\n    }\n\n    /**\n     * Initializes the <i>cause</i> of this throwable to the specified value.\n     * (The cause is the throwable that caused this throwable to get thrown.)\n     *\n     * <p>This method can be called at most once.  It is generally called from\n     * within the constructor, or immediately after creating the\n     * throwable.  If this throwable was created\n     * with {@link #DTMException(Throwable)} or\n     * {@link #DTMException(String,Throwable)}, this method cannot be called\n     * even once.\n     *\n     * @param  cause the cause (which is saved for later retrieval by the\n     *         {@link #getCause()} method).  (A <tt>null</tt> value is\n     *         permitted, and indicates that the cause is nonexistent or\n     *         unknown.)\n     * @return  a reference to this <code>Throwable</code> instance.\n     * @throws IllegalArgumentException if <code>cause</code> is this\n     *         throwable.  (A throwable cannot\n     *         be its own cause.)\n     * @throws IllegalStateException if this throwable was\n     *         created with {@link #DTMException(Throwable)} or\n     *         {@link #DTMException(String,Throwable)}, or this method has already\n     *         been called on this throwable.\n     */\n    public synchronized Throwable initCause(Throwable cause) {\n\n        if ((this.containedException == null) && (cause != null)) {\n        }\n\n        if (cause == this) {\n            throw new IllegalArgumentException();\n        }\n\n        this.containedException = cause;\n\n        return this;\n    }\n\n    /**\n     * Create a new DTMException.\n     *\n     * @param message The error or warning message.\n     */\n    public DTMException(String message) {\n\n        super(message);\n\n        this.containedException = null;\n        this.locator            = null;\n    }\n\n    /**\n     * Create a new DTMException wrapping an existing exception.\n     *\n     * @param e The exception to be wrapped.\n     */\n    public DTMException(Throwable e) {\n\n        super(e.getMessage());\n\n        this.containedException = e;\n        this.locator            = null;\n    }\n\n    /**\n     * Wrap an existing exception in a DTMException.\n     *\n     * <p>This is used for throwing processor exceptions before\n     * the processing has started.</p>\n     *\n     * @param message The error or warning message, or null to\n     *                use the message from the embedded exception.\n     * @param e Any exception\n     */\n    public DTMException(String message, Throwable e) {\n\n        super(((message == null) || (message.length() == 0))\n              ? e.getMessage()\n              : message);\n\n        this.containedException = e;\n        this.locator            = null;\n    }\n\n    /**\n     * Create a new DTMException from a message and a Locator.\n     *\n     * <p>This constructor is especially useful when an application is\n     * creating its own exception from within a DocumentHandler\n     * callback.</p>\n     *\n     * @param message The error or warning message.\n     * @param locator The locator object for the error or warning.\n     */\n    public DTMException(String message, SourceLocator locator) {\n\n        super(message);\n\n        this.containedException = null;\n        this.locator            = locator;\n    }\n\n    /**\n     * Wrap an existing exception in a DTMException.\n     *\n     * @param message The error or warning message, or null to\n     *                use the message from the embedded exception.\n     * @param locator The locator object for the error or warning.\n     * @param e Any exception\n     */\n    public DTMException(String message, SourceLocator locator,\n                                Throwable e) {\n\n        super(message);\n\n        this.containedException = e;\n        this.locator            = locator;\n    }\n\n    /**\n     * Get the error message with location information\n     * appended.\n     */\n    public String getMessageAndLocation() {\n\n        StringBuffer sbuffer = new StringBuffer();\n        String       message = super.getMessage();\n\n        if (null != message) {\n            sbuffer.append(message);\n        }\n\n        if (null != locator) {\n            String systemID = locator.getSystemId();\n            int    line     = locator.getLineNumber();\n            int    column   = locator.getColumnNumber();\n\n            if (null != systemID) {\n                sbuffer.append(\"; SystemID: \");\n                sbuffer.append(systemID);\n            }\n\n            if (0 != line) {\n                sbuffer.append(\"; Line#: \");\n                sbuffer.append(line);\n            }\n\n            if (0 != column) {\n                sbuffer.append(\"; Column#: \");\n                sbuffer.append(column);\n            }\n        }\n\n        return sbuffer.toString();\n    }\n\n    /**\n     * Get the location information as a string.\n     *\n     * @return A string with location info, or null\n     * if there is no location information.\n     */\n    public String getLocationAsString() {\n\n        if (null != locator) {\n            StringBuffer sbuffer  = new StringBuffer();\n            String       systemID = locator.getSystemId();\n            int          line     = locator.getLineNumber();\n            int          column   = locator.getColumnNumber();\n\n            if (null != systemID) {\n                sbuffer.append(\"; SystemID: \");\n                sbuffer.append(systemID);\n            }\n\n            if (0 != line) {\n                sbuffer.append(\"; Line#: \");\n                sbuffer.append(line);\n            }\n\n            if (0 != column) {\n                sbuffer.append(\"; Column#: \");\n                sbuffer.append(column);\n            }\n\n            return sbuffer.toString();\n        } else {\n            return null;\n        }\n    }\n\n    /**\n     * Print the the trace of methods from where the error\n     * originated.  This will trace all nested exception\n     * objects, as well as this object.\n     */\n    public void printStackTrace() {\n        printStackTrace(new java.io.PrintWriter(System.err, true));\n    }\n\n    /**\n     * Print the the trace of methods from where the error\n     * originated.  This will trace all nested exception\n     * objects, as well as this object.\n     * @param s The stream where the dump will be sent to.\n     */\n    public void printStackTrace(java.io.PrintStream s) {\n        printStackTrace(new java.io.PrintWriter(s));\n    }\n\n    /**\n     * Print the the trace of methods from where the error\n     * originated.  This will trace all nested exception\n     * objects, as well as this object.\n     * @param s The writer where the dump will be sent to.\n     */\n    public void printStackTrace(java.io.PrintWriter s) {\n\n        if (s == null) {\n            s = new java.io.PrintWriter(System.err, true);\n        }\n\n        try {\n            String locInfo = getLocationAsString();\n\n            if (null != locInfo) {\n                s.println(locInfo);\n            }\n\n            super.printStackTrace(s);\n        } catch (Throwable e) {}\n\n        Throwable exception = getException();\n\n        for (int i = 0; (i < 10) && (null != exception); i++) {\n            s.println(\"---------\");\n\n            try {\n                if (exception instanceof DTMException) {\n                    String locInfo =\n                        ((DTMException) exception)\n                            .getLocationAsString();\n\n                    if (null != locInfo) {\n                        s.println(locInfo);\n                    }\n                }\n\n                exception.printStackTrace(s);\n            } catch (Throwable e) {\n                s.println(\"Could not print stack trace...\");\n            }\n\n            try {\n                Method meth =\n                    ((Object) exception).getClass().getMethod(\"getException\",\n                        null);\n\n                if (null != meth) {\n                    Throwable prev = exception;\n\n                    exception = (Throwable) meth.invoke(exception, null);\n\n                    if (prev == exception) {\n                        break;\n                    }\n                } else {\n                    exception = null;\n                }\n            } catch (InvocationTargetException ite) {\n                exception = null;\n            } catch (IllegalAccessException iae) {\n                exception = null;\n            } catch (NoSuchMethodException nsme) {\n                exception = null;", "functions": [{"function_name": "getLocator", "code": "    public SourceLocator getLocator() {\n        return locator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLocator", "code": "    public void setLocator(SourceLocator location) {\n        locator = location;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getException", "code": "    public Throwable getException() {\n        return containedException;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCause", "code": "    public Throwable getCause() {\n\n        return ((containedException == this)\n                ? null\n                : containedException);", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "initCause", "code": "    public synchronized Throwable initCause(Throwable cause) {\n\n        if ((this.containedException == null) && (cause != null)) {\n        }\n\n        if (cause == this) {\n            throw new IllegalArgumentException();\n        }\n\n        this.containedException = cause;\n\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [2, 8], [7, 9], [7, 10], [8, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 2], [9, 7], [10, 7], [11, 8], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getMessageAndLocation", "code": "    public String getMessageAndLocation() {\n\n        StringBuffer sbuffer = new StringBuffer();\n        String       message = super.getMessage();\n\n        if (null != message) {\n            sbuffer.append(message);\n        }\n\n        if (null != locator) {\n            String systemID = locator.getSystemId();\n            int    line     = locator.getLineNumber();\n            int    column   = locator.getColumnNumber();\n\n            if (null != systemID) {\n                sbuffer.append(\"; SystemID: \");\n                sbuffer.append(systemID);\n            }\n\n            if (0 != line) {\n                sbuffer.append(\"; Line#: \");\n                sbuffer.append(line);\n            }\n\n            if (0 != column) {\n                sbuffer.append(\"; Column#: \");\n                sbuffer.append(column);\n            }\n        }\n\n        return sbuffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [7, 15], [8, 16], [5, 17], [9, 18], [10, 19], [11, 20], [3, 21], [18, 22], [19, 23], [20, 24], [12, 25], [13, 26], [14, 27], [9, 28], [9, 29], [10, 30], [10, 31], [11, 32], [11, 33], [29, 34], [31, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 7], [16, 8], [17, 5], [18, 9], [19, 10], [20, 11], [21, 3], [22, 18], [23, 19], [24, 20], [25, 12], [26, 13], [27, 14], [28, 9], [29, 9], [30, 10], [31, 10], [32, 11], [33, 11], [34, 29], [35, 31], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getLocationAsString", "code": "    public String getLocationAsString() {\n\n        if (null != locator) {\n            StringBuffer sbuffer  = new StringBuffer();\n            String       systemID = locator.getSystemId();\n            int          line     = locator.getLineNumber();\n            int          column   = locator.getColumnNumber();\n\n            if (null != systemID) {\n                sbuffer.append(\"; SystemID: \");\n                sbuffer.append(systemID);\n            }\n\n            if (0 != line) {\n                sbuffer.append(\"; Line#: \");\n                sbuffer.append(line);\n            }\n\n            if (0 != column) {\n                sbuffer.append(\"; Column#: \");\n                sbuffer.append(column);\n            }\n\n            return sbuffer.toString();\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [3, 13], [4, 14], [5, 15], [6, 16], [7, 17], [15, 18], [16, 19], [17, 20], [8, 21], [9, 22], [10, 23], [11, 24], [5, 25], [5, 26], [6, 27], [6, 28], [7, 29], [7, 30], [26, 31], [28, 32], [30, 33], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 3], [14, 4], [15, 5], [16, 6], [17, 7], [18, 15], [19, 16], [20, 17], [21, 8], [22, 9], [23, 10], [24, 11], [25, 5], [26, 5], [27, 6], [28, 6], [29, 7], [30, 7], [31, 26], [32, 28], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace() {\n        printStackTrace(new java.io.PrintWriter(System.err, true));", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace(java.io.PrintStream s) {\n        printStackTrace(new java.io.PrintWriter(s));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace(java.io.PrintWriter s) {\n\n        if (s == null) {\n            s = new java.io.PrintWriter(System.err, true);\n        }\n\n        try {\n            String locInfo = getLocationAsString();\n\n            if (null != locInfo) {\n                s.println(locInfo);\n            }\n\n            super.printStackTrace(s);\n        } catch (Throwable e) {}\n\n        Throwable exception = getException();\n\n        for (int i = 0; (i < 10) && (null != exception); i++) {\n            s.println(\"---------\");\n\n            try {\n                if (exception instanceof DTMException) {\n                    String locInfo =\n                        ((DTMException) exception)\n                            .getLocationAsString();\n\n                    if (null != locInfo) {\n                        s.println(locInfo);\n                    }\n                }\n\n                exception.printStackTrace(s);\n            } catch (Throwable e) {\n                s.println(\"Could not print stack trace...\");\n            }\n\n            try {\n                Method meth =\n                    ((Object) exception).getClass().getMethod(\"getException\",\n                        null);\n\n                if (null != meth) {\n                    Throwable prev = exception;\n\n                    exception = (Throwable) meth.invoke(exception, null);\n\n                    if (prev == exception) {\n                        break;\n                    }\n                } else {\n                    exception = null;\n                }\n            } catch (InvocationTargetException ite) {\n                exception = null;\n            } catch (IllegalAccessException iae) {\n                exception = null;\n            } catch (NoSuchMethodException nsme) {\n                exception = null;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "TRY", "IF", "PARAM", "BINARY_OP", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "TRY", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "CATCH", "CATCH", "IF", "VAR_DECL", "CATCH", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [3, 8], [3, 9], [4, 10], [1, 11], [1, 12], [6, 13], [6, 14], [2, 15], [8, 16], [10, 17], [11, 18], [11, 19], [11, 20], [11, 21], [11, 22], [12, 23], [12, 24], [1, 25], [13, 26], [14, 27], [1, 28], [16, 29], [9, 30], [4, 31], [21, 32], [12, 33], [24, 34], [25, 35], [8, 36], [31, 37], [18, 38], [19, 39], [20, 40], [21, 41], [21, 42], [32, 43], [23, 44], [24, 45], [24, 46], [37, 47], [38, 48], [39, 49], [40, 50], [21, 51], [41, 52], [21, 53], [44, 54], [45, 55], [51, 56], [41, 57], [55, 58], [53, 59], [45, 60], [59, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 3], [9, 3], [10, 4], [11, 1], [12, 1], [13, 6], [14, 6], [15, 2], [16, 8], [17, 10], [18, 11], [19, 11], [20, 11], [21, 11], [22, 11], [23, 12], [24, 12], [25, 1], [26, 13], [27, 14], [28, 1], [29, 16], [30, 9], [31, 4], [32, 21], [33, 12], [34, 24], [35, 25], [36, 8], [37, 31], [38, 18], [39, 19], [40, 20], [41, 21], [42, 21], [43, 32], [44, 23], [45, 24], [46, 24], [47, 37], [48, 38], [49, 39], [50, 40], [51, 21], [52, 41], [53, 21], [54, 44], [55, 45], [56, 51], [57, 41], [58, 55], [59, 53], [60, 45], [61, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "DTMException", "code": "    public DTMException(String message) {\n\n        super(message);\n\n        this.containedException = null;\n        this.locator            = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DTMException", "code": "    public DTMException(Throwable e) {\n\n        super(e.getMessage());\n\n        this.containedException = e;\n        this.locator            = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DTMException", "code": "    public DTMException(String message, Throwable e) {\n\n        super(((message == null) || (message.length() == 0))\n              ? e.getMessage()\n              : message);\n\n        this.containedException = e;\n        this.locator            = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [5, 8], [8, 9], [8, 10], [9, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 5], [9, 8], [10, 8], [11, 9], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "DTMException", "code": "    public DTMException(String message, SourceLocator locator) {\n\n        super(message);\n\n        this.containedException = null;\n        this.locator            = locator;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DTMException", "code": "    public DTMException(String message, SourceLocator locator,\n                                Throwable e) {\n\n        super(message);\n\n        this.containedException = e;\n        this.locator            = locator;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "poi-2.0-5453", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/util/LittleEndian.java", "language": "java", "name": "org.apache.poi.util.LittleEndian", "code": "public class LittleEndian\n         implements LittleEndianConsts {\n\n    /**\n     *  Constructor for the LittleEndian object\n     */\n    private LittleEndian() { }\n\n\n    /**\n     *  get a short value from a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the short (16-bit) value\n     */\n\n    public static short getShort(final byte[] data, final int offset) {\n        return (short) getNumber(data, offset, SHORT_SIZE);\n    }\n\n\n    /**\n     *  get an unsigned short value from a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the unsigned short (16-bit) value in an integer\n     */\n    public static int getUShort(final byte[] data, final int offset) {\n        short num = (short) getNumber(data, offset, SHORT_SIZE);\n        int retNum;\n        if (num < 0) {\n            retNum = ((int) Short.MAX_VALUE + 1) * 2 + (int) num;\n        } else {\n            retNum = (int) num;\n        }\n        return retNum;\n    }\n\n\n    /**\n     *  get a short array from a byte array.\n     *\n     *@param  data    Description of the Parameter\n     *@param  offset  Description of the Parameter\n     *@param  size    Description of the Parameter\n     *@return         The simpleShortArray value\n     */\n    public static short[] getSimpleShortArray(final byte[] data, final int offset, final int size) {\n        short[] results = new short[size];\n        for (int i = 0; i < size; i++) {\n            results[i] = getShort(data, offset + 2 + (i * 2));\n        }\n        return results;\n    }\n\n\n    /**\n     *  get a short array from a byte array. The short array is assumed to start\n     *  with a word describing the length of the array.\n     *\n     *@param  data    Description of the Parameter\n     *@param  offset  Description of the Parameter\n     *@return         The shortArray value\n     */\n    public static short[] getShortArray(final byte[] data, final int offset) {\n        int size = (short) getNumber(data, offset, SHORT_SIZE);\n        short[] results = getSimpleShortArray(data, offset, size);\n        return results;\n    }\n\n\n    /**\n     *  get a short value from the beginning of a byte array\n     *\n     *@param  data  the byte array\n     *@return       the short (16-bit) value\n     */\n\n    public static short getShort(final byte[] data) {\n        return getShort(data, 0);\n    }\n\n\n    /**\n     *  get an unsigned short value from the beginning of a byte array\n     *\n     *@param  data  the byte array\n     *@return       the unsigned short (16-bit) value in an int\n     */\n    public static int getUShort(final byte[] data) {\n        return getUShort(data, 0);\n    }\n\n\n    /**\n     *  get an int value from a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the int (32-bit) value\n     */\n\n    public static int getInt(final byte[] data, final int offset) {\n        return (int) getNumber(data, offset, INT_SIZE);\n    }\n\n\n    /**\n     *  get an int value from the beginning of a byte array\n     *\n     *@param  data  the byte array\n     *@return       the int (32-bit) value\n     */\n\n    public static int getInt(final byte[] data) {\n        return getInt(data, 0);\n    }\n\n\n    /**\n     *  get an unsigned int value from a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the unsigned int (32-bit) value in a long\n     */\n    public static long getUInt(final byte[] data, final int offset) {\n        int num = (int) getNumber(data, offset, INT_SIZE);\n        long retNum;\n        if (num < 0) {\n            retNum = ((long) Integer.MAX_VALUE + 1) * 2 + (long) num;\n        } else {\n            retNum = (int) num;\n        }\n        return retNum;\n    }\n\n    /**\n     *  get an unsigned int value from a byte array\n     *\n     *@param  data    the byte array\n     *@return         the unsigned int (32-bit) value in a long\n     */\n    public static long getUInt(final byte[] data) {\n\treturn getUInt(data,0);\n    }\n\n    /**\n     *  get a long value from a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the long (64-bit) value\n     */\n\n    public static long getLong(final byte[] data, final int offset) {\n        return getNumber(data, offset, LONG_SIZE);\n    }\n\n\n    /**\n     *  get a long value from the beginning of a byte array\n     *\n     *@param  data  the byte array\n     *@return       the long (64-bit) value\n     */\n\n    public static long getLong(final byte[] data) {\n        return getLong(data, 0);\n    }\n\n\n    /**\n     *  get a double value from a byte array, reads it in little endian format\n     *  then converts the resulting revolting IEEE 754 (curse them) floating\n     *  point number to a happy java double\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@return         the double (64-bit) value\n     */\n\n    public static double getDouble(final byte[] data, final int offset) {\n        return Double.longBitsToDouble(getNumber(data, offset, DOUBLE_SIZE));\n    }\n\n\n    /**\n     *  get a double value from the beginning of a byte array\n     *\n     *@param  data  the byte array\n     *@return       the double (64-bit) value\n     */\n\n    public static double getDouble(final byte[] data) {\n        return getDouble(data, 0);\n    }\n\n\n    /**\n     *  put a short value into a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@param  value   the short (16-bit) value\n     */\n    public static void putShort(final byte[] data, final int offset,\n            final short value) {\n        putNumber(data, offset, value, SHORT_SIZE);\n    }\n\n\n    /**\n     *  put a array of shorts into a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@param  value   the short array\n     */\n    public static void putShortArray(final byte[] data, final int offset, final short[] value) {\n        putNumber(data, offset, value.length, SHORT_SIZE);\n        for (int i = 0; i < value.length; i++) {\n            putNumber(data, offset + 2 + (i * 2), value[i], SHORT_SIZE);\n        }\n    }\n\n    /**\n     * put an unsigned short value into a byte array\n     *\n     * @param data the byte array\n     * @param offset a starting offset into the byte array\n     * @param value the short (16-bit) value\n     *\n     * @exception ArrayIndexOutOfBoundsException may be thrown\n     */\n    public static void putUShort(final byte[] data, final int offset,\n                                final int value)\n    {\n        putNumber(data, offset, value, SHORT_SIZE);\n    }\n\n    /**\n     *  put a short value into beginning of a byte array\n     *\n     *@param  data   the byte array\n     *@param  value  the short (16-bit) value\n     */\n\n    public static void putShort(final byte[] data, final short value) {\n        putShort(data, 0, value);\n    }\n\n\n    /**\n     *  put an int value into a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@param  value   the int (32-bit) value\n     */\n\n    public static void putInt(final byte[] data, final int offset,\n            final int value) {\n        putNumber(data, offset, value, INT_SIZE);\n    }\n\n\n    /**\n     *  put an int value into beginning of a byte array\n     *\n     *@param  data   the byte array\n     *@param  value  the int (32-bit) value\n     */\n\n    public static void putInt(final byte[] data, final int value) {\n        putInt(data, 0, value);\n    }\n\n\n    /**\n     *  put a long value into a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@param  value   the long (64-bit) value\n     */\n\n    public static void putLong(final byte[] data, final int offset,\n            final long value) {\n        putNumber(data, offset, value, LONG_SIZE);\n    }\n\n\n    /**\n     *  put a long value into beginning of a byte array\n     *\n     *@param  data   the byte array\n     *@param  value  the long (64-bit) value\n     */\n\n    public static void putLong(final byte[] data, final long value) {\n        putLong(data, 0, value);\n    }\n\n\n    /**\n     *  put a double value into a byte array\n     *\n     *@param  data    the byte array\n     *@param  offset  a starting offset into the byte array\n     *@param  value   the double (64-bit) value\n     */\n\n    public static void putDouble(final byte[] data, final int offset,\n            final double value) {\n        if (Double.isNaN(value))\n            putNumber(data, offset, -276939487313920L, DOUBLE_SIZE);\n        else\n            putNumber(data, offset, Double.doubleToLongBits(value), DOUBLE_SIZE);\n    }\n\n\n    /**\n     *  put a double value into beginning of a byte array\n     *\n     *@param  data   the byte array\n     *@param  value  the double (64-bit) value\n     */\n\n    public static void putDouble(final byte[] data, final double value) {\n        putDouble(data, 0, value);\n    }\n\n\n    /**\n     *  Exception to handle buffer underruns\n     *\n     *@author     Marc Johnson (mjohnson at apache dot org)\n     */\n\n    public static class BufferUnderrunException\n             extends IOException {\n\n        /**\n         *  simple constructor\n         */\n\n        BufferUnderrunException() {\n            super(\"buffer underrun\");\n        }\n    }\n\n\n    /**\n     *  get a short value from an InputStream\n     *\n     *@param  stream                       the InputStream from which the short\n     *      is to be read\n     *@return                              the short (16-bit) value\n     *@exception  IOException              will be propagated back to the caller\n     *@exception  BufferUnderrunException  if the stream cannot provide enough\n     *      bytes\n     */\n\n    public static short readShort(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getShort(readFromStream(stream, SHORT_SIZE));\n    }\n\n\n    /**\n     *  get an int value from an InputStream\n     *\n     *@param  stream                       the InputStream from which the int is\n     *      to be read\n     *@return                              the int (32-bit) value\n     *@exception  IOException              will be propagated back to the caller\n     *@exception  BufferUnderrunException  if the stream cannot provide enough\n     *      bytes\n     */\n\n    public static int readInt(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getInt(readFromStream(stream, INT_SIZE));\n    }\n\n\n    /**\n     *  get a long value from an InputStream\n     *\n     *@param  stream                       the InputStream from which the long\n     *      is to be read\n     *@return                              the long (64-bit) value\n     *@exception  IOException              will be propagated back to the caller\n     *@exception  BufferUnderrunException  if the stream cannot provide enough\n     *      bytes\n     */\n\n    public static long readLong(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getLong(readFromStream(stream, LONG_SIZE));\n    }\n\n    /**\n     *  Read the appropriate number of bytes from the stream and return them to\n     *  the caller. <p>\n     *\n     *  However, for the purposes of the POI project, this risk is deemed\n     *  negligible. It is, however, so noted.\n     *\n     *@param  stream                       the InputStream we're reading from\n     *@param  size                         the number of bytes to read; in\n     *      99.99% of cases, this will be SHORT_SIZE, INT_SIZE, or LONG_SIZE --\n     *      but it doesn't have to be.\n     *@return                              the byte array containing the\n     *      required number of bytes. The array will contain all zero's on end\n     *      of stream\n     *@exception  IOException              will be propagated back to the caller\n     *@exception  BufferUnderrunException  if the stream cannot provide enough\n     *      bytes\n     */\n\n    public static byte[] readFromStream(final InputStream stream,\n            final int size)\n             throws IOException, BufferUnderrunException {\n        byte[] buffer = new byte[size];\n\n        int count = stream.read(buffer);\n\n        if (count == -1) {\n\n            Arrays.fill(buffer, (byte) 0);\n        } else if (count != size) {\n            throw new BufferUnderrunException();\n        }\n        return buffer;\n    }\n\n\n    /**\n     *  Gets the number attribute of the LittleEndian class\n     *\n     *@param  data    Description of the Parameter\n     *@param  offset  Description of the Parameter\n     *@param  size    Description of the Parameter\n     *@return         The number value\n     */\n    private static long getNumber(final byte[] data, final int offset,\n            final int size) {\n        long result = 0;\n\n        for (int j = offset + size - 1; j >= offset; j--) {\n            result <<= 8;\n            result |= 0xff & data[j];\n        }\n        return result;\n    }\n\n\n    /**\n     *  Description of the Method\n     *\n     *@param  data    Description of the Parameter\n     *@param  offset  Description of the Parameter\n     *@param  value   Description of the Parameter\n     *@param  size    Description of the Parameter\n     */\n    private static void putNumber(final byte[] data, final int offset,\n            final long value, final int size) {\n        int limit = size + offset;\n        long v = value;\n\n        for (int j = offset; j < limit; j++) {\n            data[j] = (byte) (v & 0xFF);\n            v >>= 8;\n        }\n    }\n\n\n    /**\n     *  Convert an 'unsigned' byte to an integer. ie, don't carry across the\n     *  sign.\n     *\n     *@param  b  Description of the Parameter\n     *@return    Description of the Return Value\n     */\n    public static int ubyteToInt(byte b) {\n        return ((b & 0x80) == 0 ? (int) b : (int) (b & (byte) 0x7f) + 0x80);\n    }\n\n\n    /**\n     *  get the unsigned value of a byte.\n     *\n     *@param  data    the byte array.\n     *@param  offset  a starting offset into the byte array.\n     *@return         the unsigned value of the byte as a 32 bit integer\n     */\n    public static int getUnsignedByte(final byte[] data, final int offset) {\n        return (int) getNumber(data, offset, BYTE_SIZE);\n    }\n\n\n    /**\n     *  get the unsigned value of a byte.\n     *\n     *@param  data  the byte array\n     *@return       the unsigned value of the byte as a 32 bit integer\n     */\n    public static int getUnsignedByte(final byte[] data) {\n        return getUnsignedByte(data, 0);\n    }\n\n\n    /**\n     *  Copy a portion of a byte array\n     *\n     *@param  data                        the original byte array\n     *@param  offset                      Where to start copying from.\n     *@param  size                        Number of bytes to copy.\n     *@return                             The byteArray value\n     *@throws  IndexOutOfBoundsException  - if copying would cause access of\n     *      data outside array bounds.\n     */\n    public static byte[] getByteArray(final byte[] data, int offset, int size) {\n        byte[] copy = new byte[size];\n        System.arraycopy(data, offset, copy, 0, size);\n\n        return copy;", "functions": [{"function_name": "getShort", "code": "    public static short getShort(final byte[] data, final int offset) {\n        return (short) getNumber(data, offset, SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUShort", "code": "    public static int getUShort(final byte[] data, final int offset) {\n        short num = (short) getNumber(data, offset, SHORT_SIZE);\n        int retNum;\n        if (num < 0) {\n            retNum = ((int) Short.MAX_VALUE + 1) * 2 + (int) num;\n        } else {\n            retNum = (int) num;\n        }\n        return retNum;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [7, 8], [2, 9], [2, 10], [4, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 7], [9, 2], [10, 2], [11, 4], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getSimpleShortArray", "code": "    public static short[] getSimpleShortArray(final byte[] data, final int offset, final int size) {\n        short[] results = new short[size];\n        for (int i = 0; i < size; i++) {\n            results[i] = getShort(data, offset + 2 + (i * 2));\n        }\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [8, 10], [10, 11], [11, 12], [11, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 8], [11, 10], [12, 11], [13, 11], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getShortArray", "code": "    public static short[] getShortArray(final byte[] data, final int offset) {\n        int size = (short) getNumber(data, offset, SHORT_SIZE);\n        short[] results = getSimpleShortArray(data, offset, size);\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getShort", "code": "    public static short getShort(final byte[] data) {\n        return getShort(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUShort", "code": "    public static int getUShort(final byte[] data) {\n        return getUShort(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getInt", "code": "    public static int getInt(final byte[] data, final int offset) {\n        return (int) getNumber(data, offset, INT_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getInt", "code": "    public static int getInt(final byte[] data) {\n        return getInt(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUInt", "code": "    public static long getUInt(final byte[] data, final int offset) {\n        int num = (int) getNumber(data, offset, INT_SIZE);\n        long retNum;\n        if (num < 0) {\n            retNum = ((long) Integer.MAX_VALUE + 1) * 2 + (long) num;\n        } else {\n            retNum = (int) num;\n        }\n        return retNum;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [7, 8], [2, 9], [2, 10], [4, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 7], [9, 2], [10, 2], [11, 4], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getUInt", "code": "    public static long getUInt(final byte[] data) {\n\treturn getUInt(data,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLong", "code": "    public static long getLong(final byte[] data, final int offset) {\n        return getNumber(data, offset, LONG_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLong", "code": "    public static long getLong(final byte[] data) {\n        return getLong(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDouble", "code": "    public static double getDouble(final byte[] data, final int offset) {\n        return Double.longBitsToDouble(getNumber(data, offset, DOUBLE_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDouble", "code": "    public static double getDouble(final byte[] data) {\n        return getDouble(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putShort", "code": "    public static void putShort(final byte[] data, final int offset,\n            final short value) {\n        putNumber(data, offset, value, SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putShortArray", "code": "    public static void putShortArray(final byte[] data, final int offset, final short[] value) {\n        putNumber(data, offset, value.length, SHORT_SIZE);\n        for (int i = 0; i < value.length; i++) {\n            putNumber(data, offset + 2 + (i * 2), value[i], SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [1, 8], [7, 9], [9, 10], [9, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 1], [9, 7], [10, 9], [11, 9], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "putUShort", "code": "    public static void putUShort(final byte[] data, final int offset,\n                                final int value)\n    {\n        putNumber(data, offset, value, SHORT_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putShort", "code": "    public static void putShort(final byte[] data, final short value) {\n        putShort(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putInt", "code": "    public static void putInt(final byte[] data, final int offset,\n            final int value) {\n        putNumber(data, offset, value, INT_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putInt", "code": "    public static void putInt(final byte[] data, final int value) {\n        putInt(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putLong", "code": "    public static void putLong(final byte[] data, final int offset,\n            final long value) {\n        putNumber(data, offset, value, LONG_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putLong", "code": "    public static void putLong(final byte[] data, final long value) {\n        putLong(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "putDouble", "code": "    public static void putDouble(final byte[] data, final int offset,\n            final double value) {\n        if (Double.isNaN(value))\n            putNumber(data, offset, -276939487313920L, DOUBLE_SIZE);\n        else\n            putNumber(data, offset, Double.doubleToLongBits(value), DOUBLE_SIZE);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "putDouble", "code": "    public static void putDouble(final byte[] data, final double value) {\n        putDouble(data, 0, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readShort", "code": "    public static short readShort(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getShort(readFromStream(stream, SHORT_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readInt", "code": "    public static int readInt(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getInt(readFromStream(stream, INT_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readLong", "code": "    public static long readLong(final InputStream stream)\n             throws IOException, BufferUnderrunException {\n        return getLong(readFromStream(stream, LONG_SIZE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readFromStream", "code": "    public static byte[] readFromStream(final InputStream stream,\n            final int size)\n             throws IOException, BufferUnderrunException {\n        byte[] buffer = new byte[size];\n\n        int count = stream.read(buffer);\n\n        if (count == -1) {\n\n            Arrays.fill(buffer, (byte) 0);\n        } else if (count != size) {\n            throw new BufferUnderrunException();\n        }\n        return buffer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [8, 10], [3, 11], [7, 12], [2, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 8], [11, 3], [12, 7], [13, 2], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getNumber", "code": "    private static long getNumber(final byte[] data, final int offset,\n            final int size) {\n        long result = 0;\n\n        for (int j = offset + size - 1; j >= offset; j--) {\n            result <<= 8;\n            result |= 0xff & data[j];\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [2, 10], [2, 11], [9, 12], [10, 13], [11, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 2], [11, 2], [12, 9], [13, 10], [14, 11], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "putNumber", "code": "    private static void putNumber(final byte[] data, final int offset,\n            final long value, final int size) {\n        int limit = size + offset;\n        long v = value;\n\n        for (int j = offset; j < limit; j++) {\n            data[j] = (byte) (v & 0xFF);\n            v >>= 8;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [1, 10], [1, 11], [10, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 1], [11, 1], [12, 10], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "ubyteToInt", "code": "    public static int ubyteToInt(byte b) {\n        return ((b & 0x80) == 0 ? (int) b : (int) (b & (byte) 0x7f) + 0x80);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [4, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 4], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getUnsignedByte", "code": "    public static int getUnsignedByte(final byte[] data, final int offset) {\n        return (int) getNumber(data, offset, BYTE_SIZE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUnsignedByte", "code": "    public static int getUnsignedByte(final byte[] data) {\n        return getUnsignedByte(data, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getByteArray", "code": "    public static byte[] getByteArray(final byte[] data, int offset, int size) {\n        byte[] copy = new byte[size];\n        System.arraycopy(data, offset, copy, 0, size);\n\n        return copy;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "LittleEndian", "code": "    private LittleEndian() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.2-4233", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "gnu/regexp/REFilterReader.java", "language": "java", "name": "gnu.regexp.REFilterReader", "code": "public class REFilterReader extends FilterReader {\n\n  private RE expr;\n  private String replace;\n  private String buffer;\n  private int bufpos;\n  private int offset;\n  private CharIndexedReader stream;\n\n  /**\n   * Creates an REFilterReader.  When reading from this stream,\n   * occurrences of patterns matching the supplied regular expression\n   * will be replaced with the supplied replacement text (the\n   * metacharacters $0 through $9 may be used to refer to the full\n   * match or subexpression matches.\n   *\n   * @param stream The Reader to be filtered.\n   * @param expr The regular expression to search for.\n   * @param replace The text pattern to replace matches with.  \n   */\n  public REFilterReader(Reader stream, RE expr, String replace) {\n    super(stream);\n    this.stream = new CharIndexedReader(stream,0);\n    this.expr = expr;\n    this.replace = replace;\n  }\n\n  /**\n   * Reads the next character from the stream per the general contract of\n   * Reader.read().  Returns -1 on error or end of stream.\n   */\n  public int read() {\n    // If we have buffered replace data, use it.\n    if ((buffer != null) && (bufpos < buffer.length())) {\n      return (int) buffer.charAt(bufpos++);\n    }\n\n    // check if input is at a valid position\n    if (!stream.isValid()) return -1;\n\n    REMatch mymatch = new REMatch(expr.getNumSubs(),offset,0);\n    if (expr.match(stream,mymatch)) {\n      mymatch.end[0] = mymatch.index;\n      mymatch.finish(stream);\n      stream.move(mymatch.toString().length());\n      offset += mymatch.toString().length();\n      buffer = mymatch.substituteInto(replace);\n      bufpos = 1;\n\n      if (buffer.length() > 0) {\n\t  return buffer.charAt(0);\n      }\n    }\n    char ch = stream.charAt(0);\n    if (ch == CharIndexed.OUT_OF_BOUNDS) return -1;\n    stream.move(1);\n    offset++;\n    return ch;\n  }\n\n  /** \n   * Returns false.  REFilterReader does not support mark() and\n   * reset() methods. \n   */\n  public boolean markSupported() {\n    return false;\n  }\n\n  /** Reads from the stream into the provided array. */\n  public int read(char[] b, int off, int len) {\n    int i;\n    int ok = 0;\n    while (len-- > 0) {\n      i = read();\n      if (i == -1) return (ok == 0) ? -1 : ok;\n      b[off++] = (char) i;\n      ok++;\n    }\n    return ok;\n  }\n\n  /** Reads from the stream into the provided array. */\n  public int read(char[] b) {\n    return read(b,0,b.length);", "functions": [{"function_name": "read", "code": "  public int read() {\n    // If we have buffered replace data, use it.\n    if ((buffer != null) && (bufpos < buffer.length())) {\n      return (int) buffer.charAt(bufpos++);\n    }\n\n    // check if input is at a valid position\n    if (!stream.isValid()) return -1;\n\n    REMatch mymatch = new REMatch(expr.getNumSubs(),offset,0);\n    if (expr.match(stream,mymatch)) {\n      mymatch.end[0] = mymatch.index;\n      mymatch.finish(stream);\n      stream.move(mymatch.toString().length());\n      offset += mymatch.toString().length();\n      buffer = mymatch.substituteInto(replace);\n      bufpos = 1;\n\n      if (buffer.length() > 0) {\n\t  return buffer.charAt(0);\n      }\n    }\n    char ch = stream.charAt(0);\n    if (ch == CharIndexed.OUT_OF_BOUNDS) return -1;\n    stream.move(1);\n    offset++;\n    return ch;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [4, 11], [6, 12], [6, 13], [7, 14], [8, 15], [9, 16], [3, 17], [4, 18], [5, 19], [12, 20], [7, 21], [14, 22], [14, 23], [17, 24], [18, 25], [4, 26], [4, 27], [4, 28], [4, 29], [4, 30], [4, 31], [19, 32], [19, 33], [22, 34], [23, 35], [18, 36], [25, 37], [25, 38], [26, 39], [27, 40], [28, 41], [29, 42], [21, 43], [36, 44], [41, 45], [42, 46], [44, 47], [31, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 4], [12, 6], [13, 6], [14, 7], [15, 8], [16, 9], [17, 3], [18, 4], [19, 5], [20, 12], [21, 7], [22, 14], [23, 14], [24, 17], [25, 18], [26, 4], [27, 4], [28, 4], [29, 4], [30, 4], [31, 4], [32, 19], [33, 19], [34, 22], [35, 23], [36, 18], [37, 25], [38, 25], [39, 26], [40, 27], [41, 28], [42, 29], [43, 21], [44, 36], [45, 41], [46, 42], [47, 44], [48, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "markSupported", "code": "  public boolean markSupported() {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "read", "code": "  public int read(char[] b, int off, int len) {\n    int i;\n    int ok = 0;\n    while (len-- > 0) {\n      i = read();\n      if (i == -1) return (ok == 0) ? -1 : ok;\n      b[off++] = (char) i;\n      ok++;\n    }\n    return ok;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [8, 10], [3, 11], [2, 12], [9, 13], [9, 14], [2, 15], [13, 16], [14, 17], [15, 18], [16, 19], [16, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 8], [11, 3], [12, 2], [13, 9], [14, 9], [15, 2], [16, 13], [17, 14], [18, 15], [19, 16], [20, 16], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "read", "code": "  public int read(char[] b) {\n    return read(b,0,b.length);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "REFilterReader", "code": "  public REFilterReader(Reader stream, RE expr, String replace) {\n    super(stream);\n    this.stream = new CharIndexedReader(stream,0);\n    this.expr = expr;\n    this.replace = replace;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.7-8005", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/templates/DecimalFormatProperties.java", "language": "java", "name": "org.apache.xalan.templates.DecimalFormatProperties", "code": "public class DecimalFormatProperties extends ElemTemplateElement\n{\n    static final long serialVersionUID = -6559409339256269446L;\n\n  /** An instance of DecimalFormatSymbols for this element.\n   *  @serial       */\n  DecimalFormatSymbols m_dfs;\n\n  /**\n   * Constructor DecimalFormatProperties\n   *\n   */\n  public DecimalFormatProperties(int docOrderNumber)\n  {\n\n    m_dfs = new java.text.DecimalFormatSymbols();\n\n    m_dfs.setInfinity(Constants.ATTRVAL_INFINITY);\n    m_dfs.setNaN(Constants.ATTRVAL_NAN);\n\n    m_docOrderNumber = docOrderNumber;\n  }\n\n  /**\n   * Return the decimal format Symbols for this element.\n   * <p>The xsl:decimal-format element declares a decimal-format,\n   * which controls the interpretation of a format pattern used by\n   * the format-number function. If there is a name attribute, then\n   * the element declares a named decimal-format; otherwise, it\n   * declares the default decimal-format. The value of the name\n   * attribute is a QName, which is expanded as described in [2.4 Qualified Names].\n   * It is an error to declare either the default decimal-format or a\n   * decimal-format with a given name more than once (even with different\n   * import precedence), unless it is declared every time with the same\n   * value for all attributes (taking into account any default values).</p>\n   * <p>The other attributes on xsl:decimal-format correspond to the\n   * methods on the JDK 1.1 DecimalFormatSymbols class. For each get/set\n   * method pair there is an attribute defined for the xsl:decimal-format\n   * element.</p>\n   *\n   * @return the decimal format Symbols for this element.\n   */\n  public DecimalFormatSymbols getDecimalFormatSymbols()\n  {\n    return m_dfs;\n  }\n\n  /**\n   * If there is a name attribute, then the element declares a named\n   * decimal-format; otherwise, it declares the default decimal-format.\n   * @serial\n   */\n  private QName m_qname = null;\n\n  /**\n   * Set the \"name\" attribute.\n   * If there is a name attribute, then the element declares a named\n   * decimal-format; otherwise, it declares the default decimal-format.\n   *\n   * @param qname The name to set as the \"name\" attribute.\n   */\n  public void setName(QName qname)\n  {\n    m_qname = qname;\n  }\n\n  /**\n   * Get the \"name\" attribute.\n   * If there is a name attribute, then the element declares a named\n   * decimal-format; otherwise, it declares the default decimal-format.\n   *\n   * @return the value of the \"name\" attribute.\n   */\n  public QName getName()\n  {\n\n    if (m_qname == null)\n      return new QName(\"\");\n    else\n      return m_qname;\n  }\n\n  /**\n   * Set the \"decimal-separator\" attribute.\n   * decimal-separator specifies the character used for the decimal sign;\n   * the default value is the period character (.).\n   *\n   * @param ds Character to set as decimal separator \n   */\n  public void setDecimalSeparator(char ds)\n  {\n    m_dfs.setDecimalSeparator(ds);\n  }\n\n  /**\n   * Get the \"decimal-separator\" attribute.\n   * decimal-separator specifies the character used for the decimal sign;\n   * the default value is the period character (.).\n   *\n   * @return the character to use as decimal separator\n   */\n  public char getDecimalSeparator()\n  {\n    return m_dfs.getDecimalSeparator();\n  }\n\n  /**\n   * Set the \"grouping-separator\" attribute.\n   * grouping-separator specifies the character used as a grouping\n   * (e.g. thousands) separator; the default value is the comma character (,).\n   *\n   * @param gs Character to use a grouping separator \n   */\n  public void setGroupingSeparator(char gs)\n  {\n    m_dfs.setGroupingSeparator(gs);\n  }\n\n  /**\n   * Get the \"grouping-separator\" attribute.\n   * grouping-separator specifies the character used as a grouping\n   * (e.g. thousands) separator; the default value is the comma character (,).\n   *\n   * @return Character to use a grouping separator \n   */\n  public char getGroupingSeparator()\n  {\n    return m_dfs.getGroupingSeparator();\n  }\n\n  /**\n   * Set the \"infinity\" attribute.\n   * infinity specifies the string used to represent infinity;\n   * the default value is the string Infinity.\n   *\n   * @param inf String to use as the \"infinity\" attribute.\n   */\n  public void setInfinity(String inf)\n  {\n    m_dfs.setInfinity(inf);\n  }\n\n  /**\n   * Get the \"infinity\" attribute.\n   * infinity specifies the string used to represent infinity;\n   * the default value is the string Infinity.\n   *\n   * @return String to use as the \"infinity\" attribute.\n   */\n  public String getInfinity()\n  {\n    return m_dfs.getInfinity();\n  }\n\n  /**\n   * Set the \"minus-sign\" attribute.\n   * minus-sign specifies the character used as the default minus sign; the\n   * default value is the hyphen-minus character (-, #x2D).\n   *\n   * @param v Character to use as minus sign\n   */\n  public void setMinusSign(char v)\n  {\n    m_dfs.setMinusSign(v);\n  }\n\n  /**\n   * Get the \"minus-sign\" attribute.\n   * minus-sign specifies the character used as the default minus sign; the\n   * default value is the hyphen-minus character (-, #x2D).\n   *\n   * @return Character to use as minus sign\n   */\n  public char getMinusSign()\n  {\n    return m_dfs.getMinusSign();\n  }\n\n  /**\n   * Set the \"NaN\" attribute.\n   * NaN specifies the string used to represent the NaN value;\n   * the default value is the string NaN.\n   *\n   * @param v String to use as the \"NaN\" attribute.\n   */\n  public void setNaN(String v)\n  {\n    m_dfs.setNaN(v);\n  }\n\n  /**\n   * Get the \"NaN\" attribute.\n   * NaN specifies the string used to represent the NaN value;\n   * the default value is the string NaN.\n   *\n   * @return String to use as the \"NaN\" attribute.\n   */\n  public String getNaN()\n  {\n    return m_dfs.getNaN();\n  }\n  \n  /**\n   * Return the node name.\n   *\n   * @return the element's name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_DECIMALFORMAT_STRING;\n  }\n\n  /**\n   * Set the \"percent\" attribute.\n   * percent specifies the character used as a percent sign; the default\n   * value is the percent character (%).\n   *\n   * @param v Character to use as percent \n   */\n  public void setPercent(char v)\n  {\n    m_dfs.setPercent(v);\n  }\n\n  /**\n   * Get the \"percent\" attribute.\n   * percent specifies the character used as a percent sign; the default\n   * value is the percent character (%).\n   *\n   * @return Character to use as percent \n   */\n  public char getPercent()\n  {\n    return m_dfs.getPercent();\n  }\n\n  /**\n   * Set the \"per-mille\" attribute.\n   * per-mille specifies the character used as a per mille sign; the default\n   * value is the Unicode per-mille character (#x2030).\n   *\n   * @param v Character to use as per-mille\n   */\n  public void setPerMille(char v)\n  {\n    m_dfs.setPerMill(v);\n  }\n\n  /**\n   * Get the \"per-mille\" attribute.\n   * per-mille specifies the character used as a per mille sign; the default\n   * value is the Unicode per-mille character (#x2030).\n   *\n   * @return Character to use as per-mille \n   */\n  public char getPerMille()\n  {\n    return m_dfs.getPerMill();\n  }\n  \n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_DECIMALFORMAT;\n  }\n  \n  /**\n   * Set the \"zero-digit\" attribute.\n   * zero-digit specifies the character used as the digit zero; the default\n   * value is the digit zero (0).\n   *\n   * @param v Character to use as the digit zero\n   */\n  public void setZeroDigit(char v)\n  {\n    m_dfs.setZeroDigit(v);\n  }\n\n  /**\n   * Get the \"zero-digit\" attribute.\n   * zero-digit specifies the character used as the digit zero; the default\n   * value is the digit zero (0).\n   *\n   * @return Character to use as the digit zero\n   */\n  public char getZeroDigit()\n  {\n    return m_dfs.getZeroDigit();\n  }\n\n  /**\n   * Set the \"digit\" attribute.\n   * digit specifies the character used for a digit in the format pattern;\n   * the default value is the number sign character (#).\n   *\n   * @param v Character to use for a digit in format pattern\n   */\n  public void setDigit(char v)\n  {\n    m_dfs.setDigit(v);\n  }\n\n  /**\n   * Get the \"digit\" attribute.\n   * digit specifies the character used for a digit in the format pattern;\n   * the default value is the number sign character (#).\n   *\n   * @return Character to use for a digit in format pattern\n   */\n  public char getDigit()\n  {\n    return m_dfs.getDigit();\n  }\n\n  /**\n   * Set the \"pattern-separator\" attribute.\n   * pattern-separator specifies the character used to separate positive\n   * and negative sub patterns in a pattern; the default value is the\n   * semi-colon character (;).\n   *\n   * @param v Character to use as a pattern separator\n   */\n  public void setPatternSeparator(char v)\n  {\n    m_dfs.setPatternSeparator(v);\n  }\n\n  /**\n   * Get the \"pattern-separator\" attribute.\n   * pattern-separator specifies the character used to separate positive\n   * and negative sub patterns in a pattern; the default value is the\n   * semi-colon character (;).\n   *\n   * @return Character to use as a pattern separator\n   */\n  public char getPatternSeparator()\n  {\n    return m_dfs.getPatternSeparator();\n  }\n\n  /**\n   * This function is called to recompose() all of the decimal format properties elements.\n   * \n   * @param root Stylesheet root\n   */\n  public void recompose(StylesheetRoot root)\n  {\n    root.recomposeDecimalFormats(this);", "functions": [{"function_name": "getDecimalFormatSymbols", "code": "  public DecimalFormatSymbols getDecimalFormatSymbols()\n  {\n    return m_dfs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "  public void setName(QName qname)\n  {\n    m_qname = qname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "  public QName getName()\n  {\n\n    if (m_qname == null)\n      return new QName(\"\");\n    else\n      return m_qname;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setDecimalSeparator", "code": "  public void setDecimalSeparator(char ds)\n  {\n    m_dfs.setDecimalSeparator(ds);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDecimalSeparator", "code": "  public char getDecimalSeparator()\n  {\n    return m_dfs.getDecimalSeparator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setGroupingSeparator", "code": "  public void setGroupingSeparator(char gs)\n  {\n    m_dfs.setGroupingSeparator(gs);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getGroupingSeparator", "code": "  public char getGroupingSeparator()\n  {\n    return m_dfs.getGroupingSeparator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setInfinity", "code": "  public void setInfinity(String inf)\n  {\n    m_dfs.setInfinity(inf);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInfinity", "code": "  public String getInfinity()\n  {\n    return m_dfs.getInfinity();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMinusSign", "code": "  public void setMinusSign(char v)\n  {\n    m_dfs.setMinusSign(v);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMinusSign", "code": "  public char getMinusSign()\n  {\n    return m_dfs.getMinusSign();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNaN", "code": "  public void setNaN(String v)\n  {\n    m_dfs.setNaN(v);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNaN", "code": "  public String getNaN()\n  {\n    return m_dfs.getNaN();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_DECIMALFORMAT_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPercent", "code": "  public void setPercent(char v)\n  {\n    m_dfs.setPercent(v);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPercent", "code": "  public char getPercent()\n  {\n    return m_dfs.getPercent();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPerMille", "code": "  public void setPerMille(char v)\n  {\n    m_dfs.setPerMill(v);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPerMille", "code": "  public char getPerMille()\n  {\n    return m_dfs.getPerMill();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_DECIMALFORMAT;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setZeroDigit", "code": "  public void setZeroDigit(char v)\n  {\n    m_dfs.setZeroDigit(v);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getZeroDigit", "code": "  public char getZeroDigit()\n  {\n    return m_dfs.getZeroDigit();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDigit", "code": "  public void setDigit(char v)\n  {\n    m_dfs.setDigit(v);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDigit", "code": "  public char getDigit()\n  {\n    return m_dfs.getDigit();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPatternSeparator", "code": "  public void setPatternSeparator(char v)\n  {\n    m_dfs.setPatternSeparator(v);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPatternSeparator", "code": "  public char getPatternSeparator()\n  {\n    return m_dfs.getPatternSeparator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "recompose", "code": "  public void recompose(StylesheetRoot root)\n  {\n    root.recomposeDecimalFormats(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DecimalFormatProperties", "code": "  public DecimalFormatProperties(int docOrderNumber)\n  {\n\n    m_dfs = new java.text.DecimalFormatSymbols();\n\n    m_dfs.setInfinity(Constants.ATTRVAL_INFINITY);\n    m_dfs.setNaN(Constants.ATTRVAL_NAN);\n\n    m_docOrderNumber = docOrderNumber;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "ant-1.4-163", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/util/SourceFileScanner.java", "language": "java", "name": "org.apache.tools.ant.util.SourceFileScanner", "code": "public class SourceFileScanner {\n\n    protected Task task;\n\n    private FileUtils fileUtils;\n\n    /**\n     * @param task The task we should log messages through\n     */\n    public SourceFileScanner(Task task) {\n        this.task = task;\n        fileUtils = FileUtils.newFileUtils();\n    }\n\n    /**\n     * Restrict the given set of files to those that are newer than\n     * their corresponding target files.\n     *\n     * @param files   the original set of files\n     * @param srcDir  all files are relative to this directory\n     * @param destDir target files live here. if null file names\n     *                returned by the mapper are assumed to be absolute.\n     * @param mapper  knows how to construct a target file names from\n     *                source file names.\n     */\n    public String[] restrict(String[] files, File srcDir, File destDir,\n                             FileNameMapper mapper) {\n\n        long now = (new java.util.Date()).getTime();\n        StringBuffer targetList = new StringBuffer();\n\n        /*\n          If we're on Windows, we have to munge the time up to 2 secs to\n          be able to check file modification times.\n          (Windows has a max resolution of two secs for modification times)\n        */\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        if ( osname.indexOf(\"windows\") >= 0 ) {\n            now += 2000;\n        }\n\n        Vector v = new Vector();\n        for (int i=0; i< files.length; i++) {\n\n            String[] targets = mapper.mapFileName(files[i]);\n            if (targets == null || targets.length == 0) {\n                task.log(files[i]+\" skipped - don\\'t know how to handle it\",\n                         Project.MSG_VERBOSE);\n                continue;\n            }\n\n            File src = null;\n            if (srcDir == null) {\n                src = new File(files[i]);\n            } else {\n                src = fileUtils.resolveFile(srcDir, files[i]);\n            }\n\n            if (src.lastModified() > now) {\n                task.log(\"Warning: \"+files[i]+\" modified in the future.\", \n                         Project.MSG_WARN);\n            }\n\n            boolean added = false;\n            targetList.setLength(0);\n            for (int j=0; !added && j<targets.length; j++) {\n                File dest = null;\n                if (destDir == null) {\n                    dest = new File(targets[j]);\n                } else {\n                    dest = fileUtils.resolveFile(destDir, targets[j]);\n                }\n                \n                if (!dest.exists()) {\n                    task.log(files[i]+\" added as \"+dest.getAbsolutePath()+\" doesn\\'t exist.\",\n                             Project.MSG_VERBOSE);\n                    v.addElement(files[i]);\n                    added = true;\n                } else if (src.lastModified() > dest.lastModified()) {\n                    task.log(files[i]+\" added as \"+dest.getAbsolutePath()+\" is outdated.\",\n                             Project.MSG_VERBOSE);\n                    v.addElement(files[i]);\n                    added = true;\n                } else {\n                    if (targetList.length() > 0) {\n                        targetList.append(\", \");\n                    }\n                    targetList.append(dest.getAbsolutePath());\n                }\n            }\n\n            if (!added) {\n                task.log(files[i]+\" omitted as \"+targetList.toString()\n                         + (targets.length == 1 ? \" is\" : \" are \")\n                         + \" up to date.\", Project.MSG_VERBOSE);\n            }\n            \n        }\n        String[] result = new String[v.size()];\n        v.copyInto(result);\n        return result;\n    }\n\n    /**\n     * Convinience layer on top of restrict that returns the source\n     * files as File objects (containing absolute paths if srcDir is\n     * absolute).\n     */\n    public File[] restrictAsFiles(String[] files, File srcDir, File destDir,\n                                  FileNameMapper mapper) {\n        String[] res = restrict(files, srcDir, destDir, mapper);\n        File[] result = new File[res.length];\n        for (int i=0; i<res.length; i++) {\n            result[i] = new File(srcDir, res[i]);\n        }\n        return result;", "functions": [{"function_name": "restrict", "code": "    public String[] restrict(String[] files, File srcDir, File destDir,\n                             FileNameMapper mapper) {\n\n        long now = (new java.util.Date()).getTime();\n        StringBuffer targetList = new StringBuffer();\n\n        /*\n          If we're on Windows, we have to munge the time up to 2 secs to\n          be able to check file modification times.\n          (Windows has a max resolution of two secs for modification times)\n        */\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        if ( osname.indexOf(\"windows\") >= 0 ) {\n            now += 2000;\n        }\n\n        Vector v = new Vector();\n        for (int i=0; i< files.length; i++) {\n\n            String[] targets = mapper.mapFileName(files[i]);\n            if (targets == null || targets.length == 0) {\n                task.log(files[i]+\" skipped - don\\'t know how to handle it\",\n                         Project.MSG_VERBOSE);\n                continue;\n            }\n\n            File src = null;\n            if (srcDir == null) {\n                src = new File(files[i]);\n            } else {\n                src = fileUtils.resolveFile(srcDir, files[i]);\n            }\n\n            if (src.lastModified() > now) {\n                task.log(\"Warning: \"+files[i]+\" modified in the future.\", \n                         Project.MSG_WARN);\n            }\n\n            boolean added = false;\n            targetList.setLength(0);\n            for (int j=0; !added && j<targets.length; j++) {\n                File dest = null;\n                if (destDir == null) {\n                    dest = new File(targets[j]);\n                } else {\n                    dest = fileUtils.resolveFile(destDir, targets[j]);\n                }\n                \n                if (!dest.exists()) {\n                    task.log(files[i]+\" added as \"+dest.getAbsolutePath()+\" doesn\\'t exist.\",\n                             Project.MSG_VERBOSE);\n                    v.addElement(files[i]);\n                    added = true;\n                } else if (src.lastModified() > dest.lastModified()) {\n                    task.log(files[i]+\" added as \"+dest.getAbsolutePath()+\" is outdated.\",\n                             Project.MSG_VERBOSE);\n                    v.addElement(files[i]);\n                    added = true;\n                } else {\n                    if (targetList.length() > 0) {\n                        targetList.append(\", \");\n                    }\n                    targetList.append(dest.getAbsolutePath());\n                }\n            }\n\n            if (!added) {\n                task.log(files[i]+\" omitted as \"+targetList.toString()\n                         + (targets.length == 1 ? \" is\" : \" are \")\n                         + \" up to date.\", Project.MSG_VERBOSE);\n            }\n            \n        }\n        String[] result = new String[v.size()];\n        v.copyInto(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [5, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [4, 24], [15, 25], [15, 26], [6, 27], [7, 28], [8, 29], [2, 30], [17, 31], [3, 32], [19, 33], [20, 34], [22, 35], [3, 36], [5, 37], [26, 38], [27, 39], [27, 40], [29, 41], [17, 42], [17, 43], [17, 44], [31, 45], [32, 46], [18, 47], [33, 48], [34, 49], [21, 50], [22, 51], [35, 52], [35, 53], [23, 54], [37, 55], [16, 56], [42, 57], [42, 58], [43, 59], [17, 60], [19, 61], [20, 62], [20, 63], [22, 64], [52, 65], [53, 66], [56, 67], [57, 68], [59, 69], [44, 70], [61, 71], [62, 72], [63, 73], [64, 74], [67, 75], [67, 76], [57, 77], [68, 78], [68, 79], [42, 80], [42, 81], [42, 82], [43, 83], [43, 84], [71, 85], [71, 86], [74, 87], [76, 88], [76, 89], [57, 90], [77, 91], [57, 92], [57, 93], [57, 94], [80, 95], [82, 96], [83, 97], [84, 98], [86, 99], [88, 100], [88, 101], [88, 102], [89, 103], [89, 104], [90, 105], [91, 106], [91, 107], [92, 108], [94, 109], [96, 110], [96, 111], [102, 112], [104, 113], [77, 114], [109, 115], [109, 116], [111, 117], [111, 118], [114, 119], [116, 120], [116, 121], [118, 122], [121, 123], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 5], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 4], [25, 15], [26, 15], [27, 6], [28, 7], [29, 8], [30, 2], [31, 17], [32, 3], [33, 19], [34, 20], [35, 22], [36, 3], [37, 5], [38, 26], [39, 27], [40, 27], [41, 29], [42, 17], [43, 17], [44, 17], [45, 31], [46, 32], [47, 18], [48, 33], [49, 34], [50, 21], [51, 22], [52, 35], [53, 35], [54, 23], [55, 37], [56, 16], [57, 42], [58, 42], [59, 43], [60, 17], [61, 19], [62, 20], [63, 20], [64, 22], [65, 52], [66, 53], [67, 56], [68, 57], [69, 59], [70, 44], [71, 61], [72, 62], [73, 63], [74, 64], [75, 67], [76, 67], [77, 57], [78, 68], [79, 68], [80, 42], [81, 42], [82, 42], [83, 43], [84, 43], [85, 71], [86, 71], [87, 74], [88, 76], [89, 76], [90, 57], [91, 77], [92, 57], [93, 57], [94, 57], [95, 80], [96, 82], [97, 83], [98, 84], [99, 86], [100, 88], [101, 88], [102, 88], [103, 89], [104, 89], [105, 90], [106, 91], [107, 91], [108, 92], [109, 94], [110, 96], [111, 96], [112, 102], [113, 104], [114, 77], [115, 109], [116, 109], [117, 111], [118, 111], [119, 114], [120, 116], [121, 116], [122, 118], [123, 121], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123]]}, {"function_name": "restrictAsFiles", "code": "    public File[] restrictAsFiles(String[] files, File srcDir, File destDir,\n                                  FileNameMapper mapper) {\n        String[] res = restrict(files, srcDir, destDir, mapper);\n        File[] result = new File[res.length];\n        for (int i=0; i<res.length; i++) {\n            result[i] = new File(srcDir, res[i]);\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [2, 11], [2, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 2], [12, 2], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "SourceFileScanner", "code": "    public SourceFileScanner(Task task) {\n        this.task = task;\n        fileUtils = FileUtils.newFileUtils();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-2.5-5797", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/model/Workbook.java", "language": "java", "name": "org.apache.poi.hssf.model.Workbook", "code": "public class Workbook implements Model\n{\n    private static final int   DEBUG       = POILogger.DEBUG;\n\n\n    /**\n     * constant used to set the \"codepage\" wherever \"codepage\" is set in records\n     * (which is duplciated in more than one record)\n     */\n\n    private final static short CODEPAGE    = ( short ) 0x4b0;\n\n    /**\n     * this contains the Worksheet record objects\n     */\n    protected WorkbookRecordList        records     = new WorkbookRecordList();\n\n    /**\n     * this contains a reference to the SSTRecord so that new stings can be added\n     * to it.\n     */\n    protected SSTRecord        sst         = null;\n\n    /**\n     * Holds the Extern Sheet with references to bound sheets\n     */\n    protected ExternSheetRecord externSheet= null;\n\n    /**\n     * holds the \"boundsheet\" records (aka bundlesheet) so that they can have their\n     * reference to their \"BOF\" marker\n     */\n    protected ArrayList        boundsheets = new ArrayList();\n\n    protected ArrayList        formats = new ArrayList();\n\n    protected ArrayList        names = new ArrayList();\n\n    private DrawingManager drawingManager;\n\n    private static POILogger   log = POILogFactory.getLogger(Workbook.class);\n\n    /**\n     * Creates new Workbook with no intitialization --useless right now\n     * @see #createWorkbook(List)\n     */\n    public Workbook() {\n    }\n\n    /**\n     * read support  for low level\n     * API.  Pass in an array of Record objects, A Workbook\n     * object is constructed and passed back with all of its initialization set\n     * to the passed in records and references to those records held. Unlike Sheet\n     * workbook does not use an offset (its assumed to be 0) since its first in a file.\n     * If you need an offset then construct a new array with a 0 offset or write your\n     * own ;-p.\n     *\n     * @param recs an array of Record objects\n     * @return Workbook object\n     */\n    public static Workbook createWorkbook(List recs) {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"Workbook (readfile) created with reclen=\",\n                    new Integer(recs.size()));\n        Workbook  retval  = new Workbook();\n        ArrayList records = new ArrayList(recs.size() / 3);\n\n        for (int k = 0; k < recs.size(); k++) {\n            Record rec = ( Record ) recs.get(k);\n\n            if (rec.getSid() == EOFRecord.sid) {\n                records.add(rec);\n                if (log.check( POILogger.DEBUG ))\n                    log.log(DEBUG, \"found workbook eof record at \" + k);\n                break;\n            }\n            switch (rec.getSid()) {\n\n                case BoundSheetRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found boundsheet record at \" + k);\n                    retval.boundsheets.add(rec);\n                    retval.records.setBspos( k );\n                    break;\n\n                case SSTRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found sst record at \" + k);\n                    retval.sst = ( SSTRecord ) rec;\n                    break;\n\n                case FontRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found font record at \" + k);\n                    retval.records.setFontpos( k );\n                    retval.numfonts++;\n                    break;\n\n                case ExtendedFormatRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found XF record at \" + k);\n                    retval.records.setXfpos( k );\n                    retval.numxfs++;\n                    break;\n\n                case TabIdRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found tabid record at \" + k);\n                    retval.records.setTabpos( k );\n                    break;\n\n                case ProtectRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found protect record at \" + k);\n                    retval.records.setProtpos( k );\n                    break;\n\n                case BackupRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found backup record at \" + k);\n                    retval.records.setBackuppos( k );\n                    break;\n                case ExternSheetRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found extern sheet record at \" + k);\n                    retval.externSheet = ( ExternSheetRecord ) rec;\n                    break;\n                case NameRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found name record at \" + k);\n                    retval.names.add(rec);\n                    break;\n                case SupBookRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found SupBook record at \" + k);\n                    break;\n                case FormatRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found format record at \" + k);\n                    retval.formats.add(rec);\n                    retval.maxformatid = retval.maxformatid >= ((FormatRecord)rec).getIndexCode() ? retval.maxformatid : ((FormatRecord)rec).getIndexCode();\n                    break;\n                case DateWindow1904Record.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found datewindow1904 record at \" + k);\n                    retval.uses1904datewindowing = ((DateWindow1904Record)rec).getWindowing() == 1;\n                    break;\n                case PaletteRecord.sid:\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found palette record at \" + k);\n                    retval.records.setPalettepos( k );\n                default :\n            }\n            records.add(rec);\n        }\n\n        retval.records.setRecords(records);\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"exit create workbook from existing file function\");\n        return retval;\n    }\n\n    /**\n     * Creates an empty workbook object with three blank sheets and all the empty\n     * fields.  Use this to create a workbook from scratch.\n     */\n    public static Workbook createWorkbook()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log( DEBUG, \"creating new workbook from scratch\" );\n        Workbook retval = new Workbook();\n        ArrayList records = new ArrayList( 30 );\n        ArrayList formats = new ArrayList( 8 );\n\n        records.add( retval.createBOF() );\n        records.add( retval.createInterfaceHdr() );\n        records.add( retval.createMMS() );\n        records.add( retval.createInterfaceEnd() );\n        records.add( retval.createWriteAccess() );\n        records.add( retval.createCodepage() );\n        records.add( retval.createDSF() );\n        records.add( retval.createTabId() );\n        retval.records.setTabpos( records.size() - 1 );\n        records.add( retval.createFnGroupCount() );\n        records.add( retval.createWindowProtect() );\n        records.add( retval.createProtect() );\n        retval.records.setProtpos( records.size() - 1 );\n        records.add( retval.createPassword() );\n        records.add( retval.createProtectionRev4() );\n        records.add( retval.createPasswordRev4() );\n        records.add( retval.createWindowOne() );\n        records.add( retval.createBackup() );\n        retval.records.setBackuppos( records.size() - 1 );\n        records.add( retval.createHideObj() );\n        records.add( retval.createDateWindow1904() );\n        records.add( retval.createPrecision() );\n        records.add( retval.createRefreshAll() );\n        records.add( retval.createBookBool() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        retval.numfonts = 4;\n\n        for ( int i = 0; i <= 7; i++ )\n        {\n            Record rec;\n            rec = retval.createFormat( i );\n            retval.maxformatid = retval.maxformatid >= ( (FormatRecord) rec ).getIndexCode() ? retval.maxformatid : ( (FormatRecord) rec ).getIndexCode();\n            formats.add( rec );\n            records.add( rec );\n        }\n        retval.formats = formats;\n\n        for ( int k = 0; k < 21; k++ )\n        {\n            records.add( retval.createExtendedFormat( k ) );\n            retval.numxfs++;\n        }\n        retval.records.setXfpos( records.size() - 1 );\n        for ( int k = 0; k < 6; k++ )\n        {\n            records.add( retval.createStyle( k ) );\n        }\n        records.add( retval.createUseSelFS() );\n        for ( int k = 0; k < 1; k++ ){\n            BoundSheetRecord bsr =\n                    (BoundSheetRecord) retval.createBoundSheet( k );\n\n            records.add( bsr );\n            retval.boundsheets.add( bsr );\n            retval.records.setBspos( records.size() - 1 );\n        }\n        records.add( retval.createCountry() );\n        retval.sst = (SSTRecord) retval.createSST();\n        records.add( retval.sst );\n        records.add( retval.createExtendedSST() );\n\n        records.add( retval.createEOF() );\n        retval.records.setRecords(records);\n        if (log.check( POILogger.DEBUG ))\n            log.log( DEBUG, \"exit create new workbook from scratch\" );\n        return retval;\n    }\n\n\n\t/**Retrieves the Builtin NameRecord that matches the name and index\n\t * There shouldn't be too many names to make the sequential search too slow\n\t * @param name byte representation of the builtin name to match\n\t * @param sheetIndex Index to match\n\t * @return null if no builtin NameRecord matches\n\t */\n\tpublic NameRecord getSpecificBuiltinRecord(byte name, int sheetIndex)\n\t{\n\t    Iterator iterator = names.iterator();\n\t    while (iterator.hasNext()) {\n\t        NameRecord record = ( NameRecord ) iterator.next();\n\t\n\t        if (record.getBuiltInName() == name && record.getIndexToSheet() == sheetIndex) {\n\t            return record;\n\t        }\n\t    }\n\t    \n\t    return null;\n\t    \n\t}\n\n\t/**\n\t * Removes the specified Builtin NameRecord that matches the name and index\n\t * @param name byte representation of the builtin to match\n\t * @param sheetIndex zero-based sheet reference\n\t */\n\tpublic void removeBuiltinRecord(byte name, int sheetIndex) {\n\t\tNameRecord record = getSpecificBuiltinRecord(name, sheetIndex);\n\t\tif (record != null) {\n\t\t\tnames.remove(record);\n\t\t}\n\t\t\n\t}\n\n    public int getNumRecords() {\n        return records.size();\n    }\n\n    /**\n     * gets the font record at the given index in the font table.  Remember\n     * \"There is No Four\" (someone at M$ must have gone to Rocky Horror one too\n     * many times)\n     *\n     * @param idx the index to look at (0 or greater but NOT 4)\n     * @return FontRecord located at the given index\n     */\n\n    public FontRecord getFontRecordAt(int idx) {\n        int index = idx;\n\n        if (index > 4) {\n        }\n        if (index > (numfonts - 1)) {\n            throw new ArrayIndexOutOfBoundsException(\n            \"There are only \" + numfonts\n            + \" font records, you asked for \" + idx);\n        }\n        FontRecord retval =\n        ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index);\n\n        return retval;\n    }\n\n    /**\n     * creates a new font record and adds it to the \"font table\".  This causes the\n     * boundsheets to move down one, extended formats to move down (so this function moves\n     * those pointers as well)\n     *\n     * @return FontRecord that was just created\n     */\n\n    public FontRecord createNewFont() {\n        FontRecord rec = ( FontRecord ) createFont();\n\n        records.add(records.getFontpos()+1, rec);\n        records.setFontpos( records.getFontpos() + 1 );\n        numfonts++;\n        return rec;\n    }\n\n    /**\n     * gets the number of font records\n     *\n     * @return   number of font records in the \"font table\"\n     */\n\n    public int getNumberOfFontRecords() {\n        return numfonts;\n    }\n\n    /**\n     * Sets the BOF for a given sheet\n     *\n     * @param sheetnum the number of the sheet to set the positing of the bof for\n     * @param pos the actual bof position\n     */\n\n    public void setSheetBof(int sheetnum, int pos) {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"setting bof for sheetnum =\", new Integer(sheetnum),\n                \" at pos=\", new Integer(pos));\n        checkSheets(sheetnum);\n        (( BoundSheetRecord ) boundsheets.get(sheetnum))\n        .setPositionOfBof(pos);\n    }\n\n    /**\n     * Returns the position of the backup record.\n     */\n\n    public BackupRecord getBackupRecord() {\n        return ( BackupRecord ) records.get(records.getBackuppos());\n    }\n\n\n    /**\n     * sets the name for a given sheet.  If the boundsheet record doesn't exist and\n     * its only one more than we have, go ahead and create it.  If its > 1 more than\n     * we have, except\n     *\n     * @param sheetnum the sheet number (0 based)\n     * @param sheetname the name for the sheet\n     */\n\n    public void setSheetName(int sheetnum, String sheetname ) {\n        setSheetName( sheetnum, sheetname, (byte)0 );\n    }\n\n    public void setSheetName(int sheetnum, String sheetname, short encoding ) {\n        checkSheets(sheetnum);\n        BoundSheetRecord sheet = (BoundSheetRecord)boundsheets.get( sheetnum );\n        sheet.setSheetname(sheetname);\n        sheet.setSheetnameLength( (byte)sheetname.length() );\n\t\tsheet.setCompressedUnicodeFlag( (byte)encoding );\n    }\n    \n    \t/**\n\t * sets the order of appearance for a given sheet.\n\t *\n\t * @param sheetname the name of the sheet to reorder\n\t * @param pos the position that we want to insert the sheet into (0 based)\n\t */\n    \n    public void setSheetOrder(String sheetname, int pos ) {\n\tint sheetNumber = getSheetIndex(sheetname);\n\tboundsheets.add(pos, boundsheets.remove(sheetNumber));\t\n    }\n\n    /**\n     * gets the name for a given sheet.\n     *\n     * @param sheetnum the sheet number (0 based)\n     * @return sheetname the name for the sheet\n     */\n\n    public String getSheetName(int sheetnum) {\n        return (( BoundSheetRecord ) boundsheets.get(sheetnum))\n        .getSheetname();\n    }\n\n    /**\n     * get the sheet's index\n     * @param name  sheet name\n     * @return sheet index or -1 if it was not found.\n     */\n\n    public int getSheetIndex(String name) {\n        int retval = -1;\n\n        for (int k = 0; k < boundsheets.size(); k++) {\n            String sheet = getSheetName(k);\n\n            if (sheet.equalsIgnoreCase(name)) {\n                retval = k;\n                break;\n            }\n        }\n        return retval;\n    }\n\n    /**\n     * if we're trying to address one more sheet than we have, go ahead and add it!  if we're\n     * trying to address >1 more than we have throw an exception!\n     */\n\n    private void checkSheets(int sheetnum) {\n            if ((boundsheets.size() + 1) <= sheetnum) {\n                throw new RuntimeException(\"Sheet number out of bounds!\");\n            }\n            BoundSheetRecord bsr = (BoundSheetRecord ) createBoundSheet(sheetnum);\n\n            records.add(records.getBspos()+1, bsr);\n            records.setBspos( records.getBspos() + 1 );\n            boundsheets.add(bsr);\n            fixTabIdRecord();\n        \n    }\n\n    public void removeSheet(int sheetnum) {\n        if (boundsheets.size() > sheetnum) {\n            records.remove(records.getBspos() - (boundsheets.size() - 1) + sheetnum);\n            boundsheets.remove(sheetnum);\n            fixTabIdRecord();\n        }\n    }\n\n    /**\n     * make the tabid record look like the current situation.\n     *\n     */\n    private void fixTabIdRecord() {\n        TabIdRecord tir = ( TabIdRecord ) records.get(records.getTabpos());\n        short[]     tia = new short[ boundsheets.size() ];\n\n        for (short k = 0; k < tia.length; k++) {\n            tia[ k ] = k;\n        }\n        tir.setTabIdArray(tia);\n    }\n\n    /**\n     * returns the number of boundsheet objects contained in this workbook.\n     *\n     * @return number of BoundSheet records\n     */\n\n    public int getNumSheets() {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"getNumSheets=\", new Integer(boundsheets.size()));\n        return boundsheets.size();\n    }\n\n    /**\n     * get the number of ExtendedFormat records contained in this workbook.\n     *\n     * @return int count of ExtendedFormat records\n     */\n\n    public int getNumExFormats() {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"getXF=\", new Integer(numxfs));\n        return numxfs;\n    }\n\n    /**\n     * gets the ExtendedFormatRecord at the given 0-based index\n     *\n     * @param index of the Extended format record (0-based)\n     * @return ExtendedFormatRecord at the given index\n     */\n\n    public ExtendedFormatRecord getExFormatAt(int index) {\n        int xfptr = records.getXfpos() - (numxfs - 1);\n\n        xfptr += index;\n        ExtendedFormatRecord retval =\n        ( ExtendedFormatRecord ) records.get(xfptr);\n\n        return retval;\n    }\n\n    /**\n     * creates a new Cell-type Extneded Format Record and adds it to the end of\n     *  ExtendedFormatRecords collection\n     *\n     * @return ExtendedFormatRecord that was created\n     */\n\n    public ExtendedFormatRecord createCellXF() {\n        ExtendedFormatRecord xf = createExtendedFormat();\n\n        records.add(records.getXfpos()+1, xf);\n        records.setXfpos( records.getXfpos() + 1 );\n        numxfs++;\n        return xf;\n    }\n\n    /**\n     * Adds a string to the SST table and returns its index (if its a duplicate\n     * just returns its index and update the counts)\n     *\n     * @param string the string to be added to the SSTRecord\n     * @param use16bits whether to use utf 16 or false for compressed unicode\n     * @return index of the string within the SSTRecord\n     */\n\n    public int addSSTString(String string, boolean use16bits) {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"insert to sst string='\", string, \"' and use16bits= \",\n        new Boolean(use16bits));\n        if (sst == null) {\n            insertSST();\n        }\n        return sst.addString(string, use16bits);\n    }\n\n    /**\n     * Adds a string to the SST table and returns its index (if its a duplicate\n     * just returns its index and update the counts) ASSUMES compressed unicode\n     * (meaning 8bit)\n     *\n     * @param string the string to be added to the SSTRecord\n     *\n     * @return index of the string within the SSTRecord\n     */\n\n    public int addSSTString(String string) {\n        return addSSTString(string, false);\n    }\n\n    /**\n     * given an index into the SST table, this function returns the corresponding String value\n     * @return String containing the SST String\n     */\n\n    public String getSSTString(int str) {\n        if (sst == null) {\n            insertSST();\n        }\n        String retval = sst.getString(str);\n\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"Returning SST for index=\", new Integer(str),\n                \" String= \", retval);\n        return retval;\n    }\n\n    /**\n     * use this function to add a Shared String Table to an existing sheet (say\n     * generated by a different java api) without an sst....\n     * @see #createSST()\n     * @see org.apache.poi.hssf.record.SSTRecord\n     */\n\n    public void insertSST() {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"creating new SST via insertSST!\");\n        sst = ( SSTRecord ) createSST();\n        records.add(records.size() - 1, createExtendedSST());\n        records.add(records.size() - 2, sst);\n    }\n\n    /**\n     * Serializes all records int the worksheet section into a big byte array. Use\n     * this to write the Workbook out.\n     *\n     * @return byte array containing the HSSF-only portions of the POIFS file.\n     */\n\n    /**\n     * Serializes all records int the worksheet section into a big byte array. Use\n     * this to write the Workbook out.\n     * @param offset of the data to be written\n     * @param data array of bytes to write this to\n     */\n\n    public int serialize( int offset, byte[] data )\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log( DEBUG, \"Serializing Workbook with offsets\" );\n\n        int pos = 0;\n\n        SSTRecord sst = null;\n        int sstPos = 0;\n        for ( int k = 0; k < records.size(); k++ )\n        {\n\n            Record record = records.get( k );\n            if ( record.getSid() != RecalcIdRecord.sid || ( (RecalcIdRecord) record ).isNeeded() )\n            {\n                if (record instanceof SSTRecord)\n                {\n                    sst = (SSTRecord)record;\n                    sstPos = pos;\n                }\n                if (record.getSid() == ExtSSTRecord.sid && sst != null)\n                {\n                    record = sst.createExtSSTRecord(sstPos + offset);\n                }\n            }\n        }\n        if (log.check( POILogger.DEBUG ))\n            log.log( DEBUG, \"Exiting serialize workbook\" );\n        return pos;\n    }\n\n    public int getSize()\n    {\n        int retval = 0;\n\n        SSTRecord sst = null;\n        for ( int k = 0; k < records.size(); k++ )\n        {\n            Record record = records.get( k );\n            if ( record.getSid() != RecalcIdRecord.sid || ( (RecalcIdRecord) record ).isNeeded() )\n            {\n                if (record instanceof SSTRecord)\n                    sst = (SSTRecord)record;\n                if (record.getSid() == ExtSSTRecord.sid && sst != null)\n                    retval += sst.calcExtSSTRecordSize();\n                else\n                    retval += record.getRecordSize();\n            }\n        }\n        return retval;\n    }\n\n    /**\n     * creates the BOF record\n     * @see org.apache.poi.hssf.record.BOFRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a BOFRecord\n     */\n\n    protected Record createBOF() {\n        BOFRecord retval = new BOFRecord();\n\n        retval.setVersion(( short ) 0x600);\n        retval.setType(( short ) 5);\n        retval.setBuild(( short ) 0x10d3);\n\n        retval.setBuildYear(( short ) 1996);\n        retval.setRequiredVersion(0x6);\n        return retval;\n    }\n\n    /**\n     * creates the InterfaceHdr record\n     * @see org.apache.poi.hssf.record.InterfaceHdrRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a InterfaceHdrRecord\n     */\n\n    protected Record createInterfaceHdr() {\n        InterfaceHdrRecord retval = new InterfaceHdrRecord();\n\n        retval.setCodepage(CODEPAGE);\n        return retval;\n    }\n\n    /**\n     * creates an MMS record\n     * @see org.apache.poi.hssf.record.MMSRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a MMSRecord\n     */\n\n    protected Record createMMS() {\n        MMSRecord retval = new MMSRecord();\n\n        retval.setAddMenuCount(( byte ) 0);\n        retval.setDelMenuCount(( byte ) 0);\n        return retval;\n    }\n\n    /**\n     * creates the InterfaceEnd record\n     * @see org.apache.poi.hssf.record.InterfaceEndRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a InterfaceEndRecord\n     */\n\n    protected Record createInterfaceEnd() {\n        return new InterfaceEndRecord();\n    }\n\n    /**\n     * creates the WriteAccess record containing the logged in user's name\n     * @see org.apache.poi.hssf.record.WriteAccessRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a WriteAccessRecord\n     */\n\n    protected Record createWriteAccess() {\n        WriteAccessRecord retval = new WriteAccessRecord();\n\n        retval.setUsername(System.getProperty(\"user.name\"));\n        return retval;\n    }\n\n    /**\n     * creates the Codepage record containing the constant stored in CODEPAGE\n     * @see org.apache.poi.hssf.record.CodepageRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a CodepageRecord\n     */\n\n    protected Record createCodepage() {\n        CodepageRecord retval = new CodepageRecord();\n\n        retval.setCodepage(CODEPAGE);\n        return retval;\n    }\n\n    /**\n     * creates the DSF record containing a 0 since HSSF can't even create Dual Stream Files\n     * @see org.apache.poi.hssf.record.DSFRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DSFRecord\n     */\n\n    protected Record createDSF() {\n        DSFRecord retval = new DSFRecord();\n\n        retval.setDsf();\n        return retval;\n    }\n\n    /**\n     * creates the TabId record containing an array of 0,1,2.  This release of HSSF\n     * always has the default three sheets, no less, no more.\n     * @see org.apache.poi.hssf.record.TabIdRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a TabIdRecord\n     */\n\n    protected Record createTabId() {\n        TabIdRecord retval     = new TabIdRecord();\n        short[]     tabidarray = {\n            0\n        };\n\n        retval.setTabIdArray(tabidarray);\n        return retval;\n    }\n\n    /**\n     * creates the FnGroupCount record containing the Magic number constant of 14.\n     * @see org.apache.poi.hssf.record.FnGroupCountRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a FnGroupCountRecord\n     */\n\n    protected Record createFnGroupCount() {\n        FnGroupCountRecord retval = new FnGroupCountRecord();\n\n        retval.setCount(( short ) 14);\n        return retval;\n    }\n\n    /**\n     * creates the WindowProtect record with protect set to false.\n     * @see org.apache.poi.hssf.record.WindowProtectRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a WindowProtectRecord\n     */\n\n    protected Record createWindowProtect() {\n        WindowProtectRecord retval = new WindowProtectRecord();\n\n        retval.setProtect();\n    }\n\n    /**\n     * creates the Protect record with protect set to false.\n     * @see org.apache.poi.hssf.record.ProtectRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a ProtectRecord\n     */\n\n    protected Record createProtect() {\n        ProtectRecord retval = new ProtectRecord();\n\n        retval.setProtect();\n    }\n\n    /**\n     * creates the Password record with password set to 0.\n     * @see org.apache.poi.hssf.record.PasswordRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PasswordRecord\n     */\n\n    protected Record createPassword() {\n        PasswordRecord retval = new PasswordRecord();\n\n        return retval;\n    }\n\n    /**\n     * creates the ProtectionRev4 record with protect set to false.\n     * @see org.apache.poi.hssf.record.ProtectionRev4Record\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a ProtectionRev4Record\n     */\n\n    protected Record createProtectionRev4() {\n        ProtectionRev4Record retval = new ProtectionRev4Record();\n\n        retval.setProtect(false);\n        return retval;\n    }\n\n    /**\n     * creates the PasswordRev4 record with password set to 0.\n     * @see org.apache.poi.hssf.record.PasswordRev4Record\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PasswordRev4Record\n     */\n\n    protected Record createPasswordRev4() {\n        PasswordRev4Record retval = new PasswordRev4Record();\n\n        return retval;\n    }\n\n    /**\n     * creates the WindowOne record with the following magic values: <P>\n     * horizontal hold - 0x168 <P>\n     * vertical hold   - 0x10e <P>\n     * width           - 0x3a5c <P>\n     * height          - 0x23be <P>\n     * options         - 0x38 <P>\n     * selected tab    - 0 <P>\n     * displayed tab   - 0 <P>\n     * num selected tab- 0 <P>\n     * tab width ratio - 0x258 <P>\n     * @see org.apache.poi.hssf.record.WindowOneRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a WindowOneRecord\n     */\n\n    protected Record createWindowOne() {\n        WindowOneRecord retval = new WindowOneRecord();\n\n        retval.setHorizontalHold(( short ) 0x168);\n        retval.setVerticalHold(( short ) 0x10e);\n        retval.setWidth(( short ) 0x3a5c);\n        retval.setHeight(( short ) 0x23be);\n        retval.setOptions(( short ) 0x38);\n        retval.setSelectedTab(( short ) 0x0);\n        retval.setDisplayedTab(( short ) 0x0);\n        retval.setNumSelectedTabs(( short ) 1);\n        retval.setTabWidthRatio(( short ) 0x258);\n        return retval;\n    }\n\n    /**\n     * creates the Backup record with backup set to 0. (loose the data, who cares)\n     * @see org.apache.poi.hssf.record.BackupRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a BackupRecord\n     */\n\n    protected Record createBackup() {\n        BackupRecord retval = new BackupRecord();\n\n        retval.setBackup();\n        return retval;\n    }\n\n    /**\n     * creates the HideObj record with hide object set to 0. (don't hide)\n     * @see org.apache.poi.hssf.record.HideObjRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a HideObjRecord\n     */\n\n    protected Record createHideObj() {\n        HideObjRecord retval = new HideObjRecord();\n\n        return retval;\n    }\n\n    /**\n     * creates the DateWindow1904 record with windowing set to 0. (don't window)\n     * @see org.apache.poi.hssf.record.DateWindow1904Record\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DateWindow1904Record\n     */\n\n    protected Record createDateWindow1904() {\n        DateWindow1904Record retval = new DateWindow1904Record();\n\n        retval.setWindowing();\n        return retval;\n    }\n\n    /**\n     * creates the Precision record with precision set to true. (full precision)\n     * @see org.apache.poi.hssf.record.PrecisionRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PrecisionRecord\n     */\n\n    protected Record createPrecision() {\n        PrecisionRecord retval = new PrecisionRecord();\n\n        retval.setFullPrecision();\n        return retval;\n    }\n\n    /**\n     * creates the RefreshAll record with refreshAll set to true. (refresh all calcs)\n     * @see org.apache.poi.hssf.record.RefreshAllRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a RefreshAllRecord\n     */\n\n    protected Record createRefreshAll() {\n        RefreshAllRecord retval = new RefreshAllRecord();\n\n        retval.setRefreshAll(false);\n        return retval;\n    }\n\n    /**\n     * creates the BookBool record with saveLinkValues set to 0. (don't save link values)\n     * @see org.apache.poi.hssf.record.BookBoolRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a BookBoolRecord\n     */\n\n    protected Record createBookBool() {\n        BookBoolRecord retval = new BookBoolRecord();\n\n        retval.setSaveLinkValues(( short ) 0);\n        return retval;\n    }\n\n    /**\n     * creates a Font record with the following magic values: <P>\n     * fontheight           = 0xc8<P>\n     * attributes           = 0x0<P>\n     * color palette index  = 0x7fff<P>\n     * bold weight          = 0x190<P>\n     * Font Name Length     = 5 <P>\n     * Font Name            = Arial <P>\n     *\n     * @see org.apache.poi.hssf.record.FontRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a FontRecord\n     */\n\n    protected Record createFont() {\n        FontRecord retval = new FontRecord();\n\n        retval.setFontHeight(( short ) 0xc8);\n        retval.setAttributes(( short ) 0x0);\n        retval.setColorPaletteIndex(( short ) 0x7fff);\n        retval.setBoldWeight(( short ) 0x190);\n        retval.setFontNameLength(( byte ) 5);\n        retval.setFontName(\"Arial\");\n        return retval;\n    \n\n    /**\n     * Creates a FormatRecord object\n     * @param id    the number of the format record to create (meaning its position in\n     *        a file as M$ Excel would create it.)\n     * @return record containing a FormatRecord\n     * @see org.apache.poi.hssf.record.FormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n\n        switch (id) {\n\n            case 0 :\n                retval.setIndexCode(( short ) 5);\n                retval.setFormatStringLength(( byte ) 0x17);\n                retval.setFormatString(\"\\\"$\\\"#,##0_);\\\\(\\\"$\\\"#,##0\\\\)\");\n                break;\n\n            case 1 :\n                retval.setIndexCode(( short ) 6);\n                retval.setFormatStringLength(( byte ) 0x1c);\n                retval.setFormatString(\"\\\"$\\\"#,##0_);[Red]\\\\(\\\"$\\\"#,##0\\\\)\");\n                break;\n\n            case 2 :\n                retval.setIndexCode(( short ) 7);\n                retval.setFormatStringLength(( byte ) 0x1d);\n                retval.setFormatString(\"\\\"$\\\"#,##0.00_);\\\\(\\\"$\\\"#,##0.00\\\\)\");\n                break;\n\n            case 3 :\n                retval.setIndexCode(( short ) 8);\n                retval.setFormatStringLength(( byte ) 0x22);\n                retval.setFormatString(\n                \"\\\"$\\\"#,##0.00_);[Red]\\\\(\\\"$\\\"#,##0.00\\\\)\");\n                break;\n\n            case 4 :\n                retval.setIndexCode(( short ) 0x2a);\n                retval.setFormatStringLength(( byte ) 0x32);\n                retval.setFormatString(\n                \"_(\\\"$\\\"* #,##0_);_(\\\"$\\\"* \\\\(#,##0\\\\);_(\\\"$\\\"* \\\"-\\\"_);_(@_)\");\n                break;\n\n            case 5 :\n                retval.setIndexCode(( short ) 0x29);\n                retval.setFormatStringLength(( byte ) 0x29);\n                retval.setFormatString(\n                \"_(* #,##0_);_(* \\\\(#,##0\\\\);_(* \\\"-\\\"_);_(@_)\");\n                break;\n\n            case 6 :\n                retval.setIndexCode(( short ) 0x2c);\n                retval.setFormatStringLength(( byte ) 0x3a);\n                retval.setFormatString(\n                \"_(\\\"$\\\"* #,##0.00_);_(\\\"$\\\"* \\\\(#,##0.00\\\\);_(\\\"$\\\"* \\\"-\\\"??_);_(@_)\");\n                break;\n\n            case 7 :\n                retval.setIndexCode(( short ) 0x2b);\n                retval.setFormatStringLength(( byte ) 0x31);\n                retval.setFormatString(\n                \"_(* #,##0.00_);_(* \\\\(#,##0.00\\\\);_(* \\\"-\\\"??_);_(@_)\");\n                break;\n        }\n        return retval;\n    \n\n    /**\n     * Creates an ExtendedFormatRecord object\n     * @param id    the number of the extended format record to create (meaning its position in\n     *        a file as MS Excel would create it.)\n     *\n     * @return record containing an ExtendedFormatRecord\n     * @see org.apache.poi.hssf.record.ExtendedFormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        ExtendedFormatRecord retval = new ExtendedFormatRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 1 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 2 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 3 :\n                retval.setFontIndex(( short ) 2);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 4 :\n                retval.setFontIndex(( short ) 2);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 5 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 6 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 7 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 8 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 9 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 10 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 11 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 12 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 13 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 14 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 15 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x0);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 16 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2b);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 17 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x29);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 18 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2c);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 19 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2a);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 20 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x9);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 21 :\n                retval.setFontIndex(( short ) 5);\n                retval.setFormatIndex(( short ) 0x0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 22 :\n                retval.setFontIndex(( short ) 6);\n                retval.setFormatIndex(( short ) 0x0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 23 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0x31);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 24 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0x8);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 25 :\n                retval.setFontIndex(( short ) 6);\n                retval.setFormatIndex(( short ) 0x8);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n        }\n        return retval;\n    }\n\n    /**\n     * creates an default cell type ExtendedFormatRecord object.\n     * @return ExtendedFormatRecord with intial defaults (cell-type)\n     */\n\n    protected ExtendedFormatRecord createExtendedFormat() {\n        ExtendedFormatRecord retval = new ExtendedFormatRecord();\n\n        retval.setFontIndex(( short ) 0);\n        retval.setFormatIndex(( short ) 0x0);\n        retval.setCellOptions(( short ) 0x1);\n        retval.setAlignmentOptions(( short ) 0x20);\n        retval.setIndentionOptions(( short ) 0);\n        retval.setBorderOptions(( short ) 0);\n        retval.setPaletteOptions(( short ) 0);\n        retval.setAdtlPaletteOptions(( short ) 0);\n        retval.setFillPaletteOptions(( short ) 0x20c0);\n        retval.setTopBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setBottomBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setLeftBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setRightBorderPaletteIdx(HSSFColor.BLACK.index);\n        return retval;\n    \n\n    /**\n     * Creates a StyleRecord object\n     * @param id        the number of the style record to create (meaning its position in\n     *                  a file as MS Excel would create it.\n     * @return record containing a StyleRecord\n     * @see org.apache.poi.hssf.record.StyleRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        StyleRecord retval = new StyleRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setIndex(( short ) 0xffff8010);\n                retval.setBuiltin(( byte ) 3);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 1 :\n                retval.setIndex(( short ) 0xffff8011);\n                retval.setBuiltin(( byte ) 6);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 2 :\n                retval.setIndex(( short ) 0xffff8012);\n                retval.setBuiltin(( byte ) 4);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 3 :\n                retval.setIndex(( short ) 0xffff8013);\n                retval.setBuiltin(( byte ) 7);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 4 :\n                retval.setIndex(( short ) 0xffff8000);\n                retval.setBuiltin(( byte ) 0);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 5 :\n                retval.setIndex(( short ) 0xffff8014);\n                retval.setBuiltin(( byte ) 5);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n        }\n        return retval;\n    }\n\n    /**\n     * Creates a palette record initialized to the default palette\n     * @return a PaletteRecord instance populated with the default colors\n     * @see org.apache.poi.hssf.record.PaletteRecord\n     */\n    protected PaletteRecord createPalette()\n    {\n        return new PaletteRecord(PaletteRecord.sid);\n    }\n    \n    /**\n     * Creates the UseSelFS object with the use natural language flag set to 0 (false)\n     * @return record containing a UseSelFSRecord\n     * @see org.apache.poi.hssf.record.UseSelFSRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n    protected Record createUseSelFS() {\n        UseSelFSRecord retval = new UseSelFSRecord();\n\n        retval.setFlag(( short ) 0);\n        return retval;\n    \n\n    /**\n     * create a \"bound sheet\" or \"bundlesheet\" (depending who you ask) record\n     * Always sets the sheet's bof to 0.  You'll need to set that yourself.\n     * @param id either sheet 0,1 or 2.\n     * @return record containing a BoundSheetRecord\n     * @see org.apache.poi.hssf.record.BoundSheetRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        BoundSheetRecord retval = new BoundSheetRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet1\");\n                break;\n\n            case 1 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet2\");\n                break;\n\n            case 2 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet3\");\n                break;\n        }\n        return retval;\n    \n\n    /**\n     * Creates the Country record with the default country set to 1\n     * and current country set to 7 in case of russian locale (\"ru_RU\") and 1 otherwise\n     * @return record containing a CountryRecord\n     * @see org.apache.poi.hssf.record.CountryRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        CountryRecord retval = new CountryRecord();\n\n        retval.setDefaultCountry(( short ) 1);\n\n        if ( Locale.getDefault().toString().equals( \"ru_RU\" ) ) {\n\t        retval.setCurrentCountry(( short ) 7);\n        }\n        else {\n\t        retval.setCurrentCountry(( short ) 1);\n        }\n\n        return retval;\n    }\n\n    /**\n     * Creates the SST record with no strings and the unique/num string set to 0\n     * @return record containing a SSTRecord\n     * @see org.apache.poi.hssf.record.SSTRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n    protected Record createSST() {\n        return new SSTRecord();\n    }\n\n    /**\n     * Creates the ExtendedSST record with numstrings per bucket set to 0x8.  HSSF\n     * doesn't yet know what to do with this thing, but we create it with nothing in\n     * it hardly just to make Excel happy and our sheets look like Excel's\n     *\n     * @return record containing an ExtSSTRecord\n     * @see org.apache.poi.hssf.record.ExtSSTRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n    protected Record createExtendedSST() {\n        ExtSSTRecord retval = new ExtSSTRecord();\n\n        retval.setNumStringsPerBucket(( short ) 0x8);\n        return retval;\n    }\n\n    /**\n     * creates the EOF record\n     * @see org.apache.poi.hssf.record.EOFRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a EOFRecord\n     */\n\n    protected Record createEOF() {\n        return new EOFRecord();\n    }\n\n    public SheetReferences getSheetReferences() {\n        SheetReferences refs = new SheetReferences();\n        \n        if (externSheet != null) {\n            for (int k = 0; k < externSheet.getNumOfREFStructures(); k++) {\n                \n                String sheetName = findSheetNameFromExternSheet((short)k);\n                refs.addSheetReference(sheetName, k);\n                \n            }\n        }\n        return refs;\n    }\n\n    /** finds the sheet name by his extern sheet index\n     * @param num extern sheet index\n     * @return sheet name\n     */\n    public String findSheetNameFromExternSheet(short num){\n        String result=\"\";\n\n        short indexToSheet = externSheet.getREFRecordAt(num).getIndexToFirstSupBook();\n            result = getSheetName(indexToSheet);\n        \n\n        return result;\n    }\n\n    /**\n     * Finds the sheet index for a particular external sheet number.\n     * @param externSheetNumber     The external sheet number to convert\n     * @return  The index to the sheet found.\n     */\n    public int getSheetIndexFromExternSheetIndex(int externSheetNumber)\n    {\n        if (externSheetNumber >= externSheet.getNumOfREFStructures())\n            return -1;\n        else\n            return externSheet.getREFRecordAt(externSheetNumber).getIndexToFirstSupBook();\n    }\n\n    /** returns the extern sheet number for specific sheet number ,\n     *  if this sheet doesn't exist in extern sheet , add it\n     * @param sheetNumber sheet number\n     * @return index to extern sheet\n     */\n    public short checkExternSheet(int sheetNumber){\n\n        int i = 0;\n        boolean flag = false;\n        short result = 0;\n\n        if (externSheet == null) {\n            externSheet = createExternSheet();\n        }\n\n        while (i < externSheet.getNumOfREFStructures() && !flag){\n            ExternSheetSubRecord record = externSheet.getREFRecordAt(i);\n\n            if (record.getIndexToFirstSupBook() ==  sheetNumber &&\n            record.getIndexToLastSupBook() == sheetNumber){\n                flag = true;\n                result = (short) i;\n            }\n\n            ++i;\n        }\n\n        if (!flag) {\n            result = addSheetIndexToExternSheet((short) sheetNumber);\n        }\n\n        return result;\n    }\n\n    private short addSheetIndexToExternSheet(short sheetNumber){\n        short result;\n\n        ExternSheetSubRecord record = new ExternSheetSubRecord();\n        record.setIndexToFirstSupBook(sheetNumber);\n        record.setIndexToLastSupBook(sheetNumber);\n        externSheet.addREFRecord(record);\n        externSheet.setNumOfREFStructures((short)(externSheet.getNumOfREFStructures() + 1));\n        result = (short)(externSheet.getNumOfREFStructures() - 1);\n\n        return result;\n    }\n\n\n\n    /** gets the total number of names\n     * @return number of names\n     */\n    public int getNumNames(){\n        int result = names.size();\n\n        return result;\n    }\n\n    /** gets the name record\n     * @param index name index\n     * @return name record\n     */\n    public NameRecord getNameRecord(int index){\n        NameRecord result = (NameRecord) names.get(index);\n\n        return result;\n\n    }\n\n    /** creates new name\n     * @return new name record\n     */\n    public NameRecord createName(){\n\n        NameRecord name = new NameRecord();\n\n        int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(SupBookRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(CountryRecord.sid);\n\n        records.add(idx+names.size()+1, name);\n        names.add(name);\n\n        return name;\n    }\n\n\n    /** creates new name\n     * @return new name record\n     */\n    public NameRecord addName(NameRecord name)\n    {\n        int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(SupBookRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(CountryRecord.sid);\n        records.add(idx+names.size()+1, name);\n        names.add(name);\n\n        return name;\n    }\n\n\t/**Generates a NameRecord to represent a built-in region\n\t * @return a new NameRecord unless the index is invalid\n\t */\n\tpublic NameRecord createBuiltInName(byte builtInName, int index)\n\t{\n\t\tif (index == -1 || index+1 > (int)Short.MAX_VALUE) \n\t\t\tthrow new IllegalArgumentException(\"Index is not valid [\"+index+\"]\");\n\t    \n\t\tNameRecord name = new NameRecord(builtInName, (short)(index));\n\t            \n\t\taddName(name);\n\t    \n\t\treturn name;\n\t}\n\n\n    /** removes the name\n     * @param namenum name index\n     */\n    public void removeName(int namenum){\n        if (names.size() > namenum) {\n            int idx = findFirstRecordLocBySid(NameRecord.sid);\n            records.remove(idx + namenum);\n            names.remove(namenum);\n        }\n\n    }\n\n    /** creates a new extern sheet record\n     * @return the new extern sheet record\n     */\n    protected ExternSheetRecord createExternSheet(){\n        ExternSheetRecord externSheet = new ExternSheetRecord();\n\n        int idx = findFirstRecordLocBySid(CountryRecord.sid);\n\n        records.add(idx+1, externSheet);\n\n        SupBookRecord supbook = new SupBookRecord();\n\n        supbook.setNumberOfSheets((short)getNumSheets());\n\n        records.add(idx+1, supbook);\n\n        return externSheet;\n    }\n\n    /**\n     * Returns a format index that matches the passed in format.  It does not tie into HSSFDataFormat.\n     * @param format the format string\n     * @param createIfNotFound creates a new format if format not found\n     * @return the format id of a format that matches or -1 if none found and createIfNotFound\n     */\n    public short getFormat(String format, boolean createIfNotFound) {\n\tIterator iterator;\n\tfor (iterator = formats.iterator(); iterator.hasNext();) {\n\t    FormatRecord r = (FormatRecord)iterator.next();\n\t    if (r.getFormatString().equals(format)) {\n\t\treturn r.getIndexCode();\n\t    }\n\t}\n\n\tif (createIfNotFound) {\n\t    return createFormat(format);\n\t}\n\n\treturn -1;\n    }\n\n    /**\n     * Returns the list of FormatRecords in the workbook.\n     * @return ArrayList of FormatRecords in the notebook\n     */\n    public ArrayList getFormats() {\n\treturn formats;\n    }\n\n    /**\n     * Creates a FormatRecord, inserts it, and returns the index code.\n     * @param format the format string\n     * @return the index code of the format record.\n     * @see org.apache.poi.hssf.record.FormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n    public short createFormat( String format )\n    {\n        FormatRecord rec = new FormatRecord();\n        rec.setIndexCode( maxformatid );\n        rec.setFormatStringLength( (byte) format.length() );\n        rec.setFormatString( format );\n\n        int pos = 0;\n        while ( pos < records.size() && records.get( pos ).getSid() != FormatRecord.sid )\n            pos++;\n        pos += formats.size();\n        formats.add( rec );\n        records.add( pos, rec );\n        return maxformatid;\n    }\n\n\n    /**\n     * Returns the first occurance of a record matching a particular sid.\n     */\n    public Record findFirstRecordBySid(short sid) {\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n            \n            if (record.getSid() == sid) {\n                return record;\n            }\n        }\n        return null;\n    }\n\n    /**\n     * Returns the index of a record matching a particular sid.\n     * @param sid   The sid of the record to match\n     * @return      The index of -1 if no match made.\n     */\n    public int findFirstRecordLocBySid(short sid) {\n        int index = 0;\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid) {\n                return index;\n            }\n            index ++;\n        }\n        return -1;\n    }\n\n    /**\n     * Returns the next occurance of a record matching a particular sid.\n     */\n    public Record findNextRecordBySid(short sid, int pos) {\n        int matches = 0;\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid) {\n                if (matches++ == pos)\n                    return record;\n            }\n        }\n        return null;\n    }\n\n    public List getRecords()\n    {\n        return records.getRecords();\n    }\n\n\n    /**\n    * Whether date windowing is based on 1/2/1904 or 1/1/1900.\n    * Some versions of Excel (Mac) can save workbooks using 1904 date windowing.\n    *\n    * @return true if using 1904 date windowing\n    */\n    public boolean isUsing1904DateWindowing() {\n        return uses1904datewindowing;\n    }\n    \n    /**\n     * Returns the custom palette in use for this workbook; if a custom palette record\n     * does not exist, then it is created.\n     */\n    public PaletteRecord getCustomPalette()\n    {\n      PaletteRecord palette;\n      int palettePos = records.getPalettepos();\n      if (palettePos != -1) {\n        Record rec = records.get(palettePos);\n        if (rec instanceof PaletteRecord) {\n          palette = (PaletteRecord) rec;\n        } else throw new RuntimeException(\"InternalError: Expected PaletteRecord but got a '\"+rec+\"'\");\n      }\n      else\n      {\n          palette = createPalette();\n          records.add(1, palette);\n          records.setPalettepos(1);\n      }\n      return palette;\n    }\n\n    /**\n     * Creates a drawing group record.  If it already exists then it's left\n     * alone.\n     */\n    public void createDrawingGroup()\n    {\n        int dggLoc = findFirstRecordLocBySid(EscherContainerRecord.DGG_CONTAINER);\n        if (dggLoc == -1)\n        {\n            EscherContainerRecord dggContainer = new EscherContainerRecord();\n            EscherDggRecord dgg = new EscherDggRecord();\n            EscherOptRecord opt = new EscherOptRecord();\n            EscherSplitMenuColorsRecord splitMenuColors = new EscherSplitMenuColorsRecord();\n\n            dggContainer.setRecordId((short) 0xF000);\n            dggContainer.setOptions((short) 0x000F);\n            dgg.setRecordId(EscherDggRecord.RECORD_ID);\n            dgg.setOptions((short)0x0000);\n            dgg.setShapeIdMax(1024);\n            dgg.setNumShapesSaved(0);\n            dgg.setDrawingsSaved(0);\n            dgg.setFileIdClusters(new EscherDggRecord.FileIdCluster[] {} );\n            drawingManager = new DrawingManager(dgg);\n            opt.setRecordId((short) 0xF00B);\n            opt.setOptions((short) 0x0033);\n            opt.addEscherProperty( new EscherBoolProperty(EscherProperties.TEXT__SIZE_TEXT_TO_FIT_SHAPE, 524296) );\n            opt.addEscherProperty( new EscherRGBProperty(EscherProperties.FILL__FILLCOLOR, 134217737) );\n            opt.addEscherProperty( new EscherRGBProperty(EscherProperties.LINESTYLE__COLOR, 134217792) );\n            splitMenuColors.setRecordId((short) 0xF11E);\n            splitMenuColors.setOptions((short) 0x0040);\n            splitMenuColors.setColor1(0x0800000D);\n            splitMenuColors.setColor2(0x0800000C);\n            splitMenuColors.setColor3(0x08000017);\n            splitMenuColors.setColor4(0x100000F7);\n\n            dggContainer.addChildRecord(dgg);\n            dggContainer.addChildRecord(opt);\n            dggContainer.addChildRecord(splitMenuColors);\n\n            DrawingGroupRecord drawingGroup = new DrawingGroupRecord();\n            drawingGroup.addEscherRecord(dggContainer);\n            int loc = findFirstRecordLocBySid(CountryRecord.sid);\n            getRecords().add(loc+1, drawingGroup);\n        }\n    }\n\n    public DrawingManager getDrawingManager()\n    {\n        return drawingManager;", "functions": [{"function_name": "createWorkbook", "code": "    public static Workbook createWorkbook(List recs) {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"Workbook (readfile) created with reclen=\",\n                    new Integer(recs.size()));\n        Workbook  retval  = new Workbook();\n        ArrayList records = new ArrayList(recs.size() / 3);\n\n        for (int k = 0; k < recs.size(); k++) {\n            Record rec = ( Record ) recs.get(k);\n\n            if (rec.getSid() == EOFRecord.sid) {\n                records.add(rec);\n                if (log.check( POILogger.DEBUG ))\n                    log.log(DEBUG, \"found workbook eof record at \" + k);\n                break;\n            }\n            switch (rec.getSid()) {\n\n                case BoundSheetRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found boundsheet record at \" + k);\n                    retval.boundsheets.add(rec);\n                    retval.records.setBspos( k );\n                    break;\n\n                case SSTRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found sst record at \" + k);\n                    retval.sst = ( SSTRecord ) rec;\n                    break;\n\n                case FontRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found font record at \" + k);\n                    retval.records.setFontpos( k );\n                    retval.numfonts++;\n                    break;\n\n                case ExtendedFormatRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found XF record at \" + k);\n                    retval.records.setXfpos( k );\n                    retval.numxfs++;\n                    break;\n\n                case TabIdRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found tabid record at \" + k);\n                    retval.records.setTabpos( k );\n                    break;\n\n                case ProtectRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found protect record at \" + k);\n                    retval.records.setProtpos( k );\n                    break;\n\n                case BackupRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found backup record at \" + k);\n                    retval.records.setBackuppos( k );\n                    break;\n                case ExternSheetRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found extern sheet record at \" + k);\n                    retval.externSheet = ( ExternSheetRecord ) rec;\n                    break;\n                case NameRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found name record at \" + k);\n                    retval.names.add(rec);\n                    break;\n                case SupBookRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found SupBook record at \" + k);\n                    break;\n                case FormatRecord.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found format record at \" + k);\n                    retval.formats.add(rec);\n                    retval.maxformatid = retval.maxformatid >= ((FormatRecord)rec).getIndexCode() ? retval.maxformatid : ((FormatRecord)rec).getIndexCode();\n                    break;\n                case DateWindow1904Record.sid :\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found datewindow1904 record at \" + k);\n                    retval.uses1904datewindowing = ((DateWindow1904Record)rec).getWindowing() == 1;\n                    break;\n                case PaletteRecord.sid:\n                    if (log.check( POILogger.DEBUG ))\n                        log.log(DEBUG, \"found palette record at \" + k);\n                    retval.records.setPalettepos( k );\n                default :\n            }\n            records.add(rec);\n        }\n\n        retval.records.setRecords(records);\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"exit create workbook from existing file function\");\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "SWITCH", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [3, 10], [6, 11], [2, 12], [3, 13], [3, 14], [3, 15], [10, 16], [4, 17], [5, 18], [6, 19], [12, 20], [3, 21], [13, 22], [14, 23], [3, 24], [17, 25], [19, 26], [19, 27], [13, 28], [13, 29], [13, 30], [13, 31], [13, 32], [13, 33], [13, 34], [13, 35], [13, 36], [13, 37], [13, 38], [13, 39], [13, 40], [13, 41], [13, 42], [13, 43], [13, 44], [13, 45], [13, 46], [13, 47], [13, 48], [13, 49], [13, 50], [13, 51], [13, 52], [14, 53], [14, 54], [23, 55], [25, 56], [25, 57], [26, 58], [13, 59], [28, 60], [13, 61], [30, 62], [13, 63], [13, 64], [32, 65], [34, 66], [13, 67], [36, 68], [13, 69], [38, 70], [13, 71], [40, 72], [13, 73], [42, 74], [13, 75], [44, 76], [13, 77], [46, 78], [13, 79], [48, 80], [13, 81], [50, 82], [13, 83], [13, 84], [52, 85], [54, 86], [14, 87], [15, 88], [28, 89], [61, 90], [30, 91], [63, 92], [32, 93], [34, 94], [36, 95], [38, 96], [40, 97], [42, 98], [44, 99], [46, 100], [48, 101], [50, 102], [52, 103], [54, 104], [89, 105], [90, 106], [91, 107], [92, 108], [93, 109], [94, 110], [95, 111], [96, 112], [97, 113], [98, 114], [99, 115], [100, 116], [101, 117], [102, 118], [103, 119], [104, 120], [105, 121], [107, 122], [109, 123], [110, 124], [111, 125], [112, 126], [113, 127], [114, 128], [115, 129], [116, 130], [117, 131], [118, 132], [119, 133], [120, 134], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 3], [11, 6], [12, 2], [13, 3], [14, 3], [15, 3], [16, 10], [17, 4], [18, 5], [19, 6], [20, 12], [21, 3], [22, 13], [23, 14], [24, 3], [25, 17], [26, 19], [27, 19], [28, 13], [29, 13], [30, 13], [31, 13], [32, 13], [33, 13], [34, 13], [35, 13], [36, 13], [37, 13], [38, 13], [39, 13], [40, 13], [41, 13], [42, 13], [43, 13], [44, 13], [45, 13], [46, 13], [47, 13], [48, 13], [49, 13], [50, 13], [51, 13], [52, 13], [53, 14], [54, 14], [55, 23], [56, 25], [57, 25], [58, 26], [59, 13], [60, 28], [61, 13], [62, 30], [63, 13], [64, 13], [65, 32], [66, 34], [67, 13], [68, 36], [69, 13], [70, 38], [71, 13], [72, 40], [73, 13], [74, 42], [75, 13], [76, 44], [77, 13], [78, 46], [79, 13], [80, 48], [81, 13], [82, 50], [83, 13], [84, 13], [85, 52], [86, 54], [87, 14], [88, 15], [89, 28], [90, 61], [91, 30], [92, 63], [93, 32], [94, 34], [95, 36], [96, 38], [97, 40], [98, 42], [99, 44], [100, 46], [101, 48], [102, 50], [103, 52], [104, 54], [105, 89], [106, 90], [107, 91], [108, 92], [109, 93], [110, 94], [111, 95], [112, 96], [113, 97], [114, 98], [115, 99], [116, 100], [117, 101], [118, 102], [119, 103], [120, 104], [121, 105], [122, 107], [123, 109], [124, 110], [125, 111], [126, 112], [127, 113], [128, 114], [129, 115], [130, 116], [131, 117], [132, 118], [133, 119], [134, 120], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134]]}, {"function_name": "createWorkbook", "code": "    public static Workbook createWorkbook()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log( DEBUG, \"creating new workbook from scratch\" );\n        Workbook retval = new Workbook();\n        ArrayList records = new ArrayList( 30 );\n        ArrayList formats = new ArrayList( 8 );\n\n        records.add( retval.createBOF() );\n        records.add( retval.createInterfaceHdr() );\n        records.add( retval.createMMS() );\n        records.add( retval.createInterfaceEnd() );\n        records.add( retval.createWriteAccess() );\n        records.add( retval.createCodepage() );\n        records.add( retval.createDSF() );\n        records.add( retval.createTabId() );\n        retval.records.setTabpos( records.size() - 1 );\n        records.add( retval.createFnGroupCount() );\n        records.add( retval.createWindowProtect() );\n        records.add( retval.createProtect() );\n        retval.records.setProtpos( records.size() - 1 );\n        records.add( retval.createPassword() );\n        records.add( retval.createProtectionRev4() );\n        records.add( retval.createPasswordRev4() );\n        records.add( retval.createWindowOne() );\n        records.add( retval.createBackup() );\n        retval.records.setBackuppos( records.size() - 1 );\n        records.add( retval.createHideObj() );\n        records.add( retval.createDateWindow1904() );\n        records.add( retval.createPrecision() );\n        records.add( retval.createRefreshAll() );\n        records.add( retval.createBookBool() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        retval.numfonts = 4;\n\n        for ( int i = 0; i <= 7; i++ )\n        {\n            Record rec;\n            rec = retval.createFormat( i );\n            retval.maxformatid = retval.maxformatid >= ( (FormatRecord) rec ).getIndexCode() ? retval.maxformatid : ( (FormatRecord) rec ).getIndexCode();\n            formats.add( rec );\n            records.add( rec );\n        }\n        retval.formats = formats;\n\n        for ( int k = 0; k < 21; k++ )\n        {\n            records.add( retval.createExtendedFormat( k ) );\n            retval.numxfs++;\n        }\n        retval.records.setXfpos( records.size() - 1 );\n        for ( int k = 0; k < 6; k++ )\n        {\n            records.add( retval.createStyle( k ) );\n        }\n        records.add( retval.createUseSelFS() );\n        for ( int k = 0; k < 1; k++ ){\n            BoundSheetRecord bsr =\n                    (BoundSheetRecord) retval.createBoundSheet( k );\n\n            records.add( bsr );\n            retval.boundsheets.add( bsr );\n            retval.records.setBspos( records.size() - 1 );\n        }\n        records.add( retval.createCountry() );\n        retval.sst = (SSTRecord) retval.createSST();\n        records.add( retval.sst );\n        records.add( retval.createExtendedSST() );\n\n        records.add( retval.createEOF() );\n        retval.records.setRecords(records);\n        if (log.check( POILogger.DEBUG ))\n            log.log( DEBUG, \"exit create new workbook from scratch\" );\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [3, 18], [0, 19], [4, 20], [0, 21], [5, 22], [0, 23], [6, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [10, 54], [2, 55], [13, 56], [14, 57], [17, 58], [3, 59], [18, 60], [19, 61], [20, 62], [21, 63], [22, 64], [6, 65], [24, 66], [25, 67], [26, 68], [27, 69], [28, 70], [29, 71], [30, 72], [31, 73], [32, 74], [33, 75], [34, 76], [35, 77], [36, 78], [37, 79], [38, 80], [39, 81], [40, 82], [41, 83], [42, 84], [43, 85], [44, 86], [45, 87], [46, 88], [47, 89], [48, 90], [49, 91], [50, 92], [51, 93], [52, 94], [53, 95], [7, 96], [8, 97], [9, 98], [10, 99], [55, 100], [16, 101], [3, 102], [3, 103], [3, 104], [3, 105], [4, 106], [4, 107], [63, 108], [63, 109], [5, 110], [5, 111], [6, 112], [6, 113], [6, 114], [6, 115], [6, 116], [77, 117], [77, 118], [83, 119], [83, 120], [87, 121], [87, 122], [96, 123], [97, 124], [99, 125], [102, 126], [106, 127], [110, 128], [114, 129], [115, 130], [126, 131], [126, 132], [59, 133], [129, 134], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 3], [19, 0], [20, 4], [21, 0], [22, 5], [23, 0], [24, 6], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 10], [55, 2], [56, 13], [57, 14], [58, 17], [59, 3], [60, 18], [61, 19], [62, 20], [63, 21], [64, 22], [65, 6], [66, 24], [67, 25], [68, 26], [69, 27], [70, 28], [71, 29], [72, 30], [73, 31], [74, 32], [75, 33], [76, 34], [77, 35], [78, 36], [79, 37], [80, 38], [81, 39], [82, 40], [83, 41], [84, 42], [85, 43], [86, 44], [87, 45], [88, 46], [89, 47], [90, 48], [91, 49], [92, 50], [93, 51], [94, 52], [95, 53], [96, 7], [97, 8], [98, 9], [99, 10], [100, 55], [101, 16], [102, 3], [103, 3], [104, 3], [105, 3], [106, 4], [107, 4], [108, 63], [109, 63], [110, 5], [111, 5], [112, 6], [113, 6], [114, 6], [115, 6], [116, 6], [117, 77], [118, 77], [119, 83], [120, 83], [121, 87], [122, 87], [123, 96], [124, 97], [125, 99], [126, 102], [127, 106], [128, 110], [129, 114], [130, 115], [131, 126], [132, 126], [133, 59], [134, 129], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134]]}, {"function_name": "getSpecificBuiltinRecord", "code": "\tpublic NameRecord getSpecificBuiltinRecord(byte name, int sheetIndex)\n\t{\n\t    Iterator iterator = names.iterator();\n\t    while (iterator.hasNext()) {\n\t        NameRecord record = ( NameRecord ) iterator.next();\n\t\n\t        if (record.getBuiltInName() == name && record.getIndexToSheet() == sheetIndex) {\n\t            return record;\n\t        }\n\t    }\n\t    \n\t    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [3, 10], [8, 11], [8, 12], [11, 13], [11, 14], [13, 15], [14, 16], [9, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 3], [11, 8], [12, 8], [13, 11], [14, 11], [15, 13], [16, 14], [17, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "removeBuiltinRecord", "code": "\tpublic void removeBuiltinRecord(byte name, int sheetIndex) {\n\t\tNameRecord record = getSpecificBuiltinRecord(name, sheetIndex);\n\t\tif (record != null) {\n\t\t\tnames.remove(record);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNumRecords", "code": "    public int getNumRecords() {\n        return records.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFontRecordAt", "code": "    public FontRecord getFontRecordAt(int idx) {\n        int index = idx;\n\n        if (index > 4) {\n        }\n        if (index > (numfonts - 1)) {\n            throw new ArrayIndexOutOfBoundsException(\n            \"There are only \" + numfonts\n            + \" font records, you asked for \" + idx);\n        }\n        FontRecord retval =\n        ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index);\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [3, 9], [7, 10], [8, 11], [2, 12], [9, 13], [10, 14], [12, 15], [13, 16], [15, 17], [16, 18], [17, 19], [17, 20], [18, 21], [18, 22], [19, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 3], [10, 7], [11, 8], [12, 2], [13, 9], [14, 10], [15, 12], [16, 13], [17, 15], [18, 16], [19, 17], [20, 17], [21, 18], [22, 18], [23, 19], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "createNewFont", "code": "    public FontRecord createNewFont() {\n        FontRecord rec = ( FontRecord ) createFont();\n\n        records.add(records.getFontpos()+1, rec);\n        records.setFontpos( records.getFontpos() + 1 );\n        numfonts++;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [6, 10], [2, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 6], [11, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getNumberOfFontRecords", "code": "    public int getNumberOfFontRecords() {\n        return numfonts;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSheetBof", "code": "    public void setSheetBof(int sheetnum, int pos) {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"setting bof for sheetnum =\", new Integer(sheetnum),\n                \" at pos=\", new Integer(pos));\n        checkSheets(sheetnum);\n        (( BoundSheetRecord ) boundsheets.get(sheetnum))", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [7, 8], [7, 9], [7, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 7], [9, 7], [10, 7], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getBackupRecord", "code": "    public BackupRecord getBackupRecord() {\n        return ( BackupRecord ) records.get(records.getBackuppos());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSheetName", "code": "    public void setSheetName(int sheetnum, String sheetname ) {\n        setSheetName( sheetnum, sheetname, (byte)0 );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setSheetName", "code": "    public void setSheetName(int sheetnum, String sheetname, short encoding ) {\n        checkSheets(sheetnum);\n        BoundSheetRecord sheet = (BoundSheetRecord)boundsheets.get( sheetnum );\n        sheet.setSheetname(sheetname);\n        sheet.setSheetnameLength( (byte)sheetname.length() );\n\t\tsheet.setCompressedUnicodeFlag( (byte)encoding );", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [6, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 6], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setSheetOrder", "code": "    public void setSheetOrder(String sheetname, int pos ) {\n\tint sheetNumber = getSheetIndex(sheetname);\n\tboundsheets.add(pos, boundsheets.remove(sheetNumber));\t", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSheetName", "code": "    public String getSheetName(int sheetnum) {\n        return (( BoundSheetRecord ) boundsheets.get(sheetnum))", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSheetIndex", "code": "    public int getSheetIndex(String name) {\n        int retval = -1;\n\n        for (int k = 0; k < boundsheets.size(); k++) {\n            String sheet = getSheetName(k);\n\n            if (sheet.equalsIgnoreCase(name)) {\n                retval = k;\n                break;\n            }\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [6, 10], [2, 11], [6, 12], [7, 13], [6, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 6], [11, 2], [12, 6], [13, 7], [14, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "checkSheets", "code": "    private void checkSheets(int sheetnum) {\n            if ((boundsheets.size() + 1) <= sheetnum) {\n                throw new RuntimeException(\"Sheet number out of bounds!\");\n            }\n            BoundSheetRecord bsr = (BoundSheetRecord ) createBoundSheet(sheetnum);\n\n            records.add(records.getBspos()+1, bsr);\n            records.setBspos( records.getBspos() + 1 );\n            boundsheets.add(bsr);\n            fixTabIdRecord();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [6, 9], [7, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [1, 17], [11, 18], [12, 19], [12, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 6], [10, 7], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 1], [18, 11], [19, 12], [20, 12], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "removeSheet", "code": "    public void removeSheet(int sheetnum) {\n        if (boundsheets.size() > sheetnum) {\n            records.remove(records.getBspos() - (boundsheets.size() - 1) + sheetnum);\n            boundsheets.remove(sheetnum);\n            fixTabIdRecord();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 7], [7, 8], [8, 9], [9, 10], [9, 11], [10, 12], [10, 13], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 1], [8, 7], [9, 8], [10, 9], [11, 9], [12, 10], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "fixTabIdRecord", "code": "    private void fixTabIdRecord() {\n        TabIdRecord tir = ( TabIdRecord ) records.get(records.getTabpos());\n        short[]     tia = new short[ boundsheets.size() ];\n\n        for (short k = 0; k < tia.length; k++) {\n            tia[ k ] = k;\n        }\n        tir.setTabIdArray(tia);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNumSheets", "code": "    public int getNumSheets() {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"getNumSheets=\", new Integer(boundsheets.size()));\n        return boundsheets.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNumExFormats", "code": "    public int getNumExFormats() {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"getXF=\", new Integer(numxfs));\n        return numxfs;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getExFormatAt", "code": "    public ExtendedFormatRecord getExFormatAt(int index) {\n        int xfptr = records.getXfpos() - (numxfs - 1);\n\n        xfptr += index;\n        ExtendedFormatRecord retval =\n        ( ExtendedFormatRecord ) records.get(xfptr);\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [2, 7], [6, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 2], [8, 6], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createCellXF", "code": "    public ExtendedFormatRecord createCellXF() {\n        ExtendedFormatRecord xf = createExtendedFormat();\n\n        records.add(records.getXfpos()+1, xf);\n        records.setXfpos( records.getXfpos() + 1 );\n        numxfs++;\n        return xf;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [2, 7], [5, 8], [5, 9], [6, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 2], [8, 5], [9, 5], [10, 6], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "addSSTString", "code": "    public int addSSTString(String string, boolean use16bits) {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"insert to sst string='\", string, \"' and use16bits= \",\n        new Boolean(use16bits));\n        if (sst == null) {\n            insertSST();\n        }\n        return sst.addString(string, use16bits);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [7, 9], [3, 10], [2, 11], [10, 12], [10, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 7], [10, 3], [11, 2], [12, 10], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addSSTString", "code": "    public int addSSTString(String string) {\n        return addSSTString(string, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSSTString", "code": "    public String getSSTString(int str) {\n        if (sst == null) {\n            insertSST();\n        }\n        String retval = sst.getString(str);\n\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"Returning SST for index=\", new Integer(str),\n                \" String= \", retval);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [2, 8], [3, 9], [7, 10], [8, 11], [8, 12], [8, 13], [4, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 2], [9, 3], [10, 7], [11, 8], [12, 8], [13, 8], [14, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "insertSST", "code": "    public void insertSST() {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"creating new SST via insertSST!\");\n        sst = ( SSTRecord ) createSST();\n        records.add(records.size() - 1, createExtendedSST());\n        records.add(records.size() - 2, sst);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [1, 9], [6, 10], [6, 11], [8, 12], [8, 13], [4, 14], [9, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 1], [10, 6], [11, 6], [12, 8], [13, 8], [14, 4], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data )\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log( DEBUG, \"Serializing Workbook with offsets\" );\n\n        int pos = 0;\n\n        SSTRecord sst = null;\n        int sstPos = 0;\n        for ( int k = 0; k < records.size(); k++ )\n        {\n\n            Record record = records.get( k );\n            if ( record.getSid() != RecalcIdRecord.sid || ( (RecalcIdRecord) record ).isNeeded() )\n            {\n                if (record instanceof SSTRecord)\n                {\n                    sst = (SSTRecord)record;\n                    sstPos = pos;\n                }\n                if (record.getSid() == ExtSSTRecord.sid && sst != null)\n                {\n                    record = sst.createExtSSTRecord(sstPos + offset);\n                }\n            }\n        }\n        if (log.check( POILogger.DEBUG ))\n            log.log( DEBUG, \"Exiting serialize workbook\" );\n        return pos;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [7, 12], [2, 13], [3, 14], [3, 15], [11, 16], [4, 17], [5, 18], [6, 19], [7, 20], [13, 21], [14, 22], [3, 23], [20, 24], [14, 25], [14, 26], [22, 27], [15, 28], [25, 29], [26, 30], [27, 31], [29, 32], [29, 33], [25, 34], [32, 35], [33, 36], [26, 37], [26, 38], [34, 39], [39, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 7], [13, 2], [14, 3], [15, 3], [16, 11], [17, 4], [18, 5], [19, 6], [20, 7], [21, 13], [22, 14], [23, 3], [24, 20], [25, 14], [26, 14], [27, 22], [28, 15], [29, 25], [30, 26], [31, 27], [32, 29], [33, 29], [34, 25], [35, 32], [36, 33], [37, 26], [38, 26], [39, 34], [40, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        int retval = 0;\n\n        SSTRecord sst = null;\n        for ( int k = 0; k < records.size(); k++ )\n        {\n            Record record = records.get( k );\n            if ( record.getSid() != RecalcIdRecord.sid || ( (RecalcIdRecord) record ).isNeeded() )\n            {\n                if (record instanceof SSTRecord)\n                    sst = (SSTRecord)record;\n                if (record.getSid() == ExtSSTRecord.sid && sst != null)\n                    retval += sst.calcExtSSTRecordSize();\n                else\n                    retval += record.getRecordSize();\n            }\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [4, 10], [6, 11], [2, 12], [6, 13], [6, 14], [11, 15], [7, 16], [13, 17], [14, 18], [15, 19], [13, 20], [13, 21], [17, 22], [17, 23], [14, 24], [20, 25], [21, 26], [22, 27], [23, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 4], [11, 6], [12, 2], [13, 6], [14, 6], [15, 11], [16, 7], [17, 13], [18, 14], [19, 15], [20, 13], [21, 13], [22, 17], [23, 17], [24, 14], [25, 20], [26, 21], [27, 22], [28, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "createBOF", "code": "    protected Record createBOF() {\n        BOFRecord retval = new BOFRecord();\n\n        retval.setVersion(( short ) 0x600);\n        retval.setType(( short ) 5);\n        retval.setBuild(( short ) 0x10d3);\n\n        retval.setBuildYear(( short ) 1996);\n        retval.setRequiredVersion(0x6);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [2, 9], [4, 10], [5, 11], [6, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 2], [10, 4], [11, 5], [12, 6], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createInterfaceHdr", "code": "    protected Record createInterfaceHdr() {\n        InterfaceHdrRecord retval = new InterfaceHdrRecord();\n\n        retval.setCodepage(CODEPAGE);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createMMS", "code": "    protected Record createMMS() {\n        MMSRecord retval = new MMSRecord();\n\n        retval.setAddMenuCount(( byte ) 0);\n        retval.setDelMenuCount(( byte ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createInterfaceEnd", "code": "    protected Record createInterfaceEnd() {\n        return new InterfaceEndRecord();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createWriteAccess", "code": "    protected Record createWriteAccess() {\n        WriteAccessRecord retval = new WriteAccessRecord();\n\n        retval.setUsername(System.getProperty(\"user.name\"));\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createCodepage", "code": "    protected Record createCodepage() {\n        CodepageRecord retval = new CodepageRecord();\n\n        retval.setCodepage(CODEPAGE);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createDSF", "code": "    protected Record createDSF() {\n        DSFRecord retval = new DSFRecord();\n\n        retval.setDsf();\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createTabId", "code": "    protected Record createTabId() {\n        TabIdRecord retval     = new TabIdRecord();\n        short[]     tabidarray = {\n            0\n        };\n\n        retval.setTabIdArray(tabidarray);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createFnGroupCount", "code": "    protected Record createFnGroupCount() {\n        FnGroupCountRecord retval = new FnGroupCountRecord();\n\n        retval.setCount(( short ) 14);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createWindowProtect", "code": "    protected Record createWindowProtect() {\n        WindowProtectRecord retval = new WindowProtectRecord();\n\n        retval.setProtect();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createProtect", "code": "    protected Record createProtect() {\n        ProtectRecord retval = new ProtectRecord();\n\n        retval.setProtect();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createPassword", "code": "    protected Record createPassword() {\n        PasswordRecord retval = new PasswordRecord();\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createProtectionRev4", "code": "    protected Record createProtectionRev4() {\n        ProtectionRev4Record retval = new ProtectionRev4Record();\n\n        retval.setProtect(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createPasswordRev4", "code": "    protected Record createPasswordRev4() {\n        PasswordRev4Record retval = new PasswordRev4Record();\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createWindowOne", "code": "    protected Record createWindowOne() {\n        WindowOneRecord retval = new WindowOneRecord();\n\n        retval.setHorizontalHold(( short ) 0x168);\n        retval.setVerticalHold(( short ) 0x10e);\n        retval.setWidth(( short ) 0x3a5c);\n        retval.setHeight(( short ) 0x23be);\n        retval.setOptions(( short ) 0x38);\n        retval.setSelectedTab(( short ) 0x0);\n        retval.setDisplayedTab(( short ) 0x0);\n        retval.setNumSelectedTabs(( short ) 1);\n        retval.setTabWidthRatio(( short ) 0x258);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [4, 14], [5, 15], [6, 16], [7, 17], [8, 18], [9, 19], [10, 20], [11, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 4], [15, 5], [16, 6], [17, 7], [18, 8], [19, 9], [20, 10], [21, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createBackup", "code": "    protected Record createBackup() {\n        BackupRecord retval = new BackupRecord();\n\n        retval.setBackup();\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createHideObj", "code": "    protected Record createHideObj() {\n        HideObjRecord retval = new HideObjRecord();\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createDateWindow1904", "code": "    protected Record createDateWindow1904() {\n        DateWindow1904Record retval = new DateWindow1904Record();\n\n        retval.setWindowing();\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createPrecision", "code": "    protected Record createPrecision() {\n        PrecisionRecord retval = new PrecisionRecord();\n\n        retval.setFullPrecision();\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createRefreshAll", "code": "    protected Record createRefreshAll() {\n        RefreshAllRecord retval = new RefreshAllRecord();\n\n        retval.setRefreshAll(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createBookBool", "code": "    protected Record createBookBool() {\n        BookBoolRecord retval = new BookBoolRecord();\n\n        retval.setSaveLinkValues(( short ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createFont", "code": "    protected Record createFont() {\n        FontRecord retval = new FontRecord();\n\n        retval.setFontHeight(( short ) 0xc8);\n        retval.setAttributes(( short ) 0x0);\n        retval.setColorPaletteIndex(( short ) 0x7fff);\n        retval.setBoldWeight(( short ) 0x190);\n        retval.setFontNameLength(( byte ) 5);\n        retval.setFontName(\"Arial\");\n        return retval;\n    \n\n    /**\n     * Creates a FormatRecord object\n     * @param id    the number of the format record to create (meaning its position in\n     *        a file as M$ Excel would create it.)\n     * @return record containing a FormatRecord\n     * @see org.apache.poi.hssf.record.FormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n\n        switch (id) {\n\n            case 0 :\n                retval.setIndexCode(( short ) 5);\n                retval.setFormatStringLength(( byte ) 0x17);\n                retval.setFormatString(\"\\\"$\\\"#,##0_);\\\\(\\\"$\\\"#,##0\\\\)\");\n                break;\n\n            case 1 :\n                retval.setIndexCode(( short ) 6);\n                retval.setFormatStringLength(( byte ) 0x1c);\n                retval.setFormatString(\"\\\"$\\\"#,##0_);[Red]\\\\(\\\"$\\\"#,##0\\\\)\");\n                break;\n\n            case 2 :\n                retval.setIndexCode(( short ) 7);\n                retval.setFormatStringLength(( byte ) 0x1d);\n                retval.setFormatString(\"\\\"$\\\"#,##0.00_);\\\\(\\\"$\\\"#,##0.00\\\\)\");\n                break;\n\n            case 3 :\n                retval.setIndexCode(( short ) 8);\n                retval.setFormatStringLength(( byte ) 0x22);\n                retval.setFormatString(\n                \"\\\"$\\\"#,##0.00_);[Red]\\\\(\\\"$\\\"#,##0.00\\\\)\");\n                break;\n\n            case 4 :\n                retval.setIndexCode(( short ) 0x2a);\n                retval.setFormatStringLength(( byte ) 0x32);\n                retval.setFormatString(\n                \"_(\\\"$\\\"* #,##0_);_(\\\"$\\\"* \\\\(#,##0\\\\);_(\\\"$\\\"* \\\"-\\\"_);_(@_)\");\n                break;\n\n            case 5 :\n                retval.setIndexCode(( short ) 0x29);\n                retval.setFormatStringLength(( byte ) 0x29);\n                retval.setFormatString(\n                \"_(* #,##0_);_(* \\\\(#,##0\\\\);_(* \\\"-\\\"_);_(@_)\");\n                break;\n\n            case 6 :\n                retval.setIndexCode(( short ) 0x2c);\n                retval.setFormatStringLength(( byte ) 0x3a);\n                retval.setFormatString(\n                \"_(\\\"$\\\"* #,##0.00_);_(\\\"$\\\"* \\\\(#,##0.00\\\\);_(\\\"$\\\"* \\\"-\\\"??_);_(@_)\");\n                break;\n\n            case 7 :\n                retval.setIndexCode(( short ) 0x2b);\n                retval.setFormatStringLength(( byte ) 0x31);\n                retval.setFormatString(\n                \"_(* #,##0.00_);_(* \\\\(#,##0.00\\\\);_(* \\\"-\\\"??_);_(@_)\");\n                break;\n        }\n        return retval;\n    \n\n    /**\n     * Creates an ExtendedFormatRecord object\n     * @param id    the number of the extended format record to create (meaning its position in\n     *        a file as MS Excel would create it.)\n     *\n     * @return record containing an ExtendedFormatRecord\n     * @see org.apache.poi.hssf.record.ExtendedFormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        ExtendedFormatRecord retval = new ExtendedFormatRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 1 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 2 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 3 :\n                retval.setFontIndex(( short ) 2);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 4 :\n                retval.setFontIndex(( short ) 2);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 5 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 6 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 7 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 8 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 9 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 10 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 11 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 12 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 13 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 14 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 15 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x0);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 16 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2b);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 17 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x29);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 18 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2c);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 19 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2a);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 20 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x9);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 21 :\n                retval.setFontIndex(( short ) 5);\n                retval.setFormatIndex(( short ) 0x0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 22 :\n                retval.setFontIndex(( short ) 6);\n                retval.setFormatIndex(( short ) 0x0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 23 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0x31);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 24 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0x8);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 25 :\n                retval.setFontIndex(( short ) 6);\n                retval.setFormatIndex(( short ) 0x8);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "RETURN", "SWITCH", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [2, 54], [2, 55], [2, 56], [2, 57], [2, 58], [2, 59], [2, 60], [2, 61], [2, 62], [2, 63], [2, 64], [2, 65], [3, 66], [5, 67], [5, 68], [5, 69], [5, 70], [5, 71], [5, 72], [5, 73], [5, 74], [5, 75], [5, 76], [5, 77], [5, 78], [5, 79], [5, 80], [5, 81], [5, 82], [8, 83], [7, 84], [2, 85], [2, 86], [2, 87], [2, 88], [2, 89], [2, 90], [2, 91], [2, 92], [2, 93], [2, 94], [2, 95], [2, 96], [2, 97], [2, 98], [2, 99], [2, 100], [2, 101], [2, 102], [2, 103], [2, 104], [2, 105], [2, 106], [2, 107], [2, 108], [2, 109], [2, 110], [2, 111], [2, 112], [2, 113], [2, 114], [2, 115], [2, 116], [2, 117], [2, 118], [2, 119], [2, 120], [2, 121], [2, 122], [2, 123], [2, 124], [2, 125], [2, 126], [2, 127], [2, 128], [2, 129], [2, 130], [2, 131], [2, 132], [2, 133], [2, 134], [2, 135], [2, 136], [2, 137], [2, 138], [2, 139], [2, 140], [2, 141], [2, 142], [2, 143], [2, 144], [2, 145], [2, 146], [2, 147], [2, 148], [2, 149], [2, 150], [2, 151], [2, 152], [2, 153], [2, 154], [2, 155], [2, 156], [2, 157], [2, 158], [2, 159], [2, 160], [2, 161], [2, 162], [2, 163], [2, 164], [2, 165], [2, 166], [2, 167], [2, 168], [2, 169], [2, 170], [2, 171], [2, 172], [2, 173], [2, 174], [2, 175], [2, 176], [2, 177], [2, 178], [2, 179], [2, 180], [2, 181], [2, 182], [2, 183], [2, 184], [2, 185], [2, 186], [2, 187], [2, 188], [2, 189], [2, 190], [2, 191], [2, 192], [2, 193], [2, 194], [2, 195], [2, 196], [2, 197], [2, 198], [2, 199], [2, 200], [2, 201], [2, 202], [2, 203], [2, 204], [2, 205], [2, 206], [2, 207], [2, 208], [2, 209], [2, 210], [2, 211], [2, 212], [2, 213], [2, 214], [2, 215], [2, 216], [2, 217], [2, 218], [2, 219], [2, 220], [2, 221], [2, 222], [2, 223], [2, 224], [2, 225], [2, 226], [2, 227], [2, 228], [2, 229], [2, 230], [2, 231], [2, 232], [2, 233], [2, 234], [2, 235], [2, 236], [2, 237], [2, 238], [2, 239], [2, 240], [2, 241], [2, 242], [2, 243], [2, 244], [2, 245], [2, 246], [2, 247], [2, 248], [2, 249], [2, 250], [2, 251], [2, 252], [2, 253], [2, 254], [2, 255], [2, 256], [2, 257], [2, 258], [2, 259], [2, 260], [2, 261], [2, 262], [2, 263], [2, 264], [2, 265], [2, 266], [2, 267], [2, 268], [2, 269], [2, 270], [2, 271], [2, 272], [2, 273], [2, 274], [2, 275], [2, 276], [2, 277], [2, 278], [2, 279], [2, 280], [2, 281], [2, 282], [2, 283], [2, 284], [2, 285], [2, 286], [2, 287], [2, 288], [2, 289], [2, 290], [2, 291], [2, 292], [2, 293], [2, 294], [2, 295], [2, 296], [2, 297], [2, 298], [2, 299], [2, 300], [2, 301], [2, 302], [2, 303], [2, 304], [2, 305], [2, 306], [2, 307], [2, 308], [2, 309], [2, 310], [2, 311], [2, 312], [2, 313], [2, 314], [2, 315], [2, 316], [2, 317], [2, 318], [5, 319], [5, 320], [5, 321], [5, 322], [5, 323], [5, 324], [5, 325], [5, 326], [5, 327], [5, 328], [5, 329], [5, 330], [5, 331], [5, 332], [5, 333], [5, 334], [5, 335], [5, 336], [5, 337], [5, 338], [5, 339], [5, 340], [5, 341], [5, 342], [9, 343], [10, 344], [11, 345], [12, 346], [13, 347], [319, 348], [322, 349], [325, 350], [328, 351], [331, 352], [334, 353], [337, 354], [340, 355], [85, 356], [86, 357], [87, 358], [88, 359], [89, 360], [90, 361], [91, 362], [92, 363], [93, 364], [94, 365], [95, 366], [96, 367], [97, 368], [98, 369], [99, 370], [100, 371], [101, 372], [102, 373], [103, 374], [104, 375], [105, 376], [106, 377], [107, 378], [108, 379], [109, 380], [110, 381], [111, 382], [112, 383], [113, 384], [114, 385], [115, 386], [116, 387], [117, 388], [118, 389], [119, 390], [120, 391], [121, 392], [122, 393], [123, 394], [124, 395], [125, 396], [126, 397], [127, 398], [128, 399], [129, 400], [130, 401], [131, 402], [132, 403], [133, 404], [134, 405], [135, 406], [136, 407], [137, 408], [138, 409], [139, 410], [140, 411], [141, 412], [142, 413], [143, 414], [144, 415], [145, 416], [146, 417], [147, 418], [148, 419], [149, 420], [150, 421], [151, 422], [152, 423], [153, 424], [154, 425], [155, 426], [156, 427], [157, 428], [158, 429], [159, 430], [160, 431], [161, 432], [162, 433], [163, 434], [164, 435], [165, 436], [166, 437], [167, 438], [168, 439], [169, 440], [170, 441], [171, 442], [172, 443], [173, 444], [174, 445], [175, 446], [176, 447], [177, 448], [178, 449], [179, 450], [180, 451], [181, 452], [182, 453], [183, 454], [184, 455], [185, 456], [186, 457], [187, 458], [188, 459], [189, 460], [190, 461], [191, 462], [192, 463], [193, 464], [194, 465], [195, 466], [196, 467], [197, 468], [198, 469], [199, 470], [200, 471], [201, 472], [202, 473], [203, 474], [204, 475], [205, 476], [206, 477], [207, 478], [208, 479], [209, 480], [210, 481], [211, 482], [212, 483], [213, 484], [214, 485], [215, 486], [216, 487], [217, 488], [218, 489], [219, 490], [220, 491], [221, 492], [222, 493], [223, 494], [224, 495], [225, 496], [226, 497], [227, 498], [228, 499], [229, 500], [230, 501], [231, 502], [232, 503], [233, 504], [234, 505], [235, 506], [236, 507], [237, 508], [238, 509], [239, 510], [240, 511], [241, 512], [242, 513], [243, 514], [244, 515], [245, 516], [246, 517], [247, 518], [248, 519], [249, 520], [250, 521], [251, 522], [252, 523], [253, 524], [254, 525], [255, 526], [256, 527], [257, 528], [258, 529], [259, 530], [260, 531], [261, 532], [262, 533], [263, 534], [264, 535], [265, 536], [266, 537], [267, 538], [268, 539], [269, 540], [270, 541], [271, 542], [272, 543], [273, 544], [274, 545], [275, 546], [276, 547], [277, 548], [278, 549], [279, 550], [280, 551], [281, 552], [282, 553], [283, 554], [284, 555], [285, 556], [286, 557], [287, 558], [288, 559], [289, 560], [290, 561], [291, 562], [292, 563], [293, 564], [294, 565], [295, 566], [296, 567], [297, 568], [298, 569], [299, 570], [300, 571], [301, 572], [302, 573], [303, 574], [304, 575], [305, 576], [306, 577], [307, 578], [308, 579], [309, 580], [310, 581], [311, 582], [312, 583], [313, 584], [314, 585], [315, 586], [316, 587], [317, 588], [318, 589], [320, 590], [321, 591], [323, 592], [324, 593], [326, 594], [327, 595], [329, 596], [330, 597], [332, 598], [333, 599], [335, 600], [336, 601], [338, 602], [339, 603], [341, 604], [342, 605], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 2], [52, 2], [53, 2], [54, 2], [55, 2], [56, 2], [57, 2], [58, 2], [59, 2], [60, 2], [61, 2], [62, 2], [63, 2], [64, 2], [65, 2], [66, 3], [67, 5], [68, 5], [69, 5], [70, 5], [71, 5], [72, 5], [73, 5], [74, 5], [75, 5], [76, 5], [77, 5], [78, 5], [79, 5], [80, 5], [81, 5], [82, 5], [83, 8], [84, 7], [85, 2], [86, 2], [87, 2], [88, 2], [89, 2], [90, 2], [91, 2], [92, 2], [93, 2], [94, 2], [95, 2], [96, 2], [97, 2], [98, 2], [99, 2], [100, 2], [101, 2], [102, 2], [103, 2], [104, 2], [105, 2], [106, 2], [107, 2], [108, 2], [109, 2], [110, 2], [111, 2], [112, 2], [113, 2], [114, 2], [115, 2], [116, 2], [117, 2], [118, 2], [119, 2], [120, 2], [121, 2], [122, 2], [123, 2], [124, 2], [125, 2], [126, 2], [127, 2], [128, 2], [129, 2], [130, 2], [131, 2], [132, 2], [133, 2], [134, 2], [135, 2], [136, 2], [137, 2], [138, 2], [139, 2], [140, 2], [141, 2], [142, 2], [143, 2], [144, 2], [145, 2], [146, 2], [147, 2], [148, 2], [149, 2], [150, 2], [151, 2], [152, 2], [153, 2], [154, 2], [155, 2], [156, 2], [157, 2], [158, 2], [159, 2], [160, 2], [161, 2], [162, 2], [163, 2], [164, 2], [165, 2], [166, 2], [167, 2], [168, 2], [169, 2], [170, 2], [171, 2], [172, 2], [173, 2], [174, 2], [175, 2], [176, 2], [177, 2], [178, 2], [179, 2], [180, 2], [181, 2], [182, 2], [183, 2], [184, 2], [185, 2], [186, 2], [187, 2], [188, 2], [189, 2], [190, 2], [191, 2], [192, 2], [193, 2], [194, 2], [195, 2], [196, 2], [197, 2], [198, 2], [199, 2], [200, 2], [201, 2], [202, 2], [203, 2], [204, 2], [205, 2], [206, 2], [207, 2], [208, 2], [209, 2], [210, 2], [211, 2], [212, 2], [213, 2], [214, 2], [215, 2], [216, 2], [217, 2], [218, 2], [219, 2], [220, 2], [221, 2], [222, 2], [223, 2], [224, 2], [225, 2], [226, 2], [227, 2], [228, 2], [229, 2], [230, 2], [231, 2], [232, 2], [233, 2], [234, 2], [235, 2], [236, 2], [237, 2], [238, 2], [239, 2], [240, 2], [241, 2], [242, 2], [243, 2], [244, 2], [245, 2], [246, 2], [247, 2], [248, 2], [249, 2], [250, 2], [251, 2], [252, 2], [253, 2], [254, 2], [255, 2], [256, 2], [257, 2], [258, 2], [259, 2], [260, 2], [261, 2], [262, 2], [263, 2], [264, 2], [265, 2], [266, 2], [267, 2], [268, 2], [269, 2], [270, 2], [271, 2], [272, 2], [273, 2], [274, 2], [275, 2], [276, 2], [277, 2], [278, 2], [279, 2], [280, 2], [281, 2], [282, 2], [283, 2], [284, 2], [285, 2], [286, 2], [287, 2], [288, 2], [289, 2], [290, 2], [291, 2], [292, 2], [293, 2], [294, 2], [295, 2], [296, 2], [297, 2], [298, 2], [299, 2], [300, 2], [301, 2], [302, 2], [303, 2], [304, 2], [305, 2], [306, 2], [307, 2], [308, 2], [309, 2], [310, 2], [311, 2], [312, 2], [313, 2], [314, 2], [315, 2], [316, 2], [317, 2], [318, 2], [319, 5], [320, 5], [321, 5], [322, 5], [323, 5], [324, 5], [325, 5], [326, 5], [327, 5], [328, 5], [329, 5], [330, 5], [331, 5], [332, 5], [333, 5], [334, 5], [335, 5], [336, 5], [337, 5], [338, 5], [339, 5], [340, 5], [341, 5], [342, 5], [343, 9], [344, 10], [345, 11], [346, 12], [347, 13], [348, 319], [349, 322], [350, 325], [351, 328], [352, 331], [353, 334], [354, 337], [355, 340], [356, 85], [357, 86], [358, 87], [359, 88], [360, 89], [361, 90], [362, 91], [363, 92], [364, 93], [365, 94], [366, 95], [367, 96], [368, 97], [369, 98], [370, 99], [371, 100], [372, 101], [373, 102], [374, 103], [375, 104], [376, 105], [377, 106], [378, 107], [379, 108], [380, 109], [381, 110], [382, 111], [383, 112], [384, 113], [385, 114], [386, 115], [387, 116], [388, 117], [389, 118], [390, 119], [391, 120], [392, 121], [393, 122], [394, 123], [395, 124], [396, 125], [397, 126], [398, 127], [399, 128], [400, 129], [401, 130], [402, 131], [403, 132], [404, 133], [405, 134], [406, 135], [407, 136], [408, 137], [409, 138], [410, 139], [411, 140], [412, 141], [413, 142], [414, 143], [415, 144], [416, 145], [417, 146], [418, 147], [419, 148], [420, 149], [421, 150], [422, 151], [423, 152], [424, 153], [425, 154], [426, 155], [427, 156], [428, 157], [429, 158], [430, 159], [431, 160], [432, 161], [433, 162], [434, 163], [435, 164], [436, 165], [437, 166], [438, 167], [439, 168], [440, 169], [441, 170], [442, 171], [443, 172], [444, 173], [445, 174], [446, 175], [447, 176], [448, 177], [449, 178], [450, 179], [451, 180], [452, 181], [453, 182], [454, 183], [455, 184], [456, 185], [457, 186], [458, 187], [459, 188], [460, 189], [461, 190], [462, 191], [463, 192], [464, 193], [465, 194], [466, 195], [467, 196], [468, 197], [469, 198], [470, 199], [471, 200], [472, 201], [473, 202], [474, 203], [475, 204], [476, 205], [477, 206], [478, 207], [479, 208], [480, 209], [481, 210], [482, 211], [483, 212], [484, 213], [485, 214], [486, 215], [487, 216], [488, 217], [489, 218], [490, 219], [491, 220], [492, 221], [493, 222], [494, 223], [495, 224], [496, 225], [497, 226], [498, 227], [499, 228], [500, 229], [501, 230], [502, 231], [503, 232], [504, 233], [505, 234], [506, 235], [507, 236], [508, 237], [509, 238], [510, 239], [511, 240], [512, 241], [513, 242], [514, 243], [515, 244], [516, 245], [517, 246], [518, 247], [519, 248], [520, 249], [521, 250], [522, 251], [523, 252], [524, 253], [525, 254], [526, 255], [527, 256], [528, 257], [529, 258], [530, 259], [531, 260], [532, 261], [533, 262], [534, 263], [535, 264], [536, 265], [537, 266], [538, 267], [539, 268], [540, 269], [541, 270], [542, 271], [543, 272], [544, 273], [545, 274], [546, 275], [547, 276], [548, 277], [549, 278], [550, 279], [551, 280], [552, 281], [553, 282], [554, 283], [555, 284], [556, 285], [557, 286], [558, 287], [559, 288], [560, 289], [561, 290], [562, 291], [563, 292], [564, 293], [565, 294], [566, 295], [567, 296], [568, 297], [569, 298], [570, 299], [571, 300], [572, 301], [573, 302], [574, 303], [575, 304], [576, 305], [577, 306], [578, 307], [579, 308], [580, 309], [581, 310], [582, 311], [583, 312], [584, 313], [585, 314], [586, 315], [587, 316], [588, 317], [589, 318], [590, 320], [591, 321], [592, 323], [593, 324], [594, 326], [595, 327], [596, 329], [597, 330], [598, 332], [599, 333], [600, 335], [601, 336], [602, 338], [603, 339], [604, 341], [605, 342], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493], [494, 494], [495, 495], [496, 496], [497, 497], [498, 498], [499, 499], [500, 500], [501, 501], [502, 502], [503, 503], [504, 504], [505, 505], [506, 506], [507, 507], [508, 508], [509, 509], [510, 510], [511, 511], [512, 512], [513, 513], [514, 514], [515, 515], [516, 516], [517, 517], [518, 518], [519, 519], [520, 520], [521, 521], [522, 522], [523, 523], [524, 524], [525, 525], [526, 526], [527, 527], [528, 528], [529, 529], [530, 530], [531, 531], [532, 532], [533, 533], [534, 534], [535, 535], [536, 536], [537, 537], [538, 538], [539, 539], [540, 540], [541, 541], [542, 542], [543, 543], [544, 544], [545, 545], [546, 546], [547, 547], [548, 548], [549, 549], [550, 550], [551, 551], [552, 552], [553, 553], [554, 554], [555, 555], [556, 556], [557, 557], [558, 558], [559, 559], [560, 560], [561, 561], [562, 562], [563, 563], [564, 564], [565, 565], [566, 566], [567, 567], [568, 568], [569, 569], [570, 570], [571, 571], [572, 572], [573, 573], [574, 574], [575, 575], [576, 576], [577, 577], [578, 578], [579, 579], [580, 580], [581, 581], [582, 582], [583, 583], [584, 584], [585, 585], [586, 586], [587, 587], [588, 588], [589, 589], [590, 590], [591, 591], [592, 592], [593, 593], [594, 594], [595, 595], [596, 596], [597, 597], [598, 598], [599, 599], [600, 600], [601, 601], [602, 602], [603, 603], [604, 604], [605, 605]]}, {"function_name": "createExtendedFormat", "code": "    protected ExtendedFormatRecord createExtendedFormat() {\n        ExtendedFormatRecord retval = new ExtendedFormatRecord();\n\n        retval.setFontIndex(( short ) 0);\n        retval.setFormatIndex(( short ) 0x0);\n        retval.setCellOptions(( short ) 0x1);\n        retval.setAlignmentOptions(( short ) 0x20);\n        retval.setIndentionOptions(( short ) 0);\n        retval.setBorderOptions(( short ) 0);\n        retval.setPaletteOptions(( short ) 0);\n        retval.setAdtlPaletteOptions(( short ) 0);\n        retval.setFillPaletteOptions(( short ) 0x20c0);\n        retval.setTopBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setBottomBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setLeftBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setRightBorderPaletteIdx(HSSFColor.BLACK.index);\n        return retval;\n    \n\n    /**\n     * Creates a StyleRecord object\n     * @param id        the number of the style record to create (meaning its position in\n     *                  a file as MS Excel would create it.\n     * @return record containing a StyleRecord\n     * @see org.apache.poi.hssf.record.StyleRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        StyleRecord retval = new StyleRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setIndex(( short ) 0xffff8010);\n                retval.setBuiltin(( byte ) 3);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 1 :\n                retval.setIndex(( short ) 0xffff8011);\n                retval.setBuiltin(( byte ) 6);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 2 :\n                retval.setIndex(( short ) 0xffff8012);\n                retval.setBuiltin(( byte ) 4);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 3 :\n                retval.setIndex(( short ) 0xffff8013);\n                retval.setBuiltin(( byte ) 7);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 4 :\n                retval.setIndex(( short ) 0xffff8000);\n                retval.setBuiltin(( byte ) 0);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 5 :\n                retval.setIndex(( short ) 0xffff8014);\n                retval.setBuiltin(( byte ) 5);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [3, 31], [5, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [10, 51], [11, 52], [12, 53], [13, 54], [14, 55], [15, 56], [16, 57], [17, 58], [18, 59], [33, 60], [34, 61], [35, 62], [36, 63], [37, 64], [38, 65], [39, 66], [40, 67], [41, 68], [42, 69], [43, 70], [44, 71], [45, 72], [46, 73], [47, 74], [48, 75], [49, 76], [50, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 3], [32, 5], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 10], [52, 11], [53, 12], [54, 13], [55, 14], [56, 15], [57, 16], [58, 17], [59, 18], [60, 33], [61, 34], [62, 35], [63, 36], [64, 37], [65, 38], [66, 39], [67, 40], [68, 41], [69, 42], [70, 43], [71, 44], [72, 45], [73, 46], [74, 47], [75, 48], [76, 49], [77, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "createPalette", "code": "    protected PaletteRecord createPalette()\n    {\n        return new PaletteRecord(PaletteRecord.sid);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createUseSelFS", "code": "    protected Record createUseSelFS() {\n        UseSelFSRecord retval = new UseSelFSRecord();\n\n        retval.setFlag(( short ) 0);\n        return retval;\n    \n\n    /**\n     * create a \"bound sheet\" or \"bundlesheet\" (depending who you ask) record\n     * Always sets the sheet's bof to 0.  You'll need to set that yourself.\n     * @param id either sheet 0,1 or 2.\n     * @return record containing a BoundSheetRecord\n     * @see org.apache.poi.hssf.record.BoundSheetRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        BoundSheetRecord retval = new BoundSheetRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet1\");\n                break;\n\n            case 1 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet2\");\n                break;\n\n            case 2 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet3\");\n                break;\n        }\n        return retval;\n    \n\n    /**\n     * Creates the Country record with the default country set to 1\n     * and current country set to 7 in case of russian locale (\"ru_RU\") and 1 otherwise\n     * @return record containing a CountryRecord\n     * @see org.apache.poi.hssf.record.CountryRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        CountryRecord retval = new CountryRecord();\n\n        retval.setDefaultCountry(( short ) 1);\n\n        if ( Locale.getDefault().toString().equals( \"ru_RU\" ) ) {\n\t        retval.setCurrentCountry(( short ) 7);\n        }\n        else {\n\t        retval.setCurrentCountry(( short ) 1);\n        }\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "RETURN", "SWITCH", "VAR_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [0, 10], [0, 11], [9, 12], [9, 13], [3, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [8, 22], [2, 23], [2, 24], [12, 25], [10, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [11, 39], [27, 40], [31, 41], [35, 42], [23, 43], [24, 44], [28, 45], [29, 46], [30, 47], [32, 48], [33, 49], [34, 50], [36, 51], [37, 52], [38, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 0], [11, 0], [12, 9], [13, 9], [14, 3], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 8], [23, 2], [24, 2], [25, 12], [26, 10], [27, 5], [28, 5], [29, 5], [30, 5], [31, 5], [32, 5], [33, 5], [34, 5], [35, 5], [36, 5], [37, 5], [38, 5], [39, 11], [40, 27], [41, 31], [42, 35], [43, 23], [44, 24], [45, 28], [46, 29], [47, 30], [48, 32], [49, 33], [50, 34], [51, 36], [52, 37], [53, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "createSST", "code": "    protected Record createSST() {\n        return new SSTRecord();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExtendedSST", "code": "    protected Record createExtendedSST() {\n        ExtSSTRecord retval = new ExtSSTRecord();\n\n        retval.setNumStringsPerBucket(( short ) 0x8);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createEOF", "code": "    protected Record createEOF() {\n        return new EOFRecord();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSheetReferences", "code": "    public SheetReferences getSheetReferences() {\n        SheetReferences refs = new SheetReferences();\n        \n        if (externSheet != null) {\n            for (int k = 0; k < externSheet.getNumOfREFStructures(); k++) {\n                \n                String sheetName = findSheetNameFromExternSheet((short)k);\n                refs.addSheetReference(sheetName, k);\n                \n            }\n        }\n        return refs;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [3, 7], [5, 8], [5, 9], [8, 10], [5, 11], [5, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 3], [8, 5], [9, 5], [10, 8], [11, 5], [12, 5], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "findSheetNameFromExternSheet", "code": "    public String findSheetNameFromExternSheet(short num){\n        String result=\"\";\n\n        short indexToSheet = externSheet.getREFRecordAt(num).getIndexToFirstSupBook();\n            result = getSheetName(indexToSheet);\n        \n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [2, 7], [3, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 2], [8, 3], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSheetIndexFromExternSheetIndex", "code": "    public int getSheetIndexFromExternSheetIndex(int externSheetNumber)\n    {\n        if (externSheetNumber >= externSheet.getNumOfREFStructures())\n            return -1;\n        else\n            return externSheet.getREFRecordAt(externSheetNumber).getIndexToFirstSupBook();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "checkExternSheet", "code": "    public short checkExternSheet(int sheetNumber){\n\n        int i = 0;\n        boolean flag = false;\n        short result = 0;\n\n        if (externSheet == null) {\n            externSheet = createExternSheet();\n        }\n\n        while (i < externSheet.getNumOfREFStructures() && !flag){\n            ExternSheetSubRecord record = externSheet.getREFRecordAt(i);\n\n            if (record.getIndexToFirstSupBook() ==  sheetNumber &&\n            record.getIndexToLastSupBook() == sheetNumber){\n                flag = true;\n                result = (short) i;\n            }\n\n            ++i;\n        }\n\n        if (!flag) {\n            result = addSheetIndexToExternSheet((short) sheetNumber);\n        }\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [3, 11], [3, 12], [9, 13], [10, 14], [5, 15], [6, 16], [7, 17], [2, 18], [11, 19], [13, 20], [4, 21], [18, 22], [19, 23], [19, 24], [12, 25], [21, 26], [11, 27], [11, 28], [23, 29], [24, 30], [28, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 3], [12, 3], [13, 9], [14, 10], [15, 5], [16, 6], [17, 7], [18, 2], [19, 11], [20, 13], [21, 4], [22, 18], [23, 19], [24, 19], [25, 12], [26, 21], [27, 11], [28, 11], [29, 23], [30, 24], [31, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "addSheetIndexToExternSheet", "code": "    private short addSheetIndexToExternSheet(short sheetNumber){\n        short result;\n\n        ExternSheetSubRecord record = new ExternSheetSubRecord();\n        record.setIndexToFirstSupBook(sheetNumber);\n        record.setIndexToLastSupBook(sheetNumber);\n        externSheet.addREFRecord(record);\n        externSheet.setNumOfREFStructures((short)(externSheet.getNumOfREFStructures() + 1));\n        result = (short)(externSheet.getNumOfREFStructures() - 1);\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [5, 11], [6, 12], [11, 13], [11, 14], [12, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 5], [12, 6], [13, 11], [14, 11], [15, 12], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getNumNames", "code": "    public int getNumNames(){\n        int result = names.size();\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNameRecord", "code": "    public NameRecord getNameRecord(int index){\n        NameRecord result = (NameRecord) names.get(index);\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createName", "code": "    public NameRecord createName(){\n\n        NameRecord name = new NameRecord();\n\n        int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(SupBookRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(CountryRecord.sid);\n\n        records.add(idx+names.size()+1, name);\n        names.add(name);\n\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [7, 10], [2, 11], [8, 12], [3, 13], [9, 14], [4, 15], [5, 16], [10, 17], [10, 18], [11, 19], [13, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 7], [11, 2], [12, 8], [13, 3], [14, 9], [15, 4], [16, 5], [17, 10], [18, 10], [19, 11], [20, 13], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "addName", "code": "    public NameRecord addName(NameRecord name)\n    {\n        int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(SupBookRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(CountryRecord.sid);\n        records.add(idx+names.size()+1, name);\n        names.add(name);\n\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [7, 10], [2, 11], [8, 12], [3, 13], [9, 14], [4, 15], [10, 16], [10, 17], [11, 18], [13, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 7], [11, 2], [12, 8], [13, 3], [14, 9], [15, 4], [16, 10], [17, 10], [18, 11], [19, 13], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "createBuiltInName", "code": "\tpublic NameRecord createBuiltInName(byte builtInName, int index)\n\t{\n\t\tif (index == -1 || index+1 > (int)Short.MAX_VALUE) \n\t\t\tthrow new IllegalArgumentException(\"Index is not valid [\"+index+\"]\");\n\t    \n\t\tNameRecord name = new NameRecord(builtInName, (short)(index));\n\t            \n\t\taddName(name);\n\t    \n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [3, 8], [2, 9], [7, 10], [8, 11], [8, 12], [10, 13], [11, 14], [12, 15], [13, 16], [13, 17], [14, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 3], [9, 2], [10, 7], [11, 8], [12, 8], [13, 10], [14, 11], [15, 12], [16, 13], [17, 13], [18, 14], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "removeName", "code": "    public void removeName(int namenum){\n        if (names.size() > namenum) {\n            int idx = findFirstRecordLocBySid(NameRecord.sid);\n            records.remove(idx + namenum);\n            names.remove(namenum);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [7, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 7], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createExternSheet", "code": "    protected ExternSheetRecord createExternSheet(){\n        ExternSheetRecord externSheet = new ExternSheetRecord();\n\n        int idx = findFirstRecordLocBySid(CountryRecord.sid);\n\n        records.add(idx+1, externSheet);\n\n        SupBookRecord supbook = new SupBookRecord();\n\n        supbook.setNumberOfSheets((short)getNumSheets());\n\n        records.add(idx+1, supbook);\n\n        return externSheet;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [2, 9], [7, 10], [3, 11], [4, 12], [8, 13], [6, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 2], [10, 7], [11, 3], [12, 4], [13, 8], [14, 6], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFormat", "code": "    public short getFormat(String format, boolean createIfNotFound) {\n\tIterator iterator;\n\tfor (iterator = formats.iterator(); iterator.hasNext();) {\n\t    FormatRecord r = (FormatRecord)iterator.next();\n\t    if (r.getFormatString().equals(format)) {\n\t\treturn r.getIndexCode();\n\t    }\n\t}\n\n\tif (createIfNotFound) {\n\t    return createFormat(format);\n\t}\n\n\treturn -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [3, 9], [2, 10], [3, 11], [3, 12], [9, 13], [10, 14], [11, 15], [11, 16], [15, 17], [16, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 3], [10, 2], [11, 3], [12, 3], [13, 9], [14, 10], [15, 11], [16, 11], [17, 15], [18, 16], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getFormats", "code": "    public ArrayList getFormats() {\n\treturn formats;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createFormat", "code": "    public short createFormat( String format )\n    {\n        FormatRecord rec = new FormatRecord();\n        rec.setIndexCode( maxformatid );\n        rec.setFormatStringLength( (byte) format.length() );\n        rec.setFormatString( format );\n\n        int pos = 0;\n        while ( pos < records.size() && records.get( pos ).getSid() != FormatRecord.sid )\n            pos++;\n        pos += formats.size();\n        formats.add( rec );\n        records.add( pos, rec );\n        return maxformatid;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [0, 10], [0, 11], [0, 12], [8, 13], [9, 14], [9, 15], [3, 16], [4, 17], [14, 18], [15, 19], [11, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 0], [11, 0], [12, 0], [13, 8], [14, 9], [15, 9], [16, 3], [17, 4], [18, 14], [19, 15], [20, 11], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "findFirstRecordBySid", "code": "    public Record findFirstRecordBySid(short sid) {\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n            \n            if (record.getSid() == sid) {\n                return record;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [2, 9], [6, 10], [8, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 2], [10, 6], [11, 8], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "findFirstRecordLocBySid", "code": "    public int findFirstRecordLocBySid(short sid) {\n        int index = 0;\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid) {\n                return index;\n            }\n            index ++;\n        }\n        return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [3, 9], [7, 10], [2, 11], [7, 12], [10, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 3], [10, 7], [11, 2], [12, 7], [13, 10], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "findNextRecordBySid", "code": "    public Record findNextRecordBySid(short sid, int pos) {\n        int matches = 0;\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid) {\n                if (matches++ == pos)\n                    return record;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "CALL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [3, 10], [8, 11], [2, 12], [8, 13], [11, 14], [13, 15], [13, 16], [9, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 3], [11, 8], [12, 2], [13, 8], [14, 11], [15, 13], [16, 13], [17, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getRecords", "code": "    public List getRecords()\n    {\n        return records.getRecords();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isUsing1904DateWindowing", "code": "    public boolean isUsing1904DateWindowing() {\n        return uses1904datewindowing;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCustomPalette", "code": "    public PaletteRecord getCustomPalette()\n    {\n      PaletteRecord palette;\n      int palettePos = records.getPalettepos();\n      if (palettePos != -1) {\n        Record rec = records.get(palettePos);\n        if (rec instanceof PaletteRecord) {\n          palette = (PaletteRecord) rec;\n        } else throw new RuntimeException(\"InternalError: Expected PaletteRecord but got a '\"+rec+\"'\");\n      }\n      else\n      {\n          palette = createPalette();\n          records.add(1, palette);\n          records.setPalettepos(1);\n      }\n      return palette;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [2, 10], [2, 11], [2, 12], [6, 13], [6, 14], [10, 15], [11, 16], [12, 17], [13, 18], [7, 19], [18, 20], [6, 21], [20, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 2], [11, 2], [12, 2], [13, 6], [14, 6], [15, 10], [16, 11], [17, 12], [18, 13], [19, 7], [20, 18], [21, 6], [22, 20], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "createDrawingGroup", "code": "    public void createDrawingGroup()\n    {\n        int dggLoc = findFirstRecordLocBySid(EscherContainerRecord.DGG_CONTAINER);\n        if (dggLoc == -1)\n        {\n            EscherContainerRecord dggContainer = new EscherContainerRecord();\n            EscherDggRecord dgg = new EscherDggRecord();\n            EscherOptRecord opt = new EscherOptRecord();\n            EscherSplitMenuColorsRecord splitMenuColors = new EscherSplitMenuColorsRecord();\n\n            dggContainer.setRecordId((short) 0xF000);\n            dggContainer.setOptions((short) 0x000F);\n            dgg.setRecordId(EscherDggRecord.RECORD_ID);\n            dgg.setOptions((short)0x0000);\n            dgg.setShapeIdMax(1024);\n            dgg.setNumShapesSaved(0);\n            dgg.setDrawingsSaved(0);\n            dgg.setFileIdClusters(new EscherDggRecord.FileIdCluster[] {} );\n            drawingManager = new DrawingManager(dgg);\n            opt.setRecordId((short) 0xF00B);\n            opt.setOptions((short) 0x0033);\n            opt.addEscherProperty( new EscherBoolProperty(EscherProperties.TEXT__SIZE_TEXT_TO_FIT_SHAPE, 524296) );\n            opt.addEscherProperty( new EscherRGBProperty(EscherProperties.FILL__FILLCOLOR, 134217737) );\n            opt.addEscherProperty( new EscherRGBProperty(EscherProperties.LINESTYLE__COLOR, 134217792) );\n            splitMenuColors.setRecordId((short) 0xF11E);\n            splitMenuColors.setOptions((short) 0x0040);\n            splitMenuColors.setColor1(0x0800000D);\n            splitMenuColors.setColor2(0x0800000C);\n            splitMenuColors.setColor3(0x08000017);\n            splitMenuColors.setColor4(0x100000F7);\n\n            dggContainer.addChildRecord(dgg);\n            dggContainer.addChildRecord(opt);\n            dggContainer.addChildRecord(splitMenuColors);\n\n            DrawingGroupRecord drawingGroup = new DrawingGroupRecord();\n            drawingGroup.addEscherRecord(dggContainer);\n            int loc = findFirstRecordLocBySid(CountryRecord.sid);\n            getRecords().add(loc+1, drawingGroup);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [2, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [12, 37], [4, 38], [5, 39], [17, 40], [18, 41], [19, 42], [20, 43], [23, 44], [24, 45], [25, 46], [28, 47], [30, 48], [31, 49], [32, 50], [6, 51], [7, 52], [8, 53], [9, 54], [37, 55], [21, 56], [22, 57], [44, 58], [45, 59], [46, 60], [26, 61], [27, 62], [33, 63], [35, 64], [36, 65], [55, 66], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 2], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 12], [38, 4], [39, 5], [40, 17], [41, 18], [42, 19], [43, 20], [44, 23], [45, 24], [46, 25], [47, 28], [48, 30], [49, 31], [50, 32], [51, 6], [52, 7], [53, 8], [54, 9], [55, 37], [56, 21], [57, 22], [58, 44], [59, 45], [60, 46], [61, 26], [62, 27], [63, 33], [64, 35], [65, 36], [66, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "getDrawingManager", "code": "    public DrawingManager getDrawingManager()\n    {\n        return drawingManager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Workbook", "code": "    public Workbook() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "jedit-4.1-4182", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "gnu/regexp/RETokenBackRef.java", "language": "java", "name": "gnu.regexp.RETokenBackRef", "code": "final class RETokenBackRef extends REToken {\n  private int num;\n  private boolean insens;\n  \n  RETokenBackRef(int subIndex, int num, boolean insens) {\n    super(subIndex);\n    this.num = num;\n    this.insens = insens;\n  }\n\n  // should implement getMinimumLength() -- any ideas?\n\n    boolean match(CharIndexed input, REMatch mymatch) {\n\tint b,e;\n\tb = mymatch.start[num];\n\te = mymatch.end[num];\n\tif ((b==-1)||(e==-1)) return false; // this shouldn't happen, but...\n\tfor (int i=b; i<e; i++) {\n\t    if (input.charAt(mymatch.index+i-b) != input.charAt(i)) {\n\t\treturn false;\n\t    }\n\t}\n\tmymatch.index += e-b;\n\treturn next(input, mymatch);\n    }\n    \n    void dump(StringBuffer os) {\n\tos.append('\\\\').append(num);", "functions": [{"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\tint b,e;\n\tb = mymatch.start[num];\n\te = mymatch.end[num];\n\tif ((b==-1)||(e==-1)) return false; // this shouldn't happen, but...\n\tfor (int i=b; i<e; i++) {\n\t    if (input.charAt(mymatch.index+i-b) != input.charAt(i)) {\n\t\treturn false;\n\t    }\n\t}\n\tmymatch.index += e-b;\n\treturn next(input, mymatch);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [3, 10], [3, 11], [0, 12], [0, 13], [8, 14], [2, 15], [10, 16], [11, 17], [11, 18], [15, 19], [17, 20], [18, 21], [15, 22], [19, 23], [19, 24], [22, 25], [24, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 3], [11, 3], [12, 0], [13, 0], [14, 8], [15, 2], [16, 10], [17, 11], [18, 11], [19, 15], [20, 17], [21, 18], [22, 15], [23, 19], [24, 19], [25, 22], [26, 24], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "dump", "code": "    void dump(StringBuffer os) {\n\tos.append('\\\\').append(num);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RETokenBackRef", "code": "  RETokenBackRef(int subIndex, int num, boolean insens) {\n    super(subIndex);\n    this.num = num;\n    this.insens = insens;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "poi-1.5-5267", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/FooterRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.FooterRecord", "code": "public class FooterRecord\n    extends Record\n{\n    public final static short sid = 0x15;\n    private byte              field_1_footer_len;\n    private String            field_2_footer;\n\n    public FooterRecord()\n    {\n    }\n\n    /**\n     * Constructs a FooterRecord record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x15 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public FooterRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a FooterRecord record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x15 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public FooterRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A FooterRECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        if (size > 0)\n        {\n            field_1_footer_len = data[ 0 + offset ];\n                                            LittleEndian.ubyteToInt( field_1_footer_len );\n        }\n    }\n\n    /**\n     * set the length of the footer string\n     *\n     * @param len  length of the footer string\n     * @see #setFooter(String)\n     */\n\n    public void setFooterLength(byte len)\n    {\n        field_1_footer_len = len;\n    }\n\n    /**\n     * set the footer string\n     *\n     * @param footer string to display\n     * @see #setFooterLength(byte)\n     */\n\n    public void setFooter(String footer)\n    {\n        field_2_footer = footer;\n    }\n\n    /**\n     * get the length of the footer string\n     *\n     * @return length of the footer string\n     * @see #getFooter()\n     */\n\n    public short getFooterLength()\n    {\n    }\n\n    /**\n     * get the footer string\n     *\n     * @return footer string to display\n     * @see #getFooterLength()\n     */\n\n    public String getFooter()\n    {\n        return field_2_footer;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[FOOTER]\\n\");\n        buffer.append(\"    .footerlen      = \")\n            .append(Integer.toHexString(getFooterLength())).append(\"\\n\");\n        buffer.append(\"    .footer         = \").append(getFooter())\n            .append(\"\\n\");\n        buffer.append(\"[/FOOTER]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        int len = 4;\n\n        if (getFooterLength() > 0)\n        {\n        }\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,\n                              ( short ) ((len - 4) + getFooterLength()));\n        if (getFooterLength() > 0)\n        {\n            data[ 4 + offset ] = (byte)getFooterLength();\n        }\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        int retval = 4;\n\n        if (getFooterLength() > 0)\n        {\n        }\n        return retval + getFooterLength();\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A FooterRECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        if (size > 0)\n        {\n            field_1_footer_len = data[ 0 + offset ];\n                                            LittleEndian.ubyteToInt( field_1_footer_len );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [1, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 1], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setFooterLength", "code": "    public void setFooterLength(byte len)\n    {\n        field_1_footer_len = len;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFooter", "code": "    public void setFooter(String footer)\n    {\n        field_2_footer = footer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFooterLength", "code": "    public short getFooterLength()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getFooter", "code": "    public String getFooter()\n    {\n        return field_2_footer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[FOOTER]\\n\");\n        buffer.append(\"    .footerlen      = \")\n            .append(Integer.toHexString(getFooterLength())).append(\"\\n\");\n        buffer.append(\"    .footer         = \").append(getFooter())\n            .append(\"\\n\");\n        buffer.append(\"[/FOOTER]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [5, 10], [5, 11], [6, 12], [6, 13], [6, 14], [7, 15], [2, 16], [10, 17], [11, 18], [13, 19], [14, 20], [20, 21], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 5], [11, 5], [12, 6], [13, 6], [14, 6], [15, 7], [16, 2], [17, 10], [18, 11], [19, 13], [20, 14], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        int len = 4;\n\n        if (getFooterLength() > 0)\n        {\n        }\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,\n                              ( short ) ((len - 4) + getFooterLength()));\n        if (getFooterLength() > 0)\n        {\n            data[ 4 + offset ] = (byte)getFooterLength();\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [0, 10], [3, 11], [8, 12], [8, 13], [9, 14], [10, 15], [11, 16], [11, 17], [4, 18], [2, 19], [9, 20], [14, 21], [15, 22], [20, 23], [20, 24], [19, 25], [24, 26], [19, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 0], [11, 3], [12, 8], [13, 8], [14, 9], [15, 10], [16, 11], [17, 11], [18, 4], [19, 2], [20, 9], [21, 14], [22, 15], [23, 20], [24, 20], [25, 19], [26, 24], [27, 19], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        int retval = 4;\n\n        if (getFooterLength() > 0)\n        {\n        }\n        return retval + getFooterLength();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [5, 7], [5, 8], [3, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 5], [8, 5], [9, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FooterRecord", "code": "    public FooterRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FooterRecord", "code": "    public FooterRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FooterRecord", "code": "    public FooterRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.5-7174", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/functions/Function2Args.java", "language": "java", "name": "org.apache.xpath.functions.Function2Args", "code": "public class Function2Args extends FunctionOneArg\n{\n\n  /** The second argument passed to the function (at index 1).\n   *  @serial  */\n  Expression m_arg1;\n\n  /**\n   * Return the second argument passed to the function (at index 1).\n   *\n   * @return An expression that represents the second argument passed to the \n   *         function.\n   */\n  public Expression getArg1()\n  {\n    return m_arg1;\n  }\n  \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n    if(null != m_arg1)\n      m_arg1.fixupVariables(vars, globalsSize);\n  }\n\n\n  /**\n   * Set an argument expression for a function.  This method is called by the \n   * XPath compiler.\n   *\n   * @param arg non-null expression that represents the argument.\n   * @param argNum The argument number index.\n   *\n   * @throws WrongNumberArgsException If the argNum parameter is greater than 1.\n   */\n  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n\n    if (argNum == 0)\n      super.setArg(arg, argNum);\n    else if (1 == argNum)\n    {\n      m_arg1 = arg;\n      arg.exprSetParent(this);\n    }\n    else\n\t\t  reportWrongNumberArgs();\n  }\n\n  /**\n   * Check that the number of arguments passed to this function is correct. \n   *\n   *\n   * @param argNum The number of arguments that is being passed to the function.\n   *\n   * @throws WrongNumberArgsException\n   */\n  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum != 2)\n      reportWrongNumberArgs();\n  }\n\n  /**\n   * Constructs and throws a WrongNumberArgException with the appropriate\n   * message for this function object.\n   *\n   * @throws WrongNumberArgsException\n   */\n  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n      throw new WrongNumberArgsException(XSLMessages.createXPATHMessage(\"two\", null));\n  }\n  \n  /**\n   * Tell if this expression or it's subexpressions can traverse outside \n   * the current subtree.\n   * \n   * @return true if traversal outside the context node's subtree can occur.\n   */\n   public boolean canTraverseOutsideSubtree()\n   {\n    return super.canTraverseOutsideSubtree() \n    ? true : m_arg1.canTraverseOutsideSubtree();\n   }\n   \n  class Arg1Owner implements ExpressionOwner\n  {\n    /**\n     * @see ExpressionOwner#getExpression()\n     */\n    public Expression getExpression()\n    {\n      return m_arg1;\n    }\n\n\n    /**\n     * @see ExpressionOwner#setExpression(Expression)\n     */\n    public void setExpression(Expression exp)\n    {\n    \texp.exprSetParent(Function2Args.this);\n    \tm_arg1 = exp;\n    }\n  }\n\n   \n  /**\n   * @see XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callArgVisitors(XPathVisitor visitor)\n  {\n  \tsuper.callArgVisitors(visitor);\n  \tif(null != m_arg1)\n  \t\tm_arg1.callVisitors(new Arg1Owner(), visitor);\n  }\n\n  /**\n   * @see Expression#deepEquals(Expression)\n   */\n  public boolean deepEquals(Expression expr)\n  {\n  \tif(!super.deepEquals(expr))\n  \t\treturn false;\n  \t\t\n  \tif(null != m_arg1)\n  \t{\n  \t\tif(null == ((Function2Args)expr).m_arg1)\n  \t\t\treturn false;\n  \t\t\t\n  \t\tif(!m_arg1.deepEquals(((Function2Args)expr).m_arg1))\n  \t\t\treturn false;\n  \t}\n  \telse if(null != ((Function2Args)expr).m_arg1)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "functions": [{"function_name": "getArg1", "code": "  public Expression getArg1()\n  {\n    return m_arg1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n    if(null != m_arg1)\n      m_arg1.fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setArg", "code": "  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n\n    if (argNum == 0)\n      super.setArg(arg, argNum);\n    else if (1 == argNum)\n    {\n      m_arg1 = arg;\n      arg.exprSetParent(this);\n    }\n    else\n\t\t  reportWrongNumberArgs();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [4, 8], [6, 9], [4, 10], [4, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 4], [9, 6], [10, 4], [11, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "checkNumberArgs", "code": "  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum != 2)\n      reportWrongNumberArgs();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "reportWrongNumberArgs", "code": "  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n      throw new WrongNumberArgsException(XSLMessages.createXPATHMessage(\"two\", null));", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "canTraverseOutsideSubtree", "code": "   public boolean canTraverseOutsideSubtree()\n   {\n    return super.canTraverseOutsideSubtree() \n    ? true : m_arg1.canTraverseOutsideSubtree();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "callArgVisitors", "code": "  public void callArgVisitors(XPathVisitor visitor)\n  {\n  \tsuper.callArgVisitors(visitor);\n  \tif(null != m_arg1)\n  \t\tm_arg1.callVisitors(new Arg1Owner(), visitor);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "deepEquals", "code": "  public boolean deepEquals(Expression expr)\n  {\n  \tif(!super.deepEquals(expr))\n  \t\treturn false;\n  \t\t\n  \tif(null != m_arg1)\n  \t{\n  \t\tif(null == ((Function2Args)expr).m_arg1)\n  \t\t\treturn false;\n  \t\t\t\n  \t\tif(!m_arg1.deepEquals(((Function2Args)expr).m_arg1))\n  \t\t\treturn false;\n  \t}\n  \telse if(null != ((Function2Args)expr).m_arg1)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [6, 9], [6, 10], [2, 11], [2, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [11, 18], [12, 19], [12, 20], [17, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 6], [10, 6], [11, 2], [12, 2], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 11], [19, 12], [20, 12], [21, 17], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}], "label": 1}
{"sample_id": "jedit-4.3-4647", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/EvalError.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.EvalError", "code": "public class EvalError extends Exception \n{\n\tSimpleNode node;\n\n\t// Note: no way to mutate the Throwable message, must maintain our own\n\tString message;\n\n\tCallStack callstack;\n\n\tpublic EvalError( String s, SimpleNode node, CallStack callstack ) {\n\t\tsetMessage(s);\n\t\tthis.node = node;\n\t\t// freeze the callstack for the stack trace.\n\t\tif ( callstack != null )\n\t\t\tthis.callstack = callstack.copy();\n\t}\n\n\t/**\n\t\tPrint the error with line number and stack trace.\n\t*/\n\tpublic String toString() \n\t{\n\t\tString trace;\n\t\tif ( node != null )\n\t\t\ttrace = \" : at Line: \"+ node.getLineNumber() \n\t\t\t\t+ \" : in file: \"+ node.getSourceFile()\n\t\t\t\t+ \" : \"+node.getText();\n\t\telse\n\t\t\t// Users should not normally see this.\n\t\t\ttrace = \": <at unknown location>\";\n\n\t\tif ( callstack != null )\n\t\t\ttrace = trace +\"\\n\" + getScriptStackTrace();\n\n\t\treturn getMessage() + trace;\n\t}\n\n\t/**\n\t\tRe-throw the error, prepending the specified message.\n\t*/\n\tpublic void reThrow( String msg ) \n\t\tthrows EvalError \n\t{\n\t\tprependMessage( msg );\n\t\tthrow this;\n\t}\n\n\t/**\n\t\tThe error has trace info associated with it. \n\t\ti.e. It has an AST node that can print its location and source text.\n\t*/\n\tSimpleNode getNode() {\n\t\treturn node;\n\t}\n\n\tvoid setNode( SimpleNode node ) {\n\t\tthis.node = node;\n\t}\n\n\tpublic String getErrorText() { \n\t\tif ( node != null )\n\t\t\treturn node.getText() ;\n\t\telse\n\t\t\treturn \"<unknown error>\";\n\t}\n\n\tpublic int getErrorLineNumber() { \n\t\tif ( node != null )\n\t\t\treturn node.getLineNumber() ;\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tpublic String getErrorSourceFile() {\n\t\tif ( node != null )\n\t\t\treturn node.getSourceFile() ;\n\t\telse\n\t\t\treturn \"<unknown file>\";\n\t}\n\n\tpublic String getScriptStackTrace() \n\t{\n\t\tif ( callstack == null )\n\t\t\treturn \"<Unknown>\";\n\n\t\tString trace = \"\";\n\t\tCallStack stack = callstack.copy();\n\t\twhile ( stack.depth() > 0 ) \n\t\t{\n\t\t\tNameSpace ns = stack.pop();\n\t\t\tSimpleNode node = ns.getNode();\n\t\t\tif ( ns.isMethod )\n\t\t\t{\n\t\t\t\ttrace = trace + \"\\nCalled from method: \" + ns.getName();\n\t\t\t\tif ( node != null )\n\t\t\t\t\ttrace += \" : at Line: \"+ node.getLineNumber() \n\t\t\t\t\t\t+ \" : in file: \"+ node.getSourceFile()\n\t\t\t\t\t\t+ \" : \"+node.getText();\n\t\t\t}\n\t\t}\n\n\t\treturn trace;\n\t}\n\n\t/**\n\t\t@see #toString() for a full display of the information\n\t*/\n\tpublic String getMessage() { return message; }\n\n\tpublic void setMessage( String s ) { message = s; }\n\n\t/**\n\t\tPrepend the message if it is non-null.\n\t*/\n\tprotected void prependMessage( String s ) \n\t{ \n\t\tif ( s == null )\n\t\t\treturn;\n\n\t\tif ( message == null )\n\t\t\tmessage = s;\n\t\telse\n\t\t\tmessage = s + \" : \"+ message;", "functions": [{"function_name": "toString", "code": "\tpublic String toString() \n\t{\n\t\tString trace;\n\t\tif ( node != null )\n\t\t\ttrace = \" : at Line: \"+ node.getLineNumber() \n\t\t\t\t+ \" : in file: \"+ node.getSourceFile()\n\t\t\t\t+ \" : \"+node.getText();\n\t\telse\n\t\t\t// Users should not normally see this.\n\t\t\ttrace = \": <at unknown location>\";\n\n\t\tif ( callstack != null )\n\t\t\ttrace = trace +\"\\n\" + getScriptStackTrace();\n\n\t\treturn getMessage() + trace;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [5, 8], [2, 9], [6, 10], [3, 11], [3, 12], [7, 13], [9, 14], [11, 15], [12, 16], [14, 17], [14, 18], [16, 19], [16, 20], [18, 21], [20, 22], [20, 23], [23, 24], [23, 25], [25, 26], [25, 27], [27, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 5], [9, 2], [10, 6], [11, 3], [12, 3], [13, 7], [14, 9], [15, 11], [16, 12], [17, 14], [18, 14], [19, 16], [20, 16], [21, 18], [22, 20], [23, 20], [24, 23], [25, 23], [26, 25], [27, 25], [28, 27], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "reThrow", "code": "\tpublic void reThrow( String msg ) \n\t\tthrows EvalError \n\t{\n\t\tprependMessage( msg );\n\t\tthrow this;", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNode", "code": "\tSimpleNode getNode() {\n\t\treturn node;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNode", "code": "\tvoid setNode( SimpleNode node ) {\n\t\tthis.node = node;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorText", "code": "\tpublic String getErrorText() { \n\t\tif ( node != null )\n\t\t\treturn node.getText() ;\n\t\telse\n\t\t\treturn \"<unknown error>\";", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getErrorLineNumber", "code": "\tpublic int getErrorLineNumber() { \n\t\tif ( node != null )\n\t\t\treturn node.getLineNumber() ;\n\t\telse\n\t\t\treturn -1;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getErrorSourceFile", "code": "\tpublic String getErrorSourceFile() {\n\t\tif ( node != null )\n\t\t\treturn node.getSourceFile() ;\n\t\telse\n\t\t\treturn \"<unknown file>\";", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getScriptStackTrace", "code": "\tpublic String getScriptStackTrace() \n\t{\n\t\tif ( callstack == null )\n\t\t\treturn \"<Unknown>\";\n\n\t\tString trace = \"\";\n\t\tCallStack stack = callstack.copy();\n\t\twhile ( stack.depth() > 0 ) \n\t\t{\n\t\t\tNameSpace ns = stack.pop();\n\t\t\tSimpleNode node = ns.getNode();\n\t\t\tif ( ns.isMethod )\n\t\t\t{\n\t\t\t\ttrace = trace + \"\\nCalled from method: \" + ns.getName();\n\t\t\t\tif ( node != null )\n\t\t\t\t\ttrace += \" : at Line: \"+ node.getLineNumber() \n\t\t\t\t\t\t+ \" : in file: \"+ node.getSourceFile()\n\t\t\t\t\t\t+ \" : \"+node.getText();\n\t\t\t}\n\t\t}\n\n\t\treturn trace;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [5, 7], [5, 8], [2, 9], [2, 10], [2, 11], [6, 12], [6, 13], [3, 14], [4, 15], [7, 16], [8, 17], [9, 18], [10, 19], [11, 20], [18, 21], [9, 22], [18, 23], [21, 24], [22, 25], [23, 26], [25, 27], [25, 28], [26, 29], [26, 30], [28, 31], [30, 32], [30, 33], [33, 34], [33, 35], [35, 36], [35, 37], [37, 38], [37, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 5], [8, 5], [9, 2], [10, 2], [11, 2], [12, 6], [13, 6], [14, 3], [15, 4], [16, 7], [17, 8], [18, 9], [19, 10], [20, 11], [21, 18], [22, 9], [23, 18], [24, 21], [25, 22], [26, 23], [27, 25], [28, 25], [29, 26], [30, 26], [31, 28], [32, 30], [33, 30], [34, 33], [35, 33], [36, 35], [37, 35], [38, 37], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getMessage", "code": "\tpublic String getMessage() { return message; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessage", "code": "\tpublic void setMessage( String s ) { message = s; }", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "prependMessage", "code": "\tprotected void prependMessage( String s ) \n\t{ \n\t\tif ( s == null )\n\t\t\treturn;\n\n\t\tif ( message == null )\n\t\t\tmessage = s;\n\t\telse\n\t\t\tmessage = s + \" : \"+ message;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [4, 9], [6, 10], [7, 11], [11, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 4], [10, 6], [11, 7], [12, 11], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "EvalError", "code": "\tpublic EvalError( String s, SimpleNode node, CallStack callstack ) {\n\t\tsetMessage(s);\n\t\tthis.node = node;\n\t\t// freeze the callstack for the stack trace.\n\t\tif ( callstack != null )\n\t\t\tthis.callstack = callstack.copy();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [1, 8], [5, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 1], [9, 5], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "ant-1.5-411", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/Checksum.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Checksum", "code": "public class Checksum extends MatchingTask implements Condition {\n    /**\n     * File for which checksum is to be calculated.\n     */\n    private File file = null;\n    /**\n     * MessageDigest algorithm to be used.\n     */\n    private String algorithm = \"MD5\";\n    /**\n     * MessageDigest Algorithm provider\n     */\n    private String provider = null;\n    /**\n     * File Extension that is be to used to create or identify\n     * destination file\n     */\n    private String fileext;\n    /**\n     * Holds generated checksum and gets set as a Project Property.\n     */\n    private String property;\n    /**\n     * Whether or not to create a new file.\n     * Defaults to <code>false</code>.\n     */\n    private boolean forceOverwrite;\n    /**\n     * Contains the result of a checksum verification. (\"true\" or \"false\")\n     */\n    private String verifyProperty;\n    /**\n     * Vector to hold source file sets.\n     */\n    private Vector filesets = new Vector();\n    /**\n     * Stores SourceFile, DestFile pairs and SourceFile, Property String pairs.\n     */\n    private Hashtable includeFileMap = new Hashtable();\n    /**\n     * Message Digest instance\n     */\n    private MessageDigest messageDigest;\n    /**\n     * is this task being used as a nested condition element?\n     */\n    private boolean isCondition;\n    /**\n     * Size of the read buffer to use.\n     */\n    private int readBufferSize = 8 * 1024;\n\n    /**\n     * Sets the file for which the checksum is to be calculated.\n     */\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    /**\n     * Specifies the algorithm to be used to compute the checksum.\n     * Defaults to \"MD5\". Other popular algorithms like \"SHA\" may be used as well.\n     */\n    public void setAlgorithm(String algorithm) {\n        this.algorithm = algorithm;\n    }\n\n    /**\n     * Sets the MessageDigest algorithm provider to be used\n     * to calculate the checksum.\n     */\n    public void setProvider(String provider) {\n        this.provider = provider;\n    }\n\n    /**\n     * Sets the file extension that is be to used to\n     * create or identify destination file.\n     */\n    public void setFileext(String fileext) {\n        this.fileext = fileext;\n    }\n\n    /**\n     * Sets the property to hold the generated checksum.\n     */\n    public void setProperty(String property) {\n        this.property = property;\n    }\n\n    /**\n     * Sets the verify property.  This project property holds\n     * the result of a checksum verification - \"true\" or \"false\"\n     */\n    public void setVerifyproperty(String verifyProperty) {\n        this.verifyProperty = verifyProperty;\n    }\n\n    /**\n     * Whether or not to overwrite existing file irrespective of \n     * whether it is newer than\n     * the source file.  Defaults to false.\n     */\n    public void setForceOverwrite(boolean forceOverwrite) {\n        this.forceOverwrite = forceOverwrite;\n    }\n\n    /**\n     * The size of the read buffer to use.\n     */\n    public void setReadBufferSize(int size) {\n        this.readBufferSize = size;\n    }\n\n    /**\n     * Files to generate checksums for.\n     */\n    public void addFileset(FileSet set) {\n        filesets.addElement(set);\n    }\n\n    /**\n     * Calculate the checksum(s).\n     */\n    public void execute() throws BuildException {\n        isCondition = false;\n        boolean value = validateAndExecute();\n        if (verifyProperty != null) {\n            project.setNewProperty(verifyProperty,\n                                new Boolean(value).toString());\n        }\n    }\n\n    /**\n     * Calculate the checksum(s)\n     *\n     * @return Returns true if the checksum verification test passed,\n     * false otherwise.\n     */\n    public boolean eval() throws BuildException {\n        isCondition = true;\n        return validateAndExecute();\n    }\n\n    /**\n     * Validate attributes and get down to business.\n     */\n    private boolean validateAndExecute() throws BuildException {\n        String savedFileExt = fileext;\n\n        if (file == null && filesets.size() == 0) {\n            throw new BuildException(\n                \"Specify at least one source - a file or a fileset.\");\n        }\n\n        if (file != null && file.exists() && file.isDirectory()) {\n            throw new BuildException(\n                \"Checksum cannot be generated for directories\");\n        }\n\n        if (property != null && fileext != null) {\n            throw new BuildException(\n                \"Property and FileExt cannot co-exist.\");\n        }\n\n        if (property != null) {\n            if (forceOverwrite) {\n                throw new BuildException(\n                    \"ForceOverwrite cannot be used when Property is specified\");\n            }\n\n            if (file != null) {\n                if (filesets.size() > 0) {\n                    throw new BuildException(\"Multiple files cannot be used \" \n                        + \"when Property is specified\");\n                }\n            } else {\n                if (filesets.size() > 1) {\n                    throw new BuildException(\"Multiple files cannot be used \" \n                        + \"when Property is specified\");\n                }\n            }\n        }\n\n        if (verifyProperty != null) {\n            isCondition = true;\n        }\n\n        if (verifyProperty != null && forceOverwrite) {\n            throw new BuildException(\n                \"VerifyProperty and ForceOverwrite cannot co-exist.\");\n        }\n\n        if (isCondition && forceOverwrite) {\n            throw new BuildException(\"ForceOverwrite cannot be used when \" \n                + \"conditions are being used.\");\n        }\n\n        messageDigest = null;\n        if (provider != null) {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm, provider);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo, location);\n            } catch (NoSuchProviderException noprovider) {\n                throw new BuildException(noprovider, location);\n            }\n        } else {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo, location);\n            }\n        }\n\n        if (messageDigest == null) {\n            throw new BuildException(\"Unable to create Message Digest\",\n                location);\n        }\n\n        if (fileext == null) {\n            fileext = \".\" + algorithm;\n        } else if (fileext.trim().length() == 0) {\n            throw new BuildException(\n                \"File extension when specified must not be an empty string\");\n        }\n\n        try {\n            addToIncludeFileMap(file);\n            \n            int sizeofFileSet = filesets.size();\n            for (int i = 0; i < sizeofFileSet; i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                DirectoryScanner ds = fs.getDirectoryScanner(project);\n                String[] srcFiles = ds.getIncludedFiles();\n                for (int j = 0; j < srcFiles.length; j++) {\n                    File src = new File(fs.getDir(project), srcFiles[j]);\n                    addToIncludeFileMap(src);\n                }\n            }\n\n            return generateChecksums();\n        } finally {\n            fileext = savedFileExt;\n            includeFileMap.clear();\n        }\n    }\n\n    /**\n     * Add key-value pair to the hashtable upon which\n     * to later operate upon.\n     */\n    private void addToIncludeFileMap(File file) throws BuildException {\n        if (file != null) {\n            if (file.exists()) {\n                if (property == null) {\n                    File dest \n                        = new File(file.getParent(), file.getName() + fileext);\n                    if (forceOverwrite || isCondition ||\n                        (file.lastModified() > dest.lastModified())) {\n                        includeFileMap.put(file, dest);\n                    } else {\n                        log(file + \" omitted as \" + dest + \" is up to date.\",\n                            Project.MSG_VERBOSE);\n                    }\n                } else {\n                    includeFileMap.put(file, property);\n                }\n            } else {\n                String message = \"Could not find file \"\n                                 + file.getAbsolutePath()\n                                 + \" to generate checksum for.\";\n                log(message);\n                throw new BuildException(message, location);\n            }\n        }\n    }\n\n    /**\n     * Generate checksum(s) using the message digest created earlier.\n     */\n    private boolean generateChecksums() throws BuildException {\n        boolean checksumMatches = true;\n        FileInputStream fis = null;\n        FileOutputStream fos = null;\n        byte[] buf = new byte[readBufferSize];\n        try {\n            for (Enumeration e = includeFileMap.keys(); e.hasMoreElements();) {\n                messageDigest.reset();\n                File src = (File) e.nextElement();\n                if (!isCondition) {\n                    log(\"Calculating \" + algorithm + \" checksum for \" + src);\n                }\n                fis = new FileInputStream(src);\n                DigestInputStream dis = new DigestInputStream(fis,\n                                                              messageDigest);\n                while (dis.read(buf, 0, readBufferSize) != -1) {\n                    ;\n                }\n                dis.close();\n                fis.close();\n                fis = null;\n                byte[] fileDigest = messageDigest.digest ();\n                StringBuffer checksumSb = new StringBuffer();\n                for (int i = 0; i < fileDigest.length; i++) {\n                    String hexStr = Integer.toHexString(0x00ff & fileDigest[i]);\n                    if (hexStr.length() < 2) {\n                        checksumSb.append(\"0\");\n                    }\n                    checksumSb.append(hexStr);\n                }\n                String checksum = checksumSb.toString();\n                Object destination = includeFileMap.get(src);\n                if (destination instanceof java.lang.String) {\n                    String prop = (String) destination;\n                    if (isCondition) {\n                        checksumMatches = checksumMatches &&\n                            checksum.equals(property);\n                    } else {\n                        project.setNewProperty(prop, checksum);\n                    }\n                } else if (destination instanceof java.io.File) {\n                    if (isCondition) {\n                        File existingFile = (File) destination;\n                        if (existingFile.exists()) {\n                            fis = new FileInputStream(existingFile);\n                            InputStreamReader isr = new InputStreamReader(fis);\n                            BufferedReader br = new BufferedReader(isr);\n                            String suppliedChecksum = br.readLine();\n                            fis.close();\n                            fis = null;\n                            br.close();\n                            isr.close();\n                            checksumMatches = checksumMatches &&\n                                checksum.equals(suppliedChecksum);\n                        } else {\n                            checksumMatches = false;\n                        }\n                    } else {\n                        File dest = (File) destination;\n                        fos = new FileOutputStream(dest);\n                        fos.write(checksum.getBytes());\n                        fos.close();\n                        fos = null;\n                    }\n                }\n            }\n        } catch (Exception e) {\n            throw new BuildException(e, location);\n        } finally {\n            if (fis != null) {\n                try {\n                    fis.close();\n                } catch (IOException e) {}\n            }\n            if (fos != null) {\n                try {\n                    fos.close();\n                } catch (IOException e) {}\n            }\n        }\n        return checksumMatches;", "functions": [{"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAlgorithm", "code": "    public void setAlgorithm(String algorithm) {\n        this.algorithm = algorithm;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProvider", "code": "    public void setProvider(String provider) {\n        this.provider = provider;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFileext", "code": "    public void setFileext(String fileext) {\n        this.fileext = fileext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperty", "code": "    public void setProperty(String property) {\n        this.property = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVerifyproperty", "code": "    public void setVerifyproperty(String verifyProperty) {\n        this.verifyProperty = verifyProperty;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setForceOverwrite", "code": "    public void setForceOverwrite(boolean forceOverwrite) {\n        this.forceOverwrite = forceOverwrite;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setReadBufferSize", "code": "    public void setReadBufferSize(int size) {\n        this.readBufferSize = size;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        isCondition = false;\n        boolean value = validateAndExecute();\n        if (verifyProperty != null) {\n            project.setNewProperty(verifyProperty,\n                                new Boolean(value).toString());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [2, 6], [4, 7], [1, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 2], [7, 4], [8, 1], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "eval", "code": "    public boolean eval() throws BuildException {\n        isCondition = true;\n        return validateAndExecute();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "validateAndExecute", "code": "    private boolean validateAndExecute() throws BuildException {\n        String savedFileExt = fileext;\n\n        if (file == null && filesets.size() == 0) {\n            throw new BuildException(\n                \"Specify at least one source - a file or a fileset.\");\n        }\n\n        if (file != null && file.exists() && file.isDirectory()) {\n            throw new BuildException(\n                \"Checksum cannot be generated for directories\");\n        }\n\n        if (property != null && fileext != null) {\n            throw new BuildException(\n                \"Property and FileExt cannot co-exist.\");\n        }\n\n        if (property != null) {\n            if (forceOverwrite) {\n                throw new BuildException(\n                    \"ForceOverwrite cannot be used when Property is specified\");\n            }\n\n            if (file != null) {\n                if (filesets.size() > 0) {\n                    throw new BuildException(\"Multiple files cannot be used \" \n                        + \"when Property is specified\");\n                }\n            } else {\n                if (filesets.size() > 1) {\n                    throw new BuildException(\"Multiple files cannot be used \" \n                        + \"when Property is specified\");\n                }\n            }\n        }\n\n        if (verifyProperty != null) {\n            isCondition = true;\n        }\n\n        if (verifyProperty != null && forceOverwrite) {\n            throw new BuildException(\n                \"VerifyProperty and ForceOverwrite cannot co-exist.\");\n        }\n\n        if (isCondition && forceOverwrite) {\n            throw new BuildException(\"ForceOverwrite cannot be used when \" \n                + \"conditions are being used.\");\n        }\n\n        messageDigest = null;\n        if (provider != null) {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm, provider);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo, location);\n            } catch (NoSuchProviderException noprovider) {\n                throw new BuildException(noprovider, location);\n            }\n        } else {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo, location);\n            }\n        }\n\n        if (messageDigest == null) {\n            throw new BuildException(\"Unable to create Message Digest\",\n                location);\n        }\n\n        if (fileext == null) {\n            fileext = \".\" + algorithm;\n        } else if (fileext.trim().length() == 0) {\n            throw new BuildException(\n                \"File extension when specified must not be an empty string\");\n        }\n\n        try {\n            addToIncludeFileMap(file);\n            \n            int sizeofFileSet = filesets.size();\n            for (int i = 0; i < sizeofFileSet; i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                DirectoryScanner ds = fs.getDirectoryScanner(project);\n                String[] srcFiles = ds.getIncludedFiles();\n                for (int j = 0; j < srcFiles.length; j++) {\n                    File src = new File(fs.getDir(project), srcFiles[j]);\n                    addToIncludeFileMap(src);\n                }\n            }\n\n            return generateChecksums();\n        } finally {\n            fileext = savedFileExt;\n            includeFileMap.clear();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "TRY", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CATCH", "CATCH", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [1, 14], [1, 15], [2, 16], [2, 17], [3, 18], [4, 19], [0, 20], [5, 21], [6, 22], [7, 23], [8, 24], [9, 25], [10, 26], [11, 27], [1, 28], [1, 29], [13, 30], [14, 31], [1, 32], [16, 33], [17, 34], [3, 35], [18, 36], [4, 37], [4, 38], [19, 39], [20, 40], [5, 41], [6, 42], [22, 43], [23, 44], [8, 45], [8, 46], [24, 47], [9, 48], [25, 49], [25, 50], [10, 51], [26, 52], [26, 53], [11, 54], [27, 55], [27, 56], [14, 57], [14, 58], [14, 59], [14, 60], [15, 61], [16, 62], [33, 63], [33, 64], [2, 65], [35, 66], [37, 67], [38, 68], [38, 69], [41, 70], [42, 71], [43, 72], [7, 73], [45, 74], [48, 75], [49, 76], [50, 77], [51, 78], [53, 79], [53, 80], [54, 81], [55, 82], [55, 83], [56, 84], [57, 85], [14, 86], [62, 87], [64, 88], [65, 89], [66, 90], [67, 91], [37, 92], [68, 93], [69, 94], [38, 95], [70, 96], [71, 97], [73, 98], [45, 99], [45, 100], [74, 101], [46, 102], [75, 103], [78, 104], [80, 105], [81, 106], [57, 107], [58, 108], [59, 109], [87, 110], [89, 111], [91, 112], [92, 113], [93, 114], [94, 115], [95, 116], [96, 117], [96, 118], [99, 119], [100, 120], [102, 121], [57, 122], [57, 123], [60, 124], [99, 125], [119, 126], [119, 127], [100, 128], [120, 129], [120, 130], [121, 131], [107, 132], [125, 133], [128, 134], [132, 135], [133, 136], [134, 137], [136, 138], [136, 139], [137, 140], [137, 141], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 1], [15, 1], [16, 2], [17, 2], [18, 3], [19, 4], [20, 0], [21, 5], [22, 6], [23, 7], [24, 8], [25, 9], [26, 10], [27, 11], [28, 1], [29, 1], [30, 13], [31, 14], [32, 1], [33, 16], [34, 17], [35, 3], [36, 18], [37, 4], [38, 4], [39, 19], [40, 20], [41, 5], [42, 6], [43, 22], [44, 23], [45, 8], [46, 8], [47, 24], [48, 9], [49, 25], [50, 25], [51, 10], [52, 26], [53, 26], [54, 11], [55, 27], [56, 27], [57, 14], [58, 14], [59, 14], [60, 14], [61, 15], [62, 16], [63, 33], [64, 33], [65, 2], [66, 35], [67, 37], [68, 38], [69, 38], [70, 41], [71, 42], [72, 43], [73, 7], [74, 45], [75, 48], [76, 49], [77, 50], [78, 51], [79, 53], [80, 53], [81, 54], [82, 55], [83, 55], [84, 56], [85, 57], [86, 14], [87, 62], [88, 64], [89, 65], [90, 66], [91, 67], [92, 37], [93, 68], [94, 69], [95, 38], [96, 70], [97, 71], [98, 73], [99, 45], [100, 45], [101, 74], [102, 46], [103, 75], [104, 78], [105, 80], [106, 81], [107, 57], [108, 58], [109, 59], [110, 87], [111, 89], [112, 91], [113, 92], [114, 93], [115, 94], [116, 95], [117, 96], [118, 96], [119, 99], [120, 100], [121, 102], [122, 57], [123, 57], [124, 60], [125, 99], [126, 119], [127, 119], [128, 100], [129, 120], [130, 120], [131, 121], [132, 107], [133, 125], [134, 128], [135, 132], [136, 133], [137, 134], [138, 136], [139, 136], [140, 137], [141, 137], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141]]}, {"function_name": "addToIncludeFileMap", "code": "    private void addToIncludeFileMap(File file) throws BuildException {\n        if (file != null) {\n            if (file.exists()) {\n                if (property == null) {\n                    File dest \n                        = new File(file.getParent(), file.getName() + fileext);\n                    if (forceOverwrite || isCondition ||\n                        (file.lastModified() > dest.lastModified())) {\n                        includeFileMap.put(file, dest);\n                    } else {\n                        log(file + \" omitted as \" + dest + \" is up to date.\",\n                            Project.MSG_VERBOSE);\n                    }\n                } else {\n                    includeFileMap.put(file, property);\n                }\n            } else {\n                String message = \"Could not find file \"\n                                 + file.getAbsolutePath()\n                                 + \" to generate checksum for.\";\n                log(message);\n                throw new BuildException(message, location);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [4, 8], [4, 9], [7, 10], [4, 11], [9, 12], [8, 13], [9, 14], [9, 15], [12, 16], [13, 17], [13, 18], [9, 19], [14, 20], [18, 21], [18, 22], [20, 23], [20, 24], [15, 25], [14, 26], [14, 27], [23, 28], [23, 29], [25, 30], [25, 31], [26, 32], [30, 33], [32, 34], [32, 35], [35, 36], [36, 37], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 4], [9, 4], [10, 7], [11, 4], [12, 9], [13, 8], [14, 9], [15, 9], [16, 12], [17, 13], [18, 13], [19, 9], [20, 14], [21, 18], [22, 18], [23, 20], [24, 20], [25, 15], [26, 14], [27, 14], [28, 23], [29, 23], [30, 25], [31, 25], [32, 26], [33, 30], [34, 32], [35, 32], [36, 35], [37, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "generateChecksums", "code": "    private boolean generateChecksums() throws BuildException {\n        boolean checksumMatches = true;\n        FileInputStream fis = null;\n        FileOutputStream fos = null;\n        byte[] buf = new byte[readBufferSize];\n        try {\n            for (Enumeration e = includeFileMap.keys(); e.hasMoreElements();) {\n                messageDigest.reset();\n                File src = (File) e.nextElement();\n                if (!isCondition) {\n                    log(\"Calculating \" + algorithm + \" checksum for \" + src);\n                }\n                fis = new FileInputStream(src);\n                DigestInputStream dis = new DigestInputStream(fis,\n                                                              messageDigest);\n                while (dis.read(buf, 0, readBufferSize) != -1) {\n                    ;\n                }\n                dis.close();\n                fis.close();\n                fis = null;\n                byte[] fileDigest = messageDigest.digest ();\n                StringBuffer checksumSb = new StringBuffer();\n                for (int i = 0; i < fileDigest.length; i++) {\n                    String hexStr = Integer.toHexString(0x00ff & fileDigest[i]);\n                    if (hexStr.length() < 2) {\n                        checksumSb.append(\"0\");\n                    }\n                    checksumSb.append(hexStr);\n                }\n                String checksum = checksumSb.toString();\n                Object destination = includeFileMap.get(src);\n                if (destination instanceof java.lang.String) {\n                    String prop = (String) destination;\n                    if (isCondition) {\n                        checksumMatches = checksumMatches &&\n                            checksum.equals(property);\n                    } else {\n                        project.setNewProperty(prop, checksum);\n                    }\n                } else if (destination instanceof java.io.File) {\n                    if (isCondition) {\n                        File existingFile = (File) destination;\n                        if (existingFile.exists()) {\n                            fis = new FileInputStream(existingFile);\n                            InputStreamReader isr = new InputStreamReader(fis);\n                            BufferedReader br = new BufferedReader(isr);\n                            String suppliedChecksum = br.readLine();\n                            fis.close();\n                            fis = null;\n                            br.close();\n                            isr.close();\n                            checksumMatches = checksumMatches &&\n                                checksum.equals(suppliedChecksum);\n                        } else {\n                            checksumMatches = false;\n                        }\n                    } else {\n                        File dest = (File) destination;\n                        fos = new FileOutputStream(dest);\n                        fos.write(checksum.getBytes());\n                        fos.close();\n                        fos = null;\n                    }\n                }\n            }\n        } catch (Exception e) {\n            throw new BuildException(e, location);\n        } finally {\n            if (fis != null) {\n                try {\n                    fis.close();\n                } catch (IOException e) {}\n            }\n            if (fos != null) {\n                try {\n                    fos.close();\n                } catch (IOException e) {}\n            }\n        }\n        return checksumMatches;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "CATCH", "LOOP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CATCH", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [8, 12], [9, 13], [10, 14], [4, 15], [5, 16], [6, 17], [7, 18], [11, 19], [8, 20], [12, 21], [13, 22], [10, 23], [10, 24], [10, 25], [10, 26], [10, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [18, 33], [20, 34], [23, 35], [23, 36], [26, 37], [10, 38], [10, 39], [10, 40], [29, 41], [10, 42], [10, 43], [10, 44], [18, 45], [20, 46], [35, 47], [23, 48], [23, 49], [24, 50], [25, 51], [26, 52], [26, 53], [27, 54], [28, 55], [38, 56], [41, 57], [41, 58], [30, 59], [42, 60], [35, 61], [26, 62], [52, 63], [26, 64], [58, 65], [31, 66], [32, 67], [63, 68], [63, 69], [53, 70], [66, 71], [61, 72], [61, 73], [61, 74], [48, 75], [48, 76], [52, 77], [70, 78], [71, 79], [61, 80], [61, 81], [61, 82], [61, 83], [73, 84], [76, 85], [77, 86], [78, 87], [79, 88], [79, 89], [80, 90], [82, 91], [83, 92], [73, 93], [73, 94], [73, 95], [85, 96], [89, 97], [73, 98], [73, 99], [73, 100], [73, 101], [73, 102], [73, 103], [73, 104], [98, 105], [99, 106], [102, 107], [93, 108], [94, 109], [95, 110], [104, 111], [106, 112], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 8], [13, 9], [14, 10], [15, 4], [16, 5], [17, 6], [18, 7], [19, 11], [20, 8], [21, 12], [22, 13], [23, 10], [24, 10], [25, 10], [26, 10], [27, 10], [28, 10], [29, 10], [30, 10], [31, 10], [32, 10], [33, 18], [34, 20], [35, 23], [36, 23], [37, 26], [38, 10], [39, 10], [40, 10], [41, 29], [42, 10], [43, 10], [44, 10], [45, 18], [46, 20], [47, 35], [48, 23], [49, 23], [50, 24], [51, 25], [52, 26], [53, 26], [54, 27], [55, 28], [56, 38], [57, 41], [58, 41], [59, 30], [60, 42], [61, 35], [62, 26], [63, 52], [64, 26], [65, 58], [66, 31], [67, 32], [68, 63], [69, 63], [70, 53], [71, 66], [72, 61], [73, 61], [74, 61], [75, 48], [76, 48], [77, 52], [78, 70], [79, 71], [80, 61], [81, 61], [82, 61], [83, 61], [84, 73], [85, 76], [86, 77], [87, 78], [88, 79], [89, 79], [90, 80], [91, 82], [92, 83], [93, 73], [94, 73], [95, 73], [96, 85], [97, 89], [98, 73], [99, 73], [100, 73], [101, 73], [102, 73], [103, 73], [104, 73], [105, 98], [106, 99], [107, 102], [108, 93], [109, 94], [110, 95], [111, 104], [112, 106], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112]]}], "label": 0}
{"sample_id": "poi-3.0-6126", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/usermodel/DummyGraphics2d.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.DummyGraphics2d", "code": "public class DummyGraphics2d\n        extends Graphics2D\n{\n    BufferedImage img;\n    private Graphics2D g2D;\n\n    public DummyGraphics2d()\n    {\n        img = new BufferedImage(1000, 1000, 2);\n        g2D = (Graphics2D)img.getGraphics();\n    }\n\n    public void addRenderingHints(Map hints)\n    {\n        System.out.println( \"addRenderingHinds(Map):\" );\n        System.out.println( \"  hints = \" + hints );\n        g2D.addRenderingHints( hints );\n    }\n\n    public void clip(Shape s)\n    {\n        System.out.println( \"clip(Shape):\" );\n        System.out.println( \"  s = \" + s );\n        g2D.clip( s );\n    }\n\n    public void draw(Shape s)\n    {\n        System.out.println( \"draw(Shape):\" );\n        System.out.println( \"s = \" + s );\n        g2D.draw( s );\n    }\n\n    public void drawGlyphVector(GlyphVector g, float x, float y)\n    {\n        System.out.println( \"drawGlyphVector(GlyphVector, float, float):\" );\n        System.out.println( \"g = \" + g );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawGlyphVector( g, x, y );\n    }\n\n    public void drawImage(BufferedImage img,\n\t\t\t\t   BufferedImageOp op,\n\t\t\t\t   int x,\n\t\t\t\t   int y)\n    {\n        System.out.println( \"drawImage(BufferedImage, BufferedImageOp, x, y):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"op = \" + op );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawImage( img, op, x, y );\n    }\n\n    public boolean drawImage(Image img,\n                                      AffineTransform xform,\n                                      ImageObserver obs)\n    {\n        System.out.println( \"drawImage(Image,AfflineTransform,ImageObserver):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"xform = \" + xform );\n        System.out.println( \"obs = \" + obs );\n        return g2D.drawImage( img, xform, obs );\n    }\n\n    public void drawRenderableImage(RenderableImage img,\n                                             AffineTransform xform)\n    {\n        System.out.println( \"drawRenderableImage(RenderableImage, AfflineTransform):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"xform = \" + xform );\n        g2D.drawRenderableImage( img, xform );\n    }\n\n    public void drawRenderedImage(RenderedImage img,\n                                           AffineTransform xform)\n    {\n        System.out.println( \"drawRenderedImage(RenderedImage, AffineTransform):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"xform = \" + xform );\n        g2D.drawRenderedImage( img, xform );\n    }\n\n    public void drawString(AttributedCharacterIterator iterator,\n                                    float x, float y)\n    {\n        System.out.println( \"drawString(AttributedCharacterIterator):\" );\n        System.out.println( \"iterator = \" + iterator );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawString( iterator, x, y );\n    }\n\n\n    public void drawString(String s, float x, float y)\n    {\n        System.out.println( \"drawString(s,x,y):\" );\n        System.out.println( \"s = \" + s );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawString( s, x, y );\n    }\n\n\n    public void fill(Shape s)\n    {\n        System.out.println( \"fill(Shape):\" );\n        System.out.println( \"s = \" + s );\n        g2D.fill( s );\n    }\n\n\n    public Color getBackground()\n    {\n        System.out.println( \"getBackground():\" );\n        return g2D.getBackground();\n    }\n\n    public Composite getComposite()\n    {\n        System.out.println( \"getComposite():\" );\n        return g2D.getComposite();\n    }\n\n    public GraphicsConfiguration getDeviceConfiguration()\n    {\n        System.out.println( \"getDeviceConfiguration():\" );\n        return g2D.getDeviceConfiguration();\n    }\n\n    public FontRenderContext getFontRenderContext()\n    {\n        System.out.println( \"getFontRenderContext():\" );\n        return g2D.getFontRenderContext();\n    }\n\n    public Paint getPaint()\n    {\n        System.out.println( \"getPaint():\" );\n        return g2D.getPaint();\n    }\n\n    public Object getRenderingHint(RenderingHints.Key hintKey)\n    {\n        System.out.println( \"getRenderingHint(RenderingHints.Key):\" );\n        System.out.println( \"hintKey = \" + hintKey );\n        return g2D.getRenderingHint( hintKey );\n    }\n\n    public RenderingHints getRenderingHints()\n    {\n        System.out.println( \"getRenderingHints():\" );\n        return g2D.getRenderingHints();\n    }\n\n    public Stroke getStroke()\n    {\n        System.out.println( \"getStroke():\" );\n        return g2D.getStroke();\n    }\n\n    public AffineTransform getTransform()\n    {\n        System.out.println( \"getTransform():\" );\n        return g2D.getTransform();\n    }\n\n    public boolean hit(Rectangle rect,\n\t\t\t\tShape s,\n\t\t\t\tboolean onStroke)\n    {\n        System.out.println( \"hit(Rectangle, Shape, onStroke):\" );\n        System.out.println( \"rect = \" + rect );\n        System.out.println( \"s = \" + s );\n        System.out.println( \"onStroke = \" + onStroke );\n        return g2D.hit( rect, s, onStroke );\n    }\n\n    public void rotate(double theta)\n    {\n        System.out.println( \"rotate(theta):\" );\n        System.out.println( \"theta = \" + theta );\n        g2D.rotate( theta );\n    }\n\n    public void rotate(double theta, double x, double y)\n    {\n        System.out.println( \"rotate(double,double,double):\" );\n        System.out.println( \"theta = \" + theta );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.rotate( theta, x, y );\n    }\n\n    public void scale(double sx, double sy)\n    {\n        System.out.println( \"scale(double,double):\" );\n        System.out.println( \"sx = \" + sx );\n        System.out.println( \"sy\" );\n        g2D.scale( sx, sy );\n    }\n\n    public void setBackground(Color color)\n    {\n        System.out.println( \"setBackground(Color):\" );\n        System.out.println( \"color = \" + color );\n        g2D.setBackground( color );\n    }\n\n    public void setComposite(Composite comp)\n    {\n        System.out.println( \"setComposite(Composite):\" );\n        System.out.println( \"comp = \" + comp );\n        g2D.setComposite( comp );\n    }\n\n    public void setPaint( Paint paint )\n    {\n        System.out.println( \"setPain(Paint):\" );\n        System.out.println( \"paint = \" + paint );\n        g2D.setPaint( paint );\n    }\n\n    public void setRenderingHint(RenderingHints.Key hintKey, Object hintValue)\n    {\n        System.out.println( \"setRenderingHint(RenderingHints.Key, Object):\" );\n        System.out.println( \"hintKey = \" + hintKey );\n        System.out.println( \"hintValue = \" + hintValue );\n        g2D.setRenderingHint( hintKey, hintValue );\n    }\n\n    public void setRenderingHints(Map hints)\n    {\n        System.out.println( \"setRenderingHints(Map):\" );\n        System.out.println( \"hints = \" + hints );\n        g2D.setRenderingHints( hints );\n    }\n\n    public void setStroke(Stroke s)\n    {\n        System.out.println( \"setStroke(Stoke):\" );\n        System.out.println( \"s = \" + s );\n        g2D.setStroke( s );\n    }\n\n    public void setTransform(AffineTransform Tx)\n    {\n        System.out.println( \"setTransform():\" );\n        System.out.println( \"Tx = \" + Tx );\n        g2D.setTransform( Tx );\n    }\n\n    public void shear(double shx, double shy)\n    {\n        System.out.println( \"shear(shx, dhy):\" );\n        System.out.println( \"shx = \" + shx );\n        System.out.println( \"shy = \" + shy );\n        g2D.shear( shx, shy );\n    }\n\n    public void transform(AffineTransform Tx)\n    {\n        System.out.println( \"transform(AffineTransform):\" );\n        System.out.println( \"Tx = \" + Tx );\n        g2D.transform( Tx );\n    }\n\n    public void translate(double tx, double ty)\n    {\n        System.out.println( \"translate(double, double):\" );\n        System.out.println( \"tx = \" + tx );\n        System.out.println( \"ty = \" + ty );\n        g2D.translate( tx, ty );\n    }\n\n\n    public void clearRect(int x, int y, int width, int height)\n    {\n        System.out.println( \"clearRect(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.clearRect( x, y, width, height );\n    }\n\n    public void clipRect(int x, int y, int width, int height)\n    {\n        System.out.println( \"clipRect(int, int, int, int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.clipRect( x, y, width, height );\n    }\n\n    public void copyArea(int x, int y, int width, int height,\n\t\t\t\t  int dx, int dy)\n    {\n        System.out.println( \"copyArea(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.copyArea( x, y, width, height, dx, dy );\n    }\n\n    public Graphics create()\n    {\n        System.out.println( \"create():\" );\n        return g2D.create();\n    }\n\n    public Graphics create(int x, int y, int width, int height) {\n        System.out.println( \"create(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        return g2D.create( x, y, width, height );\n    }\n\n    public void dispose()\n    {\n        System.out.println( \"dispose():\" );\n        g2D.dispose();\n    }\n\n    public void draw3DRect(int x, int y, int width, int height,\n\t\t\t   boolean raised) {\n        System.out.println( \"draw3DRect(int,int,int,int,boolean):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"raised = \" + raised );\n        g2D.draw3DRect( x, y, width, height, raised );\n    }\n\n    public void drawArc(int x, int y, int width, int height,\n\t\t\t\t int startAngle, int arcAngle)\n    {\n        System.out.println( \"drawArc(int,int,int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"startAngle = \" + startAngle );\n        System.out.println( \"arcAngle = \" + arcAngle );\n        g2D.drawArc( x, y, width, height, startAngle, arcAngle );\n    }\n\n    public void drawBytes(byte data[], int offset, int length, int x, int y) {\n        System.out.println( \"drawBytes(byte[],int,int,int,int):\" );\n        System.out.println( \"data = \" + data );\n        System.out.println( \"offset = \" + offset );\n        System.out.println( \"length = \" + length );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawBytes( data, offset, length, x, y );\n    }\n\n    public void drawChars(char data[], int offset, int length, int x, int y) {\n        System.out.println( \"drawChars(data,int,int,int,int):\" );\n        System.out.println( \"data = \" + data.toString() );\n        System.out.println( \"offset = \" + offset );\n        System.out.println( \"length = \" + length );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawChars( data, offset, length, x, y );\n    }\n\n    public boolean drawImage(Image img,\n\t\t\t\t      int dx1, int dy1, int dx2, int dy2,\n\t\t\t\t      int sx1, int sy1, int sx2, int sy2,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,int,int,int,int,int,int,ImageObserver):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"dx1 = \" + dx1 );\n        System.out.println( \"dy1 = \" + dy1 );\n        System.out.println( \"dx2 = \" + dx2 );\n        System.out.println( \"dy2 = \" + dy2 );\n        System.out.println( \"sx1 = \" + sx1 );\n        System.out.println( \"sy1 = \" + sy1 );\n        System.out.println( \"sx2 = \" + sx2 );\n        System.out.println( \"sy2 = \" + sy2 );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer );\n    }\n\n    public boolean drawImage(Image img,\n\t\t\t\t      int dx1, int dy1, int dx2, int dy2,\n\t\t\t\t      int sx1, int sy1, int sx2, int sy2,\n\t\t\t\t      Color bgcolor,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,int,int,int,int,int,int,Color,ImageObserver):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"dx1 = \" + dx1 );\n        System.out.println( \"dy1 = \" + dy1 );\n        System.out.println( \"dx2 = \" + dx2 );\n        System.out.println( \"dy2 = \" + dy2 );\n        System.out.println( \"sx1 = \" + sx1 );\n        System.out.println( \"sy1 = \" + sy1 );\n        System.out.println( \"sx2 = \" + sx2 );\n        System.out.println( \"sy2 = \" + sy2 );\n        System.out.println( \"bgcolor = \" + bgcolor );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, bgcolor, observer );\n    }\n\n    public boolean drawImage(Image img, int x, int y,\n\t\t\t\t      Color bgcolor,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,Color,ImageObserver):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"bgcolor = \" + bgcolor );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, x, y, bgcolor, observer );\n    }\n\n    public boolean drawImage(Image img, int x, int y,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,observer):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, x, y, observer );\n    }\n\n    public boolean drawImage(Image img, int x, int y,\n\t\t\t\t      int width, int height,\n\t\t\t\t      Color bgcolor,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,int,int,Color,ImageObserver):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"bgcolor = \" + bgcolor );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, x, y, width, height, bgcolor, observer );\n    }\n\n    public boolean drawImage(Image img, int x, int y,\n\t\t\t\t      int width, int height,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,width,height,observer):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, x, y, width, height, observer );\n    }\n\n    public void drawLine(int x1, int y1, int x2, int y2)\n    {\n        System.out.println( \"drawLine(int,int,int,int):\" );\n        System.out.println( \"x1 = \" + x1 );\n        System.out.println( \"y1 = \" + y1 );\n        System.out.println( \"x2 = \" + x2 );\n        System.out.println( \"y2 = \" + y2 );\n        g2D.drawLine( x1, y1, x2, y2 );\n    }\n\n    public void drawOval(int x, int y, int width, int height)\n    {\n        System.out.println( \"drawOval(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.drawOval( x, y, width, height );\n    }\n\n    public void drawPolygon(Polygon p) {\n        System.out.println( \"drawPolygon(Polygon):\" );\n        System.out.println( \"p = \" + p );\n        g2D.drawPolygon( p );\n    }\n\n    public void drawPolygon(int xPoints[], int yPoints[],\n\t\t\t\t     int nPoints)\n    {\n        System.out.println( \"drawPolygon(int[],int[],int):\" );\n        System.out.println( \"xPoints = \" + xPoints );\n        System.out.println( \"yPoints = \" + yPoints );\n        System.out.println( \"nPoints = \" + nPoints );\n        g2D.drawPolygon( xPoints, yPoints, nPoints );\n    }\n\n    public void drawPolyline(int xPoints[], int yPoints[],\n\t\t\t\t      int nPoints)\n    {\n        System.out.println( \"drawPolyline(int[],int[],int):\" );\n        System.out.println( \"xPoints = \" + xPoints );\n        System.out.println( \"yPoints = \" + yPoints );\n        System.out.println( \"nPoints = \" + nPoints );\n        g2D.drawPolyline( xPoints, yPoints, nPoints );\n    }\n\n    public void drawRect(int x, int y, int width, int height) {\n        System.out.println( \"drawRect(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.drawRect( x, y, width, height );\n    }\n\n    public void drawRoundRect(int x, int y, int width, int height,\n\t\t\t\t       int arcWidth, int arcHeight)\n    {\n        System.out.println( \"drawRoundRect(int,int,int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"arcWidth = \" + arcWidth );\n        System.out.println( \"arcHeight = \" + arcHeight );\n        g2D.drawRoundRect( x, y, width, height, arcWidth, arcHeight );\n    }\n\n    public void drawString(AttributedCharacterIterator iterator,\n                                    int x, int y)\n    {\n        System.out.println( \"drawString(AttributedCharacterIterator,int,int):\" );\n        System.out.println( \"iterator = \" + iterator );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawString( iterator, x, y );\n    }\n\n    public void drawString(String str, int x, int y)\n    {\n        System.out.println( \"drawString(str,int,int):\" );\n        System.out.println( \"str = \" + str );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawString( str, x, y );\n    }\n\n    public void fill3DRect(int x, int y, int width, int height,\n\t\t\t   boolean raised) {\n        System.out.println( \"fill3DRect(int,int,int,int,boolean):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"raised = \" + raised );\n        g2D.fill3DRect( x, y, width, height, raised );\n    }\n\n    public void fillArc(int x, int y, int width, int height,\n\t\t\t\t int startAngle, int arcAngle)\n    {\n        System.out.println( \"fillArc(int,int,int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"startAngle = \" + startAngle );\n        System.out.println( \"arcAngle = \" + arcAngle );\n        g2D.fillArc( x, y, width, height, startAngle, arcAngle );\n    }\n\n    public void fillOval(int x, int y, int width, int height)\n    {\n        System.out.println( \"fillOval(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.fillOval( x, y, width, height );\n    }\n\n    public void fillPolygon(Polygon p) {\n        System.out.println( \"fillPolygon(Polygon):\" );\n        System.out.println( \"p = \" + p );\n        g2D.fillPolygon( p );\n    }\n\n    public void fillPolygon(int xPoints[], int yPoints[],\n\t\t\t\t     int nPoints)\n    {\n        System.out.println( \"fillPolygon(int[],int[],int):\" );\n        System.out.println( \"xPoints = \" + xPoints );\n        System.out.println( \"yPoints = \" + yPoints );\n        System.out.println( \"nPoints = \" + nPoints );\n        g2D.fillPolygon( xPoints, yPoints, nPoints );\n    }\n\n    public void fillRect(int x, int y, int width, int height)\n    {\n        System.out.println( \"fillRect(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.fillRect( x, y, width, height );\n    }\n\n    public void fillRoundRect(int x, int y, int width, int height,\n\t\t\t\t       int arcWidth, int arcHeight)\n    {\n        System.out.println( \"fillRoundRect(int,int,int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.fillRoundRect( x, y, width, height, arcWidth, arcHeight );\n    }\n\n    public void finalize() {\n        System.out.println( \"finalize():\" );\n        g2D.finalize();\n    }\n\n    public Shape getClip()\n    {\n        System.out.println( \"getClip():\" );\n        return g2D.getClip();\n    }\n\n    public Rectangle getClipBounds()\n    {\n        System.out.println( \"getClipBounds():\" );\n        return g2D.getClipBounds();\n    }\n\n    public Rectangle getClipBounds(Rectangle r) {\n        System.out.println( \"getClipBounds(Rectangle):\" );\n        System.out.println( \"r = \" + r );\n        return g2D.getClipBounds( r );\n    }\n\n    public Rectangle getClipRect() {\n        System.out.println( \"getClipRect():\" );\n        return g2D.getClipRect();\n    }\n\n    public Color getColor()\n    {\n        System.out.println( \"getColor():\" );\n        return g2D.getColor();\n    }\n\n    public Font getFont()\n    {\n        System.out.println( \"getFont():\" );\n        return g2D.getFont();\n    }\n\n    public FontMetrics getFontMetrics() {\n        System.out.println( \"getFontMetrics():\" );\n        return g2D.getFontMetrics();\n    }\n\n    public FontMetrics getFontMetrics(Font f)\n    {\n        System.out.println( \"getFontMetrics():\" );\n        return g2D.getFontMetrics( f );\n    }\n\n    public boolean hitClip(int x, int y, int width, int height) {\n        System.out.println( \"hitClip(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        return g2D.hitClip( x, y, width, height );\n    }\n\n    public void setClip(Shape clip)\n    {\n        System.out.println( \"setClip(Shape):\" );\n        System.out.println( \"clip = \" + clip );\n        g2D.setClip( clip );\n    }\n\n    public void setClip(int x, int y, int width, int height)\n    {\n        System.out.println( \"setClip(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.setClip( x, y, width, height );\n    }\n\n    public void setColor(Color c)\n    {\n        System.out.println( \"setColor():\" );\n        System.out.println( \"c = \" + c );\n        g2D.setColor( c );\n    }\n\n    public void setFont(Font font)\n    {\n        System.out.println( \"setFont(Font):\" );\n        System.out.println( \"font = \" + font );\n        g2D.setFont( font );\n    }\n\n    public void setPaintMode()\n    {\n        System.out.println( \"setPaintMode():\" );\n        g2D.setPaintMode();\n    }\n\n    public void setXORMode(Color c1)\n    {\n        System.out.println( \"setXORMode(Color):\" );\n        System.out.println( \"c1 = \" + c1 );\n        g2D.setXORMode( c1 );\n    }\n\n    public String toString() {\n        System.out.println( \"toString():\" );\n        return g2D.toString();\n    }\n\n    public void translate(int x, int y)\n    {\n        System.out.println( \"translate(int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.translate( x, y );", "functions": [{"function_name": "addRenderingHints", "code": "    public void addRenderingHints(Map hints)\n    {\n        System.out.println( \"addRenderingHinds(Map):\" );\n        System.out.println( \"  hints = \" + hints );\n        g2D.addRenderingHints( hints );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "clip", "code": "    public void clip(Shape s)\n    {\n        System.out.println( \"clip(Shape):\" );\n        System.out.println( \"  s = \" + s );\n        g2D.clip( s );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "draw", "code": "    public void draw(Shape s)\n    {\n        System.out.println( \"draw(Shape):\" );\n        System.out.println( \"s = \" + s );\n        g2D.draw( s );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "drawGlyphVector", "code": "    public void drawGlyphVector(GlyphVector g, float x, float y)\n    {\n        System.out.println( \"drawGlyphVector(GlyphVector, float, float):\" );\n        System.out.println( \"g = \" + g );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawGlyphVector( g, x, y );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "drawImage", "code": "    public void drawImage(BufferedImage img,\n\t\t\t\t   BufferedImageOp op,\n\t\t\t\t   int x,\n\t\t\t\t   int y)\n    {\n        System.out.println( \"drawImage(BufferedImage, BufferedImageOp, x, y):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"op = \" + op );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawImage( img, op, x, y );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image img,\n                                      AffineTransform xform,\n                                      ImageObserver obs)\n    {\n        System.out.println( \"drawImage(Image,AfflineTransform,ImageObserver):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"xform = \" + xform );\n        System.out.println( \"obs = \" + obs );\n        return g2D.drawImage( img, xform, obs );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "drawRenderableImage", "code": "    public void drawRenderableImage(RenderableImage img,\n                                             AffineTransform xform)\n    {\n        System.out.println( \"drawRenderableImage(RenderableImage, AfflineTransform):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"xform = \" + xform );\n        g2D.drawRenderableImage( img, xform );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "drawRenderedImage", "code": "    public void drawRenderedImage(RenderedImage img,\n                                           AffineTransform xform)\n    {\n        System.out.println( \"drawRenderedImage(RenderedImage, AffineTransform):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"xform = \" + xform );\n        g2D.drawRenderedImage( img, xform );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "drawString", "code": "    public void drawString(AttributedCharacterIterator iterator,\n                                    float x, float y)\n    {\n        System.out.println( \"drawString(AttributedCharacterIterator):\" );\n        System.out.println( \"iterator = \" + iterator );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawString( iterator, x, y );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "drawString", "code": "    public void drawString(String s, float x, float y)\n    {\n        System.out.println( \"drawString(s,x,y):\" );\n        System.out.println( \"s = \" + s );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawString( s, x, y );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "fill", "code": "    public void fill(Shape s)\n    {\n        System.out.println( \"fill(Shape):\" );\n        System.out.println( \"s = \" + s );\n        g2D.fill( s );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getBackground", "code": "    public Color getBackground()\n    {\n        System.out.println( \"getBackground():\" );\n        return g2D.getBackground();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getComposite", "code": "    public Composite getComposite()\n    {\n        System.out.println( \"getComposite():\" );\n        return g2D.getComposite();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDeviceConfiguration", "code": "    public GraphicsConfiguration getDeviceConfiguration()\n    {\n        System.out.println( \"getDeviceConfiguration():\" );\n        return g2D.getDeviceConfiguration();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFontRenderContext", "code": "    public FontRenderContext getFontRenderContext()\n    {\n        System.out.println( \"getFontRenderContext():\" );\n        return g2D.getFontRenderContext();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getPaint", "code": "    public Paint getPaint()\n    {\n        System.out.println( \"getPaint():\" );\n        return g2D.getPaint();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRenderingHint", "code": "    public Object getRenderingHint(RenderingHints.Key hintKey)\n    {\n        System.out.println( \"getRenderingHint(RenderingHints.Key):\" );\n        System.out.println( \"hintKey = \" + hintKey );\n        return g2D.getRenderingHint( hintKey );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getRenderingHints", "code": "    public RenderingHints getRenderingHints()\n    {\n        System.out.println( \"getRenderingHints():\" );\n        return g2D.getRenderingHints();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getStroke", "code": "    public Stroke getStroke()\n    {\n        System.out.println( \"getStroke():\" );\n        return g2D.getStroke();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getTransform", "code": "    public AffineTransform getTransform()\n    {\n        System.out.println( \"getTransform():\" );\n        return g2D.getTransform();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "hit", "code": "    public boolean hit(Rectangle rect,\n\t\t\t\tShape s,\n\t\t\t\tboolean onStroke)\n    {\n        System.out.println( \"hit(Rectangle, Shape, onStroke):\" );\n        System.out.println( \"rect = \" + rect );\n        System.out.println( \"s = \" + s );\n        System.out.println( \"onStroke = \" + onStroke );\n        return g2D.hit( rect, s, onStroke );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "rotate", "code": "    public void rotate(double theta)\n    {\n        System.out.println( \"rotate(theta):\" );\n        System.out.println( \"theta = \" + theta );\n        g2D.rotate( theta );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "rotate", "code": "    public void rotate(double theta, double x, double y)\n    {\n        System.out.println( \"rotate(double,double,double):\" );\n        System.out.println( \"theta = \" + theta );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.rotate( theta, x, y );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "scale", "code": "    public void scale(double sx, double sy)\n    {\n        System.out.println( \"scale(double,double):\" );\n        System.out.println( \"sx = \" + sx );\n        System.out.println( \"sy\" );\n        g2D.scale( sx, sy );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setBackground", "code": "    public void setBackground(Color color)\n    {\n        System.out.println( \"setBackground(Color):\" );\n        System.out.println( \"color = \" + color );\n        g2D.setBackground( color );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setComposite", "code": "    public void setComposite(Composite comp)\n    {\n        System.out.println( \"setComposite(Composite):\" );\n        System.out.println( \"comp = \" + comp );\n        g2D.setComposite( comp );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setPaint", "code": "    public void setPaint( Paint paint )\n    {\n        System.out.println( \"setPain(Paint):\" );\n        System.out.println( \"paint = \" + paint );\n        g2D.setPaint( paint );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setRenderingHint", "code": "    public void setRenderingHint(RenderingHints.Key hintKey, Object hintValue)\n    {\n        System.out.println( \"setRenderingHint(RenderingHints.Key, Object):\" );\n        System.out.println( \"hintKey = \" + hintKey );\n        System.out.println( \"hintValue = \" + hintValue );\n        g2D.setRenderingHint( hintKey, hintValue );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setRenderingHints", "code": "    public void setRenderingHints(Map hints)\n    {\n        System.out.println( \"setRenderingHints(Map):\" );\n        System.out.println( \"hints = \" + hints );\n        g2D.setRenderingHints( hints );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setStroke", "code": "    public void setStroke(Stroke s)\n    {\n        System.out.println( \"setStroke(Stoke):\" );\n        System.out.println( \"s = \" + s );\n        g2D.setStroke( s );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setTransform", "code": "    public void setTransform(AffineTransform Tx)\n    {\n        System.out.println( \"setTransform():\" );\n        System.out.println( \"Tx = \" + Tx );\n        g2D.setTransform( Tx );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "shear", "code": "    public void shear(double shx, double shy)\n    {\n        System.out.println( \"shear(shx, dhy):\" );\n        System.out.println( \"shx = \" + shx );\n        System.out.println( \"shy = \" + shy );\n        g2D.shear( shx, shy );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "transform", "code": "    public void transform(AffineTransform Tx)\n    {\n        System.out.println( \"transform(AffineTransform):\" );\n        System.out.println( \"Tx = \" + Tx );\n        g2D.transform( Tx );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "translate", "code": "    public void translate(double tx, double ty)\n    {\n        System.out.println( \"translate(double, double):\" );\n        System.out.println( \"tx = \" + tx );\n        System.out.println( \"ty = \" + ty );\n        g2D.translate( tx, ty );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "clearRect", "code": "    public void clearRect(int x, int y, int width, int height)\n    {\n        System.out.println( \"clearRect(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.clearRect( x, y, width, height );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "clipRect", "code": "    public void clipRect(int x, int y, int width, int height)\n    {\n        System.out.println( \"clipRect(int, int, int, int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.clipRect( x, y, width, height );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "copyArea", "code": "    public void copyArea(int x, int y, int width, int height,\n\t\t\t\t  int dx, int dy)\n    {\n        System.out.println( \"copyArea(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.copyArea( x, y, width, height, dx, dy );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "create", "code": "    public Graphics create()\n    {\n        System.out.println( \"create():\" );\n        return g2D.create();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "create", "code": "    public Graphics create(int x, int y, int width, int height) {\n        System.out.println( \"create(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        return g2D.create( x, y, width, height );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "dispose", "code": "    public void dispose()\n    {\n        System.out.println( \"dispose():\" );\n        g2D.dispose();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "draw3DRect", "code": "    public void draw3DRect(int x, int y, int width, int height,\n\t\t\t   boolean raised) {\n        System.out.println( \"draw3DRect(int,int,int,int,boolean):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"raised = \" + raised );\n        g2D.draw3DRect( x, y, width, height, raised );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "drawArc", "code": "    public void drawArc(int x, int y, int width, int height,\n\t\t\t\t int startAngle, int arcAngle)\n    {\n        System.out.println( \"drawArc(int,int,int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"startAngle = \" + startAngle );\n        System.out.println( \"arcAngle = \" + arcAngle );\n        g2D.drawArc( x, y, width, height, startAngle, arcAngle );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [8, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [18, 25], [19, 26], [20, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 8], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 18], [26, 19], [27, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "drawBytes", "code": "    public void drawBytes(byte data[], int offset, int length, int x, int y) {\n        System.out.println( \"drawBytes(byte[],int,int,int,int):\" );\n        System.out.println( \"data = \" + data );\n        System.out.println( \"offset = \" + offset );\n        System.out.println( \"length = \" + length );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawBytes( data, offset, length, x, y );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "drawChars", "code": "    public void drawChars(char data[], int offset, int length, int x, int y) {\n        System.out.println( \"drawChars(data,int,int,int,int):\" );\n        System.out.println( \"data = \" + data.toString() );\n        System.out.println( \"offset = \" + offset );\n        System.out.println( \"length = \" + length );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawChars( data, offset, length, x, y );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [17, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image img,\n\t\t\t\t      int dx1, int dy1, int dx2, int dy2,\n\t\t\t\t      int sx1, int sy1, int sx2, int sy2,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,int,int,int,int,int,int,ImageObserver):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"dx1 = \" + dx1 );\n        System.out.println( \"dy1 = \" + dy1 );\n        System.out.println( \"dx2 = \" + dx2 );\n        System.out.println( \"dy2 = \" + dy2 );\n        System.out.println( \"sx1 = \" + sx1 );\n        System.out.println( \"sy1 = \" + sy1 );\n        System.out.println( \"sx2 = \" + sx2 );\n        System.out.println( \"sy2 = \" + sy2 );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [13, 24], [14, 25], [15, 26], [16, 27], [17, 28], [18, 29], [19, 30], [20, 31], [21, 32], [22, 33], [23, 34], [24, 35], [25, 36], [26, 37], [27, 38], [28, 39], [29, 40], [30, 41], [31, 42], [32, 43], [33, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 13], [25, 14], [26, 15], [27, 16], [28, 17], [29, 18], [30, 19], [31, 20], [32, 21], [33, 22], [34, 23], [35, 24], [36, 25], [37, 26], [38, 27], [39, 28], [40, 29], [41, 30], [42, 31], [43, 32], [44, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image img,\n\t\t\t\t      int dx1, int dy1, int dx2, int dy2,\n\t\t\t\t      int sx1, int sy1, int sx2, int sy2,\n\t\t\t\t      Color bgcolor,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,int,int,int,int,int,int,Color,ImageObserver):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"dx1 = \" + dx1 );\n        System.out.println( \"dy1 = \" + dy1 );\n        System.out.println( \"dx2 = \" + dx2 );\n        System.out.println( \"dy2 = \" + dy2 );\n        System.out.println( \"sx1 = \" + sx1 );\n        System.out.println( \"sy1 = \" + sy1 );\n        System.out.println( \"sx2 = \" + sx2 );\n        System.out.println( \"sy2 = \" + sy2 );\n        System.out.println( \"bgcolor = \" + bgcolor );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, bgcolor, observer );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [14, 26], [15, 27], [16, 28], [17, 29], [18, 30], [19, 31], [20, 32], [21, 33], [22, 34], [23, 35], [24, 36], [25, 37], [26, 38], [27, 39], [28, 40], [29, 41], [30, 42], [31, 43], [32, 44], [33, 45], [34, 46], [35, 47], [36, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 14], [27, 15], [28, 16], [29, 17], [30, 18], [31, 19], [32, 20], [33, 21], [34, 22], [35, 23], [36, 24], [37, 25], [38, 26], [39, 27], [40, 28], [41, 29], [42, 30], [43, 31], [44, 32], [45, 33], [46, 34], [47, 35], [48, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image img, int x, int y,\n\t\t\t\t      Color bgcolor,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,Color,ImageObserver):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"bgcolor = \" + bgcolor );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, x, y, bgcolor, observer );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [18, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image img, int x, int y,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,observer):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, x, y, observer );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image img, int x, int y,\n\t\t\t\t      int width, int height,\n\t\t\t\t      Color bgcolor,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,int,int,Color,ImageObserver):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"bgcolor = \" + bgcolor );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, x, y, width, height, bgcolor, observer );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [10, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [18, 26], [19, 27], [20, 28], [21, 29], [22, 30], [23, 31], [24, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 10], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 18], [27, 19], [28, 20], [29, 21], [30, 22], [31, 23], [32, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "drawImage", "code": "    public boolean drawImage(Image img, int x, int y,\n\t\t\t\t      int width, int height,\n\t\t\t\t      ImageObserver observer)\n    {\n        System.out.println( \"drawImage(Image,int,int,width,height,observer):\" );\n        System.out.println( \"img = \" + img );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"observer = \" + observer );\n        return g2D.drawImage( img, x, y, width, height, observer );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [18, 25], [19, 26], [20, 27], [21, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 18], [26, 19], [27, 20], [28, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "drawLine", "code": "    public void drawLine(int x1, int y1, int x2, int y2)\n    {\n        System.out.println( \"drawLine(int,int,int,int):\" );\n        System.out.println( \"x1 = \" + x1 );\n        System.out.println( \"y1 = \" + y1 );\n        System.out.println( \"x2 = \" + x2 );\n        System.out.println( \"y2 = \" + y2 );\n        g2D.drawLine( x1, y1, x2, y2 );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "drawOval", "code": "    public void drawOval(int x, int y, int width, int height)\n    {\n        System.out.println( \"drawOval(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.drawOval( x, y, width, height );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "drawPolygon", "code": "    public void drawPolygon(Polygon p) {\n        System.out.println( \"drawPolygon(Polygon):\" );\n        System.out.println( \"p = \" + p );\n        g2D.drawPolygon( p );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "drawPolygon", "code": "    public void drawPolygon(int xPoints[], int yPoints[],\n\t\t\t\t     int nPoints)\n    {\n        System.out.println( \"drawPolygon(int[],int[],int):\" );\n        System.out.println( \"xPoints = \" + xPoints );\n        System.out.println( \"yPoints = \" + yPoints );\n        System.out.println( \"nPoints = \" + nPoints );\n        g2D.drawPolygon( xPoints, yPoints, nPoints );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "drawPolyline", "code": "    public void drawPolyline(int xPoints[], int yPoints[],\n\t\t\t\t      int nPoints)\n    {\n        System.out.println( \"drawPolyline(int[],int[],int):\" );\n        System.out.println( \"xPoints = \" + xPoints );\n        System.out.println( \"yPoints = \" + yPoints );\n        System.out.println( \"nPoints = \" + nPoints );\n        g2D.drawPolyline( xPoints, yPoints, nPoints );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "drawRect", "code": "    public void drawRect(int x, int y, int width, int height) {\n        System.out.println( \"drawRect(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.drawRect( x, y, width, height );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "drawRoundRect", "code": "    public void drawRoundRect(int x, int y, int width, int height,\n\t\t\t\t       int arcWidth, int arcHeight)\n    {\n        System.out.println( \"drawRoundRect(int,int,int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"arcWidth = \" + arcWidth );\n        System.out.println( \"arcHeight = \" + arcHeight );\n        g2D.drawRoundRect( x, y, width, height, arcWidth, arcHeight );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [8, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [18, 25], [19, 26], [20, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 8], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 18], [26, 19], [27, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "drawString", "code": "    public void drawString(AttributedCharacterIterator iterator,\n                                    int x, int y)\n    {\n        System.out.println( \"drawString(AttributedCharacterIterator,int,int):\" );\n        System.out.println( \"iterator = \" + iterator );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawString( iterator, x, y );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "drawString", "code": "    public void drawString(String str, int x, int y)\n    {\n        System.out.println( \"drawString(str,int,int):\" );\n        System.out.println( \"str = \" + str );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.drawString( str, x, y );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "fill3DRect", "code": "    public void fill3DRect(int x, int y, int width, int height,\n\t\t\t   boolean raised) {\n        System.out.println( \"fill3DRect(int,int,int,int,boolean):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"raised = \" + raised );\n        g2D.fill3DRect( x, y, width, height, raised );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "fillArc", "code": "    public void fillArc(int x, int y, int width, int height,\n\t\t\t\t int startAngle, int arcAngle)\n    {\n        System.out.println( \"fillArc(int,int,int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        System.out.println( \"startAngle = \" + startAngle );\n        System.out.println( \"arcAngle = \" + arcAngle );\n        g2D.fillArc( x, y, width, height, startAngle, arcAngle );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [8, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [18, 25], [19, 26], [20, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 8], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 18], [26, 19], [27, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "fillOval", "code": "    public void fillOval(int x, int y, int width, int height)\n    {\n        System.out.println( \"fillOval(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.fillOval( x, y, width, height );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "fillPolygon", "code": "    public void fillPolygon(Polygon p) {\n        System.out.println( \"fillPolygon(Polygon):\" );\n        System.out.println( \"p = \" + p );\n        g2D.fillPolygon( p );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "fillPolygon", "code": "    public void fillPolygon(int xPoints[], int yPoints[],\n\t\t\t\t     int nPoints)\n    {\n        System.out.println( \"fillPolygon(int[],int[],int):\" );\n        System.out.println( \"xPoints = \" + xPoints );\n        System.out.println( \"yPoints = \" + yPoints );\n        System.out.println( \"nPoints = \" + nPoints );\n        g2D.fillPolygon( xPoints, yPoints, nPoints );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "fillRect", "code": "    public void fillRect(int x, int y, int width, int height)\n    {\n        System.out.println( \"fillRect(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.fillRect( x, y, width, height );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "fillRoundRect", "code": "    public void fillRoundRect(int x, int y, int width, int height,\n\t\t\t\t       int arcWidth, int arcHeight)\n    {\n        System.out.println( \"fillRoundRect(int,int,int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.fillRoundRect( x, y, width, height, arcWidth, arcHeight );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "finalize", "code": "    public void finalize() {\n        System.out.println( \"finalize():\" );\n        g2D.finalize();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getClip", "code": "    public Shape getClip()\n    {\n        System.out.println( \"getClip():\" );\n        return g2D.getClip();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getClipBounds", "code": "    public Rectangle getClipBounds()\n    {\n        System.out.println( \"getClipBounds():\" );\n        return g2D.getClipBounds();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getClipBounds", "code": "    public Rectangle getClipBounds(Rectangle r) {\n        System.out.println( \"getClipBounds(Rectangle):\" );\n        System.out.println( \"r = \" + r );\n        return g2D.getClipBounds( r );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getClipRect", "code": "    public Rectangle getClipRect() {\n        System.out.println( \"getClipRect():\" );\n        return g2D.getClipRect();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getColor", "code": "    public Color getColor()\n    {\n        System.out.println( \"getColor():\" );\n        return g2D.getColor();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFont", "code": "    public Font getFont()\n    {\n        System.out.println( \"getFont():\" );\n        return g2D.getFont();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFontMetrics", "code": "    public FontMetrics getFontMetrics() {\n        System.out.println( \"getFontMetrics():\" );\n        return g2D.getFontMetrics();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFontMetrics", "code": "    public FontMetrics getFontMetrics(Font f)\n    {\n        System.out.println( \"getFontMetrics():\" );\n        return g2D.getFontMetrics( f );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "hitClip", "code": "    public boolean hitClip(int x, int y, int width, int height) {\n        System.out.println( \"hitClip(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        return g2D.hitClip( x, y, width, height );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "setClip", "code": "    public void setClip(Shape clip)\n    {\n        System.out.println( \"setClip(Shape):\" );\n        System.out.println( \"clip = \" + clip );\n        g2D.setClip( clip );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setClip", "code": "    public void setClip(int x, int y, int width, int height)\n    {\n        System.out.println( \"setClip(int,int,int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        System.out.println( \"width = \" + width );\n        System.out.println( \"height = \" + height );\n        g2D.setClip( x, y, width, height );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setColor", "code": "    public void setColor(Color c)\n    {\n        System.out.println( \"setColor():\" );\n        System.out.println( \"c = \" + c );\n        g2D.setColor( c );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setFont", "code": "    public void setFont(Font font)\n    {\n        System.out.println( \"setFont(Font):\" );\n        System.out.println( \"font = \" + font );\n        g2D.setFont( font );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setPaintMode", "code": "    public void setPaintMode()\n    {\n        System.out.println( \"setPaintMode():\" );\n        g2D.setPaintMode();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setXORMode", "code": "    public void setXORMode(Color c1)\n    {\n        System.out.println( \"setXORMode(Color):\" );\n        System.out.println( \"c1 = \" + c1 );\n        g2D.setXORMode( c1 );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "    public String toString() {\n        System.out.println( \"toString():\" );\n        return g2D.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "translate", "code": "    public void translate(int x, int y)\n    {\n        System.out.println( \"translate(int,int):\" );\n        System.out.println( \"x = \" + x );\n        System.out.println( \"y = \" + y );\n        g2D.translate( x, y );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "DummyGraphics2d", "code": "    public DummyGraphics2d()\n    {\n        img = new BufferedImage(1000, 1000, 2);\n        g2D = (Graphics2D)img.getGraphics();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [3, 6], [3, 7], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 3], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "ant-1.5-433", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/types/selectors/BaseExtendSelector.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.BaseExtendSelector", "code": "public abstract class BaseExtendSelector extends BaseSelector implements\n        ExtendFileSelector {\n\n    /** The passed in parameter array. */\n    protected Parameter[] parameters = null;\n\n    /**\n     * Default constructor.\n     */\n    public BaseExtendSelector() {\n    }\n\n    /**\n     * Set all the Parameters for this custom selector, collected by\n     * the ExtendSelector class.\n     *\n     * @param parameters the complete set of parameters for this selector\n     */\n    public void setParameters(Parameter[] parameters) {\n        this.parameters = parameters;\n    }\n\n    /**\n     * Allows access to the parameters gathered and set within the\n     * &lt;custom&gt; tag.\n     *\n     * @return the set of parameters defined for this selector\n     */\n    protected Parameter[] getParameters() {\n        return parameters;\n    }\n\n    /**\n     * Method that each selector will implement to create their\n     * selection behaviour. If there is a problem with the setup\n     * of a selector, it can throw a BuildException to indicate\n     * the problem.\n     *\n     * @param basedir A java.io.File object for the base directory\n     * @param filename The name of the file to check\n     * @param file A File object for this filename\n     * @return whether the file should be selected or not\n     */\n    public abstract boolean isSelected(File basedir, String filename,\n                                       File file)", "functions": [{"function_name": "setParameters", "code": "    public void setParameters(Parameter[] parameters) {\n        this.parameters = parameters;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParameters", "code": "    protected Parameter[] getParameters() {\n        return parameters;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSelected", "code": "    public abstract boolean isSelected(File basedir, String filename,\n                                       File file)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BaseExtendSelector", "code": "    public BaseExtendSelector() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-3.0-6006", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/poifs/eventfilesystem/POIFSReader.java", "language": "java", "name": "org.apache.poi.poifs.eventfilesystem.POIFSReader", "code": "public class POIFSReader\n{\n    private POIFSReaderRegistry registry;\n    private boolean             registryClosed;\n\n    /**\n     * Create a POIFSReader\n     */\n\n    public POIFSReader()\n    {\n        registry       = new POIFSReaderRegistry();\n        registryClosed = false;\n    }\n\n    /**\n     * Read from an InputStream and process the documents we get\n     *\n     * @param stream the InputStream from which to read the data\n     *\n     * @exception IOException on errors reading, or on invalid data\n     */\n\n    public void read(final InputStream stream)\n        throws IOException\n    {\n        registryClosed = true;\n\n        HeaderBlockReader header_block_reader = new HeaderBlockReader(stream);\n\n        RawDataBlockList  data_blocks         = new RawDataBlockList(stream);\n\n        new BlockAllocationTableReader(header_block_reader.getBATCount(),\n                                       header_block_reader.getBATArray(),\n                                       header_block_reader.getXBATCount(),\n                                       header_block_reader.getXBATIndex(),\n                                       data_blocks);\n\n        PropertyTable properties =\n            new PropertyTable(header_block_reader.getPropertyStart(),\n                              data_blocks);\n\n        processProperties(SmallBlockTableReader\n            .getSmallDocumentBlocks(data_blocks, properties\n                .getRoot(), header_block_reader\n                    .getSBATStart()), data_blocks, properties.getRoot()\n                        .getChildren(), new POIFSDocumentPath());\n    }\n\n    /**\n     * Register a POIFSReaderListener for all documents\n     *\n     * @param listener the listener to be registered\n     *\n     * @exception NullPointerException if listener is null\n     * @exception IllegalStateException if read() has already been\n     *                                  called\n     */\n\n    public void registerListener(final POIFSReaderListener listener)\n    {\n        if (listener == null)\n        {\n            throw new NullPointerException();\n        }\n        if (registryClosed)\n        {\n            throw new IllegalStateException();\n        }\n        registry.registerListener(listener);\n    }\n\n    /**\n     * Register a POIFSReaderListener for a document in the root\n     * directory\n     *\n     * @param listener the listener to be registered\n     * @param name the document name\n     *\n     * @exception NullPointerException if listener is null or name is\n     *                                 null or empty\n     * @exception IllegalStateException if read() has already been\n     *                                  called\n     */\n\n    public void registerListener(final POIFSReaderListener listener,\n                                 final String name)\n    {\n        registerListener(listener, null, name);\n    }\n\n    /**\n     * Register a POIFSReaderListener for a document in the specified\n     * directory\n     *\n     * @param listener the listener to be registered\n     * @param path the document path; if null, the root directory is\n     *             assumed\n     * @param name the document name\n     *\n     * @exception NullPointerException if listener is null or name is\n     *                                 null or empty\n     * @exception IllegalStateException if read() has already been\n     *                                  called\n     */\n\n    public void registerListener(final POIFSReaderListener listener,\n                                 final POIFSDocumentPath path,\n                                 final String name)\n    {\n        if ((listener == null) || (name == null) || (name.length() == 0))\n        {\n            throw new NullPointerException();\n        }\n        if (registryClosed)\n        {\n            throw new IllegalStateException();\n        }\n        registry.registerListener(listener,\n                                  (path == null) ? new POIFSDocumentPath()\n                                                 : path, name);\n    }\n\n    /**\n     * read in files\n     *\n     * @param args names of the files\n     *\n     * @exception IOException\n     */\n\n    public static void main(String args[])\n        throws IOException\n    {\n        if (args.length == 0)\n        {\n            System.err\n                .println(\"at least one argument required: input filename(s)\");\n            System.exit(1);\n        }\n\n        for (int j = 0; j < args.length; j++)\n        {\n            POIFSReader         reader   = new POIFSReader();\n            POIFSReaderListener listener = new SampleListener();\n\n            reader.registerListener(listener);\n            System.out.println(\"reading \" + args[ j ]);\n            FileInputStream istream = new FileInputStream(args[ j ]);\n\n            reader.read(istream);\n            istream.close();\n        }\n    }\n\n    private void processProperties(final BlockList small_blocks,\n                                   final BlockList big_blocks,\n                                   final Iterator properties,\n                                   final POIFSDocumentPath path)\n        throws IOException\n    {\n        while (properties.hasNext())\n        {\n            Property property = ( Property ) properties.next();\n            String   name     = property.getName();\n\n            if (property.isDirectory())\n            {\n                POIFSDocumentPath new_path = new POIFSDocumentPath(path,\n                                                 new String[]\n                {\n                    name\n                });\n\n                processProperties(\n                    small_blocks, big_blocks,\n                    (( DirectoryProperty ) property).getChildren(), new_path);\n            }\n            else\n            {\n                int      startBlock = property.getStartBlock();\n                Iterator listeners  = registry.getListeners(path, name);\n\n                if (listeners.hasNext())\n                {\n                    int           size     = property.getSize();\n                    POIFSDocument document = null;\n\n                    if (property.shouldUseSmallBlocks())\n                    {\n                        document =\n                            new POIFSDocument(name, small_blocks\n                                .fetchBlocks(startBlock), size);\n                    }\n                    else\n                    {\n                        document =\n                            new POIFSDocument(name, big_blocks\n                                .fetchBlocks(startBlock), size);\n                    }\n                    while (listeners.hasNext())\n                    {\n                        POIFSReaderListener listener =\n                            ( POIFSReaderListener ) listeners.next();\n\n                        listener.processPOIFSReaderEvent(\n                            new POIFSReaderEvent(\n                                new DocumentInputStream(document), path,\n                                name));\n                    }\n                }\n                else\n                {\n\n                    if (property.shouldUseSmallBlocks())\n                    {\n                        small_blocks.fetchBlocks(startBlock);\n                    }\n                    else\n                    {\n                        big_blocks.fetchBlocks(startBlock);\n                    }\n                }\n            }\n        }\n    }\n\n    private static class SampleListener\n        implements POIFSReaderListener\n    {\n\n        /**\n         * Constructor SampleListener\n         */\n\n        SampleListener()\n        {\n        }\n\n        /**\n         * Method processPOIFSReaderEvent\n         *\n         * @param event\n         */\n\n        public void processPOIFSReaderEvent(final POIFSReaderEvent event)\n        {\n            DocumentInputStream istream = event.getStream();\n            POIFSDocumentPath   path    = event.getPath();\n            String              name    = event.getName();\n\n            try\n            {\n                byte[] data = new byte[ istream.available() ];\n\n                istream.read(data);\n                int pathLength = path.length();\n\n                for (int k = 0; k < pathLength; k++)\n                {\n                    System.out.print(\"/\" + path.getComponent(k));\n                }\n                System.out.println(\"/\" + name + \": \" + data.length\n                                   + \" bytes read\");", "functions": [{"function_name": "read", "code": "    public void read(final InputStream stream)\n        throws IOException\n    {\n        registryClosed = true;\n\n        HeaderBlockReader header_block_reader = new HeaderBlockReader(stream);\n\n        RawDataBlockList  data_blocks         = new RawDataBlockList(stream);\n\n        new BlockAllocationTableReader(header_block_reader.getBATCount(),\n                                       header_block_reader.getBATArray(),\n                                       header_block_reader.getXBATCount(),\n                                       header_block_reader.getXBATIndex(),\n                                       data_blocks);\n\n        PropertyTable properties =\n            new PropertyTable(header_block_reader.getPropertyStart(),\n                              data_blocks);\n\n        processProperties(SmallBlockTableReader\n            .getSmallDocumentBlocks(data_blocks, properties\n                .getRoot(), header_block_reader\n                    .getSBATStart()), data_blocks, properties.getRoot()\n                        .getChildren(), new POIFSDocumentPath());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [6, 12], [6, 13], [6, 14], [6, 15], [2, 16], [3, 17], [7, 18], [9, 19], [10, 20], [10, 21], [11, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 6], [13, 6], [14, 6], [15, 6], [16, 2], [17, 3], [18, 7], [19, 9], [20, 10], [21, 10], [22, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "registerListener", "code": "    public void registerListener(final POIFSReaderListener listener)\n    {\n        if (listener == null)\n        {\n            throw new NullPointerException();\n        }\n        if (registryClosed)\n        {\n            throw new IllegalStateException();\n        }\n        registry.registerListener(listener);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [2, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 2], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "registerListener", "code": "    public void registerListener(final POIFSReaderListener listener,\n                                 final String name)\n    {\n        registerListener(listener, null, name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "registerListener", "code": "    public void registerListener(final POIFSReaderListener listener,\n                                 final POIFSDocumentPath path,\n                                 final String name)\n    {\n        if ((listener == null) || (name == null) || (name.length() == 0))\n        {\n            throw new NullPointerException();\n        }\n        if (registryClosed)\n        {\n            throw new IllegalStateException();\n        }\n        registry.registerListener(listener,\n                                  (path == null) ? new POIFSDocumentPath()\n                                                 : path, name);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "COND_EXPR", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [6, 8], [1, 9], [2, 10], [7, 11], [7, 12], [8, 13], [8, 14], [9, 15], [10, 16], [11, 17], [11, 18], [12, 19], [12, 20], [14, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 6], [9, 1], [10, 2], [11, 7], [12, 7], [13, 8], [14, 8], [15, 9], [16, 10], [17, 11], [18, 11], [19, 12], [20, 12], [21, 14], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "main", "code": "    public static void main(String args[])\n        throws IOException\n    {\n        if (args.length == 0)\n        {\n            System.err\n                .println(\"at least one argument required: input filename(s)\");\n            System.exit(1);\n        }\n\n        for (int j = 0; j < args.length; j++)\n        {\n            POIFSReader         reader   = new POIFSReader();\n            POIFSReaderListener listener = new SampleListener();\n\n            reader.registerListener(listener);\n            System.out.println(\"reading \" + args[ j ]);\n            FileInputStream istream = new FileInputStream(args[ j ]);\n\n            reader.read(istream);\n            istream.close();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 8], [5, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [2, 16], [6, 17], [12, 18], [7, 19], [8, 20], [15, 21], [16, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 1], [9, 5], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 2], [17, 6], [18, 12], [19, 7], [20, 8], [21, 15], [22, 16], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "processProperties", "code": "    private void processProperties(final BlockList small_blocks,\n                                   final BlockList big_blocks,\n                                   final Iterator properties,\n                                   final POIFSDocumentPath path)\n        throws IOException\n    {\n        while (properties.hasNext())\n        {\n            Property property = ( Property ) properties.next();\n            String   name     = property.getName();\n\n            if (property.isDirectory())\n            {\n                POIFSDocumentPath new_path = new POIFSDocumentPath(path,\n                                                 new String[]\n                {\n                    name\n                });\n\n                processProperties(\n                    small_blocks, big_blocks,\n                    (( DirectoryProperty ) property).getChildren(), new_path);\n            }\n            else\n            {\n                int      startBlock = property.getStartBlock();\n                Iterator listeners  = registry.getListeners(path, name);\n\n                if (listeners.hasNext())\n                {\n                    int           size     = property.getSize();\n                    POIFSDocument document = null;\n\n                    if (property.shouldUseSmallBlocks())\n                    {\n                        document =\n                            new POIFSDocument(name, small_blocks\n                                .fetchBlocks(startBlock), size);\n                    }\n                    else\n                    {\n                        document =\n                            new POIFSDocument(name, big_blocks\n                                .fetchBlocks(startBlock), size);\n                    }\n                    while (listeners.hasNext())\n                    {\n                        POIFSReaderListener listener =\n                            ( POIFSReaderListener ) listeners.next();\n\n                        listener.processPOIFSReaderEvent(\n                            new POIFSReaderEvent(\n                                new DocumentInputStream(document), path,\n                                name));\n                    }\n                }\n                else\n                {\n\n                    if (property.shouldUseSmallBlocks())\n                    {\n                        small_blocks.fetchBlocks(startBlock);\n                    }\n                    else\n                    {\n                        big_blocks.fetchBlocks(startBlock);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [8, 15], [11, 16], [7, 17], [9, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [12, 24], [13, 25], [14, 26], [19, 27], [20, 28], [21, 29], [20, 30], [22, 31], [23, 32], [19, 33], [19, 34], [20, 35], [21, 36], [21, 37], [35, 38], [36, 39], [37, 40], [38, 41], [30, 42], [39, 43], [40, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 7], [11, 7], [12, 7], [13, 7], [14, 7], [15, 8], [16, 11], [17, 7], [18, 9], [19, 11], [20, 11], [21, 11], [22, 11], [23, 11], [24, 12], [25, 13], [26, 14], [27, 19], [28, 20], [29, 21], [30, 20], [31, 22], [32, 23], [33, 19], [34, 19], [35, 20], [36, 21], [37, 21], [38, 35], [39, 36], [40, 37], [41, 38], [42, 30], [43, 39], [44, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "POIFSReader", "code": "    public POIFSReader()\n    {\n        registry       = new POIFSReaderRegistry();\n        registryClosed = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.6-2774", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/loadbalancer/TopicLoadBalancer.java", "language": "java", "name": "org.apache.camel.processor.loadbalancer.TopicLoadBalancer", "code": "public class TopicLoadBalancer extends LoadBalancerSupport {\n\n    public void process(Exchange exchange) throws Exception {\n        List<Processor> list = getProcessors();\n        for (Processor processor : list) {\n            Exchange copy = copyExchangeStrategy(processor, exchange);\n            processor.process(copy);\n        }\n    }\n\n    /**\n     * Strategy method to copy the exchange before sending to another endpoint.\n     * Derived classes such as the {@link org.apache.camel.processor.Pipeline Pipeline}\n     * will not clone the exchange\n     * \n     * @param processor the processor that will send the exchange\n     * @param exchange  the exchange\n     * @return the current exchange if no copying is required such as for a\n     *         pipeline otherwise a new copy of the exchange is returned.\n     */\n    protected Exchange copyExchangeStrategy(Processor processor, Exchange exchange) {\n        return exchange.copy();\n    }\n\n    public boolean process(Exchange exchange, AsyncCallback callback) {\n        List<Processor> list = getProcessors();\n        for (Processor processor : list) {\n            Exchange copy = copyExchangeStrategy(processor, exchange);\n            try {\n                processor.process(copy);\n            } catch (Exception ex) {\n            }\n        }\n        callback.done(false);\n        return false;", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        List<Processor> list = getProcessors();\n        for (Processor processor : list) {\n            Exchange copy = copyExchangeStrategy(processor, exchange);\n            processor.process(copy);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "copyExchangeStrategy", "code": "    protected Exchange copyExchangeStrategy(Processor processor, Exchange exchange) {\n        return exchange.copy();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "process", "code": "    public boolean process(Exchange exchange, AsyncCallback callback) {\n        List<Processor> list = getProcessors();\n        for (Processor processor : list) {\n            Exchange copy = copyExchangeStrategy(processor, exchange);\n            try {\n                processor.process(copy);\n            } catch (Exception ex) {\n            }\n        }\n        callback.done(false);\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "CALL", "CATCH", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [7, 8], [2, 9], [2, 10], [3, 11], [9, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 7], [9, 2], [10, 2], [11, 3], [12, 9], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "jedit-4.2-4397", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "gnu/regexp/RETokenRepeated.java", "language": "java", "name": "gnu.regexp.RETokenRepeated", "code": "final class RETokenRepeated extends REToken {\n    private REToken token;\n    private int min,max;\n    private boolean stingy;\n    \n    RETokenRepeated(int subIndex, REToken token, int min, int max) {\n\tsuper(subIndex);\n\tthis.token = token;\n\tthis.min = min;\n\tthis.max = max;\n    }\n\n    /** Sets the minimal matching mode to true. */\n    void makeStingy() {\n\tstingy = true;\n    }\n    \n    /** Queries if this token has minimal matching enabled. */\n    boolean isStingy() {\n\treturn stingy;\n    }\n    \n    /**\n     * The minimum length of a repeated token is the minimum length\n     * of the token multiplied by the minimum number of times it must\n     * match.\n     */\n    int getMinimumLength() {\n\treturn (min * token.getMinimumLength());\n    }\n\n    // We do need to save every possible point, but the number of clone()\n    // invocations here is really a killer for performance on non-stingy\n    // repeat operators.  I'm open to suggestions...\n\n    // Hypothetical question: can you have a RE that matches 1 times,\n    // 3 times, 5 times, but not 2 times or 4 times?  Does having\n    // the subexpression back-reference operator allow that?\n\n    boolean match(CharIndexed input, REMatch mymatch) {\n\t// number of times we've matched so far\n\tint numRepeats = 0; \n\t\n\t// Possible positions for the next repeat to match at\n\tREMatch newMatch = mymatch;\n\tREMatch last = null;\n\tREMatch current;\n\n\t// Add the '0-repeats' index\n\t// positions.elementAt(z) == position [] in input after <<z>> matches\n\tVector positions = new Vector();\n\tpositions.addElement(newMatch);\n\t\n\t// Declare variables used in loop\n\tREMatch doables;\n\tREMatch doablesLast;\n\tREMatch recurrent;\n\n\tdo {\n\t    // Check for stingy match for each possibility.\n\t    if (stingy && (numRepeats >= min)) {\n\t\tREMatch result = matchRest(input, newMatch);\n\t\tif (result != null) {\n\t\t    mymatch.assignFrom(result);\n\t\t    return true;\n\t\t}\n\t    }\n\n\t    doables = null;\n\t    doablesLast = null;\n\n\t    // try next repeat at all possible positions\n\t    for (current = newMatch; current != null; current = current.next) {\n\t\trecurrent = (REMatch) current.clone();\n\t\tif (token.match(input, recurrent)) {\n\t\t    // add all items in current to doables array\n\t\t    if (doables == null) {\n\t\t\tdoables = recurrent;\n\t\t\tdoablesLast = recurrent;\n\t\t    } else {\n\t\t\t// Order these from longest to shortest\n\t\t\t// Start by assuming longest (more repeats)\n\t\t\tdoablesLast.next = recurrent;\n\t\t    }\n\t\t    // Find new doablesLast\n\t\t    while (doablesLast.next != null) {\n\t\t\tdoablesLast = doablesLast.next;\n\t\t    }\n\t\t}\n\t    }\n\t    // if none of the possibilities worked out, break out of do/while\n\t    if (doables == null) break;\n\t    \n\t    // reassign where the next repeat can match\n\t    newMatch = doables;\n\t    \n\t    // increment how many repeats we've successfully found\n\t    ++numRepeats;\n\t    \n\t    positions.addElement(newMatch);\n\t} while (numRepeats < max);\n\t\n\t// If there aren't enough repeats, then fail\n\tif (numRepeats < min) return false;\n\t\n\t// We're greedy, but ease off until a true match is found \n\tint posIndex = positions.size();\n\t\n\t// At this point we've either got too many or just the right amount.\n\t// See if this numRepeats works with the rest of the regexp.\n\tREMatch allResults = null;\n\tREMatch allResultsLast = null;\n\n\tREMatch results = null;\n\twhile (--posIndex >= min) {\n\t    newMatch = (REMatch) positions.elementAt(posIndex);\n\t    results = matchRest(input, newMatch);\n\t    if (results != null) {\n\t\tif (allResults == null) {\n\t\t    allResults = results;\n\t\t    allResultsLast = results;\n\t\t} else {\n\t\t    // Order these from longest to shortest\n\t\t    // Start by assuming longest (more repeats)\n\t\t    allResultsLast.next = results;\n\t\t}\n\t\t// Find new doablesLast\n\t\twhile (allResultsLast.next != null) {\n\t\t    allResultsLast = allResultsLast.next;\n\t\t}\n\t    }\n\t    // else did not match rest of the tokens, try again on smaller sample\n\t}\n\tif (allResults != null) {\n\t    mymatch.assignFrom(allResults); // does this get all?\n\t    return true;\n\t}\n\t// If we fall out, no matches.\n\treturn false;\n    }\n\n    private REMatch matchRest(CharIndexed input, final REMatch newMatch) {\n\tREMatch current, single;\n\tREMatch doneIndex = null;\n\tREMatch doneIndexLast = null;\n\t// Test all possible matches for this number of repeats\n\tfor (current = newMatch; current != null; current = current.next) {\n\t    // clone() separates a single match from the chain\n\t    single = (REMatch) current.clone();\n\t    if (next(input, single)) {\n\t\t// chain results to doneIndex\n\t\tif (doneIndex == null) {\n\t\t    doneIndex = single;\n\t\t    doneIndexLast = single;\n\t\t} else {\n\t\t    doneIndexLast.next = single;\n\t\t}\n\t\t// Find new doneIndexLast\n\t\twhile (doneIndexLast.next != null) {\n\t\t    doneIndexLast = doneIndexLast.next;\n\t\t}\n\t    }\n\t}\n\treturn doneIndex;\n    }\n\n    void dump(StringBuffer os) {\n\tos.append(\"(?:\");\n\ttoken.dumpAll(os);\n\tos.append(')');\n\tif ((max == Integer.MAX_VALUE) && (min <= 1))\n\t    os.append( (min == 0) ? '*' : '+' );\n\telse if ((min == 0) && (max == 1))\n\t    os.append('?');\n\telse {\n\t    os.append('{').append(min);\n\t    if (max > min) {\n\t\tos.append(',');\n\t\tif (max != Integer.MAX_VALUE) os.append(max);\n\t    }\n\t    os.append('}');\n\t}\n\tif (stingy) os.append('?');", "functions": [{"function_name": "makeStingy", "code": "    void makeStingy() {\n\tstingy = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isStingy", "code": "    boolean isStingy() {\n\treturn stingy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMinimumLength", "code": "    int getMinimumLength() {\n\treturn (min * token.getMinimumLength());", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\t// number of times we've matched so far\n\tint numRepeats = 0; \n\t\n\t// Possible positions for the next repeat to match at\n\tREMatch newMatch = mymatch;\n\tREMatch last = null;\n\tREMatch current;\n\n\t// Add the '0-repeats' index\n\t// positions.elementAt(z) == position [] in input after <<z>> matches\n\tVector positions = new Vector();\n\tpositions.addElement(newMatch);\n\t\n\t// Declare variables used in loop\n\tREMatch doables;\n\tREMatch doablesLast;\n\tREMatch recurrent;\n\n\tdo {\n\t    // Check for stingy match for each possibility.\n\t    if (stingy && (numRepeats >= min)) {\n\t\tREMatch result = matchRest(input, newMatch);\n\t\tif (result != null) {\n\t\t    mymatch.assignFrom(result);\n\t\t    return true;\n\t\t}\n\t    }\n\n\t    doables = null;\n\t    doablesLast = null;\n\n\t    // try next repeat at all possible positions\n\t    for (current = newMatch; current != null; current = current.next) {\n\t\trecurrent = (REMatch) current.clone();\n\t\tif (token.match(input, recurrent)) {\n\t\t    // add all items in current to doables array\n\t\t    if (doables == null) {\n\t\t\tdoables = recurrent;\n\t\t\tdoablesLast = recurrent;\n\t\t    } else {\n\t\t\t// Order these from longest to shortest\n\t\t\t// Start by assuming longest (more repeats)\n\t\t\tdoablesLast.next = recurrent;\n\t\t    }\n\t\t    // Find new doablesLast\n\t\t    while (doablesLast.next != null) {\n\t\t\tdoablesLast = doablesLast.next;\n\t\t    }\n\t\t}\n\t    }\n\t    // if none of the possibilities worked out, break out of do/while\n\t    if (doables == null) break;\n\t    \n\t    // reassign where the next repeat can match\n\t    newMatch = doables;\n\t    \n\t    // increment how many repeats we've successfully found\n\t    ++numRepeats;\n\t    \n\t    positions.addElement(newMatch);\n\t} while (numRepeats < max);\n\t\n\t// If there aren't enough repeats, then fail\n\tif (numRepeats < min) return false;\n\t\n\t// We're greedy, but ease off until a true match is found \n\tint posIndex = positions.size();\n\t\n\t// At this point we've either got too many or just the right amount.\n\t// See if this numRepeats works with the rest of the regexp.\n\tREMatch allResults = null;\n\tREMatch allResultsLast = null;\n\n\tREMatch results = null;\n\twhile (--posIndex >= min) {\n\t    newMatch = (REMatch) positions.elementAt(posIndex);\n\t    results = matchRest(input, newMatch);\n\t    if (results != null) {\n\t\tif (allResults == null) {\n\t\t    allResults = results;\n\t\t    allResultsLast = results;\n\t\t} else {\n\t\t    // Order these from longest to shortest\n\t\t    // Start by assuming longest (more repeats)\n\t\t    allResultsLast.next = results;\n\t\t}\n\t\t// Find new doablesLast\n\t\twhile (allResultsLast.next != null) {\n\t\t    allResultsLast = allResultsLast.next;\n\t\t}\n\t    }\n\t    // else did not match rest of the tokens, try again on smaller sample\n\t}\n\tif (allResults != null) {\n\t    mymatch.assignFrom(allResults); // does this get all?\n\t    return true;\n\t}\n\t// If we fall out, no matches.\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LOOP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LOOP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [1, 20], [2, 21], [3, 22], [8, 23], [8, 24], [9, 25], [0, 26], [2, 27], [21, 28], [3, 29], [4, 30], [5, 31], [6, 32], [7, 33], [23, 34], [9, 35], [9, 36], [9, 37], [13, 38], [15, 39], [17, 40], [27, 41], [2, 42], [29, 43], [3, 44], [3, 45], [9, 46], [9, 47], [35, 48], [35, 49], [36, 50], [36, 51], [36, 52], [9, 53], [9, 54], [37, 55], [29, 56], [29, 57], [43, 58], [44, 59], [49, 60], [36, 61], [51, 62], [53, 63], [54, 64], [37, 65], [37, 66], [55, 67], [56, 68], [57, 69], [45, 70], [61, 71], [36, 72], [65, 73], [68, 74], [69, 75], [61, 76], [61, 77], [65, 78], [73, 79], [66, 80], [56, 81], [57, 82], [57, 83], [57, 84], [76, 85], [77, 86], [72, 87], [78, 88], [65, 89], [85, 90], [86, 91], [76, 92], [77, 93], [77, 94], [77, 95], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 1], [21, 2], [22, 3], [23, 8], [24, 8], [25, 9], [26, 0], [27, 2], [28, 21], [29, 3], [30, 4], [31, 5], [32, 6], [33, 7], [34, 23], [35, 9], [36, 9], [37, 9], [38, 13], [39, 15], [40, 17], [41, 27], [42, 2], [43, 29], [44, 3], [45, 3], [46, 9], [47, 9], [48, 35], [49, 35], [50, 36], [51, 36], [52, 36], [53, 9], [54, 9], [55, 37], [56, 29], [57, 29], [58, 43], [59, 44], [60, 49], [61, 36], [62, 51], [63, 53], [64, 54], [65, 37], [66, 37], [67, 55], [68, 56], [69, 57], [70, 45], [71, 61], [72, 36], [73, 65], [74, 68], [75, 69], [76, 61], [77, 61], [78, 65], [79, 73], [80, 66], [81, 56], [82, 57], [83, 57], [84, 57], [85, 76], [86, 77], [87, 72], [88, 78], [89, 65], [90, 85], [91, 86], [92, 76], [93, 77], [94, 77], [95, 77], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95]]}, {"function_name": "matchRest", "code": "    private REMatch matchRest(CharIndexed input, final REMatch newMatch) {\n\tREMatch current, single;\n\tREMatch doneIndex = null;\n\tREMatch doneIndexLast = null;\n\t// Test all possible matches for this number of repeats\n\tfor (current = newMatch; current != null; current = current.next) {\n\t    // clone() separates a single match from the chain\n\t    single = (REMatch) current.clone();\n\t    if (next(input, single)) {\n\t\t// chain results to doneIndex\n\t\tif (doneIndex == null) {\n\t\t    doneIndex = single;\n\t\t    doneIndexLast = single;\n\t\t} else {\n\t\t    doneIndexLast.next = single;\n\t\t}\n\t\t// Find new doneIndexLast\n\t\twhile (doneIndexLast.next != null) {\n\t\t    doneIndexLast = doneIndexLast.next;\n\t\t}\n\t    }\n\t}\n\treturn doneIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [9, 12], [3, 13], [4, 14], [11, 15], [2, 16], [11, 17], [11, 18], [17, 19], [18, 20], [16, 21], [19, 22], [20, 23], [17, 24], [18, 25], [18, 26], [18, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 9], [13, 3], [14, 4], [15, 11], [16, 2], [17, 11], [18, 11], [19, 17], [20, 18], [21, 16], [22, 19], [23, 20], [24, 17], [25, 18], [26, 18], [27, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "dump", "code": "    void dump(StringBuffer os) {\n\tos.append(\"(?:\");\n\ttoken.dumpAll(os);\n\tos.append(')');\n\tif ((max == Integer.MAX_VALUE) && (min <= 1))\n\t    os.append( (min == 0) ? '*' : '+' );\n\telse if ((min == 0) && (max == 1))\n\t    os.append('?');\n\telse {\n\t    os.append('{').append(min);\n\t    if (max > min) {\n\t\tos.append(',');\n\t\tif (max != Integer.MAX_VALUE) os.append(max);\n\t    }\n\t    os.append('}');\n\t}\n\tif (stingy) os.append('?');", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [0, 6], [0, 7], [0, 8], [1, 9], [4, 10], [2, 11], [5, 12], [5, 13], [6, 14], [8, 15], [9, 16], [4, 17], [4, 18], [10, 19], [10, 20], [11, 21], [12, 22], [4, 23], [17, 24], [4, 25], [18, 26], [19, 27], [20, 28], [21, 29], [21, 30], [21, 31], [23, 32], [17, 33], [25, 34], [25, 35], [31, 36], [33, 37], [17, 38], [33, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 0], [7, 0], [8, 0], [9, 1], [10, 4], [11, 2], [12, 5], [13, 5], [14, 6], [15, 8], [16, 9], [17, 4], [18, 4], [19, 10], [20, 10], [21, 11], [22, 12], [23, 4], [24, 17], [25, 4], [26, 18], [27, 19], [28, 20], [29, 21], [30, 21], [31, 21], [32, 23], [33, 17], [34, 25], [35, 25], [36, 31], [37, 33], [38, 17], [39, 33], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "RETokenRepeated", "code": "    RETokenRepeated(int subIndex, REToken token, int min, int max) {\n\tsuper(subIndex);\n\tthis.token = token;\n\tthis.min = min;\n\tthis.max = max;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "lucene-2.0-5105", "repo": "lucene-2.0", "project": "lucene", "version": "2.0", "file_path": "org/apache/lucene/queryParser/FastCharStream.java", "language": "java", "name": "org.apache.lucene.queryParser.FastCharStream", "code": "public final class FastCharStream implements CharStream {\n  char[] buffer = null;\n\n\n\n\n  /** Constructs from a Reader. */\n  public FastCharStream(Reader r) {\n    input = r;\n  }\n\n  public final char readChar() throws IOException {\n    if (bufferPosition >= bufferLength)\n      refill();\n    return buffer[bufferPosition++];\n  }\n\n  private final void refill() throws IOException {\n    int newPosition = bufferLength - tokenStart;\n\n\tbuffer = new char[2048];\n\tchar[] newBuffer = new char[buffer.length*2];\n\tSystem.arraycopy(buffer, 0, newBuffer, 0, bufferLength);\n\tbuffer = newBuffer;\n      \n      System.arraycopy(buffer, tokenStart, buffer, 0, newPosition);\n    \n\n    bufferPosition = newPosition;\n    bufferStart += tokenStart;\n    tokenStart = 0;\n\n      input.read(buffer, newPosition, buffer.length-newPosition);\n    if (charsRead == -1)\n      throw new IOException(\"read past eof\");\n    else\n      bufferLength += charsRead;\n  }\n\n  public final char BeginToken() throws IOException {\n    tokenStart = bufferPosition;\n    return readChar();\n  }\n\n  public final void backup(int amount) {\n    bufferPosition -= amount;\n  }\n\n  public final String GetImage() {\n    return new String(buffer, tokenStart, bufferPosition - tokenStart);\n  }\n\n  public final char[] GetSuffix(int len) {\n    char[] value = new char[len];\n    System.arraycopy(buffer, bufferPosition - len, value, 0, len);\n    return value;\n  }\n\n  public final void Done() {\n    try {\n      input.close();\n    } catch (IOException e) {\n      System.err.println(\"Caught: \" + e + \"; ignoring.\");\n    }\n  }\n\n  public final int getColumn() {\n    return bufferStart + bufferPosition;\n  }\n  public final int getLine() {\n    return 1;\n  }\n  public final int getEndColumn() {\n    return bufferStart + bufferPosition;\n  }\n  public final int getEndLine() {\n    return 1;\n  }\n  public final int getBeginColumn() {\n    return bufferStart + tokenStart;\n  }\n  public final int getBeginLine() {\n    return 1;", "functions": [{"function_name": "readChar", "code": "  public final char readChar() throws IOException {\n    if (bufferPosition >= bufferLength)\n      refill();\n    return buffer[bufferPosition++];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "refill", "code": "  private final void refill() throws IOException {\n    int newPosition = bufferLength - tokenStart;\n\n\tbuffer = new char[2048];\n\tchar[] newBuffer = new char[buffer.length*2];\n\tSystem.arraycopy(buffer, 0, newBuffer, 0, bufferLength);\n\tbuffer = newBuffer;\n      \n      System.arraycopy(buffer, tokenStart, buffer, 0, newPosition);\n    \n\n    bufferPosition = newPosition;\n    bufferStart += tokenStart;\n    tokenStart = 0;\n\n      input.read(buffer, newPosition, buffer.length-newPosition);\n    if (charsRead == -1)\n      throw new IOException(\"read past eof\");\n    else\n      bufferLength += charsRead;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [4, 15], [5, 16], [6, 17], [7, 18], [10, 19], [12, 20], [12, 21], [3, 22], [15, 23], [2, 24], [13, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 4], [16, 5], [17, 6], [18, 7], [19, 10], [20, 12], [21, 12], [22, 3], [23, 15], [24, 2], [25, 13], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "BeginToken", "code": "  public final char BeginToken() throws IOException {\n    tokenStart = bufferPosition;\n    return readChar();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "backup", "code": "  public final void backup(int amount) {\n    bufferPosition -= amount;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "GetImage", "code": "  public final String GetImage() {\n    return new String(buffer, tokenStart, bufferPosition - tokenStart);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "GetSuffix", "code": "  public final char[] GetSuffix(int len) {\n    char[] value = new char[len];\n    System.arraycopy(buffer, bufferPosition - len, value, 0, len);\n    return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "Done", "code": "  public final void Done() {\n    try {\n      input.close();\n    } catch (IOException e) {\n      System.err.println(\"Caught: \" + e + \"; ignoring.\");", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getColumn", "code": "  public final int getColumn() {\n    return bufferStart + bufferPosition;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLine", "code": "  public final int getLine() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndColumn", "code": "  public final int getEndColumn() {\n    return bufferStart + bufferPosition;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndLine", "code": "  public final int getEndLine() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeginColumn", "code": "  public final int getBeginColumn() {\n    return bufferStart + tokenStart;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeginLine", "code": "  public final int getBeginLine() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FastCharStream", "code": "  public FastCharStream(Reader r) {\n    input = r;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7629", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/templates/TemplateList.java", "language": "java", "name": "org.apache.xalan.templates.TemplateList", "code": "public class TemplateList implements java.io.Serializable\n{\n\n  /**\n   * Construct a TemplateList object. Needs to be public so it can\n   * be invoked from the CompilingStylesheetHandler.\n   */\n  public TemplateList()\n  {\n    super();\n  }\n\n  /**\n   * Add a template to the table of named templates and/or the table of templates\n   * with match patterns.  This routine should\n   * be called in decreasing order of precedence but it checks nonetheless.\n   *\n   * @param template\n   */\n  public void setTemplate(ElemTemplate template)\n  {\n    XPath matchXPath = template.getMatch();\n    \n    if (null == template.getName() && null == matchXPath)\n    {  \n      template.error(XSLTErrorResources.ER_NEED_NAME_OR_MATCH_ATTRIB,\n          new Object[]{ \"xsl:template\" });\n    }\n    \n    if (null != template.getName())\n    {\n      ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName());\n      if (null == existingTemplate)\n      {\n        m_namedTemplates.put(template.getName(), template);\n      }\n      else\n      {\n        int existingPrecedence =\n                        existingTemplate.getStylesheetComposed().getImportCountComposed();\n        int newPrecedence = template.getStylesheetComposed().getImportCountComposed();\n        if (newPrecedence > existingPrecedence)\n        {\n          m_namedTemplates.put(template.getName(), template);\n        }\n        else if (newPrecedence == existingPrecedence)\n          template.error(XSLTErrorResources.ER_DUPLICATE_NAMED_TEMPLATE,\n                       new Object[]{ template.getName() });\n      }\n    }\n\n    \n\n    if (null != matchXPath)\n    {\n      Expression matchExpr = matchXPath.getExpression();\n\n      if (matchExpr instanceof StepPattern)\n      {\n        insertPatternInTable((StepPattern) matchExpr, template);\n      }\n      else if (matchExpr instanceof UnionPattern)\n      {\n        UnionPattern upat = (UnionPattern) matchExpr;\n        StepPattern[] pats = upat.getPatterns();\n        int n = pats.length;\n\n        for (int i = 0; i < n; i++)\n        {\n          insertPatternInTable(pats[i], template);\n        }\n      }\n      else\n      {\n\n      }\n    }\n  }\n\n  /** Flag to indicate whether in DEBUG mode          */\n  static boolean DEBUG = false;\n\n  /**\n   * Dump all patterns and elements that match those patterns\n   *\n   */\n  void dumpAssociationTables()\n  {\n\n    Enumeration associations = m_patternTable.elements();\n\n    while (associations.hasMoreElements())\n    {\n      TemplateSubPatternAssociation head =\n        (TemplateSubPatternAssociation) associations.nextElement();\n\n      while (null != head)\n      {\n        System.out.print(\"(\" + head.getTargetString() + \", \"\n                         + head.getPattern() + \")\");\n\n        head = head.getNext();\n      }\n\n      System.out.println(\"\\n.....\");\n    }\n\n    TemplateSubPatternAssociation head = m_wildCardPatterns;\n\n    System.out.print(\"wild card list: \");\n\n    while (null != head)\n    {\n      System.out.print(\"(\" + head.getTargetString() + \", \"\n                       + head.getPattern() + \")\");\n\n      head = head.getNext();\n    }\n\n    System.out.println(\"\\n.....\");\n  }\n\n  /**\n   * After all templates have been added, this function\n   * should be called.\n   */\n  public void compose(StylesheetRoot sroot)\n  {\n\n    if (DEBUG)\n    {\n      System.out.println(\"Before wildcard insert...\");\n      dumpAssociationTables();\n    }\n\n    if (null != m_wildCardPatterns)\n    {\n      Enumeration associations = m_patternTable.elements();\n\n      while (associations.hasMoreElements())\n      {\n        TemplateSubPatternAssociation head =\n          (TemplateSubPatternAssociation) associations.nextElement();\n        TemplateSubPatternAssociation wild = m_wildCardPatterns;\n\n        while (null != wild)\n        {\n          try\n          {\n            head = insertAssociationIntoList(\n              head, (TemplateSubPatternAssociation) wild.clone(), true);\n          }\n          catch (CloneNotSupportedException cnse){}\n\n          wild = wild.getNext();\n        }\n      }\n    }\n\n    if (DEBUG)\n    {\n      System.out.println(\"After wildcard insert...\");\n      dumpAssociationTables();\n    }\n  }\n\n  /**\n   * Insert the given TemplateSubPatternAssociation into the the linked\n   * list.  Sort by import precedence, then priority, then by document order.\n   *\n   * @param head The first TemplateSubPatternAssociation in the linked list.\n   * @param item The item that we want to insert into the proper place.\n   * @param isWildCardInsert <code>true</code> if we are inserting a wild card \n   *             template onto this list.\n   * @return the new head of the list.\n   */\n  private TemplateSubPatternAssociation\n              insertAssociationIntoList(TemplateSubPatternAssociation head,\n                                         TemplateSubPatternAssociation item,\n                                         boolean isWildCardInsert)\n  {\n\n\n    double priority = getPriorityOrScore(item);\n    double workPriority;\n    int importLevel = item.getImportLevel();\n    int docOrder = item.getDocOrderPos();\n    TemplateSubPatternAssociation insertPoint = head;\n    TemplateSubPatternAssociation next;\n\n\n    while (true)\n    {\n      next = insertPoint.getNext();\n      if (null == next)\n        break;\n      else\n      {\n        workPriority = getPriorityOrScore(next);\n        if (importLevel > next.getImportLevel())\n          break;\n        else if (importLevel < next.getImportLevel()){\n          insertPoint = next;\n          break;\n        }else if (priority < workPriority){\n          insertPoint = next;\n          break;\n        }else\n          insertPoint = next;\n      }\n    }\n\n    if(true){\n      workPriority = getPriorityOrScore(insertPoint);\n      if (importLevel > insertPoint.getImportLevel())\n        insertBefore = true;\n      else if (importLevel < insertPoint.getImportLevel())\n        insertBefore = false;\n      else if (priority > workPriority)\n        insertBefore = true;\n      else if (priority < workPriority)\n        insertBefore = false;\n      else if (docOrder >= insertPoint.getDocOrderPos())\n        insertBefore = true;\n      else\n        insertBefore = false;\n    }\n    else\n      insertBefore = false;\n\n    \n    if (isWildCardInsert)\n    {\n      if (insertBefore)\n      {\n        item.setNext(insertPoint);\n\n        String key = insertPoint.getTargetString();\n\n        item.setTargetString(key);\n        putHead(key, item);\n        return item;\n      }\n      else\n      {\n        item.setNext(next);\n        insertPoint.setNext(item);\n        return head;\n      }\n    }\n    else\n    {\n      if (insertBefore)\n      {\n        item.setNext(insertPoint);\n\n        if (insertPoint.isWild() || item.isWild())\n          m_wildCardPatterns = item;\n        else\n          putHead(item.getTargetString(), item);\n        return item;\n      }\n      else\n      {\n        item.setNext(next);\n        insertPoint.setNext(item);\n        return head;\n      }\n    }\n  }\n\n  /**\n   * Add a template to the template list.\n   *\n   * @param pattern\n   * @param template\n   */\n  private void insertPatternInTable(StepPattern pattern, ElemTemplate template)\n  {\n\n    String target = pattern.getTargetString();\n\n    if (null != target)\n    {\n      String pstring = template.getMatch().getPatternString();\n      TemplateSubPatternAssociation association =\n        new TemplateSubPatternAssociation(template, pattern, pstring);\n\n      boolean isWildCard = association.isWild();\n      TemplateSubPatternAssociation head = isWildCard\n                                           ? m_wildCardPatterns\n                                           : getHead(target);\n\n      if (null == head)\n      {\n        if (isWildCard)\n          m_wildCardPatterns = association;\n        else\n          putHead(target, association);\n      }\n      else\n      {\n        insertAssociationIntoList(head, association, false);\n      }\n    }\n  }\n\n  /**\n   * Given a match pattern and template association, return the \n   * score of that match.  This score or priority can always be \n   * statically calculated.\n   *\n   * @param matchPat The match pattern to template association.\n   *\n   * @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST}, \n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE}, \n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD}, \n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_QNAME}, or\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_OTHER}, or \n   *         the value defined by the priority attribute of the template.\n   *\n   */\n  private double getPriorityOrScore(TemplateSubPatternAssociation matchPat)\n  {\n\n    double priority = matchPat.getTemplate().getPriority();\n\n    if (priority == XPath.MATCH_SCORE_NONE)\n    {\n      Expression ex = matchPat.getStepPattern();\n\n      if (ex instanceof NodeTest)\n      {\n        return ((NodeTest) ex).getDefaultScore();\n      }\n    }\n\n    return priority;\n  }\n\n  /**\n   * Locate a named template.\n   *\n   * @param qname  Qualified name of the template.\n   *\n   * @return Template argument with the requested name, or null if not found.\n   */\n  public ElemTemplate getTemplate(QName qname)\n  {\n    return (ElemTemplate) m_namedTemplates.get(qname);\n  }\n\n  /**\n   * Get the head of the most likely list of associations to check, based on \n   * the name and type of the targetNode argument.\n   *\n   * @param xctxt The XPath runtime context.\n   * @param targetNode The target node that will be checked for a match.\n   * @param dtm The dtm owner for the target node.\n   *\n   * @return The head of a linked list that contains all possible match pattern to \n   * template associations.\n   */\n  public TemplateSubPatternAssociation getHead(XPathContext xctxt, \n                                               int targetNode, DTM dtm)\n  {\n    short targetNodeType = dtm.getNodeType(targetNode);\n    TemplateSubPatternAssociation head;\n\n    switch (targetNodeType)\n    {\n    case DTM.ELEMENT_NODE :\n    case DTM.ATTRIBUTE_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.TEXT_NODE :\n    case DTM.CDATA_SECTION_NODE :\n      head = m_textPatterns;\n      break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    case DTM.ENTITY_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n      break;\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.COMMENT_NODE :\n      head = m_commentPatterns;\n      break;\n    case DTM.DOCUMENT_NODE :\n    case DTM.DOCUMENT_FRAGMENT_NODE :\n      head = m_docPatterns;\n      break;\n    case DTM.NOTATION_NODE :\n    default :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n    }\n\n    return (null == head) ? m_wildCardPatterns : head;\n  }\n  \n  /**\n   * Given a target element, find the template that best\n   * matches in the given XSL document, according\n   * to the rules specified in the xsl draft.  This variation of getTemplate \n   * assumes the current node and current expression node have already been \n   * pushed. \n   *\n   * @param xctxt\n   * @param targetNode\n   * @param mode A string indicating the display mode.\n   * @param maxImportLevel The maximum importCountComposed that we should consider or -1\n   *        if we should consider all import levels.  This is used by apply-imports to\n   *        access templates that have been overridden.\n   * @param quietConflictWarnings\n   * @return Rule that best matches targetElem.\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   */\n  public ElemTemplate getTemplateFast(XPathContext xctxt,\n                                int targetNode,\n                                int expTypeID,\n                                QName mode,\n                                int maxImportLevel,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n    \n    TemplateSubPatternAssociation head;\n\n    switch (dtm.getNodeType(targetNode))\n    {\n    case DTM.ELEMENT_NODE :\n    case DTM.ATTRIBUTE_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalNameFromExpandedNameID(expTypeID));\n      break;\n    case DTM.TEXT_NODE :\n    case DTM.CDATA_SECTION_NODE :\n      head = m_textPatterns;\n      break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    case DTM.ENTITY_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n      break;\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.COMMENT_NODE :\n      head = m_commentPatterns;\n      break;\n    case DTM.DOCUMENT_NODE :\n    case DTM.DOCUMENT_FRAGMENT_NODE :\n      head = m_docPatterns;\n      break;\n    case DTM.NOTATION_NODE :\n    default :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n    }\n\n    if(null == head)\n    {\n      head = m_wildCardPatterns;\n      if(null == head)\n        return null;\n    }                                              \n\n    xctxt.pushNamespaceContextNull();\n    try\n    {\n      do\n      {\n        if ( (maxImportLevel > -1) && (head.getImportLevel() > maxImportLevel) )\n        {\n          continue;\n        }\n        ElemTemplate template = head.getTemplate();        \n        xctxt.setNamespaceContext(template);\n        \n        if ((head.m_stepPattern.execute(xctxt, targetNode, dtm, expTypeID) != NodeTest.SCORE_NONE)\n                && head.matchMode(mode))\n        {\n          if (quietConflictWarnings)\n            checkConflicts(head, xctxt, targetNode, mode);\n\n          return template;\n        }\n      }\n      while (null != (head = head.getNext()));\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n    }\n\n    return null;\n  }\n  /**\n   * Given a target element, find the template that best\n   * matches in the given XSL document, according\n   * to the rules specified in the xsl draft.\n   *\n   * @param xctxt\n   * @param targetNode\n   * @param mode A string indicating the display mode.\n   * @param quietConflictWarnings\n   * @return Rule that best matches targetElem.\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   */\n  public ElemTemplate getTemplate(XPathContext xctxt,\n                                int targetNode,\n                                QName mode,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n\n    TemplateSubPatternAssociation head = getHead(xctxt, targetNode, dtm);\n\n    if (null != head)\n    {\n      xctxt.pushNamespaceContextNull();\n      xctxt.pushCurrentNodeAndExpression(targetNode, targetNode);\n      try\n      {\n        do\n        {\n          ElemTemplate template = head.getTemplate();        \n          xctxt.setNamespaceContext(template);\n          \n          if ((head.m_stepPattern.execute(xctxt, targetNode) != NodeTest.SCORE_NONE)\n                  && head.matchMode(mode))\n          {\n            if (quietConflictWarnings)\n              checkConflicts(head, xctxt, targetNode, mode);\n\n            return template;\n          }\n        }\n        while (null != (head = head.getNext()));\n      }\n      finally\n      {\n        xctxt.popCurrentNodeAndExpression();\n        xctxt.popNamespaceContext();\n      }\n    }\n\n    return null;\n  }\n  /**\n   * Given a target element, find the template that best\n   * matches in the given XSL document, according\n   * to the rules specified in the xsl draft.\n   *\n   * @param xctxt\n   * @param targetNode\n   * @param mode A string indicating the display mode.\n   * @param maxImportLevel The maximum importCountComposed that we should consider or -1\n   *        if we should consider all import levels.  This is used by apply-imports to\n   *        access templates that have been overridden.\n   * @param maxEndImportLevel The count of composed imports\n   * @param quietConflictWarnings\n   * @return Rule that best matches targetElem.\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   */\n  public ElemTemplate getTemplate(XPathContext xctxt,\n                                int targetNode,\n                                QName mode,\n                                int maxImportLevel, int endImportLevel,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n\n    TemplateSubPatternAssociation head = getHead(xctxt, targetNode, dtm);\n\n    if (null != head)\n    {\n      xctxt.pushNamespaceContextNull();\n      xctxt.pushCurrentNodeAndExpression(targetNode, targetNode);\n      try\n      {\n        do\n        {\n          if ( (maxImportLevel > -1) && (head.getImportLevel() > maxImportLevel))\n          {\n            continue;\n          }\n          if (head.getImportLevel()<= maxImportLevel - endImportLevel)\n            return null;\n          ElemTemplate template = head.getTemplate();        \n          xctxt.setNamespaceContext(template);\n          \n          if ((head.m_stepPattern.execute(xctxt, targetNode) != NodeTest.SCORE_NONE)\n                  && head.matchMode(mode))\n          {\n            if (quietConflictWarnings)\n              checkConflicts(head, xctxt, targetNode, mode);\n\n            return template;\n          }\n        }\n        while (null != (head = head.getNext()));\n      }\n      finally\n      {\n        xctxt.popCurrentNodeAndExpression();\n        xctxt.popNamespaceContext();\n      }\n    }\n\n    return null;\n  }\n  /**\n   * Get a TemplateWalker for use by a compiler.  See the documentation for\n   * the TreeWalker inner class for further details.\n   */\n  public TemplateWalker getWalker()\n  {\n    return new TemplateWalker();\n  }\n\n  /**\n   * Check for match conflicts, and warn the stylesheet author.\n   *\n   * @param head Template pattern\n   * @param xctxt Current XPath context\n   * @param targetNode Node matching the pattern\n   */\n  private void checkConflicts(TemplateSubPatternAssociation head,\n                              XPathContext xctxt, int targetNode, QName mode)\n  {\n\n  }\n\n  /**\n   * Add object to vector if not already there.\n   *\n   * @param obj\n   * @param v\n   */\n  private void addObjectIfNotFound(Object obj, Vector v)\n  {\n\n    int n = v.size();\n    boolean addIt = true;\n\n    for (int i = 0; i < n; i++)\n    {\n      if (v.elementAt(i) == obj)\n      {\n        addIt = false;\n\n        break;\n      }\n    }\n\n    if (addIt)\n    {\n      v.addElement(obj);\n    }\n  }\n\n  /**\n   * Keyed on string macro names, and holding values\n   * that are macro elements in the XSL DOM tree.\n   * Initialized in initMacroLookupTable, and used in\n   * findNamedTemplate.\n   * @serial\n   */\n  private Hashtable m_namedTemplates = new Hashtable(89);\n\n  /**\n   * This table is keyed on the target elements\n   * of patterns, and contains linked lists of\n   * the actual patterns that match the target element\n   * to some degree of specifity.\n   * @serial\n   */\n  private Hashtable m_patternTable = new Hashtable(89);\n\n  /** Wildcard patterns.\n   *  @serial          */\n  private TemplateSubPatternAssociation m_wildCardPatterns = null;\n\n  /** Text Patterns.\n   *  @serial          */\n  private TemplateSubPatternAssociation m_textPatterns = null;\n\n  /** Root document Patterns.\n   *  @serial          */\n  private TemplateSubPatternAssociation m_docPatterns = null;\n\n  /** Comment Patterns.\n   *  @serial          */\n  private TemplateSubPatternAssociation m_commentPatterns = null;\n\n  /**\n   * Get table of named Templates.\n   * These are keyed on template names, and holding values\n   * that are template elements.\n   *\n   * @return A Hashtable dictionary that contains {@link java.lang.String}s \n   * as the keys, and {@link org.apache.xalan.templates.ElemTemplate}s as the \n   * values. \n   */\n  private Hashtable getNamedTemplates()\n  {\n    return m_namedTemplates;\n  }\n\n  /**\n   * Set table of named Templates.\n   * These are keyed on string macro names, and holding values\n   * that are template elements in the XSL DOM tree.\n   *\n   * @param v Hashtable dictionary that contains {@link java.lang.String}s \n   * as the keys, and {@link org.apache.xalan.templates.ElemTemplate}s as the \n   * values.\n   */\n  private void setNamedTemplates(Hashtable v)\n  {\n    m_namedTemplates = v;\n  }\n\n  /**\n   * Get the head of the assocation list that is keyed by target.\n   *\n   * @param key The name of a node. \n   *\n   * @return The head of a linked list that contains all possible match pattern to \n   * template associations for the given key.\n   */\n  private TemplateSubPatternAssociation getHead(String key)\n  {\n    return (TemplateSubPatternAssociation) m_patternTable.get(key);\n  }\n\n  /**\n   * Get the head of the assocation list that is keyed by target.\n   *\n   * @param key\n   * @param assoc\n   */\n  private void putHead(String key, TemplateSubPatternAssociation assoc)\n  {\n\n    if (key.equals(PsuedoNames.PSEUDONAME_TEXT))\n      m_textPatterns = assoc;\n    else if (key.equals(PsuedoNames.PSEUDONAME_ROOT))\n      m_docPatterns = assoc;\n    else if (key.equals(PsuedoNames.PSEUDONAME_COMMENT))\n      m_commentPatterns = assoc;\n\n    m_patternTable.put(key, assoc);\n  }\n\n  /**\n   * An inner class used by a compiler to iterate over all of the ElemTemplates\n   * stored in this TemplateList.  The compiler can replace returned templates\n   * with their compiled equivalent.\n   */\n  public class TemplateWalker\n  {\n    private Enumeration hashIterator;\n    private boolean inPatterns;\n    private TemplateSubPatternAssociation curPattern;\n\n    private Hashtable m_compilerCache = new Hashtable();\n\n    private TemplateWalker()\n    {\n      hashIterator = m_patternTable.elements();\n      inPatterns = true;\n      curPattern = null;\n    }\n\n    public ElemTemplate next()\n    {\n\n      ElemTemplate retValue = null;\n      ElemTemplate ct;\n\n      while (true)\n      {\n        if (inPatterns)\n        {\n          if (null != curPattern)\n            curPattern = curPattern.getNext();\n\n          if (null != curPattern)\n            retValue = curPattern.getTemplate();\n          else\n          {\n            if (hashIterator.hasMoreElements())\n            {\n              curPattern = (TemplateSubPatternAssociation) hashIterator.nextElement();\n              retValue =  curPattern.getTemplate();\n            }\n            else\n            {\n              inPatterns = false;\n              hashIterator = m_namedTemplates.elements();\n            }\n          }\n        }\n\n        if (!inPatterns)\n        {\n          if (hashIterator.hasMoreElements())\n            retValue = (ElemTemplate) hashIterator.nextElement();\n          else\n            return null;\n        }\n\n        ct = (ElemTemplate) m_compilerCache.get(new Integer(retValue.getUid()));\n        if (null == ct)\n        {\n          m_compilerCache.put(new Integer(retValue.getUid()), retValue);\n          return retValue;", "functions": [{"function_name": "setTemplate", "code": "  public void setTemplate(ElemTemplate template)\n  {\n    XPath matchXPath = template.getMatch();\n    \n    if (null == template.getName() && null == matchXPath)\n    {  \n      template.error(XSLTErrorResources.ER_NEED_NAME_OR_MATCH_ATTRIB,\n          new Object[]{ \"xsl:template\" });\n    }\n    \n    if (null != template.getName())\n    {\n      ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName());\n      if (null == existingTemplate)\n      {\n        m_namedTemplates.put(template.getName(), template);\n      }\n      else\n      {\n        int existingPrecedence =\n                        existingTemplate.getStylesheetComposed().getImportCountComposed();\n        int newPrecedence = template.getStylesheetComposed().getImportCountComposed();\n        if (newPrecedence > existingPrecedence)\n        {\n          m_namedTemplates.put(template.getName(), template);\n        }\n        else if (newPrecedence == existingPrecedence)\n          template.error(XSLTErrorResources.ER_DUPLICATE_NAMED_TEMPLATE,\n                       new Object[]{ template.getName() });\n      }\n    }\n\n    \n\n    if (null != matchXPath)\n    {\n      Expression matchExpr = matchXPath.getExpression();\n\n      if (matchExpr instanceof StepPattern)\n      {\n        insertPatternInTable((StepPattern) matchExpr, template);\n      }\n      else if (matchExpr instanceof UnionPattern)\n      {\n        UnionPattern upat = (UnionPattern) matchExpr;\n        StepPattern[] pats = upat.getPatterns();\n        int n = pats.length;\n\n        for (int i = 0; i < n; i++)\n        {\n          insertPatternInTable(pats[i], template);\n        }\n      }\n      else\n      {", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [1, 9], [1, 10], [6, 11], [2, 12], [2, 13], [7, 14], [7, 15], [8, 16], [8, 17], [4, 18], [9, 19], [9, 20], [12, 21], [3, 22], [16, 23], [17, 24], [17, 25], [19, 26], [10, 27], [12, 28], [12, 29], [12, 30], [21, 31], [19, 32], [19, 33], [19, 34], [19, 35], [9, 36], [28, 37], [28, 38], [12, 39], [13, 40], [32, 41], [37, 42], [29, 43], [30, 44], [39, 45], [40, 46], [22, 47], [34, 48], [37, 49], [28, 50], [43, 51], [44, 52], [32, 53], [32, 54], [50, 55], [49, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 1], [10, 1], [11, 6], [12, 2], [13, 2], [14, 7], [15, 7], [16, 8], [17, 8], [18, 4], [19, 9], [20, 9], [21, 12], [22, 3], [23, 16], [24, 17], [25, 17], [26, 19], [27, 10], [28, 12], [29, 12], [30, 12], [31, 21], [32, 19], [33, 19], [34, 19], [35, 19], [36, 9], [37, 28], [38, 28], [39, 12], [40, 13], [41, 32], [42, 37], [43, 29], [44, 30], [45, 39], [46, 40], [47, 22], [48, 34], [49, 37], [50, 28], [51, 43], [52, 44], [53, 32], [54, 32], [55, 50], [56, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "dumpAssociationTables", "code": "  void dumpAssociationTables()\n  {\n\n    Enumeration associations = m_patternTable.elements();\n\n    while (associations.hasMoreElements())\n    {\n      TemplateSubPatternAssociation head =\n        (TemplateSubPatternAssociation) associations.nextElement();\n\n      while (null != head)\n      {\n        System.out.print(\"(\" + head.getTargetString() + \", \"\n                         + head.getPattern() + \")\");\n\n        head = head.getNext();\n      }\n\n      System.out.println(\"\\n.....\");\n    }\n\n    TemplateSubPatternAssociation head = m_wildCardPatterns;\n\n    System.out.print(\"wild card list: \");\n\n    while (null != head)\n    {\n      System.out.print(\"(\" + head.getTargetString() + \", \"\n                       + head.getPattern() + \")\");\n\n      head = head.getNext();\n    }\n\n    System.out.println(\"\\n.....\");", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [3, 8], [5, 9], [6, 10], [7, 11], [3, 12], [3, 13], [4, 14], [1, 15], [1, 16], [3, 17], [12, 18], [15, 19], [16, 20], [17, 21], [18, 22], [20, 23], [20, 24], [12, 25], [12, 26], [13, 27], [24, 28], [24, 29], [25, 30], [26, 31], [29, 32], [29, 33], [31, 34], [31, 35], [33, 36], [33, 37], [35, 38], [35, 39], [39, 40], [39, 41], [41, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 3], [9, 5], [10, 6], [11, 7], [12, 3], [13, 3], [14, 4], [15, 1], [16, 1], [17, 3], [18, 12], [19, 15], [20, 16], [21, 17], [22, 18], [23, 20], [24, 20], [25, 12], [26, 12], [27, 13], [28, 24], [29, 24], [30, 25], [31, 26], [32, 29], [33, 29], [34, 31], [35, 31], [36, 33], [37, 33], [38, 35], [39, 35], [40, 39], [41, 39], [42, 41], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot)\n  {\n\n    if (DEBUG)\n    {\n      System.out.println(\"Before wildcard insert...\");\n      dumpAssociationTables();\n    }\n\n    if (null != m_wildCardPatterns)\n    {\n      Enumeration associations = m_patternTable.elements();\n\n      while (associations.hasMoreElements())\n      {\n        TemplateSubPatternAssociation head =\n          (TemplateSubPatternAssociation) associations.nextElement();\n        TemplateSubPatternAssociation wild = m_wildCardPatterns;\n\n        while (null != wild)\n        {\n          try\n          {\n            head = insertAssociationIntoList(\n              head, (TemplateSubPatternAssociation) wild.clone(), true);\n          }\n          catch (CloneNotSupportedException cnse){}\n\n          wild = wild.getNext();\n        }\n      }\n    }\n\n    if (DEBUG)\n    {\n      System.out.println(\"After wildcard insert...\");\n      dumpAssociationTables();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [1, 9], [1, 10], [6, 11], [3, 12], [3, 13], [10, 14], [6, 15], [6, 16], [6, 17], [7, 18], [13, 19], [15, 20], [15, 21], [20, 22], [15, 23], [21, 24], [17, 25], [23, 26], [21, 27], [27, 28], [28, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 1], [10, 1], [11, 6], [12, 3], [13, 3], [14, 10], [15, 6], [16, 6], [17, 6], [18, 7], [19, 13], [20, 15], [21, 15], [22, 20], [23, 15], [24, 21], [25, 17], [26, 23], [27, 21], [28, 27], [29, 28], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "insertAssociationIntoList", "code": "  private TemplateSubPatternAssociation\n              insertAssociationIntoList(TemplateSubPatternAssociation head,\n                                         TemplateSubPatternAssociation item,\n                                         boolean isWildCardInsert)\n  {\n\n\n    double priority = getPriorityOrScore(item);\n    double workPriority;\n    int importLevel = item.getImportLevel();\n    int docOrder = item.getDocOrderPos();\n    TemplateSubPatternAssociation insertPoint = head;\n    TemplateSubPatternAssociation next;\n\n\n    while (true)\n    {\n      next = insertPoint.getNext();\n      if (null == next)\n        break;\n      else\n      {\n        workPriority = getPriorityOrScore(next);\n        if (importLevel > next.getImportLevel())\n          break;\n        else if (importLevel < next.getImportLevel()){\n          insertPoint = next;\n          break;\n        }else if (priority < workPriority){\n          insertPoint = next;\n          break;\n        }else\n          insertPoint = next;\n      }\n    }\n\n    if(true){\n      workPriority = getPriorityOrScore(insertPoint);\n      if (importLevel > insertPoint.getImportLevel())\n        insertBefore = true;\n      else if (importLevel < insertPoint.getImportLevel())\n        insertBefore = false;\n      else if (priority > workPriority)\n        insertBefore = true;\n      else if (priority < workPriority)\n        insertBefore = false;\n      else if (docOrder >= insertPoint.getDocOrderPos())\n        insertBefore = true;\n      else\n        insertBefore = false;\n    }\n    else\n      insertBefore = false;\n\n    \n    if (isWildCardInsert)\n    {\n      if (insertBefore)\n      {\n        item.setNext(insertPoint);\n\n        String key = insertPoint.getTargetString();\n\n        item.setTargetString(key);\n        putHead(key, item);\n        return item;\n      }\n      else\n      {\n        item.setNext(next);\n        insertPoint.setNext(item);\n        return head;\n      }\n    }\n    else\n    {\n      if (insertBefore)\n      {\n        item.setNext(insertPoint);\n\n        if (insertPoint.isWild() || item.isWild())\n          m_wildCardPatterns = item;\n        else\n          putHead(item.getTargetString(), item);\n        return item;\n      }\n      else\n      {\n        item.setNext(next);\n        insertPoint.setNext(item);\n        return head;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "ASSIGN", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "RETURN", "RETURN", "IF", "RETURN", "RETURN", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [3, 14], [1, 15], [1, 16], [2, 17], [2, 18], [3, 19], [6, 20], [7, 21], [9, 22], [17, 23], [18, 24], [18, 25], [2, 26], [19, 27], [19, 28], [3, 29], [15, 30], [15, 31], [15, 32], [16, 33], [16, 34], [16, 35], [24, 36], [24, 37], [18, 38], [25, 39], [26, 40], [19, 41], [28, 42], [29, 43], [15, 44], [15, 45], [32, 46], [15, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [36, 53], [36, 54], [24, 55], [37, 56], [38, 57], [41, 58], [41, 59], [41, 60], [19, 61], [32, 62], [32, 63], [46, 64], [46, 65], [35, 66], [53, 67], [53, 68], [36, 69], [55, 70], [58, 71], [58, 72], [60, 73], [61, 74], [62, 75], [67, 76], [53, 77], [69, 78], [71, 79], [58, 80], [72, 81], [67, 82], [67, 83], [76, 84], [77, 85], [71, 86], [71, 87], [58, 88], [82, 89], [83, 90], [71, 91], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 3], [15, 1], [16, 1], [17, 2], [18, 2], [19, 3], [20, 6], [21, 7], [22, 9], [23, 17], [24, 18], [25, 18], [26, 2], [27, 19], [28, 19], [29, 3], [30, 15], [31, 15], [32, 15], [33, 16], [34, 16], [35, 16], [36, 24], [37, 24], [38, 18], [39, 25], [40, 26], [41, 19], [42, 28], [43, 29], [44, 15], [45, 15], [46, 32], [47, 15], [48, 16], [49, 16], [50, 16], [51, 16], [52, 16], [53, 36], [54, 36], [55, 24], [56, 37], [57, 38], [58, 41], [59, 41], [60, 41], [61, 19], [62, 32], [63, 32], [64, 46], [65, 46], [66, 35], [67, 53], [68, 53], [69, 36], [70, 55], [71, 58], [72, 58], [73, 60], [74, 61], [75, 62], [76, 67], [77, 53], [78, 69], [79, 71], [80, 58], [81, 72], [82, 67], [83, 67], [84, 76], [85, 77], [86, 71], [87, 71], [88, 58], [89, 82], [90, 83], [91, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91]]}, {"function_name": "insertPatternInTable", "code": "  private void insertPatternInTable(StepPattern pattern, ElemTemplate template)\n  {\n\n    String target = pattern.getTargetString();\n\n    if (null != target)\n    {\n      String pstring = template.getMatch().getPatternString();\n      TemplateSubPatternAssociation association =\n        new TemplateSubPatternAssociation(template, pattern, pstring);\n\n      boolean isWildCard = association.isWild();\n      TemplateSubPatternAssociation head = isWildCard\n                                           ? m_wildCardPatterns\n                                           : getHead(target);\n\n      if (null == head)\n      {\n        if (isWildCard)\n          m_wildCardPatterns = association;\n        else\n          putHead(target, association);\n      }\n      else\n      {\n        insertAssociationIntoList(head, association, false);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [2, 12], [6, 13], [6, 14], [13, 15], [7, 16], [8, 17], [9, 18], [10, 19], [6, 20], [16, 21], [19, 22], [20, 23], [14, 24], [14, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 2], [13, 6], [14, 6], [15, 13], [16, 7], [17, 8], [18, 9], [19, 10], [20, 6], [21, 16], [22, 19], [23, 20], [24, 14], [25, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getPriorityOrScore", "code": "  private double getPriorityOrScore(TemplateSubPatternAssociation matchPat)\n  {\n\n    double priority = matchPat.getTemplate().getPriority();\n\n    if (priority == XPath.MATCH_SCORE_NONE)\n    {\n      Expression ex = matchPat.getStepPattern();\n\n      if (ex instanceof NodeTest)\n      {\n        return ((NodeTest) ex).getDefaultScore();\n      }\n    }\n\n    return priority;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [3, 8], [6, 9], [8, 10], [6, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 3], [9, 6], [10, 8], [11, 6], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getTemplate", "code": "  public ElemTemplate getTemplate(QName qname)\n  {\n    return (ElemTemplate) m_namedTemplates.get(qname);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getHead", "code": "  public TemplateSubPatternAssociation getHead(XPathContext xctxt, \n                                               int targetNode, DTM dtm)\n  {\n    short targetNodeType = dtm.getNodeType(targetNode);\n    TemplateSubPatternAssociation head;\n\n    switch (targetNodeType)\n    {\n    case DTM.ELEMENT_NODE :\n    case DTM.ATTRIBUTE_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.TEXT_NODE :\n    case DTM.CDATA_SECTION_NODE :\n      head = m_textPatterns;\n      break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    case DTM.ENTITY_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n      break;\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.COMMENT_NODE :\n      head = m_commentPatterns;\n      break;\n    case DTM.DOCUMENT_NODE :\n    case DTM.DOCUMENT_FRAGMENT_NODE :\n      head = m_docPatterns;\n      break;\n    case DTM.NOTATION_NODE :\n    default :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n    }\n\n    return (null == head) ? m_wildCardPatterns : head;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [4, 16], [9, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [18, 25], [21, 26], [22, 27], [24, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 4], [17, 9], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 18], [26, 21], [27, 22], [28, 24], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getTemplateFast", "code": "  public ElemTemplate getTemplateFast(XPathContext xctxt,\n                                int targetNode,\n                                int expTypeID,\n                                QName mode,\n                                int maxImportLevel,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n    \n    TemplateSubPatternAssociation head;\n\n    switch (dtm.getNodeType(targetNode))\n    {\n    case DTM.ELEMENT_NODE :\n    case DTM.ATTRIBUTE_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalNameFromExpandedNameID(expTypeID));\n      break;\n    case DTM.TEXT_NODE :\n    case DTM.CDATA_SECTION_NODE :\n      head = m_textPatterns;\n      break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    case DTM.ENTITY_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n      break;\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n      head = (TemplateSubPatternAssociation) m_patternTable.get(\n        dtm.getLocalName(targetNode));\n      break;\n    case DTM.COMMENT_NODE :\n      head = m_commentPatterns;\n      break;\n    case DTM.DOCUMENT_NODE :\n    case DTM.DOCUMENT_FRAGMENT_NODE :\n      head = m_docPatterns;\n      break;\n    case DTM.NOTATION_NODE :\n    default :\n      head = (TemplateSubPatternAssociation) m_patternTable.get();\n    }\n\n    if(null == head)\n    {\n      head = m_wildCardPatterns;\n      if(null == head)\n        return null;\n    }                                              \n\n    xctxt.pushNamespaceContextNull();\n    try\n    {\n      do\n      {\n        if ( (maxImportLevel > -1) && (head.getImportLevel() > maxImportLevel) )\n        {\n          continue;\n        }\n        ElemTemplate template = head.getTemplate();        \n        xctxt.setNamespaceContext(template);\n        \n        if ((head.m_stepPattern.execute(xctxt, targetNode, dtm, expTypeID) != NodeTest.SCORE_NONE)\n                && head.matchMode(mode))\n        {\n          if (quietConflictWarnings)\n            checkConflicts(head, xctxt, targetNode, mode);\n\n          return template;\n        }\n      }\n      while (null != (head = head.getNext()));\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LOOP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "VAR_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [0, 15], [3, 16], [4, 17], [2, 18], [14, 19], [3, 20], [16, 21], [4, 22], [4, 23], [4, 24], [4, 25], [4, 26], [4, 27], [14, 28], [14, 29], [14, 30], [19, 31], [19, 32], [20, 33], [20, 34], [3, 35], [4, 36], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [28, 43], [14, 44], [30, 45], [31, 46], [33, 47], [34, 48], [28, 49], [28, 50], [43, 51], [43, 52], [29, 53], [30, 54], [45, 55], [45, 56], [36, 57], [39, 58], [40, 59], [42, 60], [52, 61], [55, 62], [56, 63], [58, 64], [60, 65], [50, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 0], [16, 3], [17, 4], [18, 2], [19, 14], [20, 3], [21, 16], [22, 4], [23, 4], [24, 4], [25, 4], [26, 4], [27, 4], [28, 14], [29, 14], [30, 14], [31, 19], [32, 19], [33, 20], [34, 20], [35, 3], [36, 4], [37, 4], [38, 4], [39, 4], [40, 4], [41, 4], [42, 4], [43, 28], [44, 14], [45, 30], [46, 31], [47, 33], [48, 34], [49, 28], [50, 28], [51, 43], [52, 43], [53, 29], [54, 30], [55, 45], [56, 45], [57, 36], [58, 39], [59, 40], [60, 42], [61, 52], [62, 55], [63, 56], [64, 58], [65, 60], [66, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "getTemplate", "code": "  public ElemTemplate getTemplate(XPathContext xctxt,\n                                int targetNode,\n                                QName mode,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n\n    TemplateSubPatternAssociation head = getHead(xctxt, targetNode, dtm);\n\n    if (null != head)\n    {\n      xctxt.pushNamespaceContextNull();\n      xctxt.pushCurrentNodeAndExpression(targetNode, targetNode);\n      try\n      {\n        do\n        {\n          ElemTemplate template = head.getTemplate();        \n          xctxt.setNamespaceContext(template);\n          \n          if ((head.m_stepPattern.execute(xctxt, targetNode) != NodeTest.SCORE_NONE)\n                  && head.matchMode(mode))\n          {\n            if (quietConflictWarnings)\n              checkConflicts(head, xctxt, targetNode, mode);\n\n            return template;\n          }\n        }\n        while (null != (head = head.getNext()));\n      }\n      finally\n      {\n        xctxt.popCurrentNodeAndExpression();\n        xctxt.popNamespaceContext();\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "LOOP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "RETURN", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [10, 12], [3, 13], [11, 14], [2, 15], [2, 16], [11, 17], [11, 18], [14, 19], [14, 20], [14, 21], [19, 22], [19, 23], [20, 24], [14, 25], [22, 26], [20, 27], [20, 28], [24, 29], [24, 30], [21, 31], [30, 32], [28, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 10], [13, 3], [14, 11], [15, 2], [16, 2], [17, 11], [18, 11], [19, 14], [20, 14], [21, 14], [22, 19], [23, 19], [24, 20], [25, 14], [26, 22], [27, 20], [28, 20], [29, 24], [30, 24], [31, 21], [32, 30], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getTemplate", "code": "  public ElemTemplate getTemplate(XPathContext xctxt,\n                                int targetNode,\n                                QName mode,\n                                int maxImportLevel, int endImportLevel,\n                                boolean quietConflictWarnings,\n                                DTM dtm)\n            throws TransformerException\n  {\n\n    TemplateSubPatternAssociation head = getHead(xctxt, targetNode, dtm);\n\n    if (null != head)\n    {\n      xctxt.pushNamespaceContextNull();\n      xctxt.pushCurrentNodeAndExpression(targetNode, targetNode);\n      try\n      {\n        do\n        {\n          if ( (maxImportLevel > -1) && (head.getImportLevel() > maxImportLevel))\n          {\n            continue;\n          }\n          if (head.getImportLevel()<= maxImportLevel - endImportLevel)\n            return null;\n          ElemTemplate template = head.getTemplate();        \n          xctxt.setNamespaceContext(template);\n          \n          if ((head.m_stepPattern.execute(xctxt, targetNode) != NodeTest.SCORE_NONE)\n                  && head.matchMode(mode))\n          {\n            if (quietConflictWarnings)\n              checkConflicts(head, xctxt, targetNode, mode);\n\n            return template;\n          }\n        }\n        while (null != (head = head.getNext()));\n      }\n      finally\n      {\n        xctxt.popCurrentNodeAndExpression();\n        xctxt.popNamespaceContext();\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "LOOP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "IF", "IF", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [2, 13], [12, 14], [3, 15], [13, 16], [2, 17], [2, 18], [13, 19], [13, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [21, 26], [21, 27], [22, 28], [16, 29], [24, 30], [24, 31], [25, 32], [26, 33], [22, 34], [22, 35], [28, 36], [28, 37], [23, 38], [30, 39], [31, 40], [31, 41], [25, 42], [32, 43], [32, 44], [37, 45], [43, 46], [44, 47], [35, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 2], [14, 12], [15, 3], [16, 13], [17, 2], [18, 2], [19, 13], [20, 13], [21, 16], [22, 16], [23, 16], [24, 16], [25, 16], [26, 21], [27, 21], [28, 22], [29, 16], [30, 24], [31, 24], [32, 25], [33, 26], [34, 22], [35, 22], [36, 28], [37, 28], [38, 23], [39, 30], [40, 31], [41, 31], [42, 25], [43, 32], [44, 32], [45, 37], [46, 43], [47, 44], [48, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "getWalker", "code": "  public TemplateWalker getWalker()\n  {\n    return new TemplateWalker();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "checkConflicts", "code": "  private void checkConflicts(TemplateSubPatternAssociation head,\n                              XPathContext xctxt, int targetNode, QName mode)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addObjectIfNotFound", "code": "  private void addObjectIfNotFound(Object obj, Vector v)\n  {\n\n    int n = v.size();\n    boolean addIt = true;\n\n    for (int i = 0; i < n; i++)\n    {\n      if (v.elementAt(i) == obj)\n      {\n        addIt = false;\n\n        break;\n      }\n    }\n\n    if (addIt)\n    {\n      v.addElement(obj);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [4, 10], [1, 11], [8, 12], [2, 13], [8, 14], [12, 15], [8, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 4], [11, 1], [12, 8], [13, 2], [14, 8], [15, 12], [16, 8], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getNamedTemplates", "code": "  private Hashtable getNamedTemplates()\n  {\n    return m_namedTemplates;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamedTemplates", "code": "  private void setNamedTemplates(Hashtable v)\n  {\n    m_namedTemplates = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHead", "code": "  private TemplateSubPatternAssociation getHead(String key)\n  {\n    return (TemplateSubPatternAssociation) m_patternTable.get(key);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "putHead", "code": "  private void putHead(String key, TemplateSubPatternAssociation assoc)\n  {\n\n    if (key.equals(PsuedoNames.PSEUDONAME_TEXT))\n      m_textPatterns = assoc;\n    else if (key.equals(PsuedoNames.PSEUDONAME_ROOT))\n      m_docPatterns = assoc;\n    else if (key.equals(PsuedoNames.PSEUDONAME_COMMENT))\n      m_commentPatterns = assoc;\n\n    m_patternTable.put(key, assoc);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "IF", "CALL", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [1, 9], [7, 10], [5, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 1], [10, 7], [11, 5], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "TemplateList", "code": "  public TemplateList()\n  {\n    super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.4-2423", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/idempotent/MemoryMessageIdRepository.java", "language": "java", "name": "org.apache.camel.processor.idempotent.MemoryMessageIdRepository", "code": "public class MemoryMessageIdRepository implements MessageIdRepository {\n    private final Map cache;\n\n    public MemoryMessageIdRepository(Map set) {\n        this.cache = set;\n    }\n\n    /**\n     * Creates a new MemoryMessageIdRepository with a memory based repository.\n     * <b>Warning</b> this method should only really be used for testing as it\n     * will involve keeping all message IDs in RAM.\n     */\n    public static MessageIdRepository memoryMessageIdRepository() {\n        return memoryMessageIdRepository(new HashMap());\n    }\n\n    /**\n     * Creates a new MemoryMessageIdRepository with a memory based repository.\n     * <b>Warning</b> this method should only really be used for testing as it\n     * will involve keeping all message IDs in RAM.\n     */\n    public static MessageIdRepository memoryMessageIdRepository(int cacheSize) {\n        return memoryMessageIdRepository(new LRUCache(cacheSize));\n    }\n\n    /**\n     * Creates a new MemoryMessageIdRepository using the given {@link Map} to\n     * use to store the processed Message ID objects. Warning be careful of the\n     * implementation of Map you use as if you are not careful it could be a\n     * memory leak.\n     */\n    public static MessageIdRepository memoryMessageIdRepository(Map cache) {\n        return new MemoryMessageIdRepository(cache);\n    }\n\n    public boolean contains(String messageId) {\n        synchronized (cache) {\n            if (cache.containsKey(messageId)) {\n                return true;\n            } else {\n                cache.put(messageId, messageId);\n                return false;", "functions": [{"function_name": "memoryMessageIdRepository", "code": "    public static MessageIdRepository memoryMessageIdRepository() {\n        return memoryMessageIdRepository(new HashMap());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "memoryMessageIdRepository", "code": "    public static MessageIdRepository memoryMessageIdRepository(int cacheSize) {\n        return memoryMessageIdRepository(new LRUCache(cacheSize));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "memoryMessageIdRepository", "code": "    public static MessageIdRepository memoryMessageIdRepository(Map cache) {\n        return new MemoryMessageIdRepository(cache);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "contains", "code": "    public boolean contains(String messageId) {\n        synchronized (cache) {\n            if (cache.containsKey(messageId)) {\n                return true;\n            } else {\n                cache.put(messageId, messageId);\n                return false;", "ast_nodes": ["FUNC_DECL", "PARAM", "IF", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [4, 6], [2, 7], [5, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 4], [7, 2], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "MemoryMessageIdRepository", "code": "    public MemoryMessageIdRepository(Map set) {\n        this.cache = set;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7760", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/When.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.When", "code": "final class When extends Instruction {\n\n    private Expression _test;\n    private boolean _ignore = false;\n\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"When\");\n\tindent(indent + IndentIncrement);\n\tSystem.out.print(\"test \");\n\tUtil.println(_test.toString());\n\tdisplayContents(indent + IndentIncrement);\n    }\n\t\t\n    public Expression getTest() {\n\treturn _test;\n    }\n\n    public boolean ignore() {\n\treturn(_ignore);\n    }\n\n    public void parseContents(Parser parser) {\n\t_test = parser.parseExpression(this, \"test\", null);\n\n\tObject result = _test.evaluateAtCompileTime();\n\tif (result != null && result instanceof Boolean) {\n\t    _ignore = !((Boolean) result).booleanValue();\n\t}\n\n\tparseChildren(parser);\n\n\tif (_test.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"test\");\n\t}\n    }\n\n    /**\n     * Type-check this when element. The test should always be type checked,\n     * while we do not bother with the contents if we know the test fails.\n     * This is important in cases where the \"test\" expression tests for\n     * the support of a non-available element, and the <xsl:when> body contains\n     * this non-available element.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_test.typeCheck(stable) instanceof BooleanType == false) {\n\t    _test = new CastExpr(_test, Type.Boolean);\n\t}\n\tif (!_ignore) {\n\t    typeCheckContents(stable);\n\t}\n\n\treturn Type.Void;\n    }\n\n    /**\n     * This method should never be called. An Otherwise object will explicitly\n     * translate the \"test\" expression and and contents of this element.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ErrorMsg msg = new ErrorMsg(ErrorMsg.STRAY_WHEN_ERR, this);\n\tgetParser().reportError(Constants.ERROR, msg);", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"When\");\n\tindent(indent + IndentIncrement);\n\tSystem.out.print(\"test \");\n\tUtil.println(_test.toString());\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getTest", "code": "    public Expression getTest() {\n\treturn _test;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ignore", "code": "    public boolean ignore() {\n\treturn(_ignore);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\t_test = parser.parseExpression(this, \"test\", null);\n\n\tObject result = _test.evaluateAtCompileTime();\n\tif (result != null && result instanceof Boolean) {\n\t    _ignore = !((Boolean) result).booleanValue();\n\t}\n\n\tparseChildren(parser);\n\n\tif (_test.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"test\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [7, 9], [7, 10], [3, 11], [8, 12], [1, 13], [2, 14], [10, 15], [12, 16], [12, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 7], [10, 7], [11, 3], [12, 8], [13, 1], [14, 2], [15, 10], [16, 12], [17, 12], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_test.typeCheck(stable) instanceof BooleanType == false) {\n\t    _test = new CastExpr(_test, Type.Boolean);\n\t}\n\tif (!_ignore) {\n\t    typeCheckContents(stable);\n\t}\n\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [5, 6], [5, 7], [2, 8], [3, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 5], [7, 5], [8, 2], [9, 3], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ErrorMsg msg = new ErrorMsg(ErrorMsg.STRAY_WHEN_ERR, this);\n\tgetParser().reportError(Constants.ERROR, msg);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.5-7102", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/extensions/ExtensionHandlerGeneral.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionHandlerGeneral", "code": "public class ExtensionHandlerGeneral extends ExtensionHandler\n{\n\n  /** script source to run (if any)      */\n  private String m_scriptSrc;   \n\n  /** URL of source of script (if any)         */\n  private String m_scriptSrcURL;  \n\n  /** functions of namespace        */\n  private Hashtable m_functions = new Hashtable();  \n\n  /** elements of namespace         */\n  private Hashtable m_elements = new Hashtable();   \n\n\n  /** Instance of Manager class          */\n\n  /** BSF manager used to run scripts         */\n  private Object m_engine;  \n\n\n  /** BSFManager package name          */\n  private static final String BSF_MANAGER = \"com.ibm.bsf.BSFManager\";\n\n  /** Manager class          */\n  private static Class managerClass;\n\n  /** Manager load scripting engine          */\n  private static Method mgrLoadScriptingEngine;\n\n  /** BSFEngine package name          */\n  private static final String BSF_ENGINE = \"com.ibm.bsf.BSFEngine\";\n\n  /** Engine call to \"compile\" scripts         */\n  private static Method engineExec;   \n\n  /** Engine call to invoke scripts          */\n  private static Method engineCall;   \n\n  /** Negative one integer         */\n  private static final Integer NEG1INT = new Integer(-1);\n\n  static\n  {\n    try\n    {\n                        managerClass = ExtensionHandler.getClassForName(BSF_MANAGER);\n      mgrLoadScriptingEngine = managerClass.getMethod(\"loadScriptingEngine\",\n              new Class[]{ String.class });\n\n                        Class engineClass = ExtensionHandler.getClassForName(BSF_ENGINE);\n\n      engineExec = engineClass.getMethod(\"exec\", new Class[]{ String.class,\n                                                              Integer.TYPE,\n                                                              Integer.TYPE,\n                                                              Object.class });\n      engineCall = engineClass.getMethod(\"call\", new Class[]{ Object.class,\n                                                              String.class,\n                                                              Class.forName(\n                                                                \"[Ljava.lang.Object;\") });\n    }\n    catch (Exception e)\n    {\n      managerClass = null;\n      mgrLoadScriptingEngine = null;\n      engineExec = null;\n      engineCall = null;\n\n      e.printStackTrace();\n    }\n  }\n\n  /**\n   * Construct a new extension namespace handler given all the information\n   * needed.\n   *\n   * @param namespaceUri the extension namespace URI that I'm implementing\n   * @param elemNames Vector of element names\n   * @param funcNames    string containing list of functions of extension NS\n   * @param lang         language of code implementing the extension\n   * @param srcURL       value of src attribute (if any) - treated as a URL\n   *                     or a classname depending on the value of lang. If\n   *                     srcURL is not null, then scriptSrc is ignored.\n   * @param scriptLang Scripting language of implementation\n   * @param scriptSrcURL URL of source script\n   * @param scriptSrc    the actual script code (if any)\n   *\n   * @throws TransformerException\n   */\n  public ExtensionHandlerGeneral(\n          String namespaceUri, StringVector elemNames, StringVector funcNames, String scriptLang, String scriptSrcURL, String scriptSrc, String systemId)\n            throws TransformerException\n  {\n\n    super(namespaceUri, scriptLang);\n\n    if (elemNames != null)\n    {\n      Object junk = new Object();\n      int n = elemNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = elemNames.elementAt(i);\n\n      }\n    }\n\n    if (funcNames != null)\n    {\n      Object junk = new Object();\n      int n = funcNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = funcNames.elementAt(i);\n\n      }\n    }\n\n    m_scriptSrcURL = scriptSrcURL;\n    m_scriptSrc = scriptSrc;\n\n    if (m_scriptSrcURL != null)\n    {\n      URL url = null;\n      try{\n        url = new URL(m_scriptSrcURL);\n      }\n      catch (java.net.MalformedURLException mue)\n      {\n        int indexOfColon = m_scriptSrcURL.indexOf(':');\n        int indexOfSlash = m_scriptSrcURL.indexOf('/');\n\n        if ((indexOfColon != -1) && (indexOfSlash != -1)\n            && (indexOfColon < indexOfSlash))\n        {\n          url = null;\n        }\n        else\n        {\n          try{\n            url = new URL(new URL(SystemIDResolver.getAbsoluteURI(systemId)), m_scriptSrcURL);          \n          }        \n          catch (java.net.MalformedURLException mue2)\n          {\n          }\n        }\n      }\n      if (url != null)\n      {\n        try\n        {\n          URLConnection uc = url.openConnection();\n          InputStream is = uc.getInputStream();\n          byte []bArray = new byte[uc.getContentLength()];\n          is.read(bArray);\n          m_scriptSrc = new String(bArray);\n          \n        }\n        catch (IOException ioe)\n        {\n        }\n      }\n      \n    }\n   \n    if (null == managerClass)\n\n    try\n    {\n      m_mgr = managerClass.newInstance();\n      m_engine = mgrLoadScriptingEngine.invoke(m_mgr,\n                                               new Object[]{ scriptLang });\n\n      engineExec.invoke(m_engine, new Object[]{ \"XalanScript\", NEG1INT,\n                                                NEG1INT, m_scriptSrc });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();\n\n    }\n  }\n\n  /**\n   * Tests whether a certain function name is known within this namespace.\n   * @param function name of the function being tested\n   * @return true if its known, false if not.\n   */\n  public boolean isFunctionAvailable(String function)\n  {\n    return (m_functions.get(function) != null);\n  }\n\n  /**\n   * Tests whether a certain element name is known within this namespace.\n   * @param function name of the function being tested\n   *\n   * @param element name of the element being tested\n   * @return true if its known, false if not.\n   */\n  public boolean isElementAvailable(String element)\n  {\n    return (m_elements.get(element) != null);\n  }\n\n  /**\n   * Process a call to a function.\n   *\n   * @param funcName Function name.\n   * @param args     The arguments of the function call.\n   * @param methodKey A key that uniquely identifies this class and method call.\n   * @param exprContext The context in which this expression is being executed.\n   *\n   * @return the return value of the function evaluation.\n   *\n   * @throws TransformerException          if parsing trouble\n   */\n  public Object callFunction(\n          String funcName, Vector args, Object methodKey, ExpressionContext exprContext)\n            throws TransformerException\n  {\n\n    Object[] argArray;\n\n    try\n    {\n      argArray = new Object[args.size()];\n\n      for (int i = 0; i < argArray.length; i++)\n      {\n        Object o = args.elementAt(i);\n\n        argArray[i] = (o instanceof XObject) ? ((XObject) o).object() : o;\n        o = argArray[i];\n        if(null != o && o instanceof DTMIterator)\n        {\n          argArray[i] = new DTMNodeList((DTMIterator)o);\n        }\n      }\n\n      return engineCall.invoke(m_engine, new Object[]{ null, funcName,\n                                                       argArray });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();\n\n      String msg = e.getMessage();\n\n      if (null != msg)\n      {\n        if (msg.startsWith(\"Stopping after fatal error:\"))\n        {\n          msg = msg.substring(\"Stopping after fatal error:\".length());\n        }\n\n        throw new TransformerException(e);\n      }\n      else\n      {\n\n      }\n    }\n  }\n\n  /**\n   * Process a call to an XPath extension function\n   *\n   * @param extFunction The XPath extension function\n   * @param args The arguments of the function call.\n   * @param exprContext The context in which this expression is being executed.\n   * @return the return value of the function evaluation.\n   * @throws TransformerException\n   */\n  public Object callFunction(FuncExtFunction extFunction,\n                             Vector args,\n                             ExpressionContext exprContext)\n      throws TransformerException\n  {\n    return callFunction(extFunction.getFunctionName(), args, \n                        extFunction.getMethodKey(), exprContext);\n  }\n\n  /**\n   * Process a call to this extension namespace via an element. As a side\n   * effect, the results are sent to the TransformerImpl's result tree.\n   *\n   * @param localPart      Element name's local part.\n   * @param element        The extension element being processed.\n   * @param transformer      Handle to TransformerImpl.\n   * @param stylesheetTree The compiled stylesheet tree.\n   * @param mode           The current mode.\n   * @param sourceTree     The root of the source tree (but don't assume\n   *                       it's a Document).\n   * @param sourceNode     The current context node.\n   * @param methodKey A key that uniquely identifies this class and method call.\n   *\n   * @throws XSLProcessorException thrown if something goes wrong\n   *            while running the extension handler.\n   * @throws MalformedURLException if loading trouble\n   * @throws FileNotFoundException if loading trouble\n   * @throws IOException           if loading trouble\n   * @throws TransformerException          if parsing trouble\n   */\n  public void processElement(\n          String localPart, ElemTemplateElement element, TransformerImpl transformer, \n          Stylesheet stylesheetTree, Object methodKey)\n            throws TransformerException, IOException\n  {\n\n    Object result = null;\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, stylesheetTree);\n\n    try\n    {\n      Vector argv = new Vector(2);\n\n      argv.addElement(xpc);\n      argv.addElement(element);\n\n      result = callFunction(localPart, argv, methodKey,\n                            transformer.getXPathContext().getExpressionContext());\n    }\n    catch (XPathProcessorException e)\n    {\n\n      throw new TransformerException(e.getMessage(), e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree(stylesheetTree, result);", "functions": [{"function_name": "isFunctionAvailable", "code": "  public boolean isFunctionAvailable(String function)\n  {\n    return (m_functions.get(function) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isElementAvailable", "code": "  public boolean isElementAvailable(String element)\n  {\n    return (m_elements.get(element) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "callFunction", "code": "  public Object callFunction(\n          String funcName, Vector args, Object methodKey, ExpressionContext exprContext)\n            throws TransformerException\n  {\n\n    Object[] argArray;\n\n    try\n    {\n      argArray = new Object[args.size()];\n\n      for (int i = 0; i < argArray.length; i++)\n      {\n        Object o = args.elementAt(i);\n\n        argArray[i] = (o instanceof XObject) ? ((XObject) o).object() : o;\n        o = argArray[i];\n        if(null != o && o instanceof DTMIterator)\n        {\n          argArray[i] = new DTMNodeList((DTMIterator)o);\n        }\n      }\n\n      return engineCall.invoke(m_engine, new Object[]{ null, funcName,\n                                                       argArray });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();\n\n      String msg = e.getMessage();\n\n      if (null != msg)\n      {\n        if (msg.startsWith(\"Stopping after fatal error:\"))\n        {\n          msg = msg.substring(\"Stopping after fatal error:\".length());\n        }\n\n        throw new TransformerException(e);\n      }\n      else\n      {", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "LOOP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [7, 11], [8, 12], [9, 13], [1, 14], [10, 15], [7, 16], [9, 17], [9, 18], [10, 19], [10, 20], [15, 21], [11, 22], [17, 23], [9, 24], [9, 25], [9, 26], [14, 27], [19, 28], [20, 29], [12, 30], [23, 31], [23, 32], [25, 33], [18, 34], [29, 35], [17, 36], [32, 37], [33, 38], [20, 39], [36, 40], [39, 41], [41, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 7], [12, 8], [13, 9], [14, 1], [15, 10], [16, 7], [17, 9], [18, 9], [19, 10], [20, 10], [21, 15], [22, 11], [23, 17], [24, 9], [25, 9], [26, 9], [27, 14], [28, 19], [29, 20], [30, 12], [31, 23], [32, 23], [33, 25], [34, 18], [35, 29], [36, 17], [37, 32], [38, 33], [39, 20], [40, 36], [41, 39], [42, 41], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "callFunction", "code": "  public Object callFunction(FuncExtFunction extFunction,\n                             Vector args,\n                             ExpressionContext exprContext)\n      throws TransformerException\n  {\n    return callFunction(extFunction.getFunctionName(), args, \n                        extFunction.getMethodKey(), exprContext);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "processElement", "code": "  public void processElement(\n          String localPart, ElemTemplateElement element, TransformerImpl transformer, \n          Stylesheet stylesheetTree, Object methodKey)\n            throws TransformerException, IOException\n  {\n\n    Object result = null;\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, stylesheetTree);\n\n    try\n    {\n      Vector argv = new Vector(2);\n\n      argv.addElement(xpc);\n      argv.addElement(element);\n\n      result = callFunction(localPart, argv, methodKey,\n                            transformer.getXPathContext().getExpressionContext());\n    }\n    catch (XPathProcessorException e)\n    {\n\n      throw new TransformerException(e.getMessage(), e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree(stylesheetTree, result);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [10, 13], [11, 14], [2, 15], [2, 16], [2, 17], [3, 18], [4, 19], [1, 20], [14, 21], [15, 22], [12, 23], [21, 24], [22, 25], [23, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 10], [14, 11], [15, 2], [16, 2], [17, 2], [18, 3], [19, 4], [20, 1], [21, 14], [22, 15], [23, 12], [24, 21], [25, 22], [26, 23], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "ExtensionHandlerGeneral", "code": "  public ExtensionHandlerGeneral(\n          String namespaceUri, StringVector elemNames, StringVector funcNames, String scriptLang, String scriptSrcURL, String scriptSrc, String systemId)\n            throws TransformerException\n  {\n\n    super(namespaceUri, scriptLang);\n\n    if (elemNames != null)\n    {\n      Object junk = new Object();\n      int n = elemNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = elemNames.elementAt(i);\n\n      }\n    }\n\n    if (funcNames != null)\n    {\n      Object junk = new Object();\n      int n = funcNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = funcNames.elementAt(i);\n\n      }\n    }\n\n    m_scriptSrcURL = scriptSrcURL;\n    m_scriptSrc = scriptSrc;\n\n    if (m_scriptSrcURL != null)\n    {\n      URL url = null;\n      try{\n        url = new URL(m_scriptSrcURL);\n      }\n      catch (java.net.MalformedURLException mue)\n      {\n        int indexOfColon = m_scriptSrcURL.indexOf(':');\n        int indexOfSlash = m_scriptSrcURL.indexOf('/');\n\n        if ((indexOfColon != -1) && (indexOfSlash != -1)\n            && (indexOfColon < indexOfSlash))\n        {\n          url = null;\n        }\n        else\n        {\n          try{\n            url = new URL(new URL(SystemIDResolver.getAbsoluteURI(systemId)), m_scriptSrcURL);          \n          }        \n          catch (java.net.MalformedURLException mue2)\n          {\n          }\n        }\n      }\n      if (url != null)\n      {\n        try\n        {\n          URLConnection uc = url.openConnection();\n          InputStream is = uc.getInputStream();\n          byte []bArray = new byte[uc.getContentLength()];\n          is.read(bArray);\n          m_scriptSrc = new String(bArray);\n          \n        }\n        catch (IOException ioe)\n        {\n        }\n      }\n      \n    }\n   \n    if (null == managerClass)\n\n    try\n    {\n      m_mgr = managerClass.newInstance();\n      m_engine = mgrLoadScriptingEngine.invoke(m_mgr,\n                                               new Object[]{ scriptLang });\n\n      engineExec.invoke(m_engine, new Object[]{ \"XalanScript\", NEG1INT,\n                                                NEG1INT, m_scriptSrc });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "TRY", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CATCH", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [2, 14], [0, 15], [0, 16], [3, 17], [4, 18], [12, 19], [13, 20], [2, 21], [2, 22], [2, 23], [14, 24], [3, 25], [3, 26], [3, 27], [17, 28], [4, 29], [4, 30], [4, 31], [18, 32], [12, 33], [12, 34], [12, 35], [21, 36], [22, 37], [25, 38], [29, 39], [19, 40], [34, 41], [35, 42], [21, 43], [36, 44], [37, 45], [37, 46], [37, 47], [22, 48], [23, 49], [25, 50], [26, 51], [27, 52], [29, 53], [30, 54], [31, 55], [43, 56], [43, 57], [43, 58], [43, 59], [45, 60], [48, 61], [25, 62], [29, 63], [33, 64], [43, 65], [43, 66], [45, 67], [60, 68], [60, 69], [46, 70], [47, 71], [50, 72], [53, 73], [65, 74], [58, 75], [59, 76], [67, 77], [45, 78], [69, 79], [69, 80], [70, 81], [71, 82], [57, 83], [67, 84], [78, 85], [79, 86], [80, 87], [84, 88], [88, 89], [89, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 2], [15, 0], [16, 0], [17, 3], [18, 4], [19, 12], [20, 13], [21, 2], [22, 2], [23, 2], [24, 14], [25, 3], [26, 3], [27, 3], [28, 17], [29, 4], [30, 4], [31, 4], [32, 18], [33, 12], [34, 12], [35, 12], [36, 21], [37, 22], [38, 25], [39, 29], [40, 19], [41, 34], [42, 35], [43, 21], [44, 36], [45, 37], [46, 37], [47, 37], [48, 22], [49, 23], [50, 25], [51, 26], [52, 27], [53, 29], [54, 30], [55, 31], [56, 43], [57, 43], [58, 43], [59, 43], [60, 45], [61, 48], [62, 25], [63, 29], [64, 33], [65, 43], [66, 43], [67, 45], [68, 60], [69, 60], [70, 46], [71, 47], [72, 50], [73, 53], [74, 65], [75, 58], [76, 59], [77, 67], [78, 45], [79, 69], [80, 69], [81, 70], [82, 71], [83, 57], [84, 67], [85, 78], [86, 79], [87, 80], [88, 84], [89, 88], [90, 89], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}], "label": 1}
{"sample_id": "xalan-2.6-7708", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/DTMNodeList.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMNodeList", "code": "public class DTMNodeList extends DTMNodeListBase {\n    private DTMIterator m_iter;\n\n    private DTMNodeList() {\n    }\n\n    /**\n     * Public constructor: Wrap a DTMNodeList around an existing\n     * and preconfigured DTMIterator\n     *\n     * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)\n     * AGAINST THE DTMIterator.\n     *\n     */\n    public DTMNodeList(DTMIterator dtmIterator) {\n        if (dtmIterator != null) {\n            int pos = dtmIterator.getCurrentPos();\n            try {\n                m_iter=(DTMIterator)dtmIterator.cloneWithReset();\n            } catch(CloneNotSupportedException cnse) {\n                m_iter = dtmIterator;\n            }\n            m_iter.setShouldCacheNodes(true);\n            m_iter.runTo(-1);\n            m_iter.setCurrentPos(pos);\n        }\n    }\n\n    /**\n     * Access the wrapped DTMIterator. I'm not sure whether anyone will\n     * need this or not, but let's write it and think about it.\n     *\n     */\n    public DTMIterator getDTMIterator() {\n        return m_iter;\n    }\n\n\n    /**\n     * Returns the <code>index</code>th item in the collection. If \n     * <code>index</code> is greater than or equal to the number of nodes in \n     * the list, this returns <code>null</code>.\n     * @param indexIndex into the collection.\n     * @return The node at the <code>index</code>th position in the \n     *   <code>NodeList</code>, or <code>null</code> if that is not a valid \n     *   index.\n     */\n    public Node item(int index)\n    {\n        if (m_iter != null) {\n            int handle=m_iter.item(index);\n            if (handle == DTM.NULL) {\n                return null;\n            }\n            return m_iter.getDTM(handle).getNode(handle);\n        } else {\n            return null;\n        }\n    }\n\n    /**\n     * The number of nodes in the list. The range of valid child node indices \n     * is 0 to <code>length-1</code> inclusive. \n     */\n    public int getLength() {\n        return (m_iter != null) ? m_iter.getLength() : 0;", "functions": [{"function_name": "getDTMIterator", "code": "    public DTMIterator getDTMIterator() {\n        return m_iter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "item", "code": "    public Node item(int index)\n    {\n        if (m_iter != null) {\n            int handle=m_iter.item(index);\n            if (handle == DTM.NULL) {\n                return null;\n            }\n            return m_iter.getDTM(handle).getNode(handle);\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [4, 9], [5, 10], [6, 11], [10, 12], [6, 13], [7, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 4], [10, 5], [11, 6], [12, 10], [13, 6], [14, 7], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getLength", "code": "    public int getLength() {\n        return (m_iter != null) ? m_iter.getLength() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "DTMNodeList", "code": "    private DTMNodeList() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DTMNodeList", "code": "    public DTMNodeList(DTMIterator dtmIterator) {\n        if (dtmIterator != null) {\n            int pos = dtmIterator.getCurrentPos();\n            try {\n                m_iter=(DTMIterator)dtmIterator.cloneWithReset();\n            } catch(CloneNotSupportedException cnse) {\n                m_iter = dtmIterator;\n            }\n            m_iter.setShouldCacheNodes(true);\n            m_iter.runTo(-1);\n            m_iter.setCurrentPos(pos);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 7], [1, 8], [1, 9], [4, 10], [8, 11], [9, 12], [4, 13], [5, 14], [10, 15], [13, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 1], [8, 1], [9, 1], [10, 4], [11, 8], [12, 9], [13, 4], [14, 5], [15, 10], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 1}
{"sample_id": "jedit-4.1-4037", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/RecentFilesMenu.java", "language": "java", "name": "org.gjt.sp.jedit.gui.RecentFilesMenu", "code": "public class RecentFilesMenu extends EnhancedMenu\n{\n\t//{{{ RecentFilesMenu constructor\n\tpublic RecentFilesMenu()\n\t{\n\t\tsuper(\"recent-files\");\n\t} //}}}\n\n\t//{{{ menuSelected() method\n\tpublic void menuSelected(MenuEvent evt)\n\t{\n\t\tsuper.menuSelected(evt);\n\t\tfinal View view = GUIUtilities.getView(this);\n\n\t\tif(getMenuComponentCount() != 0)\n\t\t\tremoveAll();\n\n\t\t//{{{ ActionListener...\n\t\tActionListener actionListener = new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tjEdit.openFile(view,evt.getActionCommand());\n\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t}\n\t\t}; //}}}\n\n\t\t//{{{ MouseListener...\n\t\tMouseListener mouseListener = new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseEntered(MouseEvent evt)\n\t\t\t{\n\t\t\t\tview.getStatus().setMessage(\n\t\t\t\t\t((JMenuItem)evt.getSource())\n\t\t\t\t\t.getActionCommand());\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent evt)\n\t\t\t{\n\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t}\n\t\t}; //}}}\n\n\t\tVector recentVector = BufferHistory.getBufferHistory();\n\n\t\tif(recentVector.size() == 0)\n\t\t{\n\t\t\tadd(GUIUtilities.loadMenuItem(\"no-recent-files\"));\n\t\t\treturn;\n\t\t}\n\n\t\tVector menuItems = new Vector();\n\t\tboolean sort = jEdit.getBooleanProperty(\"sortRecent\");\n\n\t\t/*\n\t\t * While recentVector has 50 entries or so, we only display\n\t\t * a few of those in the menu (otherwise it will be way too\n\t\t * long)\n\t\t */\n\t\tint recentFileCount = Math.min(recentVector.size(),\n\t\t\tjEdit.getIntegerProperty(\"history\",25));\n\n\t\tfor(int i = recentVector.size() - 1;\n\t\t\ti >= recentVector.size() - recentFileCount;\n\t\t\ti--)\n\t\t{\n\t\t\tString path = ((BufferHistory.Entry)recentVector\n\t\t\t\t.elementAt(i)).path;\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\tJMenuItem menuItem = new JMenuItem(vfs.getFileName(path));\n\t\t\tmenuItem.setActionCommand(path);\n\t\t\tmenuItem.addActionListener(actionListener);\n\t\t\tmenuItem.addMouseListener(mouseListener);\n\t\t\tmenuItem.setIcon(FileCellRenderer.fileIcon);\n\n\t\t\tif(sort)\n\t\t\t\tmenuItems.addElement(menuItem);\n\t\t\telse\n\t\t\t\tadd(menuItem);\n\t\t}\n\n\t\tif(sort)\n\t\t{\n\t\t\tMiscUtilities.quicksort(menuItems,\n\t\t\t\tnew MiscUtilities.MenuItemCompare());\n\t\t\tfor(int i = 0; i < menuItems.size(); i++)\n\t\t\t{\n\t\t\t\tadd((JMenuItem)menuItems.elementAt(i));\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\tpublic void menuDeselected(MenuEvent e) {}\n\n\tpublic void menuCanceled(MenuEvent e) {}", "functions": [{"function_name": "menuSelected", "code": "\tpublic void menuSelected(MenuEvent evt)\n\t{\n\t\tsuper.menuSelected(evt);\n\t\tfinal View view = GUIUtilities.getView(this);\n\n\t\tif(getMenuComponentCount() != 0)\n\t\t\tremoveAll();\n\n\t\t//{{{ ActionListener...\n\t\tActionListener actionListener = new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tjEdit.openFile(view,evt.getActionCommand());\n\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t}\n\t\t}; //}}}\n\n\t\t//{{{ MouseListener...\n\t\tMouseListener mouseListener = new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseEntered(MouseEvent evt)\n\t\t\t{\n\t\t\t\tview.getStatus().setMessage(\n\t\t\t\t\t((JMenuItem)evt.getSource())\n\t\t\t\t\t.getActionCommand());\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent evt)\n\t\t\t{\n\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t}\n\t\t}; //}}}\n\n\t\tVector recentVector = BufferHistory.getBufferHistory();\n\n\t\tif(recentVector.size() == 0)\n\t\t{\n\t\t\tadd(GUIUtilities.loadMenuItem(\"no-recent-files\"));\n\t\t\treturn;\n\t\t}\n\n\t\tVector menuItems = new Vector();\n\t\tboolean sort = jEdit.getBooleanProperty(\"sortRecent\");\n\n\t\t/*\n\t\t * While recentVector has 50 entries or so, we only display\n\t\t * a few of those in the menu (otherwise it will be way too\n\t\t * long)\n\t\t */\n\t\tint recentFileCount = Math.min(recentVector.size(),\n\t\t\tjEdit.getIntegerProperty(\"history\",25));\n\n\t\tfor(int i = recentVector.size() - 1;\n\t\t\ti >= recentVector.size() - recentFileCount;\n\t\t\ti--)\n\t\t{\n\t\t\tString path = ((BufferHistory.Entry)recentVector\n\t\t\t\t.elementAt(i)).path;\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\tJMenuItem menuItem = new JMenuItem(vfs.getFileName(path));\n\t\t\tmenuItem.setActionCommand(path);\n\t\t\tmenuItem.addActionListener(actionListener);\n\t\t\tmenuItem.addMouseListener(mouseListener);\n\t\t\tmenuItem.setIcon(FileCellRenderer.fileIcon);\n\n\t\t\tif(sort)\n\t\t\t\tmenuItems.addElement(menuItem);\n\t\t\telse\n\t\t\t\tadd(menuItem);\n\t\t}\n\n\t\tif(sort)\n\t\t{\n\t\t\tMiscUtilities.quicksort(menuItems,\n\t\t\t\tnew MiscUtilities.MenuItemCompare());\n\t\t\tfor(int i = 0; i < menuItems.size(); i++)\n\t\t\t{\n\t\t\t\tadd((JMenuItem)menuItems.elementAt(i));", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [6, 14], [10, 15], [1, 16], [2, 17], [2, 18], [2, 19], [2, 20], [13, 21], [3, 22], [4, 23], [5, 24], [6, 25], [14, 26], [14, 27], [7, 28], [8, 29], [9, 30], [10, 31], [15, 32], [15, 33], [11, 34], [16, 35], [1, 36], [2, 37], [2, 38], [2, 39], [2, 40], [21, 41], [2, 42], [22, 43], [22, 44], [23, 45], [6, 46], [29, 47], [29, 48], [30, 49], [35, 50], [36, 51], [17, 52], [17, 53], [18, 54], [19, 55], [42, 56], [42, 57], [43, 58], [43, 59], [46, 60], [47, 61], [48, 62], [49, 63], [16, 64], [16, 65], [54, 66], [20, 67], [60, 68], [47, 69], [48, 70], [49, 71], [49, 72], [69, 73], [70, 74], [71, 75], [72, 76], [64, 77], [73, 78], [75, 79], [74, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 6], [15, 10], [16, 1], [17, 2], [18, 2], [19, 2], [20, 2], [21, 13], [22, 3], [23, 4], [24, 5], [25, 6], [26, 14], [27, 14], [28, 7], [29, 8], [30, 9], [31, 10], [32, 15], [33, 15], [34, 11], [35, 16], [36, 1], [37, 2], [38, 2], [39, 2], [40, 2], [41, 21], [42, 2], [43, 22], [44, 22], [45, 23], [46, 6], [47, 29], [48, 29], [49, 30], [50, 35], [51, 36], [52, 17], [53, 17], [54, 18], [55, 19], [56, 42], [57, 42], [58, 43], [59, 43], [60, 46], [61, 47], [62, 48], [63, 49], [64, 16], [65, 16], [66, 54], [67, 20], [68, 60], [69, 47], [70, 48], [71, 49], [72, 49], [73, 69], [74, 70], [75, 71], [76, 72], [77, 64], [78, 73], [79, 75], [80, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "menuDeselected", "code": "\tpublic void menuDeselected(MenuEvent e) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "menuCanceled", "code": "\tpublic void menuCanceled(MenuEvent e) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RecentFilesMenu", "code": "\tpublic RecentFilesMenu()\n\t{\n\t\tsuper(\"recent-files\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.5-7063", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/functions/FuncSubstring.java", "language": "java", "name": "org.apache.xpath.functions.FuncSubstring", "code": "public class FuncSubstring extends Function3Args\n{\n\n  /**\n   * Execute the function.  The function must return\n   * a valid object.\n   * @param xctxt The current execution context.\n   * @return A valid XObject.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    XMLString s1 = m_arg0.execute(xctxt).xstr();\n    double start = m_arg1.execute(xctxt).num();\n    int lenOfS1 = s1.length();\n    XMLString substr;\n\n    if (lenOfS1 <= 0)\n      return XString.EMPTYSTRING;\n    else\n    {\n      int startIndex;\n\n      if (Double.isNaN(start))\n      {\n\n        start = -1000000;\n        startIndex = 0;\n      }\n      else\n      {\n        start = Math.round(start);\n        startIndex = (start > 0) ? (int) start - 1 : 0;\n      }\n\n      if (null != m_arg2)\n      {\n        double len = m_arg2.num(xctxt);\n        int end = (int) (Math.round(len) + start) - 1;\n\n        if (end < 0)\n          end = 0;\n        else if (end > lenOfS1)\n          end = lenOfS1;\n\n        if (startIndex > lenOfS1)\n          startIndex = lenOfS1;\n\n        substr = s1.substring(startIndex, end);\n      }\n      else\n      {\n        if (startIndex > lenOfS1)\n          startIndex = lenOfS1;\n        substr = s1.substring(startIndex);\n      }\n    }\n\n  }\n\n  /**\n   * Check that the number of arguments passed to this function is correct. \n   *\n   *\n   * @param argNum The number of arguments that is being passed to the function.\n   *\n   * @throws WrongNumberArgsException\n   */\n  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum < 2)\n      reportWrongNumberArgs();\n  }\n\n  /**\n   * Constructs and throws a WrongNumberArgException with the appropriate\n   * message for this function object.\n   *\n   * @throws WrongNumberArgsException\n   */\n  protected void reportWrongNumberArgs() throws WrongNumberArgsException {", "functions": [{"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    XMLString s1 = m_arg0.execute(xctxt).xstr();\n    double start = m_arg1.execute(xctxt).num();\n    int lenOfS1 = s1.length();\n    XMLString substr;\n\n    if (lenOfS1 <= 0)\n      return XString.EMPTYSTRING;\n    else\n    {\n      int startIndex;\n\n      if (Double.isNaN(start))\n      {\n\n        start = -1000000;\n        startIndex = 0;\n      }\n      else\n      {\n        start = Math.round(start);\n        startIndex = (start > 0) ? (int) start - 1 : 0;\n      }\n\n      if (null != m_arg2)\n      {\n        double len = m_arg2.num(xctxt);\n        int end = (int) (Math.round(len) + start) - 1;\n\n        if (end < 0)\n          end = 0;\n        else if (end > lenOfS1)\n          end = lenOfS1;\n\n        if (startIndex > lenOfS1)\n          startIndex = lenOfS1;\n\n        substr = s1.substring(startIndex, end);\n      }\n      else\n      {\n        if (startIndex > lenOfS1)\n          startIndex = lenOfS1;\n        substr = s1.substring(startIndex);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [8, 12], [3, 13], [4, 14], [5, 15], [9, 16], [10, 17], [14, 18], [15, 19], [9, 20], [9, 21], [9, 22], [9, 23], [9, 24], [16, 25], [9, 26], [20, 27], [9, 28], [21, 29], [22, 30], [22, 31], [10, 32], [10, 33], [10, 34], [10, 35], [26, 36], [20, 37], [28, 38], [21, 39], [30, 40], [22, 41], [31, 42], [23, 43], [24, 44], [32, 45], [33, 46], [34, 47], [35, 48], [30, 49], [41, 50], [43, 51], [45, 52], [45, 53], [45, 54], [43, 55], [53, 56], [54, 57], [55, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 8], [13, 3], [14, 4], [15, 5], [16, 9], [17, 10], [18, 14], [19, 15], [20, 9], [21, 9], [22, 9], [23, 9], [24, 9], [25, 16], [26, 9], [27, 20], [28, 9], [29, 21], [30, 22], [31, 22], [32, 10], [33, 10], [34, 10], [35, 10], [36, 26], [37, 20], [38, 28], [39, 21], [40, 30], [41, 22], [42, 31], [43, 23], [44, 24], [45, 32], [46, 33], [47, 34], [48, 35], [49, 30], [50, 41], [51, 43], [52, 45], [53, 45], [54, 45], [55, 43], [56, 53], [57, 54], [58, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "checkNumberArgs", "code": "  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum < 2)\n      reportWrongNumberArgs();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "reportWrongNumberArgs", "code": "  protected void reportWrongNumberArgs() throws WrongNumberArgsException {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "poi-3.0-6332", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/RangePtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.RangePtg", "code": "public class RangePtg extends OperationPtg\n{\n    public final static byte sid  = 0x11;\n\n\n    public RangePtg()\n    {\n    }\n\n    public RangePtg(RecordInputStream in)\n    {\n    }\n\n\n    public int getSize()\n    {\n        return 1;\n    }\n\n    public void writeBytes( byte[] array, int offset )\n    {\n        array[ offset + 0 ] = sid;\n    }\n\n    public Object clone()\n    {\n        return new RangePtg();\n    }\n\n    public int getType()\n    {\n        return TYPE_BINARY;\n    }\n\n    /** Implementation of method from Ptg */\n    public String toFormulaString(Workbook book)\n    {\n        return \":\";\n    }\n\n\n    /** implementation of method from OperationsPtg*/\n    public String toFormulaString(String[] operands)\n    {\n         StringBuffer buffer = new StringBuffer();\n\n         buffer.append(operands[ 0 ]);\n         buffer.append(\":\");\n         buffer.append(operands[ 1 ]);\n         return buffer.toString();\n     }\n\n    public int getNumberOfOperands()\n    {\n        return 2;", "functions": [{"function_name": "getSize", "code": "    public int getSize()\n    {\n        return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "writeBytes", "code": "    public void writeBytes( byte[] array, int offset )\n    {\n        array[ offset + 0 ] = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "clone", "code": "    public Object clone()\n    {\n        return new RangePtg();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return TYPE_BINARY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \":\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(String[] operands)\n    {\n         StringBuffer buffer = new StringBuffer();\n\n         buffer.append(operands[ 0 ]);\n         buffer.append(\":\");\n         buffer.append(operands[ 1 ]);\n         return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [6, 8], [2, 9], [5, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 6], [9, 2], [10, 5], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getNumberOfOperands", "code": "    public int getNumberOfOperands()\n    {\n        return 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RangePtg", "code": "    public RangePtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "RangePtg", "code": "    public RangePtg(RecordInputStream in)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-994", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/EchoProperties.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.EchoProperties", "code": "public class EchoProperties extends Task {\n\n    /**\n     * the properties element.\n     */\n    private static final String PROPERTIES = \"properties\";\n\n    /**\n     * the property element.\n     */\n    private static final String PROPERTY = \"property\";\n\n    /**\n     * name attribute for property, testcase and testsuite elements.\n     */\n    private static final String ATTR_NAME = \"name\";\n\n    /**\n     * value attribute for property elements.\n     */\n    private static final String ATTR_VALUE = \"value\";\n\n    /**\n     * the input file.\n     */\n    private File inFile = null;\n\n    /**\n     *  File object pointing to the output file. If this is null, then\n     *  we output to the project log, not to a file.\n     */\n    private File destfile = null;\n\n    /**\n     *  If this is true, then errors generated during file output will become\n     *  build errors, and if false, then such errors will be logged, but not\n     *  thrown.\n     */\n    private boolean failonerror = true;\n\n    private Vector propertySets = new Vector();\n\n    private String format = \"text\";\n\n    private String prefix;\n\n    /**\n     * @since Ant 1.7\n     */\n    private String regex;\n\n    /**\n     * Sets the input file.\n     *\n     * @param file  the input file\n     */\n    public void setSrcfile(File file) {\n        inFile = file;\n    }\n\n    /**\n     *  Set a file to store the property output.  If this is never specified,\n     *  then the output will be sent to the Ant log.\n     *\n     *@param destfile file to store the property output\n     */\n    public void setDestfile(File destfile) {\n        this.destfile = destfile;\n    }\n\n\n    /**\n     * If true, the task will fail if an error occurs writing the properties\n     * file, otherwise errors are just logged.\n     *\n     *@param  failonerror  <tt>true</tt> if IO exceptions are reported as build\n     *      exceptions, or <tt>false</tt> if IO exceptions are ignored.\n     */\n    public void setFailOnError(boolean failonerror) {\n        this.failonerror = failonerror;\n    }\n\n\n    /**\n     *  If the prefix is set, then only properties which start with this\n     *  prefix string will be recorded. If regex is not set and  if this\n     *  is never set, or it is set to an empty string or <tt>null</tt>,\n     *  then all properties will be recorded. <P>\n     *\n     *  For example, if the attribute is set as:\n     *    <PRE>&lt;echoproperties  prefix=\"ant.\" /&gt;</PRE>\n     *  then the property \"ant.home\" will be recorded, but \"ant-example\"\n     *  will not.\n     *\n     * @param  prefix  The new prefix value\n     */\n    public void setPrefix(String prefix) {\n        if (prefix != null && prefix.length() != 0) {\n            this.prefix = prefix;\n            PropertySet ps = new PropertySet();\n            ps.setProject(getProject());\n            ps.appendPrefix(prefix);\n            addPropertyset(ps);\n        }\n    }\n\n    /**\n     *  If the regex is set, then only properties whose names match it\n     *  will be recorded.  If prefix is not set and if this is never set,\n     *  or it is set to an empty string or <tt>null</tt>, then all\n     *  properties will be recorded.<P>\n     *\n     *  For example, if the attribute is set as:\n     *    <PRE>&lt;echoproperties  prefix=\".*ant.*\" /&gt;</PRE>\n     *  then the properties \"ant.home\" and \"user.variant\" will be recorded,\n     *  but \"ant-example\" will not.\n     *\n     * @param  regex  The new regex value\n     *\n     * @since Ant 1.7\n     */\n    public void setRegex(String regex) {\n        if (regex != null && regex.length() != 0) {\n            this.regex = regex;\n            PropertySet ps = new PropertySet();\n            ps.setProject(getProject());\n            ps.appendRegex(regex);\n            addPropertyset(ps);\n        }\n    }\n\n    /**\n     * A set of properties to write.\n     * @param ps the property set to write\n     * @since Ant 1.6\n     */\n    public void addPropertyset(PropertySet ps) {\n        propertySets.addElement(ps);\n    }\n\n    /**\n     * Set the output format - xml or text.\n     * @param ea an enumerated <code>FormatAttribute</code> value\n     */\n    public void setFormat(FormatAttribute ea) {\n        format = ea.getValue();\n    }\n\n    /**\n     * A enumerated type for the format attribute.\n     * The values are \"xml\" and \"text\".\n     */\n    public static class FormatAttribute extends EnumeratedAttribute {\n        private String [] formats = new String[]{\"xml\", \"text\"};\n\n        /**\n         * @see EnumeratedAttribute#getValues()\n         * @return accepted values\n         */\n        public String[] getValues() {\n            return formats;\n        }\n    }\n\n    /**\n     *  Run the task.\n     *\n     *@exception  BuildException  trouble, probably file IO\n     */\n    public void execute() throws BuildException {\n        if (prefix != null && regex != null) {\n            throw new BuildException(\"Please specify either prefix\"\n                    + \" or regex, but not both\", getLocation());\n        }\n        Hashtable allProps = new Hashtable();\n\n        /* load properties from file if specified, otherwise\n        use Ant's properties */\n        if (inFile == null && propertySets.size() == 0) {\n            allProps.putAll(getProject().getProperties());\n        } else if (inFile != null) {\n            if (inFile.exists() && inFile.isDirectory()) {\n                String message = \"srcfile is a directory!\";\n                if (failonerror) {\n                    throw new BuildException(message, getLocation());\n                } else {\n                    log(message, Project.MSG_ERR);\n                }\n                return;\n            }\n\n            if (inFile.exists() && !inFile.canRead()) {\n                String message = \"Can not read from the specified srcfile!\";\n                if (failonerror) {\n                    throw new BuildException(message, getLocation());\n                } else {\n                    log(message, Project.MSG_ERR);\n                }\n                return;\n            }\n\n            FileInputStream in = null;\n            try {\n                in = new FileInputStream(inFile);\n                Properties props = new Properties();\n                props.load(in);\n                allProps.putAll(props);\n            } catch (FileNotFoundException fnfe) {\n                String message =\n                    \"Could not find file \" + inFile.getAbsolutePath();\n                if (failonerror) {\n                    throw new BuildException(message, fnfe, getLocation());\n                } else {\n                    log(message, Project.MSG_WARN);\n                }\n                return;\n            } catch (IOException ioe) {\n                String message =\n                    \"Could not read file \" + inFile.getAbsolutePath();\n                if (failonerror) {\n                    throw new BuildException(message, ioe, getLocation());\n                } else {\n                    log(message, Project.MSG_WARN);\n                }\n                return;\n            } finally {\n                FileUtils.close(in);\n            }\n        }\n\n        Enumeration e = propertySets.elements();\n        while (e.hasMoreElements()) {\n            PropertySet ps = (PropertySet) e.nextElement();\n            allProps.putAll(ps.getProperties());\n        }\n\n        OutputStream os = null;\n        try {\n            if (destfile == null) {\n                os = new ByteArrayOutputStream();\n                saveProperties(allProps, os);\n                log(os.toString(), Project.MSG_INFO);\n            } else {\n                if (destfile.exists() && destfile.isDirectory()) {\n                    String message = \"destfile is a directory!\";\n                    if (failonerror) {\n                        throw new BuildException(message, getLocation());\n                    } else {\n                        log(message, Project.MSG_ERR);\n                    }\n                    return;\n                }\n\n                if (destfile.exists() && !destfile.canWrite()) {\n                    String message =\n                        \"Can not write to the specified destfile!\";\n                    if (failonerror) {\n                        throw new BuildException(message, getLocation());\n                    } else {\n                        log(message, Project.MSG_ERR);\n                    }\n                    return;\n                }\n                os = new FileOutputStream(this.destfile);\n                saveProperties(allProps, os);\n            }\n        } catch (IOException ioe) {\n            if (failonerror) {\n                throw new BuildException(ioe, getLocation());\n            } else {\n                log(ioe.getMessage(), Project.MSG_INFO);\n            }\n        } finally {\n            if (os != null) {\n                try {\n                    os.close();\n                } catch (IOException ex) {\n                }\n            }\n        }\n    }\n\n\n    /**\n     *  Send the key/value pairs in the hashtable to the given output stream.\n     *  Only those properties matching the <tt>prefix</tt> constraint will be\n     *  sent to the output stream.\n     *  The output stream will be closed when this method returns.\n     *\n     * @param  allProps         propfile to save\n     * @param  os               output stream\n     * @throws IOException      on output errors\n     * @throws BuildException   on other errors\n     */\n    protected void saveProperties(Hashtable allProps, OutputStream os)\n        throws IOException, BuildException {\n        final List keyList = new ArrayList(allProps.keySet());\n        Collections.sort(keyList);\n        Properties props = new Properties() {\n            private static final long serialVersionUID = 5090936442309201654L;\n            public Enumeration keys() {\n                return CollectionUtils.asEnumeration(keyList.iterator());\n            }\n            public Set entrySet() {\n                Set result = super.entrySet();\n                if (JavaEnvUtils.isKaffe()) {\n                    TreeSet t = new TreeSet(new Comparator() {\n                        public int compare(Object o1, Object o2) {\n                            String key1 = (String) ((Map.Entry) o1).getKey();\n                            String key2 = (String) ((Map.Entry) o2).getKey();\n                            return key1.compareTo(key2);\n                        }\n                    });\n                    t.addAll(result);\n                    result = t;\n                }\n                return result;\n            }\n        };\n        for (int i = 0; i < keyList.size(); i++) {\n            String name = keyList.get(i).toString();\n            String value = allProps.get(name).toString();\n            props.setProperty(name, value);\n        }\n        if (\"text\".equals(format)) {\n            jdkSaveProperties(props, os, \"Ant properties\");\n        } else if (\"xml\".equals(format)) {\n            xmlSaveProperties(props, os);\n        }\n    }\n\n    /**\n     * a tuple for the sort list.\n     */\n    private static final class Tuple implements Comparable {\n        private String key;\n        private String value;\n\n        private Tuple(String key, String value) {\n            this.key = key;\n            this.value = value;\n        }\n\n        /**\n         * Compares this object with the specified object for order.\n         * @param o the Object to be compared.\n         * @return a negative integer, zero, or a positive integer as this object is\n         *         less than, equal to, or greater than the specified object.\n         * @throws ClassCastException if the specified object's type prevents it\n         *                            from being compared to this Object.\n         */\n        public int compareTo(Object o) {\n            Tuple that = (Tuple) o;\n            return key.compareTo(that.key);\n        }\n    }\n\n    private List sortProperties(Properties props) {\n        List sorted = new ArrayList(props.size());\n        Enumeration e = props.propertyNames();\n        while (e.hasMoreElements()) {\n            String name = (String) e.nextElement();\n            sorted.add(new Tuple(name, props.getProperty(name)));\n        }\n        Collections.sort(sorted);\n        return sorted;\n    }\n\n    /**\n     * Output the properties as xml output.\n     * @param props the properties to save\n     * @param os    the output stream to write to (Note this gets closed)\n     * @throws IOException on error in writing to the stream\n     */\n    protected void xmlSaveProperties(Properties props,\n                                     OutputStream os) throws IOException {\n        Document doc = getDocumentBuilder().newDocument();\n        Element rootElement = doc.createElement(PROPERTIES);\n\n        List sorted = sortProperties(props);\n\n\n        Iterator iten = sorted.iterator();\n        while (iten.hasNext()) {\n            Tuple tuple = (Tuple) iten.next();\n            Element propElement = doc.createElement(PROPERTY);\n            propElement.setAttribute(ATTR_NAME, tuple.key);\n            propElement.setAttribute(ATTR_VALUE, tuple.value);\n            rootElement.appendChild(propElement);\n        }\n\n        Writer wri = null;\n        try {\n            wri = new OutputStreamWriter(os, \"UTF8\");\n            wri.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n            (new DOMElementWriter()).write(rootElement, wri, 0, \"\\t\");\n            wri.flush();\n        } catch (IOException ioe) {\n            throw new BuildException(\"Unable to write XML file\", ioe);\n        } finally {\n            FileUtils.close(wri);\n        }\n    }\n\n    /**\n     *  JDK 1.2 allows for the safer method\n     *  <tt>Properties.store(OutputStream, String)</tt>, which throws an\n     *  <tt>IOException</tt> on an output error.\n     *\n     *@param props the properties to record\n     *@param os record the properties to this output stream\n     *@param header prepend this header to the property output\n     *@exception IOException on an I/O error during a write.\n     */\n    protected void jdkSaveProperties(Properties props, OutputStream os,\n                                     String header) throws IOException {\n       try {\n           props.store(os, header);\n\n       } catch (IOException ioe) {\n           throw new BuildException(ioe, getLocation());\n       } finally {\n           if (os != null) {\n               try {\n                   os.close();\n               } catch (IOException ioex) {\n                   log(\"Failed to close output stream\");\n               }\n           }\n       }\n    }\n\n\n    /**\n     * Uses the DocumentBuilderFactory to get a DocumentBuilder instance.\n     *\n     * @return   The DocumentBuilder instance\n     */\n    private static DocumentBuilder getDocumentBuilder() {\n        try {\n            return DocumentBuilderFactory.newInstance().newDocumentBuilder();\n        } catch (Exception e) {\n            throw new ExceptionInInitializerError(e);", "functions": [{"function_name": "setSrcfile", "code": "    public void setSrcfile(File file) {\n        inFile = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDestfile", "code": "    public void setDestfile(File destfile) {\n        this.destfile = destfile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFailOnError", "code": "    public void setFailOnError(boolean failonerror) {\n        this.failonerror = failonerror;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPrefix", "code": "    public void setPrefix(String prefix) {\n        if (prefix != null && prefix.length() != 0) {\n            this.prefix = prefix;\n            PropertySet ps = new PropertySet();\n            ps.setProject(getProject());\n            ps.appendPrefix(prefix);\n            addPropertyset(ps);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [5, 12], [6, 13], [9, 14], [4, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 5], [13, 6], [14, 9], [15, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setRegex", "code": "    public void setRegex(String regex) {\n        if (regex != null && regex.length() != 0) {\n            this.regex = regex;\n            PropertySet ps = new PropertySet();\n            ps.setProject(getProject());\n            ps.appendRegex(regex);\n            addPropertyset(ps);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [5, 12], [6, 13], [9, 14], [4, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 5], [13, 6], [14, 9], [15, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "addPropertyset", "code": "    public void addPropertyset(PropertySet ps) {\n        propertySets.addElement(ps);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFormat", "code": "    public void setFormat(FormatAttribute ea) {\n        format = ea.getValue();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (prefix != null && regex != null) {\n            throw new BuildException(\"Please specify either prefix\"\n                    + \" or regex, but not both\", getLocation());\n        }\n        Hashtable allProps = new Hashtable();\n\n        /* load properties from file if specified, otherwise\n        use Ant's properties */\n        if (inFile == null && propertySets.size() == 0) {\n            allProps.putAll(getProject().getProperties());\n        } else if (inFile != null) {\n            if (inFile.exists() && inFile.isDirectory()) {\n                String message = \"srcfile is a directory!\";\n                if (failonerror) {\n                    throw new BuildException(message, getLocation());\n                } else {\n                    log(message, Project.MSG_ERR);\n                }\n                return;\n            }\n\n            if (inFile.exists() && !inFile.canRead()) {\n                String message = \"Can not read from the specified srcfile!\";\n                if (failonerror) {\n                    throw new BuildException(message, getLocation());\n                } else {\n                    log(message, Project.MSG_ERR);\n                }\n                return;\n            }\n\n            FileInputStream in = null;\n            try {\n                in = new FileInputStream(inFile);\n                Properties props = new Properties();\n                props.load(in);\n                allProps.putAll(props);\n            } catch (FileNotFoundException fnfe) {\n                String message =\n                    \"Could not find file \" + inFile.getAbsolutePath();\n                if (failonerror) {\n                    throw new BuildException(message, fnfe, getLocation());\n                } else {\n                    log(message, Project.MSG_WARN);\n                }\n                return;\n            } catch (IOException ioe) {\n                String message =\n                    \"Could not read file \" + inFile.getAbsolutePath();\n                if (failonerror) {\n                    throw new BuildException(message, ioe, getLocation());\n                } else {\n                    log(message, Project.MSG_WARN);\n                }\n                return;\n            } finally {\n                FileUtils.close(in);\n            }\n        }\n\n        Enumeration e = propertySets.elements();\n        while (e.hasMoreElements()) {\n            PropertySet ps = (PropertySet) e.nextElement();\n            allProps.putAll(ps.getProperties());\n        }\n\n        OutputStream os = null;\n        try {\n            if (destfile == null) {\n                os = new ByteArrayOutputStream();\n                saveProperties(allProps, os);\n                log(os.toString(), Project.MSG_INFO);\n            } else {\n                if (destfile.exists() && destfile.isDirectory()) {\n                    String message = \"destfile is a directory!\";\n                    if (failonerror) {\n                        throw new BuildException(message, getLocation());\n                    } else {\n                        log(message, Project.MSG_ERR);\n                    }\n                    return;\n                }\n\n                if (destfile.exists() && !destfile.canWrite()) {\n                    String message =\n                        \"Can not write to the specified destfile!\";\n                    if (failonerror) {\n                        throw new BuildException(message, getLocation());\n                    } else {\n                        log(message, Project.MSG_ERR);\n                    }\n                    return;\n                }\n                os = new FileOutputStream(this.destfile);\n                saveProperties(allProps, os);\n            }\n        } catch (IOException ioe) {\n            if (failonerror) {\n                throw new BuildException(ioe, getLocation());\n            } else {\n                log(ioe.getMessage(), Project.MSG_INFO);\n            }\n        } finally {\n            if (os != null) {\n                try {\n                    os.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "CATCH", "IF", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "THROW_RAISE", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CATCH", "CATCH", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [3, 11], [5, 12], [5, 13], [7, 14], [8, 15], [9, 16], [10, 17], [2, 18], [3, 19], [4, 20], [12, 21], [13, 22], [13, 23], [6, 24], [7, 25], [14, 26], [14, 27], [8, 28], [15, 29], [10, 30], [10, 31], [17, 32], [3, 33], [12, 34], [12, 35], [12, 36], [12, 37], [21, 38], [5, 39], [22, 40], [22, 41], [23, 42], [25, 43], [26, 44], [27, 45], [28, 46], [16, 47], [10, 48], [10, 49], [30, 50], [31, 51], [10, 52], [10, 53], [10, 54], [33, 55], [34, 56], [34, 57], [34, 58], [36, 59], [37, 60], [39, 61], [43, 62], [43, 63], [28, 64], [16, 65], [47, 66], [49, 67], [30, 68], [30, 69], [30, 70], [50, 71], [50, 72], [31, 73], [31, 74], [31, 75], [51, 76], [51, 77], [52, 78], [54, 79], [19, 80], [34, 81], [56, 82], [56, 83], [56, 84], [57, 85], [57, 86], [57, 87], [34, 88], [34, 89], [34, 90], [35, 91], [36, 92], [36, 93], [36, 94], [59, 95], [59, 96], [37, 97], [37, 98], [37, 99], [60, 100], [60, 101], [61, 102], [63, 103], [63, 104], [65, 105], [66, 106], [58, 107], [90, 108], [69, 109], [70, 110], [74, 111], [75, 112], [83, 113], [84, 114], [86, 115], [87, 116], [93, 117], [94, 118], [98, 119], [99, 120], [69, 121], [109, 122], [74, 123], [111, 124], [83, 125], [113, 126], [114, 127], [114, 128], [86, 129], [115, 130], [116, 131], [116, 132], [93, 133], [117, 134], [98, 135], [119, 136], [122, 137], [124, 138], [126, 139], [130, 140], [134, 141], [136, 142], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 3], [12, 5], [13, 5], [14, 7], [15, 8], [16, 9], [17, 10], [18, 2], [19, 3], [20, 4], [21, 12], [22, 13], [23, 13], [24, 6], [25, 7], [26, 14], [27, 14], [28, 8], [29, 15], [30, 10], [31, 10], [32, 17], [33, 3], [34, 12], [35, 12], [36, 12], [37, 12], [38, 21], [39, 5], [40, 22], [41, 22], [42, 23], [43, 25], [44, 26], [45, 27], [46, 28], [47, 16], [48, 10], [49, 10], [50, 30], [51, 31], [52, 10], [53, 10], [54, 10], [55, 33], [56, 34], [57, 34], [58, 34], [59, 36], [60, 37], [61, 39], [62, 43], [63, 43], [64, 28], [65, 16], [66, 47], [67, 49], [68, 30], [69, 30], [70, 30], [71, 50], [72, 50], [73, 31], [74, 31], [75, 31], [76, 51], [77, 51], [78, 52], [79, 54], [80, 19], [81, 34], [82, 56], [83, 56], [84, 56], [85, 57], [86, 57], [87, 57], [88, 34], [89, 34], [90, 34], [91, 35], [92, 36], [93, 36], [94, 36], [95, 59], [96, 59], [97, 37], [98, 37], [99, 37], [100, 60], [101, 60], [102, 61], [103, 63], [104, 63], [105, 65], [106, 66], [107, 58], [108, 90], [109, 69], [110, 70], [111, 74], [112, 75], [113, 83], [114, 84], [115, 86], [116, 87], [117, 93], [118, 94], [119, 98], [120, 99], [121, 69], [122, 109], [123, 74], [124, 111], [125, 83], [126, 113], [127, 114], [128, 114], [129, 86], [130, 115], [131, 116], [132, 116], [133, 93], [134, 117], [135, 98], [136, 119], [137, 122], [138, 124], [139, 126], [140, 130], [141, 134], [142, 136], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142]]}, {"function_name": "saveProperties", "code": "    protected void saveProperties(Hashtable allProps, OutputStream os)\n        throws IOException, BuildException {\n        final List keyList = new ArrayList(allProps.keySet());\n        Collections.sort(keyList);\n        Properties props = new Properties() {\n            private static final long serialVersionUID = 5090936442309201654L;\n            public Enumeration keys() {\n                return CollectionUtils.asEnumeration(keyList.iterator());\n            }\n            public Set entrySet() {\n                Set result = super.entrySet();\n                if (JavaEnvUtils.isKaffe()) {\n                    TreeSet t = new TreeSet(new Comparator() {\n                        public int compare(Object o1, Object o2) {\n                            String key1 = (String) ((Map.Entry) o1).getKey();\n                            String key2 = (String) ((Map.Entry) o2).getKey();\n                            return key1.compareTo(key2);\n                        }\n                    });\n                    t.addAll(result);\n                    result = t;\n                }\n                return result;\n            }\n        };\n        for (int i = 0; i < keyList.size(); i++) {\n            String name = keyList.get(i).toString();\n            String value = allProps.get(name).toString();\n            props.setProperty(name, value);\n        }\n        if (\"text\".equals(format)) {\n            jdkSaveProperties(props, os, \"Ant properties\");\n        } else if (\"xml\".equals(format)) {\n            xmlSaveProperties(props, os);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "FUNC_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [2, 9], [0, 10], [7, 11], [8, 12], [2, 13], [2, 14], [9, 15], [3, 16], [4, 17], [11, 18], [1, 19], [2, 20], [2, 21], [16, 22], [16, 23], [16, 24], [17, 25], [7, 26], [19, 27], [13, 28], [14, 29], [22, 30], [22, 31], [22, 32], [23, 33], [28, 34], [29, 35], [31, 36], [33, 37], [24, 38], [31, 39], [37, 40], [31, 41], [31, 42], [39, 43], [43, 44], [44, 45], [45, 46], [45, 47], [45, 48], [45, 49], [45, 50], [46, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 2], [10, 0], [11, 7], [12, 8], [13, 2], [14, 2], [15, 9], [16, 3], [17, 4], [18, 11], [19, 1], [20, 2], [21, 2], [22, 16], [23, 16], [24, 16], [25, 17], [26, 7], [27, 19], [28, 13], [29, 14], [30, 22], [31, 22], [32, 22], [33, 23], [34, 28], [35, 29], [36, 31], [37, 33], [38, 24], [39, 31], [40, 37], [41, 31], [42, 31], [43, 39], [44, 43], [45, 44], [46, 45], [47, 45], [48, 45], [49, 45], [50, 45], [51, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "sortProperties", "code": "    private List sortProperties(Properties props) {\n        List sorted = new ArrayList(props.size());\n        Enumeration e = props.propertyNames();\n        while (e.hasMoreElements()) {\n            String name = (String) e.nextElement();\n            sorted.add(new Tuple(name, props.getProperty(name)));\n        }\n        Collections.sort(sorted);\n        return sorted;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [4, 10], [2, 11], [10, 12], [11, 13], [13, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 4], [11, 2], [12, 10], [13, 11], [14, 13], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "xmlSaveProperties", "code": "    protected void xmlSaveProperties(Properties props,\n                                     OutputStream os) throws IOException {\n        Document doc = getDocumentBuilder().newDocument();\n        Element rootElement = doc.createElement(PROPERTIES);\n\n        List sorted = sortProperties(props);\n\n\n        Iterator iten = sorted.iterator();\n        while (iten.hasNext()) {\n            Tuple tuple = (Tuple) iten.next();\n            Element propElement = doc.createElement(PROPERTY);\n            propElement.setAttribute(ATTR_NAME, tuple.key);\n            propElement.setAttribute(ATTR_VALUE, tuple.value);\n            rootElement.appendChild(propElement);\n        }\n\n        Writer wri = null;\n        try {\n            wri = new OutputStreamWriter(os, \"UTF8\");\n            wri.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n            (new DOMElementWriter()).write(rootElement, wri, 0, \"\\t\");\n            wri.flush();\n        } catch (IOException ioe) {\n            throw new BuildException(\"Unable to write XML file\", ioe);\n        } finally {\n            FileUtils.close(wri);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [1, 12], [10, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [3, 19], [3, 20], [4, 21], [5, 22], [6, 23], [7, 24], [13, 25], [15, 26], [16, 27], [17, 28], [3, 29], [3, 30], [3, 31], [24, 32], [25, 33], [26, 34], [26, 35], [28, 36], [19, 37], [20, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 1], [13, 10], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 3], [20, 3], [21, 4], [22, 5], [23, 6], [24, 7], [25, 13], [26, 15], [27, 16], [28, 17], [29, 3], [30, 3], [31, 3], [32, 24], [33, 25], [34, 26], [35, 26], [36, 28], [37, 19], [38, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "jdkSaveProperties", "code": "    protected void jdkSaveProperties(Properties props, OutputStream os,\n                                     String header) throws IOException {\n       try {\n           props.store(os, header);\n\n       } catch (IOException ioe) {\n           throw new BuildException(ioe, getLocation());\n       } finally {\n           if (os != null) {\n               try {\n                   os.close();\n               } catch (IOException ioex) {\n                   log(\"Failed to close output stream\");", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "IF", "CATCH", "BINARY_OP", "THROW_RAISE", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 9], [5, 10], [7, 11], [8, 12], [10, 13], [12, 14], [10, 15], [13, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 1], [10, 5], [11, 7], [12, 8], [13, 10], [14, 12], [15, 10], [16, 13], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getDocumentBuilder", "code": "    private static DocumentBuilder getDocumentBuilder() {\n        try {\n            return DocumentBuilderFactory.newInstance().newDocumentBuilder();\n        } catch (Exception e) {\n            throw new ExceptionInInitializerError(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "jedit-4.1-4174", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/BSHCastExpression.java", "language": "java", "name": "bsh.BSHCastExpression", "code": "class BSHCastExpression extends SimpleNode {\n\n    public BSHCastExpression(int id) { super(id); }\n\n\t/**\n\t\t@return the result of the cast.\n\t*/\n\tpublic Object eval(\n\t\tCallStack callstack, Interpreter interpreter ) throws EvalError\n    {\n\t\tNameSpace namespace = callstack.top();\n        Class toType = ((BSHType)jjtGetChild(0)).getType(namespace);\n\t\tSimpleNode expression = (SimpleNode)jjtGetChild(1);\n\n        // evaluate the expression\n        Object fromValue = expression.eval(callstack, interpreter);\n        Class fromType = fromValue.getClass();\n\n\t\ttry {\n\t\t\treturn castObject( fromValue, toType );\n\t\t} catch ( EvalError e ) {\n\t\t\te.reThrow( this );\n\t\t\tthrow new InterpreterError(\"can't happen\"); // help the compiler\n\t\t}\n    }\n\n\t/**\n\t\tCast an object to a new type.\n\t\tThis method can handle bsh.Primitive types (representing primitive \n\t\tcasts) as well as arbitrary object casts.\n\t\t@param fromValue an Object or bsh.Primitive primitive value \n\t\t@param toType the class type of the cast result, which may include\n\t\tprimitive types, e.g. Byte.TYPE\n\t*/\n\tpublic static Object castObject( Object fromValue, Class toType )\n\t\tthrows EvalError\n\t{\n        Class fromType = fromValue.getClass();\n\n\t\t// The compiler isn't smart enough to allow me to leave this unassigned\n\t\t// even though it is clearly assigned in all cases below.\n        Object result = null;\n\n\t\t// Going to a primitive type\n        if ( toType.isPrimitive() ) \n\t\t\tif ( fromValue instanceof Primitive )\n\t\t\t\tresult = castPrimitive( (Primitive)fromValue, toType );\n\t\t\telse\n\t\t\t\t// cannot convert from object to primitive\n                castError(fromValue.getClass(), toType);\n        else \n\t\t\t// Going to an object type\n\t\t\tif ( fromValue instanceof Primitive )\n\t\t\t\t// let castPrimitive handle trivial but legit case of NULL\n\t\t\t\tresult = castPrimitive( (Primitive)fromValue, toType );\n\t\t\telse\n\t\t\t\t// Can we use the proxy mechanism to cast a bsh.This to \n\t\t\t\t// the correct interface?\n\t\t\t\tif ( Capabilities.canGenerateInterfaces() &&\n\t\t\t\t\t(fromValue instanceof bsh.This) && toType.isInterface() ) \n\t\t\t\t\t\tresult = ((bsh.This)fromValue).getInterface( toType );\n\t\t\t\telse \n\t\t\t\t\t// Could probably add getAssignableForm here to allow \n\t\t\t\t\t// special bsh widening converions... wrappers to wrappers\n\t\t\t\t\tif ( toType.isInstance(fromValue ) )\n\t\t\t\t\t\tresult = fromValue;\n\t\t\t\t\telse\n\t\t\t\t\t\tcastError(fromType, toType);\n\n\t\tif ( result == null )\n\t\t\tthrow new InternalError(\"bad construct somewhere...\");\n\n\t\treturn result;\n\t}\n\n\t/**\n\t\tWrap up the ClassCastException in a TargetError so that it can\n\t\tbe caught...\n\t\tNode user should catch and add the node\n\t*/\n    public static void castError(Class from, Class to) throws EvalError {\n\t\tcastError( \n\t\t\tReflect.normalizeClassName(from), Reflect.normalizeClassName(to) );\n    }\n\n    public static void castError(String from, String to) throws EvalError \n\t{\n\t\tException cce = new ClassCastException(\"Illegal cast. Cannot cast \" +\n            from + \" to \" + to );\n\t\tthrow new TargetError( \"Cast\", cce );\n    }\n\n\t/**\n\t\tCast the bsh.Primitive value to a new bsh.Primitive value\n\t\tThis is usually a numeric type cast.  Other cases include:\n\t\t\tboolean can be cast to boolen\n\t\t\tnull can be cast to any object type\n\t\t\tvoid cannot be cast to anything\n\t*/\n\tpublic static Primitive castPrimitive( Primitive primValue, Class toType ) \n\t\tthrows EvalError\n\t{\n\t\t// can't cast void to anything\n\t\tif ( primValue == Primitive.VOID )\n\t\t\tcastError( \"void value\", Reflect.normalizeClassName(toType) );\n\n\t\t// unwrap, etc.\n\t\tObject value = primValue.getValue();\n\t\tClass fromType = primValue.getType();\n\n\t\t// Trying to cast primitive to an object type?\n\t\t// only works for Primitive.NULL\n\t\tif ( !toType.isPrimitive() )\n\t\t\tif ( primValue != Primitive.NULL )\n\t\t\t\tcastError(\"primitive value\", \"object type:\" + toType);\n\t\t\telse\n\t\t\t\treturn primValue;\n\n\t\t// can only cast boolean to boolean\n\t\tif ( fromType == Boolean.TYPE )\n\t\t{\n\t\t\tif ( toType != Boolean.TYPE )\n\t\t\t\tcastError(fromType, toType);\n\t\t\telse \n\t\t\t\treturn primValue;\n\t\t}\n\n\t\t// trying to do numeric promotion\n\n\t\t// first promote char to Number type to avoid duplicating code\n\t\tif (value instanceof Character)\n\t\t\tvalue = new Integer(((Character)value).charValue());\n\n\t\tif (value instanceof Number)\n\t\t{\n\t\t\tNumber number = (Number)value;\n\n\t\t\tif (toType == Byte.TYPE)\n\t\t\t\tvalue = new Primitive(number.byteValue());\n\t\t\telse if(toType == Short.TYPE)\n\t\t\t\tvalue = new Primitive(number.shortValue());\n\t\t\telse if(toType == Character.TYPE)\n\t\t\t\tvalue = new Primitive((char)number.intValue());\n\t\t\telse if(toType == Integer.TYPE)\n\t\t\t\tvalue = new Primitive(number.intValue());\n\t\t\telse if(toType == Long.TYPE)\n\t\t\t\tvalue = new Primitive(number.longValue());\n\t\t\telse if(toType == Float.TYPE)\n\t\t\t\tvalue = new Primitive(number.floatValue());\n\t\t\telse if(toType == Double.TYPE)\n\t\t\t\tvalue = new Primitive(number.doubleValue());\n\t\t\telse\n\t\t\t\tcastError(fromType, toType);\n\n\t\t\treturn (Primitive)value;\n\t\t} \n\n\t\tthrow new EvalError(\"unknown type in cast\");", "functions": [{"function_name": "eval", "code": "\tpublic Object eval(\n\t\tCallStack callstack, Interpreter interpreter ) throws EvalError\n    {\n\t\tNameSpace namespace = callstack.top();\n        Class toType = ((BSHType)jjtGetChild(0)).getType(namespace);\n\t\tSimpleNode expression = (SimpleNode)jjtGetChild(1);\n\n        // evaluate the expression\n        Object fromValue = expression.eval(callstack, interpreter);\n        Class fromType = fromValue.getClass();\n\n\t\ttry {\n\t\t\treturn castObject( fromValue, toType );\n\t\t} catch ( EvalError e ) {\n\t\t\te.reThrow( this );\n\t\t\tthrow new InterpreterError(\"can't happen\"); // help the compiler", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [9, 11], [10, 12], [2, 13], [3, 14], [6, 15], [11, 16], [9, 17], [4, 18], [5, 19], [16, 20], [18, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 9], [12, 10], [13, 2], [14, 3], [15, 6], [16, 11], [17, 9], [18, 4], [19, 5], [20, 16], [21, 18], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "castObject", "code": "\tpublic static Object castObject( Object fromValue, Class toType )\n\t\tthrows EvalError\n\t{\n        Class fromType = fromValue.getClass();\n\n\t\t// The compiler isn't smart enough to allow me to leave this unassigned\n\t\t// even though it is clearly assigned in all cases below.\n        Object result = null;\n\n\t\t// Going to a primitive type\n        if ( toType.isPrimitive() ) \n\t\t\tif ( fromValue instanceof Primitive )\n\t\t\t\tresult = castPrimitive( (Primitive)fromValue, toType );\n\t\t\telse\n\t\t\t\t// cannot convert from object to primitive\n                castError(fromValue.getClass(), toType);\n        else \n\t\t\t// Going to an object type\n\t\t\tif ( fromValue instanceof Primitive )\n\t\t\t\t// let castPrimitive handle trivial but legit case of NULL\n\t\t\t\tresult = castPrimitive( (Primitive)fromValue, toType );\n\t\t\telse\n\t\t\t\t// Can we use the proxy mechanism to cast a bsh.This to \n\t\t\t\t// the correct interface?\n\t\t\t\tif ( Capabilities.canGenerateInterfaces() &&\n\t\t\t\t\t(fromValue instanceof bsh.This) && toType.isInterface() ) \n\t\t\t\t\t\tresult = ((bsh.This)fromValue).getInterface( toType );\n\t\t\t\telse \n\t\t\t\t\t// Could probably add getAssignableForm here to allow \n\t\t\t\t\t// special bsh widening converions... wrappers to wrappers\n\t\t\t\t\tif ( toType.isInstance(fromValue ) )\n\t\t\t\t\t\tresult = fromValue;\n\t\t\t\t\telse\n\t\t\t\t\t\tcastError(fromType, toType);\n\n\t\tif ( result == null )\n\t\t\tthrow new InternalError(\"bad construct somewhere...\");\n\n\t\treturn result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [3, 11], [3, 12], [8, 13], [9, 14], [10, 15], [10, 16], [11, 17], [4, 18], [5, 19], [13, 20], [15, 21], [15, 22], [10, 23], [11, 24], [11, 25], [21, 26], [15, 27], [22, 28], [22, 29], [23, 30], [24, 31], [25, 32], [21, 33], [21, 34], [29, 35], [29, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 3], [12, 3], [13, 8], [14, 9], [15, 10], [16, 10], [17, 11], [18, 4], [19, 5], [20, 13], [21, 15], [22, 15], [23, 10], [24, 11], [25, 11], [26, 21], [27, 15], [28, 22], [29, 22], [30, 23], [31, 24], [32, 25], [33, 21], [34, 21], [35, 29], [36, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "castError", "code": "    public static void castError(Class from, Class to) throws EvalError {\n\t\tcastError( \n\t\t\tReflect.normalizeClassName(from), Reflect.normalizeClassName(to) );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "castError", "code": "    public static void castError(String from, String to) throws EvalError \n\t{\n\t\tException cce = new ClassCastException(\"Illegal cast. Cannot cast \" +\n            from + \" to \" + to );\n\t\tthrow new TargetError( \"Cast\", cce );", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [7, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 7], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "castPrimitive", "code": "\tpublic static Primitive castPrimitive( Primitive primValue, Class toType ) \n\t\tthrows EvalError\n\t{\n\t\t// can't cast void to anything\n\t\tif ( primValue == Primitive.VOID )\n\t\t\tcastError( \"void value\", Reflect.normalizeClassName(toType) );\n\n\t\t// unwrap, etc.\n\t\tObject value = primValue.getValue();\n\t\tClass fromType = primValue.getType();\n\n\t\t// Trying to cast primitive to an object type?\n\t\t// only works for Primitive.NULL\n\t\tif ( !toType.isPrimitive() )\n\t\t\tif ( primValue != Primitive.NULL )\n\t\t\t\tcastError(\"primitive value\", \"object type:\" + toType);\n\t\t\telse\n\t\t\t\treturn primValue;\n\n\t\t// can only cast boolean to boolean\n\t\tif ( fromType == Boolean.TYPE )\n\t\t{\n\t\t\tif ( toType != Boolean.TYPE )\n\t\t\t\tcastError(fromType, toType);\n\t\t\telse \n\t\t\t\treturn primValue;\n\t\t}\n\n\t\t// trying to do numeric promotion\n\n\t\t// first promote char to Number type to avoid duplicating code\n\t\tif (value instanceof Character)\n\t\t\tvalue = new Integer(((Character)value).charValue());\n\n\t\tif (value instanceof Number)\n\t\t{\n\t\t\tNumber number = (Number)value;\n\n\t\t\tif (toType == Byte.TYPE)\n\t\t\t\tvalue = new Primitive(number.byteValue());\n\t\t\telse if(toType == Short.TYPE)\n\t\t\t\tvalue = new Primitive(number.shortValue());\n\t\t\telse if(toType == Character.TYPE)\n\t\t\t\tvalue = new Primitive((char)number.intValue());\n\t\t\telse if(toType == Integer.TYPE)\n\t\t\t\tvalue = new Primitive(number.intValue());\n\t\t\telse if(toType == Long.TYPE)\n\t\t\t\tvalue = new Primitive(number.longValue());\n\t\t\telse if(toType == Float.TYPE)\n\t\t\t\tvalue = new Primitive(number.floatValue());\n\t\t\telse if(toType == Double.TYPE)\n\t\t\t\tvalue = new Primitive(number.doubleValue());\n\t\t\telse\n\t\t\t\tcastError(fromType, toType);\n\n\t\t\treturn (Primitive)value;\n\t\t} \n\n\t\tthrow new EvalError(\"unknown type in cast\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "ASSIGN", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [4, 14], [5, 15], [5, 16], [8, 17], [11, 18], [2, 19], [2, 20], [2, 21], [3, 22], [4, 23], [15, 24], [15, 25], [6, 26], [7, 27], [8, 28], [20, 29], [20, 30], [22, 31], [23, 32], [23, 33], [15, 34], [28, 35], [28, 36], [29, 37], [29, 38], [20, 39], [23, 40], [34, 41], [34, 42], [37, 43], [37, 44], [29, 45], [39, 46], [41, 47], [43, 48], [43, 49], [37, 50], [45, 51], [46, 52], [48, 53], [48, 54], [43, 55], [50, 56], [51, 57], [53, 58], [53, 59], [48, 60], [55, 61], [58, 62], [53, 63], [60, 64], [61, 65], [56, 66], [58, 67], [58, 68], [63, 69], [64, 70], [68, 71], [69, 72], [71, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 4], [15, 5], [16, 5], [17, 8], [18, 11], [19, 2], [20, 2], [21, 2], [22, 3], [23, 4], [24, 15], [25, 15], [26, 6], [27, 7], [28, 8], [29, 20], [30, 20], [31, 22], [32, 23], [33, 23], [34, 15], [35, 28], [36, 28], [37, 29], [38, 29], [39, 20], [40, 23], [41, 34], [42, 34], [43, 37], [44, 37], [45, 29], [46, 39], [47, 41], [48, 43], [49, 43], [50, 37], [51, 45], [52, 46], [53, 48], [54, 48], [55, 43], [56, 50], [57, 51], [58, 53], [59, 53], [60, 48], [61, 55], [62, 58], [63, 53], [64, 60], [65, 61], [66, 56], [67, 58], [68, 58], [69, 63], [70, 64], [71, 68], [72, 69], [73, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "BSHCastExpression", "code": "    public BSHCastExpression(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-2.5-5786", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/AxisUsedRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.AxisUsedRecord", "code": "public class AxisUsedRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1046;\n    private  short      field_1_numAxis;\n\n\n    public AxisUsedRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a AxisUsed record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1046 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public AxisUsedRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a AxisUsed record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1046 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public AxisUsedRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a AxisUsed record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_numAxis                = LittleEndian.getShort(data, pos + 0x0 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AXISUSED]\\n\");\n        buffer.append(\"    .numAxis              = \")\n            .append(\"0x\").append(HexDump.toHex(  getNumAxis ()))\n            .append(\" (\").append( getNumAxis() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/AXISUSED]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_numAxis);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        AxisUsedRecord rec = new AxisUsedRecord();\n    \n        rec.field_1_numAxis = field_1_numAxis;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the num axis field for the AxisUsed record.\n     */\n    public short getNumAxis()\n    {\n        return field_1_numAxis;\n    }\n\n    /**\n     * Set the num axis field for the AxisUsed record.\n     */\n    public void setNumAxis(short field_1_numAxis)\n    {\n        this.field_1_numAxis = field_1_numAxis;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a AxisUsed record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_numAxis                = LittleEndian.getShort(data, pos + 0x0 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AXISUSED]\\n\");\n        buffer.append(\"    .numAxis              = \")\n            .append(\"0x\").append(HexDump.toHex(  getNumAxis ()))\n            .append(\" (\").append( getNumAxis() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/AXISUSED]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [7, 16], [2, 17], [9, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [22, 24], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 6], [16, 7], [17, 2], [18, 9], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_numAxis);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [6, 9], [7, 10], [8, 11], [2, 12], [9, 13], [7, 14], [10, 15], [11, 16], [13, 17], [14, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 6], [10, 7], [11, 8], [12, 2], [13, 9], [14, 7], [15, 10], [16, 11], [17, 13], [18, 14], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        AxisUsedRecord rec = new AxisUsedRecord();\n    \n        rec.field_1_numAxis = field_1_numAxis;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNumAxis", "code": "    public short getNumAxis()\n    {\n        return field_1_numAxis;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNumAxis", "code": "    public void setNumAxis(short field_1_numAxis)\n    {\n        this.field_1_numAxis = field_1_numAxis;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AxisUsedRecord", "code": "    public AxisUsedRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AxisUsedRecord", "code": "    public AxisUsedRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AxisUsedRecord", "code": "    public AxisUsedRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.4-2212", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/xquery/XQueryBuilder.java", "language": "java", "name": "org.apache.camel.component.xquery.XQueryBuilder", "code": "public abstract class XQueryBuilder implements Expression<Exchange>, Predicate<Exchange>, NamespaceAware, Processor {\n    private static final transient Log LOG = LogFactory.getLog(XQueryBuilder.class);\n    private Configuration configuration;\n    private XQueryExpression expression;\n    private StaticQueryContext staticQueryContext;\n    private Map<String, Object> parameters = new HashMap<String, Object>();\n    private Map<String, String> namespacePrefixes = new HashMap<String, String>();\n    private XmlConverter converter = new XmlConverter();\n    private ResultFormat resultsFormat = ResultFormat.DOM;\n    private Properties properties = new Properties();\n    private Class resultType;\n    private final AtomicBoolean initialized = new AtomicBoolean(false);\n\n    @Override\n    public String toString() {\n        return \"XQuery[\" + expression + \"]\";\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        Object body = evaluate(exchange);\n        exchange.getOut(true).setBody(body);\n\n        exchange.getOut().getHeaders().putAll(exchange.getIn().getHeaders());\n    }\n\n    public Object evaluate(Exchange exchange) {\n        try {\n            initialize();\n\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Evaluation \" + expression + \" for exchange: \" + exchange);\n            }\n\n            if (resultType != null) {\n                if (resultType.equals(String.class)) {\n                    return evaluateAsString(exchange);\n                } else if (resultType.isAssignableFrom(Collection.class)) {\n                    return evaluateAsList(exchange);\n                } else if (resultType.isAssignableFrom(Node.class)) {\n                    return evaluateAsDOM(exchange);\n                } else {\n                }\n            }\n            switch (resultsFormat) {\n            case Bytes:\n                return evaluateAsBytes(exchange);\n            case BytesSource:\n                return evaluateAsBytesSource(exchange);\n            case DOM:\n                return evaluateAsDOM(exchange);\n            case List:\n                return evaluateAsList(exchange);\n            case StringSource:\n                return evaluateAsStringSource(exchange);\n            case String:\n            default:\n                return evaluateAsString(exchange);\n            }\n        } catch (Exception e) {\n            throw new RuntimeExpressionException(e);\n        }\n    }\n\n    public List evaluateAsList(Exchange exchange) throws Exception {\n        initialize();\n\n        return getExpression().evaluate(createDynamicContext(exchange));\n    }\n\n    public Object evaluateAsStringSource(Exchange exchange) throws Exception {\n        initialize();\n\n        String text = evaluateAsString(exchange);\n        return new StringSource(text);\n    }\n\n    public Object evaluateAsBytesSource(Exchange exchange) throws Exception {\n        initialize();\n\n        byte[] bytes = evaluateAsBytes(exchange);\n        return new BytesSource(bytes);\n    }\n\n    public Node evaluateAsDOM(Exchange exchange) throws Exception {\n        initialize();\n\n        DOMResult result = new DOMResult();\n        DynamicQueryContext context = createDynamicContext(exchange);\n        XQueryExpression expression = getExpression();\n        expression.pull(context, result, properties);\n        return result.getNode();\n    }\n\n    public byte[] evaluateAsBytes(Exchange exchange) throws Exception {\n        initialize();\n\n        ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n        Result result = new StreamResult(buffer);\n        getExpression().pull(createDynamicContext(exchange), result, properties);\n        byte[] bytes = buffer.toByteArray();\n        return bytes;\n    }\n\n    public String evaluateAsString(Exchange exchange) throws Exception {\n        initialize();\n\n        StringWriter buffer = new StringWriter();\n        SequenceIterator iter = getExpression().iterator(createDynamicContext(exchange));\n        for (Item item = iter.next(); item != null; item = iter.next()) {\n            buffer.append(item.getStringValueCS());\n        }\n        return buffer.toString();\n    }\n\n    public boolean matches(Exchange exchange) {\n        try {\n            List list = evaluateAsList(exchange);\n            return matches(exchange, list);\n        } catch (Exception e) {\n            throw new RuntimeExpressionException(e);\n        }\n    }\n\n    public void assertMatches(String text, Exchange exchange) throws AssertionError {\n        try {\n            List list = evaluateAsList(exchange);\n            if (!matches(exchange, list)) {\n                throw new AssertionError(this + \" failed on \" + exchange + \" as evaluated: \" + list);\n            }\n        } catch (Exception e) {\n            throw new AssertionError(e);\n        }\n    }\n\n    public static XQueryBuilder xquery(final String queryText) {\n        return new XQueryBuilder() {\n            protected XQueryExpression createQueryExpression(StaticQueryContext staticQueryContext)\n                throws XPathException {\n                return staticQueryContext.compileQuery(queryText);\n            }\n        };\n    }\n\n    public static XQueryBuilder xquery(final Reader reader) {\n        return new XQueryBuilder() {\n            protected XQueryExpression createQueryExpression(StaticQueryContext staticQueryContext)\n                throws XPathException, IOException {\n                return staticQueryContext.compileQuery(reader);\n            }\n        };\n    }\n\n    public static XQueryBuilder xquery(final InputStream in, final String characterSet) {\n        return new XQueryBuilder() {\n            protected XQueryExpression createQueryExpression(StaticQueryContext staticQueryContext)\n                throws XPathException, IOException {\n                return staticQueryContext.compileQuery(in, characterSet);\n            }\n        };\n    }\n\n    public static XQueryBuilder xquery(File file, String characterSet) throws FileNotFoundException {\n        return xquery(IOConverter.toInputStream(file), characterSet);\n    }\n\n    public static XQueryBuilder xquery(URL url, String characterSet) throws IOException {\n        return xquery(IOConverter.toInputStream(url), characterSet);\n    }\n\n    public static XQueryBuilder xquery(File file) throws FileNotFoundException {\n        return xquery(IOConverter.toInputStream(file), ObjectHelper.getDefaultCharacterSet());\n    }\n\n    public static XQueryBuilder xquery(URL url) throws IOException {\n        return xquery(IOConverter.toInputStream(url), ObjectHelper.getDefaultCharacterSet());\n    }\n\n    public XQueryBuilder parameter(String name, Object value) {\n        parameters.put(name, value);\n        return this;\n    }\n\n    public XQueryBuilder namespace(String prefix, String uri) {\n        namespacePrefixes.put(prefix, uri);\n        initialized.set(false);\n        return this;\n    }\n\n    public XQueryBuilder resultType(Class resultType) {\n        setResultType(resultType);\n        return this;\n    }\n\n    public XQueryBuilder asBytes() {\n        setResultsFormat(ResultFormat.Bytes);\n        return this;\n    }\n\n    public XQueryBuilder asBytesSource() {\n        setResultsFormat(ResultFormat.BytesSource);\n        return this;\n    }\n\n    public XQueryBuilder asDOM() {\n        setResultsFormat(ResultFormat.DOM);\n        return this;\n    }\n\n    public XQueryBuilder asDOMSource() {\n        setResultsFormat(ResultFormat.DOMSource);\n        return this;\n    }\n\n    public XQueryBuilder asList() {\n        setResultsFormat(ResultFormat.List);\n        return this;\n    }\n\n    public XQueryBuilder asString() {\n        setResultsFormat(ResultFormat.String);\n        return this;\n    }\n\n    public XQueryBuilder asStringSource() {\n        setResultsFormat(ResultFormat.StringSource);\n        return this;\n    }\n\n\n    /**\n     * Configures the namespace context from the given DOM element\n     */\n    public void setNamespaces(Map<String, String> namespaces) {\n        namespacePrefixes.putAll(namespaces);\n        initialized.set(false);\n    }\n\n    public XQueryExpression getExpression() throws IOException, XPathException {\n        return expression;\n    }\n\n    public Configuration getConfiguration() {\n        return configuration;\n    }\n\n    public void setConfiguration(Configuration configuration) {\n        this.configuration = configuration;\n        initialized.set(false);\n    }\n\n    public StaticQueryContext getStaticQueryContext() {\n        return staticQueryContext;\n    }\n\n    public void setStaticQueryContext(StaticQueryContext staticQueryContext) {\n        this.staticQueryContext = staticQueryContext;\n        initialized.set(false);\n    }\n\n    public Map<String, Object> getParameters() {\n        return parameters;\n    }\n\n    public void setParameters(Map<String, Object> parameters) {\n        this.parameters = parameters;\n    }\n\n    public Properties getProperties() {\n        return properties;\n    }\n\n    public void setProperties(Properties properties) {\n        this.properties = properties;\n    }\n\n    public ResultFormat getResultsFormat() {\n        return resultsFormat;\n    }\n\n    public void setResultsFormat(ResultFormat resultsFormat) {\n        this.resultsFormat = resultsFormat;\n    }\n\n    public Class getResultType() {\n        return resultType;\n    }\n\n    public void setResultType(Class resultType) {\n        this.resultType = resultType;\n    }\n\n\n    /**\n     * A factory method to create the XQuery expression\n     */\n    protected abstract XQueryExpression createQueryExpression(StaticQueryContext staticQueryContext)\n        throws XPathException, IOException;\n\n    /**\n     * Creates a dynamic context for the given exchange\n     */\n    protected DynamicQueryContext createDynamicContext(Exchange exchange) throws Exception {\n        Configuration config = getConfiguration();\n        DynamicQueryContext dynamicQueryContext = new DynamicQueryContext(config);\n\n        Message in = exchange.getIn();\n        Item item = in.getBody(Item.class);\n        Source source = null;\n        if (item != null) {\n            dynamicQueryContext.setContextItem(item);\n        } else {\n            source = in.getBody(Source.class);\n            if (source == null) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"No body available on exchange so using an empty document: \" + exchange);\n                }\n                source = converter.toSource(converter.createDocument());\n            }\n            DocumentInfo doc = getStaticQueryContext().buildDocument(source);\n            dynamicQueryContext.setContextItem(doc);\n        }\n\n        configureQuery(dynamicQueryContext, exchange);\n        return dynamicQueryContext;\n    }\n\n    /**\n     * Configures the dynamic context with exchange specific parameters\n     *\n     * @param dynamicQueryContext\n     * @param exchange\n     * @throws Exception\n     */\n    protected void configureQuery(DynamicQueryContext dynamicQueryContext, Exchange exchange)\n        throws Exception {\n        addParameters(dynamicQueryContext, exchange.getProperties());\n        addParameters(dynamicQueryContext, exchange.getIn().getHeaders());\n        addParameters(dynamicQueryContext, getParameters());\n\n        dynamicQueryContext.setParameter(\"exchange\", exchange);\n        if (exchange.getPattern().isOutCapable()) {\n            dynamicQueryContext.setParameter(\"out\", exchange.getOut());\n        }\n    }\n\n    protected void addParameters(DynamicQueryContext dynamicQueryContext, Map<String, Object> map) {\n        Set<Map.Entry<String, Object>> propertyEntries = map.entrySet();\n        for (Map.Entry<String, Object> entry : propertyEntries) {\n            dynamicQueryContext.setParameter(entry.getKey(), entry.getValue());\n        }\n    }\n\n    protected boolean matches(Exchange exchange, List results) {\n        return ObjectHelper.matches(results);\n    }\n\n    /**\n     * Initializes this builder - <b>Must be invoked before evaluation</b>.\n     */\n    protected synchronized void initialize() throws XPathException, IOException {\n        if (!initialized.get()) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Initializing XQueryBuilder \" + this);\n            }\n            configuration = new Configuration();\n            configuration.setHostLanguage(Configuration.XQUERY);\n\n            staticQueryContext = new StaticQueryContext(getConfiguration());\n            Set<Map.Entry<String, String>> entries = namespacePrefixes.entrySet();\n            for (Map.Entry<String, String> entry : entries) {\n                String prefix = entry.getKey();\n                String uri = entry.getValue();\n                staticQueryContext.declareNamespace(prefix, uri);\n                staticQueryContext.setInheritNamespaces(true);\n            }\n\n            expression = createQueryExpression(staticQueryContext);\n\n            initialized.set(true);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"XQuery[\" + expression + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        Object body = evaluate(exchange);\n        exchange.getOut(true).setBody(body);\n\n        exchange.getOut().getHeaders().putAll(exchange.getIn().getHeaders());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [4, 7], [4, 8], [1, 9], [5, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 4], [8, 4], [9, 1], [10, 5], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "evaluate", "code": "    public Object evaluate(Exchange exchange) {\n        try {\n            initialize();\n\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Evaluation \" + expression + \" for exchange: \" + exchange);\n            }\n\n            if (resultType != null) {\n                if (resultType.equals(String.class)) {\n                    return evaluateAsString(exchange);\n                } else if (resultType.isAssignableFrom(Collection.class)) {\n                    return evaluateAsList(exchange);\n                } else if (resultType.isAssignableFrom(Node.class)) {\n                    return evaluateAsDOM(exchange);\n                } else {\n                }\n            }\n            switch (resultsFormat) {\n            case Bytes:\n                return evaluateAsBytes(exchange);\n            case BytesSource:\n                return evaluateAsBytesSource(exchange);\n            case DOM:\n                return evaluateAsDOM(exchange);\n            case List:\n                return evaluateAsList(exchange);\n            case StringSource:\n                return evaluateAsStringSource(exchange);\n            case String:\n            default:\n                return evaluateAsString(exchange);\n            }\n        } catch (Exception e) {\n            throw new RuntimeExpressionException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "SWITCH", "IF", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [5, 8], [6, 9], [1, 10], [7, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 16], [4, 17], [5, 18], [8, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [18, 26], [18, 27], [6, 28], [26, 29], [26, 30], [18, 31], [28, 32], [29, 33], [26, 34], [31, 35], [32, 36], [29, 37], [34, 38], [36, 39], [36, 40], [37, 41], [40, 42], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 5], [9, 6], [10, 1], [11, 7], [12, 4], [13, 4], [14, 4], [15, 4], [16, 4], [17, 4], [18, 5], [19, 8], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 18], [27, 18], [28, 6], [29, 26], [30, 26], [31, 18], [32, 28], [33, 29], [34, 26], [35, 31], [36, 32], [37, 29], [38, 34], [39, 36], [40, 36], [41, 37], [42, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "evaluateAsList", "code": "    public List evaluateAsList(Exchange exchange) throws Exception {\n        initialize();\n\n        return getExpression().evaluate(createDynamicContext(exchange));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "evaluateAsStringSource", "code": "    public Object evaluateAsStringSource(Exchange exchange) throws Exception {\n        initialize();\n\n        String text = evaluateAsString(exchange);\n        return new StringSource(text);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "evaluateAsBytesSource", "code": "    public Object evaluateAsBytesSource(Exchange exchange) throws Exception {\n        initialize();\n\n        byte[] bytes = evaluateAsBytes(exchange);\n        return new BytesSource(bytes);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "evaluateAsDOM", "code": "    public Node evaluateAsDOM(Exchange exchange) throws Exception {\n        initialize();\n\n        DOMResult result = new DOMResult();\n        DynamicQueryContext context = createDynamicContext(exchange);\n        XQueryExpression expression = getExpression();\n        expression.pull(context, result, properties);\n        return result.getNode();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "evaluateAsBytes", "code": "    public byte[] evaluateAsBytes(Exchange exchange) throws Exception {\n        initialize();\n\n        ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n        Result result = new StreamResult(buffer);\n        getExpression().pull(createDynamicContext(exchange), result, properties);\n        byte[] bytes = buffer.toByteArray();\n        return bytes;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [6, 9], [3, 10], [4, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 6], [10, 3], [11, 4], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "evaluateAsString", "code": "    public String evaluateAsString(Exchange exchange) throws Exception {\n        initialize();\n\n        StringWriter buffer = new StringWriter();\n        SequenceIterator iter = getExpression().iterator(createDynamicContext(exchange));\n        for (Item item = iter.next(); item != null; item = iter.next()) {\n            buffer.append(item.getStringValueCS());\n        }\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [7, 10], [8, 11], [3, 12], [4, 13], [2, 14], [2, 15], [12, 16], [14, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 7], [11, 8], [12, 3], [13, 4], [14, 2], [15, 2], [16, 12], [17, 14], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "matches", "code": "    public boolean matches(Exchange exchange) {\n        try {\n            List list = evaluateAsList(exchange);\n            return matches(exchange, list);\n        } catch (Exception e) {\n            throw new RuntimeExpressionException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [6, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 6], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "assertMatches", "code": "    public void assertMatches(String text, Exchange exchange) throws AssertionError {\n        try {\n            List list = evaluateAsList(exchange);\n            if (!matches(exchange, list)) {\n                throw new AssertionError(this + \" failed on \" + exchange + \" as evaluated: \" + list);\n            }\n        } catch (Exception e) {\n            throw new AssertionError(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [7, 9], [5, 10], [6, 11], [10, 12], [12, 13], [13, 14], [14, 15], [14, 16], [16, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 7], [10, 5], [11, 6], [12, 10], [13, 12], [14, 13], [15, 14], [16, 14], [17, 16], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "xquery", "code": "    public static XQueryBuilder xquery(final String queryText) {\n        return new XQueryBuilder() {\n            protected XQueryExpression createQueryExpression(StaticQueryContext staticQueryContext)\n                throws XPathException {\n                return staticQueryContext.compileQuery(queryText);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "xquery", "code": "    public static XQueryBuilder xquery(final Reader reader) {\n        return new XQueryBuilder() {\n            protected XQueryExpression createQueryExpression(StaticQueryContext staticQueryContext)\n                throws XPathException, IOException {\n                return staticQueryContext.compileQuery(reader);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "xquery", "code": "    public static XQueryBuilder xquery(final InputStream in, final String characterSet) {\n        return new XQueryBuilder() {\n            protected XQueryExpression createQueryExpression(StaticQueryContext staticQueryContext)\n                throws XPathException, IOException {\n                return staticQueryContext.compileQuery(in, characterSet);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "xquery", "code": "    public static XQueryBuilder xquery(File file, String characterSet) throws FileNotFoundException {\n        return xquery(IOConverter.toInputStream(file), characterSet);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "xquery", "code": "    public static XQueryBuilder xquery(URL url, String characterSet) throws IOException {\n        return xquery(IOConverter.toInputStream(url), characterSet);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "xquery", "code": "    public static XQueryBuilder xquery(File file) throws FileNotFoundException {\n        return xquery(IOConverter.toInputStream(file), ObjectHelper.getDefaultCharacterSet());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "xquery", "code": "    public static XQueryBuilder xquery(URL url) throws IOException {\n        return xquery(IOConverter.toInputStream(url), ObjectHelper.getDefaultCharacterSet());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "parameter", "code": "    public XQueryBuilder parameter(String name, Object value) {\n        parameters.put(name, value);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "namespace", "code": "    public XQueryBuilder namespace(String prefix, String uri) {\n        namespacePrefixes.put(prefix, uri);\n        initialized.set(false);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "resultType", "code": "    public XQueryBuilder resultType(Class resultType) {\n        setResultType(resultType);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "asBytes", "code": "    public XQueryBuilder asBytes() {\n        setResultsFormat(ResultFormat.Bytes);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "asBytesSource", "code": "    public XQueryBuilder asBytesSource() {\n        setResultsFormat(ResultFormat.BytesSource);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "asDOM", "code": "    public XQueryBuilder asDOM() {\n        setResultsFormat(ResultFormat.DOM);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "asDOMSource", "code": "    public XQueryBuilder asDOMSource() {\n        setResultsFormat(ResultFormat.DOMSource);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "asList", "code": "    public XQueryBuilder asList() {\n        setResultsFormat(ResultFormat.List);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "asString", "code": "    public XQueryBuilder asString() {\n        setResultsFormat(ResultFormat.String);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "asStringSource", "code": "    public XQueryBuilder asStringSource() {\n        setResultsFormat(ResultFormat.StringSource);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNamespaces", "code": "    public void setNamespaces(Map<String, String> namespaces) {\n        namespacePrefixes.putAll(namespaces);\n        initialized.set(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getExpression", "code": "    public XQueryExpression getExpression() throws IOException, XPathException {\n        return expression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getConfiguration", "code": "    public Configuration getConfiguration() {\n        return configuration;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConfiguration", "code": "    public void setConfiguration(Configuration configuration) {\n        this.configuration = configuration;\n        initialized.set(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getStaticQueryContext", "code": "    public StaticQueryContext getStaticQueryContext() {\n        return staticQueryContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStaticQueryContext", "code": "    public void setStaticQueryContext(StaticQueryContext staticQueryContext) {\n        this.staticQueryContext = staticQueryContext;\n        initialized.set(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getParameters", "code": "    public Map<String, Object> getParameters() {\n        return parameters;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParameters", "code": "    public void setParameters(Map<String, Object> parameters) {\n        this.parameters = parameters;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProperties", "code": "    public Properties getProperties() {\n        return properties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProperties", "code": "    public void setProperties(Properties properties) {\n        this.properties = properties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResultsFormat", "code": "    public ResultFormat getResultsFormat() {\n        return resultsFormat;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResultsFormat", "code": "    public void setResultsFormat(ResultFormat resultsFormat) {\n        this.resultsFormat = resultsFormat;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResultType", "code": "    public Class getResultType() {\n        return resultType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResultType", "code": "    public void setResultType(Class resultType) {\n        this.resultType = resultType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createQueryExpression", "code": "    protected abstract XQueryExpression createQueryExpression(StaticQueryContext staticQueryContext)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createDynamicContext", "code": "    protected DynamicQueryContext createDynamicContext(Exchange exchange) throws Exception {\n        Configuration config = getConfiguration();\n        DynamicQueryContext dynamicQueryContext = new DynamicQueryContext(config);\n\n        Message in = exchange.getIn();\n        Item item = in.getBody(Item.class);\n        Source source = null;\n        if (item != null) {\n            dynamicQueryContext.setContextItem(item);\n        } else {\n            source = in.getBody(Source.class);\n            if (source == null) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"No body available on exchange so using an empty document: \" + exchange);\n                }\n                source = converter.toSource(converter.createDocument());\n            }\n            DocumentInfo doc = getStaticQueryContext().buildDocument(source);\n            dynamicQueryContext.setContextItem(doc);\n        }\n\n        configureQuery(dynamicQueryContext, exchange);\n        return dynamicQueryContext;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [2, 12], [10, 13], [3, 14], [4, 15], [5, 16], [6, 17], [7, 18], [2, 19], [12, 20], [2, 21], [2, 22], [11, 23], [12, 24], [20, 25], [21, 26], [23, 27], [12, 28], [24, 29], [28, 30], [30, 31], [24, 32], [32, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 2], [13, 10], [14, 3], [15, 4], [16, 5], [17, 6], [18, 7], [19, 2], [20, 12], [21, 2], [22, 2], [23, 11], [24, 12], [25, 20], [26, 21], [27, 23], [28, 12], [29, 24], [30, 28], [31, 30], [32, 24], [33, 32], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "configureQuery", "code": "    protected void configureQuery(DynamicQueryContext dynamicQueryContext, Exchange exchange)\n        throws Exception {\n        addParameters(dynamicQueryContext, exchange.getProperties());\n        addParameters(dynamicQueryContext, exchange.getIn().getHeaders());\n        addParameters(dynamicQueryContext, getParameters());\n\n        dynamicQueryContext.setParameter(\"exchange\", exchange);\n        if (exchange.getPattern().isOutCapable()) {\n            dynamicQueryContext.setParameter(\"out\", exchange.getOut());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [6, 11], [7, 12], [8, 13], [1, 14], [12, 15], [14, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 6], [12, 7], [13, 8], [14, 1], [15, 12], [16, 14], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "addParameters", "code": "    protected void addParameters(DynamicQueryContext dynamicQueryContext, Map<String, Object> map) {\n        Set<Map.Entry<String, Object>> propertyEntries = map.entrySet();\n        for (Map.Entry<String, Object> entry : propertyEntries) {\n            dynamicQueryContext.setParameter(entry.getKey(), entry.getValue());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "matches", "code": "    protected boolean matches(Exchange exchange, List results) {\n        return ObjectHelper.matches(results);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "initialize", "code": "    protected synchronized void initialize() throws XPathException, IOException {\n        if (!initialized.get()) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Initializing XQueryBuilder \" + this);\n            }\n            configuration = new Configuration();\n            configuration.setHostLanguage(Configuration.XQUERY);\n\n            staticQueryContext = new StaticQueryContext(getConfiguration());\n            Set<Map.Entry<String, String>> entries = namespacePrefixes.entrySet();\n            for (Map.Entry<String, String> entry : entries) {\n                String prefix = entry.getKey();\n                String uri = entry.getValue();\n                staticQueryContext.declareNamespace(prefix, uri);\n                staticQueryContext.setInheritNamespaces(true);\n            }\n\n            expression = createQueryExpression(staticQueryContext);\n\n            initialized.set(true);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "LOOP", "VAR_DECL", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [6, 12], [7, 13], [3, 14], [3, 15], [4, 16], [8, 17], [10, 18], [3, 19], [3, 20], [17, 21], [5, 22], [19, 23], [14, 24], [15, 25], [22, 26], [26, 27], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 6], [13, 7], [14, 3], [15, 3], [16, 4], [17, 8], [18, 10], [19, 3], [20, 3], [21, 17], [22, 5], [23, 19], [24, 14], [25, 15], [26, 22], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}], "label": 0}
{"sample_id": "xalan-2.5-6956", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/transformer/KeyTable.java", "language": "java", "name": "org.apache.xalan.transformer.KeyTable", "code": "public class KeyTable\n{\n  /**\n   * The document key.  This table should only be used with contexts\n   * whose Document roots match this key.\n   */\n  private int m_docKey;\n\n  /**\n   * Vector of KeyDeclaration instances holding the key declarations.\n   */\n  private Vector m_keyDeclarations;\n\n  /**\n   * Hold a cache of key() function result for each ref.\n   * Key is XMLString, the ref value\n   * Value is XNodeSet, the key() function result for the given ref value.\n   */\n  private Hashtable m_refsTable = null;\n\n  /**\n   * Get the document root matching this key.  \n   *\n   * @return the document root matching this key\n   */\n  public int getDocKey()\n  {\n    return m_docKey;\n  }\n\n  /** \n   * The main iterator that will walk through the source  \n   * tree for this key.\n   */\n  private XNodeSet m_keyNodes;\n  \n  KeyIterator getKeyIterator()\n  {\n  \treturn (KeyIterator)(m_keyNodes.getContainedIter());\n  }\n\n  /**\n   * Build a keys table.\n   * @param doc The owner document key.\n   * @param nscontext The stylesheet's namespace context.\n   * @param name The key name\n   * @param keyDeclarations The stylesheet's xsl:key declarations.\n   * @param xmlLiaison The parser liaison for support of getNodeData(useNode).\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public KeyTable(\n          int doc, PrefixResolver nscontext, QName name, Vector keyDeclarations, XPathContext xctxt)\n            throws javax.xml.transform.TransformerException\n  {\n    m_docKey = doc;\n    m_keyDeclarations = keyDeclarations;\n    KeyIterator ki = new KeyIterator(name, keyDeclarations);\n\n    m_keyNodes = new XNodeSet(ki);\n    m_keyNodes.allowDetachToRelease(false);\n    m_keyNodes.setRoot(doc, xctxt);\n  }\n\n  /**\n   * Given a valid element key, return the corresponding node list.\n   * \n   * @param name The name of the key, which must match the 'name' attribute on xsl:key.\n   * @param ref The value that must match the value found by the 'match' attribute on xsl:key.\n   * @return a set of nodes referenced by the key named <CODE>name</CODE> and the reference <CODE>ref</CODE>. If no node is referenced by this key, an empty node set is returned.\n   */\n  public XNodeSet getNodeSetDTMByKey(QName name, XMLString ref)\n\n  {\n    XNodeSet refNodes = (XNodeSet) getRefsTable().get(ref);\n   try\n    {\n      if (refNodes != null)\n      {\n         refNodes = (XNodeSet) refNodes.cloneWithReset();\n       }\n    }\n    catch (CloneNotSupportedException e)\n    {\n      refNodes = null;\n    }\n\n    if (refNodes == null) {\n      KeyIterator ki = (KeyIterator) (m_keyNodes).getContainedIter();\n      XPathContext xctxt = ki.getXPathContext();\n      refNodes = new XNodeSet(xctxt.getDTMManager()) {\n        public void setRoot(int nodeHandle, Object environment) {\n        }\n      };\n      refNodes.reset();\n    }\n\n    return refNodes;\n  }\n\n  /**\n   * Get Key Name for this KeyTable  \n   *\n   * @return Key name\n   */\n  public QName getKeyTableName()\n  {\n    return getKeyIterator().getName();\n  }\n\n  /**\n   * @return key declaration for the key associated to this KeyTable\n   */\n  private KeyDeclaration getKeyDeclaration() {\n    int nDeclarations = m_keyDeclarations.size();\n\n    for (int i = 0; i < nDeclarations; i++)\n    {\n      KeyDeclaration kd = (KeyDeclaration) m_keyDeclarations.elementAt(i);\n\n      if (kd.getName().equals(getKeyTableName()))\n      {\n        return kd;\n      }\n    }\n\n    return null;\n  }\n\n  /**\n   * @return lazy initialized refs table associating evaluation of key function\n   *         with a XNodeSet\n   */\n  private Hashtable getRefsTable()\n  {\n    if (m_refsTable == null)\n    {\n\n      KeyIterator ki = (KeyIterator) (m_keyNodes).getContainedIter();\n      XPathContext xctxt = ki.getXPathContext();\n\n      KeyDeclaration keyDeclaration = getKeyDeclaration();\n\n      int currentNode;\n      m_keyNodes.reset();\n      while (DTM.NULL != (currentNode = m_keyNodes.nextNode()))\n      {\n        try\n        {\n          XObject xuse = keyDeclaration.getUse().execute(xctxt, currentNode, ki.getPrefixResolver());\n\n          if (xuse.getType() != xuse.CLASS_NODESET)\n          {\n            XMLString exprResult = xuse.xstr();\n            addValueInRefsTable(xctxt, exprResult, currentNode);\n          }\n          else\n          {\n            DTMIterator i = ((XNodeSet)xuse).iterRaw();\n            int currentNodeInUseClause;\n\n            while (DTM.NULL != (currentNodeInUseClause = i.nextNode()))\n            {\n              DTM dtm = xctxt.getDTM(currentNodeInUseClause);\n              XMLString exprResult = dtm.getStringValue(currentNodeInUseClause);\n              addValueInRefsTable(xctxt, exprResult, currentNode);\n            }\n          }\n        }\n        catch (TransformerException te)\n        {\n          throw new WrappedRuntimeException(te);\n        }\n      }\n    }\n    return m_refsTable;\n  }\n\n  /**\n   * Add an association between a ref and a node in the m_refsTable.\n   * Requires that m_refsTable != null\n   * @param xctxt XPath context\n   * @param ref the value of the use clause of the current key for the given node\n   * @param node the node to reference\n   */\n  private void addValueInRefsTable(XPathContext xctxt, XMLString ref, int node) {\n    \n    XNodeSet nodes = (XNodeSet) m_refsTable.get(ref);\n    if (nodes == null)\n    {\n      nodes = new XNodeSet(node, xctxt.getDTMManager());\n      nodes.nextNode();\n      m_refsTable.put(ref, nodes);\n    }\n    else\n    {\n      if (nodes.getCurrentNode() != node) {\n          nodes.mutableNodeset().addNode(node);\n          nodes.nextNode();", "functions": [{"function_name": "getDocKey", "code": "  public int getDocKey()\n  {\n    return m_docKey;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getKeyIterator", "code": "  KeyIterator getKeyIterator()\n  {\n  \treturn (KeyIterator)(m_keyNodes.getContainedIter());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNodeSetDTMByKey", "code": "  public XNodeSet getNodeSetDTMByKey(QName name, XMLString ref)\n\n  {\n    XNodeSet refNodes = (XNodeSet) getRefsTable().get(ref);\n   try\n    {\n      if (refNodes != null)\n      {\n         refNodes = (XNodeSet) refNodes.cloneWithReset();\n       }\n    }\n    catch (CloneNotSupportedException e)\n    {\n      refNodes = null;\n    }\n\n    if (refNodes == null) {\n      KeyIterator ki = (KeyIterator) (m_keyNodes).getContainedIter();\n      XPathContext xctxt = ki.getXPathContext();\n      refNodes = new XNodeSet(xctxt.getDTMManager()) {\n        public void setRoot(int nodeHandle, Object environment) {\n        }\n      };\n      refNodes.reset();\n    }\n\n    return refNodes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "CALL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [3, 9], [2, 10], [2, 11], [7, 12], [9, 13], [2, 14], [2, 15], [8, 16], [13, 17], [4, 18], [15, 19], [10, 20], [16, 21], [9, 22], [18, 23], [19, 24], [19, 25], [24, 26], [24, 27], [11, 28], [22, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 3], [10, 2], [11, 2], [12, 7], [13, 9], [14, 2], [15, 2], [16, 8], [17, 13], [18, 4], [19, 15], [20, 10], [21, 16], [22, 9], [23, 18], [24, 19], [25, 19], [26, 24], [27, 24], [28, 11], [29, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getKeyTableName", "code": "  public QName getKeyTableName()\n  {\n    return getKeyIterator().getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getKeyDeclaration", "code": "  private KeyDeclaration getKeyDeclaration() {\n    int nDeclarations = m_keyDeclarations.size();\n\n    for (int i = 0; i < nDeclarations; i++)\n    {\n      KeyDeclaration kd = (KeyDeclaration) m_keyDeclarations.elementAt(i);\n\n      if (kd.getName().equals(getKeyTableName()))\n      {\n        return kd;\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [3, 8], [6, 9], [2, 10], [6, 11], [9, 12], [12, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 3], [9, 6], [10, 2], [11, 6], [12, 9], [13, 12], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRefsTable", "code": "  private Hashtable getRefsTable()\n  {\n    if (m_refsTable == null)\n    {\n\n      KeyIterator ki = (KeyIterator) (m_keyNodes).getContainedIter();\n      XPathContext xctxt = ki.getXPathContext();\n\n      KeyDeclaration keyDeclaration = getKeyDeclaration();\n\n      int currentNode;\n      m_keyNodes.reset();\n      while (DTM.NULL != (currentNode = m_keyNodes.nextNode()))\n      {\n        try\n        {\n          XObject xuse = keyDeclaration.getUse().execute(xctxt, currentNode, ki.getPrefixResolver());\n\n          if (xuse.getType() != xuse.CLASS_NODESET)\n          {\n            XMLString exprResult = xuse.xstr();\n            addValueInRefsTable(xctxt, exprResult, currentNode);\n          }\n          else\n          {\n            DTMIterator i = ((XNodeSet)xuse).iterRaw();\n            int currentNodeInUseClause;\n\n            while (DTM.NULL != (currentNodeInUseClause = i.nextNode()))\n            {\n              DTM dtm = xctxt.getDTM(currentNodeInUseClause);\n              XMLString exprResult = dtm.getStringValue(currentNodeInUseClause);\n              addValueInRefsTable(xctxt, exprResult, currentNode);\n            }\n          }\n        }\n        catch (TransformerException te)\n        {\n          throw new WrappedRuntimeException(te);\n        }\n      }\n    }\n    return m_refsTable;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "TRY", "ASSIGN", "CALL", "CALL", "CATCH", "IF", "VAR_DECL", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [3, 9], [4, 10], [2, 11], [4, 12], [10, 13], [6, 14], [7, 15], [12, 16], [12, 17], [12, 18], [13, 19], [16, 20], [17, 21], [8, 22], [20, 23], [17, 24], [17, 25], [17, 26], [17, 27], [21, 28], [18, 29], [24, 30], [17, 31], [29, 32], [24, 33], [24, 34], [30, 35], [27, 36], [32, 37], [24, 38], [35, 39], [33, 40], [34, 41], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 3], [10, 4], [11, 2], [12, 4], [13, 10], [14, 6], [15, 7], [16, 12], [17, 12], [18, 12], [19, 13], [20, 16], [21, 17], [22, 8], [23, 20], [24, 17], [25, 17], [26, 17], [27, 17], [28, 21], [29, 18], [30, 24], [31, 17], [32, 29], [33, 24], [34, 24], [35, 30], [36, 27], [37, 32], [38, 24], [39, 35], [40, 33], [41, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "addValueInRefsTable", "code": "  private void addValueInRefsTable(XPathContext xctxt, XMLString ref, int node) {\n    \n    XNodeSet nodes = (XNodeSet) m_refsTable.get(ref);\n    if (nodes == null)\n    {\n      nodes = new XNodeSet(node, xctxt.getDTMManager());\n      nodes.nextNode();\n      m_refsTable.put(ref, nodes);\n    }\n    else\n    {\n      if (nodes.getCurrentNode() != node) {\n          nodes.mutableNodeset().addNode(node);\n          nodes.nextNode();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [7, 9], [1, 10], [1, 11], [1, 12], [2, 13], [9, 14], [12, 15], [7, 16], [7, 17], [15, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 7], [10, 1], [11, 1], [12, 1], [13, 2], [14, 9], [15, 12], [16, 7], [17, 7], [18, 15], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "KeyTable", "code": "  public KeyTable(\n          int doc, PrefixResolver nscontext, QName name, Vector keyDeclarations, XPathContext xctxt)\n            throws javax.xml.transform.TransformerException\n  {\n    m_docKey = doc;\n    m_keyDeclarations = keyDeclarations;\n    KeyIterator ki = new KeyIterator(name, keyDeclarations);\n\n    m_keyNodes = new XNodeSet(ki);\n    m_keyNodes.allowDetachToRelease(false);\n    m_keyNodes.setRoot(doc, xctxt);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [8, 12], [9, 13], [1, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 8], [13, 9], [14, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "camel-1.6-2905", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/impl/DefaultExchange.java", "language": "java", "name": "org.apache.camel.impl.DefaultExchange", "code": "public class DefaultExchange implements Exchange {\n\n    private static final UuidGenerator DEFAULT_ID_GENERATOR = new UuidGenerator();\n    protected final CamelContext context;\n    private Map<String, Object> properties;\n    private Message in;\n    private Message out;\n    private Message fault;\n    private Throwable exception;\n    private String exchangeId;\n    private UnitOfWork unitOfWork;\n    private ExchangePattern pattern;\n\n    public DefaultExchange(CamelContext context) {\n        this(context, ExchangePattern.InOnly);\n    }\n\n    public DefaultExchange(CamelContext context, ExchangePattern pattern) {\n        this.context = context;\n        this.pattern = pattern;\n    }\n\n    public DefaultExchange(DefaultExchange parent) {\n        this(parent.getContext(), parent.getPattern());\n        this.unitOfWork = parent.getUnitOfWork();\n    }\n\n    @Override\n    public String toString() {\n        return \"Exchange[\" + in + \"]\";\n    }\n\n    public Exchange copy() {\n        Exchange exchange = newInstance();\n        exchange.copyFrom(this);\n        return exchange;\n    }\n\n    public void copyFrom(Exchange exchange) {\n        if (exchange == this) {\n            return;\n        }\n        setProperties(safeCopy(exchange.getProperties()));\n\n        safeCopy(getIn(), exchange, exchange.getIn());\n        Message copyOut = exchange.getOut(false);\n        if (copyOut != null) {\n            safeCopy(getOut(true), exchange, copyOut);\n        }\n        Message copyFault = exchange.getFault(false);\n        if (copyFault != null) {\n            safeCopy(getFault(true), exchange, copyFault);\n        }\n        setException(exchange.getException());\n\n        unitOfWork = exchange.getUnitOfWork();\n        pattern = exchange.getPattern();\n    }\n\n    private static void safeCopy(Message message, Exchange exchange, Message that) {\n        if (message != null) {\n            message.copyFrom(that);\n        }\n    }\n\n    private static Map<String, Object> safeCopy(Map<String, Object> properties) {\n        if (properties == null) {\n            return null;\n        }\n        return new ConcurrentHashMap<String, Object>(properties);\n    }\n\n    private static Message safeCopy(Exchange exchange, Message message) {\n        if (message == null) {\n            return null;\n        }\n        Message answer = message.copy();\n        if (answer instanceof MessageSupport) {\n            MessageSupport messageSupport = (MessageSupport) answer;\n            messageSupport.setExchange(exchange);\n        }\n        return answer;\n    }\n\n    public Exchange newInstance() {\n        return new DefaultExchange(this);\n    }\n\n    public CamelContext getContext() {\n        return context;\n    }\n\n    public Object getProperty(String name) {\n        if (properties != null) {\n            return properties.get(name);\n        }\n        return null;\n    }\n\n    public <T> T getProperty(String name, Class<T> type) {\n        Object value = getProperty(name);\n\n        ExchangeProperty<?> property = ExchangeProperty.getByName(name);\n        if (property != null) {\n            validateExchangePropertyIsExpectedType(property, type, value);\n        }\n\n        return getContext().getTypeConverter().convertTo(type, this, value);\n    }\n\n    public void setProperty(String name, Object value) {\n        ExchangeProperty<?> property = ExchangeProperty.getByName(name);\n\n        if (property != null) {\n            Class type = value.getClass();\n            validateExchangePropertyIsExpectedType(property, type, value);\n        }\n        if (value != null) {\n            getProperties().put(name, value);\n        } else {\n            if (name != null) {\n                getProperties().remove(name);\n            }\n        }\n    }\n\n    private <T> void validateExchangePropertyIsExpectedType(ExchangeProperty<?> property, Class<T> type, Object value) {\n        if (value != null && property != null && !property.type().isAssignableFrom(type)) {\n            throw new RuntimeCamelException(\"Type cast exception while getting an \"\n                    + \"Exchange Property value '\" + value.toString()\n                    + \"' on Exchange \" + this\n                    + \" for a well known Exchange Property with these traits: \" + property);\n        }\n    }\n\n    public Object removeProperty(String name) {\n        return getProperties().remove(name);\n    }\n\n    public Map<String, Object> getProperties() {\n        if (properties == null) {\n            properties = new ConcurrentHashMap<String, Object>();\n        }\n        return properties;\n    }\n\n    public void setProperties(Map<String, Object> properties) {\n        this.properties = properties;\n    }\n\n    public Message getIn() {\n        if (in == null) {\n            in = createInMessage();\n            configureMessage(in);\n        }\n        return in;\n    }\n\n    public void setIn(Message in) {\n        this.in = in;\n        configureMessage(in);\n    }\n\n    public Message getOut() {\n        return getOut(true);\n    }\n\n    public Message getOut(boolean lazyCreate) {\n        if (out == null && lazyCreate) {\n            out = createOutMessage();\n            configureMessage(out);\n        }\n        return out;\n    }\n\n    public void setOut(Message out) {\n        this.out = out;\n        configureMessage(out);\n    }\n\n    public Throwable getException() {\n        return exception;\n    }\n\n    public void setException(Throwable exception) {\n        this.exception = exception;\n    }\n\n    public ExchangePattern getPattern() {\n        return pattern;\n    }\n\n    public void setPattern(ExchangePattern pattern) {\n        this.pattern = pattern;\n    }\n\n    public void throwException() throws Exception {\n        if (exception == null) {\n            return;\n        }\n        if (exception instanceof RuntimeException) {\n            throw (RuntimeException)exception;\n        }\n        if (exception instanceof Exception) {\n            throw (Exception)exception;\n        }\n        throw wrapRuntimeCamelException(exception);\n    }\n\n    public Message getFault() {\n        return getFault(true);\n    }\n\n    public Message getFault(boolean lazyCreate) {\n        if (fault == null && lazyCreate) {\n            fault = createFaultMessage();\n            configureMessage(fault);\n        }\n        return fault;\n    }\n\n    public void setFault(Message fault) {\n        this.fault = fault;\n        configureMessage(fault);\n    }\n\n    public String getExchangeId() {\n        if (exchangeId == null) {\n            exchangeId = DefaultExchange.DEFAULT_ID_GENERATOR.generateId();\n        }\n        return exchangeId;\n    }\n\n    public void setExchangeId(String id) {\n        this.exchangeId = id;\n    }\n\n    public boolean isFailed() {\n        Message faultMessage = getFault(false);\n        if (faultMessage != null) {\n            Object faultBody = faultMessage.getBody();\n            if (faultBody != null) {\n                return true;\n            }\n        }\n        return getException() != null;\n    }\n\n    public boolean isTransacted() {\n        ExchangeProperty<?> property = ExchangeProperty.get(\"transacted\");\n        return property != null && property.get(this) == Boolean.TRUE;\n    }\n\n    public UnitOfWork getUnitOfWork() {\n        return unitOfWork;\n    }\n\n    public void setUnitOfWork(UnitOfWork unitOfWork) {\n        this.unitOfWork = unitOfWork;\n    }\n\n    /**\n     * Factory method used to lazily create the IN message\n     */\n    protected Message createInMessage() {\n        return new DefaultMessage();\n    }\n\n    /**\n     * Factory method to lazily create the OUT message\n     */\n    protected Message createOutMessage() {\n        return new DefaultMessage();\n    }\n\n    /**\n     * Factory method to lazily create the FAULT message\n     */\n    protected Message createFaultMessage() {\n        return new DefaultMessage();\n    }\n\n    /**\n     * Configures the message after it has been set on the exchange\n     */\n    protected void configureMessage(Message message) {\n        if (message instanceof MessageSupport) {\n            MessageSupport messageSupport = (MessageSupport)message;\n            messageSupport.setExchange(this);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Exchange[\" + in + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "copy", "code": "    public Exchange copy() {\n        Exchange exchange = newInstance();\n        exchange.copyFrom(this);\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "copyFrom", "code": "    public void copyFrom(Exchange exchange) {\n        if (exchange == this) {\n            return;\n        }\n        setProperties(safeCopy(exchange.getProperties()));\n\n        safeCopy(getIn(), exchange, exchange.getIn());\n        Message copyOut = exchange.getOut(false);\n        if (copyOut != null) {\n            safeCopy(getOut(true), exchange, copyOut);\n        }\n        Message copyFault = exchange.getFault(false);\n        if (copyFault != null) {\n            safeCopy(getFault(true), exchange, copyFault);\n        }\n        setException(exchange.getException());\n\n        unitOfWork = exchange.getUnitOfWork();\n        pattern = exchange.getPattern();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [0, 12], [0, 13], [5, 14], [7, 15], [8, 16], [9, 17], [10, 18], [2, 19], [11, 20], [4, 21], [12, 22], [12, 23], [13, 24], [5, 25], [1, 26], [19, 27], [3, 28], [21, 29], [24, 30], [26, 31], [28, 32], [31, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 0], [13, 0], [14, 5], [15, 7], [16, 8], [17, 9], [18, 10], [19, 2], [20, 11], [21, 4], [22, 12], [23, 12], [24, 13], [25, 5], [26, 1], [27, 19], [28, 3], [29, 21], [30, 24], [31, 26], [32, 28], [33, 31], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "safeCopy", "code": "    private static void safeCopy(Message message, Exchange exchange, Message that) {\n        if (message != null) {\n            message.copyFrom(that);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "safeCopy", "code": "    private static Map<String, Object> safeCopy(Map<String, Object> properties) {\n        if (properties == null) {\n            return null;\n        }\n        return new ConcurrentHashMap<String, Object>(properties);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "safeCopy", "code": "    private static Message safeCopy(Exchange exchange, Message message) {\n        if (message == null) {\n            return null;\n        }\n        Message answer = message.copy();\n        if (answer instanceof MessageSupport) {\n            MessageSupport messageSupport = (MessageSupport) answer;\n            messageSupport.setExchange(exchange);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [2, 9], [3, 10], [4, 11], [8, 12], [2, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 2], [10, 3], [11, 4], [12, 8], [13, 2], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "newInstance", "code": "    public Exchange newInstance() {\n        return new DefaultExchange(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getContext", "code": "    public CamelContext getContext() {\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProperty", "code": "    public Object getProperty(String name) {\n        if (properties != null) {\n            return properties.get(name);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getProperty", "code": "    public <T> T getProperty(String name, Class<T> type) {\n        Object value = getProperty(name);\n\n        ExchangeProperty<?> property = ExchangeProperty.getByName(name);\n        if (property != null) {\n            validateExchangePropertyIsExpectedType(property, type, value);\n        }\n\n        return getContext().getTypeConverter().convertTo(type, this, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [7, 10], [8, 11], [3, 12], [4, 13], [2, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 7], [11, 8], [12, 3], [13, 4], [14, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setProperty", "code": "    public void setProperty(String name, Object value) {\n        ExchangeProperty<?> property = ExchangeProperty.getByName(name);\n\n        if (property != null) {\n            Class type = value.getClass();\n            validateExchangePropertyIsExpectedType(property, type, value);\n        }\n        if (value != null) {\n            getProperties().put(name, value);\n        } else {\n            if (name != null) {\n                getProperties().remove(name);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [6, 9], [2, 10], [7, 11], [3, 12], [8, 13], [1, 14], [2, 15], [13, 16], [14, 17], [10, 18], [8, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 6], [10, 2], [11, 7], [12, 3], [13, 8], [14, 1], [15, 2], [16, 13], [17, 14], [18, 10], [19, 8], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "validateExchangePropertyIsExpectedType", "code": "    private <T> void validateExchangePropertyIsExpectedType(ExchangeProperty<?> property, Class<T> type, Object value) {\n        if (value != null && property != null && !property.type().isAssignableFrom(type)) {\n            throw new RuntimeCamelException(\"Type cast exception while getting an \"\n                    + \"Exchange Property value '\" + value.toString()\n                    + \"' on Exchange \" + this\n                    + \" for a well known Exchange Property with these traits: \" + property);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [6, 9], [7, 10], [8, 11], [8, 12], [9, 13], [11, 14], [12, 15], [13, 16], [16, 17], [16, 18], [18, 19], [19, 20], [19, 21], [21, 22], [21, 23], [23, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 6], [10, 7], [11, 8], [12, 8], [13, 9], [14, 11], [15, 12], [16, 13], [17, 16], [18, 16], [19, 18], [20, 19], [21, 19], [22, 21], [23, 21], [24, 23], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "removeProperty", "code": "    public Object removeProperty(String name) {\n        return getProperties().remove(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getProperties", "code": "    public Map<String, Object> getProperties() {\n        if (properties == null) {\n            properties = new ConcurrentHashMap<String, Object>();\n        }\n        return properties;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setProperties", "code": "    public void setProperties(Map<String, Object> properties) {\n        this.properties = properties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIn", "code": "    public Message getIn() {\n        if (in == null) {\n            in = createInMessage();\n            configureMessage(in);\n        }\n        return in;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setIn", "code": "    public void setIn(Message in) {\n        this.in = in;\n        configureMessage(in);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getOut", "code": "    public Message getOut() {\n        return getOut(true);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getOut", "code": "    public Message getOut(boolean lazyCreate) {\n        if (out == null && lazyCreate) {\n            out = createOutMessage();\n            configureMessage(out);\n        }\n        return out;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setOut", "code": "    public void setOut(Message out) {\n        this.out = out;\n        configureMessage(out);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getException", "code": "    public Throwable getException() {\n        return exception;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setException", "code": "    public void setException(Throwable exception) {\n        this.exception = exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPattern", "code": "    public ExchangePattern getPattern() {\n        return pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPattern", "code": "    public void setPattern(ExchangePattern pattern) {\n        this.pattern = pattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "throwException", "code": "    public void throwException() throws Exception {\n        if (exception == null) {\n            return;\n        }\n        if (exception instanceof RuntimeException) {\n            throw (RuntimeException)exception;\n        }\n        if (exception instanceof Exception) {\n            throw (Exception)exception;\n        }\n        throw wrapRuntimeCamelException(exception);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [2, 9], [3, 10], [4, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 2], [10, 3], [11, 4], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getFault", "code": "    public Message getFault() {\n        return getFault(true);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFault", "code": "    public Message getFault(boolean lazyCreate) {\n        if (fault == null && lazyCreate) {\n            fault = createFaultMessage();\n            configureMessage(fault);\n        }\n        return fault;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setFault", "code": "    public void setFault(Message fault) {\n        this.fault = fault;\n        configureMessage(fault);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getExchangeId", "code": "    public String getExchangeId() {\n        if (exchangeId == null) {\n            exchangeId = DefaultExchange.DEFAULT_ID_GENERATOR.generateId();\n        }\n        return exchangeId;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExchangeId", "code": "    public void setExchangeId(String id) {\n        this.exchangeId = id;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFailed", "code": "    public boolean isFailed() {\n        Message faultMessage = getFault(false);\n        if (faultMessage != null) {\n            Object faultBody = faultMessage.getBody();\n            if (faultBody != null) {\n                return true;\n            }\n        }\n        return getException() != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [2, 8], [2, 9], [5, 10], [3, 11], [8, 12], [11, 13], [8, 14], [12, 15], [9, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 2], [9, 2], [10, 5], [11, 3], [12, 8], [13, 11], [14, 8], [15, 12], [16, 9], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "isTransacted", "code": "    public boolean isTransacted() {\n        ExchangeProperty<?> property = ExchangeProperty.get(\"transacted\");\n        return property != null && property.get(this) == Boolean.TRUE;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getUnitOfWork", "code": "    public UnitOfWork getUnitOfWork() {\n        return unitOfWork;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUnitOfWork", "code": "    public void setUnitOfWork(UnitOfWork unitOfWork) {\n        this.unitOfWork = unitOfWork;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createInMessage", "code": "    protected Message createInMessage() {\n        return new DefaultMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createOutMessage", "code": "    protected Message createOutMessage() {\n        return new DefaultMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createFaultMessage", "code": "    protected Message createFaultMessage() {\n        return new DefaultMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "configureMessage", "code": "    protected void configureMessage(Message message) {\n        if (message instanceof MessageSupport) {\n            MessageSupport messageSupport = (MessageSupport)message;\n            messageSupport.setExchange(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DefaultExchange", "code": "    public DefaultExchange(CamelContext context) {\n        this(context, ExchangePattern.InOnly);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DefaultExchange", "code": "    public DefaultExchange(CamelContext context, ExchangePattern pattern) {\n        this.context = context;\n        this.pattern = pattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DefaultExchange", "code": "    public DefaultExchange(DefaultExchange parent) {\n        this(parent.getContext(), parent.getPattern());\n        this.unitOfWork = parent.getUnitOfWork();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "camel-1.6-3247", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jhc/JhcServerEngine.java", "language": "java", "name": "org.apache.camel.component.jhc.JhcServerEngine", "code": "public class JhcServerEngine {\n    private static final Log LOG = LogFactory.getLog(JhcServerEngine.class);\n    private final HttpParams params;\n    private int port;\n    private String protocol;\n    private int nbThreads = 2;\n    private ListeningIOReactor ioReactor;\n    private ThreadFactory threadFactory;\n    private Thread runner;\n    private SSLContext sslContext;\n    private AsyncBufferingHttpServiceHandler serviceHandler;\n    private HttpRequestHandlerRegistry handlerRegistry;\n    private boolean isStarted;\n    private int referenceCounter;\n\n    JhcServerEngine(HttpParams params, int port, String protocol) {\n        this.params = params;\n        serviceHandler = new AsyncBufferingHttpServiceHandler(params);\n        handlerRegistry = new HttpRequestHandlerRegistry();\n        serviceHandler.setHandlerResolver(handlerRegistry);\n        this.port = port;\n        this.protocol = protocol;\n    }\n\n\n    public int getPort() {\n        return port;\n    }\n\n    public String getProtocol() {\n        return this.protocol;\n    }\n\n    public void setSslContext(SSLContext sslContext) {\n        this.sslContext = sslContext;\n    }\n\n    public SSLContext getSslContext() {\n        return this.sslContext;\n    }\n\n    public synchronized void register(String pattern, AsyncHttpRequestHandler handler) {\n        handlerRegistry.register(pattern, handler);\n        referenceCounter++;\n    }\n\n    public synchronized void unregister(String pattern) {\n        handlerRegistry.unregister(pattern);\n        referenceCounter--;\n    }\n\n    public int getReferenceCounter() {\n        return referenceCounter;\n    }\n\n    public boolean isStarted() {\n        return isStarted;\n    }\n\n    public void start() throws IOReactorException {\n        final SocketAddress addr = new InetSocketAddress(port);\n        ioReactor = new DefaultListeningIOReactor(nbThreads, threadFactory, params);\n\n        final IOEventDispatch ioEventDispatch;\n        if (\"https\".equals(protocol)) {\n            ioEventDispatch = new SSLServerIOEventDispatch(serviceHandler, sslContext, params);\n        } else {\n            ioEventDispatch = new DefaultServerIOEventDispatch(serviceHandler, params);\n        }\n        runner = new Thread() {\n            public void run() {\n                try {\n                    ioReactor.listen(addr);\n                    isStarted = true;\n                    ioReactor.execute(ioEventDispatch);\n                } catch (InterruptedIOException ex) {\n                    LOG.info(\"Interrupted\");\n                } catch (IOException e) {\n                    LOG.warn(\"I/O error: \" + e.getMessage());\n                }\n                LOG.debug(\"Shutdown\");\n            }\n        };\n        runner.start();\n    }\n\n    public void stop() throws IOException {\n        LOG.debug(\"Stopping the jhc ioReactor \");\n        ioReactor.shutdown();\n        LOG.debug(\"Waiting the runner\");\n        try {\n            runner.join();\n        } catch (InterruptedException e) {\n        }\n        isStarted = false;\n        LOG.debug(\"Runner stopped\");", "functions": [{"function_name": "getPort", "code": "    public int getPort() {\n        return port;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProtocol", "code": "    public String getProtocol() {\n        return this.protocol;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSslContext", "code": "    public void setSslContext(SSLContext sslContext) {\n        this.sslContext = sslContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSslContext", "code": "    public SSLContext getSslContext() {\n        return this.sslContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "register", "code": "    public synchronized void register(String pattern, AsyncHttpRequestHandler handler) {\n        handlerRegistry.register(pattern, handler);\n        referenceCounter++;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "unregister", "code": "    public synchronized void unregister(String pattern) {\n        handlerRegistry.unregister(pattern);\n        referenceCounter--;", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReferenceCounter", "code": "    public int getReferenceCounter() {\n        return referenceCounter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isStarted", "code": "    public boolean isStarted() {\n        return isStarted;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "start", "code": "    public void start() throws IOReactorException {\n        final SocketAddress addr = new InetSocketAddress(port);\n        ioReactor = new DefaultListeningIOReactor(nbThreads, threadFactory, params);\n\n        final IOEventDispatch ioEventDispatch;\n        if (\"https\".equals(protocol)) {\n            ioEventDispatch = new SSLServerIOEventDispatch(serviceHandler, sslContext, params);\n        } else {\n            ioEventDispatch = new DefaultServerIOEventDispatch(serviceHandler, params);\n        }\n        runner = new Thread() {\n            public void run() {\n                try {\n                    ioReactor.listen(addr);\n                    isStarted = true;\n                    ioReactor.execute(ioEventDispatch);\n                } catch (InterruptedIOException ex) {\n                    LOG.info(\"Interrupted\");\n                } catch (IOException e) {\n                    LOG.warn(\"I/O error: \" + e.getMessage());\n                }\n                LOG.debug(\"Shutdown\");\n            }\n        };\n        runner.start();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "ASSIGN", "ASSIGN", "TRY", "CALL", "CALL", "CALL", "CATCH", "CATCH", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [5, 8], [6, 9], [7, 10], [3, 11], [8, 12], [1, 13], [1, 14], [12, 15], [13, 16], [14, 17], [12, 18], [15, 19], [15, 20], [18, 21], [15, 22], [15, 23], [15, 24], [19, 25], [20, 26], [23, 27], [25, 28], [26, 29], [28, 30], [28, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 5], [9, 6], [10, 7], [11, 3], [12, 8], [13, 1], [14, 1], [15, 12], [16, 13], [17, 14], [18, 12], [19, 15], [20, 15], [21, 18], [22, 15], [23, 15], [24, 15], [25, 19], [26, 20], [27, 23], [28, 25], [29, 26], [30, 28], [31, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "stop", "code": "    public void stop() throws IOException {\n        LOG.debug(\"Stopping the jhc ioReactor \");\n        ioReactor.shutdown();\n        LOG.debug(\"Waiting the runner\");\n        try {\n            runner.join();\n        } catch (InterruptedException e) {\n        }\n        isStarted = false;\n        LOG.debug(\"Runner stopped\");", "ast_nodes": ["FUNC_DECL", "TRY", "CALL", "ASSIGN", "CATCH", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [1, 10], [5, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 1], [11, 5], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "JhcServerEngine", "code": "    JhcServerEngine(HttpParams params, int port, String protocol) {\n        this.params = params;\n        serviceHandler = new AsyncBufferingHttpServiceHandler(params);\n        handlerRegistry = new HttpRequestHandlerRegistry();\n        serviceHandler.setHandlerResolver(handlerRegistry);\n        this.port = port;\n        this.protocol = protocol;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "poi-2.5-5726", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/formula/NumberPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.NumberPtg", "code": "public class NumberPtg\n    extends Ptg\n{\n    public final static int  SIZE = 9;\n    public final static byte sid  = 0x1f;\n    private double            field_1_value;\n\n    private NumberPtg() {\n    }\n        \n    /** Create a NumberPtg from a byte array read from disk */\n    public NumberPtg(byte [] data, int offset)\n    {\n        setValue(LittleEndian.getDouble(data, offset + 1));\n    }\n    \n    /** Create a NumberPtg from a string representation of  the number\n     *  Number format is not checked, it is expected to be validated in the parser\n     *   that calls this method. \n     *  @param value : String representation of a floating point number\n     */\n    public NumberPtg(String value) {\n        setValue(Double.parseDouble(value));\n    }\n    \n    \n    public void setValue(double value)\n    {\n        field_1_value = value;\n    }\n    \n    \n    public double getValue()\n    {\n        return field_1_value;\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n        LittleEndian.putDouble(array, offset + 1, getValue());\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public String toFormulaString(Workbook book)\n    {\n        return \"\" + getValue();\n    }\n       public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}\n\n    public Object clone() {\n      NumberPtg ptg = new NumberPtg();\n      ptg.field_1_value = field_1_value;\n      return ptg;", "functions": [{"function_name": "setValue", "code": "    public void setValue(double value)\n    {\n        field_1_value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValue", "code": "    public double getValue()\n    {\n        return field_1_value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n        LittleEndian.putDouble(array, offset + 1, getValue());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [6, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 6], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \"\" + getValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDefaultOperandClass", "code": "       public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      NumberPtg ptg = new NumberPtg();\n      ptg.field_1_value = field_1_value;\n      return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "NumberPtg", "code": "    private NumberPtg() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NumberPtg", "code": "    public NumberPtg(byte [] data, int offset)\n    {\n        setValue(LittleEndian.getDouble(data, offset + 1));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "NumberPtg", "code": "    public NumberPtg(String value) {\n        setValue(Double.parseDouble(value));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "poi-2.5-5885", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/util/CellReference.java", "language": "java", "name": "org.apache.poi.hssf.util.CellReference", "code": "public class CellReference {\n\n    /** Creates new CellReference */\n    private int row;\n    private int col;\n    private String sheetName;\n    private boolean rowAbs;\n    private boolean colAbs;\n\n    public CellReference(String cellRef) {\n        String[] parts = separateRefParts(cellRef);\n        sheetName = parts[0];\n        String ref = parts[1];\n        if (ref.charAt(0) == '$') {\n            colAbs=true;\n            ref=ref.substring(1);\n        }\n        col = convertColStringToNum(ref);\n        ref=parts[2];\n        if (ref.charAt(0) == '$') {\n            rowAbs=true;\n            ref=ref.substring(1);\n        }\n        row = Integer.parseInt(ref)-1;\n    }\n\n    public CellReference(int pRow, int pCol) {\n        this(pRow,pCol,false,false);\n    }\n\n    public CellReference(int pRow, int pCol, boolean pAbsRow, boolean pAbsCol) {\n        row=pRow;col=pCol;\n        rowAbs = pAbsRow;\n        colAbs=pAbsCol;\n\n    }\n\n    public int getRow(){return row;}\n    public short getCol(){return (short) col;}\n    public boolean isRowAbsolute(){return rowAbs;}\n    public boolean isColAbsolute(){return colAbs;}\n    public String getSheetName(){return sheetName;}\n\n    /**\n     * takes in a column reference portion of a CellRef and converts it from\n     * ALPHA-26 number format to 0-based base 10.\n     */\n    private int convertColStringToNum(String ref) {\n        int len = ref.length();\n        int retval=0;\n        int pos = 0;\n\n        for (int k = ref.length()-1; k > -1; k--) {\n            char thechar = ref.charAt(k);\n            if ( pos == 0) {\n                retval += (Character.getNumericValue(thechar)-9);\n            } else {\n                retval += (Character.getNumericValue(thechar)-9) * (pos * 26);\n            }\n            pos++;\n        }\n        return retval-1;\n    }\n\n\n    /**\n     * Seperates the row from the columns and returns an array.  Element in\n     * position one is the substring containing the columns still in ALPHA-26\n     * number format.\n     */\n    private String[] separateRefParts(String reference) {\n\n        String retval[] = new String[3];\n\n        int start = reference.indexOf(\"!\");\n        if (start != -1) retval[0] = reference.substring(0, start);\n        start += 1;\n\n        int length = reference.length();\n\n\n        char[] chars = reference.toCharArray();\n        int loc = start;\n        if (chars[loc]=='$') loc++;\n        for (; loc < chars.length; loc++) {\n            if (Character.isDigit(chars[loc]) || chars[loc] == '$') {\n                break;\n            }\n        }\n\n        retval[1] = reference.substring(start,loc);\n        retval[2] = reference.substring(loc);\n        return retval;\n    }\n\n    /**\n     * takes in a 0-based base-10 column and returns a ALPHA-26 representation\n     */\n    private static String convertNumToColString(int col) {\n        String retval = null;\n        int mod = col % 26;\n        int div = col / 26;\n        char small=(char)(mod + 65);\n        char big = (char)(div + 64);\n\n        if (div == 0) {\n            retval = \"\"+small;\n        } else {\n            retval = \"\"+big+\"\"+small;\n        }\n\n        return retval;\n    }\n\n\n    public String toString() {\n        StringBuffer retval = new StringBuffer();\n        retval.append( (colAbs)?\"$\":\"\");\n        retval.append( convertNumToColString(col));\n        retval.append((rowAbs)?\"$\":\"\");\n        retval.append(row+1);\n\n    return retval.toString();", "functions": [{"function_name": "getRow", "code": "    public int getRow(){return row;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCol", "code": "    public short getCol(){return (short) col;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isRowAbsolute", "code": "    public boolean isRowAbsolute(){return rowAbs;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isColAbsolute", "code": "    public boolean isColAbsolute(){return colAbs;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSheetName", "code": "    public String getSheetName(){return sheetName;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "convertColStringToNum", "code": "    private int convertColStringToNum(String ref) {\n        int len = ref.length();\n        int retval=0;\n        int pos = 0;\n\n        for (int k = ref.length()-1; k > -1; k--) {\n            char thechar = ref.charAt(k);\n            if ( pos == 0) {\n                retval += (Character.getNumericValue(thechar)-9);\n            } else {\n                retval += (Character.getNumericValue(thechar)-9) * (pos * 26);\n            }\n            pos++;\n        }\n        return retval-1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [2, 10], [2, 11], [8, 12], [3, 13], [4, 14], [5, 15], [10, 16], [2, 17], [16, 18], [11, 19], [17, 20], [17, 21], [10, 22], [10, 23], [22, 24], [23, 25], [24, 26], [24, 27], [25, 28], [25, 29], [26, 30], [27, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 2], [11, 2], [12, 8], [13, 3], [14, 4], [15, 5], [16, 10], [17, 2], [18, 16], [19, 11], [20, 17], [21, 17], [22, 10], [23, 10], [24, 22], [25, 23], [26, 24], [27, 24], [28, 25], [29, 25], [30, 26], [31, 27], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "separateRefParts", "code": "    private String[] separateRefParts(String reference) {\n\n        String retval[] = new String[3];\n\n        int start = reference.indexOf(\"!\");\n        if (start != -1) retval[0] = reference.substring(0, start);\n        start += 1;\n\n        int length = reference.length();\n\n\n        char[] chars = reference.toCharArray();\n        int loc = start;\n        if (chars[loc]=='$') loc++;\n        for (; loc < chars.length; loc++) {\n            if (Character.isDigit(chars[loc]) || chars[loc] == '$') {\n                break;\n            }\n        }\n\n        retval[1] = reference.substring(start,loc);\n        retval[2] = reference.substring(loc);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [3, 14], [0, 15], [7, 16], [11, 17], [12, 18], [2, 19], [14, 20], [5, 21], [6, 22], [15, 23], [7, 24], [16, 25], [8, 26], [19, 27], [24, 28], [26, 29], [9, 30], [11, 31], [12, 32], [19, 33], [27, 34], [27, 35], [28, 36], [34, 37], [24, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 3], [15, 0], [16, 7], [17, 11], [18, 12], [19, 2], [20, 14], [21, 5], [22, 6], [23, 15], [24, 7], [25, 16], [26, 8], [27, 19], [28, 24], [29, 26], [30, 9], [31, 11], [32, 12], [33, 19], [34, 27], [35, 27], [36, 28], [37, 34], [38, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "convertNumToColString", "code": "    private static String convertNumToColString(int col) {\n        String retval = null;\n        int mod = col % 26;\n        int div = col / 26;\n        char small=(char)(mod + 65);\n        char big = (char)(div + 64);\n\n        if (div == 0) {\n            retval = \"\"+small;\n        } else {\n            retval = \"\"+big+\"\"+small;\n        }\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [9, 10], [5, 11], [6, 12], [7, 13], [2, 14], [2, 15], [3, 16], [4, 17], [11, 18], [12, 19], [14, 20], [15, 21], [16, 22], [17, 23], [20, 24], [21, 25], [24, 26], [24, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 9], [11, 5], [12, 6], [13, 7], [14, 2], [15, 2], [16, 3], [17, 4], [18, 11], [19, 12], [20, 14], [21, 15], [22, 16], [23, 17], [24, 20], [25, 21], [26, 24], [27, 24], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer retval = new StringBuffer();\n        retval.append( (colAbs)?\"$\":\"\");\n        retval.append( convertNumToColString(col));\n        retval.append((rowAbs)?\"$\":\"\");\n        retval.append(row+1);\n\n    return retval.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [7, 11], [2, 12], [8, 13], [9, 14], [9, 15], [11, 16], [11, 17], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 7], [12, 2], [13, 8], [14, 9], [15, 9], [16, 11], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "CellReference", "code": "    public CellReference(String cellRef) {\n        String[] parts = separateRefParts(cellRef);\n        sheetName = parts[0];\n        String ref = parts[1];\n        if (ref.charAt(0) == '$') {\n            colAbs=true;\n            ref=ref.substring(1);\n        }\n        col = convertColStringToNum(ref);\n        ref=parts[2];\n        if (ref.charAt(0) == '$') {\n            rowAbs=true;\n            ref=ref.substring(1);\n        }\n        row = Integer.parseInt(ref)-1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [2, 10], [0, 11], [6, 12], [7, 13], [7, 14], [9, 15], [10, 16], [10, 17], [4, 18], [12, 19], [12, 20], [1, 21], [1, 22], [14, 23], [2, 24], [2, 25], [17, 26], [21, 27], [22, 28], [8, 29], [24, 30], [25, 31], [3, 32], [11, 33], [27, 34], [30, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 2], [11, 0], [12, 6], [13, 7], [14, 7], [15, 9], [16, 10], [17, 10], [18, 4], [19, 12], [20, 12], [21, 1], [22, 1], [23, 14], [24, 2], [25, 2], [26, 17], [27, 21], [28, 22], [29, 8], [30, 24], [31, 25], [32, 3], [33, 11], [34, 27], [35, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "CellReference", "code": "    public CellReference(int pRow, int pCol) {\n        this(pRow,pCol,false,false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CellReference", "code": "    public CellReference(int pRow, int pCol, boolean pAbsRow, boolean pAbsCol) {\n        row=pRow;col=pCol;\n        rowAbs = pAbsRow;\n        colAbs=pAbsCol;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "xalan-2.5-7212", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/synthetic/reflection/Member.java", "language": "java", "name": "org.apache.xml.utils.synthetic.reflection.Member", "code": "public interface Member\n{\n\n  /**\n   * Returns the Class object representing the class or\n   * interface that declares the member or constructor\n   * represented by this Member.\n   *\n   */\n  public abstract org.apache.xml.utils.synthetic.Class getDeclaringClass();\n\n  /**\n   * Returns the Java language modifiers for the\n   * member or constructor represented by this\n   * Member, as an integer. The Modifier class should\n   * be used to decode the modifiers in the integer.\n   *\n   */\n  public abstract int getModifiers();\n\n  /**\n   * Returns the Class object representing the class or\n   * interface that declares the member or constructor\n   * represented by this Member.\n   *\n   * @param declaringClass\n   *\n   * @throws SynthesisException\n   */\n  public abstract void setDeclaringClass(\n    org.apache.xml.utils.synthetic.Class declaringClass)\n      throws SynthesisException;\n\n  /**\n   * Returns the Java language modifiers for the\n   * member or constructor represented by this\n   * Member, as an integer. The Modifier class should\n   * be used to decode the modifiers in the integer.\n   *\n   * @param modifiers\n   *\n   * @throws SynthesisException\n   */\n  public abstract void setModifiers(int modifiers) throws SynthesisException;", "functions": [{"function_name": "getDeclaringClass", "code": "  public abstract org.apache.xml.utils.synthetic.Class getDeclaringClass();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getModifiers", "code": "  public abstract int getModifiers();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setDeclaringClass", "code": "  public abstract void setDeclaringClass(\n    org.apache.xml.utils.synthetic.Class declaringClass)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setModifiers", "code": "  public abstract void setModifiers(int modifiers) throws SynthesisException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "lucene-2.4-5123", "repo": "lucene-2.4", "project": "lucene", "version": "2.4", "file_path": "org/apache/lucene/analysis/standard/StandardTokenizerImpl.java", "language": "java", "name": "org.apache.lucene.analysis.standard.StandardTokenizerImpl", "code": "class StandardTokenizerImpl {\n\n  /** This character denotes the end of file */\n  public static final int YYEOF = -1;\n\n  /** initial size of the lookahead buffer */\n  private static final int ZZ_BUFFERSIZE = 16384;\n\n  /** lexical states */\n  public static final int YYINITIAL = 0;\n\n  /** \n   * Translates characters to character classes\n   */\n  private static final String ZZ_CMAP_PACKED = \n    \"\\11\\0\\1\\0\\1\\15\\1\\0\\1\\0\\1\\14\\22\\0\\1\\0\\5\\0\\1\\5\"+\n    \"\\1\\3\\4\\0\\1\\11\\1\\7\\1\\4\\1\\11\\12\\2\\6\\0\\1\\6\\32\\12\"+\n    \"\\4\\0\\1\\10\\1\\0\\32\\12\\57\\0\\1\\12\\12\\0\\1\\12\\4\\0\\1\\12\"+\n    \"\\5\\0\\27\\12\\1\\0\\37\\12\\1\\0\\u0128\\12\\2\\0\\22\\12\\34\\0\\136\\12\"+\n    \"\\2\\0\\11\\12\\2\\0\\7\\12\\16\\0\\2\\12\\16\\0\\5\\12\\11\\0\\1\\12\"+\n    \"\\213\\0\\1\\12\\13\\0\\1\\12\\1\\0\\3\\12\\1\\0\\1\\12\\1\\0\\24\\12\"+\n    \"\\1\\0\\54\\12\\1\\0\\10\\12\\2\\0\\32\\12\\14\\0\\202\\12\\12\\0\\71\\12\"+\n    \"\\2\\0\\2\\12\\2\\0\\2\\12\\3\\0\\46\\12\\2\\0\\2\\12\\67\\0\\46\\12\"+\n    \"\\2\\0\\1\\12\\7\\0\\47\\12\\110\\0\\33\\12\\5\\0\\3\\12\\56\\0\\32\\12\"+\n    \"\\5\\0\\13\\12\\25\\0\\12\\2\\7\\0\\143\\12\\1\\0\\1\\12\\17\\0\\2\\12\"+\n    \"\\11\\0\\12\\2\\3\\12\\23\\0\\1\\12\\1\\0\\33\\12\\123\\0\\46\\12\\u015f\\0\"+\n    \"\\65\\12\\3\\0\\1\\12\\22\\0\\1\\12\\7\\0\\12\\12\\4\\0\\12\\2\\25\\0\"+\n    \"\\10\\12\\2\\0\\2\\12\\2\\0\\26\\12\\1\\0\\7\\12\\1\\0\\1\\12\\3\\0\"+\n    \"\\4\\12\\42\\0\\2\\12\\1\\0\\3\\12\\4\\0\\12\\2\\2\\12\\23\\0\\6\\12\"+\n    \"\\4\\0\\2\\12\\2\\0\\26\\12\\1\\0\\7\\12\\1\\0\\2\\12\\1\\0\\2\\12\"+\n    \"\\1\\0\\2\\12\\37\\0\\4\\12\\1\\0\\1\\12\\7\\0\\12\\2\\2\\0\\3\\12\"+\n    \"\\20\\0\\7\\12\\1\\0\\1\\12\\1\\0\\3\\12\\1\\0\\26\\12\\1\\0\\7\\12\"+\n    \"\\1\\0\\2\\12\\1\\0\\5\\12\\3\\0\\1\\12\\22\\0\\1\\12\\17\\0\\1\\12\"+\n    \"\\5\\0\\12\\2\\25\\0\\10\\12\\2\\0\\2\\12\\2\\0\\26\\12\\1\\0\\7\\12\"+\n    \"\\1\\0\\2\\12\\2\\0\\4\\12\\3\\0\\1\\12\\36\\0\\2\\12\\1\\0\\3\\12\"+\n    \"\\4\\0\\12\\2\\25\\0\\6\\12\\3\\0\\3\\12\\1\\0\\4\\12\\3\\0\\2\\12\"+\n    \"\\1\\0\\1\\12\\1\\0\\2\\12\\3\\0\\2\\12\\3\\0\\3\\12\\3\\0\\10\\12\"+\n    \"\\1\\0\\3\\12\\55\\0\\11\\2\\25\\0\\10\\12\\1\\0\\3\\12\\1\\0\\27\\12\"+\n    \"\\1\\0\\12\\12\\1\\0\\5\\12\\46\\0\\2\\12\\4\\0\\12\\2\\25\\0\\10\\12\"+\n    \"\\1\\0\\3\\12\\1\\0\\27\\12\\1\\0\\12\\12\\1\\0\\5\\12\\44\\0\\1\\12\"+\n    \"\\1\\0\\2\\12\\4\\0\\12\\2\\25\\0\\10\\12\\1\\0\\3\\12\\1\\0\\27\\12\"+\n    \"\\1\\0\\20\\12\\46\\0\\2\\12\\4\\0\\12\\2\\25\\0\\22\\12\\3\\0\\30\\12\"+\n    \"\\1\\0\\11\\12\\1\\0\\1\\12\\2\\0\\7\\12\\71\\0\\1\\1\\60\\12\\1\\1\"+\n    \"\\2\\12\\14\\1\\7\\12\\11\\1\\12\\2\\47\\0\\2\\12\\1\\0\\1\\12\\2\\0\"+\n    \"\\2\\12\\1\\0\\1\\12\\2\\0\\1\\12\\6\\0\\4\\12\\1\\0\\7\\12\\1\\0\"+\n    \"\\3\\12\\1\\0\\1\\12\\1\\0\\1\\12\\2\\0\\2\\12\\1\\0\\4\\12\\1\\0\"+\n    \"\\2\\12\\11\\0\\1\\12\\2\\0\\5\\12\\1\\0\\1\\12\\11\\0\\12\\2\\2\\0\"+\n    \"\\2\\12\\42\\0\\1\\12\\37\\0\\12\\2\\26\\0\\10\\12\\1\\0\\42\\12\\35\\0\"+\n    \"\\4\\12\\164\\0\\42\\12\\1\\0\\5\\12\\1\\0\\2\\12\\25\\0\\12\\2\\6\\0\"+\n    \"\\6\\12\\112\\0\\46\\12\\12\\0\\47\\12\\11\\0\\132\\12\\5\\0\\104\\12\\5\\0\"+\n    \"\\122\\12\\6\\0\\7\\12\\1\\0\\77\\12\\1\\0\\1\\12\\1\\0\\4\\12\\2\\0\"+\n    \"\\7\\12\\1\\0\\1\\12\\1\\0\\4\\12\\2\\0\\47\\12\\1\\0\\1\\12\\1\\0\"+\n    \"\\4\\12\\2\\0\\37\\12\\1\\0\\1\\12\\1\\0\\4\\12\\2\\0\\7\\12\\1\\0\"+\n    \"\\1\\12\\1\\0\\4\\12\\2\\0\\7\\12\\1\\0\\7\\12\\1\\0\\27\\12\\1\\0\"+\n    \"\\37\\12\\1\\0\\1\\12\\1\\0\\4\\12\\2\\0\\7\\12\\1\\0\\47\\12\\1\\0\"+\n    \"\\23\\12\\16\\0\\11\\2\\56\\0\\125\\12\\14\\0\\u026c\\12\\2\\0\\10\\12\\12\\0\"+\n    \"\\32\\12\\5\\0\\113\\12\\225\\0\\64\\12\\54\\0\\12\\2\\46\\0\\12\\2\\6\\0\"+\n    \"\\130\\12\\10\\0\\51\\12\\u0557\\0\\234\\12\\4\\0\\132\\12\\6\\0\\26\\12\\2\\0\"+\n    \"\\6\\12\\2\\0\\46\\12\\2\\0\\6\\12\\2\\0\\10\\12\\1\\0\\1\\12\\1\\0\"+\n    \"\\1\\12\\1\\0\\1\\12\\1\\0\\37\\12\\2\\0\\65\\12\\1\\0\\7\\12\\1\\0\"+\n    \"\\1\\12\\3\\0\\3\\12\\1\\0\\7\\12\\3\\0\\4\\12\\2\\0\\6\\12\\4\\0\"+\n    \"\\15\\12\\5\\0\\3\\12\\1\\0\\7\\12\\202\\0\\1\\12\\202\\0\\1\\12\\4\\0\"+\n    \"\\1\\12\\2\\0\\12\\12\\1\\0\\1\\12\\3\\0\\5\\12\\6\\0\\1\\12\\1\\0\"+\n    \"\\1\\12\\1\\0\\1\\12\\1\\0\\4\\12\\1\\0\\3\\12\\1\\0\\7\\12\\u0ecb\\0\"+\n    \"\\2\\12\\52\\0\\5\\12\\12\\0\\1\\13\\124\\13\\10\\13\\2\\13\\2\\13\\132\\13\"+\n    \"\\1\\13\\3\\13\\6\\13\\50\\13\\3\\13\\1\\0\\136\\12\\21\\0\\30\\12\\70\\0\"+\n    \"\\20\\13\\u0100\\0\\200\\13\\200\\0\\u19b6\\13\\12\\13\\100\\0\\u51a6\\13\\132\\13\\u048d\\12\"+\n    \"\\u0773\\0\\u2ba4\\12\\u215c\\0\\u012e\\13\\322\\13\\7\\12\\14\\0\\5\\12\\5\\0\\1\\12\"+\n    \"\\1\\0\\12\\12\\1\\0\\15\\12\\1\\0\\5\\12\\1\\0\\1\\12\\1\\0\\2\\12\"+\n    \"\\1\\0\\2\\12\\1\\0\\154\\12\\41\\0\\u016b\\12\\22\\0\\100\\12\\2\\0\\66\\12\"+\n    \"\\50\\0\\14\\12\\164\\0\\3\\12\\1\\0\\1\\12\\1\\0\\207\\12\\23\\0\\12\\2\"+\n    \"\\7\\0\\32\\12\\6\\0\\32\\12\\12\\0\\1\\13\\72\\13\\37\\12\\3\\0\\6\\12\"+\n    \"\\2\\0\\6\\12\\2\\0\\6\\12\\2\\0\\3\\12\\43\\0\";\n\n  /** \n   * Translates characters to character classes\n   */\n  private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);\n\n  /** \n   * Translates DFA states to action switch labels.\n   */\n  private static final int [] ZZ_ACTION = zzUnpackAction();\n\n  private static final String ZZ_ACTION_PACKED_0 =\n    \"\\1\\0\\1\\1\\3\\2\\1\\3\\1\\1\\13\\0\\1\\2\\3\\4\"+\n    \"\\2\\0\\1\\5\\1\\0\\1\\5\\3\\4\\6\\5\\1\\6\\1\\4\"+\n    \"\\2\\7\\1\\10\\1\\0\\1\\10\\3\\0\\2\\10\\1\\11\\1\\12\"+\n    \"\\1\\4\";\n\n  private static int [] zzUnpackAction() {\n    int [] result = new int[51];\n    int offset = 0;\n    offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);\n    return result;\n  }\n\n  private static int zzUnpackAction(String packed, int offset, int [] result) {\n    int i = 0;       /* index in packed string  */\n    int j = offset;  /* index in unpacked array */\n    int l = packed.length();\n    while (i < l) {\n      int count = packed.charAt(i++);\n      int value = packed.charAt(i++);\n      do result[j++] = value; while (--count > 0);\n    }\n    return j;\n  }\n\n\n  /** \n   * Translates a state to a row index in the transition table\n   */\n  private static final int [] ZZ_ROWMAP = zzUnpackRowMap();\n\n  private static final String ZZ_ROWMAP_PACKED_0 =\n    \"\\0\\0\\0\\16\\0\\34\\0\\52\\0\\70\\0\\16\\0\\106\\0\\124\"+\n    \"\\0\\142\\0\\160\\0\\176\\0\\214\\0\\232\\0\\250\\0\\266\\0\\304\"+\n    \"\\0\\322\\0\\340\\0\\356\\0\\374\\0\\u010a\\0\\u0118\\0\\u0126\\0\\u0134\"+\n    \"\\0\\u0142\\0\\u0150\\0\\u015e\\0\\u016c\\0\\u017a\\0\\u0188\\0\\u0196\\0\\u01a4\"+\n    \"\\0\\u01b2\\0\\u01c0\\0\\u01ce\\0\\u01dc\\0\\u01ea\\0\\u01f8\\0\\322\\0\\u0206\"+\n    \"\\0\\u0214\\0\\u0222\\0\\u0230\\0\\u023e\\0\\u024c\\0\\u025a\\0\\124\\0\\214\"+\n    \"\\0\\u0268\\0\\u0276\\0\\u0284\";\n\n  private static int [] zzUnpackRowMap() {\n    int [] result = new int[51];\n    int offset = 0;\n    offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);\n    return result;\n  }\n\n  private static int zzUnpackRowMap(String packed, int offset, int [] result) {\n    int i = 0;  /* index in packed string  */\n    int j = offset;  /* index in unpacked array */\n    int l = packed.length();\n    while (i < l) {\n      int high = packed.charAt(i++) << 16;\n      result[j++] = high | packed.charAt(i++);\n    }\n    return j;\n  }\n\n  /** \n   * The transition table of the DFA\n   */\n  private static final int [] ZZ_TRANS = zzUnpackTrans();\n\n  private static final String ZZ_TRANS_PACKED_0 =\n    \"\\1\\2\\1\\3\\1\\4\\7\\2\\1\\5\\1\\6\\1\\7\\1\\2\"+\n    \"\\17\\0\\2\\3\\1\\0\\1\\10\\1\\0\\1\\11\\2\\12\\1\\13\"+\n    \"\\1\\3\\4\\0\\1\\3\\1\\4\\1\\0\\1\\14\\1\\0\\1\\11\"+\n    \"\\2\\15\\1\\16\\1\\4\\4\\0\\1\\3\\1\\4\\1\\17\\1\\20\"+\n    \"\\1\\21\\1\\22\\2\\12\\1\\13\\1\\23\\20\\0\\1\\2\\1\\0\"+\n    \"\\1\\24\\1\\25\\7\\0\\1\\26\\4\\0\\2\\27\\7\\0\\1\\27\"+\n    \"\\4\\0\\1\\30\\1\\31\\7\\0\\1\\32\\5\\0\\1\\33\\7\\0\"+\n    \"\\1\\13\\4\\0\\1\\34\\1\\35\\7\\0\\1\\36\\4\\0\\1\\37\"+\n    \"\\1\\40\\7\\0\\1\\41\\4\\0\\1\\42\\1\\43\\7\\0\\1\\44\"+\n    \"\\15\\0\\1\\45\\4\\0\\1\\24\\1\\25\\7\\0\\1\\46\\15\\0\"+\n    \"\\1\\47\\4\\0\\2\\27\\7\\0\\1\\50\\4\\0\\1\\3\\1\\4\"+\n    \"\\1\\17\\1\\10\\1\\21\\1\\22\\2\\12\\1\\13\\1\\23\\4\\0\"+\n    \"\\2\\24\\1\\0\\1\\51\\1\\0\\1\\11\\2\\52\\1\\0\\1\\24\"+\n    \"\\4\\0\\1\\24\\1\\25\\1\\0\\1\\53\\1\\0\\1\\11\\2\\54\"+\n    \"\\1\\55\\1\\25\\4\\0\\1\\24\\1\\25\\1\\0\\1\\51\\1\\0\"+\n    \"\\1\\11\\2\\52\\1\\0\\1\\26\\4\\0\\2\\27\\1\\0\\1\\56\"+\n    \"\\2\\0\\1\\56\\2\\0\\1\\27\\4\\0\\2\\30\\1\\0\\1\\52\"+\n    \"\\1\\0\\1\\11\\2\\52\\1\\0\\1\\30\\4\\0\\1\\30\\1\\31\"+\n    \"\\1\\0\\1\\54\\1\\0\\1\\11\\2\\54\\1\\55\\1\\31\\4\\0\"+\n    \"\\1\\30\\1\\31\\1\\0\\1\\52\\1\\0\\1\\11\\2\\52\\1\\0\"+\n    \"\\1\\32\\5\\0\\1\\33\\1\\0\\1\\55\\2\\0\\3\\55\\1\\33\"+\n    \"\\4\\0\\2\\34\\1\\0\\1\\57\\1\\0\\1\\11\\2\\12\\1\\13\"+\n    \"\\1\\34\\4\\0\\1\\34\\1\\35\\1\\0\\1\\60\\1\\0\\1\\11\"+\n    \"\\2\\15\\1\\16\\1\\35\\4\\0\\1\\34\\1\\35\\1\\0\\1\\57\"+\n    \"\\1\\0\\1\\11\\2\\12\\1\\13\\1\\36\\4\\0\\2\\37\\1\\0\"+\n    \"\\1\\12\\1\\0\\1\\11\\2\\12\\1\\13\\1\\37\\4\\0\\1\\37\"+\n    \"\\1\\40\\1\\0\\1\\15\\1\\0\\1\\11\\2\\15\\1\\16\\1\\40\"+\n    \"\\4\\0\\1\\37\\1\\40\\1\\0\\1\\12\\1\\0\\1\\11\\2\\12\"+\n    \"\\1\\13\\1\\41\\4\\0\\2\\42\\1\\0\\1\\13\\2\\0\\3\\13\"+\n    \"\\1\\42\\4\\0\\1\\42\\1\\43\\1\\0\\1\\16\\2\\0\\3\\16\"+\n    \"\\1\\43\\4\\0\\1\\42\\1\\43\\1\\0\\1\\13\\2\\0\\3\\13\"+\n    \"\\1\\44\\6\\0\\1\\17\\6\\0\\1\\45\\4\\0\\1\\24\\1\\25\"+\n    \"\\1\\0\\1\\61\\1\\0\\1\\11\\2\\52\\1\\0\\1\\26\\4\\0\"+\n    \"\\2\\27\\1\\0\\1\\56\\2\\0\\1\\56\\2\\0\\1\\50\\4\\0\"+\n    \"\\2\\24\\7\\0\\1\\24\\4\\0\\2\\30\\7\\0\\1\\30\\4\\0\"+\n    \"\\2\\34\\7\\0\\1\\34\\4\\0\\2\\37\\7\\0\\1\\37\\4\\0\"+\n    \"\\2\\42\\7\\0\\1\\42\\4\\0\\2\\62\\7\\0\\1\\62\\4\\0\"+\n    \"\\2\\24\\7\\0\\1\\63\\4\\0\\2\\62\\1\\0\\1\\56\\2\\0\"+\n    \"\\1\\56\\2\\0\\1\\62\\4\\0\\2\\24\\1\\0\\1\\61\\1\\0\"+\n    \"\\1\\11\\2\\52\\1\\0\\1\\24\\3\\0\";\n\n  private static int [] zzUnpackTrans() {\n    int [] result = new int[658];\n    int offset = 0;\n    offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);\n    return result;\n  }\n\n  private static int zzUnpackTrans(String packed, int offset, int [] result) {\n    int i = 0;       /* index in packed string  */\n    int j = offset;  /* index in unpacked array */\n    int l = packed.length();\n    while (i < l) {\n      int count = packed.charAt(i++);\n      int value = packed.charAt(i++);\n      value--;\n      do result[j++] = value; while (--count > 0);\n    }\n    return j;\n  }\n\n\n  /* error codes */\n  private static final int ZZ_UNKNOWN_ERROR = 0;\n  private static final int ZZ_NO_MATCH = 1;\n  private static final int ZZ_PUSHBACK_2BIG = 2;\n\n  /* error messages for the codes above */\n  private static final String ZZ_ERROR_MSG[] = {\n    \"Unkown internal scanner error\",\n    \"Error: could not match input\",\n    \"Error: pushback value was too large\"\n  };\n\n  /**\n   * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>\n   */\n  private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();\n\n  private static final String ZZ_ATTRIBUTE_PACKED_0 =\n    \"\\1\\0\\1\\11\\3\\1\\1\\11\\1\\1\\13\\0\\4\\1\\2\\0\"+\n    \"\\1\\1\\1\\0\\17\\1\\1\\0\\1\\1\\3\\0\\5\\1\";\n\n  private static int [] zzUnpackAttribute() {\n    int [] result = new int[51];\n    int offset = 0;\n    offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);\n    return result;\n  }\n\n  private static int zzUnpackAttribute(String packed, int offset, int [] result) {\n    int i = 0;       /* index in packed string  */\n    int j = offset;  /* index in unpacked array */\n    int l = packed.length();\n    while (i < l) {\n      int count = packed.charAt(i++);\n      int value = packed.charAt(i++);\n      do result[j++] = value; while (--count > 0);\n    }\n    return j;\n  }\n\n  /** the input device */\n  private java.io.Reader zzReader;\n\n  /** the current state of the DFA */\n  private int zzState;\n\n  /** the current lexical state */\n  private int zzLexicalState = YYINITIAL;\n\n  /** this buffer contains the current text to be matched and is\n      the source of the yytext() string */\n  private char zzBuffer[] = new char[ZZ_BUFFERSIZE];\n\n  /** the textposition at the last accepting state */\n  private int zzMarkedPos;\n\n  /** the textposition at the last state to be included in yytext */\n  private int zzPushbackPos;\n\n  /** the current text position in the buffer */\n  private int zzCurrentPos;\n\n  /** startRead marks the beginning of the yytext() string in the buffer */\n  private int zzStartRead;\n\n  /** endRead marks the last character in the buffer, that has been read\n      from input */\n  private int zzEndRead;\n\n  /** number of newlines encountered up to the start of the matched text */\n  private int yyline;\n\n  /** the number of characters up to the start of the matched text */\n  private int yychar;\n\n  /**\n   * the number of characters from the last newline up to the start of the \n   * matched text\n   */\n  private int yycolumn;\n\n  /** \n   * zzAtBOL == true <=> the scanner is currently at the beginning of a line\n   */\n  private boolean zzAtBOL = true;\n\n  /** zzAtEOF == true <=> the scanner is at the EOF */\n  private boolean zzAtEOF;\n\n  /* user code: */\n\npublic static final int ALPHANUM          = StandardTokenizer.ALPHANUM;\npublic static final int APOSTROPHE        = StandardTokenizer.APOSTROPHE;\npublic static final int ACRONYM           = StandardTokenizer.ACRONYM;\npublic static final int COMPANY           = StandardTokenizer.COMPANY;\npublic static final int EMAIL             = StandardTokenizer.EMAIL;\npublic static final int HOST              = StandardTokenizer.HOST;\npublic static final int NUM               = StandardTokenizer.NUM;\npublic static final int CJ                = StandardTokenizer.CJ;\n/**\n * @deprecated this solves a bug where HOSTs that end with '.' are identified\n *             as ACRONYMs. It is deprecated and will be removed in the next\n *             release.\n */\npublic static final int ACRONYM_DEP       = StandardTokenizer.ACRONYM_DEP;\n\npublic static final String [] TOKEN_TYPES = StandardTokenizer.TOKEN_TYPES;\n\npublic final int yychar()\n{\n    return yychar;\n}\n\n/**\n * Fills Lucene token with the current token text.\n */\nfinal void getText(Token t) {\n  t.setTermBuffer(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);\n}\n\n\n  /**\n   * Creates a new scanner\n   * There is also a java.io.InputStream version of this constructor.\n   *\n   * @param   in  the java.io.Reader to read input from.\n   */\n  StandardTokenizerImpl(java.io.Reader in) {\n    this.zzReader = in;\n  }\n\n  /**\n   * Creates a new scanner.\n   * There is also java.io.Reader version of this constructor.\n   *\n   * @param   in  the java.io.Inputstream to read input from.\n   */\n  StandardTokenizerImpl(java.io.InputStream in) {\n    this(new java.io.InputStreamReader(in));\n  }\n\n  /** \n   * Unpacks the compressed character translation table.\n   *\n   * @param packed   the packed character translation table\n   * @return         the unpacked character translation table\n   */\n  private static char [] zzUnpackCMap(String packed) {\n    char [] map = new char[0x10000];\n    int i = 0;  /* index in packed string  */\n    int j = 0;  /* index in unpacked array */\n    while (i < 1154) {\n      int  count = packed.charAt(i++);\n      char value = packed.charAt(i++);\n      do map[j++] = value; while (--count > 0);\n    }\n    return map;\n  }\n\n\n  /**\n   * Refills the input buffer.\n   *\n   * @return      <code>false</code>, iff there was new input.\n   * \n   * @exception   java.io.IOException  if any I/O-Error occurs\n   */\n  private boolean zzRefill() throws java.io.IOException {\n\n    /* first: make room (if you can) */\n    if (zzStartRead > 0) {\n      System.arraycopy(zzBuffer, zzStartRead,\n                       zzBuffer, 0,\n                       zzEndRead-zzStartRead);\n\n      /* translate stored positions */\n      zzEndRead-= zzStartRead;\n      zzCurrentPos-= zzStartRead;\n      zzMarkedPos-= zzStartRead;\n      zzPushbackPos-= zzStartRead;\n      zzStartRead = 0;\n    }\n\n    /* is the buffer big enough? */\n    if (zzCurrentPos >= zzBuffer.length) {\n      /* if not: blow it up */\n      char newBuffer[] = new char[zzCurrentPos*2];\n      System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);\n      zzBuffer = newBuffer;\n    }\n\n    /* finally: fill the buffer with new input */\n    int numRead = zzReader.read(zzBuffer, zzEndRead,\n                                            zzBuffer.length-zzEndRead);\n\n    if (numRead < 0) {\n      return true;\n    }\n    else {\n      zzEndRead+= numRead;\n      return false;\n    }\n  }\n\n    \n  /**\n   * Closes the input stream.\n   */\n  public final void yyclose() throws java.io.IOException {\n    zzAtEOF = true;            /* indicate end of file */\n    zzEndRead = zzStartRead;  /* invalidate buffer    */\n\n    if (zzReader != null)\n      zzReader.close();\n  }\n\n\n  /**\n   * Resets the scanner to read from a new input stream.\n   * Does not close the old reader.\n   *\n   * All internal variables are reset, the old input stream \n   * <b>cannot</b> be reused (internal buffer is discarded and lost).\n   * Lexical state is set to <tt>ZZ_INITIAL</tt>.\n   *\n   * @param reader   the new input stream \n   */\n  public final void yyreset(java.io.Reader reader) {\n    zzReader = reader;\n    zzAtBOL  = true;\n    zzAtEOF  = false;\n    zzEndRead = zzStartRead = 0;\n    zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;\n    yyline = yychar = yycolumn = 0;\n    zzLexicalState = YYINITIAL;\n  }\n\n\n  /**\n   * Returns the current lexical state.\n   */\n  public final int yystate() {\n    return zzLexicalState;\n  }\n\n\n  /**\n   * Enters a new lexical state\n   *\n   * @param newState the new lexical state\n   */\n  public final void yybegin(int newState) {\n    zzLexicalState = newState;\n  }\n\n\n  /**\n   * Returns the text matched by the current regular expression.\n   */\n  public final String yytext() {\n    return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n  }\n\n\n  /**\n   * Returns the character at position <tt>pos</tt> from the \n   * matched text. \n   * \n   * It is equivalent to yytext().charAt(pos), but faster\n   *\n   * @param pos the position of the character to fetch. \n   *            A value from 0 to yylength()-1.\n   *\n   * @return the character at position pos\n   */\n  public final char yycharat(int pos) {\n    return zzBuffer[zzStartRead+pos];\n  }\n\n\n  /**\n   * Returns the length of the matched text region.\n   */\n  public final int yylength() {\n    return zzMarkedPos-zzStartRead;\n  }\n\n\n  /**\n   * Reports an error that occured while scanning.\n   *\n   * In a wellformed scanner (no or only correct usage of \n   * yypushback(int) and a match-all fallback rule) this method \n   * will only be called with things that \"Can't Possibly Happen\".\n   * If this method is called, something is seriously wrong\n   * (e.g. a JFlex bug producing a faulty scanner etc.).\n   *\n   * Usual syntax/scanner level error handling should be done\n   * in error fallback rules.\n   *\n   * @param   errorCode  the code of the errormessage to display\n   */\n  private void zzScanError(int errorCode) {\n    String message;\n    try {\n      message = ZZ_ERROR_MSG[errorCode];\n    }\n    catch (ArrayIndexOutOfBoundsException e) {\n      message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n    }\n\n    throw new Error(message);\n  } \n\n\n  /**\n   * Pushes the specified amount of characters back into the input stream.\n   *\n   * They will be read again by then next call of the scanning method\n   *\n   * @param number  the number of characters to be read again.\n   *                This number must not be greater than yylength()!\n   */\n  public void yypushback(int number)  {\n    if ( number > yylength() )\n      zzScanError(ZZ_PUSHBACK_2BIG);\n\n    zzMarkedPos -= number;\n  }\n\n\n  /**\n   * Resumes scanning until the next regular expression is matched,\n   * the end of input is encountered or an I/O-Error occurs.\n   *\n   * @return      the next token\n   * @exception   java.io.IOException  if any I/O-Error occurs\n   */\n  public int getNextToken() throws java.io.IOException {\n    int zzInput;\n    int zzAction;\n\n    int zzCurrentPosL;\n    int zzMarkedPosL;\n    int zzEndReadL = zzEndRead;\n    char [] zzBufferL = zzBuffer;\n    char [] zzCMapL = ZZ_CMAP;\n\n    int [] zzTransL = ZZ_TRANS;\n    int [] zzRowMapL = ZZ_ROWMAP;\n    int [] zzAttrL = ZZ_ATTRIBUTE;\n\n    while (true) {\n      zzMarkedPosL = zzMarkedPos;\n\n      yychar+= zzMarkedPosL-zzStartRead;\n\n      zzAction = -1;\n\n      zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;\n  \n      zzState = zzLexicalState;\n\n\n      zzForAction: {\n        while (true) {\n    \n          if (zzCurrentPosL < zzEndReadL)\n            zzInput = zzBufferL[zzCurrentPosL++];\n          else if (zzAtEOF) {\n            zzInput = YYEOF;\n            break zzForAction;\n          }\n          else {\n            zzCurrentPos  = zzCurrentPosL;\n            zzMarkedPos   = zzMarkedPosL;\n            boolean eof = zzRefill();\n            zzCurrentPosL  = zzCurrentPos;\n            zzMarkedPosL   = zzMarkedPos;\n            zzBufferL      = zzBuffer;\n            zzEndReadL     = zzEndRead;\n            if (eof) {\n              zzInput = YYEOF;\n              break zzForAction;\n            }\n            else {\n              zzInput = zzBufferL[zzCurrentPosL++];\n            }\n          }\n          int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];\n          if (zzNext == -1) break zzForAction;\n          zzState = zzNext;\n\n          int zzAttributes = zzAttrL[zzState];\n          if ( (zzAttributes & 1) == 1 ) {\n            zzAction = zzState;\n            zzMarkedPosL = zzCurrentPosL;\n            if ( (zzAttributes & 8) == 8 ) break zzForAction;\n          }\n\n        }\n      }\n\n      zzMarkedPos = zzMarkedPosL;\n\n      switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {\n        case 4: \n          { return HOST;\n          }\n        case 11: break;\n        case 9: \n          { return ACRONYM;\n          }\n        case 12: break;\n        case 8: \n          { return ACRONYM_DEP;\n          }\n        case 13: break;\n        case 1: \n          { /* ignore */\n          }\n        case 14: break;\n        case 5: \n          { return NUM;\n          }\n        case 15: break;\n        case 3: \n          { return CJ;\n          }\n        case 16: break;\n        case 2: \n          { return ALPHANUM;\n          }\n        case 17: break;\n        case 7: \n          { return COMPANY;\n          }\n        case 18: break;\n        case 6: \n          { return APOSTROPHE;\n          }\n        case 19: break;\n        case 10: \n          { return EMAIL;\n          }\n        case 20: break;\n        default: \n          if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {\n            zzAtEOF = true;\n            return YYEOF;\n          } \n          else {\n            zzScanError(ZZ_NO_MATCH);", "functions": [{"function_name": "zzUnpackAction", "code": "  private static int [] zzUnpackAction() {\n    int [] result = new int[51];\n    int offset = 0;\n    offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "zzUnpackAction", "code": "  private static int zzUnpackAction(String packed, int offset, int [] result) {\n    int i = 0;       /* index in packed string  */\n    int j = offset;  /* index in unpacked array */\n    int l = packed.length();\n    while (i < l) {\n      int count = packed.charAt(i++);\n      int value = packed.charAt(i++);\n      do result[j++] = value; while (--count > 0);\n    }\n    return j;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [2, 11], [2, 12], [3, 13], [5, 14], [10, 15], [10, 16], [15, 17], [11, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 2], [12, 2], [13, 3], [14, 5], [15, 10], [16, 10], [17, 15], [18, 11], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "zzUnpackRowMap", "code": "  private static int [] zzUnpackRowMap() {\n    int [] result = new int[51];\n    int offset = 0;\n    offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "zzUnpackRowMap", "code": "  private static int zzUnpackRowMap(String packed, int offset, int [] result) {\n    int i = 0;  /* index in packed string  */\n    int j = offset;  /* index in unpacked array */\n    int l = packed.length();\n    while (i < l) {\n      int high = packed.charAt(i++) << 16;\n      result[j++] = high | packed.charAt(i++);\n    }\n    return j;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [3, 11], [5, 12], [2, 13], [13, 14], [10, 15], [14, 16], [15, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 3], [12, 5], [13, 2], [14, 13], [15, 10], [16, 14], [17, 15], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "zzUnpackTrans", "code": "  private static int [] zzUnpackTrans() {\n    int [] result = new int[658];\n    int offset = 0;\n    offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "zzUnpackTrans", "code": "  private static int zzUnpackTrans(String packed, int offset, int [] result) {\n    int i = 0;       /* index in packed string  */\n    int j = offset;  /* index in unpacked array */\n    int l = packed.length();\n    while (i < l) {\n      int count = packed.charAt(i++);\n      int value = packed.charAt(i++);\n      value--;\n      do result[j++] = value; while (--count > 0);\n    }\n    return j;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [2, 11], [2, 12], [3, 13], [5, 14], [10, 15], [10, 16], [15, 17], [11, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 2], [12, 2], [13, 3], [14, 5], [15, 10], [16, 10], [17, 15], [18, 11], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "zzUnpackAttribute", "code": "  private static int [] zzUnpackAttribute() {\n    int [] result = new int[51];\n    int offset = 0;\n    offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "zzUnpackAttribute", "code": "  private static int zzUnpackAttribute(String packed, int offset, int [] result) {\n    int i = 0;       /* index in packed string  */\n    int j = offset;  /* index in unpacked array */\n    int l = packed.length();\n    while (i < l) {\n      int count = packed.charAt(i++);\n      int value = packed.charAt(i++);\n      do result[j++] = value; while (--count > 0);\n    }\n    return j;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [2, 11], [2, 12], [3, 13], [5, 14], [10, 15], [10, 16], [15, 17], [11, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 2], [12, 2], [13, 3], [14, 5], [15, 10], [16, 10], [17, 15], [18, 11], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "yychar", "code": "public final int yychar()\n{\n    return yychar;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getText", "code": "final void getText(Token t) {\n  t.setTermBuffer(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "zzUnpackCMap", "code": "  private static char [] zzUnpackCMap(String packed) {\n    char [] map = new char[0x10000];\n    int i = 0;  /* index in packed string  */\n    int j = 0;  /* index in unpacked array */\n    while (i < 1154) {\n      int  count = packed.charAt(i++);\n      char value = packed.charAt(i++);\n      do map[j++] = value; while (--count > 0);\n    }\n    return map;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [3, 12], [4, 13], [8, 14], [5, 15], [8, 16], [14, 17], [9, 18], [10, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 3], [13, 4], [14, 8], [15, 5], [16, 8], [17, 14], [18, 9], [19, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "zzRefill", "code": "  private boolean zzRefill() throws java.io.IOException {\n\n    /* first: make room (if you can) */\n    if (zzStartRead > 0) {\n      System.arraycopy(zzBuffer, zzStartRead,\n                       zzBuffer, 0,\n                       zzEndRead-zzStartRead);\n\n      /* translate stored positions */\n      zzEndRead-= zzStartRead;\n      zzCurrentPos-= zzStartRead;\n      zzMarkedPos-= zzStartRead;\n      zzPushbackPos-= zzStartRead;\n      zzStartRead = 0;\n    }\n\n    /* is the buffer big enough? */\n    if (zzCurrentPos >= zzBuffer.length) {\n      /* if not: blow it up */\n      char newBuffer[] = new char[zzCurrentPos*2];\n      System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);\n      zzBuffer = newBuffer;\n    }\n\n    /* finally: fill the buffer with new input */\n    int numRead = zzReader.read(zzBuffer, zzEndRead,\n                                            zzBuffer.length-zzEndRead);\n\n    if (numRead < 0) {\n      return true;\n    }\n    else {\n      zzEndRead+= numRead;\n      return false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [1, 8], [1, 9], [5, 10], [2, 11], [3, 12], [7, 13], [8, 14], [1, 15], [9, 16], [11, 17], [3, 18], [3, 19], [4, 20], [4, 21], [4, 22], [4, 23], [4, 24], [4, 25], [19, 26], [19, 27], [20, 28], [25, 29], [25, 30], [12, 31], [31, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 1], [9, 1], [10, 5], [11, 2], [12, 3], [13, 7], [14, 8], [15, 1], [16, 9], [17, 11], [18, 3], [19, 3], [20, 4], [21, 4], [22, 4], [23, 4], [24, 4], [25, 4], [26, 19], [27, 19], [28, 20], [29, 25], [30, 25], [31, 12], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "yyclose", "code": "  public final void yyclose() throws java.io.IOException {\n    zzAtEOF = true;            /* indicate end of file */\n    zzEndRead = zzStartRead;  /* invalidate buffer    */\n\n    if (zzReader != null)\n      zzReader.close();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [1, 0], [2, 1], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "yyreset", "code": "  public final void yyreset(java.io.Reader reader) {\n    zzReader = reader;\n    zzAtBOL  = true;\n    zzAtEOF  = false;\n    zzEndRead = zzStartRead = 0;\n    zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;\n    yyline = yychar = yycolumn = 0;\n    zzLexicalState = YYINITIAL;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [9, 14], [10, 15], [11, 16], [14, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 9], [15, 10], [16, 11], [17, 14], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "yystate", "code": "  public final int yystate() {\n    return zzLexicalState;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "yybegin", "code": "  public final void yybegin(int newState) {\n    zzLexicalState = newState;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "yytext", "code": "  public final String yytext() {\n    return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "yycharat", "code": "  public final char yycharat(int pos) {\n    return zzBuffer[zzStartRead+pos];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "yylength", "code": "  public final int yylength() {\n    return zzMarkedPos-zzStartRead;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "zzScanError", "code": "  private void zzScanError(int errorCode) {\n    String message;\n    try {\n      message = ZZ_ERROR_MSG[errorCode];\n    }\n    catch (ArrayIndexOutOfBoundsException e) {\n      message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n    }\n\n    throw new Error(message);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "TRY", "VAR_DECL", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "yypushback", "code": "  public void yypushback(int number)  {\n    if ( number > yylength() )\n      zzScanError(ZZ_PUSHBACK_2BIG);\n\n    zzMarkedPos -= number;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNextToken", "code": "  public int getNextToken() throws java.io.IOException {\n    int zzInput;\n    int zzAction;\n\n    int zzCurrentPosL;\n    int zzMarkedPosL;\n    int zzEndReadL = zzEndRead;\n    char [] zzBufferL = zzBuffer;\n    char [] zzCMapL = ZZ_CMAP;\n\n    int [] zzTransL = ZZ_TRANS;\n    int [] zzRowMapL = ZZ_ROWMAP;\n    int [] zzAttrL = ZZ_ATTRIBUTE;\n\n    while (true) {\n      zzMarkedPosL = zzMarkedPos;\n\n      yychar+= zzMarkedPosL-zzStartRead;\n\n      zzAction = -1;\n\n      zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;\n  \n      zzState = zzLexicalState;\n\n\n      zzForAction: {\n        while (true) {\n    \n          if (zzCurrentPosL < zzEndReadL)\n            zzInput = zzBufferL[zzCurrentPosL++];\n          else if (zzAtEOF) {\n            zzInput = YYEOF;\n            break zzForAction;\n          }\n          else {\n            zzCurrentPos  = zzCurrentPosL;\n            zzMarkedPos   = zzMarkedPosL;\n            boolean eof = zzRefill();\n            zzCurrentPosL  = zzCurrentPos;\n            zzMarkedPosL   = zzMarkedPos;\n            zzBufferL      = zzBuffer;\n            zzEndReadL     = zzEndRead;\n            if (eof) {\n              zzInput = YYEOF;\n              break zzForAction;\n            }\n            else {\n              zzInput = zzBufferL[zzCurrentPosL++];\n            }\n          }\n          int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];\n          if (zzNext == -1) break zzForAction;\n          zzState = zzNext;\n\n          int zzAttributes = zzAttrL[zzState];\n          if ( (zzAttributes & 1) == 1 ) {\n            zzAction = zzState;\n            zzMarkedPosL = zzCurrentPosL;\n            if ( (zzAttributes & 8) == 8 ) break zzForAction;\n          }\n\n        }\n      }\n\n      zzMarkedPos = zzMarkedPosL;\n\n      switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {\n        case 4: \n          { return HOST;\n          }\n        case 11: break;\n        case 9: \n          { return ACRONYM;\n          }\n        case 12: break;\n        case 8: \n          { return ACRONYM_DEP;\n          }\n        case 13: break;\n        case 1: \n          { /* ignore */\n          }\n        case 14: break;\n        case 5: \n          { return NUM;\n          }\n        case 15: break;\n        case 3: \n          { return CJ;\n          }\n        case 16: break;\n        case 2: \n          { return ALPHANUM;\n          }\n        case 17: break;\n        case 7: \n          { return COMPANY;\n          }\n        case 18: break;\n        case 6: \n          { return APOSTROPHE;\n          }\n        case 19: break;\n        case 10: \n          { return EMAIL;\n          }\n        case 20: break;\n        default: \n          if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {\n            zzAtEOF = true;\n            return YYEOF;\n          } \n          else {\n            zzScanError(ZZ_NO_MATCH);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "SWITCH", "COND_EXPR", "ASSIGN", "LOOP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "IF", "BINARY_OP", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [13, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 29], [13, 30], [13, 31], [13, 32], [13, 33], [13, 34], [13, 35], [13, 36], [13, 37], [13, 38], [13, 39], [13, 40], [13, 41], [13, 42], [13, 43], [13, 44], [13, 45], [13, 46], [13, 47], [13, 48], [13, 49], [13, 50], [13, 51], [13, 52], [14, 53], [16, 54], [18, 55], [19, 56], [20, 57], [22, 58], [13, 59], [13, 60], [13, 61], [13, 62], [13, 63], [13, 64], [13, 65], [13, 66], [13, 67], [53, 68], [16, 69], [16, 70], [16, 71], [16, 72], [16, 73], [55, 74], [22, 75], [58, 76], [58, 77], [69, 78], [16, 79], [71, 80], [71, 81], [73, 82], [73, 83], [22, 84], [22, 85], [69, 86], [78, 87], [78, 88], [81, 89], [73, 90], [85, 91], [86, 92], [86, 93], [69, 94], [69, 95], [88, 96], [82, 97], [82, 98], [82, 99], [93, 100], [93, 101], [72, 102], [82, 103], [82, 104], [82, 105], [82, 106], [82, 107], [82, 108], [82, 109], [101, 110], [97, 111], [98, 112], [97, 113], [97, 114], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 13], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 13], [23, 13], [24, 13], [25, 13], [26, 13], [27, 13], [28, 13], [29, 13], [30, 13], [31, 13], [32, 13], [33, 13], [34, 13], [35, 13], [36, 13], [37, 13], [38, 13], [39, 13], [40, 13], [41, 13], [42, 13], [43, 13], [44, 13], [45, 13], [46, 13], [47, 13], [48, 13], [49, 13], [50, 13], [51, 13], [52, 13], [53, 14], [54, 16], [55, 18], [56, 19], [57, 20], [58, 22], [59, 13], [60, 13], [61, 13], [62, 13], [63, 13], [64, 13], [65, 13], [66, 13], [67, 13], [68, 53], [69, 16], [70, 16], [71, 16], [72, 16], [73, 16], [74, 55], [75, 22], [76, 58], [77, 58], [78, 69], [79, 16], [80, 71], [81, 71], [82, 73], [83, 73], [84, 22], [85, 22], [86, 69], [87, 78], [88, 78], [89, 81], [90, 73], [91, 85], [92, 86], [93, 86], [94, 69], [95, 69], [96, 88], [97, 82], [98, 82], [99, 82], [100, 93], [101, 93], [102, 72], [103, 82], [104, 82], [105, 82], [106, 82], [107, 82], [108, 82], [109, 82], [110, 101], [111, 97], [112, 98], [113, 97], [114, 97], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114]]}, {"function_name": "StandardTokenizerImpl", "code": "  StandardTokenizerImpl(java.io.Reader in) {\n    this.zzReader = in;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "StandardTokenizerImpl", "code": "  StandardTokenizerImpl(java.io.InputStream in) {\n    this(new java.io.InputStreamReader(in));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6236", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/util/CellReference.java", "language": "java", "name": "org.apache.poi.hssf.util.CellReference", "code": "public class CellReference {\n\n    /** Creates new CellReference */\n    private int row;\n    private int col;\n    private String sheetName;\n    private boolean rowAbs;\n    private boolean colAbs;\n\n    public CellReference(String cellRef) {\n        String[] parts = separateRefParts(cellRef);\n        sheetName = parts[0];\n        String ref = parts[1]; \n        if ((ref == null)||(\"\".equals(ref)))\n        \tthrow new IllegalArgumentException(\"Invalid Formula cell reference: '\"+cellRef+\"'\");\n        if (ref.charAt(0) == '$') {\n            colAbs=true;\n            ref=ref.substring(1);\n        }\n        col = convertColStringToNum(ref);\n        ref=parts[2];\n        if ((ref == null)||(\"\".equals(ref)))\n        \tthrow new IllegalArgumentException(\"Invalid Formula cell reference: '\"+cellRef+\"'\");\n        if (ref.charAt(0) == '$') {\n            rowAbs=true;\n            ref=ref.substring(1);\n        }\n        row = Integer.parseInt(ref)-1;\n    }\n\n    public CellReference(int pRow, int pCol) {\n        this(pRow,pCol,false,false);\n    }\n\n    public CellReference(int pRow, int pCol, boolean pAbsRow, boolean pAbsCol) {\n        row=pRow;col=pCol;\n        rowAbs = pAbsRow;\n        colAbs=pAbsCol;\n\n    }\n\n    public int getRow(){return row;}\n    public short getCol(){return (short) col;}\n    public boolean isRowAbsolute(){return rowAbs;}\n    public boolean isColAbsolute(){return colAbs;}\n    public String getSheetName(){return sheetName;}\n\n    /**\n     * takes in a column reference portion of a CellRef and converts it from\n     * ALPHA-26 number format to 0-based base 10.\n     */\n    private int convertColStringToNum(String ref) {\n        int len = ref.length();\n        int retval=0;\n        int pos = 0;\n\n        for (int k = ref.length()-1; k > -1; k--) {\n            char thechar = ref.charAt(k);\n            if ( pos == 0) {\n                retval += (Character.getNumericValue(thechar)-9);\n            } else {\n                retval += (Character.getNumericValue(thechar)-9) * (pos * 26);\n            }\n            pos++;\n        }\n        return retval-1;\n    }\n\n\n    /**\n     * Seperates the row from the columns and returns an array.  Element in\n     * position one is the substring containing the columns still in ALPHA-26\n     * number format.\n     */\n    private String[] separateRefParts(String reference) {\n\n        String retval[] = new String[3];\n\n        int start = reference.indexOf(\"!\");\n        if (start != -1) retval[0] = reference.substring(0, start);\n        start += 1;\n\n        int length = reference.length();\n\n\n        char[] chars = reference.toCharArray();\n        int loc = start;\n        if (chars[loc]=='$') loc++;\n        for (; loc < chars.length; loc++) {\n            if (Character.isDigit(chars[loc]) || chars[loc] == '$') {\n                break;\n            }\n        }\n\n        retval[1] = reference.substring(start,loc);\n        retval[2] = reference.substring(loc);\n        return retval;\n    }\n\n    /**\n     * takes in a 0-based base-10 column and returns a ALPHA-26 representation\n     */\n    private static String convertNumToColString(int col) {\n        String retval = null;\n        int mod = col % 26;\n        int div = col / 26;\n        char small=(char)(mod + 65);\n        char big = (char)(div + 64);\n\n        if (div == 0) {\n            retval = \"\"+small;\n        } else {\n            retval = \"\"+big+\"\"+small;\n        }\n\n        return retval;\n    }\n\n\n    public String toString() {\n        StringBuffer retval = new StringBuffer();\n        retval.append( (colAbs)?\"$\":\"\");\n        retval.append( convertNumToColString(col));\n        retval.append((rowAbs)?\"$\":\"\");\n        retval.append(row+1);\n\n    return retval.toString();", "functions": [{"function_name": "getRow", "code": "    public int getRow(){return row;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCol", "code": "    public short getCol(){return (short) col;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isRowAbsolute", "code": "    public boolean isRowAbsolute(){return rowAbs;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isColAbsolute", "code": "    public boolean isColAbsolute(){return colAbs;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSheetName", "code": "    public String getSheetName(){return sheetName;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "convertColStringToNum", "code": "    private int convertColStringToNum(String ref) {\n        int len = ref.length();\n        int retval=0;\n        int pos = 0;\n\n        for (int k = ref.length()-1; k > -1; k--) {\n            char thechar = ref.charAt(k);\n            if ( pos == 0) {\n                retval += (Character.getNumericValue(thechar)-9);\n            } else {\n                retval += (Character.getNumericValue(thechar)-9) * (pos * 26);\n            }\n            pos++;\n        }\n        return retval-1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [2, 10], [2, 11], [8, 12], [3, 13], [4, 14], [5, 15], [10, 16], [2, 17], [16, 18], [11, 19], [17, 20], [17, 21], [10, 22], [10, 23], [22, 24], [23, 25], [24, 26], [24, 27], [25, 28], [25, 29], [26, 30], [27, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 2], [11, 2], [12, 8], [13, 3], [14, 4], [15, 5], [16, 10], [17, 2], [18, 16], [19, 11], [20, 17], [21, 17], [22, 10], [23, 10], [24, 22], [25, 23], [26, 24], [27, 24], [28, 25], [29, 25], [30, 26], [31, 27], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "separateRefParts", "code": "    private String[] separateRefParts(String reference) {\n\n        String retval[] = new String[3];\n\n        int start = reference.indexOf(\"!\");\n        if (start != -1) retval[0] = reference.substring(0, start);\n        start += 1;\n\n        int length = reference.length();\n\n\n        char[] chars = reference.toCharArray();\n        int loc = start;\n        if (chars[loc]=='$') loc++;\n        for (; loc < chars.length; loc++) {\n            if (Character.isDigit(chars[loc]) || chars[loc] == '$') {\n                break;\n            }\n        }\n\n        retval[1] = reference.substring(start,loc);\n        retval[2] = reference.substring(loc);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [3, 14], [0, 15], [7, 16], [11, 17], [12, 18], [2, 19], [14, 20], [5, 21], [6, 22], [15, 23], [7, 24], [16, 25], [8, 26], [19, 27], [24, 28], [26, 29], [9, 30], [11, 31], [12, 32], [19, 33], [27, 34], [27, 35], [28, 36], [34, 37], [24, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 3], [15, 0], [16, 7], [17, 11], [18, 12], [19, 2], [20, 14], [21, 5], [22, 6], [23, 15], [24, 7], [25, 16], [26, 8], [27, 19], [28, 24], [29, 26], [30, 9], [31, 11], [32, 12], [33, 19], [34, 27], [35, 27], [36, 28], [37, 34], [38, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "convertNumToColString", "code": "    private static String convertNumToColString(int col) {\n        String retval = null;\n        int mod = col % 26;\n        int div = col / 26;\n        char small=(char)(mod + 65);\n        char big = (char)(div + 64);\n\n        if (div == 0) {\n            retval = \"\"+small;\n        } else {\n            retval = \"\"+big+\"\"+small;\n        }\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [9, 10], [5, 11], [6, 12], [7, 13], [2, 14], [2, 15], [3, 16], [4, 17], [11, 18], [12, 19], [14, 20], [15, 21], [16, 22], [17, 23], [20, 24], [21, 25], [24, 26], [24, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 9], [11, 5], [12, 6], [13, 7], [14, 2], [15, 2], [16, 3], [17, 4], [18, 11], [19, 12], [20, 14], [21, 15], [22, 16], [23, 17], [24, 20], [25, 21], [26, 24], [27, 24], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer retval = new StringBuffer();\n        retval.append( (colAbs)?\"$\":\"\");\n        retval.append( convertNumToColString(col));\n        retval.append((rowAbs)?\"$\":\"\");\n        retval.append(row+1);\n\n    return retval.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [7, 11], [2, 12], [8, 13], [9, 14], [9, 15], [11, 16], [11, 17], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 7], [12, 2], [13, 8], [14, 9], [15, 9], [16, 11], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "CellReference", "code": "    public CellReference(String cellRef) {\n        String[] parts = separateRefParts(cellRef);\n        sheetName = parts[0];\n        String ref = parts[1]; \n        if ((ref == null)||(\"\".equals(ref)))\n        \tthrow new IllegalArgumentException(\"Invalid Formula cell reference: '\"+cellRef+\"'\");\n        if (ref.charAt(0) == '$') {\n            colAbs=true;\n            ref=ref.substring(1);\n        }\n        col = convertColStringToNum(ref);\n        ref=parts[2];\n        if ((ref == null)||(\"\".equals(ref)))\n        \tthrow new IllegalArgumentException(\"Invalid Formula cell reference: '\"+cellRef+\"'\");\n        if (ref.charAt(0) == '$') {\n            rowAbs=true;\n            ref=ref.substring(1);\n        }\n        row = Integer.parseInt(ref)-1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [0, 12], [0, 13], [3, 14], [4, 15], [4, 16], [0, 17], [8, 18], [9, 19], [9, 20], [10, 21], [11, 22], [11, 23], [13, 24], [14, 25], [14, 26], [15, 27], [16, 28], [16, 29], [6, 30], [18, 31], [18, 32], [1, 33], [1, 34], [20, 35], [21, 36], [23, 37], [3, 38], [3, 39], [26, 40], [27, 41], [29, 42], [33, 43], [34, 44], [36, 45], [36, 46], [12, 47], [38, 48], [39, 49], [41, 50], [41, 51], [5, 52], [17, 53], [43, 54], [46, 55], [48, 56], [51, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 0], [13, 0], [14, 3], [15, 4], [16, 4], [17, 0], [18, 8], [19, 9], [20, 9], [21, 10], [22, 11], [23, 11], [24, 13], [25, 14], [26, 14], [27, 15], [28, 16], [29, 16], [30, 6], [31, 18], [32, 18], [33, 1], [34, 1], [35, 20], [36, 21], [37, 23], [38, 3], [39, 3], [40, 26], [41, 27], [42, 29], [43, 33], [44, 34], [45, 36], [46, 36], [47, 12], [48, 38], [49, 39], [50, 41], [51, 41], [52, 5], [53, 17], [54, 43], [55, 46], [56, 48], [57, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "CellReference", "code": "    public CellReference(int pRow, int pCol) {\n        this(pRow,pCol,false,false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CellReference", "code": "    public CellReference(int pRow, int pCol, boolean pAbsRow, boolean pAbsCol) {\n        row=pRow;col=pCol;\n        rowAbs = pAbsRow;\n        colAbs=pAbsCol;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "poi-2.5-5738", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/MergeCellsRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.MergeCellsRecord", "code": "public class MergeCellsRecord\n    extends Record\n{\n    public final static short sid = 0xe5;\n    private ArrayList         field_2_regions;\n\n    public MergeCellsRecord()\n    {\n    }\n\n    /**\n     * Constructs a MergedCellsRecord and sets its fields appropriately\n     *\n     * @param sid     id must be 0xe5 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public MergeCellsRecord(short sid, short size, byte [] data)\n    {\n        super(sid, size, data);\n    }\n\n    /**\n     * Constructs a MergedCellsRecord and sets its fields appropriately\n     *\n     * @param sid     id must be 0xe5 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset the offset of the record's data\n     */\n\n    public MergeCellsRecord(short sid, short size, byte [] data, int offset)\n    {\n        super(sid, size, data, offset);\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        short numAreas    = LittleEndian.getShort(data, 0 + offset);\n        field_2_regions   = new ArrayList(numAreas + 10);\n        int pos = 2;\n\n        for (int k = 0; k < numAreas; k++)\n        {\n            MergedRegion region =\n                new MergedRegion(LittleEndian\n                    .getShort(data, pos + offset), LittleEndian\n                    .getShort(data, pos + 2 + offset), LittleEndian\n                    .getShort(data, pos + 4 + offset), LittleEndian\n                    .getShort(data, pos + 6 + offset));\n\n            pos += 8;\n            field_2_regions.add(region);\n        }\n    }\n\n    /**\n     * get the number of merged areas.  If this drops down to 0 you should just go\n     * ahead and delete the record.\n     * @return number of areas\n     */\n\n    public short getNumAreas()\n    {\n        if (field_2_regions == null) return 0;\n        return (short)field_2_regions.size();\n    }\n\n    /**\n     * set the number of merged areas.  You do not need to call this if you use addArea,\n     * it will be incremented automatically or decremented when an area is removed.  If\n     * you are setting this to 0 then you are a terrible person.  Just remove the record.\n     * (just kidding about you being a terrible person..hehe)\n     * @deprecated We now link the size to the actual array of merged regions\n     * @see #getNumAreas()\n     * @param numareas  number of areas\n     */\n\n    public void setNumAreas(short numareas)\n    {\n        \n    }\n\n    /**\n     * Add an area to consider a merged cell.  The index returned is only gauranteed to\n     * be correct provided you do not add ahead of or remove ahead of it  (in which case\n     * you should increment or decrement appropriately....in other words its an arrayList)\n     *\n     * @param rowfrom - the upper left hand corner's row\n     * @param colfrom - the upper left hand corner's col\n     * @param rowto - the lower right hand corner's row\n     * @param colto - the lower right hand corner's col\n     * @return new index of said area (don't depend on it if you add/remove)\n     */\n\n    public int addArea(int rowfrom, short colfrom, int rowto, short colto)\n    {\n        if (field_2_regions == null)\n        {\n            field_2_regions = new ArrayList(10);\n        }\n        MergedRegion region = new MergedRegion(rowfrom, rowto, colfrom,\n                                               colto);\n\n        field_2_regions.add(region);\n        return field_2_regions.size() - 1;\n    }\n\n    /**\n     * essentially unmerge the cells in the \"area\" stored at the passed in index\n     * @param area index\n     */\n\n    public void removeAreaAt(int area)\n    {\n        field_2_regions.remove(area);\n    }\n\n    /**\n     * return the MergedRegion at the given index.\n     *\n     * @return MergedRegion representing the area that is Merged (r1,c1 - r2,c2)\n     */\n\n    public MergedRegion getAreaAt(int index)\n    {\n        return ( MergedRegion ) field_2_regions.get(index);\n    }\n\n    public int getRecordSize()\n    {\n        int retValue;\n\n        retValue = 6 + (8 * field_2_regions.size());\n        return retValue;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        int recordsize = getRecordSize();\n        int pos        = 6;\n\n        LittleEndian.putShort(data, offset + 0, sid);\n        LittleEndian.putShort(data, offset + 2, ( short ) (recordsize - 4));\n        LittleEndian.putShort(data, offset + 4, getNumAreas());\n        for (int k = 0; k < getNumAreas(); k++)\n        {\n            MergedRegion region = getAreaAt(k);\n\n            LittleEndian.putShort(data, offset + pos, ( short ) region.row_from);\n            pos += 2;\n            LittleEndian.putShort(data, offset + pos, ( short ) region.row_to);\n            pos += 2;\n            LittleEndian.putShort(data, offset + pos, region.col_from);\n            pos += 2;\n            LittleEndian.putShort(data, offset + pos, region.col_to);\n            pos += 2;\n        }\n        return recordsize;\n    }\n\n    public String toString()\n    {\n        StringBuffer retval = new StringBuffer();\n\n        retval.append(\"[MERGEDCELLS]\").append(\"\\n\");\n        retval.append(\"     .sid        =\").append(sid).append(\"\\n\");\n        retval.append(\"     .numregions =\").append(getNumAreas())\n            .append(\"\\n\");\n        for (int k = 0; k < getNumAreas(); k++)\n        {\n            MergedRegion region = ( MergedRegion ) field_2_regions.get(k);\n\n            retval.append(\"     .rowfrom    =\").append(region.row_from)\n                .append(\"\\n\");\n            retval.append(\"     .colfrom    =\").append(region.col_from)\n                .append(\"\\n\");\n            retval.append(\"     .rowto      =\").append(region.row_to)\n                .append(\"\\n\");\n            retval.append(\"     .colto      =\").append(region.col_to)\n                .append(\"\\n\");\n        }\n        retval.append(\"[MERGEDCELLS]\").append(\"\\n\");\n        return retval.toString();\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A MERGEDCELLS RECORD!! \"\n                                            + id);\n        }\n    }\n\n    /**\n     * this is a low level representation of a MergedRegion of cells.  It is an\n     * inner class because we do not want it used without reference to this class.\n     *\n     */\n\n    public class MergedRegion\n    {\n\n        /**\n         * create a merged region all in one stroke.\n         */\n\n        public MergedRegion(int row_from, int row_to, short col_from,\n                            short col_to)\n        {\n            this.row_from = row_from;\n            this.row_to   = row_to;\n            this.col_from = col_from;\n            this.col_to   = col_to;\n        }\n\n        /**\n         * upper lefthand corner row\n         */\n\n        public int row_from;\n\n        /**\n         * lower right hand corner row\n         */\n\n        public int row_to;\n\n        /**\n         * upper right hand corner col\n         */\n\n        public short col_from;\n\n        /**\n         * lower right hand corner col\n         */\n\n        public short col_to;\n    }\n\n    public Object clone() {\n        MergeCellsRecord rec = new MergeCellsRecord();        \n        rec.field_2_regions = new ArrayList();\n        Iterator iterator = field_2_regions.iterator();\n        while (iterator.hasNext()) {\n           MergedRegion oldRegion = (MergedRegion)iterator.next();\n           rec.addArea(oldRegion.row_from, oldRegion.col_from, oldRegion.row_to, oldRegion.col_to);\n        }\n        \n        return rec;", "functions": [{"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        short numAreas    = LittleEndian.getShort(data, 0 + offset);\n        field_2_regions   = new ArrayList(numAreas + 10);\n        int pos = 2;\n\n        for (int k = 0; k < numAreas; k++)\n        {\n            MergedRegion region =\n                new MergedRegion(LittleEndian\n                    .getShort(data, pos + offset), LittleEndian\n                    .getShort(data, pos + 2 + offset), LittleEndian\n                    .getShort(data, pos + 4 + offset), LittleEndian\n                    .getShort(data, pos + 6 + offset));\n\n            pos += 8;\n            field_2_regions.add(region);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [1, 9], [2, 10], [8, 11], [3, 12], [1, 13], [1, 14], [1, 15], [11, 16], [12, 17], [14, 18], [9, 19], [16, 20], [17, 21], [19, 22], [19, 23], [19, 24], [19, 25], [22, 26], [23, 27], [24, 28], [25, 29], [26, 30], [27, 31], [28, 32], [30, 33], [31, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 1], [10, 2], [11, 8], [12, 3], [13, 1], [14, 1], [15, 1], [16, 11], [17, 12], [18, 14], [19, 9], [20, 16], [21, 17], [22, 19], [23, 19], [24, 19], [25, 19], [26, 22], [27, 23], [28, 24], [29, 25], [30, 26], [31, 27], [32, 28], [33, 30], [34, 31], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getNumAreas", "code": "    public short getNumAreas()\n    {\n        if (field_2_regions == null) return 0;\n        return (short)field_2_regions.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 2], [4, 2], [5, 1], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setNumAreas", "code": "    public void setNumAreas(short numareas)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addArea", "code": "    public int addArea(int rowfrom, short colfrom, int rowto, short colto)\n    {\n        if (field_2_regions == null)\n        {\n            field_2_regions = new ArrayList(10);\n        }\n        MergedRegion region = new MergedRegion(rowfrom, rowto, colfrom,\n                                               colto);\n\n        field_2_regions.add(region);\n        return field_2_regions.size() - 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [3, 10], [8, 11], [8, 12], [2, 13], [10, 14], [3, 15], [15, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 3], [11, 8], [12, 8], [13, 2], [14, 10], [15, 3], [16, 15], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "removeAreaAt", "code": "    public void removeAreaAt(int area)\n    {\n        field_2_regions.remove(area);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAreaAt", "code": "    public MergedRegion getAreaAt(int index)\n    {\n        return ( MergedRegion ) field_2_regions.get(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        int retValue;\n\n        retValue = 6 + (8 * field_2_regions.size());\n        return retValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        int recordsize = getRecordSize();\n        int pos        = 6;\n\n        LittleEndian.putShort(data, offset + 0, sid);\n        LittleEndian.putShort(data, offset + 2, ( short ) (recordsize - 4));\n        LittleEndian.putShort(data, offset + 4, getNumAreas());\n        for (int k = 0; k < getNumAreas(); k++)\n        {\n            MergedRegion region = getAreaAt(k);\n\n            LittleEndian.putShort(data, offset + pos, ( short ) region.row_from);\n            pos += 2;\n            LittleEndian.putShort(data, offset + pos, ( short ) region.row_to);\n            pos += 2;\n            LittleEndian.putShort(data, offset + pos, region.col_from);\n            pos += 2;\n            LittleEndian.putShort(data, offset + pos, region.col_to);\n            pos += 2;\n        }\n        return recordsize;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [2, 11], [7, 12], [8, 13], [8, 14], [9, 15], [10, 16], [3, 17], [4, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [14, 28], [9, 29], [15, 30], [16, 31], [19, 32], [20, 33], [21, 34], [22, 35], [23, 36], [24, 37], [25, 38], [26, 39], [11, 40], [29, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 2], [12, 7], [13, 8], [14, 8], [15, 9], [16, 10], [17, 3], [18, 4], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 14], [29, 9], [30, 15], [31, 16], [32, 19], [33, 20], [34, 21], [35, 22], [36, 23], [37, 24], [38, 25], [39, 26], [40, 11], [41, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer retval = new StringBuffer();\n\n        retval.append(\"[MERGEDCELLS]\").append(\"\\n\");\n        retval.append(\"     .sid        =\").append(sid).append(\"\\n\");\n        retval.append(\"     .numregions =\").append(getNumAreas())\n            .append(\"\\n\");\n        for (int k = 0; k < getNumAreas(); k++)\n        {\n            MergedRegion region = ( MergedRegion ) field_2_regions.get(k);\n\n            retval.append(\"     .rowfrom    =\").append(region.row_from)\n                .append(\"\\n\");\n            retval.append(\"     .colfrom    =\").append(region.col_from)\n                .append(\"\\n\");\n            retval.append(\"     .rowto      =\").append(region.row_to)\n                .append(\"\\n\");\n            retval.append(\"     .colto      =\").append(region.col_to)\n                .append(\"\\n\");\n        }\n        retval.append(\"[MERGEDCELLS]\").append(\"\\n\");\n        return retval.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [0, 8], [0, 9], [5, 10], [5, 11], [2, 12], [6, 13], [7, 14], [7, 15], [7, 16], [8, 17], [8, 18], [8, 19], [9, 20], [9, 21], [3, 22], [11, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [15, 29], [16, 30], [18, 31], [21, 32], [24, 33], [24, 34], [24, 35], [25, 36], [25, 37], [25, 38], [26, 39], [26, 40], [26, 41], [27, 42], [27, 43], [27, 44], [34, 45], [37, 46], [40, 47], [43, 48], [12, 49], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 0], [9, 0], [10, 5], [11, 5], [12, 2], [13, 6], [14, 7], [15, 7], [16, 7], [17, 8], [18, 8], [19, 8], [20, 9], [21, 9], [22, 3], [23, 11], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 15], [30, 16], [31, 18], [32, 21], [33, 24], [34, 24], [35, 24], [36, 25], [37, 25], [38, 25], [39, 26], [40, 26], [41, 26], [42, 27], [43, 27], [44, 27], [45, 34], [46, 37], [47, 40], [48, 43], [49, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A MERGEDCELLS RECORD!! \"\n                                            + id);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "clone", "code": "    public Object clone() {\n        MergeCellsRecord rec = new MergeCellsRecord();        \n        rec.field_2_regions = new ArrayList();\n        Iterator iterator = field_2_regions.iterator();\n        while (iterator.hasNext()) {\n           MergedRegion oldRegion = (MergedRegion)iterator.next();\n           rec.addArea(oldRegion.row_from, oldRegion.col_from, oldRegion.row_to, oldRegion.col_to);\n        }\n        \n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [2, 7], [3, 8], [6, 9], [4, 10], [2, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 2], [8, 3], [9, 6], [10, 4], [11, 2], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "MergeCellsRecord", "code": "    public MergeCellsRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "MergeCellsRecord", "code": "    public MergeCellsRecord(short sid, short size, byte [] data)\n    {\n        super(sid, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "MergeCellsRecord", "code": "    public MergeCellsRecord(short sid, short size, byte [] data, int offset)\n    {\n        super(sid, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.6-7437", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/Fallback.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Fallback", "code": "final class Fallback extends Instruction {\n\n    private boolean _active = false;\n\n    /**\n     * This element never produces any data on the stack\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_active) {\n\t    return(typeCheckContents(stable));\n\t}\n\telse {\n\t    return Type.Void;\n\t}\n    }\n\n    /**\n     * Activate this fallback element\n     */\n    public void activate() {\n\t_active = true;\n    }\n\n    public String toString() {\n\treturn(\"fallback\");\n    }\n\n    /**\n     * Parse contents only if this fallback element is put in place of\n     * some unsupported element or non-XSLTC extension element\n     */\n    public void parseContents(Parser parser) {\n\tif (_active) parseChildren(parser);\n    }\n\n    /**\n     * Translate contents only if this fallback element is put in place of\n     * some unsupported element or non-XSLTC extension element\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_active) translateContents(classGen, methodGen);", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_active) {\n\t    return(typeCheckContents(stable));\n\t}\n\telse {\n\t    return Type.Void;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "activate", "code": "    public void activate() {\n\t_active = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn(\"fallback\");", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tif (_active) parseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_active) translateContents(classGen, methodGen);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "camel-1.4-2404", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/jms/requestor/PersistentReplyToFutureHandler.java", "language": "java", "name": "org.apache.camel.component.jms.requestor.PersistentReplyToFutureHandler", "code": "public class PersistentReplyToFutureHandler extends FutureHandler {\n\n    private static final transient Log LOG = LogFactory.getLog(PersistentReplyToFutureHandler.class);\n    protected PersistentReplyToRequestor requestor;\n    protected DeferredMessageSentCallback callback;\n    protected String correlationID;\n\n    public PersistentReplyToFutureHandler(PersistentReplyToRequestor requestor,\n                                          String correlationID) {\n        super();\n        this.requestor = requestor;\n        this.correlationID = correlationID;\n    }\n\n    public PersistentReplyToFutureHandler(PersistentReplyToRequestor requestor,\n                                          DeferredMessageSentCallback callback) {\n        super();\n        this.requestor = requestor;\n        this.callback = callback;\n    }\n\n    @Override\n    public Message get() throws InterruptedException, ExecutionException {\n        Message result = null;\n        try {\n            updateSelector();\n            result = super.get();\n        } finally {\n            revertSelector();\n        }\n        return result;\n    }\n\n    @Override\n    public Message get(long timeout, TimeUnit unit) throws InterruptedException,\n                                                           ExecutionException,\n                                                           TimeoutException {\n        Message result = null;\n        try {\n            updateSelector();\n            result = super.get(timeout, unit);\n        } finally {\n            revertSelector();\n        }\n        return result;\n    }\n\n    protected void updateSelector() throws ExecutionException {\n        try {\n            MessageSelectorComposer composer = (MessageSelectorComposer)requestor.getListenerContainer();\n            composer.addCorrelationID((correlationID != null) ? correlationID : callback.getMessage().getJMSMessageID());\n        } catch (Exception e) {\n            throw new ExecutionException(e);\n        }\n    }\n\n    protected void revertSelector() throws ExecutionException {\n        try {\n            MessageSelectorComposer composer = (MessageSelectorComposer)requestor.getListenerContainer();\n            composer.removeCorrelationID((correlationID != null) ? correlationID : callback.getMessage().getJMSMessageID());\n        } catch (Exception e) {\n            throw new ExecutionException(e);", "functions": [{"function_name": "get", "code": "    @Override\n    public Message get() throws InterruptedException, ExecutionException {\n        Message result = null;\n        try {\n            updateSelector();\n            result = super.get();\n        } finally {\n            revertSelector();\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "get", "code": "    @Override\n    public Message get(long timeout, TimeUnit unit) throws InterruptedException,\n                                                           ExecutionException,\n                                                           TimeoutException {\n        Message result = null;\n        try {\n            updateSelector();\n            result = super.get(timeout, unit);\n        } finally {\n            revertSelector();\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [3, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "updateSelector", "code": "    protected void updateSelector() throws ExecutionException {\n        try {\n            MessageSelectorComposer composer = (MessageSelectorComposer)requestor.getListenerContainer();\n            composer.addCorrelationID((correlationID != null) ? correlationID : callback.getMessage().getJMSMessageID());\n        } catch (Exception e) {\n            throw new ExecutionException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [4, 6], [5, 7], [7, 8], [7, 9], [3, 10], [8, 11], [9, 12], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 4], [7, 5], [8, 7], [9, 7], [10, 3], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "revertSelector", "code": "    protected void revertSelector() throws ExecutionException {\n        try {\n            MessageSelectorComposer composer = (MessageSelectorComposer)requestor.getListenerContainer();\n            composer.removeCorrelationID((correlationID != null) ? correlationID : callback.getMessage().getJMSMessageID());\n        } catch (Exception e) {\n            throw new ExecutionException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [4, 6], [5, 7], [7, 8], [7, 9], [3, 10], [8, 11], [9, 12], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 4], [7, 5], [8, 7], [9, 7], [10, 3], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "PersistentReplyToFutureHandler", "code": "    public PersistentReplyToFutureHandler(PersistentReplyToRequestor requestor,\n                                          String correlationID) {\n        super();\n        this.requestor = requestor;\n        this.correlationID = correlationID;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "PersistentReplyToFutureHandler", "code": "    public PersistentReplyToFutureHandler(PersistentReplyToRequestor requestor,\n                                          DeferredMessageSentCallback callback) {\n        super();\n        this.requestor = requestor;\n        this.callback = callback;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.5-6832", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/functions/FuncConcat.java", "language": "java", "name": "org.apache.xpath.functions.FuncConcat", "code": "public class FuncConcat extends FunctionMultiArgs\n{\n\n  /**\n   * Execute the function.  The function must return\n   * a valid object.\n   * @param xctxt The current execution context.\n   * @return A valid XObject.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    StringBuffer sb = new StringBuffer();\n\n    sb.append(m_arg0.execute(xctxt).str());\n    sb.append(m_arg1.execute(xctxt).str());\n\n    if (null != m_arg2)\n      sb.append(m_arg2.execute(xctxt).str());\n\n    if (null != m_args)\n    {\n      for (int i = 0; i < m_args.length; i++)\n      {\n        sb.append(m_args[i].execute(xctxt).str());\n      }\n    }\n\n    return new XString(sb.toString());\n  }\n\n  /**\n   * Check that the number of arguments passed to this function is correct.\n   *\n   *\n   * @param argNum The number of arguments that is being passed to the function.\n   *\n   * @throws WrongNumberArgsException\n   */\n  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum < 2)\n      reportWrongNumberArgs();\n  }\n\n  /**\n   * Constructs and throws a WrongNumberArgException with the appropriate\n   * message for this function object.\n   *\n   * @throws WrongNumberArgsException\n   */\n  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n      throw new WrongNumberArgsException(XSLMessages.createXPATHMessage(\"gtone\", null));", "functions": [{"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    StringBuffer sb = new StringBuffer();\n\n    sb.append(m_arg0.execute(xctxt).str());\n    sb.append(m_arg1.execute(xctxt).str());\n\n    if (null != m_arg2)\n      sb.append(m_arg2.execute(xctxt).str());\n\n    if (null != m_args)\n    {\n      for (int i = 0; i < m_args.length; i++)\n      {\n        sb.append(m_args[i].execute(xctxt).str());\n      }\n    }\n\n    return new XString(sb.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [0, 9], [0, 10], [6, 11], [2, 12], [7, 13], [3, 14], [8, 15], [9, 16], [10, 17], [4, 18], [12, 19], [14, 20], [16, 21], [17, 22], [20, 23], [12, 24], [12, 25], [24, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 0], [10, 0], [11, 6], [12, 2], [13, 7], [14, 3], [15, 8], [16, 9], [17, 10], [18, 4], [19, 12], [20, 14], [21, 16], [22, 17], [23, 20], [24, 12], [25, 12], [26, 24], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "checkNumberArgs", "code": "  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum < 2)\n      reportWrongNumberArgs();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "reportWrongNumberArgs", "code": "  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n      throw new WrongNumberArgsException(XSLMessages.createXPATHMessage(\"gtone\", null));", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "jedit-4.1-4051", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/ViewRegisters.java", "language": "java", "name": "org.gjt.sp.jedit.gui.ViewRegisters", "code": "public class ViewRegisters extends EnhancedDialog\n{\n\tpublic ViewRegisters(View view)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"view-registers.title\"),true);\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.setBorder(new EmptyBorder(0,12,0,0));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"view-registers.register\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,3,0));\n\t\tpanel.add(BorderLayout.NORTH,label);\n\n\t\tDefaultListModel registerModel = new DefaultListModel();\n\t\tregisterList = new JList(registerModel);\n\t\tregisterList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tregisterList.setCellRenderer(new Renderer());\n\n\t\tRegisters.Register[] registers = Registers.getRegisters();\n\n\t\tint index = 0;\n\t\tfor(int i = 0; i < registers.length; i++)\n\t\t{\n\t\t\tRegisters.Register reg = registers[i];\n\t\t\tif(reg == null)\n\t\t\t\tcontinue;\n\n\t\t\tString value = reg.toString();\n\t\t\tif(value == null || value.length() == 0)\n\t\t\t\tcontinue;\n\n\t\t\tregisterModel.addElement(new Character((char)i));\n\t\t}\n\n\t\tif(registerModel.getSize() == 0)\n\t\t\tregisterModel.addElement(jEdit.getProperty(\"view-registers.none\"));\n\n\t\tpanel.add(BorderLayout.CENTER,new JScrollPane(registerList));\n\n\t\tcontent.add(BorderLayout.WEST,panel);\n\n\t\tpanel = new JPanel(new BorderLayout());\n\t\tpanel.setBorder(new EmptyBorder(0,12,0,0));\n\n\t\tlabel = new JLabel(jEdit.getProperty(\"view-registers.contents\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,3,0));\n\t\tpanel.add(BorderLayout.NORTH,label);\n\n\t\tcontentTextArea = new JTextArea(10,80);\n\t\tcontentTextArea.setEditable(false);\n\t\tpanel.add(BorderLayout.CENTER,new JScrollPane(contentTextArea));\n\t\tcontent.add(BorderLayout.CENTER,panel);\n\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,0,0,0));\n\t\tclose = new JButton(jEdit.getProperty(\"common.close\"));\n\t\tclose.addActionListener(new ActionHandler());\n\t\tpanel.add(Box.createGlue());\n\t\tpanel.add(close);\n\t\tpanel.add(Box.createGlue());\n\t\tgetRootPane().setDefaultButton(close);\n\t\tcontent.add(BorderLayout.SOUTH,panel);\n\n\t\tregisterList.addListSelectionListener(new ListHandler());\n\t\tregisterList.setSelectedIndex(index);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tshow();\n\t}\n\n\t// EnhancedDialog implementation\n\tpublic void ok()\n\t{\n\t\tdispose();\n\t}\n\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t}\n\t// end EnhancedDialog implementation\n\n\t// private members\n\tprivate JList registerList;\n\tprivate JTextArea contentTextArea;\n\tprivate JButton close;\n\n\tclass Renderer extends DefaultListCellRenderer\n\t{\n\t\tpublic Component getListCellRendererComponent(\n\t\t\tJList list, Object value, int index,\n\t\t\tboolean isSelected, boolean cellHasFocus)\n\t\t{\n\t\t\tsuper.getListCellRendererComponent(list,value,\n\t\t\t\tindex,isSelected,cellHasFocus);\n\n\t\t\tif(value instanceof Character)\n\t\t\t{\n\t\t\t\tchar name = ((Character)value).charValue();\n\n\t\t\t\tString label;\n\n\t\t\t\tif(name == '\\n')\n\t\t\t\t\tlabel = \"\\n\";\n\t\t\t\telse if(name == '\\t')\n\t\t\t\t\tlabel = \"\\t\";\n\t\t\t\telse if(name == '$')\n\t\t\t\t\tlabel = jEdit.getProperty(\"view-registers.clipboard\");\n\t\t\t\telse if(name == '%')\n\t\t\t\t\tlabel = jEdit.getProperty(\"view-registers.selection\");\n\t\t\t\telse\n\t\t\t\t\tlabel = String.valueOf((char)name);\n\n\t\t\t\tsetText(label);\n\t\t\t}\n\n\t\t\treturn this;\n\t\t}\n\t}\n\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == close)\n\t\t\t\tcancel();\n\t\t}\n\t}\n\n\tclass ListHandler implements ListSelectionListener\n\t{\n\t\tpublic void valueChanged(ListSelectionEvent evt)\n\t\t{\n\t\t\tObject value = registerList.getSelectedValue();\n\t\t\tif(!(value instanceof Character))\n\t\t\t\treturn;\n\n\t\t\tchar name = ((Character)value).charValue();\n\n\t\t\tRegisters.Register reg = Registers.getRegister(name);\n\n\t\t\tif(reg == null)\n\t\t\t\treturn;\n\n\t\t\tcontentTextArea.setText(reg.toString());\n\t\t\tcontentTextArea.setCaretPosition(0);", "functions": [{"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ViewRegisters", "code": "\tpublic ViewRegisters(View view)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"view-registers.title\"),true);\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.setBorder(new EmptyBorder(0,12,0,0));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"view-registers.register\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,3,0));\n\t\tpanel.add(BorderLayout.NORTH,label);\n\n\t\tDefaultListModel registerModel = new DefaultListModel();\n\t\tregisterList = new JList(registerModel);\n\t\tregisterList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tregisterList.setCellRenderer(new Renderer());\n\n\t\tRegisters.Register[] registers = Registers.getRegisters();\n\n\t\tint index = 0;\n\t\tfor(int i = 0; i < registers.length; i++)\n\t\t{\n\t\t\tRegisters.Register reg = registers[i];\n\t\t\tif(reg == null)\n\t\t\t\tcontinue;\n\n\t\t\tString value = reg.toString();\n\t\t\tif(value == null || value.length() == 0)\n\t\t\t\tcontinue;\n\n\t\t\tregisterModel.addElement(new Character((char)i));\n\t\t}\n\n\t\tif(registerModel.getSize() == 0)\n\t\t\tregisterModel.addElement(jEdit.getProperty(\"view-registers.none\"));\n\n\t\tpanel.add(BorderLayout.CENTER,new JScrollPane(registerList));\n\n\t\tcontent.add(BorderLayout.WEST,panel);\n\n\t\tpanel = new JPanel(new BorderLayout());\n\t\tpanel.setBorder(new EmptyBorder(0,12,0,0));\n\n\t\tlabel = new JLabel(jEdit.getProperty(\"view-registers.contents\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,3,0));\n\t\tpanel.add(BorderLayout.NORTH,label);\n\n\t\tcontentTextArea = new JTextArea(10,80);\n\t\tcontentTextArea.setEditable(false);\n\t\tpanel.add(BorderLayout.CENTER,new JScrollPane(contentTextArea));\n\t\tcontent.add(BorderLayout.CENTER,panel);\n\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,0,0,0));\n\t\tclose = new JButton(jEdit.getProperty(\"common.close\"));\n\t\tclose.addActionListener(new ActionHandler());\n\t\tpanel.add(Box.createGlue());\n\t\tpanel.add(close);\n\t\tpanel.add(Box.createGlue());\n\t\tgetRootPane().setDefaultButton(close);\n\t\tcontent.add(BorderLayout.SOUTH,panel);\n\n\t\tregisterList.addListSelectionListener(new ListHandler());\n\t\tregisterList.setSelectedIndex(index);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [1, 36], [2, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [14, 48], [16, 49], [17, 50], [19, 51], [20, 52], [21, 53], [22, 54], [23, 55], [24, 56], [26, 57], [27, 58], [28, 59], [30, 60], [31, 61], [32, 62], [33, 63], [35, 64], [1, 65], [36, 66], [36, 67], [2, 68], [2, 69], [2, 70], [2, 71], [3, 72], [4, 73], [38, 74], [40, 75], [5, 76], [42, 77], [6, 78], [43, 79], [7, 80], [45, 81], [8, 82], [47, 83], [53, 84], [54, 85], [54, 86], [54, 87], [54, 88], [59, 89], [59, 90], [60, 91], [60, 92], [60, 93], [60, 94], [61, 95], [62, 96], [62, 97], [62, 98], [62, 99], [63, 100], [65, 101], [2, 102], [68, 103], [68, 104], [70, 105], [70, 106], [2, 107], [77, 108], [77, 109], [77, 110], [77, 111], [78, 112], [79, 113], [79, 114], [79, 115], [79, 116], [80, 117], [81, 118], [81, 119], [81, 120], [81, 121], [82, 122], [84, 123], [95, 124], [101, 125], [102, 126], [104, 127], [104, 128], [69, 129], [106, 130], [112, 131], [127, 132], [127, 133], [128, 134], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 1], [37, 2], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 14], [49, 16], [50, 17], [51, 19], [52, 20], [53, 21], [54, 22], [55, 23], [56, 24], [57, 26], [58, 27], [59, 28], [60, 30], [61, 31], [62, 32], [63, 33], [64, 35], [65, 1], [66, 36], [67, 36], [68, 2], [69, 2], [70, 2], [71, 2], [72, 3], [73, 4], [74, 38], [75, 40], [76, 5], [77, 42], [78, 6], [79, 43], [80, 7], [81, 45], [82, 8], [83, 47], [84, 53], [85, 54], [86, 54], [87, 54], [88, 54], [89, 59], [90, 59], [91, 60], [92, 60], [93, 60], [94, 60], [95, 61], [96, 62], [97, 62], [98, 62], [99, 62], [100, 63], [101, 65], [102, 2], [103, 68], [104, 68], [105, 70], [106, 70], [107, 2], [108, 77], [109, 77], [110, 77], [111, 77], [112, 78], [113, 79], [114, 79], [115, 79], [116, 79], [117, 80], [118, 81], [119, 81], [120, 81], [121, 81], [122, 82], [123, 84], [124, 95], [125, 101], [126, 102], [127, 104], [128, 104], [129, 69], [130, 106], [131, 112], [132, 127], [133, 127], [134, 128], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134]]}], "label": 0}
{"sample_id": "poi-1.5-5337", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/DefaultColWidthRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DefaultColWidthRecord", "code": "public class DefaultColWidthRecord\n    extends Record\n{\n    public final static short sid = 0x55;\n    private short             field_1_col_width;\n\n    public DefaultColWidthRecord()\n    {\n    }\n\n    /**\n     * Constructs a DefaultColumnWidth record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x55 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public DefaultColWidthRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a DefaultColumnWidth record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x55 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public DefaultColWidthRecord(short id, short size, byte [] data,\n                                 int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A DefaultColWidth RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_col_width = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set the default column width\n     * @param height defaultwidth for columns\n     */\n\n    public void setColWidth(short height)\n    {\n        field_1_col_width = height;\n    }\n\n    /**\n     * get the default column width\n     * @return defaultwidth for columns\n     */\n\n    public short getColWidth()\n    {\n        return field_1_col_width;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DEFAULTCOLWIDTH]\\n\");\n        buffer.append(\"    .colwidth      = \")\n            .append(Integer.toHexString(getColWidth())).append(\"\\n\");\n        buffer.append(\"[/DEFAULTCOLWIDTH]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, getColWidth());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A DefaultColWidth RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_col_width = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setColWidth", "code": "    public void setColWidth(short height)\n    {\n        field_1_col_width = height;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColWidth", "code": "    public short getColWidth()\n    {\n        return field_1_col_width;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DEFAULTCOLWIDTH]\\n\");\n        buffer.append(\"    .colwidth      = \")\n            .append(Integer.toHexString(getColWidth())).append(\"\\n\");\n        buffer.append(\"[/DEFAULTCOLWIDTH]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, getColWidth());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [6, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 6], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DefaultColWidthRecord", "code": "    public DefaultColWidthRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DefaultColWidthRecord", "code": "    public DefaultColWidthRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DefaultColWidthRecord", "code": "    public DefaultColWidthRecord(short id, short size, byte [] data,\n                                 int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.0-1590", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/processor/SendProcessor.java", "language": "java", "name": "org.apache.camel.processor.SendProcessor", "code": "public class SendProcessor extends ServiceSupport implements Processor, Service {\n    private Endpoint destination;\n    private Producer producer;\n\n    public SendProcessor(Endpoint destination) {\n        this.destination = destination;\n    }\n\n    protected void doStop() throws Exception {\n        if (producer != null) {\n            try {\n                producer.stop();\n            }\n            finally {\n                producer = null;\n            }\n        }\n    }\n\n    protected void doStart() throws Exception {\n        this.producer = destination.createProducer();\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        if (producer == null) {\n            throw new IllegalStateException(\"No producer, this processor has not been started!\");\n        }\n        producer.process(exchange);\n    }\n\n    public Endpoint getDestination() {\n        return destination;\n    }\n\n    @Override\n    public String toString() {\n        return \"sendTo(\" + destination + \")\";", "functions": [{"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        if (producer != null) {\n            try {\n                producer.stop();\n            }\n            finally {\n                producer = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [3, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        this.producer = destination.createProducer();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        if (producer == null) {\n            throw new IllegalStateException(\"No producer, this processor has not been started!\");\n        }\n        producer.process(exchange);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDestination", "code": "    public Endpoint getDestination() {\n        return destination;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"sendTo(\" + destination + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "SendProcessor", "code": "    public SendProcessor(Endpoint destination) {\n        this.destination = destination;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.6-542", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/rmic/DefaultRmicAdapter.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter", "code": "public abstract class DefaultRmicAdapter implements RmicAdapter {\n\n    private Rmic attributes;\n    private FileNameMapper mapper;\n    private static final Random rand = new Random();\n\n    public DefaultRmicAdapter() {\n    }\n\n    public void setRmic(Rmic attributes) {\n        this.attributes = attributes;\n        mapper = new RmicFileNameMapper();\n    }\n\n    public Rmic getRmic() {\n        return attributes;\n    }\n\n    protected String getStubClassSuffix() {\n        return \"_Stub\";\n    }\n\n    protected String getSkelClassSuffix() {\n        return \"_Skel\";\n    }\n\n    protected String getTieClassSuffix() {\n        return \"_Tie\";\n    }\n\n    /**\n     * This implementation returns a mapper that may return up to two\n     * file names.\n     *\n     * <ul>\n     *   <li>for JRMP it will return *_getStubClassSuffix (and\n     *   *_getSkelClassSuffix if JDK 1.1 is used)</li>\n     *\n     *   <li>for IDL it will return a random name, causing &lt;rmic&gt; to\n     *     always recompile.</li>\n     *\n     *   <li>for IIOP it will return _*_getStubClassSuffix for\n     *   interfaces and _*_getStubClassSuffix for non-interfaces (and\n     *   determine the interface and create _*_Stub from that).</li>\n     * </ul>\n     */\n    public FileNameMapper getMapper() {\n        return mapper;\n    }\n\n    /**\n     * The CLASSPATH this rmic process will use.\n     */\n    public Path getClasspath() {\n        return getCompileClasspath();\n    }\n\n    /**\n     * Builds the compilation classpath.\n     */\n    protected Path getCompileClasspath() {\n        Path classpath = new Path(attributes.getProject());\n        classpath.setLocation(attributes.getBase());\n\n\n        Path cp = attributes.getClasspath();\n        if (cp == null) {\n            cp = new Path(attributes.getProject());\n        }\n        if (attributes.getIncludeantruntime()) {\n            classpath.addExisting(cp.concatSystemClasspath(\"last\"));\n        } else {\n            classpath.addExisting(cp.concatSystemClasspath(\"ignore\"));\n        }\n\n        if (attributes.getIncludejavaruntime()) {\n            classpath.addJavaRuntime();\n        }\n        return classpath;\n    }\n\n    /**\n     * setup rmic argument for rmic.\n     */\n    protected Commandline setupRmicCommand() {\n        return setupRmicCommand(null);\n    }\n\n    /**\n     * setup rmic argument for rmic.\n     *\n     * @param options additional parameters needed by a specific\n     *                implementation.\n     */\n    protected Commandline setupRmicCommand(String[] options) {\n        Commandline cmd = new Commandline();\n\n        if (options != null) {\n            for (int i = 0; i < options.length; i++) {\n                cmd.createArgument().setValue(options[i]);\n            }\n        }\n\n        Path classpath = getCompileClasspath();\n\n        cmd.createArgument().setValue(\"-d\");\n        cmd.createArgument().setFile(attributes.getBase());\n\n        if (attributes.getExtdirs() != null) {\n            if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n                /*\n                 * XXX - This doesn't mix very well with build.systemclasspath,\n                 */\n                classpath.addExtdirs(attributes.getExtdirs());\n            } else {\n                cmd.createArgument().setValue(\"-extdirs\");\n                cmd.createArgument().setPath(attributes.getExtdirs());\n            }\n        }\n\n        cmd.createArgument().setValue(\"-classpath\");\n        cmd.createArgument().setPath(classpath);\n\n        String stubVersion = attributes.getStubVersion();\n        if (null != stubVersion) {\n            if (\"1.1\".equals(stubVersion)) {\n                cmd.createArgument().setValue(\"-v1.1\");\n            } else if (\"1.2\".equals(stubVersion)) {\n                cmd.createArgument().setValue(\"-v1.2\");\n            } else {\n                cmd.createArgument().setValue(\"-vcompat\");\n            }\n        }\n\n        if (null != attributes.getSourceBase()) {\n            cmd.createArgument().setValue(\"-keepgenerated\");\n        }\n\n        if (attributes.getIiop()) {\n            attributes.log(\"IIOP has been turned on.\", Project.MSG_INFO);\n            cmd.createArgument().setValue(\"-iiop\");\n            if (attributes.getIiopopts() != null) {\n                attributes.log(\"IIOP Options: \" + attributes.getIiopopts(),\n                               Project.MSG_INFO);\n                cmd.createArgument().setValue(attributes.getIiopopts());\n            }\n        }\n\n        if (attributes.getIdl())  {\n            cmd.createArgument().setValue(\"-idl\");\n            attributes.log(\"IDL has been turned on.\", Project.MSG_INFO);\n            if (attributes.getIdlopts() != null) {\n                cmd.createArgument().setValue(attributes.getIdlopts());\n                attributes.log(\"IDL Options: \" + attributes.getIdlopts(),\n                               Project.MSG_INFO);\n            }\n        }\n\n        if (attributes.getDebug()) {\n            cmd.createArgument().setValue(\"-g\");\n        }\n\n        cmd.addArguments(attributes.getCurrentCompilerArgs());\n\n        logAndAddFilesToCompile(cmd);\n        return cmd;\n     }\n\n    /**\n     * Logs the compilation parameters, adds the files to compile and logs the\n     * &qout;niceSourceList&quot;\n     */\n    protected void logAndAddFilesToCompile(Commandline cmd) {\n        Vector compileList = attributes.getCompileList();\n\n        attributes.log(\"Compilation \" + cmd.describeArguments(),\n                       Project.MSG_VERBOSE);\n\n        StringBuffer niceSourceList = new StringBuffer(\"File\");\n        if (compileList.size() != 1) {\n            niceSourceList.append(\"s\");\n        }\n        niceSourceList.append(\" to be compiled:\");\n\n        for (int i = 0; i < compileList.size(); i++) {\n            String arg = (String) compileList.elementAt(i);\n            cmd.createArgument().setValue(arg);\n            niceSourceList.append(\"    \" + arg);\n        }\n\n        attributes.log(niceSourceList.toString(), Project.MSG_VERBOSE);\n    }\n\n    /**\n     * Mapper that may return up to two file names.\n     *\n     * <ul>\n     *   <li>for JRMP it will return *_getStubClassSuffix (and\n     *   *_getSkelClassSuffix if JDK 1.1 is used)</li>\n     *\n     *   <li>for IDL it will return a random name, causing <rmic> to\n     *     always recompile.</li>\n     *\n     *   <li>for IIOP it will return _*_getStubClassSuffix for\n     *   interfaces and _*_getStubClassSuffix for non-interfaces (and\n     *   determine the interface and create _*_Stub from that).</li>\n     * </ul>\n     */\n    private class RmicFileNameMapper implements FileNameMapper {\n\n        RmicFileNameMapper() {\n        }\n\n        /**\n         * Empty implementation.\n         */\n        public void setFrom(String s) {\n        }\n        /**\n         * Empty implementation.\n         */\n        public void setTo(String s) {\n        }\n\n        public String[] mapFileName(String name) {\n            if (name == null\n                || !name.endsWith(\".class\")\n                || name.endsWith(getStubClassSuffix() + \".class\")\n                || name.endsWith(getSkelClassSuffix() + \".class\")\n                || name.endsWith(getTieClassSuffix() + \".class\")) {\n                return null;\n            }\n\n            String base = name.substring(0, name.length() - 6);\n\n            String classname = base.replace(File.separatorChar, '.');\n            if (attributes.getVerify()\n                && !attributes.isValidRmiRemote(classname)) {\n                return null;\n            }\n\n            /*\n             * fallback in case we have trouble loading the class or\n             * don't know how to handle it (there is no easy way to\n             * know what IDL mode would generate.\n             *\n             * This is supposed to make Ant always recompile the\n             * class, as a file of that name should not exist.\n             */\n            String[] target = new String[] {name + \".tmp.\" + rand.nextLong()};\n\n            if (!attributes.getIiop() && !attributes.getIdl()) {\n                if (\"1.2\".equals(attributes.getStubVersion())) {\n                    target = new String[] {\n                        base + getStubClassSuffix() + \".class\"\n                    };\n                } else {\n                    target = new String[] {\n                        base + getStubClassSuffix() + \".class\",\n                        base + getSkelClassSuffix() + \".class\",\n                    };\n                }\n            } else if (!attributes.getIdl()) {\n                int lastSlash = base.lastIndexOf(File.separatorChar);\n\n                String dirname = \"\";\n                /*\n                 * I know, this is not necessary, but I prefer it explicit (SB)\n                 */\n                int index = -1;\n                if (lastSlash == -1) {\n                    index = 0;\n                } else {\n                    index = lastSlash + 1;\n                    dirname = base.substring(0, index);\n                }\n\n                String filename = base.substring(index);\n\n                try {\n                    Class c = attributes.getLoader().loadClass(classname);\n\n                    if (c.isInterface()) {\n                        target = new String[] {\n                            dirname + \"_\" + filename + getStubClassSuffix()\n                            + \".class\"\n                        };\n                    } else {\n                        /*\n                         * stub is derived from implementation,\n                         * tie from interface name.\n                         */\n                        Class interf = attributes.getRemoteInterface(c);\n                        String iName = interf.getName();\n                        String iDir = \"\";\n                        int iIndex = -1;\n                        int lastDot = iName.lastIndexOf(\".\");\n                        if (lastDot == -1) {\n                            iIndex = 0;\n                        } else {\n                            iIndex = lastDot + 1;\n                            iDir = iName.substring(0, iIndex);\n                            iDir = iDir.replace('.', File.separatorChar);\n                        }\n\n                        target = new String[] {\n                            dirname + \"_\" + filename + getTieClassSuffix()\n                            + \".class\",\n                            iDir + \"_\" + iName.substring(iIndex)\n                            + getStubClassSuffix() + \".class\"\n                        };\n                    }\n                } catch (ClassNotFoundException e) {\n                    attributes.log(\"Unable to verify class \" + classname\n                                   + \". It could not be found.\",\n                                   Project.MSG_WARN);\n                } catch (NoClassDefFoundError e) {\n                    attributes.log(\"Unable to verify class \" + classname\n                                   + \". It is not defined.\", Project.MSG_WARN);\n                } catch (Throwable t) {\n                    attributes.log(\"Unable to verify class \" + classname\n                                   + \". Loading caused Exception: \"\n                                   + t.getMessage(), Project.MSG_WARN);\n                }\n            }\n            return target;", "functions": [{"function_name": "setRmic", "code": "    public void setRmic(Rmic attributes) {\n        this.attributes = attributes;\n        mapper = new RmicFileNameMapper();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRmic", "code": "    public Rmic getRmic() {\n        return attributes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStubClassSuffix", "code": "    protected String getStubClassSuffix() {\n        return \"_Stub\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSkelClassSuffix", "code": "    protected String getSkelClassSuffix() {\n        return \"_Skel\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTieClassSuffix", "code": "    protected String getTieClassSuffix() {\n        return \"_Tie\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMapper", "code": "    public FileNameMapper getMapper() {\n        return mapper;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getClasspath", "code": "    public Path getClasspath() {\n        return getCompileClasspath();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCompileClasspath", "code": "    protected Path getCompileClasspath() {\n        Path classpath = new Path(attributes.getProject());\n        classpath.setLocation(attributes.getBase());\n\n\n        Path cp = attributes.getClasspath();\n        if (cp == null) {\n            cp = new Path(attributes.getProject());\n        }\n        if (attributes.getIncludeantruntime()) {\n            classpath.addExisting(cp.concatSystemClasspath(\"last\"));\n        } else {\n            classpath.addExisting(cp.concatSystemClasspath(\"ignore\"));\n        }\n\n        if (attributes.getIncludejavaruntime()) {\n            classpath.addJavaRuntime();\n        }\n        return classpath;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [0, 10], [9, 11], [5, 12], [10, 13], [6, 14], [2, 15], [3, 16], [3, 17], [4, 18], [14, 19], [16, 20], [17, 21], [18, 22], [20, 23], [21, 24], [22, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 0], [11, 9], [12, 5], [13, 10], [14, 6], [15, 2], [16, 3], [17, 3], [18, 4], [19, 14], [20, 16], [21, 17], [22, 18], [23, 20], [24, 21], [25, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "setupRmicCommand", "code": "    protected Commandline setupRmicCommand() {\n        return setupRmicCommand(null);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setupRmicCommand", "code": "    protected Commandline setupRmicCommand(String[] options) {\n        Commandline cmd = new Commandline();\n\n        if (options != null) {\n            for (int i = 0; i < options.length; i++) {\n                cmd.createArgument().setValue(options[i]);\n            }\n        }\n\n        Path classpath = getCompileClasspath();\n\n        cmd.createArgument().setValue(\"-d\");\n        cmd.createArgument().setFile(attributes.getBase());\n\n        if (attributes.getExtdirs() != null) {\n            if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n                /*\n                 * XXX - This doesn't mix very well with build.systemclasspath,\n                 */\n                classpath.addExtdirs(attributes.getExtdirs());\n            } else {\n                cmd.createArgument().setValue(\"-extdirs\");\n                cmd.createArgument().setPath(attributes.getExtdirs());\n            }\n        }\n\n        cmd.createArgument().setValue(\"-classpath\");\n        cmd.createArgument().setPath(classpath);\n\n        String stubVersion = attributes.getStubVersion();\n        if (null != stubVersion) {\n            if (\"1.1\".equals(stubVersion)) {\n                cmd.createArgument().setValue(\"-v1.1\");\n            } else if (\"1.2\".equals(stubVersion)) {\n                cmd.createArgument().setValue(\"-v1.2\");\n            } else {\n                cmd.createArgument().setValue(\"-vcompat\");\n            }\n        }\n\n        if (null != attributes.getSourceBase()) {\n            cmd.createArgument().setValue(\"-keepgenerated\");\n        }\n\n        if (attributes.getIiop()) {\n            attributes.log(\"IIOP has been turned on.\", Project.MSG_INFO);\n            cmd.createArgument().setValue(\"-iiop\");\n            if (attributes.getIiopopts() != null) {\n                attributes.log(\"IIOP Options: \" + attributes.getIiopopts(),\n                               Project.MSG_INFO);\n                cmd.createArgument().setValue(attributes.getIiopopts());\n            }\n        }\n\n        if (attributes.getIdl())  {\n            cmd.createArgument().setValue(\"-idl\");\n            attributes.log(\"IDL has been turned on.\", Project.MSG_INFO);\n            if (attributes.getIdlopts() != null) {\n                cmd.createArgument().setValue(attributes.getIdlopts());\n                attributes.log(\"IDL Options: \" + attributes.getIdlopts(),\n                               Project.MSG_INFO);\n            }\n        }\n\n        if (attributes.getDebug()) {\n            cmd.createArgument().setValue(\"-g\");\n        }\n\n        cmd.addArguments(attributes.getCurrentCompilerArgs());\n\n        logAndAddFilesToCompile(cmd);\n        return cmd;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "IF", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [3, 16], [4, 17], [5, 18], [6, 19], [0, 20], [0, 21], [8, 22], [0, 23], [0, 24], [10, 25], [14, 26], [3, 27], [4, 28], [18, 29], [18, 30], [6, 31], [19, 32], [7, 33], [20, 34], [21, 35], [8, 36], [22, 37], [22, 38], [23, 39], [24, 40], [9, 41], [10, 42], [25, 43], [11, 44], [2, 45], [27, 46], [3, 47], [3, 48], [28, 49], [4, 50], [4, 51], [5, 52], [31, 53], [31, 54], [35, 55], [36, 56], [39, 57], [40, 58], [42, 59], [45, 60], [46, 61], [46, 62], [47, 63], [48, 64], [49, 65], [49, 66], [50, 67], [51, 68], [52, 69], [53, 70], [54, 71], [60, 72], [27, 73], [27, 74], [64, 75], [28, 76], [28, 77], [67, 78], [69, 79], [70, 80], [31, 81], [36, 82], [36, 83], [36, 84], [42, 85], [42, 86], [73, 87], [74, 88], [76, 89], [77, 90], [53, 91], [53, 92], [81, 93], [82, 94], [83, 95], [84, 96], [85, 97], [87, 98], [87, 99], [88, 100], [89, 101], [90, 102], [90, 103], [91, 104], [92, 105], [93, 106], [94, 107], [95, 108], [104, 109], [105, 110], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 3], [17, 4], [18, 5], [19, 6], [20, 0], [21, 0], [22, 8], [23, 0], [24, 0], [25, 10], [26, 14], [27, 3], [28, 4], [29, 18], [30, 18], [31, 6], [32, 19], [33, 7], [34, 20], [35, 21], [36, 8], [37, 22], [38, 22], [39, 23], [40, 24], [41, 9], [42, 10], [43, 25], [44, 11], [45, 2], [46, 27], [47, 3], [48, 3], [49, 28], [50, 4], [51, 4], [52, 5], [53, 31], [54, 31], [55, 35], [56, 36], [57, 39], [58, 40], [59, 42], [60, 45], [61, 46], [62, 46], [63, 47], [64, 48], [65, 49], [66, 49], [67, 50], [68, 51], [69, 52], [70, 53], [71, 54], [72, 60], [73, 27], [74, 27], [75, 64], [76, 28], [77, 28], [78, 67], [79, 69], [80, 70], [81, 31], [82, 36], [83, 36], [84, 36], [85, 42], [86, 42], [87, 73], [88, 74], [89, 76], [90, 77], [91, 53], [92, 53], [93, 81], [94, 82], [95, 83], [96, 84], [97, 85], [98, 87], [99, 87], [100, 88], [101, 89], [102, 90], [103, 90], [104, 91], [105, 92], [106, 93], [107, 94], [108, 95], [109, 104], [110, 105], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110]]}, {"function_name": "logAndAddFilesToCompile", "code": "    protected void logAndAddFilesToCompile(Commandline cmd) {\n        Vector compileList = attributes.getCompileList();\n\n        attributes.log(\"Compilation \" + cmd.describeArguments(),\n                       Project.MSG_VERBOSE);\n\n        StringBuffer niceSourceList = new StringBuffer(\"File\");\n        if (compileList.size() != 1) {\n            niceSourceList.append(\"s\");\n        }\n        niceSourceList.append(\" to be compiled:\");\n\n        for (int i = 0; i < compileList.size(); i++) {\n            String arg = (String) compileList.elementAt(i);\n            cmd.createArgument().setValue(arg);\n            niceSourceList.append(\"    \" + arg);\n        }\n\n        attributes.log(niceSourceList.toString(), Project.MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [0, 10], [6, 11], [1, 12], [7, 13], [8, 14], [9, 15], [9, 16], [3, 17], [10, 18], [4, 19], [1, 20], [1, 21], [1, 22], [2, 23], [17, 24], [18, 25], [18, 26], [20, 27], [21, 28], [23, 29], [27, 30], [12, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 0], [11, 6], [12, 1], [13, 7], [14, 8], [15, 9], [16, 9], [17, 3], [18, 10], [19, 4], [20, 1], [21, 1], [22, 1], [23, 2], [24, 17], [25, 18], [26, 18], [27, 20], [28, 21], [29, 23], [30, 27], [31, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "DefaultRmicAdapter", "code": "    public DefaultRmicAdapter() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.0-5375", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/util/POILogger.java", "language": "java", "name": "org.apache.poi.util.POILogger", "code": "public abstract class POILogger\n{\n\n    public static final int DEBUG = 1;\n    public static final int INFO  = 3;\n    public static final int WARN  = 5;\n    public static final int ERROR = 7;\n    public static final int FATAL = 9;\n\n    /**\n     * package scope so it cannot be instantiated outside of the util\n     * package. You need a POILogger? Go to the POILogFactory for one\n     *\n     * @param log the object that does the real work of logging\n     */\n    POILogger()\n    {}\n    \n    abstract public void initialize(final String cat);\n    \n    abstract public void log(final int level, final Object obj1);\n\n    /**\n     * Check if a logger is enabled to log at the specified level\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 The logger to check.\n     */\n    abstract public boolean check(final int level);\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first object to place in the message\n     * @param obj2 second object to place in the message\n     */\n\n   /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first object to place in the message\n     * @param obj2 second object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2)\n    {\n        if (check(level))\n        {\n            log(level, new StringBuffer(32).append(obj1).append(obj2));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3)\n    {\n        \n\n        if (check(level))\n        {\n            log(level,\n                    new StringBuffer(48).append(obj1).append(obj2)\n                        .append(obj3));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     * @param obj4 fourth Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4)\n    {\n        \n\n        if (check(level))\n        {\n            log(level,\n                    new StringBuffer(64).append(obj1).append(obj2)\n                        .append(obj3).append(obj4));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     * @param obj4 fourth Object to place in the message\n     * @param obj5 fifth Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5)\n    {\n        \n\n        if (check(level))\n        {\n            log(level,\n                    new StringBuffer(80).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     * @param obj4 fourth Object to place in the message\n     * @param obj5 fifth Object to place in the message\n     * @param obj6 sixth Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6)\n    {\n        \n\n        if (check(level))\n        {\n            log(level ,\n                    new StringBuffer(96).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     * @param obj4 fourth Object to place in the message\n     * @param obj5 fifth Object to place in the message\n     * @param obj6 sixth Object to place in the message\n     * @param obj7 seventh Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7)\n    {\n        \n\n        if (check(level))\n        {\n            log(level,\n                    new StringBuffer(112).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6)\n                        .append(obj7));\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third Object to place in the message\n     * @param obj4 fourth Object to place in the message\n     * @param obj5 fifth Object to place in the message\n     * @param obj6 sixth Object to place in the message\n     * @param obj7 seventh Object to place in the message\n     * @param obj8 eighth Object to place in the message\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7, final Object obj8)\n    {\n        \n\n        if (check(level))\n        {\n            log(level,\n                    new StringBuffer(128).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6)\n                        .append(obj7).append(obj8));\n        }\n    }\n\n    /**\n     * Log a message\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 The object to log.  This is converted to a string.\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1,\n                    final Throwable exception)\n    {\n        log(level , obj1, exception);\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(32).append(obj1).append(obj2),\n                    exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param exception An error message to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(48).append(obj1).append(obj2)\n                .append(obj3), exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param obj4 fourth object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4,\n                    final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(64).append(obj1).append(obj2)\n                .append(obj3).append(obj4), exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param obj4 fourth object to place in the message\n     * @param obj5 fifth object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(80).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5), exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param obj4 fourth object to place in the message\n     * @param obj5 fifth object to place in the message\n     * @param obj6 sixth object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level , new StringBuffer(96).append(obj1)\n                .append(obj2).append(obj3).append(obj4).append(obj5)\n                .append(obj6), exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param obj4 fourth object to place in the message\n     * @param obj5 fifth object to place in the message\n     * @param obj6 sixth object to place in the message\n     * @param obj7 seventh object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7,\n                    final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(112).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5).append(obj6)\n                .append(obj7), exception);\n        }\n    }\n\n    /**\n     * Log a message. Lazily appends Object parameters together.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param obj1 first Object to place in the message\n     * @param obj2 second Object to place in the message\n     * @param obj3 third object to place in the message\n     * @param obj4 fourth object to place in the message\n     * @param obj5 fifth object to place in the message\n     * @param obj6 sixth object to place in the message\n     * @param obj7 seventh object to place in the message\n     * @param obj8 eighth object to place in the message\n     * @param exception An exception to be logged\n     */\n\n    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7, final Object obj8,\n                    final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(128).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5).append(obj6)\n                .append(obj7).append(obj8), exception);\n        }\n    }\n\n    /**\n     * Logs a formated message. The message itself may contain %\n     * characters as place holders. This routine will attempt to match\n     * the placeholder by looking at the type of parameter passed to\n     * obj1.<p>\n     *\n     * If the parameter is an array, it traverses the array first and\n     * matches parameters sequentially against the array items.\n     * Otherwise the parameters after <code>message</code> are matched\n     * in order.<p>\n     *\n     * If the place holder matches against a number it is printed as a\n     * whole number. This can be overridden by specifying a precision\n     * in the form %n.m where n is the padding for the whole part and\n     * m is the number of decimal places to display. n can be excluded\n     * if desired. n and m may not be more than 9.<p>\n     *\n     * If the last parameter (after flattening) is a Throwable it is\n     * logged specially.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param message The message to log.\n     * @param obj1 The first object to match against.\n     */\n\n    public void logFormatted(final int level, final String message,\n                             final Object obj1)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1\n        });\n    }\n\n    /**\n     * Logs a formated message. The message itself may contain %\n     * characters as place holders. This routine will attempt to match\n     * the placeholder by looking at the type of parameter passed to\n     * obj1.<p>\n     *\n     * If the parameter is an array, it traverses the array first and\n     * matches parameters sequentially against the array items.\n     * Otherwise the parameters after <code>message</code> are matched\n     * in order.<p>\n     *\n     * If the place holder matches against a number it is printed as a\n     * whole number. This can be overridden by specifying a precision\n     * in the form %n.m where n is the padding for the whole part and\n     * m is the number of decimal places to display. n can be excluded\n     * if desired. n and m may not be more than 9.<p>\n     *\n     * If the last parameter (after flattening) is a Throwable it is\n     * logged specially.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param message The message to log.\n     * @param obj1 The first object to match against.\n     * @param obj2 The second object to match against.\n     */\n\n    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2\n        });\n    }\n\n    /**\n     * Logs a formated message. The message itself may contain %\n     * characters as place holders. This routine will attempt to match\n     * the placeholder by looking at the type of parameter passed to\n     * obj1.<p>\n     *\n     * If the parameter is an array, it traverses the array first and\n     * matches parameters sequentially against the array items.\n     * Otherwise the parameters after <code>message</code> are matched\n     * in order.<p>\n     *\n     * If the place holder matches against a number it is printed as a\n     * whole number. This can be overridden by specifying a precision\n     * in the form %n.m where n is the padding for the whole part and\n     * m is the number of decimal places to display. n can be excluded\n     * if desired. n and m may not be more than 9.<p>\n     *\n     * If the last parameter (after flattening) is a Throwable it is\n     * logged specially.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param message The message to log.\n     * @param obj1 The first object to match against.\n     * @param obj2 The second object to match against.\n     * @param obj3 The third object to match against.\n     */\n\n    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2,\n                             final Object obj3)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2, obj3\n        });\n    }\n\n    /**\n     * Logs a formated message. The message itself may contain %\n     * characters as place holders. This routine will attempt to match\n     * the placeholder by looking at the type of parameter passed to\n     * obj1.<p>\n     *\n     * If the parameter is an array, it traverses the array first and\n     * matches parameters sequentially against the array items.\n     * Otherwise the parameters after <code>message</code> are matched\n     * in order.<p>\n     *\n     * If the place holder matches against a number it is printed as a\n     * whole number. This can be overridden by specifying a precision\n     * in the form %n.m where n is the padding for the whole part and\n     * m is the number of decimal places to display. n can be excluded\n     * if desired. n and m may not be more than 9.<p>\n     *\n     * If the last parameter (after flattening) is a Throwable it is\n     * logged specially.\n     *\n     * @param level One of DEBUG, INFO, WARN, ERROR, FATAL\n     * @param message The message to log.\n     * @param obj1 The first object to match against.\n     * @param obj2 The second object to match against.\n     * @param obj3 The third object to match against.\n     * @param obj4 The forth object to match against.\n     */\n\n    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2,\n                             final Object obj3, final Object obj4)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2, obj3, obj4\n        });\n    }                             \n\n    private void commonLogFormatted(final int level, final String message,\n                                    final Object [] unflatParams)\n    {\n        \n\n        if (check(level))\n        {\n            Object[] params = flattenArrays(unflatParams);\n\n            if (params[ params.length - 1 ] instanceof Throwable)\n            {\n                log(level, StringUtil.format(message, params),\n                    ( Throwable ) params[ params.length - 1 ]);\n            }\n            else\n            {\n                log(level, StringUtil.format(message, params));\n            }\n        }\n    }\n\n    /**\n     * Flattens any contained objects. Only tranverses one level deep.\n     */\n\n    private Object [] flattenArrays(final Object [] objects)\n    {\n        List results = new ArrayList();\n\n        for (int i = 0; i < objects.length; i++)\n        {\n            results.addAll(objectToObjectArray(objects[ i ]));\n        }\n        return ( Object [] ) results.toArray(new Object[ results.size() ]);\n    }\n\n    private List objectToObjectArray(Object object)\n    {\n        List results = new ArrayList();\n\n        if (object instanceof byte [])\n        {\n            byte[] array = ( byte [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Byte(array[ j ]));\n            }\n        }\n        if (object instanceof char [])\n        {\n            char[] array = ( char [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Character(array[ j ]));\n            }\n        }\n        else if (object instanceof short [])\n        {\n            short[] array = ( short [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Short(array[ j ]));\n            }\n        }\n        else if (object instanceof int [])\n        {\n            int[] array = ( int [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Integer(array[ j ]));\n            }\n        }\n        else if (object instanceof long [])\n        {\n            long[] array = ( long [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Long(array[ j ]));\n            }\n        }\n        else if (object instanceof float [])\n        {\n            float[] array = ( float [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Float(array[ j ]));\n            }\n        }\n        else if (object instanceof double [])\n        {\n            double[] array = ( double [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Double(array[ j ]));\n            }\n        }\n        else if (object instanceof Object [])\n        {\n            Object[] array = ( Object [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(array[ j ]);\n            }\n        }\n        else\n        {\n            results.add(object);\n        }\n        return results;", "functions": [{"function_name": "initialize", "code": "    abstract public void initialize(final String cat);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "log", "code": "    abstract public void log(final int level, final Object obj1);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "check", "code": "    abstract public boolean check(final int level);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2)\n    {\n        if (check(level))\n        {\n            log(level, new StringBuffer(32).append(obj1).append(obj2));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [7, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [8, 7], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3)\n    {\n        \n\n        if (check(level))\n        {\n            log(level,\n                    new StringBuffer(48).append(obj1).append(obj2)\n                        .append(obj3));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [7, 8], [8, 9], [8, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 7], [9, 8], [10, 8], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4)\n    {\n        \n\n        if (check(level))\n        {\n            log(level,\n                    new StringBuffer(64).append(obj1).append(obj2)\n                        .append(obj3).append(obj4));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [8, 9], [9, 10], [9, 11], [9, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 8], [10, 9], [11, 9], [12, 9], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5)\n    {\n        \n\n        if (check(level))\n        {\n            log(level,\n                    new StringBuffer(80).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [9, 10], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [10, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 9], [11, 10], [12, 10], [13, 10], [14, 10], [15, 10], [16, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6)\n    {\n        \n\n        if (check(level))\n        {\n            log(level ,\n                    new StringBuffer(96).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [10, 11], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 10], [12, 11], [13, 11], [14, 11], [15, 11], [16, 11], [17, 11], [18, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7)\n    {\n        \n\n        if (check(level))\n        {\n            log(level,\n                    new StringBuffer(112).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6)\n                        .append(obj7));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [11, 12], [12, 13], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [12, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 11], [13, 12], [14, 12], [15, 12], [16, 12], [17, 12], [18, 12], [19, 12], [20, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7, final Object obj8)\n    {\n        \n\n        if (check(level))\n        {\n            log(level,\n                    new StringBuffer(128).append(obj1).append(obj2)\n                        .append(obj3).append(obj4).append(obj5).append(obj6)\n                        .append(obj7).append(obj8));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [12, 13], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [13, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 12], [14, 13], [15, 13], [16, 13], [17, 13], [18, 13], [19, 13], [20, 13], [21, 13], [22, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1,\n                    final Throwable exception)\n    {\n        log(level , obj1, exception);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(32).append(obj1).append(obj2),\n                    exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [7, 8], [8, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 7], [9, 8], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(48).append(obj1).append(obj2)\n                .append(obj3), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [8, 9], [9, 10], [9, 11], [9, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 8], [10, 9], [11, 9], [12, 9], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4,\n                    final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(64).append(obj1).append(obj2)\n                .append(obj3).append(obj4), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [9, 10], [10, 11], [10, 12], [10, 13], [10, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 9], [11, 10], [12, 10], [13, 10], [14, 10], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(80).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [10, 11], [11, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 10], [12, 11], [13, 11], [14, 11], [15, 11], [16, 11], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level , new StringBuffer(96).append(obj1)\n                .append(obj2).append(obj3).append(obj4).append(obj5)\n                .append(obj6), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [11, 12], [12, 13], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 11], [13, 12], [14, 12], [15, 12], [16, 12], [17, 12], [18, 12], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7,\n                    final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(112).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5).append(obj6)\n                .append(obj7), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [12, 13], [13, 14], [13, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 12], [14, 13], [15, 13], [16, 13], [17, 13], [18, 13], [19, 13], [20, 13], [21, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "log", "code": "    public void log(final int level, final Object obj1, final Object obj2,\n                    final Object obj3, final Object obj4, final Object obj5,\n                    final Object obj6, final Object obj7, final Object obj8,\n                    final Throwable exception)\n    {\n        \n\n        if (check(level))\n        {\n            log(level, new StringBuffer(128).append(obj1).append(obj2)\n                .append(obj3).append(obj4).append(obj5).append(obj6)\n                .append(obj7).append(obj8), exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [13, 14], [14, 15], [14, 16], [14, 17], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [14, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 13], [15, 14], [16, 14], [17, 14], [18, 14], [19, 14], [20, 14], [21, 14], [22, 14], [23, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "logFormatted", "code": "    public void logFormatted(final int level, final String message,\n                             final Object obj1)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "logFormatted", "code": "    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "logFormatted", "code": "    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2,\n                             final Object obj3)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2, obj3", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "logFormatted", "code": "    public void logFormatted(final int level, final String message,\n                             final Object obj1, final Object obj2,\n                             final Object obj3, final Object obj4)\n    {\n        commonLogFormatted(level, message, new Object[]\n        {\n            obj1, obj2, obj3, obj4", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "commonLogFormatted", "code": "    private void commonLogFormatted(final int level, final String message,\n                                    final Object [] unflatParams)\n    {\n        \n\n        if (check(level))\n        {\n            Object[] params = flattenArrays(unflatParams);\n\n            if (params[ params.length - 1 ] instanceof Throwable)\n            {\n                log(level, StringUtil.format(message, params),\n                    ( Throwable ) params[ params.length - 1 ]);\n            }\n            else\n            {\n                log(level, StringUtil.format(message, params));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [7, 9], [6, 10], [6, 11], [10, 12], [11, 13], [8, 14], [14, 15], [11, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 7], [10, 6], [11, 6], [12, 10], [13, 11], [14, 8], [15, 14], [16, 11], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "flattenArrays", "code": "    private Object [] flattenArrays(final Object [] objects)\n    {\n        List results = new ArrayList();\n\n        for (int i = 0; i < objects.length; i++)\n        {\n            results.addAll(objectToObjectArray(objects[ i ]));\n        }\n        return ( Object [] ) results.toArray(new Object[ results.size() ]);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [3, 7], [2, 8], [2, 9], [6, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 3], [8, 2], [9, 2], [10, 6], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "objectToObjectArray", "code": "    private List objectToObjectArray(Object object)\n    {\n        List results = new ArrayList();\n\n        if (object instanceof byte [])\n        {\n            byte[] array = ( byte [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Byte(array[ j ]));\n            }\n        }\n        if (object instanceof char [])\n        {\n            char[] array = ( char [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Character(array[ j ]));\n            }\n        }\n        else if (object instanceof short [])\n        {\n            short[] array = ( short [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Short(array[ j ]));\n            }\n        }\n        else if (object instanceof int [])\n        {\n            int[] array = ( int [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Integer(array[ j ]));\n            }\n        }\n        else if (object instanceof long [])\n        {\n            long[] array = ( long [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Long(array[ j ]));\n            }\n        }\n        else if (object instanceof float [])\n        {\n            float[] array = ( float [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Float(array[ j ]));\n            }\n        }\n        else if (object instanceof double [])\n        {\n            double[] array = ( double [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(new Double(array[ j ]));\n            }\n        }\n        else if (object instanceof Object [])\n        {\n            Object[] array = ( Object [] ) object;\n\n            for (int j = 0; j < array.length; j++)\n            {\n                results.add(array[ j ]);\n            }\n        }\n        else\n        {\n            results.add(object);\n        }\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [6, 9], [6, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [9, 16], [9, 17], [6, 18], [6, 19], [11, 20], [13, 21], [16, 22], [16, 23], [9, 24], [9, 25], [18, 26], [22, 27], [22, 28], [16, 29], [16, 30], [24, 31], [11, 32], [11, 33], [13, 34], [13, 35], [27, 36], [27, 37], [22, 38], [22, 39], [29, 40], [18, 41], [18, 42], [32, 43], [34, 44], [36, 45], [27, 46], [27, 47], [38, 48], [24, 49], [24, 50], [41, 51], [36, 52], [36, 53], [46, 54], [29, 55], [29, 56], [49, 57], [36, 58], [52, 59], [38, 60], [38, 61], [55, 62], [46, 63], [46, 64], [60, 65], [52, 66], [52, 67], [63, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 6], [10, 6], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 9], [17, 9], [18, 6], [19, 6], [20, 11], [21, 13], [22, 16], [23, 16], [24, 9], [25, 9], [26, 18], [27, 22], [28, 22], [29, 16], [30, 16], [31, 24], [32, 11], [33, 11], [34, 13], [35, 13], [36, 27], [37, 27], [38, 22], [39, 22], [40, 29], [41, 18], [42, 18], [43, 32], [44, 34], [45, 36], [46, 27], [47, 27], [48, 38], [49, 24], [50, 24], [51, 41], [52, 36], [53, 36], [54, 46], [55, 29], [56, 29], [57, 49], [58, 36], [59, 52], [60, 38], [61, 38], [62, 55], [63, 46], [64, 46], [65, 60], [66, 52], [67, 52], [68, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "POILogger", "code": "    POILogger()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.4-2251", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/converter/jaxb/HeaderType.java", "language": "java", "name": "org.apache.camel.converter.jaxb.HeaderType", "code": "@XmlType(name = \"headerType\")\n@XmlAccessorType(value = XmlAccessType.FIELD)\npublic abstract class HeaderType {\n    @XmlAttribute\n    private String name;\n\n    public HeaderType() {\n    }\n\n    protected HeaderType(String name) {\n        this.name = name;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public abstract Object getValue();\n\n    public abstract void setValue(Object value);", "functions": [{"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValue", "code": "    public abstract Object getValue();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setValue", "code": "    public abstract void setValue(Object value);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HeaderType", "code": "    public HeaderType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "HeaderType", "code": "    protected HeaderType(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.0-3855", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/textarea/ExtensionManager.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.ExtensionManager", "code": "class ExtensionManager\n{\n\t//{{{ addExtension() method\n\tvoid addExtension(int layer, TextAreaExtension ext)\n\t{\n\t\tEntry entry = new Entry(layer,ext);\n\n\t\tfor(int i = 0; i < extensions.size(); i++)\n\t\t{\n\t\t\tint _layer = ((Entry)extensions.get(i)).layer;\n\t\t\tif(layer < _layer)\n\t\t\t{\n\t\t\t\textensions.add(i,entry);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\textensions.add(entry);\n\t} //}}}\n\n\t//{{{ removeExtension() method\n\tvoid removeExtension(TextAreaExtension ext)\n\t{\n\t\tfor(int i = 0; i < extensions.size(); i++)\n\t\t{\n\t\t\tEntry entry = (Entry)extensions.get(i);\n\t\t\tif(entry.ext == ext)\n\t\t\t{\n\t\t\t\textensions.remove(i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ paintValidLine() method\n\tvoid paintValidLine(Graphics2D gfx, int screenLine,\n\t\tint physicalLine, int start, int end, int y)\n\t{\n\t\tfor(int i = 0; i < extensions.size(); i++)\n\t\t{\n\t\t\tTextAreaExtension ext = ((Entry)extensions.get(i)).ext;\n\t\t\ttry\n\t\t\t{\n\t\t\t\text.paintValidLine(gfx,screenLine,\n\t\t\t\t\tphysicalLine,start,end,y);\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,t);\n\n\t\t\t\t// remove it so editor can continue\n\t\t\t\t// functioning\n\t\t\t\textensions.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ paintInvalidLine() method\n\tvoid paintInvalidLine(Graphics2D gfx, int screenLine,\n\t\tint y)\n\t{\n\t\tfor(int i = 0; i < extensions.size(); i++)\n\t\t{\n\t\t\tTextAreaExtension ext = ((Entry)extensions.get(i)).ext;\n\t\t\ttry\n\t\t\t{\n\t\t\t\text.paintInvalidLine(gfx,screenLine,y);\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,t);\n\n\t\t\t\t// remove it so editor can continue\n\t\t\t\t// functioning\n\t\t\t\textensions.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ getToolTipText() method\n\tString getToolTipText(int x, int y)\n\t{\n\t\tfor(int i = 0; i < extensions.size(); i++)\n\t\t{\n\t\t\tTextAreaExtension ext = ((Entry)extensions.get(i)).ext;\n\t\t\tString toolTip = ext.getToolTipText(x,y);\n\t\t\tif(toolTip != null)\n\t\t\t\treturn toolTip;\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate ArrayList extensions = new ArrayList();\n\t//}}}\n\n\t//{{{ Entry class\n\tstatic class Entry\n\t{\n\t\tint layer;\n\t\tTextAreaExtension ext;\n\n\t\tEntry(int layer, TextAreaExtension ext)\n\t\t{\n\t\t\tthis.layer = layer;\n\t\t\tthis.ext = ext;", "functions": [{"function_name": "addExtension", "code": "\tvoid addExtension(int layer, TextAreaExtension ext)\n\t{\n\t\tEntry entry = new Entry(layer,ext);\n\n\t\tfor(int i = 0; i < extensions.size(); i++)\n\t\t{\n\t\t\tint _layer = ((Entry)extensions.get(i)).layer;\n\t\t\tif(layer < _layer)\n\t\t\t{\n\t\t\t\textensions.add(i,entry);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\textensions.add(entry);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [2, 10], [7, 11], [1, 12], [7, 13], [7, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 2], [11, 7], [12, 1], [13, 7], [14, 7], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "removeExtension", "code": "\tvoid removeExtension(TextAreaExtension ext)\n\t{\n\t\tfor(int i = 0; i < extensions.size(); i++)\n\t\t{\n\t\t\tEntry entry = (Entry)extensions.get(i);\n\t\t\tif(entry.ext == ext)\n\t\t\t{\n\t\t\t\textensions.remove(i);\n\t\t\t\treturn;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [1, 8], [4, 9], [4, 10], [5, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 1], [9, 4], [10, 4], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "paintValidLine", "code": "\tvoid paintValidLine(Graphics2D gfx, int screenLine,\n\t\tint physicalLine, int start, int end, int y)\n\t{\n\t\tfor(int i = 0; i < extensions.size(); i++)\n\t\t{\n\t\t\tTextAreaExtension ext = ((Entry)extensions.get(i)).ext;\n\t\t\ttry\n\t\t\t{\n\t\t\t\text.paintValidLine(gfx,screenLine,\n\t\t\t\t\tphysicalLine,start,end,y);\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,t);\n\n\t\t\t\t// remove it so editor can continue\n\t\t\t\t// functioning\n\t\t\t\textensions.remove(i);\n\t\t\t\ti--;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [8, 11], [9, 12], [1, 13], [9, 14], [12, 15], [12, 16], [10, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 8], [12, 9], [13, 1], [14, 9], [15, 12], [16, 12], [17, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "paintInvalidLine", "code": "\tvoid paintInvalidLine(Graphics2D gfx, int screenLine,\n\t\tint y)\n\t{\n\t\tfor(int i = 0; i < extensions.size(); i++)\n\t\t{\n\t\t\tTextAreaExtension ext = ((Entry)extensions.get(i)).ext;\n\t\t\ttry\n\t\t\t{\n\t\t\t\text.paintInvalidLine(gfx,screenLine,y);\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,t);\n\n\t\t\t\t// remove it so editor can continue\n\t\t\t\t// functioning\n\t\t\t\textensions.remove(i);\n\t\t\t\ti--;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [1, 10], [6, 11], [9, 12], [9, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 1], [11, 6], [12, 9], [13, 9], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getToolTipText", "code": "\tString getToolTipText(int x, int y)\n\t{\n\t\tfor(int i = 0; i < extensions.size(); i++)\n\t\t{\n\t\t\tTextAreaExtension ext = ((Entry)extensions.get(i)).ext;\n\t\t\tString toolTip = ext.getToolTipText(x,y);\n\t\t\tif(toolTip != null)\n\t\t\t\treturn toolTip;\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [7, 11], [7, 12], [2, 13], [12, 14], [8, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 7], [12, 7], [13, 2], [14, 12], [15, 8], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "poi-2.5-5946", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/poifs/storage/HeaderBlockReader.java", "language": "java", "name": "org.apache.poi.poifs.storage.HeaderBlockReader", "code": "public class HeaderBlockReader\n    implements HeaderBlockConstants\n{\n\n    private IntegerField _bat_count;\n\n    private IntegerField _property_start;\n\n    private IntegerField _sbat_start;\n\n    private IntegerField _xbat_start;\n    private IntegerField _xbat_count;\n    private byte[]       _data;\n\n    /**\n     * create a new HeaderBlockReader from an InputStream\n     *\n     * @param stream the source InputStream\n     *\n     * @exception IOException on errors or bad data\n     */\n\n    public HeaderBlockReader(final InputStream stream)\n        throws IOException\n    {\n        _data = new byte[ POIFSConstants.BIG_BLOCK_SIZE ];\n        int byte_count = IOUtils.readFully(stream, _data);\n\n        if (byte_count != POIFSConstants.BIG_BLOCK_SIZE)\n        {\n            String type = \" byte\" + ((byte_count == 1) ? (\"\")\n                                                       : (\"s\"));\n\n            throw new IOException(\"Unable to read entire header; \"\n                                  + byte_count + type + \" read; expected \"\n                                  + POIFSConstants.BIG_BLOCK_SIZE + \" bytes\");\n        }\n\n        LongField signature = new LongField(_signature_offset, _data);\n\n        if (signature.get() != _signature)\n        {\n            throw new IOException(\"Invalid header signature; read \"\n                                  + signature.get() + \", expected \"\n                                  + _signature);\n        }\n        _bat_count      = new IntegerField(_bat_count_offset, _data);\n        _property_start = new IntegerField(_property_start_offset, _data);\n        _sbat_start     = new IntegerField(_sbat_start_offset, _data);\n        _xbat_start     = new IntegerField(_xbat_start_offset, _data);\n        _xbat_count     = new IntegerField(_xbat_count_offset, _data);\n    }\n\n    /**\n     * get start of Property Table\n     *\n     * @return the index of the first block of the Property Table\n     */\n\n    public int getPropertyStart()\n    {\n        return _property_start.get();\n    }\n\n    /**\n     * @return start of small block allocation table\n     */\n\n    public int getSBATStart()\n    {\n        return _sbat_start.get();\n    }\n\n    /**\n     * @return number of BAT blocks\n     */\n\n    public int getBATCount()\n    {\n        return _bat_count.get();\n    }\n\n    /**\n     * @return BAT array\n     */\n\n    public int [] getBATArray()\n    {\n        int[] result = new int[ _max_bats_in_header ];\n        int   offset = _bat_array_offset;\n\n        for (int j = 0; j < _max_bats_in_header; j++)\n        {\n            result[ j ] = LittleEndian.getInt(_data, offset);\n            offset      += LittleEndianConsts.INT_SIZE;\n        }\n        return result;\n    }\n\n    /**\n     * @return XBAT count\n     */\n\n    public int getXBATCount()\n    {\n        return _xbat_count.get();\n    }\n\n    /**\n     * @return XBAT index\n     */\n\n    public int getXBATIndex()\n    {\n        return _xbat_start.get();", "functions": [{"function_name": "getPropertyStart", "code": "    public int getPropertyStart()\n    {\n        return _property_start.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSBATStart", "code": "    public int getSBATStart()\n    {\n        return _sbat_start.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBATCount", "code": "    public int getBATCount()\n    {\n        return _bat_count.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBATArray", "code": "    public int [] getBATArray()\n    {\n        int[] result = new int[ _max_bats_in_header ];\n        int   offset = _bat_array_offset;\n\n        for (int j = 0; j < _max_bats_in_header; j++)\n        {\n            result[ j ] = LittleEndian.getInt(_data, offset);\n            offset      += LittleEndianConsts.INT_SIZE;\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getXBATCount", "code": "    public int getXBATCount()\n    {\n        return _xbat_count.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXBATIndex", "code": "    public int getXBATIndex()\n    {\n        return _xbat_start.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HeaderBlockReader", "code": "    public HeaderBlockReader(final InputStream stream)\n        throws IOException\n    {\n        _data = new byte[ POIFSConstants.BIG_BLOCK_SIZE ];\n        int byte_count = IOUtils.readFully(stream, _data);\n\n        if (byte_count != POIFSConstants.BIG_BLOCK_SIZE)\n        {\n            String type = \" byte\" + ((byte_count == 1) ? (\"\")\n                                                       : (\"s\"));\n\n            throw new IOException(\"Unable to read entire header; \"\n                                  + byte_count + type + \" read; expected \"\n                                  + POIFSConstants.BIG_BLOCK_SIZE + \" bytes\");\n        }\n\n        LongField signature = new LongField(_signature_offset, _data);\n\n        if (signature.get() != _signature)\n        {\n            throw new IOException(\"Invalid header signature; read \"\n                                  + signature.get() + \", expected \"\n                                  + _signature);\n        }\n        _bat_count      = new IntegerField(_bat_count_offset, _data);\n        _property_start = new IntegerField(_property_start_offset, _data);\n        _sbat_start     = new IntegerField(_sbat_start_offset, _data);\n        _xbat_start     = new IntegerField(_xbat_start_offset, _data);\n        _xbat_count     = new IntegerField(_xbat_count_offset, _data);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [3, 12], [0, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [1, 19], [11, 20], [2, 21], [3, 22], [3, 23], [4, 24], [19, 25], [22, 26], [25, 27], [26, 28], [23, 29], [27, 30], [28, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [32, 37], [33, 38], [33, 39], [33, 40], [36, 41], [36, 42], [37, 43], [37, 44], [40, 45], [44, 46], [46, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 3], [13, 0], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 1], [20, 11], [21, 2], [22, 3], [23, 3], [24, 4], [25, 19], [26, 22], [27, 25], [28, 26], [29, 23], [30, 27], [31, 28], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 32], [38, 33], [39, 33], [40, 33], [41, 36], [42, 36], [43, 37], [44, 37], [45, 40], [46, 44], [47, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}], "label": 1}
{"sample_id": "xalan-2.5-7324", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/AlternativePattern.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.AlternativePattern", "code": "final class AlternativePattern extends Pattern {\n    private final Pattern _left;\n    private final Pattern _right;\n\t\t\n    /**\n     * Construct an alternative pattern. The method <code>setParent</code>\n     * should not be called in this case.\n     */\n    public AlternativePattern(Pattern left, Pattern right) {\n\t_left = left;\n\t_right = right;\n    }\n\t\t\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_left.setParser(parser);\n\t_right.setParser(parser);\n    }\n    \n    public Pattern getLeft() {\n\treturn _left;\n    }\n\n    public Pattern getRight() {\n\treturn _right;\n    }\n\n    /**\n     * The type of an '|' is not really defined, hence null is returned.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_left.typeCheck(stable);\n\t_right.typeCheck(stable);\n\treturn null;\n    }\n\n    public double getPriority() {\n\tdouble left = _left.getPriority();\n\tdouble right = _right.getPriority();\n\t\n\tif (left < right)\n\t    return(left);\n\telse\n\t    return(right);\n    }\n\n    public String toString() {\n\treturn \"alternative(\" + _left + \", \" + _right + ')';\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\t_left.translate(classGen, methodGen);\n\tfinal InstructionHandle gotot = il.append(new GOTO(null));\n\til.append(methodGen.loadContextNode());\n\t_right.translate(classGen, methodGen);\n\n\t_left._trueList.backPatch(gotot);\n\t_left._falseList.backPatch(gotot.getNext());\n\n\t_trueList.append(_right._trueList.add(gotot));\n\t_falseList.append(_right._falseList);", "functions": [{"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_left.setParser(parser);\n\t_right.setParser(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLeft", "code": "    public Pattern getLeft() {\n\treturn _left;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRight", "code": "    public Pattern getRight() {\n\treturn _right;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_left.typeCheck(stable);\n\t_right.typeCheck(stable);\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getPriority", "code": "    public double getPriority() {\n\tdouble left = _left.getPriority();\n\tdouble right = _right.getPriority();\n\t\n\tif (left < right)\n\t    return(left);\n\telse\n\t    return(right);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"alternative(\" + _left + \", \" + _right + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\t_left.translate(classGen, methodGen);\n\tfinal InstructionHandle gotot = il.append(new GOTO(null));\n\til.append(methodGen.loadContextNode());\n\t_right.translate(classGen, methodGen);\n\n\t_left._trueList.backPatch(gotot);\n\t_left._falseList.backPatch(gotot.getNext());\n\n\t_trueList.append(_right._trueList.add(gotot));\n\t_falseList.append(_right._falseList);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [6, 12], [7, 13], [10, 14], [1, 15], [2, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 6], [13, 7], [14, 10], [15, 1], [16, 2], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "AlternativePattern", "code": "    public AlternativePattern(Pattern left, Pattern right) {\n\t_left = left;\n\t_right = right;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.3-4523", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/help/HelpViewerInterface.java", "language": "java", "name": "org.gjt.sp.jedit.help.HelpViewerInterface", "code": "public interface HelpViewerInterface \n{\n\t\n\t/**\n\t * \n\t * @param url\n\t * @param addToHistory \n\t * @param scrollPos desired vertical scrollbar position after we go there\n\t */\n\tpublic void gotoURL(String url, boolean addToHistory, int scrollPos);\n\t\n\tpublic String getBaseURL();\n\t\n\tpublic void addPropertyChangeListener(PropertyChangeListener l);\n\t\n\t/**\n\t * Called when the helpviewer is closed\n\t */\n\tpublic void dispose();\n\t/**\n\t * @return the root pane of this help viewer\n\t */\n\tpublic Component getComponent();\n\tpublic String getShortURL();\n\t\n\tpublic void queueTOCReload();\n\tpublic void setTitle(String newTitle);", "functions": [{"function_name": "gotoURL", "code": "\tpublic void gotoURL(String url, boolean addToHistory, int scrollPos);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getBaseURL", "code": "\tpublic String getBaseURL();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "addPropertyChangeListener", "code": "\tpublic void addPropertyChangeListener(PropertyChangeListener l);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dispose", "code": "\tpublic void dispose();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getComponent", "code": "\tpublic Component getComponent();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getShortURL", "code": "\tpublic String getShortURL();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "queueTOCReload", "code": "\tpublic void queueTOCReload();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setTitle", "code": "\tpublic void setTitle(String newTitle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.4-2368", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/ProcessorRef.java", "language": "java", "name": "org.apache.camel.model.ProcessorRef", "code": "@XmlRootElement(name = \"process\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class ProcessorRef extends OutputType<ProcessorType> {\n    @XmlAttribute(required = true)\n    private String ref;\n    @XmlTransient\n    private Processor processor;\n\n    public ProcessorRef() {\n    }\n\n    public ProcessorRef(Processor processor) {\n        this.processor = processor;\n    }\n\n    @Override\n    public String getShortName() {\n        return \"processor\";\n    }\n\n    @Override\n    public String toString() {\n        return \"Processor[\"\n                + ((ref != null) ? \"ref:  \" + ref : processor)\n                + \"]\";\n    }\n\n    @Override\n    public String getLabel() {\n        if (ref != null) {\n            return \"ref:  \" + ref;\n        } else if (processor != null) {\n            return processor.toString();\n        } else {\n            return \"\";\n        }\n    }\n\n    public String getRef() {\n        return ref;\n    }\n\n    public void setRef(String ref) {\n        this.ref = ref;\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) {\n        if (processor == null) {\n            processor = routeContext.lookup(getRef(), Processor.class);\n        }\n        return processor;", "functions": [{"function_name": "getShortName", "code": "    @Override\n    public String getShortName() {\n        return \"processor\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Processor[\"\n                + ((ref != null) ? \"ref:  \" + ref : processor)\n                + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [7, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getLabel", "code": "    @Override\n    public String getLabel() {\n        if (ref != null) {\n            return \"ref:  \" + ref;\n        } else if (processor != null) {\n            return processor.toString();\n        } else {\n            return \"\";", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [3, 6], [2, 7], [2, 8], [4, 9], [5, 10], [7, 11], [8, 12], [10, 13], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 3], [7, 2], [8, 2], [9, 4], [10, 5], [11, 7], [12, 8], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getRef", "code": "    public String getRef() {\n        return ref;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRef", "code": "    public void setRef(String ref) {\n        this.ref = ref;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) {\n        if (processor == null) {\n            processor = routeContext.lookup(getRef(), Processor.class);\n        }\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "ProcessorRef", "code": "    public ProcessorRef() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ProcessorRef", "code": "    public ProcessorRef(Processor processor) {\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ivy-2.0-3465", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/resolve/VisitNode.java", "language": "java", "name": "org.apache.ivy.core.resolve.VisitNode", "code": "public class VisitNode {\n    /**\n     * The node which is currently visited\n     */\n    private IvyNode node;\n\n    /**\n     * Represents the current parent of the node during ivy visit of dependency graph.\n     */\n    private VisitNode parent = null;\n\n    /**\n     * The root node of the current visit It is null until it is required, see getRoot\n     */\n    private VisitNode root = null;\n\n    /**\n     * Direct path from root to this node. Note that the colleciton is ordered but is not a list\n     * implementation This collection is null until it is required, see getPath\n     */\n    private Collection path = null; // Collection(VisitNode)\n\n    /**\n     * The configuration of the parent module in the current visit\n     */\n    private String parentConf = null;\n\n    /**\n     * The configuration requested by the parent Note that this is the actual conf requested by the\n     * parent, not a configuration extended by the requested conf which actually trigger the node\n     * visit\n     */\n    private String requestedConf;\n\n    /**\n     * The root configuration which is currently visited\n     */\n    private String rootModuleConf;\n\n    /**\n     * Shared ResolveData instance, which can be used to get info on the current resolve process\n     */\n    private ResolveData data;\n\n    /**\n     * Boolean.TRUE if a node with a same module id as the one visited has already been visited in\n     * the current path. null if not computed yet Boolean.FALSE otherwise\n     */\n    private Boolean isCircular;\n    \n    /**\n     * IvyNode usage information to update when visiting the underlying IvyNode.\n     * This is usually the main IvyNodeUsage of the underlying node, except when we are visiting it\n     * coming from an evicted node replaced by the other one.\n     */\n    private IvyNodeUsage usage;\n\n    public VisitNode(ResolveData data, IvyNode node, VisitNode parent, String rootModuleConf,\n            String parentConf) {\n        this(data, node, parent, rootModuleConf, parentConf, null);\n    }\n\n    public VisitNode(ResolveData data, IvyNode node, VisitNode parent, String rootModuleConf,\n            String parentConf, IvyNodeUsage usage) {\n        Checks.checkNotNull(data, \"data\");\n        Checks.checkNotNull(node, \"node\");\n        Checks.checkNotNull(rootModuleConf, \"rootModuleConf\");\n        \n        this.data = data;\n        this.node = node;\n        this.parent = parent;\n        this.rootModuleConf = rootModuleConf;\n        this.parentConf = parentConf;\n        this.usage = usage;\n\n        this.data.register(this);\n    }\n\n    public IvyNode getNode() {\n        return node;\n    }\n\n    /**\n     * @return Returns the configuration requested by the parent\n     */\n    public String getRequestedConf() {\n        return requestedConf;\n    }\n\n    public void setRequestedConf(String requestedConf) {\n        this.requestedConf = requestedConf;\n    }\n\n    public VisitNode getParent() {\n        return parent;\n    }\n\n    public VisitNode getRoot() {\n        if (root == null) {\n            root = computeRoot();\n        }\n        return root;\n    }\n\n    public Collection/*<VisitNode>*/ getPath() {\n        if (path == null) {\n            path = computePath();\n        }\n        return path;\n    }\n\n    private Collection/*<VisitNode>*/ computePath() {\n        if (parent != null) {\n            Collection p = new LinkedHashSet(parent.getPath());\n            p.add(this);\n            return p;\n        } else {\n            return Collections.singletonList(this);\n        }\n    }\n\n    private VisitNode computeRoot() {\n        if (node.isRoot()) {\n            return this;\n        } else if (parent != null) {\n            return parent.getRoot();\n        } else {\n            return null;\n        }\n    }\n\n    public String getParentConf() {\n        return parentConf;\n    }\n\n    public void setParentConf(String parentConf) {\n        this.parentConf = parentConf;\n    }\n\n    public String getRootModuleConf() {\n        return rootModuleConf;\n    }\n\n    public static VisitNode getRoot(VisitNode parent) {\n        VisitNode root = parent;\n        Collection path = new HashSet();\n        path.add(root);\n        while (root.getParent() != null && !root.getNode().isRoot()) {\n            if (path.contains(root.getParent())) {\n                return root;\n            }\n            root = root.getParent();\n            path.add(root);\n        }\n        return root;\n    }\n\n    /**\n     * Returns true if the current dependency descriptor is transitive and the parent configuration\n     * is transitive. Otherwise returns false.\n     * \n     * @return true if current node is transitive and the parent configuration is transitive.\n     */\n    public boolean isTransitive() {\n        return (data.isTransitive() \n                && node.getDependencyDescriptor(getParentNode()).isTransitive() \n                && isParentConfTransitive());\n    }\n\n    /**\n     * Checks if the current node's parent configuration is transitive.\n     * \n     * @param node\n     *            current node\n     * @return true if the node's parent configuration is transitive\n     */\n    protected boolean isParentConfTransitive() {\n        String conf = getParent().getRequestedConf();\n        if (conf == null) {\n            return true;\n        }\n        Configuration parentConf = getParentNode().getConfiguration(conf);\n        return parentConf.isTransitive();\n\n    }\n\n    /**\n     * Returns the 'real' node currently visited. 'Real' means that if we are visiting a node\n     * created originally with only a version constraint, and if this version constraint has been\n     * resolved to an existing node in the graph, we will return the existing node, and not the one\n     * originally used which is about to be discarded, since it's not possible to have in the graph\n     * two nodes for the same ModuleRevisionId\n     * \n     * @return the 'real' node currently visited.\n     */\n    public IvyNode getRealNode() {\n        IvyNode node = this.node.getRealNode();\n        if (node != null) {\n            return node;\n        } else {\n            return this.node;\n        }\n    }\n\n    /**\n     * Ask to the current visited node to use a real node only, if one exist. See getRealNode for\n     * details about what a 'real' node is.\n     */\n    public void useRealNode() {\n        if (parent != null) { // use real node make sense only for non root module\n            IvyNode node = data.getNode(this.node.getId());\n            if (node != null && node != this.node) {\n                this.node = node;\n            }\n        }\n    }\n\n    public boolean loadData(String conf, boolean shouldBePublic) {\n        boolean loaded = node.loadData(\n            rootModuleConf, getParentNode(), parentConf, conf, shouldBePublic, getUsage());\n        if (loaded) {\n            useRealNode();\n\n            // if the loaded revision is different from original one\n            // we now register this node on the new resolved id\n            // this includes two cases:\n            // - the id refers to a dynamic revision, which has been resolved by loadData\n            // - the loaded module descriptor has extra attributes in his info tag which are not \n            //   used when declaring the dependency\n            if (data.getNode(node.getResolvedId()) == null \n                    || !data.getNode(node.getResolvedId()).getId().equals(node.getResolvedId())) {\n                data.register(node.getResolvedId(), this);\n            }\n        }\n\n        return loaded;\n    }\n\n    public Collection getDependencies(String conf) {\n        Collection deps = node.getDependencies(rootModuleConf, conf, requestedConf);\n        Collection ret = new ArrayList(deps.size());\n        for (Iterator iter = deps.iterator(); iter.hasNext();) {\n            IvyNode depNode = (IvyNode) iter.next();\n            ret.add(traverseChild(conf, depNode));\n        }\n        return ret;\n    }\n\n    /**\n     * Returns a VisitNode for the given node. The given node must be a representation of the same\n     * module (usually in another revision) as the one visited by this node. \n     * \n     * @param node\n     *            the node to visit\n     * @return a VisitNode for the given node\n     */\n    VisitNode gotoNode(IvyNode node) {\n        if (!getModuleId().equals(node.getModuleId())) {\n            throw new IllegalArgumentException(\n                    \"You can't use gotoNode for a node which does not represent the same Module \"\n                            + \"as the one represented by this node.\\nCurrent node module id=\"\n                            + getModuleId() + \" Given node module id=\" + node.getModuleId());\n        }\n        VisitData visitData = data.getVisitData(node.getId());\n        if (visitData != null) {\n            List visitNodes = visitData.getVisitNodes(rootModuleConf);\n            for (Iterator iter = visitNodes.iterator(); iter.hasNext();) {\n                VisitNode vnode = (VisitNode) iter.next();\n                if ((parent == null && vnode.getParent() == null)\n                        || (parent != null && parent.getId().equals(vnode.getParent().getId()))) {\n                    vnode.parentConf = parentConf;\n                    vnode.usage = getUsage();\n                    return vnode;\n                }\n            }\n        }\n        // the node has not yet been visited from the current parent, we create a new visit node\n        return traverse(parent, parentConf, node, getUsage());\n    }\n\n    private IvyNodeUsage getUsage() {\n        return usage == null ? node.getMainUsage() : usage;\n    }\n\n    private VisitNode traverseChild(String parentConf, IvyNode child) {\n        VisitNode parent = this;\n        return traverse(parent, parentConf, child, null);\n    }\n\n    private VisitNode traverse(\n            VisitNode parent, String parentConf, IvyNode node, IvyNodeUsage usage) {\n        if (getPath().contains(node)) {\n            IvyContext.getContext().getCircularDependencyStrategy().handleCircularDependency(\n                toMrids(getPath(), node.getId()));\n            // we do not use the new parent, but the first one, to always be able to go up to the\n            // root\n            // parent = getVisitNode(depNode).getParent();\n        }\n        return new VisitNode(data, node, parent, rootModuleConf, parentConf, usage);\n    }\n\n    private ModuleRevisionId[] toMrids(Collection path, ModuleRevisionId last) {\n        ModuleRevisionId[] ret = new ModuleRevisionId[path.size() + 1];\n        int i = 0;\n        for (Iterator iter = path.iterator(); iter.hasNext(); i++) {\n            VisitNode node = (VisitNode) iter.next();\n            ret[i] = node.getNode().getId();\n        }\n        ret[ret.length - 1] = last;\n        return ret;\n    }\n\n    public ModuleRevisionId getResolvedId() {\n        return node.getResolvedId();\n    }\n\n    public void updateConfsToFetch(Collection confs) {\n        node.updateConfsToFetch(confs);\n    }\n\n    public ModuleRevisionId getId() {\n        return node.getId();\n    }\n\n    public boolean isEvicted() {\n        return node.isEvicted(rootModuleConf);\n    }\n\n    public String[] getRealConfs(String conf) {\n        return node.getRealConfs(conf);\n    }\n\n    public boolean hasProblem() {\n        return node.hasProblem();\n    }\n\n    public Configuration getConfiguration(String conf) {\n        return node.getConfiguration(conf);\n    }\n\n    public EvictionData getEvictedData() {\n        return node.getEvictedData(rootModuleConf);\n    }\n\n    public DependencyDescriptor getDependencyDescriptor() {\n        return node.getDependencyDescriptor(getParentNode());\n    }\n\n    private IvyNode getParentNode() {\n        return parent == null ? null : parent.getNode();\n    }\n\n    /**\n     * Returns true if this node can already be found in the path\n     * \n     * @return\n     */\n    public boolean isCircular() {\n        if (isCircular == null) {\n            if (parent != null) {\n                isCircular = Boolean.FALSE; // asumme it's false, and see if it isn't by checking\n                // the parent path\n                for (Iterator iter = parent.getPath().iterator(); iter.hasNext();) {\n                    VisitNode ancestor = (VisitNode) iter.next();\n                    if (getId().getModuleId().equals(ancestor.getId().getModuleId())) {\n                        isCircular = Boolean.TRUE;\n                        break;\n                    }\n                }\n            } else {\n                isCircular = Boolean.FALSE;\n            }\n        }\n        return isCircular.booleanValue();\n    }\n\n    public String[] getConfsToFetch() {\n        return node.getConfsToFetch();\n    }\n\n    public String[] getRequiredConfigurations(VisitNode in, String inConf) {\n        return node.getRequiredConfigurations(in.getNode(), inConf);\n    }\n\n    public ModuleId getModuleId() {\n        return node.getModuleId();\n    }\n\n    public Collection getResolvedRevisions(ModuleId mid) {\n        return node.getResolvedRevisions(mid, rootModuleConf);\n    }\n\n    public void markEvicted(EvictionData evictionData) {\n        node.markEvicted(evictionData);\n    }\n\n    public String[] getRequiredConfigurations() {\n        return node.getRequiredConfigurations();\n    }\n\n    /**\n     * Marks the current node as evicted by the the given selected IvyNodes, in the given parent and\n     * root module configuration, with the given {@link ConflictManager}\n     * \n     * @param parent\n     *            the VisitNode in which eviction has been made\n     * @param conflictMgr\n     *            the conflict manager responsible for the eviction\n     * @param selected\n     *            a Collection of {@link IvyNode} which have been selected\n     */\n    public void markEvicted(VisitNode parent, ConflictManager conflictMgr, Collection selected) {\n        node.markEvicted(rootModuleConf, parent.getNode(), conflictMgr, selected);\n    }\n\n    public ModuleDescriptor getDescriptor() {\n        return node.getDescriptor();\n    }\n\n    public EvictionData getEvictionDataInRoot(String rootModuleConf, VisitNode ancestor) {\n        return node.getEvictionDataInRoot(rootModuleConf, ancestor.getNode());\n    }\n\n    public Collection getEvictedRevisions(ModuleId moduleId) {\n        return node.getEvictedRevisions(moduleId, rootModuleConf);\n    }\n\n    // public void setRootModuleConf(String rootModuleConf) {\n    // if (rootModuleConf != null && !rootModuleConf.equals(rootModuleConf)) {\n    // _confsToFetch.clear(); // we change of root module conf => we discard all confs to fetch\n    // }\n    // if (rootModuleConf != null && rootModuleConf.equals(rootModuleConf)) {\n    // _selectedDeps.put(new ModuleIdConf(_id.getModuleId(), rootModuleConf),\n    // Collections.singleton(this));\n    // }\n    // rootModuleConf = rootModuleConf;\n    // }\n\n    public String toString() {\n        return node.toString();\n    }\n\n    public boolean isConfRequiredByMergedUsageOnly(String conf) {\n        return node.isConfRequiredByMergedUsageOnly(rootModuleConf, conf);", "functions": [{"function_name": "getNode", "code": "    public IvyNode getNode() {\n        return node;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRequestedConf", "code": "    public String getRequestedConf() {\n        return requestedConf;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRequestedConf", "code": "    public void setRequestedConf(String requestedConf) {\n        this.requestedConf = requestedConf;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParent", "code": "    public VisitNode getParent() {\n        return parent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRoot", "code": "    public VisitNode getRoot() {\n        if (root == null) {\n            root = computeRoot();\n        }\n        return root;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getPath", "code": "    public Collection/*<VisitNode>*/ getPath() {\n        if (path == null) {\n            path = computePath();\n        }\n        return path;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "computePath", "code": "    private Collection/*<VisitNode>*/ computePath() {\n        if (parent != null) {\n            Collection p = new LinkedHashSet(parent.getPath());\n            p.add(this);\n            return p;\n        } else {\n            return Collections.singletonList(this);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [1, 8], [5, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 1], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "computeRoot", "code": "    private VisitNode computeRoot() {\n        if (node.isRoot()) {\n            return this;\n        } else if (parent != null) {\n            return parent.getRoot();\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "BINARY_OP", "RETURN", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [2, 6], [2, 7], [4, 8], [6, 9], [7, 10], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 2], [7, 2], [8, 4], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getParentConf", "code": "    public String getParentConf() {\n        return parentConf;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParentConf", "code": "    public void setParentConf(String parentConf) {\n        this.parentConf = parentConf;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRootModuleConf", "code": "    public String getRootModuleConf() {\n        return rootModuleConf;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRoot", "code": "    public static VisitNode getRoot(VisitNode parent) {\n        VisitNode root = parent;\n        Collection path = new HashSet();\n        path.add(root);\n        while (root.getParent() != null && !root.getNode().isRoot()) {\n            if (path.contains(root.getParent())) {\n                return root;\n            }\n            root = root.getParent();\n            path.add(root);\n        }\n        return root;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [6, 9], [6, 10], [3, 11], [2, 12], [2, 13], [8, 14], [9, 15], [10, 16], [10, 17], [13, 18], [8, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 6], [10, 6], [11, 3], [12, 2], [13, 2], [14, 8], [15, 9], [16, 10], [17, 10], [18, 13], [19, 8], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "isTransitive", "code": "    public boolean isTransitive() {\n        return (data.isTransitive() \n                && node.getDependencyDescriptor(getParentNode()).isTransitive() \n                && isParentConfTransitive());", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isParentConfTransitive", "code": "    protected boolean isParentConfTransitive() {\n        String conf = getParent().getRequestedConf();\n        if (conf == null) {\n            return true;\n        }\n        Configuration parentConf = getParentNode().getConfiguration(conf);\n        return parentConf.isTransitive();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [3, 8], [6, 9], [4, 10], [7, 11], [8, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [8, 3], [9, 6], [10, 4], [11, 7], [12, 8], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getRealNode", "code": "    public IvyNode getRealNode() {\n        IvyNode node = this.node.getRealNode();\n        if (node != null) {\n            return node;\n        } else {\n            return this.node;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "useRealNode", "code": "    public void useRealNode() {\n        if (parent != null) { // use real node make sense only for non root module\n            IvyNode node = data.getNode(this.node.getId());\n            if (node != null && node != this.node) {\n                this.node = node;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [6, 7], [6, 8], [4, 9], [3, 10], [8, 11], [9, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 6], [8, 6], [9, 4], [10, 3], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "loadData", "code": "    public boolean loadData(String conf, boolean shouldBePublic) {\n        boolean loaded = node.loadData(\n            rootModuleConf, getParentNode(), parentConf, conf, shouldBePublic, getUsage());\n        if (loaded) {\n            useRealNode();\n\n            // if the loaded revision is different from original one\n            // we now register this node on the new resolved id\n            // this includes two cases:\n            // - the id refers to a dynamic revision, which has been resolved by loadData\n            // - the loaded module descriptor has extra attributes in his info tag which are not \n            //   used when declaring the dependency\n            if (data.getNode(node.getResolvedId()) == null \n                    || !data.getNode(node.getResolvedId()).getId().equals(node.getResolvedId())) {\n                data.register(node.getResolvedId(), this);\n            }\n        }\n\n        return loaded;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [6, 8], [2, 9], [7, 10], [7, 11], [8, 12], [8, 13], [6, 14], [12, 15], [12, 16], [12, 17], [13, 18], [13, 19], [14, 20], [16, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 6], [9, 2], [10, 7], [11, 7], [12, 8], [13, 8], [14, 6], [15, 12], [16, 12], [17, 12], [18, 13], [19, 13], [20, 14], [21, 16], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getDependencies", "code": "    public Collection getDependencies(String conf) {\n        Collection deps = node.getDependencies(rootModuleConf, conf, requestedConf);\n        Collection ret = new ArrayList(deps.size());\n        for (Iterator iter = deps.iterator(); iter.hasNext();) {\n            IvyNode depNode = (IvyNode) iter.next();\n            ret.add(traverseChild(conf, depNode));\n        }\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [4, 9], [2, 10], [2, 11], [8, 12], [10, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 4], [10, 2], [11, 2], [12, 8], [13, 10], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "gotoNode", "code": "    VisitNode gotoNode(IvyNode node) {\n        if (!getModuleId().equals(node.getModuleId())) {\n            throw new IllegalArgumentException(\n                    \"You can't use gotoNode for a node which does not represent the same Module \"\n                            + \"as the one represented by this node.\\nCurrent node module id=\"\n                            + getModuleId() + \" Given node module id=\" + node.getModuleId());\n        }\n        VisitData visitData = data.getVisitData(node.getId());\n        if (visitData != null) {\n            List visitNodes = visitData.getVisitNodes(rootModuleConf);\n            for (Iterator iter = visitNodes.iterator(); iter.hasNext();) {\n                VisitNode vnode = (VisitNode) iter.next();\n                if ((parent == null && vnode.getParent() == null)\n                        || (parent != null && parent.getId().equals(vnode.getParent().getId()))) {\n                    vnode.parentConf = parentConf;\n                    vnode.usage = getUsage();\n                    return vnode;\n                }\n            }\n        }\n        // the node has not yet been visited from the current parent, we create a new visit node\n        return traverse(parent, parentConf, node, getUsage());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [6, 9], [2, 10], [2, 11], [7, 12], [3, 13], [4, 14], [8, 15], [10, 16], [13, 17], [14, 18], [15, 19], [10, 20], [10, 21], [11, 22], [18, 23], [20, 24], [10, 25], [23, 26], [23, 27], [20, 28], [24, 29], [24, 30], [27, 31], [27, 32], [20, 33], [20, 34], [29, 35], [29, 36], [30, 37], [30, 38], [21, 39], [32, 40], [32, 41], [33, 42], [35, 43], [36, 44], [37, 45], [37, 46], [38, 47], [41, 48], [41, 49], [43, 50], [50, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 6], [10, 2], [11, 2], [12, 7], [13, 3], [14, 4], [15, 8], [16, 10], [17, 13], [18, 14], [19, 15], [20, 10], [21, 10], [22, 11], [23, 18], [24, 20], [25, 10], [26, 23], [27, 23], [28, 20], [29, 24], [30, 24], [31, 27], [32, 27], [33, 20], [34, 20], [35, 29], [36, 29], [37, 30], [38, 30], [39, 21], [40, 32], [41, 32], [42, 33], [43, 35], [44, 36], [45, 37], [46, 37], [47, 38], [48, 41], [49, 41], [50, 43], [51, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "getUsage", "code": "    private IvyNodeUsage getUsage() {\n        return usage == null ? node.getMainUsage() : usage;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "traverseChild", "code": "    private VisitNode traverseChild(String parentConf, IvyNode child) {\n        VisitNode parent = this;\n        return traverse(parent, parentConf, child, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "traverse", "code": "    private VisitNode traverse(\n            VisitNode parent, String parentConf, IvyNode node, IvyNodeUsage usage) {\n        if (getPath().contains(node)) {\n            IvyContext.getContext().getCircularDependencyStrategy().handleCircularDependency(\n                toMrids(getPath(), node.getId()));\n            // we do not use the new parent, but the first one, to always be able to go up to the\n            // root\n            // parent = getVisitNode(depNode).getParent();\n        }\n        return new VisitNode(data, node, parent, rootModuleConf, parentConf, usage);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [8, 9], [2, 10], [10, 11], [10, 12], [11, 13], [13, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 8], [10, 2], [11, 10], [12, 10], [13, 11], [14, 13], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "toMrids", "code": "    private ModuleRevisionId[] toMrids(Collection path, ModuleRevisionId last) {\n        ModuleRevisionId[] ret = new ModuleRevisionId[path.size() + 1];\n        int i = 0;\n        for (Iterator iter = path.iterator(); iter.hasNext(); i++) {\n            VisitNode node = (VisitNode) iter.next();\n            ret[i] = node.getNode().getId();\n        }\n        ret[ret.length - 1] = last;\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [2, 11], [2, 12], [4, 13], [7, 14], [11, 15], [13, 16], [13, 17], [14, 18], [15, 19], [9, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 2], [12, 2], [13, 4], [14, 7], [15, 11], [16, 13], [17, 13], [18, 14], [19, 15], [20, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getResolvedId", "code": "    public ModuleRevisionId getResolvedId() {\n        return node.getResolvedId();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "updateConfsToFetch", "code": "    public void updateConfsToFetch(Collection confs) {\n        node.updateConfsToFetch(confs);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getId", "code": "    public ModuleRevisionId getId() {\n        return node.getId();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isEvicted", "code": "    public boolean isEvicted() {\n        return node.isEvicted(rootModuleConf);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRealConfs", "code": "    public String[] getRealConfs(String conf) {\n        return node.getRealConfs(conf);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hasProblem", "code": "    public boolean hasProblem() {\n        return node.hasProblem();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConfiguration", "code": "    public Configuration getConfiguration(String conf) {\n        return node.getConfiguration(conf);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEvictedData", "code": "    public EvictionData getEvictedData() {\n        return node.getEvictedData(rootModuleConf);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDependencyDescriptor", "code": "    public DependencyDescriptor getDependencyDescriptor() {\n        return node.getDependencyDescriptor(getParentNode());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getParentNode", "code": "    private IvyNode getParentNode() {\n        return parent == null ? null : parent.getNode();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isCircular", "code": "    public boolean isCircular() {\n        if (isCircular == null) {\n            if (parent != null) {\n                isCircular = Boolean.FALSE; // asumme it's false, and see if it isn't by checking\n                // the parent path\n                for (Iterator iter = parent.getPath().iterator(); iter.hasNext();) {\n                    VisitNode ancestor = (VisitNode) iter.next();\n                    if (getId().getModuleId().equals(ancestor.getId().getModuleId())) {\n                        isCircular = Boolean.TRUE;\n                        break;\n                    }\n                }\n            } else {\n                isCircular = Boolean.FALSE;\n            }\n        }\n        return isCircular.booleanValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "IF", "VAR_DECL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [5, 8], [7, 9], [5, 10], [8, 11], [5, 12], [8, 13], [8, 14], [13, 15], [8, 16], [13, 17], [15, 18], [15, 19], [16, 20], [13, 21], [18, 22], [14, 23], [22, 24], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 5], [9, 7], [10, 5], [11, 8], [12, 5], [13, 8], [14, 8], [15, 13], [16, 8], [17, 13], [18, 15], [19, 15], [20, 16], [21, 13], [22, 18], [23, 14], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getConfsToFetch", "code": "    public String[] getConfsToFetch() {\n        return node.getConfsToFetch();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRequiredConfigurations", "code": "    public String[] getRequiredConfigurations(VisitNode in, String inConf) {\n        return node.getRequiredConfigurations(in.getNode(), inConf);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getModuleId", "code": "    public ModuleId getModuleId() {\n        return node.getModuleId();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResolvedRevisions", "code": "    public Collection getResolvedRevisions(ModuleId mid) {\n        return node.getResolvedRevisions(mid, rootModuleConf);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "markEvicted", "code": "    public void markEvicted(EvictionData evictionData) {\n        node.markEvicted(evictionData);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRequiredConfigurations", "code": "    public String[] getRequiredConfigurations() {\n        return node.getRequiredConfigurations();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "markEvicted", "code": "    public void markEvicted(VisitNode parent, ConflictManager conflictMgr, Collection selected) {\n        node.markEvicted(rootModuleConf, parent.getNode(), conflictMgr, selected);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDescriptor", "code": "    public ModuleDescriptor getDescriptor() {\n        return node.getDescriptor();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEvictionDataInRoot", "code": "    public EvictionData getEvictionDataInRoot(String rootModuleConf, VisitNode ancestor) {\n        return node.getEvictionDataInRoot(rootModuleConf, ancestor.getNode());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getEvictedRevisions", "code": "    public Collection getEvictedRevisions(ModuleId moduleId) {\n        return node.getEvictedRevisions(moduleId, rootModuleConf);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n        return node.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isConfRequiredByMergedUsageOnly", "code": "    public boolean isConfRequiredByMergedUsageOnly(String conf) {\n        return node.isConfRequiredByMergedUsageOnly(rootModuleConf, conf);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "VisitNode", "code": "    public VisitNode(ResolveData data, IvyNode node, VisitNode parent, String rootModuleConf,\n            String parentConf) {\n        this(data, node, parent, rootModuleConf, parentConf, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "VisitNode", "code": "    public VisitNode(ResolveData data, IvyNode node, VisitNode parent, String rootModuleConf,\n            String parentConf, IvyNodeUsage usage) {\n        Checks.checkNotNull(data, \"data\");\n        Checks.checkNotNull(node, \"node\");\n        Checks.checkNotNull(rootModuleConf, \"rootModuleConf\");\n        \n        this.data = data;\n        this.node = node;\n        this.parent = parent;\n        this.rootModuleConf = rootModuleConf;\n        this.parentConf = parentConf;\n        this.usage = usage;\n\n        this.data.register(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [13, 17], [14, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 13], [18, 14], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 1}
{"sample_id": "xalan-2.6-7685", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/res/XMLErrorResources_ru.java", "language": "java", "name": "org.apache.xml.res.XMLErrorResources_ru", "code": "public class XMLErrorResources_ru extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 61;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 0;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 4;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Message keys\n   */\n  public static final String ER_FUNCTION_NOT_SUPPORTED = \"ER_FUNCTION_NOT_SUPPORTED\";\n  public static final String ER_CANNOT_OVERWRITE_CAUSE = \"ER_CANNOT_OVERWRITE_CAUSE\";\n  public static final String ER_NO_DEFAULT_IMPL = \"ER_NO_DEFAULT_IMPL\";\n  public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = \"ER_CHUNKEDINTARRAY_NOT_SUPPORTED\";\n  public static final String ER_OFFSET_BIGGER_THAN_SLOT = \"ER_OFFSET_BIGGER_THAN_SLOT\";\n  public static final String ER_COROUTINE_NOT_AVAIL = \"ER_COROUTINE_NOT_AVAIL\";\n  public static final String ER_COROUTINE_CO_EXIT = \"ER_COROUTINE_CO_EXIT\";\n  public static final String ER_COJOINROUTINESET_FAILED = \"ER_COJOINROUTINESET_FAILED\";\n  public static final String ER_COROUTINE_PARAM = \"ER_COROUTINE_PARAM\";\n  public static final String ER_PARSER_DOTERMINATE_ANSWERS = \"ER_PARSER_DOTERMINATE_ANSWERS\";\n  public static final String ER_NO_PARSE_CALL_WHILE_PARSING = \"ER_NO_PARSE_CALL_WHILE_PARSING\";\n  public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = \"ER_ITERATOR_CLONE_NOT_SUPPORTED\";\n  public static final String ER_UNKNOWN_AXIS_TYPE = \"ER_UNKNOWN_AXIS_TYPE\";\n  public static final String ER_AXIS_NOT_SUPPORTED = \"ER_AXIS_NOT_SUPPORTED\";\n  public static final String ER_NO_DTMIDS_AVAIL = \"ER_NO_DTMIDS_AVAIL\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_NODE_NON_NULL = \"ER_NODE_NON_NULL\";\n  public static final String ER_COULD_NOT_RESOLVE_NODE = \"ER_COULD_NOT_RESOLVE_NODE\";\n  public static final String ER_STARTPARSE_WHILE_PARSING = \"ER_STARTPARSE_WHILE_PARSING\";\n  public static final String ER_STARTPARSE_NEEDS_SAXPARSER = \"ER_STARTPARSE_NEEDS_SAXPARSER\";\n  public static final String ER_COULD_NOT_INIT_PARSER = \"ER_COULD_NOT_INIT_PARSER\";\n  public static final String ER_EXCEPTION_CREATING_POOL = \"ER_EXCEPTION_CREATING_POOL\";\n  public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = \"ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE\";\n  public static final String ER_SCHEME_REQUIRED = \"ER_SCHEME_REQUIRED\";\n  public static final String ER_NO_SCHEME_IN_URI = \"ER_NO_SCHEME_IN_URI\";\n  public static final String ER_NO_SCHEME_INURI = \"ER_NO_SCHEME_INURI\";\n  public static final String ER_PATH_INVALID_CHAR = \"ER_PATH_INVALID_CHAR\";\n  public static final String ER_SCHEME_FROM_NULL_STRING = \"ER_SCHEME_FROM_NULL_STRING\";\n  public static final String ER_SCHEME_NOT_CONFORMANT = \"ER_SCHEME_NOT_CONFORMANT\";\n  public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = \"ER_HOST_ADDRESS_NOT_WELLFORMED\";\n  public static final String ER_PORT_WHEN_HOST_NULL = \"ER_PORT_WHEN_HOST_NULL\";\n  public static final String ER_INVALID_PORT = \"ER_INVALID_PORT\";\n  public static final String ER_FRAG_FOR_GENERIC_URI =\"ER_FRAG_FOR_GENERIC_URI\";\n  public static final String ER_FRAG_WHEN_PATH_NULL = \"ER_FRAG_WHEN_PATH_NULL\";\n  public static final String ER_FRAG_INVALID_CHAR = \"ER_FRAG_INVALID_CHAR\";\n  public static final String ER_PARSER_IN_USE = \"ER_PARSER_IN_USE\";\n  public static final String ER_CANNOT_CHANGE_WHILE_PARSING = \"ER_CANNOT_CHANGE_WHILE_PARSING\";\n  public static final String ER_SELF_CAUSATION_NOT_PERMITTED = \"ER_SELF_CAUSATION_NOT_PERMITTED\";\n  public static final String ER_NO_USERINFO_IF_NO_HOST = \"ER_NO_USERINFO_IF_NO_HOST\";\n  public static final String ER_NO_PORT_IF_NO_HOST = \"ER_NO_PORT_IF_NO_HOST\";\n  public static final String ER_NO_QUERY_STRING_IN_PATH = \"ER_NO_QUERY_STRING_IN_PATH\";\n  public static final String ER_NO_FRAGMENT_STRING_IN_PATH = \"ER_NO_FRAGMENT_STRING_IN_PATH\";\n  public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = \"ER_CANNOT_INIT_URI_EMPTY_PARMS\";\n  public static final String ER_METHOD_NOT_SUPPORTED =\"ER_METHOD_NOT_SUPPORTED\";\n  public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = \"ER_INCRSAXSRCFILTER_NOT_RESTARTABLE\";\n  public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = \"ER_XMLRDR_NOT_BEFORE_STARTPARSE\";\n  public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = \"ER_AXIS_TRAVERSER_NOT_SUPPORTED\";\n  public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = \"ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER\";\n  public static final String ER_SYSTEMID_UNKNOWN = \"ER_SYSTEMID_UNKNOWN\";\n  public static final String ER_LOCATION_UNKNOWN = \"ER_LOCATION_UNKNOWN\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = \"ER_CREATEDOCUMENT_NOT_SUPPORTED\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT\";\n  public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = \"ER_CANT_OUTPUT_TEXT_BEFORE_DOC\";\n  public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = \"ER_CANT_HAVE_MORE_THAN_ONE_ROOT\";\n  public static final String ER_ARG_LOCALNAME_NULL = \"ER_ARG_LOCALNAME_NULL\";\n  public static final String ER_ARG_LOCALNAME_INVALID = \"ER_ARG_LOCALNAME_INVALID\";\n  public static final String ER_ARG_PREFIX_INVALID = \"ER_ARG_PREFIX_INVALID\";\n\n  public static final String ER_RESOURCE_COULD_NOT_FIND = \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD = \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_INVALID_UTF16_SURROGATE = \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_NAMESPACE_PREFIX = \"ER_NAMESPACE_PREFIX\";\n  public static final String ER_STRAY_ATTRIBUTE = \"ER_STRAY_ATTIRBUTE\";\n  public static final String ER_STRAY_NAMESPACE = \"ER_STRAY_NAMESPACE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE = \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = \"ER_COULD_NOT_LOAD_METHOD_PROPERTY\";\n  public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = \"ER_SERIALIZER_NOT_CONTENTHANDLER\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = \"ER_ILLEGAL_ATTRIBUTE_POSITION\";\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /** The lookup table for error messages.   */\n  public static final Object[][] contents = {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"\\u0424\\u0443\\u043d\\u043a\\u0446\\u0438\\u044f \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f!\"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0435\\u0440\\u0435\\u0437\\u0430\\u043f\\u0438\\u0441\\u0430\\u0442\\u044c \\u043f\\u0440\\u0438\\u0447\\u0438\\u043d\\u0443\"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"\\u041d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u0430 \\u0440\\u0435\\u0430\\u043b\\u0438\\u0437\\u0430\\u0446\\u0438\\u044f \\u043f\\u043e \\u0443\\u043c\\u043e\\u043b\\u0447\\u0430\\u043d\\u0438\\u044e\"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"ChunkedIntArray({0}) \\u0432 \\u043d\\u0430\\u0441\\u0442\\u043e\\u044f\\u0449\\u0435\\u0435 \\u0432\\u0440\\u0435\\u043c\\u044f \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f\"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"\\u0421\\u043c\\u0435\\u0449\\u0435\\u043d\\u0438\\u0435 \\u0431\\u043e\\u043b\\u044c\\u0448\\u0435 \\u0434\\u0438\\u0430\\u043f\\u0430\\u0437\\u043e\\u043d\\u0430\"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"Coroutine \\u043d\\u0435\\u0434\\u043e\\u0441\\u0442\\u0443\\u043f\\u043d\\u0430, \\u0418\\u0414={0}\"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager \\u043f\\u043e\\u043b\\u0443\\u0447\\u0438\\u043b \\u0437\\u0430\\u043f\\u0440\\u043e\\u0441 co_exit()\"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 co_joinCoroutineSet()\"},\n\n    { ER_COROUTINE_PARAM,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 \\u043f\\u0430\\u0440\\u0430\\u043c\\u0435\\u0442\\u0440\\u0430 Coroutine ({0})\"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\n\\u041d\\u0435\\u043f\\u0440\\u0435\\u0434\\u0432\\u0438\\u0434\\u0435\\u043d\\u043d\\u0430\\u044f \\u043e\\u0448\\u0438\\u0431\\u043a\\u0430: \\u041e\\u0442\\u0432\\u0435\\u0442 \\u0430\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440\\u0430 doTerminate: {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"\\u041d\\u0435\\u043b\\u044c\\u0437\\u044f \\u0432\\u044b\\u0437\\u044b\\u0432\\u0430\\u0442\\u044c \\u0430\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440 \\u0432\\u043e \\u0432\\u0440\\u0435\\u043c\\u044f \\u0430\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430: \\u0442\\u0438\\u043f\\u0438\\u0437\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d\\u043d\\u044b\\u0439 \\u0438\\u0442\\u0435\\u0440\\u0430\\u0442\\u043e\\u0440 \\u0434\\u043b\\u044f \\u043e\\u0441\\u0438 {0} \\u043d\\u0435 \\u0440\\u0435\\u0430\\u043b\\u0438\\u0437\\u043e\\u0432\\u0430\\u043d\"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430: \\u0438\\u0442\\u0435\\u0440\\u0430\\u0442\\u043e\\u0440 \\u0434\\u043b\\u044f \\u043e\\u0441\\u0438 {0} \\u043d\\u0435 \\u0440\\u0435\\u0430\\u043b\\u0438\\u0437\\u043e\\u0432\\u0430\\u043d\"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"\\u041a\\u043e\\u043f\\u0438\\u044f \\u0438\\u0442\\u0435\\u0440\\u0430\\u0442\\u043e\\u0440\\u0430 \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f\"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u044b\\u0439 \\u0442\\u0438\\u043f Traverser \\u0434\\u043b\\u044f \\u043e\\u0441\\u0438: {0}\"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"Traverser \\u0434\\u043b\\u044f \\u043e\\u0441\\u0438 \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f: {0}\"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"\\u041d\\u0435\\u0442 \\u0434\\u043e\\u0441\\u0442\\u0443\\u043f\\u043d\\u044b\\u0445 \\u0418\\u0414 DTM\"},\n\n    { ER_NOT_SUPPORTED,\n      \"\\u041d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f: {0}\"},\n\n    { ER_NODE_NON_NULL,\n      \"\\u0414\\u043b\\u044f getDTMHandleFromNode \\u0443\\u0437\\u0435\\u043b \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u0431\\u044b\\u0442\\u044c \\u043d\\u0435\\u043f\\u0443\\u0441\\u0442\\u044b\\u043c\"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"\\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u0442\\u044c \\u0443\\u0437\\u0435\\u043b \\u0432 \\u0434\\u0435\\u0441\\u043a\\u0440\\u0438\\u043f\\u0442\\u043e\\u0440\"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"\\u041d\\u0435\\u043b\\u044c\\u0437\\u044f \\u0432\\u044b\\u0437\\u044b\\u0432\\u0430\\u0442\\u044c startParse \\u0432\\u043e \\u0432\\u0440\\u0435\\u043c\\u044f \\u0430\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"\\u0414\\u043b\\u044f startParse \\u043d\\u0435\\u043e\\u0431\\u0445\\u043e\\u0434\\u0438\\u043c \\u043d\\u0435\\u043f\\u0443\\u0441\\u0442\\u043e\\u0439 SAXParser\"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"\\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u0438\\u043d\\u0438\\u0446\\u0438\\u0430\\u043b\\u0438\\u0437\\u0438\\u0440\\u043e\\u0432\\u0430\\u0442\\u044c \\u0430\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440 \\u0441\"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"\\u0418\\u0441\\u043a\\u043b\\u044e\\u0447\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u0430\\u044f \\u0441\\u0438\\u0442\\u0443\\u0430\\u0446\\u0438\\u044f \\u043f\\u0440\\u0438 \\u0441\\u043e\\u0437\\u0434\\u0430\\u043d\\u0438\\u0438 \\u043d\\u043e\\u0432\\u043e\\u0433\\u043e \\u044d\\u043a\\u0437\\u0435\\u043c\\u043f\\u043b\\u044f\\u0440\\u0430 \\u043f\\u0443\\u043b\\u0430\"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"\\u0412 \\u0438\\u043c\\u0435\\u043d\\u0438 \\u043f\\u0443\\u0442\\u0438 \\u0432\\u0441\\u0442\\u0440\\u0435\\u0447\\u0430\\u0435\\u0442\\u0441\\u044f \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u0430\\u044f Esc-\\u043f\\u043e\\u0441\\u043b\\u0435\\u0434\\u043e\\u0432\\u0430\\u0442\\u0435\\u043b\\u044c\\u043d\\u043e\\u0441\\u0442\\u044c\"},\n\n    { ER_SCHEME_REQUIRED,\n       \"\\u041d\\u0435\\u043e\\u0431\\u0445\\u043e\\u0434\\u0438\\u043c\\u0430 \\u0441\\u0445\\u0435\\u043c\\u0430!\"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"\\u0412 URI \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u0430 \\u0441\\u0445\\u0435\\u043c\\u0430: {0}\"},\n\n    { ER_NO_SCHEME_INURI,\n       \"\\u0412 URI \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d\\u0430 \\u0441\\u0445\\u0435\\u043c\\u0430\"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"\\u0412 \\u0438\\u043c\\u0435\\u043d\\u0438 \\u043f\\u0443\\u0442\\u0438 \\u043e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u0439 \\u0441\\u0438\\u043c\\u0432\\u043e\\u043b: {0}\"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0437\\u0430\\u0434\\u0430\\u0442\\u044c \\u0441\\u0445\\u0435\\u043c\\u0443 \\u0434\\u043b\\u044f \\u043f\\u0443\\u0441\\u0442\\u043e\\u0439 \\u0441\\u0442\\u0440\\u043e\\u043a\\u0438\"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"\\u0421\\u0445\\u0435\\u043c\\u0430 \\u043d\\u0435 \\u043a\\u043e\\u043d\\u0444\\u043e\\u0440\\u043c\\u0430\\u0442\\u0438\\u0432\\u043d\\u0430.\"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"\\u041d\\u0435\\u043f\\u0440\\u0430\\u0432\\u0438\\u043b\\u044c\\u043d\\u043e \\u0441\\u0444\\u043e\\u0440\\u043c\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d \\u0430\\u0434\\u0440\\u0435\\u0441 \\u0445\\u043e\\u0441\\u0442\\u0430\"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0437\\u0430\\u0434\\u0430\\u0442\\u044c \\u043f\\u043e\\u0440\\u0442 \\u0434\\u043b\\u044f \\u043f\\u0443\\u0441\\u0442\\u043e\\u0433\\u043e \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u0445\\u043e\\u0441\\u0442\\u0430\"},\n\n    { ER_INVALID_PORT,\n       \"\\u041d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u0439 \\u043d\\u043e\\u043c\\u0435\\u0440 \\u043f\\u043e\\u0440\\u0442\\u0430\"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"\\u0424\\u0440\\u0430\\u0433\\u043c\\u0435\\u043d\\u0442 \\u043c\\u043e\\u0436\\u043d\\u043e \\u0437\\u0430\\u0434\\u0430\\u0442\\u044c \\u0442\\u043e\\u043b\\u044c\\u043a\\u043e \\u0434\\u043b\\u044f \\u0448\\u0430\\u0431\\u043b\\u043e\\u043d\\u0430 URI\"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0437\\u0430\\u0434\\u0430\\u0442\\u044c \\u0444\\u0440\\u0430\\u0433\\u043c\\u0435\\u043d\\u0442 \\u0434\\u043b\\u044f \\u043f\\u0443\\u0441\\u0442\\u043e\\u0433\\u043e \\u043f\\u0443\\u0442\\u0438\"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"\\u0424\\u0440\\u0430\\u0433\\u043c\\u0435\\u043d\\u0442 \\u0441\\u043e\\u0434\\u0435\\u0440\\u0436\\u0438\\u0442 \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u0439 \\u0441\\u0438\\u043c\\u0432\\u043e\\u043b\"},\n\n    { ER_PARSER_IN_USE,\n      \"\\u0410\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440 \\u0443\\u0436\\u0435 \\u0438\\u0441\\u043f\\u043e\\u043b\\u044c\\u0437\\u0443\\u0435\\u0442\\u0441\\u044f\"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0438\\u0437\\u043c\\u0435\\u043d\\u0438\\u0442\\u044c {0} {1} \\u0432\\u043e \\u0432\\u0440\\u0435\\u043c\\u044f \\u0430\\u043d\\u0430\\u043b\\u0438\\u0437\\u0430\"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"\\u0421\\u0430\\u043c\\u043e\\u043f\\u0440\\u0438\\u0441\\u0432\\u043e\\u0435\\u043d\\u0438\\u0435 \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"\\u041d\\u0435\\u043b\\u044c\\u0437\\u044f \\u0443\\u043a\\u0430\\u0437\\u044b\\u0432\\u0430\\u0442\\u044c \\u0438\\u043d\\u0444\\u043e\\u0440\\u043c\\u0430\\u0446\\u0438\\u044e \\u043e \\u043f\\u043e\\u043b\\u044c\\u0437\\u043e\\u0432\\u0430\\u0442\\u0435\\u043b\\u0435, \\u0435\\u0441\\u043b\\u0438 \\u043d\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d \\u0445\\u043e\\u0441\\u0442\"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"\\u041d\\u0435\\u043b\\u044c\\u0437\\u044f \\u0443\\u043a\\u0430\\u0437\\u044b\\u0432\\u0430\\u0442\\u044c \\u043f\\u043e\\u0440\\u0442, \\u0435\\u0441\\u043b\\u0438 \\u043d\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d \\u0445\\u043e\\u0441\\u0442\"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"\\u041d\\u0435\\u043b\\u044c\\u0437\\u044f \\u0443\\u043a\\u0430\\u0437\\u044b\\u0432\\u0430\\u0442\\u044c \\u0441\\u0442\\u0440\\u043e\\u043a\\u0443 \\u0437\\u0430\\u043f\\u0440\\u043e\\u0441\\u0430 \\u0432 \\u0441\\u0442\\u0440\\u043e\\u043a\\u0435 \\u043f\\u0443\\u0442\\u0438 \\u0438 \\u0437\\u0430\\u043f\\u0440\\u043e\\u0441\\u0430\"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0437\\u0430\\u0434\\u0430\\u0442\\u044c \\u0444\\u0440\\u0430\\u0433\\u043c\\u0435\\u043d\\u0442 \\u043e\\u0434\\u043d\\u043e\\u0432\\u0440\\u0435\\u043c\\u0435\\u043d\\u043d\\u043e \\u0434\\u043b\\u044f \\u043f\\u0443\\u0442\\u0438 \\u0438 \\u0444\\u0440\\u0430\\u0433\\u043c\\u0435\\u043d\\u0442\\u0430\"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0438\\u043d\\u0438\\u0446\\u0438\\u0430\\u043b\\u0438\\u0437\\u0438\\u0440\\u043e\\u0432\\u0430\\u0442\\u044c URI \\u0441 \\u043f\\u0443\\u0441\\u0442\\u044b\\u043c\\u0438 \\u043f\\u0430\\u0440\\u0430\\u043c\\u0435\\u0442\\u0440\\u0430\\u043c\\u0438\"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"\\u041c\\u0435\\u0442\\u043e\\u0434 \\u0435\\u0449\\u0435 \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f\"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"\\u041f\\u0435\\u0440\\u0435\\u0437\\u0430\\u043f\\u0443\\u0441\\u043a IncrementalSAXSource_Filter \\u0432 \\u043d\\u0430\\u0441\\u0442\\u043e\\u044f\\u0449\\u0435\\u0435 \\u0432\\u0440\\u0435\\u043c\\u044f \\u043d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u0435\\u043d\"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"\\u041d\\u0435\\u043b\\u044c\\u0437\\u044f \\u043f\\u0440\\u0438\\u043c\\u0435\\u043d\\u044f\\u0442\\u044c XMLReader \\u0434\\u043e startParse\"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"Traverser \\u0434\\u043b\\u044f \\u043e\\u0441\\u0438 \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f: {0}\"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"ListingErrorHandler \\u0441\\u043e\\u0437\\u0434\\u0430\\u043d \\u0441 \\u043f\\u0443\\u0441\\u0442\\u044b\\u043c PrintWriter!\"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u044b\\u0439 \\u0418\\u0414 \\u0441\\u0438\\u0441\\u0442\\u0435\\u043c\\u044b\"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"\\u041d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u043e\\u0435 \\u0440\\u0430\\u0441\\u043f\\u043e\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0435 \\u0438\\u043b\\u0438 \\u043e\\u0448\\u0438\\u0431\\u043a\\u0430\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"\\u041f\\u0440\\u0435\\u0444\\u0438\\u043a\\u0441 \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u043e\\u0431\\u0435\\u0441\\u043f\\u0435\\u0447\\u0438\\u0432\\u0430\\u0442\\u044c \\u043f\\u0440\\u0435\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435 \\u0432 \\u043f\\u0440\\u043e\\u0441\\u0442\\u0440\\u0430\\u043d\\u0441\\u0442\\u0432\\u043e \\u0438\\u043c\\u0435\\u043d: {0}\"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"createDocument() \\u043d\\u0435 \\u043f\\u043e\\u0434\\u0434\\u0435\\u0440\\u0436\\u0438\\u0432\\u0430\\u0435\\u0442\\u0441\\u044f XPathContext!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"\\u0423 \\u0430\\u0442\\u0440\\u0438\\u0431\\u0443\\u0442\\u0430 child \\u043d\\u0435\\u0442 \\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442\\u0430-\\u0432\\u043b\\u0430\\u0434\\u0435\\u043b\\u044c\\u0446\\u0430!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"\\u0423 \\u0430\\u0442\\u0440\\u0438\\u0431\\u0443\\u0442\\u0430 child \\u043d\\u0435\\u0442 \\u044d\\u043b\\u0435\\u043c\\u0435\\u043d\\u0442\\u0430 \\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442\\u0430-\\u0432\\u043b\\u0430\\u0434\\u0435\\u043b\\u044c\\u0446\\u0430!\"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"\\u041f\\u0440\\u0435\\u0434\\u0443\\u043f\\u0440\\u0435\\u0436\\u0434\\u0435\\u043d\\u0438\\u0435: \\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0432\\u044b\\u0432\\u0435\\u0441\\u0442\\u0438 \\u0442\\u0435\\u043a\\u0441\\u0442 \\u043f\\u0435\\u0440\\u0435\\u0434 \\u044d\\u043b\\u0435\\u043c\\u0435\\u043d\\u0442\\u043e\\u043c \\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442\\u0430! \\u041f\\u0440\\u043e\\u0438\\u0433\\u043d\\u043e\\u0440\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d...\"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"\\u0412 DOM \\u043c\\u043e\\u0436\\u0435\\u0442 \\u0431\\u044b\\u0442\\u044c \\u0442\\u043e\\u043b\\u044c\\u043a\\u043e \\u043e\\u0434\\u0438\\u043d \\u043a\\u043e\\u0440\\u043d\\u0435\\u0432\\u043e\\u0439 \\u044d\\u043b\\u0435\\u043c\\u0435\\u043d\\u0442!\"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"\\u041f\\u0443\\u0441\\u0442\\u043e\\u0439 \\u0430\\u0440\\u0433\\u0443\\u043c\\u0435\\u043d\\u0442 'localName'\"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"\\u041b\\u043e\\u043a\\u0430\\u043b\\u044c\\u043d\\u043e\\u0435 \\u0438\\u043c\\u044f \\u0432 QNAME \\u0434\\u043e\\u043b\\u0436\\u043d\\u043e \\u0431\\u044b\\u0442\\u044c \\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u043c \\u0438\\u043c\\u0435\\u043d\\u0435\\u043c NCName\"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"\\u041f\\u0440\\u0435\\u0444\\u0438\\u043a\\u0441 \\u0432 QNAME \\u0434\\u043e\\u043b\\u0436\\u0435\\u043d \\u0431\\u044b\\u0442\\u044c \\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u044b\\u043c \\u0438\\u043c\\u0435\\u043d\\u0435\\u043c NCName\"},\n\n    { \"BAD_CODE\", \"\\u041f\\u0430\\u0440\\u0430\\u043c\\u0435\\u0442\\u0440 createMessage \\u043b\\u0435\\u0436\\u0438\\u0442 \\u0432\\u043d\\u0435 \\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\\u0433\\u043e \\u0434\\u0438\\u0430\\u043f\\u0430\\u0437\\u043e\\u043d\\u0430\"},\n    { \"FORMAT_FAILED\", \"\\u0418\\u0441\\u043a\\u043b\\u044e\\u0447\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u0430\\u044f \\u0441\\u0438\\u0442\\u0443\\u0430\\u0446\\u0438\\u044f \\u043f\\u0440\\u0438 \\u0432\\u044b\\u0437\\u043e\\u0432\\u0435 messageFormat\"},\n    { \"line\", \"\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0441\\u0442\\u0440\\u043e\\u043a\\u0438\"},\n    { \"column\",\"\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0441\\u0442\\u043e\\u043b\\u0431\\u0446\\u0430\"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"\\u041a\\u043b\\u0430\\u0441\\u0441 \\u0441\\u0435\\u0440\\u0438\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440\\u0430 ''{0}'' \\u043d\\u0435 \\u0440\\u0435\\u0430\\u043b\\u0438\\u0437\\u0443\\u0435\\u0442 org.xml.sax.ContentHandler.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"\\u0420\\u0435\\u0441\\u0443\\u0440\\u0441 [ {0} ] \\u043d\\u0435 \\u043d\\u0430\\u0439\\u0434\\u0435\\u043d.\\n{1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"\\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044c \\u0440\\u0435\\u0441\\u0443\\u0440\\u0441 [ {0} ]: {1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"\\u0420\\u0430\\u0437\\u043c\\u0435\\u0440 \\u0431\\u0443\\u0444\\u0435\\u0440\\u0430 <=0\" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"\\u041e\\u0431\\u043d\\u0430\\u0440\\u0443\\u0436\\u0435\\u043d\\u043e \\u043d\\u0435\\u0434\\u043e\\u043f\\u0443\\u0441\\u0442\\u0438\\u043c\\u043e\\u0435 \\u0437\\u043d\\u0430\\u0447\\u0435\\u043d\\u0438\\u0435 UTF-16: {0} ?\" },\n\n    {ER_OIERROR,\n      \"\\u041e\\u0448\\u0438\\u0431\\u043a\\u0430 \\u0432\\u0432\\u043e\\u0434\\u0430-\\u0432\\u044b\\u0432\\u043e\\u0434\\u0430\" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"\\u041d\\u0435\\u0432\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u0434\\u043e\\u0431\\u0430\\u0432\\u0438\\u0442\\u044c \\u0430\\u0442\\u0440\\u0438\\u0431\\u0443\\u0442 {0} \\u043f\\u043e\\u0441\\u043b\\u0435 \\u0434\\u043e\\u0447\\u0435\\u0440\\u043d\\u0438\\u0445 \\u0443\\u0437\\u043b\\u043e\\u0432 \\u0438\\u043b\\u0438 \\u043f\\u0435\\u0440\\u0435\\u0434 \\u0441\\u043e\\u0437\\u0434\\u0430\\u043d\\u0438\\u0435\\u043c \\u044d\\u043b\\u0435\\u043c\\u0435\\u043d\\u0442\\u0430. \\u0410\\u0442\\u0440\\u0438\\u0431\\u0443\\u0442 \\u0431\\u0443\\u0434\\u0435\\u0442 \\u043f\\u0440\\u043e\\u0438\\u0433\\u043d\\u043e\\u0440\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d. \"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"\\u041f\\u0440\\u043e\\u0441\\u0442\\u0440\\u0430\\u043d\\u0441\\u0442\\u0432\\u043e \\u0438\\u043c\\u0435\\u043d \\u0434\\u043b\\u044f \\u043f\\u0440\\u0435\\u0444\\u0438\\u043a\\u0441\\u0430 ''{0}'' \\u043d\\u0435 \\u043e\\u0431\\u044a\\u044f\\u0432\\u043b\\u0435\\u043d\\u043e.\" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"\\u0410\\u0442\\u0440\\u0438\\u0431\\u0443\\u0442 ''{0}'' \\u0432\\u043d\\u0435 \\u044d\\u043b\\u0435\\u043c\\u0435\\u043d\\u0442\\u0430.\" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"\\u041e\\u0431\\u044a\\u044f\\u0432\\u043b\\u0435\\u043d\\u0438\\u0435 \\u043f\\u0440\\u043e\\u0441\\u0442\\u0440\\u0430\\u043d\\u0441\\u0442\\u0432\\u0430 \\u0438\\u043c\\u0435\\u043d ''{0}''=''{1}'' \\u0432\\u043d\\u0435 \\u044d\\u043b\\u0435\\u043c\\u0435\\u043d\\u0442\\u0430.\" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"\\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044c ''{0}'' (\\u043f\\u0440\\u043e\\u0432\\u0435\\u0440\\u044c\\u0442\\u0435 CLASSPATH), \\u043f\\u0440\\u0438\\u043c\\u0435\\u043d\\u044f\\u044e\\u0442\\u0441\\u044f \\u0437\\u043d\\u0430\\u0447\\u0435\\u043d\\u0438\\u044f \\u043f\\u043e \\u0443\\u043c\\u043e\\u043b\\u0447\\u0430\\u043d\\u0438\\u044e\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"\\u041d\\u0435 \\u0443\\u0434\\u0430\\u043b\\u043e\\u0441\\u044c \\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044c \\u0444\\u0430\\u0439\\u043b \\u0441\\u0432\\u043e\\u0439\\u0441\\u0442\\u0432 ''{0}'' \\u0434\\u043b\\u044f \\u043c\\u0435\\u0442\\u043e\\u0434\\u0430 \\u0432\\u044b\\u0432\\u043e\\u0434\\u0430 ''{1}'' (\\u043f\\u0440\\u043e\\u0432\\u0435\\u0440\\u044c\\u0442\\u0435 CLASSPATH)\" }\n\n\n  };\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"en\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"en\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "camel-1.4-2557", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/jms/JmsPollingConsumer.java", "language": "java", "name": "org.apache.camel.component.jms.JmsPollingConsumer", "code": "public class JmsPollingConsumer extends PollingConsumerSupport<JmsExchange> {\n    private JmsOperations template;\n\n    public JmsPollingConsumer(JmsEndpoint endpoint, JmsOperations template) {\n        super(endpoint);\n        this.template = template;\n    }\n\n    @Override\n    public JmsEndpoint getEndpoint() {\n        return (JmsEndpoint)super.getEndpoint();\n    }\n\n    public JmsExchange receiveNoWait() {\n        return receive(0);\n    }\n\n    public JmsExchange receive() {\n        return receive(-1);\n    }\n\n    public JmsExchange receive(long timeout) {\n        setReceiveTimeout(timeout);\n        Message message = template.receive();\n        if (message != null) {\n            return getEndpoint().createExchange(message);\n        }\n        return null;\n    }\n\n    protected void doStart() throws Exception {\n    }\n\n    protected void doStop() throws Exception {\n    }\n\n    protected void setReceiveTimeout(long timeout) {\n        if (template instanceof JmsTemplate) {\n            JmsTemplate jmsTemplate = (JmsTemplate)template;\n            jmsTemplate.setReceiveTimeout(timeout);\n        } else if (template instanceof JmsTemplate102) {\n            JmsTemplate102 jmsTemplate102 = (JmsTemplate102)template;\n            jmsTemplate102.setReceiveTimeout(timeout);\n        } else {\n            throw new IllegalArgumentException(\"Cannot set the receiveTimeout property on unknown JmsOperations type: \" + template);", "functions": [{"function_name": "getEndpoint", "code": "    @Override\n    public JmsEndpoint getEndpoint() {\n        return (JmsEndpoint)super.getEndpoint();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "receiveNoWait", "code": "    public JmsExchange receiveNoWait() {\n        return receive(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "receive", "code": "    public JmsExchange receive() {\n        return receive(-1);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "receive", "code": "    public JmsExchange receive(long timeout) {\n        setReceiveTimeout(timeout);\n        Message message = template.receive();\n        if (message != null) {\n            return getEndpoint().createExchange(message);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [2, 8], [6, 9], [3, 10], [8, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 2], [9, 6], [10, 3], [11, 8], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setReceiveTimeout", "code": "    protected void setReceiveTimeout(long timeout) {\n        if (template instanceof JmsTemplate) {\n            JmsTemplate jmsTemplate = (JmsTemplate)template;\n            jmsTemplate.setReceiveTimeout(timeout);\n        } else if (template instanceof JmsTemplate102) {\n            JmsTemplate102 jmsTemplate102 = (JmsTemplate102)template;\n            jmsTemplate102.setReceiveTimeout(timeout);\n        } else {\n            throw new IllegalArgumentException(\"Cannot set the receiveTimeout property on unknown JmsOperations type: \" + template);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [3, 7], [3, 8], [1, 9], [7, 10], [3, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 3], [8, 3], [9, 1], [10, 7], [11, 3], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "JmsPollingConsumer", "code": "    public JmsPollingConsumer(JmsEndpoint endpoint, JmsOperations template) {\n        super(endpoint);\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.4-2516", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/jcr/JcrEndpoint.java", "language": "java", "name": "org.apache.camel.component.jcr.JcrEndpoint", "code": "public class JcrEndpoint extends DefaultEndpoint<DefaultExchange> {\n\n    private Credentials credentials;\n    private Repository repository;\n    private String base;\n\n    @SuppressWarnings(\"unchecked\")\n    protected JcrEndpoint(String endpointUri, JcrComponent component) {\n        super(endpointUri, component);\n        try {\n            URI uri = new URI(endpointUri);\n            if (uri.getUserInfo() != null && uri.getAuthority() != null) {\n                this.credentials = new SimpleCredentials(uri.getUserInfo(), uri.getAuthority().toCharArray());\n            }\n            this.repository = (Repository) component.getCamelContext().getRegistry().lookup(uri.getHost());\n            if (repository == null) {\n                throw new RuntimeCamelException(\"No JCR repository defined under '\" + uri.getHost() + \"'\");\n            }\n            this.base = uri.getPath().replaceAll(\"^/\", \"\");\n        } catch (URISyntaxException e) {\n            throw new IllegalArgumentException(\"Invalid URI: \" + endpointUri, e);\n        }\n    }\n\n    public JcrEndpoint(String endpointUri, String base, Credentials credentials, Repository repository) {\n        super(endpointUri);\n        this.base = base;\n        this.credentials = credentials;\n        this.repository = repository;\n    }\n\n    /**\n     * Currently unsupported\n     * @throws RuntimeCamelException\n     */\n    public Consumer<DefaultExchange> createConsumer(Processor processor) throws Exception {\n        throw new RuntimeCamelException(\"No consumer endpoint support for JCR available\");\n    }\n\n    /**\n     * Creates a new {@link Producer} \n     */\n    public Producer<DefaultExchange> createProducer() throws Exception {\n        return new JcrProducer(this);\n    }\n\n    /**\n     * {@inheritDoc}\n     */\n    public boolean isSingleton() {\n        return false;\n    }\n\n    /**\n     * Get the {@link Repository}\n     * \n     * @return the repository\n     */\n    protected Repository getRepository() {\n        return repository;\n    }\n\n    /**\n     * Get the {@link Credentials} for establishing the JCR repository connection\n     * \n     * @return the credentials\n     */\n    protected Credentials getCredentials() {\n        return credentials;\n    }\n\n    /**\n     * Get the base node when accessing the reposititory\n     * \n     * @return the base node\n     */\n    protected String getBase() {\n        return base;", "functions": [{"function_name": "createConsumer", "code": "    public Consumer<DefaultExchange> createConsumer(Processor processor) throws Exception {\n        throw new RuntimeCamelException(\"No consumer endpoint support for JCR available\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createProducer", "code": "    public Producer<DefaultExchange> createProducer() throws Exception {\n        return new JcrProducer(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRepository", "code": "    protected Repository getRepository() {\n        return repository;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCredentials", "code": "    protected Credentials getCredentials() {\n        return credentials;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBase", "code": "    protected String getBase() {\n        return base;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "JcrEndpoint", "code": "    @SuppressWarnings(\"unchecked\")\n    protected JcrEndpoint(String endpointUri, JcrComponent component) {\n        super(endpointUri, component);\n        try {\n            URI uri = new URI(endpointUri);\n            if (uri.getUserInfo() != null && uri.getAuthority() != null) {\n                this.credentials = new SimpleCredentials(uri.getUserInfo(), uri.getAuthority().toCharArray());\n            }\n            this.repository = (Repository) component.getCamelContext().getRegistry().lookup(uri.getHost());\n            if (repository == null) {\n                throw new RuntimeCamelException(\"No JCR repository defined under '\" + uri.getHost() + \"'\");\n            }\n            this.base = uri.getPath().replaceAll(\"^/\", \"\");\n        } catch (URISyntaxException e) {\n            throw new IllegalArgumentException(\"Invalid URI: \" + endpointUri, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "IF", "VAR_DECL", "THROW_RAISE", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [1, 10], [6, 11], [1, 12], [7, 13], [9, 14], [10, 15], [6, 16], [11, 17], [13, 18], [13, 19], [8, 20], [14, 21], [15, 22], [16, 23], [12, 24], [7, 25], [18, 26], [18, 27], [19, 28], [19, 29], [21, 30], [22, 31], [22, 32], [23, 33], [24, 34], [24, 35], [25, 36], [33, 37], [33, 38], [34, 39], [36, 40], [36, 41], [38, 42], [38, 43], [40, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 1], [11, 6], [12, 1], [13, 7], [14, 9], [15, 10], [16, 6], [17, 11], [18, 13], [19, 13], [20, 8], [21, 14], [22, 15], [23, 16], [24, 12], [25, 7], [26, 18], [27, 18], [28, 19], [29, 19], [30, 21], [31, 22], [32, 22], [33, 23], [34, 24], [35, 24], [36, 25], [37, 33], [38, 33], [39, 34], [40, 36], [41, 36], [42, 38], [43, 38], [44, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "JcrEndpoint", "code": "    public JcrEndpoint(String endpointUri, String base, Credentials credentials, Repository repository) {\n        super(endpointUri);\n        this.base = base;\n        this.credentials = credentials;\n        this.repository = repository;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "camel-1.0-1535", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/Exchange.java", "language": "java", "name": "org.apache.camel.Exchange", "code": "public interface Exchange  {\n    \n    /**\n     * Returns the exchange id\n     * @return the unique id of the exchange\n     */\n    String getExchangeId();\n    \n    /**\n     * Set the exchange id\n     * @param id\n     */\n    void setExchangeId(String id);\n\n\n    /**\n     * Returns a property associated with this exchange by name\n     *\n     * @param name the name of the property\n     * @return the value of the given header or null if there is no property for the given name\n     */\n    Object getProperty(String name);\n\n\n    /**\n     * Returns a property associated with this exchange by name and specifying the type required\n     *\n     * @param name the name of the property\n     * @param type the type of the property\n     * @return the value of the given header or null if there is no property for the given name or\n     * null if it cannot be converted to the given type\n     */\n    <T> T getProperty(String name, Class<T> type);\n\n    /**\n     * Sets a property on the exchange\n     *\n     * @param name of the property\n     * @param value to associate with the name\n     */\n    void setProperty(String name, Object value);\n\n    /**\n     * Returns all of the properties associated with the exchange\n     *\n     * @return all the headers in a Map\n     */\n    Map<String, Object> getProperties();\n\n    \n    /**\n     * Returns the inbound request message\n     * @return the message\n     */\n    Message getIn();\n\n    /**\n     * Returns the outbound message, lazily creating one if one has not already been associated with this exchange.\n     * If you want to inspect this property but not force lazy creation then invoke the {@link #getOut(boolean)} method\n     * passing in null\n     * \n     * @return the response\n     */\n    Message getOut();\n\n    /**\n     * Returns the outbound message; optionally lazily creating one if one has not been associated with this exchange\n     * @return the response\n     */\n    Message getOut(boolean lazyCreate);\n\n    /**\n     * Returns the fault message\n     * @return the fault\n     */\n    Message getFault();\n\n    /**\n     * Returns the exception associated with this exchange\n     * @return the exception (or null if no faults)\n     */\n    Throwable getException();\n\n    /**\n     * Sets the exception associated with this exchange\n     * @param e\n     */\n    void setException(Throwable e);\n\n    /**\n     * Returns the container so that a processor can resolve endpoints from URIs\n     *\n     * @return the container which owns this exchange\n     */\n    CamelContext getContext();\n\n    /**\n     * Creates a copy of the current message exchange so that it can be forwarded to another\n     * destination\n     */\n    Exchange copy();\n\n    /**\n     * Copies the data into this exchange from the given exchange\n     *\n     * #param source is the source from which headers and messages will be copied \n     */\n    void copyFrom(Exchange source);", "functions": [{"function_name": "getExchangeId", "code": "    String getExchangeId();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setExchangeId", "code": "    void setExchangeId(String id);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProperty", "code": "    Object getProperty(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProperty", "code": "    <T> T getProperty(String name, Class<T> type);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperty", "code": "    void setProperty(String name, Object value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProperties", "code": "    Map<String, Object> getProperties();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIn", "code": "    Message getIn();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getOut", "code": "    Message getOut();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getOut", "code": "    Message getOut(boolean lazyCreate);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFault", "code": "    Message getFault();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getException", "code": "    Throwable getException();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setException", "code": "    void setException(Throwable e);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContext", "code": "    CamelContext getContext();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "copy", "code": "    Exchange copy();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "copyFrom", "code": "    void copyFrom(Exchange source);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.2-1951", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/builder/xml/NamespaceBuilder.java", "language": "java", "name": "org.apache.camel.builder.xml.NamespaceBuilder", "code": "public class NamespaceBuilder {\n    private Map<String, String> namespaces = new HashMap<String, String>();\n\n    public static NamespaceBuilder namespaceContext() {\n        return new NamespaceBuilder();\n    }\n\n    public static NamespaceBuilder namespaceContext(String prefix, String uri) {\n        return new NamespaceBuilder().namespace(prefix, uri);\n    }\n\n    public NamespaceBuilder namespace(String prefix, String uri) {\n        namespaces.put(prefix, uri);\n        return this;\n    }\n\n    /**\n     * Creates a new XPath expression using the current namespaces\n     *\n     * @param xpath the XPath expression\n     * @return a new XPath expression\n     */\n    public XPathBuilder xpath(String xpath) {\n        XPathBuilder answer = XPathBuilder.xpath(xpath);\n        Set<Map.Entry<String, String>> entries = namespaces.entrySet();\n        for (Map.Entry<String, String> entry : entries) {\n            answer.namespace(entry.getKey(), entry.getValue());\n        }\n        return answer;", "functions": [{"function_name": "namespaceContext", "code": "    public static NamespaceBuilder namespaceContext() {\n        return new NamespaceBuilder();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "namespaceContext", "code": "    public static NamespaceBuilder namespaceContext(String prefix, String uri) {\n        return new NamespaceBuilder().namespace(prefix, uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "namespace", "code": "    public NamespaceBuilder namespace(String prefix, String uri) {\n        namespaces.put(prefix, uri);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "xpath", "code": "    public XPathBuilder xpath(String xpath) {\n        XPathBuilder answer = XPathBuilder.xpath(xpath);\n        Set<Map.Entry<String, String>> entries = namespaces.entrySet();\n        for (Map.Entry<String, String> entry : entries) {\n            answer.namespace(entry.getKey(), entry.getValue());\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [2, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 2], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "camel-1.6-2664", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/ResourceBasedEndpoint.java", "language": "java", "name": "org.apache.camel.component.ResourceBasedEndpoint", "code": "public abstract class ResourceBasedEndpoint extends ProcessorEndpoint {\n    protected final transient Log log = LogFactory.getLog(getClass());\n    private final String resourceUri;\n    private ResourceLoader resourceLoader = new DefaultResourceLoader();\n    private Resource resource;\n    private boolean contentCache;\n    private byte[] buffer;\n\n    public ResourceBasedEndpoint(String endpointUri, Component component, String resourceUri, Processor processor) {\n        super(endpointUri, component, processor);\n        this.resourceUri = resourceUri;\n    }\n\n    protected ResourceBasedEndpoint(String endpointUri, Processor processor, String resourceUri) {\n        super(endpointUri, processor);\n        this.resourceUri = resourceUri;\n    }\n\n    public Resource getResource() {\n        if (resource == null) {\n            if (log.isDebugEnabled()) {\n                log.debug(\"Loading resource: \" + resourceUri + \" using: \" + getResourceLoader());\n            }\n            resource = getResourceLoader().getResource(resourceUri);\n            if (resource == null) {\n                throw new IllegalArgumentException(\"Could not find resource for URI: \" + resourceUri + \" using: \" + getResourceLoader());\n            }\n        }\n        return resource;\n    }\n\n    public boolean isContentCache() {\n        return contentCache;\n    }\n\n    /**\n     * Sets wether to use resource content cache or not - default is <tt>false</tt>.\n     *\n     * @see #getResourceAsInputStream()\n     */\n    public void setContentCache(boolean contentCache) {\n        this.contentCache = contentCache;\n    }\n\n    /**\n     * Gets the resource as an input stream considering the cache flag as well.\n     * <p/>\n     * If cache is enabled then the resource content is cached in an internal buffer and this content is\n     * returned to avoid loading the resource over and over again.\n     *\n     * @return  the input stream\n     * @throws IOException is thrown if error loading the content of the resource to the local cache buffer\n     */\n    public InputStream getResourceAsInputStream() throws IOException {\n        if (resource == null) {\n            resource = getResource();\n        }\n        if (contentCache) {\n            synchronized (resource) {\n                if (buffer == null) {\n                    if (log.isDebugEnabled()) {\n                        log.debug(\"Reading resource: \" + resourceUri + \" into the content cache\");\n                    }\n                    buffer = IOConverter.toBytes(resource.getInputStream());\n                }\n            }\n            if (log.isDebugEnabled()) {\n                log.debug(\"Using resource: \" + resourceUri + \" from the content cache\");\n            }\n            return new ByteArrayInputStream(buffer);\n        }\n        return resource.getInputStream();\n    }\n\n    public ResourceLoader getResourceLoader() {\n        return resourceLoader;\n    }\n\n    public void setResourceLoader(ResourceLoader resourceLoader) {\n        this.resourceLoader = resourceLoader;\n    }\n\n    public String getResourceUri() {\n        return resourceUri;", "functions": [{"function_name": "getResource", "code": "    public Resource getResource() {\n        if (resource == null) {\n            if (log.isDebugEnabled()) {\n                log.debug(\"Loading resource: \" + resourceUri + \" using: \" + getResourceLoader());\n            }\n            resource = getResourceLoader().getResource(resourceUri);\n            if (resource == null) {\n                throw new IllegalArgumentException(\"Could not find resource for URI: \" + resourceUri + \" using: \" + getResourceLoader());\n            }\n        }\n        return resource;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [4, 7], [2, 8], [5, 9], [4, 10], [7, 11], [8, 12], [10, 13], [12, 14], [5, 15], [13, 16], [15, 17], [16, 18], [16, 19], [17, 20], [17, 21], [19, 22], [19, 23], [21, 24], [21, 25], [23, 26], [25, 27], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 4], [8, 2], [9, 5], [10, 4], [11, 7], [12, 8], [13, 10], [14, 12], [15, 5], [16, 13], [17, 15], [18, 16], [19, 16], [20, 17], [21, 17], [22, 19], [23, 19], [24, 21], [25, 21], [26, 23], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "isContentCache", "code": "    public boolean isContentCache() {\n        return contentCache;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setContentCache", "code": "    public void setContentCache(boolean contentCache) {\n        this.contentCache = contentCache;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResourceAsInputStream", "code": "    public InputStream getResourceAsInputStream() throws IOException {\n        if (resource == null) {\n            resource = getResource();\n        }\n        if (contentCache) {\n            synchronized (resource) {\n                if (buffer == null) {\n                    if (log.isDebugEnabled()) {\n                        log.debug(\"Reading resource: \" + resourceUri + \" into the content cache\");\n                    }\n                    buffer = IOConverter.toBytes(resource.getInputStream());\n                }\n            }\n            if (log.isDebugEnabled()) {\n                log.debug(\"Using resource: \" + resourceUri + \" from the content cache\");\n            }\n            return new ByteArrayInputStream(buffer);\n        }\n        return resource.getInputStream();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [2, 6], [2, 7], [5, 8], [6, 9], [7, 10], [2, 11], [3, 12], [11, 13], [12, 14], [7, 15], [11, 16], [13, 17], [15, 18], [11, 19], [16, 20], [18, 21], [18, 22], [19, 23], [22, 24], [23, 25], [16, 26], [26, 27], [27, 28], [27, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 2], [7, 2], [8, 5], [9, 6], [10, 7], [11, 2], [12, 3], [13, 11], [14, 12], [15, 7], [16, 11], [17, 13], [18, 15], [19, 11], [20, 16], [21, 18], [22, 18], [23, 19], [24, 22], [25, 23], [26, 16], [27, 26], [28, 27], [29, 27], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getResourceLoader", "code": "    public ResourceLoader getResourceLoader() {\n        return resourceLoader;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResourceLoader", "code": "    public void setResourceLoader(ResourceLoader resourceLoader) {\n        this.resourceLoader = resourceLoader;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResourceUri", "code": "    public String getResourceUri() {\n        return resourceUri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ResourceBasedEndpoint", "code": "    public ResourceBasedEndpoint(String endpointUri, Component component, String resourceUri, Processor processor) {\n        super(endpointUri, component, processor);\n        this.resourceUri = resourceUri;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ResourceBasedEndpoint", "code": "    protected ResourceBasedEndpoint(String endpointUri, Processor processor, String resourceUri) {\n        super(endpointUri, processor);\n        this.resourceUri = resourceUri;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.7-776", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/zip/AsiExtraField.java", "language": "java", "name": "org.apache.tools.zip.AsiExtraField", "code": "public class AsiExtraField implements ZipExtraField, UnixStat, Cloneable {\n\n    private static final ZipShort HEADER_ID = new ZipShort(0x756E);\n    private static final int      WORD = 4;\n    /**\n     * Standard Unix stat(2) file mode.\n     *\n     * @since 1.1\n     */\n    private int mode = 0;\n    /**\n     * User ID.\n     *\n     * @since 1.1\n     */\n    private int uid = 0;\n    /**\n     * Group ID.\n     *\n     * @since 1.1\n     */\n    private int gid = 0;\n    /**\n     * File this entry points to, if it is a symbolic link.\n     *\n     * <p>empty string - if entry is not a symbolic link.</p>\n     *\n     * @since 1.1\n     */\n    private String link = \"\";\n    /**\n     * Is this an entry for a directory?\n     *\n     * @since 1.1\n     */\n    private boolean dirFlag = false;\n\n    /**\n     * Instance used to calculate checksums.\n     *\n     * @since 1.1\n     */\n    private CRC32 crc = new CRC32();\n\n    /** Constructor for AsiExtraField. */\n    public AsiExtraField() {\n    }\n\n    /**\n     * The Header-ID.\n     * @return the value for the header id for this extrafield\n     * @since 1.1\n     */\n    public ZipShort getHeaderId() {\n        return HEADER_ID;\n    }\n\n    /**\n     * Length of the extra field in the local file data - without\n     * Header-ID or length specifier.\n     * @return a <code>ZipShort</code> for the length of the data of this extra field\n     * @since 1.1\n     */\n    public ZipShort getLocalFileDataLength() {\n                          return(getLinkedFile().getBytes().length);\n    }\n\n    /**\n     * Delegate to local file data.\n     * @return the centralDirectory length\n     * @since 1.1\n     */\n    public ZipShort getCentralDirectoryLength() {\n        return getLocalFileDataLength();\n    }\n\n    /**\n     * The actual data to put into local file data - without Header-ID\n     * or length specifier.\n     * @return get the data\n     * @since 1.1\n     */\n    public byte[] getLocalFileDataData() {\n        byte[] data = new byte[getLocalFileDataLength().getValue() - WORD];\n        System.arraycopy(ZipShort.getBytes(getMode()), 0, data, 0, 2);\n\n        byte[] linkArray = getLinkedFile().getBytes();\n        System.arraycopy(ZipLong.getBytes(linkArray.length),\n                         0, data, 2, WORD);\n\n        System.arraycopy(ZipShort.getBytes(getUserId()),\n                         0, data, 6, 2);\n        System.arraycopy(ZipShort.getBytes(getGroupId()),\n                         0, data, 8, 2);\n\n        System.arraycopy(linkArray, 0, data, 10, linkArray.length);\n\n        crc.reset();\n        crc.update(data);\n        long checksum = crc.getValue();\n\n        byte[] result = new byte[data.length + WORD];\n        System.arraycopy(ZipLong.getBytes(checksum), 0, result, 0, WORD);\n        System.arraycopy(data, 0, result, WORD, data.length);\n        return result;\n    }\n\n    /**\n     * Delegate to local file data.\n     * @return the local file data\n     * @since 1.1\n     */\n    public byte[] getCentralDirectoryData() {\n        return getLocalFileDataData();\n    }\n\n    /**\n     * Set the user id.\n     * @param uid the user id\n     * @since 1.1\n     */\n    public void setUserId(int uid) {\n        this.uid = uid;\n    }\n\n    /**\n     * Get the user id.\n     * @return the user id\n     * @since 1.1\n     */\n    public int getUserId() {\n        return uid;\n    }\n\n    /**\n     * Set the group id.\n     * @param gid the group id\n     * @since 1.1\n     */\n    public void setGroupId(int gid) {\n        this.gid = gid;\n    }\n\n    /**\n     * Get the group id.\n     * @return the group id\n     * @since 1.1\n     */\n    public int getGroupId() {\n        return gid;\n    }\n\n    /**\n     * Indicate that this entry is a symbolic link to the given filename.\n     *\n     * @param name Name of the file this entry links to, empty String\n     *             if it is not a symbolic link.\n     *\n     * @since 1.1\n     */\n    public void setLinkedFile(String name) {\n        link = name;\n        mode = getMode(mode);\n    }\n\n    /**\n     * Name of linked file\n     *\n     * @return name of the file this entry links to if it is a\n     *         symbolic link, the empty string otherwise.\n     *\n     * @since 1.1\n     */\n    public String getLinkedFile() {\n        return link;\n    }\n\n    /**\n     * Is this entry a symbolic link?\n     * @return true if this is a symbolic link\n     * @since 1.1\n     */\n    public boolean isLink() {\n        return getLinkedFile().length() != 0;\n    }\n\n    /**\n     * File mode of this file.\n     * @param mode the file mode\n     * @since 1.1\n     */\n    public void setMode(int mode) {\n        this.mode = getMode(mode);\n    }\n\n    /**\n     * File mode of this file.\n     * @return the file mode\n     * @since 1.1\n     */\n    public int getMode() {\n        return mode;\n    }\n\n    /**\n     * Indicate whether this entry is a directory.\n     * @param dirFlag if true, this entry is a directory\n     * @since 1.1\n     */\n    public void setDirectory(boolean dirFlag) {\n        this.dirFlag = dirFlag;\n        mode = getMode(mode);\n    }\n\n    /**\n     * Is this entry a directory?\n     * @return true if this entry is a directory\n     * @since 1.1\n     */\n    public boolean isDirectory() {\n        return dirFlag && !isLink();\n    }\n\n    /**\n     * Populate data from this array as if it was in local file data.\n     * @param data an array of bytes\n     * @param offset the start offset\n     * @param length the number of bytes in the array from offset\n     * @since 1.1\n     * @throws ZipException on error\n     */\n    public void parseFromLocalFileData(byte[] data, int offset, int length)\n        throws ZipException {\n\n        long givenChecksum = ZipLong.getValue(data, offset);\n        byte[] tmp = new byte[length - WORD];\n        System.arraycopy(data, offset + WORD, tmp, 0, length - WORD);\n        crc.reset();\n        crc.update(tmp);\n        long realChecksum = crc.getValue();\n        if (givenChecksum != realChecksum) {\n            throw new ZipException(\"bad CRC checksum \"\n                                   + Long.toHexString(givenChecksum)\n                                   + \" instead of \"\n                                   + Long.toHexString(realChecksum));\n        }\n\n        int newMode = ZipShort.getValue(tmp, 0);\n        byte[] linkArray = new byte[(int) ZipLong.getValue(tmp, 2)];\n        uid = ZipShort.getValue(tmp, 6);\n        gid = ZipShort.getValue(tmp, 8);\n\n        if (linkArray.length == 0) {\n            link = \"\";\n        } else {\n            System.arraycopy(tmp, 10, linkArray, 0, linkArray.length);\n            link = new String(linkArray);\n        }\n        setDirectory((newMode & DIR_FLAG) != 0);\n        setMode(newMode);\n    }\n\n    /**\n     * Get the file mode for given permissions with the correct file type.\n     * @param mode the mode\n     * @return the type with the mode\n     * @since 1.1\n     */\n    protected int getMode(int mode) {\n        int type = FILE_FLAG;\n        if (isLink()) {\n            type = LINK_FLAG;\n        } else if (isDirectory()) {\n            type = DIR_FLAG;\n        }\n        return type | (mode & PERM_MASK);", "functions": [{"function_name": "getHeaderId", "code": "    public ZipShort getHeaderId() {\n        return HEADER_ID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalFileDataLength", "code": "    public ZipShort getLocalFileDataLength() {\n                          return(getLinkedFile().getBytes().length);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCentralDirectoryLength", "code": "    public ZipShort getCentralDirectoryLength() {\n        return getLocalFileDataLength();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalFileDataData", "code": "    public byte[] getLocalFileDataData() {\n        byte[] data = new byte[getLocalFileDataLength().getValue() - WORD];\n        System.arraycopy(ZipShort.getBytes(getMode()), 0, data, 0, 2);\n\n        byte[] linkArray = getLinkedFile().getBytes();\n        System.arraycopy(ZipLong.getBytes(linkArray.length),\n                         0, data, 2, WORD);\n\n        System.arraycopy(ZipShort.getBytes(getUserId()),\n                         0, data, 6, 2);\n        System.arraycopy(ZipShort.getBytes(getGroupId()),\n                         0, data, 8, 2);\n\n        System.arraycopy(linkArray, 0, data, 10, linkArray.length);\n\n        crc.reset();\n        crc.update(data);\n        long checksum = crc.getValue();\n\n        byte[] result = new byte[data.length + WORD];\n        System.arraycopy(ZipLong.getBytes(checksum), 0, result, 0, WORD);\n        System.arraycopy(data, 0, result, WORD, data.length);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [6, 15], [7, 16], [7, 17], [7, 18], [3, 19], [10, 20], [10, 21], [11, 22], [11, 23], [11, 24], [11, 25], [12, 26], [12, 27], [12, 28], [12, 29], [13, 30], [13, 31], [13, 32], [4, 33], [14, 34], [14, 35], [14, 36], [14, 37], [2, 38], [25, 39], [29, 40], [33, 41], [37, 42], [5, 43], [43, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 6], [16, 7], [17, 7], [18, 7], [19, 3], [20, 10], [21, 10], [22, 11], [23, 11], [24, 11], [25, 11], [26, 12], [27, 12], [28, 12], [29, 12], [30, 13], [31, 13], [32, 13], [33, 4], [34, 14], [35, 14], [36, 14], [37, 14], [38, 2], [39, 25], [40, 29], [41, 33], [42, 37], [43, 5], [44, 43], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "getCentralDirectoryData", "code": "    public byte[] getCentralDirectoryData() {\n        return getLocalFileDataData();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUserId", "code": "    public void setUserId(int uid) {\n        this.uid = uid;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUserId", "code": "    public int getUserId() {\n        return uid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setGroupId", "code": "    public void setGroupId(int gid) {\n        this.gid = gid;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getGroupId", "code": "    public int getGroupId() {\n        return gid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLinkedFile", "code": "    public void setLinkedFile(String name) {\n        link = name;\n        mode = getMode(mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLinkedFile", "code": "    public String getLinkedFile() {\n        return link;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isLink", "code": "    public boolean isLink() {\n        return getLinkedFile().length() != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setMode", "code": "    public void setMode(int mode) {\n        this.mode = getMode(mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMode", "code": "    public int getMode() {\n        return mode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDirectory", "code": "    public void setDirectory(boolean dirFlag) {\n        this.dirFlag = dirFlag;\n        mode = getMode(mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isDirectory", "code": "    public boolean isDirectory() {\n        return dirFlag && !isLink();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "parseFromLocalFileData", "code": "    public void parseFromLocalFileData(byte[] data, int offset, int length)\n        throws ZipException {\n\n        long givenChecksum = ZipLong.getValue(data, offset);\n        byte[] tmp = new byte[length - WORD];\n        System.arraycopy(data, offset + WORD, tmp, 0, length - WORD);\n        crc.reset();\n        crc.update(tmp);\n        long realChecksum = crc.getValue();\n        if (givenChecksum != realChecksum) {\n            throw new ZipException(\"bad CRC checksum \"\n                                   + Long.toHexString(givenChecksum)\n                                   + \" instead of \"\n                                   + Long.toHexString(realChecksum));\n        }\n\n        int newMode = ZipShort.getValue(tmp, 0);\n        byte[] linkArray = new byte[(int) ZipLong.getValue(tmp, 2)];\n        uid = ZipShort.getValue(tmp, 6);\n        gid = ZipShort.getValue(tmp, 8);\n\n        if (linkArray.length == 0) {\n            link = \"\";\n        } else {\n            System.arraycopy(tmp, 10, linkArray, 0, linkArray.length);\n            link = new String(linkArray);\n        }\n        setDirectory((newMode & DIR_FLAG) != 0);\n        setMode(newMode);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [0, 14], [0, 15], [4, 16], [0, 17], [0, 18], [0, 19], [12, 20], [13, 21], [14, 22], [15, 23], [3, 24], [4, 25], [5, 26], [19, 27], [19, 28], [19, 29], [7, 30], [20, 31], [20, 32], [1, 33], [1, 34], [1, 35], [22, 36], [23, 37], [24, 38], [25, 39], [6, 40], [33, 41], [34, 42], [34, 43], [35, 44], [2, 45], [39, 46], [45, 47], [46, 48], [46, 49], [49, 50], [49, 51], [51, 52], [51, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 0], [15, 0], [16, 4], [17, 0], [18, 0], [19, 0], [20, 12], [21, 13], [22, 14], [23, 15], [24, 3], [25, 4], [26, 5], [27, 19], [28, 19], [29, 19], [30, 7], [31, 20], [32, 20], [33, 1], [34, 1], [35, 1], [36, 22], [37, 23], [38, 24], [39, 25], [40, 6], [41, 33], [42, 34], [43, 34], [44, 35], [45, 2], [46, 39], [47, 45], [48, 46], [49, 46], [50, 49], [51, 49], [52, 51], [53, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "getMode", "code": "    protected int getMode(int mode) {\n        int type = FILE_FLAG;\n        if (isLink()) {\n            type = LINK_FLAG;\n        } else if (isDirectory()) {\n            type = DIR_FLAG;\n        }\n        return type | (mode & PERM_MASK);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [5, 8], [6, 9], [2, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 5], [9, 6], [10, 2], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "AsiExtraField", "code": "    public AsiExtraField() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.4-2114", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/http/HttpConsumer.java", "language": "java", "name": "org.apache.camel.component.http.HttpConsumer", "code": "public class HttpConsumer extends DefaultConsumer<HttpExchange> {\n\n    private final HttpEndpoint endpoint;\n\n    public HttpConsumer(HttpEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n    }\n\n    @Override\n    public HttpEndpoint getEndpoint() {\n        return (HttpEndpoint)super.getEndpoint();\n    }\n\n    public HttpBinding getBinding() {\n        return endpoint.getBinding();\n    }\n\n    public String getPath() {\n        return endpoint.getPath();\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        endpoint.connect(this);\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        endpoint.disconnect(this);\n        super.doStop();", "functions": [{"function_name": "getEndpoint", "code": "    @Override\n    public HttpEndpoint getEndpoint() {\n        return (HttpEndpoint)super.getEndpoint();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBinding", "code": "    public HttpBinding getBinding() {\n        return endpoint.getBinding();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPath", "code": "    public String getPath() {\n        return endpoint.getPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        endpoint.connect(this);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        endpoint.disconnect(this);\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HttpConsumer", "code": "    public HttpConsumer(HttpEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "ant-1.4-193", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/listener/Log4jListener.java", "language": "java", "name": "org.apache.tools.ant.listener.Log4jListener", "code": "public class Log4jListener implements BuildListener {\n    static final String LOG4J_CONFIG_PROPERTY = \"log4j.configuration\";\n    \n    private boolean initialized = false;\n    \n    public Log4jListener() {\n        initialized = false;\n        Category cat = Category.getInstance(\"org.apache.tools.ant\");\n        Category rootCat = Category.getRoot();\n        if (!(rootCat.getAllAppenders() instanceof NullEnumeration)) {\n            initialized = true;\n        }\n        else {\n            cat.error(\"No log4j.properties in build area\");\n        }\n    }\n    \n    public void buildStarted(BuildEvent event) {\n        if (initialized) {\n            Category cat = Category.getInstance(Project.class.getName());\n            cat.info(\"Build started.\");\n        }\n    }\n    \n    public void buildFinished(BuildEvent event) {\n        if (initialized) {\n            Category cat = Category.getInstance(Project.class.getName());\n            if (event.getException() == null) {\n                cat.info(\"Build finished.\");\n            }\n            else {\n                cat.error(\"Build finished with error.\", event.getException());\n            }\n        }   \n    }\n    \n    public void targetStarted(BuildEvent event) {\n        if (initialized) {\n            Category cat = Category.getInstance(Target.class.getName());\n            cat.info(\"Target \\\"\" + event.getTarget().getName() + \"\\\" started.\");\n        }\n    }\n    \n    public void targetFinished(BuildEvent event) {\n        if (initialized) {\n            String targetName = event.getTarget().getName();\n            Category cat = Category.getInstance(Target.class.getName());\n            if (event.getException() == null) {\n                cat.info(\"Target \\\"\" + event.getTarget().getName() + \"\\\" finished.\");\n            }\n            else {\n                cat.error(\"Target \\\"\" + event.getTarget().getName() + \"\\\" finished with error.\", event.getException());\n            }\n        } \n    }\n    \n    public void taskStarted(BuildEvent event) {\n        if (initialized) {\n            Task task = event.getTask();\n            Category cat = Category.getInstance(task.getClass().getName());\n            cat.info(\"Task \\\"\" + task.getTaskName() + \"\\\" started.\");\n        }\n    }\n    \n    public void taskFinished(BuildEvent event) {\n        if (initialized) {\n            Task task = event.getTask();\n            Category cat = Category.getInstance(task.getClass().getName());\n            if (event.getException() == null) {\n                cat.info(\"Task \\\"\" + task.getTaskName() + \"\\\" finished.\");\n            }\n            else {\n                cat.error(\"Task \\\"\" + task.getTaskName() + \"\\\" finished with error.\", event.getException());\n            }\n        }\n    }\n    \n    public void messageLogged(BuildEvent event) {\n        if (initialized) {\n            Object categoryObject = event.getTask();\n            if (categoryObject == null) {\n                categoryObject = event.getTarget();\n                if (categoryObject == null) {\n                    categoryObject = event.getProject();\n                }\n            }\n            \n            Category cat = Category.getInstance(categoryObject.getClass().getName());\n            switch (event.getPriority()) {\n                case Project.MSG_ERR:\n                    cat.error(event.getMessage());\n                    break;\n                case Project.MSG_WARN:\n                    cat.warn(event.getMessage());\n                    break;\n                case Project.MSG_INFO:\n                    cat.info(event.getMessage());\n                    break;\n                case Project.MSG_VERBOSE:\n                    cat.debug(event.getMessage());\n                    break;\n                case Project.MSG_DEBUG:\n                    cat.debug(event.getMessage());\n                    break;\n                default:                        \n                    cat.error(event.getMessage());\n                    break;", "functions": [{"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {\n        if (initialized) {\n            Category cat = Category.getInstance(Project.class.getName());\n            cat.info(\"Build started.\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        if (initialized) {\n            Category cat = Category.getInstance(Project.class.getName());\n            if (event.getException() == null) {\n                cat.info(\"Build finished.\");\n            }\n            else {\n                cat.error(\"Build finished with error.\", event.getException());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [5, 6], [5, 7], [4, 8], [3, 9], [3, 10], [8, 11], [9, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 5], [7, 5], [8, 4], [9, 3], [10, 3], [11, 8], [12, 9], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {\n        if (initialized) {\n            Category cat = Category.getInstance(Target.class.getName());\n            cat.info(\"Target \\\"\" + event.getTarget().getName() + \"\\\" started.\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [3, 6], [5, 7], [5, 8], [6, 9], [8, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 3], [7, 5], [8, 5], [9, 6], [10, 8], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {\n        if (initialized) {\n            String targetName = event.getTarget().getName();\n            Category cat = Category.getInstance(Target.class.getName());\n            if (event.getException() == null) {\n                cat.info(\"Target \\\"\" + event.getTarget().getName() + \"\\\" finished.\");\n            }\n            else {\n                cat.error(\"Target \\\"\" + event.getTarget().getName() + \"\\\" finished with error.\", event.getException());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [6, 7], [6, 8], [4, 9], [5, 10], [3, 11], [3, 12], [9, 13], [10, 14], [11, 15], [11, 16], [12, 17], [16, 18], [16, 19], [17, 20], [17, 21], [19, 22], [19, 23], [21, 24], [21, 25], [22, 26], [24, 27], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 6], [8, 6], [9, 4], [10, 5], [11, 3], [12, 3], [13, 9], [14, 10], [15, 11], [16, 11], [17, 12], [18, 16], [19, 16], [20, 17], [21, 17], [22, 19], [23, 19], [24, 21], [25, 21], [26, 22], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {\n        if (initialized) {\n            Task task = event.getTask();\n            Category cat = Category.getInstance(task.getClass().getName());\n            cat.info(\"Task \\\"\" + task.getTaskName() + \"\\\" started.\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [5, 6], [3, 7], [4, 8], [6, 9], [6, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 5], [7, 3], [8, 4], [9, 6], [10, 6], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {\n        if (initialized) {\n            Task task = event.getTask();\n            Category cat = Category.getInstance(task.getClass().getName());\n            if (event.getException() == null) {\n                cat.info(\"Task \\\"\" + task.getTaskName() + \"\\\" finished.\");\n            }\n            else {\n                cat.error(\"Task \\\"\" + task.getTaskName() + \"\\\" finished with error.\", event.getException());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [6, 7], [6, 8], [4, 9], [5, 10], [3, 11], [3, 12], [9, 13], [11, 14], [11, 15], [12, 16], [13, 17], [15, 18], [15, 19], [16, 20], [16, 21], [19, 22], [19, 23], [21, 24], [21, 25], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 6], [8, 6], [9, 4], [10, 5], [11, 3], [12, 3], [13, 9], [14, 11], [15, 11], [16, 12], [17, 13], [18, 15], [19, 15], [20, 16], [21, 16], [22, 19], [23, 19], [24, 21], [25, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {\n        if (initialized) {\n            Object categoryObject = event.getTask();\n            if (categoryObject == null) {\n                categoryObject = event.getTarget();\n                if (categoryObject == null) {\n                    categoryObject = event.getProject();\n                }\n            }\n            \n            Category cat = Category.getInstance(categoryObject.getClass().getName());\n            switch (event.getPriority()) {\n                case Project.MSG_ERR:\n                    cat.error(event.getMessage());\n                    break;\n                case Project.MSG_WARN:\n                    cat.warn(event.getMessage());\n                    break;\n                case Project.MSG_INFO:\n                    cat.info(event.getMessage());\n                    break;\n                case Project.MSG_VERBOSE:\n                    cat.debug(event.getMessage());\n                    break;\n                case Project.MSG_DEBUG:\n                    cat.debug(event.getMessage());\n                    break;\n                default:                        \n                    cat.error(event.getMessage());\n                    break;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "SWITCH", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [5, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [4, 15], [5, 16], [8, 17], [6, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [15, 25], [16, 26], [5, 27], [19, 28], [20, 29], [21, 30], [22, 31], [23, 32], [24, 33], [25, 34], [26, 35], [27, 36], [16, 37], [37, 38], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 5], [9, 3], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 4], [16, 5], [17, 8], [18, 6], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 15], [26, 16], [27, 5], [28, 19], [29, 20], [30, 21], [31, 22], [32, 23], [33, 24], [34, 25], [35, 26], [36, 27], [37, 16], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "Log4jListener", "code": "    public Log4jListener() {\n        initialized = false;\n        Category cat = Category.getInstance(\"org.apache.tools.ant\");\n        Category rootCat = Category.getRoot();\n        if (!(rootCat.getAllAppenders() instanceof NullEnumeration)) {\n            initialized = true;\n        }\n        else {\n            cat.error(\"No log4j.properties in build area\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [2, 7], [3, 8], [5, 9], [1, 10], [1, 11], [8, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 2], [8, 3], [9, 5], [10, 1], [11, 1], [12, 8], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "xalan-2.6-7499", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/Template.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Template", "code": "public final class Template extends TopLevelElement {\n\n    private boolean _disabled = false;\n    private boolean _simplified = false;\n\n    private boolean _isSimpleNamedTemplate = false;\n    \n    private Vector  _parameters = new Vector();\n    \n    public boolean hasParams() {\n\treturn _parameters.size() > 0;\n    }\n\n    public boolean isSimplified() {\n\treturn(_simplified);\n    }\n\n    public void setSimplified() {\n\t_simplified = true;\n    }\n\n    public boolean isSimpleNamedTemplate() {\n    \treturn _isSimpleNamedTemplate;\n    }\n    \n    public void addParameter(Param param) {\n    \t_parameters.addElement(param);\n    }\n    \n    public Vector getParameters() {\n    \treturn _parameters;\n    }\n\n    public void disable() {\n\t_disabled = true;\n    }\n\n    public boolean disabled() {\n\treturn(_disabled);\n    }\n\n    public double getPriority() {\n\treturn _priority;\n    }\n\n    public int getPosition() {\n\treturn(_position);\n    }\n\n    public boolean isNamed() {\n\treturn _name != null;\n    }\n\n    public Pattern getPattern() {\n\treturn _pattern;\n    }\n\n    public QName getName() {\n\treturn _name;\n    }\n\n    public void setName(QName qname) {\n\tif (_name == null) _name = qname;\n    }\n\n    public QName getModeName() {\n\treturn _mode;\n    }\n\n    /**\n     * Compare this template to another. First checks priority, then position.\n     */\n    public int compareTo(Object template) {\n\tTemplate other = (Template)template;\n\tif (_priority > other._priority)\n\t    return 1;\n\telse if (_priority < other._priority)\n\t    return -1;\n\telse if (_position > other._position)\n\t    return 1;\n\telse if (_position < other._position)\n\t    return -1;\n\telse\n\t    return 0;\n    }\n\n    public void display(int indent) {\n\tUtil.println('\\n');\n\tindent(indent);\n\tif (_name != null) {\n\t    indent(indent);\n\t    Util.println(\"name = \" + _name);\n\t}\n\telse if (_pattern != null) {\n\t    indent(indent);\n\t    Util.println(\"match = \" + _pattern.toString());\n\t}\n\tif (_mode != null) {\n\t    indent(indent);\n\t    Util.println(\"mode = \" + _mode);\n\t}\n\tdisplayContents(indent + IndentIncrement);\n    }\n\n    private boolean resolveNamedTemplates(Template other, Parser parser) {\n\n\tif (other == null) return true;\n\n\tSymbolTable stable = parser.getSymbolTable();\n\n\tfinal int us = this.getImportPrecedence();\n\tfinal int them = other.getImportPrecedence();\n\n\tif (us > them) {\n\t    other.disable();\n\t    return true;\n\t}\n\telse if (us < them) {\n\t    stable.addTemplate(other);\n\t    this.disable();\n\t    return true;\n\t}\n\telse {\n\t    return false;\n\t}\n    }\n\n    private Stylesheet _stylesheet = null;\n\n    public Stylesheet getStylesheet() {\n\treturn _stylesheet;\n    }\n\n    public void parseContents(Parser parser) {\n\n\tfinal String name     = getAttribute(\"name\");\n\tfinal String mode     = getAttribute(\"mode\");\n\tfinal String match    = getAttribute(\"match\");\n\tfinal String priority = getAttribute(\"priority\");\n\n\t_stylesheet = super.getStylesheet();\n\n\tif (name.length() > 0) {\n            if (!XMLChar.isValidQName(name)) {\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this);\n                parser.reportError(Constants.ERROR, err);           \n            }                \n\t    _name = parser.getQNameIgnoreDefaultNs(name);\n\t}\n\t\n\tif (mode.length() > 0) {\n            if (!XMLChar.isValidQName(mode)) {\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, mode, this);\n                parser.reportError(Constants.ERROR, err);           \n            } \t\t\n\t    _mode = parser.getQNameIgnoreDefaultNs(mode);\n\t}\n\t\n\tif (match.length() > 0) {\n\t    _pattern = parser.parsePattern(this, \"match\", null);\n\t}\n\n\tif (priority.length() > 0) {\n\t    _priority = Double.parseDouble(priority);\n\t}\n\telse {\n\t    if (_pattern != null)\n\t\t_priority = _pattern.getPriority();\n\t    else\n\t\t_priority = Double.NaN;\n\t}\n\n\t_position = parser.getTemplateIndex();\n\n\tif (_name != null) {\n\t    Template other = parser.getSymbolTable().addTemplate(this);\n\t    if (!resolveNamedTemplates(other, parser)) {\n\t\tErrorMsg err =\n\t\t    new ErrorMsg(ErrorMsg.TEMPLATE_REDEF_ERR, _name, this);\n\t\tparser.reportError(Constants.ERROR, err);\n\t    }\n\t    if (_pattern == null && _mode == null) {\n\t    \t_isSimpleNamedTemplate = true;\n\t    }\n\t}\n\n\tif (_parent instanceof Stylesheet) {\n\t    ((Stylesheet)_parent).addTemplate(this);\n\t}\n\t\n\tparseChildren(parser);\n    }\n\n    /**\n     * When the parser realises that it is dealign with a simplified stylesheet\n     * it will create an empty Stylesheet object with the root element of the\n     * stylesheet (a LiteralElement object) as its only child. The Stylesheet\n     * object will then create this Template object and invoke this method to\n     * force some specific behaviour. What we need to do is:\n     *  o) create a pattern matching on the root node\n     *  o) add the LRE root node (the only child of the Stylesheet) as our\n     *     only child node\n     *  o) set the empty Stylesheet as our parent\n     *  o) set this template as the Stylesheet's only child\n     */\n    public void parseSimplified(Stylesheet stylesheet, Parser parser) {\n\n\t_stylesheet = stylesheet;\n\tsetParent(stylesheet);\n\n\t_name = null;\n\t_mode = null;\n\t_priority = Double.NaN;\n\t_pattern = parser.parsePattern(this, \"/\");\n\n\tfinal Vector contents = _stylesheet.getContents();\n\tfinal SyntaxTreeNode root = (SyntaxTreeNode)contents.elementAt(0);\n\n\tif (root instanceof LiteralElement) {\n\t    addElement(root);\n\t    root.setParent(this);\n\t    contents.set(0, this);\n\t    parser.setTemplate(this);\n\t    root.parseContents(parser);\n\t    parser.setTemplate(null);\n\t}\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_pattern != null) {\n\t    _pattern.typeCheck(stable);\n\t}\n\n\treturn typeCheckContents(stable);\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_disabled) return;\n\tString className = classGen.getClassName();\n\n\tif (_compiled && isNamed()){\n\t    String methodName = Util.escape(_name.toString());\n\t    il.append(classGen.loadTranslet());\n\t    il.append(methodGen.loadDOM());\n\t    il.append(methodGen.loadIterator());\n\t    il.append(methodGen.loadHandler()); \n\t    il.append(methodGen.loadCurrentNode()); \n\t    il.append(new INVOKEVIRTUAL(cpg.addMethodref(className,\n\t\t\t\t\t\t\t methodName,\n\t\t\t\t\t\t\t \"(\"\n\t\t\t\t\t\t\t + DOM_INTF_SIG\n\t\t\t\t\t\t\t + NODE_ITERATOR_SIG\n\t\t\t\t\t\t\t + TRANSLET_OUTPUT_SIG\n\t\t\t\t\t\t\t + \"I)V\")));\n\t    return;\n\t}\n\n\tif (_compiled) return;\n\t_compiled = true; \n\t\t\n\tif (_isSimpleNamedTemplate && methodGen instanceof NamedMethodGenerator) {\n\t    int numParams = _parameters.size();\n\t    NamedMethodGenerator namedMethodGen = (NamedMethodGenerator)methodGen;\n            \n\t    for (int i = 0; i < numParams; i++) {\n\t    \tParam param = (Param)_parameters.elementAt(i);\n\t    \tparam.setLoadInstruction(namedMethodGen.loadParameter(i));\n\t    \tparam.setStoreInstruction(namedMethodGen.storeParameter(i));\n\t    }\n\t}\n        \n        translateContents(classGen, methodGen);\n\til.setPositions(true);", "functions": [{"function_name": "hasParams", "code": "    public boolean hasParams() {\n\treturn _parameters.size() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isSimplified", "code": "    public boolean isSimplified() {\n\treturn(_simplified);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSimplified", "code": "    public void setSimplified() {\n\t_simplified = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSimpleNamedTemplate", "code": "    public boolean isSimpleNamedTemplate() {\n    \treturn _isSimpleNamedTemplate;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addParameter", "code": "    public void addParameter(Param param) {\n    \t_parameters.addElement(param);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParameters", "code": "    public Vector getParameters() {\n    \treturn _parameters;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "disable", "code": "    public void disable() {\n\t_disabled = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "disabled", "code": "    public boolean disabled() {\n\treturn(_disabled);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPriority", "code": "    public double getPriority() {\n\treturn _priority;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPosition", "code": "    public int getPosition() {\n\treturn(_position);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isNamed", "code": "    public boolean isNamed() {\n\treturn _name != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPattern", "code": "    public Pattern getPattern() {\n\treturn _pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "    public QName getName() {\n\treturn _name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(QName qname) {\n\tif (_name == null) _name = qname;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getModeName", "code": "    public QName getModeName() {\n\treturn _mode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compareTo", "code": "    public int compareTo(Object template) {\n\tTemplate other = (Template)template;\n\tif (_priority > other._priority)\n\t    return 1;\n\telse if (_priority < other._priority)\n\t    return -1;\n\telse if (_position > other._position)\n\t    return 1;\n\telse if (_position < other._position)\n\t    return -1;\n\telse\n\t    return 0;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [5, 10], [7, 11], [7, 12], [7, 13], [8, 14], [11, 15], [11, 16], [11, 17], [12, 18], [15, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 5], [11, 7], [12, 7], [13, 7], [14, 8], [15, 11], [16, 11], [17, 11], [18, 12], [19, 15], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "display", "code": "    public void display(int indent) {\n\tUtil.println('\\n');\n\tindent(indent);\n\tif (_name != null) {\n\t    indent(indent);\n\t    Util.println(\"name = \" + _name);\n\t}\n\telse if (_pattern != null) {\n\t    indent(indent);\n\t    Util.println(\"match = \" + _pattern.toString());\n\t}\n\tif (_mode != null) {\n\t    indent(indent);\n\t    Util.println(\"mode = \" + _mode);\n\t}\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [7, 13], [9, 14], [1, 15], [1, 16], [12, 17], [2, 18], [2, 19], [15, 20], [6, 21], [6, 22], [18, 23], [20, 24], [21, 25], [23, 26], [25, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 7], [14, 9], [15, 1], [16, 1], [17, 12], [18, 2], [19, 2], [20, 15], [21, 6], [22, 6], [23, 18], [24, 20], [25, 21], [26, 23], [27, 25], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "resolveNamedTemplates", "code": "    private boolean resolveNamedTemplates(Template other, Parser parser) {\n\n\tif (other == null) return true;\n\n\tSymbolTable stable = parser.getSymbolTable();\n\n\tfinal int us = this.getImportPrecedence();\n\tfinal int them = other.getImportPrecedence();\n\n\tif (us > them) {\n\t    other.disable();\n\t    return true;\n\t}\n\telse if (us < them) {\n\t    stable.addTemplate(other);\n\t    this.disable();\n\t    return true;\n\t}\n\telse {\n\t    return false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [5, 10], [5, 11], [8, 12], [1, 13], [2, 14], [4, 15], [10, 16], [11, 17], [8, 18], [8, 19], [13, 20], [1, 21], [3, 22], [18, 23], [19, 24], [8, 25], [8, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 5], [11, 5], [12, 8], [13, 1], [14, 2], [15, 4], [16, 10], [17, 11], [18, 8], [19, 8], [20, 13], [21, 1], [22, 3], [23, 18], [24, 19], [25, 8], [26, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getStylesheet", "code": "    public Stylesheet getStylesheet() {\n\treturn _stylesheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\n\tfinal String name     = getAttribute(\"name\");\n\tfinal String mode     = getAttribute(\"mode\");\n\tfinal String match    = getAttribute(\"match\");\n\tfinal String priority = getAttribute(\"priority\");\n\n\t_stylesheet = super.getStylesheet();\n\n\tif (name.length() > 0) {\n            if (!XMLChar.isValidQName(name)) {\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this);\n                parser.reportError(Constants.ERROR, err);           \n            }                \n\t    _name = parser.getQNameIgnoreDefaultNs(name);\n\t}\n\t\n\tif (mode.length() > 0) {\n            if (!XMLChar.isValidQName(mode)) {\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, mode, this);\n                parser.reportError(Constants.ERROR, err);           \n            } \t\t\n\t    _mode = parser.getQNameIgnoreDefaultNs(mode);\n\t}\n\t\n\tif (match.length() > 0) {\n\t    _pattern = parser.parsePattern(this, \"match\", null);\n\t}\n\n\tif (priority.length() > 0) {\n\t    _priority = Double.parseDouble(priority);\n\t}\n\telse {\n\t    if (_pattern != null)\n\t\t_priority = _pattern.getPriority();\n\t    else\n\t\t_priority = Double.NaN;\n\t}\n\n\t_position = parser.getTemplateIndex();\n\n\tif (_name != null) {\n\t    Template other = parser.getSymbolTable().addTemplate(this);\n\t    if (!resolveNamedTemplates(other, parser)) {\n\t\tErrorMsg err =\n\t\t    new ErrorMsg(ErrorMsg.TEMPLATE_REDEF_ERR, _name, this);\n\t\tparser.reportError(Constants.ERROR, err);\n\t    }\n\t    if (_pattern == null && _mode == null) {\n\t    \t_isSimpleNamedTemplate = true;\n\t    }\n\t}\n\n\tif (_parent instanceof Stylesheet) {\n\t    ((Stylesheet)_parent).addTemplate(this);\n\t}\n\t\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [0, 15], [3, 16], [4, 17], [5, 18], [6, 19], [0, 20], [2, 21], [2, 22], [2, 23], [14, 24], [15, 25], [3, 26], [16, 27], [16, 28], [17, 29], [17, 30], [5, 31], [18, 32], [18, 33], [6, 34], [19, 35], [19, 36], [7, 37], [8, 38], [9, 39], [10, 40], [21, 41], [22, 42], [26, 43], [3, 44], [4, 45], [5, 46], [31, 47], [6, 48], [34, 49], [37, 50], [38, 51], [39, 52], [40, 53], [41, 54], [41, 55], [22, 56], [23, 57], [26, 58], [26, 59], [43, 60], [44, 61], [45, 62], [46, 63], [31, 64], [48, 65], [34, 66], [21, 67], [54, 68], [55, 69], [22, 70], [57, 71], [59, 72], [62, 73], [62, 74], [31, 75], [34, 76], [67, 77], [56, 78], [64, 79], [66, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 0], [16, 3], [17, 4], [18, 5], [19, 6], [20, 0], [21, 2], [22, 2], [23, 2], [24, 14], [25, 15], [26, 3], [27, 16], [28, 16], [29, 17], [30, 17], [31, 5], [32, 18], [33, 18], [34, 6], [35, 19], [36, 19], [37, 7], [38, 8], [39, 9], [40, 10], [41, 21], [42, 22], [43, 26], [44, 3], [45, 4], [46, 5], [47, 31], [48, 6], [49, 34], [50, 37], [51, 38], [52, 39], [53, 40], [54, 41], [55, 41], [56, 22], [57, 23], [58, 26], [59, 26], [60, 43], [61, 44], [62, 45], [63, 46], [64, 31], [65, 48], [66, 34], [67, 21], [68, 54], [69, 55], [70, 22], [71, 57], [72, 59], [73, 62], [74, 62], [75, 31], [76, 34], [77, 67], [78, 56], [79, 64], [80, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "parseSimplified", "code": "    public void parseSimplified(Stylesheet stylesheet, Parser parser) {\n\n\t_stylesheet = stylesheet;\n\tsetParent(stylesheet);\n\n\t_name = null;\n\t_mode = null;\n\t_priority = Double.NaN;\n\t_pattern = parser.parsePattern(this, \"/\");\n\n\tfinal Vector contents = _stylesheet.getContents();\n\tfinal SyntaxTreeNode root = (SyntaxTreeNode)contents.elementAt(0);\n\n\tif (root instanceof LiteralElement) {\n\t    addElement(root);\n\t    root.setParent(this);\n\t    contents.set(0, this);\n\t    parser.setTemplate(this);\n\t    root.parseContents(parser);\n\t    parser.setTemplate(null);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [3, 13], [7, 14], [9, 15], [10, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [2, 23], [14, 24], [17, 25], [20, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 3], [14, 7], [15, 9], [16, 10], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 2], [24, 14], [25, 17], [26, 20], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_pattern != null) {\n\t    _pattern.typeCheck(stable);\n\t}\n\n\treturn typeCheckContents(stable);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_disabled) return;\n\tString className = classGen.getClassName();\n\n\tif (_compiled && isNamed()){\n\t    String methodName = Util.escape(_name.toString());\n\t    il.append(classGen.loadTranslet());\n\t    il.append(methodGen.loadDOM());\n\t    il.append(methodGen.loadIterator());\n\t    il.append(methodGen.loadHandler()); \n\t    il.append(methodGen.loadCurrentNode()); \n\t    il.append(new INVOKEVIRTUAL(cpg.addMethodref(className,\n\t\t\t\t\t\t\t methodName,\n\t\t\t\t\t\t\t \"(\"\n\t\t\t\t\t\t\t + DOM_INTF_SIG\n\t\t\t\t\t\t\t + NODE_ITERATOR_SIG\n\t\t\t\t\t\t\t + TRANSLET_OUTPUT_SIG\n\t\t\t\t\t\t\t + \"I)V\")));\n\t    return;\n\t}\n\n\tif (_compiled) return;\n\t_compiled = true; \n\t\t\n\tif (_isSimpleNamedTemplate && methodGen instanceof NamedMethodGenerator) {\n\t    int numParams = _parameters.size();\n\t    NamedMethodGenerator namedMethodGen = (NamedMethodGenerator)methodGen;\n            \n\t    for (int i = 0; i < numParams; i++) {\n\t    \tParam param = (Param)_parameters.elementAt(i);\n\t    \tparam.setLoadInstruction(namedMethodGen.loadParameter(i));\n\t    \tparam.setStoreInstruction(namedMethodGen.storeParameter(i));\n\t    }\n\t}\n        \n        translateContents(classGen, methodGen);\n\til.setPositions(true);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [2, 14], [3, 15], [5, 16], [10, 17], [1, 18], [1, 19], [1, 20], [12, 21], [13, 22], [3, 23], [3, 24], [15, 25], [4, 26], [6, 27], [7, 28], [18, 29], [3, 30], [3, 31], [3, 32], [3, 33], [3, 34], [3, 35], [18, 36], [20, 37], [30, 38], [31, 39], [32, 40], [33, 41], [34, 42], [35, 43], [24, 44], [18, 45], [18, 46], [18, 47], [38, 48], [44, 49], [45, 50], [46, 51], [48, 52], [36, 53], [52, 54], [52, 55], [55, 56], [56, 57], [57, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 2], [15, 3], [16, 5], [17, 10], [18, 1], [19, 1], [20, 1], [21, 12], [22, 13], [23, 3], [24, 3], [25, 15], [26, 4], [27, 6], [28, 7], [29, 18], [30, 3], [31, 3], [32, 3], [33, 3], [34, 3], [35, 3], [36, 18], [37, 20], [38, 30], [39, 31], [40, 32], [41, 33], [42, 34], [43, 35], [44, 24], [45, 18], [46, 18], [47, 18], [48, 38], [49, 44], [50, 45], [51, 46], [52, 48], [53, 36], [54, 52], [55, 52], [56, 55], [57, 56], [58, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}], "label": 1}
{"sample_id": "jedit-3.2-3586", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/util/WorkThreadPool.java", "language": "java", "name": "org.gjt.sp.util.WorkThreadPool", "code": "public class WorkThreadPool\n{\n\t/**\n\t * Creates a new work thread pool with the specified number of\n\t * work threads.\n\t * @param name The thread name prefix\n\t * @param count The number of work threads\n\t */\n\tpublic WorkThreadPool(String name, int count)\n\t{\n\t\tlistenerList = new EventListenerList();\n\n\t\tif(count != 0)\n\t\t{\n\t\t\tthreadGroup = new ThreadGroup(name);\n\t\t\tthreads = new WorkThread[count];\n\t\t\tfor(int i = 0; i < threads.length; i++)\n\t\t\t{\n\t\t\t\tthreads[i] = new WorkThread(this,threadGroup,name + \" #\" + (i+1));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tLog.log(Log.WARNING,this,\"Async I/O disabled\");\n\t}\n\n\t/**\n\t * Starts all the threads in this thread pool.\n\t */\n\tpublic void start()\n\t{\n\t\tif(threads != null)\n\t\t{\n\t\t\tfor(int i = 0; i < threads.length; i++)\n\t\t\t{\n\t\t\t\tthreads[i].start();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Adds a work request to the queue.\n\t * @param run The runnable\n\t * @param inAWT If true, will be executed in AWT thread. Otherwise,\n\t * will be executed in work thread\n\t */\n\tpublic void addWorkRequest(Runnable run, boolean inAWT)\n\t{\n\t\tif(threads == null)\n\t\t{\n\t\t\trun.run();\n\t\t\treturn;\n\t\t}\n\n\t\t// if inAWT is set and there are no requests\n\t\t// pending, execute it immediately\n\t\tif(inAWT && requestCount == 0 && awtRequestCount == 0)\n\t\t{\n// \t\t\tLog.log(Log.DEBUG,this,\"AWT immediate: \" + run);\n\n\t\t\tif(SwingUtilities.isEventDispatchThread())\n\t\t\t\trun.run();\n\t\t\telse\n\t\t\t\tSwingUtilities.invokeLater(run);\n\n\t\t\treturn;\n\t\t}\n\n\t\tRequest request = new Request(run);\n\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tif(inAWT)\n\t\t\t{\n\t\t\t\tif(firstAWTRequest == null && lastAWTRequest == null)\n\t\t\t\t\tfirstAWTRequest = lastAWTRequest = request;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlastAWTRequest.next = request;\n\t\t\t\t\tlastAWTRequest = request;\n\t\t\t\t}\n\n\t\t\t\tawtRequestCount++;\n\n\t\t\t\t// if no requests are running, requestDone()\n\t\t\t\t// will not be called, so we must queue the\n\t\t\t\t// AWT runner ourselves.\n\t\t\t\tif(requestCount == 0)\n\t\t\t\t\tqueueAWTRunner();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(firstRequest == null && lastRequest == null)\n\t\t\t\t\tfirstRequest = lastRequest = request;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlastRequest.next = request;\n\t\t\t\t\tlastRequest = request;\n\t\t\t\t}\n\n\t\t\t\trequestCount++;\n\t\t\t}\n\n\t\t\tlock.notify();\n\t\t}\n\t}\n\n\t/**\n\t * Waits until all requests are complete.\n\t */\n\tpublic void waitForRequests()\n\t{\n\t\tif(threads == null)\n\t\t\treturn;\n\n\t\tsynchronized(waitForAllLock)\n\t\t{\n\t\t\twhile(requestCount != 0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\twaitForAllLock.wait();\n\t\t\t\t}\n\t\t\t\tcatch(InterruptedException ie)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,ie);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(SwingUtilities.isEventDispatchThread())\n\t\t{\n\t\t\t// do any queued AWT runnables\n\t\t\tdoAWTRequests();\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeAndWait(new RunRequestsInAWTThread());\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Returns the number of pending requests.\n\t */\n\tpublic int getRequestCount()\n\t{\n\t\treturn requestCount;\n\t}\n\n\t/**\n\t * Returns the number of threads in this pool.\n\t */\n\tpublic int getThreadCount()\n\t{\n\t\tif(threads == null)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn threads.length;\n\t}\n\n\t/**\n\t * Returns the specified thread.\n\t * @param index The index of the thread\n\t */\n\tpublic WorkThread getThread(int index)\n\t{\n\t\treturn threads[index];\n\t}\n\n\t/**\n\t * Adds a progress listener to this thread pool.\n\t * @param listener The listener\n\t */\n\tpublic final void addProgressListener(WorkThreadProgressListener listener)\n\t{\n\t\tlistenerList.add(WorkThreadProgressListener.class,listener);\n\t}\n\n\t/**\n\t * Removes a progress listener from this thread pool.\n\t * @param listener The listener\n\t */\n\tpublic final void removeProgressListener(WorkThreadProgressListener listener)\n\t{\n\t\tlistenerList.remove(WorkThreadProgressListener.class,listener);\n\t}\n\n\t// package-private members\n\tObject lock = new String(\"Work thread pool request queue lock\");\n\tObject waitForAllLock = new String(\"Work thread pool waitForAll() notifier\");\n\n\tvoid fireProgressChanged(WorkThread thread)\n\t{\n\t\tfinal Object[] listeners = listenerList.getListenerList();\n\t\tif(listeners.length != 0)\n\t\t{\n\t\t\tint index = 0;\n\t\t\tfor(int i = 0; i < threads.length; i++)\n\t\t\t{\n\t\t\t\tif(threads[i] == thread)\n\t\t\t\t{\n\t\t\t\t\tindex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal int _index = index;\n\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tfor(int i = listeners.length - 2; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(listeners[i] == WorkThreadProgressListener.class)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t((WorkThreadProgressListener)listeners[i+1])\n\t\t\t\t\t\t\t\t.progressUpdate(WorkThreadPool.this,_index);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tvoid requestDone()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\trequestCount--;\n\n\t\t\tif(requestCount == 0 && firstAWTRequest != null)\n\t\t\t\tqueueAWTRunner();\n\t\t}\n\t}\n\n\tRequest getNextRequest()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tRequest request = firstRequest;\n\t\t\tif(request == null)\n\t\t\t\treturn null;\n\n\t\t\tfirstRequest = firstRequest.next;\n\t\t\tif(firstRequest == null)\n\t\t\t\tlastRequest = null;\n\n\t\t\tif(request.alreadyRun)\n\t\t\t\tthrow new InternalError(\"AIEE!!! Request run twice!!! \" + request.run);\n\t\t\trequest.alreadyRun = true;\n\n\t\t\t/* StringBuffer buf = new StringBuffer(\"request queue is now: \");\n\t\t\tRequest _request = request.next;\n\t\t\twhile(_request != null)\n\t\t\t{\n\t\t\t\tbuf.append(_request.id);\n\t\t\t\tif(_request.next != null)\n\t\t\t\t\tbuf.append(\",\");\n\t\t\t\t_request = _request.next;\n\t\t\t}\n\t\t\tLog.log(Log.DEBUG,this,buf.toString()); */\n\n\t\t\treturn request;\n\t\t}\n\t}\n\n\t// private members\n\tprivate ThreadGroup threadGroup;\n\tprivate WorkThread[] threads;\n\n\t// Request queue\n\tprivate Request firstRequest;\n\tprivate Request lastRequest;\n\tprivate int requestCount;\n\n\t// AWT thread magic\n\tprivate boolean awtRunnerQueued;\n\tprivate Request firstAWTRequest;\n\tprivate Request lastAWTRequest;\n\tprivate int awtRequestCount;\n\n\tprivate EventListenerList listenerList;\n\n\tprivate void doAWTRequests()\n\t{\n\t\twhile(firstAWTRequest != null)\n\t\t{\n\t\t\tdoAWTRequest(getNextAWTRequest());\n\t\t}\n\t}\n\n\tprivate void doAWTRequest(Request request)\n\t{\n//\t\tLog.log(Log.DEBUG,this,\"Running in AWT thread: \" + request);\n\n\t\ttry\n\t\t{\n\t\t\trequest.run.run();\n\t\t}\n\t\tcatch(Throwable t)\n\t\t{\n\t\t\tLog.log(Log.ERROR,WorkThread.class,\"Exception \"\n\t\t\t\t+ \"in AWT thread:\");\n\t\t\tLog.log(Log.ERROR,WorkThread.class,t);\n\t\t}\n\n\t\tawtRequestCount--;\n\t}\n\n\tprivate void queueAWTRunner()\n\t{\n\t\tif(!awtRunnerQueued)\n\t\t{\n\t\t\tawtRunnerQueued = true;\n\t\t\tSwingUtilities.invokeLater(new RunRequestsInAWTThread());\n\t\t\t//Log.log(Log.DEBUG,this,\"AWT runner queued\");\n\t\t}\n\t}\n\n\tprivate Request getNextAWTRequest()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tRequest request = firstAWTRequest;\n\t\t\tfirstAWTRequest = firstAWTRequest.next;\n\t\t\tif(firstAWTRequest == null)\n\t\t\t\tlastAWTRequest = null;\n\n\t\t\tif(request.alreadyRun)\n\t\t\t\tthrow new InternalError(\"AIEE!!! Request run twice!!! \" + request.run);\n\t\t\trequest.alreadyRun = true;\n\n\t\t\t/* StringBuffer buf = new StringBuffer(\"AWT request queue is now: \");\n\t\t\tRequest _request = request.next;\n\t\t\twhile(_request != null)\n\t\t\t{\n\t\t\t\tbuf.append(_request.id);\n\t\t\t\tif(_request.next != null)\n\t\t\t\t\tbuf.append(\",\");\n\t\t\t\t_request = _request.next;\n\t\t\t}\n\t\t\tLog.log(Log.DEBUG,this,buf.toString()); */\n\n\t\t\treturn request;\n\t\t}\n\t}\n\n\tstatic int ID;\n\n\tstatic class Request\n\t{\n\t\tint id = ++ID;\n\n\t\tRunnable run;\n\n\t\tboolean alreadyRun;\n\n\t\tRequest next;\n\n\t\tRequest(Runnable run)\n\t\t{\n\t\t\tthis.run = run;\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn \"[id=\" + id + \",run=\" + run + \"]\";\n\t\t}\n\t}\n\n\tclass RunRequestsInAWTThread implements Runnable\n\t{\n\t\tpublic void run()\n\t\t{\n\t\t\tawtRunnerQueued = false;\n\t\t\tdoAWTRequests();", "functions": [{"function_name": "start", "code": "\tpublic void start()\n\t{\n\t\tif(threads != null)\n\t\t{\n\t\t\tfor(int i = 0; i < threads.length; i++)\n\t\t\t{\n\t\t\t\tthreads[i].start();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [3, 6], [3, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 3], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addWorkRequest", "code": "\tpublic void addWorkRequest(Runnable run, boolean inAWT)\n\t{\n\t\tif(threads == null)\n\t\t{\n\t\t\trun.run();\n\t\t\treturn;\n\t\t}\n\n\t\t// if inAWT is set and there are no requests\n\t\t// pending, execute it immediately\n\t\tif(inAWT && requestCount == 0 && awtRequestCount == 0)\n\t\t{\n// \t\t\tLog.log(Log.DEBUG,this,\"AWT immediate: \" + run);\n\n\t\t\tif(SwingUtilities.isEventDispatchThread())\n\t\t\t\trun.run();\n\t\t\telse\n\t\t\t\tSwingUtilities.invokeLater(run);\n\n\t\t\treturn;\n\t\t}\n\n\t\tRequest request = new Request(run);\n\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tif(inAWT)\n\t\t\t{\n\t\t\t\tif(firstAWTRequest == null && lastAWTRequest == null)\n\t\t\t\t\tfirstAWTRequest = lastAWTRequest = request;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlastAWTRequest.next = request;\n\t\t\t\t\tlastAWTRequest = request;\n\t\t\t\t}\n\n\t\t\t\tawtRequestCount++;\n\n\t\t\t\t// if no requests are running, requestDone()\n\t\t\t\t// will not be called, so we must queue the\n\t\t\t\t// AWT runner ourselves.\n\t\t\t\tif(requestCount == 0)\n\t\t\t\t\tqueueAWTRunner();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(firstRequest == null && lastRequest == null)\n\t\t\t\t\tfirstRequest = lastRequest = request;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlastRequest.next = request;\n\t\t\t\t\tlastRequest = request;\n\t\t\t\t}\n\n\t\t\t\trequestCount++;\n\t\t\t}\n\n\t\t\tlock.notify();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [0, 9], [1, 10], [2, 11], [2, 12], [7, 13], [7, 14], [3, 15], [8, 16], [6, 17], [6, 18], [6, 19], [12, 20], [13, 21], [14, 22], [3, 23], [17, 24], [18, 25], [19, 26], [12, 27], [12, 28], [22, 29], [17, 30], [24, 31], [24, 32], [18, 33], [25, 34], [19, 35], [26, 36], [26, 37], [17, 38], [17, 39], [30, 40], [31, 41], [32, 42], [19, 43], [19, 44], [35, 45], [36, 46], [37, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 0], [10, 1], [11, 2], [12, 2], [13, 7], [14, 7], [15, 3], [16, 8], [17, 6], [18, 6], [19, 6], [20, 12], [21, 13], [22, 14], [23, 3], [24, 17], [25, 18], [26, 19], [27, 12], [28, 12], [29, 22], [30, 17], [31, 24], [32, 24], [33, 18], [34, 25], [35, 19], [36, 26], [37, 26], [38, 17], [39, 17], [40, 30], [41, 31], [42, 32], [43, 19], [44, 19], [45, 35], [46, 36], [47, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "waitForRequests", "code": "\tpublic void waitForRequests()\n\t{\n\t\tif(threads == null)\n\t\t\treturn;\n\n\t\tsynchronized(waitForAllLock)\n\t\t{\n\t\t\twhile(requestCount != 0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\twaitForAllLock.wait();\n\t\t\t\t}\n\t\t\t\tcatch(InterruptedException ie)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,ie);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(SwingUtilities.isEventDispatchThread())\n\t\t{\n\t\t\t// do any queued AWT runnables\n\t\t\tdoAWTRequests();\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeAndWait(new RunRequestsInAWTThread());\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,e);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "LOOP", "RETURN", "BINARY_OP", "TRY", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [2, 6], [1, 7], [4, 8], [6, 9], [7, 10], [1, 11], [4, 12], [8, 13], [7, 14], [12, 15], [10, 16], [14, 17], [12, 18], [15, 19], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 2], [7, 1], [8, 4], [9, 6], [10, 7], [11, 1], [12, 4], [13, 8], [14, 7], [15, 12], [16, 10], [17, 14], [18, 12], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRequestCount", "code": "\tpublic int getRequestCount()\n\t{\n\t\treturn requestCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getThreadCount", "code": "\tpublic int getThreadCount()\n\t{\n\t\tif(threads == null)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn threads.length;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getThread", "code": "\tpublic WorkThread getThread(int index)\n\t{\n\t\treturn threads[index];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addProgressListener", "code": "\tpublic final void addProgressListener(WorkThreadProgressListener listener)\n\t{\n\t\tlistenerList.add(WorkThreadProgressListener.class,listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeProgressListener", "code": "\tpublic final void removeProgressListener(WorkThreadProgressListener listener)\n\t{\n\t\tlistenerList.remove(WorkThreadProgressListener.class,listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "fireProgressChanged", "code": "\tvoid fireProgressChanged(WorkThread thread)\n\t{\n\t\tfinal Object[] listeners = listenerList.getListenerList();\n\t\tif(listeners.length != 0)\n\t\t{\n\t\t\tint index = 0;\n\t\t\tfor(int i = 0; i < threads.length; i++)\n\t\t\t{\n\t\t\t\tif(threads[i] == thread)\n\t\t\t\t{\n\t\t\t\t\tindex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal int _index = index;\n\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tfor(int i = listeners.length - 2; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(listeners[i] == WorkThreadProgressListener.class)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t((WorkThreadProgressListener)listeners[i+1])", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "FUNC_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [2, 9], [1, 10], [6, 11], [10, 12], [6, 13], [7, 14], [12, 15], [13, 16], [6, 17], [15, 18], [13, 19], [18, 20], [13, 21], [18, 22], [20, 23], [22, 24], [18, 25], [25, 26], [22, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 2], [10, 1], [11, 6], [12, 10], [13, 6], [14, 7], [15, 12], [16, 13], [17, 6], [18, 15], [19, 13], [20, 18], [21, 13], [22, 18], [23, 20], [24, 22], [25, 18], [26, 25], [27, 22], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "requestDone", "code": "\tvoid requestDone()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\trequestCount--;\n\n\t\t\tif(requestCount == 0 && firstAWTRequest != null)\n\t\t\t\tqueueAWTRunner();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNextRequest", "code": "\tRequest getNextRequest()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tRequest request = firstRequest;\n\t\t\tif(request == null)\n\t\t\t\treturn null;\n\n\t\t\tfirstRequest = firstRequest.next;\n\t\t\tif(firstRequest == null)\n\t\t\t\tlastRequest = null;\n\n\t\t\tif(request.alreadyRun)\n\t\t\t\tthrow new InternalError(\"AIEE!!! Request run twice!!! \" + request.run);\n\t\t\trequest.alreadyRun = true;\n\n\t\t\t/* StringBuffer buf = new StringBuffer(\"request queue is now: \");\n\t\t\tRequest _request = request.next;\n\t\t\twhile(_request != null)\n\t\t\t{\n\t\t\t\tbuf.append(_request.id);\n\t\t\t\tif(_request.next != null)\n\t\t\t\t\tbuf.append(\",\");\n\t\t\t\t_request = _request.next;\n\t\t\t}\n\t\t\tLog.log(Log.DEBUG,this,buf.toString()); */\n\n\t\t\treturn request;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "ASSIGN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [0, 9], [4, 10], [4, 11], [6, 12], [7, 13], [3, 14], [8, 15], [10, 16], [11, 17], [13, 18], [14, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 0], [10, 4], [11, 4], [12, 6], [13, 7], [14, 3], [15, 8], [16, 10], [17, 11], [18, 13], [19, 14], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "doAWTRequests", "code": "\tprivate void doAWTRequests()\n\t{\n\t\twhile(firstAWTRequest != null)\n\t\t{\n\t\t\tdoAWTRequest(getNextAWTRequest());", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "doAWTRequest", "code": "\tprivate void doAWTRequest(Request request)\n\t{\n//\t\tLog.log(Log.DEBUG,this,\"Running in AWT thread: \" + request);\n\n\t\ttry\n\t\t{\n\t\t\trequest.run.run();\n\t\t}\n\t\tcatch(Throwable t)\n\t\t{\n\t\t\tLog.log(Log.ERROR,WorkThread.class,\"Exception \"\n\t\t\t\t+ \"in AWT thread:\");\n\t\t\tLog.log(Log.ERROR,WorkThread.class,t);\n\t\t}\n\n\t\tawtRequestCount--;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [6, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 6], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "queueAWTRunner", "code": "\tprivate void queueAWTRunner()\n\t{\n\t\tif(!awtRunnerQueued)\n\t\t{\n\t\t\tawtRunnerQueued = true;\n\t\t\tSwingUtilities.invokeLater(new RunRequestsInAWTThread());", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getNextAWTRequest", "code": "\tprivate Request getNextAWTRequest()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tRequest request = firstAWTRequest;\n\t\t\tfirstAWTRequest = firstAWTRequest.next;\n\t\t\tif(firstAWTRequest == null)\n\t\t\t\tlastAWTRequest = null;\n\n\t\t\tif(request.alreadyRun)\n\t\t\t\tthrow new InternalError(\"AIEE!!! Request run twice!!! \" + request.run);\n\t\t\trequest.alreadyRun = true;\n\n\t\t\t/* StringBuffer buf = new StringBuffer(\"AWT request queue is now: \");\n\t\t\tRequest _request = request.next;\n\t\t\twhile(_request != null)\n\t\t\t{\n\t\t\t\tbuf.append(_request.id);\n\t\t\t\tif(_request.next != null)\n\t\t\t\t\tbuf.append(\",\");\n\t\t\t\t_request = _request.next;\n\t\t\t}\n\t\t\tLog.log(Log.DEBUG,this,buf.toString()); */\n\n\t\t\treturn request;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "ASSIGN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [0, 8], [5, 9], [6, 10], [3, 11], [7, 12], [10, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 0], [9, 5], [10, 6], [11, 3], [12, 7], [13, 10], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "WorkThreadPool", "code": "\tpublic WorkThreadPool(String name, int count)\n\t{\n\t\tlistenerList = new EventListenerList();\n\n\t\tif(count != 0)\n\t\t{\n\t\t\tthreadGroup = new ThreadGroup(name);\n\t\t\tthreads = new WorkThread[count];\n\t\t\tfor(int i = 0; i < threads.length; i++)\n\t\t\t{\n\t\t\t\tthreads[i] = new WorkThread(this,threadGroup,name + \" #\" + (i+1));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tLog.log(Log.WARNING,this,\"Async I/O disabled\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [7, 11], [1, 12], [1, 13], [13, 14], [7, 15], [7, 16], [15, 17], [17, 18], [18, 19], [18, 20], [19, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 7], [12, 1], [13, 1], [14, 13], [15, 7], [16, 7], [17, 15], [18, 17], [19, 18], [20, 18], [21, 19], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}], "label": 1}
{"sample_id": "xalan-2.6-7478", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/patterns/StepPattern.java", "language": "java", "name": "org.apache.xpath.patterns.StepPattern", "code": "public class StepPattern extends NodeTest implements SubContextList, ExpressionOwner\n{\n\n  /** The axis for this test. */\n  protected int m_axis;\n\n  /**\n   * Construct a StepPattern that tests for namespaces and node names.\n   *\n   *\n   * @param whatToShow Bit set defined mainly by {@link org.w3c.dom.traversal.NodeFilter}.\n   * @param namespace The namespace to be tested.\n   * @param name The local name to be tested.\n   * @param axis The Axis for this test, one of of Axes.ANCESTORORSELF, etc.\n   * @param axisForPredicate No longer used.\n   */\n  public StepPattern(int whatToShow, String namespace, String name, int axis,\n                     int axisForPredicate)\n  {\n\n    super(whatToShow, namespace, name);\n\n    m_axis = axis;\n  }\n\n  /**\n   * Construct a StepPattern that doesn't test for node names.\n   *\n   *\n   * @param whatToShow Bit set defined mainly by {@link org.w3c.dom.traversal.NodeFilter}.\n   * @param axis The Axis for this test, one of of Axes.ANCESTORORSELF, etc.\n   * @param axisForPredicate No longer used.\n   */\n  public StepPattern(int whatToShow, int axis, int axisForPredicate)\n  {\n\n    super(whatToShow);\n\n    m_axis = axis;\n  }\n\n  /**\n   * The target local name or psuedo name, for hash table lookup optimization.\n   *  @serial\n   */\n\n  /**\n   * Calculate the local name or psuedo name of the node that this pattern will test,\n   * for hash table lookup optimization.\n   *\n   * @see org.apache.xpath.compiler.PsuedoNames\n   */\n  public void calcTargetString()\n  {\n\n    int whatToShow = getWhatToShow();\n\n    switch (whatToShow)\n    {\n    case DTMFilter.SHOW_COMMENT :\n      m_targetString = PsuedoNames.PSEUDONAME_COMMENT;\n      break;\n    case DTMFilter.SHOW_TEXT :\n    case DTMFilter.SHOW_CDATA_SECTION :\n    case (DTMFilter.SHOW_TEXT | DTMFilter.SHOW_CDATA_SECTION) :\n      m_targetString = PsuedoNames.PSEUDONAME_TEXT;\n      break;\n    case DTMFilter.SHOW_ALL :\n      m_targetString = PsuedoNames.PSEUDONAME_ANY;\n      break;\n    case DTMFilter.SHOW_DOCUMENT :\n    case DTMFilter.SHOW_DOCUMENT | DTMFilter.SHOW_DOCUMENT_FRAGMENT :\n      m_targetString = PsuedoNames.PSEUDONAME_ROOT;\n      break;\n    case DTMFilter.SHOW_ELEMENT :\n      if (this.WILD == m_name)\n        m_targetString = PsuedoNames.PSEUDONAME_ANY;\n      else\n        m_targetString = m_name;\n      break;\n    default :\n      m_targetString = PsuedoNames.PSEUDONAME_ANY;\n      break;\n    }\n  }\n\n  /**\n   * Get the local name or psuedo name of the node that this pattern will test,\n   * for hash table lookup optimization.\n   *\n   *\n   * @return local name or psuedo name of the node.\n   * @see org.apache.xpath.compiler.PsuedoNames\n   */\n  public String getTargetString()\n  {\n    return m_targetString;\n  }\n\n  /**\n   * Reference to nodetest and predicate for\n   * parent or ancestor.\n   * @serial\n   */\n  StepPattern m_relativePathPattern;\n\n  /**\n   * This function is used to fixup variables from QNames to stack frame\n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list\n   * should be searched backwards for the first qualified name that\n   * corresponds to the variable reference qname.  The position of the\n   * QName in the vector from the start of the vector will be its position\n   * in the stack frame (but variables above the globalsTop value will need\n   * to be offset to the current stack frame).\n   * @param globalsSize The number of variables in the global variable area.\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n\n    super.fixupVariables(vars, globalsSize);\n\n    if (null != m_predicates)\n    {\n      for (int i = 0; i < m_predicates.length; i++)\n      {\n        m_predicates[i].fixupVariables(vars, globalsSize);\n      }\n    }\n\n    if (null != m_relativePathPattern)\n    {\n      m_relativePathPattern.fixupVariables(vars, globalsSize);\n    }\n  }\n\n  /**\n   * Set the reference to nodetest and predicate for\n   * parent or ancestor.\n   *\n   *\n   * @param expr The relative pattern expression.\n   */\n  public void setRelativePathPattern(StepPattern expr)\n  {\n\n    m_relativePathPattern = expr;\n    expr.exprSetParent(this);\n\n    calcScore();\n  }\n\n  /**\n   * Get the reference to nodetest and predicate for\n   * parent or ancestor.\n   *\n   *\n   * @return The relative pattern expression.\n   */\n  public StepPattern getRelativePathPattern()\n  {\n    return m_relativePathPattern;\n  }\n\n\n  /**\n   * Set the list of predicate expressions for this pattern step.\n   * @return List of expression objects.\n   */\n  public Expression[] getPredicates()\n  {\n    return m_predicates;\n  }\n\n  /**\n   * The list of predicate expressions for this pattern step.\n   *  @serial\n   */\n  Expression[] m_predicates;\n\n  /**\n   * Tell if this expression or it's subexpressions can traverse outside\n   * the current subtree.\n   *\n   * NOTE: Ancestors tests with predicates are problematic, and will require\n   * special treatment.\n   *\n   * @return true if traversal outside the context node's subtree can occur.\n   */\n  public boolean canTraverseOutsideSubtree()\n  {\n\n    int n = getPredicateCount();\n\n    for (int i = 0; i < n; i++)\n    {\n      if (getPredicate(i).canTraverseOutsideSubtree())\n        return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Get a predicate expression.\n   *\n   *\n   * @param i The index of the predicate.\n   *\n   * @return A predicate expression.\n   */\n  public Expression getPredicate(int i)\n  {\n    return m_predicates[i];\n  }\n\n  /**\n   * Get the number of predicates for this match pattern step.\n   *\n   *\n   * @return the number of predicates for this match pattern step.\n   */\n  public final int getPredicateCount()\n  {\n    return (null == m_predicates) ? 0 : m_predicates.length;\n  }\n\n  /**\n   * Set the predicates for this match pattern step.\n   *\n   *\n   * @param predicates An array of expressions that define predicates\n   *                   for this step.\n   */\n  public void setPredicates(Expression[] predicates)\n  {\n\n    m_predicates = predicates;\n    if(null != predicates)\n    {\n    \tfor(int i = 0; i < predicates.length; i++)\n    \t{\n    \t\tpredicates[i].exprSetParent(this);\n    \t}\n    }\n\n    calcScore();\n  }\n\n  /**\n   * Static calc of match score.\n   */\n  public void calcScore()\n  {\n\n    if ((getPredicateCount() > 0) || (null != m_relativePathPattern))\n    {\n      m_score = SCORE_OTHER;\n    }\n    else\n      super.calcScore();\n\n    if (null == m_targetString)\n      calcTargetString();\n  }\n\n  /**\n   * Execute this pattern step, including predicates.\n   *\n   *\n   * @param xctxt XPath runtime context.\n   * @param currentNode The current node context.\n   *\n   * @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_QNAME}, or\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_OTHER}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt, int currentNode)\n          throws javax.xml.transform.TransformerException\n  {\n\n    DTM dtm = xctxt.getDTM(currentNode);\n\n    if (dtm != null)\n    {\n      int expType = dtm.getExpandedTypeID(currentNode);\n\n      return execute(xctxt, currentNode, dtm, expType);\n    }\n\n    return NodeTest.SCORE_NONE;\n  }\n\n  /**\n   * Execute this pattern step, including predicates.\n   *\n   *\n   * @param xctxt XPath runtime context.\n   *\n   * @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_QNAME}, or\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_OTHER}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    return execute(xctxt, xctxt.getCurrentNode());\n  }\n\n  /**\n   * Execute an expression in the XPath runtime context, and return the\n   * result of the expression.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   * @param currentNode The currentNode.\n   * @param dtm The DTM of the current node.\n   * @param expType The expanded type ID of the current node.\n   *\n   * @return The result of the expression in the form of a <code>XObject</code>.\n   *\n   * @throws javax.xml.transform.TransformerException if a runtime exception\n   *         occurs.\n   */\n  public XObject execute(\n          XPathContext xctxt, int currentNode, DTM dtm, int expType)\n            throws javax.xml.transform.TransformerException\n  {\n\n    if (m_whatToShow == NodeTest.SHOW_BYFUNCTION)\n    {\n      if (null != m_relativePathPattern)\n      {\n        return m_relativePathPattern.execute(xctxt);\n      }\n      else\n        return NodeTest.SCORE_NONE;\n    }\n\n    XObject score;\n\n    score = super.execute(xctxt, currentNode, dtm, expType);\n\n    if (score == NodeTest.SCORE_NONE)\n      return NodeTest.SCORE_NONE;\n\n    if (getPredicateCount() != 0)\n    {\n      if (!executePredicates(xctxt, dtm, currentNode))\n        return NodeTest.SCORE_NONE;\n    }\n\n    if (null != m_relativePathPattern)\n      return m_relativePathPattern.executeRelativePathPattern(xctxt, dtm,\n              currentNode);\n\n    return score;\n  }\n\n  /**\n   * New Method to check whether the current node satisfies a position predicate\n   *\n   * @param xctxt The XPath runtime context.\n   * @param predPos Which predicate we're evaluating of foo[1][2][3].\n   * @param dtm The DTM of the current node.\n   * @param context The currentNode.\n   * @param pos The position being requested, i.e. the value returned by \n   *            m_predicates[predPos].execute(xctxt).\n   *\n   * @return true of the position of the context matches pos, false otherwise.\n   */\n  private final boolean checkProximityPosition(XPathContext xctxt,\n          int predPos, DTM dtm, int context, int pos)\n  {\n\n    try\n    {\n      DTMAxisTraverser traverser =\n        dtm.getAxisTraverser(Axis.PRECEDINGSIBLING);\n\n      for (int child = traverser.first(context); DTM.NULL != child;\n              child = traverser.next(context, child))\n      {\n        try\n        {\n          xctxt.pushCurrentNode(child);\n\n          if (NodeTest.SCORE_NONE != super.execute(xctxt, child))\n          {\n            boolean pass = true;\n\n            try\n            {\n              xctxt.pushSubContextList(this);\n\n              for (int i = 0; i < predPos; i++)\n              {\n                xctxt.pushPredicatePos(i);\n                try\n                {\n                  XObject pred = m_predicates[i].execute(xctxt);\n                  \n                  try\n                  {\n                    if (XObject.CLASS_NUMBER == pred.getType())\n                    {\n                      throw new Error(\"Why: Should never have been called\");\n                    }\n                    else if (!pred.boolWithSideEffects())\n                    {\n                      pass = false;\n    \n                      break;\n                    }\n                  }\n                  finally\n                  {\n                    pred.detach();\n                  }\n                }\n                finally\n                {\n                  xctxt.popPredicatePos();\n                }\n              }\n            }\n            finally\n            {\n              xctxt.popSubContextList();\n            }\n\n            if (pass)\n              pos--;\n\n            if (pos < 1)\n              return false;\n          }\n        }\n        finally\n        {\n          xctxt.popCurrentNode();\n        }\n      }\n    }\n    catch (javax.xml.transform.TransformerException se)\n    {\n\n      throw new java.lang.RuntimeException(se.getMessage());\n    }\n\n    return (pos == 1);\n  }\n\n  /**\n   * Get the proximity position index of the current node based on this\n   * node test.\n   *\n   *\n   * @param xctxt XPath runtime context.\n   * @param predPos Which predicate we're evaluating of foo[1][2][3].\n   * @param findLast If true, don't terminate when the context node is found.\n   *\n   * @return the proximity position index of the current node based on the\n   *         node test.\n   */\n  private final int getProximityPosition(XPathContext xctxt, int predPos, \n                    boolean findLast)\n  {\n\n    int pos = 0;\n    int context = xctxt.getCurrentNode();\n    DTM dtm = xctxt.getDTM(context);\n    int parent = dtm.getParent(context);\n\n    try\n    {\n      DTMAxisTraverser traverser = dtm.getAxisTraverser(Axis.CHILD);\n\n      for (int child = traverser.first(parent); DTM.NULL != child;\n              child = traverser.next(parent, child))\n      {\n        try\n        {\n          xctxt.pushCurrentNode(child);\n\n          if (NodeTest.SCORE_NONE != super.execute(xctxt, child))\n          {\n            boolean pass = true;\n\n            try\n            {\n              xctxt.pushSubContextList(this);\n\n              for (int i = 0; i < predPos; i++)\n              {\n                xctxt.pushPredicatePos(i);\n                try\n                {\n                  XObject pred = m_predicates[i].execute(xctxt);\n  \n                  try\n                  {\n                    if (XObject.CLASS_NUMBER == pred.getType())\n                    {\n                      if ((pos + 1) != (int) pred.numWithSideEffects())\n                      {\n                        pass = false;\n    \n                        break;\n                      }\n                    }\n                    else if (!pred.boolWithSideEffects())\n                    {\n                      pass = false;\n    \n                      break;\n                    }\n                  }\n                  finally\n                  {\n                    pred.detach();\n                  }\n                }\n                finally\n                {\n                  xctxt.popPredicatePos();\n                }\n              }\n            }\n            finally\n            {\n              xctxt.popSubContextList();\n            }\n\n            if (pass)\n              pos++;\n\n            if (!findLast && child == context)\n            {\n              return pos;\n            }\n          }\n        }\n        finally\n        {\n          xctxt.popCurrentNode();\n        }\n      }\n    }\n    catch (javax.xml.transform.TransformerException se)\n    {\n\n      throw new java.lang.RuntimeException(se.getMessage());\n    }\n\n    return pos;\n  }\n\n  /**\n   * Get the proximity position index of the current node based on this\n   * node test.\n   *\n   *\n   * @param xctxt XPath runtime context.\n   *\n   * @return the proximity position index of the current node based on the\n   *         node test.\n   */\n  public int getProximityPosition(XPathContext xctxt)\n  {\n    return getProximityPosition(xctxt, xctxt.getPredicatePos(), false);\n  }\n  \n  /**\n   * Get the count of the nodes that match the test, which is the proximity\n   * position of the last node that can pass this test in the sub context\n   * selection.  In XSLT 1-based indexing, this count is the index of the last\n   * node.\n   *\n   *\n   * @param xctxt XPath runtime context.\n   *\n   * @return the count of the nodes that match the test.\n   */\n  public int getLastPos(XPathContext xctxt)\n  {\n    return getProximityPosition(xctxt, xctxt.getPredicatePos(), true);\n  }\n\n  /**\n   * Execute the match pattern step relative to another step.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   * @param dtm The DTM of the current node.\n   * @param currentNode The current node context.\n   *\n   * @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_QNAME}, or\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_OTHER}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected final XObject executeRelativePathPattern(\n          XPathContext xctxt, DTM dtm, int currentNode)\n            throws javax.xml.transform.TransformerException\n  {\n\n    XObject score = NodeTest.SCORE_NONE;\n    int context = currentNode;\n    DTMAxisTraverser traverser;\n\n    traverser = dtm.getAxisTraverser(m_axis);\n\n    for (int relative = traverser.first(context); DTM.NULL != relative;\n            relative = traverser.next(context, relative))\n    {\n      try\n      {\n        xctxt.pushCurrentNode(relative);\n\n        score = execute(xctxt);\n\n        if (score != NodeTest.SCORE_NONE)\n          break;\n      }\n      finally\n      {\n        xctxt.popCurrentNode();\n      }\n    }\n\n    return score;\n  }\n\n  /**\n   * Execute the predicates on this step to determine if the current node \n   * should be filtered or accepted.\n   *\n   * @param xctxt The XPath runtime context.\n   * @param dtm The DTM of the current node.\n   * @param currentNode The current node context.\n   *\n   * @return true if the node should be accepted, false otherwise.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected final boolean executePredicates(\n          XPathContext xctxt, DTM dtm, int currentNode)\n            throws javax.xml.transform.TransformerException\n  {\n\n    boolean result = true;\n    boolean positionAlreadySeen = false;\n    int n = getPredicateCount();\n\n    try\n    {\n      xctxt.pushSubContextList(this);\n\n      for (int i = 0; i < n; i++)\n      {\n        xctxt.pushPredicatePos(i);\n\n        try\n        {\n          XObject pred = m_predicates[i].execute(xctxt);\n\n          try\n          {\n            if (XObject.CLASS_NUMBER == pred.getType())\n            {\n              int pos = (int) pred.num();\n  \n              if (positionAlreadySeen)\n              {\n                result = (pos == 1);\n  \n                break;\n              }\n              else\n              {\n                positionAlreadySeen = true;\n  \n                if (!checkProximityPosition(xctxt, i, dtm, currentNode, pos))\n                {\n                  result = false;\n  \n                  break;\n                }\n              }\n            \n            }\n            else if (!pred.boolWithSideEffects())\n            {\n              result = false;\n  \n              break;\n            }\n          }\n          finally\n          {\n            pred.detach();\n          }\n        }\n        finally\n        {\n          xctxt.popPredicatePos();\n        }\n      }\n    }\n    finally\n    {\n      xctxt.popSubContextList();\n    }\n\n    return result;\n  }\n\n  /**\n   * Get the string represenentation of this step for diagnostic purposes.\n   *\n   *\n   * @return A string representation of this step, built by reverse-engineering \n   * the contained info.\n   */\n  public String toString()\n  {\n\n    StringBuffer buf = new StringBuffer();\n\n    for (StepPattern pat = this; pat != null; pat = pat.m_relativePathPattern)\n    {\n      if (pat != this)\n        buf.append(\"/\");\n\n      buf.append(Axis.names[pat.m_axis]);\n      buf.append(\"::\");\n\n      if (0x000005000 == pat.m_whatToShow)\n      {\n        buf.append(\"doc()\");\n      }\n      else if (DTMFilter.SHOW_BYFUNCTION == pat.m_whatToShow)\n      {\n        buf.append(\"function()\");\n      }\n      else if (DTMFilter.SHOW_ALL == pat.m_whatToShow)\n      {\n        buf.append(\"node()\");\n      }\n      else if (DTMFilter.SHOW_TEXT == pat.m_whatToShow)\n      {\n        buf.append(\"text()\");\n      }\n      else if (DTMFilter.SHOW_PROCESSING_INSTRUCTION == pat.m_whatToShow)\n      {\n        buf.append(\"processing-instruction(\");\n\n        if (null != pat.m_name)\n        {\n          buf.append(pat.m_name);\n        }\n\n        buf.append(\")\");\n      }\n      else if (DTMFilter.SHOW_COMMENT == pat.m_whatToShow)\n      {\n        buf.append(\"comment()\");\n      }\n      else if (null != pat.m_name)\n      {\n        if (DTMFilter.SHOW_ATTRIBUTE == pat.m_whatToShow)\n        {\n          buf.append(\"@\");\n        }\n\n        if (null != pat.m_namespace)\n        {\n          buf.append(\"{\");\n          buf.append(pat.m_namespace);\n          buf.append(\"}\");\n        }\n\n        buf.append(pat.m_name);\n      }\n      else if (DTMFilter.SHOW_ATTRIBUTE == pat.m_whatToShow)\n      {\n        buf.append(\"@\");\n      }\n      else if ((DTMFilter.SHOW_DOCUMENT | DTMFilter.SHOW_DOCUMENT_FRAGMENT)\n               == pat.m_whatToShow)\n      {\n        buf.append(\"doc-root()\");\n      }\n      else\n      {\n        buf.append(\"?\" + Integer.toHexString(pat.m_whatToShow));\n      }\n\n      if (null != pat.m_predicates)\n      {\n        for (int i = 0; i < pat.m_predicates.length; i++)\n        {\n          buf.append(\"[\");\n          buf.append(pat.m_predicates[i]);\n          buf.append(\"]\");\n        }\n      }\n    }\n\n    return buf.toString();\n  }\n\n  /** Set to true to send diagnostics about pattern matches to the consol. */\n  private static final boolean DEBUG_MATCHES = false;\n\n  /**\n   * Get the match score of the given node.\n   *\n   * @param xctxt The XPath runtime context.\n   * @param context The node to be tested.\n   *\n   * @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_QNAME}, or\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_OTHER}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public double getMatchScore(XPathContext xctxt, int context)\n          throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushCurrentNode(context);\n    xctxt.pushCurrentExpressionNode(context);\n\n    try\n    {\n      XObject score = execute(xctxt);\n\n      return score.num();\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n      xctxt.popCurrentExpressionNode();\n    }\n\n  }\n\n  /**\n   * Set the axis that this step should follow. \n   *\n   *\n   * @param axis The Axis for this test, one of of Axes.ANCESTORORSELF, etc.\n   */\n  public void setAxis(int axis)\n  {\n    m_axis = axis;\n  }\n\n  /**\n   * Get the axis that this step follows. \n   *\n   *\n   * @return The Axis for this test, one of of Axes.ANCESTORORSELF, etc.\n   */\n  public int getAxis()\n  {\n    return m_axis;\n  }\n  \n  class PredOwner implements ExpressionOwner\n  {\n  \tint m_index;\n  \t\n  \tPredOwner(int index)\n  \t{\n  \t\tm_index = index;\n  \t}\n  \t\n    /**\n     * @see ExpressionOwner#getExpression()\n     */\n    public Expression getExpression()\n    {\n      return m_predicates[m_index];\n    }\n\n\n    /**\n     * @see ExpressionOwner#setExpression(Expression)\n     */\n    public void setExpression(Expression exp)\n    {\n    \texp.exprSetParent(StepPattern.this);\n    \tm_predicates[m_index] = exp;\n    }\n  }\n  \n  /**\n   * @see XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \t \tif(visitor.visitMatchPattern(owner, this))\n  \t \t{\n  \t \t\tcallSubtreeVisitors(visitor);\n  \t \t}\n  }\n\n  /**\n   * Call the visitors on the subtree.  Factored out from callVisitors \n   * so it may be called by derived classes.\n   */\n  protected void callSubtreeVisitors(XPathVisitor visitor)\n  {\n    if (null != m_predicates)\n    {\n      int n = m_predicates.length;\n      for (int i = 0; i < n; i++)\n      {\n        ExpressionOwner predOwner = new PredOwner(i);\n        if (visitor.visitPredicate(predOwner, m_predicates[i]))\n        {\n          m_predicates[i].callVisitors(predOwner, visitor);\n        }\n      }\n    }\n    if (null != m_relativePathPattern)\n    {\n      m_relativePathPattern.callVisitors(this, visitor);\n    }\n  }\n\n\n  /**\n   * @see ExpressionOwner#getExpression()\n   */\n  public Expression getExpression()\n  {\n    return m_relativePathPattern;\n  }\n\n  /**\n   * @see ExpressionOwner#setExpression(Expression)\n   */\n  public void setExpression(Expression exp)\n  {\n    exp.exprSetParent(this);\n  \tm_relativePathPattern = (StepPattern)exp;\n  }\n  \n  /**\n   * @see Expression#deepEquals(Expression)\n   */\n  public boolean deepEquals(Expression expr)\n  {\n  \tif(!super.deepEquals(expr))\n  \t\treturn false;\n  \t\t\n  \tStepPattern sp = (StepPattern)expr;\n  \t\n    if (null != m_predicates)\n    {\n        int n = m_predicates.length;\n        if ((null == sp.m_predicates) || (sp.m_predicates.length != n))\n              return false;\n        for (int i = 0; i < n; i++)\n        {\n          if (!m_predicates[i].deepEquals(sp.m_predicates[i]))\n          \treturn false; \n        }\n    }\n    else if (null != sp.m_predicates)\n    \treturn false;\n  \t\t\n  \tif(null != m_relativePathPattern)\n  \t{\n  \t\tif(!m_relativePathPattern.deepEquals(sp.m_relativePathPattern))\n  \t\t\treturn false;\n  \t}\n  \telse if(sp.m_relativePathPattern != null)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "functions": [{"function_name": "calcTargetString", "code": "  public void calcTargetString()\n  {\n\n    int whatToShow = getWhatToShow();\n\n    switch (whatToShow)\n    {\n    case DTMFilter.SHOW_COMMENT :\n      m_targetString = PsuedoNames.PSEUDONAME_COMMENT;\n      break;\n    case DTMFilter.SHOW_TEXT :\n    case DTMFilter.SHOW_CDATA_SECTION :\n    case (DTMFilter.SHOW_TEXT | DTMFilter.SHOW_CDATA_SECTION) :\n      m_targetString = PsuedoNames.PSEUDONAME_TEXT;\n      break;\n    case DTMFilter.SHOW_ALL :\n      m_targetString = PsuedoNames.PSEUDONAME_ANY;\n      break;\n    case DTMFilter.SHOW_DOCUMENT :\n    case DTMFilter.SHOW_DOCUMENT | DTMFilter.SHOW_DOCUMENT_FRAGMENT :\n      m_targetString = PsuedoNames.PSEUDONAME_ROOT;\n      break;\n    case DTMFilter.SHOW_ELEMENT :\n      if (this.WILD == m_name)\n        m_targetString = PsuedoNames.PSEUDONAME_ANY;\n      else\n        m_targetString = m_name;\n      break;\n    default :\n      m_targetString = PsuedoNames.PSEUDONAME_ANY;\n      break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [1, 13], [5, 14], [1, 15], [1, 16], [1, 17], [1, 18], [5, 19], [5, 20], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 1], [14, 5], [15, 1], [16, 1], [17, 1], [18, 1], [19, 5], [20, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getTargetString", "code": "  public String getTargetString()\n  {\n    return m_targetString;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n\n    super.fixupVariables(vars, globalsSize);\n\n    if (null != m_predicates)\n    {\n      for (int i = 0; i < m_predicates.length; i++)\n      {\n        m_predicates[i].fixupVariables(vars, globalsSize);\n      }\n    }\n\n    if (null != m_relativePathPattern)\n    {\n      m_relativePathPattern.fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [6, 9], [1, 10], [8, 11], [8, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 6], [10, 1], [11, 8], [12, 8], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setRelativePathPattern", "code": "  public void setRelativePathPattern(StepPattern expr)\n  {\n\n    m_relativePathPattern = expr;\n    expr.exprSetParent(this);\n\n    calcScore();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRelativePathPattern", "code": "  public StepPattern getRelativePathPattern()\n  {\n    return m_relativePathPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPredicates", "code": "  public Expression[] getPredicates()\n  {\n    return m_predicates;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "canTraverseOutsideSubtree", "code": "  public boolean canTraverseOutsideSubtree()\n  {\n\n    int n = getPredicateCount();\n\n    for (int i = 0; i < n; i++)\n    {\n      if (getPredicate(i).canTraverseOutsideSubtree())\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [6, 8], [6, 9], [2, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 6], [9, 6], [10, 2], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getPredicate", "code": "  public Expression getPredicate(int i)\n  {\n    return m_predicates[i];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPredicateCount", "code": "  public final int getPredicateCount()\n  {\n    return (null == m_predicates) ? 0 : m_predicates.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setPredicates", "code": "  public void setPredicates(Expression[] predicates)\n  {\n\n    m_predicates = predicates;\n    if(null != predicates)\n    {\n    \tfor(int i = 0; i < predicates.length; i++)\n    \t{\n    \t\tpredicates[i].exprSetParent(this);\n    \t}\n    }\n\n    calcScore();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [6, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 6], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "calcScore", "code": "  public void calcScore()\n  {\n\n    if ((getPredicateCount() > 0) || (null != m_relativePathPattern))\n    {\n      m_score = SCORE_OTHER;\n    }\n    else\n      super.calcScore();\n\n    if (null == m_targetString)\n      calcTargetString();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [3, 6], [4, 7], [4, 8], [2, 9], [7, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 3], [7, 4], [8, 4], [9, 2], [10, 7], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt, int currentNode)\n          throws javax.xml.transform.TransformerException\n  {\n\n    DTM dtm = xctxt.getDTM(currentNode);\n\n    if (dtm != null)\n    {\n      int expType = dtm.getExpandedTypeID(currentNode);\n\n      return execute(xctxt, currentNode, dtm, expType);\n    }\n\n    return NodeTest.SCORE_NONE;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    return execute(xctxt, xctxt.getCurrentNode());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "execute", "code": "  public XObject execute(\n          XPathContext xctxt, int currentNode, DTM dtm, int expType)\n            throws javax.xml.transform.TransformerException\n  {\n\n    if (m_whatToShow == NodeTest.SHOW_BYFUNCTION)\n    {\n      if (null != m_relativePathPattern)\n      {\n        return m_relativePathPattern.execute(xctxt);\n      }\n      else\n        return NodeTest.SCORE_NONE;\n    }\n\n    XObject score;\n\n    score = super.execute(xctxt, currentNode, dtm, expType);\n\n    if (score == NodeTest.SCORE_NONE)\n      return NodeTest.SCORE_NONE;\n\n    if (getPredicateCount() != 0)\n    {\n      if (!executePredicates(xctxt, dtm, currentNode))\n        return NodeTest.SCORE_NONE;\n    }\n\n    if (null != m_relativePathPattern)\n      return m_relativePathPattern.executeRelativePathPattern(xctxt, dtm,\n              currentNode);\n\n    return score;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [3, 13], [4, 14], [4, 15], [0, 16], [6, 17], [11, 18], [12, 19], [3, 20], [13, 21], [13, 22], [6, 23], [20, 24], [20, 25], [23, 26], [23, 27], [23, 28], [27, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 3], [14, 4], [15, 4], [16, 0], [17, 6], [18, 11], [19, 12], [20, 3], [21, 13], [22, 13], [23, 6], [24, 20], [25, 20], [26, 23], [27, 23], [28, 23], [29, 27], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "checkProximityPosition", "code": "  private final boolean checkProximityPosition(XPathContext xctxt,\n          int predPos, DTM dtm, int context, int pos)\n  {\n\n    try\n    {\n      DTMAxisTraverser traverser =\n        dtm.getAxisTraverser(Axis.PRECEDINGSIBLING);\n\n      for (int child = traverser.first(context); DTM.NULL != child;\n              child = traverser.next(context, child))\n      {\n        try\n        {\n          xctxt.pushCurrentNode(child);\n\n          if (NodeTest.SCORE_NONE != super.execute(xctxt, child))\n          {\n            boolean pass = true;\n\n            try\n            {\n              xctxt.pushSubContextList(this);\n\n              for (int i = 0; i < predPos; i++)\n              {\n                xctxt.pushPredicatePos(i);\n                try\n                {\n                  XObject pred = m_predicates[i].execute(xctxt);\n                  \n                  try\n                  {\n                    if (XObject.CLASS_NUMBER == pred.getType())\n                    {\n                      throw new Error(\"Why: Should never have been called\");\n                    }\n                    else if (!pred.boolWithSideEffects())\n                    {\n                      pass = false;\n    \n                      break;\n                    }\n                  }\n                  finally\n                  {\n                    pred.detach();\n                  }\n                }\n                finally\n                {\n                  xctxt.popPredicatePos();\n                }\n              }\n            }\n            finally\n            {\n              xctxt.popSubContextList();\n            }\n\n            if (pass)\n              pos--;\n\n            if (pos < 1)\n              return false;\n          }\n        }\n        finally\n        {\n          xctxt.popCurrentNode();\n        }\n      }\n    }\n    catch (javax.xml.transform.TransformerException se)\n    {\n\n      throw new java.lang.RuntimeException(se.getMessage());\n    }\n\n    return (pos == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "BINARY_OP", "CALL", "TRY", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "IF", "TRY", "VAR_DECL", "RETURN", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "TRY", "TRY", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [8, 12], [9, 13], [10, 14], [10, 15], [13, 16], [10, 17], [14, 18], [11, 19], [16, 20], [17, 21], [10, 22], [17, 23], [21, 24], [17, 25], [21, 26], [21, 27], [21, 28], [21, 29], [26, 30], [26, 31], [28, 32], [30, 33], [31, 34], [28, 35], [32, 36], [28, 37], [29, 38], [32, 39], [39, 40], [39, 41], [32, 42], [32, 43], [39, 44], [40, 45], [40, 46], [45, 47], [45, 48], [47, 49], [45, 50], [48, 51], [41, 52], [47, 53], [50, 54], [47, 55], [54, 56], [55, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 8], [13, 9], [14, 10], [15, 10], [16, 13], [17, 10], [18, 14], [19, 11], [20, 16], [21, 17], [22, 10], [23, 17], [24, 21], [25, 17], [26, 21], [27, 21], [28, 21], [29, 21], [30, 26], [31, 26], [32, 28], [33, 30], [34, 31], [35, 28], [36, 32], [37, 28], [38, 29], [39, 32], [40, 39], [41, 39], [42, 32], [43, 32], [44, 39], [45, 40], [46, 40], [47, 45], [48, 45], [49, 47], [50, 45], [51, 48], [52, 41], [53, 47], [54, 50], [55, 47], [56, 54], [57, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "getProximityPosition", "code": "  private final int getProximityPosition(XPathContext xctxt, int predPos, \n                    boolean findLast)\n  {\n\n    int pos = 0;\n    int context = xctxt.getCurrentNode();\n    DTM dtm = xctxt.getDTM(context);\n    int parent = dtm.getParent(context);\n\n    try\n    {\n      DTMAxisTraverser traverser = dtm.getAxisTraverser(Axis.CHILD);\n\n      for (int child = traverser.first(parent); DTM.NULL != child;\n              child = traverser.next(parent, child))\n      {\n        try\n        {\n          xctxt.pushCurrentNode(child);\n\n          if (NodeTest.SCORE_NONE != super.execute(xctxt, child))\n          {\n            boolean pass = true;\n\n            try\n            {\n              xctxt.pushSubContextList(this);\n\n              for (int i = 0; i < predPos; i++)\n              {\n                xctxt.pushPredicatePos(i);\n                try\n                {\n                  XObject pred = m_predicates[i].execute(xctxt);\n  \n                  try\n                  {\n                    if (XObject.CLASS_NUMBER == pred.getType())\n                    {\n                      if ((pos + 1) != (int) pred.numWithSideEffects())\n                      {\n                        pass = false;\n    \n                        break;\n                      }\n                    }\n                    else if (!pred.boolWithSideEffects())\n                    {\n                      pass = false;\n    \n                      break;\n                    }\n                  }\n                  finally\n                  {\n                    pred.detach();\n                  }\n                }\n                finally\n                {\n                  xctxt.popPredicatePos();\n                }\n              }\n            }\n            finally\n            {\n              xctxt.popSubContextList();\n            }\n\n            if (pass)\n              pos++;\n\n            if (!findLast && child == context)\n            {\n              return pos;\n            }\n          }\n        }\n        finally\n        {\n          xctxt.popCurrentNode();\n        }\n      }\n    }\n    catch (javax.xml.transform.TransformerException se)\n    {\n\n      throw new java.lang.RuntimeException(se.getMessage());\n    }\n\n    return pos;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "LOOP", "VAR_DECL", "THROW_RAISE", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "IF", "TRY", "VAR_DECL", "BINARY_OP", "LOOP", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "TRY", "TRY", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [2, 12], [10, 13], [11, 14], [11, 15], [3, 16], [4, 17], [5, 18], [6, 19], [13, 20], [11, 21], [14, 22], [12, 23], [20, 24], [21, 25], [11, 26], [21, 27], [25, 28], [21, 29], [25, 30], [25, 31], [25, 32], [25, 33], [30, 34], [32, 35], [30, 36], [34, 37], [32, 38], [35, 39], [32, 40], [33, 41], [35, 42], [42, 43], [42, 44], [35, 45], [35, 46], [42, 47], [43, 48], [43, 49], [48, 50], [48, 51], [50, 52], [48, 53], [51, 54], [44, 55], [50, 56], [53, 57], [50, 58], [53, 59], [57, 60], [58, 61], [53, 62], [57, 63], [60, 64], [62, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 2], [13, 10], [14, 11], [15, 11], [16, 3], [17, 4], [18, 5], [19, 6], [20, 13], [21, 11], [22, 14], [23, 12], [24, 20], [25, 21], [26, 11], [27, 21], [28, 25], [29, 21], [30, 25], [31, 25], [32, 25], [33, 25], [34, 30], [35, 32], [36, 30], [37, 34], [38, 32], [39, 35], [40, 32], [41, 33], [42, 35], [43, 42], [44, 42], [45, 35], [46, 35], [47, 42], [48, 43], [49, 43], [50, 48], [51, 48], [52, 50], [53, 48], [54, 51], [55, 44], [56, 50], [57, 53], [58, 50], [59, 53], [60, 57], [61, 58], [62, 53], [63, 57], [64, 60], [65, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "getProximityPosition", "code": "  public int getProximityPosition(XPathContext xctxt)\n  {\n    return getProximityPosition(xctxt, xctxt.getPredicatePos(), false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getLastPos", "code": "  public int getLastPos(XPathContext xctxt)\n  {\n    return getProximityPosition(xctxt, xctxt.getPredicatePos(), true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "executeRelativePathPattern", "code": "  protected final XObject executeRelativePathPattern(\n          XPathContext xctxt, DTM dtm, int currentNode)\n            throws javax.xml.transform.TransformerException\n  {\n\n    XObject score = NodeTest.SCORE_NONE;\n    int context = currentNode;\n    DTMAxisTraverser traverser;\n\n    traverser = dtm.getAxisTraverser(m_axis);\n\n    for (int relative = traverser.first(context); DTM.NULL != relative;\n            relative = traverser.next(context, relative))\n    {\n      try\n      {\n        xctxt.pushCurrentNode(relative);\n\n        score = execute(xctxt);\n\n        if (score != NodeTest.SCORE_NONE)\n          break;\n      }\n      finally\n      {\n        xctxt.popCurrentNode();\n      }\n    }\n\n    return score;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "TRY", "CALL", "CALL", "IF", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [0, 11], [2, 12], [9, 13], [11, 14], [12, 15], [2, 16], [12, 17], [15, 18], [15, 19], [12, 20], [12, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 0], [12, 2], [13, 9], [14, 11], [15, 12], [16, 2], [17, 12], [18, 15], [19, 15], [20, 12], [21, 12], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "executePredicates", "code": "  protected final boolean executePredicates(\n          XPathContext xctxt, DTM dtm, int currentNode)\n            throws javax.xml.transform.TransformerException\n  {\n\n    boolean result = true;\n    boolean positionAlreadySeen = false;\n    int n = getPredicateCount();\n\n    try\n    {\n      xctxt.pushSubContextList(this);\n\n      for (int i = 0; i < n; i++)\n      {\n        xctxt.pushPredicatePos(i);\n\n        try\n        {\n          XObject pred = m_predicates[i].execute(xctxt);\n\n          try\n          {\n            if (XObject.CLASS_NUMBER == pred.getType())\n            {\n              int pos = (int) pred.num();\n  \n              if (positionAlreadySeen)\n              {\n                result = (pos == 1);\n  \n                break;\n              }\n              else\n              {\n                positionAlreadySeen = true;\n  \n                if (!checkProximityPosition(xctxt, i, dtm, currentNode, pos))\n                {\n                  result = false;\n  \n                  break;\n                }\n              }\n            \n            }\n            else if (!pred.boolWithSideEffects())\n            {\n              result = false;\n  \n              break;\n            }\n          }\n          finally\n          {\n            pred.detach();\n          }\n        }\n        finally\n        {\n          xctxt.popPredicatePos();\n        }\n      }\n    }\n    finally\n    {\n      xctxt.popSubContextList();\n    }\n\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LOOP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "TRY", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "BREAK_CONTINUE", "ASSIGN", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [9, 11], [2, 12], [3, 13], [4, 14], [5, 15], [9, 16], [16, 17], [16, 18], [9, 19], [9, 20], [16, 21], [17, 22], [17, 23], [22, 24], [22, 25], [24, 26], [22, 27], [22, 28], [25, 29], [18, 30], [24, 31], [24, 32], [27, 33], [27, 34], [32, 35], [33, 36], [27, 37], [27, 38], [28, 39], [33, 40], [37, 41], [38, 42], [33, 43], [42, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 9], [12, 2], [13, 3], [14, 4], [15, 5], [16, 9], [17, 16], [18, 16], [19, 9], [20, 9], [21, 16], [22, 17], [23, 17], [24, 22], [25, 22], [26, 24], [27, 22], [28, 22], [29, 25], [30, 18], [31, 24], [32, 24], [33, 27], [34, 27], [35, 32], [36, 33], [37, 27], [38, 27], [39, 28], [40, 33], [41, 37], [42, 38], [43, 33], [44, 42], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "toString", "code": "  public String toString()\n  {\n\n    StringBuffer buf = new StringBuffer();\n\n    for (StepPattern pat = this; pat != null; pat = pat.m_relativePathPattern)\n    {\n      if (pat != this)\n        buf.append(\"/\");\n\n      buf.append(Axis.names[pat.m_axis]);\n      buf.append(\"::\");\n\n      if (0x000005000 == pat.m_whatToShow)\n      {\n        buf.append(\"doc()\");\n      }\n      else if (DTMFilter.SHOW_BYFUNCTION == pat.m_whatToShow)\n      {\n        buf.append(\"function()\");\n      }\n      else if (DTMFilter.SHOW_ALL == pat.m_whatToShow)\n      {\n        buf.append(\"node()\");\n      }\n      else if (DTMFilter.SHOW_TEXT == pat.m_whatToShow)\n      {\n        buf.append(\"text()\");\n      }\n      else if (DTMFilter.SHOW_PROCESSING_INSTRUCTION == pat.m_whatToShow)\n      {\n        buf.append(\"processing-instruction(\");\n\n        if (null != pat.m_name)\n        {\n          buf.append(pat.m_name);\n        }\n\n        buf.append(\")\");\n      }\n      else if (DTMFilter.SHOW_COMMENT == pat.m_whatToShow)\n      {\n        buf.append(\"comment()\");\n      }\n      else if (null != pat.m_name)\n      {\n        if (DTMFilter.SHOW_ATTRIBUTE == pat.m_whatToShow)\n        {\n          buf.append(\"@\");\n        }\n\n        if (null != pat.m_namespace)\n        {\n          buf.append(\"{\");\n          buf.append(pat.m_namespace);\n          buf.append(\"}\");\n        }\n\n        buf.append(pat.m_name);\n      }\n      else if (DTMFilter.SHOW_ATTRIBUTE == pat.m_whatToShow)\n      {\n        buf.append(\"@\");\n      }\n      else if ((DTMFilter.SHOW_DOCUMENT | DTMFilter.SHOW_DOCUMENT_FRAGMENT)\n               == pat.m_whatToShow)\n      {\n        buf.append(\"doc-root()\");\n      }\n      else\n      {\n        buf.append(\"?\" + Integer.toHexString(pat.m_whatToShow));\n      }\n\n      if (null != pat.m_predicates)\n      {\n        for (int i = 0; i < pat.m_predicates.length; i++)\n        {\n          buf.append(\"[\");\n          buf.append(pat.m_predicates[i]);\n          buf.append(\"]\");\n        }\n      }\n    }\n\n    return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [3, 11], [7, 12], [8, 13], [8, 14], [2, 15], [2, 16], [9, 17], [7, 18], [12, 19], [13, 20], [13, 21], [14, 22], [15, 23], [9, 24], [18, 25], [20, 26], [20, 27], [8, 28], [24, 29], [26, 30], [26, 31], [13, 32], [28, 33], [18, 34], [18, 35], [18, 36], [18, 37], [30, 38], [30, 39], [20, 40], [32, 41], [34, 42], [36, 43], [38, 44], [38, 45], [30, 46], [26, 47], [40, 48], [44, 49], [44, 50], [30, 51], [46, 52], [30, 53], [47, 54], [49, 55], [49, 56], [44, 57], [44, 58], [50, 59], [38, 60], [51, 61], [52, 62], [53, 63], [55, 64], [44, 65], [57, 66], [58, 67], [60, 68], [46, 69], [64, 70], [49, 71], [66, 72], [55, 73], [55, 74], [71, 75], [57, 76], [57, 77], [57, 78], [58, 79], [73, 80], [74, 81], [76, 82], [78, 83], [79, 84], [80, 85], [80, 86], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 3], [12, 7], [13, 8], [14, 8], [15, 2], [16, 2], [17, 9], [18, 7], [19, 12], [20, 13], [21, 13], [22, 14], [23, 15], [24, 9], [25, 18], [26, 20], [27, 20], [28, 8], [29, 24], [30, 26], [31, 26], [32, 13], [33, 28], [34, 18], [35, 18], [36, 18], [37, 18], [38, 30], [39, 30], [40, 20], [41, 32], [42, 34], [43, 36], [44, 38], [45, 38], [46, 30], [47, 26], [48, 40], [49, 44], [50, 44], [51, 30], [52, 46], [53, 30], [54, 47], [55, 49], [56, 49], [57, 44], [58, 44], [59, 50], [60, 38], [61, 51], [62, 52], [63, 53], [64, 55], [65, 44], [66, 57], [67, 58], [68, 60], [69, 46], [70, 64], [71, 49], [72, 66], [73, 55], [74, 55], [75, 71], [76, 57], [77, 57], [78, 57], [79, 58], [80, 73], [81, 74], [82, 76], [83, 78], [84, 79], [85, 80], [86, 80], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "getMatchScore", "code": "  public double getMatchScore(XPathContext xctxt, int context)\n          throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushCurrentNode(context);\n    xctxt.pushCurrentExpressionNode(context);\n\n    try\n    {\n      XObject score = execute(xctxt);\n\n      return score.num();\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n      xctxt.popCurrentExpressionNode();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [4, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 4], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setAxis", "code": "  public void setAxis(int axis)\n  {\n    m_axis = axis;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAxis", "code": "  public int getAxis()\n  {\n    return m_axis;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \t \tif(visitor.visitMatchPattern(owner, this))\n  \t \t{\n  \t \t\tcallSubtreeVisitors(visitor);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "callSubtreeVisitors", "code": "  protected void callSubtreeVisitors(XPathVisitor visitor)\n  {\n    if (null != m_predicates)\n    {\n      int n = m_predicates.length;\n      for (int i = 0; i < n; i++)\n      {\n        ExpressionOwner predOwner = new PredOwner(i);\n        if (visitor.visitPredicate(predOwner, m_predicates[i]))\n        {\n          m_predicates[i].callVisitors(predOwner, visitor);\n        }\n      }\n    }\n    if (null != m_relativePathPattern)\n    {\n      m_relativePathPattern.callVisitors(this, visitor);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [2, 8], [5, 9], [1, 10], [7, 11], [7, 12], [7, 13], [12, 14], [7, 15], [13, 16], [12, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 2], [9, 5], [10, 1], [11, 7], [12, 7], [13, 7], [14, 12], [15, 7], [16, 13], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getExpression", "code": "  public Expression getExpression()\n  {\n    return m_relativePathPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExpression", "code": "  public void setExpression(Expression exp)\n  {\n    exp.exprSetParent(this);\n  \tm_relativePathPattern = (StepPattern)exp;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "deepEquals", "code": "  public boolean deepEquals(Expression expr)\n  {\n  \tif(!super.deepEquals(expr))\n  \t\treturn false;\n  \t\t\n  \tStepPattern sp = (StepPattern)expr;\n  \t\n    if (null != m_predicates)\n    {\n        int n = m_predicates.length;\n        if ((null == sp.m_predicates) || (sp.m_predicates.length != n))\n              return false;\n        for (int i = 0; i < n; i++)\n        {\n          if (!m_predicates[i].deepEquals(sp.m_predicates[i]))\n          \treturn false; \n        }\n    }\n    else if (null != sp.m_predicates)\n    \treturn false;\n  \t\t\n  \tif(null != m_relativePathPattern)\n  \t{\n  \t\tif(!m_relativePathPattern.deepEquals(sp.m_relativePathPattern))\n  \t\t\treturn false;\n  \t}\n  \telse if(sp.m_relativePathPattern != null)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [3, 10], [3, 11], [5, 12], [8, 13], [8, 14], [2, 15], [9, 16], [10, 17], [10, 18], [3, 19], [3, 20], [3, 21], [11, 22], [12, 23], [13, 24], [14, 25], [15, 26], [15, 27], [17, 28], [18, 29], [19, 30], [20, 31], [20, 32], [26, 33], [19, 34], [31, 35], [32, 36], [32, 37], [34, 38], [19, 39], [37, 40], [38, 41], [34, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 3], [11, 3], [12, 5], [13, 8], [14, 8], [15, 2], [16, 9], [17, 10], [18, 10], [19, 3], [20, 3], [21, 3], [22, 11], [23, 12], [24, 13], [25, 14], [26, 15], [27, 15], [28, 17], [29, 18], [30, 19], [31, 20], [32, 20], [33, 26], [34, 19], [35, 31], [36, 32], [37, 32], [38, 34], [39, 19], [40, 37], [41, 38], [42, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "StepPattern", "code": "  public StepPattern(int whatToShow, String namespace, String name, int axis,\n                     int axisForPredicate)\n  {\n\n    super(whatToShow, namespace, name);\n\n    m_axis = axis;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "StepPattern", "code": "  public StepPattern(int whatToShow, int axis, int axisForPredicate)\n  {\n\n    super(whatToShow);\n\n    m_axis = axis;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-4.3-4650", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/BSHFormalParameter.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.BSHFormalParameter", "code": "class BSHFormalParameter extends SimpleNode\n{\n\tpublic static final Class UNTYPED = null;\n\tpublic String name;\n\t// unsafe caching of type here\n\tpublic Class type;\n\n\tBSHFormalParameter(int id) { super(id); }\n\n\tpublic String getTypeDescriptor( \n\t\tCallStack callstack, Interpreter interpreter, String defaultPackage ) \n\t{\n\t\tif ( jjtGetNumChildren() > 0 )\n\t\t\treturn ((BSHType)jjtGetChild(0)).getTypeDescriptor( \n\t\t\t\tcallstack, interpreter, defaultPackage );\n\t\telse\n\t\t\t// this will probably not get used\n\t\t\treturn \"Ljava/lang/Object;\";  // Object type\n\t}\n\n\t/**\n\t\tEvaluate the type.\n\t*/\n\tpublic Object eval( CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError\n\t{\n\t\tif ( jjtGetNumChildren() > 0 )\n\t\t\ttype = ((BSHType)jjtGetChild(0)).getType( callstack, interpreter );\n\t\telse\n\t\t\ttype = UNTYPED;\n\n\t\treturn type;", "functions": [{"function_name": "getTypeDescriptor", "code": "\tpublic String getTypeDescriptor( \n\t\tCallStack callstack, Interpreter interpreter, String defaultPackage ) \n\t{\n\t\tif ( jjtGetNumChildren() > 0 )\n\t\t\treturn ((BSHType)jjtGetChild(0)).getTypeDescriptor( \n\t\t\t\tcallstack, interpreter, defaultPackage );\n\t\telse\n\t\t\t// this will probably not get used\n\t\t\treturn \"Ljava/lang/Object;\";  // Object type", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [7, 9], [7, 10], [6, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 7], [10, 7], [11, 6], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "eval", "code": "\tpublic Object eval( CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError\n\t{\n\t\tif ( jjtGetNumChildren() > 0 )\n\t\t\ttype = ((BSHType)jjtGetChild(0)).getType( callstack, interpreter );\n\t\telse\n\t\t\ttype = UNTYPED;\n\n\t\treturn type;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "BSHFormalParameter", "code": "\tBSHFormalParameter(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.4-138", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/ExecuteJava.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.ExecuteJava", "code": "public class ExecuteJava {\n\n    private Commandline javaCommand = null;\n    private Path classpath = null;\n    private CommandlineJava.SysProperties sysProperties = null;\n\n    public void setJavaCommand(Commandline javaCommand) {\n        this.javaCommand = javaCommand;\n    }\n\n    public void setClasspath(Path p) {\n        classpath = p;\n    }\n\n    public void setSystemProperties(CommandlineJava.SysProperties s) {\n        sysProperties = s;\n    }\n\n    /**\n     * All output (System.out as well as System.err) will be written\n     * to this Stream.\n     *\n     * @deprecated manage output at the task level\n     */\n    public void setOutput(PrintStream out) {\n    }\n\n    public void execute(Project project) throws BuildException{\n        final String classname = javaCommand.getExecutable();\n        final Object[] argument = { javaCommand.getArguments() };\n\n        AntClassLoader loader = null; \n        try {\n            if (sysProperties != null) {\n                sysProperties.setSystem();\n            }\n\n            final Class[] param = { Class.forName(\"[Ljava.lang.String;\") };\n            Class target = null;\n            if (classpath == null) {\n                target = Class.forName(classname);\n            } else {\n                loader = new AntClassLoader(project.getCoreLoader(), project, classpath, false);\n                loader.setIsolated(true);\n                loader.setThreadContextLoader();\n                target = loader.forceLoadClass(classname);\n                AntClassLoader.initializeClass(target);\n            }\n            final Method main = target.getMethod(\"main\", param);\n            main.invoke(null, argument);\n        } catch (NullPointerException e) {\n            throw new BuildException(\"Could not find main() method in \" + classname);\n        } catch (ClassNotFoundException e) {\n            throw new BuildException(\"Could not find \" + classname + \". Make sure you have it in your classpath\");\n        } catch (InvocationTargetException e) {\n            Throwable t = e.getTargetException();\n            if (!(t instanceof SecurityException)) {\n                throw new BuildException(t);\n            }\n            else {\n                throw (SecurityException)t;\n            }\n        } catch (Exception e) {\n            throw new BuildException(e);\n        } finally {\n            if (loader != null) {\n                loader.resetThreadContextLoader();\n                loader.cleanup();\n            }\n            if (sysProperties != null) {\n                sysProperties.restoreSystem();", "functions": [{"function_name": "setJavaCommand", "code": "    public void setJavaCommand(Commandline javaCommand) {\n        this.javaCommand = javaCommand;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path p) {\n        classpath = p;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSystemProperties", "code": "    public void setSystemProperties(CommandlineJava.SysProperties s) {\n        sysProperties = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutput", "code": "    public void setOutput(PrintStream out) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "    public void execute(Project project) throws BuildException{\n        final String classname = javaCommand.getExecutable();\n        final Object[] argument = { javaCommand.getArguments() };\n\n        AntClassLoader loader = null; \n        try {\n            if (sysProperties != null) {\n                sysProperties.setSystem();\n            }\n\n            final Class[] param = { Class.forName(\"[Ljava.lang.String;\") };\n            Class target = null;\n            if (classpath == null) {\n                target = Class.forName(classname);\n            } else {\n                loader = new AntClassLoader(project.getCoreLoader(), project, classpath, false);\n                loader.setIsolated(true);\n                loader.setThreadContextLoader();\n                target = loader.forceLoadClass(classname);\n                AntClassLoader.initializeClass(target);\n            }\n            final Method main = target.getMethod(\"main\", param);\n            main.invoke(null, argument);\n        } catch (NullPointerException e) {\n            throw new BuildException(\"Could not find main() method in \" + classname);\n        } catch (ClassNotFoundException e) {\n            throw new BuildException(\"Could not find \" + classname + \". Make sure you have it in your classpath\");\n        } catch (InvocationTargetException e) {\n            Throwable t = e.getTargetException();\n            if (!(t instanceof SecurityException)) {\n                throw new BuildException(t);\n            }\n            else {\n                throw (SecurityException)t;\n            }\n        } catch (Exception e) {\n            throw new BuildException(e);\n        } finally {\n            if (loader != null) {\n                loader.resetThreadContextLoader();\n                loader.cleanup();\n            }\n            if (sysProperties != null) {\n                sysProperties.restoreSystem();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "IF", "CATCH", "CATCH", "CATCH", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "IF", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [6, 17], [7, 18], [8, 19], [9, 20], [9, 21], [10, 22], [11, 23], [1, 24], [13, 25], [16, 26], [2, 27], [4, 28], [17, 29], [18, 30], [19, 31], [20, 32], [22, 33], [23, 34], [24, 35], [12, 36], [25, 37], [14, 38], [26, 39], [3, 40], [6, 41], [7, 42], [7, 43], [20, 44], [20, 45], [21, 46], [33, 47], [34, 48], [36, 49], [13, 50], [13, 51], [13, 52], [13, 53], [13, 54], [13, 55], [15, 56], [16, 57], [45, 58], [47, 59], [47, 60], [48, 61], [51, 62], [53, 63], [54, 64], [55, 65], [56, 66], [60, 67], [64, 68], [64, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 6], [18, 7], [19, 8], [20, 9], [21, 9], [22, 10], [23, 11], [24, 1], [25, 13], [26, 16], [27, 2], [28, 4], [29, 17], [30, 18], [31, 19], [32, 20], [33, 22], [34, 23], [35, 24], [36, 12], [37, 25], [38, 14], [39, 26], [40, 3], [41, 6], [42, 7], [43, 7], [44, 20], [45, 20], [46, 21], [47, 33], [48, 34], [49, 36], [50, 13], [51, 13], [52, 13], [53, 13], [54, 13], [55, 13], [56, 15], [57, 16], [58, 45], [59, 47], [60, 47], [61, 48], [62, 51], [63, 53], [64, 54], [65, 55], [66, 56], [67, 60], [68, 64], [69, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}], "label": 0}
{"sample_id": "ant-1.4-110", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/PathConvert.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.PathConvert", "code": "public class PathConvert extends Task {\n\n    /**\n     * Helper class, holds the nested <map> values.  Elements will look like this:\n     * &lt;map from=\"d:\" to=\"/foo\"/>\n     * <p>\n     * When running on windows, the prefix comparison will be case insensitive.\n     */\n    public class MapEntry {\n\n        /**\n         * Set the \"from\" attribute of the map entry\n         */\n        public void setFrom( String from ) {\n            this.from = from;\n        }\n\n        /**\n         * Set the \"to\" attribute of the map entry\n         */\n        public void setTo( String to ) {\n            this.to = to;\n        }\n\n        /**\n         * Apply this map entry to a given path element\n         * @param elem Path element to process\n         * @return String Updated path element after mapping\n         */\n        public String apply( String elem ) {\n            if( from == null || to == null ) {\n                throw new BuildException( \"Both 'from' and 'to' must be set in a map entry\" );\n            }\n\n            String cmpElem = onWindows ? elem.toLowerCase() : elem;\n            String cmpFrom = onWindows ? from.toLowerCase() : from;\n\n\n            if( cmpElem.startsWith( cmpFrom ) ) {\n                int len = from.length();\n\n                if( len >= elem.length() ) {\n                    elem = to;\n                } else {\n                    elem = to + elem.substring( len );\n                }\n            }\n\n            return elem;\n        }\n\n        private String from = null;\n        private String to = null;\n    }\n\n    /**\n     * Create a nested PATH element\n     */\n    public Path createPath() {\n\n        if( isReference() )\n            throw noChildrenAllowed();\n\n        if( path == null ) {\n            path = new Path(getProject());\n        }\n        return path.createPath();\n    }\n\n    /**\n     * Create a nested MAP element\n     */\n    public MapEntry createMap() {\n\n        MapEntry entry = new MapEntry();\n        prefixMap.addElement( entry );\n        return entry;\n    }\n\n    /**\n     * Set the value of the targetos attribute\n     */\n    public void setTargetos( String target ) {\n\n        targetOS = target.toLowerCase();\n\n        if( ! targetOS.equals( \"windows\" ) && ! target.equals( \"unix\" ) ) {\n            throw new BuildException( \"targetos must be one of 'unix' or 'windows'\" );\n        }\n\n\n        targetWindows = targetOS.equals(\"windows\");\n    }\n\n    /**\n     * Set the value of the proprty attribute - this is the property into which our\n     * converted path will be placed.\n     */\n    public void setProperty( String p ) {\n        property = p;\n    }\n\n    /**\n     * Adds a reference to a PATH or FILESET defined elsewhere.\n     */\n    public void setRefid(Reference r) {\n        if( path != null )\n            throw noChildrenAllowed();\n\n        refid = r;\n    }\n\n    /**\n     * Override the default path separator string for the target os\n     */\n    public void setPathSep( String sep ) {\n        pathSep = sep;\n    }\n\n    /**\n     * Override the default directory separator string for the target os\n     */\n    public void setDirSep( String sep ) {\n        dirSep = sep;\n    }\n\n    /**\n     * Has the refid attribute of this element been set?\n     */\n    public boolean isReference() {\n        return refid != null;\n    }\n\n    /**\n     * Do the execution.\n     */\n    public void execute() throws BuildException {\n\n        if( isReference() ) {\n            path = new Path(getProject()).createPath();\n\n            Object obj = refid.getReferencedObject(getProject());\n\n            if( obj instanceof Path ) {\n                path.setRefid(refid);\n            } else if( obj instanceof FileSet ) {\n                FileSet fs = (FileSet)obj;\n                path.addFileset( fs );\n            } else {\n                throw new BuildException( \"'refid' does not refer to a path or fileset\" );\n            }\n        }\n\n\n\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        onWindows = ( osname.indexOf(\"windows\") >= 0 );\n\n        char fromDirSep = onWindows ? '\\\\' : '/';\n        char toDirSep   = dirSep.charAt(0);\n\n        StringBuffer rslt = new StringBuffer( 100 );\n\n        String[] elems = path.list();\n\n        for( int i=0; i < elems.length; i++ ) {\n            String elem = elems[i];\n\n\n\n            elem = elem.replace( fromDirSep, toDirSep );\n\n            if( i != 0 ) rslt.append( pathSep );\n            rslt.append( elem );\n        }\n\n        String value = rslt.toString();\n\n        log( \"Set property \" + property + \" = \" + value, Project.MSG_VERBOSE );\n\n        getProject().setProperty( property, value );\n    }\n\n    /**\n     * Apply the configured map to a path element.  The map is used to convert\n     * between Windows drive letters and Unix paths.  If no map is configured,\n     * then the input string is returned unchanged.\n     *\n     * @param elem The path element to apply the map to\n     * @return String Updated element\n     */\n    private String mapElement( String elem ) {\n\n        int size = prefixMap.size();\n\n        if( size != 0 ) {\n\n\n            for( int i=0; i < size; i++ ) {\n                MapEntry entry = (MapEntry)prefixMap.elementAt(i);\n                String newElem = entry.apply( elem );\n\n\n                if( newElem != elem ) {\n                    elem = newElem;\n                }\n            }\n        }\n\n        return elem;\n    }\n\n    /**\n     * Validate that all our parameters have been properly initialized.\n     * @throws BuildException if something is not setup properly\n     */\n    private void validateSetup() throws BuildException {\n\n        if( path == null )\n            throw new BuildException( \"You must specify a path to convert\" );\n\n        if( property == null )\n            throw new BuildException( \"You must specify a property\" );\n\n\n        if( targetOS == null && pathSep == null && dirSep == null )\n            throw new BuildException( \"You must specify at least one of targetOS, dirSep, or pathSep\" );\n\n        String dsep = File.separator;\n        String psep = File.pathSeparator;\n\n        if( targetOS != null ) {\n            psep = targetWindows ? \";\" : \":\";\n            dsep = targetWindows ? \"\\\\\" : \"/\";\n        }\n\t\telse{\n            psep = pathSep;\n        \n\n            dsep = dirSep;\n        }\n\n        pathSep = psep;\n        dirSep = dsep;\n    }\n\n    /**\n     * Creates an exception that indicates that this XML element must\n     * not have child elements if the refid attribute is set.  \n     */\n    private BuildException noChildrenAllowed() {\n        return new BuildException(\"You must not specify nested PATH elements when using refid\");", "functions": [{"function_name": "createPath", "code": "    public Path createPath() {\n\n        if( isReference() )\n            throw noChildrenAllowed();\n\n        if( path == null ) {\n            path = new Path(getProject());\n        }\n        return path.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [3, 7], [5, 8], [6, 9], [2, 10], [10, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 3], [8, 5], [9, 6], [10, 2], [11, 10], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createMap", "code": "    public MapEntry createMap() {\n\n        MapEntry entry = new MapEntry();\n        prefixMap.addElement( entry );\n        return entry;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setTargetos", "code": "    public void setTargetos( String target ) {\n\n        targetOS = target.toLowerCase();\n\n        if( ! targetOS.equals( \"windows\" ) && ! target.equals( \"unix\" ) ) {\n            throw new BuildException( \"targetos must be one of 'unix' or 'windows'\" );\n        }\n\n\n        targetWindows = targetOS.equals(\"windows\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [1, 7], [4, 8], [4, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 1], [8, 4], [9, 4], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setProperty", "code": "    public void setProperty( String p ) {\n        property = p;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRefid", "code": "    public void setRefid(Reference r) {\n        if( path != null )\n            throw noChildrenAllowed();\n\n        refid = r;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setPathSep", "code": "    public void setPathSep( String sep ) {\n        pathSep = sep;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDirSep", "code": "    public void setDirSep( String sep ) {\n        dirSep = sep;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isReference", "code": "    public boolean isReference() {\n        return refid != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n\n        if( isReference() ) {\n            path = new Path(getProject()).createPath();\n\n            Object obj = refid.getReferencedObject(getProject());\n\n            if( obj instanceof Path ) {\n                path.setRefid(refid);\n            } else if( obj instanceof FileSet ) {\n                FileSet fs = (FileSet)obj;\n                path.addFileset( fs );\n            } else {\n                throw new BuildException( \"'refid' does not refer to a path or fileset\" );\n            }\n        }\n\n\n\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        onWindows = ( osname.indexOf(\"windows\") >= 0 );\n\n        char fromDirSep = onWindows ? '\\\\' : '/';\n        char toDirSep   = dirSep.charAt(0);\n\n        StringBuffer rslt = new StringBuffer( 100 );\n\n        String[] elems = path.list();\n\n        for( int i=0; i < elems.length; i++ ) {\n            String elem = elems[i];\n\n\n\n            elem = elem.replace( fromDirSep, toDirSep );\n\n            if( i != 0 ) rslt.append( pathSep );\n            rslt.append( elem );\n        }\n\n        String value = rslt.toString();\n\n        log( \"Set property \" + property + \" = \" + value, Project.MSG_VERBOSE );\n\n        getProject().setProperty( property, value );", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [0, 12], [8, 13], [9, 14], [10, 15], [1, 16], [2, 17], [2, 18], [3, 19], [4, 20], [5, 21], [6, 22], [12, 23], [7, 24], [8, 25], [8, 26], [15, 27], [2, 28], [17, 29], [2, 30], [2, 31], [20, 32], [21, 33], [22, 34], [22, 35], [23, 36], [23, 37], [24, 38], [24, 39], [25, 40], [25, 41], [8, 42], [27, 43], [27, 44], [17, 45], [29, 46], [30, 47], [37, 48], [40, 49], [26, 50], [42, 51], [44, 52], [40, 53], [40, 54], [25, 55], [50, 56], [51, 57], [51, 58], [53, 59], [40, 60], [59, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 0], [13, 8], [14, 9], [15, 10], [16, 1], [17, 2], [18, 2], [19, 3], [20, 4], [21, 5], [22, 6], [23, 12], [24, 7], [25, 8], [26, 8], [27, 15], [28, 2], [29, 17], [30, 2], [31, 2], [32, 20], [33, 21], [34, 22], [35, 22], [36, 23], [37, 23], [38, 24], [39, 24], [40, 25], [41, 25], [42, 8], [43, 27], [44, 27], [45, 17], [46, 29], [47, 30], [48, 37], [49, 40], [50, 26], [51, 42], [52, 44], [53, 40], [54, 40], [55, 25], [56, 50], [57, 51], [58, 51], [59, 53], [60, 40], [61, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "mapElement", "code": "    private String mapElement( String elem ) {\n\n        int size = prefixMap.size();\n\n        if( size != 0 ) {\n\n\n            for( int i=0; i < size; i++ ) {\n                MapEntry entry = (MapEntry)prefixMap.elementAt(i);\n                String newElem = entry.apply( elem );\n\n\n                if( newElem != elem ) {\n                    elem = newElem;\n                }\n            }\n        }\n\n        return elem;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [6, 10], [6, 11], [6, 12], [10, 13], [6, 14], [11, 15], [10, 16], [12, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 6], [11, 6], [12, 6], [13, 10], [14, 6], [15, 11], [16, 10], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "validateSetup", "code": "    private void validateSetup() throws BuildException {\n\n        if( path == null )\n            throw new BuildException( \"You must specify a path to convert\" );\n\n        if( property == null )\n            throw new BuildException( \"You must specify a property\" );\n\n\n        if( targetOS == null && pathSep == null && dirSep == null )\n            throw new BuildException( \"You must specify at least one of targetOS, dirSep, or pathSep\" );\n\n        String dsep = File.separator;\n        String psep = File.pathSeparator;\n\n        if( targetOS != null ) {\n            psep = targetWindows ? \";\" : \":\";\n            dsep = targetWindows ? \"\\\\\" : \"/\";\n        }\n\t\telse{\n            psep = pathSep;\n        \n\n            dsep = dirSep;\n        }\n\n        pathSep = psep;\n        dirSep = dsep;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "ASSIGN", "ASSIGN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [4, 10], [4, 11], [5, 12], [5, 13], [6, 14], [6, 15], [9, 16], [10, 17], [11, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [1, 24], [1, 25], [1, 26], [1, 27], [17, 28], [18, 29], [19, 30], [19, 31], [20, 32], [22, 33], [26, 34], [27, 35], [30, 36], [31, 37], [34, 38], [34, 39], [35, 40], [35, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 4], [11, 4], [12, 5], [13, 5], [14, 6], [15, 6], [16, 9], [17, 10], [18, 11], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 1], [25, 1], [26, 1], [27, 1], [28, 17], [29, 18], [30, 19], [31, 19], [32, 20], [33, 22], [34, 26], [35, 27], [36, 30], [37, 31], [38, 34], [39, 34], [40, 35], [41, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "noChildrenAllowed", "code": "    private BuildException noChildrenAllowed() {\n        return new BuildException(\"You must not specify nested PATH elements when using refid\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "ant-1.5-447", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/Execute.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Execute", "code": "public class Execute {\n\n    /** Invalid exit code. **/\n    public static final int INVALID = Integer.MAX_VALUE;\n\n    private String[] cmdl = null;\n    private String[] env = null;\n    private int exitValue = INVALID;\n    private ExecuteStreamHandler streamHandler;\n    private ExecuteWatchdog watchdog;\n    private File workingDirectory = null;\n    private Project project = null;\n    private boolean newEnvironment = false;\n\n    /** Controls whether the VM is used to launch commands, where possible */\n    private boolean useVMLauncher = true;\n\n    private static String antWorkingDirectory = System.getProperty(\"user.dir\");\n    private static CommandLauncher vmLauncher = null;\n    private static CommandLauncher shellLauncher = null;\n    private static Vector procEnvironment = null;\n\n    /** Used to destroy processes when the VM exits. */\n    private static ProcessDestroyer processDestroyer = new ProcessDestroyer();\n\n    /**\n     * Builds a command launcher for the OS and JVM we are running under\n     */\n    static {\n        try {\n            vmLauncher = new Java13CommandLauncher();\n        } catch (NoSuchMethodException exc) {\n        }\n\n        if (Os.isFamily(\"mac\")) {\n            shellLauncher = new MacCommandLauncher(new CommandLauncher());\n        } else if (Os.isFamily(\"os/2\")) {\n            shellLauncher = new OS2CommandLauncher(new CommandLauncher());\n        } else if (Os.isFamily(\"windows\")) {\n\n            CommandLauncher baseLauncher;\n            if (System.getProperty(\"java.version\").startsWith(\"1.1\")) {\n                baseLauncher = new Java11CommandLauncher();\n            } else {\n                baseLauncher = new CommandLauncher();\n            }\n\n            if (!Os.isFamily(\"win9x\")) {\n                shellLauncher = new WinNTCommandLauncher(baseLauncher);\n            } else {\n                shellLauncher\n                    = new ScriptCommandLauncher(\"bin/antRun.bat\", baseLauncher);\n            }\n        } else if (Os.isFamily(\"netware\")) {\n            CommandLauncher baseLauncher;\n            if (System.getProperty(\"java.version\").startsWith(\"1.1\")) {\n                baseLauncher = new Java11CommandLauncher();\n            } else {\n                baseLauncher = new CommandLauncher();\n            }\n\n            shellLauncher\n                = new PerlScriptCommandLauncher(\"bin/antRun.pl\", baseLauncher);\n        } else {\n            shellLauncher = new ScriptCommandLauncher(\"bin/antRun\",\n                new CommandLauncher());\n        }\n    }\n\n    /**\n     * Find the list of environment variables for this process.\n     */\n    public static synchronized Vector getProcEnvironment() {\n        if (procEnvironment != null) {\n            return procEnvironment;\n        }\n\n        procEnvironment = new Vector();\n        try {\n            ByteArrayOutputStream out = new ByteArrayOutputStream();\n            Execute exe = new Execute(new PumpStreamHandler(out));\n            exe.setCommandline(getProcEnvCommand());\n            exe.setNewenvironment(true);\n            int retval = exe.execute();\n            if (retval != 0) {\n            }\n\n            BufferedReader in =\n                new BufferedReader(new StringReader(toString(out)));\n\n            String var = null;\n            String line, lineSep = System.getProperty(\"line.separator\");\n            while ((line = in.readLine()) != null) {\n                if (line.indexOf('=') == -1) {\n                    if (var == null) {\n                        var = lineSep + line;\n                    } else {\n                        var += lineSep + line;\n                    }\n                } else {\n                    if (var != null) {\n                        procEnvironment.addElement(var);\n                    }\n                    var = line;\n                }\n            }\n            if (var != null) {\n                procEnvironment.addElement(var);\n            }\n        } catch (java.io.IOException exc) {\n            exc.printStackTrace();\n        }\n        return procEnvironment;\n    }\n\n    private static String[] getProcEnvCommand() {\n        if (Os.isFamily(\"os/2\")) {\n            String[] cmd = {\"cmd\", \"/c\", \"set\" };\n            return cmd;\n        } else if (Os.isFamily(\"windows\")) {\n            if (!Os.isFamily(\"win9x\")) {\n                String[] cmd = {\"cmd\", \"/c\", \"set\" };\n                return cmd;\n            } else {\n                String[] cmd = {\"command.com\", \"/c\", \"set\" };\n                return cmd;\n            }\n        } else if (Os.isFamily(\"z/os\")) {\n            String[] cmd = {\"/bin/env\"};\n            return cmd;\n        } else if (Os.isFamily(\"unix\")) {\n            String[] cmd = {\"/usr/bin/env\"};\n            return cmd;\n        } else if (Os.isFamily(\"netware\")) {\n            String[] cmd = {\"env\"};\n            return cmd;\n        } else {\n            String[] cmd = null;\n            return cmd;\n        }\n    }\n\n    /**\n     * ByteArrayOutputStream#toString doesn't seem to work reliably on\n     * OS/390, at least not the way we use it in the execution\n     * context.\n     *\n     * @since Ant 1.5\n     */\n    public static String toString(ByteArrayOutputStream bos) {\n        if (Os.isFamily(\"z/os\")) {\n            try {\n                return bos.toString(\"Cp1047\");\n            } catch (java.io.UnsupportedEncodingException e) {\n            }\n        }\n        return bos.toString();\n    }\n\n    /**\n     * Creates a new execute object using <code>PumpStreamHandler</code> for\n     * stream handling.\n     */\n    public Execute() {\n        this(new PumpStreamHandler(), null);\n    }\n\n\n    /**\n     * Creates a new execute object.\n     *\n     * @param streamHandler the stream handler used to handle the input and\n     *        output streams of the subprocess.\n     */\n    public Execute(ExecuteStreamHandler streamHandler) {\n        this(streamHandler, null);\n    }\n\n    /**\n     * Creates a new execute object.\n     *\n     * @param streamHandler the stream handler used to handle the input and\n     *        output streams of the subprocess.\n     * @param watchdog a watchdog for the subprocess or <code>null</code> to\n     *        to disable a timeout for the subprocess.\n     */\n    public Execute(ExecuteStreamHandler streamHandler,\n                   ExecuteWatchdog watchdog) {\n        this.streamHandler = streamHandler;\n        this.watchdog = watchdog;\n    }\n\n\n    /**\n     * Returns the commandline used to create a subprocess.\n     *\n     * @return the commandline used to create a subprocess\n     */\n    public String[] getCommandline() {\n        return cmdl;\n    }\n\n\n    /**\n     * Sets the commandline of the subprocess to launch.\n     *\n     * @param commandline the commandline of the subprocess to launch\n     */\n    public void setCommandline(String[] commandline) {\n        cmdl = commandline;\n    }\n\n    /**\n     * Set whether to propagate the default environment or not.\n     *\n     * @param newenv whether to propagate the process environment.\n     */\n    public void setNewenvironment(boolean newenv) {\n        newEnvironment = newenv;\n    }\n\n    /**\n     * Returns the environment used to create a subprocess.\n     *\n     * @return the environment used to create a subprocess\n     */\n    public String[] getEnvironment() {\n        if (env == null || newEnvironment) {\n            return env;\n        }\n        return patchEnvironment();\n    }\n\n\n    /**\n     * Sets the environment variables for the subprocess to launch.\n     *\n     * @param env array of Strings, each element of which has\n     * an environment variable settings in format <em>key=value</em>\n     */\n    public void setEnvironment(String[] env) {\n        this.env = env;\n    }\n\n    /**\n     * Sets the working directory of the process to execute.\n     *\n     * <p>This is emulated using the antRun scripts unless the OS is\n     * Windows NT in which case a cmd.exe is spawned,\n     * or MRJ and setting user.dir works, or JDK 1.3 and there is\n     * official support in java.lang.Runtime.\n     *\n     * @param wd the working directory of the process.\n     */\n    public void setWorkingDirectory(File wd) {\n        if (wd == null || wd.getAbsolutePath().equals(antWorkingDirectory)) {\n            workingDirectory = null;\n        } else {\n            workingDirectory = wd;\n        }\n    }\n\n    /**\n     * Set the name of the antRun script using the project's value.\n     *\n     * @param project the current project.\n     */\n    public void setAntRun(Project project) throws BuildException {\n        this.project = project;\n    }\n\n    /**\n     * Launch this execution through the VM, where possible, rather than through\n     * the OS's shell. In some cases and operating systems using the shell will\n     * allow the shell to perform additional processing such as associating an\n     * executable with a script, etc\n     *\n     * @param useVMLauncher true if exec should launch through thge VM,\n     *                   false if the shell should be used to launch the\n     *                   command.\n     */\n    public void setVMLauncher(boolean useVMLauncher) {\n        this.useVMLauncher = useVMLauncher;\n    }\n\n    /**\n     * Creates a process that runs a command.\n     *\n     * @param project the Project, only used for logging purposes, may be null.\n     * @param command the command to run\n     * @param env the environment for the command\n     * @param dir the working directory for the command\n     * @param useVM use the built-in exec command for JDK 1.3 if available.\n     *\n     * @since Ant 1.5\n     */\n    public static Process launch(Project project, String[] command,\n                                 String[] env, File dir, boolean useVM)\n        throws IOException {\n        CommandLauncher launcher\n            = vmLauncher != null ? vmLauncher : shellLauncher;\n        if (!useVM) {\n            launcher = shellLauncher;\n        }\n\n        return launcher.exec(project, command, env, dir);\n    }\n\n    /**\n     * Runs a process defined by the command line and returns its exit status.\n     *\n     * @return the exit status of the subprocess or <code>INVALID</code>\n     * @exception java.io.IOException The exception is thrown, if launching\n     *            of the subprocess failed\n     */\n    public int execute() throws IOException {\n        final Process process = launch(project, getCommandline(),\n                                       getEnvironment(), workingDirectory,\n                                       useVMLauncher);\n\n        try {\n            streamHandler.setProcessInputStream(process.getOutputStream());\n            streamHandler.setProcessOutputStream(process.getInputStream());\n            streamHandler.setProcessErrorStream(process.getErrorStream());\n        } catch (IOException e) {\n            process.destroy();\n            throw e;\n        }\n        streamHandler.start();\n\n        processDestroyer.add(process);\n\n        if (watchdog != null) {\n            watchdog.start(process);\n        }\n        waitFor(process);\n\n        processDestroyer.remove(process);\n\n        if (watchdog != null) {\n            watchdog.stop();\n        }\n        streamHandler.stop();\n        if (watchdog != null) {\n            watchdog.checkException();\n        }\n        return getExitValue();\n    }\n\n    protected void waitFor(Process process) {\n        try {\n            process.waitFor();\n            setExitValue(process.exitValue());\n        } catch (InterruptedException e) {\n            process.destroy();\n        }\n    }\n\n    protected void setExitValue(int value) {\n        exitValue = value;\n    }\n\n    /**\n     * query the exit value of the process.\n     * @return the exit value, 1 if the process was killed,\n     * or Project.INVALID if no exit value has been received\n     */\n    public int getExitValue() {\n        return exitValue;\n    }\n\n    /**\n     * test for an untimely death of the process\n     * @return true iff a watchdog had to kill the process\n     * @since Ant 1.5\n     */\n    public boolean killedProcess() {\n        return watchdog != null && watchdog.killedProcess();\n    }\n\n    /**\n     * Patch the current environment with the new values from the user.\n     * @return the patched environment\n     */\n    private String[] patchEnvironment() {\n        Vector osEnv = (Vector) getProcEnvironment().clone();\n        for (int i = 0; i < env.length; i++) {\n            int pos = env[i].indexOf('=');\n            String key = env[i].substring(0, pos + 1);\n            int size = osEnv.size();\n            for (int j = 0; j < size; j++) {\n                if (((String) osEnv.elementAt(j)).startsWith(key)) {\n                    osEnv.removeElementAt(j);\n                    break;\n                }\n            }\n            osEnv.addElement(env[i]);\n        }\n        String[] result = new String[osEnv.size()];\n        osEnv.copyInto(result);\n        return result;\n    }\n\n    /**\n     * A utility method that runs an external command.  Writes the output and\n     * error streams of the command to the project log.\n     *\n     * @param task      The task that the command is part of.  Used for logging\n     * @param cmdline   The command to execute.\n     *\n     * @throws BuildException if the command does not return 0.\n     */\n    public static void runCommand(Task task, String[] cmdline)\n        throws BuildException {\n        try {\n            task.log(Commandline.describeCommand(cmdline),\n                     Project.MSG_VERBOSE);\n            Execute exe = new Execute(new LogStreamHandler(task,\n                                                           Project.MSG_INFO,\n                                                           Project.MSG_ERR));\n            exe.setAntRun(task.getProject());\n            exe.setCommandline(cmdline);\n            int retval = exe.execute();\n            if (retval != 0) {\n                throw new BuildException(cmdline[0]\n                    + \" failed with return code \" + retval, task.getLocation());\n            }\n        } catch (java.io.IOException exc) {\n            throw new BuildException(\"Could not launch \" + cmdline[0] + \": \"\n                + exc, task.getLocation());\n        }\n    }\n\n    /**\n     * A command launcher for a particular JVM/OS platform.  This class is\n     * a general purpose command launcher which can only launch commands in\n     * the current working directory.\n     */\n    private static class CommandLauncher {\n        /**\n         * Launches the given command in a new process.\n         *\n         * @param project       The project that the command is part of\n         * @param cmd           The command to execute\n         * @param env           The environment for the new process.  If null,\n         *                      the environment of the current proccess is used.\n         */\n        public Process exec(Project project, String[] cmd, String[] env)\n             throws IOException {\n            if (project != null) {\n                project.log(\"Execute:CommandLauncher: \" +\n                            Commandline.describeCommand(cmd),\n                            Project.MSG_DEBUG);\n            }\n            return Runtime.getRuntime().exec(cmd, env);\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.\n         *\n         * @param project       The project that the command is part of\n         * @param cmd           The command to execute\n         * @param env           The environment for the new process.  If null,\n         *                      the environment of the current proccess is used.\n         * @param workingDir    The directory to start the command in.  If null,\n         *                      the current directory is used\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            if (workingDir == null) {\n                return exec(project, cmd, env);\n            }\n            throw new IOException(\"Cannot execute a process in different \"\n                + \"directory under this JVM\");\n        }\n    }\n\n    /**\n     * A command launcher for JDK/JRE 1.1 under Windows.  Fixes quoting problems\n     * in Runtime.exec().  Can only launch commands in the current working\n     * directory\n     */\n    private static class Java11CommandLauncher extends CommandLauncher {\n        /**\n         * Launches the given command in a new process.  Needs to quote\n         * arguments\n         */\n        public Process exec(Project project, String[] cmd, String[] env)\n             throws IOException {\n            String[] newcmd = new String[cmd.length];\n            for (int i = 0; i < cmd.length; i++) {\n                newcmd[i] = Commandline.quoteArgument(cmd[i]);\n            }\n            if (project != null) {\n                project.log(\"Execute:Java11CommandLauncher: \" +\n                            Commandline.describeCommand(newcmd),\n                            Project.MSG_DEBUG);\n            }\n            return Runtime.getRuntime().exec(newcmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for JDK/JRE 1.3 (and higher).  Uses the built-in\n     * Runtime.exec() command\n     */\n    private static class Java13CommandLauncher extends CommandLauncher {\n        public Java13CommandLauncher() throws NoSuchMethodException {\n            _execWithCWD = Runtime.class.getMethod(\"exec\",\n                new Class[] {String[].class, String[].class, File.class});\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            try {\n                if (project != null) {\n                    project.log(\"Execute:Java13CommandLauncher: \" +\n                                Commandline.describeCommand(cmd),\n                                Project.MSG_DEBUG);\n                }\n                Object[] arguments = { cmd, env, workingDir };\n                return (Process) _execWithCWD.invoke(Runtime.getRuntime(),\n                                                     arguments);\n            } catch (InvocationTargetException exc) {\n                Throwable realexc = exc.getTargetException();\n                if (realexc instanceof ThreadDeath) {\n                    throw (ThreadDeath) realexc;\n                } else if (realexc instanceof IOException) {\n                    throw (IOException) realexc;\n                } else {\n                    throw new BuildException(\"Unable to execute command\",\n                                             realexc);\n                }\n            } catch (Exception exc) {\n                throw new BuildException(\"Unable to execute command\", exc);\n            }\n        }\n\n        private Method _execWithCWD;\n    }\n\n    /**\n     * A command launcher that proxies another command launcher.\n     *\n     * Sub-classes override exec(args, env, workdir)\n     */\n    private static class CommandLauncherProxy extends CommandLauncher {\n        CommandLauncherProxy(CommandLauncher launcher) {\n            _launcher = launcher;\n        }\n\n        /**\n         * Launches the given command in a new process.  Delegates this\n         * method to the proxied launcher\n         */\n        public Process exec(Project project, String[] cmd, String[] env)\n            throws IOException {\n            return _launcher.exec(project, cmd, env);\n        }\n\n        private CommandLauncher _launcher;\n    }\n\n    /**\n     * A command launcher for OS/2 that uses 'cmd.exe' when launching\n     * commands in directories other than the current working\n     * directory.\n     *\n     * <p>Unlike Windows NT and friends, OS/2's cd doesn't support the\n     * /d switch to change drives and directories in one go.</p>\n     */\n    private static class OS2CommandLauncher extends CommandLauncherProxy {\n        OS2CommandLauncher(CommandLauncher launcher) {\n            super(launcher);\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            File commandDir = workingDir;\n            if (workingDir == null) {\n                if (project != null) {\n                    commandDir = project.getBaseDir();\n                } else {\n                    return exec(project, cmd, env);\n                }\n            }\n\n            final int preCmdLength = 7;\n            final String cmdDir = commandDir.getAbsolutePath();\n            String[] newcmd = new String[cmd.length + preCmdLength];\n            newcmd[0] = \"cmd\";\n            newcmd[1] = \"/c\";\n            newcmd[2] = cmdDir.substring(0, 2);\n            newcmd[3] = \"&&\";\n            newcmd[4] = \"cd\";\n            newcmd[5] = cmdDir.substring(2);\n            newcmd[6] = \"&&\";\n            System.arraycopy(cmd, 0, newcmd, preCmdLength, cmd.length);\n\n            return exec(project, newcmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for Windows XP/2000/NT that uses 'cmd.exe' when\n     * launching commands in directories other than the current working\n     * directory.\n     */\n    private static class WinNTCommandLauncher extends CommandLauncherProxy {\n        WinNTCommandLauncher(CommandLauncher launcher) {\n            super(launcher);\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            File commandDir = workingDir;\n            if (workingDir == null) {\n                if (project != null) {\n                    commandDir = project.getBaseDir();\n                } else {\n                    return exec(project, cmd, env);\n                }\n            }\n\n            final int preCmdLength = 6;\n            String[] newcmd = new String[cmd.length + preCmdLength];\n            newcmd[0] = \"cmd\";\n            newcmd[1] = \"/c\";\n            newcmd[2] = \"cd\";\n            newcmd[3] = \"/d\";\n            newcmd[4] = commandDir.getAbsolutePath();\n            newcmd[5] = \"&&\";\n            System.arraycopy(cmd, 0, newcmd, preCmdLength, cmd.length);\n\n            return exec(project, newcmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for Mac that uses a dodgy mechanism to change\n     * working directory before launching commands.\n     */\n    private static class MacCommandLauncher extends CommandLauncherProxy {\n        MacCommandLauncher(CommandLauncher launcher) {\n            super(launcher);\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            if (workingDir == null) {\n                return exec(project, cmd, env);\n            }\n\n            System.getProperties().put(\"user.dir\", workingDir.getAbsolutePath());\n            try {\n                return exec(project, cmd, env);\n            } finally {\n                System.getProperties().put(\"user.dir\", antWorkingDirectory);\n            }\n        }\n    }\n\n    /**\n     * A command launcher that uses an auxiliary script to launch commands\n     * in directories other than the current working directory.\n     */\n    private static class ScriptCommandLauncher extends CommandLauncherProxy {\n        ScriptCommandLauncher(String script, CommandLauncher launcher) {\n            super(launcher);\n            _script = script;\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            if (project == null) {\n                if (workingDir == null) {\n                    return exec(project, cmd, env);\n                }\n                throw new IOException(\"Cannot locate antRun script: \"\n                    + \"No project provided\");\n            }\n\n            String antHome = project.getProperty(\"ant.home\");\n            if (antHome == null) {\n                throw new IOException(\"Cannot locate antRun script: \"\n                    + \"Property 'ant.home' not found\");\n            }\n            String antRun = project.resolveFile(antHome + File.separator + _script).toString();\n\n            File commandDir = workingDir;\n            if (workingDir == null && project != null) {\n                commandDir = project.getBaseDir();\n            }\n\n            String[] newcmd = new String[cmd.length + 2];\n            newcmd[0] = antRun;\n            newcmd[1] = commandDir.getAbsolutePath();\n            System.arraycopy(cmd, 0, newcmd, 2, cmd.length);\n\n            return exec(project, newcmd, env);\n        }\n\n        private String _script;\n    }\n\n    /**\n     * A command launcher that uses an auxiliary perl script to launch commands\n     * in directories other than the current working directory.\n     */\n    private static class PerlScriptCommandLauncher\n        extends CommandLauncherProxy {\n        PerlScriptCommandLauncher(String script, CommandLauncher launcher) {\n            super(launcher);\n            _script = script;\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            if (project == null) {\n                if (workingDir == null) {\n                    return exec(project, cmd, env);\n                }\n                throw new IOException(\"Cannot locate antRun script: \"\n                    + \"No project provided\");\n            }\n\n            String antHome = project.getProperty(\"ant.home\");\n            if (antHome == null) {\n                throw new IOException(\"Cannot locate antRun script: \"\n                    + \"Property 'ant.home' not found\");\n            }\n            String antRun = project.resolveFile(antHome + File.separator + _script).toString();\n\n            File commandDir = workingDir;\n            if (workingDir == null && project != null) {\n                commandDir = project.getBaseDir();\n            }\n\n            String[] newcmd = new String[cmd.length + 3];\n            newcmd[0] = \"perl\";\n            newcmd[1] = antRun;\n            newcmd[2] = commandDir.getAbsolutePath();\n            System.arraycopy(cmd, 0, newcmd, 3, cmd.length);\n\n            return exec(project, newcmd, env);\n        }\n\n        private String _script;", "functions": [{"function_name": "getProcEnvironment", "code": "    public static synchronized Vector getProcEnvironment() {\n        if (procEnvironment != null) {\n            return procEnvironment;\n        }\n\n        procEnvironment = new Vector();\n        try {\n            ByteArrayOutputStream out = new ByteArrayOutputStream();\n            Execute exe = new Execute(new PumpStreamHandler(out));\n            exe.setCommandline(getProcEnvCommand());\n            exe.setNewenvironment(true);\n            int retval = exe.execute();\n            if (retval != 0) {\n            }\n\n            BufferedReader in =\n                new BufferedReader(new StringReader(toString(out)));\n\n            String var = null;\n            String line, lineSep = System.getProperty(\"line.separator\");\n            while ((line = in.readLine()) != null) {\n                if (line.indexOf('=') == -1) {\n                    if (var == null) {\n                        var = lineSep + line;\n                    } else {\n                        var += lineSep + line;\n                    }\n                } else {\n                    if (var != null) {\n                        procEnvironment.addElement(var);\n                    }\n                    var = line;\n                }\n            }\n            if (var != null) {\n                procEnvironment.addElement(var);\n            }\n        } catch (java.io.IOException exc) {\n            exc.printStackTrace();\n        }\n        return procEnvironment;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "CATCH", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [0, 14], [3, 15], [5, 16], [6, 17], [10, 18], [2, 19], [2, 20], [14, 21], [3, 22], [15, 23], [4, 24], [16, 25], [6, 26], [17, 27], [17, 28], [7, 29], [8, 30], [9, 31], [18, 32], [11, 33], [19, 34], [20, 35], [12, 36], [13, 37], [5, 38], [26, 39], [28, 40], [29, 41], [31, 42], [36, 43], [26, 44], [26, 45], [39, 46], [39, 47], [42, 48], [26, 49], [44, 50], [45, 51], [47, 52], [50, 53], [51, 54], [44, 55], [45, 56], [45, 57], [56, 58], [57, 59], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 0], [15, 3], [16, 5], [17, 6], [18, 10], [19, 2], [20, 2], [21, 14], [22, 3], [23, 15], [24, 4], [25, 16], [26, 6], [27, 17], [28, 17], [29, 7], [30, 8], [31, 9], [32, 18], [33, 11], [34, 19], [35, 20], [36, 12], [37, 13], [38, 5], [39, 26], [40, 28], [41, 29], [42, 31], [43, 36], [44, 26], [45, 26], [46, 39], [47, 39], [48, 42], [49, 26], [50, 44], [51, 45], [52, 47], [53, 50], [54, 51], [55, 44], [56, 45], [57, 45], [58, 56], [59, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "getProcEnvCommand", "code": "    private static String[] getProcEnvCommand() {\n        if (Os.isFamily(\"os/2\")) {\n            String[] cmd = {\"cmd\", \"/c\", \"set\" };\n            return cmd;\n        } else if (Os.isFamily(\"windows\")) {\n            if (!Os.isFamily(\"win9x\")) {\n                String[] cmd = {\"cmd\", \"/c\", \"set\" };\n                return cmd;\n            } else {\n                String[] cmd = {\"command.com\", \"/c\", \"set\" };\n                return cmd;\n            }\n        } else if (Os.isFamily(\"z/os\")) {\n            String[] cmd = {\"/bin/env\"};\n            return cmd;\n        } else if (Os.isFamily(\"unix\")) {\n            String[] cmd = {\"/usr/bin/env\"};\n            return cmd;\n        } else if (Os.isFamily(\"netware\")) {\n            String[] cmd = {\"env\"};\n            return cmd;\n        } else {\n            String[] cmd = null;\n            return cmd;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "IF", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "IF", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [1, 6], [1, 7], [3, 8], [4, 9], [4, 10], [2, 11], [5, 12], [9, 13], [9, 14], [4, 15], [4, 16], [10, 17], [11, 18], [13, 19], [9, 20], [9, 21], [14, 22], [11, 23], [11, 24], [11, 25], [11, 26], [18, 27], [7, 28], [7, 29], [7, 30], [13, 31], [13, 32], [13, 33], [13, 34], [19, 35], [16, 36], [32, 37], [21, 38], [24, 39], [24, 40], [24, 41], [26, 42], [26, 43], [26, 44], [34, 45], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 1], [7, 1], [8, 3], [9, 4], [10, 4], [11, 2], [12, 5], [13, 9], [14, 9], [15, 4], [16, 4], [17, 10], [18, 11], [19, 13], [20, 9], [21, 9], [22, 14], [23, 11], [24, 11], [25, 11], [26, 11], [27, 18], [28, 7], [29, 7], [30, 7], [31, 13], [32, 13], [33, 13], [34, 13], [35, 19], [36, 16], [37, 32], [38, 21], [39, 24], [40, 24], [41, 24], [42, 26], [43, 26], [44, 26], [45, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "toString", "code": "    public static String toString(ByteArrayOutputStream bos) {\n        if (Os.isFamily(\"z/os\")) {\n            try {\n                return bos.toString(\"Cp1047\");\n            } catch (java.io.UnsupportedEncodingException e) {\n            }\n        }\n        return bos.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "CATCH", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getCommandline", "code": "    public String[] getCommandline() {\n        return cmdl;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCommandline", "code": "    public void setCommandline(String[] commandline) {\n        cmdl = commandline;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNewenvironment", "code": "    public void setNewenvironment(boolean newenv) {\n        newEnvironment = newenv;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEnvironment", "code": "    public String[] getEnvironment() {\n        if (env == null || newEnvironment) {\n            return env;\n        }\n        return patchEnvironment();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setEnvironment", "code": "    public void setEnvironment(String[] env) {\n        this.env = env;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setWorkingDirectory", "code": "    public void setWorkingDirectory(File wd) {\n        if (wd == null || wd.getAbsolutePath().equals(antWorkingDirectory)) {\n            workingDirectory = null;\n        } else {\n            workingDirectory = wd;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 7], [4, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [7, 1], [8, 4], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setAntRun", "code": "    public void setAntRun(Project project) throws BuildException {\n        this.project = project;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVMLauncher", "code": "    public void setVMLauncher(boolean useVMLauncher) {\n        this.useVMLauncher = useVMLauncher;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "launch", "code": "    public static Process launch(Project project, String[] command,\n                                 String[] env, File dir, boolean useVM)\n        throws IOException {\n        CommandLauncher launcher\n            = vmLauncher != null ? vmLauncher : shellLauncher;\n        if (!useVM) {\n            launcher = shellLauncher;\n        }\n\n        return launcher.exec(project, command, env, dir);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "COND_EXPR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [2, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 2], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "execute", "code": "    public int execute() throws IOException {\n        final Process process = launch(project, getCommandline(),\n                                       getEnvironment(), workingDirectory,\n                                       useVMLauncher);\n\n        try {\n            streamHandler.setProcessInputStream(process.getOutputStream());\n            streamHandler.setProcessOutputStream(process.getInputStream());\n            streamHandler.setProcessErrorStream(process.getErrorStream());\n        } catch (IOException e) {\n            process.destroy();\n            throw e;\n        }\n        streamHandler.start();\n\n        processDestroyer.add(process);\n\n        if (watchdog != null) {\n            watchdog.start(process);\n        }\n        waitFor(process);\n\n        processDestroyer.remove(process);\n\n        if (watchdog != null) {\n            watchdog.stop();\n        }\n        streamHandler.stop();\n        if (watchdog != null) {\n            watchdog.checkException();\n        }\n        return getExitValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [3, 10], [0, 11], [0, 12], [4, 13], [0, 14], [0, 15], [5, 16], [8, 17], [10, 18], [13, 19], [16, 20], [5, 21], [5, 22], [5, 23], [6, 24], [2, 25], [3, 26], [4, 27], [16, 28], [21, 29], [22, 30], [23, 31], [24, 32], [24, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 3], [11, 0], [12, 0], [13, 4], [14, 0], [15, 0], [16, 5], [17, 8], [18, 10], [19, 13], [20, 16], [21, 5], [22, 5], [23, 5], [24, 6], [25, 2], [26, 3], [27, 4], [28, 16], [29, 21], [30, 22], [31, 23], [32, 24], [33, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "waitFor", "code": "    protected void waitFor(Process process) {\n        try {\n            process.waitFor();\n            setExitValue(process.exitValue());\n        } catch (InterruptedException e) {\n            process.destroy();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setExitValue", "code": "    protected void setExitValue(int value) {\n        exitValue = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExitValue", "code": "    public int getExitValue() {\n        return exitValue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "killedProcess", "code": "    public boolean killedProcess() {\n        return watchdog != null && watchdog.killedProcess();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "patchEnvironment", "code": "    private String[] patchEnvironment() {\n        Vector osEnv = (Vector) getProcEnvironment().clone();\n        for (int i = 0; i < env.length; i++) {\n            int pos = env[i].indexOf('=');\n            String key = env[i].substring(0, pos + 1);\n            int size = osEnv.size();\n            for (int j = 0; j < size; j++) {\n                if (((String) osEnv.elementAt(j)).startsWith(key)) {\n                    osEnv.removeElementAt(j);\n                    break;\n                }\n            }\n            osEnv.addElement(env[i]);\n        }\n        String[] result = new String[osEnv.size()];\n        osEnv.copyInto(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [2, 11], [3, 12], [7, 13], [3, 14], [4, 15], [7, 16], [8, 17], [15, 18], [7, 19], [9, 20], [10, 21], [16, 22], [16, 23], [20, 24], [20, 25], [21, 26], [16, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 3], [9, 3], [10, 3], [11, 2], [12, 3], [13, 7], [14, 3], [15, 4], [16, 7], [17, 8], [18, 15], [19, 7], [20, 9], [21, 10], [22, 16], [23, 16], [24, 20], [25, 20], [26, 21], [27, 16], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "runCommand", "code": "    public static void runCommand(Task task, String[] cmdline)\n        throws BuildException {\n        try {\n            task.log(Commandline.describeCommand(cmdline),\n                     Project.MSG_VERBOSE);\n            Execute exe = new Execute(new LogStreamHandler(task,\n                                                           Project.MSG_INFO,\n                                                           Project.MSG_ERR));\n            exe.setAntRun(task.getProject());\n            exe.setCommandline(cmdline);\n            int retval = exe.execute();\n            if (retval != 0) {\n                throw new BuildException(cmdline[0]\n                    + \" failed with return code \" + retval, task.getLocation());\n            }\n        } catch (java.io.IOException exc) {\n            throw new BuildException(\"Could not launch \" + cmdline[0] + \": \"\n                + exc, task.getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [1, 11], [1, 12], [8, 13], [5, 14], [9, 15], [6, 16], [11, 17], [7, 18], [12, 19], [13, 20], [13, 21], [14, 22], [18, 23], [21, 24], [22, 25], [22, 26], [24, 27], [24, 28], [26, 29], [28, 30], [29, 31], [28, 32], [29, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 1], [12, 1], [13, 8], [14, 5], [15, 9], [16, 6], [17, 11], [18, 7], [19, 12], [20, 13], [21, 13], [22, 14], [23, 18], [24, 21], [25, 22], [26, 22], [27, 24], [28, 24], [29, 26], [30, 28], [31, 29], [32, 28], [33, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "Execute", "code": "    public Execute() {\n        this(new PumpStreamHandler(), null);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Execute", "code": "    public Execute(ExecuteStreamHandler streamHandler) {\n        this(streamHandler, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Execute", "code": "    public Execute(ExecuteStreamHandler streamHandler,\n                   ExecuteWatchdog watchdog) {\n        this.streamHandler = streamHandler;\n        this.watchdog = watchdog;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-1.5-5252", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/poifs/property/RootProperty.java", "language": "java", "name": "org.apache.poi.poifs.property.RootProperty", "code": "public class RootProperty\n    extends DirectoryProperty\n{\n\n    /**\n     * Default constructor\n     */\n\n    RootProperty()\n    {\n        super(\"Root Entry\");\n\n        setNodeColor(_NODE_BLACK);\n        setPropertyType(PropertyConstants.ROOT_TYPE);\n        setStartBlock(POIFSConstants.END_OF_CHAIN);\n    }\n\n    /**\n     * reader constructor\n     *\n     * @param index index number\n     * @param array byte data\n     * @param offset offset into byte data\n     */\n\n    protected RootProperty(final int index, final byte [] array,\n                           final int offset)\n    {\n        super(index, array, offset);\n    }\n\n    /**\n     * set size\n     *\n     * @param size size in terms of small blocks\n     */\n\n    public void setSize(int size)\n    {\n        super.setSize(SmallDocumentBlock.calcSize(size));", "functions": [{"function_name": "setSize", "code": "    public void setSize(int size)\n    {\n        super.setSize(SmallDocumentBlock.calcSize(size));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RootProperty", "code": "    RootProperty()\n    {\n        super(\"Root Entry\");\n\n        setNodeColor(_NODE_BLACK);\n        setPropertyType(PropertyConstants.ROOT_TYPE);\n        setStartBlock(POIFSConstants.END_OF_CHAIN);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RootProperty", "code": "    protected RootProperty(final int index, final byte [] array,\n                           final int offset)\n    {\n        super(index, array, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.0-1384", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/xmpp/XmppMessage.java", "language": "java", "name": "org.apache.camel.component.xmpp.XmppMessage", "code": "public class XmppMessage extends DefaultMessage {\n    private Message xmppMessage;\n\n    public XmppMessage() {\n        this(new Message());\n    }\n\n    public XmppMessage(Message jmsMessage) {\n        this.xmppMessage = jmsMessage;\n    }\n\n    @Override\n    public String toString() {\n        if (xmppMessage != null) {\n            return \"XmppMessage: \" + xmppMessage;\n        }\n        else {\n            return \"XmppMessage: \" + getBody();\n        }\n    }\n\n    @Override\n    public XmppExchange getExchange() {\n        return (XmppExchange) super.getExchange();\n    }\n\n    /**\n     * Returns the underlying XMPP message\n     *\n     * @return the underlying XMPP message\n     */\n    public Message getXmppMessage() {\n        return xmppMessage;\n    }\n\n    public void setXmppMessage(Message xmppMessage) {\n        this.xmppMessage = xmppMessage;\n    }\n\n    public Object getHeader(String name) {\n        return xmppMessage.getProperty(name);\n    }\n\n    @Override\n    public void setHeader(String name, Object value) {\n        if (value == null) {\n            xmppMessage.deleteProperty(name);\n        }\n        else {\n            xmppMessage.setProperty(name, value);\n        }\n    }\n\n    @Override\n    public Map<String, Object> getHeaders() {\n        Map<String, Object> answer = new HashMap<String, Object>();\n        Iterator iter = xmppMessage.getPropertyNames();\n        while (iter.hasNext()) {\n            String name = (String) iter.next();\n            answer.put(name, xmppMessage.getProperty(name));\n        }\n        return answer;\n    }\n\n    @Override\n    public XmppMessage newInstance() {\n        return new XmppMessage();\n    }\n\n    @Override\n    protected Object createBody() {\n        if (xmppMessage != null) {\n            return getExchange().getBinding().extractBodyFromXmpp(getExchange(), xmppMessage);\n        }\n        return null;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        if (xmppMessage != null) {\n            return \"XmppMessage: \" + xmppMessage;\n        }\n        else {\n            return \"XmppMessage: \" + getBody();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getExchange", "code": "    @Override\n    public XmppExchange getExchange() {\n        return (XmppExchange) super.getExchange();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXmppMessage", "code": "    public Message getXmppMessage() {\n        return xmppMessage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXmppMessage", "code": "    public void setXmppMessage(Message xmppMessage) {\n        this.xmppMessage = xmppMessage;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeader", "code": "    public Object getHeader(String name) {\n        return xmppMessage.getProperty(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setHeader", "code": "    @Override\n    public void setHeader(String name, Object value) {\n        if (value == null) {\n            xmppMessage.deleteProperty(name);\n        }\n        else {\n            xmppMessage.setProperty(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getHeaders", "code": "    @Override\n    public Map<String, Object> getHeaders() {\n        Map<String, Object> answer = new HashMap<String, Object>();\n        Iterator iter = xmppMessage.getPropertyNames();\n        while (iter.hasNext()) {\n            String name = (String) iter.next();\n            answer.put(name, xmppMessage.getProperty(name));\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [4, 8], [2, 9], [9, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 4], [9, 2], [10, 9], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "newInstance", "code": "    @Override\n    public XmppMessage newInstance() {\n        return new XmppMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createBody", "code": "    @Override\n    protected Object createBody() {\n        if (xmppMessage != null) {\n            return getExchange().getBinding().extractBodyFromXmpp(getExchange(), xmppMessage);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [7, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 7], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "XmppMessage", "code": "    public XmppMessage() {\n        this(new Message());", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XmppMessage", "code": "    public XmppMessage(Message jmsMessage) {\n        this.xmppMessage = jmsMessage;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-867", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/BuildListener.java", "language": "java", "name": "org.apache.tools.ant.BuildListener", "code": "public interface BuildListener extends EventListener {\n\n    /**\n     * Signals that a build has started. This event\n     * is fired before any targets have started.\n     *\n     * @param event An event with any relevant extra information.\n     *              Must not be <code>null</code>.\n     */\n    void buildStarted(BuildEvent event);\n\n    /**\n     * Signals that the last target has finished. This event\n     * will still be fired if an error occurred during the build.\n     *\n     * @param event An event with any relevant extra information.\n     *              Must not be <code>null</code>.\n     *\n     * @see BuildEvent#getException()\n     */\n    void buildFinished(BuildEvent event);\n\n    /**\n     * Signals that a target is starting.\n     *\n     * @param event An event with any relevant extra information.\n     *              Must not be <code>null</code>.\n     *\n     * @see BuildEvent#getTarget()\n     */\n    void targetStarted(BuildEvent event);\n\n    /**\n     * Signals that a target has finished. This event will\n     * still be fired if an error occurred during the build.\n     *\n     * @param event An event with any relevant extra information.\n     *              Must not be <code>null</code>.\n     *\n     * @see BuildEvent#getException()\n     */\n    void targetFinished(BuildEvent event);\n\n    /**\n     * Signals that a task is starting.\n     *\n     * @param event An event with any relevant extra information.\n     *              Must not be <code>null</code>.\n     *\n     * @see BuildEvent#getTask()\n     */\n    void taskStarted(BuildEvent event);\n\n    /**\n     * Signals that a task has finished. This event will still\n     * be fired if an error occurred during the build.\n     *\n     * @param event An event with any relevant extra information.\n     *              Must not be <code>null</code>.\n     *\n     * @see BuildEvent#getException()\n     */\n    void taskFinished(BuildEvent event);\n\n    /**\n     * Signals a message logging event.\n     *\n     * @param event An event with any relevant extra information.\n     *              Must not be <code>null</code>.\n     *\n     * @see BuildEvent#getMessage()\n     * @see BuildEvent#getException()\n     * @see BuildEvent#getPriority()\n     */\n    void messageLogged(BuildEvent event);", "functions": [{"function_name": "buildStarted", "code": "    void buildStarted(BuildEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "buildFinished", "code": "    void buildFinished(BuildEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "targetStarted", "code": "    void targetStarted(BuildEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "targetFinished", "code": "    void targetFinished(BuildEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskStarted", "code": "    void taskStarted(BuildEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskFinished", "code": "    void taskFinished(BuildEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "messageLogged", "code": "    void messageLogged(BuildEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "poi-3.0-6268", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/LegendRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.LegendRecord", "code": "public class LegendRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1015;\n    private  int        field_1_xAxisUpperLeft;\n    private  int        field_2_yAxisUpperLeft;\n    private  int        field_3_xSize;\n    private  int        field_4_ySize;\n    private  byte       field_5_type;\n    public final static byte        TYPE_BOTTOM                    = 0;\n    public final static byte        TYPE_CORNER                    = 1;\n    public final static byte        TYPE_TOP                       = 2;\n    public final static byte        TYPE_RIGHT                     = 3;\n    public final static byte        TYPE_LEFT                      = 4;\n    public final static byte        TYPE_UNDOCKED                  = 7;\n    private  byte       field_6_spacing;\n    public final static byte        SPACING_CLOSE                  = 0;\n    public final static byte        SPACING_MEDIUM                 = 1;\n    public final static byte        SPACING_OPEN                   = 2;\n    private  short      field_7_options;\n    private  BitField   autoPosition                                = BitFieldFactory.getInstance(0x1);\n    private  BitField   autoSeries                                  = BitFieldFactory.getInstance(0x2);\n    private  BitField   autoXPositioning                            = BitFieldFactory.getInstance(0x4);\n    private  BitField   autoYPositioning                            = BitFieldFactory.getInstance(0x8);\n    private  BitField   vertical                                    = BitFieldFactory.getInstance(0x10);\n    private  BitField   dataTable                                   = BitFieldFactory.getInstance(0x20);\n\n\n    public LegendRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Legend record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1015 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public LegendRecord(RecordInputStream in)\n    {\n        super(in);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Legend record\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_xAxisUpperLeft         = in.readInt();\n        field_2_yAxisUpperLeft         = in.readInt();\n        field_3_xSize                  = in.readInt();\n        field_4_ySize                  = in.readInt();\n        field_5_type                   = in.readByte();\n        field_6_spacing                = in.readByte();\n        field_7_options                = in.readShort();\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[LEGEND]\\n\");\n        buffer.append(\"    .xAxisUpperLeft       = \")\n            .append(\"0x\").append(HexDump.toHex(  getXAxisUpperLeft ()))\n            .append(\" (\").append( getXAxisUpperLeft() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .yAxisUpperLeft       = \")\n            .append(\"0x\").append(HexDump.toHex(  getYAxisUpperLeft ()))\n            .append(\" (\").append( getYAxisUpperLeft() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .xSize                = \")\n            .append(\"0x\").append(HexDump.toHex(  getXSize ()))\n            .append(\" (\").append( getXSize() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .ySize                = \")\n            .append(\"0x\").append(HexDump.toHex(  getYSize ()))\n            .append(\" (\").append( getYSize() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .type                 = \")\n            .append(\"0x\").append(HexDump.toHex(  getType ()))\n            .append(\" (\").append( getType() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .spacing              = \")\n            .append(\"0x\").append(HexDump.toHex(  getSpacing ()))\n            .append(\" (\").append( getSpacing() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .options              = \")\n            .append(\"0x\").append(HexDump.toHex(  getOptions ()))\n            .append(\" (\").append( getOptions() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .autoPosition             = \").append(isAutoPosition()).append('\\n'); \n        buffer.append(\"         .autoSeries               = \").append(isAutoSeries()).append('\\n'); \n        buffer.append(\"         .autoXPositioning         = \").append(isAutoXPositioning()).append('\\n'); \n        buffer.append(\"         .autoYPositioning         = \").append(isAutoYPositioning()).append('\\n'); \n        buffer.append(\"         .vertical                 = \").append(isVertical()).append('\\n'); \n        buffer.append(\"         .dataTable                = \").append(isDataTable()).append('\\n'); \n\n        buffer.append(\"[/LEGEND]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_xAxisUpperLeft);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_yAxisUpperLeft);\n        LittleEndian.putInt(data, 12 + offset + pos, field_3_xSize);\n        LittleEndian.putInt(data, 16 + offset + pos, field_4_ySize);\n        data[ 20 + offset + pos ] = field_5_type;\n        data[ 21 + offset + pos ] = field_6_spacing;\n        LittleEndian.putShort(data, 22 + offset + pos, field_7_options);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 4 + 4 + 4 + 4 + 1 + 1 + 2;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n        LegendRecord rec = new LegendRecord();\n    \n        rec.field_1_xAxisUpperLeft = field_1_xAxisUpperLeft;\n        rec.field_2_yAxisUpperLeft = field_2_yAxisUpperLeft;\n        rec.field_3_xSize = field_3_xSize;\n        rec.field_4_ySize = field_4_ySize;\n        rec.field_5_type = field_5_type;\n        rec.field_6_spacing = field_6_spacing;\n        rec.field_7_options = field_7_options;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the x axis upper left field for the Legend record.\n     */\n    public int getXAxisUpperLeft()\n    {\n        return field_1_xAxisUpperLeft;\n    }\n\n    /**\n     * Set the x axis upper left field for the Legend record.\n     */\n    public void setXAxisUpperLeft(int field_1_xAxisUpperLeft)\n    {\n        this.field_1_xAxisUpperLeft = field_1_xAxisUpperLeft;\n    }\n\n    /**\n     * Get the y axis upper left field for the Legend record.\n     */\n    public int getYAxisUpperLeft()\n    {\n        return field_2_yAxisUpperLeft;\n    }\n\n    /**\n     * Set the y axis upper left field for the Legend record.\n     */\n    public void setYAxisUpperLeft(int field_2_yAxisUpperLeft)\n    {\n        this.field_2_yAxisUpperLeft = field_2_yAxisUpperLeft;\n    }\n\n    /**\n     * Get the x size field for the Legend record.\n     */\n    public int getXSize()\n    {\n        return field_3_xSize;\n    }\n\n    /**\n     * Set the x size field for the Legend record.\n     */\n    public void setXSize(int field_3_xSize)\n    {\n        this.field_3_xSize = field_3_xSize;\n    }\n\n    /**\n     * Get the y size field for the Legend record.\n     */\n    public int getYSize()\n    {\n        return field_4_ySize;\n    }\n\n    /**\n     * Set the y size field for the Legend record.\n     */\n    public void setYSize(int field_4_ySize)\n    {\n        this.field_4_ySize = field_4_ySize;\n    }\n\n    /**\n     * Get the type field for the Legend record.\n     *\n     * @return  One of \n     *        TYPE_BOTTOM\n     *        TYPE_CORNER\n     *        TYPE_TOP\n     *        TYPE_RIGHT\n     *        TYPE_LEFT\n     *        TYPE_UNDOCKED\n     */\n    public byte getType()\n    {\n        return field_5_type;\n    }\n\n    /**\n     * Set the type field for the Legend record.\n     *\n     * @param field_5_type\n     *        One of \n     *        TYPE_BOTTOM\n     *        TYPE_CORNER\n     *        TYPE_TOP\n     *        TYPE_RIGHT\n     *        TYPE_LEFT\n     *        TYPE_UNDOCKED\n     */\n    public void setType(byte field_5_type)\n    {\n        this.field_5_type = field_5_type;\n    }\n\n    /**\n     * Get the spacing field for the Legend record.\n     *\n     * @return  One of \n     *        SPACING_CLOSE\n     *        SPACING_MEDIUM\n     *        SPACING_OPEN\n     */\n    public byte getSpacing()\n    {\n        return field_6_spacing;\n    }\n\n    /**\n     * Set the spacing field for the Legend record.\n     *\n     * @param field_6_spacing\n     *        One of \n     *        SPACING_CLOSE\n     *        SPACING_MEDIUM\n     *        SPACING_OPEN\n     */\n    public void setSpacing(byte field_6_spacing)\n    {\n        this.field_6_spacing = field_6_spacing;\n    }\n\n    /**\n     * Get the options field for the Legend record.\n     */\n    public short getOptions()\n    {\n        return field_7_options;\n    }\n\n    /**\n     * Set the options field for the Legend record.\n     */\n    public void setOptions(short field_7_options)\n    {\n        this.field_7_options = field_7_options;\n    }\n\n    /**\n     * Sets the auto position field value.\n     * automatic positioning (1=docked)\n     */\n    public void setAutoPosition(boolean value)\n    {\n        field_7_options = autoPosition.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * automatic positioning (1=docked)\n     * @return  the auto position field value.\n     */\n    public boolean isAutoPosition()\n    {\n        return autoPosition.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the auto series field value.\n     * excel 5 only (true)\n     */\n    public void setAutoSeries(boolean value)\n    {\n        field_7_options = autoSeries.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * excel 5 only (true)\n     * @return  the auto series field value.\n     */\n    public boolean isAutoSeries()\n    {\n        return autoSeries.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the auto x positioning field value.\n     * position of legend on the x axis is automatic\n     */\n    public void setAutoXPositioning(boolean value)\n    {\n        field_7_options = autoXPositioning.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * position of legend on the x axis is automatic\n     * @return  the auto x positioning field value.\n     */\n    public boolean isAutoXPositioning()\n    {\n        return autoXPositioning.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the auto y positioning field value.\n     * position of legend on the y axis is automatic\n     */\n    public void setAutoYPositioning(boolean value)\n    {\n        field_7_options = autoYPositioning.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * position of legend on the y axis is automatic\n     * @return  the auto y positioning field value.\n     */\n    public boolean isAutoYPositioning()\n    {\n        return autoYPositioning.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the vertical field value.\n     * vertical or horizontal legend (1 or 0 respectively).  Always 0 if not automatic.\n     */\n    public void setVertical(boolean value)\n    {\n        field_7_options = vertical.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * vertical or horizontal legend (1 or 0 respectively).  Always 0 if not automatic.\n     * @return  the vertical field value.\n     */\n    public boolean isVertical()\n    {\n        return vertical.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the data table field value.\n     * 1 if chart contains data table\n     */\n    public void setDataTable(boolean value)\n    {\n        field_7_options = dataTable.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * 1 if chart contains data table\n     * @return  the data table field value.\n     */\n    public boolean isDataTable()\n    {\n        return dataTable.isSet(field_7_options);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Legend record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_xAxisUpperLeft         = in.readInt();\n        field_2_yAxisUpperLeft         = in.readInt();\n        field_3_xSize                  = in.readInt();\n        field_4_ySize                  = in.readInt();\n        field_5_type                   = in.readByte();\n        field_6_spacing                = in.readByte();\n        field_7_options                = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [5, 12], [6, 13], [7, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 5], [13, 6], [14, 7], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[LEGEND]\\n\");\n        buffer.append(\"    .xAxisUpperLeft       = \")\n            .append(\"0x\").append(HexDump.toHex(  getXAxisUpperLeft ()))\n            .append(\" (\").append( getXAxisUpperLeft() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .yAxisUpperLeft       = \")\n            .append(\"0x\").append(HexDump.toHex(  getYAxisUpperLeft ()))\n            .append(\" (\").append( getYAxisUpperLeft() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .xSize                = \")\n            .append(\"0x\").append(HexDump.toHex(  getXSize ()))\n            .append(\" (\").append( getXSize() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .ySize                = \")\n            .append(\"0x\").append(HexDump.toHex(  getYSize ()))\n            .append(\" (\").append( getYSize() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .type                 = \")\n            .append(\"0x\").append(HexDump.toHex(  getType ()))\n            .append(\" (\").append( getType() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .spacing              = \")\n            .append(\"0x\").append(HexDump.toHex(  getSpacing ()))\n            .append(\" (\").append( getSpacing() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .options              = \")\n            .append(\"0x\").append(HexDump.toHex(  getOptions ()))\n            .append(\" (\").append( getOptions() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .autoPosition             = \").append(isAutoPosition()).append('\\n'); \n        buffer.append(\"         .autoSeries               = \").append(isAutoSeries()).append('\\n'); \n        buffer.append(\"         .autoXPositioning         = \").append(isAutoXPositioning()).append('\\n'); \n        buffer.append(\"         .autoYPositioning         = \").append(isAutoYPositioning()).append('\\n'); \n        buffer.append(\"         .vertical                 = \").append(isVertical()).append('\\n'); \n        buffer.append(\"         .dataTable                = \").append(isDataTable()).append('\\n'); \n\n        buffer.append(\"[/LEGEND]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [4, 26], [5, 27], [5, 28], [5, 29], [6, 30], [6, 31], [6, 32], [7, 33], [7, 34], [7, 35], [8, 36], [8, 37], [8, 38], [9, 39], [9, 40], [9, 41], [10, 42], [10, 43], [10, 44], [11, 45], [12, 46], [12, 47], [12, 48], [12, 49], [12, 50], [12, 51], [13, 52], [14, 53], [14, 54], [14, 55], [14, 56], [14, 57], [14, 58], [15, 59], [16, 60], [16, 61], [16, 62], [16, 63], [16, 64], [16, 65], [17, 66], [18, 67], [18, 68], [18, 69], [18, 70], [18, 71], [18, 72], [19, 73], [20, 74], [20, 75], [20, 76], [20, 77], [20, 78], [20, 79], [21, 80], [22, 81], [22, 82], [22, 83], [22, 84], [22, 85], [22, 86], [23, 87], [24, 88], [24, 89], [24, 90], [24, 91], [24, 92], [24, 93], [25, 94], [2, 95], [28, 96], [29, 97], [31, 98], [32, 99], [34, 100], [35, 101], [37, 102], [38, 103], [40, 104], [41, 105], [43, 106], [44, 107], [45, 108], [47, 109], [48, 110], [49, 111], [50, 112], [51, 113], [52, 114], [54, 115], [55, 116], [56, 117], [57, 118], [58, 119], [59, 120], [61, 121], [62, 122], [63, 123], [64, 124], [65, 125], [66, 126], [68, 127], [69, 128], [70, 129], [71, 130], [72, 131], [73, 132], [75, 133], [76, 134], [77, 135], [78, 136], [79, 137], [80, 138], [82, 139], [83, 140], [84, 141], [85, 142], [86, 143], [87, 144], [89, 145], [90, 146], [91, 147], [92, 148], [93, 149], [112, 150], [118, 151], [124, 152], [130, 153], [136, 154], [142, 155], [148, 156], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 4], [27, 5], [28, 5], [29, 5], [30, 6], [31, 6], [32, 6], [33, 7], [34, 7], [35, 7], [36, 8], [37, 8], [38, 8], [39, 9], [40, 9], [41, 9], [42, 10], [43, 10], [44, 10], [45, 11], [46, 12], [47, 12], [48, 12], [49, 12], [50, 12], [51, 12], [52, 13], [53, 14], [54, 14], [55, 14], [56, 14], [57, 14], [58, 14], [59, 15], [60, 16], [61, 16], [62, 16], [63, 16], [64, 16], [65, 16], [66, 17], [67, 18], [68, 18], [69, 18], [70, 18], [71, 18], [72, 18], [73, 19], [74, 20], [75, 20], [76, 20], [77, 20], [78, 20], [79, 20], [80, 21], [81, 22], [82, 22], [83, 22], [84, 22], [85, 22], [86, 22], [87, 23], [88, 24], [89, 24], [90, 24], [91, 24], [92, 24], [93, 24], [94, 25], [95, 2], [96, 28], [97, 29], [98, 31], [99, 32], [100, 34], [101, 35], [102, 37], [103, 38], [104, 40], [105, 41], [106, 43], [107, 44], [108, 45], [109, 47], [110, 48], [111, 49], [112, 50], [113, 51], [114, 52], [115, 54], [116, 55], [117, 56], [118, 57], [119, 58], [120, 59], [121, 61], [122, 62], [123, 63], [124, 64], [125, 65], [126, 66], [127, 68], [128, 69], [129, 70], [130, 71], [131, 72], [132, 73], [133, 75], [134, 76], [135, 77], [136, 78], [137, 79], [138, 80], [139, 82], [140, 83], [141, 84], [142, 85], [143, 86], [144, 87], [145, 89], [146, 90], [147, 91], [148, 92], [149, 93], [150, 112], [151, 118], [152, 124], [153, 130], [154, 136], [155, 142], [156, 148], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_xAxisUpperLeft);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_yAxisUpperLeft);\n        LittleEndian.putInt(data, 12 + offset + pos, field_3_xSize);\n        LittleEndian.putInt(data, 16 + offset + pos, field_4_ySize);\n        data[ 20 + offset + pos ] = field_5_type;\n        data[ 21 + offset + pos ] = field_6_spacing;\n        LittleEndian.putShort(data, 22 + offset + pos, field_7_options);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [6, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [14, 21], [2, 22], [15, 23], [16, 24], [17, 25], [18, 26], [19, 27], [13, 28], [20, 29], [21, 30], [23, 31], [7, 32], [8, 33], [24, 34], [25, 35], [26, 36], [27, 37], [28, 38], [28, 39], [32, 40], [33, 41], [40, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 6], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [21, 14], [22, 2], [23, 15], [24, 16], [25, 17], [26, 18], [27, 19], [28, 13], [29, 20], [30, 21], [31, 23], [32, 7], [33, 8], [34, 24], [35, 25], [36, 26], [37, 27], [38, 28], [39, 28], [40, 32], [41, 33], [42, 40], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 4 + 4 + 4 + 4 + 1 + 1 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [14, 15], [14, 16], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [15, 14], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        LegendRecord rec = new LegendRecord();\n    \n        rec.field_1_xAxisUpperLeft = field_1_xAxisUpperLeft;\n        rec.field_2_yAxisUpperLeft = field_2_yAxisUpperLeft;\n        rec.field_3_xSize = field_3_xSize;\n        rec.field_4_ySize = field_4_ySize;\n        rec.field_5_type = field_5_type;\n        rec.field_6_spacing = field_6_spacing;\n        rec.field_7_options = field_7_options;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getXAxisUpperLeft", "code": "    public int getXAxisUpperLeft()\n    {\n        return field_1_xAxisUpperLeft;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXAxisUpperLeft", "code": "    public void setXAxisUpperLeft(int field_1_xAxisUpperLeft)\n    {\n        this.field_1_xAxisUpperLeft = field_1_xAxisUpperLeft;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getYAxisUpperLeft", "code": "    public int getYAxisUpperLeft()\n    {\n        return field_2_yAxisUpperLeft;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setYAxisUpperLeft", "code": "    public void setYAxisUpperLeft(int field_2_yAxisUpperLeft)\n    {\n        this.field_2_yAxisUpperLeft = field_2_yAxisUpperLeft;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXSize", "code": "    public int getXSize()\n    {\n        return field_3_xSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXSize", "code": "    public void setXSize(int field_3_xSize)\n    {\n        this.field_3_xSize = field_3_xSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getYSize", "code": "    public int getYSize()\n    {\n        return field_4_ySize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setYSize", "code": "    public void setYSize(int field_4_ySize)\n    {\n        this.field_4_ySize = field_4_ySize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "    public byte getType()\n    {\n        return field_5_type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setType", "code": "    public void setType(byte field_5_type)\n    {\n        this.field_5_type = field_5_type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSpacing", "code": "    public byte getSpacing()\n    {\n        return field_6_spacing;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSpacing", "code": "    public void setSpacing(byte field_6_spacing)\n    {\n        this.field_6_spacing = field_6_spacing;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptions", "code": "    public short getOptions()\n    {\n        return field_7_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOptions", "code": "    public void setOptions(short field_7_options)\n    {\n        this.field_7_options = field_7_options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoPosition", "code": "    public void setAutoPosition(boolean value)\n    {\n        field_7_options = autoPosition.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoPosition", "code": "    public boolean isAutoPosition()\n    {\n        return autoPosition.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoSeries", "code": "    public void setAutoSeries(boolean value)\n    {\n        field_7_options = autoSeries.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoSeries", "code": "    public boolean isAutoSeries()\n    {\n        return autoSeries.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoXPositioning", "code": "    public void setAutoXPositioning(boolean value)\n    {\n        field_7_options = autoXPositioning.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoXPositioning", "code": "    public boolean isAutoXPositioning()\n    {\n        return autoXPositioning.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoYPositioning", "code": "    public void setAutoYPositioning(boolean value)\n    {\n        field_7_options = autoYPositioning.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoYPositioning", "code": "    public boolean isAutoYPositioning()\n    {\n        return autoYPositioning.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVertical", "code": "    public void setVertical(boolean value)\n    {\n        field_7_options = vertical.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isVertical", "code": "    public boolean isVertical()\n    {\n        return vertical.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDataTable", "code": "    public void setDataTable(boolean value)\n    {\n        field_7_options = dataTable.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDataTable", "code": "    public boolean isDataTable()\n    {\n        return dataTable.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LegendRecord", "code": "    public LegendRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "LegendRecord", "code": "    public LegendRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "jedit-4.2-4429", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/gui/PasteFromListDialog.java", "language": "java", "name": "org.gjt.sp.jedit.gui.PasteFromListDialog", "code": "public class PasteFromListDialog extends EnhancedDialog\n{\n\t//{{{ PasteFromListDialog constructor\n\tpublic PasteFromListDialog(String name, View view, ListModel model)\n\t{\n\t\tsuper(view,jEdit.getProperty(name + \".title\"),true);\n\t\tthis.view = view;\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\t\tJPanel center = new JPanel(new GridLayout(2,1,2,12));\n\n\t\tclips = new JList(model);\n\t\tclips.setCellRenderer(new Renderer());\n\t\tclips.setVisibleRowCount(12);\n\n\t\tclips.addMouseListener(new MouseHandler());\n\t\tclips.addListSelectionListener(new ListHandler());\n\n\t\tinsert = new JButton(jEdit.getProperty(\"common.insert\"));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(name + \".caption\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,0));\n\t\tcontent.add(BorderLayout.NORTH,label);\n\n\t\tJScrollPane scroller = new JScrollPane(clips);\n\t\tscroller.setPreferredSize(new Dimension(500,150));\n\t\tcenter.add(scroller);\n\n\t\tclipText = new JTextArea();\n\t\tclipText.setEditable(false);\n\t\tscroller = new JScrollPane(clipText);\n\t\tscroller.setPreferredSize(new Dimension(500,150));\n\t\tcenter.add(scroller);\n\n\t\tcontent.add(center, BorderLayout.CENTER);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,0,0,0));\n\t\tpanel.add(Box.createGlue());\n\t\tpanel.add(insert);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tpanel.add(cancel);\n\t\tpanel.add(Box.createGlue());\n\t\tcontent.add(panel, BorderLayout.SOUTH);\n\n\t\tif(model.getSize() >= 1)\n\t\t\tclips.setSelectedIndex(0);\n\t\tupdateButtons();\n\n\t\tgetRootPane().setDefaultButton(insert);\n\t\tinsert.addActionListener(new ActionHandler());\n\t\tcancel.addActionListener(new ActionHandler());\n\n\t\tGUIUtilities.requestFocus(this,clips);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tsetVisible(true);\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\tObject[] selected = clips.getSelectedValues();\n\t\tif(selected == null || selected.length == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tview.getTextArea().setSelectedText(getSelectedClipText());\n\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate View view;\n\tprivate JList clips;\n\tprivate JTextArea clipText;\n\tprivate JButton insert;\n\tprivate JButton cancel;\n\t//}}}\n\n\t//{{{ getSelectedClipText()\n\tprivate String getSelectedClipText()\n\t{\n\t\tObject[] selected = clips.getSelectedValues();\n\t\tStringBuffer clip = new StringBuffer();\n\t\tfor(int i = 0; i < selected.length; i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tclip.append('\\n');\n\t\t\tclip.append(selected[i]);\n\t\t}\n\t\treturn clip.toString();\n\t}\n\t//}}}\n\n\t//{{{ updateButtons() method\n\tprivate void updateButtons()\n\t{\n\t\tint selected = clips.getSelectedIndex();\n\t\tinsert.setEnabled(selected != -1);\n\t} //}}}\n\n\t//{{{ showClipText() method\n\tprivate void showClipText()\n\t{\n\t\tObject[] selected = clips.getSelectedValues();\n\t\tif(selected == null || selected.length == 0)\n\t\t\tclipText.setText(\"\");\n\t\telse\n\t\t\tclipText.setText(getSelectedClipText());\n\t\tclipText.setCaretPosition(0);\n\t}\n\t//}}}\n\n\t//}}}\n\n\t//{{{ Renderer class\n\tclass Renderer extends DefaultListCellRenderer\n\t{\n\t\tString shorten(String item)\n\t\t{\n\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\t// workaround for Swing rendering labels starting\n\t\t\t// with <html> using the HTML engine\n\t\t\tif(item.toLowerCase().startsWith(\"<html>\"))\n\t\t\t\tbuf.append(' ');\n\t\t\tboolean ws = true;\n\t\t\tfor(int i = 0; i < item.length(); i++)\n\t\t\t{\n\t\t\t\tchar ch = item.charAt(i);\n\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t{\n\t\t\t\t\tif(ws)\n\t\t\t\t\t\t/* do nothing */;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbuf.append(' ');\n\t\t\t\t\t\tws = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tws = false;\n\t\t\t\t\tbuf.append(ch);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(buf.length() == 0)\n\t\t\t\treturn jEdit.getProperty(\"paste-from-list.whitespace\");\n\t\t\treturn buf.toString();\n\t\t}\n\n\t\tpublic Component getListCellRendererComponent(\n\t\t\tJList list, Object value, int index,\n\t\t\tboolean isSelected, boolean cellHasFocus)\n\t\t{\n\t\t\tsuper.getListCellRendererComponent(list,value,index,\n\t\t\t\tisSelected,cellHasFocus);\n\n\t\t\tsetText(shorten(value.toString()));\n\n\t\t\treturn this;\n\t\t}\n\t} //}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\t\t\tif(source == insert)\n\t\t\t\tok();\n\t\t\telse if(source == cancel)\n\t\t\t\tcancel();\n\t\t}\n\t} //}}}\n\n\t//{{{ ListHandler class\n\tclass ListHandler implements ListSelectionListener\n\t{\n\t\t//{{{ valueChanged() method\n\t\tpublic void valueChanged(ListSelectionEvent evt)\n\t\t{\n\t\t\tshowClipText();\n\t\t\tupdateButtons();\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ MouseHandler class\n\tclass MouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mouseClicked(MouseEvent evt)\n\t\t{\n\t\t\tif(evt.getClickCount() == 2)\n\t\t\t\tok();", "functions": [{"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tObject[] selected = clips.getSelectedValues();\n\t\tif(selected == null || selected.length == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tview.getTextArea().setSelectedText(getSelectedClipText());\n\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [5, 8], [5, 9], [2, 10], [6, 11], [1, 12], [8, 13], [9, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 5], [9, 5], [10, 2], [11, 6], [12, 1], [13, 8], [14, 9], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSelectedClipText", "code": "\tprivate String getSelectedClipText()\n\t{\n\t\tObject[] selected = clips.getSelectedValues();\n\t\tStringBuffer clip = new StringBuffer();\n\t\tfor(int i = 0; i < selected.length; i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tclip.append('\\n');\n\t\t\tclip.append(selected[i]);\n\t\t}\n\t\treturn clip.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [4, 9], [2, 10], [7, 11], [2, 12], [7, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 4], [10, 2], [11, 7], [12, 2], [13, 7], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "updateButtons", "code": "\tprivate void updateButtons()\n\t{\n\t\tint selected = clips.getSelectedIndex();\n\t\tinsert.setEnabled(selected != -1);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "showClipText", "code": "\tprivate void showClipText()\n\t{\n\t\tObject[] selected = clips.getSelectedValues();\n\t\tif(selected == null || selected.length == 0)\n\t\t\tclipText.setText(\"\");\n\t\telse\n\t\t\tclipText.setText(getSelectedClipText());\n\t\tclipText.setCaretPosition(0);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [1, 7], [4, 8], [4, 9], [2, 10], [6, 11], [7, 12], [8, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 1], [8, 4], [9, 4], [10, 2], [11, 6], [12, 7], [13, 8], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "PasteFromListDialog", "code": "\tpublic PasteFromListDialog(String name, View view, ListModel model)\n\t{\n\t\tsuper(view,jEdit.getProperty(name + \".title\"),true);\n\t\tthis.view = view;\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\t\tJPanel center = new JPanel(new GridLayout(2,1,2,12));\n\n\t\tclips = new JList(model);\n\t\tclips.setCellRenderer(new Renderer());\n\t\tclips.setVisibleRowCount(12);\n\n\t\tclips.addMouseListener(new MouseHandler());\n\t\tclips.addListSelectionListener(new ListHandler());\n\n\t\tinsert = new JButton(jEdit.getProperty(\"common.insert\"));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(name + \".caption\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,0));\n\t\tcontent.add(BorderLayout.NORTH,label);\n\n\t\tJScrollPane scroller = new JScrollPane(clips);\n\t\tscroller.setPreferredSize(new Dimension(500,150));\n\t\tcenter.add(scroller);\n\n\t\tclipText = new JTextArea();\n\t\tclipText.setEditable(false);\n\t\tscroller = new JScrollPane(clipText);\n\t\tscroller.setPreferredSize(new Dimension(500,150));\n\t\tcenter.add(scroller);\n\n\t\tcontent.add(center, BorderLayout.CENTER);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,0,0,0));\n\t\tpanel.add(Box.createGlue());\n\t\tpanel.add(insert);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tpanel.add(cancel);\n\t\tpanel.add(Box.createGlue());\n\t\tcontent.add(panel, BorderLayout.SOUTH);\n\n\t\tif(model.getSize() >= 1)\n\t\t\tclips.setSelectedIndex(0);\n\t\tupdateButtons();\n\n\t\tgetRootPane().setDefaultButton(insert);\n\t\tinsert.addActionListener(new ActionHandler());\n\t\tcancel.addActionListener(new ActionHandler());\n\n\t\tGUIUtilities.requestFocus(this,clips);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tsetVisible(true);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [10, 49], [14, 50], [15, 51], [16, 52], [1, 53], [18, 54], [18, 55], [20, 56], [22, 57], [24, 58], [25, 59], [26, 60], [2, 61], [29, 62], [30, 63], [31, 64], [32, 65], [34, 66], [3, 67], [36, 68], [4, 69], [37, 70], [38, 71], [39, 72], [40, 73], [41, 74], [42, 75], [43, 76], [5, 77], [45, 78], [6, 79], [48, 80], [53, 81], [57, 82], [59, 83], [59, 84], [59, 85], [59, 86], [62, 87], [62, 88], [66, 89], [66, 90], [68, 91], [68, 92], [68, 93], [68, 94], [69, 95], [70, 96], [71, 97], [77, 98], [78, 99], [78, 100], [78, 101], [78, 102], [79, 103], [80, 104], [95, 105], [96, 106], [97, 107], [98, 108], [98, 109], [98, 110], [98, 111], [105, 112], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 10], [50, 14], [51, 15], [52, 16], [53, 1], [54, 18], [55, 18], [56, 20], [57, 22], [58, 24], [59, 25], [60, 26], [61, 2], [62, 29], [63, 30], [64, 31], [65, 32], [66, 34], [67, 3], [68, 36], [69, 4], [70, 37], [71, 38], [72, 39], [73, 40], [74, 41], [75, 42], [76, 43], [77, 5], [78, 45], [79, 6], [80, 48], [81, 53], [82, 57], [83, 59], [84, 59], [85, 59], [86, 59], [87, 62], [88, 62], [89, 66], [90, 66], [91, 68], [92, 68], [93, 68], [94, 68], [95, 69], [96, 70], [97, 71], [98, 77], [99, 78], [100, 78], [101, 78], [102, 78], [103, 79], [104, 80], [105, 95], [106, 96], [107, 97], [108, 98], [109, 98], [110, 98], [111, 98], [112, 105], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112]]}], "label": 0}
{"sample_id": "xalan-2.4-6440", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xpath/objects/XNull.java", "language": "java", "name": "org.apache.xpath.objects.XNull", "code": "public class XNull extends XNodeSet\n{\n\n  /**\n   * Create an XObject.\n   */\n  public XNull()\n  {\n    super();\n  }\n\n  /**\n   * Tell what kind of class this is.\n   *\n   * @return type CLASS_NULL\n   */\n  public int getType()\n  {\n    return CLASS_NULL;\n  }\n\n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return type string \"#CLASS_NULL\"\n   */\n  public String getTypeString()\n  {\n    return \"#CLASS_NULL\";\n  }\n\n  /**\n   * Cast result object to a number.\n   * \n   * @return 0.0\n   */\n\n  public double num()\n  {\n    return 0.0;\n  }\n\n  /**\n   * Cast result object to a boolean.\n   *\n   * @return false\n   */\n  public boolean bool()\n  {\n    return false;\n  }\n\n  /**\n   * Cast result object to a string.\n   *\n   * @return empty string \"\"\n   */\n  public String str()\n  {\n    return \"\";\n  }\n\n  /**\n   * Cast result object to a result tree fragment.\n   *\n   * @param support XPath context to use for the conversion\n   *\n   * @return The object as a result tree fragment.\n   */\n  public int rtf(XPathContext support)\n  {\n    return DTM.NULL;\n  }\n\n\n  /**\n   * Tell if two objects are functionally equal.\n   *\n   * @param obj2 Object to compare this to\n   *\n   * @return True if the given object is of type CLASS_NULL\n   */\n  public boolean equals(XObject obj2)\n  {\n    return obj2.getType() == CLASS_NULL;", "functions": [{"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_NULL;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"#CLASS_NULL\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "num", "code": "  public double num()\n  {\n    return 0.0;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "bool", "code": "  public boolean bool()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "str", "code": "  public String str()\n  {\n    return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "rtf", "code": "  public int rtf(XPathContext support)\n  {\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "equals", "code": "  public boolean equals(XObject obj2)\n  {\n    return obj2.getType() == CLASS_NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "XNull", "code": "  public XNull()\n  {\n    super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.5-6984", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/util/VoidType.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.VoidType", "code": "public final class VoidType extends Type {\n    protected VoidType() {}\n\n    public String toString() {\n\treturn \"void\";\n    }\n\n    public boolean identicalTo(Type other) {\n\treturn this == other;\n    }\n\n    public String toSignature() {\n\treturn \"V\";\n    }\n\n    public org.apache.bcel.generic.Type toJCType() {\n    }\n\n    public Instruction POP() {\n        return NOP;\n    }\n\n    /**\n     * Translates a void into an object of internal type <code>type</code>.\n     * This translation is needed when calling external functions\n     * that return void.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n\n    /**\n     * Translates a void into a string by pushing the empty string ''.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t    StringType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(classGen.getConstantPool(), \"\"));\n    }\n\n    /**\n     * Translates an external (primitive) Java type into a void.\n     * Only an external \"void\" can be converted to this class.\n     */\n    public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t      Class clazz) {\n\tif (!clazz.getName().equals(\"void\")) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), clazz.getName());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "functions": [{"function_name": "toString", "code": "    public String toString() {\n\treturn \"void\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "identicalTo", "code": "    public boolean identicalTo(Type other) {\n\treturn this == other;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toSignature", "code": "    public String toSignature() {\n\treturn \"V\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toJCType", "code": "    public org.apache.bcel.generic.Type toJCType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "POP", "code": "    public Instruction POP() {\n        return NOP;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [6, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 6], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t    StringType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(classGen.getConstantPool(), \"\"));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [6, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "translateFrom", "code": "    public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t      Class clazz) {\n\tif (!clazz.getName().equals(\"void\")) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), clazz.getName());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [7, 9], [8, 10], [6, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 7], [10, 8], [11, 6], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "VoidType", "code": "    protected VoidType() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.4-6406", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/trax/SmartTransformerFactoryImpl.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl", "code": "public class SmartTransformerFactoryImpl extends SAXTransformerFactory \n{\n\n    private TransformerFactory _xsltcFactory = null;\n    private TransformerFactory _xalanFactory = null;\n    private TransformerFactory _currFactory = null;\n    private ErrorListener      _errorlistener = null;\n    private URIResolver        _uriresolver = null;\n\n    /**\n     * implementation of the SmartTransformerFactory. This factory\n     * uses org.apache.xalan.xsltc.trax.TransformerFactory\n     * to return Templates objects; and uses \n     * org.apache.xalan.processor.TransformerFactory\n     * to return Transformer objects.  \n     */\n    public SmartTransformerFactoryImpl() { }\n\n    private void createXSLTCTransformerFactory() {\n \tfinal String xsltcMessage =\n\t    \"org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl \"+\n            \"could not create an \"+\n            \"org.apache.xalan.xsltc.trax.TransformerFactoryImpl.\";\n\t\n\ttry {\n\t    Class xsltcFactClass = Class.forName(\n\t\t\"org.apache.xalan.xsltc.trax.TransformerFactoryImpl\");\n\t    _xsltcFactory = (org.apache.xalan.xsltc.trax.TransformerFactoryImpl)\n\t\txsltcFactClass.newInstance();\n\t} \n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(xsltcMessage);\n\t} \n \tcatch (InstantiationException e) {\n\t    System.err.println(xsltcMessage);\n\t}\n \tcatch (IllegalAccessException e) {\n\t    System.err.println(xsltcMessage);\n\t}\n\t_currFactory = _xsltcFactory;\n    }\n\n    private void createXalanTransformerFactory() {\n \tfinal String xalanMessage =\n\t    \"org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl \"+\n\t    \"could not create an \"+\n\t    \"org.apache.xalan.processor.TransformerFactoryImpl.\";\n\ttry {\n\t    Class xalanFactClass = Class.forName(\n\t\t\"org.apache.xalan.processor.TransformerFactoryImpl\");\n\t    _xalanFactory = (org.apache.xalan.processor.TransformerFactoryImpl)\n\t\txalanFactClass.newInstance();\n\t} \n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(xalanMessage);\n        }\n \tcatch (InstantiationException e) {\n\t    System.err.println(xalanMessage);\n\t}\n \tcatch (IllegalAccessException e) {\n\t    System.err.println(xalanMessage);\n\t}\n\t_currFactory = _xalanFactory;\n    }\n\n    public void setErrorListener(ErrorListener listener) \n\tthrows IllegalArgumentException \n    {\n\t_errorlistener = listener;\n    }\n\n    public ErrorListener getErrorListener() { \n\treturn _errorlistener;\n    }\n\n    public Object getAttribute(String name) \n\tthrows IllegalArgumentException \n    {\n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            return _xsltcFactory.getAttribute(name); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    return _xalanFactory.getAttribute(name);\n        }\n    }\n\n    public void setAttribute(String name, Object value) \n\tthrows IllegalArgumentException { \n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            _xsltcFactory.setAttribute(name, value); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    _xalanFactory.setAttribute(name, value);\n        }\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Look up the value of a feature (to see if it is supported).\n     * This method must be updated as the various methods and features of this\n     * class are implemented.\n     *\n     * @param name The feature name\n     * @return 'true' if feature is supported, 'false' if not\n     */\n    public boolean getFeature(String name) { \n        String[] features = {\n            DOMSource.FEATURE,\n            DOMResult.FEATURE,\n            SAXSource.FEATURE,\n            SAXResult.FEATURE,\n            StreamSource.FEATURE,\n            StreamResult.FEATURE\n        };\n\n        for (int i=0; i<features.length; i++) {\n            if (name.equals(features[i])) return true;\n\t}\n\n        return false;\n    }\n\n    public URIResolver getURIResolver() {\n\treturn _uriresolver; \n    } \n\n    public void setURIResolver(URIResolver resolver) {\n\t_uriresolver = resolver;\n    }\n\n    public Source getAssociatedStylesheet(Source source, String media,\n\t\t\t\t\t  String title, String charset)\n\tthrows TransformerConfigurationException \n    {\n\tif (_currFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\treturn _currFactory.getAssociatedStylesheet(source, media,\n\t\ttitle, charset);\n    }\n\n    /**\n     * Create a Transformer object that copies the input document to the\n     * result. Uses the org.apache.xalan.processor.TransformerFactory.\n     * @return A Transformer object.\n     */\n    public Transformer newTransformer()\n\tthrows TransformerConfigurationException \n    {\n\tif (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(); \n    }\n\n    /**\n     * Create a Transformer object that from the input stylesheet \n     * Uses the org.apache.xalan.processor.TransformerFactory.\n     * @param source the stylesheet.\n     * @return A Transformer object.\n     */\n    public Transformer newTransformer(Source source) throws\n\tTransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(source); \n    }\n\n    /**\n     * Create a Templates object that from the input stylesheet \n     * Uses the org.apache.xalan.xsltc.trax.TransformerFactory.\n     * @param source the stylesheet.\n     * @return A Templates object.\n     */\n    public Templates newTemplates(Source source)\n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xsltcFactory;\t \n\treturn _currFactory.newTemplates(source); \n    }\n\n    /**\n     * Get a TemplatesHandler object that can process SAX ContentHandler\n     * events into a Templates object. Uses the\n     * org.apache.xalan.xsltc.trax.TransformerFactory.\n     */\n    public TemplatesHandler newTemplatesHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\treturn ((SAXTransformerFactory)_xsltcFactory).newTemplatesHandler();\n    }\n\n    /**\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events based on a copy transformer. \n     * Uses org.apache.xalan.processor.TransformerFactory. \n     */\n    public TransformerHandler newTransformerHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn ((SAXTransformerFactory)_xalanFactory).newTransformerHandler(); \n    }\n\n    /**\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events based on a transformer specified by the stylesheet Source. \n     * Uses org.apache.xalan.processor.TransformerFactory. \n     */\n    public TransformerHandler newTransformerHandler(Source src) \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn \n            ((SAXTransformerFactory)_xalanFactory).newTransformerHandler(src); \n    }\n\n\n    /**\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events based on a transformer specified by the stylesheet Source. \n     * Uses org.apache.xalan.xsltc.trax.TransformerFactory. \n     */\n    public TransformerHandler newTransformerHandler(Templates templates) \n\tthrows TransformerConfigurationException  \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n        return \n        ((SAXTransformerFactory)_xsltcFactory).newTransformerHandler(templates);\n    }\n\n\n    /**\n     * Create an XMLFilter that uses the given source as the\n     * transformation instructions. Uses\n     * org.apache.xalan.xsltc.trax.TransformerFactory.\n     */\n    public XMLFilter newXMLFilter(Source src) \n\tthrows TransformerConfigurationException {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\tTemplates templates = _xsltcFactory.newTemplates(src);\n\tif (templates == null ) return null;\n\treturn newXMLFilter(templates); \n    }\n\n    /*\n     * Create an XMLFilter that uses the given source as the\n     * transformation instructions. Uses\n     * org.apache.xalan.xsltc.trax.TransformerFactory.\n     */\n    public XMLFilter newXMLFilter(Templates templates) \n\tthrows TransformerConfigurationException {\n\ttry {\n            return new org.apache.xalan.xsltc.trax.TrAXFilter(templates);\n        }\n        catch(TransformerConfigurationException e1) {\n            if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n\t    ErrorListener errorListener = _xsltcFactory.getErrorListener();\n            if(errorListener != null) {\n                try {\n                    errorListener.fatalError(e1);\n                    return null;\n                }\n                catch( TransformerException e2) {\n                    new TransformerConfigurationException(e2);\n                }\n            }\n            throw e1;", "functions": [{"function_name": "createXSLTCTransformerFactory", "code": "    private void createXSLTCTransformerFactory() {\n \tfinal String xsltcMessage =\n\t    \"org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl \"+\n            \"could not create an \"+\n            \"org.apache.xalan.xsltc.trax.TransformerFactoryImpl.\";\n\t\n\ttry {\n\t    Class xsltcFactClass = Class.forName(\n\t\t\"org.apache.xalan.xsltc.trax.TransformerFactoryImpl\");\n\t    _xsltcFactory = (org.apache.xalan.xsltc.trax.TransformerFactoryImpl)\n\t\txsltcFactClass.newInstance();\n\t} \n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(xsltcMessage);\n\t} \n \tcatch (InstantiationException e) {\n\t    System.err.println(xsltcMessage);\n\t}\n \tcatch (IllegalAccessException e) {\n\t    System.err.println(xsltcMessage);\n\t}\n\t_currFactory = _xsltcFactory;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "ASSIGN", "CATCH", "CATCH", "CATCH", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [4, 10], [5, 11], [6, 12], [7, 13], [9, 14], [9, 15], [8, 16], [13, 17], [15, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 4], [11, 5], [12, 6], [13, 7], [14, 9], [15, 9], [16, 8], [17, 13], [18, 15], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "createXalanTransformerFactory", "code": "    private void createXalanTransformerFactory() {\n \tfinal String xalanMessage =\n\t    \"org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl \"+\n\t    \"could not create an \"+\n\t    \"org.apache.xalan.processor.TransformerFactoryImpl.\";\n\ttry {\n\t    Class xalanFactClass = Class.forName(\n\t\t\"org.apache.xalan.processor.TransformerFactoryImpl\");\n\t    _xalanFactory = (org.apache.xalan.processor.TransformerFactoryImpl)\n\t\txalanFactClass.newInstance();\n\t} \n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(xalanMessage);\n        }\n \tcatch (InstantiationException e) {\n\t    System.err.println(xalanMessage);\n\t}\n \tcatch (IllegalAccessException e) {\n\t    System.err.println(xalanMessage);\n\t}\n\t_currFactory = _xalanFactory;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "ASSIGN", "CATCH", "CATCH", "CATCH", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [4, 10], [5, 11], [6, 12], [7, 13], [9, 14], [9, 15], [8, 16], [13, 17], [15, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 4], [11, 5], [12, 6], [13, 7], [14, 9], [15, 9], [16, 8], [17, 13], [18, 15], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setErrorListener", "code": "    public void setErrorListener(ErrorListener listener) \n\tthrows IllegalArgumentException \n    {\n\t_errorlistener = listener;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorListener", "code": "    public ErrorListener getErrorListener() { \n\treturn _errorlistener;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAttribute", "code": "    public Object getAttribute(String name) \n\tthrows IllegalArgumentException \n    {\n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            return _xsltcFactory.getAttribute(name); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    return _xalanFactory.getAttribute(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "IF", "RETURN", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [11, 16], [13, 17], [5, 18], [7, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 11], [17, 13], [18, 5], [19, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setAttribute", "code": "    public void setAttribute(String name, Object value) \n\tthrows IllegalArgumentException { \n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            _xsltcFactory.setAttribute(name, value); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    _xalanFactory.setAttribute(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [1, 9], [5, 10], [1, 11], [6, 12], [7, 13], [8, 14], [10, 15], [12, 16], [5, 17], [6, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 1], [10, 5], [11, 1], [12, 6], [13, 7], [14, 8], [15, 10], [16, 12], [17, 5], [18, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getFeature", "code": "    public boolean getFeature(String name) { \n        String[] features = {\n            DOMSource.FEATURE,\n            DOMResult.FEATURE,\n            SAXSource.FEATURE,\n            SAXResult.FEATURE,\n            StreamSource.FEATURE,\n            StreamResult.FEATURE\n        };\n\n        for (int i=0; i<features.length; i++) {\n            if (name.equals(features[i])) return true;\n\t}\n\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getURIResolver", "code": "    public URIResolver getURIResolver() {\n\treturn _uriresolver; ", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setURIResolver", "code": "    public void setURIResolver(URIResolver resolver) {\n\t_uriresolver = resolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAssociatedStylesheet", "code": "    public Source getAssociatedStylesheet(Source source, String media,\n\t\t\t\t\t  String title, String charset)\n\tthrows TransformerConfigurationException \n    {\n\tif (_currFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\treturn _currFactory.getAssociatedStylesheet(source, media,\n\t\ttitle, charset);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [8, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 8], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "newTransformer", "code": "    public Transformer newTransformer()\n\tthrows TransformerConfigurationException \n    {\n\tif (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [3, 8], [4, 9], [7, 10], [8, 11], [9, 12], [2, 13], [3, 14], [4, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 3], [9, 4], [10, 7], [11, 8], [12, 9], [13, 2], [14, 3], [15, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "newTransformer", "code": "    public Transformer newTransformer(Source source) throws\n\tTransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(source); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [4, 10], [8, 11], [9, 12], [10, 13], [2, 14], [3, 15], [4, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 4], [11, 8], [12, 9], [13, 10], [14, 2], [15, 3], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newTemplates", "code": "    public Templates newTemplates(Source source)\n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xsltcFactory;\t \n\treturn _currFactory.newTemplates(source); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [4, 10], [8, 11], [9, 12], [10, 13], [2, 14], [3, 15], [4, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 4], [11, 8], [12, 9], [13, 10], [14, 2], [15, 3], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newTemplatesHandler", "code": "    public TemplatesHandler newTemplatesHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\treturn ((SAXTransformerFactory)_xsltcFactory).newTemplatesHandler();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [2, 11], [3, 12], [4, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 2], [12, 3], [13, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn ((SAXTransformerFactory)_xalanFactory).newTransformerHandler(); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [2, 11], [3, 12], [4, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 2], [12, 3], [13, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler(Source src) \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn \n            ((SAXTransformerFactory)_xalanFactory).newTransformerHandler(src); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [7, 10], [8, 11], [2, 12], [3, 13], [4, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 7], [11, 8], [12, 2], [13, 3], [14, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler(Templates templates) \n\tthrows TransformerConfigurationException  \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n        return \n        ((SAXTransformerFactory)_xsltcFactory).newTransformerHandler(templates);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [7, 10], [8, 11], [2, 12], [3, 13], [4, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 7], [11, 8], [12, 2], [13, 3], [14, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "newXMLFilter", "code": "    public XMLFilter newXMLFilter(Source src) \n\tthrows TransformerConfigurationException {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\tTemplates templates = _xsltcFactory.newTemplates(src);\n\tif (templates == null ) return null;\n\treturn newXMLFilter(templates); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [4, 11], [5, 12], [6, 13], [9, 14], [10, 15], [3, 16], [11, 17], [12, 18], [13, 19], [4, 20], [5, 21], [6, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 4], [12, 5], [13, 6], [14, 9], [15, 10], [16, 3], [17, 11], [18, 12], [19, 13], [20, 4], [21, 5], [22, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "newXMLFilter", "code": "    public XMLFilter newXMLFilter(Templates templates) \n\tthrows TransformerConfigurationException {\n\ttry {\n            return new org.apache.xalan.xsltc.trax.TrAXFilter(templates);\n        }\n        catch(TransformerConfigurationException e1) {\n            if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n\t    ErrorListener errorListener = _xsltcFactory.getErrorListener();\n            if(errorListener != null) {\n                try {\n                    errorListener.fatalError(e1);\n                    return null;\n                }\n                catch( TransformerException e2) {\n                    new TransformerConfigurationException(e2);\n                }\n            }\n            throw e1;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [3, 7], [3, 8], [4, 9], [6, 10], [8, 11], [6, 12], [10, 13], [7, 14], [11, 15], [12, 16], [12, 17], [8, 18], [17, 19], [12, 20], [16, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 3], [8, 3], [9, 4], [10, 6], [11, 8], [12, 6], [13, 10], [14, 7], [15, 11], [16, 12], [17, 12], [18, 8], [19, 17], [20, 12], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "SmartTransformerFactoryImpl", "code": "    public SmartTransformerFactoryImpl() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.4-120", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/SQLExec.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.SQLExec", "code": "public class SQLExec extends Task {\n\n    static public class DelimiterType extends EnumeratedAttribute {\n        static public final String NORMAL = \"normal\";\n        static public final String ROW = \"row\";\n        public String[] getValues() {\n            return new String[] {NORMAL, ROW};\n        }\n    }\n    \n    \n    private int goodSql = 0, totalSql = 0;\n\n    private Path classpath;\n\n    private AntClassLoader loader;\n\n    private Vector filesets = new Vector();\n\n    /**\n     * Database connection\n     */\n    private Connection conn = null;\n    \n    /**\n     * Autocommit flag. Default value is false\n     */\n    private boolean autocommit=false;\n    \n    /**\n     * SQL statement\n     */\n    private Statement statement = null;\n\n    /**\n     * DB driver.\n     */\n    private String driver = null;\n\n    /**\n     * DB url.\n     */\n    private String url = null;\n\n    /**\n     * User name.\n     */\n    private String userId = null;\n\n    /**\n     * Password\n     */\n    private String password = null;\n\n    /**\n     * SQL input file\n     */\n    private File srcFile = null;\n\n    /**\n     * SQL input command\n     */\n    private String sqlCommand = \"\";\n\n    /**\n     * SQL transactions to perform\n     */\n    private Vector transactions = new Vector();\n\n    /**\n     * SQL Statement delimiter\n     */\n    private String delimiter = \";\";\n    \n    /**\n     * The delimiter type indicating whether the delimiter will\n     * only be recognized on a line by itself\n     */\n    private String delimiterType = DelimiterType.NORMAL;\n    \n    /**\n     * Print SQL results.\n     */\n    private boolean print = false;\n\n    /**\n     * Print header columns.\n     */\n    private boolean showheaders = true;\n\n    /**\n     * Results Output file.\n     */\n    private File output = null;\n\n    /**\n     * RDBMS Product needed for this SQL.\n     **/\n    private String rdbms = null;\n\n    /**\n     * RDBMS Version needed for this SQL.\n     **/\n    private String version = null;\n\n    /**\n     * Action to perform if an error is found\n     **/\n    private String onError = \"abort\";\n\n    /**\n     * Set the classpath for loading the driver.\n     */\n    public void setClasspath(Path classpath) {\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);\n        }\n    }\n\n    /**\n     * Create the classpath for loading the driver.\n     */\n    public Path createClasspath() {\n        if (this.classpath == null) {\n            this.classpath = new Path(project);\n        }\n        return this.classpath.createPath();\n    }\n\n    /**\n     * Set the classpath for loading the driver using the classpath reference.\n     */\n    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);\n    }\n    \n    /**\n     * Set the name of the sql file to be run.\n     */\n    public void setSrc(File srcFile) {\n        this.srcFile = srcFile;\n    }\n    \n    /**\n     * Set the sql command to execute\n     */\n    public void addText(String sql) {\n        this.sqlCommand += sql;\n    }\n    \n    /**\n     * Adds a set of files (nested fileset attribute).\n     */\n    public void addFileset(FileSet set) {\n        filesets.addElement(set);\n    }\n\n\n    /**\n     * Set the sql command to execute\n     */\n    public Transaction createTransaction() {\n        Transaction t = new Transaction();\n        transactions.addElement(t);\n        return t;\n    }\n    \n    /**\n     * Set the JDBC driver to be used.\n     */\n    public void setDriver(String driver) {\n        this.driver = driver;\n    }\n    \n    /**\n     * Set the DB connection url.\n     */\n    public void setUrl(String url) {\n        this.url = url;\n    }\n    \n    /**\n     * Set the user name for the DB connection.\n     */\n    public void setUserid(String userId) {\n        this.userId = userId;\n    }\n    \n    /**\n     * Set the password for the DB connection.\n     */\n    public void setPassword(String password) {\n        this.password = password;\n    }\n    \n    /**\n     * Set the autocommit flag for the DB connection.\n     */\n    public void setAutocommit(boolean autocommit) {\n        this.autocommit = autocommit;\n    }\n\n    /**\n     * Set the statement delimiter.\n     *\n     * <p>For example, set this to \"go\" and delimitertype to \"ROW\" for\n     * Sybase ASE or MS SQL Server.</p>\n     */\n    public void setDelimiter(String delimiter) {\n        this.delimiter = delimiter;\n    }\n\n    /**\n     * Set the Delimiter type for this sql task. The delimiter type takes\n     * two values - normal and row. Normal means that any occurence of the delimiter\n     * terminate the SQL command whereas with row, only a line containing just the\n     * delimiter is recognized as the end of the command.\n     */\n    public void setDelimiterType(DelimiterType delimiterType) {\n        this.delimiterType = delimiterType.getValue();\n    }\n    \n    /**\n     * Set the print flag.\n     */\n    public void setPrint(boolean print) {\n        this.print = print;\n    }\n    \n    /**\n     * Set the showheaders flag.\n     */\n    public void setShowheaders(boolean showheaders) {\n        this.showheaders = showheaders;\n    }\n\n    /**\n     * Set the output file.\n     */\n    public void setOutput(File output) {\n        this.output = output;\n    }\n\n    /**\n     * Set the rdbms required\n     */\n    public void setRdbms(String vendor) {\n        this.rdbms = vendor.toLowerCase();\n    }\n\n    /**\n     * Set the version required\n     */\n    public void setVersion(String version) {\n        this.version = version.toLowerCase();\n    }\n\n    /**\n     * Set the action to perform onerror\n     */\n    public void setOnerror(OnError action) {\n        this.onError = action.getValue();\n    }\n\n    /**\n     * Load the sql file and then execute it\n     */\n    public void execute() throws BuildException {\n        sqlCommand = sqlCommand.trim();\n\n        if (srcFile == null && sqlCommand.length()==0 && filesets.isEmpty()) { \n            if (transactions.size() == 0) {\n                throw new BuildException(\"Source file or fileset, transactions or sql statement must be set!\", location);\n            }\n        } else { \n            for (int i=0; i<filesets.size(); i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                DirectoryScanner ds = fs.getDirectoryScanner(project);\n                File srcDir = fs.getDir(project);\n\n                String[] srcFiles = ds.getIncludedFiles();\n\n                for ( int j=0 ; j<srcFiles.length ; j++ ) {\n                    Transaction t = createTransaction();\n                    t.setSrc(new File(srcDir, srcFiles[j]));\n                }\n            }\n\n            Transaction t = createTransaction();\n            t.setSrc(srcFile);\n            t.addText(sqlCommand);\n        }\n\n        if (driver == null) {\n            throw new BuildException(\"Driver attribute must be set!\", location);\n        }\n        if (userId == null) {\n            throw new BuildException(\"User Id attribute must be set!\", location);\n        }\n        if (password == null) {\n            throw new BuildException(\"Password attribute must be set!\", location);\n        }\n        if (url == null) {\n            throw new BuildException(\"Url attribute must be set!\", location);\n        }\n        if (srcFile != null && !srcFile.exists()) {\n            throw new BuildException(\"Source file does not exist!\", location);\n        }\n        Driver driverInstance = null;\n        try {\n            Class dc;\n            if (classpath != null) {\n                log( \"Loading \" + driver + \" using AntClassLoader with classpath \" + classpath, \n                     Project.MSG_VERBOSE );\n\n                loader = new AntClassLoader(project, classpath);\n                dc = loader.loadClass(driver);\n            }\n            else {\n                log(\"Loading \" + driver + \" using system loader.\", Project.MSG_VERBOSE);\n                dc = Class.forName(driver);\n            }\n            driverInstance = (Driver) dc.newInstance();\n        }catch(ClassNotFoundException e){\n            throw new BuildException(\"Class Not Found: JDBC driver \" + driver + \" could not be loaded\", location);\n        }catch(IllegalAccessException e){\n            throw new BuildException(\"Illegal Access: JDBC driver \" + driver + \" could not be loaded\", location);\n        }catch(InstantiationException e) {\n            throw new BuildException(\"Instantiation Exception: JDBC driver \" + driver + \" could not be loaded\", location);\n        }\n\n        try{\n            log(\"connecting to \" + url, Project.MSG_VERBOSE );\n            Properties info = new Properties();\n            info.put(\"user\", userId);\n            info.put(\"password\", password);\n            conn = driverInstance.connect(url, info);\n\n            if (conn == null) {\n                throw new SQLException(\"No suitable Driver for \"+url);\n            }\n\n            if (!isValidRdbms(conn)) return;\n\n            conn.setAutoCommit(autocommit);\n\n            statement = conn.createStatement();\n\n            \n            PrintStream out = System.out;\n            try {\n                if (output != null) {\n                    log(\"Opening PrintStream to output file \" + output, Project.MSG_VERBOSE);\n                    out = new PrintStream(new BufferedOutputStream(new FileOutputStream(output)));\n                }\n                        \n                for (Enumeration e = transactions.elements(); \n                     e.hasMoreElements();) {\n                       \n                    ((Transaction) e.nextElement()).runTransaction(out);\n                    if (!autocommit) {\n                        log(\"Commiting transaction\", Project.MSG_VERBOSE);\n                        conn.commit();\n                    }\n                }\n            }\n            finally {\n                if (out != null && out != System.out) {\n                    out.close();\n                }\n            }\n        } catch(IOException e){\n            if (!autocommit && conn != null && onError.equals(\"abort\")) {\n                try {\n                    conn.rollback();\n                } catch (SQLException ex) {}\n            }\n            throw new BuildException(e, location);\n        } catch(SQLException e){\n            if (!autocommit && conn != null && onError.equals(\"abort\")) {\n                try {\n                    conn.rollback();\n                } catch (SQLException ex) {}\n            }\n            throw new BuildException(e, location);\n        }\n        finally {\n            try {\n                if (statement != null) {\n                    statement.close();\n                }\n                if (conn != null) {\n                    conn.close();\n                }\n            }\n            catch (SQLException e) {}\n        }\n          \n        log(goodSql + \" of \" + totalSql + \n            \" SQL statements executed successfully\");\n    }\n\n    protected void runStatements(Reader reader, PrintStream out) throws SQLException, IOException {\n        String sql = \"\";\n        String line = \"\";\n \n        BufferedReader in = new BufferedReader(reader);\n \n        try{\n            while ((line=in.readLine()) != null){\n                line = line.trim();\n                line = ProjectHelper.replaceProperties(project, line,\n                                                       project.getProperties());\n                if (line.startsWith(\"--\")) continue;\n                StringTokenizer st = new StringTokenizer(line);\n                if (st.hasMoreTokens()) {\n                    String token = st.nextToken();\n                    if (\"REM\".equalsIgnoreCase(token)) {\n                        continue;\n                    }\n                }\n\n                sql += \" \" + line;\n                sql = sql.trim();\n\n                if (line.indexOf(\"--\") >= 0) sql += \"\\n\";\n\n                if (delimiterType.equals(DelimiterType.NORMAL) && sql.endsWith(delimiter) ||\n                    delimiterType.equals(DelimiterType.ROW) && line.equals(delimiter)) {\n                    log(\"SQL: \" + sql, Project.MSG_VERBOSE);\n                    execSQL(sql.substring(0, sql.length() - delimiter.length()), out);\n                    sql = \"\";\n                }\n            }\n \n            if(!sql.equals(\"\")){\n                execSQL(sql, out);\n            }\n        }catch(SQLException e){\n            throw e;\n        }\n\n    }\n \n    /**\n     * Verify if connected to the correct RDBMS\n     **/\n    protected boolean isValidRdbms(Connection conn) {\n        if (rdbms == null && version == null)\n            return true;\n        \n        try {\n            DatabaseMetaData dmd = conn.getMetaData();\n            \n            if (rdbms != null) {\n                String theVendor = dmd.getDatabaseProductName().toLowerCase();\n                \n                log(\"RDBMS = \" + theVendor, Project.MSG_VERBOSE);\n                if (theVendor == null || theVendor.indexOf(rdbms) < 0) {\n                    log(\"Not the required RDBMS: \"+rdbms, Project.MSG_VERBOSE);\n                    return false;\n                }\n            }\n            \n            if (version != null) {\n                String theVersion = dmd.getDatabaseProductVersion().toLowerCase();\n                \n                log(\"Version = \" + theVersion, Project.MSG_VERBOSE);\n                if (theVersion == null || \n                    !(theVersion.startsWith(version) || \n                      theVersion.indexOf(\" \" + version) >= 0)) {\n                    log(\"Not the required version: \\\"\"+ version +\"\\\"\", Project.MSG_VERBOSE);\n                    return false;\n                }\n            }\n        }\n        catch (SQLException e) {\n            log(\"Failed to obtain required RDBMS information\", Project.MSG_ERR);\n            return false;\n        }\n        \n        return true;\n    }\n    \n    /**\n     * Exec the sql statement.\n     */\n    protected void execSQL(String sql, PrintStream out) throws SQLException {\n        if (\"\".equals(sql.trim())) return;\n        \n        try {  \n            totalSql++;\n            if (!statement.execute(sql)) {\n                log(statement.getUpdateCount()+\" rows affected\", \n                    Project.MSG_VERBOSE);\n            }\n            else {\n                if (print) {\n                    printResults(out);\n                }\n            }\n            \n            SQLWarning warning = conn.getWarnings();\n            while(warning!=null){\n                log(warning + \" sql warning\", Project.MSG_VERBOSE);\n                warning=warning.getNextWarning();\n            }\n            conn.clearWarnings();\n            goodSql++;\n        }\n        catch (SQLException e) {\n            log(\"Failed to execute: \" + sql, Project.MSG_ERR);\n            if (!onError.equals(\"continue\")) throw e;\n            log(e.toString(), Project.MSG_ERR);\n        }\n    }\n    \n    /**\n     * print any results in the statement.\n     */\n    protected void printResults(PrintStream out) throws java.sql.SQLException {\n        ResultSet rs = null;\n        do {\n            rs = statement.getResultSet();\n            if (rs != null) {\n                log(\"Processing new result set.\", Project.MSG_VERBOSE);\n                ResultSetMetaData md = rs.getMetaData();\n                int columnCount = md.getColumnCount();\n                StringBuffer line = new StringBuffer();\n                if (showheaders) {\n                    for (int col = 1; col < columnCount; col++) {\n                         line.append(md.getColumnName(col));\n                         line.append(\",\");\n                    }\n                    line.append(md.getColumnName(columnCount));\n                    out.println(line);\n                    line.setLength(0);\n                }\n                while (rs.next()) {\n                    boolean first = true;\n                    for (int col = 1; col <= columnCount; col++) {\n                        String columnValue = rs.getString(col);\n                        if (columnValue != null) {\n                            columnValue = columnValue.trim();\n                        }\n                         \n                        if (first) {\n                            first = false;\n                        }\n                        else {\n                            line.append(\",\");\n                        }\n                        line.append(columnValue);\n                    }\n                    out.println(line);\n                    line.setLength(0);\n                }\n            }\n        }\n        while (statement.getMoreResults());\n        out.println();\n    }\n\n    /**\n     * Enumerated attribute with the values \"continue\", \"stop\" and \"abort\"\n     * for the onerror attribute.  \n     */\n    public static class OnError extends EnumeratedAttribute {\n        public String[] getValues() {\n            return new String[] {\"continue\", \"stop\", \"abort\"};\n        }\n    }\n\n    /**\n     * Contains the definition of a new transaction element.\n     * Transactions allow several files or blocks of statements\n     * to be executed using the same JDBC connection and commit\n     * operation in between.\n     */\n    public class Transaction {\n        private File tSrcFile = null;\n        private String tSqlCommand = \"\";\n\n        public void setSrc(File src) {\n            this.tSrcFile = src;\n        }\n\n        public void addText(String sql) {\n            this.tSqlCommand += sql;\n        }\n\n        private void runTransaction(PrintStream out) throws IOException, SQLException {\n            if (tSqlCommand.length() != 0) {\n                log(\"Executing commands\", Project.MSG_INFO);\n                runStatements(new StringReader(tSqlCommand), out);\n            }\n      \n            if (tSrcFile != null) {\n                log(\"Executing file: \" + tSrcFile.getAbsolutePath(), \n                    Project.MSG_INFO);\n                FileReader reader = new FileReader(tSrcFile);\n                runStatements(reader, out);\n                reader.close();", "functions": [{"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (this.classpath == null) {\n            this.classpath = new Path(project);\n        }\n        return this.classpath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSrc", "code": "    public void setSrc(File srcFile) {\n        this.srcFile = srcFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addText", "code": "    public void addText(String sql) {\n        this.sqlCommand += sql;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createTransaction", "code": "    public Transaction createTransaction() {\n        Transaction t = new Transaction();\n        transactions.addElement(t);\n        return t;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDriver", "code": "    public void setDriver(String driver) {\n        this.driver = driver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUrl", "code": "    public void setUrl(String url) {\n        this.url = url;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUserid", "code": "    public void setUserid(String userId) {\n        this.userId = userId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPassword", "code": "    public void setPassword(String password) {\n        this.password = password;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutocommit", "code": "    public void setAutocommit(boolean autocommit) {\n        this.autocommit = autocommit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDelimiter", "code": "    public void setDelimiter(String delimiter) {\n        this.delimiter = delimiter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDelimiterType", "code": "    public void setDelimiterType(DelimiterType delimiterType) {\n        this.delimiterType = delimiterType.getValue();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setPrint", "code": "    public void setPrint(boolean print) {\n        this.print = print;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setShowheaders", "code": "    public void setShowheaders(boolean showheaders) {\n        this.showheaders = showheaders;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutput", "code": "    public void setOutput(File output) {\n        this.output = output;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRdbms", "code": "    public void setRdbms(String vendor) {\n        this.rdbms = vendor.toLowerCase();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setVersion", "code": "    public void setVersion(String version) {\n        this.version = version.toLowerCase();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setOnerror", "code": "    public void setOnerror(OnError action) {\n        this.onError = action.getValue();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        sqlCommand = sqlCommand.trim();\n\n        if (srcFile == null && sqlCommand.length()==0 && filesets.isEmpty()) { \n            if (transactions.size() == 0) {\n                throw new BuildException(\"Source file or fileset, transactions or sql statement must be set!\", location);\n            }\n        } else { \n            for (int i=0; i<filesets.size(); i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                DirectoryScanner ds = fs.getDirectoryScanner(project);\n                File srcDir = fs.getDir(project);\n\n                String[] srcFiles = ds.getIncludedFiles();\n\n                for ( int j=0 ; j<srcFiles.length ; j++ ) {\n                    Transaction t = createTransaction();\n                    t.setSrc(new File(srcDir, srcFiles[j]));\n                }\n            }\n\n            Transaction t = createTransaction();\n            t.setSrc(srcFile);\n            t.addText(sqlCommand);\n        }\n\n        if (driver == null) {\n            throw new BuildException(\"Driver attribute must be set!\", location);\n        }\n        if (userId == null) {\n            throw new BuildException(\"User Id attribute must be set!\", location);\n        }\n        if (password == null) {\n            throw new BuildException(\"Password attribute must be set!\", location);\n        }\n        if (url == null) {\n            throw new BuildException(\"Url attribute must be set!\", location);\n        }\n        if (srcFile != null && !srcFile.exists()) {\n            throw new BuildException(\"Source file does not exist!\", location);\n        }\n        Driver driverInstance = null;\n        try {\n            Class dc;\n            if (classpath != null) {\n                log( \"Loading \" + driver + \" using AntClassLoader with classpath \" + classpath, \n                     Project.MSG_VERBOSE );\n\n                loader = new AntClassLoader(project, classpath);\n                dc = loader.loadClass(driver);\n            }\n            else {\n                log(\"Loading \" + driver + \" using system loader.\", Project.MSG_VERBOSE);\n                dc = Class.forName(driver);\n            }\n            driverInstance = (Driver) dc.newInstance();\n        }catch(ClassNotFoundException e){\n            throw new BuildException(\"Class Not Found: JDBC driver \" + driver + \" could not be loaded\", location);\n        }catch(IllegalAccessException e){\n            throw new BuildException(\"Illegal Access: JDBC driver \" + driver + \" could not be loaded\", location);\n        }catch(InstantiationException e) {\n            throw new BuildException(\"Instantiation Exception: JDBC driver \" + driver + \" could not be loaded\", location);\n        }\n\n        try{\n            log(\"connecting to \" + url, Project.MSG_VERBOSE );\n            Properties info = new Properties();\n            info.put(\"user\", userId);\n            info.put(\"password\", password);\n            conn = driverInstance.connect(url, info);\n\n            if (conn == null) {\n                throw new SQLException(\"No suitable Driver for \"+url);\n            }\n\n            if (!isValidRdbms(conn)) return;\n\n            conn.setAutoCommit(autocommit);\n\n            statement = conn.createStatement();\n\n            \n            PrintStream out = System.out;\n            try {\n                if (output != null) {\n                    log(\"Opening PrintStream to output file \" + output, Project.MSG_VERBOSE);\n                    out = new PrintStream(new BufferedOutputStream(new FileOutputStream(output)));\n                }\n                        \n                for (Enumeration e = transactions.elements(); \n                     e.hasMoreElements();) {\n                       \n                    ((Transaction) e.nextElement()).runTransaction(out);\n                    if (!autocommit) {\n                        log(\"Commiting transaction\", Project.MSG_VERBOSE);\n                        conn.commit();\n                    }\n                }\n            }\n            finally {\n                if (out != null && out != System.out) {\n                    out.close();\n                }\n            }\n        } catch(IOException e){\n            if (!autocommit && conn != null && onError.equals(\"abort\")) {\n                try {\n                    conn.rollback();\n                } catch (SQLException ex) {}\n            }\n            throw new BuildException(e, location);\n        } catch(SQLException e){\n            if (!autocommit && conn != null && onError.equals(\"abort\")) {\n                try {\n                    conn.rollback();\n                } catch (SQLException ex) {}\n            }\n            throw new BuildException(e, location);\n        }\n        finally {\n            try {\n                if (statement != null) {\n                    statement.close();\n                }\n                if (conn != null) {\n                    conn.close();\n                }\n            }\n            catch (SQLException e) {}\n        }\n          \n        log(goodSql + \" of \" + totalSql + \n            \" SQL statements executed successfully\");", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "CALL", "TRY", "CATCH", "CATCH", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "CATCH", "CATCH", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CATCH", "IF", "IF", "THROW_RAISE", "IF", "THROW_RAISE", "IF", "IF", "LOOP", "IF", "ASSIGN", "CALL", "RETURN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "VAR_DECL", "LOOP", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "CALL", "BINARY_OP", "TRY", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [4, 24], [5, 25], [6, 26], [7, 27], [8, 28], [9, 29], [0, 30], [10, 31], [11, 32], [11, 33], [11, 34], [12, 35], [12, 36], [13, 37], [13, 38], [14, 39], [14, 40], [14, 41], [1, 42], [1, 43], [16, 44], [16, 45], [17, 46], [1, 47], [1, 48], [1, 49], [1, 50], [19, 51], [20, 52], [21, 53], [2, 54], [22, 55], [3, 56], [4, 57], [24, 58], [24, 59], [5, 60], [25, 61], [6, 62], [26, 63], [7, 64], [27, 65], [8, 66], [28, 67], [9, 68], [9, 69], [9, 70], [29, 71], [29, 72], [30, 73], [31, 74], [31, 75], [33, 76], [34, 77], [35, 78], [36, 79], [37, 80], [38, 81], [39, 82], [40, 83], [41, 84], [42, 85], [17, 86], [46, 87], [47, 88], [48, 89], [49, 90], [18, 91], [50, 92], [51, 93], [52, 94], [53, 95], [55, 96], [57, 97], [59, 98], [60, 99], [62, 100], [64, 101], [66, 102], [9, 103], [9, 104], [69, 105], [70, 106], [72, 107], [72, 108], [75, 109], [76, 110], [77, 111], [36, 112], [79, 113], [79, 114], [38, 115], [81, 116], [81, 117], [82, 118], [82, 119], [40, 120], [84, 121], [86, 122], [92, 123], [93, 124], [94, 125], [95, 126], [54, 127], [22, 128], [22, 129], [22, 130], [22, 131], [22, 132], [97, 133], [99, 134], [100, 135], [101, 136], [102, 137], [68, 138], [69, 139], [69, 140], [69, 141], [69, 142], [69, 143], [105, 144], [70, 145], [106, 146], [106, 147], [107, 148], [107, 149], [108, 150], [109, 151], [33, 152], [34, 153], [112, 154], [113, 155], [114, 156], [115, 157], [116, 158], [117, 159], [39, 160], [119, 161], [40, 162], [41, 163], [41, 164], [122, 165], [124, 166], [124, 167], [125, 168], [125, 169], [126, 170], [126, 171], [128, 172], [129, 173], [130, 174], [131, 175], [132, 176], [139, 177], [69, 178], [145, 179], [112, 180], [156, 181], [115, 182], [159, 183], [40, 184], [163, 185], [164, 186], [165, 187], [167, 188], [169, 189], [171, 190], [173, 191], [173, 192], [176, 193], [139, 194], [140, 195], [141, 196], [142, 197], [179, 198], [120, 199], [120, 200], [185, 201], [186, 202], [192, 203], [193, 204], [193, 205], [139, 206], [139, 207], [143, 208], [200, 209], [201, 210], [205, 211], [206, 212], [194, 213], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 4], [25, 5], [26, 6], [27, 7], [28, 8], [29, 9], [30, 0], [31, 10], [32, 11], [33, 11], [34, 11], [35, 12], [36, 12], [37, 13], [38, 13], [39, 14], [40, 14], [41, 14], [42, 1], [43, 1], [44, 16], [45, 16], [46, 17], [47, 1], [48, 1], [49, 1], [50, 1], [51, 19], [52, 20], [53, 21], [54, 2], [55, 22], [56, 3], [57, 4], [58, 24], [59, 24], [60, 5], [61, 25], [62, 6], [63, 26], [64, 7], [65, 27], [66, 8], [67, 28], [68, 9], [69, 9], [70, 9], [71, 29], [72, 29], [73, 30], [74, 31], [75, 31], [76, 33], [77, 34], [78, 35], [79, 36], [80, 37], [81, 38], [82, 39], [83, 40], [84, 41], [85, 42], [86, 17], [87, 46], [88, 47], [89, 48], [90, 49], [91, 18], [92, 50], [93, 51], [94, 52], [95, 53], [96, 55], [97, 57], [98, 59], [99, 60], [100, 62], [101, 64], [102, 66], [103, 9], [104, 9], [105, 69], [106, 70], [107, 72], [108, 72], [109, 75], [110, 76], [111, 77], [112, 36], [113, 79], [114, 79], [115, 38], [116, 81], [117, 81], [118, 82], [119, 82], [120, 40], [121, 84], [122, 86], [123, 92], [124, 93], [125, 94], [126, 95], [127, 54], [128, 22], [129, 22], [130, 22], [131, 22], [132, 22], [133, 97], [134, 99], [135, 100], [136, 101], [137, 102], [138, 68], [139, 69], [140, 69], [141, 69], [142, 69], [143, 69], [144, 105], [145, 70], [146, 106], [147, 106], [148, 107], [149, 107], [150, 108], [151, 109], [152, 33], [153, 34], [154, 112], [155, 113], [156, 114], [157, 115], [158, 116], [159, 117], [160, 39], [161, 119], [162, 40], [163, 41], [164, 41], [165, 122], [166, 124], [167, 124], [168, 125], [169, 125], [170, 126], [171, 126], [172, 128], [173, 129], [174, 130], [175, 131], [176, 132], [177, 139], [178, 69], [179, 145], [180, 112], [181, 156], [182, 115], [183, 159], [184, 40], [185, 163], [186, 164], [187, 165], [188, 167], [189, 169], [190, 171], [191, 173], [192, 173], [193, 176], [194, 139], [195, 140], [196, 141], [197, 142], [198, 179], [199, 120], [200, 120], [201, 185], [202, 186], [203, 192], [204, 193], [205, 193], [206, 139], [207, 139], [208, 143], [209, 200], [210, 201], [211, 205], [212, 206], [213, 194], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213]]}, {"function_name": "runStatements", "code": "    protected void runStatements(Reader reader, PrintStream out) throws SQLException, IOException {\n        String sql = \"\";\n        String line = \"\";\n \n        BufferedReader in = new BufferedReader(reader);\n \n        try{\n            while ((line=in.readLine()) != null){\n                line = line.trim();\n                line = ProjectHelper.replaceProperties(project, line,\n                                                       project.getProperties());\n                if (line.startsWith(\"--\")) continue;\n                StringTokenizer st = new StringTokenizer(line);\n                if (st.hasMoreTokens()) {\n                    String token = st.nextToken();\n                    if (\"REM\".equalsIgnoreCase(token)) {\n                        continue;\n                    }\n                }\n\n                sql += \" \" + line;\n                sql = sql.trim();\n\n                if (line.indexOf(\"--\") >= 0) sql += \"\\n\";\n\n                if (delimiterType.equals(DelimiterType.NORMAL) && sql.endsWith(delimiter) ||\n                    delimiterType.equals(DelimiterType.ROW) && line.equals(delimiter)) {\n                    log(\"SQL: \" + sql, Project.MSG_VERBOSE);\n                    execSQL(sql.substring(0, sql.length() - delimiter.length()), out);\n                    sql = \"\";\n                }\n            }\n \n            if(!sql.equals(\"\")){\n                execSQL(sql, out);\n            }\n        }catch(SQLException e){\n            throw e;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "IF", "LOOP", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BREAK_CONTINUE", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [8, 11], [9, 12], [2, 13], [3, 14], [4, 15], [11, 16], [9, 17], [9, 18], [9, 19], [9, 20], [9, 21], [12, 22], [12, 23], [8, 24], [17, 25], [18, 26], [9, 27], [9, 28], [19, 29], [21, 30], [21, 31], [9, 32], [9, 33], [23, 34], [25, 35], [25, 36], [18, 37], [26, 38], [26, 39], [27, 40], [28, 41], [19, 42], [19, 43], [20, 44], [31, 45], [32, 46], [33, 47], [17, 48], [17, 49], [17, 50], [35, 51], [35, 52], [36, 53], [36, 54], [37, 55], [39, 56], [41, 57], [42, 58], [46, 59], [48, 60], [49, 61], [50, 62], [42, 63], [58, 64], [43, 65], [61, 66], [61, 67], [62, 68], [66, 69], [66, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 8], [12, 9], [13, 2], [14, 3], [15, 4], [16, 11], [17, 9], [18, 9], [19, 9], [20, 9], [21, 9], [22, 12], [23, 12], [24, 8], [25, 17], [26, 18], [27, 9], [28, 9], [29, 19], [30, 21], [31, 21], [32, 9], [33, 9], [34, 23], [35, 25], [36, 25], [37, 18], [38, 26], [39, 26], [40, 27], [41, 28], [42, 19], [43, 19], [44, 20], [45, 31], [46, 32], [47, 33], [48, 17], [49, 17], [50, 17], [51, 35], [52, 35], [53, 36], [54, 36], [55, 37], [56, 39], [57, 41], [58, 42], [59, 46], [60, 48], [61, 49], [62, 50], [63, 42], [64, 58], [65, 43], [66, 61], [67, 61], [68, 62], [69, 66], [70, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "isValidRdbms", "code": "    protected boolean isValidRdbms(Connection conn) {\n        if (rdbms == null && version == null)\n            return true;\n        \n        try {\n            DatabaseMetaData dmd = conn.getMetaData();\n            \n            if (rdbms != null) {\n                String theVendor = dmd.getDatabaseProductName().toLowerCase();\n                \n                log(\"RDBMS = \" + theVendor, Project.MSG_VERBOSE);\n                if (theVendor == null || theVendor.indexOf(rdbms) < 0) {\n                    log(\"Not the required RDBMS: \"+rdbms, Project.MSG_VERBOSE);\n                    return false;\n                }\n            }\n            \n            if (version != null) {\n                String theVersion = dmd.getDatabaseProductVersion().toLowerCase();\n                \n                log(\"Version = \" + theVersion, Project.MSG_VERBOSE);\n                if (theVersion == null || \n                    !(theVersion.startsWith(version) || \n                      theVersion.indexOf(\" \" + version) >= 0)) {\n                    log(\"Not the required version: \\\"\"+ version +\"\\\"\", Project.MSG_VERBOSE);\n                    return false;\n                }\n            }\n        }\n        catch (SQLException e) {\n            log(\"Failed to obtain required RDBMS information\", Project.MSG_ERR);\n            return false;\n        }\n        \n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [3, 10], [3, 11], [6, 12], [7, 13], [8, 14], [10, 15], [11, 16], [11, 17], [12, 18], [6, 19], [7, 20], [7, 21], [13, 22], [8, 23], [8, 24], [14, 25], [9, 26], [16, 27], [17, 28], [19, 29], [20, 30], [7, 31], [23, 32], [8, 33], [20, 34], [30, 35], [30, 36], [31, 37], [21, 38], [23, 39], [32, 40], [32, 41], [33, 42], [24, 43], [34, 44], [20, 45], [35, 46], [35, 47], [36, 48], [37, 49], [38, 50], [39, 51], [23, 52], [40, 53], [40, 54], [41, 55], [42, 56], [43, 57], [45, 58], [46, 59], [46, 60], [52, 61], [58, 62], [58, 63], [60, 64], [61, 65], [63, 66], [64, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 3], [11, 3], [12, 6], [13, 7], [14, 8], [15, 10], [16, 11], [17, 11], [18, 12], [19, 6], [20, 7], [21, 7], [22, 13], [23, 8], [24, 8], [25, 14], [26, 9], [27, 16], [28, 17], [29, 19], [30, 20], [31, 7], [32, 23], [33, 8], [34, 20], [35, 30], [36, 30], [37, 31], [38, 21], [39, 23], [40, 32], [41, 32], [42, 33], [43, 24], [44, 34], [45, 20], [46, 35], [47, 35], [48, 36], [49, 37], [50, 38], [51, 39], [52, 23], [53, 40], [54, 40], [55, 41], [56, 42], [57, 43], [58, 45], [59, 46], [60, 46], [61, 52], [62, 58], [63, 58], [64, 60], [65, 61], [66, 63], [67, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "execSQL", "code": "    protected void execSQL(String sql, PrintStream out) throws SQLException {\n        if (\"\".equals(sql.trim())) return;\n        \n        try {  \n            totalSql++;\n            if (!statement.execute(sql)) {\n                log(statement.getUpdateCount()+\" rows affected\", \n                    Project.MSG_VERBOSE);\n            }\n            else {\n                if (print) {\n                    printResults(out);\n                }\n            }\n            \n            SQLWarning warning = conn.getWarnings();\n            while(warning!=null){\n                log(warning + \" sql warning\", Project.MSG_VERBOSE);\n                warning=warning.getNextWarning();\n            }\n            conn.clearWarnings();\n            goodSql++;\n        }\n        catch (SQLException e) {\n            log(\"Failed to execute: \" + sql, Project.MSG_ERR);\n            if (!onError.equals(\"continue\")) throw e;\n            log(e.toString(), Project.MSG_ERR);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "CATCH", "LOOP", "VAR_DECL", "IF", "RETURN", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [2, 10], [5, 11], [1, 12], [6, 13], [8, 14], [10, 15], [5, 16], [11, 17], [11, 18], [5, 19], [13, 20], [7, 21], [8, 22], [15, 23], [16, 24], [18, 25], [19, 26], [6, 27], [6, 28], [8, 29], [26, 30], [27, 31], [28, 32], [29, 33], [32, 34], [22, 35], [33, 36], [33, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 2], [11, 5], [12, 1], [13, 6], [14, 8], [15, 10], [16, 5], [17, 11], [18, 11], [19, 5], [20, 13], [21, 7], [22, 8], [23, 15], [24, 16], [25, 18], [26, 19], [27, 6], [28, 6], [29, 8], [30, 26], [31, 27], [32, 28], [33, 29], [34, 32], [35, 22], [36, 33], [37, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "printResults", "code": "    protected void printResults(PrintStream out) throws java.sql.SQLException {\n        ResultSet rs = null;\n        do {\n            rs = statement.getResultSet();\n            if (rs != null) {\n                log(\"Processing new result set.\", Project.MSG_VERBOSE);\n                ResultSetMetaData md = rs.getMetaData();\n                int columnCount = md.getColumnCount();\n                StringBuffer line = new StringBuffer();\n                if (showheaders) {\n                    for (int col = 1; col < columnCount; col++) {\n                         line.append(md.getColumnName(col));\n                         line.append(\",\");\n                    }\n                    line.append(md.getColumnName(columnCount));\n                    out.println(line);\n                    line.setLength(0);\n                }\n                while (rs.next()) {\n                    boolean first = true;\n                    for (int col = 1; col <= columnCount; col++) {\n                        String columnValue = rs.getString(col);\n                        if (columnValue != null) {\n                            columnValue = columnValue.trim();\n                        }\n                         \n                        if (first) {\n                            first = false;\n                        }\n                        else {\n                            line.append(\",\");\n                        }\n                        line.append(columnValue);\n                    }\n                    out.println(line);\n                    line.setLength(0);\n                }\n            }\n        }\n        while (statement.getMoreResults());\n        out.println();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "LOOP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [6, 8], [1, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [8, 15], [9, 16], [10, 17], [6, 18], [10, 19], [10, 20], [11, 21], [12, 22], [13, 23], [14, 24], [18, 25], [10, 26], [10, 27], [19, 28], [11, 29], [11, 30], [11, 31], [21, 32], [26, 33], [19, 34], [19, 35], [19, 36], [20, 37], [29, 38], [31, 39], [19, 40], [35, 41], [19, 42], [21, 43], [21, 44], [21, 45], [41, 46], [36, 47], [43, 48], [44, 49], [34, 50], [34, 51], [35, 52], [50, 53], [51, 54], [52, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 6], [9, 1], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 8], [16, 9], [17, 10], [18, 6], [19, 10], [20, 10], [21, 11], [22, 12], [23, 13], [24, 14], [25, 18], [26, 10], [27, 10], [28, 19], [29, 11], [30, 11], [31, 11], [32, 21], [33, 26], [34, 19], [35, 19], [36, 19], [37, 20], [38, 29], [39, 31], [40, 19], [41, 35], [42, 19], [43, 21], [44, 21], [45, 21], [46, 41], [47, 36], [48, 43], [49, 44], [50, 34], [51, 34], [52, 35], [53, 50], [54, 51], [55, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}], "label": 1}
{"sample_id": "jedit-4.3-4851", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/util/ReadWriteLock.java", "language": "java", "name": "org.gjt.sp.util.ReadWriteLock", "code": "public class ReadWriteLock\n{\n\t//{{{ readLock() method\n\tpublic void readLock()\n\t{\n\t\tbody.readLock().lock();\n\t} //}}}\n\n\t//{{{ readUnlock() method\n\tpublic void readUnlock()\n\t{\n\t\tbody.readLock().unlock();\n\t} //}}}\n\n\t//{{{ writeLock() method\n\tpublic void writeLock()\n\t{\n\t\tbody.writeLock().lock();\n\t} //}}}\n\n\t//{{{ writeUnlock() method\n\tpublic void writeUnlock()\n\t{\n\t\tbody.writeLock().unlock();\n\t} //}}}\n\n\t//{{{ isWriteLocked() method\n\tpublic boolean isWriteLocked()\n\t{\n\t\treturn body.isWriteLocked();\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate final ReentrantReadWriteLock body = new ReentrantReadWriteLock();", "functions": [{"function_name": "readLock", "code": "\tpublic void readLock()\n\t{\n\t\tbody.readLock().lock();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "readUnlock", "code": "\tpublic void readUnlock()\n\t{\n\t\tbody.readLock().unlock();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "writeLock", "code": "\tpublic void writeLock()\n\t{\n\t\tbody.writeLock().lock();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "writeUnlock", "code": "\tpublic void writeUnlock()\n\t{\n\t\tbody.writeLock().unlock();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isWriteLocked", "code": "\tpublic boolean isWriteLocked()\n\t{\n\t\treturn body.isWriteLocked();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1236", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/EnumeratedAttribute.java", "language": "java", "name": "org.apache.tools.ant.types.EnumeratedAttribute", "code": "public abstract class EnumeratedAttribute {\n    /**\n     * The selected value in this enumeration.\n     */\n    protected String value;\n\n\n    /**\n     * the index of the selected value in the array.\n     */\n    private int index = -1;\n\n    /**\n     * This is the only method a subclass needs to implement.\n     *\n     * @return an array holding all possible values of the enumeration.\n     * The order of elements must be fixed so that <tt>indexOfValue(String)</tt>\n     * always return the same index for the same value.\n     */\n    public abstract String[] getValues();\n\n    /** bean constructor */\n    protected EnumeratedAttribute() {\n    }\n\n    /**\n     * Factory method for instantiating EAs via API in a more\n     * developer friendly way.\n     * @param clazz             Class, extending EA, which to instantiate\n     * @param value             The value to set on that EA\n     * @return                  Configured EA\n     * @throws BuildException   If the class could not be found or the value\n     *                          is not valid for the given EA-class.\n     */\n    public static EnumeratedAttribute getInstance(\n        Class/*<? extends EnumeratedAttribute>*/ clazz,\n        String value) throws BuildException {\n        if (!EnumeratedAttribute.class.isAssignableFrom(clazz)) {\n            throw new BuildException(\n                \"You have to provide a subclass from EnumeratedAttribut as clazz-parameter.\");\n        }\n        EnumeratedAttribute ea = null;\n        try {\n            ea = (EnumeratedAttribute) clazz.newInstance();\n        } catch (Exception e) {\n            throw new BuildException(e);\n        }\n        ea.setValue(value);\n        return ea;\n    }\n\n    /**\n     * Invoked by {@link org.apache.tools.ant.IntrospectionHelper IntrospectionHelper}.\n     * @param value the <code>String</code> value of the attribute\n     * @throws BuildException if the value is not valid for the attribute\n     */\n    public final void setValue(String value) throws BuildException {\n        int idx = indexOfValue(value);\n        if (idx == -1) {\n            throw new BuildException(value + \" is not a legal value for this attribute\");\n        }\n        this.index = idx;\n        this.value = value;\n    }\n\n    /**\n     * Is this value included in the enumeration?\n     * @param value the <code>String</code> value to look up\n     * @return true if the value is valid\n     */\n    public final boolean containsValue(String value) {\n        return (indexOfValue(value) != -1);\n    }\n\n    /**\n     * get the index of a value in this enumeration.\n     * @param value the string value to look for.\n     * @return the index of the value in the array of strings\n     * or -1 if it cannot be found.\n     * @see #getValues()\n     */\n    public final int indexOfValue(String value) {\n        String[] values = getValues();\n        if (values == null || value == null) {\n            return -1;\n        }\n        for (int i = 0; i < values.length; i++) {\n            if (value.equals(values[i])) {\n                return i;\n            }\n        }\n        return -1;\n    }\n\n    /**\n     * @return the selected value.\n     */\n    public final String getValue() {\n        return value;\n    }\n\n    /**\n     * @return the index of the selected value in the array.\n     * @see #getValues()\n     */\n    public final int getIndex() {\n        return index;\n    }\n\n    /**\n     * Convert the value to its string form.\n     *\n     * @return the string form of the value.\n     */\n    public String toString() {\n        return getValue();", "functions": [{"function_name": "getValues", "code": "    public abstract String[] getValues();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getInstance", "code": "    public static EnumeratedAttribute getInstance(\n        Class/*<? extends EnumeratedAttribute>*/ clazz,\n        String value) throws BuildException {\n        if (!EnumeratedAttribute.class.isAssignableFrom(clazz)) {\n            throw new BuildException(\n                \"You have to provide a subclass from EnumeratedAttribut as clazz-parameter.\");\n        }\n        EnumeratedAttribute ea = null;\n        try {\n            ea = (EnumeratedAttribute) clazz.newInstance();\n        } catch (Exception e) {\n            throw new BuildException(e);\n        }\n        ea.setValue(value);\n        return ea;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CATCH", "CALL", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [4, 9], [8, 10], [2, 11], [3, 12], [4, 13], [10, 14], [13, 15], [11, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 4], [10, 8], [11, 2], [12, 3], [13, 4], [14, 10], [15, 13], [16, 11], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setValue", "code": "    public final void setValue(String value) throws BuildException {\n        int idx = indexOfValue(value);\n        if (idx == -1) {\n            throw new BuildException(value + \" is not a legal value for this attribute\");\n        }\n        this.index = idx;\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [7, 10], [10, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 7], [11, 10], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "containsValue", "code": "    public final boolean containsValue(String value) {\n        return (indexOfValue(value) != -1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "indexOfValue", "code": "    public final int indexOfValue(String value) {\n        String[] values = getValues();\n        if (values == null || value == null) {\n            return -1;\n        }\n        for (int i = 0; i < values.length; i++) {\n            if (value.equals(values[i])) {\n                return i;\n            }\n        }\n        return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [3, 10], [8, 11], [8, 12], [4, 13], [9, 14], [2, 15], [10, 16], [11, 17], [12, 18], [9, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 3], [11, 8], [12, 8], [13, 4], [14, 9], [15, 2], [16, 10], [17, 11], [18, 12], [19, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getValue", "code": "    public final String getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIndex", "code": "    public final int getIndex() {\n        return index;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n        return getValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "EnumeratedAttribute", "code": "    protected EnumeratedAttribute() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.2-2017", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/language/HeaderExpression.java", "language": "java", "name": "org.apache.camel.model.language.HeaderExpression", "code": "@XmlRootElement(name = \"header\")\npublic class HeaderExpression extends ExpressionType {\n    public HeaderExpression() {\n    }\n\n    public HeaderExpression(String expression) {\n        super(expression);\n    }\n\n    public String getLanguage() {\n        return \"header\";", "functions": [{"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return \"header\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HeaderExpression", "code": "    public HeaderExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "HeaderExpression", "code": "    public HeaderExpression(String expression) {\n        super(expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.4-2274", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/MarshalType.java", "language": "java", "name": "org.apache.camel.model.MarshalType", "code": "@XmlRootElement(name = \"marshal\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class MarshalType extends OutputType<ProcessorType> {\n    @XmlAttribute(required = false)\n    private String ref;\n    @XmlElements({\n    @XmlElement(required = false, name = \"artixDS\", type = ArtixDSDataFormat.class),\n    @XmlElement(required = false, name = \"csv\", type = CsvDataFormat.class),\n    @XmlElement(required = false, name = \"jaxb\", type = JaxbDataFormat.class),\n    @XmlElement(required = false, name = \"serialization\", type = SerializationDataFormat.class),\n    @XmlElement(required = false, name = \"string\", type = StringDataFormat.class),\n    @XmlElement(required = false, name = \"xmlBeans\", type = XMLBeansDataFormat.class)}\n    )\n    private DataFormatType dataFormatType;\n\n    public MarshalType() {\n    }\n\n    public MarshalType(DataFormatType dataFormatType) {\n        this.dataFormatType = dataFormatType;\n    }\n\n    public MarshalType(String ref) {\n        this.ref = ref;\n    }\n\n    @Override\n    public String toString() {\n        if (dataFormatType != null) {\n            return \"Marshal[\" + dataFormatType + \"]\";\n        } else {\n            return \"Marshal[ref:  \" + ref + \"]\";\n        }\n    }\n\n    @Override\n    public String getShortName() {\n        return \"marshal\";\n    }\n\n    public String getRef() {\n        return ref;\n    }\n\n    public void setRef(String ref) {\n        this.ref = ref;\n    }\n\n    public DataFormatType getDataFormatType() {\n        return dataFormatType;\n    }\n\n    public void setDataFormatType(DataFormatType dataFormatType) {\n        this.dataFormatType = dataFormatType;\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) {\n        DataFormat dataFormat = DataFormatType.getDataFormat(routeContext, getDataFormatType(), ref);\n        return new MarshalProcessor(dataFormat);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        if (dataFormatType != null) {\n            return \"Marshal[\" + dataFormatType + \"]\";\n        } else {\n            return \"Marshal[ref:  \" + ref + \"]\";", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [7, 11], [9, 12], [11, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [11, 7], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getShortName", "code": "    @Override\n    public String getShortName() {\n        return \"marshal\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRef", "code": "    public String getRef() {\n        return ref;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRef", "code": "    public void setRef(String ref) {\n        this.ref = ref;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDataFormatType", "code": "    public DataFormatType getDataFormatType() {\n        return dataFormatType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDataFormatType", "code": "    public void setDataFormatType(DataFormatType dataFormatType) {\n        this.dataFormatType = dataFormatType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) {\n        DataFormat dataFormat = DataFormatType.getDataFormat(routeContext, getDataFormatType(), ref);\n        return new MarshalProcessor(dataFormat);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "MarshalType", "code": "    public MarshalType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "MarshalType", "code": "    public MarshalType(DataFormatType dataFormatType) {\n        this.dataFormatType = dataFormatType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MarshalType", "code": "    public MarshalType(String ref) {\n        this.ref = ref;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-3.2-3580", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "bsh/This.java", "language": "java", "name": "bsh.This", "code": "public class This implements java.io.Serializable, Runnable {\n\t/**\n\t\tThe namespace that this This reference wraps.\n\t*/\n\tNameSpace namespace;\n\n\t/**\n\t\tThis is the interpreter running when the This ref was created.\n\t\tIt's used as a default interpreter for callback through the This\n\t\twhere there is no current interpreter instance \n\t\te.g. interface proxy or event call backs from outside of bsh.\n\t*/\n\ttransient Interpreter declaringInterpreter;\n\n\t/**\n\t\tinvokeMethod() here is generally used by outside code to callback\n\t\tinto the bsh interpreter. e.g. when we are acting as an interface\n\t\tfor a scripted listener, etc.  In this case there is no real call stack\n\t\tso we make a default one starting with the special JAVACODE namespace\n\t\tand our namespace as the next.\n\t*/\n\ttransient CallStack callstack;\n\n\t/**\n\t\tgetThis() is a factory for bsh.This type references.  The capabilities\n\t\tof \".this\" references in bsh are version dependent up until jdk1.3.\n\t\tThe version dependence was to support different default interface\n\t\timplementations.  i.e. different sets of listener interfaces which\n\t\tscripted objects were capable of implementing.  In jdk1.3 the \n\t\treflection proxy mechanism was introduced which allowed us to \n\t\timplement arbitrary interfaces.  This is fantastic.\n\n\t\tA This object is a thin layer over a namespace, comprising a bsh object\n\t\tcontext.  We create it here only if needed for the namespace.\n\n\t\tNote: this method could be considered slow because of the way it \n\t\tdynamically factories objects.  However I've also done tests where \n\t\tI hard-code the factory to return JThis and see no change in the \n\t\trough test suite time.  This references are also cached in NameSpace.  \n\t*/\n    static This getThis( \n\t\tNameSpace namespace, Interpreter declaringInterpreter ) \n\t{\n\t\ttry {\n\t\t\tif ( Capabilities.canGenerateInterfaces() )\n\t\t\t\treturn (This)Reflect.constructObject( \"bsh.XThis\",\n\t\t\t\t\tnew Object [] { namespace, declaringInterpreter } );\n\t\t\telse if ( Capabilities.haveSwing() )\n\t\t\t\treturn (This)Reflect.constructObject( \"bsh.JThis\",\n\t\t\t\t\tnew Object [] { namespace, declaringInterpreter } );\n\t\t\telse\n\t\t\t\treturn new This( namespace, declaringInterpreter );\n\n\t\t} catch ( Exception e ) {\n\t\t\tthrow new InterpreterError(\"internal error 1 in This: \"+e);\n\t\t} \n    }\n\n\t/**\n\t\tGet a version of the interface.\n\t\tIf this type of This implements it directly return this,\n\t\telse try complain that we don't have the proxy mechanism.\n\t*/\n\tpublic Object getInterface( Class clas ) \n\t\tthrows EvalError\n\t{\n\t\tif ( clas.isInstance( this ) )\n\t\t\treturn this;\n\t\telse\n\t\t\tthrow new EvalError( \"Dynamic proxy mechanism not available. \"\n\t\t\t+ \"Cannot construct interface type: \"+clas );\n\t}\n\n\t/*\n\t\tI wish protected access were limited to children and not also \n\t\tpackage scope... I want this to be a singleton implemented by various\n\t\tchildren.  \n\t*/\n\tprotected This( NameSpace namespace, Interpreter declaringInterpreter ) { \n\t\tthis.namespace = namespace; \n\t\tthis.declaringInterpreter = declaringInterpreter;\n\t\tinitCallStack( namespace );\n\t}\n\n\tpublic NameSpace getNameSpace() {\n\t\treturn namespace;\n\t}\n\n\tpublic String toString() {\n\t\treturn \"'this' reference to Bsh object: \" + namespace.name;\n\t}\n\n\tpublic void run() {\n\t\ttry {\n\t\t\tinvokeMethod( \"run\", new Object[0] );\n\t\t} catch( EvalError e ) {\n\t\t\tdeclaringInterpreter.error(\n\t\t\t\t\"Exception in runnable:\" + e );\n\t\t}\n\t}\n\n\t/**\n\t\tInvoke specified method from outside java code, using the declaring \n\t\tinterpreter and current namespace.\n\n\t\tThe call stack will appear as if the method is being invoked from\n\t\toutside of bsh in native java code.\n\t*/\n\tpublic Object invokeMethod( String name, Object [] args ) \n\t\tthrows EvalError\n\t{\n\t\t// null callstack, one will be created for us in namespace.invokMethod\n\t\t// null callerInfo is legal\n\t\treturn invokeMethod( name, args, declaringInterpreter, null, null );\n\t}\n\n\t/**\n\t\tInvoke specified method with specified interpreter.\n\t\tThis is simply a convenience method.\n\t*/\n\tpublic Object invokeMethod( \n\t\tString name, Object [] args, Interpreter interpreter, \n\t\t\tCallStack callstack, SimpleNode callerInfo  ) \n\t\tthrows EvalError\n\t{\n\t\treturn namespace.invokeMethod( \n\t\t\tname, args, interpreter, callstack, callerInfo );\n\t}\n\n\n\t/**\n\t\tBind a This reference to a parent's namespace with the specified\n\t\tdeclaring interpreter.  Also re-init the callstack.  It's necessary \n\t\tto bind a This reference before it can be used after deserialization.\n\t\t<p>\n\n\t\tThis is a static utility method because it's used by a bsh command\n\t\tbind() and the interpreter doesn't currently allow access to direct \n\t\tmethods of This objects (small hack)\n\t*/\n\tpublic static void bind( \n\t\tThis ths, NameSpace namespace, Interpreter declaringInterpreter ) \n\t{ \n\t\tths.namespace.setParent( namespace ); \n\t\tths.declaringInterpreter = declaringInterpreter;\n\t\tths.initCallStack( namespace );\n\t}\n\n\n\t/**\n\t\tFor serialization.\n\t*/\n    private synchronized void writeObject(java.io.ObjectOutputStream s)\n        throws IOException {\n\n\t\t// Temporarily prune the namespace.\n\n\t\tNameSpace parent = namespace.getParent();\n\t\t// Bind would set the interpreter, but it's possible that the parent\n\t\t// is null (it's the root).  So save it...\n\n\t\t//?Interpreter interpreter = declaringInterpreter;\n\n\t\tnamespace.prune();\n\t\ts.defaultWriteObject();\n\t\t// put it back\n\t\tnamespace.setParent( parent );\n\n\t\t//?declaringInterpreter = interpreter;\n\t\t//?initCallStack( namespace );\n\t}\n\n\tprivate final void initCallStack( NameSpace namespace ) {\n\t\tcallstack = new CallStack();\n\t\tcallstack.push( namespace );", "functions": [{"function_name": "getThis", "code": "    static This getThis( \n\t\tNameSpace namespace, Interpreter declaringInterpreter ) \n\t{\n\t\ttry {\n\t\t\tif ( Capabilities.canGenerateInterfaces() )\n\t\t\t\treturn (This)Reflect.constructObject( \"bsh.XThis\",\n\t\t\t\t\tnew Object [] { namespace, declaringInterpreter } );\n\t\t\telse if ( Capabilities.haveSwing() )\n\t\t\t\treturn (This)Reflect.constructObject( \"bsh.JThis\",\n\t\t\t\t\tnew Object [] { namespace, declaringInterpreter } );\n\t\t\telse\n\t\t\t\treturn new This( namespace, declaringInterpreter );\n\n\t\t} catch ( Exception e ) {\n\t\t\tthrow new InterpreterError(\"internal error 1 in This: \"+e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "THROW_RAISE", "IF", "RETURN", "CALL", "CALL", "RETURN", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [5, 9], [6, 10], [7, 11], [7, 12], [7, 13], [10, 14], [11, 15], [8, 16], [14, 17], [12, 18], [16, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 5], [10, 6], [11, 7], [12, 7], [13, 7], [14, 10], [15, 11], [16, 8], [17, 14], [18, 12], [19, 16], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getInterface", "code": "\tpublic Object getInterface( Class clas ) \n\t\tthrows EvalError\n\t{\n\t\tif ( clas.isInstance( this ) )\n\t\t\treturn this;\n\t\telse\n\t\t\tthrow new EvalError( \"Dynamic proxy mechanism not available. \"\n\t\t\t+ \"Cannot construct interface type: \"+clas );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "THROW_RAISE", "RETURN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [6, 7], [7, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 6], [8, 7], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNameSpace", "code": "\tpublic NameSpace getNameSpace() {\n\t\treturn namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "\tpublic String toString() {\n\t\treturn \"'this' reference to Bsh object: \" + namespace.name;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "run", "code": "\tpublic void run() {\n\t\ttry {\n\t\t\tinvokeMethod( \"run\", new Object[0] );\n\t\t} catch( EvalError e ) {\n\t\t\tdeclaringInterpreter.error(\n\t\t\t\t\"Exception in runnable:\" + e );", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [3, 7], [6, 8], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [7, 3], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "invokeMethod", "code": "\tpublic Object invokeMethod( String name, Object [] args ) \n\t\tthrows EvalError\n\t{\n\t\t// null callstack, one will be created for us in namespace.invokMethod\n\t\t// null callerInfo is legal\n\t\treturn invokeMethod( name, args, declaringInterpreter, null, null );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "invokeMethod", "code": "\tpublic Object invokeMethod( \n\t\tString name, Object [] args, Interpreter interpreter, \n\t\t\tCallStack callstack, SimpleNode callerInfo  ) \n\t\tthrows EvalError\n\t{\n\t\treturn namespace.invokeMethod( \n\t\t\tname, args, interpreter, callstack, callerInfo );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "bind", "code": "\tpublic static void bind( \n\t\tThis ths, NameSpace namespace, Interpreter declaringInterpreter ) \n\t{ \n\t\tths.namespace.setParent( namespace ); \n\t\tths.declaringInterpreter = declaringInterpreter;\n\t\tths.initCallStack( namespace );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "writeObject", "code": "    private synchronized void writeObject(java.io.ObjectOutputStream s)\n        throws IOException {\n\n\t\t// Temporarily prune the namespace.\n\n\t\tNameSpace parent = namespace.getParent();\n\t\t// Bind would set the interpreter, but it's possible that the parent\n\t\t// is null (it's the root).  So save it...\n\n\t\t//?Interpreter interpreter = declaringInterpreter;\n\n\t\tnamespace.prune();\n\t\ts.defaultWriteObject();\n\t\t// put it back\n\t\tnamespace.setParent( parent );", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "initCallStack", "code": "\tprivate final void initCallStack( NameSpace namespace ) {\n\t\tcallstack = new CallStack();\n\t\tcallstack.push( namespace );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "This", "code": "\tprotected This( NameSpace namespace, Interpreter declaringInterpreter ) { \n\t\tthis.namespace = namespace; \n\t\tthis.declaringInterpreter = declaringInterpreter;\n\t\tinitCallStack( namespace );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-4.3-4642", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/DockableLayout.java", "language": "java", "name": "org.gjt.sp.jedit.gui.DockableLayout", "code": "public class DockableLayout implements LayoutManager2\n{\n\t// for backwards compatibility with plugins that fiddle with\n\t// jEdit's UI layout\n\tstatic final String CENTER = BorderLayout.CENTER;\n\n\tstatic final String TOP_BUTTONS = \"top-buttons\";\n\tstatic final String LEFT_BUTTONS = \"left-buttons\";\n\tstatic final String BOTTOM_BUTTONS = \"bottom-buttons\";\n\tstatic final String RIGHT_BUTTONS = \"right-buttons\";\n\n\tprivate boolean alternateLayout;\n\tprivate Component center;\n\n\t/* No good */\n\tprivate DockablePanel top;\n\tprivate DockablePanel left;\n\tprivate DockablePanel bottom;\n\tprivate DockablePanel right;\n\n\tprivate Component topButtons, leftButtons, bottomButtons, rightButtons;\n\n\t/** @deprecated use isAlternateLayout */\n\t@Deprecated\n\tpublic boolean setAlternateLayout()\n\t{\n\t\treturn isAlternateLayout();\n\t}\n\t\n\t//{{{ isAlternateLayout() method\n\t\n\t/**\n\t * jEdit View option: wide horizontal docking areas versus tall vertical docking areas \n\t * @return true if using the \"alternate layout\"\n\t */\n\tpublic boolean isAlternateLayout()\n\t{\n\t\treturn alternateLayout;\n\t} //}}}\n\n\t//{{{ setAlternateLayout() method\n\tpublic void setAlternateLayout(boolean alternateLayout)\n\t{\n\t\tthis.alternateLayout = alternateLayout;\n\t} //}}}\n\n\t//{{{ addLayoutComponent() method\n\tpublic void addLayoutComponent(String name, Component comp)\n\t{\n\t\taddLayoutComponent(comp, name);\n\t} //}}}\n\n\t//{{{ addLayoutComponent() method\n\tpublic void addLayoutComponent(Component comp, Object cons)\n\t{\n\t\tif(cons == null || CENTER.equals(cons))\n\t\t\tcenter = comp;\n\t\telse if(DockableWindowManager.TOP.equals(cons))\n\t\t\ttop = (DockablePanel)comp;\n\t\telse if(DockableWindowManager.LEFT.equals(cons))\n\t\t\tleft = (DockablePanel)comp;\n\t\telse if(DockableWindowManager.BOTTOM.equals(cons))\n\t\t\tbottom = (DockablePanel)comp;\n\t\telse if(DockableWindowManager.RIGHT.equals(cons))\n\t\t\tright = (DockablePanel)comp;\n\t\telse if(TOP_BUTTONS.equals(cons))\n\t\t\ttopButtons = comp;\n\t\telse if(LEFT_BUTTONS.equals(cons))\n\t\t\tleftButtons = comp;\n\t\telse if(BOTTOM_BUTTONS.equals(cons))\n\t\t\tbottomButtons = comp;\n\t\telse if(RIGHT_BUTTONS.equals(cons))\n\t\t\trightButtons = comp;\n\t} //}}}\n\n\t//{{{ removeLayoutComponent() method\n\tpublic void removeLayoutComponent(Component comp)\n\t{\n\t\tif(center == comp)\n\t\t\tcenter = null;\n\t\telse if(comp == top)\n\t\t\ttop = null;\n\t\telse if(comp == left)\n\t\t\tleft = null;\n\t\telse if(comp == bottom)\n\t\t\tbottom = null;\n\t\telse if(comp == right)\n\t\t\tright = null;\n\t} //}}}\n\n\t//{{{ preferredLayoutSize() method\n\tpublic Dimension preferredLayoutSize(Container parent)\n\t{\n\t\tDimension prefSize = new Dimension(0,0);\n\t\tDimension _top = top.getPreferredSize();\n\t\tDimension _left = left.getPreferredSize();\n\t\tDimension _bottom = bottom.getPreferredSize();\n\t\tDimension _right = right.getPreferredSize();\n\t\tDimension _topButtons = topButtons.getPreferredSize();\n\t\tDimension _leftButtons = leftButtons.getPreferredSize();\n\t\tDimension _bottomButtons = bottomButtons.getPreferredSize();\n\t\tDimension _rightButtons = rightButtons.getPreferredSize();\n\t\tDimension _center = (center == null\n\t\t\t? new Dimension(0,0)\n\t\t\t: center.getPreferredSize());\n\t\tDimension _topToolbars = new Dimension(0,0);\n\t\tDimension _bottomToolbars = new Dimension(0,0);\n\n\t\tprefSize.height = _top.height + _bottom.height + _center.height\n\t\t\t+ _topButtons.height + _bottomButtons.height\n\t\t\t+ _topToolbars.height + _bottomToolbars.height;\n\t\tprefSize.width = _left.width + _right.width\n\t\t\t+ Math.max(_center.width,\n\t\t\tMath.max(_topToolbars.width,_bottomToolbars.width))\n\t\t\t+ _leftButtons.width + _rightButtons.width;\n\n\t\treturn prefSize;\n\t} //}}}\n\n\t//{{{ minimumLayoutSize() method\n\tpublic Dimension minimumLayoutSize(Container parent)\n\t{\n\t\t// I'm lazy\n\t\treturn preferredLayoutSize(parent);\n\t} //}}}\n\n\t//{{{ maximumLayoutSize() method\n\tpublic Dimension maximumLayoutSize(Container parent)\n\t{\n\t\treturn new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE);\n\t} //}}}\n\n\t//{{{ layoutContainer() method\n\tpublic void layoutContainer(Container parent)\n\t{\n\t\tDimension size = parent.getSize();\n\n\t\tDimension _topToolbars = new Dimension(0,0);\n\t\tDimension _bottomToolbars = new Dimension(0,0);\n\n\t\tint topButtonHeight = -1;\n\t\tint bottomButtonHeight = -1;\n\t\tint leftButtonWidth = -1;\n\t\tint rightButtonWidth = -1;\n\n\t\tDimension _top = top.getPreferredSize();\n\t\tDimension _left = left.getPreferredSize();\n\t\tDimension _bottom = bottom.getPreferredSize();\n\t\tDimension _right = right.getPreferredSize();\n\n\t\tint topHeight = _top.height;\n\t\tint bottomHeight = _bottom.height;\n\t\tint leftWidth = _left.width;\n\t\tint rightWidth = _right.width;\n\n\t\tboolean topEmpty = ((Container)topButtons)\n\t\t\t.getComponentCount() <= 2;\n\t\tboolean leftEmpty = ((Container)leftButtons)\n\t\t\t.getComponentCount() <= 2;\n\t\tboolean bottomEmpty = ((Container)bottomButtons)\n\t\t\t.getComponentCount() <= 2;\n\t\tboolean rightEmpty = ((Container)rightButtons)\n\t\t\t.getComponentCount() <= 2;\n\n\t\tDimension closeBoxSize;\n\t\tif(((Container)topButtons).getComponentCount() == 0)\n\t\t\tcloseBoxSize = new Dimension(0,0);\n\t\telse\n\t\t{\n\t\t\tcloseBoxSize = ((Container)topButtons)\n\t\t\t\t.getComponent(0).getPreferredSize();\n\t\t}\n\n\t\tint closeBoxWidth = Math.max(closeBoxSize.width,\n\t\t\tcloseBoxSize.height) + 1;\n\n\t\tif(alternateLayout)\n\t\t{\n\t\t\t//{{{ Lay out independent buttons\n\t\t\tint _width = size.width;\n\n\t\t\tint padding = (leftEmpty&&rightEmpty)\n\t\t\t\t? 0 : closeBoxWidth;\n\n\t\t\ttopButtonHeight = top.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_width\n\t\t\t\t- closeBoxWidth * 2);\n\t\t\ttopButtons.setBounds(\n\t\t\t\tpadding,\n\t\t\t\t0,\n\t\t\t\tsize.width - padding * 2,\n\t\t\t\ttopButtonHeight);\n\n\t\t\tbottomButtonHeight = bottom.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_width);\n\t\t\tbottomButtons.setBounds(\n\t\t\t\tpadding,\n\t\t\t\tsize.height - bottomButtonHeight,\n\t\t\t\tsize.width - padding * 2,\n\t\t\t\tbottomButtonHeight);\n\n\t\t\tint _height = size.height\n\t\t\t\t- topButtonHeight\n\t\t\t\t- bottomButtonHeight;\n\t\t\t//}}}\n\n\t\t\t//{{{ Lay out dependent buttons\n\t\t\tleftButtonWidth = left.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_height);\n\t\t\tleftButtons.setBounds(\n\t\t\t\t0,\n\t\t\t\ttopHeight + topButtonHeight,\n\t\t\t\tleftButtonWidth,\n\t\t\t\t_height - topHeight - bottomHeight);\n\n\t\t\trightButtonWidth = right.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_height);\n\t\t\trightButtons.setBounds(\n\t\t\t\tsize.width - rightButtonWidth,\n\t\t\t\ttopHeight + topButtonHeight,\n\t\t\t\trightButtonWidth,\n\t\t\t\t_height - topHeight - bottomHeight);\n\t\t\t//}}}\n\n\t\t\tint[] dimensions = adjustDockingAreasToFit(\n\t\t\t\tsize,\n\t\t\t\ttopHeight,\n\t\t\t\tleftWidth,\n\t\t\t\tbottomHeight,\n\t\t\t\trightWidth,\n\t\t\t\ttopButtonHeight,\n\t\t\t\tleftButtonWidth,\n\t\t\t\tbottomButtonHeight,\n\t\t\t\trightButtonWidth,\n\t\t\t\t_topToolbars,\n\t\t\t\t_bottomToolbars);\n\n\t\t\ttopHeight = dimensions[0];\n\t\t\tleftWidth = dimensions[1];\n\t\t\tbottomHeight = dimensions[2];\n\t\t\trightWidth = dimensions[3];\n\n\t\t\t//{{{ Lay out docking areas\n\t\t\ttop.setBounds(\n\t\t\t\t0,\n\t\t\t\ttopButtonHeight,\n\t\t\t\tsize.width,\n\t\t\t\ttopHeight);\n\n\t\t\tbottom.setBounds(\n\t\t\t\t0,\n\t\t\t\tsize.height\n\t\t\t\t- bottomHeight\n\t\t\t\t- bottomButtonHeight,\n\t\t\t\tsize.width,\n\t\t\t\tbottomHeight);\n\n\t\t\tleft.setBounds(\n\t\t\t\tleftButtonWidth,\n\t\t\t\ttopButtonHeight + topHeight,\n\t\t\t\tleftWidth,\n\t\t\t\t_height - topHeight - bottomHeight);\n\n\t\t\tright.setBounds(\n\t\t\t\t_width - rightButtonWidth - rightWidth,\n\t\t\t\ttopButtonHeight + topHeight,\n\t\t\t\trightWidth,\n\t\t\t\t_height - topHeight - bottomHeight); //}}}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//{{{ Lay out independent buttons\n\t\t\tint _height = size.height;\n\n\t\t\tint padding = (topEmpty && bottomEmpty\n\t\t\t\t? 0 : closeBoxWidth);\n\n\t\t\tleftButtonWidth = left.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_height\n\t\t\t\t- closeBoxWidth * 2);\n\t\t\tleftButtons.setBounds(\n\t\t\t\t0,\n\t\t\t\tpadding,\n\t\t\t\tleftButtonWidth,\n\t\t\t\t_height - padding * 2);\n\n\t\t\trightButtonWidth = right.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_height);\n\t\t\trightButtons.setBounds(\n\t\t\t\tsize.width - rightButtonWidth,\n\t\t\t\tpadding,\n\t\t\t\trightButtonWidth,\n\t\t\t\t_height - padding * 2);\n\n\t\t\tint _width = size.width\n\t\t\t\t- leftButtonWidth\n\t\t\t\t- rightButtonWidth;\n\t\t\t//}}}\n\n\t\t\t//{{{ Lay out dependent buttons\n\t\t\ttopButtonHeight = top.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_width);\n\t\t\ttopButtons.setBounds(\n\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t0,\n\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\ttopButtonHeight);\n\n\t\t\tbottomButtonHeight = bottom.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_width);\n\t\t\tbottomButtons.setBounds(\n\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t_height - bottomButtonHeight,\n\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\tbottomButtonHeight); //}}}\n\n\t\t\tint[] dimensions = adjustDockingAreasToFit(\n\t\t\t\tsize,\n\t\t\t\ttopHeight,\n\t\t\t\tleftWidth,\n\t\t\t\tbottomHeight,\n\t\t\t\trightWidth,\n\t\t\t\ttopButtonHeight,\n\t\t\t\tleftButtonWidth,\n\t\t\t\tbottomButtonHeight,\n\t\t\t\trightButtonWidth,\n\t\t\t\t_topToolbars,\n\t\t\t\t_bottomToolbars);\n\n\t\t\ttopHeight = dimensions[0];\n\t\t\tleftWidth = dimensions[1];\n\t\t\tbottomHeight = dimensions[2];\n\t\t\trightWidth = dimensions[3];\n\n\t\t\t//{{{ Lay out docking areas\n\t\t\ttop.setBounds(\n\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\ttopButtonHeight,\n\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\ttopHeight);\n\n\t\t\tbottom.setBounds(\n\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\tsize.height - bottomHeight - bottomButtonHeight,\n\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\tbottomHeight);\n\n\t\t\tleft.setBounds(\n\t\t\t\tleftButtonWidth,\n\t\t\t\t0,\n\t\t\t\tleftWidth,\n\t\t\t\t_height);\n\n\t\t\tright.setBounds(\n\t\t\t\tsize.width - rightWidth - rightButtonWidth,\n\t\t\t\t0,\n\t\t\t\trightWidth,\n\t\t\t\t_height); //}}}\n\t\t}\n\n\t\t//{{{ Position center (edit pane, or split pane)\n\t\tif(center != null)\n\t\t{\n\t\t\tcenter.setBounds(\n\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\ttopButtonHeight + topHeight\n\t\t\t\t+ _topToolbars.height,\n\t\t\t\tsize.width\n\t\t\t\t- leftWidth\n\t\t\t\t- rightWidth\n\t\t\t\t- leftButtonWidth\n\t\t\t\t- rightButtonWidth,\n\t\t\t\tsize.height\n\t\t\t\t- topHeight\n\t\t\t\t- topButtonHeight\n\t\t\t\t- bottomHeight\n\t\t\t\t- bottomButtonHeight\n\t\t\t\t- _topToolbars.height\n\t\t\t\t- _bottomToolbars.height);\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ adjustDockingAreasToFit() method\n\tprivate int[] adjustDockingAreasToFit(\n\t\tDimension size,\n\t\tint topHeight,\n\t\tint leftWidth,\n\t\tint bottomHeight,\n\t\tint rightWidth,\n\t\tint topButtonHeight,\n\t\tint leftButtonWidth,\n\t\tint bottomButtonHeight,\n\t\tint rightButtonWidth,\n\t\tDimension _topToolbars,\n\t\tDimension _bottomToolbars)\n\t{\n\t\tint maxTopHeight = size.height - bottomHeight\n\t\t\t- topButtonHeight - bottomButtonHeight\n\t\t\t- _topToolbars.height - _bottomToolbars.height;\n\t\ttopHeight = Math.min(Math.max(0,maxTopHeight),\n\t\t\ttopHeight);\n\t\tleftWidth = Math.min(Math.max(0,\n\t\t\tsize.width - leftButtonWidth\n\t\t\t- rightButtonWidth - rightWidth),leftWidth);\n\t\tint maxBottomHeight = size.height - topHeight\n\t\t\t- topButtonHeight - bottomButtonHeight\n\t\t\t- _topToolbars.height - _bottomToolbars.height;\n\t\tbottomHeight = Math.min(Math.max(0,maxBottomHeight),\n\t\t\tbottomHeight);\n\t\trightWidth = Math.min(Math.max(0,\n\t\t\tsize.width - leftButtonWidth\n\t\t\t- rightButtonWidth - leftWidth),rightWidth);\n\n\t\ttop.getWindowContainer().setDimension(topHeight);\n\t\tleft.getWindowContainer().setDimension(leftWidth);\n\t\tbottom.getWindowContainer().setDimension(bottomHeight);\n\t\tright.getWindowContainer().setDimension(rightWidth);\n\n\t\treturn new int[] {\n\t\t\ttopHeight,\n\t\t\tleftWidth,\n\t\t\tbottomHeight,\n\t\t\trightWidth\n\t\t};\n\t} //}}}\n\n\t//{{{ getLayoutAlignmentX() method\n\tpublic float getLayoutAlignmentX(Container target)\n\t{\n\t\treturn 0.5f;\n\t} //}}}\n\n\t//{{{ getLayoutAlignmentY() method\n\tpublic float getLayoutAlignmentY(Container target)\n\t{\n\t\treturn 0.5f;\n\t} //}}}\n\n\t//{{{ invalidateLayout() method\n\tpublic void invalidateLayout(Container target) {}", "functions": [{"function_name": "setAlternateLayout", "code": "\t@Deprecated\n\tpublic boolean setAlternateLayout()\n\t{\n\t\treturn isAlternateLayout();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAlternateLayout", "code": "\tpublic boolean isAlternateLayout()\n\t{\n\t\treturn alternateLayout;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAlternateLayout", "code": "\tpublic void setAlternateLayout(boolean alternateLayout)\n\t{\n\t\tthis.alternateLayout = alternateLayout;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addLayoutComponent", "code": "\tpublic void addLayoutComponent(String name, Component comp)\n\t{\n\t\taddLayoutComponent(comp, name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addLayoutComponent", "code": "\tpublic void addLayoutComponent(Component comp, Object cons)\n\t{\n\t\tif(cons == null || CENTER.equals(cons))\n\t\t\tcenter = comp;\n\t\telse if(DockableWindowManager.TOP.equals(cons))\n\t\t\ttop = (DockablePanel)comp;\n\t\telse if(DockableWindowManager.LEFT.equals(cons))\n\t\t\tleft = (DockablePanel)comp;\n\t\telse if(DockableWindowManager.BOTTOM.equals(cons))\n\t\t\tbottom = (DockablePanel)comp;\n\t\telse if(DockableWindowManager.RIGHT.equals(cons))\n\t\t\tright = (DockablePanel)comp;\n\t\telse if(TOP_BUTTONS.equals(cons))\n\t\t\ttopButtons = comp;\n\t\telse if(LEFT_BUTTONS.equals(cons))\n\t\t\tleftButtons = comp;\n\t\telse if(BOTTOM_BUTTONS.equals(cons))\n\t\t\tbottomButtons = comp;\n\t\telse if(RIGHT_BUTTONS.equals(cons))\n\t\t\trightButtons = comp;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "CALL", "ASSIGN", "CALL", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [5, 9], [5, 10], [6, 11], [6, 12], [4, 13], [10, 14], [11, 15], [11, 16], [6, 17], [15, 18], [15, 19], [11, 20], [18, 21], [18, 22], [15, 23], [21, 24], [21, 25], [18, 26], [24, 27], [24, 28], [21, 29], [27, 30], [24, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 5], [10, 5], [11, 6], [12, 6], [13, 4], [14, 10], [15, 11], [16, 11], [17, 6], [18, 15], [19, 15], [20, 11], [21, 18], [22, 18], [23, 15], [24, 21], [25, 21], [26, 18], [27, 24], [28, 24], [29, 21], [30, 27], [31, 24], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "removeLayoutComponent", "code": "\tpublic void removeLayoutComponent(Component comp)\n\t{\n\t\tif(center == comp)\n\t\t\tcenter = null;\n\t\telse if(comp == top)\n\t\t\ttop = null;\n\t\telse if(comp == left)\n\t\t\tleft = null;\n\t\telse if(comp == bottom)\n\t\t\tbottom = null;\n\t\telse if(comp == right)\n\t\t\tright = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [5, 8], [5, 9], [3, 10], [7, 11], [8, 12], [8, 13], [5, 14], [10, 15], [12, 16], [8, 17], [14, 18], [12, 19], [17, 20], [19, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 5], [9, 5], [10, 3], [11, 7], [12, 8], [13, 8], [14, 5], [15, 10], [16, 12], [17, 8], [18, 14], [19, 12], [20, 17], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "preferredLayoutSize", "code": "\tpublic Dimension preferredLayoutSize(Container parent)\n\t{\n\t\tDimension prefSize = new Dimension(0,0);\n\t\tDimension _top = top.getPreferredSize();\n\t\tDimension _left = left.getPreferredSize();\n\t\tDimension _bottom = bottom.getPreferredSize();\n\t\tDimension _right = right.getPreferredSize();\n\t\tDimension _topButtons = topButtons.getPreferredSize();\n\t\tDimension _leftButtons = leftButtons.getPreferredSize();\n\t\tDimension _bottomButtons = bottomButtons.getPreferredSize();\n\t\tDimension _rightButtons = rightButtons.getPreferredSize();\n\t\tDimension _center = (center == null\n\t\t\t? new Dimension(0,0)\n\t\t\t: center.getPreferredSize());\n\t\tDimension _topToolbars = new Dimension(0,0);\n\t\tDimension _bottomToolbars = new Dimension(0,0);\n\n\t\tprefSize.height = _top.height + _bottom.height + _center.height\n\t\t\t+ _topButtons.height + _bottomButtons.height\n\t\t\t+ _topToolbars.height + _bottomToolbars.height;\n\t\tprefSize.width = _left.width + _right.width\n\t\t\t+ Math.max(_center.width,\n\t\t\tMath.max(_topToolbars.width,_bottomToolbars.width))\n\t\t\t+ _leftButtons.width + _rightButtons.width;\n\n\t\treturn prefSize;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [15, 17], [16, 18], [2, 19], [3, 20], [4, 21], [5, 22], [6, 23], [7, 24], [8, 25], [9, 26], [10, 27], [11, 28], [12, 29], [13, 30], [17, 31], [18, 32], [19, 33], [19, 34], [20, 35], [20, 36], [21, 37], [21, 38], [21, 39], [30, 40], [30, 41], [31, 42], [32, 43], [38, 44], [38, 45], [39, 46], [42, 47], [42, 48], [43, 49], [47, 50], [49, 51], [51, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 15], [18, 16], [19, 2], [20, 3], [21, 4], [22, 5], [23, 6], [24, 7], [25, 8], [26, 9], [27, 10], [28, 11], [29, 12], [30, 13], [31, 17], [32, 18], [33, 19], [34, 19], [35, 20], [36, 20], [37, 21], [38, 21], [39, 21], [40, 30], [41, 30], [42, 31], [43, 32], [44, 38], [45, 38], [46, 39], [47, 42], [48, 42], [49, 43], [50, 47], [51, 49], [52, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "minimumLayoutSize", "code": "\tpublic Dimension minimumLayoutSize(Container parent)\n\t{\n\t\t// I'm lazy\n\t\treturn preferredLayoutSize(parent);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "maximumLayoutSize", "code": "\tpublic Dimension maximumLayoutSize(Container parent)\n\t{\n\t\treturn new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "layoutContainer", "code": "\tpublic void layoutContainer(Container parent)\n\t{\n\t\tDimension size = parent.getSize();\n\n\t\tDimension _topToolbars = new Dimension(0,0);\n\t\tDimension _bottomToolbars = new Dimension(0,0);\n\n\t\tint topButtonHeight = -1;\n\t\tint bottomButtonHeight = -1;\n\t\tint leftButtonWidth = -1;\n\t\tint rightButtonWidth = -1;\n\n\t\tDimension _top = top.getPreferredSize();\n\t\tDimension _left = left.getPreferredSize();\n\t\tDimension _bottom = bottom.getPreferredSize();\n\t\tDimension _right = right.getPreferredSize();\n\n\t\tint topHeight = _top.height;\n\t\tint bottomHeight = _bottom.height;\n\t\tint leftWidth = _left.width;\n\t\tint rightWidth = _right.width;\n\n\t\tboolean topEmpty = ((Container)topButtons)\n\t\t\t.getComponentCount() <= 2;\n\t\tboolean leftEmpty = ((Container)leftButtons)\n\t\t\t.getComponentCount() <= 2;\n\t\tboolean bottomEmpty = ((Container)bottomButtons)\n\t\t\t.getComponentCount() <= 2;\n\t\tboolean rightEmpty = ((Container)rightButtons)\n\t\t\t.getComponentCount() <= 2;\n\n\t\tDimension closeBoxSize;\n\t\tif(((Container)topButtons).getComponentCount() == 0)\n\t\t\tcloseBoxSize = new Dimension(0,0);\n\t\telse\n\t\t{\n\t\t\tcloseBoxSize = ((Container)topButtons)\n\t\t\t\t.getComponent(0).getPreferredSize();\n\t\t}\n\n\t\tint closeBoxWidth = Math.max(closeBoxSize.width,\n\t\t\tcloseBoxSize.height) + 1;\n\n\t\tif(alternateLayout)\n\t\t{\n\t\t\t//{{{ Lay out independent buttons\n\t\t\tint _width = size.width;\n\n\t\t\tint padding = (leftEmpty&&rightEmpty)\n\t\t\t\t? 0 : closeBoxWidth;\n\n\t\t\ttopButtonHeight = top.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_width\n\t\t\t\t- closeBoxWidth * 2);\n\t\t\ttopButtons.setBounds(\n\t\t\t\tpadding,\n\t\t\t\t0,\n\t\t\t\tsize.width - padding * 2,\n\t\t\t\ttopButtonHeight);\n\n\t\t\tbottomButtonHeight = bottom.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_width);\n\t\t\tbottomButtons.setBounds(\n\t\t\t\tpadding,\n\t\t\t\tsize.height - bottomButtonHeight,\n\t\t\t\tsize.width - padding * 2,\n\t\t\t\tbottomButtonHeight);\n\n\t\t\tint _height = size.height\n\t\t\t\t- topButtonHeight\n\t\t\t\t- bottomButtonHeight;\n\t\t\t//}}}\n\n\t\t\t//{{{ Lay out dependent buttons\n\t\t\tleftButtonWidth = left.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_height);\n\t\t\tleftButtons.setBounds(\n\t\t\t\t0,\n\t\t\t\ttopHeight + topButtonHeight,\n\t\t\t\tleftButtonWidth,\n\t\t\t\t_height - topHeight - bottomHeight);\n\n\t\t\trightButtonWidth = right.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_height);\n\t\t\trightButtons.setBounds(\n\t\t\t\tsize.width - rightButtonWidth,\n\t\t\t\ttopHeight + topButtonHeight,\n\t\t\t\trightButtonWidth,\n\t\t\t\t_height - topHeight - bottomHeight);\n\t\t\t//}}}\n\n\t\t\tint[] dimensions = adjustDockingAreasToFit(\n\t\t\t\tsize,\n\t\t\t\ttopHeight,\n\t\t\t\tleftWidth,\n\t\t\t\tbottomHeight,\n\t\t\t\trightWidth,\n\t\t\t\ttopButtonHeight,\n\t\t\t\tleftButtonWidth,\n\t\t\t\tbottomButtonHeight,\n\t\t\t\trightButtonWidth,\n\t\t\t\t_topToolbars,\n\t\t\t\t_bottomToolbars);\n\n\t\t\ttopHeight = dimensions[0];\n\t\t\tleftWidth = dimensions[1];\n\t\t\tbottomHeight = dimensions[2];\n\t\t\trightWidth = dimensions[3];\n\n\t\t\t//{{{ Lay out docking areas\n\t\t\ttop.setBounds(\n\t\t\t\t0,\n\t\t\t\ttopButtonHeight,\n\t\t\t\tsize.width,\n\t\t\t\ttopHeight);\n\n\t\t\tbottom.setBounds(\n\t\t\t\t0,\n\t\t\t\tsize.height\n\t\t\t\t- bottomHeight\n\t\t\t\t- bottomButtonHeight,\n\t\t\t\tsize.width,\n\t\t\t\tbottomHeight);\n\n\t\t\tleft.setBounds(\n\t\t\t\tleftButtonWidth,\n\t\t\t\ttopButtonHeight + topHeight,\n\t\t\t\tleftWidth,\n\t\t\t\t_height - topHeight - bottomHeight);\n\n\t\t\tright.setBounds(\n\t\t\t\t_width - rightButtonWidth - rightWidth,\n\t\t\t\ttopButtonHeight + topHeight,\n\t\t\t\trightWidth,\n\t\t\t\t_height - topHeight - bottomHeight); //}}}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//{{{ Lay out independent buttons\n\t\t\tint _height = size.height;\n\n\t\t\tint padding = (topEmpty && bottomEmpty\n\t\t\t\t? 0 : closeBoxWidth);\n\n\t\t\tleftButtonWidth = left.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_height\n\t\t\t\t- closeBoxWidth * 2);\n\t\t\tleftButtons.setBounds(\n\t\t\t\t0,\n\t\t\t\tpadding,\n\t\t\t\tleftButtonWidth,\n\t\t\t\t_height - padding * 2);\n\n\t\t\trightButtonWidth = right.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_height);\n\t\t\trightButtons.setBounds(\n\t\t\t\tsize.width - rightButtonWidth,\n\t\t\t\tpadding,\n\t\t\t\trightButtonWidth,\n\t\t\t\t_height - padding * 2);\n\n\t\t\tint _width = size.width\n\t\t\t\t- leftButtonWidth\n\t\t\t\t- rightButtonWidth;\n\t\t\t//}}}\n\n\t\t\t//{{{ Lay out dependent buttons\n\t\t\ttopButtonHeight = top.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_width);\n\t\t\ttopButtons.setBounds(\n\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t0,\n\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\ttopButtonHeight);\n\n\t\t\tbottomButtonHeight = bottom.getWindowContainer()\n\t\t\t\t.getWrappedDimension(_width);\n\t\t\tbottomButtons.setBounds(\n\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\t_height - bottomButtonHeight,\n\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\tbottomButtonHeight); //}}}\n\n\t\t\tint[] dimensions = adjustDockingAreasToFit(\n\t\t\t\tsize,\n\t\t\t\ttopHeight,\n\t\t\t\tleftWidth,\n\t\t\t\tbottomHeight,\n\t\t\t\trightWidth,\n\t\t\t\ttopButtonHeight,\n\t\t\t\tleftButtonWidth,\n\t\t\t\tbottomButtonHeight,\n\t\t\t\trightButtonWidth,\n\t\t\t\t_topToolbars,\n\t\t\t\t_bottomToolbars);\n\n\t\t\ttopHeight = dimensions[0];\n\t\t\tleftWidth = dimensions[1];\n\t\t\tbottomHeight = dimensions[2];\n\t\t\trightWidth = dimensions[3];\n\n\t\t\t//{{{ Lay out docking areas\n\t\t\ttop.setBounds(\n\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\ttopButtonHeight,\n\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\ttopHeight);\n\n\t\t\tbottom.setBounds(\n\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\tsize.height - bottomHeight - bottomButtonHeight,\n\t\t\t\t_width - leftWidth - rightWidth,\n\t\t\t\tbottomHeight);\n\n\t\t\tleft.setBounds(\n\t\t\t\tleftButtonWidth,\n\t\t\t\t0,\n\t\t\t\tleftWidth,\n\t\t\t\t_height);\n\n\t\t\tright.setBounds(\n\t\t\t\tsize.width - rightWidth - rightButtonWidth,\n\t\t\t\t0,\n\t\t\t\trightWidth,\n\t\t\t\t_height); //}}}\n\t\t}\n\n\t\t//{{{ Position center (edit pane, or split pane)\n\t\tif(center != null)\n\t\t{\n\t\t\tcenter.setBounds(\n\t\t\t\tleftButtonWidth + leftWidth,\n\t\t\t\ttopButtonHeight + topHeight\n\t\t\t\t+ _topToolbars.height,\n\t\t\t\tsize.width\n\t\t\t\t- leftWidth\n\t\t\t\t- rightWidth\n\t\t\t\t- leftButtonWidth\n\t\t\t\t- rightButtonWidth,\n\t\t\t\tsize.height\n\t\t\t\t- topHeight\n\t\t\t\t- topButtonHeight\n\t\t\t\t- bottomHeight\n\t\t\t\t- bottomButtonHeight\n\t\t\t\t- _topToolbars.height\n\t\t\t\t- _bottomToolbars.height);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [1, 26], [4, 27], [26, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [3, 37], [4, 38], [27, 39], [6, 40], [7, 41], [8, 42], [9, 43], [14, 44], [15, 45], [16, 46], [17, 47], [18, 48], [19, 49], [20, 50], [21, 51], [22, 52], [23, 53], [24, 54], [1, 55], [2, 56], [2, 57], [2, 58], [2, 59], [2, 60], [2, 61], [2, 62], [2, 63], [2, 64], [2, 65], [2, 66], [2, 67], [2, 68], [2, 69], [2, 70], [2, 71], [2, 72], [2, 73], [2, 74], [2, 75], [2, 76], [2, 77], [2, 78], [2, 79], [2, 80], [2, 81], [2, 82], [2, 83], [2, 84], [2, 85], [2, 86], [2, 87], [37, 88], [37, 89], [4, 90], [38, 91], [40, 92], [41, 93], [42, 94], [43, 95], [52, 96], [52, 97], [53, 98], [53, 99], [55, 100], [55, 101], [55, 102], [55, 103], [56, 104], [56, 105], [57, 106], [58, 107], [58, 108], [58, 109], [59, 110], [59, 111], [29, 112], [64, 113], [64, 114], [64, 115], [65, 116], [66, 117], [66, 118], [66, 119], [67, 120], [30, 121], [68, 122], [68, 123], [69, 124], [70, 125], [70, 126], [71, 127], [31, 128], [72, 129], [72, 130], [72, 131], [73, 132], [73, 133], [74, 134], [74, 135], [75, 136], [33, 137], [80, 138], [80, 139], [80, 140], [81, 141], [82, 142], [82, 143], [82, 144], [83, 145], [34, 146], [84, 147], [84, 148], [85, 149], [86, 150], [86, 151], [87, 152], [35, 153], [91, 154], [91, 155], [100, 156], [101, 157], [102, 158], [105, 159], [107, 160], [108, 161], [110, 162], [113, 163], [116, 164], [117, 165], [120, 166], [121, 167], [122, 168], [124, 169], [125, 170], [127, 171], [128, 172], [128, 173], [129, 174], [131, 175], [132, 176], [134, 177], [138, 178], [141, 179], [142, 180], [145, 181], [146, 182], [147, 183], [149, 184], [150, 185], [152, 186], [153, 187], [153, 188], [156, 189], [157, 190], [60, 191], [61, 192], [62, 193], [63, 194], [168, 195], [170, 196], [171, 197], [76, 198], [77, 199], [78, 200], [79, 201], [183, 202], [185, 203], [186, 204], [189, 205], [190, 206], [197, 207], [204, 208], [205, 209], [207, 210], [208, 211], [209, 212], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 1], [27, 4], [28, 26], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 3], [38, 4], [39, 27], [40, 6], [41, 7], [42, 8], [43, 9], [44, 14], [45, 15], [46, 16], [47, 17], [48, 18], [49, 19], [50, 20], [51, 21], [52, 22], [53, 23], [54, 24], [55, 1], [56, 2], [57, 2], [58, 2], [59, 2], [60, 2], [61, 2], [62, 2], [63, 2], [64, 2], [65, 2], [66, 2], [67, 2], [68, 2], [69, 2], [70, 2], [71, 2], [72, 2], [73, 2], [74, 2], [75, 2], [76, 2], [77, 2], [78, 2], [79, 2], [80, 2], [81, 2], [82, 2], [83, 2], [84, 2], [85, 2], [86, 2], [87, 2], [88, 37], [89, 37], [90, 4], [91, 38], [92, 40], [93, 41], [94, 42], [95, 43], [96, 52], [97, 52], [98, 53], [99, 53], [100, 55], [101, 55], [102, 55], [103, 55], [104, 56], [105, 56], [106, 57], [107, 58], [108, 58], [109, 58], [110, 59], [111, 59], [112, 29], [113, 64], [114, 64], [115, 64], [116, 65], [117, 66], [118, 66], [119, 66], [120, 67], [121, 30], [122, 68], [123, 68], [124, 69], [125, 70], [126, 70], [127, 71], [128, 31], [129, 72], [130, 72], [131, 72], [132, 73], [133, 73], [134, 74], [135, 74], [136, 75], [137, 33], [138, 80], [139, 80], [140, 80], [141, 81], [142, 82], [143, 82], [144, 82], [145, 83], [146, 34], [147, 84], [148, 84], [149, 85], [150, 86], [151, 86], [152, 87], [153, 35], [154, 91], [155, 91], [156, 100], [157, 101], [158, 102], [159, 105], [160, 107], [161, 108], [162, 110], [163, 113], [164, 116], [165, 117], [166, 120], [167, 121], [168, 122], [169, 124], [170, 125], [171, 127], [172, 128], [173, 128], [174, 129], [175, 131], [176, 132], [177, 134], [178, 138], [179, 141], [180, 142], [181, 145], [182, 146], [183, 147], [184, 149], [185, 150], [186, 152], [187, 153], [188, 153], [189, 156], [190, 157], [191, 60], [192, 61], [193, 62], [194, 63], [195, 168], [196, 170], [197, 171], [198, 76], [199, 77], [200, 78], [201, 79], [202, 183], [203, 185], [204, 186], [205, 189], [206, 190], [207, 197], [208, 204], [209, 205], [210, 207], [211, 208], [212, 209], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212]]}, {"function_name": "adjustDockingAreasToFit", "code": "\tprivate int[] adjustDockingAreasToFit(\n\t\tDimension size,\n\t\tint topHeight,\n\t\tint leftWidth,\n\t\tint bottomHeight,\n\t\tint rightWidth,\n\t\tint topButtonHeight,\n\t\tint leftButtonWidth,\n\t\tint bottomButtonHeight,\n\t\tint rightButtonWidth,\n\t\tDimension _topToolbars,\n\t\tDimension _bottomToolbars)\n\t{\n\t\tint maxTopHeight = size.height - bottomHeight\n\t\t\t- topButtonHeight - bottomButtonHeight\n\t\t\t- _topToolbars.height - _bottomToolbars.height;\n\t\ttopHeight = Math.min(Math.max(0,maxTopHeight),\n\t\t\ttopHeight);\n\t\tleftWidth = Math.min(Math.max(0,\n\t\t\tsize.width - leftButtonWidth\n\t\t\t- rightButtonWidth - rightWidth),leftWidth);\n\t\tint maxBottomHeight = size.height - topHeight\n\t\t\t- topButtonHeight - bottomButtonHeight\n\t\t\t- _topToolbars.height - _bottomToolbars.height;\n\t\tbottomHeight = Math.min(Math.max(0,maxBottomHeight),\n\t\t\tbottomHeight);\n\t\trightWidth = Math.min(Math.max(0,\n\t\t\tsize.width - leftButtonWidth\n\t\t\t- rightButtonWidth - leftWidth),rightWidth);\n\n\t\ttop.getWindowContainer().setDimension(topHeight);\n\t\tleft.getWindowContainer().setDimension(leftWidth);\n\t\tbottom.getWindowContainer().setDimension(bottomHeight);\n\t\tright.getWindowContainer().setDimension(rightWidth);\n\n\t\treturn new int[] {\n\t\t\ttopHeight,\n\t\t\tleftWidth,\n\t\t\tbottomHeight,\n\t\t\trightWidth", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [15, 23], [16, 24], [17, 25], [18, 26], [19, 27], [20, 28], [2, 29], [21, 30], [22, 31], [3, 32], [27, 33], [28, 34], [29, 35], [30, 36], [31, 37], [32, 38], [33, 39], [33, 40], [34, 41], [35, 42], [36, 43], [36, 44], [37, 45], [38, 46], [39, 47], [42, 48], [43, 49], [46, 50], [47, 51], [48, 52], [49, 53], [50, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 15], [24, 16], [25, 17], [26, 18], [27, 19], [28, 20], [29, 2], [30, 21], [31, 22], [32, 3], [33, 27], [34, 28], [35, 29], [36, 30], [37, 31], [38, 32], [39, 33], [40, 33], [41, 34], [42, 35], [43, 36], [44, 36], [45, 37], [46, 38], [47, 39], [48, 42], [49, 43], [50, 46], [51, 47], [52, 48], [53, 49], [54, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "getLayoutAlignmentX", "code": "\tpublic float getLayoutAlignmentX(Container target)\n\t{\n\t\treturn 0.5f;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLayoutAlignmentY", "code": "\tpublic float getLayoutAlignmentY(Container target)\n\t{\n\t\treturn 0.5f;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "invalidateLayout", "code": "\tpublic void invalidateLayout(Container target) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8310", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/MultipleNodeCounter.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.MultipleNodeCounter", "code": "public abstract class MultipleNodeCounter extends NodeCounter {\n    private DTMAxisIterator _precSiblings = null;\n\n    public MultipleNodeCounter(Translet translet,\n\t\t\t       DOM document, DTMAxisIterator iterator) {\n\tsuper(translet, document, iterator);\n    }\n\t\n    public NodeCounter setStartNode(int node) {\n\t_node = node;\n\t_nodeType = _document.getExpandedTypeID(node);\n    _precSiblings = _document.getAxisIterator(Axis.PRECEDINGSIBLING);\n\treturn this;\n    }\n\n    public String getCounter() {\n\tif (_value != Integer.MIN_VALUE) {\n            if (_value == 0) return \"0\";\n            else if (Double.isNaN(_value)) return \"NaN\";\n            else if (_value < 0 && Double.isInfinite(_value)) return \"-Infinity\";\n            else if (Double.isInfinite(_value)) return \"Infinity\";\n\t    else return formatNumbers((int)_value);\n\t}\n\n\tIntegerArray ancestors = new IntegerArray();\n\n\tint next = _node;\n\twhile ((next = _document.getParent(next)) > END && \n\t       !matchesFrom(next)) {\n\t    ancestors.add(next);\n\t}\n\n\tfinal int nAncestors = ancestors.cardinality();\n\tfinal int[] counters = new int[nAncestors]; \n\tfor (int i = 0; i < nAncestors; i++) {\n\t    counters[i] = Integer.MIN_VALUE;\n\t}\n\n\tfor (int j = 0, i = nAncestors - 1; i >= 0 ; i--, j++) {\n\t    final int counter = counters[j];\n\t    final int ancestor = ancestors.at(i);\n\n\t    if (matchesCount(ancestor)) {\n\t\t_precSiblings.setStartNode(ancestor);\n\t\twhile ((next = _precSiblings.next()) != END) {\n\t\t    if (matchesCount(next)) {\n\t\t\tcounters[j] = (counters[j] == Integer.MIN_VALUE) ? 1 \n\t\t\t    : counters[j] + 1;\t\t\n\t\t    }\n\t\t}\n\t\tcounters[j] = counters[j] == Integer.MIN_VALUE\n\t\t    ? 1 \n\t\t    : counters[j] + 1;\t\n\t    }\n\t}\n\treturn formatNumbers(counters);\n    }\n\n    public static NodeCounter getDefaultNodeCounter(Translet translet,\n\t\t\t\t\t\t    DOM document,\n\t\t\t\t\t\t    DTMAxisIterator iterator) {\n\treturn new DefaultMultipleNodeCounter(translet, document, iterator);\n    }\n\n    static class DefaultMultipleNodeCounter extends MultipleNodeCounter {\n\tpublic DefaultMultipleNodeCounter(Translet translet,\n\t\t\t\t\t  DOM document,\n\t\t\t\t\t  DTMAxisIterator iterator) {\n\t    super(translet, document, iterator);", "functions": [{"function_name": "setStartNode", "code": "    public NodeCounter setStartNode(int node) {\n\t_node = node;\n\t_nodeType = _document.getExpandedTypeID(node);\n    _precSiblings = _document.getAxisIterator(Axis.PRECEDINGSIBLING);\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getCounter", "code": "    public String getCounter() {\n\tif (_value != Integer.MIN_VALUE) {\n            if (_value == 0) return \"0\";\n            else if (Double.isNaN(_value)) return \"NaN\";\n            else if (_value < 0 && Double.isInfinite(_value)) return \"-Infinity\";\n            else if (Double.isInfinite(_value)) return \"Infinity\";\n\t    else return formatNumbers((int)_value);\n\t}\n\n\tIntegerArray ancestors = new IntegerArray();\n\n\tint next = _node;\n\twhile ((next = _document.getParent(next)) > END && \n\t       !matchesFrom(next)) {\n\t    ancestors.add(next);\n\t}\n\n\tfinal int nAncestors = ancestors.cardinality();\n\tfinal int[] counters = new int[nAncestors]; \n\tfor (int i = 0; i < nAncestors; i++) {\n\t    counters[i] = Integer.MIN_VALUE;\n\t}\n\n\tfor (int j = 0, i = nAncestors - 1; i >= 0 ; i--, j++) {\n\t    final int counter = counters[j];\n\t    final int ancestor = ancestors.at(i);\n\n\t    if (matchesCount(ancestor)) {\n\t\t_precSiblings.setStartNode(ancestor);\n\t\twhile ((next = _precSiblings.next()) != END) {\n\t\t    if (matchesCount(next)) {\n\t\t\tcounters[j] = (counters[j] == Integer.MIN_VALUE) ? 1 \n\t\t\t    : counters[j] + 1;\t\t\n\t\t    }\n\t\t}\n\t\tcounters[j] = counters[j] == Integer.MIN_VALUE\n\t\t    ? 1 \n\t\t    : counters[j] + 1;\t\n\t    }\n\t}\n\treturn formatNumbers(counters);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "BINARY_OP", "LOOP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "IF", "ASSIGN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [6, 13], [9, 14], [2, 15], [2, 16], [2, 17], [11, 18], [5, 19], [13, 20], [13, 21], [8, 22], [9, 23], [15, 24], [2, 25], [2, 26], [3, 27], [3, 28], [6, 29], [21, 30], [23, 31], [23, 32], [23, 33], [15, 34], [16, 35], [25, 36], [30, 37], [31, 38], [31, 39], [31, 40], [32, 41], [33, 42], [15, 43], [34, 44], [15, 45], [38, 46], [38, 47], [38, 48], [39, 49], [43, 50], [34, 51], [44, 52], [46, 53], [46, 54], [46, 55], [47, 56], [48, 57], [48, 58], [50, 59], [50, 60], [50, 61], [51, 62], [52, 63], [53, 64], [54, 65], [58, 66], [59, 67], [51, 68], [68, 69], [69, 70], [69, 71], [69, 72], [70, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 6], [14, 9], [15, 2], [16, 2], [17, 2], [18, 11], [19, 5], [20, 13], [21, 13], [22, 8], [23, 9], [24, 15], [25, 2], [26, 2], [27, 3], [28, 3], [29, 6], [30, 21], [31, 23], [32, 23], [33, 23], [34, 15], [35, 16], [36, 25], [37, 30], [38, 31], [39, 31], [40, 31], [41, 32], [42, 33], [43, 15], [44, 34], [45, 15], [46, 38], [47, 38], [48, 38], [49, 39], [50, 43], [51, 34], [52, 44], [53, 46], [54, 46], [55, 46], [56, 47], [57, 48], [58, 48], [59, 50], [60, 50], [61, 50], [62, 51], [63, 52], [64, 53], [65, 54], [66, 58], [67, 59], [68, 51], [69, 68], [70, 69], [71, 69], [72, 69], [73, 70], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "getDefaultNodeCounter", "code": "    public static NodeCounter getDefaultNodeCounter(Translet translet,\n\t\t\t\t\t\t    DOM document,\n\t\t\t\t\t\t    DTMAxisIterator iterator) {\n\treturn new DefaultMultipleNodeCounter(translet, document, iterator);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "MultipleNodeCounter", "code": "    public MultipleNodeCounter(Translet translet,\n\t\t\t       DOM document, DTMAxisIterator iterator) {\n\tsuper(translet, document, iterator);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "ant-1.6-740", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/DataType.java", "language": "java", "name": "org.apache.tools.ant.types.DataType", "code": "public abstract class DataType extends ProjectComponent {\n    /**\n     * The description the user has set.\n     *\n     * @deprecated The user should not be directly referencing\n     *   variable. Please use {@link #setDescription} or\n     *   {@link #getDescription} instead.\n     */\n    protected String description;\n\n    /**\n     * Value to the refid attribute.\n     *\n     * @deprecated The user should not be directly referencing\n     *   variable. Please use {@link #getRefid} instead.\n     */\n    protected Reference ref;\n\n    /**\n     * Are we sure we don't hold circular references?\n     *\n     * <p>Subclasses are responsible for setting this value to false\n     * if we'd need to investigate this condition (usually because a\n     * child element has been added that is a subclass of\n     * DataType).</p>\n     *\n     * @deprecated The user should not be directly referencing\n     *   variable. Please use {@link #setChecked} or\n     *   {@link #isChecked} instead.\n     */\n    protected boolean checked = true;\n\n    /**\n     * Sets a description of the current data type. It will be useful\n     * in commenting what we are doing.\n     */\n    public void setDescription(final String desc) {\n        description = desc;\n    }\n\n    /**\n     * Return the description for the current data type.\n     */\n    public String getDescription() {\n        return description;\n    }\n\n    /**\n     * Has the refid attribute of this element been set?\n     */\n    public boolean isReference() {\n        return ref != null;\n    }\n\n    /**\n     * Set the value of the refid attribute.\n     *\n     * <p>Subclasses may need to check whether any other attributes\n     * have been set as well or child elements have been created and\n     * thus override this method. if they do the must call\n     * <code>super.setRefid</code>.</p>\n     */\n    public void setRefid(final Reference ref) {\n        this.ref = ref;\n        checked = false;\n    }\n\n    /**\n     * Check to see whether any DataType we hold references to is\n     * included in the Stack (which holds all DataType instances that\n     * directly or indirectly reference this instance, including this\n     * instance itself).\n     *\n     * <p>If one is included, throw a BuildException created by {@link\n     * #circularReference circularReference}.</p>\n     *\n     * <p>This implementation is appropriate only for a DataType that\n     * cannot hold other DataTypes as children.</p>\n     *\n     * <p>The general contract of this method is that it shouldn't do\n     * anything if {@link #checked <code>checked</code>} is true and\n     * set it to true on exit.</p>\n     */\n    protected void dieOnCircularReference(final Stack stack,\n                                          final Project project)\n        throws BuildException {\n\n        if (checked || !isReference()) {\n            return;\n        }\n        Object o = ref.getReferencedObject(project);\n\n        if (o instanceof DataType) {\n            if (stack.contains(o)) {\n                throw circularReference();\n            } else {\n                stack.push(o);\n                ((DataType) o).dieOnCircularReference(stack, project);\n                stack.pop();\n            }\n        }\n        checked = true;\n    }\n\n    /**\n     * Performs the check for circular references and returns the\n     * referenced object.\n     */\n    protected Object getCheckedRef(final Class requiredClass,\n                                   final String dataTypeName) {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, getProject());\n        }\n\n        Object o = ref.getReferencedObject(getProject());\n        if (!(requiredClass.isAssignableFrom(o.getClass()))) {\n            String msg = ref.getRefId() + \" doesn\\'t denote a \" + dataTypeName;\n            throw new BuildException(msg);\n        } else {\n            return o;\n        }\n    }\n\n    /**\n     * Creates an exception that indicates that refid has to be the\n     * only attribute if it is set.\n     */\n    protected BuildException tooManyAttributes() {\n        return new BuildException(\"You must not specify more than one \"\n            + \"attribute when using refid\");\n    }\n\n    /**\n     * Creates an exception that indicates that this XML element must\n     * not have child elements if the refid attribute is set.\n     */\n    protected BuildException noChildrenAllowed() {\n        return new BuildException(\"You must not specify nested elements \"\n            + \"when using refid\");\n    }\n\n    /**\n     * Creates an exception that indicates the user has generated a\n     * loop of data types referencing each other.\n     */\n    protected BuildException circularReference() {\n        return new BuildException(\"This data type contains a circular \"\n            + \"reference.\");\n    }\n\n    protected boolean isChecked() {\n        return checked;\n    }\n\n    protected void setChecked(final boolean checked) {\n        this.checked = checked;\n    }\n\n    /**\n     * get the reference set on this object\n     * @return the reference or null\n     */\n    protected Reference getRefid() {\n        return ref;\n    }\n\n    /**\n     * check that it is ok to set attributes, i.e that no reference is defined\n     * @since Ant 1.6\n     * @throws BuildException if not allowed\n     */\n    protected void checkAttributesAllowed() {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n    }\n\n    /**\n     * check that it is ok to add children, i.e that no reference is defined\n     * @since Ant 1.6\n     * @throws BuildException if not allowed\n     */\n    protected void checkChildrenAllowed() {\n        if (isReference()) {\n            throw noChildrenAllowed();", "functions": [{"function_name": "setDescription", "code": "    public void setDescription(final String desc) {\n        description = desc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDescription", "code": "    public String getDescription() {\n        return description;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isReference", "code": "    public boolean isReference() {\n        return ref != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRefid", "code": "    public void setRefid(final Reference ref) {\n        this.ref = ref;\n        checked = false;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "dieOnCircularReference", "code": "    protected void dieOnCircularReference(final Stack stack,\n                                          final Project project)\n        throws BuildException {\n\n        if (checked || !isReference()) {\n            return;\n        }\n        Object o = ref.getReferencedObject(project);\n\n        if (o instanceof DataType) {\n            if (stack.contains(o)) {\n                throw circularReference();\n            } else {\n                stack.push(o);\n                ((DataType) o).dieOnCircularReference(stack, project);\n                stack.pop();\n            }\n        }\n        checked = true;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [6, 9], [1, 10], [2, 11], [3, 12], [8, 13], [10, 14], [10, 15], [10, 16], [10, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 6], [10, 1], [11, 2], [12, 3], [13, 8], [14, 10], [15, 10], [16, 10], [17, 10], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getCheckedRef", "code": "    protected Object getCheckedRef(final Class requiredClass,\n                                   final String dataTypeName) {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, getProject());\n        }\n\n        Object o = ref.getReferencedObject(getProject());\n        if (!(requiredClass.isAssignableFrom(o.getClass()))) {\n            String msg = ref.getRefId() + \" doesn\\'t denote a \" + dataTypeName;\n            throw new BuildException(msg);\n        } else {\n            return o;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "RETURN", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [2, 11], [3, 12], [8, 13], [11, 14], [3, 15], [3, 16], [9, 17], [15, 18], [12, 19], [17, 20], [20, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 2], [12, 3], [13, 8], [14, 11], [15, 3], [16, 3], [17, 9], [18, 15], [19, 12], [20, 17], [21, 20], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "tooManyAttributes", "code": "    protected BuildException tooManyAttributes() {\n        return new BuildException(\"You must not specify more than one \"\n            + \"attribute when using refid\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "noChildrenAllowed", "code": "    protected BuildException noChildrenAllowed() {\n        return new BuildException(\"You must not specify nested elements \"\n            + \"when using refid\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "circularReference", "code": "    protected BuildException circularReference() {\n        return new BuildException(\"This data type contains a circular \"\n            + \"reference.\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isChecked", "code": "    protected boolean isChecked() {\n        return checked;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setChecked", "code": "    protected void setChecked(final boolean checked) {\n        this.checked = checked;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRefid", "code": "    protected Reference getRefid() {\n        return ref;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "checkAttributesAllowed", "code": "    protected void checkAttributesAllowed() {\n        if (isReference()) {\n            throw tooManyAttributes();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [1, 0], [2, 1], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "checkChildrenAllowed", "code": "    protected void checkChildrenAllowed() {\n        if (isReference()) {\n            throw noChildrenAllowed();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [1, 0], [2, 1], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.3-64", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/taskdefs/Execute.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Execute", "code": "public class Execute {\n\n    /** Invalid exit code. **/\n    public final static int INVALID = Integer.MAX_VALUE;\n\n    private String[] cmdl = null;\n    private String[] env = null;\n    private int exitValue = INVALID;\n    private ExecuteStreamHandler streamHandler;\n    private ExecuteWatchdog watchdog;\n    private File workingDirectory = null;\n    private Project project = null;\n    private boolean newEnvironment = false;\n\n    private static String antWorkingDirectory = System.getProperty(\"user.dir\");\n    private static CommandLauncher launcher = createCommandLauncher();\n    private static Vector procEnvironment = null;\n\n    /** \n     * Builds a command launcher for the OS and JVM we are running under\n     */\n    private static CommandLauncher createCommandLauncher()\n    {\n        try {\n            return new Java13CommandLauncher();\n        }\n        catch ( NoSuchMethodException exc ) {\n        }\n\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        if ( osname.indexOf(\"mac os\") >= 0 ) {\n            return new MacCommandLauncher(new CommandLauncher());\n        }\n        else if ( osname.indexOf(\"os/2\") >= 0 ) {\n            return new WinNTCommandLauncher(new CommandLauncher());\n        }\n        else if ( osname.indexOf(\"windows\") >= 0 ) {\n            CommandLauncher baseLauncher;\n            if ( System.getProperty(\"java.version\").startsWith(\"1.1\") ) {\n                baseLauncher = new Java11CommandLauncher();\n            }\n            else {\n                baseLauncher = new CommandLauncher();\n            }\n\n            if ( osname.indexOf(\"nt\") >= 0 || osname.indexOf(\"2000\") >= 0 ) {\n                return new WinNTCommandLauncher(baseLauncher);\n            }\n            else {\n                return new ScriptCommandLauncher(\"bin/antRun.bat\", baseLauncher);\n            }\n        }\n        else {\n            return new ScriptCommandLauncher(\"bin/antRun\", new CommandLauncher());\n        }\n    }\n\n    /**\n     * Find the list of environment variables for this process.\n     */\n    public static synchronized Vector getProcEnvironment() {\n        if (procEnvironment != null) return procEnvironment;\n\n        procEnvironment = new Vector();\n        try {\n            ByteArrayOutputStream out = new ByteArrayOutputStream();\n            Execute exe = new Execute(new PumpStreamHandler(out));\n            exe.setCommandline(getProcEnvCommand());\n            exe.setNewenvironment(true);\n            int retval = exe.execute();\n            if ( retval != 0 ) {\n            }\n\n            BufferedReader in = \n                new BufferedReader(new StringReader(out.toString()));\n            String line;\n            while ((line = in.readLine()) != null) {\n                procEnvironment.addElement(line);\n            }\n        } \n        catch (java.io.IOException exc) {\n            exc.printStackTrace();\n        }\n        return procEnvironment;\n    }\n\n    private static String[] getProcEnvCommand() {\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        if ( osname.indexOf(\"mac os\") >= 0 ) {\n            String[] cmd = null;\n            return cmd;\n        }\n        else if ( osname.indexOf(\"os/2\") >= 0 ) {\n            String[] cmd = {\"cmd\", \"/c\", \"set\" };\n            return cmd;\n        }\n        else if ( osname.indexOf(\"indows\") >= 0 ) {\n            if ( osname.indexOf(\"nt\") >= 0 || osname.indexOf(\"2000\") >= 0 ) {\n                String[] cmd = {\"cmd\", \"/c\", \"set\" };\n                return cmd;\n            }\n            else {\n                String[] cmd = {\"command.com\", \"/c\", \"set\" };\n                return cmd;\n            }\n        }\n        else {\n            String[] cmd = {\"/usr/bin/env\"};\n            return cmd;\n        }\n    }\n\n    /**\n     * Creates a new execute object using <code>PumpStreamHandler</code> for\n     * stream handling.\n     */\n    public Execute() {\n        this(new PumpStreamHandler(), null);\n    }\n\n\n    /**\n     * Creates a new execute object.\n     *\n     * @param streamHandler the stream handler used to handle the input and\n     *        output streams of the subprocess.\n     */\n    public Execute(ExecuteStreamHandler streamHandler) {\n        this(streamHandler, null);\n    }\n\n    /**\n     * Creates a new execute object.\n     *\n     * @param streamHandler the stream handler used to handle the input and\n     *        output streams of the subprocess.\n     * @param watchdog a watchdog for the subprocess or <code>null</code> to\n     *        to disable a timeout for the subprocess.\n     */\n    public Execute(ExecuteStreamHandler streamHandler, ExecuteWatchdog watchdog) {\n        this.streamHandler = streamHandler;\n        this.watchdog = watchdog;\n    }\n\n\n    /**\n     * Returns the commandline used to create a subprocess.\n     *\n     * @return the commandline used to create a subprocess\n     */\n    public String[] getCommandline() {\n        return cmdl;\n    }\n\n\n    /**\n     * Sets the commandline of the subprocess to launch.\n     *\n     * @param commandline the commandline of the subprocess to launch\n     */\n    public void setCommandline(String[] commandline) {\n        cmdl = commandline;\n    }\n\n    /**\n     * Set whether to propagate the default environment or not.\n     *\n     * @param newenv whether to propagate the process environment.\n     */\n    public void setNewenvironment(boolean newenv) {\n        newEnvironment = newenv;\n    }\n\n    /**\n     * Returns the environment used to create a subprocess.\n     *\n     * @return the environment used to create a subprocess\n     */\n    public String[] getEnvironment() {\n        if (env == null || newEnvironment) return env;\n        return patchEnvironment();\n    }\n\n\n    /**\n     * Sets the environment variables for the subprocess to launch.\n     *\n     * @param commandline array of Strings, each element of which has\n     * an environment variable settings in format <em>key=value</em> \n     */\n    public void setEnvironment(String[] env) {\n        this.env = env;\n    }\n\n    /**\n     * Sets the working directory of the process to execute.\n     *\n     * <p>This is emulated using the antRun scripts unless the OS is\n     * Windows NT in which case a cmd.exe is spawned,\n     * or MRJ and setting user.dir works, or JDK 1.3 and there is\n     * official support in java.lang.Runtime.\n     *\n     * @param wd the working directory of the process.\n     */\n    public void setWorkingDirectory(File wd) {\n        if (wd == null || wd.getAbsolutePath().equals(antWorkingDirectory))\n            workingDirectory = null;\n        else\n            workingDirectory = wd;\n    }\n\n    /**\n     * Set the name of the antRun script using the project's value.\n     *\n     * @param project the current project.\n     */\n    public void setAntRun(Project project) throws BuildException {\n        this.project = project;\n    }\n\n    /**\n     * Runs a process defined by the command line and returns its exit status.\n     *\n     * @return the exit status of the subprocess or <code>INVALID</code>\n     * @exception java.io.IOExcpetion The exception is thrown, if launching\n     *            of the subprocess failed\n     */\n    public int execute() throws IOException {\n        final Process process = launcher.exec(project, getCommandline(), getEnvironment(), workingDirectory);\n        try {\n            streamHandler.setProcessInputStream(process.getOutputStream());\n            streamHandler.setProcessOutputStream(process.getInputStream());\n            streamHandler.setProcessErrorStream(process.getErrorStream());\n        } catch (IOException e) {\n            process.destroy();\n            throw e;\n        }\n        streamHandler.start();\n        if (watchdog != null) watchdog.start(process);\n        waitFor(process);\n        if (watchdog != null) watchdog.stop();\n        streamHandler.stop();\n        if (watchdog != null) watchdog.checkException();\n        return getExitValue();\n    }\n\n    protected void waitFor(Process process) {\n        try {\n            process.waitFor();\n            setExitValue(process.exitValue());\n        } catch (InterruptedException e) {}\n    }\n\n    protected void setExitValue(int value) {\n        exitValue = value;\n    }\n\n    public int getExitValue() {\n        return exitValue;\n    }\n\n    /**\n     * Patch the current environment with the new values from the user.\n     * @return the patched environment\n     */\n    private String[] patchEnvironment() {\n        Vector osEnv = (Vector) getProcEnvironment().clone();\n        for (int i = 0; i < env.length; i++) {\n            int pos = env[i].indexOf('=');\n            String key = env[i].substring(0, pos+1);\n            int size = osEnv.size();\n            for (int j = 0; j < size; j++) {\n                if (((String)osEnv.elementAt(j)).startsWith(key)) {\n                    osEnv.removeElementAt(j);\n                    break;\n                }\n            }\n            osEnv.addElement(env[i]);\n        }\n        String[] result = new String[osEnv.size()];\n        osEnv.copyInto(result);\n        return result;\n    }\n\n    /**\n     * A utility method that runs an external command.  Writes the output and\n     * error streams of the command to the project log.\n     *\n     * @param task      The task that the command is part of.  Used for logging\n     * @param cmdline   The command to execute.\n     *\n     * @throws BuildException if the command does not return 0.\n     */\n    public static void runCommand(Task task, String[] cmdline) throws BuildException\n    {\n        try {\n            task.log(Commandline.toString(cmdline), Project.MSG_VERBOSE);\n            Execute exe = new Execute(new LogStreamHandler(task, \n                                                           Project.MSG_INFO,\n                                                           Project.MSG_ERR));\n            exe.setAntRun(task.getProject());\n            exe.setCommandline(cmdline);\n            int retval = exe.execute();\n            if ( retval != 0 ) {\n                throw new BuildException(cmdline[0] + \" failed with return code \" + retval, task.getLocation());\n            }\n        } \n        catch (java.io.IOException exc) {\n            throw new BuildException(\"Could not launch \" + cmdline[0] + \": \" + exc, task.getLocation());\n        }\n    }\n\n    /**\n     * A command launcher for a particular JVM/OS platform.  This class is\n     * a general purpose command launcher which can only launch commands in\n     * the current working directory.\n     */\n    private static class CommandLauncher\n    {\n        /** \n         * Launches the given command in a new process.\n         *\n         * @param project       The project that the command is part of\n         * @param cmd           The command to execute\n         * @param env           The environment for the new process.  If null,\n         *                      the environment of the current proccess is used.\n         */\n        public Process exec(Project project, String[] cmd, String[] env) throws IOException\n        {\n            if (project != null) {\n                project.log(\"Execute:CommandLauncher: \" +\n                            Commandline.toString(cmd), Project.MSG_DEBUG);\n            }                            \n            return Runtime.getRuntime().exec(cmd, env);\n        }\n\n        /** \n         * Launches the given command in a new process, in the given working\n         * directory.\n         *\n         * @param project       The project that the command is part of\n         * @param cmd           The command to execute\n         * @param env           The environment for the new process.  If null,\n         *                      the environment of the current proccess is used.\n         * @param workingDir    The directory to start the command in.  If null,\n         *                      the current directory is used\n         */\n        public Process exec(Project project, String[] cmd, String[] env, File workingDir) throws IOException\n        {\n            if ( workingDir == null ) {\n                return exec(project, cmd, env);\n            }\n            throw new IOException(\"Cannot execute a process in different directory under this JVM\");\n        }\n    }\n\n    /**\n     * A command launcher for JDK/JRE 1.1 under Windows.  Fixes quoting problems\n     * in Runtime.exec().  Can only launch commands in the current working\n     * directory\n     */\n    private static class Java11CommandLauncher extends CommandLauncher\n    {\n        /**\n         * Launches the given command in a new process.  Needs to quote\n         * arguments\n         */\n        public Process exec(Project project, String[] cmd, String[] env) throws IOException \n        {\n            String[] newcmd = new String[cmd.length];\n            for ( int i = 0; i < cmd.length; i++ ) {\n                newcmd[i] = Commandline.quoteArgument(cmd[i]);\n            }\n            if (project != null) {\n                project.log(\"Execute:Java11CommandLauncher: \" +\n                            Commandline.toString(newcmd), Project.MSG_DEBUG);\n            }                            \n            return Runtime.getRuntime().exec(newcmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for JDK/JRE 1.3 (and higher).  Uses the built-in\n     * Runtime.exec() command\n     */\n    private static class Java13CommandLauncher extends CommandLauncher\n    {\n        public Java13CommandLauncher() throws NoSuchMethodException\n        {\n            _execWithCWD = Runtime.class.getMethod(\"exec\", new Class[] {String[].class, String[].class, File.class});\n        }\n\n        /** \n         * Launches the given command in a new process, in the given working\n         * directory\n         */\n        public Process exec(Project project, String[] cmd, String[] env, File workingDir) \n            throws IOException\n        {\n            try {\n                if (project != null) {\n                    project.log(\"Execute:Java13CommandLauncher: \" +\n                                Commandline.toString(cmd), Project.MSG_DEBUG);\n                }                                \n                Object[] arguments = { cmd, env, workingDir };\n                return (Process)_execWithCWD.invoke(Runtime.getRuntime(), arguments);\n            } \n            catch ( InvocationTargetException exc ) {\n                Throwable realexc = exc.getTargetException();\n                if ( realexc instanceof ThreadDeath ) {\n                    throw (ThreadDeath)realexc;\n                } \n                else if ( realexc instanceof IOException ) {\n                    throw (IOException)realexc;\n                } \n                else {\n                    throw new IOException(realexc.getMessage());\n                }\n            } \n            catch ( Exception exc ) {\n                throw new IOException(exc.getMessage());\n            }\n        }\n        \n        private Method _execWithCWD;\n    }\n    \n    /**\n     * A command launcher that proxies another command launcher.  \n     *\n     * Sub-classes override exec(args, env, workdir)\n     */\n    private static class CommandLauncherProxy extends CommandLauncher\n    {\n        CommandLauncherProxy(CommandLauncher launcher)\n        {\n            _launcher = launcher;\n        }\n\n        /** \n         * Launches the given command in a new process.  Delegates this\n         * method to the proxied launcher\n         */\n        public Process exec(Project project, String[] cmd, String[] env) throws IOException\n        {\n            return _launcher.exec(project, cmd, env);\n        }\n\n        private CommandLauncher _launcher;\n    }\n\n    /**\n     * A command launcher for Windows 2000/NT that uses 'cmd.exe' when\n     * launching commands in directories other than the current working\n     * directory.\n     */\n    private static class WinNTCommandLauncher extends CommandLauncherProxy\n    {\n        WinNTCommandLauncher(CommandLauncher launcher)\n        {\n            super(launcher);\n        }\n\n        /** \n         * Launches the given command in a new process, in the given working\n         * directory.\n         */\n        public Process exec(Project project, String[] cmd, String[] env, File workingDir) throws IOException\n        {\n            if ( workingDir == null ) {\n                return exec(project, cmd, env);\n            }\n\n            final int preCmdLength = 6;\n            String[] newcmd = new String[cmd.length + preCmdLength];\n            newcmd[0] = \"cmd\";\n            newcmd[1] = \"/c\";\n            newcmd[2] = \"cd\";\n            newcmd[3] = \"/d\";\n            newcmd[4] = workingDir.getAbsolutePath();\n            newcmd[5] = \"&&\";\n            System.arraycopy(cmd, 0, newcmd, preCmdLength, cmd.length);\n\n            return exec(project, newcmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for Mac that uses a dodgy mechanism to change\n     * working directory before launching commands.\n     */\n    private static class MacCommandLauncher extends CommandLauncherProxy\n    {\n        MacCommandLauncher(CommandLauncher launcher)\n        {\n            super(launcher);\n        }\n\n        /** \n         * Launches the given command in a new process, in the given working\n         * directory\n         */\n        public Process exec(Project project, String[] cmd, String[] env, File workingDir) throws IOException\n        {\n            if ( workingDir == null ) {\n                return exec(project, cmd, env);\n            }\n\n            System.getProperties().put(\"user.dir\", workingDir.getAbsolutePath());\n            try {\n                return exec(project, cmd, env);\n            } \n            finally {\n                System.getProperties().put(\"user.dir\", antWorkingDirectory);\n            }\n        }\n    }\n\n    /**\n     * A command launcher that uses an auxiliary script to launch commands\n     * in directories other than the current working directory.\n     */\n    private static class ScriptCommandLauncher extends CommandLauncherProxy\n    {\n        ScriptCommandLauncher(String script, CommandLauncher launcher)\n        {\n            super(launcher);\n            _script = script;\n        }\n\n        /** \n         * Launches the given command in a new process, in the given working\n         * directory\n         */\n        public Process exec(Project project, String[] cmd, String[] env, File workingDir) throws IOException\n        {\n            if ( workingDir == null ) {\n                return exec(project, cmd, env);\n            }\n\n            if ( project == null ) {\n                throw new IOException(\"Cannot locate antRun script: No project provided\");\n            }\n            String antHome = project.getProperty(\"ant.home\");\n            if ( antHome == null ) {\n                throw new IOException(\"Cannot locate antRun script: Property 'ant.home' not found\");\n            }\n            String antRun = project.resolveFile(antHome + File.separator + _script).toString();\n\n            String[] newcmd = new String[cmd.length + 2];\n            newcmd[0] = antRun;\n            newcmd[1] = workingDir.getAbsolutePath();\n            System.arraycopy(cmd, 0, newcmd, 2, cmd.length);\n            \n            return exec(project, newcmd, env);\n        }\n\n        private String _script;", "functions": [{"function_name": "createCommandLauncher", "code": "    private static CommandLauncher createCommandLauncher()\n    {\n        try {\n            return new Java13CommandLauncher();\n        }\n        catch ( NoSuchMethodException exc ) {\n        }\n\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        if ( osname.indexOf(\"mac os\") >= 0 ) {\n            return new MacCommandLauncher(new CommandLauncher());\n        }\n        else if ( osname.indexOf(\"os/2\") >= 0 ) {\n            return new WinNTCommandLauncher(new CommandLauncher());\n        }\n        else if ( osname.indexOf(\"windows\") >= 0 ) {\n            CommandLauncher baseLauncher;\n            if ( System.getProperty(\"java.version\").startsWith(\"1.1\") ) {\n                baseLauncher = new Java11CommandLauncher();\n            }\n            else {\n                baseLauncher = new CommandLauncher();\n            }\n\n            if ( osname.indexOf(\"nt\") >= 0 || osname.indexOf(\"2000\") >= 0 ) {\n                return new WinNTCommandLauncher(baseLauncher);\n            }\n            else {\n                return new ScriptCommandLauncher(\"bin/antRun.bat\", baseLauncher);\n            }\n        }\n        else {\n            return new ScriptCommandLauncher(\"bin/antRun\", new CommandLauncher());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "TRY", "IF", "BINARY_OP", "CATCH", "RETURN", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [4, 9], [1, 10], [5, 11], [5, 12], [2, 13], [7, 14], [8, 15], [4, 16], [9, 17], [9, 18], [10, 19], [12, 20], [13, 21], [13, 22], [8, 23], [8, 24], [8, 25], [8, 26], [15, 27], [15, 28], [16, 29], [18, 30], [19, 31], [23, 32], [24, 33], [25, 34], [28, 35], [29, 36], [32, 37], [32, 38], [24, 39], [24, 40], [33, 41], [33, 42], [34, 43], [34, 44], [39, 45], [40, 46], [41, 47], [41, 48], [42, 49], [42, 50], [25, 51], [25, 52], [44, 53], [45, 54], [48, 55], [50, 56], [51, 57], [52, 58], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 4], [10, 1], [11, 5], [12, 5], [13, 2], [14, 7], [15, 8], [16, 4], [17, 9], [18, 9], [19, 10], [20, 12], [21, 13], [22, 13], [23, 8], [24, 8], [25, 8], [26, 8], [27, 15], [28, 15], [29, 16], [30, 18], [31, 19], [32, 23], [33, 24], [34, 25], [35, 28], [36, 29], [37, 32], [38, 32], [39, 24], [40, 24], [41, 33], [42, 33], [43, 34], [44, 34], [45, 39], [46, 40], [47, 41], [48, 41], [49, 42], [50, 42], [51, 25], [52, 25], [53, 44], [54, 45], [55, 48], [56, 50], [57, 51], [58, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "getProcEnvironment", "code": "    public static synchronized Vector getProcEnvironment() {\n        if (procEnvironment != null) return procEnvironment;\n\n        procEnvironment = new Vector();\n        try {\n            ByteArrayOutputStream out = new ByteArrayOutputStream();\n            Execute exe = new Execute(new PumpStreamHandler(out));\n            exe.setCommandline(getProcEnvCommand());\n            exe.setNewenvironment(true);\n            int retval = exe.execute();\n            if ( retval != 0 ) {\n            }\n\n            BufferedReader in = \n                new BufferedReader(new StringReader(out.toString()));\n            String line;\n            while ((line = in.readLine()) != null) {\n                procEnvironment.addElement(line);\n            }\n        } \n        catch (java.io.IOException exc) {\n            exc.printStackTrace();\n        }\n        return procEnvironment;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [0, 12], [3, 13], [3, 14], [5, 15], [8, 16], [2, 17], [2, 18], [12, 19], [14, 20], [4, 21], [15, 22], [15, 23], [7, 24], [16, 25], [9, 26], [17, 27], [18, 28], [10, 29], [11, 30], [5, 31], [23, 32], [24, 33], [29, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 0], [13, 3], [14, 3], [15, 5], [16, 8], [17, 2], [18, 2], [19, 12], [20, 14], [21, 4], [22, 15], [23, 15], [24, 7], [25, 16], [26, 9], [27, 17], [28, 18], [29, 10], [30, 11], [31, 5], [32, 23], [33, 24], [34, 29], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getProcEnvCommand", "code": "    private static String[] getProcEnvCommand() {\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        if ( osname.indexOf(\"mac os\") >= 0 ) {\n            String[] cmd = null;\n            return cmd;\n        }\n        else if ( osname.indexOf(\"os/2\") >= 0 ) {\n            String[] cmd = {\"cmd\", \"/c\", \"set\" };\n            return cmd;\n        }\n        else if ( osname.indexOf(\"indows\") >= 0 ) {\n            if ( osname.indexOf(\"nt\") >= 0 || osname.indexOf(\"2000\") >= 0 ) {\n                String[] cmd = {\"cmd\", \"/c\", \"set\" };\n                return cmd;\n            }\n            else {\n                String[] cmd = {\"command.com\", \"/c\", \"set\" };\n                return cmd;\n            }\n        }\n        else {\n            String[] cmd = {\"/usr/bin/env\"};\n            return cmd;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [1, 8], [4, 9], [4, 10], [2, 11], [5, 12], [3, 13], [3, 14], [6, 15], [6, 16], [10, 17], [11, 18], [11, 19], [5, 20], [5, 21], [5, 22], [12, 23], [12, 24], [16, 25], [8, 26], [22, 27], [24, 28], [22, 29], [22, 30], [22, 31], [22, 32], [27, 33], [27, 34], [14, 35], [14, 36], [14, 37], [21, 38], [33, 39], [33, 40], [34, 41], [34, 42], [40, 43], [42, 44], [30, 45], [30, 46], [30, 47], [32, 48], [32, 49], [32, 50], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 1], [9, 4], [10, 4], [11, 2], [12, 5], [13, 3], [14, 3], [15, 6], [16, 6], [17, 10], [18, 11], [19, 11], [20, 5], [21, 5], [22, 5], [23, 12], [24, 12], [25, 16], [26, 8], [27, 22], [28, 24], [29, 22], [30, 22], [31, 22], [32, 22], [33, 27], [34, 27], [35, 14], [36, 14], [37, 14], [38, 21], [39, 33], [40, 33], [41, 34], [42, 34], [43, 40], [44, 42], [45, 30], [46, 30], [47, 30], [48, 32], [49, 32], [50, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "getCommandline", "code": "    public String[] getCommandline() {\n        return cmdl;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCommandline", "code": "    public void setCommandline(String[] commandline) {\n        cmdl = commandline;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNewenvironment", "code": "    public void setNewenvironment(boolean newenv) {\n        newEnvironment = newenv;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEnvironment", "code": "    public String[] getEnvironment() {\n        if (env == null || newEnvironment) return env;\n        return patchEnvironment();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setEnvironment", "code": "    public void setEnvironment(String[] env) {\n        this.env = env;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setWorkingDirectory", "code": "    public void setWorkingDirectory(File wd) {\n        if (wd == null || wd.getAbsolutePath().equals(antWorkingDirectory))\n            workingDirectory = null;\n        else\n            workingDirectory = wd;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setAntRun", "code": "    public void setAntRun(Project project) throws BuildException {\n        this.project = project;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public int execute() throws IOException {\n        final Process process = launcher.exec(project, getCommandline(), getEnvironment(), workingDirectory);\n        try {\n            streamHandler.setProcessInputStream(process.getOutputStream());\n            streamHandler.setProcessOutputStream(process.getInputStream());\n            streamHandler.setProcessErrorStream(process.getErrorStream());\n        } catch (IOException e) {\n            process.destroy();\n            throw e;\n        }\n        streamHandler.start();\n        if (watchdog != null) watchdog.start(process);\n        waitFor(process);\n        if (watchdog != null) watchdog.stop();\n        streamHandler.stop();\n        if (watchdog != null) watchdog.checkException();\n        return getExitValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [3, 10], [0, 11], [4, 12], [0, 13], [5, 14], [2, 15], [8, 16], [3, 17], [10, 18], [4, 19], [12, 20], [14, 21], [5, 22], [5, 23], [5, 24], [6, 25], [14, 26], [22, 27], [23, 28], [24, 29], [25, 30], [25, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 3], [11, 0], [12, 4], [13, 0], [14, 5], [15, 2], [16, 8], [17, 3], [18, 10], [19, 4], [20, 12], [21, 14], [22, 5], [23, 5], [24, 5], [25, 6], [26, 14], [27, 22], [28, 23], [29, 24], [30, 25], [31, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "waitFor", "code": "    protected void waitFor(Process process) {\n        try {\n            process.waitFor();\n            setExitValue(process.exitValue());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExitValue", "code": "    protected void setExitValue(int value) {\n        exitValue = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExitValue", "code": "    public int getExitValue() {\n        return exitValue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "patchEnvironment", "code": "    private String[] patchEnvironment() {\n        Vector osEnv = (Vector) getProcEnvironment().clone();\n        for (int i = 0; i < env.length; i++) {\n            int pos = env[i].indexOf('=');\n            String key = env[i].substring(0, pos+1);\n            int size = osEnv.size();\n            for (int j = 0; j < size; j++) {\n                if (((String)osEnv.elementAt(j)).startsWith(key)) {\n                    osEnv.removeElementAt(j);\n                    break;\n                }\n            }\n            osEnv.addElement(env[i]);\n        }\n        String[] result = new String[osEnv.size()];\n        osEnv.copyInto(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [2, 11], [3, 12], [7, 13], [3, 14], [4, 15], [7, 16], [8, 17], [15, 18], [7, 19], [9, 20], [10, 21], [16, 22], [16, 23], [20, 24], [20, 25], [21, 26], [16, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 3], [9, 3], [10, 3], [11, 2], [12, 3], [13, 7], [14, 3], [15, 4], [16, 7], [17, 8], [18, 15], [19, 7], [20, 9], [21, 10], [22, 16], [23, 16], [24, 20], [25, 20], [26, 21], [27, 16], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "runCommand", "code": "    public static void runCommand(Task task, String[] cmdline) throws BuildException\n    {\n        try {\n            task.log(Commandline.toString(cmdline), Project.MSG_VERBOSE);\n            Execute exe = new Execute(new LogStreamHandler(task, \n                                                           Project.MSG_INFO,\n                                                           Project.MSG_ERR));\n            exe.setAntRun(task.getProject());\n            exe.setCommandline(cmdline);\n            int retval = exe.execute();\n            if ( retval != 0 ) {\n                throw new BuildException(cmdline[0] + \" failed with return code \" + retval, task.getLocation());\n            }\n        } \n        catch (java.io.IOException exc) {\n            throw new BuildException(\"Could not launch \" + cmdline[0] + \": \" + exc, task.getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [1, 11], [1, 12], [8, 13], [5, 14], [9, 15], [6, 16], [11, 17], [7, 18], [12, 19], [13, 20], [13, 21], [14, 22], [18, 23], [21, 24], [22, 25], [22, 26], [24, 27], [24, 28], [26, 29], [28, 30], [29, 31], [28, 32], [29, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 1], [12, 1], [13, 8], [14, 5], [15, 9], [16, 6], [17, 11], [18, 7], [19, 12], [20, 13], [21, 13], [22, 14], [23, 18], [24, 21], [25, 22], [26, 22], [27, 24], [28, 24], [29, 26], [30, 28], [31, 29], [32, 28], [33, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "Execute", "code": "    public Execute() {\n        this(new PumpStreamHandler(), null);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Execute", "code": "    public Execute(ExecuteStreamHandler streamHandler) {\n        this(streamHandler, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Execute", "code": "    public Execute(ExecuteStreamHandler streamHandler, ExecuteWatchdog watchdog) {\n        this.streamHandler = streamHandler;\n        this.watchdog = watchdog;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.6-2610", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/util/ServiceHelper.java", "language": "java", "name": "org.apache.camel.util.ServiceHelper", "code": "public final class ServiceHelper {\n    private static final transient Log LOG = LogFactory.getLog(ServiceHelper.class);\n\n    /**\n     * Utility classes should not have a public constructor.\n     */\n    private ServiceHelper() {\n    }\n\n    public static void startService(Object value) throws Exception {\n        if (value instanceof Service) {\n            Service service = (Service)value;\n            service.start();\n        } else if (value instanceof Collection) {\n            startServices((Collection)value);\n        }\n    }\n\n    /**\n     * Starts all of the given services\n     */\n    public static void startServices(Object... services) throws Exception {\n        for (Object value : services) {\n            startService(value);\n        }\n    }\n\n    /**\n     * Starts all of the given services\n     */\n    public static void startServices(Collection services) throws Exception {\n        for (Object value : services) {\n            if (value instanceof Service) {\n                Service service = (Service)value;\n                service.start();\n            }\n        }\n    }\n\n    /**\n     * Stops all of the given services, throwing the first exception caught\n     */\n    public static void stopServices(Object... services) throws Exception {\n        Exception firstException = null;\n        for (Object value : services) {\n            if (value instanceof Service) {\n                Service service = (Service)value;\n                try {\n                    service.stop();\n                } catch (Exception e) {\n                    LOG.debug(\"Caught exception shutting down: \" + e, e);\n                    if (firstException == null) {\n                        firstException = e;\n                    }\n                }\n            }\n        }\n        if (firstException != null) {\n            throw firstException;\n        }\n    }\n\n    public static void stopService(Object value) throws Exception {\n        if (value instanceof Service) {\n            Service service = (Service)value;\n            service.stop();\n        } else if (value instanceof Collection) {\n            stopServices((Collection)value);\n        }\n    }\n\n    /**\n     * Stops all of the given services, throwing the first exception caught\n     */\n    public static void stopServices(Collection services) throws Exception {\n        Exception firstException = null;\n        for (Object value : services) {\n            if (value instanceof Service) {\n                Service service = (Service)value;\n                try {\n                    service.stop();\n                } catch (Exception e) {\n                    LOG.debug(\"Caught exception shutting down: \" + e, e);\n                    if (firstException == null) {\n                        firstException = e;\n                    }\n                }\n            }\n        }\n        if (firstException != null) {\n            throw firstException;", "functions": [{"function_name": "startService", "code": "    public static void startService(Object value) throws Exception {\n        if (value instanceof Service) {\n            Service service = (Service)value;\n            service.start();\n        } else if (value instanceof Collection) {\n            startServices((Collection)value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [3, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "startServices", "code": "    public static void startServices(Object... services) throws Exception {\n        for (Object value : services) {\n            startService(value);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startServices", "code": "    public static void startServices(Collection services) throws Exception {\n        for (Object value : services) {\n            if (value instanceof Service) {\n                Service service = (Service)value;\n                service.start();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "IF", "BINARY_OP", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "stopServices", "code": "    public static void stopServices(Object... services) throws Exception {\n        Exception firstException = null;\n        for (Object value : services) {\n            if (value instanceof Service) {\n                Service service = (Service)value;\n                try {\n                    service.stop();\n                } catch (Exception e) {\n                    LOG.debug(\"Caught exception shutting down: \" + e, e);\n                    if (firstException == null) {\n                        firstException = e;\n                    }\n                }\n            }\n        }\n        if (firstException != null) {\n            throw firstException;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "VAR_DECL", "CATCH", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [8, 10], [8, 11], [8, 12], [11, 13], [13, 14], [11, 15], [14, 16], [13, 17], [16, 18], [17, 19], [14, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 8], [11, 8], [12, 8], [13, 11], [14, 13], [15, 11], [16, 14], [17, 13], [18, 16], [19, 17], [20, 14], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "stopService", "code": "    public static void stopService(Object value) throws Exception {\n        if (value instanceof Service) {\n            Service service = (Service)value;\n            service.stop();\n        } else if (value instanceof Collection) {\n            stopServices((Collection)value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [3, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "stopServices", "code": "    public static void stopServices(Collection services) throws Exception {\n        Exception firstException = null;\n        for (Object value : services) {\n            if (value instanceof Service) {\n                Service service = (Service)value;\n                try {\n                    service.stop();\n                } catch (Exception e) {\n                    LOG.debug(\"Caught exception shutting down: \" + e, e);\n                    if (firstException == null) {\n                        firstException = e;\n                    }\n                }\n            }\n        }\n        if (firstException != null) {\n            throw firstException;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "VAR_DECL", "CATCH", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [8, 10], [8, 11], [8, 12], [11, 13], [13, 14], [11, 15], [14, 16], [13, 17], [16, 18], [17, 19], [14, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 8], [11, 8], [12, 8], [13, 11], [14, 13], [15, 11], [16, 14], [17, 13], [18, 16], [19, 17], [20, 14], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "ServiceHelper", "code": "    private ServiceHelper() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.7-1342", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/DirSet.java", "language": "java", "name": "org.apache.tools.ant.types.DirSet", "code": "public class DirSet extends AbstractFileSet implements ResourceCollection {\n\n    /**\n     * Constructor for DirSet.\n     */\n    public DirSet() {\n        super();\n    }\n\n    /**\n     * Constructor for DirSet, with DirSet to shallowly clone.\n     * @param dirset the dirset to clone.\n     */\n    protected DirSet(DirSet dirset) {\n        super(dirset);\n    }\n\n    /**\n     * Return a DirSet that has the same basedir and same patternsets\n     * as this one.\n     * @return the cloned dirset.\n     */\n    public Object clone() {\n        if (isReference()) {\n            return ((DirSet) getRef(getProject())).clone();\n        } else {\n            return super.clone();\n        }\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return an Iterator of Resources.\n     * @since Ant 1.7\n     */\n    public Iterator iterator() {\n        if (isReference()) {\n            return ((DirSet) getRef(getProject())).iterator();\n        }\n        return new FileResourceIterator(getDir(getProject()),\n            getDirectoryScanner(getProject()).getIncludedDirectories());\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return number of elements as int.\n     * @since Ant 1.7\n     */\n    public int size() {\n        if (isReference()) {\n            return ((DirSet) getRef(getProject())).size();\n        }\n        return getDirectoryScanner(getProject()).getIncludedDirsCount();\n    }\n\n    /**\n     * Always returns true.\n     * @return true indicating that all elements will be FileResources.\n     * @since Ant 1.7\n     */\n    public boolean isFilesystemOnly() {\n        return true;\n    }\n\n    /**\n     * Returns included directories as a list of semicolon-separated paths.\n     *\n     * @return a <code>String</code> of included directories.\n     */\n    public String toString() {\n        DirectoryScanner ds = getDirectoryScanner(getProject());\n        String[] dirs = ds.getIncludedDirectories();\n        StringBuffer sb = new StringBuffer();\n\n        for (int i = 0; i < dirs.length; i++) {\n            if (i > 0) {\n                sb.append(';');\n            }\n            sb.append(dirs[i]);\n        }\n        return sb.toString();", "functions": [{"function_name": "clone", "code": "    public Object clone() {\n        if (isReference()) {\n            return ((DirSet) getRef(getProject())).clone();\n        } else {\n            return super.clone();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "iterator", "code": "    public Iterator iterator() {\n        if (isReference()) {\n            return ((DirSet) getRef(getProject())).iterator();\n        }\n        return new FileResourceIterator(getDir(getProject()),\n            getDirectoryScanner(getProject()).getIncludedDirectories());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [2, 7], [5, 8], [5, 9], [6, 10], [7, 11], [11, 12], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 2], [8, 5], [9, 5], [10, 6], [11, 7], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "size", "code": "    public int size() {\n        if (isReference()) {\n            return ((DirSet) getRef(getProject())).size();\n        }\n        return getDirectoryScanner(getProject()).getIncludedDirsCount();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [2, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 2], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isFilesystemOnly", "code": "    public boolean isFilesystemOnly() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n        DirectoryScanner ds = getDirectoryScanner(getProject());\n        String[] dirs = ds.getIncludedDirectories();\n        StringBuffer sb = new StringBuffer();\n\n        for (int i = 0; i < dirs.length; i++) {\n            if (i > 0) {\n                sb.append(';');\n            }\n            sb.append(dirs[i]);\n        }\n        return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [4, 10], [5, 11], [2, 12], [8, 13], [2, 14], [11, 15], [13, 16], [8, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 4], [11, 5], [12, 2], [13, 8], [14, 2], [15, 11], [16, 13], [17, 8], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "DirSet", "code": "    public DirSet() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DirSet", "code": "    protected DirSet(DirSet dirset) {\n        super(dirset);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-2947", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/quartz/QuartzComponent.java", "language": "java", "name": "org.apache.camel.component.quartz.QuartzComponent", "code": "public class QuartzComponent extends DefaultComponent<QuartzExchange> {\n    private static final transient Log LOG = LogFactory.getLog(QuartzComponent.class);\n    private SchedulerFactory factory;\n    private Scheduler scheduler;\n    private Map<Trigger, JobDetail> triggers;\n\n    public QuartzComponent() {\n    }\n\n    public QuartzComponent(final CamelContext context) {\n        super(context);\n    }\n\n    @Override\n    protected QuartzEndpoint createEndpoint(final String uri, final String remaining, final Map parameters) throws Exception {\n        QuartzEndpoint answer = new QuartzEndpoint(uri, this, getScheduler());\n\n        URI u = new URI(uri);\n        String name;\n        String group = \"Camel\";\n        String path = u.getPath();\n        CronTrigger cronTrigger = null;\n        if (path != null && path.length() > 1) {\n            if (path.startsWith(\"/\")) {\n                path = path.substring(1);\n            }\n            int idx = path.indexOf('/');\n            if (idx > 0) {\n                cronTrigger = new CronTrigger();\n                name = path.substring(0, idx);\n                String cronExpression = path.substring(idx + 1);\n                cronExpression = cronExpression.replace('/', ' ');\n                cronExpression = cronExpression.replace('$', '?');\n                LOG.debug(\"Creating cron trigger: \" + cronExpression);\n                cronTrigger.setCronExpression(cronExpression);\n                answer.setTrigger(cronTrigger);\n            } else {\n                name = path;\n            }\n            group = u.getHost();\n        } else {\n            name = u.getHost();\n        }\n        /*\n         * String[] names = ObjectHelper.splitOnCharacter(remaining, \"/\", 2); if\n         * (names[1] != null) { group = names[0]; name = names[1]; } else { name =\n         * names[0]; }\n         */\n        Trigger trigger = cronTrigger;\n        if (trigger == null) {\n            trigger = answer.getTrigger();\n        }\n        trigger.setName(name);\n        trigger.setGroup(group);\n\n        Map triggerParameters = IntrospectionSupport.extractProperties(parameters, \"trigger.\");\n        Map jobParameters = IntrospectionSupport.extractProperties(parameters, \"job.\");\n\n        setProperties(trigger, triggerParameters);\n        setProperties(answer.getJobDetail(), jobParameters);\n\n        return answer;\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        getScheduler().start();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        if (scheduler != null) {\n            scheduler.shutdown();\n        }\n        super.doStop();\n    }\n\n    public SchedulerFactory getFactory() {\n        if (factory == null) {\n            factory = createSchedulerFactory();\n        }\n        return factory;\n    }\n\n    public void setFactory(final SchedulerFactory factory) {\n        this.factory = factory;\n    }\n\n    public Scheduler getScheduler() throws SchedulerException {\n        if (scheduler == null) {\n            scheduler = createScheduler();\n        }\n        return scheduler;\n    }\n\n    public void setScheduler(final Scheduler scheduler) {\n        this.scheduler = scheduler;\n    }\n\n    public Map getTriggers() {\n        return triggers;\n    }\n\n    public void setTriggers(final Map triggers) {\n        this.triggers = triggers;\n    }\n\n    protected SchedulerFactory createSchedulerFactory() {\n        return new StdSchedulerFactory();\n    }\n\n    protected Scheduler createScheduler() throws SchedulerException {\n        Scheduler scheduler = getFactory().getScheduler();\n        scheduler.getContext().put(QuartzEndpoint.CONTEXT_KEY, getCamelContext());\n        return scheduler;", "functions": [{"function_name": "createEndpoint", "code": "    @Override\n    protected QuartzEndpoint createEndpoint(final String uri, final String remaining, final Map parameters) throws Exception {\n        QuartzEndpoint answer = new QuartzEndpoint(uri, this, getScheduler());\n\n        URI u = new URI(uri);\n        String name;\n        String group = \"Camel\";\n        String path = u.getPath();\n        CronTrigger cronTrigger = null;\n        if (path != null && path.length() > 1) {\n            if (path.startsWith(\"/\")) {\n                path = path.substring(1);\n            }\n            int idx = path.indexOf('/');\n            if (idx > 0) {\n                cronTrigger = new CronTrigger();\n                name = path.substring(0, idx);\n                String cronExpression = path.substring(idx + 1);\n                cronExpression = cronExpression.replace('/', ' ');\n                cronExpression = cronExpression.replace('$', '?');\n                LOG.debug(\"Creating cron trigger: \" + cronExpression);\n                cronTrigger.setCronExpression(cronExpression);\n                answer.setTrigger(cronTrigger);\n            } else {\n                name = path;\n            }\n            group = u.getHost();\n        } else {\n            name = u.getHost();\n        }\n        /*\n         * String[] names = ObjectHelper.splitOnCharacter(remaining, \"/\", 2); if\n         * (names[1] != null) { group = names[0]; name = names[1]; } else { name =\n         * names[0]; }\n         */\n        Trigger trigger = cronTrigger;\n        if (trigger == null) {\n            trigger = answer.getTrigger();\n        }\n        trigger.setName(name);\n        trigger.setGroup(group);\n\n        Map triggerParameters = IntrospectionSupport.extractProperties(parameters, \"trigger.\");\n        Map jobParameters = IntrospectionSupport.extractProperties(parameters, \"job.\");\n\n        setProperties(trigger, triggerParameters);\n        setProperties(answer.getJobDetail(), jobParameters);\n\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [4, 20], [6, 21], [16, 22], [2, 23], [3, 24], [20, 25], [6, 26], [6, 27], [6, 28], [21, 29], [21, 30], [7, 31], [8, 32], [9, 33], [11, 34], [12, 35], [23, 36], [24, 37], [4, 38], [6, 39], [6, 40], [26, 41], [28, 42], [29, 43], [29, 44], [30, 45], [35, 46], [38, 47], [39, 48], [40, 49], [26, 50], [41, 51], [27, 52], [42, 53], [26, 54], [26, 55], [26, 56], [26, 57], [26, 58], [26, 59], [26, 60], [26, 61], [52, 62], [28, 63], [57, 64], [58, 65], [59, 66], [50, 67], [60, 68], [61, 69], [63, 70], [64, 71], [65, 72], [65, 73], [66, 74], [66, 75], [67, 76], [68, 77], [70, 78], [76, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 4], [21, 6], [22, 16], [23, 2], [24, 3], [25, 20], [26, 6], [27, 6], [28, 6], [29, 21], [30, 21], [31, 7], [32, 8], [33, 9], [34, 11], [35, 12], [36, 23], [37, 24], [38, 4], [39, 6], [40, 6], [41, 26], [42, 28], [43, 29], [44, 29], [45, 30], [46, 35], [47, 38], [48, 39], [49, 40], [50, 26], [51, 41], [52, 27], [53, 42], [54, 26], [55, 26], [56, 26], [57, 26], [58, 26], [59, 26], [60, 26], [61, 26], [62, 52], [63, 28], [64, 57], [65, 58], [66, 59], [67, 50], [68, 60], [69, 61], [70, 63], [71, 64], [72, 65], [73, 65], [74, 66], [75, 66], [76, 67], [77, 68], [78, 70], [79, 76], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        getScheduler().start();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        if (scheduler != null) {\n            scheduler.shutdown();\n        }\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFactory", "code": "    public SchedulerFactory getFactory() {\n        if (factory == null) {\n            factory = createSchedulerFactory();\n        }\n        return factory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setFactory", "code": "    public void setFactory(final SchedulerFactory factory) {\n        this.factory = factory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getScheduler", "code": "    public Scheduler getScheduler() throws SchedulerException {\n        if (scheduler == null) {\n            scheduler = createScheduler();\n        }\n        return scheduler;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setScheduler", "code": "    public void setScheduler(final Scheduler scheduler) {\n        this.scheduler = scheduler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTriggers", "code": "    public Map getTriggers() {\n        return triggers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTriggers", "code": "    public void setTriggers(final Map triggers) {\n        this.triggers = triggers;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createSchedulerFactory", "code": "    protected SchedulerFactory createSchedulerFactory() {\n        return new StdSchedulerFactory();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createScheduler", "code": "    protected Scheduler createScheduler() throws SchedulerException {\n        Scheduler scheduler = getFactory().getScheduler();\n        scheduler.getContext().put(QuartzEndpoint.CONTEXT_KEY, getCamelContext());\n        return scheduler;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "QuartzComponent", "code": "    public QuartzComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "QuartzComponent", "code": "    public QuartzComponent(final CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6555", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/processor/XSLTSchema.java", "language": "java", "name": "org.apache.xalan.processor.XSLTSchema", "code": "public class XSLTSchema extends XSLTElementDef\n{\n\n  /**\n   * Construct a XSLTSchema which represents the XSLT \"schema\".\n   */\n  XSLTSchema()\n  {\n    build();\n  }\n\n  /**\n   * schema provides instructions for building the Xalan Stylesheet (Templates) structure.\n   */\n  void build()\n  {\n    XSLTAttributeDef hrefAttr = new XSLTAttributeDef(null, \"href\",\n                                  XSLTAttributeDef.T_URL, true, false,XSLTAttributeDef.ERROR);\n                                  \n    XSLTAttributeDef elementsAttr = new XSLTAttributeDef(null, \"elements\",\n                                      XSLTAttributeDef.T_SIMPLEPATTERNLIST,\n                                      true, false, XSLTAttributeDef.ERROR);\n                                      \n    \n    XSLTAttributeDef methodAttr = new XSLTAttributeDef(null, \"method\",\n                                    XSLTAttributeDef.T_QNAME, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef versionAttr = new XSLTAttributeDef(null, \"version\",\n                                     XSLTAttributeDef.T_NMTOKEN, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef encodingAttr = new XSLTAttributeDef(null, \"encoding\",\n                                      XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef omitXmlDeclarationAttr = new XSLTAttributeDef(null,\n                                                \"omit-xml-declaration\",\n                                                XSLTAttributeDef.T_YESNO,\n                                                false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef standaloneAttr = new XSLTAttributeDef(null,\n                                        \"standalone\",\n                                        XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef doctypePublicAttr = new XSLTAttributeDef(null,\n                                           \"doctype-public\",\n                                           XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef doctypeSystemAttr = new XSLTAttributeDef(null,\n                                           \"doctype-system\",\n                                           XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef cdataSectionElementsAttr = new XSLTAttributeDef(null,\n                                                  \"cdata-section-elements\",\n                                                  XSLTAttributeDef.T_QNAMES_RESOLVE_NULL,\n                                                  false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef indentAttr = new XSLTAttributeDef(null, \"indent\",\n                                    XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef mediaTypeAttr = new XSLTAttributeDef(null, \"media-type\",\n                                       XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.ERROR);\n                                       \n                  \n    XSLTAttributeDef nameAttrRequired = new XSLTAttributeDef(null, \"name\",\n                                          XSLTAttributeDef.T_QNAME, true, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef nameAVTRequired = new XSLTAttributeDef(null, \"name\",\n                                         XSLTAttributeDef.T_AVT_QNAME, true, true,XSLTAttributeDef.WARNING);\n            \n\n    XSLTAttributeDef nameAVT_NCNAMERequired = new XSLTAttributeDef(null, \"name\",\n                                         XSLTAttributeDef.T_NCNAME, true, true,XSLTAttributeDef.WARNING);\n                                        \n    XSLTAttributeDef nameAttrOpt_ERROR = new XSLTAttributeDef(null, \"name\",\n                                     XSLTAttributeDef.T_QNAME, false, false,XSLTAttributeDef.ERROR);\n\n    XSLTAttributeDef useAttr = new XSLTAttributeDef(null, \"use\",\n                                 XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.ERROR);\n           \n    XSLTAttributeDef namespaceAVTOpt = new XSLTAttributeDef(null,\n                                         \"namespace\",XSLTAttributeDef.T_URL,\n                                         false, true,XSLTAttributeDef.WARNING);\n    XSLTAttributeDef decimalSeparatorAttr = new XSLTAttributeDef(null,\n                                              \"decimal-separator\",\n                                              XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, \".\");\n    XSLTAttributeDef infinityAttr = new XSLTAttributeDef(null, \"infinity\",\n                                      XSLTAttributeDef.T_CDATA, false,XSLTAttributeDef.ERROR,\"Infinity\");\n    XSLTAttributeDef minusSignAttr = new XSLTAttributeDef(null, \"minus-sign\",\n                                       XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR,\"-\");\n    XSLTAttributeDef NaNAttr = new XSLTAttributeDef(null, \"NaN\",\n                                 XSLTAttributeDef.T_CDATA, false,XSLTAttributeDef.ERROR, \"NaN\");\n    XSLTAttributeDef percentAttr = new XSLTAttributeDef(null, \"percent\",\n                                     XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, \"%\");\n    XSLTAttributeDef perMilleAttr = new XSLTAttributeDef(null, \"per-mille\",\n                                      XSLTAttributeDef.T_CHAR,\n                                      false, false,XSLTAttributeDef.ERROR /* ,\"&#x2030;\" */);\n    XSLTAttributeDef zeroDigitAttr = new XSLTAttributeDef(null, \"zero-digit\",\n                                       XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, \"0\");\n    XSLTAttributeDef digitAttr = new XSLTAttributeDef(null, \"digit\",\n                                   XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, \"#\");\n    XSLTAttributeDef patternSeparatorAttr = new XSLTAttributeDef(null,\n                                              \"pattern-separator\",\n                                              XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, \";\");\n    XSLTAttributeDef groupingSeparatorAttr = new XSLTAttributeDef(null,\n                                               \"grouping-separator\",\n                                               XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR,\",\");\n\n                                              \n    XSLTAttributeDef useAttributeSetsAttr = new XSLTAttributeDef(null,\n                                              \"use-attribute-sets\",\n                                              XSLTAttributeDef.T_QNAMES,\n                                              false, false, XSLTAttributeDef.ERROR);\n\n    XSLTAttributeDef testAttrRequired = new XSLTAttributeDef(null, \"test\",   \n                                          XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.ERROR);\n      \n      \n    XSLTAttributeDef selectAttrRequired = new XSLTAttributeDef(null,\n                                            \"select\",\n                                            XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.ERROR);\n\n    XSLTAttributeDef selectAttrOpt = new XSLTAttributeDef(null, \"select\",\n                                       XSLTAttributeDef.T_EXPR, false, false,XSLTAttributeDef.ERROR);\n\n    XSLTAttributeDef selectAttrDefNode = new XSLTAttributeDef(null, \"select\",\n                                           XSLTAttributeDef.T_EXPR, false,XSLTAttributeDef.ERROR, \"node()\");\n    XSLTAttributeDef selectAttrDefDot = new XSLTAttributeDef(null, \"select\",\n                                          XSLTAttributeDef.T_EXPR, false,XSLTAttributeDef.ERROR, \".\");\n    XSLTAttributeDef matchAttrRequired = new XSLTAttributeDef(null, \"match\",\n                                           XSLTAttributeDef.T_PATTERN, true, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef matchAttrOpt = new XSLTAttributeDef(null, \"match\",\n                                      XSLTAttributeDef.T_PATTERN, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef priorityAttr = new XSLTAttributeDef(null, \"priority\",\n                                     XSLTAttributeDef.T_NUMBER, false, false,XSLTAttributeDef.ERROR);\n                                     \n    XSLTAttributeDef modeAttr = new XSLTAttributeDef(null, \"mode\",\n                                     XSLTAttributeDef.T_QNAME, false, false,XSLTAttributeDef.ERROR);\n   \n    XSLTAttributeDef spaceAttr =\n      new XSLTAttributeDef(Constants.S_XMLNAMESPACEURI, \"space\", false, false, false, XSLTAttributeDef.WARNING,\n                           \"default\", Constants.ATTRVAL_STRIP, \"preserve\",\n                           Constants.ATTRVAL_PRESERVE);\n                           \n                         \n    XSLTAttributeDef spaceAttrLiteral =\n      new XSLTAttributeDef(Constants.S_XMLNAMESPACEURI, \"space\", \n                                          XSLTAttributeDef.T_URL, false, true,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef stylesheetPrefixAttr = new XSLTAttributeDef(null,\n                                              \"stylesheet-prefix\",\n                                              XSLTAttributeDef.T_CDATA, true, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef resultPrefixAttr = new XSLTAttributeDef(null,\n                                          \"result-prefix\",\n                                          XSLTAttributeDef.T_CDATA, true, false,XSLTAttributeDef.ERROR);\n                                          \n    XSLTAttributeDef disableOutputEscapingAttr = new XSLTAttributeDef(null,\n                                                   \"disable-output-escaping\",\n                                                   XSLTAttributeDef.T_YESNO,\n                                                   false, false,XSLTAttributeDef.ERROR);\n                                                   \n    XSLTAttributeDef levelAttr = new XSLTAttributeDef(null, \"level\", false, false, false, XSLTAttributeDef.ERROR,\n                                   \"single\", Constants.NUMBERLEVEL_SINGLE,\n                                   \"multiple\", Constants.NUMBERLEVEL_MULTI,\n                                   \"any\", Constants.NUMBERLEVEL_ANY);\n    levelAttr.setDefault(\"single\");\n    XSLTAttributeDef countAttr = new XSLTAttributeDef(null, \"count\",\n                                   XSLTAttributeDef.T_PATTERN, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef fromAttr = new XSLTAttributeDef(null, \"from\",\n                                  XSLTAttributeDef.T_PATTERN, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef valueAttr = new XSLTAttributeDef(null, \"value\",\n                                   XSLTAttributeDef.T_EXPR, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef formatAttr = new XSLTAttributeDef(null, \"format\",\n                                    XSLTAttributeDef.T_CDATA, false, true,XSLTAttributeDef.ERROR);\n    formatAttr.setDefault(\"1\");\n    \n    XSLTAttributeDef langAttr = new XSLTAttributeDef(null, \"lang\",\n                                  XSLTAttributeDef.T_NMTOKEN, false, true,XSLTAttributeDef.ERROR);\n   \n    XSLTAttributeDef letterValueAttr = new XSLTAttributeDef(null,\n                                         \"letter-value\",\n                                         false, true, false, XSLTAttributeDef.ERROR,\n                                         \"alphabetic\", Constants.NUMBERLETTER_ALPHABETIC,\n                                         \"traditional\", Constants.NUMBERLETTER_TRADITIONAL);\n    XSLTAttributeDef groupingSeparatorAVT = new XSLTAttributeDef(null,\n                                              \"grouping-separator\",\n                                              XSLTAttributeDef.T_CHAR, false, true,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef groupingSizeAttr = new XSLTAttributeDef(null,\n                                          \"grouping-size\",\n                                          XSLTAttributeDef.T_NUMBER, false, true,XSLTAttributeDef.ERROR);\n   \n    XSLTAttributeDef dataTypeAttr = new XSLTAttributeDef(null, \"data-type\", false, true, true, XSLTAttributeDef.ERROR,\n                                    \"text\", Constants.SORTDATATYPE_TEXT ,\"number\", Constants.SORTDATATYPE_TEXT);\n\tdataTypeAttr.setDefault(\"text\");\n\t\n    XSLTAttributeDef orderAttr = new XSLTAttributeDef(null, \"order\", false, true, false,XSLTAttributeDef.ERROR,\n                                    \"ascending\", Constants.SORTORDER_ASCENDING, \n                                    \"descending\", Constants.SORTORDER_DESCENDING);\n    orderAttr.setDefault(\"ascending\");\n\n    XSLTAttributeDef caseOrderAttr = new XSLTAttributeDef(null, \"case-order\", false, true, false,XSLTAttributeDef.ERROR,\n                                       \"upper-first\", Constants.SORTCASEORDER_UPPERFIRST ,\n                                       \"lower-first\", Constants.SORTCASEORDER_LOWERFIRST);\n\t    \n    XSLTAttributeDef terminateAttr = new XSLTAttributeDef(null, \"terminate\",\n                                       XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.ERROR);\n    terminateAttr.setDefault(\"no\");\n\n    XSLTAttributeDef xslExcludeResultPrefixesAttr =\n      new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL,\n                           \"exclude-result-prefixes\",\n                           XSLTAttributeDef.T_STRINGLIST, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef xslExtensionElementPrefixesAttr =\n      new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL,\n                           \"extension-element-prefixes\",\n                           XSLTAttributeDef.T_PREFIX_URLLIST, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef xslUseAttributeSetsAttr =\n      new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, \"use-attribute-sets\",\n                           XSLTAttributeDef.T_QNAMES, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef xslVersionAttr =\n      new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, \"version\",\n                           XSLTAttributeDef.T_NMTOKEN, false, false,XSLTAttributeDef.ERROR);\n                           \n    XSLTElementDef charData = new XSLTElementDef(this, null, \"text()\",\n                                null /*alias */, null /* elements */, null,  /* attributes */\n                                new ProcessorCharacters(),\n                                ElemTextLiteral.class /* class object */);\n\n    charData.setType(XSLTElementDef.T_PCDATA);\n\n    XSLTElementDef whiteSpaceOnly = new XSLTElementDef(this, null, \"text()\",\n                                      null /*alias */, null /* elements */,\n                                      null,  /* attributes */\n                                      null,\n                                      ElemTextLiteral.class /* should be null? -sb */);\n\n    charData.setType(XSLTElementDef.T_PCDATA);\n\n    XSLTAttributeDef resultAttr = new XSLTAttributeDef(null, \"*\",\n                                    XSLTAttributeDef.T_AVT, false, true,XSLTAttributeDef.WARNING);\n    XSLTAttributeDef xslResultAttr =\n      new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, \"*\",\n                           XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.WARNING);\n                           \n    XSLTElementDef[] templateElements = new XSLTElementDef[22];\n    XSLTElementDef[] templateElementsAndParams = new XSLTElementDef[23];\n    XSLTElementDef[] templateElementsAndSort = new XSLTElementDef[23];\n    XSLTElementDef[] exsltFunctionElements = new XSLTElementDef[23];\n    \n    XSLTElementDef[] charTemplateElements = new XSLTElementDef[15];\n    XSLTElementDef resultElement = new XSLTElementDef(this, null, \"*\",\n                                     null /*alias */,\n                                     templateElements /* elements */,\n                                     new XSLTAttributeDef[]{\n                                       xslExcludeResultPrefixesAttr,\n                                       xslExtensionElementPrefixesAttr,\n                                       xslUseAttributeSetsAttr,\n                                       xslVersionAttr,\n                                       xslResultAttr,\n                                       resultAttr }, \n                                        new ProcessorLRE(),\n                                     ElemLiteralResult.class /* class object */, 20, true);\n    XSLTElementDef unknownElement =\n      new XSLTElementDef(this, \"*\", \"unknown\", null /*alias */,\n                         templateElementsAndParams /* elements */,\n                         new XSLTAttributeDef[]{ xslExcludeResultPrefixesAttr,\n                                                 xslExtensionElementPrefixesAttr,\n                                                 xslUseAttributeSetsAttr,\n                                                 xslVersionAttr,\n                                                 xslResultAttr,\n                                                 resultAttr }, \n                                                                                                 new ProcessorUnknown(),\n                         ElemUnknown.class /* class object */, 20, true);\n    XSLTElementDef xslValueOf = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"value-of\",\n                                  null /*alias */, null /* elements */,\n                                  new XSLTAttributeDef[]{ selectAttrRequired,\n                                                          disableOutputEscapingAttr }, \n                                               new ProcessorTemplateElem(),\n                                  ElemValueOf.class /* class object */, 20, true);\n    XSLTElementDef xslCopyOf = new XSLTElementDef(this,\n                                 Constants.S_XSLNAMESPACEURL, \"copy-of\",\n                                 null /*alias */, null /* elements */,\n                                 new XSLTAttributeDef[]{ selectAttrRequired },\n                                 new ProcessorTemplateElem(),\n                                 ElemCopyOf.class /* class object */, 20, true);\n    XSLTElementDef xslNumber = new XSLTElementDef(this,\n                                 Constants.S_XSLNAMESPACEURL, \"number\",\n                                 null /*alias */, null /* elements */,\n                                 new XSLTAttributeDef[]{ levelAttr,\n                                                         countAttr,\n                                                         fromAttr,\n                                                         valueAttr,\n                                                         formatAttr,\n                                                         langAttr,\n                                                         letterValueAttr,\n                                                         groupingSeparatorAVT,\n                                                         groupingSizeAttr }, \n                                        new ProcessorTemplateElem(),\n                                 ElemNumber.class /* class object */, 20, true);\n\n    XSLTElementDef xslSort = new XSLTElementDef(this,\n                                                Constants.S_XSLNAMESPACEURL,\n                                                \"sort\", null /*alias */,\n                                                null /* elements */,\n                                                new XSLTAttributeDef[]{\n                                                  selectAttrDefDot,\n                                                  langAttr,\n                                                  dataTypeAttr,\n                                                  orderAttr,\n                                                  caseOrderAttr }, \n                                       new ProcessorTemplateElem(),\n                                                ElemSort.class/* class object */, 19, true );\n    XSLTElementDef xslWithParam = new XSLTElementDef(this,\n                                    Constants.S_XSLNAMESPACEURL,\n                                    \"with-param\", null /*alias */,\n                                    new XSLTAttributeDef[]{ nameAttrRequired,\n                                                            selectAttrOpt }, new ProcessorTemplateElem(),\n                                                                             ElemWithParam.class /* class object */, 19, true);\n    XSLTElementDef xslApplyTemplates = new XSLTElementDef(this,\n                                         Constants.S_XSLNAMESPACEURL,\n                                         \"apply-templates\", null /*alias */,\n                                         new XSLTElementDef[]{ xslSort,\n                                                               xslWithParam } /* elements */, new XSLTAttributeDef[]{\n                                                                 selectAttrDefNode,\n                                                                 modeAttr }, \n                                                                        new ProcessorTemplateElem(),\n                                         ElemApplyTemplates.class /* class object */, 20, true);\n    XSLTElementDef xslApplyImports =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, \"apply-imports\",\n                         null /*alias */, null /* elements */,\n                         new XSLTAttributeDef[]{},\n                         new ProcessorTemplateElem(),\n                         ElemApplyImport.class /* class object */);\n    XSLTElementDef xslForEach = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"for-each\",\n                                  new XSLTAttributeDef[]{ selectAttrRequired,\n                                                          spaceAttr }, \n                                               new ProcessorTemplateElem(),\n                                  ElemForEach.class /* class object */, true, false, true, 20, true);\n    XSLTElementDef xslIf = new XSLTElementDef(this,\n                                              Constants.S_XSLNAMESPACEURL,\n                                              \"if\", null /*alias */,\n                                              new XSLTAttributeDef[]{\n                                                testAttrRequired,\n                                                spaceAttr }, new ProcessorTemplateElem(),\n                                                             ElemIf.class /* class object */, 20, true);\n    XSLTElementDef xslWhen =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, \"when\",\n                                                new XSLTAttributeDef[]{\n                                                  testAttrRequired,\n                                                  spaceAttr }, new ProcessorTemplateElem(),\n                                                               ElemWhen.class /* class object */,\n                                                                                                false, true, 1, true);\n    XSLTElementDef xslOtherwise = new XSLTElementDef(this,\n                                    Constants.S_XSLNAMESPACEURL, \"otherwise\",\n                                    null /*alias */,\n                                    new XSLTAttributeDef[]{ spaceAttr },\n                                    new ProcessorTemplateElem(),\n                                    ElemOtherwise.class /* class object */,\n                                                       false, false, 2, false);\n    XSLTElementDef xslChoose = new XSLTElementDef(this,\n                                 Constants.S_XSLNAMESPACEURL, \"choose\",\n                                 null /*alias */,\n                                 new XSLTElementDef[]{ xslWhen,\n                                                       xslOtherwise } /* elements */, \n                                        new XSLTAttributeDef[]{ spaceAttr },\n                                 new ProcessorTemplateElem(),\n                                 ElemChoose.class /* class object */, true, false, true, 20, true);                                \n    XSLTElementDef xslAttribute = new XSLTElementDef(this,\n                                    Constants.S_XSLNAMESPACEURL, \"attribute\",\n                                    null /*alias */,\n                                    new XSLTAttributeDef[]{ nameAVTRequired,\n                                                            namespaceAVTOpt,\n                                                            spaceAttr }, \n                                    new ProcessorTemplateElem(),\n                                    ElemAttribute.class /* class object */, 20, true);\n    XSLTElementDef xslCallTemplate =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, \"call-template\",\n                         null /*alias */,\n                         new XSLTElementDef[]{ xslWithParam } /* elements */,\n                         new XSLTAttributeDef[]{ nameAttrRequired },\n                         new ProcessorTemplateElem(),\n                         ElemCallTemplate.class /* class object */, 20, true);\n    XSLTElementDef xslVariable = new XSLTElementDef(this,\n                                   Constants.S_XSLNAMESPACEURL, \"variable\",\n                                   null /*alias */,\n                                   new XSLTAttributeDef[]{ nameAttrRequired,\n                                                           selectAttrOpt }, \n                                  new ProcessorTemplateElem(),\n                                   ElemVariable.class /* class object */, 20, true);\n    XSLTElementDef xslParam = new XSLTElementDef(this,\n                                Constants.S_XSLNAMESPACEURL, \"param\",\n                                null /*alias */,\n                                new XSLTAttributeDef[]{ nameAttrRequired,\n                                                        selectAttrOpt }, \n                                       new ProcessorTemplateElem(),\n                                ElemParam.class /* class object */, 19, true);\n    XSLTElementDef xslText =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, \"text\",\n                         null /*alias */,\n                         new XSLTElementDef[]{ charData } /* elements */,\n                         new XSLTAttributeDef[]{ disableOutputEscapingAttr },\n                         new ProcessorText(),\n                         ElemText.class /* class object */, 20, true);\n    XSLTElementDef xslProcessingInstruction =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL,\n                         \"processing-instruction\", null /*alias */,\n                         new XSLTAttributeDef[]{\n                                                  nameAVT_NCNAMERequired,\n                                                  spaceAttr }, \n                                        new ProcessorTemplateElem(),\n                          ElemPI.class /* class object */, 20, true);\n    XSLTElementDef xslElement = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"element\",\n                                  null /*alias */,\n                                  new XSLTAttributeDef[]{ nameAVTRequired,\n                                                          namespaceAVTOpt,\n                                                          useAttributeSetsAttr,\n                                                          spaceAttr }, \n                                               new ProcessorTemplateElem(),\n                                  ElemElement.class /* class object */, 20, true);\n    XSLTElementDef xslComment = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"comment\",\n                                  null /*alias */,\n                                  new XSLTAttributeDef[]{ spaceAttr },\n                                  new ProcessorTemplateElem(),\n                                  ElemComment.class /* class object */, 20, true);\n    XSLTElementDef xslCopy =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, \"copy\",\n                          new XSLTAttributeDef[]{\n                                                  spaceAttr,\n                                                  useAttributeSetsAttr }, \n                                        new ProcessorTemplateElem(),\n                          ElemCopy.class /* class object */, 20, true);\n    XSLTElementDef xslMessage = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"message\",\n                                  null /*alias */,\n                                  new XSLTAttributeDef[]{ terminateAttr },\n                                  new ProcessorTemplateElem(),\n                                  ElemMessage.class /* class object */, 20, true);\n    XSLTElementDef xslFallback = new XSLTElementDef(this,\n                                   Constants.S_XSLNAMESPACEURL, \"fallback\",\n                                   null /*alias */,\n                                   new XSLTAttributeDef[]{ spaceAttr },\n                                   new ProcessorTemplateElem(),\n                                   ElemFallback.class /* class object */, 20, true);\n    XSLTElementDef exsltFunction =\n                                  new XSLTElementDef(this, \n                                  Constants.S_EXSLT_FUNCTIONS_URL, \n                                  \"function\",\n                                  null /*alias */,\n                                  exsltFunctionElements /* elements */,\n                                  new XSLTAttributeDef[]{ nameAttrRequired },\n                                  new ProcessorExsltFunction(),\n                                  ElemExsltFunction.class /* class object */);\n    XSLTElementDef exsltResult =\n                                  new XSLTElementDef(this, \n                                  Constants.S_EXSLT_FUNCTIONS_URL, \n                                  \"result\",\n                                  null /*alias */,\n                                  templateElements /* elements */,\n                                  new XSLTAttributeDef[]{ selectAttrOpt },\n                                  new ProcessorExsltFuncResult(),\n                                  ElemExsltFuncResult.class  /* class object */);            \n    \n\n    int i = 0;\n\n\n    templateElements[i++] = xslApplyTemplates;\n    templateElements[i++] = xslCallTemplate;\n    templateElements[i++] = xslApplyImports;\n    templateElements[i++] = xslForEach;\n    templateElements[i++] = xslValueOf;\n    templateElements[i++] = xslCopyOf;\n    templateElements[i++] = xslNumber;\n    templateElements[i++] = xslChoose;\n    templateElements[i++] = xslIf;\n    templateElements[i++] = xslText;\n    templateElements[i++] = xslCopy;\n    templateElements[i++] = xslVariable;\n    templateElements[i++] = xslMessage;\n    templateElements[i++] = xslFallback;\n\n    templateElements[i++] = xslProcessingInstruction;\n    templateElements[i++] = xslComment;\n    templateElements[i++] = xslElement;\n    templateElements[i++] = xslAttribute;\n    templateElements[i++] = resultElement;\n    templateElements[i++] = unknownElement;\n    templateElements[i++] = exsltResult;\n\n    int k;\n\n    for (k = 0; k < i; k++)\n    {\n      templateElementsAndParams[k] = templateElements[k];\n      templateElementsAndSort[k] = templateElements[k];\n      exsltFunctionElements[k]     = templateElements[k];\n\n    }\n\n    templateElementsAndParams[k] = xslParam;\n    templateElementsAndSort[k] = xslSort;\n    exsltFunctionElements[k]   = xslParam;\n\n    i = 0;\n\n    charTemplateElements[i++] = xslApplyTemplates;\n    charTemplateElements[i++] = xslCallTemplate;\n    charTemplateElements[i++] = xslApplyImports;\n    charTemplateElements[i++] = xslForEach;\n    charTemplateElements[i++] = xslValueOf;\n    charTemplateElements[i++] = xslCopyOf;\n    charTemplateElements[i++] = xslNumber;\n    charTemplateElements[i++] = xslChoose;\n    charTemplateElements[i++] = xslIf;\n    charTemplateElements[i++] = xslText;\n    charTemplateElements[i++] = xslCopy;\n    charTemplateElements[i++] = xslVariable;\n    charTemplateElements[i++] = xslMessage;\n    charTemplateElements[i++] = xslFallback;\n\n    XSLTElementDef importDef = new XSLTElementDef(this,\n                                 Constants.S_XSLNAMESPACEURL, \"import\",\n                                 null /*alias */, null /* elements */,\n                                 new ProcessorImport(),\n                                 null /* class object */,\n                                        1, true);\n    XSLTElementDef includeDef = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"include\",\n                                  new XSLTAttributeDef[]{ hrefAttr },\n                                  new ProcessorInclude(),\n                                  null /* class object */,\n                                               20, true);\n    XSLTElementDef[] topLevelElements = new XSLTElementDef[]\n                                 {includeDef,\n                                  importDef,\n                                  whiteSpaceOnly,\n                                  unknownElement,\n                                  new XSLTElementDef(\n                                         this,\n                                         Constants.S_XSLNAMESPACEURL,\n                                         \"strip-space\",\n                                         null /*alias */,\n                                         null /* elements */,\n                                         new XSLTAttributeDef[]{\n                                                elementsAttr },\n                                                new ProcessorStripSpace(),\n                                         null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                         this,\n                                         Constants.S_XSLNAMESPACEURL,\n                                         \"preserve-space\",\n                                         null /*alias */,\n                                         null /* elements */,\n                                         new XSLTAttributeDef[]{\n                                                 elementsAttr },\n                                                 new ProcessorPreserveSpace(),\n                                         null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                         this,\n                                         Constants.S_XSLNAMESPACEURL,\n                                         \"output\",\n                                         null /*alias */,\n                                         null /* elements */,\n                                         new XSLTAttributeDef[]{\n                                                  methodAttr,\n                                                  versionAttr,\n                                                  encodingAttr,\n                                                  omitXmlDeclarationAttr,\n                                                  standaloneAttr,\n                                                  doctypePublicAttr,\n                                                  doctypeSystemAttr,\n                                                  cdataSectionElementsAttr,\n                                                  indentAttr,\n                                                  mediaTypeAttr,\n                                                  XSLTAttributeDef.m_foreignAttr }, \n                                          new ProcessorOutputElem(), null /* class object */, 20, true), \n                                  new XSLTElementDef(\n                                          this,\n                                          Constants.S_XSLNAMESPACEURL,\n                                          \"key\",\n                                          null /*alias */,\n                                          new XSLTAttributeDef[]{ nameAttrRequired,\n                                                  matchAttrRequired,\n                                                  useAttr }, \n                                          new ProcessorKey(), null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                          this,\n                                          Constants.S_XSLNAMESPACEURL,\n                                          \"decimal-format\",\n                                          null /*alias */,\n                                          new XSLTAttributeDef[]{\n                                                  nameAttrOpt_ERROR,\n                                                  decimalSeparatorAttr,\n                                                  groupingSeparatorAttr,\n                                                  infinityAttr,\n                                                  minusSignAttr,\n                                                  NaNAttr,\n                                                  percentAttr,\n                                                  perMilleAttr,\n                                                  zeroDigitAttr,\n                                                  digitAttr,\n                                                  patternSeparatorAttr }, \n                                           new ProcessorDecimalFormat(),\n                                           null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_XSLNAMESPACEURL,\n                                           \"attribute-set\",\n                                           null /*alias */,\n                                           new XSLTElementDef[]{\n                                                   xslAttribute } /* elements */,\n                                           new XSLTAttributeDef[]{\n                                                   nameAttrRequired,\n                                                   useAttributeSetsAttr }, \n                                           new ProcessorAttributeSet(),\n                                           null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_XSLNAMESPACEURL,\n                                           \"variable\",\n                                           null /*alias */,\n                                           templateElements /* elements */,\n                                           new XSLTAttributeDef[]{\n                                                   nameAttrRequired,\n                                                   selectAttrOpt }, \n                                           new ProcessorGlobalVariableDecl(),\n                                           ElemVariable.class /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_XSLNAMESPACEURL,\n                                           \"param\",\n                                           null /*alias */,\n                                           templateElements /* elements */,\n                                           new XSLTAttributeDef[]{\n                                                   nameAttrRequired,\n                                                   selectAttrOpt }, \n                                           new ProcessorGlobalParamDecl(),\n                                           ElemParam.class /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_XSLNAMESPACEURL,\n                                           \"template\",\n                                           null /*alias */,\n                                           templateElementsAndParams /* elements */,\n                                           new XSLTAttributeDef[]{\n                                                   matchAttrOpt,\n                                                   nameAttrOpt_ERROR,\n                                                   priorityAttr,\n                                                   modeAttr,\n                                                   spaceAttr }, \n                                           new ProcessorTemplate(), ElemTemplate.class /* class object */, true, 20, true), \n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_XSLNAMESPACEURL,\n                                           \"namespace-alias\",\n                                           null /*alias */,\n                                           new XSLTAttributeDef[]{ \n                                                   stylesheetPrefixAttr,\n                                                   resultPrefixAttr }, \n                                           new ProcessorNamespaceAlias(), null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_BUILTIN_EXTENSIONS_URL,\n                                           \"component\",\n                                           null /*alias */,\n                                           new XSLTElementDef[]{\n\t\t\t\t\t\t\t\t\t  new XSLTElementDef(\n                                                        this,\n                                                        Constants.S_BUILTIN_EXTENSIONS_URL,\n                                                        \"script\",\n                                                        null /*alias */,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew XSLTElementDef[]{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew XSLTAttributeDef[]{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew XSLTAttributeDef(\n                                                                null,\n                                                                \"lang\",\n                                                                XSLTAttributeDef.T_NMTOKEN,\n                                                                true, false,XSLTAttributeDef.WARNING),\n                                                            new XSLTAttributeDef(\n                                                                null, \"src\", XSLTAttributeDef.T_URL, false, false,XSLTAttributeDef.WARNING) , \n                                                                new ProcessorLRE(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew XSLTAttributeDef[]{ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew XSLTAttributeDef(\n                                                                    null, \"prefix\", XSLTAttributeDef.T_NMTOKEN, true, false,XSLTAttributeDef.WARNING),\n                                                                new XSLTAttributeDef(\n                                                                    null, \"elements\", XSLTAttributeDef.T_STRINGLIST, false, false,XSLTAttributeDef.WARNING),\n                                                                new XSLTAttributeDef(null, \"functions\", XSLTAttributeDef.T_STRINGLIST, false, false,XSLTAttributeDef.WARNING),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ProcessorLRE(), ElemExtensionDecl.class\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t  }\n\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t };\n    XSLTAttributeDef excludeResultPrefixesAttr =\n      new XSLTAttributeDef(null, \"exclude-result-prefixes\",\n                           XSLTAttributeDef.T_STRINGLIST, false,false,XSLTAttributeDef.WARNING);\n    XSLTAttributeDef extensionElementPrefixesAttr =\n      new XSLTAttributeDef(null, \"extension-element-prefixes\",\n                           XSLTAttributeDef.T_PREFIX_URLLIST, false,false,XSLTAttributeDef.WARNING);\n    XSLTAttributeDef idAttr = new XSLTAttributeDef(null, \"id\",\n                                XSLTAttributeDef.T_CDATA, false,false,XSLTAttributeDef.WARNING);\n    XSLTAttributeDef versionAttrRequired = new XSLTAttributeDef(null,\n                                             \"version\",\n                                             XSLTAttributeDef.T_NMTOKEN,\n                                             true,false,XSLTAttributeDef.WARNING);\n    XSLTElementDef stylesheetElemDef = new XSLTElementDef(this,\n                                         Constants.S_XSLNAMESPACEURL,\n                                         \"stylesheet\", \"transform\",\n                                         topLevelElements,\n                                         new XSLTAttributeDef[]{\n                                           extensionElementPrefixesAttr,\n                                           excludeResultPrefixesAttr,\n                                           idAttr,\n                                           versionAttrRequired,\n                                           spaceAttr }, new ProcessorStylesheetElement(),  /* ContentHandler */\n                                         null  /* class object */,\n                                         true, -1, false);\n\n    importDef.setElements(new XSLTElementDef[]{ stylesheetElemDef,\n                                                resultElement,\n                                                unknownElement });\n    includeDef.setElements(new XSLTElementDef[]{ stylesheetElemDef,\n                                                 resultElement,\n                                                 unknownElement });\n    build(null, null, null, new XSLTElementDef[]{ stylesheetElemDef,\n                                                  whiteSpaceOnly,\n                                                  resultElement,\n                                                  unknownElement }, null,\n                                                                    new ProcessorStylesheetDoc(),  /* ContentHandler */\n                                                                    null  /* class object */\n                                                                      );\n  }\n\n  /**\n   * A hashtable of all available built-in elements for use by the element-available\n   * function.\n   * TODO:  When we convert to Java2, this should be a Set.\n   */\n  private Hashtable m_availElems = new Hashtable();\n  \n  /**\n   * Get the table of available elements.\n   * \n   * @return table of available elements, keyed by qualified names, and with \n   * values of the same qualified names.\n   */\n  public Hashtable getElemsAvailable() \n  {\n    return m_availElems;\n  }\n\n  /**\n   * Adds a new element name to the Hashtable of available elements.\n   * @param elemName The name of the element to add to the Hashtable of available elements.\n   */\n  void addAvailableElement(QName elemName)\n  {\n    m_availElems.put(elemName, elemName);\n  }\n\n  /**\n   * Determines whether the passed element name is present in the list of available elements.\n   * @param elemName The name of the element to look up.\n   *\n   * @return true if an element corresponding to elemName is available.\n   */\n  public boolean elementAvailable(QName elemName)\n  {\n    return m_availElems.containsKey(elemName);", "functions": [{"function_name": "build", "code": "  void build()\n  {\n    XSLTAttributeDef hrefAttr = new XSLTAttributeDef(null, \"href\",\n                                  XSLTAttributeDef.T_URL, true, false,XSLTAttributeDef.ERROR);\n                                  \n    XSLTAttributeDef elementsAttr = new XSLTAttributeDef(null, \"elements\",\n                                      XSLTAttributeDef.T_SIMPLEPATTERNLIST,\n                                      true, false, XSLTAttributeDef.ERROR);\n                                      \n    \n    XSLTAttributeDef methodAttr = new XSLTAttributeDef(null, \"method\",\n                                    XSLTAttributeDef.T_QNAME, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef versionAttr = new XSLTAttributeDef(null, \"version\",\n                                     XSLTAttributeDef.T_NMTOKEN, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef encodingAttr = new XSLTAttributeDef(null, \"encoding\",\n                                      XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef omitXmlDeclarationAttr = new XSLTAttributeDef(null,\n                                                \"omit-xml-declaration\",\n                                                XSLTAttributeDef.T_YESNO,\n                                                false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef standaloneAttr = new XSLTAttributeDef(null,\n                                        \"standalone\",\n                                        XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef doctypePublicAttr = new XSLTAttributeDef(null,\n                                           \"doctype-public\",\n                                           XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef doctypeSystemAttr = new XSLTAttributeDef(null,\n                                           \"doctype-system\",\n                                           XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef cdataSectionElementsAttr = new XSLTAttributeDef(null,\n                                                  \"cdata-section-elements\",\n                                                  XSLTAttributeDef.T_QNAMES_RESOLVE_NULL,\n                                                  false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef indentAttr = new XSLTAttributeDef(null, \"indent\",\n                                    XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef mediaTypeAttr = new XSLTAttributeDef(null, \"media-type\",\n                                       XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.ERROR);\n                                       \n                  \n    XSLTAttributeDef nameAttrRequired = new XSLTAttributeDef(null, \"name\",\n                                          XSLTAttributeDef.T_QNAME, true, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef nameAVTRequired = new XSLTAttributeDef(null, \"name\",\n                                         XSLTAttributeDef.T_AVT_QNAME, true, true,XSLTAttributeDef.WARNING);\n            \n\n    XSLTAttributeDef nameAVT_NCNAMERequired = new XSLTAttributeDef(null, \"name\",\n                                         XSLTAttributeDef.T_NCNAME, true, true,XSLTAttributeDef.WARNING);\n                                        \n    XSLTAttributeDef nameAttrOpt_ERROR = new XSLTAttributeDef(null, \"name\",\n                                     XSLTAttributeDef.T_QNAME, false, false,XSLTAttributeDef.ERROR);\n\n    XSLTAttributeDef useAttr = new XSLTAttributeDef(null, \"use\",\n                                 XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.ERROR);\n           \n    XSLTAttributeDef namespaceAVTOpt = new XSLTAttributeDef(null,\n                                         \"namespace\",XSLTAttributeDef.T_URL,\n                                         false, true,XSLTAttributeDef.WARNING);\n    XSLTAttributeDef decimalSeparatorAttr = new XSLTAttributeDef(null,\n                                              \"decimal-separator\",\n                                              XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, \".\");\n    XSLTAttributeDef infinityAttr = new XSLTAttributeDef(null, \"infinity\",\n                                      XSLTAttributeDef.T_CDATA, false,XSLTAttributeDef.ERROR,\"Infinity\");\n    XSLTAttributeDef minusSignAttr = new XSLTAttributeDef(null, \"minus-sign\",\n                                       XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR,\"-\");\n    XSLTAttributeDef NaNAttr = new XSLTAttributeDef(null, \"NaN\",\n                                 XSLTAttributeDef.T_CDATA, false,XSLTAttributeDef.ERROR, \"NaN\");\n    XSLTAttributeDef percentAttr = new XSLTAttributeDef(null, \"percent\",\n                                     XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, \"%\");\n    XSLTAttributeDef perMilleAttr = new XSLTAttributeDef(null, \"per-mille\",\n                                      XSLTAttributeDef.T_CHAR,\n                                      false, false,XSLTAttributeDef.ERROR /* ,\"&#x2030;\" */);\n    XSLTAttributeDef zeroDigitAttr = new XSLTAttributeDef(null, \"zero-digit\",\n                                       XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, \"0\");\n    XSLTAttributeDef digitAttr = new XSLTAttributeDef(null, \"digit\",\n                                   XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, \"#\");\n    XSLTAttributeDef patternSeparatorAttr = new XSLTAttributeDef(null,\n                                              \"pattern-separator\",\n                                              XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, \";\");\n    XSLTAttributeDef groupingSeparatorAttr = new XSLTAttributeDef(null,\n                                               \"grouping-separator\",\n                                               XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR,\",\");\n\n                                              \n    XSLTAttributeDef useAttributeSetsAttr = new XSLTAttributeDef(null,\n                                              \"use-attribute-sets\",\n                                              XSLTAttributeDef.T_QNAMES,\n                                              false, false, XSLTAttributeDef.ERROR);\n\n    XSLTAttributeDef testAttrRequired = new XSLTAttributeDef(null, \"test\",   \n                                          XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.ERROR);\n      \n      \n    XSLTAttributeDef selectAttrRequired = new XSLTAttributeDef(null,\n                                            \"select\",\n                                            XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.ERROR);\n\n    XSLTAttributeDef selectAttrOpt = new XSLTAttributeDef(null, \"select\",\n                                       XSLTAttributeDef.T_EXPR, false, false,XSLTAttributeDef.ERROR);\n\n    XSLTAttributeDef selectAttrDefNode = new XSLTAttributeDef(null, \"select\",\n                                           XSLTAttributeDef.T_EXPR, false,XSLTAttributeDef.ERROR, \"node()\");\n    XSLTAttributeDef selectAttrDefDot = new XSLTAttributeDef(null, \"select\",\n                                          XSLTAttributeDef.T_EXPR, false,XSLTAttributeDef.ERROR, \".\");\n    XSLTAttributeDef matchAttrRequired = new XSLTAttributeDef(null, \"match\",\n                                           XSLTAttributeDef.T_PATTERN, true, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef matchAttrOpt = new XSLTAttributeDef(null, \"match\",\n                                      XSLTAttributeDef.T_PATTERN, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef priorityAttr = new XSLTAttributeDef(null, \"priority\",\n                                     XSLTAttributeDef.T_NUMBER, false, false,XSLTAttributeDef.ERROR);\n                                     \n    XSLTAttributeDef modeAttr = new XSLTAttributeDef(null, \"mode\",\n                                     XSLTAttributeDef.T_QNAME, false, false,XSLTAttributeDef.ERROR);\n   \n    XSLTAttributeDef spaceAttr =\n      new XSLTAttributeDef(Constants.S_XMLNAMESPACEURI, \"space\", false, false, false, XSLTAttributeDef.WARNING,\n                           \"default\", Constants.ATTRVAL_STRIP, \"preserve\",\n                           Constants.ATTRVAL_PRESERVE);\n                           \n                         \n    XSLTAttributeDef spaceAttrLiteral =\n      new XSLTAttributeDef(Constants.S_XMLNAMESPACEURI, \"space\", \n                                          XSLTAttributeDef.T_URL, false, true,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef stylesheetPrefixAttr = new XSLTAttributeDef(null,\n                                              \"stylesheet-prefix\",\n                                              XSLTAttributeDef.T_CDATA, true, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef resultPrefixAttr = new XSLTAttributeDef(null,\n                                          \"result-prefix\",\n                                          XSLTAttributeDef.T_CDATA, true, false,XSLTAttributeDef.ERROR);\n                                          \n    XSLTAttributeDef disableOutputEscapingAttr = new XSLTAttributeDef(null,\n                                                   \"disable-output-escaping\",\n                                                   XSLTAttributeDef.T_YESNO,\n                                                   false, false,XSLTAttributeDef.ERROR);\n                                                   \n    XSLTAttributeDef levelAttr = new XSLTAttributeDef(null, \"level\", false, false, false, XSLTAttributeDef.ERROR,\n                                   \"single\", Constants.NUMBERLEVEL_SINGLE,\n                                   \"multiple\", Constants.NUMBERLEVEL_MULTI,\n                                   \"any\", Constants.NUMBERLEVEL_ANY);\n    levelAttr.setDefault(\"single\");\n    XSLTAttributeDef countAttr = new XSLTAttributeDef(null, \"count\",\n                                   XSLTAttributeDef.T_PATTERN, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef fromAttr = new XSLTAttributeDef(null, \"from\",\n                                  XSLTAttributeDef.T_PATTERN, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef valueAttr = new XSLTAttributeDef(null, \"value\",\n                                   XSLTAttributeDef.T_EXPR, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef formatAttr = new XSLTAttributeDef(null, \"format\",\n                                    XSLTAttributeDef.T_CDATA, false, true,XSLTAttributeDef.ERROR);\n    formatAttr.setDefault(\"1\");\n    \n    XSLTAttributeDef langAttr = new XSLTAttributeDef(null, \"lang\",\n                                  XSLTAttributeDef.T_NMTOKEN, false, true,XSLTAttributeDef.ERROR);\n   \n    XSLTAttributeDef letterValueAttr = new XSLTAttributeDef(null,\n                                         \"letter-value\",\n                                         false, true, false, XSLTAttributeDef.ERROR,\n                                         \"alphabetic\", Constants.NUMBERLETTER_ALPHABETIC,\n                                         \"traditional\", Constants.NUMBERLETTER_TRADITIONAL);\n    XSLTAttributeDef groupingSeparatorAVT = new XSLTAttributeDef(null,\n                                              \"grouping-separator\",\n                                              XSLTAttributeDef.T_CHAR, false, true,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef groupingSizeAttr = new XSLTAttributeDef(null,\n                                          \"grouping-size\",\n                                          XSLTAttributeDef.T_NUMBER, false, true,XSLTAttributeDef.ERROR);\n   \n    XSLTAttributeDef dataTypeAttr = new XSLTAttributeDef(null, \"data-type\", false, true, true, XSLTAttributeDef.ERROR,\n                                    \"text\", Constants.SORTDATATYPE_TEXT ,\"number\", Constants.SORTDATATYPE_TEXT);\n\tdataTypeAttr.setDefault(\"text\");\n\t\n    XSLTAttributeDef orderAttr = new XSLTAttributeDef(null, \"order\", false, true, false,XSLTAttributeDef.ERROR,\n                                    \"ascending\", Constants.SORTORDER_ASCENDING, \n                                    \"descending\", Constants.SORTORDER_DESCENDING);\n    orderAttr.setDefault(\"ascending\");\n\n    XSLTAttributeDef caseOrderAttr = new XSLTAttributeDef(null, \"case-order\", false, true, false,XSLTAttributeDef.ERROR,\n                                       \"upper-first\", Constants.SORTCASEORDER_UPPERFIRST ,\n                                       \"lower-first\", Constants.SORTCASEORDER_LOWERFIRST);\n\t    \n    XSLTAttributeDef terminateAttr = new XSLTAttributeDef(null, \"terminate\",\n                                       XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.ERROR);\n    terminateAttr.setDefault(\"no\");\n\n    XSLTAttributeDef xslExcludeResultPrefixesAttr =\n      new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL,\n                           \"exclude-result-prefixes\",\n                           XSLTAttributeDef.T_STRINGLIST, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef xslExtensionElementPrefixesAttr =\n      new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL,\n                           \"extension-element-prefixes\",\n                           XSLTAttributeDef.T_PREFIX_URLLIST, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef xslUseAttributeSetsAttr =\n      new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, \"use-attribute-sets\",\n                           XSLTAttributeDef.T_QNAMES, false, false,XSLTAttributeDef.ERROR);\n    XSLTAttributeDef xslVersionAttr =\n      new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, \"version\",\n                           XSLTAttributeDef.T_NMTOKEN, false, false,XSLTAttributeDef.ERROR);\n                           \n    XSLTElementDef charData = new XSLTElementDef(this, null, \"text()\",\n                                null /*alias */, null /* elements */, null,  /* attributes */\n                                new ProcessorCharacters(),\n                                ElemTextLiteral.class /* class object */);\n\n    charData.setType(XSLTElementDef.T_PCDATA);\n\n    XSLTElementDef whiteSpaceOnly = new XSLTElementDef(this, null, \"text()\",\n                                      null /*alias */, null /* elements */,\n                                      null,  /* attributes */\n                                      null,\n                                      ElemTextLiteral.class /* should be null? -sb */);\n\n    charData.setType(XSLTElementDef.T_PCDATA);\n\n    XSLTAttributeDef resultAttr = new XSLTAttributeDef(null, \"*\",\n                                    XSLTAttributeDef.T_AVT, false, true,XSLTAttributeDef.WARNING);\n    XSLTAttributeDef xslResultAttr =\n      new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, \"*\",\n                           XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.WARNING);\n                           \n    XSLTElementDef[] templateElements = new XSLTElementDef[22];\n    XSLTElementDef[] templateElementsAndParams = new XSLTElementDef[23];\n    XSLTElementDef[] templateElementsAndSort = new XSLTElementDef[23];\n    XSLTElementDef[] exsltFunctionElements = new XSLTElementDef[23];\n    \n    XSLTElementDef[] charTemplateElements = new XSLTElementDef[15];\n    XSLTElementDef resultElement = new XSLTElementDef(this, null, \"*\",\n                                     null /*alias */,\n                                     templateElements /* elements */,\n                                     new XSLTAttributeDef[]{\n                                       xslExcludeResultPrefixesAttr,\n                                       xslExtensionElementPrefixesAttr,\n                                       xslUseAttributeSetsAttr,\n                                       xslVersionAttr,\n                                       xslResultAttr,\n                                       resultAttr }, \n                                        new ProcessorLRE(),\n                                     ElemLiteralResult.class /* class object */, 20, true);\n    XSLTElementDef unknownElement =\n      new XSLTElementDef(this, \"*\", \"unknown\", null /*alias */,\n                         templateElementsAndParams /* elements */,\n                         new XSLTAttributeDef[]{ xslExcludeResultPrefixesAttr,\n                                                 xslExtensionElementPrefixesAttr,\n                                                 xslUseAttributeSetsAttr,\n                                                 xslVersionAttr,\n                                                 xslResultAttr,\n                                                 resultAttr }, \n                                                                                                 new ProcessorUnknown(),\n                         ElemUnknown.class /* class object */, 20, true);\n    XSLTElementDef xslValueOf = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"value-of\",\n                                  null /*alias */, null /* elements */,\n                                  new XSLTAttributeDef[]{ selectAttrRequired,\n                                                          disableOutputEscapingAttr }, \n                                               new ProcessorTemplateElem(),\n                                  ElemValueOf.class /* class object */, 20, true);\n    XSLTElementDef xslCopyOf = new XSLTElementDef(this,\n                                 Constants.S_XSLNAMESPACEURL, \"copy-of\",\n                                 null /*alias */, null /* elements */,\n                                 new XSLTAttributeDef[]{ selectAttrRequired },\n                                 new ProcessorTemplateElem(),\n                                 ElemCopyOf.class /* class object */, 20, true);\n    XSLTElementDef xslNumber = new XSLTElementDef(this,\n                                 Constants.S_XSLNAMESPACEURL, \"number\",\n                                 null /*alias */, null /* elements */,\n                                 new XSLTAttributeDef[]{ levelAttr,\n                                                         countAttr,\n                                                         fromAttr,\n                                                         valueAttr,\n                                                         formatAttr,\n                                                         langAttr,\n                                                         letterValueAttr,\n                                                         groupingSeparatorAVT,\n                                                         groupingSizeAttr }, \n                                        new ProcessorTemplateElem(),\n                                 ElemNumber.class /* class object */, 20, true);\n\n    XSLTElementDef xslSort = new XSLTElementDef(this,\n                                                Constants.S_XSLNAMESPACEURL,\n                                                \"sort\", null /*alias */,\n                                                null /* elements */,\n                                                new XSLTAttributeDef[]{\n                                                  selectAttrDefDot,\n                                                  langAttr,\n                                                  dataTypeAttr,\n                                                  orderAttr,\n                                                  caseOrderAttr }, \n                                       new ProcessorTemplateElem(),\n                                                ElemSort.class/* class object */, 19, true );\n    XSLTElementDef xslWithParam = new XSLTElementDef(this,\n                                    Constants.S_XSLNAMESPACEURL,\n                                    \"with-param\", null /*alias */,\n                                    new XSLTAttributeDef[]{ nameAttrRequired,\n                                                            selectAttrOpt }, new ProcessorTemplateElem(),\n                                                                             ElemWithParam.class /* class object */, 19, true);\n    XSLTElementDef xslApplyTemplates = new XSLTElementDef(this,\n                                         Constants.S_XSLNAMESPACEURL,\n                                         \"apply-templates\", null /*alias */,\n                                         new XSLTElementDef[]{ xslSort,\n                                                               xslWithParam } /* elements */, new XSLTAttributeDef[]{\n                                                                 selectAttrDefNode,\n                                                                 modeAttr }, \n                                                                        new ProcessorTemplateElem(),\n                                         ElemApplyTemplates.class /* class object */, 20, true);\n    XSLTElementDef xslApplyImports =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, \"apply-imports\",\n                         null /*alias */, null /* elements */,\n                         new XSLTAttributeDef[]{},\n                         new ProcessorTemplateElem(),\n                         ElemApplyImport.class /* class object */);\n    XSLTElementDef xslForEach = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"for-each\",\n                                  new XSLTAttributeDef[]{ selectAttrRequired,\n                                                          spaceAttr }, \n                                               new ProcessorTemplateElem(),\n                                  ElemForEach.class /* class object */, true, false, true, 20, true);\n    XSLTElementDef xslIf = new XSLTElementDef(this,\n                                              Constants.S_XSLNAMESPACEURL,\n                                              \"if\", null /*alias */,\n                                              new XSLTAttributeDef[]{\n                                                testAttrRequired,\n                                                spaceAttr }, new ProcessorTemplateElem(),\n                                                             ElemIf.class /* class object */, 20, true);\n    XSLTElementDef xslWhen =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, \"when\",\n                                                new XSLTAttributeDef[]{\n                                                  testAttrRequired,\n                                                  spaceAttr }, new ProcessorTemplateElem(),\n                                                               ElemWhen.class /* class object */,\n                                                                                                false, true, 1, true);\n    XSLTElementDef xslOtherwise = new XSLTElementDef(this,\n                                    Constants.S_XSLNAMESPACEURL, \"otherwise\",\n                                    null /*alias */,\n                                    new XSLTAttributeDef[]{ spaceAttr },\n                                    new ProcessorTemplateElem(),\n                                    ElemOtherwise.class /* class object */,\n                                                       false, false, 2, false);\n    XSLTElementDef xslChoose = new XSLTElementDef(this,\n                                 Constants.S_XSLNAMESPACEURL, \"choose\",\n                                 null /*alias */,\n                                 new XSLTElementDef[]{ xslWhen,\n                                                       xslOtherwise } /* elements */, \n                                        new XSLTAttributeDef[]{ spaceAttr },\n                                 new ProcessorTemplateElem(),\n                                 ElemChoose.class /* class object */, true, false, true, 20, true);                                \n    XSLTElementDef xslAttribute = new XSLTElementDef(this,\n                                    Constants.S_XSLNAMESPACEURL, \"attribute\",\n                                    null /*alias */,\n                                    new XSLTAttributeDef[]{ nameAVTRequired,\n                                                            namespaceAVTOpt,\n                                                            spaceAttr }, \n                                    new ProcessorTemplateElem(),\n                                    ElemAttribute.class /* class object */, 20, true);\n    XSLTElementDef xslCallTemplate =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, \"call-template\",\n                         null /*alias */,\n                         new XSLTElementDef[]{ xslWithParam } /* elements */,\n                         new XSLTAttributeDef[]{ nameAttrRequired },\n                         new ProcessorTemplateElem(),\n                         ElemCallTemplate.class /* class object */, 20, true);\n    XSLTElementDef xslVariable = new XSLTElementDef(this,\n                                   Constants.S_XSLNAMESPACEURL, \"variable\",\n                                   null /*alias */,\n                                   new XSLTAttributeDef[]{ nameAttrRequired,\n                                                           selectAttrOpt }, \n                                  new ProcessorTemplateElem(),\n                                   ElemVariable.class /* class object */, 20, true);\n    XSLTElementDef xslParam = new XSLTElementDef(this,\n                                Constants.S_XSLNAMESPACEURL, \"param\",\n                                null /*alias */,\n                                new XSLTAttributeDef[]{ nameAttrRequired,\n                                                        selectAttrOpt }, \n                                       new ProcessorTemplateElem(),\n                                ElemParam.class /* class object */, 19, true);\n    XSLTElementDef xslText =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, \"text\",\n                         null /*alias */,\n                         new XSLTElementDef[]{ charData } /* elements */,\n                         new XSLTAttributeDef[]{ disableOutputEscapingAttr },\n                         new ProcessorText(),\n                         ElemText.class /* class object */, 20, true);\n    XSLTElementDef xslProcessingInstruction =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL,\n                         \"processing-instruction\", null /*alias */,\n                         new XSLTAttributeDef[]{\n                                                  nameAVT_NCNAMERequired,\n                                                  spaceAttr }, \n                                        new ProcessorTemplateElem(),\n                          ElemPI.class /* class object */, 20, true);\n    XSLTElementDef xslElement = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"element\",\n                                  null /*alias */,\n                                  new XSLTAttributeDef[]{ nameAVTRequired,\n                                                          namespaceAVTOpt,\n                                                          useAttributeSetsAttr,\n                                                          spaceAttr }, \n                                               new ProcessorTemplateElem(),\n                                  ElemElement.class /* class object */, 20, true);\n    XSLTElementDef xslComment = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"comment\",\n                                  null /*alias */,\n                                  new XSLTAttributeDef[]{ spaceAttr },\n                                  new ProcessorTemplateElem(),\n                                  ElemComment.class /* class object */, 20, true);\n    XSLTElementDef xslCopy =\n      new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, \"copy\",\n                          new XSLTAttributeDef[]{\n                                                  spaceAttr,\n                                                  useAttributeSetsAttr }, \n                                        new ProcessorTemplateElem(),\n                          ElemCopy.class /* class object */, 20, true);\n    XSLTElementDef xslMessage = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"message\",\n                                  null /*alias */,\n                                  new XSLTAttributeDef[]{ terminateAttr },\n                                  new ProcessorTemplateElem(),\n                                  ElemMessage.class /* class object */, 20, true);\n    XSLTElementDef xslFallback = new XSLTElementDef(this,\n                                   Constants.S_XSLNAMESPACEURL, \"fallback\",\n                                   null /*alias */,\n                                   new XSLTAttributeDef[]{ spaceAttr },\n                                   new ProcessorTemplateElem(),\n                                   ElemFallback.class /* class object */, 20, true);\n    XSLTElementDef exsltFunction =\n                                  new XSLTElementDef(this, \n                                  Constants.S_EXSLT_FUNCTIONS_URL, \n                                  \"function\",\n                                  null /*alias */,\n                                  exsltFunctionElements /* elements */,\n                                  new XSLTAttributeDef[]{ nameAttrRequired },\n                                  new ProcessorExsltFunction(),\n                                  ElemExsltFunction.class /* class object */);\n    XSLTElementDef exsltResult =\n                                  new XSLTElementDef(this, \n                                  Constants.S_EXSLT_FUNCTIONS_URL, \n                                  \"result\",\n                                  null /*alias */,\n                                  templateElements /* elements */,\n                                  new XSLTAttributeDef[]{ selectAttrOpt },\n                                  new ProcessorExsltFuncResult(),\n                                  ElemExsltFuncResult.class  /* class object */);            \n    \n\n    int i = 0;\n\n\n    templateElements[i++] = xslApplyTemplates;\n    templateElements[i++] = xslCallTemplate;\n    templateElements[i++] = xslApplyImports;\n    templateElements[i++] = xslForEach;\n    templateElements[i++] = xslValueOf;\n    templateElements[i++] = xslCopyOf;\n    templateElements[i++] = xslNumber;\n    templateElements[i++] = xslChoose;\n    templateElements[i++] = xslIf;\n    templateElements[i++] = xslText;\n    templateElements[i++] = xslCopy;\n    templateElements[i++] = xslVariable;\n    templateElements[i++] = xslMessage;\n    templateElements[i++] = xslFallback;\n\n    templateElements[i++] = xslProcessingInstruction;\n    templateElements[i++] = xslComment;\n    templateElements[i++] = xslElement;\n    templateElements[i++] = xslAttribute;\n    templateElements[i++] = resultElement;\n    templateElements[i++] = unknownElement;\n    templateElements[i++] = exsltResult;\n\n    int k;\n\n    for (k = 0; k < i; k++)\n    {\n      templateElementsAndParams[k] = templateElements[k];\n      templateElementsAndSort[k] = templateElements[k];\n      exsltFunctionElements[k]     = templateElements[k];\n\n    }\n\n    templateElementsAndParams[k] = xslParam;\n    templateElementsAndSort[k] = xslSort;\n    exsltFunctionElements[k]   = xslParam;\n\n    i = 0;\n\n    charTemplateElements[i++] = xslApplyTemplates;\n    charTemplateElements[i++] = xslCallTemplate;\n    charTemplateElements[i++] = xslApplyImports;\n    charTemplateElements[i++] = xslForEach;\n    charTemplateElements[i++] = xslValueOf;\n    charTemplateElements[i++] = xslCopyOf;\n    charTemplateElements[i++] = xslNumber;\n    charTemplateElements[i++] = xslChoose;\n    charTemplateElements[i++] = xslIf;\n    charTemplateElements[i++] = xslText;\n    charTemplateElements[i++] = xslCopy;\n    charTemplateElements[i++] = xslVariable;\n    charTemplateElements[i++] = xslMessage;\n    charTemplateElements[i++] = xslFallback;\n\n    XSLTElementDef importDef = new XSLTElementDef(this,\n                                 Constants.S_XSLNAMESPACEURL, \"import\",\n                                 null /*alias */, null /* elements */,\n                                 new ProcessorImport(),\n                                 null /* class object */,\n                                        1, true);\n    XSLTElementDef includeDef = new XSLTElementDef(this,\n                                  Constants.S_XSLNAMESPACEURL, \"include\",\n                                  new XSLTAttributeDef[]{ hrefAttr },\n                                  new ProcessorInclude(),\n                                  null /* class object */,\n                                               20, true);\n    XSLTElementDef[] topLevelElements = new XSLTElementDef[]\n                                 {includeDef,\n                                  importDef,\n                                  whiteSpaceOnly,\n                                  unknownElement,\n                                  new XSLTElementDef(\n                                         this,\n                                         Constants.S_XSLNAMESPACEURL,\n                                         \"strip-space\",\n                                         null /*alias */,\n                                         null /* elements */,\n                                         new XSLTAttributeDef[]{\n                                                elementsAttr },\n                                                new ProcessorStripSpace(),\n                                         null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                         this,\n                                         Constants.S_XSLNAMESPACEURL,\n                                         \"preserve-space\",\n                                         null /*alias */,\n                                         null /* elements */,\n                                         new XSLTAttributeDef[]{\n                                                 elementsAttr },\n                                                 new ProcessorPreserveSpace(),\n                                         null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                         this,\n                                         Constants.S_XSLNAMESPACEURL,\n                                         \"output\",\n                                         null /*alias */,\n                                         null /* elements */,\n                                         new XSLTAttributeDef[]{\n                                                  methodAttr,\n                                                  versionAttr,\n                                                  encodingAttr,\n                                                  omitXmlDeclarationAttr,\n                                                  standaloneAttr,\n                                                  doctypePublicAttr,\n                                                  doctypeSystemAttr,\n                                                  cdataSectionElementsAttr,\n                                                  indentAttr,\n                                                  mediaTypeAttr,\n                                                  XSLTAttributeDef.m_foreignAttr }, \n                                          new ProcessorOutputElem(), null /* class object */, 20, true), \n                                  new XSLTElementDef(\n                                          this,\n                                          Constants.S_XSLNAMESPACEURL,\n                                          \"key\",\n                                          null /*alias */,\n                                          new XSLTAttributeDef[]{ nameAttrRequired,\n                                                  matchAttrRequired,\n                                                  useAttr }, \n                                          new ProcessorKey(), null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                          this,\n                                          Constants.S_XSLNAMESPACEURL,\n                                          \"decimal-format\",\n                                          null /*alias */,\n                                          new XSLTAttributeDef[]{\n                                                  nameAttrOpt_ERROR,\n                                                  decimalSeparatorAttr,\n                                                  groupingSeparatorAttr,\n                                                  infinityAttr,\n                                                  minusSignAttr,\n                                                  NaNAttr,\n                                                  percentAttr,\n                                                  perMilleAttr,\n                                                  zeroDigitAttr,\n                                                  digitAttr,\n                                                  patternSeparatorAttr }, \n                                           new ProcessorDecimalFormat(),\n                                           null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_XSLNAMESPACEURL,\n                                           \"attribute-set\",\n                                           null /*alias */,\n                                           new XSLTElementDef[]{\n                                                   xslAttribute } /* elements */,\n                                           new XSLTAttributeDef[]{\n                                                   nameAttrRequired,\n                                                   useAttributeSetsAttr }, \n                                           new ProcessorAttributeSet(),\n                                           null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_XSLNAMESPACEURL,\n                                           \"variable\",\n                                           null /*alias */,\n                                           templateElements /* elements */,\n                                           new XSLTAttributeDef[]{\n                                                   nameAttrRequired,\n                                                   selectAttrOpt }, \n                                           new ProcessorGlobalVariableDecl(),\n                                           ElemVariable.class /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_XSLNAMESPACEURL,\n                                           \"param\",\n                                           null /*alias */,\n                                           templateElements /* elements */,\n                                           new XSLTAttributeDef[]{\n                                                   nameAttrRequired,\n                                                   selectAttrOpt }, \n                                           new ProcessorGlobalParamDecl(),\n                                           ElemParam.class /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_XSLNAMESPACEURL,\n                                           \"template\",\n                                           null /*alias */,\n                                           templateElementsAndParams /* elements */,\n                                           new XSLTAttributeDef[]{\n                                                   matchAttrOpt,\n                                                   nameAttrOpt_ERROR,\n                                                   priorityAttr,\n                                                   modeAttr,\n                                                   spaceAttr }, \n                                           new ProcessorTemplate(), ElemTemplate.class /* class object */, true, 20, true), \n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_XSLNAMESPACEURL,\n                                           \"namespace-alias\",\n                                           null /*alias */,\n                                           new XSLTAttributeDef[]{ \n                                                   stylesheetPrefixAttr,\n                                                   resultPrefixAttr }, \n                                           new ProcessorNamespaceAlias(), null /* class object */, 20, true),\n                                  new XSLTElementDef(\n                                           this,\n                                           Constants.S_BUILTIN_EXTENSIONS_URL,\n                                           \"component\",\n                                           null /*alias */,\n                                           new XSLTElementDef[]{\n\t\t\t\t\t\t\t\t\t  new XSLTElementDef(\n                                                        this,\n                                                        Constants.S_BUILTIN_EXTENSIONS_URL,\n                                                        \"script\",\n                                                        null /*alias */,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew XSLTElementDef[]{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew XSLTAttributeDef[]{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew XSLTAttributeDef(\n                                                                null,\n                                                                \"lang\",\n                                                                XSLTAttributeDef.T_NMTOKEN,\n                                                                true, false,XSLTAttributeDef.WARNING),\n                                                            new XSLTAttributeDef(\n                                                                null, \"src\", XSLTAttributeDef.T_URL, false, false,XSLTAttributeDef.WARNING) , \n                                                                new ProcessorLRE(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew XSLTAttributeDef[]{ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew XSLTAttributeDef(\n                                                                    null, \"prefix\", XSLTAttributeDef.T_NMTOKEN, true, false,XSLTAttributeDef.WARNING),\n                                                                new XSLTAttributeDef(\n                                                                    null, \"elements\", XSLTAttributeDef.T_STRINGLIST, false, false,XSLTAttributeDef.WARNING),\n                                                                new XSLTAttributeDef(null, \"functions\", XSLTAttributeDef.T_STRINGLIST, false, false,XSLTAttributeDef.WARNING),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ProcessorLRE(), ElemExtensionDecl.class\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t  }\n\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t };\n    XSLTAttributeDef excludeResultPrefixesAttr =\n      new XSLTAttributeDef(null, \"exclude-result-prefixes\",\n                           XSLTAttributeDef.T_STRINGLIST, false,false,XSLTAttributeDef.WARNING);\n    XSLTAttributeDef extensionElementPrefixesAttr =\n      new XSLTAttributeDef(null, \"extension-element-prefixes\",\n                           XSLTAttributeDef.T_PREFIX_URLLIST, false,false,XSLTAttributeDef.WARNING);\n    XSLTAttributeDef idAttr = new XSLTAttributeDef(null, \"id\",\n                                XSLTAttributeDef.T_CDATA, false,false,XSLTAttributeDef.WARNING);\n    XSLTAttributeDef versionAttrRequired = new XSLTAttributeDef(null,\n                                             \"version\",\n                                             XSLTAttributeDef.T_NMTOKEN,\n                                             true,false,XSLTAttributeDef.WARNING);\n    XSLTElementDef stylesheetElemDef = new XSLTElementDef(this,\n                                         Constants.S_XSLNAMESPACEURL,\n                                         \"stylesheet\", \"transform\",\n                                         topLevelElements,\n                                         new XSLTAttributeDef[]{\n                                           extensionElementPrefixesAttr,\n                                           excludeResultPrefixesAttr,\n                                           idAttr,\n                                           versionAttrRequired,\n                                           spaceAttr }, new ProcessorStylesheetElement(),  /* ContentHandler */\n                                         null  /* class object */,\n                                         true, -1, false);\n\n    importDef.setElements(new XSLTElementDef[]{ stylesheetElemDef,\n                                                resultElement,\n                                                unknownElement });\n    includeDef.setElements(new XSLTElementDef[]{ stylesheetElemDef,\n                                                 resultElement,\n                                                 unknownElement });\n    build(null, null, null, new XSLTElementDef[]{ stylesheetElemDef,\n                                                  whiteSpaceOnly,\n                                                  resultElement,\n                                                  unknownElement }, null,\n                                                                    new ProcessorStylesheetDoc(),  /* ContentHandler */\n                                                                    null  /* class object */", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [0, 54], [0, 55], [0, 56], [0, 57], [0, 58], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 64], [0, 65], [0, 66], [0, 67], [0, 68], [0, 69], [0, 70], [0, 71], [0, 72], [0, 73], [0, 74], [0, 75], [0, 76], [0, 77], [0, 78], [0, 79], [0, 80], [0, 81], [0, 82], [0, 83], [0, 84], [0, 85], [0, 86], [0, 87], [0, 88], [0, 89], [0, 90], [0, 91], [0, 92], [0, 93], [0, 94], [0, 95], [0, 96], [0, 97], [0, 98], [0, 99], [0, 100], [0, 101], [0, 102], [0, 103], [0, 104], [0, 105], [0, 106], [0, 107], [0, 108], [0, 109], [0, 110], [0, 111], [0, 112], [0, 113], [0, 114], [0, 115], [0, 116], [0, 117], [0, 118], [0, 119], [0, 120], [0, 121], [0, 122], [0, 123], [0, 124], [0, 125], [0, 126], [0, 127], [0, 128], [9, 129], [9, 130], [0, 131], [0, 132], [0, 133], [0, 134], [0, 135], [0, 136], [0, 137], [0, 138], [0, 139], [0, 140], [0, 141], [0, 142], [0, 143], [0, 144], [0, 145], [0, 146], [0, 147], [0, 148], [0, 149], [0, 150], [0, 151], [0, 152], [0, 153], [0, 154], [0, 155], [0, 156], [0, 157], [0, 158], [108, 159], [108, 160], [108, 161], [108, 162], [108, 163], [108, 164], [1, 165], [2, 166], [3, 167], [4, 168], [5, 169], [7, 170], [8, 171], [125, 172], [130, 173], [11, 174], [12, 175], [13, 176], [14, 177], [15, 178], [16, 179], [17, 180], [18, 181], [19, 182], [20, 183], [21, 184], [22, 185], [23, 186], [24, 187], [25, 188], [26, 189], [27, 190], [28, 191], [29, 192], [30, 193], [31, 194], [32, 195], [33, 196], [34, 197], [35, 198], [36, 199], [37, 200], [38, 201], [44, 202], [45, 203], [46, 204], [47, 205], [48, 206], [49, 207], [50, 208], [51, 209], [154, 210], [52, 211], [53, 212], [155, 213], [54, 214], [156, 215], [55, 216], [56, 217], [57, 218], [58, 219], [59, 220], [157, 221], [60, 222], [61, 223], [62, 224], [63, 225], [158, 226], [64, 227], [65, 228], [66, 229], [67, 230], [68, 231], [69, 232], [70, 233], [71, 234], [72, 235], [73, 236], [74, 237], [75, 238], [76, 239], [77, 240], [78, 241], [79, 242], [80, 243], [81, 244], [82, 245], [83, 246], [84, 247], [85, 248], [86, 249], [87, 250], [88, 251], [89, 252], [90, 253], [91, 254], [92, 255], [93, 256], [94, 257], [95, 258], [96, 259], [97, 260], [98, 261], [99, 262], [100, 263], [101, 264], [102, 265], [103, 266], [104, 267], [105, 268], [106, 269], [107, 270], [165, 271], [165, 272], [165, 273], [165, 274], [165, 275], [165, 276], [165, 277], [166, 278], [166, 279], [166, 280], [166, 281], [167, 282], [167, 283], [167, 284], [167, 285], [168, 286], [168, 287], [168, 288], [168, 289], [169, 290], [169, 291], [169, 292], [169, 293], [170, 294], [170, 295], [170, 296], [170, 297], [170, 298], [171, 299], [171, 300], [171, 301], [171, 302], [171, 303], [171, 304], [171, 305], [9, 306], [9, 307], [9, 308], [175, 309], [175, 310], [175, 311], [176, 312], [176, 313], [176, 314], [177, 315], [177, 316], [177, 317], [177, 318], [177, 319], [178, 320], [178, 321], [178, 322], [178, 323], [178, 324], [179, 325], [179, 326], [179, 327], [179, 328], [180, 329], [180, 330], [180, 331], [180, 332], [180, 333], [181, 334], [181, 335], [181, 336], [181, 337], [181, 338], [182, 339], [182, 340], [182, 341], [182, 342], [182, 343], [183, 344], [183, 345], [183, 346], [183, 347], [183, 348], [184, 349], [184, 350], [184, 351], [184, 352], [184, 353], [185, 354], [185, 355], [185, 356], [185, 357], [185, 358], [186, 359], [186, 360], [186, 361], [186, 362], [186, 363], [187, 364], [187, 365], [187, 366], [187, 367], [187, 368], [188, 369], [188, 370], [188, 371], [188, 372], [188, 373], [188, 374], [188, 375], [188, 376], [189, 377], [189, 378], [189, 379], [189, 380], [189, 381], [189, 382], [189, 383], [190, 384], [190, 385], [190, 386], [190, 387], [190, 388], [190, 389], [191, 390], [191, 391], [191, 392], [191, 393], [191, 394], [192, 395], [192, 396], [192, 397], [192, 398], [192, 399], [192, 400], [192, 401], [193, 402], [193, 403], [193, 404], [193, 405], [194, 406], [194, 407], [194, 408], [194, 409], [194, 410], [195, 411], [195, 412], [195, 413], [195, 414], [195, 415], [196, 416], [196, 417], [196, 418], [196, 419], [196, 420], [196, 421], [197, 422], [197, 423], [197, 424], [197, 425], [197, 426], [197, 427], [198, 428], [198, 429], [198, 430], [198, 431], [198, 432], [198, 433], [199, 434], [199, 435], [199, 436], [199, 437], [199, 438], [199, 439], [200, 440], [200, 441], [200, 442], [200, 443], [200, 444], [200, 445], [201, 446], [201, 447], [201, 448], [201, 449], [201, 450], [201, 451], [39, 452], [40, 453], [41, 454], [42, 455], [43, 456], [202, 457], [202, 458], [202, 459], [203, 460], [203, 461], [203, 462], [203, 463], [204, 464], [204, 465], [204, 466], [204, 467], [204, 468], [204, 469], [205, 470], [205, 471], [205, 472], [205, 473], [205, 474], [205, 475], [206, 476], [206, 477], [206, 478], [207, 479], [207, 480], [207, 481], [208, 482], [208, 483], [208, 484], [209, 485], [209, 486], [209, 487], [211, 488], [211, 489], [211, 490], [211, 491], [212, 492], [212, 493], [212, 494], [212, 495], [212, 496], [212, 497], [212, 498], [214, 499], [214, 500], [214, 501], [214, 502], [214, 503], [214, 504], [214, 505], [216, 506], [216, 507], [216, 508], [216, 509], [216, 510], [216, 511], [216, 512], [217, 513], [217, 514], [217, 515], [217, 516], [218, 517], [218, 518], [218, 519], [218, 520], [219, 521], [219, 522], [219, 523], [219, 524], [219, 525], [219, 526], [219, 527], [220, 528], [220, 529], [220, 530], [220, 531], [222, 532], [222, 533], [222, 534], [222, 535], [223, 536], [223, 537], [223, 538], [223, 539], [224, 540], [224, 541], [224, 542], [224, 543], [225, 544], [225, 545], [225, 546], [225, 547], [227, 548], [227, 549], [227, 550], [227, 551], [227, 552], [227, 553], [227, 554], [227, 555], [228, 556], [228, 557], [228, 558], [228, 559], [229, 560], [229, 561], [229, 562], [229, 563], [230, 564], [230, 565], [230, 566], [230, 567], [231, 568], [231, 569], [231, 570], [232, 571], [232, 572], [232, 573], [232, 574], [232, 575], [232, 576], [233, 577], [233, 578], [233, 579], [233, 580], [234, 581], [234, 582], [234, 583], [234, 584], [235, 585], [235, 586], [235, 587], [235, 588], [236, 589], [236, 590], [236, 591], [236, 592], [237, 593], [237, 594], [237, 595], [237, 596], [238, 597], [238, 598], [238, 599], [238, 600], [239, 601], [239, 602], [239, 603], [239, 604], [240, 605], [240, 606], [240, 607], [240, 608], [241, 609], [241, 610], [241, 611], [241, 612], [242, 613], [242, 614], [242, 615], [242, 616], [243, 617], [243, 618], [243, 619], [243, 620], [244, 621], [244, 622], [244, 623], [244, 624], [245, 625], [245, 626], [245, 627], [245, 628], [246, 629], [246, 630], [246, 631], [246, 632], [247, 633], [247, 634], [247, 635], [247, 636], [248, 637], [248, 638], [248, 639], [248, 640], [249, 641], [249, 642], [249, 643], [249, 644], [250, 645], [250, 646], [250, 647], [250, 648], [251, 649], [251, 650], [251, 651], [251, 652], [252, 653], [252, 654], [252, 655], [252, 656], [253, 657], [253, 658], [253, 659], [253, 660], [254, 661], [254, 662], [254, 663], [254, 664], [255, 665], [255, 666], [255, 667], [255, 668], [256, 669], [256, 670], [256, 671], [256, 672], [257, 673], [257, 674], [257, 675], [257, 676], [258, 677], [258, 678], [258, 679], [258, 680], [259, 681], [259, 682], [259, 683], [259, 684], [260, 685], [260, 686], [260, 687], [260, 688], [261, 689], [261, 690], [261, 691], [261, 692], [262, 693], [262, 694], [262, 695], [262, 696], [263, 697], [263, 698], [263, 699], [263, 700], [264, 701], [264, 702], [264, 703], [264, 704], [265, 705], [265, 706], [265, 707], [265, 708], [266, 709], [266, 710], [266, 711], [266, 712], [267, 713], [267, 714], [267, 715], [267, 716], [268, 717], [268, 718], [268, 719], [268, 720], [269, 721], [269, 722], [269, 723], [269, 724], [270, 725], [270, 726], [270, 727], [270, 728], [6, 729], [6, 730], [6, 731], [6, 732], [6, 733], [6, 734], [6, 735], [6, 736], [6, 737], [6, 738], [6, 739], [729, 740], [729, 741], [730, 742], [730, 743], [730, 744], [730, 745], [730, 746], [730, 747], [731, 748], [731, 749], [731, 750], [731, 751], [731, 752], [731, 753], [732, 754], [732, 755], [732, 756], [732, 757], [732, 758], [733, 759], [733, 760], [733, 761], [733, 762], [733, 763], [734, 764], [734, 765], [734, 766], [734, 767], [734, 768], [734, 769], [735, 770], [735, 771], [735, 772], [735, 773], [735, 774], [735, 775], [736, 776], [736, 777], [736, 778], [736, 779], [736, 780], [736, 781], [737, 782], [737, 783], [737, 784], [737, 785], [737, 786], [737, 787], [737, 788], [738, 789], [738, 790], [738, 791], [738, 792], [738, 793], [738, 794], [738, 795], [739, 796], [739, 797], [739, 798], [739, 799], [739, 800], [739, 801], [739, 802], [729, 803], [803, 804], [803, 805], [803, 806], [803, 807], [803, 808], [803, 809], [808, 810], [808, 811], [808, 812], [808, 813], [809, 814], [809, 815], [809, 816], [809, 817], [803, 818], [803, 819], [803, 820], [818, 821], [818, 822], [818, 823], [818, 824], [819, 825], [819, 826], [819, 827], [819, 828], [820, 829], [820, 830], [820, 831], [820, 832], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 0], [55, 0], [56, 0], [57, 0], [58, 0], [59, 0], [60, 0], [61, 0], [62, 0], [63, 0], [64, 0], [65, 0], [66, 0], [67, 0], [68, 0], [69, 0], [70, 0], [71, 0], [72, 0], [73, 0], [74, 0], [75, 0], [76, 0], [77, 0], [78, 0], [79, 0], [80, 0], [81, 0], [82, 0], [83, 0], [84, 0], [85, 0], [86, 0], [87, 0], [88, 0], [89, 0], [90, 0], [91, 0], [92, 0], [93, 0], [94, 0], [95, 0], [96, 0], [97, 0], [98, 0], [99, 0], [100, 0], [101, 0], [102, 0], [103, 0], [104, 0], [105, 0], [106, 0], [107, 0], [108, 0], [109, 0], [110, 0], [111, 0], [112, 0], [113, 0], [114, 0], [115, 0], [116, 0], [117, 0], [118, 0], [119, 0], [120, 0], [121, 0], [122, 0], [123, 0], [124, 0], [125, 0], [126, 0], [127, 0], [128, 0], [129, 9], [130, 9], [131, 0], [132, 0], [133, 0], [134, 0], [135, 0], [136, 0], [137, 0], [138, 0], [139, 0], [140, 0], [141, 0], [142, 0], [143, 0], [144, 0], [145, 0], [146, 0], [147, 0], [148, 0], [149, 0], [150, 0], [151, 0], [152, 0], [153, 0], [154, 0], [155, 0], [156, 0], [157, 0], [158, 0], [159, 108], [160, 108], [161, 108], [162, 108], [163, 108], [164, 108], [165, 1], [166, 2], [167, 3], [168, 4], [169, 5], [170, 7], [171, 8], [172, 125], [173, 130], [174, 11], [175, 12], [176, 13], [177, 14], [178, 15], [179, 16], [180, 17], [181, 18], [182, 19], [183, 20], [184, 21], [185, 22], [186, 23], [187, 24], [188, 25], [189, 26], [190, 27], [191, 28], [192, 29], [193, 30], [194, 31], [195, 32], [196, 33], [197, 34], [198, 35], [199, 36], [200, 37], [201, 38], [202, 44], [203, 45], [204, 46], [205, 47], [206, 48], [207, 49], [208, 50], [209, 51], [210, 154], [211, 52], [212, 53], [213, 155], [214, 54], [215, 156], [216, 55], [217, 56], [218, 57], [219, 58], [220, 59], [221, 157], [222, 60], [223, 61], [224, 62], [225, 63], [226, 158], [227, 64], [228, 65], [229, 66], [230, 67], [231, 68], [232, 69], [233, 70], [234, 71], [235, 72], [236, 73], [237, 74], [238, 75], [239, 76], [240, 77], [241, 78], [242, 79], [243, 80], [244, 81], [245, 82], [246, 83], [247, 84], [248, 85], [249, 86], [250, 87], [251, 88], [252, 89], [253, 90], [254, 91], [255, 92], [256, 93], [257, 94], [258, 95], [259, 96], [260, 97], [261, 98], [262, 99], [263, 100], [264, 101], [265, 102], [266, 103], [267, 104], [268, 105], [269, 106], [270, 107], [271, 165], [272, 165], [273, 165], [274, 165], [275, 165], [276, 165], [277, 165], [278, 166], [279, 166], [280, 166], [281, 166], [282, 167], [283, 167], [284, 167], [285, 167], [286, 168], [287, 168], [288, 168], [289, 168], [290, 169], [291, 169], [292, 169], [293, 169], [294, 170], [295, 170], [296, 170], [297, 170], [298, 170], [299, 171], [300, 171], [301, 171], [302, 171], [303, 171], [304, 171], [305, 171], [306, 9], [307, 9], [308, 9], [309, 175], [310, 175], [311, 175], [312, 176], [313, 176], [314, 176], [315, 177], [316, 177], [317, 177], [318, 177], [319, 177], [320, 178], [321, 178], [322, 178], [323, 178], [324, 178], [325, 179], [326, 179], [327, 179], [328, 179], [329, 180], [330, 180], [331, 180], [332, 180], [333, 180], [334, 181], [335, 181], [336, 181], [337, 181], [338, 181], [339, 182], [340, 182], [341, 182], [342, 182], [343, 182], [344, 183], [345, 183], [346, 183], [347, 183], [348, 183], [349, 184], [350, 184], [351, 184], [352, 184], [353, 184], [354, 185], [355, 185], [356, 185], [357, 185], [358, 185], [359, 186], [360, 186], [361, 186], [362, 186], [363, 186], [364, 187], [365, 187], [366, 187], [367, 187], [368, 187], [369, 188], [370, 188], [371, 188], [372, 188], [373, 188], [374, 188], [375, 188], [376, 188], [377, 189], [378, 189], [379, 189], [380, 189], [381, 189], [382, 189], [383, 189], [384, 190], [385, 190], [386, 190], [387, 190], [388, 190], [389, 190], [390, 191], [391, 191], [392, 191], [393, 191], [394, 191], [395, 192], [396, 192], [397, 192], [398, 192], [399, 192], [400, 192], [401, 192], [402, 193], [403, 193], [404, 193], [405, 193], [406, 194], [407, 194], [408, 194], [409, 194], [410, 194], [411, 195], [412, 195], [413, 195], [414, 195], [415, 195], [416, 196], [417, 196], [418, 196], [419, 196], [420, 196], [421, 196], [422, 197], [423, 197], [424, 197], [425, 197], [426, 197], [427, 197], [428, 198], [429, 198], [430, 198], [431, 198], [432, 198], [433, 198], [434, 199], [435, 199], [436, 199], [437, 199], [438, 199], [439, 199], [440, 200], [441, 200], [442, 200], [443, 200], [444, 200], [445, 200], [446, 201], [447, 201], [448, 201], [449, 201], [450, 201], [451, 201], [452, 39], [453, 40], [454, 41], [455, 42], [456, 43], [457, 202], [458, 202], [459, 202], [460, 203], [461, 203], [462, 203], [463, 203], [464, 204], [465, 204], [466, 204], [467, 204], [468, 204], [469, 204], [470, 205], [471, 205], [472, 205], [473, 205], [474, 205], [475, 205], [476, 206], [477, 206], [478, 206], [479, 207], [480, 207], [481, 207], [482, 208], [483, 208], [484, 208], [485, 209], [486, 209], [487, 209], [488, 211], [489, 211], [490, 211], [491, 211], [492, 212], [493, 212], [494, 212], [495, 212], [496, 212], [497, 212], [498, 212], [499, 214], [500, 214], [501, 214], [502, 214], [503, 214], [504, 214], [505, 214], [506, 216], [507, 216], [508, 216], [509, 216], [510, 216], [511, 216], [512, 216], [513, 217], [514, 217], [515, 217], [516, 217], [517, 218], [518, 218], [519, 218], [520, 218], [521, 219], [522, 219], [523, 219], [524, 219], [525, 219], [526, 219], [527, 219], [528, 220], [529, 220], [530, 220], [531, 220], [532, 222], [533, 222], [534, 222], [535, 222], [536, 223], [537, 223], [538, 223], [539, 223], [540, 224], [541, 224], [542, 224], [543, 224], [544, 225], [545, 225], [546, 225], [547, 225], [548, 227], [549, 227], [550, 227], [551, 227], [552, 227], [553, 227], [554, 227], [555, 227], [556, 228], [557, 228], [558, 228], [559, 228], [560, 229], [561, 229], [562, 229], [563, 229], [564, 230], [565, 230], [566, 230], [567, 230], [568, 231], [569, 231], [570, 231], [571, 232], [572, 232], [573, 232], [574, 232], [575, 232], [576, 232], [577, 233], [578, 233], [579, 233], [580, 233], [581, 234], [582, 234], [583, 234], [584, 234], [585, 235], [586, 235], [587, 235], [588, 235], [589, 236], [590, 236], [591, 236], [592, 236], [593, 237], [594, 237], [595, 237], [596, 237], [597, 238], [598, 238], [599, 238], [600, 238], [601, 239], [602, 239], [603, 239], [604, 239], [605, 240], [606, 240], [607, 240], [608, 240], [609, 241], [610, 241], [611, 241], [612, 241], [613, 242], [614, 242], [615, 242], [616, 242], [617, 243], [618, 243], [619, 243], [620, 243], [621, 244], [622, 244], [623, 244], [624, 244], [625, 245], [626, 245], [627, 245], [628, 245], [629, 246], [630, 246], [631, 246], [632, 246], [633, 247], [634, 247], [635, 247], [636, 247], [637, 248], [638, 248], [639, 248], [640, 248], [641, 249], [642, 249], [643, 249], [644, 249], [645, 250], [646, 250], [647, 250], [648, 250], [649, 251], [650, 251], [651, 251], [652, 251], [653, 252], [654, 252], [655, 252], [656, 252], [657, 253], [658, 253], [659, 253], [660, 253], [661, 254], [662, 254], [663, 254], [664, 254], [665, 255], [666, 255], [667, 255], [668, 255], [669, 256], [670, 256], [671, 256], [672, 256], [673, 257], [674, 257], [675, 257], [676, 257], [677, 258], [678, 258], [679, 258], [680, 258], [681, 259], [682, 259], [683, 259], [684, 259], [685, 260], [686, 260], [687, 260], [688, 260], [689, 261], [690, 261], [691, 261], [692, 261], [693, 262], [694, 262], [695, 262], [696, 262], [697, 263], [698, 263], [699, 263], [700, 263], [701, 264], [702, 264], [703, 264], [704, 264], [705, 265], [706, 265], [707, 265], [708, 265], [709, 266], [710, 266], [711, 266], [712, 266], [713, 267], [714, 267], [715, 267], [716, 267], [717, 268], [718, 268], [719, 268], [720, 268], [721, 269], [722, 269], [723, 269], [724, 269], [725, 270], [726, 270], [727, 270], [728, 270], [729, 6], [730, 6], [731, 6], [732, 6], [733, 6], [734, 6], [735, 6], [736, 6], [737, 6], [738, 6], [739, 6], [740, 729], [741, 729], [742, 730], [743, 730], [744, 730], [745, 730], [746, 730], [747, 730], [748, 731], [749, 731], [750, 731], [751, 731], [752, 731], [753, 731], [754, 732], [755, 732], [756, 732], [757, 732], [758, 732], [759, 733], [760, 733], [761, 733], [762, 733], [763, 733], [764, 734], [765, 734], [766, 734], [767, 734], [768, 734], [769, 734], [770, 735], [771, 735], [772, 735], [773, 735], [774, 735], [775, 735], [776, 736], [777, 736], [778, 736], [779, 736], [780, 736], [781, 736], [782, 737], [783, 737], [784, 737], [785, 737], [786, 737], [787, 737], [788, 737], [789, 738], [790, 738], [791, 738], [792, 738], [793, 738], [794, 738], [795, 738], [796, 739], [797, 739], [798, 739], [799, 739], [800, 739], [801, 739], [802, 739], [803, 729], [804, 803], [805, 803], [806, 803], [807, 803], [808, 803], [809, 803], [810, 808], [811, 808], [812, 808], [813, 808], [814, 809], [815, 809], [816, 809], [817, 809], [818, 803], [819, 803], [820, 803], [821, 818], [822, 818], [823, 818], [824, 818], [825, 819], [826, 819], [827, 819], [828, 819], [829, 820], [830, 820], [831, 820], [832, 820], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493], [494, 494], [495, 495], [496, 496], [497, 497], [498, 498], [499, 499], [500, 500], [501, 501], [502, 502], [503, 503], [504, 504], [505, 505], [506, 506], [507, 507], [508, 508], [509, 509], [510, 510], [511, 511], [512, 512], [513, 513], [514, 514], [515, 515], [516, 516], [517, 517], [518, 518], [519, 519], [520, 520], [521, 521], [522, 522], [523, 523], [524, 524], [525, 525], [526, 526], [527, 527], [528, 528], [529, 529], [530, 530], [531, 531], [532, 532], [533, 533], [534, 534], [535, 535], [536, 536], [537, 537], [538, 538], [539, 539], [540, 540], [541, 541], [542, 542], [543, 543], [544, 544], [545, 545], [546, 546], [547, 547], [548, 548], [549, 549], [550, 550], [551, 551], [552, 552], [553, 553], [554, 554], [555, 555], [556, 556], [557, 557], [558, 558], [559, 559], [560, 560], [561, 561], [562, 562], [563, 563], [564, 564], [565, 565], [566, 566], [567, 567], [568, 568], [569, 569], [570, 570], [571, 571], [572, 572], [573, 573], [574, 574], [575, 575], [576, 576], [577, 577], [578, 578], [579, 579], [580, 580], [581, 581], [582, 582], [583, 583], [584, 584], [585, 585], [586, 586], [587, 587], [588, 588], [589, 589], [590, 590], [591, 591], [592, 592], [593, 593], [594, 594], [595, 595], [596, 596], [597, 597], [598, 598], [599, 599], [600, 600], [601, 601], [602, 602], [603, 603], [604, 604], [605, 605], [606, 606], [607, 607], [608, 608], [609, 609], [610, 610], [611, 611], [612, 612], [613, 613], [614, 614], [615, 615], [616, 616], [617, 617], [618, 618], [619, 619], [620, 620], [621, 621], [622, 622], [623, 623], [624, 624], [625, 625], [626, 626], [627, 627], [628, 628], [629, 629], [630, 630], [631, 631], [632, 632], [633, 633], [634, 634], [635, 635], [636, 636], [637, 637], [638, 638], [639, 639], [640, 640], [641, 641], [642, 642], [643, 643], [644, 644], [645, 645], [646, 646], [647, 647], [648, 648], [649, 649], [650, 650], [651, 651], [652, 652], [653, 653], [654, 654], [655, 655], [656, 656], [657, 657], [658, 658], [659, 659], [660, 660], [661, 661], [662, 662], [663, 663], [664, 664], [665, 665], [666, 666], [667, 667], [668, 668], [669, 669], [670, 670], [671, 671], [672, 672], [673, 673], [674, 674], [675, 675], [676, 676], [677, 677], [678, 678], [679, 679], [680, 680], [681, 681], [682, 682], [683, 683], [684, 684], [685, 685], [686, 686], [687, 687], [688, 688], [689, 689], [690, 690], [691, 691], [692, 692], [693, 693], [694, 694], [695, 695], [696, 696], [697, 697], [698, 698], [699, 699], [700, 700], [701, 701], [702, 702], [703, 703], [704, 704], [705, 705], [706, 706], [707, 707], [708, 708], [709, 709], [710, 710], [711, 711], [712, 712], [713, 713], [714, 714], [715, 715], [716, 716], [717, 717], [718, 718], [719, 719], [720, 720], [721, 721], [722, 722], [723, 723], [724, 724], [725, 725], [726, 726], [727, 727], [728, 728], [729, 729], [730, 730], [731, 731], [732, 732], [733, 733], [734, 734], [735, 735], [736, 736], [737, 737], [738, 738], [739, 739], [740, 740], [741, 741], [742, 742], [743, 743], [744, 744], [745, 745], [746, 746], [747, 747], [748, 748], [749, 749], [750, 750], [751, 751], [752, 752], [753, 753], [754, 754], [755, 755], [756, 756], [757, 757], [758, 758], [759, 759], [760, 760], [761, 761], [762, 762], [763, 763], [764, 764], [765, 765], [766, 766], [767, 767], [768, 768], [769, 769], [770, 770], [771, 771], [772, 772], [773, 773], [774, 774], [775, 775], [776, 776], [777, 777], [778, 778], [779, 779], [780, 780], [781, 781], [782, 782], [783, 783], [784, 784], [785, 785], [786, 786], [787, 787], [788, 788], [789, 789], [790, 790], [791, 791], [792, 792], [793, 793], [794, 794], [795, 795], [796, 796], [797, 797], [798, 798], [799, 799], [800, 800], [801, 801], [802, 802], [803, 803], [804, 804], [805, 805], [806, 806], [807, 807], [808, 808], [809, 809], [810, 810], [811, 811], [812, 812], [813, 813], [814, 814], [815, 815], [816, 816], [817, 817], [818, 818], [819, 819], [820, 820], [821, 821], [822, 822], [823, 823], [824, 824], [825, 825], [826, 826], [827, 827], [828, 828], [829, 829], [830, 830], [831, 831], [832, 832]]}, {"function_name": "getElemsAvailable", "code": "  public Hashtable getElemsAvailable() \n  {\n    return m_availElems;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addAvailableElement", "code": "  void addAvailableElement(QName elemName)\n  {\n    m_availElems.put(elemName, elemName);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "elementAvailable", "code": "  public boolean elementAvailable(QName elemName)\n  {\n    return m_availElems.containsKey(elemName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "XSLTSchema", "code": "  XSLTSchema()\n  {\n    build();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ant-1.7-1310", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/ZipFileSet.java", "language": "java", "name": "org.apache.tools.ant.types.ZipFileSet", "code": "public class ZipFileSet extends ArchiveFileSet {\n\n    private String encoding = null;\n\n    /** Constructor for ZipFileSet */\n    public ZipFileSet() {\n        super();\n    }\n\n    /**\n     * Constructor using a fileset arguement.\n     * @param fileset the fileset to use\n     */\n    protected ZipFileSet(FileSet fileset) {\n        super(fileset);\n    }\n\n    /**\n     * Constructor using a zipfileset arguement.\n     * @param fileset the zipfileset to use\n     */\n    protected ZipFileSet(ZipFileSet fileset) {\n        super(fileset);\n        encoding = fileset.encoding;\n    }\n\n    /**\n     * Set the encoding used for this ZipFileSet.\n     * @param enc encoding as String.\n     * @since Ant 1.7\n     */\n    public void setEncoding(String enc) {\n        checkZipFileSetAttributesAllowed();\n        this.encoding = enc;\n    }\n\n    /**\n     * Get the encoding used for this ZipFileSet.\n     * @return String encoding.\n     * @since Ant 1.7\n     */\n    public String getEncoding() {\n        if (isReference()) {\n            AbstractFileSet ref = getRef(getProject());\n            if (ref instanceof ZipFileSet) {\n                return ((ZipFileSet) ref).getEncoding();\n            } else {\n                return null;\n            }\n        }\n        return encoding;\n    }\n\n    /**\n     * Return a new archive scanner based on this one.\n     * @return a new ZipScanner with the same encoding as this one.\n     */\n    protected ArchiveScanner newArchiveScanner() {\n        ZipScanner zs = new ZipScanner();\n        zs.setEncoding(encoding);\n        return zs;\n    }\n\n    /**\n     * A ZipFileset accepts another ZipFileSet or a FileSet as reference\n     * FileSets are often used by the war task for the lib attribute\n     * @param p the project to use\n     * @return the abstract fileset instance\n     */\n    protected AbstractFileSet getRef(Project p) {\n        dieOnCircularReference(p);\n        Object o = getRefid().getReferencedObject(p);\n        if (o instanceof ZipFileSet) {\n            return (AbstractFileSet) o;\n        } else if (o instanceof FileSet) {\n            ZipFileSet zfs = new ZipFileSet((FileSet) o);\n            configureFileSet(zfs);\n            return zfs;\n        } else {\n            String msg = getRefid().getRefId() + \" doesn\\'t denote a zipfileset or a fileset\";\n            throw new BuildException(msg);\n        }\n    }\n\n    /**\n     * Return a ZipFileSet that has the same properties\n     * as this one.\n     * @return the cloned zipFileSet\n     */\n    public Object clone() {\n        if (isReference()) {\n            return ((ZipFileSet) getRef(getProject())).clone();\n        } else {\n            return super.clone();\n        }\n    }\n\n    /**\n     * A check attributes for zipFileSet.\n     * If there is a reference, and\n     * it is a ZipFileSet, the zip fileset attributes\n     * cannot be used.\n     */\n    private void checkZipFileSetAttributesAllowed() {\n        if (getProject() == null\n            || (isReference()\n                && (getRefid().getReferencedObject(\n                        getProject())\n                    instanceof ZipFileSet))) {\n            checkAttributesAllowed();", "functions": [{"function_name": "setEncoding", "code": "    public void setEncoding(String enc) {\n        checkZipFileSetAttributesAllowed();\n        this.encoding = enc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEncoding", "code": "    public String getEncoding() {\n        if (isReference()) {\n            AbstractFileSet ref = getRef(getProject());\n            if (ref instanceof ZipFileSet) {\n                return ((ZipFileSet) ref).getEncoding();\n            } else {\n                return null;\n            }\n        }\n        return encoding;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [4, 6], [4, 7], [4, 8], [5, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 4], [7, 4], [8, 4], [9, 5], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "newArchiveScanner", "code": "    protected ArchiveScanner newArchiveScanner() {\n        ZipScanner zs = new ZipScanner();\n        zs.setEncoding(encoding);\n        return zs;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRef", "code": "    protected AbstractFileSet getRef(Project p) {\n        dieOnCircularReference(p);\n        Object o = getRefid().getReferencedObject(p);\n        if (o instanceof ZipFileSet) {\n            return (AbstractFileSet) o;\n        } else if (o instanceof FileSet) {\n            ZipFileSet zfs = new ZipFileSet((FileSet) o);\n            configureFileSet(zfs);\n            return zfs;\n        } else {\n            String msg = getRefid().getRefId() + \" doesn\\'t denote a zipfileset or a fileset\";\n            throw new BuildException(msg);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "CALL", "THROW_RAISE", "VAR_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [1, 8], [2, 9], [4, 10], [4, 11], [4, 12], [4, 13], [9, 14], [10, 15], [4, 16], [11, 17], [13, 18], [17, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 1], [9, 2], [10, 4], [11, 4], [12, 4], [13, 4], [14, 9], [15, 10], [16, 4], [17, 11], [18, 13], [19, 17], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "clone", "code": "    public Object clone() {\n        if (isReference()) {\n            return ((ZipFileSet) getRef(getProject())).clone();\n        } else {\n            return super.clone();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "checkZipFileSetAttributesAllowed", "code": "    private void checkZipFileSetAttributesAllowed() {\n        if (getProject() == null\n            || (isReference()\n                && (getRefid().getReferencedObject(\n                        getProject())\n                    instanceof ZipFileSet))) {\n            checkAttributesAllowed();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 5], [3, 6], [3, 7], [4, 8], [4, 9], [6, 10], [10, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 2], [5, 1], [6, 3], [7, 3], [8, 4], [9, 4], [10, 6], [11, 10], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "ZipFileSet", "code": "    public ZipFileSet() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ZipFileSet", "code": "    protected ZipFileSet(FileSet fileset) {\n        super(fileset);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ZipFileSet", "code": "    protected ZipFileSet(ZipFileSet fileset) {\n        super(fileset);\n        encoding = fileset.encoding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ivy-2.0-3371", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/resolver/VfsResolver.java", "language": "java", "name": "org.apache.ivy.plugins.resolver.VfsResolver", "code": "public class VfsResolver extends RepositoryResolver {\n    private static final Pattern URL_PATTERN = Pattern.compile(\"[a-z]*://(.+):(.+)@.*\");\n\n    private static final int PASSWORD_GROUP = 2;\n\n    public VfsResolver() {\n        setRepository(new VfsRepository());\n    }\n\n    public String getTypeName() {\n        return \"vfs\";\n    }\n\n    public String hidePassword(String name) {\n        return prepareForDisplay(name);\n    }\n\n    public static String prepareForDisplay(String name) {\n        StringBuffer s = new StringBuffer(name);\n        Matcher m = URL_PATTERN.matcher(s);\n        if (m.matches()) {\n            final String password = m.group(PASSWORD_GROUP);\n            final int passwordposi = s.indexOf(password);\n            StringBuffer stars = new StringBuffer(password);\n            for (int posi = 0; posi < password.length(); posi++) {\n                stars.setCharAt(posi, '*');\n            }\n            String replacement = stars.toString();\n            s = s.replace(passwordposi, passwordposi + password.length(), replacement);\n        }\n        return s.toString();", "functions": [{"function_name": "getTypeName", "code": "    public String getTypeName() {\n        return \"vfs\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hidePassword", "code": "    public String hidePassword(String name) {\n        return prepareForDisplay(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "prepareForDisplay", "code": "    public static String prepareForDisplay(String name) {\n        StringBuffer s = new StringBuffer(name);\n        Matcher m = URL_PATTERN.matcher(s);\n        if (m.matches()) {\n            final String password = m.group(PASSWORD_GROUP);\n            final int passwordposi = s.indexOf(password);\n            StringBuffer stars = new StringBuffer(password);\n            for (int posi = 0; posi < password.length(); posi++) {\n                stars.setCharAt(posi, '*');\n            }\n            String replacement = stars.toString();\n            s = s.replace(passwordposi, passwordposi + password.length(), replacement);\n        }\n        return s.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [3, 13], [4, 14], [2, 15], [9, 16], [15, 17], [8, 18], [16, 19], [10, 20], [11, 21], [12, 22], [17, 23], [9, 24], [9, 25], [23, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 3], [14, 4], [15, 2], [16, 9], [17, 15], [18, 8], [19, 16], [20, 10], [21, 11], [22, 12], [23, 17], [24, 9], [25, 9], [26, 23], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "VfsResolver", "code": "    public VfsResolver() {\n        setRepository(new VfsRepository());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6035", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/usermodel/HSSFCellStyle.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFCellStyle", "code": "public class HSSFCellStyle\n{\n    private ExtendedFormatRecord format                     = null;\n    private short                index                      = 0;\n\n    /**\n     * general (normal) horizontal alignment\n     */\n\n    public final static short    ALIGN_GENERAL              = 0x0;\n\n    /**\n     * left-justified horizontal alignment\n     */\n\n    public final static short    ALIGN_LEFT                 = 0x1;\n\n    /**\n     * center horizontal alignment\n     */\n\n    public final static short    ALIGN_CENTER               = 0x2;\n\n    /**\n     * right-justified horizontal alignment\n     */\n\n    public final static short    ALIGN_RIGHT                = 0x3;\n\n    /**\n     * fill? horizontal alignment\n     */\n\n    public final static short    ALIGN_FILL                 = 0x4;\n\n    /**\n     * justified horizontal alignment\n     */\n\n    public final static short    ALIGN_JUSTIFY              = 0x5;\n\n    /**\n     * center-selection? horizontal alignment\n     */\n\n    public final static short    ALIGN_CENTER_SELECTION     = 0x6;\n\n    /**\n     * top-aligned vertical alignment\n     */\n\n    public final static short    VERTICAL_TOP               = 0x0;\n\n    /**\n     * center-aligned vertical alignment\n     */\n\n    public final static short    VERTICAL_CENTER            = 0x1;\n\n    /**\n     * bottom-aligned vertical alignment\n     */\n\n    public final static short    VERTICAL_BOTTOM            = 0x2;\n\n    /**\n     * vertically justified vertical alignment\n     */\n\n    public final static short    VERTICAL_JUSTIFY           = 0x3;\n\n    /**\n     * No border\n     */\n\n    public final static short    BORDER_NONE                = 0x0;\n\n    /**\n     * Thin border\n     */\n\n    public final static short    BORDER_THIN                = 0x1;\n\n    /**\n     * Medium border\n     */\n\n    public final static short    BORDER_MEDIUM              = 0x2;\n\n    /**\n     * dash border\n     */\n\n    public final static short    BORDER_DASHED              = 0x3;\n\n    /**\n     * dot border\n     */\n\n    public final static short    BORDER_HAIR              = 0x4;\n\n    /**\n     * Thick border\n     */\n\n    public final static short    BORDER_THICK               = 0x5;\n\n    /**\n     * double-line border\n     */\n\n    public final static short    BORDER_DOUBLE              = 0x6;\n\n    /**\n     * hair-line border\n     */\n\n    public final static short    BORDER_DOTTED                = 0x7;\n\n    /**\n     * Medium dashed border\n     */\n\n    public final static short    BORDER_MEDIUM_DASHED       = 0x8;\n\n    /**\n     * dash-dot border\n     */\n\n    public final static short    BORDER_DASH_DOT            = 0x9;\n\n    /**\n     * medium dash-dot border\n     */\n\n    public final static short    BORDER_MEDIUM_DASH_DOT     = 0xA;\n\n    /**\n     * dash-dot-dot border\n     */\n\n    public final static short    BORDER_DASH_DOT_DOT        = 0xB;\n\n    /**\n     * medium dash-dot-dot border\n     */\n\n    public final static short    BORDER_MEDIUM_DASH_DOT_DOT = 0xC;\n\n    /**\n     * slanted dash-dot border\n     */\n\n    public final static short    BORDER_SLANTED_DASH_DOT    = 0xD;\n\n    /**  No background */\n    public final static short     NO_FILL             = 0  ;\n    /**  Solidly filled */\n    public final static short     SOLID_FOREGROUND    = 1  ;\n    /**  Small fine dots */\n    public final static short     FINE_DOTS           = 2  ;\n    /**  Wide dots */\n    public final static short     ALT_BARS            = 3  ;\n    /**  Sparse dots */\n    public final static short     SPARSE_DOTS         = 4  ;\n    /**  Thick horizontal bands */\n    public final static short     THICK_HORZ_BANDS    = 5  ;\n    /**  Thick vertical bands */\n    public final static short     THICK_VERT_BANDS    = 6  ;\n    /**  Thick backward facing diagonals */\n    public final static short     THICK_BACKWARD_DIAG = 7  ;\n    /**  Thick forward facing diagonals */\n    public final static short     THICK_FORWARD_DIAG  = 8  ;\n    /**  Large spots */\n    public final static short     BIG_SPOTS           = 9  ;\n    /**  Brick-like layout */\n    public final static short     BRICKS              = 10 ;\n    /**  Thin horizontal bands */\n    public final static short     THIN_HORZ_BANDS     = 11 ;\n    /**  Thin vertical bands */\n    public final static short     THIN_VERT_BANDS     = 12 ;\n    /**  Thin backward diagonal */\n    public final static short     THIN_BACKWARD_DIAG  = 13 ;\n    /**  Thin forward diagonal */\n    public final static short     THIN_FORWARD_DIAG   = 14 ;\n    /**  Squares */\n    public final static short     SQUARES             = 15 ;\n    /**  Diamonds */\n    public final static short     DIAMONDS            = 16 ;\n    /**  Less Dots */\n    public final static short     LESS_DOTS           = 17 ;\n    /**  Least Dots */\n    public final static short     LEAST_DOTS          = 18 ;\n\n\n    /** Creates new HSSFCellStyle why would you want to do this?? */\n\n    protected HSSFCellStyle(short index, ExtendedFormatRecord rec)\n    {\n        this.index = index;\n        format     = rec;\n    }\n\n    /**\n     * get the index within the HSSFWorkbook (sequence within the collection of ExtnededFormat objects)\n     * @return unique index number of the underlying record this style represents (probably you don't care\n     *  unless you're comparing which one is which)\n     */\n\n    public short getIndex()\n    {\n        return index;\n    }\n\n    /**\n     * set the data format (must be a valid format)\n     * @see org.apache.poi.hssf.usermodel.HSSFDataFormat\n     */\n\n    public void setDataFormat(short fmt)\n    {\n        format.setFormatIndex(fmt);\n    }\n\n    /**\n     * get the index of the format\n     * @see org.apache.poi.hssf.usermodel.HSSFDataFormat\n     */\n\n    public short getDataFormat()\n    {\n        return format.getFormatIndex();\n    }\n\n    /**\n     * set the font for this style\n     * @param font  a font object created or retreived from the HSSFWorkbook object\n     * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createFont()\n     * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getFontAt(short)\n     */\n\n    public void setFont(HSSFFont font)\n    {\n        format.setIndentNotParentFont(true);\n        short fontindex = font.getIndex();\n        format.setFontIndex(fontindex);\n    }\n\n    public short getFontIndex()\n    {\n        return format.getFontIndex();\n    }\n\n    /**\n     * set the cell's using this style to be hidden\n     * @param hidden - whether the cell using this style should be hidden\n     */\n\n    public void setHidden(boolean hidden)\n    {\n        format.setIndentNotParentCellOptions(true);\n        format.setHidden(hidden);\n    }\n\n    /**\n     * get whether the cell's using this style are to be hidden\n     * @return hidden - whether the cell using this style should be hidden\n     */\n\n    public boolean getHidden()\n    {\n        return format.isHidden();\n    }\n\n    /**\n     * set the cell's using this style to be locked\n     * @param locked - whether the cell using this style should be locked\n     */\n\n    public void setLocked(boolean locked)\n    {\n        format.setIndentNotParentCellOptions(true);\n        format.setLocked(locked);\n    }\n\n    /**\n     * get whether the cell's using this style are to be locked\n     * @return hidden - whether the cell using this style should be locked\n     */\n\n    public boolean getLocked()\n    {\n        return format.isLocked();\n    }\n\n    /**\n     * set the type of horizontal alignment for the cell\n     * @param align - the type of alignment\n     * @see #ALIGN_GENERAL\n     * @see #ALIGN_LEFT\n     * @see #ALIGN_CENTER\n     * @see #ALIGN_RIGHT\n     * @see #ALIGN_FILL\n     * @see #ALIGN_JUSTIFY\n     * @see #ALIGN_CENTER_SELECTION\n     */\n\n    public void setAlignment(short align)\n    {\n        format.setIndentNotParentAlignment(true);\n        format.setAlignment(align);\n    }\n\n    /**\n     * get the type of horizontal alignment for the cell\n     * @return align - the type of alignment\n     * @see #ALIGN_GENERAL\n     * @see #ALIGN_LEFT\n     * @see #ALIGN_CENTER\n     * @see #ALIGN_RIGHT\n     * @see #ALIGN_FILL\n     * @see #ALIGN_JUSTIFY\n     * @see #ALIGN_CENTER_SELECTION\n     */\n\n    public short getAlignment()\n    {\n        return format.getAlignment();\n    }\n\n    /**\n     * get whether this cell is to be part of a merged block of cells\n     *\n     * @returns merged or not\n     */\n\n\n    /**\n     * set whether this cell is to be part of a merged block of cells\n     *\n     * @param merge  merged or not\n     */\n\n\n    /**\n     * set whether the text should be wrapped\n     * @param wrapped  wrap text or not\n     */\n\n    public void setWrapText(boolean wrapped)\n    {\n        format.setIndentNotParentAlignment(true);\n        format.setWrapText(wrapped);\n    }\n\n    /**\n     * get whether the text should be wrapped\n     * @return wrap text or not\n     */\n\n    public boolean getWrapText()\n    {\n        return format.getWrapText();\n    }\n\n    /**\n     * set the type of vertical alignment for the cell\n     * @param align the type of alignment\n     * @see #VERTICAL_TOP\n     * @see #VERTICAL_CENTER\n     * @see #VERTICAL_BOTTOM\n     * @see #VERTICAL_JUSTIFY\n     */\n\n    public void setVerticalAlignment(short align)\n    {\n        format.setVerticalAlignment(align);\n    }\n\n    /**\n     * get the type of vertical alignment for the cell\n     * @return align the type of alignment\n     * @see #VERTICAL_TOP\n     * @see #VERTICAL_CENTER\n     * @see #VERTICAL_BOTTOM\n     * @see #VERTICAL_JUSTIFY\n     */\n\n    public short getVerticalAlignment()\n    {\n        return format.getVerticalAlignment();\n    }\n\n    /**\n     * set the degree of rotation for the text in the cell\n     * @param rotation degrees (between -90 and 90 degrees)\n     */\n\n    public void setRotation(short rotation)\n    {\n      if ((rotation < 0)&&(rotation >= -90)) {\n        rotation = (short)(90 - rotation);\n      }\n      else if ((rotation < -90)  ||(rotation > 90))\n        throw new IllegalArgumentException(\"The rotation must be between -90 and 90 degrees\");\n        format.setRotation(rotation);\n    }\n\n    /**\n     * get the degree of rotation for the text in the cell\n     * @return rotation degrees (between -90 and 90 degrees)\n     */\n\n    public short getRotation()\n    {\n      short rotation = format.getRotation();\n      if (rotation > 90)\n        rotation = (short)(90-rotation);\n      return rotation;\n    }\n\n    /**\n     * set the number of spaces to indent the text in the cell\n     * @param indent - number of spaces\n     */\n\n    public void setIndention(short indent)\n    {\n        format.setIndent(indent);\n    }\n\n    /**\n     * get the number of spaces to indent the text in the cell\n     * @return indent - number of spaces\n     */\n\n    public short getIndention()\n    {\n        return format.getIndent();\n    }\n\n    /**\n     * set the type of border to use for the left border of the cell\n     * @param border type\n     * @see #BORDER_NONE\n     * @see #BORDER_THIN\n     * @see #BORDER_MEDIUM\n     * @see #BORDER_DASHED\n     * @see #BORDER_DOTTED\n     * @see #BORDER_THICK\n     * @see #BORDER_DOUBLE\n     * @see #BORDER_HAIR\n     * @see #BORDER_MEDIUM_DASHED\n     * @see #BORDER_DASH_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT\n     * @see #BORDER_DASH_DOT_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT_DOT\n     * @see #BORDER_SLANTED_DASH_DOT\n     */\n\n    public void setBorderLeft(short border)\n    {\n        format.setIndentNotParentBorder(true);\n        format.setBorderLeft(border);\n    }\n\n    /**\n     * get the type of border to use for the left border of the cell\n     * @return border type\n     * @see #BORDER_NONE\n     * @see #BORDER_THIN\n     * @see #BORDER_MEDIUM\n     * @see #BORDER_DASHED\n     * @see #BORDER_DOTTED\n     * @see #BORDER_THICK\n     * @see #BORDER_DOUBLE\n     * @see #BORDER_HAIR\n     * @see #BORDER_MEDIUM_DASHED\n     * @see #BORDER_DASH_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT\n     * @see #BORDER_DASH_DOT_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT_DOT\n     * @see #BORDER_SLANTED_DASH_DOT\n     */\n\n    public short getBorderLeft()\n    {\n        return format.getBorderLeft();\n    }\n\n    /**\n     * set the type of border to use for the right border of the cell\n     * @param border type\n     * @see #BORDER_NONE\n     * @see #BORDER_THIN\n     * @see #BORDER_MEDIUM\n     * @see #BORDER_DASHED\n     * @see #BORDER_DOTTED\n     * @see #BORDER_THICK\n     * @see #BORDER_DOUBLE\n     * @see #BORDER_HAIR\n     * @see #BORDER_MEDIUM_DASHED\n     * @see #BORDER_DASH_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT\n     * @see #BORDER_DASH_DOT_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT_DOT\n     * @see #BORDER_SLANTED_DASH_DOT\n     */\n\n    public void setBorderRight(short border)\n    {\n        format.setIndentNotParentBorder(true);\n        format.setBorderRight(border);\n    }\n\n    /**\n     * get the type of border to use for the right border of the cell\n     * @return border type\n     * @see #BORDER_NONE\n     * @see #BORDER_THIN\n     * @see #BORDER_MEDIUM\n     * @see #BORDER_DASHED\n     * @see #BORDER_DOTTED\n     * @see #BORDER_THICK\n     * @see #BORDER_DOUBLE\n     * @see #BORDER_HAIR\n     * @see #BORDER_MEDIUM_DASHED\n     * @see #BORDER_DASH_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT\n     * @see #BORDER_DASH_DOT_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT_DOT\n     * @see #BORDER_SLANTED_DASH_DOT\n     */\n\n    public short getBorderRight()\n    {\n        return format.getBorderRight();\n    }\n\n    /**\n     * set the type of border to use for the top border of the cell\n     * @param border type\n     * @see #BORDER_NONE\n     * @see #BORDER_THIN\n     * @see #BORDER_MEDIUM\n     * @see #BORDER_DASHED\n     * @see #BORDER_DOTTED\n     * @see #BORDER_THICK\n     * @see #BORDER_DOUBLE\n     * @see #BORDER_HAIR\n     * @see #BORDER_MEDIUM_DASHED\n     * @see #BORDER_DASH_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT\n     * @see #BORDER_DASH_DOT_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT_DOT\n     * @see #BORDER_SLANTED_DASH_DOT\n     */\n\n    public void setBorderTop(short border)\n    {\n        format.setIndentNotParentBorder(true);\n        format.setBorderTop(border);\n    }\n\n    /**\n     * get the type of border to use for the top border of the cell\n     * @return border type\n     * @see #BORDER_NONE\n     * @see #BORDER_THIN\n     * @see #BORDER_MEDIUM\n     * @see #BORDER_DASHED\n     * @see #BORDER_DOTTED\n     * @see #BORDER_THICK\n     * @see #BORDER_DOUBLE\n     * @see #BORDER_HAIR\n     * @see #BORDER_MEDIUM_DASHED\n     * @see #BORDER_DASH_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT\n     * @see #BORDER_DASH_DOT_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT_DOT\n     * @see #BORDER_SLANTED_DASH_DOT\n     */\n\n    public short getBorderTop()\n    {\n        return format.getBorderTop();\n    }\n\n    /**\n     * set the type of border to use for the bottom border of the cell\n     * @param border type\n     * @see #BORDER_NONE\n     * @see #BORDER_THIN\n     * @see #BORDER_MEDIUM\n     * @see #BORDER_DASHED\n     * @see #BORDER_DOTTED\n     * @see #BORDER_THICK\n     * @see #BORDER_DOUBLE\n     * @see #BORDER_HAIR\n     * @see #BORDER_MEDIUM_DASHED\n     * @see #BORDER_DASH_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT\n     * @see #BORDER_DASH_DOT_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT_DOT\n     * @see #BORDER_SLANTED_DASH_DOT\n     */\n\n    public void setBorderBottom(short border)\n    {\n        format.setIndentNotParentBorder(true);\n        format.setBorderBottom(border);\n    }\n\n    /**\n     * get the type of border to use for the bottom border of the cell\n     * @return border type\n     * @see #BORDER_NONE\n     * @see #BORDER_THIN\n     * @see #BORDER_MEDIUM\n     * @see #BORDER_DASHED\n     * @see #BORDER_DOTTED\n     * @see #BORDER_THICK\n     * @see #BORDER_DOUBLE\n     * @see #BORDER_HAIR\n     * @see #BORDER_MEDIUM_DASHED\n     * @see #BORDER_DASH_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT\n     * @see #BORDER_DASH_DOT_DOT\n     * @see #BORDER_MEDIUM_DASH_DOT_DOT\n     * @see #BORDER_SLANTED_DASH_DOT\n     */\n\n    public short getBorderBottom()\n    {\n        return format.getBorderBottom();\n    }\n\n    /**\n     * set the color to use for the left border\n     * @param color\n     */\n\n    public void setLeftBorderColor(short color)\n    {\n        format.setLeftBorderPaletteIdx(color);\n    }\n\n    /**\n     * get the color to use for the left border\n     * @return color\n     */\n\n    public short getLeftBorderColor()\n    {\n        return format.getLeftBorderPaletteIdx();\n    }\n\n    /**\n     * set the color to use for the right border\n     * @param color\n     */\n\n    public void setRightBorderColor(short color)\n    {\n        format.setRightBorderPaletteIdx(color);\n    }\n\n    /**\n     * get the color to use for the left border\n     * @return color\n     */\n\n    public short getRightBorderColor()\n    {\n        return format.getRightBorderPaletteIdx();\n    }\n\n    /**\n     * set the color to use for the top border\n     * @param color\n     */\n\n    public void setTopBorderColor(short color)\n    {\n        format.setTopBorderPaletteIdx(color);\n    }\n\n    /**\n     * get the color to use for the top border\n     * @return color\n     */\n\n    public short getTopBorderColor()\n    {\n        return format.getTopBorderPaletteIdx();\n    }\n\n    /**\n     * set the color to use for the bottom border\n     * @param color\n     */\n\n    public void setBottomBorderColor(short color)\n    {\n        format.setBottomBorderPaletteIdx(color);\n    }\n\n    /**\n     * get the color to use for the left border\n     * @return color\n     */\n\n    public short getBottomBorderColor()\n    {\n        return format.getBottomBorderPaletteIdx();\n    }\n\n    /**\n     * setting to one fills the cell with the foreground color... No idea about\n     * other values\n     *\n     * @see #NO_FILL\n     * @see #SOLID_FOREGROUND\n     * @see #FINE_DOTS\n     * @see #ALT_BARS\n     * @see #SPARSE_DOTS\n     * @see #THICK_HORZ_BANDS\n     * @see #THICK_VERT_BANDS\n     * @see #THICK_BACKWARD_DIAG\n     * @see #THICK_FORWARD_DIAG\n     * @see #BIG_SPOTS\n     * @see #BRICKS\n     * @see #THIN_HORZ_BANDS\n     * @see #THIN_VERT_BANDS\n     * @see #THIN_BACKWARD_DIAG\n     * @see #THIN_FORWARD_DIAG\n     * @see #SQUARES\n     * @see #DIAMONDS\n     *\n     * @param fp  fill pattern (set to 1 to fill w/foreground color)\n     */\n    public void setFillPattern(short fp)\n    {\n        format.setAdtlFillPattern(fp);\n    }\n\n    /**\n     * get the fill pattern (??) - set to 1 to fill with foreground color\n     * @return fill pattern\n     */\n\n    public short getFillPattern()\n    {\n        return format.getAdtlFillPattern();\n    }\n    \n    /**\n     * Checks if the background and foreground fills are set correctly when one\n     * or the other is set to the default color.\n     * <p>Works like the logic table below:</p>\n     * <p>BACKGROUND   FOREGROUND</p>\n     * <p>NONE         AUTOMATIC</p>\n     * <p>0x41         0x40</p>\n     * <p>NONE         RED/ANYTHING</p>\n     * <p>0x40         0xSOMETHING</p> \n     */\n    private void checkDefaultBackgroundFills() {\n      if (format.getFillForeground() == org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index) {\n    \t  if (format.getFillBackground() != (org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index+1))\n    \t\t  setFillBackgroundColor((short)(org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index+1));\n      } else if (format.getFillBackground() == org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index+1)\n    \t  if (format.getFillForeground() != org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index)\n    \t\t  setFillBackgroundColor(org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index);\n    }\n\n    /**\n     * set the background fill color.\n     * <p>\n     * For example:\n     * <pre>\n     * cs.setFillPattern(HSSFCellStyle.FINE_DOTS );\n     * cs.setFillBackgroundColor(new HSSFColor.RED().getIndex()); \n     * </pre>\n     * optionally a Foreground and background fill can be applied:\n     * <i>Note: Ensure Foreground color is set prior to background</i>\n     * <pre>\n     * cs.setFillPattern(HSSFCellStyle.FINE_DOTS );\n     * cs.setFillForegroundColor(new HSSFColor.BLUE().getIndex());\n     * cs.setFillBackgroundColor(new HSSFColor.RED().getIndex()); \n     * </pre>\n     * or, for the special case of SOLID_FILL:\n     * <pre>\n     * cs.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND );\n     * cs.setFillForegroundColor(new HSSFColor.RED().getIndex());\n     * </pre>\n     * It is necessary to set the fill style in order\n     * for the color to be shown in the cell.\n     *\n     * @param bg  color\n     */\n\n    public void setFillBackgroundColor(short bg)\n    {    \t\n        format.setFillBackground(bg);\n        checkDefaultBackgroundFills();\n    }\n\n    /**\n     * get the background fill color\n     * @return fill color\n     */\n\n    public short getFillBackgroundColor()\n    {\n    \tshort result = format.getFillBackground();\n    \tif (result == (HSSFColor.AUTOMATIC.index+1))\n    \t\treturn HSSFColor.AUTOMATIC.index;\n    \telse return result;\n    }\n\n    /**\n     * set the foreground fill color\n     * <i>Note: Ensure Foreground color is set prior to background color.</i>\n     * @param bg  color\n     */\n\n    public void setFillForegroundColor(short bg)\n    {\n        format.setFillForeground(bg);\n        checkDefaultBackgroundFills();\n    }\n\n    /**\n     * get the foreground fill color\n     * @return fill color\n     */\n\n    public short getFillForegroundColor()\n    {\n        return format.getFillForeground();", "functions": [{"function_name": "getIndex", "code": "    public short getIndex()\n    {\n        return index;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDataFormat", "code": "    public void setDataFormat(short fmt)\n    {\n        format.setFormatIndex(fmt);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDataFormat", "code": "    public short getDataFormat()\n    {\n        return format.getFormatIndex();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFont", "code": "    public void setFont(HSSFFont font)\n    {\n        format.setIndentNotParentFont(true);\n        short fontindex = font.getIndex();\n        format.setFontIndex(fontindex);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getFontIndex", "code": "    public short getFontIndex()\n    {\n        return format.getFontIndex();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHidden", "code": "    public void setHidden(boolean hidden)\n    {\n        format.setIndentNotParentCellOptions(true);\n        format.setHidden(hidden);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getHidden", "code": "    public boolean getHidden()\n    {\n        return format.isHidden();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLocked", "code": "    public void setLocked(boolean locked)\n    {\n        format.setIndentNotParentCellOptions(true);\n        format.setLocked(locked);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLocked", "code": "    public boolean getLocked()\n    {\n        return format.isLocked();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAlignment", "code": "    public void setAlignment(short align)\n    {\n        format.setIndentNotParentAlignment(true);\n        format.setAlignment(align);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAlignment", "code": "    public short getAlignment()\n    {\n        return format.getAlignment();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setWrapText", "code": "    public void setWrapText(boolean wrapped)\n    {\n        format.setIndentNotParentAlignment(true);\n        format.setWrapText(wrapped);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getWrapText", "code": "    public boolean getWrapText()\n    {\n        return format.getWrapText();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVerticalAlignment", "code": "    public void setVerticalAlignment(short align)\n    {\n        format.setVerticalAlignment(align);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVerticalAlignment", "code": "    public short getVerticalAlignment()\n    {\n        return format.getVerticalAlignment();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRotation", "code": "    public void setRotation(short rotation)\n    {\n      if ((rotation < 0)&&(rotation >= -90)) {\n        rotation = (short)(90 - rotation);\n      }\n      else if ((rotation < -90)  ||(rotation > 90))\n        throw new IllegalArgumentException(\"The rotation must be between -90 and 90 degrees\");\n        format.setRotation(rotation);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [5, 8], [5, 9], [6, 10], [7, 11], [7, 12], [1, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 5], [9, 5], [10, 6], [11, 7], [12, 7], [13, 1], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getRotation", "code": "    public short getRotation()\n    {\n      short rotation = format.getRotation();\n      if (rotation > 90)\n        rotation = (short)(90-rotation);\n      return rotation;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [3, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 3], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setIndention", "code": "    public void setIndention(short indent)\n    {\n        format.setIndent(indent);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIndention", "code": "    public short getIndention()\n    {\n        return format.getIndent();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBorderLeft", "code": "    public void setBorderLeft(short border)\n    {\n        format.setIndentNotParentBorder(true);\n        format.setBorderLeft(border);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBorderLeft", "code": "    public short getBorderLeft()\n    {\n        return format.getBorderLeft();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBorderRight", "code": "    public void setBorderRight(short border)\n    {\n        format.setIndentNotParentBorder(true);\n        format.setBorderRight(border);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBorderRight", "code": "    public short getBorderRight()\n    {\n        return format.getBorderRight();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBorderTop", "code": "    public void setBorderTop(short border)\n    {\n        format.setIndentNotParentBorder(true);\n        format.setBorderTop(border);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBorderTop", "code": "    public short getBorderTop()\n    {\n        return format.getBorderTop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBorderBottom", "code": "    public void setBorderBottom(short border)\n    {\n        format.setIndentNotParentBorder(true);\n        format.setBorderBottom(border);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBorderBottom", "code": "    public short getBorderBottom()\n    {\n        return format.getBorderBottom();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLeftBorderColor", "code": "    public void setLeftBorderColor(short color)\n    {\n        format.setLeftBorderPaletteIdx(color);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLeftBorderColor", "code": "    public short getLeftBorderColor()\n    {\n        return format.getLeftBorderPaletteIdx();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRightBorderColor", "code": "    public void setRightBorderColor(short color)\n    {\n        format.setRightBorderPaletteIdx(color);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRightBorderColor", "code": "    public short getRightBorderColor()\n    {\n        return format.getRightBorderPaletteIdx();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTopBorderColor", "code": "    public void setTopBorderColor(short color)\n    {\n        format.setTopBorderPaletteIdx(color);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTopBorderColor", "code": "    public short getTopBorderColor()\n    {\n        return format.getTopBorderPaletteIdx();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBottomBorderColor", "code": "    public void setBottomBorderColor(short color)\n    {\n        format.setBottomBorderPaletteIdx(color);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBottomBorderColor", "code": "    public short getBottomBorderColor()\n    {\n        return format.getBottomBorderPaletteIdx();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFillPattern", "code": "    public void setFillPattern(short fp)\n    {\n        format.setAdtlFillPattern(fp);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFillPattern", "code": "    public short getFillPattern()\n    {\n        return format.getAdtlFillPattern();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "checkDefaultBackgroundFills", "code": "    private void checkDefaultBackgroundFills() {\n      if (format.getFillForeground() == org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index) {\n    \t  if (format.getFillBackground() != (org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index+1))\n    \t\t  setFillBackgroundColor((short)(org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index+1));\n      } else if (format.getFillBackground() == org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index+1)\n    \t  if (format.getFillForeground() != org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index)\n    \t\t  setFillBackgroundColor(org.apache.poi.hssf.util.HSSFColor.AUTOMATIC.index);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [1, 6], [3, 7], [4, 8], [5, 9], [5, 10], [6, 11], [4, 12], [8, 13], [9, 14], [6, 15], [11, 16], [11, 17], [16, 18], [15, 19], [19, 20], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 1], [7, 3], [8, 4], [9, 5], [10, 5], [11, 6], [12, 4], [13, 8], [14, 9], [15, 6], [16, 11], [17, 11], [18, 16], [19, 15], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "setFillBackgroundColor", "code": "    public void setFillBackgroundColor(short bg)\n    {    \t\n        format.setFillBackground(bg);\n        checkDefaultBackgroundFills();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFillBackgroundColor", "code": "    public short getFillBackgroundColor()\n    {\n    \tshort result = format.getFillBackground();\n    \tif (result == (HSSFColor.AUTOMATIC.index+1))\n    \t\treturn HSSFColor.AUTOMATIC.index;\n    \telse return result;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [5, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 5], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setFillForegroundColor", "code": "    public void setFillForegroundColor(short bg)\n    {\n        format.setFillForeground(bg);\n        checkDefaultBackgroundFills();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFillForegroundColor", "code": "    public short getFillForegroundColor()\n    {\n        return format.getFillForeground();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFCellStyle", "code": "    protected HSSFCellStyle(short index, ExtendedFormatRecord rec)\n    {\n        this.index = index;\n        format     = rec;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.5-389", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/util/FileNameMapper.java", "language": "java", "name": "org.apache.tools.ant.util.FileNameMapper", "code": "public interface FileNameMapper {\n\n    /**\n     * Sets the from part of the transformation rule.\n     */\n    void setFrom(String from);\n\n    /**\n     * Sets the to part of the transformation rule.\n     */\n    void setTo(String to);\n\n    /**\n     * Returns an array containing the target filename(s) for the\n     * given source file.\n     *\n     * <p>if the given rule doesn't apply to the source file,\n     * implementation must return null. SourceFileScanner will then\n     * omit the source file in question.</p> \n     *\n     * @param sourceFileName the name of the source file relative to\n     *                       some given basedirectory.\n     */\n    String[] mapFileName(String sourceFileName);", "functions": [{"function_name": "setFrom", "code": "    void setFrom(String from);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTo", "code": "    void setTo(String to);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "mapFileName", "code": "    String[] mapFileName(String sourceFileName);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.6-642", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/tar/TarUtils.java", "language": "java", "name": "org.apache.tools.tar.TarUtils", "code": "public class TarUtils {\n\n    /**\n     * Parse an octal string from a header buffer. This is used for the\n     * file permission mode value.\n     *\n     * @param header The header buffer from which to parse.\n     * @param offset The offset into the buffer from which to parse.\n     * @param length The number of header bytes to parse.\n     * @return The long value of the octal string.\n     */\n    public static long parseOctal(byte[] header, int offset, int length) {\n        long    result = 0;\n        boolean stillPadding = true;\n        int     end = offset + length;\n\n        for (int i = offset; i < end; ++i) {\n            if (header[i] == 0) {\n                break;\n            }\n\n            if (header[i] == (byte) ' ' || header[i] == '0') {\n                if (stillPadding) {\n                    continue;\n                }\n\n                if (header[i] == (byte) ' ') {\n                    break;\n                }\n            }\n\n            stillPadding = false;\n            result = (result << 3) + (header[i] - '0');\n        }\n\n        return result;\n    }\n\n    /**\n     * Parse an entry name from a header buffer.\n     *\n     * @param header The header buffer from which to parse.\n     * @param offset The offset into the buffer from which to parse.\n     * @param length The number of header bytes to parse.\n     * @return The header's entry name.\n     */\n    public static StringBuffer parseName(byte[] header, int offset, int length) {\n        StringBuffer result = new StringBuffer(length);\n        int          end = offset + length;\n\n        for (int i = offset; i < end; ++i) {\n            if (header[i] == 0) {\n                break;\n            }\n\n            result.append((char) header[i]);\n        }\n\n        return result;\n    }\n\n    /**\n     * Determine the number of bytes in an entry name.\n     *\n     * @param name The header name from which to parse.\n     * @param offset The offset into the buffer from which to parse.\n     * @param length The number of header bytes to parse.\n     * @return The number of bytes in a header's entry name.\n     */\n    public static int getNameBytes(StringBuffer name, byte[] buf, int offset, int length) {\n        int i;\n\n        for (i = 0; i < length && i < name.length(); ++i) {\n            buf[offset + i] = (byte) name.charAt(i);\n        }\n\n        for (; i < length; ++i) {\n            buf[offset + i] = 0;\n        }\n\n        return offset + length;\n    }\n\n    /**\n     * Parse an octal integer from a header buffer.\n     *\n     * @param value The header value\n     * @param offset The offset into the buffer from which to parse.\n     * @param length The number of header bytes to parse.\n     * @return The integer value of the octal bytes.\n     */\n    public static int getOctalBytes(long value, byte[] buf, int offset, int length) {\n        int    idx = length - 1;\n\n        buf[offset + idx] = 0;\n        --idx;\n        buf[offset + idx] = (byte) ' ';\n        --idx;\n\n        if (value == 0) {\n            buf[offset + idx] = (byte) '0';\n            --idx;\n        } else {\n            for (long val = value; idx >= 0 && val > 0; --idx) {\n                buf[offset + idx] = (byte) ((byte) '0' + (byte) (val & 7));\n                val = val >> 3;\n            }\n        }\n\n        for (; idx >= 0; --idx) {\n            buf[offset + idx] = (byte) ' ';\n        }\n\n        return offset + length;\n    }\n\n    /**\n     * Parse an octal long integer from a header buffer.\n     *\n     * @param value The header value\n     * @param offset The offset into the buffer from which to parse.\n     * @param length The number of header bytes to parse.\n     * @return The long value of the octal bytes.\n     */\n    public static int getLongOctalBytes(long value, byte[] buf, int offset, int length) {\n        byte[] temp = new byte[length + 1];\n\n        getOctalBytes(value, temp, 0, length + 1);\n        System.arraycopy(temp, 0, buf, offset, length);\n\n        return offset + length;\n    }\n\n    /**\n     * Parse the checksum octal integer from a header buffer.\n     *\n     * @param value The header value\n     * @param offset The offset into the buffer from which to parse.\n     * @param length The number of header bytes to parse.\n     * @return The integer value of the entry's checksum.\n     */\n    public static int getCheckSumOctalBytes(long value, byte[] buf, int offset, int length) {\n        getOctalBytes(value, buf, offset, length);\n\n        buf[offset + length - 1] = (byte) ' ';\n        buf[offset + length - 2] = 0;\n\n        return offset + length;\n    }\n\n    /**\n     * Compute the checksum of a tar entry header.\n     *\n     * @param buf The tar entry's header buffer.\n     * @return The computed checksum.\n     */\n    public static long computeCheckSum(byte[] buf) {\n        long sum = 0;\n\n        for (int i = 0; i < buf.length; ++i) {\n            sum += 255 & buf[i];\n        }\n\n        return sum;", "functions": [{"function_name": "parseOctal", "code": "    public static long parseOctal(byte[] header, int offset, int length) {\n        long    result = 0;\n        boolean stillPadding = true;\n        int     end = offset + length;\n\n        for (int i = offset; i < end; ++i) {\n            if (header[i] == 0) {\n                break;\n            }\n\n            if (header[i] == (byte) ' ' || header[i] == '0') {\n                if (stillPadding) {\n                    continue;\n                }\n\n                if (header[i] == (byte) ' ') {\n                    break;\n                }\n            }\n\n            stillPadding = false;\n            result = (result << 3) + (header[i] - '0');\n        }\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [2, 11], [3, 12], [4, 13], [5, 14], [2, 15], [2, 16], [10, 17], [11, 18], [15, 19], [16, 20], [10, 21], [10, 22], [17, 23], [17, 24], [11, 25], [18, 26], [19, 27], [19, 28], [21, 29], [23, 30], [27, 31], [28, 32], [21, 33], [22, 34], [24, 35], [29, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 2], [12, 3], [13, 4], [14, 5], [15, 2], [16, 2], [17, 10], [18, 11], [19, 15], [20, 16], [21, 10], [22, 10], [23, 17], [24, 17], [25, 11], [26, 18], [27, 19], [28, 19], [29, 21], [30, 23], [31, 27], [32, 28], [33, 21], [34, 22], [35, 24], [36, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "parseName", "code": "    public static StringBuffer parseName(byte[] header, int offset, int length) {\n        StringBuffer result = new StringBuffer(length);\n        int          end = offset + length;\n\n        for (int i = offset; i < end; ++i) {\n            if (header[i] == 0) {\n                break;\n            }\n\n            result.append((char) header[i]);\n        }\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [4, 11], [2, 12], [9, 13], [9, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 4], [12, 2], [13, 9], [14, 9], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getNameBytes", "code": "    public static int getNameBytes(StringBuffer name, byte[] buf, int offset, int length) {\n        int i;\n\n        for (i = 0; i < length && i < name.length(); ++i) {\n            buf[offset + i] = (byte) name.charAt(i);\n        }\n\n        for (; i < length; ++i) {\n            buf[offset + i] = 0;\n        }\n\n        return offset + length;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [3, 12], [11, 13], [11, 14], [12, 15], [2, 16], [3, 17], [13, 18], [16, 19], [17, 20], [16, 21], [17, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 3], [13, 11], [14, 11], [15, 12], [16, 2], [17, 3], [18, 13], [19, 16], [20, 17], [21, 16], [22, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getOctalBytes", "code": "    public static int getOctalBytes(long value, byte[] buf, int offset, int length) {\n        int    idx = length - 1;\n\n        buf[offset + idx] = 0;\n        --idx;\n        buf[offset + idx] = (byte) ' ';\n        --idx;\n\n        if (value == 0) {\n            buf[offset + idx] = (byte) '0';\n            --idx;\n        } else {\n            for (long val = value; idx >= 0 && val > 0; --idx) {\n                buf[offset + idx] = (byte) ((byte) '0' + (byte) (val & 7));\n                val = val >> 3;\n            }\n        }\n\n        for (; idx >= 0; --idx) {\n            buf[offset + idx] = (byte) ' ';\n        }\n\n        return offset + length;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [0, 12], [0, 13], [10, 14], [3, 15], [11, 16], [13, 17], [4, 18], [2, 19], [15, 20], [3, 21], [12, 22], [18, 23], [20, 24], [20, 25], [12, 26], [13, 27], [19, 28], [15, 29], [15, 30], [24, 31], [25, 32], [21, 33], [19, 34], [29, 35], [21, 36], [35, 37], [30, 38], [30, 39], [38, 40], [38, 41], [40, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 0], [13, 0], [14, 10], [15, 3], [16, 11], [17, 13], [18, 4], [19, 2], [20, 15], [21, 3], [22, 12], [23, 18], [24, 20], [25, 20], [26, 12], [27, 13], [28, 19], [29, 15], [30, 15], [31, 24], [32, 25], [33, 21], [34, 19], [35, 29], [36, 21], [37, 35], [38, 30], [39, 30], [40, 38], [41, 38], [42, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getLongOctalBytes", "code": "    public static int getLongOctalBytes(long value, byte[] buf, int offset, int length) {\n        byte[] temp = new byte[length + 1];\n\n        getOctalBytes(value, temp, 0, length + 1);\n        System.arraycopy(temp, 0, buf, offset, length);\n\n        return offset + length;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [8, 10], [9, 11], [9, 12], [11, 13], [2, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 8], [11, 9], [12, 9], [13, 11], [14, 2], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getCheckSumOctalBytes", "code": "    public static int getCheckSumOctalBytes(long value, byte[] buf, int offset, int length) {\n        getOctalBytes(value, buf, offset, length);\n\n        buf[offset + length - 1] = (byte) ' ';\n        buf[offset + length - 2] = 0;\n\n        return offset + length;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [7, 10], [8, 11], [7, 12], [8, 13], [12, 14], [12, 15], [13, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 7], [11, 8], [12, 7], [13, 8], [14, 12], [15, 12], [16, 13], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "computeCheckSum", "code": "    public static long computeCheckSum(byte[] buf) {\n        long sum = 0;\n\n        for (int i = 0; i < buf.length; ++i) {\n            sum += 255 & buf[i];\n        }\n\n        return sum;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [2, 7], [2, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 2], [8, 2], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "xalan-2.7-8096", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/ref/DTMDocumentImpl.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMDocumentImpl", "code": "public class DTMDocumentImpl\nimplements DTM, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler\n{\n\n        protected static final byte DOCHANDLE_SHIFT = 22;\n        protected static final int NODEHANDLE_MASK = (1 << (DOCHANDLE_SHIFT + 1)) - 1;\n        protected static final int DOCHANDLE_MASK = -1 - NODEHANDLE_MASK;\n\n\n\n\n        private boolean previousSiblingWasParent = false;\n        int gotslot[] = new int[4];\n\n        private boolean done = false;\n        boolean m_isError = false;\n\n        private final boolean DEBUG = false;\n\n        /** The document base URI. */\n        protected String m_documentBaseURI;\n\n  /** If we're building the model incrementally on demand, we need to\n   * be able to tell the source when to send us more data.\n   *\n   * Note that if this has not been set, and you attempt to read ahead\n   * of the current build point, we'll probably throw a null-pointer\n   * exception. We could try to wait-and-retry instead, as a very poor\n   * fallback, but that has all the known problems with multithreading\n   * on multiprocessors and we Don't Want to Go There.\n   *\n   * @see setIncrementalSAXSource\n   */\n  private IncrementalSAXSource m_incrSAXSource=null;\n\n\n\n        ChunkedIntArray nodes = new ChunkedIntArray(4);\n\n        private FastStringBuffer m_char = new FastStringBuffer();\n        private int m_char_current_start=0;\n\n        private DTMStringPool m_localNames = new DTMStringPool();\n        private DTMStringPool m_nsNames = new DTMStringPool();\n        private DTMStringPool m_prefixNames = new DTMStringPool();\n\n        private ExpandedNameTable m_expandedNames=\n                new ExpandedNameTable();\n\n        private XMLStringFactory m_xsf;\n\n\n        /**\n         * Construct a DTM.\n         *\n         * @param documentNumber the ID number assigned to this document.\n         * It will be shifted up into the high bits and returned as part of\n         * all node ID numbers, so those IDs indicate which document they\n         * came from as well as a location within the document. It is the\n         * DTMManager's responsibility to assign a unique number to each\n         * document.\n         */\n        public DTMDocumentImpl(DTMManager mgr, int documentNumber,\n                               DTMWSFilter whiteSpaceFilter,\n                               XMLStringFactory xstringfactory){\n                m_xsf = xstringfactory;\n        }\n\n  /** Bind a IncrementalSAXSource to this DTM. If we discover we need nodes\n   * that have not yet been built, we will ask this object to send us more\n   * events, and it will manage interactions with its data sources.\n   *\n   * Note that we do not actually build the IncrementalSAXSource, since we don't\n   * know what source it's reading from, what thread that source will run in,\n   * or when it will run.\n   *\n   * @param source The IncrementalSAXSource that we want to recieve events from\n   * on demand.\n   */\n  public void setIncrementalSAXSource(IncrementalSAXSource source)\n  {\n    m_incrSAXSource=source;\n\n    source.setContentHandler(this);\n    source.setLexicalHandler(this);\n\n  }\n\n        /**\n         * Wrapper for ChunkedIntArray.append, to automatically update the\n         * previous sibling's \"next\" reference (if necessary) and periodically\n         * wake a reader who may have encountered incomplete data and entered\n         * a wait state.\n         * @param w0 int As in ChunkedIntArray.append\n         * @param w1 int As in ChunkedIntArray.append\n         * @param w2 int As in ChunkedIntArray.append\n         * @param w3 int As in ChunkedIntArray.append\n         * @return int As in ChunkedIntArray.append\n         * @see ChunkedIntArray.append\n         */\n        private final int appendNode(int w0, int w1, int w2, int w3)\n        {\n                int slotnumber = nodes.appendSlot(w0, w1, w2, w3);\n\n                if (DEBUG) System.out.println(slotnumber+\": \"+w0+\" \"+w1+\" \"+w2+\" \"+w3);\n\n                if (previousSiblingWasParent)\n                        nodes.writeEntry(previousSibling,2,slotnumber);\n\n\n                return slotnumber;\n        }\n\n\n        /**\n         * Set an implementation dependent feature.\n         * <p>\n         * %REVIEW% Do we really expect to set features on DTMs?\n         *\n         * @param featureId A feature URL.\n         * @param state true if this feature should be on, false otherwise.\n         */\n        public void setFeature(String featureId, boolean state) {};\n\n        /**\n         * Set a reference pointer to the element name symbol table.\n         * %REVIEW% Should this really be Public? Changing it while\n         * DTM is in use would be a disaster.\n         *\n         * @param poolRef DTMStringPool reference to an instance of table.\n         */\n        public void setLocalNameTable(DTMStringPool poolRef) {\n                m_localNames = poolRef;\n        }\n\n        /**\n         * Get a reference pointer to the element name symbol table.\n         *\n         * @return DTMStringPool reference to an instance of table.\n         */\n        public DTMStringPool getLocalNameTable() {\n                 return m_localNames;\n         }\n\n        /**\n         * Set a reference pointer to the namespace URI symbol table.\n         * %REVIEW% Should this really be Public? Changing it while\n         * DTM is in use would be a disaster.\n         *\n         * @param poolRef DTMStringPool reference to an instance of table.\n         */\n        public void setNsNameTable(DTMStringPool poolRef) {\n                m_nsNames = poolRef;\n        }\n\n        /**\n         * Get a reference pointer to the namespace URI symbol table.\n         *\n         * @return DTMStringPool reference to an instance of table.\n         */\n        public DTMStringPool getNsNameTable() {\n                 return m_nsNames;\n         }\n\n        /**\n         * Set a reference pointer to the prefix name symbol table.\n         * %REVIEW% Should this really be Public? Changing it while\n         * DTM is in use would be a disaster.\n         *\n         * @param poolRef DTMStringPool reference to an instance of table.\n         */\n        public void setPrefixNameTable(DTMStringPool poolRef) {\n                m_prefixNames = poolRef;\n        }\n\n        /**\n         * Get a reference pointer to the prefix name symbol table.\n         *\n         * @return DTMStringPool reference to an instance of table.\n         */\n        public DTMStringPool getPrefixNameTable() {\n                return m_prefixNames;\n        }\n\n         /**\n          * Set a reference pointer to the content-text repository\n          *\n          * @param buffer FastStringBuffer reference to an instance of\n          * buffer\n          */\n         void setContentBuffer(FastStringBuffer buffer) {\n                 m_char = buffer;\n         }\n\n         /**\n          * Get a reference pointer to the content-text repository\n          *\n          * @return FastStringBuffer reference to an instance of buffer\n          */\n         FastStringBuffer getContentBuffer() {\n                 return m_char;\n         }\n\n  /** getContentHandler returns \"our SAX builder\" -- the thing that\n   * someone else should send SAX events to in order to extend this\n   * DTM model.\n   *\n   * @return null if this model doesn't respond to SAX events,\n   * \"this\" if the DTM object has a built-in SAX ContentHandler,\n   * the IncrementalSAXSource if we're bound to one and should receive\n   * the SAX stream via it for incremental build purposes...\n   * */\n  public org.xml.sax.ContentHandler getContentHandler()\n  {\n    if (m_incrSAXSource instanceof IncrementalSAXSource_Filter)\n      return (ContentHandler) m_incrSAXSource;\n    else\n      return this;\n  }\n\n  /**\n   * Return this DTM's lexical handler.\n   *\n   * %REVIEW% Should this return null if constrution already done/begun?\n   *\n   * @return null if this model doesn't respond to lexical SAX events,\n   * \"this\" if the DTM object has a built-in SAX ContentHandler,\n   * the IncrementalSAXSource if we're bound to one and should receive\n   * the SAX stream via it for incremental build purposes...\n   */\n  public LexicalHandler getLexicalHandler()\n  {\n\n    if (m_incrSAXSource instanceof IncrementalSAXSource_Filter)\n      return (LexicalHandler) m_incrSAXSource;\n    else\n      return this;\n  }\n\n  /**\n   * Return this DTM's EntityResolver.\n   *\n   * @return null if this model doesn't respond to SAX entity ref events.\n   */\n  public org.xml.sax.EntityResolver getEntityResolver()\n  {\n\n    return null;\n  }\n\n  /**\n   * Return this DTM's DTDHandler.\n   *\n   * @return null if this model doesn't respond to SAX dtd events.\n   */\n  public org.xml.sax.DTDHandler getDTDHandler()\n  {\n\n    return null;\n  }\n\n  /**\n   * Return this DTM's ErrorHandler.\n   *\n   * @return null if this model doesn't respond to SAX error events.\n   */\n  public org.xml.sax.ErrorHandler getErrorHandler()\n  {\n\n    return null;\n  }\n\n  /**\n   * Return this DTM's DeclHandler.\n   *\n   * @return null if this model doesn't respond to SAX Decl events.\n   */\n  public org.xml.sax.ext.DeclHandler getDeclHandler()\n  {\n\n    return null;\n  }\n\n  /** @return true iff we're building this model incrementally (eg\n   * we're partnered with a IncrementalSAXSource) and thus require that the\n   * transformation and the parse run simultaneously. Guidance to the\n   * DTMManager.\n   * */\n  public boolean needsTwoThreads()\n  {\n    return null!=m_incrSAXSource;\n  }\n\n\n  public void characters(char[] ch, int start, int length)\n       throws org.xml.sax.SAXException\n  {\n    m_char.append(ch,start,length);\n  }\n\n  private void processAccumulatedText()\n  {\n    int len=m_char.length();\n    if(len!=m_char_current_start)\n      {\n        appendTextChild(m_char_current_start,len-m_char_current_start);\n        m_char_current_start=len;\n      }\n  }\n  public void endDocument()\n       throws org.xml.sax.SAXException\n  {\n    appendEndDocument();\n  }\n  public void endElement(java.lang.String namespaceURI, java.lang.String localName,\n      java.lang.String qName)\n       throws org.xml.sax.SAXException\n  {\n    processAccumulatedText();\n    appendEndElement();\n  }\n  public void endPrefixMapping(java.lang.String prefix)\n       throws org.xml.sax.SAXException\n  {\n  }\n  public void ignorableWhitespace(char[] ch, int start, int length)\n       throws org.xml.sax.SAXException\n  {\n  }\n  public void processingInstruction(java.lang.String target, java.lang.String data)\n       throws org.xml.sax.SAXException\n  {\n    processAccumulatedText();\n  }\n  public void setDocumentLocator(Locator locator)\n  {\n  }\n  public void skippedEntity(java.lang.String name)\n       throws org.xml.sax.SAXException\n  {\n    processAccumulatedText();\n  }\n  public void startDocument()\n       throws org.xml.sax.SAXException\n  {\n    appendStartDocument();\n  }\n  public void startElement(java.lang.String namespaceURI, java.lang.String localName,\n      java.lang.String qName, Attributes atts)\n       throws org.xml.sax.SAXException\n  {\n    processAccumulatedText();\n\n    String prefix=null;\n    int colon=qName.indexOf(':');\n    if(colon>0)\n      prefix=qName.substring(0,colon);\n\n    /**/System.out.println(\"Prefix=\"+prefix+\" index=\"+m_prefixNames.stringToIndex(prefix));\n    appendStartElement(m_nsNames.stringToIndex(namespaceURI),\n                     m_localNames.stringToIndex(localName));\n\n    int nAtts=(atts==null) ? 0 : atts.getLength();\n    for(int i=nAtts-1;i>=0;--i)\n      {\n        qName=atts.getQName(i);\n        if(qName.startsWith(\"xmlns:\") || \"xmlns\".equals(qName))\n          {\n            prefix=null;\n            colon=qName.indexOf(':');\n            if(colon>0)\n              {\n                prefix=qName.substring(0,colon);\n              }\n            else\n              {\n              }\n\n\n            appendNSDeclaration(\n                                    m_prefixNames.stringToIndex(prefix),\n                                    m_nsNames.stringToIndex(atts.getValue(i)),\n                                    atts.getType(i).equalsIgnoreCase(\"ID\"));\n          }\n      }\n\n    for(int i=nAtts-1;i>=0;--i)\n      {\n        qName=atts.getQName(i);\n        if(!(qName.startsWith(\"xmlns:\") || \"xmlns\".equals(qName)))\n          {\n            prefix=null;\n            colon=qName.indexOf(':');\n            if(colon>0)\n              {\n                prefix=qName.substring(0,colon);\n                localName=qName.substring(colon+1);\n              }\n            else\n              {\n                localName=qName;\n              }\n\n\n            int contentEnd=m_char.length();\n\n            if(!(\"xmlns\".equals(prefix) || \"xmlns\".equals(qName)))\n              appendAttribute(m_nsNames.stringToIndex(atts.getURI(i)),\n                                  m_localNames.stringToIndex(localName),\n                                  m_prefixNames.stringToIndex(prefix),\n                                  atts.getType(i).equalsIgnoreCase(\"ID\"),\n                                  m_char_current_start, contentEnd-m_char_current_start);\n            m_char_current_start=contentEnd;\n          }\n      }\n  }\n  public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)\n       throws org.xml.sax.SAXException\n  {\n  }\n\n  public void comment(char[] ch, int start, int length)\n       throws org.xml.sax.SAXException\n  {\n    processAccumulatedText();\n\n    appendComment(m_char_current_start,length);\n    m_char_current_start+=length;\n  }\n  public void endCDATA()\n       throws org.xml.sax.SAXException\n  {\n  }\n  public void endDTD()\n       throws org.xml.sax.SAXException\n  {\n  }\n  public void endEntity(java.lang.String name)\n       throws org.xml.sax.SAXException\n  {\n  }\n  public void startCDATA()\n       throws org.xml.sax.SAXException\n  {\n  }\n  public void startDTD(java.lang.String name, java.lang.String publicId,\n      java.lang.String systemId)\n       throws org.xml.sax.SAXException\n  {\n  }\n  public void startEntity(java.lang.String name)\n       throws org.xml.sax.SAXException\n  {\n  }\n\n\n\n        /**\n         * Reset a dtm document to its initial (empty) state.\n         *\n         * The DTMManager will invoke this method when the dtm is created.\n         *\n         * @param documentNumber the handle for the DTM document.\n         */\n        final void initDocument(int documentNumber)\n        {\n                m_docHandle = documentNumber<<DOCHANDLE_SHIFT;\n\n                nodes.writeSlot(0,DOCUMENT_NODE,-1,-1,0);\n                done = false;\n        }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n        /** Given a node handle, test if it has child nodes.\n         * <p> %REVIEW% This is obviously useful at the DOM layer, where it\n         * would permit testing this without having to create a proxy\n         * node. It's less useful in the DTM API, where\n         * (dtm.getFirstChild(nodeHandle)!=DTM.NULL) is just as fast and\n         * almost as self-evident. But it's a convenience, and eases porting\n         * of DOM code to DTM.  </p>\n         *\n         * @param nodeHandle int Handle of the node.\n         * @return int true if the given node has child nodes.\n         */\n        public boolean hasChildNodes(int nodeHandle) {\n                return(getFirstChild(nodeHandle) != NULL);\n        }\n\n        /**\n         * Given a node handle, get the handle of the node's first child.\n         * If not yet resolved, waits for more nodes to be added to the document and\n         * tries again.\n         *\n         * @param nodeHandle int Handle of the node.\n         * @return int DTM node-number of first child, or DTM.NULL to indicate none exists.\n         */\n        public int getFirstChild(int nodeHandle) {\n\n                nodeHandle &= NODEHANDLE_MASK;\n                nodes.readSlot(nodeHandle, gotslot);\n\n                short type = (short) (gotslot[0] & 0xFFFF);\n\n                if ((type == ELEMENT_NODE) || (type == DOCUMENT_NODE) ||\n                                (type == ENTITY_REFERENCE_NODE)) {\n\n\n                        int kid = nodeHandle + 1;\n                        nodes.readSlot(kid, gotslot);\n                        while (ATTRIBUTE_NODE == (gotslot[0] & 0xFFFF)) {\n                                kid = gotslot[2];\n                                if (kid == NULL) return NULL;\n                                nodes.readSlot(kid, gotslot);\n                        }\n                        if (gotslot[1] == nodeHandle)\n                        {\n                          int firstChild = kid | m_docHandle;\n\n                          return firstChild;\n                        }\n                }\n\n                return NULL;\n        }\n\n        /**\n        * Given a node handle, advance to its last child.\n        * If not yet resolved, waits for more nodes to be added to the document and\n        * tries again.\n        *\n        * @param nodeHandle int Handle of the node.\n        * @return int Node-number of last child,\n        * or DTM.NULL to indicate none exists.\n        */\n        public int getLastChild(int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n                int lastChild = NULL;\n                for (int nextkid = getFirstChild(nodeHandle); nextkid != NULL;\n                                nextkid = getNextSibling(nextkid)) {\n                        lastChild = nextkid;\n                }\n                return lastChild | m_docHandle;\n        }\n\n        /**\n         * Retrieves an attribute node by by qualified name and namespace URI.\n         *\n         * @param nodeHandle int Handle of the node upon which to look up this attribute.\n         * @param namespaceURI The namespace URI of the attribute to\n         *   retrieve, or null.\n         * @param name The local name of the attribute to\n         *   retrieve.\n         * @return The attribute node handle with the specified name (\n         *   <code>nodeName</code>) or <code>DTM.NULL</code> if there is no such\n         *   attribute.\n         */\n        public int getAttributeNode(int nodeHandle, String namespaceURI, String name) {\n                int nsIndex = m_nsNames.stringToIndex(namespaceURI),\n                                                                        nameIndex = m_localNames.stringToIndex(name);\n                nodeHandle &= NODEHANDLE_MASK;\n                nodes.readSlot(nodeHandle, gotslot);\n                short type = (short) (gotslot[0] & 0xFFFF);\n                if (type == ELEMENT_NODE)\n                        nodeHandle++;\n                while (type == ATTRIBUTE_NODE) {\n                        if ((nsIndex == (gotslot[0] << 16)) && (gotslot[3] == nameIndex))\n                                return nodeHandle | m_docHandle;\n                        nodeHandle = gotslot[2];\n                        nodes.readSlot(nodeHandle, gotslot);\n                }\n                return NULL;\n        }\n\n        /**\n         * Given a node handle, get the index of the node's first attribute.\n         *\n         * @param nodeHandle int Handle of the Element node.\n         * @return Handle of first attribute, or DTM.NULL to indicate none exists.\n         */\n        public int getFirstAttribute(int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n\n\n                if (ELEMENT_NODE != (nodes.readEntry(nodeHandle, 0) & 0xFFFF))\n                        return NULL;\n                nodeHandle++;\n                return(ATTRIBUTE_NODE == (nodes.readEntry(nodeHandle, 0) & 0xFFFF)) ?\n                nodeHandle | m_docHandle : NULL;\n        }\n\n        /**\n         * Given a node handle, get the index of the node's first child.\n         * If not yet resolved, waits for more nodes to be added to the document and\n         * tries again\n         *\n         * @param nodeHandle handle to node, which should probably be an element\n         *                   node, but need not be.\n         *\n         * @param inScope    true if all namespaces in scope should be returned,\n         *                   false if only the namespace declarations should be\n         *                   returned.\n         * @return handle of first namespace, or DTM.NULL to indicate none exists.\n         */\n        public int getFirstNamespaceNode(int nodeHandle, boolean inScope) {\n\n                return NULL;\n        }\n\n        /**\n         * Given a node handle, advance to its next sibling.\n         *\n         * %TBD% This currently uses the DTM-internal definition of\n         * sibling; eg, the last attr's next sib is the first\n         * child. In the old DTM, the DOM proxy layer provided the\n         * additional logic for the public view.  If we're rewriting\n         * for XPath emulation, that test must be done here.\n         *\n         * %TBD% CODE INTERACTION WITH INCREMENTAL PARSE - If not yet\n         * resolved, should wait for more nodes to be added to the document\n         * and tries again.\n         *\n         * @param nodeHandle int Handle of the node.\n         * @return int Node-number of next sibling,\n         * or DTM.NULL to indicate none exists.\n         * */\n        public int getNextSibling(int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n                if (nodeHandle == 0)\n                        return NULL;\n\n                short type = (short) (nodes.readEntry(nodeHandle, 0) & 0xFFFF);\n                if ((type == ELEMENT_NODE) || (type == ATTRIBUTE_NODE) ||\n                                (type == ENTITY_REFERENCE_NODE)) {\n                        int nextSib = nodes.readEntry(nodeHandle, 2);\n                        if (nextSib == NULL)\n                                return NULL;\n                        if (nextSib != 0)\n                                return (m_docHandle | nextSib);\n                }\n                int thisParent = nodes.readEntry(nodeHandle, 1);\n\n                if (nodes.readEntry(++nodeHandle, 1) == thisParent)\n                        return (m_docHandle | nodeHandle);\n\n                return NULL;\n        }\n\n        /**\n         * Given a node handle, find its preceeding sibling.\n         * WARNING: DTM is asymmetric; this operation is resolved by search, and is\n         * relatively expensive.\n         *\n         * @param nodeHandle the id of the node.\n         * @return int Node-number of the previous sib,\n         * or DTM.NULL to indicate none exists.\n         */\n        public int getPreviousSibling(int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n                if (nodeHandle == 0)\n                        return NULL;\n\n                int parent = nodes.readEntry(nodeHandle, 1);\n                int kid = NULL;\n                for (int nextkid = getFirstChild(parent); nextkid != nodeHandle;\n                                nextkid = getNextSibling(nextkid)) {\n                        kid = nextkid;\n                }\n                return kid | m_docHandle;\n        }\n\n        /**\n         * Given a node handle, advance to the next attribute. If an\n         * element, we advance to its first attribute; if an attr, we advance to\n         * the next attr on the same node.\n         *\n         * @param nodeHandle int Handle of the node.\n         * @return int DTM node-number of the resolved attr,\n         * or DTM.NULL to indicate none exists.\n         */\n        public int getNextAttribute(int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n                nodes.readSlot(nodeHandle, gotslot);\n\n                short type = (short) (gotslot[0] & 0xFFFF);\n\n                if (type == ELEMENT_NODE) {\n                        return getFirstAttribute(nodeHandle);\n                } else if (type == ATTRIBUTE_NODE) {\n                        if (gotslot[2] != NULL)\n                                return (m_docHandle | gotslot[2]);\n                }\n                return NULL;\n        }\n\n        /**\n         * Given a namespace handle, advance to the next namespace.\n         *\n         * %TBD% THIS METHOD DOES NOT MATCH THE CURRENT SIGNATURE IN\n         * THE DTM INTERFACE.  FIX IT, OR JUSTIFY CHANGING THE DTM\n         * API.\n         *\n         * @param namespaceHandle handle to node which must be of type NAMESPACE_NODE.\n         * @return handle of next namespace, or DTM.NULL to indicate none exists.\n         */\n        public int getNextNamespaceNode(int baseHandle,int namespaceHandle, boolean inScope) {\n                return NULL;\n        }\n\n        /**\n         * Given a node handle, advance to its next descendant.\n         * If not yet resolved, waits for more nodes to be added to the document and\n         * tries again.\n         *\n         * @param subtreeRootHandle\n         * @param nodeHandle int Handle of the node.\n         * @return handle of next descendant,\n         * or DTM.NULL to indicate none exists.\n         */\n        public int getNextDescendant(int subtreeRootHandle, int nodeHandle) {\n                subtreeRootHandle &= NODEHANDLE_MASK;\n                nodeHandle &= NODEHANDLE_MASK;\n                if (nodeHandle == 0)\n                        return NULL;\n                while (!m_isError) {\n                        if (done && (nodeHandle > nodes.slotsUsed()))\n                                break;\n                        if (nodeHandle > subtreeRootHandle) {\n                                nodes.readSlot(nodeHandle+1, gotslot);\n                                if (gotslot[2] != 0) {\n                                        short type = (short) (gotslot[0] & 0xFFFF);\n                                        if (type == ATTRIBUTE_NODE) {\n                                                nodeHandle +=2;\n                                        } else {\n                                                int nextParentPos = gotslot[1];\n                                                if (nextParentPos >= subtreeRootHandle)\n                                                        return (m_docHandle | (nodeHandle+1));\n                                                else\n                                                        break;\n                                        }\n                                } else if (!done) {\n                                } else\n                                        break;\n                        } else {\n                                nodeHandle++;\n                        }\n                }\n                return NULL;\n        }\n\n        /**\n         * Given a node handle, advance to the next node on the following axis.\n         *\n         * @param axisContextHandle the start of the axis that is being traversed.\n         * @param nodeHandle\n         * @return handle of next sibling,\n         * or DTM.NULL to indicate none exists.\n         */\n        public int getNextFollowing(int axisContextHandle, int nodeHandle) {\n                return NULL;\n        }\n\n        /**\n         * Given a node handle, advance to the next node on the preceding axis.\n         *\n         * @param axisContextHandle the start of the axis that is being traversed.\n         * @param nodeHandle the id of the node.\n         * @return int Node-number of preceding sibling,\n         * or DTM.NULL to indicate none exists.\n         */\n        public int getNextPreceding(int axisContextHandle, int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n                while (nodeHandle > 1) {\n                        nodeHandle--;\n                        if (ATTRIBUTE_NODE == (nodes.readEntry(nodeHandle, 0) & 0xFFFF))\n                                continue;\n\n\n\n                        return (m_docHandle | nodes.specialFind(axisContextHandle, nodeHandle));\n                }\n                return NULL;\n        }\n\n        /**\n         * Given a node handle, find its parent node.\n         *\n         * @param nodeHandle the id of the node.\n         * @return int Node-number of parent,\n         * or DTM.NULL to indicate none exists.\n         */\n        public int getParent(int nodeHandle) {\n\n                return (m_docHandle | nodes.readEntry(nodeHandle, 1));\n        }\n\n        /**\n         * Returns the root element of the document.\n         * @return nodeHandle to the Document Root.\n         */\n        public int getDocumentRoot() {\n                return (m_docHandle | m_docElement);\n        }\n\n        /**\n         * Given a node handle, find the owning document node.\n         *\n         * @return int Node handle of document, which should always be valid.\n         */\n        public int getDocument() {\n                return m_docHandle;\n        }\n\n        /**\n         * Given a node handle, find the owning document node.  This has the exact\n         * same semantics as the DOM Document method of the same name, in that if\n         * the nodeHandle is a document node, it will return NULL.\n         *\n         * <p>%REVIEW% Since this is DOM-specific, it may belong at the DOM\n         * binding layer. Included here as a convenience function and to\n         * aid porting of DOM code to DTM.</p>\n         *\n         * @param nodeHandle the id of the node.\n         * @return int Node handle of owning document, or NULL if the nodeHandle is\n         *             a document.\n         */\n        public int getOwnerDocument(int nodeHandle) {\n                if ((nodeHandle & NODEHANDLE_MASK) == 0)\n                        return NULL;\n                return (nodeHandle & DOCHANDLE_MASK);\n        }\n\n        /**\n         * Given a node handle, find the owning document node.  This has the DTM\n         * semantics; a Document node is its own owner.\n         *\n         * <p>%REVIEW% Since this is DOM-specific, it may belong at the DOM\n         * binding layer. Included here as a convenience function and to\n         * aid porting of DOM code to DTM.</p>\n         *\n         * @param nodeHandle the id of the node.\n         * @return int Node handle of owning document, or NULL if the nodeHandle is\n         *             a document.\n         */\n        public int getDocumentRoot(int nodeHandle) {\n                if ((nodeHandle & NODEHANDLE_MASK) == 0)\n                        return NULL;\n                return (nodeHandle & DOCHANDLE_MASK);\n        }\n\n        /**\n         * Get the string-value of a node as a String object\n         * for the definition of a node's string-value).\n         *\n         * @param nodeHandle The node ID.\n         *\n         * @return A string object that represents the string-value of the given node.\n         */\n        public XMLString getStringValue(int nodeHandle) {\n        nodes.readSlot(nodeHandle, gotslot);\n        int nodetype=gotslot[0] & 0xFF;\n        String value=null;\n\n        switch (nodetype) {\n        case TEXT_NODE:\n        case COMMENT_NODE:\n        case CDATA_SECTION_NODE:\n                value= m_char.getString(gotslot[2], gotslot[3]);\n                break;\n        case PROCESSING_INSTRUCTION_NODE:\n        case ATTRIBUTE_NODE:\n        case ELEMENT_NODE:\n        case ENTITY_REFERENCE_NODE:\n        default:\n                break;\n        }\n        return m_xsf.newstr( value );\n\n        }\n\n        /**\n         * Get number of character array chunks in\n         * the string-value of a node.\n         * for the definition of a node's string-value).\n         * Note that a single text node may have multiple text chunks.\n         *\n         * EXPLANATION: This method is an artifact of the fact that the\n         * underlying m_chars object may not store characters in a\n         * single contiguous array -- for example,the current\n         * FastStringBuffer may split a single node's text across\n         * multiple allocation units.  This call tells us how many\n         * separate accesses will be required to retrieve the entire\n         * content. PLEASE NOTE that this may not be the same as the\n         * number of SAX characters() events that caused the text node\n         * to be built in the first place, since m_chars buffering may\n         * be on different boundaries than the parser's buffers.\n         *\n         * @param nodeHandle The node ID.\n         *\n         * @return number of character array chunks in\n         *         the string-value of a node.\n         * */\n        public int getStringValueChunkCount(int nodeHandle)\n        {\n                return 0;\n        }\n\n        /**\n         * Get a character array chunk in the string-value of a node.\n         * for the definition of a node's string-value).\n         * Note that a single text node may have multiple text chunks.\n         *\n         * EXPLANATION: This method is an artifact of the fact that\n         * the underlying m_chars object may not store characters in a\n         * single contiguous array -- for example,the current\n         * FastStringBuffer may split a single node's text across\n         * multiple allocation units.  This call retrieves a single\n         * contiguous portion of the text -- as much as m-chars was\n         * able to store in a single allocation unit.  PLEASE NOTE\n         * that this may not be the same granularityas the SAX\n         * characters() events that caused the text node to be built\n         * in the first place, since m_chars buffering may be on\n         * different boundaries than the parser's buffers.\n         *\n         * @param nodeHandle The node ID.\n         * @param chunkIndex Which chunk to get.\n         * @param startAndLen An array of 2 where the start position and length of\n         *                    the chunk will be returned.\n         *\n         * @return The character array reference where the chunk occurs.  */\n        public char[] getStringValueChunk(int nodeHandle, int chunkIndex,\n                                                                                                                                                int[] startAndLen) {return new char[0];}\n\n        /**\n         * Given a node handle, return an ID that represents the node's expanded name.\n         *\n         * @param nodeHandle The handle to the node in question.\n         *\n         * @return the expanded-name id of the node.\n         */\n        public int getExpandedTypeID(int nodeHandle) {\n           nodes.readSlot(nodeHandle, gotslot);\n           String qName = m_localNames.indexToString(gotslot[3]);\n           int colonpos = qName.indexOf(\":\");\n           String localName = qName.substring(colonpos+1);\n           String namespace = m_nsNames.indexToString(gotslot[0] << 16);\n           String expandedName = namespace + \":\" + localName;\n           int expandedNameID = m_nsNames.stringToIndex(expandedName);\n\n        return expandedNameID;\n        }\n\n\n        /**\n         * Given an expanded name, return an ID.  If the expanded-name does not\n         * exist in the internal tables, the entry will be created, and the ID will\n         * be returned.  Any additional nodes that are created that have this\n         * expanded name will use this ID.\n         *\n         * @return the expanded-name id of the node.\n         */\n        public int getExpandedTypeID(String namespace, String localName, int type) {\n           String expandedName = namespace + \":\" + localName;\n           int expandedNameID = m_nsNames.stringToIndex(expandedName);\n\n           return expandedNameID;\n        }\n\n\n        /**\n         * Given an expanded-name ID, return the local name part.\n         *\n         * @param ExpandedNameID an ID that represents an expanded-name.\n         * @return String Local name of this node.\n         */\n        public String getLocalNameFromExpandedNameID(int ExpandedNameID) {\n\n           String expandedName = m_localNames.indexToString(ExpandedNameID);\n           int colonpos = expandedName.indexOf(\":\");\n           String localName = expandedName.substring(colonpos+1);\n           return localName;\n        }\n\n\n        /**\n         * Given an expanded-name ID, return the namespace URI part.\n         *\n         * @param ExpandedNameID an ID that represents an expanded-name.\n         * @return String URI value of this node's namespace, or null if no\n         * namespace was resolved.\n        */\n        public String getNamespaceFromExpandedNameID(int ExpandedNameID) {\n\n           String expandedName = m_localNames.indexToString(ExpandedNameID);\n           int colonpos = expandedName.indexOf(\":\");\n           String nsName = expandedName.substring(0, colonpos);\n\n        return nsName;\n        }\n\n\n        /**\n         * Given a node handle, return its DOM-style node name. This will\n         * include names such as #text or #document.\n         *\n         * @param nodeHandle the id of the node.\n         * @return String Name of this node, which may be an empty string.\n         * %REVIEW% Document when empty string is possible...\n         */\n        public String getNodeName(int nodeHandle) {\n                nodes.readSlot(nodeHandle, gotslot);\n                short type = (short) (gotslot[0] & 0xFFFF);\n                String name = fixednames[type];\n                if (null == name) {\n                  int i=gotslot[3];\n                  /**/System.out.println(\"got i=\"+i+\" \"+(i>>16)+\"/\"+(i&0xffff));\n\n                  name=m_localNames.indexToString(i & 0xFFFF);\n                  String prefix=m_prefixNames.indexToString(i >>16);\n                  if(prefix!=null && prefix.length()>0)\n                    name=prefix+\":\"+name;\n                }\n                return name;\n        }\n\n        /**\n         * Given a node handle, return the XPath node name.  This should be\n         * the name as described by the XPath data model, NOT the DOM-style\n         * name.\n         *\n         * @param nodeHandle the id of the node.\n         * @return String Name of this node.\n         */\n        public String getNodeNameX(int nodeHandle) {return null;}\n\n        /**\n         * Given a node handle, return its DOM-style localname.\n         * (As defined in Namespaces, this is the portion of the name after any\n         * colon character)\n         *\n         * %REVIEW% What's the local name of something other than Element/Attr?\n         * Should this be DOM-style (undefined unless namespaced), or other?\n         *\n         * @param nodeHandle the id of the node.\n         * @return String Local name of this node.\n         */\n        public String getLocalName(int nodeHandle) {\n                nodes.readSlot(nodeHandle, gotslot);\n                short type = (short) (gotslot[0] & 0xFFFF);\n                String name = \"\";\n                if ((type==ELEMENT_NODE) || (type==ATTRIBUTE_NODE)) {\n                  int i=gotslot[3];\n                  name=m_localNames.indexToString(i & 0xFFFF);\n                  if(name==null) name=\"\";\n                }\n                return name;\n        }\n\n        /**\n         * Given a namespace handle, return the prefix that the namespace decl is\n         * mapping.\n         * Given a node handle, return the prefix used to map to the namespace.\n         *\n         * <p> %REVIEW% Are you sure you want \"\" for no prefix?  </p>\n         *\n         * %REVIEW%  Should this be DOM-style (undefined unless namespaced),\n         * or other?\n         *\n         * @param nodeHandle the id of the node.\n         * @return String prefix of this node's name, or \"\" if no explicit\n         * namespace prefix was given.\n         */\n        public String getPrefix(int nodeHandle) {\n                nodes.readSlot(nodeHandle, gotslot);\n                short type = (short) (gotslot[0] & 0xFFFF);\n                String name = \"\";\n                if((type==ELEMENT_NODE) || (type==ATTRIBUTE_NODE)) {\n                  int i=gotslot[3];\n                  name=m_prefixNames.indexToString(i >>16);\n                  if(name==null) name=\"\";\n                }\n                return name;\n        }\n\n        /**\n         * Given a node handle, return its DOM-style namespace URI\n         * (As defined in Namespaces, this is the declared URI which this node's\n         * prefix -- or default in lieu thereof -- was mapped to.)\n         *\n         * @param nodeHandle the id of the node.\n         * @return String URI value of this node's namespace, or null if no\n         * namespace was resolved.\n         */\n        public String getNamespaceURI(int nodeHandle) {return null;}\n\n        /**\n         * Given a node handle, return its node value. This is mostly\n         * as defined by the DOM, but may ignore some conveniences.\n         * <p>\n         *\n         * @param nodeHandle The node id.\n         * @return String Value of this node, or null if not\n         * meaningful for this node type.\n         */\n        public String getNodeValue(int nodeHandle)\n        {\n                nodes.readSlot(nodeHandle, gotslot);\n                String value=null;\n\t\t\tswitch(value){\n                case ATTRIBUTE_NODE:\n                        nodes.readSlot(nodeHandle+1, gotslot);\n                case TEXT_NODE:\n                case COMMENT_NODE:\n                case CDATA_SECTION_NODE:\n                        break;\n                case PROCESSING_INSTRUCTION_NODE:\n                case ELEMENT_NODE:\n                case ENTITY_REFERENCE_NODE:\n                default:\n                        break;\n                }\n                return value;\n        }\n\n        /**\n         * Given a node handle, return its DOM-style node type.\n         * <p>\n         * %REVIEW% Generally, returning short is false economy. Return int?\n         *\n         * @param nodeHandle The node id.\n         * @return int Node type, as per the DOM's Node._NODE constants.\n         */\n        public short getNodeType(int nodeHandle) {\n                return(short) (nodes.readEntry(nodeHandle, 0) & 0xFFFF);\n        }\n\n        /**\n         * Get the depth level of this node in the tree (equals 1 for\n         * a parentless node).\n         *\n         * @param nodeHandle The node id.\n         * @return the number of ancestors, plus one\n         * @xsl.usage internal\n         */\n        public short getLevel(int nodeHandle) {\n                short count = 0;\n                while (nodeHandle != 0) {\n                        count++;\n                        nodeHandle = nodes.readEntry(nodeHandle, 1);\n                }\n                return count;\n        }\n\n\n        /**\n         * Tests whether DTM DOM implementation implements a specific feature and\n         * that feature is supported by this node.\n         *\n         * @param feature The name of the feature to test.\n         * @param version This is the version number of the feature to test.\n         *   If the version is not\n         *   specified, supporting any version of the feature will cause the\n         *   method to return <code>true</code>.\n         * @return Returns <code>true</code> if the specified feature is\n         *   supported on this node, <code>false</code> otherwise.\n         */\n        public boolean isSupported(String feature, String version) {return false;}\n\n        /**\n         * Return the base URI of the document entity. If it is not known\n         * (because the document was parsed from a socket connection or from\n         * standard input, for example), the value of this property is unknown.\n         *\n         * @return the document base URI String object or null if unknown.\n         */\n        public String getDocumentBaseURI()\n        {\n\n          return m_documentBaseURI;\n        }\n\n        /**\n         * Set the base URI of the document entity.\n         *\n         * @param baseURI the document base URI String object or null if unknown.\n         */\n        public void setDocumentBaseURI(String baseURI)\n        {\n\n          m_documentBaseURI = baseURI;\n        }\n\n        /**\n         * Return the system identifier of the document entity. If\n         * it is not known, the value of this property is unknown.\n         *\n         * @param nodeHandle The node id, which can be any valid node handle.\n         * @return the system identifier String object or null if unknown.\n         */\n        public String getDocumentSystemIdentifier(int nodeHandle) {return null;}\n\n        /**\n         * Return the name of the character encoding scheme\n         *        in which the document entity is expressed.\n         *\n         * @param nodeHandle The node id, which can be any valid node handle.\n         * @return the document encoding String object.\n         */\n        public String getDocumentEncoding(int nodeHandle) {return null;}\n\n        /**\n         * Return an indication of the standalone status of the document,\n         *        either \"yes\" or \"no\". This property is derived from the optional\n         *        standalone document declaration in the XML declaration at the\n         *        beginning of the document entity, and has no value if there is no\n         *        standalone document declaration.\n         *\n         * @param nodeHandle The node id, which can be any valid node handle.\n         * @return the document standalone String object, either \"yes\", \"no\", or null.\n         */\n        public String getDocumentStandalone(int nodeHandle) {return null;}\n\n        /**\n         * Return a string representing the XML version of the document. This\n         * property is derived from the XML declaration optionally present at the\n         * beginning of the document entity, and has no value if there is no XML\n         * declaration.\n         *\n         * @param documentHandle the document handle\n         *\n         * @return the document version String object\n         */\n        public String getDocumentVersion(int documentHandle) {return null;}\n\n        /**\n         * Return an indication of\n         * whether the processor has read the complete DTD. Its value is a\n         * boolean. If it is false, then certain properties (indicated in their\n         * descriptions below) may be unknown. If it is true, those properties\n         * are never unknown.\n         *\n         * @return <code>true</code> if all declarations were processed {};\n         *         <code>false</code> otherwise.\n         */\n        public boolean getDocumentAllDeclarationsProcessed() {return false;}\n\n        /**\n         *   A document type declaration information item has the following properties:\n         *\n         *     1. [system identifier] The system identifier of the external subset, if\n         *        it exists. Otherwise this property has no value.\n         *\n         * @return the system identifier String object, or null if there is none.\n         */\n        public String getDocumentTypeDeclarationSystemIdentifier() {return null;}\n\n        /**\n         * Return the public identifier of the external subset,\n         * normalized as described in 4.2.2 External Entities [XML]. If there is\n         * no external subset or if it has no public identifier, this property\n         * has no value.\n         *\n         * @return the public identifier String object, or null if there is none.\n         */\n        public String getDocumentTypeDeclarationPublicIdentifier() {return null;}\n\n        /**\n         * Returns the <code>Element</code> whose <code>ID</code> is given by\n         * <code>elementId</code>. If no such element exists, returns\n         * <code>DTM.NULL</code>. Behavior is not defined if more than one element\n         * has this <code>ID</code>. Attributes (including those\n         * with the name \"ID\") are not of type ID unless so defined by DTD/Schema\n         * information available to the DTM implementation.\n         * Implementations that do not know whether attributes are of type ID or\n         * not are expected to return <code>DTM.NULL</code>.\n         *\n         * <p>%REVIEW% Presumably IDs are still scoped to a single document,\n         * and this operation searches only within a single document, right?\n         * Wouldn't want collisions between DTMs in the same process.</p>\n         *\n         * @param elementId The unique <code>id</code> value for an element.\n         * @return The handle of the matching element.\n         */\n        public int getElementById(String elementId) {return 0;}\n\n        /**\n         * The getUnparsedEntityURI function returns the URI of the unparsed\n         * entity with the specified name in the same document as the context\n         * node (see [3.3 Unparsed Entities]). It returns the empty string if\n         * there is no such entity.\n         * <p>\n         * XML processors may choose to use the System Identifier (if one\n         * is provided) to resolve the entity, rather than the URI in the\n         * Public Identifier. The details are dependent on the processor, and\n         * we would have to support some form of plug-in resolver to handle\n         * this properly. Currently, we simply return the System Identifier if\n         * present, and hope that it a usable URI or that our caller can\n         * map it to one.\n         * TODO: Resolve Public Identifiers... or consider changing function name.\n         * <p>\n         * If we find a relative URI\n         * reference, XML expects it to be resolved in terms of the base URI\n         * of the document. The DOM doesn't do that for us, and it isn't\n         * entirely clear whether that should be done here; currently that's\n         * pushed up to a higher level of our application. (Note that DOM Level\n         * 1 didn't store the document's base URI.)\n         * TODO: Consider resolving Relative URIs.\n         * <p>\n         * (The DOM's statement that \"An XML processor may choose to\n         * completely expand entities before the structure model is passed\n         * to the DOM\" refers only to parsed entities, not unparsed, and hence\n         * doesn't affect this function.)\n         *\n         * @param name A string containing the Entity Name of the unparsed\n         * entity.\n         *\n         * @return String containing the URI of the Unparsed Entity, or an\n         * empty string if no such entity exists.\n         */\n        public String getUnparsedEntityURI(String name) {return null;}\n\n\n\n        /**\n         * Return true if the xsl:strip-space or xsl:preserve-space was processed\n         * during construction of the DTM document.\n         *\n         * <p>%REVEIW% Presumes a 1:1 mapping from DTM to Document, since\n         * we aren't saying which Document to query...?</p>\n         */\n        public boolean supportsPreStripping() {return false;}\n\n        /**\n         * Figure out whether nodeHandle2 should be considered as being later\n         * in the document than nodeHandle1, in Document Order as defined\n         * by the XPath model. This may not agree with the ordering defined\n         * by other XML applications.\n         * <p>\n         * There are some cases where ordering isn't defined, and neither are\n         * the results of this function -- though we'll generally return true.\n         *\n         * TODO: Make sure this does the right thing with attribute nodes!!!\n         *\n         * @param nodeHandle1 DOM Node to perform position comparison on.\n         * @param nodeHandle2 DOM Node to perform position comparison on .\n         *\n         * @return false if node2 comes before node1, otherwise return true.\n         * You can think of this as\n         * <code>(node1.documentOrderPosition &lt;= node2.documentOrderPosition)</code>.\n         */\n        public boolean isNodeAfter(int nodeHandle1, int nodeHandle2) {return false;}\n\n        /**\n         *     2. [element content whitespace] A boolean indicating whether the\n         *        character is white space appearing within element content (see [XML],\n         *        2.10 \"White Space Handling\"). Note that validating XML processors are\n         *        required by XML 1.0 to provide this information. If there is no\n         *        declaration for the containing element, this property has no value for\n         *        white space characters. If no declaration has been read, but the [all\n         *        declarations processed] property of the document information item is\n         *        false (so there may be an unread declaration), then the value of this\n         *        property is unknown for white space characters. It is always false for\n         *        characters that are not white space.\n         *\n         * @param nodeHandle the node ID.\n         * @return <code>true</code> if the character data is whitespace;\n         *         <code>false</code> otherwise.\n         */\n        public boolean isCharacterElementContentWhitespace(int nodeHandle) {return false;}\n\n        /**\n         *    10. [all declarations processed] This property is not strictly speaking\n         *        part of the infoset of the document. Rather it is an indication of\n         *        whether the processor has read the complete DTD. Its value is a\n         *        boolean. If it is false, then certain properties (indicated in their\n         *        descriptions below) may be unknown. If it is true, those properties\n         *        are never unknown.\n         *\n         * @param documentHandle A node handle that must identify a document.\n         * @return <code>true</code> if all declarations were processed;\n         *         <code>false</code> otherwise.\n         */\n        public boolean isDocumentAllDeclarationsProcessed(int documentHandle) {return false;}\n\n        /**\n         *     5. [specified] A flag indicating whether this attribute was actually\n         *        specified in the start-tag of its element, or was defaulted from the\n         *        DTD.\n         *\n         * @param attributeHandle the attribute handle\n         * @return <code>true</code> if the attribute was specified;\n         *         <code>false</code> if it was defaulted.\n         */\n        public boolean isAttributeSpecified(int attributeHandle) {return false;}\n\n\n        /**\n         * Directly call the\n         * characters method on the passed ContentHandler for the\n         * for the definition of a node's string-value). Multiple calls to the\n         * ContentHandler's characters methods may well occur for a single call to\n         * this method.\n         *\n         * @param nodeHandle The node ID.\n         * @param ch A non-null reference to a ContentHandler.\n         *\n         * @throws org.xml.sax.SAXException\n         */\n        public void dispatchCharactersEvents(\n                                                                                                                                                        int nodeHandle, org.xml.sax.ContentHandler ch, boolean normalize)\n        throws org.xml.sax.SAXException {}\n\n        /**\n         * Directly create SAX parser events from a subtree.\n         *\n         * @param nodeHandle The node ID.\n         * @param ch A non-null reference to a ContentHandler.\n         *\n         * @throws org.xml.sax.SAXException\n         */\n\n        public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n        throws org.xml.sax.SAXException {}\n\n        /**\n         * Return an DOM node for the given node.\n         *\n         * @param nodeHandle The node ID.\n         *\n         * @return A node representation of the DTM node.\n         */\n        public org.w3c.dom.Node getNode(int nodeHandle)\n        {\n          return null;\n        }\n\n\n        /**\n         * Append a child to the end of the child list of the current node. Please note that the node\n         * is always cloned if it is owned by another document.\n         *\n         * <p>%REVIEW% \"End of the document\" needs to be defined more clearly.\n         * Does it become the last child of the Document? Of the root element?</p>\n         *\n         * @param newChild Must be a valid new node handle.\n         * @param clone true if the child should be cloned into the document.\n         * @param cloneDepth if the clone argument is true, specifies that the\n         *                   clone should include all it's children.\n         */\n        public void appendChild(int newChild, boolean clone, boolean cloneDepth) {\n                boolean sameDoc = ((newChild & DOCHANDLE_MASK) == m_docHandle);\n                if (clone || !sameDoc) {\n\n                } else {\n\n                }\n        }\n\n        /**\n         * Append a text node child that will be constructed from a string,\n         * to the end of the document.\n         *\n         * <p>%REVIEW% \"End of the document\" needs to be defined more clearly.\n         * Does it become the last child of the Document? Of the root element?</p>\n         *\n         * @param str Non-null reference to a string.\n         */\n        public void appendTextChild(String str) {\n        }\n\n\n\n  /** Append a text child at the current insertion point. Assumes that the\n   * actual content of the text has previously been appended to the m_char\n   * buffer (shared with the builder).\n   *\n   * @param m_char_current_start int Starting offset of node's content in m_char.\n   * @param contentLength int Length of node's content in m_char.\n   * */\n  void appendTextChild(int m_char_current_start,int contentLength)\n  {\n    int w0 = TEXT_NODE;\n    int w1 = currentParent;\n    int w2 = m_char_current_start;\n    int w3 = contentLength;\n\n    int ourslot = appendNode(w0, w1, w2, w3);\n    previousSibling = ourslot;\n  }\n\n  /** Append a comment child at the current insertion point. Assumes that the\n   * actual content of the comment has previously been appended to the m_char\n   * buffer (shared with the builder).\n   *\n   * @param m_char_current_start int Starting offset of node's content in m_char.\n   * @param contentLength int Length of node's content in m_char.\n   * */\n  void appendComment(int m_char_current_start,int contentLength)\n  {\n    int w0 = COMMENT_NODE;\n    int w1 = currentParent;\n    int w2 = m_char_current_start;\n    int w3 = contentLength;\n\n    int ourslot = appendNode(w0, w1, w2, w3);\n    previousSibling = ourslot;\n  }\n\n\n  /** Append an Element child at the current insertion point. This\n   * Element then _becomes_ the insertion point; subsequent appends\n   * become its lastChild until an appendEndElement() call is made.\n   *\n   * Assumes that the symbols (local name, namespace URI and prefix)\n   * have already been added to the pools\n   *\n   * Note that this _only_ handles the Element node itself. Attrs and\n   * namespace nodes are unbundled in the ContentHandler layer\n   * and appended separately.\n   *\n   * @param namespaceIndex: Index within the namespaceURI string pool\n   * @param localNameIndex Index within the local name string pool\n   * @param prefixIndex: Index within the prefix string pool\n   * */\n  void appendStartElement(int namespaceIndex,int localNameIndex, int prefixIndex)\n  {\n\n                int w0 = (namespaceIndex << 16) | ELEMENT_NODE;\n                int w1 = currentParent;\n                int w2 = 0;\n                int w3 = localNameIndex | prefixIndex<<16;\n                /**/System.out.println(\"set w3=\"+w3+\" \"+(w3>>16)+\"/\"+(w3&0xffff));\n\n                int ourslot = appendNode(w0, w1, w2, w3);\n                currentParent = ourslot;\n                previousSibling = 0;\n\n                if (m_docElement == NULL)\n                        m_docElement = ourslot;\n  }\n\n  /** Append a Namespace Declaration child at the current insertion point.\n   * Assumes that the symbols (namespace URI and prefix) have already been\n   * added to the pools\n   *\n   * @param prefixIndex: Index within the prefix string pool\n   * @param namespaceIndex: Index within the namespaceURI string pool\n   * @param isID: If someone really insists on writing a bad DTD, it is\n   * theoretically possible for a namespace declaration to also be declared\n   * as being a node ID. I don't really want to support that stupidity,\n   * but I'm not sure we can refuse to accept it.\n   * */\n  void appendNSDeclaration(int prefixIndex, int namespaceIndex,\n                           boolean isID)\n  {\n\n\n\n\n\n    int w1 = currentParent;\n    int w2 = 0;\n    int w3 = namespaceIndex;\n    int ourslot = appendNode(w0, w1, w2, w3);\n    previousSiblingWasParent = false;\n  }\n\n  /** Append an Attribute child at the current insertion\n   * point.  Assumes that the symbols (namespace URI, local name, and\n   * prefix) have already been added to the pools, and that the content has\n   * already been appended to m_char. Note that the attribute's content has\n   * been flattened into a single string; DTM does _NOT_ attempt to model\n   * the details of entity references within attribute values.\n   *\n   * @param namespaceIndex int Index within the namespaceURI string pool\n   * @param localNameIndex int Index within the local name string pool\n   * @param prefixIndex int Index within the prefix string pool\n   * @param isID boolean True if this attribute was declared as an ID\n   * (for use in supporting getElementByID).\n   * @param m_char_current_start int Starting offset of node's content in m_char.\n   * @param contentLength int Length of node's content in m_char.\n   * */\n  void appendAttribute(int namespaceIndex, int localNameIndex, int prefixIndex,\n                       boolean isID,\n                       int m_char_current_start, int contentLength)\n  {\n\n    int w0 = ATTRIBUTE_NODE | namespaceIndex<<16;\n\n    int w1 = currentParent;\n    int w2 = 0;\n    int w3 = localNameIndex | prefixIndex<<16;\n    /**/System.out.println(\"set w3=\"+w3+\" \"+(w3>>16)+\"/\"+(w3&0xffff));\n    int ourslot = appendNode(w0, w1, w2, w3);\n\n\n    w0 = TEXT_NODE;\n    w1 = ourslot;\n    w2 = m_char_current_start;\n    w3 = contentLength;\n    appendNode(w0, w1, w2, w3);\n\n    previousSiblingWasParent = true;\n  }\n\n  /**\n   * This returns a stateless \"traverser\", that can navigate over an\n   * XPath axis, though not in document order.\n   *\n   * @param axis One of Axes.ANCESTORORSELF, etc.\n   *\n   * @return A DTMAxisIterator, or null if the given axis isn't supported.\n   */\n  public DTMAxisTraverser getAxisTraverser(final int axis)\n  {\n    return null;\n  }\n\n  /**\n   * This is a shortcut to the iterators that implement the\n   * supported XPath axes (only namespace::) is not supported.\n   * Returns a bare-bones iterator that must be initialized\n   * with a start node (using iterator.setStartNode()).\n   *\n   * @param axis One of Axes.ANCESTORORSELF, etc.\n   *\n   * @return A DTMAxisIterator, or null if the given axis isn't supported.\n   */\n  public DTMAxisIterator getAxisIterator(final int axis)\n  {\n    return null;\n  }\n\n  /**\n   * Get an iterator that can navigate over an XPath Axis, predicated by\n   * the extended type ID.\n   *\n   *\n   * @param axis\n   * @param type An extended type ID.\n   *\n   * @return A DTMAxisIterator, or null if the given axis isn't supported.\n   */\n  public DTMAxisIterator getTypedAxisIterator(final int axis, final int type)\n  {\n    return null;\n  }\n\n\n  /** Terminate the element currently acting as an insertion point. Subsequent\n   * insertions will occur as the last child of this element's parent.\n   * */\n  void appendEndElement()\n  {\n\n    if (previousSiblingWasParent)\n      nodes.writeEntry(previousSibling, 2, NULL);\n\n    previousSibling = currentParent;\n    nodes.readSlot(currentParent, gotslot);\n    currentParent = gotslot[1] & 0xFFFF;\n\n    previousSiblingWasParent = true;\n\n  }\n\n  /**  Starting a new document. Perform any resets/initialization\n   * not already handled.\n   * */\n  void appendStartDocument()\n  {\n\n    initDocument(0);\n  }\n\n  /**  All appends to this document have finished; do whatever final\n   * cleanup is needed.\n   * */\n  void appendEndDocument()\n  {\n    done = true;\n  }\n\n  /**\n   * For the moment all the run time properties are ignored by this\n   * class.\n   *\n   * @param property a <code>String</code> value\n   * @param value an <code>Object</code> value\n   */\n  public void setProperty(String property, Object value)\n  {\n  }\n\n  /**\n   * Source information is not handled yet, so return\n   * <code>null</code> here.\n   *\n   * @param node an <code>int</code> value\n   * @return null\n   */\n  public SourceLocator getSourceLocatorFor(int node)\n  {\n    return null;\n  }\n\n\n  /**\n   * A dummy routine to satisify the abstract interface. If the DTM\n   * implememtation that extends the default base requires notification\n   * of registration, they can override this method.\n   */\n   public void documentRegistration()\n   {\n   }\n\n  /**\n   * A dummy routine to satisify the abstract interface. If the DTM\n   * implememtation that extends the default base requires notification\n   * when the document is being released, they can override this method\n   */\n   public void documentRelease()\n   {\n   }\n\n   /**\n    * Migrate a DTM built with an old DTMManager to a new DTMManager.\n    * After the migration, the new DTMManager will treat the DTM as\n    * one that is built by itself.\n    * This is used to support DTM sharing between multiple transformations.\n    * @param manager the DTMManager\n    */\n   public void migrateTo(DTMManager manager)", "functions": [{"function_name": "setIncrementalSAXSource", "code": "  public void setIncrementalSAXSource(IncrementalSAXSource source)\n  {\n    m_incrSAXSource=source;\n\n    source.setContentHandler(this);\n    source.setLexicalHandler(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "appendNode", "code": "        private final int appendNode(int w0, int w1, int w2, int w3)\n        {\n                int slotnumber = nodes.appendSlot(w0, w1, w2, w3);\n\n                if (DEBUG) System.out.println(slotnumber+\": \"+w0+\" \"+w1+\" \"+w2+\" \"+w3);\n\n                if (previousSiblingWasParent)\n                        nodes.writeEntry(previousSibling,2,slotnumber);\n\n\n                return slotnumber;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [9, 12], [10, 13], [13, 14], [14, 15], [14, 16], [16, 17], [17, 18], [17, 19], [19, 20], [20, 21], [20, 22], [22, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 9], [13, 10], [14, 13], [15, 14], [16, 14], [17, 16], [18, 17], [19, 17], [20, 19], [21, 20], [22, 20], [23, 22], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "setFeature", "code": "        public void setFeature(String featureId, boolean state) {};", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLocalNameTable", "code": "        public void setLocalNameTable(DTMStringPool poolRef) {\n                m_localNames = poolRef;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalNameTable", "code": "        public DTMStringPool getLocalNameTable() {\n                 return m_localNames;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNsNameTable", "code": "        public void setNsNameTable(DTMStringPool poolRef) {\n                m_nsNames = poolRef;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNsNameTable", "code": "        public DTMStringPool getNsNameTable() {\n                 return m_nsNames;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPrefixNameTable", "code": "        public void setPrefixNameTable(DTMStringPool poolRef) {\n                m_prefixNames = poolRef;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPrefixNameTable", "code": "        public DTMStringPool getPrefixNameTable() {\n                return m_prefixNames;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setContentBuffer", "code": "         void setContentBuffer(FastStringBuffer buffer) {\n                 m_char = buffer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getContentBuffer", "code": "         FastStringBuffer getContentBuffer() {\n                 return m_char;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContentHandler", "code": "  public org.xml.sax.ContentHandler getContentHandler()\n  {\n    if (m_incrSAXSource instanceof IncrementalSAXSource_Filter)\n      return (ContentHandler) m_incrSAXSource;\n    else\n      return this;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 0], [2, 1], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLexicalHandler", "code": "  public LexicalHandler getLexicalHandler()\n  {\n\n    if (m_incrSAXSource instanceof IncrementalSAXSource_Filter)\n      return (LexicalHandler) m_incrSAXSource;\n    else\n      return this;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 0], [2, 1], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getEntityResolver", "code": "  public org.xml.sax.EntityResolver getEntityResolver()\n  {\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDTDHandler", "code": "  public org.xml.sax.DTDHandler getDTDHandler()\n  {\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandler", "code": "  public org.xml.sax.ErrorHandler getErrorHandler()\n  {\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDeclHandler", "code": "  public org.xml.sax.ext.DeclHandler getDeclHandler()\n  {\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "needsTwoThreads", "code": "  public boolean needsTwoThreads()\n  {\n    return null!=m_incrSAXSource;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "characters", "code": "  public void characters(char[] ch, int start, int length)\n       throws org.xml.sax.SAXException\n  {\n    m_char.append(ch,start,length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processAccumulatedText", "code": "  private void processAccumulatedText()\n  {\n    int len=m_char.length();\n    if(len!=m_char_current_start)\n      {\n        appendTextChild(m_char_current_start,len-m_char_current_start);\n        m_char_current_start=len;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "endDocument", "code": "  public void endDocument()\n       throws org.xml.sax.SAXException\n  {\n    appendEndDocument();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endElement", "code": "  public void endElement(java.lang.String namespaceURI, java.lang.String localName,\n      java.lang.String qName)\n       throws org.xml.sax.SAXException\n  {\n    processAccumulatedText();\n    appendEndElement();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(java.lang.String prefix)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char[] ch, int start, int length)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(java.lang.String target, java.lang.String data)\n       throws org.xml.sax.SAXException\n  {\n    processAccumulatedText();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(java.lang.String name)\n       throws org.xml.sax.SAXException\n  {\n    processAccumulatedText();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startDocument", "code": "  public void startDocument()\n       throws org.xml.sax.SAXException\n  {\n    appendStartDocument();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startElement", "code": "  public void startElement(java.lang.String namespaceURI, java.lang.String localName,\n      java.lang.String qName, Attributes atts)\n       throws org.xml.sax.SAXException\n  {\n    processAccumulatedText();\n\n    String prefix=null;\n    int colon=qName.indexOf(':');\n    if(colon>0)\n      prefix=qName.substring(0,colon);\n\n    /**/System.out.println(\"Prefix=\"+prefix+\" index=\"+m_prefixNames.stringToIndex(prefix));\n    appendStartElement(m_nsNames.stringToIndex(namespaceURI),\n                     m_localNames.stringToIndex(localName));\n\n    int nAtts=(atts==null) ? 0 : atts.getLength();\n    for(int i=nAtts-1;i>=0;--i)\n      {\n        qName=atts.getQName(i);\n        if(qName.startsWith(\"xmlns:\") || \"xmlns\".equals(qName))\n          {\n            prefix=null;\n            colon=qName.indexOf(':');\n            if(colon>0)\n              {\n                prefix=qName.substring(0,colon);\n              }\n            else\n              {\n              }\n\n\n            appendNSDeclaration(\n                                    m_prefixNames.stringToIndex(prefix),\n                                    m_nsNames.stringToIndex(atts.getValue(i)),\n                                    atts.getType(i).equalsIgnoreCase(\"ID\"));\n          }\n      }\n\n    for(int i=nAtts-1;i>=0;--i)\n      {\n        qName=atts.getQName(i);\n        if(!(qName.startsWith(\"xmlns:\") || \"xmlns\".equals(qName)))\n          {\n            prefix=null;\n            colon=qName.indexOf(':');\n            if(colon>0)\n              {\n                prefix=qName.substring(0,colon);\n                localName=qName.substring(colon+1);\n              }\n            else\n              {\n                localName=qName;\n              }\n\n\n            int contentEnd=m_char.length();\n\n            if(!(\"xmlns\".equals(prefix) || \"xmlns\".equals(qName)))\n              appendAttribute(m_nsNames.stringToIndex(atts.getURI(i)),\n                                  m_localNames.stringToIndex(localName),\n                                  m_prefixNames.stringToIndex(prefix),\n                                  atts.getType(i).equalsIgnoreCase(\"ID\"),\n                                  m_char_current_start, contentEnd-m_char_current_start);\n            m_char_current_start=contentEnd;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [0, 13], [0, 14], [4, 15], [0, 16], [1, 17], [11, 18], [2, 19], [12, 20], [3, 21], [13, 22], [13, 23], [14, 24], [4, 25], [15, 26], [5, 27], [6, 28], [17, 29], [1, 30], [1, 31], [19, 32], [2, 33], [2, 34], [21, 35], [21, 36], [21, 37], [24, 38], [24, 39], [25, 40], [27, 41], [17, 42], [17, 43], [17, 44], [29, 45], [29, 46], [30, 47], [31, 48], [19, 49], [32, 50], [32, 51], [33, 52], [34, 53], [37, 54], [39, 55], [39, 56], [40, 57], [17, 58], [42, 59], [44, 60], [17, 61], [17, 62], [45, 63], [46, 64], [19, 65], [49, 66], [19, 67], [19, 68], [50, 69], [51, 70], [56, 71], [42, 72], [59, 73], [59, 74], [43, 75], [60, 76], [61, 77], [62, 78], [65, 79], [65, 80], [65, 81], [66, 82], [67, 83], [68, 84], [72, 85], [72, 86], [72, 87], [72, 88], [72, 89], [73, 90], [74, 91], [44, 92], [44, 93], [44, 94], [77, 95], [79, 96], [80, 97], [49, 98], [83, 99], [86, 100], [89, 101], [93, 102], [94, 103], [96, 104], [98, 105], [100, 106], [102, 107], [103, 108], [105, 109], [107, 110], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 0], [14, 0], [15, 4], [16, 0], [17, 1], [18, 11], [19, 2], [20, 12], [21, 3], [22, 13], [23, 13], [24, 14], [25, 4], [26, 15], [27, 5], [28, 6], [29, 17], [30, 1], [31, 1], [32, 19], [33, 2], [34, 2], [35, 21], [36, 21], [37, 21], [38, 24], [39, 24], [40, 25], [41, 27], [42, 17], [43, 17], [44, 17], [45, 29], [46, 29], [47, 30], [48, 31], [49, 19], [50, 32], [51, 32], [52, 33], [53, 34], [54, 37], [55, 39], [56, 39], [57, 40], [58, 17], [59, 42], [60, 44], [61, 17], [62, 17], [63, 45], [64, 46], [65, 19], [66, 49], [67, 19], [68, 19], [69, 50], [70, 51], [71, 56], [72, 42], [73, 59], [74, 59], [75, 43], [76, 60], [77, 61], [78, 62], [79, 65], [80, 65], [81, 65], [82, 66], [83, 67], [84, 68], [85, 72], [86, 72], [87, 72], [88, 72], [89, 72], [90, 73], [91, 74], [92, 44], [93, 44], [94, 44], [95, 77], [96, 79], [97, 80], [98, 49], [99, 83], [100, 86], [101, 89], [102, 93], [103, 94], [104, 96], [105, 98], [106, 100], [107, 102], [108, 103], [109, 105], [110, 107], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "comment", "code": "  public void comment(char[] ch, int start, int length)\n       throws org.xml.sax.SAXException\n  {\n    processAccumulatedText();\n\n    appendComment(m_char_current_start,length);\n    m_char_current_start+=length;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "endCDATA", "code": "  public void endCDATA()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endDTD", "code": "  public void endDTD()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endEntity", "code": "  public void endEntity(java.lang.String name)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startCDATA", "code": "  public void startCDATA()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "startDTD", "code": "  public void startDTD(java.lang.String name, java.lang.String publicId,\n      java.lang.String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startEntity", "code": "  public void startEntity(java.lang.String name)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "initDocument", "code": "        final void initDocument(int documentNumber)\n        {\n                m_docHandle = documentNumber<<DOCHANDLE_SHIFT;\n\n                nodes.writeSlot(0,DOCUMENT_NODE,-1,-1,0);\n                done = false;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [3, 7], [3, 8], [3, 9], [4, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 3], [8, 3], [9, 3], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "hasChildNodes", "code": "        public boolean hasChildNodes(int nodeHandle) {\n                return(getFirstChild(nodeHandle) != NULL);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFirstChild", "code": "        public int getFirstChild(int nodeHandle) {\n\n                nodeHandle &= NODEHANDLE_MASK;\n                nodes.readSlot(nodeHandle, gotslot);\n\n                short type = (short) (gotslot[0] & 0xFFFF);\n\n                if ((type == ELEMENT_NODE) || (type == DOCUMENT_NODE) ||\n                                (type == ENTITY_REFERENCE_NODE)) {\n\n\n                        int kid = nodeHandle + 1;\n                        nodes.readSlot(kid, gotslot);\n                        while (ATTRIBUTE_NODE == (gotslot[0] & 0xFFFF)) {\n                                kid = gotslot[2];\n                                if (kid == NULL) return NULL;\n                                nodes.readSlot(kid, gotslot);\n                        }\n                        if (gotslot[1] == nodeHandle)\n                        {\n                          int firstChild = kid | m_docHandle;\n\n                          return firstChild;\n                        }\n                }\n\n                return NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [5, 11], [5, 12], [8, 13], [9, 14], [2, 15], [12, 16], [12, 17], [3, 18], [8, 19], [8, 20], [9, 21], [14, 22], [10, 23], [18, 24], [9, 25], [21, 26], [21, 27], [9, 28], [22, 29], [23, 30], [20, 31], [13, 32], [18, 33], [22, 34], [28, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 5], [12, 5], [13, 8], [14, 9], [15, 2], [16, 12], [17, 12], [18, 3], [19, 8], [20, 8], [21, 9], [22, 14], [23, 10], [24, 18], [25, 9], [26, 21], [27, 21], [28, 9], [29, 22], [30, 23], [31, 20], [32, 13], [33, 18], [34, 22], [35, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getLastChild", "code": "        public int getLastChild(int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n                int lastChild = NULL;\n                for (int nextkid = getFirstChild(nodeHandle); nextkid != NULL;\n                                nextkid = getNextSibling(nextkid)) {\n                        lastChild = nextkid;\n                }\n                return lastChild | m_docHandle;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [0, 8], [6, 9], [2, 10], [2, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 0], [9, 6], [10, 2], [11, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getAttributeNode", "code": "        public int getAttributeNode(int nodeHandle, String namespaceURI, String name) {\n                int nsIndex = m_nsNames.stringToIndex(namespaceURI),\n                                                                        nameIndex = m_localNames.stringToIndex(name);\n                nodeHandle &= NODEHANDLE_MASK;\n                nodes.readSlot(nodeHandle, gotslot);\n                short type = (short) (gotslot[0] & 0xFFFF);\n                if (type == ELEMENT_NODE)\n                        nodeHandle++;\n                while (type == ATTRIBUTE_NODE) {\n                        if ((nsIndex == (gotslot[0] << 16)) && (gotslot[3] == nameIndex))\n                                return nodeHandle | m_docHandle;\n                        nodeHandle = gotslot[2];\n                        nodes.readSlot(nodeHandle, gotslot);\n                }\n                return NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "IF", "CALL", "CALL", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [0, 11], [0, 12], [2, 13], [5, 14], [5, 15], [2, 16], [2, 17], [13, 18], [13, 19], [4, 20], [18, 21], [19, 22], [19, 23], [20, 24], [23, 25], [17, 26], [25, 27], [20, 28], [22, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 0], [12, 0], [13, 2], [14, 5], [15, 5], [16, 2], [17, 2], [18, 13], [19, 13], [20, 4], [21, 18], [22, 19], [23, 19], [24, 20], [25, 23], [26, 17], [27, 25], [28, 20], [29, 22], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getFirstAttribute", "code": "        public int getFirstAttribute(int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n\n\n                if (ELEMENT_NODE != (nodes.readEntry(nodeHandle, 0) & 0xFFFF))\n                        return NULL;\n                nodeHandle++;\n                return(ATTRIBUTE_NODE == (nodes.readEntry(nodeHandle, 0) & 0xFFFF)) ?\n                nodeHandle | m_docHandle : NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "COND_EXPR", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [4, 8], [4, 9], [6, 10], [9, 11], [10, 12], [10, 13], [11, 14], [11, 15], [13, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 4], [9, 4], [10, 6], [11, 9], [12, 10], [13, 10], [14, 11], [15, 11], [16, 13], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getFirstNamespaceNode", "code": "        public int getFirstNamespaceNode(int nodeHandle, boolean inScope) {\n\n                return NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNextSibling", "code": "        public int getNextSibling(int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n                if (nodeHandle == 0)\n                        return NULL;\n\n                short type = (short) (nodes.readEntry(nodeHandle, 0) & 0xFFFF);\n                if ((type == ELEMENT_NODE) || (type == ATTRIBUTE_NODE) ||\n                                (type == ENTITY_REFERENCE_NODE)) {\n                        int nextSib = nodes.readEntry(nodeHandle, 2);\n                        if (nextSib == NULL)\n                                return NULL;\n                        if (nextSib != 0)\n                                return (m_docHandle | nextSib);\n                }\n                int thisParent = nodes.readEntry(nodeHandle, 1);\n\n                if (nodes.readEntry(++nodeHandle, 1) == thisParent)\n                        return (m_docHandle | nodeHandle);\n\n                return NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [4, 10], [6, 11], [6, 12], [0, 13], [8, 14], [9, 15], [3, 16], [4, 17], [4, 18], [4, 19], [10, 20], [10, 21], [12, 22], [15, 23], [16, 24], [17, 25], [17, 26], [18, 27], [18, 28], [21, 29], [21, 30], [5, 31], [25, 32], [26, 33], [19, 34], [31, 35], [31, 36], [34, 37], [36, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 4], [11, 6], [12, 6], [13, 0], [14, 8], [15, 9], [16, 3], [17, 4], [18, 4], [19, 4], [20, 10], [21, 10], [22, 12], [23, 15], [24, 16], [25, 17], [26, 17], [27, 18], [28, 18], [29, 21], [30, 21], [31, 5], [32, 25], [33, 26], [34, 19], [35, 31], [36, 31], [37, 34], [38, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "getPreviousSibling", "code": "        public int getPreviousSibling(int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n                if (nodeHandle == 0)\n                        return NULL;\n\n                int parent = nodes.readEntry(nodeHandle, 1);\n                int kid = NULL;\n                for (int nextkid = getFirstChild(parent); nextkid != nodeHandle;\n                                nextkid = getNextSibling(nextkid)) {\n                        kid = nextkid;\n                }\n                return kid | m_docHandle;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [5, 10], [5, 11], [0, 12], [8, 13], [4, 14], [11, 15], [2, 16], [2, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 5], [11, 5], [12, 0], [13, 8], [14, 4], [15, 11], [16, 2], [17, 2], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getNextAttribute", "code": "        public int getNextAttribute(int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n                nodes.readSlot(nodeHandle, gotslot);\n\n                short type = (short) (gotslot[0] & 0xFFFF);\n\n                if (type == ELEMENT_NODE) {\n                        return getFirstAttribute(nodeHandle);\n                } else if (type == ATTRIBUTE_NODE) {\n                        if (gotslot[2] != NULL)\n                                return (m_docHandle | gotslot[2]);\n                }\n                return NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [0, 7], [0, 8], [5, 9], [2, 10], [5, 11], [10, 12], [3, 13], [11, 14], [11, 15], [13, 16], [14, 17], [13, 18], [15, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 0], [8, 0], [9, 5], [10, 2], [11, 5], [12, 10], [13, 3], [14, 11], [15, 11], [16, 13], [17, 14], [18, 13], [19, 15], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getNextNamespaceNode", "code": "        public int getNextNamespaceNode(int baseHandle,int namespaceHandle, boolean inScope) {\n                return NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNextDescendant", "code": "        public int getNextDescendant(int subtreeRootHandle, int nodeHandle) {\n                subtreeRootHandle &= NODEHANDLE_MASK;\n                nodeHandle &= NODEHANDLE_MASK;\n                if (nodeHandle == 0)\n                        return NULL;\n                while (!m_isError) {\n                        if (done && (nodeHandle > nodes.slotsUsed()))\n                                break;\n                        if (nodeHandle > subtreeRootHandle) {\n                                nodes.readSlot(nodeHandle+1, gotslot);\n                                if (gotslot[2] != 0) {\n                                        short type = (short) (gotslot[0] & 0xFFFF);\n                                        if (type == ATTRIBUTE_NODE) {\n                                                nodeHandle +=2;\n                                        } else {\n                                                int nextParentPos = gotslot[1];\n                                                if (nextParentPos >= subtreeRootHandle)\n                                                        return (m_docHandle | (nodeHandle+1));\n                                                else\n                                                        break;\n                                        }\n                                } else if (!done) {\n                                } else\n                                        break;\n                        } else {\n                                nodeHandle++;\n                        }\n                }\n                return NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "PARAM", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [0, 8], [0, 9], [2, 10], [2, 11], [7, 12], [10, 13], [11, 14], [11, 15], [10, 16], [15, 17], [16, 18], [16, 19], [10, 20], [17, 21], [18, 22], [16, 23], [16, 24], [19, 25], [20, 26], [23, 27], [26, 28], [23, 29], [23, 30], [19, 31], [29, 32], [29, 33], [29, 34], [23, 35], [24, 36], [33, 37], [35, 38], [36, 39], [37, 40], [40, 41], [30, 42], [36, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 0], [9, 0], [10, 2], [11, 2], [12, 7], [13, 10], [14, 11], [15, 11], [16, 10], [17, 15], [18, 16], [19, 16], [20, 10], [21, 17], [22, 18], [23, 16], [24, 16], [25, 19], [26, 20], [27, 23], [28, 26], [29, 23], [30, 23], [31, 19], [32, 29], [33, 29], [34, 29], [35, 23], [36, 24], [37, 33], [38, 35], [39, 36], [40, 37], [41, 40], [42, 30], [43, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "getNextFollowing", "code": "        public int getNextFollowing(int axisContextHandle, int nodeHandle) {\n                return NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNextPreceding", "code": "        public int getNextPreceding(int axisContextHandle, int nodeHandle) {\n                nodeHandle &= NODEHANDLE_MASK;\n                while (nodeHandle > 1) {\n                        nodeHandle--;\n                        if (ATTRIBUTE_NODE == (nodes.readEntry(nodeHandle, 0) & 0xFFFF))\n                                continue;\n\n\n\n                        return (m_docHandle | nodes.specialFind(axisContextHandle, nodeHandle));\n                }\n                return NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [2, 7], [2, 8], [5, 9], [7, 10], [8, 11], [8, 12], [10, 13], [12, 14], [14, 15], [14, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 2], [8, 2], [9, 5], [10, 7], [11, 8], [12, 8], [13, 10], [14, 12], [15, 14], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getParent", "code": "        public int getParent(int nodeHandle) {\n\n                return (m_docHandle | nodes.readEntry(nodeHandle, 1));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDocumentRoot", "code": "        public int getDocumentRoot() {\n                return (m_docHandle | m_docElement);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocument", "code": "        public int getDocument() {\n                return m_docHandle;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOwnerDocument", "code": "        public int getOwnerDocument(int nodeHandle) {\n                if ((nodeHandle & NODEHANDLE_MASK) == 0)\n                        return NULL;\n                return (nodeHandle & DOCHANDLE_MASK);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDocumentRoot", "code": "        public int getDocumentRoot(int nodeHandle) {\n                if ((nodeHandle & NODEHANDLE_MASK) == 0)\n                        return NULL;\n                return (nodeHandle & DOCHANDLE_MASK);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getStringValue", "code": "        public XMLString getStringValue(int nodeHandle) {\n        nodes.readSlot(nodeHandle, gotslot);\n        int nodetype=gotslot[0] & 0xFF;\n        String value=null;\n\n        switch (nodetype) {\n        case TEXT_NODE:\n        case COMMENT_NODE:\n        case CDATA_SECTION_NODE:\n                value= m_char.getString(gotslot[2], gotslot[3]);\n                break;\n        case PROCESSING_INSTRUCTION_NODE:\n        case ATTRIBUTE_NODE:\n        case ELEMENT_NODE:\n        case ENTITY_REFERENCE_NODE:\n        default:\n                break;\n        }\n        return m_xsf.newstr( value );", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [2, 9], [3, 10], [4, 11], [2, 12], [11, 13], [12, 14], [11, 15], [14, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 2], [10, 3], [11, 4], [12, 2], [13, 11], [14, 12], [15, 11], [16, 14], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getStringValueChunkCount", "code": "        public int getStringValueChunkCount(int nodeHandle)\n        {\n                return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStringValueChunk", "code": "        public char[] getStringValueChunk(int nodeHandle, int chunkIndex,\n                                                                                                                                                int[] startAndLen) {return new char[0];}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getExpandedTypeID", "code": "        public int getExpandedTypeID(int nodeHandle) {\n           nodes.readSlot(nodeHandle, gotslot);\n           String qName = m_localNames.indexToString(gotslot[3]);\n           int colonpos = qName.indexOf(\":\");\n           String localName = qName.substring(colonpos+1);\n           String namespace = m_nsNames.indexToString(gotslot[0] << 16);\n           String expandedName = namespace + \":\" + localName;\n           int expandedNameID = m_nsNames.stringToIndex(expandedName);\n\n        return expandedNameID;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [4, 12], [5, 13], [6, 14], [7, 15], [11, 16], [12, 17], [13, 18], [14, 19], [16, 20], [17, 21], [18, 22], [15, 23], [17, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 4], [13, 5], [14, 6], [15, 7], [16, 11], [17, 12], [18, 13], [19, 14], [20, 16], [21, 17], [22, 18], [23, 15], [24, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getExpandedTypeID", "code": "        public int getExpandedTypeID(String namespace, String localName, int type) {\n           String expandedName = namespace + \":\" + localName;\n           int expandedNameID = m_nsNames.stringToIndex(expandedName);\n\n           return expandedNameID;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getLocalNameFromExpandedNameID", "code": "        public String getLocalNameFromExpandedNameID(int ExpandedNameID) {\n\n           String expandedName = m_localNames.indexToString(ExpandedNameID);\n           int colonpos = expandedName.indexOf(\":\");\n           String localName = expandedName.substring(colonpos+1);\n           return localName;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getNamespaceFromExpandedNameID", "code": "        public String getNamespaceFromExpandedNameID(int ExpandedNameID) {\n\n           String expandedName = m_localNames.indexToString(ExpandedNameID);\n           int colonpos = expandedName.indexOf(\":\");\n           String nsName = expandedName.substring(0, colonpos);\n\n        return nsName;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNodeName", "code": "        public String getNodeName(int nodeHandle) {\n                nodes.readSlot(nodeHandle, gotslot);\n                short type = (short) (gotslot[0] & 0xFFFF);\n                String name = fixednames[type];\n                if (null == name) {\n                  int i=gotslot[3];\n                  /**/System.out.println(\"got i=\"+i+\" \"+(i>>16)+\"/\"+(i&0xffff));\n\n                  name=m_localNames.indexToString(i & 0xFFFF);\n                  String prefix=m_prefixNames.indexToString(i >>16);\n                  if(prefix!=null && prefix.length()>0)\n                    name=prefix+\":\"+name;\n                }\n                return name;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [2, 9], [2, 10], [6, 11], [8, 12], [2, 13], [2, 14], [4, 15], [8, 16], [12, 17], [12, 18], [9, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [17, 25], [18, 26], [19, 27], [20, 28], [21, 29], [21, 30], [23, 31], [27, 32], [28, 33], [29, 34], [30, 35], [30, 36], [10, 37], [15, 38], [31, 39], [36, 40], [36, 41], [40, 42], [41, 43], [41, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 2], [10, 2], [11, 6], [12, 8], [13, 2], [14, 2], [15, 4], [16, 8], [17, 12], [18, 12], [19, 9], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 17], [26, 18], [27, 19], [28, 20], [29, 21], [30, 21], [31, 23], [32, 27], [33, 28], [34, 29], [35, 30], [36, 30], [37, 10], [38, 15], [39, 31], [40, 36], [41, 36], [42, 40], [43, 41], [44, 41], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "getNodeNameX", "code": "        public String getNodeNameX(int nodeHandle) {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLocalName", "code": "        public String getLocalName(int nodeHandle) {\n                nodes.readSlot(nodeHandle, gotslot);\n                short type = (short) (gotslot[0] & 0xFFFF);\n                String name = \"\";\n                if ((type==ELEMENT_NODE) || (type==ATTRIBUTE_NODE)) {\n                  int i=gotslot[3];\n                  name=m_localNames.indexToString(i & 0xFFFF);\n                  if(name==null) name=\"\";\n                }\n                return name;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [2, 9], [6, 10], [6, 11], [3, 12], [8, 13], [2, 14], [4, 15], [8, 16], [13, 17], [14, 18], [15, 19], [16, 20], [18, 21], [21, 22], [9, 23], [15, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 2], [10, 6], [11, 6], [12, 3], [13, 8], [14, 2], [15, 4], [16, 8], [17, 13], [18, 14], [19, 15], [20, 16], [21, 18], [22, 21], [23, 9], [24, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getPrefix", "code": "        public String getPrefix(int nodeHandle) {\n                nodes.readSlot(nodeHandle, gotslot);\n                short type = (short) (gotslot[0] & 0xFFFF);\n                String name = \"\";\n                if((type==ELEMENT_NODE) || (type==ATTRIBUTE_NODE)) {\n                  int i=gotslot[3];\n                  name=m_prefixNames.indexToString(i >>16);\n                  if(name==null) name=\"\";\n                }\n                return name;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [2, 9], [6, 10], [6, 11], [3, 12], [8, 13], [2, 14], [4, 15], [8, 16], [13, 17], [14, 18], [15, 19], [16, 20], [18, 21], [21, 22], [9, 23], [15, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 2], [10, 6], [11, 6], [12, 3], [13, 8], [14, 2], [15, 4], [16, 8], [17, 13], [18, 14], [19, 15], [20, 16], [21, 18], [22, 21], [23, 9], [24, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getNamespaceURI", "code": "        public String getNamespaceURI(int nodeHandle) {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNodeValue", "code": "        public String getNodeValue(int nodeHandle)\n        {\n                nodes.readSlot(nodeHandle, gotslot);\n                String value=null;\n\t\t\tswitch(value){\n                case ATTRIBUTE_NODE:\n                        nodes.readSlot(nodeHandle+1, gotslot);\n                case TEXT_NODE:\n                case COMMENT_NODE:\n                case CDATA_SECTION_NODE:\n                        break;\n                case PROCESSING_INSTRUCTION_NODE:\n                case ELEMENT_NODE:\n                case ENTITY_REFERENCE_NODE:\n                default:\n                        break;\n                }\n                return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "PARAM", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [2, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 2], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getNodeType", "code": "        public short getNodeType(int nodeHandle) {\n                return(short) (nodes.readEntry(nodeHandle, 0) & 0xFFFF);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getLevel", "code": "        public short getLevel(int nodeHandle) {\n                short count = 0;\n                while (nodeHandle != 0) {\n                        count++;\n                        nodeHandle = nodes.readEntry(nodeHandle, 1);\n                }\n                return count;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isSupported", "code": "        public boolean isSupported(String feature, String version) {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDocumentBaseURI", "code": "        public String getDocumentBaseURI()\n        {\n\n          return m_documentBaseURI;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDocumentBaseURI", "code": "        public void setDocumentBaseURI(String baseURI)\n        {\n\n          m_documentBaseURI = baseURI;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentSystemIdentifier", "code": "        public String getDocumentSystemIdentifier(int nodeHandle) {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentEncoding", "code": "        public String getDocumentEncoding(int nodeHandle) {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentStandalone", "code": "        public String getDocumentStandalone(int nodeHandle) {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentVersion", "code": "        public String getDocumentVersion(int documentHandle) {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentAllDeclarationsProcessed", "code": "        public boolean getDocumentAllDeclarationsProcessed() {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentTypeDeclarationSystemIdentifier", "code": "        public String getDocumentTypeDeclarationSystemIdentifier() {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentTypeDeclarationPublicIdentifier", "code": "        public String getDocumentTypeDeclarationPublicIdentifier() {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getElementById", "code": "        public int getElementById(String elementId) {return 0;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getUnparsedEntityURI", "code": "        public String getUnparsedEntityURI(String name) {return null;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "supportsPreStripping", "code": "        public boolean supportsPreStripping() {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNodeAfter", "code": "        public boolean isNodeAfter(int nodeHandle1, int nodeHandle2) {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isCharacterElementContentWhitespace", "code": "        public boolean isCharacterElementContentWhitespace(int nodeHandle) {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDocumentAllDeclarationsProcessed", "code": "        public boolean isDocumentAllDeclarationsProcessed(int documentHandle) {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAttributeSpecified", "code": "        public boolean isAttributeSpecified(int attributeHandle) {return false;}", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispatchCharactersEvents", "code": "        public void dispatchCharactersEvents(\n                                                                                                                                                        int nodeHandle, org.xml.sax.ContentHandler ch, boolean normalize)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispatchToEvents", "code": "        public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNode", "code": "        public org.w3c.dom.Node getNode(int nodeHandle)\n        {\n          return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "appendChild", "code": "        public void appendChild(int newChild, boolean clone, boolean cloneDepth) {\n                boolean sameDoc = ((newChild & DOCHANDLE_MASK) == m_docHandle);\n                if (clone || !sameDoc) {\n\n                } else {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "appendTextChild", "code": "        public void appendTextChild(String str) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "appendTextChild", "code": "  void appendTextChild(int m_char_current_start,int contentLength)\n  {\n    int w0 = TEXT_NODE;\n    int w1 = currentParent;\n    int w2 = m_char_current_start;\n    int w3 = contentLength;\n\n    int ourslot = appendNode(w0, w1, w2, w3);\n    previousSibling = ourslot;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "appendComment", "code": "  void appendComment(int m_char_current_start,int contentLength)\n  {\n    int w0 = COMMENT_NODE;\n    int w1 = currentParent;\n    int w2 = m_char_current_start;\n    int w3 = contentLength;\n\n    int ourslot = appendNode(w0, w1, w2, w3);\n    previousSibling = ourslot;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "appendStartElement", "code": "  void appendStartElement(int namespaceIndex,int localNameIndex, int prefixIndex)\n  {\n\n                int w0 = (namespaceIndex << 16) | ELEMENT_NODE;\n                int w1 = currentParent;\n                int w2 = 0;\n                int w3 = localNameIndex | prefixIndex<<16;\n                /**/System.out.println(\"set w3=\"+w3+\" \"+(w3>>16)+\"/\"+(w3&0xffff));\n\n                int ourslot = appendNode(w0, w1, w2, w3);\n                currentParent = ourslot;\n                previousSibling = 0;\n\n                if (m_docElement == NULL)\n                        m_docElement = ourslot;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [0, 13], [1, 14], [11, 15], [2, 16], [13, 17], [3, 18], [4, 19], [6, 20], [17, 21], [17, 22], [18, 23], [20, 24], [21, 25], [22, 26], [22, 27], [23, 28], [24, 29], [27, 30], [27, 31], [30, 32], [31, 33], [31, 34], [34, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 0], [14, 1], [15, 11], [16, 2], [17, 13], [18, 3], [19, 4], [20, 6], [21, 17], [22, 17], [23, 18], [24, 20], [25, 21], [26, 22], [27, 22], [28, 23], [29, 24], [30, 27], [31, 27], [32, 30], [33, 31], [34, 31], [35, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "appendNSDeclaration", "code": "  void appendNSDeclaration(int prefixIndex, int namespaceIndex,\n                           boolean isID)\n  {\n\n\n\n\n\n    int w1 = currentParent;\n    int w2 = 0;\n    int w3 = namespaceIndex;\n    int ourslot = appendNode(w0, w1, w2, w3);\n    previousSiblingWasParent = false;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [8, 9], [1, 10], [3, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 8], [10, 1], [11, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "appendAttribute", "code": "  void appendAttribute(int namespaceIndex, int localNameIndex, int prefixIndex,\n                       boolean isID,\n                       int m_char_current_start, int contentLength)\n  {\n\n    int w0 = ATTRIBUTE_NODE | namespaceIndex<<16;\n\n    int w1 = currentParent;\n    int w2 = 0;\n    int w3 = localNameIndex | prefixIndex<<16;\n    /**/System.out.println(\"set w3=\"+w3+\" \"+(w3>>16)+\"/\"+(w3&0xffff));\n    int ourslot = appendNode(w0, w1, w2, w3);\n\n\n    w0 = TEXT_NODE;\n    w1 = ourslot;\n    w2 = m_char_current_start;\n    w3 = contentLength;\n    appendNode(w0, w1, w2, w3);\n\n    previousSiblingWasParent = true;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [12, 19], [1, 20], [18, 21], [2, 22], [3, 23], [5, 24], [21, 25], [21, 26], [22, 27], [24, 28], [25, 29], [26, 30], [26, 31], [27, 32], [28, 33], [31, 34], [31, 35], [34, 36], [35, 37], [35, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 12], [20, 1], [21, 18], [22, 2], [23, 3], [24, 5], [25, 21], [26, 21], [27, 22], [28, 24], [29, 25], [30, 26], [31, 26], [32, 27], [33, 28], [34, 31], [35, 31], [36, 34], [37, 35], [38, 35], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getAxisTraverser", "code": "  public DTMAxisTraverser getAxisTraverser(final int axis)\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAxisIterator", "code": "  public DTMAxisIterator getAxisIterator(final int axis)\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTypedAxisIterator", "code": "  public DTMAxisIterator getTypedAxisIterator(final int axis, final int type)\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "appendEndElement", "code": "  void appendEndElement()\n  {\n\n    if (previousSiblingWasParent)\n      nodes.writeEntry(previousSibling, 2, NULL);\n\n    previousSibling = currentParent;\n    nodes.readSlot(currentParent, gotslot);\n    currentParent = gotslot[1] & 0xFFFF;\n\n    previousSiblingWasParent = true;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 8], [7, 9], [8, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 1], [9, 7], [10, 8], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "appendStartDocument", "code": "  void appendStartDocument()\n  {\n\n    initDocument(0);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "appendEndDocument", "code": "  void appendEndDocument()\n  {\n    done = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperty", "code": "  public void setProperty(String property, Object value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSourceLocatorFor", "code": "  public SourceLocator getSourceLocatorFor(int node)\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "documentRegistration", "code": "   public void documentRegistration()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "documentRelease", "code": "   public void documentRelease()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "migrateTo", "code": "   public void migrateTo(DTMManager manager)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DTMDocumentImpl", "code": "        public DTMDocumentImpl(DTMManager mgr, int documentNumber,\n                               DTMWSFilter whiteSpaceFilter,\n                               XMLStringFactory xstringfactory){\n                m_xsf = xstringfactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "xalan-2.6-7736", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/DTMManagerDefault.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMManagerDefault", "code": "public class DTMManagerDefault extends DTMManager\n{\n\n  /** Set this to true if you want a dump of the DTM after creation. */\n  private static final boolean DUMPTREE = false;\n\n  /** Set this to true if you want a basic diagnostics. */\n  private static final boolean DEBUG = false;\n\n  /**\n   * Map from DTM identifier numbers to DTM objects that this manager manages.\n   * One DTM may have several prefix numbers, if extended node indexing\n   * is in use; in that case, m_dtm_offsets[] will used to control which\n   * prefix maps to which section of the DTM.\n   * \n   * This array grows as necessary; see addDTM().\n   * \n   * This array grows as necessary; see addDTM(). Growth is uncommon... but\n   * access needs to be blindingly fast since it's used in node addressing.\n   */\n  protected DTM m_dtms[] = new DTM[256];\n\t\n  /** Map from DTM identifier numbers to offsets. For small DTMs with a \n   * single identifier, this will always be 0. In overflow addressing, where\n   * additional identifiers are allocated to access nodes beyond the range of\n   * a single Node Handle, this table is used to map the handle's node field\n   * into the actual node identifier.\n   * \n   * This array grows as necessary; see addDTM().\n   * \n   * This array grows as necessary; see addDTM(). Growth is uncommon... but\n   * access needs to be blindingly fast since it's used in node addressing.\n   * (And at the moment, that includes accessing it from DTMDefaultBase,\n   * which is why this is not Protected or Private.)\n   */\n  int m_dtm_offsets[] = new int[256];\n\n  /**\n   * The cache for XMLReader objects to be used if the user did not\n   * supply an XMLReader for a SAXSource or supplied a StreamSource.\n   */\n  protected XMLReaderManager m_readerManager = null;\n\n  /**\n   * Add a DTM to the DTM table. This convenience call adds it as the \n   * \"base DTM ID\", with offset 0. The other version of addDTM should \n   * be used if you want to add \"extended\" DTM IDs with nonzero offsets.\n   *\n   * @param dtm Should be a valid reference to a DTM.\n   * @param id Integer DTM ID to be bound to this DTM\n   */\n  synchronized public void addDTM(DTM dtm, int id) {\taddDTM(dtm,id,0); }\n\n\t\n  /**\n   * Add a DTM to the DTM table.\n   *\n   * @param dtm Should be a valid reference to a DTM.\n   * @param id Integer DTM ID to be bound to this DTM.\n   * @param offset Integer addressing offset. The internal DTM Node ID is\n   * obtained by adding this offset to the node-number field of the \n   * public DTM Handle. For the first DTM ID accessing each DTM, this is 0;\n   * for overflow addressing it will be a multiple of 1<<IDENT_DTM_NODE_BITS.\n   */\n  synchronized public void addDTM(DTM dtm, int id, int offset)\n  {\n\t\tif(id>=IDENT_MAX_DTMS)\n\t\t{\n\t\t}\n\t\t\n\t\tint oldlen=m_dtms.length;\n\t\tif(oldlen<=id)\n\t\t{\n\t\t\tint newlen=Math.min((id+256),IDENT_MAX_DTMS);\n\n\t\t\tDTM new_m_dtms[] = new DTM[newlen];\n\t\t\tSystem.arraycopy(m_dtms,0,new_m_dtms,0,oldlen);\n\t\t\tm_dtms=new_m_dtms;\n\t\t\tint new_m_dtm_offsets[] = new int[newlen];\n\t\t\tSystem.arraycopy(m_dtm_offsets,0,new_m_dtm_offsets,0,oldlen);\n\t\t\tm_dtm_offsets=new_m_dtm_offsets;\n\t\t}\n\t\t\n    m_dtms[id] = dtm;\n\t\tm_dtm_offsets[id]=offset;\n    dtm.documentRegistration();\n  }\n\n  /**\n   * Get the first free DTM ID available. %OPT% Linear search is inefficient!\n   */\n  synchronized public int getFirstFreeDTMID()\n  {\n    int n = m_dtms.length;\n    for (int i = 1; i < n; i++)\n    {\n      if(null == m_dtms[i])\n      {\n        return i;\n      }\n    }\n  }\n\n  /**\n   * The default table for exandedNameID lookups.\n   */\n  private ExpandedNameTable m_expandedNameTable =\n    new ExpandedNameTable();\n\n  /**\n   * Constructor DTMManagerDefault\n   *\n   */\n  public DTMManagerDefault(){}\n\n\n  /**\n   * Get an instance of a DTM, loaded with the content from the\n   * specified source.  If the unique flag is true, a new instance will\n   * always be returned.  Otherwise it is up to the DTMManager to return a\n   * new instance or an instance that it already created and may be being used\n   * by someone else.\n   * \n   * A bit of magic in this implementation: If the source is null, unique is true,\n   * and incremental and doIndexing are both false, we return an instance of\n   * SAX2RTFDTM, which see.\n   * \n   * (I think more parameters will need to be added for error handling, and entity\n   * resolution, and more explicit control of the RTF situation).\n   *\n   * @param source the specification of the source object.\n   * @param unique true if the returned DTM must be unique, probably because it\n   * is going to be mutated.\n   * @param whiteSpaceFilter Enables filtering of whitespace nodes, and may\n   *                         be null.\n   * @param incremental true if the DTM should be built incrementally, if\n   *                    possible.\n   * @param doIndexing true if the caller considers it worth it to use\n   *                   indexing schemes.\n   *\n   * @return a non-null DTM reference.\n   */\n  synchronized public DTM getDTM(Source source, boolean unique,\n                                 DTMWSFilter whiteSpaceFilter,\n                                 boolean incremental, boolean doIndexing)\n  {\n\n    if(DEBUG && null != source)\n      System.out.println(\"Starting \"+\n                         (unique ? \"UNIQUE\" : \"shared\")+\n                         \" source: \"+source.getSystemId()\n                         );\n\n    XMLStringFactory xstringFactory = m_xsf;\n    int dtmPos = getFirstFreeDTMID();\n    int documentID = dtmPos << IDENT_DTM_NODE_BITS;\n\n    if ((null != source) && source instanceof DOMSource)\n    {\n      DOM2DTM dtm = new DOM2DTM(this, (DOMSource) source, documentID,\n                                whiteSpaceFilter, xstringFactory, doIndexing);\n\n      addDTM(dtm, dtmPos, 0);\n\n\n      return dtm;\n    }\n    else\n    {\n      boolean isSAXSource = (null != source)\n        ? (source instanceof SAXSource) : true;\n      boolean isStreamSource = (null != source)\n        ? (source instanceof StreamSource) : false;\n\n      if (isSAXSource || isStreamSource) {\n        XMLReader reader = null;\n\n        try {\n          InputSource xmlSource;\n\n          if (null == source) {\n            xmlSource = null;\n          } else {\n            reader = getXMLReader(source);\n            xmlSource = SAXSource.sourceToInputSource(source);\n\n            String urlOfSource = xmlSource.getSystemId();\n\n            if (null != urlOfSource) {\n              try {\n                urlOfSource = SystemIDResolver.getAbsoluteURI(urlOfSource);\n              } catch (Exception e) {\n                System.err.println(\"Can not absolutize URL: \" + urlOfSource);\n              }\n\n              xmlSource.setSystemId(urlOfSource);\n            }\n          }\n\n          SAX2DTM dtm;\n          if (source==null && unique && !incremental && !doIndexing) {\n            dtm = new SAX2RTFDTM(this, source, documentID, whiteSpaceFilter,\n                                 xstringFactory, doIndexing);\n          }\n          /**************************************************************\n          else if(JKESS_XNI_EXPERIMENT && m_incremental) {        \t\n            dtm = new XNI2DTM(this, source, documentID, whiteSpaceFilter,\n                              xstringFactory, doIndexing);\n          }\n          **************************************************************/\n          else {\n            dtm = new SAX2DTM(this, source, documentID, whiteSpaceFilter,\n                              xstringFactory, doIndexing);\n          }\n\n          addDTM(dtm, dtmPos, 0);\n\n\n          boolean haveXercesParser =\n                     (null != reader)\n                     && (reader.getClass()\n                               .getName()\n                               .equals(\"org.apache.xerces.parsers.SAXParser\") );\n        \n          if (haveXercesParser) {\n          }\n        \n          if (m_incremental && incremental\n               /* || ((null == reader) && incremental) */) {\n            IncrementalSAXSource coParser=null;\n\n            if (haveXercesParser) {\n              try {\n                coParser =(IncrementalSAXSource)\n                  Class.forName(\"org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces\").newInstance();  \n              }  catch( Exception ex ) {\n                ex.printStackTrace();\n                coParser=null;\n              }\n            }\n\n            if (coParser==null ) {\n              if (null == reader) {\n                coParser = new IncrementalSAXSource_Filter();\n              } else {\n                IncrementalSAXSource_Filter filter =\n                         new IncrementalSAXSource_Filter();\n                filter.setXMLReader(reader);\n                coParser=filter;\n              }\n            }\n\n\t\t\t\n            /**************************************************************\n            if (JKESS_XNI_EXPERIMENT && m_incremental &&\n                  dtm instanceof XNI2DTM && \n                  coParser instanceof IncrementalSAXSource_Xerces) {\n                org.apache.xerces.xni.parser.XMLPullParserConfiguration xpc=\n                      ((IncrementalSAXSource_Xerces)coParser)\n                                           .getXNIParserConfiguration();\n              if (xpc!=null) {\n                ((XNI2DTM)dtm).setIncrementalXNISource(xpc);\n              } else {\n                dtm.setIncrementalSAXSource(coParser);\n              }\n            } else\n            ***************************************************************/\n          \n            dtm.setIncrementalSAXSource(coParser);\n\n            if (null == xmlSource) {\n\n              return dtm;\n            }\n\n            if (null == reader.getErrorHandler()) {\n              reader.setErrorHandler(dtm);\n            }\n            reader.setDTDHandler(dtm);\n\n            try {\n\n              coParser.startParse(xmlSource);\n            } catch (RuntimeException re) {\n\n              dtm.clearCoRoutine();\n\n              throw re;\n            } catch (Exception e) {\n\n              dtm.clearCoRoutine();\n\n              throw new org.apache.xml.utils.WrappedRuntimeException(e);\n            }\n          } else {\n            if (null == reader) {\n\n              return dtm;\n            }\n\n            reader.setContentHandler(dtm);\n            reader.setDTDHandler(dtm);\n            if (null == reader.getErrorHandler()) {\n              reader.setErrorHandler(dtm);\n            }\n\n            try {\n              reader.setProperty(\n                               dtm);\n            } catch (SAXNotRecognizedException e){}\n              catch (SAXNotSupportedException e){}\n\n            try {\n              reader.parse(xmlSource);\n            } catch (RuntimeException re) {\n              dtm.clearCoRoutine();\n\n              throw re;\n            } catch (Exception e) {\n              dtm.clearCoRoutine();\n\n              throw new org.apache.xml.utils.WrappedRuntimeException(e);\n            }\n          }\n\n          if (DUMPTREE) {\n            System.out.println(\"Dumping SAX2DOM\");\n            dtm.dumpDTM(System.err);\n          }\n\n          return dtm;\n        } finally {\n          releaseXMLReader(reader);\n        }\n      } else {\n\n      }\n    }\n  }\n\n  /**\n   * Given a W3C DOM node, try and return a DTM handle.\n   * Note: calling this may be non-optimal, and there is no guarantee that\n   * the node will be found in any particular DTM.\n   *\n   * @param node Non-null reference to a DOM node.\n   *\n   * @return a valid DTM handle.\n   */\n  synchronized public int getDTMHandleFromNode(org.w3c.dom.Node node)\n  {\n    if(null == node)\n\n    if (node instanceof org.apache.xml.dtm.ref.DTMNodeProxy)\n      return ((org.apache.xml.dtm.ref.DTMNodeProxy) node).getDTMNodeNumber();\n\t\t\n    else\n    {\n\t\t\tint max = m_dtms.length;\n      for(int i = 0; i < max; i++)\n        {\n          DTM thisDTM=m_dtms[i];\n          if((null != thisDTM) && thisDTM instanceof DOM2DTM)\n          {\n            int handle=((DOM2DTM)thisDTM).getHandleOfNode(node);\n            if(handle!=DTM.NULL) return handle;\n          }\n         }\n\n\n      Node root = node;\n      Node p = (root.getNodeType() == Node.ATTRIBUTE_NODE) ? ((org.w3c.dom.Attr)root).getOwnerElement() : root.getParentNode();\n      for (; p != null; p = p.getParentNode())\n      {\n        root = p;\n      }\n\n      DOM2DTM dtm = (DOM2DTM) getDTM(new javax.xml.transform.dom.DOMSource(root),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, null, true, true);\n\n      int handle;\n      \n      if(node instanceof org.apache.xml.dtm.ref.dom2dtm.DOM2DTMdefaultNamespaceDeclarationNode)\n      {\n\t\t\t\thandle=dtm.getHandleOfNode(((org.w3c.dom.Attr)node).getOwnerElement());\n\t\t\t\thandle=dtm.getAttributeNode(handle,node.getNamespaceURI(),node.getLocalName());\n      }\n      else\n\t\t\t\thandle = ((DOM2DTM)dtm).getHandleOfNode(node);\n\n      if(DTM.NULL == handle)\n\n      return handle;\n    }\n  }\n\n  /**\n   * This method returns the SAX2 parser to use with the InputSource\n   * obtained from this URI.\n   * It may return null if any SAX2-conformant XML parser can be used,\n   * or if getInputSource() will also return null. The parser must\n   * be free for use (i.e., not currently in use for another parse().\n   * After use of the parser is completed, the releaseXMLReader(XMLReader)\n   * must be called.\n   *\n   * @param inputSource The value returned from the URIResolver.\n   * @return  a SAX2 XMLReader to use to resolve the inputSource argument.\n   *\n   * @return non-null XMLReader reference ready to parse.\n   */\n  synchronized public XMLReader getXMLReader(Source inputSource)\n  {\n\n    try\n    {\n      XMLReader reader = (inputSource instanceof SAXSource)\n                         ? ((SAXSource) inputSource).getXMLReader() : null;\n\n      if (null == reader) {\n        if (m_readerManager == null) {\n            m_readerManager = XMLReaderManager.getInstance();\n        }\n\n        reader = m_readerManager.getXMLReader();\n      }\n\n      return reader;\n\n    } catch (SAXException se) {\n      throw new DTMException(se.getMessage(), se);\n    }\n  }\n\n  /**\n   * Indicates that the XMLReader object is no longer in use for the transform.\n   *\n   * Note that the getXMLReader method may return an XMLReader that was\n   * specified on the SAXSource object by the application code.  Such a\n   * reader should still be passed to releaseXMLReader, but the reader manager\n   * will only re-use XMLReaders that it created.\n   *\n   * @param reader The XMLReader to be released.\n   */\n  synchronized public void releaseXMLReader(XMLReader reader) {\n    if (m_readerManager != null) {\n      m_readerManager.releaseXMLReader(reader);\n    }\n  }\n\n  /**\n   * Return the DTM object containing a representation of this node.\n   *\n   * @param nodeHandle DTM Handle indicating which node to retrieve\n   *\n   * @return a reference to the DTM object containing this node.\n   */\n  synchronized public DTM getDTM(int nodeHandle)\n  {\n    try\n    {\n      return m_dtms[nodeHandle >>> IDENT_DTM_NODE_BITS];\n    }\n    catch(java.lang.ArrayIndexOutOfBoundsException e)\n    {\n      if(nodeHandle==DTM.NULL){}\n      else{}\n    }    \n  }\n\n  /**\n   * Given a DTM, find the ID number in the DTM tables which addresses\n   * the start of the document. If overflow addressing is in use, other\n   * DTM IDs may also be assigned to this DTM.\n   *\n   * @param dtm The DTM which (hopefully) contains this node.\n   *\n   * @return The DTM ID (as the high bits of a NodeHandle, not as our\n   * internal index), or -1 if the DTM doesn't belong to this manager.\n   */\n  synchronized public int getDTMIdentity(DTM dtm)\n  {\n\tif(dtm instanceof DTMDefaultBase)\n\t{\n\t\tDTMDefaultBase dtmdb=(DTMDefaultBase)dtm;\n\t\tif(dtmdb.getManager()==this)\n\t\t\treturn dtmdb.getDTMIDs().elementAt(0);\n\t\telse\n\t\t\treturn -1;\n\t}\n\t\t\t\t\n    int n = m_dtms.length;\n\n    for (int i = 0; i < n; i++)\n    {\n      DTM tdtm = m_dtms[i];\n\n      if (tdtm == dtm && m_dtm_offsets[i]==0)\n        return i << IDENT_DTM_NODE_BITS;\n    }\n\n    return -1;\n  }\n\n  /**\n   * Release the DTMManager's reference(s) to a DTM, making it unmanaged.\n   * This is typically done as part of returning the DTM to the heap after\n   * we're done with it.\n   *\n   * @param dtm the DTM to be released.\n   * \n   * @param shouldHardDelete If false, this call is a suggestion rather than an\n   * order, and we may not actually release the DTM. This is intended to \n   * support intelligent caching of documents... which is not implemented\n   * in this version of the DTM manager.\n   *\n   * @return true if the DTM was released, false if shouldHardDelete was set\n   * and we decided not to.\n   */\n  synchronized public boolean release(DTM dtm, boolean shouldHardDelete)\n  {\n    if(DEBUG)\n    {\n      System.out.println(\"Releasing \"+\n\t\t\t (shouldHardDelete ? \"HARD\" : \"soft\")+\n\t\t\t \" dtm=\"+\n\t\t\t dtm.getDocumentBaseURI()\n\t\t\t );\n    }\n\n    if (dtm instanceof SAX2DTM)\n    {\n      ((SAX2DTM) dtm).clearCoRoutine();\n    }\n\n\t\tif(dtm instanceof DTMDefaultBase)\n\t\t{\n\t\t\torg.apache.xml.utils.SuballocatedIntVector ids=((DTMDefaultBase)dtm).getDTMIDs();\n\t\t\tfor(int i=ids.size()-1;i>=0;--i)\n\t\t\t\tm_dtms[ids.elementAt(i)>>>DTMManager.IDENT_DTM_NODE_BITS]=null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint i = getDTMIdentity(dtm);\n\t\t    if (i >= 0)\n\t\t\t{\n\t\t\t\tm_dtms[i >>> DTMManager.IDENT_DTM_NODE_BITS] = null;\n\t\t\t}\n\t\t}\n\n    dtm.documentRelease();\n    return true;\n  }\n\n  /**\n   * Method createDocumentFragment\n   *\n   *\n   * NEEDSDOC (createDocumentFragment) @return\n   */\n  synchronized public DTM createDocumentFragment()\n  {\n\n    try\n    {\n      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n      dbf.setNamespaceAware(true);\n\n      DocumentBuilder db = dbf.newDocumentBuilder();\n      Document doc = db.newDocument();\n      Node df = doc.createDocumentFragment();\n\n      return getDTM(new DOMSource(df), true, null, false, false);\n    }\n    catch (Exception e)\n    {\n      throw new DTMException(e);\n    }\n  }\n\n  /**\n   * NEEDSDOC Method createDTMIterator\n   *\n   *\n   * NEEDSDOC @param whatToShow\n   * NEEDSDOC @param filter\n   * NEEDSDOC @param entityReferenceExpansion\n   *\n   * NEEDSDOC (createDTMIterator) @return\n   */\n  synchronized public DTMIterator createDTMIterator(int whatToShow, DTMFilter filter,\n                                       boolean entityReferenceExpansion)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;\n  }\n\n  /**\n   * NEEDSDOC Method createDTMIterator\n   *\n   *\n   * NEEDSDOC @param xpathString\n   * NEEDSDOC @param presolver\n   *\n   * NEEDSDOC (createDTMIterator) @return\n   */\n  synchronized public DTMIterator createDTMIterator(String xpathString,\n                                       PrefixResolver presolver)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;\n  }\n\n  /**\n   * NEEDSDOC Method createDTMIterator\n   *\n   *\n   * NEEDSDOC @param node\n   *\n   * NEEDSDOC (createDTMIterator) @return\n   */\n  synchronized public DTMIterator createDTMIterator(int node)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;\n  }\n\n  /**\n   * NEEDSDOC Method createDTMIterator\n   *\n   *\n   * NEEDSDOC @param xpathCompiler\n   * NEEDSDOC @param pos\n   *\n   * NEEDSDOC (createDTMIterator) @return\n   */\n  synchronized public DTMIterator createDTMIterator(Object xpathCompiler, int pos)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;\n  }\n\n  /**\n   * return the expanded name table.\n   *\n   * NEEDSDOC @param dtm\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  public ExpandedNameTable getExpandedNameTable(DTM dtm)\n  {\n    return m_expandedNameTable;", "functions": [{"function_name": "addDTM", "code": "  synchronized public void addDTM(DTM dtm, int id) {\taddDTM(dtm,id,0); }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addDTM", "code": "  synchronized public void addDTM(DTM dtm, int id, int offset)\n  {\n\t\tif(id>=IDENT_MAX_DTMS)\n\t\t{\n\t\t}\n\t\t\n\t\tint oldlen=m_dtms.length;\n\t\tif(oldlen<=id)\n\t\t{\n\t\t\tint newlen=Math.min((id+256),IDENT_MAX_DTMS);\n\n\t\t\tDTM new_m_dtms[] = new DTM[newlen];\n\t\t\tSystem.arraycopy(m_dtms,0,new_m_dtms,0,oldlen);\n\t\t\tm_dtms=new_m_dtms;\n\t\t\tint new_m_dtm_offsets[] = new int[newlen];\n\t\t\tSystem.arraycopy(m_dtm_offsets,0,new_m_dtm_offsets,0,oldlen);\n\t\t\tm_dtm_offsets=new_m_dtm_offsets;\n\t\t}\n\t\t\n    m_dtms[id] = dtm;\n\t\tm_dtm_offsets[id]=offset;\n    dtm.documentRegistration();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [16, 19], [16, 20], [18, 21], [18, 22], [14, 23], [23, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 16], [20, 16], [21, 18], [22, 18], [23, 14], [24, 23], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getFirstFreeDTMID", "code": "  synchronized public int getFirstFreeDTMID()\n  {\n    int n = m_dtms.length;\n    for (int i = 1; i < n; i++)\n    {\n      if(null == m_dtms[i])\n      {\n        return i;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDTM", "code": "  synchronized public DTM getDTM(Source source, boolean unique,\n                                 DTMWSFilter whiteSpaceFilter,\n                                 boolean incremental, boolean doIndexing)\n  {\n\n    if(DEBUG && null != source)\n      System.out.println(\"Starting \"+\n                         (unique ? \"UNIQUE\" : \"shared\")+\n                         \" source: \"+source.getSystemId()\n                         );\n\n    XMLStringFactory xstringFactory = m_xsf;\n    int dtmPos = getFirstFreeDTMID();\n    int documentID = dtmPos << IDENT_DTM_NODE_BITS;\n\n    if ((null != source) && source instanceof DOMSource)\n    {\n      DOM2DTM dtm = new DOM2DTM(this, (DOMSource) source, documentID,\n                                whiteSpaceFilter, xstringFactory, doIndexing);\n\n      addDTM(dtm, dtmPos, 0);\n\n\n      return dtm;\n    }\n    else\n    {\n      boolean isSAXSource = (null != source)\n        ? (source instanceof SAXSource) : true;\n      boolean isStreamSource = (null != source)\n        ? (source instanceof StreamSource) : false;\n\n      if (isSAXSource || isStreamSource) {\n        XMLReader reader = null;\n\n        try {\n          InputSource xmlSource;\n\n          if (null == source) {\n            xmlSource = null;\n          } else {\n            reader = getXMLReader(source);\n            xmlSource = SAXSource.sourceToInputSource(source);\n\n            String urlOfSource = xmlSource.getSystemId();\n\n            if (null != urlOfSource) {\n              try {\n                urlOfSource = SystemIDResolver.getAbsoluteURI(urlOfSource);\n              } catch (Exception e) {\n                System.err.println(\"Can not absolutize URL: \" + urlOfSource);\n              }\n\n              xmlSource.setSystemId(urlOfSource);\n            }\n          }\n\n          SAX2DTM dtm;\n          if (source==null && unique && !incremental && !doIndexing) {\n            dtm = new SAX2RTFDTM(this, source, documentID, whiteSpaceFilter,\n                                 xstringFactory, doIndexing);\n          }\n          /**************************************************************\n          else if(JKESS_XNI_EXPERIMENT && m_incremental) {        \t\n            dtm = new XNI2DTM(this, source, documentID, whiteSpaceFilter,\n                              xstringFactory, doIndexing);\n          }\n          **************************************************************/\n          else {\n            dtm = new SAX2DTM(this, source, documentID, whiteSpaceFilter,\n                              xstringFactory, doIndexing);\n          }\n\n          addDTM(dtm, dtmPos, 0);\n\n\n          boolean haveXercesParser =\n                     (null != reader)\n                     && (reader.getClass()\n                               .getName()\n                               .equals(\"org.apache.xerces.parsers.SAXParser\") );\n        \n          if (haveXercesParser) {\n          }\n        \n          if (m_incremental && incremental\n               /* || ((null == reader) && incremental) */) {\n            IncrementalSAXSource coParser=null;\n\n            if (haveXercesParser) {\n              try {\n                coParser =(IncrementalSAXSource)\n                  Class.forName(\"org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces\").newInstance();  \n              }  catch( Exception ex ) {\n                ex.printStackTrace();\n                coParser=null;\n              }\n            }\n\n            if (coParser==null ) {\n              if (null == reader) {\n                coParser = new IncrementalSAXSource_Filter();\n              } else {\n                IncrementalSAXSource_Filter filter =\n                         new IncrementalSAXSource_Filter();\n                filter.setXMLReader(reader);\n                coParser=filter;\n              }\n            }\n\n\t\t\t\n            /**************************************************************\n            if (JKESS_XNI_EXPERIMENT && m_incremental &&\n                  dtm instanceof XNI2DTM && \n                  coParser instanceof IncrementalSAXSource_Xerces) {\n                org.apache.xerces.xni.parser.XMLPullParserConfiguration xpc=\n                      ((IncrementalSAXSource_Xerces)coParser)\n                                           .getXNIParserConfiguration();\n              if (xpc!=null) {\n                ((XNI2DTM)dtm).setIncrementalXNISource(xpc);\n              } else {\n                dtm.setIncrementalSAXSource(coParser);\n              }\n            } else\n            ***************************************************************/\n          \n            dtm.setIncrementalSAXSource(coParser);\n\n            if (null == xmlSource) {\n\n              return dtm;\n            }\n\n            if (null == reader.getErrorHandler()) {\n              reader.setErrorHandler(dtm);\n            }\n            reader.setDTDHandler(dtm);\n\n            try {\n\n              coParser.startParse(xmlSource);\n            } catch (RuntimeException re) {\n\n              dtm.clearCoRoutine();\n\n              throw re;\n            } catch (Exception e) {\n\n              dtm.clearCoRoutine();\n\n              throw new org.apache.xml.utils.WrappedRuntimeException(e);\n            }\n          } else {\n            if (null == reader) {\n\n              return dtm;\n            }\n\n            reader.setContentHandler(dtm);\n            reader.setDTDHandler(dtm);\n            if (null == reader.getErrorHandler()) {\n              reader.setErrorHandler(dtm);\n            }\n\n            try {\n              reader.setProperty(\n                               dtm);\n            } catch (SAXNotRecognizedException e){}\n              catch (SAXNotSupportedException e){}\n\n            try {\n              reader.parse(xmlSource);\n            } catch (RuntimeException re) {\n              dtm.clearCoRoutine();\n\n              throw re;\n            } catch (Exception e) {\n              dtm.clearCoRoutine();\n\n              throw new org.apache.xml.utils.WrappedRuntimeException(e);\n            }\n          }\n\n          if (DUMPTREE) {\n            System.out.println(\"Dumping SAX2DOM\");\n            dtm.dumpDTM(System.err);\n          }\n\n          return dtm;\n        } finally {\n          releaseXMLReader(reader);\n        }\n      } else {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "TRY", "TRY", "IF", "IF", "TRY", "IF", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "CATCH", "CATCH", "CATCH", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CATCH", "CATCH", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "CALL", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [5, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [11, 18], [11, 19], [2, 20], [3, 21], [5, 22], [12, 23], [13, 24], [1, 25], [19, 26], [22, 27], [23, 28], [13, 29], [13, 30], [14, 31], [15, 32], [25, 33], [17, 34], [27, 35], [27, 36], [29, 37], [29, 38], [29, 39], [29, 40], [29, 41], [29, 42], [29, 43], [29, 44], [29, 45], [31, 46], [31, 47], [31, 48], [32, 49], [32, 50], [32, 51], [36, 52], [36, 53], [29, 54], [39, 55], [29, 56], [42, 57], [44, 58], [30, 59], [48, 60], [51, 61], [53, 62], [53, 63], [39, 64], [39, 65], [39, 66], [39, 67], [39, 68], [39, 69], [39, 70], [39, 71], [39, 72], [39, 73], [41, 74], [56, 75], [57, 76], [44, 77], [44, 78], [58, 79], [62, 80], [62, 81], [38, 82], [38, 83], [64, 84], [64, 85], [65, 86], [65, 87], [66, 88], [39, 89], [39, 90], [67, 91], [68, 92], [68, 93], [39, 94], [69, 95], [70, 96], [39, 97], [71, 98], [74, 99], [74, 100], [42, 101], [42, 102], [76, 103], [77, 104], [44, 105], [44, 106], [44, 107], [83, 108], [84, 109], [85, 110], [64, 111], [65, 112], [88, 113], [88, 114], [67, 115], [91, 116], [92, 117], [93, 118], [68, 119], [95, 120], [95, 121], [70, 122], [96, 123], [71, 124], [98, 125], [72, 126], [73, 127], [100, 128], [101, 129], [102, 130], [103, 131], [77, 132], [104, 133], [78, 134], [105, 135], [106, 136], [107, 137], [109, 138], [84, 139], [85, 140], [66, 141], [117, 142], [92, 143], [93, 144], [69, 145], [124, 146], [126, 147], [131, 148], [77, 149], [132, 150], [124, 151], [146, 152], [126, 153], [132, 154], [124, 155], [124, 156], [124, 157], [147, 158], [147, 159], [150, 160], [154, 161], [151, 162], [157, 163], [158, 164], [153, 165], [160, 166], [165, 167], [165, 168], [166, 169], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 5], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 11], [19, 11], [20, 2], [21, 3], [22, 5], [23, 12], [24, 13], [25, 1], [26, 19], [27, 22], [28, 23], [29, 13], [30, 13], [31, 14], [32, 15], [33, 25], [34, 17], [35, 27], [36, 27], [37, 29], [38, 29], [39, 29], [40, 29], [41, 29], [42, 29], [43, 29], [44, 29], [45, 29], [46, 31], [47, 31], [48, 31], [49, 32], [50, 32], [51, 32], [52, 36], [53, 36], [54, 29], [55, 39], [56, 29], [57, 42], [58, 44], [59, 30], [60, 48], [61, 51], [62, 53], [63, 53], [64, 39], [65, 39], [66, 39], [67, 39], [68, 39], [69, 39], [70, 39], [71, 39], [72, 39], [73, 39], [74, 41], [75, 56], [76, 57], [77, 44], [78, 44], [79, 58], [80, 62], [81, 62], [82, 38], [83, 38], [84, 64], [85, 64], [86, 65], [87, 65], [88, 66], [89, 39], [90, 39], [91, 67], [92, 68], [93, 68], [94, 39], [95, 69], [96, 70], [97, 39], [98, 71], [99, 74], [100, 74], [101, 42], [102, 42], [103, 76], [104, 77], [105, 44], [106, 44], [107, 44], [108, 83], [109, 84], [110, 85], [111, 64], [112, 65], [113, 88], [114, 88], [115, 67], [116, 91], [117, 92], [118, 93], [119, 68], [120, 95], [121, 95], [122, 70], [123, 96], [124, 71], [125, 98], [126, 72], [127, 73], [128, 100], [129, 101], [130, 102], [131, 103], [132, 77], [133, 104], [134, 78], [135, 105], [136, 106], [137, 107], [138, 109], [139, 84], [140, 85], [141, 66], [142, 117], [143, 92], [144, 93], [145, 69], [146, 124], [147, 126], [148, 131], [149, 77], [150, 132], [151, 124], [152, 146], [153, 126], [154, 132], [155, 124], [156, 124], [157, 124], [158, 147], [159, 147], [160, 150], [161, 154], [162, 151], [163, 157], [164, 158], [165, 153], [166, 160], [167, 165], [168, 165], [169, 166], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169]]}, {"function_name": "getDTMHandleFromNode", "code": "  synchronized public int getDTMHandleFromNode(org.w3c.dom.Node node)\n  {\n    if(null == node)\n\n    if (node instanceof org.apache.xml.dtm.ref.DTMNodeProxy)\n      return ((org.apache.xml.dtm.ref.DTMNodeProxy) node).getDTMNodeNumber();\n\t\t\n    else\n    {\n\t\t\tint max = m_dtms.length;\n      for(int i = 0; i < max; i++)\n        {\n          DTM thisDTM=m_dtms[i];\n          if((null != thisDTM) && thisDTM instanceof DOM2DTM)\n          {\n            int handle=((DOM2DTM)thisDTM).getHandleOfNode(node);\n            if(handle!=DTM.NULL) return handle;\n          }\n         }\n\n\n      Node root = node;\n      Node p = (root.getNodeType() == Node.ATTRIBUTE_NODE) ? ((org.w3c.dom.Attr)root).getOwnerElement() : root.getParentNode();\n      for (; p != null; p = p.getParentNode())\n      {\n        root = p;\n      }\n\n      DOM2DTM dtm = (DOM2DTM) getDTM(new javax.xml.transform.dom.DOMSource(root),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, null, true, true);\n\n      int handle;\n      \n      if(node instanceof org.apache.xml.dtm.ref.dom2dtm.DOM2DTMdefaultNamespaceDeclarationNode)\n      {\n\t\t\t\thandle=dtm.getHandleOfNode(((org.w3c.dom.Attr)node).getOwnerElement());\n\t\t\t\thandle=dtm.getAttributeNode(handle,node.getNamespaceURI(),node.getLocalName());\n      }\n      else\n\t\t\t\thandle = ((DOM2DTM)dtm).getHandleOfNode(node);\n\n      if(DTM.NULL == handle)\n\n      return handle;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [8, 17], [8, 18], [9, 19], [12, 20], [12, 21], [15, 22], [9, 23], [20, 24], [21, 25], [13, 26], [15, 27], [15, 28], [9, 29], [9, 30], [11, 31], [12, 32], [26, 33], [26, 34], [27, 35], [15, 36], [29, 37], [30, 38], [31, 39], [31, 40], [31, 41], [31, 42], [31, 43], [34, 44], [27, 45], [27, 46], [35, 47], [35, 48], [37, 49], [37, 50], [45, 51], [45, 52], [48, 53], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 3], [9, 3], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 8], [18, 8], [19, 9], [20, 12], [21, 12], [22, 15], [23, 9], [24, 20], [25, 21], [26, 13], [27, 15], [28, 15], [29, 9], [30, 9], [31, 11], [32, 12], [33, 26], [34, 26], [35, 27], [36, 15], [37, 29], [38, 30], [39, 31], [40, 31], [41, 31], [42, 31], [43, 31], [44, 34], [45, 27], [46, 27], [47, 35], [48, 35], [49, 37], [50, 37], [51, 45], [52, 45], [53, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "getXMLReader", "code": "  synchronized public XMLReader getXMLReader(Source inputSource)\n  {\n\n    try\n    {\n      XMLReader reader = (inputSource instanceof SAXSource)\n                         ? ((SAXSource) inputSource).getXMLReader() : null;\n\n      if (null == reader) {\n        if (m_readerManager == null) {\n            m_readerManager = XMLReaderManager.getInstance();\n        }\n\n        reader = m_readerManager.getXMLReader();\n      }\n\n      return reader;\n\n    } catch (SAXException se) {\n      throw new DTMException(se.getMessage(), se);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "IF", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [5, 8], [7, 9], [5, 10], [8, 11], [6, 12], [9, 13], [5, 14], [10, 15], [12, 16], [12, 17], [14, 18], [15, 19], [10, 20], [20, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 5], [9, 7], [10, 5], [11, 8], [12, 6], [13, 9], [14, 5], [15, 10], [16, 12], [17, 12], [18, 14], [19, 15], [20, 10], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "releaseXMLReader", "code": "  synchronized public void releaseXMLReader(XMLReader reader) {\n    if (m_readerManager != null) {\n      m_readerManager.releaseXMLReader(reader);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDTM", "code": "  synchronized public DTM getDTM(int nodeHandle)\n  {\n    try\n    {\n      return m_dtms[nodeHandle >>> IDENT_DTM_NODE_BITS];\n    }\n    catch(java.lang.ArrayIndexOutOfBoundsException e)\n    {\n      if(nodeHandle==DTM.NULL){}\n      else{}", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "IF", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [5, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 5], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDTMIdentity", "code": "  synchronized public int getDTMIdentity(DTM dtm)\n  {\n\tif(dtm instanceof DTMDefaultBase)\n\t{\n\t\tDTMDefaultBase dtmdb=(DTMDefaultBase)dtm;\n\t\tif(dtmdb.getManager()==this)\n\t\t\treturn dtmdb.getDTMIDs().elementAt(0);\n\t\telse\n\t\t\treturn -1;\n\t}\n\t\t\t\t\n    int n = m_dtms.length;\n\n    for (int i = 0; i < n; i++)\n    {\n      DTM tdtm = m_dtms[i];\n\n      if (tdtm == dtm && m_dtm_offsets[i]==0)\n        return i << IDENT_DTM_NODE_BITS;\n    }\n\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [2, 9], [2, 10], [4, 11], [4, 12], [9, 13], [9, 14], [2, 15], [11, 16], [11, 17], [11, 18], [13, 19], [14, 20], [14, 21], [16, 22], [17, 23], [18, 24], [20, 25], [23, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 2], [10, 2], [11, 4], [12, 4], [13, 9], [14, 9], [15, 2], [16, 11], [17, 11], [18, 11], [19, 13], [20, 14], [21, 14], [22, 16], [23, 17], [24, 18], [25, 20], [26, 23], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "release", "code": "  synchronized public boolean release(DTM dtm, boolean shouldHardDelete)\n  {\n    if(DEBUG)\n    {\n      System.out.println(\"Releasing \"+\n\t\t\t (shouldHardDelete ? \"HARD\" : \"soft\")+\n\t\t\t \" dtm=\"+\n\t\t\t dtm.getDocumentBaseURI()\n\t\t\t );\n    }\n\n    if (dtm instanceof SAX2DTM)\n    {\n      ((SAX2DTM) dtm).clearCoRoutine();\n    }\n\n\t\tif(dtm instanceof DTMDefaultBase)\n\t\t{\n\t\t\torg.apache.xml.utils.SuballocatedIntVector ids=((DTMDefaultBase)dtm).getDTMIDs();\n\t\t\tfor(int i=ids.size()-1;i>=0;--i)\n\t\t\t\tm_dtms[ids.elementAt(i)>>>DTMManager.IDENT_DTM_NODE_BITS]=null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint i = getDTMIdentity(dtm);\n\t\t    if (i >= 0)\n\t\t\t{\n\t\t\t\tm_dtms[i >>> DTMManager.IDENT_DTM_NODE_BITS] = null;\n\t\t\t}\n\t\t}\n\n    dtm.documentRelease();\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [3, 10], [2, 11], [2, 12], [2, 13], [2, 14], [11, 15], [13, 16], [4, 17], [15, 18], [12, 19], [13, 20], [16, 21], [17, 22], [11, 23], [20, 24], [13, 25], [22, 26], [22, 27], [23, 28], [25, 29], [25, 30], [27, 31], [27, 32], [20, 33], [32, 34], [32, 35], [23, 36], [33, 37], [34, 38], [34, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 3], [11, 2], [12, 2], [13, 2], [14, 2], [15, 11], [16, 13], [17, 4], [18, 15], [19, 12], [20, 13], [21, 16], [22, 17], [23, 11], [24, 20], [25, 13], [26, 22], [27, 22], [28, 23], [29, 25], [30, 25], [31, 27], [32, 27], [33, 20], [34, 32], [35, 32], [36, 23], [37, 33], [38, 34], [39, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "createDocumentFragment", "code": "  synchronized public DTM createDocumentFragment()\n  {\n\n    try\n    {\n      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n      dbf.setNamespaceAware(true);\n\n      DocumentBuilder db = dbf.newDocumentBuilder();\n      Document doc = db.newDocument();\n      Node df = doc.createDocumentFragment();\n\n      return getDTM(new DOMSource(df), true, null, false, false);\n    }\n    catch (Exception e)\n    {\n      throw new DTMException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [1, 10], [8, 11], [9, 12], [9, 13], [9, 14], [9, 15], [9, 16], [4, 17], [5, 18], [6, 19], [10, 20], [7, 21], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 1], [11, 8], [12, 9], [13, 9], [14, 9], [15, 9], [16, 9], [17, 4], [18, 5], [19, 6], [20, 10], [21, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createDTMIterator", "code": "  synchronized public DTMIterator createDTMIterator(int whatToShow, DTMFilter filter,\n                                       boolean entityReferenceExpansion)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createDTMIterator", "code": "  synchronized public DTMIterator createDTMIterator(String xpathString,\n                                       PrefixResolver presolver)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createDTMIterator", "code": "  synchronized public DTMIterator createDTMIterator(int node)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createDTMIterator", "code": "  synchronized public DTMIterator createDTMIterator(Object xpathCompiler, int pos)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getExpandedNameTable", "code": "  public ExpandedNameTable getExpandedNameTable(DTM dtm)\n  {\n    return m_expandedNameTable;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DTMManagerDefault", "code": "  public DTMManagerDefault(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.7-8357", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/SortSettings.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.SortSettings", "code": "final class SortSettings {\n    /**\n     * A reference to the translet object for the transformation.\n     */\n    private AbstractTranslet _translet;\n\n    /**\n     * The sort order (ascending or descending) for each level of\n     * <code>xsl:sort</code>\n     */\n    private int[] _sortOrders;\n\n    /**\n     * The type of comparison (text or number) for each level of\n     * <code>xsl:sort</code>\n     */\n    private int[] _types;\n\n    /**\n     * The Locale for each level of <code>xsl:sort</code>, based on any lang\n     * attribute or the default Locale.\n     */\n    private Locale[] _locales;\n\n    /**\n     * The Collator object in effect for each level of <code>xsl:sort</code>\n     */\n    private Collator[] _collators;\n\n    /**\n     * Case ordering for each level of <code>xsl:sort</code>.\n     */\n    private String[] _caseOrders;\n\n    /**\n     * Create an instance of <code>SortSettings</code>.\n     * @param translet {@link org.apache.xalan.xsltc.runtime.AbstractTranslet}\n     *                 object for the transformation\n     * @param sortOrders an array specifying the sort order for each sort level\n     * @param types an array specifying the type of comparison for each sort\n     *              level (text or number)\n     * @param locales an array specifying the Locale for each sort level\n     * @param collators an array specifying the Collation in effect for each\n     *                  sort level\n     * @param caseOrders an array specifying whether upper-case, lower-case\n     *                   or neither is to take precedence for each sort level.\n     *                   The value of each element is equal to one of\n     *                   <code>\"upper-first\", \"lower-first\", or \"\"</code>.\n     */\n    SortSettings(AbstractTranslet translet, int[] sortOrders, int[] types,\n                 Locale[] locales, Collator[] collators, String[] caseOrders) {\n        _translet = translet;\n        _sortOrders = sortOrders;\n        _types = types;\n        _locales = locales;\n        _collators = collators;\n        _caseOrders = caseOrders;\n    }\n\n    /**\n     * @return A reference to the translet object for the transformation.\n     */\n    AbstractTranslet getTranslet() {\n        return _translet;\n    }\n\n    /**\n     * @return An array containing the sort order (ascending or descending)\n     *         for each level of <code>xsl:sort</code>\n     */\n    int[] getSortOrders() {\n        return _sortOrders;\n    }\n\n    /**\n     * @return An array containing the type of comparison (text or number)\n     *         to perform for each level of <code>xsl:sort</code>\n     */\n    int[] getTypes() {\n        return _types;\n    }\n\n    /**\n     * @return An array containing the Locale object in effect for each level\n     *         of <code>xsl:sort</code>\n     */\n    Locale[] getLocales() {\n        return _locales;\n    }\n\n    /**\n     * @return An array containing the Collator object in effect for each level\n     *         of <code>xsl:sort</code>\n     */\n    Collator[] getCollators() {\n        return _collators;\n    }\n\n    /**\n     * @return An array specifying the case ordering for each level of\n     *         <code>xsl:sort</code>.\n     */\n    String[] getCaseOrders() {\n        return _caseOrders;", "functions": [{"function_name": "getTranslet", "code": "    AbstractTranslet getTranslet() {\n        return _translet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSortOrders", "code": "    int[] getSortOrders() {\n        return _sortOrders;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypes", "code": "    int[] getTypes() {\n        return _types;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocales", "code": "    Locale[] getLocales() {\n        return _locales;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCollators", "code": "    Collator[] getCollators() {\n        return _collators;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCaseOrders", "code": "    String[] getCaseOrders() {\n        return _caseOrders;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SortSettings", "code": "    SortSettings(AbstractTranslet translet, int[] sortOrders, int[] types,\n                 Locale[] locales, Collator[] collators, String[] caseOrders) {\n        _translet = translet;\n        _sortOrders = sortOrders;\n        _types = types;\n        _locales = locales;\n        _collators = collators;\n        _caseOrders = caseOrders;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 1}
{"sample_id": "xalan-2.5-6969", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/FunctionCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.FunctionCall", "code": "class FunctionCall extends Expression {\n\n    private QName  _fname;\n    private final Vector _arguments;\n    private final static Vector EMPTY_ARG_LIST = new Vector(0);\n\n    protected final static String EXT_XSLTC = \n\tTRANSLET_URI;\n\n    protected final static String JAVA_EXT_XSLTC = \n\tEXT_XSLTC + \"/java\";\n\n    protected final static String EXT_XALAN = '';\n\n    protected final static String JAVA_EXT_XALAN = '';\n\n    protected final static String JAVA_EXT_XALAN_OLD = '';\n\t\n    protected final static String EXSLT_COMMON = '';\n\n    protected final static String EXSLT_MATH = '';\n\t\n    protected final static String EXSLT_SETS = '';\n\n    protected final static String EXSLT_DATETIME = '';\n\n    protected final static String EXSLT_STRINGS = '';\n\t\n    protected final static int NAMESPACE_FORMAT_JAVA = 0;\n    protected final static int NAMESPACE_FORMAT_CLASS = 1;\n    protected final static int NAMESPACE_FORMAT_PACKAGE = 2;\n    protected final static int NAMESPACE_FORMAT_CLASS_OR_PACKAGE = 3;\n\t\n    private int _namespace_format = NAMESPACE_FORMAT_JAVA;\n        \n    /**\n     * Stores reference to object for non-static Java calls\n     */\n    Expression _thisArgument = null;\n\n    private String      _className;\n    private Class       _clazz;\n    private Method      _chosenMethod;\n    private Constructor _chosenConstructor;\n    private MethodType  _chosenMethodType;\n\n    private boolean    unresolvedExternal;\n\n    private boolean     _isExtConstructor = false; \n\n    private boolean \t  _isStatic = false;\n\n    private static final MultiHashtable _internal2Java = new MultiHashtable();\n\n    private static final Hashtable _java2Internal = new Hashtable();\n    \n    private static final Hashtable _extensionNamespaceTable = new Hashtable();\n\n    private static final Hashtable _extensionFunctionTable = new Hashtable();\n    /**\n     * inner class to used in internal2Java mappings, contains\n     * the Java type and the distance between the internal type and\n     * the Java type. \n     */\n    static class JavaType {\n\tpublic Class  type;\n\tpublic int distance;\n\t\n\tpublic JavaType(Class type, int distance){\n\t    this.type = type;\n\t    this.distance = distance;\n\t}\n\tpublic boolean equals(Object query){\n\t    return query.equals(type);\n\t}\n    } \n\n    /**\n     * Defines 2 conversion tables:\n     * 1. From internal types to Java types and\n     * 2. From Java types to internal types.\n     * These two tables are used when calling external (Java) functions.\n     */\n    static {\n\n\ttry {\n\t    final Class objectClass   = Class.forName(\"java.lang.Object\");\n\t    final Class stringClass   = Class.forName(\"java.lang.String\");\n\t    final Class nodeClass     = Class.forName(\"org.w3c.dom.Node\");\n\t    final Class nodeListClass = Class.forName(\"org.w3c.dom.NodeList\");\n\n\t    _internal2Java.put(Type.Boolean, new JavaType(objectClass,2));\n\t    _internal2Java.put(Type.Boolean, new JavaType(java.lang.Boolean.class,1));\n\t    _internal2Java.put(Type.Boolean, new JavaType(Boolean.TYPE,0));\n\n\t    _internal2Java.put(Type.Int, new JavaType(objectClass, 8));\n\t    _internal2Java.put(Type.Int, new JavaType(Character.TYPE, 7));\n\t    _internal2Java.put(Type.Int, new JavaType(Byte.TYPE, 6));\n\t    _internal2Java.put(Type.Int, new JavaType(Short.TYPE, 5));\n\t    _internal2Java.put(Type.Int, new JavaType(Integer.TYPE, 0));\n\t    _internal2Java.put(Type.Int, new JavaType(java.lang.Integer.class, 1));\n\t    _internal2Java.put(Type.Int, new JavaType(Long.TYPE, 2));\n\t    _internal2Java.put(Type.Int, new JavaType(Float.TYPE, 3));\n\t    _internal2Java.put(Type.Int, new JavaType(Double.TYPE, 4));\n\n\t    _internal2Java.put(Type.Real, new JavaType(objectClass, 8));\n\t    _internal2Java.put(Type.Real, new JavaType(Character.TYPE, 7)); \n\t    _internal2Java.put(Type.Real, new JavaType(Byte.TYPE, 6));\n\t    _internal2Java.put(Type.Real, new JavaType(Short.TYPE, 5));\n\t    _internal2Java.put(Type.Real, new JavaType(Integer.TYPE, 4));\n\t    _internal2Java.put(Type.Real, new JavaType(Long.TYPE, 3));\n\t    _internal2Java.put(Type.Real, new JavaType(Float.TYPE, 2));\n\t    _internal2Java.put(Type.Real, new JavaType(java.lang.Double.class, 1));\n\t    _internal2Java.put(Type.Real, new JavaType(Double.TYPE, 0));\n\n\t    _internal2Java.put(Type.String, new JavaType(objectClass, 1));\n\t    _internal2Java.put(Type.String, new JavaType(stringClass, 0)); \n\n\t    _internal2Java.put(Type.Node, new JavaType(nodeClass, 0));  \n\t    _internal2Java.put(Type.Node, new JavaType(nodeListClass, 1));\n\t    _internal2Java.put(Type.Node, new JavaType(objectClass, 2));\n\t    _internal2Java.put(Type.Node, new JavaType(stringClass, 3));\n\n\t    _internal2Java.put(Type.NodeSet, new JavaType(Integer.TYPE, 10));\n\t    _internal2Java.put(Type.NodeSet, new JavaType(stringClass, 3)); \n\t    _internal2Java.put(Type.NodeSet, new JavaType(objectClass, 2));\n\t    _internal2Java.put(Type.NodeSet, new JavaType(nodeClass, 1)); \n\t    _internal2Java.put(Type.NodeSet, new JavaType(nodeListClass,0)); \n\n\t    _internal2Java.put(Type.ResultTree, new JavaType(nodeClass, 1)); \n\t    _internal2Java.put(Type.ResultTree, new JavaType(nodeListClass, 0));\n\t    _internal2Java.put(Type.ResultTree, new JavaType(objectClass, 2));\n\t    _internal2Java.put(Type.ResultTree, new JavaType(stringClass, 3));\n\t    _internal2Java.put(Type.ResultTree, new JavaType(Double.TYPE, 4));\n\n\t    _internal2Java.put(Type.Reference, new JavaType(objectClass,0));\n\n\t    _java2Internal.put(Boolean.TYPE, Type.Boolean); \n\t    _java2Internal.put(Void.TYPE, Type.Void);\n\t    _java2Internal.put(Character.TYPE, Type.Real); \n\t    _java2Internal.put(Byte.TYPE, Type.Real);\n\t    _java2Internal.put(Short.TYPE, Type.Real);\n\t    _java2Internal.put(Integer.TYPE, Type.Real);\n\t    _java2Internal.put(Long.TYPE, Type.Real);\n\t    _java2Internal.put(Float.TYPE, Type.Real);\n\t    _java2Internal.put(Double.TYPE, Type.Real);\n\n\t    _java2Internal.put(stringClass, Type.String);\n\n\t    _java2Internal.put(objectClass, Type.Reference);\n\n\t    _java2Internal.put(nodeListClass, Type.NodeSet);\n\t    _java2Internal.put(nodeClass, Type.NodeSet);\n\t    \n\t    _extensionNamespaceTable.put(EXT_XALAN, \"org.apache.xalan.lib.Extensions\");\n\t    _extensionNamespaceTable.put(EXSLT_COMMON, \"org.apache.xalan.lib.ExsltCommon\");\n\t    _extensionNamespaceTable.put(EXSLT_MATH, \"org.apache.xalan.lib.ExsltMath\");\n\t    _extensionNamespaceTable.put(EXSLT_SETS, \"org.apache.xalan.lib.ExsltSets\");\n\t    _extensionNamespaceTable.put(EXSLT_DATETIME, \"org.apache.xalan.lib.ExsltDatetime\");\n\t    _extensionNamespaceTable.put(EXSLT_STRINGS, \"org.apache.xalan.lib.ExsltStrings\");\n\t    \n\t    _extensionFunctionTable.put(EXSLT_COMMON + \":nodeSet\", \"nodeset\");\n\t    _extensionFunctionTable.put(EXSLT_COMMON + \":objectType\", \"objectType\");\t    \n\t    _extensionFunctionTable.put(EXT_XALAN + \":nodeset\", \"nodeset\");\n\t}\n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(e);\n\t}\n    }\n\t\t\n    public FunctionCall(QName fname, Vector arguments) {\n\t_fname = fname;\n\t_arguments = arguments;\n\t_type = null;\n    }\n\n    public FunctionCall(QName fname) {\n\tthis(fname, EMPTY_ARG_LIST);\n    }\n\n    public String getName() {\n\treturn(_fname.toString());\n    }\n\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tif (_arguments != null) {\n\t    final int n = _arguments.size();\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = (Expression)_arguments.elementAt(i);\n\t\texp.setParser(parser);\n\t\texp.setParent(this);\n\t    }\n\t}\n    }\n\n    public String getClassNameFromUri(String uri) \n    {   \n        String className = (String)_extensionNamespaceTable.get(uri);\n    \n        if (className != null)\n            return className;\n        else {\n            if (uri.startsWith(JAVA_EXT_XSLTC)) {\n      \t    \tint length = JAVA_EXT_XSLTC.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else if (uri.startsWith(JAVA_EXT_XALAN)) {\n      \t    \tint length = JAVA_EXT_XALAN.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else if (uri.startsWith(JAVA_EXT_XALAN_OLD)) {\n      \t    \tint length = JAVA_EXT_XALAN_OLD.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else {\n      \t    \tint index = uri.lastIndexOf('/');\n      \t    \treturn (index > 0) ? uri.substring(index+1) : uri;\n            }      \n        }\n    }\n\n    /**\n     * Type check a function call. Since different type conversions apply,\n     * type checking is different for standard and external (Java) functions.\n     */\n    public Type typeCheck(SymbolTable stable) \n\tthrows TypeCheckError \n    {\n        if (_type != null) return _type;\n\n\tfinal String namespace = _fname.getNamespace();\n\tString local = _fname.getLocalPart();\n\n\tif (isExtension()) {\n\t    _fname = new QName(null, null, local);\n\t    return typeCheckStandard(stable);\n\t}\n\telse if (isStandard()) {\n\t    return typeCheckStandard(stable);\n\t}\n\telse {\n\t    try {\n\t    \t_className = getClassNameFromUri(namespace);\n\t\t  \n                final int pos = local.lastIndexOf('.');\n\t\tif (pos > 0) {\n\t\t    _isStatic = true;\n\t\t    if (_className != null && _className.length() > 0) {\n\t\t    \t_namespace_format = NAMESPACE_FORMAT_PACKAGE;\n\t\t     \t_className = _className + \".\" + local.substring(0, pos);\n\t\t    }\n\t\t    else {\n\t\t     \t_namespace_format = NAMESPACE_FORMAT_JAVA;\n\t\t     \t_className = local.substring(0, pos);\n\t\t    }\n\t\t\t  \n\t\t    _fname = new QName(namespace, null, local.substring(pos + 1));\n\t\t}\n\t\telse {\n\t\t    if (_className != null && _className.length() > 0) {\n\t\t    \ttry {\t\t\t  \t\n\t\t      \t    TransletLoader loader = new TransletLoader();\n\t\t            _clazz = loader.loadClass(_className);\t\t\t  \t\n\t\t            _namespace_format = NAMESPACE_FORMAT_CLASS;\n\t\t    \t}\n\t\t    \tcatch (ClassNotFoundException e) {\n\t\t      \t    _namespace_format = NAMESPACE_FORMAT_PACKAGE;\t\n\t\t        }\n\t\t    }\n\t\t    else\n\t            \t_namespace_format = NAMESPACE_FORMAT_JAVA;\n\t\t\t\n\t\t    if (local.indexOf('-') > 0) {\n\t\t        local = replaceDash(local);\n\t\t    }\n\t\t    \n\t\t    String extFunction = (String)_extensionFunctionTable.get(namespace + \":\" + local);\n\t\t    if (extFunction != null) {\n\t\t      \t_fname = new QName(null, null, extFunction);\n\t\t      \treturn typeCheckStandard(stable);\n\t\t    }\n\t\t    else\n\t\t      \t_fname = new QName(namespace, null, local);\n\t\t}\n\t\t  \n\t\treturn typeCheckExternal(stable);\n\t    } \n\t    catch (TypeCheckError e) {\n\t\tErrorMsg errorMsg = e.getErrorMsg();\n\t\tif (errorMsg == null) {\n\t\t    final String name = _fname.getLocalPart();\n\t\t    errorMsg = new ErrorMsg(ErrorMsg.METHOD_NOT_FOUND_ERR, name);\n\t\t}\n\t\tgetParser().reportError(ERROR, errorMsg);\n\t\treturn _type = Type.Void;\n\t    }\n\t  }\n    }\n\n    /**\n     * Type check a call to a standard function. Insert CastExprs when needed.\n     * If as a result of the insertion of a CastExpr a type check error is \n     * thrown, then catch it and re-throw it with a new \"this\".\n     */\n    public Type typeCheckStandard(SymbolTable stable) throws TypeCheckError {\n\n\tfinal int n = _arguments.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\tfinal MethodType args = new MethodType(Type.Void, argsType);\n\tfinal MethodType ptype =\n\t    lookupPrimop(stable, _fname.getLocalPart(), args);\n\n\tif (ptype != null) {\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Type argType = (Type) ptype.argsType().elementAt(i);\n\t\tfinal Expression exp = (Expression)_arguments.elementAt(i);\n\t\tif (!argType.identicalTo(exp.getType())) {\n\t\t    try {\n\t\t\t_arguments.setElementAt(new CastExpr(exp, argType), i);\n\t\t    }\n\t\t    catch (TypeCheckError e) {\n\t\t    }\n\t\t}\n\t    }\n\t    _chosenMethodType = ptype;\n\t    return _type = ptype.resultType();\n\t}\n\tthrow new TypeCheckError(this);\n    }\n\n   \n\n    public Type typeCheckConstructor(SymbolTable stable) throws TypeCheckError{\n        final Vector constructors = findConstructors();\n\tif (constructors == null) {\n            throw new TypeCheckError(ErrorMsg.CONSTRUCTOR_NOT_FOUND, \n\t\t_className);\n        \n\t}\n\n\tfinal int nConstructors = constructors.size();\n\tfinal int nArgs = _arguments.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\n\tint bestConstrDistance = Integer.MAX_VALUE;\n\tfor (int j, i = 0; i < nConstructors; i++) {\n\t    final Constructor constructor = \n\t\t(Constructor)constructors.elementAt(i);\n\t    final Class[] paramTypes = constructor.getParameterTypes();\n\n\t    Class extType = null;\n\t    int currConstrDistance = 0;\n\t    for (j = 0; j < nArgs; j++) {\n\t\textType = paramTypes[j];\n\t\tfinal Type intType = (Type)argsType.elementAt(j);\n\t\tObject match = _internal2Java.maps(intType, extType);\n\t\tif (match != null) {\n\t\t    currConstrDistance += ((JavaType)match).distance;\n\t\t}\n\t\telse if (intType instanceof ObjectType) {\n\t\t    ObjectType objectType = (ObjectType)intType;\n\t\t    if (objectType.getJavaClass() == extType)\n\t\t        continue;\n\t\t    else if (extType.isAssignableFrom(objectType.getJavaClass()))\n\t\t        currConstrDistance += 1;\n\t\t    else {\n\t\t\tcurrConstrDistance = Integer.MAX_VALUE;\n\t\t\tbreak;\n\t\t    }\n\t\t}\n\t\telse {\n\t\t    currConstrDistance = Integer.MAX_VALUE;\n\t\t    break;\n\t\t} \n\t    }\n\n\t    if (j == nArgs && currConstrDistance < bestConstrDistance ) {\n\t        _chosenConstructor = constructor;\n\t        _isExtConstructor = true;\n\t\tbestConstrDistance = currConstrDistance;\n\t\t\n\t\tif (_clazz != null)\n\t          _type = new ObjectType(_clazz);\n\t\telse\n\t\t  _type = new ObjectType(_className);\n\t    }\n\t}\n\n\tif (_type != null) {\n\t    return _type;\n\t}\n\n\tthrow new TypeCheckError(ErrorMsg.ARGUMENT_CONVERSION_ERR, getMethodSignature(argsType));\n    }\n\n\n    /**\n     * Type check a call to an external (Java) method.\n     * The method must be static an public, and a legal type conversion\n     * must exist for all its arguments and its return type.\n     * Every method of name <code>_fname</code> is inspected\n     * as a possible candidate.\n     */\n    public Type typeCheckExternal(SymbolTable stable) throws TypeCheckError {\n\tint nArgs = _arguments.size();\n\tfinal String name = _fname.getLocalPart();\n    \n\tif (_fname.getLocalPart().equals(\"new\")) {\n\t    return typeCheckConstructor(stable);\n\t}\n\telse {\n\t    boolean hasThisArgument = false;\n\t  \n\t    if (nArgs == 0)\n\t        _isStatic = true;\n\t  \n\t    if (!_isStatic) {\n\t        if (_namespace_format == NAMESPACE_FORMAT_JAVA\n\t  \t    || _namespace_format == NAMESPACE_FORMAT_PACKAGE)\n\t   \t    hasThisArgument = true;\n\t  \t  \n\t  \tExpression firstArg = (Expression)_arguments.elementAt(0);\n\t  \tType firstArgType = (Type)firstArg.typeCheck(stable);\n\t  \t\n\t  \tif (_namespace_format == NAMESPACE_FORMAT_CLASS\n\t  \t    && firstArgType instanceof ObjectType\n\t  \t    && _clazz != null\n\t  \t    && _clazz.isAssignableFrom(((ObjectType)firstArgType).getJavaClass()))\n\t  \t    hasThisArgument = true;\n\t  \t\n\t  \tif (hasThisArgument) {\n\t  \t    _thisArgument = (Expression) _arguments.elementAt(0);\n\t  \t    _arguments.remove(0); nArgs--;\n\t\t    if (firstArgType instanceof ObjectType) {\n\t\t    \t_className = ((ObjectType) firstArgType).getJavaClassName();\n\t\t    }\n\t\t    else\n\t\t    \tthrow new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, name);  \t  \t\n\t  \t}\n\t    }\n\t    else if (_className.length() == 0) {\n\t\t/*\n\t\t * Warn user if external function could not be resolved.\n\t\t * Warning will _NOT_ be issued is the call is properly\n\t\t * wrapped in an <xsl:if> or <xsl:when> element. For details\n\t\t * see If.parserContents() and When.parserContents()\n\t\t */\n\t\tfinal Parser parser = getParser();\n\t\tif (parser != null) {\n\t\t    reportWarning(this, parser, ErrorMsg.FUNCTION_RESOLVE_ERR,\n\t\t\t\t  _fname.toString());\n\t\t}\n\t\tunresolvedExternal = true;\n\t    }\n\t}\n\t\n\tfinal Vector methods = findMethods();\n\t\n\tif (methods == null) {\n\t    throw new TypeCheckError(ErrorMsg.METHOD_NOT_FOUND_ERR, _className + \".\" + name);\n\t}\n\n\tClass extType = null;\n\tfinal int nMethods = methods.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\n\tint bestMethodDistance  = Integer.MAX_VALUE;\n\tfor (int j, i = 0; i < nMethods; i++) {\n\n\t    final Method method = (Method)methods.elementAt(i);\n\t    final Class[] paramTypes = method.getParameterTypes();\n\t    \n\t    int currMethodDistance = 0;\n\t    for (j = 0; j < nArgs; j++) {\n\t\textType = paramTypes[j];\n\t\tfinal Type intType = (Type)argsType.elementAt(j);\n\t\tObject match = _internal2Java.maps(intType, extType);\n\t\tif (match != null) {\n\t\t    currMethodDistance += ((JavaType)match).distance; \n\t\t}\n\t\telse {\n\t\t    if (intType instanceof ReferenceType) {\n\t\t       currMethodDistance += 1; \n\t\t    }\n\t\t    else if (intType instanceof ObjectType) {\n\t\t        ObjectType object = (ObjectType)intType;\n\t\t        if (extType.getName().equals(object.getJavaClassName()))\n\t\t            currMethodDistance += 0;\n\t\t      \telse if (extType.isAssignableFrom(object.getJavaClass()))\n\t\t            currMethodDistance += 1;\n\t\t      \telse {\n\t\t      \t    currMethodDistance = Integer.MAX_VALUE;\n\t\t      \t    break;\n\t\t        }\n\t\t    }\n\t\t    else {\n\t\t        currMethodDistance = Integer.MAX_VALUE;\n\t\t        break;\n\t\t    }\n\t\t}\n\t    }\n\n\t    if (j == nArgs) {\n\t\t  extType = method.getReturnType();\n\t\t\n\t\t  _type = (Type) _java2Internal.get(extType);\n\t\t  if (_type == null) {\n\t\t      _type = new ObjectType(extType);\n\t\t  }\t\t\n\n\t\t  if (_type != null && currMethodDistance < bestMethodDistance) {\n\t\t      _chosenMethod = method;\n\t\t      bestMethodDistance = currMethodDistance;\n\t\t  }\n\t    }\n\t}\n\t\n\tif (_chosenMethod != null && _thisArgument == null &&\n\t    !Modifier.isStatic(_chosenMethod.getModifiers())) {\n\t    throw new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, getMethodSignature(argsType));\n\t}\n\n\tif (_type != null) {\n\t    if (_type == Type.NodeSet) {\n            \tgetXSLTC().setMultiDocument(true);\n            }\n\t    return _type;\n\t}\n\n\tthrow new TypeCheckError(ErrorMsg.ARGUMENT_CONVERSION_ERR, getMethodSignature(argsType));\n    }\n\n    /**\n     * Type check the actual arguments of this function call.\n     */\n    public Vector typeCheckArgs(SymbolTable stable) throws TypeCheckError {\n\tfinal Vector result = new Vector();\n\tfinal Enumeration e = _arguments.elements();\t\n\twhile (e.hasMoreElements()) {\n\t    final Expression exp = (Expression)e.nextElement();\n\t    result.addElement(exp.typeCheck(stable));\n\t}\n\treturn result;\n    }\n\n    protected final Expression argument(int i) {\n\treturn (Expression)_arguments.elementAt(i);\n    }\n\n    protected final Expression argument() {\n\treturn argument(0);\n    }\n    \n    protected final int argumentCount() {\n\treturn _arguments.size();\n    }\n\n    protected final void setArgument(int i, Expression exp) {\n\t_arguments.setElementAt(exp, i);\n    }\n\n    /**\n     * Compile the function call and treat as an expression\n     * Update true/false-lists.\n     */\n    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) \n    {\n\tType type = Type.Boolean;\n\tif (_chosenMethodType != null)\n\t    type = _chosenMethodType.resultType();\n\n\tfinal InstructionList il = methodGen.getInstructionList();\n\ttranslate(classGen, methodGen);\n\n\tif ((type instanceof BooleanType) || (type instanceof IntType)) {\n\t    _falseList.add(il.append(new IFEQ(null)));\n\t}\n    }\n\n\n    /**\n     * Translate a function call. The compiled code will leave the function's\n     * return value on the JVM's stack.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal int n = argumentCount();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tint index;\n\n\tif (isStandard() || isExtension()) {\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startResetIterator(classGen, methodGen);\n\t    }\n\n\t    final String name = _fname.toString().replace('-', '_') + \"F\";\n\t    String args = Constants.EMPTYSTRING;\n\n\t    if (name.equals(\"sumF\")) {\n\t\targs = DOM_INTF_SIG;\n\t\til.append(methodGen.loadDOM());\n\t    }\n\t    else if (name.equals(\"normalize_spaceF\")) {\n\t\tif (_chosenMethodType.toSignature(args).\n\t\t    equals(\"()Ljava/lang/String;\")) {\n\t\t    args = \"I\"+DOM_INTF_SIG;\n\t\t    il.append(methodGen.loadContextNode());\n\t\t    il.append(methodGen.loadDOM());\n\t\t}\n\t    }\n\n\t    index = cpg.addMethodref(BASIS_LIBRARY_CLASS, name,\n\t\t\t\t     _chosenMethodType.toSignature(args));\n\t    il.append(new INVOKESTATIC(index));\n\t}\n\telse if (unresolvedExternal) {\n\t    index = cpg.addMethodref(BASIS_LIBRARY_CLASS,\n\t\t\t\t     \"unresolved_externalF\",\n\t\t\t\t     \"(Ljava/lang/String;)V\");\n\t    il.append(new PUSH(cpg, _fname.toString()));\n\t    il.append(new INVOKESTATIC(index));\n\t}\n\telse if (_isExtConstructor) {\n\t    final String clazz = \n\t\t_chosenConstructor.getDeclaringClass().getName();\n\t    Class[] paramTypes = _chosenConstructor.getParameterTypes();\n\t    \n\t    il.append(new NEW(cpg.addClass(_className)));\n\t    il.append(InstructionConstants.DUP);\n\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startResetIterator(classGen, methodGen);\n\t\texp.getType().translateTo(classGen, methodGen, paramTypes[i]);\n\t    }\n\n\t    final StringBuffer buffer = new StringBuffer();\n\t    buffer.append('(');\n\t    for (int i = 0; i < paramTypes.length; i++) {\n\t\tbuffer.append(getSignature(paramTypes[i]));\n\t    }\n\t    buffer.append(')');\n\t    buffer.append(\"V\");\n\n\t    index = cpg.addMethodref(clazz,\n\t\t\t\t     \"<init>\", \n\t\t\t\t     buffer.toString());\n\t    il.append(new INVOKESPECIAL(index));\n\n\t    (Type.Object).translateFrom(classGen, methodGen, \n\t\t\t\t_chosenConstructor.getDeclaringClass());\n\t    \n\t}\n\telse {\n\t    final String clazz = _chosenMethod.getDeclaringClass().getName();\n\t    Class[] paramTypes = _chosenMethod.getParameterTypes();\n\n\t    if (_thisArgument != null) {\n\t\t_thisArgument.translate(classGen, methodGen);\n\t    }\t    \n\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startResetIterator(classGen, methodGen);\n\t\texp.getType().translateTo(classGen, methodGen, paramTypes[i]);\n\t    }\n\n\t    final StringBuffer buffer = new StringBuffer();\n\t    buffer.append('(');\n\t    for (int i = 0; i < paramTypes.length; i++) {\n\t\tbuffer.append(getSignature(paramTypes[i]));\n\t    }\n\t    buffer.append(')');\n\t    buffer.append(getSignature(_chosenMethod.getReturnType()));\n\n\t    index = cpg.addMethodref(clazz,\n\t\t\t\t     _fname.getLocalPart(),\n\t\t\t\t     buffer.toString());\n\t    il.append(_thisArgument != null ? (InvokeInstruction) new INVOKEVIRTUAL(index) :\n\t    \t\t  (InvokeInstruction) new INVOKESTATIC(index));\n \n\t    _type.translateFrom(classGen, methodGen,\n\t\t\t\t_chosenMethod.getReturnType());\n\t}\n    }\n\n    public String toString() {\n\treturn \"funcall(\" + _fname + \", \" + _arguments + ')';\n    }\n\n    public boolean isStandard() {\n\tfinal String namespace = _fname.getNamespace();\n\treturn (namespace == null) || (namespace.equals(Constants.EMPTYSTRING));\n    }\n\n    public boolean isExtension() {\n\tfinal String namespace = _fname.getNamespace();\n\treturn (namespace != null) && (namespace.equals(EXT_XSLTC));\n    }\n\n    /**\n     * Returns a vector with all methods named <code>_fname</code>\n     * after stripping its namespace or <code>null</code>\n     * if no such methods exist.\n     */\n    private Vector findMethods() {\n\t  \n\t  Vector result = null;\n\t  final String namespace = _fname.getNamespace();\n\n\t  if (_className != null && _className.length() > 0) {\n\t    final int nArgs = _arguments.size();\n\t    try {\n\t      if (_clazz == null) {\n\t\tTransletLoader loader = new TransletLoader();\n\t\t_clazz = loader.loadClass(_className);\n\t\t\n\t\tif (_clazz == null) {\n\t\t  final ErrorMsg msg =\n\t\t        new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n\t\t  getParser().reportError(Constants.ERROR, msg);\n\t\t}\n\t      }\n\n\t      final String methodName = _fname.getLocalPart();\n\t      final Method[] methods = _clazz.getMethods();\n\n\t      for (int i = 0; i < methods.length; i++) {\n\t\tfinal int mods = methods[i].getModifiers();\n\t\tif (Modifier.isPublic(mods)\n\t\t    && methods[i].getName().equals(methodName)\n\t\t    && methods[i].getParameterTypes().length == nArgs)\n\t\t{\n\t\t  if (result == null) {\n\t\t    result = new Vector();\n\t          }\n\t\t  result.addElement(methods[i]);\n\t\t}\n\t      }\n\t    }\n\t    catch (ClassNotFoundException e) {\n\t\t  final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n\t\t  getParser().reportError(Constants.ERROR, msg);\n\t    }\n\t  }\n\t  return result;\n    }\n\n    /**\n     * Returns a vector with all constructors named <code>_fname</code>\n     * after stripping its namespace or <code>null</code>\n     * if no such methods exist.\n     */\n    private Vector findConstructors() {\n        Vector result = null;\n        final String namespace = _fname.getNamespace();\n\n        final int nArgs = _arguments.size();\n        try {\n          if (_clazz == null) {\n            TransletLoader loader = new TransletLoader();\n            _clazz = loader.loadClass(_className);\n          \n            if (_clazz == null) {\n              final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n              getParser().reportError(Constants.ERROR, msg);\n            }          \n          }\n\n          final Constructor[] constructors = _clazz.getConstructors();\n\n          for (int i = 0; i < constructors.length; i++) {\n              final int mods = constructors[i].getModifiers();\n              if (Modifier.isPublic(mods) &&\n                  constructors[i].getParameterTypes().length == nArgs)\n              {\n                if (result == null) {\n                  result = new Vector();\n                }\n                result.addElement(constructors[i]);\n              }\n          }\n        }\n        catch (ClassNotFoundException e) {\n          final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n          getParser().reportError(Constants.ERROR, msg);\n        }\n            \n        return result;\n    }\n\n\n    /**\n     * Compute the JVM signature for the class.\n     */\n    static final String getSignature(Class clazz) {\n\tif (clazz.isArray()) {\n\t    final StringBuffer sb = new StringBuffer();\n\t    Class cl = clazz;\n\t    while (cl.isArray()) {\n\t\tsb.append(\"[\");\n\t\tcl = cl.getComponentType();\n\t    }\n\t    sb.append(getSignature(cl));\n\t    return sb.toString();\n\t}\n\telse if (clazz.isPrimitive()) {\n\t    if (clazz == Integer.TYPE) {\n\t\treturn \"I\";\n\t    }\n\t    else if (clazz == Byte.TYPE) {\n\t\treturn \"B\";\n\t    }\n\t    else if (clazz == Long.TYPE) {\n\t\treturn \"J\";\n\t    }\n\t    else if (clazz == Float.TYPE) {\n\t\treturn \"F\";\n\t    }\n\t    else if (clazz == Double.TYPE) {\n\t\treturn \"D\";\n\t    }\n\t    else if (clazz == Short.TYPE) {\n\t\treturn \"S\";\n\t    }\n\t    else if (clazz == Character.TYPE) {\n\t\treturn \"C\";\n\t    }\n\t    else if (clazz == Boolean.TYPE) {\n\t\treturn \"Z\";\n\t    }\n\t    else if (clazz == Void.TYPE) {\n\t\treturn \"V\";\n\t    }\n\t    else {\n\t\tfinal String name = clazz.toString();\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);\n\t\tthrow new Error(err.toString());\n\t    }\n\t}\n\telse {\n\t    return \"L\" + clazz.getName().replace('.', '/') + ';';\n\t}\n    }\n\n    /**\n     * Compute the JVM method descriptor for the method.\n     */\n    static final String getSignature(Method meth) {\n\tfinal StringBuffer sb = new StringBuffer();\n\tsb.append('(');\n\tfor (int j = 0; j < params.length; j++) {\n\t    sb.append(getSignature(params[j]));\n\t}\n\treturn sb.append(')').append(getSignature(meth.getReturnType()))\n\t    .toString();\n    }\n\n    /**\n     * Compute the JVM constructor descriptor for the constructor.\n     */\n    static final String getSignature(Constructor cons) {\n\tfinal StringBuffer sb = new StringBuffer();\n\tsb.append('(');\n\tfor (int j = 0; j < params.length; j++) {\n\t    sb.append(getSignature(params[j]));\n\t}\n\treturn sb.append(\")V\").toString();\n    }\n    \n    /**\n     * Return the signature of the current method\n     */\n    private String getMethodSignature(Vector argsType) {\n \tfinal StringBuffer buf = new StringBuffer(_className);\n        buf.append('.').append(_fname.getLocalPart()).append('(');\n\t  \n\tint nArgs = argsType.size();\t    \n\tfor (int i = 0; i < nArgs; i++) {\n\t    final Type intType = (Type)argsType.elementAt(i);\n\t    buf.append(intType.toString());\n\t    if (i < nArgs - 1) buf.append(\", \");\n\t}\n\t  \n\tbuf.append(')');\n\treturn buf.toString();\n    }\n\n    /**\n     * To support EXSLT extensions, convert names with dash to allowable Java names: \n     * e.g., convert abc-xyz to abcXyz.\n     * Note: dashes only appear in middle of an EXSLT function or element name.\n     */\n    protected static String replaceDash(String name)\n    {\n        char dash = '-';\n        StringBuffer buff = new StringBuffer(\"\");\n        for (int i = 0; i < name.length(); i++) {\n        if (i > 0 && name.charAt(i-1) == dash)\n            buff.append(Character.toUpperCase(name.charAt(i)));\n        else if (name.charAt(i) != dash)\n            buff.append(name.charAt(i));\n        }\n        return buff.toString();", "functions": [{"function_name": "getName", "code": "    public String getName() {\n\treturn(_fname.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tif (_arguments != null) {\n\t    final int n = _arguments.size();\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = (Expression)_arguments.elementAt(i);\n\t\texp.setParser(parser);\n\t\texp.setParent(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [5, 9], [4, 10], [4, 11], [4, 12], [8, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 5], [10, 4], [11, 4], [12, 4], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getClassNameFromUri", "code": "    public String getClassNameFromUri(String uri) \n    {   \n        String className = (String)_extensionNamespaceTable.get(uri);\n    \n        if (className != null)\n            return className;\n        else {\n            if (uri.startsWith(JAVA_EXT_XSLTC)) {\n      \t    \tint length = JAVA_EXT_XSLTC.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else if (uri.startsWith(JAVA_EXT_XALAN)) {\n      \t    \tint length = JAVA_EXT_XALAN.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else if (uri.startsWith(JAVA_EXT_XALAN_OLD)) {\n      \t    \tint length = JAVA_EXT_XALAN_OLD.length() + 1;\n            \treturn (uri.length() > length) ? uri.substring(length) : EMPTYSTRING;\n            }\n            else {\n      \t    \tint index = uri.lastIndexOf('/');\n      \t    \treturn (index > 0) ? uri.substring(index+1) : uri;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "IF", "CALL", "RETURN", "VAR_DECL", "CALL", "RETURN", "VAR_DECL", "COND_EXPR", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "COND_EXPR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [2, 10], [8, 11], [8, 12], [6, 13], [6, 14], [11, 15], [8, 16], [8, 17], [13, 18], [11, 19], [11, 20], [11, 21], [11, 22], [16, 23], [18, 24], [18, 25], [14, 26], [19, 27], [21, 28], [23, 29], [23, 30], [17, 31], [25, 32], [26, 33], [26, 34], [27, 35], [27, 36], [20, 37], [28, 38], [28, 39], [22, 40], [30, 41], [31, 42], [31, 43], [35, 44], [36, 45], [37, 46], [39, 47], [40, 48], [40, 49], [44, 50], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 2], [11, 8], [12, 8], [13, 6], [14, 6], [15, 11], [16, 8], [17, 8], [18, 13], [19, 11], [20, 11], [21, 11], [22, 11], [23, 16], [24, 18], [25, 18], [26, 14], [27, 19], [28, 21], [29, 23], [30, 23], [31, 17], [32, 25], [33, 26], [34, 26], [35, 27], [36, 27], [37, 20], [38, 28], [39, 28], [40, 22], [41, 30], [42, 31], [43, 31], [44, 35], [45, 36], [46, 37], [47, 39], [48, 40], [49, 40], [50, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) \n\tthrows TypeCheckError \n    {\n        if (_type != null) return _type;\n\n\tfinal String namespace = _fname.getNamespace();\n\tString local = _fname.getLocalPart();\n\n\tif (isExtension()) {\n\t    _fname = new QName(null, null, local);\n\t    return typeCheckStandard(stable);\n\t}\n\telse if (isStandard()) {\n\t    return typeCheckStandard(stable);\n\t}\n\telse {\n\t    try {\n\t    \t_className = getClassNameFromUri(namespace);\n\t\t  \n                final int pos = local.lastIndexOf('.');\n\t\tif (pos > 0) {\n\t\t    _isStatic = true;\n\t\t    if (_className != null && _className.length() > 0) {\n\t\t    \t_namespace_format = NAMESPACE_FORMAT_PACKAGE;\n\t\t     \t_className = _className + \".\" + local.substring(0, pos);\n\t\t    }\n\t\t    else {\n\t\t     \t_namespace_format = NAMESPACE_FORMAT_JAVA;\n\t\t     \t_className = local.substring(0, pos);\n\t\t    }\n\t\t\t  \n\t\t    _fname = new QName(namespace, null, local.substring(pos + 1));\n\t\t}\n\t\telse {\n\t\t    if (_className != null && _className.length() > 0) {\n\t\t    \ttry {\t\t\t  \t\n\t\t      \t    TransletLoader loader = new TransletLoader();\n\t\t            _clazz = loader.loadClass(_className);\t\t\t  \t\n\t\t            _namespace_format = NAMESPACE_FORMAT_CLASS;\n\t\t    \t}\n\t\t    \tcatch (ClassNotFoundException e) {\n\t\t      \t    _namespace_format = NAMESPACE_FORMAT_PACKAGE;\t\n\t\t        }\n\t\t    }\n\t\t    else\n\t            \t_namespace_format = NAMESPACE_FORMAT_JAVA;\n\t\t\t\n\t\t    if (local.indexOf('-') > 0) {\n\t\t        local = replaceDash(local);\n\t\t    }\n\t\t    \n\t\t    String extFunction = (String)_extensionFunctionTable.get(namespace + \":\" + local);\n\t\t    if (extFunction != null) {\n\t\t      \t_fname = new QName(null, null, extFunction);\n\t\t      \treturn typeCheckStandard(stable);\n\t\t    }\n\t\t    else\n\t\t      \t_fname = new QName(namespace, null, local);\n\t\t}\n\t\t  \n\t\treturn typeCheckExternal(stable);\n\t    } \n\t    catch (TypeCheckError e) {\n\t\tErrorMsg errorMsg = e.getErrorMsg();\n\t\tif (errorMsg == null) {\n\t\t    final String name = _fname.getLocalPart();\n\t\t    errorMsg = new ErrorMsg(ErrorMsg.METHOD_NOT_FOUND_ERR, name);\n\t\t}\n\t\tgetParser().reportError(ERROR, errorMsg);\n\t\treturn _type = Type.Void;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "TRY", "RETURN", "CALL", "ASSIGN", "CATCH", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "IF", "VAR_DECL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [4, 8], [4, 9], [6, 10], [1, 11], [2, 12], [3, 13], [9, 14], [6, 15], [6, 16], [11, 17], [1, 18], [15, 19], [15, 20], [15, 21], [15, 22], [16, 23], [18, 24], [19, 25], [19, 26], [19, 27], [20, 28], [21, 29], [15, 30], [24, 31], [24, 32], [25, 33], [19, 34], [26, 35], [21, 36], [21, 37], [21, 38], [21, 39], [21, 40], [29, 41], [22, 42], [30, 43], [34, 44], [26, 45], [35, 46], [27, 47], [36, 48], [38, 49], [39, 50], [21, 51], [40, 52], [21, 53], [42, 54], [26, 55], [36, 56], [36, 57], [48, 58], [49, 59], [49, 60], [39, 61], [39, 62], [50, 63], [50, 64], [51, 65], [52, 66], [52, 67], [53, 68], [55, 69], [45, 70], [56, 71], [57, 72], [36, 73], [37, 74], [38, 75], [60, 76], [62, 77], [62, 78], [63, 79], [63, 80], [64, 81], [65, 82], [65, 83], [40, 84], [40, 85], [40, 86], [40, 87], [66, 88], [66, 89], [67, 90], [71, 91], [73, 92], [74, 93], [75, 94], [62, 95], [62, 96], [82, 97], [84, 98], [86, 99], [92, 100], [92, 101], [93, 102], [77, 103], [96, 104], [78, 105], [97, 106], [98, 107], [99, 108], [99, 109], [102, 110], [108, 111], [109, 112], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 4], [9, 4], [10, 6], [11, 1], [12, 2], [13, 3], [14, 9], [15, 6], [16, 6], [17, 11], [18, 1], [19, 15], [20, 15], [21, 15], [22, 15], [23, 16], [24, 18], [25, 19], [26, 19], [27, 19], [28, 20], [29, 21], [30, 15], [31, 24], [32, 24], [33, 25], [34, 19], [35, 26], [36, 21], [37, 21], [38, 21], [39, 21], [40, 21], [41, 29], [42, 22], [43, 30], [44, 34], [45, 26], [46, 35], [47, 27], [48, 36], [49, 38], [50, 39], [51, 21], [52, 40], [53, 21], [54, 42], [55, 26], [56, 36], [57, 36], [58, 48], [59, 49], [60, 49], [61, 39], [62, 39], [63, 50], [64, 50], [65, 51], [66, 52], [67, 52], [68, 53], [69, 55], [70, 45], [71, 56], [72, 57], [73, 36], [74, 37], [75, 38], [76, 60], [77, 62], [78, 62], [79, 63], [80, 63], [81, 64], [82, 65], [83, 65], [84, 40], [85, 40], [86, 40], [87, 40], [88, 66], [89, 66], [90, 67], [91, 71], [92, 73], [93, 74], [94, 75], [95, 62], [96, 62], [97, 82], [98, 84], [99, 86], [100, 92], [101, 92], [102, 93], [103, 77], [104, 96], [105, 78], [106, 97], [107, 98], [108, 99], [109, 99], [110, 102], [111, 108], [112, 109], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112]]}, {"function_name": "typeCheckStandard", "code": "    public Type typeCheckStandard(SymbolTable stable) throws TypeCheckError {\n\n\tfinal int n = _arguments.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\tfinal MethodType args = new MethodType(Type.Void, argsType);\n\tfinal MethodType ptype =\n\t    lookupPrimop(stable, _fname.getLocalPart(), args);\n\n\tif (ptype != null) {\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Type argType = (Type) ptype.argsType().elementAt(i);\n\t\tfinal Expression exp = (Expression)_arguments.elementAt(i);\n\t\tif (!argType.identicalTo(exp.getType())) {\n\t\t    try {\n\t\t\t_arguments.setElementAt(new CastExpr(exp, argType), i);\n\t\t    }\n\t\t    catch (TypeCheckError e) {\n\t\t    }\n\t\t}\n\t    }\n\t    _chosenMethodType = ptype;\n\t    return _type = ptype.resultType();\n\t}\n\tthrow new TypeCheckError(this);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "RETURN", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "TRY", "CALL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [9, 12], [3, 13], [4, 14], [5, 15], [6, 16], [10, 17], [2, 18], [11, 19], [13, 20], [17, 21], [11, 22], [11, 23], [11, 24], [22, 25], [11, 26], [22, 27], [25, 28], [27, 29], [23, 30], [24, 31], [27, 32], [31, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 9], [13, 3], [14, 4], [15, 5], [16, 6], [17, 10], [18, 2], [19, 11], [20, 13], [21, 17], [22, 11], [23, 11], [24, 11], [25, 22], [26, 11], [27, 22], [28, 25], [29, 27], [30, 23], [31, 24], [32, 27], [33, 31], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "typeCheckConstructor", "code": "    public Type typeCheckConstructor(SymbolTable stable) throws TypeCheckError{\n        final Vector constructors = findConstructors();\n\tif (constructors == null) {\n            throw new TypeCheckError(ErrorMsg.CONSTRUCTOR_NOT_FOUND, \n\t\t_className);\n        \n\t}\n\n\tfinal int nConstructors = constructors.size();\n\tfinal int nArgs = _arguments.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\n\tint bestConstrDistance = Integer.MAX_VALUE;\n\tfor (int j, i = 0; i < nConstructors; i++) {\n\t    final Constructor constructor = \n\t\t(Constructor)constructors.elementAt(i);\n\t    final Class[] paramTypes = constructor.getParameterTypes();\n\n\t    Class extType = null;\n\t    int currConstrDistance = 0;\n\t    for (j = 0; j < nArgs; j++) {\n\t\textType = paramTypes[j];\n\t\tfinal Type intType = (Type)argsType.elementAt(j);\n\t\tObject match = _internal2Java.maps(intType, extType);\n\t\tif (match != null) {\n\t\t    currConstrDistance += ((JavaType)match).distance;\n\t\t}\n\t\telse if (intType instanceof ObjectType) {\n\t\t    ObjectType objectType = (ObjectType)intType;\n\t\t    if (objectType.getJavaClass() == extType)\n\t\t        continue;\n\t\t    else if (extType.isAssignableFrom(objectType.getJavaClass()))\n\t\t        currConstrDistance += 1;\n\t\t    else {\n\t\t\tcurrConstrDistance = Integer.MAX_VALUE;\n\t\t\tbreak;\n\t\t    }\n\t\t}\n\t\telse {\n\t\t    currConstrDistance = Integer.MAX_VALUE;\n\t\t    break;\n\t\t} \n\t    }\n\n\t    if (j == nArgs && currConstrDistance < bestConstrDistance ) {\n\t        _chosenConstructor = constructor;\n\t        _isExtConstructor = true;\n\t\tbestConstrDistance = currConstrDistance;\n\t\t\n\t\tif (_clazz != null)\n\t          _type = new ObjectType(_clazz);\n\t\telse\n\t\t  _type = new ObjectType(_className);\n\t    }\n\t}\n\n\tif (_type != null) {\n\t    return _type;\n\t}\n\n\tthrow new TypeCheckError(ErrorMsg.ARGUMENT_CONVERSION_ERR, getMethodSignature(argsType));", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "IF", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "IF", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [8, 14], [11, 15], [2, 16], [12, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [5, 24], [6, 25], [7, 26], [8, 27], [14, 28], [9, 29], [18, 30], [19, 31], [19, 32], [3, 33], [27, 34], [18, 35], [30, 36], [30, 37], [19, 38], [19, 39], [19, 40], [32, 41], [20, 42], [21, 43], [22, 44], [35, 45], [18, 46], [18, 47], [18, 48], [38, 49], [38, 50], [19, 51], [23, 52], [35, 53], [35, 54], [45, 55], [47, 56], [49, 57], [50, 58], [39, 59], [53, 60], [54, 61], [49, 62], [49, 63], [49, 64], [38, 65], [40, 66], [49, 67], [63, 68], [63, 69], [63, 70], [68, 71], [70, 72], [68, 73], [68, 74], [71, 75], [68, 76], [74, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 8], [15, 11], [16, 2], [17, 12], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 5], [25, 6], [26, 7], [27, 8], [28, 14], [29, 9], [30, 18], [31, 19], [32, 19], [33, 3], [34, 27], [35, 18], [36, 30], [37, 30], [38, 19], [39, 19], [40, 19], [41, 32], [42, 20], [43, 21], [44, 22], [45, 35], [46, 18], [47, 18], [48, 18], [49, 38], [50, 38], [51, 19], [52, 23], [53, 35], [54, 35], [55, 45], [56, 47], [57, 49], [58, 50], [59, 39], [60, 53], [61, 54], [62, 49], [63, 49], [64, 49], [65, 38], [66, 40], [67, 49], [68, 63], [69, 63], [70, 63], [71, 68], [72, 70], [73, 68], [74, 68], [75, 71], [76, 68], [77, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "typeCheckExternal", "code": "    public Type typeCheckExternal(SymbolTable stable) throws TypeCheckError {\n\tint nArgs = _arguments.size();\n\tfinal String name = _fname.getLocalPart();\n    \n\tif (_fname.getLocalPart().equals(\"new\")) {\n\t    return typeCheckConstructor(stable);\n\t}\n\telse {\n\t    boolean hasThisArgument = false;\n\t  \n\t    if (nArgs == 0)\n\t        _isStatic = true;\n\t  \n\t    if (!_isStatic) {\n\t        if (_namespace_format == NAMESPACE_FORMAT_JAVA\n\t  \t    || _namespace_format == NAMESPACE_FORMAT_PACKAGE)\n\t   \t    hasThisArgument = true;\n\t  \t  \n\t  \tExpression firstArg = (Expression)_arguments.elementAt(0);\n\t  \tType firstArgType = (Type)firstArg.typeCheck(stable);\n\t  \t\n\t  \tif (_namespace_format == NAMESPACE_FORMAT_CLASS\n\t  \t    && firstArgType instanceof ObjectType\n\t  \t    && _clazz != null\n\t  \t    && _clazz.isAssignableFrom(((ObjectType)firstArgType).getJavaClass()))\n\t  \t    hasThisArgument = true;\n\t  \t\n\t  \tif (hasThisArgument) {\n\t  \t    _thisArgument = (Expression) _arguments.elementAt(0);\n\t  \t    _arguments.remove(0); nArgs--;\n\t\t    if (firstArgType instanceof ObjectType) {\n\t\t    \t_className = ((ObjectType) firstArgType).getJavaClassName();\n\t\t    }\n\t\t    else\n\t\t    \tthrow new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, name);  \t  \t\n\t  \t}\n\t    }\n\t    else if (_className.length() == 0) {\n\t\t/*\n\t\t * Warn user if external function could not be resolved.\n\t\t * Warning will _NOT_ be issued is the call is properly\n\t\t * wrapped in an <xsl:if> or <xsl:when> element. For details\n\t\t * see If.parserContents() and When.parserContents()\n\t\t */\n\t\tfinal Parser parser = getParser();\n\t\tif (parser != null) {\n\t\t    reportWarning(this, parser, ErrorMsg.FUNCTION_RESOLVE_ERR,\n\t\t\t\t  _fname.toString());\n\t\t}\n\t\tunresolvedExternal = true;\n\t    }\n\t}\n\t\n\tfinal Vector methods = findMethods();\n\t\n\tif (methods == null) {\n\t    throw new TypeCheckError(ErrorMsg.METHOD_NOT_FOUND_ERR, _className + \".\" + name);\n\t}\n\n\tClass extType = null;\n\tfinal int nMethods = methods.size();\n\tfinal Vector argsType = typeCheckArgs(stable);\n\n\tint bestMethodDistance  = Integer.MAX_VALUE;\n\tfor (int j, i = 0; i < nMethods; i++) {\n\n\t    final Method method = (Method)methods.elementAt(i);\n\t    final Class[] paramTypes = method.getParameterTypes();\n\t    \n\t    int currMethodDistance = 0;\n\t    for (j = 0; j < nArgs; j++) {\n\t\textType = paramTypes[j];\n\t\tfinal Type intType = (Type)argsType.elementAt(j);\n\t\tObject match = _internal2Java.maps(intType, extType);\n\t\tif (match != null) {\n\t\t    currMethodDistance += ((JavaType)match).distance; \n\t\t}\n\t\telse {\n\t\t    if (intType instanceof ReferenceType) {\n\t\t       currMethodDistance += 1; \n\t\t    }\n\t\t    else if (intType instanceof ObjectType) {\n\t\t        ObjectType object = (ObjectType)intType;\n\t\t        if (extType.getName().equals(object.getJavaClassName()))\n\t\t            currMethodDistance += 0;\n\t\t      \telse if (extType.isAssignableFrom(object.getJavaClass()))\n\t\t            currMethodDistance += 1;\n\t\t      \telse {\n\t\t      \t    currMethodDistance = Integer.MAX_VALUE;\n\t\t      \t    break;\n\t\t        }\n\t\t    }\n\t\t    else {\n\t\t        currMethodDistance = Integer.MAX_VALUE;\n\t\t        break;\n\t\t    }\n\t\t}\n\t    }\n\n\t    if (j == nArgs) {\n\t\t  extType = method.getReturnType();\n\t\t\n\t\t  _type = (Type) _java2Internal.get(extType);\n\t\t  if (_type == null) {\n\t\t      _type = new ObjectType(extType);\n\t\t  }\t\t\n\n\t\t  if (_type != null && currMethodDistance < bestMethodDistance) {\n\t\t      _chosenMethod = method;\n\t\t      bestMethodDistance = currMethodDistance;\n\t\t  }\n\t    }\n\t}\n\t\n\tif (_chosenMethod != null && _thisArgument == null &&\n\t    !Modifier.isStatic(_chosenMethod.getModifiers())) {\n\t    throw new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, getMethodSignature(argsType));\n\t}\n\n\tif (_type != null) {\n\t    if (_type == Type.NodeSet) {\n            \tgetXSLTC().setMultiDocument(true);\n            }\n\t    return _type;\n\t}\n\n\tthrow new TypeCheckError(ErrorMsg.ARGUMENT_CONVERSION_ERR, getMethodSignature(argsType));", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [2, 16], [3, 17], [4, 18], [9, 19], [11, 20], [15, 21], [2, 22], [2, 23], [16, 24], [3, 25], [17, 26], [17, 27], [4, 28], [4, 29], [4, 30], [4, 31], [4, 32], [6, 33], [7, 34], [8, 35], [9, 36], [19, 37], [10, 38], [11, 39], [11, 40], [11, 41], [11, 42], [20, 43], [12, 44], [13, 45], [23, 46], [25, 47], [26, 48], [27, 49], [27, 50], [28, 51], [29, 52], [29, 53], [4, 54], [36, 55], [39, 56], [40, 57], [42, 58], [43, 59], [47, 60], [49, 61], [50, 62], [28, 63], [28, 64], [29, 65], [29, 66], [29, 67], [53, 68], [30, 69], [31, 70], [55, 71], [56, 72], [39, 73], [39, 74], [39, 75], [39, 76], [39, 77], [40, 78], [57, 79], [41, 80], [23, 81], [63, 82], [64, 83], [28, 84], [28, 85], [65, 86], [29, 87], [32, 88], [71, 89], [56, 90], [56, 91], [72, 92], [72, 93], [74, 94], [77, 95], [78, 96], [81, 97], [82, 98], [82, 99], [83, 100], [85, 101], [65, 102], [86, 103], [66, 104], [89, 105], [56, 106], [90, 107], [73, 108], [74, 109], [94, 110], [94, 111], [77, 112], [95, 113], [95, 114], [97, 115], [63, 116], [63, 117], [99, 118], [64, 119], [84, 120], [102, 121], [102, 122], [65, 123], [67, 124], [106, 125], [107, 126], [91, 127], [108, 128], [108, 129], [73, 130], [73, 131], [109, 132], [111, 133], [111, 134], [75, 135], [76, 136], [112, 137], [119, 138], [121, 139], [90, 140], [128, 141], [130, 142], [133, 143], [134, 144], [134, 145], [136, 146], [121, 147], [121, 148], [121, 149], [102, 150], [140, 151], [108, 152], [131, 153], [121, 154], [148, 155], [148, 156], [150, 157], [153, 158], [155, 159], [148, 160], [156, 161], [155, 162], [155, 163], [159, 164], [160, 165], [161, 166], [155, 167], [163, 168], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 2], [17, 3], [18, 4], [19, 9], [20, 11], [21, 15], [22, 2], [23, 2], [24, 16], [25, 3], [26, 17], [27, 17], [28, 4], [29, 4], [30, 4], [31, 4], [32, 4], [33, 6], [34, 7], [35, 8], [36, 9], [37, 19], [38, 10], [39, 11], [40, 11], [41, 11], [42, 11], [43, 20], [44, 12], [45, 13], [46, 23], [47, 25], [48, 26], [49, 27], [50, 27], [51, 28], [52, 29], [53, 29], [54, 4], [55, 36], [56, 39], [57, 40], [58, 42], [59, 43], [60, 47], [61, 49], [62, 50], [63, 28], [64, 28], [65, 29], [66, 29], [67, 29], [68, 53], [69, 30], [70, 31], [71, 55], [72, 56], [73, 39], [74, 39], [75, 39], [76, 39], [77, 39], [78, 40], [79, 57], [80, 41], [81, 23], [82, 63], [83, 64], [84, 28], [85, 28], [86, 65], [87, 29], [88, 32], [89, 71], [90, 56], [91, 56], [92, 72], [93, 72], [94, 74], [95, 77], [96, 78], [97, 81], [98, 82], [99, 82], [100, 83], [101, 85], [102, 65], [103, 86], [104, 66], [105, 89], [106, 56], [107, 90], [108, 73], [109, 74], [110, 94], [111, 94], [112, 77], [113, 95], [114, 95], [115, 97], [116, 63], [117, 63], [118, 99], [119, 64], [120, 84], [121, 102], [122, 102], [123, 65], [124, 67], [125, 106], [126, 107], [127, 91], [128, 108], [129, 108], [130, 73], [131, 73], [132, 109], [133, 111], [134, 111], [135, 75], [136, 76], [137, 112], [138, 119], [139, 121], [140, 90], [141, 128], [142, 130], [143, 133], [144, 134], [145, 134], [146, 136], [147, 121], [148, 121], [149, 121], [150, 102], [151, 140], [152, 108], [153, 131], [154, 121], [155, 148], [156, 148], [157, 150], [158, 153], [159, 155], [160, 148], [161, 156], [162, 155], [163, 155], [164, 159], [165, 160], [166, 161], [167, 155], [168, 163], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168]]}, {"function_name": "typeCheckArgs", "code": "    public Vector typeCheckArgs(SymbolTable stable) throws TypeCheckError {\n\tfinal Vector result = new Vector();\n\tfinal Enumeration e = _arguments.elements();\t\n\twhile (e.hasMoreElements()) {\n\t    final Expression exp = (Expression)e.nextElement();\n\t    result.addElement(exp.typeCheck(stable));\n\t}\n\treturn result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [4, 9], [2, 10], [10, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 4], [10, 2], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "argument", "code": "    protected final Expression argument(int i) {\n\treturn (Expression)_arguments.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "argument", "code": "    protected final Expression argument() {\n\treturn argument(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "argumentCount", "code": "    protected final int argumentCount() {\n\treturn _arguments.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setArgument", "code": "    protected final void setArgument(int i, Expression exp) {\n\t_arguments.setElementAt(exp, i);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translateDesynthesized", "code": "    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) \n    {\n\tType type = Type.Boolean;\n\tif (_chosenMethodType != null)\n\t    type = _chosenMethodType.resultType();\n\n\tfinal InstructionList il = methodGen.getInstructionList();\n\ttranslate(classGen, methodGen);\n\n\tif ((type instanceof BooleanType) || (type instanceof IntType)) {\n\t    _falseList.add(il.append(new IFEQ(null)));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [3, 9], [7, 10], [7, 11], [2, 12], [3, 13], [9, 14], [1, 15], [13, 16], [15, 17], [17, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 3], [10, 7], [11, 7], [12, 2], [13, 3], [14, 9], [15, 1], [16, 13], [17, 15], [18, 17], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal int n = argumentCount();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tint index;\n\n\tif (isStandard() || isExtension()) {\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startResetIterator(classGen, methodGen);\n\t    }\n\n\t    final String name = _fname.toString().replace('-', '_') + \"F\";\n\t    String args = Constants.EMPTYSTRING;\n\n\t    if (name.equals(\"sumF\")) {\n\t\targs = DOM_INTF_SIG;\n\t\til.append(methodGen.loadDOM());\n\t    }\n\t    else if (name.equals(\"normalize_spaceF\")) {\n\t\tif (_chosenMethodType.toSignature(args).\n\t\t    equals(\"()Ljava/lang/String;\")) {\n\t\t    args = \"I\"+DOM_INTF_SIG;\n\t\t    il.append(methodGen.loadContextNode());\n\t\t    il.append(methodGen.loadDOM());\n\t\t}\n\t    }\n\n\t    index = cpg.addMethodref(BASIS_LIBRARY_CLASS, name,\n\t\t\t\t     _chosenMethodType.toSignature(args));\n\t    il.append(new INVOKESTATIC(index));\n\t}\n\telse if (unresolvedExternal) {\n\t    index = cpg.addMethodref(BASIS_LIBRARY_CLASS,\n\t\t\t\t     \"unresolved_externalF\",\n\t\t\t\t     \"(Ljava/lang/String;)V\");\n\t    il.append(new PUSH(cpg, _fname.toString()));\n\t    il.append(new INVOKESTATIC(index));\n\t}\n\telse if (_isExtConstructor) {\n\t    final String clazz = \n\t\t_chosenConstructor.getDeclaringClass().getName();\n\t    Class[] paramTypes = _chosenConstructor.getParameterTypes();\n\t    \n\t    il.append(new NEW(cpg.addClass(_className)));\n\t    il.append(InstructionConstants.DUP);\n\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startResetIterator(classGen, methodGen);\n\t\texp.getType().translateTo(classGen, methodGen, paramTypes[i]);\n\t    }\n\n\t    final StringBuffer buffer = new StringBuffer();\n\t    buffer.append('(');\n\t    for (int i = 0; i < paramTypes.length; i++) {\n\t\tbuffer.append(getSignature(paramTypes[i]));\n\t    }\n\t    buffer.append(')');\n\t    buffer.append(\"V\");\n\n\t    index = cpg.addMethodref(clazz,\n\t\t\t\t     \"<init>\", \n\t\t\t\t     buffer.toString());\n\t    il.append(new INVOKESPECIAL(index));\n\n\t    (Type.Object).translateFrom(classGen, methodGen, \n\t\t\t\t_chosenConstructor.getDeclaringClass());\n\t    \n\t}\n\telse {\n\t    final String clazz = _chosenMethod.getDeclaringClass().getName();\n\t    Class[] paramTypes = _chosenMethod.getParameterTypes();\n\n\t    if (_thisArgument != null) {\n\t\t_thisArgument.translate(classGen, methodGen);\n\t    }\t    \n\n\t    for (int i = 0; i < n; i++) {\n\t\tfinal Expression exp = argument(i);\n\t\texp.translate(classGen, methodGen);\n\t\texp.startResetIterator(classGen, methodGen);\n\t\texp.getType().translateTo(classGen, methodGen, paramTypes[i]);\n\t    }\n\n\t    final StringBuffer buffer = new StringBuffer();\n\t    buffer.append('(');\n\t    for (int i = 0; i < paramTypes.length; i++) {\n\t\tbuffer.append(getSignature(paramTypes[i]));\n\t    }\n\t    buffer.append(')');\n\t    buffer.append(getSignature(_chosenMethod.getReturnType()));\n\n\t    index = cpg.addMethodref(clazz,\n\t\t\t\t     _fname.getLocalPart(),\n\t\t\t\t     buffer.toString());\n\t    il.append(_thisArgument != null ? (InvokeInstruction) new INVOKEVIRTUAL(index) :\n\t    \t\t  (InvokeInstruction) new INVOKESTATIC(index));\n \n\t    _type.translateFrom(classGen, methodGen,\n\t\t\t\t_chosenMethod.getReturnType());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "IF", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [1, 11], [1, 12], [1, 13], [1, 14], [9, 15], [9, 16], [3, 17], [4, 18], [5, 19], [1, 20], [1, 21], [11, 22], [11, 23], [14, 24], [10, 25], [10, 26], [10, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [10, 34], [10, 35], [8, 36], [8, 37], [8, 38], [20, 39], [21, 40], [22, 41], [23, 42], [13, 43], [14, 44], [10, 45], [10, 46], [10, 47], [10, 48], [10, 49], [25, 50], [10, 51], [27, 52], [28, 53], [10, 54], [10, 55], [10, 56], [10, 57], [31, 58], [10, 59], [33, 60], [10, 61], [10, 62], [36, 63], [37, 64], [38, 65], [40, 66], [22, 67], [41, 68], [11, 69], [11, 70], [43, 71], [43, 72], [14, 73], [14, 74], [14, 75], [45, 76], [46, 77], [47, 78], [48, 79], [49, 80], [51, 81], [26, 82], [27, 83], [53, 84], [29, 85], [30, 86], [10, 87], [54, 88], [55, 89], [56, 90], [57, 91], [59, 92], [32, 93], [33, 94], [62, 95], [34, 96], [35, 97], [64, 98], [65, 99], [65, 100], [67, 101], [69, 102], [72, 103], [44, 104], [77, 105], [78, 106], [78, 107], [79, 108], [25, 109], [25, 110], [27, 111], [27, 112], [27, 113], [27, 114], [28, 115], [86, 116], [87, 117], [89, 118], [89, 119], [31, 120], [31, 121], [33, 122], [33, 123], [33, 124], [33, 125], [95, 126], [97, 127], [101, 128], [103, 129], [103, 130], [77, 131], [77, 132], [105, 133], [109, 134], [111, 135], [83, 136], [120, 137], [122, 138], [94, 139], [67, 140], [67, 141], [67, 142], [128, 143], [140, 144], [141, 145], [142, 146], [146, 147], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 1], [12, 1], [13, 1], [14, 1], [15, 9], [16, 9], [17, 3], [18, 4], [19, 5], [20, 1], [21, 1], [22, 11], [23, 11], [24, 14], [25, 10], [26, 10], [27, 10], [28, 10], [29, 10], [30, 10], [31, 10], [32, 10], [33, 10], [34, 10], [35, 10], [36, 8], [37, 8], [38, 8], [39, 20], [40, 21], [41, 22], [42, 23], [43, 13], [44, 14], [45, 10], [46, 10], [47, 10], [48, 10], [49, 10], [50, 25], [51, 10], [52, 27], [53, 28], [54, 10], [55, 10], [56, 10], [57, 10], [58, 31], [59, 10], [60, 33], [61, 10], [62, 10], [63, 36], [64, 37], [65, 38], [66, 40], [67, 22], [68, 41], [69, 11], [70, 11], [71, 43], [72, 43], [73, 14], [74, 14], [75, 14], [76, 45], [77, 46], [78, 47], [79, 48], [80, 49], [81, 51], [82, 26], [83, 27], [84, 53], [85, 29], [86, 30], [87, 10], [88, 54], [89, 55], [90, 56], [91, 57], [92, 59], [93, 32], [94, 33], [95, 62], [96, 34], [97, 35], [98, 64], [99, 65], [100, 65], [101, 67], [102, 69], [103, 72], [104, 44], [105, 77], [106, 78], [107, 78], [108, 79], [109, 25], [110, 25], [111, 27], [112, 27], [113, 27], [114, 27], [115, 28], [116, 86], [117, 87], [118, 89], [119, 89], [120, 31], [121, 31], [122, 33], [123, 33], [124, 33], [125, 33], [126, 95], [127, 97], [128, 101], [129, 103], [130, 103], [131, 77], [132, 77], [133, 105], [134, 109], [135, 111], [136, 83], [137, 120], [138, 122], [139, 94], [140, 67], [141, 67], [142, 67], [143, 128], [144, 140], [145, 141], [146, 142], [147, 146], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"funcall(\" + _fname + \", \" + _arguments + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isStandard", "code": "    public boolean isStandard() {\n\tfinal String namespace = _fname.getNamespace();\n\treturn (namespace == null) || (namespace.equals(Constants.EMPTYSTRING));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isExtension", "code": "    public boolean isExtension() {\n\tfinal String namespace = _fname.getNamespace();\n\treturn (namespace != null) && (namespace.equals(EXT_XSLTC));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "findMethods", "code": "    private Vector findMethods() {\n\t  \n\t  Vector result = null;\n\t  final String namespace = _fname.getNamespace();\n\n\t  if (_className != null && _className.length() > 0) {\n\t    final int nArgs = _arguments.size();\n\t    try {\n\t      if (_clazz == null) {\n\t\tTransletLoader loader = new TransletLoader();\n\t\t_clazz = loader.loadClass(_className);\n\t\t\n\t\tif (_clazz == null) {\n\t\t  final ErrorMsg msg =\n\t\t        new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n\t\t  getParser().reportError(Constants.ERROR, msg);\n\t\t}\n\t      }\n\n\t      final String methodName = _fname.getLocalPart();\n\t      final Method[] methods = _clazz.getMethods();\n\n\t      for (int i = 0; i < methods.length; i++) {\n\t\tfinal int mods = methods[i].getModifiers();\n\t\tif (Modifier.isPublic(mods)\n\t\t    && methods[i].getName().equals(methodName)\n\t\t    && methods[i].getParameterTypes().length == nArgs)\n\t\t{\n\t\t  if (result == null) {\n\t\t    result = new Vector();\n\t          }\n\t\t  result.addElement(methods[i]);\n\t\t}\n\t      }\n\t    }\n\t    catch (ClassNotFoundException e) {\n\t\t  final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n\t\t  getParser().reportError(Constants.ERROR, msg);\n\t    }\n\t  }\n\t  return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "TRY", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [3, 10], [4, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [8, 17], [8, 18], [9, 19], [12, 20], [13, 21], [16, 22], [7, 23], [12, 24], [13, 25], [13, 26], [14, 27], [15, 28], [16, 29], [16, 30], [22, 31], [24, 32], [20, 33], [25, 34], [13, 35], [29, 36], [16, 37], [25, 38], [34, 39], [34, 40], [29, 41], [36, 42], [37, 43], [30, 44], [25, 45], [38, 46], [40, 47], [26, 48], [29, 49], [46, 50], [39, 51], [40, 52], [40, 53], [49, 54], [41, 55], [38, 56], [56, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 3], [11, 4], [12, 6], [13, 6], [14, 6], [15, 6], [16, 6], [17, 8], [18, 8], [19, 9], [20, 12], [21, 13], [22, 16], [23, 7], [24, 12], [25, 13], [26, 13], [27, 14], [28, 15], [29, 16], [30, 16], [31, 22], [32, 24], [33, 20], [34, 25], [35, 13], [36, 29], [37, 16], [38, 25], [39, 34], [40, 34], [41, 29], [42, 36], [43, 37], [44, 30], [45, 25], [46, 38], [47, 40], [48, 26], [49, 29], [50, 46], [51, 39], [52, 40], [53, 40], [54, 49], [55, 41], [56, 38], [57, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "findConstructors", "code": "    private Vector findConstructors() {\n        Vector result = null;\n        final String namespace = _fname.getNamespace();\n\n        final int nArgs = _arguments.size();\n        try {\n          if (_clazz == null) {\n            TransletLoader loader = new TransletLoader();\n            _clazz = loader.loadClass(_className);\n          \n            if (_clazz == null) {\n              final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n              getParser().reportError(Constants.ERROR, msg);\n            }          \n          }\n\n          final Constructor[] constructors = _clazz.getConstructors();\n\n          for (int i = 0; i < constructors.length; i++) {\n              final int mods = constructors[i].getModifiers();\n              if (Modifier.isPublic(mods) &&\n                  constructors[i].getParameterTypes().length == nArgs)\n              {\n                if (result == null) {\n                  result = new Vector();\n                }\n                result.addElement(constructors[i]);\n              }\n          }\n        }\n        catch (ClassNotFoundException e) {\n          final ErrorMsg msg = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, _className);\n          getParser().reportError(Constants.ERROR, msg);\n        }\n            \n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CATCH", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [7, 11], [9, 12], [3, 13], [4, 14], [5, 15], [6, 16], [7, 17], [7, 18], [8, 19], [9, 20], [9, 21], [12, 22], [16, 23], [10, 24], [17, 25], [7, 26], [20, 27], [9, 28], [17, 29], [25, 30], [25, 31], [20, 32], [27, 33], [28, 34], [21, 35], [17, 36], [29, 37], [18, 38], [20, 39], [37, 40], [30, 41], [39, 42], [32, 43], [29, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 7], [12, 9], [13, 3], [14, 4], [15, 5], [16, 6], [17, 7], [18, 7], [19, 8], [20, 9], [21, 9], [22, 12], [23, 16], [24, 10], [25, 17], [26, 7], [27, 20], [28, 9], [29, 17], [30, 25], [31, 25], [32, 20], [33, 27], [34, 28], [35, 21], [36, 17], [37, 29], [38, 18], [39, 20], [40, 37], [41, 30], [42, 39], [43, 32], [44, 29], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "getSignature", "code": "    static final String getSignature(Class clazz) {\n\tif (clazz.isArray()) {\n\t    final StringBuffer sb = new StringBuffer();\n\t    Class cl = clazz;\n\t    while (cl.isArray()) {\n\t\tsb.append(\"[\");\n\t\tcl = cl.getComponentType();\n\t    }\n\t    sb.append(getSignature(cl));\n\t    return sb.toString();\n\t}\n\telse if (clazz.isPrimitive()) {\n\t    if (clazz == Integer.TYPE) {\n\t\treturn \"I\";\n\t    }\n\t    else if (clazz == Byte.TYPE) {\n\t\treturn \"B\";\n\t    }\n\t    else if (clazz == Long.TYPE) {\n\t\treturn \"J\";\n\t    }\n\t    else if (clazz == Float.TYPE) {\n\t\treturn \"F\";\n\t    }\n\t    else if (clazz == Double.TYPE) {\n\t\treturn \"D\";\n\t    }\n\t    else if (clazz == Short.TYPE) {\n\t\treturn \"S\";\n\t    }\n\t    else if (clazz == Character.TYPE) {\n\t\treturn \"C\";\n\t    }\n\t    else if (clazz == Boolean.TYPE) {\n\t\treturn \"Z\";\n\t    }\n\t    else if (clazz == Void.TYPE) {\n\t\treturn \"V\";\n\t    }\n\t    else {\n\t\tfinal String name = clazz.toString();\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.UNKNOWN_SIG_TYPE_ERR,name);\n\t\tthrow new Error(err.toString());\n\t    }\n\t}\n\telse {\n\t    return \"L\" + clazz.getName().replace('.', '/') + ';';", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "CALL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [6, 12], [1, 13], [7, 14], [10, 15], [11, 16], [11, 17], [13, 18], [9, 19], [15, 20], [15, 21], [16, 22], [16, 23], [11, 24], [7, 25], [7, 26], [21, 27], [21, 28], [22, 29], [22, 30], [16, 31], [24, 32], [25, 33], [26, 34], [27, 35], [29, 36], [29, 37], [22, 38], [31, 39], [35, 40], [35, 41], [36, 42], [36, 43], [29, 44], [38, 45], [42, 46], [42, 47], [36, 48], [44, 49], [46, 50], [46, 51], [42, 52], [48, 53], [50, 54], [50, 55], [46, 56], [52, 57], [54, 58], [50, 59], [56, 60], [54, 61], [54, 62], [54, 63], [54, 64], [59, 65], [61, 66], [64, 67], [66, 68], [62, 69], [63, 70], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 6], [13, 1], [14, 7], [15, 10], [16, 11], [17, 11], [18, 13], [19, 9], [20, 15], [21, 15], [22, 16], [23, 16], [24, 11], [25, 7], [26, 7], [27, 21], [28, 21], [29, 22], [30, 22], [31, 16], [32, 24], [33, 25], [34, 26], [35, 27], [36, 29], [37, 29], [38, 22], [39, 31], [40, 35], [41, 35], [42, 36], [43, 36], [44, 29], [45, 38], [46, 42], [47, 42], [48, 36], [49, 44], [50, 46], [51, 46], [52, 42], [53, 48], [54, 50], [55, 50], [56, 46], [57, 52], [58, 54], [59, 50], [60, 56], [61, 54], [62, 54], [63, 54], [64, 54], [65, 59], [66, 61], [67, 64], [68, 66], [69, 62], [70, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "getSignature", "code": "    static final String getSignature(Method meth) {\n\tfinal StringBuffer sb = new StringBuffer();\n\tsb.append('(');\n\tfor (int j = 0; j < params.length; j++) {\n\t    sb.append(getSignature(params[j]));\n\t}\n\treturn sb.append(')').append(getSignature(meth.getReturnType()))\n\t    .toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [5, 8], [5, 9], [5, 10], [7, 11], [3, 12], [10, 13], [2, 14], [2, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 5], [9, 5], [10, 5], [11, 7], [12, 3], [13, 10], [14, 2], [15, 2], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getSignature", "code": "    static final String getSignature(Constructor cons) {\n\tfinal StringBuffer sb = new StringBuffer();\n\tsb.append('(');\n\tfor (int j = 0; j < params.length; j++) {\n\t    sb.append(getSignature(params[j]));\n\t}\n\treturn sb.append(\")V\").toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [5, 8], [5, 9], [7, 10], [3, 11], [2, 12], [2, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 5], [9, 5], [10, 7], [11, 3], [12, 2], [13, 2], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getMethodSignature", "code": "    private String getMethodSignature(Vector argsType) {\n \tfinal StringBuffer buf = new StringBuffer(_className);\n        buf.append('.').append(_fname.getLocalPart()).append('(');\n\t  \n\tint nArgs = argsType.size();\t    \n\tfor (int i = 0; i < nArgs; i++) {\n\t    final Type intType = (Type)argsType.elementAt(i);\n\t    buf.append(intType.toString());\n\t    if (i < nArgs - 1) buf.append(\", \");\n\t}\n\t  \n\tbuf.append(')');\n\treturn buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [0, 9], [7, 10], [2, 11], [2, 12], [3, 13], [9, 14], [9, 15], [9, 16], [4, 17], [11, 18], [2, 19], [2, 20], [15, 21], [16, 22], [11, 23], [18, 24], [19, 25], [23, 26], [24, 27], [12, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 0], [10, 7], [11, 2], [12, 2], [13, 3], [14, 9], [15, 9], [16, 9], [17, 4], [18, 11], [19, 2], [20, 2], [21, 15], [22, 16], [23, 11], [24, 18], [25, 19], [26, 23], [27, 24], [28, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "replaceDash", "code": "    protected static String replaceDash(String name)\n    {\n        char dash = '-';\n        StringBuffer buff = new StringBuffer(\"\");\n        for (int i = 0; i < name.length(); i++) {\n        if (i > 0 && name.charAt(i-1) == dash)\n            buff.append(Character.toUpperCase(name.charAt(i)));\n        else if (name.charAt(i) != dash)\n            buff.append(name.charAt(i));\n        }\n        return buff.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [3, 10], [4, 11], [8, 12], [8, 13], [2, 14], [10, 15], [12, 16], [8, 17], [13, 18], [13, 19], [12, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [22, 26], [23, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 3], [11, 4], [12, 8], [13, 8], [14, 2], [15, 10], [16, 12], [17, 8], [18, 13], [19, 13], [20, 12], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [26, 22], [27, 23], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "FunctionCall", "code": "    public FunctionCall(QName fname, Vector arguments) {\n\t_fname = fname;\n\t_arguments = arguments;\n\t_type = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "FunctionCall", "code": "    public FunctionCall(QName fname) {\n\tthis(fname, EMPTY_ARG_LIST);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "jedit-4.3-4613", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bufferset/BufferSetListener.java", "language": "java", "name": "org.gjt.sp.jedit.bufferset.BufferSetListener", "code": "public interface BufferSetListener extends EventListener\n{\n\t/**\n\t * A buffer was added in the bufferSet.\n\t *\n\t * @param buffer the buffer\n\t * @param index the position where it was added\n\t */\n\tvoid bufferAdded(Buffer buffer, int index);\n\n\t/**\n\t * A buffer was removed from the bufferSet.\n\t *\n\t * @param buffer the removed buffer\n\t * @param index the position where the buffer was\n\t */\n\tvoid bufferRemoved(Buffer buffer, int index);\n\n\t/**\n\t * A buffer was moved in the BufferSet.\n\t *\n\t * @param buffer the moved buffer\n\t * @param oldIndex the old index\n\t * @param newIndex the new index\n\t */\n\tvoid bufferMoved(Buffer buffer, int oldIndex, int newIndex);\n\n\t/**\n\t * The bufferSet was sorted.\n\t */\n\tvoid bufferSetSorted();", "functions": [{"function_name": "bufferAdded", "code": "\tvoid bufferAdded(Buffer buffer, int index);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "bufferRemoved", "code": "\tvoid bufferRemoved(Buffer buffer, int index);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "bufferMoved", "code": "\tvoid bufferMoved(Buffer buffer, int oldIndex, int newIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "bufferSetSorted", "code": "\tvoid bufferSetSorted();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.3-4724", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/menu/PluginsProvider.java", "language": "java", "name": "org.gjt.sp.jedit.menu.PluginsProvider", "code": "public class PluginsProvider implements DynamicMenuProvider\n{\n\t//{{{ updateEveryTime() method\n\tpublic boolean updateEveryTime()\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ update() method\n\tpublic void update(JMenu menu)\n\t{\n\t\t// We build a set of lists, each list contains plugin menu\n\t\t// items that begin with a given letter.\n\t\tint count = 0;\n\n\t\tList<JMenuItem>[] letters = (List<JMenuItem>[])new List[26];\n\t\tfor(int i = 0; i < letters.length; i++)\n\t\t{\n\t\t\tletters[i] = new ArrayList<JMenuItem>();\n\t\t}\n\n\t\tVector<JMenuItem> pluginMenuItems = new Vector<JMenuItem>();\n\n\t\tPluginJAR[] pluginArray = jEdit.getPluginJARs();\n\t\tfor(int i = 0; i < pluginArray.length; i++)\n\t\t{\n\t\t\tPluginJAR jar = pluginArray[i];\n\t\t\tEditPlugin plugin = jar.getPlugin();\n\t\t\tif(plugin == null)\n\t\t\t\tcontinue;\n\n\t\t\tJMenuItem menuItem = plugin.createMenuItems();\n\t\t\tif(menuItem != null)\n\t\t\t{\n\t\t\t\taddToLetterMap(letters,menuItem);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t//{{{ old API\n\t\t\telse if(jEdit.getProperty(\"plugin.\"\n\t\t\t\t+ plugin.getClassName()\n\t\t\t\t+ \".activate\") == null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tpluginMenuItems.clear();\n\t\t\t\t\tplugin.createMenuItems(pluginMenuItems);\n\n\t\t\t\t\tIterator<JMenuItem> iter\n\t\t\t\t\t\t= pluginMenuItems.iterator();\n\t\t\t\t\twhile(iter.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\taddToLetterMap(letters,\n\t\t\t\t\t\t\titer.next());\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(Throwable t)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,\n\t\t\t\t\t\t\"Error creating menu items\"\n\t\t\t\t\t\t+ \" for plugin\");\n\t\t\t\t\tLog.log(Log.ERROR,this,t);\n\t\t\t\t}\n\t\t\t} //}}}\n\t\t}\n\n\t\tif(count == 0)\n\t\t{\n\t\t\tJMenuItem menuItem = new JMenuItem(\n\t\t\t\tjEdit.getProperty(\"no-plugins.label\"));\n\t\t\tmenuItem.setEnabled(false);\n\t\t\tmenu.add(menuItem);\n\t\t\treturn;\n\t\t}\n\n\t\t// Sort each letter\n\t\tfor(int i = 0; i < letters.length; i++)\n\t\t{\n\t\t\tCollections.sort(letters[i],new MenuItemTextComparator());\n\t\t}\n\n\t\tint maxItems = jEdit.getIntegerProperty(\"menu.spillover\",20);\n\n\t\t// if less than 20 items, put them directly in the menu\n\t\tif(count <= maxItems)\n\t\t{\n\t\t\tfor(int i = 0; i < letters.length; i++)\n\t\t\t{\n\t\t\t\tIterator<JMenuItem> iter\n\t\t\t\t\t= letters[i].iterator();\n\t\t\t\twhile(iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tmenu.add(iter.next());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Collect blocks of up to maxItems of consecutive letters\n\t\tcount = 0;\n\t\tchar first = 'A';\n\t\tJMenu submenu = new JMenu();\n\t\tmenu.add(submenu);\n\n\t\tfor(int i = 0; i < letters.length; i++)\n\t\t{\n\t\t\tList<JMenuItem> letter = letters[i];\n\n\t\t\tif(count + letter.size() > maxItems && count != 0)\n\t\t\t{\n\t\t\t\tchar last = (char)(i + 'A' - 1);\n\t\t\t\tif(last == first)\n\t\t\t\t\tsubmenu.setText(String.valueOf(first));\n\t\t\t\telse\n\t\t\t\t\tsubmenu.setText(first + \" - \" + last);\n\t\t\t\tfirst = (char)(i + 'A');\n\t\t\t\tcount = 0;\n\t\t\t\tsubmenu = null;\n\t\t\t}\n\n\t\t\tIterator<JMenuItem> iter = letter.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tif(submenu == null)\n\t\t\t\t{\n\t\t\t\t\tsubmenu = new JMenu();\n\t\t\t\t\tmenu.add(submenu);\n\t\t\t\t}\n\t\t\t\tsubmenu.add(iter.next());\n\t\t\t}\n\n\t\t\tcount += letter.size();\n\t\t}\n\n\t\tif(submenu != null)\n\t\t{\n\t\t\tchar last = 'Z';\n\t\t\tif(last == first)\n\t\t\t\tsubmenu.setText(String.valueOf(first));\n\t\t\telse\n\t\t\t\tsubmenu.setText(first + \" - \" + last);\n\t\t}\n\t} //}}}\n\n\t//{{{ addToLetterMap() method\n\tprivate void addToLetterMap(List<JMenuItem>[] letters, JMenuItem item)\n\t{\n\t\tchar ch = item.getText().charAt(0);\n\t\tch = Character.toUpperCase(ch);\n\t\tif(ch < 'A' || ch > 'Z')\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Plugin menu item label must \"\n\t\t\t\t+ \"begin with A - Z, or a - z: \"\n\t\t\t\t+ item.getText());\n\t\t}\n\t\telse\n\t\t\tletters[ch - 'A'].add(item);", "functions": [{"function_name": "updateEveryTime", "code": "\tpublic boolean updateEveryTime()\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "update", "code": "\tpublic void update(JMenu menu)\n\t{\n\t\t// We build a set of lists, each list contains plugin menu\n\t\t// items that begin with a given letter.\n\t\tint count = 0;\n\n\t\tList<JMenuItem>[] letters = (List<JMenuItem>[])new List[26];\n\t\tfor(int i = 0; i < letters.length; i++)\n\t\t{\n\t\t\tletters[i] = new ArrayList<JMenuItem>();\n\t\t}\n\n\t\tVector<JMenuItem> pluginMenuItems = new Vector<JMenuItem>();\n\n\t\tPluginJAR[] pluginArray = jEdit.getPluginJARs();\n\t\tfor(int i = 0; i < pluginArray.length; i++)\n\t\t{\n\t\t\tPluginJAR jar = pluginArray[i];\n\t\t\tEditPlugin plugin = jar.getPlugin();\n\t\t\tif(plugin == null)\n\t\t\t\tcontinue;\n\n\t\t\tJMenuItem menuItem = plugin.createMenuItems();\n\t\t\tif(menuItem != null)\n\t\t\t{\n\t\t\t\taddToLetterMap(letters,menuItem);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t//{{{ old API\n\t\t\telse if(jEdit.getProperty(\"plugin.\"\n\t\t\t\t+ plugin.getClassName()\n\t\t\t\t+ \".activate\") == null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tpluginMenuItems.clear();\n\t\t\t\t\tplugin.createMenuItems(pluginMenuItems);\n\n\t\t\t\t\tIterator<JMenuItem> iter\n\t\t\t\t\t\t= pluginMenuItems.iterator();\n\t\t\t\t\twhile(iter.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\taddToLetterMap(letters,\n\t\t\t\t\t\t\titer.next());\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(Throwable t)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,\n\t\t\t\t\t\t\"Error creating menu items\"\n\t\t\t\t\t\t+ \" for plugin\");\n\t\t\t\t\tLog.log(Log.ERROR,this,t);\n\t\t\t\t}\n\t\t\t} //}}}\n\t\t}\n\n\t\tif(count == 0)\n\t\t{\n\t\t\tJMenuItem menuItem = new JMenuItem(\n\t\t\t\tjEdit.getProperty(\"no-plugins.label\"));\n\t\t\tmenuItem.setEnabled(false);\n\t\t\tmenu.add(menuItem);\n\t\t\treturn;\n\t\t}\n\n\t\t// Sort each letter\n\t\tfor(int i = 0; i < letters.length; i++)\n\t\t{\n\t\t\tCollections.sort(letters[i],new MenuItemTextComparator());\n\t\t}\n\n\t\tint maxItems = jEdit.getIntegerProperty(\"menu.spillover\",20);\n\n\t\t// if less than 20 items, put them directly in the menu\n\t\tif(count <= maxItems)\n\t\t{\n\t\t\tfor(int i = 0; i < letters.length; i++)\n\t\t\t{\n\t\t\t\tIterator<JMenuItem> iter\n\t\t\t\t\t= letters[i].iterator();\n\t\t\t\twhile(iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tmenu.add(iter.next());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Collect blocks of up to maxItems of consecutive letters\n\t\tcount = 0;\n\t\tchar first = 'A';\n\t\tJMenu submenu = new JMenu();\n\t\tmenu.add(submenu);\n\n\t\tfor(int i = 0; i < letters.length; i++)\n\t\t{\n\t\t\tList<JMenuItem> letter = letters[i];\n\n\t\t\tif(count + letter.size() > maxItems && count != 0)\n\t\t\t{\n\t\t\t\tchar last = (char)(i + 'A' - 1);\n\t\t\t\tif(last == first)\n\t\t\t\t\tsubmenu.setText(String.valueOf(first));\n\t\t\t\telse\n\t\t\t\t\tsubmenu.setText(first + \" - \" + last);\n\t\t\t\tfirst = (char)(i + 'A');\n\t\t\t\tcount = 0;\n\t\t\t\tsubmenu = null;\n\t\t\t}\n\n\t\t\tIterator<JMenuItem> iter = letter.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tif(submenu == null)\n\t\t\t\t{\n\t\t\t\t\tsubmenu = new JMenu();\n\t\t\t\t\tmenu.add(submenu);\n\t\t\t\t}\n\t\t\t\tsubmenu.add(iter.next());\n\t\t\t}\n\n\t\t\tcount += letter.size();\n\t\t}\n\n\t\tif(submenu != null)\n\t\t{\n\t\t\tchar last = 'Z';\n\t\t\tif(last == first)\n\t\t\t\tsubmenu.setText(String.valueOf(first));\n\t\t\telse\n\t\t\t\tsubmenu.setText(first + \" - \" + last);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LOOP", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CATCH", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [0, 18], [0, 19], [5, 20], [7, 21], [8, 22], [9, 23], [12, 24], [1, 25], [1, 26], [16, 27], [2, 28], [2, 29], [2, 30], [2, 31], [3, 32], [4, 33], [19, 34], [5, 35], [5, 36], [6, 37], [8, 38], [8, 39], [22, 40], [9, 41], [9, 42], [9, 43], [9, 44], [9, 45], [10, 46], [11, 47], [14, 48], [25, 49], [2, 50], [28, 51], [30, 52], [2, 53], [36, 54], [37, 55], [37, 56], [7, 57], [7, 58], [8, 59], [8, 60], [41, 61], [41, 62], [43, 63], [43, 64], [9, 65], [12, 66], [12, 67], [25, 68], [25, 69], [26, 70], [50, 71], [28, 72], [29, 73], [30, 74], [30, 75], [52, 76], [52, 77], [36, 78], [36, 79], [57, 80], [60, 81], [39, 82], [61, 83], [62, 84], [42, 85], [64, 86], [44, 87], [66, 88], [13, 89], [68, 90], [69, 91], [28, 92], [72, 93], [30, 94], [30, 95], [30, 96], [74, 97], [76, 98], [77, 99], [78, 100], [36, 101], [82, 102], [61, 103], [83, 104], [83, 105], [41, 106], [90, 107], [92, 108], [93, 109], [94, 110], [95, 111], [74, 112], [74, 113], [99, 114], [102, 115], [103, 116], [103, 117], [103, 118], [105, 119], [107, 120], [72, 121], [72, 122], [96, 123], [112, 124], [113, 125], [75, 126], [78, 127], [79, 128], [117, 129], [103, 130], [103, 131], [119, 132], [119, 133], [122, 134], [123, 135], [124, 136], [126, 137], [126, 138], [127, 139], [116, 140], [116, 141], [118, 142], [133, 143], [133, 144], [136, 145], [138, 146], [141, 147], [117, 148], [147, 149], [147, 150], [148, 151], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 0], [19, 0], [20, 5], [21, 7], [22, 8], [23, 9], [24, 12], [25, 1], [26, 1], [27, 16], [28, 2], [29, 2], [30, 2], [31, 2], [32, 3], [33, 4], [34, 19], [35, 5], [36, 5], [37, 6], [38, 8], [39, 8], [40, 22], [41, 9], [42, 9], [43, 9], [44, 9], [45, 9], [46, 10], [47, 11], [48, 14], [49, 25], [50, 2], [51, 28], [52, 30], [53, 2], [54, 36], [55, 37], [56, 37], [57, 7], [58, 7], [59, 8], [60, 8], [61, 41], [62, 41], [63, 43], [64, 43], [65, 9], [66, 12], [67, 12], [68, 25], [69, 25], [70, 26], [71, 50], [72, 28], [73, 29], [74, 30], [75, 30], [76, 52], [77, 52], [78, 36], [79, 36], [80, 57], [81, 60], [82, 39], [83, 61], [84, 62], [85, 42], [86, 64], [87, 44], [88, 66], [89, 13], [90, 68], [91, 69], [92, 28], [93, 72], [94, 30], [95, 30], [96, 30], [97, 74], [98, 76], [99, 77], [100, 78], [101, 36], [102, 82], [103, 61], [104, 83], [105, 83], [106, 41], [107, 90], [108, 92], [109, 93], [110, 94], [111, 95], [112, 74], [113, 74], [114, 99], [115, 102], [116, 103], [117, 103], [118, 103], [119, 105], [120, 107], [121, 72], [122, 72], [123, 96], [124, 112], [125, 113], [126, 75], [127, 78], [128, 79], [129, 117], [130, 103], [131, 103], [132, 119], [133, 119], [134, 122], [135, 123], [136, 124], [137, 126], [138, 126], [139, 127], [140, 116], [141, 116], [142, 118], [143, 133], [144, 133], [145, 136], [146, 138], [147, 141], [148, 117], [149, 147], [150, 147], [151, 148], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151]]}, {"function_name": "addToLetterMap", "code": "\tprivate void addToLetterMap(List<JMenuItem>[] letters, JMenuItem item)\n\t{\n\t\tchar ch = item.getText().charAt(0);\n\t\tch = Character.toUpperCase(ch);\n\t\tif(ch < 'A' || ch > 'Z')\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Plugin menu item label must \"\n\t\t\t\t+ \"begin with A - Z, or a - z: \"\n\t\t\t\t+ item.getText());\n\t\t}\n\t\telse\n\t\t\tletters[ch - 'A'].add(item);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [5, 8], [6, 9], [2, 10], [1, 11], [1, 12], [7, 13], [8, 14], [10, 15], [1, 16], [12, 17], [15, 18], [16, 19], [17, 20], [17, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [8, 5], [9, 6], [10, 2], [11, 1], [12, 1], [13, 7], [14, 8], [15, 10], [16, 1], [17, 12], [18, 15], [19, 16], [20, 17], [21, 17], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}], "label": 0}
{"sample_id": "camel-1.2-1852", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/ProceedType.java", "language": "java", "name": "org.apache.camel.model.ProceedType", "code": "@XmlRootElement(name = \"proceed\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class ProceedType extends ProcessorType {\n\n    public List<ProcessorType> getOutputs() {\n        return Collections.EMPTY_LIST;\n    }\n\n    public List<InterceptorType> getInterceptors() {\n        return Collections.EMPTY_LIST;\n    }\n\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        return routeContext.createProceedProcessor();", "functions": [{"function_name": "getOutputs", "code": "    public List<ProcessorType> getOutputs() {\n        return Collections.EMPTY_LIST;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInterceptors", "code": "    public List<InterceptorType> getInterceptors() {\n        return Collections.EMPTY_LIST;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createProcessor", "code": "    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        return routeContext.createProceedProcessor();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "camel-1.2-1669", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/view/XmlGraphGenerator.java", "language": "java", "name": "org.apache.camel.view.XmlGraphGenerator", "code": "public class XmlGraphGenerator extends GraphGeneratorSupport {\n    private boolean addUrl = true;\n\n    public XmlGraphGenerator(String dir) {\n        super(dir, \".xml\");\n    }\n\n    protected void generateFile(PrintWriter writer, Map<String, List<RouteType>> map) {\n        writer.println(\"<?xml version='1.0' encoding='UTF-8'?>\");\n        writer.println(\"<Graph>\");\n        writer.println();\n\n        if (map.size() > 0) {\n            writer.println(\"<Node id='root' name='Camel Routes' description='Collection of Camel Routes' nodeType='root'/>\");\n        }\n        printRoutes(writer, map);\n\n        writer.println();\n        writer.println(\"</Graph>\");\n    }\n\n    protected void printRoutes(PrintWriter writer, Map<String, List<RouteType>> map) {\n        Set<Map.Entry<String, List<RouteType>>> entries = map.entrySet();\n        for (Map.Entry<String, List<RouteType>> entry : entries) {\n            String group = entry.getKey();\n            printRoutes(writer, group, entry.getValue());\n        }\n    }\n\n    protected void printRoutes(PrintWriter writer, String group, List<RouteType> routes) {\n        group = encode(group);\n        if (group != null) {\n            int idx = group.lastIndexOf('.');\n            String name =group;\n            if (idx > 0 && idx < group.length() -1 ) {\n                name = group.substring(idx + 1);\n            }\n            writer.println(\"<Node id='\" + group + \"' name='\" + name + \"' description='\" + group + \"' nodeType='group'/>\");\n            writer.println(\"<Edge fromID='root' toID='\" + group + \"'/>\");\n        }\n        for (RouteType route : routes) {\n            List<FromType> inputs = route.getInputs();\n            boolean first = true;\n            for (FromType input : inputs) {\n                NodeData nodeData = getNodeData(input);\n                if (first) {\n                    first = false;\n                    if (group != null) {\n                        writer.println(\"<Edge fromID='\" + group + \"' toID='\" + encode(nodeData.id) + \"'/>\");\n                    }\n                }\n                printRoute(writer, route, nodeData);\n            }\n            writer.println();\n        }\n    }\n\n    protected void printRoute(PrintWriter writer, final RouteType route, NodeData nodeData) {\n        printNode(writer, nodeData);\n\n\n        List<ProcessorType> outputs = route.getOutputs();\n        NodeData from = nodeData;\n        for (ProcessorType output : outputs) {\n            NodeData newData = printNode(writer, from, output);\n            from = newData;\n        }\n    }\n\n    protected NodeData printNode(PrintWriter writer, NodeData fromData, ProcessorType node) {\n        if (node instanceof MulticastType) {\n            List<ProcessorType> outputs = node.getOutputs();\n            for (ProcessorType output : outputs) {\n                printNode(writer, fromData, output);\n            }\n            return fromData;\n        }\n        NodeData toData = getNodeData(node);\n\n        printNode(writer, toData);\n\n        if (fromData != null) {\n            writer.print(\"<Edge fromID=\\\"\");\n            writer.print(encode(fromData.id));\n            writer.print(\"\\\" toID=\\\"\");\n            writer.print(encode(toData.id));\n            String association = toData.edgeLabel;\n            if (isNullOrBlank(association)) {\n                writer.print(\"\\\" association=\\\"\");\n                writer.print(encode(association));\n            }\n            writer.println(\"\\\"/>\");\n        }\n\n        List<ProcessorType> outputs = toData.outputs;\n        if (outputs != null) {\n            for (ProcessorType output : outputs) {\n                NodeData newData = printNode(writer, toData, output);\n                if (!isMulticastNode(node)) {\n                    toData = newData;\n                }\n            }\n        }\n        return toData;\n    }\n\n    protected void printNode(PrintWriter writer, NodeData data) {\n        if (!data.nodeWritten) {\n            data.nodeWritten = true;\n\n            writer.println();\n            writer.print(\"<Node id=\\\"\");\n            writer.print(encode(data.id));\n            writer.print(\"\\\" name=\\\"\");\n            String name = data.label;\n            if (isNullOrBlank(name)) {\n                name = data.tooltop;\n            }\n            writer.print(encode(name));\n            writer.print(\"\\\" nodeType=\\\"\");\n            String nodeType = data.image;\n            if (isNullOrBlank(nodeType)) {\n                nodeType = data.shape;\n                if (isNullOrBlank(nodeType)) {\n                    nodeType = \"node\";\n                }\n            }\n            writer.print(encode(nodeType));\n            writer.print(\"\\\" description=\\\"\");\n            writer.print(encode(data.tooltop));\n            if (addUrl) {\n                writer.print(\"\\\" url=\\\"\");\n                writer.print(encode(data.url));\n            }\n            writer.println(\"\\\"/>\");\n        }\n    }\n\n    protected String encode(String text) {\n        if (text == null) {\n            return \"\";\n        }\n        return text.replaceAll(\"\\\"\", \"&quot;\").replaceAll(\"<\", \"&lt;\").\n                replaceAll(\">\", \"&gt;\").replaceAll(\"&\", \"&amp;\");", "functions": [{"function_name": "generateFile", "code": "    protected void generateFile(PrintWriter writer, Map<String, List<RouteType>> map) {\n        writer.println(\"<?xml version='1.0' encoding='UTF-8'?>\");\n        writer.println(\"<Graph>\");\n        writer.println();\n\n        if (map.size() > 0) {\n            writer.println(\"<Node id='root' name='Camel Routes' description='Collection of Camel Routes' nodeType='root'/>\");\n        }\n        printRoutes(writer, map);\n\n        writer.println();\n        writer.println(\"</Graph>\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [4, 11], [7, 12], [7, 13], [9, 14], [10, 15], [1, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 4], [12, 7], [13, 7], [14, 9], [15, 10], [16, 1], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "printRoutes", "code": "    protected void printRoutes(PrintWriter writer, Map<String, List<RouteType>> map) {\n        Set<Map.Entry<String, List<RouteType>>> entries = map.entrySet();\n        for (Map.Entry<String, List<RouteType>> entry : entries) {\n            String group = entry.getKey();\n            printRoutes(writer, group, entry.getValue());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [7, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 7], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "printRoutes", "code": "    protected void printRoutes(PrintWriter writer, String group, List<RouteType> routes) {\n        group = encode(group);\n        if (group != null) {\n            int idx = group.lastIndexOf('.');\n            String name =group;\n            if (idx > 0 && idx < group.length() -1 ) {\n                name = group.substring(idx + 1);\n            }\n            writer.println(\"<Node id='\" + group + \"' name='\" + name + \"' description='\" + group + \"' nodeType='group'/>\");\n            writer.println(\"<Edge fromID='root' toID='\" + group + \"'/>\");\n        }\n        for (RouteType route : routes) {\n            List<FromType> inputs = route.getInputs();\n            boolean first = true;\n            for (FromType input : inputs) {\n                NodeData nodeData = getNodeData(input);\n                if (first) {\n                    first = false;\n                    if (group != null) {\n                        writer.println(\"<Edge fromID='\" + group + \"' toID='\" + encode(nodeData.id) + \"'/>\");\n                    }\n                }\n                printRoute(writer, route, nodeData);\n            }\n            writer.println();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [2, 12], [2, 13], [6, 14], [7, 15], [1, 16], [2, 17], [2, 18], [11, 19], [8, 20], [8, 21], [9, 22], [10, 23], [17, 24], [18, 25], [19, 26], [19, 27], [13, 28], [8, 29], [24, 30], [24, 31], [25, 32], [25, 33], [11, 34], [26, 35], [27, 36], [28, 37], [20, 38], [21, 39], [31, 40], [33, 41], [34, 42], [35, 43], [35, 44], [38, 45], [20, 46], [41, 47], [41, 48], [42, 49], [45, 50], [46, 51], [48, 52], [49, 53], [38, 54], [52, 55], [52, 56], [54, 57], [56, 58], [57, 59], [57, 60], [60, 61], [60, 62], [62, 63], [62, 64], [64, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 2], [13, 2], [14, 6], [15, 7], [16, 1], [17, 2], [18, 2], [19, 11], [20, 8], [21, 8], [22, 9], [23, 10], [24, 17], [25, 18], [26, 19], [27, 19], [28, 13], [29, 8], [30, 24], [31, 24], [32, 25], [33, 25], [34, 11], [35, 26], [36, 27], [37, 28], [38, 20], [39, 21], [40, 31], [41, 33], [42, 34], [43, 35], [44, 35], [45, 38], [46, 20], [47, 41], [48, 41], [49, 42], [50, 45], [51, 46], [52, 48], [53, 49], [54, 38], [55, 52], [56, 52], [57, 54], [58, 56], [59, 57], [60, 57], [61, 60], [62, 60], [63, 62], [64, 62], [65, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "printRoute", "code": "    protected void printRoute(PrintWriter writer, final RouteType route, NodeData nodeData) {\n        printNode(writer, nodeData);\n\n\n        List<ProcessorType> outputs = route.getOutputs();\n        NodeData from = nodeData;\n        for (ProcessorType output : outputs) {\n            NodeData newData = printNode(writer, from, output);\n            from = newData;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [1, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 1], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "printNode", "code": "    protected NodeData printNode(PrintWriter writer, NodeData fromData, ProcessorType node) {\n        if (node instanceof MulticastType) {\n            List<ProcessorType> outputs = node.getOutputs();\n            for (ProcessorType output : outputs) {\n                printNode(writer, fromData, output);\n            }\n            return fromData;\n        }\n        NodeData toData = getNodeData(node);\n\n        printNode(writer, toData);\n\n        if (fromData != null) {\n            writer.print(\"<Edge fromID=\\\"\");\n            writer.print(encode(fromData.id));\n            writer.print(\"\\\" toID=\\\"\");\n            writer.print(encode(toData.id));\n            String association = toData.edgeLabel;\n            if (isNullOrBlank(association)) {\n                writer.print(\"\\\" association=\\\"\");\n                writer.print(encode(association));\n            }\n            writer.println(\"\\\"/>\");\n        }\n\n        List<ProcessorType> outputs = toData.outputs;\n        if (outputs != null) {\n            for (ProcessorType output : outputs) {\n                NodeData newData = printNode(writer, toData, output);\n                if (!isMulticastNode(node)) {\n                    toData = newData;\n                }\n            }\n        }\n        return toData;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [4, 11], [0, 12], [6, 13], [2, 14], [10, 15], [4, 16], [4, 17], [11, 18], [5, 19], [6, 20], [6, 21], [6, 22], [4, 23], [16, 24], [4, 25], [4, 26], [4, 27], [4, 28], [14, 29], [14, 30], [23, 31], [25, 32], [26, 33], [27, 34], [28, 35], [22, 36], [29, 37], [16, 38], [16, 39], [21, 40], [30, 41], [38, 42], [39, 43], [29, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 4], [12, 0], [13, 6], [14, 2], [15, 10], [16, 4], [17, 4], [18, 11], [19, 5], [20, 6], [21, 6], [22, 6], [23, 4], [24, 16], [25, 4], [26, 4], [27, 4], [28, 4], [29, 14], [30, 14], [31, 23], [32, 25], [33, 26], [34, 27], [35, 28], [36, 22], [37, 29], [38, 16], [39, 16], [40, 21], [41, 30], [42, 38], [43, 39], [44, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "printNode", "code": "    protected void printNode(PrintWriter writer, NodeData data) {\n        if (!data.nodeWritten) {\n            data.nodeWritten = true;\n\n            writer.println();\n            writer.print(\"<Node id=\\\"\");\n            writer.print(encode(data.id));\n            writer.print(\"\\\" name=\\\"\");\n            String name = data.label;\n            if (isNullOrBlank(name)) {\n                name = data.tooltop;\n            }\n            writer.print(encode(name));\n            writer.print(\"\\\" nodeType=\\\"\");\n            String nodeType = data.image;\n            if (isNullOrBlank(nodeType)) {\n                nodeType = data.shape;\n                if (isNullOrBlank(nodeType)) {\n                    nodeType = \"node\";\n                }\n            }\n            writer.print(encode(nodeType));\n            writer.print(\"\\\" description=\\\"\");\n            writer.print(encode(data.tooltop));\n            if (addUrl) {\n                writer.print(\"\\\" url=\\\"\");\n                writer.print(encode(data.url));\n            }\n            writer.println(\"\\\"/>\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [1, 14], [1, 15], [7, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [9, 22], [10, 23], [11, 24], [12, 25], [5, 26], [14, 27], [15, 28], [17, 29], [18, 30], [19, 31], [21, 32], [4, 33], [4, 34], [26, 35], [5, 36], [7, 37], [33, 38], [34, 39], [26, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 1], [15, 1], [16, 7], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 9], [23, 10], [24, 11], [25, 12], [26, 5], [27, 14], [28, 15], [29, 17], [30, 18], [31, 19], [32, 21], [33, 4], [34, 4], [35, 26], [36, 5], [37, 7], [38, 33], [39, 34], [40, 26], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "encode", "code": "    protected String encode(String text) {\n        if (text == null) {\n            return \"\";\n        }\n        return text.replaceAll(\"\\\"\", \"&quot;\").replaceAll(\"<\", \"&lt;\").\n                replaceAll(\">\", \"&gt;\").replaceAll(\"&\", \"&amp;\");", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [2, 11], [5, 12], [8, 13], [8, 14], [9, 15], [9, 16], [10, 17], [10, 18], [11, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 2], [12, 5], [13, 8], [14, 8], [15, 9], [16, 9], [17, 10], [18, 10], [19, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "XmlGraphGenerator", "code": "    public XmlGraphGenerator(String dir) {\n        super(dir, \".xml\");", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-3.2-3696", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/io/BufferIORequest.java", "language": "java", "name": "org.gjt.sp.jedit.io.BufferIORequest", "code": "public class BufferIORequest extends WorkRequest\n{\n\t/**\n\t * Size of I/O buffers.\n\t */\n\tpublic static final int IOBUFSIZE = 32768;\n\n\t/**\n\t * Number of lines per progress increment.\n\t */\n\tpublic static final int PROGRESS_INTERVAL = 300;\n\n\t/**\n\t * Property loaded data is stored in.\n\t */\n\tpublic static final String LOAD_DATA = \"IORequest__loadData\";\n\n\t/**\n\t * A file load request.\n\t */\n\tpublic static final int LOAD = 0;\n\n\t/**\n\t * A file save request.\n\t */\n\tpublic static final int SAVE = 1;\n\n\t/**\n\t * An autosave request. Only supported for local files.\n\t */\n\tpublic static final int AUTOSAVE = 2;\n\n\t/**\n\t * An insert file request.\n\t */\n\tpublic static final int INSERT = 3;\n\n\t/**\n\t * Creates a new buffer I/O request.\n\t * @param type The request type\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @param session The VFS session\n\t * @param vfs The VFS\n\t * @param path The path\n\t */\n\tpublic BufferIORequest(int type, View view, Buffer buffer,\n\t\tObject session, VFS vfs, String path)\n\t{\n\t\tthis.type = type;\n\t\tthis.view = view;\n\t\tthis.buffer = buffer;\n\t\tthis.session = session;\n\t\tthis.vfs = vfs;\n\t\tthis.path = path;\n\n\t\tmarkersPath = vfs.getParentOfPath(path)\n\t\t\t+ '.' + vfs.getFileName(path)\n\t\t\t+ \".marks\";\n\t}\n\n\tpublic void run()\n\t{\n\t\tswitch(type)\n\t\t{\n\t\tcase LOAD:\n\t\t\tload();\n\t\t\tbreak;\n\t\tcase SAVE:\n\t\t\tsave();\n\t\t\tbreak;\n\t\tcase AUTOSAVE:\n\t\t\tautosave();\n\t\t\tbreak;\n\t\tcase INSERT:\n\t\t\tinsert();\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tpublic String toString()\n\t{\n\t\tString typeString;\n\t\tswitch(type)\n\t\t{\n\t\tcase LOAD:\n\t\t\ttypeString = \"LOAD\";\n\t\t\tbreak;\n\t\tcase SAVE:\n\t\t\ttypeString = \"SAVE\";\n\t\t\tbreak;\n\t\tcase AUTOSAVE:\n\t\t\ttypeString = \"AUTOSAVE\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttypeString = \"UNKNOWN!!!\";\n\t\t}\n\n\t\treturn getClass().getName() + \"[type=\" + typeString\n\t\t\t+ \",buffer=\" + buffer + \"]\";\n\t}\n\n\t// private members\n\tprivate int type;\n\tprivate View view;\n\tprivate Buffer buffer;\n\tprivate Object session;\n\tprivate VFS vfs;\n\tprivate String path;\n\tprivate String markersPath;\n\n\tprivate void load()\n\t{\n\t\tInputStream in = null;\n\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString[] args = { vfs.getFileName(path) };\n\t\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.load\",args));\n\t\t\t\tsetAbortable(true);\n\t\t\t\tsetProgressValue(0);\n\n\t\t\t\tVFS.DirectoryEntry entry = vfs._getDirectoryEntry(\n\t\t\t\t\tsession,path,view);\n\t\t\t\tlong length;\n\t\t\t\tif(entry != null)\n\t\t\t\t\tlength = entry.length;\n\t\t\t\telse\n\t\t\t\t\tlength = 0L;\n\n\t\t\t\tin = vfs._createInputStream(session,path,false,view);\n\t\t\t\tif(in == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tif(path.endsWith(\".gz\"))\n\t\t\t\t\tin = new GZIPInputStream(in);\n\n\t\t\t\tString lineSeparator = read(buffer,in,length);\n\t\t\t\tbuffer.putProperty(Buffer.LINESEP,lineSeparator);\n\t\t\t\tbuffer.setNewFile(false);\n\t\t\t}\n\t\t\tcatch(CharConversionException ch)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,ch);\n\t\t\t\tObject[] pp = { path,\n\t\t\t\t\tbuffer.getProperty(Buffer.ENCODING),\n\t\t\t\t\tch.toString() };\n\t\t\t\tVFSManager.error(view,\"encoding-error\",pp);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tObject[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"read-error\",pp);\n\t\t\t}\n\n\t\t\tif(jEdit.getBooleanProperty(\"persistentMarkers\"))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString[] args = { vfs.getFileName(path) };\n\t\t\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.load-markers\",args));\n\t\t\t\t\tsetAbortable(true);\n\n\t\t\t\t\tin = vfs._createInputStream(session,markersPath,true,view);\n\t\t\t\t\tif(in != null)\n\t\t\t\t\t\treadMarkers(buffer,in);\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t\tif(in != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,view);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"read-error\",pp);\n\t\t\t}\n\t\t\tcatch(WorkThread.Abort a)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Reads the buffer from the specified input stream. Read and\n\t * understand all these notes if you want to snarf this code for\n\t * your own app; it has a number of subtle behaviours which are\n\t * not entirely obvious.<p>\n\t *\n\t * Some notes that will help future hackers:\n\t * <ul>\n\t * <li>\n\t * We use a StringBuffer because there is no way to pre-allocate\n\t * in the GapContent - and adding text each time to the GapContent\n\t * would be slow because it would require array enlarging, etc.\n\t * Better to do as few gap inserts as possible.\n\t *\n\t * <li>The StringBuffer is pre-allocated to the file's size (obtained\n\t * from the VFS). If the file size is not known, we default to\n\t * IOBUFSIZE.\n\t *\n\t * <li>We read the stream in IOBUFSIZE (= 32k) blocks, and loop over\n\t * the read characters looking for line breaks.\n\t * <ul>\n\t * <li>a \\r or \\n causes a line to be added to the model, and appended\n\t * to the string buffer\n\t * <li>a \\n immediately following an \\r is ignored; so that Windows\n\t * line endings are handled\n\t * </ul>\n\t *\n\t * <li>This method remembers the line separator used in the file, and\n\t * stores it in the lineSeparator buffer-local property. However,\n\t * if the file contains, say, hello\\rworld\\n, lineSeparator will\n\t * be set to \\n, and the file will be saved as hello\\nworld\\n.\n\t * Hence jEdit is not really appropriate for editing binary files.\n\t *\n\t * <li>To make reloading a bit easier, this method automatically\n\t * removes all data from the model before inserting it. This\n\t * shouldn't cause any problems, as most documents will be\n\t * empty before being loaded into anyway.\n\t *\n\t * <li>If the last character read from the file is a line separator,\n\t * it is not added to the model! There are two reasons:\n\t * <ul>\n\t * <li>On Unix, all text files have a line separator at the end,\n\t * there is no point wasting an empty screen line on that\n\t * <li>Because save() appends a line separator after *every* line,\n\t * it prevents the blank line count at the end from growing\n\t * </ul>\n\t * \n\t * </ul>\n\t */\n\tprivate String read(Buffer buffer, InputStream _in, long length)\n\t\tthrows IOException\n\t{\n\t\t// only true if the file size is known\n\t\tboolean trackProgress = (length != 0);\n\t\tFile file = buffer.getFile();\n\n\t\tsetProgressValue(0);\n\t\tsetProgressMaximum((int)length);\n\n\t\t// if the file size is not known, start with a resonable\n\t\t// default buffer size\n\t\tif(length == 0)\n\t\t\tlength = IOBUFSIZE;\n\n\t\tStringBuffer sbuf = new StringBuffer((int)length);\n\n\t\tInputStreamReader in = new InputStreamReader(_in,\n\t\t\t(String)buffer.getProperty(Buffer.ENCODING));\n\t\tchar[] buf = new char[IOBUFSIZE];\n\t\t// Number of characters in 'buf' array.\n\t\t// InputStream.read() doesn't always fill the\n\t\t// array (eg, the file size is not a multiple of\n\t\t// IOBUFSIZE, or it is a GZipped file, etc)\n\t\tint len;\n\n\t\t// True if a \\n was read after a \\r. Usually\n\t\t// means this is a DOS/Windows file\n\t\tboolean CRLF = false;\n\n\t\t// A \\r was read, hence a MacOS file\n\t\tboolean CROnly = false;\n\n\t\t// Was the previous read character a \\r?\n\t\t// If we read a \\n and this is true, we assume\n\t\t// we have a DOS/Windows file\n\t\tboolean lastWasCR = false;\n\n\t\t// Number of lines read. Every 100 lines, we update the\n\t\t// progress bar\n\t\tint lineCount = 0;\n\n\t\twhile((len = in.read(buf,0,buf.length)) != -1)\n\t\t{\n\t\t\t// Offset of previous line, relative to\n\t\t\t// the start of the I/O buffer (NOT\n\t\t\t// relative to the start of the document)\n\t\t\tint lastLine = 0;\n\n\t\t\tfor(int i = 0; i < len; i++)\n\t\t\t{\n\t\t\t\t// Look for line endings.\n\t\t\t\tswitch(buf[i])\n\t\t\t\t{\n\t\t\t\tcase '\\r':\n\t\t\t\t\t// If we read a \\r and\n\t\t\t\t\t// lastWasCR is also true,\n\t\t\t\t\t// it is probably a Mac file\n\t\t\t\t\t// (\\r\\r in stream)\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = true;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise set a flag,\n\t\t\t\t\t// so that \\n knows that last\n\t\t\t\t\t// was a \\r\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlastWasCR = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Insert a line\n\t\t\t\t\tsbuf.append(buf,lastLine,i -\n\t\t\t\t\t\tlastLine);\n\t\t\t\t\tsbuf.append('\\n');\n\t\t\t\t\tif(trackProgress && lineCount++ % PROGRESS_INTERVAL == 0)\n\t\t\t\t\t\tsetProgressValue(sbuf.length());\n\n\t\t\t\t\t// This is i+1 to take the\n\t\t\t\t\t// trailing \\n into account\n\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\n':\n\t\t\t\t\t// If lastWasCR is true,\n\t\t\t\t\t// we just read a \\r followed\n\t\t\t\t\t// by a \\n. We specify that\n\t\t\t\t\t// this is a Windows file,\n\t\t\t\t\t// but take no further\n\t\t\t\t\t// action and just ignore\n\t\t\t\t\t// the \\r.\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = false;\n\t\t\t\t\t\tCRLF = true;\n\t\t\t\t\t\tlastWasCR = false;\n\t\t\t\t\t\t// Bump lastLine so\n\t\t\t\t\t\t// that the next line\n\t\t\t\t\t\t// doesn't erronously\n\t\t\t\t\t\t// pick up the \\r\n\t\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise, we found a \\n\n\t\t\t\t\t// that follows some other\n\t\t\t\t\t// character, hence we have\n\t\t\t\t\t// a Unix file\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = false;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t\tsbuf.append(buf,lastLine,\n\t\t\t\t\t\t\ti - lastLine);\n\t\t\t\t\t\tsbuf.append('\\n');\n\t\t\t\t\t\tif(trackProgress && lineCount++ % PROGRESS_INTERVAL == 0)\n\t\t\t\t\t\t\tsetProgressValue(sbuf.length());\n\t\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// If we find some other\n\t\t\t\t\t// character that follows\n\t\t\t\t\t// a \\r, so it is not a\n\t\t\t\t\t// Windows file, and probably\n\t\t\t\t\t// a Mac file\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = true;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t\tlastWasCR = false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(trackProgress)\n\t\t\t\tsetProgressValue(sbuf.length());\n\n\t\t\t// Add remaining stuff from buffer\n\t\t\tsbuf.append(buf,lastLine,len - lastLine);\n\t\t}\n\n\t\tsetAbortable(false);\n\n\t\tString returnValue;\n\t\tif(CRLF)\n\t\t\treturnValue = \"\\r\\n\";\n\t\telse if(CROnly)\n\t\t\treturnValue = \"\\r\";\n\t\telse\n\t\t\treturnValue = \"\\n\";\n\n\t\tin.close();\n\n\t\t// Chop trailing newline and/or ^Z (if any)\n\t\tint bufferLength = sbuf.length();\n\t\tif(bufferLength != 0)\n\t\t{\n\t\t\tchar ch = sbuf.charAt(bufferLength - 1);\n\t\t\tif(length >= 2 && ch == 0x1a /* DOS ^Z */\n\t\t\t\t&& sbuf.charAt(bufferLength - 2) == '\\n')\n\t\t\t\tsbuf.setLength(bufferLength - 2);\n\t\t\telse if(ch == '\\n')\n\t\t\t\tsbuf.setLength(bufferLength - 1);\n\t\t}\n\n\t\t// to avoid having to deal with read/write locks and such,\n\t\t// we insert the loaded data into the buffer in the\n\t\t// post-load cleanup runnable, which runs in the AWT thread.\n\t\tbuffer.putProperty(LOAD_DATA,sbuf);\n\n\t\treturn returnValue;\n\t}\n\n\tprivate void readMarkers(Buffer buffer, InputStream _in)\n\t\tthrows IOException\n\t{\n\t\t// For `reload' command\n\t\tbuffer.removeAllMarkers();\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(_in));\n\n\t\tString line;\n\t\twhile((line = in.readLine()) != null)\n\t\t{\n\t\t\t// compatibility kludge for jEdit 3.1 and earlier\n\t\t\tif(!line.startsWith(\"!\"))\n\t\t\t\tcontinue;\n\n\t\t\tchar shortcut = line.charAt(1);\n\t\t\tint start = line.indexOf(';');\n\t\t\tint end = line.indexOf(';',start + 1);\n\t\t\tint position = Integer.parseInt(line.substring(start + 1,end));\n\t\t\tbuffer.addMarker(shortcut,position);\n\t\t}\n\n\t\tin.close();\n\t}\n\n\tprivate void save()\n\t{\n\t\tOutputStream out = null;\n\n\t\ttry\n\t\t{\n\t\t\tString[] args = { vfs.getFileName(path) };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.save\",args));\n\n\t\t\t// the entire save operation can be aborted...\n\t\t\tsetAbortable(true);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.readLock();\n\n\t\t\t\t/* if the VFS supports renaming files, we first\n\t\t\t\t * save to #<filename>#save#, then rename that\n\t\t\t\t * to <filename>, so that if the save fails,\n\t\t\t\t * data will not be lost */\n\t\t\t\tString savePath;\n\n\t\t\t\tif((vfs.getCapabilities() & VFS.RENAME_CAP) != 0)\n\t\t\t\t{\n\t\t\t\t\tsavePath = vfs.getParentOfPath(path)\n\t\t\t\t\t\t+ '#' + vfs.getFileName(path)\n\t\t\t\t\t\t+ \"#save#\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tsavePath = path;\n\n\t\t\t\tout = vfs._createOutputStream(session,savePath,view);\n\t\t\t\tif(out != null)\n\t\t\t\t{\n\t\t\t\t\tif(path.endsWith(\".gz\"))\n\t\t\t\t\t\tout = new GZIPOutputStream(out);\n\n\t\t\t\t\twrite(buffer,out);\n\t\t\t\t}\n\n\t\t\t\t// Only backup once per session\n\t\t\t\tif(buffer.getProperty(Buffer.BACKED_UP) == null)\n\t\t\t\t{\n\t\t\t\t\tvfs._backup(session,path,view);\n\t\t\t\t\tbuffer.putProperty(Buffer.BACKED_UP,Boolean.TRUE);\n\t\t\t\t}\n\n\t\t\t\tif((vfs.getCapabilities() & VFS.RENAME_CAP) != 0)\n\t\t\t\t\tvfs._rename(session,savePath,path,view);\n\n\t\t\t\t// We only save markers to VFS's that support deletion.\n\t\t\t\t// Otherwise, we will accumilate stale marks files.\n\t\t\t\tif((vfs.getCapabilities() & VFS.DELETE_CAP) != 0)\n\t\t\t\t{\n\t\t\t\t\tif(jEdit.getBooleanProperty(\"persistentMarkers\")\n\t\t\t\t\t\t&& buffer.getMarkers().size() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.save-markers\",args));\n\t\t\t\t\t\tsetProgressValue(0);\n\t\t\t\t\t\tout = vfs._createOutputStream(session,markersPath,view);\n\t\t\t\t\t\tif(out != null)\n\t\t\t\t\t\t\twriteMarkers(buffer,out);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tvfs._delete(session,markersPath,view);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(BadLocationException bl)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,bl);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"write-error\",pp);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.readUnlock();\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t\tif(out != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._saveComplete(session,buffer,view);\n\t\t\t\tvfs._endVFSSession(session,view);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"write-error\",pp);\n\t\t\t}\n\t\t\tcatch(WorkThread.Abort a)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void autosave()\n\t{\n\t\tOutputStream out = null;\n\n\t\ttry\n\t\t{\n\t\t\tString[] args = { vfs.getFileName(path) };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.autosave\",args));\n\n\t\t\t// the entire save operation can be aborted...\n\t\t\tsetAbortable(true);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.readLock();\n\n\t\t\t\tif(!buffer.isDirty())\n\t\t\t\t{\n\t\t\t\t\t// buffer has been saved while we\n\t\t\t\t\t// were waiting.\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tout = vfs._createOutputStream(session,path,view);\n\t\t\t\tif(out == null)\n\t\t\t\t\treturn;\n\n\t\t\t\twrite(buffer,out);\n\t\t\t}\n\t\t\tcatch(BadLocationException bl)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,bl);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\t/* Log.log(Log.ERROR,this,io);\n\t\t\t\targs[0] = io.toString();\n\t\t\t\tVFSManager.error(view,\"ioerror\",args); */\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.readUnlock();\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t\tif(out != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate void write(Buffer buffer, OutputStream _out)\n\t\tthrows IOException, BadLocationException\n\t{\n\t\tBufferedWriter out = new BufferedWriter(\n\t\t\tnew OutputStreamWriter(_out,\n\t\t\t\t(String)buffer.getProperty(Buffer.ENCODING)),\n\t\t\t\tIOBUFSIZE);\n\t\tSegment lineSegment = new Segment();\n\t\tString newline = (String)buffer.getProperty(Buffer.LINESEP);\n\t\tif(newline == null)\n\t\t\tnewline = System.getProperty(\"line.separator\");\n\t\tElement map = buffer.getDefaultRootElement();\n\n\t\tsetProgressMaximum(map.getElementCount() / PROGRESS_INTERVAL);\n\t\tsetProgressValue(0);\n\n\t\tint i = 0;\n\t\twhile(i < map.getElementCount())\n\t\t{\n\t\t\tElement line = map.getElement(i);\n\t\t\tint start = line.getStartOffset();\n\t\t\tbuffer.getText(start,line.getEndOffset() - start - 1,\n\t\t\t\tlineSegment);\n\t\t\tout.write(lineSegment.array,lineSegment.offset,\n\t\t\t\tlineSegment.count);\n\t\t\tout.write(newline);\n\n\t\t\tif(++i % PROGRESS_INTERVAL == 0)\n\t\t\t\tsetProgressValue(i / PROGRESS_INTERVAL);\n\t\t}\n\t\tout.close();\n\t}\n\n\tprivate void writeMarkers(Buffer buffer, OutputStream out)\n\t\tthrows IOException\n\t{\n\t\tWriter o = new BufferedWriter(new OutputStreamWriter(out));\n\t\tVector markers = buffer.getMarkers();\n\t\tfor(int i = 0; i < markers.size(); i++)\n\t\t{\n\t\t\tMarker marker = (Marker)markers.elementAt(i);\n\t\t\to.write('!');\n\t\t\to.write(marker.getShortcut());\n\t\t\to.write(';');\n\n\t\t\tString pos = String.valueOf(marker.getPosition());\n\t\t\to.write(pos);\n\t\t\to.write(';');\n\t\t\to.write(pos);\n\t\t\to.write('\\n');\n\t\t}\n\t\to.close();\n\t}\n\n\tprivate void insert()\n\t{\n\t\tInputStream in = null;\n\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString[] args = { vfs.getFileName(path) };\n\t\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.load\",args));\n\t\t\t\tsetAbortable(true);\n\n\t\t\t\tVFS.DirectoryEntry entry = vfs._getDirectoryEntry(\n\t\t\t\t\tsession,path,view);\n\t\t\t\tlong length;\n\t\t\t\tif(entry != null)\n\t\t\t\t\tlength = entry.length;\n\t\t\t\telse\n\t\t\t\t\tlength = 0L;\n\n\t\t\t\tin = vfs._createInputStream(session,path,false,view);\n\t\t\t\tif(in == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tif(path.endsWith(\".gz\"))\n\t\t\t\t\tin = new GZIPInputStream(in);\n\n\t\t\t\tread(buffer,in,length);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"read-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t\tif(in != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,view);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"read-error\",pp);", "functions": [{"function_name": "run", "code": "\tpublic void run()\n\t{\n\t\tswitch(type)\n\t\t{\n\t\tcase LOAD:\n\t\t\tload();\n\t\t\tbreak;\n\t\tcase SAVE:\n\t\t\tsave();\n\t\t\tbreak;\n\t\tcase AUTOSAVE:\n\t\t\tautosave();\n\t\t\tbreak;\n\t\tcase INSERT:\n\t\t\tinsert();\n\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "SWITCH", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\tString typeString;\n\t\tswitch(type)\n\t\t{\n\t\tcase LOAD:\n\t\t\ttypeString = \"LOAD\";\n\t\t\tbreak;\n\t\tcase SAVE:\n\t\t\ttypeString = \"SAVE\";\n\t\t\tbreak;\n\t\tcase AUTOSAVE:\n\t\t\ttypeString = \"AUTOSAVE\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttypeString = \"UNKNOWN!!!\";\n\t\t}\n\n\t\treturn getClass().getName() + \"[type=\" + typeString\n\t\t\t+ \",buffer=\" + buffer + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [2, 8], [2, 9], [6, 10], [2, 11], [2, 12], [2, 13], [2, 14], [10, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [16, 21], [21, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 2], [9, 2], [10, 6], [11, 2], [12, 2], [13, 2], [14, 2], [15, 10], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 16], [22, 21], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "load", "code": "\tprivate void load()\n\t{\n\t\tInputStream in = null;\n\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString[] args = { vfs.getFileName(path) };\n\t\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.load\",args));\n\t\t\t\tsetAbortable(true);\n\t\t\t\tsetProgressValue(0);\n\n\t\t\t\tVFS.DirectoryEntry entry = vfs._getDirectoryEntry(\n\t\t\t\t\tsession,path,view);\n\t\t\t\tlong length;\n\t\t\t\tif(entry != null)\n\t\t\t\t\tlength = entry.length;\n\t\t\t\telse\n\t\t\t\t\tlength = 0L;\n\n\t\t\t\tin = vfs._createInputStream(session,path,false,view);\n\t\t\t\tif(in == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tif(path.endsWith(\".gz\"))\n\t\t\t\t\tin = new GZIPInputStream(in);\n\n\t\t\t\tString lineSeparator = read(buffer,in,length);\n\t\t\t\tbuffer.putProperty(Buffer.LINESEP,lineSeparator);\n\t\t\t\tbuffer.setNewFile(false);\n\t\t\t}\n\t\t\tcatch(CharConversionException ch)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,ch);\n\t\t\t\tObject[] pp = { path,\n\t\t\t\t\tbuffer.getProperty(Buffer.ENCODING),\n\t\t\t\t\tch.toString() };\n\t\t\t\tVFSManager.error(view,\"encoding-error\",pp);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tObject[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"read-error\",pp);\n\t\t\t}\n\n\t\t\tif(jEdit.getBooleanProperty(\"persistentMarkers\"))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString[] args = { vfs.getFileName(path) };\n\t\t\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.load-markers\",args));\n\t\t\t\t\tsetAbortable(true);\n\n\t\t\t\t\tin = vfs._createInputStream(session,markersPath,true,view);\n\t\t\t\t\tif(in != null)\n\t\t\t\t\t\treadMarkers(buffer,in);\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t\tif(in != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,view);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"read-error\",pp);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "TRY", "CATCH", "IF", "TRY", "CATCH", "CATCH", "IF", "CALL", "CATCH", "CATCH", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [3, 8], [4, 9], [5, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [2, 20], [8, 21], [3, 22], [9, 23], [5, 24], [10, 25], [11, 26], [12, 27], [6, 28], [6, 29], [14, 30], [15, 31], [15, 32], [6, 33], [16, 34], [6, 35], [6, 36], [6, 37], [8, 38], [8, 39], [9, 40], [23, 41], [24, 42], [24, 43], [24, 44], [11, 45], [11, 46], [12, 47], [12, 48], [28, 49], [13, 50], [14, 51], [30, 52], [32, 53], [33, 54], [16, 55], [16, 56], [34, 57], [18, 58], [35, 59], [36, 60], [37, 61], [38, 62], [40, 63], [43, 64], [24, 65], [24, 66], [24, 67], [45, 68], [47, 69], [51, 70], [54, 71], [55, 72], [61, 73], [19, 74], [21, 75], [40, 76], [43, 77], [64, 78], [65, 79], [66, 80], [67, 81], [26, 82], [27, 83], [27, 84], [79, 85], [81, 86], [44, 87], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 3], [9, 4], [10, 5], [11, 6], [12, 6], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 6], [19, 6], [20, 2], [21, 8], [22, 3], [23, 9], [24, 5], [25, 10], [26, 11], [27, 12], [28, 6], [29, 6], [30, 14], [31, 15], [32, 15], [33, 6], [34, 16], [35, 6], [36, 6], [37, 6], [38, 8], [39, 8], [40, 9], [41, 23], [42, 24], [43, 24], [44, 24], [45, 11], [46, 11], [47, 12], [48, 12], [49, 28], [50, 13], [51, 14], [52, 30], [53, 32], [54, 33], [55, 16], [56, 16], [57, 34], [58, 18], [59, 35], [60, 36], [61, 37], [62, 38], [63, 40], [64, 43], [65, 24], [66, 24], [67, 24], [68, 45], [69, 47], [70, 51], [71, 54], [72, 55], [73, 61], [74, 19], [75, 21], [76, 40], [77, 43], [78, 64], [79, 65], [80, 66], [81, 67], [82, 26], [83, 27], [84, 27], [85, 79], [86, 81], [87, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}, {"function_name": "read", "code": "\tprivate String read(Buffer buffer, InputStream _in, long length)\n\t\tthrows IOException\n\t{\n\t\t// only true if the file size is known\n\t\tboolean trackProgress = (length != 0);\n\t\tFile file = buffer.getFile();\n\n\t\tsetProgressValue(0);\n\t\tsetProgressMaximum((int)length);\n\n\t\t// if the file size is not known, start with a resonable\n\t\t// default buffer size\n\t\tif(length == 0)\n\t\t\tlength = IOBUFSIZE;\n\n\t\tStringBuffer sbuf = new StringBuffer((int)length);\n\n\t\tInputStreamReader in = new InputStreamReader(_in,\n\t\t\t(String)buffer.getProperty(Buffer.ENCODING));\n\t\tchar[] buf = new char[IOBUFSIZE];\n\t\t// Number of characters in 'buf' array.\n\t\t// InputStream.read() doesn't always fill the\n\t\t// array (eg, the file size is not a multiple of\n\t\t// IOBUFSIZE, or it is a GZipped file, etc)\n\t\tint len;\n\n\t\t// True if a \\n was read after a \\r. Usually\n\t\t// means this is a DOS/Windows file\n\t\tboolean CRLF = false;\n\n\t\t// A \\r was read, hence a MacOS file\n\t\tboolean CROnly = false;\n\n\t\t// Was the previous read character a \\r?\n\t\t// If we read a \\n and this is true, we assume\n\t\t// we have a DOS/Windows file\n\t\tboolean lastWasCR = false;\n\n\t\t// Number of lines read. Every 100 lines, we update the\n\t\t// progress bar\n\t\tint lineCount = 0;\n\n\t\twhile((len = in.read(buf,0,buf.length)) != -1)\n\t\t{\n\t\t\t// Offset of previous line, relative to\n\t\t\t// the start of the I/O buffer (NOT\n\t\t\t// relative to the start of the document)\n\t\t\tint lastLine = 0;\n\n\t\t\tfor(int i = 0; i < len; i++)\n\t\t\t{\n\t\t\t\t// Look for line endings.\n\t\t\t\tswitch(buf[i])\n\t\t\t\t{\n\t\t\t\tcase '\\r':\n\t\t\t\t\t// If we read a \\r and\n\t\t\t\t\t// lastWasCR is also true,\n\t\t\t\t\t// it is probably a Mac file\n\t\t\t\t\t// (\\r\\r in stream)\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = true;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise set a flag,\n\t\t\t\t\t// so that \\n knows that last\n\t\t\t\t\t// was a \\r\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlastWasCR = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Insert a line\n\t\t\t\t\tsbuf.append(buf,lastLine,i -\n\t\t\t\t\t\tlastLine);\n\t\t\t\t\tsbuf.append('\\n');\n\t\t\t\t\tif(trackProgress && lineCount++ % PROGRESS_INTERVAL == 0)\n\t\t\t\t\t\tsetProgressValue(sbuf.length());\n\n\t\t\t\t\t// This is i+1 to take the\n\t\t\t\t\t// trailing \\n into account\n\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\n':\n\t\t\t\t\t// If lastWasCR is true,\n\t\t\t\t\t// we just read a \\r followed\n\t\t\t\t\t// by a \\n. We specify that\n\t\t\t\t\t// this is a Windows file,\n\t\t\t\t\t// but take no further\n\t\t\t\t\t// action and just ignore\n\t\t\t\t\t// the \\r.\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = false;\n\t\t\t\t\t\tCRLF = true;\n\t\t\t\t\t\tlastWasCR = false;\n\t\t\t\t\t\t// Bump lastLine so\n\t\t\t\t\t\t// that the next line\n\t\t\t\t\t\t// doesn't erronously\n\t\t\t\t\t\t// pick up the \\r\n\t\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise, we found a \\n\n\t\t\t\t\t// that follows some other\n\t\t\t\t\t// character, hence we have\n\t\t\t\t\t// a Unix file\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = false;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t\tsbuf.append(buf,lastLine,\n\t\t\t\t\t\t\ti - lastLine);\n\t\t\t\t\t\tsbuf.append('\\n');\n\t\t\t\t\t\tif(trackProgress && lineCount++ % PROGRESS_INTERVAL == 0)\n\t\t\t\t\t\t\tsetProgressValue(sbuf.length());\n\t\t\t\t\t\tlastLine = i + 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// If we find some other\n\t\t\t\t\t// character that follows\n\t\t\t\t\t// a \\r, so it is not a\n\t\t\t\t\t// Windows file, and probably\n\t\t\t\t\t// a Mac file\n\t\t\t\t\tif(lastWasCR)\n\t\t\t\t\t{\n\t\t\t\t\t\tCROnly = true;\n\t\t\t\t\t\tCRLF = false;\n\t\t\t\t\t\tlastWasCR = false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(trackProgress)\n\t\t\t\tsetProgressValue(sbuf.length());\n\n\t\t\t// Add remaining stuff from buffer\n\t\t\tsbuf.append(buf,lastLine,len - lastLine);\n\t\t}\n\n\t\tsetAbortable(false);\n\n\t\tString returnValue;\n\t\tif(CRLF)\n\t\t\treturnValue = \"\\r\\n\";\n\t\telse if(CROnly)\n\t\t\treturnValue = \"\\r\";\n\t\telse\n\t\t\treturnValue = \"\\n\";\n\n\t\tin.close();\n\n\t\t// Chop trailing newline and/or ^Z (if any)\n\t\tint bufferLength = sbuf.length();\n\t\tif(bufferLength != 0)\n\t\t{\n\t\t\tchar ch = sbuf.charAt(bufferLength - 1);\n\t\t\tif(length >= 2 && ch == 0x1a /* DOS ^Z */\n\t\t\t\t&& sbuf.charAt(bufferLength - 2) == '\\n')\n\t\t\t\tsbuf.setLength(bufferLength - 2);\n\t\t\telse if(ch == '\\n')\n\t\t\t\tsbuf.setLength(bufferLength - 1);\n\t\t}\n\n\t\t// to avoid having to deal with read/write locks and such,\n\t\t// we insert the loaded data into the buffer in the\n\t\t// post-load cleanup runnable, which runs in the AWT thread.\n\t\tbuffer.putProperty(LOAD_DATA,sbuf);\n\n\t\treturn returnValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [2, 22], [0, 23], [4, 24], [0, 25], [6, 26], [15, 27], [0, 28], [0, 29], [2, 30], [2, 31], [22, 32], [3, 33], [4, 34], [25, 35], [6, 36], [6, 37], [6, 38], [26, 39], [26, 40], [7, 41], [8, 42], [9, 43], [10, 44], [13, 45], [14, 46], [15, 47], [27, 48], [29, 49], [16, 50], [17, 51], [30, 52], [30, 53], [24, 54], [24, 55], [34, 56], [6, 57], [37, 58], [40, 59], [51, 60], [52, 61], [30, 62], [53, 63], [53, 64], [31, 65], [54, 66], [55, 67], [57, 68], [36, 69], [37, 70], [38, 71], [59, 72], [45, 73], [52, 74], [61, 75], [62, 76], [63, 77], [63, 78], [64, 79], [64, 80], [65, 81], [69, 82], [37, 83], [74, 84], [76, 85], [78, 86], [79, 87], [80, 88], [81, 89], [70, 90], [70, 91], [70, 92], [70, 93], [70, 94], [70, 95], [70, 96], [70, 97], [70, 98], [84, 99], [86, 100], [70, 101], [96, 102], [70, 103], [70, 104], [93, 105], [101, 106], [96, 107], [102, 108], [103, 109], [104, 110], [91, 111], [91, 112], [91, 113], [93, 114], [105, 115], [93, 116], [93, 117], [93, 118], [93, 119], [93, 120], [93, 121], [93, 122], [93, 123], [106, 124], [107, 125], [108, 126], [108, 127], [97, 128], [97, 129], [97, 130], [111, 131], [112, 132], [113, 133], [114, 134], [105, 135], [115, 136], [116, 137], [117, 138], [118, 139], [119, 140], [120, 141], [121, 142], [122, 143], [123, 144], [128, 145], [129, 146], [130, 147], [134, 148], [135, 149], [136, 150], [136, 151], [141, 152], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 2], [23, 0], [24, 4], [25, 0], [26, 6], [27, 15], [28, 0], [29, 0], [30, 2], [31, 2], [32, 22], [33, 3], [34, 4], [35, 25], [36, 6], [37, 6], [38, 6], [39, 26], [40, 26], [41, 7], [42, 8], [43, 9], [44, 10], [45, 13], [46, 14], [47, 15], [48, 27], [49, 29], [50, 16], [51, 17], [52, 30], [53, 30], [54, 24], [55, 24], [56, 34], [57, 6], [58, 37], [59, 40], [60, 51], [61, 52], [62, 30], [63, 53], [64, 53], [65, 31], [66, 54], [67, 55], [68, 57], [69, 36], [70, 37], [71, 38], [72, 59], [73, 45], [74, 52], [75, 61], [76, 62], [77, 63], [78, 63], [79, 64], [80, 64], [81, 65], [82, 69], [83, 37], [84, 74], [85, 76], [86, 78], [87, 79], [88, 80], [89, 81], [90, 70], [91, 70], [92, 70], [93, 70], [94, 70], [95, 70], [96, 70], [97, 70], [98, 70], [99, 84], [100, 86], [101, 70], [102, 96], [103, 70], [104, 70], [105, 93], [106, 101], [107, 96], [108, 102], [109, 103], [110, 104], [111, 91], [112, 91], [113, 91], [114, 93], [115, 105], [116, 93], [117, 93], [118, 93], [119, 93], [120, 93], [121, 93], [122, 93], [123, 93], [124, 106], [125, 107], [126, 108], [127, 108], [128, 97], [129, 97], [130, 97], [131, 111], [132, 112], [133, 113], [134, 114], [135, 105], [136, 115], [137, 116], [138, 117], [139, 118], [140, 119], [141, 120], [142, 121], [143, 122], [144, 123], [145, 128], [146, 129], [147, 130], [148, 134], [149, 135], [150, 136], [151, 136], [152, 141], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152]]}, {"function_name": "readMarkers", "code": "\tprivate void readMarkers(Buffer buffer, InputStream _in)\n\t\tthrows IOException\n\t{\n\t\t// For `reload' command\n\t\tbuffer.removeAllMarkers();\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(_in));\n\n\t\tString line;\n\t\twhile((line = in.readLine()) != null)\n\t\t{\n\t\t\t// compatibility kludge for jEdit 3.1 and earlier\n\t\t\tif(!line.startsWith(\"!\"))\n\t\t\t\tcontinue;\n\n\t\t\tchar shortcut = line.charAt(1);\n\t\t\tint start = line.indexOf(';');\n\t\t\tint end = line.indexOf(';',start + 1);\n\t\t\tint position = Integer.parseInt(line.substring(start + 1,end));\n\t\t\tbuffer.addMarker(shortcut,position);\n\t\t}\n\n\t\tin.close();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [7, 14], [7, 15], [3, 16], [1, 17], [13, 18], [13, 19], [15, 20], [16, 21], [9, 22], [10, 23], [11, 24], [12, 25], [19, 26], [22, 27], [23, 28], [23, 29], [24, 30], [25, 31], [27, 32], [28, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 7], [15, 7], [16, 3], [17, 1], [18, 13], [19, 13], [20, 15], [21, 16], [22, 9], [23, 10], [24, 11], [25, 12], [26, 19], [27, 22], [28, 23], [29, 23], [30, 24], [31, 25], [32, 27], [33, 28], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "save", "code": "\tprivate void save()\n\t{\n\t\tOutputStream out = null;\n\n\t\ttry\n\t\t{\n\t\t\tString[] args = { vfs.getFileName(path) };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.save\",args));\n\n\t\t\t// the entire save operation can be aborted...\n\t\t\tsetAbortable(true);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.readLock();\n\n\t\t\t\t/* if the VFS supports renaming files, we first\n\t\t\t\t * save to #<filename>#save#, then rename that\n\t\t\t\t * to <filename>, so that if the save fails,\n\t\t\t\t * data will not be lost */\n\t\t\t\tString savePath;\n\n\t\t\t\tif((vfs.getCapabilities() & VFS.RENAME_CAP) != 0)\n\t\t\t\t{\n\t\t\t\t\tsavePath = vfs.getParentOfPath(path)\n\t\t\t\t\t\t+ '#' + vfs.getFileName(path)\n\t\t\t\t\t\t+ \"#save#\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tsavePath = path;\n\n\t\t\t\tout = vfs._createOutputStream(session,savePath,view);\n\t\t\t\tif(out != null)\n\t\t\t\t{\n\t\t\t\t\tif(path.endsWith(\".gz\"))\n\t\t\t\t\t\tout = new GZIPOutputStream(out);\n\n\t\t\t\t\twrite(buffer,out);\n\t\t\t\t}\n\n\t\t\t\t// Only backup once per session\n\t\t\t\tif(buffer.getProperty(Buffer.BACKED_UP) == null)\n\t\t\t\t{\n\t\t\t\t\tvfs._backup(session,path,view);\n\t\t\t\t\tbuffer.putProperty(Buffer.BACKED_UP,Boolean.TRUE);\n\t\t\t\t}\n\n\t\t\t\tif((vfs.getCapabilities() & VFS.RENAME_CAP) != 0)\n\t\t\t\t\tvfs._rename(session,savePath,path,view);\n\n\t\t\t\t// We only save markers to VFS's that support deletion.\n\t\t\t\t// Otherwise, we will accumilate stale marks files.\n\t\t\t\tif((vfs.getCapabilities() & VFS.DELETE_CAP) != 0)\n\t\t\t\t{\n\t\t\t\t\tif(jEdit.getBooleanProperty(\"persistentMarkers\")\n\t\t\t\t\t\t&& buffer.getMarkers().size() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.save-markers\",args));\n\t\t\t\t\t\tsetProgressValue(0);\n\t\t\t\t\t\tout = vfs._createOutputStream(session,markersPath,view);\n\t\t\t\t\t\tif(out != null)\n\t\t\t\t\t\t\twriteMarkers(buffer,out);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tvfs._delete(session,markersPath,view);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(BadLocationException bl)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,bl);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"write-error\",pp);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.readUnlock();\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t\tif(out != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._saveComplete(session,buffer,view);\n\t\t\t\tvfs._endVFSSession(session,view);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"write-error\",pp);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "TRY", "CATCH", "TRY", "VAR_DECL", "CATCH", "CATCH", "IF", "CATCH", "CATCH", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [3, 8], [4, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [1, 18], [1, 19], [2, 20], [8, 21], [3, 22], [3, 23], [9, 24], [5, 25], [10, 26], [12, 27], [13, 28], [14, 29], [15, 30], [5, 31], [16, 32], [5, 33], [18, 34], [19, 35], [8, 36], [8, 37], [9, 38], [24, 39], [10, 40], [10, 41], [11, 42], [12, 43], [27, 44], [27, 45], [13, 46], [28, 47], [28, 48], [29, 49], [29, 50], [15, 51], [30, 52], [31, 53], [16, 54], [32, 55], [32, 56], [35, 57], [6, 58], [36, 59], [38, 60], [40, 61], [43, 62], [45, 63], [48, 64], [14, 65], [14, 66], [15, 67], [51, 68], [16, 69], [56, 70], [21, 71], [38, 72], [26, 73], [43, 74], [43, 75], [62, 76], [62, 77], [51, 78], [68, 79], [69, 80], [75, 81], [43, 82], [43, 83], [43, 84], [76, 85], [76, 86], [77, 87], [78, 88], [80, 89], [80, 90], [75, 91], [81, 92], [82, 93], [83, 94], [84, 95], [86, 96], [90, 97], [90, 98], [95, 99], [98, 100], [98, 101], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 3], [9, 4], [10, 5], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 5], [18, 1], [19, 1], [20, 2], [21, 8], [22, 3], [23, 3], [24, 9], [25, 5], [26, 10], [27, 12], [28, 13], [29, 14], [30, 15], [31, 5], [32, 16], [33, 5], [34, 18], [35, 19], [36, 8], [37, 8], [38, 9], [39, 24], [40, 10], [41, 10], [42, 11], [43, 12], [44, 27], [45, 27], [46, 13], [47, 28], [48, 28], [49, 29], [50, 29], [51, 15], [52, 30], [53, 31], [54, 16], [55, 32], [56, 32], [57, 35], [58, 6], [59, 36], [60, 38], [61, 40], [62, 43], [63, 45], [64, 48], [65, 14], [66, 14], [67, 15], [68, 51], [69, 16], [70, 56], [71, 21], [72, 38], [73, 26], [74, 43], [75, 43], [76, 62], [77, 62], [78, 51], [79, 68], [80, 69], [81, 75], [82, 43], [83, 43], [84, 43], [85, 76], [86, 76], [87, 77], [88, 78], [89, 80], [90, 80], [91, 75], [92, 81], [93, 82], [94, 83], [95, 84], [96, 86], [97, 90], [98, 90], [99, 95], [100, 98], [101, 98], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101]]}, {"function_name": "autosave", "code": "\tprivate void autosave()\n\t{\n\t\tOutputStream out = null;\n\n\t\ttry\n\t\t{\n\t\t\tString[] args = { vfs.getFileName(path) };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.autosave\",args));\n\n\t\t\t// the entire save operation can be aborted...\n\t\t\tsetAbortable(true);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.readLock();\n\n\t\t\t\tif(!buffer.isDirty())\n\t\t\t\t{\n\t\t\t\t\t// buffer has been saved while we\n\t\t\t\t\t// were waiting.\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tout = vfs._createOutputStream(session,path,view);\n\t\t\t\tif(out == null)\n\t\t\t\t\treturn;\n\n\t\t\t\twrite(buffer,out);\n\t\t\t}\n\t\t\tcatch(BadLocationException bl)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,bl);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\t/* Log.log(Log.ERROR,this,io);\n\t\t\t\targs[0] = io.toString();\n\t\t\t\tVFSManager.error(view,\"ioerror\",args); */\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.readUnlock();\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t\tif(out != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tout.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "CATCH", "TRY", "VAR_DECL", "IF", "CATCH", "CATCH", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [4, 9], [4, 10], [1, 11], [1, 12], [2, 13], [6, 14], [4, 15], [4, 16], [9, 17], [9, 18], [4, 19], [10, 20], [4, 21], [11, 22], [12, 23], [6, 24], [14, 25], [8, 26], [18, 27], [19, 28], [10, 29], [23, 30], [5, 31], [24, 32], [24, 33], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 4], [10, 4], [11, 1], [12, 1], [13, 2], [14, 6], [15, 4], [16, 4], [17, 9], [18, 9], [19, 4], [20, 10], [21, 4], [22, 11], [23, 12], [24, 6], [25, 14], [26, 8], [27, 18], [28, 19], [29, 10], [30, 23], [31, 5], [32, 24], [33, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "write", "code": "\tprivate void write(Buffer buffer, OutputStream _out)\n\t\tthrows IOException, BadLocationException\n\t{\n\t\tBufferedWriter out = new BufferedWriter(\n\t\t\tnew OutputStreamWriter(_out,\n\t\t\t\t(String)buffer.getProperty(Buffer.ENCODING)),\n\t\t\t\tIOBUFSIZE);\n\t\tSegment lineSegment = new Segment();\n\t\tString newline = (String)buffer.getProperty(Buffer.LINESEP);\n\t\tif(newline == null)\n\t\t\tnewline = System.getProperty(\"line.separator\");\n\t\tElement map = buffer.getDefaultRootElement();\n\n\t\tsetProgressMaximum(map.getElementCount() / PROGRESS_INTERVAL);\n\t\tsetProgressValue(0);\n\n\t\tint i = 0;\n\t\twhile(i < map.getElementCount())\n\t\t{\n\t\t\tElement line = map.getElement(i);\n\t\t\tint start = line.getStartOffset();\n\t\t\tbuffer.getText(start,line.getEndOffset() - start - 1,\n\t\t\t\tlineSegment);\n\t\t\tout.write(lineSegment.array,lineSegment.offset,\n\t\t\t\tlineSegment.count);\n\t\t\tout.write(newline);\n\n\t\t\tif(++i % PROGRESS_INTERVAL == 0)\n\t\t\t\tsetProgressValue(i / PROGRESS_INTERVAL);\n\t\t}\n\t\tout.close();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [0, 13], [4, 14], [1, 15], [1, 16], [1, 17], [11, 18], [2, 19], [12, 20], [13, 21], [3, 22], [4, 23], [14, 24], [6, 25], [7, 26], [15, 27], [1, 28], [1, 29], [1, 30], [21, 31], [23, 32], [5, 33], [26, 34], [15, 35], [27, 36], [27, 37], [30, 38], [16, 39], [17, 40], [32, 41], [35, 42], [38, 43], [38, 44], [34, 45], [44, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 0], [14, 4], [15, 1], [16, 1], [17, 1], [18, 11], [19, 2], [20, 12], [21, 13], [22, 3], [23, 4], [24, 14], [25, 6], [26, 7], [27, 15], [28, 1], [29, 1], [30, 1], [31, 21], [32, 23], [33, 5], [34, 26], [35, 15], [36, 27], [37, 27], [38, 30], [39, 16], [40, 17], [41, 32], [42, 35], [43, 38], [44, 38], [45, 34], [46, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "writeMarkers", "code": "\tprivate void writeMarkers(Buffer buffer, OutputStream out)\n\t\tthrows IOException\n\t{\n\t\tWriter o = new BufferedWriter(new OutputStreamWriter(out));\n\t\tVector markers = buffer.getMarkers();\n\t\tfor(int i = 0; i < markers.size(); i++)\n\t\t{\n\t\t\tMarker marker = (Marker)markers.elementAt(i);\n\t\t\to.write('!');\n\t\t\to.write(marker.getShortcut());\n\t\t\to.write(';');\n\n\t\t\tString pos = String.valueOf(marker.getPosition());\n\t\t\to.write(pos);\n\t\t\to.write(';');\n\t\t\to.write(pos);\n\t\t\to.write('\\n');\n\t\t}\n\t\to.close();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [2, 11], [3, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [12, 21], [13, 22], [15, 23], [8, 24], [17, 25], [18, 26], [19, 27], [24, 28], [9, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 2], [12, 3], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 12], [22, 13], [23, 15], [24, 8], [25, 17], [26, 18], [27, 19], [28, 24], [29, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "insert", "code": "\tprivate void insert()\n\t{\n\t\tInputStream in = null;\n\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString[] args = { vfs.getFileName(path) };\n\t\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.load\",args));\n\t\t\t\tsetAbortable(true);\n\n\t\t\t\tVFS.DirectoryEntry entry = vfs._getDirectoryEntry(\n\t\t\t\t\tsession,path,view);\n\t\t\t\tlong length;\n\t\t\t\tif(entry != null)\n\t\t\t\t\tlength = entry.length;\n\t\t\t\telse\n\t\t\t\t\tlength = 0L;\n\n\t\t\t\tin = vfs._createInputStream(session,path,false,view);\n\t\t\t\tif(in == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tif(path.endsWith(\".gz\"))\n\t\t\t\t\tin = new GZIPInputStream(in);\n\n\t\t\t\tread(buffer,in,length);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"read-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t\tif(in != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t\tcatch(IOException io)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,view);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { path, io.toString() };\n\t\t\t\tVFSManager.error(view,\"read-error\",pp);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "TRY", "CATCH", "TRY", "CATCH", "CATCH", "IF", "CATCH", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [2, 16], [7, 17], [3, 18], [8, 19], [9, 20], [5, 21], [10, 22], [11, 23], [11, 24], [5, 25], [12, 26], [5, 27], [5, 28], [7, 29], [7, 30], [8, 31], [19, 32], [9, 33], [9, 34], [10, 35], [22, 36], [24, 37], [25, 38], [12, 39], [12, 40], [26, 41], [14, 42], [27, 43], [28, 44], [29, 45], [31, 46], [33, 47], [35, 48], [38, 49], [39, 50], [44, 51], [15, 52], [17, 53], [31, 54], [20, 55], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 5], [10, 5], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 2], [17, 7], [18, 3], [19, 8], [20, 9], [21, 5], [22, 10], [23, 11], [24, 11], [25, 5], [26, 12], [27, 5], [28, 5], [29, 7], [30, 7], [31, 8], [32, 19], [33, 9], [34, 9], [35, 10], [36, 22], [37, 24], [38, 25], [39, 12], [40, 12], [41, 26], [42, 14], [43, 27], [44, 28], [45, 29], [46, 31], [47, 33], [48, 35], [49, 38], [50, 39], [51, 44], [52, 15], [53, 17], [54, 31], [55, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "BufferIORequest", "code": "\tpublic BufferIORequest(int type, View view, Buffer buffer,\n\t\tObject session, VFS vfs, String path)\n\t{\n\t\tthis.type = type;\n\t\tthis.view = view;\n\t\tthis.buffer = buffer;\n\t\tthis.session = session;\n\t\tthis.vfs = vfs;\n\t\tthis.path = path;\n\n\t\tmarkersPath = vfs.getParentOfPath(path)\n\t\t\t+ '.' + vfs.getFileName(path)\n\t\t\t+ \".marks\";", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [7, 14], [14, 15], [14, 16], [16, 17], [16, 18], [18, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 7], [15, 14], [16, 14], [17, 16], [18, 16], [19, 18], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}], "label": 1}
{"sample_id": "poi-3.0-6103", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/LessThanPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.LessThanPtg", "code": "public class LessThanPtg\n    extends OperationPtg\n{\n    /** the size of the Ptg  */\n    public final static int SIZE = 1;\n\n    /** the sid for the less than operator as hex */\n    public final static byte sid  = 0x09;    \n\n    /** identifier for LESS THAN char */\n    private final static String LESSTHAN = \"<\";\n\n    /** \n     * Constructor. Creates new LessThanPtg \n     */\n    public LessThanPtg()\n    {\n    }\n\n    /**\n     * Constructor. Create a new LessThanPtg.\n     * @param data the byte array to have the PTG added to\n     * @param offset the offset to the PTG to.\n     */\n    public LessThanPtg(RecordInputStream in)\n    {\n    }\n    \n    /**\n     * Write the sid to an array\n     * @param array the array of bytes to write the sid to\n     * @param offset the offset to add the sid to\n     */\n    public void writeBytes(byte[] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n    }\n\n    /**\n     * Get the size of the sid\n     * @return int the size of the sid in terms of byte additions to an array\n     */\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    /**\n     * Get the type of PTG for Less Than\n     * @return int the identifier for the type\n     */\n    public int getType()\n    {\n        return TYPE_BINARY;\n    }\n\n    /**\n     * Get the number of operands for the Less than operator\n     * @return int the number of operands\n     */\n    public int getNumberOfOperands()\n    {\n        return 2;\n    }\n    \n    /** \n     * Implementation of method from Ptg \n     * @param book the Sheet References\n     */\n    public String toFormulaString(Workbook book)\n    {\n        return this.LESSTHAN;\n    }\n       \n    /** \n     * Implementation of method from OperationsPtg\n     * @param operands a String array of operands\n     * @return String the Formula as a String\n     */  \n    public String toFormulaString(String[] operands) \n    {\n        StringBuffer buffer = new StringBuffer();\n        buffer.append(operands[ 0 ]);\n        buffer.append(this.LESSTHAN);\n        buffer.append(operands[ 1 ]);\n        return buffer.toString();\n    }\n    \n    /**\n     * Get the default operands class value\n     * @return byte the Ptg Class Value as a byte from the Ptg Parent object\n     */\n    public byte getDefaultOperandClass() \n    {\n        return Ptg.CLASS_VALUE;\n    }\n    \n    /**\n     * Implementation of clone method from Object\n     * @return Object a clone of this class as an Object\n     */       \n    public Object clone() \n    {\n        return new LessThanPtg();", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte[] array, int offset)\n    {\n        array[ offset + 0 ] = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return TYPE_BINARY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfOperands", "code": "    public int getNumberOfOperands()\n    {\n        return 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return this.LESSTHAN;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(String[] operands) \n    {\n        StringBuffer buffer = new StringBuffer();\n        buffer.append(operands[ 0 ]);\n        buffer.append(this.LESSTHAN);\n        buffer.append(operands[ 1 ]);\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [2, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 2], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() \n    {\n        return Ptg.CLASS_VALUE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() \n    {\n        return new LessThanPtg();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LessThanPtg", "code": "    public LessThanPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "LessThanPtg", "code": "    public LessThanPtg(RecordInputStream in)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ant-1.7-1086", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/extension/Specification.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.extension.Specification", "code": "public final class Specification {\n\n    private static final String MISSING = \"Missing \";\n\n    /**\n     * Manifest Attribute Name object for SPECIFICATION_TITLE.\n     */\n    public static final Attributes.Name SPECIFICATION_TITLE\n        = Attributes.Name.SPECIFICATION_TITLE;\n\n    /**\n     * Manifest Attribute Name object for SPECIFICATION_VERSION.\n     */\n    public static final Attributes.Name SPECIFICATION_VERSION\n        = Attributes.Name.SPECIFICATION_VERSION;\n\n    /**\n     * Manifest Attribute Name object for SPECIFICATION_VENDOR.\n     */\n    public static final Attributes.Name SPECIFICATION_VENDOR\n        = Attributes.Name.SPECIFICATION_VENDOR;\n\n    /**\n     * Manifest Attribute Name object for IMPLEMENTATION_TITLE.\n     */\n    public static final Attributes.Name IMPLEMENTATION_TITLE\n        = Attributes.Name.IMPLEMENTATION_TITLE;\n\n    /**\n     * Manifest Attribute Name object for IMPLEMENTATION_VERSION.\n     */\n    public static final Attributes.Name IMPLEMENTATION_VERSION\n        = Attributes.Name.IMPLEMENTATION_VERSION;\n\n    /**\n     * Manifest Attribute Name object for IMPLEMENTATION_VENDOR.\n     */\n    public static final Attributes.Name IMPLEMENTATION_VENDOR\n        = Attributes.Name.IMPLEMENTATION_VENDOR;\n\n    /**\n     * Enum indicating that extension is compatible with other Package\n     * Specification.\n     */\n    public static final Compatibility COMPATIBLE =\n        new Compatibility(\"COMPATIBLE\");\n\n    /**\n     * Enum indicating that extension requires an upgrade\n     * of specification to be compatible with other Package Specification.\n     */\n    public static final Compatibility REQUIRE_SPECIFICATION_UPGRADE =\n        new Compatibility(\"REQUIRE_SPECIFICATION_UPGRADE\");\n\n    /**\n     * Enum indicating that extension requires a vendor\n     * switch to be compatible with other Package Specification.\n     */\n    public static final Compatibility REQUIRE_VENDOR_SWITCH =\n        new Compatibility(\"REQUIRE_VENDOR_SWITCH\");\n\n    /**\n     * Enum indicating that extension requires an upgrade\n     * of implementation to be compatible with other Package Specification.\n     */\n    public static final Compatibility REQUIRE_IMPLEMENTATION_CHANGE =\n        new Compatibility(\"REQUIRE_IMPLEMENTATION_CHANGE\");\n\n    /**\n     * This enum indicates that an extension is incompatible with\n     * other Package Specification in ways other than other enums\n     * indicate. For example, the other Package Specification\n     * may have a different ID.\n     */\n    public static final Compatibility INCOMPATIBLE =\n        new Compatibility(\"INCOMPATIBLE\");\n\n    /**\n     * The name of the Package Specification.\n     */\n    private String specificationTitle;\n\n    /**\n     * The version number (dotted decimal notation) of the specification\n     * to which this optional package conforms.\n     */\n    private DeweyDecimal specificationVersion;\n\n    /**\n     * The name of the company or organization that originated the\n     * specification to which this specification conforms.\n     */\n    private String specificationVendor;\n\n    /**\n     * The title of implementation.\n     */\n    private String implementationTitle;\n\n    /**\n     * The name of the company or organization that produced this\n     * implementation of this specification.\n     */\n    private String implementationVendor;\n\n    /**\n     * The version string for implementation. The version string is\n     * opaque.\n     */\n    private String implementationVersion;\n\n    /**\n     * The sections of jar that the specification applies to.\n     */\n    private String[] sections;\n\n    /**\n     * Return an array of <code>Package Specification</code> objects.\n     * If there are no such optional packages, a zero-length array is returned.\n     *\n     * @param manifest Manifest to be parsed\n     * @return the Package Specifications extensions in specified manifest\n     * @throws ParseException if the attributes of the specifications cannot\n     * be parsed according to their expected formats.\n     */\n    public static Specification[] getSpecifications(final Manifest manifest)\n        throws ParseException {\n        if (null == manifest) {\n            return new Specification[ 0 ];\n        }\n\n        final ArrayList results = new ArrayList();\n\n        final Map entries = manifest.getEntries();\n        final Iterator keys = entries.keySet().iterator();\n        while (keys.hasNext()) {\n            final String key = (String) keys.next();\n            final Attributes attributes = (Attributes) entries.get(key);\n            final Specification specification\n                = getSpecification(key, attributes);\n            if (null != specification) {\n                results.add(specification);\n            }\n        }\n\n        final ArrayList trimmedResults = removeDuplicates(results);\n        return (Specification[]) trimmedResults.toArray(new Specification[trimmedResults.size()]);\n    }\n\n    /**\n     * The constructor to create Package Specification object.\n     * Note that every component is allowed to be specified\n     * but only the specificationTitle is mandatory.\n     *\n     * @param specificationTitle the name of specification.\n     * @param specificationVersion the specification Version.\n     * @param specificationVendor the specification Vendor.\n     * @param implementationTitle the title of implementation.\n     * @param implementationVersion the implementation Version.\n     * @param implementationVendor the implementation Vendor.\n     */\n    public Specification(final String specificationTitle,\n                          final String specificationVersion,\n                          final String specificationVendor,\n                          final String implementationTitle,\n                          final String implementationVersion,\n                          final String implementationVendor) {\n        this(specificationTitle, specificationVersion, specificationVendor,\n              implementationTitle, implementationVersion, implementationVendor,\n              null);\n    }\n\n    /**\n     * The constructor to create Package Specification object.\n     * Note that every component is allowed to be specified\n     * but only the specificationTitle is mandatory.\n     *\n     * @param specificationTitle the name of specification.\n     * @param specificationVersion the specification Version.\n     * @param specificationVendor the specification Vendor.\n     * @param implementationTitle the title of implementation.\n     * @param implementationVersion the implementation Version.\n     * @param implementationVendor the implementation Vendor.\n     * @param sections the sections/packages that Specification applies to.\n     */\n    public Specification(final String specificationTitle,\n                          final String specificationVersion,\n                          final String specificationVendor,\n                          final String implementationTitle,\n                          final String implementationVersion,\n                          final String implementationVendor,\n                          final String[] sections) {\n        this.specificationTitle = specificationTitle;\n        this.specificationVendor = specificationVendor;\n\n        if (null != specificationVersion) {\n            try {\n                this.specificationVersion\n                    = new DeweyDecimal(specificationVersion);\n            } catch (final NumberFormatException nfe) {\n                final String error = \"Bad specification version format '\"\n                    + specificationVersion + \"' in '\" + specificationTitle\n                    + \"'. (Reason: \" + nfe + \")\";\n                throw new IllegalArgumentException(error);\n            }\n        }\n\n        this.implementationTitle = implementationTitle;\n        this.implementationVendor = implementationVendor;\n        this.implementationVersion = implementationVersion;\n\n        if (null == this.specificationTitle) {\n            throw new NullPointerException(\"specificationTitle\");\n        }\n\n        String[] copy = null;\n        if (null != sections) {\n            copy = new String[ sections.length ];\n            System.arraycopy(sections, 0, copy, 0, sections.length);\n        }\n        this.sections = copy;\n    }\n\n    /**\n     * Get the title of the specification.\n     *\n     * @return the title of speciication\n     */\n    public String getSpecificationTitle() {\n        return specificationTitle;\n    }\n\n    /**\n     * Get the vendor of the specification.\n     *\n     * @return the vendor of the specification.\n     */\n    public String getSpecificationVendor() {\n        return specificationVendor;\n    }\n\n    /**\n     * Get the title of the specification.\n     *\n     * @return the title of the specification.\n     */\n    public String getImplementationTitle() {\n        return implementationTitle;\n    }\n\n    /**\n     * Get the version of the specification.\n     *\n     * @return the version of the specification.\n     */\n    public DeweyDecimal getSpecificationVersion() {\n        return specificationVersion;\n    }\n\n    /**\n     * Get the vendor of the extensions implementation.\n     *\n     * @return the vendor of the extensions implementation.\n     */\n    public String getImplementationVendor() {\n        return implementationVendor;\n    }\n\n    /**\n     * Get the version of the implementation.\n     *\n     * @return the version of the implementation.\n     */\n    public String getImplementationVersion() {\n        return implementationVersion;\n    }\n\n    /**\n     * Return an array containing sections to which specification applies\n     * or null if relevent to no sections.\n     *\n     * @return an array containing sections to which specification applies\n     *         or null if relevent to no sections.\n     */\n    public String[] getSections() {\n        if (null == sections) {\n            return null;\n        }\n        final String[] newSections = new String[ sections.length ];\n        System.arraycopy(sections, 0, newSections, 0, sections.length);\n        return newSections;\n    }\n\n    /**\n     * Return a Compatibility enum indicating the relationship of this\n     * <code>Package Specification</code> with the specified\n     * <code>Extension</code>.\n     *\n     * @param other the other specification\n     * @return the enum indicating the compatibility (or lack thereof)\n     *         of specifed Package Specification\n     */\n    public Compatibility getCompatibilityWith(final Specification other) {\n        if (!specificationTitle.equals(other.getSpecificationTitle())) {\n            return INCOMPATIBLE;\n        }\n\n        final DeweyDecimal otherSpecificationVersion\n            = other.getSpecificationVersion();\n        if (null != specificationVersion) {\n            if (null == otherSpecificationVersion\n                || !isCompatible(specificationVersion, otherSpecificationVersion)) {\n                return REQUIRE_SPECIFICATION_UPGRADE;\n            }\n        }\n\n        final String otherImplementationVendor\n            = other.getImplementationVendor();\n        if (null != implementationVendor) {\n            if (null == otherImplementationVendor\n                || !implementationVendor.equals(otherImplementationVendor)) {\n                return REQUIRE_VENDOR_SWITCH;\n            }\n        }\n\n        final String otherImplementationVersion\n            = other.getImplementationVersion();\n        if (null != implementationVersion) {\n            if (null == otherImplementationVersion\n                || !implementationVersion.equals(otherImplementationVersion)) {\n                return REQUIRE_IMPLEMENTATION_CHANGE;\n            }\n        }\n\n        return COMPATIBLE;\n    }\n\n    /**\n     * Return <code>true</code> if the specified <code>package</code>\n     * is satisfied by this <code>Specification</code>. Otherwise, return\n     * <code>false</code>.\n     *\n     * @param other the specification\n     * @return true if the specification is compatible with this specification\n     */\n    public boolean isCompatibleWith(final Specification other) {\n        return (COMPATIBLE == getCompatibilityWith(other));\n    }\n\n    /**\n     * Return a String representation of this object.\n     *\n     * @return string representation of object.\n     */\n    public String toString() {\n        final String brace = \": \";\n\n        final StringBuffer sb\n            = new StringBuffer(SPECIFICATION_TITLE.toString());\n        sb.append(brace);\n        sb.append(specificationTitle);\n        sb.append(StringUtils.LINE_SEP);\n\n        if (null != specificationVersion) {\n            sb.append(SPECIFICATION_VERSION);\n            sb.append(brace);\n            sb.append(specificationVersion);\n            sb.append(StringUtils.LINE_SEP);\n        }\n\n        if (null != specificationVendor) {\n            sb.append(SPECIFICATION_VENDOR);\n            sb.append(brace);\n            sb.append(specificationVendor);\n            sb.append(StringUtils.LINE_SEP);\n        }\n\n        if (null != implementationTitle) {\n            sb.append(IMPLEMENTATION_TITLE);\n            sb.append(brace);\n            sb.append(implementationTitle);\n            sb.append(StringUtils.LINE_SEP);\n        }\n\n        if (null != implementationVersion) {\n            sb.append(IMPLEMENTATION_VERSION);\n            sb.append(brace);\n            sb.append(implementationVersion);\n            sb.append(StringUtils.LINE_SEP);\n        }\n\n        if (null != implementationVendor) {\n            sb.append(IMPLEMENTATION_VENDOR);\n            sb.append(brace);\n            sb.append(implementationVendor);\n            sb.append(StringUtils.LINE_SEP);\n        }\n\n        return sb.toString();\n    }\n\n    /**\n     * Return <code>true</code> if the first version number is greater than\n     * or equal to the second; otherwise return <code>false</code>.\n     *\n     * @param first First version number (dotted decimal)\n     * @param second Second version number (dotted decimal)\n     */\n    private boolean isCompatible(final DeweyDecimal first,\n                                 final DeweyDecimal second) {\n        return first.isGreaterThanOrEqual(second);\n    }\n\n    /**\n     * Combine all specifications objects that are identical except\n     * for the sections.\n     *\n     * <p>Note this is very inefficent and should probably be fixed\n     * in the future.</p>\n     *\n     * @param list the array of results to trim\n     * @return an array list with all duplicates removed\n     */\n    private static ArrayList removeDuplicates(final ArrayList list) {\n        final ArrayList results = new ArrayList();\n        final ArrayList sections = new ArrayList();\n        while (list.size() > 0) {\n            final Specification specification = (Specification) list.remove(0);\n            final Iterator iterator = list.iterator();\n            while (iterator.hasNext()) {\n                final Specification other = (Specification) iterator.next();\n                if (isEqual(specification, other)) {\n                    final String[] otherSections = other.getSections();\n                    if (null != otherSections) {\n                        sections.addAll(Arrays.asList(otherSections));\n                    }\n                    iterator.remove();\n                }\n            }\n\n            final Specification merged =\n                mergeInSections(specification, sections);\n            results.add(merged);\n            sections.clear();\n        }\n\n        return results;\n    }\n\n    /**\n     * Test if two specifications are equal except for their sections.\n     *\n     * @param specification one specificaiton\n     * @param other the ohter specification\n     * @return true if two specifications are equal except for their\n     *         sections, else false\n     */\n    private static boolean isEqual(final Specification specification,\n                                    final Specification other) {\n        return\n            specification.getSpecificationTitle().equals(other.getSpecificationTitle())\n            && specification.getSpecificationVersion().isEqual(other.getSpecificationVersion())\n            && specification.getSpecificationVendor().equals(other.getSpecificationVendor())\n            && specification.getImplementationTitle().equals(other.getImplementationTitle())\n            && specification.getImplementationVersion().equals(other.getImplementationVersion())\n            && specification.getImplementationVendor().equals(other.getImplementationVendor());\n    }\n\n    /**\n     * Merge the specified sections into specified section and return result.\n     * If no sections to be added then just return original specification.\n     *\n     * @param specification the specification\n     * @param sectionsToAdd the list of sections to merge\n     * @return the merged specification\n     */\n    private static Specification mergeInSections(final Specification specification,\n                                              final ArrayList sectionsToAdd) {\n        if (0 == sectionsToAdd.size()) {\n            return specification;\n        }\n        sectionsToAdd.addAll(Arrays.asList(specification.getSections()));\n\n        final String[] sections =\n            (String[]) sectionsToAdd.toArray(new String[sectionsToAdd.size()]);\n\n        return new Specification(specification.getSpecificationTitle(),\n                specification.getSpecificationVersion().toString(),\n                specification.getSpecificationVendor(),\n                specification.getImplementationTitle(),\n                specification.getImplementationVersion(),\n                specification.getImplementationVendor(),\n                sections);\n    }\n\n    /**\n     * Trim the supplied string if the string is non-null\n     *\n     * @param value the string to trim or null\n     * @return the trimmed string or null\n     */\n    private static String getTrimmedString(final String value) {\n        return value == null ? null : value.trim();\n    }\n\n    /**\n     * Extract an Package Specification from Attributes.\n     *\n     * @param attributes Attributes to searched\n     * @return the new Specification object, or null\n     */\n    private static Specification getSpecification(final String section,\n                                                   final Attributes attributes)\n        throws ParseException {\n        final String name\n            = getTrimmedString(attributes.getValue(SPECIFICATION_TITLE));\n        if (null == name) {\n            return null;\n        }\n\n        final String specVendor\n            = getTrimmedString(attributes.getValue(SPECIFICATION_VENDOR));\n        if (null == specVendor) {\n            throw new ParseException(MISSING + SPECIFICATION_VENDOR, 0);\n        }\n\n        final String specVersion\n            = getTrimmedString(attributes.getValue(SPECIFICATION_VERSION));\n        if (null == specVersion) {\n            throw new ParseException(MISSING + SPECIFICATION_VERSION, 0);\n        }\n\n        final String impTitle\n            = getTrimmedString(attributes.getValue(IMPLEMENTATION_TITLE));\n        if (null == impTitle) {\n            throw new ParseException(MISSING + IMPLEMENTATION_TITLE, 0);\n        }\n\n        final String impVersion\n            = getTrimmedString(attributes.getValue(IMPLEMENTATION_VERSION));\n        if (null == impVersion) {\n            throw new ParseException(MISSING + IMPLEMENTATION_VERSION, 0);\n        }\n\n        final String impVendor\n            = getTrimmedString(attributes.getValue(IMPLEMENTATION_VENDOR));\n        if (null == impVendor) {\n            throw new ParseException(MISSING + IMPLEMENTATION_VENDOR, 0);\n        }\n\n        return new Specification(name, specVersion, specVendor,\n                                  impTitle, impVersion, impVendor,\n                                  new String[]{section});", "functions": [{"function_name": "getSpecifications", "code": "    public static Specification[] getSpecifications(final Manifest manifest)\n        throws ParseException {\n        if (null == manifest) {\n            return new Specification[ 0 ];\n        }\n\n        final ArrayList results = new ArrayList();\n\n        final Map entries = manifest.getEntries();\n        final Iterator keys = entries.keySet().iterator();\n        while (keys.hasNext()) {\n            final String key = (String) keys.next();\n            final Attributes attributes = (Attributes) entries.get(key);\n            final Specification specification\n                = getSpecification(key, attributes);\n            if (null != specification) {\n                results.add(specification);\n            }\n        }\n\n        final ArrayList trimmedResults = removeDuplicates(results);\n        return (Specification[]) trimmedResults.toArray(new Specification[trimmedResults.size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [7, 10], [1, 11], [2, 12], [3, 13], [3, 14], [3, 15], [3, 16], [4, 17], [5, 18], [6, 19], [7, 20], [10, 21], [13, 22], [17, 23], [11, 24], [22, 25], [14, 26], [20, 27], [13, 28], [15, 29], [16, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 7], [11, 1], [12, 2], [13, 3], [14, 3], [15, 3], [16, 3], [17, 4], [18, 5], [19, 6], [20, 7], [21, 10], [22, 13], [23, 17], [24, 11], [25, 22], [26, 14], [27, 20], [28, 13], [29, 15], [30, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getSpecificationTitle", "code": "    public String getSpecificationTitle() {\n        return specificationTitle;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSpecificationVendor", "code": "    public String getSpecificationVendor() {\n        return specificationVendor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getImplementationTitle", "code": "    public String getImplementationTitle() {\n        return implementationTitle;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSpecificationVersion", "code": "    public DeweyDecimal getSpecificationVersion() {\n        return specificationVersion;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getImplementationVendor", "code": "    public String getImplementationVendor() {\n        return implementationVendor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getImplementationVersion", "code": "    public String getImplementationVersion() {\n        return implementationVersion;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSections", "code": "    public String[] getSections() {\n        if (null == sections) {\n            return null;\n        }\n        final String[] newSections = new String[ sections.length ];\n        System.arraycopy(sections, 0, newSections, 0, sections.length);\n        return newSections;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [4, 7], [3, 8], [5, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 4], [8, 3], [9, 5], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getCompatibilityWith", "code": "    public Compatibility getCompatibilityWith(final Specification other) {\n        if (!specificationTitle.equals(other.getSpecificationTitle())) {\n            return INCOMPATIBLE;\n        }\n\n        final DeweyDecimal otherSpecificationVersion\n            = other.getSpecificationVersion();\n        if (null != specificationVersion) {\n            if (null == otherSpecificationVersion\n                || !isCompatible(specificationVersion, otherSpecificationVersion)) {\n                return REQUIRE_SPECIFICATION_UPGRADE;\n            }\n        }\n\n        final String otherImplementationVendor\n            = other.getImplementationVendor();\n        if (null != implementationVendor) {\n            if (null == otherImplementationVendor\n                || !implementationVendor.equals(otherImplementationVendor)) {\n                return REQUIRE_VENDOR_SWITCH;\n            }\n        }\n\n        final String otherImplementationVersion\n            = other.getImplementationVersion();\n        if (null != implementationVersion) {\n            if (null == otherImplementationVersion\n                || !implementationVersion.equals(otherImplementationVersion)) {\n                return REQUIRE_IMPLEMENTATION_CHANGE;\n            }\n        }\n\n        return COMPATIBLE;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [4, 11], [6, 12], [8, 13], [2, 14], [10, 15], [3, 16], [4, 17], [11, 18], [5, 19], [6, 20], [12, 21], [7, 22], [8, 23], [13, 24], [14, 25], [17, 26], [20, 27], [14, 28], [25, 29], [25, 30], [17, 31], [26, 32], [26, 33], [20, 34], [27, 35], [27, 36], [30, 37], [33, 38], [36, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 4], [12, 6], [13, 8], [14, 2], [15, 10], [16, 3], [17, 4], [18, 11], [19, 5], [20, 6], [21, 12], [22, 7], [23, 8], [24, 13], [25, 14], [26, 17], [27, 20], [28, 14], [29, 25], [30, 25], [31, 17], [32, 26], [33, 26], [34, 20], [35, 27], [36, 27], [37, 30], [38, 33], [39, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "isCompatibleWith", "code": "    public boolean isCompatibleWith(final Specification other) {\n        return (COMPATIBLE == getCompatibilityWith(other));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toString", "code": "    public String toString() {\n        final String brace = \": \";\n\n        final StringBuffer sb\n            = new StringBuffer(SPECIFICATION_TITLE.toString());\n        sb.append(brace);\n        sb.append(specificationTitle);\n        sb.append(StringUtils.LINE_SEP);\n\n        if (null != specificationVersion) {\n            sb.append(SPECIFICATION_VERSION);\n            sb.append(brace);\n            sb.append(specificationVersion);\n            sb.append(StringUtils.LINE_SEP);\n        }\n\n        if (null != specificationVendor) {\n            sb.append(SPECIFICATION_VENDOR);\n            sb.append(brace);\n            sb.append(specificationVendor);\n            sb.append(StringUtils.LINE_SEP);\n        }\n\n        if (null != implementationTitle) {\n            sb.append(IMPLEMENTATION_TITLE);\n            sb.append(brace);\n            sb.append(implementationTitle);\n            sb.append(StringUtils.LINE_SEP);\n        }\n\n        if (null != implementationVersion) {\n            sb.append(IMPLEMENTATION_VERSION);\n            sb.append(brace);\n            sb.append(implementationVersion);\n            sb.append(StringUtils.LINE_SEP);\n        }\n\n        if (null != implementationVendor) {\n            sb.append(IMPLEMENTATION_VENDOR);\n            sb.append(brace);\n            sb.append(implementationVendor);\n            sb.append(StringUtils.LINE_SEP);\n        }\n\n        return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [5, 13], [6, 14], [0, 15], [0, 16], [0, 17], [10, 18], [11, 19], [12, 20], [13, 21], [14, 22], [7, 23], [8, 24], [2, 25], [2, 26], [2, 27], [2, 28], [3, 29], [3, 30], [3, 31], [3, 32], [4, 33], [4, 34], [4, 35], [4, 36], [5, 37], [5, 38], [5, 39], [5, 40], [6, 41], [6, 42], [6, 43], [6, 44], [23, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 4], [13, 5], [14, 6], [15, 0], [16, 0], [17, 0], [18, 10], [19, 11], [20, 12], [21, 13], [22, 14], [23, 7], [24, 8], [25, 2], [26, 2], [27, 2], [28, 2], [29, 3], [30, 3], [31, 3], [32, 3], [33, 4], [34, 4], [35, 4], [36, 4], [37, 5], [38, 5], [39, 5], [40, 5], [41, 6], [42, 6], [43, 6], [44, 6], [45, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "isCompatible", "code": "    private boolean isCompatible(final DeweyDecimal first,\n                                 final DeweyDecimal second) {\n        return first.isGreaterThanOrEqual(second);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeDuplicates", "code": "    private static ArrayList removeDuplicates(final ArrayList list) {\n        final ArrayList results = new ArrayList();\n        final ArrayList sections = new ArrayList();\n        while (list.size() > 0) {\n            final Specification specification = (Specification) list.remove(0);\n            final Iterator iterator = list.iterator();\n            while (iterator.hasNext()) {\n                final Specification other = (Specification) iterator.next();\n                if (isEqual(specification, other)) {\n                    final String[] otherSections = other.getSections();\n                    if (null != otherSections) {\n                        sections.addAll(Arrays.asList(otherSections));\n                    }\n                    iterator.remove();\n                }\n            }\n\n            final Specification merged =\n                mergeInSections(specification, sections);\n            results.add(merged);\n            sections.clear();\n        }\n\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [6, 11], [6, 12], [3, 13], [4, 14], [2, 15], [2, 16], [8, 17], [7, 18], [8, 19], [8, 20], [9, 21], [19, 22], [10, 23], [19, 24], [19, 25], [23, 26], [19, 27], [24, 28], [20, 29], [28, 30], [25, 31], [24, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 6], [12, 6], [13, 3], [14, 4], [15, 2], [16, 2], [17, 8], [18, 7], [19, 8], [20, 8], [21, 9], [22, 19], [23, 10], [24, 19], [25, 19], [26, 23], [27, 19], [28, 24], [29, 20], [30, 28], [31, 25], [32, 24], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "isEqual", "code": "    private static boolean isEqual(final Specification specification,\n                                    final Specification other) {\n        return\n            specification.getSpecificationTitle().equals(other.getSpecificationTitle())\n            && specification.getSpecificationVersion().isEqual(other.getSpecificationVersion())\n            && specification.getSpecificationVendor().equals(other.getSpecificationVendor())\n            && specification.getImplementationTitle().equals(other.getImplementationTitle())\n            && specification.getImplementationVersion().equals(other.getImplementationVersion())\n            && specification.getImplementationVendor().equals(other.getImplementationVendor());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [7, 10], [8, 11], [9, 12], [9, 13], [11, 14], [12, 15], [13, 16], [13, 17], [15, 18], [16, 19], [17, 20], [17, 21], [19, 22], [20, 23], [21, 24], [23, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 7], [11, 8], [12, 9], [13, 9], [14, 11], [15, 12], [16, 13], [17, 13], [18, 15], [19, 16], [20, 17], [21, 17], [22, 19], [23, 20], [24, 21], [25, 23], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "mergeInSections", "code": "    private static Specification mergeInSections(final Specification specification,\n                                              final ArrayList sectionsToAdd) {\n        if (0 == sectionsToAdd.size()) {\n            return specification;\n        }\n        sectionsToAdd.addAll(Arrays.asList(specification.getSections()));\n\n        final String[] sections =\n            (String[]) sectionsToAdd.toArray(new String[sectionsToAdd.size()]);\n\n        return new Specification(specification.getSpecificationTitle(),\n                specification.getSpecificationVersion().toString(),\n                specification.getSpecificationVendor(),\n                specification.getImplementationTitle(),\n                specification.getImplementationVersion(),\n                specification.getImplementationVendor(),\n                sections);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [3, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [7, 15], [3, 16], [8, 17], [8, 18], [13, 19], [2, 20], [15, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 3], [9, 6], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 7], [16, 3], [17, 8], [18, 8], [19, 13], [20, 2], [21, 15], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getTrimmedString", "code": "    private static String getTrimmedString(final String value) {\n        return value == null ? null : value.trim();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSpecification", "code": "    private static Specification getSpecification(final String section,\n                                                   final Attributes attributes)\n        throws ParseException {\n        final String name\n            = getTrimmedString(attributes.getValue(SPECIFICATION_TITLE));\n        if (null == name) {\n            return null;\n        }\n\n        final String specVendor\n            = getTrimmedString(attributes.getValue(SPECIFICATION_VENDOR));\n        if (null == specVendor) {\n            throw new ParseException(MISSING + SPECIFICATION_VENDOR, 0);\n        }\n\n        final String specVersion\n            = getTrimmedString(attributes.getValue(SPECIFICATION_VERSION));\n        if (null == specVersion) {\n            throw new ParseException(MISSING + SPECIFICATION_VERSION, 0);\n        }\n\n        final String impTitle\n            = getTrimmedString(attributes.getValue(IMPLEMENTATION_TITLE));\n        if (null == impTitle) {\n            throw new ParseException(MISSING + IMPLEMENTATION_TITLE, 0);\n        }\n\n        final String impVersion\n            = getTrimmedString(attributes.getValue(IMPLEMENTATION_VERSION));\n        if (null == impVersion) {\n            throw new ParseException(MISSING + IMPLEMENTATION_VERSION, 0);\n        }\n\n        final String impVendor\n            = getTrimmedString(attributes.getValue(IMPLEMENTATION_VENDOR));\n        if (null == impVendor) {\n            throw new ParseException(MISSING + IMPLEMENTATION_VENDOR, 0);\n        }\n\n        return new Specification(name, specVersion, specVendor,\n                                  impTitle, impVersion, impVendor,\n                                  new String[]{section});", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [4, 18], [6, 19], [8, 20], [10, 21], [12, 22], [2, 23], [17, 24], [3, 25], [4, 26], [18, 27], [5, 28], [6, 29], [19, 30], [7, 31], [8, 32], [20, 33], [9, 34], [10, 35], [21, 36], [11, 37], [12, 38], [22, 39], [13, 40], [23, 41], [25, 42], [26, 43], [28, 44], [29, 45], [31, 46], [32, 47], [34, 48], [35, 49], [37, 50], [38, 51], [40, 52], [41, 53], [41, 54], [43, 55], [43, 56], [45, 57], [45, 58], [47, 59], [47, 60], [49, 61], [49, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 4], [19, 6], [20, 8], [21, 10], [22, 12], [23, 2], [24, 17], [25, 3], [26, 4], [27, 18], [28, 5], [29, 6], [30, 19], [31, 7], [32, 8], [33, 20], [34, 9], [35, 10], [36, 21], [37, 11], [38, 12], [39, 22], [40, 13], [41, 23], [42, 25], [43, 26], [44, 28], [45, 29], [46, 31], [47, 32], [48, 34], [49, 35], [50, 37], [51, 38], [52, 40], [53, 41], [54, 41], [55, 43], [56, 43], [57, 45], [58, 45], [59, 47], [60, 47], [61, 49], [62, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "Specification", "code": "    public Specification(final String specificationTitle,\n                          final String specificationVersion,\n                          final String specificationVendor,\n                          final String implementationTitle,\n                          final String implementationVersion,\n                          final String implementationVendor) {\n        this(specificationTitle, specificationVersion, specificationVendor,\n              implementationTitle, implementationVersion, implementationVendor,\n              null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "Specification", "code": "    public Specification(final String specificationTitle,\n                          final String specificationVersion,\n                          final String specificationVendor,\n                          final String implementationTitle,\n                          final String implementationVersion,\n                          final String implementationVendor,\n                          final String[] sections) {\n        this.specificationTitle = specificationTitle;\n        this.specificationVendor = specificationVendor;\n\n        if (null != specificationVersion) {\n            try {\n                this.specificationVersion\n                    = new DeweyDecimal(specificationVersion);\n            } catch (final NumberFormatException nfe) {\n                final String error = \"Bad specification version format '\"\n                    + specificationVersion + \"' in '\" + specificationTitle\n                    + \"'. (Reason: \" + nfe + \")\";\n                throw new IllegalArgumentException(error);\n            }\n        }\n\n        this.implementationTitle = implementationTitle;\n        this.implementationVendor = implementationVendor;\n        this.implementationVersion = implementationVersion;\n\n        if (null == this.specificationTitle) {\n            throw new NullPointerException(\"specificationTitle\");\n        }\n\n        String[] copy = null;\n        if (null != sections) {\n            copy = new String[ sections.length ];\n            System.arraycopy(sections, 0, copy, 0, sections.length);\n        }\n        this.sections = copy;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [3, 14], [0, 15], [0, 16], [0, 17], [4, 18], [0, 19], [0, 20], [13, 21], [2, 22], [3, 23], [14, 24], [4, 25], [18, 26], [1, 27], [1, 28], [23, 29], [25, 30], [27, 31], [27, 32], [29, 33], [30, 34], [30, 35], [25, 36], [34, 37], [36, 38], [35, 39], [39, 40], [39, 41], [41, 42], [42, 43], [42, 44], [44, 45], [45, 46], [45, 47], [47, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 3], [15, 0], [16, 0], [17, 0], [18, 4], [19, 0], [20, 0], [21, 13], [22, 2], [23, 3], [24, 14], [25, 4], [26, 18], [27, 1], [28, 1], [29, 23], [30, 25], [31, 27], [32, 27], [33, 29], [34, 30], [35, 30], [36, 25], [37, 34], [38, 36], [39, 35], [40, 39], [41, 39], [42, 41], [43, 42], [44, 42], [45, 44], [46, 45], [47, 45], [48, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}], "label": 0}
{"sample_id": "jedit-4.3-4730", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/browser/VFSBrowser.java", "language": "java", "name": "org.gjt.sp.jedit.browser.VFSBrowser", "code": "public class VFSBrowser extends JPanel implements EBComponent,\n\tDefaultFocusComponent, DockableWindow\n{\n\tpublic static final String NAME = \"vfs.browser\";\n\n\t//{{{ Browser types\n\t/**\n\t * Open file dialog mode. Equals JFileChooser.OPEN_DIALOG for\n\t * backwards compatibility.\n\t */\n\tpublic static final int OPEN_DIALOG = 0;\n\n\t/**\n\t * Save file dialog mode. Equals JFileChooser.SAVE_DIALOG for\n\t * backwards compatibility.\n\t */\n\tpublic static final int SAVE_DIALOG = 1;\n\t/**\n\t * Choose directory dialog mode.\n\t */\n\tpublic static final int BROWSER_DIALOG = 4;\n\t/**\n\t * Choose directory dialog mode.\n\t */\n\tpublic static final int CHOOSE_DIRECTORY_DIALOG = 3;\n\n\t/**\n\t * Stand-alone browser mode.\n\t */\n\tpublic static final int BROWSER = 2;\n\t//}}}\n\n\t//{{{ browseDirectoryInNewWindow() method\n\t/**\n\t * Opens the specified directory in a new, floating, file system browser.\n\t * @param view The view\n\t * @param path The directory's path\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic static void browseDirectoryInNewWindow(View view, String path)\n\t{\n\t\tDockableWindowManager wm = view.getDockableWindowManager();\n\t\tif(path != null)\n\t\t{\n\t\t\t// this is such a bad way of doing it, but oh well...\n\t\t\tjEdit.setTemporaryProperty(\"vfs.browser.path.tmp\",path);\n\t\t}\n\t\twm.floatDockableWindow(\"vfs.browser\");\n\t\tjEdit.unsetProperty(\"vfs.browser.path.tmp\");\n\t} //}}}\n\n\t//{{{ browseDirectory() method\n\t/**\n\t * Opens the specified directory in a file system browser.\n\t * @param view The view\n\t * @param path The directory's path\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic static void browseDirectory(View view, String path)\n\t{\n\t\tDockableWindowManager wm = view.getDockableWindowManager();\n\t\tVFSBrowser browser = (VFSBrowser)wm.getDockable(NAME);\n\t\tif(browser != null)\n\t\t{\n\t\t\twm.showDockableWindow(NAME);\n\t\t\tbrowser.setDirectory(path);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(path != null)\n\t\t\t{\n\t\t\t\t// this is such a bad way of doing it, but oh well...\n\t\t\t\tjEdit.setTemporaryProperty(\"vfs.browser.path.tmp\",path);\n\t\t\t}\n\t\t\twm.addDockableWindow(\"vfs.browser\");\n\t\t\tjEdit.unsetProperty(\"vfs.browser.path.tmp\");\n\t\t}\n\t} //}}}\n\n\t//{{{ getActionContext() method\n\t/**\n\t * Returns the browser action context.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static ActionContext getActionContext()\n\t{\n\t\treturn actionContext;\n\t} //}}}\n\n\t//{{{ VFSBrowser constructor\n\t/**\n\t * Creates a new VFS browser.\n\t * @param view The view to open buffers in by default\n\t */\n\tpublic VFSBrowser(View view, String position)\n\t{\n\t\tthis(view,null,BROWSER,true,position);\n\t} //}}}\n\n\t//{{{ VFSBrowser constructor\n\t/**\n\t * Creates a new VFS browser.\n\t * @param view The view to open buffers in by default\n\t * @param path The path to display\n\t * @param mode The browser mode\n\t * @param multipleSelection True if multiple selection should be allowed\n\t * @param position Where the browser is located\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic VFSBrowser(View view, String path, int mode,\n\t\tboolean multipleSelection, String position)\n\t{\n\t\tsuper(new BorderLayout());\n\n\t\tlistenerList = new EventListenerList();\n\n\t\tthis.mode = mode;\n\t\tthis.multipleSelection = multipleSelection;\n\t\tthis.view = view;\n\n\t\tDockableWindowManager dwm = view.getDockableWindowManager();\n\t\tKeyListener keyListener = dwm.closeListener(NAME);\n\t\taddKeyListener(keyListener);\n\t\t\n\t\tcurrentEncoding = jEdit.getProperty(\"buffer.encoding\",\n\t\t\tSystem.getProperty(\"file.encoding\"));\n\t\tautoDetectEncoding = jEdit.getBooleanProperty(\n\t\t\t\"buffer.encodingAutodetect\");\n\n\t\tActionHandler actionHandler = new ActionHandler();\n\n\t\ttopBox = new Box(BoxLayout.Y_AXIS);\n\t\thorizontalLayout = (mode != BROWSER\n\t\t\t|| DockableWindowManager.TOP.equals(position)\n\t\t\t|| DockableWindowManager.BOTTOM.equals(position));\n\n\t\ttoolbarBox = new Box(horizontalLayout\n\t\t\t? BoxLayout.X_AXIS\n\t\t\t: BoxLayout.Y_AXIS);\n\n\t\ttopBox.add(toolbarBox);\n\n\t\tGridBagLayout layout = new GridBagLayout();\n\t\tpathAndFilterPanel = new JPanel(layout);\n\t\tif(isHorizontalLayout())\n\t\t\tpathAndFilterPanel.setBorder(new EmptyBorder(12,12,12,12));\n\n\t\tGridBagConstraints cons = new GridBagConstraints();\n\t\tcons.gridwidth = cons.gridheight = 1;\n\t\tcons.gridx = cons.gridy = 0;\n\t\tcons.fill = GridBagConstraints.BOTH;\n\t\tcons.anchor = GridBagConstraints.EAST;\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"vfs.browser.path\"),\n\t\t\tSwingConstants.RIGHT);\n\t\tlabel.setBorder(new EmptyBorder(0,0,0,12));\n\t\tlayout.setConstraints(label,cons);\n\t\tpathAndFilterPanel.add(label);\n\n\t\tpathField = new HistoryTextField(\"vfs.browser.path\");\n\t\tpathField.setName(\"path\");\n\t\tpathField.addKeyListener(keyListener);\n\t\tpathField.setInstantPopups(true);\n\t\tpathField.setEnterAddsToHistory(false);\n\t\tpathField.setSelectAllOnFocus(true);\n\t\t\n\t\tif (mode == BROWSER)\n\t\t{\n\t\t\tpathField.addKeyListener(new KeyAdapter()\n\t\t\t{\n\t\t\t\tpublic void keyReleased(KeyEvent e)\n\t\t\t\t{\n\t\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ESCAPE)\n\t\t\t\t\t{\n\t\t\t\t\t\tpathField.setText(VFSBrowser.this.path);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\t// because its preferred size can be quite wide, we\n\t\t// don't want it to make the browser way too big,\n\t\t// so set the preferred width to 0.\n\t\tDimension prefSize = pathField.getPreferredSize();\n\t\tprefSize.width = 0;\n\t\tpathField.setPreferredSize(prefSize);\n\t\tpathField.addActionListener(actionHandler);\n\t\tcons.gridx = 1;\n\t\tcons.weightx = 1.0;\n\t\tcons.gridwidth = GridBagConstraints.REMAINDER;\n\n\t\tlayout.setConstraints(pathField,cons);\n\t\tpathAndFilterPanel.add(pathField);\n\n\t\tfilterCheckbox = new JCheckBox(jEdit.getProperty(\"vfs.browser.filter\"));\n\t\tfilterCheckbox.setMargin(new Insets(0,0,0,0));\n//\t\tfilterCheckbox.setRequestFocusEnabled(false);\n\t\tfilterCheckbox.setBorder(new EmptyBorder(0,0,0,12));\n\t\tfilterCheckbox.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"vfs.browser.filter-enabled\"));\n\n\t\tfilterCheckbox.addActionListener(actionHandler);\n\t\tfilterCheckbox.addKeyListener(keyListener);\n\t\tfilterCheckbox.setName(\"filter-checkbox\");\n\t\tif(mode != CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\tcons.gridwidth = 1;\n\t\t\tcons.gridx = 0;\n\t\t\tcons.weightx = 0.0;\n\t\t\tcons.gridy = 1;\n\t\t\tlayout.setConstraints(filterCheckbox,cons);\n\t\t\tpathAndFilterPanel.add(filterCheckbox);\n\t\t}\n\n\t\tfilterField = new JComboBox();\n\t\tfilterEditor = new HistoryComboBoxEditor(\"vfs.browser.filter\");\n\t\tfilterEditor.setToolTipText(jEdit.getProperty(\"glob.tooltip\"));\n\t\tfilterEditor.setInstantPopups(true);\n\t\tfilterEditor.setSelectAllOnFocus(true);\n\t\tfilterEditor.addActionListener(actionHandler);\n\t\tfilterEditor.addKeyListener(keyListener);\n\t\tfilterField.setName(\"filter-field\");\n\t\tString filter;\n\t\tif(mode == BROWSER || !jEdit.getBooleanProperty(\n\t\t\t\"vfs.browser.currentBufferFilter\"))\n\t\t{\n\t\t\tfilter = jEdit.getProperty(\"vfs.browser.last-filter\");\n\t\t\tif(filter == null)\n\t\t\t\tfilter = jEdit.getProperty(\"vfs.browser.default-filter\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString ext = MiscUtilities.getFileExtension(\n\t\t\t\tview.getBuffer().getName());\n\t\t\tif(ext.length() == 0)\n\t\t\t\tfilter = jEdit.getProperty(\"vfs.browser.default-filter\");\n\t\t\telse\n\t\t\t\tfilter = '*' + ext;\n\t\t}\n\n\t\t// filterField.getEditor().setItem(new GlobVFSFileFilter(filter));\n\t\t// filterField.addItem(filterField.getEditor().getItem());\n\t\tfilterEditor.setItem(new GlobVFSFileFilter(filter));\n\t\tfilterField.addItem(filterEditor.getItem());\n\t\tfilterField.addItemListener(actionHandler);\n\t\tfilterField.setRenderer(new VFSFileFilterRenderer());\n\n\t\t// loads the registered VFSFileFilter services.\n\t\tString[] _filters = ServiceManager.getServiceNames(VFSFileFilter.SERVICE_NAME);\n\t\tfor (int i = 0; i < _filters.length; i++)\n\t\t{\n\t\t\tVFSFileFilter _filter = (VFSFileFilter)\n\t\t\t\tServiceManager.getService(VFSFileFilter.SERVICE_NAME, _filters[i]);\n\t\t\tfilterField.addItem(_filter);\n\t\t}\n\n\t\tif(mode != CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\tcons.gridwidth = GridBagConstraints.REMAINDER;\n\t\t\tcons.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tcons.gridx = 1;\n\t\t\tcons.weightx = 1.0;\n\t\t\tif (filterField.getItemCount() > 1)\n\t\t\t{\n\t\t\t\tfilterField.setEditor(filterEditor);\n\t\t\t\tfilterField.setEditable(true);\n\t\t\t\tlayout.setConstraints(filterField,cons);\n\t\t\t\tpathAndFilterPanel.add(filterField);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlayout.setConstraints(filterEditor,cons);\n\t\t\t\tpathAndFilterPanel.add(filterEditor);\n\t\t\t}\n\t\t}\n\n\t\ttopBox.add(pathAndFilterPanel);\n\t\tadd(BorderLayout.NORTH,topBox);\n\n\t\tadd(BorderLayout.CENTER,browserView = new BrowserView(this));\n\t\tif(isHorizontalLayout())\n\t\t\tbrowserView.setBorder(new EmptyBorder(0,12,0,12));\n\t\tdefaultFocusComponent = browserView.getTable();\n\t\tpropertiesChanged();\n\n\t\tupdateFilterEnabled();\n\n\t\tsetFocusTraversalPolicy(new LayoutFocusTraversalPolicy());\n\t\t// see VFSBrowser.browseDirectory()\n\t\tif(path == null)\n\t\t\tpath = jEdit.getProperty(\"vfs.browser.path.tmp\");\n\n\t\tif(path == null || path.length() == 0)\n\t\t{\n\t\t\tString userHome = System.getProperty(\"user.home\");\n\t\t\tString defaultPath = jEdit.getProperty(\"vfs.browser.defaultPath\");\n\t\t\tif(\"home\".equals(defaultPath))\n\t\t\t\tpath = userHome;\n\t\t\telse if(\"working\".equals(defaultPath))\n\t\t\t\tpath = System.getProperty(\"user.dir\");\n\t\t\telse if(\"buffer\".equals(defaultPath))\n\t\t\t{\n\t\t\t\tBuffer buffer = view.getBuffer();\n\t\t\t\tpath = buffer.getDirectory();\n\t\t\t}\n\t\t\telse if(\"last\".equals(defaultPath))\n\t\t\t{\n\t\t\t\tHistoryModel pathModel = HistoryModel.getModel(\"vfs.browser.path\");\n\t\t\t\tif(pathModel.getSize() == 0)\n\t\t\t\t\tpath = \"~\";\n\t\t\t\telse\n\t\t\t\t\tpath = pathModel.getItem(0);\n\t\t\t}\n\t\t\telse if(\"favorites\".equals(defaultPath))\n\t\t\t\tpath = \"favorites:\";\n\t\t\telse\n\t\t\t{\n\t\t\t\t// unknown value??!!!\n\t\t\t\tpath = userHome;\n\t\t\t}\n\t\t}\n\n\t\tfinal String _path = path;\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tsetDirectory(_path);\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ focusOnDefaultComponent() method\n\tpublic void focusOnDefaultComponent()\n\t{\n\t\t// pathField.requestFocus();\t\t\n\t\tdefaultFocusComponent.requestFocus();\n\t} //}}}\n\n\t// {{{ setDefaultFocusComponent()\n\t/** Only used by VFSFileChooserDialog, since it embeds this in a dialog\n\t */\n\tvoid setDefaultFocusComponent(JComponent c) \n\t{\n\t\tdefaultFocusComponent = c;\n\t}// }}}\n\t\n\t//{{{ addNotify() method\n\t@Override\n\tpublic void addNotify()\n\t{\n\t\tsuper.addNotify();\n\t\tEditBus.addToBus(this);\n\t} //}}}\n\n\t//{{{ removeNotify() method\n\t@Override\n\tpublic void removeNotify()\n\t{\n\t\tsuper.removeNotify();\n\t\tjEdit.setBooleanProperty(\"vfs.browser.filter-enabled\",\n\t\t\tfilterCheckbox.isSelected());\n\t\tif(mode == BROWSER || !jEdit.getBooleanProperty(\n\t\t\t\"vfs.browser.currentBufferFilter\"))\n\t\t{\n\t\t\tVFSFileFilter selectedFilter =\n\t\t\t\t(VFSFileFilter) filterField.getSelectedItem();\n\t\t\tif (selectedFilter instanceof GlobVFSFileFilter)\n\t\t\t\tjEdit.setProperty(\"vfs.browser.last-filter\",\n\t\t\t\t\t((GlobVFSFileFilter)selectedFilter).getGlob());\n\t\t}\n\t\tEditBus.removeFromBus(this);\n\t} //}}}\n\n\t//{{{ handleMessage() method\n\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof PropertiesChanged)\n\t\t\tpropertiesChanged();\n\t\telse if(msg instanceof BufferUpdate)\n\t\t{\n\t\t\tBufferUpdate bmsg = (BufferUpdate)msg;\n\t\t\tif(bmsg.getWhat() == BufferUpdate.CREATED\n\t\t\t\t|| bmsg.getWhat() == BufferUpdate.CLOSED)\n\t\t\t\tbrowserView.updateFileView();\n\t\t}\n\t\telse if(msg instanceof PluginUpdate)\n\t\t{\n\t\t\tPluginUpdate pmsg = (PluginUpdate)msg;\n\t\t\tif((pmsg.getWhat() == PluginUpdate.LOADED ||\n\t\t\t   pmsg.getWhat() == PluginUpdate.UNLOADED) &&\n\t\t\t\tplugins != null /* plugins can be null if the VFSBrowser menu bar is hidden */)\n\t\t\t{\n\t\t\t\tplugins.updatePopupMenu();\n\t\t\t}\n\t\t}\n\t\telse if(msg instanceof VFSUpdate)\n\t\t{\n\t\t\tmaybeReloadDirectory(((VFSUpdate)msg).getPath());\n\t\t}\n\t} //}}}\n\n\t//{{{ getView() method\n\tpublic View getView()\n\t{\n\t\treturn view;\n\t} //}}}\n\n\t//{{{ getMode() method\n\tpublic int getMode()\n\t{\n\t\treturn mode;\n\t} //}}}\n\n\t//{{{ isMultipleSelectionEnabled() method\n\tpublic boolean isMultipleSelectionEnabled()\n\t{\n\t\treturn multipleSelection;\n\t} //}}}\n\n\t//{{{ isHorizontalLayout() method\n\tpublic boolean isHorizontalLayout()\n\t{\n\t\treturn horizontalLayout;\n\t} //}}}\n\n\t//{{{ getShowHiddenFiles() method\n\tpublic boolean getShowHiddenFiles()\n\t{\n\t\treturn showHiddenFiles;\n\t} //}}}\n\n\t//{{{ setShowHiddenFiles() method\n\tpublic void setShowHiddenFiles(boolean showHiddenFiles)\n\t{\n\t\tthis.showHiddenFiles = showHiddenFiles;\n\t} //}}}\n\n\t//{{{ getFilenameFilter() method\n\t/**\n\t * Returns the file name filter glob.\n\t * @since jEdit 3.2pre2\n\t * @deprecated Use {@link #getVFSFileFilter()} instead. This method\n\t *             might return wrong information since jEdit 4.3pre6.\n\t */\n\t@Deprecated\n\tpublic String getFilenameFilter()\n\t{\n\t\tif(filterCheckbox.isSelected())\n\t\t{\n\t\t\tString filter = filterField.getSelectedItem().toString();\n\t\t\tif(filter.length() == 0)\n\t\t\t\treturn \"*\";\n\t\t\telse\n\t\t\t\treturn filter;\n\t\t}\n\t\telse\n\t\t\treturn \"*\";\n\t} //}}}\n\n\t//{{{ getVFSFileFilter() method\n\t/**\n\t * Returns the currently active VFSFileFilter.\n\t *\n\t * @since jEdit 4.3pre7\n\t */\n\tpublic VFSFileFilter getVFSFileFilter()\n\t{\n\t\tif (mode == CHOOSE_DIRECTORY_DIALOG)\n\t\t\treturn new DirectoriesOnlyFilter();\n\t\treturn \t(VFSFileFilter) filterField.getSelectedItem();\n\t} //}}}\n\n\t//{{{ addVFSFileFilter() method\n\t/**\n\t * Adds a file filter to the browser.\n\t *\n\t * @since jEdit 4.3pre7\n\t */\n\tpublic void addVFSFileFilter(VFSFileFilter filter)\n\t{\n\t\tfilterField.addItem(filter);\n\t\tif (filterField.getItemCount() == 2)\n\t\t{\n\t\t\tfilterField.setEditor(filterEditor);\n\t\t\tfilterField.setEditable(true);\n\n\t\t\tGridBagLayout layout = (GridBagLayout) pathAndFilterPanel.getLayout();\n\t\t\tGridBagConstraints cons =layout.getConstraints(filterEditor);\n\t\t\tcons.gridwidth = GridBagConstraints.REMAINDER;\n\t\t\tcons.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tcons.gridx = 1;\n\t\t\tcons.weightx = 1;\n\n\t\t\tpathAndFilterPanel.remove(filterEditor);\n\t\t\tlayout.setConstraints(filterField, cons);\n\t\t\tpathAndFilterPanel.add(filterField);\n\t\t\tpathAndFilterPanel.validate();\n\t\t\tpathAndFilterPanel.repaint();\n\t\t}\n\t} //}}}\n\n\t//{{{ setFilenameFilter() method\n\tpublic void setFilenameFilter(String filter)\n\t{\n\t\tif(filter == null || filter.length() == 0 || \"*\".equals(filter))\n\t\t\tfilterCheckbox.setSelected(false);\n\t\telse\n\t\t{\n\t\t\tfilterCheckbox.setSelected(true);\n\t\t\tfilterEditor.setItem(new GlobVFSFileFilter(filter));\n\t\t}\n\t} //}}}\n\n\t//{{{ getDirectoryField() method\n\tpublic HistoryTextField getDirectoryField()\n\t{\n\t\treturn pathField;\n\t} //}}}\n\n\t//{{{ getDirectory() method\n\tpublic String getDirectory()\n\t{\n\t\treturn path;\n\t} //}}}\n\n\t// {{{ Directory Stack operations\n\t/**\n\t * @since jedit 4.3pre15\n\t */\n\tpublic void previousDirectory() \n\t{\n\t\tif (historyStack.size() > 1)\n\t\t{\n\t\t\thistoryStack.pop();\n\t\t\tnextDirectoryStack.push(path);\n\t\t\tsetDirectory(historyStack.peek());\n\t\t\thistoryStack.pop();\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * @since jEdit 4.3pre15\n\t */\n\tpublic void nextDirectory() \n\t{\n\t\tif (!nextDirectoryStack.isEmpty())\n\t\t{\n\t\t\tsetDirectory(nextDirectoryStack.pop());\n\t\t}\n\t}\n\t// }}}\t\n\t\n\t//{{{ setDirectory() method\n\tpublic void setDirectory(String path)\n\t{\n\t\tif(path.startsWith(\"file:\"))\n\t\t\tpath = path.substring(5);\n\t\tpath = MiscUtilities.expandVariables(path);\n\t\tpathField.setText(path);\n\n\t\tif(!startRequest())\n\t\t\treturn;\n\n\t\thistoryStack.push(path);\n\t\tbrowserView.saveExpansionState();\n\t\tbrowserView.loadDirectory(null,path,true);\n\t\tthis.path = path;\n\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tendRequest();\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ getRootDirectory() method\n\tpublic static String getRootDirectory()\n\t{\n\t\tif(OperatingSystem.isMacOS() || OperatingSystem.isDOSDerived())\n\t\t\treturn FileRootsVFS.PROTOCOL + ':';\n\t\telse\n\t\t\treturn \"/\";\n\t} //}}}\n\n\t//{{{ rootDirectory() method\n\t/**\n\t * Goes to the local drives directory.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic void rootDirectory()\n\t{\n\t\tsetDirectory(getRootDirectory());\n\t} //}}}\n\n\t//{{{ reloadDirectory() method\n\tpublic void reloadDirectory()\n\t{\n\t\t// used by FTP plugin to clear directory cache\n\t\tVFSManager.getVFSForPath(path).reloadDirectory(path);\n\n\t\tbrowserView.saveExpansionState();\n\t\tbrowserView.loadDirectory(null,path,false);\n\t} //}}}\n\n\t//{{{ delete() method\n\t/**\n\t * Note that all files must be on the same VFS.\n\t * @since jEdit 4.3pre2\n\t */\n\tpublic void delete(VFSFile[] files)\n\t{\n\t\tString dialogType;\n\n\t\tif(MiscUtilities.isURL(files[0].getDeletePath())\n\t\t\t&& FavoritesVFS.PROTOCOL.equals(\n\t\t\tMiscUtilities.getProtocolOfURL(files[0].getDeletePath())))\n\t\t{\n\t\t\tdialogType = \"vfs.browser.delete-favorites\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogType = \"vfs.browser.delete-confirm\";\n\t\t}\n\n\t\tStringBuilder buf = new StringBuilder();\n\t\tString typeStr = \"files\";\n\t\tfor(int i = 0; i < files.length; i++)\n\t\t{\n\t\t\tbuf.append(files[i].getPath());\n\t\t\tbuf.append('\\n');\n\t\t\tif (files[i].getType() == VFSFile.DIRECTORY)\n\t\t\t\ttypeStr = \"directories and their contents\";\n\t\t}\n\n\t\tObject[] args = { buf.toString(), typeStr};\n\t\t\n\t\tint result = GUIUtilities.confirm(this,dialogType,args,\n\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\treturn;\n\n\t\tVFS vfs = VFSManager.getVFSForPath(files[0].getDeletePath());\n\n\t\tif(!startRequest())\n\t\t\treturn;\n\n\t\tfor(int i = 0; i < files.length; i++)\n\t\t{\n\t\t\tObject session = vfs.createVFSSession(files[i].getDeletePath(),this);\n\t\t\tif(session == null)\n\t\t\t\tcontinue;\n\n\t\t\tVFSManager.runInWorkThread(new BrowserIORequest(\n\t\t\t\tBrowserIORequest.DELETE,this,\n\t\t\t\tsession,vfs,files[i].getDeletePath(),\n\t\t\t\tnull,null));\n\t\t}\n\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tendRequest();\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ rename() method\n\tpublic void rename(String from)\n\t{\n\t\tVFS vfs = VFSManager.getVFSForPath(from);\n\n\t\tString filename = vfs.getFileName(from);\n\t\tString[] args = { filename };\n\t\tString to = GUIUtilities.input(this,\"vfs.browser.rename\",\n\t\t\targs,filename);\n\t\tif(to == null)\n\t\t\treturn;\n\n\t\tto = MiscUtilities.constructPath(vfs.getParentOfPath(from),to);\n\n\t\tObject session = vfs.createVFSSession(from,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tif(!startRequest())\n\t\t\treturn;\n\n\t\tVFSManager.runInWorkThread(new BrowserIORequest(\n\t\t\tBrowserIORequest.RENAME,this,\n\t\t\tsession,vfs,from,to,null));\n\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tendRequest();\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ rename() method\n\tpublic void rename(String from, String newname)\n\t{\n\t\tVFS vfs = VFSManager.getVFSForPath(from);\n\n\t\tString filename = vfs.getFileName(from);\n\t\tString[] args = { filename };\n\t\tString to = newname;\n\t\t\n\t\tif(to == null || filename.equals(newname))\n\t\t\treturn;\n\n\t\tto = MiscUtilities.constructPath(vfs.getParentOfPath(from),to);\n\n\t\tObject session = vfs.createVFSSession(from,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tif(!startRequest())\n\t\t\treturn;\n\n\t\tVFSManager.runInWorkThread(new BrowserIORequest(\n\t\t\tBrowserIORequest.RENAME,this,\n\t\t\tsession,vfs,from,to,null));\n\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tendRequest();\n\t\t\t}\n\t\t});\n\t} //}}}\t\t\n\n\t//{{{ mkdir() method\n\tpublic void mkdir()\n\t{\n\t\tString newDirectory = GUIUtilities.input(this,\"vfs.browser.mkdir\",null);\n\t\tif(newDirectory == null)\n\t\t\treturn;\n\n\t\t// if a directory is selected, create new dir in there.\n\t\t// if a file is selected, create new dir inside its parent.\n\t\tfinal VFSFile[] selected = getSelectedFiles();\n\t\tString parent;\n\t\tif(selected.length == 0)\n\t\t\tparent = path;\n\t\telse if(selected[0].getType() == VFSFile.FILE)\n\t\t{\n\t\t\tparent = selected[0].getPath();\n\t\t\tparent = VFSManager.getVFSForPath(parent)\n\t\t\t\t.getParentOfPath(parent);\n\t\t}\n\t\telse\n\t\t\tparent = selected[0].getPath();\n\n\t\tVFS vfs = VFSManager.getVFSForPath(parent);\n\n\t\t// path is the currently viewed directory in the browser\n\t\tnewDirectory = MiscUtilities.constructPath(parent,newDirectory);\n\n\t\tObject session = vfs.createVFSSession(newDirectory,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tif(!startRequest())\n\t\t\treturn;\n\n\t\tVFSManager.runInWorkThread(new BrowserIORequest(\n\t\t\tBrowserIORequest.MKDIR,this,\n\t\t\tsession,vfs,newDirectory,null,null));\n\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tendRequest();\n\t\t\t\tif (selected.length != 0 && selected[0].getType() != VFSFile.FILE)\n\t\t\t\t{\n\t\t\t\t\tVFSDirectoryEntryTable directoryEntryTable = browserView.getTable();\n\t\t\t\t\tint selectedRow = directoryEntryTable.getSelectedRow();\n\t\t\t\t\tVFSDirectoryEntryTableModel model = (VFSDirectoryEntryTableModel) directoryEntryTable.getModel();\n\t\t\t\t\tVFSDirectoryEntryTableModel.Entry entry = model.files[selectedRow];\n\t\t\t\t\tif (!entry.expanded)\n\t\t\t\t\t{\n\t\t\t\t\t\tbrowserView.clearExpansionState();\n\t\t\t\t\t\tbrowserView.loadDirectory(entry,entry.dirEntry.getPath(),\n\t\t\t\t\t\t\tfalse);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ newFile() method\n\t/**\n\t * Creates a new file in the current directory.\n\t * @since jEdit 4.0pre2\n\t */\n\tpublic void newFile()\n\t{\n\t\tVFSFile[] selected = getSelectedFiles();\n\t\tif(selected.length >= 1)\n\t\t{\n\t\t\tVFSFile file = selected[0];\n\t\t\tif(file.getType() == VFSFile.DIRECTORY)\n\t\t\t\tjEdit.newFile(view,file.getPath());\n\t\t\telse\n\t\t\t{\n\t\t\t\tVFS vfs = VFSManager.getVFSForPath(file.getPath());\n\t\t\t\tjEdit.newFile(view,vfs.getParentOfPath(file.getPath()));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tjEdit.newFile(view,path);\n\t} //}}}\n\n\t//{{{ fileProperties() method\n\t/**\n\t * Show selected file's properties.\n\t */\n\tpublic void fileProperties(VFSFile[] files)\n\t{\n\t\tnew FilePropertiesDialog(view, this, files);\n\t} //}}} \t\t\n\t\t\n\t//{{{ searchInDirectory() method\n\t/**\n\t * Opens a directory search in the current directory.\n\t * @since jEdit 4.0pre2\n\t */\n\tpublic void searchInDirectory()\n\t{\n\t\tVFSFile[] selected = getSelectedFiles();\n\t\tif(selected.length >= 1)\n\t\t{\n\t\t\tVFSFile file = selected[0];\n\t\t\tsearchInDirectory(file.getPath(),file.getType() != VFSFile.FILE);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsearchInDirectory(path,true);\n\t\t}\n\t} //}}}\n\n\t//{{{ searchInDirectory() method\n\t/**\n\t * Opens a directory search in the specified directory.\n\t * @param path The path name\n\t * @param directory True if the path is a directory, false if it is a file\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void searchInDirectory(String path, boolean directory)\n\t{\n\t\tString filter;\n\t\tVFSFileFilter vfsff = getVFSFileFilter();\n\t\tif (vfsff instanceof GlobVFSFileFilter)\n\t\t\tfilter = ((GlobVFSFileFilter)vfsff).getGlob();\n\t\telse\n\t\t\tfilter = \"*\";\n\n\t\tif (!directory)\n\t\t{\n\t\t\tString name = MiscUtilities.getFileName(path);\n\t\t\tString ext = MiscUtilities.getFileExtension(name);\n\t\t\tfilter = (ext == null || ext.length() == 0\n\t\t\t\t? filter : '*' + ext);\n\t\t\tpath = MiscUtilities.getParentOfPath(path);\n\t\t}\n\n\t\tSearchAndReplace.setSearchFileSet(new DirectoryListSet(\n\t\t\tpath,filter,true));\n\t\tSearchDialog.showSearchDialog(view,null,SearchDialog.DIRECTORY);\n\t} //}}}\n\n\t//{{{ getBrowserView() method\n\tBrowserView getBrowserView()\n\t{\n\t\treturn browserView;\n\t} //}}}\n\n\t//{{{ getSelectedFiles() method\n\t/**\n\t * @since jEdit 4.3pre2\n\t */\n\tpublic VFSFile[] getSelectedFiles()\n\t{\n\t\treturn browserView.getSelectedFiles();\n\t} //}}}\n\n\t//{{{ locateFile() method\n\t/**\n\t * Goes to the given file's directory and selects the file in the list.\n\t * @param path The file\n\t * @since jEdit 4.2pre2\n\t */\n\tpublic void locateFile(final String path)\n\t{\n\t\tVFSFileFilter filter = getVFSFileFilter();\n\t\tif(!filter.accept(MiscUtilities.getFileName(path)))\n\t\t\tsetFilenameFilter(null);\n\n\t\tsetDirectory(MiscUtilities.getParentOfPath(path));\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tbrowserView.getTable().selectFile(path);\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ createPluginsMenu() method\n\tpublic JComponent createPluginsMenu(JComponent pluginMenu, boolean showManagerOptions)\n\t{\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tif(showManagerOptions && getMode() == BROWSER)\n\t\t{\n\t\t\tpluginMenu.add(GUIUtilities.loadMenuItem(\"plugin-manager\",false));\n\t\t\tpluginMenu.add(GUIUtilities.loadMenuItem(\"plugin-options\",false));\n\t\t\tif (pluginMenu instanceof JMenu)\n\t\t\t\t((JMenu)pluginMenu).addSeparator();\n\t\t\telse if (pluginMenu instanceof JPopupMenu)\n\t\t\t\t((JPopupMenu)pluginMenu).addSeparator();\n\n\t\t}\n\t\telse\n\t\t\t/* we're in a modal dialog */;\n\n\t\tList<JMenuItem> vec = new ArrayList<JMenuItem>();\n\n\t\t//{{{ old API\n\t\tEnumeration<VFS> e = VFSManager.getFilesystems();\n\n\t\twhile(e.hasMoreElements())\n\t\t{\n\t\t\tVFS vfs = e.nextElement();\n\t\t\tif((vfs.getCapabilities() & VFS.BROWSE_CAP) == 0)\n\t\t\t\tcontinue;\n\n\t\t\t\tJMenuItem menuItem = new JMenuItem(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.\" + vfs.getName() + \".label\"));\n\t\t\t\tmenuItem.setActionCommand(vfs.getName());\n\t\t\t\tmenuItem.addActionListener(actionHandler);\n\t\t\t\tvec.add(menuItem);\n\t\t} //}}}\n\n\t\t//{{{ new API\n\t\tEditPlugin[] plugins = jEdit.getPlugins();\n\t\tfor (int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tJMenuItem menuItem = plugins[i].createBrowserMenuItems();\n\t\t\tif(menuItem != null)\n\t\t\t\tvec.add(menuItem);\n\t\t} //}}}\n\n\t\tif (!vec.isEmpty())\n\t\t{\n\t\t\tCollections.sort(vec,new MenuItemTextComparator());\n\t\t\tfor(int i = 0; i < vec.size(); i++)\n\t\t\t\tpluginMenu.add(vec.get(i));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJMenuItem mi = new JMenuItem(jEdit.getProperty(\n\t\t\t\t\t\"vfs.browser.plugins.no-plugins.label\"));\n\t\t\tmi.setEnabled(false);\n\t\t\tpluginMenu.add(mi);\n\t\t}\n\n\t\treturn pluginMenu;\n\t} //}}}\n\n\t//{{{ addBrowserListener() method\n\tpublic void addBrowserListener(BrowserListener l)\n\t{\n\t\tlistenerList.add(BrowserListener.class,l);\n\t} //}}}\n\n\t//{{{ removeBrowserListener() method\n\tpublic void removeBrowserListener(BrowserListener l)\n\t{\n\t\tlistenerList.remove(BrowserListener.class,l);\n\t} //}}}\n\n\t//{{{ filesActivated() method\n\t// canDoubleClickClose set to false when ENTER pressed\n\tpublic static final int M_OPEN = 0;\n\tpublic static final int M_OPEN_NEW_VIEW = 1;\n\tpublic static final int M_OPEN_NEW_PLAIN_VIEW = 2;\n\tpublic static final int M_OPEN_NEW_SPLIT = 3;\n\tpublic static final int M_INSERT = 4;\n\n\t/**\n\t * This method does the \"double-click\" handling. It is public so that\n\t * <code>browser.actions.xml</code> can bind to it.\n\t * @since jEdit 4.2pre2\n\t */\n\tpublic void filesActivated(int mode, boolean canDoubleClickClose)\n\t{\n\t\tVFSFile[] selectedFiles = browserView.getSelectedFiles();\n\n\t\tBuffer buffer = null;\n\ncheck_selected: for(int i = 0; i < selectedFiles.length; i++)\n\t\t{\n\t\t\tVFSFile file = selectedFiles[i];\n\n\t\t\tif(file.getType() == VFSFile.DIRECTORY\n\t\t\t\t|| file.getType() == VFSFile.FILESYSTEM)\n\t\t\t{\n\t\t\t\tif(mode == M_OPEN_NEW_VIEW && this.mode == BROWSER)\n\t\t\t\t\tbrowseDirectoryInNewWindow(view,file.getPath());\n\t\t\t\telse\n\t\t\t\t\tsetDirectory(file.getPath());\n\t\t\t}\n\t\t\telse if(this.mode == BROWSER || this.mode == BROWSER_DIALOG)\n\t\t\t{\n\t\t\t\tif(mode == M_INSERT)\n\t\t\t\t{\n\t\t\t\t\tview.getBuffer().insertFile(view,\n\t\t\t\t\t\tfile.getPath());\n\t\t\t\t\tcontinue check_selected;\n\t\t\t\t}\n\n\t\t\t\tBuffer _buffer = jEdit.getBuffer(file.getPath());\n\t\t\t\tif(_buffer == null)\n\t\t\t\t{\n\t\t\t\t\tHashtable<String, Object> props = new Hashtable<String, Object>();\n\t\t\t\t\tprops.put(JEditBuffer.ENCODING,currentEncoding);\n\t\t\t\t\tprops.put(Buffer.ENCODING_AUTODETECT,\n\t\t\t\t\t\t  Boolean.valueOf(autoDetectEncoding));\n\t\t\t\t\t_buffer = jEdit.openFile(view, null,\n\t\t\t\t\t\tfile.getPath(),false,props);\n\t\t\t\t}\n\t\t\t\telse if(doubleClickClose && canDoubleClickClose\n\t\t\t\t\t&& this.mode != BROWSER_DIALOG\n\t\t\t\t\t&& selectedFiles.length == 1)\n\t\t\t\t{\n\t\t\t\t\t// close if this buffer is currently\n\t\t\t\t\t// visible in the view.\n\t\t\t\t\tEditPane[] editPanes = view.getEditPanes();\n\t\t\t\t\tfor(int j = 0; j < editPanes.length; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(editPanes[j].getBuffer() == _buffer)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tjEdit.closeBuffer(view,_buffer);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(_buffer != null)\n\t\t\t\t\tbuffer = _buffer;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// if a file is selected in OPEN_DIALOG or\n\t\t\t\t// SAVE_DIALOG mode, just let the listener(s)\n\t\t\t\t// handle it\n\t\t\t}\n\t\t}\n\n\t\tif(buffer != null)\n\t\t{\n\t\t\tswitch(mode)\n\t\t\t{\n\t\t\tcase M_OPEN:\n\t\t\t\tview.setBuffer(buffer);\n\t\t\t\tbreak;\n\t\t\tcase M_OPEN_NEW_VIEW:\n\t\t\t\tjEdit.newView(view,buffer,false);\n\t\t\t\tbreak;\n\t\t\tcase M_OPEN_NEW_PLAIN_VIEW:\n\t\t\t\tjEdit.newView(view,buffer,true);\n\t\t\t\tbreak;\n\t\t\tcase M_OPEN_NEW_SPLIT:\n\t\t\t\tview.splitHorizontally().setBuffer(buffer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObject[] listeners = listenerList.getListenerList();\n\t\tfor(int i = 0; i < listeners.length; i++)\n\t\t{\n\t\t\tif(listeners[i] == BrowserListener.class)\n\t\t\t{\n\t\t\t\tBrowserListener l = (BrowserListener)listeners[i+1];\n\t\t\t\tl.filesActivated(this,selectedFiles);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\n\t//{{{ move() method\n\tpublic void move(String newPosition)\n\t{\n\t\tboolean horz = (mode != BROWSER\n\t\t\t\t|| DockableWindowManager.TOP.equals(newPosition)\n\t\t\t\t|| DockableWindowManager.BOTTOM.equals(newPosition));\n\t\tif (horz == horizontalLayout)\n\t\t\treturn;\n\t\thorizontalLayout = horz;\n\t\ttopBox.remove(toolbarBox);\n\t\ttoolbarBox = new Box(horizontalLayout\n\t\t\t\t? BoxLayout.X_AXIS\n\t\t\t\t: BoxLayout.Y_AXIS);\n\t\ttopBox.add(toolbarBox, 0);\n\t\tpropertiesChanged();\n\t} //}}}\n\t\n\t//{{{ Package-private members\n\tString currentEncoding;\n\tboolean autoDetectEncoding;\n\n\t//{{{ directoryLoaded() method\n\tvoid directoryLoaded(Object node, Object[] loadInfo,\n\t\tboolean addToHistory)\n\t{\n\t\tVFSManager.runInAWTThread(new DirectoryLoadedAWTRequest(\n\t\t\tnode,loadInfo,addToHistory));\n\t} //}}}\n\n\t//{{{ filesSelected() method\n\tvoid filesSelected()\n\t{\n\t\tVFSFile[] selectedFiles = browserView.getSelectedFiles();\n\n\t\tif(mode == BROWSER)\n\t\t{\n\t\t\tfor(int i = 0; i < selectedFiles.length; i++)\n\t\t\t{\n\t\t\t\tVFSFile file = selectedFiles[i];\n\t\t\t\tBuffer buffer = jEdit.getBuffer(file.getPath());\n\t\t\t\tif(buffer != null && view != null)\n\t\t\t\t\tview.setBuffer(buffer);\n\t\t\t}\n\t\t}\n\n\t\tObject[] listeners = listenerList.getListenerList();\n\t\tfor(int i = 0; i < listeners.length; i++)\n\t\t{\n\t\t\tif(listeners[i] == BrowserListener.class)\n\t\t\t{\n\t\t\t\tBrowserListener l = (BrowserListener)listeners[i+1];\n\t\t\t\tl.filesSelected(this,selectedFiles);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ endRequest() method\n\tvoid endRequest()\n\t{\n\t\trequestRunning = false;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\n\tprivate static final ActionContext actionContext;\n\n\tstatic\n\t{\n\t\tactionContext = new BrowserActionContext();\n\n\t\tActionSet builtInActionSet = new ActionSet(null,null,null,\n\t\t\tjEdit.class.getResource(\"browser.actions.xml\"));\n\t\tbuiltInActionSet.setLabel(jEdit.getProperty(\"action-set.browser\"));\n\t\tbuiltInActionSet.load();\n\t\tactionContext.addActionSet(builtInActionSet);\n\t}\n\n\t//{{{ Instance variables\n\tprivate EventListenerList listenerList;\n\tprivate View view;\n\tprivate boolean horizontalLayout;\n\tprivate String path;\n\tprivate JPanel pathAndFilterPanel;\n\tprivate HistoryTextField pathField;\n\tprivate JComponent defaultFocusComponent;\n\tprivate JCheckBox filterCheckbox;\n\tprivate HistoryComboBoxEditor filterEditor;\n\tprivate JComboBox filterField;\n\tprivate Box toolbarBox;\n\tprivate Box topBox;\n\tprivate FavoritesMenuButton favorites;\n\tprivate PluginsMenuButton plugins;\n\tprivate BrowserView browserView;\n\tprivate int mode;\n\tprivate boolean multipleSelection;\n\n\tprivate boolean showHiddenFiles;\n\tprivate boolean sortMixFilesAndDirs;\n\tprivate boolean sortIgnoreCase;\n\tprivate boolean doubleClickClose;\n\n\tprivate boolean requestRunning;\n\tprivate boolean maybeReloadRequestRunning;\n\t\n\tprivate Stack<String> historyStack = new Stack<String>();\n\tprivate Stack<String> nextDirectoryStack = new Stack<String>();\n\t//}}}\n\n\t//{{{ createMenuBar() method\n\tprivate Container createMenuBar()\n\t{\n\t\tJToolBar menuBar = new JToolBar();\n\t\tmenuBar.setFloatable(false);\n\n\t\tmenuBar.add(new CommandsMenuButton());\n\t\tmenuBar.add(Box.createHorizontalStrut(3));\n\t\tmenuBar.add(plugins = new PluginsMenuButton());\n\t\tmenuBar.add(Box.createHorizontalStrut(3));\n\t\tmenuBar.add(favorites = new FavoritesMenuButton());\n\n\t\treturn menuBar;\n\t} //}}}\n\n\t//{{{ createToolBar() method\n\tprivate Container createToolBar()\n\t{\n\t\tif(mode == BROWSER)\n\t\t\treturn GUIUtilities.loadToolBar(actionContext,\n\t\t\t\t\"vfs.browser.toolbar-browser\");\n\t\telse\n\t\t\treturn GUIUtilities.loadToolBar(actionContext,\n\t\t\t\t\"vfs.browser.toolbar-dialog\");\n\t} //}}}\n\n\t//{{{ propertiesChanged() method\n\tprivate void propertiesChanged()\n\t{\n\t\tshowHiddenFiles = jEdit.getBooleanProperty(\"vfs.browser.showHiddenFiles\");\n\t\tsortMixFilesAndDirs = jEdit.getBooleanProperty(\"vfs.browser.sortMixFilesAndDirs\");\n\t\tsortIgnoreCase = jEdit.getBooleanProperty(\"vfs.browser.sortIgnoreCase\");\n\t\tdoubleClickClose = jEdit.getBooleanProperty(\"vfs.browser.doubleClickClose\");\n\n\t\tbrowserView.propertiesChanged();\n\n\t\ttoolbarBox.removeAll();\n\n\t\tif(jEdit.getBooleanProperty(\"vfs.browser.showToolbar\"))\n\t\t{\n\t\t\tContainer toolbar = createToolBar();\n\t\t\tif(horizontalLayout)\n\t\t\t\ttoolbarBox.add(toolbar);\n\t\t\telse\n\t\t\t{\n\t\t\t\ttoolbarBox.add(toolbar);\n\t\t\t}\n\t\t}\n\n\t\tif(jEdit.getBooleanProperty(\"vfs.browser.showMenubar\"))\n\t\t{\n\t\t\tContainer menubar = createMenuBar();\n\t\t\tif(horizontalLayout)\n\t\t\t{\n\t\t\t\ttoolbarBox.add(menubar,0);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmenubar.add(Box.createGlue());\n\t\t\t\ttoolbarBox.add(menubar);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tplugins = null;\n\t\t\tfavorites = null;\n\t\t}\n\n\t\trevalidate();\n\n\t\tif(path != null)\n\t\t\treloadDirectory();\n\t} //}}}\n\n\t/* We do this stuff because the browser is not able to handle\n\t * more than one request yet */\n\n\t//{{{ startRequest() method\n\tprivate boolean startRequest()\n\t{\n\t\tif(requestRunning)\n\t\t{\n\t\t\t// dump stack trace for debugging purposes\n\t\t\tLog.log(Log.DEBUG,this,new Throwable(\"For debugging purposes\"));\n\n\t\t\tGUIUtilities.error(this,\"browser-multiple-io\",null);\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\trequestRunning = true;\n\t\t\treturn true;\n\t\t}\n\t} //}}}\n\n\t//{{{ updateFilterEnabled() method\n\tprivate void updateFilterEnabled()\n\t{\n\t\tfilterField.setEnabled(filterCheckbox.isSelected());\n\t\tfilterEditor.setEnabled(filterCheckbox.isSelected());\n\t} //}}}\n\n\t//{{{ maybeReloadDirectory() method\n\tprivate void maybeReloadDirectory(String dir)\n\t{\n\t\tif(MiscUtilities.isURL(dir)\n\t\t\t&& MiscUtilities.getProtocolOfURL(dir).equals(\n\t\t\tFavoritesVFS.PROTOCOL))\n\t\t{\n\t\t\tif(favorites != null)\n\t\t\t\tfavorites.popup = null;\n\t\t}\n\n\t\t// this is a dirty hack and it relies on the fact\n\t\t// that updates for parents are sent before updates\n\t\t// for the changed nodes themselves (if this was not\n\t\t// the case, the browser wouldn't be updated properly\n\t\t// on delete, etc).\n\t\t//\n\t\t// to avoid causing '> 1 request' errors, don't reload\n\t\t// directory if request already active\n\t\tif(maybeReloadRequestRunning)\n\t\t{\n\t\t\t//Log.log(Log.WARNING,this,\"VFS update: request already in progress\");\n\t\t\treturn;\n\t\t}\n\n\t\t// save a file -> sends vfs update. if a VFS file dialog box\n\t\t// is shown from the same event frame as the save, the\n\t\t// VFSUpdate will be delivered before the directory is loaded,\n\t\t// and before the path is set.\n\t\tif(path != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmaybeReloadRequestRunning = true;\n\n\t\t\t\tbrowserView.maybeReloadDirectory(dir);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tmaybeReloadRequestRunning = false;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener, ItemListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif (isProcessingEvent)\n\t\t\t\treturn;\n\n\t\t\tObject source = evt.getSource();\n\n\t\t\tif (source == pathField\n\t\t\t    || source == filterCheckbox)\n\t\t\t{\n\t\t\t\tisProcessingEvent = true;\n\t\t\t\tresetLater();\n\n\t\t\t\tupdateFilterEnabled();\n\n\t\t\t\tString p = pathField.getText();\n\t\t\t\t\n\t\t\t\tif(p != null)\n\t\t\t\t\tsetDirectory(p);\n\t\t\t\tbrowserView.focusOnFileView();\n\t\t\t}\n\n\t\t\telse if (source == filterField.getEditor())\n\t\t\t{\n\t\t\t\t// force the editor to refresh.\n\t\t\t\tfilterField.getEditor().setItem(\n\t\t\t\t\tfilterField.getEditor().getItem());\n\t\t\t}\n\n\t\t\t// depending on Swing look & feel, filterField.getEditor()\n\t\t\t// returns some ComboBoxUI\n\t\t\telse if (source == filterEditor)\n\t\t\t{\n\t\t\t\t// force the editor to refresh.\n\t\t\t\tfilterEditor.setItem(\n\t\t\t\t\tfilterEditor.getItem());\n\t\t\t\tfilterField.setSelectedItem(\n\t\t\t\t\tfilterEditor.getItem());\n\t\t\t\t// ### ugly: \n\t\t\t\t// itemStateChanged does not seem to get fired\n\t\t\t\titemStateChanged(new ItemEvent(filterField,\n\t\t\t\t\tItemEvent.ITEM_STATE_CHANGED,\n\t\t\t\t\tfilterEditor.getItem(),\n\t\t\t\t\tItemEvent.SELECTED));\n\t\t\t}\n\t\t}\n\n\t\tpublic void itemStateChanged(ItemEvent e)\n\t\t{\n\t\t\tif (isProcessingEvent)\n\t\t\t\treturn;\n\n\t\t\tif (e.getStateChange() != ItemEvent.SELECTED)\n\t\t\t\treturn;\n\n\t\t\tisProcessingEvent = true;\n\t\t\tresetLater();\n\n\t\t\tfilterField.setEditable(e.getItem() instanceof GlobVFSFileFilter);\n\t\t\tupdateFilterEnabled();\n\t\t\tString path = pathField.getText();\n\t\t\tif(path != null)\n\t\t\t\tsetDirectory(path);\n\n\t\t\tbrowserView.focusOnFileView();\n\t\t}\n\n\t\t/**\n\t\t * Why this method exists: since both actionPerformed()\n\t\t * and itemStateChanged() above can change the combo box,\n\t\t * executing one of them can cause a chain reaction causing\n\t\t * the other method to be called. This would cause the\n\t\t * VFS subsystem to be called several times, which would\n\t\t * cause a warning to show up if the first operation is\n\t\t * still in progress, or cause a second operation to happen\n\t\t * which is not really wanted especially if we're talking\n\t\t * about a remove VFS. So the methods set a flag saying\n\t\t * that something is going on, and this method resets\n\t\t * the flag after the AWT thread is done with the\n\t\t * current events.\n\t\t */\n\t\tprivate void resetLater()\n\t\t{\n\t\t\tSwingUtilities.invokeLater(\n\t\t\t\tnew Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tisProcessingEvent = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\n\t\tprivate boolean isProcessingEvent;\n\n\t} //}}}\n\n\t//{{{ CommandsMenuButton class\n\tclass CommandsMenuButton extends RolloverButton\n\t{\n\t\t//{{{ CommandsMenuButton constructor\n\t\tCommandsMenuButton()\n\t\t{\n\t\t\tsetText(jEdit.getProperty(\"vfs.browser.commands.label\"));\n\t\t\tsetIcon(GUIUtilities.loadIcon(jEdit.getProperty(\"dropdown-arrow.icon\")));\n\t\t\tsetHorizontalTextPosition(SwingConstants.LEADING);\n\t\t\tsetName(\"commands\");\n\t\t\t\n\t\t\tpopup = new BrowserCommandsMenu(VFSBrowser.this,null);\n\n\t\t\tCommandsMenuButton.this.setRequestFocusEnabled(false);\n\t\t\tsetMargin(new Insets(1,1,1,1));\n\t\t\tCommandsMenuButton.this.addMouseListener(new MouseHandler());\n\n\t\t\tif(OperatingSystem.isMacOSLF())\n\t\t\t\tCommandsMenuButton.this.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\t\t} //}}}\n\n\t\tBrowserCommandsMenu popup;\n\n\t\t//{{{ MouseHandler class\n\t\tclass MouseHandler extends MouseAdapter\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent evt)\n\t\t\t{\n\t\t\t\tif(!popup.isVisible())\n\t\t\t\t{\n\t\t\t\t\tpopup.update();\n\n\t\t\t\t\tGUIUtilities.showPopupMenu(\n\t\t\t\t\t\tpopup,CommandsMenuButton.this,0,\n\t\t\t\t\t\tCommandsMenuButton.this.getHeight(),\n\t\t\t\t\t\tfalse);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpopup.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ PluginsMenuButton class\n\tclass PluginsMenuButton extends RolloverButton\n\t{\n\t\t//{{{ PluginsMenuButton constructor\n\t\tPluginsMenuButton()\n\t\t{\n\t\t\tsetText(jEdit.getProperty(\"vfs.browser.plugins.label\"));\n\t\t\tsetIcon(GUIUtilities.loadIcon(jEdit.getProperty(\"dropdown-arrow.icon\")));\n\t\t\tsetHorizontalTextPosition(SwingConstants.LEADING);\n\t\t\tsetName(\"plugins\");\n\t\t\t\n\t\t\tPluginsMenuButton.this.setRequestFocusEnabled(false);\n\t\t\tsetMargin(new Insets(1,1,1,1));\n\t\t\tPluginsMenuButton.this.addMouseListener(new MouseHandler());\n\n\t\t\tif(OperatingSystem.isMacOSLF())\n\t\t\t\tPluginsMenuButton.this.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\t\t} //}}}\n\n\t\tJPopupMenu popup;\n\n\t\t//{{{ updatePopupMenu() method\n\t\tvoid updatePopupMenu()\n\t\t{\n\t\t\tpopup = null;\n\t\t} //}}}\n\n\t\t//{{{ createPopupMenu() method\n\t\tprivate void createPopupMenu()\n\t\t{\n\t\t\tif(popup != null)\n\t\t\t\treturn;\n\n\t\t\tpopup = (JPopupMenu)createPluginsMenu(new JPopupMenu(),true);\n\t\t} //}}}\n\n\t\t//{{{ MouseHandler class\n\t\tclass MouseHandler extends MouseAdapter\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent evt)\n\t\t\t{\n\t\t\t\tcreatePopupMenu();\n\n\t\t\t\tif(!popup.isVisible())\n\t\t\t\t{\n\t\t\t\t\tGUIUtilities.showPopupMenu(\n\t\t\t\t\t\tpopup,PluginsMenuButton.this,0,\n\t\t\t\t\t\tPluginsMenuButton.this.getHeight(),\n\t\t\t\t\t\tfalse);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpopup.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ FavoritesMenuButton class\n\tclass FavoritesMenuButton extends RolloverButton\n\t{\n\t\t//{{{ FavoritesMenuButton constructor\n\t\tFavoritesMenuButton()\n\t\t{\n\t\t\tsetText(jEdit.getProperty(\"vfs.browser.favorites.label\"));\n\t\t\tsetIcon(GUIUtilities.loadIcon(jEdit.getProperty(\"dropdown-arrow.icon\")));\n\t\t\tsetHorizontalTextPosition(SwingConstants.LEADING);\n\t\t\tsetName(\"favorites\");\n\t\t\t\n\t\t\tFavoritesMenuButton.this.setRequestFocusEnabled(false);\n\t\t\tsetMargin(new Insets(1,1,1,1));\n\t\t\tFavoritesMenuButton.this.addMouseListener(new MouseHandler());\n\n\t\t\tif(OperatingSystem.isMacOSLF())\n\t\t\t\tFavoritesMenuButton.this.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\t\t} //}}}\n\n\t\tJPopupMenu popup;\n\n\t\t//{{{ createPopupMenu() method\n\t\tvoid createPopupMenu()\n\t\t{\n\t\t\tpopup = new JPopupMenu();\n\t\t\tActionHandler actionHandler = new ActionHandler();\n\n\t\t\tJMenuItem mi = new JMenuItem(\n\t\t\t\tjEdit.getProperty(\n\t\t\t\t\"vfs.browser.favorites\"\n\t\t\t\t+ \".add-to-favorites.label\"));\n\t\t\tmi.setActionCommand(\"add-to-favorites\");\n\t\t\tmi.addActionListener(actionHandler);\n\t\t\tpopup.add(mi);\n\n\t\t\tmi = new JMenuItem(\n\t\t\t\tjEdit.getProperty(\n\t\t\t\t\"vfs.browser.favorites\"\n\t\t\t\t+ \".edit-favorites.label\"));\n\t\t\tmi.setActionCommand(\"dir@favorites:\");\n\t\t\tmi.addActionListener(actionHandler);\n\t\t\tpopup.add(mi);\n\n\t\t\tpopup.addSeparator();\n\n\t\t\tVFSFile[] favorites = FavoritesVFS.getFavorites();\n\t\t\tif(favorites.length == 0)\n\t\t\t{\n\t\t\t\tmi = new JMenuItem(\n\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\"vfs.browser.favorites\"\n\t\t\t\t\t+ \".no-favorites.label\"));\n\t\t\t\tmi.setEnabled(false);\n\t\t\t\tpopup.add(mi);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tArrays.sort(favorites,\n\t\t\t\t\tnew VFS.DirectoryEntryCompare(\n\t\t\t\t\tsortMixFilesAndDirs,\n\t\t\t\t\tsortIgnoreCase));\n\t\t\t\tfor(int i = 0; i < favorites.length; i++)\n\t\t\t\t{\n\t\t\t\t\tVFSFile favorite = favorites[i];\n\t\t\t\t\tmi = new JMenuItem(favorite.getPath());\n\t\t\t\t\tmi.setIcon(FileCellRenderer\n\t\t\t\t\t\t.getIconForFile(\n\t\t\t\t\t\tfavorite,false));\n\t\t\t\t\tString cmd = (favorite.getType() ==\n\t\t\t\t\t\tVFSFile.FILE\n\t\t\t\t\t\t? \"file@\" : \"dir@\")\n\t\t\t\t\t\t+ favorite.getPath();\n\t\t\t\t\tmi.setActionCommand(cmd);\n\t\t\t\t\tmi.addActionListener(actionHandler);\n\t\t\t\t\tpopup.add(mi);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ ActionHandler class\n\t\tclass ActionHandler implements ActionListener\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tString actionCommand = evt.getActionCommand();\n\t\t\t\tif(\"add-to-favorites\".equals(actionCommand))\n\t\t\t\t{\n\t\t\t\t\t// if any directories are selected, add\n\t\t\t\t\t// them, otherwise add current directory\n\t\t\t\t\tVFSFile[] selected = getSelectedFiles();\n\t\t\t\t\tif(selected == null || selected.length == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(path.equals(FavoritesVFS.PROTOCOL + ':'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tGUIUtilities.error(VFSBrowser.this,\n\t\t\t\t\t\t\t\t\"vfs.browser.recurse-favorites\",\n\t\t\t\t\t\t\t\tnull);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tFavoritesVFS.addToFavorites(path,\n\t\t\t\t\t\t\t\tVFSFile.DIRECTORY);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int i = 0; i < selected.length; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tVFSFile file = selected[i];\n\t\t\t\t\t\t\tFavoritesVFS.addToFavorites(file.getPath(),\n\t\t\t\t\t\t\t\tfile.getType());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(actionCommand.startsWith(\"dir@\"))\n\t\t\t\t{\n\t\t\t\t\tsetDirectory(actionCommand.substring(4));\n\t\t\t\t}\n\t\t\t\telse if(actionCommand.startsWith(\"file@\"))\n\t\t\t\t{\n\t\t\t\t\tswitch(getMode())\n\t\t\t\t\t{\n\t\t\t\t\tcase BROWSER:\n\t\t\t\t\t\tjEdit.openFile(view,actionCommand.substring(5));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tlocateFile(actionCommand.substring(5));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ MouseHandler class\n\t\tclass MouseHandler extends MouseAdapter\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent evt)\n\t\t\t{\n\t\t\t\tif(popup != null && popup.isVisible())\n\t\t\t\t{\n\t\t\t\t\tpopup.setVisible(false);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif(popup == null)\n\t\t\t\t\tcreatePopupMenu();\n\n\t\t\t\tGUIUtilities.showPopupMenu(\n\t\t\t\t\tpopup,FavoritesMenuButton.this,0,\n\t\t\t\t\tFavoritesMenuButton.this.getHeight(),\n\t\t\t\t\tfalse);\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ DirectoryLoadedAWTRequest class\n\tclass DirectoryLoadedAWTRequest implements Runnable\n\t{\n\t\tprivate Object node;\n\t\tprivate Object[] loadInfo;\n\t\tprivate boolean addToHistory;\n\n\t\tDirectoryLoadedAWTRequest(Object node, Object[] loadInfo,\n\t\t\tboolean addToHistory)\n\t\t{\n\t\t\tthis.node = node;\n\t\t\tthis.loadInfo = loadInfo;\n\t\t\tthis.addToHistory = addToHistory;\n\t\t}\n\n\t\tpublic void run()\n\t\t{\n\t\t\tString path = (String)loadInfo[0];\n\t\t\tif(path == null)\n\t\t\t{\n\t\t\t\t// there was an error\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tVFSFile[] list = (VFSFile[])loadInfo[1];\n\n\t\t\tif(node == null)\n\t\t\t{\n\t\t\t\t// This is the new, canonical path\n\t\t\t\tVFSBrowser.this.path = path;\n\t\t\t\tif(!pathField.getText().equals(path))\n\t\t\t\t\tpathField.setText(path);\n\t\t\t\tif(path.endsWith(\"/\") ||\n\t\t\t\t\tpath.endsWith(File.separator))\n\t\t\t\t{\n\t\t\t\t\t// ensure consistent history;\n\t\t\t\t\t// eg we don't want both\n\t\t\t\t\t// foo/ and foo\n\t\t\t\t\tpath = path.substring(0,\n\t\t\t\t\t\tpath.length() - 1);\n\t\t\t\t}\n\n\t\t\t\tif(addToHistory)\n\t\t\t\t{\n\t\t\t\t\tHistoryModel.getModel(\"vfs.browser.path\")\n\t\t\t\t\t\t.addItem(path);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tboolean filterEnabled = filterCheckbox.isSelected();\n\n\t\t\tList<VFSFile> directoryList = new ArrayList<VFSFile>();\n\n\t\t\tint directories = 0;\n\t\t\tint files = 0;\n\t\t\tint invisible = 0;\n\n\t\t\tif(list != null)\n\t\t\t{\n\t\t\t\tVFSFileFilter filter = getVFSFileFilter();\n\n\t\t\t\tfor(int i = 0; i < list.length; i++)\n\t\t\t\t{\n\t\t\t\t\tVFSFile file = list[i];\n\t\t\t\t\tif(file.isHidden() && !showHiddenFiles)\n\t\t\t\t\t{\n\t\t\t\t\t\tinvisible++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (filter != null && (filterEnabled || filter instanceof DirectoriesOnlyFilter)\n\t\t\t\t\t    && !filter.accept(file))\n\t\t\t\t\t{\n\t\t\t\t\t\tinvisible++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(file.getType() == VFSFile.FILE)\n\t\t\t\t\t\tfiles++;\n\t\t\t\t\telse\n\t\t\t\t\t\tdirectories++;\n\n\t\t\t\t\tdirectoryList.add(file);\n\t\t\t\t}\n\n\t\t\t\tCollections.sort(directoryList,\n\t\t\t\t\tnew VFS.DirectoryEntryCompare(\n\t\t\t\t\tsortMixFilesAndDirs,\n\t\t\t\t\tsortIgnoreCase));\n\t\t\t}\n\n\t\t\tbrowserView.directoryLoaded(node,path,\n\t\t\t\tdirectoryList);\n\n\t\t\t// to notify listeners that any existing\n\t\t\t// selection has been deactivated\n\n\t\t\t// turns out under some circumstances this\n\t\t\t// method can switch the current buffer in\n\t\t\t// BROWSER mode.\n\n\t\t\t// in any case, this is only needed for the\n\t\t\t// directory chooser (why?), so we add a\n\t\t\t// check. otherwise poor Rick will go insane.\n\t\t\tif(mode == CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\tfilesSelected();\n\t\t}\n\n\t\t@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn (String)loadInfo[0];\n\t\t}\n\t} //}}}\n\n\t//{{{ BrowserActionContext class\n\tstatic class BrowserActionContext extends ActionContext\n\t{\n\t\t/**\n\t\t * If event source hierarchy contains a VFSDirectoryEntryTable,\n\t\t * this is the currently selected files there. Otherwise, this\n\t\t * is the currently selected item in the parent directory list.\n\t\t */\n\t\tprivate static VFSFile[] getSelectedFiles(EventObject evt,\n\t\t\tVFSBrowser browser)\n\t\t{\n\t\t\tComponent source = (Component)evt.getSource();\n\n\t\t\tif(GUIUtilities.getComponentParent(source, BrowserView.ParentDirectoryList.class)\n\t\t\t\t!= null)\n\t\t\t{\n\t\t\t\tObject[] selected = browser.getBrowserView()\n\t\t\t\t\t.getParentDirectoryList()\n\t\t\t\t\t.getSelectedValues();\n\t\t\t\tVFSFile[] returnValue = new VFSFile[\n\t\t\t\t\tselected.length];\n\t\t\t\tSystem.arraycopy(selected,0,returnValue,0,\n\t\t\t\t\tselected.length);\n\t\t\t\treturn returnValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn browser.getSelectedFiles();\n\t\t\t}\n\t\t}\n\n\t\t@Override\n\t\tpublic void invokeAction(EventObject evt, EditAction action)\n\t\t{\n\t\t\tVFSBrowser browser = (VFSBrowser)\n\t\t\t\tGUIUtilities.getComponentParent(\n\t\t\t\t(Component)evt.getSource(),\n\t\t\t\tVFSBrowser.class);\n\n\t\t\tVFSFile[] files = getSelectedFiles(evt,browser);\n\n\t\t\t// in the future we will want something better,\n\t\t\t// eg. having an 'evt' object passed to\n\t\t\t// EditAction.invoke().\n\n\t\t\t// for now, since all browser actions are\n\t\t\t// written in beanshell we set the 'browser'\n\t\t\t// variable directly.\n\t\t\tNameSpace global = BeanShell.getNameSpace();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tglobal.setVariable(\"browser\",browser);\n\t\t\t\tglobal.setVariable(\"files\",files);\n\n\t\t\t\tView view = browser.getView();\n\t\t\t\t// I guess ideally all browsers\n\t\t\t\t// should have views, but since they\n\t\t\t\t// don't, we just use the active view\n\t\t\t\t// in that case, since some actions\n\t\t\t\t// depend on a view being there and\n\t\t\t\t// I don't want to add checks to\n\t\t\t\t// them all\n\t\t\t\tif(view == null)\n\t\t\t\t\tview = jEdit.getActiveView();\n\t\t\t\taction.invoke(view);\n\t\t\t}\n\t\t\tcatch(UtilEvalError err)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,err);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tglobal.setVariable(\"browser\",null);\n\t\t\t\t\tglobal.setVariable(\"files\",null);\n\t\t\t\t}\n\t\t\t\tcatch(UtilEvalError err)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,err);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ HistoryComboBoxEditor class\n\tprivate static class HistoryComboBoxEditor\n\t\t\t\textends HistoryTextField\n\t\t\t\timplements ComboBoxEditor\n\t{\n\n\t\tHistoryComboBoxEditor(String key)\n\t\t{\n\t\t\tsuper(key);\n\t\t}\n\n\t\tpublic Object getItem()\n\t\t{\n\t\t\tif (current == null)\n\t\t\t{\n\t\t\t\tcurrent = new GlobVFSFileFilter(getText());\n\t\t\t}\n\n\t\t\tif (!current.getGlob().equals(getText()))\n\t\t\t{\n\t\t\t\tcurrent.setGlob(getText());\n\t\t\t}\n\n\t\t\treturn current;\n\t\t}\n\n\t\tpublic void setItem(Object item)\n\t\t{\n\t\t\tif (item == current)\n\t\t\t{\n\t\t\t\t// if we keep the same object, swing\n\t\t\t\t// will cause an event to be fired\n\t\t\t\t// on the default button of the dialog,\n\t\t\t\t// causing a beep since no file is\n\t\t\t\t// selected...\n\t\t\t\tif (item != null)\n\t\t\t\t{\n\t\t\t\t\tGlobVFSFileFilter filter = (GlobVFSFileFilter) item;\n\t\t\t\t\tcurrent = new GlobVFSFileFilter(filter.getGlob());\n\t\t\t\t\tsetText(current.getGlob());\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// this happens when changing the selected item\n\t\t\t// in the combo; the combo has not yet fired an\n\t\t\t// itemStateChanged() event, so it's not put into\n\t\t\t// non-editable mode by the handler above.\n\t\t\tif (!(item instanceof GlobVFSFileFilter))\n\t\t\t\treturn;\n\n\t\t\tif (item != null)\n\t\t\t{\n\t\t\t\tGlobVFSFileFilter filter = (GlobVFSFileFilter) item;\n\t\t\t\tfilter = new GlobVFSFileFilter(filter.getGlob());\n\t\t\t\tsetText(filter.getGlob());\n\t\t\t\taddCurrentToHistory();\n\t\t\t\tcurrent = filter;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsetText(\"*\");\n\t\t\t\tcurrent = new GlobVFSFileFilter(\"*\");\n\t\t\t}\n\t\t}\n\n\t\t@Override\n\t\tprotected void processFocusEvent(FocusEvent e)\n\t\t{\n\t\t\t// AWT will call setItem() when the editor loses\n\t\t\t// focus; that can cause weird and unwanted things\n\t\t\t// to happen, so ignore lost focus events.\n\t\t\tif (e.getID() != FocusEvent.FOCUS_LOST)\n\t\t\t\tsuper.processFocusEvent(e);\n\t\t\telse \n\t\t\t{\n\t\t\t\tsetCaretPosition(0);\n\t\t\t\tgetCaret().setVisible(false);\n\t\t\t}\n\t\t}\n\n\t\tpublic Component getEditorComponent()\n\t\t{\n\t\t\treturn this;\n\t\t}\n\n\t\tprivate GlobVFSFileFilter current;\n\n\t} //}}}\n\n\t//{{{ VFSFileFilterRenderer class\n\tprivate static class VFSFileFilterRenderer extends DefaultListCellRenderer\n\t{\n\n\t\t@Override\n\t\tpublic Component getListCellRendererComponent(JList list,\n\t\t\tObject value, int index, boolean isSelected,\n\t\t\tboolean cellHasFocus)\n\t\t{\n\t\t\tassert value instanceof VFSFileFilter : \"Filter is not a VFSFileFilter\";\n\t\t\tsuper.getListCellRendererComponent(\n\t\t\t\tlist, value, index, isSelected, cellHasFocus);\n\t\t\tsetText(((VFSFileFilter)value).getDescription());\n\t\t\treturn this;\n\t\t}\n\n\t} //}}}\n\n\t//{{{ DirectoriesOnlyFilter class\n\tpublic static class DirectoriesOnlyFilter implements VFSFileFilter\n\t{\n\n\t\tpublic boolean accept(VFSFile file)\n\t\t{\n\t\t\treturn file.getType() == VFSFile.DIRECTORY\n\t\t\t\t|| file.getType() == VFSFile.FILESYSTEM;\n\t\t}\n\n\t\tpublic boolean accept(String url)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tpublic String getDescription()\n\t\t{\n\t\t\treturn jEdit.getProperty(\"vfs.browser.file_filter.dir_only\");", "functions": [{"function_name": "browseDirectoryInNewWindow", "code": "\tpublic static void browseDirectoryInNewWindow(View view, String path)\n\t{\n\t\tDockableWindowManager wm = view.getDockableWindowManager();\n\t\tif(path != null)\n\t\t{\n\t\t\t// this is such a bad way of doing it, but oh well...\n\t\t\tjEdit.setTemporaryProperty(\"vfs.browser.path.tmp\",path);\n\t\t}\n\t\twm.floatDockableWindow(\"vfs.browser\");\n\t\tjEdit.unsetProperty(\"vfs.browser.path.tmp\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [5, 8], [6, 9], [7, 10], [2, 11], [1, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 5], [9, 6], [10, 7], [11, 2], [12, 1], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "browseDirectory", "code": "\tpublic static void browseDirectory(View view, String path)\n\t{\n\t\tDockableWindowManager wm = view.getDockableWindowManager();\n\t\tVFSBrowser browser = (VFSBrowser)wm.getDockable(NAME);\n\t\tif(browser != null)\n\t\t{\n\t\t\twm.showDockableWindow(NAME);\n\t\t\tbrowser.setDirectory(path);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(path != null)\n\t\t\t{\n\t\t\t\t// this is such a bad way of doing it, but oh well...\n\t\t\t\tjEdit.setTemporaryProperty(\"vfs.browser.path.tmp\",path);\n\t\t\t}\n\t\t\twm.addDockableWindow(\"vfs.browser\");\n\t\t\tjEdit.unsetProperty(\"vfs.browser.path.tmp\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [3, 9], [1, 10], [1, 11], [7, 12], [1, 13], [1, 14], [2, 15], [10, 16], [11, 17], [12, 18], [7, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 3], [10, 1], [11, 1], [12, 7], [13, 1], [14, 1], [15, 2], [16, 10], [17, 11], [18, 12], [19, 7], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getActionContext", "code": "\tpublic static ActionContext getActionContext()\n\t{\n\t\treturn actionContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "focusOnDefaultComponent", "code": "\tpublic void focusOnDefaultComponent()\n\t{\n\t\t// pathField.requestFocus();\t\t\n\t\tdefaultFocusComponent.requestFocus();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefaultFocusComponent", "code": "\tvoid setDefaultFocusComponent(JComponent c) \n\t{\n\t\tdefaultFocusComponent = c;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addNotify", "code": "\t@Override\n\tpublic void addNotify()\n\t{\n\t\tsuper.addNotify();\n\t\tEditBus.addToBus(this);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "removeNotify", "code": "\t@Override\n\tpublic void removeNotify()\n\t{\n\t\tsuper.removeNotify();\n\t\tjEdit.setBooleanProperty(\"vfs.browser.filter-enabled\",\n\t\t\tfilterCheckbox.isSelected());\n\t\tif(mode == BROWSER || !jEdit.getBooleanProperty(\n\t\t\t\"vfs.browser.currentBufferFilter\"))\n\t\t{\n\t\t\tVFSFileFilter selectedFilter =\n\t\t\t\t(VFSFileFilter) filterField.getSelectedItem();\n\t\t\tif (selectedFilter instanceof GlobVFSFileFilter)\n\t\t\t\tjEdit.setProperty(\"vfs.browser.last-filter\",\n\t\t\t\t\t((GlobVFSFileFilter)selectedFilter).getGlob());\n\t\t}\n\t\tEditBus.removeFromBus(this);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [3, 7], [3, 8], [4, 9], [4, 10], [5, 11], [7, 12], [5, 13], [13, 14], [6, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 3], [8, 3], [9, 4], [10, 4], [11, 5], [12, 7], [13, 5], [14, 13], [15, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "handleMessage", "code": "\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof PropertiesChanged)\n\t\t\tpropertiesChanged();\n\t\telse if(msg instanceof BufferUpdate)\n\t\t{\n\t\t\tBufferUpdate bmsg = (BufferUpdate)msg;\n\t\t\tif(bmsg.getWhat() == BufferUpdate.CREATED\n\t\t\t\t|| bmsg.getWhat() == BufferUpdate.CLOSED)\n\t\t\t\tbrowserView.updateFileView();\n\t\t}\n\t\telse if(msg instanceof PluginUpdate)\n\t\t{\n\t\t\tPluginUpdate pmsg = (PluginUpdate)msg;\n\t\t\tif((pmsg.getWhat() == PluginUpdate.LOADED ||\n\t\t\t   pmsg.getWhat() == PluginUpdate.UNLOADED) &&\n\t\t\t\tplugins != null /* plugins can be null if the VFSBrowser menu bar is hidden */)\n\t\t\t{\n\t\t\t\tplugins.updatePopupMenu();\n\t\t\t}\n\t\t}\n\t\telse if(msg instanceof VFSUpdate)\n\t\t{\n\t\t\tmaybeReloadDirectory(((VFSUpdate)msg).getPath());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [5, 8], [5, 9], [3, 10], [3, 11], [8, 12], [5, 13], [5, 14], [10, 15], [13, 16], [10, 17], [15, 18], [15, 19], [8, 20], [16, 21], [16, 22], [18, 23], [19, 24], [13, 25], [21, 26], [22, 27], [22, 28], [27, 29], [28, 30], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 5], [9, 5], [10, 3], [11, 3], [12, 8], [13, 5], [14, 5], [15, 10], [16, 13], [17, 10], [18, 15], [19, 15], [20, 8], [21, 16], [22, 16], [23, 18], [24, 19], [25, 13], [26, 21], [27, 22], [28, 22], [29, 27], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getView", "code": "\tpublic View getView()\n\t{\n\t\treturn view;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMode", "code": "\tpublic int getMode()\n\t{\n\t\treturn mode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isMultipleSelectionEnabled", "code": "\tpublic boolean isMultipleSelectionEnabled()\n\t{\n\t\treturn multipleSelection;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isHorizontalLayout", "code": "\tpublic boolean isHorizontalLayout()\n\t{\n\t\treturn horizontalLayout;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getShowHiddenFiles", "code": "\tpublic boolean getShowHiddenFiles()\n\t{\n\t\treturn showHiddenFiles;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShowHiddenFiles", "code": "\tpublic void setShowHiddenFiles(boolean showHiddenFiles)\n\t{\n\t\tthis.showHiddenFiles = showHiddenFiles;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFilenameFilter", "code": "\t@Deprecated\n\tpublic String getFilenameFilter()\n\t{\n\t\tif(filterCheckbox.isSelected())\n\t\t{\n\t\t\tString filter = filterField.getSelectedItem().toString();\n\t\t\tif(filter.length() == 0)\n\t\t\t\treturn \"*\";\n\t\t\telse\n\t\t\t\treturn filter;\n\t\t}\n\t\telse\n\t\t\treturn \"*\";", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [1, 6], [5, 7], [5, 8], [5, 9], [8, 10], [9, 11], [9, 12], [6, 13], [13, 14], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 1], [7, 5], [8, 5], [9, 5], [10, 8], [11, 9], [12, 9], [13, 6], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getVFSFileFilter", "code": "\tpublic VFSFileFilter getVFSFileFilter()\n\t{\n\t\tif (mode == CHOOSE_DIRECTORY_DIALOG)\n\t\t\treturn new DirectoriesOnlyFilter();\n\t\treturn \t(VFSFileFilter) filterField.getSelectedItem();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addVFSFileFilter", "code": "\tpublic void addVFSFileFilter(VFSFileFilter filter)\n\t{\n\t\tfilterField.addItem(filter);\n\t\tif (filterField.getItemCount() == 2)\n\t\t{\n\t\t\tfilterField.setEditor(filterEditor);\n\t\t\tfilterField.setEditable(true);\n\n\t\t\tGridBagLayout layout = (GridBagLayout) pathAndFilterPanel.getLayout();\n\t\t\tGridBagConstraints cons =layout.getConstraints(filterEditor);\n\t\t\tcons.gridwidth = GridBagConstraints.REMAINDER;\n\t\t\tcons.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tcons.gridx = 1;\n\t\t\tcons.weightx = 1;\n\n\t\t\tpathAndFilterPanel.remove(filterEditor);\n\t\t\tlayout.setConstraints(filterField, cons);\n\t\t\tpathAndFilterPanel.add(filterField);\n\t\t\tpathAndFilterPanel.validate();\n\t\t\tpathAndFilterPanel.repaint();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [3, 7], [3, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [14, 20], [15, 21], [5, 22], [18, 23], [6, 24], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 3], [8, 3], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 14], [21, 15], [22, 5], [23, 18], [24, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "setFilenameFilter", "code": "\tpublic void setFilenameFilter(String filter)\n\t{\n\t\tif(filter == null || filter.length() == 0 || \"*\".equals(filter))\n\t\t\tfilterCheckbox.setSelected(false);\n\t\telse\n\t\t{\n\t\t\tfilterCheckbox.setSelected(true);\n\t\t\tfilterEditor.setItem(new GlobVFSFileFilter(filter));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [1, 8], [4, 9], [5, 10], [6, 11], [6, 12], [7, 13], [8, 14], [11, 15], [11, 16], [12, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 1], [9, 4], [10, 5], [11, 6], [12, 6], [13, 7], [14, 8], [15, 11], [16, 11], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getDirectoryField", "code": "\tpublic HistoryTextField getDirectoryField()\n\t{\n\t\treturn pathField;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDirectory", "code": "\tpublic String getDirectory()\n\t{\n\t\treturn path;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "previousDirectory", "code": "\tpublic void previousDirectory() \n\t{\n\t\tif (historyStack.size() > 1)\n\t\t{\n\t\t\thistoryStack.pop();\n\t\t\tnextDirectoryStack.push(path);\n\t\t\tsetDirectory(historyStack.peek());\n\t\t\thistoryStack.pop();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 5], [1, 6], [1, 7], [1, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 1], [6, 1], [7, 1], [8, 1], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "nextDirectory", "code": "\tpublic void nextDirectory() \n\t{\n\t\tif (!nextDirectoryStack.isEmpty())\n\t\t{\n\t\t\tsetDirectory(nextDirectoryStack.pop());", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [1, 0], [2, 1], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDirectory", "code": "\tpublic void setDirectory(String path)\n\t{\n\t\tif(path.startsWith(\"file:\"))\n\t\t\tpath = path.substring(5);\n\t\tpath = MiscUtilities.expandVariables(path);\n\t\tpathField.setText(path);\n\n\t\tif(!startRequest())\n\t\t\treturn;\n\n\t\thistoryStack.push(path);\n\t\tbrowserView.saveExpansionState();\n\t\tbrowserView.loadDirectory(null,path,true);\n\t\tthis.path = path;\n\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tendRequest();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "FUNC_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [0, 11], [0, 12], [2, 13], [4, 14], [6, 15], [6, 16], [12, 17], [2, 18], [13, 19], [14, 20], [18, 21], [21, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 0], [12, 0], [13, 2], [14, 4], [15, 6], [16, 6], [17, 12], [18, 2], [19, 13], [20, 14], [21, 18], [22, 21], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getRootDirectory", "code": "\tpublic static String getRootDirectory()\n\t{\n\t\tif(OperatingSystem.isMacOS() || OperatingSystem.isDOSDerived())\n\t\t\treturn FileRootsVFS.PROTOCOL + ':';\n\t\telse\n\t\t\treturn \"/\";", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [4, 8], [6, 9], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 4], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "rootDirectory", "code": "\tpublic void rootDirectory()\n\t{\n\t\tsetDirectory(getRootDirectory());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "reloadDirectory", "code": "\tpublic void reloadDirectory()\n\t{\n\t\t// used by FTP plugin to clear directory cache\n\t\tVFSManager.getVFSForPath(path).reloadDirectory(path);\n\n\t\tbrowserView.saveExpansionState();\n\t\tbrowserView.loadDirectory(null,path,false);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "delete", "code": "\tpublic void delete(VFSFile[] files)\n\t{\n\t\tString dialogType;\n\n\t\tif(MiscUtilities.isURL(files[0].getDeletePath())\n\t\t\t&& FavoritesVFS.PROTOCOL.equals(\n\t\t\tMiscUtilities.getProtocolOfURL(files[0].getDeletePath())))\n\t\t{\n\t\t\tdialogType = \"vfs.browser.delete-favorites\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogType = \"vfs.browser.delete-confirm\";\n\t\t}\n\n\t\tStringBuilder buf = new StringBuilder();\n\t\tString typeStr = \"files\";\n\t\tfor(int i = 0; i < files.length; i++)\n\t\t{\n\t\t\tbuf.append(files[i].getPath());\n\t\t\tbuf.append('\\n');\n\t\t\tif (files[i].getType() == VFSFile.DIRECTORY)\n\t\t\t\ttypeStr = \"directories and their contents\";\n\t\t}\n\n\t\tObject[] args = { buf.toString(), typeStr};\n\t\t\n\t\tint result = GUIUtilities.confirm(this,dialogType,args,\n\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\treturn;\n\n\t\tVFS vfs = VFSManager.getVFSForPath(files[0].getDeletePath());\n\n\t\tif(!startRequest())\n\t\t\treturn;\n\n\t\tfor(int i = 0; i < files.length; i++)\n\t\t{\n\t\t\tObject session = vfs.createVFSSession(files[i].getDeletePath(),this);\n\t\t\tif(session == null)\n\t\t\t\tcontinue;\n\n\t\t\tVFSManager.runInWorkThread(new BrowserIORequest(\n\t\t\t\tBrowserIORequest.DELETE,this,\n\t\t\t\tsession,vfs,files[i].getDeletePath(),\n\t\t\t\tnull,null));\n\t\t}\n\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tendRequest();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [2, 16], [4, 17], [4, 18], [7, 19], [10, 20], [13, 21], [1, 22], [1, 23], [3, 24], [5, 25], [7, 26], [8, 27], [9, 28], [20, 29], [20, 30], [21, 31], [1, 32], [22, 33], [22, 34], [1, 35], [6, 36], [26, 37], [7, 38], [7, 39], [7, 40], [10, 41], [10, 42], [29, 43], [32, 44], [34, 45], [23, 46], [24, 47], [26, 48], [38, 49], [41, 50], [42, 51], [30, 52], [31, 53], [44, 54], [44, 55], [24, 56], [48, 57], [37, 58], [39, 59], [43, 60], [30, 61], [44, 62], [46, 63], [43, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 2], [17, 4], [18, 4], [19, 7], [20, 10], [21, 13], [22, 1], [23, 1], [24, 3], [25, 5], [26, 7], [27, 8], [28, 9], [29, 20], [30, 20], [31, 21], [32, 1], [33, 22], [34, 22], [35, 1], [36, 6], [37, 26], [38, 7], [39, 7], [40, 7], [41, 10], [42, 10], [43, 29], [44, 32], [45, 34], [46, 23], [47, 24], [48, 26], [49, 38], [50, 41], [51, 42], [52, 30], [53, 31], [54, 44], [55, 44], [56, 24], [57, 48], [58, 37], [59, 39], [60, 43], [61, 30], [62, 44], [63, 46], [64, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "rename", "code": "\tpublic void rename(String from)\n\t{\n\t\tVFS vfs = VFSManager.getVFSForPath(from);\n\n\t\tString filename = vfs.getFileName(from);\n\t\tString[] args = { filename };\n\t\tString to = GUIUtilities.input(this,\"vfs.browser.rename\",\n\t\t\targs,filename);\n\t\tif(to == null)\n\t\t\treturn;\n\n\t\tto = MiscUtilities.constructPath(vfs.getParentOfPath(from),to);\n\n\t\tObject session = vfs.createVFSSession(from,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tif(!startRequest())\n\t\t\treturn;\n\n\t\tVFSManager.runInWorkThread(new BrowserIORequest(\n\t\t\tBrowserIORequest.RENAME,this,\n\t\t\tsession,vfs,from,to,null));\n\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tendRequest();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [2, 14], [2, 15], [0, 16], [4, 17], [4, 18], [10, 19], [11, 20], [15, 21], [3, 22], [16, 23], [18, 24], [5, 25], [7, 26], [8, 27], [19, 28], [20, 29], [23, 30], [25, 31], [28, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 2], [15, 2], [16, 0], [17, 4], [18, 4], [19, 10], [20, 11], [21, 15], [22, 3], [23, 16], [24, 18], [25, 5], [26, 7], [27, 8], [28, 19], [29, 20], [30, 23], [31, 25], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "rename", "code": "\tpublic void rename(String from, String newname)\n\t{\n\t\tVFS vfs = VFSManager.getVFSForPath(from);\n\n\t\tString filename = vfs.getFileName(from);\n\t\tString[] args = { filename };\n\t\tString to = newname;\n\t\t\n\t\tif(to == null || filename.equals(newname))\n\t\t\treturn;\n\n\t\tto = MiscUtilities.constructPath(vfs.getParentOfPath(from),to);\n\n\t\tObject session = vfs.createVFSSession(from,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tif(!startRequest())\n\t\t\treturn;\n\n\t\tVFSManager.runInWorkThread(new BrowserIORequest(\n\t\t\tBrowserIORequest.RENAME,this,\n\t\t\tsession,vfs,from,to,null));\n\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tendRequest();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [1, 14], [2, 15], [2, 16], [0, 17], [4, 18], [4, 19], [11, 20], [12, 21], [16, 22], [3, 23], [17, 24], [19, 25], [19, 26], [7, 27], [8, 28], [20, 29], [21, 30], [24, 31], [26, 32], [29, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 1], [15, 2], [16, 2], [17, 0], [18, 4], [19, 4], [20, 11], [21, 12], [22, 16], [23, 3], [24, 17], [25, 19], [26, 19], [27, 7], [28, 8], [29, 20], [30, 21], [31, 24], [32, 26], [33, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "mkdir", "code": "\tpublic void mkdir()\n\t{\n\t\tString newDirectory = GUIUtilities.input(this,\"vfs.browser.mkdir\",null);\n\t\tif(newDirectory == null)\n\t\t\treturn;\n\n\t\t// if a directory is selected, create new dir in there.\n\t\t// if a file is selected, create new dir inside its parent.\n\t\tfinal VFSFile[] selected = getSelectedFiles();\n\t\tString parent;\n\t\tif(selected.length == 0)\n\t\t\tparent = path;\n\t\telse if(selected[0].getType() == VFSFile.FILE)\n\t\t{\n\t\t\tparent = selected[0].getPath();\n\t\t\tparent = VFSManager.getVFSForPath(parent)\n\t\t\t\t.getParentOfPath(parent);\n\t\t}\n\t\telse\n\t\t\tparent = selected[0].getPath();\n\n\t\tVFS vfs = VFSManager.getVFSForPath(parent);\n\n\t\t// path is the currently viewed directory in the browser\n\t\tnewDirectory = MiscUtilities.constructPath(parent,newDirectory);\n\n\t\tObject session = vfs.createVFSSession(newDirectory,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tif(!startRequest())\n\t\t\treturn;\n\n\t\tVFSManager.runInWorkThread(new BrowserIORequest(\n\t\t\tBrowserIORequest.MKDIR,this,\n\t\t\tsession,vfs,newDirectory,null,null));\n\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tendRequest();\n\t\t\t\tif (selected.length != 0 && selected[0].getType() != VFSFile.FILE)\n\t\t\t\t{\n\t\t\t\t\tVFSDirectoryEntryTable directoryEntryTable = browserView.getTable();\n\t\t\t\t\tint selectedRow = directoryEntryTable.getSelectedRow();\n\t\t\t\t\tVFSDirectoryEntryTableModel model = (VFSDirectoryEntryTableModel) directoryEntryTable.getModel();\n\t\t\t\t\tVFSDirectoryEntryTableModel.Entry entry = model.files[selectedRow];\n\t\t\t\t\tif (!entry.expanded)\n\t\t\t\t\t{\n\t\t\t\t\t\tbrowserView.clearExpansionState();\n\t\t\t\t\t\tbrowserView.loadDirectory(entry,entry.dirEntry.getPath(),\n\t\t\t\t\t\t\tfalse);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [2, 14], [2, 15], [0, 16], [5, 17], [5, 18], [8, 19], [8, 20], [10, 21], [11, 22], [15, 23], [3, 24], [16, 25], [4, 26], [17, 27], [5, 28], [18, 29], [7, 30], [20, 31], [9, 32], [21, 33], [22, 34], [22, 35], [17, 36], [32, 37], [32, 38], [33, 39], [17, 40], [17, 41], [27, 42], [39, 43], [33, 44], [36, 45], [40, 46], [27, 47], [39, 48], [39, 49], [39, 50], [39, 51], [39, 52], [43, 53], [43, 54], [36, 55], [46, 56], [41, 57], [54, 58], [41, 59], [51, 60], [52, 61], [53, 62], [48, 63], [48, 64], [50, 65], [53, 66], [63, 67], [63, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 2], [15, 2], [16, 0], [17, 5], [18, 5], [19, 8], [20, 8], [21, 10], [22, 11], [23, 15], [24, 3], [25, 16], [26, 4], [27, 17], [28, 5], [29, 18], [30, 7], [31, 20], [32, 9], [33, 21], [34, 22], [35, 22], [36, 17], [37, 32], [38, 32], [39, 33], [40, 17], [41, 17], [42, 27], [43, 39], [44, 33], [45, 36], [46, 40], [47, 27], [48, 39], [49, 39], [50, 39], [51, 39], [52, 39], [53, 43], [54, 43], [55, 36], [56, 46], [57, 41], [58, 54], [59, 41], [60, 51], [61, 52], [62, 53], [63, 48], [64, 48], [65, 50], [66, 53], [67, 63], [68, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "newFile", "code": "\tpublic void newFile()\n\t{\n\t\tVFSFile[] selected = getSelectedFiles();\n\t\tif(selected.length >= 1)\n\t\t{\n\t\t\tVFSFile file = selected[0];\n\t\t\tif(file.getType() == VFSFile.DIRECTORY)\n\t\t\t\tjEdit.newFile(view,file.getPath());\n\t\t\telse\n\t\t\t{\n\t\t\t\tVFS vfs = VFSManager.getVFSForPath(file.getPath());\n\t\t\t\tjEdit.newFile(view,vfs.getParentOfPath(file.getPath()));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tjEdit.newFile(view,path);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [2, 8], [5, 9], [5, 10], [5, 11], [9, 12], [5, 13], [11, 14], [13, 15], [10, 16], [6, 17], [15, 18], [16, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 2], [9, 5], [10, 5], [11, 5], [12, 9], [13, 5], [14, 11], [15, 13], [16, 10], [17, 6], [18, 15], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "fileProperties", "code": "\tpublic void fileProperties(VFSFile[] files)\n\t{\n\t\tnew FilePropertiesDialog(view, this, files);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "searchInDirectory", "code": "\tpublic void searchInDirectory()\n\t{\n\t\tVFSFile[] selected = getSelectedFiles();\n\t\tif(selected.length >= 1)\n\t\t{\n\t\t\tVFSFile file = selected[0];\n\t\t\tsearchInDirectory(file.getPath(),file.getType() != VFSFile.FILE);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsearchInDirectory(path,true);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [1, 7], [1, 8], [7, 9], [8, 10], [8, 11], [10, 12], [4, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 1], [8, 1], [9, 7], [10, 8], [11, 8], [12, 10], [13, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "searchInDirectory", "code": "\tpublic void searchInDirectory(String path, boolean directory)\n\t{\n\t\tString filter;\n\t\tVFSFileFilter vfsff = getVFSFileFilter();\n\t\tif (vfsff instanceof GlobVFSFileFilter)\n\t\t\tfilter = ((GlobVFSFileFilter)vfsff).getGlob();\n\t\telse\n\t\t\tfilter = \"*\";\n\n\t\tif (!directory)\n\t\t{\n\t\t\tString name = MiscUtilities.getFileName(path);\n\t\t\tString ext = MiscUtilities.getFileExtension(name);\n\t\t\tfilter = (ext == null || ext.length() == 0\n\t\t\t\t? filter : '*' + ext);\n\t\t\tpath = MiscUtilities.getParentOfPath(path);\n\t\t}\n\n\t\tSearchAndReplace.setSearchFileSet(new DirectoryListSet(\n\t\t\tpath,filter,true));\n\t\tSearchDialog.showSearchDialog(view,null,SearchDialog.DIRECTORY);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [7, 10], [8, 11], [1, 12], [1, 13], [2, 14], [2, 15], [3, 16], [11, 17], [1, 18], [1, 19], [14, 20], [18, 21], [19, 22], [12, 23], [13, 24], [22, 25], [22, 26], [25, 27], [26, 28], [26, 29], [28, 30], [28, 31], [29, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 7], [11, 8], [12, 1], [13, 1], [14, 2], [15, 2], [16, 3], [17, 11], [18, 1], [19, 1], [20, 14], [21, 18], [22, 19], [23, 12], [24, 13], [25, 22], [26, 22], [27, 25], [28, 26], [29, 26], [30, 28], [31, 28], [32, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "getBrowserView", "code": "\tBrowserView getBrowserView()\n\t{\n\t\treturn browserView;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSelectedFiles", "code": "\tpublic VFSFile[] getSelectedFiles()\n\t{\n\t\treturn browserView.getSelectedFiles();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "locateFile", "code": "\tpublic void locateFile(final String path)\n\t{\n\t\tVFSFileFilter filter = getVFSFileFilter();\n\t\tif(!filter.accept(MiscUtilities.getFileName(path)))\n\t\t\tsetFilenameFilter(null);\n\n\t\tsetDirectory(MiscUtilities.getParentOfPath(path));\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tbrowserView.getTable().selectFile(path);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [5, 8], [1, 9], [6, 10], [2, 11], [7, 12], [9, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 5], [9, 1], [10, 6], [11, 2], [12, 7], [13, 9], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "createPluginsMenu", "code": "\tpublic JComponent createPluginsMenu(JComponent pluginMenu, boolean showManagerOptions)\n\t{\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tif(showManagerOptions && getMode() == BROWSER)\n\t\t{\n\t\t\tpluginMenu.add(GUIUtilities.loadMenuItem(\"plugin-manager\",false));\n\t\t\tpluginMenu.add(GUIUtilities.loadMenuItem(\"plugin-options\",false));\n\t\t\tif (pluginMenu instanceof JMenu)\n\t\t\t\t((JMenu)pluginMenu).addSeparator();\n\t\t\telse if (pluginMenu instanceof JPopupMenu)\n\t\t\t\t((JPopupMenu)pluginMenu).addSeparator();\n\n\t\t}\n\t\telse\n\t\t\t/* we're in a modal dialog */;\n\n\t\tList<JMenuItem> vec = new ArrayList<JMenuItem>();\n\n\t\t//{{{ old API\n\t\tEnumeration<VFS> e = VFSManager.getFilesystems();\n\n\t\twhile(e.hasMoreElements())\n\t\t{\n\t\t\tVFS vfs = e.nextElement();\n\t\t\tif((vfs.getCapabilities() & VFS.BROWSE_CAP) == 0)\n\t\t\t\tcontinue;\n\n\t\t\t\tJMenuItem menuItem = new JMenuItem(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.\" + vfs.getName() + \".label\"));\n\t\t\t\tmenuItem.setActionCommand(vfs.getName());\n\t\t\t\tmenuItem.addActionListener(actionHandler);\n\t\t\t\tvec.add(menuItem);\n\t\t} //}}}\n\n\t\t//{{{ new API\n\t\tEditPlugin[] plugins = jEdit.getPlugins();\n\t\tfor (int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tJMenuItem menuItem = plugins[i].createBrowserMenuItems();\n\t\t\tif(menuItem != null)\n\t\t\t\tvec.add(menuItem);\n\t\t} //}}}\n\n\t\tif (!vec.isEmpty())\n\t\t{\n\t\t\tCollections.sort(vec,new MenuItemTextComparator());\n\t\t\tfor(int i = 0; i < vec.size(); i++)\n\t\t\t\tpluginMenu.add(vec.get(i));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJMenuItem mi = new JMenuItem(jEdit.getProperty(\n\t\t\t\t\t\"vfs.browser.plugins.no-plugins.label\"));\n\t\t\tmi.setEnabled(false);\n\t\t\tpluginMenu.add(mi);\n\t\t}\n\n\t\treturn pluginMenu;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [5, 14], [8, 15], [2, 16], [2, 17], [3, 18], [3, 19], [4, 20], [5, 21], [5, 22], [5, 23], [6, 24], [7, 25], [8, 26], [15, 27], [9, 28], [2, 29], [2, 30], [17, 31], [2, 32], [18, 33], [3, 34], [5, 35], [5, 36], [5, 37], [22, 38], [22, 39], [26, 40], [26, 41], [8, 42], [8, 43], [27, 44], [30, 45], [16, 46], [17, 47], [31, 48], [32, 49], [18, 50], [33, 51], [37, 52], [21, 53], [39, 54], [39, 55], [23, 56], [40, 57], [42, 58], [43, 59], [46, 60], [47, 61], [17, 62], [19, 63], [53, 64], [55, 65], [58, 66], [58, 67], [59, 68], [59, 69], [60, 70], [64, 71], [71, 72], [71, 73], [73, 74], [73, 75], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 5], [15, 8], [16, 2], [17, 2], [18, 3], [19, 3], [20, 4], [21, 5], [22, 5], [23, 5], [24, 6], [25, 7], [26, 8], [27, 15], [28, 9], [29, 2], [30, 2], [31, 17], [32, 2], [33, 18], [34, 3], [35, 5], [36, 5], [37, 5], [38, 22], [39, 22], [40, 26], [41, 26], [42, 8], [43, 8], [44, 27], [45, 30], [46, 16], [47, 17], [48, 31], [49, 32], [50, 18], [51, 33], [52, 37], [53, 21], [54, 39], [55, 39], [56, 23], [57, 40], [58, 42], [59, 43], [60, 46], [61, 47], [62, 17], [63, 19], [64, 53], [65, 55], [66, 58], [67, 58], [68, 59], [69, 59], [70, 60], [71, 64], [72, 71], [73, 71], [74, 73], [75, 73], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "addBrowserListener", "code": "\tpublic void addBrowserListener(BrowserListener l)\n\t{\n\t\tlistenerList.add(BrowserListener.class,l);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeBrowserListener", "code": "\tpublic void removeBrowserListener(BrowserListener l)\n\t{\n\t\tlistenerList.remove(BrowserListener.class,l);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "filesActivated", "code": "\tpublic void filesActivated(int mode, boolean canDoubleClickClose)\n\t{\n\t\tVFSFile[] selectedFiles = browserView.getSelectedFiles();\n\n\t\tBuffer buffer = null;\n\ncheck_selected: for(int i = 0; i < selectedFiles.length; i++)\n\t\t{\n\t\t\tVFSFile file = selectedFiles[i];\n\n\t\t\tif(file.getType() == VFSFile.DIRECTORY\n\t\t\t\t|| file.getType() == VFSFile.FILESYSTEM)\n\t\t\t{\n\t\t\t\tif(mode == M_OPEN_NEW_VIEW && this.mode == BROWSER)\n\t\t\t\t\tbrowseDirectoryInNewWindow(view,file.getPath());\n\t\t\t\telse\n\t\t\t\t\tsetDirectory(file.getPath());\n\t\t\t}\n\t\t\telse if(this.mode == BROWSER || this.mode == BROWSER_DIALOG)\n\t\t\t{\n\t\t\t\tif(mode == M_INSERT)\n\t\t\t\t{\n\t\t\t\t\tview.getBuffer().insertFile(view,\n\t\t\t\t\t\tfile.getPath());\n\t\t\t\t\tcontinue check_selected;\n\t\t\t\t}\n\n\t\t\t\tBuffer _buffer = jEdit.getBuffer(file.getPath());\n\t\t\t\tif(_buffer == null)\n\t\t\t\t{\n\t\t\t\t\tHashtable<String, Object> props = new Hashtable<String, Object>();\n\t\t\t\t\tprops.put(JEditBuffer.ENCODING,currentEncoding);\n\t\t\t\t\tprops.put(Buffer.ENCODING_AUTODETECT,\n\t\t\t\t\t\t  Boolean.valueOf(autoDetectEncoding));\n\t\t\t\t\t_buffer = jEdit.openFile(view, null,\n\t\t\t\t\t\tfile.getPath(),false,props);\n\t\t\t\t}\n\t\t\t\telse if(doubleClickClose && canDoubleClickClose\n\t\t\t\t\t&& this.mode != BROWSER_DIALOG\n\t\t\t\t\t&& selectedFiles.length == 1)\n\t\t\t\t{\n\t\t\t\t\t// close if this buffer is currently\n\t\t\t\t\t// visible in the view.\n\t\t\t\t\tEditPane[] editPanes = view.getEditPanes();\n\t\t\t\t\tfor(int j = 0; j < editPanes.length; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(editPanes[j].getBuffer() == _buffer)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tjEdit.closeBuffer(view,_buffer);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(_buffer != null)\n\t\t\t\t\tbuffer = _buffer;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// if a file is selected in OPEN_DIALOG or\n\t\t\t\t// SAVE_DIALOG mode, just let the listener(s)\n\t\t\t\t// handle it\n\t\t\t}\n\t\t}\n\n\t\tif(buffer != null)\n\t\t{\n\t\t\tswitch(mode)\n\t\t\t{\n\t\t\tcase M_OPEN:\n\t\t\t\tview.setBuffer(buffer);\n\t\t\t\tbreak;\n\t\t\tcase M_OPEN_NEW_VIEW:\n\t\t\t\tjEdit.newView(view,buffer,false);\n\t\t\t\tbreak;\n\t\t\tcase M_OPEN_NEW_PLAIN_VIEW:\n\t\t\t\tjEdit.newView(view,buffer,true);\n\t\t\t\tbreak;\n\t\t\tcase M_OPEN_NEW_SPLIT:\n\t\t\t\tview.splitHorizontally().setBuffer(buffer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObject[] listeners = listenerList.getListenerList();\n\t\tfor(int i = 0; i < listeners.length; i++)\n\t\t{\n\t\t\tif(listeners[i] == BrowserListener.class)\n\t\t\t{\n\t\t\t\tBrowserListener l = (BrowserListener)listeners[i+1];\n\t\t\t\tl.filesActivated(this,selectedFiles);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [1, 12], [2, 13], [3, 14], [10, 15], [4, 16], [4, 17], [5, 18], [6, 19], [12, 20], [1, 21], [16, 22], [16, 23], [4, 24], [12, 25], [14, 26], [14, 27], [14, 28], [14, 29], [22, 30], [16, 31], [23, 32], [23, 33], [12, 34], [14, 35], [14, 36], [14, 37], [14, 38], [22, 39], [22, 40], [22, 41], [22, 42], [30, 43], [30, 44], [31, 45], [32, 46], [33, 47], [35, 48], [36, 49], [37, 50], [39, 51], [40, 52], [40, 53], [42, 54], [31, 55], [31, 56], [45, 57], [45, 58], [39, 59], [51, 60], [52, 61], [40, 62], [53, 63], [41, 64], [42, 65], [55, 66], [56, 67], [52, 68], [52, 69], [61, 70], [61, 71], [40, 72], [40, 73], [40, 74], [64, 75], [42, 76], [25, 77], [68, 78], [70, 79], [71, 80], [71, 81], [72, 82], [73, 83], [62, 84], [76, 85], [77, 86], [68, 87], [69, 88], [82, 89], [82, 90], [82, 91], [85, 92], [87, 93], [68, 94], [87, 95], [87, 96], [93, 97], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 1], [13, 2], [14, 3], [15, 10], [16, 4], [17, 4], [18, 5], [19, 6], [20, 12], [21, 1], [22, 16], [23, 16], [24, 4], [25, 12], [26, 14], [27, 14], [28, 14], [29, 14], [30, 22], [31, 16], [32, 23], [33, 23], [34, 12], [35, 14], [36, 14], [37, 14], [38, 14], [39, 22], [40, 22], [41, 22], [42, 22], [43, 30], [44, 30], [45, 31], [46, 32], [47, 33], [48, 35], [49, 36], [50, 37], [51, 39], [52, 40], [53, 40], [54, 42], [55, 31], [56, 31], [57, 45], [58, 45], [59, 39], [60, 51], [61, 52], [62, 40], [63, 53], [64, 41], [65, 42], [66, 55], [67, 56], [68, 52], [69, 52], [70, 61], [71, 61], [72, 40], [73, 40], [74, 40], [75, 64], [76, 42], [77, 25], [78, 68], [79, 70], [80, 71], [81, 71], [82, 72], [83, 73], [84, 62], [85, 76], [86, 77], [87, 68], [88, 69], [89, 82], [90, 82], [91, 82], [92, 85], [93, 87], [94, 68], [95, 87], [96, 87], [97, 93], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97]]}, {"function_name": "move", "code": "\tpublic void move(String newPosition)\n\t{\n\t\tboolean horz = (mode != BROWSER\n\t\t\t\t|| DockableWindowManager.TOP.equals(newPosition)\n\t\t\t\t|| DockableWindowManager.BOTTOM.equals(newPosition));\n\t\tif (horz == horizontalLayout)\n\t\t\treturn;\n\t\thorizontalLayout = horz;\n\t\ttopBox.remove(toolbarBox);\n\t\ttoolbarBox = new Box(horizontalLayout\n\t\t\t\t? BoxLayout.X_AXIS\n\t\t\t\t: BoxLayout.Y_AXIS);\n\t\ttopBox.add(toolbarBox, 0);\n\t\tpropertiesChanged();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [5, 11], [6, 12], [2, 13], [12, 14], [13, 15], [13, 16], [16, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 5], [12, 6], [13, 2], [14, 12], [15, 13], [16, 13], [17, 16], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "directoryLoaded", "code": "\tvoid directoryLoaded(Object node, Object[] loadInfo,\n\t\tboolean addToHistory)\n\t{\n\t\tVFSManager.runInAWTThread(new DirectoryLoadedAWTRequest(\n\t\t\tnode,loadInfo,addToHistory));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "filesSelected", "code": "\tvoid filesSelected()\n\t{\n\t\tVFSFile[] selectedFiles = browserView.getSelectedFiles();\n\n\t\tif(mode == BROWSER)\n\t\t{\n\t\t\tfor(int i = 0; i < selectedFiles.length; i++)\n\t\t\t{\n\t\t\t\tVFSFile file = selectedFiles[i];\n\t\t\t\tBuffer buffer = jEdit.getBuffer(file.getPath());\n\t\t\t\tif(buffer != null && view != null)\n\t\t\t\t\tview.setBuffer(buffer);\n\t\t\t}\n\t\t}\n\n\t\tObject[] listeners = listenerList.getListenerList();\n\t\tfor(int i = 0; i < listeners.length; i++)\n\t\t{\n\t\t\tif(listeners[i] == BrowserListener.class)\n\t\t\t{\n\t\t\t\tBrowserListener l = (BrowserListener)listeners[i+1];\n\t\t\t\tl.filesSelected(this,selectedFiles);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "LOOP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [2, 8], [3, 9], [4, 10], [7, 11], [1, 12], [9, 13], [7, 14], [9, 15], [9, 16], [9, 17], [7, 18], [15, 19], [9, 20], [15, 21], [19, 22], [19, 23], [16, 24], [22, 25], [23, 26], [24, 27], [14, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 2], [9, 3], [10, 4], [11, 7], [12, 1], [13, 9], [14, 7], [15, 9], [16, 9], [17, 9], [18, 7], [19, 15], [20, 9], [21, 15], [22, 19], [23, 19], [24, 16], [25, 22], [26, 23], [27, 24], [28, 14], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "endRequest", "code": "\tvoid endRequest()\n\t{\n\t\trequestRunning = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createMenuBar", "code": "\tprivate Container createMenuBar()\n\t{\n\t\tJToolBar menuBar = new JToolBar();\n\t\tmenuBar.setFloatable(false);\n\n\t\tmenuBar.add(new CommandsMenuButton());\n\t\tmenuBar.add(Box.createHorizontalStrut(3));\n\t\tmenuBar.add(plugins = new PluginsMenuButton());\n\t\tmenuBar.add(Box.createHorizontalStrut(3));\n\t\tmenuBar.add(favorites = new FavoritesMenuButton());\n\n\t\treturn menuBar;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [2, 15], [9, 16], [10, 17], [11, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 2], [16, 9], [17, 10], [18, 11], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "createToolBar", "code": "\tprivate Container createToolBar()\n\t{\n\t\tif(mode == BROWSER)\n\t\t\treturn GUIUtilities.loadToolBar(actionContext,\n\t\t\t\t\"vfs.browser.toolbar-browser\");\n\t\telse\n\t\t\treturn GUIUtilities.loadToolBar(actionContext,\n\t\t\t\t\"vfs.browser.toolbar-dialog\");", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [5, 7], [6, 8], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "propertiesChanged", "code": "\tprivate void propertiesChanged()\n\t{\n\t\tshowHiddenFiles = jEdit.getBooleanProperty(\"vfs.browser.showHiddenFiles\");\n\t\tsortMixFilesAndDirs = jEdit.getBooleanProperty(\"vfs.browser.sortMixFilesAndDirs\");\n\t\tsortIgnoreCase = jEdit.getBooleanProperty(\"vfs.browser.sortIgnoreCase\");\n\t\tdoubleClickClose = jEdit.getBooleanProperty(\"vfs.browser.doubleClickClose\");\n\n\t\tbrowserView.propertiesChanged();\n\n\t\ttoolbarBox.removeAll();\n\n\t\tif(jEdit.getBooleanProperty(\"vfs.browser.showToolbar\"))\n\t\t{\n\t\t\tContainer toolbar = createToolBar();\n\t\t\tif(horizontalLayout)\n\t\t\t\ttoolbarBox.add(toolbar);\n\t\t\telse\n\t\t\t{\n\t\t\t\ttoolbarBox.add(toolbar);\n\t\t\t}\n\t\t}\n\n\t\tif(jEdit.getBooleanProperty(\"vfs.browser.showMenubar\"))\n\t\t{\n\t\t\tContainer menubar = createMenuBar();\n\t\t\tif(horizontalLayout)\n\t\t\t{\n\t\t\t\ttoolbarBox.add(menubar,0);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmenubar.add(Box.createGlue());\n\t\t\t\ttoolbarBox.add(menubar);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tplugins = null;\n\t\t\tfavorites = null;\n\t\t}\n\n\t\trevalidate();\n\n\t\tif(path != null)\n\t\t\treloadDirectory();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [3, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [4, 15], [2, 16], [2, 17], [6, 18], [3, 19], [3, 20], [7, 21], [10, 22], [11, 23], [12, 24], [13, 25], [2, 26], [2, 27], [22, 28], [23, 29], [24, 30], [25, 31], [26, 32], [27, 33], [17, 34], [19, 35], [20, 36], [16, 37], [16, 38], [16, 39], [19, 40], [38, 41], [39, 42], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 3], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 4], [16, 2], [17, 2], [18, 6], [19, 3], [20, 3], [21, 7], [22, 10], [23, 11], [24, 12], [25, 13], [26, 2], [27, 2], [28, 22], [29, 23], [30, 24], [31, 25], [32, 26], [33, 27], [34, 17], [35, 19], [36, 20], [37, 16], [38, 16], [39, 16], [40, 19], [41, 38], [42, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "startRequest", "code": "\tprivate boolean startRequest()\n\t{\n\t\tif(requestRunning)\n\t\t{\n\t\t\t// dump stack trace for debugging purposes\n\t\t\tLog.log(Log.DEBUG,this,new Throwable(\"For debugging purposes\"));\n\n\t\t\tGUIUtilities.error(this,\"browser-multiple-io\",null);\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\trequestRunning = true;\n\t\t\treturn true;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [3, 6], [1, 7], [1, 8], [5, 9], [7, 10], [7, 11], [8, 12], [12, 13], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 3], [7, 1], [8, 1], [9, 5], [10, 7], [11, 7], [12, 8], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "updateFilterEnabled", "code": "\tprivate void updateFilterEnabled()\n\t{\n\t\tfilterField.setEnabled(filterCheckbox.isSelected());\n\t\tfilterEditor.setEnabled(filterCheckbox.isSelected());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "maybeReloadDirectory", "code": "\tprivate void maybeReloadDirectory(String dir)\n\t{\n\t\tif(MiscUtilities.isURL(dir)\n\t\t\t&& MiscUtilities.getProtocolOfURL(dir).equals(\n\t\t\tFavoritesVFS.PROTOCOL))\n\t\t{\n\t\t\tif(favorites != null)\n\t\t\t\tfavorites.popup = null;\n\t\t}\n\n\t\t// this is a dirty hack and it relies on the fact\n\t\t// that updates for parents are sent before updates\n\t\t// for the changed nodes themselves (if this was not\n\t\t// the case, the browser wouldn't be updated properly\n\t\t// on delete, etc).\n\t\t//\n\t\t// to avoid causing '> 1 request' errors, don't reload\n\t\t// directory if request already active\n\t\tif(maybeReloadRequestRunning)\n\t\t{\n\t\t\t//Log.log(Log.WARNING,this,\"VFS update: request already in progress\");\n\t\t\treturn;\n\t\t}\n\n\t\t// save a file -> sends vfs update. if a VFS file dialog box\n\t\t// is shown from the same event frame as the save, the\n\t\t// VFSUpdate will be delivered before the directory is loaded,\n\t\t// and before the path is set.\n\t\tif(path != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmaybeReloadRequestRunning = true;\n\n\t\t\t\tbrowserView.maybeReloadDirectory(dir);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tmaybeReloadRequestRunning = false;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [5, 8], [2, 9], [3, 10], [6, 11], [6, 12], [10, 13], [11, 14], [7, 15], [7, 16], [7, 17], [10, 18], [13, 19], [15, 20], [17, 21], [18, 22], [20, 23], [23, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 5], [9, 2], [10, 3], [11, 6], [12, 6], [13, 10], [14, 11], [15, 7], [16, 7], [17, 7], [18, 10], [19, 13], [20, 15], [21, 17], [22, 18], [23, 20], [24, 23], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "VFSBrowser", "code": "\tpublic VFSBrowser(View view, String position)\n\t{\n\t\tthis(view,null,BROWSER,true,position);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "VFSBrowser", "code": "\tpublic VFSBrowser(View view, String path, int mode,\n\t\tboolean multipleSelection, String position)\n\t{\n\t\tsuper(new BorderLayout());\n\n\t\tlistenerList = new EventListenerList();\n\n\t\tthis.mode = mode;\n\t\tthis.multipleSelection = multipleSelection;\n\t\tthis.view = view;\n\n\t\tDockableWindowManager dwm = view.getDockableWindowManager();\n\t\tKeyListener keyListener = dwm.closeListener(NAME);\n\t\taddKeyListener(keyListener);\n\t\t\n\t\tcurrentEncoding = jEdit.getProperty(\"buffer.encoding\",\n\t\t\tSystem.getProperty(\"file.encoding\"));\n\t\tautoDetectEncoding = jEdit.getBooleanProperty(\n\t\t\t\"buffer.encodingAutodetect\");\n\n\t\tActionHandler actionHandler = new ActionHandler();\n\n\t\ttopBox = new Box(BoxLayout.Y_AXIS);\n\t\thorizontalLayout = (mode != BROWSER\n\t\t\t|| DockableWindowManager.TOP.equals(position)\n\t\t\t|| DockableWindowManager.BOTTOM.equals(position));\n\n\t\ttoolbarBox = new Box(horizontalLayout\n\t\t\t? BoxLayout.X_AXIS\n\t\t\t: BoxLayout.Y_AXIS);\n\n\t\ttopBox.add(toolbarBox);\n\n\t\tGridBagLayout layout = new GridBagLayout();\n\t\tpathAndFilterPanel = new JPanel(layout);\n\t\tif(isHorizontalLayout())\n\t\t\tpathAndFilterPanel.setBorder(new EmptyBorder(12,12,12,12));\n\n\t\tGridBagConstraints cons = new GridBagConstraints();\n\t\tcons.gridwidth = cons.gridheight = 1;\n\t\tcons.gridx = cons.gridy = 0;\n\t\tcons.fill = GridBagConstraints.BOTH;\n\t\tcons.anchor = GridBagConstraints.EAST;\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"vfs.browser.path\"),\n\t\t\tSwingConstants.RIGHT);\n\t\tlabel.setBorder(new EmptyBorder(0,0,0,12));\n\t\tlayout.setConstraints(label,cons);\n\t\tpathAndFilterPanel.add(label);\n\n\t\tpathField = new HistoryTextField(\"vfs.browser.path\");\n\t\tpathField.setName(\"path\");\n\t\tpathField.addKeyListener(keyListener);\n\t\tpathField.setInstantPopups(true);\n\t\tpathField.setEnterAddsToHistory(false);\n\t\tpathField.setSelectAllOnFocus(true);\n\t\t\n\t\tif (mode == BROWSER)\n\t\t{\n\t\t\tpathField.addKeyListener(new KeyAdapter()\n\t\t\t{\n\t\t\t\tpublic void keyReleased(KeyEvent e)\n\t\t\t\t{\n\t\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ESCAPE)\n\t\t\t\t\t{\n\t\t\t\t\t\tpathField.setText(VFSBrowser.this.path);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\t// because its preferred size can be quite wide, we\n\t\t// don't want it to make the browser way too big,\n\t\t// so set the preferred width to 0.\n\t\tDimension prefSize = pathField.getPreferredSize();\n\t\tprefSize.width = 0;\n\t\tpathField.setPreferredSize(prefSize);\n\t\tpathField.addActionListener(actionHandler);\n\t\tcons.gridx = 1;\n\t\tcons.weightx = 1.0;\n\t\tcons.gridwidth = GridBagConstraints.REMAINDER;\n\n\t\tlayout.setConstraints(pathField,cons);\n\t\tpathAndFilterPanel.add(pathField);\n\n\t\tfilterCheckbox = new JCheckBox(jEdit.getProperty(\"vfs.browser.filter\"));\n\t\tfilterCheckbox.setMargin(new Insets(0,0,0,0));\n//\t\tfilterCheckbox.setRequestFocusEnabled(false);\n\t\tfilterCheckbox.setBorder(new EmptyBorder(0,0,0,12));\n\t\tfilterCheckbox.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"vfs.browser.filter-enabled\"));\n\n\t\tfilterCheckbox.addActionListener(actionHandler);\n\t\tfilterCheckbox.addKeyListener(keyListener);\n\t\tfilterCheckbox.setName(\"filter-checkbox\");\n\t\tif(mode != CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\tcons.gridwidth = 1;\n\t\t\tcons.gridx = 0;\n\t\t\tcons.weightx = 0.0;\n\t\t\tcons.gridy = 1;\n\t\t\tlayout.setConstraints(filterCheckbox,cons);\n\t\t\tpathAndFilterPanel.add(filterCheckbox);\n\t\t}\n\n\t\tfilterField = new JComboBox();\n\t\tfilterEditor = new HistoryComboBoxEditor(\"vfs.browser.filter\");\n\t\tfilterEditor.setToolTipText(jEdit.getProperty(\"glob.tooltip\"));\n\t\tfilterEditor.setInstantPopups(true);\n\t\tfilterEditor.setSelectAllOnFocus(true);\n\t\tfilterEditor.addActionListener(actionHandler);\n\t\tfilterEditor.addKeyListener(keyListener);\n\t\tfilterField.setName(\"filter-field\");\n\t\tString filter;\n\t\tif(mode == BROWSER || !jEdit.getBooleanProperty(\n\t\t\t\"vfs.browser.currentBufferFilter\"))\n\t\t{\n\t\t\tfilter = jEdit.getProperty(\"vfs.browser.last-filter\");\n\t\t\tif(filter == null)\n\t\t\t\tfilter = jEdit.getProperty(\"vfs.browser.default-filter\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString ext = MiscUtilities.getFileExtension(\n\t\t\t\tview.getBuffer().getName());\n\t\t\tif(ext.length() == 0)\n\t\t\t\tfilter = jEdit.getProperty(\"vfs.browser.default-filter\");\n\t\t\telse\n\t\t\t\tfilter = '*' + ext;\n\t\t}\n\n\t\t// filterField.getEditor().setItem(new GlobVFSFileFilter(filter));\n\t\t// filterField.addItem(filterField.getEditor().getItem());\n\t\tfilterEditor.setItem(new GlobVFSFileFilter(filter));\n\t\tfilterField.addItem(filterEditor.getItem());\n\t\tfilterField.addItemListener(actionHandler);\n\t\tfilterField.setRenderer(new VFSFileFilterRenderer());\n\n\t\t// loads the registered VFSFileFilter services.\n\t\tString[] _filters = ServiceManager.getServiceNames(VFSFileFilter.SERVICE_NAME);\n\t\tfor (int i = 0; i < _filters.length; i++)\n\t\t{\n\t\t\tVFSFileFilter _filter = (VFSFileFilter)\n\t\t\t\tServiceManager.getService(VFSFileFilter.SERVICE_NAME, _filters[i]);\n\t\t\tfilterField.addItem(_filter);\n\t\t}\n\n\t\tif(mode != CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\tcons.gridwidth = GridBagConstraints.REMAINDER;\n\t\t\tcons.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tcons.gridx = 1;\n\t\t\tcons.weightx = 1.0;\n\t\t\tif (filterField.getItemCount() > 1)\n\t\t\t{\n\t\t\t\tfilterField.setEditor(filterEditor);\n\t\t\t\tfilterField.setEditable(true);\n\t\t\t\tlayout.setConstraints(filterField,cons);\n\t\t\t\tpathAndFilterPanel.add(filterField);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlayout.setConstraints(filterEditor,cons);\n\t\t\t\tpathAndFilterPanel.add(filterEditor);\n\t\t\t}\n\t\t}\n\n\t\ttopBox.add(pathAndFilterPanel);\n\t\tadd(BorderLayout.NORTH,topBox);\n\n\t\tadd(BorderLayout.CENTER,browserView = new BrowserView(this));\n\t\tif(isHorizontalLayout())\n\t\t\tbrowserView.setBorder(new EmptyBorder(0,12,0,12));\n\t\tdefaultFocusComponent = browserView.getTable();\n\t\tpropertiesChanged();\n\n\t\tupdateFilterEnabled();\n\n\t\tsetFocusTraversalPolicy(new LayoutFocusTraversalPolicy());\n\t\t// see VFSBrowser.browseDirectory()\n\t\tif(path == null)\n\t\t\tpath = jEdit.getProperty(\"vfs.browser.path.tmp\");\n\n\t\tif(path == null || path.length() == 0)\n\t\t{\n\t\t\tString userHome = System.getProperty(\"user.home\");\n\t\t\tString defaultPath = jEdit.getProperty(\"vfs.browser.defaultPath\");\n\t\t\tif(\"home\".equals(defaultPath))\n\t\t\t\tpath = userHome;\n\t\t\telse if(\"working\".equals(defaultPath))\n\t\t\t\tpath = System.getProperty(\"user.dir\");\n\t\t\telse if(\"buffer\".equals(defaultPath))\n\t\t\t{\n\t\t\t\tBuffer buffer = view.getBuffer();\n\t\t\t\tpath = buffer.getDirectory();\n\t\t\t}\n\t\t\telse if(\"last\".equals(defaultPath))\n\t\t\t{\n\t\t\t\tHistoryModel pathModel = HistoryModel.getModel(\"vfs.browser.path\");\n\t\t\t\tif(pathModel.getSize() == 0)\n\t\t\t\t\tpath = \"~\";\n\t\t\t\telse\n\t\t\t\t\tpath = pathModel.getItem(0);\n\t\t\t}\n\t\t\telse if(\"favorites\".equals(defaultPath))\n\t\t\t\tpath = \"favorites:\";\n\t\t\telse\n\t\t\t{\n\t\t\t\t// unknown value??!!!\n\t\t\t\tpath = userHome;\n\t\t\t}\n\t\t}\n\n\t\tfinal String _path = path;\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tsetDirectory(_path);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "IF", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [2, 26], [3, 27], [0, 28], [0, 29], [0, 30], [0, 31], [4, 32], [0, 33], [0, 34], [0, 35], [5, 36], [6, 37], [0, 38], [0, 39], [0, 40], [0, 41], [8, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [10, 51], [0, 52], [0, 53], [0, 54], [0, 55], [0, 56], [0, 57], [0, 58], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 64], [0, 65], [0, 66], [12, 67], [0, 68], [0, 69], [0, 70], [0, 71], [0, 72], [0, 73], [0, 74], [0, 75], [0, 76], [0, 77], [0, 78], [0, 79], [0, 80], [15, 81], [0, 82], [0, 83], [0, 84], [0, 85], [0, 86], [0, 87], [0, 88], [0, 89], [0, 90], [0, 91], [0, 92], [0, 93], [0, 94], [25, 95], [2, 96], [2, 97], [2, 98], [26, 99], [26, 100], [3, 101], [27, 102], [28, 103], [31, 104], [4, 105], [33, 106], [5, 107], [6, 108], [7, 109], [38, 110], [40, 111], [41, 112], [8, 113], [8, 114], [8, 115], [42, 116], [42, 117], [43, 118], [46, 119], [47, 120], [48, 121], [49, 122], [50, 123], [52, 124], [55, 125], [56, 126], [57, 127], [58, 128], [62, 129], [63, 130], [66, 131], [11, 132], [68, 133], [69, 134], [70, 135], [72, 136], [73, 137], [76, 138], [13, 139], [79, 140], [80, 141], [14, 142], [15, 143], [82, 144], [16, 145], [84, 146], [85, 147], [86, 148], [17, 149], [87, 150], [88, 151], [18, 152], [19, 153], [93, 154], [95, 155], [96, 156], [96, 157], [99, 158], [99, 159], [100, 160], [101, 161], [105, 162], [106, 163], [107, 164], [5, 165], [5, 166], [5, 167], [5, 168], [6, 169], [6, 170], [113, 171], [115, 172], [8, 173], [116, 174], [121, 175], [122, 176], [10, 177], [10, 178], [10, 179], [10, 180], [10, 181], [10, 182], [125, 183], [126, 184], [126, 185], [126, 186], [126, 187], [127, 188], [127, 189], [127, 190], [127, 191], [128, 192], [12, 193], [137, 194], [138, 195], [138, 196], [138, 197], [138, 198], [139, 199], [140, 200], [141, 201], [143, 202], [146, 203], [147, 204], [147, 205], [150, 206], [151, 207], [151, 208], [156, 209], [156, 210], [96, 211], [157, 212], [97, 213], [98, 214], [161, 215], [162, 216], [162, 217], [162, 218], [162, 219], [164, 220], [164, 221], [165, 222], [166, 223], [113, 224], [113, 225], [171, 226], [171, 227], [114, 228], [115, 229], [172, 230], [173, 231], [179, 232], [180, 233], [181, 234], [182, 235], [192, 236], [193, 237], [199, 238], [202, 239], [202, 240], [202, 241], [202, 242], [205, 243], [205, 244], [207, 245], [155, 246], [209, 247], [209, 248], [156, 249], [210, 250], [213, 251], [214, 252], [107, 253], [107, 254], [107, 255], [107, 256], [107, 257], [107, 258], [108, 259], [224, 260], [225, 261], [228, 262], [229, 263], [231, 264], [237, 265], [247, 266], [247, 267], [209, 268], [248, 269], [249, 270], [257, 271], [260, 272], [261, 273], [262, 274], [263, 275], [265, 276], [265, 277], [266, 278], [247, 279], [247, 280], [267, 281], [209, 282], [270, 283], [276, 284], [266, 285], [278, 286], [279, 287], [282, 288], [268, 289], [284, 290], [266, 291], [285, 292], [279, 293], [279, 294], [287, 295], [287, 296], [280, 297], [276, 298], [293, 299], [294, 300], [297, 301], [299, 302], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 2], [27, 3], [28, 0], [29, 0], [30, 0], [31, 0], [32, 4], [33, 0], [34, 0], [35, 0], [36, 5], [37, 6], [38, 0], [39, 0], [40, 0], [41, 0], [42, 8], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 10], [52, 0], [53, 0], [54, 0], [55, 0], [56, 0], [57, 0], [58, 0], [59, 0], [60, 0], [61, 0], [62, 0], [63, 0], [64, 0], [65, 0], [66, 0], [67, 12], [68, 0], [69, 0], [70, 0], [71, 0], [72, 0], [73, 0], [74, 0], [75, 0], [76, 0], [77, 0], [78, 0], [79, 0], [80, 0], [81, 15], [82, 0], [83, 0], [84, 0], [85, 0], [86, 0], [87, 0], [88, 0], [89, 0], [90, 0], [91, 0], [92, 0], [93, 0], [94, 0], [95, 25], [96, 2], [97, 2], [98, 2], [99, 26], [100, 26], [101, 3], [102, 27], [103, 28], [104, 31], [105, 4], [106, 33], [107, 5], [108, 6], [109, 7], [110, 38], [111, 40], [112, 41], [113, 8], [114, 8], [115, 8], [116, 42], [117, 42], [118, 43], [119, 46], [120, 47], [121, 48], [122, 49], [123, 50], [124, 52], [125, 55], [126, 56], [127, 57], [128, 58], [129, 62], [130, 63], [131, 66], [132, 11], [133, 68], [134, 69], [135, 70], [136, 72], [137, 73], [138, 76], [139, 13], [140, 79], [141, 80], [142, 14], [143, 15], [144, 82], [145, 16], [146, 84], [147, 85], [148, 86], [149, 17], [150, 87], [151, 88], [152, 18], [153, 19], [154, 93], [155, 95], [156, 96], [157, 96], [158, 99], [159, 99], [160, 100], [161, 101], [162, 105], [163, 106], [164, 107], [165, 5], [166, 5], [167, 5], [168, 5], [169, 6], [170, 6], [171, 113], [172, 115], [173, 8], [174, 116], [175, 121], [176, 122], [177, 10], [178, 10], [179, 10], [180, 10], [181, 10], [182, 10], [183, 125], [184, 126], [185, 126], [186, 126], [187, 126], [188, 127], [189, 127], [190, 127], [191, 127], [192, 128], [193, 12], [194, 137], [195, 138], [196, 138], [197, 138], [198, 138], [199, 139], [200, 140], [201, 141], [202, 143], [203, 146], [204, 147], [205, 147], [206, 150], [207, 151], [208, 151], [209, 156], [210, 156], [211, 96], [212, 157], [213, 97], [214, 98], [215, 161], [216, 162], [217, 162], [218, 162], [219, 162], [220, 164], [221, 164], [222, 165], [223, 166], [224, 113], [225, 113], [226, 171], [227, 171], [228, 114], [229, 115], [230, 172], [231, 173], [232, 179], [233, 180], [234, 181], [235, 182], [236, 192], [237, 193], [238, 199], [239, 202], [240, 202], [241, 202], [242, 202], [243, 205], [244, 205], [245, 207], [246, 155], [247, 209], [248, 209], [249, 156], [250, 210], [251, 213], [252, 214], [253, 107], [254, 107], [255, 107], [256, 107], [257, 107], [258, 107], [259, 108], [260, 224], [261, 225], [262, 228], [263, 229], [264, 231], [265, 237], [266, 247], [267, 247], [268, 209], [269, 248], [270, 249], [271, 257], [272, 260], [273, 261], [274, 262], [275, 263], [276, 265], [277, 265], [278, 266], [279, 247], [280, 247], [281, 267], [282, 209], [283, 270], [284, 276], [285, 266], [286, 278], [287, 279], [288, 282], [289, 268], [290, 284], [291, 266], [292, 285], [293, 279], [294, 279], [295, 287], [296, 287], [297, 280], [298, 276], [299, 293], [300, 294], [301, 297], [302, 299], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302]]}], "label": 0}
{"sample_id": "ant-1.6-511", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/PathTokenizer.java", "language": "java", "name": "org.apache.tools.ant.PathTokenizer", "code": "public class PathTokenizer {\n    /**\n     * A tokenizer to break the string up based on the ':' or ';' separators.\n     */\n    private StringTokenizer tokenizer;\n\n    /**\n     * A String which stores any path components which have been read ahead\n     * due to DOS filesystem compensation.\n     */\n    private String lookahead = null;\n\n    /**\n     * A boolean that determines if we are running on Novell NetWare, which\n     * exhibits slightly different path name characteristics (multi-character\n     * volume / drive names)\n     */\n    private boolean onNetWare = Os.isFamily(\"netware\");\n\n    /**\n     * Flag to indicate whether or not we are running on a platform with a\n     * DOS style filesystem\n     */\n    private boolean dosStyleFilesystem;\n\n    /**\n     * Constructs a path tokenizer for the specified path.\n     *\n     * @param path The path to tokenize. Must not be <code>null</code>.\n     */\n    public PathTokenizer(String path) {\n        if (onNetWare) {\n            tokenizer = new StringTokenizer(path, \":;\", true);\n        } else {\n            tokenizer = new StringTokenizer(path, \":;\", false);\n        }\n        dosStyleFilesystem = File.pathSeparatorChar == ';';\n    }\n\n    /**\n     * Tests if there are more path elements available from this tokenizer's\n     * path. If this method returns <code>true</code>, then a subsequent call\n     * to nextToken will successfully return a token.\n     *\n     * @return <code>true</code> if and only if there is at least one token\n     * in the string after the current position; <code>false</code> otherwise.\n     */\n    public boolean hasMoreTokens() {\n        if (lookahead != null) {\n            return true;\n        }\n\n        return tokenizer.hasMoreTokens();\n    }\n\n    /**\n     * Returns the next path element from this tokenizer.\n     *\n     * @return the next path element from this tokenizer.\n     *\n     * @exception NoSuchElementException if there are no more elements in this\n     *            tokenizer's path.\n     */\n    public String nextToken() throws NoSuchElementException {\n        String token = null;\n        if (lookahead != null) {\n            token = lookahead;\n            lookahead = null;\n        } else {\n            token = tokenizer.nextToken().trim();\n        }\n\n        if (!onNetWare) {\n            if (token.length() == 1 && Character.isLetter(token.charAt(0))\n                                    && dosStyleFilesystem\n                                    && tokenizer.hasMoreTokens()) {\n                String nextToken = tokenizer.nextToken().trim();\n                if (nextToken.startsWith(\"\\\\\") || nextToken.startsWith(\"/\")) {\n                    token += \":\" + nextToken;\n                } else {\n                    lookahead = nextToken;\n                }\n            }\n        } else {\n            if (token.equals(File.pathSeparator) || token.equals(\":\")) {\n                token = tokenizer.nextToken().trim();\n            }\n\n            if (tokenizer.hasMoreTokens()) {\n                String nextToken = tokenizer.nextToken().trim();\n\n                if (!nextToken.equals(File.pathSeparator)) {\n                    if (nextToken.equals(\":\")) {\n                        if (!token.startsWith(\"/\") && !token.startsWith(\"\\\\\")\n                            && !token.startsWith(\".\")\n                            && !token.startsWith(\"..\")) {\n                            String oneMore = tokenizer.nextToken().trim();\n                            if (!oneMore.equals(File.pathSeparator)) {\n                                token += \":\" + oneMore;\n                            } else {\n                                token += \":\";\n                                lookahead = oneMore;\n                            }\n                        }\n                    } else {\n                        lookahead = nextToken;\n                    }\n                }\n            }\n        }\n        return token;", "functions": [{"function_name": "hasMoreTokens", "code": "    public boolean hasMoreTokens() {\n        if (lookahead != null) {\n            return true;\n        }\n\n        return tokenizer.hasMoreTokens();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "nextToken", "code": "    public String nextToken() throws NoSuchElementException {\n        String token = null;\n        if (lookahead != null) {\n            token = lookahead;\n            lookahead = null;\n        } else {\n            token = tokenizer.nextToken().trim();\n        }\n\n        if (!onNetWare) {\n            if (token.length() == 1 && Character.isLetter(token.charAt(0))\n                                    && dosStyleFilesystem\n                                    && tokenizer.hasMoreTokens()) {\n                String nextToken = tokenizer.nextToken().trim();\n                if (nextToken.startsWith(\"\\\\\") || nextToken.startsWith(\"/\")) {\n                    token += \":\" + nextToken;\n                } else {\n                    lookahead = nextToken;\n                }\n            }\n        } else {\n            if (token.equals(File.pathSeparator) || token.equals(\":\")) {\n                token = tokenizer.nextToken().trim();\n            }\n\n            if (tokenizer.hasMoreTokens()) {\n                String nextToken = tokenizer.nextToken().trim();\n\n                if (!nextToken.equals(File.pathSeparator)) {\n                    if (nextToken.equals(\":\")) {\n                        if (!token.startsWith(\"/\") && !token.startsWith(\"\\\\\")\n                            && !token.startsWith(\".\")\n                            && !token.startsWith(\"..\")) {\n                            String oneMore = tokenizer.nextToken().trim();\n                            if (!oneMore.equals(File.pathSeparator)) {\n                                token += \":\" + oneMore;\n                            } else {\n                                token += \":\";\n                                lookahead = oneMore;\n                            }\n                        }\n                    } else {\n                        lookahead = nextToken;\n                    }\n                }\n            }\n        }\n        return token;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "BINARY_OP", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [2, 7], [2, 8], [5, 9], [4, 10], [6, 11], [7, 12], [8, 13], [3, 14], [3, 15], [3, 16], [6, 17], [6, 18], [12, 19], [12, 20], [8, 21], [8, 22], [13, 23], [13, 24], [14, 25], [15, 26], [17, 27], [7, 28], [19, 29], [21, 30], [24, 31], [25, 32], [17, 33], [18, 34], [28, 35], [30, 36], [30, 37], [22, 38], [31, 39], [31, 40], [33, 41], [34, 42], [35, 43], [21, 44], [21, 45], [36, 46], [37, 47], [38, 48], [39, 49], [40, 50], [40, 51], [33, 52], [41, 53], [45, 54], [49, 55], [33, 56], [52, 57], [54, 58], [52, 59], [52, 60], [57, 61], [57, 62], [59, 63], [61, 64], [62, 65], [62, 66], [60, 67], [65, 68], [66, 69], [66, 70], [59, 71], [59, 72], [59, 73], [67, 74], [69, 75], [70, 76], [72, 77], [73, 78], [78, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 2], [8, 2], [9, 5], [10, 4], [11, 6], [12, 7], [13, 8], [14, 3], [15, 3], [16, 3], [17, 6], [18, 6], [19, 12], [20, 12], [21, 8], [22, 8], [23, 13], [24, 13], [25, 14], [26, 15], [27, 17], [28, 7], [29, 19], [30, 21], [31, 24], [32, 25], [33, 17], [34, 18], [35, 28], [36, 30], [37, 30], [38, 22], [39, 31], [40, 31], [41, 33], [42, 34], [43, 35], [44, 21], [45, 21], [46, 36], [47, 37], [48, 38], [49, 39], [50, 40], [51, 40], [52, 33], [53, 41], [54, 45], [55, 49], [56, 33], [57, 52], [58, 54], [59, 52], [60, 52], [61, 57], [62, 57], [63, 59], [64, 61], [65, 62], [66, 62], [67, 60], [68, 65], [69, 66], [70, 66], [71, 59], [72, 59], [73, 59], [74, 67], [75, 69], [76, 70], [77, 72], [78, 73], [79, 78], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "PathTokenizer", "code": "    public PathTokenizer(String path) {\n        if (onNetWare) {\n            tokenizer = new StringTokenizer(path, \":;\", true);\n        } else {\n            tokenizer = new StringTokenizer(path, \":;\", false);\n        }\n        dosStyleFilesystem = File.pathSeparatorChar == ';';", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 6], [1, 7], [6, 8], [7, 9], [8, 10], [8, 11], [9, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 1], [7, 1], [8, 6], [9, 7], [10, 8], [11, 8], [12, 9], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 0}
{"sample_id": "xalan-2.7-8440", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/Predicate.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Predicate", "code": "final class Predicate extends Expression implements Closure {\n\n    /**\n     * The predicate's expression.\n     */\n    private Expression _exp = null; \n    \n    /**\n     * This flag indicates if optimizations are turned on. The \n     * method <code>dontOptimize()</code> can be called to turn\n     * optimizations off.\n     */\n    private boolean _canOptimize = true;\n    \n    /**\n     * Flag indicatig if the nth position optimization is on. It\n     * is set in <code>typeCheck()</code>.\n     */\n    private boolean _nthPositionFilter = false;\n        \n    /**\n     * Flag indicatig if the nth position descendant is on. It\n     * is set in <code>typeCheck()</code>.\n     */\n    private boolean _nthDescendant = false;\n\n    /**\n     * Cached node type of the expression that owns this predicate.\n     */\n    int _ptype = -1;\n\n    /**\n     * Name of the inner class.\n     */\n    private String _className = null;\n    \n    /**\n     * List of variables in closure.\n     */\n    private ArrayList _closureVars = null;\n    \n    /**\n     * Reference to parent closure.\n     */\n    private Closure _parentClosure = null;\n\n    /**\n     * Cached value of method <code>getCompareValue()</code>.\n     */\n    private Expression _value = null;\n    \n    /**\n     * Cached value of method <code>getCompareValue()</code>.\n     */\n    private Step _step = null;\n\n    /**\n     * Initializes a predicate. \n     */\n    public Predicate(Expression exp) {\n        _exp = exp;\n        _exp.setParent(this);\n\n    }\n\n    /** \n     * Set the parser for this expression.\n     */\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_exp.setParser(parser);\n    }\n\n    /**\n     * Returns a boolean value indicating if the nth position optimization\n     * is on. Must be call after type checking!\n     */\n    public boolean isNthPositionFilter() {\n\treturn _nthPositionFilter;\n    }\n\n    /**\n     * Returns a boolean value indicating if the nth descendant optimization\n     * is on. Must be call after type checking!\n     */\n    public boolean isNthDescendant() {\n\treturn _nthDescendant;\n    }\n\n    /**\n     * Turns off all optimizations for this predicate.\n     */\n    public void dontOptimize() {\n\t_canOptimize = false;\n    }\n    \n    /**\n     * Returns true if the expression in this predicate contains a call \n     * to position().\n     */\n    public boolean hasPositionCall() {\n\treturn _exp.hasPositionCall();\n    }\n\n    /**\n     * Returns true if the expression in this predicate contains a call \n     * to last().\n     */\n    public boolean hasLastCall() {\n\treturn _exp.hasLastCall();\n    }\n\n\n    /**\n     * Returns true if this closure is compiled in an inner class (i.e.\n     * if this is a real closure).\n     */\n    public boolean inInnerClass() {\n\treturn (_className != null);\n    }\n\n    /**\n     * Returns a reference to its parent closure or null if outermost.\n     */\n    public Closure getParentClosure() {\n\tif (_parentClosure == null) {\n\t    SyntaxTreeNode node = getParent();\n\t    do {\n\t\tif (node instanceof Closure) {\n\t\t    _parentClosure = (Closure) node;\n\t\t    break;\n\t\t}\n\t\tif (node instanceof TopLevelElement) {\n\t\t}\n\t\tnode = node.getParent();\n\t    } while (node != null);\n\t}\n\treturn _parentClosure;\n    }\n\n    /**\n     * Returns the name of the auxiliary class or null if this predicate \n     * is compiled inside the Translet.\n     */\n    public String getInnerClassName() {\n\treturn _className;\n    }\n\n    /**\n     * Add new variable to the closure.\n     */\n    public void addVariable(VariableRefBase variableRef) {\n\tif (_closureVars == null) {\n\t    _closureVars = new ArrayList();\n\t}\n\n\tif (!_closureVars.contains(variableRef)) {\n\t    _closureVars.add(variableRef);\n\n\t    Closure parentClosure = getParentClosure();\n\t    if (parentClosure != null) {\n\t\tparentClosure.addVariable(variableRef);\n\t    }\n\t}\n    }\n\n\n    /**\n     * Returns the node type of the expression owning this predicate. The\n     * return value is cached in <code>_ptype</code>.\n     */\n    public int getPosType() {\n\tif (_ptype == -1) {\n\t    SyntaxTreeNode parent = getParent();\n\t    if (parent instanceof StepPattern) {\n\t\t_ptype = ((StepPattern)parent).getNodeType();\n\t    }\n\t    else if (parent instanceof AbsoluteLocationPath) {\n\t\tAbsoluteLocationPath path = (AbsoluteLocationPath)parent;\n\t\tExpression exp = path.getPath();\n\t\tif (exp instanceof Step) {\n\t\t    _ptype = ((Step)exp).getNodeType();\n\t\t}\n\t    }\n\t    else if (parent instanceof VariableRefBase) {\n\t\tfinal VariableRefBase ref = (VariableRefBase)parent;\n\t\tfinal VariableBase var = ref.getVariable();\n\t\tfinal Expression exp = var.getExpression();\n\t\tif (exp instanceof Step) {\n\t\t    _ptype = ((Step)exp).getNodeType();\n\t\t}\n\t    }\n\t    else if (parent instanceof Step) {\n\t\t_ptype = ((Step)parent).getNodeType();\n\t    }\n\t}\n\treturn _ptype;\n    }\n\n    public boolean parentIsPattern() {\n\treturn (getParent() instanceof Pattern);\n    }\n\n    public Expression getExpr() {\n\treturn _exp;\n    }\n\n    public String toString() {\n        return \"pred(\" + _exp + ')';\n    }\n\t\n    /**\n     * Type check a predicate expression. If the type of the expression is \n     * number convert it to boolean by adding a comparison with position().\n     * Note that if the expression is a parameter, we cannot distinguish\n     * at compile time if its type is number or not. Hence, expressions of \n     * reference type are always converted to booleans.\n     *\n     * This method may be called twice, before and after calling\n     * <code>dontOptimize()</code>. If so, the second time it should honor\n     * the new value of <code>_canOptimize</code>.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {        \n\tType texp = _exp.typeCheck(stable);\n\n\tif (texp instanceof ReferenceType) {\n\t    _exp = new CastExpr(_exp, texp = Type.Real);\n\t}\n\n\tif (texp instanceof ResultTreeType) {\n\t    _exp = new CastExpr(_exp, Type.Boolean);\n\t    _exp = new CastExpr(_exp, Type.Real);\n\t    texp = _exp.typeCheck(stable);\n\t}\n\n\tif (texp instanceof NumberType) {\n\t    if (texp instanceof IntType == false) {\n\t\t_exp = new CastExpr(_exp, Type.Int);\n\t    }\n                    \n            if (_canOptimize) {\n                _nthPositionFilter = \n                    !_exp.hasLastCall() && !_exp.hasPositionCall();\n                \n                if (_nthPositionFilter) {\n                    SyntaxTreeNode parent = getParent();\n                    _nthDescendant = (parent instanceof Step) &&\n                        (parent.getParent() instanceof AbsoluteLocationPath);\n                    return _type = Type.NodeSet;\n                }\n            }          \n\n            _nthPositionFilter = _nthDescendant = false;\n            \n           final QName position = \n                getParser().getQNameIgnoreDefaultNs(\"position\");\n           final PositionCall positionCall =\n                new PositionCall(position);\n           positionCall.setParser(getParser());\n           positionCall.setParent(this);\n\n           _exp = new EqualityExpr(Operators.EQ, positionCall,\n                                    _exp);\n           if (_exp.typeCheck(stable) != Type.Boolean) {\n               _exp = new CastExpr(_exp, Type.Boolean);\n           }\n           return _type = Type.Boolean;\n\t}\n\telse {\n\t    if (texp instanceof BooleanType == false) {\n\t\t_exp = new CastExpr(_exp, Type.Boolean);\n            }\n            return _type = Type.Boolean;\n\t}\n    }\n\t\n    /**\n     * Create a new \"Filter\" class implementing\n     * <code>CurrentNodeListFilter</code>. Allocate registers for local \n     * variables and local parameters passed in the closure to test().\n     * Notice that local variables need to be \"unboxed\".\n     */\n    private void compileFilter(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tTestGenerator testGen;\n\tLocalVariableGen local;\n\tFilterGenerator filterGen;\n\n\t_className = getXSLTC().getHelperClassName();\n\tfilterGen = new FilterGenerator(_className,\n\t\t\t\t\t\"java.lang.Object\",\n\t\t\t\t\ttoString(), \n\t\t\t\t\tACC_PUBLIC | ACC_SUPER,\n\t\t\t\t\tnew String[] {\n\t\t\t\t\t    CURRENT_NODE_LIST_FILTER\n\t\t\t\t\t},\n\t\t\t\t\tclassGen.getStylesheet());\t\n\n\tfinal ConstantPoolGen cpg = filterGen.getConstantPool();\n\tfinal int length = (_closureVars == null) ? 0 : _closureVars.size();\n\n\tfor (int i = 0; i < length; i++) {\n\t    VariableBase var = ((VariableRefBase) _closureVars.get(i)).getVariable();\n\n\t    filterGen.addField(new Field(ACC_PUBLIC, \n\t\t\t\t\tcpg.addUtf8(var.getEscapedName()),\n\t\t\t\t\tcpg.addUtf8(var.getType().toSignature()),\n\t\t\t\t\tnull, cpg.getConstantPool()));\n\t}\n\n\tfinal InstructionList il = new InstructionList();\n\ttestGen = new TestGenerator(ACC_PUBLIC | ACC_FINAL,\n\t\t\t\t    org.apache.bcel.generic.Type.BOOLEAN, \n\t\t\t\t    new org.apache.bcel.generic.Type[] {\n\t\t\t\t\torg.apache.bcel.generic.Type.INT,\n\t\t\t\t\torg.apache.bcel.generic.Type.INT,\n\t\t\t\t\torg.apache.bcel.generic.Type.INT,\n\t\t\t\t\torg.apache.bcel.generic.Type.INT,\n\t\t\t\t\tUtil.getJCRefType(TRANSLET_SIG),\n\t\t\t\t\tUtil.getJCRefType(NODE_ITERATOR_SIG)\n\t\t\t\t    },\n\t\t\t\t    new String[] {\n\t\t\t\t\t\"node\",\n\t\t\t\t\t\"position\",\n\t\t\t\t\t\"last\",\n\t\t\t\t\t\"current\",\n\t\t\t\t\t\"translet\",\n\t\t\t\t\t\"iterator\"\n\t\t\t\t    },\n\t\t\t\t    \"test\", _className, il, cpg);\n\t\t\n\tlocal = testGen.addLocalVariable(\"document\",\n\t\t\t\t\t Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t\t\t null, null);\n\tfinal String className = classGen.getClassName();\n\til.append(filterGen.loadTranslet());\n\til.append(new CHECKCAST(cpg.addClass(className)));\n\til.append(new GETFIELD(cpg.addFieldref(className,\n\t\t\t\t\t       DOM_FIELD, DOM_INTF_SIG)));\n\til.append(new ASTORE(local.getIndex()));\n\n\ttestGen.setDomIndex(local.getIndex());\n\n\t_exp.translate(filterGen, testGen);\n\til.append(IRETURN);\n\t\n\ttestGen.stripAttributes(true);\n\ttestGen.setMaxLocals();\n\ttestGen.setMaxStack();\n\ttestGen.removeNOPs();\n\tfilterGen.addEmptyConstructor(ACC_PUBLIC);\n\tfilterGen.addMethod(testGen.getMethod());\n\t\t\n\tgetXSLTC().dumpClass(filterGen.getJavaClass());\n    }\n\n    /**\n     * Returns true if the predicate is a test for the existance of an\n     * element or attribute. All we have to do is to get the first node\n     * from the step, check if it is there, and then return true/false.\n     */\n    public boolean isBooleanTest() {\n\treturn (_exp instanceof BooleanExpr);\n    }\n\n    /**\n     * Method to see if we can optimise the predicate by using a specialised\n     * iterator for expressions like '/foo/bar[@attr = $var]', which are\n     * very common in many stylesheets\n     */\n    public boolean isNodeValueTest() {\n\tif (!_canOptimize) return false;\n\treturn (getStep() != null && getCompareValue() != null);\n    }\n\n   /**\n     * Returns the step in an expression of the form 'step = value'. \n     * Null is returned if the expression is not of the right form.\n     * Optimization if off if null is returned.\n     */\n    public Step getStep() {\n\tif (_step != null) {\n            return _step;\n        }\n        \n\tif (_exp == null) {\n            return null;\n        }\n\n\tif (_exp instanceof EqualityExpr) {\n\t    EqualityExpr exp = (EqualityExpr)_exp;\n\t    Expression left = exp.getLeft();\n\t    Expression right = exp.getRight();\n\n\t    if (left instanceof CastExpr) {\n                left = ((CastExpr) left).getExpr();\n            }\n\t    if (left instanceof Step) {\n                _step = (Step) left;\n            }\n\t    \n\t    if (right instanceof CastExpr) {\n                right = ((CastExpr)right).getExpr();\n            }\n\t    if (right instanceof Step) {\n                _step = (Step)right;\n            }\n\t}\n\treturn _step;\n    }\n\n    /**\n     * Returns the value in an expression of the form 'step = value'. \n     * A value may be either a literal string or a variable whose \n     * type is string. Optimization if off if null is returned.\n     */\n    public Expression getCompareValue() {\n\tif (_value != null) {\n            return _value;\n        }\n        \n\tif (_exp == null) {\n            return null;\n        }\n\n\tif (_exp instanceof EqualityExpr) {\n\t    EqualityExpr exp = (EqualityExpr) _exp;\n\t    Expression left = exp.getLeft();\n\t    Expression right = exp.getRight();\n            \n            if (left instanceof LiteralExpr) {\n                _value = left;\n                return _value;\n            }\n            if (left instanceof VariableRefBase &&\n                left.getType() == Type.String) \n            {\n                _value = left;\n                return _value;\n            }\n            \n            if (right instanceof LiteralExpr) {\n                _value = right;\n                return _value;\n            }\n            if (right instanceof VariableRefBase &&\n                right.getType() == Type.String) \n            {\n                _value = right;\n                return _value;\n            }\n\t}\n\treturn null;\n    }\n \n    /**\n     * Translate a predicate expression. This translation pushes\n     * two references on the stack: a reference to a newly created\n     * filter object and a reference to the predicate's closure.\n     */\n    public void translateFilter(ClassGenerator classGen,\n\t\t\t\tMethodGenerator methodGen) \n    {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tcompileFilter(classGen, methodGen);\n\t\n\til.append(new NEW(cpg.addClass(_className)));\n\til.append(DUP);\n\til.append(new INVOKESPECIAL(cpg.addMethodref(_className,\n\t\t\t\t\t\t     \"<init>\", \"()V\")));\n\n\tfinal int length = (_closureVars == null) ? 0 : _closureVars.size();\n\n\tfor (int i = 0; i < length; i++) {\n\t    VariableRefBase varRef = (VariableRefBase) _closureVars.get(i);\n\t    VariableBase var = varRef.getVariable();\n\t    Type varType = var.getType();\n\n\t    il.append(DUP);\n\n\t    Closure variableClosure = _parentClosure;\n\t    while (variableClosure != null) {\n\t\tif (variableClosure.inInnerClass()) break;\n\t\tvariableClosure = variableClosure.getParentClosure();\n\t    }\n\n\t    if (variableClosure != null) {\n\t\til.append(ALOAD_0);\n\t\til.append(new GETFIELD(\n\t\t    cpg.addFieldref(variableClosure.getInnerClassName(), \n\t\t\tvar.getEscapedName(), varType.toSignature())));\n\t    }\n\t    else {\n\t\til.append(var.loadInstruction());\n\t    }\n\n\t    il.append(new PUTFIELD(\n\t\t    cpg.addFieldref(_className, var.getEscapedName(), \n\t\t\tvarType.toSignature())));\n\t}\n    }\n    \n    /**\n     * Translate a predicate expression. If non of the optimizations apply\n     * then this translation pushes two references on the stack: a reference \n     * to a newly created filter object and a reference to the predicate's \n     * closure. See class <code>Step</code> for further details.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_nthPositionFilter || _nthDescendant) {\n\t    _exp.translate(classGen, methodGen);\n\t}\n\telse if (isNodeValueTest() && (getParent() instanceof Step)) {\n\t    _value.translate(classGen, methodGen);\n\t    il.append(new CHECKCAST(cpg.addClass(STRING_CLASS)));\n\t    il.append(new PUSH(cpg, ((EqualityExpr)_exp).getOp()));\n\t}\n\telse {\n\t    translateFilter(classGen, methodGen);", "functions": [{"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_exp.setParser(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNthPositionFilter", "code": "    public boolean isNthPositionFilter() {\n\treturn _nthPositionFilter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isNthDescendant", "code": "    public boolean isNthDescendant() {\n\treturn _nthDescendant;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dontOptimize", "code": "    public void dontOptimize() {\n\t_canOptimize = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasPositionCall", "code": "    public boolean hasPositionCall() {\n\treturn _exp.hasPositionCall();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasLastCall", "code": "    public boolean hasLastCall() {\n\treturn _exp.hasLastCall();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "inInnerClass", "code": "    public boolean inInnerClass() {\n\treturn (_className != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getParentClosure", "code": "    public Closure getParentClosure() {\n\tif (_parentClosure == null) {\n\t    SyntaxTreeNode node = getParent();\n\t    do {\n\t\tif (node instanceof Closure) {\n\t\t    _parentClosure = (Closure) node;\n\t\t    break;\n\t\t}\n\t\tif (node instanceof TopLevelElement) {\n\t\t}\n\t\tnode = node.getParent();\n\t    } while (node != null);\n\t}\n\treturn _parentClosure;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [4, 7], [4, 8], [4, 9], [7, 10], [5, 11], [4, 12], [8, 13], [9, 14], [12, 15], [9, 16], [9, 17], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 4], [8, 4], [9, 4], [10, 7], [11, 5], [12, 4], [13, 8], [14, 9], [15, 12], [16, 9], [17, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getInnerClassName", "code": "    public String getInnerClassName() {\n\treturn _className;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addVariable", "code": "    public void addVariable(VariableRefBase variableRef) {\n\tif (_closureVars == null) {\n\t    _closureVars = new ArrayList();\n\t}\n\n\tif (!_closureVars.contains(variableRef)) {\n\t    _closureVars.add(variableRef);\n\n\t    Closure parentClosure = getParentClosure();\n\t    if (parentClosure != null) {\n\t\tparentClosure.addVariable(variableRef);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [5, 8], [6, 9], [1, 10], [2, 11], [9, 12], [7, 13], [11, 14], [6, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 5], [9, 6], [10, 1], [11, 2], [12, 9], [13, 7], [14, 11], [15, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getPosType", "code": "    public int getPosType() {\n\tif (_ptype == -1) {\n\t    SyntaxTreeNode parent = getParent();\n\t    if (parent instanceof StepPattern) {\n\t\t_ptype = ((StepPattern)parent).getNodeType();\n\t    }\n\t    else if (parent instanceof AbsoluteLocationPath) {\n\t\tAbsoluteLocationPath path = (AbsoluteLocationPath)parent;\n\t\tExpression exp = path.getPath();\n\t\tif (exp instanceof Step) {\n\t\t    _ptype = ((Step)exp).getNodeType();\n\t\t}\n\t    }\n\t    else if (parent instanceof VariableRefBase) {\n\t\tfinal VariableRefBase ref = (VariableRefBase)parent;\n\t\tfinal VariableBase var = ref.getVariable();\n\t\tfinal Expression exp = var.getExpression();\n\t\tif (exp instanceof Step) {\n\t\t    _ptype = ((Step)exp).getNodeType();\n\t\t}\n\t    }\n\t    else if (parent instanceof Step) {\n\t\t_ptype = ((Step)parent).getNodeType();\n\t    }\n\t}\n\treturn _ptype;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [4, 7], [4, 8], [7, 9], [7, 10], [5, 11], [9, 12], [9, 13], [7, 14], [7, 15], [7, 16], [4, 17], [12, 18], [9, 19], [9, 20], [9, 21], [9, 22], [14, 23], [19, 24], [15, 25], [12, 26], [20, 27], [21, 28], [14, 29], [19, 30], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 4], [8, 4], [9, 7], [10, 7], [11, 5], [12, 9], [13, 9], [14, 7], [15, 7], [16, 7], [17, 4], [18, 12], [19, 9], [20, 9], [21, 9], [22, 9], [23, 14], [24, 19], [25, 15], [26, 12], [27, 20], [28, 21], [29, 14], [30, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "parentIsPattern", "code": "    public boolean parentIsPattern() {\n\treturn (getParent() instanceof Pattern);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getExpr", "code": "    public Expression getExpr() {\n\treturn _exp;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"pred(\" + _exp + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {        \n\tType texp = _exp.typeCheck(stable);\n\n\tif (texp instanceof ReferenceType) {\n\t    _exp = new CastExpr(_exp, texp = Type.Real);\n\t}\n\n\tif (texp instanceof ResultTreeType) {\n\t    _exp = new CastExpr(_exp, Type.Boolean);\n\t    _exp = new CastExpr(_exp, Type.Real);\n\t    texp = _exp.typeCheck(stable);\n\t}\n\n\tif (texp instanceof NumberType) {\n\t    if (texp instanceof IntType == false) {\n\t\t_exp = new CastExpr(_exp, Type.Int);\n\t    }\n                    \n            if (_canOptimize) {\n                _nthPositionFilter = \n                    !_exp.hasLastCall() && !_exp.hasPositionCall();\n                \n                if (_nthPositionFilter) {\n                    SyntaxTreeNode parent = getParent();\n                    _nthDescendant = (parent instanceof Step) &&\n                        (parent.getParent() instanceof AbsoluteLocationPath);\n                    return _type = Type.NodeSet;\n                }\n            }          \n\n            _nthPositionFilter = _nthDescendant = false;\n            \n           final QName position = \n                getParser().getQNameIgnoreDefaultNs(\"position\");\n           final PositionCall positionCall =\n                new PositionCall(position);\n           positionCall.setParser(getParser());\n           positionCall.setParent(this);\n\n           _exp = new EqualityExpr(Operators.EQ, positionCall,\n                                    _exp);\n           if (_exp.typeCheck(stable) != Type.Boolean) {\n               _exp = new CastExpr(_exp, Type.Boolean);\n           }\n           return _type = Type.Boolean;\n\t}\n\telse {\n\t    if (texp instanceof BooleanType == false) {\n\t\t_exp = new CastExpr(_exp, Type.Boolean);\n            }\n            return _type = Type.Boolean;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [4, 17], [9, 18], [10, 19], [11, 20], [12, 21], [1, 22], [1, 23], [1, 24], [1, 25], [16, 26], [2, 27], [2, 28], [2, 29], [3, 30], [19, 31], [19, 32], [21, 33], [22, 34], [24, 35], [13, 36], [14, 37], [25, 38], [15, 39], [26, 40], [26, 41], [27, 42], [28, 43], [29, 44], [30, 45], [10, 46], [12, 47], [37, 48], [38, 49], [15, 50], [16, 51], [45, 52], [46, 53], [47, 54], [48, 55], [39, 56], [39, 57], [50, 58], [51, 59], [56, 60], [39, 61], [58, 62], [58, 63], [61, 64], [57, 65], [64, 66], [64, 67], [66, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 4], [18, 9], [19, 10], [20, 11], [21, 12], [22, 1], [23, 1], [24, 1], [25, 1], [26, 16], [27, 2], [28, 2], [29, 2], [30, 3], [31, 19], [32, 19], [33, 21], [34, 22], [35, 24], [36, 13], [37, 14], [38, 25], [39, 15], [40, 26], [41, 26], [42, 27], [43, 28], [44, 29], [45, 30], [46, 10], [47, 12], [48, 37], [49, 38], [50, 15], [51, 16], [52, 45], [53, 46], [54, 47], [55, 48], [56, 39], [57, 39], [58, 50], [59, 51], [60, 56], [61, 39], [62, 58], [63, 58], [64, 61], [65, 57], [66, 64], [67, 64], [68, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "compileFilter", "code": "    private void compileFilter(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tTestGenerator testGen;\n\tLocalVariableGen local;\n\tFilterGenerator filterGen;\n\n\t_className = getXSLTC().getHelperClassName();\n\tfilterGen = new FilterGenerator(_className,\n\t\t\t\t\t\"java.lang.Object\",\n\t\t\t\t\ttoString(), \n\t\t\t\t\tACC_PUBLIC | ACC_SUPER,\n\t\t\t\t\tnew String[] {\n\t\t\t\t\t    CURRENT_NODE_LIST_FILTER\n\t\t\t\t\t},\n\t\t\t\t\tclassGen.getStylesheet());\t\n\n\tfinal ConstantPoolGen cpg = filterGen.getConstantPool();\n\tfinal int length = (_closureVars == null) ? 0 : _closureVars.size();\n\n\tfor (int i = 0; i < length; i++) {\n\t    VariableBase var = ((VariableRefBase) _closureVars.get(i)).getVariable();\n\n\t    filterGen.addField(new Field(ACC_PUBLIC, \n\t\t\t\t\tcpg.addUtf8(var.getEscapedName()),\n\t\t\t\t\tcpg.addUtf8(var.getType().toSignature()),\n\t\t\t\t\tnull, cpg.getConstantPool()));\n\t}\n\n\tfinal InstructionList il = new InstructionList();\n\ttestGen = new TestGenerator(ACC_PUBLIC | ACC_FINAL,\n\t\t\t\t    org.apache.bcel.generic.Type.BOOLEAN, \n\t\t\t\t    new org.apache.bcel.generic.Type[] {\n\t\t\t\t\torg.apache.bcel.generic.Type.INT,\n\t\t\t\t\torg.apache.bcel.generic.Type.INT,\n\t\t\t\t\torg.apache.bcel.generic.Type.INT,\n\t\t\t\t\torg.apache.bcel.generic.Type.INT,\n\t\t\t\t\tUtil.getJCRefType(TRANSLET_SIG),\n\t\t\t\t\tUtil.getJCRefType(NODE_ITERATOR_SIG)\n\t\t\t\t    },\n\t\t\t\t    new String[] {\n\t\t\t\t\t\"node\",\n\t\t\t\t\t\"position\",\n\t\t\t\t\t\"last\",\n\t\t\t\t\t\"current\",\n\t\t\t\t\t\"translet\",\n\t\t\t\t\t\"iterator\"\n\t\t\t\t    },\n\t\t\t\t    \"test\", _className, il, cpg);\n\t\t\n\tlocal = testGen.addLocalVariable(\"document\",\n\t\t\t\t\t Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t\t\t null, null);\n\tfinal String className = classGen.getClassName();\n\til.append(filterGen.loadTranslet());\n\til.append(new CHECKCAST(cpg.addClass(className)));\n\til.append(new GETFIELD(cpg.addFieldref(className,\n\t\t\t\t\t       DOM_FIELD, DOM_INTF_SIG)));\n\til.append(new ASTORE(local.getIndex()));\n\n\ttestGen.setDomIndex(local.getIndex());\n\n\t_exp.translate(filterGen, testGen);\n\til.append(IRETURN);\n\t\n\ttestGen.stripAttributes(true);\n\ttestGen.setMaxLocals();\n\ttestGen.setMaxStack();\n\ttestGen.removeNOPs();\n\tfilterGen.addEmptyConstructor(ACC_PUBLIC);\n\tfilterGen.addMethod(testGen.getMethod());\n\t\t\n\tgetXSLTC().dumpClass(filterGen.getJavaClass());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [3, 27], [0, 28], [0, 29], [11, 30], [12, 31], [17, 32], [20, 33], [21, 34], [22, 35], [23, 36], [24, 37], [1, 38], [25, 39], [26, 40], [2, 41], [3, 42], [4, 43], [5, 44], [28, 45], [29, 46], [30, 47], [34, 48], [35, 49], [36, 50], [39, 51], [39, 52], [39, 53], [39, 54], [40, 55], [40, 56], [3, 57], [3, 58], [43, 59], [43, 60], [43, 61], [45, 62], [45, 63], [45, 64], [45, 65], [46, 66], [57, 67], [61, 68], [40, 69], [40, 70], [40, 71], [40, 72], [40, 73], [40, 74], [40, 75], [40, 76], [67, 77], [67, 78], [67, 79], [67, 80], [42, 81], [79, 82], [80, 83], [82, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 3], [28, 0], [29, 0], [30, 11], [31, 12], [32, 17], [33, 20], [34, 21], [35, 22], [36, 23], [37, 24], [38, 1], [39, 25], [40, 26], [41, 2], [42, 3], [43, 4], [44, 5], [45, 28], [46, 29], [47, 30], [48, 34], [49, 35], [50, 36], [51, 39], [52, 39], [53, 39], [54, 39], [55, 40], [56, 40], [57, 3], [58, 3], [59, 43], [60, 43], [61, 43], [62, 45], [63, 45], [64, 45], [65, 45], [66, 46], [67, 57], [68, 61], [69, 40], [70, 40], [71, 40], [72, 40], [73, 40], [74, 40], [75, 40], [76, 40], [77, 67], [78, 67], [79, 67], [80, 67], [81, 42], [82, 79], [83, 80], [84, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "isBooleanTest", "code": "    public boolean isBooleanTest() {\n\treturn (_exp instanceof BooleanExpr);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNodeValueTest", "code": "    public boolean isNodeValueTest() {\n\tif (!_canOptimize) return false;\n\treturn (getStep() != null && getCompareValue() != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [4, 7], [5, 8], [5, 9], [6, 10], [6, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 4], [8, 5], [9, 5], [10, 6], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getStep", "code": "    public Step getStep() {\n\tif (_step != null) {\n            return _step;\n        }\n        \n\tif (_exp == null) {\n            return null;\n        }\n\n\tif (_exp instanceof EqualityExpr) {\n\t    EqualityExpr exp = (EqualityExpr)_exp;\n\t    Expression left = exp.getLeft();\n\t    Expression right = exp.getRight();\n\n\t    if (left instanceof CastExpr) {\n                left = ((CastExpr) left).getExpr();\n            }\n\t    if (left instanceof Step) {\n                _step = (Step) left;\n            }\n\t    \n\t    if (right instanceof CastExpr) {\n                right = ((CastExpr)right).getExpr();\n            }\n\t    if (right instanceof Step) {\n                _step = (Step)right;\n            }\n\t}\n\treturn _step;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [3, 15], [6, 16], [4, 17], [7, 18], [8, 19], [9, 20], [10, 21], [11, 22], [15, 23], [12, 24], [13, 25], [8, 26], [9, 27], [10, 28], [11, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 3], [16, 6], [17, 4], [18, 7], [19, 8], [20, 9], [21, 10], [22, 11], [23, 15], [24, 12], [25, 13], [26, 8], [27, 9], [28, 10], [29, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getCompareValue", "code": "    public Expression getCompareValue() {\n\tif (_value != null) {\n            return _value;\n        }\n        \n\tif (_exp == null) {\n            return null;\n        }\n\n\tif (_exp instanceof EqualityExpr) {\n\t    EqualityExpr exp = (EqualityExpr) _exp;\n\t    Expression left = exp.getLeft();\n\t    Expression right = exp.getRight();\n            \n            if (left instanceof LiteralExpr) {\n                _value = left;\n                return _value;\n            }\n            if (left instanceof VariableRefBase &&\n                left.getType() == Type.String) \n            {\n                _value = left;\n                return _value;\n            }\n            \n            if (right instanceof LiteralExpr) {\n                _value = right;\n                return _value;\n            }\n            if (right instanceof VariableRefBase &&\n                right.getType() == Type.String) \n            {\n                _value = right;\n                return _value;\n            }\n\t}\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [3, 16], [7, 17], [4, 18], [8, 19], [9, 20], [10, 21], [11, 22], [12, 23], [16, 24], [9, 25], [20, 26], [20, 27], [10, 28], [11, 29], [22, 30], [22, 31], [12, 32], [13, 33], [14, 34], [9, 35], [26, 36], [10, 37], [11, 38], [30, 39], [12, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 3], [17, 7], [18, 4], [19, 8], [20, 9], [21, 10], [22, 11], [23, 12], [24, 16], [25, 9], [26, 20], [27, 20], [28, 10], [29, 11], [30, 22], [31, 22], [32, 12], [33, 13], [34, 14], [35, 9], [36, 26], [37, 10], [38, 11], [39, 30], [40, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "translateFilter", "code": "    public void translateFilter(ClassGenerator classGen,\n\t\t\t\tMethodGenerator methodGen) \n    {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tcompileFilter(classGen, methodGen);\n\t\n\til.append(new NEW(cpg.addClass(_className)));\n\til.append(DUP);\n\til.append(new INVOKESPECIAL(cpg.addMethodref(_className,\n\t\t\t\t\t\t     \"<init>\", \"()V\")));\n\n\tfinal int length = (_closureVars == null) ? 0 : _closureVars.size();\n\n\tfor (int i = 0; i < length; i++) {\n\t    VariableRefBase varRef = (VariableRefBase) _closureVars.get(i);\n\t    VariableBase var = varRef.getVariable();\n\t    Type varType = var.getType();\n\n\t    il.append(DUP);\n\n\t    Closure variableClosure = _parentClosure;\n\t    while (variableClosure != null) {\n\t\tif (variableClosure.inInnerClass()) break;\n\t\tvariableClosure = variableClosure.getParentClosure();\n\t    }\n\n\t    if (variableClosure != null) {\n\t\til.append(ALOAD_0);\n\t\til.append(new GETFIELD(\n\t\t    cpg.addFieldref(variableClosure.getInnerClassName(), \n\t\t\tvar.getEscapedName(), varType.toSignature())));\n\t    }\n\t    else {\n\t\til.append(var.loadInstruction());\n\t    }\n\n\t    il.append(new PUTFIELD(\n\t\t    cpg.addFieldref(_className, var.getEscapedName(), \n\t\t\tvarType.toSignature())));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [8, 19], [10, 20], [3, 21], [4, 22], [1, 23], [12, 24], [13, 25], [1, 26], [1, 27], [18, 28], [18, 29], [18, 30], [19, 31], [20, 32], [23, 33], [24, 34], [13, 35], [25, 36], [15, 37], [16, 38], [30, 39], [31, 40], [31, 41], [33, 42], [12, 43], [12, 44], [12, 45], [13, 46], [35, 47], [35, 48], [17, 49], [42, 50], [42, 51], [43, 52], [44, 53], [46, 54], [53, 55], [55, 56], [55, 57], [55, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 8], [20, 10], [21, 3], [22, 4], [23, 1], [24, 12], [25, 13], [26, 1], [27, 1], [28, 18], [29, 18], [30, 18], [31, 19], [32, 20], [33, 23], [34, 24], [35, 13], [36, 25], [37, 15], [38, 16], [39, 30], [40, 31], [41, 31], [42, 33], [43, 12], [44, 12], [45, 12], [46, 13], [47, 35], [48, 35], [49, 17], [50, 42], [51, 42], [52, 43], [53, 44], [54, 46], [55, 53], [56, 55], [57, 55], [58, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_nthPositionFilter || _nthDescendant) {\n\t    _exp.translate(classGen, methodGen);\n\t}\n\telse if (isNodeValueTest() && (getParent() instanceof Step)) {\n\t    _value.translate(classGen, methodGen);\n\t    il.append(new CHECKCAST(cpg.addClass(STRING_CLASS)));\n\t    il.append(new PUSH(cpg, ((EqualityExpr)_exp).getOp()));\n\t}\n\telse {\n\t    translateFilter(classGen, methodGen);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [3, 10], [8, 11], [8, 12], [1, 13], [6, 14], [6, 15], [6, 16], [6, 17], [11, 18], [15, 19], [16, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 3], [11, 8], [12, 8], [13, 1], [14, 6], [15, 6], [16, 6], [17, 6], [18, 11], [19, 15], [20, 16], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "Predicate", "code": "    public Predicate(Expression exp) {\n        _exp = exp;\n        _exp.setParent(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.5-6864", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/AttList.java", "language": "java", "name": "org.apache.xml.utils.AttList", "code": "public class AttList implements Attributes\n{\n\n  /** List of attribute nodes          */\n  NamedNodeMap m_attrs;\n\n  /** Index of last attribute node          */\n  int m_lastIndex;\n\n\n  /** Local reference to DOMHelper          */\n  DOMHelper m_dh;\n\n\n  /**\n   * Constructor AttList\n   *\n   *\n   * @param attrs List of attributes this will contain\n   * @param dh DOMHelper \n   */\n  public AttList(NamedNodeMap attrs, DOMHelper dh)\n  {\n\n    m_attrs = attrs;\n    m_lastIndex = m_attrs.getLength() - 1;\n    m_dh = dh;\n  }\n\n  /**\n   * Get the number of attribute nodes in the list \n   *\n   *\n   * @return number of attribute nodes\n   */\n  public int getLength()\n  {\n    return m_attrs.getLength();\n  }\n\n  /**\n   * Look up an attribute's Namespace URI by index.\n   *\n   * @param index The attribute index (zero-based).\n   * @return The Namespace URI, or the empty string if none\n   *         is available, or null if the index is out of\n   *         range.\n   */\n  public String getURI(int index)\n  {\n    String ns = m_dh.getNamespaceOfNode(((Attr) m_attrs.item(index)));\n    if(null == ns)\n      ns = \"\";\n    return ns;\n  }\n\n  /**\n   * Look up an attribute's local name by index.\n   *\n   * @param index The attribute index (zero-based).\n   * @return The local name, or the empty string if Namespace\n   *         processing is not being performed, or null\n   *         if the index is out of range.\n   */\n  public String getLocalName(int index)\n  {\n    return m_dh.getLocalNameOfNode(((Attr) m_attrs.item(index)));\n  }\n\n  /**\n   * Look up an attribute's qualified name by index.\n   *\n   *\n   * @param index The attribute index (zero-based).\n   *\n   * @return The attribute's qualified name\n   */\n  public String getQName(int i)\n  {\n    return ((Attr) m_attrs.item(i)).getName();\n  }\n\n  /**\n   * Get the attribute's node type by index\n   *\n   *\n   * @param index The attribute index (zero-based)\n   *\n   * @return the attribute's node type\n   */\n  public String getType(int i)\n  {\n  }\n\n  /**\n   * Get the attribute's node value by index\n   *\n   *\n   * @param index The attribute index (zero-based)\n   *\n   * @return the attribute's node value\n   */\n  public String getValue(int i)\n  {\n    return ((Attr) m_attrs.item(i)).getValue();\n  }\n\n  /**\n   * Get the attribute's node type by name\n   *\n   *\n   * @param name Attribute name\n   *\n   * @return the attribute's node type\n   */\n  public String getType(String name)\n  {\n  }\n\n  /**\n   * Look up an attribute's type by Namespace name.\n   *\n   * @param uri The Namespace URI, or the empty String if the\n   *        name has no Namespace URI.\n   * @param localName The local name of the attribute.\n   * @return The attribute type as a string, or null if the\n   *         attribute is not in the list or if Namespace\n   *         processing is not being performed.\n   */\n  public String getType(String uri, String localName)\n  {\n  }\n\n  /**\n   * Look up an attribute's value by name.\n   *\n   *\n   * @param name The attribute node's name\n   *\n   * @return The attribute node's value\n   */\n  public String getValue(String name)\n  {\n    Attr attr = ((Attr) m_attrs.getNamedItem(name));\n    return (null != attr) \n          ? attr.getValue() : null;\n  }\n\n  /**\n   * Look up an attribute's value by Namespace name.\n   *\n   * @param uri The Namespace URI, or the empty String if the\n   *        name has no Namespace URI.\n   * @param localName The local name of the attribute.\n   * @return The attribute value as a string, or null if the\n   *         attribute is not in the list.\n   */\n  public String getValue(String uri, String localName)\n  {\n\t\tNode a=m_attrs.getNamedItemNS(uri,localName);\n\t\treturn (a==null) ? null : a.getNodeValue();\n  }\n\n  /**\n   * Look up the index of an attribute by Namespace name.\n   *\n   * @param uri The Namespace URI, or the empty string if\n   *        the name has no Namespace URI.\n   * @param localPart The attribute's local name.\n   * @return The index of the attribute, or -1 if it does not\n   *         appear in the list.\n   */\n  public int getIndex(String uri, String localPart)\n  {\n    for(int i=m_attrs.getLength()-1;i>=0;--i)\n    {\n      Node a=m_attrs.item(i);\n      String u=a.getNamespaceURI();\n      if( (u==null ? uri==null : u.equals(uri))\n\t  &&\n\t  a.getLocalName().equals(localPart) )\n\treturn i;\n    }\n    return -1;\n  }\n\n  /**\n   * Look up the index of an attribute by raw XML 1.0 name.\n   *\n   * @param qName The qualified (prefixed) name.\n   * @return The index of the attribute, or -1 if it does not\n   *         appear in the list.\n   */\n  public int getIndex(String qName)\n  {\n    for(int i=m_attrs.getLength()-1;i>=0;--i)\n    {\n      Node a=m_attrs.item(i);\n      if(a.getNodeName().equals(qName) )\n\treturn i;\n    }\n    return -1;", "functions": [{"function_name": "getLength", "code": "  public int getLength()\n  {\n    return m_attrs.getLength();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getURI", "code": "  public String getURI(int index)\n  {\n    String ns = m_dh.getNamespaceOfNode(((Attr) m_attrs.item(index)));\n    if(null == ns)\n      ns = \"\";\n    return ns;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getLocalName", "code": "  public String getLocalName(int index)\n  {\n    return m_dh.getLocalNameOfNode(((Attr) m_attrs.item(index)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getQName", "code": "  public String getQName(int i)\n  {\n    return ((Attr) m_attrs.item(i)).getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getType", "code": "  public String getType(int i)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getValue", "code": "  public String getValue(int i)\n  {\n    return ((Attr) m_attrs.item(i)).getValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getType", "code": "  public String getType(String name)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "  public String getType(String uri, String localName)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValue", "code": "  public String getValue(String name)\n  {\n    Attr attr = ((Attr) m_attrs.getNamedItem(name));\n    return (null != attr) \n          ? attr.getValue() : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [7, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 7], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getValue", "code": "  public String getValue(String uri, String localName)\n  {\n\t\tNode a=m_attrs.getNamedItemNS(uri,localName);\n\t\treturn (a==null) ? null : a.getNodeValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [5, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 5], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getIndex", "code": "  public int getIndex(String uri, String localPart)\n  {\n    for(int i=m_attrs.getLength()-1;i>=0;--i)\n    {\n      Node a=m_attrs.item(i);\n      String u=a.getNamespaceURI();\n      if( (u==null ? uri==null : u.equals(uri))\n\t  &&\n\t  a.getLocalName().equals(localPart) )\n\treturn i;\n    }\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [7, 11], [7, 12], [2, 13], [12, 14], [12, 15], [8, 16], [9, 17], [13, 18], [13, 19], [14, 20], [15, 21], [15, 22], [15, 23], [22, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 7], [12, 7], [13, 2], [14, 12], [15, 12], [16, 8], [17, 9], [18, 13], [19, 13], [20, 14], [21, 15], [22, 15], [23, 15], [24, 22], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getIndex", "code": "  public int getIndex(String qName)\n  {\n    for(int i=m_attrs.getLength()-1;i>=0;--i)\n    {\n      Node a=m_attrs.item(i);\n      if(a.getNodeName().equals(qName) )\n\treturn i;\n    }\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [10, 12], [7, 13], [11, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 10], [13, 7], [14, 11], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "AttList", "code": "  public AttList(NamedNodeMap attrs, DOMHelper dh)\n  {\n\n    m_attrs = attrs;\n    m_lastIndex = m_attrs.getLength() - 1;\n    m_dh = dh;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "jedit-4.2-4416", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/options/ToolBarOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.ToolBarOptionPane", "code": "public class ToolBarOptionPane extends AbstractOptionPane\n{\n\t//{{{ ToolBarOptionPane constructor\n\tpublic ToolBarOptionPane()\n\t{\n\t\tsuper(\"toolbar\");\n\t} //}}}\n\n\t//{{{ _init() method\n\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\n\t\tJPanel panel = new JPanel(new GridLayout(2,1));\n\n\t\t/* Show toolbar */\n\t\tshowToolbar = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.toolbar.showToolbar\"));\n\t\tshowToolbar.setSelected(jEdit.getBooleanProperty(\"view.showToolbar\"));\n\t\tpanel.add(showToolbar);\n\n\t\tpanel.add(new JLabel(jEdit.getProperty(\n\t\t\t\"options.toolbar.caption\")));\n\n\t\tadd(BorderLayout.NORTH,panel);\n\n\t\tString toolbar = jEdit.getProperty(\"view.toolbar\");\n\t\tStringTokenizer st = new StringTokenizer(toolbar);\n\t\tlistModel = new DefaultListModel();\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString actionName = (String)st.nextToken();\n\t\t\tif(actionName.equals(\"-\"))\n\t\t\t\tlistModel.addElement(new ToolBarOptionPane.Button(\"-\",null,null,\"-\"));\n\t\t\telse\n\t\t\t{\n\t\t\t\tEditAction action = jEdit.getAction(actionName);\n\t\t\t\tif(action == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tString label = action.getLabel();\n\t\t\t\tif(label == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tIcon icon;\n\t\t\t\tString iconName;\n\t\t\t\tif(actionName.equals(\"-\"))\n\t\t\t\t{\n\t\t\t\t\ticonName = null;\n\t\t\t\t\ticon = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ticonName = jEdit.getProperty(actionName + \".icon\");\n\t\t\t\t\tif(iconName == null)\n\t\t\t\t\t\ticon = GUIUtilities.loadIcon(\"BrokenImage.png\");\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ticon = GUIUtilities.loadIcon(iconName);\n\t\t\t\t\t\tif(icon == null)\n\t\t\t\t\t\t\ticon = GUIUtilities.loadIcon(\"BrokenImage.png\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlistModel.addElement(new Button(actionName,iconName,icon,label));\n\t\t\t}\n\t\t}\n\n\t\tlist = new JList(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.addListSelectionListener(new ListHandler());\n\t\tlist.setCellRenderer(new ButtonCellRenderer());\n\n\t\tadd(BorderLayout.CENTER,new JScrollPane(list));\n\n\t\t//{{{ Create buttons\n\t\tJPanel buttons = new JPanel();\n\t\tbuttons.setBorder(new EmptyBorder(3,0,0,0));\n\t\tbuttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tadd = new RolloverButton(GUIUtilities.loadIcon(\"Plus.png\"));\n\t\tadd.setToolTipText(jEdit.getProperty(\"options.toolbar.add\"));\n\t\tadd.addActionListener(actionHandler);\n\t\tbuttons.add(add);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tremove = new RolloverButton(GUIUtilities.loadIcon(\"Minus.png\"));\n\t\tremove.setToolTipText(jEdit.getProperty(\"options.toolbar.remove\"));\n\t\tremove.addActionListener(actionHandler);\n\t\tbuttons.add(remove);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveUp = new RolloverButton(GUIUtilities.loadIcon(\"ArrowU.png\"));\n\t\tmoveUp.setToolTipText(jEdit.getProperty(\"options.toolbar.moveUp\"));\n\t\tmoveUp.addActionListener(actionHandler);\n\t\tbuttons.add(moveUp);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveDown = new RolloverButton(GUIUtilities.loadIcon(\"ArrowD.png\"));\n\t\tmoveDown.setToolTipText(jEdit.getProperty(\"options.toolbar.moveDown\"));\n\t\tmoveDown.addActionListener(actionHandler);\n\t\tbuttons.add(moveDown);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tedit = new RolloverButton(GUIUtilities.loadIcon(\"ButtonProperties.png\"));\n\t\tedit.setToolTipText(jEdit.getProperty(\"options.toolbar.edit\"));\n\t\tedit.addActionListener(actionHandler);\n\t\tbuttons.add(edit);\n\t\tbuttons.add(Box.createGlue());\n\t\t//}}}\n\n\t\tupdateButtons();\n\t\tadd(BorderLayout.SOUTH,buttons);\n\n\t\t//{{{ Ceate icons list\n\t\ticonList = new DefaultComboBoxModel();\n\t\tst = new StringTokenizer(jEdit.getProperty(\"icons\"));\n\t\twhile(st.hasMoreElements())\n\t\t{\n\t\t\tString icon = st.nextToken();\n\t\t\ticonList.addElement(new IconListEntry(\n\t\t\t\tGUIUtilities.loadIcon(icon),icon));\n\t\t} //}}}\n\t} ///}}}\n\n\t//{{{ _save() method\n\tprotected void _save()\n\t{\n\t\tjEdit.setBooleanProperty(\"view.showToolbar\",showToolbar\n\t\t\t.isSelected());\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor(int i = 0; i < listModel.getSize(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(' ');\n\t\t\tButton button = (Button)listModel.elementAt(i);\n\t\t\tbuf.append(button.actionName);\n\t\t\tjEdit.setProperty(button.actionName + \".icon\",button.iconName);\n\t\t}\n\t\tjEdit.setProperty(\"view.toolbar\",buf.toString());\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate JCheckBox showToolbar;\n\tprivate DefaultListModel listModel;\n\tprivate JList list;\n\tprivate RolloverButton add;\n\tprivate RolloverButton remove;\n\tprivate RolloverButton moveUp, moveDown;\n\tprivate RolloverButton edit;\n\n\tprivate DefaultComboBoxModel iconList;\n\t//}}}\n\n\t//{{{ updateButtons() method\n\tprivate void updateButtons()\n\t{\n\t\tint index = list.getSelectedIndex();\n\t\tremove.setEnabled(index != -1 && listModel.getSize() != 0);\n\t\tmoveUp.setEnabled(index > 0);\n\t\tmoveDown.setEnabled(index != -1 && index != listModel.getSize() - 1);\n\t\tedit.setEnabled(index != -1);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ ButtonCompare class\n\tstatic class ButtonCompare implements MiscUtilities.Compare\n\t{\n\t\tpublic int compare(Object obj1, Object obj2)\n\t\t{\n\t\t\treturn MiscUtilities.compareStrings(\n\t\t\t\t((Button)obj1).label,\n\t\t\t\t((Button)obj2).label,\n\t\t\t\ttrue);\n\t\t}\n\t} //}}}\n\n\t//{{{ Button class\n\tstatic class Button\n\t{\n\t\tString actionName;\n\t\tString iconName;\n\t\tIcon icon;\n\t\tString label;\n\n\t\tButton(String actionName, String iconName, Icon icon, String label)\n\t\t{\n\t\t\tthis.actionName = actionName;\n\t\t\tthis.iconName = iconName;\n\t\t\tthis.icon = icon;\n\t\t\tthis.label = GUIUtilities.prettifyMenuLabel(label);\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn label;\n\t\t}\n\n\t\tpublic boolean equals(Object o)\n\t\t{\n\t\t\tif(o instanceof Button)\n\t\t\t\treturn ((Button)o).actionName.equals(actionName);\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t} //}}}\n\n\t//{{{ IconListEntry class\n\tstatic class IconListEntry\n\t{\n\t\tIcon icon;\n\t\tString name;\n\n\t\tIconListEntry(Icon icon, String name)\n\t\t{\n\t\t\tthis.icon = icon;\n\t\t\tthis.name = name;\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn name;\n\t\t}\n\t} //}}}\n\n\t//{{{ ButtonCellRenderer class\n\tstatic class ButtonCellRenderer extends DefaultListCellRenderer\n\t{\n\t\tpublic Component getListCellRendererComponent(JList list,\n\t\t\tObject value, int index, boolean isSelected,\n\t\t\tboolean cellHasFocus)\n\t\t{\n\t\t\tsuper.getListCellRendererComponent(list,value,index,\n\t\t\t\tisSelected,cellHasFocus);\n\n\t\t\tButton button = (Button)value;\n\t\t\tsetIcon(button.icon);\n\n\t\t\treturn this;\n\t\t}\n\t} //}}}\n\n\t//{{{ IconCellRenderer class\n\tstatic class IconCellRenderer extends DefaultListCellRenderer\n\t{\n\t\tpublic Component getListCellRendererComponent(JList list,\n\t\t\tObject value, int index, boolean isSelected,\n\t\t\tboolean cellHasFocus)\n\t\t{\n\t\t\tsuper.getListCellRendererComponent(list,value,index,\n\t\t\t\tisSelected,cellHasFocus);\n\n\t\t\tIconListEntry icon = (IconListEntry)value;\n\t\t\tsetIcon(icon.icon);\n\n\t\t\treturn this;\n\t\t}\n\t} //}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\n\t\t\tif(source == add)\n\t\t\t{\n\t\t\t\tToolBarEditDialog dialog = new ToolBarEditDialog(\n\t\t\t\t\tToolBarOptionPane.this,iconList,null);\n\t\t\t\tButton selection = dialog.getSelection();\n\t\t\t\tif(selection == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tif(index == -1)\n\t\t\t\t\tindex = listModel.getSize();\n\t\t\t\telse\n\t\t\t\t\tindex++;\n\n\t\t\t\tlistModel.insertElementAt(selection,index);\n\t\t\t\tlist.setSelectedIndex(index);\n\t\t\t\tlist.ensureIndexIsVisible(index);\n\t\t\t}\n\t\t\telse if(source == remove)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tif(listModel.getSize() != 0)\n\t\t\t\t{\n\t\t\t\t\tif(listModel.getSize() == index)\n\t\t\t\t\t\tlist.setSelectedIndex(index-1);\n\t\t\t\t\telse\n\t\t\t\t\t\tlist.setSelectedIndex(index);\n\t\t\t\t}\n\t\t\t\tupdateButtons();\n\t\t\t}\n\t\t\telse if(source == moveUp)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tObject selected = list.getSelectedValue();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tlistModel.insertElementAt(selected,index-1);\n\t\t\t\tlist.setSelectedIndex(index-1);\n\t\t\t\tlist.ensureIndexIsVisible(index-1);\n\t\t\t}\n\t\t\telse if(source == moveDown)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tObject selected = list.getSelectedValue();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tlistModel.insertElementAt(selected,index+1);\n\t\t\t\tlist.setSelectedIndex(index+1);\n\t\t\t\tlist.ensureIndexIsVisible(index+1);\n\t\t\t}\n\t\t\telse if(source == edit)\n\t\t\t{\n\t\t\t\tToolBarEditDialog dialog = new ToolBarEditDialog(\n\t\t\t\t\tToolBarOptionPane.this,iconList,\n\t\t\t\t\t(Button)list.getSelectedValue());\n\t\t\t\tButton selection = dialog.getSelection();\n\t\t\t\tif(selection == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tint index = list.getSelectedIndex();\n\n\t\t\t\tlistModel.setElementAt(selection,index);\n\t\t\t\tlist.setSelectedIndex(index);\n\t\t\t\tlist.ensureIndexIsVisible(index);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ ListHandler class\n\tclass ListHandler implements ListSelectionListener\n\t{\n\t\tpublic void valueChanged(ListSelectionEvent evt)\n\t\t{\n\t\t\tupdateButtons();", "functions": [{"function_name": "_init", "code": "\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\n\t\tJPanel panel = new JPanel(new GridLayout(2,1));\n\n\t\t/* Show toolbar */\n\t\tshowToolbar = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.toolbar.showToolbar\"));\n\t\tshowToolbar.setSelected(jEdit.getBooleanProperty(\"view.showToolbar\"));\n\t\tpanel.add(showToolbar);\n\n\t\tpanel.add(new JLabel(jEdit.getProperty(\n\t\t\t\"options.toolbar.caption\")));\n\n\t\tadd(BorderLayout.NORTH,panel);\n\n\t\tString toolbar = jEdit.getProperty(\"view.toolbar\");\n\t\tStringTokenizer st = new StringTokenizer(toolbar);\n\t\tlistModel = new DefaultListModel();\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString actionName = (String)st.nextToken();\n\t\t\tif(actionName.equals(\"-\"))\n\t\t\t\tlistModel.addElement(new ToolBarOptionPane.Button(\"-\",null,null,\"-\"));\n\t\t\telse\n\t\t\t{\n\t\t\t\tEditAction action = jEdit.getAction(actionName);\n\t\t\t\tif(action == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tString label = action.getLabel();\n\t\t\t\tif(label == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tIcon icon;\n\t\t\t\tString iconName;\n\t\t\t\tif(actionName.equals(\"-\"))\n\t\t\t\t{\n\t\t\t\t\ticonName = null;\n\t\t\t\t\ticon = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ticonName = jEdit.getProperty(actionName + \".icon\");\n\t\t\t\t\tif(iconName == null)\n\t\t\t\t\t\ticon = GUIUtilities.loadIcon(\"BrokenImage.png\");\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ticon = GUIUtilities.loadIcon(iconName);\n\t\t\t\t\t\tif(icon == null)\n\t\t\t\t\t\t\ticon = GUIUtilities.loadIcon(\"BrokenImage.png\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlistModel.addElement(new Button(actionName,iconName,icon,label));\n\t\t\t}\n\t\t}\n\n\t\tlist = new JList(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.addListSelectionListener(new ListHandler());\n\t\tlist.setCellRenderer(new ButtonCellRenderer());\n\n\t\tadd(BorderLayout.CENTER,new JScrollPane(list));\n\n\t\t//{{{ Create buttons\n\t\tJPanel buttons = new JPanel();\n\t\tbuttons.setBorder(new EmptyBorder(3,0,0,0));\n\t\tbuttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tadd = new RolloverButton(GUIUtilities.loadIcon(\"Plus.png\"));\n\t\tadd.setToolTipText(jEdit.getProperty(\"options.toolbar.add\"));\n\t\tadd.addActionListener(actionHandler);\n\t\tbuttons.add(add);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tremove = new RolloverButton(GUIUtilities.loadIcon(\"Minus.png\"));\n\t\tremove.setToolTipText(jEdit.getProperty(\"options.toolbar.remove\"));\n\t\tremove.addActionListener(actionHandler);\n\t\tbuttons.add(remove);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveUp = new RolloverButton(GUIUtilities.loadIcon(\"ArrowU.png\"));\n\t\tmoveUp.setToolTipText(jEdit.getProperty(\"options.toolbar.moveUp\"));\n\t\tmoveUp.addActionListener(actionHandler);\n\t\tbuttons.add(moveUp);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveDown = new RolloverButton(GUIUtilities.loadIcon(\"ArrowD.png\"));\n\t\tmoveDown.setToolTipText(jEdit.getProperty(\"options.toolbar.moveDown\"));\n\t\tmoveDown.addActionListener(actionHandler);\n\t\tbuttons.add(moveDown);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tedit = new RolloverButton(GUIUtilities.loadIcon(\"ButtonProperties.png\"));\n\t\tedit.setToolTipText(jEdit.getProperty(\"options.toolbar.edit\"));\n\t\tedit.addActionListener(actionHandler);\n\t\tbuttons.add(edit);\n\t\tbuttons.add(Box.createGlue());\n\t\t//}}}\n\n\t\tupdateButtons();\n\t\tadd(BorderLayout.SOUTH,buttons);\n\n\t\t//{{{ Ceate icons list\n\t\ticonList = new DefaultComboBoxModel();\n\t\tst = new StringTokenizer(jEdit.getProperty(\"icons\"));\n\t\twhile(st.hasMoreElements())\n\t\t{\n\t\t\tString icon = st.nextToken();\n\t\t\ticonList.addElement(new IconListEntry(\n\t\t\t\tGUIUtilities.loadIcon(icon),icon));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [4, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [1, 53], [9, 54], [10, 55], [13, 56], [16, 57], [17, 58], [18, 59], [21, 60], [22, 61], [23, 62], [26, 63], [27, 64], [28, 65], [31, 66], [32, 67], [33, 68], [36, 69], [37, 70], [2, 71], [38, 72], [39, 73], [3, 74], [40, 75], [41, 76], [42, 77], [44, 78], [4, 79], [4, 80], [46, 81], [5, 82], [6, 83], [48, 84], [50, 85], [51, 86], [7, 87], [52, 88], [1, 89], [54, 90], [57, 91], [58, 92], [59, 93], [60, 94], [61, 95], [62, 96], [63, 97], [64, 98], [65, 99], [66, 100], [67, 101], [68, 102], [69, 103], [70, 104], [73, 105], [73, 106], [73, 107], [73, 108], [79, 109], [83, 110], [84, 111], [85, 112], [86, 113], [87, 114], [89, 115], [53, 116], [90, 117], [92, 118], [95, 119], [98, 120], [101, 121], [104, 122], [79, 123], [79, 124], [79, 125], [79, 126], [79, 127], [79, 128], [79, 129], [79, 130], [109, 131], [111, 132], [113, 133], [114, 134], [114, 135], [115, 136], [79, 137], [123, 138], [126, 139], [126, 140], [128, 141], [128, 142], [130, 143], [80, 144], [137, 145], [123, 146], [138, 147], [140, 148], [127, 149], [142, 150], [129, 151], [143, 152], [143, 153], [143, 154], [143, 155], [146, 156], [123, 157], [123, 158], [123, 159], [146, 160], [146, 161], [156, 162], [157, 163], [158, 164], [159, 165], [160, 166], [146, 167], [161, 168], [163, 169], [160, 170], [166, 171], [167, 172], [168, 173], [169, 174], [170, 175], [175, 176], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 4], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 1], [54, 9], [55, 10], [56, 13], [57, 16], [58, 17], [59, 18], [60, 21], [61, 22], [62, 23], [63, 26], [64, 27], [65, 28], [66, 31], [67, 32], [68, 33], [69, 36], [70, 37], [71, 2], [72, 38], [73, 39], [74, 3], [75, 40], [76, 41], [77, 42], [78, 44], [79, 4], [80, 4], [81, 46], [82, 5], [83, 6], [84, 48], [85, 50], [86, 51], [87, 7], [88, 52], [89, 1], [90, 54], [91, 57], [92, 58], [93, 59], [94, 60], [95, 61], [96, 62], [97, 63], [98, 64], [99, 65], [100, 66], [101, 67], [102, 68], [103, 69], [104, 70], [105, 73], [106, 73], [107, 73], [108, 73], [109, 79], [110, 83], [111, 84], [112, 85], [113, 86], [114, 87], [115, 89], [116, 53], [117, 90], [118, 92], [119, 95], [120, 98], [121, 101], [122, 104], [123, 79], [124, 79], [125, 79], [126, 79], [127, 79], [128, 79], [129, 79], [130, 79], [131, 109], [132, 111], [133, 113], [134, 114], [135, 114], [136, 115], [137, 79], [138, 123], [139, 126], [140, 126], [141, 128], [142, 128], [143, 130], [144, 80], [145, 137], [146, 123], [147, 138], [148, 140], [149, 127], [150, 142], [151, 129], [152, 143], [153, 143], [154, 143], [155, 143], [156, 146], [157, 123], [158, 123], [159, 123], [160, 146], [161, 146], [162, 156], [163, 157], [164, 158], [165, 159], [166, 160], [167, 146], [168, 161], [169, 163], [170, 160], [171, 166], [172, 167], [173, 168], [174, 169], [175, 170], [176, 175], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176]]}, {"function_name": "_save", "code": "\tprotected void _save()\n\t{\n\t\tjEdit.setBooleanProperty(\"view.showToolbar\",showToolbar\n\t\t\t.isSelected());\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor(int i = 0; i < listModel.getSize(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(' ');\n\t\t\tButton button = (Button)listModel.elementAt(i);\n\t\t\tbuf.append(button.actionName);\n\t\t\tjEdit.setProperty(button.actionName + \".icon\",button.iconName);\n\t\t}\n\t\tjEdit.setProperty(\"view.toolbar\",buf.toString());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [3, 7], [1, 8], [1, 9], [4, 10], [2, 11], [5, 12], [5, 13], [1, 14], [1, 15], [9, 16], [1, 17], [14, 18], [9, 19], [16, 20], [18, 21], [8, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 3], [8, 1], [9, 1], [10, 4], [11, 2], [12, 5], [13, 5], [14, 1], [15, 1], [16, 9], [17, 1], [18, 14], [19, 9], [20, 16], [21, 18], [22, 8], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "updateButtons", "code": "\tprivate void updateButtons()\n\t{\n\t\tint index = list.getSelectedIndex();\n\t\tremove.setEnabled(index != -1 && listModel.getSize() != 0);\n\t\tmoveUp.setEnabled(index > 0);\n\t\tmoveDown.setEnabled(index != -1 && index != listModel.getSize() - 1);\n\t\tedit.setEnabled(index != -1);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [1, 10], [6, 11], [7, 12], [7, 13], [8, 14], [9, 15], [9, 16], [12, 17], [13, 18], [15, 19], [15, 20], [16, 21], [17, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [10, 1], [11, 6], [12, 7], [13, 7], [14, 8], [15, 9], [16, 9], [17, 12], [18, 13], [19, 15], [20, 15], [21, 16], [22, 17], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "ToolBarOptionPane", "code": "\tpublic ToolBarOptionPane()\n\t{\n\t\tsuper(\"toolbar\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-1205", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/Watchdog.java", "language": "java", "name": "org.apache.tools.ant.util.Watchdog", "code": "public class Watchdog implements Runnable {\n\n    private Vector observers = new Vector(1);\n    private long timeout = -1;\n    /**\n     * marked as volatile to stop the compiler caching values or (in java1.5+,\n     * reordering access)\n     */\n    private volatile boolean stopped = false;\n    /**\n     * Error string.\n     * {@value}\n     */\n    public static final String ERROR_INVALID_TIMEOUT = \"timeout less than 1.\";\n\n    /**\n     * Constructor for Watchdog.\n     * @param timeout the timeout to use in milliseconds (must be >= 1).\n     */\n    public Watchdog(long timeout) {\n        if (timeout < 1) {\n            throw new IllegalArgumentException(ERROR_INVALID_TIMEOUT);\n        }\n        this.timeout = timeout;\n    }\n\n    /**\n     * Add a timeout observer.\n     * @param to the timeout observer to add.\n     */\n    public void addTimeoutObserver(TimeoutObserver to) {\n        observers.addElement(to);\n    }\n\n    /**\n     * Remove a timeout observer.\n     * @param to the timeout observer to remove.\n     */\n    public void removeTimeoutObserver(TimeoutObserver to) {\n        observers.removeElement(to);\n    }\n\n    /**\n     * Inform the observers that a timeout has occurred.\n     * This happens in the watchdog thread.\n     */\n    protected final void fireTimeoutOccured() {\n        Enumeration e = observers.elements();\n        while (e.hasMoreElements()) {\n            ((TimeoutObserver) e.nextElement()).timeoutOccured(this);\n        }\n    }\n\n    /**\n     * Start the watch dog.\n     */\n    public synchronized void start() {\n        stopped = false;\n        Thread t = new Thread(this, \"WATCHDOG\");\n        t.setDaemon(true);\n        t.start();\n    }\n\n    /**\n     * Stop the watch dog.\n     */\n    public synchronized void stop() {\n        stopped = true;\n        notifyAll();\n    }\n\n    /**\n     * The run method of the watch dog thread.\n     * This simply does a wait for the timeout time, and\n     * if the stop flag has not been set when the wait has returned or\n     * has been interrupted, the watch dog listeners are informed.\n     */\n    public synchronized void run() {\n        final long until = System.currentTimeMillis() + timeout;\n        long now;\n        while (!stopped && until > (now = System.currentTimeMillis())) {\n            try {\n                wait(until - now);\n            } catch (InterruptedException e) {\n            }\n        }\n        if (!stopped) {\n            fireTimeoutOccured();", "functions": [{"function_name": "addTimeoutObserver", "code": "    public void addTimeoutObserver(TimeoutObserver to) {\n        observers.addElement(to);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeTimeoutObserver", "code": "    public void removeTimeoutObserver(TimeoutObserver to) {\n        observers.removeElement(to);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "fireTimeoutOccured", "code": "    protected final void fireTimeoutOccured() {\n        Enumeration e = observers.elements();\n        while (e.hasMoreElements()) {\n            ((TimeoutObserver) e.nextElement()).timeoutOccured(this);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "start", "code": "    public synchronized void start() {\n        stopped = false;\n        Thread t = new Thread(this, \"WATCHDOG\");\n        t.setDaemon(true);\n        t.start();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 6], [4, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 1], [7, 4], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "stop", "code": "    public synchronized void stop() {\n        stopped = true;\n        notifyAll();", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "run", "code": "    public synchronized void run() {\n        final long until = System.currentTimeMillis() + timeout;\n        long now;\n        while (!stopped && until > (now = System.currentTimeMillis())) {\n            try {\n                wait(until - now);\n            } catch (InterruptedException e) {\n            }\n        }\n        if (!stopped) {\n            fireTimeoutOccured();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "CATCH", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [4, 8], [1, 9], [6, 10], [7, 11], [8, 12], [6, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 4], [9, 1], [10, 6], [11, 7], [12, 8], [13, 6], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "Watchdog", "code": "    public Watchdog(long timeout) {\n        if (timeout < 1) {\n            throw new IllegalArgumentException(ERROR_INVALID_TIMEOUT);\n        }\n        this.timeout = timeout;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "camel-1.4-2272", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/bam/model/ProcessInstance.java", "language": "java", "name": "org.apache.camel.bam.model.ProcessInstance", "code": "@Entity\npublic class ProcessInstance  {\n    private static final transient Log LOG = LogFactory.getLog(ProcessInstance.class);\n    private ProcessDefinition processDefinition;\n    private Collection<ActivityState> activityStates = new HashSet<ActivityState>();\n    private String correlationKey;\n    private Date timeStarted;\n    private Date timeCompleted;\n\n    public ProcessInstance() {\n        setTimeStarted(new Date());\n    }\n\n    public String toString() {\n        return \"ProcessInstance[\" + getCorrelationKey() + \"]\";\n    }\n\n    @Id\n    public String getCorrelationKey() {\n        return correlationKey;\n    }\n\n    public void setCorrelationKey(String correlationKey) {\n        this.correlationKey = correlationKey;\n    }\n\n    @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.MERGE })\n    public ProcessDefinition getProcessDefinition() {\n        return processDefinition;\n    }\n\n    public void setProcessDefinition(ProcessDefinition processDefinition) {\n        this.processDefinition = processDefinition;\n    }\n\n    @OneToMany(mappedBy = \"processInstance\", fetch = FetchType.LAZY, cascade = {CascadeType.ALL })\n    public Collection<ActivityState> getActivityStates() {\n        return activityStates;\n    }\n\n    public void setActivityStates(Collection<ActivityState> activityStates) {\n        this.activityStates = activityStates;\n    }\n\n\n    @Transient\n    public boolean isStarted() {\n        return timeStarted != null;\n    }\n\n    @Transient\n    public boolean isCompleted() {\n        return timeCompleted != null;\n    }\n\n    @Temporal(TemporalType.TIME)\n    public Date getTimeStarted() {\n        return timeStarted;\n    }\n\n    public void setTimeStarted(Date timeStarted) {\n        this.timeStarted = timeStarted;\n    }\n\n    @Temporal(TemporalType.TIME)\n    public Date getTimeCompleted() {\n        return timeCompleted;\n    }\n\n    public void setTimeCompleted(Date timeCompleted) {\n        this.timeCompleted = timeCompleted;\n\t}\n    /**\n     * Returns the activity state for the given activity\n     *\n     * @param activityRules the activity to find the state for\n     * @return the activity state or null if no state could be found for the\n     *         given activity\n     */\n    public ActivityState getActivityState(ActivityRules activityRules) {\n        for (ActivityState activityState : getActivityStates()) {\n            if (activityState.isActivity(activityRules)) {\n                return activityState;\n            }\n        }\n        return null;\n    }\n\n    public ActivityState getOrCreateActivityState(ActivityRules activityRules) {\n        ActivityState state = getActivityState(activityRules);\n\n        if (state == null) {\n            state = createActivityState();\n            state.setProcessInstance(this);\n            state.setActivityDefinition(activityRules.getActivityDefinition());\n        }\n\n        return state;\n    }\n\n    protected ActivityState createActivityState() {\n        return new ActivityState();", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        return \"ProcessInstance[\" + getCorrelationKey() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getCorrelationKey", "code": "    @Id\n    public String getCorrelationKey() {\n        return correlationKey;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCorrelationKey", "code": "    public void setCorrelationKey(String correlationKey) {\n        this.correlationKey = correlationKey;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProcessDefinition", "code": "    @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.MERGE })\n    public ProcessDefinition getProcessDefinition() {\n        return processDefinition;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessDefinition", "code": "    public void setProcessDefinition(ProcessDefinition processDefinition) {\n        this.processDefinition = processDefinition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActivityStates", "code": "    @OneToMany(mappedBy = \"processInstance\", fetch = FetchType.LAZY, cascade = {CascadeType.ALL })\n    public Collection<ActivityState> getActivityStates() {\n        return activityStates;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setActivityStates", "code": "    public void setActivityStates(Collection<ActivityState> activityStates) {\n        this.activityStates = activityStates;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isStarted", "code": "    @Transient\n    public boolean isStarted() {\n        return timeStarted != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isCompleted", "code": "    @Transient\n    public boolean isCompleted() {\n        return timeCompleted != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTimeStarted", "code": "    @Temporal(TemporalType.TIME)\n    public Date getTimeStarted() {\n        return timeStarted;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeStarted", "code": "    public void setTimeStarted(Date timeStarted) {\n        this.timeStarted = timeStarted;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTimeCompleted", "code": "    @Temporal(TemporalType.TIME)\n    public Date getTimeCompleted() {\n        return timeCompleted;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeCompleted", "code": "    public void setTimeCompleted(Date timeCompleted) {\n        this.timeCompleted = timeCompleted;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActivityState", "code": "    public ActivityState getActivityState(ActivityRules activityRules) {\n        for (ActivityState activityState : getActivityStates()) {\n            if (activityState.isActivity(activityRules)) {\n                return activityState;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getOrCreateActivityState", "code": "    public ActivityState getOrCreateActivityState(ActivityRules activityRules) {\n        ActivityState state = getActivityState(activityRules);\n\n        if (state == null) {\n            state = createActivityState();\n            state.setProcessInstance(this);\n            state.setActivityDefinition(activityRules.getActivityDefinition());\n        }\n\n        return state;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [2, 9], [2, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 2], [10, 2], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createActivityState", "code": "    protected ActivityState createActivityState() {\n        return new ActivityState();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ProcessInstance", "code": "    public ProcessInstance() {\n        setTimeStarted(new Date());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8418", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/templates/ElemApplyTemplates.java", "language": "java", "name": "org.apache.xalan.templates.ElemApplyTemplates", "code": "public class ElemApplyTemplates extends ElemCallTemplate\n{\n    static final long serialVersionUID = 2903125371542621004L;\n\n  /**\n   * mode %qname; #IMPLIED\n   * @serial\n   */\n  private QName m_mode = null;\n\n  /**\n   * Set the mode attribute for this element.\n   *\n   */\n  public void setMode(QName mode)\n  {\n    m_mode = mode;\n  }\n\n  /**\n   * Get the mode attribute for this element.\n   *\n   * @return The mode attribute for this element\n   */\n  public QName getMode()\n  {\n    return m_mode;\n  }\n\n  /**\n   * Tells if this belongs to a default template,\n   * in which case it will act different with\n   * regard to processing modes.\n   * @serial\n   */\n  private boolean m_isDefaultTemplate = false;\n  \n\n  /**\n   * Set if this belongs to a default template,\n   * in which case it will act different with\n   * regard to processing modes.\n   *\n   * @param b boolean value to set.\n   */\n  public void setIsDefaultTemplate(boolean b)\n  {\n    m_isDefaultTemplate = b;\n  }\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return Token ID for this element types\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_APPLY_TEMPLATES;\n  }\n  \n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return Element name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_APPLY_TEMPLATES_STRING;\n  }\n\n  /**\n   * Apply the context node to the matching templates.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(TransformerImpl transformer) throws TransformerException\n  {\n\n    transformer.pushCurrentTemplateRuleIsNull(false);\n\n    boolean pushMode = false;\n\n    try\n    {\n      QName mode = transformer.getMode();\n\n      if (!m_isDefaultTemplate)\n      {\n        if (((null == mode) && (null != m_mode))\n                || ((null != mode) &&!mode.equals(m_mode)))\n        {\n          pushMode = true;\n\n          transformer.pushMode(m_mode);\n        }\n      }\n      if (transformer.getDebug())\n        transformer.getTraceManager().fireTraceEvent(this);\n\n      transformSelectedNodes(transformer);\n    }\n    finally\n    {\n      if (transformer.getDebug())\n        transformer.getTraceManager().fireTraceEndEvent(this);\n\n      if (pushMode)\n        transformer.popMode();\n\n      transformer.popCurrentTemplateRuleIsNull();\n    }\n  }\n\n  \n  /**\n   * Perform a query if needed, and call transformNode for each child.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException Thrown in a variety of circumstances.\n   * @xsl.usage advanced\n   */\n  public void transformSelectedNodes(TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    final XPathContext xctxt = transformer.getXPathContext();\n    final int sourceNode = xctxt.getCurrentNode();\n    DTMIterator sourceNodes = m_selectExpression.asIterator(xctxt, sourceNode);\n    VariableStack vars = xctxt.getVarStack();\n    int nParams = getParamElemCount();\n    int thisframe = vars.getStackFrame();\n    StackGuard guard = transformer.getStackGuard();\n    boolean check = (guard.getRecursionLimit() > -1) ? true : false;\n    \n    boolean pushContextNodeListFlag = false;\n      \n    try\n    {\n\n            xctxt.pushCurrentNode(DTM.NULL);\n            xctxt.pushCurrentExpressionNode(DTM.NULL);\n            xctxt.pushSAXLocatorNull();\n            transformer.pushElemTemplateElement(null);\n      final Vector keys = (m_sortElems == null)\n                          ? null\n                          : transformer.processSortKeys(this, sourceNode);\n\n      if (null != keys)\n        sourceNodes = sortNodes(xctxt, keys, sourceNodes);\n            \n      if (transformer.getDebug())\n      {\n        transformer.getTraceManager().fireSelectedEvent(sourceNode, this,\n                \"select\", new XPath(m_selectExpression),\n                new org.apache.xpath.objects.XNodeSet(sourceNodes));\n      }\n\n      final SerializationHandler rth = transformer.getSerializationHandler();\n      final StylesheetRoot sroot = transformer.getStylesheet();\n      final TemplateList tl = sroot.getTemplateListComposed();\n      final boolean quiet = transformer.getQuietConflictWarnings();\n      \n      DTM dtm = xctxt.getDTM(sourceNode);\n      \n      int argsFrame = -1;\n      if(nParams > 0)\n      {\n        argsFrame = vars.link(nParams);\n        vars.setStackFrame(thisframe);\n        \n        for (int i = 0; i < nParams; i++) \n        {\n          ElemWithParam ewp = m_paramElems[i];\n          if (transformer.getDebug())\n            transformer.getTraceManager().fireTraceEvent(ewp);\n          XObject obj = ewp.getValue(transformer, sourceNode);\n          if (transformer.getDebug())\n            transformer.getTraceManager().fireTraceEndEvent(ewp);\n          \n          vars.setLocalVariable(i, obj, argsFrame);\n        }\n        vars.setStackFrame(argsFrame);\n      }\n      \n      xctxt.pushContextNodeList(sourceNodes);\n      pushContextNodeListFlag = true;\n      \n      IntStack currentNodes = xctxt.getCurrentNodeStack();\n      \n      IntStack currentExpressionNodes = xctxt.getCurrentExpressionNodeStack();     \n      \n      \n      int child;\n      while (DTM.NULL != (child = sourceNodes.nextNode()))\n      {\n        currentNodes.setTop(child);\n        currentExpressionNodes.setTop(child);\n\n        if(xctxt.getDTM(child) != dtm)\n        {\n          dtm = xctxt.getDTM(child);\n        }\n        \n        final int exNodeType = dtm.getExpandedTypeID(child);\n\n        final int nodeType = dtm.getNodeType(child);\n\n        final QName mode = transformer.getMode();\n\n        ElemTemplate template = tl.getTemplateFast(xctxt, child, exNodeType, mode, \n                                      -1, quiet, dtm);\n\n        if (null == template)\n        {\n          switch (nodeType)\n          {\n          case DTM.DOCUMENT_FRAGMENT_NODE :\n          case DTM.ELEMENT_NODE :\n            template = sroot.getDefaultRule();\n            break;\n          case DTM.ATTRIBUTE_NODE :\n          case DTM.CDATA_SECTION_NODE :\n          case DTM.TEXT_NODE :\n            transformer.pushPairCurrentMatched(sroot.getDefaultTextRule(), child);\n            transformer.setCurrentElement(sroot.getDefaultTextRule());\n            dtm.dispatchCharactersEvents(child, rth, false);\n            transformer.popCurrentMatched();\n            continue;\n          case DTM.DOCUMENT_NODE :\n            template = sroot.getDefaultRootRule();\n            break;\n          default :\n\n            continue;\n          }\n        }\n        else\n        {\n        \ttransformer.setCurrentElement(template);\n        }\n                \n        transformer.pushPairCurrentMatched(template, child);\n        if (check)\n\t        guard.checkForInfinateLoop();\n\n        if(template.m_frameSize > 0)\n        {\n          xctxt.pushRTFContext();\n          vars.link(template.m_frameSize);\n          if(/* nParams > 0 && */ template.m_inArgsSize > 0)\n          {\n            int paramIndex = 0;\n            for (ElemTemplateElement elem = template.getFirstChildElem(); \n                 null != elem; elem = elem.getNextSiblingElem()) \n            {\n              if(Constants.ELEMNAME_PARAMVARIABLE == elem.getXSLToken())\n              {\n                ElemParam ep = (ElemParam)elem;\n                \n                int i;\n                for (i = 0; i < nParams; i++) \n                {\n                  ElemWithParam ewp = m_paramElems[i];\n                  if(ewp.m_qnameID == ep.m_qnameID)\n                  {\n                    XObject obj = vars.getLocalVariable(i, argsFrame);\n                    vars.setLocalVariable(paramIndex, obj);\n                    break;\n                  }\n                }\n                if(i == nParams)\n                  vars.setLocalVariable(paramIndex, null);\n              }\n              else\n                break;\n              paramIndex++;\n            }\n            \n          }\n        }\n        else\n        \tcurrentFrameBottom = 0;\n\n        if (transformer.getDebug())\n          transformer.getTraceManager().fireTraceEvent(template);\n\n        for (ElemTemplateElement t = template.m_firstChild; \n             t != null; t = t.m_nextSibling)\n        {\n          xctxt.setSAXLocator(t);\n          try\n          {\n          \ttransformer.pushElemTemplateElement(t);\n          \tt.execute(transformer);\n          }\n          finally\n          {\n          \ttransformer.popElemTemplateElement();\n          }\n        }\n        \n        if (transformer.getDebug())\n\t      transformer.getTraceManager().fireTraceEndEvent(template); \n\t    \n        if(template.m_frameSize > 0)\n        {\n          vars.unlink(currentFrameBottom);\n          xctxt.popRTFContext();\n        }\n          \n        transformer.popCurrentMatched();\n\t  }\n    }\n    catch (SAXException se)\n    {\n      transformer.getErrorListener().fatalError(new TransformerException(se));\n    }\n    finally\n    {\n      if (transformer.getDebug())\n        transformer.getTraceManager().fireSelectedEndEvent(sourceNode, this,\n                \"select\", new XPath(m_selectExpression),\n                new org.apache.xpath.objects.XNodeSet(sourceNodes));\n      \n      if(nParams > 0)\n        vars.unlink(thisframe);\n      xctxt.popSAXLocator();\n      if (pushContextNodeListFlag) xctxt.popContextNodeList();\n      transformer.popElemTemplateElement();\n      xctxt.popCurrentExpressionNode();\n      xctxt.popCurrentNode();\n      sourceNodes.detach();", "functions": [{"function_name": "setMode", "code": "  public void setMode(QName mode)\n  {\n    m_mode = mode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMode", "code": "  public QName getMode()\n  {\n    return m_mode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIsDefaultTemplate", "code": "  public void setIsDefaultTemplate(boolean b)\n  {\n    m_isDefaultTemplate = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_APPLY_TEMPLATES;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_APPLY_TEMPLATES_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public void execute(TransformerImpl transformer) throws TransformerException\n  {\n\n    transformer.pushCurrentTemplateRuleIsNull(false);\n\n    boolean pushMode = false;\n\n    try\n    {\n      QName mode = transformer.getMode();\n\n      if (!m_isDefaultTemplate)\n      {\n        if (((null == mode) && (null != m_mode))\n                || ((null != mode) &&!mode.equals(m_mode)))\n        {\n          pushMode = true;\n\n          transformer.pushMode(m_mode);\n        }\n      }\n      if (transformer.getDebug())\n        transformer.getTraceManager().fireTraceEvent(this);\n\n      transformSelectedNodes(transformer);\n    }\n    finally\n    {\n      if (transformer.getDebug())\n        transformer.getTraceManager().fireTraceEndEvent(this);\n\n      if (pushMode)\n        transformer.popMode();\n\n      transformer.popCurrentTemplateRuleIsNull();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "IF", "IF", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [0, 9], [1, 10], [5, 11], [1, 12], [6, 13], [2, 14], [9, 15], [4, 16], [5, 17], [6, 18], [7, 19], [8, 20], [17, 21], [18, 22], [19, 23], [23, 24], [23, 25], [19, 26], [19, 27], [24, 28], [24, 29], [25, 30], [25, 31], [27, 32], [29, 33], [30, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 0], [10, 1], [11, 5], [12, 1], [13, 6], [14, 2], [15, 9], [16, 4], [17, 5], [18, 6], [19, 7], [20, 8], [21, 17], [22, 18], [23, 19], [24, 23], [25, 23], [26, 19], [27, 19], [28, 24], [29, 24], [30, 25], [31, 25], [32, 27], [33, 29], [34, 30], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "transformSelectedNodes", "code": "  public void transformSelectedNodes(TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    final XPathContext xctxt = transformer.getXPathContext();\n    final int sourceNode = xctxt.getCurrentNode();\n    DTMIterator sourceNodes = m_selectExpression.asIterator(xctxt, sourceNode);\n    VariableStack vars = xctxt.getVarStack();\n    int nParams = getParamElemCount();\n    int thisframe = vars.getStackFrame();\n    StackGuard guard = transformer.getStackGuard();\n    boolean check = (guard.getRecursionLimit() > -1) ? true : false;\n    \n    boolean pushContextNodeListFlag = false;\n      \n    try\n    {\n\n            xctxt.pushCurrentNode(DTM.NULL);\n            xctxt.pushCurrentExpressionNode(DTM.NULL);\n            xctxt.pushSAXLocatorNull();\n            transformer.pushElemTemplateElement(null);\n      final Vector keys = (m_sortElems == null)\n                          ? null\n                          : transformer.processSortKeys(this, sourceNode);\n\n      if (null != keys)\n        sourceNodes = sortNodes(xctxt, keys, sourceNodes);\n            \n      if (transformer.getDebug())\n      {\n        transformer.getTraceManager().fireSelectedEvent(sourceNode, this,\n                \"select\", new XPath(m_selectExpression),\n                new org.apache.xpath.objects.XNodeSet(sourceNodes));\n      }\n\n      final SerializationHandler rth = transformer.getSerializationHandler();\n      final StylesheetRoot sroot = transformer.getStylesheet();\n      final TemplateList tl = sroot.getTemplateListComposed();\n      final boolean quiet = transformer.getQuietConflictWarnings();\n      \n      DTM dtm = xctxt.getDTM(sourceNode);\n      \n      int argsFrame = -1;\n      if(nParams > 0)\n      {\n        argsFrame = vars.link(nParams);\n        vars.setStackFrame(thisframe);\n        \n        for (int i = 0; i < nParams; i++) \n        {\n          ElemWithParam ewp = m_paramElems[i];\n          if (transformer.getDebug())\n            transformer.getTraceManager().fireTraceEvent(ewp);\n          XObject obj = ewp.getValue(transformer, sourceNode);\n          if (transformer.getDebug())\n            transformer.getTraceManager().fireTraceEndEvent(ewp);\n          \n          vars.setLocalVariable(i, obj, argsFrame);\n        }\n        vars.setStackFrame(argsFrame);\n      }\n      \n      xctxt.pushContextNodeList(sourceNodes);\n      pushContextNodeListFlag = true;\n      \n      IntStack currentNodes = xctxt.getCurrentNodeStack();\n      \n      IntStack currentExpressionNodes = xctxt.getCurrentExpressionNodeStack();     \n      \n      \n      int child;\n      while (DTM.NULL != (child = sourceNodes.nextNode()))\n      {\n        currentNodes.setTop(child);\n        currentExpressionNodes.setTop(child);\n\n        if(xctxt.getDTM(child) != dtm)\n        {\n          dtm = xctxt.getDTM(child);\n        }\n        \n        final int exNodeType = dtm.getExpandedTypeID(child);\n\n        final int nodeType = dtm.getNodeType(child);\n\n        final QName mode = transformer.getMode();\n\n        ElemTemplate template = tl.getTemplateFast(xctxt, child, exNodeType, mode, \n                                      -1, quiet, dtm);\n\n        if (null == template)\n        {\n          switch (nodeType)\n          {\n          case DTM.DOCUMENT_FRAGMENT_NODE :\n          case DTM.ELEMENT_NODE :\n            template = sroot.getDefaultRule();\n            break;\n          case DTM.ATTRIBUTE_NODE :\n          case DTM.CDATA_SECTION_NODE :\n          case DTM.TEXT_NODE :\n            transformer.pushPairCurrentMatched(sroot.getDefaultTextRule(), child);\n            transformer.setCurrentElement(sroot.getDefaultTextRule());\n            dtm.dispatchCharactersEvents(child, rth, false);\n            transformer.popCurrentMatched();\n            continue;\n          case DTM.DOCUMENT_NODE :\n            template = sroot.getDefaultRootRule();\n            break;\n          default :\n\n            continue;\n          }\n        }\n        else\n        {\n        \ttransformer.setCurrentElement(template);\n        }\n                \n        transformer.pushPairCurrentMatched(template, child);\n        if (check)\n\t        guard.checkForInfinateLoop();\n\n        if(template.m_frameSize > 0)\n        {\n          xctxt.pushRTFContext();\n          vars.link(template.m_frameSize);\n          if(/* nParams > 0 && */ template.m_inArgsSize > 0)\n          {\n            int paramIndex = 0;\n            for (ElemTemplateElement elem = template.getFirstChildElem(); \n                 null != elem; elem = elem.getNextSiblingElem()) \n            {\n              if(Constants.ELEMNAME_PARAMVARIABLE == elem.getXSLToken())\n              {\n                ElemParam ep = (ElemParam)elem;\n                \n                int i;\n                for (i = 0; i < nParams; i++) \n                {\n                  ElemWithParam ewp = m_paramElems[i];\n                  if(ewp.m_qnameID == ep.m_qnameID)\n                  {\n                    XObject obj = vars.getLocalVariable(i, argsFrame);\n                    vars.setLocalVariable(paramIndex, obj);\n                    break;\n                  }\n                }\n                if(i == nParams)\n                  vars.setLocalVariable(paramIndex, null);\n              }\n              else\n                break;\n              paramIndex++;\n            }\n            \n          }\n        }\n        else\n        \tcurrentFrameBottom = 0;\n\n        if (transformer.getDebug())\n          transformer.getTraceManager().fireTraceEvent(template);\n\n        for (ElemTemplateElement t = template.m_firstChild; \n             t != null; t = t.m_nextSibling)\n        {\n          xctxt.setSAXLocator(t);\n          try\n          {\n          \ttransformer.pushElemTemplateElement(t);\n          \tt.execute(transformer);\n          }\n          finally\n          {\n          \ttransformer.popElemTemplateElement();\n          }\n        }\n        \n        if (transformer.getDebug())\n\t      transformer.getTraceManager().fireTraceEndEvent(template); \n\t    \n        if(template.m_frameSize > 0)\n        {\n          vars.unlink(currentFrameBottom);\n          xctxt.popRTFContext();\n        }\n          \n        transformer.popCurrentMatched();\n\t  }\n    }\n    catch (SAXException se)\n    {\n      transformer.getErrorListener().fatalError(new TransformerException(se));\n    }\n    finally\n    {\n      if (transformer.getDebug())\n        transformer.getTraceManager().fireSelectedEndEvent(sourceNode, this,\n                \"select\", new XPath(m_selectExpression),\n                new org.apache.xpath.objects.XNodeSet(sourceNodes));\n      \n      if(nParams > 0)\n        vars.unlink(thisframe);\n      xctxt.popSAXLocator();\n      if (pushContextNodeListFlag) xctxt.popContextNodeList();\n      transformer.popElemTemplateElement();\n      xctxt.popCurrentExpressionNode();\n      xctxt.popCurrentNode();\n      sourceNodes.detach();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "IF", "IF", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "LOOP", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [13, 35], [14, 36], [16, 37], [1, 38], [1, 39], [20, 40], [27, 41], [28, 42], [1, 43], [1, 44], [1, 45], [1, 46], [2, 47], [3, 48], [4, 49], [5, 50], [6, 51], [7, 52], [8, 53], [9, 54], [10, 55], [12, 56], [13, 57], [35, 58], [14, 59], [15, 60], [16, 61], [16, 62], [16, 63], [16, 64], [16, 65], [16, 66], [16, 67], [16, 68], [16, 69], [16, 70], [16, 71], [16, 72], [37, 73], [18, 74], [19, 75], [38, 76], [20, 77], [40, 78], [21, 79], [22, 80], [23, 81], [24, 82], [25, 83], [26, 84], [28, 85], [42, 86], [29, 87], [43, 88], [48, 89], [48, 90], [48, 91], [59, 92], [60, 93], [16, 94], [61, 95], [62, 96], [63, 97], [63, 98], [64, 99], [65, 100], [16, 101], [67, 102], [72, 103], [16, 104], [16, 105], [73, 106], [20, 107], [77, 108], [20, 109], [20, 110], [27, 111], [85, 112], [87, 113], [87, 114], [87, 115], [91, 116], [91, 117], [92, 118], [92, 119], [92, 120], [93, 121], [95, 122], [62, 123], [63, 124], [98, 125], [64, 126], [65, 127], [65, 128], [100, 129], [66, 130], [67, 131], [102, 132], [68, 133], [69, 134], [70, 135], [71, 136], [103, 137], [77, 138], [77, 139], [77, 140], [77, 141], [110, 142], [111, 143], [115, 144], [61, 145], [61, 146], [123, 147], [63, 148], [126, 149], [127, 150], [128, 151], [65, 152], [65, 153], [67, 154], [133, 155], [72, 156], [77, 157], [138, 158], [140, 159], [77, 160], [143, 161], [143, 162], [143, 163], [124, 164], [124, 165], [124, 166], [128, 167], [128, 168], [151, 169], [131, 170], [131, 171], [131, 172], [131, 173], [156, 174], [138, 175], [139, 176], [140, 177], [167, 178], [167, 179], [131, 180], [131, 181], [131, 182], [131, 183], [131, 184], [131, 185], [175, 186], [177, 187], [167, 188], [178, 189], [179, 190], [168, 191], [180, 192], [182, 193], [183, 194], [184, 195], [185, 196], [188, 197], [188, 198], [167, 199], [188, 200], [188, 201], [188, 202], [188, 203], [198, 204], [200, 205], [201, 206], [201, 207], [200, 208], [201, 209], [201, 210], [207, 211], [208, 212], [209, 213], [209, 214], [209, 215], [209, 216], [215, 217], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 13], [36, 14], [37, 16], [38, 1], [39, 1], [40, 20], [41, 27], [42, 28], [43, 1], [44, 1], [45, 1], [46, 1], [47, 2], [48, 3], [49, 4], [50, 5], [51, 6], [52, 7], [53, 8], [54, 9], [55, 10], [56, 12], [57, 13], [58, 35], [59, 14], [60, 15], [61, 16], [62, 16], [63, 16], [64, 16], [65, 16], [66, 16], [67, 16], [68, 16], [69, 16], [70, 16], [71, 16], [72, 16], [73, 37], [74, 18], [75, 19], [76, 38], [77, 20], [78, 40], [79, 21], [80, 22], [81, 23], [82, 24], [83, 25], [84, 26], [85, 28], [86, 42], [87, 29], [88, 43], [89, 48], [90, 48], [91, 48], [92, 59], [93, 60], [94, 16], [95, 61], [96, 62], [97, 63], [98, 63], [99, 64], [100, 65], [101, 16], [102, 67], [103, 72], [104, 16], [105, 16], [106, 73], [107, 20], [108, 77], [109, 20], [110, 20], [111, 27], [112, 85], [113, 87], [114, 87], [115, 87], [116, 91], [117, 91], [118, 92], [119, 92], [120, 92], [121, 93], [122, 95], [123, 62], [124, 63], [125, 98], [126, 64], [127, 65], [128, 65], [129, 100], [130, 66], [131, 67], [132, 102], [133, 68], [134, 69], [135, 70], [136, 71], [137, 103], [138, 77], [139, 77], [140, 77], [141, 77], [142, 110], [143, 111], [144, 115], [145, 61], [146, 61], [147, 123], [148, 63], [149, 126], [150, 127], [151, 128], [152, 65], [153, 65], [154, 67], [155, 133], [156, 72], [157, 77], [158, 138], [159, 140], [160, 77], [161, 143], [162, 143], [163, 143], [164, 124], [165, 124], [166, 124], [167, 128], [168, 128], [169, 151], [170, 131], [171, 131], [172, 131], [173, 131], [174, 156], [175, 138], [176, 139], [177, 140], [178, 167], [179, 167], [180, 131], [181, 131], [182, 131], [183, 131], [184, 131], [185, 131], [186, 175], [187, 177], [188, 167], [189, 178], [190, 179], [191, 168], [192, 180], [193, 182], [194, 183], [195, 184], [196, 185], [197, 188], [198, 188], [199, 167], [200, 188], [201, 188], [202, 188], [203, 188], [204, 198], [205, 200], [206, 201], [207, 201], [208, 200], [209, 201], [210, 201], [211, 207], [212, 208], [213, 209], [214, 209], [215, 209], [216, 209], [217, 215], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217]]}], "label": 1}
{"sample_id": "ant-1.3-39", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/types/ZipScanner.java", "language": "java", "name": "org.apache.tools.ant.types.ZipScanner", "code": "public class ZipScanner extends DirectoryScanner {\n\n    /**\n     * The zip file which should be scanned.\n     */\n    protected File srcFile;\n\n    /**\n     * Sets the srcFile for scanning. This is the jar or zip file that is scanned\n     * for matching entries.\n     *\n     * @param srcFile the (non-null) zip file name for scanning\n     */\n    public void setSrc(File srcFile) {\n        this.srcFile = srcFile;\n    }\n\n    /**\n     * Returns the zip file itself, not the matching entries within the zip file.\n     * This keeps the uptodate test in the Zip task simple; otherwise we'd need\n     * to treat zip filesets specially.\n     *\n     * @return the source file from which entries will be extracted.\n     */\n    public String[] getIncludedFiles() {\n        String[] result = new String[1];\n        result[0] = srcFile.getAbsolutePath();\n        return result;\n    }\n\n    /**\n     * Returns an empty list of directories to create.\n     */\n    public String[] getIncludedDirectories() {\n        return new String[0];\n    }\n\n    /**\n     * Initialize DirectoryScanner data structures.\n     */\n    public void init() {\n        if (includes == null) {\n            includes = new String[1];\n            includes[0] = \"**\";\n        }\n        if (excludes == null) {\n            excludes = new String[0];\n        }\n    }\n\n    /**\n     * Matches a jar entry against the includes/excludes list,\n     * normalizing the path separator.\n     *\n     * @param path the (non-null) path name to test for inclusion\n     *\n     * @return <code>true</code> if the path should be included\n     *         <code>false</code> otherwise.\n     */\n    public boolean match(String path) {\n        String vpath = path.replace('/', File.separatorChar).\n            replace('\\\\', File.separatorChar);\n        return isIncluded(vpath) && !isExcluded(vpath);", "functions": [{"function_name": "setSrc", "code": "    public void setSrc(File srcFile) {\n        this.srcFile = srcFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIncludedFiles", "code": "    public String[] getIncludedFiles() {\n        String[] result = new String[1];\n        result[0] = srcFile.getAbsolutePath();\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getIncludedDirectories", "code": "    public String[] getIncludedDirectories() {\n        return new String[0];", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "init", "code": "    public void init() {\n        if (includes == null) {\n            includes = new String[1];\n            includes[0] = \"**\";\n        }\n        if (excludes == null) {\n            excludes = new String[0];", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [4, 6], [1, 7], [2, 8], [2, 9], [8, 10], [7, 11], [9, 12], [8, 13], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 4], [7, 1], [8, 2], [9, 2], [10, 8], [11, 7], [12, 9], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "match", "code": "    public boolean match(String path) {\n        String vpath = path.replace('/', File.separatorChar).\n            replace('\\\\', File.separatorChar);\n        return isIncluded(vpath) && !isExcluded(vpath);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "log4j-1.2-5081", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/Appender.java", "language": "java", "name": "org.apache.log4j.Appender", "code": "public interface Appender {\n\n  /**\n     Add a filter to the end of the filter list.\n\n     @since 0.9.0\n   */\n  void addFilter(Filter newFilter);\n\n  /**\n     Returns the head Filter. The Filters are organized in a linked list\n     and so all Filters on this Appender are available through the result.\n     \n     @return the head Filter or null, if no Filters are present\n     @since 1.1\n  */\n  public\n  Filter getFilter();\n\n  /**\n     Clear the list of filters by removing all the filters in it.\n     \n     @since 0.9.0\n   */\n  public\n  void clearFilters();\n\n  /**\n     Release any resources allocated within the appender such as file\n     handles, network connections, etc.\n\n     <p>It is a programming error to append to a closed appender.\n\n     @since 0.8.4\n  */\n  public\n  void close();\n  \n  /**\n     Log in <code>Appender</code> specific way. When appropriate,\n     Loggers will call the <code>doAppend</code> method of appender\n     implementations in order to log. */\n  public\n  void doAppend(LoggingEvent event);\n\n\n  /**\n     Get the name of this appender.\n     @return name, may be null.*/\n  public\n  String getName();\n\n\n  /**\n     Set the {@link ErrorHandler} for this appender.\n\n     @since 0.9.0\n   */\n  public\n  void setErrorHandler(ErrorHandler errorHandler);\n\n  /**\n     Returns the {@link ErrorHandler} for this appender.\n\n     @since 1.1\n   */\n  public\n  ErrorHandler getErrorHandler();\n\n  /**\n     Set the {@link Layout} for this appender.\n\n     @since 0.8.1\n  */\n  public\n  void setLayout(Layout layout);\n\n  /**\n     Returns this appenders layout.\n     \n     @since 1.1\n  */\n  public\n  Layout getLayout();\n  \n\n  /**\n     Set the name of this appender. The name is used by other\n     components to identify this appender.\n\n     @since 0.8.1\n  */\n  public\n  void setName(String name);\n\n  /**\n     Configurators call this method to determine if the appender\n    requires a layout. If this method returns <code>true</code>,\n    meaning that layout is required, then the configurator will\n    configure an layout using the configuration information at its\n    disposal.  If this method returns <code>false</code>, meaning that\n    a layout is not required, then layout configuration will be\n    skipped even if there is available layout configuration\n    information at the disposal of the configurator..\n\n     <p>In the rather exceptional case, where the appender\n     implementation admits a layout but can also work without it, then\n     the appender should return <code>true</code>.\n     \n     @since 0.8.4 */\n  public\n  boolean requiresLayout();", "functions": [{"function_name": "addFilter", "code": "  void addFilter(Filter newFilter);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFilter", "code": "  Filter getFilter();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "clearFilters", "code": "  void clearFilters();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "close", "code": "  void close();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "doAppend", "code": "  void doAppend(LoggingEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "  String getName();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setErrorHandler", "code": "  void setErrorHandler(ErrorHandler errorHandler);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getErrorHandler", "code": "  ErrorHandler getErrorHandler();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setLayout", "code": "  void setLayout(Layout layout);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLayout", "code": "  Layout getLayout();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setName", "code": "  void setName(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "requiresLayout", "code": "  boolean requiresLayout();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.2-1730", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/mail/MailEndpoint.java", "language": "java", "name": "org.apache.camel.component.mail.MailEndpoint", "code": "public class MailEndpoint extends ScheduledPollEndpoint<MailExchange> {\n    private MailBinding binding;\n    private MailConfiguration configuration;\n\n    public MailEndpoint(String uri, MailComponent component, MailConfiguration configuration) {\n        super(uri, component);\n        this.configuration = configuration;\n    }\n\n    public Producer<MailExchange> createProducer() throws Exception {\n        JavaMailSender sender = configuration.createJavaMailConnection(this);\n        return createProducer(sender);\n    }\n\n    /**\n     * Creates a producer using the given sender\n     */\n    public Producer<MailExchange> createProducer(JavaMailSender sender) throws Exception {\n        return new MailProducer(this, sender);\n    }\n\n    public Consumer<MailExchange> createConsumer(Processor processor) throws Exception {\n        JavaMailConnection connection = configuration.createJavaMailConnection(this);\n        String protocol = getConfiguration().getProtocol();\n        if (protocol.equals(\"smtp\")) {\n            protocol = \"pop3\";\n        }\n        String folderName = getConfiguration().getFolderName();\n        Folder folder = connection.getFolder(protocol, folderName);\n        if (folder == null) {\n            throw new IllegalArgumentException(\"No folder for protocol: \" + protocol + \" and name: \" + folderName);\n        }\n        return createConsumer(processor, folder);\n    }\n\n    /**\n     * Creates a consumer using the given processor and transport\n     * \n     * @param processor the processor to use to process the messages\n     * @param folder the JavaMail Folder to use for inbound messages\n     * @return a newly created consumer\n     * @throws Exception if the consumer cannot be created\n     */\n    public Consumer<MailExchange> createConsumer(Processor processor, Folder folder) throws Exception {\n        MailConsumer answer = new MailConsumer(this, processor, folder);\n        configureConsumer(answer);\n        return answer;\n    }\n\n    @Override\n    public MailExchange createExchange(ExchangePattern pattern) {\n        return new MailExchange(getContext(), pattern, getBinding());\n    }\n\n    public MailExchange createExchange(Message message) {\n        return new MailExchange(getContext(), getExchangePattern(), getBinding(), message);\n    }\n\n    public MailBinding getBinding() {\n        if (binding == null) {\n            binding = new MailBinding();\n        }\n        return binding;\n    }\n\n    /**\n     * Sets the binding used to convert from a Camel message to and from a Mail\n     * message\n     * \n     * @param binding the binding to use\n     */\n    public void setBinding(MailBinding binding) {\n        this.binding = binding;\n    }\n\n    public boolean isSingleton() {\n        return false;\n    }\n\n    public MailConfiguration getConfiguration() {\n        return configuration;", "functions": [{"function_name": "createProducer", "code": "    public Producer<MailExchange> createProducer() throws Exception {\n        JavaMailSender sender = configuration.createJavaMailConnection(this);\n        return createProducer(sender);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createProducer", "code": "    public Producer<MailExchange> createProducer(JavaMailSender sender) throws Exception {\n        return new MailProducer(this, sender);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createConsumer", "code": "    public Consumer<MailExchange> createConsumer(Processor processor) throws Exception {\n        JavaMailConnection connection = configuration.createJavaMailConnection(this);\n        String protocol = getConfiguration().getProtocol();\n        if (protocol.equals(\"smtp\")) {\n            protocol = \"pop3\";\n        }\n        String folderName = getConfiguration().getFolderName();\n        Folder folder = connection.getFolder(protocol, folderName);\n        if (folder == null) {\n            throw new IllegalArgumentException(\"No folder for protocol: \" + protocol + \" and name: \" + folderName);\n        }\n        return createConsumer(processor, folder);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [5, 11], [2, 12], [10, 13], [3, 14], [4, 15], [11, 16], [6, 17], [7, 18], [12, 19], [15, 20], [5, 21], [17, 22], [19, 23], [21, 24], [23, 25], [25, 26], [25, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 5], [12, 2], [13, 10], [14, 3], [15, 4], [16, 11], [17, 6], [18, 7], [19, 12], [20, 15], [21, 5], [22, 17], [23, 19], [24, 21], [25, 23], [26, 25], [27, 25], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "createConsumer", "code": "    public Consumer<MailExchange> createConsumer(Processor processor, Folder folder) throws Exception {\n        MailConsumer answer = new MailConsumer(this, processor, folder);\n        configureConsumer(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createExchange", "code": "    @Override\n    public MailExchange createExchange(ExchangePattern pattern) {\n        return new MailExchange(getContext(), pattern, getBinding());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createExchange", "code": "    public MailExchange createExchange(Message message) {\n        return new MailExchange(getContext(), getExchangePattern(), getBinding(), message);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getBinding", "code": "    public MailBinding getBinding() {\n        if (binding == null) {\n            binding = new MailBinding();\n        }\n        return binding;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setBinding", "code": "    public void setBinding(MailBinding binding) {\n        this.binding = binding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConfiguration", "code": "    public MailConfiguration getConfiguration() {\n        return configuration;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "MailEndpoint", "code": "    public MailEndpoint(String uri, MailComponent component, MailConfiguration configuration) {\n        super(uri, component);\n        this.configuration = configuration;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.3-4817", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/BSHType.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.BSHType", "code": "class BSHType extends SimpleNode \n\timplements BshClassManager.Listener\n{\n\t/**\n\t\tbaseType is used during evaluation of full type and retained for the\n\t\tcase where we are an array type.\n\t\tIn the case where we are not an array this will be the same as type.\n\t*/\n\tprivate Class baseType;\n\t/** \n\t\tIf we are an array type this will be non zero and indicate the \n\t\tdimensionality of the array.  e.g. 2 for String[][];\n\t*/\n    private int arrayDims;\n\n\t/** \n\t\tInternal cache of the type.  Cleared on classloader change.\n\t*/\n    private Class type;\n\n\tString descriptor;\n\n    BSHType(int id) { \n\t\tsuper(id); \n\t}\n\n\t/**\n\t\tUsed by the grammar to indicate dimensions of array types \n\t\tduring parsing.\n\t*/\n    public void addArrayDimension() { \n\t\tarrayDims++; \n\t}\n\n\tSimpleNode getTypeNode() {\n        return (SimpleNode)jjtGetChild(0);\n\t}\n\n    /**\n\t\t Returns a class descriptor for this type.\n\t\t If the type is an ambiguous name (object type) evaluation is \n\t\t attempted through the namespace in order to resolve imports.\n\t\t If it is not found and the name is non-compound we assume the default\n\t\t package for the name.\n\t*/\n    public String getTypeDescriptor( \n\t\tCallStack callstack, Interpreter interpreter, String defaultPackage ) \n    {\n        // return cached type if available\n\t\tif ( descriptor != null )\n\t\t\treturn descriptor;\n\n\t\tString descriptor;\n        //  first node will either be PrimitiveType or AmbiguousName\n        SimpleNode node = getTypeNode();\n        if ( node instanceof BSHPrimitiveType )\n            descriptor = getTypeDescriptor( ((BSHPrimitiveType)node).type );\n        else \n\t\t{\n            String clasName = ((BSHAmbiguousName)node).text;\n\t\t\tBshClassManager bcm = interpreter.getClassManager();\n\t\t\t// Note: incorrect here - we are using the hack in bsh class\n\t\t\t// manager that allows lookup by base name.  We need to eliminate\n\t\t\t// this limitation by working through imports.  See notes in class\n\t\t\t// manager.\n\t\t\tString definingClass = bcm.getClassBeingDefined( clasName );\n\n            Class clas = null;\n\t\t\tif ( definingClass == null )\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tclas = ((BSHAmbiguousName)node).toClass( \n\t\t\t\t\t\tcallstack, interpreter );\n\t\t\t\t} catch ( EvalError e ) {\n\t\t\t\t\t//throw new InterpreterError(\"unable to resolve type: \"+e);\n\t\t\t\t\t// ignore and try default package\n\t\t\t\t\t//System.out.println(\"BSHType: \"+node+\" class not found\");\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tclasName = definingClass;\n\n\t\t\tif ( clas != null )\n\t\t\t{\n\t\t\t\t//System.out.println(\"found clas: \"+clas);\n            \tdescriptor = getTypeDescriptor( clas );\n\t\t\t}else\n\t\t\t{\n\t\t\t\tif ( defaultPackage == null || Name.isCompound( clasName ) )\n            \t\tdescriptor = \"L\" + clasName.replace('.','/') + \";\";\n\t\t\t\telse\n            \t\tdescriptor = \n\t\t\t\t\t\t\"L\"+defaultPackage.replace('.','/')+\"/\"+clasName + \";\";\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0; i<arrayDims; i++)\n\t\t\tdescriptor = \"[\"+descriptor;\n\n\t\tthis.descriptor = descriptor;\n\t//System.out.println(\"BSHType: returning descriptor: \"+descriptor);\n        return descriptor;\n    }\n\n    public Class getType( CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError\n    {\n        // return cached type if available\n\t\tif ( type != null )\n\t\t\treturn type;\n\n        //  first node will either be PrimitiveType or AmbiguousName\n        SimpleNode node = getTypeNode();\n        if ( node instanceof BSHPrimitiveType )\n            baseType = ((BSHPrimitiveType)node).getType();\n        else \n            baseType = ((BSHAmbiguousName)node).toClass( \n\t\t\t\tcallstack, interpreter );\n\n        if ( arrayDims > 0 ) {\n            try {\n                // Get the type by constructing a prototype array with\n\t\t\t\t// arbitrary (zero) length in each dimension.\n                int[] dims = new int[arrayDims]; // int array default zeros\n                Object obj = Array.newInstance(baseType, dims);\n                type = obj.getClass(); \n            } catch(Exception e) {\n                throw new EvalError(\"Couldn't construct array type\", \n\t\t\t\t\tthis, callstack );\n            }\n        } else\n            type = baseType;\n\n\t\t// hack... sticking to first interpreter that resolves this\n\t\t// see comments on type instance variable\n\t\tinterpreter.getClassManager().addListener(this);\n\n        return type;\n    }\n\n\t/**\n\t\tbaseType is used during evaluation of full type and retained for the\n\t\tcase where we are an array type.\n\t\tIn the case where we are not an array this will be the same as type.\n\t*/\n\tpublic Class getBaseType() {\n\t\treturn baseType;\n\t}\n\t/** \n\t\tIf we are an array type this will be non zero and indicate the \n\t\tdimensionality of the array.  e.g. 2 for String[][];\n\t*/\n\tpublic int getArrayDims() {\n\t\treturn arrayDims;\n\t}\n\n\tpublic void classLoaderChanged() {\n\t\ttype = null;\n\t\tbaseType = null;\n\t}\n\n\tpublic static String getTypeDescriptor( Class clas ) \n\t{\n\t\tif ( clas == Boolean.TYPE ) return \"Z\";\n\t\tif ( clas == Character.TYPE ) return \"C\"; \n\t\tif ( clas == Byte.TYPE ) return \"B\";\n\t\tif ( clas == Short.TYPE ) return \"S\";\n\t\tif ( clas == Integer.TYPE ) return \"I\";\n\t\tif ( clas == Long.TYPE ) return \"J\";\n\t\tif ( clas == Float.TYPE ) return \"F\";\n\t\tif ( clas == Double.TYPE ) return \"D\";\n\t\tif ( clas == Void.TYPE ) return \"V\";\n\t// Is getName() ok?  test with 1.1\n\t\tString name = clas.getName().replace('.','/');\n\n\t\tif ( name.startsWith(\"[\") || name.endsWith(\";\") )\n\t\t\treturn name;\n\t\telse\n\t\t\treturn \"L\"+ name.replace('.','/') +\";\";", "functions": [{"function_name": "addArrayDimension", "code": "    public void addArrayDimension() { \n\t\tarrayDims++; ", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getTypeNode", "code": "\tSimpleNode getTypeNode() {\n        return (SimpleNode)jjtGetChild(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTypeDescriptor", "code": "    public String getTypeDescriptor( \n\t\tCallStack callstack, Interpreter interpreter, String defaultPackage ) \n    {\n        // return cached type if available\n\t\tif ( descriptor != null )\n\t\t\treturn descriptor;\n\n\t\tString descriptor;\n        //  first node will either be PrimitiveType or AmbiguousName\n        SimpleNode node = getTypeNode();\n        if ( node instanceof BSHPrimitiveType )\n            descriptor = getTypeDescriptor( ((BSHPrimitiveType)node).type );\n        else \n\t\t{\n            String clasName = ((BSHAmbiguousName)node).text;\n\t\t\tBshClassManager bcm = interpreter.getClassManager();\n\t\t\t// Note: incorrect here - we are using the hack in bsh class\n\t\t\t// manager that allows lookup by base name.  We need to eliminate\n\t\t\t// this limitation by working through imports.  See notes in class\n\t\t\t// manager.\n\t\t\tString definingClass = bcm.getClassBeingDefined( clasName );\n\n            Class clas = null;\n\t\t\tif ( definingClass == null )\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tclas = ((BSHAmbiguousName)node).toClass( \n\t\t\t\t\t\tcallstack, interpreter );\n\t\t\t\t} catch ( EvalError e ) {\n\t\t\t\t\t//throw new InterpreterError(\"unable to resolve type: \"+e);\n\t\t\t\t\t// ignore and try default package\n\t\t\t\t\t//System.out.println(\"BSHType: \"+node+\" class not found\");\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tclasName = definingClass;\n\n\t\t\tif ( clas != null )\n\t\t\t{\n\t\t\t\t//System.out.println(\"found clas: \"+clas);\n            \tdescriptor = getTypeDescriptor( clas );\n\t\t\t}else\n\t\t\t{\n\t\t\t\tif ( defaultPackage == null || Name.isCompound( clasName ) )\n            \t\tdescriptor = \"L\" + clasName.replace('.','/') + \";\";\n\t\t\t\telse\n            \t\tdescriptor = \n\t\t\t\t\t\t\"L\"+defaultPackage.replace('.','/')+\"/\"+clasName + \";\";\n\t\t\t}\n\t\t}\n\n\t\tfor(int i=0; i<arrayDims; i++)\n\t\t\tdescriptor = \"[\"+descriptor;\n\n\t\tthis.descriptor = descriptor;\n\t//System.out.println(\"BSHType: returning descriptor: \"+descriptor);\n        return descriptor;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CATCH", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [6, 13], [6, 14], [2, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [4, 23], [14, 24], [15, 25], [2, 26], [16, 27], [17, 28], [22, 29], [25, 30], [16, 31], [27, 32], [17, 33], [17, 34], [28, 35], [18, 36], [19, 37], [20, 38], [31, 39], [16, 40], [34, 41], [31, 42], [31, 43], [39, 44], [39, 45], [40, 46], [34, 47], [42, 48], [43, 49], [45, 50], [48, 51], [48, 52], [49, 53], [49, 54], [52, 55], [54, 56], [54, 57], [55, 58], [55, 59], [56, 60], [56, 61], [59, 62], [59, 63], [62, 64], [62, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 6], [14, 6], [15, 2], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 4], [24, 14], [25, 15], [26, 2], [27, 16], [28, 17], [29, 22], [30, 25], [31, 16], [32, 27], [33, 17], [34, 17], [35, 28], [36, 18], [37, 19], [38, 20], [39, 31], [40, 16], [41, 34], [42, 31], [43, 31], [44, 39], [45, 39], [46, 40], [47, 34], [48, 42], [49, 43], [50, 45], [51, 48], [52, 48], [53, 49], [54, 49], [55, 52], [56, 54], [57, 54], [58, 55], [59, 55], [60, 56], [61, 56], [62, 59], [63, 59], [64, 62], [65, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "getType", "code": "    public Class getType( CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError\n    {\n        // return cached type if available\n\t\tif ( type != null )\n\t\t\treturn type;\n\n        //  first node will either be PrimitiveType or AmbiguousName\n        SimpleNode node = getTypeNode();\n        if ( node instanceof BSHPrimitiveType )\n            baseType = ((BSHPrimitiveType)node).getType();\n        else \n            baseType = ((BSHAmbiguousName)node).toClass( \n\t\t\t\tcallstack, interpreter );\n\n        if ( arrayDims > 0 ) {\n            try {\n                // Get the type by constructing a prototype array with\n\t\t\t\t// arbitrary (zero) length in each dimension.\n                int[] dims = new int[arrayDims]; // int array default zeros\n                Object obj = Array.newInstance(baseType, dims);\n                type = obj.getClass(); \n            } catch(Exception e) {\n                throw new EvalError(\"Couldn't construct array type\", \n\t\t\t\t\tthis, callstack );\n            }\n        } else\n            type = baseType;\n\n\t\t// hack... sticking to first interpreter that resolves this\n\t\t// see comments on type instance variable\n\t\tinterpreter.getClassManager().addListener(this);\n\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "TRY", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [5, 11], [5, 12], [8, 13], [2, 14], [2, 15], [9, 16], [3, 17], [3, 18], [4, 19], [12, 20], [15, 21], [15, 22], [15, 23], [21, 24], [15, 25], [24, 26], [25, 27], [22, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 5], [12, 5], [13, 8], [14, 2], [15, 2], [16, 9], [17, 3], [18, 3], [19, 4], [20, 12], [21, 15], [22, 15], [23, 15], [24, 21], [25, 15], [26, 24], [27, 25], [28, 22], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getBaseType", "code": "\tpublic Class getBaseType() {\n\t\treturn baseType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getArrayDims", "code": "\tpublic int getArrayDims() {\n\t\treturn arrayDims;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "classLoaderChanged", "code": "\tpublic void classLoaderChanged() {\n\t\ttype = null;\n\t\tbaseType = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getTypeDescriptor", "code": "\tpublic static String getTypeDescriptor( Class clas ) \n\t{\n\t\tif ( clas == Boolean.TYPE ) return \"Z\";\n\t\tif ( clas == Character.TYPE ) return \"C\"; \n\t\tif ( clas == Byte.TYPE ) return \"B\";\n\t\tif ( clas == Short.TYPE ) return \"S\";\n\t\tif ( clas == Integer.TYPE ) return \"I\";\n\t\tif ( clas == Long.TYPE ) return \"J\";\n\t\tif ( clas == Float.TYPE ) return \"F\";\n\t\tif ( clas == Double.TYPE ) return \"D\";\n\t\tif ( clas == Void.TYPE ) return \"V\";\n\t// Is getName() ok?  test with 1.1\n\t\tString name = clas.getName().replace('.','/');\n\n\t\tif ( name.startsWith(\"[\") || name.endsWith(\";\") )\n\t\t\treturn name;\n\t\telse\n\t\t\treturn \"L\"+ name.replace('.','/') +\";\";", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [1, 14], [1, 15], [3, 16], [3, 17], [4, 18], [4, 19], [5, 20], [5, 21], [6, 22], [6, 23], [7, 24], [7, 25], [8, 26], [8, 27], [9, 28], [9, 29], [10, 30], [10, 31], [11, 32], [11, 33], [13, 34], [15, 35], [15, 36], [2, 37], [16, 38], [18, 39], [20, 40], [22, 41], [24, 42], [26, 43], [28, 44], [30, 45], [32, 46], [34, 47], [34, 48], [35, 49], [36, 50], [37, 51], [48, 52], [48, 53], [51, 54], [51, 55], [52, 56], [52, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 1], [15, 1], [16, 3], [17, 3], [18, 4], [19, 4], [20, 5], [21, 5], [22, 6], [23, 6], [24, 7], [25, 7], [26, 8], [27, 8], [28, 9], [29, 9], [30, 10], [31, 10], [32, 11], [33, 11], [34, 13], [35, 15], [36, 15], [37, 2], [38, 16], [39, 18], [40, 20], [41, 22], [42, 24], [43, 26], [44, 28], [45, 30], [46, 32], [47, 34], [48, 34], [49, 35], [50, 36], [51, 37], [52, 48], [53, 48], [54, 51], [55, 51], [56, 52], [57, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "BSHType", "code": "    BSHType(int id) { \n\t\tsuper(id); ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8470", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/DOMBuilder.java", "language": "java", "name": "org.apache.xml.utils.DOMBuilder", "code": "public class DOMBuilder\n        implements ContentHandler, LexicalHandler\n{\n\n  /** Root document          */\n  public Document m_doc;\n\n  /** Current node           */\n  protected Node m_currentNode = null;\n  \n  /** The root node          */\n  protected Node m_root = null;\n  \n  /** The next sibling node  */\n  protected Node m_nextSibling = null;\n\n  /** First node of document fragment or null if not a DocumentFragment     */\n  public DocumentFragment m_docFrag = null;\n\n  /** Vector of element nodes          */\n  protected Stack m_elemStack = new Stack();\n\n  /**\n   * DOMBuilder instance constructor... it will add the DOM nodes\n   * to the document fragment.\n   *\n   * @param doc Root document\n   * @param node Current node\n   */\n  public DOMBuilder(Document doc, Node node)\n  {\n    m_doc = doc;\n    m_currentNode = m_root = node;\n    \n    if (node instanceof Element)\n      m_elemStack.push(node);\n  }\n\n  /**\n   * DOMBuilder instance constructor... it will add the DOM nodes\n   * to the document fragment.\n   *\n   * @param doc Root document\n   * @param docFrag Document fragment\n   */\n  public DOMBuilder(Document doc, DocumentFragment docFrag)\n  {\n    m_doc = doc;\n    m_docFrag = docFrag;\n  }\n\n  /**\n   * DOMBuilder instance constructor... it will add the DOM nodes\n   * to the document.\n   *\n   * @param doc Root document\n   */\n  public DOMBuilder(Document doc)\n  {\n    m_doc = doc;\n  }\n\n  /**\n   * Get the root document or DocumentFragment of the DOM being created.\n   *\n   * @return The root document or document fragment if not null\n   */\n  public Node getRootDocument()\n  {\n    return (null != m_docFrag) ? (Node) m_docFrag : (Node) m_doc;\n  }\n  \n  /**\n   * Get the root node of the DOM tree.\n   */\n  public Node getRootNode()\n  {\n    return m_root;\n  }\n  \n  /**\n   * Get the node currently being processed.\n   *\n   * @return the current node being processed\n   */\n  public Node getCurrentNode()\n  {\n    return m_currentNode;\n  }\n  \n  /**\n   * Set the next sibling node, which is where the result nodes \n   * should be inserted before.\n   * \n   * @param nextSibling the next sibling node.\n   */\n  public void setNextSibling(Node nextSibling)\n  {\n    m_nextSibling = nextSibling;\n  }\n  \n  /**\n   * Return the next sibling node.\n   * \n   * @return the next sibling node.\n   */\n  public Node getNextSibling()\n  {\n    return m_nextSibling;\n  }\n\n  /**\n   * Return null since there is no Writer for this class.\n   *\n   * @return null\n   */\n  public java.io.Writer getWriter()\n  {\n    return null;\n  }\n\n  /**\n   * Append a node to the current container.\n   *\n   * @param newNode New node to append\n   */\n  protected void append(Node newNode) throws org.xml.sax.SAXException\n  {\n\n    Node currentNode = m_currentNode;\n\n    if (null != currentNode)\n    {\n      if (currentNode == m_root && m_nextSibling != null)\n        currentNode.insertBefore(newNode, m_nextSibling);\n      else\n        currentNode.appendChild(newNode);\n\n    }\n    else if (null != m_docFrag)\n    {\n      if (m_nextSibling != null)\n        m_docFrag.insertBefore(newNode, m_nextSibling);\n      else\n        m_docFrag.appendChild(newNode);\n    }\n    else\n    {\n      boolean ok = true;\n      short type = newNode.getNodeType();\n\n      if (type == Node.TEXT_NODE)\n      {\n        String data = newNode.getNodeValue();\n\n        if ((null != data) && (data.trim().length() > 0))\n        {\n          throw new org.xml.sax.SAXException(\n            XMLMessages.createXMLMessage());\n        }\n\n        ok = false;\n      }\n      else if (type == Node.ELEMENT_NODE)\n      {\n        if (m_doc.getDocumentElement() != null)\n        {\n          ok = false;\n          \n          throw new org.xml.sax.SAXException(\n            XMLMessages.createXMLMessage());\n        }\n      }\n\n      if (ok)\n      {\n        if (m_nextSibling != null)\n          m_doc.insertBefore(newNode, m_nextSibling);\n        else\n          m_doc.appendChild(newNode);\n      }\n    }\n  }\n\n  /**\n   * Receive an object for locating the origin of SAX document events.\n   *\n   * <p>SAX parsers are strongly encouraged (though not absolutely\n   * required) to supply a locator: if it does so, it must supply\n   * the locator to the application by invoking this method before\n   * invoking any of the other methods in the ContentHandler\n   * interface.</p>\n   *\n   * <p>The locator allows the application to determine the end\n   * position of any document-related event, even if the parser is\n   * not reporting an error.  Typically, the application will\n   * use this information for reporting its own errors (such as\n   * character content that does not match an application's\n   * business rules).  The information returned by the locator\n   * is probably not sufficient for use with a search engine.</p>\n   *\n   * <p>Note that the locator will return correct information only\n   * during the invocation of the events in this interface.  The\n   * application should not attempt to use it at any other time.</p>\n   *\n   * @param locator An object that can return the location of\n   *                any SAX document event.\n   * @see org.xml.sax.Locator\n   */\n  public void setDocumentLocator(Locator locator)\n  {\n\n  }\n\n  /**\n   * Receive notification of the beginning of a document.\n   *\n   * <p>The SAX parser will invoke this method only once, before any\n   * other methods in this interface or in DTDHandler (except for\n   * setDocumentLocator).</p>\n   */\n  public void startDocument() throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of the end of a document.\n   *\n   * <p>The SAX parser will invoke this method only once, and it will\n   * be the last method invoked during the parse.  The parser shall\n   * not invoke this method until it has either abandoned parsing\n   * (because of an unrecoverable error) or reached the end of\n   * input.</p>\n   */\n  public void endDocument() throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of the beginning of an element.\n   *\n   * <p>The Parser will invoke this method at the beginning of every\n   * element in the XML document; there will be a corresponding\n   * endElement() event for every startElement() event (even when the\n   * element is empty). All of the element's content will be\n   * reported, in order, before the corresponding endElement()\n   * event.</p>\n   *\n   * <p>If the element name has a namespace prefix, the prefix will\n   * still be attached.  Note that the attribute list provided will\n   * contain only attributes with explicit values (specified or\n   * defaulted): #IMPLIED attributes will be omitted.</p>\n   *\n   *\n   * @param ns The namespace of the node\n   * @param localName The local part of the qualified name\n   * @param name The element name.\n   * @param atts The attributes attached to the element, if any.\n   * @see #endElement\n   * @see org.xml.sax.Attributes\n   */\n  public void startElement(\n          String ns, String localName, String name, Attributes atts)\n            throws org.xml.sax.SAXException\n  {\n\n    Element elem;\n\n    if ((null == ns) || (ns.length() == 0))\n      elem = m_doc.createElementNS(null,name);\n    else\n      elem = m_doc.createElementNS(ns, name);\n\n    append(elem);\n\n    try\n    {\n      int nAtts = atts.getLength();\n\n      if (0 != nAtts)\n      {\n        for (int i = 0; i < nAtts; i++)\n        {\n\n          if (atts.getType(i).equalsIgnoreCase(\"ID\"))\n            setIDAttribute(atts.getValue(i), elem);\n\n          String attrNS = atts.getURI(i);\n\n          if(\"\".equals(attrNS)){\n\n          String attrQName = atts.getQName(i);\n\t\t  }\n          if (attrQName.startsWith(\"xmlns:\") || attrQName.equals(\"xmlns\")) {\n          }\n\n          elem.setAttributeNS(attrNS,attrQName, atts.getValue(i));\n        }\n      }\n\n\n      m_elemStack.push(elem);\n\n      m_currentNode = elem;\n\n    }\n    catch(java.lang.Exception de)\n    {\n      throw new org.xml.sax.SAXException(de);\n    }\n\n  }\n\n  /**\n\n\n\n   * Receive notification of the end of an element.\n   *\n   * <p>The SAX parser will invoke this method at the end of every\n   * element in the XML document; there will be a corresponding\n   * startElement() event for every endElement() event (even when the\n   * element is empty).</p>\n   *\n   * <p>If the element name has a namespace prefix, the prefix will\n   * still be attached to the name.</p>\n   *\n   *\n   * @param ns the namespace of the element\n   * @param localName The local part of the qualified name of the element\n   * @param name The element name\n   */\n  public void endElement(String ns, String localName, String name)\n          throws org.xml.sax.SAXException\n  {\n    m_elemStack.pop();\n    m_currentNode = m_elemStack.isEmpty() ? null : (Node)m_elemStack.peek();\n  }\n\n  /**\n   * Set an ID string to node association in the ID table.\n   *\n   * @param id The ID string.\n   * @param elem The associated ID.\n   */\n  public void setIDAttribute(String id, Element elem)\n  {\n\n  }\n\n  /**\n   * Receive notification of character data.\n   *\n   * <p>The Parser will call this method to report each chunk of\n   * character data.  SAX parsers may return all contiguous character\n   * data in a single chunk, or they may split it into several\n   * chunks; however, all of the characters in any single event\n   * must come from the same external entity, so that the Locator\n   * provides useful information.</p>\n   *\n   * <p>The application must not attempt to read from the array\n   * outside of the specified range.</p>\n   *\n   * <p>Note that some parsers will report whitespace using the\n   * ignorableWhitespace() method rather than this one (validating\n   * parsers must do so).</p>\n   *\n   * @param ch The characters from the XML document.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   * @see #ignorableWhitespace\n   * @see org.xml.sax.Locator\n   */\n  public void characters(char ch[], int start, int length) throws org.xml.sax.SAXException\n  {\n    if(isOutsideDocElem()\n       && org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(ch, start, length))\n\n    if (m_inCData)\n    {\n      cdata(ch, start, length);\n\n      return;\n    }\n\n    String s = new String(ch, start, length);\n    Node childNode;\n    childNode =  m_currentNode != null ? m_currentNode.getLastChild(): null;\n    if( childNode != null && childNode.getNodeType() == Node.TEXT_NODE ){\n       ((Text)childNode).appendData(s);\n    }\n    else{\n       Text text = m_doc.createTextNode(s);\n       append(text);\n    }\n  }\n\n  /**\n   * If available, when the disable-output-escaping attribute is used,\n   * output raw text without escaping.  A PI will be inserted in front\n   * of the node with the name \"lotusxsl-next-is-raw\" and a value of\n   * \"formatter-to-dom\".\n   *\n   * @param ch Array containing the characters\n   * @param start Index to start of characters in the array\n   * @param length Number of characters in the array\n   */\n  public void charactersRaw(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n    if(isOutsideDocElem()\n       && org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(ch, start, length)){}\n\n\n    String s = new String(ch, start, length);\n\n    append(m_doc.createProcessingInstruction(\"xslt-next-is-raw\",\n                                             \"formatter-to-dom\"));\n    append(m_doc.createTextNode(s));\n  }\n\n  /**\n   * Report the beginning of an entity.\n   *\n   * The start and end of the document entity are not reported.\n   * The start and end of the external DTD subset are reported\n   * using the pseudo-name \"[dtd]\".  All other events must be\n   * properly nested within start/end entity events.\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @see #endEntity\n   * @see org.xml.sax.ext.DeclHandler#internalEntityDecl\n   * @see org.xml.sax.ext.DeclHandler#externalEntityDecl\n   */\n  public void startEntity(String name) throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Report the end of an entity.\n   *\n   * @param name The name of the entity that is ending.\n   * @see #startEntity\n   */\n  public void endEntity(String name) throws org.xml.sax.SAXException{}\n\n  /**\n   * Receive notivication of a entityReference.\n   *\n   * @param name name of the entity reference\n   */\n  public void entityReference(String name) throws org.xml.sax.SAXException\n  {\n    append(m_doc.createEntityReference(name));\n  }\n\n  /**\n   * Receive notification of ignorable whitespace in element content.\n   *\n   * <p>Validating Parsers must use this method to report each chunk\n   * of ignorable whitespace (see the W3C XML 1.0 recommendation,\n   * section 2.10): non-validating parsers may also use this method\n   * if they are capable of parsing and using content models.</p>\n   *\n   * <p>SAX parsers may return all contiguous whitespace in a single\n   * chunk, or they may split it into several chunks; however, all of\n   * the characters in any single event must come from the same\n   * external entity, so that the Locator provides useful\n   * information.</p>\n   *\n   * <p>The application must not attempt to read from the array\n   * outside of the specified range.</p>\n   *\n   * @param ch The characters from the XML document.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   * @see #characters\n   */\n  public void ignorableWhitespace(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n    if(isOutsideDocElem()){}\n\n    String s = new String(ch, start, length);\n\n    append(m_doc.createTextNode(s));\n  }\n\n  /**\n   * Tell if the current node is outside the document element.\n   *\n   * @return true if the current node is outside the document element.\n   */\n   private boolean isOutsideDocElem()\n   {\n      return (null == m_docFrag) && m_elemStack.size() == 0 && (null == m_currentNode || m_currentNode.getNodeType() == Node.DOCUMENT_NODE);\n   }\n\n  /**\n   * Receive notification of a processing instruction.\n   *\n   * <p>The Parser will invoke this method once for each processing\n   * instruction found: note that processing instructions may occur\n   * before or after the main document element.</p>\n   *\n   * <p>A SAX parser should never report an XML declaration (XML 1.0,\n   * section 2.8) or a text declaration (XML 1.0, section 4.3.1)\n   * using this method.</p>\n   *\n   * @param target The processing instruction target.\n   * @param data The processing instruction data, or null if\n   *        none was supplied.\n   */\n  public void processingInstruction(String target, String data)\n          throws org.xml.sax.SAXException\n  {\n    append(m_doc.createProcessingInstruction(target, data));\n  }\n\n  /**\n   * Report an XML comment anywhere in the document.\n   *\n   * This callback will be used for comments inside or outside the\n   * document element, including comments in the external DTD\n   * subset (if read).\n   *\n   * @param ch An array holding the characters in the comment.\n   * @param start The starting position in the array.\n   * @param length The number of characters to use from the array.\n   */\n  public void comment(char ch[], int start, int length) throws org.xml.sax.SAXException\n  {\n    append(m_doc.createComment(new String(ch, start, length)));\n  }\n\n  /** Flag indicating that we are processing a CData section          */\n  protected boolean m_inCData = false;\n\n  /**\n   * Report the start of a CDATA section.\n   *\n   * @see #endCDATA\n   */\n  public void startCDATA() throws org.xml.sax.SAXException\n  {\n    m_inCData = true;\n    append(m_doc.createCDATASection(\"\"));\n  }\n\n  /**\n   * Report the end of a CDATA section.\n   *\n   * @see #startCDATA\n   */\n  public void endCDATA() throws org.xml.sax.SAXException\n  {\n    m_inCData = false;\n  }\n\n  /**\n   * Receive notification of cdata.\n   *\n   * <p>The Parser will call this method to report each chunk of\n   * character data.  SAX parsers may return all contiguous character\n   * data in a single chunk, or they may split it into several\n   * chunks; however, all of the characters in any single event\n   * must come from the same external entity, so that the Locator\n   * provides useful information.</p>\n   *\n   * <p>The application must not attempt to read from the array\n   * outside of the specified range.</p>\n   *\n   * <p>Note that some parsers will report whitespace using the\n   * ignorableWhitespace() method rather than this one (validating\n   * parsers must do so).</p>\n   *\n   * @param ch The characters from the XML document.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   * @see #ignorableWhitespace\n   * @see org.xml.sax.Locator\n   */\n  public void cdata(char ch[], int start, int length) throws org.xml.sax.SAXException\n  {\n    if(isOutsideDocElem()\n       && org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(ch, start, length)){}\n\n    String s = new String(ch, start, length);\n\n    CDATASection section  =(CDATASection) m_currentNode.getLastChild();\n    section.appendData(s);\n  }\n\n  /**\n   * Report the start of DTD declarations, if any.\n   *\n   * Any declarations are assumed to be in the internal subset\n   * unless otherwise indicated.\n   *\n   * @param name The document type name.\n   * @param publicId The declared public identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @param systemId The declared system identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @see #endDTD\n   * @see #startEntity\n   */\n  public void startDTD(String name, String publicId, String systemId)\n          throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Report the end of DTD declarations.\n   *\n   * @see #startDTD\n   */\n  public void endDTD() throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Begin the scope of a prefix-URI Namespace mapping.\n   *\n   * <p>The information from this event is not necessary for\n   * normal Namespace processing: the SAX XML reader will\n   * automatically replace prefixes for element and attribute\n   * feature is true (the default).</p>\n   *\n   * <p>There are cases, however, when applications need to\n   * use prefixes in character data or in attribute values,\n   * where they cannot safely be expanded automatically; the\n   * start/endPrefixMapping event supplies the information\n   * to the application to expand prefixes in those contexts\n   * itself, if necessary.</p>\n   *\n   * <p>Note that start/endPrefixMapping events are not\n   * guaranteed to be properly nested relative to each-other:\n   * all startPrefixMapping events will occur before the\n   * corresponding startElement event, and all endPrefixMapping\n   * events will occur after the corresponding endElement event,\n   * but their order is not guaranteed.</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @param uri The Namespace URI the prefix is mapped to.\n   * @see #endPrefixMapping\n   * @see #startElement\n   */\n  public void startPrefixMapping(String prefix, String uri)\n          throws org.xml.sax.SAXException\n  {\n\n    /*\n    if((null != m_currentNode)\n       && (m_currentNode.getNodeType() == Node.ELEMENT_NODE))\n    {\n      String qname;\n      if(((null != prefix) && (prefix.length() == 0))\n         || (null == prefix))\n        qname = \"xmlns\";\n      else\n        qname = \"xmlns:\"+prefix;\n\n      Element elem = (Element)m_currentNode;\n      if(val == null)\n      {\n                            qname, uri);\n      }\n    }\n    */\n  }\n\n  /**\n   * End the scope of a prefix-URI mapping.\n   *\n   * <p>See startPrefixMapping for details.  This event will\n   * always occur after the corresponding endElement event,\n   * but the order of endPrefixMapping events is not otherwise\n   * guaranteed.</p>\n   *\n   * @param prefix The prefix that was being mapping.\n   * @see #startPrefixMapping\n   * @see #endElement\n   */\n  public void endPrefixMapping(String prefix) throws org.xml.sax.SAXException{}\n\n  /**\n   * Receive notification of a skipped entity.\n   *\n   * <p>The Parser will invoke this method once for each entity\n   * skipped.  Non-validating processors may skip entities if they\n   * have not seen the declarations (because, for example, the\n   * entity was declared in an external DTD subset).  All processors\n   * may skip external entities, depending on the values of the\n   * properties.</p>\n   *\n   * @param name The name of the skipped entity.  If it is a\n   *        parameter entity, the name will begin with '%'.\n   */\n  public void skippedEntity(String name) throws org.xml.sax.SAXException{}", "functions": [{"function_name": "getRootDocument", "code": "  public Node getRootDocument()\n  {\n    return (null != m_docFrag) ? (Node) m_docFrag : (Node) m_doc;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRootNode", "code": "  public Node getRootNode()\n  {\n    return m_root;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCurrentNode", "code": "  public Node getCurrentNode()\n  {\n    return m_currentNode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNextSibling", "code": "  public void setNextSibling(Node nextSibling)\n  {\n    m_nextSibling = nextSibling;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNextSibling", "code": "  public Node getNextSibling()\n  {\n    return m_nextSibling;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getWriter", "code": "  public java.io.Writer getWriter()\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "append", "code": "  protected void append(Node newNode) throws org.xml.sax.SAXException\n  {\n\n    Node currentNode = m_currentNode;\n\n    if (null != currentNode)\n    {\n      if (currentNode == m_root && m_nextSibling != null)\n        currentNode.insertBefore(newNode, m_nextSibling);\n      else\n        currentNode.appendChild(newNode);\n\n    }\n    else if (null != m_docFrag)\n    {\n      if (m_nextSibling != null)\n        m_docFrag.insertBefore(newNode, m_nextSibling);\n      else\n        m_docFrag.appendChild(newNode);\n    }\n    else\n    {\n      boolean ok = true;\n      short type = newNode.getNodeType();\n\n      if (type == Node.TEXT_NODE)\n      {\n        String data = newNode.getNodeValue();\n\n        if ((null != data) && (data.trim().length() > 0))\n        {\n          throw new org.xml.sax.SAXException(\n            XMLMessages.createXMLMessage());\n        }\n\n        ok = false;\n      }\n      else if (type == Node.ELEMENT_NODE)\n      {\n        if (m_doc.getDocumentElement() != null)\n        {\n          ok = false;\n          \n          throw new org.xml.sax.SAXException(\n            XMLMessages.createXMLMessage());\n        }\n      }\n\n      if (ok)\n      {\n        if (m_nextSibling != null)\n          m_doc.insertBefore(newNode, m_nextSibling);\n        else\n          m_doc.appendChild(newNode);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [6, 14], [7, 15], [10, 16], [10, 17], [13, 18], [7, 19], [7, 20], [15, 21], [15, 22], [9, 23], [16, 24], [10, 25], [10, 26], [11, 27], [12, 28], [13, 29], [13, 30], [18, 31], [21, 32], [23, 33], [16, 34], [10, 35], [25, 36], [23, 37], [23, 38], [33, 39], [34, 40], [35, 41], [25, 42], [36, 43], [36, 44], [26, 45], [34, 46], [40, 47], [40, 48], [42, 49], [43, 50], [43, 51], [44, 52], [46, 53], [34, 54], [49, 55], [51, 56], [53, 57], [54, 58], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 4], [10, 4], [11, 4], [12, 4], [13, 4], [14, 6], [15, 7], [16, 10], [17, 10], [18, 13], [19, 7], [20, 7], [21, 15], [22, 15], [23, 9], [24, 16], [25, 10], [26, 10], [27, 11], [28, 12], [29, 13], [30, 13], [31, 18], [32, 21], [33, 23], [34, 16], [35, 10], [36, 25], [37, 23], [38, 23], [39, 33], [40, 34], [41, 35], [42, 25], [43, 36], [44, 36], [45, 26], [46, 34], [47, 40], [48, 40], [49, 42], [50, 43], [51, 43], [52, 44], [53, 46], [54, 34], [55, 49], [56, 51], [57, 53], [58, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startDocument", "code": "  public void startDocument() throws org.xml.sax.SAXException", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endDocument", "code": "  public void endDocument() throws org.xml.sax.SAXException", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "startElement", "code": "  public void startElement(\n          String ns, String localName, String name, Attributes atts)\n            throws org.xml.sax.SAXException\n  {\n\n    Element elem;\n\n    if ((null == ns) || (ns.length() == 0))\n      elem = m_doc.createElementNS(null,name);\n    else\n      elem = m_doc.createElementNS(ns, name);\n\n    append(elem);\n\n    try\n    {\n      int nAtts = atts.getLength();\n\n      if (0 != nAtts)\n      {\n        for (int i = 0; i < nAtts; i++)\n        {\n\n          if (atts.getType(i).equalsIgnoreCase(\"ID\"))\n            setIDAttribute(atts.getValue(i), elem);\n\n          String attrNS = atts.getURI(i);\n\n          if(\"\".equals(attrNS)){\n\n          String attrQName = atts.getQName(i);\n\t\t  }\n          if (attrQName.startsWith(\"xmlns:\") || attrQName.equals(\"xmlns\")) {\n          }\n\n          elem.setAttributeNS(attrNS,attrQName, atts.getValue(i));\n        }\n      }\n\n\n      m_elemStack.push(elem);\n\n      m_currentNode = elem;\n\n    }\n    catch(java.lang.Exception de)\n    {\n      throw new org.xml.sax.SAXException(de);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "CALL", "BINARY_OP", "THROW_RAISE", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [0, 11], [2, 12], [8, 13], [1, 14], [1, 15], [9, 16], [2, 17], [2, 18], [12, 19], [12, 20], [13, 21], [9, 22], [16, 23], [10, 24], [17, 25], [18, 26], [19, 27], [19, 28], [20, 29], [22, 30], [26, 31], [22, 32], [22, 33], [22, 34], [22, 35], [22, 36], [32, 37], [33, 38], [35, 39], [22, 40], [36, 41], [37, 42], [37, 43], [33, 44], [38, 45], [34, 46], [35, 47], [39, 48], [42, 49], [43, 50], [47, 51], [48, 52], [44, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 0], [12, 2], [13, 8], [14, 1], [15, 1], [16, 9], [17, 2], [18, 2], [19, 12], [20, 12], [21, 13], [22, 9], [23, 16], [24, 10], [25, 17], [26, 18], [27, 19], [28, 19], [29, 20], [30, 22], [31, 26], [32, 22], [33, 22], [34, 22], [35, 22], [36, 22], [37, 32], [38, 33], [39, 35], [40, 22], [41, 36], [42, 37], [43, 37], [44, 33], [45, 38], [46, 34], [47, 35], [48, 39], [49, 42], [50, 43], [51, 47], [52, 48], [53, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "endElement", "code": "  public void endElement(String ns, String localName, String name)\n          throws org.xml.sax.SAXException\n  {\n    m_elemStack.pop();\n    m_currentNode = m_elemStack.isEmpty() ? null : (Node)m_elemStack.peek();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [6, 7], [6, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 6], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setIDAttribute", "code": "  public void setIDAttribute(String id, Element elem)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "characters", "code": "  public void characters(char ch[], int start, int length) throws org.xml.sax.SAXException\n  {\n    if(isOutsideDocElem()\n       && org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(ch, start, length))\n\n    if (m_inCData)\n    {\n      cdata(ch, start, length);\n\n      return;\n    }\n\n    String s = new String(ch, start, length);\n    Node childNode;\n    childNode =  m_currentNode != null ? m_currentNode.getLastChild(): null;\n    if( childNode != null && childNode.getNodeType() == Node.TEXT_NODE ){\n       ((Text)childNode).appendData(s);\n    }\n    else{\n       Text text = m_doc.createTextNode(s);\n       append(text);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [4, 10], [4, 11], [1, 12], [8, 13], [8, 14], [9, 15], [3, 16], [11, 17], [11, 18], [1, 19], [13, 20], [14, 21], [15, 22], [15, 23], [15, 24], [10, 25], [12, 26], [24, 27], [10, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 4], [11, 4], [12, 1], [13, 8], [14, 8], [15, 9], [16, 3], [17, 11], [18, 11], [19, 1], [20, 13], [21, 14], [22, 15], [23, 15], [24, 15], [25, 10], [26, 12], [27, 24], [28, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "charactersRaw", "code": "  public void charactersRaw(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n    if(isOutsideDocElem()\n       && org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(ch, start, length)){}\n\n\n    String s = new String(ch, start, length);\n\n    append(m_doc.createProcessingInstruction(\"xslt-next-is-raw\",\n                                             \"formatter-to-dom\"));\n    append(m_doc.createTextNode(s));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [6, 9], [7, 10], [1, 11], [8, 12], [8, 13], [10, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 6], [10, 7], [11, 1], [12, 8], [13, 8], [14, 10], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "startEntity", "code": "  public void startEntity(String name) throws org.xml.sax.SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endEntity", "code": "  public void endEntity(String name) throws org.xml.sax.SAXException{}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "entityReference", "code": "  public void entityReference(String name) throws org.xml.sax.SAXException\n  {\n    append(m_doc.createEntityReference(name));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n    if(isOutsideDocElem()){}\n\n    String s = new String(ch, start, length);\n\n    append(m_doc.createTextNode(s));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [6, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 6], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isOutsideDocElem", "code": "   private boolean isOutsideDocElem()\n   {\n      return (null == m_docFrag) && m_elemStack.size() == 0 && (null == m_currentNode || m_currentNode.getNodeType() == Node.DOCUMENT_NODE);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [5, 9], [6, 10], [7, 11], [7, 12], [8, 13], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 5], [10, 6], [11, 7], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(String target, String data)\n          throws org.xml.sax.SAXException\n  {\n    append(m_doc.createProcessingInstruction(target, data));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "comment", "code": "  public void comment(char ch[], int start, int length) throws org.xml.sax.SAXException\n  {\n    append(m_doc.createComment(new String(ch, start, length)));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "startCDATA", "code": "  public void startCDATA() throws org.xml.sax.SAXException\n  {\n    m_inCData = true;\n    append(m_doc.createCDATASection(\"\"));", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endCDATA", "code": "  public void endCDATA() throws org.xml.sax.SAXException\n  {\n    m_inCData = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "cdata", "code": "  public void cdata(char ch[], int start, int length) throws org.xml.sax.SAXException\n  {\n    if(isOutsideDocElem()\n       && org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(ch, start, length)){}\n\n    String s = new String(ch, start, length);\n\n    CDATASection section  =(CDATASection) m_currentNode.getLastChild();\n    section.appendData(s);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [2, 9], [8, 10], [8, 11], [1, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 2], [10, 8], [11, 8], [12, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "startDTD", "code": "  public void startDTD(String name, String publicId, String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "endDTD", "code": "  public void endDTD() throws org.xml.sax.SAXException", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(String prefix, String uri)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(String prefix) throws org.xml.sax.SAXException{}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(String name) throws org.xml.sax.SAXException{}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DOMBuilder", "code": "  public DOMBuilder(Document doc, Node node)\n  {\n    m_doc = doc;\n    m_currentNode = m_root = node;\n    \n    if (node instanceof Element)\n      m_elemStack.push(node);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "DOMBuilder", "code": "  public DOMBuilder(Document doc, DocumentFragment docFrag)\n  {\n    m_doc = doc;\n    m_docFrag = docFrag;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DOMBuilder", "code": "  public DOMBuilder(Document doc)\n  {\n    m_doc = doc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.4-2533", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/ThroughputLogger.java", "language": "java", "name": "org.apache.camel.processor.ThroughputLogger", "code": "public class ThroughputLogger extends Logger {\n    private int groupSize = 100;\n    private long startTime;\n    private long groupStartTime;\n    private AtomicInteger receivedCounter = new AtomicInteger();\n    private NumberFormat numberFormat = NumberFormat.getNumberInstance();\n    private String action = \"Received\";\n    private String logMessage;\n\n    public ThroughputLogger() {\n    }\n\n    public ThroughputLogger(Log log) {\n        super(log);\n    }\n\n    public ThroughputLogger(Log log, LoggingLevel level) {\n        super(log, level);\n    }\n\n    public ThroughputLogger(String logName) {\n        super(logName);\n    }\n\n    public ThroughputLogger(String logName, LoggingLevel level) {\n        super(logName, level);\n    }\n\n    public ThroughputLogger(String logName, LoggingLevel level, int groupSize) {\n        super(logName, level);\n        setGroupSize(groupSize);\n    }\n\n    public ThroughputLogger(String logName, int groupSize) {\n        super(logName);\n        setGroupSize(groupSize);\n    }\n\n    public ThroughputLogger(int groupSize) {\n        setGroupSize(groupSize);\n    }\n\n    @Override\n    public void process(Exchange exchange) {\n        if (startTime == 0) {\n            startTime = System.currentTimeMillis();\n        }\n        int receivedCount = receivedCounter.incrementAndGet();\n        if (receivedCount % groupSize == 0) {\n            logMessage = createLogMessage(exchange, receivedCount);\n            super.process(exchange);\n        }\n    }\n\n    public int getGroupSize() {\n        return groupSize;\n    }\n\n    public void setGroupSize(int groupSize) {\n        if (groupSize == 0) {\n            throw new IllegalArgumentException(\"groupSize cannot be zero!\");\n        }\n        this.groupSize = groupSize;\n    }\n\n    public NumberFormat getNumberFormat() {\n        return numberFormat;\n    }\n\n    public void setNumberFormat(NumberFormat numberFormat) {\n        this.numberFormat = numberFormat;\n    }\n\n    public String getAction() {\n        return action;\n    }\n\n    public void setAction(String action) {\n        this.action = action;\n    }\n\n    @Override\n    protected Object logMessage(Exchange exchange) {\n        return logMessage;\n    }\n\n    protected String createLogMessage(Exchange exchange, int receivedCount) {\n        long time = System.currentTimeMillis();\n        if (groupStartTime == 0) {\n            groupStartTime = startTime;\n        }\n\n        double rate = messagesPerSecond(groupSize, groupStartTime, time);\n        double average = messagesPerSecond(receivedCount, startTime, time);\n\n        groupStartTime = time;\n\n        return getAction() + \": \" + receivedCount + \" messages so far. Last group took: \" + (time - groupStartTime)\n                + \" millis which is: \" + numberFormat.format(rate)\n                + \" messages per second. average: \" + numberFormat.format(average);\n    }\n\n    protected double messagesPerSecond(long messageCount, long startTime, long endTime) {\n        double rate = messageCount * 1000.0;\n        rate /= endTime - startTime;\n        return rate;", "functions": [{"function_name": "process", "code": "    @Override\n    public void process(Exchange exchange) {\n        if (startTime == 0) {\n            startTime = System.currentTimeMillis();\n        }\n        int receivedCount = receivedCounter.incrementAndGet();\n        if (receivedCount % groupSize == 0) {\n            logMessage = createLogMessage(exchange, receivedCount);\n            super.process(exchange);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [5, 8], [2, 9], [6, 10], [1, 11], [3, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 5], [9, 2], [10, 6], [11, 1], [12, 3], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getGroupSize", "code": "    public int getGroupSize() {\n        return groupSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setGroupSize", "code": "    public void setGroupSize(int groupSize) {\n        if (groupSize == 0) {\n            throw new IllegalArgumentException(\"groupSize cannot be zero!\");\n        }\n        this.groupSize = groupSize;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNumberFormat", "code": "    public NumberFormat getNumberFormat() {\n        return numberFormat;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNumberFormat", "code": "    public void setNumberFormat(NumberFormat numberFormat) {\n        this.numberFormat = numberFormat;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAction", "code": "    public String getAction() {\n        return action;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAction", "code": "    public void setAction(String action) {\n        this.action = action;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "logMessage", "code": "    @Override\n    protected Object logMessage(Exchange exchange) {\n        return logMessage;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createLogMessage", "code": "    protected String createLogMessage(Exchange exchange, int receivedCount) {\n        long time = System.currentTimeMillis();\n        if (groupStartTime == 0) {\n            groupStartTime = startTime;\n        }\n\n        double rate = messagesPerSecond(groupSize, groupStartTime, time);\n        double average = messagesPerSecond(receivedCount, startTime, time);\n\n        groupStartTime = time;\n\n        return getAction() + \": \" + receivedCount + \" messages so far. Last group took: \" + (time - groupStartTime)\n                + \" millis which is: \" + numberFormat.format(rate)\n                + \" messages per second. average: \" + numberFormat.format(average);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [4, 10], [8, 11], [8, 12], [2, 13], [3, 14], [10, 15], [5, 16], [12, 17], [12, 18], [4, 19], [18, 20], [18, 21], [21, 22], [21, 23], [23, 24], [23, 25], [25, 26], [25, 27], [27, 28], [28, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 4], [11, 8], [12, 8], [13, 2], [14, 3], [15, 10], [16, 5], [17, 12], [18, 12], [19, 4], [20, 18], [21, 18], [22, 21], [23, 21], [24, 23], [25, 23], [26, 25], [27, 25], [28, 27], [29, 28], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "messagesPerSecond", "code": "    protected double messagesPerSecond(long messageCount, long startTime, long endTime) {\n        double rate = messageCount * 1000.0;\n        rate /= endTime - startTime;\n        return rate;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ThroughputLogger", "code": "    public ThroughputLogger() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ThroughputLogger", "code": "    public ThroughputLogger(Log log) {\n        super(log);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ThroughputLogger", "code": "    public ThroughputLogger(Log log, LoggingLevel level) {\n        super(log, level);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ThroughputLogger", "code": "    public ThroughputLogger(String logName) {\n        super(logName);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ThroughputLogger", "code": "    public ThroughputLogger(String logName, LoggingLevel level) {\n        super(logName, level);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ThroughputLogger", "code": "    public ThroughputLogger(String logName, LoggingLevel level, int groupSize) {\n        super(logName, level);\n        setGroupSize(groupSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ThroughputLogger", "code": "    public ThroughputLogger(String logName, int groupSize) {\n        super(logName);\n        setGroupSize(groupSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ThroughputLogger", "code": "    public ThroughputLogger(int groupSize) {\n        setGroupSize(groupSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-2.0-5436", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/model/Workbook.java", "language": "java", "name": "org.apache.poi.hssf.model.Workbook", "code": "public class Workbook implements Model {\n    private static final int   DEBUG       = POILogger.DEBUG;\n\n\n    /**\n     * constant used to set the \"codepage\" wherever \"codepage\" is set in records\n     * (which is duplciated in more than one record)\n     */\n\n    private final static short CODEPAGE    = ( short ) 0x4b0;\n\n    /**\n     * this contains the Worksheet record objects\n     */\n    protected WorkbookRecordList        records     = new WorkbookRecordList();\n\n    /**\n     * this contains a reference to the SSTRecord so that new stings can be added\n     * to it.\n     */\n    protected SSTRecord        sst         = null;\n\n    /**\n     * Holds the Extern Sheet with references to bound sheets\n     */\n    protected ExternSheetRecord externSheet= null;\n\n    /**\n     * holds the \"boundsheet\" records (aka bundlesheet) so that they can have their\n     * reference to their \"BOF\" marker\n     */\n    protected ArrayList        boundsheets = new ArrayList();\n\n    protected ArrayList        formats = new ArrayList();\n\n    protected ArrayList        names = new ArrayList();\n\n\n    private static POILogger   log = POILogFactory.getLogger(Workbook.class);\n\n    /**\n     * Creates new Workbook with no intitialization --useless right now\n     * @see #createWorkbook(List)\n     */\n    public Workbook() {\n    }\n\n    /**\n     * read support  for low level\n     * API.  Pass in an array of Record objects, A Workbook\n     * object is constructed and passed back with all of its initialization set\n     * to the passed in records and references to those records held. Unlike Sheet\n     * workbook does not use an offset (its assumed to be 0) since its first in a file.\n     * If you need an offset then construct a new array with a 0 offset or write your\n     * own ;-p.\n     *\n     * @param recs an array of Record objects\n     * @return Workbook object\n     */\n    public static Workbook createWorkbook(List recs) {\n        log.log(DEBUG, \"Workbook (readfile) created with reclen=\",\n        new Integer(recs.size()));\n        Workbook  retval  = new Workbook();\n        ArrayList records = new ArrayList(recs.size() / 3);\n\n        for (int k = 0; k < recs.size(); k++) {\n            Record rec = ( Record ) recs.get(k);\n\n            if (rec.getSid() == EOFRecord.sid) {\n                records.add(rec);\n                log.log(DEBUG, \"found workbook eof record at \" + k);\n                break;\n            }\n            switch (rec.getSid()) {\n\n                case BoundSheetRecord.sid :\n                    log.log(DEBUG, \"found boundsheet record at \" + k);\n                    retval.boundsheets.add(rec);\n                    retval.records.setBspos( k );\n                    break;\n\n                case SSTRecord.sid :\n                    log.log(DEBUG, \"found sst record at \" + k);\n                    retval.sst = ( SSTRecord ) rec;\n                    break;\n\n                case FontRecord.sid :\n                    log.log(DEBUG, \"found font record at \" + k);\n                    retval.records.setFontpos( k );\n                    retval.numfonts++;\n                    break;\n\n                case ExtendedFormatRecord.sid :\n                    log.log(DEBUG, \"found XF record at \" + k);\n                    retval.records.setXfpos( k );\n                    retval.numxfs++;\n                    break;\n\n                case TabIdRecord.sid :\n                    log.log(DEBUG, \"found tabid record at \" + k);\n                    retval.records.setTabpos( k );\n                    break;\n\n                case ProtectRecord.sid :\n                    log.log(DEBUG, \"found protect record at \" + k);\n                    retval.records.setProtpos( k );\n                    break;\n\n                case BackupRecord.sid :\n                    log.log(DEBUG, \"found backup record at \" + k);\n                    retval.records.setBackuppos( k );\n                    break;\n                case ExternSheetRecord.sid :\n                    log.log(DEBUG, \"found extern sheet record at \" + k);\n                    retval.externSheet = ( ExternSheetRecord ) rec;\n                    break;\n                case NameRecord.sid :\n                    log.log(DEBUG, \"found name record at \" + k);\n                    retval.names.add(rec);\n                    break;\n                case SupBookRecord.sid :\n                    log.log(DEBUG, \"found SupBook record at \" + k);\n                    break;\n\t        case FormatRecord.sid :\n                log.log(DEBUG, \"found format record at \" + k);\n                retval.formats.add(rec);\n                retval.maxformatid = retval.maxformatid >= ((FormatRecord)rec).getIndexCode() ? retval.maxformatid : ((FormatRecord)rec).getIndexCode();\n\t\t    break;\n                case DateWindow1904Record.sid :\n                    log.log(DEBUG, \"found datewindow1904 record at \" + k);\n                    retval.uses1904datewindowing = ((DateWindow1904Record)rec).getWindowing() == 1;\n                    break;\n                case PaletteRecord.sid:\n                    log.log(DEBUG, \"found palette record at \" + k);\n                    retval.records.setPalettepos( k );\n                default :\n            }\n            records.add(rec);\n        }\n\n        retval.records.setRecords(records);\n        log.log(DEBUG, \"exit create workbook from existing file function\");\n        return retval;\n    }\n\n    /**\n     * Creates an empty workbook object with three blank sheets and all the empty\n     * fields.  Use this to create a workbook from scratch.\n     */\n    public static Workbook createWorkbook()\n    {\n        log.log( DEBUG, \"creating new workbook from scratch\" );\n        Workbook retval = new Workbook();\n        ArrayList records = new ArrayList( 30 );\n        ArrayList formats = new ArrayList( 8 );\n\n        records.add( retval.createBOF() );\n        records.add( retval.createInterfaceHdr() );\n        records.add( retval.createMMS() );\n        records.add( retval.createInterfaceEnd() );\n        records.add( retval.createWriteAccess() );\n        records.add( retval.createCodepage() );\n        records.add( retval.createDSF() );\n        records.add( retval.createTabId() );\n        retval.records.setTabpos( records.size() - 1 );\n        records.add( retval.createFnGroupCount() );\n        records.add( retval.createWindowProtect() );\n        records.add( retval.createProtect() );\n        retval.records.setProtpos( records.size() - 1 );\n        records.add( retval.createPassword() );\n        records.add( retval.createProtectionRev4() );\n        records.add( retval.createPasswordRev4() );\n        records.add( retval.createWindowOne() );\n        records.add( retval.createBackup() );\n        retval.records.setBackuppos( records.size() - 1 );\n        records.add( retval.createHideObj() );\n        records.add( retval.createDateWindow1904() );\n        records.add( retval.createPrecision() );\n        records.add( retval.createRefreshAll() );\n        records.add( retval.createBookBool() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        retval.numfonts = 4;\n\n        for ( int i = 0; i <= 7; i++ )\n        {\n            Record rec;\n            rec = retval.createFormat( i );\n            retval.maxformatid = retval.maxformatid >= ( (FormatRecord) rec ).getIndexCode() ? retval.maxformatid : ( (FormatRecord) rec ).getIndexCode();\n            formats.add( rec );\n            records.add( rec );\n        }\n        retval.formats = formats;\n\n        for ( int k = 0; k < 21; k++ )\n        {\n            records.add( retval.createExtendedFormat( k ) );\n            retval.numxfs++;\n        }\n        retval.records.setXfpos( records.size() - 1 );\n        for ( int k = 0; k < 6; k++ )\n        {\n            records.add( retval.createStyle( k ) );\n        }\n        retval.records.setPalettepos( records.size() );\n        records.add( retval.createUseSelFS() );\n        for ( int k = 0; k < 1; k++ ){\n            BoundSheetRecord bsr =\n                    (BoundSheetRecord) retval.createBoundSheet( k );\n\n            records.add( bsr );\n            retval.boundsheets.add( bsr );\n            retval.records.setBspos( records.size() - 1 );\n        }\n        records.add( retval.createCountry() );\n        retval.sst = (SSTRecord) retval.createSST();\n        records.add( retval.sst );\n        records.add( retval.createExtendedSST() );\n\n        records.add( retval.createEOF() );\n        retval.records.setRecords(records);\n        log.log( DEBUG, \"exit create new workbook from scratch\" );\n        return retval;\n    }\n\n\n\t/**Retrieves the Builtin NameRecord that matches the name and index\n\t * There shouldn't be too many names to make the sequential search too slow\n\t * @param name byte representation of the builtin name to match\n\t * @param sheetIndex Index to match\n\t * @return null if no builtin NameRecord matches\n\t */\n\tpublic NameRecord getSpecificBuiltinRecord(byte name, int sheetIndex)\n\t{\n\t    Iterator iterator = names.iterator();\n\t    while (iterator.hasNext()) {\n\t        NameRecord record = ( NameRecord ) iterator.next();\n\t\n\t        if (record.getBuiltInName() == name && record.getIndexToSheet() == sheetIndex) {\n\t            return record;\n\t        }\n\t    }\n\t    \n\t    return null;\n\t    \n\t}\n\n\t/**\n\t * Removes the specified Builtin NameRecord that matches the name and index\n\t * @param name byte representation of the builtin to match\n\t * @param sheetIndex zero-based sheet reference\n\t */\n\tpublic void removeBuiltinRecord(byte name, int sheetIndex) {\n\t\tNameRecord record = getSpecificBuiltinRecord(name, sheetIndex);\n\t\tif (record != null) {\n\t\t\tnames.remove(record);\n\t\t}\n\t\t\n\t}\n\n    public int getNumRecords() {\n        return records.size();\n    }\n\n    /**\n     * gets the font record at the given index in the font table.  Remember\n     * \"There is No Four\" (someone at M$ must have gone to Rocky Horror one too\n     * many times)\n     *\n     * @param idx the index to look at (0 or greater but NOT 4)\n     * @return FontRecord located at the given index\n     */\n\n    public FontRecord getFontRecordAt(int idx) {\n        int index = idx;\n\n        if (index > 4) {\n        }\n        if (index > (numfonts - 1)) {\n            throw new ArrayIndexOutOfBoundsException(\n            \"There are only \" + numfonts\n            + \" font records, you asked for \" + idx);\n        }\n        FontRecord retval =\n        ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index);\n\n        return retval;\n    }\n\n    /**\n     * creates a new font record and adds it to the \"font table\".  This causes the\n     * boundsheets to move down one, extended formats to move down (so this function moves\n     * those pointers as well)\n     *\n     * @return FontRecord that was just created\n     */\n\n    public FontRecord createNewFont() {\n        FontRecord rec = ( FontRecord ) createFont();\n\n        records.add(records.getFontpos()+1, rec);\n        records.setFontpos( records.getFontpos() + 1 );\n        numfonts++;\n        return rec;\n    }\n\n    /**\n     * gets the number of font records\n     *\n     * @return   number of font records in the \"font table\"\n     */\n\n    public int getNumberOfFontRecords() {\n        return numfonts;\n    }\n\n    /**\n     * Sets the BOF for a given sheet\n     *\n     * @param sheetnum the number of the sheet to set the positing of the bof for\n     * @param pos the actual bof position\n     */\n\n    public void setSheetBof(int sheetnum, int pos) {\n        log.log(DEBUG, \"setting bof for sheetnum =\", new Integer(sheetnum),\n        \" at pos=\", new Integer(pos));\n        checkSheets(sheetnum);\n        (( BoundSheetRecord ) boundsheets.get(sheetnum))\n        .setPositionOfBof(pos);\n    }\n\n    /**\n     * Returns the position of the backup record.\n     */\n\n    public BackupRecord getBackupRecord() {\n        return ( BackupRecord ) records.get(records.getBackuppos());\n    }\n\n\n    /**\n     * sets the name for a given sheet.  If the boundsheet record doesn't exist and\n     * its only one more than we have, go ahead and create it.  If its > 1 more than\n     * we have, except\n     *\n     * @param sheetnum the sheet number (0 based)\n     * @param sheetname the name for the sheet\n     */\n\n    public void setSheetName(int sheetnum, String sheetname ) {\n        setSheetName( sheetnum, sheetname, (byte)0 );\n    }\n\n    public void setSheetName(int sheetnum, String sheetname, short encoding ) {\n        checkSheets(sheetnum);\n        BoundSheetRecord sheet = (BoundSheetRecord)boundsheets.get( sheetnum );\n        sheet.setSheetname(sheetname);\n        sheet.setSheetnameLength( (byte)sheetname.length() );\n\t\tsheet.setCompressedUnicodeFlag( (byte)encoding );\n    }\n    \n    \t/**\n\t * sets the order of appearance for a given sheet.\n\t *\n\t * @param sheetname the name of the sheet to reorder\n\t * @param pos the position that we want to insert the sheet into (0 based)\n\t */\n    \n    public void setSheetOrder(String sheetname, int pos ) {\n\tint sheetNumber = getSheetIndex(sheetname);\n\tboundsheets.add(pos, boundsheets.remove(sheetNumber));\t\n    }\n\n    /**\n     * gets the name for a given sheet.\n     *\n     * @param sheetnum the sheet number (0 based)\n     * @return sheetname the name for the sheet\n     */\n\n    public String getSheetName(int sheetnum) {\n        return (( BoundSheetRecord ) boundsheets.get(sheetnum))\n        .getSheetname();\n    }\n\n    /**\n     * get the sheet's index\n     * @param name  sheet name\n     * @return sheet index or -1 if it was not found.\n     */\n\n    public int getSheetIndex(String name) {\n        int retval = -1;\n\n        for (int k = 0; k < boundsheets.size(); k++) {\n            String sheet = getSheetName(k);\n\n            if (sheet.equalsIgnoreCase(name)) {\n                retval = k;\n                break;\n            }\n        }\n        return retval;\n    }\n\n    /**\n     * if we're trying to address one more sheet than we have, go ahead and add it!  if we're\n     * trying to address >1 more than we have throw an exception!\n     */\n\n    private void checkSheets(int sheetnum) {\n            if ((boundsheets.size() + 1) <= sheetnum) {\n                throw new RuntimeException(\"Sheet number out of bounds!\");\n            }\n            BoundSheetRecord bsr = (BoundSheetRecord ) createBoundSheet(sheetnum);\n\n            records.add(records.getBspos()+1, bsr);\n            records.setBspos( records.getBspos() + 1 );\n            boundsheets.add(bsr);\n            fixTabIdRecord();\n        \n    }\n\n    public void removeSheet(int sheetnum) {\n        if (boundsheets.size() > sheetnum) {\n            records.remove(records.getBspos() - (boundsheets.size() - 1) + sheetnum);\n            boundsheets.remove(sheetnum);\n            fixTabIdRecord();\n        }\n    }\n\n    /**\n     * make the tabid record look like the current situation.\n     *\n     */\n    private void fixTabIdRecord() {\n        TabIdRecord tir = ( TabIdRecord ) records.get(records.getTabpos());\n        short[]     tia = new short[ boundsheets.size() ];\n\n        for (short k = 0; k < tia.length; k++) {\n            tia[ k ] = k;\n        }\n        tir.setTabIdArray(tia);\n    }\n\n    /**\n     * returns the number of boundsheet objects contained in this workbook.\n     *\n     * @return number of BoundSheet records\n     */\n\n    public int getNumSheets() {\n        log.log(DEBUG, \"getNumSheets=\", new Integer(boundsheets.size()));\n        return boundsheets.size();\n    }\n\n    /**\n     * get the number of ExtendedFormat records contained in this workbook.\n     *\n     * @return int count of ExtendedFormat records\n     */\n\n    public int getNumExFormats() {\n        log.log(DEBUG, \"getXF=\", new Integer(numxfs));\n        return numxfs;\n    }\n\n    /**\n     * gets the ExtendedFormatRecord at the given 0-based index\n     *\n     * @param index of the Extended format record (0-based)\n     * @return ExtendedFormatRecord at the given index\n     */\n\n    public ExtendedFormatRecord getExFormatAt(int index) {\n        int xfptr = records.getXfpos() - (numxfs - 1);\n\n        xfptr += index;\n        ExtendedFormatRecord retval =\n        ( ExtendedFormatRecord ) records.get(xfptr);\n\n        return retval;\n    }\n\n    /**\n     * creates a new Cell-type Extneded Format Record and adds it to the end of\n     *  ExtendedFormatRecords collection\n     *\n     * @return ExtendedFormatRecord that was created\n     */\n\n    public ExtendedFormatRecord createCellXF() {\n        ExtendedFormatRecord xf = createExtendedFormat();\n\n        records.add(records.getXfpos()+1, xf);\n        records.setXfpos( records.getXfpos() + 1 );\n        numxfs++;\n        return xf;\n    }\n\n    /**\n     * Adds a string to the SST table and returns its index (if its a duplicate\n     * just returns its index and update the counts)\n     *\n     * @param string the string to be added to the SSTRecord\n     * @param use16bits whether to use utf 16 or false for compressed unicode\n     * @return index of the string within the SSTRecord\n     */\n\n    public int addSSTString(String string, boolean use16bits) {\n        log.log(DEBUG, \"insert to sst string='\", string, \"' and use16bits= \",\n        new Boolean(use16bits));\n        if (sst == null) {\n            insertSST();\n        }\n        return sst.addString(string, use16bits);\n    }\n\n    /**\n     * Adds a string to the SST table and returns its index (if its a duplicate\n     * just returns its index and update the counts) ASSUMES compressed unicode\n     * (meaning 8bit)\n     *\n     * @param string the string to be added to the SSTRecord\n     *\n     * @return index of the string within the SSTRecord\n     */\n\n    public int addSSTString(String string) {\n        return addSSTString(string, false);\n    }\n\n    /**\n     * given an index into the SST table, this function returns the corresponding String value\n     * @return String containing the SST String\n     */\n\n    public String getSSTString(int str) {\n        if (sst == null) {\n            insertSST();\n        }\n        String retval = sst.getString(str);\n\n        log.log(DEBUG, \"Returning SST for index=\", new Integer(str),\n        \" String= \", retval);\n        return retval;\n    }\n\n    /**\n     * use this function to add a Shared String Table to an existing sheet (say\n     * generated by a different java api) without an sst....\n     * @see #createSST()\n     * @see org.apache.poi.hssf.record.SSTRecord\n     */\n\n    public void insertSST() {\n        log.log(DEBUG, \"creating new SST via insertSST!\");\n        sst = ( SSTRecord ) createSST();\n        records.add(records.size() - 1, createExtendedSST());\n        records.add(records.size() - 2, sst);\n    }\n\n    /**\n     * Serializes all records int the worksheet section into a big byte array. Use\n     * this to write the Workbook out.\n     *\n     * @return byte array containing the HSSF-only portions of the POIFS file.\n     */\n\n    /**\n     * Serializes all records int the worksheet section into a big byte array. Use\n     * this to write the Workbook out.\n     * @param offset of the data to be written\n     * @param data array of bytes to write this to\n     */\n\n    public int serialize( int offset, byte[] data )\n    {\n        log.log( DEBUG, \"Serializing Workbook with offsets\" );\n\n        int pos = 0;\n\n        SSTRecord sst = null;\n        int sstPos = 0;\n        for ( int k = 0; k < records.size(); k++ )\n        {\n\n            Record record = records.get( k );\n            if ( record.getSid() != RecalcIdRecord.sid || ( (RecalcIdRecord) record ).isNeeded() )\n            {\n                if (record instanceof SSTRecord)\n                {\n                    sst = (SSTRecord)record;\n                    sstPos = pos;\n                }\n                if (record.getSid() == ExtSSTRecord.sid && sst != null)\n                {\n                    record = sst.createExtSSTRecord(sstPos + offset);\n                }\n            }\n        }\n        log.log( DEBUG, \"Exiting serialize workbook\" );\n        return pos;\n    }\n\n    public int getSize()\n    {\n        int retval = 0;\n\n        SSTRecord sst = null;\n        for ( int k = 0; k < records.size(); k++ )\n        {\n            Record record = records.get( k );\n            if ( record.getSid() != RecalcIdRecord.sid || ( (RecalcIdRecord) record ).isNeeded() )\n            {\n                if (record instanceof SSTRecord)\n                    sst = (SSTRecord)record;\n                if (record.getSid() == ExtSSTRecord.sid && sst != null)\n                    retval += sst.calcExtSSTRecordSize();\n                else\n                    retval += record.getRecordSize();\n            }\n        }\n        return retval;\n    }\n\n    /**\n     * creates the BOF record\n     * @see org.apache.poi.hssf.record.BOFRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a BOFRecord\n     */\n\n    protected Record createBOF() {\n        BOFRecord retval = new BOFRecord();\n\n        retval.setVersion(( short ) 0x600);\n        retval.setType(( short ) 5);\n        retval.setBuild(( short ) 0x10d3);\n\n        retval.setBuildYear(( short ) 1996);\n        retval.setRequiredVersion(0x6);\n        return retval;\n    }\n\n    /**\n     * creates the InterfaceHdr record\n     * @see org.apache.poi.hssf.record.InterfaceHdrRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a InterfaceHdrRecord\n     */\n\n    protected Record createInterfaceHdr() {\n        InterfaceHdrRecord retval = new InterfaceHdrRecord();\n\n        retval.setCodepage(CODEPAGE);\n        return retval;\n    }\n\n    /**\n     * creates an MMS record\n     * @see org.apache.poi.hssf.record.MMSRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a MMSRecord\n     */\n\n    protected Record createMMS() {\n        MMSRecord retval = new MMSRecord();\n\n        retval.setAddMenuCount(( byte ) 0);\n        retval.setDelMenuCount(( byte ) 0);\n        return retval;\n    }\n\n    /**\n     * creates the InterfaceEnd record\n     * @see org.apache.poi.hssf.record.InterfaceEndRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a InterfaceEndRecord\n     */\n\n    protected Record createInterfaceEnd() {\n        return new InterfaceEndRecord();\n    }\n\n    /**\n     * creates the WriteAccess record containing the logged in user's name\n     * @see org.apache.poi.hssf.record.WriteAccessRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a WriteAccessRecord\n     */\n\n    protected Record createWriteAccess() {\n        WriteAccessRecord retval = new WriteAccessRecord();\n\n        retval.setUsername(System.getProperty(\"user.name\"));\n        return retval;\n    }\n\n    /**\n     * creates the Codepage record containing the constant stored in CODEPAGE\n     * @see org.apache.poi.hssf.record.CodepageRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a CodepageRecord\n     */\n\n    protected Record createCodepage() {\n        CodepageRecord retval = new CodepageRecord();\n\n        retval.setCodepage(CODEPAGE);\n        return retval;\n    }\n\n    /**\n     * creates the DSF record containing a 0 since HSSF can't even create Dual Stream Files\n     * @see org.apache.poi.hssf.record.DSFRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DSFRecord\n     */\n\n    protected Record createDSF() {\n        DSFRecord retval = new DSFRecord();\n\n        retval.setDsf();\n        return retval;\n    }\n\n    /**\n     * creates the TabId record containing an array of 0,1,2.  This release of HSSF\n     * always has the default three sheets, no less, no more.\n     * @see org.apache.poi.hssf.record.TabIdRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a TabIdRecord\n     */\n\n    protected Record createTabId() {\n        TabIdRecord retval     = new TabIdRecord();\n        short[]     tabidarray = {\n            0\n        };\n\n        retval.setTabIdArray(tabidarray);\n        return retval;\n    }\n\n    /**\n     * creates the FnGroupCount record containing the Magic number constant of 14.\n     * @see org.apache.poi.hssf.record.FnGroupCountRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a FnGroupCountRecord\n     */\n\n    protected Record createFnGroupCount() {\n        FnGroupCountRecord retval = new FnGroupCountRecord();\n\n        retval.setCount(( short ) 14);\n        return retval;\n    }\n\n    /**\n     * creates the WindowProtect record with protect set to false.\n     * @see org.apache.poi.hssf.record.WindowProtectRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a WindowProtectRecord\n     */\n\n    protected Record createWindowProtect() {\n        WindowProtectRecord retval = new WindowProtectRecord();\n\n        retval.setProtect();\n    }\n\n    /**\n     * creates the Protect record with protect set to false.\n     * @see org.apache.poi.hssf.record.ProtectRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a ProtectRecord\n     */\n\n    protected Record createProtect() {\n        ProtectRecord retval = new ProtectRecord();\n\n        retval.setProtect();\n    }\n\n    /**\n     * creates the Password record with password set to 0.\n     * @see org.apache.poi.hssf.record.PasswordRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PasswordRecord\n     */\n\n    protected Record createPassword() {\n        PasswordRecord retval = new PasswordRecord();\n\n        return retval;\n    }\n\n    /**\n     * creates the ProtectionRev4 record with protect set to false.\n     * @see org.apache.poi.hssf.record.ProtectionRev4Record\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a ProtectionRev4Record\n     */\n\n    protected Record createProtectionRev4() {\n        ProtectionRev4Record retval = new ProtectionRev4Record();\n\n        retval.setProtect(false);\n        return retval;\n    }\n\n    /**\n     * creates the PasswordRev4 record with password set to 0.\n     * @see org.apache.poi.hssf.record.PasswordRev4Record\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PasswordRev4Record\n     */\n\n    protected Record createPasswordRev4() {\n        PasswordRev4Record retval = new PasswordRev4Record();\n\n        return retval;\n    }\n\n    /**\n     * creates the WindowOne record with the following magic values: <P>\n     * horizontal hold - 0x168 <P>\n     * vertical hold   - 0x10e <P>\n     * width           - 0x3a5c <P>\n     * height          - 0x23be <P>\n     * options         - 0x38 <P>\n     * selected tab    - 0 <P>\n     * displayed tab   - 0 <P>\n     * num selected tab- 0 <P>\n     * tab width ratio - 0x258 <P>\n     * @see org.apache.poi.hssf.record.WindowOneRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a WindowOneRecord\n     */\n\n    protected Record createWindowOne() {\n        WindowOneRecord retval = new WindowOneRecord();\n\n        retval.setHorizontalHold(( short ) 0x168);\n        retval.setVerticalHold(( short ) 0x10e);\n        retval.setWidth(( short ) 0x3a5c);\n        retval.setHeight(( short ) 0x23be);\n        retval.setOptions(( short ) 0x38);\n        retval.setSelectedTab(( short ) 0x0);\n        retval.setDisplayedTab(( short ) 0x0);\n        retval.setNumSelectedTabs(( short ) 1);\n        retval.setTabWidthRatio(( short ) 0x258);\n        return retval;\n    }\n\n    /**\n     * creates the Backup record with backup set to 0. (loose the data, who cares)\n     * @see org.apache.poi.hssf.record.BackupRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a BackupRecord\n     */\n\n    protected Record createBackup() {\n        BackupRecord retval = new BackupRecord();\n\n        retval.setBackup();\n        return retval;\n    }\n\n    /**\n     * creates the HideObj record with hide object set to 0. (don't hide)\n     * @see org.apache.poi.hssf.record.HideObjRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a HideObjRecord\n     */\n\n    protected Record createHideObj() {\n        HideObjRecord retval = new HideObjRecord();\n\n        return retval;\n    }\n\n    /**\n     * creates the DateWindow1904 record with windowing set to 0. (don't window)\n     * @see org.apache.poi.hssf.record.DateWindow1904Record\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a DateWindow1904Record\n     */\n\n    protected Record createDateWindow1904() {\n        DateWindow1904Record retval = new DateWindow1904Record();\n\n        retval.setWindowing();\n        return retval;\n    }\n\n    /**\n     * creates the Precision record with precision set to true. (full precision)\n     * @see org.apache.poi.hssf.record.PrecisionRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a PrecisionRecord\n     */\n\n    protected Record createPrecision() {\n        PrecisionRecord retval = new PrecisionRecord();\n\n        retval.setFullPrecision();\n        return retval;\n    }\n\n    /**\n     * creates the RefreshAll record with refreshAll set to true. (refresh all calcs)\n     * @see org.apache.poi.hssf.record.RefreshAllRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a RefreshAllRecord\n     */\n\n    protected Record createRefreshAll() {\n        RefreshAllRecord retval = new RefreshAllRecord();\n\n        retval.setRefreshAll(false);\n        return retval;\n    }\n\n    /**\n     * creates the BookBool record with saveLinkValues set to 0. (don't save link values)\n     * @see org.apache.poi.hssf.record.BookBoolRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a BookBoolRecord\n     */\n\n    protected Record createBookBool() {\n        BookBoolRecord retval = new BookBoolRecord();\n\n        retval.setSaveLinkValues(( short ) 0);\n        return retval;\n    }\n\n    /**\n     * creates a Font record with the following magic values: <P>\n     * fontheight           = 0xc8<P>\n     * attributes           = 0x0<P>\n     * color palette index  = 0x7fff<P>\n     * bold weight          = 0x190<P>\n     * Font Name Length     = 5 <P>\n     * Font Name            = Arial <P>\n     *\n     * @see org.apache.poi.hssf.record.FontRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a FontRecord\n     */\n\n    protected Record createFont() {\n        FontRecord retval = new FontRecord();\n\n        retval.setFontHeight(( short ) 0xc8);\n        retval.setAttributes(( short ) 0x0);\n        retval.setColorPaletteIndex(( short ) 0x7fff);\n        retval.setBoldWeight(( short ) 0x190);\n        retval.setFontNameLength(( byte ) 5);\n        retval.setFontName(\"Arial\");\n        return retval;\n    \n\n    /**\n     * Creates a FormatRecord object\n     * @param id    the number of the format record to create (meaning its position in\n     *        a file as M$ Excel would create it.)\n     * @return record containing a FormatRecord\n     * @see org.apache.poi.hssf.record.FormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n\n        switch (id) {\n\n            case 0 :\n                retval.setIndexCode(( short ) 5);\n                retval.setFormatStringLength(( byte ) 0x17);\n                retval.setFormatString(\"\\\"$\\\"#,##0_);\\\\(\\\"$\\\"#,##0\\\\)\");\n                break;\n\n            case 1 :\n                retval.setIndexCode(( short ) 6);\n                retval.setFormatStringLength(( byte ) 0x1c);\n                retval.setFormatString(\"\\\"$\\\"#,##0_);[Red]\\\\(\\\"$\\\"#,##0\\\\)\");\n                break;\n\n            case 2 :\n                retval.setIndexCode(( short ) 7);\n                retval.setFormatStringLength(( byte ) 0x1d);\n                retval.setFormatString(\"\\\"$\\\"#,##0.00_);\\\\(\\\"$\\\"#,##0.00\\\\)\");\n                break;\n\n            case 3 :\n                retval.setIndexCode(( short ) 8);\n                retval.setFormatStringLength(( byte ) 0x22);\n                retval.setFormatString(\n                \"\\\"$\\\"#,##0.00_);[Red]\\\\(\\\"$\\\"#,##0.00\\\\)\");\n                break;\n\n            case 4 :\n                retval.setIndexCode(( short ) 0x2a);\n                retval.setFormatStringLength(( byte ) 0x32);\n                retval.setFormatString(\n                \"_(\\\"$\\\"* #,##0_);_(\\\"$\\\"* \\\\(#,##0\\\\);_(\\\"$\\\"* \\\"-\\\"_);_(@_)\");\n                break;\n\n            case 5 :\n                retval.setIndexCode(( short ) 0x29);\n                retval.setFormatStringLength(( byte ) 0x29);\n                retval.setFormatString(\n                \"_(* #,##0_);_(* \\\\(#,##0\\\\);_(* \\\"-\\\"_);_(@_)\");\n                break;\n\n            case 6 :\n                retval.setIndexCode(( short ) 0x2c);\n                retval.setFormatStringLength(( byte ) 0x3a);\n                retval.setFormatString(\n                \"_(\\\"$\\\"* #,##0.00_);_(\\\"$\\\"* \\\\(#,##0.00\\\\);_(\\\"$\\\"* \\\"-\\\"??_);_(@_)\");\n                break;\n\n            case 7 :\n                retval.setIndexCode(( short ) 0x2b);\n                retval.setFormatStringLength(( byte ) 0x31);\n                retval.setFormatString(\n                \"_(* #,##0.00_);_(* \\\\(#,##0.00\\\\);_(* \\\"-\\\"??_);_(@_)\");\n                break;\n        }\n        return retval;\n    \n\n    /**\n     * Creates an ExtendedFormatRecord object\n     * @param id    the number of the extended format record to create (meaning its position in\n     *        a file as MS Excel would create it.)\n     *\n     * @return record containing an ExtendedFormatRecord\n     * @see org.apache.poi.hssf.record.ExtendedFormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        ExtendedFormatRecord retval = new ExtendedFormatRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 1 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 2 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 3 :\n                retval.setFontIndex(( short ) 2);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 4 :\n                retval.setFontIndex(( short ) 2);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 5 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 6 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 7 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 8 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 9 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 10 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 11 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 12 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 13 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 14 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 15 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x0);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 16 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2b);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 17 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x29);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 18 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2c);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 19 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2a);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 20 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x9);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 21 :\n                retval.setFontIndex(( short ) 5);\n                retval.setFormatIndex(( short ) 0x0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 22 :\n                retval.setFontIndex(( short ) 6);\n                retval.setFormatIndex(( short ) 0x0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 23 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0x31);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 24 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0x8);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 25 :\n                retval.setFontIndex(( short ) 6);\n                retval.setFormatIndex(( short ) 0x8);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n        }\n        return retval;\n    }\n\n    /**\n     * creates an default cell type ExtendedFormatRecord object.\n     * @return ExtendedFormatRecord with intial defaults (cell-type)\n     */\n\n    protected ExtendedFormatRecord createExtendedFormat() {\n        ExtendedFormatRecord retval = new ExtendedFormatRecord();\n\n        retval.setFontIndex(( short ) 0);\n        retval.setFormatIndex(( short ) 0x0);\n        retval.setCellOptions(( short ) 0x1);\n        retval.setAlignmentOptions(( short ) 0x20);\n        retval.setIndentionOptions(( short ) 0);\n        retval.setBorderOptions(( short ) 0);\n        retval.setPaletteOptions(( short ) 0);\n        retval.setAdtlPaletteOptions(( short ) 0);\n        retval.setFillPaletteOptions(( short ) 0x20c0);\n        retval.setTopBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setBottomBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setLeftBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setRightBorderPaletteIdx(HSSFColor.BLACK.index);\n        return retval;\n    \n\n    /**\n     * Creates a StyleRecord object\n     * @param id        the number of the style record to create (meaning its position in\n     *                  a file as MS Excel would create it.\n     * @return record containing a StyleRecord\n     * @see org.apache.poi.hssf.record.StyleRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        StyleRecord retval = new StyleRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setIndex(( short ) 0xffff8010);\n                retval.setBuiltin(( byte ) 3);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 1 :\n                retval.setIndex(( short ) 0xffff8011);\n                retval.setBuiltin(( byte ) 6);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 2 :\n                retval.setIndex(( short ) 0xffff8012);\n                retval.setBuiltin(( byte ) 4);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 3 :\n                retval.setIndex(( short ) 0xffff8013);\n                retval.setBuiltin(( byte ) 7);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 4 :\n                retval.setIndex(( short ) 0xffff8000);\n                retval.setBuiltin(( byte ) 0);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 5 :\n                retval.setIndex(( short ) 0xffff8014);\n                retval.setBuiltin(( byte ) 5);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n        }\n        return retval;\n    }\n\n    /**\n     * Creates a palette record initialized to the default palette\n     * @return a PaletteRecord instance populated with the default colors\n     * @see org.apache.poi.hssf.record.PaletteRecord\n     */\n    protected PaletteRecord createPalette()\n    {\n        return new PaletteRecord(PaletteRecord.sid);\n    }\n    \n    /**\n     * Creates the UseSelFS object with the use natural language flag set to 0 (false)\n     * @return record containing a UseSelFSRecord\n     * @see org.apache.poi.hssf.record.UseSelFSRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n    protected Record createUseSelFS() {\n        UseSelFSRecord retval = new UseSelFSRecord();\n\n        retval.setFlag(( short ) 0);\n        return retval;\n    \n\n    /**\n     * create a \"bound sheet\" or \"bundlesheet\" (depending who you ask) record\n     * Always sets the sheet's bof to 0.  You'll need to set that yourself.\n     * @param id either sheet 0,1 or 2.\n     * @return record containing a BoundSheetRecord\n     * @see org.apache.poi.hssf.record.BoundSheetRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        BoundSheetRecord retval = new BoundSheetRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet1\");\n                break;\n\n            case 1 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet2\");\n                break;\n\n            case 2 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet3\");\n                break;\n        }\n        return retval;\n    \n\n    /**\n     * Creates the Country record with the default country set to 1\n     * and current country set to 7 in case of russian locale (\"ru_RU\") and 1 otherwise\n     * @return record containing a CountryRecord\n     * @see org.apache.poi.hssf.record.CountryRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        CountryRecord retval = new CountryRecord();\n\n        retval.setDefaultCountry(( short ) 1);\n\n        if ( Locale.getDefault().toString().equals( \"ru_RU\" ) ) {\n\t        retval.setCurrentCountry(( short ) 7);\n        }\n        else {\n\t        retval.setCurrentCountry(( short ) 1);\n        }\n\n        return retval;\n    }\n\n    /**\n     * Creates the SST record with no strings and the unique/num string set to 0\n     * @return record containing a SSTRecord\n     * @see org.apache.poi.hssf.record.SSTRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n    protected Record createSST() {\n        return new SSTRecord();\n    }\n\n    /**\n     * Creates the ExtendedSST record with numstrings per bucket set to 0x8.  HSSF\n     * doesn't yet know what to do with this thing, but we create it with nothing in\n     * it hardly just to make Excel happy and our sheets look like Excel's\n     *\n     * @return record containing an ExtSSTRecord\n     * @see org.apache.poi.hssf.record.ExtSSTRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n    protected Record createExtendedSST() {\n        ExtSSTRecord retval = new ExtSSTRecord();\n\n        retval.setNumStringsPerBucket(( short ) 0x8);\n        return retval;\n    }\n\n    /**\n     * creates the EOF record\n     * @see org.apache.poi.hssf.record.EOFRecord\n     * @see org.apache.poi.hssf.record.Record\n     * @return record containing a EOFRecord\n     */\n\n    protected Record createEOF() {\n        return new EOFRecord();\n    }\n\n    public SheetReferences getSheetReferences() {\n        SheetReferences refs = new SheetReferences();\n        \n        if (externSheet != null) {\n            for (int k = 0; k < externSheet.getNumOfREFStructures(); k++) {\n                \n                String sheetName = findSheetNameFromExternSheet((short)k);\n                refs.addSheetReference(sheetName, k);\n                \n            }\n        }\n        return refs;\n    }\n\n    /** finds the sheet name by his extern sheet index\n     * @param num extern sheet index\n     * @return sheet name\n     */\n    public String findSheetNameFromExternSheet(short num){\n        String result=\"\";\n\n        short indexToSheet = externSheet.getREFRecordAt(num).getIndexToFirstSupBook();\n            result = getSheetName(indexToSheet);\n        \n\n        return result;\n    }\n\n    /**\n     * Finds the sheet index for a particular external sheet number.\n     * @param externSheetNumber     The external sheet number to convert\n     * @return  The index to the sheet found.\n     */\n    public int getSheetIndexFromExternSheetIndex(int externSheetNumber)\n    {\n        if (externSheetNumber >= externSheet.getNumOfREFStructures())\n            return -1;\n        else\n            return externSheet.getREFRecordAt(externSheetNumber).getIndexToFirstSupBook();\n    }\n\n    /** returns the extern sheet number for specific sheet number ,\n     *  if this sheet doesn't exist in extern sheet , add it\n     * @param sheetNumber sheet number\n     * @return index to extern sheet\n     */\n    public short checkExternSheet(int sheetNumber){\n\n        int i = 0;\n        boolean flag = false;\n        short result = 0;\n\n        if (externSheet == null) {\n            externSheet = createExternSheet();\n        }\n\n        while (i < externSheet.getNumOfREFStructures() && !flag){\n            ExternSheetSubRecord record = externSheet.getREFRecordAt(i);\n\n            if (record.getIndexToFirstSupBook() ==  sheetNumber &&\n            record.getIndexToLastSupBook() == sheetNumber){\n                flag = true;\n                result = (short) i;\n            }\n\n            ++i;\n        }\n\n        if (!flag) {\n            result = addSheetIndexToExternSheet((short) sheetNumber);\n        }\n\n        return result;\n    }\n\n    private short addSheetIndexToExternSheet(short sheetNumber){\n        short result;\n\n        ExternSheetSubRecord record = new ExternSheetSubRecord();\n        record.setIndexToFirstSupBook(sheetNumber);\n        record.setIndexToLastSupBook(sheetNumber);\n        externSheet.addREFRecord(record);\n        externSheet.setNumOfREFStructures((short)(externSheet.getNumOfREFStructures() + 1));\n        result = (short)(externSheet.getNumOfREFStructures() - 1);\n\n        return result;\n    }\n\n\n\n    /** gets the total number of names\n     * @return number of names\n     */\n    public int getNumNames(){\n        int result = names.size();\n\n        return result;\n    }\n\n    /** gets the name record\n     * @param index name index\n     * @return name record\n     */\n    public NameRecord getNameRecord(int index){\n        NameRecord result = (NameRecord) names.get(index);\n\n        return result;\n\n    }\n\n    /** creates new name\n     * @return new name record\n     */\n    public NameRecord createName(){\n\n        NameRecord name = new NameRecord();\n\n        int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(SupBookRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(CountryRecord.sid);\n\n        records.add(idx+names.size()+1, name);\n        names.add(name);\n\n        return name;\n    }\n\n\n    /** creates new name\n     * @return new name record\n     */\n    public NameRecord addName(NameRecord name)\n    {\n        int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(SupBookRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(CountryRecord.sid);\n        records.add(idx+names.size()+1, name);\n        names.add(name);\n\n        return name;\n    }\n\n\t/**Generates a NameRecord to represent a built-in region\n\t * @return a new NameRecord unless the index is invalid\n\t */\n\tpublic NameRecord createBuiltInName(byte builtInName, int index)\n\t{\n\t\tif (index == -1 || index+1 > (int)Short.MAX_VALUE) \n\t\t\tthrow new IllegalArgumentException(\"Index is not valid [\"+index+\"]\");\n\t    \n\t\tNameRecord name = new NameRecord(builtInName, (short)(index));\n\t            \n\t\taddName(name);\n\t    \n\t\treturn name;\n\t}\n\n\n    /** removes the name\n     * @param namenum name index\n     */\n    public void removeName(int namenum){\n        if (names.size() > namenum) {\n            int idx = findFirstRecordLocBySid(NameRecord.sid);\n            records.remove(idx + namenum);\n            names.remove(namenum);\n        }\n\n    }\n\n    /** creates a new extern sheet record\n     * @return the new extern sheet record\n     */\n    protected ExternSheetRecord createExternSheet(){\n        ExternSheetRecord externSheet = new ExternSheetRecord();\n\n        int idx = findFirstRecordLocBySid(CountryRecord.sid);\n\n        records.add(idx+1, externSheet);\n\n        SupBookRecord supbook = new SupBookRecord();\n\n        supbook.setNumberOfSheets((short)getNumSheets());\n\n        records.add(idx+1, supbook);\n\n        return externSheet;\n    }\n\n    /**\n     * Returns a format index that matches the passed in format.  It does not tie into HSSFDataFormat.\n     * @param format the format string\n     * @param createIfNotFound creates a new format if format not found\n     * @return the format id of a format that matches or -1 if none found and createIfNotFound\n     */\n    public short getFormat(String format, boolean createIfNotFound) {\n\tIterator iterator;\n\tfor (iterator = formats.iterator(); iterator.hasNext();) {\n\t    FormatRecord r = (FormatRecord)iterator.next();\n\t    if (r.getFormatString().equals(format)) {\n\t\treturn r.getIndexCode();\n\t    }\n\t}\n\n\tif (createIfNotFound) {\n\t    return createFormat(format);\n\t}\n\n\treturn -1;\n    }\n\n    /**\n     * Returns the list of FormatRecords in the workbook.\n     * @return ArrayList of FormatRecords in the notebook\n     */\n    public ArrayList getFormats() {\n\treturn formats;\n    }\n\n    /**\n     * Creates a FormatRecord, inserts it, and returns the index code.\n     * @param format the format string\n     * @return the index code of the format record.\n     * @see org.apache.poi.hssf.record.FormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n    public short createFormat( String format )\n    {\n        FormatRecord rec = new FormatRecord();\n        rec.setIndexCode( maxformatid );\n        rec.setFormatStringLength( (byte) format.length() );\n        rec.setFormatString( format );\n\n        int pos = 0;\n        while ( pos < records.size() && records.get( pos ).getSid() != FormatRecord.sid )\n            pos++;\n        pos += formats.size();\n        formats.add( rec );\n        records.add( pos, rec );\n        return maxformatid;\n    }\n\n\n    /**\n     * Returns the first occurance of a record matching a particular sid.\n     */\n    public Record findFirstRecordBySid(short sid) {\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n            \n            if (record.getSid() == sid) {\n                return record;\n            }\n        }\n        return null;\n    }\n\n    /**\n     * Returns the index of a record matching a particular sid.\n     * @param sid   The sid of the record to match\n     * @return      The index of -1 if no match made.\n     */\n    public int findFirstRecordLocBySid(short sid) {\n        int index = 0;\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid) {\n                return index;\n            }\n            index ++;\n        }\n        return -1;\n    }\n\n    /**\n     * Returns the next occurance of a record matching a particular sid.\n     */\n    public Record findNextRecordBySid(short sid, int pos) {\n        int matches = 0;\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid) {\n                if (matches++ == pos)\n                    return record;\n            }\n        }\n        return null;\n    }\n\n    public List getRecords()\n    {\n        return records.getRecords();\n    }\n\n\n    /**\n    * Whether date windowing is based on 1/2/1904 or 1/1/1900.\n    * Some versions of Excel (Mac) can save workbooks using 1904 date windowing.\n    *\n    * @return true if using 1904 date windowing\n    */\n    public boolean isUsing1904DateWindowing() {\n        return uses1904datewindowing;\n    }\n    \n    /**\n     * Returns the custom palette in use for this workbook; if a custom palette record\n     * does not exist, then it is created.\n     */\n    public PaletteRecord getCustomPalette()\n    {\n      PaletteRecord palette;\n      int palettePos = records.getPalettepos();\n      if (palettePos != -1) {\n        Record rec = records.get(palettePos);\n        if (rec instanceof PaletteRecord) {\n          palette = (PaletteRecord) rec;\n        } else throw new RuntimeException(\"InternalError: Expected PaletteRecord but got a '\"+rec+\"'\");\n      }\n      else\n      {\n          palette = createPalette();\n          records.add(1, palette);\n          records.setPalettepos(1);\n      }\n      return palette;", "functions": [{"function_name": "createWorkbook", "code": "    public static Workbook createWorkbook(List recs) {\n        log.log(DEBUG, \"Workbook (readfile) created with reclen=\",\n        new Integer(recs.size()));\n        Workbook  retval  = new Workbook();\n        ArrayList records = new ArrayList(recs.size() / 3);\n\n        for (int k = 0; k < recs.size(); k++) {\n            Record rec = ( Record ) recs.get(k);\n\n            if (rec.getSid() == EOFRecord.sid) {\n                records.add(rec);\n                log.log(DEBUG, \"found workbook eof record at \" + k);\n                break;\n            }\n            switch (rec.getSid()) {\n\n                case BoundSheetRecord.sid :\n                    log.log(DEBUG, \"found boundsheet record at \" + k);\n                    retval.boundsheets.add(rec);\n                    retval.records.setBspos( k );\n                    break;\n\n                case SSTRecord.sid :\n                    log.log(DEBUG, \"found sst record at \" + k);\n                    retval.sst = ( SSTRecord ) rec;\n                    break;\n\n                case FontRecord.sid :\n                    log.log(DEBUG, \"found font record at \" + k);\n                    retval.records.setFontpos( k );\n                    retval.numfonts++;\n                    break;\n\n                case ExtendedFormatRecord.sid :\n                    log.log(DEBUG, \"found XF record at \" + k);\n                    retval.records.setXfpos( k );\n                    retval.numxfs++;\n                    break;\n\n                case TabIdRecord.sid :\n                    log.log(DEBUG, \"found tabid record at \" + k);\n                    retval.records.setTabpos( k );\n                    break;\n\n                case ProtectRecord.sid :\n                    log.log(DEBUG, \"found protect record at \" + k);\n                    retval.records.setProtpos( k );\n                    break;\n\n                case BackupRecord.sid :\n                    log.log(DEBUG, \"found backup record at \" + k);\n                    retval.records.setBackuppos( k );\n                    break;\n                case ExternSheetRecord.sid :\n                    log.log(DEBUG, \"found extern sheet record at \" + k);\n                    retval.externSheet = ( ExternSheetRecord ) rec;\n                    break;\n                case NameRecord.sid :\n                    log.log(DEBUG, \"found name record at \" + k);\n                    retval.names.add(rec);\n                    break;\n                case SupBookRecord.sid :\n                    log.log(DEBUG, \"found SupBook record at \" + k);\n                    break;\n\t        case FormatRecord.sid :\n                log.log(DEBUG, \"found format record at \" + k);\n                retval.formats.add(rec);\n                retval.maxformatid = retval.maxformatid >= ((FormatRecord)rec).getIndexCode() ? retval.maxformatid : ((FormatRecord)rec).getIndexCode();\n\t\t    break;\n                case DateWindow1904Record.sid :\n                    log.log(DEBUG, \"found datewindow1904 record at \" + k);\n                    retval.uses1904datewindowing = ((DateWindow1904Record)rec).getWindowing() == 1;\n                    break;\n                case PaletteRecord.sid:\n                    log.log(DEBUG, \"found palette record at \" + k);\n                    retval.records.setPalettepos( k );\n                default :\n            }\n            records.add(rec);\n        }\n\n        retval.records.setRecords(records);\n        log.log(DEBUG, \"exit create workbook from existing file function\");\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "SWITCH", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [6, 10], [2, 11], [2, 12], [2, 13], [8, 14], [3, 15], [4, 16], [9, 17], [9, 18], [2, 19], [11, 20], [12, 21], [2, 22], [15, 23], [17, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [11, 30], [11, 31], [11, 32], [11, 33], [11, 34], [11, 35], [11, 36], [12, 37], [21, 38], [23, 39], [23, 40], [11, 41], [11, 42], [11, 43], [11, 44], [11, 45], [11, 46], [11, 47], [11, 48], [11, 49], [11, 50], [11, 51], [11, 52], [11, 53], [11, 54], [11, 55], [11, 56], [11, 57], [11, 58], [11, 59], [11, 60], [11, 61], [11, 62], [11, 63], [11, 64], [11, 65], [11, 66], [11, 67], [12, 68], [12, 69], [13, 70], [42, 71], [43, 72], [44, 73], [45, 74], [47, 75], [48, 76], [50, 77], [52, 78], [54, 79], [56, 80], [58, 81], [60, 82], [62, 83], [64, 84], [67, 85], [68, 86], [71, 87], [72, 88], [73, 89], [74, 90], [75, 91], [76, 92], [77, 93], [78, 94], [79, 95], [80, 96], [81, 97], [82, 98], [83, 99], [84, 100], [85, 101], [86, 102], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 6], [11, 2], [12, 2], [13, 2], [14, 8], [15, 3], [16, 4], [17, 9], [18, 9], [19, 2], [20, 11], [21, 12], [22, 2], [23, 15], [24, 17], [25, 11], [26, 11], [27, 11], [28, 11], [29, 11], [30, 11], [31, 11], [32, 11], [33, 11], [34, 11], [35, 11], [36, 11], [37, 12], [38, 21], [39, 23], [40, 23], [41, 11], [42, 11], [43, 11], [44, 11], [45, 11], [46, 11], [47, 11], [48, 11], [49, 11], [50, 11], [51, 11], [52, 11], [53, 11], [54, 11], [55, 11], [56, 11], [57, 11], [58, 11], [59, 11], [60, 11], [61, 11], [62, 11], [63, 11], [64, 11], [65, 11], [66, 11], [67, 11], [68, 12], [69, 12], [70, 13], [71, 42], [72, 43], [73, 44], [74, 45], [75, 47], [76, 48], [77, 50], [78, 52], [79, 54], [80, 56], [81, 58], [82, 60], [83, 62], [84, 64], [85, 67], [86, 68], [87, 71], [88, 72], [89, 73], [90, 74], [91, 75], [92, 76], [93, 77], [94, 78], [95, 79], [96, 80], [97, 81], [98, 82], [99, 83], [100, 84], [101, 85], [102, 86], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102]]}, {"function_name": "createWorkbook", "code": "    public static Workbook createWorkbook()\n    {\n        log.log( DEBUG, \"creating new workbook from scratch\" );\n        Workbook retval = new Workbook();\n        ArrayList records = new ArrayList( 30 );\n        ArrayList formats = new ArrayList( 8 );\n\n        records.add( retval.createBOF() );\n        records.add( retval.createInterfaceHdr() );\n        records.add( retval.createMMS() );\n        records.add( retval.createInterfaceEnd() );\n        records.add( retval.createWriteAccess() );\n        records.add( retval.createCodepage() );\n        records.add( retval.createDSF() );\n        records.add( retval.createTabId() );\n        retval.records.setTabpos( records.size() - 1 );\n        records.add( retval.createFnGroupCount() );\n        records.add( retval.createWindowProtect() );\n        records.add( retval.createProtect() );\n        retval.records.setProtpos( records.size() - 1 );\n        records.add( retval.createPassword() );\n        records.add( retval.createProtectionRev4() );\n        records.add( retval.createPasswordRev4() );\n        records.add( retval.createWindowOne() );\n        records.add( retval.createBackup() );\n        retval.records.setBackuppos( records.size() - 1 );\n        records.add( retval.createHideObj() );\n        records.add( retval.createDateWindow1904() );\n        records.add( retval.createPrecision() );\n        records.add( retval.createRefreshAll() );\n        records.add( retval.createBookBool() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        records.add( retval.createFont() );\n        retval.numfonts = 4;\n\n        for ( int i = 0; i <= 7; i++ )\n        {\n            Record rec;\n            rec = retval.createFormat( i );\n            retval.maxformatid = retval.maxformatid >= ( (FormatRecord) rec ).getIndexCode() ? retval.maxformatid : ( (FormatRecord) rec ).getIndexCode();\n            formats.add( rec );\n            records.add( rec );\n        }\n        retval.formats = formats;\n\n        for ( int k = 0; k < 21; k++ )\n        {\n            records.add( retval.createExtendedFormat( k ) );\n            retval.numxfs++;\n        }\n        retval.records.setXfpos( records.size() - 1 );\n        for ( int k = 0; k < 6; k++ )\n        {\n            records.add( retval.createStyle( k ) );\n        }\n        retval.records.setPalettepos( records.size() );\n        records.add( retval.createUseSelFS() );\n        for ( int k = 0; k < 1; k++ ){\n            BoundSheetRecord bsr =\n                    (BoundSheetRecord) retval.createBoundSheet( k );\n\n            records.add( bsr );\n            retval.boundsheets.add( bsr );\n            retval.records.setBspos( records.size() - 1 );\n        }\n        records.add( retval.createCountry() );\n        retval.sst = (SSTRecord) retval.createSST();\n        records.add( retval.sst );\n        records.add( retval.createExtendedSST() );\n\n        records.add( retval.createEOF() );\n        retval.records.setRecords(records);\n        log.log( DEBUG, \"exit create new workbook from scratch\" );\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [0, 17], [0, 18], [3, 19], [0, 20], [4, 21], [0, 22], [5, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [9, 54], [11, 55], [12, 56], [15, 57], [2, 58], [16, 59], [17, 60], [18, 61], [19, 62], [20, 63], [21, 64], [5, 65], [23, 66], [24, 67], [25, 68], [26, 69], [27, 70], [28, 71], [29, 72], [30, 73], [31, 74], [32, 75], [33, 76], [34, 77], [35, 78], [36, 79], [37, 80], [38, 81], [39, 82], [40, 83], [41, 84], [42, 85], [43, 86], [44, 87], [45, 88], [46, 89], [47, 90], [48, 91], [49, 92], [50, 93], [51, 94], [52, 95], [6, 96], [7, 97], [8, 98], [53, 99], [14, 100], [2, 101], [2, 102], [2, 103], [2, 104], [3, 105], [3, 106], [63, 107], [63, 108], [4, 109], [4, 110], [5, 111], [5, 112], [5, 113], [5, 114], [5, 115], [77, 116], [77, 117], [83, 118], [83, 119], [87, 120], [87, 121], [96, 122], [97, 123], [101, 124], [105, 125], [109, 126], [113, 127], [114, 128], [124, 129], [124, 130], [58, 131], [127, 132], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 0], [18, 0], [19, 3], [20, 0], [21, 4], [22, 0], [23, 5], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 9], [55, 11], [56, 12], [57, 15], [58, 2], [59, 16], [60, 17], [61, 18], [62, 19], [63, 20], [64, 21], [65, 5], [66, 23], [67, 24], [68, 25], [69, 26], [70, 27], [71, 28], [72, 29], [73, 30], [74, 31], [75, 32], [76, 33], [77, 34], [78, 35], [79, 36], [80, 37], [81, 38], [82, 39], [83, 40], [84, 41], [85, 42], [86, 43], [87, 44], [88, 45], [89, 46], [90, 47], [91, 48], [92, 49], [93, 50], [94, 51], [95, 52], [96, 6], [97, 7], [98, 8], [99, 53], [100, 14], [101, 2], [102, 2], [103, 2], [104, 2], [105, 3], [106, 3], [107, 63], [108, 63], [109, 4], [110, 4], [111, 5], [112, 5], [113, 5], [114, 5], [115, 5], [116, 77], [117, 77], [118, 83], [119, 83], [120, 87], [121, 87], [122, 96], [123, 97], [124, 101], [125, 105], [126, 109], [127, 113], [128, 114], [129, 124], [130, 124], [131, 58], [132, 127], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132]]}, {"function_name": "getSpecificBuiltinRecord", "code": "\tpublic NameRecord getSpecificBuiltinRecord(byte name, int sheetIndex)\n\t{\n\t    Iterator iterator = names.iterator();\n\t    while (iterator.hasNext()) {\n\t        NameRecord record = ( NameRecord ) iterator.next();\n\t\n\t        if (record.getBuiltInName() == name && record.getIndexToSheet() == sheetIndex) {\n\t            return record;\n\t        }\n\t    }\n\t    \n\t    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [3, 10], [8, 11], [8, 12], [11, 13], [11, 14], [13, 15], [14, 16], [9, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 3], [11, 8], [12, 8], [13, 11], [14, 11], [15, 13], [16, 14], [17, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "removeBuiltinRecord", "code": "\tpublic void removeBuiltinRecord(byte name, int sheetIndex) {\n\t\tNameRecord record = getSpecificBuiltinRecord(name, sheetIndex);\n\t\tif (record != null) {\n\t\t\tnames.remove(record);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNumRecords", "code": "    public int getNumRecords() {\n        return records.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFontRecordAt", "code": "    public FontRecord getFontRecordAt(int idx) {\n        int index = idx;\n\n        if (index > 4) {\n        }\n        if (index > (numfonts - 1)) {\n            throw new ArrayIndexOutOfBoundsException(\n            \"There are only \" + numfonts\n            + \" font records, you asked for \" + idx);\n        }\n        FontRecord retval =\n        ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index);\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [3, 9], [7, 10], [8, 11], [2, 12], [9, 13], [10, 14], [12, 15], [13, 16], [15, 17], [16, 18], [17, 19], [17, 20], [18, 21], [18, 22], [19, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 3], [10, 7], [11, 8], [12, 2], [13, 9], [14, 10], [15, 12], [16, 13], [17, 15], [18, 16], [19, 17], [20, 17], [21, 18], [22, 18], [23, 19], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "createNewFont", "code": "    public FontRecord createNewFont() {\n        FontRecord rec = ( FontRecord ) createFont();\n\n        records.add(records.getFontpos()+1, rec);\n        records.setFontpos( records.getFontpos() + 1 );\n        numfonts++;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [6, 10], [2, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 6], [11, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getNumberOfFontRecords", "code": "    public int getNumberOfFontRecords() {\n        return numfonts;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSheetBof", "code": "    public void setSheetBof(int sheetnum, int pos) {\n        log.log(DEBUG, \"setting bof for sheetnum =\", new Integer(sheetnum),\n        \" at pos=\", new Integer(pos));\n        checkSheets(sheetnum);\n        (( BoundSheetRecord ) boundsheets.get(sheetnum))", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [4, 7], [4, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 4], [8, 4], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getBackupRecord", "code": "    public BackupRecord getBackupRecord() {\n        return ( BackupRecord ) records.get(records.getBackuppos());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSheetName", "code": "    public void setSheetName(int sheetnum, String sheetname ) {\n        setSheetName( sheetnum, sheetname, (byte)0 );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setSheetName", "code": "    public void setSheetName(int sheetnum, String sheetname, short encoding ) {\n        checkSheets(sheetnum);\n        BoundSheetRecord sheet = (BoundSheetRecord)boundsheets.get( sheetnum );\n        sheet.setSheetname(sheetname);\n        sheet.setSheetnameLength( (byte)sheetname.length() );\n\t\tsheet.setCompressedUnicodeFlag( (byte)encoding );", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [6, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 6], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setSheetOrder", "code": "    public void setSheetOrder(String sheetname, int pos ) {\n\tint sheetNumber = getSheetIndex(sheetname);\n\tboundsheets.add(pos, boundsheets.remove(sheetNumber));\t", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSheetName", "code": "    public String getSheetName(int sheetnum) {\n        return (( BoundSheetRecord ) boundsheets.get(sheetnum))", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSheetIndex", "code": "    public int getSheetIndex(String name) {\n        int retval = -1;\n\n        for (int k = 0; k < boundsheets.size(); k++) {\n            String sheet = getSheetName(k);\n\n            if (sheet.equalsIgnoreCase(name)) {\n                retval = k;\n                break;\n            }\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [6, 10], [2, 11], [6, 12], [7, 13], [6, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 6], [11, 2], [12, 6], [13, 7], [14, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "checkSheets", "code": "    private void checkSheets(int sheetnum) {\n            if ((boundsheets.size() + 1) <= sheetnum) {\n                throw new RuntimeException(\"Sheet number out of bounds!\");\n            }\n            BoundSheetRecord bsr = (BoundSheetRecord ) createBoundSheet(sheetnum);\n\n            records.add(records.getBspos()+1, bsr);\n            records.setBspos( records.getBspos() + 1 );\n            boundsheets.add(bsr);\n            fixTabIdRecord();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [6, 9], [7, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [1, 17], [11, 18], [12, 19], [12, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 6], [10, 7], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 1], [18, 11], [19, 12], [20, 12], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "removeSheet", "code": "    public void removeSheet(int sheetnum) {\n        if (boundsheets.size() > sheetnum) {\n            records.remove(records.getBspos() - (boundsheets.size() - 1) + sheetnum);\n            boundsheets.remove(sheetnum);\n            fixTabIdRecord();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 7], [7, 8], [8, 9], [9, 10], [9, 11], [10, 12], [10, 13], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 1], [8, 7], [9, 8], [10, 9], [11, 9], [12, 10], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "fixTabIdRecord", "code": "    private void fixTabIdRecord() {\n        TabIdRecord tir = ( TabIdRecord ) records.get(records.getTabpos());\n        short[]     tia = new short[ boundsheets.size() ];\n\n        for (short k = 0; k < tia.length; k++) {\n            tia[ k ] = k;\n        }\n        tir.setTabIdArray(tia);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNumSheets", "code": "    public int getNumSheets() {\n        log.log(DEBUG, \"getNumSheets=\", new Integer(boundsheets.size()));\n        return boundsheets.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 0], [4, 3], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNumExFormats", "code": "    public int getNumExFormats() {\n        log.log(DEBUG, \"getXF=\", new Integer(numxfs));\n        return numxfs;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getExFormatAt", "code": "    public ExtendedFormatRecord getExFormatAt(int index) {\n        int xfptr = records.getXfpos() - (numxfs - 1);\n\n        xfptr += index;\n        ExtendedFormatRecord retval =\n        ( ExtendedFormatRecord ) records.get(xfptr);\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [2, 7], [6, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 2], [8, 6], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createCellXF", "code": "    public ExtendedFormatRecord createCellXF() {\n        ExtendedFormatRecord xf = createExtendedFormat();\n\n        records.add(records.getXfpos()+1, xf);\n        records.setXfpos( records.getXfpos() + 1 );\n        numxfs++;\n        return xf;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [2, 7], [5, 8], [5, 9], [6, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 2], [8, 5], [9, 5], [10, 6], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "addSSTString", "code": "    public int addSSTString(String string, boolean use16bits) {\n        log.log(DEBUG, \"insert to sst string='\", string, \"' and use16bits= \",\n        new Boolean(use16bits));\n        if (sst == null) {\n            insertSST();\n        }\n        return sst.addString(string, use16bits);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [6, 8], [7, 9], [7, 10], [7, 11], [2, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 6], [9, 7], [10, 7], [11, 7], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "addSSTString", "code": "    public int addSSTString(String string) {\n        return addSSTString(string, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSSTString", "code": "    public String getSSTString(int str) {\n        if (sst == null) {\n            insertSST();\n        }\n        String retval = sst.getString(str);\n\n        log.log(DEBUG, \"Returning SST for index=\", new Integer(str),\n        \" String= \", retval);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [5, 8], [5, 9], [2, 10], [6, 11], [3, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 5], [9, 5], [10, 2], [11, 6], [12, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "insertSST", "code": "    public void insertSST() {\n        log.log(DEBUG, \"creating new SST via insertSST!\");\n        sst = ( SSTRecord ) createSST();\n        records.add(records.size() - 1, createExtendedSST());\n        records.add(records.size() - 2, sst);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [4, 8], [5, 9], [5, 10], [7, 11], [7, 12], [3, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 4], [9, 5], [10, 5], [11, 7], [12, 7], [13, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data )\n    {\n        log.log( DEBUG, \"Serializing Workbook with offsets\" );\n\n        int pos = 0;\n\n        SSTRecord sst = null;\n        int sstPos = 0;\n        for ( int k = 0; k < records.size(); k++ )\n        {\n\n            Record record = records.get( k );\n            if ( record.getSid() != RecalcIdRecord.sid || ( (RecalcIdRecord) record ).isNeeded() )\n            {\n                if (record instanceof SSTRecord)\n                {\n                    sst = (SSTRecord)record;\n                    sstPos = pos;\n                }\n                if (record.getSid() == ExtSSTRecord.sid && sst != null)\n                {\n                    record = sst.createExtSSTRecord(sstPos + offset);\n                }\n            }\n        }\n        log.log( DEBUG, \"Exiting serialize workbook\" );\n        return pos;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [0, 10], [8, 11], [2, 12], [2, 13], [9, 14], [3, 15], [4, 16], [5, 17], [10, 18], [12, 19], [2, 20], [12, 21], [12, 22], [19, 23], [13, 24], [21, 25], [22, 26], [23, 27], [25, 28], [25, 29], [21, 30], [28, 31], [29, 32], [22, 33], [22, 34], [30, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 0], [11, 8], [12, 2], [13, 2], [14, 9], [15, 3], [16, 4], [17, 5], [18, 10], [19, 12], [20, 2], [21, 12], [22, 12], [23, 19], [24, 13], [25, 21], [26, 22], [27, 23], [28, 25], [29, 25], [30, 21], [31, 28], [32, 29], [33, 22], [34, 22], [35, 30], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        int retval = 0;\n\n        SSTRecord sst = null;\n        for ( int k = 0; k < records.size(); k++ )\n        {\n            Record record = records.get( k );\n            if ( record.getSid() != RecalcIdRecord.sid || ( (RecalcIdRecord) record ).isNeeded() )\n            {\n                if (record instanceof SSTRecord)\n                    sst = (SSTRecord)record;\n                if (record.getSid() == ExtSSTRecord.sid && sst != null)\n                    retval += sst.calcExtSSTRecordSize();\n                else\n                    retval += record.getRecordSize();\n            }\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [4, 10], [6, 11], [2, 12], [6, 13], [6, 14], [11, 15], [7, 16], [13, 17], [14, 18], [15, 19], [13, 20], [13, 21], [17, 22], [17, 23], [14, 24], [20, 25], [21, 26], [22, 27], [23, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 4], [11, 6], [12, 2], [13, 6], [14, 6], [15, 11], [16, 7], [17, 13], [18, 14], [19, 15], [20, 13], [21, 13], [22, 17], [23, 17], [24, 14], [25, 20], [26, 21], [27, 22], [28, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "createBOF", "code": "    protected Record createBOF() {\n        BOFRecord retval = new BOFRecord();\n\n        retval.setVersion(( short ) 0x600);\n        retval.setType(( short ) 5);\n        retval.setBuild(( short ) 0x10d3);\n\n        retval.setBuildYear(( short ) 1996);\n        retval.setRequiredVersion(0x6);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [2, 9], [4, 10], [5, 11], [6, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 2], [10, 4], [11, 5], [12, 6], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createInterfaceHdr", "code": "    protected Record createInterfaceHdr() {\n        InterfaceHdrRecord retval = new InterfaceHdrRecord();\n\n        retval.setCodepage(CODEPAGE);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createMMS", "code": "    protected Record createMMS() {\n        MMSRecord retval = new MMSRecord();\n\n        retval.setAddMenuCount(( byte ) 0);\n        retval.setDelMenuCount(( byte ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createInterfaceEnd", "code": "    protected Record createInterfaceEnd() {\n        return new InterfaceEndRecord();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createWriteAccess", "code": "    protected Record createWriteAccess() {\n        WriteAccessRecord retval = new WriteAccessRecord();\n\n        retval.setUsername(System.getProperty(\"user.name\"));\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createCodepage", "code": "    protected Record createCodepage() {\n        CodepageRecord retval = new CodepageRecord();\n\n        retval.setCodepage(CODEPAGE);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createDSF", "code": "    protected Record createDSF() {\n        DSFRecord retval = new DSFRecord();\n\n        retval.setDsf();\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createTabId", "code": "    protected Record createTabId() {\n        TabIdRecord retval     = new TabIdRecord();\n        short[]     tabidarray = {\n            0\n        };\n\n        retval.setTabIdArray(tabidarray);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createFnGroupCount", "code": "    protected Record createFnGroupCount() {\n        FnGroupCountRecord retval = new FnGroupCountRecord();\n\n        retval.setCount(( short ) 14);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createWindowProtect", "code": "    protected Record createWindowProtect() {\n        WindowProtectRecord retval = new WindowProtectRecord();\n\n        retval.setProtect();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createProtect", "code": "    protected Record createProtect() {\n        ProtectRecord retval = new ProtectRecord();\n\n        retval.setProtect();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createPassword", "code": "    protected Record createPassword() {\n        PasswordRecord retval = new PasswordRecord();\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createProtectionRev4", "code": "    protected Record createProtectionRev4() {\n        ProtectionRev4Record retval = new ProtectionRev4Record();\n\n        retval.setProtect(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createPasswordRev4", "code": "    protected Record createPasswordRev4() {\n        PasswordRev4Record retval = new PasswordRev4Record();\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createWindowOne", "code": "    protected Record createWindowOne() {\n        WindowOneRecord retval = new WindowOneRecord();\n\n        retval.setHorizontalHold(( short ) 0x168);\n        retval.setVerticalHold(( short ) 0x10e);\n        retval.setWidth(( short ) 0x3a5c);\n        retval.setHeight(( short ) 0x23be);\n        retval.setOptions(( short ) 0x38);\n        retval.setSelectedTab(( short ) 0x0);\n        retval.setDisplayedTab(( short ) 0x0);\n        retval.setNumSelectedTabs(( short ) 1);\n        retval.setTabWidthRatio(( short ) 0x258);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [4, 14], [5, 15], [6, 16], [7, 17], [8, 18], [9, 19], [10, 20], [11, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 4], [15, 5], [16, 6], [17, 7], [18, 8], [19, 9], [20, 10], [21, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createBackup", "code": "    protected Record createBackup() {\n        BackupRecord retval = new BackupRecord();\n\n        retval.setBackup();\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createHideObj", "code": "    protected Record createHideObj() {\n        HideObjRecord retval = new HideObjRecord();\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createDateWindow1904", "code": "    protected Record createDateWindow1904() {\n        DateWindow1904Record retval = new DateWindow1904Record();\n\n        retval.setWindowing();\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createPrecision", "code": "    protected Record createPrecision() {\n        PrecisionRecord retval = new PrecisionRecord();\n\n        retval.setFullPrecision();\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createRefreshAll", "code": "    protected Record createRefreshAll() {\n        RefreshAllRecord retval = new RefreshAllRecord();\n\n        retval.setRefreshAll(false);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createBookBool", "code": "    protected Record createBookBool() {\n        BookBoolRecord retval = new BookBoolRecord();\n\n        retval.setSaveLinkValues(( short ) 0);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createFont", "code": "    protected Record createFont() {\n        FontRecord retval = new FontRecord();\n\n        retval.setFontHeight(( short ) 0xc8);\n        retval.setAttributes(( short ) 0x0);\n        retval.setColorPaletteIndex(( short ) 0x7fff);\n        retval.setBoldWeight(( short ) 0x190);\n        retval.setFontNameLength(( byte ) 5);\n        retval.setFontName(\"Arial\");\n        return retval;\n    \n\n    /**\n     * Creates a FormatRecord object\n     * @param id    the number of the format record to create (meaning its position in\n     *        a file as M$ Excel would create it.)\n     * @return record containing a FormatRecord\n     * @see org.apache.poi.hssf.record.FormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n\n        switch (id) {\n\n            case 0 :\n                retval.setIndexCode(( short ) 5);\n                retval.setFormatStringLength(( byte ) 0x17);\n                retval.setFormatString(\"\\\"$\\\"#,##0_);\\\\(\\\"$\\\"#,##0\\\\)\");\n                break;\n\n            case 1 :\n                retval.setIndexCode(( short ) 6);\n                retval.setFormatStringLength(( byte ) 0x1c);\n                retval.setFormatString(\"\\\"$\\\"#,##0_);[Red]\\\\(\\\"$\\\"#,##0\\\\)\");\n                break;\n\n            case 2 :\n                retval.setIndexCode(( short ) 7);\n                retval.setFormatStringLength(( byte ) 0x1d);\n                retval.setFormatString(\"\\\"$\\\"#,##0.00_);\\\\(\\\"$\\\"#,##0.00\\\\)\");\n                break;\n\n            case 3 :\n                retval.setIndexCode(( short ) 8);\n                retval.setFormatStringLength(( byte ) 0x22);\n                retval.setFormatString(\n                \"\\\"$\\\"#,##0.00_);[Red]\\\\(\\\"$\\\"#,##0.00\\\\)\");\n                break;\n\n            case 4 :\n                retval.setIndexCode(( short ) 0x2a);\n                retval.setFormatStringLength(( byte ) 0x32);\n                retval.setFormatString(\n                \"_(\\\"$\\\"* #,##0_);_(\\\"$\\\"* \\\\(#,##0\\\\);_(\\\"$\\\"* \\\"-\\\"_);_(@_)\");\n                break;\n\n            case 5 :\n                retval.setIndexCode(( short ) 0x29);\n                retval.setFormatStringLength(( byte ) 0x29);\n                retval.setFormatString(\n                \"_(* #,##0_);_(* \\\\(#,##0\\\\);_(* \\\"-\\\"_);_(@_)\");\n                break;\n\n            case 6 :\n                retval.setIndexCode(( short ) 0x2c);\n                retval.setFormatStringLength(( byte ) 0x3a);\n                retval.setFormatString(\n                \"_(\\\"$\\\"* #,##0.00_);_(\\\"$\\\"* \\\\(#,##0.00\\\\);_(\\\"$\\\"* \\\"-\\\"??_);_(@_)\");\n                break;\n\n            case 7 :\n                retval.setIndexCode(( short ) 0x2b);\n                retval.setFormatStringLength(( byte ) 0x31);\n                retval.setFormatString(\n                \"_(* #,##0.00_);_(* \\\\(#,##0.00\\\\);_(* \\\"-\\\"??_);_(@_)\");\n                break;\n        }\n        return retval;\n    \n\n    /**\n     * Creates an ExtendedFormatRecord object\n     * @param id    the number of the extended format record to create (meaning its position in\n     *        a file as MS Excel would create it.)\n     *\n     * @return record containing an ExtendedFormatRecord\n     * @see org.apache.poi.hssf.record.ExtendedFormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        ExtendedFormatRecord retval = new ExtendedFormatRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 1 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 2 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 3 :\n                retval.setFontIndex(( short ) 2);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 4 :\n                retval.setFontIndex(( short ) 2);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 5 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 6 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 7 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 8 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 9 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 10 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 11 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 12 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 13 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 14 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff400);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 15 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x0);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 16 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2b);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 17 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x29);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 18 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2c);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 19 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x2a);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 20 :\n                retval.setFontIndex(( short ) 1);\n                retval.setFormatIndex(( short ) 0x9);\n                retval.setCellOptions(( short ) 0xfffffff5);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0xfffff800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 21 :\n                retval.setFontIndex(( short ) 5);\n                retval.setFormatIndex(( short ) 0x0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x800);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 22 :\n                retval.setFontIndex(( short ) 6);\n                retval.setFormatIndex(( short ) 0x0);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 23 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0x31);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 24 :\n                retval.setFontIndex(( short ) 0);\n                retval.setFormatIndex(( short ) 0x8);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n\n            case 25 :\n                retval.setFontIndex(( short ) 6);\n                retval.setFormatIndex(( short ) 0x8);\n                retval.setCellOptions(( short ) 0x1);\n                retval.setAlignmentOptions(( short ) 0x20);\n                retval.setIndentionOptions(( short ) 0x5c00);\n                retval.setBorderOptions(( short ) 0);\n                retval.setPaletteOptions(( short ) 0);\n                retval.setAdtlPaletteOptions(( short ) 0);\n                retval.setFillPaletteOptions(( short ) 0x20c0);\n                break;\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "RETURN", "SWITCH", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [2, 54], [2, 55], [2, 56], [2, 57], [2, 58], [2, 59], [2, 60], [2, 61], [2, 62], [2, 63], [2, 64], [2, 65], [3, 66], [5, 67], [5, 68], [5, 69], [5, 70], [5, 71], [5, 72], [5, 73], [5, 74], [5, 75], [5, 76], [5, 77], [5, 78], [5, 79], [5, 80], [5, 81], [5, 82], [8, 83], [7, 84], [2, 85], [2, 86], [2, 87], [2, 88], [2, 89], [2, 90], [2, 91], [2, 92], [2, 93], [2, 94], [2, 95], [2, 96], [2, 97], [2, 98], [2, 99], [2, 100], [2, 101], [2, 102], [2, 103], [2, 104], [2, 105], [2, 106], [2, 107], [2, 108], [2, 109], [2, 110], [2, 111], [2, 112], [2, 113], [2, 114], [2, 115], [2, 116], [2, 117], [2, 118], [2, 119], [2, 120], [2, 121], [2, 122], [2, 123], [2, 124], [2, 125], [2, 126], [2, 127], [2, 128], [2, 129], [2, 130], [2, 131], [2, 132], [2, 133], [2, 134], [2, 135], [2, 136], [2, 137], [2, 138], [2, 139], [2, 140], [2, 141], [2, 142], [2, 143], [2, 144], [2, 145], [2, 146], [2, 147], [2, 148], [2, 149], [2, 150], [2, 151], [2, 152], [2, 153], [2, 154], [2, 155], [2, 156], [2, 157], [2, 158], [2, 159], [2, 160], [2, 161], [2, 162], [2, 163], [2, 164], [2, 165], [2, 166], [2, 167], [2, 168], [2, 169], [2, 170], [2, 171], [2, 172], [2, 173], [2, 174], [2, 175], [2, 176], [2, 177], [2, 178], [2, 179], [2, 180], [2, 181], [2, 182], [2, 183], [2, 184], [2, 185], [2, 186], [2, 187], [2, 188], [2, 189], [2, 190], [2, 191], [2, 192], [2, 193], [2, 194], [2, 195], [2, 196], [2, 197], [2, 198], [2, 199], [2, 200], [2, 201], [2, 202], [2, 203], [2, 204], [2, 205], [2, 206], [2, 207], [2, 208], [2, 209], [2, 210], [2, 211], [2, 212], [2, 213], [2, 214], [2, 215], [2, 216], [2, 217], [2, 218], [2, 219], [2, 220], [2, 221], [2, 222], [2, 223], [2, 224], [2, 225], [2, 226], [2, 227], [2, 228], [2, 229], [2, 230], [2, 231], [2, 232], [2, 233], [2, 234], [2, 235], [2, 236], [2, 237], [2, 238], [2, 239], [2, 240], [2, 241], [2, 242], [2, 243], [2, 244], [2, 245], [2, 246], [2, 247], [2, 248], [2, 249], [2, 250], [2, 251], [2, 252], [2, 253], [2, 254], [2, 255], [2, 256], [2, 257], [2, 258], [2, 259], [2, 260], [2, 261], [2, 262], [2, 263], [2, 264], [2, 265], [2, 266], [2, 267], [2, 268], [2, 269], [2, 270], [2, 271], [2, 272], [2, 273], [2, 274], [2, 275], [2, 276], [2, 277], [2, 278], [2, 279], [2, 280], [2, 281], [2, 282], [2, 283], [2, 284], [2, 285], [2, 286], [2, 287], [2, 288], [2, 289], [2, 290], [2, 291], [2, 292], [2, 293], [2, 294], [2, 295], [2, 296], [2, 297], [2, 298], [2, 299], [2, 300], [2, 301], [2, 302], [2, 303], [2, 304], [2, 305], [2, 306], [2, 307], [2, 308], [2, 309], [2, 310], [2, 311], [2, 312], [2, 313], [2, 314], [2, 315], [2, 316], [2, 317], [2, 318], [5, 319], [5, 320], [5, 321], [5, 322], [5, 323], [5, 324], [5, 325], [5, 326], [5, 327], [5, 328], [5, 329], [5, 330], [5, 331], [5, 332], [5, 333], [5, 334], [5, 335], [5, 336], [5, 337], [5, 338], [5, 339], [5, 340], [5, 341], [5, 342], [9, 343], [10, 344], [11, 345], [12, 346], [13, 347], [319, 348], [322, 349], [325, 350], [328, 351], [331, 352], [334, 353], [337, 354], [340, 355], [85, 356], [86, 357], [87, 358], [88, 359], [89, 360], [90, 361], [91, 362], [92, 363], [93, 364], [94, 365], [95, 366], [96, 367], [97, 368], [98, 369], [99, 370], [100, 371], [101, 372], [102, 373], [103, 374], [104, 375], [105, 376], [106, 377], [107, 378], [108, 379], [109, 380], [110, 381], [111, 382], [112, 383], [113, 384], [114, 385], [115, 386], [116, 387], [117, 388], [118, 389], [119, 390], [120, 391], [121, 392], [122, 393], [123, 394], [124, 395], [125, 396], [126, 397], [127, 398], [128, 399], [129, 400], [130, 401], [131, 402], [132, 403], [133, 404], [134, 405], [135, 406], [136, 407], [137, 408], [138, 409], [139, 410], [140, 411], [141, 412], [142, 413], [143, 414], [144, 415], [145, 416], [146, 417], [147, 418], [148, 419], [149, 420], [150, 421], [151, 422], [152, 423], [153, 424], [154, 425], [155, 426], [156, 427], [157, 428], [158, 429], [159, 430], [160, 431], [161, 432], [162, 433], [163, 434], [164, 435], [165, 436], [166, 437], [167, 438], [168, 439], [169, 440], [170, 441], [171, 442], [172, 443], [173, 444], [174, 445], [175, 446], [176, 447], [177, 448], [178, 449], [179, 450], [180, 451], [181, 452], [182, 453], [183, 454], [184, 455], [185, 456], [186, 457], [187, 458], [188, 459], [189, 460], [190, 461], [191, 462], [192, 463], [193, 464], [194, 465], [195, 466], [196, 467], [197, 468], [198, 469], [199, 470], [200, 471], [201, 472], [202, 473], [203, 474], [204, 475], [205, 476], [206, 477], [207, 478], [208, 479], [209, 480], [210, 481], [211, 482], [212, 483], [213, 484], [214, 485], [215, 486], [216, 487], [217, 488], [218, 489], [219, 490], [220, 491], [221, 492], [222, 493], [223, 494], [224, 495], [225, 496], [226, 497], [227, 498], [228, 499], [229, 500], [230, 501], [231, 502], [232, 503], [233, 504], [234, 505], [235, 506], [236, 507], [237, 508], [238, 509], [239, 510], [240, 511], [241, 512], [242, 513], [243, 514], [244, 515], [245, 516], [246, 517], [247, 518], [248, 519], [249, 520], [250, 521], [251, 522], [252, 523], [253, 524], [254, 525], [255, 526], [256, 527], [257, 528], [258, 529], [259, 530], [260, 531], [261, 532], [262, 533], [263, 534], [264, 535], [265, 536], [266, 537], [267, 538], [268, 539], [269, 540], [270, 541], [271, 542], [272, 543], [273, 544], [274, 545], [275, 546], [276, 547], [277, 548], [278, 549], [279, 550], [280, 551], [281, 552], [282, 553], [283, 554], [284, 555], [285, 556], [286, 557], [287, 558], [288, 559], [289, 560], [290, 561], [291, 562], [292, 563], [293, 564], [294, 565], [295, 566], [296, 567], [297, 568], [298, 569], [299, 570], [300, 571], [301, 572], [302, 573], [303, 574], [304, 575], [305, 576], [306, 577], [307, 578], [308, 579], [309, 580], [310, 581], [311, 582], [312, 583], [313, 584], [314, 585], [315, 586], [316, 587], [317, 588], [318, 589], [320, 590], [321, 591], [323, 592], [324, 593], [326, 594], [327, 595], [329, 596], [330, 597], [332, 598], [333, 599], [335, 600], [336, 601], [338, 602], [339, 603], [341, 604], [342, 605], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 2], [52, 2], [53, 2], [54, 2], [55, 2], [56, 2], [57, 2], [58, 2], [59, 2], [60, 2], [61, 2], [62, 2], [63, 2], [64, 2], [65, 2], [66, 3], [67, 5], [68, 5], [69, 5], [70, 5], [71, 5], [72, 5], [73, 5], [74, 5], [75, 5], [76, 5], [77, 5], [78, 5], [79, 5], [80, 5], [81, 5], [82, 5], [83, 8], [84, 7], [85, 2], [86, 2], [87, 2], [88, 2], [89, 2], [90, 2], [91, 2], [92, 2], [93, 2], [94, 2], [95, 2], [96, 2], [97, 2], [98, 2], [99, 2], [100, 2], [101, 2], [102, 2], [103, 2], [104, 2], [105, 2], [106, 2], [107, 2], [108, 2], [109, 2], [110, 2], [111, 2], [112, 2], [113, 2], [114, 2], [115, 2], [116, 2], [117, 2], [118, 2], [119, 2], [120, 2], [121, 2], [122, 2], [123, 2], [124, 2], [125, 2], [126, 2], [127, 2], [128, 2], [129, 2], [130, 2], [131, 2], [132, 2], [133, 2], [134, 2], [135, 2], [136, 2], [137, 2], [138, 2], [139, 2], [140, 2], [141, 2], [142, 2], [143, 2], [144, 2], [145, 2], [146, 2], [147, 2], [148, 2], [149, 2], [150, 2], [151, 2], [152, 2], [153, 2], [154, 2], [155, 2], [156, 2], [157, 2], [158, 2], [159, 2], [160, 2], [161, 2], [162, 2], [163, 2], [164, 2], [165, 2], [166, 2], [167, 2], [168, 2], [169, 2], [170, 2], [171, 2], [172, 2], [173, 2], [174, 2], [175, 2], [176, 2], [177, 2], [178, 2], [179, 2], [180, 2], [181, 2], [182, 2], [183, 2], [184, 2], [185, 2], [186, 2], [187, 2], [188, 2], [189, 2], [190, 2], [191, 2], [192, 2], [193, 2], [194, 2], [195, 2], [196, 2], [197, 2], [198, 2], [199, 2], [200, 2], [201, 2], [202, 2], [203, 2], [204, 2], [205, 2], [206, 2], [207, 2], [208, 2], [209, 2], [210, 2], [211, 2], [212, 2], [213, 2], [214, 2], [215, 2], [216, 2], [217, 2], [218, 2], [219, 2], [220, 2], [221, 2], [222, 2], [223, 2], [224, 2], [225, 2], [226, 2], [227, 2], [228, 2], [229, 2], [230, 2], [231, 2], [232, 2], [233, 2], [234, 2], [235, 2], [236, 2], [237, 2], [238, 2], [239, 2], [240, 2], [241, 2], [242, 2], [243, 2], [244, 2], [245, 2], [246, 2], [247, 2], [248, 2], [249, 2], [250, 2], [251, 2], [252, 2], [253, 2], [254, 2], [255, 2], [256, 2], [257, 2], [258, 2], [259, 2], [260, 2], [261, 2], [262, 2], [263, 2], [264, 2], [265, 2], [266, 2], [267, 2], [268, 2], [269, 2], [270, 2], [271, 2], [272, 2], [273, 2], [274, 2], [275, 2], [276, 2], [277, 2], [278, 2], [279, 2], [280, 2], [281, 2], [282, 2], [283, 2], [284, 2], [285, 2], [286, 2], [287, 2], [288, 2], [289, 2], [290, 2], [291, 2], [292, 2], [293, 2], [294, 2], [295, 2], [296, 2], [297, 2], [298, 2], [299, 2], [300, 2], [301, 2], [302, 2], [303, 2], [304, 2], [305, 2], [306, 2], [307, 2], [308, 2], [309, 2], [310, 2], [311, 2], [312, 2], [313, 2], [314, 2], [315, 2], [316, 2], [317, 2], [318, 2], [319, 5], [320, 5], [321, 5], [322, 5], [323, 5], [324, 5], [325, 5], [326, 5], [327, 5], [328, 5], [329, 5], [330, 5], [331, 5], [332, 5], [333, 5], [334, 5], [335, 5], [336, 5], [337, 5], [338, 5], [339, 5], [340, 5], [341, 5], [342, 5], [343, 9], [344, 10], [345, 11], [346, 12], [347, 13], [348, 319], [349, 322], [350, 325], [351, 328], [352, 331], [353, 334], [354, 337], [355, 340], [356, 85], [357, 86], [358, 87], [359, 88], [360, 89], [361, 90], [362, 91], [363, 92], [364, 93], [365, 94], [366, 95], [367, 96], [368, 97], [369, 98], [370, 99], [371, 100], [372, 101], [373, 102], [374, 103], [375, 104], [376, 105], [377, 106], [378, 107], [379, 108], [380, 109], [381, 110], [382, 111], [383, 112], [384, 113], [385, 114], [386, 115], [387, 116], [388, 117], [389, 118], [390, 119], [391, 120], [392, 121], [393, 122], [394, 123], [395, 124], [396, 125], [397, 126], [398, 127], [399, 128], [400, 129], [401, 130], [402, 131], [403, 132], [404, 133], [405, 134], [406, 135], [407, 136], [408, 137], [409, 138], [410, 139], [411, 140], [412, 141], [413, 142], [414, 143], [415, 144], [416, 145], [417, 146], [418, 147], [419, 148], [420, 149], [421, 150], [422, 151], [423, 152], [424, 153], [425, 154], [426, 155], [427, 156], [428, 157], [429, 158], [430, 159], [431, 160], [432, 161], [433, 162], [434, 163], [435, 164], [436, 165], [437, 166], [438, 167], [439, 168], [440, 169], [441, 170], [442, 171], [443, 172], [444, 173], [445, 174], [446, 175], [447, 176], [448, 177], [449, 178], [450, 179], [451, 180], [452, 181], [453, 182], [454, 183], [455, 184], [456, 185], [457, 186], [458, 187], [459, 188], [460, 189], [461, 190], [462, 191], [463, 192], [464, 193], [465, 194], [466, 195], [467, 196], [468, 197], [469, 198], [470, 199], [471, 200], [472, 201], [473, 202], [474, 203], [475, 204], [476, 205], [477, 206], [478, 207], [479, 208], [480, 209], [481, 210], [482, 211], [483, 212], [484, 213], [485, 214], [486, 215], [487, 216], [488, 217], [489, 218], [490, 219], [491, 220], [492, 221], [493, 222], [494, 223], [495, 224], [496, 225], [497, 226], [498, 227], [499, 228], [500, 229], [501, 230], [502, 231], [503, 232], [504, 233], [505, 234], [506, 235], [507, 236], [508, 237], [509, 238], [510, 239], [511, 240], [512, 241], [513, 242], [514, 243], [515, 244], [516, 245], [517, 246], [518, 247], [519, 248], [520, 249], [521, 250], [522, 251], [523, 252], [524, 253], [525, 254], [526, 255], [527, 256], [528, 257], [529, 258], [530, 259], [531, 260], [532, 261], [533, 262], [534, 263], [535, 264], [536, 265], [537, 266], [538, 267], [539, 268], [540, 269], [541, 270], [542, 271], [543, 272], [544, 273], [545, 274], [546, 275], [547, 276], [548, 277], [549, 278], [550, 279], [551, 280], [552, 281], [553, 282], [554, 283], [555, 284], [556, 285], [557, 286], [558, 287], [559, 288], [560, 289], [561, 290], [562, 291], [563, 292], [564, 293], [565, 294], [566, 295], [567, 296], [568, 297], [569, 298], [570, 299], [571, 300], [572, 301], [573, 302], [574, 303], [575, 304], [576, 305], [577, 306], [578, 307], [579, 308], [580, 309], [581, 310], [582, 311], [583, 312], [584, 313], [585, 314], [586, 315], [587, 316], [588, 317], [589, 318], [590, 320], [591, 321], [592, 323], [593, 324], [594, 326], [595, 327], [596, 329], [597, 330], [598, 332], [599, 333], [600, 335], [601, 336], [602, 338], [603, 339], [604, 341], [605, 342], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493], [494, 494], [495, 495], [496, 496], [497, 497], [498, 498], [499, 499], [500, 500], [501, 501], [502, 502], [503, 503], [504, 504], [505, 505], [506, 506], [507, 507], [508, 508], [509, 509], [510, 510], [511, 511], [512, 512], [513, 513], [514, 514], [515, 515], [516, 516], [517, 517], [518, 518], [519, 519], [520, 520], [521, 521], [522, 522], [523, 523], [524, 524], [525, 525], [526, 526], [527, 527], [528, 528], [529, 529], [530, 530], [531, 531], [532, 532], [533, 533], [534, 534], [535, 535], [536, 536], [537, 537], [538, 538], [539, 539], [540, 540], [541, 541], [542, 542], [543, 543], [544, 544], [545, 545], [546, 546], [547, 547], [548, 548], [549, 549], [550, 550], [551, 551], [552, 552], [553, 553], [554, 554], [555, 555], [556, 556], [557, 557], [558, 558], [559, 559], [560, 560], [561, 561], [562, 562], [563, 563], [564, 564], [565, 565], [566, 566], [567, 567], [568, 568], [569, 569], [570, 570], [571, 571], [572, 572], [573, 573], [574, 574], [575, 575], [576, 576], [577, 577], [578, 578], [579, 579], [580, 580], [581, 581], [582, 582], [583, 583], [584, 584], [585, 585], [586, 586], [587, 587], [588, 588], [589, 589], [590, 590], [591, 591], [592, 592], [593, 593], [594, 594], [595, 595], [596, 596], [597, 597], [598, 598], [599, 599], [600, 600], [601, 601], [602, 602], [603, 603], [604, 604], [605, 605]]}, {"function_name": "createExtendedFormat", "code": "    protected ExtendedFormatRecord createExtendedFormat() {\n        ExtendedFormatRecord retval = new ExtendedFormatRecord();\n\n        retval.setFontIndex(( short ) 0);\n        retval.setFormatIndex(( short ) 0x0);\n        retval.setCellOptions(( short ) 0x1);\n        retval.setAlignmentOptions(( short ) 0x20);\n        retval.setIndentionOptions(( short ) 0);\n        retval.setBorderOptions(( short ) 0);\n        retval.setPaletteOptions(( short ) 0);\n        retval.setAdtlPaletteOptions(( short ) 0);\n        retval.setFillPaletteOptions(( short ) 0x20c0);\n        retval.setTopBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setBottomBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setLeftBorderPaletteIdx(HSSFColor.BLACK.index);\n        retval.setRightBorderPaletteIdx(HSSFColor.BLACK.index);\n        return retval;\n    \n\n    /**\n     * Creates a StyleRecord object\n     * @param id        the number of the style record to create (meaning its position in\n     *                  a file as MS Excel would create it.\n     * @return record containing a StyleRecord\n     * @see org.apache.poi.hssf.record.StyleRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        StyleRecord retval = new StyleRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setIndex(( short ) 0xffff8010);\n                retval.setBuiltin(( byte ) 3);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 1 :\n                retval.setIndex(( short ) 0xffff8011);\n                retval.setBuiltin(( byte ) 6);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 2 :\n                retval.setIndex(( short ) 0xffff8012);\n                retval.setBuiltin(( byte ) 4);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 3 :\n                retval.setIndex(( short ) 0xffff8013);\n                retval.setBuiltin(( byte ) 7);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 4 :\n                retval.setIndex(( short ) 0xffff8000);\n                retval.setBuiltin(( byte ) 0);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n\n            case 5 :\n                retval.setIndex(( short ) 0xffff8014);\n                retval.setBuiltin(( byte ) 5);\n                retval.setOutlineStyleLevel(( byte ) 0xffffffff);\n                break;\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [3, 31], [5, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [10, 51], [11, 52], [12, 53], [13, 54], [14, 55], [15, 56], [16, 57], [17, 58], [18, 59], [33, 60], [34, 61], [35, 62], [36, 63], [37, 64], [38, 65], [39, 66], [40, 67], [41, 68], [42, 69], [43, 70], [44, 71], [45, 72], [46, 73], [47, 74], [48, 75], [49, 76], [50, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 3], [32, 5], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 10], [52, 11], [53, 12], [54, 13], [55, 14], [56, 15], [57, 16], [58, 17], [59, 18], [60, 33], [61, 34], [62, 35], [63, 36], [64, 37], [65, 38], [66, 39], [67, 40], [68, 41], [69, 42], [70, 43], [71, 44], [72, 45], [73, 46], [74, 47], [75, 48], [76, 49], [77, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "createPalette", "code": "    protected PaletteRecord createPalette()\n    {\n        return new PaletteRecord(PaletteRecord.sid);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createUseSelFS", "code": "    protected Record createUseSelFS() {\n        UseSelFSRecord retval = new UseSelFSRecord();\n\n        retval.setFlag(( short ) 0);\n        return retval;\n    \n\n    /**\n     * create a \"bound sheet\" or \"bundlesheet\" (depending who you ask) record\n     * Always sets the sheet's bof to 0.  You'll need to set that yourself.\n     * @param id either sheet 0,1 or 2.\n     * @return record containing a BoundSheetRecord\n     * @see org.apache.poi.hssf.record.BoundSheetRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        BoundSheetRecord retval = new BoundSheetRecord();\n\n        switch (id) {\n\n            case 0 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet1\");\n                break;\n\n            case 1 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet2\");\n                break;\n\n            case 2 :\n                retval.setOptionFlags(( short ) 0);\n                retval.setSheetnameLength(( byte ) 0x6);\n                retval.setCompressedUnicodeFlag(( byte ) 0);\n                retval.setSheetname(\"Sheet3\");\n                break;\n        }\n        return retval;\n    \n\n    /**\n     * Creates the Country record with the default country set to 1\n     * and current country set to 7 in case of russian locale (\"ru_RU\") and 1 otherwise\n     * @return record containing a CountryRecord\n     * @see org.apache.poi.hssf.record.CountryRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n\n        CountryRecord retval = new CountryRecord();\n\n        retval.setDefaultCountry(( short ) 1);\n\n        if ( Locale.getDefault().toString().equals( \"ru_RU\" ) ) {\n\t        retval.setCurrentCountry(( short ) 7);\n        }\n        else {\n\t        retval.setCurrentCountry(( short ) 1);\n        }\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "RETURN", "SWITCH", "VAR_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [0, 10], [0, 11], [9, 12], [9, 13], [3, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [8, 22], [2, 23], [2, 24], [12, 25], [10, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [11, 39], [27, 40], [31, 41], [35, 42], [23, 43], [24, 44], [28, 45], [29, 46], [30, 47], [32, 48], [33, 49], [34, 50], [36, 51], [37, 52], [38, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 0], [11, 0], [12, 9], [13, 9], [14, 3], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 8], [23, 2], [24, 2], [25, 12], [26, 10], [27, 5], [28, 5], [29, 5], [30, 5], [31, 5], [32, 5], [33, 5], [34, 5], [35, 5], [36, 5], [37, 5], [38, 5], [39, 11], [40, 27], [41, 31], [42, 35], [43, 23], [44, 24], [45, 28], [46, 29], [47, 30], [48, 32], [49, 33], [50, 34], [51, 36], [52, 37], [53, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "createSST", "code": "    protected Record createSST() {\n        return new SSTRecord();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExtendedSST", "code": "    protected Record createExtendedSST() {\n        ExtSSTRecord retval = new ExtSSTRecord();\n\n        retval.setNumStringsPerBucket(( short ) 0x8);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createEOF", "code": "    protected Record createEOF() {\n        return new EOFRecord();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSheetReferences", "code": "    public SheetReferences getSheetReferences() {\n        SheetReferences refs = new SheetReferences();\n        \n        if (externSheet != null) {\n            for (int k = 0; k < externSheet.getNumOfREFStructures(); k++) {\n                \n                String sheetName = findSheetNameFromExternSheet((short)k);\n                refs.addSheetReference(sheetName, k);\n                \n            }\n        }\n        return refs;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [3, 7], [5, 8], [5, 9], [8, 10], [5, 11], [5, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 3], [8, 5], [9, 5], [10, 8], [11, 5], [12, 5], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "findSheetNameFromExternSheet", "code": "    public String findSheetNameFromExternSheet(short num){\n        String result=\"\";\n\n        short indexToSheet = externSheet.getREFRecordAt(num).getIndexToFirstSupBook();\n            result = getSheetName(indexToSheet);\n        \n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [2, 7], [3, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 2], [8, 3], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSheetIndexFromExternSheetIndex", "code": "    public int getSheetIndexFromExternSheetIndex(int externSheetNumber)\n    {\n        if (externSheetNumber >= externSheet.getNumOfREFStructures())\n            return -1;\n        else\n            return externSheet.getREFRecordAt(externSheetNumber).getIndexToFirstSupBook();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "checkExternSheet", "code": "    public short checkExternSheet(int sheetNumber){\n\n        int i = 0;\n        boolean flag = false;\n        short result = 0;\n\n        if (externSheet == null) {\n            externSheet = createExternSheet();\n        }\n\n        while (i < externSheet.getNumOfREFStructures() && !flag){\n            ExternSheetSubRecord record = externSheet.getREFRecordAt(i);\n\n            if (record.getIndexToFirstSupBook() ==  sheetNumber &&\n            record.getIndexToLastSupBook() == sheetNumber){\n                flag = true;\n                result = (short) i;\n            }\n\n            ++i;\n        }\n\n        if (!flag) {\n            result = addSheetIndexToExternSheet((short) sheetNumber);\n        }\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [3, 11], [3, 12], [9, 13], [10, 14], [5, 15], [6, 16], [7, 17], [2, 18], [11, 19], [13, 20], [4, 21], [18, 22], [19, 23], [19, 24], [12, 25], [21, 26], [11, 27], [11, 28], [23, 29], [24, 30], [28, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 3], [12, 3], [13, 9], [14, 10], [15, 5], [16, 6], [17, 7], [18, 2], [19, 11], [20, 13], [21, 4], [22, 18], [23, 19], [24, 19], [25, 12], [26, 21], [27, 11], [28, 11], [29, 23], [30, 24], [31, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "addSheetIndexToExternSheet", "code": "    private short addSheetIndexToExternSheet(short sheetNumber){\n        short result;\n\n        ExternSheetSubRecord record = new ExternSheetSubRecord();\n        record.setIndexToFirstSupBook(sheetNumber);\n        record.setIndexToLastSupBook(sheetNumber);\n        externSheet.addREFRecord(record);\n        externSheet.setNumOfREFStructures((short)(externSheet.getNumOfREFStructures() + 1));\n        result = (short)(externSheet.getNumOfREFStructures() - 1);\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [5, 11], [6, 12], [11, 13], [11, 14], [12, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 5], [12, 6], [13, 11], [14, 11], [15, 12], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getNumNames", "code": "    public int getNumNames(){\n        int result = names.size();\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNameRecord", "code": "    public NameRecord getNameRecord(int index){\n        NameRecord result = (NameRecord) names.get(index);\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createName", "code": "    public NameRecord createName(){\n\n        NameRecord name = new NameRecord();\n\n        int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(SupBookRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(CountryRecord.sid);\n\n        records.add(idx+names.size()+1, name);\n        names.add(name);\n\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [7, 10], [2, 11], [8, 12], [3, 13], [9, 14], [4, 15], [5, 16], [10, 17], [10, 18], [11, 19], [13, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 7], [11, 2], [12, 8], [13, 3], [14, 9], [15, 4], [16, 5], [17, 10], [18, 10], [19, 11], [20, 13], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "addName", "code": "    public NameRecord addName(NameRecord name)\n    {\n        int idx = findFirstRecordLocBySid(ExternSheetRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(SupBookRecord.sid);\n        if (idx == -1) idx = findFirstRecordLocBySid(CountryRecord.sid);\n        records.add(idx+names.size()+1, name);\n        names.add(name);\n\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [7, 10], [2, 11], [8, 12], [3, 13], [9, 14], [4, 15], [10, 16], [10, 17], [11, 18], [13, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 7], [11, 2], [12, 8], [13, 3], [14, 9], [15, 4], [16, 10], [17, 10], [18, 11], [19, 13], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "createBuiltInName", "code": "\tpublic NameRecord createBuiltInName(byte builtInName, int index)\n\t{\n\t\tif (index == -1 || index+1 > (int)Short.MAX_VALUE) \n\t\t\tthrow new IllegalArgumentException(\"Index is not valid [\"+index+\"]\");\n\t    \n\t\tNameRecord name = new NameRecord(builtInName, (short)(index));\n\t            \n\t\taddName(name);\n\t    \n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [3, 8], [2, 9], [7, 10], [8, 11], [8, 12], [10, 13], [11, 14], [12, 15], [13, 16], [13, 17], [14, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 3], [9, 2], [10, 7], [11, 8], [12, 8], [13, 10], [14, 11], [15, 12], [16, 13], [17, 13], [18, 14], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "removeName", "code": "    public void removeName(int namenum){\n        if (names.size() > namenum) {\n            int idx = findFirstRecordLocBySid(NameRecord.sid);\n            records.remove(idx + namenum);\n            names.remove(namenum);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [7, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 7], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createExternSheet", "code": "    protected ExternSheetRecord createExternSheet(){\n        ExternSheetRecord externSheet = new ExternSheetRecord();\n\n        int idx = findFirstRecordLocBySid(CountryRecord.sid);\n\n        records.add(idx+1, externSheet);\n\n        SupBookRecord supbook = new SupBookRecord();\n\n        supbook.setNumberOfSheets((short)getNumSheets());\n\n        records.add(idx+1, supbook);\n\n        return externSheet;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [2, 9], [7, 10], [3, 11], [4, 12], [8, 13], [6, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 2], [10, 7], [11, 3], [12, 4], [13, 8], [14, 6], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFormat", "code": "    public short getFormat(String format, boolean createIfNotFound) {\n\tIterator iterator;\n\tfor (iterator = formats.iterator(); iterator.hasNext();) {\n\t    FormatRecord r = (FormatRecord)iterator.next();\n\t    if (r.getFormatString().equals(format)) {\n\t\treturn r.getIndexCode();\n\t    }\n\t}\n\n\tif (createIfNotFound) {\n\t    return createFormat(format);\n\t}\n\n\treturn -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [3, 9], [2, 10], [3, 11], [3, 12], [9, 13], [10, 14], [11, 15], [11, 16], [15, 17], [16, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 3], [10, 2], [11, 3], [12, 3], [13, 9], [14, 10], [15, 11], [16, 11], [17, 15], [18, 16], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getFormats", "code": "    public ArrayList getFormats() {\n\treturn formats;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createFormat", "code": "    public short createFormat( String format )\n    {\n        FormatRecord rec = new FormatRecord();\n        rec.setIndexCode( maxformatid );\n        rec.setFormatStringLength( (byte) format.length() );\n        rec.setFormatString( format );\n\n        int pos = 0;\n        while ( pos < records.size() && records.get( pos ).getSid() != FormatRecord.sid )\n            pos++;\n        pos += formats.size();\n        formats.add( rec );\n        records.add( pos, rec );\n        return maxformatid;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [0, 10], [0, 11], [0, 12], [8, 13], [9, 14], [9, 15], [3, 16], [4, 17], [14, 18], [15, 19], [11, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 0], [11, 0], [12, 0], [13, 8], [14, 9], [15, 9], [16, 3], [17, 4], [18, 14], [19, 15], [20, 11], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "findFirstRecordBySid", "code": "    public Record findFirstRecordBySid(short sid) {\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n            \n            if (record.getSid() == sid) {\n                return record;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [2, 9], [6, 10], [8, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 2], [10, 6], [11, 8], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "findFirstRecordLocBySid", "code": "    public int findFirstRecordLocBySid(short sid) {\n        int index = 0;\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid) {\n                return index;\n            }\n            index ++;\n        }\n        return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [3, 9], [7, 10], [2, 11], [7, 12], [10, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 3], [10, 7], [11, 2], [12, 7], [13, 10], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "findNextRecordBySid", "code": "    public Record findNextRecordBySid(short sid, int pos) {\n        int matches = 0;\n        for (Iterator iterator = records.iterator(); iterator.hasNext(); ) {\n            Record record = ( Record ) iterator.next();\n\n            if (record.getSid() == sid) {\n                if (matches++ == pos)\n                    return record;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "CALL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [3, 10], [8, 11], [2, 12], [8, 13], [11, 14], [13, 15], [13, 16], [9, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 3], [11, 8], [12, 2], [13, 8], [14, 11], [15, 13], [16, 13], [17, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getRecords", "code": "    public List getRecords()\n    {\n        return records.getRecords();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isUsing1904DateWindowing", "code": "    public boolean isUsing1904DateWindowing() {\n        return uses1904datewindowing;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCustomPalette", "code": "    public PaletteRecord getCustomPalette()\n    {\n      PaletteRecord palette;\n      int palettePos = records.getPalettepos();\n      if (palettePos != -1) {\n        Record rec = records.get(palettePos);\n        if (rec instanceof PaletteRecord) {\n          palette = (PaletteRecord) rec;\n        } else throw new RuntimeException(\"InternalError: Expected PaletteRecord but got a '\"+rec+\"'\");\n      }\n      else\n      {\n          palette = createPalette();\n          records.add(1, palette);\n          records.setPalettepos(1);\n      }\n      return palette;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [2, 10], [2, 11], [2, 12], [6, 13], [6, 14], [10, 15], [11, 16], [12, 17], [13, 18], [7, 19], [18, 20], [6, 21], [20, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 2], [11, 2], [12, 2], [13, 6], [14, 6], [15, 10], [16, 11], [17, 12], [18, 13], [19, 7], [20, 18], [21, 6], [22, 20], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "Workbook", "code": "    public Workbook() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ivy-2.0-3308", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/namespace/MRIDRule.java", "language": "java", "name": "org.apache.ivy.plugins.namespace.MRIDRule", "code": "public class MRIDRule {\n    private String org;\n\n    private String module;\n\n    private String branch;\n\n    private String rev;\n\n    public MRIDRule(String org, String mod, String rev) {\n        this.org = org;\n        this.module = mod;\n        this.rev = rev;\n    }\n\n    public MRIDRule() {\n    }\n\n    public String getModule() {\n        return module;\n    }\n\n    public void setModule(String module) {\n        this.module = module;\n    }\n\n    public String getOrg() {\n        return org;\n    }\n\n    public void setOrg(String org) {\n        this.org = org;\n    }\n\n    public String getRev() {\n        return rev;\n    }\n\n    public void setRev(String rev) {\n        this.rev = rev;\n    }\n\n    public String toString() {\n        return \"[ \" + org + \" \" + module + (branch != null ? \" \" + branch : \"\") + \" \" + rev\n                + \" ]\";\n    }\n\n    public String getBranch() {\n        return branch;\n    }\n\n    public void setBranch(String branch) {\n        this.branch = branch;", "functions": [{"function_name": "getModule", "code": "    public String getModule() {\n        return module;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setModule", "code": "    public void setModule(String module) {\n        this.module = module;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOrg", "code": "    public String getOrg() {\n        return org;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOrg", "code": "    public void setOrg(String org) {\n        this.org = org;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRev", "code": "    public String getRev() {\n        return rev;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRev", "code": "    public void setRev(String rev) {\n        this.rev = rev;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"[ \" + org + \" \" + module + (branch != null ? \" \" + branch : \"\") + \" \" + rev\n                + \" ]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [7, 9], [8, 10], [8, 11], [8, 12], [9, 13], [11, 14], [12, 15], [13, 16], [13, 17], [17, 18], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 7], [10, 8], [11, 8], [12, 8], [13, 9], [14, 11], [15, 12], [16, 13], [17, 13], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getBranch", "code": "    public String getBranch() {\n        return branch;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBranch", "code": "    public void setBranch(String branch) {\n        this.branch = branch;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MRIDRule", "code": "    public MRIDRule(String org, String mod, String rev) {\n        this.org = org;\n        this.module = mod;\n        this.rev = rev;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "MRIDRule", "code": "    public MRIDRule() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ivy-2.0-3435", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/resolver/util/HasLatestStrategy.java", "language": "java", "name": "org.apache.ivy.plugins.resolver.util.HasLatestStrategy", "code": "public interface HasLatestStrategy {\n    public LatestStrategy getLatestStrategy();\n\n    public void setLatestStrategy(LatestStrategy latestStrategy);\n\n    public String getLatest();", "functions": [{"function_name": "getLatestStrategy", "code": "    public LatestStrategy getLatestStrategy();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setLatestStrategy", "code": "    public void setLatestStrategy(LatestStrategy latestStrategy);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLatest", "code": "    public String getLatest();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.5-5845", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/poifs/eventfilesystem/POIFSReader.java", "language": "java", "name": "org.apache.poi.poifs.eventfilesystem.POIFSReader", "code": "public class POIFSReader\n{\n    private POIFSReaderRegistry registry;\n    private boolean             registryClosed;\n\n    /**\n     * Create a POIFSReader\n     */\n\n    public POIFSReader()\n    {\n        registry       = new POIFSReaderRegistry();\n        registryClosed = false;\n    }\n\n    /**\n     * Read from an InputStream and process the documents we get\n     *\n     * @param stream the InputStream from which to read the data\n     *\n     * @exception IOException on errors reading, or on invalid data\n     */\n\n    public void read(final InputStream stream)\n        throws IOException\n    {\n        registryClosed = true;\n\n        HeaderBlockReader header_block_reader = new HeaderBlockReader(stream);\n\n        RawDataBlockList  data_blocks         = new RawDataBlockList(stream);\n\n        new BlockAllocationTableReader(header_block_reader.getBATCount(),\n                                       header_block_reader.getBATArray(),\n                                       header_block_reader.getXBATCount(),\n                                       header_block_reader.getXBATIndex(),\n                                       data_blocks);\n\n        PropertyTable properties =\n            new PropertyTable(header_block_reader.getPropertyStart(),\n                              data_blocks);\n\n        processProperties(SmallBlockTableReader\n            .getSmallDocumentBlocks(data_blocks, properties\n                .getRoot(), header_block_reader\n                    .getSBATStart()), data_blocks, properties.getRoot()\n                        .getChildren(), new POIFSDocumentPath());\n    }\n\n    /**\n     * Register a POIFSReaderListener for all documents\n     *\n     * @param listener the listener to be registered\n     *\n     * @exception NullPointerException if listener is null\n     * @exception IllegalStateException if read() has already been\n     *                                  called\n     */\n\n    public void registerListener(final POIFSReaderListener listener)\n    {\n        if (listener == null)\n        {\n            throw new NullPointerException();\n        }\n        if (registryClosed)\n        {\n            throw new IllegalStateException();\n        }\n        registry.registerListener(listener);\n    }\n\n    /**\n     * Register a POIFSReaderListener for a document in the root\n     * directory\n     *\n     * @param listener the listener to be registered\n     * @param name the document name\n     *\n     * @exception NullPointerException if listener is null or name is\n     *                                 null or empty\n     * @exception IllegalStateException if read() has already been\n     *                                  called\n     */\n\n    public void registerListener(final POIFSReaderListener listener,\n                                 final String name)\n    {\n        registerListener(listener, null, name);\n    }\n\n    /**\n     * Register a POIFSReaderListener for a document in the specified\n     * directory\n     *\n     * @param listener the listener to be registered\n     * @param path the document path; if null, the root directory is\n     *             assumed\n     * @param name the document name\n     *\n     * @exception NullPointerException if listener is null or name is\n     *                                 null or empty\n     * @exception IllegalStateException if read() has already been\n     *                                  called\n     */\n\n    public void registerListener(final POIFSReaderListener listener,\n                                 final POIFSDocumentPath path,\n                                 final String name)\n    {\n        if ((listener == null) || (name == null) || (name.length() == 0))\n        {\n            throw new NullPointerException();\n        }\n        if (registryClosed)\n        {\n            throw new IllegalStateException();\n        }\n        registry.registerListener(listener,\n                                  (path == null) ? new POIFSDocumentPath()\n                                                 : path, name);\n    }\n\n    /**\n     * read in files\n     *\n     * @param args names of the files\n     *\n     * @exception IOException\n     */\n\n    public static void main(String args[])\n        throws IOException\n    {\n        if (args.length == 0)\n        {\n            System.err\n                .println(\"at least one argument required: input filename(s)\");\n            System.exit(1);\n        }\n\n        for (int j = 0; j < args.length; j++)\n        {\n            POIFSReader         reader   = new POIFSReader();\n            POIFSReaderListener listener = new SampleListener();\n\n            reader.registerListener(listener);\n            System.out.println(\"reading \" + args[ j ]);\n            FileInputStream istream = new FileInputStream(args[ j ]);\n\n            reader.read(istream);\n            istream.close();\n        }\n    }\n\n    private void processProperties(final BlockList small_blocks,\n                                   final BlockList big_blocks,\n                                   final Iterator properties,\n                                   final POIFSDocumentPath path)\n        throws IOException\n    {\n        while (properties.hasNext())\n        {\n            Property property = ( Property ) properties.next();\n            String   name     = property.getName();\n\n            if (property.isDirectory())\n            {\n                POIFSDocumentPath new_path = new POIFSDocumentPath(path,\n                                                 new String[]\n                {\n                    name\n                });\n\n                processProperties(\n                    small_blocks, big_blocks,\n                    (( DirectoryProperty ) property).getChildren(), new_path);\n            }\n            else\n            {\n                int      startBlock = property.getStartBlock();\n                Iterator listeners  = registry.getListeners(path, name);\n\n                if (listeners.hasNext())\n                {\n                    int           size     = property.getSize();\n                    POIFSDocument document = null;\n\n                    if (property.shouldUseSmallBlocks())\n                    {\n                        document =\n                            new POIFSDocument(name, small_blocks\n                                .fetchBlocks(startBlock), size);\n                    }\n                    else\n                    {\n                        document =\n                            new POIFSDocument(name, big_blocks\n                                .fetchBlocks(startBlock), size);\n                    }\n                    while (listeners.hasNext())\n                    {\n                        POIFSReaderListener listener =\n                            ( POIFSReaderListener ) listeners.next();\n\n                        listener.processPOIFSReaderEvent(\n                            new POIFSReaderEvent(\n                                new DocumentInputStream(document), path,\n                                name));\n                    }\n                }\n                else\n                {\n\n                    if (property.shouldUseSmallBlocks())\n                    {\n                        small_blocks.fetchBlocks(startBlock);\n                    }\n                    else\n                    {\n                        big_blocks.fetchBlocks(startBlock);\n                    }\n                }\n            }\n        }\n    }\n\n    private static class SampleListener\n        implements POIFSReaderListener\n    {\n\n        /**\n         * Constructor SampleListener\n         */\n\n        SampleListener()\n        {\n        }\n\n        /**\n         * Method processPOIFSReaderEvent\n         *\n         * @param event\n         */\n\n        public void processPOIFSReaderEvent(final POIFSReaderEvent event)\n        {\n            DocumentInputStream istream = event.getStream();\n            POIFSDocumentPath   path    = event.getPath();\n            String              name    = event.getName();\n\n            try\n            {\n                byte[] data = new byte[ istream.available() ];\n\n                istream.read(data);\n                int pathLength = path.length();\n\n                for (int k = 0; k < pathLength; k++)\n                {\n                    System.out.print(\"/\" + path.getComponent(k));\n                }\n                System.out.println(\"/\" + name + \": \" + data.length\n                                   + \" bytes read\");", "functions": [{"function_name": "read", "code": "    public void read(final InputStream stream)\n        throws IOException\n    {\n        registryClosed = true;\n\n        HeaderBlockReader header_block_reader = new HeaderBlockReader(stream);\n\n        RawDataBlockList  data_blocks         = new RawDataBlockList(stream);\n\n        new BlockAllocationTableReader(header_block_reader.getBATCount(),\n                                       header_block_reader.getBATArray(),\n                                       header_block_reader.getXBATCount(),\n                                       header_block_reader.getXBATIndex(),\n                                       data_blocks);\n\n        PropertyTable properties =\n            new PropertyTable(header_block_reader.getPropertyStart(),\n                              data_blocks);\n\n        processProperties(SmallBlockTableReader\n            .getSmallDocumentBlocks(data_blocks, properties\n                .getRoot(), header_block_reader\n                    .getSBATStart()), data_blocks, properties.getRoot()\n                        .getChildren(), new POIFSDocumentPath());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [6, 12], [6, 13], [6, 14], [6, 15], [2, 16], [3, 17], [7, 18], [9, 19], [10, 20], [10, 21], [11, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 6], [13, 6], [14, 6], [15, 6], [16, 2], [17, 3], [18, 7], [19, 9], [20, 10], [21, 10], [22, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "registerListener", "code": "    public void registerListener(final POIFSReaderListener listener)\n    {\n        if (listener == null)\n        {\n            throw new NullPointerException();\n        }\n        if (registryClosed)\n        {\n            throw new IllegalStateException();\n        }\n        registry.registerListener(listener);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [2, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 2], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "registerListener", "code": "    public void registerListener(final POIFSReaderListener listener,\n                                 final String name)\n    {\n        registerListener(listener, null, name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "registerListener", "code": "    public void registerListener(final POIFSReaderListener listener,\n                                 final POIFSDocumentPath path,\n                                 final String name)\n    {\n        if ((listener == null) || (name == null) || (name.length() == 0))\n        {\n            throw new NullPointerException();\n        }\n        if (registryClosed)\n        {\n            throw new IllegalStateException();\n        }\n        registry.registerListener(listener,\n                                  (path == null) ? new POIFSDocumentPath()\n                                                 : path, name);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "COND_EXPR", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [6, 8], [1, 9], [2, 10], [7, 11], [7, 12], [8, 13], [8, 14], [9, 15], [10, 16], [11, 17], [11, 18], [12, 19], [12, 20], [14, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 6], [9, 1], [10, 2], [11, 7], [12, 7], [13, 8], [14, 8], [15, 9], [16, 10], [17, 11], [18, 11], [19, 12], [20, 12], [21, 14], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "main", "code": "    public static void main(String args[])\n        throws IOException\n    {\n        if (args.length == 0)\n        {\n            System.err\n                .println(\"at least one argument required: input filename(s)\");\n            System.exit(1);\n        }\n\n        for (int j = 0; j < args.length; j++)\n        {\n            POIFSReader         reader   = new POIFSReader();\n            POIFSReaderListener listener = new SampleListener();\n\n            reader.registerListener(listener);\n            System.out.println(\"reading \" + args[ j ]);\n            FileInputStream istream = new FileInputStream(args[ j ]);\n\n            reader.read(istream);\n            istream.close();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 8], [5, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [2, 16], [6, 17], [12, 18], [7, 19], [8, 20], [15, 21], [16, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 1], [9, 5], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 2], [17, 6], [18, 12], [19, 7], [20, 8], [21, 15], [22, 16], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "processProperties", "code": "    private void processProperties(final BlockList small_blocks,\n                                   final BlockList big_blocks,\n                                   final Iterator properties,\n                                   final POIFSDocumentPath path)\n        throws IOException\n    {\n        while (properties.hasNext())\n        {\n            Property property = ( Property ) properties.next();\n            String   name     = property.getName();\n\n            if (property.isDirectory())\n            {\n                POIFSDocumentPath new_path = new POIFSDocumentPath(path,\n                                                 new String[]\n                {\n                    name\n                });\n\n                processProperties(\n                    small_blocks, big_blocks,\n                    (( DirectoryProperty ) property).getChildren(), new_path);\n            }\n            else\n            {\n                int      startBlock = property.getStartBlock();\n                Iterator listeners  = registry.getListeners(path, name);\n\n                if (listeners.hasNext())\n                {\n                    int           size     = property.getSize();\n                    POIFSDocument document = null;\n\n                    if (property.shouldUseSmallBlocks())\n                    {\n                        document =\n                            new POIFSDocument(name, small_blocks\n                                .fetchBlocks(startBlock), size);\n                    }\n                    else\n                    {\n                        document =\n                            new POIFSDocument(name, big_blocks\n                                .fetchBlocks(startBlock), size);\n                    }\n                    while (listeners.hasNext())\n                    {\n                        POIFSReaderListener listener =\n                            ( POIFSReaderListener ) listeners.next();\n\n                        listener.processPOIFSReaderEvent(\n                            new POIFSReaderEvent(\n                                new DocumentInputStream(document), path,\n                                name));\n                    }\n                }\n                else\n                {\n\n                    if (property.shouldUseSmallBlocks())\n                    {\n                        small_blocks.fetchBlocks(startBlock);\n                    }\n                    else\n                    {\n                        big_blocks.fetchBlocks(startBlock);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [8, 15], [11, 16], [7, 17], [9, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [12, 24], [13, 25], [14, 26], [19, 27], [20, 28], [21, 29], [20, 30], [22, 31], [23, 32], [19, 33], [19, 34], [20, 35], [21, 36], [21, 37], [35, 38], [36, 39], [37, 40], [38, 41], [30, 42], [39, 43], [40, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 7], [11, 7], [12, 7], [13, 7], [14, 7], [15, 8], [16, 11], [17, 7], [18, 9], [19, 11], [20, 11], [21, 11], [22, 11], [23, 11], [24, 12], [25, 13], [26, 14], [27, 19], [28, 20], [29, 21], [30, 20], [31, 22], [32, 23], [33, 19], [34, 19], [35, 20], [36, 21], [37, 21], [38, 35], [39, 36], [40, 37], [41, 38], [42, 30], [43, 39], [44, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "POIFSReader", "code": "    public POIFSReader()\n    {\n        registry       = new POIFSReaderRegistry();\n        registryClosed = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.7-1130", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/Execute.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Execute", "code": "public class Execute {\n\n    private static final int ONE_SECOND = 1000;\n\n    /** Invalid exit code.\n     * set to {@link Integer#MAX_VALUE}\n     */\n    public static final int INVALID = Integer.MAX_VALUE;\n\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n\n    private String[] cmdl = null;\n    private String[] env = null;\n    private int exitValue = INVALID;\n    private ExecuteStreamHandler streamHandler;\n    private ExecuteWatchdog watchdog;\n    private File workingDirectory = null;\n    private Project project = null;\n    private boolean newEnvironment = false;\n    private boolean spawn = false;\n\n\n    /** Controls whether the VM is used to launch commands, where possible. */\n    private boolean useVMLauncher = true;\n\n    private static String antWorkingDirectory = System.getProperty(\"user.dir\");\n    private static CommandLauncher vmLauncher = null;\n    private static CommandLauncher shellLauncher = null;\n    private static Vector procEnvironment = null;\n\n    /** Used to destroy processes when the VM exits. */\n    private static ProcessDestroyer processDestroyer = new ProcessDestroyer();\n\n    /** Used for replacing env variables */\n    private static boolean environmentCaseInSensitive = false;\n\n    /*\n     * Builds a command launcher for the OS and JVM we are running under.\n     */\n    static {\n        try {\n            if (!Os.isFamily(\"os/2\")) {\n                vmLauncher = new Java13CommandLauncher();\n            }\n        } catch (NoSuchMethodException exc) {\n        }\n        if (Os.isFamily(\"mac\") && !Os.isFamily(\"unix\")) {\n            shellLauncher = new MacCommandLauncher(new CommandLauncher());\n        } else if (Os.isFamily(\"os/2\")) {\n            shellLauncher = new OS2CommandLauncher(new CommandLauncher());\n        } else if (Os.isFamily(\"windows\")) {\n            environmentCaseInSensitive = true;\n            CommandLauncher baseLauncher = new CommandLauncher();\n\n            if (!Os.isFamily(\"win9x\")) {\n                shellLauncher = new WinNTCommandLauncher(baseLauncher);\n            } else {\n                shellLauncher\n                    = new ScriptCommandLauncher(\"bin/antRun.bat\", baseLauncher);\n            }\n        } else if (Os.isFamily(\"netware\")) {\n\n            CommandLauncher baseLauncher = new CommandLauncher();\n\n            shellLauncher\n                = new PerlScriptCommandLauncher(\"bin/antRun.pl\", baseLauncher);\n        } else if (Os.isFamily(\"openvms\")) {\n            try {\n                shellLauncher = new VmsCommandLauncher();\n            } catch (NoSuchMethodException exc) {\n            }\n        } else {\n            shellLauncher = new ScriptCommandLauncher(\"bin/antRun\",\n                new CommandLauncher());\n        }\n    }\n\n    /**\n     * Set whether or not you want the process to be spawned.\n     * Default is not spawned.\n     *\n     * @param spawn if true you do not want Ant\n     *              to wait for the end of the process.\n     *\n     * @since Ant 1.6\n     */\n    public void setSpawn(boolean spawn) {\n        this.spawn = spawn;\n    }\n\n    /**\n     * Find the list of environment variables for this process.\n     *\n     * @return a vector containing the environment variables.\n     * The vector elements are strings formatted like variable = value.\n     */\n    public static synchronized Vector getProcEnvironment() {\n        if (procEnvironment != null) {\n            return procEnvironment;\n        }\n        procEnvironment = new Vector();\n        try {\n            ByteArrayOutputStream out = new ByteArrayOutputStream();\n            Execute exe = new Execute(new PumpStreamHandler(out));\n            exe.setCommandline(getProcEnvCommand());\n            exe.setNewenvironment(true);\n            int retval = exe.execute();\n            if (retval != 0) {\n            }\n            BufferedReader in =\n                new BufferedReader(new StringReader(toString(out)));\n\n            if (Os.isFamily(\"openvms\")) {\n                procEnvironment = addVMSLogicals(procEnvironment, in);\n                return procEnvironment;\n            }\n            String var = null;\n            String line, lineSep = StringUtils.LINE_SEP;\n            while ((line = in.readLine()) != null) {\n                if (line.indexOf('=') == -1) {\n                    if (var == null) {\n                        var = lineSep + line;\n                    } else {\n                        var += lineSep + line;\n                    }\n                } else {\n                    if (var != null) {\n                        procEnvironment.addElement(var);\n                    }\n                    var = line;\n                }\n            }\n            if (var != null) {\n                procEnvironment.addElement(var);\n            }\n        } catch (java.io.IOException exc) {\n            exc.printStackTrace();\n        }\n        return procEnvironment;\n    }\n\n    /**\n     * This is the operation to get our environment.\n     * It is a notorious troublespot pre-Java1.5, and should be approached\n     * with extreme caution.\n     * @return\n     */\n    private static String[] getProcEnvCommand() {\n        if (Os.isFamily(\"os/2\")) {\n            return new String[] {\"cmd\", \"/c\", \"set\" };\n        } else if (Os.isFamily(\"windows\")) {\n            if (Os.isFamily(\"win9x\")) {\n                return new String[] {\"command.com\", \"/c\", \"set\" };\n            } else {\n                return new String[] {\"cmd\", \"/c\", \"set\" };\n            }\n        } else if (Os.isFamily(\"z/os\") || Os.isFamily(\"unix\")) {\n\n            String[] cmd = new String[1];\n            if (new File(\"/bin/env\").canRead()) {\n                cmd[0] = \"/bin/env\";\n            } else if (new File(\"/usr/bin/env\").canRead()) {\n                cmd[0] = \"/usr/bin/env\";\n            } else {\n                cmd[0] = \"env\";\n            }\n            return cmd;\n        } else if (Os.isFamily(\"netware\") || Os.isFamily(\"os/400\")) {\n            return new String[] {\"env\"};\n        } else if (Os.isFamily(\"openvms\")) {\n            return new String[] {\"show\", \"logical\"};\n        } else {\n            return null;\n        }\n    }\n\n    /**\n     * ByteArrayOutputStream#toString doesn't seem to work reliably on\n     * OS/390, at least not the way we use it in the execution\n     * context.\n     *\n     * @param bos the output stream that one wants to read.\n     * @return the output stream as a string, read with\n     * special encodings in the case of z/os and os/400.\n     *\n     * @since Ant 1.5\n     */\n    public static String toString(ByteArrayOutputStream bos) {\n        if (Os.isFamily(\"z/os\")) {\n            try {\n                return bos.toString(\"Cp1047\");\n            } catch (java.io.UnsupportedEncodingException e) {\n            }\n        } else if (Os.isFamily(\"os/400\")) {\n            try {\n                return bos.toString(\"Cp500\");\n            } catch (java.io.UnsupportedEncodingException e) {\n            }\n        }\n        return bos.toString();\n    }\n\n    /**\n     * Creates a new execute object using <code>PumpStreamHandler</code> for\n     * stream handling.\n     */\n    public Execute() {\n        this(new PumpStreamHandler(), null);\n    }\n\n    /**\n     * Creates a new execute object.\n     *\n     * @param streamHandler the stream handler used to handle the input and\n     *        output streams of the subprocess.\n     */\n    public Execute(ExecuteStreamHandler streamHandler) {\n        this(streamHandler, null);\n    }\n\n    /**\n     * Creates a new execute object.\n     *\n     * @param streamHandler the stream handler used to handle the input and\n     *        output streams of the subprocess.\n     * @param watchdog a watchdog for the subprocess or <code>null</code> to\n     *        to disable a timeout for the subprocess.\n     */\n    public Execute(ExecuteStreamHandler streamHandler,\n                   ExecuteWatchdog watchdog) {\n        setStreamHandler(streamHandler);\n        this.watchdog = watchdog;\n        if (Os.isFamily(\"openvms\")) {\n            useVMLauncher = false;\n        }\n    }\n\n    /**\n     * Set the stream handler to use.\n     * @param streamHandler ExecuteStreamHandler.\n     * @since Ant 1.6\n     */\n    public void setStreamHandler(ExecuteStreamHandler streamHandler) {\n        this.streamHandler = streamHandler;\n    }\n\n    /**\n     * Returns the commandline used to create a subprocess.\n     *\n     * @return the commandline used to create a subprocess.\n     */\n    public String[] getCommandline() {\n        return cmdl;\n    }\n\n    /**\n     * Sets the commandline of the subprocess to launch.\n     *\n     * @param commandline the commandline of the subprocess to launch.\n     */\n    public void setCommandline(String[] commandline) {\n        cmdl = commandline;\n    }\n\n    /**\n     * Set whether to propagate the default environment or not.\n     *\n     * @param newenv whether to propagate the process environment.\n     */\n    public void setNewenvironment(boolean newenv) {\n        newEnvironment = newenv;\n    }\n\n    /**\n     * Returns the environment used to create a subprocess.\n     *\n     * @return the environment used to create a subprocess.\n     */\n    public String[] getEnvironment() {\n        return (env == null || newEnvironment)\n            ? env : patchEnvironment();\n    }\n\n    /**\n     * Sets the environment variables for the subprocess to launch.\n     *\n     * @param env array of Strings, each element of which has\n     * an environment variable settings in format <em>key=value</em>.\n     */\n    public void setEnvironment(String[] env) {\n        this.env = env;\n    }\n\n    /**\n     * Sets the working directory of the process to execute.\n     *\n     * <p>This is emulated using the antRun scripts unless the OS is\n     * Windows NT in which case a cmd.exe is spawned,\n     * or MRJ and setting user.dir works, or JDK 1.3 and there is\n     * official support in java.lang.Runtime.\n     *\n     * @param wd the working directory of the process.\n     */\n    public void setWorkingDirectory(File wd) {\n        workingDirectory =\n            (wd == null || wd.getAbsolutePath().equals(antWorkingDirectory))\n            ? null : wd;\n    }\n\n    /**\n     * Return the working directory.\n     * @return the directory as a File.\n     * @since Ant 1.7\n     */\n    public File getWorkingDirectory() {\n        return workingDirectory == null ? new File(antWorkingDirectory)\n                                        : workingDirectory;\n    }\n\n    /**\n     * Set the name of the antRun script using the project's value.\n     *\n     * @param project the current project.\n     *\n     * @throws BuildException not clear when it is going to throw an exception, but\n     * it is the method's signature.\n     */\n    public void setAntRun(Project project) throws BuildException {\n        this.project = project;\n    }\n\n    /**\n     * Launch this execution through the VM, where possible, rather than through\n     * the OS's shell. In some cases and operating systems using the shell will\n     * allow the shell to perform additional processing such as associating an\n     * executable with a script, etc.\n     *\n     * @param useVMLauncher true if exec should launch through the VM,\n     *                   false if the shell should be used to launch the\n     *                   command.\n     */\n    public void setVMLauncher(boolean useVMLauncher) {\n        this.useVMLauncher = useVMLauncher;\n    }\n\n    /**\n     * Creates a process that runs a command.\n     *\n     * @param project the Project, only used for logging purposes, may be null.\n     * @param command the command to run.\n     * @param env the environment for the command.\n     * @param dir the working directory for the command.\n     * @param useVM use the built-in exec command for JDK 1.3 if available.\n     * @return the process started.\n     * @throws IOException forwarded from the particular launcher used.\n     *\n     * @since Ant 1.5\n     */\n    public static Process launch(Project project, String[] command,\n                                 String[] env, File dir, boolean useVM)\n        throws IOException {\n        if (dir != null && !dir.exists()) {\n            throw new BuildException(dir + \" doesn't exist.\");\n        }\n        CommandLauncher launcher\n            = ((useVM && vmLauncher != null) ? vmLauncher : shellLauncher);\n        return launcher.exec(project, command, env, dir);\n    }\n\n    /**\n     * Runs a process defined by the command line and returns its exit status.\n     *\n     * @return the exit status of the subprocess or <code>INVALID</code>.\n     * @exception java.io.IOException The exception is thrown, if launching\n     *            of the subprocess failed.\n     */\n    public int execute() throws IOException {\n        if (workingDirectory != null && !workingDirectory.exists()) {\n            throw new BuildException(workingDirectory + \" doesn't exist.\");\n        }\n        final Process process = launch(project, getCommandline(),\n                                       getEnvironment(), workingDirectory,\n                                       useVMLauncher);\n        try {\n            streamHandler.setProcessInputStream(process.getOutputStream());\n            streamHandler.setProcessOutputStream(process.getInputStream());\n            streamHandler.setProcessErrorStream(process.getErrorStream());\n        } catch (IOException e) {\n            process.destroy();\n            throw e;\n        }\n        streamHandler.start();\n\n        try {\n            processDestroyer.add(process);\n\n            if (watchdog != null) {\n                watchdog.start(process);\n            }\n            waitFor(process);\n\n            if (watchdog != null) {\n                watchdog.stop();\n            }\n            streamHandler.stop();\n            closeStreams(process);\n\n            if (watchdog != null) {\n                watchdog.checkException();\n            }\n            return getExitValue();\n        } catch (ThreadDeath t) {\n            process.destroy();\n            throw t;\n        } finally {\n            processDestroyer.remove(process);\n        }\n    }\n\n    /**\n     * Starts a process defined by the command line.\n     * Ant will not wait for this process, nor log its output.\n     *\n     * @throws java.io.IOException The exception is thrown, if launching\n     *            of the subprocess failed.\n     * @since Ant 1.6\n     */\n    public void spawn() throws IOException {\n        if (workingDirectory != null && !workingDirectory.exists()) {\n            throw new BuildException(workingDirectory + \" doesn't exist.\");\n        }\n        final Process process = launch(project, getCommandline(),\n                                       getEnvironment(), workingDirectory,\n                                       useVMLauncher);\n        if (Os.isFamily(\"windows\")) {\n            try {\n                Thread.sleep(ONE_SECOND);\n            } catch (InterruptedException e) {\n                project.log(\"interruption in the sleep after having spawned a\"\n                            + \" process\", Project.MSG_VERBOSE);\n            }\n        }\n        OutputStream dummyOut = new OutputStream() {\n            public void write(int b) throws IOException {\n            }\n        };\n\n        ExecuteStreamHandler handler = new PumpStreamHandler(dummyOut);\n        handler.setProcessErrorStream(process.getErrorStream());\n        handler.setProcessOutputStream(process.getInputStream());\n        handler.start();\n        process.getOutputStream().close();\n\n        project.log(\"spawned process \" + process.toString(),\n                    Project.MSG_VERBOSE);\n    }\n\n    /**\n     * Wait for a given process.\n     *\n     * @param process the process one wants to wait for.\n     */\n    protected void waitFor(Process process) {\n        try {\n            process.waitFor();\n            setExitValue(process.exitValue());\n        } catch (InterruptedException e) {\n            process.destroy();\n        }\n    }\n\n    /**\n     * Set the exit value.\n     *\n     * @param value exit value of the process.\n     */\n    protected void setExitValue(int value) {\n        exitValue = value;\n    }\n\n    /**\n     * Query the exit value of the process.\n     * @return the exit value or Execute.INVALID if no exit value has\n     * been received.\n     */\n    public int getExitValue() {\n        return exitValue;\n    }\n\n    /**\n     * Checks whether <code>exitValue</code> signals a failure on the current\n     * system (OS specific).\n     *\n     * <p><b>Note</b> that this method relies on the conventions of\n     * the OS, it will return false results if the application you are\n     * running doesn't follow these conventions.  One notable\n     * exception is the Java VM provided by HP for OpenVMS - it will\n     * return 0 if successful (like on any other platform), but this\n     * signals a failure on OpenVMS.  So if you execute a new Java VM\n     * on OpenVMS, you cannot trust this method.</p>\n     *\n     * @param exitValue the exit value (return code) to be checked.\n     * @return <code>true</code> if <code>exitValue</code> signals a failure.\n     */\n    public static boolean isFailure(int exitValue) {\n        return Os.isFamily(\"openvms\")\n            ? (exitValue % 2 == 0) : (exitValue != 0);\n    }\n\n    /**\n     * Did this execute return in a failure.\n     * @see #isFailure(int)\n     * @return true if and only if the exit code is interpreted as a failure\n     * @since Ant1.7\n     */\n    public boolean isFailure() {\n        return isFailure(getExitValue());\n    }\n\n    /**\n     * Test for an untimely death of the process.\n     * @return true if a watchdog had to kill the process.\n     * @since Ant 1.5\n     */\n    public boolean killedProcess() {\n        return watchdog != null && watchdog.killedProcess();\n    }\n\n    /**\n     * Patch the current environment with the new values from the user.\n     * @return the patched environment.\n     */\n    private String[] patchEnvironment() {\n        if (Os.isFamily(\"openvms\")) {\n            return env;\n        }\n        Vector osEnv = (Vector) getProcEnvironment().clone();\n        for (int i = 0; i < env.length; i++) {\n            String keyValue = env[i];\n            String key = keyValue.substring(0, keyValue.indexOf('=') + 1);\n            if (environmentCaseInSensitive) {\n                key = key.toLowerCase();\n            }\n            int size = osEnv.size();\n            for (int j = 0; j < size; j++) {\n                String osEnvItem = (String) osEnv.elementAt(j);\n                String convertedItem = environmentCaseInSensitive\n                    ? osEnvItem.toLowerCase() : osEnvItem;\n                if (convertedItem.startsWith(key)) {\n                    osEnv.removeElementAt(j);\n                    if (environmentCaseInSensitive) {\n                        keyValue = osEnvItem.substring(0, key.length())\n                            + keyValue.substring(key.length());\n                    }\n                    break;\n                }\n            }\n            osEnv.addElement(keyValue);\n        }\n        return (String[]) (osEnv.toArray(new String[osEnv.size()]));\n    }\n\n    /**\n     * A utility method that runs an external command.  Writes the output and\n     * error streams of the command to the project log.\n     *\n     * @param task      The task that the command is part of.  Used for logging\n     * @param cmdline   The command to execute.\n     *\n     * @throws BuildException if the command does not exit successfully.\n     */\n    public static void runCommand(Task task, String[] cmdline)\n        throws BuildException {\n        try {\n            task.log(Commandline.describeCommand(cmdline),\n                     Project.MSG_VERBOSE);\n            Execute exe = new Execute(\n                new LogStreamHandler(task, Project.MSG_INFO, Project.MSG_ERR));\n            exe.setAntRun(task.getProject());\n            exe.setCommandline(cmdline);\n            int retval = exe.execute();\n            if (isFailure(retval)) {\n                throw new BuildException(cmdline[0]\n                    + \" failed with return code \" + retval, task.getLocation());\n            }\n        } catch (java.io.IOException exc) {\n            throw new BuildException(\"Could not launch \" + cmdline[0] + \": \"\n                + exc, task.getLocation());\n        }\n    }\n\n    /**\n     * Close the streams belonging to the given Process.\n     * @param process   the <code>Process</code>.\n     */\n    public static void closeStreams(Process process) {\n        FileUtils.close(process.getInputStream());\n        FileUtils.close(process.getOutputStream());\n        FileUtils.close(process.getErrorStream());\n    }\n\n    /**\n     * This method is VMS specific and used by getProcEnvironment().\n     *\n     * Parses VMS logicals from <code>in</code> and adds them to\n     * <code>environment</code>.  <code>in</code> is expected to be the\n     * output of \"SHOW LOGICAL\".  The method takes care of parsing the output\n     * correctly as well as making sure that a logical defined in multiple\n     * tables only gets added from the highest order table.  Logicals with\n     * multiple equivalence names are mapped to a variable with multiple\n     * values separated by a comma (,).\n     */\n    private static Vector addVMSLogicals(Vector environment, BufferedReader in)\n        throws IOException {\n        HashMap logicals = new HashMap();\n        String logName = null, logValue = null, newLogName;\n        String line = null;\n        while ((line = in.readLine()) != null) {\n            if (line.startsWith(\"\\t=\")) {\n                if (logName != null) {\n                    logValue += \",\" + line.substring(4, line.length() - 1);\n                }\n            } else if (line.startsWith(\"  \\\"\")) {\n                if (logName != null) {\n                    logicals.put(logName, logValue);\n                }\n                int eqIndex = line.indexOf('=');\n                newLogName = line.substring(3, eqIndex - 2);\n                if (logicals.containsKey(newLogName)) {\n                    logName = null;\n                } else {\n                    logName = newLogName;\n                    logValue = line.substring(eqIndex + 3, line.length() - 1);\n                }\n            }\n        }\n        if (logName != null) {\n            logicals.put(logName, logValue);\n        }\n        for (Iterator i = logicals.keySet().iterator(); i.hasNext();) {\n            String logical = (String) i.next();\n            environment.add(logical + \"=\" + logicals.get(logical));\n        }\n        return environment;\n    }\n\n    /**\n     * A command launcher for a particular JVM/OS platform.  This class is\n     * a general purpose command launcher which can only launch commands in\n     * the current working directory.\n     */\n    private static class CommandLauncher {\n        /**\n         * Launches the given command in a new process.\n         *\n         * @param project       The project that the command is part of.\n         * @param cmd           The command to execute.\n         * @param env           The environment for the new process.  If null,\n         *                      the environment of the current process is used.\n         * @return the created Process.\n         * @throws IOException if attempting to run a command in a\n         * specific directory.\n         */\n        public Process exec(Project project, String[] cmd, String[] env)\n             throws IOException {\n            if (project != null) {\n                project.log(\"Execute:CommandLauncher: \"\n                    + Commandline.describeCommand(cmd), Project.MSG_DEBUG);\n            }\n            return Runtime.getRuntime().exec(cmd, env);\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.\n         *\n         * @param project       The project that the command is part of.\n         * @param cmd           The command to execute.\n         * @param env           The environment for the new process.  If null,\n         *                      the environment of the current process is used.\n         * @param workingDir    The directory to start the command in.  If null,\n         *                      the current directory is used.\n         * @return the created Process.\n         * @throws IOException  if trying to change directory.\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            if (workingDir == null) {\n                return exec(project, cmd, env);\n            }\n            throw new IOException(\"Cannot execute a process in different \"\n                + \"directory under this JVM\");\n        }\n    }\n\n    /**\n     * A command launcher for JDK/JRE 1.3 (and higher).  Uses the built-in\n     * Runtime.exec() command.\n     */\n    private static class Java13CommandLauncher extends CommandLauncher {\n        private Method myExecWithCWD;\n\n        public Java13CommandLauncher() throws NoSuchMethodException {\n            myExecWithCWD = Runtime.class.getMethod(\"exec\",\n                new Class[] {String[].class, String[].class, File.class});\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.\n         * @param project the Ant project.\n         * @param cmd the command line to execute as an array of strings.\n         * @param env the environment to set as an array of strings.\n         * @param workingDir the working directory where the command\n         * should run.\n         * @return the created Process.\n         * @throws IOException probably forwarded from Runtime#exec.\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            try {\n                if (project != null) {\n                    project.log(\"Execute:Java13CommandLauncher: \"\n                        + Commandline.describeCommand(cmd), Project.MSG_DEBUG);\n                }\n                return (Process) myExecWithCWD.invoke(Runtime.getRuntime(),\n                   /* the arguments: */ new Object[] {cmd, env, workingDir});\n            } catch (InvocationTargetException exc) {\n                Throwable realexc = exc.getTargetException();\n                if (realexc instanceof ThreadDeath) {\n                    throw (ThreadDeath) realexc;\n                } else if (realexc instanceof IOException) {\n                    throw (IOException) realexc;\n                } else {\n                    throw new BuildException(\"Unable to execute command\",\n                                             realexc);\n                }\n            } catch (Exception exc) {\n                throw new BuildException(\"Unable to execute command\", exc);\n            }\n        }\n    }\n\n    /**\n     * A command launcher that proxies another command launcher.\n     *\n     * Sub-classes override exec(args, env, workdir).\n     */\n    private static class CommandLauncherProxy extends CommandLauncher {\n        private CommandLauncher myLauncher;\n\n        CommandLauncherProxy(CommandLauncher launcher) {\n            myLauncher = launcher;\n        }\n\n        /**\n         * Launches the given command in a new process.  Delegates this\n         * method to the proxied launcher.\n         * @param project the Ant project.\n         * @param cmd the command line to execute as an array of strings.\n         * @param env the environment to set as an array of strings.\n         * @return the created Process.\n         * @throws IOException forwarded from the exec method of the\n         * command launcher.\n         */\n        public Process exec(Project project, String[] cmd, String[] env)\n            throws IOException {\n            return myLauncher.exec(project, cmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for OS/2 that uses 'cmd.exe' when launching\n     * commands in directories other than the current working\n     * directory.\n     *\n     * <p>Unlike Windows NT and friends, OS/2's cd doesn't support the\n     * /d switch to change drives and directories in one go.</p>\n     */\n    private static class OS2CommandLauncher extends CommandLauncherProxy {\n        OS2CommandLauncher(CommandLauncher launcher) {\n            super(launcher);\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.\n         * @param project the Ant project.\n         * @param cmd the command line to execute as an array of strings.\n         * @param env the environment to set as an array of strings.\n         * @param workingDir working directory where the command should run.\n         * @return the created Process.\n         * @throws IOException forwarded from the exec method of the\n         * command launcher.\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            File commandDir = workingDir;\n            if (workingDir == null) {\n                if (project != null) {\n                    commandDir = project.getBaseDir();\n                } else {\n                    return exec(project, cmd, env);\n                }\n            }\n            final int preCmdLength = 7;\n            final String cmdDir = commandDir.getAbsolutePath();\n            String[] newcmd = new String[cmd.length + preCmdLength];\n            newcmd[0] = \"cmd\";\n            newcmd[1] = \"/c\";\n            newcmd[2] = cmdDir.substring(0, 2);\n            newcmd[3] = \"&&\";\n            newcmd[4] = \"cd\";\n            newcmd[5] = cmdDir.substring(2);\n            newcmd[6] = \"&&\";\n            System.arraycopy(cmd, 0, newcmd, preCmdLength, cmd.length);\n\n            return exec(project, newcmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for Windows XP/2000/NT that uses 'cmd.exe' when\n     * launching commands in directories other than the current working\n     * directory.\n     */\n    private static class WinNTCommandLauncher extends CommandLauncherProxy {\n        WinNTCommandLauncher(CommandLauncher launcher) {\n            super(launcher);\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.\n         * @param project the Ant project.\n         * @param cmd the command line to execute as an array of strings.\n         * @param env the environment to set as an array of strings.\n         * @param workingDir working directory where the command should run.\n         * @return the created Process.\n         * @throws IOException forwarded from the exec method of the\n         * command launcher.\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            File commandDir = workingDir;\n            if (workingDir == null) {\n                if (project != null) {\n                    commandDir = project.getBaseDir();\n                } else {\n                    return exec(project, cmd, env);\n                }\n            }\n            final int preCmdLength = 6;\n            String[] newcmd = new String[cmd.length + preCmdLength];\n            newcmd[0] = \"cmd\";\n            newcmd[1] = \"/c\";\n            newcmd[2] = \"cd\";\n            newcmd[3] = \"/d\";\n            newcmd[4] = commandDir.getAbsolutePath();\n            newcmd[5] = \"&&\";\n            System.arraycopy(cmd, 0, newcmd, preCmdLength, cmd.length);\n\n            return exec(project, newcmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for Mac that uses a dodgy mechanism to change\n     * working directory before launching commands.\n     */\n    private static class MacCommandLauncher extends CommandLauncherProxy {\n        MacCommandLauncher(CommandLauncher launcher) {\n            super(launcher);\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.\n         * @param project the Ant project.\n         * @param cmd the command line to execute as an array of strings.\n         * @param env the environment to set as an array of strings.\n         * @param workingDir working directory where the command should run.\n         * @return the created Process.\n         * @throws IOException forwarded from the exec method of the\n         * command launcher.\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            if (workingDir == null) {\n                return exec(project, cmd, env);\n            }\n            System.getProperties().put(\"user.dir\", workingDir.getAbsolutePath());\n            try {\n                return exec(project, cmd, env);\n            } finally {\n                System.getProperties().put(\"user.dir\", antWorkingDirectory);\n            }\n        }\n    }\n\n    /**\n     * A command launcher that uses an auxiliary script to launch commands\n     * in directories other than the current working directory.\n     */\n    private static class ScriptCommandLauncher extends CommandLauncherProxy {\n        ScriptCommandLauncher(String script, CommandLauncher launcher) {\n            super(launcher);\n            myScript = script;\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.\n         * @param project the Ant project.\n         * @param cmd the command line to execute as an array of strings.\n         * @param env the environment to set as an array of strings.\n         * @param workingDir working directory where the command should run.\n         * @return the created Process.\n         * @throws IOException forwarded from the exec method of the\n         * command launcher.\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            if (project == null) {\n                if (workingDir == null) {\n                    return exec(project, cmd, env);\n                }\n                throw new IOException(\"Cannot locate antRun script: \"\n                    + \"No project provided\");\n            }\n            String antHome = project.getProperty(MagicNames.ANT_HOME);\n            if (antHome == null) {\n                throw new IOException(\"Cannot locate antRun script: \"\n                    + \"Property '\" + MagicNames.ANT_HOME + \"' not found\");\n            }\n            String antRun =\n                FILE_UTILS.resolveFile(project.getBaseDir(),\n                        antHome + File.separator + myScript).toString();\n\n            File commandDir = workingDir;\n            if (workingDir == null) {\n                commandDir = project.getBaseDir();\n            }\n            String[] newcmd = new String[cmd.length + 2];\n            newcmd[0] = antRun;\n            newcmd[1] = commandDir.getAbsolutePath();\n            System.arraycopy(cmd, 0, newcmd, 2, cmd.length);\n\n            return exec(project, newcmd, env);\n        }\n\n        private String myScript;\n    }\n\n    /**\n     * A command launcher that uses an auxiliary perl script to launch commands\n     * in directories other than the current working directory.\n     */\n    private static class PerlScriptCommandLauncher\n        extends CommandLauncherProxy {\n        private String myScript;\n\n        PerlScriptCommandLauncher(String script, CommandLauncher launcher) {\n            super(launcher);\n            myScript = script;\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.\n         * @param project the Ant project.\n         * @param cmd the command line to execute as an array of strings.\n         * @param env the environment to set as an array of strings.\n         * @param workingDir working directory where the command should run.\n         * @return the created Process.\n         * @throws IOException forwarded from the exec method of the\n         * command launcher.\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            if (project == null) {\n                if (workingDir == null) {\n                    return exec(project, cmd, env);\n                }\n                throw new IOException(\"Cannot locate antRun script: \"\n                    + \"No project provided\");\n            }\n            String antHome = project.getProperty(MagicNames.ANT_HOME);\n            if (antHome == null) {\n                throw new IOException(\"Cannot locate antRun script: \"\n                    + \"Property '\" + MagicNames.ANT_HOME + \"' not found\");\n            }\n            String antRun =\n                FILE_UTILS.resolveFile(project.getBaseDir(),\n                        antHome + File.separator + myScript).toString();\n\n            File commandDir = workingDir;\n            if (workingDir == null) {\n                commandDir = project.getBaseDir();\n            }\n            String[] newcmd = new String[cmd.length + 3];\n            newcmd[0] = \"perl\";\n            newcmd[1] = antRun;\n            newcmd[2] = commandDir.getAbsolutePath();\n            System.arraycopy(cmd, 0, newcmd, 3, cmd.length);\n\n            return exec(project, newcmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for VMS that writes the command to a temporary DCL\n     * script before launching commands.  This is due to limitations of both\n     * the DCL interpreter and the Java VM implementation.\n     */\n    private static class VmsCommandLauncher extends Java13CommandLauncher {\n\n        public VmsCommandLauncher() throws NoSuchMethodException {\n            super();\n        }\n\n        /**\n         * Launches the given command in a new process.\n         * @param project the Ant project.\n         * @param cmd the command line to execute as an array of strings.\n         * @param env the environment to set as an array of strings.\n         * @return the created Process.\n         * @throws IOException forwarded from the exec method of the\n         * command launcher.\n         */\n        public Process exec(Project project, String[] cmd, String[] env)\n            throws IOException {\n            File cmdFile = createCommandFile(cmd, env);\n            Process p\n                = super.exec(project, new String[] {cmdFile.getPath()}, env);\n            deleteAfter(cmdFile, p);\n            return p;\n        }\n\n        /**\n         * Launches the given command in a new process, in the given working\n         * directory.  Note that under Java 1.3.1, 1.4.0 and 1.4.1 on VMS this\n         * method only works if <code>workingDir</code> is null or the logical\n         * JAVA$FORK_SUPPORT_CHDIR needs to be set to TRUE.\n         * @param project the Ant project.\n         * @param cmd the command line to execute as an array of strings.\n         * @param env the environment to set as an array of strings.\n         * @param workingDir working directory where the command should run.\n         * @return the created Process.\n         * @throws IOException forwarded from the exec method of the\n         * command launcher.\n         */\n        public Process exec(Project project, String[] cmd, String[] env,\n                            File workingDir) throws IOException {\n            File cmdFile = createCommandFile(cmd, env);\n            Process p = super.exec(project, new String[] {cmdFile.getPath()},\n                                   env, workingDir);\n            deleteAfter(cmdFile, p);\n            return p;\n        }\n\n        /*\n         * Writes the command into a temporary DCL script and returns the\n         * corresponding File object.  The script will be deleted on exit.\n         * @param cmd the command line to execute as an array of strings.\n         * @param env the environment to set as an array of strings.\n         * @return the command File.\n         * @throws IOException if errors are encountered creating the file.\n         */\n        private File createCommandFile(String[] cmd, String[] env)\n            throws IOException {\n            File script = FILE_UTILS.createTempFile(\"ANT\", \".COM\", null, true, true);\n            PrintWriter out = null;\n            try {\n                out = new PrintWriter(new FileWriter(script));\n\n                if (env != null) {\n                    int eqIndex;\n                    for (int i = 0; i < env.length; i++) {\n                        eqIndex = env[i].indexOf('=');\n                        if (eqIndex != -1) {\n                            out.print(\"$ DEFINE/NOLOG \");\n                            out.print(env[i].substring(0, eqIndex));\n                            out.print(\" \\\"\");\n                            out.print(env[i].substring(eqIndex + 1));\n                            out.println('\\\"');\n                        }\n                    }\n                }\n                out.print(\"$ \" + cmd[0]);\n                for (int i = 1; i < cmd.length; i++) {\n                    out.println(\" -\");\n                    out.print(cmd[i]);\n                }\n            } finally {\n                if (out != null) {\n                    out.close();\n                }\n            }\n            return script;\n        }\n\n        private void deleteAfter(final File f, final Process p) {\n            new Thread() {\n                public void run() {\n                    try {\n                        p.waitFor();\n                    } catch (InterruptedException e) {\n                    }\n                    FileUtils.delete(f);\n                }\n            }\n            .start();", "functions": [{"function_name": "setSpawn", "code": "    public void setSpawn(boolean spawn) {\n        this.spawn = spawn;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProcEnvironment", "code": "    public static synchronized Vector getProcEnvironment() {\n        if (procEnvironment != null) {\n            return procEnvironment;\n        }\n        procEnvironment = new Vector();\n        try {\n            ByteArrayOutputStream out = new ByteArrayOutputStream();\n            Execute exe = new Execute(new PumpStreamHandler(out));\n            exe.setCommandline(getProcEnvCommand());\n            exe.setNewenvironment(true);\n            int retval = exe.execute();\n            if (retval != 0) {\n            }\n            BufferedReader in =\n                new BufferedReader(new StringReader(toString(out)));\n\n            if (Os.isFamily(\"openvms\")) {\n                procEnvironment = addVMSLogicals(procEnvironment, in);\n                return procEnvironment;\n            }\n            String var = null;\n            String line, lineSep = StringUtils.LINE_SEP;\n            while ((line = in.readLine()) != null) {\n                if (line.indexOf('=') == -1) {\n                    if (var == null) {\n                        var = lineSep + line;\n                    } else {\n                        var += lineSep + line;\n                    }\n                } else {\n                    if (var != null) {\n                        procEnvironment.addElement(var);\n                    }\n                    var = line;\n                }\n            }\n            if (var != null) {\n                procEnvironment.addElement(var);\n            }\n        } catch (java.io.IOException exc) {\n            exc.printStackTrace();\n        }\n        return procEnvironment;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "CATCH", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [0, 15], [3, 16], [5, 17], [6, 18], [9, 19], [11, 20], [2, 21], [2, 22], [15, 23], [3, 24], [16, 25], [4, 26], [17, 27], [6, 28], [18, 29], [18, 30], [8, 31], [9, 32], [19, 33], [10, 34], [20, 35], [12, 36], [21, 37], [22, 38], [13, 39], [14, 40], [5, 41], [28, 42], [30, 43], [9, 44], [34, 45], [39, 46], [28, 47], [28, 48], [42, 49], [42, 50], [44, 51], [45, 52], [28, 53], [47, 54], [48, 55], [50, 56], [54, 57], [55, 58], [47, 59], [48, 60], [48, 61], [60, 62], [61, 63], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 0], [16, 3], [17, 5], [18, 6], [19, 9], [20, 11], [21, 2], [22, 2], [23, 15], [24, 3], [25, 16], [26, 4], [27, 17], [28, 6], [29, 18], [30, 18], [31, 8], [32, 9], [33, 19], [34, 10], [35, 20], [36, 12], [37, 21], [38, 22], [39, 13], [40, 14], [41, 5], [42, 28], [43, 30], [44, 9], [45, 34], [46, 39], [47, 28], [48, 28], [49, 42], [50, 42], [51, 44], [52, 45], [53, 28], [54, 47], [55, 48], [56, 50], [57, 54], [58, 55], [59, 47], [60, 48], [61, 48], [62, 60], [63, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "getProcEnvCommand", "code": "    private static String[] getProcEnvCommand() {\n        if (Os.isFamily(\"os/2\")) {\n            return new String[] {\"cmd\", \"/c\", \"set\" };\n        } else if (Os.isFamily(\"windows\")) {\n            if (Os.isFamily(\"win9x\")) {\n                return new String[] {\"command.com\", \"/c\", \"set\" };\n            } else {\n                return new String[] {\"cmd\", \"/c\", \"set\" };\n            }\n        } else if (Os.isFamily(\"z/os\") || Os.isFamily(\"unix\")) {\n\n            String[] cmd = new String[1];\n            if (new File(\"/bin/env\").canRead()) {\n                cmd[0] = \"/bin/env\";\n            } else if (new File(\"/usr/bin/env\").canRead()) {\n                cmd[0] = \"/usr/bin/env\";\n            } else {\n                cmd[0] = \"env\";\n            }\n            return cmd;\n        } else if (Os.isFamily(\"netware\") || Os.isFamily(\"os/400\")) {\n            return new String[] {\"env\"};\n        } else if (Os.isFamily(\"openvms\")) {\n            return new String[] {\"show\", \"logical\"};\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [1, 6], [3, 7], [4, 8], [4, 9], [2, 10], [5, 11], [8, 12], [8, 13], [4, 14], [4, 15], [4, 16], [9, 17], [9, 18], [10, 19], [12, 20], [8, 21], [13, 22], [13, 23], [15, 24], [15, 25], [17, 26], [18, 27], [10, 28], [10, 29], [19, 30], [6, 31], [6, 32], [6, 33], [12, 34], [12, 35], [20, 36], [22, 37], [23, 38], [24, 39], [25, 40], [25, 41], [34, 42], [39, 43], [39, 44], [15, 45], [16, 46], [21, 47], [24, 48], [24, 49], [45, 50], [28, 51], [28, 52], [28, 53], [29, 54], [29, 55], [29, 56], [35, 57], [35, 58], [48, 59], [49, 60], [45, 61], [48, 62], [49, 63], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 1], [7, 3], [8, 4], [9, 4], [10, 2], [11, 5], [12, 8], [13, 8], [14, 4], [15, 4], [16, 4], [17, 9], [18, 9], [19, 10], [20, 12], [21, 8], [22, 13], [23, 13], [24, 15], [25, 15], [26, 17], [27, 18], [28, 10], [29, 10], [30, 19], [31, 6], [32, 6], [33, 6], [34, 12], [35, 12], [36, 20], [37, 22], [38, 23], [39, 24], [40, 25], [41, 25], [42, 34], [43, 39], [44, 39], [45, 15], [46, 16], [47, 21], [48, 24], [49, 24], [50, 45], [51, 28], [52, 28], [53, 28], [54, 29], [55, 29], [56, 29], [57, 35], [58, 35], [59, 48], [60, 49], [61, 45], [62, 48], [63, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "toString", "code": "    public static String toString(ByteArrayOutputStream bos) {\n        if (Os.isFamily(\"z/os\")) {\n            try {\n                return bos.toString(\"Cp1047\");\n            } catch (java.io.UnsupportedEncodingException e) {\n            }\n        } else if (Os.isFamily(\"os/400\")) {\n            try {\n                return bos.toString(\"Cp500\");\n            } catch (java.io.UnsupportedEncodingException e) {\n            }\n        }\n        return bos.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "IF", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CATCH", "RETURN", "CATCH", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [2, 8], [6, 9], [5, 10], [7, 11], [8, 12], [8, 13], [10, 14], [10, 15], [13, 16], [15, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 2], [9, 6], [10, 5], [11, 7], [12, 8], [13, 8], [14, 10], [15, 10], [16, 13], [17, 15], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setStreamHandler", "code": "    public void setStreamHandler(ExecuteStreamHandler streamHandler) {\n        this.streamHandler = streamHandler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCommandline", "code": "    public String[] getCommandline() {\n        return cmdl;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCommandline", "code": "    public void setCommandline(String[] commandline) {\n        cmdl = commandline;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNewenvironment", "code": "    public void setNewenvironment(boolean newenv) {\n        newEnvironment = newenv;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEnvironment", "code": "    public String[] getEnvironment() {\n        return (env == null || newEnvironment)\n            ? env : patchEnvironment();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setEnvironment", "code": "    public void setEnvironment(String[] env) {\n        this.env = env;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setWorkingDirectory", "code": "    public void setWorkingDirectory(File wd) {\n        workingDirectory =\n            (wd == null || wd.getAbsolutePath().equals(antWorkingDirectory))\n            ? null : wd;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [5, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 5], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getWorkingDirectory", "code": "    public File getWorkingDirectory() {\n        return workingDirectory == null ? new File(antWorkingDirectory)\n                                        : workingDirectory;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setAntRun", "code": "    public void setAntRun(Project project) throws BuildException {\n        this.project = project;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVMLauncher", "code": "    public void setVMLauncher(boolean useVMLauncher) {\n        this.useVMLauncher = useVMLauncher;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "launch", "code": "    public static Process launch(Project project, String[] command,\n                                 String[] env, File dir, boolean useVM)\n        throws IOException {\n        if (dir != null && !dir.exists()) {\n            throw new BuildException(dir + \" doesn't exist.\");\n        }\n        CommandLauncher launcher\n            = ((useVM && vmLauncher != null) ? vmLauncher : shellLauncher);\n        return launcher.exec(project, command, env, dir);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "COND_EXPR", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [2, 11], [3, 12], [10, 13], [10, 14], [11, 15], [12, 16], [14, 17], [15, 18], [16, 19], [18, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 2], [12, 3], [13, 10], [14, 10], [15, 11], [16, 12], [17, 14], [18, 15], [19, 16], [20, 18], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "execute", "code": "    public int execute() throws IOException {\n        if (workingDirectory != null && !workingDirectory.exists()) {\n            throw new BuildException(workingDirectory + \" doesn't exist.\");\n        }\n        final Process process = launch(project, getCommandline(),\n                                       getEnvironment(), workingDirectory,\n                                       useVMLauncher);\n        try {\n            streamHandler.setProcessInputStream(process.getOutputStream());\n            streamHandler.setProcessOutputStream(process.getInputStream());\n            streamHandler.setProcessErrorStream(process.getErrorStream());\n        } catch (IOException e) {\n            process.destroy();\n            throw e;\n        }\n        streamHandler.start();\n\n        try {\n            processDestroyer.add(process);\n\n            if (watchdog != null) {\n                watchdog.start(process);\n            }\n            waitFor(process);\n\n            if (watchdog != null) {\n                watchdog.stop();\n            }\n            streamHandler.stop();\n            closeStreams(process);\n\n            if (watchdog != null) {\n                watchdog.checkException();\n            }\n            return getExitValue();\n        } catch (ThreadDeath t) {\n            process.destroy();\n            throw t;\n        } finally {\n            processDestroyer.remove(process);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "VAR_DECL", "IF", "CATCH", "RETURN", "IF", "IF", "IF", "CALL", "CATCH", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [0, 10], [2, 11], [4, 12], [1, 13], [5, 14], [6, 15], [7, 16], [1, 17], [1, 18], [8, 19], [1, 20], [9, 21], [1, 22], [11, 23], [2, 24], [2, 25], [2, 26], [3, 27], [4, 28], [12, 29], [12, 30], [5, 31], [16, 32], [19, 33], [21, 34], [11, 35], [24, 36], [25, 37], [26, 38], [27, 39], [27, 40], [28, 41], [30, 42], [7, 43], [8, 44], [9, 45], [41, 46], [46, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 0], [11, 2], [12, 4], [13, 1], [14, 5], [15, 6], [16, 7], [17, 1], [18, 1], [19, 8], [20, 1], [21, 9], [22, 1], [23, 11], [24, 2], [25, 2], [26, 2], [27, 3], [28, 4], [29, 12], [30, 12], [31, 5], [32, 16], [33, 19], [34, 21], [35, 11], [36, 24], [37, 25], [38, 26], [39, 27], [40, 27], [41, 28], [42, 30], [43, 7], [44, 8], [45, 9], [46, 41], [47, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "spawn", "code": "    public void spawn() throws IOException {\n        if (workingDirectory != null && !workingDirectory.exists()) {\n            throw new BuildException(workingDirectory + \" doesn't exist.\");\n        }\n        final Process process = launch(project, getCommandline(),\n                                       getEnvironment(), workingDirectory,\n                                       useVMLauncher);\n        if (Os.isFamily(\"windows\")) {\n            try {\n                Thread.sleep(ONE_SECOND);\n            } catch (InterruptedException e) {\n                project.log(\"interruption in the sleep after having spawned a\"\n                            + \" process\", Project.MSG_VERBOSE);\n            }\n        }\n        OutputStream dummyOut = new OutputStream() {\n            public void write(int b) throws IOException {\n            }\n        };\n\n        ExecuteStreamHandler handler = new PumpStreamHandler(dummyOut);\n        handler.setProcessErrorStream(process.getErrorStream());\n        handler.setProcessOutputStream(process.getInputStream());\n        handler.start();\n        process.getOutputStream().close();\n\n        project.log(\"spawned process \" + process.toString(),\n                    Project.MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "CATCH", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [5, 12], [6, 13], [7, 14], [9, 15], [10, 16], [1, 17], [2, 18], [3, 19], [11, 20], [4, 21], [5, 22], [12, 23], [12, 24], [13, 25], [13, 26], [18, 27], [19, 28], [21, 29], [21, 30], [22, 31], [24, 32], [27, 33], [19, 34], [31, 35], [28, 36], [35, 37], [36, 38], [38, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 5], [13, 6], [14, 7], [15, 9], [16, 10], [17, 1], [18, 2], [19, 3], [20, 11], [21, 4], [22, 5], [23, 12], [24, 12], [25, 13], [26, 13], [27, 18], [28, 19], [29, 21], [30, 21], [31, 22], [32, 24], [33, 27], [34, 19], [35, 31], [36, 28], [37, 35], [38, 36], [39, 38], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "waitFor", "code": "    protected void waitFor(Process process) {\n        try {\n            process.waitFor();\n            setExitValue(process.exitValue());\n        } catch (InterruptedException e) {\n            process.destroy();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setExitValue", "code": "    protected void setExitValue(int value) {\n        exitValue = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExitValue", "code": "    public int getExitValue() {\n        return exitValue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isFailure", "code": "    public static boolean isFailure(int exitValue) {\n        return Os.isFamily(\"openvms\")\n            ? (exitValue % 2 == 0) : (exitValue != 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [4, 7], [5, 8], [5, 9], [6, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 4], [8, 5], [9, 5], [10, 6], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "isFailure", "code": "    public boolean isFailure() {\n        return isFailure(getExitValue());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "killedProcess", "code": "    public boolean killedProcess() {\n        return watchdog != null && watchdog.killedProcess();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "patchEnvironment", "code": "    private String[] patchEnvironment() {\n        if (Os.isFamily(\"openvms\")) {\n            return env;\n        }\n        Vector osEnv = (Vector) getProcEnvironment().clone();\n        for (int i = 0; i < env.length; i++) {\n            String keyValue = env[i];\n            String key = keyValue.substring(0, keyValue.indexOf('=') + 1);\n            if (environmentCaseInSensitive) {\n                key = key.toLowerCase();\n            }\n            int size = osEnv.size();\n            for (int j = 0; j < size; j++) {\n                String osEnvItem = (String) osEnv.elementAt(j);\n                String convertedItem = environmentCaseInSensitive\n                    ? osEnvItem.toLowerCase() : osEnvItem;\n                if (convertedItem.startsWith(key)) {\n                    osEnv.removeElementAt(j);\n                    if (environmentCaseInSensitive) {\n                        keyValue = osEnvItem.substring(0, key.length())\n                            + keyValue.substring(key.length());\n                    }\n                    break;\n                }\n            }\n            osEnv.addElement(keyValue);\n        }\n        return (String[]) (osEnv.toArray(new String[osEnv.size()]));", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [1, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [4, 13], [6, 14], [2, 15], [8, 16], [2, 17], [3, 18], [7, 19], [8, 20], [8, 21], [8, 22], [9, 23], [11, 24], [18, 25], [20, 26], [8, 27], [10, 28], [24, 29], [24, 30], [20, 31], [20, 32], [21, 33], [28, 34], [29, 35], [29, 36], [20, 37], [33, 38], [22, 39], [36, 40], [32, 41], [41, 42], [42, 43], [42, 44], [43, 45], [44, 46], [44, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [7, 1], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 4], [14, 6], [15, 2], [16, 8], [17, 2], [18, 3], [19, 7], [20, 8], [21, 8], [22, 8], [23, 9], [24, 11], [25, 18], [26, 20], [27, 8], [28, 10], [29, 24], [30, 24], [31, 20], [32, 20], [33, 21], [34, 28], [35, 29], [36, 29], [37, 20], [38, 33], [39, 22], [40, 36], [41, 32], [42, 41], [43, 42], [44, 42], [45, 43], [46, 44], [47, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "runCommand", "code": "    public static void runCommand(Task task, String[] cmdline)\n        throws BuildException {\n        try {\n            task.log(Commandline.describeCommand(cmdline),\n                     Project.MSG_VERBOSE);\n            Execute exe = new Execute(\n                new LogStreamHandler(task, Project.MSG_INFO, Project.MSG_ERR));\n            exe.setAntRun(task.getProject());\n            exe.setCommandline(cmdline);\n            int retval = exe.execute();\n            if (isFailure(retval)) {\n                throw new BuildException(cmdline[0]\n                    + \" failed with return code \" + retval, task.getLocation());\n            }\n        } catch (java.io.IOException exc) {\n            throw new BuildException(\"Could not launch \" + cmdline[0] + \": \"\n                + exc, task.getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [1, 11], [1, 12], [8, 13], [5, 14], [6, 15], [11, 16], [7, 17], [12, 18], [13, 19], [13, 20], [14, 21], [17, 22], [20, 23], [21, 24], [21, 25], [23, 26], [23, 27], [25, 28], [27, 29], [28, 30], [27, 31], [28, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 1], [12, 1], [13, 8], [14, 5], [15, 6], [16, 11], [17, 7], [18, 12], [19, 13], [20, 13], [21, 14], [22, 17], [23, 20], [24, 21], [25, 21], [26, 23], [27, 23], [28, 25], [29, 27], [30, 28], [31, 27], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "closeStreams", "code": "    public static void closeStreams(Process process) {\n        FileUtils.close(process.getInputStream());\n        FileUtils.close(process.getOutputStream());\n        FileUtils.close(process.getErrorStream());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addVMSLogicals", "code": "    private static Vector addVMSLogicals(Vector environment, BufferedReader in)\n        throws IOException {\n        HashMap logicals = new HashMap();\n        String logName = null, logValue = null, newLogName;\n        String line = null;\n        while ((line = in.readLine()) != null) {\n            if (line.startsWith(\"\\t=\")) {\n                if (logName != null) {\n                    logValue += \",\" + line.substring(4, line.length() - 1);\n                }\n            } else if (line.startsWith(\"  \\\"\")) {\n                if (logName != null) {\n                    logicals.put(logName, logValue);\n                }\n                int eqIndex = line.indexOf('=');\n                newLogName = line.substring(3, eqIndex - 2);\n                if (logicals.containsKey(newLogName)) {\n                    logName = null;\n                } else {\n                    logName = newLogName;\n                    logValue = line.substring(eqIndex + 3, line.length() - 1);\n                }\n            }\n        }\n        if (logName != null) {\n            logicals.put(logName, logValue);\n        }\n        for (Iterator i = logicals.keySet().iterator(); i.hasNext();) {\n            String logical = (String) i.next();\n            environment.add(logical + \"=\" + logicals.get(logical));\n        }\n        return environment;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [4, 12], [2, 13], [11, 14], [4, 15], [12, 16], [12, 17], [5, 18], [6, 19], [6, 20], [7, 21], [2, 22], [2, 23], [3, 24], [15, 25], [15, 26], [17, 27], [22, 28], [23, 29], [25, 30], [15, 31], [26, 32], [28, 33], [28, 34], [13, 35], [25, 36], [25, 37], [25, 38], [30, 39], [31, 40], [34, 41], [36, 42], [25, 43], [38, 44], [40, 45], [43, 46], [37, 47], [44, 48], [31, 49], [36, 50], [36, 51], [36, 52], [46, 53], [46, 54], [47, 55], [38, 56], [49, 57], [50, 58], [52, 59], [53, 60], [57, 61], [57, 62], [58, 63], [58, 64], [61, 65], [61, 66], [63, 67], [63, 68], [64, 69], [65, 70], [65, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 4], [13, 2], [14, 11], [15, 4], [16, 12], [17, 12], [18, 5], [19, 6], [20, 6], [21, 7], [22, 2], [23, 2], [24, 3], [25, 15], [26, 15], [27, 17], [28, 22], [29, 23], [30, 25], [31, 15], [32, 26], [33, 28], [34, 28], [35, 13], [36, 25], [37, 25], [38, 25], [39, 30], [40, 31], [41, 34], [42, 36], [43, 25], [44, 38], [45, 40], [46, 43], [47, 37], [48, 44], [49, 31], [50, 36], [51, 36], [52, 36], [53, 46], [54, 46], [55, 47], [56, 38], [57, 49], [58, 50], [59, 52], [60, 53], [61, 57], [62, 57], [63, 58], [64, 58], [65, 61], [66, 61], [67, 63], [68, 63], [69, 64], [70, 65], [71, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "Execute", "code": "    public Execute() {\n        this(new PumpStreamHandler(), null);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Execute", "code": "    public Execute(ExecuteStreamHandler streamHandler) {\n        this(streamHandler, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Execute", "code": "    public Execute(ExecuteStreamHandler streamHandler,\n                   ExecuteWatchdog watchdog) {\n        setStreamHandler(streamHandler);\n        this.watchdog = watchdog;\n        if (Os.isFamily(\"openvms\")) {\n            useVMLauncher = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [4, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 4], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "xalan-2.7-8543", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/transformer/SerializerSwitcher.java", "language": "java", "name": "org.apache.xalan.transformer.SerializerSwitcher", "code": "public class SerializerSwitcher\n{\n\n  /**\n   * Switch to HTML serializer if element is HTML\n   *\n   *\n   * @param transformer Non-null transformer instance\n   * @param ns Namespace URI of the element\n   * @param localName Local part of name of element\n   *\n   * @throws TransformerException\n   */\n  public static void switchSerializerIfHTML(\n          TransformerImpl transformer, String ns, String localName)\n            throws TransformerException\n  {\n\n    if (null == transformer)\n      return;\n\n    if (((null == ns) || (ns.length() == 0))\n            && localName.equalsIgnoreCase(\"html\"))\n    {\n      if (null != transformer.getOutputPropertyNoDefault(OutputKeys.METHOD))\n        return;\n\n      Properties prevProperties = transformer.getOutputFormat().getProperties();\n      \n      OutputProperties htmlOutputProperties = new OutputProperties(Method.HTML);\n\n      htmlOutputProperties.copyFrom(prevProperties, true);\n      Properties htmlProperties = htmlOutputProperties.getProperties();\n\n      try\n      {\n        Serializer oldSerializer = null;\n\n        if (null != oldSerializer)\n        {\n          Serializer serializer =\n            SerializerFactory.getSerializer(htmlProperties);\n\n          Writer writer = oldSerializer.getWriter();\n\n          if (null != writer)\n            serializer.setWriter(writer);\n          else\n          {\n            OutputStream os = oldSerializer.getOutputStream();\n\n            if (null != os)\n              serializer.setOutputStream(os);\n          }\n\n\n          ContentHandler ch = serializer.asContentHandler();\n\n          transformer.setContentHandler(ch);\n        }\n      }\n      catch (java.io.IOException e)\n      {\n        throw new TransformerException(e);\n      }\n    }\n  }\n  \n  /**\n   * Get the value of a property, without using the default properties.  This \n   * can be used to test if a property has been explicitly set by the stylesheet \n   * or user.\n   *\n   * @param name The property name, which is a fully-qualified URI.\n   *\n   * @return The value of the property, or null if not found.\n   *\n   * @throws IllegalArgumentException If the property is not supported, \n   * and is not namespaced.\n   */\n  private static String getOutputPropertyNoDefault(String qnameString, Properties props)\n    throws IllegalArgumentException\n  {    \n    String value = (String)props.get(qnameString);\n    \n    return value;\n  }\n  \n  /**\n   * Switch to HTML serializer if element is HTML\n   *\n   *\n   * @param ns Namespace URI of the element\n   * @param localName Local part of name of element\n   *\n   * @throws TransformerException\n   * @return new contentHandler.\n   */\n  public static Serializer switchSerializerIfHTML(\n          String ns, String localName, Properties props, Serializer oldSerializer)\n            throws TransformerException\n  {\n    Serializer newSerializer = oldSerializer;\n\n    if (((null == ns) || (ns.length() == 0))\n            && localName.equalsIgnoreCase(\"html\"))\n    {\n      if (null != getOutputPropertyNoDefault(OutputKeys.METHOD, props))\n        return newSerializer;\n\n      Properties prevProperties = props;\n      \n      OutputProperties htmlOutputProperties = new OutputProperties(Method.HTML);\n\n      htmlOutputProperties.copyFrom(prevProperties, true);\n      Properties htmlProperties = htmlOutputProperties.getProperties();\n\n      {\n        if (null != oldSerializer)\n        {\n          Serializer serializer =\n            SerializerFactory.getSerializer(htmlProperties);\n\n          Writer writer = oldSerializer.getWriter();\n\n          if (null != writer)\n            serializer.setWriter(writer);\n          else\n          {\n            OutputStream os = serializer.getOutputStream();\n\n            if (null != os)\n              serializer.setOutputStream(os);\n          }\n          newSerializer = serializer;\n        }\n      }\n    }\n    return newSerializer;", "functions": [{"function_name": "switchSerializerIfHTML", "code": "  public static void switchSerializerIfHTML(\n          TransformerImpl transformer, String ns, String localName)\n            throws TransformerException\n  {\n\n    if (null == transformer)\n      return;\n\n    if (((null == ns) || (ns.length() == 0))\n            && localName.equalsIgnoreCase(\"html\"))\n    {\n      if (null != transformer.getOutputPropertyNoDefault(OutputKeys.METHOD))\n        return;\n\n      Properties prevProperties = transformer.getOutputFormat().getProperties();\n      \n      OutputProperties htmlOutputProperties = new OutputProperties(Method.HTML);\n\n      htmlOutputProperties.copyFrom(prevProperties, true);\n      Properties htmlProperties = htmlOutputProperties.getProperties();\n\n      try\n      {\n        Serializer oldSerializer = null;\n\n        if (null != oldSerializer)\n        {\n          Serializer serializer =\n            SerializerFactory.getSerializer(htmlProperties);\n\n          Writer writer = oldSerializer.getWriter();\n\n          if (null != writer)\n            serializer.setWriter(writer);\n          else\n          {\n            OutputStream os = oldSerializer.getOutputStream();\n\n            if (null != os)\n              serializer.setOutputStream(os);\n          }\n\n\n          ContentHandler ch = serializer.asContentHandler();\n\n          transformer.setContentHandler(ch);\n        }\n      }\n      catch (java.io.IOException e)\n      {\n        throw new TransformerException(e);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [6, 14], [6, 15], [8, 16], [9, 17], [9, 18], [9, 19], [1, 20], [13, 21], [13, 22], [14, 23], [15, 24], [15, 25], [17, 26], [18, 27], [10, 28], [20, 29], [11, 30], [12, 31], [22, 32], [22, 33], [24, 34], [24, 35], [25, 36], [26, 37], [18, 38], [18, 39], [18, 40], [18, 41], [27, 42], [19, 43], [31, 44], [18, 45], [39, 46], [38, 47], [39, 48], [39, 49], [39, 50], [46, 51], [40, 52], [41, 53], [48, 54], [48, 55], [54, 56], [49, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 6], [15, 6], [16, 8], [17, 9], [18, 9], [19, 9], [20, 1], [21, 13], [22, 13], [23, 14], [24, 15], [25, 15], [26, 17], [27, 18], [28, 10], [29, 20], [30, 11], [31, 12], [32, 22], [33, 22], [34, 24], [35, 24], [36, 25], [37, 26], [38, 18], [39, 18], [40, 18], [41, 18], [42, 27], [43, 19], [44, 31], [45, 18], [46, 39], [47, 38], [48, 39], [49, 39], [50, 39], [51, 46], [52, 40], [53, 41], [54, 48], [55, 48], [56, 54], [57, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "getOutputPropertyNoDefault", "code": "  private static String getOutputPropertyNoDefault(String qnameString, Properties props)\n    throws IllegalArgumentException\n  {    \n    String value = (String)props.get(qnameString);\n    \n    return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "switchSerializerIfHTML", "code": "  public static Serializer switchSerializerIfHTML(\n          String ns, String localName, Properties props, Serializer oldSerializer)\n            throws TransformerException\n  {\n    Serializer newSerializer = oldSerializer;\n\n    if (((null == ns) || (ns.length() == 0))\n            && localName.equalsIgnoreCase(\"html\"))\n    {\n      if (null != getOutputPropertyNoDefault(OutputKeys.METHOD, props))\n        return newSerializer;\n\n      Properties prevProperties = props;\n      \n      OutputProperties htmlOutputProperties = new OutputProperties(Method.HTML);\n\n      htmlOutputProperties.copyFrom(prevProperties, true);\n      Properties htmlProperties = htmlOutputProperties.getProperties();\n\n      {\n        if (null != oldSerializer)\n        {\n          Serializer serializer =\n            SerializerFactory.getSerializer(htmlProperties);\n\n          Writer writer = oldSerializer.getWriter();\n\n          if (null != writer)\n            serializer.setWriter(writer);\n          else\n          {\n            OutputStream os = serializer.getOutputStream();\n\n            if (null != os)\n              serializer.setOutputStream(os);\n          }\n          newSerializer = serializer;\n        }\n      }\n    }\n    return newSerializer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [8, 13], [8, 14], [2, 15], [2, 16], [12, 17], [12, 18], [13, 19], [14, 20], [14, 21], [15, 22], [9, 23], [16, 24], [10, 25], [18, 26], [18, 27], [20, 28], [20, 29], [21, 30], [15, 31], [15, 32], [15, 33], [22, 34], [15, 35], [31, 36], [31, 37], [31, 38], [31, 39], [36, 40], [32, 41], [33, 42], [37, 43], [37, 44], [43, 45], [38, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 8], [14, 8], [15, 2], [16, 2], [17, 12], [18, 12], [19, 13], [20, 14], [21, 14], [22, 15], [23, 9], [24, 16], [25, 10], [26, 18], [27, 18], [28, 20], [29, 20], [30, 21], [31, 15], [32, 15], [33, 15], [34, 22], [35, 15], [36, 31], [37, 31], [38, 31], [39, 31], [40, 36], [41, 32], [42, 33], [43, 37], [44, 37], [45, 43], [46, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}], "label": 1}
{"sample_id": "camel-1.6-2906", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/freemarker/NoCacheStorage.java", "language": "java", "name": "org.apache.camel.component.freemarker.NoCacheStorage", "code": "public class NoCacheStorage implements CacheStorage {\n\n    public Object get(Object key) {\n        return null;\n    }\n\n    public void put(Object key, Object value) {\n    }\n\n    public void remove(Object key) {\n    }\n\n    public void clear() {", "functions": [{"function_name": "get", "code": "    public Object get(Object key) {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "put", "code": "    public void put(Object key, Object value) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "remove", "code": "    public void remove(Object key) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clear", "code": "    public void clear() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.5-5952", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/dev/HSSF.java", "language": "java", "name": "org.apache.poi.hssf.dev.HSSF", "code": "public class HSSF\n{\n    private String         filename     = null;\n\n    private InputStream    stream       = null;\n    private Record[]       records      = null;\n    protected HSSFWorkbook hssfworkbook = null;\n\n    /**\n     * Constructor HSSF - creates an HSSFStream from an InputStream.  The HSSFStream\n     * reads in the records allowing modification.\n     *\n     *\n     * @param filename\n     *\n     * @exception IOException\n     *\n     */\n\n    public HSSF(String filename)\n        throws IOException\n    {\n        this.filename = filename;\n        POIFSFileSystem fs =\n            new POIFSFileSystem(new FileInputStream(filename));\n\n        hssfworkbook = new HSSFWorkbook(fs);\n\n    }\n\n    /**\n     * Constructor HSSF - given a filename this outputs a sample sheet with just\n     * a set of rows/cells.\n     *\n     *\n     * @param filename\n     * @param write\n     *\n     * @exception IOException\n     *\n     */\n\n    public HSSF(String filename, boolean write)\n        throws IOException\n    {\n        short            rownum = 0;\n        FileOutputStream out    = new FileOutputStream(filename);\n        HSSFWorkbook     wb     = new HSSFWorkbook();\n        HSSFSheet        s      = wb.createSheet();\n        HSSFRow          r      = null;\n        HSSFCell         c      = null;\n        HSSFCellStyle    cs     = wb.createCellStyle();\n        HSSFCellStyle    cs2    = wb.createCellStyle();\n        HSSFCellStyle    cs3    = wb.createCellStyle();\n        HSSFFont         f      = wb.createFont();\n        HSSFFont         f2     = wb.createFont();\n\n        f.setFontHeightInPoints(( short ) 12);\n        f.setColor(( short ) 0xA);\n        f.setBoldweight(f.BOLDWEIGHT_BOLD);\n        f2.setFontHeightInPoints(( short ) 10);\n        f2.setColor(( short ) 0xf);\n        f2.setBoldweight(f2.BOLDWEIGHT_BOLD);\n        cs.setFont(f);\n        cs.setDataFormat(HSSFDataFormat.getBuiltinFormat(\"($#,##0_);[Red]($#,##0)\"));\n        cs2.setBorderBottom(cs2.BORDER_THIN);\n        cs2.setFillForegroundColor(( short ) 0xA);\n        cs2.setFont(f2);\n        wb.setSheetName(0, \"HSSF Test\");\n        for (rownum = ( short ) 0; rownum < 300; rownum++)\n        {\n            r = s.createRow(rownum);\n            if ((rownum % 2) == 0)\n            {\n                r.setHeight(( short ) 0x249);\n            }\n\n            for (short cellnum = ( short ) 0; cellnum < 50; cellnum += 2)\n            {\n                c = r.createCell(cellnum, HSSFCell.CELL_TYPE_NUMERIC);\n                c.setCellValue(rownum * 10000 + cellnum\n                               + ((( double ) rownum / 1000)\n                                  + (( double ) cellnum / 10000)));\n                if ((rownum % 2) == 0)\n                {\n                    c.setCellStyle(cs);\n                }\n                c = r.createCell(( short ) (cellnum + 1),\n                                 HSSFCell.CELL_TYPE_STRING);\n                c.setCellValue(\"TEST\");\n                s.setColumnWidth(( short ) (cellnum + 1),\n                                 ( short ) ((50 * 8) / (( double ) 1 / 20)));\n                if ((rownum % 2) == 0)\n                {\n                    c.setCellStyle(cs2);\n                }\n\t\t\t}\n        }\n\n        rownum++;\n        rownum++;\n        r = s.createRow(rownum);\n        cs3.setBorderBottom(cs3.BORDER_THICK);\n        for (short cellnum = ( short ) 0; cellnum < 50; cellnum++)\n        {\n            c = r.createCell(cellnum, HSSFCell.CELL_TYPE_BLANK);\n\n            c.setCellStyle(cs3);\n        }\n        s.addMergedRegion(new Region(( short ) 0, ( short ) 0, ( short ) 3,\n                                     ( short ) 3));\n        s.addMergedRegion(new Region(( short ) 100, ( short ) 100,\n                                     ( short ) 110, ( short ) 110));\n\n        s = wb.createSheet();\n        wb.setSheetName(1, \"DeletedSheet\");\n        wb.removeSheetAt(1);\n\n        wb.write(out);\n        out.close();\n    }\n\n    /**\n     * Constructor HSSF - takes in file - attempts to read it then reconstruct it\n     *\n     *\n     * @param infile\n     * @param outfile\n     * @param write\n     *\n     * @exception IOException\n     *\n     */\n\n    public HSSF(String infile, String outfile, boolean write)\n        throws IOException\n    {\n        this.filename = filename;\n        POIFSFileSystem fs =\n            new POIFSFileSystem(new FileInputStream(filename));\n\n        hssfworkbook = new HSSFWorkbook(fs);\n\n    }\n\n    /**\n     * Method main\n     *\n     * Given 1 argument takes that as the filename, inputs it and dumps the\n     * cell values/types out to sys.out\n     *\n     * given 2 arguments where the second argument is the word \"write\" and the\n     * first is the filename - writes out a sample (test) spreadsheet (see\n     * public HSSF(String filename, boolean write)).\n     *\n     * given 2 arguments where the first is an input filename and the second\n     * an output filename (not write), attempts to fully read in the\n     * spreadsheet and fully write it out.\n     *\n     * given 3 arguments where the first is an input filename and the second an\n     * output filename (not write) and the third is \"modify1\", attempts to read in the\n     * spreadsheet, deletes rows 0-24, 74-99.  Changes cell at row 39, col 3 to\n     * \"MODIFIED CELL\" then writes it out.  Hence this is \"modify test 1\".  If you\n     * take the output from the write test, you'll have a valid scenario.\n     *\n     * @param args\n     *\n     */\n\n    public static void main(String [] args)\n    {\n        if (args.length < 2)\n        {\n\n/*            try\n            {\n                HSSF hssf = new HSSF(args[ 0 ]);\n\n                System.out.println(\"Data dump:\\n\");\n                HSSFWorkbook wb = hssf.hssfworkbook;\n\n                for (int k = 0; k < wb.getNumberOfSheets(); k++)\n                {\n                    System.out.println(\"Sheet \" + k);\n                    HSSFSheet sheet = wb.getSheetAt(k);\n                    int       rows  = sheet.getPhysicalNumberOfRows();\n\n                    for (int r = 0; r < rows; r++)\n                    {\n                        HSSFRow row   = sheet.getPhysicalRowAt(r);\n                        int     cells = row.getPhysicalNumberOfCells();\n\n                        System.out.println(\"ROW \" + row.getRowNum());\n                        for (int c = 0; c < cells; c++)\n                        {\n                            HSSFCell cell  = row.getPhysicalCellAt(c);\n                            String   value = null;\n\n                            switch (cell.getCellType())\n                            {\n\n                                case HSSFCell.CELL_TYPE_FORMULA :\n                                    value = \"FORMULA \";\n                                    break;\n\n                                case HSSFCell.CELL_TYPE_NUMERIC :\n                                    value = \"NUMERIC value=\"\n                                            + cell.getNumericCellValue();\n                                    break;\n\n                                case HSSFCell.CELL_TYPE_STRING :\n                                    value = \"STRING value=\"\n                                            + cell.getStringCellValue();\n                                    break;\n\n                                default :\n                            }\n                            System.out.println(\"CELL col=\"\n                                               + cell.getCellNum()\n                                               + \" VALUE=\" + value);\n                        }\n                    }\n                }\n            }\n            catch (Exception e)\n            {\n                e.printStackTrace();\n            }*/\n        }\n        else if (args.length == 2)\n        {\n            if (args[ 1 ].toLowerCase().equals(\"write\"))\n            {\n                System.out.println(\"Write mode\");\n                try\n                {\n                    long time = System.currentTimeMillis();\n                    HSSF hssf = new HSSF(args[ 0 ], true);\n\n                    System.out\n                        .println(\"\" + (System.currentTimeMillis() - time)\n                                 + \" ms generation time\");\n                }\n                catch (Exception e)\n                {\n                    e.printStackTrace();\n                }\n            }\n            else\n            {\n                System.out.println(\"readwrite test\");\n                try\n                {\n                    HSSF             hssf   = new HSSF(args[ 0 ]);\n\n                    HSSFWorkbook     wb     = hssf.hssfworkbook;\n                    FileOutputStream stream = new FileOutputStream(args[ 1 ]);\n\n                    wb.write(stream);\n                    stream.close();\n                }\n                catch (Exception e)\n                {\n                    e.printStackTrace();\n                }\n            }\n        }\n        else if ((args.length == 3)\n                 && args[ 2 ].toLowerCase().equals(\"modify1\"))\n        {\n            try{\n                HSSF             hssf   = new HSSF(args[ 0 ]);\n\n                HSSFWorkbook     wb     = hssf.hssfworkbook;\n                FileOutputStream stream = new FileOutputStream(args[ 1 ]);\n                HSSFSheet        sheet  = wb.getSheetAt(0);\n\n                for (int k = 0; k < 25; k++)\n                {\n                    HSSFRow row = sheet.getRow(k);\n\n                    sheet.removeRow(row);\n                }\n                for (int k = 74; k < 100; k++)\n                {\n                    HSSFRow row = sheet.getRow(k);\n\n                    sheet.removeRow(row);\n                }\n                HSSFRow  row  = sheet.getRow(39);\n                HSSFCell cell = row.getCell(( short ) 3);\n\n                cell.setCellType(HSSFCell.CELL_TYPE_STRING);\n                cell.setCellValue(\"MODIFIED CELL!!!!!\");\n\n                wb.write(stream);\n                stream.close();\n            }\n            catch (Exception e)\n            {\n                e.printStackTrace();", "functions": [{"function_name": "main", "code": "    public static void main(String [] args)\n    {\n        if (args.length < 2)\n        {\n\n/*            try\n            {\n                HSSF hssf = new HSSF(args[ 0 ]);\n\n                System.out.println(\"Data dump:\\n\");\n                HSSFWorkbook wb = hssf.hssfworkbook;\n\n                for (int k = 0; k < wb.getNumberOfSheets(); k++)\n                {\n                    System.out.println(\"Sheet \" + k);\n                    HSSFSheet sheet = wb.getSheetAt(k);\n                    int       rows  = sheet.getPhysicalNumberOfRows();\n\n                    for (int r = 0; r < rows; r++)\n                    {\n                        HSSFRow row   = sheet.getPhysicalRowAt(r);\n                        int     cells = row.getPhysicalNumberOfCells();\n\n                        System.out.println(\"ROW \" + row.getRowNum());\n                        for (int c = 0; c < cells; c++)\n                        {\n                            HSSFCell cell  = row.getPhysicalCellAt(c);\n                            String   value = null;\n\n                            switch (cell.getCellType())\n                            {\n\n                                case HSSFCell.CELL_TYPE_FORMULA :\n                                    value = \"FORMULA \";\n                                    break;\n\n                                case HSSFCell.CELL_TYPE_NUMERIC :\n                                    value = \"NUMERIC value=\"\n                                            + cell.getNumericCellValue();\n                                    break;\n\n                                case HSSFCell.CELL_TYPE_STRING :\n                                    value = \"STRING value=\"\n                                            + cell.getStringCellValue();\n                                    break;\n\n                                default :\n                            }\n                            System.out.println(\"CELL col=\"\n                                               + cell.getCellNum()\n                                               + \" VALUE=\" + value);\n                        }\n                    }\n                }\n            }\n            catch (Exception e)\n            {\n                e.printStackTrace();\n            }*/\n        }\n        else if (args.length == 2)\n        {\n            if (args[ 1 ].toLowerCase().equals(\"write\"))\n            {\n                System.out.println(\"Write mode\");\n                try\n                {\n                    long time = System.currentTimeMillis();\n                    HSSF hssf = new HSSF(args[ 0 ], true);\n\n                    System.out\n                        .println(\"\" + (System.currentTimeMillis() - time)\n                                 + \" ms generation time\");\n                }\n                catch (Exception e)\n                {\n                    e.printStackTrace();\n                }\n            }\n            else\n            {\n                System.out.println(\"readwrite test\");\n                try\n                {\n                    HSSF             hssf   = new HSSF(args[ 0 ]);\n\n                    HSSFWorkbook     wb     = hssf.hssfworkbook;\n                    FileOutputStream stream = new FileOutputStream(args[ 1 ]);\n\n                    wb.write(stream);\n                    stream.close();\n                }\n                catch (Exception e)\n                {\n                    e.printStackTrace();\n                }\n            }\n        }\n        else if ((args.length == 3)\n                 && args[ 2 ].toLowerCase().equals(\"modify1\"))\n        {\n            try{\n                HSSF             hssf   = new HSSF(args[ 0 ]);\n\n                HSSFWorkbook     wb     = hssf.hssfworkbook;\n                FileOutputStream stream = new FileOutputStream(args[ 1 ]);\n                HSSFSheet        sheet  = wb.getSheetAt(0);\n\n                for (int k = 0; k < 25; k++)\n                {\n                    HSSFRow row = sheet.getRow(k);\n\n                    sheet.removeRow(row);\n                }\n                for (int k = 74; k < 100; k++)\n                {\n                    HSSFRow row = sheet.getRow(k);\n\n                    sheet.removeRow(row);\n                }\n                HSSFRow  row  = sheet.getRow(39);\n                HSSFCell cell = row.getCell(( short ) 3);\n\n                cell.setCellType(HSSFCell.CELL_TYPE_STRING);\n                cell.setCellValue(\"MODIFIED CELL!!!!!\");\n\n                wb.write(stream);\n                stream.close();\n            }\n            catch (Exception e)\n            {\n                e.printStackTrace();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "TRY", "BINARY_OP", "CATCH", "VAR_DECL", "VAR_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "TRY", "TRY", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CATCH", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [5, 8], [3, 9], [6, 10], [5, 11], [8, 12], [11, 13], [11, 14], [11, 15], [11, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [8, 22], [8, 23], [12, 24], [9, 25], [9, 26], [9, 27], [9, 28], [11, 29], [11, 30], [11, 31], [11, 32], [16, 33], [17, 34], [22, 35], [8, 36], [25, 37], [25, 38], [25, 39], [25, 40], [9, 41], [26, 42], [26, 43], [26, 44], [9, 45], [27, 46], [9, 47], [13, 48], [31, 49], [14, 50], [15, 51], [16, 52], [33, 53], [17, 54], [34, 55], [18, 56], [19, 57], [21, 58], [25, 59], [25, 60], [41, 61], [26, 62], [45, 63], [51, 64], [16, 65], [16, 66], [17, 67], [17, 68], [56, 69], [37, 70], [38, 71], [40, 72], [42, 73], [62, 74], [43, 75], [44, 76], [50, 77], [52, 78], [54, 79], [74, 80], [74, 81], [75, 82], [57, 83], [58, 84], [81, 85], [81, 86], [71, 87], [72, 88], [85, 89], [75, 90], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 5], [9, 3], [10, 6], [11, 5], [12, 8], [13, 11], [14, 11], [15, 11], [16, 11], [17, 11], [18, 11], [19, 11], [20, 11], [21, 11], [22, 8], [23, 8], [24, 12], [25, 9], [26, 9], [27, 9], [28, 9], [29, 11], [30, 11], [31, 11], [32, 11], [33, 16], [34, 17], [35, 22], [36, 8], [37, 25], [38, 25], [39, 25], [40, 25], [41, 9], [42, 26], [43, 26], [44, 26], [45, 9], [46, 27], [47, 9], [48, 13], [49, 31], [50, 14], [51, 15], [52, 16], [53, 33], [54, 17], [55, 34], [56, 18], [57, 19], [58, 21], [59, 25], [60, 25], [61, 41], [62, 26], [63, 45], [64, 51], [65, 16], [66, 16], [67, 17], [68, 17], [69, 56], [70, 37], [71, 38], [72, 40], [73, 42], [74, 62], [75, 43], [76, 44], [77, 50], [78, 52], [79, 54], [80, 74], [81, 74], [82, 75], [83, 57], [84, 58], [85, 81], [86, 81], [87, 71], [88, 72], [89, 85], [90, 75], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "HSSF", "code": "    public HSSF(String filename)\n        throws IOException\n    {\n        this.filename = filename;\n        POIFSFileSystem fs =\n            new POIFSFileSystem(new FileInputStream(filename));\n\n        hssfworkbook = new HSSFWorkbook(fs);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "HSSF", "code": "    public HSSF(String filename, boolean write)\n        throws IOException\n    {\n        short            rownum = 0;\n        FileOutputStream out    = new FileOutputStream(filename);\n        HSSFWorkbook     wb     = new HSSFWorkbook();\n        HSSFSheet        s      = wb.createSheet();\n        HSSFRow          r      = null;\n        HSSFCell         c      = null;\n        HSSFCellStyle    cs     = wb.createCellStyle();\n        HSSFCellStyle    cs2    = wb.createCellStyle();\n        HSSFCellStyle    cs3    = wb.createCellStyle();\n        HSSFFont         f      = wb.createFont();\n        HSSFFont         f2     = wb.createFont();\n\n        f.setFontHeightInPoints(( short ) 12);\n        f.setColor(( short ) 0xA);\n        f.setBoldweight(f.BOLDWEIGHT_BOLD);\n        f2.setFontHeightInPoints(( short ) 10);\n        f2.setColor(( short ) 0xf);\n        f2.setBoldweight(f2.BOLDWEIGHT_BOLD);\n        cs.setFont(f);\n        cs.setDataFormat(HSSFDataFormat.getBuiltinFormat(\"($#,##0_);[Red]($#,##0)\"));\n        cs2.setBorderBottom(cs2.BORDER_THIN);\n        cs2.setFillForegroundColor(( short ) 0xA);\n        cs2.setFont(f2);\n        wb.setSheetName(0, \"HSSF Test\");\n        for (rownum = ( short ) 0; rownum < 300; rownum++)\n        {\n            r = s.createRow(rownum);\n            if ((rownum % 2) == 0)\n            {\n                r.setHeight(( short ) 0x249);\n            }\n\n            for (short cellnum = ( short ) 0; cellnum < 50; cellnum += 2)\n            {\n                c = r.createCell(cellnum, HSSFCell.CELL_TYPE_NUMERIC);\n                c.setCellValue(rownum * 10000 + cellnum\n                               + ((( double ) rownum / 1000)\n                                  + (( double ) cellnum / 10000)));\n                if ((rownum % 2) == 0)\n                {\n                    c.setCellStyle(cs);\n                }\n                c = r.createCell(( short ) (cellnum + 1),\n                                 HSSFCell.CELL_TYPE_STRING);\n                c.setCellValue(\"TEST\");\n                s.setColumnWidth(( short ) (cellnum + 1),\n                                 ( short ) ((50 * 8) / (( double ) 1 / 20)));\n                if ((rownum % 2) == 0)\n                {\n                    c.setCellStyle(cs2);\n                }\n\t\t\t}\n        }\n\n        rownum++;\n        rownum++;\n        r = s.createRow(rownum);\n        cs3.setBorderBottom(cs3.BORDER_THICK);\n        for (short cellnum = ( short ) 0; cellnum < 50; cellnum++)\n        {\n            c = r.createCell(cellnum, HSSFCell.CELL_TYPE_BLANK);\n\n            c.setCellStyle(cs3);\n        }\n        s.addMergedRegion(new Region(( short ) 0, ( short ) 0, ( short ) 3,\n                                     ( short ) 3));\n        s.addMergedRegion(new Region(( short ) 100, ( short ) 100,\n                                     ( short ) 110, ( short ) 110));\n\n        s = wb.createSheet();\n        wb.setSheetName(1, \"DeletedSheet\");\n        wb.removeSheetAt(1);\n\n        wb.write(out);\n        out.close();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LOOP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [1, 23], [0, 24], [0, 25], [2, 26], [2, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [18, 40], [19, 41], [19, 42], [20, 43], [21, 44], [22, 45], [23, 46], [25, 47], [2, 48], [2, 49], [26, 50], [28, 51], [28, 52], [32, 53], [3, 54], [4, 55], [5, 56], [6, 57], [7, 58], [8, 59], [9, 60], [10, 61], [11, 62], [12, 63], [13, 64], [1, 65], [1, 66], [48, 67], [48, 68], [49, 69], [2, 70], [27, 71], [30, 72], [53, 73], [35, 74], [36, 75], [38, 76], [39, 77], [44, 78], [44, 79], [44, 80], [44, 81], [45, 82], [45, 83], [45, 84], [45, 85], [66, 86], [1, 87], [48, 88], [48, 89], [67, 90], [68, 91], [69, 92], [69, 93], [70, 94], [88, 95], [48, 96], [48, 97], [48, 98], [89, 99], [48, 100], [48, 101], [49, 102], [93, 103], [95, 104], [95, 105], [97, 106], [98, 107], [99, 108], [99, 109], [100, 110], [101, 111], [48, 112], [88, 113], [105, 114], [96, 115], [96, 116], [89, 117], [109, 118], [110, 119], [110, 120], [102, 121], [115, 122], [115, 123], [116, 124], [107, 125], [119, 126], [119, 127], [120, 128], [122, 129], [123, 130], [123, 131], [125, 132], [126, 133], [127, 134], [128, 135], [122, 136], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 1], [24, 0], [25, 0], [26, 2], [27, 2], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 18], [41, 19], [42, 19], [43, 20], [44, 21], [45, 22], [46, 23], [47, 25], [48, 2], [49, 2], [50, 26], [51, 28], [52, 28], [53, 32], [54, 3], [55, 4], [56, 5], [57, 6], [58, 7], [59, 8], [60, 9], [61, 10], [62, 11], [63, 12], [64, 13], [65, 1], [66, 1], [67, 48], [68, 48], [69, 49], [70, 2], [71, 27], [72, 30], [73, 53], [74, 35], [75, 36], [76, 38], [77, 39], [78, 44], [79, 44], [80, 44], [81, 44], [82, 45], [83, 45], [84, 45], [85, 45], [86, 66], [87, 1], [88, 48], [89, 48], [90, 67], [91, 68], [92, 69], [93, 69], [94, 70], [95, 88], [96, 48], [97, 48], [98, 48], [99, 89], [100, 48], [101, 48], [102, 49], [103, 93], [104, 95], [105, 95], [106, 97], [107, 98], [108, 99], [109, 99], [110, 100], [111, 101], [112, 48], [113, 88], [114, 105], [115, 96], [116, 96], [117, 89], [118, 109], [119, 110], [120, 110], [121, 102], [122, 115], [123, 115], [124, 116], [125, 107], [126, 119], [127, 119], [128, 120], [129, 122], [130, 123], [131, 123], [132, 125], [133, 126], [134, 127], [135, 128], [136, 122], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136]]}, {"function_name": "HSSF", "code": "    public HSSF(String infile, String outfile, boolean write)\n        throws IOException\n    {\n        this.filename = filename;\n        POIFSFileSystem fs =\n            new POIFSFileSystem(new FileInputStream(filename));\n\n        hssfworkbook = new HSSFWorkbook(fs);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 1}
{"sample_id": "ivy-2.0-3374", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/module/descriptor/License.java", "language": "java", "name": "org.apache.ivy.core.module.descriptor.License", "code": "public class License {\n    private String name;\n\n    private String url;\n\n    public License(String name, String url) {\n        this.name = name;\n        this.url = url;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public String getUrl() {\n        return url;", "functions": [{"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getUrl", "code": "    public String getUrl() {\n        return url;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "License", "code": "    public License(String name, String url) {\n        this.name = name;\n        this.url = url;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-2829", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/UnitOfWorkProcessor.java", "language": "java", "name": "org.apache.camel.processor.UnitOfWorkProcessor", "code": "public final class UnitOfWorkProcessor extends DelegateAsyncProcessor {\n\n    public UnitOfWorkProcessor(AsyncProcessor processor) {\n        super(processor);\n    }\n    \n    @Override\n    public String toString() {\n        return \"UnitOfWrok(\" + processor + \")\";\n    }\n    \n    public boolean process(final Exchange exchange, final AsyncCallback callback) {\n        if (exchange.getUnitOfWork() == null) {\n            final DefaultUnitOfWork uow = new DefaultUnitOfWork();\n            exchange.setUnitOfWork(uow);\n            try {\n                uow.start();\n            } catch (Exception e) {\n                throw wrapRuntimeCamelException(e);\n            }\n            return processor.process(exchange, new AsyncCallback() {\n                public void done(boolean sync) {\n                    callback.done(sync);\n                    exchange.getUnitOfWork().done(exchange);\n                    try {\n                        uow.stop();\n                    } catch (Exception e) {\n                        throw wrapRuntimeCamelException(e);\n                    }\n                    exchange.setUnitOfWork(null);\n                }\n            });\n        } else {\n            return processor.process(exchange, callback);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"UnitOfWrok(\" + processor + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "process", "code": "    public boolean process(final Exchange exchange, final AsyncCallback callback) {\n        if (exchange.getUnitOfWork() == null) {\n            final DefaultUnitOfWork uow = new DefaultUnitOfWork();\n            exchange.setUnitOfWork(uow);\n            try {\n                uow.start();\n            } catch (Exception e) {\n                throw wrapRuntimeCamelException(e);\n            }\n            return processor.process(exchange, new AsyncCallback() {\n                public void done(boolean sync) {\n                    callback.done(sync);\n                    exchange.getUnitOfWork().done(exchange);\n                    try {\n                        uow.stop();\n                    } catch (Exception e) {\n                        throw wrapRuntimeCamelException(e);\n                    }\n                    exchange.setUnitOfWork(null);\n                }\n            });\n        } else {\n            return processor.process(exchange, callback);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "FUNC_DECL", "CALL", "TRY", "PARAM", "CALL", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [4, 10], [5, 11], [6, 12], [7, 13], [1, 14], [12, 15], [13, 16], [7, 17], [8, 18], [15, 19], [16, 20], [19, 21], [19, 22], [19, 23], [21, 24], [19, 25], [19, 26], [23, 27], [24, 28], [21, 29], [25, 30], [28, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 4], [11, 5], [12, 6], [13, 7], [14, 1], [15, 12], [16, 13], [17, 7], [18, 8], [19, 15], [20, 16], [21, 19], [22, 19], [23, 19], [24, 21], [25, 19], [26, 19], [27, 23], [28, 24], [29, 21], [30, 25], [31, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "UnitOfWorkProcessor", "code": "    public UnitOfWorkProcessor(AsyncProcessor processor) {\n        super(processor);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "log4j-1.2-5025", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/lf5/Log4JLogRecord.java", "language": "java", "name": "org.apache.log4j.lf5.Log4JLogRecord", "code": "public class Log4JLogRecord extends LogRecord {\n  //--------------------------------------------------------------------------\n  //   Constants:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Protected Variables:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Private Variables:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Constructors:\n  //--------------------------------------------------------------------------\n\n  /**\n   * Constructs an instance of a <code>Log4JLogRecord</code>.\n   */\n  public Log4JLogRecord() {\n  }\n\n  //--------------------------------------------------------------------------\n  //   Public Methods:\n  //--------------------------------------------------------------------------\n  /**\n   * Determines which <code>Priority</code> levels will\n   * be displayed in colored font when the <code>LogMonitorAppender</code>\n   * renders this log message. By default, messages will be colored\n   * red if they are of <code>Priority</code> ERROR or FATAL.\n   *\n   * @return true if the log level is ERROR or FATAL.\n   */\n  public boolean isSevereLevel() {\n    boolean isSevere = false;\n\n    if (LogLevel.ERROR.equals(getLevel()) ||\n        LogLevel.FATAL.equals(getLevel())) {\n      isSevere = true;\n    }\n\n    return isSevere;\n  }\n\n  /**\n   * Set stack trace information associated with this Log4JLogRecord.\n   * When this method is called, the stack trace in a\n   * String-based format is made\n   * available via the getThrownStackTrace() method.\n   *\n   * @param throwableInfo An org.apache.log4j.spi.ThrowableInformation to\n   * associate with this Log4JLogRecord.\n   * @see #getThrownStackTrace()\n   */\n  public void setThrownStackTrace(ThrowableInformation throwableInfo) {\n    String[] stackTraceArray = throwableInfo.getThrowableStrRep();\n\n    StringBuffer stackTrace = new StringBuffer();\n    String nextLine;\n\n    for (int i = 0; i < stackTraceArray.length; i++) {\n      nextLine = stackTraceArray[i] + \"\\n\";\n      stackTrace.append(nextLine);\n    }\n\n    _thrownStackTrace = stackTrace.toString();", "functions": [{"function_name": "isSevereLevel", "code": "  public boolean isSevereLevel() {\n    boolean isSevere = false;\n\n    if (LogLevel.ERROR.equals(getLevel()) ||\n        LogLevel.FATAL.equals(getLevel())) {\n      isSevere = true;\n    }\n\n    return isSevere;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [4, 6], [3, 7], [2, 8], [5, 9], [6, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 4], [7, 3], [8, 2], [9, 5], [10, 6], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setThrownStackTrace", "code": "  public void setThrownStackTrace(ThrowableInformation throwableInfo) {\n    String[] stackTraceArray = throwableInfo.getThrowableStrRep();\n\n    StringBuffer stackTrace = new StringBuffer();\n    String nextLine;\n\n    for (int i = 0; i < stackTraceArray.length; i++) {\n      nextLine = stackTraceArray[i] + \"\\n\";\n      stackTrace.append(nextLine);\n    }\n\n    _thrownStackTrace = stackTrace.toString();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [6, 8], [3, 9], [4, 10], [1, 11], [1, 12], [1, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 6], [9, 3], [10, 4], [11, 1], [12, 1], [13, 1], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "Log4JLogRecord", "code": "  public Log4JLogRecord() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.7-8122", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/DTMIterator.java", "language": "java", "name": "org.apache.xml.dtm.DTMIterator", "code": "public interface DTMIterator\n{\n\n\n  /**\n   * Accept the node.\n   */\n  public static final short FILTER_ACCEPT = 1;\n\n  /**\n   * Reject the node. Same behavior as FILTER_SKIP. (In the DOM these\n   * differ when applied to a TreeWalker but have the same result when\n   * applied to a NodeIterator).\n   */\n  public static final short FILTER_REJECT = 2;\n\n  /**\n   * Skip this single node. \n   */\n  public static final short FILTER_SKIP = 3;\n    \n  /**\n   * Get an instance of a DTM that \"owns\" a node handle.  Since a node \n   * iterator may be passed without a DTMManager, this allows the \n   * caller to easily get the DTM using just the iterator.\n   *\n   * @param nodeHandle the nodeHandle.\n   *\n   * @return a non-null DTM reference.\n   */\n  public DTM getDTM(int nodeHandle);\n  \n  /**\n   * Get an instance of the DTMManager.  Since a node \n   * iterator may be passed without a DTMManager, this allows the \n   * caller to easily get the DTMManager using just the iterator.\n   *\n   * @return a non-null DTMManager reference.\n   */\n  public DTMManager getDTMManager();\n\n  /**\n   * The root node of the <code>DTMIterator</code>, as specified when it\n   * was created.  Note the root node is not the root node of the \n   * document tree, but the context node from where the iteration \n   * begins and ends.\n   *\n   * @return nodeHandle int Handle of the context node.\n   */\n  public int getRoot();\n\n  /**\n   * Reset the root node of the <code>DTMIterator</code>, overriding\n   * the value specified when it was created.  Note the root node is\n   * not the root node of the document tree, but the context node from\n   * where the iteration begins.\n   *\n   * @param nodeHandle int Handle of the context node.\n   * @param environment The environment object.  \n   * The environment in which this iterator operates, which should provide:\n   * <ul>\n   * <li>a node (the context node... same value as \"root\" defined below) </li>\n   * <li>a pair of non-zero positive integers (the context position and the context size) </li>\n   * <li>a set of variable bindings </li>\n   * <li>a function library </li>\n   * <li>the set of namespace declarations in scope for the expression.</li>\n   * <ul>\n   * \n   * <p>At this time the exact implementation of this environment is application \n   * dependent.  Probably a proper interface will be created fairly soon.</p>\n   * \n   */\n  public void setRoot(int nodeHandle, Object environment);\n  \n  /**\n   * Reset the iterator to the start. After resetting, the next node returned\n   * will be the root node -- or, if that's filtered out, the first node\n   * within the root's subtree which is _not_ skipped by the filters.\n   */\n  public void reset();\n\n  /**\n   * This attribute determines which node types are presented via the\n   * iterator. The available set of constants is defined above.  \n   * Nodes not accepted by\n   * <code>whatToShow</code> will be skipped, but their children may still\n   * be considered.\n   *\n   * @return one of the SHOW_XXX constants, or several ORed together.\n   */\n  public int getWhatToShow();\n\n  /**\n   * <p>The value of this flag determines whether the children of entity\n   * reference nodes are visible to the iterator. If false, they  and\n   * their descendants will be rejected. Note that this rejection takes\n   * precedence over <code>whatToShow</code> and the filter. </p>\n   * \n   * <p> To produce a view of the document that has entity references\n   * expanded and does not expose the entity reference node itself, use\n   * the <code>whatToShow</code> flags to hide the entity reference node\n   * and set <code>expandEntityReferences</code> to true when creating the\n   * iterator. To produce a view of the document that has entity reference\n   * nodes but no entity expansion, use the <code>whatToShow</code> flags\n   * to show the entity reference node and set\n   * <code>expandEntityReferences</code> to false.</p>\n   *\n   * <p>NOTE: In Xalan's use of DTM we will generally have fully expanded\n   * entity references when the document tree was built, and thus this\n   * flag will have no effect.</p>\n   *\n   * @return true if entity references will be expanded.  */\n  public boolean getExpandEntityReferences();\n\n  /**\n   * Returns the next node in the set and advances the position of the\n   * iterator in the set. After a <code>DTMIterator</code> has setRoot called,\n   * the first call to <code>nextNode()</code> returns that root or (if it\n   * is rejected by the filters) the first node within its subtree which is\n   * not filtered out.\n   * @return The next node handle in the set being iterated over, or\n   *  <code>DTM.NULL</code> if there are no more members in that set.\n   */\n  public int nextNode();\n\n  /**\n   * Returns the previous node in the set and moves the position of the\n   * <code>DTMIterator</code> backwards in the set.\n   * @return The previous node handle in the set being iterated over,\n   *   or <code>DTM.NULL</code> if there are no more members in that set.\n   */\n  public int previousNode();\n\n  /**\n   * Detaches the <code>DTMIterator</code> from the set which it iterated\n   * over, releasing any computational resources and placing the iterator\n   * in the INVALID state. After <code>detach</code> has been invoked,\n   * calls to <code>nextNode</code> or <code>previousNode</code> will\n   * raise a runtime exception.\n   */\n  public void detach();\n  \n  /**\n   * Specify if it's OK for detach to release the iterator for reuse.\n   * \n   * @param allowRelease true if it is OK for detach to release this iterator \n   * for pooling.\n   */\n  public void allowDetachToRelease(boolean allowRelease);\n\n  /**\n   * Get the current node in the iterator. Note that this differs from\n   * the DOM's NodeIterator, where the current position lies between two\n   * nodes (as part of the maintain-relative-position semantic).\n   *\n   * @return The current node handle, or -1.\n   */\n  public int getCurrentNode();\n\n  /**\n   * Tells if this NodeSetDTM is \"fresh\", in other words, if\n   * the first nextNode() that is called will return the\n   * first node in the set.\n   *\n   * @return true if the iteration of this list has not yet begun.\n   */\n  public boolean isFresh();\n\n\n  /**\n   * If setShouldCacheNodes(true) is called, then nodes will\n   * be cached, enabling random access, and giving the ability to do \n   * sorts and the like.  They are not cached by default.\n   *\n   * %REVIEW% Shouldn't the other random-access methods throw an exception\n   * if they're called on a DTMIterator with this flag set false?\n   *\n   * @param b true if the nodes should be cached.\n   */\n  public void setShouldCacheNodes(boolean b);\n  \n  /**\n   * Tells if this iterator can have nodes added to it or set via \n   * the <code>setItem(int node, int index)</code> method.\n   * \n   * @return True if the nodelist can be mutated.\n   */\n  public boolean isMutable();\n\n  /** Get the current position within the cached list, which is one\n   * less than the next nextNode() call will retrieve.  i.e. if you\n   * call getCurrentPos() and the return is 0, the next fetch will\n   * take place at index 1.\n   *\n   * @return The position of the iteration.\n   */\n  public int getCurrentPos();\n\n  /**\n   * If an index is requested, NodeSetDTM will call this method\n   * to run the iterator to the index.  By default this sets\n   * m_next to the index.  If the index argument is -1, this\n   * signals that the iterator should be run to the end and\n   * completely fill the cache.\n   *\n   * @param index The index to run to, or -1 if the iterator should be run\n   *              to the end.\n   */\n  public void runTo(int index);\n\n  /**\n   * Set the current position in the node set.\n   * \n   * @param i Must be a valid index.\n   */\n  public void setCurrentPos(int i);\n\n  /**\n   * Returns the <code>node handle</code> of an item in the collection. If\n   * <code>index</code> is greater than or equal to the number of nodes in\n   * the list, this returns <code>null</code>.\n   *\n   * @param index of the item.\n   * @return The node handle at the <code>index</code>th position in the\n   *   <code>DTMIterator</code>, or <code>-1</code> if that is not a valid\n   *   index.\n   */\n  public int item(int index);\n  \n  /**\n   * Sets the node at the specified index of this vector to be the\n   * specified node. The previous component at that position is discarded.\n   *\n   * <p>The index must be a value greater than or equal to 0 and less\n   * than the current size of the vector.  \n   * The iterator must be in cached mode.</p>\n   * \n   * <p>Meant to be used for sorted iterators.</p>\n   *\n   * @param node Node to set\n   * @param index Index of where to set the node\n   */\n  public void setItem(int node, int index);\n  \n  /**\n   * The number of nodes in the list. The range of valid child node indices\n   * is 0 to <code>length-1</code> inclusive. Note that this requires running\n   * the iterator to completion, and presumably filling the cache.\n   *\n   * @return The number of nodes in the list.\n   */\n  public int getLength();\n    \n  \n  /**\n   * Get a cloned Iterator that is reset to the start of the iteration.\n   *\n   * @return A clone of this iteration that has been reset.\n   *\n   * @throws CloneNotSupportedException\n   */\n  public DTMIterator cloneWithReset() throws CloneNotSupportedException;\n\n  /**\n   * Get a clone of this iterator, but don't reset the iteration in the \n   * process, so that it may be used from the current position.\n   *\n   * @return A clone of this object.\n   *\n   * @throws CloneNotSupportedException\n   */\n  public Object clone() throws CloneNotSupportedException;\n  \n  /**\n   * Returns true if all the nodes in the iteration well be returned in document \n   * order.\n   * \n   * @return true if all the nodes in the iteration well be returned in document \n   * order.\n   */\n  public boolean isDocOrdered();\n  \n  /**\n   * Returns the axis being iterated, if it is known.\n   * \n   * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple \n   * types.\n   */\n  public int getAxis();", "functions": [{"function_name": "getDTM", "code": "  public DTM getDTM(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDTMManager", "code": "  public DTMManager getDTMManager();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getRoot", "code": "  public int getRoot();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setRoot", "code": "  public void setRoot(int nodeHandle, Object environment);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "reset", "code": "  public void reset();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getWhatToShow", "code": "  public int getWhatToShow();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getExpandEntityReferences", "code": "  public boolean getExpandEntityReferences();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "nextNode", "code": "  public int nextNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "previousNode", "code": "  public int previousNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "detach", "code": "  public void detach();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "allowDetachToRelease", "code": "  public void allowDetachToRelease(boolean allowRelease);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCurrentNode", "code": "  public int getCurrentNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isFresh", "code": "  public boolean isFresh();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setShouldCacheNodes", "code": "  public void setShouldCacheNodes(boolean b);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isMutable", "code": "  public boolean isMutable();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getCurrentPos", "code": "  public int getCurrentPos();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "runTo", "code": "  public void runTo(int index);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCurrentPos", "code": "  public void setCurrentPos(int i);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "item", "code": "  public int item(int index);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setItem", "code": "  public void setItem(int node, int index);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLength", "code": "  public int getLength();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "cloneWithReset", "code": "  public DTMIterator cloneWithReset() throws CloneNotSupportedException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "clone", "code": "  public Object clone() throws CloneNotSupportedException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isDocOrdered", "code": "  public boolean isDocOrdered();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getAxis", "code": "  public int getAxis();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.5-7008", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/synthetic/TestDriver.java", "language": "java", "name": "org.apache.xml.utils.synthetic.TestDriver", "code": "public class TestDriver\n{\n\n  /** Field sampleField          */\n  public static int sampleField = 32;\n\n  /** Field inTest          */\n  private boolean inTest = false;\n\n  /**\n   * Method main \n   *\n   *\n   * @param args\n   */\n  public static void main(String[] args)\n  {\n\n    try\n    {\n      System.out.println(\"Proxying java.awt.Frame...\");\n\n      Class myC = Class.forName(\"java.awt.Frame\");\n\n      myC.toSource(System.out, 0);\n      System.out.println(\n        \"\\nProxying org.apache.xml.utils.synthetic.TestDriver...\");\n\n      myC =\n        Class.forName(\"com.ibm.org.apache.xml.utils.synthetic.TestDriver\");\n\n      myC.toSource(System.out, 0);\n    }\n    catch (ClassNotFoundException e)\n    {\n      System.out.println(\"Couldn't proxy: \");\n      e.printStackTrace();\n    }\n\n    try\n    {\n      System.out.println(\"\\nBuild a new beast...\");\n\n      Class myC = Class.declareClass(\n        \"com.ibm.org.apache.xml.utils.synthetic.BuildMe\");\n      Class inner = myC.declareInnerClass(\"island\");\n\n      inner.addExtends(Class.forName(\"java.lang.String\"));\n\n      Method m = inner.declareMethod(\"getValue\");\n\n      m.setReturnType(Class.forName(\"java.lang.String\"));\n      m.getBody().append(\"return toString();\");\n      myC.toSource(System.out, 0);\n    }\n    catch (ClassNotFoundException e)\n    {\n      e.printStackTrace();\n    }\n    catch (SynthesisException e)\n    {\n      e.printStackTrace();\n    }\n    catch (IllegalStateException e)\n    {\n      System.out.println(\"Unwritten function: \" + e);\n      e.printStackTrace();\n    }\n  }\n\n  /**\n   * Method dumpClass \n   *\n   *\n   * @param C\n   */\n  public static void dumpClass(Class C)\n  {\n\n    System.out.println(\"toString(): \" + C);\n    System.out.println(\"\\tisPrimitive(): \" + C.isPrimitive());\n    System.out.println(\"\\tisInterface(): \" + C.isInterface());\n    System.out.println(\"\\tisInstance(\\\"foo\\\"): \" + C.isInstance(\"foo\"));\n    System.out.println(\"\\tisArray(): \" + C.isArray());\n    System.out.println(\"\\tgetRealClass(): \" + C.getRealClass());\n  }\n\n  /**\n   * Method quickcheck \n   *\n   */\n  public void quickcheck()\n  {\n\n    Inner a = new Inner();\n\n    a.setTest(!a.getTest());\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"internal\"/>\n   * Class Inner <needs-comment/>\n   */\n  private class Inner\n  {\n\n    /**\n     * Method getTest \n     *\n     *\n     * @return\n     */\n    public boolean getTest()\n    {\n      return inTest;\n    }\n\n    /**\n     * Method setTest \n     *\n     *\n     * @param test\n     */\n    public void setTest(boolean test)\n    {\n      inTest = test;", "functions": [{"function_name": "main", "code": "  public static void main(String[] args)\n  {\n\n    try\n    {\n      System.out.println(\"Proxying java.awt.Frame...\");\n\n      Class myC = Class.forName(\"java.awt.Frame\");\n\n      myC.toSource(System.out, 0);\n      System.out.println(\n        \"\\nProxying org.apache.xml.utils.synthetic.TestDriver...\");\n\n      myC =\n        Class.forName(\"com.ibm.org.apache.xml.utils.synthetic.TestDriver\");\n\n      myC.toSource(System.out, 0);\n    }\n    catch (ClassNotFoundException e)\n    {\n      System.out.println(\"Couldn't proxy: \");\n      e.printStackTrace();\n    }\n\n    try\n    {\n      System.out.println(\"\\nBuild a new beast...\");\n\n      Class myC = Class.declareClass(\n        \"com.ibm.org.apache.xml.utils.synthetic.BuildMe\");\n      Class inner = myC.declareInnerClass(\"island\");\n\n      inner.addExtends(Class.forName(\"java.lang.String\"));\n\n      Method m = inner.declareMethod(\"getValue\");\n\n      m.setReturnType(Class.forName(\"java.lang.String\"));\n      m.getBody().append(\"return toString();\");\n      myC.toSource(System.out, 0);\n    }\n    catch (ClassNotFoundException e)\n    {\n      e.printStackTrace();\n    }\n    catch (SynthesisException e)\n    {\n      e.printStackTrace();\n    }\n    catch (IllegalStateException e)\n    {\n      System.out.println(\"Unwritten function: \" + e);\n      e.printStackTrace();", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "PARAM", "CATCH", "CATCH", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [2, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [4, 22], [4, 23], [5, 24], [6, 25], [12, 26], [13, 27], [14, 28], [7, 29], [15, 30], [8, 31], [9, 32], [16, 33], [10, 34], [10, 35], [17, 36], [18, 37], [19, 38], [20, 39], [11, 40], [21, 41], [23, 42], [27, 43], [28, 44], [29, 45], [30, 46], [31, 47], [32, 48], [35, 49], [37, 50], [40, 51], [42, 52], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 2], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 4], [23, 4], [24, 5], [25, 6], [26, 12], [27, 13], [28, 14], [29, 7], [30, 15], [31, 8], [32, 9], [33, 16], [34, 10], [35, 10], [36, 17], [37, 18], [38, 19], [39, 20], [40, 11], [41, 21], [42, 23], [43, 27], [44, 28], [45, 29], [46, 30], [47, 31], [48, 32], [49, 35], [50, 37], [51, 40], [52, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "dumpClass", "code": "  public static void dumpClass(Class C)\n  {\n\n    System.out.println(\"toString(): \" + C);\n    System.out.println(\"\\tisPrimitive(): \" + C.isPrimitive());\n    System.out.println(\"\\tisInterface(): \" + C.isInterface());\n    System.out.println(\"\\tisInstance(\\\"foo\\\"): \" + C.isInstance(\"foo\"));\n    System.out.println(\"\\tisArray(): \" + C.isArray());\n    System.out.println(\"\\tgetRealClass(): \" + C.getRealClass());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [8, 15], [9, 16], [9, 17], [10, 18], [10, 19], [11, 20], [11, 21], [12, 22], [12, 23], [13, 24], [18, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 8], [16, 9], [17, 9], [18, 10], [19, 10], [20, 11], [21, 11], [22, 12], [23, 12], [24, 13], [25, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "quickcheck", "code": "  public void quickcheck()\n  {\n\n    Inner a = new Inner();\n\n    a.setTest(!a.getTest());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [1, 0], [2, 0], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.6-7390", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/Expression.java", "language": "java", "name": "org.apache.xpath.Expression", "code": "public abstract class Expression implements java.io.Serializable, ExpressionNode, XPathVisitable\n{\n\n  /**\n   * The location where this expression was built from.  Need for diagnostic\n   *  messages. May be null.\n   *  @serial\n   */\n  private ExpressionNode m_parent;\n\n  /**\n   * Tell if this expression or it's subexpressions can traverse outside\n   * the current subtree.\n   *\n   * @return true if traversal outside the context node's subtree can occur.\n   */\n  public boolean canTraverseOutsideSubtree()\n  {\n    return false;\n  }\n  \n\n  /**\n   * Execute an expression in the XPath runtime context, and return the\n   * result of the expression.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   * @param currentNode The currentNode.\n   *\n   * @return The result of the expression in the form of a <code>XObject</code>.\n   *\n   * @throws javax.xml.transform.TransformerException if a runtime exception\n   *         occurs.\n   */\n  public XObject execute(XPathContext xctxt, int currentNode)\n          throws javax.xml.transform.TransformerException\n  {\n\n    return execute(xctxt);\n  }\n\n  /**\n   * Execute an expression in the XPath runtime context, and return the\n   * result of the expression.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   * @param currentNode The currentNode.\n   * @param dtm The DTM of the current node.\n   * @param expType The expanded type ID of the current node.\n   *\n   * @return The result of the expression in the form of a <code>XObject</code>.\n   *\n   * @throws javax.xml.transform.TransformerException if a runtime exception\n   *         occurs.\n   */\n  public XObject execute(\n          XPathContext xctxt, int currentNode, DTM dtm, int expType)\n            throws javax.xml.transform.TransformerException\n  {\n\n    return execute(xctxt);\n  }\n\n  /**\n   * Execute an expression in the XPath runtime context, and return the\n   * result of the expression.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   *\n   * @return The result of the expression in the form of a <code>XObject</code>.\n   *\n   * @throws javax.xml.transform.TransformerException if a runtime exception\n   *         occurs.\n   */\n  public abstract XObject execute(XPathContext xctxt)\n    throws javax.xml.transform.TransformerException;\n\n  /**\n   * Execute an expression in the XPath runtime context, and return the\n   * result of the expression, but tell that a \"safe\" object doesn't have \n   * to be returned.  The default implementation just calls execute(xctxt).\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   * @param destructiveOK true if a \"safe\" object doesn't need to be returned.\n   *\n   * @return The result of the expression in the form of a <code>XObject</code>.\n   *\n   * @throws javax.xml.transform.TransformerException if a runtime exception\n   *         occurs.\n   */\n  public XObject execute(XPathContext xctxt, boolean destructiveOK)\n    throws javax.xml.transform.TransformerException\n  {\n  \treturn execute(xctxt);\n  }\n\n\n  /**\n   * Evaluate expression to a number.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   * @return The expression evaluated as a double.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public double num(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    return execute(xctxt).num();\n  }\n\n  /**\n   * Evaluate expression to a boolean.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   * @return false\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean bool(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    return execute(xctxt).bool();\n  }\n\n  /**\n   * Cast result object to a string.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   * @return The string this wraps or the empty string if null\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XMLString xstr(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    return execute(xctxt).xstr();\n  }\n\n  /**\n   * Tell if the expression is a nodeset expression.  In other words, tell\n   * if you can execute {@link asNode() asNode} without an exception.\n   * @return true if the expression can be represented as a nodeset.\n   */\n  public boolean isNodesetExpr()\n  {\n    return false;\n  }\n\n  /**\n   * Return the first node out of the nodeset, if this expression is\n   * a nodeset expression.\n   * @param xctxt The XPath runtime context.\n   * @return the first node out of the nodeset, or DTM.NULL.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public int asNode(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n  \tDTMIterator iter = execute(xctxt).iter();\n    return iter.nextNode();\n  }\n\n  /**\n   * Given an select expression and a context, evaluate the XPath\n   * and return the resulting iterator.\n   *\n   * @param xctxt The execution context.\n   * @param contextNode The node that \".\" expresses.\n   *\n   *\n   * @return A valid DTMIterator.\n   * @throws TransformerException thrown if the active ProblemListener decides\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws javax.xml.transform.TransformerException\n   * @xsl.usage experimental\n   */\n  public DTMIterator asIterator(XPathContext xctxt, int contextNode)\n          throws javax.xml.transform.TransformerException\n  {\n\n    try\n    {\n      xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n      return execute(xctxt).iter();\n    }\n    finally\n    {\n      xctxt.popCurrentNodeAndExpression();\n    }\n  }\n  \n  /**\n   * Given an select expression and a context, evaluate the XPath\n   * and return the resulting iterator, but do not clone.\n   *\n   * @param xctxt The execution context.\n   * @param contextNode The node that \".\" expresses.\n   *\n   *\n   * @return A valid DTMIterator.\n   * @throws TransformerException thrown if the active ProblemListener decides\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws javax.xml.transform.TransformerException\n   * @xsl.usage experimental\n   */\n  public DTMIterator asIteratorRaw(XPathContext xctxt, int contextNode)\n          throws javax.xml.transform.TransformerException\n  {\n\n    try\n    {\n      xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n      XNodeSet nodeset = (XNodeSet)execute(xctxt);\n      return nodeset.iterRaw();\n    }\n    finally\n    {\n      xctxt.popCurrentNodeAndExpression();\n    }\n  }\n\n\n  /**\n   * Execute an expression in the XPath runtime context, and return the\n   * result of the expression.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   * NEEDSDOC @param handler\n   *\n   * @return The result of the expression in the form of a <code>XObject</code>.\n   *\n   * @throws javax.xml.transform.TransformerException if a runtime exception\n   *         occurs.\n   * @throws org.xml.sax.SAXException\n   */\n  public void executeCharsToContentHandler(\n          XPathContext xctxt, ContentHandler handler)\n            throws javax.xml.transform.TransformerException,\n                   org.xml.sax.SAXException\n  {\n\n    XObject obj = execute(xctxt);\n\n    obj.dispatchCharactersEvents(handler);\n    obj.detach();\n  }\n\n  /**\n   * Tell if this expression returns a stable number that will not change during \n   * iterations within the expression.  This is used to determine if a proximity \n   * position predicate can indicate that no more searching has to occur.\n   * \n   *\n   * @return true if the expression represents a stable number.\n   */\n  public boolean isStableNumber()\n  {\n    return false;\n  }\n\n  /**\n   * This function is used to fixup variables from QNames to stack frame\n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list\n   * should be searched backwards for the first qualified name that\n   * corresponds to the variable reference qname.  The position of the\n   * QName in the vector from the start of the vector will be its position\n   * in the stack frame (but variables above the globalsTop value will need\n   * to be offset to the current stack frame).\n   * NEEDSDOC @param globalsSize\n   */\n  public abstract void fixupVariables(java.util.Vector vars, int globalsSize);\n  \n  /**\n   * Compare this object with another object and see \n   * if they are equal, include the sub heararchy.\n   * \n   * @param expr Another expression object.\n   * @return true if this objects class and the expr\n   * object's class are the same, and the data contained \n   * within both objects are considered equal.\n   */\n  public abstract boolean deepEquals(Expression expr);\n  \n  /**\n   * This is a utility method to tell if the passed in \n   * class is the same class as this.  It is to be used by\n   * the deepEquals method.  I'm bottlenecking it here \n   * because I'm not totally confident that comparing the \n   * class objects is the best way to do this.\n   * @return true of the passed in class is the exact same \n   * class as this class.\n   */\n  protected final boolean isSameClass(Expression expr)\n  {\n  \tif(null == expr)\n  \t  return false;\n  \t  \n  \treturn (getClass() == expr.getClass());\n  }\n\n  /**\n   * Warn the user of an problem.\n   *\n   * @param xctxt The XPath runtime context.\n   * @param msg An error msgkey that corresponds to one of the conststants found\n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is\n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which\n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to\n   *                              throw an exception.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public void warn(XPathContext xctxt, String msg, Object[] args)\n          throws javax.xml.transform.TransformerException\n  {\n\n    java.lang.String fmsg = XSLMessages.createXPATHWarning(msg, args);\n\n    if (null != xctxt)\n    {\n      ErrorListener eh = xctxt.getErrorListener();\n\n      eh.warning(new TransformerException(fmsg, xctxt.getSAXLocator()));\n    }\n  }\n\n  /**\n   * Tell the user of an assertion error, and probably throw an\n   * exception.\n   *\n   * @param b  If false, a runtime exception will be thrown.\n   * @param msg The assertion message, which should be informative.\n   *\n   * @throws RuntimeException if the b argument is false.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public void assertion(boolean b, java.lang.String msg)\n  {\n\n    if (!b)\n    {\n      java.lang.String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ msg });\n\n      throw new RuntimeException(fMsg);\n    }\n  }\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param xctxt The XPath runtime context.\n   * @param msg An error msgkey that corresponds to one of the constants found\n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is\n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which\n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to\n   *                              throw an exception.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public void error(XPathContext xctxt, String msg, Object[] args)\n          throws javax.xml.transform.TransformerException\n  {\n\n    java.lang.String fmsg = XSLMessages.createXPATHMessage(msg, args);\n\n    if (null != xctxt)\n    {\n      ErrorListener eh = xctxt.getErrorListener();\n      TransformerException te = new TransformerException(fmsg, this);\n\n      eh.fatalError(te);\n    }\n  }\n  \n  /**\n   * Get the first non-Expression parent of this node.\n   * @return null or first ancestor that is not an Expression.\n   */\n  public ExpressionNode getExpressionOwner()\n  {\n  \tExpressionNode parent = exprGetParent();\n  \twhile((null != parent) && (parent instanceof Expression))\n  \t\tparent = parent.exprGetParent();\n  \treturn parent;\n  }\n  \n  \n  /** This pair of methods are used to inform the node of its\n    parent. */\n  public void exprSetParent(ExpressionNode n)\n  {\n  \tassertion(n != this, \"Can not parent an expression to itself!\");\n  \tm_parent = n;\n  }\n  \n  public ExpressionNode exprGetParent()\n  {\n  \treturn m_parent;\n  }\n\n  /** This method tells the node to add its argument to the node's\n    list of children.  */\n  public void exprAddChild(ExpressionNode n, int i)\n  {\n  \tassertion(false, \"exprAddChild method not implemented!\");\n  }\n\n  /** This method returns a child node.  The children are numbered\n     from zero, left to right. */\n  public ExpressionNode exprGetChild(int i)\n  {\n  \treturn null;\n  }\n\n  /** Return the number of children the node has. */\n  public int exprGetNumChildren()\n  {\n  \treturn 0;\n  }\n  \n\n  /**\n   * Return the public identifier for the current document event.\n   *\n   * <p>The return value is the public identifier of the document\n   * entity or of the external parsed entity in which the markup that\n   * triggered the event appears.</p>\n   *\n   * @return A string containing the public identifier, or\n   *         null if none is available.\n   * @see #getSystemId\n   */\n  public String getPublicId()\n  {\n  \tif(null == m_parent)\n  \t  return null;\n  \treturn m_parent.getPublicId();\n  }\n\n  /**\n   * Return the system identifier for the current document event.\n   *\n   * <p>The return value is the system identifier of the document\n   * entity or of the external parsed entity in which the markup that\n   * triggered the event appears.</p>\n   *\n   * <p>If the system identifier is a URL, the parser must resolve it\n   * fully before passing it to the application.</p>\n   *\n   * @return A string containing the system identifier, or null\n   *         if none is available.\n   * @see #getPublicId\n   */\n  public String getSystemId()\n  {\n  \tif(null == m_parent)\n  \t  return null;\n  \treturn m_parent.getSystemId();\n  }\n\n  /**\n   * Return the line number where the current document event ends.\n   *\n   * <p><strong>Warning:</strong> The return value from the method\n   * is intended only as an approximation for the sake of error\n   * reporting; it is not intended to provide sufficient information\n   * to edit the character content of the original XML document.</p>\n   *\n   * <p>The return value is an approximation of the line number\n   * in the document entity or external parsed entity where the\n   * markup that triggered the event appears.</p>\n   *\n   * @return The line number, or -1 if none is available.\n   * @see #getColumnNumber\n   */\n  public int getLineNumber()\n  {\n  \tif(null == m_parent)\n  \t  return 0;\n  \treturn m_parent.getLineNumber();\n  }\n\n  /**\n   * Return the character position where the current document event ends.\n   *\n   * <p><strong>Warning:</strong> The return value from the method\n   * is intended only as an approximation for the sake of error\n   * reporting; it is not intended to provide sufficient information\n   * to edit the character content of the original XML document.</p>\n   *\n   * <p>The return value is an approximation of the column number\n   * in the document entity or external parsed entity where the\n   * markup that triggered the event appears.</p>\n   *\n   * @return The column number, or -1 if none is available.\n   * @see #getLineNumber\n   */\n  public int getColumnNumber()\n  {\n  \tif(null == m_parent)\n  \t  return 0;\n  \treturn m_parent.getColumnNumber();", "functions": [{"function_name": "canTraverseOutsideSubtree", "code": "  public boolean canTraverseOutsideSubtree()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt, int currentNode)\n          throws javax.xml.transform.TransformerException\n  {\n\n    return execute(xctxt);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "execute", "code": "  public XObject execute(\n          XPathContext xctxt, int currentNode, DTM dtm, int expType)\n            throws javax.xml.transform.TransformerException\n  {\n\n    return execute(xctxt);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "execute", "code": "  public abstract XObject execute(XPathContext xctxt)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt, boolean destructiveOK)\n    throws javax.xml.transform.TransformerException\n  {\n  \treturn execute(xctxt);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "num", "code": "  public double num(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    return execute(xctxt).num();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "bool", "code": "  public boolean bool(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    return execute(xctxt).bool();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "xstr", "code": "  public XMLString xstr(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    return execute(xctxt).xstr();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isNodesetExpr", "code": "  public boolean isNodesetExpr()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "asNode", "code": "  public int asNode(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n  \tDTMIterator iter = execute(xctxt).iter();\n    return iter.nextNode();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "asIterator", "code": "  public DTMIterator asIterator(XPathContext xctxt, int contextNode)\n          throws javax.xml.transform.TransformerException\n  {\n\n    try\n    {\n      xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n      return execute(xctxt).iter();\n    }\n    finally\n    {\n      xctxt.popCurrentNodeAndExpression();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "asIteratorRaw", "code": "  public DTMIterator asIteratorRaw(XPathContext xctxt, int contextNode)\n          throws javax.xml.transform.TransformerException\n  {\n\n    try\n    {\n      xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n      XNodeSet nodeset = (XNodeSet)execute(xctxt);\n      return nodeset.iterRaw();\n    }\n    finally\n    {\n      xctxt.popCurrentNodeAndExpression();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "executeCharsToContentHandler", "code": "  public void executeCharsToContentHandler(\n          XPathContext xctxt, ContentHandler handler)\n            throws javax.xml.transform.TransformerException,\n                   org.xml.sax.SAXException\n  {\n\n    XObject obj = execute(xctxt);\n\n    obj.dispatchCharactersEvents(handler);\n    obj.detach();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isStableNumber", "code": "  public boolean isStableNumber()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "fixupVariables", "code": "  public abstract void fixupVariables(java.util.Vector vars, int globalsSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "deepEquals", "code": "  public abstract boolean deepEquals(Expression expr);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSameClass", "code": "  protected final boolean isSameClass(Expression expr)\n  {\n  \tif(null == expr)\n  \t  return false;\n  \t  \n  \treturn (getClass() == expr.getClass());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [4, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 4], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "warn", "code": "  public void warn(XPathContext xctxt, String msg, Object[] args)\n          throws javax.xml.transform.TransformerException\n  {\n\n    java.lang.String fmsg = XSLMessages.createXPATHWarning(msg, args);\n\n    if (null != xctxt)\n    {\n      ErrorListener eh = xctxt.getErrorListener();\n\n      eh.warning(new TransformerException(fmsg, xctxt.getSAXLocator()));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [1, 10], [10, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 1], [11, 10], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "assertion", "code": "  public void assertion(boolean b, java.lang.String msg)\n  {\n\n    if (!b)\n    {\n      java.lang.String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ msg });\n\n      throw new RuntimeException(fMsg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "THROW_RAISE", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "error", "code": "  public void error(XPathContext xctxt, String msg, Object[] args)\n          throws javax.xml.transform.TransformerException\n  {\n\n    java.lang.String fmsg = XSLMessages.createXPATHMessage(msg, args);\n\n    if (null != xctxt)\n    {\n      ErrorListener eh = xctxt.getErrorListener();\n      TransformerException te = new TransformerException(fmsg, this);\n\n      eh.fatalError(te);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [2, 10], [1, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 2], [11, 1], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getExpressionOwner", "code": "  public ExpressionNode getExpressionOwner()\n  {\n  \tExpressionNode parent = exprGetParent();\n  \twhile((null != parent) && (parent instanceof Expression))\n  \t\tparent = parent.exprGetParent();\n  \treturn parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [4, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 4], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "exprSetParent", "code": "  public void exprSetParent(ExpressionNode n)\n  {\n  \tassertion(n != this, \"Can not parent an expression to itself!\");\n  \tm_parent = n;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "exprGetParent", "code": "  public ExpressionNode exprGetParent()\n  {\n  \treturn m_parent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "exprAddChild", "code": "  public void exprAddChild(ExpressionNode n, int i)\n  {\n  \tassertion(false, \"exprAddChild method not implemented!\");", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "exprGetChild", "code": "  public ExpressionNode exprGetChild(int i)\n  {\n  \treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "exprGetNumChildren", "code": "  public int exprGetNumChildren()\n  {\n  \treturn 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPublicId", "code": "  public String getPublicId()\n  {\n  \tif(null == m_parent)\n  \t  return null;\n  \treturn m_parent.getPublicId();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSystemId", "code": "  public String getSystemId()\n  {\n  \tif(null == m_parent)\n  \t  return null;\n  \treturn m_parent.getSystemId();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getLineNumber", "code": "  public int getLineNumber()\n  {\n  \tif(null == m_parent)\n  \t  return 0;\n  \treturn m_parent.getLineNumber();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getColumnNumber", "code": "  public int getColumnNumber()\n  {\n  \tif(null == m_parent)\n  \t  return 0;\n  \treturn m_parent.getColumnNumber();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "poi-2.5-5717", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/aggregates/RowRecordsAggregate.java", "language": "java", "name": "org.apache.poi.hssf.record.aggregates.RowRecordsAggregate", "code": "public class RowRecordsAggregate\n    extends Record\n{\n    int     firstrow = -1;\n    int     lastrow  = -1;\n    Map records  = null;\n    int     size     = 0;\n\n    /** Creates a new instance of ValueRecordsAggregate */\n\n    public RowRecordsAggregate()\n    {\n        records = new TreeMap();\n    }\n\n    public void insertRow(RowRecord row)\n    {\n        size += row.getRecordSize();\n\n        records.put(row, row);\n        if ((row.getRowNumber() < firstrow) || (firstrow == -1))\n        {\n            firstrow = row.getRowNumber();\n        }\n        if ((row.getRowNumber() > lastrow) || (lastrow == -1))\n        {\n            lastrow = row.getRowNumber();\n        }\n    }\n\n    public void removeRow(RowRecord row)\n    {\n        size -= row.getRecordSize();\n\n        records.remove(row);\n    }\n\n    public RowRecord getRow(int rownum)\n    {\n\n        RowRecord row = new RowRecord();\n\n        row.setRowNumber(( short ) rownum);\n        return ( RowRecord ) records.get(row);\n    }\n\n    public int getPhysicalNumberOfRows()\n    {\n        return records.size();\n    }\n\n    public int getFirstRowNum()\n    {\n        return firstrow;\n    }\n\n    public int getLastRowNum()\n    {\n        return lastrow;\n    }\n\n\t/*\n\t * No need to go through all the records as we're just collecting RowRecords \n\n    public int construct(int offset, List records)\n    {\n        int k = 0;\n\n        for (k = offset; k < records.size(); k++)\n        {\n            Record rec = ( Record ) records.get(k);\n\n            if (!rec.isInValueSection() && !(rec instanceof UnknownRecord))\n            {\n                break;\n            }\n            if (rec.getSid() == RowRecord.sid)\n            {\n                insertRow(( RowRecord ) rec);\n            }\n        }\n        return k;\n    }\n\t*/\n\n    /**\n     * called by the class that is responsible for writing this sucker.\n     * Subclasses should implement this so that their data is passed back in a\n     * byte array.\n     *\n     * @param offset    offset to begin writing at\n     * @param data      byte array containing instance data\n     * @return number of bytes written\n     */\n\n    public int serialize(int offset, byte [] data)\n    {\n        Iterator itr = records.values().iterator();\n        int      pos = offset;\n\n        while (itr.hasNext())\n        {\n            pos += (( Record ) itr.next()).serialize(pos, data);\n        }\n        return pos - offset;\n    }\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     * @param offset of the record's data (provided a big array of the file)\n     */\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n    }\n\n    /**\n     * called by constructor, should throw runtime exception in the event of a\n     * record passed with a differing ID.\n     *\n     * @param id alleged id for this record\n     */\n\n    protected void validateSid(short id)\n    {\n    }\n\n    /**\n     * return the non static version of the id for this record.\n     */\n\n    public short getSid()\n    {\n        return -1000;\n    }\n\n    public int getRecordSize()\n    {\n        return size;\n    }\n\n    public Iterator getIterator()\n    {\n        return records.values().iterator();\n    }\n    \n    /**\n     * Performs a deep clone of the record\n     */\n    public Object clone()\n    {\n        RowRecordsAggregate rec = new RowRecordsAggregate();\n        for ( Iterator rowIter = getIterator(); rowIter.hasNext(); )\n        {\n            RowRecord row = (RowRecord) ( (RowRecord) rowIter.next() ).clone();\n            rec.insertRow( row );\n        }\n        return rec;\n    }\n\n\n    public int findStartOfRowOutlineGroup(int row)\n    {\n        RowRecord rowRecord = this.getRow( row );\n        int level = rowRecord.getOutlineLevel();\n        int currentRow = row;\n        while (this.getRow( currentRow ) != null)\n        {\n            rowRecord = this.getRow( currentRow );\n            if (rowRecord.getOutlineLevel() < level)\n                return currentRow + 1;\n            currentRow--;\n        }\n\n        return currentRow + 1;\n    }\n\n    public int findEndOfRowOutlineGroup( int row )\n    {\n        int level = getRow( row ).getOutlineLevel();\n        int currentRow;\n        for (currentRow = row; currentRow < this.getLastRowNum(); currentRow++)\n        {\n            if (getRow(currentRow) == null || getRow(currentRow).getOutlineLevel() < level)\n            {\n                break;\n            }\n        }\n\n        return currentRow-1;\n    }\n\n    public int writeHidden( RowRecord rowRecord, int row, boolean hidden )\n    {\n        int level = rowRecord.getOutlineLevel();\n        while (rowRecord != null && this.getRow(row).getOutlineLevel() >= level)\n        {\n            rowRecord.setZeroHeight( hidden );\n            row++;\n            rowRecord = this.getRow( row );\n        }\n        return row - 1;\n    }\n\n    public void collapseRow( int rowNumber )\n    {\n\n        int startRow = findStartOfRowOutlineGroup( rowNumber );\n        RowRecord rowRecord = (RowRecord) getRow( startRow );\n\n        int lastRow = writeHidden( rowRecord, startRow, true );\n\n        if (getRow(lastRow + 1) != null)\n        {\n            getRow(lastRow + 1).setColapsed( true );\n        }\n        else\n        {\n            RowRecord row = createRow( lastRow + 1);\n            row.setColapsed( true );\n            insertRow( row );\n        }\n    }\n\n    /**\n     * Create a row record.\n     *\n     * @param row number\n     * @return RowRecord created for the passed in row number\n     * @see org.apache.poi.hssf.record.RowRecord\n     */\n    public static RowRecord createRow(int row)\n    {\n        RowRecord rowrec = new RowRecord();\n\n        rowrec.setRowNumber(row);\n        rowrec.setHeight(( short ) 0xff);\n        rowrec.setOptimize(( short ) 0x0);\n        rowrec.setXFIndex(( short ) 0xf);\n        return rowrec;\n    }\n\n    public boolean isRowGroupCollapsed( int row )\n    {\n        int collapseRow = findEndOfRowOutlineGroup( row ) + 1;\n\n        if (getRow(collapseRow) == null)\n            return false;\n        else\n            return getRow( collapseRow ).getColapsed();\n    }\n\n    public void expandRow( int rowNumber )\n    {\n        int idx = rowNumber;\n        if (idx == -1)\n            return;\n\n        if (!isRowGroupCollapsed(idx))\n            return;\n\n        int startIdx = findStartOfRowOutlineGroup( idx );\n        RowRecord row = getRow( startIdx );\n\n        int endIdx = findEndOfRowOutlineGroup( idx );\n\n        if ( !isRowGroupHiddenByParent( idx ) )\n        {\n            for ( int i = startIdx; i <= endIdx; i++ )\n            {\n                if ( row.getOutlineLevel() == getRow( i ).getOutlineLevel() )\n                    getRow( i ).setZeroHeight( false );\n                else if (!isRowGroupCollapsed(i))\n                    getRow( i ).setZeroHeight( false );\n            }\n        }\n\n        getRow( endIdx + 1 ).setColapsed( false );\n    }\n\n    public boolean isRowGroupHiddenByParent( int row )\n    {\n        int endLevel;\n        boolean endHidden;\n        int endOfOutlineGroupIdx = findEndOfRowOutlineGroup( row );\n        if (getRow( endOfOutlineGroupIdx + 1 ) == null)\n        {\n            endLevel = 0;\n            endHidden = false;\n        }\n        else\n        {\n            endLevel = getRow( endOfOutlineGroupIdx + 1).getOutlineLevel();\n            endHidden = getRow( endOfOutlineGroupIdx + 1).getZeroHeight();\n        }\n\n        int startLevel;\n        boolean startHidden;\n        int startOfOutlineGroupIdx = findStartOfRowOutlineGroup( row );\n        if (startOfOutlineGroupIdx - 1 < 0 || getRow(startOfOutlineGroupIdx - 1) == null)\n        {\n            startLevel = 0;\n            startHidden = false;\n        }\n        else\n        {\n            startLevel = getRow( startOfOutlineGroupIdx - 1).getOutlineLevel();\n            startHidden = getRow( startOfOutlineGroupIdx - 1 ).getZeroHeight();\n        }\n\n        if (endLevel > startLevel)\n        {\n            return endHidden;\n        }\n        else\n        {\n            return startHidden;", "functions": [{"function_name": "insertRow", "code": "    public void insertRow(RowRecord row)\n    {\n        size += row.getRecordSize();\n\n        records.put(row, row);\n        if ((row.getRowNumber() < firstrow) || (firstrow == -1))\n        {\n            firstrow = row.getRowNumber();\n        }\n        if ((row.getRowNumber() > lastrow) || (lastrow == -1))\n        {\n            lastrow = row.getRowNumber();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [4, 8], [4, 9], [5, 10], [5, 11], [7, 12], [1, 13], [8, 14], [9, 15], [2, 16], [10, 17], [11, 18], [13, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 4], [9, 4], [10, 5], [11, 5], [12, 7], [13, 1], [14, 8], [15, 9], [16, 2], [17, 10], [18, 11], [19, 13], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "removeRow", "code": "    public void removeRow(RowRecord row)\n    {\n        size -= row.getRecordSize();\n\n        records.remove(row);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRow", "code": "    public RowRecord getRow(int rownum)\n    {\n\n        RowRecord row = new RowRecord();\n\n        row.setRowNumber(( short ) rownum);\n        return ( RowRecord ) records.get(row);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getPhysicalNumberOfRows", "code": "    public int getPhysicalNumberOfRows()\n    {\n        return records.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstRowNum", "code": "    public int getFirstRowNum()\n    {\n        return firstrow;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastRowNum", "code": "    public int getLastRowNum()\n    {\n        return lastrow;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        Iterator itr = records.values().iterator();\n        int      pos = offset;\n\n        while (itr.hasNext())\n        {\n            pos += (( Record ) itr.next()).serialize(pos, data);\n        }\n        return pos - offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [2, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 2], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "validateSid", "code": "    protected void validateSid(short id)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return -1000;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return size;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIterator", "code": "    public Iterator getIterator()\n    {\n        return records.values().iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "clone", "code": "    public Object clone()\n    {\n        RowRecordsAggregate rec = new RowRecordsAggregate();\n        for ( Iterator rowIter = getIterator(); rowIter.hasNext(); )\n        {\n            RowRecord row = (RowRecord) ( (RowRecord) rowIter.next() ).clone();\n            rec.insertRow( row );\n        }\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [3, 6], [2, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 3], [7, 2], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "findStartOfRowOutlineGroup", "code": "    public int findStartOfRowOutlineGroup(int row)\n    {\n        RowRecord rowRecord = this.getRow( row );\n        int level = rowRecord.getOutlineLevel();\n        int currentRow = row;\n        while (this.getRow( currentRow ) != null)\n        {\n            rowRecord = this.getRow( currentRow );\n            if (rowRecord.getOutlineLevel() < level)\n                return currentRow + 1;\n            currentRow--;\n        }\n\n        return currentRow + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [2, 10], [8, 11], [4, 12], [10, 13], [10, 14], [2, 15], [8, 16], [5, 17], [13, 18], [14, 19], [18, 20], [15, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 2], [11, 8], [12, 4], [13, 10], [14, 10], [15, 2], [16, 8], [17, 5], [18, 13], [19, 14], [20, 18], [21, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "findEndOfRowOutlineGroup", "code": "    public int findEndOfRowOutlineGroup( int row )\n    {\n        int level = getRow( row ).getOutlineLevel();\n        int currentRow;\n        for (currentRow = row; currentRow < this.getLastRowNum(); currentRow++)\n        {\n            if (getRow(currentRow) == null || getRow(currentRow).getOutlineLevel() < level)\n            {\n                break;\n            }\n        }\n\n        return currentRow-1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [6, 9], [2, 10], [4, 11], [10, 12], [7, 13], [11, 14], [10, 15], [12, 16], [12, 17], [16, 18], [17, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 6], [10, 2], [11, 4], [12, 10], [13, 7], [14, 11], [15, 10], [16, 12], [17, 12], [18, 16], [19, 17], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "writeHidden", "code": "    public int writeHidden( RowRecord rowRecord, int row, boolean hidden )\n    {\n        int level = rowRecord.getOutlineLevel();\n        while (rowRecord != null && this.getRow(row).getOutlineLevel() >= level)\n        {\n            rowRecord.setZeroHeight( hidden );\n            row++;\n            rowRecord = this.getRow( row );\n        }\n        return row - 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [8, 10], [8, 11], [3, 12], [2, 13], [2, 14], [11, 15], [10, 16], [10, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 8], [11, 8], [12, 3], [13, 2], [14, 2], [15, 11], [16, 10], [17, 10], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "collapseRow", "code": "    public void collapseRow( int rowNumber )\n    {\n\n        int startRow = findStartOfRowOutlineGroup( rowNumber );\n        RowRecord rowRecord = (RowRecord) getRow( startRow );\n\n        int lastRow = writeHidden( rowRecord, startRow, true );\n\n        if (getRow(lastRow + 1) != null)\n        {\n            getRow(lastRow + 1).setColapsed( true );\n        }\n        else\n        {\n            RowRecord row = createRow( lastRow + 1);\n            row.setColapsed( true );\n            insertRow( row );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [2, 10], [4, 11], [1, 12], [1, 13], [1, 14], [9, 15], [10, 16], [3, 17], [13, 18], [7, 19], [14, 20], [14, 21], [15, 22], [19, 23], [20, 24], [21, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 2], [11, 4], [12, 1], [13, 1], [14, 1], [15, 9], [16, 10], [17, 3], [18, 13], [19, 7], [20, 14], [21, 14], [22, 15], [23, 19], [24, 20], [25, 21], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "createRow", "code": "    public static RowRecord createRow(int row)\n    {\n        RowRecord rowrec = new RowRecord();\n\n        rowrec.setRowNumber(row);\n        rowrec.setHeight(( short ) 0xff);\n        rowrec.setOptimize(( short ) 0x0);\n        rowrec.setXFIndex(( short ) 0xf);\n        return rowrec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [4, 9], [5, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 4], [10, 5], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "isRowGroupCollapsed", "code": "    public boolean isRowGroupCollapsed( int row )\n    {\n        int collapseRow = findEndOfRowOutlineGroup( row ) + 1;\n\n        if (getRow(collapseRow) == null)\n            return false;\n        else\n            return getRow( collapseRow ).getColapsed();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [6, 10], [2, 11], [7, 12], [11, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 6], [11, 2], [12, 7], [13, 11], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "expandRow", "code": "    public void expandRow( int rowNumber )\n    {\n        int idx = rowNumber;\n        if (idx == -1)\n            return;\n\n        if (!isRowGroupCollapsed(idx))\n            return;\n\n        int startIdx = findStartOfRowOutlineGroup( idx );\n        RowRecord row = getRow( startIdx );\n\n        int endIdx = findEndOfRowOutlineGroup( idx );\n\n        if ( !isRowGroupHiddenByParent( idx ) )\n        {\n            for ( int i = startIdx; i <= endIdx; i++ )\n            {\n                if ( row.getOutlineLevel() == getRow( i ).getOutlineLevel() )\n                    getRow( i ).setZeroHeight( false );\n                else if (!isRowGroupCollapsed(i))\n                    getRow( i ).setZeroHeight( false );\n            }\n        }\n\n        getRow( endIdx + 1 ).setColapsed( false );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [5, 11], [5, 12], [6, 13], [6, 14], [9, 15], [9, 16], [1, 17], [2, 18], [3, 19], [4, 20], [14, 21], [15, 22], [16, 23], [17, 24], [17, 25], [25, 26], [25, 27], [26, 28], [25, 29], [27, 30], [27, 31], [26, 32], [29, 33], [30, 34], [32, 35], [33, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 5], [12, 5], [13, 6], [14, 6], [15, 9], [16, 9], [17, 1], [18, 2], [19, 3], [20, 4], [21, 14], [22, 15], [23, 16], [24, 17], [25, 17], [26, 25], [27, 25], [28, 26], [29, 25], [30, 27], [31, 27], [32, 26], [33, 29], [34, 30], [35, 32], [36, 33], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "isRowGroupHiddenByParent", "code": "    public boolean isRowGroupHiddenByParent( int row )\n    {\n        int endLevel;\n        boolean endHidden;\n        int endOfOutlineGroupIdx = findEndOfRowOutlineGroup( row );\n        if (getRow( endOfOutlineGroupIdx + 1 ) == null)\n        {\n            endLevel = 0;\n            endHidden = false;\n        }\n        else\n        {\n            endLevel = getRow( endOfOutlineGroupIdx + 1).getOutlineLevel();\n            endHidden = getRow( endOfOutlineGroupIdx + 1).getZeroHeight();\n        }\n\n        int startLevel;\n        boolean startHidden;\n        int startOfOutlineGroupIdx = findStartOfRowOutlineGroup( row );\n        if (startOfOutlineGroupIdx - 1 < 0 || getRow(startOfOutlineGroupIdx - 1) == null)\n        {\n            startLevel = 0;\n            startHidden = false;\n        }\n        else\n        {\n            startLevel = getRow( startOfOutlineGroupIdx - 1).getOutlineLevel();\n            startHidden = getRow( startOfOutlineGroupIdx - 1 ).getZeroHeight();\n        }\n\n        if (endLevel > startLevel)\n        {\n            return endHidden;\n        }\n        else\n        {\n            return startHidden;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [6, 13], [1, 14], [1, 15], [12, 16], [12, 17], [3, 18], [13, 19], [13, 20], [7, 21], [2, 22], [2, 23], [2, 24], [2, 25], [16, 26], [16, 27], [17, 28], [17, 29], [6, 30], [6, 31], [6, 32], [6, 33], [20, 34], [22, 35], [23, 36], [24, 37], [25, 38], [27, 39], [29, 40], [30, 41], [31, 42], [32, 43], [33, 44], [34, 45], [35, 46], [35, 47], [36, 48], [36, 49], [39, 50], [41, 51], [41, 52], [42, 53], [42, 54], [46, 55], [48, 56], [51, 57], [53, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 6], [14, 1], [15, 1], [16, 12], [17, 12], [18, 3], [19, 13], [20, 13], [21, 7], [22, 2], [23, 2], [24, 2], [25, 2], [26, 16], [27, 16], [28, 17], [29, 17], [30, 6], [31, 6], [32, 6], [33, 6], [34, 20], [35, 22], [36, 23], [37, 24], [38, 25], [39, 27], [40, 29], [41, 30], [42, 31], [43, 32], [44, 33], [45, 34], [46, 35], [47, 35], [48, 36], [49, 36], [50, 39], [51, 41], [52, 41], [53, 42], [54, 42], [55, 46], [56, 48], [57, 51], [58, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "RowRecordsAggregate", "code": "    public RowRecordsAggregate()\n    {\n        records = new TreeMap();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.2-1982", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/mail/MailComponent.java", "language": "java", "name": "org.apache.camel.component.mail.MailComponent", "code": "public class MailComponent extends DefaultComponent<MailExchange> {\n    private MailConfiguration configuration;\n\n    public MailComponent() {\n        this.configuration = new MailConfiguration();\n    }\n\n    public MailComponent(MailConfiguration configuration) {\n        this.configuration = configuration;\n    }\n\n    public MailComponent(CamelContext context) {\n        super(context);\n        this.configuration = new MailConfiguration();\n    }\n\n    /**\n     * Static builder method\n     */\n    public static MailComponent mailComponent() {\n        return new MailComponent();\n    }\n\n    /**\n     * Static builder method\n     */\n    public static MailComponent mailComponent(MailConfiguration configuration) {\n        return new MailComponent(configuration);\n    }\n\n    @Override\n    protected Endpoint<MailExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n\n        MailConfiguration config = getConfiguration().copy();\n        config.configure(new URI(uri));\n\n        MailEndpoint endpoint = new MailEndpoint(uri, this, config);\n\n        setProperties(endpoint.getConfiguration(), parameters);\n        return endpoint;\n    }\n\n    public MailConfiguration getConfiguration() {\n        return configuration;\n    }\n\n    /**\n     * Sets the Mail configuration\n     *\n     * @param configuration the configuration to use by default for endpoints\n     */\n    public void setConfiguration(MailConfiguration configuration) {\n        this.configuration = configuration;\n    }\n\n    /**\n     * A strategy method allowing the URI destination to be translated into the actual Mail destination name\n     * (say by looking up in JNDI or something)\n     */\n    protected String convertPathToActualDestination(String path) {\n        return path;", "functions": [{"function_name": "mailComponent", "code": "    public static MailComponent mailComponent() {\n        return new MailComponent();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "mailComponent", "code": "    public static MailComponent mailComponent(MailConfiguration configuration) {\n        return new MailComponent(configuration);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createEndpoint", "code": "    @Override\n    protected Endpoint<MailExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n\n        MailConfiguration config = getConfiguration().copy();\n        config.configure(new URI(uri));\n\n        MailEndpoint endpoint = new MailEndpoint(uri, this, config);\n\n        setProperties(endpoint.getConfiguration(), parameters);\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [7, 9], [2, 10], [8, 11], [3, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 7], [10, 2], [11, 8], [12, 3], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getConfiguration", "code": "    public MailConfiguration getConfiguration() {\n        return configuration;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConfiguration", "code": "    public void setConfiguration(MailConfiguration configuration) {\n        this.configuration = configuration;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "convertPathToActualDestination", "code": "    protected String convertPathToActualDestination(String path) {\n        return path;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MailComponent", "code": "    public MailComponent() {\n        this.configuration = new MailConfiguration();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MailComponent", "code": "    public MailComponent(MailConfiguration configuration) {\n        this.configuration = configuration;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MailComponent", "code": "    public MailComponent(CamelContext context) {\n        super(context);\n        this.configuration = new MailConfiguration();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.2-1700", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/builder/xml/XPathBuilder.java", "language": "java", "name": "org.apache.camel.builder.xml.XPathBuilder", "code": "public class XPathBuilder<E extends Exchange> implements Expression<E>, Predicate<E> {\n    private final String text;\n    private XPathFactory xpathFactory;\n    private Class documentType = Document.class;\n    private QName resultType = XPathConstants.NODESET;\n    private String objectModelUri;\n    private DefaultNamespaceContext namespaceContext;\n    private XPathFunctionResolver functionResolver;\n    private XPathExpression expression;\n    private MessageVariableResolver variableResolver = new MessageVariableResolver();\n    private E exchange;\n    private XPathFunction bodyFunction;\n    private XPathFunction headerFunction;\n    private XPathFunction outBodyFunction;\n    private XPathFunction outHeaderFunction;\n\n    public XPathBuilder(String text) {\n        this.text = text;\n    }\n\n    public static XPathBuilder xpath(String text) {\n        return new XPathBuilder(text);\n    }\n\n    @Override\n    public String toString() {\n        return \"XPath: \" + text;\n    }\n\n    public boolean matches(E exchange) {\n        Object booleanResult = evaluateAs(exchange, XPathConstants.BOOLEAN);\n        return toBoolean(booleanResult);\n    }\n\n    public void assertMatches(String text, E exchange) throws AssertionError {\n        Object booleanResult = evaluateAs(exchange, XPathConstants.BOOLEAN);\n        if (!toBoolean(booleanResult)) {\n            throw new AssertionError(this + \" failed on \" + exchange + \" as returned <\" + booleanResult + \">\");\n        }\n    }\n\n    public Object evaluate(E exchange) {\n        return evaluateAs(exchange, resultType);\n    }\n\n\n    /**\n     * Sets the expression result type to boolean\n     * \n     * @return the current builder\n     */\n    public XPathBuilder<E> booleanResult() {\n        resultType = XPathConstants.BOOLEAN;\n        return this;\n    }\n\n    /**\n     * Sets the expression result type to boolean\n     * \n     * @return the current builder\n     */\n    public XPathBuilder<E> nodeResult() {\n        resultType = XPathConstants.NODE;\n        return this;\n    }\n\n    /**\n     * Sets the expression result type to boolean\n     * \n     * @return the current builder\n     */\n    public XPathBuilder<E> nodeSetResult() {\n        resultType = XPathConstants.NODESET;\n        return this;\n    }\n\n    /**\n     * Sets the expression result type to boolean\n     * \n     * @return the current builder\n     */\n    public XPathBuilder<E> numberResult() {\n        resultType = XPathConstants.NUMBER;\n        return this;\n    }\n\n    /**\n     * Sets the expression result type to boolean\n     * \n     * @return the current builder\n     */\n    public XPathBuilder<E> stringResult() {\n        resultType = XPathConstants.STRING;\n        return this;\n    }\n\n    /**\n     * Sets the object model URI to use\n     * \n     * @return the current builder\n     */\n    public XPathBuilder<E> objectModel(String uri) {\n        this.objectModelUri = uri;\n        return this;\n    }\n\n    /**\n     * Sets the {@link XPathFunctionResolver} instance to use on these XPath\n     * expressions\n     * \n     * @return the current builder\n     */\n    public XPathBuilder<E> functionResolver(XPathFunctionResolver functionResolver) {\n        this.functionResolver = functionResolver;\n        return this;\n    }\n\n    /**\n     * Registers the namespace prefix and URI with the builder so that the\n     * prefix can be used in XPath expressions\n     * \n     * @param prefix is the namespace prefix that can be used in the XPath\n     *                expressions\n     * @param uri is the namespace URI to which the prefix refers\n     * @return the current builder\n     */\n    public XPathBuilder<E> namespace(String prefix, String uri) {\n        getNamespaceContext().add(prefix, uri);\n        return this;\n    }\n\n    /**\n     * Registers a variable (in the global namespace) which can be referred to\n     * from XPath expressions\n     */\n    public XPathBuilder<E> variable(String name, Object value) {\n        variableResolver.addVariable(name, value);\n        return this;\n    }\n\n    public XPathFactory getXPathFactory() throws XPathFactoryConfigurationException {\n        if (xpathFactory == null) {\n            if (objectModelUri != null) {\n                xpathFactory = XPathFactory.newInstance(objectModelUri);\n            }\n            xpathFactory = XPathFactory.newInstance();\n        }\n        return xpathFactory;\n    }\n\n    public void setXPathFactory(XPathFactory xpathFactory) {\n        this.xpathFactory = xpathFactory;\n    }\n\n    public Class getDocumentType() {\n        return documentType;\n    }\n\n    public void setDocumentType(Class documentType) {\n        this.documentType = documentType;\n    }\n\n    public String getText() {\n        return text;\n    }\n\n    public QName getResultType() {\n        return resultType;\n    }\n\n    public void setResultType(QName resultType) {\n        this.resultType = resultType;\n    }\n\n    public DefaultNamespaceContext getNamespaceContext() {\n        if (namespaceContext == null) {\n            try {\n                DefaultNamespaceContext defaultNamespaceContext = new DefaultNamespaceContext(\n                                                                                              getXPathFactory());\n                populateDefaultNamespaces(defaultNamespaceContext);\n                namespaceContext = defaultNamespaceContext;\n            } catch (XPathFactoryConfigurationException e) {\n                throw new RuntimeExpressionException(e);\n            }\n        }\n        return namespaceContext;\n    }\n\n    public void setNamespaceContext(DefaultNamespaceContext namespaceContext) {\n        this.namespaceContext = namespaceContext;\n    }\n\n    public XPathFunctionResolver getFunctionResolver() {\n        return functionResolver;\n    }\n\n    public void setFunctionResolver(XPathFunctionResolver functionResolver) {\n        this.functionResolver = functionResolver;\n    }\n\n    public XPathExpression getExpression() throws XPathFactoryConfigurationException,\n        XPathExpressionException {\n        if (expression == null) {\n            expression = createXPathExpression();\n        }\n        return expression;\n    }\n\n    public void setNamespacesFromDom(Element node) {\n        getNamespaceContext().setNamespacesFromDom(node);\n    }\n\n    public XPathFunction getBodyFunction() {\n        if (bodyFunction == null) {\n            bodyFunction = new XPathFunction() {\n                public Object evaluate(List list) throws XPathFunctionException {\n                    if (exchange == null) {\n                        return null;\n                    }\n                    return exchange.getIn().getBody();\n                }\n            };\n        }\n        return bodyFunction;\n    }\n\n    public void setBodyFunction(XPathFunction bodyFunction) {\n        this.bodyFunction = bodyFunction;\n    }\n\n    public XPathFunction getHeaderFunction() {\n        if (headerFunction == null) {\n            headerFunction = new XPathFunction() {\n                public Object evaluate(List list) throws XPathFunctionException {\n                    if (exchange != null && !list.isEmpty()) {\n                        Object value = list.get(0);\n                        if (value != null) {\n                            return exchange.getIn().getHeader(value.toString());\n                        }\n                    }\n                    return null;\n                }\n            };\n        }\n        return headerFunction;\n    }\n\n    public void setHeaderFunction(XPathFunction headerFunction) {\n        this.headerFunction = headerFunction;\n    }\n\n    public XPathFunction getOutBodyFunction() {\n        if (outBodyFunction == null) {\n            outBodyFunction = new XPathFunction() {\n                public Object evaluate(List list) throws XPathFunctionException {\n                    if (exchange == null) {\n                        return null;\n                    }\n                    return exchange.getOut().getBody();\n                }\n            };\n        }\n        return outBodyFunction;\n    }\n\n    public void setOutBodyFunction(XPathFunction outBodyFunction) {\n        this.outBodyFunction = outBodyFunction;\n    }\n\n    public XPathFunction getOutHeaderFunction() {\n        if (outHeaderFunction == null) {\n            outHeaderFunction = new XPathFunction() {\n                public Object evaluate(List list) throws XPathFunctionException {\n                    if (exchange != null && !list.isEmpty()) {\n                        Object value = list.get(0);\n                        if (value != null) {\n                            return exchange.getOut().getHeader(value.toString());\n                        }\n                    }\n                    return null;\n                }\n            };\n        }\n        return outHeaderFunction;\n    }\n\n    public void setOutHeaderFunction(XPathFunction outHeaderFunction) {\n        this.outHeaderFunction = outHeaderFunction;\n    }\n\n\n    /**\n     * Evaluates the expression as the given result type\n     */\n    protected synchronized Object evaluateAs(E exchange, QName resultType) {\n        this.exchange = exchange;\n        variableResolver.setExchange(exchange);\n        try {\n            Object document = getDocument(exchange);\n            if (resultType != null) {\n                if (document instanceof InputSource) {\n                    InputSource inputSource = (InputSource)document;\n                    return getExpression().evaluate(inputSource, resultType);\n                } else {\n                    return getExpression().evaluate(document, resultType);\n                }\n            } else {\n                if (document instanceof InputSource) {\n                    InputSource inputSource = (InputSource)document;\n                    return getExpression().evaluate(inputSource);\n                } else {\n                    return getExpression().evaluate(document);\n                }\n            }\n        } catch (XPathExpressionException e) {\n            throw new InvalidXPathExpression(getText(), e);\n        } catch (XPathFactoryConfigurationException e) {\n            throw new InvalidXPathExpression(getText(), e);\n        }\n    }\n\n    protected XPathExpression createXPathExpression() throws XPathExpressionException,\n        XPathFactoryConfigurationException {\n        XPath xPath = getXPathFactory().newXPath();\n\n        xpathFactory = null;\n\n        xPath.setNamespaceContext(getNamespaceContext());\n\n        xPath.setXPathVariableResolver(variableResolver);\n\n        XPathFunctionResolver parentResolver = getFunctionResolver();\n        if (parentResolver == null) {\n            parentResolver = xPath.getXPathFunctionResolver();\n        }\n        xPath.setXPathFunctionResolver(createDefaultFunctionResolver(parentResolver));\n        return xPath.compile(text);\n    }\n\n    /**\n     * Lets populate a number of standard prefixes if they are not already there\n     */\n    protected void populateDefaultNamespaces(DefaultNamespaceContext context) {\n        setNamespaceIfNotPresent(context, \"in\", IN_NAMESPACE);\n        setNamespaceIfNotPresent(context, \"out\", OUT_NAMESPACE);\n        setNamespaceIfNotPresent(context, \"env\", Namespaces.ENVIRONMENT_VARIABLES);\n        setNamespaceIfNotPresent(context, \"system\", Namespaces.SYSTEM_PROPERTIES_NAMESPACE);\n    }\n\n    protected void setNamespaceIfNotPresent(DefaultNamespaceContext context, String prefix, String uri) {\n        if (context != null) {\n            String current = context.getNamespaceURI(prefix);\n            if (current == null) {\n                context.add(prefix, uri);\n            }\n        }\n    }\n\n    protected XPathFunctionResolver createDefaultFunctionResolver(final XPathFunctionResolver parent) {\n        return new XPathFunctionResolver() {\n            public XPathFunction resolveFunction(QName qName, int argumentCount) {\n                XPathFunction answer = null;\n                if (parent != null) {\n                    answer = parent.resolveFunction(qName, argumentCount);\n                }\n                if (answer == null) {\n                    if (isMatchingNamespaceOrEmptyNamespace(qName.getNamespaceURI(), IN_NAMESPACE)\n                        || isMatchingNamespaceOrEmptyNamespace(qName.getNamespaceURI(), DEFAULT_NAMESPACE)) {\n                        String localPart = qName.getLocalPart();\n                        if (localPart.equals(\"body\") && argumentCount == 0) {\n                            return getBodyFunction();\n                        }\n                        if (localPart.equals(\"header\") && argumentCount == 1) {\n                            return getHeaderFunction();\n                        }\n                    }\n                    if (isMatchingNamespaceOrEmptyNamespace(qName.getNamespaceURI(), OUT_NAMESPACE)) {\n                        String localPart = qName.getLocalPart();\n                        if (localPart.equals(\"body\") && argumentCount == 0) {\n                            return getOutBodyFunction();\n                        }\n                        if (localPart.equals(\"header\") && argumentCount == 1) {\n                            return getOutHeaderFunction();\n                        }\n                    }\n                    if (isMatchingNamespaceOrEmptyNamespace(qName.getNamespaceURI(), DEFAULT_NAMESPACE)) {\n                        String localPart = qName.getLocalPart();\n                        if (localPart.equals(\"out-body\") && argumentCount == 0) {\n                            return getOutBodyFunction();\n                        }\n                        if (localPart.equals(\"out-header\") && argumentCount == 1) {\n                            return getOutHeaderFunction();\n                        }\n                    }\n                }\n                return answer;\n            }\n        };\n    }\n\n    /**\n     * Strategy method to extract the document from the exchange\n     */\n    protected Object getDocument(E exchange) {\n        Message in = exchange.getIn();\n        Class type = getDocumentType();\n        Object answer = null;\n        if (type != null) {\n            answer = in.getBody(type);\n        }\n        if (answer == null) {\n            answer = in.getBody();\n        }\n\n        if (answer instanceof String) {\n            answer = new InputSource(new StringReader(answer.toString()));\n        }\n        return answer;", "functions": [{"function_name": "xpath", "code": "    public static XPathBuilder xpath(String text) {\n        return new XPathBuilder(text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"XPath: \" + text;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "matches", "code": "    public boolean matches(E exchange) {\n        Object booleanResult = evaluateAs(exchange, XPathConstants.BOOLEAN);\n        return toBoolean(booleanResult);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "assertMatches", "code": "    public void assertMatches(String text, E exchange) throws AssertionError {\n        Object booleanResult = evaluateAs(exchange, XPathConstants.BOOLEAN);\n        if (!toBoolean(booleanResult)) {\n            throw new AssertionError(this + \" failed on \" + exchange + \" as returned <\" + booleanResult + \">\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [12, 13], [12, 14], [14, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [13, 12], [14, 12], [15, 14], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "evaluate", "code": "    public Object evaluate(E exchange) {\n        return evaluateAs(exchange, resultType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "booleanResult", "code": "    public XPathBuilder<E> booleanResult() {\n        resultType = XPathConstants.BOOLEAN;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "nodeResult", "code": "    public XPathBuilder<E> nodeResult() {\n        resultType = XPathConstants.NODE;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "nodeSetResult", "code": "    public XPathBuilder<E> nodeSetResult() {\n        resultType = XPathConstants.NODESET;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "numberResult", "code": "    public XPathBuilder<E> numberResult() {\n        resultType = XPathConstants.NUMBER;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "stringResult", "code": "    public XPathBuilder<E> stringResult() {\n        resultType = XPathConstants.STRING;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "objectModel", "code": "    public XPathBuilder<E> objectModel(String uri) {\n        this.objectModelUri = uri;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "functionResolver", "code": "    public XPathBuilder<E> functionResolver(XPathFunctionResolver functionResolver) {\n        this.functionResolver = functionResolver;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "namespace", "code": "    public XPathBuilder<E> namespace(String prefix, String uri) {\n        getNamespaceContext().add(prefix, uri);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "variable", "code": "    public XPathBuilder<E> variable(String name, Object value) {\n        variableResolver.addVariable(name, value);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getXPathFactory", "code": "    public XPathFactory getXPathFactory() throws XPathFactoryConfigurationException {\n        if (xpathFactory == null) {\n            if (objectModelUri != null) {\n                xpathFactory = XPathFactory.newInstance(objectModelUri);\n            }\n            xpathFactory = XPathFactory.newInstance();\n        }\n        return xpathFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [2, 6], [4, 7], [6, 8], [7, 9], [4, 10], [10, 11], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 2], [7, 4], [8, 6], [9, 7], [10, 4], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setXPathFactory", "code": "    public void setXPathFactory(XPathFactory xpathFactory) {\n        this.xpathFactory = xpathFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentType", "code": "    public Class getDocumentType() {\n        return documentType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDocumentType", "code": "    public void setDocumentType(Class documentType) {\n        this.documentType = documentType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getText", "code": "    public String getText() {\n        return text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getResultType", "code": "    public QName getResultType() {\n        return resultType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResultType", "code": "    public void setResultType(QName resultType) {\n        this.resultType = resultType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamespaceContext", "code": "    public DefaultNamespaceContext getNamespaceContext() {\n        if (namespaceContext == null) {\n            try {\n                DefaultNamespaceContext defaultNamespaceContext = new DefaultNamespaceContext(\n                                                                                              getXPathFactory());\n                populateDefaultNamespaces(defaultNamespaceContext);\n                namespaceContext = defaultNamespaceContext;\n            } catch (XPathFactoryConfigurationException e) {\n                throw new RuntimeExpressionException(e);\n            }\n        }\n        return namespaceContext;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [6, 8], [4, 9], [4, 10], [8, 11], [7, 12], [12, 13], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 6], [9, 4], [10, 4], [11, 8], [12, 7], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setNamespaceContext", "code": "    public void setNamespaceContext(DefaultNamespaceContext namespaceContext) {\n        this.namespaceContext = namespaceContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFunctionResolver", "code": "    public XPathFunctionResolver getFunctionResolver() {\n        return functionResolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFunctionResolver", "code": "    public void setFunctionResolver(XPathFunctionResolver functionResolver) {\n        this.functionResolver = functionResolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExpression", "code": "    public XPathExpression getExpression() throws XPathFactoryConfigurationException,\n        XPathExpressionException {\n        if (expression == null) {\n            expression = createXPathExpression();\n        }\n        return expression;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setNamespacesFromDom", "code": "    public void setNamespacesFromDom(Element node) {\n        getNamespaceContext().setNamespacesFromDom(node);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getBodyFunction", "code": "    public XPathFunction getBodyFunction() {\n        if (bodyFunction == null) {\n            bodyFunction = new XPathFunction() {\n                public Object evaluate(List list) throws XPathFunctionException {\n                    if (exchange == null) {\n                        return null;\n                    }\n                    return exchange.getIn().getBody();\n                }\n            };\n        }\n        return bodyFunction;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [7, 8], [7, 9], [7, 10], [8, 11], [9, 12], [11, 13], [9, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 7], [9, 7], [10, 7], [11, 8], [12, 9], [13, 11], [14, 9], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setBodyFunction", "code": "    public void setBodyFunction(XPathFunction bodyFunction) {\n        this.bodyFunction = bodyFunction;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeaderFunction", "code": "    public XPathFunction getHeaderFunction() {\n        if (headerFunction == null) {\n            headerFunction = new XPathFunction() {\n                public Object evaluate(List list) throws XPathFunctionException {\n                    if (exchange != null && !list.isEmpty()) {\n                        Object value = list.get(0);\n                        if (value != null) {\n                            return exchange.getIn().getHeader(value.toString());\n                        }\n                    }\n                    return null;\n                }\n            };\n        }\n        return headerFunction;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [7, 8], [7, 9], [7, 10], [8, 11], [9, 12], [9, 13], [9, 14], [12, 15], [12, 16], [13, 17], [16, 18], [13, 19], [17, 20], [14, 21], [19, 22], [21, 23], [22, 24], [24, 25], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 7], [9, 7], [10, 7], [11, 8], [12, 9], [13, 9], [14, 9], [15, 12], [16, 12], [17, 13], [18, 16], [19, 13], [20, 17], [21, 14], [22, 19], [23, 21], [24, 22], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "setHeaderFunction", "code": "    public void setHeaderFunction(XPathFunction headerFunction) {\n        this.headerFunction = headerFunction;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutBodyFunction", "code": "    public XPathFunction getOutBodyFunction() {\n        if (outBodyFunction == null) {\n            outBodyFunction = new XPathFunction() {\n                public Object evaluate(List list) throws XPathFunctionException {\n                    if (exchange == null) {\n                        return null;\n                    }\n                    return exchange.getOut().getBody();\n                }\n            };\n        }\n        return outBodyFunction;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [7, 8], [7, 9], [7, 10], [8, 11], [9, 12], [11, 13], [9, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 7], [9, 7], [10, 7], [11, 8], [12, 9], [13, 11], [14, 9], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setOutBodyFunction", "code": "    public void setOutBodyFunction(XPathFunction outBodyFunction) {\n        this.outBodyFunction = outBodyFunction;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutHeaderFunction", "code": "    public XPathFunction getOutHeaderFunction() {\n        if (outHeaderFunction == null) {\n            outHeaderFunction = new XPathFunction() {\n                public Object evaluate(List list) throws XPathFunctionException {\n                    if (exchange != null && !list.isEmpty()) {\n                        Object value = list.get(0);\n                        if (value != null) {\n                            return exchange.getOut().getHeader(value.toString());\n                        }\n                    }\n                    return null;\n                }\n            };\n        }\n        return outHeaderFunction;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [7, 8], [7, 9], [7, 10], [8, 11], [9, 12], [9, 13], [9, 14], [12, 15], [12, 16], [13, 17], [16, 18], [13, 19], [17, 20], [14, 21], [19, 22], [21, 23], [22, 24], [24, 25], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 7], [9, 7], [10, 7], [11, 8], [12, 9], [13, 9], [14, 9], [15, 12], [16, 12], [17, 13], [18, 16], [19, 13], [20, 17], [21, 14], [22, 19], [23, 21], [24, 22], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "setOutHeaderFunction", "code": "    public void setOutHeaderFunction(XPathFunction outHeaderFunction) {\n        this.outHeaderFunction = outHeaderFunction;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "evaluateAs", "code": "    protected synchronized Object evaluateAs(E exchange, QName resultType) {\n        this.exchange = exchange;\n        variableResolver.setExchange(exchange);\n        try {\n            Object document = getDocument(exchange);\n            if (resultType != null) {\n                if (document instanceof InputSource) {\n                    InputSource inputSource = (InputSource)document;\n                    return getExpression().evaluate(inputSource, resultType);\n                } else {\n                    return getExpression().evaluate(document, resultType);\n                }\n            } else {\n                if (document instanceof InputSource) {\n                    InputSource inputSource = (InputSource)document;\n                    return getExpression().evaluate(inputSource);\n                } else {\n                    return getExpression().evaluate(document);\n                }\n            }\n        } catch (XPathExpressionException e) {\n            throw new InvalidXPathExpression(getText(), e);\n        } catch (XPathFactoryConfigurationException e) {\n            throw new InvalidXPathExpression(getText(), e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "VAR_DECL", "CALL", "ASSIGN", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "RETURN", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [10, 13], [11, 14], [6, 15], [6, 16], [12, 17], [7, 18], [13, 19], [14, 20], [15, 21], [16, 22], [15, 23], [15, 24], [15, 25], [16, 26], [16, 27], [16, 28], [23, 29], [24, 30], [26, 31], [27, 32], [29, 33], [30, 34], [31, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 10], [14, 11], [15, 6], [16, 6], [17, 12], [18, 7], [19, 13], [20, 14], [21, 15], [22, 16], [23, 15], [24, 15], [25, 15], [26, 16], [27, 16], [28, 16], [29, 23], [30, 24], [31, 26], [32, 27], [33, 29], [34, 30], [35, 31], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "createXPathExpression", "code": "    protected XPathExpression createXPathExpression() throws XPathExpressionException,\n        XPathFactoryConfigurationException {\n        XPath xPath = getXPathFactory().newXPath();\n\n        xpathFactory = null;\n\n        xPath.setNamespaceContext(getNamespaceContext());\n\n        xPath.setXPathVariableResolver(variableResolver);\n\n        XPathFunctionResolver parentResolver = getFunctionResolver();\n        if (parentResolver == null) {\n            parentResolver = xPath.getXPathFunctionResolver();\n        }\n        xPath.setXPathFunctionResolver(createDefaultFunctionResolver(parentResolver));\n        return xPath.compile(text);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [3, 13], [9, 14], [10, 15], [4, 16], [2, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 3], [14, 9], [15, 10], [16, 4], [17, 2], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "populateDefaultNamespaces", "code": "    protected void populateDefaultNamespaces(DefaultNamespaceContext context) {\n        setNamespaceIfNotPresent(context, \"in\", IN_NAMESPACE);\n        setNamespaceIfNotPresent(context, \"out\", OUT_NAMESPACE);\n        setNamespaceIfNotPresent(context, \"env\", Namespaces.ENVIRONMENT_VARIABLES);\n        setNamespaceIfNotPresent(context, \"system\", Namespaces.SYSTEM_PROPERTIES_NAMESPACE);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setNamespaceIfNotPresent", "code": "    protected void setNamespaceIfNotPresent(DefaultNamespaceContext context, String prefix, String uri) {\n        if (context != null) {\n            String current = context.getNamespaceURI(prefix);\n            if (current == null) {\n                context.add(prefix, uri);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [9, 10], [7, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 9], [11, 7], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createDefaultFunctionResolver", "code": "    protected XPathFunctionResolver createDefaultFunctionResolver(final XPathFunctionResolver parent) {\n        return new XPathFunctionResolver() {\n            public XPathFunction resolveFunction(QName qName, int argumentCount) {\n                XPathFunction answer = null;\n                if (parent != null) {\n                    answer = parent.resolveFunction(qName, argumentCount);\n                }\n                if (answer == null) {\n                    if (isMatchingNamespaceOrEmptyNamespace(qName.getNamespaceURI(), IN_NAMESPACE)\n                        || isMatchingNamespaceOrEmptyNamespace(qName.getNamespaceURI(), DEFAULT_NAMESPACE)) {\n                        String localPart = qName.getLocalPart();\n                        if (localPart.equals(\"body\") && argumentCount == 0) {\n                            return getBodyFunction();\n                        }\n                        if (localPart.equals(\"header\") && argumentCount == 1) {\n                            return getHeaderFunction();\n                        }\n                    }\n                    if (isMatchingNamespaceOrEmptyNamespace(qName.getNamespaceURI(), OUT_NAMESPACE)) {\n                        String localPart = qName.getLocalPart();\n                        if (localPart.equals(\"body\") && argumentCount == 0) {\n                            return getOutBodyFunction();\n                        }\n                        if (localPart.equals(\"header\") && argumentCount == 1) {\n                            return getOutHeaderFunction();\n                        }\n                    }\n                    if (isMatchingNamespaceOrEmptyNamespace(qName.getNamespaceURI(), DEFAULT_NAMESPACE)) {\n                        String localPart = qName.getLocalPart();\n                        if (localPart.equals(\"out-body\") && argumentCount == 0) {\n                            return getOutBodyFunction();\n                        }\n                        if (localPart.equals(\"out-header\") && argumentCount == 1) {\n                            return getOutHeaderFunction();\n                        }\n                    }\n                }\n                return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "IF", "IF", "VAR_DECL", "CALL", "IF", "IF", "VAR_DECL", "CALL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [6, 11], [7, 12], [6, 13], [6, 14], [6, 15], [11, 16], [12, 17], [8, 18], [13, 19], [14, 20], [15, 21], [7, 22], [13, 23], [13, 24], [13, 25], [19, 26], [14, 27], [14, 28], [14, 29], [20, 30], [15, 31], [15, 32], [15, 33], [21, 34], [21, 35], [22, 36], [23, 37], [24, 38], [27, 39], [28, 40], [31, 41], [32, 42], [34, 43], [35, 44], [23, 45], [37, 46], [37, 47], [24, 48], [38, 49], [38, 50], [25, 51], [27, 52], [39, 53], [39, 54], [28, 55], [40, 56], [40, 57], [29, 58], [31, 59], [41, 60], [41, 61], [32, 62], [42, 63], [42, 64], [33, 65], [45, 66], [46, 67], [47, 68], [48, 69], [49, 70], [50, 71], [52, 72], [53, 73], [54, 74], [55, 75], [56, 76], [57, 77], [59, 78], [60, 79], [61, 80], [62, 81], [63, 82], [64, 83], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 6], [12, 7], [13, 6], [14, 6], [15, 6], [16, 11], [17, 12], [18, 8], [19, 13], [20, 14], [21, 15], [22, 7], [23, 13], [24, 13], [25, 13], [26, 19], [27, 14], [28, 14], [29, 14], [30, 20], [31, 15], [32, 15], [33, 15], [34, 21], [35, 21], [36, 22], [37, 23], [38, 24], [39, 27], [40, 28], [41, 31], [42, 32], [43, 34], [44, 35], [45, 23], [46, 37], [47, 37], [48, 24], [49, 38], [50, 38], [51, 25], [52, 27], [53, 39], [54, 39], [55, 28], [56, 40], [57, 40], [58, 29], [59, 31], [60, 41], [61, 41], [62, 32], [63, 42], [64, 42], [65, 33], [66, 45], [67, 46], [68, 47], [69, 48], [70, 49], [71, 50], [72, 52], [73, 53], [74, 54], [75, 55], [76, 56], [77, 57], [78, 59], [79, 60], [80, 61], [81, 62], [82, 63], [83, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83]]}, {"function_name": "getDocument", "code": "    protected Object getDocument(E exchange) {\n        Message in = exchange.getIn();\n        Class type = getDocumentType();\n        Object answer = null;\n        if (type != null) {\n            answer = in.getBody(type);\n        }\n        if (answer == null) {\n            answer = in.getBody();\n        }\n\n        if (answer instanceof String) {\n            answer = new InputSource(new StringReader(answer.toString()));\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [10, 12], [11, 13], [5, 14], [6, 15], [7, 16], [2, 17], [3, 18], [4, 19], [17, 20], [18, 21], [19, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 10], [13, 11], [14, 5], [15, 6], [16, 7], [17, 2], [18, 3], [19, 4], [20, 17], [21, 18], [22, 19], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "XPathBuilder", "code": "    public XPathBuilder(String text) {\n        this.text = text;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.1-4102", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/AnimatedIcon.java", "language": "java", "name": "org.gjt.sp.jedit.gui.AnimatedIcon", "code": "public class AnimatedIcon extends ImageIcon\n{\n\t//{{{ AnimatedIcon constructor\n\t/**\n\t * @param frames The frames to be used in the animation\n\t * @param rate The frame rate of the animation, in frames per second\n\t * @param host The container that the animation is used in\n\t */\n\tpublic AnimatedIcon(Image icon, Image[] frames, int rate, Component host)\n\t{\n\t\tsuper(icon);\n\t\tthis.icon = icon;\n\t\tthis.frames = frames;\n\t\tdelay = 1000/rate;\n\t\tthis.host = host;\n\t} //}}}\n\n\t//{{{ getFrames() method\n\tpublic Image[] getFrames()\n\t{\n\t\treturn frames;\n\t} //}}}\n\n\t//{{{ getIcon() method\n\tpublic Image getIcon()\n\t{\n\t\treturn icon;\n\t} //}}}\n\n\t//{{{ getRate() method\n\tpublic int getRate()\n\t{\n\t\treturn 1000/delay;\n\t} //}}}\n\n\t//{{{ setFrames() method\n\tpublic void setFrames(Image[] frames)\n\t{\n\t\tthis.frames = frames;\n\t} //}}}\n\n\t//{{{ setIcon() method\n\tpublic void setIcon(Image icon)\n\t{\n\t\tthis.icon = icon;\n\t} //}}}\n\n\t//{{{ setRate() method\n\tpublic void setRate(int rate)\n\t{\n\t\tdelay = 1000/rate;\n\t} //}}}\n\n\t//{{{ start() method\n\t/**\n\t * Starts the animation rolling\n\t */\n\tpublic void start()\n\t{\n\t\tif(timer != null)\n\t\t\treturn;\n\n\t\ttimer = new Timer(delay,new Animator());\n\t\ttimer.start();\n\t} //}}}\n\n\t//{{{ stop() method\n\t/**\n\t * Stops the animation, and resets to frame 0\n\t */\n\tpublic void stop()\n\t{\n\t\tcurrent = 0;\n\t\tif(timer != null)\n\t\t{\n\t\t\ttimer.stop();\n\t\t\ttimer = null;\n\t\t}\n\n\t\tsetImage(icon);\n\t\thost.repaint();\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate Image[] frames;\n\tprivate int current;\n\tprivate int delay;\n\tprivate Timer timer;\n\tprivate Component host;\n\tprivate Image icon;\n\t//}}}\n\n\t//{{{ Animator class\n\tclass Animator implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tcurrent = (current + 1) % frames.length;\n\t\t\tsetImage(frames[current]);\n\t\t\thost.repaint();", "functions": [{"function_name": "getFrames", "code": "\tpublic Image[] getFrames()\n\t{\n\t\treturn frames;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIcon", "code": "\tpublic Image getIcon()\n\t{\n\t\treturn icon;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRate", "code": "\tpublic int getRate()\n\t{\n\t\treturn 1000/delay;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFrames", "code": "\tpublic void setFrames(Image[] frames)\n\t{\n\t\tthis.frames = frames;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIcon", "code": "\tpublic void setIcon(Image icon)\n\t{\n\t\tthis.icon = icon;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRate", "code": "\tpublic void setRate(int rate)\n\t{\n\t\tdelay = 1000/rate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "start", "code": "\tpublic void start()\n\t{\n\t\tif(timer != null)\n\t\t\treturn;\n\n\t\ttimer = new Timer(delay,new Animator());\n\t\ttimer.start();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [3, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 3], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "stop", "code": "\tpublic void stop()\n\t{\n\t\tcurrent = 0;\n\t\tif(timer != null)\n\t\t{\n\t\t\ttimer.stop();\n\t\t\ttimer = null;\n\t\t}\n\n\t\tsetImage(icon);\n\t\thost.repaint();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [5, 7], [1, 8], [1, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 5], [8, 1], [9, 1], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "AnimatedIcon", "code": "\tpublic AnimatedIcon(Image icon, Image[] frames, int rate, Component host)\n\t{\n\t\tsuper(icon);\n\t\tthis.icon = icon;\n\t\tthis.frames = frames;\n\t\tdelay = 1000/rate;\n\t\tthis.host = host;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "xalan-2.5-6950", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/NotCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.NotCall", "code": "final class NotCall extends FunctionCall {\n    public NotCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\targument().translate(classGen, methodGen);\n\til.append(ICONST_1);\n\til.append(IXOR);\n    }\n\n    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Expression exp = argument();\n\texp.translateDesynthesized(classGen, methodGen);\n\tfinal BranchHandle gotoh = il.append(new GOTO(null));\n\t_falseList = exp._trueList;\n\t_falseList.add(gotoh);", "functions": [{"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\targument().translate(classGen, methodGen);\n\til.append(ICONST_1);\n\til.append(IXOR);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "translateDesynthesized", "code": "    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Expression exp = argument();\n\texp.translateDesynthesized(classGen, methodGen);\n\tfinal BranchHandle gotoh = il.append(new GOTO(null));\n\t_falseList = exp._trueList;\n\t_falseList.add(gotoh);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "NotCall", "code": "    public NotCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.1-4117", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "gnu/regexp/RETokenRange.java", "language": "java", "name": "gnu.regexp.RETokenRange", "code": "final class RETokenRange extends REToken {\n  private char lo, hi;\n  private boolean insens;\n\n  RETokenRange(int subIndex, char lo, char hi, boolean ins) {\n    super(subIndex);\n    this.lo = (insens = ins) ? Character.toLowerCase(lo) : lo;\n    this.hi = ins ? Character.toLowerCase(hi) : hi;\n  }\n\n  int getMinimumLength() {\n    return 1;\n  }\n\n    boolean match(CharIndexed input, REMatch mymatch) {\n\tchar c = input.charAt(mymatch.index);\n\tif (c == CharIndexed.OUT_OF_BOUNDS) return false;\n\tif (insens) c = Character.toLowerCase(c);\n\tif ((c >= lo) && (c <= hi)) {\n\t    ++mymatch.index;\n\t    return next(input, mymatch);\n\t}\n\treturn false;\n    }\n    \n  void dump(StringBuffer os) {\n    os.append(lo).append('-').append(hi);", "functions": [{"function_name": "getMinimumLength", "code": "  int getMinimumLength() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\tchar c = input.charAt(mymatch.index);\n\tif (c == CharIndexed.OUT_OF_BOUNDS) return false;\n\tif (insens) c = Character.toLowerCase(c);\n\tif ((c >= lo) && (c <= hi)) {\n\t    ++mymatch.index;\n\t    return next(input, mymatch);\n\t}\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [4, 11], [2, 12], [9, 13], [9, 14], [3, 15], [10, 16], [5, 17], [12, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 4], [12, 2], [13, 9], [14, 9], [15, 3], [16, 10], [17, 5], [18, 12], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "dump", "code": "  void dump(StringBuffer os) {\n    os.append(lo).append('-').append(hi);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "RETokenRange", "code": "  RETokenRange(int subIndex, char lo, char hi, boolean ins) {\n    super(subIndex);\n    this.lo = (insens = ins) ? Character.toLowerCase(lo) : lo;\n    this.hi = ins ? Character.toLowerCase(hi) : hi;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [7, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 7], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "ant-1.7-1104", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/depend/constantpool/FloatCPInfo.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.depend.constantpool.FloatCPInfo", "code": "public class FloatCPInfo extends ConstantCPInfo {\n\n    /** Constructor.  */\n    public FloatCPInfo() {\n        super(CONSTANT_FLOAT, 1);\n    }\n\n    /**\n     * read a constant pool entry from a class stream.\n     *\n     * @param cpStream the DataInputStream which contains the constant pool\n     *      entry to be read.\n     * @exception IOException if there is a problem reading the entry from\n     *      the stream.\n     */\n    public void read(DataInputStream cpStream) throws IOException {\n        setValue(new Float(cpStream.readFloat()));\n    }\n\n    /**\n     * Print a readable version of the constant pool entry.\n     *\n     * @return the string representation of this constant pool entry.\n     */\n    public String toString() {\n        return \"Float Constant Pool Entry: \" + getValue();", "functions": [{"function_name": "read", "code": "    public void read(DataInputStream cpStream) throws IOException {\n        setValue(new Float(cpStream.readFloat()));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"Float Constant Pool Entry: \" + getValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "FloatCPInfo", "code": "    public FloatCPInfo() {\n        super(CONSTANT_FLOAT, 1);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.5-7246", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/serializer/SerializationHandler.java", "language": "java", "name": "org.apache.xml.serializer.SerializationHandler", "code": "public interface SerializationHandler\n    extends\n        ExtendedContentHandler,\n        ExtendedLexicalHandler,\n        XSLOutputAttributes,\n        DeclHandler,\n        ErrorHandler,\n        DOMSerializer,\n        Serializer\n{\n    /**\n     * Set the SAX Content handler that the serializer sends its output to. This\n     * method only applies to a ToSAXHandler, not to a ToStream serializer.\n     * \n     * @see org.apache.xml.serializer.Serializer#asContentHandler()\n     * @see org.apache.xml.serializer.ToSAXHandler\n     */\n    public void setContentHandler(ContentHandler ch);\n    \n    public void close();\n\n    /**\n     * Notify that the serializer should take this DOM node as input to be\n     * serialized.\n     * \n     * @param node the DOM node to be serialized.\n     * @throws IOException\n     */\n    public void serialize(Node node) throws IOException;\n    /**\n     * Turns special character escaping on/off. \n     * \n     * Note that characters will\n     * never, even if this option is set to 'true', be escaped within\n     * CDATA sections in output XML documents.\n     * \n     * @param true if escaping is to be set on.\n     */\n    public boolean setEscaping(boolean escape) throws SAXException;\n\n    /**\n     * Set the number of spaces to indent for each indentation level.\n     * @param spaces the number of spaces to indent for each indentation level.\n     */\n    public void setIndentAmount(int spaces);\n\n    /**\n     * Set the transformer associated with the serializer.\n     * @param transformer the transformer associated with the serializer.\n     */\n    public void setTransformer(Transformer transformer);\n    \n    /**\n     * Get the transformer associated with the serializer.\n     * @return Transformer the transformer associated with the serializer.\n     */\n    public Transformer getTransformer();\n\n    /** \n     * Used only by TransformerSnapshotImpl to restore the serialization \n     * to a previous state. \n     * \n     * @param NamespaceMappings\n     */\n    public void setNamespaceMappings(NamespaceMappings mappings);\n\n    /**\n     * Flush any pending events currently queued up in the serializer. This will\n     * flush any input that the serializer has which it has not yet sent as\n     * output.\n     */\n    public void flushPending();", "functions": [{"function_name": "setContentHandler", "code": "    public void setContentHandler(ContentHandler ch);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "close", "code": "    public void close();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "serialize", "code": "    public void serialize(Node node) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEscaping", "code": "    public boolean setEscaping(boolean escape) throws SAXException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIndentAmount", "code": "    public void setIndentAmount(int spaces);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransformer", "code": "    public void setTransformer(Transformer transformer);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTransformer", "code": "    public Transformer getTransformer();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setNamespaceMappings", "code": "    public void setNamespaceMappings(NamespaceMappings mappings);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "flushPending", "code": "    public void flushPending();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.7-985", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/dotnet/VisualBasicCompile.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.dotnet.VisualBasicCompile", "code": "public class VisualBasicCompile extends DotnetCompile {\n\n    /**\n     * Compiler option to remove integer checks. Default: false.\n     */\n    private boolean removeIntChecks = false;\n\n    /**\n     * Require explicit declaration of variables? Default: false.\n     */\n    private boolean optionExplicit = false;\n\n    /**\n     * Enforce strict language semantics? Default: false.\n     */\n    private boolean optionStrict = false;\n\n    /**\n     * Whether to compare strings as \"text\" or \"binary\". Default: \"binary\".\n     */\n    private String optionCompare;\n\n    /**\n     * Root namespace for all type declarations.\n     */\n    private String rootNamespace;\n\n    /**\n     * Declare global imports fornamespaces in referenced metadata files.\n     */\n    private String imports;\n\n    /**\n     * Constructor for VisualBasicCompile.\n     */\n    public VisualBasicCompile() {\n        clear();\n    }\n\n    /**\n     *  reset all contents.\n     */\n    public void clear() {\n        super.clear();\n        imports = null;\n        rootNamespace = null;\n        optionCompare = null;\n        optionExplicit = false;\n        optionStrict = false;\n        removeIntChecks = false;\n        setExecutable(\"vbc\");\n    }\n\n    /**\n     *  get the argument or null for no argument needed\n     *  This is overridden from DotnetCompile.java because VBC uses\n     *  \"/win32resource:\" rather than \"/win32res:\"\n     *\n     *@return    The Win32Res Parameter to CSC\n     */\n    protected String getWin32ResParameter() {\n        if (getWin32Res() != null) {\n            return \"/win32resource:\" + getWin32Res().toString();\n        } else {\n            return null;\n        }\n    }\n\n    /**\n     * Whether to remove integer checks. Default false.\n     * @param  flag  on/off flag\n     */\n    public void setRemoveIntChecks(boolean flag) {\n        removeIntChecks = flag;\n    }\n\n    /**\n     * Get the flag for removing integer checks.\n     * @return    true if flag is turned on\n     */\n    public boolean getRemoveIntChecks() {\n        return removeIntChecks;\n    }\n\n    /**\n     * Form the option string for removeIntChecks.\n     * @return The parameter string.\n     */\n    public String getRemoveIntChecksParameter() {\n        return \"/removeintchecks\" + (removeIntChecks ? \"+\" : \"-\");\n    }\n\n    /**\n     * Whether to require explicit declaration of variables.\n     * @param  flag  on/off flag\n     */\n    public void setOptionExplicit(boolean flag) {\n        optionExplicit = flag;\n    }\n\n    /**\n     * Get the flag for whether to require explicit declaration of variables.\n     *@return    true if flag is turned on\n     */\n    public boolean getOptionExplicit() {\n        return optionExplicit;\n    }\n\n    /**\n     * Form the option string for optionExplicit..\n     * @return The parameter string.\n     */\n    public String getOptionExplicitParameter() {\n        return \"/optionexplicit\" + (optionExplicit ? \"+\" : \"-\");\n    }\n\n    /**\n     * Enforce strict language semantics.\n     * @param  flag  on/off flag\n     */\n    public void setOptionStrict(boolean flag) {\n        optionStrict = flag;\n    }\n\n    /**\n     * Get the flag for whether to enforce strict language semantics.\n     * @return    true if flag is turned on\n     */\n    public boolean getOptionStrict() {\n        return optionStrict;\n    }\n\n    /**\n     * For the option string for optionStrict.\n     * @return The parameter string.\n     */\n    public String getOptionStrictParameter() {\n        return \"/optionstrict\" + (optionStrict ? \"+\" : \"-\");\n    }\n\n\n    /**\n     * Specifies the root namespace for all type declarations.\n     * @param rootNamespace a root namespace.\n     */\n    public void setRootNamespace(String rootNamespace) {\n        this.rootNamespace = rootNamespace;\n    }\n\n\n    /**\n     * Get the root namespace.\n     * @return  the root namespace.\n     */\n    public String getRootNamespace() {\n        return this.rootNamespace;\n    }\n\n\n    /**\n     * Form the option string for rootNamespace.\n     * @return  the root namespace option string.\n     */\n    protected String getRootNamespaceParameter() {\n        if (rootNamespace != null && rootNamespace.length() != 0) {\n            return \"/rootnamespace:\" + rootNamespace;\n        } else {\n            return null;\n        }\n    }\n\n\n    /**\n     * Declare global imports for namespaces in referenced metadata files.\n     * @param imports the imports string\n     */\n    public void setImports(String imports) {\n        this.imports = imports;\n    }\n\n\n    /**\n     * Get global imports for namespaces in referenced metadata files.\n     * @return  the imports string.\n     */\n    public String getImports() {\n        return this.imports;\n    }\n\n\n    /**\n     * Format the option for imports.\n     * @return  the formatted import option.\n     */\n    protected String getImportsParameter() {\n        if (imports != null && imports.length() != 0) {\n            return \"/imports:\" + imports;\n        } else {\n            return null;\n        }\n    }\n\n\n    /**\n     * Specify binary- or text-style string comparisons. Defaults\n     * to \"binary\"\n     * @param optionCompare the option compare style. \"text\" | \"binary\".\n     */\n    public void setOptionCompare(String optionCompare) {\n        if (\"text\".equalsIgnoreCase(optionCompare)) {\n            this.optionCompare = \"text\";\n        } else {\n            this.optionCompare = \"binary\";\n        }\n    }\n\n\n    /**\n     * \"binary\" or \"text\" for the string-comparison style.\n     * @return  the option compare style.\n     */\n    public String getOptionCompare() {\n        return this.optionCompare;\n    }\n\n    /**\n     * Format the option for string comparison style.\n     * @return  The formatted option.\n     */\n    protected String getOptionCompareParameter() {\n        if (optionCompare != null && \"text\".equalsIgnoreCase(optionCompare)) {\n            return \"/optioncompare:text\";\n        } else {\n            return \"/optioncompare:binary\";\n        }\n    }\n\n    /**\n     * implement VBC commands\n     * @param command the command to set arguements on.\n     */\n    protected void addCompilerSpecificOptions(NetCommand command) {\n        command.addArgument(getRemoveIntChecksParameter());\n        command.addArgument(getImportsParameter());\n        command.addArgument(getOptionExplicitParameter());\n        command.addArgument(getOptionStrictParameter());\n        command.addArgument(getRootNamespaceParameter());\n        command.addArgument(getOptionCompareParameter());\n    }\n\n    /**\n     * Get the delimiter that the compiler uses between references.\n     * For example, c# will return \";\"; VB.NET will return \",\"\n     * @return The string delimiter for the reference string.\n     */\n    public String getReferenceDelimiter() {\n        return \",\";\n    }\n\n\n\n    /**\n     * Get the extension of filenames to compile.\n     * @return The string extension of files to compile.\n     */\n    public String getFileExtension() {\n        return \"vb\";\n    }\n\n    /** {@inheritDoc} */\n    protected void createResourceParameter(NetCommand command, DotnetResource resource) {\n        resource.getParameters(getProject(), command, false);\n    }\n\n    /**\n     * validation code\n     * @throws  BuildException  if validation failed\n     */\n    protected void validate()\n            throws BuildException {\n        super.validate();\n        if (getDestFile() == null) {\n            throw new BuildException(\"DestFile was not specified\");", "functions": [{"function_name": "clear", "code": "    public void clear() {\n        super.clear();\n        imports = null;\n        rootNamespace = null;\n        optionCompare = null;\n        optionExplicit = false;\n        optionStrict = false;\n        removeIntChecks = false;\n        setExecutable(\"vbc\");", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [4, 11], [5, 12], [6, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 4], [12, 5], [13, 6], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getWin32ResParameter", "code": "    protected String getWin32ResParameter() {\n        if (getWin32Res() != null) {\n            return \"/win32resource:\" + getWin32Res().toString();\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [3, 7], [4, 8], [8, 9], [8, 10], [9, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 3], [8, 4], [9, 8], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setRemoveIntChecks", "code": "    public void setRemoveIntChecks(boolean flag) {\n        removeIntChecks = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRemoveIntChecks", "code": "    public boolean getRemoveIntChecks() {\n        return removeIntChecks;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRemoveIntChecksParameter", "code": "    public String getRemoveIntChecksParameter() {\n        return \"/removeintchecks\" + (removeIntChecks ? \"+\" : \"-\");", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOptionExplicit", "code": "    public void setOptionExplicit(boolean flag) {\n        optionExplicit = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptionExplicit", "code": "    public boolean getOptionExplicit() {\n        return optionExplicit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOptionExplicitParameter", "code": "    public String getOptionExplicitParameter() {\n        return \"/optionexplicit\" + (optionExplicit ? \"+\" : \"-\");", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOptionStrict", "code": "    public void setOptionStrict(boolean flag) {\n        optionStrict = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptionStrict", "code": "    public boolean getOptionStrict() {\n        return optionStrict;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOptionStrictParameter", "code": "    public String getOptionStrictParameter() {\n        return \"/optionstrict\" + (optionStrict ? \"+\" : \"-\");", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setRootNamespace", "code": "    public void setRootNamespace(String rootNamespace) {\n        this.rootNamespace = rootNamespace;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRootNamespace", "code": "    public String getRootNamespace() {\n        return this.rootNamespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRootNamespaceParameter", "code": "    protected String getRootNamespaceParameter() {\n        if (rootNamespace != null && rootNamespace.length() != 0) {\n            return \"/rootnamespace:\" + rootNamespace;\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [3, 7], [4, 8], [5, 9], [5, 10], [6, 11], [8, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 3], [8, 4], [9, 5], [10, 5], [11, 6], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setImports", "code": "    public void setImports(String imports) {\n        this.imports = imports;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getImports", "code": "    public String getImports() {\n        return this.imports;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getImportsParameter", "code": "    protected String getImportsParameter() {\n        if (imports != null && imports.length() != 0) {\n            return \"/imports:\" + imports;\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [3, 7], [4, 8], [5, 9], [5, 10], [6, 11], [8, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 3], [8, 4], [9, 5], [10, 5], [11, 6], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setOptionCompare", "code": "    public void setOptionCompare(String optionCompare) {\n        if (\"text\".equalsIgnoreCase(optionCompare)) {\n            this.optionCompare = \"text\";\n        } else {\n            this.optionCompare = \"binary\";", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getOptionCompare", "code": "    public String getOptionCompare() {\n        return this.optionCompare;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOptionCompareParameter", "code": "    protected String getOptionCompareParameter() {\n        if (optionCompare != null && \"text\".equalsIgnoreCase(optionCompare)) {\n            return \"/optioncompare:text\";\n        } else {\n            return \"/optioncompare:binary\";", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [3, 7], [4, 8], [5, 9], [6, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 3], [8, 4], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addCompilerSpecificOptions", "code": "    protected void addCompilerSpecificOptions(NetCommand command) {\n        command.addArgument(getRemoveIntChecksParameter());\n        command.addArgument(getImportsParameter());\n        command.addArgument(getOptionExplicitParameter());\n        command.addArgument(getOptionStrictParameter());\n        command.addArgument(getRootNamespaceParameter());\n        command.addArgument(getOptionCompareParameter());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getReferenceDelimiter", "code": "    public String getReferenceDelimiter() {\n        return \",\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFileExtension", "code": "    public String getFileExtension() {\n        return \"vb\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createResourceParameter", "code": "    protected void createResourceParameter(NetCommand command, DotnetResource resource) {\n        resource.getParameters(getProject(), command, false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "validate", "code": "    protected void validate()\n            throws BuildException {\n        super.validate();\n        if (getDestFile() == null) {\n            throw new BuildException(\"DestFile was not specified\");", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [3, 6], [6, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "VisualBasicCompile", "code": "    public VisualBasicCompile() {\n        clear();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8550", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/extensions/XPathFunctionImpl.java", "language": "java", "name": "org.apache.xalan.extensions.XPathFunctionImpl", "code": "public class XPathFunctionImpl implements XPathFunction\n{\n    private ExtensionHandler m_handler;\n    private String m_funcName;\n    \n    /**\n     * Construct an instance of XPathFunctionImpl from the\n     * ExtensionHandler and function name.\n     */\n    public XPathFunctionImpl(ExtensionHandler handler, String funcName)\n    {\n        m_handler = handler;\n        m_funcName = funcName;\n    }\n        \n    /**\n     * @see javax.xml.xpath.XPathFunction#evaluate(java.util.List)\n     */\n    public Object evaluate(List args)\n        throws XPathFunctionException\n    {\n        Vector  argsVec = listToVector(args);\n        \n        try {\n            return m_handler.callFunction(m_funcName, argsVec, null, null);\n        }\n        catch (TransformerException e)\n        {\n            throw new XPathFunctionException(e);\n        }\n    }\n    \n    /**\n     * Convert a java.util.List to a java.util.Vector. \n     * No conversion is done if the List is already a Vector.\n     */\n    private static Vector listToVector(List args)\n    {\n        if (args == null)\n            return null;\n        else if (args instanceof Vector)\n            return (Vector)args;\n        else\n        {\n            Vector result = new Vector();\n            result.addAll(args);\n            return result;", "functions": [{"function_name": "evaluate", "code": "    public Object evaluate(List args)\n        throws XPathFunctionException\n    {\n        Vector  argsVec = listToVector(args);\n        \n        try {\n            return m_handler.callFunction(m_funcName, argsVec, null, null);\n        }\n        catch (TransformerException e)\n        {\n            throw new XPathFunctionException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [2, 8], [6, 9], [7, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 2], [9, 6], [10, 7], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "listToVector", "code": "    private static Vector listToVector(List args)\n    {\n        if (args == null)\n            return null;\n        else if (args instanceof Vector)\n            return (Vector)args;\n        else\n        {\n            Vector result = new Vector();\n            result.addAll(args);\n            return result;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [5, 9], [3, 10], [3, 11], [3, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 5], [10, 3], [11, 3], [12, 3], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "XPathFunctionImpl", "code": "    public XPathFunctionImpl(ExtensionHandler handler, String funcName)\n    {\n        m_handler = handler;\n        m_funcName = funcName;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.7-8421", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/BoolStack.java", "language": "java", "name": "org.apache.xml.utils.BoolStack", "code": "public final class BoolStack implements Cloneable\n{\n\n  /** Array of boolean values          */\n  private boolean m_values[];\n\n  /** Array size allocated           */\n  private int m_allocatedSize;\n\n  /** Index into the array of booleans          */\n  private int m_index;\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is very small, for small lists.\n   */\n  public BoolStack()\n  {\n    this(32);\n  }\n\n  /**\n   * Construct a IntVector, using the given block size.\n   *\n   * @param size array size to allocate\n   */\n  public BoolStack(int size)\n  {\n\n    m_allocatedSize = size;\n    m_values = new boolean[size];\n    m_index = -1;\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return Current length of the list\n   */\n  public final int size()\n  {\n    return m_index + 1;\n  }\n\n  /**\n   * Clears the stack.\n   *\n   */\n  public final void clear()\n  {\n  \tm_index = -1;\n  }\n\n  /**\n   * Pushes an item onto the top of this stack.\n   *\n   *\n   * @param val the boolean to be pushed onto this stack.\n   * @return  the <code>item</code> argument.\n   */\n  public final boolean push(boolean val)\n  {\n\n    if (m_index == m_allocatedSize - 1)\n      grow();\n\n    return (m_values[++m_index] = val);\n  }\n\n  /**\n   * Removes the object at the top of this stack and returns that\n   * object as the value of this function.\n   *\n   * @return     The object at the top of this stack.\n   * @throws  EmptyStackException  if this stack is empty.\n   */\n  public final boolean pop()\n  {\n    return m_values[m_index--];\n  }\n\n  /**\n   * Removes the object at the top of this stack and returns the\n   * next object at the top as the value of this function.\n   *\n   *\n   * @return Next object to the top or false if none there\n   */\n  public final boolean popAndTop()\n  {\n\n    m_index--;\n\n    return (m_index >= 0) ? m_values[m_index] : false;\n  }\n\n  /**\n   * Set the item at the top of this stack  \n   *\n   *\n   * @param b Object to set at the top of this stack\n   */\n  public final void setTop(boolean b)\n  {\n    m_values[m_index] = b;\n  }\n\n  /**\n   * Looks at the object at the top of this stack without removing it\n   * from the stack.\n   *\n   * @return     the object at the top of this stack.\n   * @throws  EmptyStackException  if this stack is empty.\n   */\n  public final boolean peek()\n  {\n    return m_values[m_index];\n  }\n\n  /**\n   * Looks at the object at the top of this stack without removing it\n   * from the stack.  If the stack is empty, it returns false.\n   *\n   * @return     the object at the top of this stack.\n   */\n  public final boolean peekOrFalse()\n  {\n    return (m_index > -1) ? m_values[m_index] : false;\n  }\n\n  /**\n   * Looks at the object at the top of this stack without removing it\n   * from the stack.  If the stack is empty, it returns true.\n   *\n   * @return     the object at the top of this stack.\n   */\n  public final boolean peekOrTrue()\n  {\n    return (m_index > -1) ? m_values[m_index] : true;\n  }\n\n  /**\n   * Tests if this stack is empty.\n   *\n   * @return  <code>true</code> if this stack is empty;\n   *          <code>false</code> otherwise.\n   */\n  public boolean isEmpty()\n  {\n    return (m_index == -1);\n  }\n\n  /**\n   * Grows the size of the stack\n   *\n   */\n  private void grow()\n  {\n\n    m_allocatedSize *= 2;\n\n    boolean newVector[] = new boolean[m_allocatedSize];\n\n    System.arraycopy(m_values, 0, newVector, 0, m_index + 1);\n\n    m_values = newVector;\n  }\n  \n  public Object clone() \n    throws CloneNotSupportedException\n  {\n    return super.clone();", "functions": [{"function_name": "size", "code": "  public final int size()\n  {\n    return m_index + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "clear", "code": "  public final void clear()\n  {\n  \tm_index = -1;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "push", "code": "  public final boolean push(boolean val)\n  {\n\n    if (m_index == m_allocatedSize - 1)\n      grow();\n\n    return (m_values[++m_index] = val);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "pop", "code": "  public final boolean pop()\n  {\n    return m_values[m_index--];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "popAndTop", "code": "  public final boolean popAndTop()\n  {\n\n    m_index--;\n\n    return (m_index >= 0) ? m_values[m_index] : false;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setTop", "code": "  public final void setTop(boolean b)\n  {\n    m_values[m_index] = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "peek", "code": "  public final boolean peek()\n  {\n    return m_values[m_index];", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "peekOrFalse", "code": "  public final boolean peekOrFalse()\n  {\n    return (m_index > -1) ? m_values[m_index] : false;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "peekOrTrue", "code": "  public final boolean peekOrTrue()\n  {\n    return (m_index > -1) ? m_values[m_index] : true;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isEmpty", "code": "  public boolean isEmpty()\n  {\n    return (m_index == -1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "grow", "code": "  private void grow()\n  {\n\n    m_allocatedSize *= 2;\n\n    boolean newVector[] = new boolean[m_allocatedSize];\n\n    System.arraycopy(m_values, 0, newVector, 0, m_index + 1);\n\n    m_values = newVector;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [3, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 3], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "clone", "code": "  public Object clone() \n    throws CloneNotSupportedException\n  {\n    return super.clone();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BoolStack", "code": "  public BoolStack()\n  {\n    this(32);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BoolStack", "code": "  public BoolStack(int size)\n  {\n\n    m_allocatedSize = size;\n    m_values = new boolean[size];\n    m_index = -1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "jedit-4.3-4683", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/msg/ViewUpdate.java", "language": "java", "name": "org.gjt.sp.jedit.msg.ViewUpdate", "code": "public class ViewUpdate extends EBMessage\n{\n\t/**\n\t * View created.\n\t */\n\tpublic static final Object CREATED = \"CREATED\";\n\n\t/**\n\t * View closed.\n\t */\n\tpublic static final Object CLOSED = \"CLOSED\";\n\n\t/**\n\t * Active edit pane changed.\n\t * @since jEdit 4.1pre1\n\t */\n\tpublic static final Object EDIT_PANE_CHANGED = \"EDIT_PANE_CHANGED\";\n\n\t/**\n\t * Active view changed.\n\t * @since jEdit 4.3pre4\n\t */\n\tpublic static final Object ACTIVATED = \"VIEW_ACTIVATED\";\n\n\t//{{{ ViewUpdate constructor\n\t/**\n\t * Creates a new view update message.\n\t * @param view The view\n\t * @param what What happened\n\t */\n\tpublic ViewUpdate(View view, Object what)\n\t{\n\t\tsuper(view);\n\n\t\tif(what == null)\n\t\t\tthrow new NullPointerException(\"What must be non-null\");\n\n\t\tthis.what = what;\n\t} //}}}\n\n\t//{{{ getWhat() method\n\t/**\n\t * Returns what caused this view update.\n\t */\n\tpublic Object getWhat()\n\t{\n\t\treturn what;\n\t} //}}}\n\n\t//{{{ getView() method\n\t/**\n\t * Returns the view involved.\n\t */\n\tpublic View getView()\n\t{\n\t\treturn (View)getSource();\n\t} //}}}\n\n\t//{{{ paramString() method\n\tpublic String paramString()\n\t{\n\t\treturn \"what=\" + what + \",\" + super.paramString();\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate Object what;", "functions": [{"function_name": "getWhat", "code": "\tpublic Object getWhat()\n\t{\n\t\treturn what;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getView", "code": "\tpublic View getView()\n\t{\n\t\treturn (View)getSource();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "paramString", "code": "\tpublic String paramString()\n\t{\n\t\treturn \"what=\" + what + \",\" + super.paramString();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "ViewUpdate", "code": "\tpublic ViewUpdate(View view, Object what)\n\t{\n\t\tsuper(view);\n\n\t\tif(what == null)\n\t\t\tthrow new NullPointerException(\"What must be non-null\");\n\n\t\tthis.what = what;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "poi-2.5-5916", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/AbstractEscherHolderRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.AbstractEscherHolderRecord", "code": "public abstract class AbstractEscherHolderRecord\n    extends Record\n{\n    private static final boolean DESERIALISE = System.getProperty(\"poi.deserialize.escher\") != null;\n\n    private List escherRecords;\n    private byte[] rawData;\n\n\n    public AbstractEscherHolderRecord()\n    {\n        escherRecords = new ArrayList();\n    }\n\n    /**\n     * Constructs a Bar record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1017 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public AbstractEscherHolderRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a Bar record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1017 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public AbstractEscherHolderRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != getSid())\n        {\n            throw new RecordFormatException(\"Not a Bar record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        escherRecords = new ArrayList();\n        if (! DESERIALISE )\n        {\n            rawData = new byte[size];\n            System.arraycopy(data, offset, rawData, 0, size);\n        }\n        else\n        {\n            EscherRecordFactory recordFactory = new DefaultEscherRecordFactory();\n            int pos = offset;\n            while ( pos < offset + size )\n            {\n                EscherRecord r = recordFactory.createRecord(data, pos);\n                int bytesRead = r.fillFields(data, pos, recordFactory );\n                escherRecords.add(r);\n                pos += bytesRead;\n            }\n        }\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        final String nl = System.getProperty(\"line.separator\");\n        buffer.append('[' + getRecordName() + ']' + nl);\n        for ( Iterator iterator = escherRecords.iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            buffer.append(r.toString());\n        }\n        buffer.append(\"[/\" + getRecordName() + ']' + nl);\n\n        return buffer.toString();\n    }\n\n    protected abstract String getRecordName();\n\n    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort( data, 0 + offset, getSid() );\n        LittleEndian.putShort( data, 2 + offset, (short) ( getRecordSize() - 4 ) );\n        if ( escherRecords.size() == 0 && rawData != null )\n        {\n            System.arraycopy( rawData, 0, data, offset + 4, rawData.length );\n        }\n        else\n        {\n            int pos = offset + 4;\n            for ( Iterator iterator = escherRecords.iterator(); iterator.hasNext(); )\n            {\n                EscherRecord r = (EscherRecord) iterator.next();\n                pos += r.serialize( pos, data, new NullEscherSerializationListener() );\n            }\n        }\n        return getRecordSize();\n    }\n\n\n    /**\n     * Size of record (including 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        if (escherRecords.size() == 0 && rawData != null)\n        {\n            return rawData.length + 4;\n        }\n        else\n        {\n            int size = 4;\n            for ( Iterator iterator = escherRecords.iterator(); iterator.hasNext(); )\n            {\n                EscherRecord r = (EscherRecord) iterator.next();\n                size += r.getRecordSize();\n            }\n            return size;\n        }\n    }\n\n\n    public abstract short getSid();\n\n    public Object clone()\n    {\n        throw new IllegalStateException(\"Not implemented yet.\");\n    }\n\n    public void addEscherRecord(int index, EscherRecord element)\n    {\n        escherRecords.add( index, element );\n    }\n\n    public boolean addEscherRecord(EscherRecord element)\n    {\n        return escherRecords.add( element );\n    }\n\n    public List getEscherRecords()\n    {\n        return escherRecords;\n    }\n\n    public void clearEscherRecords()\n    {\n        escherRecords.clear();\n    }\n\n\n    public EscherRecord getEscherRecord(int index)\n    {\n        return (EscherRecord) escherRecords.get(index);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != getSid())\n        {\n            throw new RecordFormatException(\"Not a Bar record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        escherRecords = new ArrayList();\n        if (! DESERIALISE )\n        {\n            rawData = new byte[size];\n            System.arraycopy(data, offset, rawData, 0, size);\n        }\n        else\n        {\n            EscherRecordFactory recordFactory = new DefaultEscherRecordFactory();\n            int pos = offset;\n            while ( pos < offset + size )\n            {\n                EscherRecord r = recordFactory.createRecord(data, pos);\n                int bytesRead = r.fillFields(data, pos, recordFactory );\n                escherRecords.add(r);\n                pos += bytesRead;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [5, 9], [6, 10], [1, 11], [1, 12], [6, 13], [6, 14], [10, 15], [8, 16], [11, 17], [6, 18], [6, 19], [13, 20], [14, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 5], [10, 6], [11, 1], [12, 1], [13, 6], [14, 6], [15, 10], [16, 8], [17, 11], [18, 6], [19, 6], [20, 13], [21, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        final String nl = System.getProperty(\"line.separator\");\n        buffer.append('[' + getRecordName() + ']' + nl);\n        for ( Iterator iterator = escherRecords.iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            buffer.append(r.toString());\n        }\n        buffer.append(\"[/\" + getRecordName() + ']' + nl);\n\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [6, 9], [2, 10], [8, 11], [3, 12], [4, 13], [9, 14], [2, 15], [2, 16], [11, 17], [12, 18], [14, 19], [14, 20], [15, 21], [17, 22], [17, 23], [20, 24], [20, 25], [10, 26], [23, 27], [23, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 6], [10, 2], [11, 8], [12, 3], [13, 4], [14, 9], [15, 2], [16, 2], [17, 11], [18, 12], [19, 14], [20, 14], [21, 15], [22, 17], [23, 17], [24, 20], [25, 20], [26, 10], [27, 23], [28, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "getRecordName", "code": "    protected abstract String getRecordName();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort( data, 0 + offset, getSid() );\n        LittleEndian.putShort( data, 2 + offset, (short) ( getRecordSize() - 4 ) );\n        if ( escherRecords.size() == 0 && rawData != null )\n        {\n            System.arraycopy( rawData, 0, data, offset + 4, rawData.length );\n        }\n        else\n        {\n            int pos = offset + 4;\n            for ( Iterator iterator = escherRecords.iterator(); iterator.hasNext(); )\n            {\n                EscherRecord r = (EscherRecord) iterator.next();\n                pos += r.serialize( pos, data, new NullEscherSerializationListener() );\n            }\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [0, 8], [2, 9], [2, 10], [6, 11], [6, 12], [7, 13], [8, 14], [8, 15], [9, 16], [2, 17], [11, 18], [12, 19], [12, 20], [7, 21], [13, 22], [15, 23], [9, 24], [10, 25], [17, 26], [17, 27], [21, 28], [21, 29], [9, 30], [9, 31], [25, 32], [26, 33], [30, 34], [34, 35], [24, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 0], [9, 2], [10, 2], [11, 6], [12, 6], [13, 7], [14, 8], [15, 8], [16, 9], [17, 2], [18, 11], [19, 12], [20, 12], [21, 7], [22, 13], [23, 15], [24, 9], [25, 10], [26, 17], [27, 17], [28, 21], [29, 21], [30, 9], [31, 9], [32, 25], [33, 26], [34, 30], [35, 34], [36, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        if (escherRecords.size() == 0 && rawData != null)\n        {\n            return rawData.length + 4;\n        }\n        else\n        {\n            int size = 4;\n            for ( Iterator iterator = escherRecords.iterator(); iterator.hasNext(); )\n            {\n                EscherRecord r = (EscherRecord) iterator.next();\n                size += r.getRecordSize();\n            }\n            return size;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [4, 9], [6, 10], [7, 11], [8, 12], [8, 13], [4, 14], [5, 15], [10, 16], [4, 17], [4, 18], [17, 19], [14, 20], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 4], [10, 6], [11, 7], [12, 8], [13, 8], [14, 4], [15, 5], [16, 10], [17, 4], [18, 4], [19, 17], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getSid", "code": "    public abstract short getSid();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "clone", "code": "    public Object clone()\n    {\n        throw new IllegalStateException(\"Not implemented yet.\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addEscherRecord", "code": "    public void addEscherRecord(int index, EscherRecord element)\n    {\n        escherRecords.add( index, element );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addEscherRecord", "code": "    public boolean addEscherRecord(EscherRecord element)\n    {\n        return escherRecords.add( element );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEscherRecords", "code": "    public List getEscherRecords()\n    {\n        return escherRecords;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clearEscherRecords", "code": "    public void clearEscherRecords()\n    {\n        escherRecords.clear();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEscherRecord", "code": "    public EscherRecord getEscherRecord(int index)\n    {\n        return (EscherRecord) escherRecords.get(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AbstractEscherHolderRecord", "code": "    public AbstractEscherHolderRecord()\n    {\n        escherRecords = new ArrayList();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AbstractEscherHolderRecord", "code": "    public AbstractEscherHolderRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AbstractEscherHolderRecord", "code": "    public AbstractEscherHolderRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-1.5-5230", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/poifs/property/DocumentProperty.java", "language": "java", "name": "org.apache.poi.poifs.property.DocumentProperty", "code": "public class DocumentProperty\n    extends Property\n{\n\n    private POIFSDocument _document;\n\n    /**\n     * Constructor\n     *\n     * @param name POIFSDocument name\n     * @param size POIFSDocument size\n     */\n\n    public DocumentProperty(final String name, final int size)\n    {\n        super();\n        _document = null;\n        setName(name);\n        setSize(size);\n        setPropertyType(PropertyConstants.DOCUMENT_TYPE);\n    }\n\n    /**\n     * reader constructor\n     *\n     * @param index index number\n     * @param array byte data\n     * @param offset offset into byte data\n     */\n\n    protected DocumentProperty(final int index, final byte [] array,\n                               final int offset)\n    {\n        super(index, array, offset);\n        _document = null;\n    }\n\n    /**\n     * set the POIFSDocument\n     *\n     * @param doc the associated POIFSDocument\n     */\n\n    public void setDocument(POIFSDocument doc)\n    {\n        _document = doc;\n    }\n\n    /**\n     * get the POIFSDocument\n     *\n     * @return the associated document\n     */\n\n    public POIFSDocument getDocument()\n    {\n        return _document;\n    }\n\n    /* ********** START extension of Property ********** */\n\n    /**\n     * give method more visibility\n     *\n     * @return true if this property should use small blocks\n     */\n\n    public boolean shouldUseSmallBlocks()\n    {\n        return super.shouldUseSmallBlocks();\n    }\n\n    /**\n     * @return true if a directory type Property\n     */\n\n    public boolean isDirectory()\n    {\n        return false;\n    }\n\n    /**\n     * Perform whatever activities need to be performed prior to\n     * writing\n     */\n\n    protected void preWrite()", "functions": [{"function_name": "setDocument", "code": "    public void setDocument(POIFSDocument doc)\n    {\n        _document = doc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocument", "code": "    public POIFSDocument getDocument()\n    {\n        return _document;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "shouldUseSmallBlocks", "code": "    public boolean shouldUseSmallBlocks()\n    {\n        return super.shouldUseSmallBlocks();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isDirectory", "code": "    public boolean isDirectory()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "preWrite", "code": "    protected void preWrite()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DocumentProperty", "code": "    public DocumentProperty(final String name, final int size)\n    {\n        super();\n        _document = null;\n        setName(name);\n        setSize(size);\n        setPropertyType(PropertyConstants.DOCUMENT_TYPE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "DocumentProperty", "code": "    protected DocumentProperty(final int index, final byte [] array,\n                               final int offset)\n    {\n        super(index, array, offset);\n        _document = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "poi-1.5-5278", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/aggregates/RowRecordsAggregate.java", "language": "java", "name": "org.apache.poi.hssf.record.aggregates.RowRecordsAggregate", "code": "public class RowRecordsAggregate\n    extends Record\n{\n    int     firstrow = -1;\n    int     lastrow  = -1;\n    HashMap records  = null;\n    int     size     = 0;\n\n    /** Creates a new instance of ValueRecordsAggregate */\n\n    public RowRecordsAggregate()\n    {\n        records = new HashMap();\n    }\n\n    public void insertRow(RowRecord row)\n    {\n        size += row.getRecordSize();\n\n        records.put(row, row);\n        if ((row.getRowNumber() < firstrow) || (firstrow == -1))\n        {\n            firstrow = row.getRowNumber();\n        }\n        if ((row.getRowNumber() > lastrow) || (lastrow == -1))\n        {\n            lastrow = row.getRowNumber();\n        }\n    }\n\n    public void removeRow(RowRecord row)\n    {\n        size -= row.getRecordSize();\n\n        records.remove(row);\n    }\n\n    public RowRecord getRow(int rownum)\n    {\n\n        RowRecord row = new RowRecord();\n\n        row.setRowNumber(( short ) rownum);\n        return ( RowRecord ) records.get(row);\n    }\n\n    public int getPhysicalNumberOfRows()\n    {\n        return records.size();\n    }\n\n    public int getFirstRowNum()\n    {\n        return firstrow;\n    }\n\n    public int getLastRowNum()\n    {\n        return lastrow;\n    }\n\n    public int construct(int offset, List records)\n    {\n        int k = 0;\n\n        for (k = offset; k < records.size(); k++)\n        {\n            Record rec = ( Record ) records.get(k);\n\n            if (!rec.isInValueSection() && !(rec instanceof UnknownRecord))\n            {\n                break;\n            }\n            if (rec.getSid() == RowRecord.sid)\n            {\n                insertRow(( RowRecord ) rec);\n            }\n        }\n        return k;\n    }\n\n    /**\n     * called by the class that is responsible for writing this sucker.\n     * Subclasses should implement this so that their data is passed back in a\n     * byte array.\n     *\n     * @param offset    offset to begin writing at\n     * @param data      byte array containing instance data\n     * @return number of bytes written\n     */\n\n    public int serialize(int offset, byte [] data)\n    {\n        Iterator itr = records.values().iterator();\n        int      pos = offset;\n\n        while (itr.hasNext())\n        {\n            pos += (( Record ) itr.next()).serialize(pos, data);\n        }\n        return pos - offset;\n    }\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     * @param offset of the record's data (provided a big array of the file)\n     */\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n    }\n\n    /**\n     * called by constructor, should throw runtime exception in the event of a\n     * record passed with a differing ID.\n     *\n     * @param id alleged id for this record\n     */\n\n    protected void validateSid(short id)\n    {\n    }\n\n    /**\n     * return the non static version of the id for this record.\n     */\n\n    public short getSid()\n    {\n        return -1000;\n    }\n\n    public int getRecordSize()\n    {\n        return size;\n    }\n\n    public Iterator getIterator()\n    {\n        return records.values().iterator();", "functions": [{"function_name": "insertRow", "code": "    public void insertRow(RowRecord row)\n    {\n        size += row.getRecordSize();\n\n        records.put(row, row);\n        if ((row.getRowNumber() < firstrow) || (firstrow == -1))\n        {\n            firstrow = row.getRowNumber();\n        }\n        if ((row.getRowNumber() > lastrow) || (lastrow == -1))\n        {\n            lastrow = row.getRowNumber();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [4, 8], [4, 9], [5, 10], [5, 11], [7, 12], [1, 13], [8, 14], [9, 15], [2, 16], [10, 17], [11, 18], [13, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 4], [9, 4], [10, 5], [11, 5], [12, 7], [13, 1], [14, 8], [15, 9], [16, 2], [17, 10], [18, 11], [19, 13], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "removeRow", "code": "    public void removeRow(RowRecord row)\n    {\n        size -= row.getRecordSize();\n\n        records.remove(row);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRow", "code": "    public RowRecord getRow(int rownum)\n    {\n\n        RowRecord row = new RowRecord();\n\n        row.setRowNumber(( short ) rownum);\n        return ( RowRecord ) records.get(row);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getPhysicalNumberOfRows", "code": "    public int getPhysicalNumberOfRows()\n    {\n        return records.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstRowNum", "code": "    public int getFirstRowNum()\n    {\n        return firstrow;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastRowNum", "code": "    public int getLastRowNum()\n    {\n        return lastrow;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "construct", "code": "    public int construct(int offset, List records)\n    {\n        int k = 0;\n\n        for (k = offset; k < records.size(); k++)\n        {\n            Record rec = ( Record ) records.get(k);\n\n            if (!rec.isInValueSection() && !(rec instanceof UnknownRecord))\n            {\n                break;\n            }\n            if (rec.getSid() == RowRecord.sid)\n            {\n                insertRow(( RowRecord ) rec);\n            }\n        }\n        return k;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [6, 11], [3, 12], [8, 13], [9, 14], [13, 15], [9, 16], [14, 17], [14, 18], [8, 19], [10, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 6], [12, 3], [13, 8], [14, 9], [15, 13], [16, 9], [17, 14], [18, 14], [19, 8], [20, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        Iterator itr = records.values().iterator();\n        int      pos = offset;\n\n        while (itr.hasNext())\n        {\n            pos += (( Record ) itr.next()).serialize(pos, data);\n        }\n        return pos - offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [2, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 2], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "validateSid", "code": "    protected void validateSid(short id)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return -1000;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return size;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIterator", "code": "    public Iterator getIterator()\n    {\n        return records.values().iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RowRecordsAggregate", "code": "    public RowRecordsAggregate()\n    {\n        records = new HashMap();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-2.0-5474", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/GutsRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.GutsRecord", "code": "public class GutsRecord\n    extends Record\n{\n    public final static short sid = 0x80;\n\n    public GutsRecord()\n    {\n    }\n\n    /**\n     * Constructs a Guts record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x80 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public GutsRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a Guts record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x80 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public GutsRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A Guts RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_left_row_gutter = LittleEndian.getShort(data, 0 + offset);\n        field_2_top_col_gutter  = LittleEndian.getShort(data, 2 + offset);\n        field_3_row_level_max   = LittleEndian.getShort(data, 4 + offset);\n        field_4_col_level_max   = LittleEndian.getShort(data, 6 + offset);\n    }\n\n    /**\n     * set the size of the gutter that appears at the left of the rows\n     *\n     * @param gut  gutter size in screen units\n     */\n\n    public void setLeftRowGutter(short gut)\n    {\n        field_1_left_row_gutter = gut;\n    }\n\n    /**\n     * set the size of the gutter that appears at the above the columns\n     *\n     * @param gut  gutter size in screen units\n     */\n\n    public void setTopColGutter(short gut)\n    {\n        field_2_top_col_gutter = gut;\n    }\n\n    /**\n     * set the maximum outline level for the row gutter.\n     *\n     * @param max  maximum outline level\n     */\n\n    public void setRowLevelMax(short max)\n    {\n        field_3_row_level_max = max;\n    }\n\n    /**\n     * set the maximum outline level for the col gutter.\n     *\n     * @param max  maximum outline level\n     */\n\n    public void setColLevelMax(short max)\n    {\n        field_4_col_level_max = max;\n    }\n\n    /**\n     * get the size of the gutter that appears at the left of the rows\n     *\n     * @return gutter size in screen units\n     */\n\n    public short getLeftRowGutter()\n    {\n        return field_1_left_row_gutter;\n    }\n\n    /**\n     * get the size of the gutter that appears at the above the columns\n     *\n     * @return gutter size in screen units\n     */\n\n    public short getTopColGutter()\n    {\n        return field_2_top_col_gutter;\n    }\n\n    /**\n     * get the maximum outline level for the row gutter.\n     *\n     * @return maximum outline level\n     */\n\n    public short getRowLevelMax()\n    {\n        return field_3_row_level_max;\n    }\n\n    /**\n     * get the maximum outline level for the col gutter.\n     *\n     * @return maximum outline level\n     */\n\n    public short getColLevelMax()\n    {\n        return field_4_col_level_max;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[GUTS]\\n\");\n        buffer.append(\"    .leftgutter     = \")\n            .append(Integer.toHexString(getLeftRowGutter())).append(\"\\n\");\n        buffer.append(\"    .topgutter      = \")\n            .append(Integer.toHexString(getTopColGutter())).append(\"\\n\");\n        buffer.append(\"    .rowlevelmax    = \")\n            .append(Integer.toHexString(getRowLevelMax())).append(\"\\n\");\n        buffer.append(\"    .collevelmax    = \")\n            .append(Integer.toHexString(getColLevelMax())).append(\"\\n\");\n        buffer.append(\"[/GUTS]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x8);\n        LittleEndian.putShort(data, 4 + offset, getLeftRowGutter());\n        LittleEndian.putShort(data, 6 + offset, getTopColGutter());\n        LittleEndian.putShort(data, 8 + offset, getRowLevelMax());\n        LittleEndian.putShort(data, 10 + offset, getColLevelMax());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 12;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      GutsRecord rec = new GutsRecord();\n      rec.field_1_left_row_gutter = field_1_left_row_gutter;\n      rec.field_2_top_col_gutter = field_2_top_col_gutter;\n      rec.field_3_row_level_max = field_3_row_level_max;\n      rec.field_4_col_level_max = field_4_col_level_max;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A Guts RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_left_row_gutter = LittleEndian.getShort(data, 0 + offset);\n        field_2_top_col_gutter  = LittleEndian.getShort(data, 2 + offset);\n        field_3_row_level_max   = LittleEndian.getShort(data, 4 + offset);\n        field_4_col_level_max   = LittleEndian.getShort(data, 6 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [13, 17], [14, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [17, 13], [18, 14], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setLeftRowGutter", "code": "    public void setLeftRowGutter(short gut)\n    {\n        field_1_left_row_gutter = gut;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTopColGutter", "code": "    public void setTopColGutter(short gut)\n    {\n        field_2_top_col_gutter = gut;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRowLevelMax", "code": "    public void setRowLevelMax(short max)\n    {\n        field_3_row_level_max = max;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setColLevelMax", "code": "    public void setColLevelMax(short max)\n    {\n        field_4_col_level_max = max;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLeftRowGutter", "code": "    public short getLeftRowGutter()\n    {\n        return field_1_left_row_gutter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTopColGutter", "code": "    public short getTopColGutter()\n    {\n        return field_2_top_col_gutter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRowLevelMax", "code": "    public short getRowLevelMax()\n    {\n        return field_3_row_level_max;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getColLevelMax", "code": "    public short getColLevelMax()\n    {\n        return field_4_col_level_max;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[GUTS]\\n\");\n        buffer.append(\"    .leftgutter     = \")\n            .append(Integer.toHexString(getLeftRowGutter())).append(\"\\n\");\n        buffer.append(\"    .topgutter      = \")\n            .append(Integer.toHexString(getTopColGutter())).append(\"\\n\");\n        buffer.append(\"    .rowlevelmax    = \")\n            .append(Integer.toHexString(getRowLevelMax())).append(\"\\n\");\n        buffer.append(\"    .collevelmax    = \")\n            .append(Integer.toHexString(getColLevelMax())).append(\"\\n\");\n        buffer.append(\"[/GUTS]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [5, 12], [5, 13], [6, 14], [6, 15], [6, 16], [7, 17], [7, 18], [7, 19], [8, 20], [8, 21], [8, 22], [9, 23], [2, 24], [12, 25], [13, 26], [15, 27], [16, 28], [18, 29], [19, 30], [21, 31], [22, 32], [26, 33], [28, 34], [30, 35], [32, 36], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 5], [13, 5], [14, 6], [15, 6], [16, 6], [17, 7], [18, 7], [19, 7], [20, 8], [21, 8], [22, 8], [23, 9], [24, 2], [25, 12], [26, 13], [27, 15], [28, 16], [29, 18], [30, 19], [31, 21], [32, 22], [33, 26], [34, 28], [35, 30], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x8);\n        LittleEndian.putShort(data, 4 + offset, getLeftRowGutter());\n        LittleEndian.putShort(data, 6 + offset, getTopColGutter());\n        LittleEndian.putShort(data, 8 + offset, getRowLevelMax());\n        LittleEndian.putShort(data, 10 + offset, getColLevelMax());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [5, 11], [5, 12], [6, 13], [6, 14], [7, 15], [7, 16], [8, 17], [8, 18], [9, 19], [10, 20], [12, 21], [14, 22], [16, 23], [18, 24], [9, 25], [19, 26], [20, 27], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 5], [12, 5], [13, 6], [14, 6], [15, 7], [16, 7], [17, 8], [18, 8], [19, 9], [20, 10], [21, 12], [22, 14], [23, 16], [24, 18], [25, 9], [26, 19], [27, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 12;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      GutsRecord rec = new GutsRecord();\n      rec.field_1_left_row_gutter = field_1_left_row_gutter;\n      rec.field_2_top_col_gutter = field_2_top_col_gutter;\n      rec.field_3_row_level_max = field_3_row_level_max;\n      rec.field_4_col_level_max = field_4_col_level_max;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "GutsRecord", "code": "    public GutsRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "GutsRecord", "code": "    public GutsRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "GutsRecord", "code": "    public GutsRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.5-7106", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/compiler/FunctionTable.java", "language": "java", "name": "org.apache.xpath.compiler.FunctionTable", "code": "public class FunctionTable\n{\n\n  /** The 'current()' id. */\n  public static final int FUNC_CURRENT = 0;\n\n  /** The 'last()' id. */\n  public static final int FUNC_LAST = 1;\n\n  /** The 'position()' id. */\n  public static final int FUNC_POSITION = 2;\n\n  /** The 'count()' id. */\n  public static final int FUNC_COUNT = 3;\n\n  /** The 'id()' id. */\n  public static final int FUNC_ID = 4;\n\n  /** The 'key()' id (XSLT). */\n  public static final int FUNC_KEY = 5;\n\n  /** The 'local-name()' id. */\n  public static final int FUNC_LOCAL_PART = 7;\n\n  /** The 'namespace-uri()' id. */\n  public static final int FUNC_NAMESPACE = 8;\n\n  /** The 'name()' id. */\n  public static final int FUNC_QNAME = 9;\n\n  /** The 'generate-id()' id. */\n  public static final int FUNC_GENERATE_ID = 10;\n\n  /** The 'not()' id. */\n  public static final int FUNC_NOT = 11;\n\n  /** The 'true()' id. */\n  public static final int FUNC_TRUE = 12;\n\n  /** The 'false()' id. */\n  public static final int FUNC_FALSE = 13;\n\n  /** The 'boolean()' id. */\n  public static final int FUNC_BOOLEAN = 14;\n\n  /** The 'number()' id. */\n  public static final int FUNC_NUMBER = 15;\n\n  /** The 'floor()' id. */\n  public static final int FUNC_FLOOR = 16;\n\n  /** The 'ceiling()' id. */\n  public static final int FUNC_CEILING = 17;\n\n  /** The 'round()' id. */\n  public static final int FUNC_ROUND = 18;\n\n  /** The 'sum()' id. */\n  public static final int FUNC_SUM = 19;\n\n  /** The 'string()' id. */\n  public static final int FUNC_STRING = 20;\n\n  /** The 'starts-with()' id. */\n  public static final int FUNC_STARTS_WITH = 21;\n\n  /** The 'contains()' id. */\n  public static final int FUNC_CONTAINS = 22;\n\n  /** The 'substring-before()' id. */\n  public static final int FUNC_SUBSTRING_BEFORE = 23;\n\n  /** The 'substring-after()' id. */\n  public static final int FUNC_SUBSTRING_AFTER = 24;\n\n  /** The 'normalize-space()' id. */\n  public static final int FUNC_NORMALIZE_SPACE = 25;\n\n  /** The 'translate()' id. */\n  public static final int FUNC_TRANSLATE = 26;\n\n  /** The 'concat()' id. */\n  public static final int FUNC_CONCAT = 27;\n\n  /** The 'substring()' id. */\n  public static final int FUNC_SUBSTRING = 29;\n\n  /** The 'string-length()' id. */\n  public static final int FUNC_STRING_LENGTH = 30;\n\n  /** The 'system-property()' id. */\n  public static final int FUNC_SYSTEM_PROPERTY = 31;\n\n  /** The 'lang()' id. */\n  public static final int FUNC_LANG = 32;\n\n  /** The 'function-available()' id (XSLT). */\n  public static final int FUNC_EXT_FUNCTION_AVAILABLE = 33;\n\n  /** The 'element-available()' id (XSLT). */\n  public static final int FUNC_EXT_ELEM_AVAILABLE = 34;\n\n  /** The 'unparsed-entity-uri()' id (XSLT). */\n  public static final int FUNC_UNPARSED_ENTITY_URI = 36;\n\n\n  /** The 'document-location()' id (Proprietary). */\n  public static final int FUNC_DOCLOCATION = 35;\n\n  /**\n   * The function table.\n   */\n  public static FuncLoader m_functions[];\n\n  /**\n   * Number of built in functions.  Be sure to update this as\n   * built-in functions are added.\n   */\n  private static final int NUM_BUILT_IN_FUNCS = 37;\n\n  /**\n   * Number of built-in functions that may be added.\n   */\n  private static final int NUM_ALLOWABLE_ADDINS = 30;\n\n  /**\n   * The index to the next free function index.\n   */\n  static int m_funcNextFreeIndex = NUM_BUILT_IN_FUNCS;\n\n  static\n  {\n    m_functions = new FuncLoader[NUM_BUILT_IN_FUNCS + NUM_ALLOWABLE_ADDINS];\n    m_functions[FUNC_CURRENT] = new FuncLoader(\"FuncCurrent\", FUNC_CURRENT);\n    m_functions[FUNC_LAST] = new FuncLoader(\"FuncLast\", FUNC_LAST);\n    m_functions[FUNC_POSITION] = new FuncLoader(\"FuncPosition\",\n                                                FUNC_POSITION);\n    m_functions[FUNC_COUNT] = new FuncLoader(\"FuncCount\", FUNC_COUNT);\n    m_functions[FUNC_ID] = new FuncLoader(\"FuncId\", FUNC_ID);\n    m_functions[FUNC_KEY] =\n      new FuncLoader(\"org.apache.xalan.templates.FuncKey\", FUNC_KEY);\n\n    m_functions[FUNC_LOCAL_PART] = new FuncLoader(\"FuncLocalPart\",\n            FUNC_LOCAL_PART);\n    m_functions[FUNC_NAMESPACE] = new FuncLoader(\"FuncNamespace\",\n            FUNC_NAMESPACE);\n    m_functions[FUNC_QNAME] = new FuncLoader(\"FuncQname\", FUNC_QNAME);\n    m_functions[FUNC_GENERATE_ID] = new FuncLoader(\"FuncGenerateId\",\n            FUNC_GENERATE_ID);\n    m_functions[FUNC_NOT] = new FuncLoader(\"FuncNot\", FUNC_NOT);\n    m_functions[FUNC_TRUE] = new FuncLoader(\"FuncTrue\", FUNC_TRUE);\n    m_functions[FUNC_FALSE] = new FuncLoader(\"FuncFalse\", FUNC_FALSE);\n    m_functions[FUNC_BOOLEAN] = new FuncLoader(\"FuncBoolean\", FUNC_BOOLEAN);\n    m_functions[FUNC_LANG] = new FuncLoader(\"FuncLang\", FUNC_LANG);\n    m_functions[FUNC_NUMBER] = new FuncLoader(\"FuncNumber\", FUNC_NUMBER);\n    m_functions[FUNC_FLOOR] = new FuncLoader(\"FuncFloor\", FUNC_FLOOR);\n    m_functions[FUNC_CEILING] = new FuncLoader(\"FuncCeiling\", FUNC_CEILING);\n    m_functions[FUNC_ROUND] = new FuncLoader(\"FuncRound\", FUNC_ROUND);\n    m_functions[FUNC_SUM] = new FuncLoader(\"FuncSum\", FUNC_SUM);\n    m_functions[FUNC_STRING] = new FuncLoader(\"FuncString\", FUNC_STRING);\n    m_functions[FUNC_STARTS_WITH] = new FuncLoader(\"FuncStartsWith\",\n            FUNC_STARTS_WITH);\n    m_functions[FUNC_CONTAINS] = new FuncLoader(\"FuncContains\",\n                                                FUNC_CONTAINS);\n    m_functions[FUNC_SUBSTRING_BEFORE] = new FuncLoader(\"FuncSubstringBefore\",\n            FUNC_SUBSTRING_BEFORE);\n    m_functions[FUNC_SUBSTRING_AFTER] = new FuncLoader(\"FuncSubstringAfter\",\n            FUNC_SUBSTRING_AFTER);\n    m_functions[FUNC_NORMALIZE_SPACE] = new FuncLoader(\"FuncNormalizeSpace\",\n            FUNC_NORMALIZE_SPACE);\n    m_functions[FUNC_TRANSLATE] = new FuncLoader(\"FuncTranslate\",\n            FUNC_TRANSLATE);\n    m_functions[FUNC_CONCAT] = new FuncLoader(\"FuncConcat\", FUNC_CONCAT);\n\n    m_functions[FUNC_SYSTEM_PROPERTY] = new FuncLoader(\"FuncSystemProperty\",\n            FUNC_SYSTEM_PROPERTY);\n    m_functions[FUNC_EXT_FUNCTION_AVAILABLE] =\n      new FuncLoader(\"FuncExtFunctionAvailable\", FUNC_EXT_FUNCTION_AVAILABLE);\n    m_functions[FUNC_EXT_ELEM_AVAILABLE] =\n      new FuncLoader(\"FuncExtElementAvailable\", FUNC_EXT_ELEM_AVAILABLE);\n    m_functions[FUNC_SUBSTRING] = new FuncLoader(\"FuncSubstring\",\n            FUNC_SUBSTRING);\n    m_functions[FUNC_STRING_LENGTH] = new FuncLoader(\"FuncStringLength\",\n            FUNC_STRING_LENGTH);\n    m_functions[FUNC_DOCLOCATION] = new FuncLoader(\"FuncDoclocation\",\n            FUNC_DOCLOCATION);\n    m_functions[FUNC_UNPARSED_ENTITY_URI] =\n      new FuncLoader(\"FuncUnparsedEntityURI\", FUNC_UNPARSED_ENTITY_URI);\n  }\n\n  /**\n   * Obtain a new Function object from a function ID.\n   *\n   * @param which  The function ID, which may correspond to one of the FUNC_XXX \n   *    values found in {@link org.apache.xpath.compiler.FunctionTable}, but may \n   *    be a value installed by an external module. \n   *\n   * @return a a new Function instance.\n   *\n   * @throws javax.xml.transform.TransformerException if ClassNotFoundException, \n   *    IllegalAccessException, or InstantiationException is thrown.\n   */\n  public static Function getFunction(int which)\n          throws javax.xml.transform.TransformerException\n  {\n    return m_functions[which].getFunction();\n  }\n\n  /**\n   * Install a built-in function.\n   * @param name The unqualified name of the function.\n   * @param func A Implementation of an XPath Function object.\n   * @return the position of the function in the internal index.\n   */\n  public static int installFunction(String name, Expression func)\n  {\n\n    int funcIndex;\n    Object funcIndexObj = Keywords.m_functions.get(name);\n\n    if (null != funcIndexObj)\n    {\n      funcIndex = ((Integer) funcIndexObj).intValue();\n    }\n    else\n    {\n      funcIndex = m_funcNextFreeIndex;\n\n      m_funcNextFreeIndex++;\n\n      Keywords.m_functions.put(name, new Integer(funcIndex));\n    }\n\n    FuncLoader loader = new FuncLoader(func.getClass().getName(), funcIndex);\n\n    m_functions[funcIndex] = loader;\n\n    return funcIndex;\n  }\n\n  /**\n   * Install a function loader at a specific index.\n   * @param func A Implementation of an XPath Function object.\n   * @param which  The function ID, which may correspond to one of the FUNC_XXX \n   *    values found in {@link org.apache.xpath.compiler.FunctionTable}, but may \n   *    be a value installed by an external module. \n   * @return the position of the function in the internal index.\n   */\n  public static void installFunction(Expression func, int funcIndex)\n  {\n\n    FuncLoader loader = new FuncLoader(func.getClass().getName(), funcIndex);\n\n    m_functions[funcIndex] = loader;", "functions": [{"function_name": "getFunction", "code": "  public static Function getFunction(int which)\n          throws javax.xml.transform.TransformerException\n  {\n    return m_functions[which].getFunction();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "installFunction", "code": "  public static int installFunction(String name, Expression func)\n  {\n\n    int funcIndex;\n    Object funcIndexObj = Keywords.m_functions.get(name);\n\n    if (null != funcIndexObj)\n    {\n      funcIndex = ((Integer) funcIndexObj).intValue();\n    }\n    else\n    {\n      funcIndex = m_funcNextFreeIndex;\n\n      m_funcNextFreeIndex++;\n\n      Keywords.m_functions.put(name, new Integer(funcIndex));\n    }\n\n    FuncLoader loader = new FuncLoader(func.getClass().getName(), funcIndex);\n\n    m_functions[funcIndex] = loader;\n\n    return funcIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [2, 10], [9, 11], [4, 12], [10, 13], [3, 14], [3, 15], [3, 16], [13, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 2], [11, 9], [12, 4], [13, 10], [14, 3], [15, 3], [16, 3], [17, 13], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "installFunction", "code": "  public static void installFunction(Expression func, int funcIndex)\n  {\n\n    FuncLoader loader = new FuncLoader(func.getClass().getName(), funcIndex);\n\n    m_functions[funcIndex] = loader;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "camel-1.2-1902", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/RuntimeTransformException.java", "language": "java", "name": "org.apache.camel.RuntimeTransformException", "code": "public class RuntimeTransformException extends RuntimeCamelException {\n\n    private static final long serialVersionUID = -8417806626073055262L;\n\n    public RuntimeTransformException(String message) {\n        super(message);\n    }\n\n    public RuntimeTransformException(String message, Throwable cause) {\n        super(message, cause);\n    }\n\n    public RuntimeTransformException(Throwable cause) {\n        super(cause);", "functions": [{"function_name": "RuntimeTransformException", "code": "    public RuntimeTransformException(String message) {\n        super(message);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RuntimeTransformException", "code": "    public RuntimeTransformException(String message, Throwable cause) {\n        super(message, cause);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RuntimeTransformException", "code": "    public RuntimeTransformException(Throwable cause) {\n        super(cause);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-3190", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/Component.java", "language": "java", "name": "org.apache.camel.Component", "code": "public interface Component<E extends Exchange> {\n\n    /**\n     * Returns the context\n     * \n     * @return the context of this component\n     */\n    CamelContext getCamelContext();\n\n    /**\n     * The {@link CamelContext} is injected into the component when it is added\n     * to it\n     */\n    void setCamelContext(CamelContext context);\n\n    /**\n     * Attempt to resolve an endpoint for the given URI if the component is\n     * capable of handling the URI\n     * \n     * @param uri the URI to create\n     * @return a newly created endpoint or null if this component cannot create\n     *         instances of the given uri\n     */\n    Endpoint<E> createEndpoint(String uri) throws Exception;", "functions": [{"function_name": "getCamelContext", "code": "    CamelContext getCamelContext();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setCamelContext", "code": "    void setCamelContext(CamelContext context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createEndpoint", "code": "    Endpoint<E> createEndpoint(String uri) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-1.5-5299", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/util/BinaryTree.java", "language": "java", "name": "org.apache.poi.util.BinaryTree", "code": "public class BinaryTree\n    extends AbstractMap\n{\n    private Node[]                _root             = new Node[]\n    {\n        null, null\n    };\n    private int                   _size             = 0;\n    private int                   _modifications    = 0;\n    private Set[]                 _key_set          = new Set[]\n    {\n        null, null\n    };\n    private Set[]                 _entry_set        = new Set[]\n    {\n        null, null\n    };\n    private Collection[]          _value_collection = new Collection[]\n    {\n        null, null\n    };\n    private static final int      _KEY              = 0;\n    private static final int      _VALUE            = 1;\n    private static final int      _INDEX_SUM        = _KEY + _VALUE;\n    private static final int      _MINIMUM_INDEX    = 0;\n    private static final int      _INDEX_COUNT      = 2;\n    private static final String[] _data_name        = new String[]\n    {\n        \"key\", \"value\"\n    };\n\n    /**\n     * Construct a new BinaryTree\n     */\n\n    public BinaryTree()\n    {\n    }\n\n    /**\n     * Constructs a new BinaryTree from an existing Map, with keys and\n     * values sorted\n     *\n     * @param map the map whose mappings are to be placed in this map.\n     *\n     * @exception ClassCastException if the keys in the map are not\n     *                               Comparable, or are not mutually\n     *                               comparable; also if the values in\n     *                               the map are not Comparable, or\n     *                               are not mutually Comparable\n     * @exception NullPointerException if any key or value in the map\n     *                                 is null\n     * @exception IllegalArgumentException if there are duplicate keys\n     *                                     or duplicate values in the\n     *                                     map\n     */\n\n    public BinaryTree(final Map map)\n        throws ClassCastException, NullPointerException,\n                IllegalArgumentException\n    {\n        putAll(map);\n    }\n\n    /**\n     * Returns the key to which this map maps the specified value.\n     * Returns null if the map contains no mapping for this value.\n     *\n     * @param value value whose associated key is to be returned.\n     *\n     * @return the key to which this map maps the specified value, or\n     *         null if the map contains no mapping for this value.\n     *\n     * @exception ClassCastException if the value is of an\n     *                               inappropriate type for this map.\n     * @exception NullPointerException if the value is null\n     */\n\n    public Object getKeyForValue(final Object value)\n        throws ClassCastException, NullPointerException\n    {\n        return doGet(( Comparable ) value, _VALUE);\n    }\n\n    /**\n     * Removes the mapping for this value from this map if present\n     *\n     * @param value value whose mapping is to be removed from the map.\n     *\n     * @return previous key associated with specified value, or null\n     *         if there was no mapping for value.\n     */\n\n    public Object removeValue(final Object value)\n    {\n        return doRemove(( Comparable ) value, _VALUE);\n    }\n\n    /**\n     * Returns a set view of the mappings contained in this map. Each\n     * element in the returned set is a Map.Entry. The set is backed\n     * by the map, so changes to the map are reflected in the set, and\n     * vice-versa.  If the map is modified while an iteration over the\n     * set is in progress, the results of the iteration are\n     * undefined. The set supports element removal, which removes the\n     * corresponding mapping from the map, via the Iterator.remove,\n     * Set.remove, removeAll, retainAll and clear operations.  It does\n     * not support the add or addAll operations.<p>\n     *\n     * The difference between this method and entrySet is that\n     * entrySet's iterator() method returns an iterator that iterates\n     * over the mappings in ascending order by key. This method's\n     * iterator method iterates over the mappings in ascending order\n     * by value.\n     *\n     * @return a set view of the mappings contained in this map.\n     */\n\n    public Set entrySetByValue()\n    {\n        if (_entry_set[ _VALUE ] == null)\n        {\n            _entry_set[ _VALUE ] = new AbstractSet()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_VALUE)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node;\n                        }\n                    };\n                }\n\n                public boolean contains(Object o)\n                {\n                    if (!(o instanceof Map.Entry))\n                    {\n                        return false;\n                    }\n                    Map.Entry entry = ( Map.Entry ) o;\n                    Object    key   = entry.getKey();\n                    Node      node  = lookup(( Comparable ) entry.getValue(),\n                                             _VALUE);\n\n                    return (node != null) && node.getData(_KEY).equals(key);\n                }\n\n                public boolean remove(Object o)\n                {\n                    if (!(o instanceof Map.Entry))\n                    {\n                        return false;\n                    }\n                    Map.Entry entry = ( Map.Entry ) o;\n                    Object    key   = entry.getKey();\n                    Node      node  = lookup(( Comparable ) entry.getValue(),\n                                             _VALUE);\n\n                    if ((node != null) && node.getData(_KEY).equals(key))\n                    {\n                        doRedBlackDelete(node);\n                        return true;\n                    }\n                    return false;\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _entry_set[ _VALUE ];\n    }\n\n    /**\n     * Returns a set view of the keys contained in this map.  The set\n     * is backed by the map, so changes to the map are reflected in\n     * the set, and vice-versa. If the map is modified while an\n     * iteration over the set is in progress, the results of the\n     * iteration are undefined. The set supports element removal,\n     * which removes the corresponding mapping from the map, via the\n     * Iterator.remove, Set.remove, removeAll, retainAll, and clear\n     * operations. It does not support the add or addAll\n     * operations.<p>\n     *\n     * The difference between this method and keySet is that keySet's\n     * iterator() method returns an iterator that iterates over the\n     * keys in ascending order by key. This method's iterator method\n     * iterates over the keys in ascending order by value.\n     *\n     * @return a set view of the keys contained in this map.\n     */\n\n    public Set keySetByValue()\n    {\n        if (_key_set[ _VALUE ] == null)\n        {\n            _key_set[ _VALUE ] = new AbstractSet()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_VALUE)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node.getData(_KEY);\n                        }\n                    };\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public boolean contains(Object o)\n                {\n                    return containsKey(o);\n                }\n\n                public boolean remove(Object o)\n                {\n                    int old_size = _size;\n\n                    BinaryTree.this.remove(o);\n                    return _size != old_size;\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _key_set[ _VALUE ];\n    }\n\n    /**\n     * Returns a collection view of the values contained in this\n     * map. The collection is backed by the map, so changes to the map\n     * are reflected in the collection, and vice-versa. If the map is\n     * modified while an iteration over the collection is in progress,\n     * the results of the iteration are undefined. The collection\n     * supports element removal, which removes the corresponding\n     * mapping from the map, via the Iterator.remove,\n     * Collection.remove, removeAll, retainAll and clear operations.\n     * It does not support the add or addAll operations.<p>\n     *\n     * The difference between this method and values is that values's\n     * iterator() method returns an iterator that iterates over the\n     * values in ascending order by key. This method's iterator method\n     * iterates over the values in ascending order by key.\n     *\n     * @return a collection view of the values contained in this map.\n     */\n\n    public Collection valuesByValue()\n    {\n        if (_value_collection[ _VALUE ] == null)\n        {\n            _value_collection[ _VALUE ] = new AbstractCollection()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_VALUE)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node.getData(_VALUE);\n                        }\n                    };\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public boolean contains(Object o)\n                {\n                    return containsValue(o);\n                }\n\n                public boolean remove(Object o)\n                {\n                    int old_size = _size;\n\n                    removeValue(o);\n                    return _size != old_size;\n                }\n\n                public boolean removeAll(Collection c)\n                {\n                    boolean  modified = false;\n                    Iterator iter     = c.iterator();\n\n                    while (iter.hasNext())\n                    {\n                        if (removeValue(iter.next()) != null)\n                        {\n                            modified = true;\n                        }\n                    }\n                    return modified;\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _value_collection[ _VALUE ];\n    }\n\n    /**\n     * common remove logic (remove by key or remove by value)\n     *\n     * @param o the key, or value, that we're looking for\n     * @param index _KEY or _VALUE\n     *\n     * @return the key, if remove by value, or the value, if remove by\n     *         key. null if the specified key or value could not be\n     *         found\n     */\n\n    private Object doRemove(final Comparable o, final int index)\n    {\n        Node   node = lookup(o, index);\n        Object rval = null;\n\n        if (node != null)\n        {\n            rval = node.getData(oppositeIndex(index));\n            doRedBlackDelete(node);\n        }\n        return rval;\n    }\n\n    /**\n     * common get logic, used to get by key or get by value\n     *\n     * @param o the key or value that we're looking for\n     * @param index _KEY or _VALUE\n     *\n     * @return the key (if the value was mapped) or the value (if the\n     *         key was mapped); null if we couldn't find the specified\n     *         object\n     */\n\n    private Object doGet(final Comparable o, final int index)\n    {\n        checkNonNullComparable(o, index);\n        Node node = lookup(o, index);\n\n        return ((node == null) ? null\n                               : node.getData(oppositeIndex(index)));\n    }\n\n    /**\n     * Get the opposite index of the specified index\n     *\n     * @param index _KEY or _VALUE\n     *\n     * @return _VALUE (if _KEY was specified), else _KEY\n     */\n\n    private int oppositeIndex(final int index)\n    {\n\n        return _INDEX_SUM - index;\n    }\n\n    /**\n     * do the actual lookup of a piece of data\n     *\n     * @param data the key or value to be looked up\n     * @param index _KEY or _VALUE\n     *\n     * @return the desired Node, or null if there is no mapping of the\n     *         specified data\n     */\n\n    private Node lookup(final Comparable data, final int index)\n    {\n        Node rval = null;\n        Node node = _root[ index ];\n\n        while (node != null)\n        {\n            int cmp = compare(data, node.getData(index));\n\n            if (cmp == 0)\n            {\n                rval = node;\n                break;\n            }\n            else\n            {\n                node = (cmp < 0) ? node.getLeft(index)\n                                 : node.getRight(index);\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Compare two objects\n     *\n     * @param o1 the first object\n     * @param o2 the second object\n     *\n     * @return negative value if o1 < o2; 0 if o1 == o2; positive\n     *         value if o1 > o2\n     */\n\n    private static int compare(final Comparable o1, final Comparable o2)\n    {\n        return (( Comparable ) o1).compareTo(o2);\n    }\n\n    /**\n     * find the least node from a given node. very useful for starting\n     * a sorting iterator ...\n     *\n     * @param node the node from which we will start searching\n     * @param index _KEY or _VALUE\n     *\n     * @return the smallest node, from the specified node, in the\n     *         specified mapping\n     */\n\n    private static Node leastNode(final Node node, final int index)\n    {\n        Node rval = node;\n\n        if (rval != null)\n        {\n            while (rval.getLeft(index) != null)\n            {\n                rval = rval.getLeft(index);\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * get the next larger node from the specified node\n     *\n     * @param node the node to be searched from\n     * @param index _KEY or _VALUE\n     *\n     * @return the specified node\n     */\n\n    private Node nextGreater(final Node node, final int index)\n    {\n        Node rval = null;\n\n        if (node == null)\n        {\n            rval = null;\n        }\n        else if (node.getRight(index) != null)\n        {\n\n            rval = leastNode(node.getRight(index), index);\n        }\n        else\n        {\n\n            Node parent = node.getParent(index);\n            Node child  = node;\n\n            while ((parent != null) && (child == parent.getRight(index)))\n            {\n                child  = parent;\n                parent = parent.getParent(index);\n            }\n            rval = parent;\n        }\n        return rval;\n    }\n\n    /**\n     * copy the color from one node to another, dealing with the fact\n     * that one or both nodes may, in fact, be null\n     *\n     * @param from the node whose color we're copying; may be null\n     * @param to the node whose color we're changing; may be null\n     * @param index _KEY or _VALUE\n     */\n\n    private static void copyColor(final Node from, final Node to,\n                                  final int index)\n    {\n        if (to != null)\n        {\n            if (from == null)\n            {\n\n                to.setBlack(index);\n            }\n            else\n            {\n                to.copyColor(from, index);\n            }\n        }\n    }\n\n    /**\n     * is the specified node red? if the node does not exist, no, it's\n     * black, thank you\n     *\n     * @param node the node (may be null) in question\n     * @param index _KEY or _VALUE\n     */\n\n    private static boolean isRed(final Node node, final int index)\n    {\n        return ((node == null) ? false\n                               : node.isRed(index));\n    }\n\n    /**\n     * is the specified black red? if the node does not exist, sure,\n     * it's black, thank you\n     *\n     * @param node the node (may be null) in question\n     * @param index _KEY or _VALUE\n     */\n\n    private static boolean isBlack(final Node node, final int index)\n    {\n        return ((node == null) ? true\n                               : node.isBlack(index));\n    }\n\n    /**\n     * force a node (if it exists) red\n     *\n     * @param node the node (may be null) in question\n     * @param index _KEY or _VALUE\n     */\n\n    private static void makeRed(final Node node, final int index)\n    {\n        if (node != null)\n        {\n            node.setRed(index);\n        }\n    }\n\n    /**\n     * force a node (if it exists) black\n     *\n     * @param node the node (may be null) in question\n     * @param index _KEY or _VALUE\n     */\n\n    private static void makeBlack(final Node node, final int index)\n    {\n        if (node != null)\n        {\n            node.setBlack(index);\n        }\n    }\n\n    /**\n     * get a node's grandparent. mind you, the node, its parent, or\n     * its grandparent may not exist. no problem\n     *\n     * @param node the node (may be null) in question\n     * @param index _KEY or _VALUE\n     */\n\n    private static Node getGrandParent(final Node node, final int index)\n    {\n        return getParent(getParent(node, index), index);\n    }\n\n    /**\n     * get a node's parent. mind you, the node, or its parent, may not\n     * exist. no problem\n     *\n     * @param node the node (may be null) in question\n     * @param index _KEY or _VALUE\n     */\n\n    private static Node getParent(final Node node, final int index)\n    {\n        return ((node == null) ? null\n                               : node.getParent(index));\n    }\n\n    /**\n     * get a node's right child. mind you, the node may not exist. no\n     * problem\n     *\n     * @param node the node (may be null) in question\n     * @param index _KEY or _VALUE\n     */\n\n    private static Node getRightChild(final Node node, final int index)\n    {\n        return (node == null) ? null\n                              : node.getRight(index);\n    }\n\n    /**\n     * get a node's left child. mind you, the node may not exist. no\n     * problem\n     *\n     * @param node the node (may be null) in question\n     * @param index _KEY or _VALUE\n     */\n\n    private static Node getLeftChild(final Node node, final int index)\n    {\n        return (node == null) ? null\n                              : node.getLeft(index);\n    }\n\n    /**\n     * is this node its parent's left child? mind you, the node, or\n     * its parent, may not exist. no problem. if the node doesn't\n     * exist ... it's its non-existent parent's left child. If the\n     * node does exist but has no parent ... no, we're not the\n     * non-existent parent's left child. Otherwise (both the specified\n     * node AND its parent exist), check.\n     *\n     * @param node the node (may be null) in question\n     * @param index _KEY or _VALUE\n     */\n\n    private static boolean isLeftChild(final Node node, final int index)\n    {\n        return (node == null) ? true\n                              : ((node.getParent(index) == null) ? false\n                                                                 : (node\n                                                                    == node.getParent(\n                                                                        index).getLeft(\n                                                                        index)));\n    }\n\n    /**\n     * is this node its parent's right child? mind you, the node, or\n     * its parent, may not exist. no problem. if the node doesn't\n     * exist ... it's its non-existent parent's right child. If the\n     * node does exist but has no parent ... no, we're not the\n     * non-existent parent's right child. Otherwise (both the\n     * specified node AND its parent exist), check.\n     *\n     * @param node the node (may be null) in question\n     * @param index _KEY or _VALUE\n     */\n\n    private static boolean isRightChild(final Node node, final int index)\n    {\n        return (node == null) ? true\n                              : ((node.getParent(index) == null) ? false\n                                                                 : (node\n                                                                    == node.getParent(\n                                                                        index).getRight(\n                                                                        index)));\n    }\n\n    /**\n     * do a rotate left. standard fare in the world of balanced trees\n     *\n     * @param node the node to be rotated\n     * @param index _KEY or _VALUE\n     */\n\n    private void rotateLeft(final Node node, final int index)\n    {\n        Node right_child = node.getRight(index);\n\n        node.setRight(right_child.getLeft(index), index);\n        if (right_child.getLeft(index) != null)\n        {\n            right_child.getLeft(index).setParent(node, index);\n        }\n        right_child.setParent(node.getParent(index), index);\n        if (node.getParent(index) == null)\n        {\n\n            _root[ index ] = right_child;\n        }\n        else if (node.getParent(index).getLeft(index) == node)\n        {\n            node.getParent(index).setLeft(right_child, index);\n        }\n        else\n        {\n            node.getParent(index).setRight(right_child, index);\n        }\n        right_child.setLeft(node, index);\n        node.setParent(right_child, index);\n    }\n\n    /**\n     * do a rotate right. standard fare in the world of balanced trees\n     *\n     * @param node the node to be rotated\n     * @param index _KEY or _VALUE\n     */\n\n    private void rotateRight(final Node node, final int index)\n    {\n        Node left_child = node.getLeft(index);\n\n        node.setLeft(left_child.getRight(index), index);\n        if (left_child.getRight(index) != null)\n        {\n            left_child.getRight(index).setParent(node, index);\n        }\n        left_child.setParent(node.getParent(index), index);\n        if (node.getParent(index) == null)\n        {\n\n            _root[ index ] = left_child;\n        }\n        else if (node.getParent(index).getRight(index) == node)\n        {\n            node.getParent(index).setRight(left_child, index);\n        }\n        else\n        {\n            node.getParent(index).setLeft(left_child, index);\n        }\n        left_child.setRight(node, index);\n        node.setParent(left_child, index);\n    }\n\n    /**\n     * complicated red-black insert stuff. Based on Sun's TreeMap\n     * implementation, though it's barely recognizeable any more\n     *\n     * @param inserted_node the node to be inserted\n     * @param index _KEY or _VALUE\n     */\n\n    private void doRedBlackInsert(final Node inserted_node, final int index)\n    {\n        Node current_node = inserted_node;\n\n        makeRed(current_node, index);\n        while ((current_node != null) && (current_node != _root[ index ])\n                && (isRed(current_node.getParent(index), index)))\n        {\n            if (isLeftChild(getParent(current_node, index), index))\n            {\n                Node y = getRightChild(getGrandParent(current_node, index),\n                                       index);\n\n                if (isRed(y, index))\n                {\n                    makeBlack(getParent(current_node, index), index);\n                    makeBlack(y, index);\n                    makeRed(getGrandParent(current_node, index), index);\n                    current_node = getGrandParent(current_node, index);\n                }\n                else\n                {\n                    if (isRightChild(current_node, index))\n                    {\n                        current_node = getParent(current_node, index);\n                        rotateLeft(current_node, index);\n                    }\n                    makeBlack(getParent(current_node, index), index);\n                    makeRed(getGrandParent(current_node, index), index);\n                    if (getGrandParent(current_node, index) != null)\n                    {\n                        rotateRight(getGrandParent(current_node, index),\n                                    index);\n                    }\n                }\n            }\n            else\n            {\n\n                Node y = getLeftChild(getGrandParent(current_node, index),\n                                      index);\n\n                if (isRed(y, index))\n                {\n                    makeBlack(getParent(current_node, index), index);\n                    makeBlack(y, index);\n                    makeRed(getGrandParent(current_node, index), index);\n                    current_node = getGrandParent(current_node, index);\n                }\n                else\n                {\n                    if (isLeftChild(current_node, index))\n                    {\n                        current_node = getParent(current_node, index);\n                        rotateRight(current_node, index);\n                    }\n                    makeBlack(getParent(current_node, index), index);\n                    makeRed(getGrandParent(current_node, index), index);\n                    if (getGrandParent(current_node, index) != null)\n                    {\n                        rotateLeft(getGrandParent(current_node, index),\n                                   index);\n                    }\n                }\n            }\n        }\n        makeBlack(_root[ index ], index);\n    }\n\n    /**\n     * complicated red-black delete stuff. Based on Sun's TreeMap\n     * implementation, though it's barely recognizeable any more\n     *\n     * @param deleted_node the node to be deleted\n     */\n\n    private void doRedBlackDelete(final Node deleted_node)\n    {\n        for (int index = _MINIMUM_INDEX; index < _INDEX_COUNT; index++)\n        {\n\n            if ((deleted_node.getLeft(index) != null)\n                    && (deleted_node.getRight(index) != null))\n            {\n                swapPosition(nextGreater(deleted_node, index), deleted_node,\n                             index);\n            }\n            Node replacement = ((deleted_node.getLeft(index) != null)\n                                ? deleted_node.getLeft(index)\n                                : deleted_node.getRight(index));\n\n            if (replacement != null)\n            {\n                replacement.setParent(deleted_node.getParent(index), index);\n                if (deleted_node.getParent(index) == null)\n                {\n                    _root[ index ] = replacement;\n                }\n                else if (deleted_node\n                         == deleted_node.getParent(index).getLeft(index))\n                {\n                    deleted_node.getParent(index).setLeft(replacement, index);\n                }\n                else\n                {\n                    deleted_node.getParent(index).setRight(replacement,\n                                           index);\n                }\n                deleted_node.setLeft(null, index);\n                deleted_node.setRight(null, index);\n                deleted_node.setParent(null, index);\n                if (isBlack(deleted_node, index))\n                {\n                    doRedBlackDeleteFixup(replacement, index);\n                }\n            }\n            else\n            {\n\n                if (deleted_node.getParent(index) == null)\n                {\n\n                    _root[ index ] = null;\n                }\n                else\n                {\n\n                    if (isBlack(deleted_node, index))\n                    {\n                        doRedBlackDeleteFixup(deleted_node, index);\n                    }\n                    if (deleted_node.getParent(index) != null)\n                    {\n                        if (deleted_node\n                                == deleted_node.getParent(index)\n                                    .getLeft(index))\n                        {\n                            deleted_node.getParent(index).setLeft(null,\n                                                   index);\n                        }\n                        else\n                        {\n                            deleted_node.getParent(index).setRight(null,\n                                                   index);\n                        }\n                        deleted_node.setParent(null, index);\n                    }\n                }\n            }\n        }\n        shrink();\n    }\n\n    /**\n     * complicated red-black delete stuff. Based on Sun's TreeMap\n     * implementation, though it's barely recognizeable any more. This\n     * rebalances the tree (somewhat, as red-black trees are not\n     * perfectly balanced -- perfect balancing takes longer)\n     *\n     * @param replacement_node  the node being replaced\n     * @param index _KEY or _VALUE\n     */\n\n    private void doRedBlackDeleteFixup(final Node replacement_node,\n                                       final int index)\n    {\n        Node current_node = replacement_node;\n\n        while ((current_node != _root[ index ])\n                && (isBlack(current_node, index)))\n        {\n            if (isLeftChild(current_node, index))\n            {\n                Node sibling_node =\n                    getRightChild(getParent(current_node, index), index);\n\n                if (isRed(sibling_node, index))\n                {\n                    makeBlack(sibling_node, index);\n                    makeRed(getParent(current_node, index), index);\n                    rotateLeft(getParent(current_node, index), index);\n                    sibling_node =\n                        getRightChild(getParent(current_node, index), index);\n                }\n                if (isBlack(getLeftChild(sibling_node, index), index)\n                        && isBlack(getRightChild(sibling_node, index), index))\n                {\n                    makeRed(sibling_node, index);\n                    current_node = getParent(current_node, index);\n                }\n                else\n                {\n                    if (isBlack(getRightChild(sibling_node, index), index))\n                    {\n                        makeBlack(getLeftChild(sibling_node, index), index);\n                        makeRed(sibling_node, index);\n                        rotateRight(sibling_node, index);\n                        sibling_node =\n                            getRightChild(getParent(current_node, index),\n                                          index);\n                    }\n                    copyColor(getParent(current_node, index), sibling_node,\n                              index);\n                    makeBlack(getParent(current_node, index), index);\n                    makeBlack(getRightChild(sibling_node, index), index);\n                    rotateLeft(getParent(current_node, index), index);\n                    current_node = _root[ index ];\n                }\n            }\n            else\n            {\n                Node sibling_node =\n                    getLeftChild(getParent(current_node, index), index);\n\n                if (isRed(sibling_node, index))\n                {\n                    makeBlack(sibling_node, index);\n                    makeRed(getParent(current_node, index), index);\n                    rotateRight(getParent(current_node, index), index);\n                    sibling_node =\n                        getLeftChild(getParent(current_node, index), index);\n                }\n                if (isBlack(getRightChild(sibling_node, index), index)\n                        && isBlack(getLeftChild(sibling_node, index), index))\n                {\n                    makeRed(sibling_node, index);\n                    current_node = getParent(current_node, index);\n                }\n                else\n                {\n                    if (isBlack(getLeftChild(sibling_node, index), index))\n                    {\n                        makeBlack(getRightChild(sibling_node, index), index);\n                        makeRed(sibling_node, index);\n                        rotateLeft(sibling_node, index);\n                        sibling_node =\n                            getLeftChild(getParent(current_node, index),\n                                         index);\n                    }\n                    copyColor(getParent(current_node, index), sibling_node,\n                              index);\n                    makeBlack(getParent(current_node, index), index);\n                    makeBlack(getLeftChild(sibling_node, index), index);\n                    rotateRight(getParent(current_node, index), index);\n                    current_node = _root[ index ];\n                }\n            }\n        }\n        makeBlack(current_node, index);\n    }\n\n    /**\n     * swap two nodes (except for their content), taking care of\n     * special cases where one is the other's parent ... hey, it\n     * happens.\n     *\n     * @param x one node\n     * @param y another node\n     * @param index _KEY or _VALUE\n     */\n\n    private void swapPosition(final Node x, final Node y, final int index)\n    {\n\n        Node    x_old_parent      = x.getParent(index);\n        Node    x_old_left_child  = x.getLeft(index);\n        Node    x_old_right_child = x.getRight(index);\n        Node    y_old_parent      = y.getParent(index);\n        Node    y_old_left_child  = y.getLeft(index);\n        Node    y_old_right_child = y.getRight(index);\n        boolean x_was_left_child  =\n            (x.getParent(index) != null)\n            && (x == x.getParent(index).getLeft(index));\n        boolean y_was_left_child  =\n            (y.getParent(index) != null)\n            && (y == y.getParent(index).getLeft(index));\n\n        if (x == y_old_parent){\n            x.setParent(y, index);\n            if (y_was_left_child)\n            {\n                y.setLeft(x, index);\n                y.setRight(x_old_right_child, index);\n            }\n            else\n            {\n                y.setRight(x, index);\n                y.setLeft(x_old_left_child, index);\n            }\n        }\n        else\n        {\n            x.setParent(y_old_parent, index);\n            if (y_old_parent != null)\n            {\n                if (y_was_left_child)\n                {\n                    y_old_parent.setLeft(x, index);\n                }\n                else\n                {\n                    y_old_parent.setRight(x, index);\n                }\n            }\n            y.setLeft(x_old_left_child, index);\n            y.setRight(x_old_right_child, index);\n        }\n        if (y == x_old_parent){\n            y.setParent(x, index);\n            if (x_was_left_child)\n            {\n                x.setLeft(y, index);\n                x.setRight(y_old_right_child, index);\n            }\n            else\n            {\n                x.setRight(y, index);\n                x.setLeft(y_old_left_child, index);\n            }\n        }\n        else\n        {\n            y.setParent(x_old_parent, index);\n            if (x_old_parent != null)\n            {\n                if (x_was_left_child)\n                {\n                    x_old_parent.setLeft(y, index);\n                }\n                else\n                {\n                    x_old_parent.setRight(y, index);\n                }\n            }\n            x.setLeft(y_old_left_child, index);\n            x.setRight(y_old_right_child, index);\n        }\n\n        if (x.getLeft(index) != null)\n        {\n            x.getLeft(index).setParent(x, index);\n        }\n        if (x.getRight(index) != null)\n        {\n            x.getRight(index).setParent(x, index);\n        }\n        if (y.getLeft(index) != null)\n        {\n            y.getLeft(index).setParent(y, index);\n        }\n        if (y.getRight(index) != null)\n        {\n            y.getRight(index).setParent(y, index);\n        }\n        x.swapColors(y, index);\n\n        if (_root[ index ] == x)\n        {\n            _root[ index ] = y;\n        }\n        else if (_root[ index ] == y)\n        {\n            _root[ index ] = x;\n        }\n    }\n\n    /**\n     * check if an object is fit to be proper input ... has to be\n     * Comparable and non-null\n     *\n     * @param o the object being checked\n     * @param index _KEY or _VALUE (used to put the right word in the\n     *              exception message)\n     *\n     * @exception NullPointerException if o is null\n     * @exception ClassCastException if o is not Comparable\n     */\n\n    private static void checkNonNullComparable(final Object o,\n                                               final int index)\n    {\n        if (o == null)\n        {\n            throw new NullPointerException(_data_name[ index ]\n                                           + \" cannot be null\");\n        }\n        if (!(o instanceof Comparable))\n        {\n            throw new ClassCastException(_data_name[ index ]\n                                         + \" must be Comparable\");\n        }\n    }\n\n    /**\n     * check a key for validity (non-null and implements Comparable)\n     *\n     * @param key the key to be checked\n     *\n     * @exception NullPointerException if key is null\n     * @exception ClassCastException if key is not Comparable\n     */\n\n    private static void checkKey(final Object key)\n    {\n        checkNonNullComparable(key, _KEY);\n    }\n\n    /**\n     * check a value for validity (non-null and implements Comparable)\n     *\n     * @param value the value to be checked\n     *\n     * @exception NullPointerException if value is null\n     * @exception ClassCastException if value is not Comparable\n     */\n\n    private static void checkValue(final Object value)\n    {\n        checkNonNullComparable(value, _VALUE);\n    }\n\n    /**\n     * check a key and a value for validity (non-null and implements\n     * Comparable)\n     *\n     * @param key the key to be checked\n     * @param value the value to be checked\n     *\n     * @exception NullPointerException if key or value is null\n     * @exception ClassCastException if key or value is not Comparable\n     */\n\n    private static void checkKeyAndValue(final Object key, final Object value)\n    {\n        checkKey(key);\n        checkValue(value);\n    }\n\n    /**\n     * increment the modification count -- used to check for\n     * concurrent modification of the map through the map and through\n     * an Iterator from one of its Set or Collection views\n     */\n\n    private void modify()\n    {\n        _modifications++;\n    }\n\n    /**\n     * bump up the size and note that the map has changed\n     */\n\n    private void grow()\n    {\n        modify();\n        _size++;\n    }\n\n    /**\n     * decrement the size and note that the map has changed\n     */\n\n    private void shrink()\n    {\n        modify();\n        _size--;\n    }\n\n    /**\n     * insert a node by its value\n     *\n     * @param newNode the node to be inserted\n     *\n     * @exception IllegalArgumentException if the node already exists\n     *                                     in the value mapping\n     */\n\n    private void insertValue(final Node newNode)\n        throws IllegalArgumentException\n    {\n        Node node = _root[ _VALUE ];\n\n        while (true)\n        {\n            int cmp = compare(newNode.getData(_VALUE), node.getData(_VALUE));\n\n            if (cmp == 0)\n            {\n                throw new IllegalArgumentException(\n                    \"Cannot store a duplicate value (\\\"\"\n                    + newNode.getData(_VALUE) + \"\\\") in this Map\");\n            }\n            else if (cmp < 0)\n            {\n                if (node.getLeft(_VALUE) != null)\n                {\n                    node = node.getLeft(_VALUE);\n                }\n                else\n                {\n                    node.setLeft(newNode, _VALUE);\n                    newNode.setParent(node, _VALUE);\n                    doRedBlackInsert(newNode, _VALUE);\n                    break;\n                }\n            }\n            else{\n                if (node.getRight(_VALUE) != null)\n                {\n                    node = node.getRight(_VALUE);\n                }\n                else\n                {\n                    node.setRight(newNode, _VALUE);\n                    newNode.setParent(node, _VALUE);\n                    doRedBlackInsert(newNode, _VALUE);\n                    break;\n                }\n            }\n        }\n    }\n\n    /* ********** START implementation of Map ********** */\n\n    /**\n     * Returns the number of key-value mappings in this map. If the\n     * map contains more than Integer.MAX_VALUE elements, returns\n     * Integer.MAX_VALUE.\n     *\n     * @return the number of key-value mappings in this map.\n     */\n\n    public int size()\n    {\n        return _size;\n    }\n\n    /**\n     * Returns true if this map contains a mapping for the specified\n     * key.\n     *\n     * @param key key whose presence in this map is to be tested.\n     *\n     * @return true if this map contains a mapping for the specified\n     *         key.\n     *\n     * @exception ClassCastException if the key is of an inappropriate\n     *                               type for this map.\n     * @exception NullPointerException if the key is null\n     */\n\n    public boolean containsKey(final Object key)\n        throws ClassCastException, NullPointerException\n    {\n        checkKey(key);\n        return lookup(( Comparable ) key, _KEY) != null;\n    }\n\n    /**\n     * Returns true if this map maps one or more keys to the\n     * specified value.\n     *\n     * @param value value whose presence in this map is to be tested.\n     *\n     * @return true if this map maps one or more keys to the specified\n     *         value.\n     */\n\n    public boolean containsValue(final Object value)\n    {\n        checkValue(value);\n        return lookup(( Comparable ) value, _VALUE) != null;\n    }\n\n    /**\n     * Returns the value to which this map maps the specified\n     * key. Returns null if the map contains no mapping for this key.\n     *\n     * @param key key whose associated value is to be returned.\n     *\n     * @return the value to which this map maps the specified key, or\n     *         null if the map contains no mapping for this key.\n     *\n     * @exception ClassCastException if the key is of an inappropriate\n     *                               type for this map.\n     * @exception NullPointerException if the key is null\n     */\n\n    public Object get(final Object key)\n        throws ClassCastException, NullPointerException\n    {\n        return doGet(( Comparable ) key, _KEY);\n    }\n\n    /**\n     * Associates the specified value with the specified key in this\n     * map.\n     *\n     * @param key key with which the specified value is to be\n     *            associated.\n     * @param value value to be associated with the specified key.\n     *\n     * @return null\n     *\n     * @exception ClassCastException if the class of the specified key\n     *                               or value prevents it from being\n     *                               stored in this map.\n     * @exception NullPointerException if the specified key or value\n     *                                 is null\n     * @exception IllegalArgumentException if the key duplicates an\n     *                                     existing key, or if the\n     *                                     value duplicates an\n     *                                     existing value\n     */\n\n    public Object put(final Object key, final Object value)\n        throws ClassCastException, NullPointerException,\n                IllegalArgumentException\n    {\n        checkKeyAndValue(key, value);\n        Node node = _root[ _KEY ];\n\n        if (node == null)\n        {\n            Node root = new Node(( Comparable ) key, ( Comparable ) value);\n\n            _root[ _KEY ]   = root;\n            _root[ _VALUE ] = root;\n            grow();\n        }\n        else\n        {\n            while (true)\n            {\n                int cmp = compare(( Comparable ) key, node.getData(_KEY));\n\n                if (cmp == 0)\n                {\n                    throw new IllegalArgumentException(\n                        \"Cannot store a duplicate key (\\\"\" + key\n                        + \"\\\") in this Map\");\n                }\n                else if (cmp < 0)\n                {\n                    if (node.getLeft(_KEY) != null)\n                    {\n                        node = node.getLeft(_KEY);\n                    }\n                    else\n                    {\n                        Node newNode = new Node(( Comparable ) key,\n                                                ( Comparable ) value);\n\n                        insertValue(newNode);\n                        node.setLeft(newNode, _KEY);\n                        newNode.setParent(node, _KEY);\n                        doRedBlackInsert(newNode, _KEY);\n                        grow();\n                        break;\n                    }\n                }\n                else{\n                    if (node.getRight(_KEY) != null)\n                    {\n                        node = node.getRight(_KEY);\n                    }\n                    else\n                    {\n                        Node newNode = new Node(( Comparable ) key,\n                                                ( Comparable ) value);\n\n                        insertValue(newNode);\n                        node.setRight(newNode, _KEY);\n                        newNode.setParent(node, _KEY);\n                        doRedBlackInsert(newNode, _KEY);\n                        grow();\n                        break;\n                    }\n                }\n            }\n        }\n        return null;\n    }\n\n    /**\n     * Removes the mapping for this key from this map if present\n     *\n     * @param key key whose mapping is to be removed from the map.\n     *\n     * @return previous value associated with specified key, or null\n     *         if there was no mapping for key.\n     */\n\n    public Object remove(final Object key)\n    {\n        return doRemove(( Comparable ) key, _KEY);\n    }\n\n    /**\n     * Removes all mappings from this map\n     */\n\n    public void clear()\n    {\n        modify();\n        _size           = 0;\n        _root[ _KEY ]   = null;\n        _root[ _VALUE ] = null;\n    }\n\n    /**\n     * Returns a set view of the keys contained in this map.  The set\n     * is backed by the map, so changes to the map are reflected in\n     * the set, and vice-versa. If the map is modified while an\n     * iteration over the set is in progress, the results of the\n     * iteration are undefined. The set supports element removal,\n     * which removes the corresponding mapping from the map, via the\n     * Iterator.remove, Set.remove, removeAll, retainAll, and clear\n     * operations.  It does not support the add or addAll operations.\n     *\n     * @return a set view of the keys contained in this map.\n     */\n\n    public Set keySet()\n    {\n        if (_key_set[ _KEY ] == null)\n        {\n            _key_set[ _KEY ] = new AbstractSet()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_KEY)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node.getData(_KEY);\n                        }\n                    };\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public boolean contains(Object o)\n                {\n                    return containsKey(o);\n                }\n\n                public boolean remove(Object o)\n                {\n                    int old_size = _size;\n\n                    BinaryTree.this.remove(o);\n                    return _size != old_size;\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _key_set[ _KEY ];\n    }\n\n    /**\n     * Returns a collection view of the values contained in this\n     * map. The collection is backed by the map, so changes to the map\n     * are reflected in the collection, and vice-versa. If the map is\n     * modified while an iteration over the collection is in progress,\n     * the results of the iteration are undefined. The collection\n     * supports element removal, which removes the corresponding\n     * mapping from the map, via the Iterator.remove,\n     * Collection.remove, removeAll, retainAll and clear operations.\n     * It does not support the add or addAll operations.\n     *\n     * @return a collection view of the values contained in this map.\n     */\n\n    public Collection values()\n    {\n        if (_value_collection[ _KEY ] == null)\n        {\n            _value_collection[ _KEY ] = new AbstractCollection()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_KEY)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node.getData(_VALUE);\n                        }\n                    };\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public boolean contains(Object o)\n                {\n                    return containsValue(o);\n                }\n\n                public boolean remove(Object o)\n                {\n                    int old_size = _size;\n\n                    removeValue(o);\n                    return _size != old_size;\n                }\n\n                public boolean removeAll(Collection c)\n                {\n                    boolean  modified = false;\n                    Iterator iter     = c.iterator();\n\n                    while (iter.hasNext())\n                    {\n                        if (removeValue(iter.next()) != null)\n                        {\n                            modified = true;\n                        }\n                    }\n                    return modified;\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _value_collection[ _KEY ];\n    }\n\n    /**\n     * Returns a set view of the mappings contained in this map. Each\n     * element in the returned set is a Map.Entry. The set is backed\n     * by the map, so changes to the map are reflected in the set, and\n     * vice-versa.  If the map is modified while an iteration over the\n     * set is in progress, the results of the iteration are\n     * undefined. The set supports element removal, which removes the\n     * corresponding mapping from the map, via the Iterator.remove,\n     * Set.remove, removeAll, retainAll and clear operations.  It does\n     * not support the add or addAll operations.\n     *\n     * @return a set view of the mappings contained in this map.\n     */\n\n    public Set entrySet()\n    {\n        if (_entry_set[ _KEY ] == null)\n        {\n            _entry_set[ _KEY ] = new AbstractSet()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_KEY)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node;\n                        }\n                    };\n                }\n\n                public boolean contains(Object o)\n                {\n                    if (!(o instanceof Map.Entry))\n                    {\n                        return false;\n                    }\n                    Map.Entry entry = ( Map.Entry ) o;\n                    Object    value = entry.getValue();\n                    Node      node  = lookup(( Comparable ) entry.getKey(),\n                                             _KEY);\n\n                    return (node != null)\n                           && node.getData(_VALUE).equals(value);\n                }\n\n                public boolean remove(Object o)\n                {\n                    if (!(o instanceof Map.Entry))\n                    {\n                        return false;\n                    }\n                    Map.Entry entry = ( Map.Entry ) o;\n                    Object    value = entry.getValue();\n                    Node      node  = lookup(( Comparable ) entry.getKey(),\n                                             _KEY);\n\n                    if ((node != null) && node.getData(_VALUE).equals(value))\n                    {\n                        doRedBlackDelete(node);\n                        return true;\n                    }\n                    return false;\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _entry_set[ _KEY ];\n    }\n\n    /* **********  END  implementation of Map ********** */\n    private abstract class BinaryTreeIterator\n        implements Iterator\n    {\n        private int    _expected_modifications;\n        protected Node _last_returned_node;\n        private Node   _next_node;\n        private int    _type;\n\n        /**\n         * Constructor\n         *\n         * @param type\n         */\n\n        BinaryTreeIterator(final int type)\n        {\n            _type                   = type;\n            _expected_modifications = BinaryTree.this._modifications;\n            _last_returned_node     = null;\n            _next_node              = leastNode(_root[ _type ], _type);\n        }\n\n        /**\n         * @return 'next', whatever that means for a given kind of\n         *         BinaryTreeIterator\n         */\n\n        protected abstract Object doGetNext();\n\n        /* ********** START implementation of Iterator ********** */\n\n        /**\n         * @return true if the iterator has more elements.\n         */\n\n        public final boolean hasNext()\n        {\n            return _next_node != null;\n        }\n\n        /**\n         * @return the next element in the iteration.\n         *\n         * @exception NoSuchElementException if iteration has no more\n         *                                   elements.\n         * @exception ConcurrentModificationException if the\n         *                                            BinaryTree is\n         *                                            modified behind\n         *                                            the iterator's\n         *                                            back\n         */\n\n        public final Object next()\n            throws NoSuchElementException, ConcurrentModificationException\n        {\n            if (_next_node == null)\n            {\n                throw new NoSuchElementException();\n            }\n            if (_modifications != _expected_modifications)\n            {\n                throw new ConcurrentModificationException();\n            }\n            _last_returned_node = _next_node;\n            _next_node          = nextGreater(_next_node, _type);\n            return doGetNext();\n        }\n\n        /**\n         * Removes from the underlying collection the last element\n         * returned by the iterator. This method can be called only\n         * once per call to next. The behavior of an iterator is\n         * unspecified if the underlying collection is modified while\n         * the iteration is in progress in any way other than by\n         * calling this method.\n         *\n         * @exception IllegalStateException if the next method has not\n         *                                  yet been called, or the\n         *                                  remove method has already\n         *                                  been called after the last\n         *                                  call to the next method.\n         * @exception ConcurrentModificationException if the\n         *                                            BinaryTree is\n         *                                            modified behind\n         *                                            the iterator's\n         *                                            back\n         */\n\n        public final void remove()\n            throws IllegalStateException, ConcurrentModificationException\n        {\n            if (_last_returned_node == null)\n            {\n                throw new IllegalStateException();\n            }\n            if (_modifications != _expected_modifications)\n            {\n                throw new ConcurrentModificationException();\n            }\n            doRedBlackDelete(_last_returned_node);\n            _expected_modifications++;\n            _last_returned_node = null;\n        }\n\n        /* **********  END  implementation of Iterator ********** */\n\n    private static final class Node\n        implements Map.Entry\n    {\n        private Comparable[] _data;\n        private Node[]       _left;\n        private Node[]       _right;\n        private Node[]       _parent;\n        private boolean[]    _black;\n        private int          _hashcode;\n        private boolean      _calculated_hashcode;\n\n        /**\n         * Make a new cell with given key and value, and with null\n         * links, and black (true) colors.\n         *\n         * @param key\n         * @param value\n         */\n\n        Node(final Comparable key, final Comparable value)\n        {\n            _data                = new Comparable[]\n            {\n                key, value\n            };\n            _left                = new Node[]\n            {\n                null, null\n            };\n            _right               = new Node[]\n            {\n                null, null\n            };\n            _parent              = new Node[]\n            {\n                null, null\n            };\n            _black               = new boolean[]\n            {\n                true, true\n            };\n            _calculated_hashcode = false;\n        }\n\n        /**\n         * get the specified data\n         *\n         * @param index _KEY or _VALUE\n         *\n         * @return the key or value\n         */\n\n        private Comparable getData(final int index)\n        {\n            return _data[ index ];\n        }\n\n        /**\n         * Set this node's left node\n         *\n         * @param node the new left node\n         * @param index _KEY or _VALUE\n         */\n\n        private void setLeft(final Node node, final int index)\n        {\n            _left[ index ] = node;\n        }\n\n        /**\n         * get the left node\n         *\n         * @param index _KEY or _VALUE\n         *\n         * @return the left node -- may be null\n         */\n\n        private Node getLeft(final int index)\n        {\n            return _left[ index ];\n        }\n\n        /**\n         * Set this node's right node\n         *\n         * @param node the new right node\n         * @param index _KEY or _VALUE\n         */\n\n        private void setRight(final Node node, final int index)\n        {\n            _right[ index ] = node;\n        }\n\n        /**\n         * get the right node\n         *\n         * @param index _KEY or _VALUE\n         *\n         * @return the right node -- may be null\n         */\n\n        private Node getRight(final int index)\n        {\n            return _right[ index ];\n        }\n\n        /**\n         * Set this node's parent node\n         *\n         * @param node the new parent node\n         * @param index _KEY or _VALUE\n         */\n\n        private void setParent(final Node node, final int index)\n        {\n            _parent[ index ] = node;\n        }\n\n        /**\n         * get the parent node\n         *\n         * @param index _KEY or _VALUE\n         *\n         * @return the parent node -- may be null\n         */\n\n        private Node getParent(final int index)\n        {\n            return _parent[ index ];\n        }\n\n        /**\n         * exchange colors with another node\n         *\n         * @param node the node to swap with\n         * @param index _KEY or _VALUE\n         */\n\n        private void swapColors(final Node node, final int index)\n        {\n\n            _black[ index ]      ^= node._black[ index ];\n            node._black[ index ] ^= _black[ index ];\n            _black[ index ]      ^= node._black[ index ];\n        }\n\n        /**\n         * is this node black?\n         *\n         * @param index _KEY or _VALUE\n         *\n         * @return true if black (which is represented as a true boolean)\n         */\n\n        private boolean isBlack(final int index)\n        {\n            return _black[ index ];\n        }\n\n        /**\n         * is this node red?\n         *\n         * @param index _KEY or _VALUE\n         *\n         * @return true if non-black\n         */\n\n        private boolean isRed(final int index)\n        {\n            return !_black[ index ];\n        }\n\n        /**\n         * make this node black\n         *\n         * @param index _KEY or _VALUE\n         */\n\n        private void setBlack(final int index)\n        {\n            _black[ index ] = true;\n        }\n\n        /**\n         * make this node red\n         *\n         * @param index _KEY or _VALUE\n         */\n\n        private void setRed(final int index)\n        {\n            _black[ index ] = false;\n        }\n\n        /**\n         * make this node the same color as another\n         *\n         * @param node the node whose color we're adopting\n         * @param index _KEY or _VALUE\n         */\n\n        private void copyColor(final Node node, final int index)\n        {\n            _black[ index ] = node._black[ index ];\n        }\n\n        /* ********** START implementation of Map.Entry ********** */\n\n        /**\n         * @return the key corresponding to this entry.\n         */\n\n        public Object getKey()\n        {\n            return _data[ _KEY ];\n        }\n\n        /**\n         * @return the value corresponding to this entry.\n         */\n\n        public Object getValue()\n        {\n            return _data[ _VALUE ];\n        }\n\n        /**\n         * Optional operation that is not permitted in this\n         * implementation\n         *\n         * @param ignored\n         *\n         * @return does not return\n         *\n         * @exception UnsupportedOperationException\n         */\n\n        public Object setValue(Object ignored)\n            throws UnsupportedOperationException\n        {\n            throw new UnsupportedOperationException(\n                \"Map.Entry.setValue is not supported\");\n        }\n\n        /**\n         * Compares the specified object with this entry for equality.\n         * Returns true if the given object is also a map entry and\n         * the two entries represent the same mapping.\n         *\n         * @param o object to be compared for equality with this map\n         *          entry.\n         * @return true if the specified object is equal to this map\n         *         entry.\n         */\n\n        public boolean equals(Object o)\n        {\n            if (this == o)\n            {\n                return true;\n            }\n            if (!(o instanceof Map.Entry))\n            {\n                return false;\n            }\n            Map.Entry e = ( Map.Entry ) o;\n\n            return _data[ _KEY ].equals(e.getKey())\n                   && _data[ _VALUE ].equals(e.getValue());\n        }\n\n        /**\n         * @return the hash code value for this map entry.\n         */\n\n        public int hashCode()\n        {\n            if (!_calculated_hashcode)\n            {\n                _hashcode            = _data[ _KEY ].hashCode()\n                                       ^ _data[ _VALUE ].hashCode();\n                _calculated_hashcode = true;\n            }\n            return _hashcode;", "functions": [{"function_name": "getKeyForValue", "code": "    public Object getKeyForValue(final Object value)\n        throws ClassCastException, NullPointerException\n    {\n        return doGet(( Comparable ) value, _VALUE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeValue", "code": "    public Object removeValue(final Object value)\n    {\n        return doRemove(( Comparable ) value, _VALUE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "entrySetByValue", "code": "    public Set entrySetByValue()\n    {\n        if (_entry_set[ _VALUE ] == null)\n        {\n            _entry_set[ _VALUE ] = new AbstractSet()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_VALUE)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node;\n                        }\n                    };\n                }\n\n                public boolean contains(Object o)\n                {\n                    if (!(o instanceof Map.Entry))\n                    {\n                        return false;\n                    }\n                    Map.Entry entry = ( Map.Entry ) o;\n                    Object    key   = entry.getKey();\n                    Node      node  = lookup(( Comparable ) entry.getValue(),\n                                             _VALUE);\n\n                    return (node != null) && node.getData(_KEY).equals(key);\n                }\n\n                public boolean remove(Object o)\n                {\n                    if (!(o instanceof Map.Entry))\n                    {\n                        return false;\n                    }\n                    Map.Entry entry = ( Map.Entry ) o;\n                    Object    key   = entry.getKey();\n                    Node      node  = lookup(( Comparable ) entry.getValue(),\n                                             _VALUE);\n\n                    if ((node != null) && node.getData(_KEY).equals(key))\n                    {\n                        doRedBlackDelete(node);\n                        return true;\n                    }\n                    return false;\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _entry_set[ _VALUE ];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [8, 12], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 25], [11, 26], [13, 27], [14, 28], [18, 29], [20, 30], [24, 31], [26, 32], [7, 33], [12, 34], [14, 35], [28, 36], [28, 37], [15, 38], [16, 39], [18, 40], [30, 41], [30, 42], [21, 43], [22, 44], [24, 45], [32, 46], [35, 47], [14, 48], [36, 49], [37, 50], [40, 51], [41, 52], [42, 53], [45, 54], [46, 55], [38, 56], [43, 57], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 6], [9, 6], [10, 6], [11, 6], [12, 8], [13, 9], [14, 9], [15, 9], [16, 9], [17, 9], [18, 9], [19, 9], [20, 10], [21, 10], [22, 10], [23, 10], [24, 10], [25, 10], [26, 11], [27, 13], [28, 14], [29, 18], [30, 20], [31, 24], [32, 26], [33, 7], [34, 12], [35, 14], [36, 28], [37, 28], [38, 15], [39, 16], [40, 18], [41, 30], [42, 30], [43, 21], [44, 22], [45, 24], [46, 32], [47, 35], [48, 14], [49, 36], [50, 37], [51, 40], [52, 41], [53, 42], [54, 45], [55, 46], [56, 38], [57, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "keySetByValue", "code": "    public Set keySetByValue()\n    {\n        if (_key_set[ _VALUE ] == null)\n        {\n            _key_set[ _VALUE ] = new AbstractSet()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_VALUE)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node.getData(_KEY);\n                        }\n                    };\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public boolean contains(Object o)\n                {\n                    return containsKey(o);\n                }\n\n                public boolean remove(Object o)\n                {\n                    int old_size = _size;\n\n                    BinaryTree.this.remove(o);\n                    return _size != old_size;\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _key_set[ _VALUE ];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "RETURN", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [8, 12], [8, 13], [8, 14], [9, 15], [9, 16], [10, 17], [11, 18], [12, 19], [15, 20], [18, 21], [7, 22], [8, 23], [17, 24], [21, 25], [25, 26], [26, 27], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 6], [9, 6], [10, 6], [11, 6], [12, 8], [13, 8], [14, 8], [15, 9], [16, 9], [17, 10], [18, 11], [19, 12], [20, 15], [21, 18], [22, 7], [23, 8], [24, 17], [25, 21], [26, 25], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "valuesByValue", "code": "    public Collection valuesByValue()\n    {\n        if (_value_collection[ _VALUE ] == null)\n        {\n            _value_collection[ _VALUE ] = new AbstractCollection()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_VALUE)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node.getData(_VALUE);\n                        }\n                    };\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public boolean contains(Object o)\n                {\n                    return containsValue(o);\n                }\n\n                public boolean remove(Object o)\n                {\n                    int old_size = _size;\n\n                    removeValue(o);\n                    return _size != old_size;\n                }\n\n                public boolean removeAll(Collection c)\n                {\n                    boolean  modified = false;\n                    Iterator iter     = c.iterator();\n\n                    while (iter.hasNext())\n                    {\n                        if (removeValue(iter.next()) != null)\n                        {\n                            modified = true;\n                        }\n                    }\n                    return modified;\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _value_collection[ _VALUE ];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "VAR_DECL", "PARAM", "RETURN", "PARAM", "RETURN", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [9, 18], [9, 19], [9, 20], [10, 21], [10, 22], [11, 23], [12, 24], [14, 25], [18, 26], [9, 27], [21, 28], [24, 29], [7, 30], [14, 31], [15, 32], [16, 33], [23, 34], [29, 35], [31, 36], [35, 37], [36, 38], [36, 39], [37, 40], [31, 41], [39, 42], [41, 43], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 6], [9, 6], [10, 6], [11, 6], [12, 6], [13, 8], [14, 8], [15, 8], [16, 8], [17, 8], [18, 9], [19, 9], [20, 9], [21, 10], [22, 10], [23, 11], [24, 12], [25, 14], [26, 18], [27, 9], [28, 21], [29, 24], [30, 7], [31, 14], [32, 15], [33, 16], [34, 23], [35, 29], [36, 31], [37, 35], [38, 36], [39, 36], [40, 37], [41, 31], [42, 39], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "doRemove", "code": "    private Object doRemove(final Comparable o, final int index)\n    {\n        Node   node = lookup(o, index);\n        Object rval = null;\n\n        if (node != null)\n        {\n            rval = node.getData(oppositeIndex(index));\n            doRedBlackDelete(node);\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [7, 8], [3, 9], [4, 10], [2, 11], [2, 12], [12, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 7], [9, 3], [10, 4], [11, 2], [12, 2], [13, 12], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "doGet", "code": "    private Object doGet(final Comparable o, final int index)\n    {\n        checkNonNullComparable(o, index);\n        Node node = lookup(o, index);\n\n        return ((node == null) ? null\n                               : node.getData(oppositeIndex(index)));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [5, 8], [5, 9], [2, 10], [7, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [8, 5], [9, 5], [10, 2], [11, 7], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "oppositeIndex", "code": "    private int oppositeIndex(final int index)\n    {\n\n        return _INDEX_SUM - index;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "lookup", "code": "    private Node lookup(final Comparable data, final int index)\n    {\n        Node rval = null;\n        Node node = _root[ index ];\n\n        while (node != null)\n        {\n            int cmp = compare(data, node.getData(index));\n\n            if (cmp == 0)\n            {\n                rval = node;\n                break;\n            }\n            else\n            {\n                node = (cmp < 0) ? node.getLeft(index)\n                                 : node.getRight(index);\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [4, 11], [8, 12], [8, 13], [12, 14], [9, 15], [8, 16], [8, 17], [15, 18], [16, 19], [19, 20], [19, 21], [19, 22], [22, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 4], [12, 8], [13, 8], [14, 12], [15, 9], [16, 8], [17, 8], [18, 15], [19, 16], [20, 19], [21, 19], [22, 19], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "compare", "code": "    private static int compare(final Comparable o1, final Comparable o2)\n    {\n        return (( Comparable ) o1).compareTo(o2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "leastNode", "code": "    private static Node leastNode(final Node node, final int index)\n    {\n        Node rval = node;\n\n        if (rval != null)\n        {\n            while (rval.getLeft(index) != null)\n            {\n                rval = rval.getLeft(index);\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [7, 9], [9, 10], [9, 11], [7, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 7], [10, 9], [11, 9], [12, 7], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "nextGreater", "code": "    private Node nextGreater(final Node node, final int index)\n    {\n        Node rval = null;\n\n        if (node == null)\n        {\n            rval = null;\n        }\n        else if (node.getRight(index) != null)\n        {\n\n            rval = leastNode(node.getRight(index), index);\n        }\n        else\n        {\n\n            Node parent = node.getParent(index);\n            Node child  = node;\n\n            while ((parent != null) && (child == parent.getRight(index)))\n            {\n                child  = parent;\n                parent = parent.getParent(index);\n            }\n            rval = parent;\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [7, 9], [3, 10], [6, 11], [6, 12], [6, 13], [8, 14], [8, 15], [2, 16], [6, 17], [11, 18], [6, 19], [16, 20], [18, 21], [18, 22], [13, 23], [19, 24], [11, 25], [11, 26], [21, 27], [22, 28], [24, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 7], [10, 3], [11, 6], [12, 6], [13, 6], [14, 8], [15, 8], [16, 2], [17, 6], [18, 11], [19, 6], [20, 16], [21, 18], [22, 18], [23, 13], [24, 19], [25, 11], [26, 11], [27, 21], [28, 22], [29, 24], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "copyColor", "code": "    private static void copyColor(final Node from, final Node to,\n                                  final int index)\n    {\n        if (to != null)\n        {\n            if (from == null)\n            {\n\n                to.setBlack(index);\n            }\n            else\n            {\n                to.copyColor(from, index);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [8, 9], [6, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 8], [10, 6], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "isRed", "code": "    private static boolean isRed(final Node node, final int index)\n    {\n        return ((node == null) ? false\n                               : node.isRed(index));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isBlack", "code": "    private static boolean isBlack(final Node node, final int index)\n    {\n        return ((node == null) ? true\n                               : node.isBlack(index));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "makeRed", "code": "    private static void makeRed(final Node node, final int index)\n    {\n        if (node != null)\n        {\n            node.setRed(index);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "makeBlack", "code": "    private static void makeBlack(final Node node, final int index)\n    {\n        if (node != null)\n        {\n            node.setBlack(index);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getGrandParent", "code": "    private static Node getGrandParent(final Node node, final int index)\n    {\n        return getParent(getParent(node, index), index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getParent", "code": "    private static Node getParent(final Node node, final int index)\n    {\n        return ((node == null) ? null\n                               : node.getParent(index));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getRightChild", "code": "    private static Node getRightChild(final Node node, final int index)\n    {\n        return (node == null) ? null\n                              : node.getRight(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLeftChild", "code": "    private static Node getLeftChild(final Node node, final int index)\n    {\n        return (node == null) ? null\n                              : node.getLeft(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isLeftChild", "code": "    private static boolean isLeftChild(final Node node, final int index)\n    {\n        return (node == null) ? true\n                              : ((node.getParent(index) == null) ? false\n                                                                 : (node\n                                                                    == node.getParent(\n                                                                        index).getLeft(\n                                                                        index)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [5, 8], [5, 9], [5, 10], [7, 11], [8, 12], [10, 13], [10, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 5], [9, 5], [10, 5], [11, 7], [12, 8], [13, 10], [14, 10], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "isRightChild", "code": "    private static boolean isRightChild(final Node node, final int index)\n    {\n        return (node == null) ? true\n                              : ((node.getParent(index) == null) ? false\n                                                                 : (node\n                                                                    == node.getParent(\n                                                                        index).getRight(\n                                                                        index)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [5, 8], [5, 9], [5, 10], [7, 11], [8, 12], [10, 13], [10, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 5], [9, 5], [10, 5], [11, 7], [12, 8], [13, 10], [14, 10], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "rotateLeft", "code": "    private void rotateLeft(final Node node, final int index)\n    {\n        Node right_child = node.getRight(index);\n\n        node.setRight(right_child.getLeft(index), index);\n        if (right_child.getLeft(index) != null)\n        {\n            right_child.getLeft(index).setParent(node, index);\n        }\n        right_child.setParent(node.getParent(index), index);\n        if (node.getParent(index) == null)\n        {\n\n            _root[ index ] = right_child;\n        }\n        else if (node.getParent(index).getLeft(index) == node)\n        {\n            node.getParent(index).setLeft(right_child, index);\n        }\n        else\n        {\n            node.getParent(index).setRight(right_child, index);\n        }\n        right_child.setLeft(node, index);\n        node.setParent(right_child, index);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [0, 10], [2, 11], [0, 12], [8, 13], [9, 14], [9, 15], [10, 16], [11, 17], [11, 18], [12, 19], [3, 20], [13, 21], [1, 22], [2, 23], [8, 24], [8, 25], [21, 26], [23, 27], [24, 28], [25, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 0], [11, 2], [12, 0], [13, 8], [14, 9], [15, 9], [16, 10], [17, 11], [18, 11], [19, 12], [20, 3], [21, 13], [22, 1], [23, 2], [24, 8], [25, 8], [26, 21], [27, 23], [28, 24], [29, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "rotateRight", "code": "    private void rotateRight(final Node node, final int index)\n    {\n        Node left_child = node.getLeft(index);\n\n        node.setLeft(left_child.getRight(index), index);\n        if (left_child.getRight(index) != null)\n        {\n            left_child.getRight(index).setParent(node, index);\n        }\n        left_child.setParent(node.getParent(index), index);\n        if (node.getParent(index) == null)\n        {\n\n            _root[ index ] = left_child;\n        }\n        else if (node.getParent(index).getRight(index) == node)\n        {\n            node.getParent(index).setRight(left_child, index);\n        }\n        else\n        {\n            node.getParent(index).setLeft(left_child, index);\n        }\n        left_child.setRight(node, index);\n        node.setParent(left_child, index);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [0, 10], [2, 11], [0, 12], [8, 13], [9, 14], [9, 15], [10, 16], [11, 17], [11, 18], [12, 19], [3, 20], [13, 21], [1, 22], [2, 23], [8, 24], [8, 25], [21, 26], [23, 27], [24, 28], [25, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 0], [11, 2], [12, 0], [13, 8], [14, 9], [15, 9], [16, 10], [17, 11], [18, 11], [19, 12], [20, 3], [21, 13], [22, 1], [23, 2], [24, 8], [25, 8], [26, 21], [27, 23], [28, 24], [29, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "doRedBlackInsert", "code": "    private void doRedBlackInsert(final Node inserted_node, final int index)\n    {\n        Node current_node = inserted_node;\n\n        makeRed(current_node, index);\n        while ((current_node != null) && (current_node != _root[ index ])\n                && (isRed(current_node.getParent(index), index)))\n        {\n            if (isLeftChild(getParent(current_node, index), index))\n            {\n                Node y = getRightChild(getGrandParent(current_node, index),\n                                       index);\n\n                if (isRed(y, index))\n                {\n                    makeBlack(getParent(current_node, index), index);\n                    makeBlack(y, index);\n                    makeRed(getGrandParent(current_node, index), index);\n                    current_node = getGrandParent(current_node, index);\n                }\n                else\n                {\n                    if (isRightChild(current_node, index))\n                    {\n                        current_node = getParent(current_node, index);\n                        rotateLeft(current_node, index);\n                    }\n                    makeBlack(getParent(current_node, index), index);\n                    makeRed(getGrandParent(current_node, index), index);\n                    if (getGrandParent(current_node, index) != null)\n                    {\n                        rotateRight(getGrandParent(current_node, index),\n                                    index);\n                    }\n                }\n            }\n            else\n            {\n\n                Node y = getLeftChild(getGrandParent(current_node, index),\n                                      index);\n\n                if (isRed(y, index))\n                {\n                    makeBlack(getParent(current_node, index), index);\n                    makeBlack(y, index);\n                    makeRed(getGrandParent(current_node, index), index);\n                    current_node = getGrandParent(current_node, index);\n                }\n                else\n                {\n                    if (isLeftChild(current_node, index))\n                    {\n                        current_node = getParent(current_node, index);\n                        rotateRight(current_node, index);\n                    }\n                    makeBlack(getParent(current_node, index), index);\n                    makeRed(getGrandParent(current_node, index), index);\n                    if (getGrandParent(current_node, index) != null)\n                    {\n                        rotateLeft(getGrandParent(current_node, index),\n                                   index);\n                    }\n                }\n            }\n        }\n        makeBlack(_root[ index ], index);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "CALL", "IF", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [1, 8], [6, 9], [6, 10], [8, 11], [9, 12], [10, 13], [10, 14], [8, 15], [8, 16], [8, 17], [8, 18], [11, 19], [14, 20], [15, 21], [17, 22], [15, 23], [15, 24], [16, 25], [17, 26], [17, 27], [18, 28], [23, 29], [15, 30], [15, 31], [24, 32], [15, 33], [15, 34], [15, 35], [15, 36], [25, 37], [26, 38], [17, 39], [17, 40], [27, 41], [17, 42], [17, 43], [17, 44], [17, 45], [28, 46], [29, 47], [29, 48], [30, 49], [31, 50], [33, 51], [34, 52], [36, 53], [38, 54], [38, 55], [39, 56], [40, 57], [42, 58], [43, 59], [45, 60], [23, 61], [24, 62], [24, 63], [26, 64], [27, 65], [27, 66], [61, 67], [63, 68], [64, 69], [66, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 1], [9, 6], [10, 6], [11, 8], [12, 9], [13, 10], [14, 10], [15, 8], [16, 8], [17, 8], [18, 8], [19, 11], [20, 14], [21, 15], [22, 17], [23, 15], [24, 15], [25, 16], [26, 17], [27, 17], [28, 18], [29, 23], [30, 15], [31, 15], [32, 24], [33, 15], [34, 15], [35, 15], [36, 15], [37, 25], [38, 26], [39, 17], [40, 17], [41, 27], [42, 17], [43, 17], [44, 17], [45, 17], [46, 28], [47, 29], [48, 29], [49, 30], [50, 31], [51, 33], [52, 34], [53, 36], [54, 38], [55, 38], [56, 39], [57, 40], [58, 42], [59, 43], [60, 45], [61, 23], [62, 24], [63, 24], [64, 26], [65, 27], [66, 27], [67, 61], [68, 63], [69, 64], [70, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "doRedBlackDelete", "code": "    private void doRedBlackDelete(final Node deleted_node)\n    {\n        for (int index = _MINIMUM_INDEX; index < _INDEX_COUNT; index++)\n        {\n\n            if ((deleted_node.getLeft(index) != null)\n                    && (deleted_node.getRight(index) != null))\n            {\n                swapPosition(nextGreater(deleted_node, index), deleted_node,\n                             index);\n            }\n            Node replacement = ((deleted_node.getLeft(index) != null)\n                                ? deleted_node.getLeft(index)\n                                : deleted_node.getRight(index));\n\n            if (replacement != null)\n            {\n                replacement.setParent(deleted_node.getParent(index), index);\n                if (deleted_node.getParent(index) == null)\n                {\n                    _root[ index ] = replacement;\n                }\n                else if (deleted_node\n                         == deleted_node.getParent(index).getLeft(index))\n                {\n                    deleted_node.getParent(index).setLeft(replacement, index);\n                }\n                else\n                {\n                    deleted_node.getParent(index).setRight(replacement,\n                                           index);\n                }\n                deleted_node.setLeft(null, index);\n                deleted_node.setRight(null, index);\n                deleted_node.setParent(null, index);\n                if (isBlack(deleted_node, index))\n                {\n                    doRedBlackDeleteFixup(replacement, index);\n                }\n            }\n            else\n            {\n\n                if (deleted_node.getParent(index) == null)\n                {\n\n                    _root[ index ] = null;\n                }\n                else\n                {\n\n                    if (isBlack(deleted_node, index))\n                    {\n                        doRedBlackDeleteFixup(deleted_node, index);\n                    }\n                    if (deleted_node.getParent(index) != null)\n                    {\n                        if (deleted_node\n                                == deleted_node.getParent(index)\n                                    .getLeft(index))\n                        {\n                            deleted_node.getParent(index).setLeft(null,\n                                                   index);\n                        }\n                        else\n                        {\n                            deleted_node.getParent(index).setRight(null,\n                                                   index);\n                        }\n                        deleted_node.setParent(null, index);\n                    }\n                }\n            }\n        }\n        shrink();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [7, 9], [5, 10], [5, 11], [5, 12], [8, 13], [6, 14], [9, 15], [9, 16], [10, 17], [11, 18], [5, 19], [5, 20], [5, 21], [12, 22], [12, 23], [5, 24], [14, 25], [14, 26], [14, 27], [7, 28], [15, 29], [15, 30], [16, 31], [16, 32], [10, 33], [10, 34], [17, 35], [17, 36], [19, 37], [20, 38], [21, 39], [22, 40], [23, 41], [23, 42], [24, 43], [27, 44], [27, 45], [28, 46], [33, 47], [34, 48], [10, 49], [11, 50], [40, 51], [12, 52], [33, 53], [47, 54], [47, 55], [49, 56], [22, 57], [22, 58], [51, 59], [33, 60], [53, 61], [34, 62], [57, 63], [58, 64], [60, 65], [61, 66], [53, 67], [53, 68], [66, 69], [67, 70], [68, 71], [70, 72], [71, 73], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [9, 7], [10, 5], [11, 5], [12, 5], [13, 8], [14, 6], [15, 9], [16, 9], [17, 10], [18, 11], [19, 5], [20, 5], [21, 5], [22, 12], [23, 12], [24, 5], [25, 14], [26, 14], [27, 14], [28, 7], [29, 15], [30, 15], [31, 16], [32, 16], [33, 10], [34, 10], [35, 17], [36, 17], [37, 19], [38, 20], [39, 21], [40, 22], [41, 23], [42, 23], [43, 24], [44, 27], [45, 27], [46, 28], [47, 33], [48, 34], [49, 10], [50, 11], [51, 40], [52, 12], [53, 33], [54, 47], [55, 47], [56, 49], [57, 22], [58, 22], [59, 51], [60, 33], [61, 53], [62, 34], [63, 57], [64, 58], [65, 60], [66, 61], [67, 53], [68, 53], [69, 66], [70, 67], [71, 68], [72, 70], [73, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "doRedBlackDeleteFixup", "code": "    private void doRedBlackDeleteFixup(final Node replacement_node,\n                                       final int index)\n    {\n        Node current_node = replacement_node;\n\n        while ((current_node != _root[ index ])\n                && (isBlack(current_node, index)))\n        {\n            if (isLeftChild(current_node, index))\n            {\n                Node sibling_node =\n                    getRightChild(getParent(current_node, index), index);\n\n                if (isRed(sibling_node, index))\n                {\n                    makeBlack(sibling_node, index);\n                    makeRed(getParent(current_node, index), index);\n                    rotateLeft(getParent(current_node, index), index);\n                    sibling_node =\n                        getRightChild(getParent(current_node, index), index);\n                }\n                if (isBlack(getLeftChild(sibling_node, index), index)\n                        && isBlack(getRightChild(sibling_node, index), index))\n                {\n                    makeRed(sibling_node, index);\n                    current_node = getParent(current_node, index);\n                }\n                else\n                {\n                    if (isBlack(getRightChild(sibling_node, index), index))\n                    {\n                        makeBlack(getLeftChild(sibling_node, index), index);\n                        makeRed(sibling_node, index);\n                        rotateRight(sibling_node, index);\n                        sibling_node =\n                            getRightChild(getParent(current_node, index),\n                                          index);\n                    }\n                    copyColor(getParent(current_node, index), sibling_node,\n                              index);\n                    makeBlack(getParent(current_node, index), index);\n                    makeBlack(getRightChild(sibling_node, index), index);\n                    rotateLeft(getParent(current_node, index), index);\n                    current_node = _root[ index ];\n                }\n            }\n            else\n            {\n                Node sibling_node =\n                    getLeftChild(getParent(current_node, index), index);\n\n                if (isRed(sibling_node, index))\n                {\n                    makeBlack(sibling_node, index);\n                    makeRed(getParent(current_node, index), index);\n                    rotateRight(getParent(current_node, index), index);\n                    sibling_node =\n                        getLeftChild(getParent(current_node, index), index);\n                }\n                if (isBlack(getRightChild(sibling_node, index), index)\n                        && isBlack(getLeftChild(sibling_node, index), index))\n                {\n                    makeRed(sibling_node, index);\n                    current_node = getParent(current_node, index);\n                }\n                else\n                {\n                    if (isBlack(getLeftChild(sibling_node, index), index))\n                    {\n                        makeBlack(getRightChild(sibling_node, index), index);\n                        makeRed(sibling_node, index);\n                        rotateLeft(sibling_node, index);\n                        sibling_node =\n                            getLeftChild(getParent(current_node, index),\n                                         index);\n                    }\n                    copyColor(getParent(current_node, index), sibling_node,\n                              index);\n                    makeBlack(getParent(current_node, index), index);\n                    makeBlack(getLeftChild(sibling_node, index), index);\n                    rotateRight(getParent(current_node, index), index);\n                    current_node = _root[ index ];\n                }\n            }\n        }\n        makeBlack(current_node, index);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [11, 17], [12, 18], [14, 19], [15, 20], [11, 21], [17, 22], [17, 23], [13, 24], [14, 25], [19, 26], [19, 27], [16, 28], [11, 29], [11, 30], [11, 31], [11, 32], [11, 33], [21, 34], [11, 35], [11, 36], [22, 37], [23, 38], [12, 39], [12, 40], [12, 41], [12, 42], [24, 43], [14, 44], [14, 45], [14, 46], [14, 47], [14, 48], [25, 49], [14, 50], [14, 51], [26, 52], [27, 53], [15, 54], [15, 55], [15, 56], [15, 57], [28, 58], [30, 59], [31, 60], [32, 61], [33, 62], [34, 63], [35, 64], [39, 65], [40, 66], [41, 67], [45, 68], [46, 69], [47, 70], [48, 71], [49, 72], [50, 73], [54, 74], [55, 75], [56, 76], [21, 77], [21, 78], [21, 79], [21, 80], [65, 81], [25, 82], [25, 83], [25, 84], [25, 85], [74, 86], [77, 87], [80, 88], [82, 89], [85, 90], [87, 91], [89, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 7], [11, 7], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 11], [18, 12], [19, 14], [20, 15], [21, 11], [22, 17], [23, 17], [24, 13], [25, 14], [26, 19], [27, 19], [28, 16], [29, 11], [30, 11], [31, 11], [32, 11], [33, 11], [34, 21], [35, 11], [36, 11], [37, 22], [38, 23], [39, 12], [40, 12], [41, 12], [42, 12], [43, 24], [44, 14], [45, 14], [46, 14], [47, 14], [48, 14], [49, 25], [50, 14], [51, 14], [52, 26], [53, 27], [54, 15], [55, 15], [56, 15], [57, 15], [58, 28], [59, 30], [60, 31], [61, 32], [62, 33], [63, 34], [64, 35], [65, 39], [66, 40], [67, 41], [68, 45], [69, 46], [70, 47], [71, 48], [72, 49], [73, 50], [74, 54], [75, 55], [76, 56], [77, 21], [78, 21], [79, 21], [80, 21], [81, 65], [82, 25], [83, 25], [84, 25], [85, 25], [86, 74], [87, 77], [88, 80], [89, 82], [90, 85], [91, 87], [92, 89], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "swapPosition", "code": "    private void swapPosition(final Node x, final Node y, final int index)\n    {\n\n        Node    x_old_parent      = x.getParent(index);\n        Node    x_old_left_child  = x.getLeft(index);\n        Node    x_old_right_child = x.getRight(index);\n        Node    y_old_parent      = y.getParent(index);\n        Node    y_old_left_child  = y.getLeft(index);\n        Node    y_old_right_child = y.getRight(index);\n        boolean x_was_left_child  =\n            (x.getParent(index) != null)\n            && (x == x.getParent(index).getLeft(index));\n        boolean y_was_left_child  =\n            (y.getParent(index) != null)\n            && (y == y.getParent(index).getLeft(index));\n\n        if (x == y_old_parent){\n            x.setParent(y, index);\n            if (y_was_left_child)\n            {\n                y.setLeft(x, index);\n                y.setRight(x_old_right_child, index);\n            }\n            else\n            {\n                y.setRight(x, index);\n                y.setLeft(x_old_left_child, index);\n            }\n        }\n        else\n        {\n            x.setParent(y_old_parent, index);\n            if (y_old_parent != null)\n            {\n                if (y_was_left_child)\n                {\n                    y_old_parent.setLeft(x, index);\n                }\n                else\n                {\n                    y_old_parent.setRight(x, index);\n                }\n            }\n            y.setLeft(x_old_left_child, index);\n            y.setRight(x_old_right_child, index);\n        }\n        if (y == x_old_parent){\n            y.setParent(x, index);\n            if (x_was_left_child)\n            {\n                x.setLeft(y, index);\n                x.setRight(y_old_right_child, index);\n            }\n            else\n            {\n                x.setRight(y, index);\n                x.setLeft(y_old_left_child, index);\n            }\n        }\n        else\n        {\n            y.setParent(x_old_parent, index);\n            if (x_old_parent != null)\n            {\n                if (x_was_left_child)\n                {\n                    x_old_parent.setLeft(y, index);\n                }\n                else\n                {\n                    x_old_parent.setRight(y, index);\n                }\n            }\n            x.setLeft(y_old_left_child, index);\n            x.setRight(y_old_right_child, index);\n        }\n\n        if (x.getLeft(index) != null)\n        {\n            x.getLeft(index).setParent(x, index);\n        }\n        if (x.getRight(index) != null)\n        {\n            x.getRight(index).setParent(x, index);\n        }\n        if (y.getLeft(index) != null)\n        {\n            y.getLeft(index).setParent(y, index);\n        }\n        if (y.getRight(index) != null)\n        {\n            y.getRight(index).setParent(y, index);\n        }\n        x.swapColors(y, index);\n\n        if (_root[ index ] == x)\n        {\n            _root[ index ] = y;\n        }\n        else if (_root[ index ] == y)\n        {\n            _root[ index ] = x;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 19], [1, 20], [0, 21], [2, 22], [3, 23], [4, 24], [5, 25], [6, 26], [7, 27], [19, 28], [22, 29], [22, 30], [23, 31], [23, 32], [24, 33], [24, 34], [25, 35], [25, 36], [6, 37], [6, 38], [7, 39], [7, 40], [8, 41], [9, 42], [10, 43], [11, 44], [12, 45], [13, 46], [14, 47], [15, 48], [1, 49], [2, 50], [3, 51], [4, 52], [5, 53], [6, 54], [6, 55], [37, 56], [6, 57], [6, 58], [7, 59], [7, 60], [39, 61], [7, 62], [7, 63], [41, 64], [41, 65], [42, 66], [42, 67], [19, 68], [50, 69], [51, 70], [52, 71], [53, 72], [37, 73], [56, 74], [39, 75], [61, 76], [64, 77], [65, 78], [65, 79], [66, 80], [67, 81], [67, 82], [38, 83], [38, 84], [38, 85], [38, 86], [40, 87], [40, 88], [40, 89], [40, 90], [77, 91], [80, 92], [73, 93], [73, 94], [75, 95], [75, 96], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 1], [20, 1], [21, 0], [22, 2], [23, 3], [24, 4], [25, 5], [26, 6], [27, 7], [28, 19], [29, 22], [30, 22], [31, 23], [32, 23], [33, 24], [34, 24], [35, 25], [36, 25], [37, 6], [38, 6], [39, 7], [40, 7], [41, 8], [42, 9], [43, 10], [44, 11], [45, 12], [46, 13], [47, 14], [48, 15], [49, 1], [50, 2], [51, 3], [52, 4], [53, 5], [54, 6], [55, 6], [56, 37], [57, 6], [58, 6], [59, 7], [60, 7], [61, 39], [62, 7], [63, 7], [64, 41], [65, 41], [66, 42], [67, 42], [68, 19], [69, 50], [70, 51], [71, 52], [72, 53], [73, 37], [74, 56], [75, 39], [76, 61], [77, 64], [78, 65], [79, 65], [80, 66], [81, 67], [82, 67], [83, 38], [84, 38], [85, 38], [86, 38], [87, 40], [88, 40], [89, 40], [90, 40], [91, 77], [92, 80], [93, 73], [94, 73], [95, 75], [96, 75], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96]]}, {"function_name": "checkNonNullComparable", "code": "    private static void checkNonNullComparable(final Object o,\n                                               final int index)\n    {\n        if (o == null)\n        {\n            throw new NullPointerException(_data_name[ index ]\n                                           + \" cannot be null\");\n        }\n        if (!(o instanceof Comparable))\n        {\n            throw new ClassCastException(_data_name[ index ]\n                                         + \" must be Comparable\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [6, 9], [7, 10], [8, 11], [10, 12], [11, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 6], [10, 7], [11, 8], [12, 10], [13, 11], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "checkKey", "code": "    private static void checkKey(final Object key)\n    {\n        checkNonNullComparable(key, _KEY);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "checkValue", "code": "    private static void checkValue(final Object value)\n    {\n        checkNonNullComparable(value, _VALUE);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "checkKeyAndValue", "code": "    private static void checkKeyAndValue(final Object key, final Object value)\n    {\n        checkKey(key);\n        checkValue(value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "modify", "code": "    private void modify()\n    {\n        _modifications++;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "grow", "code": "    private void grow()\n    {\n        modify();\n        _size++;", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "shrink", "code": "    private void shrink()\n    {\n        modify();\n        _size--;", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "insertValue", "code": "    private void insertValue(final Node newNode)\n        throws IllegalArgumentException\n    {\n        Node node = _root[ _VALUE ];\n\n        while (true)\n        {\n            int cmp = compare(newNode.getData(_VALUE), node.getData(_VALUE));\n\n            if (cmp == 0)\n            {\n                throw new IllegalArgumentException(\n                    \"Cannot store a duplicate value (\\\"\"\n                    + newNode.getData(_VALUE) + \"\\\") in this Map\");\n            }\n            else if (cmp < 0)\n            {\n                if (node.getLeft(_VALUE) != null)\n                {\n                    node = node.getLeft(_VALUE);\n                }\n                else\n                {\n                    node.setLeft(newNode, _VALUE);\n                    newNode.setParent(node, _VALUE);\n                    doRedBlackInsert(newNode, _VALUE);\n                    break;\n                }\n            }\n            else{\n                if (node.getRight(_VALUE) != null)\n                {\n                    node = node.getRight(_VALUE);\n                }\n                else\n                {\n                    node.setRight(newNode, _VALUE);\n                    newNode.setParent(node, _VALUE);\n                    doRedBlackInsert(newNode, _VALUE);\n                    break;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [5, 8], [7, 9], [5, 10], [8, 11], [6, 12], [7, 13], [7, 14], [9, 15], [10, 16], [12, 17], [12, 18], [13, 19], [14, 20], [16, 21], [13, 22], [19, 23], [19, 24], [14, 25], [20, 26], [20, 27], [21, 28], [21, 29], [13, 30], [13, 31], [13, 32], [13, 33], [14, 34], [14, 35], [14, 36], [14, 37], [29, 38], [29, 39], [33, 40], [37, 41], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 5], [9, 7], [10, 5], [11, 8], [12, 6], [13, 7], [14, 7], [15, 9], [16, 10], [17, 12], [18, 12], [19, 13], [20, 14], [21, 16], [22, 13], [23, 19], [24, 19], [25, 14], [26, 20], [27, 20], [28, 21], [29, 21], [30, 13], [31, 13], [32, 13], [33, 13], [34, 14], [35, 14], [36, 14], [37, 14], [38, 29], [39, 29], [40, 33], [41, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "size", "code": "    public int size()\n    {\n        return _size;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "containsKey", "code": "    public boolean containsKey(final Object key)\n        throws ClassCastException, NullPointerException\n    {\n        checkKey(key);\n        return lookup(( Comparable ) key, _KEY) != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "containsValue", "code": "    public boolean containsValue(final Object value)\n    {\n        checkValue(value);\n        return lookup(( Comparable ) value, _VALUE) != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "get", "code": "    public Object get(final Object key)\n        throws ClassCastException, NullPointerException\n    {\n        return doGet(( Comparable ) key, _KEY);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "put", "code": "    public Object put(final Object key, final Object value)\n        throws ClassCastException, NullPointerException,\n                IllegalArgumentException\n    {\n        checkKeyAndValue(key, value);\n        Node node = _root[ _KEY ];\n\n        if (node == null)\n        {\n            Node root = new Node(( Comparable ) key, ( Comparable ) value);\n\n            _root[ _KEY ]   = root;\n            _root[ _VALUE ] = root;\n            grow();\n        }\n        else\n        {\n            while (true)\n            {\n                int cmp = compare(( Comparable ) key, node.getData(_KEY));\n\n                if (cmp == 0)\n                {\n                    throw new IllegalArgumentException(\n                        \"Cannot store a duplicate key (\\\"\" + key\n                        + \"\\\") in this Map\");\n                }\n                else if (cmp < 0)\n                {\n                    if (node.getLeft(_KEY) != null)\n                    {\n                        node = node.getLeft(_KEY);\n                    }\n                    else\n                    {\n                        Node newNode = new Node(( Comparable ) key,\n                                                ( Comparable ) value);\n\n                        insertValue(newNode);\n                        node.setLeft(newNode, _KEY);\n                        newNode.setParent(node, _KEY);\n                        doRedBlackInsert(newNode, _KEY);\n                        grow();\n                        break;\n                    }\n                }\n                else{\n                    if (node.getRight(_KEY) != null)\n                    {\n                        node = node.getRight(_KEY);\n                    }\n                    else\n                    {\n                        Node newNode = new Node(( Comparable ) key,\n                                                ( Comparable ) value);\n\n                        insertValue(newNode);\n                        node.setRight(newNode, _KEY);\n                        newNode.setParent(node, _KEY);\n                        doRedBlackInsert(newNode, _KEY);\n                        grow();\n                        break;\n                    }\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [2, 9], [2, 10], [7, 11], [9, 12], [2, 13], [2, 14], [2, 15], [9, 16], [9, 17], [10, 18], [16, 19], [16, 20], [19, 21], [16, 22], [20, 23], [17, 24], [19, 25], [19, 26], [21, 27], [22, 28], [24, 29], [25, 30], [26, 31], [28, 32], [25, 33], [25, 34], [30, 35], [30, 36], [26, 37], [26, 38], [31, 39], [31, 40], [32, 41], [32, 42], [25, 43], [25, 44], [25, 45], [25, 46], [25, 47], [25, 48], [26, 49], [26, 50], [26, 51], [26, 52], [26, 53], [26, 54], [42, 55], [34, 56], [48, 57], [38, 58], [54, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 2], [10, 2], [11, 7], [12, 9], [13, 2], [14, 2], [15, 2], [16, 9], [17, 9], [18, 10], [19, 16], [20, 16], [21, 19], [22, 16], [23, 20], [24, 17], [25, 19], [26, 19], [27, 21], [28, 22], [29, 24], [30, 25], [31, 26], [32, 28], [33, 25], [34, 25], [35, 30], [36, 30], [37, 26], [38, 26], [39, 31], [40, 31], [41, 32], [42, 32], [43, 25], [44, 25], [45, 25], [46, 25], [47, 25], [48, 25], [49, 26], [50, 26], [51, 26], [52, 26], [53, 26], [54, 26], [55, 42], [56, 34], [57, 48], [58, 38], [59, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "remove", "code": "    public Object remove(final Object key)\n    {\n        return doRemove(( Comparable ) key, _KEY);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "clear", "code": "    public void clear()\n    {\n        modify();\n        _size           = 0;\n        _root[ _KEY ]   = null;\n        _root[ _VALUE ] = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "keySet", "code": "    public Set keySet()\n    {\n        if (_key_set[ _KEY ] == null)\n        {\n            _key_set[ _KEY ] = new AbstractSet()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_KEY)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node.getData(_KEY);\n                        }\n                    };\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public boolean contains(Object o)\n                {\n                    return containsKey(o);\n                }\n\n                public boolean remove(Object o)\n                {\n                    int old_size = _size;\n\n                    BinaryTree.this.remove(o);\n                    return _size != old_size;\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _key_set[ _KEY ];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "RETURN", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [8, 12], [8, 13], [8, 14], [9, 15], [9, 16], [10, 17], [11, 18], [12, 19], [15, 20], [18, 21], [7, 22], [8, 23], [17, 24], [21, 25], [25, 26], [26, 27], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 6], [9, 6], [10, 6], [11, 6], [12, 8], [13, 8], [14, 8], [15, 9], [16, 9], [17, 10], [18, 11], [19, 12], [20, 15], [21, 18], [22, 7], [23, 8], [24, 17], [25, 21], [26, 25], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "values", "code": "    public Collection values()\n    {\n        if (_value_collection[ _KEY ] == null)\n        {\n            _value_collection[ _KEY ] = new AbstractCollection()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_KEY)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node.getData(_VALUE);\n                        }\n                    };\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public boolean contains(Object o)\n                {\n                    return containsValue(o);\n                }\n\n                public boolean remove(Object o)\n                {\n                    int old_size = _size;\n\n                    removeValue(o);\n                    return _size != old_size;\n                }\n\n                public boolean removeAll(Collection c)\n                {\n                    boolean  modified = false;\n                    Iterator iter     = c.iterator();\n\n                    while (iter.hasNext())\n                    {\n                        if (removeValue(iter.next()) != null)\n                        {\n                            modified = true;\n                        }\n                    }\n                    return modified;\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _value_collection[ _KEY ];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "VAR_DECL", "PARAM", "RETURN", "PARAM", "RETURN", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [9, 18], [9, 19], [9, 20], [10, 21], [10, 22], [11, 23], [12, 24], [14, 25], [18, 26], [9, 27], [21, 28], [24, 29], [7, 30], [14, 31], [15, 32], [16, 33], [23, 34], [29, 35], [31, 36], [35, 37], [36, 38], [36, 39], [37, 40], [31, 41], [39, 42], [41, 43], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 6], [9, 6], [10, 6], [11, 6], [12, 6], [13, 8], [14, 8], [15, 8], [16, 8], [17, 8], [18, 9], [19, 9], [20, 9], [21, 10], [22, 10], [23, 11], [24, 12], [25, 14], [26, 18], [27, 9], [28, 21], [29, 24], [30, 7], [31, 14], [32, 15], [33, 16], [34, 23], [35, 29], [36, 31], [37, 35], [38, 36], [39, 36], [40, 37], [41, 31], [42, 39], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "entrySet", "code": "    public Set entrySet()\n    {\n        if (_entry_set[ _KEY ] == null)\n        {\n            _entry_set[ _KEY ] = new AbstractSet()\n            {\n                public Iterator iterator()\n                {\n                    return new BinaryTreeIterator(_KEY)\n                    {\n                        protected Object doGetNext()\n                        {\n                            return _last_returned_node;\n                        }\n                    };\n                }\n\n                public boolean contains(Object o)\n                {\n                    if (!(o instanceof Map.Entry))\n                    {\n                        return false;\n                    }\n                    Map.Entry entry = ( Map.Entry ) o;\n                    Object    value = entry.getValue();\n                    Node      node  = lookup(( Comparable ) entry.getKey(),\n                                             _KEY);\n\n                    return (node != null)\n                           && node.getData(_VALUE).equals(value);\n                }\n\n                public boolean remove(Object o)\n                {\n                    if (!(o instanceof Map.Entry))\n                    {\n                        return false;\n                    }\n                    Map.Entry entry = ( Map.Entry ) o;\n                    Object    value = entry.getValue();\n                    Node      node  = lookup(( Comparable ) entry.getKey(),\n                                             _KEY);\n\n                    if ((node != null) && node.getData(_VALUE).equals(value))\n                    {\n                        doRedBlackDelete(node);\n                        return true;\n                    }\n                    return false;\n                }\n\n                public int size()\n                {\n                    return BinaryTree.this.size();\n                }\n\n                public void clear()\n                {\n                    BinaryTree.this.clear();\n                }\n            };\n        }\n        return _entry_set[ _KEY ];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [8, 12], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [10, 25], [11, 26], [13, 27], [14, 28], [18, 29], [20, 30], [24, 31], [26, 32], [7, 33], [12, 34], [14, 35], [28, 36], [28, 37], [15, 38], [16, 39], [18, 40], [30, 41], [30, 42], [21, 43], [22, 44], [24, 45], [32, 46], [35, 47], [14, 48], [36, 49], [37, 50], [40, 51], [41, 52], [42, 53], [45, 54], [46, 55], [38, 56], [43, 57], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 6], [9, 6], [10, 6], [11, 6], [12, 8], [13, 9], [14, 9], [15, 9], [16, 9], [17, 9], [18, 9], [19, 9], [20, 10], [21, 10], [22, 10], [23, 10], [24, 10], [25, 10], [26, 11], [27, 13], [28, 14], [29, 18], [30, 20], [31, 24], [32, 26], [33, 7], [34, 12], [35, 14], [36, 28], [37, 28], [38, 15], [39, 16], [40, 18], [41, 30], [42, 30], [43, 21], [44, 22], [45, 24], [46, 32], [47, 35], [48, 14], [49, 36], [50, 37], [51, 40], [52, 41], [53, 42], [54, 45], [55, 46], [56, 38], [57, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "BinaryTree", "code": "    public BinaryTree()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "BinaryTree", "code": "    public BinaryTree(final Map map)\n        throws ClassCastException, NullPointerException,\n                IllegalArgumentException\n    {\n        putAll(map);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.5-7127", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/ObjectPool.java", "language": "java", "name": "org.apache.xml.utils.ObjectPool", "code": "public class ObjectPool implements java.io.Serializable\n{\n\n  /** Type of objects in this pool.\n   *  @serial          */\n  private final Class objectType;\n\n  /** Vector of given objects this points to.\n   *  @serial          */\n  private final Vector freeStack;\n\n  /**\n   * Constructor ObjectPool\n   *\n   * @param type Type of objects for this pool\n   */\n  public ObjectPool(Class type)\n  {\n    objectType = type;\n    freeStack = new Vector();\n  }\n  \n  /**\n   * Constructor ObjectPool\n   *\n   * @param className Fully qualified name of the type of objects for this pool.\n   */\n  public ObjectPool(String className)\n  {\n    try\n    {\n      objectType = Class.forName(className);\n    }\n    catch(ClassNotFoundException cnfe)\n    {\n      throw new WrappedRuntimeException(cnfe);\n    }\n    freeStack = new Vector();\n  }\n\n\n  /**\n   * Constructor ObjectPool\n   *\n   *\n   * @param type Type of objects for this pool\n   * @param size Size of vector to allocate\n   */\n  public ObjectPool(Class type, int size)\n  {\n    objectType = type;\n    freeStack = new Vector(size);\n  }\n\n  /**\n   * Constructor ObjectPool\n   *\n   */\n  public ObjectPool()\n  {\n    objectType = null;\n    freeStack = new Vector();\n  }\n\n  /**\n   * Get an instance of the given object in this pool if available\n   *\n   *\n   * @return an instance of the given object if available or null\n   */\n  public synchronized Object getInstanceIfFree()\n  {\n\n    if (!freeStack.isEmpty())\n    {\n\n      Object result = freeStack.lastElement();\n\n      freeStack.setSize(freeStack.size() - 1);\n\n      return result;\n    }\n\n    return null;\n  }\n\n  /**\n   * Get an instance of the given object in this pool \n   *\n   *\n   * @return An instance of the given object\n   */\n  public synchronized Object getInstance()\n  {\n\n    if (freeStack.isEmpty())\n    {\n\n      try\n      {\n        return objectType.newInstance();\n      }\n      catch (InstantiationException ex){}\n      catch (IllegalAccessException ex){}\n\n    }\n    else\n    {\n\n      Object result = freeStack.lastElement();\n\n      freeStack.setSize(freeStack.size() - 1);\n\n      return result;\n    }\n  }\n\n  /**\n   * Add an instance of the given object to the pool  \n   *\n   *\n   * @param obj Object to add.\n   */\n  public synchronized void freeInstance(Object obj)\n  {\n\n    freeStack.addElement(obj);", "functions": [{"function_name": "getInstanceIfFree", "code": "  public synchronized Object getInstanceIfFree()\n  {\n\n    if (!freeStack.isEmpty())\n    {\n\n      Object result = freeStack.lastElement();\n\n      freeStack.setSize(freeStack.size() - 1);\n\n      return result;\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [2, 7], [7, 8], [6, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 2], [8, 7], [9, 6], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getInstance", "code": "  public synchronized Object getInstance()\n  {\n\n    if (freeStack.isEmpty())\n    {\n\n      try\n      {\n        return objectType.newInstance();\n      }\n      catch (InstantiationException ex){}\n      catch (IllegalAccessException ex){}\n\n    }\n    else\n    {\n\n      Object result = freeStack.lastElement();\n\n      freeStack.setSize(freeStack.size() - 1);\n\n      return result;", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "VAR_DECL", "TRY", "CALL", "CATCH", "CATCH", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [5, 7], [5, 8], [5, 9], [6, 10], [4, 11], [9, 12], [10, 13], [10, 14], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 5], [8, 5], [9, 5], [10, 6], [11, 4], [12, 9], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "freeInstance", "code": "  public synchronized void freeInstance(Object obj)\n  {\n\n    freeStack.addElement(obj);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ObjectPool", "code": "  public ObjectPool(Class type)\n  {\n    objectType = type;\n    freeStack = new Vector();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ObjectPool", "code": "  public ObjectPool(String className)\n  {\n    try\n    {\n      objectType = Class.forName(className);\n    }\n    catch(ClassNotFoundException cnfe)\n    {\n      throw new WrappedRuntimeException(cnfe);\n    }\n    freeStack = new Vector();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "ASSIGN", "CATCH", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [4, 6], [1, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 4], [7, 1], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ObjectPool", "code": "  public ObjectPool(Class type, int size)\n  {\n    objectType = type;\n    freeStack = new Vector(size);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ObjectPool", "code": "  public ObjectPool()\n  {\n    objectType = null;\n    freeStack = new Vector();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.6-694", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/util/regexp/RegexpFactory.java", "language": "java", "name": "org.apache.tools.ant.util.regexp.RegexpFactory", "code": "public class RegexpFactory extends RegexpMatcherFactory {\n\n    /** Constructor for RegexpFactory */\n    public RegexpFactory() {\n    }\n\n    /***\n     * Create a new regular expression matcher instance.\n     * @return the matcher instance\n     * @throws BuildException on error\n     */\n    public Regexp newRegexp() throws BuildException {\n        return (Regexp) newRegexp(null);\n    }\n\n    /***\n     * Create a new regular expression matcher instance.\n     *\n     * @param p Project whose ant.regexp.regexpimpl property will be used.\n     * @return the matcher instance\n     * @throws BuildException on error\n     */\n    public Regexp newRegexp(Project p) throws BuildException {\n        String systemDefault = null;\n        if (p == null) {\n            systemDefault = System.getProperty(\"ant.regexp.regexpimpl\");\n        } else {\n            systemDefault = p.getProperty(\"ant.regexp.regexpimpl\");\n        }\n\n        if (systemDefault != null) {\n            return createRegexpInstance(systemDefault);\n        }\n\n        try {\n            testAvailability(\"java.util.regex.Matcher\");\n            return createRegexpInstance(\"org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp\");\n        } catch (BuildException be) {\n        }\n\n        try {\n            testAvailability(\"org.apache.oro.text.regex.Pattern\");\n            return createRegexpInstance(\"org.apache.tools.ant.util.regexp.JakartaOroRegexp\");\n        } catch (BuildException be) {\n        }\n\n        try {\n            testAvailability(\"org.apache.regexp.RE\");\n            return createRegexpInstance(\"org.apache.tools.ant.util.regexp.JakartaRegexpRegexp\");\n        } catch (BuildException be) {\n        }\n\n        throw new BuildException(\"No supported regular expression matcher found\");\n    }\n\n    /**\n     * Wrapper over RegexpMatcherFactory.createInstance that ensures that\n     * we are dealing with a Regexp implementation.\n     *\n     * @since 1.3\n     *\n     * @see RegexpMatcherFactory#createInstance(String)\n     */\n    protected Regexp createRegexpInstance(String classname)\n        throws BuildException {\n\n        RegexpMatcher m = createInstance(classname);\n        if (m instanceof Regexp) {\n            return (Regexp) m;\n        } else {\n            throw new BuildException(classname + \" doesn't implement the Regexp interface\");", "functions": [{"function_name": "newRegexp", "code": "    public Regexp newRegexp() throws BuildException {\n        return (Regexp) newRegexp(null);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "newRegexp", "code": "    public Regexp newRegexp(Project p) throws BuildException {\n        String systemDefault = null;\n        if (p == null) {\n            systemDefault = System.getProperty(\"ant.regexp.regexpimpl\");\n        } else {\n            systemDefault = p.getProperty(\"ant.regexp.regexpimpl\");\n        }\n\n        if (systemDefault != null) {\n            return createRegexpInstance(systemDefault);\n        }\n\n        try {\n            testAvailability(\"java.util.regex.Matcher\");\n            return createRegexpInstance(\"org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp\");\n        } catch (BuildException be) {\n        }\n\n        try {\n            testAvailability(\"org.apache.oro.text.regex.Pattern\");\n            return createRegexpInstance(\"org.apache.tools.ant.util.regexp.JakartaOroRegexp\");\n        } catch (BuildException be) {\n        }\n\n        try {\n            testAvailability(\"org.apache.regexp.RE\");\n            return createRegexpInstance(\"org.apache.tools.ant.util.regexp.JakartaRegexpRegexp\");\n        } catch (BuildException be) {\n        }\n\n        throw new BuildException(\"No supported regular expression matcher found\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "TRY", "TRY", "TRY", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CATCH", "RETURN", "CATCH", "RETURN", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [3, 12], [3, 13], [4, 14], [4, 15], [5, 16], [6, 17], [9, 18], [11, 19], [2, 20], [13, 21], [3, 22], [15, 23], [4, 24], [5, 25], [16, 26], [17, 27], [7, 28], [19, 29], [20, 30], [21, 31], [22, 32], [23, 33], [24, 34], [25, 35], [6, 36], [6, 37], [36, 38], [37, 39], [38, 40], [39, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 3], [13, 3], [14, 4], [15, 4], [16, 5], [17, 6], [18, 9], [19, 11], [20, 2], [21, 13], [22, 3], [23, 15], [24, 4], [25, 5], [26, 16], [27, 17], [28, 7], [29, 19], [30, 20], [31, 21], [32, 22], [33, 23], [34, 24], [35, 25], [36, 6], [37, 6], [38, 36], [39, 37], [40, 38], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "createRegexpInstance", "code": "    protected Regexp createRegexpInstance(String classname)\n        throws BuildException {\n\n        RegexpMatcher m = createInstance(classname);\n        if (m instanceof Regexp) {\n            return (Regexp) m;\n        } else {\n            throw new BuildException(classname + \" doesn't implement the Regexp interface\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "THROW_RAISE", "RETURN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [5, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 5], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "RegexpFactory", "code": "    public RegexpFactory() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.1-4059", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/browser/BrowserIORequest.java", "language": "java", "name": "org.gjt.sp.jedit.browser.BrowserIORequest", "code": "class BrowserIORequest extends WorkRequest\n{\n\t//{{{ Request types\n\t/**\n\t * Directory listing I/O request.\n\t */\n\tpublic static final int LIST_DIRECTORY = 0;\n\n\t/**\n\t * Delete file I/O request.\n\t */\n\tpublic static final int DELETE = 1;\n\n\t/**\n\t * Rename file I/O request.\n\t */\n\tpublic static final int RENAME = 2;\n\n\t/**\n\t * Make directory I/O request.\n\t */\n\tpublic static final int MKDIR = 3;\n\t//}}}\n\n\t//{{{ BrowserIORequest constructor\n\t/**\n\t * Creates a new browser I/O request.\n\t * @param type The request type\n\t * @param browser The VFS browser instance\n\t * @param path1 The first path name to operate on\n\t * @param path2 The second path name to operate on\n\t * @param node Only used for type == LIST_DIRECTORY\n\t * @param loadingRoot Is this the root node?\n\t */\n\tpublic BrowserIORequest(int type, VFSBrowser browser,\n\t\tObject session, VFS vfs, String path1, String path2,\n\t\tDefaultMutableTreeNode node, boolean loadingRoot)\n\t{\n\t\tthis.type = type;\n\t\tthis.browser = browser;\n\t\tthis.session = session;\n\t\tthis.vfs = vfs;\n\t\tthis.path1 = path1;\n\t\tthis.path2 = path2;\n\t\tthis.node = node;\n\t\tthis.loadingRoot = loadingRoot;\n\t} //}}}\n\n\t//{{{ run() method\n\tpublic void run()\n\t{\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\tlistDirectory();\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\tdelete();\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\trename();\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\tmkdir();\n\t\t\tbreak;\n\t\t}\n\n\t\tif(type != LIST_DIRECTORY)\n\t\t\tbrowser.endRequest();\n\t} //}}}\n\n\t//{{{ toString() method\n\tpublic String toString()\n\t{\n\t\tString typeString;\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\ttypeString = \"LIST_DIRECTORY\";\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\ttypeString = \"DELETE\";\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\ttypeString = \"RENAME\";\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\ttypeString = \"MKDIR\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttypeString = \"UNKNOWN!!!\";\n\t\t\tbreak;\n\t\t}\n\n\t\treturn getClass().getName() + \"[type=\" + typeString\n\t\t\t+ \",vfs=\" + vfs + \",path1=\" + path1\n\t\t\t+ \",path2=\" + path2 + \"]\";\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate int type;\n\tprivate VFSBrowser browser;\n\tprivate Object session;\n\tprivate VFS vfs;\n\tprivate String path1;\n\tprivate String path2;\n\tprivate DefaultMutableTreeNode node;\n\tprivate boolean loadingRoot;\n\t//}}}\n\n\t//{{{ listDirectory() method\n\tprivate void listDirectory()\n\t{\n\t\tVFS.DirectoryEntry[] directory = null;\n\n\t\tString[] args = { path1 };\n\t\tsetStatus(jEdit.getProperty(\"vfs.status.listing-directory\",args));\n\n\t\tString canonPath = path1;\n\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\n\t\t\tcanonPath = vfs._canonPath(session,path1,browser);\n\t\t\tdirectory = vfs._listDirectory(session,canonPath,browser);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tsetAbortable(false);\n\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\tString[] pp = { io.toString() };\n\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\n\t\tsetAbortable(false);\n\n\t\tbrowser.directoryLoaded(node,loadingRoot,canonPath,directory);\n\t} //}}}\n\n\t//{{{ delete() method\n\tprivate void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.deleting\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\n\t\t\t\tif(!vfs._delete(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.delete-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ rename() method\n\tprivate void rename()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1, path2 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.renaming\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\t\t\t\tpath2 = vfs._canonPath(session,path2,browser);\n\n\t\t\t\tVFS.DirectoryEntry file = vfs._getDirectoryEntry(\n\t\t\t\t\tsession,path2,browser);\n\t\t\t\tif(file != null)\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.rename-exists\",\n\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!vfs._rename(session,path1,path2,browser))\n\t\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.rename-error\",\n\t\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ mkdir() method\n\tprivate void mkdir()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.mkdir\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\t\t\t\tif(!vfs._mkdir(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.mkdir-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\targs[0] = io.toString();\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] args = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);", "functions": [{"function_name": "run", "code": "\tpublic void run()\n\t{\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\tlistDirectory();\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\tdelete();\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\trename();\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\tmkdir();\n\t\t\tbreak;\n\t\t}\n\n\t\tif(type != LIST_DIRECTORY)\n\t\t\tbrowser.endRequest();", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\tString typeString;\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\ttypeString = \"LIST_DIRECTORY\";\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\ttypeString = \"DELETE\";\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\ttypeString = \"RENAME\";\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\ttypeString = \"MKDIR\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttypeString = \"UNKNOWN!!!\";\n\t\t\tbreak;\n\t\t}\n\n\t\treturn getClass().getName() + \"[type=\" + typeString\n\t\t\t+ \",vfs=\" + vfs + \",path1=\" + path1\n\t\t\t+ \",path2=\" + path2 + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [12, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [19, 25], [25, 26], [25, 27], [27, 28], [28, 29], [28, 30], [30, 31], [31, 32], [31, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 12], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 19], [26, 25], [27, 25], [28, 27], [29, 28], [30, 28], [31, 30], [32, 31], [33, 31], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "listDirectory", "code": "\tprivate void listDirectory()\n\t{\n\t\tVFS.DirectoryEntry[] directory = null;\n\n\t\tString[] args = { path1 };\n\t\tsetStatus(jEdit.getProperty(\"vfs.status.listing-directory\",args));\n\n\t\tString canonPath = path1;\n\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\n\t\t\tcanonPath = vfs._canonPath(session,path1,browser);\n\t\t\tdirectory = vfs._listDirectory(session,canonPath,browser);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tsetAbortable(false);\n\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\tString[] pp = { io.toString() };\n\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\n\t\tsetAbortable(false);\n\n\t\tbrowser.directoryLoaded(node,loadingRoot,canonPath,directory);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "TRY", "CATCH", "CATCH", "CALL", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [0, 10], [6, 11], [7, 12], [9, 13], [1, 14], [1, 15], [1, 16], [10, 17], [4, 18], [12, 19], [7, 20], [9, 21], [9, 22], [9, 23], [14, 24], [15, 25], [16, 26], [17, 27], [12, 28], [12, 29], [12, 30], [21, 31], [23, 32], [28, 33], [30, 34], [13, 35], [19, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 0], [11, 6], [12, 7], [13, 9], [14, 1], [15, 1], [16, 1], [17, 10], [18, 4], [19, 12], [20, 7], [21, 9], [22, 9], [23, 9], [24, 14], [25, 15], [26, 16], [27, 17], [28, 12], [29, 12], [30, 12], [31, 21], [32, 23], [33, 28], [34, 30], [35, 13], [36, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "delete", "code": "\tprivate void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.deleting\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\n\t\t\t\tif(!vfs._delete(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.delete-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "CATCH", "TRY", "VAR_DECL", "CATCH", "CATCH", "IF", "CALL", "CALL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [4, 8], [1, 9], [1, 10], [6, 11], [2, 12], [7, 13], [8, 14], [4, 15], [9, 16], [10, 17], [6, 18], [6, 19], [6, 20], [7, 21], [7, 22], [7, 23], [8, 24], [15, 25], [16, 26], [18, 27], [20, 28], [21, 29], [23, 30], [24, 31], [24, 32], [11, 33], [13, 34], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 4], [9, 1], [10, 1], [11, 6], [12, 2], [13, 7], [14, 8], [15, 4], [16, 9], [17, 10], [18, 6], [19, 6], [20, 6], [21, 7], [22, 7], [23, 7], [24, 8], [25, 15], [26, 16], [27, 18], [28, 20], [29, 21], [30, 23], [31, 24], [32, 24], [33, 11], [34, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "rename", "code": "\tprivate void rename()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1, path2 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.renaming\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\t\t\t\tpath2 = vfs._canonPath(session,path2,browser);\n\n\t\t\t\tVFS.DirectoryEntry file = vfs._getDirectoryEntry(\n\t\t\t\t\tsession,path2,browser);\n\t\t\t\tif(file != null)\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.rename-exists\",\n\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!vfs._rename(session,path1,path2,browser))\n\t\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.rename-error\",\n\t\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "CATCH", "TRY", "VAR_DECL", "CATCH", "CATCH", "IF", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [4, 8], [4, 9], [1, 10], [1, 11], [6, 12], [2, 13], [7, 14], [8, 15], [4, 16], [4, 17], [10, 18], [11, 19], [6, 20], [6, 21], [6, 22], [7, 23], [7, 24], [7, 25], [8, 26], [8, 27], [15, 28], [9, 29], [16, 30], [17, 31], [18, 32], [20, 33], [22, 34], [23, 35], [25, 36], [26, 37], [27, 38], [12, 39], [14, 40], [26, 41], [41, 42], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 4], [9, 4], [10, 1], [11, 1], [12, 6], [13, 2], [14, 7], [15, 8], [16, 4], [17, 4], [18, 10], [19, 11], [20, 6], [21, 6], [22, 6], [23, 7], [24, 7], [25, 7], [26, 8], [27, 8], [28, 15], [29, 9], [30, 16], [31, 17], [32, 18], [33, 20], [34, 22], [35, 23], [36, 25], [37, 26], [38, 27], [39, 12], [40, 14], [41, 26], [42, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "mkdir", "code": "\tprivate void mkdir()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.mkdir\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\t\t\t\tif(!vfs._mkdir(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.mkdir-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\targs[0] = io.toString();\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] args = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "CATCH", "TRY", "VAR_DECL", "CATCH", "CATCH", "IF", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [4, 8], [1, 9], [1, 10], [6, 11], [2, 12], [8, 13], [4, 14], [9, 15], [10, 16], [6, 17], [6, 18], [6, 19], [7, 20], [7, 21], [7, 22], [7, 23], [8, 24], [14, 25], [15, 26], [17, 27], [19, 28], [20, 29], [21, 30], [23, 31], [24, 32], [24, 33], [11, 34], [21, 35], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 4], [9, 1], [10, 1], [11, 6], [12, 2], [13, 8], [14, 4], [15, 9], [16, 10], [17, 6], [18, 6], [19, 6], [20, 7], [21, 7], [22, 7], [23, 7], [24, 8], [25, 14], [26, 15], [27, 17], [28, 19], [29, 20], [30, 21], [31, 23], [32, 24], [33, 24], [34, 11], [35, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "BrowserIORequest", "code": "\tpublic BrowserIORequest(int type, VFSBrowser browser,\n\t\tObject session, VFS vfs, String path1, String path2,\n\t\tDefaultMutableTreeNode node, boolean loadingRoot)\n\t{\n\t\tthis.type = type;\n\t\tthis.browser = browser;\n\t\tthis.session = session;\n\t\tthis.vfs = vfs;\n\t\tthis.path1 = path1;\n\t\tthis.path2 = path2;\n\t\tthis.node = node;\n\t\tthis.loadingRoot = loadingRoot;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 1}
{"sample_id": "ant-1.5-484", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/condition/Socket.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.condition.Socket", "code": "public class Socket extends ProjectComponent implements Condition {\n    private String server = null;\n    private int port = 0;\n\n    public void setServer(String server) {\n        this.server = server;\n    }\n\n    public void setPort(int port) {\n        this.port = port;\n    }\n\n    public boolean eval() throws BuildException {\n        if (server == null) {\n            throw new BuildException(\"No server specified in socket \"\n                                     + \"condition\");\n        }\n        if (port == 0) {\n            throw new BuildException(\"No port specified in socket condition\");\n        }\n        log(\"Checking for listener at \" + server + \":\" + port, \n            Project.MSG_VERBOSE);\n        try {\n            java.net.Socket socket = new java.net.Socket(server, port);\n        } catch (IOException e) {\n            return false;\n        }\n        return true;", "functions": [{"function_name": "setServer", "code": "    public void setServer(String server) {\n        this.server = server;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPort", "code": "    public void setPort(int port) {\n        this.port = port;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "eval", "code": "    public boolean eval() throws BuildException {\n        if (server == null) {\n            throw new BuildException(\"No server specified in socket \"\n                                     + \"condition\");\n        }\n        if (port == 0) {\n            throw new BuildException(\"No port specified in socket condition\");\n        }\n        log(\"Checking for listener at \" + server + \":\" + port, \n            Project.MSG_VERBOSE);\n        try {\n            java.net.Socket socket = new java.net.Socket(server, port);\n        } catch (IOException e) {\n            return false;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "IF", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [0, 8], [3, 9], [4, 10], [6, 11], [8, 12], [3, 13], [9, 14], [4, 15], [10, 16], [11, 17], [7, 18], [12, 19], [13, 20], [15, 21], [19, 22], [19, 23], [20, 24], [21, 25], [23, 26], [25, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 0], [9, 3], [10, 4], [11, 6], [12, 8], [13, 3], [14, 9], [15, 4], [16, 10], [17, 11], [18, 7], [19, 12], [20, 13], [21, 15], [22, 19], [23, 19], [24, 20], [25, 21], [26, 23], [27, 25], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}], "label": 0}
{"sample_id": "camel-1.6-3040", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/converter/stream/StreamCacheConverter.java", "language": "java", "name": "org.apache.camel.converter.stream.StreamCacheConverter", "code": "@Converter\npublic class StreamCacheConverter {\n    private static final transient Log LOG = LogFactory.getLog(StreamCacheConverter.class);\n\n    private XmlConverter converter = new XmlConverter();\n\n    @Converter\n    public StreamCache convertToStreamCache(StreamSource source) throws TransformerException {\n        return new SourceCache(converter.toString(source));\n    }\n    \n    @Converter\n    public StreamCache convertToStreamCache(StringSource source) throws TransformerException {\n        return null;\n    }\n    \n    @Converter\n    public StreamCache convertToStreamCache(BytesSource source) throws TransformerException {\n        return null;\n    }\n    \n    @Converter\n    public StreamCache convertToStreamCache(SAXSource source) throws TransformerException {\n        return new SourceCache(converter.toString(source));\n    }\n\n    @Converter\n    public StreamCache convertToStreamCache(InputStream stream) throws IOException {\n        return new InputStreamCache(IOConverter.toBytes(stream));\n    }\n\n    @Converter\n    public StreamCache convertToStreamCache(Reader reader) throws IOException {\n        return new ReaderCache(IOConverter.toString(reader));\n    }\n\n    /*\n     * {@link StreamCache} implementation for {@link Source}s\n     */\n    private class SourceCache extends StringSource implements StreamCache {\n\n        private static final long serialVersionUID = 4147248494104812945L;\n\n        public SourceCache() {\n        }\n\n        public SourceCache(String text) {\n            super(text);\n        }\n\n        public void reset() {\n        }\n\n    }\n\n    private class InputStreamCache extends ByteArrayInputStream implements StreamCache {\n\n        public InputStreamCache(byte[] data) {\n            super(data);\n        }\n\n    }\n\n    private class ReaderCache extends StringReader implements StreamCache {\n\n        public ReaderCache(String s) {\n            super(s);\n        }\n\n        public void reset() {\n            try {\n                super.reset();\n            } catch (IOException e) {\n                LOG.warn(\"Exception is thrown when resets the ReaderCache\", e);\n            }\n        }\n\n        public void close() {", "functions": [{"function_name": "convertToStreamCache", "code": "    @Converter\n    public StreamCache convertToStreamCache(StreamSource source) throws TransformerException {\n        return new SourceCache(converter.toString(source));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "convertToStreamCache", "code": "    @Converter\n    public StreamCache convertToStreamCache(StringSource source) throws TransformerException {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "convertToStreamCache", "code": "    @Converter\n    public StreamCache convertToStreamCache(BytesSource source) throws TransformerException {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "convertToStreamCache", "code": "    @Converter\n    public StreamCache convertToStreamCache(SAXSource source) throws TransformerException {\n        return new SourceCache(converter.toString(source));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "convertToStreamCache", "code": "    @Converter\n    public StreamCache convertToStreamCache(InputStream stream) throws IOException {\n        return new InputStreamCache(IOConverter.toBytes(stream));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "convertToStreamCache", "code": "    @Converter\n    public StreamCache convertToStreamCache(Reader reader) throws IOException {\n        return new ReaderCache(IOConverter.toString(reader));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.6-7812", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/dom/CachedNodeListIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.CachedNodeListIterator", "code": "public final class CachedNodeListIterator extends DTMAxisIteratorBase {\n\n    /**\n     * Source for this iterator.\n     */\n    private DTMAxisIterator _source;\n    private IntegerArray _nodes = new IntegerArray();\n    private int _numCachedNodes = 0;\n    private int _index = 0;\n    private boolean _isEnded = false;\n\n    public CachedNodeListIterator(DTMAxisIterator source) {\n\t_source = source;\n    }\n\n    public void setRestartable(boolean isRestartable) {\n    }\n\n    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _startNode = node;\n\t    _source.setStartNode(node);\n\t    resetPosition();\n\t    \n\t    _isRestartable = false;\n\t}\n\treturn this;\n    }\n\n    public int next() {\n        return getNode(_index++);\n    }\n    \n    public int getPosition() {\n    \treturn _index == 0 ? 1 : _index;\n    }\n    \n    public int getNodeByPosition(int pos) {\n    \treturn getNode(pos);\n    }\n        \n    public int getNode(int index) {\n        if (index < _numCachedNodes) {\n            return _nodes.at(index);\n        }\n        else if (!_isEnded){\n            int node = _source.next();\n            if (node != END) {\n            \t_nodes.add(node);\n            \t_numCachedNodes++;\n            }\n            else {\n            \t_isEnded = true;\n            }\n            return node;\n        }\n        else\n            return END;\n    }\n\n    public DTMAxisIterator cloneIterator() {\n\tClonedNodeListIterator clone = new ClonedNodeListIterator(this);\n\treturn clone;\n    }\n\n    public DTMAxisIterator reset() {\n    \t_index = 0;\n    \treturn this;\n    }\n    \n    public void setMark() {\n\t_source.setMark();\n    }\n\n    public void gotoMark() {\n\t_source.gotoMark();", "functions": [{"function_name": "setRestartable", "code": "    public void setRestartable(boolean isRestartable) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _startNode = node;\n\t    _source.setStartNode(node);\n\t    resetPosition();\n\t    \n\t    _isRestartable = false;\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "next", "code": "    public int next() {\n        return getNode(_index++);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPosition", "code": "    public int getPosition() {\n    \treturn _index == 0 ? 1 : _index;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getNodeByPosition", "code": "    public int getNodeByPosition(int pos) {\n    \treturn getNode(pos);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNode", "code": "    public int getNode(int index) {\n        if (index < _numCachedNodes) {\n            return _nodes.at(index);\n        }\n        else if (!_isEnded){\n            int node = _source.next();\n            if (node != END) {\n            \t_nodes.add(node);\n            \t_numCachedNodes++;\n            }\n            else {\n            \t_isEnded = true;\n            }\n            return node;\n        }\n        else\n            return END;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "RETURN", "RETURN", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [3, 7], [3, 8], [3, 9], [6, 10], [8, 11], [9, 12], [8, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 3], [8, 3], [9, 3], [10, 6], [11, 8], [12, 9], [13, 8], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "cloneIterator", "code": "    public DTMAxisIterator cloneIterator() {\n\tClonedNodeListIterator clone = new ClonedNodeListIterator(this);\n\treturn clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n    \t_index = 0;\n    \treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_source.setMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_source.gotoMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "CachedNodeListIterator", "code": "    public CachedNodeListIterator(DTMAxisIterator source) {\n\t_source = source;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.5-255", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/LoadProperties.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.LoadProperties", "code": "public final class LoadProperties extends Task {\n\n    /**\n     * Source file\n     */\n    private File srcFile = null;\n\n    /**\n     * Holds filterchains\n     */\n    private final Vector filterChains = new Vector();\n\n    /**\n     * Sets the file to load.\n     *\n     * @param srcFile The new SrcFile value\n     */\n    public final void setSrcFile(final File srcFile) {\n        this.srcFile = srcFile;\n    }\n\n    /**\n     * read in a source file's contents and load them up as Ant properties\n     *\n     * @exception BuildException if something goes wrong with the build\n     */\n    public final void execute() throws BuildException {\n        if (srcFile == null) {\n            throw new BuildException(\"Source file not defined.\");\n        }\n\n        if (!srcFile.exists()) {\n            throw new BuildException(\"Source file does not exist.\");\n        }\n\n        if (!srcFile.isFile()) {\n            throw new BuildException(\"Source file is not a file.\");\n        }\n\n        FileInputStream fis = null;\n        BufferedInputStream bis = null;\n        Reader instream = null;\n\n        try {\n            final long len = srcFile.length();\n            final int size = (int) len;\n\n            fis = new FileInputStream(srcFile);\n            bis = new BufferedInputStream(fis);\n            instream = new InputStreamReader(bis);\n\n            ChainReaderHelper crh = new ChainReaderHelper();\n            crh.setBufferSize(size);\n            crh.setPrimaryReader(instream);\n            crh.setFilterChains(filterChains);\n            crh.setProject(project);\n            instream = crh.getAssembledReader();\n\n            String text = crh.readFully(instream);\n\n            if (text != null) {\n                if (!text.endsWith(\"\\n\")) {\n                    text = text + \"\\n\";\n                }\n\n                final StringInputStream sis = new StringInputStream(text);\n                final Properties props = new Properties();\n                props.load(sis);\n                final Enumeration e = props.keys();\n                while (e.hasMoreElements()) {\n                    final String key = (String) e.nextElement();\n                    final String value = props.getProperty(key);\n                    if (key != null && value != null\n                            && value.trim().length() > 0) {\n                        project.setNewProperty(key, value);\n                    }\n                }\n                sis.close();\n            }\n\n        } catch (final IOException ioe) {\n            final String message = \"Unable to load file: \" + ioe.toString();\n            throw new BuildException(message, ioe, location);\n        } catch (final BuildException be) {\n            throw be;\n        } finally {\n            try {\n                if (fis != null) {\n                    fis.close();\n                }\n            } catch (IOException ioex) {\n            }\n        }\n    }\n\n    /**\n     * Adds a FilterChain.\n     */\n    public final void addFilterChain(FilterChain filter) {\n        filterChains.addElement(filter);", "functions": [{"function_name": "setSrcFile", "code": "    public final void setSrcFile(final File srcFile) {\n        this.srcFile = srcFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public final void execute() throws BuildException {\n        if (srcFile == null) {\n            throw new BuildException(\"Source file not defined.\");\n        }\n\n        if (!srcFile.exists()) {\n            throw new BuildException(\"Source file does not exist.\");\n        }\n\n        if (!srcFile.isFile()) {\n            throw new BuildException(\"Source file is not a file.\");\n        }\n\n        FileInputStream fis = null;\n        BufferedInputStream bis = null;\n        Reader instream = null;\n\n        try {\n            final long len = srcFile.length();\n            final int size = (int) len;\n\n            fis = new FileInputStream(srcFile);\n            bis = new BufferedInputStream(fis);\n            instream = new InputStreamReader(bis);\n\n            ChainReaderHelper crh = new ChainReaderHelper();\n            crh.setBufferSize(size);\n            crh.setPrimaryReader(instream);\n            crh.setFilterChains(filterChains);\n            crh.setProject(project);\n            instream = crh.getAssembledReader();\n\n            String text = crh.readFully(instream);\n\n            if (text != null) {\n                if (!text.endsWith(\"\\n\")) {\n                    text = text + \"\\n\";\n                }\n\n                final StringInputStream sis = new StringInputStream(text);\n                final Properties props = new Properties();\n                props.load(sis);\n                final Enumeration e = props.keys();\n                while (e.hasMoreElements()) {\n                    final String key = (String) e.nextElement();\n                    final String value = props.getProperty(key);\n                    if (key != null && value != null\n                            && value.trim().length() > 0) {\n                        project.setNewProperty(key, value);\n                    }\n                }\n                sis.close();\n            }\n\n        } catch (final IOException ioe) {\n            final String message = \"Unable to load file: \" + ioe.toString();\n            throw new BuildException(message, ioe, location);\n        } catch (final BuildException be) {\n            throw be;\n        } finally {\n            try {\n                if (fis != null) {\n                    fis.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "TRY", "CATCH", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CATCH", "IF", "THROW_RAISE", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [5, 16], [6, 17], [7, 18], [8, 19], [8, 20], [9, 21], [10, 22], [10, 23], [11, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [2, 33], [3, 34], [4, 35], [5, 36], [6, 37], [7, 38], [18, 39], [20, 40], [22, 41], [11, 42], [11, 43], [11, 44], [11, 45], [11, 46], [24, 47], [12, 48], [25, 49], [13, 50], [30, 51], [31, 52], [32, 53], [15, 54], [36, 55], [37, 56], [38, 57], [40, 58], [23, 59], [11, 60], [42, 61], [11, 62], [46, 63], [55, 64], [56, 65], [57, 66], [20, 67], [59, 68], [59, 69], [42, 70], [42, 71], [42, 72], [43, 73], [44, 74], [45, 75], [63, 76], [70, 77], [46, 78], [77, 79], [77, 80], [71, 81], [78, 82], [70, 83], [79, 84], [79, 85], [80, 86], [80, 87], [72, 88], [82, 89], [85, 90], [86, 91], [87, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 5], [17, 6], [18, 7], [19, 8], [20, 8], [21, 9], [22, 10], [23, 10], [24, 11], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 2], [34, 3], [35, 4], [36, 5], [37, 6], [38, 7], [39, 18], [40, 20], [41, 22], [42, 11], [43, 11], [44, 11], [45, 11], [46, 11], [47, 24], [48, 12], [49, 25], [50, 13], [51, 30], [52, 31], [53, 32], [54, 15], [55, 36], [56, 37], [57, 38], [58, 40], [59, 23], [60, 11], [61, 42], [62, 11], [63, 46], [64, 55], [65, 56], [66, 57], [67, 20], [68, 59], [69, 59], [70, 42], [71, 42], [72, 42], [73, 43], [74, 44], [75, 45], [76, 63], [77, 70], [78, 46], [79, 77], [80, 77], [81, 71], [82, 78], [83, 70], [84, 79], [85, 79], [86, 80], [87, 80], [88, 72], [89, 82], [90, 85], [91, 86], [92, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "addFilterChain", "code": "    public final void addFilterChain(FilterChain filter) {\n        filterChains.addElement(filter);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6253", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/ExtendedFormatRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.ExtendedFormatRecord", "code": "public class ExtendedFormatRecord\n    extends Record\n{\n    public final static short     sid                 = 0xE0;\n\n    public final static short     NULL                = (short)0xfff0;\n\n    public final static short     XF_STYLE            = 1;\n    public final static short     XF_CELL             = 0;\n\n    public final static short     NONE                = 0x0;\n    public final static short     THIN                = 0x1;\n    public final static short     MEDIUM              = 0x2;\n    public final static short     DASHED              = 0x3;\n    public final static short     DOTTED              = 0x4;\n    public final static short     THICK               = 0x5;\n    public final static short     DOUBLE              = 0x6;\n    public final static short     HAIR                = 0x7;\n    public final static short     MEDIUM_DASHED       = 0x8;\n    public final static short     DASH_DOT            = 0x9;\n    public final static short     MEDIUM_DASH_DOT     = 0xA;\n    public final static short     DASH_DOT_DOT        = 0xB;\n    public final static short     MEDIUM_DASH_DOT_DOT = 0xC;\n    public final static short     SLANTED_DASH_DOT    = 0xD;\n\n    public final static short     GENERAL             = 0x0;\n    public final static short     LEFT                = 0x1;\n    public final static short     CENTER              = 0x2;\n    public final static short     RIGHT               = 0x3;\n    public final static short     FILL                = 0x4;\n    public final static short     JUSTIFY             = 0x5;\n    public final static short     CENTER_SELECTION    = 0x6;\n\n    public final static short     VERTICAL_TOP        = 0x0;\n    public final static short     VERTICAL_CENTER     = 0x1;\n    public final static short     VERTICAL_BOTTOM     = 0x2;\n    public final static short     VERTICAL_JUSTIFY    = 0x3;\n\n    public final static short     NO_FILL             = 0  ;\n    public final static short     SOLID_FILL          = 1  ;\n    public final static short     FINE_DOTS           = 2  ;\n    public final static short     ALT_BARS            = 3  ;\n    public final static short     SPARSE_DOTS         = 4  ;\n    public final static short     THICK_HORZ_BANDS    = 5  ;\n    public final static short     THICK_VERT_BANDS    = 6  ;\n    public final static short     THICK_BACKWARD_DIAG = 7  ;\n    public final static short     THICK_FORWARD_DIAG  = 8  ;\n    public final static short     BIG_SPOTS           = 9  ;\n    public final static short     BRICKS              = 10 ;\n    public final static short     THIN_HORZ_BANDS     = 11 ;\n    public final static short     THIN_VERT_BANDS     = 12 ;\n    public final static short     THIN_BACKWARD_DIAG  = 13 ;\n    public final static short     THIN_FORWARD_DIAG   = 14 ;\n    public final static short     SQUARES             = 15 ;\n    public final static short     DIAMONDS            = 16 ;\n\n\n    static final private BitField _locked       = BitFieldFactory.getInstance(0x0001);\n    static final private BitField _hidden       = BitFieldFactory.getInstance(0x0002);\n    static final private BitField _xf_type      = BitFieldFactory.getInstance(0x0004);\n    static final private BitField _123_prefix   = BitFieldFactory.getInstance(0x0008);\n    static final private BitField _parent_index = BitFieldFactory.getInstance(0xFFF0);\n    private short                 field_3_cell_options;\n\n    static final private BitField _alignment          = BitFieldFactory.getInstance(0x0007);\n    static final private BitField _wrap_text          = BitFieldFactory.getInstance(0x0008);\n    static final private BitField _vertical_alignment = BitFieldFactory.getInstance(0x0070);\n    static final private BitField _justify_last       = BitFieldFactory.getInstance(0x0080);\n    static final private BitField _rotation           = BitFieldFactory.getInstance(0xFF00);\n    private short                 field_4_alignment_options;\n\n    static final private BitField _indent                         =\n        BitFieldFactory.getInstance(0x000F);\n    static final private BitField _shrink_to_fit                  =\n        BitFieldFactory.getInstance(0x0010);\n    static final private BitField _merge_cells                    =\n        BitFieldFactory.getInstance(0x0020);\n    static final private BitField _reading_order                  =\n        BitFieldFactory.getInstance(0x00C0);\n\n    static final private BitField _indent_not_parent_format       =\n        BitFieldFactory.getInstance(0x0400);\n    static final private BitField _indent_not_parent_font         =\n        BitFieldFactory.getInstance(0x0800);\n    static final private BitField _indent_not_parent_alignment    =\n        BitFieldFactory.getInstance(0x1000);\n    static final private BitField _indent_not_parent_border       =\n        BitFieldFactory.getInstance(0x2000);\n    static final private BitField _indent_not_parent_pattern      =\n        BitFieldFactory.getInstance(0x4000);\n    static final private BitField _indent_not_parent_cell_options =\n        BitFieldFactory.getInstance(0x8000);\n    private short                 field_5_indention_options;\n\n    static final private BitField _border_left   = BitFieldFactory.getInstance(0x000F);\n    static final private BitField _border_right  = BitFieldFactory.getInstance(0x00F0);\n    static final private BitField _border_top    = BitFieldFactory.getInstance(0x0F00);\n    static final private BitField _border_bottom = BitFieldFactory.getInstance(0xF000);\n    private short                 field_6_border_options;\n\n    static final private BitField _left_border_palette_idx  =\n        BitFieldFactory.getInstance(0x007F);\n    static final private BitField _right_border_palette_idx =\n        BitFieldFactory.getInstance(0x3F80);\n    static final private BitField _diag                     =\n        BitFieldFactory.getInstance(0xC000);\n    private short                 field_7_palette_options;\n\n    static final private BitField _top_border_palette_idx    =\n        BitFieldFactory.getInstance(0x0000007F);\n    static final private BitField _bottom_border_palette_idx =\n        BitFieldFactory.getInstance(0x00003F80);\n    static final private BitField _adtl_diag                 =\n        BitFieldFactory.getInstance(0x001fc000);\n    static final private BitField _adtl_diag_line_style      =\n        BitFieldFactory.getInstance(0x01e00000);\n\n    static final private BitField _adtl_fill_pattern         =\n        BitFieldFactory.getInstance(0xfc000000);\n\n    static final private BitField _fill_foreground = BitFieldFactory.getInstance(0x007F);\n    static final private BitField _fill_background = BitFieldFactory.getInstance(0x3f80);\n\n    private short                 field_9_fill_palette_options;\n\n    /**\n     * Constructor ExtendedFormatRecord\n     *\n     *\n     */\n\n    public ExtendedFormatRecord()\n    {\n    }\n\n    /**\n     * Constructs an ExtendedFormat record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xE0 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public ExtendedFormatRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A EXTENDED FORMAT RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_font_index           = in.readShort();\n        field_2_format_index         = in.readShort();\n        field_3_cell_options         = in.readShort();\n        field_4_alignment_options    = in.readShort();\n        field_5_indention_options    = in.readShort();\n        field_6_border_options       = in.readShort();\n        field_7_palette_options      = in.readShort();\n        field_8_adtl_palette_options = in.readInt();\n        field_9_fill_palette_options = in.readShort();\n    }\n\n    /**\n     * set the index to the FONT record (which font to use 0 based)\n     *\n     *\n     * @param index to the font\n     * @see org.apache.poi.hssf.record.FontRecord\n     */\n\n    public void setFontIndex(short index)\n    {\n        field_1_font_index = index;\n    }\n\n    /**\n     *  set the index to the Format record (which FORMAT to use 0-based)\n     *\n     *\n     * @param index to the format record\n     * @see org.apache.poi.hssf.record.FormatRecord\n     */\n\n    public void setFormatIndex(short index)\n    {\n        field_2_format_index = index;\n    }\n\n    /**\n     * sets the options bitmask - you can also use corresponding option bit setters\n     * (see other methods that reference this one)\n     *\n     *\n     * @param options bitmask to set\n     *\n     */\n\n    public void setCellOptions(short options)\n    {\n        field_3_cell_options = options;\n    }\n\n\n    /**\n     * set whether the cell is locked or not\n     *\n     *\n     * @param locked - if the cell is locked\n     * @see #setCellOptions(short)\n     */\n\n    public void setLocked(boolean locked)\n    {\n        field_3_cell_options = _locked.setShortBoolean(field_3_cell_options,\n                locked);\n    }\n\n    /**\n     * set whether the cell is hidden or not\n     *\n     *\n     * @param hidden - if the cell is hidden\n     * @see #setCellOptions(short)\n     */\n\n    public void setHidden(boolean hidden)\n    {\n        field_3_cell_options = _hidden.setShortBoolean(field_3_cell_options,\n                hidden);\n    }\n\n    /**\n     * set whether the cell is a cell or style XFRecord\n     *\n     *\n     * @param type - cell or style (0/1)\n     * @see #XF_STYLE\n     * @see #XF_CELL\n     * @see #setCellOptions(short)\n     */\n\n    public void setXFType(short type)\n    {\n        field_3_cell_options = _xf_type.setShortValue(field_3_cell_options,\n                type);\n    }\n\n    /**\n     * set some old holdover from lotus 123.  Who cares, its all over for Lotus.\n     * RIP Lotus.\n     *\n     * @param prefix - the lotus thing to set.\n     * @see #setCellOptions(short)\n     */\n\n    public void set123Prefix(boolean prefix)\n    {\n        field_3_cell_options =\n            _123_prefix.setShortBoolean(field_3_cell_options, prefix);\n    }\n\n\n    /**\n     * for cell XF types this is the parent style (usually 0/normal).  For\n     * style this should be NULL.\n     *\n     * @param parent  index of parent XF\n     * @see #NULL\n     * @see #setCellOptions(short)\n     */\n\n    public void setParentIndex(short parent)\n    {\n        field_3_cell_options =\n            _parent_index.setShortValue(field_3_cell_options, parent);\n    }\n\n\n    /**\n     * set the alignment options bitmask.  See corresponding bitsetter methods\n     * that reference this one.\n     *\n     *\n     * @param options     - the bitmask to set\n     */\n\n    public void setAlignmentOptions(short options)\n    {\n        field_4_alignment_options = options;\n    }\n\n    /**\n     * set the horizontal alignment of the cell.\n     *\n     *\n     * @param align - how to align the cell (see constants)\n     * @see #GENERAL\n     * @see #LEFT\n     * @see #CENTER\n     * @see #RIGHT\n     * @see #FILL\n     * @see #JUSTIFY\n     * @see #CENTER_SELECTION\n     * @see #setAlignmentOptions(short)\n     */\n\n    public void setAlignment(short align)\n    {\n        field_4_alignment_options =\n            _alignment.setShortValue(field_4_alignment_options, align);\n    }\n\n    /**\n     * set whether to wrap the text in the cell\n     *\n     *\n     * @param wrapped - whether or not to wrap the cell text\n     * @see #setAlignmentOptions(short)\n     */\n\n    public void setWrapText(boolean wrapped)\n    {\n        field_4_alignment_options =\n            _wrap_text.setShortBoolean(field_4_alignment_options, wrapped);\n    }\n\n    /**\n     * set the vertical alignment of text in the cell\n     *\n     *\n     * @param align     where to align the text\n     * @see #VERTICAL_TOP\n     * @see #VERTICAL_CENTER\n     * @see #VERTICAL_BOTTOM\n     * @see #VERTICAL_JUSTIFY\n     *\n     * @see #setAlignmentOptions(short)\n     */\n\n    public void setVerticalAlignment(short align)\n    {\n        field_4_alignment_options =\n            _vertical_alignment.setShortValue(field_4_alignment_options,\n                                              align);\n    }\n\n    /**\n     * Dunno.  Docs just say this is for far east versions..  (I'm guessing it\n     * justifies for right-to-left read languages)\n     *\n     *\n     * @param justify\n     * @see #setAlignmentOptions(short)\n     */\n\n    public void setJustifyLast(short justify){\n        field_4_alignment_options =\n            _justify_last.setShortValue(field_4_alignment_options, justify);\n    }\n\n    /**\n     * set the degree of rotation.  (I've not actually seen this used anywhere)\n     *\n     *\n     * @param rotation the degree of rotation\n     * @see #setAlignmentOptions(short)\n     */\n\n    public void setRotation(short rotation)\n    {\n        field_4_alignment_options =\n            _rotation.setShortValue(field_4_alignment_options, rotation);\n    }\n\n    /**\n     * set the indent options bitmask  (see corresponding bitmask setters that reference\n     * this field)\n     *\n     *\n     * @param options bitmask to set.\n     *\n     */\n\n    public void setIndentionOptions(short options)\n    {\n        field_5_indention_options = options;\n    }\n\n\n    /**\n     * set indention (not sure of the units, think its spaces)\n     *\n     * @param indent - how far to indent the cell\n     * @see #setIndentionOptions(short)\n     */\n\n    public void setIndent(short indent)\n    {\n        field_5_indention_options =\n            _indent.setShortValue(field_5_indention_options, indent);\n    }\n\n    /**\n     * set whether to shrink the text to fit\n     *\n     *\n     * @param shrink - shrink to fit or not\n     * @see #setIndentionOptions(short)\n     */\n\n    public void setShrinkToFit(boolean shrink)\n    {\n        field_5_indention_options =\n            _shrink_to_fit.setShortBoolean(field_5_indention_options, shrink);\n    }\n\n    /**\n     * set whether to merge cells\n     *\n     *\n     * @param merge - merge cells or not\n     * @see #setIndentionOptions(short)\n     */\n\n    public void setMergeCells(boolean merge)\n    {\n        field_5_indention_options =\n            _merge_cells.setShortBoolean(field_5_indention_options, merge);\n    }\n\n    /**\n     * set the reading order for far east versions (0 - Context, 1 - Left to right,\n     * 2 - right to left) - We could use some help with support for the far east.\n     *\n     * @param order - the reading order (0,1,2)\n     * @see #setIndentionOptions(short)\n     */\n\n    public void setReadingOrder(short order){\n        field_5_indention_options =\n            _reading_order.setShortValue(field_5_indention_options, order);\n    }\n\n    /**\n     * set whether or not to use the format in this XF instead of the parent XF.\n     *\n     *\n     * @param parent - true if this XF has a different format value than its parent,\n     *                 false otherwise.\n     * @see #setIndentionOptions(short)\n     */\n\n    public void setIndentNotParentFormat(boolean parent)\n    {\n        field_5_indention_options =\n            _indent_not_parent_format\n                .setShortBoolean(field_5_indention_options, parent);\n    }\n\n    /**\n     * set whether or not to use the font in this XF instead of the parent XF.\n     *\n     *\n     * @param font   - true if this XF has a different font value than its parent,\n     *                 false otherwise.\n     * @see #setIndentionOptions(short)\n     */\n\n    public void setIndentNotParentFont(boolean font)\n    {\n        field_5_indention_options =\n            _indent_not_parent_font.setShortBoolean(field_5_indention_options,\n                                                    font);\n    }\n\n    /**\n     * set whether or not to use the alignment in this XF instead of the parent XF.\n     *\n     *\n     * @param alignment true if this XF has a different alignment value than its parent,\n     *                  false otherwise.\n     * @see #setIndentionOptions(short)\n     */\n\n    public void setIndentNotParentAlignment(boolean alignment)\n    {\n        field_5_indention_options =\n            _indent_not_parent_alignment\n                .setShortBoolean(field_5_indention_options, alignment);\n    }\n\n    /**\n     * set whether or not to use the border in this XF instead of the parent XF.\n     *\n     *\n     * @param border - true if this XF has a different border value than its parent,\n     *                 false otherwise.\n     * @see #setIndentionOptions(short)\n     */\n\n    public void setIndentNotParentBorder(boolean border)\n    {\n        field_5_indention_options =\n            _indent_not_parent_border\n                .setShortBoolean(field_5_indention_options, border);\n    }\n\n    /**\n     * <p>Sets whether or not to use the pattern in this XF instead of the\n     * parent XF (foreground/background).</p>\n     * \n     * @param pattern <code>true</code> if this XF has a different pattern\n     *        value than its parent,</code> false</code> otherwise.\n     * @see #setIndentionOptions(short)\n     */\n\n    public void setIndentNotParentPattern(boolean pattern)\n    {\n        field_5_indention_options =\n            _indent_not_parent_pattern\n                .setShortBoolean(field_5_indention_options, pattern);\n    }\n\n    /**\n     * set whether or not to use the locking/hidden in this XF instead of the parent XF.\n     *\n     *\n     * @param options true if this XF has a different locking or hidden value than its parent,\n     *                 false otherwise.\n     * @see #setIndentionOptions(short)\n     */\n\n    public void setIndentNotParentCellOptions(boolean options)\n    {\n        field_5_indention_options =\n            _indent_not_parent_cell_options\n                .setShortBoolean(field_5_indention_options, options);\n    }\n\n\n    /**\n     * set the border options bitmask (see the corresponding bitsetter methods\n     * that reference back to this one)\n     *\n     * @param options - the bit mask to set\n     *\n     */\n\n    public void setBorderOptions(short options)\n    {\n        field_6_border_options = options;\n    }\n\n\n    /**\n     * set the borderline style for the left border\n     *\n     *\n     * @param border - type of border for the left side of the cell\n     * @see     #NONE\n     * @see     #THIN\n     * @see     #MEDIUM\n     * @see     #DASHED\n     * @see     #DOTTED\n     * @see     #THICK\n     * @see     #DOUBLE\n     * @see     #HAIR\n     * @see     #MEDIUM_DASHED\n     * @see     #DASH_DOT\n     * @see     #MEDIUM_DASH_DOT\n     * @see     #DASH_DOT_DOT\n     * @see     #MEDIUM_DASH_DOT_DOT\n     * @see     #SLANTED_DASH_DOT\n     * @see #setBorderOptions(short)\n     */\n\n    public void setBorderLeft(short border)\n    {\n        field_6_border_options =\n            _border_left.setShortValue(field_6_border_options, border);\n    }\n\n    /**\n     * set the border line style for the right border\n     *\n     *\n     * @param border - type of border for the right side of the cell\n     * @see     #NONE\n     * @see     #THIN\n     * @see     #MEDIUM\n     * @see     #DASHED\n     * @see     #DOTTED\n     * @see     #THICK\n     * @see     #DOUBLE\n     * @see     #HAIR\n     * @see     #MEDIUM_DASHED\n     * @see     #DASH_DOT\n     * @see     #MEDIUM_DASH_DOT\n     * @see     #DASH_DOT_DOT\n     * @see     #MEDIUM_DASH_DOT_DOT\n     * @see     #SLANTED_DASH_DOT\n     * @see #setBorderOptions(short)\n     */\n\n    public void setBorderRight(short border)\n    {\n        field_6_border_options =\n            _border_right.setShortValue(field_6_border_options, border);\n    }\n\n    /**\n     * set the border line style for the top border\n     *\n     *\n     * @param border - type of border for the top of the cell\n     * @see     #NONE\n     * @see     #THIN\n     * @see     #MEDIUM\n     * @see     #DASHED\n     * @see     #DOTTED\n     * @see     #THICK\n     * @see     #DOUBLE\n     * @see     #HAIR\n     * @see     #MEDIUM_DASHED\n     * @see     #DASH_DOT\n     * @see     #MEDIUM_DASH_DOT\n     * @see     #DASH_DOT_DOT\n     * @see     #MEDIUM_DASH_DOT_DOT\n     * @see     #SLANTED_DASH_DOT\n     * @see #setBorderOptions(short)\n     */\n\n    public void setBorderTop(short border)\n    {\n        field_6_border_options =\n            _border_top.setShortValue(field_6_border_options, border);\n    }\n\n    /**\n     * set the border line style for the bottom border\n     *\n     *\n     * @param border - type of border for the bottom of the cell\n     * @see     #NONE\n     * @see     #THIN\n     * @see     #MEDIUM\n     * @see     #DASHED\n     * @see     #DOTTED\n     * @see     #THICK\n     * @see     #DOUBLE\n     * @see     #HAIR\n     * @see     #MEDIUM_DASHED\n     * @see     #DASH_DOT\n     * @see     #MEDIUM_DASH_DOT\n     * @see     #DASH_DOT_DOT\n     * @see     #MEDIUM_DASH_DOT_DOT\n     * @see     #SLANTED_DASH_DOT\n     * @see #setBorderOptions(short)\n     */\n\n    public void setBorderBottom(short border)\n    {\n        field_6_border_options =\n            _border_bottom.setShortValue(field_6_border_options, border);\n    }\n\n\n    /**\n     * set the palette options bitmask (see the individual bitsetter methods that\n     * reference this one)\n     *\n     *\n     * @param options - the bitmask to set\n     *\n     */\n\n    public void setPaletteOptions(short options)\n    {\n        field_7_palette_options = options;\n    }\n\n\n    /**\n     * set the palette index for the left border color\n     *\n     *\n     * @param border - palette index\n     * @see #setPaletteOptions(short)\n     */\n\n    public void setLeftBorderPaletteIdx(short border)\n    {\n        field_7_palette_options =\n            _left_border_palette_idx.setShortValue(field_7_palette_options,\n                                                   border);\n    }\n\n    /**\n     * set the palette index for the right border color\n     *\n     *\n     * @param border - palette index\n     * @see #setPaletteOptions(short)\n     */\n\n    public void setRightBorderPaletteIdx(short border)\n    {\n        field_7_palette_options =\n            _right_border_palette_idx.setShortValue(field_7_palette_options,\n                                                    border);\n    }\n\n\n    /**\n     * Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none..\n     *\n     *\n     * @param diag - set whatever it is that this is.\n     * @see #setPaletteOptions(short)\n     */\n\n    public void setDiag(short diag)\n    {\n        field_7_palette_options = _diag.setShortValue(field_7_palette_options,\n                diag);\n    }\n\n\n    /**\n     * set the additional palette options bitmask (see individual bitsetter methods\n     * that reference this method)\n     *\n     *\n     * @param options - bitmask to set\n     *\n     */\n\n    public void setAdtlPaletteOptions(short options)\n    {\n        field_8_adtl_palette_options = options;\n    }\n\n\n    /**\n     * set the palette index for the top border\n     *\n     *\n     * @param border - palette index\n     * @see #setAdtlPaletteOptions(short)\n     */\n\n    public void setTopBorderPaletteIdx(short border)\n    {\n        field_8_adtl_palette_options =\n            _top_border_palette_idx.setValue(field_8_adtl_palette_options,\n                                             border);\n    }\n\n    /**\n     * set the palette index for the bottom border\n     *\n     *\n     * @param border - palette index\n     * @see #setAdtlPaletteOptions(short)\n     */\n\n    public void setBottomBorderPaletteIdx(short border)\n    {\n        field_8_adtl_palette_options =\n            _bottom_border_palette_idx.setValue(field_8_adtl_palette_options,\n                                                border);\n    }\n\n    /**\n     * set for diagonal borders?  No idea (its a palette color for the other function\n     * we didn't know what was?)\n     *\n     *\n     * @param diag - the palette index?\n     * @see #setAdtlPaletteOptions(short)\n     */\n\n    public void setAdtlDiag(short diag)\n    {\n        field_8_adtl_palette_options =\n            _adtl_diag.setValue(field_8_adtl_palette_options, diag);\n    }\n\n    /**\n     * set the diagonal border line style?  Who the heck ever heard of a diagonal border?\n     *\n     *\n     * @param diag - the line style\n     * @see     #NONE\n     * @see     #THIN\n     * @see     #MEDIUM\n     * @see     #DASHED\n     * @see     #DOTTED\n     * @see     #THICK\n     * @see     #DOUBLE\n     * @see     #HAIR\n     * @see     #MEDIUM_DASHED\n     * @see     #DASH_DOT\n     * @see     #MEDIUM_DASH_DOT\n     * @see     #DASH_DOT_DOT\n     * @see     #MEDIUM_DASH_DOT_DOT\n     * @see     #SLANTED_DASH_DOT\n     * @see #setAdtlPaletteOptions(short)\n     */\n\n    public void setAdtlDiagLineStyle(short diag)\n    {\n        field_8_adtl_palette_options =\n            _adtl_diag_line_style.setValue(field_8_adtl_palette_options,\n                                           diag);\n    }\n\n    /**\n     * set the fill pattern\n     *\n     * @see #NO_FILL\n     * @see #SOLID_FILL\n     * @see #FINE_DOTS\n     * @see #ALT_BARS\n     * @see #SPARSE_DOTS\n     * @see #THICK_HORZ_BANDS\n     * @see #THICK_VERT_BANDS\n     * @see #THICK_BACKWARD_DIAG\n     * @see #THICK_FORWARD_DIAG\n     * @see #BIG_SPOTS\n     * @see #BRICKS\n     * @see #THIN_HORZ_BANDS\n     * @see #THIN_VERT_BANDS\n     * @see #THIN_BACKWARD_DIAG\n     * @see #THIN_FORWARD_DIAG\n     * @see #SQUARES\n     * @see #DIAMONDS\n     *\n     * @param fill - fill pattern??\n     * @see #setAdtlPaletteOptions(short)\n     */\n\n    public void setAdtlFillPattern(short fill)\n    {\n        field_8_adtl_palette_options =\n            _adtl_fill_pattern.setValue(field_8_adtl_palette_options, fill);\n    }\n\n\n    /**\n     * set the fill palette options bitmask (see\n     *\n     *\n     * @param options\n     *\n     */\n\n    public void setFillPaletteOptions(short options)\n    {\n        field_9_fill_palette_options = options;\n    }\n\n    /**\n     * set the foreground palette color index\n     *\n     *\n     * @param color - palette index\n     * @see #setFillPaletteOptions(short)\n     */\n\n    public void setFillForeground(short color)\n    {\n        field_9_fill_palette_options =\n            _fill_foreground.setShortValue(field_9_fill_palette_options,\n                                           color);\n    }\n\n    /**\n     * set the background palette color index\n     *\n     *\n     * @param color - palette index\n     * @see #setFillPaletteOptions(short)\n     */\n\n    public void setFillBackground(short color)\n    {\n        field_9_fill_palette_options =\n            _fill_background.setShortValue(field_9_fill_palette_options,\n                                           color);\n    }\n\n    /**\n     * get the index to the FONT record (which font to use 0 based)\n     *\n     *\n     * @return index to the font\n     * @see org.apache.poi.hssf.record.FontRecord\n     */\n\n    public short getFontIndex()\n    {\n        return field_1_font_index;\n    }\n\n    /**\n     *  get the index to the Format record (which FORMAT to use 0-based)\n     *\n     *\n     * @return index to the format record\n     * @see org.apache.poi.hssf.record.FormatRecord\n     */\n\n    public short getFormatIndex()\n    {\n        return field_2_format_index;\n    }\n\n    /**\n     * gets the options bitmask - you can also use corresponding option bit getters\n     * (see other methods that reference this one)\n     *\n     *\n     * @return options bitmask\n     *\n     */\n\n    public short getCellOptions()\n    {\n        return field_3_cell_options;\n    }\n\n\n    /**\n     * get whether the cell is locked or not\n     *\n     *\n     * @return locked - if the cell is locked\n     * @see #getCellOptions()\n     */\n\n    public boolean isLocked()\n    {\n        return _locked.isSet(field_3_cell_options);\n    }\n\n    /**\n     * get whether the cell is hidden or not\n     *\n     *\n     * @return hidden - if the cell is hidden\n     * @see #getCellOptions()\n     */\n\n    public boolean isHidden()\n    {\n        return _hidden.isSet(field_3_cell_options);\n    }\n\n    /**\n     * get whether the cell is a cell or style XFRecord\n     *\n     *\n     * @return type - cell or style (0/1)\n     * @see #XF_STYLE\n     * @see #XF_CELL\n     * @see #getCellOptions()\n     */\n\n    public short getXFType()\n    {\n        return _xf_type.getShortValue(field_3_cell_options);\n    }\n\n    /**\n     * get some old holdover from lotus 123.  Who cares, its all over for Lotus.\n     * RIP Lotus.\n     *\n     * @return prefix - the lotus thing\n     * @see #getCellOptions()\n     */\n\n    public boolean get123Prefix()\n    {\n        return _123_prefix.isSet(field_3_cell_options);\n    }\n\n    /**\n     * for cell XF types this is the parent style (usually 0/normal).  For\n     * style this should be NULL.\n     *\n     * @return index of parent XF\n     * @see #NULL\n     * @see #getCellOptions()\n     */\n\n    public short getParentIndex()\n    {\n        return _parent_index.getShortValue(field_3_cell_options);\n    }\n\n\n    /**\n     * get the alignment options bitmask.  See corresponding bitgetter methods\n     * that reference this one.\n     *\n     *\n     * @return options     - the bitmask\n     */\n\n    public short getAlignmentOptions()\n    {\n        return field_4_alignment_options;\n    }\n\n\n    /**\n     * get the horizontal alignment of the cell.\n     *\n     *\n     * @return align - how to align the cell (see constants)\n     * @see #GENERAL\n     * @see #LEFT\n     * @see #CENTER\n     * @see #RIGHT\n     * @see #FILL\n     * @see #JUSTIFY\n     * @see #CENTER_SELECTION\n     * @see #getAlignmentOptions()\n     */\n\n    public short getAlignment()\n    {\n        return _alignment.getShortValue(field_4_alignment_options);\n    }\n\n    /**\n     * get whether to wrap the text in the cell\n     *\n     *\n     * @return wrapped - whether or not to wrap the cell text\n     * @see #getAlignmentOptions()\n     */\n\n    public boolean getWrapText()\n    {\n        return _wrap_text.isSet(field_4_alignment_options);\n    }\n\n    /**\n     * get the vertical alignment of text in the cell\n     *\n     *\n     * @return where to align the text\n     * @see #VERTICAL_TOP\n     * @see #VERTICAL_CENTER\n     * @see #VERTICAL_BOTTOM\n     * @see #VERTICAL_JUSTIFY\n     *\n     * @see #getAlignmentOptions()\n     */\n\n    public short getVerticalAlignment()\n    {\n        return _vertical_alignment.getShortValue(field_4_alignment_options);\n    }\n\n    /**\n     * Dunno.  Docs just say this is for far east versions..  (I'm guessing it\n     * justifies for right-to-left read languages)\n     *\n     *\n     * @return justify\n     * @see #getAlignmentOptions()\n     */\n\n    public short getJustifyLast(){\n        return _justify_last.getShortValue(field_4_alignment_options);\n    }\n\n    /**\n     * get the degree of rotation.  (I've not actually seen this used anywhere)\n     *\n     *\n     * @return rotation - the degree of rotation\n     * @see #getAlignmentOptions()\n     */\n\n    public short getRotation()\n    {\n        return _rotation.getShortValue(field_4_alignment_options);\n    }\n\n\n    /**\n     * get the indent options bitmask  (see corresponding bit getters that reference\n     * this field)\n     *\n     *\n     * @return options bitmask\n     *\n     */\n\n    public short getIndentionOptions()\n    {\n        return field_5_indention_options;\n    }\n\n\n    /**\n     * get indention (not sure of the units, think its spaces)\n     *\n     * @return indent - how far to indent the cell\n     * @see #getIndentionOptions()\n     */\n\n    public short getIndent()\n    {\n        return _indent.getShortValue(field_5_indention_options);\n    }\n\n    /**\n     * get whether to shrink the text to fit\n     *\n     *\n     * @return shrink - shrink to fit or not\n     * @see #getIndentionOptions()\n     */\n\n    public boolean getShrinkToFit()\n    {\n        return _shrink_to_fit.isSet(field_5_indention_options);\n    }\n\n    /**\n     * get whether to merge cells\n     *\n     *\n     * @return merge - merge cells or not\n     * @see #getIndentionOptions()\n     */\n\n    public boolean getMergeCells()\n    {\n        return _merge_cells.isSet(field_5_indention_options);\n    }\n\n    /**\n     * get the reading order for far east versions (0 - Context, 1 - Left to right,\n     * 2 - right to left) - We could use some help with support for the far east.\n     *\n     * @return order - the reading order (0,1,2)\n     * @see #getIndentionOptions()\n     */\n\n    public short getReadingOrder(){\n        return _reading_order.getShortValue(field_5_indention_options);\n    }\n\n    /**\n     * get whether or not to use the format in this XF instead of the parent XF.\n     *\n     *\n     * @return parent - true if this XF has a different format value than its parent,\n     *                 false otherwise.\n     * @see #getIndentionOptions()\n     */\n\n    public boolean isIndentNotParentFormat()\n    {\n        return _indent_not_parent_format.isSet(field_5_indention_options);\n    }\n\n    /**\n     * get whether or not to use the font in this XF instead of the parent XF.\n     *\n     *\n     * @return font   - true if this XF has a different font value than its parent,\n     *                 false otherwise.\n     * @see #getIndentionOptions()\n     */\n\n    public boolean isIndentNotParentFont()\n    {\n        return _indent_not_parent_font.isSet(field_5_indention_options);\n    }\n\n    /**\n     * get whether or not to use the alignment in this XF instead of the parent XF.\n     *\n     *\n     * @return alignment true if this XF has a different alignment value than its parent,\n     *                  false otherwise.\n     * @see #getIndentionOptions()\n     */\n\n    public boolean isIndentNotParentAlignment()\n    {\n        return _indent_not_parent_alignment.isSet(field_5_indention_options);\n    }\n\n    /**\n     * get whether or not to use the border in this XF instead of the parent XF.\n     *\n     *\n     * @return border - true if this XF has a different border value than its parent,\n     *                 false otherwise.\n     * @see #getIndentionOptions()\n     */\n\n    public boolean isIndentNotParentBorder()\n    {\n        return _indent_not_parent_border.isSet(field_5_indention_options);\n    }\n\n    /**\n     * get whether or not to use the pattern in this XF instead of the parent XF.\n     * (foregrount/background)\n     *\n     * @return pattern- true if this XF has a different pattern value than its parent,\n     *                 false otherwise.\n     * @see #getIndentionOptions()\n     */\n\n    public boolean isIndentNotParentPattern()\n    {\n        return _indent_not_parent_pattern.isSet(field_5_indention_options);\n    }\n\n    /**\n     * get whether or not to use the locking/hidden in this XF instead of the parent XF.\n     *\n     *\n     * @return options- true if this XF has a different locking or hidden value than its parent,\n     *                 false otherwise.\n     * @see #getIndentionOptions()\n     */\n\n    public boolean isIndentNotParentCellOptions()\n    {\n        return _indent_not_parent_cell_options\n            .isSet(field_5_indention_options);\n    }\n\n\n    /**\n     * get the border options bitmask (see the corresponding bit getter methods\n     * that reference back to this one)\n     *\n     * @return options - the bit mask to set\n     *\n     */\n\n    public short getBorderOptions()\n    {\n        return field_6_border_options;\n    }\n\n\n    /**\n     * get the borderline style for the left border\n     *\n     *\n     * @return border - type of border for the left side of the cell\n     * @see     #NONE\n     * @see     #THIN\n     * @see     #MEDIUM\n     * @see     #DASHED\n     * @see     #DOTTED\n     * @see     #THICK\n     * @see     #DOUBLE\n     * @see     #HAIR\n     * @see     #MEDIUM_DASHED\n     * @see     #DASH_DOT\n     * @see     #MEDIUM_DASH_DOT\n     * @see     #DASH_DOT_DOT\n     * @see     #MEDIUM_DASH_DOT_DOT\n     * @see     #SLANTED_DASH_DOT\n     * @see #getBorderOptions()\n     */\n\n    public short getBorderLeft()\n    {\n        return _border_left.getShortValue(field_6_border_options);\n    }\n\n    /**\n     * get the borderline style for the right border\n     *\n     *\n     * @return  border - type of border for the right side of the cell\n     * @see     #NONE\n     * @see     #THIN\n     * @see     #MEDIUM\n     * @see     #DASHED\n     * @see     #DOTTED\n     * @see     #THICK\n     * @see     #DOUBLE\n     * @see     #HAIR\n     * @see     #MEDIUM_DASHED\n     * @see     #DASH_DOT\n     * @see     #MEDIUM_DASH_DOT\n     * @see     #DASH_DOT_DOT\n     * @see     #MEDIUM_DASH_DOT_DOT\n     * @see     #SLANTED_DASH_DOT\n     * @see #getBorderOptions()\n     */\n\n    public short getBorderRight()\n    {\n        return _border_right.getShortValue(field_6_border_options);\n    }\n\n    /**\n     * get the borderline style for the top border\n     *\n     *\n     * @return border - type of border for the top of the cell\n     * @see     #NONE\n     * @see     #THIN\n     * @see     #MEDIUM\n     * @see     #DASHED\n     * @see     #DOTTED\n     * @see     #THICK\n     * @see     #DOUBLE\n     * @see     #HAIR\n     * @see     #MEDIUM_DASHED\n     * @see     #DASH_DOT\n     * @see     #MEDIUM_DASH_DOT\n     * @see     #DASH_DOT_DOT\n     * @see     #MEDIUM_DASH_DOT_DOT\n     * @see     #SLANTED_DASH_DOT\n     * @see #getBorderOptions()\n     */\n\n    public short getBorderTop()\n    {\n        return _border_top.getShortValue(field_6_border_options);\n    }\n\n    /**\n     * get the borderline style for the bottom border\n     *\n     *\n     * @return border - type of border for the bottom of the cell\n     * @see     #NONE\n     * @see     #THIN\n     * @see     #MEDIUM\n     * @see     #DASHED\n     * @see     #DOTTED\n     * @see     #THICK\n     * @see     #DOUBLE\n     * @see     #HAIR\n     * @see     #MEDIUM_DASHED\n     * @see     #DASH_DOT\n     * @see     #MEDIUM_DASH_DOT\n     * @see     #DASH_DOT_DOT\n     * @see     #MEDIUM_DASH_DOT_DOT\n     * @see     #SLANTED_DASH_DOT\n     * @see #getBorderOptions()\n     */\n\n    public short getBorderBottom()\n    {\n        return _border_bottom.getShortValue(field_6_border_options);\n    }\n\n\n    /**\n     * get the palette options bitmask (see the individual bit getter methods that\n     * reference this one)\n     *\n     *\n     * @return options - the bitmask\n     *\n     */\n\n    public short getPaletteOptions()\n    {\n        return field_7_palette_options;\n    }\n\n\n    /**\n     * get the palette index for the left border color\n     *\n     *\n     * @return border - palette index\n     * @see #getPaletteOptions()\n     */\n\n    public short getLeftBorderPaletteIdx()\n    {\n        return _left_border_palette_idx\n            .getShortValue(field_7_palette_options);\n    }\n\n    /**\n     * get the palette index for the right border color\n     *\n     *\n     * @return border - palette index\n     * @see #getPaletteOptions()\n     */\n\n    public short getRightBorderPaletteIdx()\n    {\n        return _right_border_palette_idx\n            .getShortValue(field_7_palette_options);\n    }\n\n\n    /**\n     * Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none..\n     *\n     *\n     * @return diag - whatever it is that this is.\n     * @see #getPaletteOptions()\n     */\n\n    public short getDiag()\n    {\n        return _diag.getShortValue(field_7_palette_options);\n    }\n\n\n    /**\n     * get the additional palette options bitmask (see individual bit getter methods\n     * that reference this method)\n     *\n     *\n     * @return options - bitmask to set\n     *\n     */\n\n    public int getAdtlPaletteOptions()\n    {\n        return field_8_adtl_palette_options;\n    }\n\n\n    /**\n     * get the palette index for the top border\n     *\n     *\n     * @return border - palette index\n     * @see #getAdtlPaletteOptions()\n     */\n\n    public short getTopBorderPaletteIdx()\n    {\n        return ( short ) _top_border_palette_idx\n            .getValue(field_8_adtl_palette_options);\n    }\n\n    /**\n     * get the palette index for the bottom border\n     *\n     *\n     * @return border - palette index\n     * @see #getAdtlPaletteOptions()\n     */\n\n    public short getBottomBorderPaletteIdx()\n    {\n        return ( short ) _bottom_border_palette_idx\n            .getValue(field_8_adtl_palette_options);\n    }\n\n    /**\n     * get for diagonal borders?  No idea (its a palette color for the other function\n     * we didn't know what was?)\n     *\n     *\n     * @return diag - the palette index?\n     * @see #getAdtlPaletteOptions()\n     */\n\n    public short getAdtlDiag()\n    {\n        return ( short ) _adtl_diag.getValue(field_8_adtl_palette_options);\n    }\n\n    /**\n     * get the diagonal border line style?  Who the heck ever heard of a diagonal border?\n     *\n     *\n     * @return diag - the line style\n     * @see     #NONE\n     * @see     #THIN\n     * @see     #MEDIUM\n     * @see     #DASHED\n     * @see     #DOTTED\n     * @see     #THICK\n     * @see     #DOUBLE\n     * @see     #HAIR\n     * @see     #MEDIUM_DASHED\n     * @see     #DASH_DOT\n     * @see     #MEDIUM_DASH_DOT\n     * @see     #DASH_DOT_DOT\n     * @see     #MEDIUM_DASH_DOT_DOT\n     * @see     #SLANTED_DASH_DOT\n     * @see #getAdtlPaletteOptions()\n     */\n\n    public short getAdtlDiagLineStyle()\n    {\n        return ( short ) _adtl_diag_line_style\n            .getValue(field_8_adtl_palette_options);\n    }\n\n    /**\n     * get the additional fill pattern\n     *\n     * @see #NO_FILL\n     * @see #SOLID_FILL\n     * @see #FINE_DOTS\n     * @see #ALT_BARS\n     * @see #SPARSE_DOTS\n     * @see #THICK_HORZ_BANDS\n     * @see #THICK_VERT_BANDS\n     * @see #THICK_BACKWARD_DIAG\n     * @see #THICK_FORWARD_DIAG\n     * @see #BIG_SPOTS\n     * @see #BRICKS\n     * @see #THIN_HORZ_BANDS\n     * @see #THIN_VERT_BANDS\n     * @see #THIN_BACKWARD_DIAG\n     * @see #THIN_FORWARD_DIAG\n     * @see #SQUARES\n     * @see #DIAMONDS\n     *\n     * @return fill - fill pattern??\n     * @see #getAdtlPaletteOptions()\n     */\n\n    public short getAdtlFillPattern()\n    {\n        return ( short ) _adtl_fill_pattern\n            .getValue(field_8_adtl_palette_options);\n    }\n\n\n    /**\n     * get the fill palette options bitmask (see indivdual bit getters that\n     * reference this method)\n     *\n     * @return options\n     *\n     */\n\n    public short getFillPaletteOptions()\n    {\n        return field_9_fill_palette_options;\n    }\n\n\n    /**\n     * get the foreground palette color index\n     *\n     *\n     * @return color - palette index\n     * @see #getFillPaletteOptions()\n     */\n\n    public short getFillForeground()\n    {\n        return _fill_foreground.getShortValue(field_9_fill_palette_options);\n    }\n\n    /**\n     * get the background palette color index\n     *\n     * @return color palette index\n     * @see #getFillPaletteOptions()\n     */\n\n    public short getFillBackground()\n    {\n        return _fill_background.getShortValue(field_9_fill_palette_options);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[EXTENDEDFORMAT]\\n\");\n        if (getXFType() == XF_STYLE)\n        {\n            buffer.append(\" STYLE_RECORD_TYPE\\n\");\n        }\n        else if (getXFType() == XF_CELL)\n        {\n            buffer.append(\" CELL_RECORD_TYPE\\n\");\n        }\n        buffer.append(\"    .fontindex       = \")\n            .append(Integer.toHexString(getFontIndex())).append(\"\\n\");\n        buffer.append(\"    .formatindex     = \")\n            .append(Integer.toHexString(getFormatIndex())).append(\"\\n\");\n        buffer.append(\"    .celloptions     = \")\n            .append(Integer.toHexString(getCellOptions())).append(\"\\n\");\n        buffer.append(\"          .islocked  = \").append(isLocked())\n            .append(\"\\n\");\n        buffer.append(\"          .ishidden  = \").append(isHidden())\n            .append(\"\\n\");\n        buffer.append(\"          .recordtype= \")\n            .append(Integer.toHexString(getXFType())).append(\"\\n\");\n        buffer.append(\"          .parentidx = \")\n            .append(Integer.toHexString(getParentIndex())).append(\"\\n\");\n        buffer.append(\"    .alignmentoptions= \")\n            .append(Integer.toHexString(getAlignmentOptions())).append(\"\\n\");\n        buffer.append(\"          .alignment = \").append(getAlignment())\n            .append(\"\\n\");\n        buffer.append(\"          .wraptext  = \").append(getWrapText())\n            .append(\"\\n\");\n        buffer.append(\"          .valignment= \")\n            .append(Integer.toHexString(getVerticalAlignment())).append(\"\\n\");\n        buffer.append(\"          .justlast  = \")\n            .append(Integer.toHexString(getJustifyLast())).append(\"\\n\");\n        buffer.append(\"          .rotation  = \")\n            .append(Integer.toHexString(getRotation())).append(\"\\n\");\n        buffer.append(\"    .indentionoptions= \")\n            .append(Integer.toHexString(getIndentionOptions())).append(\"\\n\");\n        buffer.append(\"          .indent    = \")\n            .append(Integer.toHexString(getIndent())).append(\"\\n\");\n        buffer.append(\"          .shrinktoft= \").append(getShrinkToFit())\n            .append(\"\\n\");\n        buffer.append(\"          .mergecells= \").append(getMergeCells())\n            .append(\"\\n\");\n        buffer.append(\"          .readngordr= \")\n            .append(Integer.toHexString(getReadingOrder())).append(\"\\n\");\n        buffer.append(\"          .formatflag= \")\n            .append(isIndentNotParentFormat()).append(\"\\n\");\n        buffer.append(\"          .fontflag  = \")\n            .append(isIndentNotParentFont()).append(\"\\n\");\n        buffer.append(\"          .prntalgnmt= \")\n            .append(isIndentNotParentAlignment()).append(\"\\n\");\n        buffer.append(\"          .borderflag= \")\n            .append(isIndentNotParentBorder()).append(\"\\n\");\n        buffer.append(\"          .paternflag= \")\n            .append(isIndentNotParentPattern()).append(\"\\n\");\n        buffer.append(\"          .celloption= \")\n            .append(isIndentNotParentCellOptions()).append(\"\\n\");\n        buffer.append(\"    .borderoptns     = \")\n            .append(Integer.toHexString(getBorderOptions())).append(\"\\n\");\n        buffer.append(\"          .lftln     = \")\n            .append(Integer.toHexString(getBorderLeft())).append(\"\\n\");\n        buffer.append(\"          .rgtln     = \")\n            .append(Integer.toHexString(getBorderRight())).append(\"\\n\");\n        buffer.append(\"          .topln     = \")\n            .append(Integer.toHexString(getBorderTop())).append(\"\\n\");\n        buffer.append(\"          .btmln     = \")\n            .append(Integer.toHexString(getBorderBottom())).append(\"\\n\");\n        buffer.append(\"    .paleteoptns     = \")\n            .append(Integer.toHexString(getPaletteOptions())).append(\"\\n\");\n        buffer.append(\"          .leftborder= \")\n            .append(Integer.toHexString(getLeftBorderPaletteIdx()))\n            .append(\"\\n\");\n        buffer.append(\"          .rghtborder= \")\n            .append(Integer.toHexString(getRightBorderPaletteIdx()))\n            .append(\"\\n\");\n        buffer.append(\"          .diag      = \")\n            .append(Integer.toHexString(getDiag())).append(\"\\n\");\n        buffer.append(\"    .paleteoptn2     = \")\n            .append(Integer.toHexString(getAdtlPaletteOptions()))\n            .append(\"\\n\");\n        buffer.append(\"          .topborder = \")\n            .append(Integer.toHexString(getTopBorderPaletteIdx()))\n            .append(\"\\n\");\n        buffer.append(\"          .botmborder= \")\n            .append(Integer.toHexString(getBottomBorderPaletteIdx()))\n            .append(\"\\n\");\n        buffer.append(\"          .adtldiag  = \")\n            .append(Integer.toHexString(getAdtlDiag())).append(\"\\n\");\n        buffer.append(\"          .diaglnstyl= \")\n            .append(Integer.toHexString(getAdtlDiagLineStyle())).append(\"\\n\");\n        buffer.append(\"          .fillpattrn= \")\n            .append(Integer.toHexString(getAdtlFillPattern())).append(\"\\n\");\n        buffer.append(\"    .fillpaloptn     = \")\n            .append(Integer.toHexString(getFillPaletteOptions()))\n            .append(\"\\n\");\n        buffer.append(\"          .foreground= \")\n            .append(Integer.toHexString(getFillForeground())).append(\"\\n\");\n        buffer.append(\"          .background= \")\n            .append(Integer.toHexString(getFillBackground())).append(\"\\n\");\n        buffer.append(\"[/EXTENDEDFORMAT]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getFontIndex());\n        LittleEndian.putShort(data, 6 + offset, getFormatIndex());\n        LittleEndian.putShort(data, 8 + offset, getCellOptions());\n        LittleEndian.putShort(data, 10 + offset, getAlignmentOptions());\n        LittleEndian.putShort(data, 12 + offset, getIndentionOptions());\n        LittleEndian.putShort(data, 14 + offset, getBorderOptions());\n        LittleEndian.putShort(data, 16 + offset, getPaletteOptions());\n        LittleEndian.putInt(data, 18 + offset, getAdtlPaletteOptions());\n        LittleEndian.putShort(data, 22 + offset, getFillPaletteOptions());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 24;\n    }\n\n    public short getSid()\n    {\n        return sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A EXTENDED FORMAT RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_font_index           = in.readShort();\n        field_2_format_index         = in.readShort();\n        field_3_cell_options         = in.readShort();\n        field_4_alignment_options    = in.readShort();\n        field_5_indention_options    = in.readShort();\n        field_6_border_options       = in.readShort();\n        field_7_palette_options      = in.readShort();\n        field_8_adtl_palette_options = in.readInt();\n        field_9_fill_palette_options = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [9, 18], [10, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 9], [19, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setFontIndex", "code": "    public void setFontIndex(short index)\n    {\n        field_1_font_index = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFormatIndex", "code": "    public void setFormatIndex(short index)\n    {\n        field_2_format_index = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCellOptions", "code": "    public void setCellOptions(short options)\n    {\n        field_3_cell_options = options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLocked", "code": "    public void setLocked(boolean locked)\n    {\n        field_3_cell_options = _locked.setShortBoolean(field_3_cell_options,\n                locked);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setHidden", "code": "    public void setHidden(boolean hidden)\n    {\n        field_3_cell_options = _hidden.setShortBoolean(field_3_cell_options,\n                hidden);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setXFType", "code": "    public void setXFType(short type)\n    {\n        field_3_cell_options = _xf_type.setShortValue(field_3_cell_options,\n                type);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "set123Prefix", "code": "    public void set123Prefix(boolean prefix)\n    {\n        field_3_cell_options =\n            _123_prefix.setShortBoolean(field_3_cell_options, prefix);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setParentIndex", "code": "    public void setParentIndex(short parent)\n    {\n        field_3_cell_options =\n            _parent_index.setShortValue(field_3_cell_options, parent);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAlignmentOptions", "code": "    public void setAlignmentOptions(short options)\n    {\n        field_4_alignment_options = options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAlignment", "code": "    public void setAlignment(short align)\n    {\n        field_4_alignment_options =\n            _alignment.setShortValue(field_4_alignment_options, align);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setWrapText", "code": "    public void setWrapText(boolean wrapped)\n    {\n        field_4_alignment_options =\n            _wrap_text.setShortBoolean(field_4_alignment_options, wrapped);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setVerticalAlignment", "code": "    public void setVerticalAlignment(short align)\n    {\n        field_4_alignment_options =\n            _vertical_alignment.setShortValue(field_4_alignment_options,\n                                              align);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setJustifyLast", "code": "    public void setJustifyLast(short justify){\n        field_4_alignment_options =\n            _justify_last.setShortValue(field_4_alignment_options, justify);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRotation", "code": "    public void setRotation(short rotation)\n    {\n        field_4_alignment_options =\n            _rotation.setShortValue(field_4_alignment_options, rotation);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIndentionOptions", "code": "    public void setIndentionOptions(short options)\n    {\n        field_5_indention_options = options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIndent", "code": "    public void setIndent(short indent)\n    {\n        field_5_indention_options =\n            _indent.setShortValue(field_5_indention_options, indent);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setShrinkToFit", "code": "    public void setShrinkToFit(boolean shrink)\n    {\n        field_5_indention_options =\n            _shrink_to_fit.setShortBoolean(field_5_indention_options, shrink);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMergeCells", "code": "    public void setMergeCells(boolean merge)\n    {\n        field_5_indention_options =\n            _merge_cells.setShortBoolean(field_5_indention_options, merge);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setReadingOrder", "code": "    public void setReadingOrder(short order){\n        field_5_indention_options =\n            _reading_order.setShortValue(field_5_indention_options, order);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIndentNotParentFormat", "code": "    public void setIndentNotParentFormat(boolean parent)\n    {\n        field_5_indention_options =\n            _indent_not_parent_format\n                .setShortBoolean(field_5_indention_options, parent);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIndentNotParentFont", "code": "    public void setIndentNotParentFont(boolean font)\n    {\n        field_5_indention_options =\n            _indent_not_parent_font.setShortBoolean(field_5_indention_options,\n                                                    font);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIndentNotParentAlignment", "code": "    public void setIndentNotParentAlignment(boolean alignment)\n    {\n        field_5_indention_options =\n            _indent_not_parent_alignment\n                .setShortBoolean(field_5_indention_options, alignment);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIndentNotParentBorder", "code": "    public void setIndentNotParentBorder(boolean border)\n    {\n        field_5_indention_options =\n            _indent_not_parent_border\n                .setShortBoolean(field_5_indention_options, border);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIndentNotParentPattern", "code": "    public void setIndentNotParentPattern(boolean pattern)\n    {\n        field_5_indention_options =\n            _indent_not_parent_pattern\n                .setShortBoolean(field_5_indention_options, pattern);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIndentNotParentCellOptions", "code": "    public void setIndentNotParentCellOptions(boolean options)\n    {\n        field_5_indention_options =\n            _indent_not_parent_cell_options\n                .setShortBoolean(field_5_indention_options, options);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBorderOptions", "code": "    public void setBorderOptions(short options)\n    {\n        field_6_border_options = options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBorderLeft", "code": "    public void setBorderLeft(short border)\n    {\n        field_6_border_options =\n            _border_left.setShortValue(field_6_border_options, border);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBorderRight", "code": "    public void setBorderRight(short border)\n    {\n        field_6_border_options =\n            _border_right.setShortValue(field_6_border_options, border);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBorderTop", "code": "    public void setBorderTop(short border)\n    {\n        field_6_border_options =\n            _border_top.setShortValue(field_6_border_options, border);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBorderBottom", "code": "    public void setBorderBottom(short border)\n    {\n        field_6_border_options =\n            _border_bottom.setShortValue(field_6_border_options, border);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setPaletteOptions", "code": "    public void setPaletteOptions(short options)\n    {\n        field_7_palette_options = options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLeftBorderPaletteIdx", "code": "    public void setLeftBorderPaletteIdx(short border)\n    {\n        field_7_palette_options =\n            _left_border_palette_idx.setShortValue(field_7_palette_options,\n                                                   border);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRightBorderPaletteIdx", "code": "    public void setRightBorderPaletteIdx(short border)\n    {\n        field_7_palette_options =\n            _right_border_palette_idx.setShortValue(field_7_palette_options,\n                                                    border);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDiag", "code": "    public void setDiag(short diag)\n    {\n        field_7_palette_options = _diag.setShortValue(field_7_palette_options,\n                diag);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAdtlPaletteOptions", "code": "    public void setAdtlPaletteOptions(short options)\n    {\n        field_8_adtl_palette_options = options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTopBorderPaletteIdx", "code": "    public void setTopBorderPaletteIdx(short border)\n    {\n        field_8_adtl_palette_options =\n            _top_border_palette_idx.setValue(field_8_adtl_palette_options,\n                                             border);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBottomBorderPaletteIdx", "code": "    public void setBottomBorderPaletteIdx(short border)\n    {\n        field_8_adtl_palette_options =\n            _bottom_border_palette_idx.setValue(field_8_adtl_palette_options,\n                                                border);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAdtlDiag", "code": "    public void setAdtlDiag(short diag)\n    {\n        field_8_adtl_palette_options =\n            _adtl_diag.setValue(field_8_adtl_palette_options, diag);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAdtlDiagLineStyle", "code": "    public void setAdtlDiagLineStyle(short diag)\n    {\n        field_8_adtl_palette_options =\n            _adtl_diag_line_style.setValue(field_8_adtl_palette_options,\n                                           diag);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAdtlFillPattern", "code": "    public void setAdtlFillPattern(short fill)\n    {\n        field_8_adtl_palette_options =\n            _adtl_fill_pattern.setValue(field_8_adtl_palette_options, fill);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFillPaletteOptions", "code": "    public void setFillPaletteOptions(short options)\n    {\n        field_9_fill_palette_options = options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFillForeground", "code": "    public void setFillForeground(short color)\n    {\n        field_9_fill_palette_options =\n            _fill_foreground.setShortValue(field_9_fill_palette_options,\n                                           color);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFillBackground", "code": "    public void setFillBackground(short color)\n    {\n        field_9_fill_palette_options =\n            _fill_background.setShortValue(field_9_fill_palette_options,\n                                           color);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFontIndex", "code": "    public short getFontIndex()\n    {\n        return field_1_font_index;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFormatIndex", "code": "    public short getFormatIndex()\n    {\n        return field_2_format_index;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCellOptions", "code": "    public short getCellOptions()\n    {\n        return field_3_cell_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isLocked", "code": "    public boolean isLocked()\n    {\n        return _locked.isSet(field_3_cell_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isHidden", "code": "    public boolean isHidden()\n    {\n        return _hidden.isSet(field_3_cell_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXFType", "code": "    public short getXFType()\n    {\n        return _xf_type.getShortValue(field_3_cell_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "get123Prefix", "code": "    public boolean get123Prefix()\n    {\n        return _123_prefix.isSet(field_3_cell_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParentIndex", "code": "    public short getParentIndex()\n    {\n        return _parent_index.getShortValue(field_3_cell_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAlignmentOptions", "code": "    public short getAlignmentOptions()\n    {\n        return field_4_alignment_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAlignment", "code": "    public short getAlignment()\n    {\n        return _alignment.getShortValue(field_4_alignment_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWrapText", "code": "    public boolean getWrapText()\n    {\n        return _wrap_text.isSet(field_4_alignment_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVerticalAlignment", "code": "    public short getVerticalAlignment()\n    {\n        return _vertical_alignment.getShortValue(field_4_alignment_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getJustifyLast", "code": "    public short getJustifyLast(){\n        return _justify_last.getShortValue(field_4_alignment_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRotation", "code": "    public short getRotation()\n    {\n        return _rotation.getShortValue(field_4_alignment_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIndentionOptions", "code": "    public short getIndentionOptions()\n    {\n        return field_5_indention_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIndent", "code": "    public short getIndent()\n    {\n        return _indent.getShortValue(field_5_indention_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getShrinkToFit", "code": "    public boolean getShrinkToFit()\n    {\n        return _shrink_to_fit.isSet(field_5_indention_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMergeCells", "code": "    public boolean getMergeCells()\n    {\n        return _merge_cells.isSet(field_5_indention_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReadingOrder", "code": "    public short getReadingOrder(){\n        return _reading_order.getShortValue(field_5_indention_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isIndentNotParentFormat", "code": "    public boolean isIndentNotParentFormat()\n    {\n        return _indent_not_parent_format.isSet(field_5_indention_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isIndentNotParentFont", "code": "    public boolean isIndentNotParentFont()\n    {\n        return _indent_not_parent_font.isSet(field_5_indention_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isIndentNotParentAlignment", "code": "    public boolean isIndentNotParentAlignment()\n    {\n        return _indent_not_parent_alignment.isSet(field_5_indention_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isIndentNotParentBorder", "code": "    public boolean isIndentNotParentBorder()\n    {\n        return _indent_not_parent_border.isSet(field_5_indention_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isIndentNotParentPattern", "code": "    public boolean isIndentNotParentPattern()\n    {\n        return _indent_not_parent_pattern.isSet(field_5_indention_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isIndentNotParentCellOptions", "code": "    public boolean isIndentNotParentCellOptions()\n    {\n        return _indent_not_parent_cell_options\n            .isSet(field_5_indention_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBorderOptions", "code": "    public short getBorderOptions()\n    {\n        return field_6_border_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBorderLeft", "code": "    public short getBorderLeft()\n    {\n        return _border_left.getShortValue(field_6_border_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBorderRight", "code": "    public short getBorderRight()\n    {\n        return _border_right.getShortValue(field_6_border_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBorderTop", "code": "    public short getBorderTop()\n    {\n        return _border_top.getShortValue(field_6_border_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBorderBottom", "code": "    public short getBorderBottom()\n    {\n        return _border_bottom.getShortValue(field_6_border_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPaletteOptions", "code": "    public short getPaletteOptions()\n    {\n        return field_7_palette_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLeftBorderPaletteIdx", "code": "    public short getLeftBorderPaletteIdx()\n    {\n        return _left_border_palette_idx\n            .getShortValue(field_7_palette_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRightBorderPaletteIdx", "code": "    public short getRightBorderPaletteIdx()\n    {\n        return _right_border_palette_idx\n            .getShortValue(field_7_palette_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDiag", "code": "    public short getDiag()\n    {\n        return _diag.getShortValue(field_7_palette_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAdtlPaletteOptions", "code": "    public int getAdtlPaletteOptions()\n    {\n        return field_8_adtl_palette_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTopBorderPaletteIdx", "code": "    public short getTopBorderPaletteIdx()\n    {\n        return ( short ) _top_border_palette_idx\n            .getValue(field_8_adtl_palette_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBottomBorderPaletteIdx", "code": "    public short getBottomBorderPaletteIdx()\n    {\n        return ( short ) _bottom_border_palette_idx\n            .getValue(field_8_adtl_palette_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAdtlDiag", "code": "    public short getAdtlDiag()\n    {\n        return ( short ) _adtl_diag.getValue(field_8_adtl_palette_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAdtlDiagLineStyle", "code": "    public short getAdtlDiagLineStyle()\n    {\n        return ( short ) _adtl_diag_line_style\n            .getValue(field_8_adtl_palette_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAdtlFillPattern", "code": "    public short getAdtlFillPattern()\n    {\n        return ( short ) _adtl_fill_pattern\n            .getValue(field_8_adtl_palette_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFillPaletteOptions", "code": "    public short getFillPaletteOptions()\n    {\n        return field_9_fill_palette_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFillForeground", "code": "    public short getFillForeground()\n    {\n        return _fill_foreground.getShortValue(field_9_fill_palette_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFillBackground", "code": "    public short getFillBackground()\n    {\n        return _fill_background.getShortValue(field_9_fill_palette_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[EXTENDEDFORMAT]\\n\");\n        if (getXFType() == XF_STYLE)\n        {\n            buffer.append(\" STYLE_RECORD_TYPE\\n\");\n        }\n        else if (getXFType() == XF_CELL)\n        {\n            buffer.append(\" CELL_RECORD_TYPE\\n\");\n        }\n        buffer.append(\"    .fontindex       = \")\n            .append(Integer.toHexString(getFontIndex())).append(\"\\n\");\n        buffer.append(\"    .formatindex     = \")\n            .append(Integer.toHexString(getFormatIndex())).append(\"\\n\");\n        buffer.append(\"    .celloptions     = \")\n            .append(Integer.toHexString(getCellOptions())).append(\"\\n\");\n        buffer.append(\"          .islocked  = \").append(isLocked())\n            .append(\"\\n\");\n        buffer.append(\"          .ishidden  = \").append(isHidden())\n            .append(\"\\n\");\n        buffer.append(\"          .recordtype= \")\n            .append(Integer.toHexString(getXFType())).append(\"\\n\");\n        buffer.append(\"          .parentidx = \")\n            .append(Integer.toHexString(getParentIndex())).append(\"\\n\");\n        buffer.append(\"    .alignmentoptions= \")\n            .append(Integer.toHexString(getAlignmentOptions())).append(\"\\n\");\n        buffer.append(\"          .alignment = \").append(getAlignment())\n            .append(\"\\n\");\n        buffer.append(\"          .wraptext  = \").append(getWrapText())\n            .append(\"\\n\");\n        buffer.append(\"          .valignment= \")\n            .append(Integer.toHexString(getVerticalAlignment())).append(\"\\n\");\n        buffer.append(\"          .justlast  = \")\n            .append(Integer.toHexString(getJustifyLast())).append(\"\\n\");\n        buffer.append(\"          .rotation  = \")\n            .append(Integer.toHexString(getRotation())).append(\"\\n\");\n        buffer.append(\"    .indentionoptions= \")\n            .append(Integer.toHexString(getIndentionOptions())).append(\"\\n\");\n        buffer.append(\"          .indent    = \")\n            .append(Integer.toHexString(getIndent())).append(\"\\n\");\n        buffer.append(\"          .shrinktoft= \").append(getShrinkToFit())\n            .append(\"\\n\");\n        buffer.append(\"          .mergecells= \").append(getMergeCells())\n            .append(\"\\n\");\n        buffer.append(\"          .readngordr= \")\n            .append(Integer.toHexString(getReadingOrder())).append(\"\\n\");\n        buffer.append(\"          .formatflag= \")\n            .append(isIndentNotParentFormat()).append(\"\\n\");\n        buffer.append(\"          .fontflag  = \")\n            .append(isIndentNotParentFont()).append(\"\\n\");\n        buffer.append(\"          .prntalgnmt= \")\n            .append(isIndentNotParentAlignment()).append(\"\\n\");\n        buffer.append(\"          .borderflag= \")\n            .append(isIndentNotParentBorder()).append(\"\\n\");\n        buffer.append(\"          .paternflag= \")\n            .append(isIndentNotParentPattern()).append(\"\\n\");\n        buffer.append(\"          .celloption= \")\n            .append(isIndentNotParentCellOptions()).append(\"\\n\");\n        buffer.append(\"    .borderoptns     = \")\n            .append(Integer.toHexString(getBorderOptions())).append(\"\\n\");\n        buffer.append(\"          .lftln     = \")\n            .append(Integer.toHexString(getBorderLeft())).append(\"\\n\");\n        buffer.append(\"          .rgtln     = \")\n            .append(Integer.toHexString(getBorderRight())).append(\"\\n\");\n        buffer.append(\"          .topln     = \")\n            .append(Integer.toHexString(getBorderTop())).append(\"\\n\");\n        buffer.append(\"          .btmln     = \")\n            .append(Integer.toHexString(getBorderBottom())).append(\"\\n\");\n        buffer.append(\"    .paleteoptns     = \")\n            .append(Integer.toHexString(getPaletteOptions())).append(\"\\n\");\n        buffer.append(\"          .leftborder= \")\n            .append(Integer.toHexString(getLeftBorderPaletteIdx()))\n            .append(\"\\n\");\n        buffer.append(\"          .rghtborder= \")\n            .append(Integer.toHexString(getRightBorderPaletteIdx()))\n            .append(\"\\n\");\n        buffer.append(\"          .diag      = \")\n            .append(Integer.toHexString(getDiag())).append(\"\\n\");\n        buffer.append(\"    .paleteoptn2     = \")\n            .append(Integer.toHexString(getAdtlPaletteOptions()))\n            .append(\"\\n\");\n        buffer.append(\"          .topborder = \")\n            .append(Integer.toHexString(getTopBorderPaletteIdx()))\n            .append(\"\\n\");\n        buffer.append(\"          .botmborder= \")\n            .append(Integer.toHexString(getBottomBorderPaletteIdx()))\n            .append(\"\\n\");\n        buffer.append(\"          .adtldiag  = \")\n            .append(Integer.toHexString(getAdtlDiag())).append(\"\\n\");\n        buffer.append(\"          .diaglnstyl= \")\n            .append(Integer.toHexString(getAdtlDiagLineStyle())).append(\"\\n\");\n        buffer.append(\"          .fillpattrn= \")\n            .append(Integer.toHexString(getAdtlFillPattern())).append(\"\\n\");\n        buffer.append(\"    .fillpaloptn     = \")\n            .append(Integer.toHexString(getFillPaletteOptions()))\n            .append(\"\\n\");\n        buffer.append(\"          .foreground= \")\n            .append(Integer.toHexString(getFillForeground())).append(\"\\n\");\n        buffer.append(\"          .background= \")\n            .append(Integer.toHexString(getFillBackground())).append(\"\\n\");\n        buffer.append(\"[/EXTENDEDFORMAT]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [2, 48], [2, 49], [0, 50], [5, 51], [6, 52], [6, 53], [6, 54], [7, 55], [7, 56], [7, 57], [8, 58], [8, 59], [8, 60], [9, 61], [9, 62], [9, 63], [10, 64], [10, 65], [10, 66], [11, 67], [11, 68], [11, 69], [12, 70], [12, 71], [12, 72], [13, 73], [13, 74], [13, 75], [14, 76], [14, 77], [14, 78], [15, 79], [15, 80], [15, 81], [16, 82], [16, 83], [16, 84], [17, 85], [17, 86], [17, 87], [18, 88], [18, 89], [18, 90], [19, 91], [19, 92], [19, 93], [20, 94], [20, 95], [20, 96], [21, 97], [21, 98], [21, 99], [22, 100], [22, 101], [22, 102], [23, 103], [23, 104], [23, 105], [24, 106], [24, 107], [24, 108], [25, 109], [25, 110], [25, 111], [26, 112], [26, 113], [26, 114], [27, 115], [27, 116], [27, 117], [28, 118], [28, 119], [28, 120], [29, 121], [29, 122], [29, 123], [30, 124], [30, 125], [30, 126], [31, 127], [31, 128], [31, 129], [32, 130], [32, 131], [32, 132], [33, 133], [33, 134], [33, 135], [34, 136], [34, 137], [34, 138], [35, 139], [35, 140], [35, 141], [36, 142], [36, 143], [36, 144], [37, 145], [37, 146], [37, 147], [38, 148], [38, 149], [38, 150], [39, 151], [39, 152], [39, 153], [40, 154], [40, 155], [40, 156], [41, 157], [41, 158], [41, 159], [42, 160], [42, 161], [42, 162], [43, 163], [43, 164], [43, 165], [44, 166], [44, 167], [44, 168], [45, 169], [45, 170], [45, 171], [46, 172], [46, 173], [46, 174], [47, 175], [47, 176], [47, 177], [48, 178], [49, 179], [50, 180], [3, 181], [53, 182], [54, 183], [56, 184], [57, 185], [59, 186], [60, 187], [62, 188], [63, 189], [65, 190], [66, 191], [68, 192], [69, 193], [71, 194], [72, 195], [74, 196], [75, 197], [77, 198], [78, 199], [80, 200], [81, 201], [83, 202], [84, 203], [86, 204], [87, 205], [89, 206], [90, 207], [92, 208], [93, 209], [95, 210], [96, 211], [98, 212], [99, 213], [101, 214], [102, 215], [104, 216], [105, 217], [107, 218], [108, 219], [110, 220], [111, 221], [113, 222], [114, 223], [116, 224], [117, 225], [119, 226], [120, 227], [122, 228], [123, 229], [125, 230], [126, 231], [128, 232], [129, 233], [131, 234], [132, 235], [134, 236], [135, 237], [137, 238], [138, 239], [140, 240], [141, 241], [143, 242], [144, 243], [146, 244], [147, 245], [149, 246], [150, 247], [152, 248], [153, 249], [155, 250], [156, 251], [158, 252], [159, 253], [161, 254], [162, 255], [164, 256], [165, 257], [167, 258], [168, 259], [170, 260], [171, 261], [173, 262], [174, 263], [176, 264], [177, 265], [178, 266], [2, 267], [183, 268], [185, 269], [187, 270], [189, 271], [191, 272], [193, 273], [195, 274], [197, 275], [199, 276], [201, 277], [203, 278], [205, 279], [207, 280], [209, 281], [211, 282], [213, 283], [215, 284], [217, 285], [231, 286], [237, 287], [239, 288], [241, 289], [243, 290], [245, 291], [251, 292], [253, 293], [255, 294], [261, 295], [263, 296], [265, 297], [48, 298], [267, 299], [298, 300], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 2], [49, 2], [50, 0], [51, 5], [52, 6], [53, 6], [54, 6], [55, 7], [56, 7], [57, 7], [58, 8], [59, 8], [60, 8], [61, 9], [62, 9], [63, 9], [64, 10], [65, 10], [66, 10], [67, 11], [68, 11], [69, 11], [70, 12], [71, 12], [72, 12], [73, 13], [74, 13], [75, 13], [76, 14], [77, 14], [78, 14], [79, 15], [80, 15], [81, 15], [82, 16], [83, 16], [84, 16], [85, 17], [86, 17], [87, 17], [88, 18], [89, 18], [90, 18], [91, 19], [92, 19], [93, 19], [94, 20], [95, 20], [96, 20], [97, 21], [98, 21], [99, 21], [100, 22], [101, 22], [102, 22], [103, 23], [104, 23], [105, 23], [106, 24], [107, 24], [108, 24], [109, 25], [110, 25], [111, 25], [112, 26], [113, 26], [114, 26], [115, 27], [116, 27], [117, 27], [118, 28], [119, 28], [120, 28], [121, 29], [122, 29], [123, 29], [124, 30], [125, 30], [126, 30], [127, 31], [128, 31], [129, 31], [130, 32], [131, 32], [132, 32], [133, 33], [134, 33], [135, 33], [136, 34], [137, 34], [138, 34], [139, 35], [140, 35], [141, 35], [142, 36], [143, 36], [144, 36], [145, 37], [146, 37], [147, 37], [148, 38], [149, 38], [150, 38], [151, 39], [152, 39], [153, 39], [154, 40], [155, 40], [156, 40], [157, 41], [158, 41], [159, 41], [160, 42], [161, 42], [162, 42], [163, 43], [164, 43], [165, 43], [166, 44], [167, 44], [168, 44], [169, 45], [170, 45], [171, 45], [172, 46], [173, 46], [174, 46], [175, 47], [176, 47], [177, 47], [178, 48], [179, 49], [180, 50], [181, 3], [182, 53], [183, 54], [184, 56], [185, 57], [186, 59], [187, 60], [188, 62], [189, 63], [190, 65], [191, 66], [192, 68], [193, 69], [194, 71], [195, 72], [196, 74], [197, 75], [198, 77], [199, 78], [200, 80], [201, 81], [202, 83], [203, 84], [204, 86], [205, 87], [206, 89], [207, 90], [208, 92], [209, 93], [210, 95], [211, 96], [212, 98], [213, 99], [214, 101], [215, 102], [216, 104], [217, 105], [218, 107], [219, 108], [220, 110], [221, 111], [222, 113], [223, 114], [224, 116], [225, 117], [226, 119], [227, 120], [228, 122], [229, 123], [230, 125], [231, 126], [232, 128], [233, 129], [234, 131], [235, 132], [236, 134], [237, 135], [238, 137], [239, 138], [240, 140], [241, 141], [242, 143], [243, 144], [244, 146], [245, 147], [246, 149], [247, 150], [248, 152], [249, 153], [250, 155], [251, 156], [252, 158], [253, 159], [254, 161], [255, 162], [256, 164], [257, 165], [258, 167], [259, 168], [260, 170], [261, 171], [262, 173], [263, 174], [264, 176], [265, 177], [266, 178], [267, 2], [268, 183], [269, 185], [270, 187], [271, 189], [272, 191], [273, 193], [274, 195], [275, 197], [276, 199], [277, 201], [278, 203], [279, 205], [280, 207], [281, 209], [282, 211], [283, 213], [284, 215], [285, 217], [286, 231], [287, 237], [288, 239], [289, 241], [290, 243], [291, 245], [292, 251], [293, 253], [294, 255], [295, 261], [296, 263], [297, 265], [298, 48], [299, 267], [300, 298], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getFontIndex());\n        LittleEndian.putShort(data, 6 + offset, getFormatIndex());\n        LittleEndian.putShort(data, 8 + offset, getCellOptions());\n        LittleEndian.putShort(data, 10 + offset, getAlignmentOptions());\n        LittleEndian.putShort(data, 12 + offset, getIndentionOptions());\n        LittleEndian.putShort(data, 14 + offset, getBorderOptions());\n        LittleEndian.putShort(data, 16 + offset, getPaletteOptions());\n        LittleEndian.putInt(data, 18 + offset, getAdtlPaletteOptions());\n        LittleEndian.putShort(data, 22 + offset, getFillPaletteOptions());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [5, 16], [5, 17], [6, 18], [6, 19], [7, 20], [7, 21], [8, 22], [8, 23], [9, 24], [9, 25], [10, 26], [10, 27], [11, 28], [11, 29], [12, 30], [12, 31], [13, 32], [13, 33], [14, 34], [15, 35], [17, 36], [19, 37], [21, 38], [23, 39], [25, 40], [27, 41], [29, 42], [31, 43], [33, 44], [34, 45], [35, 46], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 5], [17, 5], [18, 6], [19, 6], [20, 7], [21, 7], [22, 8], [23, 8], [24, 9], [25, 9], [26, 10], [27, 10], [28, 11], [29, 11], [30, 12], [31, 12], [32, 13], [33, 13], [34, 14], [35, 15], [36, 17], [37, 19], [38, 21], [39, 23], [40, 25], [41, 27], [42, 29], [43, 31], [44, 33], [45, 34], [46, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 24;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ExtendedFormatRecord", "code": "    public ExtendedFormatRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ExtendedFormatRecord", "code": "    public ExtendedFormatRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "poi-2.5-5896", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/FormatRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.FormatRecord", "code": "public class FormatRecord\n    extends Record\n{\n    public final static short sid = 0x41e;\n    private short             field_1_index_code;\n    private short             field_2_formatstring_len;\n    private String            field_4_formatstring;\n\n    public FormatRecord()\n    {\n    }\n\n    /**\n     * Constructs a Format record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x41e or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public FormatRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a Format record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x41e or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public FormatRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A FORMAT RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_index_code       = LittleEndian.getShort(data, 0 + offset);\n        field_3_unicode_len      = LittleEndian.getShort( data, 2 + offset );\n\tfield_2_formatstring_len = field_3_unicode_len;\n        field_3_unicode_flag     = ( data[ 4 + offset ] & (byte)0x01 ) != 0;\n                                              \n                                              \n      if ( field_3_unicode_flag  ) {\n          field_4_formatstring = StringUtil.getFromUnicodeHigh( data, 5 + offset, field_3_unicode_len );\n      }\n      else {\n          field_4_formatstring = StringUtil.getFromCompressedUnicode(data, 5 + offset, field_3_unicode_len );\n      }\n    }\n\n    /**\n     * set the format index code (for built in formats)\n     *\n     * @param index  the format index code\n     * @see org.apache.poi.hssf.model.Workbook\n     */\n\n    public void setIndexCode(short index)\n    {\n        field_1_index_code = index;\n    }\n\n    /**\n     * set the format string length\n     *\n     * @param len  the length of the format string\n     * @see #setFormatString(String)\n     */\n    \n    public void setFormatStringLength(byte len)\n    {\n        field_2_formatstring_len = len;\n\tfield_3_unicode_len = len;\n    }\n\n    /**\n     * set whether the string is unicode\n     *\n     * @param unicode flag for whether string is unicode\n     */\n\n    public void setUnicodeFlag(boolean unicode) {\n\tfield_3_unicode_flag = unicode;\n    }\n\n    /**\n     * set the format string\n     *\n     * @param fs  the format string\n     * @see #setFormatStringLength(byte)\n     */\n\n    public void setFormatString(String fs)\n    {\n        field_4_formatstring = fs;\n    }\n\n    /**\n     * get the format index code (for built in formats)\n     *\n     * @return the format index code\n     * @see org.apache.poi.hssf.model.Workbook\n     */\n\n    public short getIndexCode()\n    {\n        return field_1_index_code;\n    }\n\n    /**\n     * get the format string length\n     *\n     * @return the length of the format string\n     * @see #getFormatString()\n     */\n\n    public short getFormatStringLength()\n    {\n        return field_3_unicode_flag ? field_3_unicode_len : field_2_formatstring_len;\n    }\n\n    /**\n     * get whether the string is unicode\n     *\n     * @return flag for whether string is unicode\n     */\n\n    public boolean getUnicodeFlag() {\n\treturn field_3_unicode_flag;\n    }    \n\n    /**\n     * get the format string\n     *\n     * @return the format string\n     * @see #getFormatStringLength()\n     */\n\n    public String getFormatString()\n    {\n        return field_4_formatstring;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[FORMAT]\\n\");\n        buffer.append(\"    .indexcode       = \")\n            .append(Integer.toHexString(getIndexCode())).append(\"\\n\");\n        /*\n        buffer.append(\"    .formatstringlen = \")\n            .append(Integer.toHexString(getFormatStringLength()))\n            .append(\"\\n\");\n        */\n        buffer.append(\"    .unicode length  = \")\n            .append(Integer.toHexString(field_3_unicode_len)).append(\"\\n\");\n        buffer.append(\"    .isUnicode       = \")\n            .append( field_3_unicode_flag ).append(\"\\n\");\n        buffer.append(\"    .formatstring    = \").append(getFormatString())\n            .append(\"\\n\");\n        buffer.append(\"[/FORMAT]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)( 2 + 2 + 1 + ( (field_3_unicode_flag) \n                                                                  ? 2 * field_3_unicode_len \n                                                                  : field_3_unicode_len ) ) );\n        LittleEndian.putShort(data, 4 + offset, getIndexCode());\n        LittleEndian.putShort(data, 6 + offset, field_3_unicode_len);\n        data[ 8 + offset ] = (byte)( (field_3_unicode_flag) ? 0x01 : 0x00 );\n\n      if ( field_3_unicode_flag ) {\n          StringUtil.putUncompressedUnicode( getFormatString(), data, 9 + offset );\n      }\n      else {\n          StringUtil.putCompressedUnicode( getFormatString(), data, 9 + offset );\n      }\n      \n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 9 + ( ( field_3_unicode_flag ) ? 2 * field_3_unicode_len : field_3_unicode_len );\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A FORMAT RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_index_code       = LittleEndian.getShort(data, 0 + offset);\n        field_3_unicode_len      = LittleEndian.getShort( data, 2 + offset );\n\tfield_2_formatstring_len = field_3_unicode_len;\n        field_3_unicode_flag     = ( data[ 4 + offset ] & (byte)0x01 ) != 0;\n                                              \n                                              \n      if ( field_3_unicode_flag  ) {\n          field_4_formatstring = StringUtil.getFromUnicodeHigh( data, 5 + offset, field_3_unicode_len );\n      }\n      else {\n          field_4_formatstring = StringUtil.getFromCompressedUnicode(data, 5 + offset, field_3_unicode_len );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [7, 10], [8, 11], [1, 12], [1, 13], [9, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [16, 20], [17, 21], [18, 22], [19, 23], [15, 24], [22, 25], [23, 26], [15, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 7], [11, 8], [12, 1], [13, 1], [14, 9], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 16], [21, 17], [22, 18], [23, 19], [24, 15], [25, 22], [26, 23], [27, 15], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "setIndexCode", "code": "    public void setIndexCode(short index)\n    {\n        field_1_index_code = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFormatStringLength", "code": "    public void setFormatStringLength(byte len)\n    {\n        field_2_formatstring_len = len;\n\tfield_3_unicode_len = len;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setUnicodeFlag", "code": "    public void setUnicodeFlag(boolean unicode) {\n\tfield_3_unicode_flag = unicode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFormatString", "code": "    public void setFormatString(String fs)\n    {\n        field_4_formatstring = fs;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIndexCode", "code": "    public short getIndexCode()\n    {\n        return field_1_index_code;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFormatStringLength", "code": "    public short getFormatStringLength()\n    {\n        return field_3_unicode_flag ? field_3_unicode_len : field_2_formatstring_len;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUnicodeFlag", "code": "    public boolean getUnicodeFlag() {\n\treturn field_3_unicode_flag;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFormatString", "code": "    public String getFormatString()\n    {\n        return field_4_formatstring;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[FORMAT]\\n\");\n        buffer.append(\"    .indexcode       = \")\n            .append(Integer.toHexString(getIndexCode())).append(\"\\n\");\n        /*\n        buffer.append(\"    .formatstringlen = \")\n            .append(Integer.toHexString(getFormatStringLength()))\n            .append(\"\\n\");\n        */\n        buffer.append(\"    .unicode length  = \")\n            .append(Integer.toHexString(field_3_unicode_len)).append(\"\\n\");\n        buffer.append(\"    .isUnicode       = \")\n            .append( field_3_unicode_flag ).append(\"\\n\");\n        buffer.append(\"    .formatstring    = \").append(getFormatString())\n            .append(\"\\n\");\n        buffer.append(\"[/FORMAT]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [5, 12], [5, 13], [6, 14], [6, 15], [6, 16], [7, 17], [7, 18], [7, 19], [8, 20], [8, 21], [8, 22], [9, 23], [2, 24], [12, 25], [13, 26], [15, 27], [18, 28], [19, 29], [21, 30], [22, 31], [31, 32], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 5], [13, 5], [14, 6], [15, 6], [16, 6], [17, 7], [18, 7], [19, 7], [20, 8], [21, 8], [22, 8], [23, 9], [24, 2], [25, 12], [26, 13], [27, 15], [28, 18], [29, 19], [30, 21], [31, 22], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)( 2 + 2 + 1 + ( (field_3_unicode_flag) \n                                                                  ? 2 * field_3_unicode_len \n                                                                  : field_3_unicode_len ) ) );\n        LittleEndian.putShort(data, 4 + offset, getIndexCode());\n        LittleEndian.putShort(data, 6 + offset, field_3_unicode_len);\n        data[ 8 + offset ] = (byte)( (field_3_unicode_flag) ? 0x01 : 0x00 );\n\n      if ( field_3_unicode_flag ) {\n          StringUtil.putUncompressedUnicode( getFormatString(), data, 9 + offset );\n      }\n      else {\n          StringUtil.putCompressedUnicode( getFormatString(), data, 9 + offset );\n      }\n      \n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [7, 11], [8, 12], [8, 13], [9, 14], [10, 15], [2, 16], [2, 17], [6, 18], [11, 19], [13, 20], [9, 21], [14, 22], [15, 23], [16, 24], [16, 25], [17, 26], [17, 27], [18, 28], [18, 29], [6, 30], [21, 31], [21, 32], [24, 33], [26, 34], [30, 35], [31, 36], [32, 37], [32, 38], [36, 39], [38, 40], [38, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 7], [12, 8], [13, 8], [14, 9], [15, 10], [16, 2], [17, 2], [18, 6], [19, 11], [20, 13], [21, 9], [22, 14], [23, 15], [24, 16], [25, 16], [26, 17], [27, 17], [28, 18], [29, 18], [30, 6], [31, 21], [32, 21], [33, 24], [34, 26], [35, 30], [36, 31], [37, 32], [38, 32], [39, 36], [40, 38], [41, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 9 + ( ( field_3_unicode_flag ) ? 2 * field_3_unicode_len : field_3_unicode_len );", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FormatRecord", "code": "    public FormatRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FormatRecord", "code": "    public FormatRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FormatRecord", "code": "    public FormatRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.6-600", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/selectors/BaseSelectorContainer.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.BaseSelectorContainer", "code": "public abstract class BaseSelectorContainer extends BaseSelector\n        implements SelectorContainer {\n\n    private Vector selectorsList = new Vector();\n\n    /**\n     * Default constructor.\n     */\n    public BaseSelectorContainer() {\n    }\n\n    /**\n     * Indicates whether there are any selectors here.\n     * @return true if there are selectors\n     */\n    public boolean hasSelectors() {\n        return !(selectorsList.isEmpty());\n    }\n\n    /**\n     * Gives the count of the number of selectors in this container\n     * @return the number of selectors\n     */\n    public int selectorCount() {\n        return selectorsList.size();\n    }\n\n    /**\n     * Returns the set of selectors as an array.\n     * @param p the current project\n     * @return an array of selectors\n     */\n    public FileSelector[] getSelectors(Project p) {\n        FileSelector[] result = new FileSelector[selectorsList.size()];\n        selectorsList.copyInto(result);\n        return result;\n    }\n\n    /**\n     * Returns an enumerator for accessing the set of selectors.\n     * @return an enumerator for the selectors\n     */\n    public Enumeration selectorElements() {\n        return selectorsList.elements();\n    }\n\n    /**\n     * Convert the Selectors within this container to a string. This will\n     * just be a helper class for the subclasses that put their own name\n     * around the contents listed here.\n     *\n     * @return comma separated list of Selectors contained in this one\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        Enumeration e = selectorElements();\n        if (e.hasMoreElements()) {\n            while (e.hasMoreElements()) {\n                buf.append(e.nextElement().toString());\n                if (e.hasMoreElements()) {\n                    buf.append(\", \");\n                }\n            }\n        }\n\n        return buf.toString();\n    }\n\n    /**\n     * Add a new selector into this container.\n     *\n     * @param selector the new selector to add\n     */\n    public void appendSelector(FileSelector selector) {\n        selectorsList.addElement(selector);\n    }\n\n    /**\n     * <p>This implementation validates the container by calling\n     * verifySettings() and then validates each contained selector\n     * provided that the selector implements the validate interface.\n     * </p>\n     * <p>Ordinarily, this will validate all the elements of a selector\n     * container even if the isSelected() method of some elements is\n     * never called. This has two effects:</p>\n     * <ul>\n     * <li>Validation will often occur twice.\n     * <li>Since it is not required that selectors derive from\n     * BaseSelector, there could be selectors in the container whose\n     * error conditions are not detected if their isSelected() call\n     * is never made.\n     * </ul>\n     */\n    public void validate() {\n        verifySettings();\n        String errmsg = getError();\n        if (errmsg != null) {\n            throw new BuildException(errmsg);\n        }\n        Enumeration e = selectorElements();\n        while (e.hasMoreElements()) {\n            Object o = e.nextElement();\n            if (o instanceof BaseSelector) {\n                ((BaseSelector) o).validate();\n            }\n        }\n    }\n\n\n    /**\n     * Method that each selector will implement to create their selection\n     * behaviour. This is what makes SelectorContainer abstract.\n     *\n     * @param basedir the base directory the scan is being done from\n     * @param filename the name of the file to check\n     * @param file a java.io.File object for the filename that the selector\n     * can use\n     * @return whether the file should be selected or not\n     */\n    public abstract boolean isSelected(File basedir, String filename,\n                                       File file);\n\n\n    /* Methods below all add specific selectors */\n\n    /**\n     * add a \"Select\" selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addSelector(SelectSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add an \"And\" selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addAnd(AndSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add an \"Or\" selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addOr(OrSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a \"Not\" selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addNot(NotSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a \"None\" selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addNone(NoneSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a majority selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addMajority(MajoritySelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a selector date entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addDate(DateSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a selector size entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addSize(SizeSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a selector filename entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addFilename(FilenameSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add an extended selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addCustom(ExtendSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a contains selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addContains(ContainsSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a present selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addPresent(PresentSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a depth selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addDepth(DepthSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a depends selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addDepend(DependSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * adds a different selector to the selector list\n     * @param selector the selector to add\n     */\n    public void addDifferent(DifferentSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * adds a type selector to the selector list\n     * @param selector the selector to add\n     */\n    public void addType(TypeSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add a regular expression selector entry on the selector list\n     * @param selector the selector to add\n     */\n    public void addContainsRegexp(ContainsRegexpSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add the modified selector\n     * @param selector the selector to add\n     * @since ant 1.6\n     */\n    public void addModified(ModifiedSelector selector) {\n        appendSelector(selector);\n    }\n\n    /**\n     * add an arbitary selector\n     * @param selector the selector to add\n     * @since Ant 1.6\n     */\n    public void add(FileSelector selector) {\n        appendSelector(selector);", "functions": [{"function_name": "hasSelectors", "code": "    public boolean hasSelectors() {\n        return !(selectorsList.isEmpty());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "selectorCount", "code": "    public int selectorCount() {\n        return selectorsList.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSelectors", "code": "    public FileSelector[] getSelectors(Project p) {\n        FileSelector[] result = new FileSelector[selectorsList.size()];\n        selectorsList.copyInto(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "selectorElements", "code": "    public Enumeration selectorElements() {\n        return selectorsList.elements();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        Enumeration e = selectorElements();\n        if (e.hasMoreElements()) {\n            while (e.hasMoreElements()) {\n                buf.append(e.nextElement().toString());\n                if (e.hasMoreElements()) {\n                    buf.append(\", \");\n                }\n            }\n        }\n\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LOOP", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [4, 9], [7, 10], [7, 11], [11, 12], [7, 13], [13, 14], [11, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 4], [10, 7], [11, 7], [12, 11], [13, 7], [14, 13], [15, 11], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "appendSelector", "code": "    public void appendSelector(FileSelector selector) {\n        selectorsList.addElement(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "validate", "code": "    public void validate() {\n        verifySettings();\n        String errmsg = getError();\n        if (errmsg != null) {\n            throw new BuildException(errmsg);\n        }\n        Enumeration e = selectorElements();\n        while (e.hasMoreElements()) {\n            Object o = e.nextElement();\n            if (o instanceof BaseSelector) {\n                ((BaseSelector) o).validate();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [0, 7], [1, 8], [1, 9], [2, 10], [3, 11], [6, 12], [4, 13], [8, 14], [11, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 0], [8, 1], [9, 1], [10, 2], [11, 3], [12, 6], [13, 4], [14, 8], [15, 11], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isSelected", "code": "    public abstract boolean isSelected(File basedir, String filename,\n                                       File file);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addSelector", "code": "    public void addSelector(SelectSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addAnd", "code": "    public void addAnd(AndSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addOr", "code": "    public void addOr(OrSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addNot", "code": "    public void addNot(NotSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addNone", "code": "    public void addNone(NoneSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addMajority", "code": "    public void addMajority(MajoritySelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addDate", "code": "    public void addDate(DateSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addSize", "code": "    public void addSize(SizeSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFilename", "code": "    public void addFilename(FilenameSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addCustom", "code": "    public void addCustom(ExtendSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addContains", "code": "    public void addContains(ContainsSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addPresent", "code": "    public void addPresent(PresentSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addDepth", "code": "    public void addDepth(DepthSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addDepend", "code": "    public void addDepend(DependSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addDifferent", "code": "    public void addDifferent(DifferentSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addType", "code": "    public void addType(TypeSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addContainsRegexp", "code": "    public void addContainsRegexp(ContainsRegexpSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addModified", "code": "    public void addModified(ModifiedSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "add", "code": "    public void add(FileSelector selector) {\n        appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "BaseSelectorContainer", "code": "    public BaseSelectorContainer() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.1-4036", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/options/AppearanceOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.AppearanceOptionPane", "code": "public class AppearanceOptionPane extends AbstractOptionPane\n{\n\t//{{{ AppearanceOptionPane constructor\n\tpublic AppearanceOptionPane()\n\t{\n\t\tsuper(\"appearance\");\n\t} //}}}\n\n\t//{{{ _init() method\n\tprotected void _init()\n\t{\n\t\t/* Look and feel */\n\t\taddComponent(new JLabel(jEdit.getProperty(\"options.appearance.lf.note\")));\n\n\t\tlfs = UIManager.getInstalledLookAndFeels();\n\t\tString[] names = new String[lfs.length];\n\t\tString lf = UIManager.getLookAndFeel().getClass().getName();\n\t\tint index = 0;\n\t\tfor(int i = 0; i < names.length; i++)\n\t\t{\n\t\t\tnames[i] = lfs[i].getName();\n\t\t\tif(lf.equals(lfs[i].getClassName()))\n\t\t\t\tindex = i;\n\t\t}\n\n\t\tlookAndFeel = new JComboBox(names);\n\t\tlookAndFeel.setSelectedIndex(index);\n\t\tlookAndFeel.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tupdateEnabled();\n\t\t\t}\n\t\t});\n\n\t\taddComponent(jEdit.getProperty(\"options.appearance.lf\"),\n\t\t\tlookAndFeel);\n\n\t\t/* Primary Metal L&F font */\n\t\tprimaryFont = new FontSelector(jEdit.getFontProperty(\n\t\t\t\"metal.primary.font\"));\n\t\taddComponent(jEdit.getProperty(\"options.appearance.primaryFont\"),\n\t\t\tprimaryFont);\n\n\t\t/* Secondary Metal L&F font */\n\t\tsecondaryFont = new FontSelector(jEdit.getFontProperty(\n\t\t\t\"metal.secondary.font\"));\n\t\taddComponent(jEdit.getProperty(\"options.appearance.secondaryFont\"),\n\t\t\tsecondaryFont);\n\n\t\tupdateEnabled();\n\n\t\taddSeparator(\"options.appearance.experimental.label\");\n\t\taddComponent(GUIUtilities.createMultilineLabel(\n\t\t\tjEdit.getProperty(\"options.appearance.experimental.caption\")));\n\n\t\t/* Use jEdit colors in all text components */\n\t\ttextColors = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.appearance.textColors\"));\n\t\ttextColors.setSelected(jEdit.getBooleanProperty(\"textColors\"));\n\t\taddComponent(textColors);\n\n\t\t/* Decorate frames with look and feel (JDK 1.4 only) */\n\t\tdecorateFrames = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.appearance.decorateFrames\"));\n\t\tdecorateFrames.setSelected(jEdit.getBooleanProperty(\"decorate.frames\"));\n\n\t\t/* Decorate dialogs with look and feel (JDK 1.4 only) */\n\t\tdecorateDialogs = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.appearance.decorateDialogs\"));\n\t\tdecorateDialogs.setSelected(jEdit.getBooleanProperty(\"decorate.dialogs\"));\n\n\t\tif(OperatingSystem.hasJava14())\n\t\t{\n\t\t\taddComponent(decorateFrames);\n\t\t\taddComponent(decorateDialogs);\n\t\t}\n\t} //}}}\n\n\t//{{{ _save() method\n\tprotected void _save()\n\t{\n\t\tString lf = lfs[lookAndFeel.getSelectedIndex()].getClassName();\n\t\tjEdit.setProperty(\"lookAndFeel\",lf);\n\t\tjEdit.setFontProperty(\"metal.primary.font\",primaryFont.getFont());\n\t\tjEdit.setFontProperty(\"metal.secondary.font\",secondaryFont.getFont());\n\t\tjEdit.setBooleanProperty(\"textColors\",textColors.isSelected());\n\t\tjEdit.setBooleanProperty(\"decorate.frames\",decorateFrames.isSelected());\n\t\tjEdit.setBooleanProperty(\"decorate.dialogs\",decorateDialogs.isSelected());\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate UIManager.LookAndFeelInfo[] lfs;\n\tprivate JComboBox lookAndFeel;\n\tprivate FontSelector primaryFont;\n\tprivate FontSelector secondaryFont;\n\tprivate JCheckBox textColors;\n\tprivate JCheckBox decorateFrames;\n\tprivate JCheckBox decorateDialogs;\n\t//}}}\n\n\t//{{{ updateEnabled() method\n\tprivate void updateEnabled()\n\t{\n\t\tString className = lfs[lookAndFeel.getSelectedIndex()]\n\t\t\t.getClassName();\n\n\t\tif(className.equals(\"javax.swing.plaf.metal.MetalLookAndFeel\")\n\t\t\t|| className.equals(\"com.incors.plaf.kunststoff.KunststoffLookAndFeel\"))\n\t\t{\n\t\t\tprimaryFont.setEnabled(true);\n\t\t\tsecondaryFont.setEnabled(true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprimaryFont.setEnabled(false);\n\t\t\tsecondaryFont.setEnabled(false);", "functions": [{"function_name": "_init", "code": "\tprotected void _init()\n\t{\n\t\t/* Look and feel */\n\t\taddComponent(new JLabel(jEdit.getProperty(\"options.appearance.lf.note\")));\n\n\t\tlfs = UIManager.getInstalledLookAndFeels();\n\t\tString[] names = new String[lfs.length];\n\t\tString lf = UIManager.getLookAndFeel().getClass().getName();\n\t\tint index = 0;\n\t\tfor(int i = 0; i < names.length; i++)\n\t\t{\n\t\t\tnames[i] = lfs[i].getName();\n\t\t\tif(lf.equals(lfs[i].getClassName()))\n\t\t\t\tindex = i;\n\t\t}\n\n\t\tlookAndFeel = new JComboBox(names);\n\t\tlookAndFeel.setSelectedIndex(index);\n\t\tlookAndFeel.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tupdateEnabled();\n\t\t\t}\n\t\t});\n\n\t\taddComponent(jEdit.getProperty(\"options.appearance.lf\"),\n\t\t\tlookAndFeel);\n\n\t\t/* Primary Metal L&F font */\n\t\tprimaryFont = new FontSelector(jEdit.getFontProperty(\n\t\t\t\"metal.primary.font\"));\n\t\taddComponent(jEdit.getProperty(\"options.appearance.primaryFont\"),\n\t\t\tprimaryFont);\n\n\t\t/* Secondary Metal L&F font */\n\t\tsecondaryFont = new FontSelector(jEdit.getFontProperty(\n\t\t\t\"metal.secondary.font\"));\n\t\taddComponent(jEdit.getProperty(\"options.appearance.secondaryFont\"),\n\t\t\tsecondaryFont);\n\n\t\tupdateEnabled();\n\n\t\taddSeparator(\"options.appearance.experimental.label\");\n\t\taddComponent(GUIUtilities.createMultilineLabel(\n\t\t\tjEdit.getProperty(\"options.appearance.experimental.caption\")));\n\n\t\t/* Use jEdit colors in all text components */\n\t\ttextColors = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.appearance.textColors\"));\n\t\ttextColors.setSelected(jEdit.getBooleanProperty(\"textColors\"));\n\t\taddComponent(textColors);\n\n\t\t/* Decorate frames with look and feel (JDK 1.4 only) */\n\t\tdecorateFrames = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.appearance.decorateFrames\"));\n\t\tdecorateFrames.setSelected(jEdit.getBooleanProperty(\"decorate.frames\"));\n\n\t\t/* Decorate dialogs with look and feel (JDK 1.4 only) */\n\t\tdecorateDialogs = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.appearance.decorateDialogs\"));\n\t\tdecorateDialogs.setSelected(jEdit.getBooleanProperty(\"decorate.dialogs\"));\n\n\t\tif(OperatingSystem.hasJava14())\n\t\t{\n\t\t\taddComponent(decorateFrames);\n\t\t\taddComponent(decorateDialogs);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "PARAM", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [2, 25], [0, 26], [0, 27], [7, 28], [8, 29], [9, 30], [10, 31], [12, 32], [13, 33], [14, 34], [15, 35], [17, 36], [18, 37], [19, 38], [20, 39], [21, 40], [22, 41], [24, 42], [2, 43], [3, 44], [4, 45], [26, 46], [27, 47], [1, 48], [1, 49], [28, 50], [29, 51], [30, 52], [31, 53], [32, 54], [33, 55], [34, 56], [36, 57], [37, 58], [38, 59], [39, 60], [40, 61], [41, 62], [43, 63], [2, 64], [2, 65], [45, 66], [45, 67], [47, 68], [51, 69], [53, 70], [55, 71], [56, 72], [58, 73], [60, 74], [62, 75], [43, 76], [68, 77], [62, 78], [63, 79], [64, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 2], [26, 0], [27, 0], [28, 7], [29, 8], [30, 9], [31, 10], [32, 12], [33, 13], [34, 14], [35, 15], [36, 17], [37, 18], [38, 19], [39, 20], [40, 21], [41, 22], [42, 24], [43, 2], [44, 3], [45, 4], [46, 26], [47, 27], [48, 1], [49, 1], [50, 28], [51, 29], [52, 30], [53, 31], [54, 32], [55, 33], [56, 34], [57, 36], [58, 37], [59, 38], [60, 39], [61, 40], [62, 41], [63, 43], [64, 2], [65, 2], [66, 45], [67, 45], [68, 47], [69, 51], [70, 53], [71, 55], [72, 56], [73, 58], [74, 60], [75, 62], [76, 43], [77, 68], [78, 62], [79, 63], [80, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "_save", "code": "\tprotected void _save()\n\t{\n\t\tString lf = lfs[lookAndFeel.getSelectedIndex()].getClassName();\n\t\tjEdit.setProperty(\"lookAndFeel\",lf);\n\t\tjEdit.setFontProperty(\"metal.primary.font\",primaryFont.getFont());\n\t\tjEdit.setFontProperty(\"metal.secondary.font\",secondaryFont.getFont());\n\t\tjEdit.setBooleanProperty(\"textColors\",textColors.isSelected());\n\t\tjEdit.setBooleanProperty(\"decorate.frames\",decorateFrames.isSelected());\n\t\tjEdit.setBooleanProperty(\"decorate.dialogs\",decorateDialogs.isSelected());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [3, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [1, 19], [1, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 3], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 1], [20, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "updateEnabled", "code": "\tprivate void updateEnabled()\n\t{\n\t\tString className = lfs[lookAndFeel.getSelectedIndex()]\n\t\t\t.getClassName();\n\n\t\tif(className.equals(\"javax.swing.plaf.metal.MetalLookAndFeel\")\n\t\t\t|| className.equals(\"com.incors.plaf.kunststoff.KunststoffLookAndFeel\"))\n\t\t{\n\t\t\tprimaryFont.setEnabled(true);\n\t\t\tsecondaryFont.setEnabled(true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprimaryFont.setEnabled(false);\n\t\t\tsecondaryFont.setEnabled(false);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [5, 11], [2, 12], [6, 13], [7, 14], [8, 15], [9, 16], [2, 17], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 5], [12, 2], [13, 6], [14, 7], [15, 8], [16, 9], [17, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "AppearanceOptionPane", "code": "\tpublic AppearanceOptionPane()\n\t{\n\t\tsuper(\"appearance\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-3.2-3678", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/textarea/TextRenderer2D.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.TextRenderer2D", "code": "class TextRenderer2D extends TextRenderer\n{\n\tpublic void setupGraphics(Graphics g)\n\t{\n\t\t((Graphics2D)g).setRenderingHints(renderingHints);\n\t}\n\n\tpublic void configure(boolean antiAlias, boolean fracFontMetrics)\n\t{\n\t\tHashtable hints = new Hashtable();\n\n\t\tif(antiAlias)\n\t\t{\n\t\t\thints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\thints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\thints.put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t\t\thints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n\t\t\t\tfracFontMetrics ?\n\t\t\t\t\tRenderingHints.VALUE_FRACTIONALMETRICS_ON\n\t\t\t\t\t: RenderingHints.VALUE_FRACTIONALMETRICS_OFF);\n\t\t}\n\t\telse\n\t\t\thints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);\n\n\t\trenderingHints = new RenderingHints(hints);\n\t\tfontRenderContext = new FontRenderContext(null,antiAlias,\n\t\t\tfracFontMetrics);\n\t}\n\n\tfloat _drawChars(char[] text, int start, int len, Graphics _g,\n\t\tfloat x, float y)\n\t{\n\t\tGraphics2D g = (Graphics2D)_g;\n\n\t\tFont font = g.getFont();\n\n\t\t// update it just in case\n\t\tfontRenderContext = g.getFontRenderContext();\n\n\t\tGlyphVector glyphs = font.createGlyphVector(fontRenderContext,\n\t\t\tnew String(text,start,len));\n\n\t\t((Graphics2D)g).drawGlyphVector(glyphs,x,y);\n\n\t\treturn (float)glyphs.getLogicalBounds().getWidth();\n\t}\n\n\tfloat _getWidth(char[] text, int start, int len, Font font)\n\t{\n\t\tGlyphVector glyphs = font.createGlyphVector(fontRenderContext,\n\t\t\tnew String(text,start,len));\n\n\t\treturn (float)glyphs.getLogicalBounds().getWidth();\n\t}\n\n\tint _xToOffset(char[] text, int start, int len, Font font, float x,\n\t\tboolean round)\n\t{\n\t\t// this is slow!\n\t\tTextLayout layout = new TextLayout(new String(text,start,len),font,\n\t\t\tfontRenderContext);\n\n\t\tTextHitInfo info = layout.hitTestChar(x,0);\n\t\treturn (round ? info.getInsertionIndex() : info.getCharIndex());\n\t}\n\n\t// private members\n\tprivate RenderingHints renderingHints;\n\tprivate FontRenderContext fontRenderContext;", "functions": [{"function_name": "setupGraphics", "code": "\tpublic void setupGraphics(Graphics g)\n\t{\n\t\t((Graphics2D)g).setRenderingHints(renderingHints);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "configure", "code": "\tpublic void configure(boolean antiAlias, boolean fracFontMetrics)\n\t{\n\t\tHashtable hints = new Hashtable();\n\n\t\tif(antiAlias)\n\t\t{\n\t\t\thints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\thints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\thints.put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t\t\thints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n\t\t\t\tfracFontMetrics ?\n\t\t\t\t\tRenderingHints.VALUE_FRACTIONALMETRICS_ON\n\t\t\t\t\t: RenderingHints.VALUE_FRACTIONALMETRICS_OFF);\n\t\t}\n\t\telse\n\t\t\thints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);\n\n\t\trenderingHints = new RenderingHints(hints);\n\t\tfontRenderContext = new FontRenderContext(null,antiAlias,\n\t\t\tfracFontMetrics);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "COND_EXPR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 9], [2, 10], [7, 11], [1, 12], [1, 13], [1, 14], [1, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 1], [10, 2], [11, 7], [12, 1], [13, 1], [14, 1], [15, 1], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "_drawChars", "code": "\tfloat _drawChars(char[] text, int start, int len, Graphics _g,\n\t\tfloat x, float y)\n\t{\n\t\tGraphics2D g = (Graphics2D)_g;\n\n\t\tFont font = g.getFont();\n\n\t\t// update it just in case\n\t\tfontRenderContext = g.getFontRenderContext();\n\n\t\tGlyphVector glyphs = font.createGlyphVector(fontRenderContext,\n\t\t\tnew String(text,start,len));\n\n\t\t((Graphics2D)g).drawGlyphVector(glyphs,x,y);\n\n\t\treturn (float)glyphs.getLogicalBounds().getWidth();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [11, 14], [3, 15], [12, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 11], [15, 3], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "_getWidth", "code": "\tfloat _getWidth(char[] text, int start, int len, Font font)\n\t{\n\t\tGlyphVector glyphs = font.createGlyphVector(fontRenderContext,\n\t\t\tnew String(text,start,len));\n\n\t\treturn (float)glyphs.getLogicalBounds().getWidth();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "_xToOffset", "code": "\tint _xToOffset(char[] text, int start, int len, Font font, float x,\n\t\tboolean round)\n\t{\n\t\t// this is slow!\n\t\tTextLayout layout = new TextLayout(new String(text,start,len),font,\n\t\t\tfontRenderContext);\n\n\t\tTextHitInfo info = layout.hitTestChar(x,0);\n\t\treturn (round ? info.getInsertionIndex() : info.getCharIndex());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [10, 11], [10, 12], [2, 13], [3, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 10], [12, 10], [13, 2], [14, 3], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "poi-2.5-5750", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/usermodel/HSSFSimpleShape.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFSimpleShape", "code": "public class HSSFSimpleShape\n    extends HSSFShape\n{\n\n    public final static short       OBJECT_TYPE_LINE               = 1;\n    public final static short       OBJECT_TYPE_RECTANGLE          = 2;\n    public final static short       OBJECT_TYPE_OVAL               = 3;\n\n    int shapeType = OBJECT_TYPE_LINE;\n\n    HSSFSimpleShape( HSSFShape parent, HSSFAnchor anchor )\n    {\n        super( parent, anchor );\n    }\n\n    /**\n     * Gets the shape type.\n     * @return  One of the OBJECT_TYPE_* constants.\n     *\n     * @see #OBJECT_TYPE_LINE\n     * @see #OBJECT_TYPE_OVAL\n     * @see #OBJECT_TYPE_RECTANGLE\n     */\n    public int getShapeType() { return shapeType; }\n\n    /**\n     * Sets the shape types.\n     *\n     * @param shapeType One of the OBJECT_TYPE_* constants.\n     *\n     * @see #OBJECT_TYPE_LINE\n     * @see #OBJECT_TYPE_OVAL\n     * @see #OBJECT_TYPE_RECTANGLE\n     */\n    public void setShapeType( int shapeType ){ this.shapeType = shapeType; }", "functions": [{"function_name": "getShapeType", "code": "    public int getShapeType() { return shapeType; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShapeType", "code": "    public void setShapeType( int shapeType ){ this.shapeType = shapeType; }", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFSimpleShape", "code": "    HSSFSimpleShape( HSSFShape parent, HSSFAnchor anchor )\n    {\n        super( parent, anchor );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.3-4675", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/Macros.java", "language": "java", "name": "org.gjt.sp.jedit.Macros", "code": "public class Macros\n{\n\t//{{{ showRunScriptDialog() method\n\t/**\n\t * Prompts for one or more files to run as macros\n\t * @param view The view\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static void showRunScriptDialog(View view)\n\t{\n\t\tString[] paths = GUIUtilities.showVFSFileDialog(view,\n\t\t\tnull,JFileChooser.OPEN_DIALOG,true);\n\t\tif(paths != null)\n\t\t{\n\t\t\tBuffer buffer = view.getBuffer();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\nfile_loop:\t\t\tfor(int i = 0; i < paths.length; i++)\n\t\t\t\t\trunScript(view,paths[i],false);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ runScript() method\n\t/**\n\t * Runs the specified script.\n\t * Unlike the {@link BeanShell#runScript(View,String,Reader,boolean)}\n\t * method, this method can run scripts supported\n\t * by any registered macro handler.\n\t * @param view The view\n\t * @param path The VFS path of the script\n\t * @param ignoreUnknown If true, then unknown file types will be\n\t * ignored; otherwise, a warning message will be printed and they will\n\t * be evaluated as BeanShell scripts.\n\t *\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic static void runScript(View view, String path, boolean ignoreUnknown)\n\t{\n\t\tHandler handler = getHandlerForPathName(path);\n\t\tif(handler != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMacro newMacro = handler.createMacro(\n\t\t\t\t\tMiscUtilities.getFileName(path), path);\n\t\t\t\tnewMacro.invoke(view);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, Macros.class, e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// only executed if above loop falls\n\t\t// through, ie there is no handler for\n\t\t// this file\n\t\tif(ignoreUnknown)\n\t\t{\n\t\t\tLog.log(Log.NOTICE,Macros.class,path +\n\t\t\t\t\": Cannot find a suitable macro handler\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tLog.log(Log.ERROR,Macros.class,path +\n\t\t\t\t\": Cannot find a suitable macro handler, \"\n\t\t\t\t+ \"assuming BeanShell\");\n\t\t\tgetHandler(\"beanshell\").createMacro(\n\t\t\t\tpath,path).invoke(view);\n\t\t}\n\t} //}}}\n\n\t//{{{ message() method\n\t/**\n\t * Utility method that can be used to display a message dialog in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param message The message\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void message(Component comp, String message)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,message,\n\t\t\tjEdit.getProperty(\"macro-message.title\"),\n\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t} //}}}\n\n\t//{{{ error() method\n\t/**\n\t * Utility method that can be used to display an error dialog in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param message The message\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void error(Component comp, String message)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,message,\n\t\t\tjEdit.getProperty(\"macro-message.title\"),\n\t\t\tJOptionPane.ERROR_MESSAGE);\n\t} //}}}\n\n\t//{{{ input() method\n\t/**\n\t * Utility method that can be used to prompt for input in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param prompt The prompt string\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static String input(Component comp, String prompt)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn input(comp,prompt,null);\n\t} //}}}\n\n\t//{{{ input() method\n\t/**\n\t * Utility method that can be used to prompt for input in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param prompt The prompt string\n\t * @since jEdit 3.1final\n\t */\n\tpublic static String input(Component comp, String prompt, String defaultValue)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn (String)JOptionPane.showInputDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-input.title\"),\n\t\t\tJOptionPane.QUESTION_MESSAGE,null,null,defaultValue);\n\t} //}}}\n\n\t//{{{ confirm() method\n\t/**\n\t * Utility method that can be used to ask for confirmation in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param prompt The prompt string\n\t * @param buttons The buttons to display - for example,\n\t * JOptionPane.YES_NO_CANCEL_OPTION\n\t * @since jEdit 4.0pre2\n\t */\n\tpublic static int confirm(Component comp, String prompt, int buttons)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn JOptionPane.showConfirmDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-confirm.title\"),buttons,\n\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t} //}}}\n\n\t//{{{ confirm() method\n\t/**\n\t * Utility method that can be used to ask for confirmation in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param prompt The prompt string\n\t * @param buttons The buttons to display - for example,\n\t * JOptionPane.YES_NO_CANCEL_OPTION\n\t * @param type The dialog type - for example,\n\t * JOptionPane.WARNING_MESSAGE\n\t */\n\tpublic static int confirm(Component comp, String prompt, int buttons, int type)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn JOptionPane.showConfirmDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-confirm.title\"),buttons,type);\n\t} //}}}\n\n\t//{{{ loadMacros() method\n\t/**\n\t * Rebuilds the macros list, and sends a MacrosChanged message\n\t * (views update their Macros menu upon receiving it)\n\t * @since jEdit 2.2pre4\n\t */\n\tpublic static void loadMacros()\n\t{\n\t\tmacroActionSet.removeAllActions();\n\t\tmacroHierarchy.removeAllElements();\n\t\tmacroHash.clear();\n\n\t\t// since subsequent macros with the same name are ignored,\n\t\t// load user macros first so that they override the system\n\t\t// macros.\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings != null)\n\t\t{\n\t\t\tuserMacroPath = MiscUtilities.constructPath(\n\t\t\t\tsettings,\"macros\");\n\t\t\tloadMacros(macroHierarchy,\"\",new File(userMacroPath));\n\t\t}\n\n\t\tif(jEdit.getJEditHome() != null)\n\t\t{\n\t\t\tsystemMacroPath = MiscUtilities.constructPath(\n\t\t\t\tjEdit.getJEditHome(),\"macros\");\n\t\t\tloadMacros(macroHierarchy,\"\",new File(systemMacroPath));\n\t\t}\n\n\t\tEditBus.send(new DynamicMenuChanged(\"macros\"));\n\t} //}}}\n\n\t//{{{ registerHandler() method\n\t/**\n\t * Adds a macro handler to the handlers list\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic static void registerHandler(Handler handler)\n\t{\n\t\tif (getHandler(handler.getName()) != null)\n\t\t{\n\t\t\tLog.log(Log.ERROR, Macros.class, \"Cannot register more than one macro handler with the same name\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.log(Log.DEBUG,Macros.class,\"Registered \" + handler.getName()\n\t\t\t+ \" macro handler\");\n\t\tmacroHandlers.add(handler);\n\t} //}}}\n\n\t//{{{ getHandlers() method\n\t/**\n\t * Returns an array containing the list of registered macro handlers\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic static Handler[] getHandlers()\n\t{\n\t\tHandler[] handlers = new Handler[macroHandlers.size()];\n\t\treturn macroHandlers.toArray(handlers);\n\t} //}}}\n\n\t//{{{ getHandlerForFileName() method\n\t/**\n\t * Returns the macro handler suitable for running the specified file\n\t * name, or null if there is no suitable handler.\n\t * @since jEdit 4.1pre3\n\t */\n\tpublic static Handler getHandlerForPathName(String pathName)\n\t{\n\t\tfor (int i = 0; i < macroHandlers.size(); i++)\n\t\t{\n\t\t\tHandler handler = macroHandlers.get(i);\n\t\t\tif (handler.accept(pathName))\n\t\t\t\treturn handler;\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getHandler() method\n\t/**\n\t * Returns the macro handler with the specified name, or null if\n\t * there is no registered handler with that name.\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic static Handler getHandler(String name)\n\t{\n\t\tfor (int i = 0; i < macroHandlers.size(); i++)\n\t\t{\n\t\t\tHandler handler = macroHandlers.get(i);\n\t\t\tif (handler.getName().equals(name))\n\t\t\t\treturn handler;\n\t\t}\n\n\t\treturn null;\n\t}\n\t//}}}\n\n\t//{{{ getMacroHierarchy() method\n\t/**\n\t * Returns a vector hierarchy with all known macros in it.\n\t * Each element of this vector is either a macro name string,\n\t * or another vector. If it is a vector, the first element is a\n\t * string label, the rest are again, either macro name strings\n\t * or vectors.\n\t * @since jEdit 2.6pre1\n\t */\n\tpublic static Vector getMacroHierarchy()\n\t{\n\t\treturn macroHierarchy;\n\t} //}}}\n\n\t//{{{ getMacroActionSet() method\n\t/**\n\t * Returns an action set with all known macros in it.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static ActionSet getMacroActionSet()\n\t{\n\t\treturn macroActionSet;\n\t} //}}}\n\n\t//{{{ getMacro() method\n\t/**\n\t * Returns the macro with the specified name.\n\t * @param macro The macro's name\n\t * @since jEdit 2.6pre1\n\t */\n\tpublic static Macro getMacro(String macro)\n\t{\n\t\treturn macroHash.get(macro);\n\t} //}}}\n\n\t//{{{ getLastMacro() method\n\t/**\n\t * @since jEdit 4.3pre1\n\t */\n\tpublic static Macro getLastMacro()\n\t{\n\t\treturn lastMacro;\n\t} //}}}\n\n\t//{{{ setLastMacro() method\n\t/**\n\t * @since jEdit 4.3pre1\n\t */\n\tpublic static void setLastMacro(Macro macro)\n\t{\n\t\tlastMacro = macro;\n\t} //}}}\n\n\t//{{{ Macro class\n\t/**\n\t * Encapsulates the macro's label, name and path.\n\t * @since jEdit 2.2pre4\n\t */\n\tpublic static class Macro extends EditAction\n\t{\n\t\t//{{{ Macro constructor\n\t\tpublic Macro(Handler handler, String name, String label, String path)\n\t\t{\n\t\t\tsuper(name);\n\t\t\tthis.handler = handler;\n\t\t\tthis.label = label;\n\t\t\tthis.path = path;\n\t\t} //}}}\n\n\t\t//{{{ getHandler() method\n\t\tpublic Handler getHandler()\n\t\t{\n\t\t\treturn handler;\n\t\t}\n\t\t//}}}\n\n\t\t//{{{ getPath() method\n\t\tpublic String getPath()\n\t\t{\n\t\t\treturn path;\n\t\t} //}}}\n\n\t\t//{{{ invoke() method\n\t\t@Override\n\t\tpublic void invoke(View view)\n\t\t{\n\t\t\tsetLastMacro(this);\n\n\t\t\tif(view == null)\n\t\t\t\thandler.runMacro(null,this);\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tview.getBuffer().beginCompoundEdit();\n\t\t\t\t\thandler.runMacro(view,this);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tview.getBuffer().endCompoundEdit();\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ getCode() method\n\t\t@Override\n\t\tpublic String getCode()\n\t\t{\n\t\t\treturn \"Macros.getMacro(\\\"\" + getName() + \"\\\").invoke(view);\";\n\t\t} //}}}\n\n\t\t//{{{ macroNameToLabel() method\n\t\tpublic static String macroNameToLabel(String macroName)\n\t\t{\n\t\t\tint index = macroName.lastIndexOf('/');\n\t\t\treturn macroName.substring(index + 1).replace('_', ' ');\n\t\t}\n\t\t//}}}\n\n\t\t//{{{ Private members\n\t\tprivate Handler handler;\n\t\tprivate String path;\n\t\tString label;\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ recordTemporaryMacro() method\n\t/**\n\t * Starts recording a temporary macro.\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void recordTemporaryMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",new String[0]);\n\t\t\treturn;\n\t\t}\n\t\tif(view.getMacroRecorder() != null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"already-recording\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tBuffer buffer = jEdit.openFile((View)null,settings + File.separator\n\t\t\t+ \"macros\",\"Temporary_Macro.bsh\",true,null);\n\n\t\tif(buffer == null)\n\t\t\treturn;\n\n\t\tbuffer.remove(0,buffer.getLength());\n\t\tbuffer.insert(0,jEdit.getProperty(\"macro.temp.header\"));\n\n\t\trecordMacro(view,buffer,true);\n\t} //}}}\n\n\t//{{{ recordMacro() method\n\t/**\n\t * Starts recording a macro.\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void recordMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tif(view.getMacroRecorder() != null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"already-recording\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tString name = GUIUtilities.input(view,\"record\",null);\n\t\tif(name == null)\n\t\t\treturn;\n\n\t\tname = name.replace(' ','_');\n\n\t\tBuffer buffer = jEdit.openFile((View) null,null,\n\t\t\tMiscUtilities.constructPath(settings,\"macros\",\n\t\t\tname + \".bsh\"),true,null);\n\n\t\tif(buffer == null)\n\t\t\treturn;\n\n\t\tbuffer.remove(0,buffer.getLength());\n\t\tbuffer.insert(0,jEdit.getProperty(\"macro.header\"));\n\n\t\trecordMacro(view,buffer,false);\n\t} //}}}\n\n\t//{{{ stopRecording() method\n\t/**\n\t * Stops a recording currently in progress.\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void stopRecording(View view)\n\t{\n\t\tRecorder recorder = view.getMacroRecorder();\n\n\t\tif(recorder == null)\n\t\t\tGUIUtilities.error(view,\"macro-not-recording\",null);\n\t\telse\n\t\t{\n\t\t\tview.setMacroRecorder(null);\n\t\t\tif(!recorder.temporary)\n\t\t\t\tview.setBuffer(recorder.buffer);\n\t\t\trecorder.dispose();\n\t\t}\n\t} //}}}\n\n\t//{{{ runTemporaryMacro() method\n\t/**\n\t * Runs the temporary macro.\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void runTemporaryMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",null);\n\t\t\treturn;\n\t\t}\n\n\t\tString path = MiscUtilities.constructPath(\n\t\t\tjEdit.getSettingsDirectory(),\"macros\",\n\t\t\t\"Temporary_Macro.bsh\");\n\n\t\tif(jEdit.getBuffer(path) == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-temp-macro\",null);\n\t\t\treturn;\n\t\t}\n\n\t\tHandler handler = getHandler(\"beanshell\");\n\t\tMacro temp = handler.createMacro(path,path);\n\n\t\tBuffer buffer = view.getBuffer();\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\t\t\ttemp.invoke(view);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\t/* I already wrote a comment expaining this in\n\t\t\t * Macro.invoke(). */\n\t\t\tif(buffer.insideCompoundEdit())\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Static variables\n\tprivate static String systemMacroPath;\n\tprivate static String userMacroPath;\n\n\tprivate static List<Handler> macroHandlers;\n\n\tprivate static ActionSet macroActionSet;\n\tprivate static Vector macroHierarchy;\n\tprivate static Map<String, Macro> macroHash;\n\n\tprivate static Macro lastMacro;\n\t//}}}\n\n\t//{{{ Class initializer\n\tstatic\n\t{\n\t\tmacroHandlers = new ArrayList<Handler>();\n\t\tregisterHandler(new BeanShellHandler());\n\t\tmacroActionSet = new ActionSet(jEdit.getProperty(\"action-set.macros\"));\n\t\tjEdit.addActionSet(macroActionSet);\n\t\tmacroHierarchy = new Vector();\n\t\tmacroHash = new Hashtable<String, Macro>();\n\t} //}}}\n\n\t//{{{ loadMacros() method\n\tprivate static void loadMacros(List vector, String path, File directory)\n\t{\n\t\tlastMacro = null;\n\n\t\tFile[] macroFiles = directory.listFiles();\n\t\tif(macroFiles == null || macroFiles.length == 0)\n\t\t\treturn;\n\n\t\tfor(int i = 0; i < macroFiles.length; i++)\n\t\t{\n\t\t\tFile file = macroFiles[i];\n\t\t\tString fileName = file.getName();\n\t\t\tif(file.isHidden())\n\t\t\t{\n\t\t\t\t/* do nothing! */\n\t\t\t}\n\t\t\telse if(file.isDirectory())\n\t\t\t{\n\t\t\t\tString submenuName = fileName.replace('_',' ');\n\t\t\t\tList submenu = null;\n\t\t\t\t//{{{ try to merge with an existing menu first\n\t\t\t\tfor(int j = 0; j < vector.size(); j++)\n\t\t\t\t{\n\t\t\t\t\tObject obj = vector.get(j);\n\t\t\t\t\tif(obj instanceof List)\n\t\t\t\t\t{\n\t\t\t\t\t\tList vec = (List)obj;\n\t\t\t\t\t\tif(submenuName.equals(vec.get(0)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsubmenu = vec;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} //}}}\n\t\t\t\tif(submenu == null)\n\t\t\t\t{\n\t\t\t\t\tsubmenu = new Vector();\n\t\t\t\t\tsubmenu.add(submenuName);\n\t\t\t\t\tvector.add(submenu);\n\t\t\t\t}\n\n\t\t\t\tloadMacros(submenu,path + fileName + '/',file);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\taddMacro(file,path,vector);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ addMacro() method\n\tprivate static void addMacro(File file, String path, List vector)\n\t{\n\t\tString fileName = file.getName();\n\t\tHandler handler = getHandlerForPathName(file.getPath());\n\n\t\tif(handler == null)\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\t// in case macro file name has a space in it.\n\t\t\t// spaces break the view.toolBar property, for instance,\n\t\t\t// since it uses spaces to delimit action names.\n\t\t\tString macroName = (path + fileName).replace(' ','_');\n\t\t\tMacro newMacro = handler.createMacro(macroName,\n\t\t\t\tfile.getPath());\n\t\t\t// ignore if already added.\n\t\t\t// see comment in loadMacros().\n\t\t\tif(macroHash.get(newMacro.getName()) != null)\n\t\t\t\treturn;\n\n\t\t\tvector.add(newMacro.getName());\n\t\t\tjEdit.setTemporaryProperty(newMacro.getName()\n\t\t\t\t+ \".label\",\n\t\t\t\tnewMacro.label);\n\t\t\tjEdit.setTemporaryProperty(newMacro.getName()\n\t\t\t\t+ \".mouse-over\",\n\t\t\t\thandler.getLabel() + \" - \" + file.getPath());\n\t\t\tmacroActionSet.addAction(newMacro);\n\t\t\tmacroHash.put(newMacro.getName(),newMacro);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR, Macros.class, e);\n\t\t\tmacroHandlers.remove(handler);\n\t\t}\n\t} //}}}\n\n\t//{{{ recordMacro() method\n\t/**\n\t * Starts recording a macro.\n\t * @param view The view\n\t * @param buffer The buffer to record to\n\t * @param temporary True if this is a temporary macro\n\t * @since jEdit 3.0pre5\n\t */\n\tprivate static void recordMacro(View view, Buffer buffer, boolean temporary)\n\t{\n\t\tview.setMacroRecorder(new Recorder(view,buffer,temporary));\n\n\t\t// setting the message to 'null' causes the status bar to check\n\t\t// if a recording is in progress\n\t\tview.getStatus().setMessage(null);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Recorder class\n\t/**\n\t * Handles macro recording.\n\t */\n\tpublic static class Recorder implements EBComponent\n\t{\n\t\tView view;\n\t\tBuffer buffer;\n\t\tboolean temporary;\n\n\t\tboolean lastWasInput;\n\t\tboolean lastWasOverwrite;\n\t\tint overwriteCount;\n\n\t\t//{{{ Recorder constructor\n\t\tpublic Recorder(View view, Buffer buffer, boolean temporary)\n\t\t{\n\t\t\tthis.view = view;\n\t\t\tthis.buffer = buffer;\n\t\t\tthis.temporary = temporary;\n\t\t\tEditBus.addToBus(this);\n\t\t} //}}}\n\n\t\t//{{{ record() method\n\t\tpublic void record(String code)\n\t\t{\n\t\t\tif (BeanShell.isScriptRunning())\n\t\t\t\treturn;\n\t\t\tflushInput();\n\n\t\t\tappend(\"\\n\");\n\t\t\tappend(code);\n\t\t} //}}}\n\n\t\t//{{{ record() method\n\t\tpublic void record(int repeat, String code)\n\t\t{\n\t\t\tif(repeat == 1)\n\t\t\t\trecord(code);\n\t\t\telse\n\t\t\t{\n\t\t\t\trecord(\"for(int i = 1; i <= \" + repeat + \"; i++)\\n\"\n\t\t\t\t\t+ \"{\\n\"\n\t\t\t\t\t+ code + '\\n'\n\t\t\t\t\t+ '}');\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ recordInput() method\n\t\t/**\n\t\t * @since jEdit 4.2pre5\n\t\t */\n\t\tpublic void recordInput(int repeat, char ch, boolean overwrite)\n\t\t{\n\t\t\t// record \\n and \\t on lines specially so that auto indent\n\t\t\t// can take place\n\t\t\tif(ch == '\\n')\n\t\t\t\trecord(repeat,\"textArea.userInput(\\'\\\\n\\');\");\n\t\t\telse if(ch == '\\t')\n\t\t\t\trecord(repeat,\"textArea.userInput(\\'\\\\t\\');\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tStringBuilder buf = new StringBuilder(repeat);\n\t\t\t\tfor(int i = 0; i < repeat; i++)\n\t\t\t\t\tbuf.append(ch);\n\t\t\t\trecordInput(buf.toString(),overwrite);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ recordInput() method\n\t\t/**\n\t\t * @since jEdit 4.2pre5\n\t\t */\n\t\tpublic void recordInput(String str, boolean overwrite)\n\t\t{\n\t\t\tString charStr = StandardUtilities.charsToEscapes(str);\n\n\t\t\tif(overwrite)\n\t\t\t{\n\t\t\t\tif(lastWasOverwrite)\n\t\t\t\t{\n\t\t\t\t\toverwriteCount++;\n\t\t\t\t\tappend(charStr);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tflushInput();\n\t\t\t\t\toverwriteCount = 1;\n\t\t\t\t\tlastWasOverwrite = true;\n\t\t\t\t\tappend(\"\\ntextArea.setSelectedText(\\\"\" + charStr);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(lastWasInput)\n\t\t\t\t\tappend(charStr);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tflushInput();\n\t\t\t\t\tlastWasInput = true;\n\t\t\t\t\tappend(\"\\ntextArea.setSelectedText(\\\"\" + charStr);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ handleMessage() method\n\t\tpublic void handleMessage(EBMessage msg)\n\t\t{\n\t\t\tif(msg instanceof BufferUpdate)\n\t\t\t{\n\t\t\t\tBufferUpdate bmsg = (BufferUpdate)msg;\n\t\t\t\tif(bmsg.getWhat() == BufferUpdate.CLOSED)\n\t\t\t\t{\n\t\t\t\t\tif(bmsg.getBuffer() == buffer)\n\t\t\t\t\t\tstopRecording(view);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ append() method\n\t\tprivate void append(String str)\n\t\t{\n\t\t\tbuffer.insert(buffer.getLength(),str);\n\t\t} //}}}\n\n\t\t//{{{ dispose() method\n\t\tprivate void dispose()\n\t\t{\n\t\t\tflushInput();\n\n\t\t\tfor(int i = 0; i < buffer.getLineCount(); i++)\n\t\t\t{\n\t\t\t\tbuffer.indentLine(i,true);\n\t\t\t}\n\n\t\t\tEditBus.removeFromBus(this);\n\n\t\t\t// setting the message to 'null' causes the status bar to\n\t\t\t// check if a recording is in progress\n\t\t\tview.getStatus().setMessage(null);\n\t\t} //}}}\n\n\t\t//{{{ flushInput() method\n\t\t/**\n\t\t * We try to merge consecutive inputs. This helper method is\n\t\t * called when something other than input is to be recorded.\n\t\t */\n\t\tprivate void flushInput()\n\t\t{\n\t\t\tif(lastWasInput)\n\t\t\t{\n\t\t\t\tlastWasInput = false;\n\t\t\t\tappend(\"\\\");\");\n\t\t\t}\n\n\t\t\tif(lastWasOverwrite)\n\t\t\t{\n\t\t\t\tlastWasOverwrite = false;\n\t\t\t\tappend(\"\\\");\\n\");\n\t\t\t\tappend(\"offset = buffer.getLineEndOffset(\"\n\t\t\t\t\t+ \"textArea.getCaretLine()) - 1;\\n\");\n\t\t\t\tappend(\"buffer.remove(textArea.getCaretPosition(),\"\n\t\t\t\t\t+ \"Math.min(\" + overwriteCount\n\t\t\t\t\t+ \",offset - \"\n\t\t\t\t\t+ \"textArea.getCaretPosition()));\");\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ Handler class\n\t/**\n\t * Encapsulates creating and invoking macros in arbitrary scripting languages\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic abstract static class Handler\n\t{\n\t\t//{{{ getName() method\n\t\tpublic String getName()\n\t\t{\n\t\t\treturn name;\n\t\t} //}}}\n\n\t\t//{{{ getLabel() method\n\t\tpublic String getLabel()\n\t\t{\n\t\t\treturn label;\n\t\t} //}}}\n\n\t\t//{{{ accept() method\n\t\tpublic boolean accept(String path)\n\t\t{\n\t\t\treturn filter.matcher(MiscUtilities.getFileName(path)).matches();\n\t\t} //}}}\n\n\t\t//{{{ createMacro() method\n\t\tpublic abstract Macro createMacro(String macroName, String path);\n\t\t//}}}\n\n\t\t//{{{ runMacro() method\n\t\t/**\n\t\t * Runs the specified macro.\n\t\t * @param view The view - may be null.\n\t\t * @param macro The macro.\n\t\t */\n\t\tpublic abstract void runMacro(View view, Macro macro);\n\t\t//}}}\n\n\t\t//{{{ runMacro() method\n\t\t/**\n\t\t * Runs the specified macro. This method is optional; it is\n\t\t * called if the specified macro is a startup script. The\n\t\t * default behavior is to simply call {@link #runMacro(View,Macros.Macro)}.\n\t\t *\n\t\t * @param view The view - may be null.\n\t\t * @param macro The macro.\n\t\t * @param ownNamespace  A hint indicating whenever functions and\n\t\t * variables defined in the script are to be self-contained, or\n\t\t * made available to other scripts. The macro handler may ignore\n\t\t * this parameter.\n\t\t * @since jEdit 4.1pre3\n\t\t */\n\t\tpublic void runMacro(View view, Macro macro, boolean ownNamespace)\n\t\t{\n\t\t\trunMacro(view,macro);\n\t\t} //}}}\n\n\t\t//{{{ Handler constructor\n\t\tprotected Handler(String name)\n\t\t{\n\t\t\tthis.name = name;\n\t\t\tlabel = jEdit.getProperty(\"macro-handler.\"\n\t\t\t\t+ name + \".label\", name);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfilter = Pattern.compile(StandardUtilities.globToRE(\n\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\"macro-handler.\" + name + \".glob\")));\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tthrow new InternalError(\"Missing or invalid glob for handler \" + name);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate String name;\n\t\tprivate String label;\n\t\tprivate Pattern filter;\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ BeanShellHandler class\n\tprivate static class BeanShellHandler extends Handler\n\t{\n\t\t//{{{ BeanShellHandler constructor\n\t\tBeanShellHandler()\n\t\t{\n\t\t\tsuper(\"beanshell\");\n\t\t} //}}}\n\n\t\t//{{{ createMacro() method\n\t\t@Override\n\t\tpublic Macro createMacro(String macroName, String path)\n\t\t{\n\t\t\t// Remove '.bsh'\n\t\t\tmacroName = macroName.substring(0, macroName.length() - 4);\n\n\t\t\treturn new Macro(this, macroName,\n\t\t\t\tMacro.macroNameToLabel(macroName), path);\n\t\t} //}}}\n\n\t\t//{{{ runMacro() method\n\t\t@Override\n\t\tpublic void runMacro(View view, Macro macro)\n\t\t{\n\t\t\tBeanShell.runScript(view,macro.getPath(),null,true);\n\t\t} //}}}\n\n\t\t//{{{ runMacro() method\n\t\t@Override\n\t\tpublic void runMacro(View view, Macro macro, boolean ownNamespace)\n\t\t{\n\t\t\tBeanShell.runScript(view,macro.getPath(),null,ownNamespace);", "functions": [{"function_name": "showRunScriptDialog", "code": "\tpublic static void showRunScriptDialog(View view)\n\t{\n\t\tString[] paths = GUIUtilities.showVFSFileDialog(view,\n\t\t\tnull,JFileChooser.OPEN_DIALOG,true);\n\t\tif(paths != null)\n\t\t{\n\t\t\tBuffer buffer = view.getBuffer();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\nfile_loop:\t\t\tfor(int i = 0; i < paths.length; i++)\n\t\t\t\t\trunScript(view,paths[i],false);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [8, 10], [8, 11], [5, 12], [9, 13], [5, 14], [6, 15], [9, 16], [16, 17], [9, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 8], [11, 8], [12, 5], [13, 9], [14, 5], [15, 6], [16, 9], [17, 16], [18, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "runScript", "code": "\tpublic static void runScript(View view, String path, boolean ignoreUnknown)\n\t{\n\t\tHandler handler = getHandlerForPathName(path);\n\t\tif(handler != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMacro newMacro = handler.createMacro(\n\t\t\t\t\tMiscUtilities.getFileName(path), path);\n\t\t\t\tnewMacro.invoke(view);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, Macros.class, e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// only executed if above loop falls\n\t\t// through, ie there is no handler for\n\t\t// this file\n\t\tif(ignoreUnknown)\n\t\t{\n\t\t\tLog.log(Log.NOTICE,Macros.class,path +\n\t\t\t\t\": Cannot find a suitable macro handler\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tLog.log(Log.ERROR,Macros.class,path +\n\t\t\t\t\": Cannot find a suitable macro handler, \"\n\t\t\t\t+ \"assuming BeanShell\");\n\t\t\tgetHandler(\"beanshell\").createMacro(\n\t\t\t\tpath,path).invoke(view);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [3, 11], [1, 12], [1, 13], [1, 14], [9, 15], [9, 16], [12, 17], [12, 18], [12, 19], [13, 20], [14, 21], [15, 22], [9, 23], [20, 24], [20, 25], [21, 26], [15, 27], [16, 28], [25, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 3], [12, 1], [13, 1], [14, 1], [15, 9], [16, 9], [17, 12], [18, 12], [19, 12], [20, 13], [21, 14], [22, 15], [23, 9], [24, 20], [25, 20], [26, 21], [27, 15], [28, 16], [29, 25], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "message", "code": "\tpublic static void message(Component comp, String message)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,message,\n\t\t\tjEdit.getProperty(\"macro-message.title\"),\n\t\t\tJOptionPane.INFORMATION_MESSAGE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "error", "code": "\tpublic static void error(Component comp, String message)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,message,\n\t\t\tjEdit.getProperty(\"macro-message.title\"),\n\t\t\tJOptionPane.ERROR_MESSAGE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "input", "code": "\tpublic static String input(Component comp, String prompt)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn input(comp,prompt,null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "input", "code": "\tpublic static String input(Component comp, String prompt, String defaultValue)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn (String)JOptionPane.showInputDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-input.title\"),\n\t\t\tJOptionPane.QUESTION_MESSAGE,null,null,defaultValue);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "confirm", "code": "\tpublic static int confirm(Component comp, String prompt, int buttons)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn JOptionPane.showConfirmDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-confirm.title\"),buttons,\n\t\t\tJOptionPane.QUESTION_MESSAGE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "confirm", "code": "\tpublic static int confirm(Component comp, String prompt, int buttons, int type)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn JOptionPane.showConfirmDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-confirm.title\"),buttons,type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "loadMacros", "code": "\tpublic static void loadMacros()\n\t{\n\t\tmacroActionSet.removeAllActions();\n\t\tmacroHierarchy.removeAllElements();\n\t\tmacroHash.clear();\n\n\t\t// since subsequent macros with the same name are ignored,\n\t\t// load user macros first so that they override the system\n\t\t// macros.\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings != null)\n\t\t{\n\t\t\tuserMacroPath = MiscUtilities.constructPath(\n\t\t\t\tsettings,\"macros\");\n\t\t\tloadMacros(macroHierarchy,\"\",new File(userMacroPath));\n\t\t}\n\n\t\tif(jEdit.getJEditHome() != null)\n\t\t{\n\t\t\tsystemMacroPath = MiscUtilities.constructPath(\n\t\t\t\tjEdit.getJEditHome(),\"macros\");\n\t\t\tloadMacros(macroHierarchy,\"\",new File(systemMacroPath));\n\t\t}\n\n\t\tEditBus.send(new DynamicMenuChanged(\"macros\"));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [5, 12], [6, 13], [3, 14], [10, 15], [1, 16], [1, 17], [2, 18], [2, 19], [16, 20], [16, 21], [17, 22], [18, 23], [18, 24], [19, 25], [22, 26], [22, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 5], [13, 6], [14, 3], [15, 10], [16, 1], [17, 1], [18, 2], [19, 2], [20, 16], [21, 16], [22, 17], [23, 18], [24, 18], [25, 19], [26, 22], [27, 22], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "registerHandler", "code": "\tpublic static void registerHandler(Handler handler)\n\t{\n\t\tif (getHandler(handler.getName()) != null)\n\t\t{\n\t\t\tLog.log(Log.ERROR, Macros.class, \"Cannot register more than one macro handler with the same name\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.log(Log.DEBUG,Macros.class,\"Registered \" + handler.getName()\n\t\t\t+ \" macro handler\");\n\t\tmacroHandlers.add(handler);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [5, 8], [5, 9], [6, 10], [6, 11], [1, 12], [9, 13], [11, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 5], [9, 5], [10, 6], [11, 6], [12, 1], [13, 9], [14, 11], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getHandlers", "code": "\tpublic static Handler[] getHandlers()\n\t{\n\t\tHandler[] handlers = new Handler[macroHandlers.size()];\n\t\treturn macroHandlers.toArray(handlers);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getHandlerForPathName", "code": "\tpublic static Handler getHandlerForPathName(String pathName)\n\t{\n\t\tfor (int i = 0; i < macroHandlers.size(); i++)\n\t\t{\n\t\t\tHandler handler = macroHandlers.get(i);\n\t\t\tif (handler.accept(pathName))\n\t\t\t\treturn handler;\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getHandler", "code": "\tpublic static Handler getHandler(String name)\n\t{\n\t\tfor (int i = 0; i < macroHandlers.size(); i++)\n\t\t{\n\t\t\tHandler handler = macroHandlers.get(i);\n\t\t\tif (handler.getName().equals(name))\n\t\t\t\treturn handler;\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [10, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 10], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getMacroHierarchy", "code": "\tpublic static Vector getMacroHierarchy()\n\t{\n\t\treturn macroHierarchy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMacroActionSet", "code": "\tpublic static ActionSet getMacroActionSet()\n\t{\n\t\treturn macroActionSet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMacro", "code": "\tpublic static Macro getMacro(String macro)\n\t{\n\t\treturn macroHash.get(macro);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLastMacro", "code": "\tpublic static Macro getLastMacro()\n\t{\n\t\treturn lastMacro;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLastMacro", "code": "\tpublic static void setLastMacro(Macro macro)\n\t{\n\t\tlastMacro = macro;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "recordTemporaryMacro", "code": "\tpublic static void recordTemporaryMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",new String[0]);\n\t\t\treturn;\n\t\t}\n\t\tif(view.getMacroRecorder() != null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"already-recording\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tBuffer buffer = jEdit.openFile((View)null,settings + File.separator\n\t\t\t+ \"macros\",\"Temporary_Macro.bsh\",true,null);\n\n\t\tif(buffer == null)\n\t\t\treturn;\n\n\t\tbuffer.remove(0,buffer.getLength());\n\t\tbuffer.insert(0,jEdit.getProperty(\"macro.temp.header\"));\n\n\t\trecordMacro(view,buffer,true);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [3, 12], [4, 13], [7, 14], [8, 15], [8, 16], [9, 17], [9, 18], [11, 19], [2, 20], [3, 21], [12, 22], [12, 23], [4, 24], [13, 25], [5, 26], [15, 27], [20, 28], [20, 29], [20, 30], [20, 31], [3, 32], [4, 33], [31, 34], [31, 35], [20, 36], [32, 37], [33, 38], [32, 39], [33, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 3], [13, 4], [14, 7], [15, 8], [16, 8], [17, 9], [18, 9], [19, 11], [20, 2], [21, 3], [22, 12], [23, 12], [24, 4], [25, 13], [26, 5], [27, 15], [28, 20], [29, 20], [30, 20], [31, 20], [32, 3], [33, 4], [34, 31], [35, 31], [36, 20], [37, 32], [38, 33], [39, 32], [40, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "recordMacro", "code": "\tpublic static void recordMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tif(view.getMacroRecorder() != null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"already-recording\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tString name = GUIUtilities.input(view,\"record\",null);\n\t\tif(name == null)\n\t\t\treturn;\n\n\t\tname = name.replace(' ','_');\n\n\t\tBuffer buffer = jEdit.openFile((View) null,null,\n\t\t\tMiscUtilities.constructPath(settings,\"macros\",\n\t\t\tname + \".bsh\"),true,null);\n\n\t\tif(buffer == null)\n\t\t\treturn;\n\n\t\tbuffer.remove(0,buffer.getLength());\n\t\tbuffer.insert(0,jEdit.getProperty(\"macro.header\"));\n\n\t\trecordMacro(view,buffer,false);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [0, 14], [3, 15], [3, 16], [5, 17], [6, 18], [9, 19], [10, 20], [10, 21], [11, 22], [11, 23], [13, 24], [2, 25], [14, 26], [16, 27], [4, 28], [5, 29], [17, 30], [17, 31], [6, 32], [18, 33], [7, 34], [20, 35], [25, 36], [25, 37], [25, 38], [25, 39], [26, 40], [26, 41], [28, 42], [28, 43], [5, 44], [6, 45], [38, 46], [38, 47], [25, 48], [44, 49], [45, 50], [46, 51], [44, 52], [45, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 0], [15, 3], [16, 3], [17, 5], [18, 6], [19, 9], [20, 10], [21, 10], [22, 11], [23, 11], [24, 13], [25, 2], [26, 14], [27, 16], [28, 4], [29, 5], [30, 17], [31, 17], [32, 6], [33, 18], [34, 7], [35, 20], [36, 25], [37, 25], [38, 25], [39, 25], [40, 26], [41, 26], [42, 28], [43, 28], [44, 5], [45, 6], [46, 38], [47, 38], [48, 25], [49, 44], [50, 45], [51, 46], [52, 44], [53, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "stopRecording", "code": "\tpublic static void stopRecording(View view)\n\t{\n\t\tRecorder recorder = view.getMacroRecorder();\n\n\t\tif(recorder == null)\n\t\t\tGUIUtilities.error(view,\"macro-not-recording\",null);\n\t\telse\n\t\t{\n\t\t\tview.setMacroRecorder(null);\n\t\t\tif(!recorder.temporary)\n\t\t\t\tview.setBuffer(recorder.buffer);\n\t\t\trecorder.dispose();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [1, 9], [1, 10], [6, 11], [6, 12], [5, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 1], [10, 1], [11, 6], [12, 6], [13, 5], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "runTemporaryMacro", "code": "\tpublic static void runTemporaryMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",null);\n\t\t\treturn;\n\t\t}\n\n\t\tString path = MiscUtilities.constructPath(\n\t\t\tjEdit.getSettingsDirectory(),\"macros\",\n\t\t\t\"Temporary_Macro.bsh\");\n\n\t\tif(jEdit.getBuffer(path) == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-temp-macro\",null);\n\t\t\treturn;\n\t\t}\n\n\t\tHandler handler = getHandler(\"beanshell\");\n\t\tMacro temp = handler.createMacro(path,path);\n\n\t\tBuffer buffer = view.getBuffer();\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\t\t\ttemp.invoke(view);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\t/* I already wrote a comment expaining this in\n\t\t\t * Macro.invoke(). */\n\t\t\tif(buffer.insideCompoundEdit())\n\t\t\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [5, 11], [7, 12], [10, 13], [1, 14], [1, 15], [2, 16], [3, 17], [4, 18], [5, 19], [11, 20], [11, 21], [6, 22], [7, 23], [12, 24], [8, 25], [10, 26], [18, 27], [5, 28], [22, 29], [22, 30], [22, 31], [7, 32], [28, 33], [28, 34], [32, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 5], [12, 7], [13, 10], [14, 1], [15, 1], [16, 2], [17, 3], [18, 4], [19, 5], [20, 11], [21, 11], [22, 6], [23, 7], [24, 12], [25, 8], [26, 10], [27, 18], [28, 5], [29, 22], [30, 22], [31, 22], [32, 7], [33, 28], [34, 28], [35, 32], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "loadMacros", "code": "\tprivate static void loadMacros(List vector, String path, File directory)\n\t{\n\t\tlastMacro = null;\n\n\t\tFile[] macroFiles = directory.listFiles();\n\t\tif(macroFiles == null || macroFiles.length == 0)\n\t\t\treturn;\n\n\t\tfor(int i = 0; i < macroFiles.length; i++)\n\t\t{\n\t\t\tFile file = macroFiles[i];\n\t\t\tString fileName = file.getName();\n\t\t\tif(file.isHidden())\n\t\t\t{\n\t\t\t\t/* do nothing! */\n\t\t\t}\n\t\t\telse if(file.isDirectory())\n\t\t\t{\n\t\t\t\tString submenuName = fileName.replace('_',' ');\n\t\t\t\tList submenu = null;\n\t\t\t\t//{{{ try to merge with an existing menu first\n\t\t\t\tfor(int j = 0; j < vector.size(); j++)\n\t\t\t\t{\n\t\t\t\t\tObject obj = vector.get(j);\n\t\t\t\t\tif(obj instanceof List)\n\t\t\t\t\t{\n\t\t\t\t\t\tList vec = (List)obj;\n\t\t\t\t\t\tif(submenuName.equals(vec.get(0)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsubmenu = vec;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} //}}}\n\t\t\t\tif(submenu == null)\n\t\t\t\t{\n\t\t\t\t\tsubmenu = new Vector();\n\t\t\t\t\tsubmenu.add(submenuName);\n\t\t\t\t\tvector.add(submenu);\n\t\t\t\t}\n\n\t\t\t\tloadMacros(submenu,path + fileName + '/',file);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\taddMacro(file,path,vector);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [0, 10], [1, 11], [1, 12], [1, 13], [9, 14], [9, 15], [3, 16], [10, 17], [11, 18], [11, 19], [1, 20], [14, 21], [15, 22], [18, 23], [12, 24], [18, 25], [18, 26], [18, 27], [18, 28], [18, 29], [18, 30], [25, 31], [26, 32], [30, 33], [31, 34], [26, 35], [26, 36], [32, 37], [27, 38], [28, 39], [33, 40], [33, 41], [25, 42], [25, 43], [25, 44], [35, 45], [26, 46], [39, 47], [39, 48], [44, 49], [35, 50], [35, 51], [36, 52], [50, 53], [50, 54], [53, 55], [50, 56], [55, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 0], [11, 1], [12, 1], [13, 1], [14, 9], [15, 9], [16, 3], [17, 10], [18, 11], [19, 11], [20, 1], [21, 14], [22, 15], [23, 18], [24, 12], [25, 18], [26, 18], [27, 18], [28, 18], [29, 18], [30, 18], [31, 25], [32, 26], [33, 30], [34, 31], [35, 26], [36, 26], [37, 32], [38, 27], [39, 28], [40, 33], [41, 33], [42, 25], [43, 25], [44, 25], [45, 35], [46, 26], [47, 39], [48, 39], [49, 44], [50, 35], [51, 35], [52, 36], [53, 50], [54, 50], [55, 53], [56, 50], [57, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "addMacro", "code": "\tprivate static void addMacro(File file, String path, List vector)\n\t{\n\t\tString fileName = file.getName();\n\t\tHandler handler = getHandlerForPathName(file.getPath());\n\n\t\tif(handler == null)\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\t// in case macro file name has a space in it.\n\t\t\t// spaces break the view.toolBar property, for instance,\n\t\t\t// since it uses spaces to delimit action names.\n\t\t\tString macroName = (path + fileName).replace(' ','_');\n\t\t\tMacro newMacro = handler.createMacro(macroName,\n\t\t\t\tfile.getPath());\n\t\t\t// ignore if already added.\n\t\t\t// see comment in loadMacros().\n\t\t\tif(macroHash.get(newMacro.getName()) != null)\n\t\t\t\treturn;\n\n\t\t\tvector.add(newMacro.getName());\n\t\t\tjEdit.setTemporaryProperty(newMacro.getName()\n\t\t\t\t+ \".label\",\n\t\t\t\tnewMacro.label);\n\t\t\tjEdit.setTemporaryProperty(newMacro.getName()\n\t\t\t\t+ \".mouse-over\",\n\t\t\t\thandler.getLabel() + \" - \" + file.getPath());\n\t\t\tmacroActionSet.addAction(newMacro);\n\t\t\tmacroHash.put(newMacro.getName(),newMacro);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR, Macros.class, e);\n\t\t\tmacroHandlers.remove(handler);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [2, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [9, 19], [9, 20], [13, 21], [3, 22], [4, 23], [8, 24], [8, 25], [14, 26], [16, 27], [16, 28], [17, 29], [18, 30], [20, 31], [20, 32], [10, 33], [11, 34], [22, 35], [27, 36], [27, 37], [28, 38], [28, 39], [29, 40], [29, 41], [32, 42], [33, 43], [37, 44], [37, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 2], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 9], [20, 9], [21, 13], [22, 3], [23, 4], [24, 8], [25, 8], [26, 14], [27, 16], [28, 16], [29, 17], [30, 18], [31, 20], [32, 20], [33, 10], [34, 11], [35, 22], [36, 27], [37, 27], [38, 28], [39, 28], [40, 29], [41, 29], [42, 32], [43, 33], [44, 37], [45, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "recordMacro", "code": "\tprivate static void recordMacro(View view, Buffer buffer, boolean temporary)\n\t{\n\t\tview.setMacroRecorder(new Recorder(view,buffer,temporary));\n\n\t\t// setting the message to 'null' causes the status bar to check\n\t\t// if a recording is in progress\n\t\tview.getStatus().setMessage(null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "poi-1.5-5157", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/formula/MemErrPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.MemErrPtg", "code": "public class MemErrPtg\n    extends Ptg\n{\n    public final static short sid  = 0x27;\n    private final static int  SIZE = 7;\n    private int               field_1_reserved;\n    private short             field_2_subex_len;\n\n    /** Creates new MemErrPtg */\n\n    public MemErrPtg()\n    {\n    }\n\n    public MemErrPtg(byte [] data, int offset)\n    {\n        field_1_reserved  = LittleEndian.getInt(data, 0);\n        field_2_subex_len = LittleEndian.getShort(data, 4);\n    }\n\n    public void setReserved(int res)\n    {\n        field_1_reserved = res;\n    }\n\n    public int getReserved()\n    {\n        return field_1_reserved;\n    }\n\n    public void setSubexpressionLength(short subexlen)\n    {\n        field_2_subex_len = subexlen;\n    }\n\n    public short getSubexpressionLength()\n    {\n        return field_2_subex_len;\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public String toFormulaString()\n    {\n        return \"ERR#\";", "functions": [{"function_name": "setReserved", "code": "    public void setReserved(int res)\n    {\n        field_1_reserved = res;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReserved", "code": "    public int getReserved()\n    {\n        return field_1_reserved;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSubexpressionLength", "code": "    public void setSubexpressionLength(short subexlen)\n    {\n        field_2_subex_len = subexlen;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSubexpressionLength", "code": "    public short getSubexpressionLength()\n    {\n        return field_2_subex_len;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString()\n    {\n        return \"ERR#\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MemErrPtg", "code": "    public MemErrPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "MemErrPtg", "code": "    public MemErrPtg(byte [] data, int offset)\n    {\n        field_1_reserved  = LittleEndian.getInt(data, 0);\n        field_2_subex_len = LittleEndian.getShort(data, 4);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "camel-1.2-1878", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/util/ObjectHelper.java", "language": "java", "name": "org.apache.camel.util.ObjectHelper", "code": "public class ObjectHelper {\n    private static final transient Log LOG = LogFactory.getLog(ObjectHelper.class);\n\n    /**\n     * Utility classes should not have a public constructor.\n     */\n    private ObjectHelper() {        \n    }\n    \n    /**\n     * A helper method for comparing objects for equality while handling nulls\n     */\n    public static boolean equals(Object a, Object b) {\n        if (a == b) {\n            return true;\n        }\n        return a != null && b != null && a.equals(b);\n    }\n\n    /**\n     * Returns true if the given object is equal to any of the expected value\n     * \n     * @param object\n     * @param values\n     * @return\n     */\n    public static boolean isEqualToAny(Object object, Object... values) {\n        for (Object value : values) {\n            if (equals(object, value)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * A helper method for performing an ordered comparsion on the objects\n     * handling nulls and objects which do not handle sorting gracefully\n     */\n    public static int compare(Object a, Object b) {\n        if (a == b) {\n            return 0;\n        }\n        if (a == null) {\n            return -1;\n        }\n        if (b == null) {\n            return 1;\n        }\n        if (a instanceof Comparable) {\n            Comparable comparable = (Comparable)a;\n            return comparable.compareTo(b);\n        } else {\n            int answer = a.getClass().getName().compareTo(b.getClass().getName());\n            if (answer == 0) {\n                answer = a.hashCode() - b.hashCode();\n            }\n            return answer;\n        }\n    }\n\n    public static void notNull(Object value, String name) {\n        if (value == null) {\n            throw new IllegalArgumentException(name + \" must be specified\");\n        }\n    }\n\n    public static String[] splitOnCharacter(String value, String needle, int count) {\n        String rc[] = new String[count];\n        rc[0] = value;\n        for (int i = 1; i < count; i++) {\n            String v = rc[i - 1];\n            int p = v.indexOf(needle);\n            if (p < 0) {\n                return rc;\n            }\n            rc[i - 1] = v.substring(0, p);\n            rc[i] = v.substring(p + 1);\n        }\n        return rc;\n    }\n\n    /**\n     * Removes any starting characters on the given text which match the given\n     * character\n     * \n     * @param text the string\n     * @param ch the initial characters to remove\n     * @return either the original string or the new substring\n     */\n    public static String removeStartingCharacters(String text, char ch) {\n        int idx = 0;\n        while (text.charAt(idx) == ch) {\n            idx++;\n        }\n        if (idx > 0) {\n            return text.substring(idx);\n        }\n        return text;\n    }\n\n    public static String capitalize(String text) {\n        int length = text.length();\n        if (text == null || length == 0) {\n            return text;\n        }\n        String answer = text.substring(0, 1).toUpperCase();\n        if (length > 1) {\n            answer += text.substring(1, length);\n        }\n        return answer;\n    }\n\n    /**\n     * Returns true if the collection contains the specified value\n     */\n    public static boolean contains(Object collectionOrArray, Object value) {\n        if (collectionOrArray instanceof Collection) {\n            Collection collection = (Collection)collectionOrArray;\n            return collection.contains(value);\n        } else {\n            Iterator iter = ObjectConverter.iterator(value);\n            while (iter.hasNext()) {\n                if (equals(value, iter.next())) {\n                    return true;\n                }\n            }\n            return false;\n        }\n    }\n\n    /**\n     * Returns the predicate matching boolean on a {@link List} result set where\n     * if the first element is a boolean its value is used otherwise this method\n     * returns true if the collection is not empty\n     * \n     * @returns true if the first element is a boolean and its value is true or\n     *          if the list is non empty\n     */\n    public static boolean matches(List list) {\n        if (!list.isEmpty()) {\n            Object value = list.get(0);\n            if (value instanceof Boolean) {\n                Boolean flag = (Boolean)value;\n                return flag.booleanValue();\n            } else {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    public static boolean isNotNullAndNonEmpty(String text) {\n        return text != null && text.trim().length() > 0;\n    }\n\n    public static boolean isNullOrBlank(String text) {\n        return text == null || text.trim().length() <= 0;\n    }\n\n    /**\n     * A helper method to access a system property, catching any security\n     * exceptions\n     * \n     * @param name the name of the system property required\n     * @param defaultValue the default value to use if the property is not\n     *                available or a security exception prevents access\n     * @return the system property value or the default value if the property is\n     *         not available or security does not allow its access\n     */\n    public static String getSystemProperty(String name, String defaultValue) {\n        try {\n            return System.getProperty(name, defaultValue);\n        } catch (Exception e) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Caught security exception accessing system property: \" + name + \". Reason: \" + e,\n                          e);\n            }\n            return defaultValue;\n        }\n    }\n\n    /**\n     * Returns the type name of the given type or null if the type variable is\n     * null\n     */\n    public static String name(Class type) {\n        return type != null ? type.getName() : null;\n    }\n\n    /**\n     * Returns the type name of the given value\n     */\n    public static String className(Object value) {\n        return name(value != null ? value.getClass() : null);\n    }\n\n    /**\n     * Attempts to load the given class name using the thread context class\n     * loader or the class loader used to load this class\n     * \n     * @param name the name of the class to load\n     * @return the class or null if it could not be loaded\n     */\n    public static Class<?> loadClass(String name) {\n        return loadClass(name, ObjectHelper.class.getClassLoader());\n    }\n\n    /**\n     * Attempts to load the given class name using the thread context class\n     * loader or the given class loader\n     * \n     * @param name the name of the class to load\n     * @param loader the class loader to use after the thread context class\n     *                loader\n     * @return the class or null if it could not be loaded\n     */\n    public static Class<?> loadClass(String name, ClassLoader loader) {\n        ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();\n        if (contextClassLoader != null) {\n            try {\n                return contextClassLoader.loadClass(name);\n            } catch (ClassNotFoundException e) {\n                try {\n                    return loader.loadClass(name);\n                } catch (ClassNotFoundException e1) {\n                    LOG.debug(\"Could not find class: \" + name + \". Reason: \" + e);\n                }\n            }\n        }\n        return null;\n    }\n\n    /**\n     * A helper method to invoke a method via reflection and wrap any exceptions\n     * as {@link RuntimeCamelException} instances\n     * \n     * @param method the method to invoke\n     * @param instance the object instance (or null for static methods)\n     * @param parameters the parameters to the method\n     * @return the result of the method invocation\n     */\n    public static Object invokeMethod(Method method, Object instance, Object... parameters) {\n        try {\n            return method.invoke(instance, parameters);\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        } catch (InvocationTargetException e) {\n            throw new RuntimeCamelException(e.getCause());\n        }\n    }\n\n    /**\n     * Returns a list of methods which are annotated with the given annotation\n     * \n     * @param type the type to reflect on\n     * @param annotationType the annotation type\n     * @return a list of the methods found\n     */\n    public static List<Method> findMethodsWithAnnotation(Class<?> type,\n                                                         Class<? extends Annotation> annotationType) {\n        List<Method> answer = new ArrayList<Method>();\n        do {\n            Method[] methods = type.getDeclaredMethods();\n            for (Method method : methods) {\n                if (method.getAnnotation(annotationType) != null) {\n                    answer.add(method);\n                }\n            }\n            type = type.getSuperclass();\n        } while (type != null);\n        return answer;\n    }\n\n    /**\n     * Turns the given object arrays into a meaningful string\n     * \n     * @param objects an array of objects or null\n     * @return a meaningful string\n     */\n    public static String asString(Object[] objects) {\n        if (objects == null) {\n            return \"null\";\n        } else {\n            StringBuffer buffer = new StringBuffer(\"{\");\n            int counter = 0;\n            for (Object object : objects) {\n                if (counter++ > 0) {\n                    buffer.append(\", \");\n                }\n                String text = (object == null) ? \"null\" : object.toString();\n                buffer.append(text);\n            }\n            buffer.append(\"}\");\n            return buffer.toString();\n        }\n    }\n\n    /**\n     * Returns true if a class is assignable from another class like the\n     * {@link Class#isAssignableFrom(Class)} method but which also includes\n     * coercion between primitive types to deal with Java 5 primitive type\n     * wrapping\n     */\n    public static boolean isAssignableFrom(Class a, Class b) {\n        a = convertPrimitiveTypeToWrapperType(a);\n        b = convertPrimitiveTypeToWrapperType(b);\n        return a.isAssignableFrom(b);\n    }\n\n    /**\n     * Converts primitive types such as int to its wrapper type like\n     * {@link Integer}\n     */\n    public static Class convertPrimitiveTypeToWrapperType(Class type) {\n        Class rc = type;\n        if (type.isPrimitive()) {\n            if (type == int.class) {\n                rc = Integer.class;\n            } else if (type == long.class) {\n                rc = Long.class;\n            } else if (type == double.class) {\n                rc = Double.class;\n            } else if (type == float.class) {\n                rc = Float.class;\n            } else if (type == short.class) {\n                rc = Short.class;\n            } else if (type == byte.class) {\n                rc = Byte.class;\n/*\n            } else if (type == boolean.class) {\n                rc = Boolean.class;\n*/\n            }\n        }\n        return rc;\n    }\n\n    /**\n     * Helper method to return the default character set name\n     */\n    public static String getDefaultCharacterSet() {\n        return Charset.defaultCharset().name();\n    }\n\n    /**\n     * Returns the Java Bean property name of the given method, if it is a setter\n     */\n    public static String getPropertyName(Method method) {\n        String propertyName = method.getName();\n        if (propertyName.startsWith(\"set\") && method.getParameterTypes().length == 1) {\n            propertyName = propertyName.substring(3, 4).toLowerCase() + propertyName.substring(4);\n        }\n        return propertyName;\n    }\n\n    /**\n     * Returns true if the given collection of annotations matches the given type\n     */\n    public static boolean hasAnnotation(Annotation[] annotations, Class<?> type) {\n        for (Annotation annotation : annotations) {\n            if (type.isInstance(annotation)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Closes the given resource if it is available, logging any closing exceptions to the given log\n     *\n     * @param closeable the object to close\n     * @param name the name of the resource\n     * @param log the log to use when reporting closure warnings\n     */\n    public static void close(Closeable closeable, String name, Log log) {\n        if (closeable != null) {\n            try {\n                closeable.close();\n            }\n            catch (IOException e) {\n                log.warn(\"Could not close \" + name + \". Reason: \"+ e, e);\n            }\n        }\n    }\n\n    /**\n     * Converts the given value to the required type or throw a meaningful exception\n     */\n    public static <T> T cast(Class<T> toType, Object value) {\n        if (toType == boolean.class) {\n            return (T) cast(Boolean.class, value);\n        }\n        else if (toType.isPrimitive()) {\n            Class newType = convertPrimitiveTypeToWrapperType(toType);\n            if (newType != toType) {\n                return (T) cast(newType, value);\n            }\n        }\n        try {\n            return toType.cast(value);\n        }\n        catch (ClassCastException e) {\n            throw new IllegalArgumentException(\"Failed to convert: \" + value + \" to type: \" + toType.getName() + \" due to: \" + e, e);\n        }\n    }\n\n    /**\n     * A helper method to create a new instance of a type using the default constructor arguments.\n     */\n    public static <T> T newInstance(Class<T> type) {\n        try {\n            return type.newInstance();\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e.getCause());\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    /**\n     * A helper method to create a new instance of a type using the default constructor arguments.\n     */\n    public static <T> T newInstance(Class<?> actualType, Class<T> expectedType) {\n        try {\n            Object value = actualType.newInstance();\n            return cast(expectedType, value);\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e.getCause());\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);", "functions": [{"function_name": "equals", "code": "    public static boolean equals(Object a, Object b) {\n        if (a == b) {\n            return true;\n        }\n        return a != null && b != null && a.equals(b);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [5, 8], [2, 9], [8, 10], [8, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 5], [9, 2], [10, 8], [11, 8], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isEqualToAny", "code": "    public static boolean isEqualToAny(Object object, Object... values) {\n        for (Object value : values) {\n            if (equals(object, value)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "compare", "code": "    public static int compare(Object a, Object b) {\n        if (a == b) {\n            return 0;\n        }\n        if (a == null) {\n            return -1;\n        }\n        if (b == null) {\n            return 1;\n        }\n        if (a instanceof Comparable) {\n            Comparable comparable = (Comparable)a;\n            return comparable.compareTo(b);\n        } else {\n            int answer = a.getClass().getName().compareTo(b.getClass().getName());\n            if (answer == 0) {\n                answer = a.hashCode() - b.hashCode();\n            }\n            return answer;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "RETURN", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [2, 16], [8, 17], [3, 18], [9, 19], [4, 20], [12, 21], [14, 22], [16, 23], [18, 24], [20, 25], [21, 26], [13, 27], [12, 28], [27, 29], [27, 30], [28, 31], [29, 32], [31, 33], [31, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 2], [17, 8], [18, 3], [19, 9], [20, 4], [21, 12], [22, 14], [23, 16], [24, 18], [25, 20], [26, 21], [27, 13], [28, 12], [29, 27], [30, 27], [31, 28], [32, 29], [33, 31], [34, 31], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "notNull", "code": "    public static void notNull(Object value, String name) {\n        if (value == null) {\n            throw new IllegalArgumentException(name + \" must be specified\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "splitOnCharacter", "code": "    public static String[] splitOnCharacter(String value, String needle, int count) {\n        String rc[] = new String[count];\n        rc[0] = value;\n        for (int i = 1; i < count; i++) {\n            String v = rc[i - 1];\n            int p = v.indexOf(needle);\n            if (p < 0) {\n                return rc;\n            }\n            rc[i - 1] = v.substring(0, p);\n            rc[i] = v.substring(p + 1);\n        }\n        return rc;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [9, 14], [2, 15], [12, 16], [13, 17], [9, 18], [14, 19], [10, 20], [8, 21], [16, 22], [17, 23], [22, 24], [13, 25], [11, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 9], [15, 2], [16, 12], [17, 13], [18, 9], [19, 14], [20, 10], [21, 8], [22, 16], [23, 17], [24, 22], [25, 13], [26, 11], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "removeStartingCharacters", "code": "    public static String removeStartingCharacters(String text, char ch) {\n        int idx = 0;\n        while (text.charAt(idx) == ch) {\n            idx++;\n        }\n        if (idx > 0) {\n            return text.substring(idx);\n        }\n        return text;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [7, 10], [8, 11], [4, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 7], [11, 8], [12, 4], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "capitalize", "code": "    public static String capitalize(String text) {\n        int length = text.length();\n        if (text == null || length == 0) {\n            return text;\n        }\n        String answer = text.substring(0, 1).toUpperCase();\n        if (length > 1) {\n            answer += text.substring(1, length);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [7, 9], [3, 10], [4, 11], [8, 12], [8, 13], [5, 14], [2, 15], [10, 16], [10, 17], [10, 18], [12, 19], [13, 20], [15, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 7], [10, 3], [11, 4], [12, 8], [13, 8], [14, 5], [15, 2], [16, 10], [17, 10], [18, 10], [19, 12], [20, 13], [21, 15], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "contains", "code": "    public static boolean contains(Object collectionOrArray, Object value) {\n        if (collectionOrArray instanceof Collection) {\n            Collection collection = (Collection)collectionOrArray;\n            return collection.contains(value);\n        } else {\n            Iterator iter = ObjectConverter.iterator(value);\n            while (iter.hasNext()) {\n                if (equals(value, iter.next())) {\n                    return true;\n                }\n            }\n            return false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [6, 11], [8, 12], [6, 13], [7, 14], [13, 15], [13, 16], [15, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 6], [12, 8], [13, 6], [14, 7], [15, 13], [16, 13], [17, 15], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "matches", "code": "    public static boolean matches(List list) {\n        if (!list.isEmpty()) {\n            Object value = list.get(0);\n            if (value instanceof Boolean) {\n                Boolean flag = (Boolean)value;\n                return flag.booleanValue();\n            } else {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [6, 9], [6, 10], [6, 11], [7, 12], [9, 13], [10, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 6], [10, 6], [11, 6], [12, 7], [13, 9], [14, 10], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "isNotNullAndNonEmpty", "code": "    public static boolean isNotNullAndNonEmpty(String text) {\n        return text != null && text.trim().length() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isNullOrBlank", "code": "    public static boolean isNullOrBlank(String text) {\n        return text == null || text.trim().length() <= 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSystemProperty", "code": "    public static String getSystemProperty(String name, String defaultValue) {\n        try {\n            return System.getProperty(name, defaultValue);\n        } catch (Exception e) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Caught security exception accessing system property: \" + name + \". Reason: \" + e,\n                          e);\n            }\n            return defaultValue;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "RETURN", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [5, 8], [7, 9], [7, 10], [10, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 5], [9, 7], [10, 7], [11, 10], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "name", "code": "    public static String name(Class type) {\n        return type != null ? type.getName() : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "className", "code": "    public static String className(Object value) {\n        return name(value != null ? value.getClass() : null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "loadClass", "code": "    public static Class<?> loadClass(String name) {\n        return loadClass(name, ObjectHelper.class.getClassLoader());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "loadClass", "code": "    public static Class<?> loadClass(String name, ClassLoader loader) {\n        ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();\n        if (contextClassLoader != null) {\n            try {\n                return contextClassLoader.loadClass(name);\n            } catch (ClassNotFoundException e) {\n                try {\n                    return loader.loadClass(name);\n                } catch (ClassNotFoundException e1) {\n                    LOG.debug(\"Could not find class: \" + name + \". Reason: \" + e);\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "RETURN", "CALL", "TRY", "CALL", "CATCH", "RETURN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [3, 10], [8, 11], [8, 12], [10, 13], [11, 14], [12, 15], [14, 16], [14, 17], [17, 18], [16, 19], [19, 20], [20, 21], [21, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 3], [11, 8], [12, 8], [13, 10], [14, 11], [15, 12], [16, 14], [17, 14], [18, 17], [19, 16], [20, 19], [21, 20], [22, 21], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "invokeMethod", "code": "    public static Object invokeMethod(Method method, Object instance, Object... parameters) {\n        try {\n            return method.invoke(instance, parameters);\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        } catch (InvocationTargetException e) {\n            throw new RuntimeCamelException(e.getCause());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "findMethodsWithAnnotation", "code": "    public static List<Method> findMethodsWithAnnotation(Class<?> type,\n                                                         Class<? extends Annotation> annotationType) {\n        List<Method> answer = new ArrayList<Method>();\n        do {\n            Method[] methods = type.getDeclaredMethods();\n            for (Method method : methods) {\n                if (method.getAnnotation(annotationType) != null) {\n                    answer.add(method);\n                }\n            }\n            type = type.getSuperclass();\n        } while (type != null);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [2, 11], [11, 12], [7, 13], [8, 14], [13, 15], [15, 16], [15, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 2], [12, 11], [13, 7], [14, 8], [15, 13], [16, 15], [17, 15], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "asString", "code": "    public static String asString(Object[] objects) {\n        if (objects == null) {\n            return \"null\";\n        } else {\n            StringBuffer buffer = new StringBuffer(\"{\");\n            int counter = 0;\n            for (Object object : objects) {\n                if (counter++ > 0) {\n                    buffer.append(\", \");\n                }\n                String text = (object == null) ? \"null\" : object.toString();\n                buffer.append(text);\n            }\n            buffer.append(\"}\");\n            return buffer.toString();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [4, 10], [1, 11], [8, 12], [11, 13], [5, 14], [5, 15], [6, 16], [7, 17], [5, 18], [15, 19], [17, 20], [14, 21], [19, 22], [21, 23], [21, 24], [21, 25], [15, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 4], [11, 1], [12, 8], [13, 11], [14, 5], [15, 5], [16, 6], [17, 7], [18, 5], [19, 15], [20, 17], [21, 14], [22, 19], [23, 21], [24, 21], [25, 21], [26, 15], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "isAssignableFrom", "code": "    public static boolean isAssignableFrom(Class a, Class b) {\n        a = convertPrimitiveTypeToWrapperType(a);\n        b = convertPrimitiveTypeToWrapperType(b);\n        return a.isAssignableFrom(b);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "convertPrimitiveTypeToWrapperType", "code": "    public static Class convertPrimitiveTypeToWrapperType(Class type) {\n        Class rc = type;\n        if (type.isPrimitive()) {\n            if (type == int.class) {\n                rc = Integer.class;\n            } else if (type == long.class) {\n                rc = Long.class;\n            } else if (type == double.class) {\n                rc = Double.class;\n            } else if (type == float.class) {\n                rc = Float.class;\n            } else if (type == short.class) {\n                rc = Short.class;\n            } else if (type == byte.class) {\n                rc = Byte.class;\n/*\n            } else if (type == boolean.class) {\n                rc = Boolean.class;\n*/\n            }\n        }\n        return rc;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [6, 7], [6, 8], [7, 9], [7, 10], [9, 11], [9, 12], [6, 13], [11, 14], [11, 15], [7, 16], [14, 17], [14, 18], [9, 19], [17, 20], [11, 21], [14, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 6], [8, 6], [9, 7], [10, 7], [11, 9], [12, 9], [13, 6], [14, 11], [15, 11], [16, 7], [17, 14], [18, 14], [19, 9], [20, 17], [21, 11], [22, 14], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getDefaultCharacterSet", "code": "    public static String getDefaultCharacterSet() {\n        return Charset.defaultCharset().name();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPropertyName", "code": "    public static String getPropertyName(Method method) {\n        String propertyName = method.getName();\n        if (propertyName.startsWith(\"set\") && method.getParameterTypes().length == 1) {\n            propertyName = propertyName.substring(3, 4).toLowerCase() + propertyName.substring(4);\n        }\n        return propertyName;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [5, 7], [3, 8], [2, 9], [6, 10], [6, 11], [7, 12], [9, 13], [13, 14], [13, 15], [14, 16], [15, 17], [15, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 5], [8, 3], [9, 2], [10, 6], [11, 6], [12, 7], [13, 9], [14, 13], [15, 13], [16, 14], [17, 15], [18, 15], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "hasAnnotation", "code": "    public static boolean hasAnnotation(Annotation[] annotations, Class<?> type) {\n        for (Annotation annotation : annotations) {\n            if (type.isInstance(annotation)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "close", "code": "    public static void close(Closeable closeable, String name, Log log) {\n        if (closeable != null) {\n            try {\n                closeable.close();\n            }\n            catch (IOException e) {\n                log.warn(\"Could not close \" + name + \". Reason: \"+ e, e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [8, 10], [10, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 8], [11, 10], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "cast", "code": "    public static <T> T cast(Class<T> toType, Object value) {\n        if (toType == boolean.class) {\n            return (T) cast(Boolean.class, value);\n        }\n        else if (toType.isPrimitive()) {\n            Class newType = convertPrimitiveTypeToWrapperType(toType);\n            if (newType != toType) {\n                return (T) cast(newType, value);\n            }\n        }\n        try {\n            return toType.cast(value);\n        }\n        catch (ClassCastException e) {\n            throw new IllegalArgumentException(\"Failed to convert: \" + value + \" to type: \" + toType.getName() + \" due to: \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "RETURN", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [5, 9], [6, 10], [7, 11], [2, 12], [9, 13], [7, 14], [7, 15], [13, 16], [14, 17], [12, 18], [16, 19], [14, 20], [15, 21], [19, 22], [19, 23], [23, 24], [23, 25], [20, 26], [25, 27], [25, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 5], [10, 6], [11, 7], [12, 2], [13, 9], [14, 7], [15, 7], [16, 13], [17, 14], [18, 12], [19, 16], [20, 14], [21, 15], [22, 19], [23, 19], [24, 23], [25, 23], [26, 20], [27, 25], [28, 25], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "newInstance", "code": "    public static <T> T newInstance(Class<T> type) {\n        try {\n            return type.newInstance();\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e.getCause());\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "RETURN", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "newInstance", "code": "    public static <T> T newInstance(Class<?> actualType, Class<T> expectedType) {\n        try {\n            Object value = actualType.newInstance();\n            return cast(expectedType, value);\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e.getCause());\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [8, 11], [9, 12], [7, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 8], [12, 9], [13, 7], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "ObjectHelper", "code": "    private ObjectHelper() {        ", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "poi-1.5-5323", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/formula/NamePtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.NamePtg", "code": "public class NamePtg\n    extends Ptg\n{\n    public final static short sid  = 0x23;\n    private final static int  SIZE = 7;\n    private short             field_2_label_index;\n\n    /** Creates new NamePtg */\n\n    public NamePtg()\n    {\n    }\n\n    /** Creates new NamePtg */\n\n    public NamePtg(byte [] data, int offset)\n    {\n        offset++;\n        field_1_ixti        = LittleEndian.getShort(data, offset);\n        field_2_label_index = LittleEndian.getShort(data, offset + 2);\n        field_3_zero        = LittleEndian.getShort(data, offset + 4);\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public String toFormulaString()\n    {\n        return \"NO IDEA - NAME\";", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString()\n    {\n        return \"NO IDEA - NAME\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "NamePtg", "code": "    public NamePtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NamePtg", "code": "    public NamePtg(byte [] data, int offset)\n    {\n        offset++;\n        field_1_ixti        = LittleEndian.getShort(data, offset);\n        field_2_label_index = LittleEndian.getShort(data, offset + 2);\n        field_3_zero        = LittleEndian.getShort(data, offset + 4);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 1}
{"sample_id": "ant-1.5-429", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/zip/ZipShort.java", "language": "java", "name": "org.apache.tools.zip.ZipShort", "code": "public final class ZipShort implements Cloneable {\n\n    private int value;\n\n    /**\n     * Create instance from a number.\n     *\n     * @since 1.1\n     */\n    public ZipShort (int value) {\n        this.value = value;\n    }\n\n    /**\n     * Create instance from bytes.\n     *\n     * @since 1.1\n     */\n    public ZipShort (byte[] bytes) {\n        this(bytes, 0);\n    }\n\n    /**\n     * Create instance from the two bytes starting at offset.\n     *\n     * @since 1.1\n     */\n    public ZipShort (byte[] bytes, int offset) {\n        value = (bytes[offset + 1] << 8) & 0xFF00;\n        value += (bytes[offset] & 0xFF);\n    }\n\n    /**\n     * Get value as two bytes in big endian byte order.\n     *\n     * @since 1.1\n     */\n    public byte[] getBytes() {\n        byte[] result = new byte[2];\n        result[0] = (byte) (value & 0xFF);\n        result[1] = (byte) ((value & 0xFF00) >> 8);\n        return result;\n    }\n\n    /**\n     * Get value as Java int.\n     *\n     * @since 1.1\n     */\n    public int getValue() {\n        return value;\n    }\n\n    /**\n     * Override to make two instances with same value equal.\n     *\n     * @since 1.1\n     */\n    public boolean equals(Object o) {\n        if (o == null || !(o instanceof ZipShort)) {\n            return false;\n        }\n        return value == ((ZipShort) o).getValue();\n    }\n\n    /**\n     * Override to make two instances with same value equal.\n     *\n     * @since 1.1\n     */\n    public int hashCode() {\n        return value;", "functions": [{"function_name": "getBytes", "code": "    public byte[] getBytes() {\n        byte[] result = new byte[2];\n        result[0] = (byte) (value & 0xFF);\n        result[1] = (byte) ((value & 0xFF00) >> 8);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [2, 7], [5, 8], [5, 9], [3, 10], [6, 11], [4, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 2], [8, 5], [9, 5], [10, 3], [11, 6], [12, 4], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getValue", "code": "    public int getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "equals", "code": "    public boolean equals(Object o) {\n        if (o == null || !(o instanceof ZipShort)) {\n            return false;\n        }\n        return value == ((ZipShort) o).getValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "hashCode", "code": "    public int hashCode() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ZipShort", "code": "    public ZipShort (int value) {\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ZipShort", "code": "    public ZipShort (byte[] bytes) {\n        this(bytes, 0);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ZipShort", "code": "    public ZipShort (byte[] bytes, int offset) {\n        value = (bytes[offset + 1] << 8) & 0xFF00;\n        value += (bytes[offset] & 0xFF);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [6, 8], [6, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [8, 6], [9, 6], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "ant-1.7-882", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/cvslib/RCSFile.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.cvslib.RCSFile", "code": "class RCSFile {\n    private String name;\n    private String revision;\n    private String previousRevision;\n\n\n    RCSFile(final String name, final String rev) {\n        this(name, rev, null);\n    }\n\n\n    RCSFile(final String name,\n                  final String revision,\n                  final String previousRevision) {\n        this.name = name;\n        this.revision = revision;\n        if (!revision.equals(previousRevision)) {\n            this.previousRevision = previousRevision;\n        }\n    }\n\n    /**\n     * Gets the name of the RCSFile\n     * @return name of the file\n     */\n    String getName() {\n        return name;\n    }\n\n    /**\n     * Gets the revision number of the RCSFile\n     * @return the revision number (as String)\n     */\n    String getRevision() {\n        return revision;\n    }\n\n    /**\n     * Gets the previous revision of the RCSFile\n     * @return the previous revision number (as String)\n     */\n    String getPreviousRevision() {\n        return previousRevision;", "functions": [{"function_name": "getName", "code": "    String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRevision", "code": "    String getRevision() {\n        return revision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPreviousRevision", "code": "    String getPreviousRevision() {\n        return previousRevision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RCSFile", "code": "    RCSFile(final String name, final String rev) {\n        this(name, rev, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RCSFile", "code": "    RCSFile(final String name,\n                  final String revision,\n                  final String previousRevision) {\n        this.name = name;\n        this.revision = revision;\n        if (!revision.equals(previousRevision)) {\n            this.previousRevision = previousRevision;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ant-1.3-4", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/taskdefs/Copyfile.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Copyfile", "code": "public class Copyfile extends Task {\n\n    private File srcFile;\n    private File destFile;\n    private boolean filtering = false;\n    private boolean forceOverwrite = false;\n \n    public void setSrc(File src) {\n        srcFile = src;\n    }\n\n    public void setForceoverwrite(boolean force) {\n        forceOverwrite = force;\n    }\n\n    public void setDest(File dest) {\n        destFile = dest;\n    }\n\n    public void setFiltering(String filter) {\n        filtering = Project.toBoolean(filter);\n    }\n\n    public void execute() throws BuildException {\n        log(\"DEPRECATED - The copyfile task is deprecated.  Use copy instead.\");\n\n        if (srcFile == null) {\n            throw new BuildException(\"The src attribute must be present.\", location);\n        }\n        \n        if (!srcFile.exists()) {\n            throw new BuildException(\"src \" + srcFile.toString()\n                                     + \" does not exist.\", location);\n        }\n\n        if (destFile == null) {\n            throw new BuildException(\"The dest attribute must be present.\", location);\n        }\n\n        if (srcFile.equals(destFile)) {\n            log(\"Warning: src == dest\");\n        }\n\n        if (forceOverwrite || srcFile.lastModified() > destFile.lastModified()) {\n            try {\n                project.copyFile(srcFile, destFile, filtering, forceOverwrite);\n            } catch (IOException ioe) {\n                String msg = \"Error copying file: \" + srcFile.getAbsolutePath()\n                    + \" due to \" + ioe.getMessage();\n                throw new BuildException(msg);", "functions": [{"function_name": "setSrc", "code": "    public void setSrc(File src) {\n        srcFile = src;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setForceoverwrite", "code": "    public void setForceoverwrite(boolean force) {\n        forceOverwrite = force;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDest", "code": "    public void setDest(File dest) {\n        destFile = dest;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFiltering", "code": "    public void setFiltering(String filter) {\n        filtering = Project.toBoolean(filter);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        log(\"DEPRECATED - The copyfile task is deprecated.  Use copy instead.\");\n\n        if (srcFile == null) {\n            throw new BuildException(\"The src attribute must be present.\", location);\n        }\n        \n        if (!srcFile.exists()) {\n            throw new BuildException(\"src \" + srcFile.toString()\n                                     + \" does not exist.\", location);\n        }\n\n        if (destFile == null) {\n            throw new BuildException(\"The dest attribute must be present.\", location);\n        }\n\n        if (srcFile.equals(destFile)) {\n            log(\"Warning: src == dest\");\n        }\n\n        if (forceOverwrite || srcFile.lastModified() > destFile.lastModified()) {\n            try {\n                project.copyFile(srcFile, destFile, filtering, forceOverwrite);\n            } catch (IOException ioe) {\n                String msg = \"Error copying file: \" + srcFile.getAbsolutePath()\n                    + \" due to \" + ioe.getMessage();\n                throw new BuildException(msg);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "TRY", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [5, 10], [0, 11], [1, 12], [6, 13], [3, 14], [8, 15], [4, 16], [5, 17], [10, 18], [11, 19], [12, 20], [13, 21], [13, 22], [2, 23], [14, 24], [16, 25], [17, 26], [20, 27], [20, 28], [12, 29], [23, 30], [24, 31], [25, 32], [26, 33], [27, 34], [32, 35], [32, 36], [28, 37], [36, 38], [36, 39], [37, 40], [37, 41], [41, 42], [41, 43], [43, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 5], [11, 0], [12, 1], [13, 6], [14, 3], [15, 8], [16, 4], [17, 5], [18, 10], [19, 11], [20, 12], [21, 13], [22, 13], [23, 2], [24, 14], [25, 16], [26, 17], [27, 20], [28, 20], [29, 12], [30, 23], [31, 24], [32, 25], [33, 26], [34, 27], [35, 32], [36, 32], [37, 28], [38, 36], [39, 36], [40, 37], [41, 37], [42, 41], [43, 41], [44, 43], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}], "label": 0}
{"sample_id": "poi-2.0-5600", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/poifs/dev/POIFSViewable.java", "language": "java", "name": "org.apache.poi.poifs.dev.POIFSViewable", "code": "public interface POIFSViewable\n{\n\n    /**\n     * Get an array of objects, some of which may implement\n     * POIFSViewable\n     *\n     * @return an array of Object; may not be null, but may be empty\n     */\n\n    public Object [] getViewableArray();\n\n    /**\n     * Get an Iterator of objects, some of which may implement\n     * POIFSViewable\n     *\n     * @return an Iterator; may not be null, but may have an empty\n     * back end store\n     */\n\n    public Iterator getViewableIterator();\n\n    /**\n     * Give viewers a hint as to whether to call getViewableArray or\n     * getViewableIterator\n     *\n     * @return true if a viewer should call getViewableArray, false if\n     *         a viewer should call getViewableIterator\n     */\n\n    public boolean preferArray();\n\n    /**\n     * Provides a short description of the object, to be used when a\n     * POIFSViewable object has not provided its contents.\n     *\n     * @return short description\n     */\n\n    public String getShortDescription();", "functions": [{"function_name": "getViewableArray", "code": "    public Object [] getViewableArray();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getViewableIterator", "code": "    public Iterator getViewableIterator();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "preferArray", "code": "    public boolean preferArray();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getShortDescription", "code": "    public String getShortDescription();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.3-4767", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/JEditRegisterSaver.java", "language": "java", "name": "org.gjt.sp.jedit.JEditRegisterSaver", "code": "class JEditRegisterSaver implements RegisterSaver\n{\n\t//{{{ Constructor\n\tJEditRegisterSaver()\n\t{\n\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tregistersXML = new SettingsXML(settingsDirectory, \"registers\");\n\t\t}\n\t} //}}}\n\n\t//{{{ loadRegisters() method\n\tpublic void loadRegisters()\n\t{\n\t\tif(registersXML == null)\n\t\t\treturn;\n\n\t\tif(!registersXML.fileExists())\n\t\t\treturn;\n\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"Loading \" + registersXML);\n\n\t\tRegistersHandler handler = new RegistersHandler();\n\t\ttry\n\t\t{\n\t\t\tRegisters.setLoading(true);\n\t\t\tregistersXML.load(handler);\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\tLog.log(Log.ERROR, Registers.class, ioe);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tRegisters.setLoading(false);\n\t\t}\n\t} //}}}\n\n\t//{{{ saveRegisters() method\n\tpublic void saveRegisters()\n\t{\n\t\tif(registersXML == null)\n\t\t\treturn;\n\n\t\tif(registersXML.hasChangedOnDisk())\n\t\t{\n\t\t\tLog.log(Log.WARNING,Registers.class,registersXML\n\t\t\t\t+ \" changed on disk; will not save registers\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.log(Log.MESSAGE,Registers.class,\"Saving \" + registersXML);\n\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\tSettingsXML.Saver out = null;\n\n\t\ttry\n\t\t{\n\t\t\tout = registersXML.openSaver();\n\t\t\tout.writeXMLDeclaration();\n\n\t\t\tout.write(\"<!DOCTYPE REGISTERS SYSTEM \\\"registers.dtd\\\">\");\n\t\t\tout.write(lineSep);\n\t\t\tout.write(\"<REGISTERS>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tRegisters.Register[] registers = Registers.getRegisters();\n\t\t\tfor(int i = 0; i < registers.length; i++)\n\t\t\t{\n\t\t\t\tRegisters.Register register = registers[i];\n\t\t\t\tif(register == null ||\n\t\t\t\t   i == '$' ||\n\t\t\t\t   i == '%' ||\n\t\t\t\t   register.toString().length() == 0)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tout.write(\"<REGISTER NAME=\\\"\");\n\t\t\t\tif(i == '\"')\n\t\t\t\t\tout.write(\"&quot;\");\n\t\t\t\telse\n\t\t\t\t\tout.write((char)i);\n\t\t\t\tout.write(\"\\\">\");\n\n\t\t\t\tout.write(XMLUtilities.charsToEntities(\n\t\t\t\t\tregister.toString(), false));\n\n\t\t\t\tout.write(\"</REGISTER>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t}\n\n\t\t\tout.write(\"</REGISTERS>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tout.finish();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,Registers.class,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(out);\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate SettingsXML registersXML;\n\n\t//{{{ RegistersHandler class\n\tprivate static class RegistersHandler extends DefaultHandler\n\t{\n\t\t//{{{ resolveEntity() method\n\t\t@Override\n\t\tpublic InputSource resolveEntity(String publicId, String systemId)\n\t\t{\n\t\t\treturn XMLUtilities.findEntity(systemId, \"registers.dtd\", getClass());\n\t\t} //}}}\n\n\t\t//{{{ startElement() method\n\t\t@Override\n\t\tpublic void startElement(String uri, String localName,\n\t\t\t\t\t String qName, Attributes attrs)\n\t\t{\n\t\t\tregisterName = attrs.getValue(\"NAME\");\n\t\t\tinRegister = \"REGISTER\".equals(qName);\n\t\t} //}}}\n\n\t\t//{{{ endElement() method\n\t\t@Override\n\t\tpublic void endElement(String uri, String localName, String name)\n\t\t{\n\t\t\tif(\"REGISTER\".equals(name))\n\t\t\t{\n\t\t\t\tif(registerName == null || registerName.length() != 1)\n\t\t\t\t\tLog.log(Log.ERROR,this,\"Malformed NAME: \" + registerName);\n\t\t\t\telse\n\t\t\t\t\tRegisters.setRegister(registerName.charAt(0),charData.toString());\n\t\t\t\tinRegister = false;\n\t\t\t\tcharData.setLength(0);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ characters() method\n\t\t@Override\n\t\tpublic void characters(char[] ch, int start, int length)\n\t\t{\n\t\t\tif (inRegister)\n\t\t\t\tcharData.append(ch, start, length);\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate String registerName;\n\t\tprivate final StringBuilder charData = new StringBuilder();\n\t\tprivate boolean inRegister;", "functions": [{"function_name": "loadRegisters", "code": "\tpublic void loadRegisters()\n\t{\n\t\tif(registersXML == null)\n\t\t\treturn;\n\n\t\tif(!registersXML.fileExists())\n\t\t\treturn;\n\n\t\tLog.log(Log.MESSAGE,jEdit.class,\"Loading \" + registersXML);\n\n\t\tRegistersHandler handler = new RegistersHandler();\n\t\ttry\n\t\t{\n\t\t\tRegisters.setLoading(true);\n\t\t\tregistersXML.load(handler);\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\tLog.log(Log.ERROR, Registers.class, ioe);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tRegisters.setLoading(false);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "IF", "CATCH", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [3, 7], [3, 8], [4, 9], [4, 10], [1, 11], [1, 12], [1, 13], [2, 14], [6, 15], [10, 16], [11, 17], [5, 18], [13, 19], [15, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 3], [8, 3], [9, 4], [10, 4], [11, 1], [12, 1], [13, 1], [14, 2], [15, 6], [16, 10], [17, 11], [18, 5], [19, 13], [20, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "saveRegisters", "code": "\tpublic void saveRegisters()\n\t{\n\t\tif(registersXML == null)\n\t\t\treturn;\n\n\t\tif(registersXML.hasChangedOnDisk())\n\t\t{\n\t\t\tLog.log(Log.WARNING,Registers.class,registersXML\n\t\t\t\t+ \" changed on disk; will not save registers\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.log(Log.MESSAGE,Registers.class,\"Saving \" + registersXML);\n\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\tSettingsXML.Saver out = null;\n\n\t\ttry\n\t\t{\n\t\t\tout = registersXML.openSaver();\n\t\t\tout.writeXMLDeclaration();\n\n\t\t\tout.write(\"<!DOCTYPE REGISTERS SYSTEM \\\"registers.dtd\\\">\");\n\t\t\tout.write(lineSep);\n\t\t\tout.write(\"<REGISTERS>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tRegisters.Register[] registers = Registers.getRegisters();\n\t\t\tfor(int i = 0; i < registers.length; i++)\n\t\t\t{\n\t\t\t\tRegisters.Register register = registers[i];\n\t\t\t\tif(register == null ||\n\t\t\t\t   i == '$' ||\n\t\t\t\t   i == '%' ||\n\t\t\t\t   register.toString().length() == 0)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tout.write(\"<REGISTER NAME=\\\"\");\n\t\t\t\tif(i == '\"')\n\t\t\t\t\tout.write(\"&quot;\");\n\t\t\t\telse\n\t\t\t\t\tout.write((char)i);\n\t\t\t\tout.write(\"\\\">\");\n\n\t\t\t\tout.write(XMLUtilities.charsToEntities(\n\t\t\t\t\tregister.toString(), false));\n\n\t\t\t\tout.write(\"</REGISTER>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t}\n\n\t\t\tout.write(\"</REGISTERS>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tout.finish();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,Registers.class,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(out);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "CATCH", "LOOP", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [0, 9], [4, 10], [5, 11], [5, 12], [1, 13], [1, 14], [1, 15], [1, 16], [7, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [2, 24], [3, 25], [9, 26], [4, 27], [12, 28], [6, 29], [16, 30], [7, 31], [7, 32], [7, 33], [8, 34], [19, 35], [21, 36], [23, 37], [25, 38], [26, 39], [4, 40], [7, 41], [7, 42], [7, 43], [7, 44], [31, 45], [7, 46], [32, 47], [32, 48], [7, 49], [40, 50], [42, 51], [43, 52], [44, 53], [31, 54], [31, 55], [45, 56], [46, 57], [48, 58], [48, 59], [50, 60], [52, 61], [52, 62], [55, 63], [58, 64], [58, 65], [59, 66], [59, 67], [65, 68], [66, 69], [67, 70], [67, 71], [70, 72], [71, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 0], [10, 4], [11, 5], [12, 5], [13, 1], [14, 1], [15, 1], [16, 1], [17, 7], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 2], [25, 3], [26, 9], [27, 4], [28, 12], [29, 6], [30, 16], [31, 7], [32, 7], [33, 7], [34, 8], [35, 19], [36, 21], [37, 23], [38, 25], [39, 26], [40, 4], [41, 7], [42, 7], [43, 7], [44, 7], [45, 31], [46, 7], [47, 32], [48, 32], [49, 7], [50, 40], [51, 42], [52, 43], [53, 44], [54, 31], [55, 31], [56, 45], [57, 46], [58, 48], [59, 48], [60, 50], [61, 52], [62, 52], [63, 55], [64, 58], [65, 58], [66, 59], [67, 59], [68, 65], [69, 66], [70, 67], [71, 67], [72, 70], [73, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "JEditRegisterSaver", "code": "\tJEditRegisterSaver()\n\t{\n\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tregistersXML = new SettingsXML(settingsDirectory, \"registers\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [1, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [6, 1], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "jedit-4.0-3799", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "bsh/BSHPrimarySuffix.java", "language": "java", "name": "bsh.BSHPrimarySuffix", "code": "class BSHPrimarySuffix extends SimpleNode\n{\n\tpublic static final int\n\t\tCLASS = 0,\n\t\tINDEX = 1,\n\t\tNAME = 2,\n\t\tPROPERTY = 3;\n\n\tpublic int operation;\n\tObject index;\n\tpublic String field;\n\n\tBSHPrimarySuffix(int id) { super(id); }\n\n\t/*\n\t\tPerform a suffix operation on the given object and return the \n\t\tnew value.\n\n\t\tobj will be a Node when suffix evaluation begins, allowing us to\n\t\tinterpret it contextually. (e.g. for .class) Thereafter it will be \n\t\ta normal object.\n\t*/\n\tpublic Object doSuffix(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError\n\t{\n\t\t// Handle \".class\" suffix operation\n\t\t/*\n\t\tif ( operation == CLASS )\n\t\t\tif ( obj instanceof BSHAmbiguousName ) {\n\t\t\t\tNameSpace namespace = callstack.top();\n\t\t\t\treturn ((BSHAmbiguousName)obj).toClass( namespace );\n\t\t\t} else\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"Attemp to .class on non class...\", this);\n\t\t*/\n\t\tif ( operation == CLASS )\n\t\t\tif ( obj instanceof BSHType ) {\n\t\t\t\tNameSpace namespace = callstack.top();\n\t\t\t\treturn ((BSHType)obj).getType( namespace );\n\t\t\t} else\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"Attemp to invoke .class on non class.\", this);\n\n\t\t// Handle other suffix operations\n\n\t\t/*\n\t\t\teval( ) the node to an object\n\n\t\t\tNote: This construct is now necessary where the node may be\n\t\t\tan ambiguous name.  If this becomes common we might want to \n\t\t\tmake a static method nodeToObject() or something.\n\t\t*/\n\t\tif ( obj instanceof SimpleNode )\n\t\t\tif ( obj instanceof BSHAmbiguousName )\n\t\t\t\tobj = ((BSHAmbiguousName)obj).toObject(callstack, interpreter);\n\t\t\telse\n\t\t\t\tobj = ((SimpleNode)obj).eval(callstack, interpreter);\t\n\n\t\ttry\n\t\t{\n\t\t\tswitch(operation)\n\t\t\t{\n\t\t\t\tcase INDEX:\n\t\t\t\t\treturn doIndex(obj, callstack, interpreter );\n\n\t\t\t\tcase NAME:\n\t\t\t\t\treturn doName(obj, callstack, interpreter );\n\n\t\t\t\tcase PROPERTY:\n\t\t\t\t\treturn doProperty(obj, callstack, interpreter );\n\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new InterpreterError(\"LHS suffix\");\n\t\t\t} \n\t\t}\n\t\tcatch(ReflectError e)\n\t\t{\n\t\t\tthrow new EvalError(\"reflection error: \" + e, this);\n\t\t}\n\t\tcatch(InvocationTargetException e)\n\t\t{\n\t\t\tthrow new TargetError(\n\t\t\t\t\"target exception\", e.getTargetException(), this, true);\n\t\t}\n\t}\n\n\t/*\n\t\tField access or a method invocation\n\t\tField access might be .length on an array\n\t*/\n\tprivate Object doName(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError, ReflectError, InvocationTargetException\n\t{\n\t\tif(field.equals(\"length\") && obj.getClass().isArray())\n\t\t\treturn new Primitive(Array.getLength(obj));\n\t\t\n\t\tif (jjtGetNumChildren() == 0)\n\t\t\t// field access\n\t\t\treturn Reflect.getObjectField(obj, field);\n\t\telse\n\t\t{\n\t\t\t// method invocation\n\t\t\tObject[] oa = ((BSHArguments)jjtGetChild(0)).getArguments(\n\t\t\t\tcallstack, interpreter);\n\t\t\ttry {\n\t\t\t\treturn Reflect.invokeObjectMethod(interpreter, obj, field, oa, this);\n\t\t\t} catch ( EvalError ee ) {\n\t\t\t\t// catch and re-throw to get line number right\n\t\t\t\tthrow new EvalError( ee.getMessage(), this );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t\tJust factoring out some common code for the two suffix classes...\n\t\tlater need to complete factoring of these classes\n\t\t(BSHPrimarySuffix, BSHLHSPrimarySuffix)\n\t*/\n\tstatic int getIndexAux(\n\t\tObject obj, CallStack callstack, Interpreter interpreter, \n\t\tSimpleNode callerNode ) \n\t\tthrows EvalError\n\t{\n\t\tif ( !obj.getClass().isArray() )\n\t\t\tthrow new EvalError(\"Not an array\", callerNode );\n\n\t\tint index;\n\t\ttry {\n\t\t\tObject indexVal = \n\t\t\t\t((SimpleNode)callerNode.jjtGetChild(0)).eval( \n\t\t\t\t\tcallstack, interpreter );\n\t\t\tif ( !(indexVal instanceof Primitive) )\n\t\t\t\tindexVal = NameSpace.getAssignableForm( indexVal, Integer.TYPE);\n\t\t\tindex = ((Primitive)indexVal).intValue();\n\t\t} catch( EvalError e ) {\n\t\t\tInterpreter.debug(\"doIndex: \"+e);\n\t\t\te.reThrow(\n\t\t\t\t\"You can only index arrays by integer types\", callerNode );\n\t\t\tthrow new Error(\"can't get here\");\n\t\t}\n\n\t\treturn index;\n\t}\n\n\tprivate Object doIndex(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError, ReflectError\n\t{\n\t\tint index = getIndexAux( obj, callstack, interpreter, this );\n\t\treturn Reflect.getIndex(obj, index);\n\t}\n\n\tprivate Object doProperty( \n\t\tObject obj, CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError\n\t{\n\t\tif(obj == Primitive.VOID)\n\t\t\tthrow new EvalError(\"Attempt to access property on undefined variable or class name\", this);\n\n\t\tif(obj instanceof Primitive)\n\t\t\tthrow new EvalError(\"Attempt to access property on a primitive\", this);\n\n\t\tObject value = ((SimpleNode)jjtGetChild(0)).eval(\n\t\t\tcallstack, interpreter);\n\t\tif(!(value instanceof String))\n\t\t\tthrow new EvalError(\"Property expression must be a String or identifier.\", this);\n\n\t\t// property style access to hashtable\n\t\tif(obj instanceof Hashtable)\n\t\t{\n\t\t\tObject val = ((Hashtable)obj).get((String)value);\n\t\t\tif(val == null)\n\t\t\t\tval = Primitive.NULL;\n\t\t\treturn val;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\treturn Reflect.getObjectProperty(obj, (String)value);\n\t\t}\n\t\tcatch(ReflectError e)\n\t\t{\n\t\t\tInterpreter.debug(e.toString());\n\t\t\tthrow new EvalError(\"No such property: \" + value, this);", "functions": [{"function_name": "doSuffix", "code": "\tpublic Object doSuffix(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError\n\t{\n\t\t// Handle \".class\" suffix operation\n\t\t/*\n\t\tif ( operation == CLASS )\n\t\t\tif ( obj instanceof BSHAmbiguousName ) {\n\t\t\t\tNameSpace namespace = callstack.top();\n\t\t\t\treturn ((BSHAmbiguousName)obj).toClass( namespace );\n\t\t\t} else\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"Attemp to .class on non class...\", this);\n\t\t*/\n\t\tif ( operation == CLASS )\n\t\t\tif ( obj instanceof BSHType ) {\n\t\t\t\tNameSpace namespace = callstack.top();\n\t\t\t\treturn ((BSHType)obj).getType( namespace );\n\t\t\t} else\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"Attemp to invoke .class on non class.\", this);\n\n\t\t// Handle other suffix operations\n\n\t\t/*\n\t\t\teval( ) the node to an object\n\n\t\t\tNote: This construct is now necessary where the node may be\n\t\t\tan ambiguous name.  If this becomes common we might want to \n\t\t\tmake a static method nodeToObject() or something.\n\t\t*/\n\t\tif ( obj instanceof SimpleNode )\n\t\t\tif ( obj instanceof BSHAmbiguousName )\n\t\t\t\tobj = ((BSHAmbiguousName)obj).toObject(callstack, interpreter);\n\t\t\telse\n\t\t\t\tobj = ((SimpleNode)obj).eval(callstack, interpreter);\t\n\n\t\ttry\n\t\t{\n\t\t\tswitch(operation)\n\t\t\t{\n\t\t\t\tcase INDEX:\n\t\t\t\t\treturn doIndex(obj, callstack, interpreter );\n\n\t\t\t\tcase NAME:\n\t\t\t\t\treturn doName(obj, callstack, interpreter );\n\n\t\t\t\tcase PROPERTY:\n\t\t\t\t\treturn doProperty(obj, callstack, interpreter );\n\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new InterpreterError(\"LHS suffix\");\n\t\t\t} \n\t\t}\n\t\tcatch(ReflectError e)\n\t\t{\n\t\t\tthrow new EvalError(\"reflection error: \" + e, this);\n\t\t}\n\t\tcatch(InvocationTargetException e)\n\t\t{\n\t\t\tthrow new TargetError(\n\t\t\t\t\"target exception\", e.getTargetException(), this, true);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "SWITCH", "IF", "BINARY_OP", "IF", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "ASSIGN", "ASSIGN", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [2, 11], [3, 12], [3, 13], [7, 14], [8, 15], [10, 16], [12, 17], [12, 18], [14, 19], [15, 20], [9, 21], [9, 22], [9, 23], [9, 24], [10, 25], [10, 26], [17, 27], [12, 28], [12, 29], [19, 30], [19, 31], [19, 32], [20, 33], [21, 34], [22, 35], [23, 36], [24, 37], [27, 38], [33, 39], [34, 40], [29, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 2], [12, 3], [13, 3], [14, 7], [15, 8], [16, 10], [17, 12], [18, 12], [19, 14], [20, 15], [21, 9], [22, 9], [23, 9], [24, 9], [25, 10], [26, 10], [27, 17], [28, 12], [29, 12], [30, 19], [31, 19], [32, 19], [33, 20], [34, 21], [35, 22], [36, 23], [37, 24], [38, 27], [39, 33], [40, 34], [41, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "doName", "code": "\tprivate Object doName(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError, ReflectError, InvocationTargetException\n\t{\n\t\tif(field.equals(\"length\") && obj.getClass().isArray())\n\t\t\treturn new Primitive(Array.getLength(obj));\n\t\t\n\t\tif (jjtGetNumChildren() == 0)\n\t\t\t// field access\n\t\t\treturn Reflect.getObjectField(obj, field);\n\t\telse\n\t\t{\n\t\t\t// method invocation\n\t\t\tObject[] oa = ((BSHArguments)jjtGetChild(0)).getArguments(\n\t\t\t\tcallstack, interpreter);\n\t\t\ttry {\n\t\t\t\treturn Reflect.invokeObjectMethod(interpreter, obj, field, oa, this);\n\t\t\t} catch ( EvalError ee ) {\n\t\t\t\t// catch and re-throw to get line number right\n\t\t\t\tthrow new EvalError( ee.getMessage(), this );", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "TRY", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CATCH", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [2, 9], [1, 10], [1, 11], [6, 12], [7, 13], [7, 14], [8, 15], [9, 16], [9, 17], [10, 18], [10, 19], [15, 20], [16, 21], [17, 22], [18, 23], [19, 24], [23, 25], [11, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 2], [10, 1], [11, 1], [12, 6], [13, 7], [14, 7], [15, 8], [16, 9], [17, 9], [18, 10], [19, 10], [20, 15], [21, 16], [22, 17], [23, 18], [24, 19], [25, 23], [26, 11], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "getIndexAux", "code": "\tstatic int getIndexAux(\n\t\tObject obj, CallStack callstack, Interpreter interpreter, \n\t\tSimpleNode callerNode ) \n\t\tthrows EvalError\n\t{\n\t\tif ( !obj.getClass().isArray() )\n\t\t\tthrow new EvalError(\"Not an array\", callerNode );\n\n\t\tint index;\n\t\ttry {\n\t\t\tObject indexVal = \n\t\t\t\t((SimpleNode)callerNode.jjtGetChild(0)).eval( \n\t\t\t\t\tcallstack, interpreter );\n\t\t\tif ( !(indexVal instanceof Primitive) )\n\t\t\t\tindexVal = NameSpace.getAssignableForm( indexVal, Integer.TYPE);\n\t\t\tindex = ((Primitive)indexVal).intValue();\n\t\t} catch( EvalError e ) {\n\t\t\tInterpreter.debug(\"doIndex: \"+e);\n\t\t\te.reThrow(\n\t\t\t\t\"You can only index arrays by integer types\", callerNode );\n\t\t\tthrow new Error(\"can't get here\");\n\t\t}\n\n\t\treturn index;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "THROW_RAISE", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [2, 11], [4, 12], [4, 13], [9, 14], [2, 15], [10, 16], [12, 17], [13, 18], [14, 19], [9, 20], [9, 21], [10, 22], [17, 23], [19, 24], [20, 25], [21, 26], [22, 27], [11, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 2], [12, 4], [13, 4], [14, 9], [15, 2], [16, 10], [17, 12], [18, 13], [19, 14], [20, 9], [21, 9], [22, 10], [23, 17], [24, 19], [25, 20], [26, 21], [27, 22], [28, 11], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "doIndex", "code": "\tprivate Object doIndex(\n\t\tObject obj, CallStack callstack, Interpreter interpreter) \n\t\tthrows EvalError, ReflectError\n\t{\n\t\tint index = getIndexAux( obj, callstack, interpreter, this );\n\t\treturn Reflect.getIndex(obj, index);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "doProperty", "code": "\tprivate Object doProperty( \n\t\tObject obj, CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError\n\t{\n\t\tif(obj == Primitive.VOID)\n\t\t\tthrow new EvalError(\"Attempt to access property on undefined variable or class name\", this);\n\n\t\tif(obj instanceof Primitive)\n\t\t\tthrow new EvalError(\"Attempt to access property on a primitive\", this);\n\n\t\tObject value = ((SimpleNode)jjtGetChild(0)).eval(\n\t\t\tcallstack, interpreter);\n\t\tif(!(value instanceof String))\n\t\t\tthrow new EvalError(\"Property expression must be a String or identifier.\", this);\n\n\t\t// property style access to hashtable\n\t\tif(obj instanceof Hashtable)\n\t\t{\n\t\t\tObject val = ((Hashtable)obj).get((String)value);\n\t\t\tif(val == null)\n\t\t\t\tval = Primitive.NULL;\n\t\t\treturn val;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\treturn Reflect.getObjectProperty(obj, (String)value);\n\t\t}\n\t\tcatch(ReflectError e)\n\t\t{\n\t\t\tInterpreter.debug(e.toString());\n\t\t\tthrow new EvalError(\"No such property: \" + value, this);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "CALL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [2, 12], [3, 13], [3, 14], [5, 15], [5, 16], [6, 17], [6, 18], [10, 19], [11, 20], [2, 21], [2, 22], [2, 23], [13, 24], [15, 25], [17, 26], [19, 27], [10, 28], [22, 29], [24, 30], [4, 31], [25, 32], [26, 33], [27, 34], [28, 35], [22, 36], [29, 37], [31, 38], [34, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 2], [13, 3], [14, 3], [15, 5], [16, 5], [17, 6], [18, 6], [19, 10], [20, 11], [21, 2], [22, 2], [23, 2], [24, 13], [25, 15], [26, 17], [27, 19], [28, 10], [29, 22], [30, 24], [31, 4], [32, 25], [33, 26], [34, 27], [35, 28], [36, 22], [37, 29], [38, 31], [39, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "BSHPrimarySuffix", "code": "\tBSHPrimarySuffix(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.2-1735", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/converter/jaxb/HeaderType.java", "language": "java", "name": "org.apache.camel.converter.jaxb.HeaderType", "code": "@XmlType(name = \"headerType\")\n@XmlAccessorType(value = XmlAccessType.FIELD)\npublic abstract class HeaderType {\n    @XmlAttribute\n    private String name;\n\n    public HeaderType() {\n    }\n\n    protected HeaderType(String name) {\n        this.name = name;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public abstract Object getValue();\n\n    public abstract void setValue(Object value);", "functions": [{"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValue", "code": "    public abstract Object getValue();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setValue", "code": "    public abstract void setValue(Object value);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HeaderType", "code": "    public HeaderType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "HeaderType", "code": "    protected HeaderType(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8439", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/lib/sql/DTMDocument.java", "language": "java", "name": "org.apache.xalan.lib.sql.DTMDocument", "code": "public class DTMDocument extends DTMDefaultBaseIterators\n{\n\n  /**\n   */\n  public interface CharacterNodeHandler\n  {\n    /**\n     * @param node\n     *\n     * @throws org.xml.sax.SAXException\n     */\n    public void characters( Node node )throws org.xml.sax.SAXException ;\n  }\n\n  /**\n   */\n  private boolean DEBUG = false;\n\n  /**\n   */\n\n  /**\n   */\n  protected static final String S_ATTRIB_NOT_SUPPORTED = \"Not Supported\";\n  /**\n   */\n  protected static final String S_ISTRUE = \"true\";\n  /**\n   */\n  protected static final String S_ISFALSE = \"false\";\n\n  /**\n   */\n  protected static final String S_DOCUMENT = \"#root\";\n  /**\n   */\n  protected static final String S_TEXT_NODE = \"#text\";\n  /**\n   */\n  protected static final String S_ELEMENT_NODE = \"#element\";\n\n  /**\n   */\n  protected int m_Document_TypeID = 0;\n  /**\n   */\n  protected int m_TextNode_TypeID = 0;\n\n\n  /**\n   * Store the SQL Data in this growable array\n   */\n  protected ObjectArray m_ObjectArray = new ObjectArray();\n\n  /**\n   * For each element node, there can be zero or more attributes. If Attributes\n   * are assigned, the first attribute for that element will be use here.\n   * Subsequent elements will use the m_nextsib, m_prevsib array. The sibling\n   * arrays are not meeant to hold indexes to attribute information but as\n   * long as there is not direct connection back into the main DTM tree\n   * we should be OK.\n   */\n  protected SuballocatedIntVector m_attribute;\n\n  /**\n   * The Document Index will most likely be 0, but we will reference it\n   * by variable in case that paradigm falls through.\n   */\n  protected int m_DocumentIdx;\n\n\n  /**\n   * @param mgr\n   * @param ident\n   */\n  public DTMDocument( DTMManager mgr, int ident )\n  {\n    super(mgr, null, ident,\n      null, mgr.getXMLStringFactory(), true);\n\n    m_attribute = new SuballocatedIntVector(DEFAULT_BLOCKSIZE);\n  }\n\n  /**\n   * A common routine that allocates an Object from the Object Array.\n   * One of the common bugs in this code was to allocate an Object and\n   * not incerment m_size, using this method will assure that function.\n   * @param o\n   *\n   */\n  private int allocateNodeObject( Object o )\n  {\n    m_size++;\n    return m_ObjectArray.append(o);\n  }\n\n  /**\n   * @param o\n   * @param level\n   * @param extendedType\n   * @param parent\n   * @param prevsib\n   *\n   */\n  protected int addElementWithData( Object o, int level, int extendedType, int parent, int prevsib )\n  {\n    int elementIdx = addElement(level,extendedType,parent,prevsib);\n\n    int data = allocateNodeObject(o);\n    m_firstch.setElementAt(data,elementIdx);\n\n    m_exptype.setElementAt(m_TextNode_TypeID, data);\n    m_parent.setElementAt(elementIdx, data);\n\n    m_prevsib.setElementAt(DTM.NULL, data);\n    m_nextsib.setElementAt(DTM.NULL, data);\n    m_attribute.setElementAt(DTM.NULL, data);\n    m_firstch.setElementAt(DTM.NULL, data);\n\n    return elementIdx;\n  }\n\n  /**\n   * @param level\n   * @param extendedType\n   * @param parent\n   * @param prevsib\n   *\n   */\n  protected int addElement( int level, int extendedType, int parent, int prevsib )\n  {\n    int node = DTM.NULL;\n\n    try\n    {\n      node = allocateNodeObject(S_ELEMENT_NODE);\n\n      m_exptype.setElementAt(extendedType, node);\n      m_nextsib.setElementAt(DTM.NULL, node);\n      m_prevsib.setElementAt(prevsib, node);\n\n      m_parent.setElementAt(parent, node);\n      m_firstch.setElementAt(DTM.NULL, node);\n      m_attribute.setElementAt(DTM.NULL, node);\n\n      if (prevsib != DTM.NULL)\n      {\n        if (m_nextsib.elementAt(prevsib) != DTM.NULL)\n          m_nextsib.setElementAt(m_nextsib.elementAt(prevsib), node);\n\n        m_nextsib.setElementAt(node, prevsib);\n      }\n\n      if ((parent != DTM.NULL) && (m_prevsib.elementAt(node) == DTM.NULL))\n      {\n        m_firstch.setElementAt(node, parent);\n      }\n    }\n    catch(Exception e)\n    {\n      error(\"Error in addElement: \"+e.getMessage());\n    }\n\n    return node;\n  }\n\n  /**\n   * Link an attribute to a node, if the node already has one or more\n   * attributes assigned, then just link this one to the attribute list.\n   * The first attribute is attached to the Parent Node (pnode) through the\n   * m_attribute array, subsequent attributes are linked through the\n   * m_prevsib, m_nextsib arrays.\n   * @param o\n   * @param extendedType\n   * @param pnode\n   *\n   */\n  protected int addAttributeToNode( Object o, int extendedType, int pnode )\n  {\n    int attrib = DTM.NULL;\n    int prevsib = DTM.NULL;\n    int lastattrib = DTM.NULL;\n    int value = DTM.NULL;\n\n    try\n    {\n      attrib = allocateNodeObject(o);\n\n      m_attribute.setElementAt(DTM.NULL, attrib);\n      m_exptype.setElementAt(extendedType, attrib);\n\n      m_nextsib.setElementAt(DTM.NULL, attrib);\n      m_prevsib.setElementAt(DTM.NULL,attrib);\n      m_parent.setElementAt(pnode, attrib);\n      m_firstch.setElementAt(DTM.NULL, attrib);\n\n      if (m_attribute.elementAt(pnode) != DTM.NULL)\n      {\n        lastattrib = m_attribute.elementAt(pnode);\n        m_nextsib.setElementAt(lastattrib, attrib);\n        m_prevsib.setElementAt(attrib, lastattrib);\n      }\n      m_attribute.setElementAt(attrib, pnode);\n    }\n    catch(Exception e)\n    {\n      error(\"Error in addAttributeToNode: \"+e.getMessage());\n    }\n\n    return attrib;\n  }\n\n  /**\n   * Allow two nodes to share the same set of attributes. There may be some\n   * problems because the parent of any attribute will be the original node\n   * they were assigned to. Need to see how the attribute walker works, then\n   * we should be able to fake it out.\n   * @param toNode\n   * @param fromNode\n   *\n   */\n  protected void cloneAttributeFromNode( int toNode, int fromNode )\n  {\n   try\n    {\n      if (m_attribute.elementAt(toNode) != DTM.NULL)\n      {\n        error(\"Cloneing Attributes, where from Node already had addtibures assigned\");\n      }\n\n      m_attribute.setElementAt(m_attribute.elementAt(fromNode), toNode);\n    }\n    catch(Exception e)\n    {\n      error(\"Cloning attributes\");\n    }\n  }\n\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getFirstAttribute( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getFirstAttribute(\"+ parm1+\")\");\n    int nodeIdx = makeNodeIdentity(parm1);\n    if (nodeIdx != DTM.NULL)\n    {\n      int attribIdx =  m_attribute.elementAt(nodeIdx);\n      return makeNodeHandle(attribIdx);\n    }\n    else return DTM.NULL;\n  }\n\n /**\n   * @param parm1\n   *\n   */\n  public String getNodeValue( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNodeValue(\" + parm1 + \")\");\n    try\n    {\n      Object o = m_ObjectArray.getAt(makeNodeIdentity(parm1));\n      if (o != null && o != S_ELEMENT_NODE)\n      {\n        return o.toString();\n      }\n      else\n      {\n        return \"\";\n      }\n    }\n    catch(Exception e)\n    {\n      error(\"Getting String Value\");\n      return null;\n    }\n  }\n\n\n  /**\n   * Get the string-value of a node as a String object\n   * for the definition of a node's string-value).\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return A string object that represents the string-value of the given node.\n   */\n  public XMLString getStringValue(int nodeHandle)\n  {\n    int nodeIdx = makeNodeIdentity(nodeHandle);\n    if (DEBUG) System.out.println(\"getStringValue(\" + nodeIdx + \")\");\n\n      Object o = m_ObjectArray.getAt(nodeIdx);\n    if ( o == S_ELEMENT_NODE )\n      {\n        FastStringBuffer buf = StringBufferPool.get();\n        String s;\n\n        try\n        {\n          getNodeData(nodeIdx, buf);\n\n          s = (buf.length() > 0) ? buf.toString() : \"\";\n        }\n        finally\n        {\n          StringBufferPool.free(buf);\n        }\n\n        return m_xstrf.newstr( s );\n      }\n      else if( o != null )\n      {\n        return m_xstrf.newstr(o.toString());\n    }\n    else\n      return(m_xstrf.emptystr());\n  }\n\n  /**\n   * Retrieve the text content of a DOM subtree, appending it into a\n   * user-supplied FastStringBuffer object. Note that attributes are\n   * not considered part of the content of an element.\n   * <p>\n   * There are open questions regarding whitespace stripping.\n   * Currently we make no special effort in that regard, since the standard\n   * DOM doesn't yet provide DTD-based information to distinguish\n   * whitespace-in-element-context from genuine #PCDATA. Note that we\n   * should probably also consider xml:space if/when we address this.\n   * DOM Level 3 may solve the problem for us.\n   * <p>\n   * %REVIEW% Actually, since this method operates on the DOM side of the\n   * fence rather than the DTM side, it SHOULDN'T do\n   * any special handling. The DOM does what the DOM does; if you want\n   * DTM-level abstractions, use DTM-level methods.\n   *\n   * @param nodeIdx Index of node whose subtree is to be walked, gathering the\n   * contents of all Text or CDATASection nodes.\n   * @param buf FastStringBuffer into which the contents of the text\n   * nodes are to be concatenated.\n   */\n  protected void getNodeData(int nodeIdx, FastStringBuffer buf)\n  {\n    for ( int child = _firstch(nodeIdx) ; child != DTM.NULL ; child = _nextsib(child) )\n    {\n      Object o = m_ObjectArray.getAt(child);\n      if ( o == S_ELEMENT_NODE )\n        getNodeData(child, buf);\n      else if ( o != null )\n        buf.append(o.toString());\n    }\n  }\n\n\n\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getNextAttribute( int parm1 )\n  {\n    int nodeIdx = makeNodeIdentity(parm1);\n    if (DEBUG) System.out.println(\"getNextAttribute(\" + nodeIdx + \")\");\n    if (nodeIdx != DTM.NULL) return makeNodeHandle(m_nextsib.elementAt(nodeIdx));\n    else return DTM.NULL;\n  }\n\n\n  /**\n   *\n   */\n  protected int getNumberOfNodes( )\n  {\n    if (DEBUG) System.out.println(\"getNumberOfNodes()\");\n    return m_size;\n  }\n\n  /**\n   *\n   */\n  protected boolean nextNode( )\n  {\n    if (DEBUG) System.out.println(\"nextNode()\");\n    return false;\n  }\n\n\n  /**\n   * The Expanded Name table holds all of our Node names. The Base class\n   * will add the common element types, need to call this function from\n   * the derived class.\n   *\n   */\n  protected void createExpandedNameTable( )\n  {\n    m_Document_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_DOCUMENT, DTM.DOCUMENT_NODE);\n\n    m_TextNode_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_TEXT_NODE, DTM.TEXT_NODE);\n  }\n\n\n  /**\n   *\n   */\n  public void dumpDTM( )\n  {\n    try\n    {\n      File f = new File(\"DTMDump.txt\");\n      System.err.println(\"Dumping... \"+f.getAbsolutePath());\n      PrintStream ps = new PrintStream(new FileOutputStream(f));\n\n      while (nextNode()){}\n\n      int nRecords = m_size;\n\n      ps.println(\"Total nodes: \" + nRecords);\n\n      for (int i = 0; i < nRecords; i++)\n      {\n        ps.println(\"=========== \" + i + \" ===========\");\n        ps.println(\"NodeName: \" + getNodeName(makeNodeHandle(i)));\n        ps.println(\"NodeNameX: \" + getNodeNameX(makeNodeHandle(i)));\n        ps.println(\"LocalName: \" + getLocalName(makeNodeHandle(i)));\n        ps.println(\"NamespaceURI: \" + getNamespaceURI(makeNodeHandle(i)));\n        ps.println(\"Prefix: \" + getPrefix(makeNodeHandle(i)));\n\n        int exTypeID = getExpandedTypeID(makeNodeHandle(i));\n\n        ps.println(\"Expanded Type ID: \"\n                           + Integer.toHexString(exTypeID));\n\n        int type = getNodeType(makeNodeHandle(i));\n        String typestring;\n\n        switch (type)\n        {\n        case DTM.ATTRIBUTE_NODE :\n          typestring = \"ATTRIBUTE_NODE\";\n          break;\n        case DTM.CDATA_SECTION_NODE :\n          typestring = \"CDATA_SECTION_NODE\";\n          break;\n        case DTM.COMMENT_NODE :\n          typestring = \"COMMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_FRAGMENT_NODE :\n          typestring = \"DOCUMENT_FRAGMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_NODE :\n          typestring = \"DOCUMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_TYPE_NODE :\n          typestring = \"DOCUMENT_NODE\";\n          break;\n        case DTM.ELEMENT_NODE :\n          typestring = \"ELEMENT_NODE\";\n          break;\n        case DTM.ENTITY_NODE :\n          typestring = \"ENTITY_NODE\";\n          break;\n        case DTM.ENTITY_REFERENCE_NODE :\n          typestring = \"ENTITY_REFERENCE_NODE\";\n          break;\n        case DTM.NAMESPACE_NODE :\n          typestring = \"NAMESPACE_NODE\";\n          break;\n        case DTM.NOTATION_NODE :\n          typestring = \"NOTATION_NODE\";\n          break;\n        case DTM.NULL :\n          typestring = \"NULL\";\n          break;\n        case DTM.PROCESSING_INSTRUCTION_NODE :\n          typestring = \"PROCESSING_INSTRUCTION_NODE\";\n          break;\n        case DTM.TEXT_NODE :\n          typestring = \"TEXT_NODE\";\n          break;\n        default :\n          typestring = \"Unknown!\";\n          break;\n        }\n\n        ps.println(\"Type: \" + typestring);\n\n        int firstChild = _firstch(i);\n\n        if (DTM.NULL == firstChild)\n          ps.println(\"First child: DTM.NULL\");\n        else if (NOTPROCESSED == firstChild)\n          ps.println(\"First child: NOTPROCESSED\");\n        else\n          ps.println(\"First child: \" + firstChild);\n\n        int prevSibling = _prevsib(i);\n\n        if (DTM.NULL == prevSibling)\n          ps.println(\"Prev sibling: DTM.NULL\");\n        else if (NOTPROCESSED == prevSibling)\n          ps.println(\"Prev sibling: NOTPROCESSED\");\n        else\n          ps.println(\"Prev sibling: \" + prevSibling);\n\n        int nextSibling = _nextsib(i);\n\n        if (DTM.NULL == nextSibling)\n          ps.println(\"Next sibling: DTM.NULL\");\n        else if (NOTPROCESSED == nextSibling)\n          ps.println(\"Next sibling: NOTPROCESSED\");\n        else\n          ps.println(\"Next sibling: \" + nextSibling);\n\n        int parent = _parent(i);\n\n        if (DTM.NULL == parent)\n          ps.println(\"Parent: DTM.NULL\");\n        else if (NOTPROCESSED == parent)\n          ps.println(\"Parent: NOTPROCESSED\");\n        else\n          ps.println(\"Parent: \" + parent);\n\n        int level = _level(i);\n\n        ps.println(\"Level: \" + level);\n        ps.println(\"Node Value: \" + getNodeValue(i));\n        ps.println(\"String Value: \" + getStringValue(i));\n\n        ps.println(\"First Attribute Node: \" + m_attribute.elementAt(i));\n      }\n\n    }\n    catch(IOException ioe)\n    {\n      ioe.printStackTrace(System.err);\n      throw new RuntimeException(ioe.getMessage());\n    }\n  }\n\n\n  /**\n   * Retrieve the text content of a DOM subtree, appending it into a\n   * user-supplied FastStringBuffer object. Note that attributes are\n   * not considered part of the content of an element.\n   * <p>\n   * There are open questions regarding whitespace stripping.\n   * Currently we make no special effort in that regard, since the standard\n   * DOM doesn't yet provide DTD-based information to distinguish\n   * whitespace-in-element-context from genuine #PCDATA. Note that we\n   * should probably also consider xml:space if/when we address this.\n   * DOM Level 3 may solve the problem for us.\n   * <p>\n   * %REVIEW% Note that as a DOM-level operation, it can be argued that this\n   * routine _shouldn't_ perform any processing beyond what the DOM already\n   * does, and that whitespace stripping and so on belong at the DTM level.\n   * If you want a stripped DOM view, wrap DTM2DOM around DOM2DTM.\n   * @param node Node whose subtree is to be walked, gathering the\n   * contents of all Text or CDATASection nodes.\n   * @param ch\n   * @param depth\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  protected static void dispatchNodeData( Node node, ContentHandler ch, int depth )throws org.xml.sax.SAXException\n  {\n\n    switch (node.getNodeType())\n    {\n    case Node.DOCUMENT_FRAGMENT_NODE :\n    case Node.DOCUMENT_NODE :\n    case Node.ELEMENT_NODE :\n    {\n      for (Node child = node.getFirstChild(); null != child;\n              child = child.getNextSibling())\n      {\n        dispatchNodeData(child, ch, depth+1);\n      }\n    }\n    break;\n    case Node.COMMENT_NODE :\n      if(0 != depth)\n        break;\n    case Node.TEXT_NODE :\n    case Node.CDATA_SECTION_NODE :\n    case Node.ATTRIBUTE_NODE :\n      String str = node.getNodeValue();\n      if(ch instanceof CharacterNodeHandler)\n      {\n        ((CharacterNodeHandler)ch).characters(node);\n      }\n      else\n      {\n        ch.characters(str.toCharArray(), 0, str.length());\n      }\n      break;\n    default :\n      break;\n    }\n  }\n\n  /*********************************************************************/\n  /*********************************************************************/\n  /******************* End of Functions we Wrote ***********************/\n  /*********************************************************************/\n  /*********************************************************************/\n\n\n  /**\n   * For the moment all the run time properties are ignored by this\n   * class.\n   * @param property a <code>String</code> value\n   * @param value an <code>Object</code> value\n   *\n   */\n  public void setProperty( String property, Object value )\n  {\n  }\n\n  /**\n   * No source information is available for DOM2DTM, so return\n   * <code>null</code> here.\n   * @param node an <code>int</code> value\n   * @return null\n   */\n  public SourceLocator getSourceLocatorFor( int node )\n  {\n    return null;\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  protected int getNextNodeIdentity( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNextNodeIdenty(\" + parm1 + \")\");\n    return DTM.NULL;\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   * @param parm3\n   *\n   */\n  public int getAttributeNode( int parm1, String parm2, String parm3 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n        \"getAttributeNode(\" +\n        parm1 + \",\" +\n        parm2 + \",\" +\n        parm3 + \")\");\n    }\n    return DTM.NULL;\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getLocalName( int parm1 )\n  {\n      int exID = getExpandedTypeID(parm1);\n\n    if (DEBUG)\n    {\n      DEBUG = false;\n      System.out.print(\"getLocalName(\" + parm1 + \") -> \");\n      System.out.println(\"...\" + getLocalNameFromExpandedNameID(exID) );\n      DEBUG = true;\n    }\n\n    return getLocalNameFromExpandedNameID(exID);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getNodeName( int parm1 )\n  {\n    int exID = getExpandedTypeID( parm1 );\n    if (DEBUG)\n    {\n      DEBUG = false;\n      System.out.print(\"getLocalName(\" + parm1 + \") -> \");\n      System.out.println(\"...\" + getLocalNameFromExpandedNameID(exID) );\n      DEBUG = true;\n    }\n    return getLocalNameFromExpandedNameID(exID);\n  }\n\n   /**\n   * @param parm1\n   *\n   */\n  public boolean isAttributeSpecified( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"isAttributeSpecified(\" + parm1 + \")\");\n    return false;\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getUnparsedEntityURI( String parm1 )\n  {\n    if (DEBUG) System.out.println(\"getUnparsedEntityURI(\" + parm1 + \")\");\n    return \"\";\n  }\n\n  /**\n   *\n   */\n  public DTDHandler getDTDHandler( )\n  {\n    if (DEBUG) System.out.println(\"getDTDHandler()\");\n    return null;\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getPrefix( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getPrefix(\" + parm1  + \")\");\n    return \"\";\n  }\n\n  /**\n   *\n   */\n  public EntityResolver getEntityResolver( )\n  {\n    if (DEBUG) System.out.println(\"getEntityResolver()\");\n    return null;\n  }\n\n  /**\n   *\n   */\n  public String getDocumentTypeDeclarationPublicIdentifier( )\n  {\n    if (DEBUG) System.out.println(\"get_DTD_PubId()\");\n    return \"\";\n  }\n\n  /**\n   *\n   */\n  public LexicalHandler getLexicalHandler( )\n  {\n    if (DEBUG) System.out.println(\"getLexicalHandler()\");\n    return null;\n  }\n  /**\n   *\n   */\n  public boolean needsTwoThreads( )\n  {\n    if (DEBUG) System.out.println(\"needsTwoThreads()\");\n    return false;\n  }\n\n  /**\n   *\n   */\n  public ContentHandler getContentHandler( )\n  {\n    if (DEBUG) System.out.println(\"getContentHandler()\");\n    return null;\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchToEvents( int parm1, ContentHandler parm2 )throws org.xml.sax.SAXException\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n      \"dispathcToEvents(\" +\n      parm1 + \",\" +\n      parm2 + \")\");\n    }\n    return;\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getNamespaceURI( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNamespaceURI(\" +parm1+\")\");\n    return \"\";\n  }\n\n  /**\n   * @param nodeHandle\n   * @param ch\n   * @param normalize\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchCharactersEvents( int nodeHandle, ContentHandler ch, boolean normalize )throws org.xml.sax.SAXException\n  {\n    if (DEBUG)\n    {\n      System.out.println(\"dispatchCharacterEvents(\" +\n      nodeHandle + \",\" +\n      ch + \",\" +\n      normalize + \")\");\n    }\n\n    if(normalize)\n    {\n      XMLString str = getStringValue(nodeHandle);\n      str = str.fixWhiteSpace(true, true, false);\n      str.dispatchCharactersEvents(ch);\n    }\n    else\n    {\n      int type = getNodeType(nodeHandle);\n      Node node = getNode(nodeHandle);\n      dispatchNodeData(node, ch, 0);\n    }\n  }\n\n  /**\n   * Event overriding for Debug\n   *\n   */\n  public boolean supportsPreStripping( )\n  {\n    if (DEBUG) System.out.println(\"supportsPreStripping()\");\n    return super.supportsPreStripping();\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  protected int _exptype( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_exptype(\" + parm1 + \")\");\n    return super._exptype( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  protected SuballocatedIntVector findNamespaceContext( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"SuballocatedIntVector(\" + parm1 + \")\");\n    return super.findNamespaceContext( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  protected int _prevsib( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_prevsib(\" + parm1+ \")\");\n    return super._prevsib( parm1);\n  }\n\n\n  /**\n   * @param parm1\n   *\n   */\n  protected short _type( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_type(\" + parm1 + \")\");\n    return super._type( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public Node getNode( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNode(\" + parm1 + \")\");\n    return super.getNode( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getPreviousSibling( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getPrevSib(\" + parm1 + \")\");\n    return super.getPreviousSibling( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getDocumentStandalone( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getDOcStandAlone(\" + parm1 + \")\");\n    return super.getDocumentStandalone( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getNodeNameX( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNodeNameX(\" + parm1 + \")\");\n    return getNodeName(parm1);\n\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   *\n   */\n  public void setFeature( String parm1, boolean parm2 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n        \"setFeature(\" +\n        parm1 + \",\" +\n        parm2 + \")\");\n    }\n    super.setFeature( parm1,  parm2);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  protected int _parent( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_parent(\" + parm1 + \")\");\n    return super._parent( parm1);\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   *\n   */\n  protected void indexNode( int parm1, int parm2 )\n  {\n    if (DEBUG) System.out.println(\"indexNode(\"+parm1+\",\"+parm2+\")\");\n    super.indexNode( parm1,  parm2);\n  }\n\n  /**\n   *\n   */\n  protected boolean getShouldStripWhitespace( )\n  {\n    if (DEBUG) System.out.println(\"getShouldStripWS()\");\n    return super.getShouldStripWhitespace();\n  }\n\n  /**\n   *\n   */\n  protected void popShouldStripWhitespace( )\n  {\n    if (DEBUG) System.out.println(\"popShouldStripWS()\");\n    super.popShouldStripWhitespace();\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   *\n   */\n  public boolean isNodeAfter( int parm1, int parm2 )\n  {\n    if (DEBUG) System.out.println(\"isNodeAfter(\" + parm1 + \",\" + parm2 + \")\");\n    return super.isNodeAfter( parm1,  parm2);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getNamespaceType( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNamespaceType(\" + parm1 + \")\");\n    return super.getNamespaceType( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  protected int _level( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_level(\" + parm1 + \")\");\n    return super._level( parm1);\n  }\n\n\n  /**\n   * @param parm1\n   *\n   */\n  protected void pushShouldStripWhitespace( boolean parm1 )\n  {\n    if (DEBUG) System.out.println(\"push_ShouldStripWS(\" + parm1 + \")\");\n    super.pushShouldStripWhitespace( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getDocumentVersion( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getDocVer(\"+parm1+\")\");\n    return super.getDocumentVersion( parm1);\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   *\n   */\n  public boolean isSupported( String parm1, String parm2 )\n  {\n    if (DEBUG) System.out.println(\"isSupported(\"+parm1+\",\"+parm2+\")\");\n    return super.isSupported( parm1,  parm2);\n  }\n\n\n  /**\n   * @param parm1\n   *\n   */\n  protected void setShouldStripWhitespace( boolean parm1 )\n  {\n    if (DEBUG) System.out.println(\"set_ShouldStripWS(\"+parm1+\")\");\n    super.setShouldStripWhitespace( parm1);\n  }\n\n\n  /**\n   * @param parm1\n   * @param parm2\n   *\n   */\n  protected void ensureSizeOfIndex( int parm1, int parm2 )\n  {\n    if (DEBUG) System.out.println(\"ensureSizeOfIndex(\"+parm1+\",\"+parm2+\")\");\n    super.ensureSizeOfIndex( parm1,  parm2);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  protected void ensureSize( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"ensureSize(\"+parm1+\")\");\n\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getDocumentEncoding( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getDocumentEncoding(\"+parm1+\")\");\n    return super.getDocumentEncoding( parm1);\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   * @param parm3\n   *\n   */\n  public void appendChild( int parm1, boolean parm2, boolean parm3 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n        \"appendChild(\" +\n        parm1 + \",\" +\n        parm2 + \",\" +\n        parm3 + \")\");\n    }\n    super.appendChild( parm1,  parm2,  parm3);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public short getLevel( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getLevel(\"+parm1+\")\");\n    return super.getLevel( parm1);\n  }\n\n  /**\n   *\n   */\n  public String getDocumentBaseURI( )\n  {\n    if (DEBUG) System.out.println(\"getDocBaseURI()\");\n    return super.getDocumentBaseURI();\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   * @param parm3\n   *\n   */\n  public int getNextNamespaceNode( int parm1, int parm2, boolean parm3 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n      \"getNextNamesapceNode(\" +\n      parm1 + \",\" +\n      parm2 + \",\" +\n      parm3 + \")\");\n    }\n    return super.getNextNamespaceNode( parm1,  parm2,  parm3);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public void appendTextChild( String parm1 )\n  {\n    if (DEBUG) System.out.println(\"appendTextChild(\" + parm1 + \")\");\n    super.appendTextChild( parm1);\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   * @param parm3\n   * @param parm4\n   *\n   */\n  protected int findGTE( int[] parm1, int parm2, int parm3, int parm4 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n      \"findGTE(\"+\n      parm1 + \",\" +\n      parm2 + \",\" +\n      parm3 + \")\");\n    }\n    return super.findGTE( parm1,  parm2,  parm3,  parm4);\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   *\n   */\n  public int getFirstNamespaceNode( int parm1, boolean parm2 )\n  {\n    if (DEBUG) System.out.println(\"getFirstNamespaceNode()\");\n    return super.getFirstNamespaceNode( parm1,  parm2);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getStringValueChunkCount( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getStringChunkCount(\" + parm1 + \")\");\n    return super.getStringValueChunkCount( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getLastChild( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getLastChild(\" + parm1 + \")\");\n    return super.getLastChild( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public boolean hasChildNodes( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"hasChildNodes(\" + parm1 + \")\");\n    return super.hasChildNodes( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public short getNodeType( int parm1 )\n  {\n    if (DEBUG)\n    {\n      DEBUG=false;\n      System.out.print(\"getNodeType(\" + parm1 + \") \");\n      int exID = getExpandedTypeID(parm1);\n      String name = getLocalNameFromExpandedNameID(exID);\n      System.out.println(\n        \".. Node name [\" + name + \"]\" +\n        \"[\" + getNodeType( parm1) + \"]\");\n\n      DEBUG=true;\n    }\n\n    return super.getNodeType( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public boolean isCharacterElementContentWhitespace( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"isCharacterElementContentWhitespace(\" + parm1 +\")\");\n    return super.isCharacterElementContentWhitespace( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getFirstChild( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getFirstChild(\" + parm1 + \")\");\n    return super.getFirstChild( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getDocumentSystemIdentifier( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getDocSysID(\" + parm1 + \")\");\n    return super.getDocumentSystemIdentifier( parm1);\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   *\n   */\n  protected void declareNamespaceInContext( int parm1, int parm2 )\n  {\n    if (DEBUG) System.out.println(\"declareNamespaceContext(\"+parm1+\",\"+parm2+\")\");\n    super.declareNamespaceInContext( parm1,  parm2);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getNamespaceFromExpandedNameID( int parm1 )\n  {\n    if (DEBUG)\n    {\n      DEBUG = false;\n      System.out.print(\"getNamespaceFromExpandedNameID(\"+parm1+\")\");\n      System.out.println(\"...\" + super.getNamespaceFromExpandedNameID( parm1) );\n      DEBUG = true;\n    }\n    return super.getNamespaceFromExpandedNameID( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public String getLocalNameFromExpandedNameID( int parm1 )\n  {\n    if (DEBUG)\n    {\n      DEBUG = false;\n      System.out.print(\"getLocalNameFromExpandedNameID(\"+parm1+\")\");\n      System.out.println(\"...\" + super.getLocalNameFromExpandedNameID( parm1));\n      DEBUG = true;\n    }\n    return super.getLocalNameFromExpandedNameID( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getExpandedTypeID( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getExpandedTypeID(\"+parm1+\")\");\n    return super.getExpandedTypeID( parm1);\n  }\n\n  /**\n   *\n   */\n  public int getDocument( )\n  {\n    if (DEBUG) System.out.println(\"getDocument()\");\n    return super.getDocument();\n  }\n\n\n  /**\n   * @param parm1\n   * @param parm2\n   *\n   */\n  protected int findInSortedSuballocatedIntVector( SuballocatedIntVector parm1, int parm2 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n      \"findInSortedSubAlloctedVector(\" +\n      parm1 + \",\" +\n      parm2 + \")\");\n    }\n    return super.findInSortedSuballocatedIntVector( parm1,  parm2);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public boolean isDocumentAllDeclarationsProcessed( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"isDocumentAllDeclProc(\"+parm1+\")\");\n    return super.isDocumentAllDeclarationsProcessed( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  protected void error( String parm1 )\n  {\n    if (DEBUG) System.out.println(\"error(\"+parm1+\")\");\n    super.error( parm1);\n  }\n\n\n  /**\n   * @param parm1\n   *\n   */\n  protected int _firstch( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_firstch(\"+parm1+\")\");\n    return super._firstch( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getOwnerDocument( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getOwnerDoc(\"+parm1+\")\");\n    return super.getOwnerDocument( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  protected int _nextsib( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_nextSib(\"+parm1+\")\");\n    return super._nextsib( parm1);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getNextSibling( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNextSibling(\"+parm1+\")\");\n    return super.getNextSibling( parm1);\n  }\n\n\n  /**\n   *\n   */\n  public boolean getDocumentAllDeclarationsProcessed( )\n  {\n    if (DEBUG) System.out.println(\"getDocAllDeclProc()\");\n    return super.getDocumentAllDeclarationsProcessed();\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public int getParent( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getParent(\"+parm1+\")\");\n    return super.getParent( parm1);\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   * @param parm3\n   *\n   */\n  public int getExpandedTypeID( String parm1, String parm2, int parm3 )\n  {\n    if (DEBUG) System.out.println(\"getExpandedTypeID()\");\n    return super.getExpandedTypeID( parm1,  parm2,  parm3);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public void setDocumentBaseURI( String parm1 )\n  {\n    if (DEBUG) System.out.println(\"setDocBaseURI()\");\n    super.setDocumentBaseURI( parm1);\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   * @param parm3\n   *\n   */\n  public char[] getStringValueChunk( int parm1, int parm2, int[] parm3 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\"getStringChunkValue(\" +\n      parm1 + \",\" +\n      parm2 + \")\");\n    }\n    return super.getStringValueChunk( parm1,  parm2,  parm3);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public DTMAxisTraverser getAxisTraverser( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getAxixTraverser(\"+parm1+\")\");\n    return super.getAxisTraverser( parm1);\n  }\n\n  /**\n   * @param parm1\n   * @param parm2\n   *\n   */\n  public DTMAxisIterator getTypedAxisIterator( int parm1, int parm2 )\n  {\n    if (DEBUG) System.out.println(\"getTypedAxisIterator(\"+parm1+\",\"+parm2+\")\");\n    return super.getTypedAxisIterator( parm1,  parm2);\n  }\n\n  /**\n   * @param parm1\n   *\n   */\n  public DTMAxisIterator getAxisIterator( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getAxisIterator(\"+parm1+\")\");\n    return super.getAxisIterator( parm1);\n  }\n  /**\n   * @param parm1\n   *\n   */\n  public int getElementById( String parm1 )\n  {\n    if (DEBUG) System.out.println(\"getElementByID(\"+parm1+\")\");\n    return DTM.NULL;\n  }\n\n  /**\n   *\n   */\n  public DeclHandler getDeclHandler( )\n  {\n    if (DEBUG) System.out.println(\"getDeclHandler()\");\n    return null;\n  }\n\n  /**\n   *\n   */\n  public ErrorHandler getErrorHandler( )\n  {\n    if (DEBUG) System.out.println(\"getErrorHandler()\");\n    return null;\n  }\n\n  /**\n   *\n   */\n  public String getDocumentTypeDeclarationSystemIdentifier( )\n  {\n    if (DEBUG) System.out.println(\"get_DTD-SID()\");\n    return null;", "functions": [{"function_name": "allocateNodeObject", "code": "  private int allocateNodeObject( Object o )\n  {\n    m_size++;\n    return m_ObjectArray.append(o);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addElementWithData", "code": "  protected int addElementWithData( Object o, int level, int extendedType, int parent, int prevsib )\n  {\n    int elementIdx = addElement(level,extendedType,parent,prevsib);\n\n    int data = allocateNodeObject(o);\n    m_firstch.setElementAt(data,elementIdx);\n\n    m_exptype.setElementAt(m_TextNode_TypeID, data);\n    m_parent.setElementAt(elementIdx, data);\n\n    m_prevsib.setElementAt(DTM.NULL, data);\n    m_nextsib.setElementAt(DTM.NULL, data);\n    m_attribute.setElementAt(DTM.NULL, data);\n    m_firstch.setElementAt(DTM.NULL, data);\n\n    return elementIdx;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [3, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "addElement", "code": "  protected int addElement( int level, int extendedType, int parent, int prevsib )\n  {\n    int node = DTM.NULL;\n\n    try\n    {\n      node = allocateNodeObject(S_ELEMENT_NODE);\n\n      m_exptype.setElementAt(extendedType, node);\n      m_nextsib.setElementAt(DTM.NULL, node);\n      m_prevsib.setElementAt(prevsib, node);\n\n      m_parent.setElementAt(parent, node);\n      m_firstch.setElementAt(DTM.NULL, node);\n      m_attribute.setElementAt(DTM.NULL, node);\n\n      if (prevsib != DTM.NULL)\n      {\n        if (m_nextsib.elementAt(prevsib) != DTM.NULL)\n          m_nextsib.setElementAt(m_nextsib.elementAt(prevsib), node);\n\n        m_nextsib.setElementAt(node, prevsib);\n      }\n\n      if ((parent != DTM.NULL) && (m_prevsib.elementAt(node) == DTM.NULL))\n      {\n        m_firstch.setElementAt(node, parent);\n      }\n    }\n    catch(Exception e)\n    {\n      error(\"Error in addElement: \"+e.getMessage());\n    }\n\n    return node;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [9, 11], [10, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [8, 20], [11, 21], [11, 22], [10, 23], [19, 24], [20, 25], [9, 26], [21, 27], [10, 28], [23, 29], [25, 30], [25, 31], [23, 32], [29, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 9], [12, 10], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 8], [21, 11], [22, 11], [23, 10], [24, 19], [25, 20], [26, 9], [27, 21], [28, 10], [29, 23], [30, 25], [31, 25], [32, 23], [33, 29], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "addAttributeToNode", "code": "  protected int addAttributeToNode( Object o, int extendedType, int pnode )\n  {\n    int attrib = DTM.NULL;\n    int prevsib = DTM.NULL;\n    int lastattrib = DTM.NULL;\n    int value = DTM.NULL;\n\n    try\n    {\n      attrib = allocateNodeObject(o);\n\n      m_attribute.setElementAt(DTM.NULL, attrib);\n      m_exptype.setElementAt(extendedType, attrib);\n\n      m_nextsib.setElementAt(DTM.NULL, attrib);\n      m_prevsib.setElementAt(DTM.NULL,attrib);\n      m_parent.setElementAt(pnode, attrib);\n      m_firstch.setElementAt(DTM.NULL, attrib);\n\n      if (m_attribute.elementAt(pnode) != DTM.NULL)\n      {\n        lastattrib = m_attribute.elementAt(pnode);\n        m_nextsib.setElementAt(lastattrib, attrib);\n        m_prevsib.setElementAt(attrib, lastattrib);\n      }\n      m_attribute.setElementAt(attrib, pnode);\n    }\n    catch(Exception e)\n    {\n      error(\"Error in addAttributeToNode: \"+e.getMessage());\n    }\n\n    return attrib;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [2, 12], [11, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [10, 21], [13, 22], [20, 23], [21, 24], [11, 25], [11, 26], [11, 27], [24, 28], [24, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 2], [13, 11], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 10], [22, 13], [23, 20], [24, 21], [25, 11], [26, 11], [27, 11], [28, 24], [29, 24], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "cloneAttributeFromNode", "code": "  protected void cloneAttributeFromNode( int toNode, int fromNode )\n  {\n   try\n    {\n      if (m_attribute.elementAt(toNode) != DTM.NULL)\n      {\n        error(\"Cloneing Attributes, where from Node already had addtibures assigned\");\n      }\n\n      m_attribute.setElementAt(m_attribute.elementAt(fromNode), toNode);\n    }\n    catch(Exception e)\n    {\n      error(\"Cloning attributes\");", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [4, 8], [6, 9], [7, 10], [8, 11], [5, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 4], [9, 6], [10, 7], [11, 8], [12, 5], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getFirstAttribute", "code": "  public int getFirstAttribute( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getFirstAttribute(\"+ parm1+\")\");\n    int nodeIdx = makeNodeIdentity(parm1);\n    if (nodeIdx != DTM.NULL)\n    {\n      int attribIdx =  m_attribute.elementAt(nodeIdx);\n      return makeNodeHandle(attribIdx);\n    }\n    else return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [3, 10], [7, 11], [10, 12], [8, 13], [12, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 3], [11, 7], [12, 10], [13, 8], [14, 12], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getNodeValue", "code": "  public String getNodeValue( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNodeValue(\" + parm1 + \")\");\n    try\n    {\n      Object o = m_ObjectArray.getAt(makeNodeIdentity(parm1));\n      if (o != null && o != S_ELEMENT_NODE)\n      {\n        return o.toString();\n      }\n      else\n      {\n        return \"\";\n      }\n    }\n    catch(Exception e)\n    {\n      error(\"Getting String Value\");\n      return null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [2, 9], [7, 10], [4, 11], [5, 12], [5, 13], [8, 14], [8, 15], [6, 16], [9, 17], [11, 18], [12, 19], [13, 20], [15, 21], [16, 22], [17, 23], [17, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 2], [10, 7], [11, 4], [12, 5], [13, 5], [14, 8], [15, 8], [16, 6], [17, 9], [18, 11], [19, 12], [20, 13], [21, 15], [22, 16], [23, 17], [24, 17], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getStringValue", "code": "  public XMLString getStringValue(int nodeHandle)\n  {\n    int nodeIdx = makeNodeIdentity(nodeHandle);\n    if (DEBUG) System.out.println(\"getStringValue(\" + nodeIdx + \")\");\n\n      Object o = m_ObjectArray.getAt(nodeIdx);\n    if ( o == S_ELEMENT_NODE )\n      {\n        FastStringBuffer buf = StringBufferPool.get();\n        String s;\n\n        try\n        {\n          getNodeData(nodeIdx, buf);\n\n          s = (buf.length() > 0) ? buf.toString() : \"\";\n        }\n        finally\n        {\n          StringBufferPool.free(buf);\n        }\n\n        return m_xstrf.newstr( s );\n      }\n      else if( o != null )\n      {\n        return m_xstrf.newstr(o.toString());\n    }\n    else\n      return(m_xstrf.emptystr());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [4, 16], [8, 17], [6, 18], [9, 19], [10, 20], [15, 21], [18, 22], [11, 23], [11, 24], [11, 25], [13, 26], [21, 27], [21, 28], [22, 29], [24, 30], [28, 31], [30, 32], [30, 33], [30, 34], [34, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 4], [17, 8], [18, 6], [19, 9], [20, 10], [21, 15], [22, 18], [23, 11], [24, 11], [25, 11], [26, 13], [27, 21], [28, 21], [29, 22], [30, 24], [31, 28], [32, 30], [33, 30], [34, 30], [35, 34], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getNodeData", "code": "  protected void getNodeData(int nodeIdx, FastStringBuffer buf)\n  {\n    for ( int child = _firstch(nodeIdx) ; child != DTM.NULL ; child = _nextsib(child) )\n    {\n      Object o = m_ObjectArray.getAt(child);\n      if ( o == S_ELEMENT_NODE )\n        getNodeData(child, buf);\n      else if ( o != null )\n        buf.append(o.toString());", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [6, 9], [6, 10], [1, 11], [9, 12], [6, 13], [7, 14], [9, 15], [12, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 6], [10, 6], [11, 1], [12, 9], [13, 6], [14, 7], [15, 9], [16, 12], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getNextAttribute", "code": "  public int getNextAttribute( int parm1 )\n  {\n    int nodeIdx = makeNodeIdentity(parm1);\n    if (DEBUG) System.out.println(\"getNextAttribute(\" + nodeIdx + \")\");\n    if (nodeIdx != DTM.NULL) return makeNodeHandle(m_nextsib.elementAt(nodeIdx));\n    else return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [2, 9], [3, 10], [8, 11], [9, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 2], [10, 3], [11, 8], [12, 9], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getNumberOfNodes", "code": "  protected int getNumberOfNodes( )\n  {\n    if (DEBUG) System.out.println(\"getNumberOfNodes()\");\n    return m_size;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "nextNode", "code": "  protected boolean nextNode( )\n  {\n    if (DEBUG) System.out.println(\"nextNode()\");\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createExpandedNameTable", "code": "  protected void createExpandedNameTable( )\n  {\n    m_Document_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_DOCUMENT, DTM.DOCUMENT_NODE);\n\n    m_TextNode_TypeID =\n      m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_TEXT_NODE, DTM.TEXT_NODE);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "dumpDTM", "code": "  public void dumpDTM( )\n  {\n    try\n    {\n      File f = new File(\"DTMDump.txt\");\n      System.err.println(\"Dumping... \"+f.getAbsolutePath());\n      PrintStream ps = new PrintStream(new FileOutputStream(f));\n\n      while (nextNode()){}\n\n      int nRecords = m_size;\n\n      ps.println(\"Total nodes: \" + nRecords);\n\n      for (int i = 0; i < nRecords; i++)\n      {\n        ps.println(\"=========== \" + i + \" ===========\");\n        ps.println(\"NodeName: \" + getNodeName(makeNodeHandle(i)));\n        ps.println(\"NodeNameX: \" + getNodeNameX(makeNodeHandle(i)));\n        ps.println(\"LocalName: \" + getLocalName(makeNodeHandle(i)));\n        ps.println(\"NamespaceURI: \" + getNamespaceURI(makeNodeHandle(i)));\n        ps.println(\"Prefix: \" + getPrefix(makeNodeHandle(i)));\n\n        int exTypeID = getExpandedTypeID(makeNodeHandle(i));\n\n        ps.println(\"Expanded Type ID: \"\n                           + Integer.toHexString(exTypeID));\n\n        int type = getNodeType(makeNodeHandle(i));\n        String typestring;\n\n        switch (type)\n        {\n        case DTM.ATTRIBUTE_NODE :\n          typestring = \"ATTRIBUTE_NODE\";\n          break;\n        case DTM.CDATA_SECTION_NODE :\n          typestring = \"CDATA_SECTION_NODE\";\n          break;\n        case DTM.COMMENT_NODE :\n          typestring = \"COMMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_FRAGMENT_NODE :\n          typestring = \"DOCUMENT_FRAGMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_NODE :\n          typestring = \"DOCUMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_TYPE_NODE :\n          typestring = \"DOCUMENT_NODE\";\n          break;\n        case DTM.ELEMENT_NODE :\n          typestring = \"ELEMENT_NODE\";\n          break;\n        case DTM.ENTITY_NODE :\n          typestring = \"ENTITY_NODE\";\n          break;\n        case DTM.ENTITY_REFERENCE_NODE :\n          typestring = \"ENTITY_REFERENCE_NODE\";\n          break;\n        case DTM.NAMESPACE_NODE :\n          typestring = \"NAMESPACE_NODE\";\n          break;\n        case DTM.NOTATION_NODE :\n          typestring = \"NOTATION_NODE\";\n          break;\n        case DTM.NULL :\n          typestring = \"NULL\";\n          break;\n        case DTM.PROCESSING_INSTRUCTION_NODE :\n          typestring = \"PROCESSING_INSTRUCTION_NODE\";\n          break;\n        case DTM.TEXT_NODE :\n          typestring = \"TEXT_NODE\";\n          break;\n        default :\n          typestring = \"Unknown!\";\n          break;\n        }\n\n        ps.println(\"Type: \" + typestring);\n\n        int firstChild = _firstch(i);\n\n        if (DTM.NULL == firstChild)\n          ps.println(\"First child: DTM.NULL\");\n        else if (NOTPROCESSED == firstChild)\n          ps.println(\"First child: NOTPROCESSED\");\n        else\n          ps.println(\"First child: \" + firstChild);\n\n        int prevSibling = _prevsib(i);\n\n        if (DTM.NULL == prevSibling)\n          ps.println(\"Prev sibling: DTM.NULL\");\n        else if (NOTPROCESSED == prevSibling)\n          ps.println(\"Prev sibling: NOTPROCESSED\");\n        else\n          ps.println(\"Prev sibling: \" + prevSibling);\n\n        int nextSibling = _nextsib(i);\n\n        if (DTM.NULL == nextSibling)\n          ps.println(\"Next sibling: DTM.NULL\");\n        else if (NOTPROCESSED == nextSibling)\n          ps.println(\"Next sibling: NOTPROCESSED\");\n        else\n          ps.println(\"Next sibling: \" + nextSibling);\n\n        int parent = _parent(i);\n\n        if (DTM.NULL == parent)\n          ps.println(\"Parent: DTM.NULL\");\n        else if (NOTPROCESSED == parent)\n          ps.println(\"Parent: NOTPROCESSED\");\n        else\n          ps.println(\"Parent: \" + parent);\n\n        int level = _level(i);\n\n        ps.println(\"Level: \" + level);\n        ps.println(\"Node Value: \" + getNodeValue(i));\n        ps.println(\"String Value: \" + getStringValue(i));\n\n        ps.println(\"First Attribute Node: \" + m_attribute.elementAt(i));\n      }\n\n    }\n    catch(IOException ioe)\n    {\n      ioe.printStackTrace(System.err);\n      throw new RuntimeException(ioe.getMessage());", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [1, 10], [5, 11], [1, 12], [8, 13], [2, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [10, 28], [6, 29], [12, 30], [7, 31], [13, 32], [3, 33], [3, 34], [3, 35], [3, 36], [16, 37], [16, 38], [18, 39], [18, 40], [20, 41], [20, 42], [22, 43], [22, 44], [3, 45], [3, 46], [3, 47], [3, 48], [3, 49], [3, 50], [3, 51], [3, 52], [3, 53], [28, 54], [29, 55], [30, 56], [30, 57], [31, 58], [33, 59], [34, 60], [35, 61], [36, 62], [15, 63], [37, 64], [16, 65], [17, 66], [39, 67], [18, 68], [19, 69], [41, 70], [20, 71], [21, 72], [43, 73], [22, 74], [23, 75], [45, 76], [24, 77], [24, 78], [24, 79], [24, 80], [24, 81], [24, 82], [24, 83], [24, 84], [24, 85], [24, 86], [24, 87], [24, 88], [24, 89], [24, 90], [24, 91], [26, 92], [46, 93], [27, 94], [47, 95], [48, 96], [49, 97], [50, 98], [51, 99], [52, 100], [59, 101], [59, 102], [60, 103], [60, 104], [61, 105], [61, 106], [62, 107], [37, 108], [37, 109], [65, 110], [39, 111], [39, 112], [68, 113], [41, 114], [41, 115], [71, 116], [43, 117], [43, 118], [74, 119], [76, 120], [24, 121], [24, 122], [24, 123], [24, 124], [24, 125], [24, 126], [24, 127], [24, 128], [24, 129], [24, 130], [24, 131], [24, 132], [24, 133], [24, 134], [24, 135], [92, 136], [93, 137], [93, 138], [94, 139], [95, 140], [95, 141], [96, 142], [96, 143], [97, 144], [97, 145], [98, 146], [98, 147], [99, 148], [99, 149], [100, 150], [100, 151], [108, 152], [109, 153], [111, 154], [112, 155], [114, 156], [115, 157], [117, 158], [118, 159], [121, 160], [122, 161], [123, 162], [124, 163], [125, 164], [126, 165], [127, 166], [128, 167], [129, 168], [130, 169], [131, 170], [132, 171], [133, 172], [134, 173], [135, 174], [140, 175], [142, 176], [144, 177], [146, 178], [148, 179], [151, 180], [152, 181], [154, 182], [156, 183], [158, 184], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 1], [11, 5], [12, 1], [13, 8], [14, 2], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 3], [27, 3], [28, 10], [29, 6], [30, 12], [31, 7], [32, 13], [33, 3], [34, 3], [35, 3], [36, 3], [37, 16], [38, 16], [39, 18], [40, 18], [41, 20], [42, 20], [43, 22], [44, 22], [45, 3], [46, 3], [47, 3], [48, 3], [49, 3], [50, 3], [51, 3], [52, 3], [53, 3], [54, 28], [55, 29], [56, 30], [57, 30], [58, 31], [59, 33], [60, 34], [61, 35], [62, 36], [63, 15], [64, 37], [65, 16], [66, 17], [67, 39], [68, 18], [69, 19], [70, 41], [71, 20], [72, 21], [73, 43], [74, 22], [75, 23], [76, 45], [77, 24], [78, 24], [79, 24], [80, 24], [81, 24], [82, 24], [83, 24], [84, 24], [85, 24], [86, 24], [87, 24], [88, 24], [89, 24], [90, 24], [91, 24], [92, 26], [93, 46], [94, 27], [95, 47], [96, 48], [97, 49], [98, 50], [99, 51], [100, 52], [101, 59], [102, 59], [103, 60], [104, 60], [105, 61], [106, 61], [107, 62], [108, 37], [109, 37], [110, 65], [111, 39], [112, 39], [113, 68], [114, 41], [115, 41], [116, 71], [117, 43], [118, 43], [119, 74], [120, 76], [121, 24], [122, 24], [123, 24], [124, 24], [125, 24], [126, 24], [127, 24], [128, 24], [129, 24], [130, 24], [131, 24], [132, 24], [133, 24], [134, 24], [135, 24], [136, 92], [137, 93], [138, 93], [139, 94], [140, 95], [141, 95], [142, 96], [143, 96], [144, 97], [145, 97], [146, 98], [147, 98], [148, 99], [149, 99], [150, 100], [151, 100], [152, 108], [153, 109], [154, 111], [155, 112], [156, 114], [157, 115], [158, 117], [159, 118], [160, 121], [161, 122], [162, 123], [163, 124], [164, 125], [165, 126], [166, 127], [167, 128], [168, 129], [169, 130], [170, 131], [171, 132], [172, 133], [173, 134], [174, 135], [175, 140], [176, 142], [177, 144], [178, 146], [179, 148], [180, 151], [181, 152], [182, 154], [183, 156], [184, 158], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184]]}, {"function_name": "dispatchNodeData", "code": "  protected static void dispatchNodeData( Node node, ContentHandler ch, int depth )throws org.xml.sax.SAXException\n  {\n\n    switch (node.getNodeType())\n    {\n    case Node.DOCUMENT_FRAGMENT_NODE :\n    case Node.DOCUMENT_NODE :\n    case Node.ELEMENT_NODE :\n    {\n      for (Node child = node.getFirstChild(); null != child;\n              child = child.getNextSibling())\n      {\n        dispatchNodeData(child, ch, depth+1);\n      }\n    }\n    break;\n    case Node.COMMENT_NODE :\n      if(0 != depth)\n        break;\n    case Node.TEXT_NODE :\n    case Node.CDATA_SECTION_NODE :\n    case Node.ATTRIBUTE_NODE :\n      String str = node.getNodeValue();\n      if(ch instanceof CharacterNodeHandler)\n      {\n        ((CharacterNodeHandler)ch).characters(node);\n      }\n      else\n      {\n        ch.characters(str.toCharArray(), 0, str.length());\n      }\n      break;\n    default :\n      break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "VAR_DECL", "IF", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LOOP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [8, 12], [10, 13], [10, 14], [1, 15], [9, 16], [14, 17], [15, 18], [15, 19], [8, 20], [18, 21], [19, 22], [20, 23], [20, 24], [20, 25], [15, 26], [15, 27], [26, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 8], [13, 10], [14, 10], [15, 1], [16, 9], [17, 14], [18, 15], [19, 15], [20, 8], [21, 18], [22, 19], [23, 20], [24, 20], [25, 20], [26, 15], [27, 15], [28, 26], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "setProperty", "code": "  public void setProperty( String property, Object value )", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSourceLocatorFor", "code": "  public SourceLocator getSourceLocatorFor( int node )\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNextNodeIdentity", "code": "  protected int getNextNodeIdentity( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNextNodeIdenty(\" + parm1 + \")\");\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getAttributeNode", "code": "  public int getAttributeNode( int parm1, String parm2, String parm3 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n        \"getAttributeNode(\" +\n        parm1 + \",\" +\n        parm2 + \",\" +\n        parm3 + \")\");\n    }\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [7, 8], [7, 9], [9, 10], [10, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 7], [9, 7], [10, 9], [11, 10], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getLocalName", "code": "  public String getLocalName( int parm1 )\n  {\n      int exID = getExpandedTypeID(parm1);\n\n    if (DEBUG)\n    {\n      DEBUG = false;\n      System.out.print(\"getLocalName(\" + parm1 + \") -> \");\n      System.out.println(\"...\" + getLocalNameFromExpandedNameID(exID) );\n      DEBUG = true;\n    }\n\n    return getLocalNameFromExpandedNameID(exID);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [8, 12], [9, 13], [10, 14], [12, 15], [12, 16], [13, 17], [13, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 8], [13, 9], [14, 10], [15, 12], [16, 12], [17, 13], [18, 13], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getNodeName", "code": "  public String getNodeName( int parm1 )\n  {\n    int exID = getExpandedTypeID( parm1 );\n    if (DEBUG)\n    {\n      DEBUG = false;\n      System.out.print(\"getLocalName(\" + parm1 + \") -> \");\n      System.out.println(\"...\" + getLocalNameFromExpandedNameID(exID) );\n      DEBUG = true;\n    }\n    return getLocalNameFromExpandedNameID(exID);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [8, 12], [9, 13], [10, 14], [12, 15], [12, 16], [13, 17], [13, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 8], [13, 9], [14, 10], [15, 12], [16, 12], [17, 13], [18, 13], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "isAttributeSpecified", "code": "  public boolean isAttributeSpecified( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"isAttributeSpecified(\" + parm1 + \")\");\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getUnparsedEntityURI", "code": "  public String getUnparsedEntityURI( String parm1 )\n  {\n    if (DEBUG) System.out.println(\"getUnparsedEntityURI(\" + parm1 + \")\");\n    return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getDTDHandler", "code": "  public DTDHandler getDTDHandler( )\n  {\n    if (DEBUG) System.out.println(\"getDTDHandler()\");\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getPrefix", "code": "  public String getPrefix( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getPrefix(\" + parm1  + \")\");\n    return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getEntityResolver", "code": "  public EntityResolver getEntityResolver( )\n  {\n    if (DEBUG) System.out.println(\"getEntityResolver()\");\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDocumentTypeDeclarationPublicIdentifier", "code": "  public String getDocumentTypeDeclarationPublicIdentifier( )\n  {\n    if (DEBUG) System.out.println(\"get_DTD_PubId()\");\n    return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getLexicalHandler", "code": "  public LexicalHandler getLexicalHandler( )\n  {\n    if (DEBUG) System.out.println(\"getLexicalHandler()\");\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "needsTwoThreads", "code": "  public boolean needsTwoThreads( )\n  {\n    if (DEBUG) System.out.println(\"needsTwoThreads()\");\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getContentHandler", "code": "  public ContentHandler getContentHandler( )\n  {\n    if (DEBUG) System.out.println(\"getContentHandler()\");\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "dispatchToEvents", "code": "  public void dispatchToEvents( int parm1, ContentHandler parm2 )throws org.xml.sax.SAXException\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n      \"dispathcToEvents(\" +\n      parm1 + \",\" +\n      parm2 + \")\");\n    }\n    return;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [6, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 6], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getNamespaceURI", "code": "  public String getNamespaceURI( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNamespaceURI(\" +parm1+\")\");\n    return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "dispatchCharactersEvents", "code": "  public void dispatchCharactersEvents( int nodeHandle, ContentHandler ch, boolean normalize )throws org.xml.sax.SAXException\n  {\n    if (DEBUG)\n    {\n      System.out.println(\"dispatchCharacterEvents(\" +\n      nodeHandle + \",\" +\n      ch + \",\" +\n      normalize + \")\");\n    }\n\n    if(normalize)\n    {\n      XMLString str = getStringValue(nodeHandle);\n      str = str.fixWhiteSpace(true, true, false);\n      str.dispatchCharactersEvents(ch);\n    }\n    else\n    {\n      int type = getNodeType(nodeHandle);\n      Node node = getNode(nodeHandle);\n      dispatchNodeData(node, ch, 0);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [9, 13], [6, 14], [7, 15], [11, 16], [8, 17], [12, 18], [16, 19], [16, 20], [16, 21], [18, 22], [18, 23], [23, 24], [24, 25], [24, 26], [26, 27], [27, 28], [27, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 9], [14, 6], [15, 7], [16, 11], [17, 8], [18, 12], [19, 16], [20, 16], [21, 16], [22, 18], [23, 18], [24, 23], [25, 24], [26, 24], [27, 26], [28, 27], [29, 27], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "supportsPreStripping", "code": "  public boolean supportsPreStripping( )\n  {\n    if (DEBUG) System.out.println(\"supportsPreStripping()\");\n    return super.supportsPreStripping();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "_exptype", "code": "  protected int _exptype( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_exptype(\" + parm1 + \")\");\n    return super._exptype( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "findNamespaceContext", "code": "  protected SuballocatedIntVector findNamespaceContext( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"SuballocatedIntVector(\" + parm1 + \")\");\n    return super.findNamespaceContext( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "_prevsib", "code": "  protected int _prevsib( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_prevsib(\" + parm1+ \")\");\n    return super._prevsib( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "_type", "code": "  protected short _type( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_type(\" + parm1 + \")\");\n    return super._type( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNode", "code": "  public Node getNode( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNode(\" + parm1 + \")\");\n    return super.getNode( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getPreviousSibling", "code": "  public int getPreviousSibling( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getPrevSib(\" + parm1 + \")\");\n    return super.getPreviousSibling( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDocumentStandalone", "code": "  public String getDocumentStandalone( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getDOcStandAlone(\" + parm1 + \")\");\n    return super.getDocumentStandalone( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNodeNameX", "code": "  public String getNodeNameX( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNodeNameX(\" + parm1 + \")\");\n    return getNodeName(parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setFeature", "code": "  public void setFeature( String parm1, boolean parm2 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n        \"setFeature(\" +\n        parm1 + \",\" +\n        parm2 + \")\");\n    }\n    super.setFeature( parm1,  parm2);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "_parent", "code": "  protected int _parent( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_parent(\" + parm1 + \")\");\n    return super._parent( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "indexNode", "code": "  protected void indexNode( int parm1, int parm2 )\n  {\n    if (DEBUG) System.out.println(\"indexNode(\"+parm1+\",\"+parm2+\")\");\n    super.indexNode( parm1,  parm2);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getShouldStripWhitespace", "code": "  protected boolean getShouldStripWhitespace( )\n  {\n    if (DEBUG) System.out.println(\"getShouldStripWS()\");\n    return super.getShouldStripWhitespace();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "popShouldStripWhitespace", "code": "  protected void popShouldStripWhitespace( )\n  {\n    if (DEBUG) System.out.println(\"popShouldStripWS()\");\n    super.popShouldStripWhitespace();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isNodeAfter", "code": "  public boolean isNodeAfter( int parm1, int parm2 )\n  {\n    if (DEBUG) System.out.println(\"isNodeAfter(\" + parm1 + \",\" + parm2 + \")\");\n    return super.isNodeAfter( parm1,  parm2);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [6, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 6], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getNamespaceType", "code": "  public int getNamespaceType( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNamespaceType(\" + parm1 + \")\");\n    return super.getNamespaceType( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "_level", "code": "  protected int _level( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_level(\" + parm1 + \")\");\n    return super._level( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "pushShouldStripWhitespace", "code": "  protected void pushShouldStripWhitespace( boolean parm1 )\n  {\n    if (DEBUG) System.out.println(\"push_ShouldStripWS(\" + parm1 + \")\");\n    super.pushShouldStripWhitespace( parm1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDocumentVersion", "code": "  public String getDocumentVersion( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getDocVer(\"+parm1+\")\");\n    return super.getDocumentVersion( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isSupported", "code": "  public boolean isSupported( String parm1, String parm2 )\n  {\n    if (DEBUG) System.out.println(\"isSupported(\"+parm1+\",\"+parm2+\")\");\n    return super.isSupported( parm1,  parm2);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [6, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 6], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setShouldStripWhitespace", "code": "  protected void setShouldStripWhitespace( boolean parm1 )\n  {\n    if (DEBUG) System.out.println(\"set_ShouldStripWS(\"+parm1+\")\");\n    super.setShouldStripWhitespace( parm1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ensureSizeOfIndex", "code": "  protected void ensureSizeOfIndex( int parm1, int parm2 )\n  {\n    if (DEBUG) System.out.println(\"ensureSizeOfIndex(\"+parm1+\",\"+parm2+\")\");\n    super.ensureSizeOfIndex( parm1,  parm2);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "ensureSize", "code": "  protected void ensureSize( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"ensureSize(\"+parm1+\")\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDocumentEncoding", "code": "  public String getDocumentEncoding( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getDocumentEncoding(\"+parm1+\")\");\n    return super.getDocumentEncoding( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "appendChild", "code": "  public void appendChild( int parm1, boolean parm2, boolean parm3 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n        \"appendChild(\" +\n        parm1 + \",\" +\n        parm2 + \",\" +\n        parm3 + \")\");\n    }\n    super.appendChild( parm1,  parm2,  parm3);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getLevel", "code": "  public short getLevel( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getLevel(\"+parm1+\")\");\n    return super.getLevel( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDocumentBaseURI", "code": "  public String getDocumentBaseURI( )\n  {\n    if (DEBUG) System.out.println(\"getDocBaseURI()\");\n    return super.getDocumentBaseURI();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNextNamespaceNode", "code": "  public int getNextNamespaceNode( int parm1, int parm2, boolean parm3 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n      \"getNextNamesapceNode(\" +\n      parm1 + \",\" +\n      parm2 + \",\" +\n      parm3 + \")\");\n    }\n    return super.getNextNamespaceNode( parm1,  parm2,  parm3);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [7, 8], [7, 9], [9, 10], [10, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 7], [9, 7], [10, 9], [11, 10], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "appendTextChild", "code": "  public void appendTextChild( String parm1 )\n  {\n    if (DEBUG) System.out.println(\"appendTextChild(\" + parm1 + \")\");\n    super.appendTextChild( parm1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "findGTE", "code": "  protected int findGTE( int[] parm1, int parm2, int parm3, int parm4 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n      \"findGTE(\"+\n      parm1 + \",\" +\n      parm2 + \",\" +\n      parm3 + \")\");\n    }\n    return super.findGTE( parm1,  parm2,  parm3,  parm4);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [7, 8], [8, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [14, 15], [14, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 7], [9, 8], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 14], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getFirstNamespaceNode", "code": "  public int getFirstNamespaceNode( int parm1, boolean parm2 )\n  {\n    if (DEBUG) System.out.println(\"getFirstNamespaceNode()\");\n    return super.getFirstNamespaceNode( parm1,  parm2);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getStringValueChunkCount", "code": "  public int getStringValueChunkCount( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getStringChunkCount(\" + parm1 + \")\");\n    return super.getStringValueChunkCount( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLastChild", "code": "  public int getLastChild( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getLastChild(\" + parm1 + \")\");\n    return super.getLastChild( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "hasChildNodes", "code": "  public boolean hasChildNodes( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"hasChildNodes(\" + parm1 + \")\");\n    return super.hasChildNodes( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNodeType", "code": "  public short getNodeType( int parm1 )\n  {\n    if (DEBUG)\n    {\n      DEBUG=false;\n      System.out.print(\"getNodeType(\" + parm1 + \") \");\n      int exID = getExpandedTypeID(parm1);\n      String name = getLocalNameFromExpandedNameID(exID);\n      System.out.println(\n        \".. Node name [\" + name + \"]\" +\n        \"[\" + getNodeType( parm1) + \"]\");\n\n      DEBUG=true;\n    }\n\n    return super.getNodeType( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [7, 11], [4, 12], [5, 13], [8, 14], [9, 15], [11, 16], [11, 17], [14, 18], [14, 19], [17, 20], [17, 21], [19, 22], [21, 23], [21, 24], [24, 25], [24, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 7], [12, 4], [13, 5], [14, 8], [15, 9], [16, 11], [17, 11], [18, 14], [19, 14], [20, 17], [21, 17], [22, 19], [23, 21], [24, 21], [25, 24], [26, 24], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "isCharacterElementContentWhitespace", "code": "  public boolean isCharacterElementContentWhitespace( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"isCharacterElementContentWhitespace(\" + parm1 +\")\");\n    return super.isCharacterElementContentWhitespace( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getFirstChild", "code": "  public int getFirstChild( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getFirstChild(\" + parm1 + \")\");\n    return super.getFirstChild( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDocumentSystemIdentifier", "code": "  public String getDocumentSystemIdentifier( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getDocSysID(\" + parm1 + \")\");\n    return super.getDocumentSystemIdentifier( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "declareNamespaceInContext", "code": "  protected void declareNamespaceInContext( int parm1, int parm2 )\n  {\n    if (DEBUG) System.out.println(\"declareNamespaceContext(\"+parm1+\",\"+parm2+\")\");\n    super.declareNamespaceInContext( parm1,  parm2);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getNamespaceFromExpandedNameID", "code": "  public String getNamespaceFromExpandedNameID( int parm1 )\n  {\n    if (DEBUG)\n    {\n      DEBUG = false;\n      System.out.print(\"getNamespaceFromExpandedNameID(\"+parm1+\")\");\n      System.out.println(\"...\" + super.getNamespaceFromExpandedNameID( parm1) );\n      DEBUG = true;\n    }\n    return super.getNamespaceFromExpandedNameID( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [4, 8], [5, 9], [6, 10], [7, 11], [9, 12], [10, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 4], [9, 5], [10, 6], [11, 7], [12, 9], [13, 10], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getLocalNameFromExpandedNameID", "code": "  public String getLocalNameFromExpandedNameID( int parm1 )\n  {\n    if (DEBUG)\n    {\n      DEBUG = false;\n      System.out.print(\"getLocalNameFromExpandedNameID(\"+parm1+\")\");\n      System.out.println(\"...\" + super.getLocalNameFromExpandedNameID( parm1));\n      DEBUG = true;\n    }\n    return super.getLocalNameFromExpandedNameID( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [4, 8], [5, 9], [6, 10], [7, 11], [9, 12], [10, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 4], [9, 5], [10, 6], [11, 7], [12, 9], [13, 10], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getExpandedTypeID", "code": "  public int getExpandedTypeID( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getExpandedTypeID(\"+parm1+\")\");\n    return super.getExpandedTypeID( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDocument", "code": "  public int getDocument( )\n  {\n    if (DEBUG) System.out.println(\"getDocument()\");\n    return super.getDocument();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "findInSortedSuballocatedIntVector", "code": "  protected int findInSortedSuballocatedIntVector( SuballocatedIntVector parm1, int parm2 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\n      \"findInSortedSubAlloctedVector(\" +\n      parm1 + \",\" +\n      parm2 + \")\");\n    }\n    return super.findInSortedSuballocatedIntVector( parm1,  parm2);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [6, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 6], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "isDocumentAllDeclarationsProcessed", "code": "  public boolean isDocumentAllDeclarationsProcessed( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"isDocumentAllDeclProc(\"+parm1+\")\");\n    return super.isDocumentAllDeclarationsProcessed( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "error", "code": "  protected void error( String parm1 )\n  {\n    if (DEBUG) System.out.println(\"error(\"+parm1+\")\");\n    super.error( parm1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "_firstch", "code": "  protected int _firstch( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_firstch(\"+parm1+\")\");\n    return super._firstch( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getOwnerDocument", "code": "  public int getOwnerDocument( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getOwnerDoc(\"+parm1+\")\");\n    return super.getOwnerDocument( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "_nextsib", "code": "  protected int _nextsib( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"_nextSib(\"+parm1+\")\");\n    return super._nextsib( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNextSibling", "code": "  public int getNextSibling( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getNextSibling(\"+parm1+\")\");\n    return super.getNextSibling( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDocumentAllDeclarationsProcessed", "code": "  public boolean getDocumentAllDeclarationsProcessed( )\n  {\n    if (DEBUG) System.out.println(\"getDocAllDeclProc()\");\n    return super.getDocumentAllDeclarationsProcessed();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getParent", "code": "  public int getParent( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getParent(\"+parm1+\")\");\n    return super.getParent( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExpandedTypeID", "code": "  public int getExpandedTypeID( String parm1, String parm2, int parm3 )\n  {\n    if (DEBUG) System.out.println(\"getExpandedTypeID()\");\n    return super.getExpandedTypeID( parm1,  parm2,  parm3);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setDocumentBaseURI", "code": "  public void setDocumentBaseURI( String parm1 )\n  {\n    if (DEBUG) System.out.println(\"setDocBaseURI()\");\n    super.setDocumentBaseURI( parm1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getStringValueChunk", "code": "  public char[] getStringValueChunk( int parm1, int parm2, int[] parm3 )\n  {\n    if (DEBUG)\n    {\n      System.out.println(\"getStringChunkValue(\" +\n      parm1 + \",\" +\n      parm2 + \")\");\n    }\n    return super.getStringValueChunk( parm1,  parm2,  parm3);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [7, 8], [7, 9], [9, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 7], [9, 7], [10, 9], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getAxisTraverser", "code": "  public DTMAxisTraverser getAxisTraverser( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getAxixTraverser(\"+parm1+\")\");\n    return super.getAxisTraverser( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getTypedAxisIterator", "code": "  public DTMAxisIterator getTypedAxisIterator( int parm1, int parm2 )\n  {\n    if (DEBUG) System.out.println(\"getTypedAxisIterator(\"+parm1+\",\"+parm2+\")\");\n    return super.getTypedAxisIterator( parm1,  parm2);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [6, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 6], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getAxisIterator", "code": "  public DTMAxisIterator getAxisIterator( int parm1 )\n  {\n    if (DEBUG) System.out.println(\"getAxisIterator(\"+parm1+\")\");\n    return super.getAxisIterator( parm1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getElementById", "code": "  public int getElementById( String parm1 )\n  {\n    if (DEBUG) System.out.println(\"getElementByID(\"+parm1+\")\");\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDeclHandler", "code": "  public DeclHandler getDeclHandler( )\n  {\n    if (DEBUG) System.out.println(\"getDeclHandler()\");\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getErrorHandler", "code": "  public ErrorHandler getErrorHandler( )\n  {\n    if (DEBUG) System.out.println(\"getErrorHandler()\");\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDocumentTypeDeclarationSystemIdentifier", "code": "  public String getDocumentTypeDeclarationSystemIdentifier( )\n  {\n    if (DEBUG) System.out.println(\"get_DTD-SID()\");\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DTMDocument", "code": "  public DTMDocument( DTMManager mgr, int ident )\n  {\n    super(mgr, null, ident,\n      null, mgr.getXMLStringFactory(), true);\n\n    m_attribute = new SuballocatedIntVector(DEFAULT_BLOCKSIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "xalan-2.7-8293", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/res/XPATHErrorResources_zh_CN.java", "language": "java", "name": "org.apache.xpath.res.XPATHErrorResources_zh_CN", "code": "public class XPATHErrorResources_zh_CN extends ListResourceBundle\n{\n\n/*\n * General notes to translators:\n *\n * This file contains error and warning messages related to XPath Error\n * Handling.\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n *  8) The context node is the node in the document with respect to which an\n *     XPath expression is being evaluated.\n *\n *  9) An iterator is an object that traverses nodes in the tree, one at a time.\n *\n *  10) NCName is an XML term used to describe a name that does not contain a\n *     colon (a \"no-colon name\").\n *\n *  11) QName is an XML term meaning \"qualified name\".\n */\n\n  /** Field MAX_CODE          */\n\n  /** Field MAX_WARNING          */\n\n  /** Field MAX_OTHERS          */\n  public static final int MAX_OTHERS = 20;\n\n  /** Field MAX_MESSAGES          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * static variables\n   */\n  public static final String ERROR0000 = \"ERROR0000\";\n  public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH =\n         \"ER_CURRENT_NOT_ALLOWED_IN_MATCH\";\n  public static final String ER_CURRENT_TAKES_NO_ARGS =\n         \"ER_CURRENT_TAKES_NO_ARGS\";\n  public static final String ER_DOCUMENT_REPLACED = \"ER_DOCUMENT_REPLACED\";\n  public static final String ER_CONTEXT_HAS_NO_OWNERDOC =\n         \"ER_CONTEXT_HAS_NO_OWNERDOC\";\n  public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS =\n         \"ER_LOCALNAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS =\n         \"ER_NAMESPACEURI_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS =\n         \"ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NUMBER_HAS_TOO_MANY_ARGS =\n         \"ER_NUMBER_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAME_HAS_TOO_MANY_ARGS =\n         \"ER_NAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRING_HAS_TOO_MANY_ARGS =\n         \"ER_STRING_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS =\n         \"ER_STRINGLENGTH_HAS_TOO_MANY_ARGS\";\n  public static final String ER_TRANSLATE_TAKES_3_ARGS =\n         \"ER_TRANSLATE_TAKES_3_ARGS\";\n  public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG =\n         \"ER_UNPARSEDENTITYURI_TAKES_1_ARG\";\n  public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED =\n         \"ER_NAMESPACEAXIS_NOT_IMPLEMENTED\";\n  public static final String ER_UNKNOWN_AXIS = \"ER_UNKNOWN_AXIS\";\n  public static final String ER_UNKNOWN_MATCH_OPERATION =\n         \"ER_UNKNOWN_MATCH_OPERATION\";\n  public static final String ER_INCORRECT_ARG_LENGTH =\"ER_INCORRECT_ARG_LENGTH\";\n  public static final String ER_CANT_CONVERT_TO_NUMBER =\n         \"ER_CANT_CONVERT_TO_NUMBER\";\n  public static final String ER_CANT_CONVERT_TO_NODELIST =\n         \"ER_CANT_CONVERT_TO_NODELIST\";\n  public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST =\n         \"ER_CANT_CONVERT_TO_MUTABLENODELIST\";\n  public static final String ER_CANT_CONVERT_TO_TYPE =\"ER_CANT_CONVERT_TO_TYPE\";\n  public static final String ER_EXPECTED_MATCH_PATTERN =\n         \"ER_EXPECTED_MATCH_PATTERN\";\n  public static final String ER_COULDNOT_GET_VAR_NAMED =\n         \"ER_COULDNOT_GET_VAR_NAMED\";\n  public static final String ER_UNKNOWN_OPCODE = \"ER_UNKNOWN_OPCODE\";\n  public static final String ER_EXTRA_ILLEGAL_TOKENS =\"ER_EXTRA_ILLEGAL_TOKENS\";\n  public static final String ER_EXPECTED_DOUBLE_QUOTE =\n         \"ER_EXPECTED_DOUBLE_QUOTE\";\n  public static final String ER_EXPECTED_SINGLE_QUOTE =\n         \"ER_EXPECTED_SINGLE_QUOTE\";\n  public static final String ER_EMPTY_EXPRESSION = \"ER_EMPTY_EXPRESSION\";\n  public static final String ER_EXPECTED_BUT_FOUND = \"ER_EXPECTED_BUT_FOUND\";\n  public static final String ER_INCORRECT_PROGRAMMER_ASSERTION =\n         \"ER_INCORRECT_PROGRAMMER_ASSERTION\";\n  public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL =\n         \"ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL\";\n  public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG\";\n  public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG\";\n  public static final String ER_PREDICATE_ILLEGAL_SYNTAX =\n         \"ER_PREDICATE_ILLEGAL_SYNTAX\";\n  public static final String ER_ILLEGAL_AXIS_NAME = \"ER_ILLEGAL_AXIS_NAME\";\n  public static final String ER_UNKNOWN_NODETYPE = \"ER_UNKNOWN_NODETYPE\";\n  public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED =\n         \"ER_PATTERN_LITERAL_NEEDS_BE_QUOTED\";\n  public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER =\n         \"ER_COULDNOT_BE_FORMATTED_TO_NUMBER\";\n  public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON =\n         \"ER_COULDNOT_CREATE_XMLPROCESSORLIAISON\";\n  public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP =\n         \"ER_DIDNOT_FIND_XPATH_SELECT_EXP\";\n  public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH =\n         \"ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH\";\n  public static final String ER_ERROR_OCCURED = \"ER_ERROR_OCCURED\";\n  public static final String ER_ILLEGAL_VARIABLE_REFERENCE =\n         \"ER_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String ER_AXES_NOT_ALLOWED = \"ER_AXES_NOT_ALLOWED\";\n  public static final String ER_KEY_HAS_TOO_MANY_ARGS =\n         \"ER_KEY_HAS_TOO_MANY_ARGS\";\n  public static final String ER_COUNT_TAKES_1_ARG = \"ER_COUNT_TAKES_1_ARG\";\n  public static final String ER_COULDNOT_FIND_FUNCTION =\n         \"ER_COULDNOT_FIND_FUNCTION\";\n  public static final String ER_UNSUPPORTED_ENCODING =\"ER_UNSUPPORTED_ENCODING\";\n  public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING =\n         \"ER_PROBLEM_IN_DTM_NEXTSIBLING\";\n  public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL =\n         \"ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL\";\n  public static final String ER_SETDOMFACTORY_NOT_SUPPORTED =\n         \"ER_SETDOMFACTORY_NOT_SUPPORTED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_PARSE_NOT_SUPPORTED = \"ER_PARSE_NOT_SUPPORTED\";\n  public static final String ER_SAX_API_NOT_HANDLED = \"ER_SAX_API_NOT_HANDLED\";\npublic static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =\n         \"ER_IGNORABLE_WHITESPACE_NOT_HANDLED\";\n  public static final String ER_DTM_CANNOT_HANDLE_NODES =\n         \"ER_DTM_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_CANNOT_HANDLE_NODES =\n         \"ER_XERCES_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_PARSE_ERROR_DETAILS =\n         \"ER_XERCES_PARSE_ERROR_DETAILS\";\n  public static final String ER_XERCES_PARSE_ERROR = \"ER_XERCES_PARSE_ERROR\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_CANNOT_CREATE_URL = \"ER_CANNOT_CREATE_URL\";\n  public static final String ER_XPATH_READOBJECT = \"ER_XPATH_READOBJECT\";\n public static final String ER_FUNCTION_TOKEN_NOT_FOUND =\n         \"ER_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String ER_CANNOT_DEAL_XPATH_TYPE =\n         \"ER_CANNOT_DEAL_XPATH_TYPE\";\n  public static final String ER_NODESET_NOT_MUTABLE = \"ER_NODESET_NOT_MUTABLE\";\n  public static final String ER_NODESETDTM_NOT_MUTABLE =\n         \"ER_NODESETDTM_NOT_MUTABLE\";\n   /**  Variable not resolvable:   */\n  public static final String ER_VAR_NOT_RESOLVABLE = \"ER_VAR_NOT_RESOLVABLE\";\n   /** Null error handler  */\n public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n   /**  Programmer's assertion: unknown opcode  */\n  public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE =\n         \"ER_PROG_ASSERT_UNKNOWN_OPCODE\";\n   /**  0 or 1   */\n  public static final String ER_ZERO_OR_ONE = \"ER_ZERO_OR_ONE\";\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =\n         \"ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = \"ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  fsb() not supported for XStringForChars   */\n  public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS =\n         \"ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS\";\n   /**  Could not find variable with the name of   */\n public static final String ER_COULD_NOT_FIND_VAR = \"ER_COULD_NOT_FIND_VAR\";\n   /**  XStringForChars can not take a string for an argument   */\n public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING =\n         \"ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING\";\n   /**  The FastStringBuffer argument can not be null   */\n public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL =\n         \"ER_FASTSTRINGBUFFER_CANNOT_BE_NULL\";\n   /**  2 or 3   */\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n   /** Variable accessed before it is bound! */\n  public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND =\n         \"ER_VARIABLE_ACCESSED_BEFORE_BIND\";\n   /** XStringForFSB can not take a string for an argument! */\n public static final String ER_FSB_CANNOT_TAKE_STRING =\n         \"ER_FSB_CANNOT_TAKE_STRING\";\n   /** Error! Setting the root of a walker to null! */\n  public static final String ER_SETTING_WALKER_ROOT_TO_NULL =\n         \"ER_SETTING_WALKER_ROOT_TO_NULL\";\n   /** This NodeSetDTM can not iterate to a previous node! */\n  public static final String ER_NODESETDTM_CANNOT_ITERATE =\n         \"ER_NODESETDTM_CANNOT_ITERATE\";\n  /** This NodeSet can not iterate to a previous node! */\n public static final String ER_NODESET_CANNOT_ITERATE =\n         \"ER_NODESET_CANNOT_ITERATE\";\n  /** This NodeSetDTM can not do indexing or counting functions! */\n  public static final String ER_NODESETDTM_CANNOT_INDEX =\n         \"ER_NODESETDTM_CANNOT_INDEX\";\n  /** This NodeSet can not do indexing or counting functions! */\n  public static final String ER_NODESET_CANNOT_INDEX =\n         \"ER_NODESET_CANNOT_INDEX\";\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n  public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE =\n         \"ER_CANNOT_CALL_SETSHOULDCACHENODE\";\n  /** {0} only allows {1} arguments */\n public static final String ER_ONLY_ALLOWS = \"ER_ONLY_ALLOWS\";\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n  public static final String ER_UNKNOWN_STEP = \"ER_UNKNOWN_STEP\";\n  /** Problem with RelativeLocationPath */\n  public static final String ER_EXPECTED_REL_LOC_PATH =\n         \"ER_EXPECTED_REL_LOC_PATH\";\n  /** Problem with LocationPath */\n  public static final String ER_EXPECTED_LOC_PATH = \"ER_EXPECTED_LOC_PATH\";\n  /** Problem with Step */\n  public static final String ER_EXPECTED_LOC_STEP = \"ER_EXPECTED_LOC_STEP\";\n  /** Problem with NodeTest */\n  public static final String ER_EXPECTED_NODE_TEST = \"ER_EXPECTED_NODE_TEST\";\n  /** Expected step pattern */\n  public static final String ER_EXPECTED_STEP_PATTERN =\n        \"ER_EXPECTED_STEP_PATTERN\";\n  /** Expected relative path pattern */\n  public static final String ER_EXPECTED_REL_PATH_PATTERN =\n         \"ER_EXPECTED_REL_PATH_PATTERN\";\n  /** localname in QNAME should be a valid NCName */\n  /** prefix in QNAME should be a valid NCName */\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n  public static final String ER_CANT_CONVERT_TO_BOOLEAN =\n         \"ER_CANT_CONVERT_TO_BOOLEAN\";\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n  public static final String ER_CANT_CONVERT_TO_SINGLENODE =\n         \"ER_CANT_CONVERT_TO_SINGLENODE\";\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n  public static final String ER_CANT_GET_SNAPSHOT_LENGTH =\n         \"ER_CANT_GET_SNAPSHOT_LENGTH\";\n  /** Field ER_NON_ITERATOR_TYPE                */\n  public static final String ER_NON_ITERATOR_TYPE = \"ER_NON_ITERATOR_TYPE\";\n  /** Field ER_DOC_MUTATED                      */\n  public static final String ER_DOC_MUTATED = \"ER_DOC_MUTATED\";\n  public static final String ER_INVALID_XPATH_TYPE = \"ER_INVALID_XPATH_TYPE\";\n  public static final String ER_EMPTY_XPATH_RESULT = \"ER_EMPTY_XPATH_RESULT\";\n  public static final String ER_INCOMPATIBLE_TYPES = \"ER_INCOMPATIBLE_TYPES\";\n  public static final String ER_NULL_RESOLVER = \"ER_NULL_RESOLVER\";\n  public static final String ER_CANT_CONVERT_TO_STRING =\n         \"ER_CANT_CONVERT_TO_STRING\";\n  public static final String ER_NON_SNAPSHOT_TYPE = \"ER_NON_SNAPSHOT_TYPE\";\n  public static final String ER_WRONG_DOCUMENT = \"ER_WRONG_DOCUMENT\";\n  /* Note to translators:  The XPath expression cannot be evaluated with respect\n   * to this type of node.\n   */\n  /** Field ER_WRONG_NODETYPE                    */\n  public static final String ER_WRONG_NODETYPE = \"ER_WRONG_NODETYPE\";\n  public static final String ER_XPATH_ERROR = \"ER_XPATH_ERROR\";\n\n  public static final String WG_LOCALE_NAME_NOT_HANDLED =\n         \"WG_LOCALE_NAME_NOT_HANDLED\";\n  public static final String WG_PROPERTY_NOT_SUPPORTED =\n         \"WG_PROPERTY_NOT_SUPPORTED\";\n  public static final String WG_DONT_DO_ANYTHING_WITH_NS =\n         \"WG_DONT_DO_ANYTHING_WITH_NS\";\n  public static final String WG_SECURITY_EXCEPTION = \"WG_SECURITY_EXCEPTION\";\n  public static final String WG_QUO_NO_LONGER_DEFINED =\n         \"WG_QUO_NO_LONGER_DEFINED\";\n  public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST =\n         \"WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST\";\n  public static final String WG_FUNCTION_TOKEN_NOT_FOUND =\n         \"WG_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String WG_COULDNOT_FIND_FUNCTION =\n         \"WG_COULDNOT_FIND_FUNCTION\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED =\n         \"WG_EXPAND_ENTITIES_NOT_SUPPORTED\";\n  public static final String WG_ILLEGAL_VARIABLE_REFERENCE =\n         \"WG_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String WG_UNSUPPORTED_ENCODING =\"WG_UNSUPPORTED_ENCODING\";\n\n\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return new Object[][]{\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"\\u5339\\u914d\\u6a21\\u5f0f\\u4e2d\\u4e0d\\u5141\\u8bb8\\u51fa\\u73b0 current() \\u51fd\\u6570\\uff01\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"current() \\u51fd\\u6570\\u4e0d\\u63a5\\u53d7\\u81ea\\u53d8\\u91cf\\uff01\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"document() \\u51fd\\u6570\\u5b9e\\u73b0\\u5df2\\u88ab org.apache.xalan.xslt.FuncDocument \\u66ff\\u6362\\uff01\"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"\\u4e0a\\u4e0b\\u6587\\u6ca1\\u6709\\u6240\\u6709\\u8005\\u6587\\u6863\\uff01\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"local-name() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"namespace-uri() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"normalize-space() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"number() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"name() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"string() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"string-length() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"translate() \\u51fd\\u6570\\u6709\\u4e09\\u4e2a\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"unparsed-entity-uri \\u51fd\\u6570\\u5e94\\u6709\\u4e00\\u4e2a\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"\\u540d\\u79f0\\u7a7a\\u95f4\\u8f74\\u5c1a\\u672a\\u5b9e\\u73b0\\uff01\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"\\u672a\\u77e5\\u8f74\\uff1a{0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"\\u672a\\u77e5\\u7684\\u5339\\u914d\\u64cd\\u4f5c\\uff01\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"processing-instruction() \\u8282\\u70b9\\u6d4b\\u8bd5\\u7684\\u81ea\\u53d8\\u91cf\\u957f\\u5ea6\\u4e0d\\u6b63\\u786e\\uff01\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210\\u6570\\u5b57\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210 NodeList\\uff01\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210 NodeSetDTM\\uff01\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210 type#{1}\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"getMatchScore \\u4e2d\\u671f\\u671b\\u7684\\u5339\\u914d\\u6a21\\u5f0f\\uff01\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"\\u65e0\\u6cd5\\u83b7\\u53d6\\u540d\\u4e3a {0} \\u7684\\u53d8\\u91cf\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"\\u9519\\u8bef\\uff01\\u672a\\u77e5\\u64cd\\u4f5c\\u7801\\uff1a{0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"\\u989d\\u5916\\u7684\\u975e\\u6cd5\\u6807\\u8bb0\\uff1a{0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"\\u9519\\u8bef\\u5f15\\u7528\\u7684\\u6587\\u5b57... \\u671f\\u671b\\u4e3a\\u53cc\\u5f15\\u53f7\\uff01\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"\\u9519\\u8bef\\u5f15\\u7528\\u7684\\u6587\\u5b57... \\u671f\\u671b\\u4e3a\\u5355\\u5f15\\u53f7\\uff01\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"\\u7a7a\\u8868\\u8fbe\\u5f0f\\uff01\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"\\u671f\\u671b {0}\\uff0c\\u4f46\\u627e\\u5230\\u4e86\\uff1a{1}\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"\\u7a0b\\u5e8f\\u5458\\u7684\\u65ad\\u5b9a\\u4e0d\\u6b63\\u786e\\uff01\\u2015 {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"19990709 XPath \\u8349\\u7a3f\\u4e2d\\uff0c\\u5e03\\u5c14\\uff08...\\uff09\\u81ea\\u53d8\\u91cf\\u4e0d\\u518d\\u662f\\u53ef\\u9009\\u7684\\u4e86\\u3002\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"\\u5df2\\u627e\\u5230\\u201c\\uff0c\\u201d\\u4f46\\u524d\\u9762\\u6ca1\\u6709\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"\\u5df2\\u627e\\u5230\\u201c\\uff0c\\u201d\\u4f46\\u540e\\u9762\\u6ca1\\u6709\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"\\u201c..[predicate]\\u201d\\u6216\\u201c.[predicate]\\u201d\\u662f\\u975e\\u6cd5\\u7684\\u8bed\\u6cd5\\u3002\\u8bf7\\u6539\\u4e3a\\u4f7f\\u7528\\u201cself::node()[predicate]\\u201d\\u3002\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"\\u975e\\u6cd5\\u7684\\u8f74\\u540d\\u79f0\\uff1a{0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"\\u672a\\u77e5\\u8282\\u70b9\\u7c7b\\u578b\\uff1a{0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"\\u9700\\u8981\\u5f15\\u7528\\u6a21\\u5f0f\\u6587\\u5b57\\uff08{0}\\uff09\\uff01\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"{0} \\u65e0\\u6cd5\\u683c\\u5f0f\\u5316\\u4e3a\\u6570\\u5b57\\uff01\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"\\u65e0\\u6cd5\\u521b\\u5efa XML TransformerFactory \\u8054\\u7cfb\\uff1a{0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"\\u9519\\u8bef\\uff01\\u627e\\u4e0d\\u5230 xpath \\u9009\\u62e9\\u8868\\u8fbe\\u5f0f\\uff08-select\\uff09\\u3002\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"\\u9519\\u8bef\\uff01\\u5728 OP_LOCATIONPATH \\u4e4b\\u540e\\u627e\\u4e0d\\u5230 ENDOP\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"\\u51fa\\u73b0\\u9519\\u8bef\\uff01\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"\\u5c06 VariableReference \\u8d4b\\u7ed9\\u4e0a\\u4e0b\\u6587\\u5916\\u7684\\u53d8\\u91cf\\u6216\\u6ca1\\u6709\\u5b9a\\u4e49\\u7684\\u53d8\\u91cf\\uff01\\u540d\\u79f0 = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"\\u5728\\u5339\\u914d\\u6a21\\u5f0f\\u4e2d\\u53ea\\u5141\\u8bb8 child:: \\u548c attribute:: \\u8f74\\uff01\\u8fdd\\u53cd\\u7684\\u8f74 = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"key() \\u7684\\u81ea\\u53d8\\u91cf\\u4e2a\\u6570\\u4e0d\\u6b63\\u786e\\u3002\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"count \\u51fd\\u6570\\u5e94\\u8be5\\u6709\\u4e00\\u4e2a\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"\\u627e\\u4e0d\\u5230\\u51fd\\u6570\\uff1a{0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"\\u4e0d\\u53d7\\u652f\\u6301\\u7684\\u7f16\\u7801\\uff1a{0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"getNextSibling \\u8fc7\\u7a0b\\u4e2d\\uff0cDTM \\u4e2d\\u51fa\\u73b0\\u95ee\\u9898...\\u6b63\\u5728\\u5c1d\\u8bd5\\u6062\\u590d\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"\\u7a0b\\u5e8f\\u5458\\u9519\\u8bef\\uff1aEmptyNodeList \\u4e0d\\u53ef\\u5199\\u3002\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"XPathContext \\u4e0d\\u652f\\u6301 setDOMFactory\\uff01\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"\\u524d\\u7f00\\u5fc5\\u987b\\u89e3\\u6790\\u4e3a\\u540d\\u79f0\\u7a7a\\u95f4\\uff1a{0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"XPathContext \\u4e2d\\u4e0d\\u652f\\u6301 parse (InputSource source)\\uff01\\u65e0\\u6cd5\\u6253\\u5f00 {0}\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"DTM \\u4e0d\\u5904\\u7406 SAX API characters(char ch[]...\\uff01\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"DTM \\u4e0d\\u5904\\u7406 ignorableWhitespace(char ch[]...\\uff01\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison \\u4e0d\\u80fd\\u5904\\u7406\\u7c7b\\u578b {0} \\u7684\\u8282\\u70b9\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper \\u4e0d\\u80fd\\u5904\\u7406\\u7c7b\\u578b {0} \\u7684\\u8282\\u70b9\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"DOM2Helper.parse \\u9519\\u8bef\\uff1aSystemID \\uff0d \\u7b2c {0} \\u884c \\uff0d {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"DOM2Helper.parse \\u9519\\u8bef\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"\\u68c0\\u6d4b\\u5230\\u65e0\\u6548\\u7684 UTF-16 \\u66ff\\u4ee3\\u8005\\uff1a{0}\\uff1f\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"IO \\u9519\\u8bef\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"\\u65e0\\u6cd5\\u4e3a {0} \\u521b\\u5efa URL\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"\\u5728 XPath.readObject \\u4e2d\\uff1a{0}\"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\u627e\\u4e0d\\u5230\\u51fd\\u6570\\u4ee4\\u724c\\u3002\"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"\\u65e0\\u6cd5\\u5904\\u7406 XPath \\u7c7b\\u578b\\uff1a{0}\"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"\\u6b64 NodeSet \\u662f\\u4e0d\\u6613\\u53d8\\u7684\"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"\\u6b64 NodeSetDTM \\u662f\\u4e0d\\u6613\\u53d8\\u7684\"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"\\u53d8\\u91cf\\u4e0d\\u53ef\\u89e3\\u6790\\uff1a{0}\"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"\\u9519\\u8bef\\u5904\\u7406\\u7a0b\\u5e8f\\u4e3a\\u7a7a\"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"\\u7a0b\\u5e8f\\u5458\\u65ad\\u8a00\\uff1a\\u672a\\u77e5\\u64cd\\u4f5c\\u7801\\uff1a{0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 \\u6216 1\"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"XRTreeFragSelectWrapper \\u4e0d\\u652f\\u6301 rtf()\"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"XRTreeFragSelectWrapper \\u4e0d\\u652f\\u6301 asNodeIterator()\"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"XStringForChars \\u4e0d\\u652f\\u6301 fsb()\"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"\\u627e\\u4e0d\\u5230\\u540d\\u4e3a {0} \\u7684\\u53d8\\u91cf\"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"XStringForChars \\u65e0\\u6cd5\\u5c06\\u5b57\\u7b26\\u4e32\\u4f5c\\u4e3a\\u81ea\\u53d8\\u91cf\"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"FastStringBuffer \\u81ea\\u53d8\\u91cf\\u4e0d\\u80fd\\u4e3a\\u7a7a\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 \\u6216 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"\\u5728\\u7ed1\\u5b9a\\u524d\\u5df2\\u8bbf\\u95ee\\u53d8\\u91cf\\uff01\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"XStringForFSB \\u65e0\\u6cd5\\u5c06\\u5b57\\u7b26\\u4e32\\u4f5c\\u4e3a\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n \\uff01\\uff01\\uff01\\uff01\\u9519\\u8bef\\uff01\\u6b63\\u5728\\u5c06\\u6b65\\u884c\\u7a0b\\u5e8f\\u7684\\u6839\\u8bbe\\u7f6e\\u4e3a\\u7a7a\\uff01\\uff01\\uff01\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"\\u6b64 NodeSetDTM \\u65e0\\u6cd5\\u8fed\\u4ee3\\u5230\\u5148\\u524d\\u7684\\u8282\\u70b9\\uff01\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"\\u6b64 NodeSet \\u65e0\\u6cd5\\u8fed\\u4ee3\\u5230\\u5148\\u524d\\u7684\\u8282\\u70b9\\uff01\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"\\u6b64 NodeSetDTM \\u65e0\\u6cd5\\u6267\\u884c\\u7d22\\u5f15\\u6216\\u8ba1\\u6570\\u529f\\u80fd\\uff01\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"\\u6b64 NodeSet \\u65e0\\u6cd5\\u6267\\u884c\\u7d22\\u5f15\\u6216\\u8ba1\\u6570\\u529f\\u80fd\\uff01\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"\\u5df2\\u7ecf\\u8c03\\u7528 nextNode \\u540e\\u65e0\\u6cd5\\u8c03\\u7528 setShouldCacheNodes\\uff01\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"{0} \\u4ec5\\u5141\\u8bb8 {1} \\u4e2a\\u81ea\\u53d8\\u91cf\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"\\u7a0b\\u5e8f\\u5458\\u5728 getNextStepPos \\u4e2d\\u7684\\u65ad\\u8a00\\uff1a\\u672a\\u77e5\\u7684 stepType\\uff1a{0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"\\u671f\\u671b\\u51fa\\u73b0\\u4f4d\\u7f6e\\u8def\\u5f84\\uff0c\\u4f46\\u9047\\u5230\\u4ee5\\u4e0b\\u6807\\u8bb0\\u003a{0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"\\u671f\\u671b\\u51fa\\u73b0\\u4e0e NCName:* \\u6216 QName \\u5339\\u914d\\u7684\\u8282\\u70b9\\u6d4b\\u8bd5\\u3002\"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"\\u671f\\u671b\\u51fa\\u73b0\\u6b65\\u9aa4\\u6a21\\u5f0f\\uff0c\\u4f46\\u9047\\u5230\\u4e86\\u201c/\\u201d\\u3002\"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"\\u671f\\u671b\\u51fa\\u73b0\\u76f8\\u5bf9\\u8def\\u5f84\\u6a21\\u5f0f\\u3002\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210\\u5e03\\u5c14\\u578b\\u3002\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210\\u5355\\u8282\\u70b9\\u3002\\u6b64\\u83b7\\u53d6\\u65b9\\u6cd5\\u5e94\\u7528\\u4e8e\\u7c7b\\u578b ANY_UNORDERED_NODE_TYPE \\u548c FIRST_ORDERED_NODE_TYPE\\u3002\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"\\u65e0\\u6cd5\\u5728\\u7c7b\\u578b {0} \\u4e0a\\u83b7\\u53d6\\u5feb\\u7167\\u957f\\u5ea6\\u3002\\u6b64\\u83b7\\u53d6\\u65b9\\u6cd5\\u5e94\\u7528\\u4e8e\\u7c7b\\u578b UNORDERED_NODE_SNAPSHOT_TYPE \\u548c ORDERED_NODE_SNAPSHOT_TYPE\\u3002\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"\\u65e0\\u6cd5\\u5bf9\\u975e\\u8fed\\u4ee3\\u7c7b\\u578b {0} \\u8fdb\\u884c\\u8fed\\u4ee3\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"\\u8fd4\\u56de\\u7ed3\\u679c\\u540e\\u6587\\u6863\\u53d1\\u751f\\u53d8\\u5316\\u3002\\u8fed\\u4ee3\\u5668\\u65e0\\u6548\\u3002\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"\\u65e0\\u6548\\u7684 XPath \\u7c7b\\u578b\\u81ea\\u53d8\\u91cf\\uff1a{0}\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"\\u7a7a\\u7684 XPath \\u7ed3\\u679c\\u5bf9\\u8c61\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"\\u8fd4\\u56de\\u7c7b\\u578b {0} \\u65e0\\u6cd5\\u5f3a\\u5236\\u8f6c\\u6362\\u4e3a\\u6307\\u5b9a\\u7684\\u7c7b\\u578b\\uff1a{1}\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"\\u65e0\\u6cd5\\u4f7f\\u7528\\u7a7a\\u524d\\u7f00\\u89e3\\u6790\\u5668\\u89e3\\u6790\\u524d\\u7f00\\u3002\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210\\u5b57\\u7b26\\u4e32\\u3002\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"\\u65e0\\u6cd5\\u5728\\u7c7b\\u578b {0} \\u4e0a\\u8c03\\u7528 snapshotItem\\u3002\\u6b64\\u65b9\\u6cd5\\u5e94\\u7528\\u4e8e\\u7c7b\\u578b UNORDERED_NODE_SNAPSHOT_TYPE \\u548c ORDERED_NODE_SNAPSHOT_TYPE\\u3002\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"\\u4e0a\\u4e0b\\u6587\\u8282\\u70b9\\u4e0d\\u5c5e\\u4e8e\\u7ed1\\u5b9a\\u5230\\u6b64 XPathEvaluator \\u7684\\u6587\\u6863\\u3002\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"\\u4e0d\\u652f\\u6301\\u4e0a\\u4e0b\\u6587\\u8282\\u70b9\\u7c7b\\u578b\\u3002\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"XPath \\u672a\\u77e5\\u9519\\u8bef\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"format-number \\u51fd\\u6570\\u4e2d\\u672a\\u5904\\u7406\\u8fc7\\u7684\\u8bed\\u8a00\\u73af\\u5883\\u540d\\uff01\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301 XSL \\u5c5e\\u6027\\uff1a{0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"\\u5f53\\u524d\\u4e0d\\u8981\\u5728\\u5c5e\\u6027 {1} \\u4e2d\\u5bf9\\u540d\\u79f0\\u7a7a\\u95f4 {0} \\u8fdb\\u884c\\u4efb\\u4f55\\u5904\\u7406\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"\\u5728\\u8bd5\\u56fe\\u8bbf\\u95ee XSL \\u7cfb\\u7edf\\u5c5e\\u6027 {0} \\u65f6\\u53d1\\u751f SecurityException \\u5f02\\u5e38\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"XPath \\u4e2d\\u4e0d\\u518d\\u5b9a\\u4e49\\u65e7\\u8bed\\u6cd5\\uff1aquo(...)\\u3002\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"XPath \\u9700\\u8981\\u4e00\\u4e2a\\u6d3e\\u751f\\u7684\\u5bf9\\u8c61\\u4ee5\\u5b9e\\u73b0 nodeTest\\uff01\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\u627e\\u4e0d\\u5230\\u51fd\\u6570\\u4ee4\\u724c\\u3002\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"\\u627e\\u4e0d\\u5230\\u51fd\\u6570\\uff1a{0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"\\u65e0\\u6cd5\\u4ece {0} \\u751f\\u6210 URL\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"DTM \\u89e3\\u6790\\u5668\\u4e0d\\u652f\\u6301 -E \\u9009\\u9879\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"\\u5c06 VariableReference \\u8d4b\\u7ed9\\u4e0a\\u4e0b\\u6587\\u5916\\u7684\\u53d8\\u91cf\\u6216\\u6ca1\\u6709\\u5b9a\\u4e49\\u7684\\u53d8\\u91cf\\uff01\\u540d\\u79f0 = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"\\u4e0d\\u53d7\\u652f\\u6301\\u7684\\u7f16\\u7801\\uff1a{0}\"},\n\n\n\n  { \"ui_language\", \"zh\"},\n  { \"help_language\", \"zh\"},\n  { \"language\", \"zh\"},\n  { \"BAD_CODE\", \"createMessage \\u7684\\u53c2\\u6570\\u8d85\\u51fa\\u8303\\u56f4\"},\n  { \"FORMAT_FAILED\", \"\\u5728 messageFormat \\u8c03\\u7528\\u8fc7\\u7a0b\\u4e2d\\u629b\\u51fa\\u7684\\u5f02\\u5e38\"},\n  { \"version\", \">>>>>>> Xalan \\u7248\\u672c\"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"\\u662f\"},\n  { \"line\", \"\\u884c\\u53f7\"},\n  { \"column\", \"\\u5217\\u53f7\"},\n  { \"xsldone\", \"XSLProcessor\\uff1a\\u5b8c\\u6210\"},\n  { \"xpath_option\", \"xpath \\u9009\\u9879\\uff1a\"},\n  { \"optionIN\", \"[-in inputXMLURL]\"},\n  { \"optionSelect\", \"[-select xpath \\u8868\\u8fbe\\u5f0f]\"},\n  { \"optionMatch\", \"[-match \\u5339\\u914d\\u6a21\\u5f0f\\uff08\\u7528\\u4e8e\\u5339\\u914d\\u8bca\\u65ad\\uff09]\"},\n  { \"optionAnyExpr\", \"\\u6216\\u8005\\u4ec5\\u4e00\\u4e2a xpath \\u8868\\u8fbe\\u5f0f\\u5c31\\u5c06\\u5b8c\\u6210\\u4e00\\u4e2a\\u8bca\\u65ad\\u8f6c\\u50a8\"},\n  { \"noParsermsg1\", \"XSL \\u5904\\u7406\\u4e0d\\u6210\\u529f\\u3002\"},\n  { \"noParsermsg2\", \"** \\u627e\\u4e0d\\u5230\\u89e3\\u6790\\u5668 **\"},\n  { \"noParsermsg3\", \"\\u8bf7\\u68c0\\u67e5\\u60a8\\u7684\\u7c7b\\u8def\\u5f84\\u3002\"},\n  { \"noParsermsg4\", \"\\u5982\\u679c\\u6ca1\\u6709 IBM \\u7684 XML Parser for Java\\uff0c\\u60a8\\u53ef\\u4ee5\\u4ece\\u4ee5\\u4e0b\\u4f4d\\u7f6e\\u4e0b\\u8f7d\\u5b83\\uff1a\"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }\n\n  };\n  }\n\n\n\n  /** Field BAD_CODE          */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** Field FORMAT_FAILED          */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** Field ERROR_RESOURCES          */\n  public static final String ERROR_RESOURCES =\n    \"org.apache.xpath.res.XPATHErrorResources\";\n\n  /** Field ERROR_STRING          */\n  public static final String ERROR_STRING = \"#\\u9519\\u8bef\";\n\n  /** Field ERROR_HEADER          */\n  public static final String ERROR_HEADER = \"\\u9519\\u8bef:\";\n\n  /** Field WARNING_HEADER          */\n  public static final String WARNING_HEADER = \"\\u8b66\\u544a:\";\n\n  /** Field XSL_HEADER          */\n  public static final String XSL_HEADER = \"XSL \";\n\n  /** Field XML_HEADER          */\n  public static final String XML_HEADER = \"XML \";\n\n  /** Field QUERY_HEADER          */\n  public static final String QUERY_HEADER = \"PATTERN \";\n\n\n  /**\n   * Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   * of ResourceBundle.getBundle().\n   *\n   * @param className Name of local-specific subclass.\n   * @return the ResourceBundle\n   * @throws MissingResourceException\n   */\n  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"zh\", \"CN\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"\\u65e0\\u6cd5\\u88c5\\u5165\\u4efb\\u4f55\\u8d44\\u6e90\\u5305\\u3002\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return new Object[][]{\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"\\u5339\\u914d\\u6a21\\u5f0f\\u4e2d\\u4e0d\\u5141\\u8bb8\\u51fa\\u73b0 current() \\u51fd\\u6570\\uff01\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"current() \\u51fd\\u6570\\u4e0d\\u63a5\\u53d7\\u81ea\\u53d8\\u91cf\\uff01\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"document() \\u51fd\\u6570\\u5b9e\\u73b0\\u5df2\\u88ab org.apache.xalan.xslt.FuncDocument \\u66ff\\u6362\\uff01\"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"\\u4e0a\\u4e0b\\u6587\\u6ca1\\u6709\\u6240\\u6709\\u8005\\u6587\\u6863\\uff01\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"local-name() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"namespace-uri() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"normalize-space() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"number() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"name() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"string() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"string-length() \\u7684\\u81ea\\u53d8\\u91cf\\u592a\\u591a\\u3002\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"translate() \\u51fd\\u6570\\u6709\\u4e09\\u4e2a\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"unparsed-entity-uri \\u51fd\\u6570\\u5e94\\u6709\\u4e00\\u4e2a\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"\\u540d\\u79f0\\u7a7a\\u95f4\\u8f74\\u5c1a\\u672a\\u5b9e\\u73b0\\uff01\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"\\u672a\\u77e5\\u8f74\\uff1a{0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"\\u672a\\u77e5\\u7684\\u5339\\u914d\\u64cd\\u4f5c\\uff01\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"processing-instruction() \\u8282\\u70b9\\u6d4b\\u8bd5\\u7684\\u81ea\\u53d8\\u91cf\\u957f\\u5ea6\\u4e0d\\u6b63\\u786e\\uff01\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210\\u6570\\u5b57\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210 NodeList\\uff01\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210 NodeSetDTM\\uff01\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210 type#{1}\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"getMatchScore \\u4e2d\\u671f\\u671b\\u7684\\u5339\\u914d\\u6a21\\u5f0f\\uff01\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"\\u65e0\\u6cd5\\u83b7\\u53d6\\u540d\\u4e3a {0} \\u7684\\u53d8\\u91cf\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"\\u9519\\u8bef\\uff01\\u672a\\u77e5\\u64cd\\u4f5c\\u7801\\uff1a{0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"\\u989d\\u5916\\u7684\\u975e\\u6cd5\\u6807\\u8bb0\\uff1a{0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"\\u9519\\u8bef\\u5f15\\u7528\\u7684\\u6587\\u5b57... \\u671f\\u671b\\u4e3a\\u53cc\\u5f15\\u53f7\\uff01\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"\\u9519\\u8bef\\u5f15\\u7528\\u7684\\u6587\\u5b57... \\u671f\\u671b\\u4e3a\\u5355\\u5f15\\u53f7\\uff01\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"\\u7a7a\\u8868\\u8fbe\\u5f0f\\uff01\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"\\u671f\\u671b {0}\\uff0c\\u4f46\\u627e\\u5230\\u4e86\\uff1a{1}\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"\\u7a0b\\u5e8f\\u5458\\u7684\\u65ad\\u5b9a\\u4e0d\\u6b63\\u786e\\uff01\\u2015 {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"19990709 XPath \\u8349\\u7a3f\\u4e2d\\uff0c\\u5e03\\u5c14\\uff08...\\uff09\\u81ea\\u53d8\\u91cf\\u4e0d\\u518d\\u662f\\u53ef\\u9009\\u7684\\u4e86\\u3002\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"\\u5df2\\u627e\\u5230\\u201c\\uff0c\\u201d\\u4f46\\u524d\\u9762\\u6ca1\\u6709\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"\\u5df2\\u627e\\u5230\\u201c\\uff0c\\u201d\\u4f46\\u540e\\u9762\\u6ca1\\u6709\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"\\u201c..[predicate]\\u201d\\u6216\\u201c.[predicate]\\u201d\\u662f\\u975e\\u6cd5\\u7684\\u8bed\\u6cd5\\u3002\\u8bf7\\u6539\\u4e3a\\u4f7f\\u7528\\u201cself::node()[predicate]\\u201d\\u3002\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"\\u975e\\u6cd5\\u7684\\u8f74\\u540d\\u79f0\\uff1a{0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"\\u672a\\u77e5\\u8282\\u70b9\\u7c7b\\u578b\\uff1a{0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"\\u9700\\u8981\\u5f15\\u7528\\u6a21\\u5f0f\\u6587\\u5b57\\uff08{0}\\uff09\\uff01\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"{0} \\u65e0\\u6cd5\\u683c\\u5f0f\\u5316\\u4e3a\\u6570\\u5b57\\uff01\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"\\u65e0\\u6cd5\\u521b\\u5efa XML TransformerFactory \\u8054\\u7cfb\\uff1a{0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"\\u9519\\u8bef\\uff01\\u627e\\u4e0d\\u5230 xpath \\u9009\\u62e9\\u8868\\u8fbe\\u5f0f\\uff08-select\\uff09\\u3002\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"\\u9519\\u8bef\\uff01\\u5728 OP_LOCATIONPATH \\u4e4b\\u540e\\u627e\\u4e0d\\u5230 ENDOP\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"\\u51fa\\u73b0\\u9519\\u8bef\\uff01\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"\\u5c06 VariableReference \\u8d4b\\u7ed9\\u4e0a\\u4e0b\\u6587\\u5916\\u7684\\u53d8\\u91cf\\u6216\\u6ca1\\u6709\\u5b9a\\u4e49\\u7684\\u53d8\\u91cf\\uff01\\u540d\\u79f0 = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"\\u5728\\u5339\\u914d\\u6a21\\u5f0f\\u4e2d\\u53ea\\u5141\\u8bb8 child:: \\u548c attribute:: \\u8f74\\uff01\\u8fdd\\u53cd\\u7684\\u8f74 = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"key() \\u7684\\u81ea\\u53d8\\u91cf\\u4e2a\\u6570\\u4e0d\\u6b63\\u786e\\u3002\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"count \\u51fd\\u6570\\u5e94\\u8be5\\u6709\\u4e00\\u4e2a\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"\\u627e\\u4e0d\\u5230\\u51fd\\u6570\\uff1a{0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"\\u4e0d\\u53d7\\u652f\\u6301\\u7684\\u7f16\\u7801\\uff1a{0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"getNextSibling \\u8fc7\\u7a0b\\u4e2d\\uff0cDTM \\u4e2d\\u51fa\\u73b0\\u95ee\\u9898...\\u6b63\\u5728\\u5c1d\\u8bd5\\u6062\\u590d\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"\\u7a0b\\u5e8f\\u5458\\u9519\\u8bef\\uff1aEmptyNodeList \\u4e0d\\u53ef\\u5199\\u3002\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"XPathContext \\u4e0d\\u652f\\u6301 setDOMFactory\\uff01\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"\\u524d\\u7f00\\u5fc5\\u987b\\u89e3\\u6790\\u4e3a\\u540d\\u79f0\\u7a7a\\u95f4\\uff1a{0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"XPathContext \\u4e2d\\u4e0d\\u652f\\u6301 parse (InputSource source)\\uff01\\u65e0\\u6cd5\\u6253\\u5f00 {0}\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"DTM \\u4e0d\\u5904\\u7406 SAX API characters(char ch[]...\\uff01\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"DTM \\u4e0d\\u5904\\u7406 ignorableWhitespace(char ch[]...\\uff01\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison \\u4e0d\\u80fd\\u5904\\u7406\\u7c7b\\u578b {0} \\u7684\\u8282\\u70b9\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper \\u4e0d\\u80fd\\u5904\\u7406\\u7c7b\\u578b {0} \\u7684\\u8282\\u70b9\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"DOM2Helper.parse \\u9519\\u8bef\\uff1aSystemID \\uff0d \\u7b2c {0} \\u884c \\uff0d {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"DOM2Helper.parse \\u9519\\u8bef\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"\\u68c0\\u6d4b\\u5230\\u65e0\\u6548\\u7684 UTF-16 \\u66ff\\u4ee3\\u8005\\uff1a{0}\\uff1f\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"IO \\u9519\\u8bef\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"\\u65e0\\u6cd5\\u4e3a {0} \\u521b\\u5efa URL\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"\\u5728 XPath.readObject \\u4e2d\\uff1a{0}\"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\u627e\\u4e0d\\u5230\\u51fd\\u6570\\u4ee4\\u724c\\u3002\"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"\\u65e0\\u6cd5\\u5904\\u7406 XPath \\u7c7b\\u578b\\uff1a{0}\"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"\\u6b64 NodeSet \\u662f\\u4e0d\\u6613\\u53d8\\u7684\"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"\\u6b64 NodeSetDTM \\u662f\\u4e0d\\u6613\\u53d8\\u7684\"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"\\u53d8\\u91cf\\u4e0d\\u53ef\\u89e3\\u6790\\uff1a{0}\"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"\\u9519\\u8bef\\u5904\\u7406\\u7a0b\\u5e8f\\u4e3a\\u7a7a\"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"\\u7a0b\\u5e8f\\u5458\\u65ad\\u8a00\\uff1a\\u672a\\u77e5\\u64cd\\u4f5c\\u7801\\uff1a{0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 \\u6216 1\"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"XRTreeFragSelectWrapper \\u4e0d\\u652f\\u6301 rtf()\"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"XRTreeFragSelectWrapper \\u4e0d\\u652f\\u6301 asNodeIterator()\"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"XStringForChars \\u4e0d\\u652f\\u6301 fsb()\"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"\\u627e\\u4e0d\\u5230\\u540d\\u4e3a {0} \\u7684\\u53d8\\u91cf\"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"XStringForChars \\u65e0\\u6cd5\\u5c06\\u5b57\\u7b26\\u4e32\\u4f5c\\u4e3a\\u81ea\\u53d8\\u91cf\"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"FastStringBuffer \\u81ea\\u53d8\\u91cf\\u4e0d\\u80fd\\u4e3a\\u7a7a\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 \\u6216 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"\\u5728\\u7ed1\\u5b9a\\u524d\\u5df2\\u8bbf\\u95ee\\u53d8\\u91cf\\uff01\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"XStringForFSB \\u65e0\\u6cd5\\u5c06\\u5b57\\u7b26\\u4e32\\u4f5c\\u4e3a\\u81ea\\u53d8\\u91cf\\uff01\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n \\uff01\\uff01\\uff01\\uff01\\u9519\\u8bef\\uff01\\u6b63\\u5728\\u5c06\\u6b65\\u884c\\u7a0b\\u5e8f\\u7684\\u6839\\u8bbe\\u7f6e\\u4e3a\\u7a7a\\uff01\\uff01\\uff01\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"\\u6b64 NodeSetDTM \\u65e0\\u6cd5\\u8fed\\u4ee3\\u5230\\u5148\\u524d\\u7684\\u8282\\u70b9\\uff01\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"\\u6b64 NodeSet \\u65e0\\u6cd5\\u8fed\\u4ee3\\u5230\\u5148\\u524d\\u7684\\u8282\\u70b9\\uff01\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"\\u6b64 NodeSetDTM \\u65e0\\u6cd5\\u6267\\u884c\\u7d22\\u5f15\\u6216\\u8ba1\\u6570\\u529f\\u80fd\\uff01\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"\\u6b64 NodeSet \\u65e0\\u6cd5\\u6267\\u884c\\u7d22\\u5f15\\u6216\\u8ba1\\u6570\\u529f\\u80fd\\uff01\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"\\u5df2\\u7ecf\\u8c03\\u7528 nextNode \\u540e\\u65e0\\u6cd5\\u8c03\\u7528 setShouldCacheNodes\\uff01\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"{0} \\u4ec5\\u5141\\u8bb8 {1} \\u4e2a\\u81ea\\u53d8\\u91cf\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"\\u7a0b\\u5e8f\\u5458\\u5728 getNextStepPos \\u4e2d\\u7684\\u65ad\\u8a00\\uff1a\\u672a\\u77e5\\u7684 stepType\\uff1a{0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"\\u671f\\u671b\\u51fa\\u73b0\\u4f4d\\u7f6e\\u8def\\u5f84\\uff0c\\u4f46\\u9047\\u5230\\u4ee5\\u4e0b\\u6807\\u8bb0\\u003a{0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"\\u671f\\u671b\\u51fa\\u73b0\\u4e0e NCName:* \\u6216 QName \\u5339\\u914d\\u7684\\u8282\\u70b9\\u6d4b\\u8bd5\\u3002\"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"\\u671f\\u671b\\u51fa\\u73b0\\u6b65\\u9aa4\\u6a21\\u5f0f\\uff0c\\u4f46\\u9047\\u5230\\u4e86\\u201c/\\u201d\\u3002\"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"\\u671f\\u671b\\u51fa\\u73b0\\u76f8\\u5bf9\\u8def\\u5f84\\u6a21\\u5f0f\\u3002\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210\\u5e03\\u5c14\\u578b\\u3002\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210\\u5355\\u8282\\u70b9\\u3002\\u6b64\\u83b7\\u53d6\\u65b9\\u6cd5\\u5e94\\u7528\\u4e8e\\u7c7b\\u578b ANY_UNORDERED_NODE_TYPE \\u548c FIRST_ORDERED_NODE_TYPE\\u3002\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"\\u65e0\\u6cd5\\u5728\\u7c7b\\u578b {0} \\u4e0a\\u83b7\\u53d6\\u5feb\\u7167\\u957f\\u5ea6\\u3002\\u6b64\\u83b7\\u53d6\\u65b9\\u6cd5\\u5e94\\u7528\\u4e8e\\u7c7b\\u578b UNORDERED_NODE_SNAPSHOT_TYPE \\u548c ORDERED_NODE_SNAPSHOT_TYPE\\u3002\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"\\u65e0\\u6cd5\\u5bf9\\u975e\\u8fed\\u4ee3\\u7c7b\\u578b {0} \\u8fdb\\u884c\\u8fed\\u4ee3\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"\\u8fd4\\u56de\\u7ed3\\u679c\\u540e\\u6587\\u6863\\u53d1\\u751f\\u53d8\\u5316\\u3002\\u8fed\\u4ee3\\u5668\\u65e0\\u6548\\u3002\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"\\u65e0\\u6548\\u7684 XPath \\u7c7b\\u578b\\u81ea\\u53d8\\u91cf\\uff1a{0}\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"\\u7a7a\\u7684 XPath \\u7ed3\\u679c\\u5bf9\\u8c61\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"\\u8fd4\\u56de\\u7c7b\\u578b {0} \\u65e0\\u6cd5\\u5f3a\\u5236\\u8f6c\\u6362\\u4e3a\\u6307\\u5b9a\\u7684\\u7c7b\\u578b\\uff1a{1}\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"\\u65e0\\u6cd5\\u4f7f\\u7528\\u7a7a\\u524d\\u7f00\\u89e3\\u6790\\u5668\\u89e3\\u6790\\u524d\\u7f00\\u3002\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"\\u65e0\\u6cd5\\u5c06 {0} \\u8f6c\\u6362\\u6210\\u5b57\\u7b26\\u4e32\\u3002\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"\\u65e0\\u6cd5\\u5728\\u7c7b\\u578b {0} \\u4e0a\\u8c03\\u7528 snapshotItem\\u3002\\u6b64\\u65b9\\u6cd5\\u5e94\\u7528\\u4e8e\\u7c7b\\u578b UNORDERED_NODE_SNAPSHOT_TYPE \\u548c ORDERED_NODE_SNAPSHOT_TYPE\\u3002\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"\\u4e0a\\u4e0b\\u6587\\u8282\\u70b9\\u4e0d\\u5c5e\\u4e8e\\u7ed1\\u5b9a\\u5230\\u6b64 XPathEvaluator \\u7684\\u6587\\u6863\\u3002\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"\\u4e0d\\u652f\\u6301\\u4e0a\\u4e0b\\u6587\\u8282\\u70b9\\u7c7b\\u578b\\u3002\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"XPath \\u672a\\u77e5\\u9519\\u8bef\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"format-number \\u51fd\\u6570\\u4e2d\\u672a\\u5904\\u7406\\u8fc7\\u7684\\u8bed\\u8a00\\u73af\\u5883\\u540d\\uff01\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301 XSL \\u5c5e\\u6027\\uff1a{0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"\\u5f53\\u524d\\u4e0d\\u8981\\u5728\\u5c5e\\u6027 {1} \\u4e2d\\u5bf9\\u540d\\u79f0\\u7a7a\\u95f4 {0} \\u8fdb\\u884c\\u4efb\\u4f55\\u5904\\u7406\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"\\u5728\\u8bd5\\u56fe\\u8bbf\\u95ee XSL \\u7cfb\\u7edf\\u5c5e\\u6027 {0} \\u65f6\\u53d1\\u751f SecurityException \\u5f02\\u5e38\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"XPath \\u4e2d\\u4e0d\\u518d\\u5b9a\\u4e49\\u65e7\\u8bed\\u6cd5\\uff1aquo(...)\\u3002\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"XPath \\u9700\\u8981\\u4e00\\u4e2a\\u6d3e\\u751f\\u7684\\u5bf9\\u8c61\\u4ee5\\u5b9e\\u73b0 nodeTest\\uff01\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\u627e\\u4e0d\\u5230\\u51fd\\u6570\\u4ee4\\u724c\\u3002\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"\\u627e\\u4e0d\\u5230\\u51fd\\u6570\\uff1a{0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"\\u65e0\\u6cd5\\u4ece {0} \\u751f\\u6210 URL\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"DTM \\u89e3\\u6790\\u5668\\u4e0d\\u652f\\u6301 -E \\u9009\\u9879\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"\\u5c06 VariableReference \\u8d4b\\u7ed9\\u4e0a\\u4e0b\\u6587\\u5916\\u7684\\u53d8\\u91cf\\u6216\\u6ca1\\u6709\\u5b9a\\u4e49\\u7684\\u53d8\\u91cf\\uff01\\u540d\\u79f0 = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"\\u4e0d\\u53d7\\u652f\\u6301\\u7684\\u7f16\\u7801\\uff1a{0}\"},\n\n\n\n  { \"ui_language\", \"zh\"},\n  { \"help_language\", \"zh\"},\n  { \"language\", \"zh\"},\n  { \"BAD_CODE\", \"createMessage \\u7684\\u53c2\\u6570\\u8d85\\u51fa\\u8303\\u56f4\"},\n  { \"FORMAT_FAILED\", \"\\u5728 messageFormat \\u8c03\\u7528\\u8fc7\\u7a0b\\u4e2d\\u629b\\u51fa\\u7684\\u5f02\\u5e38\"},\n  { \"version\", \">>>>>>> Xalan \\u7248\\u672c\"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"\\u662f\"},\n  { \"line\", \"\\u884c\\u53f7\"},\n  { \"column\", \"\\u5217\\u53f7\"},\n  { \"xsldone\", \"XSLProcessor\\uff1a\\u5b8c\\u6210\"},\n  { \"xpath_option\", \"xpath \\u9009\\u9879\\uff1a\"},\n  { \"optionIN\", \"[-in inputXMLURL]\"},\n  { \"optionSelect\", \"[-select xpath \\u8868\\u8fbe\\u5f0f]\"},\n  { \"optionMatch\", \"[-match \\u5339\\u914d\\u6a21\\u5f0f\\uff08\\u7528\\u4e8e\\u5339\\u914d\\u8bca\\u65ad\\uff09]\"},\n  { \"optionAnyExpr\", \"\\u6216\\u8005\\u4ec5\\u4e00\\u4e2a xpath \\u8868\\u8fbe\\u5f0f\\u5c31\\u5c06\\u5b8c\\u6210\\u4e00\\u4e2a\\u8bca\\u65ad\\u8f6c\\u50a8\"},\n  { \"noParsermsg1\", \"XSL \\u5904\\u7406\\u4e0d\\u6210\\u529f\\u3002\"},\n  { \"noParsermsg2\", \"** \\u627e\\u4e0d\\u5230\\u89e3\\u6790\\u5668 **\"},\n  { \"noParsermsg3\", \"\\u8bf7\\u68c0\\u67e5\\u60a8\\u7684\\u7c7b\\u8def\\u5f84\\u3002\"},\n  { \"noParsermsg4\", \"\\u5982\\u679c\\u6ca1\\u6709 IBM \\u7684 XML Parser for Java\\uff0c\\u60a8\\u53ef\\u4ee5\\u4ece\\u4ee5\\u4e0b\\u4f4d\\u7f6e\\u4e0b\\u8f7d\\u5b83\\uff1a\"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81], [1, 82], [1, 83], [1, 84], [1, 85], [1, 86], [1, 87], [1, 88], [1, 89], [1, 90], [1, 91], [1, 92], [1, 93], [1, 94], [1, 95], [1, 96], [1, 97], [1, 98], [1, 99], [1, 100], [1, 101], [1, 102], [1, 103], [1, 104], [1, 105], [1, 106], [1, 107], [1, 108], [1, 109], [1, 110], [1, 111], [1, 112], [1, 113], [1, 114], [1, 115], [1, 116], [1, 117], [1, 118], [1, 119], [1, 120], [1, 121], [1, 122], [1, 123], [1, 124], [1, 125], [1, 126], [1, 127], [1, 128], [1, 129], [1, 130], [1, 131], [1, 132], [1, 133], [1, 134], [1, 135], [1, 136], [1, 137], [1, 138], [1, 139], [1, 140], [1, 141], [1, 142], [1, 143], [1, 144], [1, 145], [1, 146], [1, 147], [1, 148], [1, 149], [1, 150], [1, 151], [1, 152], [1, 153], [1, 154], [1, 155], [1, 156], [1, 157], [1, 158], [1, 159], [1, 160], [1, 161], [1, 162], [1, 163], [1, 164], [1, 165], [1, 166], [1, 167], [1, 168], [1, 169], [1, 170], [1, 171], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [72, 1], [73, 1], [74, 1], [75, 1], [76, 1], [77, 1], [78, 1], [79, 1], [80, 1], [81, 1], [82, 1], [83, 1], [84, 1], [85, 1], [86, 1], [87, 1], [88, 1], [89, 1], [90, 1], [91, 1], [92, 1], [93, 1], [94, 1], [95, 1], [96, 1], [97, 1], [98, 1], [99, 1], [100, 1], [101, 1], [102, 1], [103, 1], [104, 1], [105, 1], [106, 1], [107, 1], [108, 1], [109, 1], [110, 1], [111, 1], [112, 1], [113, 1], [114, 1], [115, 1], [116, 1], [117, 1], [118, 1], [119, 1], [120, 1], [121, 1], [122, 1], [123, 1], [124, 1], [125, 1], [126, 1], [127, 1], [128, 1], [129, 1], [130, 1], [131, 1], [132, 1], [133, 1], [134, 1], [135, 1], [136, 1], [137, 1], [138, 1], [139, 1], [140, 1], [141, 1], [142, 1], [143, 1], [144, 1], [145, 1], [146, 1], [147, 1], [148, 1], [149, 1], [150, 1], [151, 1], [152, 1], [153, 1], [154, 1], [155, 1], [156, 1], [157, 1], [158, 1], [159, 1], [160, 1], [161, 1], [162, 1], [163, 1], [164, 1], [165, 1], [166, 1], [167, 1], [168, 1], [169, 1], [170, 1], [171, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171]]}, {"function_name": "loadResourceBundle", "code": "  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"zh\", \"CN\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"\\u65e0\\u6cd5\\u88c5\\u5165\\u4efb\\u4f55\\u8d44\\u6e90\\u5305\\u3002\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "xalan-2.5-6951", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/templates/ElemUse.java", "language": "java", "name": "org.apache.xalan.templates.ElemUse", "code": "public class ElemUse extends ElemTemplateElement\n{\n\n  /**\n   * The value of the \"use-attribute-sets\" attribute.\n   * @serial\n   */\n  private QName m_attributeSetsNames[] = null;\n\n  /**\n   * Set the \"use-attribute-sets\" attribute.\n   * Attribute sets are used by specifying a use-attribute-sets\n   * attribute on xsl:element, xsl:copy (see [7.5 Copying]) or\n   * xsl:attribute-set elements. The value of the use-attribute-sets\n   * attribute is a whitespace-separated list of names of attribute\n   * sets. Each name is specified as a QName, which is expanded as\n   * described in [2.4 Qualified Names].\n   *\n   * @param v The value to set for the \"use-attribute-sets\" attribute. \n   */\n  public void setUseAttributeSets(Vector v)\n  {\n\n    int n = v.size();\n\n    m_attributeSetsNames = new QName[n];\n\n    for (int i = 0; i < n; i++)\n    {\n      m_attributeSetsNames[i] = (QName) v.elementAt(i);\n    }\n  }\n\n  /**\n   * Set the \"use-attribute-sets\" attribute.\n   * Attribute sets are used by specifying a use-attribute-sets\n   * attribute on xsl:element, xsl:copy (see [7.5 Copying]) or\n   * xsl:attribute-set elements. The value of the use-attribute-sets\n   * attribute is a whitespace-separated list of names of attribute\n   * sets. Each name is specified as a QName, which is expanded as\n   * described in [2.4 Qualified Names].\n   *\n   * @param v The value to set for the \"use-attribute-sets\" attribute. \n   */\n  public void setUseAttributeSets(QName[] v)\n  {\n    m_attributeSetsNames = v;\n  }\n\n  /**\n   * Get the \"use-attribute-sets\" attribute.\n   * Attribute sets are used by specifying a use-attribute-sets\n   * attribute on xsl:element, xsl:copy (see [7.5 Copying]) or\n   * xsl:attribute-set elements, or a xsl:use-attribute-sets attribute on\n   * Literal Result Elements.\n   * The value of the use-attribute-sets\n   * attribute is a whitespace-separated list of names of attribute\n   * sets. Each name is specified as a QName, which is expanded as\n   * described in [2.4 Qualified Names].\n   *\n   * @return The value of the \"use-attribute-sets\" attribute. \n   */\n  public QName[] getUseAttributeSets()\n  {\n    return m_attributeSetsNames;\n  }\n  \n  /**\n   * Add the attributes from the named attribute sets to the attribute list.\n   * TODO: Error handling for: \"It is an error if there are two attribute sets\n   * with the same expanded-name and with equal import precedence and that both\n   * contain the same attribute unless there is a definition of the attribute\n   * set with higher import precedence that also contains the attribute.\"\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   * @param stylesheet The owning root stylesheet\n   * @param attributeSetsNames List of attribute sets names to apply\n   *\n   * @throws TransformerException\n   */\n  public void applyAttrSets(\n          TransformerImpl transformer, StylesheetRoot stylesheet)\n            throws TransformerException\n  {\n    applyAttrSets(transformer, stylesheet, m_attributeSetsNames);\n  }\n\n  /**\n   * Add the attributes from the named attribute sets to the attribute list.\n   * TODO: Error handling for: \"It is an error if there are two attribute sets\n   * with the same expanded-name and with equal import precedence and that both\n   * contain the same attribute unless there is a definition of the attribute\n   * set with higher import precedence that also contains the attribute.\"\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   * @param stylesheet The owning root stylesheet\n   * @param attributeSetsNames List of attribute sets names to apply\n   *\n   * @throws TransformerException\n   */\n  private void applyAttrSets(\n          TransformerImpl transformer, StylesheetRoot stylesheet, QName attributeSetsNames[])\n            throws TransformerException\n  {\n\n    if (null != attributeSetsNames)\n    {\n      int nNames = attributeSetsNames.length;\n\n      for (int i = 0; i < nNames; i++)\n      {\n        QName qname = attributeSetsNames[i];\n        Vector attrSets = stylesheet.getAttributeSetComposed(qname);\n\n        if (null != attrSets)\n        {\n          int nSets = attrSets.size();\n\n          for (int k = nSets-1; k >= 0 ; k--)\n          {\n            ElemAttributeSet attrSet =\n              (ElemAttributeSet) attrSets.elementAt(k);\n\n            attrSet.execute(transformer);\n          }\n        }\n      }\n    }\n  }\n\n  /**\n   * Copy attributes specified by use-attribute-sets to the result tree.\n   * Specifying a use-attribute-sets attribute is equivalent to adding\n   * xsl:attribute elements for each of the attributes in each of the\n   * named attribute sets to the beginning of the content of the element\n   * with the use-attribute-sets attribute, in the same order in which\n   * the names of the attribute sets are specified in the use-attribute-sets\n   * attribute. It is an error if use of use-attribute-sets attributes\n   * on xsl:attribute-set elements causes an attribute set to directly\n   * or indirectly use itself.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n    if (TransformerImpl.S_DEBUG)\n      transformer.getTraceManager().fireTraceEvent(this);\n\n    if (null != m_attributeSetsNames)\n    {\n      applyAttrSets(transformer, getStylesheetRoot(),\n                    m_attributeSetsNames);\n    }\n    \n    if (TransformerImpl.S_DEBUG)\n\t  transformer.getTraceManager().fireTraceEndEvent(this); ", "functions": [{"function_name": "setUseAttributeSets", "code": "  public void setUseAttributeSets(Vector v)\n  {\n\n    int n = v.size();\n\n    m_attributeSetsNames = new QName[n];\n\n    for (int i = 0; i < n; i++)\n    {\n      m_attributeSetsNames[i] = (QName) v.elementAt(i);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 1], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setUseAttributeSets", "code": "  public void setUseAttributeSets(QName[] v)\n  {\n    m_attributeSetsNames = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUseAttributeSets", "code": "  public QName[] getUseAttributeSets()\n  {\n    return m_attributeSetsNames;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "applyAttrSets", "code": "  public void applyAttrSets(\n          TransformerImpl transformer, StylesheetRoot stylesheet)\n            throws TransformerException\n  {\n    applyAttrSets(transformer, stylesheet, m_attributeSetsNames);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "applyAttrSets", "code": "  private void applyAttrSets(\n          TransformerImpl transformer, StylesheetRoot stylesheet, QName attributeSetsNames[])\n            throws TransformerException\n  {\n\n    if (null != attributeSetsNames)\n    {\n      int nNames = attributeSetsNames.length;\n\n      for (int i = 0; i < nNames; i++)\n      {\n        QName qname = attributeSetsNames[i];\n        Vector attrSets = stylesheet.getAttributeSetComposed(qname);\n\n        if (null != attrSets)\n        {\n          int nSets = attrSets.size();\n\n          for (int k = nSets-1; k >= 0 ; k--)\n          {\n            ElemAttributeSet attrSet =\n              (ElemAttributeSet) attrSets.elementAt(k);\n\n            attrSet.execute(transformer);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [6, 10], [6, 11], [6, 12], [10, 13], [6, 14], [10, 15], [10, 16], [13, 17], [11, 18], [15, 19], [15, 20], [19, 21], [16, 22], [15, 23], [15, 24], [24, 25], [20, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 6], [11, 6], [12, 6], [13, 10], [14, 6], [15, 10], [16, 10], [17, 13], [18, 11], [19, 15], [20, 15], [21, 19], [22, 16], [23, 15], [24, 15], [25, 24], [26, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n    if (TransformerImpl.S_DEBUG)\n      transformer.getTraceManager().fireTraceEvent(this);\n\n    if (null != m_attributeSetsNames)\n    {\n      applyAttrSets(transformer, getStylesheetRoot(),\n                    m_attributeSetsNames);\n    }\n    \n    if (TransformerImpl.S_DEBUG)\n\t  transformer.getTraceManager().fireTraceEndEvent(this); ", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [5, 7], [3, 8], [6, 9], [2, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 5], [8, 3], [9, 6], [10, 2], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 1}
{"sample_id": "jedit-4.3-4794", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/EBMessage.java", "language": "java", "name": "org.gjt.sp.jedit.EBMessage", "code": "public abstract class EBMessage\n{\n\t//{{{ EBMessage constructor\n\t/**\n\t * Creates a new message.\n\t * @param source The message source\n\t * @since jEdit 4.2pre1\n\t */\n\tprotected EBMessage(Object source)\n\t{\n\t\tthis.source = source;\n\t} //}}}\n\n\t//{{{ EBMessage constructor\n\t/**\n\t * Creates a new message.\n\t * @param source The message source\n\t */\n\tprotected EBMessage(EBComponent source)\n\t{\n\t\tthis.source = source;\n\t} //}}}\n\n\t//{{{ getSource() method\n\t/**\n\t * Returns the sender of this message.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic Object getSource()\n\t{\n\t\treturn source;\n\t} //}}}\n\n\t//{{{ toString() method\n\t/**\n\t * Returns a string representation of this message.\n\t */\n\t@Override\n\tpublic String toString()\n\t{\n\t\tString className = getClass().getName();\n\t\tint index = className.lastIndexOf('.');\n\t\treturn className.substring(index + 1)\n\t\t\t+ '[' + paramString() + ']';\n\t} //}}}\n\n\t//{{{ paramString() method\n\t/**\n\t * Returns a string representation of this message's parameters.\n\t */\n\tpublic String paramString()\n\t{\n\t\treturn \"source=\" + source;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate Object source;", "functions": [{"function_name": "getSource", "code": "\tpublic Object getSource()\n\t{\n\t\treturn source;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "\t@Override\n\tpublic String toString()\n\t{\n\t\tString className = getClass().getName();\n\t\tint index = className.lastIndexOf('.');\n\t\treturn className.substring(index + 1)\n\t\t\t+ '[' + paramString() + ']';", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [3, 8], [6, 9], [6, 10], [7, 11], [8, 12], [10, 13], [10, 14], [14, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 3], [9, 6], [10, 6], [11, 7], [12, 8], [13, 10], [14, 10], [15, 14], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "paramString", "code": "\tpublic String paramString()\n\t{\n\t\treturn \"source=\" + source;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "EBMessage", "code": "\tprotected EBMessage(Object source)\n\t{\n\t\tthis.source = source;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "EBMessage", "code": "\tprotected EBMessage(EBComponent source)\n\t{\n\t\tthis.source = source;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.0-5497", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/formula/BoolPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.BoolPtg", "code": "public class BoolPtg\n    extends Ptg\n{\n    public final static int  SIZE = 2;\n    public final static byte sid  = 0x1d;\n    private boolean          field_1_value;\n\n    private String val;\n\n    private BoolPtg() {\n    }\n\n    public BoolPtg(byte [] data, int offset)\n    {\n        field_1_value = (data[offset + 1] == 1);\n    }\n\n\n    public BoolPtg(String formulaToken) {\n        field_1_value = (formulaToken.equals(\"TRUE\"));\n    }\n\n    public void setValue(boolean value)\n    {\n        field_1_value = value;\n    }\n\n    public boolean getValue()\n    {\n        return field_1_value;\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n        array[ offset + 1 ] = (byte) (field_1_value ? 1 : 0);\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public String toFormulaString(Workbook book)\n    {\n        return field_1_value ? \"TRUE\" : \"FALSE\";\n    }\n\n    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}\n\n    public Object clone() {\n        BoolPtg ptg = new BoolPtg();\n        ptg.field_1_value = field_1_value;\n        return ptg;", "functions": [{"function_name": "setValue", "code": "    public void setValue(boolean value)\n    {\n        field_1_value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValue", "code": "    public boolean getValue()\n    {\n        return field_1_value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n        array[ offset + 1 ] = (byte) (field_1_value ? 1 : 0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [5, 6], [5, 7], [3, 8], [4, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 5], [7, 5], [8, 3], [9, 4], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return field_1_value ? \"TRUE\" : \"FALSE\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        BoolPtg ptg = new BoolPtg();\n        ptg.field_1_value = field_1_value;\n        return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "BoolPtg", "code": "    private BoolPtg() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "BoolPtg", "code": "    public BoolPtg(byte [] data, int offset)\n    {\n        field_1_value = (data[offset + 1] == 1);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "BoolPtg", "code": "    public BoolPtg(String formulaToken) {\n        field_1_value = (formulaToken.equals(\"TRUE\"));", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.5-468", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/zip/ZipEntry.java", "language": "java", "name": "org.apache.tools.zip.ZipEntry", "code": "public class ZipEntry extends java.util.zip.ZipEntry {\n\n    private static final int PLATFORM_UNIX = 3;\n    private static final int PLATFORM_FAT  = 0;\n\n    private int internalAttributes = 0;\n    private int platform = PLATFORM_FAT;\n    private long externalAttributes = 0;\n    private Vector extraFields = new Vector();\n\n    /**\n     * Creates a new zip entry with the specified name.\n     *\n     * @since 1.1\n     */\n    public ZipEntry(String name) {\n        super(name);\n    }\n\n    /**\n     * Creates a new zip entry with fields taken from the specified zip entry.\n     *\n     * @since 1.1\n     */\n    public ZipEntry(java.util.zip.ZipEntry entry) throws ZipException {\n        /*\n         * REVISIT: call super(entry) instead of this stuff in Ant2,\n         *          \"copy constructor\" has not been available in JDK 1.1\n         */\n        super(entry.getName());\n\n        setComment(entry.getComment());\n        setMethod(entry.getMethod());\n        setTime(entry.getTime());\n\n        long size = entry.getSize();\n        if (size > 0) {\n            setSize(size);\n        }\n        long cSize = entry.getCompressedSize();\n        if (cSize > 0) {\n            setComprSize(cSize);\n        }\n        long crc = entry.getCrc();\n        if (crc > 0) {\n            setCrc(crc);\n        }\n        \n        byte[] extra = entry.getExtra();\n        if (extra != null) {\n            setExtraFields(ExtraFieldUtils.parse(extra));\n        } else {\n            setExtra();\n        }\n    }\n\n    /**\n     * Creates a new zip entry with fields taken from the specified zip entry.\n     *\n     * @since 1.1\n     */\n    public ZipEntry(ZipEntry entry) throws ZipException {\n        this((java.util.zip.ZipEntry) entry);\n        setInternalAttributes(entry.getInternalAttributes());\n        setExternalAttributes(entry.getExternalAttributes());\n        setExtraFields(entry.getExtraFields());\n    }\n\n    /**\n     * Overwrite clone\n     *\n     * @since 1.1\n     */\n    public Object clone() {\n        ZipEntry e = null;\n        try {\n            e = new ZipEntry((java.util.zip.ZipEntry) super.clone());\n        } catch (Exception ex) {\n            ex.printStackTrace();\n        }\n        e.setInternalAttributes(getInternalAttributes());\n        e.setExternalAttributes(getExternalAttributes());\n        e.setExtraFields(getExtraFields());\n        return e;\n    }\n\n    /**\n     * Retrieves the internal file attributes.\n     *\n     * @since 1.1\n     */\n    public int getInternalAttributes() {\n        return internalAttributes;\n    }\n\n    /**\n     * Sets the internal file attributes.\n     *\n     * @since 1.1\n     */\n    public void setInternalAttributes(int value) {\n        internalAttributes = value;\n    }\n\n    /**\n     * Retrieves the external file attributes.\n     *\n     * @since 1.1\n     */\n    public long getExternalAttributes() {\n        return externalAttributes;\n    }\n\n    /**\n     * Sets the external file attributes.\n     *\n     * @since 1.1\n     */\n    public void setExternalAttributes(long value) {\n        externalAttributes = value;\n    }\n\n    /**\n     * Sets Unix permissions in a way that is understood by Info-Zip's\n     * unzip command.\n     *\n     * @since Ant 1.5.2\n     */\n    public void setUnixMode(int mode) {\n        setExternalAttributes((mode << 16)\n                              | ((mode & 0200) == 0 ? 1 : 0)\n                              | (isDirectory() ? 0x10 : 0));\n        platform = PLATFORM_UNIX;\n    }\n\n    /**\n     * Platform specification to put into the &quot;version made\n     * by&quot; part of the central file header.\n     *\n     * @return 0 (MS-DOS FAT) unless {@link #setUnixMode setUnixMode}\n     * has been called, in which case 3 (Unix) will be returned.\n     *\n     * @since Ant 1.5.2\n     */\n    public int getPlatform() {\n        return platform;\n    }\n\n    /**\n     * Replaces all currently attached extra fields with the new array.\n     *\n     * @since 1.1\n     */\n    public void setExtraFields(ZipExtraField[] fields) {\n        extraFields.removeAllElements();\n        for (int i = 0; i < fields.length; i++) {\n            extraFields.addElement(fields[i]);\n        }\n        setExtra();\n    }\n\n    /**\n     * Retrieves extra fields.\n     *\n     * @since 1.1\n     */\n    public ZipExtraField[] getExtraFields() {\n        ZipExtraField[] result = new ZipExtraField[extraFields.size()];\n        extraFields.copyInto(result);\n        return result;\n    }\n\n    /**\n     * Adds an extra fields - replacing an already present extra field\n     * of the same type.\n     *\n     * @since 1.1\n     */\n    public void addExtraField(ZipExtraField ze) {\n        ZipShort type = ze.getHeaderId();\n        boolean done = false;\n        for (int i = 0; !done && i < extraFields.size(); i++) {\n            if (((ZipExtraField) extraFields.elementAt(i)).getHeaderId().equals(type)) {\n                extraFields.setElementAt(ze, i);\n                done = true;\n            }\n        }\n        if (!done) {\n            extraFields.addElement(ze);\n        }\n        setExtra();\n    }\n\n    /**\n     * Remove an extra fields.\n     *\n     * @since 1.1\n     */\n    public void removeExtraField(ZipShort type) {\n        boolean done = false;\n        for (int i = 0; !done && i < extraFields.size(); i++) {\n            if (((ZipExtraField) extraFields.elementAt(i)).getHeaderId().equals(type)) {\n                extraFields.removeElementAt(i);\n                done = true;\n            }\n        }\n        if (!done) {\n            throw new java.util.NoSuchElementException();\n        }\n        setExtra();\n    }\n\n    /**\n     * Throws an Exception if extra data cannot be parsed into extra fields.\n     *\n     * @since 1.1\n     */\n    public void setExtra(byte[] extra) throws RuntimeException {\n        try {\n            setExtraFields(ExtraFieldUtils.parse(extra));\n        } catch (Exception e) {\n            throw new RuntimeException(e.getMessage());\n        }\n    }\n\n    /**\n     * Unfortunately {@link java.util.zip.ZipOutputStream\n     * java.util.zip.ZipOutputStream} seems to access the extra data\n     * directly, so overriding getExtra doesn't help - we need to\n     * modify super's data directly.\n     *\n     * @since 1.1\n     */\n    protected void setExtra() {\n        super.setExtra(ExtraFieldUtils.mergeLocalFileDataData(getExtraFields()));\n    }\n\n    /**\n     * Retrieves the extra data for the local file data.\n     *\n     * @since 1.1\n     */\n    public byte[] getLocalFileDataExtra() {\n        byte[] extra = getExtra();\n        return extra != null ? extra : new byte[0];\n    }\n\n    /**\n     * Retrieves the extra data for the central directory.\n     *\n     * @since 1.1\n     */\n    public byte[] getCentralDirectoryExtra() {\n        return ExtraFieldUtils.mergeCentralDirectoryData(getExtraFields());\n    }\n\n    /**\n     * Helper for JDK 1.1 <-> 1.2 incompatibility.\n     *\n     * @since 1.2\n     */\n    private Long compressedSize = null;\n\n    /**\n     * Make this class work in JDK 1.1 like a 1.2 class.\n     *\n     * <p>This either stores the size for later usage or invokes\n     * setCompressedSize via reflection.</p>\n     *\n     * @since 1.2\n     */\n    public void setComprSize(long size) {\n        if (haveSetCompressedSize()) {\n            performSetCompressedSize(this, size);\n        } else {\n            compressedSize = new Long(size);\n        }\n    }\n\n    /**\n     * Override to make this class work in JDK 1.1 like a 1.2 class.\n     *\n     * @since 1.2\n     */\n    public long getCompressedSize() {\n        if (compressedSize != null) {\n            return compressedSize.longValue();\n        }\n        return super.getCompressedSize();\n    }\n\n    /**\n     * Helper for JDK 1.1\n     *\n     * @since 1.2\n     */\n    private static Method setCompressedSizeMethod = null;\n    /**\n     * Helper for JDK 1.1\n     *\n     * @since 1.2\n     */\n    private static Object lockReflection = new Object();\n    /**\n     * Helper for JDK 1.1\n     *\n     * @since 1.2\n     */\n    private static boolean triedToGetMethod = false;\n\n    /**\n     * Are we running JDK 1.2 or higher?\n     *\n     * @since 1.2\n     */\n    private static boolean haveSetCompressedSize() {\n        checkSCS();\n        return setCompressedSizeMethod != null;\n    }\n\n    /**\n     * Invoke setCompressedSize via reflection.\n     *\n     * @since 1.2\n     */\n    private static void performSetCompressedSize(ZipEntry ze, long size) {\n        Long[] s = {new Long(size)};\n        try {\n            setCompressedSizeMethod.invoke(ze, s);\n        } catch (InvocationTargetException ite) {\n            Throwable nested = ite.getTargetException();\n            throw new RuntimeException(\"Exception setting the compressed size \"\n                                       + \"of \" + ze + \": \"\n                                       + nested.getMessage());\n        } catch (Throwable other) {\n            throw new RuntimeException(\"Exception setting the compressed size \"\n                                       + \"of \" + ze + \": \"\n                                       + other.getMessage());\n        }\n    }\n\n    /**\n     * Try to get a handle to the setCompressedSize method.\n     *\n     * @since 1.2\n     */\n    private static void checkSCS() {\n        if (!triedToGetMethod) {\n            synchronized (lockReflection) {\n                triedToGetMethod = true;\n                try {\n                    setCompressedSizeMethod = \n                        java.util.zip.ZipEntry.class.getMethod(\"setCompressedSize\", \n                                                               new Class[] {Long.TYPE});", "functions": [{"function_name": "clone", "code": "    public Object clone() {\n        ZipEntry e = null;\n        try {\n            e = new ZipEntry((java.util.zip.ZipEntry) super.clone());\n        } catch (Exception ex) {\n            ex.printStackTrace();\n        }\n        e.setInternalAttributes(getInternalAttributes());\n        e.setExternalAttributes(getExternalAttributes());\n        e.setExtraFields(getExtraFields());\n        return e;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CALL", "CALL", "CALL", "CATCH", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [5, 9], [6, 10], [2, 11], [3, 12], [7, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 5], [10, 6], [11, 2], [12, 3], [13, 7], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getInternalAttributes", "code": "    public int getInternalAttributes() {\n        return internalAttributes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInternalAttributes", "code": "    public void setInternalAttributes(int value) {\n        internalAttributes = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExternalAttributes", "code": "    public long getExternalAttributes() {\n        return externalAttributes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExternalAttributes", "code": "    public void setExternalAttributes(long value) {\n        externalAttributes = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUnixMode", "code": "    public void setUnixMode(int mode) {\n        setExternalAttributes((mode << 16)\n                              | ((mode & 0200) == 0 ? 1 : 0)\n                              | (isDirectory() ? 0x10 : 0));\n        platform = PLATFORM_UNIX;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [5, 7], [5, 8], [5, 9], [6, 10], [6, 11], [10, 12], [10, 13], [10, 14], [11, 15], [14, 16], [14, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [7, 5], [8, 5], [9, 5], [10, 6], [11, 6], [12, 10], [13, 10], [14, 10], [15, 11], [16, 14], [17, 14], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getPlatform", "code": "    public int getPlatform() {\n        return platform;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExtraFields", "code": "    public void setExtraFields(ZipExtraField[] fields) {\n        extraFields.removeAllElements();\n        for (int i = 0; i < fields.length; i++) {\n            extraFields.addElement(fields[i]);\n        }\n        setExtra();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getExtraFields", "code": "    public ZipExtraField[] getExtraFields() {\n        ZipExtraField[] result = new ZipExtraField[extraFields.size()];\n        extraFields.copyInto(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addExtraField", "code": "    public void addExtraField(ZipExtraField ze) {\n        ZipShort type = ze.getHeaderId();\n        boolean done = false;\n        for (int i = 0; !done && i < extraFields.size(); i++) {\n            if (((ZipExtraField) extraFields.elementAt(i)).getHeaderId().equals(type)) {\n                extraFields.setElementAt(ze, i);\n                done = true;\n            }\n        }\n        if (!done) {\n            extraFields.addElement(ze);\n        }\n        setExtra();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [3, 10], [4, 11], [1, 12], [9, 13], [2, 14], [8, 15], [8, 16], [8, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 3], [11, 4], [12, 1], [13, 9], [14, 2], [15, 8], [16, 8], [17, 8], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "removeExtraField", "code": "    public void removeExtraField(ZipShort type) {\n        boolean done = false;\n        for (int i = 0; !done && i < extraFields.size(); i++) {\n            if (((ZipExtraField) extraFields.elementAt(i)).getHeaderId().equals(type)) {\n                extraFields.removeElementAt(i);\n                done = true;\n            }\n        }\n        if (!done) {\n            throw new java.util.NoSuchElementException();\n        }\n        setExtra();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 7], [2, 8], [6, 9], [3, 10], [7, 11], [9, 12], [2, 13], [8, 14], [8, 15], [8, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 1], [8, 2], [9, 6], [10, 3], [11, 7], [12, 9], [13, 2], [14, 8], [15, 8], [16, 8], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setExtra", "code": "    public void setExtra(byte[] extra) throws RuntimeException {\n        try {\n            setExtraFields(ExtraFieldUtils.parse(extra));\n        } catch (Exception e) {\n            throw new RuntimeException(e.getMessage());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setExtra", "code": "    protected void setExtra() {\n        super.setExtra(ExtraFieldUtils.mergeLocalFileDataData(getExtraFields()));", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalFileDataExtra", "code": "    public byte[] getLocalFileDataExtra() {\n        byte[] extra = getExtra();\n        return extra != null ? extra : new byte[0];", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getCentralDirectoryExtra", "code": "    public byte[] getCentralDirectoryExtra() {\n        return ExtraFieldUtils.mergeCentralDirectoryData(getExtraFields());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setComprSize", "code": "    public void setComprSize(long size) {\n        if (haveSetCompressedSize()) {\n            performSetCompressedSize(this, size);\n        } else {\n            compressedSize = new Long(size);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getCompressedSize", "code": "    public long getCompressedSize() {\n        if (compressedSize != null) {\n            return compressedSize.longValue();\n        }\n        return super.getCompressedSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "haveSetCompressedSize", "code": "    private static boolean haveSetCompressedSize() {\n        checkSCS();\n        return setCompressedSizeMethod != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [1, 0], [2, 1], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "performSetCompressedSize", "code": "    private static void performSetCompressedSize(ZipEntry ze, long size) {\n        Long[] s = {new Long(size)};\n        try {\n            setCompressedSizeMethod.invoke(ze, s);\n        } catch (InvocationTargetException ite) {\n            Throwable nested = ite.getTargetException();\n            throw new RuntimeException(\"Exception setting the compressed size \"\n                                       + \"of \" + ze + \": \"\n                                       + nested.getMessage());\n        } catch (Throwable other) {\n            throw new RuntimeException(\"Exception setting the compressed size \"\n                                       + \"of \" + ze + \": \"\n                                       + other.getMessage());", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "CATCH", "CATCH", "THROW_RAISE", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [1, 10], [7, 11], [8, 12], [2, 13], [11, 14], [12, 15], [9, 16], [14, 17], [14, 18], [15, 19], [15, 20], [18, 21], [18, 22], [20, 23], [20, 24], [22, 25], [24, 26], [25, 27], [25, 28], [26, 29], [26, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 1], [11, 7], [12, 8], [13, 2], [14, 11], [15, 12], [16, 9], [17, 14], [18, 14], [19, 15], [20, 15], [21, 18], [22, 18], [23, 20], [24, 20], [25, 22], [26, 24], [27, 25], [28, 25], [29, 26], [30, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "checkSCS", "code": "    private static void checkSCS() {\n        if (!triedToGetMethod) {\n            synchronized (lockReflection) {\n                triedToGetMethod = true;\n                try {\n                    setCompressedSizeMethod = \n                        java.util.zip.ZipEntry.class.getMethod(\"setCompressedSize\", \n                                                               new Class[] {Long.TYPE});", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "CATCH", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [2, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 1], [5, 2], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "ZipEntry", "code": "    public ZipEntry(String name) {\n        super(name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ZipEntry", "code": "    public ZipEntry(java.util.zip.ZipEntry entry) throws ZipException {\n        /*\n         * REVISIT: call super(entry) instead of this stuff in Ant2,\n         *          \"copy constructor\" has not been available in JDK 1.1\n         */\n        super(entry.getName());\n\n        setComment(entry.getComment());\n        setMethod(entry.getMethod());\n        setTime(entry.getTime());\n\n        long size = entry.getSize();\n        if (size > 0) {\n            setSize(size);\n        }\n        long cSize = entry.getCompressedSize();\n        if (cSize > 0) {\n            setComprSize(cSize);\n        }\n        long crc = entry.getCrc();\n        if (crc > 0) {\n            setCrc(crc);\n        }\n        \n        byte[] extra = entry.getExtra();\n        if (extra != null) {\n            setExtraFields(ExtraFieldUtils.parse(extra));\n        } else {\n            setExtra();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [5, 12], [7, 13], [0, 14], [0, 15], [0, 16], [0, 17], [10, 18], [2, 19], [11, 20], [4, 21], [12, 22], [6, 23], [13, 24], [8, 25], [14, 26], [15, 27], [16, 28], [1, 29], [1, 30], [3, 31], [5, 32], [7, 33], [30, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 5], [13, 7], [14, 0], [15, 0], [16, 0], [17, 0], [18, 10], [19, 2], [20, 11], [21, 4], [22, 12], [23, 6], [24, 13], [25, 8], [26, 14], [27, 15], [28, 16], [29, 1], [30, 1], [31, 3], [32, 5], [33, 7], [34, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "ZipEntry", "code": "    public ZipEntry(ZipEntry entry) throws ZipException {\n        this((java.util.zip.ZipEntry) entry);\n        setInternalAttributes(entry.getInternalAttributes());\n        setExternalAttributes(entry.getExternalAttributes());\n        setExtraFields(entry.getExtraFields());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "xalan-2.6-7660", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/NodeSetDTM.java", "language": "java", "name": "org.apache.xpath.NodeSetDTM", "code": "public class NodeSetDTM extends NodeVector\n        implements /* NodeList, NodeIterator, */ DTMIterator, \n        Cloneable\n{\n\n  /**\n   * Create an empty nodelist.\n   */\n  public NodeSetDTM(DTMManager dtmManager)\n  {\n    super();\n    m_manager = dtmManager;\n  }\n\n  /**\n   * Create an empty, using the given block size.\n   *\n   * @param blocksize Size of blocks to allocate \n   * @param dummy pass zero for right now...\n   */\n  public NodeSetDTM(int blocksize, int dummy, DTMManager dtmManager)\n  {\n    super(blocksize);\n    m_manager = dtmManager;\n  }\n\n\n  /**\n   * Create a NodeSetDTM, and copy the members of the\n   * given NodeSetDTM into it.\n   *\n   * @param nodelist Set of Nodes to be made members of the new set.\n   */\n  public NodeSetDTM(NodeSetDTM nodelist)\n  {\n\n    super();\n    m_manager = nodelist.getDTMManager();\n    m_root = nodelist.getRoot();\n\n    addNodes((DTMIterator) nodelist);\n  }\n\n  /**\n   * Create a NodeSetDTM, and copy the members of the\n   * given DTMIterator into it.\n   *\n   * @param ni Iterator which yields Nodes to be made members of the new set.\n   */\n  public NodeSetDTM(DTMIterator ni)\n  {\n\n    super();\n\n    m_manager = ni.getDTMManager();\n    m_root = ni.getRoot();\n    addNodes(ni);\n  }\n  \n  /**\n   * Create a NodeSetDTM, and copy the members of the\n   * given DTMIterator into it.\n   *\n   * @param ni Iterator which yields Nodes to be made members of the new set.\n   */\n  public NodeSetDTM(NodeIterator iterator, XPathContext xctxt)\n  {\n\n    super();\n\n    Node node;\n    m_manager = xctxt.getDTMManager();\n\n    while (null != (node = iterator.nextNode()))\n    {\n      int handle = xctxt.getDTMHandleFromNode(node);\n      addNodeInDocOrder(handle, xctxt);\n    }\n  }\n  \n  /**\n   * Create a NodeSetDTM, and copy the members of the\n   * given DTMIterator into it.\n   *\n   * @param ni Iterator which yields Nodes to be made members of the new set.\n   */\n  public NodeSetDTM(NodeList nodeList, XPathContext xctxt)\n  {\n\n    super();\n\n    m_manager = xctxt.getDTMManager();\n\n    int n = nodeList.getLength();\n    for (int i = 0; i < n; i++) \n    {\n      Node node = nodeList.item(i);\n      int handle = xctxt.getDTMHandleFromNode(node);\n    } \n  }\n\n\n  /**\n   * Create a NodeSetDTM which contains the given Node.\n   *\n   * @param node Single node to be added to the new set.\n   */\n  public NodeSetDTM(int node, DTMManager dtmManager)\n  {\n\n    super();\n    m_manager = dtmManager;\n\n    addNode(node);\n  }\n  \n  /**\n   * Set the environment in which this iterator operates, which should provide:\n   * a node (the context node... same value as \"root\" defined below) \n   * a pair of non-zero positive integers (the context position and the context size) \n   * a set of variable bindings \n   * a function library \n   * the set of namespace declarations in scope for the expression.\n   * \n   * <p>At this time the exact implementation of this environment is application \n   * dependent.  Probably a proper interface will be created fairly soon.</p>\n   * \n   * @param environment The environment object.\n   */\n  public void setEnvironment(Object environment)\n  {\n  }\n\n\n  /**\n   * @return The root node of the Iterator, as specified when it was created.\n   * For non-Iterator NodeSetDTMs, this will be null.\n   */\n  public int getRoot()\n  {\n    if(DTM.NULL == m_root)\n    {\n      if(size() > 0)\n        return item(0);\n      else\n        return DTM.NULL;\n    }\n    else\n      return m_root;\n  }\n  \n  /**\n   * Initialize the context values for this expression\n   * after it is cloned.\n   *\n   * @param execContext The XPath runtime context for this\n   * transformation.\n   */\n  public void setRoot(int context, Object environment)\n  {\n  }\n\n  /**\n   * Clone this NodeSetDTM.\n   * At this time, we only expect this to be used with LocPathIterators;\n   * it may not work with other kinds of NodeSetDTMs.\n   *\n   * @return a new NodeSetDTM of the same type, having the same state...\n   * though unless overridden in the subclasses, it may not copy all\n   * the state information.\n   *\n   * @throws CloneNotSupportedException if this subclass of NodeSetDTM\n   * does not support the clone() operation.\n   */\n  public Object clone() throws CloneNotSupportedException\n  {\n\n    NodeSetDTM clone = (NodeSetDTM) super.clone();\n\n    return clone;\n  }\n\n  /**\n   * Get a cloned Iterator, and reset its state to the beginning of the\n   * iteration.\n   *\n   * @return a new NodeSetDTM of the same type, having the same state...\n   * except that the reset() operation has been called.\n   *\n   * @throws CloneNotSupportedException if this subclass of NodeSetDTM\n   * does not support the clone() operation.\n   */\n  public DTMIterator cloneWithReset() throws CloneNotSupportedException\n  {\n\n    NodeSetDTM clone = (NodeSetDTM) clone();\n\n    clone.reset();\n\n    return clone;\n  }\n\n  /**\n   * Reset the iterator. May have no effect on non-iterator Nodesets.\n   */\n  public void reset()\n  {\n    m_next = 0;\n  }\n\n  /**\n   *  This attribute determines which node types are presented via the\n   * iterator. The available set of constants is defined in the\n   * <code>DTMFilter</code> interface. For NodeSetDTMs, the mask has been\n   * hardcoded to show all nodes except EntityReference nodes, which have\n   * no equivalent in the XPath data model.\n   *\n   * @return integer used as a bit-array, containing flags defined in\n   * the DOM's DTMFilter class. The value will be \n   * <code>SHOW_ALL & ~SHOW_ENTITY_REFERENCE</code>, meaning that\n   * only entity references are suppressed.\n   */\n  public int getWhatToShow()\n  {\n    return DTMFilter.SHOW_ALL & ~DTMFilter.SHOW_ENTITY_REFERENCE;\n  }\n\n  /**\n   * The filter object used to screen nodes. Filters are applied to\n   * further reduce (and restructure) the DTMIterator's view of the\n   * document. In our case, we will be using hardcoded filters built\n   * into our iterators... but getFilter() is part of the DOM's \n   * DTMIterator interface, so we have to support it.\n   *\n   * @return null, which is slightly misleading. True, there is no\n   * user-written filter object, but in fact we are doing some very\n   * sophisticated custom filtering. A DOM purist might suggest\n   * returning a placeholder object just to indicate that this is\n   * not going to return all nodes selected by whatToShow.\n   */\n  public DTMFilter getFilter()\n  {\n    return null;\n  }\n\n  /**\n   *  The value of this flag determines whether the children of entity\n   * reference nodes are visible to the iterator. If false, they will be\n   * skipped over.\n   * <br> To produce a view of the document that has entity references\n   * expanded and does not expose the entity reference node itself, use the\n   * whatToShow flags to hide the entity reference node and set\n   * expandEntityReferences to true when creating the iterator. To produce\n   * a view of the document that has entity reference nodes but no entity\n   * expansion, use the whatToShow flags to show the entity reference node\n   * and set expandEntityReferences to false.\n   *\n   * @return true for all iterators based on NodeSetDTM, meaning that the\n   * contents of EntityRefrence nodes may be returned (though whatToShow\n   * says that the EntityReferences themselves are not shown.)\n   */\n  public boolean getExpandEntityReferences()\n  {\n    return true;\n  }\n  \n  /**\n   * Get an instance of a DTM that \"owns\" a node handle.  Since a node \n   * iterator may be passed without a DTMManager, this allows the \n   * caller to easily get the DTM using just the iterator.\n   *\n   * @param nodeHandle the nodeHandle.\n   *\n   * @return a non-null DTM reference.\n   */\n  public DTM getDTM(int nodeHandle)\n  {\n    \n    return m_manager.getDTM(nodeHandle);\n  }\n  \n  /* An instance of the DTMManager. */\n  DTMManager m_manager;\n  \n  /**\n   * Get an instance of the DTMManager.  Since a node \n   * iterator may be passed without a DTMManager, this allows the \n   * caller to easily get the DTMManager using just the iterator.\n   *\n   * @return a non-null DTMManager reference.\n   */\n  public DTMManager getDTMManager()\n  {\n    \n    return m_manager;\n  }\n\n  /**\n   *  Returns the next node in the set and advances the position of the\n   * iterator in the set. After a DTMIterator is created, the first call\n   * to nextNode() returns the first node in the set.\n   * @return  The next <code>Node</code> in the set being iterated over, or\n   *   <code>DTM.NULL</code> if there are no more members in that set.\n   * @throws DOMException\n   *    INVALID_STATE_ERR: Raised if this method is called after the\n   *   <code>detach</code> method was invoked.\n   */\n  public int nextNode()\n  {\n\n    if ((m_next) < this.size())\n    {\n      int next = this.elementAt(m_next);\n\n      m_next++;\n\n      return next;\n    }\n    else\n      return DTM.NULL;\n  }\n\n  /**\n   *  Returns the previous node in the set and moves the position of the\n   * iterator backwards in the set.\n   * @return  The previous <code>Node</code> in the set being iterated over,\n   *   or<code>DTM.NULL</code> if there are no more members in that set.\n   * @throws DOMException\n   *    INVALID_STATE_ERR: Raised if this method is called after the\n   *   <code>detach</code> method was invoked.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a cached type, and hence doesn't know what the previous node was.\n   */\n  public int previousNode()\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    if ((m_next - 1) > 0)\n    {\n      m_next--;\n\n      return this.elementAt(m_next);\n    }\n    else\n      return DTM.NULL;\n  }\n\n  /**\n   * Detaches the iterator from the set which it iterated over, releasing\n   * any computational resources and placing the iterator in the INVALID\n   * state. After<code>detach</code> has been invoked, calls to\n   * <code>nextNode</code> or<code>previousNode</code> will raise the\n   * exception INVALID_STATE_ERR.\n   * <p>\n   * This operation is a no-op in NodeSetDTM, and will not cause \n   * INVALID_STATE_ERR to be raised by later operations.\n   * </p>\n   */\n  public void detach(){}\n  \n  /**\n   * Specify if it's OK for detach to release the iterator for reuse.\n   * \n   * @param allowRelease true if it is OK for detach to release this iterator \n   * for pooling.\n   */\n  public void allowDetachToRelease(boolean allowRelease)\n  {\n  }\n\n\n  /**\n   * Tells if this NodeSetDTM is \"fresh\", in other words, if\n   * the first nextNode() that is called will return the\n   * first node in the set.\n   *\n   * @return true if nextNode() would return the first node in the set,\n   * false if it would return a later one.\n   */\n  public boolean isFresh()\n  {\n    return (m_next == 0);\n  }\n\n  /**\n   * If an index is requested, NodeSetDTM will call this method\n   * to run the iterator to the index.  By default this sets\n   * m_next to the index.  If the index argument is -1, this\n   * signals that the iterator should be run to the end.\n   *\n   * @param index Position to advance (or retreat) to, with\n   * 0 requesting the reset (\"fresh\") position and -1 (or indeed\n   * any out-of-bounds value) requesting the final position.\n   * @throws RuntimeException thrown if this NodeSetDTM is not\n   * one of the types which supports indexing/counting.\n   */\n  public void runTo(int index)\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    if ((index >= 0) && (m_next < m_firstFree))\n      m_next = index;\n    else\n      m_next = m_firstFree - 1;\n  }\n\n  /**\n   * Returns the <code>index</code>th item in the collection. If\n   * <code>index</code> is greater than or equal to the number of nodes in\n   * the list, this returns <code>null</code>.\n   * \n   * TODO: What happens if index is out of range?\n   * \n   * @param index Index into the collection.\n   * @return The node at the <code>index</code>th position in the\n   *   <code>NodeList</code>, or <code>null</code> if that is not a valid\n   *   index.\n   */\n  public int item(int index)\n  {\n\n    runTo(index);\n\n    return this.elementAt(index);\n  }\n\n  /**\n   * The number of nodes in the list. The range of valid child node indices is\n   * 0 to <code>length-1</code> inclusive. Note that this operation requires\n   * finding all the matching nodes, which may defeat attempts to defer\n   * that work.\n   *\n   * @return integer indicating how many nodes are represented by this list.\n   */\n  public int getLength()\n  {\n\n    runTo(-1);\n\n    return this.size();\n  }\n\n  /**\n   * Add a node to the NodeSetDTM. Not all types of NodeSetDTMs support this\n   * operation\n   *\n   * @param n Node to be added\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void addNode(int n)\n  {\n\n    if (!m_mutable){}\n\n    this.addElement(n);\n  }\n\n  /**\n   * Insert a node at a given position.\n   *\n   * @param n Node to be added\n   * @param pos Offset at which the node is to be inserted,\n   * with 0 being the first position.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void insertNode(int n, int pos)\n  {\n\n    if (!m_mutable){}\n\n    insertElementAt(n, pos);\n  }\n\n  /**\n   * Remove a node.\n   *\n   * @param n Node to be added\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void removeNode(int n)\n  {\n\n    if (!m_mutable){}\n\n    this.removeElement(n);\n  }\n\n\n\n  /**\n   * Copy NodeList members into this nodelist, adding in\n   * document order.  Null references are not added.\n   *\n   * @param iterator DTMIterator which yields the nodes to be added.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void addNodes(DTMIterator iterator)\n  {\n\n    if (!m_mutable)\n\n    {\n      int obj;\n\n      while (DTM.NULL != (obj = iterator.nextNode()))\n      {\n        addElement(obj);\n      }\n    }\n\n  }\n\n\n  /**\n   * Copy NodeList members into this nodelist, adding in\n   * document order.  If a node is null, don't add it.\n   *\n   * @param iterator DTMIterator which yields the nodes to be added.\n   * @param support The XPath runtime context.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void addNodesInDocOrder(DTMIterator iterator, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    int node;\n\n    while (DTM.NULL != (node = iterator.nextNode()))\n    {\n      addNodeInDocOrder(node, support);\n    }\n  }\n\n\n  /**\n   * Add the node into a vector of nodes where it should occur in\n   * document order.\n   * @param v Vector of nodes, presumably containing Nodes\n   * @param obj Node object.\n   *\n   * @param node The node to be added.\n   * @param test true if we should test for doc order\n   * @param support The XPath runtime context.\n   * @return insertIndex.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public int addNodeInDocOrder(int node, boolean test, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    int insertIndex = -1;\n\n    if (test)\n    {\n\n      int size = size(), i;\n\n      for (i = size - 1; i >= 0; i--)\n      {\n        int child = elementAt(i);\n\n        if (child == node)\n        {\n\n          break;\n        }\n\n        DTM dtm = support.getDTM(node);\n        if (!dtm.isNodeAfter(node, child))\n        {\n          break;\n        }\n      }\n\n      if (i != -2)\n      {\n        insertIndex = i + 1;\n\n        insertElementAt(node, insertIndex);\n      }\n    }\n    else\n    {\n      insertIndex = this.size();\n\n      boolean foundit = false;\n\n      for (int i = 0; i < insertIndex; i++)\n      {\n        if (i == node)\n        {\n          foundit = true;\n\n          break;\n        }\n      }\n\n      if (!foundit)\n        addElement(node);\n    }\n\n    return insertIndex;\n  }\n  /**\n   * Add the node into a vector of nodes where it should occur in\n   * document order.\n   * @param v Vector of nodes, presumably containing Nodes\n   * @param obj Node object.\n   *\n   * @param node The node to be added.\n   * @param support The XPath runtime context.\n   *\n   * @return The index where it was inserted.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public int addNodeInDocOrder(int node, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    return addNodeInDocOrder(node, true, support);\n  }\n  /**\n   * Get the length of the list.\n   *\n   * @return The size of this node set.\n   */\n  public int size()\n  {\n    return super.size();\n  }\n\n  /**\n   * Append a Node onto the vector.\n   *\n   * @param value The node to be added.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void addElement(int value)\n  {\n\n    if (!m_mutable){}\n\n    super.addElement(value);\n  }\n\n  /**\n   * Inserts the specified node in this vector at the specified index.\n   * Each component in this vector with an index greater or equal to\n   * the specified index is shifted upward to have an index one greater\n   * than the value it had previously.\n   *\n   * @param value The node to be inserted.\n   * @param at The index where the insert should occur.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void insertElementAt(int value, int at)\n  {\n\n    if (!m_mutable){}\n\n    super.insertElementAt(value, at);\n  }\n\n  /**\n   * Append the nodes to the list.\n   *\n   * @param nodes The nodes to be appended to this node set.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void appendNodes(NodeVector nodes)\n  {\n\n    if (!m_mutable){}\n\n    super.appendNodes(nodes);\n  }\n\n  /**\n   * Inserts the specified node in this vector at the specified index.\n   * Each component in this vector with an index greater or equal to\n   * the specified index is shifted upward to have an index one greater\n   * than the value it had previously.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void removeAllElements()\n  {\n\n    if (!m_mutable){}\n\n    super.removeAllElements();\n  }\n\n  /**\n   * Removes the first occurrence of the argument from this vector.\n   * If the object is found in this vector, each component in the vector\n   * with an index greater or equal to the object's index is shifted\n   * downward to have an index one smaller than the value it had\n   * previously.\n   *\n   * @param s The node to be removed.\n   *\n   * @return True if the node was successfully removed\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public boolean removeElement(int s)\n  {\n\n    if (!m_mutable){}\n\n    return super.removeElement(s);\n  }\n\n  /**\n   * Deletes the component at the specified index. Each component in\n   * this vector with an index greater or equal to the specified\n   * index is shifted downward to have an index one smaller than\n   * the value it had previously.\n   *\n   * @param i The index of the node to be removed.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void removeElementAt(int i)\n  {\n\n    if (!m_mutable){}\n\n    super.removeElementAt(i);\n  }\n\n  /**\n   * Sets the component at the specified index of this vector to be the\n   * specified object. The previous component at that position is discarded.\n   *\n   * The index must be a value greater than or equal to 0 and less\n   * than the current size of the vector.\n   *\n   * @param node  The node to be set.\n   * @param index The index of the node to be replaced.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void setElementAt(int node, int index)\n  {\n\n    if (!m_mutable){}\n\n    super.setElementAt(node, index);\n  }\n  \n  /**\n   * Same as setElementAt.\n   *\n   * @param node  The node to be set.\n   * @param index The index of the node to be replaced.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a mutable type.\n   */\n  public void setItem(int node, int index)\n  {\n\n    if (!m_mutable){}\n\n    super.setElementAt(node, index);\n  }\n\n  /**\n   * Get the nth element.\n   *\n   * @param i The index of the requested node.\n   *\n   * @return Node at specified index.\n   */\n  public int elementAt(int i)\n  {\n\n    runTo(i);\n\n    return super.elementAt(i);\n  }\n  \n  /**\n   * Tell if the table contains the given node.\n   *\n   * @param s Node to look for\n   *\n   * @return True if the given node was found.\n   */\n  public boolean contains(int s)\n  {\n\n    runTo(-1);\n\n    return super.contains(s);\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem Node to look for\n   * @param index Index of where to start the search\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(int elem, int index)\n  {\n\n    runTo(-1);\n\n    return super.indexOf(elem, index);\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem Node to look for \n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(int elem)\n  {\n\n    runTo(-1);\n\n    return super.indexOf(elem);\n  }\n\n  /** If this node is being used as an iterator, the next index that nextNode()\n   *  will return.  */\n  transient protected int m_next = 0;\n\n  /**\n   * Get the current position, which is one less than\n   * the next nextNode() call will retrieve.  i.e. if\n   * you call getCurrentPos() and the return is 0, the next\n   * fetch will take place at index 1.\n   *\n   * @return The the current position index.\n   */\n  public int getCurrentPos()\n  {\n    return m_next;\n  }\n\n  /**\n   * Set the current position in the node set.\n   * @param i Must be a valid index.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a cached type, and thus doesn't permit indexed access.\n   */\n  public void setCurrentPos(int i)\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    m_next = i;\n  }\n\n  /**\n   * Return the last fetched node.  Needed to support the UnionPathIterator.\n   *\n   * @return the last fetched node.\n   * @throws RuntimeException thrown if this NodeSetDTM is not of \n   * a cached type, and thus doesn't permit indexed access.\n   */\n  public int getCurrentNode()\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException(\n        \"This NodeSetDTM can not do indexing or counting functions!\");\n\n    int saved = m_next;\n    int current = (m_next > 0) ? m_next-1 : m_next; \n    int n = (current < m_firstFree) ? elementAt(current) : DTM.NULL;\n    return n;\n  }\n\n  /** True if this list can be mutated.  */\n  transient protected boolean m_mutable = true;\n\n  /** True if this list is cached.\n   *  @serial  */\n  transient protected boolean m_cacheNodes = true;\n  \n  /** The root of the iteration, if available. */\n  protected int m_root = DTM.NULL;\n\n  /**\n   * Get whether or not this is a cached node set.\n   *\n   *\n   * @return True if this list is cached.\n   */\n  public boolean getShouldCacheNodes()\n  {\n    return m_cacheNodes;\n  }\n\n  /**\n   * If setShouldCacheNodes(true) is called, then nodes will\n   * be cached.  They are not cached by default. This switch must\n   * be set before the first call to nextNode is made, to ensure\n   * that all nodes are cached.\n   *\n   * @param b true if this node set should be cached.\n   * @throws RuntimeException thrown if an attempt is made to\n   * request caching after we've already begun stepping through the\n   * nodes in this set.\n  */\n  public void setShouldCacheNodes(boolean b)\n  {\n\n    if (!isFresh())\n      throw new RuntimeException();\n\n    m_cacheNodes = b;\n    m_mutable = true;\n  }\n  \n  /**\n   * Tells if this iterator can have nodes added to it or set via \n   * the <code>setItem(int node, int index)</code> method.\n   * \n   * @return True if the nodelist can be mutated.\n   */\n  public boolean isMutable()\n  {\n    return m_mutable;\n  }\n  \n  transient private int m_last = 0;\n  \n  public int getLast()\n  {\n    return m_last;\n  }\n  \n  public void setLast(int last)\n  {\n    m_last = last;\n  }\n  \n  /**\n   * Returns true if all the nodes in the iteration well be returned in document \n   * order.\n   * \n   * @return true as a default.\n   */\n  public boolean isDocOrdered()\n  {\n    return true;\n  }\n  \n  /**\n   * Returns the axis being iterated, if it is known.\n   * \n   * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple \n   * types.\n   */\n  public int getAxis()\n  {\n    return -1;", "functions": [{"function_name": "setEnvironment", "code": "  public void setEnvironment(Object environment)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRoot", "code": "  public int getRoot()\n  {\n    if(DTM.NULL == m_root)\n    {\n      if(size() > 0)\n        return item(0);\n      else\n        return DTM.NULL;\n    }\n    else\n      return m_root;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [4, 5], [4, 6], [4, 7], [6, 8], [7, 9], [7, 10], [8, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 4], [6, 4], [7, 4], [8, 6], [9, 7], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setRoot", "code": "  public void setRoot(int context, Object environment)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clone", "code": "  public Object clone() throws CloneNotSupportedException\n  {\n\n    NodeSetDTM clone = (NodeSetDTM) super.clone();\n\n    return clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "cloneWithReset", "code": "  public DTMIterator cloneWithReset() throws CloneNotSupportedException\n  {\n\n    NodeSetDTM clone = (NodeSetDTM) clone();\n\n    clone.reset();\n\n    return clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "reset", "code": "  public void reset()\n  {\n    m_next = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWhatToShow", "code": "  public int getWhatToShow()\n  {\n    return DTMFilter.SHOW_ALL & ~DTMFilter.SHOW_ENTITY_REFERENCE;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFilter", "code": "  public DTMFilter getFilter()\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExpandEntityReferences", "code": "  public boolean getExpandEntityReferences()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDTM", "code": "  public DTM getDTM(int nodeHandle)\n  {\n    \n    return m_manager.getDTM(nodeHandle);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDTMManager", "code": "  public DTMManager getDTMManager()\n  {\n    \n    return m_manager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "nextNode", "code": "  public int nextNode()\n  {\n\n    if ((m_next) < this.size())\n    {\n      int next = this.elementAt(m_next);\n\n      m_next++;\n\n      return next;\n    }\n    else\n      return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "previousNode", "code": "  public int previousNode()\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    if ((m_next - 1) > 0)\n    {\n      m_next--;\n\n      return this.elementAt(m_next);\n    }\n    else\n      return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "RETURN", "BINARY_OP", "THROW_RAISE", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [1, 6], [4, 7], [4, 8], [5, 9], [8, 10], [6, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 1], [7, 4], [8, 4], [9, 5], [10, 8], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "detach", "code": "  public void detach(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "allowDetachToRelease", "code": "  public void allowDetachToRelease(boolean allowRelease)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isFresh", "code": "  public boolean isFresh()\n  {\n    return (m_next == 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "runTo", "code": "  public void runTo(int index)\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    if ((index >= 0) && (m_next < m_firstFree))\n      m_next = index;\n    else\n      m_next = m_firstFree - 1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [4, 9], [5, 10], [6, 11], [9, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 4], [10, 5], [11, 6], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "item", "code": "  public int item(int index)\n  {\n\n    runTo(index);\n\n    return this.elementAt(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLength", "code": "  public int getLength()\n  {\n\n    runTo(-1);\n\n    return this.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addNode", "code": "  public void addNode(int n)\n  {\n\n    if (!m_mutable){}\n\n    this.addElement(n);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "insertNode", "code": "  public void insertNode(int n, int pos)\n  {\n\n    if (!m_mutable){}\n\n    insertElementAt(n, pos);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeNode", "code": "  public void removeNode(int n)\n  {\n\n    if (!m_mutable){}\n\n    this.removeElement(n);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addNodes", "code": "  public void addNodes(DTMIterator iterator)\n  {\n\n    if (!m_mutable)\n\n    {\n      int obj;\n\n      while (DTM.NULL != (obj = iterator.nextNode()))\n      {\n        addElement(obj);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [5, 6], [3, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 5], [7, 3], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addNodesInDocOrder", "code": "  public void addNodesInDocOrder(DTMIterator iterator, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    int node;\n\n    while (DTM.NULL != (node = iterator.nextNode()))\n    {\n      addNodeInDocOrder(node, support);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "addNodeInDocOrder", "code": "  public int addNodeInDocOrder(int node, boolean test, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    int insertIndex = -1;\n\n    if (test)\n    {\n\n      int size = size(), i;\n\n      for (i = size - 1; i >= 0; i--)\n      {\n        int child = elementAt(i);\n\n        if (child == node)\n        {\n\n          break;\n        }\n\n        DTM dtm = support.getDTM(node);\n        if (!dtm.isNodeAfter(node, child))\n        {\n          break;\n        }\n      }\n\n      if (i != -2)\n      {\n        insertIndex = i + 1;\n\n        insertElementAt(node, insertIndex);\n      }\n    }\n    else\n    {\n      insertIndex = this.size();\n\n      boolean foundit = false;\n\n      for (int i = 0; i < insertIndex; i++)\n      {\n        if (i == node)\n        {\n          foundit = true;\n\n          break;\n        }\n      }\n\n      if (!foundit)\n        addElement(node);\n    }\n\n    return insertIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "LOOP", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [3, 14], [9, 15], [2, 16], [11, 17], [12, 18], [12, 19], [8, 20], [9, 21], [10, 22], [17, 23], [12, 24], [12, 25], [12, 26], [12, 27], [18, 28], [19, 29], [13, 30], [21, 31], [9, 32], [16, 33], [11, 34], [11, 35], [24, 36], [26, 37], [29, 38], [21, 39], [35, 40], [24, 41], [25, 42], [26, 43], [27, 44], [21, 45], [40, 46], [45, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 3], [15, 9], [16, 2], [17, 11], [18, 12], [19, 12], [20, 8], [21, 9], [22, 10], [23, 17], [24, 12], [25, 12], [26, 12], [27, 12], [28, 18], [29, 19], [30, 13], [31, 21], [32, 9], [33, 16], [34, 11], [35, 11], [36, 24], [37, 26], [38, 29], [39, 21], [40, 35], [41, 24], [42, 25], [43, 26], [44, 27], [45, 21], [46, 40], [47, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "addNodeInDocOrder", "code": "  public int addNodeInDocOrder(int node, XPathContext support)\n  {\n\n    if (!m_mutable){}\n\n    return addNodeInDocOrder(node, true, support);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "size", "code": "  public int size()\n  {\n    return super.size();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addElement", "code": "  public void addElement(int value)\n  {\n\n    if (!m_mutable){}\n\n    super.addElement(value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "insertElementAt", "code": "  public void insertElementAt(int value, int at)\n  {\n\n    if (!m_mutable){}\n\n    super.insertElementAt(value, at);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "appendNodes", "code": "  public void appendNodes(NodeVector nodes)\n  {\n\n    if (!m_mutable){}\n\n    super.appendNodes(nodes);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeAllElements", "code": "  public void removeAllElements()\n  {\n\n    if (!m_mutable){}\n\n    super.removeAllElements();", "ast_nodes": ["FUNC_DECL", "IF"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "removeElement", "code": "  public boolean removeElement(int s)\n  {\n\n    if (!m_mutable){}\n\n    return super.removeElement(s);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeElementAt", "code": "  public void removeElementAt(int i)\n  {\n\n    if (!m_mutable){}\n\n    super.removeElementAt(i);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setElementAt", "code": "  public void setElementAt(int node, int index)\n  {\n\n    if (!m_mutable){}\n\n    super.setElementAt(node, index);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setItem", "code": "  public void setItem(int node, int index)\n  {\n\n    if (!m_mutable){}\n\n    super.setElementAt(node, index);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "elementAt", "code": "  public int elementAt(int i)\n  {\n\n    runTo(i);\n\n    return super.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "contains", "code": "  public boolean contains(int s)\n  {\n\n    runTo(-1);\n\n    return super.contains(s);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "indexOf", "code": "  public int indexOf(int elem, int index)\n  {\n\n    runTo(-1);\n\n    return super.indexOf(elem, index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "indexOf", "code": "  public int indexOf(int elem)\n  {\n\n    runTo(-1);\n\n    return super.indexOf(elem);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCurrentPos", "code": "  public int getCurrentPos()\n  {\n    return m_next;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCurrentPos", "code": "  public void setCurrentPos(int i)\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException();\n\n    m_next = i;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getCurrentNode", "code": "  public int getCurrentNode()\n  {\n\n    if (!m_cacheNodes)\n      throw new RuntimeException(\n        \"This NodeSetDTM can not do indexing or counting functions!\");\n\n    int saved = m_next;\n    int current = (m_next > 0) ? m_next-1 : m_next; \n    int n = (current < m_firstFree) ? elementAt(current) : DTM.NULL;\n    return n;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "THROW_RAISE", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [2, 7], [3, 8], [6, 9], [7, 10], [7, 11], [8, 12], [8, 13], [9, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 2], [8, 3], [9, 6], [10, 7], [11, 7], [12, 8], [13, 8], [14, 9], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getShouldCacheNodes", "code": "  public boolean getShouldCacheNodes()\n  {\n    return m_cacheNodes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setShouldCacheNodes", "code": "  public void setShouldCacheNodes(boolean b)\n  {\n\n    if (!isFresh())\n      throw new RuntimeException();\n\n    m_cacheNodes = b;\n    m_mutable = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [3, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 3], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isMutable", "code": "  public boolean isMutable()\n  {\n    return m_mutable;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLast", "code": "  public int getLast()\n  {\n    return m_last;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLast", "code": "  public void setLast(int last)\n  {\n    m_last = last;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDocOrdered", "code": "  public boolean isDocOrdered()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAxis", "code": "  public int getAxis()\n  {\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "NodeSetDTM", "code": "  public NodeSetDTM(DTMManager dtmManager)\n  {\n    super();\n    m_manager = dtmManager;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "NodeSetDTM", "code": "  public NodeSetDTM(int blocksize, int dummy, DTMManager dtmManager)\n  {\n    super(blocksize);\n    m_manager = dtmManager;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "NodeSetDTM", "code": "  public NodeSetDTM(NodeSetDTM nodelist)\n  {\n\n    super();\n    m_manager = nodelist.getDTMManager();\n    m_root = nodelist.getRoot();\n\n    addNodes((DTMIterator) nodelist);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "NodeSetDTM", "code": "  public NodeSetDTM(DTMIterator ni)\n  {\n\n    super();\n\n    m_manager = ni.getDTMManager();\n    m_root = ni.getRoot();\n    addNodes(ni);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "NodeSetDTM", "code": "  public NodeSetDTM(NodeIterator iterator, XPathContext xctxt)\n  {\n\n    super();\n\n    Node node;\n    m_manager = xctxt.getDTMManager();\n\n    while (null != (node = iterator.nextNode()))\n    {\n      int handle = xctxt.getDTMHandleFromNode(node);\n      addNodeInDocOrder(handle, xctxt);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [5, 8], [5, 9], [6, 10], [1, 11], [8, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 5], [9, 5], [10, 6], [11, 1], [12, 8], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "NodeSetDTM", "code": "  public NodeSetDTM(NodeList nodeList, XPathContext xctxt)\n  {\n\n    super();\n\n    m_manager = xctxt.getDTMManager();\n\n    int n = nodeList.getLength();\n    for (int i = 0; i < n; i++) \n    {\n      Node node = nodeList.item(i);\n      int handle = xctxt.getDTMHandleFromNode(node);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [1, 8], [2, 9], [6, 10], [1, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 1], [9, 2], [10, 6], [11, 1], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "NodeSetDTM", "code": "  public NodeSetDTM(int node, DTMManager dtmManager)\n  {\n\n    super();\n    m_manager = dtmManager;\n\n    addNode(node);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.6-493", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/bzip2/CRC.java", "language": "java", "name": "org.apache.tools.bzip2.CRC", "code": "class CRC {\n    public static int crc32Table[] = {\n        0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9,\n        0x130476dc, 0x17c56b6b, 0x1a864db2, 0x1e475005,\n        0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, 0x2b4bcb61,\n        0x350c9b64, 0x31cd86d3, 0x3c8ea00a, 0x384fbdbd,\n        0x4c11db70, 0x48d0c6c7, 0x4593e01e, 0x4152fda9,\n        0x5f15adac, 0x5bd4b01b, 0x569796c2, 0x52568b75,\n        0x6a1936c8, 0x6ed82b7f, 0x639b0da6, 0x675a1011,\n        0x791d4014, 0x7ddc5da3, 0x709f7b7a, 0x745e66cd,\n        0x9823b6e0, 0x9ce2ab57, 0x91a18d8e, 0x95609039,\n        0x8b27c03c, 0x8fe6dd8b, 0x82a5fb52, 0x8664e6e5,\n        0xbe2b5b58, 0xbaea46ef, 0xb7a96036, 0xb3687d81,\n        0xad2f2d84, 0xa9ee3033, 0xa4ad16ea, 0xa06c0b5d,\n        0xd4326d90, 0xd0f37027, 0xddb056fe, 0xd9714b49,\n        0xc7361b4c, 0xc3f706fb, 0xceb42022, 0xca753d95,\n        0xf23a8028, 0xf6fb9d9f, 0xfbb8bb46, 0xff79a6f1,\n        0xe13ef6f4, 0xe5ffeb43, 0xe8bccd9a, 0xec7dd02d,\n        0x34867077, 0x30476dc0, 0x3d044b19, 0x39c556ae,\n        0x278206ab, 0x23431b1c, 0x2e003dc5, 0x2ac12072,\n        0x128e9dcf, 0x164f8078, 0x1b0ca6a1, 0x1fcdbb16,\n        0x018aeb13, 0x054bf6a4, 0x0808d07d, 0x0cc9cdca,\n        0x7897ab07, 0x7c56b6b0, 0x71159069, 0x75d48dde,\n        0x6b93dddb, 0x6f52c06c, 0x6211e6b5, 0x66d0fb02,\n        0x5e9f46bf, 0x5a5e5b08, 0x571d7dd1, 0x53dc6066,\n        0x4d9b3063, 0x495a2dd4, 0x44190b0d, 0x40d816ba,\n        0xaca5c697, 0xa864db20, 0xa527fdf9, 0xa1e6e04e,\n        0xbfa1b04b, 0xbb60adfc, 0xb6238b25, 0xb2e29692,\n        0x8aad2b2f, 0x8e6c3698, 0x832f1041, 0x87ee0df6,\n        0x99a95df3, 0x9d684044, 0x902b669d, 0x94ea7b2a,\n        0xe0b41de7, 0xe4750050, 0xe9362689, 0xedf73b3e,\n        0xf3b06b3b, 0xf771768c, 0xfa325055, 0xfef34de2,\n        0xc6bcf05f, 0xc27dede8, 0xcf3ecb31, 0xcbffd686,\n        0xd5b88683, 0xd1799b34, 0xdc3abded, 0xd8fba05a,\n        0x690ce0ee, 0x6dcdfd59, 0x608edb80, 0x644fc637,\n        0x7a089632, 0x7ec98b85, 0x738aad5c, 0x774bb0eb,\n        0x4f040d56, 0x4bc510e1, 0x46863638, 0x42472b8f,\n        0x5c007b8a, 0x58c1663d, 0x558240e4, 0x51435d53,\n        0x251d3b9e, 0x21dc2629, 0x2c9f00f0, 0x285e1d47,\n        0x36194d42, 0x32d850f5, 0x3f9b762c, 0x3b5a6b9b,\n        0x0315d626, 0x07d4cb91, 0x0a97ed48, 0x0e56f0ff,\n        0x1011a0fa, 0x14d0bd4d, 0x19939b94, 0x1d528623,\n        0xf12f560e, 0xf5ee4bb9, 0xf8ad6d60, 0xfc6c70d7,\n        0xe22b20d2, 0xe6ea3d65, 0xeba91bbc, 0xef68060b,\n        0xd727bbb6, 0xd3e6a601, 0xdea580d8, 0xda649d6f,\n        0xc423cd6a, 0xc0e2d0dd, 0xcda1f604, 0xc960ebb3,\n        0xbd3e8d7e, 0xb9ff90c9, 0xb4bcb610, 0xb07daba7,\n        0xae3afba2, 0xaafbe615, 0xa7b8c0cc, 0xa379dd7b,\n        0x9b3660c6, 0x9ff77d71, 0x92b45ba8, 0x9675461f,\n        0x8832161a, 0x8cf30bad, 0x81b02d74, 0x857130c3,\n        0x5d8a9099, 0x594b8d2e, 0x5408abf7, 0x50c9b640,\n        0x4e8ee645, 0x4a4ffbf2, 0x470cdd2b, 0x43cdc09c,\n        0x7b827d21, 0x7f436096, 0x7200464f, 0x76c15bf8,\n        0x68860bfd, 0x6c47164a, 0x61043093, 0x65c52d24,\n        0x119b4be9, 0x155a565e, 0x18197087, 0x1cd86d30,\n        0x029f3d35, 0x065e2082, 0x0b1d065b, 0x0fdc1bec,\n        0x3793a651, 0x3352bbe6, 0x3e119d3f, 0x3ad08088,\n        0x2497d08d, 0x2056cd3a, 0x2d15ebe3, 0x29d4f654,\n        0xc5a92679, 0xc1683bce, 0xcc2b1d17, 0xc8ea00a0,\n        0xd6ad50a5, 0xd26c4d12, 0xdf2f6bcb, 0xdbee767c,\n        0xe3a1cbc1, 0xe760d676, 0xea23f0af, 0xeee2ed18,\n        0xf0a5bd1d, 0xf464a0aa, 0xf9278673, 0xfde69bc4,\n        0x89b8fd09, 0x8d79e0be, 0x803ac667, 0x84fbdbd0,\n        0x9abc8bd5, 0x9e7d9662, 0x933eb0bb, 0x97ffad0c,\n        0xafb010b1, 0xab710d06, 0xa6322bdf, 0xa2f33668,\n        0xbcb4666d, 0xb8757bda, 0xb5365d03, 0xb1f740b4\n    };\n\n    public CRC() {\n        initialiseCRC();\n    }\n\n    void initialiseCRC() {\n        globalCrc = 0xffffffff;\n    }\n\n    int getFinalCRC() {\n        return ~globalCrc;\n    }\n\n    int getGlobalCRC() {\n        return globalCrc;\n    }\n\n    void setGlobalCRC(int newCrc) {\n        globalCrc = newCrc;\n    }\n\n    void updateCRC(int inCh) {\n        int temp = (globalCrc >> 24) ^ inCh;\n        if (temp < 0) {\n            temp = 256 + temp;\n        }\n        globalCrc = (globalCrc << 8) ^ CRC.crc32Table[temp];\n    }\n\n    int globalCrc;", "functions": [{"function_name": "initialiseCRC", "code": "    void initialiseCRC() {\n        globalCrc = 0xffffffff;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFinalCRC", "code": "    int getFinalCRC() {\n        return ~globalCrc;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getGlobalCRC", "code": "    int getGlobalCRC() {\n        return globalCrc;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setGlobalCRC", "code": "    void setGlobalCRC(int newCrc) {\n        globalCrc = newCrc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "updateCRC", "code": "    void updateCRC(int inCh) {\n        int temp = (globalCrc >> 24) ^ inCh;\n        if (temp < 0) {\n            temp = 256 + temp;\n        }\n        globalCrc = (globalCrc << 8) ^ CRC.crc32Table[temp];", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [5, 7], [2, 8], [6, 9], [1, 10], [8, 11], [9, 12], [10, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 5], [8, 2], [9, 6], [10, 1], [11, 8], [12, 9], [13, 10], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "CRC", "code": "    public CRC() {\n        initialiseCRC();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-3.0-6137", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/FormulaRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.FormulaRecord", "code": "public class FormulaRecord\n    extends Record\n    implements CellValueRecordInterface, Comparable\n{\n    \n    public static final short sid = 0;\n    \n    private int             field_1_row;\n    private short             field_2_column;\n    private short             field_3_xf;\n    private double            field_4_value;\n    private short             field_5_options;\n    private BitField          alwaysCalc = BitFieldFactory.getInstance(0x0001);\n    private BitField          calcOnLoad = BitFieldFactory.getInstance(0x0002);\n    private BitField          sharedFormula = BitFieldFactory.getInstance(0x0008);    \n    private int               field_6_zero;\n    private short             field_7_expression_len;\n    private Stack             field_8_parsed_expr;\n    \n    /**\n     * Since the NaN support seems sketchy (different constants) we'll store and spit it out directly\n     */\n    private byte[]\t\t\tvalue_data;\n\n    /** Creates new FormulaRecord */\n\n    public FormulaRecord()\n    {\n        field_8_parsed_expr = new Stack();\n    }\n\n    /**\n     * Constructs a Formula record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x06 (NOT 0x406 see MSKB #Q184647 for an \"explanation of\n     * this bug in the documentation) or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public FormulaRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        try {\n          field_1_row            = in.readUShort();\n          field_2_column         = in.readShort();\n          field_3_xf             = in.readShort();\n          field_4_value          = in.readDouble();\n          field_5_options        = in.readShort();\n\t\t        \n        if (Double.isNaN(field_4_value)) {\n            value_data = in.getNANData();\n        }\n        \n          field_6_zero           = in.readInt();\n          field_7_expression_len = in.readShort();\n          field_8_parsed_expr    = Ptg.createParsedExpressionTokens(field_7_expression_len, in);\n        } catch (java.lang.UnsupportedOperationException uoe)  {\n          throw new RecordFormatException(uoe);\n        }\n    }\n\n    public void setRow(int row)\n    {\n        field_1_row = row;\n    }\n\n    public void setColumn(short column)\n    {\n        field_2_column = column;\n    }\n\n    public void setXFIndex(short xf)\n    {\n        field_3_xf = xf;\n    }\n\n    /**\n     * set the calculated value of the formula\n     *\n     * @param value  calculated value\n     */\n\n    public void setValue(double value)\n    {\n        field_4_value = value;\n    }\n\n    /**\n     * set the option flags\n     *\n     * @param options  bitmask\n     */\n\n    public void setOptions(short options)\n    {\n        field_5_options = options;\n    }\n\n    /**\n     * set the length (in number of tokens) of the expression\n     * @param len  length\n     */\n\n    public void setExpressionLength(short len)\n    {\n        field_7_expression_len = len;\n    }\n\n    public int getRow()\n    {\n        return field_1_row;\n    }\n\n    public short getColumn()\n    {\n        return field_2_column;\n    }\n\n    public short getXFIndex()\n    {\n        return field_3_xf;\n    }\n\n    /**\n     * get the calculated value of the formula\n     *\n     * @return calculated value\n     */\n\n    public double getValue()\n    {\n        return field_4_value;\n    }\n\n    /**\n     * get the option flags\n     *\n     * @return bitmask\n     */\n\n    public short getOptions()\n    {\n        return field_5_options;\n    }    \n    \n    public boolean isSharedFormula() {\n        return sharedFormula.isSet(field_5_options);\n    }\n    \n    public void setSharedFormula(boolean flag) {\n    \tsharedFormula.setBoolean(field_5_options, flag);\n    }\n    \n    /**\n     * get the length (in number of tokens) of the expression\n     * @return  expression length\n     */\n\n    public short getExpressionLength()\n    {\n        return field_7_expression_len;\n    }\n\n    /**\n     * push a token onto the stack\n     *\n     * @param ptg  the token\n     */\n\n    public void pushExpressionToken(Ptg ptg)\n    {\n        field_8_parsed_expr.push(ptg);\n    }\n\n    /**\n     * pop a token off of the stack\n     *\n     * @return Ptg - the token\n     */\n\n    public Ptg popExpressionToken()\n    {\n        return ( Ptg ) field_8_parsed_expr.pop();\n    }\n\n    /**\n     * peek at the token on the top of stack\n     *\n     * @return Ptg - the token\n     */\n\n    public Ptg peekExpressionToken()\n    {\n        return ( Ptg ) field_8_parsed_expr.peek();\n    }\n\n    /**\n     * get the size of the stack\n     * @return size of the stack\n     */\n\n    public int getNumberOfExpressionTokens()\n    {\n        if (this.field_8_parsed_expr == null) {\n            return 0;\n        } else {\n            return field_8_parsed_expr.size();\n        }\n    }\n\n    /**\n     * get the stack as a list\n     *\n     * @return list of tokens (casts stack to a list and returns it!)\n     * this method can return null is we are unable to create Ptgs from \n     *     existing excel file\n     * callers should check for null!\n     */\n\n    public List getParsedExpression()\n    {\n        return field_8_parsed_expr;\n    }\n    \n    public void setParsedExpression(Stack ptgs) {\n      field_8_parsed_expr = ptgs;\n    }\n\n    /**\n     * called by constructor, should throw runtime exception in the event of a\n     * record passed with a differing ID.\n     *\n     * @param id alleged id for this record\n     */\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A FORMULA RECORD\");\n        }\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    /**\n     * called by the class that is responsible for writing this sucker.\n     * Subclasses should implement this so that their data is passed back in a\n     * byte array.\n     *\n     * @return byte array containing instance data\n     */\n\n    public int serialize(int offset, byte [] data)\n    {\n        if (this.field_8_parsed_expr != null) {\n        int ptgSize = getTotalPtgSize();\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) (22 + ptgSize));\n        LittleEndian.putShort(data, 4 + offset, ( short ) getRow());\n        LittleEndian.putShort(data, 6 + offset, getColumn());\n        LittleEndian.putShort(data, 8 + offset, getXFIndex());\n        \n        if (Double.isNaN(this.getValue()) && value_data != null) {        \t\n\t\t\tSystem.arraycopy(value_data,0,data,10 + offset,value_data.length);\n        } else {\n\t\t\tLittleEndian.putDouble(data, 10 + offset, field_4_value);\n        }\n        \t\n        LittleEndian.putShort(data, 18 + offset, getOptions());\n        \n        LittleEndian.putInt(data, 20 + offset, 0);\n        LittleEndian.putShort(data, 24 + offset, getExpressionLength());\n        Ptg.serializePtgStack(field_8_parsed_expr, data, 26+offset);\n        } else {\n            System.arraycopy(all_data,0,data,offset,all_data.length);\n        }\n        return getRecordSize();\n    }\n    \n    \n    \n\n    public int getRecordSize()\n    {\n        int retval =0;\n        \n        if (this.field_8_parsed_expr != null) {\n            retval = getTotalPtgSize() + 26;\n        } else {\n            retval =all_data.length;\n        }\n        return retval;\n\n    }\n\n    private int getTotalPtgSize()\n    {\n        List list   = getParsedExpression();\n        int  retval = 0;\n\n        for (int k = 0; k < list.size(); k++)\n        {\n            Ptg ptg = ( Ptg ) list.get(k);\n\n            retval += ptg.getSize();\n        }\n        return retval;\n    }\n\n    public boolean isBefore(CellValueRecordInterface i)\n    {\n        if (this.getRow() > i.getRow())\n        {\n            return false;\n        }\n        if ((this.getRow() == i.getRow())\n                && (this.getColumn() > i.getColumn()))\n        {\n            return false;\n        }\n        if ((this.getRow() == i.getRow())\n                && (this.getColumn() == i.getColumn()))\n        {\n            return false;\n        }\n        return true;\n    }\n\n    public boolean isAfter(CellValueRecordInterface i)\n    {\n        if (this.getRow() < i.getRow())\n        {\n            return false;\n        }\n        if ((this.getRow() == i.getRow())\n                && (this.getColumn() < i.getColumn()))\n        {\n            return false;\n        }\n        if ((this.getRow() == i.getRow())\n                && (this.getColumn() == i.getColumn()))\n        {\n            return false;\n        }\n        return true;\n    }\n\n    public boolean isEqual(CellValueRecordInterface i)\n    {\n        return ((this.getRow() == i.getRow())\n                && (this.getColumn() == i.getColumn()));\n    }\n\n    public boolean isInValueSection()\n    {\n        return true;\n    }\n\n    public boolean isValue()\n    {\n        return true;\n    }\n\n    public int compareTo(Object obj)\n    {\n        CellValueRecordInterface loc = ( CellValueRecordInterface ) obj;\n\n        if ((this.getRow() == loc.getRow())\n                && (this.getColumn() == loc.getColumn()))\n        {\n            return 0;\n        }\n        if (this.getRow() < loc.getRow())\n        {\n            return -1;\n        }\n        if (this.getRow() > loc.getRow())\n        {\n            return 1;\n        }\n        if (this.getColumn() < loc.getColumn())\n        {\n            return -1;\n        }\n        if (this.getColumn() > loc.getColumn())\n        {\n            return 1;\n        }\n        return -1;\n    }\n\n    public boolean equals(Object obj)\n    {\n        if (!(obj instanceof CellValueRecordInterface))\n        {\n            return false;\n        }\n        CellValueRecordInterface loc = ( CellValueRecordInterface ) obj;\n\n        if ((this.getRow() == loc.getRow())\n                && (this.getColumn() == loc.getColumn()))\n        {\n            return true;\n        }\n        return false;\n    }\n    \n    \n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n            buffer.append(\"[FORMULA]\\n\");\n            buffer.append(\"    .row       = \")\n                .append(Integer.toHexString(getRow())).append(\"\\n\");\n            buffer.append(\"    .column    = \")\n                .append(Integer.toHexString(getColumn()))\n                .append(\"\\n\");\n            buffer.append(\"    .xf              = \")\n                .append(Integer.toHexString(getXFIndex())).append(\"\\n\");\n            if (Double.isNaN(this.getValue()) && value_data != null)\n              buffer.append(\"    .value (NaN)     = \")\n                  .append(org.apache.poi.util.HexDump.dump(value_data,0,0))\n                  .append(\"\\n\");\n            else\n              buffer.append(\"    .value           = \").append(getValue())\n                  .append(\"\\n\");\n            buffer.append(\"    .options         = \").append(getOptions())\n                .append(\"\\n\");\n            buffer.append(\"      .alwaysCalc         = \").append(alwaysCalc.isSet(getOptions()))\n                .append(\"\\n\");\n            buffer.append(\"      .calcOnLoad         = \").append(calcOnLoad.isSet(getOptions()))\n                .append(\"\\n\");\n            buffer.append(\"      .sharedFormula         = \").append(sharedFormula.isSet(getOptions()))\n                .append(\"\\n\");\n            buffer.append(\"    .zero            = \").append(field_6_zero)\n                .append(\"\\n\");\n            buffer.append(\"    .expressionlength= \").append(getExpressionLength())\n                .append(\"\\n\");\n\n            if (field_8_parsed_expr != null) {\n                buffer.append(\"    .numptgsinarray  = \").append(field_8_parsed_expr.size())\n                    .append(\"\\n\");\n            \n\n                for (int k = 0; k < field_8_parsed_expr.size(); k++ ) {\n                   buffer.append(\"     Ptg(\")\n                        .append(k)\n                        .append(\")=\")\n                        .append(field_8_parsed_expr.get(k).toString())\n                        .append(\"\\n\")\n                        .append(((Ptg)field_8_parsed_expr.get(k)).toDebugString())\n                        .append(\"\\n\");\n                }\n            }else {\n                buffer.append(\"Formula full data \\n\")\n                    .append(org.apache.poi.util.HexDump.dump(this.all_data,0,0));\n            }\n            \n            \n            buffer.append(\"[/FORMULA]\\n\");\n        return buffer.toString();\n    }\n    \n    public Object clone() {\n      FormulaRecord rec = new FormulaRecord();\n      rec.field_1_row = field_1_row;\n      rec.field_2_column = field_2_column;\n      rec.field_3_xf = field_3_xf;\n      rec.field_4_value = field_4_value;\n      rec.field_5_options = field_5_options;\n      rec.field_6_zero = field_6_zero;\n      rec.field_7_expression_len = field_7_expression_len;\n      rec.field_8_parsed_expr = new Stack();\n      int size = 0;\n      if (field_8_parsed_expr != null)\n        size = field_8_parsed_expr.size();\n      for (int i=0; i< size; i++) {\n        Ptg ptg = (Ptg)((Ptg)field_8_parsed_expr.get(i)).clone();        \n        rec.field_8_parsed_expr.add(i, ptg);\n      }\n      rec.value_data = value_data;\n      rec.all_data = all_data;\n      return rec;", "functions": [{"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        try {\n          field_1_row            = in.readUShort();\n          field_2_column         = in.readShort();\n          field_3_xf             = in.readShort();\n          field_4_value          = in.readDouble();\n          field_5_options        = in.readShort();\n\t\t        \n        if (Double.isNaN(field_4_value)) {\n            value_data = in.getNANData();\n        }\n        \n          field_6_zero           = in.readInt();\n          field_7_expression_len = in.readShort();\n          field_8_parsed_expr    = Ptg.createParsedExpressionTokens(field_7_expression_len, in);\n        } catch (java.lang.UnsupportedOperationException uoe)  {\n          throw new RecordFormatException(uoe);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "THROW_RAISE", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [4, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [5, 15], [6, 16], [7, 17], [8, 18], [10, 19], [11, 20], [12, 21], [13, 22], [14, 23], [4, 24], [24, 25], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 4], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 5], [16, 6], [17, 7], [18, 8], [19, 10], [20, 11], [21, 12], [22, 13], [23, 14], [24, 4], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "setRow", "code": "    public void setRow(int row)\n    {\n        field_1_row = row;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setColumn", "code": "    public void setColumn(short column)\n    {\n        field_2_column = column;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setXFIndex", "code": "    public void setXFIndex(short xf)\n    {\n        field_3_xf = xf;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValue", "code": "    public void setValue(double value)\n    {\n        field_4_value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOptions", "code": "    public void setOptions(short options)\n    {\n        field_5_options = options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setExpressionLength", "code": "    public void setExpressionLength(short len)\n    {\n        field_7_expression_len = len;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRow", "code": "    public int getRow()\n    {\n        return field_1_row;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getColumn", "code": "    public short getColumn()\n    {\n        return field_2_column;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXFIndex", "code": "    public short getXFIndex()\n    {\n        return field_3_xf;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getValue", "code": "    public double getValue()\n    {\n        return field_4_value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOptions", "code": "    public short getOptions()\n    {\n        return field_5_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSharedFormula", "code": "    public boolean isSharedFormula() {\n        return sharedFormula.isSet(field_5_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSharedFormula", "code": "    public void setSharedFormula(boolean flag) {\n    \tsharedFormula.setBoolean(field_5_options, flag);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExpressionLength", "code": "    public short getExpressionLength()\n    {\n        return field_7_expression_len;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "pushExpressionToken", "code": "    public void pushExpressionToken(Ptg ptg)\n    {\n        field_8_parsed_expr.push(ptg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popExpressionToken", "code": "    public Ptg popExpressionToken()\n    {\n        return ( Ptg ) field_8_parsed_expr.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "peekExpressionToken", "code": "    public Ptg peekExpressionToken()\n    {\n        return ( Ptg ) field_8_parsed_expr.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumberOfExpressionTokens", "code": "    public int getNumberOfExpressionTokens()\n    {\n        if (this.field_8_parsed_expr == null) {\n            return 0;\n        } else {\n            return field_8_parsed_expr.size();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getParsedExpression", "code": "    public List getParsedExpression()\n    {\n        return field_8_parsed_expr;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParsedExpression", "code": "    public void setParsedExpression(Stack ptgs) {\n      field_8_parsed_expr = ptgs;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A FORMULA RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        if (this.field_8_parsed_expr != null) {\n        int ptgSize = getTotalPtgSize();\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) (22 + ptgSize));\n        LittleEndian.putShort(data, 4 + offset, ( short ) getRow());\n        LittleEndian.putShort(data, 6 + offset, getColumn());\n        LittleEndian.putShort(data, 8 + offset, getXFIndex());\n        \n        if (Double.isNaN(this.getValue()) && value_data != null) {        \t\n\t\t\tSystem.arraycopy(value_data,0,data,10 + offset,value_data.length);\n        } else {\n\t\t\tLittleEndian.putDouble(data, 10 + offset, field_4_value);\n        }\n        \t\n        LittleEndian.putShort(data, 18 + offset, getOptions());\n        \n        LittleEndian.putInt(data, 20 + offset, 0);\n        LittleEndian.putShort(data, 24 + offset, getExpressionLength());\n        Ptg.serializePtgStack(field_8_parsed_expr, data, 26+offset);\n        } else {\n            System.arraycopy(all_data,0,data,offset,all_data.length);\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [7, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [10, 21], [11, 22], [12, 23], [12, 24], [13, 25], [13, 26], [14, 27], [14, 28], [15, 29], [15, 30], [16, 31], [16, 32], [17, 33], [17, 34], [18, 35], [19, 36], [20, 37], [8, 38], [22, 39], [24, 40], [26, 41], [28, 42], [7, 43], [7, 44], [29, 45], [32, 46], [34, 47], [18, 48], [35, 49], [19, 50], [36, 51], [37, 52], [43, 53], [44, 54], [44, 55], [30, 56], [50, 57], [53, 58], [54, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 7], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 10], [22, 11], [23, 12], [24, 12], [25, 13], [26, 13], [27, 14], [28, 14], [29, 15], [30, 15], [31, 16], [32, 16], [33, 17], [34, 17], [35, 18], [36, 19], [37, 20], [38, 8], [39, 22], [40, 24], [41, 26], [42, 28], [43, 7], [44, 7], [45, 29], [46, 32], [47, 34], [48, 18], [49, 35], [50, 19], [51, 36], [52, 37], [53, 43], [54, 44], [55, 44], [56, 30], [57, 50], [58, 53], [59, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        int retval =0;\n        \n        if (this.field_8_parsed_expr != null) {\n            retval = getTotalPtgSize() + 26;\n        } else {\n            retval =all_data.length;\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [3, 6], [2, 7], [2, 8], [8, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 3], [7, 2], [8, 2], [9, 8], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getTotalPtgSize", "code": "    private int getTotalPtgSize()\n    {\n        List list   = getParsedExpression();\n        int  retval = 0;\n\n        for (int k = 0; k < list.size(); k++)\n        {\n            Ptg ptg = ( Ptg ) list.get(k);\n\n            retval += ptg.getSize();\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [4, 9], [2, 10], [2, 11], [10, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 4], [10, 2], [11, 2], [12, 10], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "isBefore", "code": "    public boolean isBefore(CellValueRecordInterface i)\n    {\n        if (this.getRow() > i.getRow())\n        {\n            return false;\n        }\n        if ((this.getRow() == i.getRow())\n                && (this.getColumn() > i.getColumn()))\n        {\n            return false;\n        }\n        if ((this.getRow() == i.getRow())\n                && (this.getColumn() == i.getColumn()))\n        {\n            return false;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [2, 10], [7, 11], [7, 12], [3, 13], [8, 14], [8, 15], [4, 16], [9, 17], [10, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [9, 25], [11, 26], [12, 27], [14, 28], [15, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 2], [11, 7], [12, 7], [13, 3], [14, 8], [15, 8], [16, 4], [17, 9], [18, 10], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 9], [26, 11], [27, 12], [28, 14], [29, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "isAfter", "code": "    public boolean isAfter(CellValueRecordInterface i)\n    {\n        if (this.getRow() < i.getRow())\n        {\n            return false;\n        }\n        if ((this.getRow() == i.getRow())\n                && (this.getColumn() < i.getColumn()))\n        {\n            return false;\n        }\n        if ((this.getRow() == i.getRow())\n                && (this.getColumn() == i.getColumn()))\n        {\n            return false;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [2, 10], [7, 11], [7, 12], [3, 13], [8, 14], [8, 15], [4, 16], [9, 17], [10, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [9, 25], [11, 26], [12, 27], [14, 28], [15, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 2], [11, 7], [12, 7], [13, 3], [14, 8], [15, 8], [16, 4], [17, 9], [18, 10], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 9], [26, 11], [27, 12], [28, 14], [29, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "isEqual", "code": "    public boolean isEqual(CellValueRecordInterface i)\n    {\n        return ((this.getRow() == i.getRow())\n                && (this.getColumn() == i.getColumn()));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isInValueSection", "code": "    public boolean isInValueSection()\n    {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isValue", "code": "    public boolean isValue()\n    {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "compareTo", "code": "    public int compareTo(Object obj)\n    {\n        CellValueRecordInterface loc = ( CellValueRecordInterface ) obj;\n\n        if ((this.getRow() == loc.getRow())\n                && (this.getColumn() == loc.getColumn()))\n        {\n            return 0;\n        }\n        if (this.getRow() < loc.getRow())\n        {\n            return -1;\n        }\n        if (this.getRow() > loc.getRow())\n        {\n            return 1;\n        }\n        if (this.getColumn() < loc.getColumn())\n        {\n            return -1;\n        }\n        if (this.getColumn() > loc.getColumn())\n        {\n            return 1;\n        }\n        return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [5, 13], [6, 14], [2, 15], [10, 16], [3, 17], [11, 18], [4, 19], [12, 20], [5, 21], [13, 22], [6, 23], [14, 24], [14, 25], [15, 26], [10, 27], [17, 28], [11, 29], [19, 30], [12, 31], [21, 32], [13, 33], [23, 34], [24, 35], [25, 36], [24, 37], [25, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 4], [13, 5], [14, 6], [15, 2], [16, 10], [17, 3], [18, 11], [19, 4], [20, 12], [21, 5], [22, 13], [23, 6], [24, 14], [25, 14], [26, 15], [27, 10], [28, 17], [29, 11], [30, 19], [31, 12], [32, 21], [33, 13], [34, 23], [35, 24], [36, 25], [37, 24], [38, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "equals", "code": "    public boolean equals(Object obj)\n    {\n        if (!(obj instanceof CellValueRecordInterface))\n        {\n            return false;\n        }\n        CellValueRecordInterface loc = ( CellValueRecordInterface ) obj;\n\n        if ((this.getRow() == loc.getRow())\n                && (this.getColumn() == loc.getColumn()))\n        {\n            return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [2, 9], [7, 10], [7, 11], [4, 12], [9, 13], [10, 14], [11, 15], [12, 16], [10, 17], [11, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 2], [10, 7], [11, 7], [12, 4], [13, 9], [14, 10], [15, 11], [16, 12], [17, 10], [18, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n            buffer.append(\"[FORMULA]\\n\");\n            buffer.append(\"    .row       = \")\n                .append(Integer.toHexString(getRow())).append(\"\\n\");\n            buffer.append(\"    .column    = \")\n                .append(Integer.toHexString(getColumn()))\n                .append(\"\\n\");\n            buffer.append(\"    .xf              = \")\n                .append(Integer.toHexString(getXFIndex())).append(\"\\n\");\n            if (Double.isNaN(this.getValue()) && value_data != null)\n              buffer.append(\"    .value (NaN)     = \")\n                  .append(org.apache.poi.util.HexDump.dump(value_data,0,0))\n                  .append(\"\\n\");\n            else\n              buffer.append(\"    .value           = \").append(getValue())\n                  .append(\"\\n\");\n            buffer.append(\"    .options         = \").append(getOptions())\n                .append(\"\\n\");\n            buffer.append(\"      .alwaysCalc         = \").append(alwaysCalc.isSet(getOptions()))\n                .append(\"\\n\");\n            buffer.append(\"      .calcOnLoad         = \").append(calcOnLoad.isSet(getOptions()))\n                .append(\"\\n\");\n            buffer.append(\"      .sharedFormula         = \").append(sharedFormula.isSet(getOptions()))\n                .append(\"\\n\");\n            buffer.append(\"    .zero            = \").append(field_6_zero)\n                .append(\"\\n\");\n            buffer.append(\"    .expressionlength= \").append(getExpressionLength())\n                .append(\"\\n\");\n\n            if (field_8_parsed_expr != null) {\n                buffer.append(\"    .numptgsinarray  = \").append(field_8_parsed_expr.size())\n                    .append(\"\\n\");\n            \n\n                for (int k = 0; k < field_8_parsed_expr.size(); k++ ) {\n                   buffer.append(\"     Ptg(\")\n                        .append(k)\n                        .append(\")=\")\n                        .append(field_8_parsed_expr.get(k).toString())\n                        .append(\"\\n\")\n                        .append(((Ptg)field_8_parsed_expr.get(k)).toDebugString())\n                        .append(\"\\n\");\n                }\n            }else {\n                buffer.append(\"Formula full data \\n\")\n                    .append(org.apache.poi.util.HexDump.dump(this.all_data,0,0));\n            }\n            \n            \n            buffer.append(\"[/FORMULA]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [0, 15], [0, 16], [0, 17], [0, 18], [6, 19], [2, 20], [7, 21], [8, 22], [8, 23], [8, 24], [9, 25], [9, 26], [9, 27], [10, 28], [10, 29], [10, 30], [11, 31], [11, 32], [11, 33], [12, 34], [12, 35], [12, 36], [13, 37], [13, 38], [13, 39], [3, 40], [3, 41], [14, 42], [14, 43], [15, 44], [15, 45], [15, 46], [16, 47], [16, 48], [16, 49], [17, 50], [17, 51], [17, 52], [18, 53], [4, 54], [2, 55], [20, 56], [2, 57], [23, 58], [24, 59], [26, 60], [29, 61], [30, 62], [32, 63], [33, 64], [35, 65], [36, 66], [38, 67], [39, 68], [40, 69], [40, 70], [40, 71], [41, 72], [41, 73], [41, 74], [42, 75], [45, 76], [46, 77], [48, 78], [49, 79], [51, 80], [52, 81], [55, 82], [55, 83], [56, 84], [57, 85], [57, 86], [57, 87], [62, 88], [64, 89], [66, 90], [70, 91], [71, 92], [73, 93], [74, 94], [43, 95], [77, 96], [79, 97], [81, 98], [83, 99], [20, 100], [20, 101], [86, 102], [87, 103], [94, 104], [94, 105], [99, 106], [99, 107], [100, 108], [100, 109], [100, 110], [100, 111], [100, 112], [100, 113], [100, 114], [109, 115], [111, 116], [112, 117], [113, 118], [110, 119], [117, 120], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 0], [16, 0], [17, 0], [18, 0], [19, 6], [20, 2], [21, 7], [22, 8], [23, 8], [24, 8], [25, 9], [26, 9], [27, 9], [28, 10], [29, 10], [30, 10], [31, 11], [32, 11], [33, 11], [34, 12], [35, 12], [36, 12], [37, 13], [38, 13], [39, 13], [40, 3], [41, 3], [42, 14], [43, 14], [44, 15], [45, 15], [46, 15], [47, 16], [48, 16], [49, 16], [50, 17], [51, 17], [52, 17], [53, 18], [54, 4], [55, 2], [56, 20], [57, 2], [58, 23], [59, 24], [60, 26], [61, 29], [62, 30], [63, 32], [64, 33], [65, 35], [66, 36], [67, 38], [68, 39], [69, 40], [70, 40], [71, 40], [72, 41], [73, 41], [74, 41], [75, 42], [76, 45], [77, 46], [78, 48], [79, 49], [80, 51], [81, 52], [82, 55], [83, 55], [84, 56], [85, 57], [86, 57], [87, 57], [88, 62], [89, 64], [90, 66], [91, 70], [92, 71], [93, 73], [94, 74], [95, 43], [96, 77], [97, 79], [98, 81], [99, 83], [100, 20], [101, 20], [102, 86], [103, 87], [104, 94], [105, 94], [106, 99], [107, 99], [108, 100], [109, 100], [110, 100], [111, 100], [112, 100], [113, 100], [114, 100], [115, 109], [116, 111], [117, 112], [118, 113], [119, 110], [120, 117], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120]]}, {"function_name": "clone", "code": "    public Object clone() {\n      FormulaRecord rec = new FormulaRecord();\n      rec.field_1_row = field_1_row;\n      rec.field_2_column = field_2_column;\n      rec.field_3_xf = field_3_xf;\n      rec.field_4_value = field_4_value;\n      rec.field_5_options = field_5_options;\n      rec.field_6_zero = field_6_zero;\n      rec.field_7_expression_len = field_7_expression_len;\n      rec.field_8_parsed_expr = new Stack();\n      int size = 0;\n      if (field_8_parsed_expr != null)\n        size = field_8_parsed_expr.size();\n      for (int i=0; i< size; i++) {\n        Ptg ptg = (Ptg)((Ptg)field_8_parsed_expr.get(i)).clone();        \n        rec.field_8_parsed_expr.add(i, ptg);\n      }\n      rec.value_data = value_data;\n      rec.all_data = all_data;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [2, 18], [3, 19], [9, 20], [4, 21], [10, 22], [5, 23], [2, 24], [2, 25], [19, 26], [18, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 2], [19, 3], [20, 9], [21, 4], [22, 10], [23, 5], [24, 2], [25, 2], [26, 19], [27, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "FormulaRecord", "code": "    public FormulaRecord()\n    {\n        field_8_parsed_expr = new Stack();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FormulaRecord", "code": "    public FormulaRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.4-2466", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/spring/integration/adapter/config/CamelTargetAdapterParser.java", "language": "java", "name": "org.apache.camel.component.spring.integration.adapter.config.CamelTargetAdapterParser", "code": "public class CamelTargetAdapterParser extends AbstractCamelContextBeanDefinitionParaser {\n    protected Class<?> getBeanClass(Element element) {\n        return HandlerEndpoint.class;\n    }\n\n    protected boolean shouldGenerateId() {\n        return false;\n    }\n\n    protected boolean shouldGenerateIdAsFallback() {\n        return true;\n    }\n\n    protected void parseAttributes(Element element, ParserContext ctx, BeanDefinitionBuilder bean) {\n        NamedNodeMap atts = element.getAttributes();\n        for (int i = 0; i < atts.getLength(); i++) {\n            Attr node = (Attr) atts.item(i);\n            String val = node.getValue();\n            String name = node.getLocalName();\n            if (!name.equals(\"requestChannel\") && !name.equals(\"replyChannel\")) {\n                mapToProperty(bean, name, val);\n            }\n        }\n    }\n\n    protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {\n        BeanDefinitionBuilder adapterDefBuilder = BeanDefinitionBuilder.rootBeanDefinition(CamelTargetAdapter.class);\n        String requestChannel = element.getAttribute(\"requestChannel\");\n        String replyChannel = element.getAttribute(\"replyChannel\");\n        if (!StringUtils.hasText(requestChannel)) {\n            throw new ConfigurationException(\"The 'requestChannel' attribute is required.\");\n        }\n        parseAttributes(element, parserContext, adapterDefBuilder);\n        parseCamelContext(element, parserContext, adapterDefBuilder);\n\n        String adapterBeanName = parserContext.getReaderContext().generateBeanName(adapterDefBuilder.getBeanDefinition());\n        parserContext.registerBeanComponent(new BeanComponentDefinition(adapterDefBuilder.getBeanDefinition(), adapterBeanName));\n        builder.addConstructorArgReference(adapterBeanName);\n        builder.addPropertyValue(\"inputChannelName\", requestChannel);\n        if (StringUtils.hasText(replyChannel)) {\n            builder.addPropertyValue(\"outputChannelName\", replyChannel);", "functions": [{"function_name": "getBeanClass", "code": "    protected Class<?> getBeanClass(Element element) {\n        return HandlerEndpoint.class;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "shouldGenerateId", "code": "    protected boolean shouldGenerateId() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "shouldGenerateIdAsFallback", "code": "    protected boolean shouldGenerateIdAsFallback() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseAttributes", "code": "    protected void parseAttributes(Element element, ParserContext ctx, BeanDefinitionBuilder bean) {\n        NamedNodeMap atts = element.getAttributes();\n        for (int i = 0; i < atts.getLength(); i++) {\n            Attr node = (Attr) atts.item(i);\n            String val = node.getValue();\n            String name = node.getLocalName();\n            if (!name.equals(\"requestChannel\") && !name.equals(\"replyChannel\")) {\n                mapToProperty(bean, name, val);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [6, 11], [2, 12], [7, 13], [1, 14], [13, 15], [13, 16], [8, 17], [9, 18], [7, 19], [15, 20], [16, 21], [10, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 6], [12, 2], [13, 7], [14, 1], [15, 13], [16, 13], [17, 8], [18, 9], [19, 7], [20, 15], [21, 16], [22, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "doParse", "code": "    protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {\n        BeanDefinitionBuilder adapterDefBuilder = BeanDefinitionBuilder.rootBeanDefinition(CamelTargetAdapter.class);\n        String requestChannel = element.getAttribute(\"requestChannel\");\n        String replyChannel = element.getAttribute(\"replyChannel\");\n        if (!StringUtils.hasText(requestChannel)) {\n            throw new ConfigurationException(\"The 'requestChannel' attribute is required.\");\n        }\n        parseAttributes(element, parserContext, adapterDefBuilder);\n        parseCamelContext(element, parserContext, adapterDefBuilder);\n\n        String adapterBeanName = parserContext.getReaderContext().generateBeanName(adapterDefBuilder.getBeanDefinition());\n        parserContext.registerBeanComponent(new BeanComponentDefinition(adapterDefBuilder.getBeanDefinition(), adapterBeanName));\n        builder.addConstructorArgReference(adapterBeanName);\n        builder.addPropertyValue(\"inputChannelName\", requestChannel);\n        if (StringUtils.hasText(replyChannel)) {\n            builder.addPropertyValue(\"outputChannelName\", replyChannel);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [3, 16], [11, 17], [13, 18], [2, 19], [3, 20], [4, 21], [5, 22], [6, 23], [1, 24], [18, 25], [19, 26], [20, 27], [21, 28], [22, 29], [24, 30], [26, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 3], [17, 11], [18, 13], [19, 2], [20, 3], [21, 4], [22, 5], [23, 6], [24, 1], [25, 18], [26, 19], [27, 20], [28, 21], [29, 22], [30, 24], [31, 26], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}], "label": 0}
{"sample_id": "log4j-1.2-4990", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/AppenderSkeleton.java", "language": "java", "name": "org.apache.log4j.AppenderSkeleton", "code": "public abstract class AppenderSkeleton implements Appender, OptionHandler {\n\n  /** The layout variable does not need to be set if the appender\n      implementation has its own layout. */\n  protected Layout layout;\n\n  /** Appenders are named. */\n  protected String name;\n\n  /**\n     There is no level threshold filtering by default.  */\n  protected Priority threshold;\n\n  /** \n      It is assumed and enforced that errorHandler is never null.\n  */\n  protected ErrorHandler errorHandler = new OnlyOnceErrorHandler();\n\n  /** The first filter in the filter chain. Set to <code>null</code>\n      initially. */\n  protected Filter headFilter;\n  /** The last filter in the filter chain. */\n  protected Filter tailFilter;\n\n  /**\n     Is this appender closed? \n   */\n  protected boolean closed = false;\n\n    /**\n     * Create new instance.\n     */\n    public AppenderSkeleton() {\n        super();\n    }\n\n    /**\n     * Create new instance.\n     * Provided for compatibility with log4j 1.3.\n     *\n     * @param isActive true if appender is ready for use upon construction.\n     *                 Not used in log4j 1.2.x.\n     * @since 1.2.15\n     */\n    protected AppenderSkeleton(final boolean isActive) {\n        super();\n    }\n\n\n\n  /**\n     Derived appenders should override this method if option structure\n     requires it.  */\n  public\n  void activateOptions() {\n  }\n\n\n  /**\n     Add a filter to end of the filter list.\n\n     @since 0.9.0\n   */\n  public\n  void addFilter(Filter newFilter) {\n    if(headFilter == null) {\n      headFilter = tailFilter = newFilter;\n    } else {\n      tailFilter.setNext(newFilter);\n      tailFilter = newFilter;    \n    }\n  }\n\n  /**\n     Subclasses of <code>AppenderSkeleton</code> should implement this\n     method to perform actual logging. See also {@link #doAppend\n     AppenderSkeleton.doAppend} method.\n\n     @since 0.9.0\n  */\n  abstract\n  protected\n  void append(LoggingEvent event);\n\n\n  /**\n     Clear the filters chain.\n     \n     @since 0.9.0 */\n  public\n  void clearFilters() {\n    headFilter = tailFilter = null;\n  }\n\n  /**\n     Finalize this appender by calling the derived class'\n     <code>close</code> method.\n\n     @since 0.8.4 */\n  public\n  void finalize() {\n    // An appender might be closed then garbage collected. There is no\n    // point in closing twice.\n    if(this.closed) \n      return;\n\n    LogLog.debug(\"Finalizing appender named [\"+name+\"].\");\n    close();\n  }\n\n\n  /** \n      Return the currently set {@link ErrorHandler} for this\n      Appender.  \n\n      @since 0.9.0 */\n  public\n  ErrorHandler getErrorHandler() {\n    return this.errorHandler;\n  }\n\n\n  /**\n     Returns the head Filter.\n     \n     @since 1.1\n  */\n  public\n  Filter getFilter() {\n    return headFilter;\n  }\n\n  /** \n      Return the first filter in the filter chain for this\n      Appender. The return value may be <code>null</code> if no is\n      filter is set.\n      \n  */\n  public\n  final\n  Filter getFirstFilter() {\n    return headFilter;\n  }\n\n  /**\n     Returns the layout of this appender. The value may be null.\n  */\n  public\n  Layout getLayout() {\n    return layout;\n  }\n\n\n  /**\n     Returns the name of this appender.\n     @return name, may be null.\n   */\n  public\n  final\n  String getName() {\n    return this.name;\n  }\n\n  /**\n     Returns this appenders threshold level. See the {@link\n     #setThreshold} method for the meaning of this option.\n     \n     @since 1.1 */\n  public\n  Priority getThreshold() {\n    return threshold;\n  }\n\n\n  /**\n     Check whether the message level is below the appender's\n     threshold. If there is no threshold set, then the return value is\n     always <code>true</code>.\n\n  */\n  public\n  boolean isAsSevereAsThreshold(Priority priority) {\n    return ((threshold == null) || priority.isGreaterOrEqual(threshold));\n  }\n\n\n  /**\n    * This method performs threshold checks and invokes filters before\n    * delegating actual logging to the subclasses specific {@link\n    * AppenderSkeleton#append} method.\n    * */\n  public\n  synchronized \n  void doAppend(LoggingEvent event) {\n    if(closed) {\n      LogLog.error(\"Attempted to append to closed appender named [\"+name+\"].\");\n      return;\n    }\n    \n    if(!isAsSevereAsThreshold(event.getLevel())) {\n      return;\n    }\n\n    Filter f = this.headFilter;\n    \n    FILTER_LOOP:\n    while(f != null) {\n      switch(f.decide(event)) {\n      case Filter.DENY: return;\n      case Filter.ACCEPT: break FILTER_LOOP;\n      case Filter.NEUTRAL: f = f.getNext();\n      }\n    }\n    \n    this.append(event);    \n  }\n\n  /** \n      Set the {@link ErrorHandler} for this Appender.\n      @since 0.9.0\n  */\n  public\n  synchronized\n  void setErrorHandler(ErrorHandler eh) {\n    if(eh == null) {\n      // We do not throw exception here since the cause is probably a\n      // bad config file.\n      LogLog.warn(\"You have tried to set a null error-handler.\");\n    } else {\n      this.errorHandler = eh;\n    }\n  }\n\n  /**\n     Set the layout for this appender. Note that some appenders have\n     their own (fixed) layouts or do not use one. For example, the\n     {@link org.apache.log4j.net.SocketAppender} ignores the layout set\n     here. \n  */\n  public\n  void setLayout(Layout layout) {\n    this.layout = layout;\n  }\n\n  \n  /**\n     Set the name of this Appender.\n   */\n  public\n  void setName(String name) {\n    this.name = name;\n  }\n\n\n  /**\n     Set the threshold level. All log events with lower level\n     than the threshold level are ignored by the appender.\n     \n     <p>In configuration files this option is specified by setting the\n     value of the <b>Threshold</b> option to a level\n     string, such as \"DEBUG\", \"INFO\" and so on.\n     \n     @since 0.8.3 */\n  public\n  void setThreshold(Priority threshold) {\n    this.threshold = threshold;", "functions": [{"function_name": "activateOptions", "code": "  void activateOptions() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "addFilter", "code": "  void addFilter(Filter newFilter) {\n    if(headFilter == null) {\n      headFilter = tailFilter = newFilter;\n    } else {\n      tailFilter.setNext(newFilter);\n      tailFilter = newFilter;    ", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "append", "code": "  void append(LoggingEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clearFilters", "code": "  void clearFilters() {\n    headFilter = tailFilter = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "finalize", "code": "  void finalize() {\n    // An appender might be closed then garbage collected. There is no\n    // point in closing twice.\n    if(this.closed) \n      return;\n\n    LogLog.debug(\"Finalizing appender named [\"+name+\"].\");\n    close();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getErrorHandler", "code": "  ErrorHandler getErrorHandler() {\n    return this.errorHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFilter", "code": "  Filter getFilter() {\n    return headFilter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstFilter", "code": "  Filter getFirstFilter() {\n    return headFilter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLayout", "code": "  Layout getLayout() {\n    return layout;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "  String getName() {\n    return this.name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getThreshold", "code": "  Priority getThreshold() {\n    return threshold;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isAsSevereAsThreshold", "code": "  boolean isAsSevereAsThreshold(Priority priority) {\n    return ((threshold == null) || priority.isGreaterOrEqual(threshold));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "doAppend", "code": "  void doAppend(LoggingEvent event) {\n    if(closed) {\n      LogLog.error(\"Attempted to append to closed appender named [\"+name+\"].\");\n      return;\n    }\n    \n    if(!isAsSevereAsThreshold(event.getLevel())) {\n      return;\n    }\n\n    Filter f = this.headFilter;\n    \n    FILTER_LOOP:\n    while(f != null) {\n      switch(f.decide(event)) {\n      case Filter.DENY: return;\n      case Filter.ACCEPT: break FILTER_LOOP;\n      case Filter.NEUTRAL: f = f.getNext();\n      }\n    }\n    \n    this.append(event);    ", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "SWITCH", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "CALL", "BREAK_CONTINUE", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [0, 8], [1, 9], [6, 10], [3, 11], [7, 12], [4, 13], [9, 14], [4, 15], [9, 16], [9, 17], [15, 18], [9, 19], [18, 20], [18, 21], [19, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 0], [9, 1], [10, 6], [11, 3], [12, 7], [13, 4], [14, 9], [15, 4], [16, 9], [17, 9], [18, 15], [19, 9], [20, 18], [21, 18], [22, 19], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "setErrorHandler", "code": "  void setErrorHandler(ErrorHandler eh) {\n    if(eh == null) {\n      // We do not throw exception here since the cause is probably a\n      // bad config file.\n      LogLog.warn(\"You have tried to set a null error-handler.\");\n    } else {\n      this.errorHandler = eh;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setLayout", "code": "  void setLayout(Layout layout) {\n    this.layout = layout;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setName", "code": "  void setName(String name) {\n    this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setThreshold", "code": "  void setThreshold(Priority threshold) {\n    this.threshold = threshold;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AppenderSkeleton", "code": "    public AppenderSkeleton() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AppenderSkeleton", "code": "    protected AppenderSkeleton(final boolean isActive) {\n        super();", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ant-1.3-103", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/TaskAdapter.java", "language": "java", "name": "org.apache.tools.ant.TaskAdapter", "code": "public class TaskAdapter extends Task {\n\n    Object proxy;\n    \n    /**\n     * Do the execution.\n     */\n    public void execute() throws BuildException {\n        Method executeM=null;\n        try {\n            Class c=proxy.getClass();\n            executeM=c.getMethod( \"execute\", new Class[0] );\n            if( executeM == null ) {\n                log(\"No execute in \" + proxy.getClass(), Project.MSG_ERR);\n                throw new BuildException(\"No execute in \" + proxy.getClass());\n            }\n            executeM.invoke(proxy, null);\n            return; \n        } catch( Exception ex ) {\n            log(\"Error in \" + proxy.getClass(), Project.MSG_ERR);\n            throw new BuildException( ex );\n        }\n\n    }\n    \n    /**\n     * Set the target object class\n     */\n    public void setProxy(Object o) {\n        this.proxy = o;\n    }\n\n    public Object getProxy() {\n        return this.proxy ;", "functions": [{"function_name": "execute", "code": "    public void execute() throws BuildException {\n        Method executeM=null;\n        try {\n            Class c=proxy.getClass();\n            executeM=c.getMethod( \"execute\", new Class[0] );\n            if( executeM == null ) {\n                log(\"No execute in \" + proxy.getClass(), Project.MSG_ERR);\n                throw new BuildException(\"No execute in \" + proxy.getClass());\n            }\n            executeM.invoke(proxy, null);\n            return; \n        } catch( Exception ex ) {\n            log(\"Error in \" + proxy.getClass(), Project.MSG_ERR);\n            throw new BuildException( ex );", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "CATCH", "RETURN", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [1, 8], [5, 9], [1, 10], [2, 11], [7, 12], [3, 13], [8, 14], [5, 15], [9, 16], [10, 17], [6, 18], [13, 19], [15, 20], [5, 21], [17, 22], [19, 23], [19, 24], [20, 25], [21, 26], [17, 27], [25, 28], [25, 29], [26, 30], [26, 31], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 1], [9, 5], [10, 1], [11, 2], [12, 7], [13, 3], [14, 8], [15, 5], [16, 9], [17, 10], [18, 6], [19, 13], [20, 15], [21, 5], [22, 17], [23, 19], [24, 19], [25, 20], [26, 21], [27, 17], [28, 25], [29, 25], [30, 26], [31, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "setProxy", "code": "    public void setProxy(Object o) {\n        this.proxy = o;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProxy", "code": "    public Object getProxy() {\n        return this.proxy ;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-1.5-5214", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/formula/Ptg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.Ptg", "code": "public abstract class Ptg\n{\n\n    /** Creates new Ptg */\n    \n    public Ptg()\n    {\n    }\n    \n    \n    \n    /*\n    private static List ptgsToList(Class [] ptgs)\n    {\n        List         result = new ArrayList();\n        Constructor constructor;\n\n        for (int i = 0; i < ptgs.length; i++)\n        {\n            Class ptg = null;\n \n            ptg = ptgs[ i ];\n            try\n            {\n                \n                constructor = ptg.getConstructor(new Class[]\n                {\n                    byte [].class, int.class\n                });\n            }\n            catch (Exception illegalArgumentException)\n            {\n                throw new RuntimeException(\n                    \"Now that didn't work nicely at all (couldn't do that there list of ptgs)\");\n            }\n            result.add(constructor);\n        }\n        return result;\n    }*/\n    \n\n    public static Ptg createPtg(byte [] data, int offset)\n    {\n        byte id     = data[ offset + 0 ];\n        Ptg  retval = null;\n\n        System.out.println(\"PTG = \" + Integer.toHexString(id) + \" (\" + id\n                           + \")\");\n        switch (id)\n        {\n\n            case AddPtg.sid :\n                retval = new AddPtg(data, offset);\n                break;\n\n            case SubtractPtg.sid :\n                retval = new SubtractPtg(data, offset);\n                break;\n\n            case IntPtg.sid :\n                retval = new IntPtg(data, offset);\n                break;\n\n            case DividePtg.sid :\n                retval = new DividePtg(data, offset);\n                break;\n\n            case MultiplyPtg.sid :\n                retval = new MultiplyPtg(data, offset);\n                break;\n\n            case PowerPtg.sid :\n                retval = new PowerPtg(data, offset);\n                break;\n\n            case AreaPtg.sid :\n                retval = new AreaPtg(data, offset);\n                break;\n\n            case MemErrPtg.sid :\n                retval = new MemErrPtg(data, offset);\n                break;\n\n            case AttrPtg.sid :\n                retval = new AttrPtg(data, offset);\n                break;\n\n            case ValueReferencePtg.sid :\n                retval = new ValueReferencePtg(data, offset);\n                break;\n\n\n            case ValueVariableFunctionPtg.sid :\n                retval = new ValueVariableFunctionPtg(data, offset);\n                break;\n\n            case NamePtg.sid :\n                retval = new NamePtg(data, offset);\n                break;\n\n            case ExpPtg.sid :\n                retval = new ExpPtg(data, offset);\n                break;\n\n            default :\n\n                throw new RuntimeException(\"Unknown PTG = \"\n                                           + Integer.toHexString(( int ) id)\n                                           + \" (\" + ( int ) id + \")\");\n        }\n        return retval;\n    }\n\n    public abstract int getSize();\n\n    public final byte [] getBytes()\n    {\n        int    size  = getSize();\n        byte[] bytes = new byte[ size ];\n\n        writeBytes(bytes, 0);\n        return bytes;\n    }\n\n    public abstract void writeBytes(byte [] array, int offset);\n\n    public abstract String toFormulaString();\n    \n    /**\n     * Ptg's should override this\n     */\n    \n    public int getPrecedence() {\n        return 100;\n    }\n    \n    public int getStringLength() {\n        return 0;", "functions": [{"function_name": "createPtg", "code": "    public static Ptg createPtg(byte [] data, int offset)\n    {\n        byte id     = data[ offset + 0 ];\n        Ptg  retval = null;\n\n        System.out.println(\"PTG = \" + Integer.toHexString(id) + \" (\" + id\n                           + \")\");\n        switch (id)\n        {\n\n            case AddPtg.sid :\n                retval = new AddPtg(data, offset);\n                break;\n\n            case SubtractPtg.sid :\n                retval = new SubtractPtg(data, offset);\n                break;\n\n            case IntPtg.sid :\n                retval = new IntPtg(data, offset);\n                break;\n\n            case DividePtg.sid :\n                retval = new DividePtg(data, offset);\n                break;\n\n            case MultiplyPtg.sid :\n                retval = new MultiplyPtg(data, offset);\n                break;\n\n            case PowerPtg.sid :\n                retval = new PowerPtg(data, offset);\n                break;\n\n            case AreaPtg.sid :\n                retval = new AreaPtg(data, offset);\n                break;\n\n            case MemErrPtg.sid :\n                retval = new MemErrPtg(data, offset);\n                break;\n\n            case AttrPtg.sid :\n                retval = new AttrPtg(data, offset);\n                break;\n\n            case ValueReferencePtg.sid :\n                retval = new ValueReferencePtg(data, offset);\n                break;\n\n\n            case ValueVariableFunctionPtg.sid :\n                retval = new ValueVariableFunctionPtg(data, offset);\n                break;\n\n            case NamePtg.sid :\n                retval = new NamePtg(data, offset);\n                break;\n\n            case ExpPtg.sid :\n                retval = new ExpPtg(data, offset);\n                break;\n\n            default :\n\n                throw new RuntimeException(\"Unknown PTG = \"\n                                           + Integer.toHexString(( int ) id)\n                                           + \" (\" + ( int ) id + \")\");\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [7, 22], [3, 23], [8, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [22, 38], [22, 39], [24, 40], [25, 41], [26, 42], [27, 43], [28, 44], [29, 45], [30, 46], [31, 47], [32, 48], [33, 49], [34, 50], [35, 51], [36, 52], [37, 53], [39, 54], [4, 55], [40, 56], [40, 57], [54, 58], [54, 59], [55, 60], [57, 61], [59, 62], [59, 63], [61, 64], [61, 65], [65, 66], [65, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 7], [23, 3], [24, 8], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 22], [39, 22], [40, 24], [41, 25], [42, 26], [43, 27], [44, 28], [45, 29], [46, 30], [47, 31], [48, 32], [49, 33], [50, 34], [51, 35], [52, 36], [53, 37], [54, 39], [55, 4], [56, 40], [57, 40], [58, 54], [59, 54], [60, 55], [61, 57], [62, 59], [63, 59], [64, 61], [65, 61], [66, 65], [67, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "getSize", "code": "    public abstract int getSize();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getBytes", "code": "    public final byte [] getBytes()\n    {\n        int    size  = getSize();\n        byte[] bytes = new byte[ size ];\n\n        writeBytes(bytes, 0);\n        return bytes;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "writeBytes", "code": "    public abstract void writeBytes(byte [] array, int offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public abstract String toFormulaString();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getPrecedence", "code": "    public int getPrecedence() {\n        return 100;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStringLength", "code": "    public int getStringLength() {\n        return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Ptg", "code": "    public Ptg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.6-3125", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/dataformat/JaxbDataFormat.java", "language": "java", "name": "org.apache.camel.model.dataformat.JaxbDataFormat", "code": "@XmlRootElement(name = \"jaxb\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class JaxbDataFormat extends DataFormatType {\n    @XmlAttribute(required = false)\n    private String contextPath;\n    @XmlAttribute(required = false)\n    private Boolean prettyPrint;\n    @XmlAttribute(required = false)\n    private Boolean ignoreJAXBElement;\n\n    public JaxbDataFormat() {\n        super(\"org.apache.camel.converter.jaxb.JaxbDataFormat\");\n    }\n\n    public JaxbDataFormat(boolean prettyPrint) {\n        this();\n        setPrettyPrint(prettyPrint);\n    }\n\n    public String getContextPath() {\n        return contextPath;\n    }\n\n    public void setContextPath(String contextPath) {\n        this.contextPath = contextPath;\n    }\n\n    public Boolean getPrettyPrint() {\n        return prettyPrint;\n    }\n\n    public void setPrettyPrint(Boolean prettyPrint) {\n        this.prettyPrint = prettyPrint;\n    }\n    \n    public Boolean getIgnoreJAXBElement() {\n        return ignoreJAXBElement;\n    }\n    \n    public void setIgnoreJAXBElement(Boolean ignoreJAXBElement) {\n        this.ignoreJAXBElement = ignoreJAXBElement;\n    }\n    \n    @Override\n    protected void configureDataFormat(DataFormat dataFormat) {\n        Boolean answer = ObjectHelper.toBoolean(getPrettyPrint());\n        if (answer != null && !answer.booleanValue()) {\n            setProperty(dataFormat, \"prettyPrint\", Boolean.FALSE);\n            setProperty(dataFormat, \"prettyPrint\", Boolean.TRUE);\n        }\n        answer = ObjectHelper.toBoolean(getIgnoreJAXBElement());\n        if (answer != null && !answer.booleanValue()) {\n            setProperty(dataFormat, \"ignoreJAXBElement\", Boolean.FALSE);\n            setProperty(dataFormat, \"ignoreJAXBElement\", Boolean.TRUE);\n        } \n        setProperty(dataFormat, \"contextPath\", contextPath);", "functions": [{"function_name": "getContextPath", "code": "    public String getContextPath() {\n        return contextPath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setContextPath", "code": "    public void setContextPath(String contextPath) {\n        this.contextPath = contextPath;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPrettyPrint", "code": "    public Boolean getPrettyPrint() {\n        return prettyPrint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPrettyPrint", "code": "    public void setPrettyPrint(Boolean prettyPrint) {\n        this.prettyPrint = prettyPrint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIgnoreJAXBElement", "code": "    public Boolean getIgnoreJAXBElement() {\n        return ignoreJAXBElement;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreJAXBElement", "code": "    public void setIgnoreJAXBElement(Boolean ignoreJAXBElement) {\n        this.ignoreJAXBElement = ignoreJAXBElement;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "configureDataFormat", "code": "    @Override\n    protected void configureDataFormat(DataFormat dataFormat) {\n        Boolean answer = ObjectHelper.toBoolean(getPrettyPrint());\n        if (answer != null && !answer.booleanValue()) {\n            setProperty(dataFormat, \"prettyPrint\", Boolean.FALSE);\n            setProperty(dataFormat, \"prettyPrint\", Boolean.TRUE);\n        }\n        answer = ObjectHelper.toBoolean(getIgnoreJAXBElement());\n        if (answer != null && !answer.booleanValue()) {\n            setProperty(dataFormat, \"ignoreJAXBElement\", Boolean.FALSE);\n            setProperty(dataFormat, \"ignoreJAXBElement\", Boolean.TRUE);\n        } \n        setProperty(dataFormat, \"contextPath\", contextPath);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [5, 9], [6, 10], [6, 11], [7, 12], [8, 13], [8, 14], [3, 15], [1, 16], [1, 17], [11, 18], [12, 19], [2, 20], [2, 21], [14, 22], [15, 23], [16, 24], [17, 25], [20, 26], [21, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 5], [10, 6], [11, 6], [12, 7], [13, 8], [14, 8], [15, 3], [16, 1], [17, 1], [18, 11], [19, 12], [20, 2], [21, 2], [22, 14], [23, 15], [24, 16], [25, 17], [26, 20], [27, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "JaxbDataFormat", "code": "    public JaxbDataFormat() {\n        super(\"org.apache.camel.converter.jaxb.JaxbDataFormat\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "JaxbDataFormat", "code": "    public JaxbDataFormat(boolean prettyPrint) {\n        this();\n        setPrettyPrint(prettyPrint);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-3010", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/test/TestEndpoint.java", "language": "java", "name": "org.apache.camel.component.test.TestEndpoint", "code": "public class TestEndpoint extends MockEndpoint implements Service {\n    private static final transient Log LOG = LogFactory.getLog(TestEndpoint.class);\n    private final Endpoint expectedMessageEndpoint;\n    private long timeout = 2000L;\n\n    public TestEndpoint(String endpointUri, Component component, Endpoint expectedMessageEndpoint) {\n        super(endpointUri, component);\n        this.expectedMessageEndpoint = expectedMessageEndpoint;\n    }\n\n    public TestEndpoint(String endpointUri, Endpoint expectedMessageEndpoint) {\n        super(endpointUri);\n        this.expectedMessageEndpoint = expectedMessageEndpoint;\n    }\n\n    public void start() throws Exception {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Consuming expected messages from: \" + expectedMessageEndpoint);\n        }\n        final List expectedBodies = new ArrayList();\n        EndpointHelper.pollEndpoint(expectedMessageEndpoint, new Processor() {\n            public void process(Exchange exchange) throws Exception {\n                Object body = getInBody(exchange);\n                expectedBodies.add(body);\n            }\n        }, timeout);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Received: \" + expectedBodies.size() + \" expected message(s) from: \" + expectedMessageEndpoint);\n        }\n        expectedBodiesReceived(expectedBodies);\n    }\n\n    public void stop() throws Exception {\n    }\n\n    /**\n     * This method allows us to convert or coerce the expected message body into some other type\n     */\n    protected Object getInBody(Exchange exchange) {\n        return exchange.getIn().getBody();", "functions": [{"function_name": "start", "code": "    public void start() throws Exception {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Consuming expected messages from: \" + expectedMessageEndpoint);\n        }\n        final List expectedBodies = new ArrayList();\n        EndpointHelper.pollEndpoint(expectedMessageEndpoint, new Processor() {\n            public void process(Exchange exchange) throws Exception {\n                Object body = getInBody(exchange);\n                expectedBodies.add(body);\n            }\n        }, timeout);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Received: \" + expectedBodies.size() + \" expected message(s) from: \" + expectedMessageEndpoint);\n        }\n        expectedBodiesReceived(expectedBodies);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL", "BINARY_OP", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [3, 7], [6, 8], [2, 9], [1, 10], [8, 11], [3, 12], [10, 13], [11, 14], [11, 15], [12, 16], [13, 17], [11, 18], [16, 19], [17, 20], [17, 21], [14, 22], [21, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 3], [8, 6], [9, 2], [10, 1], [11, 8], [12, 3], [13, 10], [14, 11], [15, 11], [16, 12], [17, 13], [18, 11], [19, 16], [20, 17], [21, 17], [22, 14], [23, 21], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "stop", "code": "    public void stop() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getInBody", "code": "    protected Object getInBody(Exchange exchange) {\n        return exchange.getIn().getBody();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "TestEndpoint", "code": "    public TestEndpoint(String endpointUri, Component component, Endpoint expectedMessageEndpoint) {\n        super(endpointUri, component);\n        this.expectedMessageEndpoint = expectedMessageEndpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "TestEndpoint", "code": "    public TestEndpoint(String endpointUri, Endpoint expectedMessageEndpoint) {\n        super(endpointUri);\n        this.expectedMessageEndpoint = expectedMessageEndpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.4-2337", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/spring/util/SimpleRouteBuilder.java", "language": "java", "name": "org.apache.camel.spring.util.SimpleRouteBuilder", "code": "public class SimpleRouteBuilder extends RouteBuilder {\n    private List<String> fromUris = new ArrayList<String>();\n    private List<String> toUris = new ArrayList<String>();\n    private Class beanType;\n    private String beanClass;\n    private String beanRef;\n    private String beanMethod;\n\n    public void configure() throws Exception {\n        if (fromUris.isEmpty()) {\n            throw new IllegalArgumentException(\"the fromUris property must contain at least one valid URI\");\n        }\n        for (String fromUri : fromUris) {\n            ProcessorType route = from(fromUri);\n\n            addBeanCall(route);\n            for (String toUri : toUris) {\n                route = route.to(toUri);\n            }\n        }\n    }\n\n    public void setFromUri(String uri) {\n        setFromUris(singletonList(uri));\n    }\n\n    public void setToUri(String uri) {\n        setToUris(singletonList(uri));\n    }\n\n    public List<String> getFromUris() {\n        return fromUris;\n    }\n\n    public void setFromUris(List<String> fromUris) {\n        this.fromUris = fromUris;\n    }\n\n    public List<String> getToUris() {\n        return toUris;\n    }\n\n    public void setToUris(List<String> toUris) {\n        this.toUris = toUris;\n    }\n\n    public String getBeanClass() {\n        return beanClass;\n    }\n\n    public void setBeanClass(String beanClass) {\n        this.beanClass = beanClass;\n    }\n\n    public String getBeanRef() {\n        return beanRef;\n    }\n\n    public void setBeanRef(String beanRef) {\n        this.beanRef = beanRef;\n    }\n\n    public Class getBeanType() {\n        if (beanType == null) {\n            if (beanClass != null) {\n                beanType = ObjectHelper.loadClass(beanClass, getClass().getClassLoader());\n            }\n        }\n        return beanType;\n    }\n\n    public void setBeanType(Class beanType) {\n        this.beanType = beanType;\n    }\n\n    public String getBeanMethod() {\n        return beanMethod;\n    }\n\n    public void setBeanMethod(String beanMethod) {\n        this.beanMethod = beanMethod;\n    }\n\n\n    protected void addBeanCall(ProcessorType route) {\n        Class type = getBeanType();\n        if (type != null) {\n            if (beanMethod != null) {\n                route = route.bean(type, beanMethod);\n            } else {\n                route = route.bean(type);\n            }\n        } else if (beanRef != null) {\n            if (beanMethod != null) {\n                route = route.beanRef(beanRef, beanMethod);\n            } else {\n                route = route.beanRef(beanRef);\n            }\n        }\n    }\n\n    protected List<String> singletonList(String value) {\n        List<String> uris = new ArrayList<String>();\n        uris.add(value);\n        return uris;", "functions": [{"function_name": "configure", "code": "    public void configure() throws Exception {\n        if (fromUris.isEmpty()) {\n            throw new IllegalArgumentException(\"the fromUris property must contain at least one valid URI\");\n        }\n        for (String fromUri : fromUris) {\n            ProcessorType route = from(fromUri);\n\n            addBeanCall(route);\n            for (String toUri : toUris) {\n                route = route.to(toUri);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "CALL", "LOOP", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [1, 5], [2, 6], [1, 7], [6, 8], [5, 9], [8, 10], [4, 11], [11, 12], [1, 0], [2, 0], [3, 2], [4, 1], [5, 1], [6, 2], [7, 1], [8, 6], [9, 5], [10, 8], [11, 4], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setFromUri", "code": "    public void setFromUri(String uri) {\n        setFromUris(singletonList(uri));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setToUri", "code": "    public void setToUri(String uri) {\n        setToUris(singletonList(uri));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFromUris", "code": "    public List<String> getFromUris() {\n        return fromUris;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFromUris", "code": "    public void setFromUris(List<String> fromUris) {\n        this.fromUris = fromUris;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getToUris", "code": "    public List<String> getToUris() {\n        return toUris;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setToUris", "code": "    public void setToUris(List<String> toUris) {\n        this.toUris = toUris;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeanClass", "code": "    public String getBeanClass() {\n        return beanClass;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBeanClass", "code": "    public void setBeanClass(String beanClass) {\n        this.beanClass = beanClass;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeanRef", "code": "    public String getBeanRef() {\n        return beanRef;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBeanRef", "code": "    public void setBeanRef(String beanRef) {\n        this.beanRef = beanRef;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeanType", "code": "    public Class getBeanType() {\n        if (beanType == null) {\n            if (beanClass != null) {\n                beanType = ObjectHelper.loadClass(beanClass, getClass().getClassLoader());\n            }\n        }\n        return beanType;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [4, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [8, 4], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setBeanType", "code": "    public void setBeanType(Class beanType) {\n        this.beanType = beanType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeanMethod", "code": "    public String getBeanMethod() {\n        return beanMethod;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBeanMethod", "code": "    public void setBeanMethod(String beanMethod) {\n        this.beanMethod = beanMethod;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addBeanCall", "code": "    protected void addBeanCall(ProcessorType route) {\n        Class type = getBeanType();\n        if (type != null) {\n            if (beanMethod != null) {\n                route = route.bean(type, beanMethod);\n            } else {\n                route = route.bean(type);\n            }\n        } else if (beanRef != null) {\n            if (beanMethod != null) {\n                route = route.beanRef(beanRef, beanMethod);\n            } else {\n                route = route.beanRef(beanRef);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [2, 9], [4, 10], [6, 11], [7, 12], [10, 13], [12, 14], [13, 15], [7, 16], [7, 17], [10, 18], [10, 19], [16, 20], [17, 21], [18, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 2], [10, 4], [11, 6], [12, 7], [13, 10], [14, 12], [15, 13], [16, 7], [17, 7], [18, 10], [19, 10], [20, 16], [21, 17], [22, 18], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "singletonList", "code": "    protected List<String> singletonList(String value) {\n        List<String> uris = new ArrayList<String>();\n        uris.add(value);\n        return uris;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-4.0-3951", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "com/microstar/xml/HandlerBase.java", "language": "java", "name": "com.microstar.xml.HandlerBase", "code": "public class HandlerBase implements XmlHandler {\n\n  /**\n    * Handle the start of the document.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#startDocument\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void startDocument () \n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Handle the end of the document.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#endDocument\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void endDocument ()\n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Resolve an external entity.\n    * <p>The default implementation simply returns the supplied\n    * system identifier.\n    * @see com.microstar.xml.XmlHandler#resolveEntity\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public Object resolveEntity (String publicId, String systemId) \n    throws java.lang.Exception\n  {\n    return null;\n  }\n\n\n  /**\n    * Handle the start of an external entity.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#startExternalEntity\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void startExternalEntity (String systemId)\n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Handle the end of an external entity.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#endExternalEntity\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void endExternalEntity (String systemId)\n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Handle a document type declaration.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#doctypeDecl\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void doctypeDecl (String name, String publicId, String systemId)\n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Handle an attribute assignment.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#attribute\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void attribute (String aname, String value, boolean isSpecified)\n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Handle the start of an element.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#startElement\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void startElement (String elname)\n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Handle the end of an element.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#endElement\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void endElement (String elname)\n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Handle character data.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#charData\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void charData (char ch[], int start, int length)\n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Handle ignorable whitespace.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#ignorableWhitespace\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void ignorableWhitespace (char ch[], int start, int length)\n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Handle a processing instruction.\n    * <p>The default implementation does nothing.\n    * @see com.microstar.xml.XmlHandler#processingInstruction\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void processingInstruction (String target, String data)\n    throws java.lang.Exception\n  {\n  }\n\n  /**\n    * Throw an exception for a fatal error.\n    * <p>The default implementation throws <code>XmlException</code>.\n    * @see com.microstar.xml.XmlHandler#error\n    * @exception com.microstar.xml.XmlException A specific parsing error.\n    * @exception java.lang.Exception Derived methods may throw exceptions.\n    */\n  public void error (String message, String systemId, int line, int column)\n    throws XmlException, java.lang.Exception\n  {\n    throw new XmlException(message, systemId, line, column);", "functions": [{"function_name": "startDocument", "code": "  public void startDocument () ", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endDocument", "code": "  public void endDocument ()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "resolveEntity", "code": "  public Object resolveEntity (String publicId, String systemId) \n    throws java.lang.Exception\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startExternalEntity", "code": "  public void startExternalEntity (String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endExternalEntity", "code": "  public void endExternalEntity (String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doctypeDecl", "code": "  public void doctypeDecl (String name, String publicId, String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "attribute", "code": "  public void attribute (String aname, String value, boolean isSpecified)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startElement", "code": "  public void startElement (String elname)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endElement", "code": "  public void endElement (String elname)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "charData", "code": "  public void charData (char ch[], int start, int length)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace (char ch[], int start, int length)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction (String target, String data)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "error", "code": "  public void error (String message, String systemId, int line, int column)\n    throws XmlException, java.lang.Exception\n  {\n    throw new XmlException(message, systemId, line, column);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.6-7719", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/utils/synthetic/reflection/Field.java", "language": "java", "name": "org.apache.xml.utils.synthetic.reflection.Field", "code": "public class Field extends Object implements Member\n{\n\n  /** Field name, initializer          */\n  public String name, initializer = null;\n\n  /** Field modifiers          */\n  int modifiers;\n\n  /** Field realfield          */\n  java.lang.reflect.Field realfield = null;\n\n  /** Field declaringClass, type          */\n  Class declaringClass, type;\n\n  /**\n   * Proxy constructor \n   *\n   * @param realfield\n   * @param declaringClass\n   */\n  public Field(java.lang.reflect.Field realfield,\n               org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n\n    this(realfield.getName(), declaringClass);\n\n    this.realfield = realfield;\n    this.type =\n      org.apache.xml.utils.synthetic.Class.forClass(realfield.getType());\n  }\n\n  /**\n   * Synthesis constructor \n   *\n   * @param name\n   * @param declaringClass\n   */\n  public Field(String name,\n               org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n    this.name = name;\n    this.declaringClass = declaringClass;\n  }\n\n  /**\n   * Compares this Field against the specified object.\n   * Returns true if the objects are the same. Two\n   * Fields are the same if they were declared by the\n   * same class and have the same name and type.\n   *\n   * @param obj\n   *\n   */\n  public boolean equals(Object obj)\n  {\n\n    if (realfield != null)\n      return realfield.equals(obj);\n    else if (obj instanceof Field)\n    {\n      Field objf = (Field) obj;\n\n      return (declaringClass.equals(objf.declaringClass)\n              && name.equals(objf.name) && type.equals(objf.type));\n    }\n    else\n      return false;\n  }\n\n  /**\n   * Returns the value of the field represented by this\n   * Field, on the specified object. The value is\n   * automatically wrapped in an object if it has a\n   * primitive type.\n   * <p>\n   * The underlying field's value is obtained as follows:\n   * <p>\n   * If the underlying field is a static field, the object\n   * argument is ignored; it may be null.\n   * <p>\n   * Otherwise, the underlying field is an instance\n   * field. If the specified object argument is null, the\n   * method throws a NullPointerException. If the\n   * specified object is not an instance of the class or\n   * interface declaring the underlying field, the\n   * method throws an IllegalArgumentException.\n   * <p>\n   * If this Field object enforces Java language access\n   * control, and the underlying field is inaccessible,\n   * the method throws an IllegalAccessException.\n   * <p>\n   * Otherwise, the value is retrieved from the\n   * underlying instance or static field. If the field has a\n   * primitive type, the value is wrapped in an object\n   * before being returned, otherwise it is returned as\n   * is.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field.\n   * @throws NullPointerException\n   * if the specified object is null.\n   */\n  public Object get(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.get(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a boolean on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public boolean getBoolean(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getBoolean(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a byte on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public byte getByte(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getByte(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a char on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public char getChar(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getChar(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Returns the Class object representing the class or\n   * interface that declares the field represented by this\n   * Field object.\n   *\n   */\n  public org.apache.xml.utils.synthetic.Class getDeclaringClass()\n  {\n\n    if (realfield != null)\n      return org.apache.xml.utils.synthetic.Class.forClass(\n        realfield.getDeclaringClass());\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a double on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public double getDouble(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getDouble(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a float on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public float getFloat(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getFloat(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a int on specified object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public int getInt(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getInt(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Get the value of a field as a long on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public long getLong(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getLong(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Returns the Java language modifiers for the field\n   * represented by this Field object, as an integer. The\n   * Modifier class should be used to decode the\n   * modifiers.\n   *\n   */\n  public int getModifiers()\n  {\n\n    if (realfield != null)\n      modifiers = realfield.getModifiers();\n\n    return modifiers;\n  }\n\n  /**\n   * Method getInitializer \n   *\n   *\n   * (getInitializer) @return\n   */\n  public String getInitializer()\n  {\n    return initializer;\n  }\n\n  /**\n   * Method setInitializer \n   *\n   *\n   * @param i\n   *\n   * @throws SynthesisException\n   */\n  public void setInitializer(String i) throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    initializer = i;\n  }\n\n  /**\n   * Insert the method's description here.\n   * Creation date: (12-25-99 2:02:26 PM)\n   * @return java.lang.String\n   */\n  public java.lang.String getName()\n  {\n    return name;\n  }\n\n  /**\n   * Get the value of a field as a short on specified\n   * object.\n   *\n   *\n   * @param obj\n   *\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the field value cannot be converted to the\n   * return type by a widening conversion.\n   */\n  public short getShort(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getShort(obj);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Returns a Class object that identifies the declared\n   * type for the field represented by this Field object.\n   *\n   */\n  public Class getType()\n  {\n\n    if (realfield != null)\n      type = Class.forClass(realfield.getType());\n\n    return type;\n  }\n\n  /**\n   * Method setType \n   *\n   *\n   * @param type\n   *\n   * @throws SynthesisException\n   */\n  public void setType(org.apache.xml.utils.synthetic.Class type)\n          throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    this.type = type;\n  }\n\n  /**\n   * Returns a hashcode for this Field. This is\n   * computed as the exclusive-or of the hashcodes for\n   * the underlying field's declaring class name and its\n   * name.\n   *\n   */\n  public int hashCode()\n  {\n\n    if (realfield != null)\n      return realfield.hashCode();\n    else\n      return declaringClass.getName().hashCode() ^ name.hashCode();\n  }\n\n  /**\n   * Sets the field represented by this Field object on\n   * the specified object argument to the specified new\n   * value. The new value is automatically unwrapped\n   * if the underlying field has a primitive type.\n   *\n   * The operation proceeds as follows:\n   *\n   * If the underlying field is static, the object\n   * argument is ignored; it may be null.\n   *\n   * Otherwise the underlying field is an instance field.\n   * If the specified object argument is null, the\n   * method throws a NullPointerException. If the\n   * specified object argument is not an instance of the\n   * class or interface declaring the underlying field,\n   * the method throws an IllegalArgumentException.\n   *\n   * If this Field object enforces Java language access\n   * control, and the underlying field is inaccessible,\n   * the method throws an IllegalAccessException.\n   *\n   * If the underlying field is final, the method throws\n   * an IllegalAccessException.\n   *\n   * If the underlying field is of a primitive type, an\n   * unwrapping conversion is attempted to convert the\n   * new value to a value of a primitive type. If this\n   * attempt fails, the method throws an\n   * IllegalArgumentException.\n   *\n   * If, after possible unwrapping, the new value\n   * cannot be converted to the type of the underlying\n   * field by an identity or widening conversion, the\n   * method throws an IllegalArgumentException.\n   *\n   * The field is set to the possibly unwrapped and\n   * widened new value.\n   *\n   *\n   * @param obj\n   * @param value\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   * @throws NullPointerException\n   * if the specified object is null.\n   */\n  public void set(Object obj, Object value)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.set(obj, value);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as a boolean on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param z\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setBoolean(Object obj, boolean z)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setBoolean(obj, z);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as a byte on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param b\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setByte(Object obj, byte b)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setByte(obj, b);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as a char on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param c\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setChar(Object obj, char c)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setChar(obj, c);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Returns the Class object representing the class that\n   * declares the constructor represented by this\n   * Constructor object.\n   *\n   * @param declaringClass\n   */\n  public void setDeclaringClass(\n          org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n    this.declaringClass = declaringClass;\n  }\n\n  /**\n   * Set the value of a field as a double on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param d\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setDouble(Object obj, double d)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setDouble(obj, d);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as a float on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param f\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setFloat(Object obj, float f)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setFloat(obj, f);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as an int on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param i\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setInt(Object obj, int i)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setInt(obj, i);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Set the value of a field as a long on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param l\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setLong(Object obj, long l)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setLong(obj, l);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Insert the method's description here.\n   * Creation date: (12-25-99 1:28:28 PM)\n   * @return int\n   * @param modifiers int\n   *\n   * @throws SynthesisException\n   */\n  public void setModifiers(int modifiers) throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    this.modifiers = modifiers;\n  }\n\n  /**\n   * Set the value of a field as a short on specified\n   * object.\n   *\n   *\n   * @param obj\n   * @param s\n   * @throws IllegalAccessException\n   * if the underlying constructor is inaccessible.\n   * @throws IllegalArgumentException\n   * if the specified object is not an instance of\n   * the class or interface declaring the\n   * underlying field, or if an unwrapping\n   * conversion fails.\n   */\n  public void setShort(Object obj, short s)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setShort(obj, s);\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Return a string describing this Field. The format is\n   * the access modifiers for the field, if any, followed\n   * by the field type, followed by a space, followed by\n   * the fully-qualified name of the class declaring the\n   * field, followed by a period, followed by the name\n   * of the field. For example:\n   * <code>\n   * public static final int java.lang.Thread.MIN_PRIORITY\n   * private int java.io.FileDescriptor.fd\n   * </code>\n   *\n   * The modifiers are placed in canonical order as\n   * specified by \"The Java Language Specification\".\n   * This is public, protected or private first,\n   * and then other modifiers in the following order:\n   * static, final, transient, volatile.\n   *\n   */\n  public String toString()\n  {\n\n    if (realfield != null)\n      return realfield.toString();\n\n    throw new java.lang.IllegalStateException();\n  }\n\n  /**\n   * Output the Field as Java sourcecode\n   *\n   */\n  public String toSource()\n  {\n\n    StringBuffer sb = new StringBuffer(\n      java.lang.reflect.Modifier.toString(getModifiers())).append(' ').append(\n      getType().getJavaName()).append(' ').append(getName());\n    String i = getInitializer();\n\n    if (i != null && i.length() > 0)\n      sb.append('=').append(i);\n\n    sb.append(';');\n\n    return sb.toString();", "functions": [{"function_name": "equals", "code": "  public boolean equals(Object obj)\n  {\n\n    if (realfield != null)\n      return realfield.equals(obj);\n    else if (obj instanceof Field)\n    {\n      Field objf = (Field) obj;\n\n      return (declaringClass.equals(objf.declaringClass)\n              && name.equals(objf.name) && type.equals(objf.type));\n    }\n    else\n      return false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [5, 9], [6, 10], [3, 11], [3, 12], [11, 13], [13, 14], [13, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 5], [10, 6], [11, 3], [12, 3], [13, 11], [14, 13], [15, 13], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "get", "code": "  public Object get(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.get(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getBoolean", "code": "  public boolean getBoolean(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getBoolean(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getByte", "code": "  public byte getByte(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getByte(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getChar", "code": "  public char getChar(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getChar(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDeclaringClass", "code": "  public org.apache.xml.utils.synthetic.Class getDeclaringClass()\n  {\n\n    if (realfield != null)\n      return org.apache.xml.utils.synthetic.Class.forClass(\n        realfield.getDeclaringClass());\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDouble", "code": "  public double getDouble(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getDouble(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getFloat", "code": "  public float getFloat(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getFloat(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getInt", "code": "  public int getInt(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getInt(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLong", "code": "  public long getLong(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getLong(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getModifiers", "code": "  public int getModifiers()\n  {\n\n    if (realfield != null)\n      modifiers = realfield.getModifiers();\n\n    return modifiers;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getInitializer", "code": "  public String getInitializer()\n  {\n    return initializer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInitializer", "code": "  public void setInitializer(String i) throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    initializer = i;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getName", "code": "  public java.lang.String getName()\n  {\n    return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getShort", "code": "  public short getShort(Object obj)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      return realfield.getShort(obj);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getType", "code": "  public Class getType()\n  {\n\n    if (realfield != null)\n      type = Class.forClass(realfield.getType());\n\n    return type;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setType", "code": "  public void setType(org.apache.xml.utils.synthetic.Class type)\n          throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    this.type = type;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "hashCode", "code": "  public int hashCode()\n  {\n\n    if (realfield != null)\n      return realfield.hashCode();\n    else\n      return declaringClass.getName().hashCode() ^ name.hashCode();", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [5, 8], [5, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 5], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "set", "code": "  public void set(Object obj, Object value)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.set(obj, value);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setBoolean", "code": "  public void setBoolean(Object obj, boolean z)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setBoolean(obj, z);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setByte", "code": "  public void setByte(Object obj, byte b)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setByte(obj, b);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setChar", "code": "  public void setChar(Object obj, char c)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setChar(obj, c);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setDeclaringClass", "code": "  public void setDeclaringClass(\n          org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n    this.declaringClass = declaringClass;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDouble", "code": "  public void setDouble(Object obj, double d)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setDouble(obj, d);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setFloat", "code": "  public void setFloat(Object obj, float f)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setFloat(obj, f);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setInt", "code": "  public void setInt(Object obj, int i)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setInt(obj, i);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setLong", "code": "  public void setLong(Object obj, long l)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setLong(obj, l);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setModifiers", "code": "  public void setModifiers(int modifiers) throws SynthesisException\n  {\n\n    if (realfield != null)\n      throw new SynthesisException(SynthesisException.REIFIED);\n\n    this.modifiers = modifiers;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setShort", "code": "  public void setShort(Object obj, short s)\n          throws IllegalArgumentException, IllegalAccessException\n  {\n\n    if (realfield != null)\n      realfield.setShort(obj, s);\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "toString", "code": "  public String toString()\n  {\n\n    if (realfield != null)\n      return realfield.toString();\n\n    throw new java.lang.IllegalStateException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toSource", "code": "  public String toSource()\n  {\n\n    StringBuffer sb = new StringBuffer(\n      java.lang.reflect.Modifier.toString(getModifiers())).append(' ').append(\n      getType().getJavaName()).append(' ').append(getName());\n    String i = getInitializer();\n\n    if (i != null && i.length() > 0)\n      sb.append('=').append(i);\n\n    sb.append(';');\n\n    return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [6, 8], [2, 9], [7, 10], [7, 11], [3, 12], [4, 13], [9, 14], [9, 15], [10, 16], [10, 17], [11, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [19, 24], [20, 25], [21, 26], [22, 27], [23, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 6], [9, 2], [10, 7], [11, 7], [12, 3], [13, 4], [14, 9], [15, 9], [16, 10], [17, 10], [18, 11], [19, 13], [20, 13], [21, 13], [22, 13], [23, 13], [24, 19], [25, 20], [26, 21], [27, 22], [28, 23], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "Field", "code": "  public Field(java.lang.reflect.Field realfield,\n               org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n\n    this(realfield.getName(), declaringClass);\n\n    this.realfield = realfield;\n    this.type =\n      org.apache.xml.utils.synthetic.Class.forClass(realfield.getType());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "Field", "code": "  public Field(String name,\n               org.apache.xml.utils.synthetic.Class declaringClass)\n  {\n    this.name = name;\n    this.declaringClass = declaringClass;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-3185", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/util/ResolverUtil.java", "language": "java", "name": "org.apache.camel.util.ResolverUtil", "code": "public class ResolverUtil<T> {\n    protected static final transient Log LOG = LogFactory.getLog(ResolverUtil.class);\n\n    /**\n     * A simple interface that specifies how to test classes to determine if\n     * they are to be included in the results produced by the ResolverUtil.\n     */\n    public static interface Test {\n        /**\n         * Will be called repeatedly with candidate classes. Must return True if\n         * a class is to be included in the results, false otherwise.\n         */\n        boolean matches(Class type);\n    }\n\n    /**\n     * A Test that checks to see if each class is assignable to the provided\n     * class. Note that this test will match the parent type itself if it is\n     * presented for matching.\n     */\n    public static class IsA implements Test {\n        private Class parent;\n\n        /**\n         * Constructs an IsA test using the supplied Class as the parent\n         * class/interface.\n         */\n        public IsA(Class parentType) {\n            this.parent = parentType;\n        }\n\n        /**\n         * Returns true if type is assignable to the parent type supplied in the\n         * constructor.\n         */\n        public boolean matches(Class type) {\n            return type != null && parent.isAssignableFrom(type);\n        }\n\n        @Override\n        public String toString() {\n            return \"is assignable to \" + parent.getSimpleName();\n        }\n    }\n\n    /**\n     * A Test that checks to see if each class is annotated with a specific\n     * annotation. If it is, then the test returns true, otherwise false.\n     */\n    public static class AnnotatedWith implements Test {\n        private Class<? extends Annotation> annotation;\n        private boolean checkMetaAnnotations;\n\n        /**\n         * Constructs an AnnotatedWith test for the specified annotation type.\n         */\n        public AnnotatedWith(Class<? extends Annotation> annotation) {\n            this(annotation, false);\n        }\n\n        /**\n         * Constructs an AnnotatedWith test for the specified annotation type.\n         */\n        public AnnotatedWith(Class<? extends Annotation> annotation, boolean checkMetaAnnotations) {\n            this.annotation = annotation;\n            this.checkMetaAnnotations = checkMetaAnnotations;\n        }\n\n        /**\n         * Returns true if the type is annotated with the class provided to the\n         * constructor.\n         */\n        public boolean matches(Class type) {\n            return type != null && ObjectHelper.hasAnnotation(type, annotation, checkMetaAnnotations);\n        }\n\n        @Override\n        public String toString() {\n            return \"annotated with @\" + annotation.getSimpleName();\n        }\n    }\n\n    /**\n     * The set of matches being accumulated.\n     */\n    private Set<Class<? extends T>> matches = new HashSet<Class<? extends T>>();\n\n    /**\n     * The ClassLoader to use when looking for classes. If null then the\n     * ClassLoader returned by Thread.currentThread().getContextClassLoader()\n     * will be used.\n     */\n    private Set<ClassLoader> classLoaders;\n\n    /**\n     * Provides access to the classes discovered so far. If no calls have been\n     * made to any of the {@code find()} methods, this set will be empty.\n     *\n     * @return the set of classes that have been discovered.\n     */\n    public Set<Class<? extends T>> getClasses() {\n        return matches;\n    }\n\n\n    /**\n     * Returns the classloaders that will be used for scanning for classes. If no\n     * explicit ClassLoader has been set by the calling, the context class\n     * loader will and the one that has loaded this class ResolverUtil be used.\n     *\n     * @return the ClassLoader instances that will be used to scan for classes\n     */\n    public Set<ClassLoader> getClassLoaders() {\n        if (classLoaders == null) {\n            classLoaders = new HashSet<ClassLoader>();\n            ClassLoader ccl = Thread.currentThread().getContextClassLoader();\n            if (ccl != null) {\n                classLoaders.add(ccl);\n            }\n            classLoaders.add(ResolverUtil.class.getClassLoader());\n        }\n        return classLoaders;\n    }\n\n    /**\n     * Sets the ClassLoader instances that should be used when scanning for\n     * classes. If none is set then the context classloader will be used.\n     *\n     * @param classLoaders a ClassLoader to use when scanning for classes\n     */\n    public void setClassLoaders(Set<ClassLoader> classLoaders) {\n        this.classLoaders = classLoaders;\n    }\n\n    /**\n     * Attempts to discover classes that are assignable to the type provided. In\n     * the case that an interface is provided this method will collect\n     * implementations. In the case of a non-interface class, subclasses will be\n     * collected. Accumulated classes can be accessed by calling\n     * {@link #getClasses()}.\n     *\n     * @param parent       the class of interface to find subclasses or\n     *                     implementations of\n     * @param packageNames one or more package names to scan (including\n     *                     subpackages) for classes\n     */\n    public void findImplementations(Class parent, String... packageNames) {\n        if (packageNames == null) {\n            return;\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Searching for implementations of \" + parent.getName() + \" in packages: \" + Arrays\n                .asList(packageNames));\n        }\n\n        Test test = new IsA(parent);\n        for (String pkg : packageNames) {\n            find(test, pkg);\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Found: \" + getClasses());\n        }\n    }\n\n    /**\n     * Attempts to discover classes that are annotated with to the annotation.\n     * Accumulated classes can be accessed by calling {@link #getClasses()}.\n     *\n     * @param annotation   the annotation that should be present on matching\n     *                     classes\n     * @param packageNames one or more package names to scan (including\n     *                     subpackages) for classes\n     */\n    public void findAnnotated(Class<? extends Annotation> annotation, String... packageNames) {\n        if (packageNames == null) {\n            return;\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Searching for annotations of \" + annotation.getName() + \" in packages: \" + Arrays\n                .asList(packageNames));\n        }\n\n        Test test = new AnnotatedWith(annotation, true);\n        for (String pkg : packageNames) {\n            find(test, pkg);\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Found: \" + getClasses());\n        }\n    }\n\n    /**\n     * Scans for classes starting at the package provided and descending into\n     * subpackages. Each class is offered up to the Test as it is discovered,\n     * and if the Test returns true the class is retained. Accumulated classes\n     * can be fetched by calling {@link #getClasses()}.\n     *\n     * @param test        an instance of {@link Test} that will be used to filter\n     *                    classes\n     * @param packageName the name of the package from which to start scanning\n     *                    for classes, e.g. {@code net.sourceforge.stripes}\n     */\n    public void find(Test test, String packageName) {\n        packageName = packageName.replace('.', '/');\n\n        Set<ClassLoader> set = getClassLoaders();\n\n        LOG.debug(\"Using only regular classloaders\");\n        for (ClassLoader classLoader : set) {            \n            find(test, packageName, classLoader);            \n        }\n    }\n\n    \n\n    /**\n     * Tries to find the reosurce in the package using the class loader.\n     * <p/>\n     * Will handle both plain URL based classloaders and OSGi bundle loaders.\n     *\n     * @param test what to find\n     * @param packageName the package to search in\n     * @param loader the class loader     \n     */\n    protected void find(Test test, String packageName, ClassLoader loader) {\n        if (LOG.isTraceEnabled()) {\n            LOG.trace(\"Searching for: \" + test + \" in package: \" + packageName + \" using classloader: \"\n                    + loader.getClass().getName());\n        }        \n\n        Enumeration<URL> urls;\n        try {\n            urls = getResources(loader, packageName);\n            if (!urls.hasMoreElements()) {\n                LOG.trace(\"No URLs returned by classloader\");\n            }\n        } catch (IOException ioe) {\n            LOG.warn(\"Could not read package: \" + packageName, ioe);\n            return;\n        }\n\n        while (urls.hasMoreElements()) {\n            URL url = null;\n            try {\n                url = urls.nextElement();\n                if (LOG.isTraceEnabled()) {\n                    LOG.trace(\"URL from classloader: \" + url);\n                }\n\n                String urlPath = url.getFile();\n                urlPath = URLDecoder.decode(urlPath, \"UTF-8\");\n                if (LOG.isTraceEnabled()) {\n                    LOG.trace(\"Decoded urlPath: \" + urlPath);\n                }\n\n                if (urlPath.startsWith(\"file:\")) {\n                    urlPath = urlPath.substring(5);\n                }\n\n                if (url.toString().startsWith(\"bundle:\") || urlPath.startsWith(\"bundle:\")) {\n                    LOG.trace(\"It's a virtual osgi bundle, skipping\");\n                    continue;\n                }\n\n                if (urlPath.indexOf('!') > 0) {\n                    urlPath = urlPath.substring(0, urlPath.indexOf('!'));\n                }\n\n                if (LOG.isTraceEnabled()) {\n                    LOG.trace(\"Scanning for classes in [\" + urlPath + \"] matching criteria: \" + test);\n                }\n\n                File file = new File(urlPath);\n                if (file.isDirectory()) {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Loading from directory: \" + file);\n                    }\n                    loadImplementationsInDirectory(test, packageName, file);\n                } else {\n                    InputStream stream;\n                    if (urlPath.startsWith(\"http:\")) {\n                        LOG.debug(\"The current jar is accessed via http\");\n                        URL urlStream = new URL(urlPath);\n                        URLConnection con = urlStream.openConnection();\n                        con.setUseCaches(false);\n                        stream = con.getInputStream();\n                    } else {\n                        stream = new FileInputStream(file);\n                    }\n\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Loading from jar: \" + file);\n                    }\n                    loadImplementationsInJar(test, packageName, stream, urlPath);\n                }\n            } catch (IOException ioe) {\n                LOG.warn(\"Could not read entries in url: \" + url, ioe);\n            }\n        }\n    }\n\n    /**\n     * Strategy to get the resources by the given classloader.\n     * <p/>\n     * Notice that in WebSphere platforms there is a {@link org.apache.camel.util.WebSphereResolverUtil}\n     * to take care of WebSphere's odditiy of resource loading.\n     *\n     * @param loader  the classloader\n     * @param packageName   the packagename for the package to load\n     * @return  URL's for the given package\n     * @throws IOException is thrown by the classloader\n     */\n    protected Enumeration<URL> getResources(ClassLoader loader, String packageName) throws IOException {\n        if (LOG.isTraceEnabled()) {\n            LOG.trace(\"Getting resource URL for package: \" + packageName + \" with classloader: \" + loader);\n        }\n        return loader.getResources(packageName);\n    }\n\n    \n\n\n    /**\n     * Finds matches in a physical directory on a filesystem. Examines all files\n     * within a directory - if the File object is not a directory, and ends with\n     * <i>.class</i> the file is loaded and tested to see if it is acceptable\n     * according to the Test. Operates recursively to find classes within a\n     * folder structure matching the package structure.\n     *\n     * @param test     a Test used to filter the classes that are discovered\n     * @param parent   the package name up to this directory in the package\n     *                 hierarchy. E.g. if /classes is in the classpath and we wish to\n     *                 examine files in /classes/org/apache then the values of\n     *                 <i>parent</i> would be <i>org/apache</i>\n     * @param location a File object representing a directory\n     */\n    private void loadImplementationsInDirectory(Test test, String parent, File location) {\n        File[] files = location.listFiles();\n        StringBuilder builder = null;\n\n        for (File file : files) {\n            builder = new StringBuilder(100);\n            String name = file.getName();\n            if (name != null) {\n                name = name.trim();\n                builder.append(parent).append(\"/\").append(name);\n                String packageOrClass = parent == null ? name : builder.toString();\n\n                if (file.isDirectory()) {\n                    loadImplementationsInDirectory(test, packageOrClass, file);\n                } else if (name.endsWith(\".class\")) {\n                    addIfMatching(test, packageOrClass);\n                }\n            }\n        }\n    }\n\n    /**\n     * Finds matching classes within a jar files that contains a folder\n     * structure matching the package structure. If the File is not a JarFile or\n     * does not exist a warning will be logged, but no error will be raised.\n     *\n     * @param test    a Test used to filter the classes that are discovered\n     * @param parent  the parent package under which classes must be in order to\n     *                be considered\n     * @param jarfile the jar file to be examined for classes\n     * @param stream  the inputstream of the jar file to be examined for classes\n     * @param urlPath the url of the jar file to be examined for classes\n     */\n    private void loadImplementationsInJar(Test test, String parent, InputStream stream, String urlPath) {\n        JarInputStream jarStream = null;\n        try {\n            jarStream = new JarInputStream(stream);\n\n            JarEntry entry;\n            while ((entry = jarStream.getNextJarEntry()) != null) {\n                String name = entry.getName();\n                if (name != null) {\n                    name = name.trim();\n                    if (!entry.isDirectory() && name.startsWith(parent) && name.endsWith(\".class\")) {\n                        addIfMatching(test, name);\n                    }\n                }\n            }\n        } catch (IOException ioe) {\n            LOG.error(\"Could not search jar file '\" + urlPath + \"' for classes matching criteria: \" + test\n                + \" due to an IOException: \" + ioe.getMessage(), ioe);\n        } finally {\n            ObjectHelper.close(jarStream, urlPath, LOG);\n        }\n    }\n\n    /**\n     * Add the class designated by the fully qualified class name provided to\n     * the set of resolved classes if and only if it is approved by the Test\n     * supplied.\n     *\n     * @param test the test used to determine if the class matches\n     * @param fqn  the fully qualified name of a class\n     */\n    protected void addIfMatching(Test test, String fqn) {\n        try {\n            String externalName = fqn.substring(0, fqn.indexOf('.')).replace('/', '.');\n            Set<ClassLoader> set = getClassLoaders();\n            boolean found = false;\n            for (ClassLoader classLoader : set) {\n                if (LOG.isTraceEnabled()) {\n                    LOG.trace(\"Testing for class \" + externalName + \" matches criteria [\" + test + \"]\");\n                }\n                try {\n                    Class type = classLoader.loadClass(externalName);\n                    if (test.matches(type)) {\n                        if (LOG.isTraceEnabled()) {\n                            LOG.trace(\"Found class: \" + type + \" in classloader: \" + classLoader);\n                        }\n                        matches.add((Class<T>)type);\n                    }\n                    found = true;\n                    break;\n                } catch (ClassNotFoundException e) {\n                    LOG.debug(\"Could not find class '\" + fqn + \"' in classloader: \" + classLoader\n                        + \". Reason: \" + e, e);\n                } catch (NoClassDefFoundError e) {\n                    LOG.debug(\"Could not find the class defintion '\" + fqn + \"' in classloader: \" + classLoader\n                              + \". Reason: \" + e, e);\n                }\n            }\n            if (!found) {\n                LOG.warn(\"Could not find class '\" + fqn + \"' in any classloaders: \" + set);\n            }\n        } catch (Throwable t) {\n            LOG.warn(\"Could not examine class '\" + fqn + \"' due to a \" + t.getClass().getName()\n                + \" with message: \" + t.getMessage(), t);", "functions": [{"function_name": "getClasses", "code": "    public Set<Class<? extends T>> getClasses() {\n        return matches;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getClassLoaders", "code": "    public Set<ClassLoader> getClassLoaders() {\n        if (classLoaders == null) {\n            classLoaders = new HashSet<ClassLoader>();\n            ClassLoader ccl = Thread.currentThread().getContextClassLoader();\n            if (ccl != null) {\n                classLoaders.add(ccl);\n            }\n            classLoaders.add(ResolverUtil.class.getClassLoader());\n        }\n        return classLoaders;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [2, 7], [4, 8], [2, 9], [7, 10], [8, 11], [5, 12], [9, 13], [4, 14], [12, 15], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 2], [8, 4], [9, 2], [10, 7], [11, 8], [12, 5], [13, 9], [14, 4], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setClassLoaders", "code": "    public void setClassLoaders(Set<ClassLoader> classLoaders) {\n        this.classLoaders = classLoaders;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "findImplementations", "code": "    public void findImplementations(Class parent, String... packageNames) {\n        if (packageNames == null) {\n            return;\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Searching for implementations of \" + parent.getName() + \" in packages: \" + Arrays\n                .asList(packageNames));\n        }\n\n        Test test = new IsA(parent);\n        for (String pkg : packageNames) {\n            find(test, pkg);\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Found: \" + getClasses());", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [5, 10], [3, 11], [5, 12], [10, 13], [1, 14], [2, 15], [4, 16], [14, 17], [16, 18], [17, 19], [17, 20], [18, 21], [18, 22], [22, 23], [22, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 5], [11, 3], [12, 5], [13, 10], [14, 1], [15, 2], [16, 4], [17, 14], [18, 16], [19, 17], [20, 17], [21, 18], [22, 18], [23, 22], [24, 22], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "findAnnotated", "code": "    public void findAnnotated(Class<? extends Annotation> annotation, String... packageNames) {\n        if (packageNames == null) {\n            return;\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Searching for annotations of \" + annotation.getName() + \" in packages: \" + Arrays\n                .asList(packageNames));\n        }\n\n        Test test = new AnnotatedWith(annotation, true);\n        for (String pkg : packageNames) {\n            find(test, pkg);\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Found: \" + getClasses());", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [5, 10], [3, 11], [5, 12], [10, 13], [1, 14], [2, 15], [11, 16], [4, 17], [14, 18], [17, 19], [18, 20], [18, 21], [19, 22], [19, 23], [23, 24], [23, 25], [25, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 5], [11, 3], [12, 5], [13, 10], [14, 1], [15, 2], [16, 11], [17, 4], [18, 14], [19, 17], [20, 18], [21, 18], [22, 19], [23, 19], [24, 23], [25, 23], [26, 25], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "find", "code": "    public void find(Test test, String packageName) {\n        packageName = packageName.replace('.', '/');\n\n        Set<ClassLoader> set = getClassLoaders();\n\n        LOG.debug(\"Using only regular classloaders\");\n        for (ClassLoader classLoader : set) {            \n            find(test, packageName, classLoader);            ", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [2, 8], [6, 9], [1, 10], [9, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 2], [9, 6], [10, 1], [11, 9], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "find", "code": "    protected void find(Test test, String packageName, ClassLoader loader) {\n        if (LOG.isTraceEnabled()) {\n            LOG.trace(\"Searching for: \" + test + \" in package: \" + packageName + \" using classloader: \"\n                    + loader.getClass().getName());\n        }        \n\n        Enumeration<URL> urls;\n        try {\n            urls = getResources(loader, packageName);\n            if (!urls.hasMoreElements()) {\n                LOG.trace(\"No URLs returned by classloader\");\n            }\n        } catch (IOException ioe) {\n            LOG.warn(\"Could not read package: \" + packageName, ioe);\n            return;\n        }\n\n        while (urls.hasMoreElements()) {\n            URL url = null;\n            try {\n                url = urls.nextElement();\n                if (LOG.isTraceEnabled()) {\n                    LOG.trace(\"URL from classloader: \" + url);\n                }\n\n                String urlPath = url.getFile();\n                urlPath = URLDecoder.decode(urlPath, \"UTF-8\");\n                if (LOG.isTraceEnabled()) {\n                    LOG.trace(\"Decoded urlPath: \" + urlPath);\n                }\n\n                if (urlPath.startsWith(\"file:\")) {\n                    urlPath = urlPath.substring(5);\n                }\n\n                if (url.toString().startsWith(\"bundle:\") || urlPath.startsWith(\"bundle:\")) {\n                    LOG.trace(\"It's a virtual osgi bundle, skipping\");\n                    continue;\n                }\n\n                if (urlPath.indexOf('!') > 0) {\n                    urlPath = urlPath.substring(0, urlPath.indexOf('!'));\n                }\n\n                if (LOG.isTraceEnabled()) {\n                    LOG.trace(\"Scanning for classes in [\" + urlPath + \"] matching criteria: \" + test);\n                }\n\n                File file = new File(urlPath);\n                if (file.isDirectory()) {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Loading from directory: \" + file);\n                    }\n                    loadImplementationsInDirectory(test, packageName, file);\n                } else {\n                    InputStream stream;\n                    if (urlPath.startsWith(\"http:\")) {\n                        LOG.debug(\"The current jar is accessed via http\");\n                        URL urlStream = new URL(urlPath);\n                        URLConnection con = urlStream.openConnection();\n                        con.setUseCaches(false);\n                        stream = con.getInputStream();\n                    } else {\n                        stream = new FileInputStream(file);\n                    }\n\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Loading from jar: \" + file);\n                    }\n                    loadImplementationsInJar(test, packageName, stream, urlPath);\n                }\n            } catch (IOException ioe) {\n                LOG.warn(\"Could not read entries in url: \" + url, ioe);", "ast_nodes": ["FUNC_DECL", "LOOP", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "IF", "CALL", "TRY", "VAR_DECL", "RETURN", "CALL", "ASSIGN", "CATCH", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [4, 11], [1, 12], [1, 13], [9, 14], [10, 15], [2, 16], [12, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 24], [12, 25], [12, 26], [9, 27], [16, 28], [4, 29], [18, 30], [20, 31], [21, 32], [22, 33], [23, 34], [24, 35], [12, 36], [26, 37], [12, 38], [13, 39], [27, 40], [10, 41], [29, 42], [17, 43], [18, 44], [18, 45], [18, 46], [18, 47], [19, 48], [32, 49], [32, 50], [22, 51], [33, 52], [33, 53], [34, 54], [36, 55], [25, 56], [38, 57], [40, 58], [41, 59], [42, 60], [42, 61], [43, 62], [18, 63], [44, 64], [45, 65], [18, 66], [47, 67], [20, 68], [21, 69], [50, 70], [22, 71], [52, 72], [53, 73], [23, 74], [24, 75], [55, 76], [26, 77], [60, 78], [61, 79], [61, 80], [62, 81], [45, 82], [45, 83], [65, 84], [68, 85], [69, 86], [71, 87], [73, 88], [74, 89], [75, 90], [77, 91], [80, 92], [44, 93], [45, 94], [45, 95], [45, 96], [45, 97], [47, 98], [85, 99], [86, 100], [86, 101], [89, 102], [90, 103], [91, 104], [92, 105], [92, 106], [93, 107], [94, 108], [95, 109], [96, 110], [82, 111], [83, 112], [97, 113], [98, 114], [99, 115], [99, 116], [100, 117], [106, 118], [107, 119], [114, 120], [116, 121], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 4], [12, 1], [13, 1], [14, 9], [15, 10], [16, 2], [17, 12], [18, 12], [19, 12], [20, 12], [21, 12], [22, 12], [23, 12], [24, 12], [25, 12], [26, 12], [27, 9], [28, 16], [29, 4], [30, 18], [31, 20], [32, 21], [33, 22], [34, 23], [35, 24], [36, 12], [37, 26], [38, 12], [39, 13], [40, 27], [41, 10], [42, 29], [43, 17], [44, 18], [45, 18], [46, 18], [47, 18], [48, 19], [49, 32], [50, 32], [51, 22], [52, 33], [53, 33], [54, 34], [55, 36], [56, 25], [57, 38], [58, 40], [59, 41], [60, 42], [61, 42], [62, 43], [63, 18], [64, 44], [65, 45], [66, 18], [67, 47], [68, 20], [69, 21], [70, 50], [71, 22], [72, 52], [73, 53], [74, 23], [75, 24], [76, 55], [77, 26], [78, 60], [79, 61], [80, 61], [81, 62], [82, 45], [83, 45], [84, 65], [85, 68], [86, 69], [87, 71], [88, 73], [89, 74], [90, 75], [91, 77], [92, 80], [93, 44], [94, 45], [95, 45], [96, 45], [97, 45], [98, 47], [99, 85], [100, 86], [101, 86], [102, 89], [103, 90], [104, 91], [105, 92], [106, 92], [107, 93], [108, 94], [109, 95], [110, 96], [111, 82], [112, 83], [113, 97], [114, 98], [115, 99], [116, 99], [117, 100], [118, 106], [119, 107], [120, 114], [121, 116], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121]]}, {"function_name": "getResources", "code": "    protected Enumeration<URL> getResources(ClassLoader loader, String packageName) throws IOException {\n        if (LOG.isTraceEnabled()) {\n            LOG.trace(\"Getting resource URL for package: \" + packageName + \" with classloader: \" + loader);\n        }\n        return loader.getResources(packageName);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [7, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 7], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "loadImplementationsInDirectory", "code": "    private void loadImplementationsInDirectory(Test test, String parent, File location) {\n        File[] files = location.listFiles();\n        StringBuilder builder = null;\n\n        for (File file : files) {\n            builder = new StringBuilder(100);\n            String name = file.getName();\n            if (name != null) {\n                name = name.trim();\n                builder.append(parent).append(\"/\").append(name);\n                String packageOrClass = parent == null ? name : builder.toString();\n\n                if (file.isDirectory()) {\n                    loadImplementationsInDirectory(test, packageOrClass, file);\n                } else if (name.endsWith(\".class\")) {\n                    addIfMatching(test, packageOrClass);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [2, 9], [3, 10], [7, 11], [1, 12], [7, 13], [7, 14], [11, 15], [8, 16], [12, 17], [13, 18], [13, 19], [7, 20], [7, 21], [17, 22], [18, 23], [14, 24], [20, 25], [20, 26], [21, 27], [23, 28], [13, 29], [24, 30], [24, 31], [26, 32], [18, 33], [31, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 2], [10, 3], [11, 7], [12, 1], [13, 7], [14, 7], [15, 11], [16, 8], [17, 12], [18, 13], [19, 13], [20, 7], [21, 7], [22, 17], [23, 18], [24, 14], [25, 20], [26, 20], [27, 21], [28, 23], [29, 13], [30, 24], [31, 24], [32, 26], [33, 18], [34, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "loadImplementationsInJar", "code": "    private void loadImplementationsInJar(Test test, String parent, InputStream stream, String urlPath) {\n        JarInputStream jarStream = null;\n        try {\n            jarStream = new JarInputStream(stream);\n\n            JarEntry entry;\n            while ((entry = jarStream.getNextJarEntry()) != null) {\n                String name = entry.getName();\n                if (name != null) {\n                    name = name.trim();\n                    if (!entry.isDirectory() && name.startsWith(parent) && name.endsWith(\".class\")) {\n                        addIfMatching(test, name);\n                    }\n                }\n            }\n        } catch (IOException ioe) {\n            LOG.error(\"Could not search jar file '\" + urlPath + \"' for classes matching criteria: \" + test\n                + \" due to an IOException: \" + ioe.getMessage(), ioe);\n        } finally {\n            ObjectHelper.close(jarStream, urlPath, LOG);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [8, 11], [1, 12], [2, 13], [7, 14], [8, 15], [8, 16], [11, 17], [11, 18], [12, 19], [14, 20], [15, 21], [18, 22], [20, 23], [20, 24], [15, 25], [21, 26], [16, 27], [24, 28], [24, 29], [25, 30], [15, 31], [29, 32], [30, 33], [30, 34], [31, 35], [32, 36], [32, 37], [25, 38], [33, 39], [34, 40], [34, 41], [37, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 8], [12, 1], [13, 2], [14, 7], [15, 8], [16, 8], [17, 11], [18, 11], [19, 12], [20, 14], [21, 15], [22, 18], [23, 20], [24, 20], [25, 15], [26, 21], [27, 16], [28, 24], [29, 24], [30, 25], [31, 15], [32, 29], [33, 30], [34, 30], [35, 31], [36, 32], [37, 32], [38, 25], [39, 33], [40, 34], [41, 34], [42, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "addIfMatching", "code": "    protected void addIfMatching(Test test, String fqn) {\n        try {\n            String externalName = fqn.substring(0, fqn.indexOf('.')).replace('/', '.');\n            Set<ClassLoader> set = getClassLoaders();\n            boolean found = false;\n            for (ClassLoader classLoader : set) {\n                if (LOG.isTraceEnabled()) {\n                    LOG.trace(\"Testing for class \" + externalName + \" matches criteria [\" + test + \"]\");\n                }\n                try {\n                    Class type = classLoader.loadClass(externalName);\n                    if (test.matches(type)) {\n                        if (LOG.isTraceEnabled()) {\n                            LOG.trace(\"Found class: \" + type + \" in classloader: \" + classLoader);\n                        }\n                        matches.add((Class<T>)type);\n                    }\n                    found = true;\n                    break;\n                } catch (ClassNotFoundException e) {\n                    LOG.debug(\"Could not find class '\" + fqn + \"' in classloader: \" + classLoader\n                        + \". Reason: \" + e, e);\n                } catch (NoClassDefFoundError e) {\n                    LOG.debug(\"Could not find the class defintion '\" + fqn + \"' in classloader: \" + classLoader\n                              + \". Reason: \" + e, e);\n                }\n            }\n            if (!found) {\n                LOG.warn(\"Could not find class '\" + fqn + \"' in any classloaders: \" + set);\n            }\n        } catch (Throwable t) {\n            LOG.warn(\"Could not examine class '\" + fqn + \"' due to a \" + t.getClass().getName()\n                + \" with message: \" + t.getMessage(), t);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "TRY", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CATCH", "CATCH", "BREAK_CONTINUE", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [6, 11], [6, 12], [7, 13], [8, 14], [9, 15], [10, 16], [5, 17], [11, 18], [11, 19], [11, 20], [11, 21], [11, 22], [12, 23], [15, 24], [15, 25], [15, 26], [16, 27], [16, 28], [17, 29], [11, 30], [21, 31], [24, 32], [26, 33], [26, 34], [28, 35], [28, 36], [29, 37], [18, 38], [19, 39], [30, 40], [21, 41], [22, 42], [12, 43], [36, 44], [36, 45], [37, 46], [37, 47], [38, 48], [39, 49], [21, 50], [41, 51], [43, 52], [44, 53], [45, 54], [45, 55], [47, 56], [48, 57], [49, 58], [52, 59], [52, 60], [55, 61], [57, 62], [57, 63], [58, 64], [58, 65], [41, 66], [60, 67], [63, 68], [65, 69], [66, 70], [67, 71], [67, 72], [68, 73], [68, 74], [69, 75], [69, 76], [70, 77], [72, 78], [74, 79], [76, 80], [77, 81], [77, 82], [82, 83], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 6], [12, 6], [13, 7], [14, 8], [15, 9], [16, 10], [17, 5], [18, 11], [19, 11], [20, 11], [21, 11], [22, 11], [23, 12], [24, 15], [25, 15], [26, 15], [27, 16], [28, 16], [29, 17], [30, 11], [31, 21], [32, 24], [33, 26], [34, 26], [35, 28], [36, 28], [37, 29], [38, 18], [39, 19], [40, 30], [41, 21], [42, 22], [43, 12], [44, 36], [45, 36], [46, 37], [47, 37], [48, 38], [49, 39], [50, 21], [51, 41], [52, 43], [53, 44], [54, 45], [55, 45], [56, 47], [57, 48], [58, 49], [59, 52], [60, 52], [61, 55], [62, 57], [63, 57], [64, 58], [65, 58], [66, 41], [67, 60], [68, 63], [69, 65], [70, 66], [71, 67], [72, 67], [73, 68], [74, 68], [75, 69], [76, 69], [77, 70], [78, 72], [79, 74], [80, 76], [81, 77], [82, 77], [83, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83]]}], "label": 1}
{"sample_id": "poi-2.0-5356", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/MulBlankRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.MulBlankRecord", "code": "public class MulBlankRecord\n    extends Record\n{\n    public final static short sid = 0xbe;\n    private int             field_1_row;\n    private short             field_2_first_col;\n    private short[]           field_3_xfs;\n    private short             field_4_last_col;\n\n    /** Creates new MulBlankRecord */\n\n    public MulBlankRecord()\n    {\n    }\n\n    /**\n     * Constructs a MulBlank record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xbe or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public MulBlankRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a MulBlank record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xbe or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public MulBlankRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    /**\n     * get the row number of the cells this represents\n     *\n     * @return row number\n     */\n\n    public int getRow()\n    {\n        return field_1_row;\n    }\n\n    /**\n     * starting column (first cell this holds in the row)\n     * @return first column number\n     */\n\n    public short getFirstColumn()\n    {\n        return field_2_first_col;\n    }\n\n    /**\n     * ending column (last cell this holds in the row)\n     * @return first column number\n     */\n\n    public short getLastColumn()\n    {\n        return field_4_last_col;\n    }\n\n    /**\n     * get the number of columns this contains (last-first +1)\n     * @return number of columns (last - first +1)\n     */\n\n    public int getNumColumns()\n    {\n        return field_4_last_col - field_2_first_col + 1;\n    }\n\n    /**\n     * returns the xf index for column (coffset = column - field_2_first_col)\n     * @param coffset  the column (coffset = column - field_2_first_col)\n     * @return the XF index for the column\n     */\n\n    public short getXFAt(int coffset)\n    {\n        return field_3_xfs[ coffset ];\n    }\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     */\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_row       = LittleEndian.getUShort(data, 0 + offset);\n        field_2_first_col = LittleEndian.getShort(data, 2 + offset);\n        field_3_xfs       = parseXFs(data, 4, offset, size);\n        field_4_last_col  = LittleEndian.getShort(data,\n                                                  (field_3_xfs.length * 2)\n                                                  + 4 + offset);\n    }\n\n    private short [] parseXFs(byte [] data, int offset, int recoffset,\n                              short size)\n    {\n        short[] retval = new short[ ((size - offset) - 2) / 2 ];\n        int     idx    = 0;\n\n        for (; offset < size - 2; )\n        {\n            short xf = 0;\n\n            xf            = LittleEndian.getShort(data, offset + recoffset);\n            offset        += 2;\n            retval[ idx ] = xf;\n            idx++;\n        }\n        return retval;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[MULBLANK]\\n\");\n        buffer.append(\"row  = \")\n            .append(Integer.toHexString(getRow())).append(\"\\n\");\n        buffer.append(\"firstcol  = \")\n            .append(Integer.toHexString(getFirstColumn())).append(\"\\n\");\n        buffer.append(\" lastcol  = \")\n            .append(Integer.toHexString(getLastColumn())).append(\"\\n\");\n        for (int k = 0; k < getNumColumns(); k++)\n        {\n            buffer.append(\"xf\").append(k).append(\"        = \")\n                .append(Integer.toHexString(getXFAt(k))).append(\"\\n\");\n        }\n        buffer.append(\"[/MULBLANK]\\n\");\n        return buffer.toString();\n    }\n\n    /**\n     * called by constructor, should throw runtime exception in the event of a\n     * record passed with a differing ID.\n     *\n     * @param id alleged id for this record\n     */\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a MulBlankRecord!\");\n        }\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        throw new RecordFormatException(\n            \"Sorry, you can't serialize a MulBlank in this release\");", "functions": [{"function_name": "getRow", "code": "    public int getRow()\n    {\n        return field_1_row;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstColumn", "code": "    public short getFirstColumn()\n    {\n        return field_2_first_col;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastColumn", "code": "    public short getLastColumn()\n    {\n        return field_4_last_col;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumColumns", "code": "    public int getNumColumns()\n    {\n        return field_4_last_col - field_2_first_col + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getXFAt", "code": "    public short getXFAt(int coffset)\n    {\n        return field_3_xfs[ coffset ];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_row       = LittleEndian.getUShort(data, 0 + offset);\n        field_2_first_col = LittleEndian.getShort(data, 2 + offset);\n        field_3_xfs       = parseXFs(data, 4, offset, size);\n        field_4_last_col  = LittleEndian.getShort(data,\n                                                  (field_3_xfs.length * 2)\n                                                  + 4 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [14, 17], [15, 18], [16, 19], [16, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [17, 14], [18, 15], [19, 16], [20, 16], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "parseXFs", "code": "    private short [] parseXFs(byte [] data, int offset, int recoffset,\n                              short size)\n    {\n        short[] retval = new short[ ((size - offset) - 2) / 2 ];\n        int     idx    = 0;\n\n        for (; offset < size - 2; )\n        {\n            short xf = 0;\n\n            xf            = LittleEndian.getShort(data, offset + recoffset);\n            offset        += 2;\n            retval[ idx ] = xf;\n            idx++;\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [9, 11], [3, 12], [2, 13], [2, 14], [2, 15], [11, 16], [4, 17], [14, 18], [15, 19], [10, 20], [17, 21], [17, 22], [19, 23], [22, 24], [22, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 9], [12, 3], [13, 2], [14, 2], [15, 2], [16, 11], [17, 4], [18, 14], [19, 15], [20, 10], [21, 17], [22, 17], [23, 19], [24, 22], [25, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[MULBLANK]\\n\");\n        buffer.append(\"row  = \")\n            .append(Integer.toHexString(getRow())).append(\"\\n\");\n        buffer.append(\"firstcol  = \")\n            .append(Integer.toHexString(getFirstColumn())).append(\"\\n\");\n        buffer.append(\" lastcol  = \")\n            .append(Integer.toHexString(getLastColumn())).append(\"\\n\");\n        for (int k = 0; k < getNumColumns(); k++)\n        {\n            buffer.append(\"xf\").append(k).append(\"        = \")\n                .append(Integer.toHexString(getXFAt(k))).append(\"\\n\");\n        }\n        buffer.append(\"[/MULBLANK]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [0, 8], [0, 9], [0, 10], [5, 11], [6, 12], [7, 13], [7, 14], [7, 15], [8, 16], [8, 17], [8, 18], [9, 19], [9, 20], [9, 21], [10, 22], [3, 23], [2, 24], [2, 25], [14, 26], [15, 27], [17, 28], [18, 29], [20, 30], [21, 31], [24, 32], [24, 33], [24, 34], [24, 35], [24, 36], [27, 37], [29, 38], [31, 39], [33, 40], [34, 41], [35, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 0], [9, 0], [10, 0], [11, 5], [12, 6], [13, 7], [14, 7], [15, 7], [16, 8], [17, 8], [18, 8], [19, 9], [20, 9], [21, 9], [22, 10], [23, 3], [24, 2], [25, 2], [26, 14], [27, 15], [28, 17], [29, 18], [30, 20], [31, 21], [32, 24], [33, 24], [34, 24], [35, 24], [36, 24], [37, 27], [38, 29], [39, 31], [40, 33], [41, 34], [42, 35], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a MulBlankRecord!\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        throw new RecordFormatException(\n            \"Sorry, you can't serialize a MulBlank in this release\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "MulBlankRecord", "code": "    public MulBlankRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "MulBlankRecord", "code": "    public MulBlankRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "MulBlankRecord", "code": "    public MulBlankRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.7-859", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/Files.java", "language": "java", "name": "org.apache.tools.ant.types.resources.Files", "code": "public class Files extends AbstractSelectorContainer\n    implements Cloneable, ResourceCollection {\n\n    private static final Iterator EMPTY_ITERATOR\n        = Collections.EMPTY_SET.iterator();\n\n    private PatternSet defaultPatterns = new PatternSet();\n    private Vector additionalPatterns = new Vector();\n    private Vector selectors = new Vector();\n\n    private boolean useDefaultExcludes = true;\n    private boolean caseSensitive = true;\n    private boolean followSymlinks = true;\n\n    /* cached DirectoryScanner instance */\n    private DirectoryScanner ds = null;\n\n    /**\n     * Construct a new <code>Files</code> collection.\n     */\n    public Files() {\n        super();\n    }\n\n    /**\n     * Construct a new <code>Files</code> collection, shallowly cloned\n     * from the specified <code>Files</code>.\n     * @param f the <code>Files</code> to use as a template.\n     */\n    protected Files(Files f) {\n        this.defaultPatterns = f.defaultPatterns;\n        this.additionalPatterns = f.additionalPatterns;\n        this.selectors = f.selectors;\n        this.useDefaultExcludes = f.useDefaultExcludes;\n        this.caseSensitive = f.caseSensitive;\n        this.followSymlinks = f.followSymlinks;\n        this.ds = f.ds;\n        setProject(f.getProject());\n    }\n\n    /**\n     * Make this instance in effect a reference to another instance.\n     *\n     * <p>You must not set another attribute or nest elements inside\n     * this element if you make it a reference.</p>\n     * @param r the <code>Reference</code> to use.\n     * @throws BuildException if there is a problem.\n     */\n    public void setRefid(Reference r) throws BuildException {\n        if (hasPatterns(defaultPatterns)) {\n            throw tooManyAttributes();\n        }\n        if (!additionalPatterns.isEmpty()) {\n            throw noChildrenAllowed();\n        }\n        if (!selectors.isEmpty()) {\n            throw noChildrenAllowed();\n        }\n        super.setRefid(r);\n    }\n\n    /**\n     * Create a nested patternset.\n     * @return <code>PatternSet</code>.\n     */\n    public synchronized PatternSet createPatternSet() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        PatternSet patterns = new PatternSet();\n        additionalPatterns.addElement(patterns);\n        ds = null;\n        return patterns;\n    }\n\n    /**\n     * Add a name entry to the include list.\n     * @return <code>PatternSet.NameEntry</code>.\n     */\n    public synchronized PatternSet.NameEntry createInclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        ds = null;\n        return defaultPatterns.createInclude();\n    }\n\n    /**\n     * Add a name entry to the include files list.\n     * @return <code>PatternSet.NameEntry</code>.\n     */\n    public synchronized PatternSet.NameEntry createIncludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        ds = null;\n        return defaultPatterns.createIncludesFile();\n    }\n\n    /**\n     * Add a name entry to the exclude list.\n     * @return <code>PatternSet.NameEntry</code>.\n     */\n    public synchronized PatternSet.NameEntry createExclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        ds = null;\n        return defaultPatterns.createExclude();\n    }\n\n    /**\n     * Add a name entry to the excludes files list.\n     * @return <code>PatternSet.NameEntry</code>.\n     */\n    public synchronized PatternSet.NameEntry createExcludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        ds = null;\n        return defaultPatterns.createExcludesFile();\n    }\n\n    /**\n     * Append <code>includes</code> to the current list of include\n     * patterns.\n     *\n     * <p>Patterns may be separated by a comma or a space.</p>\n     *\n     * @param includes the <code>String</code> containing the include patterns.\n     */\n    public synchronized void setIncludes(String includes) {\n        checkAttributesAllowed();\n        defaultPatterns.setIncludes(includes);\n        ds = null;\n    }\n\n    /**\n     * Append <code>includes</code> to the current list of include\n     * patterns.\n     *\n     * @param includes array containing the include patterns.\n     */\n    public synchronized void appendIncludes(String[] includes) {\n        checkAttributesAllowed();\n        if (includes != null) {\n            for (int i = 0; i < includes.length; i++) {\n                defaultPatterns.createInclude().setName(includes[i]);\n            }\n            ds = null;\n        }\n    }\n\n    /**\n     * Append <code>excludes</code> to the current list of exclude\n     * patterns.\n     *\n     * <p>Patterns may be separated by a comma or a space.</p>\n     *\n     * @param excludes the <code>String</code> containing the exclude patterns.\n     */\n    public synchronized void setExcludes(String excludes) {\n        checkAttributesAllowed();\n        defaultPatterns.setExcludes(excludes);\n        ds = null;\n    }\n\n    /**\n     * Append <code>excludes</code> to the current list of include\n     * patterns.\n     *\n     * @param excludes array containing the exclude patterns.\n     */\n    public synchronized void appendExcludes(String[] excludes) {\n        checkAttributesAllowed();\n        if (excludes != null) {\n            for (int i = 0; i < excludes.length; i++) {\n                defaultPatterns.createExclude().setName(excludes[i]);\n            }\n            ds = null;\n        }\n    }\n\n    /**\n     * Set the <code>File</code> containing the includes patterns.\n     *\n     * @param incl <code>File</code> instance.\n     * @throws BuildException if there is a problem.\n     */\n    public synchronized void setIncludesfile(File incl) throws BuildException {\n        checkAttributesAllowed();\n        defaultPatterns.setIncludesfile(incl);\n        ds = null;\n    }\n\n    /**\n     * Set the <code>File</code> containing the excludes patterns.\n     *\n     * @param excl <code>File</code> instance.\n     * @throws BuildException if there is a problem.\n     */\n    public synchronized void setExcludesfile(File excl) throws BuildException {\n        checkAttributesAllowed();\n        defaultPatterns.setExcludesfile(excl);\n        ds = null;\n    }\n\n    /**\n     * Set whether default exclusions should be used or not.\n     *\n     * @param useDefaultExcludes <code>boolean</code>.\n     */\n    public synchronized void setDefaultexcludes(boolean useDefaultExcludes) {\n        checkAttributesAllowed();\n        this.useDefaultExcludes = useDefaultExcludes;\n        ds = null;\n    }\n\n    /**\n     * Get whether default exclusions should be used or not.\n     * @return the defaultexclusions value.\n     */\n    public synchronized boolean getDefaultexcludes() {\n        return (isReference())\n            ? getRef().getDefaultexcludes() : useDefaultExcludes;\n    }\n\n    /**\n     * Set case-sensitivity of the Files collection.\n     *\n     * @param caseSensitive <code>boolean</code>.\n     */\n    public synchronized void setCaseSensitive(boolean caseSensitive) {\n        checkAttributesAllowed();\n        this.caseSensitive = caseSensitive;\n        ds = null;\n    }\n\n    /**\n     * Find out if this Files collection is case-sensitive.\n     *\n     * @return <code>boolean</code> indicating whether the Files\n     * collection is case-sensitive.\n     */\n    public synchronized boolean isCaseSensitive() {\n        return (isReference())\n            ? getRef().isCaseSensitive() : caseSensitive;\n    }\n\n    /**\n     * Set whether or not symbolic links should be followed.\n     *\n     * @param followSymlinks whether or not symbolic links should be followed.\n     */\n    public synchronized void setFollowSymlinks(boolean followSymlinks) {\n        checkAttributesAllowed();\n        this.followSymlinks = followSymlinks;\n        ds = null;\n    }\n\n    /**\n     * Find out whether symbolic links should be followed.\n     *\n     * @return <code>boolean</code> indicating whether symbolic links\n     *         should be followed.\n     */\n    public synchronized boolean isFollowSymlinks() {\n        return (isReference())\n            ? getRef().isFollowSymlinks() : followSymlinks;\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return an Iterator of Resources.\n     */\n    public synchronized Iterator iterator() {\n        if (isReference()) {\n            return getRef().iterator();\n        }\n        ensureDirectoryScannerSetup();\n        ds.scan();\n        int fct = ds.getIncludedFilesCount();\n        int dct = ds.getIncludedDirsCount();\n        if (fct + dct == 0) {\n            return EMPTY_ITERATOR;\n        }\n        FileResourceIterator result = new FileResourceIterator();\n        if (fct > 0) {\n            result.addFiles(ds.getIncludedFiles());\n        }\n        if (dct > 0) {\n            result.addFiles(ds.getIncludedDirectories());\n        }\n        return result;\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return number of elements as int.\n     */\n    public synchronized int size() {\n        if (isReference()) {\n            return getRef().size();\n        }\n        ensureDirectoryScannerSetup();\n        ds.scan();\n        return ds.getIncludedFilesCount() + ds.getIncludedDirsCount();\n    }\n\n    /**\n     * Find out whether this Files collection has patterns.\n     *\n     * @return whether any patterns are in this container.\n     */\n    public synchronized boolean hasPatterns() {\n        if (isReference()) {\n            return getRef().hasPatterns();\n        }\n        if (hasPatterns(defaultPatterns)) {\n            return true;\n        }\n        for (Iterator i = additionalPatterns.iterator(); i.hasNext();) {\n            if (hasPatterns((PatternSet) i.next())) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Add a new selector into this container.\n     *\n     * @param selector the new <code>FileSelector</code> to add.\n     */\n    public synchronized void appendSelector(FileSelector selector) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        super.appendSelector(selector);\n        ds = null;\n    }\n\n    /**\n     * Format this Files collection as a String.\n     * @return a descriptive <code>String</code>.\n     */\n    public String toString() {\n        if (isReference()) {\n            return getRef().toString();\n        }\n        Iterator i = iterator();\n        if (!i.hasNext()) {\n            return \"\";\n        }\n        StringBuffer sb = new StringBuffer();\n        while (i.hasNext()) {\n            if (sb.length() > 0) {\n                sb.append(File.pathSeparatorChar);\n            }\n            sb.append(i.next());\n        }\n        return sb.toString();\n    }\n\n    /**\n     * Create a deep clone of this instance, except for the nested selectors\n     * (the list of selectors is a shallow clone of this instance's list).\n     * @return a cloned Object.\n     */\n    public synchronized Object clone() {\n        if (isReference()) {\n            return getRef().clone();\n        }\n        try {\n            Files f = (Files) super.clone();\n            f.defaultPatterns = (PatternSet) defaultPatterns.clone();\n            f.additionalPatterns = new Vector(additionalPatterns.size());\n            for (Iterator iter = additionalPatterns.iterator(); iter.hasNext();) {\n                PatternSet ps = (PatternSet) iter.next();\n                f.additionalPatterns.add(ps.clone());\n            }\n            f.selectors = new Vector(selectors);\n            return f;\n        } catch (CloneNotSupportedException e) {\n            throw new BuildException(e);\n        }\n    }\n\n    /**\n     * Get the merged include patterns for this Files collection.\n     * @param p Project instance.\n     * @return the include patterns of the default pattern set and all\n     * nested patternsets.\n     */\n    public String[] mergeIncludes(Project p) {\n        return mergePatterns(p).getIncludePatterns(p);\n    }\n\n    /**\n     * Get the merged exclude patterns for this Files collection.\n     * @param p Project instance.\n     * @return the exclude patterns of the default pattern set and all\n     * nested patternsets.\n     */\n    public String[] mergeExcludes(Project p) {\n        return mergePatterns(p).getExcludePatterns(p);\n    }\n\n    /**\n     * Get the merged patterns for this Files collection.\n     * @param p Project instance.\n     * @return the default patternset merged with the additional sets\n     * in a new PatternSet instance.\n     */\n    public synchronized PatternSet mergePatterns(Project p) {\n        if (isReference()) {\n            return getRef().mergePatterns(p);\n        }\n        PatternSet ps = new PatternSet();\n        ps.append(defaultPatterns, p);\n        final int count = additionalPatterns.size();\n        for (int i = 0; i < count; i++) {\n            Object o = additionalPatterns.elementAt(i);\n            ps.append((PatternSet) o, p);\n        }\n        return ps;\n    }\n\n    /**\n     * Always returns true.\n     * @return true indicating that all elements of a Files collection\n     *              will be FileResources.\n     */\n    public boolean isFilesystemOnly() {\n        return true;\n    }\n\n    /**\n     * Perform the check for circular references and return the\n     * referenced Files collection.\n     * @return <code>FileCollection</code>.\n     */\n    protected Files getRef() {\n        return (Files) getCheckedRef();\n    }\n\n    private synchronized void ensureDirectoryScannerSetup() {\n        if (ds == null) {\n            ds = new DirectoryScanner();\n            PatternSet ps = mergePatterns(getProject());\n            ds.setIncludes(ps.getIncludePatterns(getProject()));\n            ds.setExcludes(ps.getExcludePatterns(getProject()));\n            ds.setSelectors(getSelectors(getProject()));\n            if (useDefaultExcludes) {\n                ds.addDefaultExcludes();\n            }\n            ds.setCaseSensitive(caseSensitive);\n            ds.setFollowSymlinks(followSymlinks);\n        }\n    }\n\n    private boolean hasPatterns(PatternSet ps) {\n        String[] includePatterns = ps.getIncludePatterns(getProject());\n        String[] excludePatterns = ps.getExcludePatterns(getProject());\n        return (includePatterns != null && includePatterns.length > 0)\n            || (includePatterns != null && excludePatterns.length > 0);", "functions": [{"function_name": "setRefid", "code": "    public void setRefid(Reference r) throws BuildException {\n        if (hasPatterns(defaultPatterns)) {\n            throw tooManyAttributes();\n        }\n        if (!additionalPatterns.isEmpty()) {\n            throw noChildrenAllowed();\n        }\n        if (!selectors.isEmpty()) {\n            throw noChildrenAllowed();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 8], [2, 9], [3, 10], [8, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 1], [9, 2], [10, 3], [11, 8], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createPatternSet", "code": "    public synchronized PatternSet createPatternSet() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        PatternSet patterns = new PatternSet();\n        additionalPatterns.addElement(patterns);\n        ds = null;\n        return patterns;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [2, 8], [3, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 2], [9, 3], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createInclude", "code": "    public synchronized PatternSet.NameEntry createInclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        ds = null;\n        return defaultPatterns.createInclude();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [4, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 4], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "createIncludesFile", "code": "    public synchronized PatternSet.NameEntry createIncludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        ds = null;\n        return defaultPatterns.createIncludesFile();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [4, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 4], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "createExclude", "code": "    public synchronized PatternSet.NameEntry createExclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        ds = null;\n        return defaultPatterns.createExclude();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [4, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 4], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "createExcludesFile", "code": "    public synchronized PatternSet.NameEntry createExcludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        ds = null;\n        return defaultPatterns.createExcludesFile();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [4, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 4], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setIncludes", "code": "    public synchronized void setIncludes(String includes) {\n        checkAttributesAllowed();\n        defaultPatterns.setIncludes(includes);\n        ds = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "appendIncludes", "code": "    public synchronized void appendIncludes(String[] includes) {\n        checkAttributesAllowed();\n        if (includes != null) {\n            for (int i = 0; i < includes.length; i++) {\n                defaultPatterns.createInclude().setName(includes[i]);\n            }\n            ds = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [1, 7], [5, 8], [7, 9], [5, 10], [5, 11], [10, 12], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 1], [8, 5], [9, 7], [10, 5], [11, 5], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setExcludes", "code": "    public synchronized void setExcludes(String excludes) {\n        checkAttributesAllowed();\n        defaultPatterns.setExcludes(excludes);\n        ds = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "appendExcludes", "code": "    public synchronized void appendExcludes(String[] excludes) {\n        checkAttributesAllowed();\n        if (excludes != null) {\n            for (int i = 0; i < excludes.length; i++) {\n                defaultPatterns.createExclude().setName(excludes[i]);\n            }\n            ds = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [1, 7], [5, 8], [7, 9], [5, 10], [5, 11], [10, 12], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 1], [8, 5], [9, 7], [10, 5], [11, 5], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setIncludesfile", "code": "    public synchronized void setIncludesfile(File incl) throws BuildException {\n        checkAttributesAllowed();\n        defaultPatterns.setIncludesfile(incl);\n        ds = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setExcludesfile", "code": "    public synchronized void setExcludesfile(File excl) throws BuildException {\n        checkAttributesAllowed();\n        defaultPatterns.setExcludesfile(excl);\n        ds = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setDefaultexcludes", "code": "    public synchronized void setDefaultexcludes(boolean useDefaultExcludes) {\n        checkAttributesAllowed();\n        this.useDefaultExcludes = useDefaultExcludes;\n        ds = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDefaultexcludes", "code": "    public synchronized boolean getDefaultexcludes() {\n        return (isReference())\n            ? getRef().getDefaultexcludes() : useDefaultExcludes;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setCaseSensitive", "code": "    public synchronized void setCaseSensitive(boolean caseSensitive) {\n        checkAttributesAllowed();\n        this.caseSensitive = caseSensitive;\n        ds = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isCaseSensitive", "code": "    public synchronized boolean isCaseSensitive() {\n        return (isReference())\n            ? getRef().isCaseSensitive() : caseSensitive;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setFollowSymlinks", "code": "    public synchronized void setFollowSymlinks(boolean followSymlinks) {\n        checkAttributesAllowed();\n        this.followSymlinks = followSymlinks;\n        ds = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isFollowSymlinks", "code": "    public synchronized boolean isFollowSymlinks() {\n        return (isReference())\n            ? getRef().isFollowSymlinks() : followSymlinks;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "iterator", "code": "    public synchronized Iterator iterator() {\n        if (isReference()) {\n            return getRef().iterator();\n        }\n        ensureDirectoryScannerSetup();\n        ds.scan();\n        int fct = ds.getIncludedFilesCount();\n        int dct = ds.getIncludedDirsCount();\n        if (fct + dct == 0) {\n            return EMPTY_ITERATOR;\n        }\n        FileResourceIterator result = new FileResourceIterator();\n        if (fct > 0) {\n            result.addFiles(ds.getIncludedFiles());\n        }\n        if (dct > 0) {\n            result.addFiles(ds.getIncludedDirectories());\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [5, 11], [0, 12], [0, 13], [8, 14], [9, 15], [10, 16], [4, 17], [5, 18], [11, 19], [11, 20], [6, 21], [7, 22], [8, 23], [2, 24], [3, 25], [23, 26], [24, 27], [25, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 5], [12, 0], [13, 0], [14, 8], [15, 9], [16, 10], [17, 4], [18, 5], [19, 11], [20, 11], [21, 6], [22, 7], [23, 8], [24, 2], [25, 3], [26, 23], [27, 24], [28, 25], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "size", "code": "    public synchronized int size() {\n        if (isReference()) {\n            return getRef().size();\n        }\n        ensureDirectoryScannerSetup();\n        ds.scan();\n        return ds.getIncludedFilesCount() + ds.getIncludedDirsCount();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [2, 6], [3, 7], [3, 8], [2, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 2], [7, 3], [8, 3], [9, 2], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "hasPatterns", "code": "    public synchronized boolean hasPatterns() {\n        if (isReference()) {\n            return getRef().hasPatterns();\n        }\n        if (hasPatterns(defaultPatterns)) {\n            return true;\n        }\n        for (Iterator i = additionalPatterns.iterator(); i.hasNext();) {\n            if (hasPatterns((PatternSet) i.next())) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "RETURN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [2, 9], [3, 10], [4, 11], [9, 12], [2, 13], [10, 14], [11, 15], [9, 16], [15, 17], [16, 18], [12, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 2], [10, 3], [11, 4], [12, 9], [13, 2], [14, 10], [15, 11], [16, 9], [17, 15], [18, 16], [19, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "appendSelector", "code": "    public synchronized void appendSelector(FileSelector selector) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        super.appendSelector(selector);\n        ds = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "    public String toString() {\n        if (isReference()) {\n            return getRef().toString();\n        }\n        Iterator i = iterator();\n        if (!i.hasNext()) {\n            return \"\";\n        }\n        StringBuffer sb = new StringBuffer();\n        while (i.hasNext()) {\n            if (sb.length() > 0) {\n                sb.append(File.pathSeparatorChar);\n            }\n            sb.append(i.next());\n        }\n        return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "RETURN", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [6, 10], [2, 11], [3, 12], [4, 13], [5, 14], [6, 15], [2, 16], [11, 17], [13, 18], [15, 19], [16, 20], [17, 21], [17, 22], [19, 23], [11, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 6], [11, 2], [12, 3], [13, 4], [14, 5], [15, 6], [16, 2], [17, 11], [18, 13], [19, 15], [20, 16], [21, 17], [22, 17], [23, 19], [24, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "clone", "code": "    public synchronized Object clone() {\n        if (isReference()) {\n            return getRef().clone();\n        }\n        try {\n            Files f = (Files) super.clone();\n            f.defaultPatterns = (PatternSet) defaultPatterns.clone();\n            f.additionalPatterns = new Vector(additionalPatterns.size());\n            for (Iterator iter = additionalPatterns.iterator(); iter.hasNext();) {\n                PatternSet ps = (PatternSet) iter.next();\n                f.additionalPatterns.add(ps.clone());\n            }\n            f.selectors = new Vector(selectors);\n            return f;\n        } catch (CloneNotSupportedException e) {\n            throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "CATCH", "RETURN", "LOOP", "VAR_DECL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "RETURN", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [1, 9], [5, 10], [1, 11], [1, 12], [2, 13], [8, 14], [9, 15], [5, 16], [11, 17], [13, 18], [5, 19], [5, 20], [17, 21], [12, 22], [18, 23], [19, 24], [16, 25], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 1], [10, 5], [11, 1], [12, 1], [13, 2], [14, 8], [15, 9], [16, 5], [17, 11], [18, 13], [19, 5], [20, 5], [21, 17], [22, 12], [23, 18], [24, 19], [25, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "mergeIncludes", "code": "    public String[] mergeIncludes(Project p) {\n        return mergePatterns(p).getIncludePatterns(p);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "mergeExcludes", "code": "    public String[] mergeExcludes(Project p) {\n        return mergePatterns(p).getExcludePatterns(p);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "mergePatterns", "code": "    public synchronized PatternSet mergePatterns(Project p) {\n        if (isReference()) {\n            return getRef().mergePatterns(p);\n        }\n        PatternSet ps = new PatternSet();\n        ps.append(defaultPatterns, p);\n        final int count = additionalPatterns.size();\n        for (int i = 0; i < count; i++) {\n            Object o = additionalPatterns.elementAt(i);\n            ps.append((PatternSet) o, p);\n        }\n        return ps;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [5, 9], [2, 10], [3, 11], [4, 12], [5, 13], [2, 14], [2, 15], [13, 16], [10, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 5], [10, 2], [11, 3], [12, 4], [13, 5], [14, 2], [15, 2], [16, 13], [17, 10], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "isFilesystemOnly", "code": "    public boolean isFilesystemOnly() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRef", "code": "    protected Files getRef() {\n        return (Files) getCheckedRef();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ensureDirectoryScannerSetup", "code": "    private synchronized void ensureDirectoryScannerSetup() {\n        if (ds == null) {\n            ds = new DirectoryScanner();\n            PatternSet ps = mergePatterns(getProject());\n            ds.setIncludes(ps.getIncludePatterns(getProject()));\n            ds.setExcludes(ps.getExcludePatterns(getProject()));\n            ds.setSelectors(getSelectors(getProject()));\n            if (useDefaultExcludes) {\n                ds.addDefaultExcludes();\n            }\n            ds.setCaseSensitive(caseSensitive);\n            ds.setFollowSymlinks(followSymlinks);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [8, 12], [9, 13], [10, 14], [4, 15], [11, 16], [3, 17], [12, 18], [13, 19], [14, 20], [15, 21], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 8], [13, 9], [14, 10], [15, 4], [16, 11], [17, 3], [18, 12], [19, 13], [20, 14], [21, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "hasPatterns", "code": "    private boolean hasPatterns(PatternSet ps) {\n        String[] includePatterns = ps.getIncludePatterns(getProject());\n        String[] excludePatterns = ps.getExcludePatterns(getProject());\n        return (includePatterns != null && includePatterns.length > 0)\n            || (includePatterns != null && excludePatterns.length > 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [3, 9], [6, 10], [6, 11], [7, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [9, 3], [10, 6], [11, 6], [12, 7], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "Files", "code": "    public Files() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Files", "code": "    protected Files(Files f) {\n        this.defaultPatterns = f.defaultPatterns;\n        this.additionalPatterns = f.additionalPatterns;\n        this.selectors = f.selectors;\n        this.useDefaultExcludes = f.useDefaultExcludes;\n        this.caseSensitive = f.caseSensitive;\n        this.followSymlinks = f.followSymlinks;\n        this.ds = f.ds;\n        setProject(f.getProject());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 1}
{"sample_id": "jedit-4.1-4094", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/ConsoleInterface.java", "language": "java", "name": "bsh.ConsoleInterface", "code": "public interface ConsoleInterface {\n\tpublic Reader getIn();\n\tpublic PrintStream getOut();\n\tpublic PrintStream getErr();\n\tpublic void println( String s );\n\tpublic void print( String s );\n\tpublic void error( String s );", "functions": [{"function_name": "getIn", "code": "\tpublic Reader getIn();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getOut", "code": "\tpublic PrintStream getOut();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getErr", "code": "\tpublic PrintStream getErr();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "println", "code": "\tpublic void println( String s );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "print", "code": "\tpublic void print( String s );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "error", "code": "\tpublic void error( String s );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.2-4506", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/gui/PanelWindowContainer.java", "language": "java", "name": "org.gjt.sp.jedit.gui.PanelWindowContainer", "code": "public class PanelWindowContainer implements DockableWindowContainer\n{\n\t//{{{ PanelWindowContainer constructor\n\tpublic PanelWindowContainer(DockableWindowManager wm, String position,\n\t\tint dimension)\n\t{\n\t\tthis.wm = wm;\n\t\tthis.position = position;\n\n\t\t//{{{ Button box setup\n\t\tbuttonPanel = new JPanel(new ButtonLayout());\n\t\tbuttonPanel.setBorder(new EmptyBorder(1,1,1,1));\n\n\t\tcloseBox = new JButton(GUIUtilities.loadIcon(\"closebox.gif\"));\n\t\tcloseBox.setRequestFocusEnabled(false);\n\t\tcloseBox.setToolTipText(jEdit.getProperty(\"view.docking.close-tooltip\"));\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tcloseBox.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\n\t\tcloseBox.setMargin(new Insets(0,0,0,0));\n\n\t\tcloseBox.addActionListener(new ActionHandler());\n\n\t\tmenuBtn = new JButton(GUIUtilities.loadIcon(\"ToolbarMenu.gif\"));\n\t\tmenuBtn.setRequestFocusEnabled(false);\n\t\tmenuBtn.setToolTipText(jEdit.getProperty(\"view.docking.menu-tooltip\"));\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tmenuBtn.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\n\t\tmenuBtn.setMargin(new Insets(0,0,0,0));\n\n\t\tmenuBtn.addMouseListener(new MenuMouseHandler());\n\n\t\tbuttonGroup = new ButtonGroup();\n\t\t// JDK 1.4 workaround\n\t\tbuttonGroup.add(nullButton = new JToggleButton());\n\t\t//}}}\n\n\t\tdockables = new ArrayList();\n\t\tbuttons = new ArrayList();\n\t\tdockablePanel = new DockablePanel();\n\n\t\tthis.dimension = dimension;\n\t} //}}}\n\n\t//{{{ register() method\n\tpublic void register(final DockableWindowManager.Entry entry)\n\t{\n\t\tdockables.add(entry);\n\n\t\t//{{{ Create button\n\t\tint rotation;\n\t\tif(position.equals(DockableWindowManager.TOP)\n\t\t\t|| position.equals(DockableWindowManager.BOTTOM))\n\t\t\trotation = RotatedTextIcon.NONE;\n\t\telse if(position.equals(DockableWindowManager.LEFT))\n\t\t\trotation = RotatedTextIcon.CCW;\n\t\telse if(position.equals(DockableWindowManager.RIGHT))\n\t\t\trotation = RotatedTextIcon.CW;\n\t\telse\n\t\t\tthrow new InternalError(\"Invalid position: \" + position);\n\n\t\tJToggleButton button = new JToggleButton();\n\t\tbutton.setMargin(new Insets(1,1,1,1));\n\t\tbutton.setRequestFocusEnabled(false);\n\t\tbutton.setIcon(new RotatedTextIcon(rotation,button.getFont(),\n\t\t\tentry.title));\n\t\tbutton.setActionCommand(entry.factory.name);\n\t\tbutton.addActionListener(new ActionHandler());\n\t\tbutton.addMouseListener(new MenuMouseHandler());\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tbutton.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\t\t//}}}\n\n\t\tbuttonGroup.add(button);\n\t\tbuttons.add(button);\n\t\tentry.btn = button;\n\n\t\twm.revalidate();\n\t} //}}}\n\n\t//{{{ unregister() method\n\tpublic void unregister(DockableWindowManager.Entry entry)\n\t{\n\t\tif(entry.factory.name.equals(mostRecent))\n\t\t\tmostRecent = null;\n\n\t\tbuttonPanel.remove(entry.btn);\n\t\tbuttons.remove(entry.btn);\n\t\tentry.btn = null;\n\n\t\tdockables.remove(entry);\n\t\tif(entry.win != null)\n\t\t\tdockablePanel.remove(entry.win);\n\n\t\tif(current == entry)\n\t\t{\n\t\t\tcurrent = null;\n\t\t\tshow(null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\twm.revalidate();\n\t\t\tdockablePanel.repaint();\n\t\t\tbuttonPanel.repaint();\n\t\t}\n\t} //}}}\n\n\t//{{{ remove() method\n\tpublic void remove(final DockableWindowManager.Entry entry)\n\t{\n\t\tif(entry.factory.name.equals(mostRecent))\n\t\t\tmostRecent = null;\n\n\t\tif(entry.win != null)\n\t\t{\n\t\t\tdockablePanel.remove(entry.win);\n\t\t\tentry.win = null;\n\t\t}\n\n\t\tif(current == entry)\n\t\t{\n\t\t\tcurrent = null;\n\t\t\tshow(null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\twm.revalidate();\n\t\t\tdockablePanel.repaint();\n\t\t}\n\t} //}}}\n\n\t//{{{ showMostRecent() method\n\tpublic void showMostRecent()\n\t{\n\t\tif(dockables.size() == 0)\n\t\t{\n\t\t\tToolkit.getDefaultToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(mostRecent == null)\n\t\t{\n\t\t\tmostRecent = ((DockableWindowManager.Entry)\n\t\t\t\tdockables.get(0)).factory.name;\n\t\t}\n\n\t\twm.showDockableWindow(mostRecent);\n\t} //}}}\n\n\t//{{{ show() method\n\tpublic void show(final DockableWindowManager.Entry entry)\n\t{\n\t\tif(current == entry)\n\t\t{\n\t\t\tif(entry != null)\n\t\t\t{\n\t\t\t\tif(entry.win instanceof DefaultFocusComponent)\n\t\t\t\t{\n\t\t\t\t\t((DefaultFocusComponent)entry.win)\n\t\t\t\t\t\t.focusOnDefaultComponent();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif(entry != null)\n\t\t{\n\t\t\tif(current == null)\n\t\t\t{\n\t\t\t\t// we didn't have a component previously, so\n\t\t\t\t// create a border\n\t\t\t\tdockablePanel.setBorder(new DockBorder(position));\n\t\t\t}\n\n\t\t\tmostRecent = entry.factory.name;\n\t\t\tthis.current = entry;\n\n\t\t\tif(entry.win.getParent() != dockablePanel)\n\t\t\t\tdockablePanel.add(entry.factory.name,entry.win);\n\n\t\t\tdockablePanel.showDockable(entry.factory.name);\n\n\t\t\tentry.btn.setSelected(true);\n\n\t\t\tif(entry.win instanceof DefaultFocusComponent)\n\t\t\t{\n\t\t\t\t((DefaultFocusComponent)entry.win)\n\t\t\t\t\t.focusOnDefaultComponent();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcurrent = null;\n\t\t\tnullButton.setSelected(true);\n\t\t\t// removing last component, so remove border\n\t\t\tdockablePanel.setBorder(null);\n\n\t\t\twm.getView().getTextArea().requestFocus();\n\t\t}\n\n\t\twm.revalidate();\n\t\tdockablePanel.repaint();\n\t} //}}}\n\n\t//{{{ isVisible() method\n\tpublic boolean isVisible(DockableWindowManager.Entry entry)\n\t{\n\t\treturn current == entry;\n\t} //}}}\n\n\t//{{{ getCurrent() method\n\t/**\n\t * Returns the name of the dockable in this container.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic String getCurrent()\n\t{\n\t\tif(current == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn current.factory.name;\n\t} //}}}\n\n\t//{{{ getDimension() method\n\t/**\n\t * Returns the width or height (depending on position) of the dockable\n\t * window container.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic int getDimension()\n\t{\n\t\treturn dimension;\n\t} //}}}\n\n\t//{{{ getDockables() method\n\tpublic String[] getDockables()\n\t{\n\t\tString[] retVal = new String[dockables.size()];\n\t\tfor(int i = 0; i < dockables.size(); i++)\n\t\t{\n\t\t\tDockableWindowManager.Entry entry =\n\t\t\t\t(DockableWindowManager.Entry) dockables.get(i);\n\t\t\tretVal[i] = entry.factory.name;\n\t\t}\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ Package-private members\n\tstatic final int SPLITTER_WIDTH = 10;\n\tDockablePanel dockablePanel;\n\tJPanel buttonPanel;\n\n\t//{{{ save() method\n\tvoid save()\n\t{\n\t\tjEdit.setIntegerProperty(\"view.dock.\" + position + \".dimension\",\n\t\t\tdimension);\n\t\tif(current == null)\n\t\t\tjEdit.unsetProperty(\"view.dock.\" + position + \".last\");\n\t\telse\n\t\t{\n\t\t\tjEdit.setProperty(\"view.dock.\" + position + \".last\",\n\t\t\t\tcurrent.factory.name);\n\t\t}\n\t} //}}}\n\n\t//{{{ setDimension() method\n\tvoid setDimension(int dimension)\n\t{\n\t\tif(dimension != 0)\n\t\t\tthis.dimension = dimension - SPLITTER_WIDTH;\n\t} //}}}\n\n\t//{{{ sortDockables() method\n\tvoid sortDockables()\n\t{\n\t\tbuttonPanel.removeAll();\n\t\tbuttonPanel.add(closeBox);\n\t\tbuttonPanel.add(menuBtn);\n\t\tCollections.sort(buttons,new DockableWindowCompare());\n\t\tfor(int i = 0; i < buttons.size(); i++)\n\t\t{\n\t\t\tbuttonPanel.add((AbstractButton)buttons.get(i));\n\t\t}\n\t} //}}}\n\n\t//{{{ getWrappedDimension() method\n\t/**\n\t * Returns the width or height of wrapped rows or columns.\n\t */\n\tint getWrappedDimension(int dimension)\n\t{\n\t\treturn ((ButtonLayout)buttonPanel.getLayout())\n\t\t\t.getWrappedDimension(buttonPanel,dimension);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\tprivate DockableWindowManager wm;\n\tprivate String position;\n\tprivate JButton closeBox;\n\tprivate JButton menuBtn;\n\tprivate ButtonGroup buttonGroup;\n\tprivate JToggleButton nullButton;\n\tprivate int dimension;\n\tprivate ArrayList dockables;\n\tprivate ArrayList buttons;\n\tprivate DockableWindowManager.Entry current;\n\tprivate JPopupMenu popup;\n\n\t// remember the most recent dockable\n\tprivate String mostRecent;\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ DockableWindowCompare class\n\tstatic class DockableWindowCompare implements Comparator\n\t{\n\t\tpublic int compare(Object o1, Object o2)\n\t\t{\n\t\t\tString name1 = ((AbstractButton)o1).getActionCommand();\n\t\t\tString name2 = ((AbstractButton)o2).getActionCommand();\n\t\t\treturn MiscUtilities.compareStrings(\n\t\t\t\tjEdit.getProperty(name1 + \".title\",\"\"),\n\t\t\t\tjEdit.getProperty(name2 + \".title\",\"\"),\n\t\t\t\ttrue);\n\t\t}\n\t} //}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(popup != null && popup.isVisible())\n\t\t\t\tpopup.setVisible(false);\n\n\t\t\tif(evt.getSource() == closeBox)\n\t\t\t\tshow(null);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(wm.isDockableWindowVisible(evt.getActionCommand()))\n\t\t\t\t\tshow(null);\n\t\t\t\telse\n\t\t\t\t\twm.showDockableWindow(evt.getActionCommand());\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ MenuMouseHandler class\n\tclass MenuMouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mousePressed(MouseEvent evt)\n\t\t{\n\t\t\tif(popup != null && popup.isVisible())\n\t\t\t{\n\t\t\t\tpopup.setVisible(false);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tComponent comp = (Component)evt.getSource();\n\t\t\tString dockable;\n\t\t\tif(comp instanceof JToggleButton)\n\t\t\t\tdockable = ((JToggleButton)comp).getActionCommand();\n\t\t\telse\n\t\t\t\tdockable = getCurrent();\n\n\t\t\tif(comp == menuBtn || GUIUtilities.isPopupTrigger(evt))\n\t\t\t{\n\t\t\t\tif(dockable == null)\n\t\t\t\t{\n\t\t\t\t\tpopup = wm.createPopupMenu(PanelWindowContainer.this,null,false);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpopup = wm.createPopupMenu(PanelWindowContainer.this,dockable,false);\n\t\t\t\t}\n\n\t\t\t\tint x, y;\n\t\t\t\tboolean point;\n\t\t\t\tif(comp == menuBtn)\n\t\t\t\t{\n\t\t\t\t\tx = 0;\n\t\t\t\t\ty = menuBtn.getHeight();\n\t\t\t\t\tpoint = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tx = evt.getX();\n\t\t\t\t\ty = evt.getY();\n\t\t\t\t\tpoint = true;\n\t\t\t\t}\n\t\t\t\tGUIUtilities.showPopupMenu(popup,\n\t\t\t\t\tcomp,x,y,point);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ DockBorder class\n\tstatic class DockBorder implements Border\n\t{\n\t\tString position;\n\t\tInsets insets;\n\t\tColor color1;\n\t\tColor color2;\n\t\tColor color3;\n\n\t\t//{{{ DockBorder constructor\n\t\tDockBorder(String position)\n\t\t{\n\t\t\tthis.position = position;\n\t\t\tinsets = new Insets(\n\t\t\t\tposition.equals(DockableWindowManager.BOTTOM)\n\t\t\t\t\t? SPLITTER_WIDTH : 0,\n\t\t\t\tposition.equals(DockableWindowManager.RIGHT)\n\t\t\t\t\t? SPLITTER_WIDTH : 0,\n\t\t\t\tposition.equals(DockableWindowManager.TOP)\n\t\t\t\t\t? SPLITTER_WIDTH : 0,\n\t\t\t\tposition.equals(DockableWindowManager.LEFT)\n\t\t\t\t\t? SPLITTER_WIDTH : 0);\n\t\t} //}}}\n\n\t\t//{{{ paintBorder() method\n\t\tpublic void paintBorder(Component c, Graphics g,\n\t\t\tint x, int y, int width, int height)\n\t\t{\n\t\t\tupdateColors();\n\n\t\t\tif(color1 == null || color2 == null || color3 == null)\n\t\t\t\treturn;\n\n\t\t\tif(position.equals(DockableWindowManager.BOTTOM))\n\t\t\t\tpaintHorizBorder(g,x,y,width);\n\t\t\telse if(position.equals(DockableWindowManager.RIGHT))\n\t\t\t\tpaintVertBorder(g,x,y,height);\n\t\t\telse if(position.equals(DockableWindowManager.TOP))\n\t\t\t{\n\t\t\t\tpaintHorizBorder(g,x,y + height\n\t\t\t\t\t- SPLITTER_WIDTH,width);\n\t\t\t}\n\t\t\telse if(position.equals(DockableWindowManager.LEFT))\n\t\t\t{\n\t\t\t\tpaintVertBorder(g,x + width\n\t\t\t\t\t- SPLITTER_WIDTH,y,height);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ getBorderInsets() method\n\t\tpublic Insets getBorderInsets(Component c)\n\t\t{\n\t\t\treturn insets;\n\t\t} //}}}\n\n\t\t//{{{ isBorderOpaque() method\n\t\tpublic boolean isBorderOpaque()\n\t\t{\n\t\t\treturn false;\n\t\t} //}}}\n\n\t\t//{{{ paintHorizBorder() method\n\t\tprivate void paintHorizBorder(Graphics g, int x, int y, int width)\n\t\t{\n\t\t\tg.setColor(color3);\n\t\t\tg.fillRect(x,y,width,SPLITTER_WIDTH);\n\n\t\t\tfor(int i = 0; i < width / 4 - 1; i++)\n\t\t\t{\n\t\t\t\tg.setColor(color1);\n\t\t\t\tg.drawLine(x + i * 4 + 2,y + 3,\n\t\t\t\t\tx + i * 4 + 2,y + 3);\n\t\t\t\tg.setColor(color2);\n\t\t\t\tg.drawLine(x + i * 4 + 3,y + 4,\n\t\t\t\t\tx + i * 4 + 3,y + 4);\n\t\t\t\tg.setColor(color1);\n\t\t\t\tg.drawLine(x + i * 4 + 4,y + 5,\n\t\t\t\t\tx + i * 4 + 4,y + 5);\n\t\t\t\tg.setColor(color2);\n\t\t\t\tg.drawLine(x + i * 4 + 5,y + 6,\n\t\t\t\t\tx + i * 4 + 5,y + 6);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ paintVertBorder() method\n\t\tprivate void paintVertBorder(Graphics g, int x, int y, int height)\n\t\t{\n\t\t\tg.setColor(color3);\n\t\t\tg.fillRect(x,y,SPLITTER_WIDTH,height);\n\n\t\t\tfor(int i = 0; i < height / 4 - 1; i++)\n\t\t\t{\n\t\t\t\tg.setColor(color1);\n\t\t\t\tg.drawLine(x + 3,y + i * 4 + 2,\n\t\t\t\t\tx + 3,y + i * 4 + 2);\n\t\t\t\tg.setColor(color2);\n\t\t\t\tg.drawLine(x + 4,y + i * 4 + 3,\n\t\t\t\t\tx + 4,y + i * 4 + 3);\n\t\t\t\tg.setColor(color1);\n\t\t\t\tg.drawLine(x + 5,y + i * 4 + 4,\n\t\t\t\t\tx + 5,y + i * 4 + 4);\n\t\t\t\tg.setColor(color2);\n\t\t\t\tg.drawLine(x + 6,y + i * 4 + 5,\n\t\t\t\t\tx + 6,y + i * 4 + 5);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ updateColors() method\n\t\tprivate void updateColors()\n\t\t{\n\t\t\tif(UIManager.getLookAndFeel() instanceof MetalLookAndFeel)\n\t\t\t{\n\t\t\t\tcolor1 = MetalLookAndFeel.getControlHighlight();\n\t\t\t\tcolor2 = MetalLookAndFeel.getControlDarkShadow();\n\t\t\t\tcolor3 = MetalLookAndFeel.getControl();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcolor1 = color2 = color3 = null;\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ RotatedTextIcon class\n\tpublic static class RotatedTextIcon implements Icon\n\t{\n\t\tpublic static final int NONE = 0;\n\t\tpublic static final int CW = 1;\n\t\tpublic static final int CCW = 2;\n\n\t\t//{{{ RotatedTextIcon constructor\n\t\tpublic RotatedTextIcon(int rotate, Font font, String text)\n\t\t{\n\t\t\tthis.rotate = rotate;\n\t\t\tthis.font = font;\n\n\t\t\tFontRenderContext fontRenderContext\n\t\t\t\t= new FontRenderContext(null,true,true);\n\t\t\tthis.text = text;\n\t\t\tglyphs = font.createGlyphVector(fontRenderContext,text);\n\t\t\twidth = (int)glyphs.getLogicalBounds().getWidth() + 4;\n\t\t\t//height = (int)glyphs.getLogicalBounds().getHeight();\n\n\t\t\tLineMetrics lineMetrics = font.getLineMetrics(text,fontRenderContext);\n\t\t\tascent = lineMetrics.getAscent();\n\t\t\theight = (int)lineMetrics.getHeight();\n\n\t\t\trenderHints = new RenderingHints(\n\t\t\t\tRenderingHints.KEY_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\trenderHints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n\t\t\t\tRenderingHints.VALUE_FRACTIONALMETRICS_ON);\n\t\t\trenderHints.put(RenderingHints.KEY_RENDERING,\n\t\t\t\tRenderingHints.VALUE_RENDER_QUALITY);\n\t\t} //}}}\n\n\t\t//{{{ getIconWidth() method\n\t\tpublic int getIconWidth()\n\t\t{\n\t\t\treturn (int)(rotate == RotatedTextIcon.CW\n\t\t\t\t|| rotate == RotatedTextIcon.CCW\n\t\t\t\t? height : width);\n\t\t} //}}}\n\n\t\t//{{{ getIconHeight() method\n\t\tpublic int getIconHeight()\n\t\t{\n\t\t\treturn (int)(rotate == RotatedTextIcon.CW\n\t\t\t\t|| rotate == RotatedTextIcon.CCW\n\t\t\t\t? width : height);\n\t\t} //}}}\n\n\t\t//{{{ paintIcon() method\n\t\tpublic void paintIcon(Component c, Graphics g, int x, int y)\n\t\t{\n\t\t\tGraphics2D g2d = (Graphics2D)g;\n\t\t\tg2d.setFont(font);\n\t\t\tAffineTransform oldTransform = g2d.getTransform();\n\t\t\tRenderingHints oldHints = g2d.getRenderingHints();\n\n\t\t\tg2d.setRenderingHints(renderHints);\n\t\t\tg2d.setColor(c.getForeground());\n\n\t\t\t//{{{ No rotation\n\t\t\tif(rotate == RotatedTextIcon.NONE)\n\t\t\t{\n\t\t\t\tg2d.drawGlyphVector(glyphs,x + 2,y + ascent);\n\t\t\t} //}}}\n\t\t\t//{{{ Clockwise rotation\n\t\t\telse if(rotate == RotatedTextIcon.CW)\n\t\t\t{\n\t\t\t\tAffineTransform trans = new AffineTransform();\n\t\t\t\ttrans.concatenate(oldTransform);\n\t\t\t\ttrans.translate(x,y + 2);\n\t\t\t\ttrans.rotate(Math.PI / 2,\n\t\t\t\t\theight / 2, width / 2);\n\t\t\t\tg2d.setTransform(trans);\n\t\t\t\tg2d.drawGlyphVector(glyphs,(height - width) / 2,\n\t\t\t\t\t(width - height) / 2\n\t\t\t\t\t+ ascent);\n\t\t\t} //}}}\n\t\t\t//{{{ Counterclockwise rotation\n\t\t\telse if(rotate == RotatedTextIcon.CCW)\n\t\t\t{\n\t\t\t\tAffineTransform trans = new AffineTransform();\n\t\t\t\ttrans.concatenate(oldTransform);\n\t\t\t\ttrans.translate(x,y - 2);\n\t\t\t\ttrans.rotate(Math.PI * 3 / 2,\n\t\t\t\t\theight / 2, width / 2);\n\t\t\t\tg2d.setTransform(trans);\n\t\t\t\tg2d.drawGlyphVector(glyphs,(height - width) / 2,\n\t\t\t\t\t(width - height) / 2\n\t\t\t\t\t+ ascent);\n\t\t\t} //}}}\n\n\t\t\tg2d.setTransform(oldTransform);\n\t\t\tg2d.setRenderingHints(oldHints);\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate int rotate;\n\t\tprivate Font font;\n\t\tprivate String text;\n\t\tprivate GlyphVector glyphs;\n\t\tprivate float width;\n\t\tprivate float height;\n\t\tprivate float ascent;\n\t\tprivate RenderingHints renderHints;\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ ButtonLayout class\n\tclass ButtonLayout implements LayoutManager\n\t{\n\t\t//{{{ addLayoutComponent() method\n\t\tpublic void addLayoutComponent(String name, Component comp) {} //}}}\n\n\t\t//{{{ removeLayoutComponent() method\n\t\tpublic void removeLayoutComponent(Component comp) {} //}}}\n\n\t\t//{{{ getWrappedDimension() method\n\t\t/**\n\t\t * Returns the width or height of wrapped rows or columns.\n\t\t */\n\t\tint getWrappedDimension(JComponent parent, int dimension)\n\t\t{\n\t\t\tInsets insets = ((JComponent)parent).getBorder()\n\t\t\t\t.getBorderInsets((JComponent)parent);\n\n\t\t\tComponent[] comp = parent.getComponents();\n\t\t\tif(comp.length <= 2)\n\t\t\t\treturn 0;\n\n\t\t\tDimension dim = comp[2].getPreferredSize();\n\n\t\t\tif(position.equals(DockableWindowManager.TOP)\n\t\t\t\t|| position.equals(DockableWindowManager.BOTTOM))\n\t\t\t{\n\t\t\t\tint width = dimension - insets.right;\n\t\t\t\tint rowHeight = Math.max(dim.height,closeBox.getPreferredSize().width);\n\t\t\t\tint x = rowHeight * 2 + insets.left;\n\t\t\t\tDimension returnValue = new Dimension(0,rowHeight\n\t\t\t\t\t+ insets.top + insets.bottom);\n\n\t\t\t\tfor(int i = 2; i < comp.length; i++)\n\t\t\t\t{\n\t\t\t\t\tint btnWidth = comp[i].getPreferredSize().width;\n\t\t\t\t\tif(btnWidth + x > width)\n\t\t\t\t\t{\n\t\t\t\t\t\treturnValue.height += rowHeight;\n\t\t\t\t\t\tx = insets.left;\n\t\t\t\t\t}\n\n\t\t\t\t\tx += btnWidth;\n\t\t\t\t}\n\t\t\t\treturn returnValue.height;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint height = dimension - insets.bottom;\n\t\t\t\tint colWidth = Math.max(dim.width,closeBox.getPreferredSize().height);\n\t\t\t\tint y = colWidth * 2 + insets.top;\n\t\t\t\tDimension returnValue = new Dimension(colWidth\n\t\t\t\t\t+ insets.left + insets.right,0);\n\n\t\t\t\tfor(int i = 2; i < comp.length; i++)\n\t\t\t\t{\n\t\t\t\t\tint btnHeight = comp[i].getPreferredSize().height;\n\t\t\t\t\tif(btnHeight + y > height)\n\t\t\t\t\t{\n\t\t\t\t\t\treturnValue.width += colWidth;\n\t\t\t\t\t\ty = insets.top;\n\t\t\t\t\t}\n\n\t\t\t\t\ty += btnHeight;\n\t\t\t\t}\n\t\t\t\treturn returnValue.width;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ preferredLayoutSize() method\n\t\tpublic Dimension preferredLayoutSize(Container parent)\n\t\t{\n\t\t\tInsets insets = ((JComponent)parent).getBorder()\n\t\t\t\t.getBorderInsets((JComponent)parent);\n\n\t\t\tComponent[] comp = parent.getComponents();\n\t\t\tif(comp.length <= 2)\n\t\t\t{\n\t\t\t\t// nothing 'cept close box\n\t\t\t\treturn new Dimension(0,0);\n\t\t\t}\n\n\t\t\tDimension dim = comp[2].getPreferredSize();\n\n\t\t\tif(position.equals(DockableWindowManager.TOP)\n\t\t\t\t|| position.equals(DockableWindowManager.BOTTOM))\n\t\t\t{\n\t\t\t\tint width = parent.getWidth() - insets.right;\n\t\t\t\tint rowHeight = Math.max(dim.height,closeBox.getPreferredSize().width);\n\t\t\t\tint x = rowHeight * 2 + insets.left;\n\t\t\t\tDimension returnValue = new Dimension(0,rowHeight\n\t\t\t\t\t+ insets.top + insets.bottom);\n\n\t\t\t\tfor(int i = 2; i < comp.length; i++)\n\t\t\t\t{\n\t\t\t\t\tint btnWidth = comp[i].getPreferredSize().width;\n\t\t\t\t\tif(btnWidth + x > width)\n\t\t\t\t\t{\n\t\t\t\t\t\treturnValue.height += rowHeight;\n\t\t\t\t\t\tx = insets.left;\n\t\t\t\t\t}\n\n\t\t\t\t\tx += btnWidth;\n\t\t\t\t}\n\t\t\t\treturn returnValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint height = parent.getHeight() - insets.bottom;\n\t\t\t\tint colWidth = Math.max(dim.width,closeBox.getPreferredSize().height);\n\t\t\t\tint y = colWidth * 2 + insets.top;\n\t\t\t\tDimension returnValue = new Dimension(colWidth\n\t\t\t\t\t+ insets.left + insets.right,0);\n\n\t\t\t\tfor(int i = 2; i < comp.length; i++)\n\t\t\t\t{\n\t\t\t\t\tint btnHeight = comp[i].getPreferredSize().height;\n\t\t\t\t\tif(btnHeight + y > height)\n\t\t\t\t\t{\n\t\t\t\t\t\treturnValue.width += colWidth;\n\t\t\t\t\t\ty = insets.top;\n\t\t\t\t\t}\n\n\t\t\t\t\ty += btnHeight;\n\t\t\t\t}\n\t\t\t\treturn returnValue;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ minimumLayoutSize() method\n\t\tpublic Dimension minimumLayoutSize(Container parent)\n\t\t{\n\t\t\treturn preferredLayoutSize(parent);\n\t\t} //}}}\n\n\t\t//{{{ layoutContainer() method\n\t\tpublic void layoutContainer(Container parent)\n\t\t{\n\t\t\tInsets insets = ((JComponent)parent).getBorder()\n\t\t\t\t.getBorderInsets((JComponent)parent);\n\n\t\t\tComponent[] comp = parent.getComponents();\n\t\t\tif(comp.length <= 2)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < comp.length; i++)\n\t\t\t\t{\n\t\t\t\t\tcomp[i].setVisible(false);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcomp[0].setVisible(true);\n\t\t\tcomp[1].setVisible(true);\n\n\t\t\tDimension dim = comp[2].getPreferredSize();\n\n\t\t\tif(position.equals(DockableWindowManager.TOP)\n\t\t\t\t|| position.equals(DockableWindowManager.BOTTOM))\n\t\t\t{\n\t\t\t\tint width = parent.getWidth() - insets.right;\n\t\t\t\tint rowHeight = Math.max(dim.height,closeBox.getPreferredSize().width);\n\t\t\t\tint x = rowHeight * 2 + insets.left;\n\t\t\t\tint y = insets.top;\n\t\t\t\tcloseBox.setBounds(insets.left,insets.top,rowHeight,rowHeight);\n\t\t\t\tmenuBtn.setBounds(insets.left + rowHeight,insets.top,rowHeight,rowHeight);\n\n\t\t\t\tfor(int i = 2; i < comp.length; i++)\n\t\t\t\t{\n\t\t\t\t\tint btnWidth = comp[i].getPreferredSize().width;\n\t\t\t\t\tif(btnWidth + x > width)\n\t\t\t\t\t{\n\t\t\t\t\t\tx = insets.left;\n\t\t\t\t\t\ty += rowHeight;\n\t\t\t\t\t}\n\t\t\t\t\tcomp[i].setBounds(x,y,btnWidth,rowHeight);\n\t\t\t\t\tx += btnWidth;\n\t\t\t\t}\n\n\t\t\t\t/* if(y + rowHeight != parent.getHeight())\n\t\t\t\t{\n\t\t\t\t\tparent.setSize(\n\t\t\t\t\t\tparent.getWidth(),\n\t\t\t\t\t\ty + rowHeight);\n\t\t\t\t\t((JComponent)parent).revalidate();\n\t\t\t\t} */\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint height = parent.getHeight() - insets.bottom;\n\t\t\t\tint colWidth = Math.max(dim.width,closeBox.getPreferredSize().height);\n\t\t\t\tint x = insets.left;\n\t\t\t\tint y = colWidth * 2 + insets.top;\n\t\t\t\tcloseBox.setBounds(insets.left,insets.top,colWidth,colWidth);\n\t\t\t\tmenuBtn.setBounds(insets.left,insets.top + colWidth,colWidth,colWidth);\n\n\t\t\t\tfor(int i = 2; i < comp.length; i++)\n\t\t\t\t{\n\t\t\t\t\tint btnHeight = comp[i].getPreferredSize().height;\n\t\t\t\t\tif(btnHeight + y > height)\n\t\t\t\t\t{\n\t\t\t\t\t\tx += colWidth;\n\t\t\t\t\t\ty = insets.top;\n\t\t\t\t\t}\n\t\t\t\t\tcomp[i].setBounds(x,y,colWidth,btnHeight);\n\t\t\t\t\ty += btnHeight;\n\t\t\t\t}\n\n\t\t\t\t/* if(x + colWidth != parent.getWidth())\n\t\t\t\t{\n\t\t\t\t\tparent.setSize(x + colWidth,\n\t\t\t\t\t\tparent.getHeight());\n\t\t\t\t\t((JComponent)parent).revalidate();\n\t\t\t\t} */\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ DockablePanel class\n\tclass DockablePanel extends JPanel\n\t{\n\t\t//{{{ DockablePanel constructor\n\t\tDockablePanel()\n\t\t{\n\t\t\tsuper(new CardLayout());\n\n\t\t\tResizeMouseHandler resizeMouseHandler = new ResizeMouseHandler();\n\t\t\taddMouseListener(resizeMouseHandler);\n\t\t\taddMouseMotionListener(resizeMouseHandler);\n\t\t} //}}}\n\n\t\t//{{{ getWindowContainer() method\n\t\tPanelWindowContainer getWindowContainer()\n\t\t{\n\t\t\treturn PanelWindowContainer.this;\n\t\t} //}}}\n\n\t\t//{{{ showDockable() method\n\t\tvoid showDockable(String name)\n\t\t{\n\t\t\t((CardLayout)getLayout()).show(this,name);\n\t\t} //}}}\n\n\t\t//{{{ getMinimumSize() method\n\t\tpublic Dimension getMinimumSize()\n\t\t{\n\t\t\treturn new Dimension(0,0);\n\t\t} //}}}\n\n\t\t//{{{ getPreferredSize() method\n\t\tpublic Dimension getPreferredSize()\n\t\t{\n\t\t\tif(current == null)\n\t\t\t\treturn new Dimension(0,0);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(position.equals(DockableWindowManager.TOP)\n\t\t\t\t\t|| position.equals(DockableWindowManager.BOTTOM))\n\t\t\t\t{\n\t\t\t\t\tif(dimension <= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint height = super.getPreferredSize().height;\n\t\t\t\t\t\tdimension = height - SPLITTER_WIDTH;\n\t\t\t\t\t}\n\t\t\t\t\treturn new Dimension(0,\n\t\t\t\t\t\tdimension + SPLITTER_WIDTH);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(dimension <= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint width = super.getPreferredSize().width;\n\t\t\t\t\t\tdimension = width - SPLITTER_WIDTH;\n\t\t\t\t\t}\n\t\t\t\t\treturn new Dimension(dimension + SPLITTER_WIDTH,\n\t\t\t\t\t\t0);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ setBounds() method\n\t\tpublic void setBounds(int x, int y, int width, int height)\n\t\t{\n\t\t\tif(position.equals(DockableWindowManager.TOP) ||\n\t\t\t\tposition.equals(DockableWindowManager.BOTTOM))\n\t\t\t{\n\t\t\t\tif(dimension != 0 && height <= SPLITTER_WIDTH)\n\t\t\t\t\tPanelWindowContainer.this.show(null);\n\t\t\t\telse\n\t\t\t\t\tdimension = height - SPLITTER_WIDTH;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(dimension != 0 && width <= SPLITTER_WIDTH)\n\t\t\t\t\tPanelWindowContainer.this.show(null);\n\t\t\t\telse\n\t\t\t\t\tdimension = width - SPLITTER_WIDTH;\n\t\t\t}\n\n\t\t\tsuper.setBounds(x,y,width,height);\n\t\t} //}}}\n\n\t\t//{{{ ResizeMouseHandler class\n\t\tclass ResizeMouseHandler extends MouseAdapter implements MouseMotionListener\n\t\t{\n\t\t\tboolean canDrag;\n\t\t\tPoint dragStart;\n\n\t\t\t//{{{ mousePressed() method\n\t\t\tpublic void mousePressed(MouseEvent evt)\n\t\t\t{\n\t\t\t\tif(canDrag)\n\t\t\t\t{\n\t\t\t\t\twm.setResizePos(dimension,PanelWindowContainer.this);\n\t\t\t\t\tdragStart = evt.getPoint();\n\t\t\t\t}\n\t\t\t} //}}}\n\n\t\t\t//{{{ mouseReleased() method\n\t\t\tpublic void mouseReleased(MouseEvent evt)\n\t\t\t{\n\t\t\t\tif(canDrag)\n\t\t\t\t{\n\t\t\t\t\tdimension = wm.resizePos;\n\t\t\t\t\twm.finishResizing();\n\t\t\t\t\tdragStart = null;\n\t\t\t\t\twm.revalidate();\n\t\t\t\t}\n\t\t\t} //}}}\n\n\t\t\t//{{{ mouseMoved() method\n\t\t\tpublic void mouseMoved(MouseEvent evt)\n\t\t\t{\n\t\t\t\tBorder border = getBorder();\n\t\t\t\tif(border == null)\n\t\t\t\t{\n\t\t\t\t\t// collapsed\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tInsets insets = border.getBorderInsets(DockablePanel.this);\n\t\t\t\tcanDrag = false;\n\t\t\t\t//{{{ Top...\n\t\t\t\tif(position.equals(DockableWindowManager.TOP))\n\t\t\t\t{\n\t\t\t\t\tif(evt.getY() >= getHeight() - insets.bottom)\n\t\t\t\t\t\tcanDrag = true;\n\t\t\t\t} //}}}\n\t\t\t\t//{{{ Left...\n\t\t\t\telse if(position.equals(DockableWindowManager.LEFT))\n\t\t\t\t{\n\t\t\t\t\tif(evt.getX() >= getWidth() - insets.right)\n\t\t\t\t\t\tcanDrag = true;\n\t\t\t\t} //}}}\n\t\t\t\t//{{{ Bottom...\n\t\t\t\telse if(position.equals(DockableWindowManager.BOTTOM))\n\t\t\t\t{\n\t\t\t\t\tif(evt.getY() <= insets.top)\n\t\t\t\t\t\tcanDrag = true;\n\t\t\t\t} //}}}\n\t\t\t\t//{{{ Right...\n\t\t\t\telse if(position.equals(DockableWindowManager.RIGHT))\n\t\t\t\t{\n\t\t\t\t\tif(evt.getX() <= insets.left)\n\t\t\t\t\t\tcanDrag = true;\n\t\t\t\t} //}}}\n\n\t\t\t\tif(canDrag)\n\t\t\t\t{\n\t\t\t\t\twm.setCursor(Cursor.getPredefinedCursor(\n\t\t\t\t\t\tgetAppropriateCursor()));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\twm.setCursor(Cursor.getPredefinedCursor(\n\t\t\t\t\t\tCursor.DEFAULT_CURSOR));\n\t\t\t\t}\n\t\t\t} //}}}\n\n\t\t\t//{{{ mouseDragged() method\n\t\t\tpublic void mouseDragged(MouseEvent evt)\n\t\t\t{\n\t\t\t\tif(!canDrag)\n\t\t\t\t\treturn;\n\n\t\t\t\tif(dragStart == null) // can't happen?\n\t\t\t\t\treturn;\n\n\t\t\t\twm.setCursor(Cursor.getPredefinedCursor(\n\t\t\t\t\tgetAppropriateCursor()));\n\n\t\t\t\t//{{{ Top...\n\t\t\t\tif(position.equals(DockableWindowManager.TOP))\n\t\t\t\t{\n\t\t\t\t\twm.setResizePos(\n\t\t\t\t\t\tevt.getY() - dragStart.y\n\t\t\t\t\t\t+ dimension,\n\t\t\t\t\t\tPanelWindowContainer.this);\n\t\t\t\t} //}}}\n\t\t\t\t//{{{ Left...\n\t\t\t\telse if(position.equals(DockableWindowManager.LEFT))\n\t\t\t\t{\n\t\t\t\t\twm.setResizePos(evt.getX() - dragStart.x\n\t\t\t\t\t\t+ dimension,\n\t\t\t\t\t\tPanelWindowContainer.this);\n\t\t\t\t} //}}}\n\t\t\t\t//{{{ Bottom...\n\t\t\t\telse if(position.equals(DockableWindowManager.BOTTOM))\n\t\t\t\t{\n\t\t\t\t\twm.setResizePos(dimension - evt.getY()\n\t\t\t\t\t\t+ dragStart.y,\n\t\t\t\t\t\tPanelWindowContainer.this);\n\t\t\t\t} //}}}\n\t\t\t\t//{{{ Right...\n\t\t\t\telse if(position.equals(DockableWindowManager.RIGHT))\n\t\t\t\t{\n\t\t\t\t\twm.setResizePos(dimension - evt.getX()\n\t\t\t\t\t\t+ dragStart.x,\n\t\t\t\t\t\tPanelWindowContainer.this);\n\t\t\t\t} //}}}\n\t\t\t} //}}}\n\n\t\t\t//{{{ mouseExited() method\n\t\t\tpublic void mouseExited(MouseEvent evt)\n\t\t\t{\n\t\t\t\twm.setCursor(Cursor.getPredefinedCursor(\n\t\t\t\t\tCursor.DEFAULT_CURSOR));\n\t\t\t} //}}}\n\n\t\t\t//{{{ getCursor() method\n\t\t\tprivate int getAppropriateCursor()\n\t\t\t{\n\t\t\t\tif(position.equals(DockableWindowManager.TOP))\n\t\t\t\t\treturn Cursor.N_RESIZE_CURSOR;\n\t\t\t\telse if(position.equals(DockableWindowManager.LEFT))\n\t\t\t\t\treturn Cursor.W_RESIZE_CURSOR;\n\t\t\t\telse if(position.equals(DockableWindowManager.BOTTOM))\n\t\t\t\t\treturn Cursor.S_RESIZE_CURSOR;\n\t\t\t\telse if(position.equals(DockableWindowManager.RIGHT))\n\t\t\t\t\treturn Cursor.E_RESIZE_CURSOR;\n\t\t\t\telse\n\t\t\t\t\tthrow new InternalError();", "functions": [{"function_name": "register", "code": "\tpublic void register(final DockableWindowManager.Entry entry)\n\t{\n\t\tdockables.add(entry);\n\n\t\t//{{{ Create button\n\t\tint rotation;\n\t\tif(position.equals(DockableWindowManager.TOP)\n\t\t\t|| position.equals(DockableWindowManager.BOTTOM))\n\t\t\trotation = RotatedTextIcon.NONE;\n\t\telse if(position.equals(DockableWindowManager.LEFT))\n\t\t\trotation = RotatedTextIcon.CCW;\n\t\telse if(position.equals(DockableWindowManager.RIGHT))\n\t\t\trotation = RotatedTextIcon.CW;\n\t\telse\n\t\t\tthrow new InternalError(\"Invalid position: \" + position);\n\n\t\tJToggleButton button = new JToggleButton();\n\t\tbutton.setMargin(new Insets(1,1,1,1));\n\t\tbutton.setRequestFocusEnabled(false);\n\t\tbutton.setIcon(new RotatedTextIcon(rotation,button.getFont(),\n\t\t\tentry.title));\n\t\tbutton.setActionCommand(entry.factory.name);\n\t\tbutton.addActionListener(new ActionHandler());\n\t\tbutton.addMouseListener(new MenuMouseHandler());\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tbutton.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\t\t//}}}\n\n\t\tbuttonGroup.add(button);\n\t\tbuttons.add(button);\n\t\tentry.btn = button;\n\n\t\twm.revalidate();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [3, 17], [3, 18], [0, 19], [1, 20], [11, 21], [12, 22], [14, 23], [15, 24], [16, 25], [2, 26], [17, 27], [17, 28], [3, 29], [18, 30], [18, 31], [20, 32], [20, 33], [23, 34], [25, 35], [25, 36], [25, 37], [25, 38], [27, 39], [27, 40], [17, 41], [39, 42], [27, 43], [42, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 3], [18, 3], [19, 0], [20, 1], [21, 11], [22, 12], [23, 14], [24, 15], [25, 16], [26, 2], [27, 17], [28, 17], [29, 3], [30, 18], [31, 18], [32, 20], [33, 20], [34, 23], [35, 25], [36, 25], [37, 25], [38, 25], [39, 27], [40, 27], [41, 17], [42, 39], [43, 27], [44, 42], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "unregister", "code": "\tpublic void unregister(DockableWindowManager.Entry entry)\n\t{\n\t\tif(entry.factory.name.equals(mostRecent))\n\t\t\tmostRecent = null;\n\n\t\tbuttonPanel.remove(entry.btn);\n\t\tbuttons.remove(entry.btn);\n\t\tentry.btn = null;\n\n\t\tdockables.remove(entry);\n\t\tif(entry.win != null)\n\t\t\tdockablePanel.remove(entry.win);\n\n\t\tif(current == entry)\n\t\t{\n\t\t\tcurrent = null;\n\t\t\tshow(null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\twm.revalidate();\n\t\t\tdockablePanel.repaint();\n\t\t\tbuttonPanel.repaint();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [2, 12], [6, 13], [8, 14], [3, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [15, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 2], [13, 6], [14, 8], [15, 3], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 15], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "remove", "code": "\tpublic void remove(final DockableWindowManager.Entry entry)\n\t{\n\t\tif(entry.factory.name.equals(mostRecent))\n\t\t\tmostRecent = null;\n\n\t\tif(entry.win != null)\n\t\t{\n\t\t\tdockablePanel.remove(entry.win);\n\t\t\tentry.win = null;\n\t\t}\n\n\t\tif(current == entry)\n\t\t{\n\t\t\tcurrent = null;\n\t\t\tshow(null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\twm.revalidate();\n\t\t\tdockablePanel.repaint();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [6, 8], [3, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [2, 15], [9, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 6], [9, 3], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 2], [16, 9], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "showMostRecent", "code": "\tpublic void showMostRecent()\n\t{\n\t\tif(dockables.size() == 0)\n\t\t{\n\t\t\tToolkit.getDefaultToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(mostRecent == null)\n\t\t{\n\t\t\tmostRecent = ((DockableWindowManager.Entry)\n\t\t\t\tdockables.get(0)).factory.name;\n\t\t}\n\n\t\twm.showDockableWindow(mostRecent);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [5, 8], [5, 9], [1, 10], [2, 11], [11, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 5], [9, 5], [10, 1], [11, 2], [12, 11], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "show", "code": "\tpublic void show(final DockableWindowManager.Entry entry)\n\t{\n\t\tif(current == entry)\n\t\t{\n\t\t\tif(entry != null)\n\t\t\t{\n\t\t\t\tif(entry.win instanceof DefaultFocusComponent)\n\t\t\t\t{\n\t\t\t\t\t((DefaultFocusComponent)entry.win)\n\t\t\t\t\t\t.focusOnDefaultComponent();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif(entry != null)\n\t\t{\n\t\t\tif(current == null)\n\t\t\t{\n\t\t\t\t// we didn't have a component previously, so\n\t\t\t\t// create a border\n\t\t\t\tdockablePanel.setBorder(new DockBorder(position));\n\t\t\t}\n\n\t\t\tmostRecent = entry.factory.name;\n\t\t\tthis.current = entry;\n\n\t\t\tif(entry.win.getParent() != dockablePanel)\n\t\t\t\tdockablePanel.add(entry.factory.name,entry.win);\n\n\t\t\tdockablePanel.showDockable(entry.factory.name);\n\n\t\t\tentry.btn.setSelected(true);\n\n\t\t\tif(entry.win instanceof DefaultFocusComponent)\n\t\t\t{\n\t\t\t\t((DefaultFocusComponent)entry.win)\n\t\t\t\t\t.focusOnDefaultComponent();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcurrent = null;\n\t\t\tnullButton.setSelected(true);\n\t\t\t// removing last component, so remove border\n\t\t\tdockablePanel.setBorder(null);\n\n\t\t\twm.getView().getTextArea().requestFocus();\n\t\t}\n\n\t\twm.revalidate();\n\t\tdockablePanel.repaint();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [1, 9], [1, 10], [6, 11], [2, 12], [2, 13], [1, 14], [1, 15], [1, 16], [1, 17], [8, 18], [1, 19], [1, 20], [9, 21], [1, 22], [1, 23], [10, 24], [13, 25], [14, 26], [14, 27], [15, 28], [16, 29], [17, 30], [19, 31], [9, 32], [21, 33], [24, 34], [13, 35], [25, 36], [8, 37], [10, 38], [35, 39], [38, 40], [35, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 1], [10, 1], [11, 6], [12, 2], [13, 2], [14, 1], [15, 1], [16, 1], [17, 1], [18, 8], [19, 1], [20, 1], [21, 9], [22, 1], [23, 1], [24, 10], [25, 13], [26, 14], [27, 14], [28, 15], [29, 16], [30, 17], [31, 19], [32, 9], [33, 21], [34, 24], [35, 13], [36, 25], [37, 8], [38, 10], [39, 35], [40, 38], [41, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "isVisible", "code": "\tpublic boolean isVisible(DockableWindowManager.Entry entry)\n\t{\n\t\treturn current == entry;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCurrent", "code": "\tpublic String getCurrent()\n\t{\n\t\tif(current == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn current.factory.name;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getDimension", "code": "\tpublic int getDimension()\n\t{\n\t\treturn dimension;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDockables", "code": "\tpublic String[] getDockables()\n\t{\n\t\tString[] retVal = new String[dockables.size()];\n\t\tfor(int i = 0; i < dockables.size(); i++)\n\t\t{\n\t\t\tDockableWindowManager.Entry entry =\n\t\t\t\t(DockableWindowManager.Entry) dockables.get(i);\n\t\t\tretVal[i] = entry.factory.name;\n\t\t}\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [2, 7], [2, 8], [3, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 2], [8, 2], [9, 3], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "save", "code": "\tvoid save()\n\t{\n\t\tjEdit.setIntegerProperty(\"view.dock.\" + position + \".dimension\",\n\t\t\tdimension);\n\t\tif(current == null)\n\t\t\tjEdit.unsetProperty(\"view.dock.\" + position + \".last\");\n\t\telse\n\t\t{\n\t\t\tjEdit.setProperty(\"view.dock.\" + position + \".last\",\n\t\t\t\tcurrent.factory.name);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [6, 9], [6, 10], [7, 11], [8, 12], [8, 13], [10, 14], [11, 15], [11, 16], [13, 17], [16, 18], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [9, 6], [10, 6], [11, 7], [12, 8], [13, 8], [14, 10], [15, 11], [16, 11], [17, 13], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setDimension", "code": "\tvoid setDimension(int dimension)\n\t{\n\t\tif(dimension != 0)\n\t\t\tthis.dimension = dimension - SPLITTER_WIDTH;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "sortDockables", "code": "\tvoid sortDockables()\n\t{\n\t\tbuttonPanel.removeAll();\n\t\tbuttonPanel.add(closeBox);\n\t\tbuttonPanel.add(menuBtn);\n\t\tCollections.sort(buttons,new DockableWindowCompare());\n\t\tfor(int i = 0; i < buttons.size(); i++)\n\t\t{\n\t\t\tbuttonPanel.add((AbstractButton)buttons.get(i));", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [1, 9], [1, 10], [9, 11], [1, 0], [2, 1], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 1], [10, 1], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getWrappedDimension", "code": "\tint getWrappedDimension(int dimension)\n\t{\n\t\treturn ((ButtonLayout)buttonPanel.getLayout())", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "PanelWindowContainer", "code": "\tpublic PanelWindowContainer(DockableWindowManager wm, String position,\n\t\tint dimension)\n\t{\n\t\tthis.wm = wm;\n\t\tthis.position = position;\n\n\t\t//{{{ Button box setup\n\t\tbuttonPanel = new JPanel(new ButtonLayout());\n\t\tbuttonPanel.setBorder(new EmptyBorder(1,1,1,1));\n\n\t\tcloseBox = new JButton(GUIUtilities.loadIcon(\"closebox.gif\"));\n\t\tcloseBox.setRequestFocusEnabled(false);\n\t\tcloseBox.setToolTipText(jEdit.getProperty(\"view.docking.close-tooltip\"));\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tcloseBox.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\n\t\tcloseBox.setMargin(new Insets(0,0,0,0));\n\n\t\tcloseBox.addActionListener(new ActionHandler());\n\n\t\tmenuBtn = new JButton(GUIUtilities.loadIcon(\"ToolbarMenu.gif\"));\n\t\tmenuBtn.setRequestFocusEnabled(false);\n\t\tmenuBtn.setToolTipText(jEdit.getProperty(\"view.docking.menu-tooltip\"));\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tmenuBtn.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\n\t\tmenuBtn.setMargin(new Insets(0,0,0,0));\n\n\t\tmenuBtn.addMouseListener(new MenuMouseHandler());\n\n\t\tbuttonGroup = new ButtonGroup();\n\t\t// JDK 1.4 workaround\n\t\tbuttonGroup.add(nullButton = new JToggleButton());\n\t\t//}}}\n\n\t\tdockables = new ArrayList();\n\t\tbuttons = new ArrayList();\n\t\tdockablePanel = new DockablePanel();\n\n\t\tthis.dimension = dimension;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [2, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [7, 28], [8, 29], [9, 30], [10, 31], [11, 32], [12, 33], [13, 34], [1, 35], [15, 36], [16, 37], [17, 38], [18, 39], [19, 40], [2, 41], [21, 42], [22, 43], [23, 44], [24, 45], [25, 46], [31, 47], [34, 48], [34, 49], [34, 50], [34, 51], [35, 52], [35, 53], [36, 54], [38, 55], [40, 56], [40, 57], [40, 58], [40, 59], [41, 60], [41, 61], [42, 62], [44, 63], [45, 64], [45, 65], [45, 66], [45, 67], [46, 68], [55, 69], [63, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 2], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 7], [29, 8], [30, 9], [31, 10], [32, 11], [33, 12], [34, 13], [35, 1], [36, 15], [37, 16], [38, 17], [39, 18], [40, 19], [41, 2], [42, 21], [43, 22], [44, 23], [45, 24], [46, 25], [47, 31], [48, 34], [49, 34], [50, 34], [51, 34], [52, 35], [53, 35], [54, 36], [55, 38], [56, 40], [57, 40], [58, 40], [59, 40], [60, 41], [61, 41], [62, 42], [63, 44], [64, 45], [65, 45], [66, 45], [67, 45], [68, 46], [69, 55], [70, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}], "label": 1}
{"sample_id": "ant-1.5-375", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/JikesOutputParser.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.JikesOutputParser", "code": "public class JikesOutputParser implements ExecuteStreamHandler {\n    protected Task task;\n    protected int errors;\n    protected int warnings;\n    protected boolean error = false;\n    protected boolean emacsMode;\n    \n    protected BufferedReader br;\n\n    /**\n     * Ignore.\n     */\n    public void setProcessInputStream(OutputStream os) {}\n\n    /**\n     * Ignore.\n     */\n    public void setProcessErrorStream(InputStream is) {}\n\n    /**\n     * Set the inputstream\n     */\n    public void setProcessOutputStream(InputStream is) throws IOException {\n        br = new BufferedReader(new InputStreamReader(is));\n    }\n\n    /**\n     * Invokes parseOutput.\n     */\n    public void start() throws IOException {\n        parseOutput(br);\n    }\n\n    /**\n     * Ignore.\n     */\n    public void stop() {}\n\n    /**\n     * Construct a new Parser object\n     * @param task - task in whichs context we are called\n     */\n    protected JikesOutputParser(Task task, boolean emacsMode) {\n        super();\n\n        System.err.println(\"As of Ant 1.2 released in October 2000, the \" \n            + \"JikesOutputParser class\");\n        System.err.println(\"is considered to be dead code by the Ant \" \n            + \"developers and is unmaintained.\");\n        System.err.println(\"Don\\'t use it!\");\n\n        this.task = task;\n        this.emacsMode = emacsMode;\n    }\n\n    /**\n     * Parse the output of a jikes compiler\n     * @param reader - Reader used to read jikes's output\n     */\n    protected void parseOutput(BufferedReader reader) throws IOException {\n       if (emacsMode) {\n           parseEmacsOutput(reader);\n       } else {\n           parseStandardOutput(reader);\n       }\n    }\n\n    private void parseStandardOutput(BufferedReader reader) throws IOException {\n        String line;\n        String lower;\n        \n\n        while ((line = reader.readLine()) != null) {\n            lower = line.toLowerCase();\n            if (line.trim().equals(\"\")) {\n                continue;\n            }\n            if (lower.indexOf(\"error\") != -1) {\n                setError(true);\n            } else if (lower.indexOf(\"warning\") != -1) {\n                setError(false);\n                   } else {\n                if (emacsMode) {\n                    setError(true);\n                }\n            }\n            log(line);\n        }\n    }\n\n    private void parseEmacsOutput(BufferedReader reader) throws IOException {\n       parseStandardOutput(reader);\n    }\n\n    private void setError(boolean err) {\n        error = err;\n        if (error) {\n            errorFlag = true;\n        }\n    }\n\n    private void log(String line) {\n       if (!emacsMode) {\n           task.log(\"\", (error ? Project.MSG_ERR : Project.MSG_WARN));\n       }\n       task.log(line, (error ? Project.MSG_ERR : Project.MSG_WARN));\n    }\n\n    /**\n     * Indicate if there were errors during the compile\n     * @return if errors ocured\n     */\n    protected boolean getErrorFlag() {\n        return errorFlag;", "functions": [{"function_name": "setProcessInputStream", "code": "    public void setProcessInputStream(OutputStream os) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessErrorStream", "code": "    public void setProcessErrorStream(InputStream is) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessOutputStream", "code": "    public void setProcessOutputStream(InputStream is) throws IOException {\n        br = new BufferedReader(new InputStreamReader(is));", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "start", "code": "    public void start() throws IOException {\n        parseOutput(br);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "stop", "code": "    public void stop() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "parseOutput", "code": "    protected void parseOutput(BufferedReader reader) throws IOException {\n       if (emacsMode) {\n           parseEmacsOutput(reader);\n       } else {\n           parseStandardOutput(reader);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parseStandardOutput", "code": "    private void parseStandardOutput(BufferedReader reader) throws IOException {\n        String line;\n        String lower;\n        \n\n        while ((line = reader.readLine()) != null) {\n            lower = line.toLowerCase();\n            if (line.trim().equals(\"\")) {\n                continue;\n            }\n            if (lower.indexOf(\"error\") != -1) {\n                setError(true);\n            } else if (lower.indexOf(\"warning\") != -1) {\n                setError(false);\n                   } else {\n                if (emacsMode) {\n                    setError(true);\n                }\n            }\n            log(line);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [1, 10], [6, 11], [6, 12], [7, 13], [1, 14], [9, 15], [11, 16], [12, 17], [12, 18], [7, 19], [13, 20], [14, 21], [11, 22], [16, 23], [16, 24], [6, 25], [18, 26], [20, 27], [11, 28], [24, 29], [25, 30], [28, 31], [22, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 1], [11, 6], [12, 6], [13, 7], [14, 1], [15, 9], [16, 11], [17, 12], [18, 12], [19, 7], [20, 13], [21, 14], [22, 11], [23, 16], [24, 16], [25, 6], [26, 18], [27, 20], [28, 11], [29, 24], [30, 25], [31, 28], [32, 22], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "parseEmacsOutput", "code": "    private void parseEmacsOutput(BufferedReader reader) throws IOException {\n       parseStandardOutput(reader);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setError", "code": "    private void setError(boolean err) {\n        error = err;\n        if (error) {\n            errorFlag = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "log", "code": "    private void log(String line) {\n       if (!emacsMode) {\n           task.log(\"\", (error ? Project.MSG_ERR : Project.MSG_WARN));\n       }\n       task.log(line, (error ? Project.MSG_ERR : Project.MSG_WARN));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getErrorFlag", "code": "    protected boolean getErrorFlag() {\n        return errorFlag;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "JikesOutputParser", "code": "    protected JikesOutputParser(Task task, boolean emacsMode) {\n        super();\n\n        System.err.println(\"As of Ant 1.2 released in October 2000, the \" \n            + \"JikesOutputParser class\");\n        System.err.println(\"is considered to be dead code by the Ant \" \n            + \"developers and is unmaintained.\");\n        System.err.println(\"Don\\'t use it!\");\n\n        this.task = task;\n        this.emacsMode = emacsMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [10, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "jedit-4.3-4704", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/BufferOptions.java", "language": "java", "name": "org.gjt.sp.jedit.gui.BufferOptions", "code": "public class BufferOptions extends EnhancedDialog\n{\n\t//{{{ BufferOptions constructor\n\n\tpublic BufferOptions(View view, Buffer buffer)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"buffer-options.title\"),true);\n\t\tthis.view = view;\n\t\tthis.buffer = buffer;\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tActionHandler actionListener = new ActionHandler();\n\t\tpanel = new BufferOptionPane();\n\n\t\tcontent.add(BorderLayout.NORTH,panel);\n\n\t\t//{{{ Buttons\n\n\t\tJPanel buttons = new JPanel();\n\t\tbuttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));\n\t\tbuttons.setBorder(new EmptyBorder(12,0,0,0));\n\t\tbuttons.add(Box.createGlue());\n\n\t\tok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(actionListener);\n\t\tgetRootPane().setDefaultButton(ok);\n\t\tbuttons.add(ok);\n\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.addActionListener(actionListener);\n\t\tbuttons.add(cancel);\n\n\t\tbuttons.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\t//}}}\n\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tsetVisible(true);\n\t} //}}}\n\n\n\n\t//{{{ ok() method\n\n\tpublic void ok()\n\t{\n\t\tpanel.save();\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ cancel() method\n\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ Private members\n\n\tprivate View view;\n\tprivate Buffer buffer;\n\tprivate BufferOptionPane panel;\n\tprivate JButton ok;\n\tprivate JButton cancel;\n\n\t//{{{ ActionHandler class\n\n\tclass ActionHandler implements ActionListener\n\t{\n\t\t//{{{ actionPerformed() method\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\t\t\tif(source == ok)\n\t\t\t\tok();\n\t\t\telse if(source == cancel)\n\t\t\t\tcancel();", "functions": [{"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tpanel.save();\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BufferOptions", "code": "\tpublic BufferOptions(View view, Buffer buffer)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"buffer-options.title\"),true);\n\t\tthis.view = view;\n\t\tthis.buffer = buffer;\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tActionHandler actionListener = new ActionHandler();\n\t\tpanel = new BufferOptionPane();\n\n\t\tcontent.add(BorderLayout.NORTH,panel);\n\n\t\t//{{{ Buttons\n\n\t\tJPanel buttons = new JPanel();\n\t\tbuttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));\n\t\tbuttons.setBorder(new EmptyBorder(12,0,0,0));\n\t\tbuttons.add(Box.createGlue());\n\n\t\tok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(actionListener);\n\t\tgetRootPane().setDefaultButton(ok);\n\t\tbuttons.add(ok);\n\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.addActionListener(actionListener);\n\t\tbuttons.add(cancel);\n\n\t\tbuttons.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\t//}}}\n\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tsetVisible(true);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [6, 30], [10, 31], [13, 32], [14, 33], [16, 34], [18, 35], [19, 36], [20, 37], [21, 38], [1, 39], [23, 40], [2, 41], [25, 42], [3, 43], [29, 44], [32, 45], [33, 46], [35, 47], [37, 48], [37, 49], [37, 50], [37, 51], [42, 52], [42, 53], [42, 54], [42, 55], [43, 56], [45, 57], [47, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 6], [31, 10], [32, 13], [33, 14], [34, 16], [35, 18], [36, 19], [37, 20], [38, 21], [39, 1], [40, 23], [41, 2], [42, 25], [43, 3], [44, 29], [45, 32], [46, 33], [47, 35], [48, 37], [49, 37], [50, 37], [51, 37], [52, 42], [53, 42], [54, 42], [55, 42], [56, 43], [57, 45], [58, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}], "label": 0}
{"sample_id": "ant-1.7-1312", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/LeadPipeInputStream.java", "language": "java", "name": "org.apache.tools.ant.util.LeadPipeInputStream", "code": "public class LeadPipeInputStream extends PipedInputStream {\n    private static final int BYTE_MASK = 0xFF;\n    private ProjectComponent managingPc;\n\n    /**\n     * Construct a new <code>LeadPipeInputStream</code>.\n     */\n    public LeadPipeInputStream() {\n        super();\n    }\n\n    /**\n     * Construct a new <code>LeadPipeInputStream</code>\n     * with the specified buffer size.\n     * @param size   the size of the circular buffer.\n     */\n    public LeadPipeInputStream(int size) {\n        super();\n        setBufferSize(size);\n    }\n\n    /**\n     * Construct a new <code>LeadPipeInputStream</code> to pull\n     * from the specified <code>PipedOutputStream</code>.\n     * @param src   the <code>PipedOutputStream</code> source.\n     * @throws IOException if unable to construct the stream.\n     */\n    public LeadPipeInputStream(PipedOutputStream src) throws IOException {\n        super(src);\n    }\n\n    /**\n     * Construct a new <code>LeadPipeInputStream</code> to pull\n     * from the specified <code>PipedOutputStream</code>, using a\n     * circular buffer of the specified size.\n     * @param src    the <code>PipedOutputStream</code> source.\n     * @param size   the size of the circular buffer.\n     * @throws IOException if there is an error.\n     */\n    public LeadPipeInputStream(PipedOutputStream src, int size) throws IOException {\n        super(src);\n        setBufferSize(size);\n    }\n\n    /**\n     * Read a byte from the stream.\n     * @return the byte (0 to 255) or -1 if there are no more.\n     * @throws IOException if there is an error.\n     */\n    public synchronized int read() throws IOException {\n        int result = -1;\n        try {\n            result = super.read();\n        } catch (IOException eyeOhEx) {\n            if (\"write end dead\".equalsIgnoreCase(eyeOhEx.getMessage())) {\n                if (super.in > 0 && super.out < super.buffer.length\n                    && super.out > super.in) {\n                    result = super.buffer[super.out++] & BYTE_MASK;\n                }\n            } else {\n                log(\"error at LeadPipeInputStream.read():  \"\n                    + eyeOhEx.getMessage(), Project.MSG_INFO);\n            }\n        }\n        return result;\n    }\n\n    /**\n     * Set the size of the buffer.\n     * @param size   the new buffer size.  Ignored if <= current size.\n     */\n    public synchronized void setBufferSize(int size) {\n        if (size > buffer.length) {\n            byte[] newBuffer = new byte[size];\n            if (in >= 0) {\n                if (in > out) {\n                    System.arraycopy(buffer, out, newBuffer, out, in - out);\n                } else {\n                    int outlen = buffer.length - out;\n                    System.arraycopy(buffer, out, newBuffer, 0, outlen);\n                    System.arraycopy(buffer, 0, newBuffer, outlen, in);\n                    in += outlen;\n                    out = 0;\n                }\n            }\n            buffer = newBuffer;\n        }\n    }\n\n    /**\n     * Set a managing <code>Task</code> for\n     * this <code>LeadPipeInputStream</code>.\n     * @param task   the managing <code>Task</code>.\n     */\n    public void setManagingTask(Task task) {\n        setManagingComponent(task);\n    }\n\n    /**\n     * Set a managing <code>ProjectComponent</code> for\n     * this <code>LeadPipeInputStream</code>.\n     * @param pc   the managing <code>ProjectComponent</code>.\n     */\n    public void setManagingComponent(ProjectComponent pc) {\n        this.managingPc = pc;\n    }\n\n    /**\n     * Log a message with the specified logging level.\n     * @param message    the <code>String</code> message.\n     * @param loglevel   the <code>int</code> logging level.\n     */\n    public void log(String message, int loglevel) {\n        if (managingPc != null) {\n            managingPc.log(message, loglevel);\n        } else {\n            if (loglevel > Project.MSG_WARN) {\n                System.out.println(message);\n            } else {\n                System.err.println(message);", "functions": [{"function_name": "read", "code": "    public synchronized int read() throws IOException {\n        int result = -1;\n        try {\n            result = super.read();\n        } catch (IOException eyeOhEx) {\n            if (\"write end dead\".equalsIgnoreCase(eyeOhEx.getMessage())) {\n                if (super.in > 0 && super.out < super.buffer.length\n                    && super.out > super.in) {\n                    result = super.buffer[super.out++] & BYTE_MASK;\n                }\n            } else {\n                log(\"error at LeadPipeInputStream.read():  \"\n                    + eyeOhEx.getMessage(), Project.MSG_INFO);\n            }\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "IF", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [3, 7], [5, 8], [5, 9], [8, 10], [5, 11], [9, 12], [10, 13], [11, 14], [12, 15], [12, 16], [14, 17], [14, 18], [9, 19], [16, 20], [16, 21], [19, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 3], [8, 5], [9, 5], [10, 8], [11, 5], [12, 9], [13, 10], [14, 11], [15, 12], [16, 12], [17, 14], [18, 14], [19, 9], [20, 16], [21, 16], [22, 19], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "setBufferSize", "code": "    public synchronized void setBufferSize(int size) {\n        if (size > buffer.length) {\n            byte[] newBuffer = new byte[size];\n            if (in >= 0) {\n                if (in > out) {\n                    System.arraycopy(buffer, out, newBuffer, out, in - out);\n                } else {\n                    int outlen = buffer.length - out;\n                    System.arraycopy(buffer, out, newBuffer, 0, outlen);\n                    System.arraycopy(buffer, 0, newBuffer, outlen, in);\n                    in += outlen;\n                    out = 0;\n                }\n            }\n            buffer = newBuffer;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [7, 9], [8, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [12, 17], [14, 18], [15, 19], [11, 20], [16, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 7], [10, 8], [11, 8], [12, 8], [13, 8], [14, 8], [15, 8], [16, 8], [17, 12], [18, 14], [19, 15], [20, 11], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setManagingTask", "code": "    public void setManagingTask(Task task) {\n        setManagingComponent(task);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setManagingComponent", "code": "    public void setManagingComponent(ProjectComponent pc) {\n        this.managingPc = pc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "log", "code": "    public void log(String message, int loglevel) {\n        if (managingPc != null) {\n            managingPc.log(message, loglevel);\n        } else {\n            if (loglevel > Project.MSG_WARN) {\n                System.out.println(message);\n            } else {\n                System.err.println(message);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 8], [5, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 1], [9, 5], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "LeadPipeInputStream", "code": "    public LeadPipeInputStream() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "LeadPipeInputStream", "code": "    public LeadPipeInputStream(int size) {\n        super();\n        setBufferSize(size);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LeadPipeInputStream", "code": "    public LeadPipeInputStream(PipedOutputStream src) throws IOException {\n        super(src);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "LeadPipeInputStream", "code": "    public LeadPipeInputStream(PipedOutputStream src, int size) throws IOException {\n        super(src);\n        setBufferSize(size);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.7-8222", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/templates/ElemWhen.java", "language": "java", "name": "org.apache.xalan.templates.ElemWhen", "code": "public class ElemWhen extends ElemTemplateElement\n{\n    static final long serialVersionUID = 5984065730262071360L;\n\n  /**\n   * Each xsl:when element has a single attribute, test,\n   * which specifies an expression.\n   * @serial\n   */\n  private XPath m_test;\n\n  /**\n   * Set the \"test\" attribute.\n   * Each xsl:when element has a single attribute, test,\n   * which specifies an expression.\n   *\n   * @param v Value to set for the \"test\" attribute.\n   */\n  public void setTest(XPath v)\n  {\n    m_test = v;\n  }\n\n  /**\n   * Get the \"test\" attribute.\n   * Each xsl:when element has a single attribute, test,\n   * which specifies an expression.\n   *\n   * @return Value of the \"test\" attribute.\n   */\n  public XPath getTest()\n  {\n    return m_test;\n  }\n\n  /**\n   * Get an integer representation of the element type.\n   *\n   * @return An integer representation of the element, defined in the\n   *     Constants class.\n   * @see org.apache.xalan.templates.Constants\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_WHEN;\n  }\n  \n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) \n    throws javax.xml.transform.TransformerException\n  {\n    super.compose(sroot);\n    java.util.Vector vnames = sroot.getComposeState().getVariableNames();\n    if(null != m_test)\n      m_test.fixupVariables(vnames, sroot.getComposeState().getGlobalsSize());\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The node name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_WHEN_STRING;\n  }\n\n  /**\n   * Constructor ElemWhen\n   *\n   */\n  public ElemWhen(){}\n  \n  /**\n   * Call the children visitors.\n   * @param visitor The visitor whose appropriate method will be called.\n   */\n  protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n  {\n  \tif(callAttrs)\n  \t\tm_test.getExpression().callVisitors(m_test, visitor);\n    super.callChildVisitors(visitor, callAttrs);", "functions": [{"function_name": "setTest", "code": "  public void setTest(XPath v)\n  {\n    m_test = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTest", "code": "  public XPath getTest()\n  {\n    return m_test;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_WHEN;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) \n    throws javax.xml.transform.TransformerException\n  {\n    super.compose(sroot);\n    java.util.Vector vnames = sroot.getComposeState().getVariableNames();\n    if(null != m_test)\n      m_test.fixupVariables(vnames, sroot.getComposeState().getGlobalsSize());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [5, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 5], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_WHEN_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "callChildVisitors", "code": "  protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n  {\n  \tif(callAttrs)\n  \t\tm_test.getExpression().callVisitors(m_test, visitor);\n    super.callChildVisitors(visitor, callAttrs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ElemWhen", "code": "  public ElemWhen(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.4-6491", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/ElemAttribute.java", "language": "java", "name": "org.apache.xalan.templates.ElemAttribute", "code": "public class ElemAttribute extends ElemElement\n{\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_ATTRIBUTE;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The element name \n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_ATTRIBUTE_STRING;\n  }\n\n  /**\n   * Create an attribute in the result tree.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n    ResultTreeHandler rhandler = transformer.getResultTreeHandler();\n\n    if (!rhandler.isElementPending())\n    {\n      if (TransformerImpl.S_DEBUG)\n        transformer.getTraceManager().fireTraceEvent(this);\n\n      XPathContext xctxt = transformer.getXPathContext();\n      int sourceNode = xctxt.getCurrentNode();\n      String attrName = m_name_avt.evaluate(xctxt, sourceNode, this);\n      transformer.getMsgMgr().warn(this,\n                                   XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE,\n                                   new Object[]{ attrName });\n\n      if (TransformerImpl.S_DEBUG)\n        transformer.getTraceManager().fireTraceEndEvent(this);\n      return;\n\n    }\n    \n    super.execute(transformer);\n    \n  }\n  \n  /**\n   * Resolve the namespace into a prefix.  At this level, if no prefix exists, \n   * then return a manufactured prefix.\n   *\n   * @param rhandler The current result tree handler.\n   * @param prefix The probable prefix if already known.\n   * @param nodeNamespace  The namespace, which should not be null.\n   *\n   * @return The prefix to be used.\n   */\n  protected String resolvePrefix(ResultTreeHandler rhandler,\n                                 String prefix, String nodeNamespace)\n    throws TransformerException\n  {\n\n    if (null != prefix && (prefix.length() == 0 || prefix.equals(\"xmlns\")))\n    {\n      prefix = rhandler.getPrefix(nodeNamespace);\n\n      if (null == prefix || prefix.length() == 0 || prefix.equals(\"xmlns\"))\n      {\n        if(nodeNamespace.length() > 0)\n        {\n          prefix = rhandler.getNewUniqueNSPrefix();\n        }\n        else\n          prefix = \"\";\n      }\n    }\n    return prefix;\n  }\n  \n  /**\n   * Validate that the node name is good.\n   * \n   * @param nodeName Name of the node being constructed, which may be null.\n   * \n   * @return true if the node name is valid, false otherwise.\n   */\n   protected boolean validateNodeName(String nodeName)\n   {\n      if(null == nodeName)\n        return false;\n      if(nodeName.equals(\"xmlns\"))\n        return false;\n      return super.validateNodeName(nodeName);\n   }\n  \n  /**\n   * Construct a node in the result tree.  This method is overloaded by \n   * xsl:attribute. At this class level, this method creates an element.\n   *\n   * @param nodeName The name of the node, which may be null.\n   * @param prefix The prefix for the namespace, which may be null.\n   * @param nodeNamespace The namespace of the node, which may be null.\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  void constructNode(\n          String nodeName, String prefix, String nodeNamespace, TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    if(null != nodeName && nodeName.length() > 0)\n    {\n      ResultTreeHandler rhandler = transformer.getResultTreeHandler();\n      if(prefix != null && prefix.length() > 0)\n      {\n        try\n        {\n          rhandler.startPrefixMapping(prefix, nodeNamespace, false);\n        }\n        catch(SAXException se)\n        {\n          throw new TransformerException(se);\n        }\n      }\n      String val = transformer.transformToString(this);\n      String localName = QName.getLocalPart(nodeName);\n      rhandler.addAttribute(nodeNamespace, localName, nodeName, \"CDATA\", val);\n    }\n  }\n\n\n  /**\n   * Add a child to the child list.\n   * <!ELEMENT xsl:attribute %char-template;>\n   * <!ATTLIST xsl:attribute\n   *   name %avt; #REQUIRED\n   *   namespace %avt; #IMPLIED\n   *   %space-att;\n   * >\n   *\n   * @param newChild Child to append to the list of this node's children\n   *\n   * @return The node we just appended to the children list \n   *\n   * @throws DOMException\n   */\n  public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n  {\n\n    int type = ((ElemTemplateElement) newChild).getXSLToken();\n\n    switch (type)\n    {\n\n    case Constants.ELEMNAME_TEXTLITERALRESULT :\n    case Constants.ELEMNAME_APPLY_TEMPLATES :\n    case Constants.ELEMNAME_APPLY_IMPORTS :\n    case Constants.ELEMNAME_CALLTEMPLATE :\n    case Constants.ELEMNAME_FOREACH :\n    case Constants.ELEMNAME_VALUEOF :\n    case Constants.ELEMNAME_COPY_OF :\n    case Constants.ELEMNAME_NUMBER :\n    case Constants.ELEMNAME_CHOOSE :\n    case Constants.ELEMNAME_IF :\n    case Constants.ELEMNAME_TEXT :\n    case Constants.ELEMNAME_COPY :\n    case Constants.ELEMNAME_VARIABLE :\n    case Constants.ELEMNAME_MESSAGE :\n\n      break;\n    default :\n      error(XSLTErrorResources.ER_CANNOT_ADD,\n            new Object[]{ newChild.getNodeName()});\n\n    }\n\n    return super.appendChild(newChild);\n  }\n\t/**\n\t * @see ElemElement#setName(AVT)\n\t */\n\tpublic void setName(AVT v) {\n        if (v.isSimple())\n        {\n            if (v.getSimpleString().equals(\"xmlns\"))\n            {\n                throw new IllegalArgumentException();\n            }\n        }\n\t\tsuper.setName(v);", "functions": [{"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_ATTRIBUTE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_ATTRIBUTE_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n    ResultTreeHandler rhandler = transformer.getResultTreeHandler();\n\n    if (!rhandler.isElementPending())\n    {\n      if (TransformerImpl.S_DEBUG)\n        transformer.getTraceManager().fireTraceEvent(this);\n\n      XPathContext xctxt = transformer.getXPathContext();\n      int sourceNode = xctxt.getCurrentNode();\n      String attrName = m_name_avt.evaluate(xctxt, sourceNode, this);\n      transformer.getMsgMgr().warn(this,\n                                   XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE,\n                                   new Object[]{ attrName });\n\n      if (TransformerImpl.S_DEBUG)\n        transformer.getTraceManager().fireTraceEndEvent(this);\n      return;\n\n    }\n    \n    super.execute(transformer);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [1, 12], [6, 13], [12, 14], [7, 15], [8, 16], [9, 17], [10, 18], [13, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 1], [13, 6], [14, 12], [15, 7], [16, 8], [17, 9], [18, 10], [19, 13], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "resolvePrefix", "code": "  protected String resolvePrefix(ResultTreeHandler rhandler,\n                                 String prefix, String nodeNamespace)\n    throws TransformerException\n  {\n\n    if (null != prefix && (prefix.length() == 0 || prefix.equals(\"xmlns\")))\n    {\n      prefix = rhandler.getPrefix(nodeNamespace);\n\n      if (null == prefix || prefix.length() == 0 || prefix.equals(\"xmlns\"))\n      {\n        if(nodeNamespace.length() > 0)\n        {\n          prefix = rhandler.getNewUniqueNSPrefix();\n        }\n        else\n          prefix = \"\";\n      }\n    }\n    return prefix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [6, 9], [7, 10], [2, 11], [8, 12], [8, 13], [9, 14], [7, 15], [10, 16], [10, 17], [11, 18], [12, 19], [13, 20], [13, 21], [15, 22], [16, 23], [17, 24], [17, 25], [15, 26], [22, 27], [22, 28], [24, 29], [24, 30], [25, 31], [26, 32], [15, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 6], [10, 7], [11, 2], [12, 8], [13, 8], [14, 9], [15, 7], [16, 10], [17, 10], [18, 11], [19, 12], [20, 13], [21, 13], [22, 15], [23, 16], [24, 17], [25, 17], [26, 15], [27, 22], [28, 22], [29, 24], [30, 24], [31, 25], [32, 26], [33, 15], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "validateNodeName", "code": "   protected boolean validateNodeName(String nodeName)\n   {\n      if(null == nodeName)\n        return false;\n      if(nodeName.equals(\"xmlns\"))\n        return false;\n      return super.validateNodeName(nodeName);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "RETURN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [7, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 7], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "constructNode", "code": "  void constructNode(\n          String nodeName, String prefix, String nodeNamespace, TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    if(null != nodeName && nodeName.length() > 0)\n    {\n      ResultTreeHandler rhandler = transformer.getResultTreeHandler();\n      if(prefix != null && prefix.length() > 0)\n      {\n        try\n        {\n          rhandler.startPrefixMapping(prefix, nodeNamespace, false);\n        }\n        catch(SAXException se)\n        {\n          throw new TransformerException(se);\n        }\n      }\n      String val = transformer.transformToString(this);\n      String localName = QName.getLocalPart(nodeName);\n      rhandler.addAttribute(nodeNamespace, localName, nodeName, \"CDATA\", val);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [6, 11], [6, 12], [1, 13], [9, 14], [11, 15], [11, 16], [12, 17], [13, 18], [7, 19], [8, 20], [9, 21], [14, 22], [14, 23], [10, 24], [21, 25], [22, 26], [22, 27], [23, 28], [25, 29], [21, 30], [29, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 6], [12, 6], [13, 1], [14, 9], [15, 11], [16, 11], [17, 12], [18, 13], [19, 7], [20, 8], [21, 9], [22, 14], [23, 14], [24, 10], [25, 21], [26, 22], [27, 22], [28, 23], [29, 25], [30, 21], [31, 29], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "appendChild", "code": "  public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n  {\n\n    int type = ((ElemTemplateElement) newChild).getXSLToken();\n\n    switch (type)\n    {\n\n    case Constants.ELEMNAME_TEXTLITERALRESULT :\n    case Constants.ELEMNAME_APPLY_TEMPLATES :\n    case Constants.ELEMNAME_APPLY_IMPORTS :\n    case Constants.ELEMNAME_CALLTEMPLATE :\n    case Constants.ELEMNAME_FOREACH :\n    case Constants.ELEMNAME_VALUEOF :\n    case Constants.ELEMNAME_COPY_OF :\n    case Constants.ELEMNAME_NUMBER :\n    case Constants.ELEMNAME_CHOOSE :\n    case Constants.ELEMNAME_IF :\n    case Constants.ELEMNAME_TEXT :\n    case Constants.ELEMNAME_COPY :\n    case Constants.ELEMNAME_VARIABLE :\n    case Constants.ELEMNAME_MESSAGE :\n\n      break;\n    default :\n      error(XSLTErrorResources.ER_CANNOT_ADD,\n            new Object[]{ newChild.getNodeName()});\n\n    }\n\n    return super.appendChild(newChild);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "PARAM", "BREAK_CONTINUE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setName", "code": "\tpublic void setName(AVT v) {\n        if (v.isSimple())\n        {\n            if (v.getSimpleString().equals(\"xmlns\"))\n            {\n                throw new IllegalArgumentException();\n            }\n        }\n\t\tsuper.setName(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 1}
{"sample_id": "jedit-4.0-3950", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/gui/EnhancedDialog.java", "language": "java", "name": "org.gjt.sp.jedit.gui.EnhancedDialog", "code": "public abstract class EnhancedDialog extends JDialog\n{\n\tpublic EnhancedDialog(Frame parent, String title, boolean modal)\n\t{\n\t\tsuper(parent,title,modal);\n\n\t\t((Container)getLayeredPane()).addContainerListener(\n\t\t\tnew ContainerHandler());\n\t\tgetContentPane().addContainerListener(new ContainerHandler());\n\n\t\tkeyHandler = new KeyHandler();\n\t\taddKeyListener(keyHandler);\n\t\taddWindowListener(new WindowHandler());\n\n\t\tsetDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n\t}\n\n\tpublic abstract void ok();\n\tpublic abstract void cancel();\n\n\t// protected members\n\tprotected KeyHandler keyHandler;\n\n\t// Recursively adds our key listener to sub-components\n\tclass ContainerHandler extends ContainerAdapter\n\t{\n\t\tpublic void componentAdded(ContainerEvent evt)\n\t\t{\n\t\t\tcomponentAdded(evt.getChild());\n\t\t}\n\n\t\tpublic void componentRemoved(ContainerEvent evt)\n\t\t{\n\t\t\tcomponentRemoved(evt.getChild());\n\t\t}\n\n\t\tprivate void componentAdded(Component comp)\n\t\t{\n\t\t\tcomp.addKeyListener(keyHandler);\n\t\t\tif(comp instanceof Container)\n\t\t\t{\n\t\t\t\tContainer cont = (Container)comp;\n\t\t\t\tcont.addContainerListener(this);\n\t\t\t\tComponent[] comps = cont.getComponents();\n\t\t\t\tfor(int i = 0; i < comps.length; i++)\n\t\t\t\t{\n\t\t\t\t\tcomponentAdded(comps[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tprivate void componentRemoved(Component comp)\n\t\t{\n\t\t\tcomp.removeKeyListener(keyHandler);\n\t\t\tif(comp instanceof Container)\n\t\t\t{\n\t\t\t\tContainer cont = (Container)comp;\n\t\t\t\tcont.removeContainerListener(this);\n\t\t\t\tComponent[] comps = cont.getComponents();\n\t\t\t\tfor(int i = 0; i < comps.length; i++)\n\t\t\t\t{\n\t\t\t\t\tcomponentRemoved(comps[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tclass KeyHandler extends KeyAdapter\n\t{\n\t\tpublic void keyPressed(KeyEvent evt)\n\t\t{\n\t\t\tif(evt.isConsumed())\n\t\t\t\treturn;\n\n\t\t\tif(evt.getKeyCode() == KeyEvent.VK_ENTER)\n\t\t\t{\n\t\t\t\t// crusty workaround\n\t\t\t\tComponent comp = getFocusOwner();\n\t\t\t\twhile(comp != null)\n\t\t\t\t{\n\t\t\t\t\tif(comp instanceof JComboBox)\n\t\t\t\t\t{\n\t\t\t\t\t\tJComboBox combo = (JComboBox)comp;\n\t\t\t\t\t\tif(combo.isEditable())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tObject selected = combo.getEditor().getItem();\n\t\t\t\t\t\t\tif(selected != null)\n\t\t\t\t\t\t\t\tcombo.setSelectedItem(selected);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcomp = comp.getParent();\n\t\t\t\t}\n\n\t\t\t\tok();\n\t\t\t\tevt.consume();\n\t\t\t}\n\t\t\telse if(evt.getKeyCode() == KeyEvent.VK_ESCAPE)\n\t\t\t{\n\t\t\t\tcancel();\n\t\t\t\tevt.consume();\n\t\t\t}\n\t\t}\n\t}\n\n\tclass WindowHandler extends WindowAdapter\n\t{\n\t\tpublic void windowClosing(WindowEvent evt)\n\t\t{\n\t\t\tcancel();", "functions": [{"function_name": "ok", "code": "\tpublic abstract void ok();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "cancel", "code": "\tpublic abstract void cancel();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "EnhancedDialog", "code": "\tpublic EnhancedDialog(Frame parent, String title, boolean modal)\n\t{\n\t\tsuper(parent,title,modal);\n\n\t\t((Container)getLayeredPane()).addContainerListener(\n\t\t\tnew ContainerHandler());\n\t\tgetContentPane().addContainerListener(new ContainerHandler());\n\n\t\tkeyHandler = new KeyHandler();\n\t\taddKeyListener(keyHandler);\n\t\taddWindowListener(new WindowHandler());\n\n\t\tsetDefaultCloseOperation(DO_NOTHING_ON_CLOSE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [7, 10], [8, 11], [0, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 7], [11, 8], [12, 0], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 0}
{"sample_id": "ant-1.4-131", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/types/FilterSetCollection.java", "language": "java", "name": "org.apache.tools.ant.types.FilterSetCollection", "code": "public class FilterSetCollection {\n    \n    private Vector filterSets = new Vector();\n\n    public FilterSetCollection() {\n    }\n    \n    public FilterSetCollection(FilterSet filterSet) {\n        addFilterSet(filterSet);\n    }\n    \n    \n    public void addFilterSet(FilterSet filterSet) {\n        filterSets.addElement(filterSet);\n    }\n    \n    /**\n     * Does replacement on the given string with token matching.\n     * This uses the defined begintoken and endtoken values which default to @ for both.\n     *\n     * @param line  The line to process the tokens in.\n     * @return      The string with the tokens replaced.\n     */\n    public String replaceTokens(String line) {\n        String replacedLine = line;\n        for (Enumeration e = filterSets.elements(); e.hasMoreElements();) {\n            FilterSet filterSet = (FilterSet)e.nextElement();\n            replacedLine = filterSet.replaceTokens(replacedLine);\n        }\n        return replacedLine;\n    }\n    \n    /**\n    * Test to see if this filter set it empty.\n    *\n    * @return   Return true if there are filter in this set otherwise false.\n    */\n    public boolean hasFilters() {\n        for (Enumeration e = filterSets.elements(); e.hasMoreElements();) {\n            FilterSet filterSet = (FilterSet)e.nextElement();\n            if (filterSet.hasFilters()) {\n                return true;\n            }\n        }\n        return false;", "functions": [{"function_name": "addFilterSet", "code": "    public void addFilterSet(FilterSet filterSet) {\n        filterSets.addElement(filterSet);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "replaceTokens", "code": "    public String replaceTokens(String line) {\n        String replacedLine = line;\n        for (Enumeration e = filterSets.elements(); e.hasMoreElements();) {\n            FilterSet filterSet = (FilterSet)e.nextElement();\n            replacedLine = filterSet.replaceTokens(replacedLine);\n        }\n        return replacedLine;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [7, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 7], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "hasFilters", "code": "    public boolean hasFilters() {\n        for (Enumeration e = filterSets.elements(); e.hasMoreElements();) {\n            FilterSet filterSet = (FilterSet)e.nextElement();\n            if (filterSet.hasFilters()) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [5, 7], [2, 8], [5, 9], [9, 10], [6, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 5], [8, 2], [9, 5], [10, 9], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "FilterSetCollection", "code": "    public FilterSetCollection() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FilterSetCollection", "code": "    public FilterSetCollection(FilterSet filterSet) {\n        addFilterSet(filterSet);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8529", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/extensions/ExtensionHandler.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionHandler", "code": "public abstract class ExtensionHandler\n{\n\n  /** uri of the extension namespace */\n  protected String m_namespaceUri; \n\n  /** scripting language of implementation */\n  protected String m_scriptLang;\n\n  /**\n   * This method loads a class using the context class loader if we're\n   * running under Java2 or higher.\n   * \n   * @param className Name of the class to load\n   */\n  static Class getClassForName(String className)\n      throws ClassNotFoundException\n  {\n    if(className.equals(\"org.apache.xalan.xslt.extensions.Redirect\")) {\n      className = \"org.apache.xalan.lib.Redirect\";\n    }\n\n    return ObjectFactory.findProviderClass(\n        className, ObjectFactory.findClassLoader(), true);\n  }\n\n  /**\n   * Construct a new extension namespace handler given all the information\n   * needed.\n   *\n   * @param namespaceUri the extension namespace URI that I'm implementing\n   * @param scriptLang   language of code implementing the extension\n   */\n  protected ExtensionHandler(String namespaceUri, String scriptLang)\n  {\n    m_namespaceUri = namespaceUri;\n    m_scriptLang = scriptLang;\n  }\n\n  /**\n   * Tests whether a certain function name is known within this namespace.\n   * @param function name of the function being tested\n   * @return true if its known, false if not.\n   */\n  public abstract boolean isFunctionAvailable(String function);\n\n  /**\n   * Tests whether a certain element name is known within this namespace.\n   * @param element Name of element to check\n   * @return true if its known, false if not.\n   */\n  public abstract boolean isElementAvailable(String element);\n\n  /**\n   * Process a call to a function.\n   *\n   * @param funcName Function name.\n   * @param args     The arguments of the function call.\n   * @param methodKey A key that uniquely identifies this class and method call.\n   * @param exprContext The context in which this expression is being executed.\n   *\n   * @return the return value of the function evaluation.\n   *\n   * @throws TransformerException          if parsing trouble\n   */\n  public abstract Object callFunction(\n    String funcName, Vector args, Object methodKey,\n      ExpressionContext exprContext) throws TransformerException;\n\n  /**\n   * Process a call to a function.\n   *\n   * @param extFunction The XPath extension function.\n   * @param args     The arguments of the function call.\n   * @param exprContext The context in which this expression is being executed.\n   *\n   * @return the return value of the function evaluation.\n   *\n   * @throws TransformerException          if parsing trouble\n   */\n  public abstract Object callFunction(\n    FuncExtFunction extFunction, Vector args,\n      ExpressionContext exprContext) throws TransformerException;\n\n  /**\n   * Process a call to this extension namespace via an element. As a side\n   * effect, the results are sent to the TransformerImpl's result tree.\n   *\n   * @param localPart      Element name's local part.\n   * @param element        The extension element being processed.\n   * @param transformer    Handle to TransformerImpl.\n   * @param stylesheetTree The compiled stylesheet tree.\n   * @param methodKey      A key that uniquely identifies this class and method call.\n   *\n   * @throws XSLProcessorException thrown if something goes wrong\n   *            while running the extension handler.\n   * @throws MalformedURLException if loading trouble\n   * @throws FileNotFoundException if loading trouble\n   * @throws IOException           if loading trouble\n   * @throws TransformerException  if parsing trouble\n   */\n  public abstract void processElement(\n    String localPart, ElemTemplateElement element, TransformerImpl transformer,\n      Stylesheet stylesheetTree, Object methodKey) throws TransformerException, IOException;", "functions": [{"function_name": "getClassForName", "code": "  static Class getClassForName(String className)\n      throws ClassNotFoundException\n  {\n    if(className.equals(\"org.apache.xalan.xslt.extensions.Redirect\")) {\n      className = \"org.apache.xalan.lib.Redirect\";\n    }\n\n    return ObjectFactory.findProviderClass(\n        className, ObjectFactory.findClassLoader(), true);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [5, 8], [2, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 5], [9, 2], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isFunctionAvailable", "code": "  public abstract boolean isFunctionAvailable(String function);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isElementAvailable", "code": "  public abstract boolean isElementAvailable(String element);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "callFunction", "code": "  public abstract Object callFunction(\n    String funcName, Vector args, Object methodKey,\n      ExpressionContext exprContext) throws TransformerException;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "callFunction", "code": "  public abstract Object callFunction(\n    FuncExtFunction extFunction, Vector args,\n      ExpressionContext exprContext) throws TransformerException;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "processElement", "code": "  public abstract void processElement(\n    String localPart, ElemTemplateElement element, TransformerImpl transformer,\n      Stylesheet stylesheetTree, Object methodKey) throws TransformerException, IOException;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ExtensionHandler", "code": "  protected ExtensionHandler(String namespaceUri, String scriptLang)\n  {\n    m_namespaceUri = namespaceUri;\n    m_scriptLang = scriptLang;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.6-7804", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/XPath.java", "language": "java", "name": "org.apache.xpath.XPath", "code": "public class XPath implements Serializable, ExpressionOwner\n{\n\n  /** The top of the expression tree. \n   *  @serial */\n  private Expression m_mainExp;\n\n  /**\n   * Get the raw Expression object that this class wraps.\n   *\n   *\n   * @return the raw Expression object, which should not normally be null.\n   */\n  public Expression getExpression()\n  {\n    return m_mainExp;\n  }\n  \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_mainExp.fixupVariables(vars, globalsSize);\n  }\n\n  /**\n   * Set the raw expression object for this object.\n   *\n   *\n   * @param exp the raw Expression object, which should not normally be null.\n   */\n  public void setExpression(Expression exp)\n  {\n  \tif(null != m_mainExp)\n    m_mainExp = exp;\n  }\n\n  /**\n   * Get the SourceLocator on the expression object.\n   *\n   *\n   * @return the SourceLocator on the expression object, which may be null.\n   */\n  public SourceLocator getLocator()\n  {\n    return m_mainExp;\n  }\n\n\n  /** The pattern string, mainly kept around for diagnostic purposes.\n   *  @serial  */\n  String m_patternString;\n\n  /**\n   * Return the XPath string associated with this object.\n   *\n   *\n   * @return the XPath string associated with this object.\n   */\n  public String getPatternString()\n  {\n    return m_patternString;\n  }\n\n  /** Represents a select type expression. */\n  public static final int SELECT = 0;\n\n  /** Represents a match type expression.  */\n  public static final int MATCH = 1;\n\n  /**\n   * Construct an XPath object.  \n   *\n   * (Needs review -sc) This method initializes an XPathParser/\n   * Compiler and compiles the expression.\n   * @param exprString The XPath expression.\n   * @param locator The location of the expression, may be null.\n   * @param prefixResolver A prefix resolver to use to resolve prefixes to \n   *                       namespace URIs.\n   * @param type one of {@link #SELECT} or {@link #MATCH}.\n   * @param errorListener The error listener, or null if default should be used.\n   *\n   * @throws javax.xml.transform.TransformerException if syntax or other error.\n   */\n  public XPath(\n          String exprString, SourceLocator locator, PrefixResolver prefixResolver, int type,\n          ErrorListener errorListener)\n            throws javax.xml.transform.TransformerException\n  {      \n    if(null == errorListener)\n      errorListener = new org.apache.xml.utils.DefaultErrorHandler();\n    \n    m_patternString = exprString;\n\n    XPathParser parser = new XPathParser(errorListener, locator);\n    Compiler compiler = new Compiler(errorListener, locator);\n\n    if (SELECT == type)\n      parser.initXPath(compiler, exprString, prefixResolver);\n    else if (MATCH == type)\n      parser.initMatchPattern(compiler, exprString, prefixResolver);\n    else{}\n\n    Expression expr = compiler.compile(0);\n\n    this.setExpression(expr);\n    \n    if((null != locator) && locator instanceof ExpressionNode)\n    {\n    \texpr.exprSetParent((ExpressionNode)locator);\n    }\n\n  }\n  \n  /**\n   * Construct an XPath object.  \n   *\n   * (Needs review -sc) This method initializes an XPathParser/\n   * Compiler and compiles the expression.\n   * @param exprString The XPath expression.\n   * @param locator The location of the expression, may be null.\n   * @param prefixResolver A prefix resolver to use to resolve prefixes to \n   *                       namespace URIs.\n   * @param type one of {@link #SELECT} or {@link #MATCH}.\n   *\n   * @throws javax.xml.transform.TransformerException if syntax or other error.\n   */\n  public XPath(\n          String exprString, SourceLocator locator, PrefixResolver prefixResolver, int type)\n            throws javax.xml.transform.TransformerException\n  {  \n    this(exprString, locator, prefixResolver, type, null);    \n  }\n\n  /**\n   * Construct an XPath object.\n   *\n   * @param expr The Expression object.\n   *\n   * @throws javax.xml.transform.TransformerException if syntax or other error.\n   */\n  public XPath(Expression expr)\n  {  \n    this.setExpression(expr);   \n  }\n  \n  /**\n   * Given an expression and a context, evaluate the XPath\n   * and return the result.\n   * \n   * @param xctxt The execution context.\n   * @param contextNode The node that \".\" expresses.\n   * @param namespaceContext The context in which namespaces in the\n   * XPath are supposed to be expanded.\n   *\n   * @return The result of the XPath or null if callbacks are used.\n   * @throws TransformerException thrown if\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws javax.xml.transform.TransformerException\n   * @xsl.usage experimental\n   */\n  public XObject execute(\n          XPathContext xctxt, org.w3c.dom.Node contextNode, \n          PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n    return execute(\n          xctxt, xctxt.getDTMHandleFromNode(contextNode), \n          namespaceContext);\n  }\n  \n\n  /**\n   * Given an expression and a context, evaluate the XPath\n   * and return the result.\n   * \n   * @param xctxt The execution context.\n   * @param contextNode The node that \".\" expresses.\n   * @param namespaceContext The context in which namespaces in the\n   * XPath are supposed to be expanded.\n   * \n   * @throws TransformerException thrown if the active ProblemListener decides\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws javax.xml.transform.TransformerException\n   * @xsl.usage experimental\n   */\n  public XObject execute(\n          XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushNamespaceContext(namespaceContext);\n\n    xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n    XObject xobj = null;\n\n    try\n    {\n      xobj = m_mainExp.execute(xctxt);\n    }\n    catch (TransformerException te)\n    {\n      te.setLocator(this.getLocator());\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.error(te);\n      }\n      else\n        throw te;\n    }\n    catch (Exception e)\n    {\n      while (e instanceof org.apache.xml.utils.WrappedRuntimeException)\n      {\n        e = ((org.apache.xml.utils.WrappedRuntimeException) e).getException();\n      }\n\n      String msg = e.getMessage();\n      \n      if (msg == null || msg.length() == 0) {\n           msg = XSLMessages.createXPATHMessage(\n               XPATHErrorResources.ER_XPATH_ERROR, null);\n     \n      }  \n      TransformerException te = new TransformerException(msg,\n              getLocator(), e);\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.fatalError(te);\n      }\n      else\n        throw te;\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n\n      xctxt.popCurrentNodeAndExpression();\n    }\n\n    return xobj;\n  }\n  \n  /**\n   * Given an expression and a context, evaluate the XPath\n   * and return the result.\n   * \n   * @param xctxt The execution context.\n   * @param contextNode The node that \".\" expresses.\n   * @param namespaceContext The context in which namespaces in the\n   * XPath are supposed to be expanded.\n   * \n   * @throws TransformerException thrown if the active ProblemListener decides\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws javax.xml.transform.TransformerException\n   * @xsl.usage experimental\n   */\n  public boolean bool(\n          XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushNamespaceContext(namespaceContext);\n\n    xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n    try\n    {\n      return m_mainExp.bool(xctxt);\n    }\n    catch (TransformerException te)\n    {\n      te.setLocator(this.getLocator());\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.error(te);\n      }\n      else\n        throw te;\n    }\n    catch (Exception e)\n    {\n      while (e instanceof org.apache.xml.utils.WrappedRuntimeException)\n      {\n        e = ((org.apache.xml.utils.WrappedRuntimeException) e).getException();\n      }\n\n      String msg = e.getMessage();\n      \n      if (msg == null || msg.length() == 0) {\n           msg = XSLMessages.createXPATHMessage(\n               XPATHErrorResources.ER_XPATH_ERROR, null);\n     \n      }        \n      \n      TransformerException te = new TransformerException(msg,\n              getLocator(), e);\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.fatalError(te);\n      }\n      else\n        throw te;\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n\n      xctxt.popCurrentNodeAndExpression();\n    }\n\n    return false;\n  }\n\n  /** Set to true to get diagnostic messages about the result of \n   *  match pattern testing.  */\n  private static final boolean DEBUG_MATCHES = false;\n\n  /**\n   * Get the match score of the given node.\n   *\n   * @param xctxt XPath runtime context.\n   * @param context The current source tree context node.\n   * \n   * @return score, one of {@link #MATCH_SCORE_NODETEST},\n   * {@link #MATCH_SCORE_NONE}, {@link #MATCH_SCORE_OTHER}, \n   * or {@link #MATCH_SCORE_QNAME}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public double getMatchScore(XPathContext xctxt, int context)\n          throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushCurrentNode(context);\n    xctxt.pushCurrentExpressionNode(context);\n\n    try\n    {\n      XObject score = m_mainExp.execute(xctxt);\n\n      if (DEBUG_MATCHES)\n      {\n        DTM dtm = xctxt.getDTM(context);\n        System.out.println(\"score: \" + score.num() + \" for \"\n                           + dtm.getNodeName(context) + \" for xpath \"\n                           + this.getPatternString());\n      }\n\n      return score.num();\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n      xctxt.popCurrentExpressionNode();\n    }\n\n  }\n\n  /**\n   * Install a built-in function.\n   * @param name The unqualified name of the function; not currently used.\n   * @param funcIndex The index of the function in the table.\n   * @param func An Implementation of an XPath Function object.\n   * @return the position of the function in the internal index.\n   */\n  public void installFunction(String name, int funcIndex, Function func)\n  {\n    FunctionTable.installFunction(func, funcIndex);\n  }\n\n  /**\n   * Warn the user of an problem.\n   *\n   * @param xctxt The XPath runtime context.\n   * @param sourceNode Not used.\n   * @param msg An error msgkey that corresponds to one of the constants found \n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is \n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which \n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to \n   *                              throw an exception.\n   */\n  public void warn(\n          XPathContext xctxt, int sourceNode, String msg, Object[] args)\n            throws javax.xml.transform.TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHWarning(msg, args);\n    ErrorListener ehandler = xctxt.getErrorListener();\n\n    if (null != ehandler)\n    {\n\n      ehandler.warning(new TransformerException(fmsg, (SAXSourceLocator)xctxt.getSAXLocator()));\n    }\n  }\n\n  /**\n   * Tell the user of an assertion error, and probably throw an\n   * exception.\n   *\n   * @param b  If false, a runtime exception will be thrown.\n   * @param msg The assertion message, which should be informative.\n   * \n   * @throws RuntimeException if the b argument is false.\n   */\n  public void assertion(boolean b, String msg)\n  {\n\n    if (!b)\n    {\n      String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ msg });\n\n      throw new RuntimeException(fMsg);\n    }\n  }\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param xctxt The XPath runtime context.\n   * @param sourceNode Not used.\n   * @param msg An error msgkey that corresponds to one of the constants found \n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is \n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which \n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to \n   *                              throw an exception.\n   */\n  public void error(\n          XPathContext xctxt, int sourceNode, String msg, Object[] args)\n            throws javax.xml.transform.TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHMessage(msg, args);\n    ErrorListener ehandler = xctxt.getErrorListener();\n\n    if (null != ehandler)\n    {\n      ehandler.fatalError(new TransformerException(fmsg,\n                              (SAXSourceLocator)xctxt.getSAXLocator()));\n    }\n    else\n    {\n      SourceLocator slocator = xctxt.getSAXLocator();\n      System.out.println(fmsg + \"; file \" + slocator.getSystemId()\n                         + \"; line \" + slocator.getLineNumber() + \"; column \"\n                         + slocator.getColumnNumber());\n    }\n  }\n  \n  /**\n   * This will traverse the heararchy, calling the visitor for \n   * each member.  If the called visitor method returns \n   * false, the subtree should not be called.\n   * \n   * @param owner The owner of the visitor, where that path may be \n   *              rewritten if needed.\n   * @param visitor The visitor whose appropriate method will be called.\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tm_mainExp.callVisitors(this, visitor);\n  }\n\n  /**\n   * The match score if no match is made.\n   * @xsl.usage advanced\n   */\n  public static final double MATCH_SCORE_NONE = Double.NEGATIVE_INFINITY;\n\n  /**\n   * The match score if the pattern has the form\n   * of a QName optionally preceded by an @ character.\n   * @xsl.usage advanced\n   */\n  public static final double MATCH_SCORE_QNAME = 0.0;\n\n  /**\n   * The match score if the pattern pattern has the form NCName:*.\n   * @xsl.usage advanced\n   */\n  public static final double MATCH_SCORE_NSWILD = -0.25;\n\n  /**\n   * The match score if the pattern consists of just a NodeTest.\n   * @xsl.usage advanced\n   */\n  public static final double MATCH_SCORE_NODETEST = -0.5;\n\n  /**\n   * The match score if the pattern consists of something\n   * other than just a NodeTest or just a qname.\n   * @xsl.usage advanced\n   */\n  public static final double MATCH_SCORE_OTHER = 0.5;", "functions": [{"function_name": "getExpression", "code": "  public Expression getExpression()\n  {\n    return m_mainExp;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_mainExp.fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setExpression", "code": "  public void setExpression(Expression exp)\n  {\n  \tif(null != m_mainExp)\n    m_mainExp = exp;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getLocator", "code": "  public SourceLocator getLocator()\n  {\n    return m_mainExp;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPatternString", "code": "  public String getPatternString()\n  {\n    return m_patternString;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public XObject execute(\n          XPathContext xctxt, org.w3c.dom.Node contextNode, \n          PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n    return execute(\n          xctxt, xctxt.getDTMHandleFromNode(contextNode), \n          namespaceContext);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "execute", "code": "  public XObject execute(\n          XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushNamespaceContext(namespaceContext);\n\n    xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n    XObject xobj = null;\n\n    try\n    {\n      xobj = m_mainExp.execute(xctxt);\n    }\n    catch (TransformerException te)\n    {\n      te.setLocator(this.getLocator());\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.error(te);\n      }\n      else\n        throw te;\n    }\n    catch (Exception e)\n    {\n      while (e instanceof org.apache.xml.utils.WrappedRuntimeException)\n      {\n        e = ((org.apache.xml.utils.WrappedRuntimeException) e).getException();\n      }\n\n      String msg = e.getMessage();\n      \n      if (msg == null || msg.length() == 0) {\n           msg = XSLMessages.createXPATHMessage(\n               XPATHErrorResources.ER_XPATH_ERROR, null);\n     \n      }  \n      TransformerException te = new TransformerException(msg,\n              getLocator(), e);\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.fatalError(te);\n      }\n      else\n        throw te;\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n\n      xctxt.popCurrentNodeAndExpression();\n    }\n\n    return xobj;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [0, 9], [0, 10], [2, 11], [2, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [8, 19], [8, 20], [2, 21], [3, 22], [13, 23], [13, 24], [16, 25], [18, 26], [19, 27], [19, 28], [8, 29], [21, 30], [14, 31], [15, 32], [25, 33], [25, 34], [17, 35], [20, 36], [13, 37], [32, 38], [16, 39], [33, 40], [33, 41], [34, 42], [18, 43], [19, 44], [29, 45], [39, 46], [46, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 0], [10, 0], [11, 2], [12, 2], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 7], [19, 8], [20, 8], [21, 2], [22, 3], [23, 13], [24, 13], [25, 16], [26, 18], [27, 19], [28, 19], [29, 8], [30, 21], [31, 14], [32, 15], [33, 25], [34, 25], [35, 17], [36, 20], [37, 13], [38, 32], [39, 16], [40, 33], [41, 33], [42, 34], [43, 18], [44, 19], [45, 29], [46, 39], [47, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "bool", "code": "  public boolean bool(\n          XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushNamespaceContext(namespaceContext);\n\n    xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n    try\n    {\n      return m_mainExp.bool(xctxt);\n    }\n    catch (TransformerException te)\n    {\n      te.setLocator(this.getLocator());\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.error(te);\n      }\n      else\n        throw te;\n    }\n    catch (Exception e)\n    {\n      while (e instanceof org.apache.xml.utils.WrappedRuntimeException)\n      {\n        e = ((org.apache.xml.utils.WrappedRuntimeException) e).getException();\n      }\n\n      String msg = e.getMessage();\n      \n      if (msg == null || msg.length() == 0) {\n           msg = XSLMessages.createXPATHMessage(\n               XPATHErrorResources.ER_XPATH_ERROR, null);\n     \n      }        \n      \n      TransformerException te = new TransformerException(msg,\n              getLocator(), e);\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.fatalError(te);\n      }\n      else\n        throw te;\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n\n      xctxt.popCurrentNodeAndExpression();\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "CATCH", "RETURN", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [0, 10], [0, 11], [2, 12], [2, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [8, 20], [8, 21], [9, 22], [14, 23], [14, 24], [17, 25], [19, 26], [20, 27], [20, 28], [8, 29], [15, 30], [16, 31], [25, 32], [25, 33], [18, 34], [21, 35], [14, 36], [31, 37], [17, 38], [32, 39], [32, 40], [33, 41], [19, 42], [20, 43], [29, 44], [38, 45], [45, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 0], [11, 0], [12, 2], [13, 2], [14, 7], [15, 7], [16, 7], [17, 7], [18, 7], [19, 7], [20, 8], [21, 8], [22, 9], [23, 14], [24, 14], [25, 17], [26, 19], [27, 20], [28, 20], [29, 8], [30, 15], [31, 16], [32, 25], [33, 25], [34, 18], [35, 21], [36, 14], [37, 31], [38, 17], [39, 32], [40, 32], [41, 33], [42, 19], [43, 20], [44, 29], [45, 38], [46, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "getMatchScore", "code": "  public double getMatchScore(XPathContext xctxt, int context)\n          throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushCurrentNode(context);\n    xctxt.pushCurrentExpressionNode(context);\n\n    try\n    {\n      XObject score = m_mainExp.execute(xctxt);\n\n      if (DEBUG_MATCHES)\n      {\n        DTM dtm = xctxt.getDTM(context);\n        System.out.println(\"score: \" + score.num() + \" for \"\n                           + dtm.getNodeName(context) + \" for xpath \"\n                           + this.getPatternString());\n      }\n\n      return score.num();\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n      xctxt.popCurrentExpressionNode();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [1, 9], [1, 10], [4, 11], [5, 12], [6, 13], [5, 14], [14, 15], [12, 16], [15, 17], [15, 18], [17, 19], [17, 20], [20, 21], [20, 22], [22, 23], [22, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 1], [10, 1], [11, 4], [12, 5], [13, 6], [14, 5], [15, 14], [16, 12], [17, 15], [18, 15], [19, 17], [20, 17], [21, 20], [22, 20], [23, 22], [24, 22], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "installFunction", "code": "  public void installFunction(String name, int funcIndex, Function func)\n  {\n    FunctionTable.installFunction(func, funcIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "warn", "code": "  public void warn(\n          XPathContext xctxt, int sourceNode, String msg, Object[] args)\n            throws javax.xml.transform.TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHWarning(msg, args);\n    ErrorListener ehandler = xctxt.getErrorListener();\n\n    if (null != ehandler)\n    {\n\n      ehandler.warning(new TransformerException(fmsg, (SAXSourceLocator)xctxt.getSAXLocator()));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [2, 10], [3, 11], [1, 12], [12, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 2], [11, 3], [12, 1], [13, 12], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "assertion", "code": "  public void assertion(boolean b, String msg)\n  {\n\n    if (!b)\n    {\n      String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ msg });\n\n      throw new RuntimeException(fMsg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "THROW_RAISE", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "error", "code": "  public void error(\n          XPathContext xctxt, int sourceNode, String msg, Object[] args)\n            throws javax.xml.transform.TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHMessage(msg, args);\n    ErrorListener ehandler = xctxt.getErrorListener();\n\n    if (null != ehandler)\n    {\n      ehandler.fatalError(new TransformerException(fmsg,\n                              (SAXSourceLocator)xctxt.getSAXLocator()));\n    }\n    else\n    {\n      SourceLocator slocator = xctxt.getSAXLocator();\n      System.out.println(fmsg + \"; file \" + slocator.getSystemId()\n                         + \"; line \" + slocator.getLineNumber() + \"; column \"\n                         + slocator.getColumnNumber());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [2, 11], [3, 12], [1, 13], [1, 14], [13, 15], [9, 16], [14, 17], [15, 18], [15, 19], [19, 20], [19, 21], [17, 22], [21, 23], [21, 24], [24, 25], [24, 26], [26, 27], [26, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 2], [12, 3], [13, 1], [14, 1], [15, 13], [16, 9], [17, 14], [18, 15], [19, 15], [20, 19], [21, 19], [22, 17], [23, 21], [24, 21], [25, 24], [26, 24], [27, 26], [28, 26], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tm_mainExp.callVisitors(this, visitor);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "XPath", "code": "  public XPath(\n          String exprString, SourceLocator locator, PrefixResolver prefixResolver, int type,\n          ErrorListener errorListener)\n            throws javax.xml.transform.TransformerException\n  {      \n    if(null == errorListener)\n      errorListener = new org.apache.xml.utils.DefaultErrorHandler();\n    \n    m_patternString = exprString;\n\n    XPathParser parser = new XPathParser(errorListener, locator);\n    Compiler compiler = new Compiler(errorListener, locator);\n\n    if (SELECT == type)\n      parser.initXPath(compiler, exprString, prefixResolver);\n    else if (MATCH == type)\n      parser.initMatchPattern(compiler, exprString, prefixResolver);\n    else{}\n\n    Expression expr = compiler.compile(0);\n\n    this.setExpression(expr);\n    \n    if((null != locator) && locator instanceof ExpressionNode)\n    {\n    \texpr.exprSetParent((ExpressionNode)locator);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [3, 13], [3, 14], [0, 15], [6, 16], [12, 17], [12, 18], [0, 19], [2, 20], [13, 21], [3, 22], [4, 23], [5, 24], [6, 25], [16, 26], [1, 27], [18, 28], [20, 29], [13, 30], [25, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 3], [14, 3], [15, 0], [16, 6], [17, 12], [18, 12], [19, 0], [20, 2], [21, 13], [22, 3], [23, 4], [24, 5], [25, 6], [26, 16], [27, 1], [28, 18], [29, 20], [30, 13], [31, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "XPath", "code": "  public XPath(\n          String exprString, SourceLocator locator, PrefixResolver prefixResolver, int type)\n            throws javax.xml.transform.TransformerException\n  {  \n    this(exprString, locator, prefixResolver, type, null);    ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "XPath", "code": "  public XPath(Expression expr)\n  {  \n    this.setExpression(expr);   ", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.1-4114", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/JEditMetalTheme.java", "language": "java", "name": "org.gjt.sp.jedit.gui.JEditMetalTheme", "code": "public class JEditMetalTheme extends DefaultMetalTheme\n{\n\tpublic String getName()\n\t{\n\t\treturn \"jEdit\";\n\t}\n\n\tpublic ColorUIResource getSystemTextColor()\n\t{\n\t\treturn getBlack();\n\t}\n\n\tpublic FontUIResource getControlTextFont()\n\t{\n\t\treturn primaryFont;\n\t}\n\n\tpublic FontUIResource getSystemTextFont()\n\t{\n\t\treturn secondaryFont;\n\t}\n\n\tpublic FontUIResource getUserTextFont()\n\t{\n\t\treturn secondaryFont;\n\t}\n\n\tpublic FontUIResource getMenuTextFont()\n\t{\n\t\treturn primaryFont;\n\t}\n\n\tpublic void propertiesChanged()\n\t{\n\t\tprimaryFont = new FontUIResource(\n\t\t\tjEdit.getFontProperty(\"metal.primary.font\",\n\t\t\tsuper.getControlTextFont()));\n\t\tsecondaryFont = new FontUIResource(\n\t\t\tjEdit.getFontProperty(\"metal.secondary.font\",\n\t\t\tsuper.getSystemTextFont()));\n\t}\n\n\t// private members\n\tprivate FontUIResource primaryFont;\n\tprivate FontUIResource secondaryFont;", "functions": [{"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn \"jEdit\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemTextColor", "code": "\tpublic ColorUIResource getSystemTextColor()\n\t{\n\t\treturn getBlack();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getControlTextFont", "code": "\tpublic FontUIResource getControlTextFont()\n\t{\n\t\treturn primaryFont;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSystemTextFont", "code": "\tpublic FontUIResource getSystemTextFont()\n\t{\n\t\treturn secondaryFont;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getUserTextFont", "code": "\tpublic FontUIResource getUserTextFont()\n\t{\n\t\treturn secondaryFont;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMenuTextFont", "code": "\tpublic FontUIResource getMenuTextFont()\n\t{\n\t\treturn primaryFont;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "propertiesChanged", "code": "\tpublic void propertiesChanged()\n\t{\n\t\tprimaryFont = new FontUIResource(\n\t\t\tjEdit.getFontProperty(\"metal.primary.font\",\n\t\t\tsuper.getControlTextFont()));\n\t\tsecondaryFont = new FontUIResource(\n\t\t\tjEdit.getFontProperty(\"metal.secondary.font\",", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "poi-2.0-5359", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/poifs/property/Parent.java", "language": "java", "name": "org.apache.poi.poifs.property.Parent", "code": "public interface Parent\n    extends Child\n{\n\n    /**\n     * Get an iterator over the children of this Parent; all elements\n     * are instances of Property.\n     *\n     * @return Iterator of children; may refer to an empty collection\n     */\n\n    public Iterator getChildren();\n\n    /**\n     * Add a new child to the collection of children\n     *\n     * @param property the new child to be added; must not be null\n     *\n     * @exception IOException if the Parent already has a child with\n     *                        the same name\n     */\n\n    public void addChild(final Property property)\n        throws IOException;\n\n    /**\n     * Set the previous Child\n     *\n     * @param child the new 'previous' child; may be null, which has\n     *              the effect of saying there is no 'previous' child\n     */\n\n    public void setPreviousChild(final Child child);\n\n    /**\n     * Set the next Child\n     *\n     * @param child the new 'next' child; may be null, which has the\n     *              effect of saying there is no 'next' child\n     */\n\n    public void setNextChild(final Child child);", "functions": [{"function_name": "getChildren", "code": "    public Iterator getChildren();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "addChild", "code": "    public void addChild(final Property property)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPreviousChild", "code": "    public void setPreviousChild(final Child child);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNextChild", "code": "    public void setNextChild(final Child child);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-3150", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/OtherwiseType.java", "language": "java", "name": "org.apache.camel.model.OtherwiseType", "code": "@XmlRootElement(name = \"otherwise\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class OtherwiseType extends OutputType<ProcessorType> implements Block {\n\n    @Override\n    public String toString() {\n        return \"Otherwise[\" + getOutputs() + \"]\";\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        return routeContext.createProcessor(this);\n    }\n\n    @Override\n    public String getShortName() {\n        return \"otherwise\";\n    }\n\n    @Override\n    public String getLabel() {\n        return \"otherwise\";", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Otherwise[\" + getOutputs() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        return routeContext.createProcessor(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getShortName", "code": "    @Override\n    public String getShortName() {\n        return \"otherwise\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLabel", "code": "    @Override\n    public String getLabel() {\n        return \"otherwise\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ivy-2.0-3514", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/settings/XmlSettingsParser.java", "language": "java", "name": "org.apache.ivy.core.settings.XmlSettingsParser", "code": "public class XmlSettingsParser extends DefaultHandler {\n    /**\n     * Wraps an {@link IvyVariableContainer} delegating most method calls to the wrapped instance,\n     * except for a set of variables which are only stored locally in the wrapper, and not\n     * propagated to the wrapped instance.\n     */\n    private static final class IvyVariableContainerWrapper implements IvyVariableContainer {\n        private static final Collection SETTINGS_VARIABLES = Arrays.asList(new String[] {\n                \"ivy.settings.dir\", \"ivy.settings.url\", \"ivy.settings.file\",\n                \"ivy.conf.dir\", \"ivy.conf.url\", \"ivy.conf.file\"});\n        \n        private final IvyVariableContainer variables;\n\n        private Map localVariables = new HashMap();\n\n        private IvyVariableContainerWrapper(IvyVariableContainer variables) {\n            this.variables = variables;\n        }\n\n        public void setVariable(String varName, String value, boolean overwrite) {\n            if (SETTINGS_VARIABLES.contains(varName)) {\n                if (!localVariables.containsKey(varName) || overwrite) {\n                    localVariables.put(varName, value);\n                }\n            } else {\n                variables.setVariable(varName, value, overwrite);\n            }\n        }\n\n        public void setEnvironmentPrefix(String prefix) {\n            variables.setEnvironmentPrefix(prefix);\n        }\n\n        public String getVariable(String name) {\n            if (localVariables.containsKey(name)) {\n                return (String) localVariables.get(name);\n            }\n            return variables.getVariable(name);\n        }\n\n        public Object clone() {\n            throw new UnsupportedOperationException();\n        }\n    }\n\n    private Configurator configurator;\n\n    private List configuratorTags = Arrays.asList(new String[] {\"resolvers\", \"namespaces\",\n            \"parsers\", \"latest-strategies\", \"conflict-managers\", \"outputters\", \"version-matchers\",\n            \"statuses\", \"circular-dependency-strategies\", \"triggers\", \"lock-strategies\",\n            \"caches\"});\n\n    private IvySettings ivy;\n\n    private String defaultResolver;\n\n    private String defaultCM;\n\n    private String defaultLatest;\n\n    private String defaultCacheManager;\n\n    private String defaultCircular;\n\n    private String defaultLock;\n\n    private String currentConfiguratorTag;\n\n    private URL settings;\n\n    private boolean deprecatedMessagePrinted = false;\n\n    public XmlSettingsParser(IvySettings ivy) {\n        this.ivy = ivy;\n    }\n\n    public void parse(URL settings) throws ParseException, IOException {\n        configurator = new Configurator();\n        configurator.setFileResolver(new FileResolver() {\n            public File resolveFile(String path, String filename) {\n                return Checks.checkAbsolute(path, filename);\n            }\n        });\n        // put every type definition from ivy to configurator\n        Map typeDefs = ivy.getTypeDefs();\n        for (Iterator iter = typeDefs.keySet().iterator(); iter.hasNext();) {\n            String name = (String) iter.next();\n            configurator.typeDef(name, (Class) typeDefs.get(name));\n        }\n\n        doParse(settings);\n    }\n\n    private void doParse(URL settingsUrl) throws IOException, ParseException {\n        this.settings = settingsUrl;\n        InputStream stream = null;\n        try {\n            stream = URLHandlerRegistry.getDefault().openStream(settingsUrl);\n            InputSource inSrc = new InputSource(stream);\n            inSrc.setSystemId(settingsUrl.toExternalForm());\n            SAXParserFactory.newInstance().newSAXParser().parse(settingsUrl.toExternalForm(), this);\n            ivy.validate();\n        } catch (IOException e) {\n            throw e;\n        } catch (Exception e) {\n            ParseException pe = new ParseException(\"failed to load settings from \" + settingsUrl\n                    + \": \" + e.getMessage(), 0);\n            pe.initCause(e);\n            throw pe;\n        } finally {\n            if (stream != null) {\n                try {\n                    stream.close();\n                } catch (IOException e) {\n                    // ingnored\n                }\n            }\n        }\n    }\n\n    private void parse(Configurator configurator, URL configuration) throws IOException,\n            ParseException {\n        this.configurator = configurator;\n        doParse(configuration);\n    }\n\n    public void startElement(String uri, String localName, String qName, Attributes att)\n            throws SAXException {\n        // we first copy attributes in a Map to be able to modify them\n        Map attributes = new HashMap();\n        for (int i = 0; i < att.getLength(); i++) {\n            attributes.put(att.getQName(i), ivy.substitute(att.getValue(i)));\n        }\n\n        try {\n            if (\"ivyconf\".equals(qName)) {\n                deprecatedMessagePrinted = true;\n                Message.deprecated(\"'ivyconf' element is deprecated, use 'ivysettings' instead (\"\n                        + settings + \")\");\n            }\n            if (configurator.getCurrent() != null) {\n                inConfiguratorStarted(qName, attributes);\n            } else if (\"classpath\".equals(qName)) {\n                classpathStarted(attributes);\n            } else if (\"typedef\".equals(qName)) {\n                typedefStarted(attributes);\n            } else if (\"property\".equals(qName)) {\n                propertyStarted(attributes);\n            } else if (\"properties\".equals(qName)) {\n                propertiesStarted(attributes);\n            } else if (\"include\".equals(qName)) {\n                includeStarted(attributes);\n            } else if (\"settings\".equals(qName) || \"conf\".equals(qName)) {\n                settingsStarted(qName, attributes);\n            } else if (\"caches\".equals(qName)) {\n                cachesStarted(qName, attributes);\n            } else if (\"version-matchers\".equals(qName)) {\n                versionMatchersStarted(qName, attributes);\n            } else if (\"statuses\".equals(qName)) {\n                statusesStarted(qName, attributes);\n            } else if (configuratorTags.contains(qName)) {\n                anyConfiguratorStarted(qName);\n            } else if (\"macrodef\".equals(qName)) {\n                macrodefStarted(qName, attributes);\n            } else if (\"module\".equals(qName)) {\n                moduleStarted(attributes);\n            } else if (\"credentials\".equals(qName)) {\n                credentialsStarted(attributes);\n            }\n        } catch (ParseException ex) {\n            SAXException sax = new SAXException(\"problem in config file: \" + ex.getMessage(), ex);\n            sax.initCause(ex);\n            throw sax;\n        } catch (IOException ex) {\n            SAXException sax = new SAXException(\"io problem while parsing config file: \" \n                        + ex.getMessage(), ex);\n            sax.initCause(ex);\n            throw sax;\n        }\n    }\n\n    private void credentialsStarted(Map attributes) {\n        String realm = (String) attributes.remove(\"realm\");\n        String host = (String) attributes.remove(\"host\");\n        String userName = (String) attributes.remove(\"username\");\n        String passwd = (String) attributes.remove(\"passwd\");\n        CredentialsStore.INSTANCE.addCredentials(realm, host, userName, passwd);\n    }\n\n    private void moduleStarted(Map attributes) {\n        attributes.put(IvyPatternHelper.MODULE_KEY, attributes.remove(\"name\"));\n        String resolver = (String) attributes.remove(\"resolver\");\n        String branch = (String) attributes.remove(\"branch\");\n        String cm = (String) attributes.remove(\"conflict-manager\");\n        String resolveMode = (String) attributes.remove(\"resolveMode\");\n        String matcher = (String) attributes.remove(\"matcher\");\n        matcher = matcher == null ? PatternMatcher.EXACT_OR_REGEXP : matcher;\n        ivy.addModuleConfiguration(attributes, ivy\n                .getMatcher(matcher), resolver, branch, cm, resolveMode);\n    }\n\n    private void macrodefStarted(String qName, Map attributes) {\n        currentConfiguratorTag = qName;\n        Configurator.MacroDef macrodef = configurator.startMacroDef((String) attributes\n                .get(\"name\"));\n        macrodef.addAttribute(\"name\", null);\n    }\n\n    private void anyConfiguratorStarted(String qName) {\n        currentConfiguratorTag = qName;\n        configurator.setRoot(ivy);\n    }\n\n    private void statusesStarted(String qName, Map attributes) {\n        currentConfiguratorTag = qName;\n        StatusManager m = new StatusManager();\n        String defaultStatus = (String) attributes.get(\"default\");\n        if (defaultStatus != null) {\n            m.setDefaultStatus(defaultStatus);\n        }\n        ivy.setStatusManager(m);\n        configurator.setRoot(m);\n    }\n\n    private void versionMatchersStarted(String qName, Map attributes) {\n        anyConfiguratorStarted(qName);\n        if (\"true\".equals((String) attributes.get(\"usedefaults\"))) {\n            ivy.configureDefaultVersionMatcher();\n        }\n    }\n\n    private void cachesStarted(String qName, Map attributes) {\n        anyConfiguratorStarted(qName);\n        defaultLock = (String) attributes.get(\"lockStrategy\");\n        defaultCacheManager = (String) attributes.get(\"default\");\n        \n        String cache = (String) attributes.get(\"defaultCacheDir\");\n        if (cache != null) {\n            ivy.setDefaultCache(Checks.checkAbsolute(cache, \"defaultCacheDir\"));\n        }\n        String up2d = (String) attributes.get(\"checkUpToDate\");\n        if (up2d != null) {\n            ivy.setCheckUpToDate(Boolean.valueOf(up2d).booleanValue());\n        }\n        String resolutionDir = (String) attributes.get(\"resolutionCacheDir\");\n        if (resolutionDir != null) {\n            ivy.setDefaultResolutionCacheBasedir(resolutionDir);\n        }\n        String useOrigin = (String) attributes.get(\"useOrigin\");\n        if (useOrigin != null) {\n            ivy.setDefaultUseOrigin(Boolean.valueOf(useOrigin).booleanValue());\n        }\n        String cacheIvyPattern = (String) attributes.get(\"ivyPattern\");\n        if (cacheIvyPattern != null) {\n            ivy.setDefaultCacheIvyPattern(cacheIvyPattern);\n        }\n        String cacheArtPattern = (String) attributes.get(\"artifactPattern\");\n        if (cacheArtPattern != null) {\n            ivy.setDefaultCacheArtifactPattern(cacheArtPattern);\n        }\n        String repositoryDir = (String) attributes.get(\"repositoryCacheDir\");\n        if (repositoryDir != null) {\n            ivy.setDefaultRepositoryCacheBasedir(repositoryDir); \n        }\n    }\n\n    private void settingsStarted(String qName, Map attributes) {\n        if (\"conf\".equals(qName) && !deprecatedMessagePrinted) {\n            Message.deprecated(\n                \"'conf' is deprecated, use 'settings' instead (\" + settings + \")\");\n        }\n        String cache = (String) attributes.get(\"defaultCache\");\n        if (cache != null) {\n            Message.deprecated(\"'defaultCache' is deprecated, \"\n                + \"use 'caches[@defaultCacheDir]' instead (\" + settings + \")\");\n            ivy.setDefaultCache(Checks.checkAbsolute(cache, \"defaultCache\"));\n        }\n        String defaultBranch = (String) attributes.get(\"defaultBranch\");\n        if (defaultBranch != null) {\n            ivy.setDefaultBranch(defaultBranch);\n        }\n        String defaultResolveMode = (String) attributes.get(\"defaultResolveMode\");\n        if (defaultResolveMode != null) {\n            ivy.setDefaultResolveMode(defaultResolveMode);\n        }\n        String validate = (String) attributes.get(\"validate\");\n        if (validate != null) {\n            ivy.setValidate(Boolean.valueOf(validate).booleanValue());\n        }\n        String up2d = (String) attributes.get(\"checkUpToDate\");\n        if (up2d != null) {\n            Message.deprecated(\"'checkUpToDate' is deprecated, \"\n                + \"use 'caches[@checkUpToDate]' instead (\" + settings + \")\");\n            ivy.setCheckUpToDate(Boolean.valueOf(up2d).booleanValue());\n        }\n        String useRemoteConfig = (String) attributes.get(\"useRemoteConfig\");\n        if (useRemoteConfig != null) {\n            ivy.setUseRemoteConfig(Boolean.valueOf(useRemoteConfig)\n                    .booleanValue());\n        }\n        String cacheIvyPattern = (String) attributes.get(\"cacheIvyPattern\");\n        if (cacheIvyPattern != null) {\n            Message.deprecated(\n                \"'cacheIvyPattern' is deprecated, use 'caches[@ivyPattern]' instead\"\n                + \" (\" + settings + \")\");\n            ivy.setDefaultCacheIvyPattern(cacheIvyPattern);\n        }\n        String cacheArtPattern = (String) attributes.get(\"cacheArtifactPattern\");\n        if (cacheArtPattern != null) {\n            Message.deprecated(\n                \"'cacheArtifactPattern' is deprecated, \"\n                + \"use 'caches[@artifactPattern]' instead (\" + settings + \")\");\n            ivy.setDefaultCacheArtifactPattern(cacheArtPattern);\n        }\n\n        // we do not set following defaults here since no instances has been registered yet\n        defaultResolver = (String) attributes.get(\"defaultResolver\");\n        defaultCM = (String) attributes.get(\"defaultConflictManager\");\n        defaultLatest = (String) attributes.get(\"defaultLatestStrategy\");\n        defaultCircular = (String) attributes.get(\"circularDependencyStrategy\");\n        \n        String requestMethod = (String) attributes.get(\"httpRequestMethod\");\n        if (\"head\".equalsIgnoreCase(requestMethod)) {\n            URLHandlerRegistry.getHttp().setRequestMethod(URLHandler.REQUEST_METHOD_HEAD);\n        } else if (\"get\".equalsIgnoreCase(requestMethod)) {\n            URLHandlerRegistry.getHttp().setRequestMethod(URLHandler.REQUEST_METHOD_GET);\n        } else if ((requestMethod != null) && (requestMethod.trim().length() > 0)) {\n            throw new IllegalArgumentException(\"Invalid httpRequestMethod specified, must be \" \n                + \"one of {'HEAD', 'GET'}\");\n        }\n    }\n\n    private void includeStarted(Map attributes) throws IOException, ParseException {\n        final IvyVariableContainer variables = (IvyVariableContainer) ivy.getVariableContainer();\n        ivy.setVariableContainer(new IvyVariableContainerWrapper(variables));\n        try {\n            String propFilePath = (String) attributes.get(\"file\");\n            URL settingsURL = null;\n            if (propFilePath == null) {\n                propFilePath = (String) attributes.get(\"url\");\n                if (propFilePath == null) {\n                    throw new IllegalArgumentException(\n                        \"bad include tag: specify file or url to include\");\n                } else {\n                    try {\n                        //First asume that it is an absolute URL\n                        settingsURL = new URL(propFilePath);\n                    } catch (MalformedURLException e) {\n                        //If that fail, it may be because it is a relative one.\n                        settingsURL = new URL(this.settings , propFilePath);\n                    }\n                    Message.verbose(\"including url: \" + settingsURL.toString());\n                    ivy.setSettingsVariables(settingsURL);\n                }\n            } else {\n                settingsURL = urlFromFileAttribute(propFilePath);\n                Message.verbose(\"including file: \" + settingsURL);\n                if (\"file\".equals(settingsURL.getProtocol())) {\n                    ivy.setSettingsVariables(\n                        Checks.checkAbsolute(settingsURL.getPath(), \n                        \"settings include path\"));\n                } else {\n                    ivy.setSettingsVariables(settingsURL);\n                }\n            }\n            new XmlSettingsParser(ivy).parse(configurator, settingsURL);\n        } finally {\n            ivy.setVariableContainer(variables);\n        }\n    }\n\n    /** Provide an URL referencing the given filepath.  If filePath is an absolute path, then\n     * the resulting URL point to a local file, otherwise, the filepath is evaluated relatively\n     * to the URL of the current settings file (can be local file or remote URL).\n     */\n    private URL urlFromFileAttribute(String filePath) throws MalformedURLException {\n        try {\n            return new URL(filePath);\n        } catch (MalformedURLException e) {\n            // ignore, we'll try to create a correct URL below\n        }\n        \n        File incFile = new File(filePath);\n        if (incFile.isAbsolute()) {\n            return incFile.toURI().toURL();\n        } else if (\"file\".equals(this.settings.getProtocol())) {\n            try {\n                File settingsFile = new File(new URI(this.settings.toExternalForm()));\n                return new File(settingsFile.getParentFile(), filePath).toURI().toURL();\n            } catch (URISyntaxException e) {\n                return new URL(this.settings , filePath);\n            }\n        } else {\n            return new URL(this.settings , filePath);\n        }\n    }\n\n    private void propertiesStarted(Map attributes) throws IOException {\n        String propFilePath = (String) attributes.get(\"file\");\n        String environmentPrefix = (String) attributes.get(\"environment\");\n        if (propFilePath != null) {\n            String overrideStr = (String) attributes.get(\"override\");\n            boolean override = overrideStr == null ? true \n                                                   : Boolean.valueOf(overrideStr).booleanValue();\n            Message.verbose(\"loading properties: \" + propFilePath);\n            URL fileUrl = urlFromFileAttribute(propFilePath);\n            ivy.loadProperties(fileUrl, override);\n        } else if (environmentPrefix != null) {\n            ivy.getVariableContainer().setEnvironmentPrefix(environmentPrefix);\n        } else {\n            throw new IllegalArgumentException(\n                \"Didn't find a 'file' or 'environment' attribute \" \n                + \"on the 'properties' element\");\n        }\n    }\n\n    private void propertyStarted(Map attributes) {\n        String name = (String) attributes.get(\"name\");\n        String value = (String) attributes.get(\"value\");\n        String override = (String) attributes.get(\"override\");\n        if (name == null) {\n            throw new IllegalArgumentException(\"missing attribute name on property tag\");\n        }\n        if (value == null) {\n            throw new IllegalArgumentException(\"missing attribute value on property tag\");\n        }\n        ivy.setVariable(name, value, override == null ? true : Boolean.valueOf(override)\n                .booleanValue());\n    }\n\n    private void typedefStarted(Map attributes) {\n        String name = (String) attributes.get(\"name\");\n        String className = (String) attributes.get(\"classname\");\n        Class clazz = ivy.typeDef(name, className);\n        configurator.typeDef(name, clazz);\n    }\n\n    private void classpathStarted(Map attributes) throws MalformedURLException {\n        String urlStr = (String) attributes.get(\"url\");\n        URL url = null;\n        if (urlStr == null) {\n            String file = (String) attributes.get(\"file\");\n            if (file == null) {\n                throw new IllegalArgumentException(\n                        \"either url or file should be given for classpath element\");\n            } else {\n                url = Checks.checkAbsolute(file, \"classpath\").toURI().toURL();\n            }\n        } else {\n            url = new URL(urlStr);\n        }\n        ivy.addClasspathURL(url);\n    }\n\n    private void inConfiguratorStarted(String qName, Map attributes) {\n        if (\"macrodef\".equals(currentConfiguratorTag)\n                && configurator.getTypeDef(qName) != null) {\n            String name = (String) attributes.get(\"name\");\n            if (name == null) {\n                attributes.put(\"name\", \"@{name}\");\n            } else if (name.indexOf(\"@{name}\") != -1) {\n                attributes.put(\"name\", name);\n            } else {\n                attributes.put(\"name\", \"@{name}-\" + name);\n            }\n        }\n        if (attributes.get(\"ref\") != null) {\n            if (attributes.size() != 1) {\n                throw new IllegalArgumentException(\n                        \"ref attribute should be the only one ! found \" + attributes.size()\n                                + \" in \" + qName);\n            }\n            String name = (String) attributes.get(\"ref\");\n            Object child = null;\n            if (\"resolvers\".equals(currentConfiguratorTag) || \"resolver\".equals(qName)) {\n                child = ivy.getResolver(name);\n                if (child == null) {\n                    throw new IllegalArgumentException(\"unknown resolver \" + name\n                            + \": resolver should be defined before being referenced\");\n                }\n            } else if (\"latest-strategies\".equals(currentConfiguratorTag)) {\n                child = ivy.getLatestStrategy(name);\n                if (child == null) {\n                    throw new IllegalArgumentException(\"unknown latest strategy \" + name\n                           + \": latest strategy should be defined before being referenced\");\n                }\n            } else if (\"conflict-managers\".equals(currentConfiguratorTag)) {\n                child = ivy.getConflictManager(name);\n                if (child == null) {\n                    throw new IllegalArgumentException(\n                         \"unknown conflict manager \" + name\n                         + \": conflict manager should be defined before being referenced\");\n                }\n            }\n            if (child == null) {\n                throw new IllegalArgumentException(\"bad reference \" + name);\n            }\n            configurator.addChild(qName, child);\n        } else {\n            configurator.startCreateChild(qName);\n            for (Iterator iter = attributes.keySet().iterator(); iter.hasNext();) {\n                String attName = (String) iter.next();\n                configurator.setAttribute(attName, (String) attributes\n                        .get(attName));\n            }\n        }\n    }\n\n    public void endElement(String uri, String localName, String qName) throws SAXException {\n        if (configurator.getCurrent() != null) {\n            if (configuratorTags.contains(qName) && configurator.getDepth() == 1) {\n                configurator.clear();\n                currentConfiguratorTag = null;\n            } else if (\"macrodef\".equals(qName) && configurator.getDepth() == 1) {\n                configurator.endMacroDef();\n                currentConfiguratorTag = null;\n            } else {\n                configurator.endCreateChild();\n            }\n        }\n    }\n\n    public void endDocument() throws SAXException {\n        if (defaultResolver != null) {\n            ivy.setDefaultResolver(ivy.substitute(defaultResolver));\n        }\n        if (defaultCM != null) {\n            ConflictManager conflictManager = ivy.getConflictManager(ivy.substitute(defaultCM));\n            if (conflictManager == null) {\n                throw new IllegalArgumentException(\"unknown conflict manager \"\n                        + ivy.substitute(defaultCM));\n            }\n            ivy.setDefaultConflictManager(conflictManager);\n        }\n        if (defaultLatest != null) {\n            LatestStrategy latestStrategy = ivy.getLatestStrategy(ivy.substitute(defaultLatest));\n            if (latestStrategy == null) {\n                throw new IllegalArgumentException(\"unknown latest strategy \"\n                        + ivy.substitute(defaultLatest));\n            }\n            ivy.setDefaultLatestStrategy(latestStrategy);\n        }\n        if (defaultCacheManager != null) {\n            RepositoryCacheManager cache = ivy.getRepositoryCacheManager(\n                                                ivy.substitute(defaultCacheManager));\n            if (cache == null) {\n                throw new IllegalArgumentException(\"unknown cache manager \"\n                        + ivy.substitute(defaultCacheManager));\n            }\n            ivy.setDefaultRepositoryCacheManager(cache);\n        }\n        if (defaultCircular != null) {\n            CircularDependencyStrategy strategy = ivy.getCircularDependencyStrategy(ivy\n                    .substitute(defaultCircular));\n            if (strategy == null) {\n                throw new IllegalArgumentException(\"unknown circular dependency strategy \"\n                        + ivy.substitute(defaultCircular));\n            }\n            ivy.setCircularDependencyStrategy(strategy);\n        }\n        if (defaultLock != null) {\n            LockStrategy strategy = ivy.getLockStrategy(ivy.substitute(defaultLock));\n            if (strategy == null) {\n                throw new IllegalArgumentException(\"unknown lock strategy \"\n                        + ivy.substitute(defaultLock));\n            }\n            ivy.setDefaultLockStrategy(strategy);", "functions": [{"function_name": "parse", "code": "    public void parse(URL settings) throws ParseException, IOException {\n        configurator = new Configurator();\n        configurator.setFileResolver(new FileResolver() {\n            public File resolveFile(String path, String filename) {\n                return Checks.checkAbsolute(path, filename);\n            }\n        });\n        // put every type definition from ivy to configurator\n        Map typeDefs = ivy.getTypeDefs();\n        for (Iterator iter = typeDefs.keySet().iterator(); iter.hasNext();) {\n            String name = (String) iter.next();\n            configurator.typeDef(name, (Class) typeDefs.get(name));\n        }\n\n        doParse(settings);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [1, 8], [2, 9], [6, 10], [7, 11], [1, 12], [1, 13], [10, 14], [13, 15], [14, 16], [14, 17], [14, 18], [12, 19], [8, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 1], [9, 2], [10, 6], [11, 7], [12, 1], [13, 1], [14, 10], [15, 13], [16, 14], [17, 14], [18, 14], [19, 12], [20, 8], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "doParse", "code": "    private void doParse(URL settingsUrl) throws IOException, ParseException {\n        this.settings = settingsUrl;\n        InputStream stream = null;\n        try {\n            stream = URLHandlerRegistry.getDefault().openStream(settingsUrl);\n            InputSource inSrc = new InputSource(stream);\n            inSrc.setSystemId(settingsUrl.toExternalForm());\n            SAXParserFactory.newInstance().newSAXParser().parse(settingsUrl.toExternalForm(), this);\n            ivy.validate();\n        } catch (IOException e) {\n            throw e;\n        } catch (Exception e) {\n            ParseException pe = new ParseException(\"failed to load settings from \" + settingsUrl\n                    + \": \" + e.getMessage(), 0);\n            pe.initCause(e);\n            throw pe;\n        } finally {\n            if (stream != null) {\n                try {\n                    stream.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "IF", "CATCH", "CATCH", "VAR_DECL", "ASSIGN", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [0, 8], [4, 9], [5, 10], [5, 11], [6, 12], [1, 13], [1, 14], [1, 15], [1, 16], [2, 17], [4, 18], [9, 19], [5, 20], [14, 21], [14, 22], [15, 23], [7, 24], [16, 25], [18, 26], [11, 27], [21, 28], [25, 29], [18, 30], [27, 31], [27, 32], [32, 33], [32, 34], [34, 35], [34, 36], [36, 37], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 0], [9, 4], [10, 5], [11, 5], [12, 6], [13, 1], [14, 1], [15, 1], [16, 1], [17, 2], [18, 4], [19, 9], [20, 5], [21, 14], [22, 14], [23, 15], [24, 7], [25, 16], [26, 18], [27, 11], [28, 21], [29, 25], [30, 18], [31, 27], [32, 27], [33, 32], [34, 32], [35, 34], [36, 34], [37, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "parse", "code": "    private void parse(Configurator configurator, URL configuration) throws IOException,\n            ParseException {\n        this.configurator = configurator;\n        doParse(configuration);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startElement", "code": "    public void startElement(String uri, String localName, String qName, Attributes att)\n            throws SAXException {\n        // we first copy attributes in a Map to be able to modify them\n        Map attributes = new HashMap();\n        for (int i = 0; i < att.getLength(); i++) {\n            attributes.put(att.getQName(i), ivy.substitute(att.getValue(i)));\n        }\n\n        try {\n            if (\"ivyconf\".equals(qName)) {\n                deprecatedMessagePrinted = true;\n                Message.deprecated(\"'ivyconf' element is deprecated, use 'ivysettings' instead (\"\n                        + settings + \")\");\n            }\n            if (configurator.getCurrent() != null) {\n                inConfiguratorStarted(qName, attributes);\n            } else if (\"classpath\".equals(qName)) {\n                classpathStarted(attributes);\n            } else if (\"typedef\".equals(qName)) {\n                typedefStarted(attributes);\n            } else if (\"property\".equals(qName)) {\n                propertyStarted(attributes);\n            } else if (\"properties\".equals(qName)) {\n                propertiesStarted(attributes);\n            } else if (\"include\".equals(qName)) {\n                includeStarted(attributes);\n            } else if (\"settings\".equals(qName) || \"conf\".equals(qName)) {\n                settingsStarted(qName, attributes);\n            } else if (\"caches\".equals(qName)) {\n                cachesStarted(qName, attributes);\n            } else if (\"version-matchers\".equals(qName)) {\n                versionMatchersStarted(qName, attributes);\n            } else if (\"statuses\".equals(qName)) {\n                statusesStarted(qName, attributes);\n            } else if (configuratorTags.contains(qName)) {\n                anyConfiguratorStarted(qName);\n            } else if (\"macrodef\".equals(qName)) {\n                macrodefStarted(qName, attributes);\n            } else if (\"module\".equals(qName)) {\n                moduleStarted(attributes);\n            } else if (\"credentials\".equals(qName)) {\n                credentialsStarted(attributes);\n            }\n        } catch (ParseException ex) {\n            SAXException sax = new SAXException(\"problem in config file: \" + ex.getMessage(), ex);\n            sax.initCause(ex);\n            throw sax;\n        } catch (IOException ex) {\n            SAXException sax = new SAXException(\"io problem while parsing config file: \" \n                        + ex.getMessage(), ex);\n            sax.initCause(ex);\n            throw sax;", "ast_nodes": ["FUNC_DECL", "TRY", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "IF", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [8, 13], [8, 14], [9, 15], [9, 16], [10, 17], [10, 18], [11, 19], [12, 20], [3, 21], [8, 22], [9, 23], [17, 24], [17, 25], [18, 26], [18, 27], [19, 28], [2, 29], [2, 30], [14, 31], [16, 32], [24, 33], [24, 34], [25, 35], [10, 36], [11, 37], [11, 38], [29, 39], [29, 40], [31, 41], [32, 42], [33, 43], [33, 44], [34, 45], [17, 46], [37, 47], [38, 48], [39, 49], [41, 50], [41, 51], [42, 52], [42, 53], [43, 54], [43, 55], [44, 56], [24, 57], [47, 58], [47, 59], [54, 60], [54, 61], [55, 62], [33, 63], [59, 64], [60, 65], [60, 66], [61, 67], [43, 68], [65, 69], [65, 70], [66, 71], [66, 72], [54, 73], [69, 74], [69, 75], [70, 76], [60, 77], [71, 78], [72, 79], [74, 80], [74, 81], [75, 82], [65, 83], [80, 84], [80, 85], [81, 86], [69, 87], [84, 88], [84, 89], [74, 90], [88, 91], [88, 92], [89, 93], [80, 94], [91, 95], [92, 96], [84, 97], [95, 98], [88, 99], [91, 100], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 8], [14, 8], [15, 9], [16, 9], [17, 10], [18, 10], [19, 11], [20, 12], [21, 3], [22, 8], [23, 9], [24, 17], [25, 17], [26, 18], [27, 18], [28, 19], [29, 2], [30, 2], [31, 14], [32, 16], [33, 24], [34, 24], [35, 25], [36, 10], [37, 11], [38, 11], [39, 29], [40, 29], [41, 31], [42, 32], [43, 33], [44, 33], [45, 34], [46, 17], [47, 37], [48, 38], [49, 39], [50, 41], [51, 41], [52, 42], [53, 42], [54, 43], [55, 43], [56, 44], [57, 24], [58, 47], [59, 47], [60, 54], [61, 54], [62, 55], [63, 33], [64, 59], [65, 60], [66, 60], [67, 61], [68, 43], [69, 65], [70, 65], [71, 66], [72, 66], [73, 54], [74, 69], [75, 69], [76, 70], [77, 60], [78, 71], [79, 72], [80, 74], [81, 74], [82, 75], [83, 65], [84, 80], [85, 80], [86, 81], [87, 69], [88, 84], [89, 84], [90, 74], [91, 88], [92, 88], [93, 89], [94, 80], [95, 91], [96, 92], [97, 84], [98, 95], [99, 88], [100, 91], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100]]}, {"function_name": "credentialsStarted", "code": "    private void credentialsStarted(Map attributes) {\n        String realm = (String) attributes.remove(\"realm\");\n        String host = (String) attributes.remove(\"host\");\n        String userName = (String) attributes.remove(\"username\");\n        String passwd = (String) attributes.remove(\"passwd\");\n        CredentialsStore.INSTANCE.addCredentials(realm, host, userName, passwd);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [7, 11], [8, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 7], [12, 8], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "moduleStarted", "code": "    private void moduleStarted(Map attributes) {\n        attributes.put(IvyPatternHelper.MODULE_KEY, attributes.remove(\"name\"));\n        String resolver = (String) attributes.remove(\"resolver\");\n        String branch = (String) attributes.remove(\"branch\");\n        String cm = (String) attributes.remove(\"conflict-manager\");\n        String resolveMode = (String) attributes.remove(\"resolveMode\");\n        String matcher = (String) attributes.remove(\"matcher\");\n        matcher = matcher == null ? PatternMatcher.EXACT_OR_REGEXP : matcher;\n        ivy.addModuleConfiguration(attributes, ivy\n                .getMatcher(matcher), resolver, branch, cm, resolveMode);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [8, 11], [9, 12], [11, 13], [1, 14], [2, 15], [3, 16], [4, 17], [5, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [18, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 8], [12, 9], [13, 11], [14, 1], [15, 2], [16, 3], [17, 4], [18, 5], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "macrodefStarted", "code": "    private void macrodefStarted(String qName, Map attributes) {\n        currentConfiguratorTag = qName;\n        Configurator.MacroDef macrodef = configurator.startMacroDef((String) attributes\n                .get(\"name\"));\n        macrodef.addAttribute(\"name\", null);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [4, 7], [1, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 4], [8, 1], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "anyConfiguratorStarted", "code": "    private void anyConfiguratorStarted(String qName) {\n        currentConfiguratorTag = qName;\n        configurator.setRoot(ivy);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "statusesStarted", "code": "    private void statusesStarted(String qName, Map attributes) {\n        currentConfiguratorTag = qName;\n        StatusManager m = new StatusManager();\n        String defaultStatus = (String) attributes.get(\"default\");\n        if (defaultStatus != null) {\n            m.setDefaultStatus(defaultStatus);\n        }\n        ivy.setStatusManager(m);\n        configurator.setRoot(m);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [8, 10], [3, 11], [1, 12], [2, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 8], [11, 3], [12, 1], [13, 2], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "versionMatchersStarted", "code": "    private void versionMatchersStarted(String qName, Map attributes) {\n        anyConfiguratorStarted(qName);\n        if (\"true\".equals((String) attributes.get(\"usedefaults\"))) {\n            ivy.configureDefaultVersionMatcher();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [1, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 1], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "cachesStarted", "code": "    private void cachesStarted(String qName, Map attributes) {\n        anyConfiguratorStarted(qName);\n        defaultLock = (String) attributes.get(\"lockStrategy\");\n        defaultCacheManager = (String) attributes.get(\"default\");\n        \n        String cache = (String) attributes.get(\"defaultCacheDir\");\n        if (cache != null) {\n            ivy.setDefaultCache(Checks.checkAbsolute(cache, \"defaultCacheDir\"));\n        }\n        String up2d = (String) attributes.get(\"checkUpToDate\");\n        if (up2d != null) {\n            ivy.setCheckUpToDate(Boolean.valueOf(up2d).booleanValue());\n        }\n        String resolutionDir = (String) attributes.get(\"resolutionCacheDir\");\n        if (resolutionDir != null) {\n            ivy.setDefaultResolutionCacheBasedir(resolutionDir);\n        }\n        String useOrigin = (String) attributes.get(\"useOrigin\");\n        if (useOrigin != null) {\n            ivy.setDefaultUseOrigin(Boolean.valueOf(useOrigin).booleanValue());\n        }\n        String cacheIvyPattern = (String) attributes.get(\"ivyPattern\");\n        if (cacheIvyPattern != null) {\n            ivy.setDefaultCacheIvyPattern(cacheIvyPattern);\n        }\n        String cacheArtPattern = (String) attributes.get(\"artifactPattern\");\n        if (cacheArtPattern != null) {\n            ivy.setDefaultCacheArtifactPattern(cacheArtPattern);\n        }\n        String repositoryDir = (String) attributes.get(\"repositoryCacheDir\");\n        if (repositoryDir != null) {\n            ivy.setDefaultRepositoryCacheBasedir(repositoryDir); ", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [3, 18], [5, 19], [7, 20], [9, 21], [11, 22], [13, 23], [0, 24], [0, 25], [0, 26], [17, 27], [18, 28], [19, 29], [20, 30], [21, 31], [22, 32], [23, 33], [1, 34], [2, 35], [3, 36], [4, 37], [5, 38], [6, 39], [7, 40], [8, 41], [9, 42], [10, 43], [11, 44], [12, 45], [13, 46], [14, 47], [24, 48], [25, 49], [35, 50], [37, 51], [39, 52], [40, 53], [41, 54], [43, 55], [44, 56], [45, 57], [46, 58], [47, 59], [48, 60], [49, 61], [53, 62], [56, 63], [58, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 3], [19, 5], [20, 7], [21, 9], [22, 11], [23, 13], [24, 0], [25, 0], [26, 0], [27, 17], [28, 18], [29, 19], [30, 20], [31, 21], [32, 22], [33, 23], [34, 1], [35, 2], [36, 3], [37, 4], [38, 5], [39, 6], [40, 7], [41, 8], [42, 9], [43, 10], [44, 11], [45, 12], [46, 13], [47, 14], [48, 24], [49, 25], [50, 35], [51, 37], [52, 39], [53, 40], [54, 41], [55, 43], [56, 44], [57, 45], [58, 46], [59, 47], [60, 48], [61, 49], [62, 53], [63, 56], [64, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "settingsStarted", "code": "    private void settingsStarted(String qName, Map attributes) {\n        if (\"conf\".equals(qName) && !deprecatedMessagePrinted) {\n            Message.deprecated(\n                \"'conf' is deprecated, use 'settings' instead (\" + settings + \")\");\n        }\n        String cache = (String) attributes.get(\"defaultCache\");\n        if (cache != null) {\n            Message.deprecated(\"'defaultCache' is deprecated, \"\n                + \"use 'caches[@defaultCacheDir]' instead (\" + settings + \")\");\n            ivy.setDefaultCache(Checks.checkAbsolute(cache, \"defaultCache\"));\n        }\n        String defaultBranch = (String) attributes.get(\"defaultBranch\");\n        if (defaultBranch != null) {\n            ivy.setDefaultBranch(defaultBranch);\n        }\n        String defaultResolveMode = (String) attributes.get(\"defaultResolveMode\");\n        if (defaultResolveMode != null) {\n            ivy.setDefaultResolveMode(defaultResolveMode);\n        }\n        String validate = (String) attributes.get(\"validate\");\n        if (validate != null) {\n            ivy.setValidate(Boolean.valueOf(validate).booleanValue());\n        }\n        String up2d = (String) attributes.get(\"checkUpToDate\");\n        if (up2d != null) {\n            Message.deprecated(\"'checkUpToDate' is deprecated, \"\n                + \"use 'caches[@checkUpToDate]' instead (\" + settings + \")\");\n            ivy.setCheckUpToDate(Boolean.valueOf(up2d).booleanValue());\n        }\n        String useRemoteConfig = (String) attributes.get(\"useRemoteConfig\");\n        if (useRemoteConfig != null) {\n            ivy.setUseRemoteConfig(Boolean.valueOf(useRemoteConfig)\n                    .booleanValue());\n        }\n        String cacheIvyPattern = (String) attributes.get(\"cacheIvyPattern\");\n        if (cacheIvyPattern != null) {\n            Message.deprecated(\n                \"'cacheIvyPattern' is deprecated, use 'caches[@ivyPattern]' instead\"\n                + \" (\" + settings + \")\");\n            ivy.setDefaultCacheIvyPattern(cacheIvyPattern);\n        }\n        String cacheArtPattern = (String) attributes.get(\"cacheArtifactPattern\");\n        if (cacheArtPattern != null) {\n            Message.deprecated(\n                \"'cacheArtifactPattern' is deprecated, \"\n                + \"use 'caches[@artifactPattern]' instead (\" + settings + \")\");\n            ivy.setDefaultCacheArtifactPattern(cacheArtPattern);\n        }\n\n        // we do not set following defaults here since no instances has been registered yet\n        defaultResolver = (String) attributes.get(\"defaultResolver\");\n        defaultCM = (String) attributes.get(\"defaultConflictManager\");\n        defaultLatest = (String) attributes.get(\"defaultLatestStrategy\");\n        defaultCircular = (String) attributes.get(\"circularDependencyStrategy\");\n        \n        String requestMethod = (String) attributes.get(\"httpRequestMethod\");\n        if (\"head\".equalsIgnoreCase(requestMethod)) {\n            URLHandlerRegistry.getHttp().setRequestMethod(URLHandler.REQUEST_METHOD_HEAD);\n        } else if (\"get\".equalsIgnoreCase(requestMethod)) {\n            URLHandlerRegistry.getHttp().setRequestMethod(URLHandler.REQUEST_METHOD_GET);\n        } else if ((requestMethod != null) && (requestMethod.trim().length() > 0)) {\n            throw new IllegalArgumentException(\"Invalid httpRequestMethod specified, must be \" \n                + \"one of {'HEAD', 'GET'}\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [1, 22], [1, 23], [0, 24], [0, 25], [0, 26], [0, 27], [3, 28], [5, 29], [7, 30], [9, 31], [11, 32], [13, 33], [15, 34], [17, 35], [19, 36], [22, 37], [22, 38], [23, 39], [28, 40], [29, 41], [30, 42], [31, 43], [32, 44], [33, 45], [34, 46], [35, 47], [36, 48], [37, 49], [38, 50], [1, 51], [2, 52], [24, 53], [25, 54], [26, 55], [27, 56], [3, 57], [3, 58], [4, 59], [5, 60], [5, 61], [6, 62], [7, 63], [8, 64], [9, 65], [9, 66], [10, 67], [11, 68], [12, 69], [13, 70], [14, 71], [15, 72], [16, 73], [17, 74], [17, 75], [18, 76], [19, 77], [48, 78], [37, 79], [49, 80], [49, 81], [22, 82], [51, 83], [52, 84], [53, 85], [54, 86], [55, 87], [56, 88], [58, 89], [59, 90], [61, 91], [62, 92], [63, 93], [64, 94], [65, 95], [66, 96], [67, 97], [68, 98], [69, 99], [71, 100], [73, 101], [74, 102], [75, 103], [76, 104], [77, 105], [79, 106], [80, 107], [80, 108], [81, 109], [82, 110], [89, 111], [89, 112], [91, 113], [91, 114], [93, 115], [95, 116], [96, 117], [96, 118], [98, 119], [102, 120], [103, 121], [103, 122], [105, 123], [105, 124], [106, 125], [108, 126], [112, 127], [114, 128], [118, 129], [122, 130], [124, 131], [125, 132], [125, 133], [127, 134], [127, 135], [128, 136], [128, 137], [129, 138], [129, 139], [130, 140], [130, 141], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 1], [23, 1], [24, 0], [25, 0], [26, 0], [27, 0], [28, 3], [29, 5], [30, 7], [31, 9], [32, 11], [33, 13], [34, 15], [35, 17], [36, 19], [37, 22], [38, 22], [39, 23], [40, 28], [41, 29], [42, 30], [43, 31], [44, 32], [45, 33], [46, 34], [47, 35], [48, 36], [49, 37], [50, 38], [51, 1], [52, 2], [53, 24], [54, 25], [55, 26], [56, 27], [57, 3], [58, 3], [59, 4], [60, 5], [61, 5], [62, 6], [63, 7], [64, 8], [65, 9], [66, 9], [67, 10], [68, 11], [69, 12], [70, 13], [71, 14], [72, 15], [73, 16], [74, 17], [75, 17], [76, 18], [77, 19], [78, 48], [79, 37], [80, 49], [81, 49], [82, 22], [83, 51], [84, 52], [85, 53], [86, 54], [87, 55], [88, 56], [89, 58], [90, 59], [91, 61], [92, 62], [93, 63], [94, 64], [95, 65], [96, 66], [97, 67], [98, 68], [99, 69], [100, 71], [101, 73], [102, 74], [103, 75], [104, 76], [105, 77], [106, 79], [107, 80], [108, 80], [109, 81], [110, 82], [111, 89], [112, 89], [113, 91], [114, 91], [115, 93], [116, 95], [117, 96], [118, 96], [119, 98], [120, 102], [121, 103], [122, 103], [123, 105], [124, 105], [125, 106], [126, 108], [127, 112], [128, 114], [129, 118], [130, 122], [131, 124], [132, 125], [133, 125], [134, 127], [135, 127], [136, 128], [137, 128], [138, 129], [139, 129], [140, 130], [141, 130], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141]]}, {"function_name": "includeStarted", "code": "    private void includeStarted(Map attributes) throws IOException, ParseException {\n        final IvyVariableContainer variables = (IvyVariableContainer) ivy.getVariableContainer();\n        ivy.setVariableContainer(new IvyVariableContainerWrapper(variables));\n        try {\n            String propFilePath = (String) attributes.get(\"file\");\n            URL settingsURL = null;\n            if (propFilePath == null) {\n                propFilePath = (String) attributes.get(\"url\");\n                if (propFilePath == null) {\n                    throw new IllegalArgumentException(\n                        \"bad include tag: specify file or url to include\");\n                } else {\n                    try {\n                        //First asume that it is an absolute URL\n                        settingsURL = new URL(propFilePath);\n                    } catch (MalformedURLException e) {\n                        //If that fail, it may be because it is a relative one.\n                        settingsURL = new URL(this.settings , propFilePath);\n                    }\n                    Message.verbose(\"including url: \" + settingsURL.toString());\n                    ivy.setSettingsVariables(settingsURL);\n                }\n            } else {\n                settingsURL = urlFromFileAttribute(propFilePath);\n                Message.verbose(\"including file: \" + settingsURL);\n                if (\"file\".equals(settingsURL.getProtocol())) {\n                    ivy.setSettingsVariables(\n                        Checks.checkAbsolute(settingsURL.getPath(), \n                        \"settings include path\"));\n                } else {\n                    ivy.setSettingsVariables(settingsURL);\n                }\n            }\n            new XmlSettingsParser(ivy).parse(configurator, settingsURL);\n        } finally {\n            ivy.setVariableContainer(variables);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "TRY", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [1, 8], [1, 9], [4, 10], [7, 11], [9, 12], [4, 13], [4, 14], [10, 15], [5, 16], [2, 17], [13, 18], [4, 19], [4, 20], [14, 21], [4, 22], [6, 23], [18, 24], [19, 25], [20, 26], [14, 27], [14, 28], [21, 29], [23, 30], [13, 31], [13, 32], [24, 33], [25, 34], [14, 35], [14, 36], [27, 37], [28, 38], [22, 39], [32, 40], [36, 41], [27, 42], [38, 43], [39, 44], [40, 45], [40, 46], [41, 47], [41, 48], [37, 49], [42, 50], [49, 51], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 1], [9, 1], [10, 4], [11, 7], [12, 9], [13, 4], [14, 4], [15, 10], [16, 5], [17, 2], [18, 13], [19, 4], [20, 4], [21, 14], [22, 4], [23, 6], [24, 18], [25, 19], [26, 20], [27, 14], [28, 14], [29, 21], [30, 23], [31, 13], [32, 13], [33, 24], [34, 25], [35, 14], [36, 14], [37, 27], [38, 28], [39, 22], [40, 32], [41, 36], [42, 27], [43, 38], [44, 39], [45, 40], [46, 40], [47, 41], [48, 41], [49, 37], [50, 42], [51, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "urlFromFileAttribute", "code": "    private URL urlFromFileAttribute(String filePath) throws MalformedURLException {\n        try {\n            return new URL(filePath);\n        } catch (MalformedURLException e) {\n            // ignore, we'll try to create a correct URL below\n        }\n        \n        File incFile = new File(filePath);\n        if (incFile.isAbsolute()) {\n            return incFile.toURI().toURL();\n        } else if (\"file\".equals(this.settings.getProtocol())) {\n            try {\n                File settingsFile = new File(new URI(this.settings.toExternalForm()));\n                return new File(settingsFile.getParentFile(), filePath).toURI().toURL();\n            } catch (URISyntaxException e) {\n                return new URL(this.settings , filePath);\n            }\n        } else {\n            return new URL(this.settings , filePath);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "TRY", "PARAM", "IF", "CALL", "CATCH", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "RETURN", "TRY", "CALL", "CALL", "CALL", "CATCH", "RETURN", "VAR_DECL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [3, 7], [3, 8], [5, 9], [1, 10], [2, 11], [8, 12], [5, 13], [5, 14], [9, 15], [10, 16], [13, 17], [14, 18], [14, 19], [14, 20], [16, 21], [18, 22], [19, 23], [15, 24], [22, 25], [23, 26], [23, 27], [23, 28], [20, 29], [29, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 3], [8, 3], [9, 5], [10, 1], [11, 2], [12, 8], [13, 5], [14, 5], [15, 9], [16, 10], [17, 13], [18, 14], [19, 14], [20, 14], [21, 16], [22, 18], [23, 19], [24, 15], [25, 22], [26, 23], [27, 23], [28, 23], [29, 20], [30, 29], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "propertiesStarted", "code": "    private void propertiesStarted(Map attributes) throws IOException {\n        String propFilePath = (String) attributes.get(\"file\");\n        String environmentPrefix = (String) attributes.get(\"environment\");\n        if (propFilePath != null) {\n            String overrideStr = (String) attributes.get(\"override\");\n            boolean override = overrideStr == null ? true \n                                                   : Boolean.valueOf(overrideStr).booleanValue();\n            Message.verbose(\"loading properties: \" + propFilePath);\n            URL fileUrl = urlFromFileAttribute(propFilePath);\n            ivy.loadProperties(fileUrl, override);\n        } else if (environmentPrefix != null) {\n            ivy.getVariableContainer().setEnvironmentPrefix(environmentPrefix);\n        } else {\n            throw new IllegalArgumentException(\n                \"Didn't find a 'file' or 'environment' attribute \" \n                + \"on the 'properties' element\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [1, 9], [1, 10], [6, 11], [5, 12], [7, 13], [1, 14], [1, 15], [2, 16], [3, 17], [12, 18], [5, 19], [8, 20], [15, 21], [9, 22], [16, 23], [17, 24], [18, 25], [19, 26], [21, 27], [22, 28], [22, 29], [22, 30], [10, 31], [25, 32], [25, 33], [28, 34], [30, 35], [31, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 1], [10, 1], [11, 6], [12, 5], [13, 7], [14, 1], [15, 1], [16, 2], [17, 3], [18, 12], [19, 5], [20, 8], [21, 15], [22, 9], [23, 16], [24, 17], [25, 18], [26, 19], [27, 21], [28, 22], [29, 22], [30, 22], [31, 10], [32, 25], [33, 25], [34, 28], [35, 30], [36, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "propertyStarted", "code": "    private void propertyStarted(Map attributes) {\n        String name = (String) attributes.get(\"name\");\n        String value = (String) attributes.get(\"value\");\n        String override = (String) attributes.get(\"override\");\n        if (name == null) {\n            throw new IllegalArgumentException(\"missing attribute name on property tag\");\n        }\n        if (value == null) {\n            throw new IllegalArgumentException(\"missing attribute value on property tag\");\n        }\n        ivy.setVariable(name, value, override == null ? true : Boolean.valueOf(override)\n                .booleanValue());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [7, 10], [1, 11], [8, 12], [2, 13], [9, 14], [10, 15], [10, 16], [10, 17], [11, 18], [13, 19], [3, 20], [4, 21], [5, 22], [15, 23], [17, 24], [18, 25], [19, 26], [20, 27], [21, 28], [22, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 7], [11, 1], [12, 8], [13, 2], [14, 9], [15, 10], [16, 10], [17, 10], [18, 11], [19, 13], [20, 3], [21, 4], [22, 5], [23, 15], [24, 17], [25, 18], [26, 19], [27, 20], [28, 21], [29, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "typedefStarted", "code": "    private void typedefStarted(Map attributes) {\n        String name = (String) attributes.get(\"name\");\n        String className = (String) attributes.get(\"classname\");\n        Class clazz = ivy.typeDef(name, className);\n        configurator.typeDef(name, clazz);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "classpathStarted", "code": "    private void classpathStarted(Map attributes) throws MalformedURLException {\n        String urlStr = (String) attributes.get(\"url\");\n        URL url = null;\n        if (urlStr == null) {\n            String file = (String) attributes.get(\"file\");\n            if (file == null) {\n                throw new IllegalArgumentException(\n                        \"either url or file should be given for classpath element\");\n            } else {\n                url = Checks.checkAbsolute(file, \"classpath\").toURI().toURL();\n            }\n        } else {\n            url = new URL(urlStr);\n        }\n        ivy.addClasspathURL(url);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [2, 10], [1, 11], [7, 12], [3, 13], [11, 14], [7, 15], [12, 16], [13, 17], [7, 18], [15, 19], [8, 20], [18, 21], [19, 22], [20, 23], [21, 24], [21, 25], [21, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 2], [11, 1], [12, 7], [13, 3], [14, 11], [15, 7], [16, 12], [17, 13], [18, 7], [19, 15], [20, 8], [21, 18], [22, 19], [23, 20], [24, 21], [25, 21], [26, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "inConfiguratorStarted", "code": "    private void inConfiguratorStarted(String qName, Map attributes) {\n        if (\"macrodef\".equals(currentConfiguratorTag)\n                && configurator.getTypeDef(qName) != null) {\n            String name = (String) attributes.get(\"name\");\n            if (name == null) {\n                attributes.put(\"name\", \"@{name}\");\n            } else if (name.indexOf(\"@{name}\") != -1) {\n                attributes.put(\"name\", name);\n            } else {\n                attributes.put(\"name\", \"@{name}-\" + name);\n            }\n        }\n        if (attributes.get(\"ref\") != null) {\n            if (attributes.size() != 1) {\n                throw new IllegalArgumentException(\n                        \"ref attribute should be the only one ! found \" + attributes.size()\n                                + \" in \" + qName);\n            }\n            String name = (String) attributes.get(\"ref\");\n            Object child = null;\n            if (\"resolvers\".equals(currentConfiguratorTag) || \"resolver\".equals(qName)) {\n                child = ivy.getResolver(name);\n                if (child == null) {\n                    throw new IllegalArgumentException(\"unknown resolver \" + name\n                            + \": resolver should be defined before being referenced\");\n                }\n            } else if (\"latest-strategies\".equals(currentConfiguratorTag)) {\n                child = ivy.getLatestStrategy(name);\n                if (child == null) {\n                    throw new IllegalArgumentException(\"unknown latest strategy \" + name\n                           + \": latest strategy should be defined before being referenced\");\n                }\n            } else if (\"conflict-managers\".equals(currentConfiguratorTag)) {\n                child = ivy.getConflictManager(name);\n                if (child == null) {\n                    throw new IllegalArgumentException(\n                         \"unknown conflict manager \" + name\n                         + \": conflict manager should be defined before being referenced\");\n                }\n            }\n            if (child == null) {\n                throw new IllegalArgumentException(\"bad reference \" + name);\n            }\n            configurator.addChild(qName, child);\n        } else {\n            configurator.startCreateChild(qName);\n            for (Iterator iter = attributes.keySet().iterator(); iter.hasNext();) {\n                String attName = (String) iter.next();\n                configurator.setAttribute(attName, (String) attributes\n                        .get(attName));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LOOP", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [5, 14], [2, 15], [2, 16], [6, 17], [6, 18], [7, 19], [1, 20], [1, 21], [8, 22], [9, 23], [9, 24], [12, 25], [14, 26], [15, 27], [15, 28], [17, 29], [17, 30], [18, 31], [7, 32], [8, 33], [22, 34], [23, 35], [23, 36], [9, 37], [24, 38], [24, 39], [10, 40], [12, 41], [25, 42], [25, 43], [27, 44], [28, 45], [7, 46], [7, 47], [33, 48], [35, 49], [23, 50], [36, 51], [37, 52], [9, 53], [38, 54], [39, 55], [11, 56], [41, 57], [44, 58], [44, 59], [15, 60], [16, 61], [47, 62], [48, 63], [35, 64], [49, 65], [50, 66], [23, 67], [37, 68], [52, 69], [53, 70], [56, 71], [57, 72], [27, 73], [27, 74], [59, 75], [60, 76], [60, 77], [61, 78], [46, 79], [32, 80], [63, 81], [64, 82], [35, 83], [50, 84], [66, 85], [67, 86], [68, 87], [72, 88], [73, 89], [73, 90], [74, 91], [64, 92], [82, 93], [83, 94], [84, 95], [87, 96], [88, 97], [88, 98], [89, 99], [92, 100], [95, 101], [96, 102], [96, 103], [98, 104], [98, 105], [100, 106], [101, 107], [101, 108], [103, 109], [106, 110], [106, 111], [108, 112], [111, 113], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 5], [15, 2], [16, 2], [17, 6], [18, 6], [19, 7], [20, 1], [21, 1], [22, 8], [23, 9], [24, 9], [25, 12], [26, 14], [27, 15], [28, 15], [29, 17], [30, 17], [31, 18], [32, 7], [33, 8], [34, 22], [35, 23], [36, 23], [37, 9], [38, 24], [39, 24], [40, 10], [41, 12], [42, 25], [43, 25], [44, 27], [45, 28], [46, 7], [47, 7], [48, 33], [49, 35], [50, 23], [51, 36], [52, 37], [53, 9], [54, 38], [55, 39], [56, 11], [57, 41], [58, 44], [59, 44], [60, 15], [61, 16], [62, 47], [63, 48], [64, 35], [65, 49], [66, 50], [67, 23], [68, 37], [69, 52], [70, 53], [71, 56], [72, 57], [73, 27], [74, 27], [75, 59], [76, 60], [77, 60], [78, 61], [79, 46], [80, 32], [81, 63], [82, 64], [83, 35], [84, 50], [85, 66], [86, 67], [87, 68], [88, 72], [89, 73], [90, 73], [91, 74], [92, 64], [93, 82], [94, 83], [95, 84], [96, 87], [97, 88], [98, 88], [99, 89], [100, 92], [101, 95], [102, 96], [103, 96], [104, 98], [105, 98], [106, 100], [107, 101], [108, 101], [109, 103], [110, 106], [111, 106], [112, 108], [113, 111], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113]]}, {"function_name": "endElement", "code": "    public void endElement(String uri, String localName, String qName) throws SAXException {\n        if (configurator.getCurrent() != null) {\n            if (configuratorTags.contains(qName) && configurator.getDepth() == 1) {\n                configurator.clear();\n                currentConfiguratorTag = null;\n            } else if (\"macrodef\".equals(qName) && configurator.getDepth() == 1) {\n                configurator.endMacroDef();\n                currentConfiguratorTag = null;\n            } else {\n                configurator.endCreateChild();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [6, 9], [6, 10], [9, 11], [10, 12], [10, 13], [11, 14], [11, 15], [6, 16], [6, 17], [12, 18], [12, 19], [9, 20], [9, 21], [9, 22], [14, 23], [14, 24], [15, 25], [16, 26], [21, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 6], [10, 6], [11, 9], [12, 10], [13, 10], [14, 11], [15, 11], [16, 6], [17, 6], [18, 12], [19, 12], [20, 9], [21, 9], [22, 9], [23, 14], [24, 14], [25, 15], [26, 16], [27, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "endDocument", "code": "    public void endDocument() throws SAXException {\n        if (defaultResolver != null) {\n            ivy.setDefaultResolver(ivy.substitute(defaultResolver));\n        }\n        if (defaultCM != null) {\n            ConflictManager conflictManager = ivy.getConflictManager(ivy.substitute(defaultCM));\n            if (conflictManager == null) {\n                throw new IllegalArgumentException(\"unknown conflict manager \"\n                        + ivy.substitute(defaultCM));\n            }\n            ivy.setDefaultConflictManager(conflictManager);\n        }\n        if (defaultLatest != null) {\n            LatestStrategy latestStrategy = ivy.getLatestStrategy(ivy.substitute(defaultLatest));\n            if (latestStrategy == null) {\n                throw new IllegalArgumentException(\"unknown latest strategy \"\n                        + ivy.substitute(defaultLatest));\n            }\n            ivy.setDefaultLatestStrategy(latestStrategy);\n        }\n        if (defaultCacheManager != null) {\n            RepositoryCacheManager cache = ivy.getRepositoryCacheManager(\n                                                ivy.substitute(defaultCacheManager));\n            if (cache == null) {\n                throw new IllegalArgumentException(\"unknown cache manager \"\n                        + ivy.substitute(defaultCacheManager));\n            }\n            ivy.setDefaultRepositoryCacheManager(cache);\n        }\n        if (defaultCircular != null) {\n            CircularDependencyStrategy strategy = ivy.getCircularDependencyStrategy(ivy\n                    .substitute(defaultCircular));\n            if (strategy == null) {\n                throw new IllegalArgumentException(\"unknown circular dependency strategy \"\n                        + ivy.substitute(defaultCircular));\n            }\n            ivy.setCircularDependencyStrategy(strategy);\n        }\n        if (defaultLock != null) {\n            LockStrategy strategy = ivy.getLockStrategy(ivy.substitute(defaultLock));\n            if (strategy == null) {\n                throw new IllegalArgumentException(\"unknown lock strategy \"\n                        + ivy.substitute(defaultLock));\n            }\n            ivy.setDefaultLockStrategy(strategy);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 13], [1, 14], [7, 15], [2, 16], [2, 17], [8, 18], [3, 19], [3, 20], [9, 21], [4, 22], [4, 23], [10, 24], [5, 25], [5, 26], [11, 27], [12, 28], [1, 29], [13, 30], [2, 31], [16, 32], [3, 33], [19, 34], [4, 35], [22, 36], [5, 37], [25, 38], [6, 39], [13, 40], [30, 41], [14, 42], [16, 43], [32, 44], [17, 45], [19, 46], [34, 47], [20, 48], [22, 49], [36, 50], [23, 51], [25, 52], [38, 53], [26, 54], [39, 55], [40, 56], [42, 57], [43, 58], [45, 59], [46, 60], [48, 61], [49, 62], [51, 63], [52, 64], [54, 65], [56, 66], [58, 67], [60, 68], [62, 69], [64, 70], [66, 71], [66, 72], [67, 73], [67, 74], [68, 75], [68, 76], [69, 77], [69, 78], [70, 79], [70, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [13, 1], [14, 1], [15, 7], [16, 2], [17, 2], [18, 8], [19, 3], [20, 3], [21, 9], [22, 4], [23, 4], [24, 10], [25, 5], [26, 5], [27, 11], [28, 12], [29, 1], [30, 13], [31, 2], [32, 16], [33, 3], [34, 19], [35, 4], [36, 22], [37, 5], [38, 25], [39, 6], [40, 13], [41, 30], [42, 14], [43, 16], [44, 32], [45, 17], [46, 19], [47, 34], [48, 20], [49, 22], [50, 36], [51, 23], [52, 25], [53, 38], [54, 26], [55, 39], [56, 40], [57, 42], [58, 43], [59, 45], [60, 46], [61, 48], [62, 49], [63, 51], [64, 52], [65, 54], [66, 56], [67, 58], [68, 60], [69, 62], [70, 64], [71, 66], [72, 66], [73, 67], [74, 67], [75, 68], [76, 68], [77, 69], [78, 69], [79, 70], [80, 70], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "XmlSettingsParser", "code": "    public XmlSettingsParser(IvySettings ivy) {\n        this.ivy = ivy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ivy-2.0-3506", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/module/descriptor/MDArtifact.java", "language": "java", "name": "org.apache.ivy.core.module.descriptor.MDArtifact", "code": "public class MDArtifact extends AbstractArtifact {\n\n    public static Artifact newIvyArtifact(ModuleDescriptor md) {\n        return new MDArtifact(md, \"ivy\", \"ivy\", \"xml\", true);\n    }\n\n    private ModuleDescriptor md;\n\n    private String name;\n\n    private String type;\n\n    private String ext;\n\n    private List confs = new ArrayList();\n\n    private Map extraAttributes = null;\n\n    private URL url;\n    \n    private boolean isMetadata = false;\n\n    public MDArtifact(ModuleDescriptor md, String name, String type, String ext) {\n        this(md, name, type, ext, null, null);\n    }\n\n    public MDArtifact(ModuleDescriptor md, \n            String name, String type, String ext, boolean isMetadata) {\n        this(md, name, type, ext, null, null);\n        this.isMetadata = isMetadata;\n    }\n\n    public MDArtifact(ModuleDescriptor md, String name, String type, String ext, URL url,\n            Map extraAttributes) {\n        if (md == null) {\n            throw new NullPointerException(\"null module descriptor not allowed\");\n        }\n        if (name == null) {\n            throw new NullPointerException(\"null name not allowed\");\n        }\n        if (type == null) {\n            throw new NullPointerException(\"null type not allowed\");\n        }\n        if (ext == null) {\n            throw new NullPointerException(\"null ext not allowed\");\n        }\n        this.md = md;\n        this.name = name;\n        this.type = type;\n        this.ext = ext;\n        this.url = url;\n        this.extraAttributes = extraAttributes;\n    }\n\n    public ModuleRevisionId getModuleRevisionId() {\n        return md.getResolvedModuleRevisionId();\n    }\n\n    public Date getPublicationDate() {\n        return md.getResolvedPublicationDate();\n    }\n\n    public ArtifactRevisionId getId() {\n        // do not cache the result because the resolvedModuleRevisionId can change!\n        return ArtifactRevisionId.newInstance(md.getResolvedModuleRevisionId(), name, type,\n                ext, extraAttributes);\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public String getType() {\n        return type;\n    }\n\n    public String getExt() {\n        return ext;\n    }\n\n    public String[] getConfigurations() {\n        return (String[]) confs.toArray(new String[confs.size()]);\n    }\n\n    public void addConfiguration(String conf) {\n        confs.add(conf);\n    }\n\n    public URL getUrl() {\n        return url;\n    }\n\n    public boolean isMetadata() {\n        return isMetadata;", "functions": [{"function_name": "newIvyArtifact", "code": "    public static Artifact newIvyArtifact(ModuleDescriptor md) {\n        return new MDArtifact(md, \"ivy\", \"ivy\", \"xml\", true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [3, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getModuleRevisionId", "code": "    public ModuleRevisionId getModuleRevisionId() {\n        return md.getResolvedModuleRevisionId();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPublicationDate", "code": "    public Date getPublicationDate() {\n        return md.getResolvedPublicationDate();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getId", "code": "    public ArtifactRevisionId getId() {\n        // do not cache the result because the resolvedModuleRevisionId can change!\n        return ArtifactRevisionId.newInstance(md.getResolvedModuleRevisionId(), name, type,\n                ext, extraAttributes);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public String getType() {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExt", "code": "    public String getExt() {\n        return ext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getConfigurations", "code": "    public String[] getConfigurations() {\n        return (String[]) confs.toArray(new String[confs.size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addConfiguration", "code": "    public void addConfiguration(String conf) {\n        confs.add(conf);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUrl", "code": "    public URL getUrl() {\n        return url;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isMetadata", "code": "    public boolean isMetadata() {\n        return isMetadata;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "MDArtifact", "code": "    public MDArtifact(ModuleDescriptor md, String name, String type, String ext) {\n        this(md, name, type, ext, null, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "MDArtifact", "code": "    public MDArtifact(ModuleDescriptor md, \n            String name, String type, String ext, boolean isMetadata) {\n        this(md, name, type, ext, null, null);\n        this.isMetadata = isMetadata;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "MDArtifact", "code": "    public MDArtifact(ModuleDescriptor md, String name, String type, String ext, URL url,\n            Map extraAttributes) {\n        if (md == null) {\n            throw new NullPointerException(\"null module descriptor not allowed\");\n        }\n        if (name == null) {\n            throw new NullPointerException(\"null name not allowed\");\n        }\n        if (type == null) {\n            throw new NullPointerException(\"null type not allowed\");\n        }\n        if (ext == null) {\n            throw new NullPointerException(\"null ext not allowed\");\n        }\n        this.md = md;\n        this.name = name;\n        this.type = type;\n        this.ext = ext;\n        this.url = url;\n        this.extraAttributes = extraAttributes;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [2, 18], [3, 19], [4, 20], [1, 21], [17, 22], [2, 23], [18, 24], [3, 25], [19, 26], [4, 27], [20, 28], [21, 29], [23, 30], [25, 31], [27, 32], [29, 33], [30, 34], [31, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 2], [19, 3], [20, 4], [21, 1], [22, 17], [23, 2], [24, 18], [25, 3], [26, 19], [27, 4], [28, 20], [29, 21], [30, 23], [31, 25], [32, 27], [33, 29], [34, 30], [35, 31], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}], "label": 0}
{"sample_id": "poi-2.5-5948", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/InterfaceHdrRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.InterfaceHdrRecord", "code": "public class InterfaceHdrRecord\n    extends Record\n{\n    public final static short sid = 0xe1;\n\n    /**\n     * suggested (and probably correct) default\n     */\n\n    public final static short CODEPAGE = ( short ) 0x4b0;\n\n    public InterfaceHdrRecord()\n    {\n    }\n\n    /**\n     * Constructs an Codepage record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xe1 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public InterfaceHdrRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs an Codepage record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xe1 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public InterfaceHdrRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A INTERFACEHDR RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_codepage = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set the codepage for the file\n     *\n     * @param cp - the codepage\n     * @see #CODEPAGE\n     */\n\n    public void setCodepage(short cp)\n    {\n        field_1_codepage = cp;\n    }\n\n    /**\n     * get the codepage for the file\n     *\n     * @return the codepage\n     * @see #CODEPAGE\n     */\n\n    public short getCodepage()\n    {\n        return field_1_codepage;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[INTERFACEHDR]\\n\");\n        buffer.append(\"    .codepage        = \")\n            .append(Integer.toHexString(getCodepage())).append(\"\\n\");\n        buffer.append(\"[/INTERFACEHDR]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getCodepage());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A INTERFACEHDR RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_codepage = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setCodepage", "code": "    public void setCodepage(short cp)\n    {\n        field_1_codepage = cp;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCodepage", "code": "    public short getCodepage()\n    {\n        return field_1_codepage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[INTERFACEHDR]\\n\");\n        buffer.append(\"    .codepage        = \")\n            .append(Integer.toHexString(getCodepage())).append(\"\\n\");\n        buffer.append(\"[/INTERFACEHDR]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getCodepage());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "InterfaceHdrRecord", "code": "    public InterfaceHdrRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "InterfaceHdrRecord", "code": "    public InterfaceHdrRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "InterfaceHdrRecord", "code": "    public InterfaceHdrRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.6-2886", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/util/EndpointHelper.java", "language": "java", "name": "org.apache.camel.util.EndpointHelper", "code": "public final class EndpointHelper {\n    private static final transient Log LOG = LogFactory.getLog(EndpointHelper.class);\n\n    private EndpointHelper() {\n    }\n    /**\n     * Creates a {@link PollingConsumer} and polls all pending messages on the endpoint\n     * and invokes the given {@link Processor} to process each {@link Exchange} and then closes\n     * down the consumer and throws any exceptions thrown.\n     *\n     * @param endpoint\n     * @param processor\n     */\n    public static void pollEndpoint(Endpoint endpoint, Processor processor, long timeout) throws Exception {\n        PollingConsumer consumer = endpoint.createPollingConsumer();\n        try {\n            consumer.start();\n\n            while (true) {\n                Exchange exchange = consumer.receive(timeout);\n                if (exchange == null) {\n                    break;\n                } else {\n                    processor.process(exchange);\n                }\n            }\n        } finally {\n            try {\n                consumer.stop();\n            } catch (Exception e) {\n                LOG.warn(\"Failed to stop PollingConsumer: \" + e, e);\n            }\n        }\n    }\n\n    /**\n     * Creates a {@link PollingConsumer} and polls all pending messages on the\n     * endpoint and invokes the given {@link Processor} to process each\n     * {@link Exchange} and then closes down the consumer and throws any\n     * exceptions thrown.\n     *\n     * @param endpoint\n     * @param processor\n     */\n    public static void pollEndpoint(Endpoint endpoint, Processor processor) throws Exception {\n        pollEndpoint(endpoint, processor, 1000L);", "functions": [{"function_name": "pollEndpoint", "code": "    public static void pollEndpoint(Endpoint endpoint, Processor processor, long timeout) throws Exception {\n        PollingConsumer consumer = endpoint.createPollingConsumer();\n        try {\n            consumer.start();\n\n            while (true) {\n                Exchange exchange = consumer.receive(timeout);\n                if (exchange == null) {\n                    break;\n                } else {\n                    processor.process(exchange);\n                }\n            }\n        } finally {\n            try {\n                consumer.stop();\n            } catch (Exception e) {\n                LOG.warn(\"Failed to stop PollingConsumer: \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "TRY", "LOOP", "CATCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [7, 9], [1, 10], [2, 11], [6, 12], [7, 13], [7, 14], [8, 15], [13, 16], [15, 17], [13, 18], [16, 19], [14, 20], [17, 21], [13, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 7], [10, 1], [11, 2], [12, 6], [13, 7], [14, 7], [15, 8], [16, 13], [17, 15], [18, 13], [19, 16], [20, 14], [21, 17], [22, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "pollEndpoint", "code": "    public static void pollEndpoint(Endpoint endpoint, Processor processor) throws Exception {\n        pollEndpoint(endpoint, processor, 1000L);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "EndpointHelper", "code": "    private EndpointHelper() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.4-2497", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/view/XmlGraphGenerator.java", "language": "java", "name": "org.apache.camel.view.XmlGraphGenerator", "code": "public class XmlGraphGenerator extends GraphGeneratorSupport {\n    private boolean addUrl = true;\n\n    public XmlGraphGenerator(String dir) {\n        super(dir, \".xml\");\n    }\n\n    protected void generateFile(PrintWriter writer, Map<String, List<RouteType>> map) {\n        writer.println(\"<?xml version='1.0' encoding='UTF-8'?>\");\n        writer.println(\"<Graph>\");\n        writer.println();\n\n        if (map.size() > 0) {\n            writer.println(\"<Node id='root' name='Camel Routes' description='Collection of Camel Routes' nodeType='root'/>\");\n        }\n        printRoutes(writer, map);\n\n        writer.println();\n        writer.println(\"</Graph>\");\n    }\n\n    protected void printRoutes(PrintWriter writer, Map<String, List<RouteType>> map) {\n        Set<Map.Entry<String, List<RouteType>>> entries = map.entrySet();\n        for (Map.Entry<String, List<RouteType>> entry : entries) {\n            String group = entry.getKey();\n            printRoutes(writer, group, entry.getValue());\n        }\n    }\n\n    protected void printRoutes(PrintWriter writer, String group, List<RouteType> routes) {\n        group = encode(group);\n        if (group != null) {\n            int idx = group.lastIndexOf('.');\n            String name = group;\n            if (idx > 0 && idx < group.length() - 1) {\n                name = group.substring(idx + 1);\n            }\n            writer.println(\"<Node id='\" + group + \"' name='\" + name + \"' description='\" + group + \"' nodeType='group'/>\");\n            writer.println(\"<Edge fromID='root' toID='\" + group + \"'/>\");\n        }\n        for (RouteType route : routes) {\n            List<FromType> inputs = route.getInputs();\n            boolean first = true;\n            for (FromType input : inputs) {\n                NodeData nodeData = getNodeData(input);\n                if (first) {\n                    first = false;\n                    if (group != null) {\n                        writer.println(\"<Edge fromID='\" + group + \"' toID='\" + encode(nodeData.id) + \"'/>\");\n                    }\n                }\n                printRoute(writer, route, nodeData);\n            }\n            writer.println();\n        }\n    }\n\n    protected void printRoute(PrintWriter writer, final RouteType route, NodeData nodeData) {\n        printNode(writer, nodeData);\n\n\n        NodeData from = nodeData;\n        for (ProcessorType output : route.getOutputs()) {\n            NodeData newData = printNode(writer, from, output);\n            from = newData;\n        }\n    }\n\n    protected NodeData printNode(PrintWriter writer, NodeData fromData, ProcessorType node) {\n        if (node instanceof MulticastType) {\n            List<ProcessorType> outputs = node.getOutputs();\n            for (ProcessorType output : outputs) {\n                printNode(writer, fromData, output);\n            }\n            return fromData;\n        }\n        NodeData toData = getNodeData(node);\n\n        printNode(writer, toData);\n\n        if (fromData != null) {\n            writer.print(\"<Edge fromID=\\\"\");\n            writer.print(encode(fromData.id));\n            writer.print(\"\\\" toID=\\\"\");\n            writer.print(encode(toData.id));\n            String association = toData.edgeLabel;\n            if (isNullOrBlank(association)) {\n                writer.print(\"\\\" association=\\\"\");\n                writer.print(encode(association));\n            }\n            writer.println(\"\\\"/>\");\n        }\n\n        List<ProcessorType> outputs = toData.outputs;\n        if (outputs != null) {\n            for (ProcessorType output : outputs) {\n                NodeData newData = printNode(writer, toData, output);\n                if (!isMulticastNode(node)) {\n                    toData = newData;\n                }\n            }\n        }\n        return toData;\n    }\n\n    protected void printNode(PrintWriter writer, NodeData data) {\n        if (!data.nodeWritten) {\n            data.nodeWritten = true;\n\n            writer.println();\n            writer.print(\"<Node id=\\\"\");\n            writer.print(encode(data.id));\n            writer.print(\"\\\" name=\\\"\");\n            String name = data.label;\n            if (isNullOrBlank(name)) {\n                name = data.tooltop;\n            }\n            writer.print(encode(name));\n            writer.print(\"\\\" nodeType=\\\"\");\n            String nodeType = data.image;\n            if (isNullOrBlank(nodeType)) {\n                nodeType = data.shape;\n                if (isNullOrBlank(nodeType)) {\n                    nodeType = \"node\";\n                }\n            }\n            writer.print(encode(nodeType));\n            writer.print(\"\\\" description=\\\"\");\n            writer.print(encode(data.tooltop));\n            if (addUrl) {\n                writer.print(\"\\\" url=\\\"\");\n                writer.print(encode(data.url));\n            }\n            writer.println(\"\\\"/>\");\n        }\n    }\n\n    protected String encode(String text) {\n        if (text == null) {\n            return \"\";\n        }\n        return text.replaceAll(\"\\\"\", \"&quot;\").replaceAll(\"<\", \"&lt;\").\n                replaceAll(\">\", \"&gt;\").replaceAll(\"&\", \"&amp;\");", "functions": [{"function_name": "generateFile", "code": "    protected void generateFile(PrintWriter writer, Map<String, List<RouteType>> map) {\n        writer.println(\"<?xml version='1.0' encoding='UTF-8'?>\");\n        writer.println(\"<Graph>\");\n        writer.println();\n\n        if (map.size() > 0) {\n            writer.println(\"<Node id='root' name='Camel Routes' description='Collection of Camel Routes' nodeType='root'/>\");\n        }\n        printRoutes(writer, map);\n\n        writer.println();\n        writer.println(\"</Graph>\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [4, 11], [7, 12], [7, 13], [9, 14], [10, 15], [1, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 4], [12, 7], [13, 7], [14, 9], [15, 10], [16, 1], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "printRoutes", "code": "    protected void printRoutes(PrintWriter writer, Map<String, List<RouteType>> map) {\n        Set<Map.Entry<String, List<RouteType>>> entries = map.entrySet();\n        for (Map.Entry<String, List<RouteType>> entry : entries) {\n            String group = entry.getKey();\n            printRoutes(writer, group, entry.getValue());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [7, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 7], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "printRoutes", "code": "    protected void printRoutes(PrintWriter writer, String group, List<RouteType> routes) {\n        group = encode(group);\n        if (group != null) {\n            int idx = group.lastIndexOf('.');\n            String name = group;\n            if (idx > 0 && idx < group.length() - 1) {\n                name = group.substring(idx + 1);\n            }\n            writer.println(\"<Node id='\" + group + \"' name='\" + name + \"' description='\" + group + \"' nodeType='group'/>\");\n            writer.println(\"<Edge fromID='root' toID='\" + group + \"'/>\");\n        }\n        for (RouteType route : routes) {\n            List<FromType> inputs = route.getInputs();\n            boolean first = true;\n            for (FromType input : inputs) {\n                NodeData nodeData = getNodeData(input);\n                if (first) {\n                    first = false;\n                    if (group != null) {\n                        writer.println(\"<Edge fromID='\" + group + \"' toID='\" + encode(nodeData.id) + \"'/>\");\n                    }\n                }\n                printRoute(writer, route, nodeData);\n            }\n            writer.println();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [2, 12], [2, 13], [6, 14], [7, 15], [1, 16], [2, 17], [2, 18], [11, 19], [8, 20], [8, 21], [9, 22], [10, 23], [17, 24], [18, 25], [19, 26], [19, 27], [13, 28], [8, 29], [24, 30], [24, 31], [25, 32], [25, 33], [11, 34], [26, 35], [27, 36], [28, 37], [20, 38], [21, 39], [31, 40], [33, 41], [34, 42], [35, 43], [35, 44], [38, 45], [20, 46], [41, 47], [41, 48], [42, 49], [45, 50], [46, 51], [48, 52], [49, 53], [38, 54], [52, 55], [52, 56], [54, 57], [56, 58], [57, 59], [57, 60], [60, 61], [60, 62], [62, 63], [62, 64], [64, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 2], [13, 2], [14, 6], [15, 7], [16, 1], [17, 2], [18, 2], [19, 11], [20, 8], [21, 8], [22, 9], [23, 10], [24, 17], [25, 18], [26, 19], [27, 19], [28, 13], [29, 8], [30, 24], [31, 24], [32, 25], [33, 25], [34, 11], [35, 26], [36, 27], [37, 28], [38, 20], [39, 21], [40, 31], [41, 33], [42, 34], [43, 35], [44, 35], [45, 38], [46, 20], [47, 41], [48, 41], [49, 42], [50, 45], [51, 46], [52, 48], [53, 49], [54, 38], [55, 52], [56, 52], [57, 54], [58, 56], [59, 57], [60, 57], [61, 60], [62, 60], [63, 62], [64, 62], [65, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "printRoute", "code": "    protected void printRoute(PrintWriter writer, final RouteType route, NodeData nodeData) {\n        printNode(writer, nodeData);\n\n\n        NodeData from = nodeData;\n        for (ProcessorType output : route.getOutputs()) {\n            NodeData newData = printNode(writer, from, output);\n            from = newData;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "printNode", "code": "    protected NodeData printNode(PrintWriter writer, NodeData fromData, ProcessorType node) {\n        if (node instanceof MulticastType) {\n            List<ProcessorType> outputs = node.getOutputs();\n            for (ProcessorType output : outputs) {\n                printNode(writer, fromData, output);\n            }\n            return fromData;\n        }\n        NodeData toData = getNodeData(node);\n\n        printNode(writer, toData);\n\n        if (fromData != null) {\n            writer.print(\"<Edge fromID=\\\"\");\n            writer.print(encode(fromData.id));\n            writer.print(\"\\\" toID=\\\"\");\n            writer.print(encode(toData.id));\n            String association = toData.edgeLabel;\n            if (isNullOrBlank(association)) {\n                writer.print(\"\\\" association=\\\"\");\n                writer.print(encode(association));\n            }\n            writer.println(\"\\\"/>\");\n        }\n\n        List<ProcessorType> outputs = toData.outputs;\n        if (outputs != null) {\n            for (ProcessorType output : outputs) {\n                NodeData newData = printNode(writer, toData, output);\n                if (!isMulticastNode(node)) {\n                    toData = newData;\n                }\n            }\n        }\n        return toData;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [4, 11], [0, 12], [6, 13], [2, 14], [10, 15], [4, 16], [4, 17], [11, 18], [5, 19], [6, 20], [6, 21], [6, 22], [4, 23], [16, 24], [4, 25], [4, 26], [4, 27], [4, 28], [14, 29], [14, 30], [23, 31], [25, 32], [26, 33], [27, 34], [28, 35], [22, 36], [29, 37], [16, 38], [16, 39], [21, 40], [30, 41], [38, 42], [39, 43], [29, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 4], [12, 0], [13, 6], [14, 2], [15, 10], [16, 4], [17, 4], [18, 11], [19, 5], [20, 6], [21, 6], [22, 6], [23, 4], [24, 16], [25, 4], [26, 4], [27, 4], [28, 4], [29, 14], [30, 14], [31, 23], [32, 25], [33, 26], [34, 27], [35, 28], [36, 22], [37, 29], [38, 16], [39, 16], [40, 21], [41, 30], [42, 38], [43, 39], [44, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "printNode", "code": "    protected void printNode(PrintWriter writer, NodeData data) {\n        if (!data.nodeWritten) {\n            data.nodeWritten = true;\n\n            writer.println();\n            writer.print(\"<Node id=\\\"\");\n            writer.print(encode(data.id));\n            writer.print(\"\\\" name=\\\"\");\n            String name = data.label;\n            if (isNullOrBlank(name)) {\n                name = data.tooltop;\n            }\n            writer.print(encode(name));\n            writer.print(\"\\\" nodeType=\\\"\");\n            String nodeType = data.image;\n            if (isNullOrBlank(nodeType)) {\n                nodeType = data.shape;\n                if (isNullOrBlank(nodeType)) {\n                    nodeType = \"node\";\n                }\n            }\n            writer.print(encode(nodeType));\n            writer.print(\"\\\" description=\\\"\");\n            writer.print(encode(data.tooltop));\n            if (addUrl) {\n                writer.print(\"\\\" url=\\\"\");\n                writer.print(encode(data.url));\n            }\n            writer.println(\"\\\"/>\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [1, 14], [1, 15], [7, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [9, 22], [10, 23], [11, 24], [12, 25], [5, 26], [14, 27], [15, 28], [17, 29], [18, 30], [19, 31], [21, 32], [4, 33], [4, 34], [26, 35], [5, 36], [7, 37], [33, 38], [34, 39], [26, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 1], [15, 1], [16, 7], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 9], [23, 10], [24, 11], [25, 12], [26, 5], [27, 14], [28, 15], [29, 17], [30, 18], [31, 19], [32, 21], [33, 4], [34, 4], [35, 26], [36, 5], [37, 7], [38, 33], [39, 34], [40, 26], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "encode", "code": "    protected String encode(String text) {\n        if (text == null) {\n            return \"\";\n        }\n        return text.replaceAll(\"\\\"\", \"&quot;\").replaceAll(\"<\", \"&lt;\").\n                replaceAll(\">\", \"&gt;\").replaceAll(\"&\", \"&amp;\");", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [2, 11], [5, 12], [8, 13], [8, 14], [9, 15], [9, 16], [10, 17], [10, 18], [11, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 2], [12, 5], [13, 8], [14, 8], [15, 9], [16, 9], [17, 10], [18, 10], [19, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "XmlGraphGenerator", "code": "    public XmlGraphGenerator(String dir) {\n        super(dir, \".xml\");", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6574", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/transformer/TransformerHandlerImpl.java", "language": "java", "name": "org.apache.xalan.transformer.TransformerHandlerImpl", "code": "public class TransformerHandlerImpl\n        implements EntityResolver, DTDHandler, ContentHandler, ErrorHandler,\n                   LexicalHandler, TransformerHandler, DeclHandler\n{\n  \n  private boolean m_insideParse = false;\n\n\n  /**\n   * Construct a TransformerHandlerImpl.\n   *\n   * @param transformer Non-null reference to the Xalan transformer impl.\n   * @param doFragment True if the result should be a document fragement.\n   * @param baseSystemID  The system ID to use as the base for relative URLs.\n   */\n  public TransformerHandlerImpl(TransformerImpl transformer,\n                                boolean doFragment, String baseSystemID)\n  {\n\n    super();\n\n    m_transformer = transformer;\n    m_baseSystemID = baseSystemID;\n\n    XPathContext xctxt = transformer.getXPathContext();\n    DTM dtm = xctxt.getDTM(null, true, transformer, true, true);\n    \n    m_dtm = dtm;\n    dtm.setDocumentBaseURI(baseSystemID);\n\n    m_contentHandler = dtm.getContentHandler();\n    m_dtdHandler = dtm.getDTDHandler();\n    m_entityResolver = dtm.getEntityResolver();\n    m_errorHandler = dtm.getErrorHandler();\n    m_lexicalHandler = dtm.getLexicalHandler();\n  }\n  \n  /** \n   * Do what needs to be done to shut down the CoRoutine management.\n   */\n  protected void clearCoRoutine()\n  {\n    clearCoRoutine(null);\n  }\n  \n  /** \n   * Do what needs to be done to shut down the CoRoutine management.\n   */\n  protected void clearCoRoutine(SAXException ex)\n  {\n    if(null != ex)\n      m_transformer.setExceptionThrown(ex);\n    \n    if(m_dtm instanceof SAX2DTM)\n    {\n      if(DEBUG)\n        System.err.println(\"In clearCoRoutine...\");\n      try\n      {\n        SAX2DTM sax2dtm = ((SAX2DTM)m_dtm);          \n        if(null != m_contentHandler \n           && m_contentHandler instanceof IncrementalSAXSource_Filter)\n        {\n          IncrementalSAXSource_Filter sp =\n            (IncrementalSAXSource_Filter)m_contentHandler;\n          sp.deliverMoreNodes(false);\n        }\n        \n        sax2dtm.clearCoRoutine(true);\n        m_contentHandler = null;\n        m_dtdHandler = null;\n        m_entityResolver = null;\n        m_errorHandler = null;\n        m_lexicalHandler = null;\n      }\n      catch(Throwable throwable)\n      {\n        throwable.printStackTrace();\n      }\n      \n      if(DEBUG)\n        System.err.println(\"...exiting clearCoRoutine\");\n    }\n  }\n  \n\n  /**\n   * Enables the user of the TransformerHandler to set the\n   * to set the Result for the transformation.\n   *\n   * @param result A Result instance, should not be null.\n   *\n   * @throws IllegalArgumentException if result is invalid for some reason.\n   */\n  public void setResult(Result result) throws IllegalArgumentException\n  {\n\n    if (null == result)\n\n    try\n    {\n      ContentHandler handler =\n        m_transformer.createResultContentHandler(result);\n\n      m_transformer.setContentHandler(handler);\n    }\n    catch (javax.xml.transform.TransformerException te)\n    {\n    }\n\n    m_result = result;\n  }\n\n  /**\n   * Set the base ID (URI or system ID) from where relative\n   * URLs will be resolved.\n   * @param systemID Base URI for the source tree.\n   */\n  public void setSystemId(String systemID)\n  {\n    m_baseSystemID = systemID;\n    m_dtm.setDocumentBaseURI(systemID);\n  }\n\n  /**\n   * Get the base ID (URI or system ID) from where relative\n   * URLs will be resolved.\n   * @return The systemID that was set with {@link #setSystemId}.\n   */\n  public String getSystemId()\n  {\n    return m_baseSystemID;\n  }\n\n  /**\n   * Get the Transformer associated with this handler, which\n   * is needed in order to set parameters and output properties.\n   *\n   * @return The Transformer associated with this handler\n   */\n  public Transformer getTransformer()\n  {\n    return m_transformer;\n  }\n\n\n  /**\n   * Filter an external entity resolution.\n   *\n   * @param publicId The entity's public identifier, or null.\n   * @param systemId The entity's system identifier.\n   * @return A new InputSource or null for the default.\n   *\n   * @throws IOException\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @throws java.io.IOException The client may throw an\n   *            I/O-related exception while obtaining the\n   *            new InputSource.\n   * @see org.xml.sax.EntityResolver#resolveEntity\n   */\n  public InputSource resolveEntity(String publicId, String systemId)\n          throws SAXException, IOException\n  {\n\n    if (m_entityResolver != null)\n    {\n      return m_entityResolver.resolveEntity(publicId, systemId);\n    }\n    else\n    {\n      return null;\n    }\n  }\n\n\n  /**\n   * Filter a notation declaration event.\n   *\n   * @param name The notation name.\n   * @param publicId The notation's public identifier, or null.\n   * @param systemId The notation's system identifier, or null.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.DTDHandler#notationDecl\n   */\n  public void notationDecl(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n    if (m_dtdHandler != null)\n    {\n      m_dtdHandler.notationDecl(name, publicId, systemId);\n    }\n  }\n\n  /**\n   * Filter an unparsed entity declaration event.\n   *\n   * @param name The entity name.\n   * @param publicId The entity's public identifier, or null.\n   * @param systemId The entity's system identifier, or null.\n   * @param notationName The name of the associated notation.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void unparsedEntityDecl(\n          String name, String publicId, String systemId, String notationName)\n            throws SAXException\n  {\n\n    if (m_dtdHandler != null)\n    {\n      m_dtdHandler.unparsedEntityDecl(name, publicId, systemId, notationName);\n    }\n  }\n\n\n  /**\n   * Filter a new document locator event.\n   *\n   * @param locator The document locator.\n   * @see org.xml.sax.ContentHandler#setDocumentLocator\n   */\n  public void setDocumentLocator(Locator locator)\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#setDocumentLocator: \"\n                         + locator.getSystemId());\n\n    this.m_locator = locator;\n    \n    if(null == m_baseSystemID)\n    {\n      setSystemId(locator.getSystemId());\n    }\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.setDocumentLocator(locator);\n    }\n  }\n\n  /**\n   * Filter a start document event.\n   *\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ContentHandler#startDocument\n   */\n  public void startDocument() throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startDocument\");\n      \n    m_insideParse = true;\n\n\n    if (m_contentHandler != null)\n    {\n      if(DTMManager.getIncremental())\n      {\n        m_transformer.setSourceTreeDocForThread(m_dtm.getDocument());\n            \n        int cpriority = Thread.currentThread().getPriority();\n    \n        m_transformer.runTransformThread( cpriority );\n      }\n\n      m_contentHandler.startDocument();\n   }\n        \n\n  }\n\n  /**\n   * Filter an end document event.\n   *\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ContentHandler#endDocument\n   */\n  public void endDocument() throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endDocument\");\n\n    m_insideParse = false;\n    \n    if (m_contentHandler != null)\n    {\n      m_contentHandler.endDocument();\n    }\n    \n    if(DTMManager.getIncremental())\n    {\n      m_transformer.waitTransformThread();\n    }\n    else\n    {\n      m_transformer.setSourceTreeDocForThread(m_dtm.getDocument());\n      m_transformer.run();\n    }\n   /* Thread transformThread = m_transformer.getTransformThread();\n\n    if (null != transformThread)\n    {\n      try\n      {\n\n        transformThread.join();\n\n        if (!m_transformer.hasTransformThreadErrorCatcher())\n        {\n          Exception e = m_transformer.getExceptionThrown();\n\n          if (null != e)\n            throw new org.xml.sax.SAXException(e);\n        }\n\n        m_transformer.setTransformThread(null);\n      }\n      catch (InterruptedException ie){}\n    }*/\n  }\n\n  /**\n   * Filter a start Namespace prefix mapping event.\n   *\n   * @param prefix The Namespace prefix.\n   * @param uri The Namespace URI.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ContentHandler#startPrefixMapping\n   */\n  public void startPrefixMapping(String prefix, String uri)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startPrefixMapping: \"\n                         + prefix + \", \" + uri);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.startPrefixMapping(prefix, uri);\n    }\n  }\n\n  /**\n   * Filter an end Namespace prefix mapping event.\n   *\n   * @param prefix The Namespace prefix.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ContentHandler#endPrefixMapping\n   */\n  public void endPrefixMapping(String prefix) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endPrefixMapping: \"\n                         + prefix);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.endPrefixMapping(prefix);\n    }\n  }\n\n  /**\n   * Filter a start element event.\n   *\n   * @param uri The element's Namespace URI, or the empty string.\n   * @param localName The element's local name, or the empty string.\n   * @param qName The element's qualified (prefixed) name, or the empty\n   *        string.\n   * @param atts The element's attributes.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ContentHandler#startElement\n   */\n  public void startElement(\n          String uri, String localName, String qName, Attributes atts)\n            throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startElement: \" + qName);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.startElement(uri, localName, qName, atts);\n    }\n  }\n\n  /**\n   * Filter an end element event.\n   *\n   * @param uri The element's Namespace URI, or the empty string.\n   * @param localName The element's local name, or the empty string.\n   * @param qName The element's qualified (prefixed) name, or the empty\n   *        string.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ContentHandler#endElement\n   */\n  public void endElement(String uri, String localName, String qName)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endElement: \" + qName);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.endElement(uri, localName, qName);\n    }\n  }\n\n  /**\n   * Filter a character data event.\n   *\n   * @param ch An array of characters.\n   * @param start The starting position in the array.\n   * @param length The number of characters to use from the array.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ContentHandler#characters\n   */\n  public void characters(char ch[], int start, int length) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#characters: \" + start + \", \"\n                         + length);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.characters(ch, start, length);\n    }\n  }\n\n  /**\n   * Filter an ignorable whitespace event.\n   *\n   * @param ch An array of characters.\n   * @param start The starting position in the array.\n   * @param length The number of characters to use from the array.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ContentHandler#ignorableWhitespace\n   */\n  public void ignorableWhitespace(char ch[], int start, int length)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#ignorableWhitespace: \"\n                         + start + \", \" + length);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.ignorableWhitespace(ch, start, length);\n    }\n  }\n\n  /**\n   * Filter a processing instruction event.\n   *\n   * @param target The processing instruction target.\n   * @param data The text following the target.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   */\n  public void processingInstruction(String target, String data)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#processingInstruction: \"\n                         + target + \", \" + data);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.processingInstruction(target, data);\n    }\n  }\n\n  /**\n   * Filter a skipped entity event.\n   *\n   * @param name The name of the skipped entity.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ContentHandler#skippedEntity\n   */\n  public void skippedEntity(String name) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#skippedEntity: \" + name);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.skippedEntity(name);\n    }\n  }\n\n\n  /**\n   * Filter a warning event.\n   *\n   * @param e The nwarning as an exception.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ErrorHandler#warning\n   */\n  public void warning(SAXParseException e) throws SAXException\n  {\n    javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();\n    if(errorListener instanceof ErrorHandler)\n    {\n      ((ErrorHandler)errorListener).warning(e);\n    }\n    else\n    {\n      try\n      {\n        errorListener.warning(new javax.xml.transform.TransformerException(e));\n      }\n      catch(javax.xml.transform.TransformerException te)\n      {\n        throw e;\n      }\n    }\n  }\n\n  /**\n   * Filter an error event.\n   *\n   * @param e The error as an exception.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ErrorHandler#error\n   */\n  public void error(SAXParseException e) throws SAXException\n  {\n\n    javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();\n    if(errorListener instanceof ErrorHandler)\n    {\n      ((ErrorHandler)errorListener).error(e);\n      if(null != m_errorHandler){}\n    }\n    else\n    {\n      try\n      {\n        errorListener.error(new javax.xml.transform.TransformerException(e));\n        if(null != m_errorHandler){}\n      }\n      catch(javax.xml.transform.TransformerException te)\n      {\n        throw e;\n      }\n    }\n  }\n\n  /**\n   * Filter a fatal error event.\n   *\n   * @param e The error as an exception.\n   * @throws SAXException The client may throw\n   *            an exception during processing.\n   * @see org.xml.sax.ErrorHandler#fatalError\n   */\n  public void fatalError(SAXParseException e) throws SAXException\n  {\n    if(null != m_errorHandler)\n    {\n      try\n      {\n        m_errorHandler.fatalError(e);\n      }\n      catch(SAXParseException se)\n      {\n      }\n    }\n\n    javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();\n    \n    if(errorListener instanceof ErrorHandler)\n    {\n      ((ErrorHandler)errorListener).fatalError(e);\n      if(null != m_errorHandler){}\n    }\n    else\n    {\n      try\n      {\n        errorListener.fatalError(new javax.xml.transform.TransformerException(e));\n        if(null != m_errorHandler){}\n      }\n      catch(javax.xml.transform.TransformerException te)\n      {\n        throw e;\n      }\n    }\n  }\n\n\n  /**\n   * Report the start of DTD declarations, if any.\n   *\n   * <p>Any declarations are assumed to be in the internal subset\n   * unless otherwise indicated by a {@link #startEntity startEntity}\n   * event.</p>\n   *\n   * <p>Note that the start/endDTD events will appear within\n   * the start/endDocument events from ContentHandler and\n   * before the first startElement event.</p>\n   *\n   * @param name The document type name.\n   * @param publicId The declared public identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @param systemId The declared system identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @throws SAXException The application may raise an\n   *            exception.\n   * @see #endDTD\n   * @see #startEntity\n   */\n  public void startDTD(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startDTD: \" + name + \", \"\n                         + publicId + \", \" + systemId);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startDTD(name, publicId, systemId);\n    }\n  }\n\n  /**\n   * Report the end of DTD declarations.\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #startDTD\n   */\n  public void endDTD() throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endDTD\");\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endDTD();\n    }\n  }\n\n  /**\n   * Report the beginning of an entity in content.\n   *\n   * <p><strong>NOTE:</entity> entity references in attribute\n   * values -- and the start and end of the document entity --\n   * are never reported.</p>\n   *\n   * <p>The start and end of the external DTD subset are reported\n   * using the pseudo-name \"[dtd]\".  All other events must be\n   * properly nested within start/end entity events.</p>\n   *\n   * <p>Note that skipped entities will be reported through the\n   * {@link org.xml.sax.ContentHandler#skippedEntity skippedEntity}\n   * event, which is part of the ContentHandler interface.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @throws SAXException The application may raise an exception.\n   * @see #endEntity\n   * @see org.xml.sax.ext.DeclHandler#internalEntityDecl\n   * @see org.xml.sax.ext.DeclHandler#externalEntityDecl\n   */\n  public void startEntity(String name) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startEntity: \" + name);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startEntity(name);\n    }\n  }\n\n  /**\n   * Report the end of an entity.\n   *\n   * @param name The name of the entity that is ending.\n   * @throws SAXException The application may raise an exception.\n   * @see #startEntity\n   */\n  public void endEntity(String name) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endEntity: \" + name);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endEntity(name);\n    }\n  }\n\n  /**\n   * Report the start of a CDATA section.\n   *\n   * <p>The contents of the CDATA section will be reported through\n   * the regular {@link org.xml.sax.ContentHandler#characters\n   * characters} event.</p>\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #endCDATA\n   */\n  public void startCDATA() throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startCDATA\");\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startCDATA();\n    }\n  }\n\n  /**\n   * Report the end of a CDATA section.\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #startCDATA\n   */\n  public void endCDATA() throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endCDATA\");\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endCDATA();\n    }\n  }\n\n  /**\n   * Report an XML comment anywhere in the document.\n   *\n   * <p>This callback will be used for comments inside or outside the\n   * document element, including comments in the external DTD\n   * subset (if read).</p>\n   *\n   * @param ch An array holding the characters in the comment.\n   * @param start The starting position in the array.\n   * @param length The number of characters to use from the array.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void comment(char ch[], int start, int length) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#comment: \" + start + \", \"\n                         + length);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.comment(ch, start, length);\n    }\n  }\n\n\n  /**\n   * Report an element type declaration.\n   *\n   * <p>The content model will consist of the string \"EMPTY\", the\n   * string \"ANY\", or a parenthesised group, optionally followed\n   * by an occurrence indicator.  The model will be normalized so\n   * that all whitespace is removed,and will include the enclosing\n   * parentheses.</p>\n   *\n   * @param name The element type name.\n   * @param model The content model as a normalized string.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void elementDecl(String name, String model) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#elementDecl: \" + name + \", \"\n                         + model);\n\n    if (null != m_declHandler)\n    {\n      m_declHandler.elementDecl(name, model);\n    }\n  }\n\n  /**\n   * Report an attribute type declaration.\n   *\n   * <p>Only the effective (first) declaration for an attribute will\n   * be reported.  The type will be one of the strings \"CDATA\",\n   * \"ID\", \"IDREF\", \"IDREFS\", \"NMTOKEN\", \"NMTOKENS\", \"ENTITY\",\n   * \"ENTITIES\", or \"NOTATION\", or a parenthesized token group with\n   * the separator \"|\" and all whitespace removed.</p>\n   *\n   * @param eName The name of the associated element.\n   * @param aName The name of the attribute.\n   * @param type A string representing the attribute type.\n   * @param valueDefault A string representing the attribute default\n   *        (\"#IMPLIED\", \"#REQUIRED\", or \"#FIXED\") or null if\n   *        none of these applies.\n   * @param value A string representing the attribute's default value,\n   *        or null if there is none.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void attributeDecl(\n          String eName, String aName, String type, String valueDefault, String value)\n            throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#attributeDecl: \" + eName\n                         + \", \" + aName + \", etc...\");\n\n    if (null != m_declHandler)\n    {\n      m_declHandler.attributeDecl(eName, aName, type, valueDefault, value);\n    }\n  }\n\n  /**\n   * Report an internal entity declaration.\n   *\n   * <p>Only the effective (first) declaration for each entity\n   * will be reported.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @param value The replacement text of the entity.\n   * @throws SAXException The application may raise an exception.\n   * @see #externalEntityDecl\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void internalEntityDecl(String name, String value)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#internalEntityDecl: \" + name\n                         + \", \" + value);\n\n    if (null != m_declHandler)\n    {\n      m_declHandler.internalEntityDecl(name, value);\n    }\n  }\n\n  /**\n   * Report a parsed external entity declaration.\n   *\n   * <p>Only the effective (first) declaration for each entity\n   * will be reported.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @param publicId The declared public identifier of the entity, or\n   *        null if none was declared.\n   * @param systemId The declared system identifier of the entity.\n   * @throws SAXException The application may raise an exception.\n   * @see #internalEntityDecl\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void externalEntityDecl(\n          String name, String publicId, String systemId) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#externalEntityDecl: \" + name\n                         + \", \" + publicId + \", \" + systemId);\n\n    if (null != m_declHandler)\n    {\n      m_declHandler.externalEntityDecl(name, publicId, systemId);\n    }\n  }\n\n\n  /** Set to true for diagnostics output.         */\n  private static boolean DEBUG = false;\n\n  /**\n   * The transformer this will use to transform a\n   * source tree into a result tree.\n   */\n  private TransformerImpl m_transformer;\n\n  /** The system ID to use as a base for relative URLs. */\n  private String m_baseSystemID;\n\n  /** The result for the transformation. */\n  private Result m_result = null;\n\n  /** The locator for this TransformerHandler. */\n  private Locator m_locator = null;\n\n  /** The entity resolver to aggregate to. */\n  private EntityResolver m_entityResolver = null;\n\n  /** The DTD handler to aggregate to. */\n  private DTDHandler m_dtdHandler = null;\n\n  /** The content handler to aggregate to. */\n  private ContentHandler m_contentHandler = null;\n\n  /** The error handler to aggregate to. */\n  private ErrorHandler m_errorHandler = null;\n\n  /** The lexical handler to aggregate to. */\n  private LexicalHandler m_lexicalHandler = null;\n\n  /** The decl handler to aggregate to. */\n  private DeclHandler m_declHandler = null;\n  \n  /** The Document Table Instance we are transforming. */\n  DTM m_dtm;", "functions": [{"function_name": "clearCoRoutine", "code": "  protected void clearCoRoutine()\n  {\n    clearCoRoutine(null);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clearCoRoutine", "code": "  protected void clearCoRoutine(SAXException ex)\n  {\n    if(null != ex)\n      m_transformer.setExceptionThrown(ex);\n    \n    if(m_dtm instanceof SAX2DTM)\n    {\n      if(DEBUG)\n        System.err.println(\"In clearCoRoutine...\");\n      try\n      {\n        SAX2DTM sax2dtm = ((SAX2DTM)m_dtm);          \n        if(null != m_contentHandler \n           && m_contentHandler instanceof IncrementalSAXSource_Filter)\n        {\n          IncrementalSAXSource_Filter sp =\n            (IncrementalSAXSource_Filter)m_contentHandler;\n          sp.deliverMoreNodes(false);\n        }\n        \n        sax2dtm.clearCoRoutine(true);\n        m_contentHandler = null;\n        m_dtdHandler = null;\n        m_entityResolver = null;\n        m_errorHandler = null;\n        m_lexicalHandler = null;\n      }\n      catch(Throwable throwable)\n      {\n        throwable.printStackTrace();\n      }\n      \n      if(DEBUG)\n        System.err.println(\"...exiting clearCoRoutine\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "TRY", "IF", "CALL", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 8], [2, 9], [5, 10], [7, 11], [7, 12], [7, 13], [6, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [12, 21], [8, 22], [14, 23], [11, 24], [15, 25], [16, 26], [17, 27], [18, 28], [19, 29], [20, 30], [12, 31], [21, 32], [21, 33], [22, 34], [12, 35], [33, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 1], [9, 2], [10, 5], [11, 7], [12, 7], [13, 7], [14, 6], [15, 7], [16, 7], [17, 7], [18, 7], [19, 7], [20, 7], [21, 12], [22, 8], [23, 14], [24, 11], [25, 15], [26, 16], [27, 17], [28, 18], [29, 19], [30, 20], [31, 12], [32, 21], [33, 21], [34, 22], [35, 12], [36, 33], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "setResult", "code": "  public void setResult(Result result) throws IllegalArgumentException\n  {\n\n    if (null == result)\n\n    try\n    {\n      ContentHandler handler =\n        m_transformer.createResultContentHandler(result);\n\n      m_transformer.setContentHandler(handler);\n    }\n    catch (javax.xml.transform.TransformerException te)\n    {\n    }\n\n    m_result = result;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "TRY", "BINARY_OP", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [5, 8], [4, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 5], [9, 4], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setSystemId", "code": "  public void setSystemId(String systemID)\n  {\n    m_baseSystemID = systemID;\n    m_dtm.setDocumentBaseURI(systemID);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSystemId", "code": "  public String getSystemId()\n  {\n    return m_baseSystemID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTransformer", "code": "  public Transformer getTransformer()\n  {\n    return m_transformer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "resolveEntity", "code": "  public InputSource resolveEntity(String publicId, String systemId)\n          throws SAXException, IOException\n  {\n\n    if (m_entityResolver != null)\n    {\n      return m_entityResolver.resolveEntity(publicId, systemId);\n    }\n    else\n    {\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "notationDecl", "code": "  public void notationDecl(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n    if (m_dtdHandler != null)\n    {\n      m_dtdHandler.notationDecl(name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "unparsedEntityDecl", "code": "  public void unparsedEntityDecl(\n          String name, String publicId, String systemId, String notationName)\n            throws SAXException\n  {\n\n    if (m_dtdHandler != null)\n    {\n      m_dtdHandler.unparsedEntityDecl(name, publicId, systemId, notationName);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator)\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#setDocumentLocator: \"\n                         + locator.getSystemId());\n\n    this.m_locator = locator;\n    \n    if(null == m_baseSystemID)\n    {\n      setSystemId(locator.getSystemId());\n    }\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.setDocumentLocator(locator);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [5, 8], [6, 9], [3, 10], [1, 11], [2, 12], [10, 13], [12, 14], [13, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 5], [9, 6], [10, 3], [11, 1], [12, 2], [13, 10], [14, 12], [15, 13], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "startDocument", "code": "  public void startDocument() throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startDocument\");\n      \n    m_insideParse = true;\n\n\n    if (m_contentHandler != null)\n    {\n      if(DTMManager.getIncremental())\n      {\n        m_transformer.setSourceTreeDocForThread(m_dtm.getDocument());\n            \n        int cpriority = Thread.currentThread().getPriority();\n    \n        m_transformer.runTransformThread( cpriority );\n      }\n\n      m_contentHandler.startDocument();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [4, 7], [2, 8], [1, 9], [5, 10], [8, 11], [5, 12], [5, 13], [5, 14], [12, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 4], [8, 2], [9, 1], [10, 5], [11, 8], [12, 5], [13, 5], [14, 5], [15, 12], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "endDocument", "code": "  public void endDocument() throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endDocument\");\n\n    m_insideParse = false;\n    \n    if (m_contentHandler != null)\n    {\n      m_contentHandler.endDocument();\n    }\n    \n    if(DTMManager.getIncremental())\n    {\n      m_transformer.waitTransformThread();\n    }\n    else\n    {\n      m_transformer.setSourceTreeDocForThread(m_dtm.getDocument());\n      m_transformer.run();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [5, 7], [6, 8], [3, 9], [1, 10], [1, 11], [1, 12], [2, 13], [9, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 5], [8, 6], [9, 3], [10, 1], [11, 1], [12, 1], [13, 2], [14, 9], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(String prefix, String uri)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startPrefixMapping: \"\n                         + prefix + \", \" + uri);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.startPrefixMapping(prefix, uri);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [7, 9], [9, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [9, 7], [10, 9], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(String prefix) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endPrefixMapping: \"\n                         + prefix);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.endPrefixMapping(prefix);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "startElement", "code": "  public void startElement(\n          String uri, String localName, String qName, Attributes atts)\n            throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startElement: \" + qName);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.startElement(uri, localName, qName, atts);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [2, 9], [1, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 2], [10, 1], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "endElement", "code": "  public void endElement(String uri, String localName, String qName)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endElement: \" + qName);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.endElement(uri, localName, qName);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [1, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 1], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "characters", "code": "  public void characters(char ch[], int start, int length) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#characters: \" + start + \", \"\n                         + length);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.characters(ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [1, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 1], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char ch[], int start, int length)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#ignorableWhitespace: \"\n                         + start + \", \" + length);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.ignorableWhitespace(ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [1, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 1], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(String target, String data)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#processingInstruction: \"\n                         + target + \", \" + data);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.processingInstruction(target, data);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [7, 9], [9, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [9, 7], [10, 9], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(String name) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#skippedEntity: \" + name);\n\n    if (m_contentHandler != null)\n    {\n      m_contentHandler.skippedEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "warning", "code": "  public void warning(SAXParseException e) throws SAXException\n  {\n    javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();\n    if(errorListener instanceof ErrorHandler)\n    {\n      ((ErrorHandler)errorListener).warning(e);\n    }\n    else\n    {\n      try\n      {\n        errorListener.warning(new javax.xml.transform.TransformerException(e));\n      }\n      catch(javax.xml.transform.TransformerException te)\n      {\n        throw e;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "TRY", "CALL", "CATCH", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [5, 7], [7, 8], [5, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 5], [8, 7], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "error", "code": "  public void error(SAXParseException e) throws SAXException\n  {\n\n    javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();\n    if(errorListener instanceof ErrorHandler)\n    {\n      ((ErrorHandler)errorListener).error(e);\n      if(null != m_errorHandler){}\n    }\n    else\n    {\n      try\n      {\n        errorListener.error(new javax.xml.transform.TransformerException(e));\n        if(null != m_errorHandler){}\n      }\n      catch(javax.xml.transform.TransformerException te)\n      {\n        throw e;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "TRY", "IF", "CALL", "CATCH", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [5, 8], [5, 9], [6, 10], [8, 11], [9, 12], [5, 13], [10, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 5], [9, 5], [10, 6], [11, 8], [12, 9], [13, 5], [14, 10], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "fatalError", "code": "  public void fatalError(SAXParseException e) throws SAXException\n  {\n    if(null != m_errorHandler)\n    {\n      try\n      {\n        m_errorHandler.fatalError(e);\n      }\n      catch(SAXParseException se)\n      {\n      }\n    }\n\n    javax.xml.transform.ErrorListener errorListener = m_transformer.getErrorListener();\n    \n    if(errorListener instanceof ErrorHandler)\n    {\n      ((ErrorHandler)errorListener).fatalError(e);\n      if(null != m_errorHandler){}\n    }\n    else\n    {\n      try\n      {\n        errorListener.fatalError(new javax.xml.transform.TransformerException(e));\n        if(null != m_errorHandler){}\n      }\n      catch(javax.xml.transform.TransformerException te)\n      {\n        throw e;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "TRY", "IF", "CALL", "TRY", "LITERAL_ANCHOR", "CATCH", "IF", "BINARY_OP", "CATCH", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [1, 8], [2, 9], [3, 10], [6, 11], [7, 12], [7, 13], [8, 14], [10, 15], [12, 16], [13, 17], [7, 18], [14, 19], [10, 20], [17, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 1], [9, 2], [10, 3], [11, 6], [12, 7], [13, 7], [14, 8], [15, 10], [16, 12], [17, 13], [18, 7], [19, 14], [20, 10], [21, 17], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "startDTD", "code": "  public void startDTD(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startDTD: \" + name + \", \"\n                         + publicId + \", \" + systemId);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startDTD(name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [1, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [14, 15], [14, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 1], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 14], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "endDTD", "code": "  public void endDTD() throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endDTD\");\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endDTD();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "startEntity", "code": "  public void startEntity(String name) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startEntity: \" + name);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "endEntity", "code": "  public void endEntity(String name) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endEntity: \" + name);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "startCDATA", "code": "  public void startCDATA() throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#startCDATA\");\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startCDATA();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "endCDATA", "code": "  public void endCDATA() throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#endCDATA\");\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endCDATA();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "comment", "code": "  public void comment(char ch[], int start, int length) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#comment: \" + start + \", \"\n                         + length);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.comment(ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [1, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 1], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "elementDecl", "code": "  public void elementDecl(String name, String model) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#elementDecl: \" + name + \", \"\n                         + model);\n\n    if (null != m_declHandler)\n    {\n      m_declHandler.elementDecl(name, model);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [7, 9], [9, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [9, 7], [10, 9], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "attributeDecl", "code": "  public void attributeDecl(\n          String eName, String aName, String type, String valueDefault, String value)\n            throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#attributeDecl: \" + eName\n                         + \", \" + aName + \", etc...\");\n\n    if (null != m_declHandler)\n    {\n      m_declHandler.attributeDecl(eName, aName, type, valueDefault, value);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [2, 10], [1, 11], [10, 12], [12, 13], [12, 14], [14, 15], [15, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 2], [11, 1], [12, 10], [13, 12], [14, 12], [15, 14], [16, 15], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "internalEntityDecl", "code": "  public void internalEntityDecl(String name, String value)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#internalEntityDecl: \" + name\n                         + \", \" + value);\n\n    if (null != m_declHandler)\n    {\n      m_declHandler.internalEntityDecl(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [7, 9], [9, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [9, 7], [10, 9], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "externalEntityDecl", "code": "  public void externalEntityDecl(\n          String name, String publicId, String systemId) throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"TransformerHandlerImpl#externalEntityDecl: \" + name\n                         + \", \" + publicId + \", \" + systemId);\n\n    if (null != m_declHandler)\n    {\n      m_declHandler.externalEntityDecl(name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [1, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [14, 15], [14, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 1], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 14], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "TransformerHandlerImpl", "code": "  public TransformerHandlerImpl(TransformerImpl transformer,\n                                boolean doFragment, String baseSystemID)\n  {\n\n    super();\n\n    m_transformer = transformer;\n    m_baseSystemID = baseSystemID;\n\n    XPathContext xctxt = transformer.getXPathContext();\n    DTM dtm = xctxt.getDTM(null, true, transformer, true, true);\n    \n    m_dtm = dtm;\n    dtm.setDocumentBaseURI(baseSystemID);\n\n    m_contentHandler = dtm.getContentHandler();\n    m_dtdHandler = dtm.getDTDHandler();\n    m_entityResolver = dtm.getEntityResolver();\n    m_errorHandler = dtm.getErrorHandler();\n    m_lexicalHandler = dtm.getLexicalHandler();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [6, 15], [7, 16], [8, 17], [9, 18], [10, 19], [1, 20], [2, 21], [20, 22], [20, 23], [20, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 6], [16, 7], [17, 8], [18, 9], [19, 10], [20, 1], [21, 2], [22, 20], [23, 20], [24, 20], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}], "label": 0}
{"sample_id": "xalan-2.5-7046", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/extensions/ExtensionsTable.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionsTable", "code": "public class ExtensionsTable\n{  \n  /**\n   * <meta name=\"usage\" content=\"internal\"/>\n   * Table of extensions that may be called from the expression language\n   * via the call(name, ...) function.  Objects are keyed on the call\n   * name.\n   */\n  public Hashtable m_extensionFunctionNamespaces = new Hashtable();\n  \n  /**\n   * The StylesheetRoot associated with this extensions table.\n   */\n  private StylesheetRoot m_sroot;\n  \n  /**\n   * <meta name=\"usage\" content=\"advanced\"/>\n   * The constructor (called from TransformerImpl) registers the\n   * StylesheetRoot for the transformation and instantiates an\n   * ExtensionHandler for each extension namespace.\n   */\n  public ExtensionsTable(StylesheetRoot sroot)\n    throws javax.xml.transform.TransformerException\n  {\n    m_sroot = sroot;\n    Vector extensions = m_sroot.getExtensions();\n    for (int i = 0; i < extensions.size(); i++)\n    {\n      ExtensionNamespaceSupport extNamespaceSpt = \n                 (ExtensionNamespaceSupport)extensions.elementAt(i);\n      ExtensionHandler extHandler = extNamespaceSpt.launch();\n        if (extHandler != null)\n          addExtensionNamespace(extNamespaceSpt.getNamespace(), extHandler);\n      }\n    }\n       \n  /**\n   * Get an ExtensionHandler object that represents the\n   * given namespace.\n   * @param extns A valid extension namespace.\n   *\n   * @return ExtensionHandler object that represents the\n   * given namespace.\n   */\n  public ExtensionHandler get(String extns)\n  {\n    return (ExtensionHandler) m_extensionFunctionNamespaces.get(extns);\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"advanced\"/>\n   * Register an extension namespace handler. This handler provides\n   * functions for testing whether a function is known within the\n   * namespace and also for invoking the functions.\n   *\n   * @param uri the URI for the extension.\n   * @param extNS the extension handler.\n   */\n  public void addExtensionNamespace(String uri, ExtensionHandler extNS)\n  {\n    m_extensionFunctionNamespaces.put(uri, extNS);\n  }\n\n  /**\n   * Execute the function-available() function.\n   * @param ns       the URI of namespace in which the function is needed\n   * @param funcName the function name being tested\n   *\n   * @return whether the given function is available or not.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean functionAvailable(String ns, String funcName)\n          throws javax.xml.transform.TransformerException\n  {\n    boolean isAvailable = false;\n    \n    if (null != ns)\n    {\n      ExtensionHandler extNS = \n           (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (extNS != null)\n        isAvailable = extNS.isFunctionAvailable(funcName);\n    }\n    return isAvailable;\n  }\n  \n  /**\n   * Execute the element-available() function.\n   * @param ns       the URI of namespace in which the function is needed\n   * @param elemName name of element being tested\n   *\n   * @return whether the given element is available or not.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean elementAvailable(String ns, String elemName)\n          throws javax.xml.transform.TransformerException\n  {\n    boolean isAvailable = false;\n    if (null != ns)\n    {\n      ExtensionHandler extNS = \n               (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n        isAvailable = extNS.isElementAvailable(elemName);\n    } \n    return isAvailable;        \n  }  \n  \n  /**\n   * Handle an extension function.\n   * @param ns        the URI of namespace in which the function is needed\n   * @param funcName  the function name being called\n   * @param argVec    arguments to the function in a vector\n   * @param methodKey a unique key identifying this function instance in the\n   *                  stylesheet\n   * @param exprContext a context which may be passed to an extension function\n   *                  and provides callback functions to access various\n   *                  areas in the environment\n   *\n   * @return result of executing the function\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public Object extFunction(String ns, String funcName, \n                            Vector argVec, Object methodKey, \n                            ExpressionContext exprContext)\n            throws javax.xml.transform.TransformerException\n  {\n    Object result = null;\n    if (null != ns)\n    {\n      ExtensionHandler extNS =\n        (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (null != extNS)\n      {\n        try\n        {\n          result = extNS.callFunction(funcName, argVec, methodKey,\n                                      exprContext);\n        }\n        catch (javax.xml.transform.TransformerException e)\n        {\n          throw e;\n        }\n        catch (Exception e)\n        {\n          throw new javax.xml.transform.TransformerException(e);\n        }\n      }\n      else\n      {\n        throw new XPathProcessorException(XSLMessages.createMessage(XSLTErrorResources.ER_EXTENSION_FUNC_UNKNOWN, new Object[]{ns, funcName })); \n      }\n    }\n    return result;    \n  }\n  \n  /**\n   * Handle an extension function.\n   * @param extFunction  the extension function\n   * @param argVec    arguments to the function in a vector\n   * @param exprContext a context which may be passed to an extension function\n   *                  and provides callback functions to access various\n   *                  areas in the environment\n   *\n   * @return result of executing the function\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public Object extFunction(FuncExtFunction extFunction, Vector argVec, \n                            ExpressionContext exprContext)\n         throws javax.xml.transform.TransformerException\n  {\n    Object result = null;\n    String ns = extFunction.getNamespace();\n    if (null != ns)\n    {\n      ExtensionHandler extNS =\n        (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (null != extNS)\n      {\n        try\n        {\n          result = extNS.callFunction(extFunction, argVec, exprContext);\n        }\n        catch (javax.xml.transform.TransformerException e)\n        {\n          throw e;\n        }\n        catch (Exception e)\n        {\n          throw new javax.xml.transform.TransformerException(e);\n        }\n      }\n      else\n      {\n        throw new XPathProcessorException(XSLMessages.createMessage(XSLTErrorResources.ER_EXTENSION_FUNC_UNKNOWN, \n                                          new Object[]{ns, extFunction.getFunctionName()})); \n      }\n    }\n    return result;        ", "functions": [{"function_name": "get", "code": "  public ExtensionHandler get(String extns)\n  {\n    return (ExtensionHandler) m_extensionFunctionNamespaces.get(extns);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addExtensionNamespace", "code": "  public void addExtensionNamespace(String uri, ExtensionHandler extNS)\n  {\n    m_extensionFunctionNamespaces.put(uri, extNS);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "functionAvailable", "code": "  public boolean functionAvailable(String ns, String funcName)\n          throws javax.xml.transform.TransformerException\n  {\n    boolean isAvailable = false;\n    \n    if (null != ns)\n    {\n      ExtensionHandler extNS = \n           (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (extNS != null)\n        isAvailable = extNS.isFunctionAvailable(funcName);\n    }\n    return isAvailable;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [11, 13], [12, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 11], [14, 12], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "elementAvailable", "code": "  public boolean elementAvailable(String ns, String elemName)\n          throws javax.xml.transform.TransformerException\n  {\n    boolean isAvailable = false;\n    if (null != ns)\n    {\n      ExtensionHandler extNS = \n               (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n        isAvailable = extNS.isElementAvailable(elemName);\n    } \n    return isAvailable;        ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [2, 10], [10, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 2], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "extFunction", "code": "  public Object extFunction(String ns, String funcName, \n                            Vector argVec, Object methodKey, \n                            ExpressionContext exprContext)\n            throws javax.xml.transform.TransformerException\n  {\n    Object result = null;\n    if (null != ns)\n    {\n      ExtensionHandler extNS =\n        (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (null != extNS)\n      {\n        try\n        {\n          result = extNS.callFunction(funcName, argVec, methodKey,\n                                      exprContext);\n        }\n        catch (javax.xml.transform.TransformerException e)\n        {\n          throw e;\n        }\n        catch (Exception e)\n        {\n          throw new javax.xml.transform.TransformerException(e);\n        }\n      }\n      else\n      {\n        throw new XPathProcessorException(XSLMessages.createMessage(XSLTErrorResources.ER_EXTENSION_FUNC_UNKNOWN, new Object[]{ns, funcName })); \n      }\n    }\n    return result;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [2, 11], [9, 12], [3, 13], [10, 14], [10, 15], [10, 16], [14, 17], [15, 18], [16, 19], [16, 20], [11, 21], [18, 22], [19, 23], [20, 24], [16, 25], [23, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 2], [12, 9], [13, 3], [14, 10], [15, 10], [16, 10], [17, 14], [18, 15], [19, 16], [20, 16], [21, 11], [22, 18], [23, 19], [24, 20], [25, 16], [26, 23], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "extFunction", "code": "  public Object extFunction(FuncExtFunction extFunction, Vector argVec, \n                            ExpressionContext exprContext)\n         throws javax.xml.transform.TransformerException\n  {\n    Object result = null;\n    String ns = extFunction.getNamespace();\n    if (null != ns)\n    {\n      ExtensionHandler extNS =\n        (ExtensionHandler) m_extensionFunctionNamespaces.get(ns);\n      if (null != extNS)\n      {\n        try\n        {\n          result = extNS.callFunction(extFunction, argVec, exprContext);\n        }\n        catch (javax.xml.transform.TransformerException e)\n        {\n          throw e;\n        }\n        catch (Exception e)\n        {\n          throw new javax.xml.transform.TransformerException(e);\n        }\n      }\n      else\n      {\n        throw new XPathProcessorException(XSLMessages.createMessage(XSLTErrorResources.ER_EXTENSION_FUNC_UNKNOWN, \n                                          new Object[]{ns, extFunction.getFunctionName()})); \n      }\n    }\n    return result;        ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [8, 11], [3, 12], [4, 13], [9, 14], [9, 15], [9, 16], [14, 17], [15, 18], [16, 19], [16, 20], [10, 21], [18, 22], [19, 23], [20, 24], [16, 25], [23, 26], [25, 27], [22, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 8], [12, 3], [13, 4], [14, 9], [15, 9], [16, 9], [17, 14], [18, 15], [19, 16], [20, 16], [21, 10], [22, 18], [23, 19], [24, 20], [25, 16], [26, 23], [27, 25], [28, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "ExtensionsTable", "code": "  public ExtensionsTable(StylesheetRoot sroot)\n    throws javax.xml.transform.TransformerException\n  {\n    m_sroot = sroot;\n    Vector extensions = m_sroot.getExtensions();\n    for (int i = 0; i < extensions.size(); i++)\n    {\n      ExtensionNamespaceSupport extNamespaceSpt = \n                 (ExtensionNamespaceSupport)extensions.elementAt(i);\n      ExtensionHandler extHandler = extNamespaceSpt.launch();\n        if (extHandler != null)\n          addExtensionNamespace(extNamespaceSpt.getNamespace(), extHandler);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [1, 8], [4, 9], [2, 10], [6, 11], [1, 12], [6, 13], [11, 14], [7, 15], [13, 16], [8, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 1], [9, 4], [10, 2], [11, 6], [12, 1], [13, 6], [14, 11], [15, 7], [16, 13], [17, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 1}
{"sample_id": "xalan-2.5-7084", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/templates/ElemWithParam.java", "language": "java", "name": "org.apache.xalan.templates.ElemWithParam", "code": "public class ElemWithParam extends ElemTemplateElement\n{\n  /**\n   * This is the index to the stack frame being called, <emph>not</emph> the \n   * stack frame that contains this element.\n   */\n  int m_index;\n\n  /**\n   * The \"select\" attribute, which specifies the value of the\n   * argument, if element content is not specified.\n   * @serial\n   */\n  private XPath m_selectPattern = null;\n\n  /**\n   * Set the \"select\" attribute.\n   * The \"select\" attribute specifies the value of the\n   * argument, if element content is not specified.\n   *\n   * @param v Value to set for the \"select\" attribute. \n   */\n  public void setSelect(XPath v)\n  {\n    m_selectPattern = v;\n  }\n\n  /**\n   * Get the \"select\" attribute.\n   * The \"select\" attribute specifies the value of the\n   * argument, if element content is not specified.\n   *\n   * @return Value of the \"select\" attribute. \n   */\n  public XPath getSelect()\n  {\n    return m_selectPattern;\n  }\n\n  /**\n   * The required name attribute specifies the name of the\n   * parameter (the variable the value of whose binding is\n   * to be replaced). The value of the name attribute is a QName,\n   * which is expanded as described in [2.4 Qualified Names].\n   * @serial\n   */\n  private QName m_qname = null;\n  \n  int m_qnameID;\n\n  /**\n   * Set the \"name\" attribute.\n   * DJD\n   *\n   * @param v Value to set for the \"name\" attribute.\n   */\n  public void setName(QName v)\n  {\n    m_qname = v;\n  }\n\n  /**\n   * Get the \"name\" attribute.\n   * DJD\n   *\n   * @return Value of the \"name\" attribute.\n   */\n  public QName getName()\n  {\n    return m_qname;\n  }\n\n  /**\n   * Get an integer representation of the element type.\n   *\n   * @return An integer representation of the element, defined in the\n   *     Constants class.\n   * @see org.apache.xalan.templates.Constants\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_WITHPARAM;\n  }\n\n\n  /**\n   * Return the node name.\n   *\n   * @return the node name.\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_WITHPARAM_STRING;\n  }\n  \n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    if(null == m_selectPattern  \n       && org.apache.xalan.processor.TransformerFactoryImpl.m_optimize)\n    {\n      XPath newSelect = ElemVariable.rewriteChildToExpression(this);\n      if(null != newSelect)\n        m_selectPattern = newSelect;\n    }\n    m_qnameID = sroot.getComposeState().getQNameID(m_qname);\n    super.compose(sroot);\n    \n    java.util.Vector vnames = sroot.getComposeState().getVariableNames();\n    if(null != m_selectPattern)\n      m_selectPattern.fixupVariables(vnames, sroot.getComposeState().getGlobalsSize());\n      \n  }\n  \n  /**\n   * Set the parent as an ElemTemplateElement.\n   *\n   * @param parent This node's parent as an ElemTemplateElement\n   */\n  public void setParentElem(ElemTemplateElement p)\n  {\n    super.setParentElem(p);\n    p.m_hasVariableDecl = true;\n  }\n  \n  /**\n   * Get the XObject representation of the variable.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @return the XObject representation of the variable.\n   *\n   * @throws TransformerException\n   */\n  public XObject getValue(TransformerImpl transformer, int sourceNode)\n          throws TransformerException\n  {\n\n    XObject var;\n    XPathContext xctxt = transformer.getXPathContext();\n\n    xctxt.pushCurrentNode(sourceNode);\n\n    try\n    {\n      if (null != m_selectPattern)\n      {\n        var = m_selectPattern.execute(xctxt, sourceNode, this);\n\n        var.allowDetachToRelease(false);\n\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireSelectedEvent(sourceNode, this,\n                  \"select\", m_selectPattern, var);\n      }\n      else if (null == getFirstChildElem())\n      {\n        var = XString.EMPTYSTRING;\n      }\n      else\n      {\n\n        int df = transformer.transformToRTF(this);\n\n        var = new XRTreeFrag(df, xctxt, this);\n      }\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n    }\n\n    return var;\n  }\n  \n  /**\n   * Call the children visitors.\n   * @param visitor The visitor whose appropriate method will be called.\n   */\n  protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n  {\n  \tif(callAttrs && (null != m_selectPattern))\n  \t\tm_selectPattern.getExpression().callVisitors(m_selectPattern, visitor);\n    super.callChildVisitors(visitor, callAttrs);", "functions": [{"function_name": "setSelect", "code": "  public void setSelect(XPath v)\n  {\n    m_selectPattern = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSelect", "code": "  public XPath getSelect()\n  {\n    return m_selectPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "  public void setName(QName v)\n  {\n    m_qname = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "  public QName getName()\n  {\n    return m_qname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_WITHPARAM;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_WITHPARAM_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    if(null == m_selectPattern  \n       && org.apache.xalan.processor.TransformerFactoryImpl.m_optimize)\n    {\n      XPath newSelect = ElemVariable.rewriteChildToExpression(this);\n      if(null != newSelect)\n        m_selectPattern = newSelect;\n    }\n    m_qnameID = sroot.getComposeState().getQNameID(m_qname);\n    super.compose(sroot);\n    \n    java.util.Vector vnames = sroot.getComposeState().getVariableNames();\n    if(null != m_selectPattern)\n      m_selectPattern.fixupVariables(vnames, sroot.getComposeState().getGlobalsSize());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [3, 7], [1, 8], [5, 9], [2, 10], [6, 11], [3, 12], [3, 13], [7, 14], [8, 15], [10, 16], [11, 17], [12, 18], [14, 19], [15, 20], [12, 21], [18, 22], [13, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 3], [8, 1], [9, 5], [10, 2], [11, 6], [12, 3], [13, 3], [14, 7], [15, 8], [16, 10], [17, 11], [18, 12], [19, 14], [20, 15], [21, 12], [22, 18], [23, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "setParentElem", "code": "  public void setParentElem(ElemTemplateElement p)\n  {\n    super.setParentElem(p);\n    p.m_hasVariableDecl = true;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getValue", "code": "  public XObject getValue(TransformerImpl transformer, int sourceNode)\n          throws TransformerException\n  {\n\n    XObject var;\n    XPathContext xctxt = transformer.getXPathContext();\n\n    xctxt.pushCurrentNode(sourceNode);\n\n    try\n    {\n      if (null != m_selectPattern)\n      {\n        var = m_selectPattern.execute(xctxt, sourceNode, this);\n\n        var.allowDetachToRelease(false);\n\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireSelectedEvent(sourceNode, this,\n                  \"select\", m_selectPattern, var);\n      }\n      else if (null == getFirstChildElem())\n      {\n        var = XString.EMPTYSTRING;\n      }\n      else\n      {\n\n        int df = transformer.transformToRTF(this);\n\n        var = new XRTreeFrag(df, xctxt, this);\n      }\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n    }\n\n    return var;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [2, 9], [7, 10], [7, 11], [3, 12], [10, 13], [7, 14], [11, 15], [10, 16], [13, 17], [13, 18], [7, 19], [7, 20], [10, 21], [10, 22], [14, 23], [19, 24], [20, 25], [21, 26], [16, 27], [23, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 2], [10, 7], [11, 7], [12, 3], [13, 10], [14, 7], [15, 11], [16, 10], [17, 13], [18, 13], [19, 7], [20, 7], [21, 10], [22, 10], [23, 14], [24, 19], [25, 20], [26, 21], [27, 16], [28, 23], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "callChildVisitors", "code": "  protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n  {\n  \tif(callAttrs && (null != m_selectPattern))\n  \t\tm_selectPattern.getExpression().callVisitors(m_selectPattern, visitor);\n    super.callChildVisitors(visitor, callAttrs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "camel-1.6-2876", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/builder/ExpressionBuilder.java", "language": "java", "name": "org.apache.camel.builder.ExpressionBuilder", "code": "public final class ExpressionBuilder {\n\n    /**\n     * Utility classes should not have a public constructor.\n     */\n    private ExpressionBuilder() {\n    }\n\n    /**\n     * Returns an expression for the header value with the given name\n     *\n     * @param headerName the name of the header the expression will return\n     * @return an expression object which will return the header value\n     */\n    public static <E extends Exchange> Expression<E> headerExpression(final String headerName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object header = exchange.getIn().getHeader(headerName);\n                if (header == null) {\n                    header = exchange.getProperty(headerName);\n                }\n                return header;\n            }\n\n            @Override\n            public String toString() {\n                return \"header(\" + headerName + \")\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for the inbound message headers\n     *\n     * @see Message#getHeaders()\n     * @return an expression object which will return the inbound headers\n     */\n    public static <E extends Exchange> Expression<E> headersExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getHeaders();\n            }\n\n            @Override\n            public String toString() {\n                return \"headers\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for the out header value with the given name\n     *\n     * @param headerName the name of the header the expression will return\n     * @return an expression object which will return the header value\n     */\n    public static <E extends Exchange> Expression<E> outHeaderExpression(final String headerName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                Object header = out.getHeader(headerName);\n                if (header == null) {\n                    header = exchange.getProperty(headerName);\n                }\n                return header;\n            }\n\n            @Override\n            public String toString() {\n                return \"outHeader(\" + headerName + \")\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for the outbound message headers\n     *\n     * @see Message#getHeaders()\n     * @return an expression object which will return the inbound headers\n     */\n    public static <E extends Exchange> Expression<E> outHeadersExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getOut().getHeaders();\n            }\n\n            @Override\n            public String toString() {\n                return \"outHeaders\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for the property value with the given name\n     *\n     * @see Exchange#getProperty(String)\n     * @param propertyName the name of the property the expression will return\n     * @return an expression object which will return the property value\n     */\n    public static <E extends Exchange> Expression<E> propertyExpression(final String propertyName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getProperty(propertyName);\n            }\n\n            @Override\n            public String toString() {\n                return \"property(\" + propertyName + \")\";\n            }\n        };\n    }\n\n\n    /**\n     * Returns an expression for the property value with the given name\n     *\n     * @see Exchange#getProperties()\n     * @return an expression object which will return the properties\n     */\n    public static <E extends Exchange> Expression<E> propertiesExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getProperties();\n            }\n\n            @Override\n            public String toString() {\n                return \"properties\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for a system property value with the given name\n     *\n     * @param propertyName the name of the system property the expression will\n     *                return\n     * @return an expression object which will return the system property value\n     */\n    public static <E extends Exchange> Expression<E> systemPropertyExpression(final String propertyName) {\n        return systemPropertyExpression(propertyName, null);\n    }\n\n    /**\n     * Returns an expression for a system property value with the given name\n     *\n     * @param propertyName the name of the system property the expression will\n     *                return\n     * @return an expression object which will return the system property value\n     */\n    public static <E extends Exchange> Expression<E> systemPropertyExpression(final String propertyName,\n                                                                              final String defaultValue) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return System.getProperty(propertyName, defaultValue);\n            }\n\n            @Override\n            public String toString() {\n                return \"systemProperty(\" + propertyName + \")\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for the constant value\n     *\n     * @param value the value the expression will return\n     * @return an expression object which will return the constant value\n     */\n    public static <E extends Exchange> Expression<E> constantExpression(final Object value) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return value;\n            }\n\n            @Override\n            public String toString() {\n                return \"\" + value;\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the exchanges inbound message body\n     */\n    public static <E extends Exchange> Expression<E> bodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"body\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the exchanges inbound message body converted\n     * to the given type\n     */\n    public static <E extends Exchange, T> Expression<E> bodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"bodyAs[\" + type.getName() + \"]\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the out messages body\n     */\n    public static <E extends Exchange> Expression<E> outBodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                return out.getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"outBody\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the exchanges outbound message body converted\n     * to the given type\n     */\n    public static <E extends Exchange, T> Expression<E> outBodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                return out.getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"outBodyAs[\" + type.getName() + \"]\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the fault messages body\n     */\n    public static <E extends Exchange> Expression<E> faultBodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getFault().getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"faultBody\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the exchanges fault message body converted\n     * to the given type\n     */\n    public static <E extends Exchange, T> Expression<E> faultBodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getFault().getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"faultBodyAs[\" + type.getName() + \"]\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the exchange\n     */\n    public static <E extends Exchange> Expression<E> exchangeExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange;\n            }\n\n            @Override\n            public String toString() {\n                return \"exchange\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the IN message\n     */\n    public static <E extends Exchange> Expression<E> inMessageExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn();\n            }\n\n            @Override\n            public String toString() {\n                return \"inMessage\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the OUT message\n     */\n    public static <E extends Exchange> Expression<E> outMessageExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getOut();\n            }\n\n            @Override\n            public String toString() {\n                return \"outMessage\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression which converts the given expression to the given\n     * type\n     */\n    public static <E extends Exchange> Expression<E> convertTo(final Expression expression, final Class type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object value = expression.evaluate(exchange);\n                return exchange.getContext().getTypeConverter().convertTo(type, exchange, value);\n            }\n\n            @Override\n            public String toString() {\n                return \"\" + expression + \".convertTo(\" + type.getName() + \".class)\";\n            }\n        };\n    }\n\n    /**\n     * Returns a tokenize expression which will tokenize the string with the\n     * given token\n     */\n    public static <E extends Exchange> Expression<E> tokenizeExpression(final Expression<E> expression,\n                                                                        final String token) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object value = expression.evaluate(exchange);\n                Scanner scanner = getScanner(exchange, value);\n                scanner.useDelimiter(token);\n                return scanner;\n            }\n\n            @Override\n            public String toString() {\n                return \"tokenize(\" + expression + \", \" + token + \")\";\n            }\n        };\n    }\n\n    /**\n     * Returns a tokenize expression which will tokenize the string with the\n     * given regex\n     */\n    public static <E extends Exchange> Expression<E> regexTokenize(final Expression<E> expression,\n                                                                   final String regexTokenizer) {\n        final Pattern pattern = Pattern.compile(regexTokenizer);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object value = expression.evaluate(exchange);\n                Scanner scanner = getScanner(exchange, value);\n                scanner.useDelimiter(regexTokenizer);\n                return scanner;\n            }\n\n            @Override\n            public String toString() {\n                return \"regexTokenize(\" + expression + \", \" + pattern.pattern() + \")\";\n            }\n        };\n    }\n\n    private static Scanner getScanner(Exchange exchange, Object value) {\n        String charset = exchange.getProperty(Exchange.CHARSET_NAME, String.class);\n\n        Scanner scanner = null;\n        if (value instanceof Readable) {\n            scanner = new Scanner((Readable)value);\n        } else if (value instanceof InputStream) {\n            scanner = charset == null ? new Scanner((InputStream)value)\n                : new Scanner((InputStream)value, charset);\n        } else if (value instanceof File) {\n            try {\n                scanner = charset == null ? new Scanner((File)value) : new Scanner((File)value, charset);\n            } catch (FileNotFoundException e) {\n                throw new RuntimeCamelException(e);\n            }\n        } else if (value instanceof String) {\n            scanner = new Scanner((String)value);\n        } else if (value instanceof ReadableByteChannel) {\n            scanner = charset == null ? new Scanner((ReadableByteChannel)value)\n                : new Scanner((ReadableByteChannel)value, charset);\n        }\n\n        if (scanner == null) {\n            String text = exchange.getContext().getTypeConverter().convertTo(String.class, exchange, value);\n            if (text != null) {\n                scanner = new Scanner(text);\n            }\n        }\n        \n        if (scanner == null) {\n            scanner = new Scanner(\"\");\n        }\n        return scanner;\n    }\n\n    /**\n     * Transforms the expression into a String then performs the regex\n     * replaceAll to transform the String and return the result\n     */\n    public static <E extends Exchange> Expression<E> regexReplaceAll(final Expression<E> expression,\n                                                                     final String regex, final String replacement) {\n        final Pattern pattern = Pattern.compile(regex);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                if (text == null) {\n                    return null;\n                }\n                return pattern.matcher(text).replaceAll(replacement);\n            }\n\n            @Override\n            public String toString() {\n                return \"regexReplaceAll(\" + expression + \", \" + pattern.pattern() + \")\";\n            }\n        };\n    }\n\n    /**\n     * Transforms the expression into a String then performs the regex\n     * replaceAll to transform the String and return the result\n     */\n    public static <E extends Exchange> Expression<E> regexReplaceAll(final Expression<E> expression,\n                                                                     String regex,\n                                                                     final Expression<E> replacementExpression) {\n        final Pattern pattern = Pattern.compile(regex);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                String replacement = evaluateStringExpression(replacementExpression, exchange);\n                if (text == null || replacement == null) {\n                    return null;\n                }\n                return pattern.matcher(text).replaceAll(replacement);\n            }\n\n            @Override\n            public String toString() {\n                return \"regexReplaceAll(\" + expression + \", \" + pattern.pattern() + \")\";\n            }\n        };\n    }\n\n    /**\n     * Appends the String evaluations of the two expressions together\n     */\n    public static <E extends Exchange> Expression<E> append(final Expression<E> left,\n                                                            final Expression<E> right) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return evaluateStringExpression(left, exchange) + evaluateStringExpression(right, exchange);\n            }\n\n            @Override\n            public String toString() {\n                return \"append(\" + left + \", \" + right + \")\";\n            }\n        };\n    }\n\n    /**\n     * Evaluates the expression on the given exchange and returns the String\n     * representation\n     *\n     * @param expression the expression to evaluate\n     * @param exchange the exchange to use to evaluate the expression\n     * @return the String representation of the expression or null if it could\n     *         not be evaluated\n     */\n    public static <E extends Exchange> String evaluateStringExpression(Expression<E> expression, E exchange) {\n        Object value = expression.evaluate(exchange);\n        return exchange.getContext().getTypeConverter().convertTo(String.class, exchange, value);\n    }\n\n    /**\n     * Returns an expression for the given system property\n     */\n    public static <E extends Exchange> Expression<E> systemProperty(final String name) {\n        return systemProperty(name, null);\n    }\n\n    /**\n     * Returns an expression for the given system property\n     */\n    public static <E extends Exchange> Expression<E> systemProperty(final String name,\n                                                                    final String defaultValue) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return System.getProperty(name, defaultValue);\n            }\n        };\n    }\n\n    /**\n     * Returns an expression which returns the string concatenation value of the various\n     * expressions\n     *\n     * @param expressions the expression to be concatenated dynamically\n     * @return an expression which when evaluated will return the concatenated values\n     */\n    public static <E extends Exchange> Expression<E> concatExpression(final Collection<Expression> expressions) {\n        return concatExpression(expressions, null);\n    }\n\n    /**\n     * Returns an expression which returns the string concatenation value of the various\n     * expressions\n     *\n     * @param expressions the expression to be concatenated dynamically\n     * @param expression the text description of the expression\n     * @return an expression which when evaluated will return the concatenated values\n     */\n    public static <E extends Exchange> Expression<E> concatExpression(final Collection<Expression> expressions, final String expression) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                StringBuffer buffer = new StringBuffer();\n                for (Expression<E> expression : expressions) {\n                    String text = evaluateStringExpression(expression, exchange);\n                    if (text != null) {\n                        buffer.append(text);\n                    }\n                }\n                return buffer.toString();\n            }\n\n            @Override\n            public String toString() {\n                if (expression != null) {\n                    return expression;\n                } else {\n                    return \"concat\" + expressions;\n                }\n            }\n        };\n    }\n\n    /**\n     * Returns an Expression for the inbound message id\n     */\n    public static <E extends Exchange> Expression<E> messageIdExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getMessageId();\n            }\n\n            @Override\n            public String toString() {\n                return \"messageId\";\n            }\n        };\n    }\n\n    public static <E extends Exchange> Expression<E> dateExpression(final String command, final String pattern) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Date date;\n                if (\"now\".equals(command)) {\n                    date = new Date();\n                } else if (command.startsWith(\"header.\") || command.startsWith(\"in.header.\")) {\n                    String key = command.substring(command.lastIndexOf(\".\") + 1);\n                    date = exchange.getIn().getHeader(key, Date.class);\n                    if (date == null) {\n                        throw new IllegalArgumentException(\"Could not find java.util.Date object at \" + command);\n                    }\n                } else if (command.startsWith(\"out.header.\")) {\n                    String key = command.substring(command.lastIndexOf(\".\") + 1);\n                    date = exchange.getOut().getHeader(key, Date.class);\n                    if (date == null) {\n                        throw new IllegalArgumentException(\"Could not find java.util.Date object at \" + command);\n                    }\n                } else {\n                    throw new IllegalArgumentException(\"Command not supported for dateExpression: \" + command);\n                }\n\n                SimpleDateFormat df = new SimpleDateFormat(pattern);\n                return df.format(date);\n            }\n\n            @Override\n            public String toString() {\n                return \"date(\" + command + \":\" + pattern + \")\";\n            }\n        };\n    }\n\n    public static <E extends Exchange> Expression<E> simpleExpression(final String simple) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return SimpleLanguage.simple(simple).evaluate(exchange);\n            }\n\n            @Override\n            public String toString() {\n                return \"simple(\" + simple + \")\";\n            }\n        };\n    }\n\n    public static <E extends Exchange> Expression<E> beanExpression(final String bean) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return BeanLanguage.bean(bean).evaluate(exchange);\n            }\n\n            @Override\n            public String toString() {\n                return \"bean(\" + bean + \")\";", "functions": [{"function_name": "headerExpression", "code": "    public static <E extends Exchange> Expression<E> headerExpression(final String headerName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object header = exchange.getIn().getHeader(headerName);\n                if (header == null) {\n                    header = exchange.getProperty(headerName);\n                }\n                return header;\n            }\n\n            @Override\n            public String toString() {\n                return \"header(\" + headerName + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [5, 9], [5, 10], [6, 11], [8, 12], [11, 13], [11, 14], [12, 15], [9, 16], [14, 17], [8, 18], [16, 19], [18, 20], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 5], [10, 5], [11, 6], [12, 8], [13, 11], [14, 11], [15, 12], [16, 9], [17, 14], [18, 8], [19, 16], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "headersExpression", "code": "    public static <E extends Exchange> Expression<E> headersExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getHeaders();\n            }\n\n            @Override\n            public String toString() {\n                return \"headers\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "outHeaderExpression", "code": "    public static <E extends Exchange> Expression<E> outHeaderExpression(final String headerName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                Object header = out.getHeader(headerName);\n                if (header == null) {\n                    header = exchange.getProperty(headerName);\n                }\n                return header;\n            }\n\n            @Override\n            public String toString() {\n                return \"outHeader(\" + headerName + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [6, 13], [8, 14], [10, 15], [13, 16], [13, 17], [14, 18], [9, 19], [10, 20], [15, 21], [11, 22], [17, 23], [8, 24], [20, 25], [22, 26], [24, 27], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 5], [10, 5], [11, 5], [12, 5], [13, 6], [14, 8], [15, 10], [16, 13], [17, 13], [18, 14], [19, 9], [20, 10], [21, 15], [22, 11], [23, 17], [24, 8], [25, 20], [26, 22], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "outHeadersExpression", "code": "    public static <E extends Exchange> Expression<E> outHeadersExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getOut().getHeaders();\n            }\n\n            @Override\n            public String toString() {\n                return \"outHeaders\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "propertyExpression", "code": "    public static <E extends Exchange> Expression<E> propertyExpression(final String propertyName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getProperty(propertyName);\n            }\n\n            @Override\n            public String toString() {\n                return \"property(\" + propertyName + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "propertiesExpression", "code": "    public static <E extends Exchange> Expression<E> propertiesExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getProperties();\n            }\n\n            @Override\n            public String toString() {\n                return \"properties\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "systemPropertyExpression", "code": "    public static <E extends Exchange> Expression<E> systemPropertyExpression(final String propertyName) {\n        return systemPropertyExpression(propertyName, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "systemPropertyExpression", "code": "    public static <E extends Exchange> Expression<E> systemPropertyExpression(final String propertyName,\n                                                                              final String defaultValue) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return System.getProperty(propertyName, defaultValue);\n            }\n\n            @Override\n            public String toString() {\n                return \"systemProperty(\" + propertyName + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [7, 10], [8, 11], [10, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 7], [11, 8], [12, 10], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "constantExpression", "code": "    public static <E extends Exchange> Expression<E> constantExpression(final Object value) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return value;\n            }\n\n            @Override\n            public String toString() {\n                return \"\" + value;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "bodyExpression", "code": "    public static <E extends Exchange> Expression<E> bodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"body\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "bodyExpression", "code": "    public static <E extends Exchange, T> Expression<E> bodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"bodyAs[\" + type.getName() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [10, 13], [12, 14], [12, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 10], [14, 12], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "outBodyExpression", "code": "    public static <E extends Exchange> Expression<E> outBodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                return out.getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"outBody\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [4, 8], [4, 9], [5, 10], [6, 11], [7, 12], [7, 13], [12, 14], [8, 15], [13, 16], [15, 17], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 4], [9, 4], [10, 5], [11, 6], [12, 7], [13, 7], [14, 12], [15, 8], [16, 13], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "outBodyExpression", "code": "    public static <E extends Exchange, T> Expression<E> outBodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                return out.getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"outBodyAs[\" + type.getName() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [5, 9], [5, 10], [6, 11], [7, 12], [8, 13], [11, 14], [11, 15], [8, 16], [13, 17], [9, 18], [15, 19], [15, 20], [16, 21], [18, 22], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 5], [10, 5], [11, 6], [12, 7], [13, 8], [14, 11], [15, 11], [16, 8], [17, 13], [18, 9], [19, 15], [20, 15], [21, 16], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "faultBodyExpression", "code": "    public static <E extends Exchange> Expression<E> faultBodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getFault().getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"faultBody\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "faultBodyExpression", "code": "    public static <E extends Exchange, T> Expression<E> faultBodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getFault().getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"faultBodyAs[\" + type.getName() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [10, 13], [12, 14], [12, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 10], [14, 12], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "exchangeExpression", "code": "    public static <E extends Exchange> Expression<E> exchangeExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange;\n            }\n\n            @Override\n            public String toString() {\n                return \"exchange\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "inMessageExpression", "code": "    public static <E extends Exchange> Expression<E> inMessageExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn();\n            }\n\n            @Override\n            public String toString() {\n                return \"inMessage\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "outMessageExpression", "code": "    public static <E extends Exchange> Expression<E> outMessageExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getOut();\n            }\n\n            @Override\n            public String toString() {\n                return \"outMessage\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "convertTo", "code": "    public static <E extends Exchange> Expression<E> convertTo(final Expression expression, final Class type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object value = expression.evaluate(exchange);\n                return exchange.getContext().getTypeConverter().convertTo(type, exchange, value);\n            }\n\n            @Override\n            public String toString() {\n                return \"\" + expression + \".convertTo(\" + type.getName() + \".class)\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [6, 10], [7, 11], [8, 12], [11, 13], [11, 14], [12, 15], [12, 16], [9, 17], [14, 18], [14, 19], [19, 20], [19, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 6], [11, 7], [12, 8], [13, 11], [14, 11], [15, 12], [16, 12], [17, 9], [18, 14], [19, 14], [20, 19], [21, 19], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "tokenizeExpression", "code": "    public static <E extends Exchange> Expression<E> tokenizeExpression(final Expression<E> expression,\n                                                                        final String token) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object value = expression.evaluate(exchange);\n                Scanner scanner = getScanner(exchange, value);\n                scanner.useDelimiter(token);\n                return scanner;\n            }\n\n            @Override\n            public String toString() {\n                return \"tokenize(\" + expression + \", \" + token + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [6, 10], [6, 11], [7, 12], [6, 13], [12, 14], [12, 15], [9, 16], [10, 17], [15, 18], [18, 19], [18, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 6], [11, 6], [12, 7], [13, 6], [14, 12], [15, 12], [16, 9], [17, 10], [18, 15], [19, 18], [20, 18], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "regexTokenize", "code": "    public static <E extends Exchange> Expression<E> regexTokenize(final Expression<E> expression,\n                                                                   final String regexTokenizer) {\n        final Pattern pattern = Pattern.compile(regexTokenizer);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object value = expression.evaluate(exchange);\n                Scanner scanner = getScanner(exchange, value);\n                scanner.useDelimiter(regexTokenizer);\n                return scanner;\n            }\n\n            @Override\n            public String toString() {\n                return \"regexTokenize(\" + expression + \", \" + pattern.pattern() + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "CALL", "RETURN", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [6, 9], [7, 10], [7, 11], [7, 12], [7, 13], [9, 14], [7, 15], [14, 16], [14, 17], [11, 18], [12, 19], [17, 20], [17, 21], [21, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [9, 6], [10, 7], [11, 7], [12, 7], [13, 7], [14, 9], [15, 7], [16, 14], [17, 14], [18, 11], [19, 12], [20, 17], [21, 17], [22, 21], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getScanner", "code": "    private static Scanner getScanner(Exchange exchange, Object value) {\n        String charset = exchange.getProperty(Exchange.CHARSET_NAME, String.class);\n\n        Scanner scanner = null;\n        if (value instanceof Readable) {\n            scanner = new Scanner((Readable)value);\n        } else if (value instanceof InputStream) {\n            scanner = charset == null ? new Scanner((InputStream)value)\n                : new Scanner((InputStream)value, charset);\n        } else if (value instanceof File) {\n            try {\n                scanner = charset == null ? new Scanner((File)value) : new Scanner((File)value, charset);\n            } catch (FileNotFoundException e) {\n                throw new RuntimeCamelException(e);\n            }\n        } else if (value instanceof String) {\n            scanner = new Scanner((String)value);\n        } else if (value instanceof ReadableByteChannel) {\n            scanner = charset == null ? new Scanner((ReadableByteChannel)value)\n                : new Scanner((ReadableByteChannel)value, charset);\n        }\n\n        if (scanner == null) {\n            String text = exchange.getContext().getTypeConverter().convertTo(String.class, exchange, value);\n            if (text != null) {\n                scanner = new Scanner(text);\n            }\n        }\n        \n        if (scanner == null) {\n            scanner = new Scanner(\"\");\n        }\n        return scanner;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "TRY", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CATCH", "COND_EXPR", "CALL", "ASSIGN", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [4, 12], [9, 13], [3, 14], [3, 15], [10, 16], [11, 17], [11, 18], [5, 19], [6, 20], [2, 21], [14, 22], [17, 23], [17, 24], [4, 25], [21, 26], [22, 27], [15, 28], [23, 29], [23, 30], [17, 31], [11, 32], [25, 33], [26, 34], [14, 35], [28, 36], [28, 37], [29, 38], [31, 39], [32, 40], [35, 41], [23, 42], [39, 43], [31, 44], [40, 45], [40, 46], [40, 47], [29, 48], [42, 49], [43, 50], [44, 51], [47, 52], [48, 53], [51, 54], [51, 55], [51, 56], [53, 57], [53, 58], [53, 59], [56, 60], [59, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 4], [13, 9], [14, 3], [15, 3], [16, 10], [17, 11], [18, 11], [19, 5], [20, 6], [21, 2], [22, 14], [23, 17], [24, 17], [25, 4], [26, 21], [27, 22], [28, 15], [29, 23], [30, 23], [31, 17], [32, 11], [33, 25], [34, 26], [35, 14], [36, 28], [37, 28], [38, 29], [39, 31], [40, 32], [41, 35], [42, 23], [43, 39], [44, 31], [45, 40], [46, 40], [47, 40], [48, 29], [49, 42], [50, 43], [51, 44], [52, 47], [53, 48], [54, 51], [55, 51], [56, 51], [57, 53], [58, 53], [59, 53], [60, 56], [61, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "regexReplaceAll", "code": "    public static <E extends Exchange> Expression<E> regexReplaceAll(final Expression<E> expression,\n                                                                     final String regex, final String replacement) {\n        final Pattern pattern = Pattern.compile(regex);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                if (text == null) {\n                    return null;\n                }\n                return pattern.matcher(text).replaceAll(replacement);\n            }\n\n            @Override\n            public String toString() {\n                return \"regexReplaceAll(\" + expression + \", \" + pattern.pattern() + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "CALL", "RETURN", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [2, 9], [7, 10], [8, 11], [8, 12], [8, 13], [8, 14], [10, 15], [11, 16], [12, 17], [15, 18], [15, 19], [16, 20], [12, 21], [17, 22], [13, 23], [19, 24], [19, 25], [21, 26], [25, 27], [25, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 2], [10, 7], [11, 8], [12, 8], [13, 8], [14, 8], [15, 10], [16, 11], [17, 12], [18, 15], [19, 15], [20, 16], [21, 12], [22, 17], [23, 13], [24, 19], [25, 19], [26, 21], [27, 25], [28, 25], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "regexReplaceAll", "code": "    public static <E extends Exchange> Expression<E> regexReplaceAll(final Expression<E> expression,\n                                                                     String regex,\n                                                                     final Expression<E> replacementExpression) {\n        final Pattern pattern = Pattern.compile(regex);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                String replacement = evaluateStringExpression(replacementExpression, exchange);\n                if (text == null || replacement == null) {\n                    return null;\n                }\n                return pattern.matcher(text).replaceAll(replacement);\n            }\n\n            @Override\n            public String toString() {\n                return \"regexReplaceAll(\" + expression + \", \" + pattern.pattern() + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "CALL", "RETURN", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [2, 9], [7, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 15], [10, 16], [11, 17], [12, 18], [16, 19], [16, 20], [17, 21], [12, 22], [18, 23], [18, 24], [13, 25], [14, 26], [20, 27], [20, 28], [22, 29], [23, 30], [24, 31], [28, 32], [28, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 2], [10, 7], [11, 8], [12, 8], [13, 8], [14, 8], [15, 8], [16, 10], [17, 11], [18, 12], [19, 16], [20, 16], [21, 17], [22, 12], [23, 18], [24, 18], [25, 13], [26, 14], [27, 20], [28, 20], [29, 22], [30, 23], [31, 24], [32, 28], [33, 28], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "append", "code": "    public static <E extends Exchange> Expression<E> append(final Expression<E> left,\n                                                            final Expression<E> right) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return evaluateStringExpression(left, exchange) + evaluateStringExpression(right, exchange);\n            }\n\n            @Override\n            public String toString() {\n                return \"append(\" + left + \", \" + right + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [7, 10], [8, 11], [10, 12], [10, 13], [11, 14], [11, 15], [13, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 7], [11, 8], [12, 10], [13, 10], [14, 11], [15, 11], [16, 13], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "evaluateStringExpression", "code": "    public static <E extends Exchange> String evaluateStringExpression(Expression<E> expression, E exchange) {\n        Object value = expression.evaluate(exchange);\n        return exchange.getContext().getTypeConverter().convertTo(String.class, exchange, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "systemProperty", "code": "    public static <E extends Exchange> Expression<E> systemProperty(final String name) {\n        return systemProperty(name, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "systemProperty", "code": "    public static <E extends Exchange> Expression<E> systemProperty(final String name,\n                                                                    final String defaultValue) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return System.getProperty(name, defaultValue);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "concatExpression", "code": "    public static <E extends Exchange> Expression<E> concatExpression(final Collection<Expression> expressions) {\n        return concatExpression(expressions, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "concatExpression", "code": "    public static <E extends Exchange> Expression<E> concatExpression(final Collection<Expression> expressions, final String expression) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                StringBuffer buffer = new StringBuffer();\n                for (Expression<E> expression : expressions) {\n                    String text = evaluateStringExpression(expression, exchange);\n                    if (text != null) {\n                        buffer.append(text);\n                    }\n                }\n                return buffer.toString();\n            }\n\n            @Override\n            public String toString() {\n                if (expression != null) {\n                    return expression;\n                } else {\n                    return \"concat\" + expressions;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "IF", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [6, 10], [6, 11], [7, 12], [8, 13], [7, 14], [7, 15], [12, 16], [9, 17], [9, 18], [10, 19], [14, 20], [17, 21], [20, 22], [21, 23], [18, 24], [17, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 6], [11, 6], [12, 7], [13, 8], [14, 7], [15, 7], [16, 12], [17, 9], [18, 9], [19, 10], [20, 14], [21, 17], [22, 20], [23, 21], [24, 18], [25, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "messageIdExpression", "code": "    public static <E extends Exchange> Expression<E> messageIdExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getMessageId();\n            }\n\n            @Override\n            public String toString() {\n                return \"messageId\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "dateExpression", "code": "    public static <E extends Exchange> Expression<E> dateExpression(final String command, final String pattern) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Date date;\n                if (\"now\".equals(command)) {\n                    date = new Date();\n                } else if (command.startsWith(\"header.\") || command.startsWith(\"in.header.\")) {\n                    String key = command.substring(command.lastIndexOf(\".\") + 1);\n                    date = exchange.getIn().getHeader(key, Date.class);\n                    if (date == null) {\n                        throw new IllegalArgumentException(\"Could not find java.util.Date object at \" + command);\n                    }\n                } else if (command.startsWith(\"out.header.\")) {\n                    String key = command.substring(command.lastIndexOf(\".\") + 1);\n                    date = exchange.getOut().getHeader(key, Date.class);\n                    if (date == null) {\n                        throw new IllegalArgumentException(\"Could not find java.util.Date object at \" + command);\n                    }\n                } else {\n                    throw new IllegalArgumentException(\"Command not supported for dateExpression: \" + command);\n                }\n\n                SimpleDateFormat df = new SimpleDateFormat(pattern);\n                return df.format(date);\n            }\n\n            @Override\n            public String toString() {\n                return \"date(\" + command + \":\" + pattern + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [7, 13], [8, 14], [10, 15], [10, 16], [13, 17], [13, 18], [9, 19], [15, 20], [15, 21], [16, 22], [18, 23], [20, 24], [15, 25], [15, 26], [21, 27], [21, 28], [10, 29], [23, 30], [23, 31], [20, 32], [20, 33], [20, 34], [24, 35], [25, 36], [15, 37], [27, 38], [28, 39], [29, 40], [31, 41], [32, 42], [33, 43], [20, 44], [25, 45], [36, 46], [37, 47], [26, 48], [42, 49], [33, 50], [43, 51], [44, 52], [34, 53], [45, 54], [47, 55], [48, 56], [49, 57], [50, 58], [52, 59], [53, 60], [54, 61], [56, 62], [56, 63], [58, 64], [60, 65], [60, 66], [61, 67], [63, 68], [64, 69], [66, 70], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 6], [11, 6], [12, 6], [13, 7], [14, 8], [15, 10], [16, 10], [17, 13], [18, 13], [19, 9], [20, 15], [21, 15], [22, 16], [23, 18], [24, 20], [25, 15], [26, 15], [27, 21], [28, 21], [29, 10], [30, 23], [31, 23], [32, 20], [33, 20], [34, 20], [35, 24], [36, 25], [37, 15], [38, 27], [39, 28], [40, 29], [41, 31], [42, 32], [43, 33], [44, 20], [45, 25], [46, 36], [47, 37], [48, 26], [49, 42], [50, 33], [51, 43], [52, 44], [53, 34], [54, 45], [55, 47], [56, 48], [57, 49], [58, 50], [59, 52], [60, 53], [61, 54], [62, 56], [63, 56], [64, 58], [65, 60], [66, 60], [67, 61], [68, 63], [69, 64], [70, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "simpleExpression", "code": "    public static <E extends Exchange> Expression<E> simpleExpression(final String simple) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return SimpleLanguage.simple(simple).evaluate(exchange);\n            }\n\n            @Override\n            public String toString() {\n                return \"simple(\" + simple + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "beanExpression", "code": "    public static <E extends Exchange> Expression<E> beanExpression(final String bean) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return BeanLanguage.bean(bean).evaluate(exchange);\n            }\n\n            @Override\n            public String toString() {\n                return \"bean(\" + bean + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "ExpressionBuilder", "code": "    private ExpressionBuilder() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ivy-2.0-3297", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/latest/LatestRevisionStrategy.java", "language": "java", "name": "org.apache.ivy.plugins.latest.LatestRevisionStrategy", "code": "public class LatestRevisionStrategy extends ComparatorLatestStrategy {\n    /**\n     * Compares two ModuleRevisionId by their revision. Revisions are compared using an algorithm\n     * inspired by PHP version_compare one.\n     */\n    final class MridComparator implements Comparator {\n        public int compare(Object o1, Object o2) {\n            String rev1 = ((ModuleRevisionId) o1).getRevision();\n            String rev2 = ((ModuleRevisionId) o2).getRevision();\n        \n            rev1 = rev1.replaceAll(\"([a-zA-Z])(\\\\d)\", \"$1.$2\");\n            rev1 = rev1.replaceAll(\"(\\\\d)([a-zA-Z])\", \"$1.$2\");\n            rev2 = rev2.replaceAll(\"([a-zA-Z])(\\\\d)\", \"$1.$2\");\n            rev2 = rev2.replaceAll(\"(\\\\d)([a-zA-Z])\", \"$1.$2\");\n        \n            String[] parts1 = rev1.split(\"[\\\\._\\\\-\\\\+]\");\n            String[] parts2 = rev2.split(\"[\\\\._\\\\-\\\\+]\");\n        \n            int i = 0;\n            for (; i < parts1.length && i < parts2.length; i++) {\n                if (parts1[i].equals(parts2[i])) {\n                    continue;\n                }\n                boolean is1Number = isNumber(parts1[i]);\n                boolean is2Number = isNumber(parts2[i]);\n                if (is1Number && !is2Number) {\n                    return 1;\n                }\n                if (is2Number && !is1Number) {\n                    return -1;\n                }\n                if (is1Number && is2Number) {\n                    return Long.valueOf(parts1[i]).compareTo(Long.valueOf(parts2[i]));\n                }\n                // both are strings, we compare them taking into account special meaning\n                Map specialMeanings = getSpecialMeanings();\n                Integer sm1 = (Integer) specialMeanings.get(parts1[i].toLowerCase(Locale.US));\n                Integer sm2 = (Integer) specialMeanings.get(parts2[i].toLowerCase(Locale.US));\n                if (sm1 != null) {\n                    sm2 = sm2 == null ? new Integer(0) : sm2;\n                    return sm1.compareTo(sm2);\n                }\n                if (sm2 != null) {\n                    return new Integer(0).compareTo(sm2);\n                }\n                return parts1[i].compareTo(parts2[i]);\n            }\n            if (i < parts1.length) {\n                return isNumber(parts1[i]) ? 1 : -1;\n            }\n            if (i < parts2.length) {\n                return isNumber(parts2[i]) ? -1 : 1;\n            }\n            return 0;\n        }\n\n        private boolean isNumber(String str) {\n            return str.matches(\"\\\\d+\");\n        }\n    }\n\n    /**\n     * Compares two ArtifactInfo by their revision. Revisions are compared using an algorithm\n     * inspired by PHP version_compare one, unless a dynamic revision is given, in which case the\n     * version matcher is used to perform the comparison.\n     */\n    final class ArtifactInfoComparator implements Comparator {\n        public int compare(Object o1, Object o2) {\n            String rev1 = ((ArtifactInfo) o1).getRevision();\n            String rev2 = ((ArtifactInfo) o2).getRevision();\n        \n            /*\n             * The revisions can still be not resolved, so we use the current version matcher to\n             * know if one revision is dynamic, and in this case if it should be considered greater\n             * or lower than the other one. Note that if the version matcher compare method returns\n             * 0, it's because it's not possible to know which revision is greater. In this case we\n             * consider the dynamic one to be greater, because most of the time it will then be\n             * actually resolved and a real comparison will occur.\n             */\n            VersionMatcher vmatcher = IvyContext.getContext().getSettings().getVersionMatcher();\n            ModuleRevisionId mrid1 = ModuleRevisionId.newInstance(\"\", \"\", rev1);\n            ModuleRevisionId mrid2 = ModuleRevisionId.newInstance(\"\", \"\", rev2);\n            if (vmatcher.isDynamic(mrid1)) {\n                int c = vmatcher.compare(mrid1, mrid2, mridComparator);\n                return c >= 0 ? 1 : -1;\n            } else if (vmatcher.isDynamic(mrid2)) {\n                int c = vmatcher.compare(mrid2, mrid1, mridComparator);\n                return c >= 0 ? -1 : 1;\n            }\n        \n            return mridComparator.compare(mrid1, mrid2);\n        }\n    }\n\n    public static class SpecialMeaning {\n        private String name;\n\n        private Integer value;\n\n        public String getName() {\n            return name;\n        }\n\n        public void setName(String name) {\n            this.name = name;\n        }\n\n        public Integer getValue() {\n            return value;\n        }\n\n        public void setValue(Integer value) {\n            this.value = value;\n        }\n\n        public void validate() {\n            if (name == null) {\n                throw new IllegalStateException(\"a special meaning should have a name\");\n            }\n            if (value == null) {\n                throw new IllegalStateException(\"a special meaning should have a value\");\n            }\n        }\n    }\n\n    private static final Map DEFAULT_SPECIAL_MEANINGS;\n    static {\n        DEFAULT_SPECIAL_MEANINGS = new HashMap();\n        DEFAULT_SPECIAL_MEANINGS.put(\"dev\", new Integer(-1));\n        DEFAULT_SPECIAL_MEANINGS.put(\"rc\", new Integer(1));\n        DEFAULT_SPECIAL_MEANINGS.put(\"final\", new Integer(2));\n    }\n\n    private final Comparator mridComparator = new MridComparator();\n\n    private final Comparator artifactInfoComparator = new ArtifactInfoComparator();\n\n    private Map specialMeanings = null;\n\n    private boolean usedefaultspecialmeanings = true;\n\n    public LatestRevisionStrategy() {\n        setComparator(artifactInfoComparator);\n        setName(\"latest-revision\");\n    }\n\n    public void addConfiguredSpecialMeaning(SpecialMeaning meaning) {\n        meaning.validate();\n        getSpecialMeanings().put(meaning.getName().toLowerCase(Locale.US), meaning.getValue());\n    }\n\n    public synchronized Map getSpecialMeanings() {\n        if (specialMeanings == null) {\n            specialMeanings = new HashMap();\n            if (isUsedefaultspecialmeanings()) {\n                specialMeanings.putAll(DEFAULT_SPECIAL_MEANINGS);\n            }\n        }\n        return specialMeanings;\n    }\n\n    public boolean isUsedefaultspecialmeanings() {\n        return usedefaultspecialmeanings;\n    }\n\n    public void setUsedefaultspecialmeanings(boolean usedefaultspecialmeanings) {\n        this.usedefaultspecialmeanings = usedefaultspecialmeanings;", "functions": [{"function_name": "addConfiguredSpecialMeaning", "code": "    public void addConfiguredSpecialMeaning(SpecialMeaning meaning) {\n        meaning.validate();\n        getSpecialMeanings().put(meaning.getName().toLowerCase(Locale.US), meaning.getValue());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSpecialMeanings", "code": "    public synchronized Map getSpecialMeanings() {\n        if (specialMeanings == null) {\n            specialMeanings = new HashMap();\n            if (isUsedefaultspecialmeanings()) {\n                specialMeanings.putAll(DEFAULT_SPECIAL_MEANINGS);\n            }\n        }\n        return specialMeanings;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [2, 7], [7, 8], [4, 9], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 2], [8, 7], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isUsedefaultspecialmeanings", "code": "    public boolean isUsedefaultspecialmeanings() {\n        return usedefaultspecialmeanings;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUsedefaultspecialmeanings", "code": "    public void setUsedefaultspecialmeanings(boolean usedefaultspecialmeanings) {\n        this.usedefaultspecialmeanings = usedefaultspecialmeanings;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LatestRevisionStrategy", "code": "    public LatestRevisionStrategy() {\n        setComparator(artifactInfoComparator);\n        setName(\"latest-revision\");", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.6-7933", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/dom2dtm/DOM2DTM.java", "language": "java", "name": "org.apache.xml.dtm.ref.dom2dtm.DOM2DTM", "code": "public class DOM2DTM extends DTMDefaultBaseIterators\n{\n  static final boolean JJK_DEBUG=false;\n  static final boolean JJK_NEWCODE=true;\n  \n  /** Manefest constant\n   */\n  \n  /** The current position in the DOM tree. Last node examined for\n   * possible copying to DTM. */\n  transient private Node m_pos;\n  /** The current position in the DTM tree. Who children get appended to. */\n  private int m_last_parent=0;\n  /** The current position in the DTM tree. Who children reference as their \n   * previous sib. */\n  private int m_last_kid=NULL;\n\n  /** The top of the subtree.\n   * */\n  transient private Node m_root;\n\n  /** True iff the first element has been processed. This is used to control\n      synthesis of the implied xml: namespace declaration node. */\n  boolean m_processedFirstElement=false;\n        \n  /** true if ALL the nodes in the m_root subtree have been processed;\n   * false if our incremental build has not yet finished scanning the\n   * DOM tree.  */\n  transient private boolean m_nodesAreProcessed;\n\n  /** The node objects.  The instance part of the handle indexes\n   * directly into this vector.  Each DTM node may actually be\n   * composed of several DOM nodes (for example, if logically-adjacent\n   * Text/CDATASection nodes in the DOM have been coalesced into a\n   * single DTM Text node); this table points only to the first in\n   * that sequence. */\n  protected Vector m_nodes = new Vector();\n\n  /**\n   * Construct a DOM2DTM object from a DOM node.\n   *\n   * @param mgr The DTMManager who owns this DTM.\n   * @param domSource the DOM source that this DTM will wrap.\n   * @param dtmIdentity The DTM identity ID for this DTM.\n   * @param whiteSpaceFilter The white space filter for this DTM, which may \n   *                         be null.\n   * @param xstringfactory XMLString factory for creating character content.\n   * @param doIndexing true if the caller considers it worth it to use \n   *                   indexing schemes.\n   */\n  public DOM2DTM(DTMManager mgr, DOMSource domSource, \n                 int dtmIdentity, DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing)\n  {\n    super(mgr, domSource, dtmIdentity, whiteSpaceFilter, \n          xstringfactory, doIndexing);\n\n    m_pos=m_root = domSource.getNode();\n    m_last_parent=m_last_kid=NULL;\n    m_last_kid=addNode(m_root, m_last_parent,m_last_kid, NULL);\n\n    if(ELEMENT_NODE == m_root.getNodeType())\n    {\n      NamedNodeMap attrs=m_root.getAttributes();\n      int attrsize=(attrs==null) ? 0 : attrs.getLength();\n      if(attrsize>0)\n      {\n        for(int i=0;i<attrsize;++i)\n        {\n          attrIndex=addNode(attrs.item(i),0,attrIndex,NULL);\n          m_firstch.setElementAt(DTM.NULL,attrIndex);\n        }\n        m_nextsib.setElementAt(DTM.NULL,attrIndex);\n\t  }\n\t}\n    m_nodesAreProcessed = false;\n  }\n\n  /**\n   * Construct the node map from the node.\n   *\n   * @param node The node that is to be added to the DTM.\n   * @param parentIndex The current parent index.\n   * @param previousSibling The previous sibling index.\n   * @param forceNodeType If not DTM.NULL, overrides the DOM node type.\n   *\tUsed to force nodes to Text rather than CDATASection when their\n   *\tcoalesced value includes ordinary Text nodes (current DTM behavior).\n   *\n   * @return The index identity of the node that was added.\n   */\n  protected int addNode(Node node, int parentIndex,\n                        int previousSibling, int forceNodeType)\n  {\n    int nodeIndex = m_nodes.size();\n\n    if(m_dtmIdent.size() == (nodeIndex>>>DTMManager.IDENT_DTM_NODE_BITS))\n    {\n      try\n      {\n        if(m_mgr==null)\n          throw new ClassCastException();\n                                \n        DTMManagerDefault mgrD=(DTMManagerDefault)m_mgr;\n        int id=mgrD.getFirstFreeDTMID();\n        mgrD.addDTM(this,id,nodeIndex);\n        m_dtmIdent.addElement(id<<DTMManager.IDENT_DTM_NODE_BITS);\n      }\n      catch(ClassCastException e)\n      {\n      }\n    }\n\n    m_size++;\n    \n    int type;\n    if(NULL==forceNodeType)\n        type = node.getNodeType();\n    else\n        type=forceNodeType;\n        \n    if (Node.ATTRIBUTE_NODE == type)\n    {\n      String name = node.getNodeName();\n\n      if (name.startsWith(\"xmlns:\") || name.equals(\"xmlns\"))\n      {\n        type = DTM.NAMESPACE_NODE;\n      }\n    }\n    \n    m_nodes.addElement(node);\n    \n    m_firstch.setElementAt(NOTPROCESSED,nodeIndex);\n    m_nextsib.setElementAt(NOTPROCESSED,nodeIndex);\n    m_prevsib.setElementAt(previousSibling,nodeIndex);\n    m_parent.setElementAt(parentIndex,nodeIndex);\n    \n    if(DTM.NULL != parentIndex && \n       type != DTM.ATTRIBUTE_NODE && \n       type != DTM.NAMESPACE_NODE)\n    {\n      if(NOTPROCESSED == m_firstch.elementAt(parentIndex))\n        m_firstch.setElementAt(nodeIndex,parentIndex);\n    }\n    \n    String nsURI = node.getNamespaceURI();\n\n    String localName =  (type == Node.PROCESSING_INSTRUCTION_NODE) ? \n                         node.getNodeName() :\n                         node.getLocalName();\n                         \n    if(((type == Node.ELEMENT_NODE) || (type == Node.ATTRIBUTE_NODE)) \n        && null == localName){}\n      \n    ExpandedNameTable exnt = m_expandedNameTable;\n\n    if(node.getLocalName()==null &&\n       (type==Node.ELEMENT_NODE || type==Node.ATTRIBUTE_NODE))\n      {\n      }\n    \n    int expandedNameID = (null != localName) \n       ? exnt.getExpandedTypeID(nsURI, localName, type) :\n         exnt.getExpandedTypeID(type);\n\n    m_exptype.setElementAt(expandedNameID,nodeIndex);\n    \n    indexNode(expandedNameID, nodeIndex);\n\n    if (DTM.NULL != previousSibling)\n      m_nextsib.setElementAt(nodeIndex,previousSibling);\n\n    if (type == DTM.NAMESPACE_NODE)\n        declareNamespaceInContext(parentIndex,nodeIndex);\n\n    return nodeIndex;\n  }\n  \n  /**\n   * Get the number of nodes that have been added.\n   */\n  public int getNumberOfNodes()\n  {\n    return m_nodes.size();\n  }\n  \n /**\n   * This method iterates to the next node that will be added to the table.\n   * Each call to this method adds a new node to the table, unless the end\n   * is reached, in which case it returns null.\n   *\n   * @return The true if a next node is found or false if \n   *         there are no more nodes.\n   */\n  protected boolean nextNode()\n  {\n    if (m_nodesAreProcessed)\n      return false;\n        \n    Node pos=m_pos; \n    Node next=null;\n    int nexttype=NULL;\n\n    do\n      {\n        if (pos.hasChildNodes()) \n          {\n            next = pos.getFirstChild();\n\n            if(next!=null && DOCUMENT_TYPE_NODE==next.getNodeType())\n              next=next.getNextSibling();\n\n            if(ENTITY_REFERENCE_NODE!=pos.getNodeType())\n              {\n                m_last_parent=m_last_kid;\n                m_last_kid=NULL;\n                if(null != m_wsfilter)\n                {\n                  short wsv =\n                    m_wsfilter.getShouldStripSpace(makeNodeHandle(m_last_parent),this);\n                  boolean shouldStrip = (DTMWSFilter.INHERIT == wsv) \n                    ? getShouldStripWhitespace() \n                    : (DTMWSFilter.STRIP == wsv);\n                  pushShouldStripWhitespace(shouldStrip);\n              }\n          }\n\n        else \n          {\n            if(m_last_kid!=NULL)\n              {\n                if(m_firstch.elementAt(m_last_kid)==NOTPROCESSED)\n                  m_firstch.setElementAt(NULL,m_last_kid);\n              }\n                        \n            while(m_last_parent != NULL)\n              {\n                next = pos.getNextSibling();\n                if(next!=null && DOCUMENT_TYPE_NODE==next.getNodeType())\n                  next=next.getNextSibling();\n\n                if(next!=null)\n                \n                pos=pos.getParentNode();\n                if(pos==null)\n                  {\n                    if(JJK_DEBUG)\n                      {\n                        System.out.println(\"***** DOM2DTM Pop Control Flow problem\");\n                      }\n                  }\n                \n                if(pos!=null && ENTITY_REFERENCE_NODE == pos.getNodeType())\n                  {\n                    if(JJK_DEBUG)\n                      System.out.println(\"***** DOM2DTM popping EntRef\");\n                  }\n                else\n                  {\n                    popShouldStripWhitespace();\n                    if(m_last_kid==NULL){}\n                    else\n                    m_last_parent=m_parent.elementAt(m_last_kid=m_last_parent);\n                  }\n              }\n            if(m_last_parent==NULL)\n              next=null;\n          }\n                \n        if(next!=null)\n          nexttype=next.getNodeType();\n                \n        if (ENTITY_REFERENCE_NODE == nexttype)\n          pos=next;\n      }\n\t  }while (ENTITY_REFERENCE_NODE == nexttype); \n        \n    if(next==null)\n      {\n        m_nextsib.setElementAt(NULL,0);\n        m_nodesAreProcessed = true;\n        m_pos=null;\n                \n        if(JJK_DEBUG)\n          {\n            System.out.println(\"***** DOM2DTM Crosscheck:\");\n            for(int i=0;i<m_nodes.size();++i)\n              System.out.println(i+\":\\t\"+m_firstch.elementAt(i)+\"\\t\"+m_nextsib.elementAt(i));\n          }\n                \n        return false;\n      }\n\n        \n    boolean suppressNode=false;\n    Node lastTextNode=null;\n\n    nexttype=next.getNodeType();\n        \n    if(TEXT_NODE == nexttype || CDATA_SECTION_NODE == nexttype)\n      {\n        suppressNode=((null != m_wsfilter) && getShouldStripWhitespace());\n\n        Node n=next;\n        while(n!=null)\n          {\n            lastTextNode=n;\n            if(TEXT_NODE == n.getNodeType())\n              nexttype=TEXT_NODE;\n            suppressNode &=\n              XMLCharacterRecognizer.isWhiteSpace(n.getNodeValue());\n                        \n            n=logicalNextDOMTextNode(n);\n          }\n      }\n        \n    else if(PROCESSING_INSTRUCTION_NODE==nexttype)\n      {\n        suppressNode = (pos.getNodeName().toLowerCase().equals(\"xml\"));\n      }\n        \n        \n    if(!suppressNode)\n      {\n        int nextindex=addNode(next,m_last_parent,m_last_kid,\n\t\t\t      nexttype);\n\t\n        m_last_kid=nextindex;\n\n        if(ELEMENT_NODE == nexttype)\n          {\n            NamedNodeMap attrs=next.getAttributes();\n            int attrsize=(attrs==null) ? 0 : attrs.getLength();\n            if(attrsize>0)\n              {\n                for(int i=0;i<attrsize;++i)\n                  {\n                    attrIndex=addNode(attrs.item(i),\n                                      nextindex,attrIndex,NULL);\n                    m_firstch.setElementAt(DTM.NULL,attrIndex);\n\n                    if(!m_processedFirstElement\n                       && \"xmlns:xml\".equals(attrs.item(i).getNodeName()))\n                      m_processedFirstElement=true; \n                  }\n\t\t\t  }\n            if(!m_processedFirstElement)\n            {\n              attrIndex=addNode(new DOM2DTMdefaultNamespaceDeclarationNode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Element)next,\"xml\",NAMESPACE_DECL_NS,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmakeNodeHandle(((attrIndex==NULL)?nextindex:attrIndex)+1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n                                nextindex,attrIndex,NULL);      \n              m_firstch.setElementAt(DTM.NULL,attrIndex);\n              m_processedFirstElement=true;\n            }\n            if(attrIndex!=NULL)\n              m_nextsib.setElementAt(DTM.NULL,attrIndex);\n\t\t  }\n    if(TEXT_NODE == nexttype || CDATA_SECTION_NODE == nexttype)\n      {\n                \n      }\n\t  }\n    m_pos=next;\n    return true;\n  }  \n\n\n  /**\n   * Return an DOM node for the given node.\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return A node representation of the DTM node.\n   */\n  public Node getNode(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n\n    return (Node) m_nodes.elementAt(identity);\n  }\n\n  /**\n   * Get a Node from an identity index.\n   *\n   * NEEDSDOC @param nodeIdentity\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  protected Node lookupNode(int nodeIdentity)\n  {\n    return (Node) m_nodes.elementAt(nodeIdentity);\n  }\n\n  /**\n   * Get the next node identity value in the list, and call the iterator\n   * if it hasn't been added yet.\n   *\n   * @param identity The node identity (index).\n   * @return identity+1, or DTM.NULL.\n   */\n  protected int getNextNodeIdentity(int identity)\n  {\n\n    identity += 1;\n\n    if (identity >= m_nodes.size())\n    {\n      if (!nextNode())\n        identity = DTM.NULL;\n    }\n\n    return identity;\n  }\n\n  /**\n   * Get the handle from a Node.\n   * <p>%OPT% This will be pretty slow.</p>\n   *\n   * <p>%OPT% An XPath-like search (walk up DOM to root, tracking path;\n   * walk down DTM reconstructing path) might be considerably faster\n   * on later nodes in large documents. That might also imply improving\n   * this call to handle nodes which would be in this DTM but\n   * have not yet been built, which might or might not be a Good Thing.</p>\n   * \n   * %REVIEW% This relies on being able to test node-identity via\n   * object-identity. DTM2DOM proxying is a great example of a case where\n   * that doesn't work. DOM Level 3 will provide the isSameNode() method\n   * to fix that, but until then this is going to be flaky.\n   *\n   * @param node A node, which may be null.\n   *\n   * @return The node handle or <code>DTM.NULL</code>.\n   */\n  private int getHandleFromNode(Node node)\n  {\n    if (null != node)\n    {\n      int len = m_nodes.size();        \n      boolean isMore;\n      int i = 0;\n      do\n      {          \n        for (; i < len; i++)\n        {\n          if (m_nodes.elementAt(i) == node)\n            return makeNodeHandle(i);\n        }\n\n        isMore = nextNode();\n  \n        len = m_nodes.size();\n            \n      } \n      while(isMore || i < len);\n    }\n    \n    return DTM.NULL;\n  }\n\n  /** Get the handle from a Node. This is a more robust version of\n   * getHandleFromNode, intended to be usable by the public.\n   *\n   * <p>%OPT% This will be pretty slow.</p>\n   * \n   * %REVIEW% This relies on being able to test node-identity via\n   * object-identity. DTM2DOM proxying is a great example of a case where\n   * that doesn't work. DOM Level 3 will provide the isSameNode() method\n   * to fix that, but until then this is going to be flaky.\n   *\n   * @param node A node, which may be null.\n   *\n   * @return The node handle or <code>DTM.NULL</code>.  */\n  public int getHandleOfNode(Node node)\n  {\n    if (null != node)\n    {\n      if((m_root==node) ||\n         (m_root.getNodeType()==DOCUMENT_NODE &&\n          m_root==node.getOwnerDocument()) ||\n         (m_root.getNodeType()!=DOCUMENT_NODE &&\n          m_root.getOwnerDocument()==node.getOwnerDocument())\n         )\n        {\n          for(Node cursor=node;\n              cursor!=null;\n              cursor=\n                (cursor.getNodeType()!=ATTRIBUTE_NODE)\n                ? cursor.getParentNode()\n                : ((org.w3c.dom.Attr)cursor).getOwnerElement())\n            {\n              if(cursor==m_root)\n                return getHandleFromNode(node); \n\t\t\t}\n\t\t}\n\t}\n    return DTM.NULL;\n  }\n\n  /**\n   * Retrieves an attribute node by by qualified name and namespace URI.\n   *\n   * @param nodeHandle int Handle of the node upon which to look up this attribute..\n   * @param namespaceURI The namespace URI of the attribute to\n   *   retrieve, or null.\n   * @param name The local name of the attribute to\n   *   retrieve.\n   * @return The attribute node handle with the specified name (\n   *   <code>nodeName</code>) or <code>DTM.NULL</code> if there is no such\n   *   attribute.\n   */\n  public int getAttributeNode(int nodeHandle, String namespaceURI,\n                              String name)\n  {\n\n    if (null == namespaceURI)\n      namespaceURI = \"\";\n\n    int type = getNodeType(nodeHandle);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n\n      int identity = makeNodeIdentity(nodeHandle);\n\n      while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n      {\n        type = _type(identity);\n\n        if (type == DTM.ATTRIBUTE_NODE || type==DTM.NAMESPACE_NODE)\n        {\n          Node node = lookupNode(identity);\n          String nodeuri = node.getNamespaceURI();\n\n          if (null == nodeuri)\n            nodeuri = \"\";\n\n          String nodelocalname = node.getLocalName();\n\n          if (nodeuri.equals(namespaceURI) && name.equals(nodelocalname))\n            return makeNodeHandle(identity);\n        }\n\t\t\t\t\n        {\n          break;\n        }\n      }\n    }\n\n    return DTM.NULL;\n  }\n\n  /**\n   * Get the string-value of a node as a String object\n   * for the definition of a node's string-value).\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return A string object that represents the string-value of the given node.\n   */\n  public XMLString getStringValue(int nodeHandle)\n  {\n\n    int type = getNodeType(nodeHandle);\n    Node node = getNode(nodeHandle);\n    if(DTM.ELEMENT_NODE == type || DTM.DOCUMENT_NODE == type \n    || DTM.DOCUMENT_FRAGMENT_NODE == type)\n    {\n      FastStringBuffer buf = StringBufferPool.get();\n      String s;\n  \n      try\n      {\n        getNodeData(node, buf);\n  \n        s = (buf.length() > 0) ? buf.toString() : \"\";\n      }\n      finally\n      {\n        StringBufferPool.free(buf);\n      }\n  \n      return m_xstrf.newstr( s );\n    }\n    else if(TEXT_NODE == type || CDATA_SECTION_NODE == type)\n    {\n      FastStringBuffer buf = StringBufferPool.get();\n      while(node!=null)\n      {\n        buf.append(node.getNodeValue());\n        node=logicalNextDOMTextNode(node);\n      }\n      String s=(buf.length() > 0) ? buf.toString() : \"\";\n      StringBufferPool.free(buf);\n      return m_xstrf.newstr( s );\n    }\n    else\n      return m_xstrf.newstr( node.getNodeValue() );\n  }\n  \n  /**\n   * Determine if the string-value of a node is whitespace\n   *\n   * @param nodeHandle The node Handle.\n   *\n   * @return Return true if the given node is whitespace.\n   */\n  public boolean isWhitespace(int nodeHandle)\n  {\n  \tint type = getNodeType(nodeHandle);\n    Node node = getNode(nodeHandle);\n  \tif(TEXT_NODE == type || CDATA_SECTION_NODE == type)\n    {\n      FastStringBuffer buf = StringBufferPool.get();\n      while(node!=null)\n      {\n        buf.append(node.getNodeValue());\n        node=logicalNextDOMTextNode(node);\n      }\n     boolean b = buf.isWhitespace(0, buf.length());\n      StringBufferPool.free(buf);\n     return b;\n    }\n    return false;\n  }\n  \n  /**\n   * Retrieve the text content of a DOM subtree, appending it into a\n   * user-supplied FastStringBuffer object. Note that attributes are\n   * not considered part of the content of an element.\n   * <p>\n   * There are open questions regarding whitespace stripping. \n   * Currently we make no special effort in that regard, since the standard\n   * DOM doesn't yet provide DTD-based information to distinguish\n   * whitespace-in-element-context from genuine #PCDATA. Note that we\n   * should probably also consider xml:space if/when we address this.\n   * DOM Level 3 may solve the problem for us.\n   * <p>\n   * %REVIEW% Actually, since this method operates on the DOM side of the\n   * fence rather than the DTM side, it SHOULDN'T do\n   * any special handling. The DOM does what the DOM does; if you want\n   * DTM-level abstractions, use DTM-level methods.\n   *\n   * @param node Node whose subtree is to be walked, gathering the\n   * contents of all Text or CDATASection nodes.\n   * @param buf FastStringBuffer into which the contents of the text\n   * nodes are to be concatenated.\n   */\n  protected static void getNodeData(Node node, FastStringBuffer buf)\n  {\n\n    switch (node.getNodeType())\n    {\n    case Node.DOCUMENT_FRAGMENT_NODE :\n    case Node.DOCUMENT_NODE :\n    case Node.ELEMENT_NODE :\n    {\n      for (Node child = node.getFirstChild(); null != child;\n              child = child.getNextSibling())\n      {\n        getNodeData(child, buf);\n      }\n    }\n    break;\n    case Node.TEXT_NODE :\n    case Node.CDATA_SECTION_NODE :\n      buf.append(node.getNodeValue());\n      break;\n    case Node.PROCESSING_INSTRUCTION_NODE :\n      break;\n    default :\n      break;\n    }\n  }\n\n  /**\n   * Given a node handle, return its DOM-style node name. This will\n   * include names such as #text or #document.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   * %REVIEW% Document when empty string is possible...\n   * %REVIEW-COMMENT% It should never be empty, should it?\n   */\n  public String getNodeName(int nodeHandle)\n  {\n\n    Node node = getNode(nodeHandle);\n\n    return node.getNodeName();\n  }\n\n  /**\n   * Given a node handle, return the XPath node name.  This should be\n   * the name as described by the XPath data model, NOT the DOM-style\n   * name.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   */\n  public String getNodeNameX(int nodeHandle)\n  {\n\n    String name;\n    short type = getNodeType(nodeHandle);\n\n    switch (type)\n    {\n    case DTM.NAMESPACE_NODE :\n    {\n      Node node = getNode(nodeHandle);\n\n      name = node.getNodeName();\n      if(name.startsWith(\"xmlns:\"))\n      {\n        name = QName.getLocalPart(name);\n      }\n      else if(name.equals(\"xmlns\"))\n      {\n        name = \"\";\n      }\n    }\n    break;\n    case DTM.ATTRIBUTE_NODE :\n    case DTM.ELEMENT_NODE :\n    case DTM.ENTITY_REFERENCE_NODE :\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n    {\n      Node node = getNode(nodeHandle);\n\n      name = node.getNodeName();\n    }\n    break;\n    default :\n      name = \"\";\n    }\n\n    return name;\n  }\n\n  /**\n   * Given a node handle, return its XPath-style localname.\n   * (As defined in Namespaces, this is the portion of the name after any\n   * colon character).\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Local name of this node.\n   */\n  public String getLocalName(int nodeHandle)\n  {\n    if(JJK_NEWCODE)\n    {\n      int id=makeNodeIdentity(nodeHandle);\n      if(NULL==id) return null;\n      Node newnode=(Node)m_nodes.elementAt(id);\n      String newname=newnode.getLocalName();\n      if (null == newname)\n      {\n\tString qname = newnode.getNodeName();\n\tif('#'==qname.charAt(0))\n\t{\n\t  newname=\"\";\n\t}\n\telse\n\t{\n\t  int index = qname.indexOf(':');\n\t  newname = (index < 0) ? qname : qname.substring(index + 1);\n\t}\n      }\n      return newname;\n    }\n    else\n    {\n      String name;\n      short type = getNodeType(nodeHandle);\n      switch (type)\n      {\n      case DTM.ATTRIBUTE_NODE :\n      case DTM.ELEMENT_NODE :\n      case DTM.ENTITY_REFERENCE_NODE :\n      case DTM.NAMESPACE_NODE :\n      case DTM.PROCESSING_INSTRUCTION_NODE :\n\t{\n\t  Node node = getNode(nodeHandle);\n\t  \n\t  name = node.getLocalName();\n\t  \n\t  if (null == name)\n\t  {\n\t    String qname = node.getNodeName();\n\t    int index = qname.indexOf(':');\n\t    \n\t    name = (index < 0) ? qname : qname.substring(index + 1);\n\t  }\n\t}\n\tbreak;\n      default :\n\tname = \"\";\n      }\n      return name;\n    }\n  }\n\n  /**\n   * Given a namespace handle, return the prefix that the namespace decl is\n   * mapping.\n   * Given a node handle, return the prefix used to map to the namespace.\n   *\n   * <p> %REVIEW% Are you sure you want \"\" for no prefix?  </p>\n   * <p> %REVIEW-COMMENT% I think so... not totally sure. -sb  </p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String prefix of this node's name, or \"\" if no explicit\n   * namespace prefix was given.\n   */\n  public String getPrefix(int nodeHandle)\n  {\n\n    String prefix;\n    short type = getNodeType(nodeHandle);\n\n    switch (type)\n    {\n    case DTM.NAMESPACE_NODE :\n    {\n      Node node = getNode(nodeHandle);\n\n      String qname = node.getNodeName();\n      int index = qname.indexOf(':');\n\n      prefix = (index < 0) ? \"\" : qname.substring(index + 1);\n    }\n    break;\n    case DTM.ATTRIBUTE_NODE :\n    case DTM.ELEMENT_NODE :\n    {\n      Node node = getNode(nodeHandle);\n\n      String qname = node.getNodeName();\n      int index = qname.indexOf(':');\n\n      prefix = (index < 0) ? \"\" : qname.substring(0, index);\n    }\n    break;\n    default :\n      prefix = \"\";\n    }\n\n    return prefix;\n  }\n\n  /**\n   * Given a node handle, return its DOM-style namespace URI\n   * (As defined in Namespaces, this is the declared URI which this node's\n   * prefix -- or default in lieu thereof -- was mapped to.)\n   *\n   * <p>%REVIEW% Null or \"\"? -sb</p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String URI value of this node's namespace, or null if no\n   * namespace was resolved.\n   */\n  public String getNamespaceURI(int nodeHandle)\n  {\n    if(JJK_NEWCODE)\n    {\n      int id=makeNodeIdentity(nodeHandle);\n      if(id==NULL) return null;\n      Node node=(Node)m_nodes.elementAt(id);\n      return node.getNamespaceURI();\n    }\n    else\n    {\n      String nsuri;\n      short type = getNodeType(nodeHandle);\n      \n      switch (type)\n      {\n      case DTM.ATTRIBUTE_NODE :\n      case DTM.ELEMENT_NODE :\n      case DTM.ENTITY_REFERENCE_NODE :\n      case DTM.NAMESPACE_NODE :\n      case DTM.PROCESSING_INSTRUCTION_NODE :\n\t{\n\t  Node node = getNode(nodeHandle);\n\t  \n\t  nsuri = node.getNamespaceURI();\n\t  \n\t}\n\tbreak;\n      default :\n\tnsuri = null;\n      }\n\n      return nsuri;\n    }\n    \n  }\n  \n  /** Utility function: Given a DOM Text node, determine whether it is\n   * logically followed by another Text or CDATASection node. This may\n   * involve traversing into Entity References.\n   * \n   * %REVIEW% DOM Level 3 is expected to add functionality which may \n   * allow us to retire this.\n   */\n  private Node logicalNextDOMTextNode(Node n)\n  {\n        Node p=n.getNextSibling();\n        if(p==null)\n        {\n                for(n=n.getParentNode();\n                        n!=null && ENTITY_REFERENCE_NODE == n.getNodeType();\n                        n=n.getParentNode())\n                {\n                        p=n.getNextSibling();\n                        if(p!=null)\n                                break;\n                }\n        }\n        n=p;\n        while(n!=null && ENTITY_REFERENCE_NODE == n.getNodeType())\n        {\n                if(n.hasChildNodes())\n                        n=n.getFirstChild();\n                else\n                        n=n.getNextSibling();\n        }\n        if(n!=null)\n        {\n                int ntype=n.getNodeType();\n                if(TEXT_NODE != ntype && CDATA_SECTION_NODE != ntype)\n                        n=null;\n        }\n        return n;\n  }\n\n  /**\n   * Given a node handle, return its node value. This is mostly\n   * as defined by the DOM, but may ignore some conveniences.\n   * <p>\n   *\n   * @param nodeHandle The node id.\n   * @return String Value of this node, or null if not\n   * meaningful for this node type.\n   */\n  public String getNodeValue(int nodeHandle)\n  {\n    int type = _exptype(makeNodeIdentity(nodeHandle));\n    type=(NULL != type) ? getNodeType(nodeHandle) : NULL;\n    \n    if(TEXT_NODE!=type && CDATA_SECTION_NODE!=type)\n      return getNode(nodeHandle).getNodeValue();\n    \n    Node node = getNode(nodeHandle);\n    Node n=logicalNextDOMTextNode(node);\n    if(n==null)\n      return node.getNodeValue();\n    \n    FastStringBuffer buf = StringBufferPool.get();\n        buf.append(node.getNodeValue());\n    while(n!=null)\n    {\n      buf.append(n.getNodeValue());\n      n=logicalNextDOMTextNode(n);\n    }\n    String s = (buf.length() > 0) ? buf.toString() : \"\";\n    StringBufferPool.free(buf);\n    return s;\n  }\n\n  /**\n   *   A document type declaration information item has the following properties:\n   *\n   *     1. [system identifier] The system identifier of the external subset, if\n   *        it exists. Otherwise this property has no value.\n   *\n   * @return the system identifier String object, or null if there is none.\n   */\n  public String getDocumentTypeDeclarationSystemIdentifier()\n  {\n\n    Document doc;\n\n    if (m_root.getNodeType() == Node.DOCUMENT_NODE)\n      doc = (Document) m_root;\n    else\n      doc = m_root.getOwnerDocument();\n\n    if (null != doc)\n    {\n      DocumentType dtd = doc.getDoctype();\n\n      if (null != dtd)\n      {\n        return dtd.getSystemId();\n      }\n    }\n\n    return null;\n  }\n\n  /**\n   * Return the public identifier of the external subset,\n   * normalized as described in 4.2.2 External Entities [XML]. If there is\n   * no external subset or if it has no public identifier, this property\n   * has no value.\n   *\n   * @param the document type declaration handle\n   *\n   * @return the public identifier String object, or null if there is none.\n   */\n  public String getDocumentTypeDeclarationPublicIdentifier()\n  {\n\n    Document doc;\n\n    if (m_root.getNodeType() == Node.DOCUMENT_NODE)\n      doc = (Document) m_root;\n    else\n      doc = m_root.getOwnerDocument();\n\n    if (null != doc)\n    {\n      DocumentType dtd = doc.getDoctype();\n\n      if (null != dtd)\n      {\n        return dtd.getPublicId();\n      }\n    }\n\n    return null;\n  }\n\n  /**\n   * Returns the <code>Element</code> whose <code>ID</code> is given by\n   * <code>elementId</code>. If no such element exists, returns\n   * <code>DTM.NULL</code>. Behavior is not defined if more than one element\n   * has this <code>ID</code>. Attributes (including those\n   * with the name \"ID\") are not of type ID unless so defined by DTD/Schema\n   * information available to the DTM implementation.\n   * Implementations that do not know whether attributes are of type ID or\n   * not are expected to return <code>DTM.NULL</code>.\n   *\n   * <p>%REVIEW% Presumably IDs are still scoped to a single document,\n   * and this operation searches only within a single document, right?\n   * Wouldn't want collisions between DTMs in the same process.</p>\n   *\n   * @param elementId The unique <code>id</code> value for an element.\n   * @return The handle of the matching element.\n   */\n  public int getElementById(String elementId)\n  {\n\n    Document doc = (m_root.getNodeType() == Node.DOCUMENT_NODE) \n        ? (Document) m_root : m_root.getOwnerDocument();\n        \n    if(null != doc)\n    {\n      Node elem = doc.getElementById(elementId);\n      if(null != elem)\n      {\n        int elemHandle = getHandleFromNode(elem);\n        \n        if(DTM.NULL == elemHandle)\n        {\n          int identity = m_nodes.size()-1;\n          while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n          {\n            Node node = getNode(identity);\n            if(node == elem)\n            {\n              elemHandle = getHandleFromNode(elem);\n              break;\n            }\n           }\n        }\n        \n        return elemHandle;\n      }\n    \n    }\n    return DTM.NULL;\n  }\n\n  /**\n   * The getUnparsedEntityURI function returns the URI of the unparsed\n   * entity with the specified name in the same document as the context\n   * node (see [3.3 Unparsed Entities]). It returns the empty string if\n   * there is no such entity.\n   * <p>\n   * XML processors may choose to use the System Identifier (if one\n   * is provided) to resolve the entity, rather than the URI in the\n   * Public Identifier. The details are dependent on the processor, and\n   * we would have to support some form of plug-in resolver to handle\n   * this properly. Currently, we simply return the System Identifier if\n   * present, and hope that it a usable URI or that our caller can\n   * map it to one.\n   * TODO: Resolve Public Identifiers... or consider changing function name.\n   * <p>\n   * If we find a relative URI\n   * reference, XML expects it to be resolved in terms of the base URI\n   * of the document. The DOM doesn't do that for us, and it isn't\n   * entirely clear whether that should be done here; currently that's\n   * pushed up to a higher level of our application. (Note that DOM Level\n   * 1 didn't store the document's base URI.)\n   * TODO: Consider resolving Relative URIs.\n   * <p>\n   * (The DOM's statement that \"An XML processor may choose to\n   * completely expand entities before the structure model is passed\n   * to the DOM\" refers only to parsed entities, not unparsed, and hence\n   * doesn't affect this function.)\n   *\n   * @param name A string containing the Entity Name of the unparsed\n   * entity.\n   *\n   * @return String containing the URI of the Unparsed Entity, or an\n   * empty string if no such entity exists.\n   */\n  public String getUnparsedEntityURI(String name)\n  {\n\n    String url = \"\";\n    Document doc = (m_root.getNodeType() == Node.DOCUMENT_NODE) \n        ? (Document) m_root : m_root.getOwnerDocument();\n\n    if (null != doc)\n    {\n      DocumentType doctype = doc.getDoctype();\n  \n      if (null != doctype)\n      {\n        NamedNodeMap entities = doctype.getEntities();\n        if(null == entities)\n          return url;\n        Entity entity = (Entity) entities.getNamedItem(name);\n        if(null == entity)\n          return url;\n        \n        String notationName = entity.getNotationName();\n  \n        {\n          url = entity.getSystemId();\n  \n          if (null == url)\n          {\n            url = entity.getPublicId();\n          }\n          else\n          {\n          }        \n        }\n      }\n    }\n\n    return url;\n  }\n\n  /**\n   *     5. [specified] A flag indicating whether this attribute was actually\n   *        specified in the start-tag of its element, or was defaulted from the\n   *        DTD.\n   *\n   * @param the attribute handle\n   *\n   * NEEDSDOC @param attributeHandle\n   * @return <code>true</code> if the attribute was specified;\n   *         <code>false</code> if it was defaulted.\n   */\n  public boolean isAttributeSpecified(int attributeHandle)\n  {\n    int type = getNodeType(attributeHandle);\n\n    if (DTM.ATTRIBUTE_NODE == type)\n    {\n      Attr attr = (Attr)getNode(attributeHandle);\n      return attr.getSpecified();\n    }\n    return false;\n  }\n\n  /** Bind an IncrementalSAXSource to this DTM. NOT RELEVANT for DOM2DTM, since\n   * we're wrapped around an existing DOM.\n   *\n   * @param source The IncrementalSAXSource that we want to recieve events from\n   * on demand.\n   */\n  public void setIncrementalSAXSource(IncrementalSAXSource source)\n  {\n  }\n  \n  /** getContentHandler returns \"our SAX builder\" -- the thing that\n   * someone else should send SAX events to in order to extend this\n   * DTM model.\n   *\n   * @return null if this model doesn't respond to SAX events,\n   * \"this\" if the DTM object has a built-in SAX ContentHandler,\n   * the IncrmentalSAXSource if we're bound to one and should receive\n   * the SAX stream via it for incremental build purposes...\n   * */\n  public org.xml.sax.ContentHandler getContentHandler()\n  {\n      return null;\n  }\n  \n  /**\n   * Return this DTM's lexical handler.\n   *\n   * %REVIEW% Should this return null if constrution already done/begun?\n   *\n   * @return null if this model doesn't respond to lexical SAX events,\n   * \"this\" if the DTM object has a built-in SAX ContentHandler,\n   * the IncrementalSAXSource if we're bound to one and should receive\n   * the SAX stream via it for incremental build purposes...\n   */\n  public org.xml.sax.ext.LexicalHandler getLexicalHandler()\n  {\n\n    return null;\n  }\n\n  \n  /**\n   * Return this DTM's EntityResolver.\n   *\n   * @return null if this model doesn't respond to SAX entity ref events.\n   */\n  public org.xml.sax.EntityResolver getEntityResolver()\n  {\n\n    return null;\n  }\n  \n  /**\n   * Return this DTM's DTDHandler.\n   *\n   * @return null if this model doesn't respond to SAX dtd events.\n   */\n  public org.xml.sax.DTDHandler getDTDHandler()\n  {\n\n    return null;\n  }\n\n  /**\n   * Return this DTM's ErrorHandler.\n   *\n   * @return null if this model doesn't respond to SAX error events.\n   */\n  public org.xml.sax.ErrorHandler getErrorHandler()\n  {\n\n    return null;\n  }\n  \n  /**\n   * Return this DTM's DeclHandler.\n   *\n   * @return null if this model doesn't respond to SAX Decl events.\n   */\n  public org.xml.sax.ext.DeclHandler getDeclHandler()\n  {\n\n    return null;\n  }  \n\n  /** @return true iff we're building this model incrementally (eg\n   * we're partnered with a IncrementalSAXSource) and thus require that the\n   * transformation and the parse run simultaneously. Guidance to the\n   * DTMManager.\n   * */\n  public boolean needsTwoThreads()\n  {\n    return false;\n  }\n\n  \n  /**\n   * Returns whether the specified <var>ch</var> conforms to the XML 1.0 definition\n   * the definition of <CODE>S</CODE></A> for details.\n   * @param   ch      Character to check as XML whitespace.\n   * @return          =true if <var>ch</var> is XML whitespace; otherwise =false.\n   */\n  private static boolean isSpace(char ch)\n  {\n  }\n\n  /**\n   * Directly call the\n   * characters method on the passed ContentHandler for the\n   * for the definition of a node's string-value). Multiple calls to the\n   * ContentHandler's characters methods may well occur for a single call to\n   * this method.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchCharactersEvents(\n          int nodeHandle, org.xml.sax.ContentHandler ch, \n          boolean normalize)\n            throws org.xml.sax.SAXException\n  {\n    if(normalize)\n    {\n      XMLString str = getStringValue(nodeHandle);\n      str = str.fixWhiteSpace(true, true, false);\n      str.dispatchCharactersEvents(ch);\n    }\n    else\n    {\n      int type = getNodeType(nodeHandle);\n      Node node = getNode(nodeHandle);\n      dispatchNodeData(node, ch, 0);\n          if(TEXT_NODE == type || CDATA_SECTION_NODE == type)\n          {\n                  while( null != (node=logicalNextDOMTextNode(node)) )\n                  {\n                      dispatchNodeData(node, ch, 0);\n                  }\n          }\n    }\n  }\n  \n  /**\n   * Retrieve the text content of a DOM subtree, appending it into a\n   * user-supplied FastStringBuffer object. Note that attributes are\n   * not considered part of the content of an element.\n   * <p>\n   * There are open questions regarding whitespace stripping. \n   * Currently we make no special effort in that regard, since the standard\n   * DOM doesn't yet provide DTD-based information to distinguish\n   * whitespace-in-element-context from genuine #PCDATA. Note that we\n   * should probably also consider xml:space if/when we address this.\n   * DOM Level 3 may solve the problem for us.\n   * <p>\n   * %REVIEW% Note that as a DOM-level operation, it can be argued that this\n   * routine _shouldn't_ perform any processing beyond what the DOM already\n   * does, and that whitespace stripping and so on belong at the DTM level.\n   * If you want a stripped DOM view, wrap DTM2DOM around DOM2DTM.\n   *\n   * @param node Node whose subtree is to be walked, gathering the\n   * contents of all Text or CDATASection nodes.\n   * @param buf FastStringBuffer into which the contents of the text\n   * nodes are to be concatenated.\n   */\n  protected static void dispatchNodeData(Node node, \n                                         org.xml.sax.ContentHandler ch, \n                                         int depth)\n            throws org.xml.sax.SAXException\n  {\n\n    switch (node.getNodeType())\n    {\n    case Node.DOCUMENT_FRAGMENT_NODE :\n    case Node.DOCUMENT_NODE :\n    case Node.ELEMENT_NODE :\n    {\n      for (Node child = node.getFirstChild(); null != child;\n              child = child.getNextSibling())\n      {\n        dispatchNodeData(child, ch, depth+1);\n      }\n    }\n    break;\n    case Node.COMMENT_NODE :\n      if(0 != depth)\n        break;\n    case Node.TEXT_NODE :\n    case Node.CDATA_SECTION_NODE :\n    case Node.ATTRIBUTE_NODE :\n      String str = node.getNodeValue();\n      if(ch instanceof CharacterNodeHandler)\n      {\n        ((CharacterNodeHandler)ch).characters(node);\n      }\n      else\n      {\n        ch.characters(str.toCharArray(), 0, str.length());\n      }\n      break;\n    default :\n      break;\n    }\n  }\n  \n  TreeWalker m_walker = new TreeWalker(null);\n  \n  /**\n   * Directly create SAX parser events from a subtree.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n    TreeWalker treeWalker = m_walker;\n    ContentHandler prevCH = treeWalker.getContentHandler();\n    \n    if(null != prevCH)\n    {\n      treeWalker = new TreeWalker(null);\n    }\n    treeWalker.setContentHandler(ch);\n    \n    try\n    {\n      Node node = getNode(nodeHandle);\n      treeWalker.traverse(node);\n    }\n    finally\n    {\n      treeWalker.setContentHandler(null);\n    }\n  }\n  \n  public interface CharacterNodeHandler\n  {\n    public void characters(Node node)\n            throws org.xml.sax.SAXException;\n  }\n\n  /**\n   * For the moment all the run time properties are ignored by this\n   * class.\n   *\n   * @param property a <code>String</code> value\n   * @param value an <code>Object</code> value\n   */\n  public void setProperty(String property, Object value)\n  {\n  }\n  \n  /**\n   * No source information is available for DOM2DTM, so return\n   * <code>null</code> here.\n   *\n   * @param node an <code>int</code> value\n   * @return null\n   */\n  public SourceLocator getSourceLocatorFor(int node)\n  {\n    return null;", "functions": [{"function_name": "addNode", "code": "  protected int addNode(Node node, int parentIndex,\n                        int previousSibling, int forceNodeType)\n  {\n    int nodeIndex = m_nodes.size();\n\n    if(m_dtmIdent.size() == (nodeIndex>>>DTMManager.IDENT_DTM_NODE_BITS))\n    {\n      try\n      {\n        if(m_mgr==null)\n          throw new ClassCastException();\n                                \n        DTMManagerDefault mgrD=(DTMManagerDefault)m_mgr;\n        int id=mgrD.getFirstFreeDTMID();\n        mgrD.addDTM(this,id,nodeIndex);\n        m_dtmIdent.addElement(id<<DTMManager.IDENT_DTM_NODE_BITS);\n      }\n      catch(ClassCastException e)\n      {\n      }\n    }\n\n    m_size++;\n    \n    int type;\n    if(NULL==forceNodeType)\n        type = node.getNodeType();\n    else\n        type=forceNodeType;\n        \n    if (Node.ATTRIBUTE_NODE == type)\n    {\n      String name = node.getNodeName();\n\n      if (name.startsWith(\"xmlns:\") || name.equals(\"xmlns\"))\n      {\n        type = DTM.NAMESPACE_NODE;\n      }\n    }\n    \n    m_nodes.addElement(node);\n    \n    m_firstch.setElementAt(NOTPROCESSED,nodeIndex);\n    m_nextsib.setElementAt(NOTPROCESSED,nodeIndex);\n    m_prevsib.setElementAt(previousSibling,nodeIndex);\n    m_parent.setElementAt(parentIndex,nodeIndex);\n    \n    if(DTM.NULL != parentIndex && \n       type != DTM.ATTRIBUTE_NODE && \n       type != DTM.NAMESPACE_NODE)\n    {\n      if(NOTPROCESSED == m_firstch.elementAt(parentIndex))\n        m_firstch.setElementAt(nodeIndex,parentIndex);\n    }\n    \n    String nsURI = node.getNamespaceURI();\n\n    String localName =  (type == Node.PROCESSING_INSTRUCTION_NODE) ? \n                         node.getNodeName() :\n                         node.getLocalName();\n                         \n    if(((type == Node.ELEMENT_NODE) || (type == Node.ATTRIBUTE_NODE)) \n        && null == localName){}\n      \n    ExpandedNameTable exnt = m_expandedNameTable;\n\n    if(node.getLocalName()==null &&\n       (type==Node.ELEMENT_NODE || type==Node.ATTRIBUTE_NODE))\n      {\n      }\n    \n    int expandedNameID = (null != localName) \n       ? exnt.getExpandedTypeID(nsURI, localName, type) :\n         exnt.getExpandedTypeID(type);\n\n    m_exptype.setElementAt(expandedNameID,nodeIndex);\n    \n    indexNode(expandedNameID, nodeIndex);\n\n    if (DTM.NULL != previousSibling)\n      m_nextsib.setElementAt(nodeIndex,previousSibling);\n\n    if (type == DTM.NAMESPACE_NODE)\n        declareNamespaceInContext(parentIndex,nodeIndex);\n\n    return nodeIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "TRY", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CATCH", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [2, 20], [3, 21], [0, 22], [0, 23], [5, 24], [7, 25], [10, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [11, 32], [12, 33], [14, 34], [2, 35], [3, 36], [4, 37], [24, 38], [24, 39], [25, 40], [25, 41], [8, 42], [9, 43], [10, 44], [26, 45], [26, 46], [11, 47], [11, 48], [12, 49], [12, 50], [14, 51], [34, 52], [34, 53], [15, 54], [37, 55], [37, 56], [37, 57], [38, 58], [38, 59], [39, 60], [39, 61], [40, 62], [41, 63], [41, 64], [42, 65], [42, 66], [42, 67], [44, 68], [46, 69], [46, 70], [47, 71], [50, 72], [51, 73], [51, 74], [51, 75], [51, 76], [57, 77], [44, 78], [68, 79], [71, 80], [71, 81], [48, 82], [51, 83], [51, 84], [76, 85], [76, 86], [47, 87], [80, 88], [81, 89], [83, 90], [74, 91], [85, 92], [86, 93], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 2], [21, 3], [22, 0], [23, 0], [24, 5], [25, 7], [26, 10], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 11], [33, 12], [34, 14], [35, 2], [36, 3], [37, 4], [38, 24], [39, 24], [40, 25], [41, 25], [42, 8], [43, 9], [44, 10], [45, 26], [46, 26], [47, 11], [48, 11], [49, 12], [50, 12], [51, 14], [52, 34], [53, 34], [54, 15], [55, 37], [56, 37], [57, 37], [58, 38], [59, 38], [60, 39], [61, 39], [62, 40], [63, 41], [64, 41], [65, 42], [66, 42], [67, 42], [68, 44], [69, 46], [70, 46], [71, 47], [72, 50], [73, 51], [74, 51], [75, 51], [76, 51], [77, 57], [78, 44], [79, 68], [80, 71], [81, 71], [82, 48], [83, 51], [84, 51], [85, 76], [86, 76], [87, 47], [88, 80], [89, 81], [90, 83], [91, 74], [92, 85], [93, 86], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93]]}, {"function_name": "getNumberOfNodes", "code": "  public int getNumberOfNodes()\n  {\n    return m_nodes.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "nextNode", "code": "  protected boolean nextNode()\n  {\n    if (m_nodesAreProcessed)\n      return false;\n        \n    Node pos=m_pos; \n    Node next=null;\n    int nexttype=NULL;\n\n    do\n      {\n        if (pos.hasChildNodes()) \n          {\n            next = pos.getFirstChild();\n\n            if(next!=null && DOCUMENT_TYPE_NODE==next.getNodeType())\n              next=next.getNextSibling();\n\n            if(ENTITY_REFERENCE_NODE!=pos.getNodeType())\n              {\n                m_last_parent=m_last_kid;\n                m_last_kid=NULL;\n                if(null != m_wsfilter)\n                {\n                  short wsv =\n                    m_wsfilter.getShouldStripSpace(makeNodeHandle(m_last_parent),this);\n                  boolean shouldStrip = (DTMWSFilter.INHERIT == wsv) \n                    ? getShouldStripWhitespace() \n                    : (DTMWSFilter.STRIP == wsv);\n                  pushShouldStripWhitespace(shouldStrip);\n              }\n          }\n\n        else \n          {\n            if(m_last_kid!=NULL)\n              {\n                if(m_firstch.elementAt(m_last_kid)==NOTPROCESSED)\n                  m_firstch.setElementAt(NULL,m_last_kid);\n              }\n                        \n            while(m_last_parent != NULL)\n              {\n                next = pos.getNextSibling();\n                if(next!=null && DOCUMENT_TYPE_NODE==next.getNodeType())\n                  next=next.getNextSibling();\n\n                if(next!=null)\n                \n                pos=pos.getParentNode();\n                if(pos==null)\n                  {\n                    if(JJK_DEBUG)\n                      {\n                        System.out.println(\"***** DOM2DTM Pop Control Flow problem\");\n                      }\n                  }\n                \n                if(pos!=null && ENTITY_REFERENCE_NODE == pos.getNodeType())\n                  {\n                    if(JJK_DEBUG)\n                      System.out.println(\"***** DOM2DTM popping EntRef\");\n                  }\n                else\n                  {\n                    popShouldStripWhitespace();\n                    if(m_last_kid==NULL){}\n                    else\n                    m_last_parent=m_parent.elementAt(m_last_kid=m_last_parent);\n                  }\n              }\n            if(m_last_parent==NULL)\n              next=null;\n          }\n                \n        if(next!=null)\n          nexttype=next.getNodeType();\n                \n        if (ENTITY_REFERENCE_NODE == nexttype)\n          pos=next;\n      }\n\t  }while (ENTITY_REFERENCE_NODE == nexttype); \n        \n    if(next==null)\n      {\n        m_nextsib.setElementAt(NULL,0);\n        m_nodesAreProcessed = true;\n        m_pos=null;\n                \n        if(JJK_DEBUG)\n          {\n            System.out.println(\"***** DOM2DTM Crosscheck:\");\n            for(int i=0;i<m_nodes.size();++i)\n              System.out.println(i+\":\\t\"+m_firstch.elementAt(i)+\"\\t\"+m_nextsib.elementAt(i));\n          }\n                \n        return false;\n      }\n\n        \n    boolean suppressNode=false;\n    Node lastTextNode=null;\n\n    nexttype=next.getNodeType();\n        \n    if(TEXT_NODE == nexttype || CDATA_SECTION_NODE == nexttype)\n      {\n        suppressNode=((null != m_wsfilter) && getShouldStripWhitespace());\n\n        Node n=next;\n        while(n!=null)\n          {\n            lastTextNode=n;\n            if(TEXT_NODE == n.getNodeType())\n              nexttype=TEXT_NODE;\n            suppressNode &=\n              XMLCharacterRecognizer.isWhiteSpace(n.getNodeValue());\n                        \n            n=logicalNextDOMTextNode(n);\n          }\n      }\n        \n    else if(PROCESSING_INSTRUCTION_NODE==nexttype)\n      {\n        suppressNode = (pos.getNodeName().toLowerCase().equals(\"xml\"));\n      }\n        \n        \n    if(!suppressNode)\n      {\n        int nextindex=addNode(next,m_last_parent,m_last_kid,\n\t\t\t      nexttype);\n\t\n        m_last_kid=nextindex;\n\n        if(ELEMENT_NODE == nexttype)\n          {\n            NamedNodeMap attrs=next.getAttributes();\n            int attrsize=(attrs==null) ? 0 : attrs.getLength();\n            if(attrsize>0)\n              {\n                for(int i=0;i<attrsize;++i)\n                  {\n                    attrIndex=addNode(attrs.item(i),\n                                      nextindex,attrIndex,NULL);\n                    m_firstch.setElementAt(DTM.NULL,attrIndex);\n\n                    if(!m_processedFirstElement\n                       && \"xmlns:xml\".equals(attrs.item(i).getNodeName()))\n                      m_processedFirstElement=true; \n                  }\n\t\t\t  }\n            if(!m_processedFirstElement)\n            {\n              attrIndex=addNode(new DOM2DTMdefaultNamespaceDeclarationNode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Element)next,\"xml\",NAMESPACE_DECL_NS,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmakeNodeHandle(((attrIndex==NULL)?nextindex:attrIndex)+1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n                                nextindex,attrIndex,NULL);      \n              m_firstch.setElementAt(DTM.NULL,attrIndex);\n              m_processedFirstElement=true;\n            }\n            if(attrIndex!=NULL)\n              m_nextsib.setElementAt(DTM.NULL,attrIndex);\n\t\t  }\n    if(TEXT_NODE == nexttype || CDATA_SECTION_NODE == nexttype)\n      {\n                \n      }\n\t  }\n    m_pos=next;\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LOOP", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "LOOP", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [3, 14], [3, 15], [0, 16], [6, 17], [7, 18], [11, 19], [2, 20], [2, 21], [2, 22], [14, 23], [3, 24], [3, 25], [15, 26], [15, 27], [16, 28], [4, 29], [5, 30], [6, 31], [6, 32], [17, 33], [7, 34], [9, 35], [19, 36], [20, 37], [21, 38], [2, 39], [24, 40], [3, 41], [31, 42], [6, 43], [6, 44], [6, 45], [34, 46], [37, 47], [37, 48], [21, 49], [21, 50], [21, 51], [21, 52], [21, 53], [22, 54], [14, 55], [24, 56], [40, 57], [41, 58], [32, 59], [43, 60], [44, 61], [45, 62], [34, 63], [34, 64], [34, 65], [34, 66], [49, 67], [51, 68], [55, 69], [24, 70], [24, 71], [56, 72], [24, 73], [58, 74], [58, 75], [59, 76], [32, 77], [63, 78], [64, 79], [65, 80], [66, 81], [34, 82], [49, 83], [51, 84], [68, 85], [52, 86], [53, 87], [70, 88], [71, 89], [56, 90], [72, 91], [75, 92], [59, 93], [76, 94], [77, 95], [63, 96], [64, 97], [79, 98], [65, 99], [65, 100], [65, 101], [65, 102], [80, 103], [66, 104], [81, 105], [81, 106], [82, 107], [50, 108], [50, 109], [50, 110], [84, 111], [86, 112], [86, 113], [86, 114], [89, 115], [93, 116], [59, 117], [97, 118], [99, 119], [100, 120], [101, 121], [102, 122], [65, 123], [65, 124], [104, 125], [105, 126], [106, 127], [108, 128], [110, 129], [84, 130], [114, 131], [116, 132], [116, 133], [99, 134], [100, 135], [100, 136], [100, 137], [100, 138], [101, 139], [102, 140], [102, 141], [122, 142], [129, 143], [130, 144], [84, 145], [84, 146], [84, 147], [133, 148], [133, 149], [134, 150], [135, 151], [136, 152], [137, 153], [138, 154], [100, 155], [139, 156], [102, 157], [143, 158], [143, 159], [130, 160], [144, 161], [146, 162], [149, 163], [149, 164], [135, 165], [135, 166], [151, 167], [151, 168], [136, 169], [152, 170], [137, 171], [153, 172], [138, 173], [154, 174], [154, 175], [155, 176], [139, 177], [156, 178], [140, 179], [141, 180], [158, 181], [160, 182], [161, 183], [162, 184], [164, 185], [165, 186], [135, 187], [167, 188], [168, 189], [171, 190], [173, 191], [174, 192], [175, 193], [179, 194], [179, 195], [179, 196], [180, 197], [181, 198], [181, 199], [183, 200], [165, 201], [166, 202], [199, 203], [200, 204], [201, 205], [202, 206], [169, 207], [205, 208], [207, 209], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 3], [15, 3], [16, 0], [17, 6], [18, 7], [19, 11], [20, 2], [21, 2], [22, 2], [23, 14], [24, 3], [25, 3], [26, 15], [27, 15], [28, 16], [29, 4], [30, 5], [31, 6], [32, 6], [33, 17], [34, 7], [35, 9], [36, 19], [37, 20], [38, 21], [39, 2], [40, 24], [41, 3], [42, 31], [43, 6], [44, 6], [45, 6], [46, 34], [47, 37], [48, 37], [49, 21], [50, 21], [51, 21], [52, 21], [53, 21], [54, 22], [55, 14], [56, 24], [57, 40], [58, 41], [59, 32], [60, 43], [61, 44], [62, 45], [63, 34], [64, 34], [65, 34], [66, 34], [67, 49], [68, 51], [69, 55], [70, 24], [71, 24], [72, 56], [73, 24], [74, 58], [75, 58], [76, 59], [77, 32], [78, 63], [79, 64], [80, 65], [81, 66], [82, 34], [83, 49], [84, 51], [85, 68], [86, 52], [87, 53], [88, 70], [89, 71], [90, 56], [91, 72], [92, 75], [93, 59], [94, 76], [95, 77], [96, 63], [97, 64], [98, 79], [99, 65], [100, 65], [101, 65], [102, 65], [103, 80], [104, 66], [105, 81], [106, 81], [107, 82], [108, 50], [109, 50], [110, 50], [111, 84], [112, 86], [113, 86], [114, 86], [115, 89], [116, 93], [117, 59], [118, 97], [119, 99], [120, 100], [121, 101], [122, 102], [123, 65], [124, 65], [125, 104], [126, 105], [127, 106], [128, 108], [129, 110], [130, 84], [131, 114], [132, 116], [133, 116], [134, 99], [135, 100], [136, 100], [137, 100], [138, 100], [139, 101], [140, 102], [141, 102], [142, 122], [143, 129], [144, 130], [145, 84], [146, 84], [147, 84], [148, 133], [149, 133], [150, 134], [151, 135], [152, 136], [153, 137], [154, 138], [155, 100], [156, 139], [157, 102], [158, 143], [159, 143], [160, 130], [161, 144], [162, 146], [163, 149], [164, 149], [165, 135], [166, 135], [167, 151], [168, 151], [169, 136], [170, 152], [171, 137], [172, 153], [173, 138], [174, 154], [175, 154], [176, 155], [177, 139], [178, 156], [179, 140], [180, 141], [181, 158], [182, 160], [183, 161], [184, 162], [185, 164], [186, 165], [187, 135], [188, 167], [189, 168], [190, 171], [191, 173], [192, 174], [193, 175], [194, 179], [195, 179], [196, 179], [197, 180], [198, 181], [199, 181], [200, 183], [201, 165], [202, 166], [203, 199], [204, 200], [205, 201], [206, 202], [207, 169], [208, 205], [209, 207], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209]]}, {"function_name": "getNode", "code": "  public Node getNode(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n\n    return (Node) m_nodes.elementAt(identity);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookupNode", "code": "  protected Node lookupNode(int nodeIdentity)\n  {\n    return (Node) m_nodes.elementAt(nodeIdentity);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNextNodeIdentity", "code": "  protected int getNextNodeIdentity(int identity)\n  {\n\n    identity += 1;\n\n    if (identity >= m_nodes.size())\n    {\n      if (!nextNode())\n        identity = DTM.NULL;\n    }\n\n    return identity;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "ASSIGN", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [2, 6], [4, 7], [5, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 2], [7, 4], [8, 5], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getHandleFromNode", "code": "  private int getHandleFromNode(Node node)\n  {\n    if (null != node)\n    {\n      int len = m_nodes.size();        \n      boolean isMore;\n      int i = 0;\n      do\n      {          \n        for (; i < len; i++)\n        {\n          if (m_nodes.elementAt(i) == node)\n            return makeNodeHandle(i);\n        }\n\n        isMore = nextNode();\n  \n        len = m_nodes.size();\n            \n      } \n      while(isMore || i < len);\n    }\n    \n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [4, 9], [5, 10], [5, 11], [10, 12], [6, 13], [8, 14], [5, 15], [5, 16], [11, 17], [15, 18], [16, 19], [11, 20], [20, 21], [20, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 4], [10, 5], [11, 5], [12, 10], [13, 6], [14, 8], [15, 5], [16, 5], [17, 11], [18, 15], [19, 16], [20, 11], [21, 20], [22, 20], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getHandleOfNode", "code": "  public int getHandleOfNode(Node node)\n  {\n    if (null != node)\n    {\n      if((m_root==node) ||\n         (m_root.getNodeType()==DOCUMENT_NODE &&\n          m_root==node.getOwnerDocument()) ||\n         (m_root.getNodeType()!=DOCUMENT_NODE &&\n          m_root.getOwnerDocument()==node.getOwnerDocument())\n         )\n        {\n          for(Node cursor=node;\n              cursor!=null;\n              cursor=\n                (cursor.getNodeType()!=ATTRIBUTE_NODE)\n                ? cursor.getParentNode()\n                : ((org.w3c.dom.Attr)cursor).getOwnerElement())\n            {\n              if(cursor==m_root)\n                return getHandleFromNode(node); \n\t\t\t}\n\t\t}\n\t}\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [5, 8], [7, 9], [7, 10], [8, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [8, 17], [11, 18], [12, 19], [13, 20], [13, 21], [14, 22], [15, 23], [15, 24], [17, 25], [17, 26], [18, 27], [18, 28], [23, 29], [24, 30], [25, 31], [28, 32], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 5], [9, 7], [10, 7], [11, 8], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 8], [18, 11], [19, 12], [20, 13], [21, 13], [22, 14], [23, 15], [24, 15], [25, 17], [26, 17], [27, 18], [28, 18], [29, 23], [30, 24], [31, 25], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "getAttributeNode", "code": "  public int getAttributeNode(int nodeHandle, String namespaceURI,\n                              String name)\n  {\n\n    if (null == namespaceURI)\n      namespaceURI = \"\";\n\n    int type = getNodeType(nodeHandle);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n\n      int identity = makeNodeIdentity(nodeHandle);\n\n      while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n      {\n        type = _type(identity);\n\n        if (type == DTM.ATTRIBUTE_NODE || type==DTM.NAMESPACE_NODE)\n        {\n          Node node = lookupNode(identity);\n          String nodeuri = node.getNamespaceURI();\n\n          if (null == nodeuri)\n            nodeuri = \"\";\n\n          String nodelocalname = node.getLocalName();\n\n          if (nodeuri.equals(namespaceURI) && name.equals(nodelocalname))\n            return makeNodeHandle(identity);\n        }\n\t\t\t\t\n        {\n          break;\n        }\n      }\n    }\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [4, 9], [2, 10], [2, 11], [3, 12], [4, 13], [9, 14], [10, 15], [13, 16], [10, 17], [15, 18], [11, 19], [10, 20], [17, 21], [10, 22], [18, 23], [17, 24], [17, 25], [17, 26], [17, 27], [17, 28], [21, 29], [21, 30], [22, 31], [24, 32], [24, 33], [26, 34], [32, 35], [33, 36], [33, 37], [25, 38], [26, 39], [34, 40], [27, 41], [28, 42], [39, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 4], [10, 2], [11, 2], [12, 3], [13, 4], [14, 9], [15, 10], [16, 13], [17, 10], [18, 15], [19, 11], [20, 10], [21, 17], [22, 10], [23, 18], [24, 17], [25, 17], [26, 17], [27, 17], [28, 17], [29, 21], [30, 21], [31, 22], [32, 24], [33, 24], [34, 26], [35, 32], [36, 33], [37, 33], [38, 25], [39, 26], [40, 34], [41, 27], [42, 28], [43, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "getStringValue", "code": "  public XMLString getStringValue(int nodeHandle)\n  {\n\n    int type = getNodeType(nodeHandle);\n    Node node = getNode(nodeHandle);\n    if(DTM.ELEMENT_NODE == type || DTM.DOCUMENT_NODE == type \n    || DTM.DOCUMENT_FRAGMENT_NODE == type)\n    {\n      FastStringBuffer buf = StringBufferPool.get();\n      String s;\n  \n      try\n      {\n        getNodeData(node, buf);\n  \n        s = (buf.length() > 0) ? buf.toString() : \"\";\n      }\n      finally\n      {\n        StringBufferPool.free(buf);\n      }\n  \n      return m_xstrf.newstr( s );\n    }\n    else if(TEXT_NODE == type || CDATA_SECTION_NODE == type)\n    {\n      FastStringBuffer buf = StringBufferPool.get();\n      while(node!=null)\n      {\n        buf.append(node.getNodeValue());\n        node=logicalNextDOMTextNode(node);\n      }\n      String s=(buf.length() > 0) ? buf.toString() : \"\";\n      StringBufferPool.free(buf);\n      return m_xstrf.newstr( s );\n    }\n    else\n      return m_xstrf.newstr( node.getNodeValue() );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [1, 9], [1, 10], [1, 11], [1, 12], [6, 13], [6, 14], [2, 15], [3, 16], [7, 17], [5, 18], [5, 19], [5, 20], [5, 21], [8, 22], [8, 23], [9, 24], [14, 25], [14, 26], [17, 27], [18, 28], [5, 29], [20, 30], [10, 31], [10, 32], [10, 33], [12, 34], [19, 35], [30, 36], [21, 37], [32, 38], [35, 39], [35, 40], [35, 41], [20, 42], [20, 43], [38, 44], [38, 45], [38, 46], [41, 47], [41, 48], [42, 49], [43, 50], [46, 51], [46, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 1], [10, 1], [11, 1], [12, 1], [13, 6], [14, 6], [15, 2], [16, 3], [17, 7], [18, 5], [19, 5], [20, 5], [21, 5], [22, 8], [23, 8], [24, 9], [25, 14], [26, 14], [27, 17], [28, 18], [29, 5], [30, 20], [31, 10], [32, 10], [33, 10], [34, 12], [35, 19], [36, 30], [37, 21], [38, 32], [39, 35], [40, 35], [41, 35], [42, 20], [43, 20], [44, 38], [45, 38], [46, 38], [47, 41], [48, 41], [49, 42], [50, 43], [51, 46], [52, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "isWhitespace", "code": "  public boolean isWhitespace(int nodeHandle)\n  {\n  \tint type = getNodeType(nodeHandle);\n    Node node = getNode(nodeHandle);\n  \tif(TEXT_NODE == type || CDATA_SECTION_NODE == type)\n    {\n      FastStringBuffer buf = StringBufferPool.get();\n      while(node!=null)\n      {\n        buf.append(node.getNodeValue());\n        node=logicalNextDOMTextNode(node);\n      }\n     boolean b = buf.isWhitespace(0, buf.length());\n      StringBufferPool.free(buf);\n     return b;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [7, 12], [7, 13], [3, 14], [4, 15], [2, 16], [10, 17], [9, 18], [17, 19], [11, 20], [18, 21], [18, 22], [10, 23], [10, 24], [23, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 7], [13, 7], [14, 3], [15, 4], [16, 2], [17, 10], [18, 9], [19, 17], [20, 11], [21, 18], [22, 18], [23, 10], [24, 10], [25, 23], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getNodeData", "code": "  protected static void getNodeData(Node node, FastStringBuffer buf)\n  {\n\n    switch (node.getNodeType())\n    {\n    case Node.DOCUMENT_FRAGMENT_NODE :\n    case Node.DOCUMENT_NODE :\n    case Node.ELEMENT_NODE :\n    {\n      for (Node child = node.getFirstChild(); null != child;\n              child = child.getNextSibling())\n      {\n        getNodeData(child, buf);\n      }\n    }\n    break;\n    case Node.TEXT_NODE :\n    case Node.CDATA_SECTION_NODE :\n      buf.append(node.getNodeValue());\n      break;\n    case Node.PROCESSING_INSTRUCTION_NODE :\n      break;\n    default :\n      break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "LOOP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [9, 11], [10, 12], [10, 13], [12, 14], [13, 15], [10, 16], [10, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 9], [12, 10], [13, 10], [14, 12], [15, 13], [16, 10], [17, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getNodeName", "code": "  public String getNodeName(int nodeHandle)\n  {\n\n    Node node = getNode(nodeHandle);\n\n    return node.getNodeName();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getNodeNameX", "code": "  public String getNodeNameX(int nodeHandle)\n  {\n\n    String name;\n    short type = getNodeType(nodeHandle);\n\n    switch (type)\n    {\n    case DTM.NAMESPACE_NODE :\n    {\n      Node node = getNode(nodeHandle);\n\n      name = node.getNodeName();\n      if(name.startsWith(\"xmlns:\"))\n      {\n        name = QName.getLocalPart(name);\n      }\n      else if(name.equals(\"xmlns\"))\n      {\n        name = \"\";\n      }\n    }\n    break;\n    case DTM.ATTRIBUTE_NODE :\n    case DTM.ELEMENT_NODE :\n    case DTM.ENTITY_REFERENCE_NODE :\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n    {\n      Node node = getNode(nodeHandle);\n\n      name = node.getNodeName();\n    }\n    break;\n    default :\n      name = \"\";\n    }\n\n    return name;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "ASSIGN", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [2, 9], [2, 10], [2, 11], [2, 12], [9, 13], [2, 14], [11, 15], [11, 16], [2, 17], [14, 18], [10, 19], [15, 20], [16, 21], [17, 22], [12, 23], [20, 24], [11, 25], [15, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 2], [10, 2], [11, 2], [12, 2], [13, 9], [14, 2], [15, 11], [16, 11], [17, 2], [18, 14], [19, 10], [20, 15], [21, 16], [22, 17], [23, 12], [24, 20], [25, 11], [26, 15], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "getLocalName", "code": "  public String getLocalName(int nodeHandle)\n  {\n    if(JJK_NEWCODE)\n    {\n      int id=makeNodeIdentity(nodeHandle);\n      if(NULL==id) return null;\n      Node newnode=(Node)m_nodes.elementAt(id);\n      String newname=newnode.getLocalName();\n      if (null == newname)\n      {\n\tString qname = newnode.getNodeName();\n\tif('#'==qname.charAt(0))\n\t{\n\t  newname=\"\";\n\t}\n\telse\n\t{\n\t  int index = qname.indexOf(':');\n\t  newname = (index < 0) ? qname : qname.substring(index + 1);\n\t}\n      }\n      return newname;\n    }\n    else\n    {\n      String name;\n      short type = getNodeType(nodeHandle);\n      switch (type)\n      {\n      case DTM.ATTRIBUTE_NODE :\n      case DTM.ELEMENT_NODE :\n      case DTM.ENTITY_REFERENCE_NODE :\n      case DTM.NAMESPACE_NODE :\n      case DTM.PROCESSING_INSTRUCTION_NODE :\n\t{\n\t  Node node = getNode(nodeHandle);\n\t  \n\t  name = node.getLocalName();\n\t  \n\t  if (null == name)\n\t  {\n\t    String qname = node.getNodeName();\n\t    int index = qname.indexOf(':');\n\t    \n\t    name = (index < 0) ? qname : qname.substring(index + 1);\n\t  }\n\t}\n\tbreak;\n      default :\n\tname = \"\";\n      }\n      return name;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "BINARY_OP", "BREAK_CONTINUE", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [8, 13], [11, 14], [11, 15], [4, 16], [5, 17], [8, 18], [8, 19], [13, 20], [9, 21], [14, 22], [12, 23], [4, 24], [4, 25], [4, 26], [18, 27], [10, 28], [24, 29], [25, 30], [4, 31], [18, 32], [27, 33], [27, 34], [19, 35], [25, 36], [25, 37], [30, 38], [31, 39], [26, 40], [18, 41], [18, 42], [33, 43], [25, 44], [41, 45], [32, 46], [42, 47], [44, 48], [36, 49], [37, 50], [45, 51], [45, 52], [46, 53], [48, 54], [48, 55], [49, 56], [51, 57], [52, 58], [54, 59], [55, 60], [57, 61], [59, 62], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 8], [14, 11], [15, 11], [16, 4], [17, 5], [18, 8], [19, 8], [20, 13], [21, 9], [22, 14], [23, 12], [24, 4], [25, 4], [26, 4], [27, 18], [28, 10], [29, 24], [30, 25], [31, 4], [32, 18], [33, 27], [34, 27], [35, 19], [36, 25], [37, 25], [38, 30], [39, 31], [40, 26], [41, 18], [42, 18], [43, 33], [44, 25], [45, 41], [46, 32], [47, 42], [48, 44], [49, 36], [50, 37], [51, 45], [52, 45], [53, 46], [54, 48], [55, 48], [56, 49], [57, 51], [58, 52], [59, 54], [60, 55], [61, 57], [62, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "getPrefix", "code": "  public String getPrefix(int nodeHandle)\n  {\n\n    String prefix;\n    short type = getNodeType(nodeHandle);\n\n    switch (type)\n    {\n    case DTM.NAMESPACE_NODE :\n    {\n      Node node = getNode(nodeHandle);\n\n      String qname = node.getNodeName();\n      int index = qname.indexOf(':');\n\n      prefix = (index < 0) ? \"\" : qname.substring(index + 1);\n    }\n    break;\n    case DTM.ATTRIBUTE_NODE :\n    case DTM.ELEMENT_NODE :\n    {\n      Node node = getNode(nodeHandle);\n\n      String qname = node.getNodeName();\n      int index = qname.indexOf(':');\n\n      prefix = (index < 0) ? \"\" : qname.substring(0, index);\n    }\n    break;\n    default :\n      prefix = \"\";\n    }\n\n    return prefix;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "ASSIGN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "COND_EXPR", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [9, 16], [2, 17], [2, 18], [17, 19], [10, 20], [11, 21], [12, 22], [18, 23], [13, 24], [14, 25], [15, 26], [19, 27], [19, 28], [19, 29], [20, 30], [23, 31], [23, 32], [23, 33], [24, 34], [27, 35], [29, 36], [31, 37], [33, 38], [37, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 9], [17, 2], [18, 2], [19, 17], [20, 10], [21, 11], [22, 12], [23, 18], [24, 13], [25, 14], [26, 15], [27, 19], [28, 19], [29, 19], [30, 20], [31, 23], [32, 23], [33, 23], [34, 24], [35, 27], [36, 29], [37, 31], [38, 33], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getNamespaceURI", "code": "  public String getNamespaceURI(int nodeHandle)\n  {\n    if(JJK_NEWCODE)\n    {\n      int id=makeNodeIdentity(nodeHandle);\n      if(id==NULL) return null;\n      Node node=(Node)m_nodes.elementAt(id);\n      return node.getNamespaceURI();\n    }\n    else\n    {\n      String nsuri;\n      short type = getNodeType(nodeHandle);\n      \n      switch (type)\n      {\n      case DTM.ATTRIBUTE_NODE :\n      case DTM.ELEMENT_NODE :\n      case DTM.ENTITY_REFERENCE_NODE :\n      case DTM.NAMESPACE_NODE :\n      case DTM.PROCESSING_INSTRUCTION_NODE :\n\t{\n\t  Node node = getNode(nodeHandle);\n\t  \n\t  nsuri = node.getNamespaceURI();\n\t  \n\t}\n\tbreak;\n      default :\n\tnsuri = null;\n      }\n\n      return nsuri;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [9, 12], [9, 13], [4, 14], [5, 15], [12, 16], [10, 17], [4, 18], [4, 19], [8, 20], [18, 21], [4, 22], [22, 23], [19, 24], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 9], [13, 9], [14, 4], [15, 5], [16, 12], [17, 10], [18, 4], [19, 4], [20, 8], [21, 18], [22, 4], [23, 22], [24, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "logicalNextDOMTextNode", "code": "  private Node logicalNextDOMTextNode(Node n)\n  {\n        Node p=n.getNextSibling();\n        if(p==null)\n        {\n                for(n=n.getParentNode();\n                        n!=null && ENTITY_REFERENCE_NODE == n.getNodeType();\n                        n=n.getParentNode())\n                {\n                        p=n.getNextSibling();\n                        if(p!=null)\n                                break;\n                }\n        }\n        n=p;\n        while(n!=null && ENTITY_REFERENCE_NODE == n.getNodeType())\n        {\n                if(n.hasChildNodes())\n                        n=n.getFirstChild();\n                else\n                        n=n.getNextSibling();\n        }\n        if(n!=null)\n        {\n                int ntype=n.getNodeType();\n                if(TEXT_NODE != ntype && CDATA_SECTION_NODE != ntype)\n                        n=null;\n        }\n        return n;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [0, 9], [4, 10], [2, 11], [2, 12], [7, 13], [3, 14], [8, 15], [8, 16], [4, 17], [10, 18], [5, 19], [11, 20], [14, 21], [15, 22], [16, 23], [17, 24], [17, 25], [17, 26], [11, 27], [20, 28], [20, 29], [12, 30], [14, 31], [14, 32], [17, 33], [24, 34], [25, 35], [25, 36], [26, 37], [27, 38], [31, 39], [32, 40], [33, 41], [33, 42], [17, 43], [35, 44], [36, 45], [42, 46], [43, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 0], [10, 4], [11, 2], [12, 2], [13, 7], [14, 3], [15, 8], [16, 8], [17, 4], [18, 10], [19, 5], [20, 11], [21, 14], [22, 15], [23, 16], [24, 17], [25, 17], [26, 17], [27, 11], [28, 20], [29, 20], [30, 12], [31, 14], [32, 14], [33, 17], [34, 24], [35, 25], [36, 25], [37, 26], [38, 27], [39, 31], [40, 32], [41, 33], [42, 33], [43, 17], [44, 35], [45, 36], [46, 42], [47, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "getNodeValue", "code": "  public String getNodeValue(int nodeHandle)\n  {\n    int type = _exptype(makeNodeIdentity(nodeHandle));\n    type=(NULL != type) ? getNodeType(nodeHandle) : NULL;\n    \n    if(TEXT_NODE!=type && CDATA_SECTION_NODE!=type)\n      return getNode(nodeHandle).getNodeValue();\n    \n    Node node = getNode(nodeHandle);\n    Node n=logicalNextDOMTextNode(node);\n    if(n==null)\n      return node.getNodeValue();\n    \n    FastStringBuffer buf = StringBufferPool.get();\n        buf.append(node.getNodeValue());\n    while(n!=null)\n    {\n      buf.append(n.getNodeValue());\n      n=logicalNextDOMTextNode(n);\n    }\n    String s = (buf.length() > 0) ? buf.toString() : \"\";\n    StringBufferPool.free(buf);\n    return s;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [3, 12], [0, 13], [5, 14], [5, 15], [8, 16], [8, 17], [0, 18], [2, 19], [12, 20], [13, 21], [4, 22], [14, 23], [15, 24], [6, 25], [7, 26], [16, 27], [17, 28], [17, 29], [18, 30], [9, 31], [19, 32], [19, 33], [19, 34], [3, 35], [3, 36], [27, 37], [30, 38], [30, 39], [31, 40], [34, 41], [34, 42], [35, 43], [36, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 3], [13, 0], [14, 5], [15, 5], [16, 8], [17, 8], [18, 0], [19, 2], [20, 12], [21, 13], [22, 4], [23, 14], [24, 15], [25, 6], [26, 7], [27, 16], [28, 17], [29, 17], [30, 18], [31, 9], [32, 19], [33, 19], [34, 19], [35, 3], [36, 3], [37, 27], [38, 30], [39, 30], [40, 31], [41, 34], [42, 34], [43, 35], [44, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "getDocumentTypeDeclarationSystemIdentifier", "code": "  public String getDocumentTypeDeclarationSystemIdentifier()\n  {\n\n    Document doc;\n\n    if (m_root.getNodeType() == Node.DOCUMENT_NODE)\n      doc = (Document) m_root;\n    else\n      doc = m_root.getOwnerDocument();\n\n    if (null != doc)\n    {\n      DocumentType dtd = doc.getDoctype();\n\n      if (null != dtd)\n      {\n        return dtd.getSystemId();\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [2, 9], [6, 10], [3, 11], [3, 12], [7, 13], [8, 14], [11, 15], [8, 16], [14, 17], [9, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 2], [10, 6], [11, 3], [12, 3], [13, 7], [14, 8], [15, 11], [16, 8], [17, 14], [18, 9], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getDocumentTypeDeclarationPublicIdentifier", "code": "  public String getDocumentTypeDeclarationPublicIdentifier()\n  {\n\n    Document doc;\n\n    if (m_root.getNodeType() == Node.DOCUMENT_NODE)\n      doc = (Document) m_root;\n    else\n      doc = m_root.getOwnerDocument();\n\n    if (null != doc)\n    {\n      DocumentType dtd = doc.getDoctype();\n\n      if (null != dtd)\n      {\n        return dtd.getPublicId();\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [2, 9], [6, 10], [3, 11], [3, 12], [7, 13], [8, 14], [11, 15], [8, 16], [14, 17], [9, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 2], [10, 6], [11, 3], [12, 3], [13, 7], [14, 8], [15, 11], [16, 8], [17, 14], [18, 9], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getElementById", "code": "  public int getElementById(String elementId)\n  {\n\n    Document doc = (m_root.getNodeType() == Node.DOCUMENT_NODE) \n        ? (Document) m_root : m_root.getOwnerDocument();\n        \n    if(null != doc)\n    {\n      Node elem = doc.getElementById(elementId);\n      if(null != elem)\n      {\n        int elemHandle = getHandleFromNode(elem);\n        \n        if(DTM.NULL == elemHandle)\n        {\n          int identity = m_nodes.size()-1;\n          while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n          {\n            Node node = getNode(identity);\n            if(node == elem)\n            {\n              elemHandle = getHandleFromNode(elem);\n              break;\n            }\n           }\n        }\n        \n        return elemHandle;\n      }\n    \n    }\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [6, 10], [9, 11], [9, 12], [6, 13], [6, 14], [6, 15], [10, 16], [7, 17], [12, 18], [14, 19], [14, 20], [14, 21], [15, 22], [20, 23], [20, 24], [20, 25], [23, 26], [21, 27], [24, 28], [26, 29], [27, 30], [27, 31], [24, 32], [25, 33], [24, 34], [34, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 6], [11, 9], [12, 9], [13, 6], [14, 6], [15, 6], [16, 10], [17, 7], [18, 12], [19, 14], [20, 14], [21, 14], [22, 15], [23, 20], [24, 20], [25, 20], [26, 23], [27, 21], [28, 24], [29, 26], [30, 27], [31, 27], [32, 24], [33, 25], [34, 24], [35, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getUnparsedEntityURI", "code": "  public String getUnparsedEntityURI(String name)\n  {\n\n    String url = \"\";\n    Document doc = (m_root.getNodeType() == Node.DOCUMENT_NODE) \n        ? (Document) m_root : m_root.getOwnerDocument();\n\n    if (null != doc)\n    {\n      DocumentType doctype = doc.getDoctype();\n  \n      if (null != doctype)\n      {\n        NamedNodeMap entities = doctype.getEntities();\n        if(null == entities)\n          return url;\n        Entity entity = (Entity) entities.getNamedItem(name);\n        if(null == entity)\n          return url;\n        \n        String notationName = entity.getNotationName();\n  \n        {\n          url = entity.getSystemId();\n  \n          if (null == url)\n          {\n            url = entity.getPublicId();\n          }\n          else\n          {\n          }        \n        }\n      }\n    }\n\n    return url;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [4, 11], [7, 12], [10, 13], [10, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [12, 20], [8, 21], [14, 22], [7, 23], [16, 24], [16, 25], [18, 26], [18, 27], [23, 28], [7, 29], [15, 30], [25, 31], [27, 32], [19, 33], [28, 34], [29, 35], [17, 36], [23, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 4], [12, 7], [13, 10], [14, 10], [15, 7], [16, 7], [17, 7], [18, 7], [19, 7], [20, 12], [21, 8], [22, 14], [23, 7], [24, 16], [25, 16], [26, 18], [27, 18], [28, 23], [29, 7], [30, 15], [31, 25], [32, 27], [33, 19], [34, 28], [35, 29], [36, 17], [37, 23], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "isAttributeSpecified", "code": "  public boolean isAttributeSpecified(int attributeHandle)\n  {\n    int type = getNodeType(attributeHandle);\n\n    if (DTM.ATTRIBUTE_NODE == type)\n    {\n      Attr attr = (Attr)getNode(attributeHandle);\n      return attr.getSpecified();\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [3, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 3], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setIncrementalSAXSource", "code": "  public void setIncrementalSAXSource(IncrementalSAXSource source)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContentHandler", "code": "  public org.xml.sax.ContentHandler getContentHandler()\n  {\n      return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLexicalHandler", "code": "  public org.xml.sax.ext.LexicalHandler getLexicalHandler()\n  {\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEntityResolver", "code": "  public org.xml.sax.EntityResolver getEntityResolver()\n  {\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDTDHandler", "code": "  public org.xml.sax.DTDHandler getDTDHandler()\n  {\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandler", "code": "  public org.xml.sax.ErrorHandler getErrorHandler()\n  {\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDeclHandler", "code": "  public org.xml.sax.ext.DeclHandler getDeclHandler()\n  {\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "needsTwoThreads", "code": "  public boolean needsTwoThreads()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSpace", "code": "  private static boolean isSpace(char ch)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dispatchCharactersEvents", "code": "  public void dispatchCharactersEvents(\n          int nodeHandle, org.xml.sax.ContentHandler ch, \n          boolean normalize)\n            throws org.xml.sax.SAXException\n  {\n    if(normalize)\n    {\n      XMLString str = getStringValue(nodeHandle);\n      str = str.fixWhiteSpace(true, true, false);\n      str.dispatchCharactersEvents(ch);\n    }\n    else\n    {\n      int type = getNodeType(nodeHandle);\n      Node node = getNode(nodeHandle);\n      dispatchNodeData(node, ch, 0);\n          if(TEXT_NODE == type || CDATA_SECTION_NODE == type)\n          {\n                  while( null != (node=logicalNextDOMTextNode(node)) )\n                  {\n                      dispatchNodeData(node, ch, 0);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LOOP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [1, 10], [1, 11], [1, 12], [5, 13], [9, 14], [9, 15], [10, 16], [6, 17], [7, 18], [12, 19], [8, 20], [13, 21], [19, 22], [19, 23], [19, 24], [21, 25], [21, 26], [13, 27], [25, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 1], [11, 1], [12, 1], [13, 5], [14, 9], [15, 9], [16, 10], [17, 6], [18, 7], [19, 12], [20, 8], [21, 13], [22, 19], [23, 19], [24, 19], [25, 21], [26, 21], [27, 13], [28, 25], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "dispatchNodeData", "code": "  protected static void dispatchNodeData(Node node, \n                                         org.xml.sax.ContentHandler ch, \n                                         int depth)\n            throws org.xml.sax.SAXException\n  {\n\n    switch (node.getNodeType())\n    {\n    case Node.DOCUMENT_FRAGMENT_NODE :\n    case Node.DOCUMENT_NODE :\n    case Node.ELEMENT_NODE :\n    {\n      for (Node child = node.getFirstChild(); null != child;\n              child = child.getNextSibling())\n      {\n        dispatchNodeData(child, ch, depth+1);\n      }\n    }\n    break;\n    case Node.COMMENT_NODE :\n      if(0 != depth)\n        break;\n    case Node.TEXT_NODE :\n    case Node.CDATA_SECTION_NODE :\n    case Node.ATTRIBUTE_NODE :\n      String str = node.getNodeValue();\n      if(ch instanceof CharacterNodeHandler)\n      {\n        ((CharacterNodeHandler)ch).characters(node);\n      }\n      else\n      {\n        ch.characters(str.toCharArray(), 0, str.length());\n      }\n      break;\n    default :\n      break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "VAR_DECL", "IF", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LOOP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [8, 12], [10, 13], [10, 14], [1, 15], [9, 16], [14, 17], [15, 18], [15, 19], [8, 20], [18, 21], [19, 22], [20, 23], [20, 24], [20, 25], [15, 26], [15, 27], [26, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 8], [13, 10], [14, 10], [15, 1], [16, 9], [17, 14], [18, 15], [19, 15], [20, 8], [21, 18], [22, 19], [23, 20], [24, 20], [25, 20], [26, 15], [27, 15], [28, 26], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "dispatchToEvents", "code": "  public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n    TreeWalker treeWalker = m_walker;\n    ContentHandler prevCH = treeWalker.getContentHandler();\n    \n    if(null != prevCH)\n    {\n      treeWalker = new TreeWalker(null);\n    }\n    treeWalker.setContentHandler(ch);\n    \n    try\n    {\n      Node node = getNode(nodeHandle);\n      treeWalker.traverse(node);\n    }\n    finally\n    {\n      treeWalker.setContentHandler(null);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [1, 10], [1, 11], [9, 12], [3, 13], [10, 14], [7, 15], [2, 16], [16, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 1], [11, 1], [12, 9], [13, 3], [14, 10], [15, 7], [16, 2], [17, 16], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setProperty", "code": "  public void setProperty(String property, Object value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSourceLocatorFor", "code": "  public SourceLocator getSourceLocatorFor(int node)\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DOM2DTM", "code": "  public DOM2DTM(DTMManager mgr, DOMSource domSource, \n                 int dtmIdentity, DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing)\n  {\n    super(mgr, domSource, dtmIdentity, whiteSpaceFilter, \n          xstringfactory, doIndexing);\n\n    m_pos=m_root = domSource.getNode();\n    m_last_parent=m_last_kid=NULL;\n    m_last_kid=addNode(m_root, m_last_parent,m_last_kid, NULL);\n\n    if(ELEMENT_NODE == m_root.getNodeType())\n    {\n      NamedNodeMap attrs=m_root.getAttributes();\n      int attrsize=(attrs==null) ? 0 : attrs.getLength();\n      if(attrsize>0)\n      {\n        for(int i=0;i<attrsize;++i)\n        {\n          attrIndex=addNode(attrs.item(i),0,attrIndex,NULL);\n          m_firstch.setElementAt(DTM.NULL,attrIndex);\n        }\n        m_nextsib.setElementAt(DTM.NULL,attrIndex);\n\t  }\n\t}\n    m_nodesAreProcessed = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [8, 13], [1, 14], [1, 15], [1, 16], [9, 17], [10, 18], [11, 19], [12, 20], [14, 21], [20, 22], [14, 23], [21, 24], [15, 25], [16, 26], [14, 27], [23, 28], [25, 29], [25, 30], [25, 31], [31, 32], [23, 33], [23, 34], [23, 35], [34, 36], [36, 37], [36, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 8], [14, 1], [15, 1], [16, 1], [17, 9], [18, 10], [19, 11], [20, 12], [21, 14], [22, 20], [23, 14], [24, 21], [25, 15], [26, 16], [27, 14], [28, 23], [29, 25], [30, 25], [31, 25], [32, 31], [33, 23], [34, 23], [35, 23], [36, 34], [37, 36], [38, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}], "label": 1}
{"sample_id": "ivy-2.0-3478", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/resolve/ResolveOptions.java", "language": "java", "name": "org.apache.ivy.core.resolve.ResolveOptions", "code": "public class ResolveOptions extends LogOptions {\n    \n    /**\n     * Default resolve mode, using default revision constraints in dependency descriptors.\n     */\n    public static final String RESOLVEMODE_DEFAULT = \"default\";\n    /**\n     * Dynamic resolve mode, using dynamic revision constraints in dependency descriptors.\n     */\n    public static final String RESOLVEMODE_DYNAMIC = \"dynamic\";\n    /**\n     * Array of all available resolve modes.\n     */\n    public static final String[] RESOLVEMODES = \n        new String[] {RESOLVEMODE_DEFAULT, RESOLVEMODE_DYNAMIC};\n\n    /**\n     * an array of configuration names to resolve - must not be null nor empty\n     */\n    private String[] confs = new String[] {\"*\"};\n\n    /**\n     * the revision of the module for which dependencies should be resolved. This revision is\n     * considered as the resolved revision of the module, unless it is null. If it is null, then a\n     * default revision is given if necessary (no revision found in ivy file)\n     */\n    private String revision = null;\n\n    /**\n     * the date for which the dependencies should be resolved. All obtained artifacts should have a\n     * publication date which is before or equal to the given date. The date can be null, in which\n     * case all artifacts will be considered\n     */\n    private Date date = null;\n\n    /**\n     * True if validation of module descriptors should done, false otherwise\n     */\n    private boolean validate = true;\n\n    /**\n     * True if only the cache should be used for resolve, false if a real resolve with dependency\n     * resolvers should be done\n     */\n    private boolean useCacheOnly = false;\n\n    /**\n     * True if the dependencies should be resolved transitively, false if only direct dependencies\n     * should be resolved\n     */\n    private boolean transitive = true;\n\n    /**\n     * True if the resolve should also download artifacts, false if only dependency resolution with\n     * module descriptors should be done\n     */\n    private boolean download = true;\n\n    /**\n     * True if a report of the resolve process should be output at the end of the process, false\n     * otherwise\n     */\n    private boolean outputReport = true;\n\n    /**\n     * A filter to use to avoid downloading all artifacts.\n     */\n    private Filter artifactFilter = FilterHelper.NO_FILTER;\n    \n    /**\n     * The resolve mode to use. Should be one of {@link #RESOLVEMODES}, or <code>null</code> to\n     * use settings configured resolve mode.\n     */\n    private String resolveMode;\n\n    /**\n     * The id used to store the resolve information.\n     */\n    private String resolveId;\n\n    private boolean refresh;\n    \n    /**\n     *  True if the resolve should compare the new resolution against the previous report \n     **/  \n    private boolean checkIfChanged = false;\n\n    public ResolveOptions() {\n    }\n\n    public ResolveOptions(ResolveOptions options) {\n        super(options);\n        confs = options.confs;\n        revision = options.revision;\n        date = options.date;\n        validate = options.validate;\n        refresh = options.refresh;\n        useCacheOnly = options.useCacheOnly;\n        transitive = options.transitive;\n        download = options.download;\n        outputReport = options.outputReport;\n        resolveMode = options.resolveMode;\n        artifactFilter = options.artifactFilter;\n        resolveId = options.resolveId;\n        checkIfChanged = options.checkIfChanged;\n    }\n\n    public Filter getArtifactFilter() {\n        return artifactFilter;\n    }\n\n    public ResolveOptions setArtifactFilter(Filter artifactFilter) {\n        this.artifactFilter = artifactFilter;\n        return this;\n    }\n    \n    /**\n     * Returns the resolve mode to use, or <code>null</code> to use settings configured resolve\n     * mode.\n     * \n     * @return the resolve mode to use.\n     */\n    public String getResolveMode() {\n        return resolveMode;\n    }\n    \n    public ResolveOptions setResolveMode(String resolveMode) {\n        this.resolveMode = resolveMode;\n        return this;\n    }\n\n    /**\n     * Indicates if the configurations use a special configuration \n     * * , *(private) or *(public).\n     * When special configurations are used, you must have the module\n     * descriptor in order to get the list of configurations.\n     * @see #getConfs()\n     * @see #getConfs(ModuleDescriptor)\n     */\n    public boolean useSpecialConfs() {\n        for (int i = 0; confs != null && i < confs.length; i++) {\n            if (confs[0].startsWith(\"*\")) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * @pre can only be called if useSpecialConfs()==false.  When it is true, \n     * you have to provide a module desciptor so that configurations can be resolved.\n     * @see #getConfs(ModuleDescriptor)\n     */\n    public String[] getConfs() {\n        if (useSpecialConfs()) {\n            throw new AssertionError(\"ResolveOptions.getConfs() \" \n                + \"can not be used for options used special confs.\");\n        }\n        return confs;\n    }\n\n    /** \n     * Get the aksed confs.  Special confs (like *) use the moduleDescriptor to find the values * \n     * @param md Used to get the exact values for special confs. \n     * */\n    public String[] getConfs(ModuleDescriptor md) {\n        //TODO add isInline, in that case, replace * by *(public).\n        return ConfigurationUtils.replaceWildcards(confs, md);\n    }\n\n    public ResolveOptions setConfs(String[] confs) {\n        this.confs = confs;\n        return this;\n    }\n\n    public Date getDate() {\n        return date;\n    }\n\n    public ResolveOptions setDate(Date date) {\n        this.date = date;\n        return this;\n    }\n\n    public boolean isDownload() {\n        return download;\n    }\n\n    public ResolveOptions setDownload(boolean download) {\n        this.download = download;\n        return this;\n    }\n\n    public boolean isOutputReport() {\n        return outputReport;\n    }\n\n    public ResolveOptions setOutputReport(boolean outputReport) {\n        this.outputReport = outputReport;\n        return this;\n    }\n\n    public boolean isTransitive() {\n        return transitive;\n    }\n\n    public ResolveOptions setTransitive(boolean transitive) {\n        this.transitive = transitive;\n        return this;\n    }\n\n    public boolean isUseCacheOnly() {\n        return useCacheOnly;\n    }\n\n    public ResolveOptions setUseCacheOnly(boolean useCacheOnly) {\n        this.useCacheOnly = useCacheOnly;\n        return this;\n    }\n\n    public boolean isValidate() {\n        return validate;\n    }\n\n    public ResolveOptions setValidate(boolean validate) {\n        this.validate = validate;\n        return this;\n    }\n\n    public String getRevision() {\n        return revision;\n    }\n\n    public ResolveOptions setRevision(String revision) {\n        this.revision = revision;\n        return this;\n    }\n\n    public String getResolveId() {\n        return resolveId;\n    }\n\n    public ResolveOptions setResolveId(String resolveId) {\n        this.resolveId = resolveId;\n        return this;\n    }\n\n    public ResolveOptions setRefresh(boolean refresh) {\n        this.refresh = refresh;\n        return this;\n    }\n    \n    public boolean isRefresh() {\n        return refresh;\n    }\n\n    public ResolveOptions setCheckIfChanged(boolean checkIfChanged) {\n        this.checkIfChanged = checkIfChanged;\n        return this;\n    }\n    \n    public boolean getCheckIfChanged() {\n        return checkIfChanged;\n    }\n\n\n    public static String getDefaultResolveId(ModuleDescriptor md) {\n        ModuleId module = md.getModuleRevisionId().getModuleId();\n        return getDefaultResolveId(module);\n    }\n\n    public static String getDefaultResolveId(ModuleId moduleId) {\n        return moduleId.getOrganisation() + \"-\" + moduleId.getName();", "functions": [{"function_name": "getArtifactFilter", "code": "    public Filter getArtifactFilter() {\n        return artifactFilter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setArtifactFilter", "code": "    public ResolveOptions setArtifactFilter(Filter artifactFilter) {\n        this.artifactFilter = artifactFilter;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResolveMode", "code": "    public String getResolveMode() {\n        return resolveMode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResolveMode", "code": "    public ResolveOptions setResolveMode(String resolveMode) {\n        this.resolveMode = resolveMode;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "useSpecialConfs", "code": "    public boolean useSpecialConfs() {\n        for (int i = 0; confs != null && i < confs.length; i++) {\n            if (confs[0].startsWith(\"*\")) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [4, 7], [7, 8], [2, 9], [5, 10], [5, 11], [10, 12], [11, 13], [5, 14], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 4], [8, 7], [9, 2], [10, 5], [11, 5], [12, 10], [13, 11], [14, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getConfs", "code": "    public String[] getConfs() {\n        if (useSpecialConfs()) {\n            throw new AssertionError(\"ResolveOptions.getConfs() \" \n                + \"can not be used for options used special confs.\");\n        }\n        return confs;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getConfs", "code": "    public String[] getConfs(ModuleDescriptor md) {\n        //TODO add isInline, in that case, replace * by *(public).\n        return ConfigurationUtils.replaceWildcards(confs, md);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setConfs", "code": "    public ResolveOptions setConfs(String[] confs) {\n        this.confs = confs;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDate", "code": "    public Date getDate() {\n        return date;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDate", "code": "    public ResolveOptions setDate(Date date) {\n        this.date = date;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDownload", "code": "    public boolean isDownload() {\n        return download;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDownload", "code": "    public ResolveOptions setDownload(boolean download) {\n        this.download = download;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isOutputReport", "code": "    public boolean isOutputReport() {\n        return outputReport;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOutputReport", "code": "    public ResolveOptions setOutputReport(boolean outputReport) {\n        this.outputReport = outputReport;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isTransitive", "code": "    public boolean isTransitive() {\n        return transitive;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransitive", "code": "    public ResolveOptions setTransitive(boolean transitive) {\n        this.transitive = transitive;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isUseCacheOnly", "code": "    public boolean isUseCacheOnly() {\n        return useCacheOnly;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUseCacheOnly", "code": "    public ResolveOptions setUseCacheOnly(boolean useCacheOnly) {\n        this.useCacheOnly = useCacheOnly;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isValidate", "code": "    public boolean isValidate() {\n        return validate;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setValidate", "code": "    public ResolveOptions setValidate(boolean validate) {\n        this.validate = validate;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRevision", "code": "    public String getRevision() {\n        return revision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRevision", "code": "    public ResolveOptions setRevision(String revision) {\n        this.revision = revision;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResolveId", "code": "    public String getResolveId() {\n        return resolveId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResolveId", "code": "    public ResolveOptions setResolveId(String resolveId) {\n        this.resolveId = resolveId;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRefresh", "code": "    public ResolveOptions setRefresh(boolean refresh) {\n        this.refresh = refresh;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isRefresh", "code": "    public boolean isRefresh() {\n        return refresh;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCheckIfChanged", "code": "    public ResolveOptions setCheckIfChanged(boolean checkIfChanged) {\n        this.checkIfChanged = checkIfChanged;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCheckIfChanged", "code": "    public boolean getCheckIfChanged() {\n        return checkIfChanged;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDefaultResolveId", "code": "    public static String getDefaultResolveId(ModuleDescriptor md) {\n        ModuleId module = md.getModuleRevisionId().getModuleId();\n        return getDefaultResolveId(module);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getDefaultResolveId", "code": "    public static String getDefaultResolveId(ModuleId moduleId) {\n        return moduleId.getOrganisation() + \"-\" + moduleId.getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ResolveOptions", "code": "    public ResolveOptions() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ResolveOptions", "code": "    public ResolveOptions(ResolveOptions options) {\n        super(options);\n        confs = options.confs;\n        revision = options.revision;\n        date = options.date;\n        validate = options.validate;\n        refresh = options.refresh;\n        useCacheOnly = options.useCacheOnly;\n        transitive = options.transitive;\n        download = options.download;\n        outputReport = options.outputReport;\n        resolveMode = options.resolveMode;\n        artifactFilter = options.artifactFilter;\n        resolveId = options.resolveId;\n        checkIfChanged = options.checkIfChanged;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "xalan-2.5-6830", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/lib/Extensions.java", "language": "java", "name": "org.apache.xalan.lib.Extensions", "code": "public class Extensions\n{\n\n  private static Document m_doc = null;\n  private static Extensions m_instance = new Extensions();\n  \n  /**\n   * Constructor Extensions\n   *\n   */\n\n  /**\n   * This method is an extension that implements as a Xalan extension\n   * the node-set function also found in xt and saxon.\n   * If the argument is a Result Tree Fragment, then <code>nodeset</code>\n   * returns a node-set consisting of a single root node as described in\n   * section 11.1 of the XSLT 1.0 Recommendation.  If the argument is a\n   * node-set, <code>nodeset</code> returns a node-set.  If the argument\n   * is a string, number, or boolean, then <code>nodeset</code> returns\n   * a node-set consisting of a single root node with a single text node\n   * child that is the result of calling the XPath string() function on the\n   * passed parameter.  If the argument is anything else, then a node-set\n   * is returned consisting of a single root node with a single text node\n   * child that is the result of calling the java <code>toString()</code>\n   * method on the passed argument.\n   * Most of the\n   * actual work here is done in <code>MethodResolver</code> and\n   * <code>XRTreeFrag</code>.\n   * @param myProcessor Context passed by the extension processor\n   * @param rtf Argument in the stylesheet to the nodeset extension function\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  public static NodeSet nodeset(ExpressionContext myProcessor, Object rtf)\n  {\n\n    String textNodeValue;\n\n    if (rtf instanceof NodeIterator)\n    {\n      return new NodeSet((NodeIterator) rtf);\n    }\n    else\n    {\n      if (rtf instanceof String)\n      {\n        textNodeValue = (String) rtf;\n      }\n      else if (rtf instanceof Boolean)\n      {\n        textNodeValue = new XBoolean(((Boolean) rtf).booleanValue()).str();\n      }\n      else if (rtf instanceof Double)\n      {\n        textNodeValue = new XNumber(((Double) rtf).doubleValue()).str();\n      }\n      else\n      {\n        textNodeValue = rtf.toString();\n      }\n\n      try\n      {\n        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n        DocumentBuilder db = dbf.newDocumentBuilder();\n        Document myDoc = db.newDocument();\n        \n        Text textNode = myDoc.createTextNode(textNodeValue);\n        DocumentFragment docFrag = myDoc.createDocumentFragment();\n  \n        docFrag.appendChild(textNode);\n  \n        return new NodeSet(docFrag);\n      }\n      catch(ParserConfigurationException pce)\n      {\n        throw new org.apache.xml.utils.WrappedRuntimeException(pce);\n      }\n    }\n  }\n\n  /**\n   * Returns the intersection of two node-sets.\n   * \n   * @param nl1 NodeList for first node-set\n   * @param nl2 NodeList for second node-set\n   * @return a NodeList containing the nodes in nl1 that are also in nl2\n   *\n   * Note: The usage of this extension function in the xalan namespace \n   * is deprecated. Please use the same function in the EXSLT sets extension\n   */\n  public static NodeList intersection(NodeList nl1, NodeList nl2)\n  {\n    return ExsltSets.intersection(nl1, nl2);\n  }\n\n  /**\n   * Returns the difference between two node-sets.\n   * \n   * @param nl1 NodeList for first node-set\n   * @param nl2 NodeList for second node-set\n   * @return a NodeList containing the nodes in nl1 that are not in nl2\n   * \n   * Note: The usage of this extension function in the xalan namespace \n   * is deprecated. Please use the same function in the EXSLT sets extension\n   */\n  public static NodeList difference(NodeList nl1, NodeList nl2)\n  {\n    return ExsltSets.difference(nl1, nl2);\n  }\n\n  /**\n   * Returns node-set containing distinct string values.\n   *\n   * @param nl NodeList for node-set\n   * @return a NodeList with nodes from nl containing distinct string values.\n   * In other words, if more than one node in nl contains the same string value,\n   * only include the first such node found.\n   *\n   * Note: The usage of this extension function in the xalan namespace \n   * is deprecated. Please use the same function in the EXSLT sets extension\n   */\n  public static NodeList distinct(NodeList nl)\n  {\n    return ExsltSets.distinct(nl);\n  }\n\n  /**\n   * Returns true if both node-sets contain the same set of nodes.\n   *\n   * @param nl1 NodeList for first node-set\n   * @param nl2 NodeList for second node-set\n   * @return true if nl1 and nl2 contain exactly the same set of nodes.\n   */\n  public static boolean hasSameNodes(NodeList nl1, NodeList nl2)\n  {\n\n    NodeSet ns1 = new NodeSet(nl1);\n    NodeSet ns2 = new NodeSet(nl2);\n\n    if (ns1.getLength() != ns2.getLength())\n      return false;\n\n    for (int i = 0; i < ns1.getLength(); i++)\n    {\n      Node n = ns1.elementAt(i);\n\n      if (!ns2.contains(n))\n        return false;\n    }\n\n    return true;\n  }\n\n  /**\n   * Returns the result of evaluating the argument as a string containing\n   * an XPath expression.  Used where the XPath expression is not known until\n   * run-time.  The expression is evaluated as if the run-time value of the\n   * argument appeared in place of the evaluate function call at compile time.\n   *\n   * @param myContext an <code>ExpressionContext</code> passed in by the\n   *                  extension mechanism.  This must be an XPathContext.\n   * @param xpathExtr The XPath expression to be evaluated.\n   * @return the XObject resulting from evaluating the XPath\n   *\n   * @throws SAXNotSupportedException\n   *\n   * Note: The usage of this extension function in the xalan namespace \n   * is deprecated. Please use the same function in the EXSLT dynamic extension\n   */\n  public static XObject evaluate(ExpressionContext myContext, String xpathExpr)\n         throws SAXNotSupportedException\n  {\n    return ExsltDynamic.evaluate(myContext, xpathExpr);\n  }\n\n  /**\n   * Returns a NodeSet containing one text node for each token in the first argument.\n   * Delimiters are specified in the second argument.\n   * Tokens are determined by a call to <code>StringTokenizer</code>.\n   * If the first argument is an empty string or contains only delimiters, the result\n   * will be an empty NodeSet.\n   *\n   * Contributed to XalanJ1 by <a href=\"mailto:benoit.cerrina@writeme.com\">Benoit Cerrina</a>.\n   * \n   * @param myContext an <code>ExpressionContext</code> passed in by the\n   *                  extension mechanism.  This must be an XPathContext.\n   * @param toTokenize The string to be split into text tokens.\n   * @param delims The delimiters to use.\n   * @return a NodeSet as described above.\n   */\n  public static NodeList tokenize(String toTokenize, String delims)\n  {\n    try\n    {\n      if (m_doc == null)\n      {\n        synchronized (m_instance)\n        {\n          if (m_doc == null)\n            m_doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();\n        }\n      }\n    }\n    catch(ParserConfigurationException pce)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(pce);\n    }\n\n    StringTokenizer lTokenizer = new StringTokenizer(toTokenize, delims);\n    NodeSet resultSet = new NodeSet();\n\n    synchronized (m_doc)\n    {\n      while (lTokenizer.hasMoreTokens())\n      {\n        resultSet.addNode(m_doc.createTextNode(lTokenizer.nextToken()));\n      }\n    }\n\n    return resultSet;\n  }\n\n  /**\n   * Returns a NodeSet containing one text node for each token in the first argument.\n   * Delimiters are whitespace.  That is, the delimiters that are used are tab (&#x09),\n   * linefeed (&#x0A), return (&#x0D), and space (&#x20).\n   * Tokens are determined by a call to <code>StringTokenizer</code>.\n   * If the first argument is an empty string or contains only delimiters, the result\n   * will be an empty NodeSet.\n   *\n   * Contributed to XalanJ1 by <a href=\"mailto:benoit.cerrina@writeme.com\">Benoit Cerrina</a>.\n   * \n   * @param myContext an <code>ExpressionContext</code> passed in by the\n   *                  extension mechanism.  This must be an XPathContext.\n   * @param toTokenize The string to be split into text tokens.\n   * @return a NodeSet as described above.\n   */\n  public static NodeList tokenize(String toTokenize)\n  {\n    return tokenize(toTokenize, \" \\t\\n\\r\");\n  }\n\n  /**\n   * Return a Node of basic debugging information from the \n   * EnvironmentCheck utility about the Java environment.\n   *\n   * <p>Simply calls the {@link org.apache.xalan.xslt.EnvironmentCheck}\n   * utility to grab info about the Java environment and CLASSPATH, \n   * etc., and then returns the resulting Node.  Stylesheets can \n   * then maniuplate this data or simply xsl:copy-of the Node.  Note \n   * that we first attempt to load the more advanced \n   * org.apache.env.Which utility by reflection; only if that fails \n   * to we still use the internal version.  Which is available from \n   *\n   * <p>We throw a WrappedRuntimeException in the unlikely case \n   * that reading information from the environment throws us an \n   * exception. (Is this really the best thing to do?)</p>\n   *\n   * @param myContext an <code>ExpressionContext</code> passed in by the\n   *                  extension mechanism.  This must be an XPathContext.\n   * @return a Node as described above.\n   */\n  public static Node checkEnvironment(ExpressionContext myContext)\n  {\n\n    Document factoryDocument;\n    try\n    {\n      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n      DocumentBuilder db = dbf.newDocumentBuilder();\n      factoryDocument = db.newDocument();\n    }\n    catch(ParserConfigurationException pce)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(pce);\n    }\n\n    Node resultNode = null;\n    try\n    {\n      resultNode = checkEnvironmentUsingWhich(myContext, factoryDocument);\n\n      if (null != resultNode)\n        return resultNode;\n\n      EnvironmentCheck envChecker = new EnvironmentCheck();\n      Hashtable h = envChecker.getEnvironmentHash();\n      resultNode = factoryDocument.createElement(\"checkEnvironmentExtension\");\n      envChecker.appendEnvironmentReport(resultNode, factoryDocument, h);\n      envChecker = null;\n    }\n    catch(Exception e)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(e);\n    }\n\n    return resultNode;\n  }\n\n  /**\n   * Private worker method to attempt to use org.apache.env.Which.\n   *\n   * @param myContext an <code>ExpressionContext</code> passed in by the\n   *                  extension mechanism.  This must be an XPathContext.\n   * @param factoryDocument providing createElement services, etc.\n   * @return a Node with environment info; null if any error\n   */\n  private static Node checkEnvironmentUsingWhich(ExpressionContext myContext, \n        Document factoryDocument)\n  {\n    final String WHICH_CLASSNAME = \"org.apache.env.Which\";\n    final String WHICH_METHODNAME = \"which\";\n    final Class WHICH_METHOD_ARGS[] = { java.util.Hashtable.class,\n                                        java.lang.String.class,\n                                        java.lang.String.class };\n    try\n    {\n      Class clazz = Class.forName(WHICH_CLASSNAME);\n      if (null == clazz)\n        return null;\n\n      java.lang.reflect.Method method = clazz.getMethod(WHICH_METHODNAME, WHICH_METHOD_ARGS);\n      Hashtable report = new Hashtable();\n\n      Object[] methodArgs = { report, \"XmlCommons;Xalan;Xerces;Crimson;Ant\", \"\" };\n      Object returnValue = method.invoke(null, methodArgs);\n\n      Node resultNode = factoryDocument.createElement(\"checkEnvironmentExtension\");\n      org.apache.xml.utils.Hashtree2Node.appendHashToNode(report, \"whichReport\", \n            resultNode, factoryDocument);\n\n      return resultNode;\n    }\n    catch (Throwable t)\n    {\n      return null;", "functions": [{"function_name": "nodeset", "code": "  public static NodeSet nodeset(ExpressionContext myProcessor, Object rtf)\n  {\n\n    String textNodeValue;\n\n    if (rtf instanceof NodeIterator)\n    {\n      return new NodeSet((NodeIterator) rtf);\n    }\n    else\n    {\n      if (rtf instanceof String)\n      {\n        textNodeValue = (String) rtf;\n      }\n      else if (rtf instanceof Boolean)\n      {\n        textNodeValue = new XBoolean(((Boolean) rtf).booleanValue()).str();\n      }\n      else if (rtf instanceof Double)\n      {\n        textNodeValue = new XNumber(((Double) rtf).doubleValue()).str();\n      }\n      else\n      {\n        textNodeValue = rtf.toString();\n      }\n\n      try\n      {\n        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n        DocumentBuilder db = dbf.newDocumentBuilder();\n        Document myDoc = db.newDocument();\n        \n        Text textNode = myDoc.createTextNode(textNodeValue);\n        DocumentFragment docFrag = myDoc.createDocumentFragment();\n  \n        docFrag.appendChild(textNode);\n  \n        return new NodeSet(docFrag);\n      }\n      catch(ParserConfigurationException pce)\n      {\n        throw new org.apache.xml.utils.WrappedRuntimeException(pce);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "TRY", "IF", "RETURN", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [7, 16], [7, 17], [8, 18], [9, 19], [10, 20], [6, 21], [16, 22], [16, 23], [19, 24], [11, 25], [12, 26], [13, 27], [14, 28], [15, 29], [22, 30], [7, 31], [16, 32], [22, 33], [22, 34], [32, 35], [33, 36], [34, 37], [35, 38], [37, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 6], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 6], [16, 7], [17, 7], [18, 8], [19, 9], [20, 10], [21, 6], [22, 16], [23, 16], [24, 19], [25, 11], [26, 12], [27, 13], [28, 14], [29, 15], [30, 22], [31, 7], [32, 16], [33, 22], [34, 22], [35, 32], [36, 33], [37, 34], [38, 35], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "intersection", "code": "  public static NodeList intersection(NodeList nl1, NodeList nl2)\n  {\n    return ExsltSets.intersection(nl1, nl2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "difference", "code": "  public static NodeList difference(NodeList nl1, NodeList nl2)\n  {\n    return ExsltSets.difference(nl1, nl2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "distinct", "code": "  public static NodeList distinct(NodeList nl)\n  {\n    return ExsltSets.distinct(nl);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hasSameNodes", "code": "  public static boolean hasSameNodes(NodeList nl1, NodeList nl2)\n  {\n\n    NodeSet ns1 = new NodeSet(nl1);\n    NodeSet ns2 = new NodeSet(nl2);\n\n    if (ns1.getLength() != ns2.getLength())\n      return false;\n\n    for (int i = 0; i < ns1.getLength(); i++)\n    {\n      Node n = ns1.elementAt(i);\n\n      if (!ns2.contains(n))\n        return false;\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [3, 11], [2, 12], [2, 13], [9, 14], [10, 15], [11, 16], [11, 17], [4, 18], [5, 19], [12, 20], [12, 21], [2, 22], [20, 23], [13, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 3], [12, 2], [13, 2], [14, 9], [15, 10], [16, 11], [17, 11], [18, 4], [19, 5], [20, 12], [21, 12], [22, 2], [23, 20], [24, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "evaluate", "code": "  public static XObject evaluate(ExpressionContext myContext, String xpathExpr)\n         throws SAXNotSupportedException\n  {\n    return ExsltDynamic.evaluate(myContext, xpathExpr);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "tokenize", "code": "  public static NodeList tokenize(String toTokenize, String delims)\n  {\n    try\n    {\n      if (m_doc == null)\n      {\n        synchronized (m_instance)\n        {\n          if (m_doc == null)\n            m_doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();\n        }\n      }\n    }\n    catch(ParserConfigurationException pce)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(pce);\n    }\n\n    StringTokenizer lTokenizer = new StringTokenizer(toTokenize, delims);\n    NodeSet resultSet = new NodeSet();\n\n    synchronized (m_doc)\n    {\n      while (lTokenizer.hasMoreTokens())\n      {\n        resultSet.addNode(m_doc.createTextNode(lTokenizer.nextToken()));\n      }\n    }\n\n    return resultSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "TRY", "PARAM", "PARAM", "LOOP", "CATCH", "IF", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [4, 9], [7, 10], [2, 11], [3, 12], [8, 13], [9, 14], [13, 15], [14, 16], [7, 17], [9, 18], [17, 19], [18, 20], [19, 21], [18, 22], [20, 23], [22, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 4], [10, 7], [11, 2], [12, 3], [13, 8], [14, 9], [15, 13], [16, 14], [17, 7], [18, 9], [19, 17], [20, 18], [21, 19], [22, 18], [23, 20], [24, 22], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "tokenize", "code": "  public static NodeList tokenize(String toTokenize)\n  {\n    return tokenize(toTokenize, \" \\t\\n\\r\");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "checkEnvironment", "code": "  public static Node checkEnvironment(ExpressionContext myContext)\n  {\n\n    Document factoryDocument;\n    try\n    {\n      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n      DocumentBuilder db = dbf.newDocumentBuilder();\n      factoryDocument = db.newDocument();\n    }\n    catch(ParserConfigurationException pce)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(pce);\n    }\n\n    Node resultNode = null;\n    try\n    {\n      resultNode = checkEnvironmentUsingWhich(myContext, factoryDocument);\n\n      if (null != resultNode)\n        return resultNode;\n\n      EnvironmentCheck envChecker = new EnvironmentCheck();\n      Hashtable h = envChecker.getEnvironmentHash();\n      resultNode = factoryDocument.createElement(\"checkEnvironmentExtension\");\n      envChecker.appendEnvironmentReport(resultNode, factoryDocument, h);\n      envChecker = null;\n    }\n    catch(Exception e)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(e);\n    }\n\n    return resultNode;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "ASSIGN", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [2, 10], [4, 11], [4, 12], [4, 13], [7, 14], [2, 15], [2, 16], [2, 17], [10, 18], [10, 19], [2, 20], [3, 21], [11, 22], [4, 23], [14, 24], [15, 25], [17, 26], [8, 27], [9, 28], [19, 29], [20, 30], [22, 31], [23, 32], [12, 33], [13, 34], [26, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 2], [11, 4], [12, 4], [13, 4], [14, 7], [15, 2], [16, 2], [17, 2], [18, 10], [19, 10], [20, 2], [21, 3], [22, 11], [23, 4], [24, 14], [25, 15], [26, 17], [27, 8], [28, 9], [29, 19], [30, 20], [31, 22], [32, 23], [33, 12], [34, 13], [35, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "checkEnvironmentUsingWhich", "code": "  private static Node checkEnvironmentUsingWhich(ExpressionContext myContext, \n        Document factoryDocument)\n  {\n    final String WHICH_CLASSNAME = \"org.apache.env.Which\";\n    final String WHICH_METHODNAME = \"which\";\n    final Class WHICH_METHOD_ARGS[] = { java.util.Hashtable.class,\n                                        java.lang.String.class,\n                                        java.lang.String.class };\n    try\n    {\n      Class clazz = Class.forName(WHICH_CLASSNAME);\n      if (null == clazz)\n        return null;\n\n      java.lang.reflect.Method method = clazz.getMethod(WHICH_METHODNAME, WHICH_METHOD_ARGS);\n      Hashtable report = new Hashtable();\n\n      Object[] methodArgs = { report, \"XmlCommons;Xalan;Xerces;Crimson;Ant\", \"\" };\n      Object returnValue = method.invoke(null, methodArgs);\n\n      Node resultNode = factoryDocument.createElement(\"checkEnvironmentExtension\");\n      org.apache.xml.utils.Hashtree2Node.appendHashToNode(report, \"whichReport\", \n            resultNode, factoryDocument);\n\n      return resultNode;\n    }\n    catch (Throwable t)\n    {\n      return null;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "RETURN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [7, 16], [1, 17], [14, 18], [14, 19], [3, 20], [4, 21], [16, 22], [17, 23], [9, 24], [10, 25], [12, 26], [13, 27], [18, 28], [19, 29], [15, 30], [24, 31], [25, 32], [11, 33], [11, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 7], [17, 1], [18, 14], [19, 14], [20, 3], [21, 4], [22, 16], [23, 17], [24, 9], [25, 10], [26, 12], [27, 13], [28, 18], [29, 19], [30, 15], [31, 24], [32, 25], [33, 11], [34, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}], "label": 1}
{"sample_id": "xalan-2.5-7283", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/lib/ExsltDynamic.java", "language": "java", "name": "org.apache.xalan.lib.ExsltDynamic", "code": "public class ExsltDynamic extends ExsltBase\n{\n\n   \n  /**\n   * The dyn:max function calculates the maximum value for the nodes passed as \n   * the first argument, where the value of each node is calculated dynamically \n   * using an XPath expression passed as a string as the second argument. \n   * <p>\n   * The expressions are evaluated relative to the nodes passed as the first argument.\n   * In other words, the value for each node is calculated by evaluating the XPath \n   * expression with all context information being the same as that for the call to \n   * the dyn:max function itself, except for the following:\n   * <p>\n   * <ul>\n   *  <li>the context node is the node whose value is being calculated.</li>\n   *  <li>the context position is the position of the node within the node set passed as \n   *   the first argument to the dyn:max function, arranged in document order.</li>\n   *  <li>the context size is the number of nodes passed as the first argument to the \n   *   dyn:max function.</li>\n   * </ul>\n   * <p>\n   * The dyn:max function returns the maximum of these values, calculated in exactly \n   * the same way as for math:max. \n   * <p>\n   * If the expression string passed as the second argument is an invalid XPath \n   * expression (including an empty string), this function returns NaN. \n   * <p>\n   * This function must take a second argument. To calculate the maximum of a set of \n   * nodes based on their string values, you should use the math:max function.\n   *\n   * @param myContext The ExpressionContext passed by the extension processor\n   * @param nl The node set\n   * @param expr The expression string\n   *\n   * @return The maximum evaluation value\n   */\n  public static double max(ExpressionContext myContext, NodeList nl, String expr)\n    throws SAXNotSupportedException\n  {\n\n    XPathContext xctxt = null;\n    if (myContext instanceof XPathContext.XPathExpressionContext)\n      xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n    else\n      throw new SAXNotSupportedException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_CONTEXT_PASSED, new Object[]{myContext }));\n\n    if (expr == null || expr.length() == 0)\n      return Double.NaN;\n      \n    NodeSetDTM contextNodes = new NodeSetDTM(nl, xctxt);\n    xctxt.pushContextNodeList(contextNodes);\n    \n    double maxValue = - Double.MAX_VALUE;\n    for (int i = 0; i < contextNodes.getLength(); i++)\n    {\n      int contextNode = contextNodes.item(i);\n      xctxt.pushCurrentNode(contextNode);\n      \n      double result = 0;\n      try\n      {\n        XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),\n                                       xctxt.getNamespaceContext(),\n                                       XPath.SELECT);\n        result = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext()).num();\n      }\n      catch (TransformerException e)\n      {\n        xctxt.popCurrentNode();\n        xctxt.popContextNodeList();\n        return Double.NaN;\n      }\n      \n      xctxt.popCurrentNode();\n              \n      if (result > maxValue)\n          maxValue = result;\n    }      \n      \n    xctxt.popContextNodeList();\n    return maxValue;\n        \n  }\n  \n  /**\n   * The dyn:min function calculates the minimum value for the nodes passed as the \n   * first argument, where the value of each node is calculated dynamically using \n   * an XPath expression passed as a string as the second argument. \n   * <p>\n   * The expressions are evaluated relative to the nodes passed as the first argument. \n   * In other words, the value for each node is calculated by evaluating the XPath \n   * expression with all context information being the same as that for the call to \n   * the dyn:min function itself, except for the following: \n   * <p>\n   * <ul>\n   *  <li>the context node is the node whose value is being calculated.</li>\n   *  <li>the context position is the position of the node within the node set passed \n   *    as the first argument to the dyn:min function, arranged in document order.</li>\n   *  <li>the context size is the number of nodes passed as the first argument to the \n   *    dyn:min function.</li>\n   * </ul>\n   * <p>\n   * The dyn:min function returns the minimum of these values, calculated in exactly \n   * the same way as for math:min. \n   * <p>\n   * If the expression string passed as the second argument is an invalid XPath expression \n   * (including an empty string), this function returns NaN. \n   * <p>\n   * This function must take a second argument. To calculate the minimum of a set of \n   * nodes based on their string values, you should use the math:min function.\n   *\n   * @param myContext The ExpressionContext passed by the extension processor\n   * @param nl The node set\n   * @param expr The expression string\n   *\n   * @return The minimum evaluation value\n   */\n  public static double min(ExpressionContext myContext, NodeList nl, String expr)\n    throws SAXNotSupportedException\n  {\n    \n    XPathContext xctxt = null;\n    if (myContext instanceof XPathContext.XPathExpressionContext)\n      xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n    else\n      throw new SAXNotSupportedException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_CONTEXT_PASSED, new Object[]{myContext }));\n\n    if (expr == null || expr.length() == 0)\n      return Double.NaN;\n      \n    NodeSetDTM contextNodes = new NodeSetDTM(nl, xctxt);\n    xctxt.pushContextNodeList(contextNodes);\n    \n    double minValue = Double.MAX_VALUE;\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      int contextNode = contextNodes.item(i);\n      xctxt.pushCurrentNode(contextNode);\n      \n      double result = 0;\n      try\n      {\n        XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),\n                                       xctxt.getNamespaceContext(),\n                                       XPath.SELECT);\n        result = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext()).num();\n      }\n      catch (TransformerException e)\n      {\n        xctxt.popCurrentNode();\n        xctxt.popContextNodeList();\n        return Double.NaN;\n      }\n      \n      xctxt.popCurrentNode();\n              \n      if (result < minValue)\n          minValue = result;\n    }      \n      \n    xctxt.popContextNodeList();\n    return minValue;\n  \n  }\n\n  /**\n   * The dyn:sum function calculates the sum for the nodes passed as the first argument, \n   * where the value of each node is calculated dynamically using an XPath expression \n   * passed as a string as the second argument. \n   * <p>\n   * The expressions are evaluated relative to the nodes passed as the first argument. \n   * In other words, the value for each node is calculated by evaluating the XPath \n   * expression with all context information being the same as that for the call to \n   * the dyn:sum function itself, except for the following: \n   * <p>\n   * <ul>\n   *  <li>the context node is the node whose value is being calculated.</li>\n   *  <li>the context position is the position of the node within the node set passed as \n   *    the first argument to the dyn:sum function, arranged in document order.</li>\n   *  <li>the context size is the number of nodes passed as the first argument to the \n   *    dyn:sum function.</li>\n   * </ul>\n   * <p>\n   * The dyn:sum function returns the sumimum of these values, calculated in exactly \n   * the same way as for sum. \n   * <p>\n   * If the expression string passed as the second argument is an invalid XPath \n   * expression (including an empty string), this function returns NaN. \n   * <p>\n   * This function must take a second argument. To calculate the sumimum of a set of \n   * nodes based on their string values, you should use the sum function.\n   *\n   * @param myContext The ExpressionContext passed by the extension processor\n   * @param nl The node set\n   * @param expr The expression string\n   *\n   * @return The sum of the evaluation value on each node\n   */\n  public static double sum(ExpressionContext myContext, NodeList nl, String expr)\n    throws SAXNotSupportedException\n  {\n    XPathContext xctxt = null;\n    if (myContext instanceof XPathContext.XPathExpressionContext)\n      xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n    else\n      throw new SAXNotSupportedException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_CONTEXT_PASSED, new Object[]{myContext }));\n\n    if (expr == null || expr.length() == 0)\n      return Double.NaN;\n      \n    NodeSetDTM contextNodes = new NodeSetDTM(nl, xctxt);\n    xctxt.pushContextNodeList(contextNodes);\n    \n    double sum = 0;\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      int contextNode = contextNodes.item(i);\n      xctxt.pushCurrentNode(contextNode);\n      \n      double result = 0;\n      try\n      {\n        XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),\n                                       xctxt.getNamespaceContext(),\n                                       XPath.SELECT);\n        result = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext()).num();\n      }\n      catch (TransformerException e)\n      {\n        xctxt.popCurrentNode();\n        xctxt.popContextNodeList();\n        return Double.NaN;\n      }\n      \n      xctxt.popCurrentNode();\n      \n      sum = sum + result;\n              \n    }      \n      \n    xctxt.popContextNodeList();\n    return sum;\n  }\n\n  /**\n   * The dyn:map function evaluates the expression passed as the second argument for \n   * each of the nodes passed as the first argument, and returns a node set of those values. \n   * <p>\n   * The expressions are evaluated relative to the nodes passed as the first argument. \n   * In other words, the value for each node is calculated by evaluating the XPath \n   * expression with all context information being the same as that for the call to \n   * the dyn:map function itself, except for the following:\n   * <p>\n   * <ul>\n   *  <li>The context node is the node whose value is being calculated.</li>\n   *  <li>the context position is the position of the node within the node set passed\n   *    as the first argument to the dyn:map function, arranged in document order.</li>\n   *  <li>the context size is the number of nodes passed as the first argument to the \n   *    dyn:map function.</li>\n   * </ul>\n   * <p>\n   * If the expression string passed as the second argument is an invalid XPath \n   * expression (including an empty string), this function returns an empty node set. \n   * <p>\n   * If the XPath expression evaluates as a node set, the dyn:map function returns \n   * the union of the node sets returned by evaluating the expression for each of the \n   * nodes in the first argument. Note that this may mean that the node set resulting \n   * from the call to the dyn:map function contains a different number of nodes from \n   * the number in the node set passed as the first argument to the function. \n   * <p>\n   * If the XPath expression evaluates as a number, the dyn:map function returns a \n   * for each node in the node set passed as the first argument to the dyn:map function, \n   * in document order. The string value of each exsl:number element is the same as \n   * the result of converting the number resulting from evaluating the expression to \n   * a string as with the number function, with the exception that Infinity results \n   * in an exsl:number holding the highest number the implementation can store, and \n   * -Infinity results in an exsl:number holding the lowest number the implementation \n   * can store. \n   * <p>\n   * If the XPath expression evaluates as a boolean, the dyn:map function returns a \n   * for each node in the node set passed as the first argument to the dyn:map function, \n   * in document order. The string value of each exsl:boolean element is 'true' if the \n   * expression evaluates as true for the node, and '' if the expression evaluates as \n   * false. \n   * <p>\n   * Otherwise, the dyn:map function returns a node set containing one exsl:string \n   * as the first argument to the dyn:map function, in document order. The string \n   * value of each exsl:string element is the same as the result of converting the \n   * result of evaluating the expression for the relevant node to a string as with \n   * the string function.\n   *\n   * @param myContext The ExpressionContext passed by the extension processor\n   * @param nl The node set\n   * @param expr The expression string\n   *\n   * @return The node set after evaluation\n   */\n  public static NodeList map(ExpressionContext myContext, NodeList nl, String expr)\n    throws SAXNotSupportedException\n  {\n    XPathContext xctxt = null;\n    Document lDoc = null;\n    \n    if (myContext instanceof XPathContext.XPathExpressionContext)\n      xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n    else\n      throw new SAXNotSupportedException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_CONTEXT_PASSED, new Object[]{myContext }));\n\n    if (expr == null || expr.length() == 0)\n      return new NodeSet();\n      \n    NodeSetDTM contextNodes = new NodeSetDTM(nl, xctxt);\n    xctxt.pushContextNodeList(contextNodes);\n    \n    NodeSet resultSet = new NodeSet();\n    resultSet.setShouldCacheNodes(true);\n    \n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      int contextNode = contextNodes.item(i);\n      xctxt.pushCurrentNode(contextNode);\n      \n      XObject object = null;\n      try\n      {\n        XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),\n                                       xctxt.getNamespaceContext(),\n                                       XPath.SELECT);\n        object = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext());\n        \n        if (object instanceof XNodeSet)\n        {\n          NodeList nodelist = null;\n          nodelist = ((XNodeSet)object).nodelist();\n        \n          for (int k = 0; k < nodelist.getLength(); k++)\n          {\n            Node n = nodelist.item(k);\n            if (!resultSet.contains(n))\n              resultSet.addNode(n);\n          }\n        }\n        else\n        {\n\t  if (lDoc == null)\n\t  {\n            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n            dbf.setNamespaceAware(true);\n            DocumentBuilder db = dbf.newDocumentBuilder();\n            lDoc = db.newDocument();\n          }\n        \n          Element element = null;\n          if (object instanceof XNumber)\n            element = lDoc.createElementNS(EXSL_URI, \"exsl:number\");\n          else if (object instanceof XBoolean)\n            element = lDoc.createElementNS(EXSL_URI, \"exsl:boolean\");\n          else\n            element = lDoc.createElementNS(EXSL_URI, \"exsl:string\");\n          \n          Text textNode = lDoc.createTextNode(object.str());\n          element.appendChild(textNode);\n          resultSet.addNode(element);\n        }\n      }\n      catch (Exception e)\n      {\n        xctxt.popCurrentNode();\n        xctxt.popContextNodeList();\n        return new NodeSet();\n      }\n      \n      xctxt.popCurrentNode();\n      \n    }      \n      \n    xctxt.popContextNodeList();\n    return resultSet;\n  }\n\n  /**\n   * The dyn:evaluate function evaluates a string as an XPath expression and returns \n   * the resulting value, which might be a boolean, number, string, node set, result \n   * tree fragment or external object. The sole argument is the string to be evaluated.\n   * <p>\n   * If the expression string passed as the second argument is an invalid XPath \n   * expression (including an empty string), this function returns an empty node set. \n   * <p>\n   * You should only use this function if the expression must be constructed dynamically, \n   * otherwise it is much more efficient to use the expression literally.\n   *\n   * @param myContext The ExpressionContext passed by the extension processor\n   * @param xpathExpr The XPath expression string\n   *\n   * @return The evaluation result \n   */\n  public static XObject evaluate(ExpressionContext myContext, String xpathExpr)\n    throws SAXNotSupportedException\n  {\n    if (myContext instanceof XPathContext.XPathExpressionContext)\n    {\n      XPathContext xctxt = null;\n      try\n      {\n        xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n        XPath dynamicXPath = new XPath(xpathExpr, xctxt.getSAXLocator(),\n                                       xctxt.getNamespaceContext(),\n                                       XPath.SELECT);\n\n        return dynamicXPath.execute(xctxt, myContext.getContextNode(),\n                                    xctxt.getNamespaceContext());\n      }\n      catch (TransformerException e)\n      {\n        return new XNodeSet(xctxt.getDTMManager());\n      }\n    }\n    else{}\n  }\n\n  /**\n   * The dyn:closure function creates a node set resulting from transitive closure of \n   * evaluating the expression passed as the second argument on each of the nodes passed \n   * as the first argument, then on the node set resulting from that and so on until no \n   * more nodes are found. For example: \n   * <pre>\n   *  dyn:closure(., '*')\n   * </pre>\n   * returns all the descendant elements of the node (its element children, their \n   * children, their children's children and so on). \n   * <p>\n   * The expression is thus evaluated several times, each with a different node set \n   * acting as the context of the expression. The first time the expression is \n   * evaluated, the context node set is the first argument passed to the dyn:closure \n   * function. In other words, the node set for each node is calculated by evaluating \n   * the XPath expression with all context information being the same as that for \n   * the call to the dyn:closure function itself, except for the following:\n   * <p>\n   * <ul>\n   *  <li>the context node is the node whose value is being calculated.</li>\n   *  <li>the context position is the position of the node within the node set passed \n   *    as the first argument to the dyn:closure function, arranged in document order.</li>\n   *  <li>the context size is the number of nodes passed as the first argument to the \n   *    dyn:closure function.</li>\n   *  <li>the current node is the node whose value is being calculated.</li>\n   * </ul>\n   * <p>\n   * The result for a particular iteration is the union of the node sets resulting \n   * from evaluting the expression for each of the nodes in the source node set for \n   * that iteration. This result is then used as the source node set for the next \n   * iteration, and so on. The result of the function as a whole is the union of \n   * the node sets generated by each iteration. \n   * <p>\n   * If the expression string passed as the second argument is an invalid XPath \n   * expression (including an empty string) or an expression that does not return a \n   * node set, this function returns an empty node set.\n   *\n   * @param myContext The ExpressionContext passed by the extension processor\n   * @param nl The node set\n   * @param expr The expression string\n   *\n   * @return The node set after evaluation\n   */\n  public static NodeList closure(ExpressionContext myContext, NodeList nl, String expr)\n    throws SAXNotSupportedException\n  {\n    XPathContext xctxt = null;\n    if (myContext instanceof XPathContext.XPathExpressionContext)\n      xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n    else\n      throw new SAXNotSupportedException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_CONTEXT_PASSED, new Object[]{myContext }));\n\n    if (expr == null || expr.length() == 0)\n      return new NodeSet();\n          \n    NodeSet closureSet = new NodeSet();\n    closureSet.setShouldCacheNodes(true);\n        \n    NodeList iterationList = nl;\n    do\n    {\n    \n      NodeSet iterationSet = new NodeSet();\n\n      NodeSetDTM contextNodes = new NodeSetDTM(iterationList, xctxt);\n      xctxt.pushContextNodeList(contextNodes);\n      \n      for (int i = 0; i < iterationList.getLength(); i++)\n      {\n        int contextNode = contextNodes.item(i);\n        xctxt.pushCurrentNode(contextNode);\n\n        XObject object = null;\n        try\n        {\n          XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),\n                                         xctxt.getNamespaceContext(),\n                                         XPath.SELECT);\n          object = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext());\n          \n          if (object instanceof XNodeSet)\n          {\n            NodeList nodelist = null;\n            nodelist = ((XNodeSet)object).nodelist();\n        \n            for (int k = 0; k < nodelist.getLength(); k++)\n            {\n              Node n = nodelist.item(k);\n              if (!iterationSet.contains(n))\n                iterationSet.addNode(n);\n            }        \n          }\n          else\n          {\n            xctxt.popCurrentNode();\n            xctxt.popContextNodeList();\n            return new NodeSet();\n          }          \n        }\n        catch (TransformerException e)\n        {\n          xctxt.popCurrentNode();\n          xctxt.popContextNodeList();\n          return new NodeSet();\n        }\n      \n        xctxt.popCurrentNode();\n            \n      }\n      \n      xctxt.popContextNodeList();\n      \n      iterationList = iterationSet;\n      \n      for (int i = 0; i < iterationList.getLength(); i++)\n      {\n        Node n = iterationList.item(i);\n        if (!closureSet.contains(n))\n          closureSet.addNode(n);\n      }\n      \n    } while(iterationList.getLength() > 0);\n    \n    return closureSet;", "functions": [{"function_name": "max", "code": "  public static double max(ExpressionContext myContext, NodeList nl, String expr)\n    throws SAXNotSupportedException\n  {\n\n    XPathContext xctxt = null;\n    if (myContext instanceof XPathContext.XPathExpressionContext)\n      xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n    else\n      throw new SAXNotSupportedException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_CONTEXT_PASSED, new Object[]{myContext }));\n\n    if (expr == null || expr.length() == 0)\n      return Double.NaN;\n      \n    NodeSetDTM contextNodes = new NodeSetDTM(nl, xctxt);\n    xctxt.pushContextNodeList(contextNodes);\n    \n    double maxValue = - Double.MAX_VALUE;\n    for (int i = 0; i < contextNodes.getLength(); i++)\n    {\n      int contextNode = contextNodes.item(i);\n      xctxt.pushCurrentNode(contextNode);\n      \n      double result = 0;\n      try\n      {\n        XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),\n                                       xctxt.getNamespaceContext(),\n                                       XPath.SELECT);\n        result = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext()).num();\n      }\n      catch (TransformerException e)\n      {\n        xctxt.popCurrentNode();\n        xctxt.popContextNodeList();\n        return Double.NaN;\n      }\n      \n      xctxt.popCurrentNode();\n              \n      if (result > maxValue)\n          maxValue = result;\n    }      \n      \n    xctxt.popContextNodeList();\n    return maxValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "IF", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CATCH", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [0, 13], [5, 14], [5, 15], [6, 16], [6, 17], [2, 18], [2, 19], [2, 20], [2, 21], [12, 22], [4, 23], [15, 24], [15, 25], [16, 26], [6, 27], [7, 28], [18, 29], [2, 30], [19, 31], [19, 32], [2, 33], [2, 34], [24, 35], [24, 36], [25, 37], [26, 38], [18, 39], [31, 40], [19, 41], [20, 42], [21, 43], [31, 44], [31, 45], [41, 46], [32, 47], [46, 48], [46, 49], [47, 50], [47, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 0], [14, 5], [15, 5], [16, 6], [17, 6], [18, 2], [19, 2], [20, 2], [21, 2], [22, 12], [23, 4], [24, 15], [25, 15], [26, 16], [27, 6], [28, 7], [29, 18], [30, 2], [31, 19], [32, 19], [33, 2], [34, 2], [35, 24], [36, 24], [37, 25], [38, 26], [39, 18], [40, 31], [41, 19], [42, 20], [43, 21], [44, 31], [45, 31], [46, 41], [47, 32], [48, 46], [49, 46], [50, 47], [51, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "min", "code": "  public static double min(ExpressionContext myContext, NodeList nl, String expr)\n    throws SAXNotSupportedException\n  {\n    \n    XPathContext xctxt = null;\n    if (myContext instanceof XPathContext.XPathExpressionContext)\n      xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n    else\n      throw new SAXNotSupportedException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_CONTEXT_PASSED, new Object[]{myContext }));\n\n    if (expr == null || expr.length() == 0)\n      return Double.NaN;\n      \n    NodeSetDTM contextNodes = new NodeSetDTM(nl, xctxt);\n    xctxt.pushContextNodeList(contextNodes);\n    \n    double minValue = Double.MAX_VALUE;\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      int contextNode = contextNodes.item(i);\n      xctxt.pushCurrentNode(contextNode);\n      \n      double result = 0;\n      try\n      {\n        XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),\n                                       xctxt.getNamespaceContext(),\n                                       XPath.SELECT);\n        result = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext()).num();\n      }\n      catch (TransformerException e)\n      {\n        xctxt.popCurrentNode();\n        xctxt.popContextNodeList();\n        return Double.NaN;\n      }\n      \n      xctxt.popCurrentNode();\n              \n      if (result < minValue)\n          minValue = result;\n    }      \n      \n    xctxt.popContextNodeList();\n    return minValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "IF", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CATCH", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [0, 13], [5, 14], [5, 15], [6, 16], [6, 17], [2, 18], [2, 19], [2, 20], [2, 21], [12, 22], [4, 23], [15, 24], [15, 25], [16, 26], [6, 27], [7, 28], [18, 29], [2, 30], [19, 31], [19, 32], [2, 33], [2, 34], [24, 35], [24, 36], [25, 37], [26, 38], [18, 39], [31, 40], [19, 41], [20, 42], [21, 43], [31, 44], [31, 45], [41, 46], [32, 47], [46, 48], [46, 49], [47, 50], [47, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 0], [14, 5], [15, 5], [16, 6], [17, 6], [18, 2], [19, 2], [20, 2], [21, 2], [22, 12], [23, 4], [24, 15], [25, 15], [26, 16], [27, 6], [28, 7], [29, 18], [30, 2], [31, 19], [32, 19], [33, 2], [34, 2], [35, 24], [36, 24], [37, 25], [38, 26], [39, 18], [40, 31], [41, 19], [42, 20], [43, 21], [44, 31], [45, 31], [46, 41], [47, 32], [48, 46], [49, 46], [50, 47], [51, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "sum", "code": "  public static double sum(ExpressionContext myContext, NodeList nl, String expr)\n    throws SAXNotSupportedException\n  {\n    XPathContext xctxt = null;\n    if (myContext instanceof XPathContext.XPathExpressionContext)\n      xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n    else\n      throw new SAXNotSupportedException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_CONTEXT_PASSED, new Object[]{myContext }));\n\n    if (expr == null || expr.length() == 0)\n      return Double.NaN;\n      \n    NodeSetDTM contextNodes = new NodeSetDTM(nl, xctxt);\n    xctxt.pushContextNodeList(contextNodes);\n    \n    double sum = 0;\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      int contextNode = contextNodes.item(i);\n      xctxt.pushCurrentNode(contextNode);\n      \n      double result = 0;\n      try\n      {\n        XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),\n                                       xctxt.getNamespaceContext(),\n                                       XPath.SELECT);\n        result = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext()).num();\n      }\n      catch (TransformerException e)\n      {\n        xctxt.popCurrentNode();\n        xctxt.popContextNodeList();\n        return Double.NaN;\n      }\n      \n      xctxt.popCurrentNode();\n      \n      sum = sum + result;\n              \n    }      \n      \n    xctxt.popContextNodeList();\n    return sum;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CATCH", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [0, 13], [5, 14], [5, 15], [6, 16], [6, 17], [2, 18], [2, 19], [2, 20], [12, 21], [3, 22], [4, 23], [15, 24], [15, 25], [16, 26], [6, 27], [7, 28], [2, 29], [2, 30], [18, 31], [18, 32], [2, 33], [2, 34], [24, 35], [24, 36], [25, 37], [26, 38], [29, 39], [31, 40], [18, 41], [19, 42], [20, 43], [31, 44], [31, 45], [41, 46], [32, 47], [46, 48], [46, 49], [47, 50], [47, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 0], [14, 5], [15, 5], [16, 6], [17, 6], [18, 2], [19, 2], [20, 2], [21, 12], [22, 3], [23, 4], [24, 15], [25, 15], [26, 16], [27, 6], [28, 7], [29, 2], [30, 2], [31, 18], [32, 18], [33, 2], [34, 2], [35, 24], [36, 24], [37, 25], [38, 26], [39, 29], [40, 31], [41, 18], [42, 19], [43, 20], [44, 31], [45, 31], [46, 41], [47, 32], [48, 46], [49, 46], [50, 47], [51, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "map", "code": "  public static NodeList map(ExpressionContext myContext, NodeList nl, String expr)\n    throws SAXNotSupportedException\n  {\n    XPathContext xctxt = null;\n    Document lDoc = null;\n    \n    if (myContext instanceof XPathContext.XPathExpressionContext)\n      xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n    else\n      throw new SAXNotSupportedException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_CONTEXT_PASSED, new Object[]{myContext }));\n\n    if (expr == null || expr.length() == 0)\n      return new NodeSet();\n      \n    NodeSetDTM contextNodes = new NodeSetDTM(nl, xctxt);\n    xctxt.pushContextNodeList(contextNodes);\n    \n    NodeSet resultSet = new NodeSet();\n    resultSet.setShouldCacheNodes(true);\n    \n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      int contextNode = contextNodes.item(i);\n      xctxt.pushCurrentNode(contextNode);\n      \n      XObject object = null;\n      try\n      {\n        XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),\n                                       xctxt.getNamespaceContext(),\n                                       XPath.SELECT);\n        object = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext());\n        \n        if (object instanceof XNodeSet)\n        {\n          NodeList nodelist = null;\n          nodelist = ((XNodeSet)object).nodelist();\n        \n          for (int k = 0; k < nodelist.getLength(); k++)\n          {\n            Node n = nodelist.item(k);\n            if (!resultSet.contains(n))\n              resultSet.addNode(n);\n          }\n        }\n        else\n        {\n\t  if (lDoc == null)\n\t  {\n            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n            dbf.setNamespaceAware(true);\n            DocumentBuilder db = dbf.newDocumentBuilder();\n            lDoc = db.newDocument();\n          }\n        \n          Element element = null;\n          if (object instanceof XNumber)\n            element = lDoc.createElementNS(EXSL_URI, \"exsl:number\");\n          else if (object instanceof XBoolean)\n            element = lDoc.createElementNS(EXSL_URI, \"exsl:boolean\");\n          else\n            element = lDoc.createElementNS(EXSL_URI, \"exsl:string\");\n          \n          Text textNode = lDoc.createTextNode(object.str());\n          element.appendChild(textNode);\n          resultSet.addNode(element);\n        }\n      }\n      catch (Exception e)\n      {\n        xctxt.popCurrentNode();\n        xctxt.popContextNodeList();\n        return new NodeSet();\n      }\n      \n      xctxt.popCurrentNode();\n      \n    }      \n      \n    xctxt.popContextNodeList();\n    return resultSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "IF", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [0, 14], [0, 15], [5, 16], [5, 17], [6, 18], [6, 19], [2, 20], [2, 21], [2, 22], [13, 23], [14, 24], [3, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [6, 31], [7, 32], [8, 33], [2, 34], [20, 35], [20, 36], [20, 37], [2, 38], [2, 39], [28, 40], [28, 41], [29, 42], [30, 43], [35, 44], [36, 45], [20, 46], [21, 47], [22, 48], [44, 49], [35, 50], [35, 51], [36, 52], [36, 53], [36, 54], [36, 55], [36, 56], [36, 57], [46, 58], [37, 59], [36, 60], [36, 61], [53, 62], [53, 63], [55, 64], [56, 65], [36, 66], [58, 67], [59, 68], [59, 69], [52, 70], [62, 71], [53, 72], [54, 73], [55, 74], [55, 75], [64, 76], [56, 77], [56, 78], [65, 79], [57, 80], [70, 81], [62, 82], [62, 83], [72, 84], [55, 85], [55, 86], [77, 87], [56, 88], [82, 89], [83, 90], [84, 91], [85, 92], [74, 93], [86, 94], [75, 95], [77, 96], [78, 97], [89, 98], [90, 99], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 0], [15, 0], [16, 5], [17, 5], [18, 6], [19, 6], [20, 2], [21, 2], [22, 2], [23, 13], [24, 14], [25, 3], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 6], [32, 7], [33, 8], [34, 2], [35, 20], [36, 20], [37, 20], [38, 2], [39, 2], [40, 28], [41, 28], [42, 29], [43, 30], [44, 35], [45, 36], [46, 20], [47, 21], [48, 22], [49, 44], [50, 35], [51, 35], [52, 36], [53, 36], [54, 36], [55, 36], [56, 36], [57, 36], [58, 46], [59, 37], [60, 36], [61, 36], [62, 53], [63, 53], [64, 55], [65, 56], [66, 36], [67, 58], [68, 59], [69, 59], [70, 52], [71, 62], [72, 53], [73, 54], [74, 55], [75, 55], [76, 64], [77, 56], [78, 56], [79, 65], [80, 57], [81, 70], [82, 62], [83, 62], [84, 72], [85, 55], [86, 55], [87, 77], [88, 56], [89, 82], [90, 83], [91, 84], [92, 85], [93, 74], [94, 86], [95, 75], [96, 77], [97, 78], [98, 89], [99, 90], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99]]}, {"function_name": "evaluate", "code": "  public static XObject evaluate(ExpressionContext myContext, String xpathExpr)\n    throws SAXNotSupportedException\n  {\n    if (myContext instanceof XPathContext.XPathExpressionContext)\n    {\n      XPathContext xctxt = null;\n      try\n      {\n        xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n        XPath dynamicXPath = new XPath(xpathExpr, xctxt.getSAXLocator(),\n                                       xctxt.getNamespaceContext(),\n                                       XPath.SELECT);\n\n        return dynamicXPath.execute(xctxt, myContext.getContextNode(),\n                                    xctxt.getNamespaceContext());\n      }\n      catch (TransformerException e)\n      {\n        return new XNodeSet(xctxt.getDTMManager());\n      }\n    }\n    else{}", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "CATCH", "RETURN", "VAR_DECL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [5, 8], [5, 9], [7, 10], [8, 11], [5, 12], [6, 13], [10, 14], [11, 15], [11, 16], [9, 17], [14, 18], [17, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 5], [9, 5], [10, 7], [11, 8], [12, 5], [13, 6], [14, 10], [15, 11], [16, 11], [17, 9], [18, 14], [19, 17], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "closure", "code": "  public static NodeList closure(ExpressionContext myContext, NodeList nl, String expr)\n    throws SAXNotSupportedException\n  {\n    XPathContext xctxt = null;\n    if (myContext instanceof XPathContext.XPathExpressionContext)\n      xctxt = ((XPathContext.XPathExpressionContext) myContext).getXPathContext();\n    else\n      throw new SAXNotSupportedException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_CONTEXT_PASSED, new Object[]{myContext }));\n\n    if (expr == null || expr.length() == 0)\n      return new NodeSet();\n          \n    NodeSet closureSet = new NodeSet();\n    closureSet.setShouldCacheNodes(true);\n        \n    NodeList iterationList = nl;\n    do\n    {\n    \n      NodeSet iterationSet = new NodeSet();\n\n      NodeSetDTM contextNodes = new NodeSetDTM(iterationList, xctxt);\n      xctxt.pushContextNodeList(contextNodes);\n      \n      for (int i = 0; i < iterationList.getLength(); i++)\n      {\n        int contextNode = contextNodes.item(i);\n        xctxt.pushCurrentNode(contextNode);\n\n        XObject object = null;\n        try\n        {\n          XPath dynamicXPath = new XPath(expr, xctxt.getSAXLocator(),\n                                         xctxt.getNamespaceContext(),\n                                         XPath.SELECT);\n          object = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext());\n          \n          if (object instanceof XNodeSet)\n          {\n            NodeList nodelist = null;\n            nodelist = ((XNodeSet)object).nodelist();\n        \n            for (int k = 0; k < nodelist.getLength(); k++)\n            {\n              Node n = nodelist.item(k);\n              if (!iterationSet.contains(n))\n                iterationSet.addNode(n);\n            }        \n          }\n          else\n          {\n            xctxt.popCurrentNode();\n            xctxt.popContextNodeList();\n            return new NodeSet();\n          }          \n        }\n        catch (TransformerException e)\n        {\n          xctxt.popCurrentNode();\n          xctxt.popContextNodeList();\n          return new NodeSet();\n        }\n      \n        xctxt.popCurrentNode();\n            \n      }\n      \n      xctxt.popContextNodeList();\n      \n      iterationList = iterationSet;\n      \n      for (int i = 0; i < iterationList.getLength(); i++)\n      {\n        Node n = iterationList.item(i);\n        if (!closureSet.contains(n))\n          closureSet.addNode(n);\n      }\n      \n    } while(iterationList.getLength() > 0);\n    \n    return closureSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [0, 12], [5, 13], [5, 14], [6, 15], [6, 16], [2, 17], [2, 18], [2, 19], [2, 20], [11, 21], [11, 22], [12, 23], [4, 24], [13, 25], [14, 26], [14, 27], [15, 28], [6, 29], [7, 30], [17, 31], [2, 32], [2, 33], [18, 34], [2, 35], [26, 36], [26, 37], [27, 38], [28, 39], [17, 40], [17, 41], [31, 42], [18, 43], [18, 44], [18, 45], [34, 46], [19, 47], [20, 48], [40, 49], [17, 50], [18, 51], [43, 52], [43, 53], [43, 54], [18, 55], [18, 56], [40, 57], [41, 58], [52, 59], [53, 60], [43, 61], [44, 62], [45, 63], [59, 64], [52, 65], [52, 66], [53, 67], [53, 68], [53, 69], [61, 70], [54, 71], [67, 72], [53, 73], [53, 74], [68, 75], [53, 76], [70, 77], [71, 78], [71, 79], [68, 80], [68, 81], [75, 82], [69, 83], [80, 84], [68, 85], [80, 86], [81, 87], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 0], [13, 5], [14, 5], [15, 6], [16, 6], [17, 2], [18, 2], [19, 2], [20, 2], [21, 11], [22, 11], [23, 12], [24, 4], [25, 13], [26, 14], [27, 14], [28, 15], [29, 6], [30, 7], [31, 17], [32, 2], [33, 2], [34, 18], [35, 2], [36, 26], [37, 26], [38, 27], [39, 28], [40, 17], [41, 17], [42, 31], [43, 18], [44, 18], [45, 18], [46, 34], [47, 19], [48, 20], [49, 40], [50, 17], [51, 18], [52, 43], [53, 43], [54, 43], [55, 18], [56, 18], [57, 40], [58, 41], [59, 52], [60, 53], [61, 43], [62, 44], [63, 45], [64, 59], [65, 52], [66, 52], [67, 53], [68, 53], [69, 53], [70, 61], [71, 54], [72, 67], [73, 53], [74, 53], [75, 68], [76, 53], [77, 70], [78, 71], [79, 71], [80, 68], [81, 68], [82, 75], [83, 69], [84, 80], [85, 68], [86, 80], [87, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}], "label": 1}
{"sample_id": "jedit-4.3-4557", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/PerspectiveManager.java", "language": "java", "name": "org.gjt.sp.jedit.PerspectiveManager", "code": "public class PerspectiveManager\n{\n\tprivate static final String PERSPECTIVE_FILENAME = \"perspective\";\n\n\t//{{{ isPerspectiveDirty() method\n\t/**\n\t * We only autosave the perspective if it has changed, to avoid spinning\n\t * up the disk on laptops.\n\t * @since jEdit 4.2pre13\n\t */\n\tpublic static boolean isPerspectiveDirty()\n\t{\n\t\treturn dirty;\n\t} //}}}\n\n\t//{{{ setPerspectiveDirty() method\n\t/**\n\t * We only autosave the perspective if it has changed, to avoid spinning\n\t * up the disk on laptops.\n\t * @since jEdit 4.2pre13\n\t */\n\tpublic static void setPerspectiveDirty(boolean dirty)\n\t{\n\t\tPerspectiveManager.dirty = dirty;\n\t} //}}}\n\n\t//{{{ isPerspectiveEnabled() method\n\t/**\n\t * We disable saving of the perspective while the 'close all' dialog is\n\t * showing.\n\t * @since jEdit 4.3pre2\n\t */\n\tpublic static boolean isPerspectiveEnabled()\n\t{\n\t\treturn enabled;\n\t} //}}}\n\n\t//{{{ setPerspectiveEnabled() method\n\t/**\n\t * We disable saving of the perspective while the 'close all' dialog is\n\t * showing.\n\t * @since jEdit 4.3pre2\n\t */\n\tpublic static void setPerspectiveEnabled(boolean enabled)\n\t{\n\t\tPerspectiveManager.enabled = enabled;\n\t} //}}}\n\n\t//{{{ loadPerspective() method\n\tpublic static View loadPerspective(boolean restoreFiles)\n\t{\n\t\tif(perspectiveXML == null)\n\t\t\treturn null;\n\n\t\tif(!perspectiveXML.fileExists())\n\t\t\treturn null;\n\n\t\tLog.log(Log.MESSAGE,PerspectiveManager.class,\"Loading \" + perspectiveXML);\n\n\t\tPerspectiveHandler handler = new PerspectiveHandler(restoreFiles);\n\t\ttry\n\t\t{\n\t\t\tperspectiveXML.load(handler);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,PerspectiveManager.class,e);\n\t\t}\n\t\treturn handler.view;\n\t} //}}}\n\n\t//{{{ savePerspective() method\n\tpublic static void savePerspective(boolean autosave)\n\t{\n\t\tif(!isPerspectiveEnabled() || !jEdit.isStartupDone())\n\t\t\treturn;\n\n\t\tif(perspectiveXML == null)\n\t\t\treturn;\n\t\t\n\t\t// backgrounded\n\t\tif(jEdit.getBufferCount() == 0)\n\t\t\treturn;\n\n\t\tBuffer[] buffers = jEdit.getBuffers();\n\t\tCollection<Buffer> savedBuffers = new LinkedList<Buffer>();\n\t\tfor (Buffer buffer: buffers)\n\t\t{\n\t\t\tif (!buffer.isNewFile())\n\t\t\t{\n\t\t\t\tsavedBuffers.add(buffer);\n\t\t\t}\n\t\t}\n\n\t\tif(!autosave)\n\t\t\tLog.log(Log.MESSAGE,PerspectiveManager.class,\"Saving \" + perspectiveXML);\n\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\tSettingsXML.Saver out = null;\n\n\t\ttry\n\t\t{\n\t\t\tout = perspectiveXML.openSaver();\n\t\t\tout.writeXMLDeclaration();\n\n\t\t\tout.write(\"<!DOCTYPE PERSPECTIVE SYSTEM \\\"perspective.dtd\\\">\");\n\t\t\tout.write(lineSep);\n\t\t\tout.write(\"<PERSPECTIVE>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tfor (Buffer buffer: savedBuffers)\n\t\t\t{\n\t\t\t\tout.write(\"<BUFFER AUTORELOAD=\\\"\");\n\t\t\t\tout.write(buffer.getAutoReload() ? \"TRUE\" : \"FALSE\");\n\t\t\t\tout.write(\"\\\" AUTORELOAD_DIALOG=\\\"\");\n\t\t\t\tout.write(buffer.getAutoReloadDialog() ? \"TRUE\" : \"FALSE\");\n\t\t\t\tout.write(\"\\\">\");\n\t\t\t\tout.write(XMLUtilities.charsToEntities(buffer.getPath(), false));\n\t\t\t\tout.write(\"</BUFFER>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t}\n\n\t\t\tView[] views = jEdit.getViews();\n\t\t\tfor(int i = 0; i < views.length; i++)\n\t\t\t{\n\t\t\t\tView view = views[i];\n\t\t\t\t// ensures that active view is saved last,\n\t\t\t\t// ie created last on next load, ie in front\n\t\t\t\t// on next load\n\t\t\t\tif(view == jEdit.getActiveView()\n\t\t\t\t\t&& i != views.length - 1)\n\t\t\t\t{\n\t\t\t\t\tView last = views[views.length - 1];\n\t\t\t\t\tviews[i] = last;\n\t\t\t\t\tviews[views.length - 1] = view;\n\t\t\t\t\tview = last;\n\t\t\t\t}\n\n\t\t\t\tView.ViewConfig config = views[i].getViewConfig();\n\t\t\t\tout.write(\"<VIEW PLAIN=\\\"\");\n\t\t\t\tout.write(config.plainView ? \"TRUE\" : \"FALSE\");\n\t\t\t\tout.write(\"\\\">\");\n\n\t\t\t\tout.write(\"<PANES>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t\tout.write(XMLUtilities.charsToEntities(\n\t\t\t\t\tconfig.splitConfig,false));\n\t\t\t\tout.write(lineSep);\n\t\t\t\tout.write(\"</PANES>\");\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tout.write(\"<GEOMETRY X=\\\"\");\n\t\t\t\tout.write(String.valueOf(config.x));\n\t\t\t\tout.write(\"\\\" Y=\\\"\");\n\t\t\t\tout.write(String.valueOf(config.y));\n\t\t\t\tout.write(\"\\\" WIDTH=\\\"\");\n\t\t\t\tout.write(String.valueOf(config.width));\n\t\t\t\tout.write(\"\\\" HEIGHT=\\\"\");\n\t\t\t\tout.write(String.valueOf(config.height));\n\t\t\t\tout.write(\"\\\" EXT_STATE=\\\"\");\n\t\t\t\tout.write(String.valueOf(config.extState));\n\t\t\t\tout.write(\"\\\" />\");\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tif (config.docking != null)\n\t\t\t\t\tconfig.docking.saveLayout(PERSPECTIVE_FILENAME, i);\n\t\t\t\t\n\t\t\t\tout.write(\"</VIEW>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t}\n\n\t\t\tout.write(\"</PERSPECTIVE>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tout.finish();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,PerspectiveManager.class,\"Error saving \" + perspectiveXML);\n\t\t\tLog.log(Log.ERROR,PerspectiveManager.class,io);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(out);\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static boolean dirty, enabled = true;\n\tprivate static SettingsXML perspectiveXML;\n\n\t//{{{ Class initializer\n\tstatic\n\t{\n\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tperspectiveXML = new SettingsXML(settingsDirectory, PERSPECTIVE_FILENAME);\n\t\t}\n\t} //}}}\n\n\t//{{{ PerspectiveHandler class\n\tprivate static class PerspectiveHandler extends DefaultHandler\n\t{\n\t\tView view;\n\t\tprivate StringBuilder charData;\n\t\tView.ViewConfig config;\n\t\tboolean restoreFiles;\n\t\tString autoReload, autoReloadDialog;\n\t\t\n\t\tPerspectiveHandler(boolean restoreFiles)\n\t\t{\n\t\t\tthis.restoreFiles = restoreFiles;\n\t\t\tconfig = new View.ViewConfig();\n\t\t\tcharData = new StringBuilder();\n\t\t\tconfig.docking = View.getDockingFrameworkProvider().createDockingLayout();\n\t\t}\n\n\t\t@Override\n\t\tpublic InputSource resolveEntity(String publicId, String systemId)\n\t\t{\n\t\t\treturn XMLUtilities.findEntity(systemId, \"perspective.dtd\", getClass());\n\t\t}\n\n\t\t@Override\n\t\tpublic void startElement(String uri, String localName,\n\t\t\t\t\t String qName, Attributes attrs)\n\t\t{\n\t\t\tcharData.setLength(0);\n\t\t\tfor (int i = 0; i < attrs.getLength(); i++)\n\t\t\t{\n\t\t\t\tString name = attrs.getQName(i);\n\t\t\t\tString value = attrs.getValue(i);\n\t\t\t\tattribute(name, value);\n\t\t\t}\n\t\t}\n\n\t\tprivate void attribute(String aname, String value)\n\t\t{\n\t\t\tif(aname.equals(\"X\"))\n\t\t\t\tconfig.x = Integer.parseInt(value);\n\t\t\telse if(aname.equals(\"Y\"))\n\t\t\t\tconfig.y = Integer.parseInt(value);\n\t\t\telse if(aname.equals(\"WIDTH\"))\n\t\t\t\tconfig.width = Integer.parseInt(value);\n\t\t\telse if(aname.equals(\"HEIGHT\"))\n\t\t\t\tconfig.height = Integer.parseInt(value);\n\t\t\telse if(aname.equals(\"EXT_STATE\"))\n\t\t\t\tconfig.extState = Integer.parseInt(value);\n\t\t\telse if(aname.equals(\"PLAIN\"))\n\t\t\t\tconfig.plainView = (\"TRUE\".equals(value));\n\t\t\telse if(aname.equals(\"AUTORELOAD\"))\n\t\t\t\tautoReload = value;\n\t\t\telse if(aname.equals(\"AUTORELOAD_DIALOG\"))\n\t\t\t\tautoReloadDialog = value;\n\t\t}\n\n\t\t/**\n\t\t * @return true if the uri points to a remote file\n\t\t */\n\t\tpublic static boolean skipRemote(String uri)\n\t\t{\n\t\t\tif (jEdit.getBooleanProperty(\"restore.remote\"))\n\t\t\t\treturn false;\n\t\t\tif(MiscUtilities.isURL(uri))\n\t\t\t{\n\t\t\t\tString protocol = MiscUtilities.getProtocolOfURL(uri);\n\t\t\t\tif (!protocol.equals(\"file\")) return true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\n\t\t@Override\n\t\tpublic void endElement(String uri, String localName, String name)\n\t\t{\n\t\t\tif(name.equals(\"BUFFER\"))\n\t\t\t{\n\t\t\t\tif (restoreFiles && !skipRemote(charData.toString()))\n\t\t\t\t{\n\t\t\t\t\tBuffer restored = jEdit.openTemporary(null,null, charData.toString(), false);\n\t\t\t\t\t// if the autoReload attributes are not present, don't set anything\n\t\t\t\t\t// it's sufficient to check whether they are present on the first BUFFER element\n\t\t\t\t\tif (restored != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(autoReload != null)\n\t\t\t\t\t\t\trestored.setAutoReload(\"TRUE\".equals(autoReload));\n\t\t\t\t\t\tif(autoReloadDialog != null)\n\t\t\t\t\t\t\trestored.setAutoReloadDialog(\"TRUE\".equals(autoReloadDialog));\n\t\t\t\t\t\tjEdit.commitTemporary(restored);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(name.equals(\"PANES\"))\n\t\t\t\tconfig.splitConfig = charData.toString();\n\t\t\telse if(name.equals(\"VIEW\"))\n\t\t\t{\n\t\t\t\tif (config.docking != null)\n\t\t\t\t\tconfig.docking.loadLayout(PERSPECTIVE_FILENAME, jEdit.getViewCount());\n\t\t\t\tview = jEdit.newView(view,null,config);\n\t\t\t\tconfig = new View.ViewConfig();\n\t\t\t\tconfig.docking = View.getDockingFrameworkProvider().createDockingLayout();\n\t\t\t}\n\t\t}\n\n\t\t@Override\n\t\tpublic void characters(char[] ch, int start, int length)\n\t\t{\n\t\t\tcharData.append(ch,start,length);", "functions": [{"function_name": "isPerspectiveDirty", "code": "\tpublic static boolean isPerspectiveDirty()\n\t{\n\t\treturn dirty;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPerspectiveDirty", "code": "\tpublic static void setPerspectiveDirty(boolean dirty)\n\t{\n\t\tPerspectiveManager.dirty = dirty;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isPerspectiveEnabled", "code": "\tpublic static boolean isPerspectiveEnabled()\n\t{\n\t\treturn enabled;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPerspectiveEnabled", "code": "\tpublic static void setPerspectiveEnabled(boolean enabled)\n\t{\n\t\tPerspectiveManager.enabled = enabled;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadPerspective", "code": "\tpublic static View loadPerspective(boolean restoreFiles)\n\t{\n\t\tif(perspectiveXML == null)\n\t\t\treturn null;\n\n\t\tif(!perspectiveXML.fileExists())\n\t\t\treturn null;\n\n\t\tLog.log(Log.MESSAGE,PerspectiveManager.class,\"Loading \" + perspectiveXML);\n\n\t\tPerspectiveHandler handler = new PerspectiveHandler(restoreFiles);\n\t\ttry\n\t\t{\n\t\t\tperspectiveXML.load(handler);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,PerspectiveManager.class,e);\n\t\t}\n\t\treturn handler.view;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "IF", "PARAM", "CATCH", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [4, 9], [4, 10], [5, 11], [5, 12], [2, 13], [3, 14], [8, 15], [9, 16], [11, 17], [12, 18], [7, 19], [15, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 4], [10, 4], [11, 5], [12, 5], [13, 2], [14, 3], [15, 8], [16, 9], [17, 11], [18, 12], [19, 7], [20, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "savePerspective", "code": "\tpublic static void savePerspective(boolean autosave)\n\t{\n\t\tif(!isPerspectiveEnabled() || !jEdit.isStartupDone())\n\t\t\treturn;\n\n\t\tif(perspectiveXML == null)\n\t\t\treturn;\n\t\t\n\t\t// backgrounded\n\t\tif(jEdit.getBufferCount() == 0)\n\t\t\treturn;\n\n\t\tBuffer[] buffers = jEdit.getBuffers();\n\t\tCollection<Buffer> savedBuffers = new LinkedList<Buffer>();\n\t\tfor (Buffer buffer: buffers)\n\t\t{\n\t\t\tif (!buffer.isNewFile())\n\t\t\t{\n\t\t\t\tsavedBuffers.add(buffer);\n\t\t\t}\n\t\t}\n\n\t\tif(!autosave)\n\t\t\tLog.log(Log.MESSAGE,PerspectiveManager.class,\"Saving \" + perspectiveXML);\n\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\tSettingsXML.Saver out = null;\n\n\t\ttry\n\t\t{\n\t\t\tout = perspectiveXML.openSaver();\n\t\t\tout.writeXMLDeclaration();\n\n\t\t\tout.write(\"<!DOCTYPE PERSPECTIVE SYSTEM \\\"perspective.dtd\\\">\");\n\t\t\tout.write(lineSep);\n\t\t\tout.write(\"<PERSPECTIVE>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tfor (Buffer buffer: savedBuffers)\n\t\t\t{\n\t\t\t\tout.write(\"<BUFFER AUTORELOAD=\\\"\");\n\t\t\t\tout.write(buffer.getAutoReload() ? \"TRUE\" : \"FALSE\");\n\t\t\t\tout.write(\"\\\" AUTORELOAD_DIALOG=\\\"\");\n\t\t\t\tout.write(buffer.getAutoReloadDialog() ? \"TRUE\" : \"FALSE\");\n\t\t\t\tout.write(\"\\\">\");\n\t\t\t\tout.write(XMLUtilities.charsToEntities(buffer.getPath(), false));\n\t\t\t\tout.write(\"</BUFFER>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t}\n\n\t\t\tView[] views = jEdit.getViews();\n\t\t\tfor(int i = 0; i < views.length; i++)\n\t\t\t{\n\t\t\t\tView view = views[i];\n\t\t\t\t// ensures that active view is saved last,\n\t\t\t\t// ie created last on next load, ie in front\n\t\t\t\t// on next load\n\t\t\t\tif(view == jEdit.getActiveView()\n\t\t\t\t\t&& i != views.length - 1)\n\t\t\t\t{\n\t\t\t\t\tView last = views[views.length - 1];\n\t\t\t\t\tviews[i] = last;\n\t\t\t\t\tviews[views.length - 1] = view;\n\t\t\t\t\tview = last;\n\t\t\t\t}\n\n\t\t\t\tView.ViewConfig config = views[i].getViewConfig();\n\t\t\t\tout.write(\"<VIEW PLAIN=\\\"\");\n\t\t\t\tout.write(config.plainView ? \"TRUE\" : \"FALSE\");\n\t\t\t\tout.write(\"\\\">\");\n\n\t\t\t\tout.write(\"<PANES>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t\tout.write(XMLUtilities.charsToEntities(\n\t\t\t\t\tconfig.splitConfig,false));\n\t\t\t\tout.write(lineSep);\n\t\t\t\tout.write(\"</PANES>\");\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tout.write(\"<GEOMETRY X=\\\"\");\n\t\t\t\tout.write(String.valueOf(config.x));\n\t\t\t\tout.write(\"\\\" Y=\\\"\");\n\t\t\t\tout.write(String.valueOf(config.y));\n\t\t\t\tout.write(\"\\\" WIDTH=\\\"\");\n\t\t\t\tout.write(String.valueOf(config.width));\n\t\t\t\tout.write(\"\\\" HEIGHT=\\\"\");\n\t\t\t\tout.write(String.valueOf(config.height));\n\t\t\t\tout.write(\"\\\" EXT_STATE=\\\"\");\n\t\t\t\tout.write(String.valueOf(config.extState));\n\t\t\t\tout.write(\"\\\" />\");\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tif (config.docking != null)\n\t\t\t\t\tconfig.docking.saveLayout(PERSPECTIVE_FILENAME, i);\n\t\t\t\t\n\t\t\t\tout.write(\"</VIEW>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t}\n\n\t\t\tout.write(\"</PERSPECTIVE>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tout.finish();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,PerspectiveManager.class,\"Error saving \" + perspectiveXML);\n\t\t\tLog.log(Log.ERROR,PerspectiveManager.class,io);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(out);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "PARAM", "CATCH", "LOOP", "VAR_DECL", "LOOP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [1, 14], [1, 15], [8, 16], [8, 17], [9, 18], [9, 19], [10, 20], [10, 21], [1, 22], [1, 23], [1, 24], [1, 25], [13, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [2, 33], [3, 34], [4, 35], [5, 36], [6, 37], [7, 38], [17, 39], [17, 40], [19, 41], [21, 42], [21, 43], [12, 44], [12, 45], [25, 46], [13, 47], [13, 48], [13, 49], [13, 50], [14, 51], [28, 52], [30, 53], [32, 54], [34, 55], [35, 56], [36, 57], [45, 58], [13, 59], [13, 60], [47, 61], [13, 62], [13, 63], [13, 64], [13, 65], [13, 66], [13, 67], [13, 68], [13, 69], [13, 70], [13, 71], [13, 72], [13, 73], [13, 74], [13, 75], [13, 76], [13, 77], [13, 78], [13, 79], [13, 80], [13, 81], [13, 82], [49, 83], [13, 84], [15, 85], [15, 86], [15, 87], [15, 88], [15, 89], [15, 90], [15, 91], [15, 92], [56, 93], [58, 94], [60, 95], [47, 96], [61, 97], [63, 98], [64, 99], [65, 100], [66, 101], [67, 102], [68, 103], [69, 104], [70, 105], [71, 106], [72, 107], [73, 108], [75, 109], [77, 110], [79, 111], [80, 112], [81, 113], [82, 114], [49, 115], [83, 116], [83, 117], [86, 118], [87, 119], [88, 120], [89, 121], [90, 122], [91, 123], [92, 124], [36, 125], [110, 126], [113, 127], [113, 128], [48, 129], [49, 130], [49, 131], [49, 132], [116, 133], [117, 134], [119, 135], [119, 136], [121, 137], [121, 138], [121, 139], [123, 140], [123, 141], [123, 142], [133, 143], [131, 144], [115, 145], [144, 146], [145, 147], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 1], [15, 1], [16, 8], [17, 8], [18, 9], [19, 9], [20, 10], [21, 10], [22, 1], [23, 1], [24, 1], [25, 1], [26, 13], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 2], [34, 3], [35, 4], [36, 5], [37, 6], [38, 7], [39, 17], [40, 17], [41, 19], [42, 21], [43, 21], [44, 12], [45, 12], [46, 25], [47, 13], [48, 13], [49, 13], [50, 13], [51, 14], [52, 28], [53, 30], [54, 32], [55, 34], [56, 35], [57, 36], [58, 45], [59, 13], [60, 13], [61, 47], [62, 13], [63, 13], [64, 13], [65, 13], [66, 13], [67, 13], [68, 13], [69, 13], [70, 13], [71, 13], [72, 13], [73, 13], [74, 13], [75, 13], [76, 13], [77, 13], [78, 13], [79, 13], [80, 13], [81, 13], [82, 13], [83, 49], [84, 13], [85, 15], [86, 15], [87, 15], [88, 15], [89, 15], [90, 15], [91, 15], [92, 15], [93, 56], [94, 58], [95, 60], [96, 47], [97, 61], [98, 63], [99, 64], [100, 65], [101, 66], [102, 67], [103, 68], [104, 69], [105, 70], [106, 71], [107, 72], [108, 73], [109, 75], [110, 77], [111, 79], [112, 80], [113, 81], [114, 82], [115, 49], [116, 83], [117, 83], [118, 86], [119, 87], [120, 88], [121, 89], [122, 90], [123, 91], [124, 92], [125, 36], [126, 110], [127, 113], [128, 113], [129, 48], [130, 49], [131, 49], [132, 49], [133, 116], [134, 117], [135, 119], [136, 119], [137, 121], [138, 121], [139, 121], [140, 123], [141, 123], [142, 123], [143, 133], [144, 131], [145, 115], [146, 144], [147, 145], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147]]}], "label": 0}
{"sample_id": "poi-3.0-6287", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/PasswordRev4Record.java", "language": "java", "name": "org.apache.poi.hssf.record.PasswordRev4Record", "code": "public class PasswordRev4Record\n    extends Record\n{\n    public final static short sid = 0x1BC;\n    private short             field_1_password;\n\n    public PasswordRev4Record()\n    {\n    }\n\n    /**\n     * Constructs a PasswordRev4 (PROT4REVPASS) record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x1bc or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public PasswordRev4Record(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PROT4REVPASSWORD RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_password = in.readShort();\n    }\n\n    /**\n     * set the password\n     *\n     * @param pw  representing the password\n     */\n\n    public void setPassword(short pw)\n    {\n        field_1_password = pw;\n    }\n\n    /**\n     * get the password\n     *\n     * @return short  representing the password\n     */\n\n    public short getPassword()\n    {\n        return field_1_password;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PROT4REVPASSWORD]\\n\");\n        buffer.append(\"    .password       = \")\n            .append(Integer.toHexString(getPassword())).append(\"\\n\");\n        buffer.append(\"[/PROT4REVPASSWORD]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getPassword());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PROT4REVPASSWORD RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_password = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setPassword", "code": "    public void setPassword(short pw)\n    {\n        field_1_password = pw;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPassword", "code": "    public short getPassword()\n    {\n        return field_1_password;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PROT4REVPASSWORD]\\n\");\n        buffer.append(\"    .password       = \")\n            .append(Integer.toHexString(getPassword())).append(\"\\n\");\n        buffer.append(\"[/PROT4REVPASSWORD]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getPassword());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "PasswordRev4Record", "code": "    public PasswordRev4Record()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PasswordRev4Record", "code": "    public PasswordRev4Record(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.4-2200", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/TryProcessor.java", "language": "java", "name": "org.apache.camel.processor.TryProcessor", "code": "public class TryProcessor extends ServiceSupport implements Processor {\n    private static final transient Log LOG = LogFactory.getLog(TryProcessor.class);\n\n    private final Processor tryProcessor;\n    private final List<CatchProcessor> catchClauses;\n    private final Processor finallyProcessor;\n\n    public TryProcessor(Processor tryProcessor, List<CatchProcessor> catchClauses, Processor finallyProcessor) {\n        this.tryProcessor = tryProcessor;\n        this.catchClauses = catchClauses;\n        this.finallyProcessor = finallyProcessor;\n    }\n\n    public String toString() {\n        String finallyText = (finallyProcessor == null) ? \"\" : \" Finally {\" + finallyProcessor + \"}\";\n        return \"Try {\" + tryProcessor + \"} \" + catchClauses + finallyText;\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        Throwable e = null;\n        try {\n            tryProcessor.process(exchange);\n            e = exchange.getException();\n\n            if (e != null && DeadLetterChannel.isFailureHandled(exchange)) {\n                e = null;\n            }\n        } catch (Throwable ex) {\n            e = ex;\n            exchange.setException(e);\n        }\n\n        Exception unexpected = null;\n        try {\n            if (e != null) {\n                LOG.info(\"Caught exception while processing exchange.\", e);\n                handleException(exchange, e);\n            }\n        } catch (Exception ex) {\n            unexpected = ex;\n        } catch (Throwable ex) {\n            unexpected = new RuntimeCamelException(ex);\n        } finally {\n            try {\n                processFinally(exchange);\n            } catch (Exception ex) {\n                unexpected = ex;\n            } catch (Throwable ex) {\n                unexpected = new RuntimeCamelException(ex);\n            }\n            if (unexpected != null) {\n                LOG.warn(\"Caught exception inside processFinally clause.\", unexpected);\n                throw unexpected;\n            }\n        }\n\n        if (unexpected != null) {\n            LOG.warn(\"Caught exception inside handle clause.\", unexpected);\n            throw unexpected;\n        }\n    }\n\n    protected void doStart() throws Exception {\n        ServiceHelper.startServices(tryProcessor, catchClauses, finallyProcessor);\n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(tryProcessor, catchClauses, finallyProcessor);\n    }\n\n    protected void handleException(Exchange exchange, Throwable e) throws Throwable {\n        for (CatchProcessor catchClause : catchClauses) {\n            if (catchClause.catches(e)) {\n                Exchange localExchange = exchange.copy();\n                localExchange.getIn().setHeader(\"caught.exception\", e);\n                localExchange.setException(null);\n\n                catchClause.process(localExchange);\n                localExchange.getIn().removeHeader(\"caught.exception\");\n                ExchangeHelper.copyResults(exchange, localExchange);\n                return;\n            }\n        }\n    }\n\n    protected void processFinally(Exchange exchange) throws Throwable {\n        if (finallyProcessor != null) {\n            Throwable lastException = exchange.getException();\n            exchange.setException(null);\n\n            finallyProcessor.process(exchange);\n            if (exchange.getException() == null) {\n                exchange.setException(lastException);", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        String finallyText = (finallyProcessor == null) ? \"\" : \" Finally {\" + finallyProcessor + \"}\";\n        return \"Try {\" + tryProcessor + \"} \" + catchClauses + finallyText;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [4, 6], [5, 7], [5, 8], [5, 9], [6, 10], [6, 11], [7, 12], [7, 13], [9, 14], [11, 15], [13, 16], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [6, 4], [7, 5], [8, 5], [9, 5], [10, 6], [11, 6], [12, 7], [13, 7], [14, 9], [15, 11], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        Throwable e = null;\n        try {\n            tryProcessor.process(exchange);\n            e = exchange.getException();\n\n            if (e != null && DeadLetterChannel.isFailureHandled(exchange)) {\n                e = null;\n            }\n        } catch (Throwable ex) {\n            e = ex;\n            exchange.setException(e);\n        }\n\n        Exception unexpected = null;\n        try {\n            if (e != null) {\n                LOG.info(\"Caught exception while processing exchange.\", e);\n                handleException(exchange, e);\n            }\n        } catch (Exception ex) {\n            unexpected = ex;\n        } catch (Throwable ex) {\n            unexpected = new RuntimeCamelException(ex);\n        } finally {\n            try {\n                processFinally(exchange);\n            } catch (Exception ex) {\n                unexpected = ex;\n            } catch (Throwable ex) {\n                unexpected = new RuntimeCamelException(ex);\n            }\n            if (unexpected != null) {\n                LOG.warn(\"Caught exception inside processFinally clause.\", unexpected);\n                throw unexpected;\n            }\n        }\n\n        if (unexpected != null) {\n            LOG.warn(\"Caught exception inside handle clause.\", unexpected);\n            throw unexpected;", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "TRY", "CATCH", "CATCH", "IF", "CATCH", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CATCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [4, 13], [4, 14], [1, 15], [7, 16], [8, 17], [9, 18], [9, 19], [12, 20], [3, 21], [14, 22], [4, 23], [4, 24], [5, 25], [1, 26], [8, 27], [17, 28], [9, 29], [10, 30], [11, 31], [20, 32], [13, 33], [13, 34], [22, 35], [22, 36], [23, 37], [26, 38], [8, 39], [18, 40], [19, 41], [30, 42], [12, 43], [12, 44], [14, 45], [36, 46], [39, 47], [40, 48], [44, 49], [45, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 4], [14, 4], [15, 1], [16, 7], [17, 8], [18, 9], [19, 9], [20, 12], [21, 3], [22, 14], [23, 4], [24, 4], [25, 5], [26, 1], [27, 8], [28, 17], [29, 9], [30, 10], [31, 11], [32, 20], [33, 13], [34, 13], [35, 22], [36, 22], [37, 23], [38, 26], [39, 8], [40, 18], [41, 19], [42, 30], [43, 12], [44, 12], [45, 14], [46, 36], [47, 39], [48, 40], [49, 44], [50, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ServiceHelper.startServices(tryProcessor, catchClauses, finallyProcessor);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(tryProcessor, catchClauses, finallyProcessor);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "handleException", "code": "    protected void handleException(Exchange exchange, Throwable e) throws Throwable {\n        for (CatchProcessor catchClause : catchClauses) {\n            if (catchClause.catches(e)) {\n                Exchange localExchange = exchange.copy();\n                localExchange.getIn().setHeader(\"caught.exception\", e);\n                localExchange.setException(null);\n\n                catchClause.process(localExchange);\n                localExchange.getIn().removeHeader(\"caught.exception\");\n                ExchangeHelper.copyResults(exchange, localExchange);\n                return;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "IF", "CALL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [9, 13], [11, 14], [12, 15], [7, 16], [13, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 9], [14, 11], [15, 12], [16, 7], [17, 13], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "processFinally", "code": "    protected void processFinally(Exchange exchange) throws Throwable {\n        if (finallyProcessor != null) {\n            Throwable lastException = exchange.getException();\n            exchange.setException(null);\n\n            finallyProcessor.process(exchange);\n            if (exchange.getException() == null) {\n                exchange.setException(lastException);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [1, 8], [1, 9], [7, 10], [7, 11], [9, 12], [5, 13], [4, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 1], [9, 1], [10, 7], [11, 7], [12, 9], [13, 5], [14, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "TryProcessor", "code": "    public TryProcessor(Processor tryProcessor, List<CatchProcessor> catchClauses, Processor finallyProcessor) {\n        this.tryProcessor = tryProcessor;\n        this.catchClauses = catchClauses;\n        this.finallyProcessor = finallyProcessor;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "camel-1.4-2525", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/event/EventEndpoint.java", "language": "java", "name": "org.apache.camel.component.event.EventEndpoint", "code": "public class EventEndpoint extends DefaultEndpoint<Exchange> implements ApplicationContextAware {\n    private LoadBalancer loadBalancer;\n    private ApplicationContext applicationContext;\n\n    public EventEndpoint(String endpointUri, EventComponent component) {\n        super(endpointUri, component);\n        this.applicationContext = component.getApplicationContext();\n    }\n\n    public EventEndpoint(String endpointUri) {\n        super(endpointUri);\n    }\n\n    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n        this.applicationContext = applicationContext;\n    }\n\n    public ApplicationContext getApplicationContext() {\n        return applicationContext;\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public Producer<Exchange> createProducer() throws Exception {\n        return new DefaultProducer<Exchange>(this) {\n            public void process(Exchange exchange) throws Exception {\n                ApplicationEvent event = toApplicationEvent(exchange);\n                getApplicationContext().publishEvent(event);\n            }\n        };\n    }\n\n    public EventConsumer createConsumer(Processor processor) throws Exception {\n        return new EventConsumer(this, processor);\n    }\n\n    public void onApplicationEvent(ApplicationEvent event) {\n        Exchange exchange = createExchange();\n        exchange.getIn().setBody(event);\n        try {\n            getLoadBalancer().process(exchange);\n        } catch (Exception e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    public LoadBalancer getLoadBalancer() {\n        if (loadBalancer == null) {\n            loadBalancer = createLoadBalancer();\n        }\n        return loadBalancer;\n    }\n\n    public void setLoadBalancer(LoadBalancer loadBalancer) {\n        this.loadBalancer = loadBalancer;\n    }\n\n    public synchronized void consumerStarted(EventConsumer consumer) {\n        getLoadBalancer().addProcessor(consumer.getProcessor());\n    }\n\n    public synchronized void consumerStopped(EventConsumer consumer) {\n        getLoadBalancer().removeProcessor(consumer.getProcessor());\n    }\n\n    protected LoadBalancer createLoadBalancer() {\n        return new TopicLoadBalancer();\n    }\n\n    protected ApplicationEvent toApplicationEvent(Exchange exchange) {\n        ApplicationEvent event = exchange.getIn().getBody(ApplicationEvent.class);\n        if (event == null) {\n            event = new CamelEvent(this, exchange);\n        }\n        return event;", "functions": [{"function_name": "setApplicationContext", "code": "    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n        this.applicationContext = applicationContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getApplicationContext", "code": "    public ApplicationContext getApplicationContext() {\n        return applicationContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProducer", "code": "    public Producer<Exchange> createProducer() throws Exception {\n        return new DefaultProducer<Exchange>(this) {\n            public void process(Exchange exchange) throws Exception {\n                ApplicationEvent event = toApplicationEvent(exchange);\n                getApplicationContext().publishEvent(event);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [3, 6], [6, 7], [4, 8], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 3], [7, 6], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "createConsumer", "code": "    public EventConsumer createConsumer(Processor processor) throws Exception {\n        return new EventConsumer(this, processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "onApplicationEvent", "code": "    public void onApplicationEvent(ApplicationEvent event) {\n        Exchange exchange = createExchange();\n        exchange.getIn().setBody(event);\n        try {\n            getLoadBalancer().process(exchange);\n        } catch (Exception e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [1, 7], [5, 8], [2, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 1], [8, 5], [9, 2], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getLoadBalancer", "code": "    public LoadBalancer getLoadBalancer() {\n        if (loadBalancer == null) {\n            loadBalancer = createLoadBalancer();\n        }\n        return loadBalancer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setLoadBalancer", "code": "    public void setLoadBalancer(LoadBalancer loadBalancer) {\n        this.loadBalancer = loadBalancer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "consumerStarted", "code": "    public synchronized void consumerStarted(EventConsumer consumer) {\n        getLoadBalancer().addProcessor(consumer.getProcessor());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "consumerStopped", "code": "    public synchronized void consumerStopped(EventConsumer consumer) {\n        getLoadBalancer().removeProcessor(consumer.getProcessor());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createLoadBalancer", "code": "    protected LoadBalancer createLoadBalancer() {\n        return new TopicLoadBalancer();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toApplicationEvent", "code": "    protected ApplicationEvent toApplicationEvent(Exchange exchange) {\n        ApplicationEvent event = exchange.getIn().getBody(ApplicationEvent.class);\n        if (event == null) {\n            event = new CamelEvent(this, exchange);\n        }\n        return event;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "EventEndpoint", "code": "    public EventEndpoint(String endpointUri, EventComponent component) {\n        super(endpointUri, component);\n        this.applicationContext = component.getApplicationContext();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "EventEndpoint", "code": "    public EventEndpoint(String endpointUri) {\n        super(endpointUri);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.5-318", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/UnknownElement.java", "language": "java", "name": "org.apache.tools.ant.UnknownElement", "code": "public class UnknownElement extends Task {\n\n    /**\n     * Holds the name of the task/type or nested child element of a\n     * task/type that hasn't been defined at parser time or has\n     * been redefined since original creation.\n     */\n    private String elementName;\n\n    /**\n     * The real object after it has been loaded.\n     */\n    private Object realThing;\n\n    /**\n     * List of child elements (UnknownElements).\n     */\n    private Vector children = new Vector();\n\n    /**\n     * Creates an UnknownElement for the given element name.\n     *\n     * @param elementName The name of the unknown element.\n     *                    Must not be <code>null</code>.\n     */\n    public UnknownElement (String elementName) {\n        this.elementName = elementName;\n    }\n\n    /**\n     * Returns the name of the XML element which generated this unknown\n     * element.\n     *\n     * @return the name of the XML element which generated this unknown\n     *         element.\n     */\n    public String getTag() {\n        return elementName;\n    }\n\n    /**\n     * Creates the real object instance and child elements, then configures\n     * the attributes and text of the real object. This unknown element\n     * is then replaced with the real object in the containing target's list\n     * of children.\n     *\n     * @exception BuildException if the configuration fails\n     */\n    public void maybeConfigure() throws BuildException {\n        realThing = makeObject(this, wrapper);\n\n        wrapper.setProxy(realThing);\n        if (realThing instanceof Task) {\n            ((Task) realThing).setRuntimeConfigurableWrapper(wrapper);\n        }\n\n        handleChildren(realThing, wrapper);\n\n        wrapper.maybeConfigure(getProject());\n    }\n\n    /**\n     * Handles output sent to System.out by this task or its real task.\n     *\n     * @param line The line of output to log. Should not be <code>null</code>.\n     */\n    protected void handleOutput(String line) {\n        if (realThing instanceof Task) {\n            ((Task) realThing).handleOutput(line);\n        } else {\n            super.handleOutput(line);\n        }\n    }\n\n    /**\n     * Handles output sent to System.out by this task or its real task.\n     *\n     * @param line The line of output to log. Should not be <code>null</code>.\n     */\n    protected void handleFlush(String line) {\n        if (realThing instanceof Task) {\n            ((Task) realThing).handleFlush(line);\n        } else {\n            super.handleFlush(line);\n        }\n    }\n\n    /**\n     * Handles error output sent to System.err by this task or its real task.\n     *\n     * @param line The error line to log. Should not be <code>null</code>.\n     */\n    protected void handleErrorOutput(String line) {\n        if (realThing instanceof Task) {\n            ((Task) realThing).handleErrorOutput(line);\n        } else {\n            super.handleErrorOutput(line);\n        }\n    }\n\n\n    /**\n     * Handles error output sent to System.err by this task or its real task.\n     *\n     * @param line The error line to log. Should not be <code>null</code>.\n     */\n    protected void handleErrorFlush(String line) {\n        if (realThing instanceof Task) {\n            ((Task) realThing).handleErrorOutput(line);\n        } else {\n            super.handleErrorOutput(line);\n        }\n    }\n    \n    /**\n     * Executes the real object if it's a task. If it's not a task\n     * (e.g. a data type) then this method does nothing.\n     */\n    public void execute() {\n        if (realThing == null) {\n            throw new BuildException(\"Could not create task of type: \"\n                                     + elementName, getLocation());\n        }\n\n        if (realThing instanceof Task) {\n            ((Task) realThing).execute();\n        }\n    }\n\n    /**\n     * Adds a child element to this element.\n     *\n     * @param child The child element to add. Must not be <code>null</code>.\n     */\n    public void addChild(UnknownElement child) {\n        children.addElement(child);\n    }\n\n    /**\n     * Creates child elements, creates children of the children\n     * (recursively), and sets attributes of the child elements.\n     *\n     * @param parent The configured object for the parent.\n     *               Must not be <code>null</code>.\n     *\n     * @param parentWrapper The wrapper containing child wrappers\n     *                      to be configured. Must not be <code>null</code>\n     *                      if there are any children.\n     *\n     * @exception BuildException if the children cannot be configured.\n     */\n    protected void handleChildren(Object parent,\n                                  RuntimeConfigurable parentWrapper)\n        throws BuildException {\n\n        if (parent instanceof TaskAdapter) {\n            parent = ((TaskAdapter) parent).getProxy();\n        }\n\n        Class parentClass = parent.getClass();\n        IntrospectionHelper ih = IntrospectionHelper.getHelper(parentClass);\n\n        for (int i = 0;  i < children.size(); i++) {\n            RuntimeConfigurable childWrapper = parentWrapper.getChild(i);\n            UnknownElement child = (UnknownElement) children.elementAt(i);\n            Object realChild = null;\n\n            if (parent instanceof TaskContainer) {\n                realChild = makeTask(child, childWrapper, false);\n                ((TaskContainer) parent).addTask((Task) realChild);\n            } else {\n                realChild = ih.createElement(getProject(), parent, child.getTag());\n            }\n\n            childWrapper.setProxy(realChild);\n            if (parent instanceof TaskContainer) {\n                ((Task) realChild).setRuntimeConfigurableWrapper(childWrapper);\n            }\n\n            child.handleChildren(realChild, childWrapper);\n        }\n    }\n\n    /**\n     * Creates a named task or data type. If the real object is a task,\n     * it is configured up to the init() stage.\n     *\n     * @param ue The unknown element to create the real object for.\n     *           Must not be <code>null</code>.\n     * @param w  Ignored in this implementation.\n     *\n     * @return the task or data type represented by the given unknown element.\n     */\n    protected Object makeObject(UnknownElement ue, RuntimeConfigurable w) {\n        Object o = makeTask(ue, w, true);\n        if (o == null) {\n            o = getProject().createDataType(ue.getTag());\n        }\n        if (o == null) {\n            throw getNotFoundException(\"task or type\", ue.getTag());\n        }\n        return o;\n    }\n\n    /**\n     * Creates a named task and configures it up to the init() stage.\n     *\n     * @param ue The UnknownElement to create the real task for.\n     *           Must not be <code>null</code>.\n     * @param w  Ignored.\n     * @param onTopLevel Whether or not this is definitely trying to create\n     *                   a task. If this is <code>true</code> and the\n     *                   task name is not recognised, a BuildException\n     *                   is thrown.\n     *\n     * @return the task specified by the given unknown element, or\n     *         <code>null</code> if the task name is not recognised and\n     *         onTopLevel is <code>false</code>.\n     */\n    protected Task makeTask(UnknownElement ue, RuntimeConfigurable w,\n                            boolean onTopLevel) {\n        Task task = getProject().createTask(ue.getTag());\n        if (task == null && !onTopLevel) {\n            throw getNotFoundException(\"task\", ue.getTag());\n        }\n\n        if (task != null) {\n            task.setLocation(getLocation());\n            task.setOwningTarget(getOwningTarget());\n            task.init();\n        }\n        return task;\n    }\n\n    /**\n     * Returns a very verbose exception for when a task/data type cannot\n     * be found.\n     *\n     * @param what The kind of thing being created. For example, when\n     *             a task name could not be found, this would be\n     *             <code>\"task\"</code>. Should not be <code>null</code>.\n     * @param elementName The name of the element which could not be found.\n     *                    Should not be <code>null</code>.\n     *\n     * @return a detailed description of what might have caused the problem.\n     */\n    protected BuildException getNotFoundException(String what,\n                                                  String elementName) {\n        String lSep = System.getProperty(\"line.separator\");\n        String msg = \"Could not create \" + what + \" of type: \" + elementName\n            + \".\" + lSep + lSep\n            + \"Ant could not find the task or a class this \"\n            + \"task relies upon.\" + lSep + lSep\n            + \"This is common and has a number of causes; the usual \" + lSep\n            + \"solutions are to read the manual pages then download and\" + lSep\n            + \"install needed JAR files, or fix the build file: \" + lSep\n            + \" - You have misspelt '\" + elementName + \"'.\" + lSep\n            + \"   Fix: check your spelling.\" + lSep\n            + \" - The task needs an external JAR file to execute\" + lSep\n            + \"   and this is not found at the right place in the classpath.\" + lSep\n            + \"   Fix: check the documentation for dependencies.\" + lSep\n            + \"   Fix: declare the task.\" + lSep\n            + \" - The task is an Ant optional task and optional.jar is absent\" + lSep\n            + \"   Fix: look for optional.jar in ANT_HOME/lib, download if needed\" + lSep\n            + \" - The task was not built into optional.jar as dependent\"  + lSep\n            + \"   libraries were not found at build time.\" + lSep\n            + \"   Fix: look in the JAR to verify, then rebuild with the needed\" + lSep\n            + \"   libraries, or download a release version from apache.org\" + lSep\n            + \" - The build file was written for a later version of Ant\" + lSep\n            + \"   Fix: upgrade to at least the latest release version of Ant\" + lSep\n            + \" - The task is not an Ant core or optional task \" + lSep\n            + \"   and needs to be declared using <taskdef>.\" + lSep\n            + lSep\n            + \"Remember that for JAR files to be visible to Ant tasks implemented\" + lSep\n            + \"in ANT_HOME/lib, the files must be in the same directory or on the\" + lSep\n            + \"classpath\" + lSep\n            + lSep\n            + \"Please neither file bug reports on this problem, nor email the\" + lSep\n            + \"Ant mailing lists, until all of these causes have been explored,\" + lSep\n            + \"as this is not an Ant bug.\";\n\n\n        return new BuildException(msg, getLocation());\n    }\n\n    /**\n     * Returns the name to use in logging messages.\n     *\n     * @return the name to use in logging messages.\n     */\n    public String getTaskName() {\n        return realThing == null || !(realThing instanceof Task) ?\n            super.getTaskName() : ((Task) realThing).getTaskName();\n    }\n\n    /**\n     * Returns the task instance after it has been created and if it is a task.\n     *\n     * @return a task instance or <code>null</code> if the real object is not\n     *         a task.\n     */\n    public Task getTask() {\n        if (realThing instanceof Task) {\n            return (Task) realThing;\n        }\n        return null;", "functions": [{"function_name": "getTag", "code": "    public String getTag() {\n        return elementName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "maybeConfigure", "code": "    public void maybeConfigure() throws BuildException {\n        realThing = makeObject(this, wrapper);\n\n        wrapper.setProxy(realThing);\n        if (realThing instanceof Task) {\n            ((Task) realThing).setRuntimeConfigurableWrapper(wrapper);\n        }\n\n        handleChildren(realThing, wrapper);\n\n        wrapper.maybeConfigure(getProject());", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "handleOutput", "code": "    protected void handleOutput(String line) {\n        if (realThing instanceof Task) {\n            ((Task) realThing).handleOutput(line);\n        } else {\n            super.handleOutput(line);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "handleFlush", "code": "    protected void handleFlush(String line) {\n        if (realThing instanceof Task) {\n            ((Task) realThing).handleFlush(line);\n        } else {\n            super.handleFlush(line);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "handleErrorOutput", "code": "    protected void handleErrorOutput(String line) {\n        if (realThing instanceof Task) {\n            ((Task) realThing).handleErrorOutput(line);\n        } else {\n            super.handleErrorOutput(line);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "handleErrorFlush", "code": "    protected void handleErrorFlush(String line) {\n        if (realThing instanceof Task) {\n            ((Task) realThing).handleErrorOutput(line);\n        } else {\n            super.handleErrorOutput(line);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() {\n        if (realThing == null) {\n            throw new BuildException(\"Could not create task of type: \"\n                                     + elementName, getLocation());\n        }\n\n        if (realThing instanceof Task) {\n            ((Task) realThing).execute();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addChild", "code": "    public void addChild(UnknownElement child) {\n        children.addElement(child);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "handleChildren", "code": "    protected void handleChildren(Object parent,\n                                  RuntimeConfigurable parentWrapper)\n        throws BuildException {\n\n        if (parent instanceof TaskAdapter) {\n            parent = ((TaskAdapter) parent).getProxy();\n        }\n\n        Class parentClass = parent.getClass();\n        IntrospectionHelper ih = IntrospectionHelper.getHelper(parentClass);\n\n        for (int i = 0;  i < children.size(); i++) {\n            RuntimeConfigurable childWrapper = parentWrapper.getChild(i);\n            UnknownElement child = (UnknownElement) children.elementAt(i);\n            Object realChild = null;\n\n            if (parent instanceof TaskContainer) {\n                realChild = makeTask(child, childWrapper, false);\n                ((TaskContainer) parent).addTask((Task) realChild);\n            } else {\n                realChild = ih.createElement(getProject(), parent, child.getTag());\n            }\n\n            childWrapper.setProxy(realChild);\n            if (parent instanceof TaskContainer) {\n                ((Task) realChild).setRuntimeConfigurableWrapper(childWrapper);\n            }\n\n            child.handleChildren(realChild, childWrapper);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [4, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [7, 14], [2, 15], [3, 16], [1, 17], [9, 18], [1, 19], [10, 20], [1, 21], [4, 22], [11, 23], [13, 24], [10, 25], [10, 26], [12, 27], [25, 28], [26, 29], [28, 30], [28, 31], [29, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 4], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 7], [15, 2], [16, 3], [17, 1], [18, 9], [19, 1], [20, 10], [21, 1], [22, 4], [23, 11], [24, 13], [25, 10], [26, 10], [27, 12], [28, 25], [29, 26], [30, 28], [31, 28], [32, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "makeObject", "code": "    protected Object makeObject(UnknownElement ue, RuntimeConfigurable w) {\n        Object o = makeTask(ue, w, true);\n        if (o == null) {\n            o = getProject().createDataType(ue.getTag());\n        }\n        if (o == null) {\n            throw getNotFoundException(\"task or type\", ue.getTag());\n        }\n        return o;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [7, 10], [8, 11], [4, 12], [9, 13], [3, 14], [12, 15], [13, 16], [13, 17], [14, 18], [18, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 7], [11, 8], [12, 4], [13, 9], [14, 3], [15, 12], [16, 13], [17, 13], [18, 14], [19, 18], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "makeTask", "code": "    protected Task makeTask(UnknownElement ue, RuntimeConfigurable w,\n                            boolean onTopLevel) {\n        Task task = getProject().createTask(ue.getTag());\n        if (task == null && !onTopLevel) {\n            throw getNotFoundException(\"task\", ue.getTag());\n        }\n\n        if (task != null) {\n            task.setLocation(getLocation());\n            task.setOwningTarget(getOwningTarget());\n            task.init();\n        }\n        return task;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [8, 10], [3, 11], [9, 12], [4, 13], [2, 14], [2, 15], [2, 16], [11, 17], [12, 18], [13, 19], [15, 20], [16, 21], [17, 22], [17, 23], [19, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 8], [11, 3], [12, 9], [13, 4], [14, 2], [15, 2], [16, 2], [17, 11], [18, 12], [19, 13], [20, 15], [21, 16], [22, 17], [23, 17], [24, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getNotFoundException", "code": "    protected BuildException getNotFoundException(String what,\n                                                  String elementName) {\n        String lSep = System.getProperty(\"line.separator\");\n        String msg = \"Could not create \" + what + \" of type: \" + elementName\n            + \".\" + lSep + lSep\n            + \"Ant could not find the task or a class this \"\n            + \"task relies upon.\" + lSep + lSep\n            + \"This is common and has a number of causes; the usual \" + lSep\n            + \"solutions are to read the manual pages then download and\" + lSep\n            + \"install needed JAR files, or fix the build file: \" + lSep\n            + \" - You have misspelt '\" + elementName + \"'.\" + lSep\n            + \"   Fix: check your spelling.\" + lSep\n            + \" - The task needs an external JAR file to execute\" + lSep\n            + \"   and this is not found at the right place in the classpath.\" + lSep\n            + \"   Fix: check the documentation for dependencies.\" + lSep\n            + \"   Fix: declare the task.\" + lSep\n            + \" - The task is an Ant optional task and optional.jar is absent\" + lSep\n            + \"   Fix: look for optional.jar in ANT_HOME/lib, download if needed\" + lSep\n            + \" - The task was not built into optional.jar as dependent\"  + lSep\n            + \"   libraries were not found at build time.\" + lSep\n            + \"   Fix: look in the JAR to verify, then rebuild with the needed\" + lSep\n            + \"   libraries, or download a release version from apache.org\" + lSep\n            + \" - The build file was written for a later version of Ant\" + lSep\n            + \"   Fix: upgrade to at least the latest release version of Ant\" + lSep\n            + \" - The task is not an Ant core or optional task \" + lSep\n            + \"   and needs to be declared using <taskdef>.\" + lSep\n            + lSep\n            + \"Remember that for JAR files to be visible to Ant tasks implemented\" + lSep\n            + \"in ANT_HOME/lib, the files must be in the same directory or on the\" + lSep\n            + \"classpath\" + lSep\n            + lSep\n            + \"Please neither file bug reports on this problem, nor email the\" + lSep\n            + \"Ant mailing lists, until all of these causes have been explored,\" + lSep\n            + \"as this is not an Ant bug.\";\n\n\n        return new BuildException(msg, getLocation());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [3, 9], [8, 10], [8, 11], [9, 12], [11, 13], [13, 14], [13, 15], [15, 16], [16, 17], [16, 18], [18, 19], [19, 20], [20, 21], [20, 22], [22, 23], [23, 24], [23, 25], [25, 26], [26, 27], [26, 28], [28, 29], [29, 30], [30, 31], [30, 32], [32, 33], [33, 34], [33, 35], [35, 36], [36, 37], [36, 38], [38, 39], [39, 40], [39, 41], [41, 42], [42, 43], [42, 44], [44, 45], [45, 46], [45, 47], [47, 48], [48, 49], [48, 50], [50, 51], [51, 52], [51, 53], [53, 54], [54, 55], [54, 56], [56, 57], [57, 58], [57, 59], [59, 60], [60, 61], [60, 62], [62, 63], [63, 64], [63, 65], [65, 66], [66, 67], [66, 68], [68, 69], [69, 70], [69, 71], [71, 72], [72, 73], [72, 74], [74, 75], [75, 76], [75, 77], [77, 78], [78, 79], [78, 80], [80, 81], [81, 82], [81, 83], [83, 84], [84, 85], [84, 86], [86, 87], [87, 88], [87, 89], [89, 90], [90, 91], [91, 92], [91, 93], [93, 94], [93, 95], [95, 96], [96, 97], [97, 98], [97, 99], [99, 100], [100, 101], [100, 102], [102, 103], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 3], [10, 8], [11, 8], [12, 9], [13, 11], [14, 13], [15, 13], [16, 15], [17, 16], [18, 16], [19, 18], [20, 19], [21, 20], [22, 20], [23, 22], [24, 23], [25, 23], [26, 25], [27, 26], [28, 26], [29, 28], [30, 29], [31, 30], [32, 30], [33, 32], [34, 33], [35, 33], [36, 35], [37, 36], [38, 36], [39, 38], [40, 39], [41, 39], [42, 41], [43, 42], [44, 42], [45, 44], [46, 45], [47, 45], [48, 47], [49, 48], [50, 48], [51, 50], [52, 51], [53, 51], [54, 53], [55, 54], [56, 54], [57, 56], [58, 57], [59, 57], [60, 59], [61, 60], [62, 60], [63, 62], [64, 63], [65, 63], [66, 65], [67, 66], [68, 66], [69, 68], [70, 69], [71, 69], [72, 71], [73, 72], [74, 72], [75, 74], [76, 75], [77, 75], [78, 77], [79, 78], [80, 78], [81, 80], [82, 81], [83, 81], [84, 83], [85, 84], [86, 84], [87, 86], [88, 87], [89, 87], [90, 89], [91, 90], [92, 91], [93, 91], [94, 93], [95, 93], [96, 95], [97, 96], [98, 97], [99, 97], [100, 99], [101, 100], [102, 100], [103, 102], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103]]}, {"function_name": "getTaskName", "code": "    public String getTaskName() {\n        return realThing == null || !(realThing instanceof Task) ?\n            super.getTaskName() : ((Task) realThing).getTaskName();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getTask", "code": "    public Task getTask() {\n        if (realThing instanceof Task) {\n            return (Task) realThing;\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "UnknownElement", "code": "    public UnknownElement (String elementName) {\n        this.elementName = elementName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7524", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/utils/ObjectPool.java", "language": "java", "name": "org.apache.xml.utils.ObjectPool", "code": "public class ObjectPool implements java.io.Serializable\n{\n\n  /** Type of objects in this pool.\n   *  @serial          */\n  private final Class objectType;\n\n  /** Vector of given objects this points to.\n   *  @serial          */\n  private final Vector freeStack;\n\n  /**\n   * Constructor ObjectPool\n   *\n   * @param type Type of objects for this pool\n   */\n  public ObjectPool(Class type)\n  {\n    objectType = type;\n    freeStack = new Vector();\n  }\n  \n  /**\n   * Constructor ObjectPool\n   *\n   * @param className Fully qualified name of the type of objects for this pool.\n   */\n  public ObjectPool(String className)\n  {\n    try\n    {\n      objectType = ObjectFactory.findProviderClass(\n        className, ObjectFactory.findClassLoader(), true);\n    }\n    catch(ClassNotFoundException cnfe)\n    {\n      throw new WrappedRuntimeException(cnfe);\n    }\n    freeStack = new Vector();\n  }\n\n\n  /**\n   * Constructor ObjectPool\n   *\n   *\n   * @param type Type of objects for this pool\n   * @param size Size of vector to allocate\n   */\n  public ObjectPool(Class type, int size)\n  {\n    objectType = type;\n    freeStack = new Vector(size);\n  }\n\n  /**\n   * Constructor ObjectPool\n   *\n   */\n  public ObjectPool()\n  {\n    objectType = null;\n    freeStack = new Vector();\n  }\n\n  /**\n   * Get an instance of the given object in this pool if available\n   *\n   *\n   * @return an instance of the given object if available or null\n   */\n  public synchronized Object getInstanceIfFree()\n  {\n\n    if (!freeStack.isEmpty())\n    {\n\n      Object result = freeStack.lastElement();\n\n      freeStack.setSize(freeStack.size() - 1);\n\n      return result;\n    }\n\n    return null;\n  }\n\n  /**\n   * Get an instance of the given object in this pool \n   *\n   *\n   * @return An instance of the given object\n   */\n  public synchronized Object getInstance()\n  {\n\n    if (freeStack.isEmpty())\n    {\n\n      try\n      {\n        return objectType.newInstance();\n      }\n      catch (InstantiationException ex){}\n      catch (IllegalAccessException ex){}\n\n    }\n    else\n    {\n\n      Object result = freeStack.lastElement();\n\n      freeStack.setSize(freeStack.size() - 1);\n\n      return result;\n    }\n  }\n\n  /**\n   * Add an instance of the given object to the pool  \n   *\n   *\n   * @param obj Object to add.\n   */\n  public synchronized void freeInstance(Object obj)\n  {\n\n    freeStack.addElement(obj);", "functions": [{"function_name": "getInstanceIfFree", "code": "  public synchronized Object getInstanceIfFree()\n  {\n\n    if (!freeStack.isEmpty())\n    {\n\n      Object result = freeStack.lastElement();\n\n      freeStack.setSize(freeStack.size() - 1);\n\n      return result;\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [2, 7], [7, 8], [6, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 2], [8, 7], [9, 6], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getInstance", "code": "  public synchronized Object getInstance()\n  {\n\n    if (freeStack.isEmpty())\n    {\n\n      try\n      {\n        return objectType.newInstance();\n      }\n      catch (InstantiationException ex){}\n      catch (IllegalAccessException ex){}\n\n    }\n    else\n    {\n\n      Object result = freeStack.lastElement();\n\n      freeStack.setSize(freeStack.size() - 1);\n\n      return result;", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "VAR_DECL", "TRY", "CALL", "CATCH", "CATCH", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [5, 7], [5, 8], [5, 9], [6, 10], [4, 11], [9, 12], [10, 13], [10, 14], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 5], [8, 5], [9, 5], [10, 6], [11, 4], [12, 9], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "freeInstance", "code": "  public synchronized void freeInstance(Object obj)\n  {\n\n    freeStack.addElement(obj);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ObjectPool", "code": "  public ObjectPool(Class type)\n  {\n    objectType = type;\n    freeStack = new Vector();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ObjectPool", "code": "  public ObjectPool(String className)\n  {\n    try\n    {\n      objectType = ObjectFactory.findProviderClass(\n        className, ObjectFactory.findClassLoader(), true);\n    }\n    catch(ClassNotFoundException cnfe)\n    {\n      throw new WrappedRuntimeException(cnfe);\n    }\n    freeStack = new Vector();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "ASSIGN", "CATCH", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [4, 6], [1, 7], [6, 8], [7, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 4], [7, 1], [8, 6], [9, 7], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "ObjectPool", "code": "  public ObjectPool(Class type, int size)\n  {\n    objectType = type;\n    freeStack = new Vector(size);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ObjectPool", "code": "  public ObjectPool()\n  {\n    objectType = null;\n    freeStack = new Vector();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.7-1327", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/depend/bcel/FullAnalyzer.java", "language": "java", "name": "org.apache.tools.ant.util.depend.bcel.FullAnalyzer", "code": "public class FullAnalyzer extends AbstractAnalyzer {\n    /**\n     * Default constructor\n     *\n     * Causes the BCEL classes to load to ensure BCEL dependencies can\n     * be satisfied\n     */\n    public FullAnalyzer() {\n        try {\n            new ClassParser(\"force\");\n        } catch (IOException e) {\n        }\n    }\n\n    /**\n     * Determine the dependencies of the configured root classes.\n     *\n     * @param files a vector to be populated with the files which contain\n     *      the dependency classes\n     * @param classes a vector to be populated with the names of the\n     *      depencency classes.\n     */\n    protected void determineDependencies(Vector files, Vector classes) {\n        Hashtable dependencies = new Hashtable();\n        Hashtable containers = new Hashtable();\n        Hashtable toAnalyze = new Hashtable();\n        for (Enumeration e = getRootClasses(); e.hasMoreElements();) {\n            String classname = (String) e.nextElement();\n            toAnalyze.put(classname, classname);\n        }\n\n        int count = 0;\n        int maxCount = isClosureRequired() ? MAX_LOOPS : 2;\n        while (toAnalyze.size() != 0 && count++ < maxCount) {\n            DependencyVisitor dependencyVisitor = new DependencyVisitor();\n            for (Enumeration e = toAnalyze.keys(); e.hasMoreElements();) {\n                String classname = (String) e.nextElement();\n                dependencies.put(classname, classname);\n                try {\n                    File container = getClassContainer(classname);\n                    if (container == null) {\n                        continue;\n                    }\n                    containers.put(container, container);\n\n                    ClassParser parser = null;\n                    if (container.getName().endsWith(\".class\")) {\n                        parser = new ClassParser(container.getPath());\n                    } else {\n                        parser = new ClassParser(container.getPath(),\n                            classname.replace('.', '/') + \".class\");\n                    }\n\n                    JavaClass javaClass = parser.parse();\n                    DescendingVisitor traverser\n                         = new DescendingVisitor(javaClass, dependencyVisitor);\n                    traverser.visit();\n                } catch (IOException ioe) {\n                }\n            }\n\n            toAnalyze.clear();\n\n            Enumeration depsEnum = dependencyVisitor.getDependencies();\n            while (depsEnum.hasMoreElements()) {\n                String className = (String) depsEnum.nextElement();\n                if (!dependencies.containsKey(className)) {\n                    toAnalyze.put(className, className);\n                }\n            }\n        }\n\n        files.removeAllElements();\n        for (Enumeration e = containers.keys(); e.hasMoreElements();) {\n            files.addElement((File) e.nextElement());\n        }\n\n        classes.removeAllElements();\n        for (Enumeration e = dependencies.keys(); e.hasMoreElements();) {\n            classes.addElement((String) e.nextElement());\n        }\n    }\n\n    /**\n     * Indicate if this analyzer can determine dependent files.\n     *\n     * @return true if the analyzer provides dependency file information.\n     */\n    protected boolean supportsFileDependencies() {\n        return true;", "functions": [{"function_name": "determineDependencies", "code": "    protected void determineDependencies(Vector files, Vector classes) {\n        Hashtable dependencies = new Hashtable();\n        Hashtable containers = new Hashtable();\n        Hashtable toAnalyze = new Hashtable();\n        for (Enumeration e = getRootClasses(); e.hasMoreElements();) {\n            String classname = (String) e.nextElement();\n            toAnalyze.put(classname, classname);\n        }\n\n        int count = 0;\n        int maxCount = isClosureRequired() ? MAX_LOOPS : 2;\n        while (toAnalyze.size() != 0 && count++ < maxCount) {\n            DependencyVisitor dependencyVisitor = new DependencyVisitor();\n            for (Enumeration e = toAnalyze.keys(); e.hasMoreElements();) {\n                String classname = (String) e.nextElement();\n                dependencies.put(classname, classname);\n                try {\n                    File container = getClassContainer(classname);\n                    if (container == null) {\n                        continue;\n                    }\n                    containers.put(container, container);\n\n                    ClassParser parser = null;\n                    if (container.getName().endsWith(\".class\")) {\n                        parser = new ClassParser(container.getPath());\n                    } else {\n                        parser = new ClassParser(container.getPath(),\n                            classname.replace('.', '/') + \".class\");\n                    }\n\n                    JavaClass javaClass = parser.parse();\n                    DescendingVisitor traverser\n                         = new DescendingVisitor(javaClass, dependencyVisitor);\n                    traverser.visit();\n                } catch (IOException ioe) {\n                }\n            }\n\n            toAnalyze.clear();\n\n            Enumeration depsEnum = dependencyVisitor.getDependencies();\n            while (depsEnum.hasMoreElements()) {\n                String className = (String) depsEnum.nextElement();\n                if (!dependencies.containsKey(className)) {\n                    toAnalyze.put(className, className);\n                }\n            }\n        }\n\n        files.removeAllElements();\n        for (Enumeration e = containers.keys(); e.hasMoreElements();) {\n            files.addElement((File) e.nextElement());\n        }\n\n        classes.removeAllElements();\n        for (Enumeration e = dependencies.keys(); e.hasMoreElements();) {\n            classes.addElement((String) e.nextElement());", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "TRY", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [2, 14], [0, 15], [3, 16], [6, 17], [3, 18], [3, 19], [3, 20], [3, 21], [16, 22], [16, 23], [4, 24], [5, 25], [6, 26], [7, 27], [8, 28], [9, 29], [1, 30], [1, 31], [2, 32], [2, 33], [18, 34], [3, 35], [20, 36], [23, 37], [23, 38], [24, 39], [24, 40], [6, 41], [6, 42], [18, 43], [18, 44], [19, 45], [20, 46], [20, 47], [21, 48], [30, 49], [32, 50], [43, 51], [46, 52], [46, 53], [46, 54], [46, 55], [46, 56], [46, 57], [46, 58], [20, 59], [20, 60], [26, 61], [46, 62], [55, 63], [46, 64], [57, 65], [43, 66], [44, 67], [53, 68], [54, 69], [63, 70], [56, 71], [57, 72], [65, 73], [58, 74], [47, 75], [55, 76], [55, 77], [70, 78], [76, 79], [77, 80], [79, 81], [79, 82], [80, 83], [81, 84], [81, 85], [85, 86], [85, 87], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 2], [15, 0], [16, 3], [17, 6], [18, 3], [19, 3], [20, 3], [21, 3], [22, 16], [23, 16], [24, 4], [25, 5], [26, 6], [27, 7], [28, 8], [29, 9], [30, 1], [31, 1], [32, 2], [33, 2], [34, 18], [35, 3], [36, 20], [37, 23], [38, 23], [39, 24], [40, 24], [41, 6], [42, 6], [43, 18], [44, 18], [45, 19], [46, 20], [47, 20], [48, 21], [49, 30], [50, 32], [51, 43], [52, 46], [53, 46], [54, 46], [55, 46], [56, 46], [57, 46], [58, 46], [59, 20], [60, 20], [61, 26], [62, 46], [63, 55], [64, 46], [65, 57], [66, 43], [67, 44], [68, 53], [69, 54], [70, 63], [71, 56], [72, 57], [73, 65], [74, 58], [75, 47], [76, 55], [77, 55], [78, 70], [79, 76], [80, 77], [81, 79], [82, 79], [83, 80], [84, 81], [85, 81], [86, 85], [87, 85], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}, {"function_name": "supportsFileDependencies", "code": "    protected boolean supportsFileDependencies() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FullAnalyzer", "code": "    public FullAnalyzer() {\n        try {\n            new ClassParser(\"force\");", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [1, 0], [2, 1], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.4-206", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/util/regexp/JakartaOroMatcher.java", "language": "java", "name": "org.apache.tools.ant.util.regexp.JakartaOroMatcher", "code": "public class JakartaOroMatcher implements RegexpMatcher {\n\n    protected Perl5Matcher reg = new Perl5Matcher();\n    protected Perl5Compiler comp = new Perl5Compiler();\n    private Pattern pattern;\n\n    /**\n     * Set the regexp pattern from the String description.\n     */\n    public void setPattern(String pattern) throws BuildException {\n        try {\n            this.pattern = comp.compile(pattern);\n        } catch (MalformedPatternException e) {\n            throw new BuildException(e);\n        }\n    }\n\n    /**\n     * Get a String representation of the regexp pattern\n     */\n    public String getPattern() {\n        return pattern.getPattern();\n    }\n\n    /**\n     * Does the given argument match the pattern?\n     */\n    public boolean matches(String argument) {\n        return reg.contains(argument, pattern);\n    }\n\n    /**\n     * Returns a Vector of matched groups found in the argument.\n     *\n     * <p>Group 0 will be the full match, the rest are the\n     * parenthesized subexpressions</p>.\n     */\n    public Vector getGroups(String argument) {\n        if (!matches(argument)) {\n            return null;\n        }\n        Vector v = new Vector();\n        MatchResult mr = reg.getMatch();\n        for (int i=0; i<mr.groups(); i++) {\n            v.addElement(mr.group(i));\n        }\n        return v;", "functions": [{"function_name": "setPattern", "code": "    public void setPattern(String pattern) throws BuildException {\n        try {\n            this.pattern = comp.compile(pattern);\n        } catch (MalformedPatternException e) {\n            throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getPattern", "code": "    public String getPattern() {\n        return pattern.getPattern();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "matches", "code": "    public boolean matches(String argument) {\n        return reg.contains(argument, pattern);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getGroups", "code": "    public Vector getGroups(String argument) {\n        if (!matches(argument)) {\n            return null;\n        }\n        Vector v = new Vector();\n        MatchResult mr = reg.getMatch();\n        for (int i=0; i<mr.groups(); i++) {\n            v.addElement(mr.group(i));\n        }\n        return v;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [5, 8], [7, 9], [3, 10], [4, 11], [5, 12], [2, 13], [2, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 5], [9, 7], [10, 3], [11, 4], [12, 5], [13, 2], [14, 2], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "camel-1.6-2751", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/RuntimeTransformException.java", "language": "java", "name": "org.apache.camel.RuntimeTransformException", "code": "public class RuntimeTransformException extends RuntimeCamelException {\n\n    private static final long serialVersionUID = -8417806626073055262L;\n\n    public RuntimeTransformException(String message) {\n        super(message);\n    }\n\n    public RuntimeTransformException(String message, Throwable cause) {\n        super(message, cause);\n    }\n\n    public RuntimeTransformException(Throwable cause) {\n        super(cause);", "functions": [{"function_name": "RuntimeTransformException", "code": "    public RuntimeTransformException(String message) {\n        super(message);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RuntimeTransformException", "code": "    public RuntimeTransformException(String message, Throwable cause) {\n        super(message, cause);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RuntimeTransformException", "code": "    public RuntimeTransformException(Throwable cause) {\n        super(cause);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.5-333", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/Project.java", "language": "java", "name": "org.apache.tools.ant.Project", "code": "public class Project {\n\n    /** Message priority of \"error\". */\n    public static final int MSG_ERR = 0;\n    /** Message priority of \"warning\". */\n    public static final int MSG_WARN = 1;\n    /** Message priority of \"information\". */\n    public static final int MSG_INFO = 2;\n    /** Message priority of \"verbose\". */\n    public static final int MSG_VERBOSE = 3;\n    /** Message priority of \"debug\". */\n    public static final int MSG_DEBUG = 4;\n\n    /**\n     * Constant for the \"visiting\" state, used when\n     * traversing a DFS of target dependencies.\n     */\n    private static final String VISITING = \"VISITING\";\n    /**\n     * Constant for the \"visited\" state, used when\n     * traversing a DFS of target dependencies.\n     */\n    private static final String VISITED = \"VISITED\";\n\n    /**\n     * Version constant for Java 1.0\n     *\n     * @deprecated use org.apache.tools.ant.util.JavaEnvUtils instead\n     */\n    public static final String JAVA_1_0 = JavaEnvUtils.JAVA_1_0;\n    /**\n     * Version constant for Java 1.1\n     *\n     * @deprecated use org.apache.tools.ant.util.JavaEnvUtils instead\n     */\n    public static final String JAVA_1_1 = JavaEnvUtils.JAVA_1_1;\n    /**\n     * Version constant for Java 1.2\n     *\n     * @deprecated use org.apache.tools.ant.util.JavaEnvUtils instead\n     */\n    public static final String JAVA_1_2 = JavaEnvUtils.JAVA_1_2;\n    /**\n     * Version constant for Java 1.3\n     *\n     * @deprecated use org.apache.tools.ant.util.JavaEnvUtils instead\n     */\n    public static final String JAVA_1_3 = JavaEnvUtils.JAVA_1_3;\n    /**\n     * Version constant for Java 1.4\n     *\n     * @deprecated use org.apache.tools.ant.util.JavaEnvUtils instead\n     */\n    public static final String JAVA_1_4 = JavaEnvUtils.JAVA_1_4;\n\n    /** Default filter start token. */\n    public static final String TOKEN_START = FilterSet.DEFAULT_TOKEN_START;\n    /** Default filter end token. */\n    public static final String TOKEN_END = FilterSet.DEFAULT_TOKEN_END;\n\n    /** Name of this project. */\n    private String name;\n    /** Description for this project (if any). */\n    private String description;\n\n    /** Project properties map (usually String to String). */\n    private Hashtable properties = new Hashtable();\n    /**\n     * Map of \"user\" properties (as created in the Ant task, for example).\n     * Note that these key/value pairs are also always put into the\n     * project properties, so only the project properties need to be queried.\n     * Mapping is String to String.\n     */\n    private Hashtable userProperties = new Hashtable();\n    /**\n     * Map of inherited \"user\" properties - that are those \"user\"\n     * properties that have been created by tasks and not been set\n     * from the command line or a GUI tool.\n     * Mapping is String to String.\n     */\n    private Hashtable inheritedProperties = new Hashtable();\n    /** Map of references within the project (paths etc) (String to Object). */\n    private Hashtable references = new Hashtable();\n\n    /** Name of the project's default target. */\n    private String defaultTarget;\n    /** Map from data type names to implementing classes (String to Class). */\n    private Hashtable dataClassDefinitions = new Hashtable();\n    /** Map from task names to implementing classes (String to Class). */\n    private Hashtable taskClassDefinitions = new Hashtable();\n    /**\n     * Map from task names to vectors of created tasks\n     * (String to Vector of Task). This is used to invalidate tasks if\n     * the task definition changes.\n     */\n    private Hashtable createdTasks = new Hashtable();\n    /** Map from target names to targets (String to Target). */\n    private Hashtable targets = new Hashtable();\n    /** Set of global filters. */\n    private FilterSet globalFilterSet = new FilterSet();\n    /**\n     * Wrapper around globalFilterSet. This collection only ever\n     * contains one FilterSet, but the wrapper is needed in order to\n     * make it easier to use the FileUtils interface.\n     */\n    private FilterSetCollection globalFilters\n        = new FilterSetCollection(globalFilterSet);\n\n    /** Project base directory. */\n    private File baseDir;\n\n    /** List of listeners to notify of build events. */\n    private Vector listeners = new Vector();\n\n    /**\n     * The Ant core classloader - may be <code>null</code> if using\n     * parent classloader.\n     */\n    private ClassLoader coreLoader = null;\n\n    /** Records the latest task to be executed on a thread (Thread to Task). */\n    private Hashtable threadTasks = new Hashtable();\n\n    /**\n     * Called to handle any input requests.\n     */\n    private InputHandler inputHandler = null;\n\n    /**\n     * Sets the input handler\n     */\n    public void setInputHandler(InputHandler handler) {\n        inputHandler = handler;\n    }\n\n    /**\n     * Retrieves the current input handler.\n     */\n    public InputHandler getInputHandler() {\n        return inputHandler;\n    }\n\n    /** Instance of a utility class to use for file operations. */\n    private FileUtils fileUtils;\n\n    /** \n     * Flag which catches Listeners which try to use System.out or System.err \n     */\n    private boolean loggingMessage = false;\n    \n    /**\n     * Creates a new Ant project.\n     */\n    public Project() {\n        fileUtils = FileUtils.newFileUtils();\n        inputHandler = new DefaultInputHandler();\n    }\n\n    /**\n     * Initialises the project.\n     *\n     * This involves setting the default task definitions and loading the\n     * system properties.\n     *\n     * @exception BuildException if the default task list cannot be loaded\n     */\n    public void init() throws BuildException {\n        setJavaVersionProperty();\n\n        String defs = \"/org/apache/tools/ant/taskdefs/defaults.properties\";\n\n        try {\n            Properties props = new Properties();\n            InputStream in = this.getClass().getResourceAsStream(defs);\n            if (in == null) {\n                throw new BuildException(\"Can't load default task list\");\n            }\n            props.load(in);\n            in.close();\n\n            Enumeration enum1 = props.propertyNames();\n            while (enum1.hasMoreElements()) {\n                String key = (String) enum1.nextElement();\n                String value = props.getProperty(key);\n                try {\n                    Class taskClass = Class.forName(value);\n                    addTaskDefinition(key, taskClass);\n                } catch (NoClassDefFoundError ncdfe) {\n                    log(\"Could not load a dependent class (\"\n                        + ncdfe.getMessage() + \") for task \" + key, MSG_DEBUG);\n                } catch (ClassNotFoundException cnfe) {\n                    log(\"Could not load class (\" + value\n                        + \") for task \" + key, MSG_DEBUG);\n                }\n            }\n        } catch (IOException ioe) {\n            throw new BuildException(\"Can't load default task list\");\n        }\n\n        String dataDefs = \"/org/apache/tools/ant/types/defaults.properties\";\n\n        try {\n            Properties props = new Properties();\n            InputStream in = this.getClass().getResourceAsStream(dataDefs);\n            if (in == null) {\n                throw new BuildException(\"Can't load default datatype list\");\n            }\n            props.load(in);\n            in.close();\n\n            Enumeration enum1 = props.propertyNames();\n            while (enum1.hasMoreElements()) {\n                String key = (String) enum1.nextElement();\n                String value = props.getProperty(key);\n                try {\n                    Class dataClass = Class.forName(value);\n                    addDataTypeDefinition(key, dataClass);\n                } catch (NoClassDefFoundError ncdfe) {\n                } catch (ClassNotFoundException cnfe) {\n                }\n            }\n        } catch (IOException ioe) {\n            throw new BuildException(\"Can't load default datatype list\");\n        }\n\n        setSystemProperties();\n    }\n\n    /**\n     * Sets the core classloader for the project. If a <code>null</code>\n     * classloader is specified, the parent classloader should be used.\n     *\n     * @param coreLoader The classloader to use for the project.\n     *                   May be <code>null</code>.\n     */\n    public void setCoreLoader(ClassLoader coreLoader) {\n        this.coreLoader = coreLoader;\n    }\n\n    /**\n     * Returns the core classloader to use for this project.\n     * This may be <code>null</code>, indicating that\n     * the parent classloader should be used.\n     *\n     * @return the core classloader to use for this project.\n     *\n     */\n    public ClassLoader getCoreLoader() {\n        return coreLoader;\n    }\n\n    /**\n     * Adds a build listener to the list. This listener will\n     * be notified of build events for this project.\n     *\n     * @param listener The listener to add to the list.\n     *                 Must not be <code>null</code>.\n     */\n    public void addBuildListener(BuildListener listener) {\n        listeners.addElement(listener);\n    }\n\n    /**\n     * Removes a build listener from the list. This listener\n     * will no longer be notified of build events for this project.\n     *\n     * @param listener The listener to remove from the list.\n     *                 Should not be <code>null</code>.\n     */\n    public void removeBuildListener(BuildListener listener) {\n        listeners.removeElement(listener);\n    }\n\n    /**\n     * Returns a list of build listeners for the project. \n     *\n     * @return a list of build listeners for the project\n     */\n    public Vector getBuildListeners() {\n        return (Vector) listeners.clone();\n    }\n\n    /**\n     * Writes a message to the log with the default log level\n     * of MSG_INFO\n     * @param message The text to log. Should not be <code>null</code>.\n     */\n\n    public void log(String message) {\n        log(message, MSG_INFO);\n    }\n\n    /**\n     * Writes a project level message to the log with the given log level.\n     * @param message The text to log. Should not be <code>null</code>.\n     * @param msgLevel The priority level to log at.\n     */\n    public void log(String message, int msgLevel) {\n        fireMessageLogged(this, message, msgLevel);\n    }\n\n    /**\n     * Writes a task level message to the log with the given log level.\n     * @param task The task to use in the log. Must not be <code>null</code>.\n     * @param message The text to log. Should not be <code>null</code>.\n     * @param msgLevel The priority level to log at.\n     */\n    public void log(Task task, String message, int msgLevel) {\n        fireMessageLogged(task, message, msgLevel);\n    }\n\n    /**\n     * Writes a target level message to the log with the given log level.\n     * @param target The target to use in the log.\n     *               Must not be <code>null</code>.\n     * @param message The text to log. Should not be <code>null</code>.\n     * @param msgLevel The priority level to log at.\n     */\n    public void log(Target target, String message, int msgLevel) {\n        fireMessageLogged(target, message, msgLevel);\n    }\n\n    /**\n     * Returns the set of global filters.\n     *\n     * @return the set of global filters\n     */\n    public FilterSet getGlobalFilterSet() {\n        return globalFilterSet;\n    }\n\n    /**\n     * Sets a property. Any existing property of the same name\n     * is overwritten, unless it is a user property.\n     * @param name The name of property to set.\n     *             Must not be <code>null</code>.\n     * @param value The new value of the property.\n     *              Must not be <code>null</code>.\n     */\n    public synchronized void setProperty(String name, String value) {\n        if (null != userProperties.get(name)) {\n            log(\"Override ignored for user property \" + name, MSG_VERBOSE);\n            return;\n        }\n\n        if (null != properties.get(name)) {\n            log(\"Overriding previous definition of property \" + name,\n                MSG_VERBOSE);\n        }\n\n        log(\"Setting project property: \" + name + \" -> \" +\n             value, MSG_DEBUG);\n        properties.put(name, value);\n    }\n\n    /**\n     * Sets a property if no value currently exists. If the property\n     * exists already, a message is logged and the method returns with\n     * no other effect.\n     *\n     * @param name The name of property to set.\n     *             Must not be <code>null</code>.\n     * @param value The new value of the property.\n     *              Must not be <code>null</code>.\n     * @since 1.5\n     */\n    public synchronized void setNewProperty(String name, String value) {\n        if (null != properties.get(name)) {\n            log(\"Override ignored for property \" + name, MSG_VERBOSE);\n            return;\n        }\n        log(\"Setting project property: \" + name + \" -> \" +\n            value, MSG_DEBUG);\n        properties.put(name, value);\n    }\n\n    /**\n     * Sets a user property, which cannot be overwritten by\n     * set/unset property calls. Any previous value is overwritten.\n     * @param name The name of property to set.\n     *             Must not be <code>null</code>.\n     * @param value The new value of the property.\n     *              Must not be <code>null</code>.\n     * @see #setProperty(String,String)\n     */\n    public synchronized void setUserProperty(String name, String value) {\n        log(\"Setting ro project property: \" + name + \" -> \" +\n            value, MSG_DEBUG);\n        userProperties.put(name, value);\n        properties.put(name, value);\n    }\n\n    /**\n     * Sets a user property, which cannot be overwritten by set/unset\n     * property calls. Any previous value is overwritten. Also marks\n     * these properties as properties that have not come from the\n     * command line.\n     *\n     * @param name The name of property to set.\n     *             Must not be <code>null</code>.\n     * @param value The new value of the property.\n     *              Must not be <code>null</code>.\n     * @see #setProperty(String,String)\n     */\n    public synchronized void setInheritedProperty(String name, String value) {\n        inheritedProperties.put(name, value);\n        setUserProperty(name, value);\n    }\n\n    /**\n     * Sets a property unless it is already defined as a user property\n     * (in which case the method returns silently).\n     *\n     * @param name The name of the property.\n     *             Must not be <code>null</code>.\n     * @param value The property value. Must not be <code>null</code>.\n     */\n    private void setPropertyInternal(String name, String value) {\n        if (null != userProperties.get(name)) {\n            return;\n        }\n        properties.put(name, value);\n    }\n\n    /**\n     * Returns the value of a property, if it is set.\n     *\n     * @param name The name of the property.\n     *             May be <code>null</code>, in which case\n     *             the return value is also <code>null</code>.\n     * @return the property value, or <code>null</code> for no match\n     *         or if a <code>null</code> name is provided.\n     */\n    public String getProperty(String name) {\n        if (name == null) {\n          return null;\n        }\n        String property = (String) properties.get(name);\n        return property;\n    }\n\n    /**\n     * Replaces ${} style constructions in the given value with the\n     * string value of the corresponding data types.\n     *\n     * @param value The string to be scanned for property references.\n     *              May be <code>null</code>.\n     *\n     * @return the given string with embedded property names replaced\n     *         by values, or <code>null</code> if the given string is\n     *         <code>null</code>.\n     *\n     * @exception BuildException if the given value has an unclosed\n     *                           property name, e.g. <code>${xxx</code>\n     */\n    public String replaceProperties(String value)\n        throws BuildException {\n        return ProjectHelper.replaceProperties(this, value, properties);\n    }\n\n    /**\n     * Returns the value of a user property, if it is set.\n     *\n     * @param name The name of the property.\n     *             May be <code>null</code>, in which case\n     *             the return value is also <code>null</code>.\n     * @return the property value, or <code>null</code> for no match\n     *         or if a <code>null</code> name is provided.\n     */\n     public String getUserProperty(String name) {\n        if (name == null) {\n            return null;\n        }\n        String property = (String) userProperties.get(name);\n        return property;\n    }\n\n    /**\n     * Returns a copy of the properties table.\n     * @return a hashtable containing all properties\n     *         (including user properties).\n     */\n    public Hashtable getProperties() {\n        Hashtable propertiesCopy = new Hashtable();\n\n        Enumeration e = properties.keys();\n        while (e.hasMoreElements()) {\n            Object name = e.nextElement();\n            Object value = properties.get(name);\n            propertiesCopy.put(name, value);\n        }\n\n        return propertiesCopy;\n    }\n\n    /**\n     * Returns a copy of the user property hashtable\n     * @return a hashtable containing just the user properties\n     */\n    public Hashtable getUserProperties() {\n        Hashtable propertiesCopy = new Hashtable();\n\n        Enumeration e = userProperties.keys();\n        while (e.hasMoreElements()) {\n            Object name = e.nextElement();\n            Object value = properties.get(name);\n            propertiesCopy.put(name, value);\n        }\n\n        return propertiesCopy;\n    }\n\n    /**\n     * Copies all user properties that have been set on the command\n     * line or a GUI tool from this instance to the Project instance\n     * given as the argument.\n     *\n     * <p>To copy all \"user\" properties, you will also have to call\n     * {@link #copyInheritedProperties copyInheritedProperties}.</p>\n     *\n     * @param other the project to copy the properties to.  Must not be null.\n     *\n     * @since Ant 1.5\n     */\n    public void copyUserProperties(Project other) {\n        Enumeration e = userProperties.keys();\n        while (e.hasMoreElements()) {\n            Object arg = e.nextElement();\n            if (inheritedProperties.containsKey(arg)) {\n                continue;\n            }\n            Object value = userProperties.get(arg);\n            other.setUserProperty(arg.toString(), value.toString());\n        }\n    }\n\n    /**\n     * Copies all user properties that have not been set on the\n     * command line or a GUI tool from this instance to the Project\n     * instance given as the argument.\n     *\n     * <p>To copy all \"user\" properties, you will also have to call\n     * {@link #copyUserProperties copyUserProperties}.</p>\n     *\n     * @param other the project to copy the properties to.  Must not be null.\n     *\n     * @since Ant 1.5\n     */\n    public void copyInheritedProperties(Project other) {\n        Enumeration e = inheritedProperties.keys();\n        while (e.hasMoreElements()) {\n            String arg = e.nextElement().toString();\n            if (other.getUserProperty(arg) != null) {\n                continue;\n            }\n            Object value = inheritedProperties.get(arg);\n            other.setInheritedProperty(arg, value.toString());\n        }\n    }\n\n    /**\n     * Sets the default target of the project.\n     *\n     * @param defaultTarget The name of the default target for this project.\n     *                      May be <code>null</code>, indicating that there is\n     *                      no default target.\n     *\n     * @deprecated use setDefault\n     * @see #setDefault(String)\n     */\n    public void setDefaultTarget(String defaultTarget) {\n        this.defaultTarget = defaultTarget;\n    }\n\n    /**\n     * Returns the name of the default target of the project.\n     * @return name of the default target or\n     *         <code>null</code> if no default has been set.\n     */\n    public String getDefaultTarget() {\n        return defaultTarget;\n    }\n\n    /**\n     * Sets the default target of the project.\n     *\n     * @param defaultTarget The name of the default target for this project.\n     *                      May be <code>null</code>, indicating that there is\n     *                      no default target.\n     */\n    public void setDefault(String defaultTarget) {\n        this.defaultTarget = defaultTarget;\n    }\n\n    /**\n     * Sets the name of the project, also setting the user\n     * property <code>ant.project.name</code>.\n     *\n     * @param name The name of the project.\n     *             Must not be <code>null</code>.\n     */\n    public void setName(String name) {\n        setUserProperty(\"ant.project.name\",  name);\n        this.name = name;\n    }\n\n    /**\n     * Returns the project name, if one has been set.\n     *\n     * @return the project name, or <code>null</code> if it hasn't been set.\n     */\n    public String getName() {\n        return name;\n    }\n\n    /**\n     * Sets the project description.\n     *\n     * @param description The description of the project.\n     *                    May be <code>null</code>.\n     */\n    public void setDescription(String description) {\n        this.description = description;\n    }\n\n    /**\n     * Returns the project description, if one has been set.\n     *\n     * @return the project description, or <code>null</code> if it hasn't\n     *         been set.\n     */\n    public String getDescription() {\n        return description;\n    }\n\n    /**\n     * Adds a filter to the set of global filters.\n     *\n     * @param token The token to filter.\n     *              Must not be <code>null</code>.\n     * @param value The replacement value.\n     *              Must not be <code>null</code>.\n     * @deprecated Use getGlobalFilterSet().addFilter(token,value)\n     *\n     * @see #getGlobalFilterSet()\n     * @see FilterSet#addFilter(String,String)\n     */\n    public void addFilter(String token, String value) {\n        if (token == null) {\n            return;\n        }\n\n        globalFilterSet.addFilter(new FilterSet.Filter(token, value));\n    }\n\n    /**\n     * Returns a hashtable of global filters, mapping tokens to values.\n     *\n     * @return a hashtable of global filters, mapping tokens to values\n     *         (String to String).\n     *\n     * @deprecated Use getGlobalFilterSet().getFilterHash()\n     *\n     * @see #getGlobalFilterSet()\n     * @see FilterSet#getFilterHash()\n     */\n    public Hashtable getFilters() {\n        return globalFilterSet.getFilterHash();\n    }\n\n    /**\n     * Sets the base directory for the project, checking that\n     * the given filename exists and is a directory.\n     *\n     * @param baseD The project base directory.\n     *              Must not be <code>null</code>.\n     *\n     * @exception BuildException if the directory if invalid\n     */\n    public void setBasedir(String baseD) throws BuildException {\n        setBaseDir(new File(baseD));\n    }\n\n    /**\n     * Sets the base directory for the project, checking that\n     * the given file exists and is a directory.\n     *\n     * @param baseDir The project base directory.\n     *                Must not be <code>null</code>.\n     * @exception BuildException if the specified file doesn't exist or\n     *                           isn't a directory\n     */\n    public void setBaseDir(File baseDir) throws BuildException {\n        baseDir = fileUtils.normalize(baseDir.getAbsolutePath());\n        if (!baseDir.exists()) {\n            throw new BuildException(\"Basedir \" + baseDir.getAbsolutePath()\n                + \" does not exist\");\n        }\n        if (!baseDir.isDirectory()) {\n            throw new BuildException(\"Basedir \" + baseDir.getAbsolutePath()\n                + \" is not a directory\");\n        }\n        this.baseDir = baseDir;\n        setPropertyInternal(\"basedir\", this.baseDir.getPath());\n        String msg = \"Project base dir set to: \" + this.baseDir;\n        log(msg, MSG_VERBOSE);\n    }\n\n    /**\n     * Returns the base directory of the project as a file object.\n     *\n     * @return the project base directory, or <code>null</code> if the\n     *         base directory has not been successfully set to a valid value.\n     */\n    public File getBaseDir() {\n        if (baseDir == null) {\n            try {\n                setBasedir(\".\");\n            } catch (BuildException ex) {\n                ex.printStackTrace();\n            }\n        }\n        return baseDir;\n    }\n\n    /**\n     * Returns the version of Java this class is running under.\n     * @return the version of Java as a String, e.g. \"1.1\"\n     * @see org.apache.tools.ant.util.JavaEnvUtils#getJavaVersion\n     * @deprecated use org.apache.tools.ant.util.JavaEnvUtils instead\n     */\n    public static String getJavaVersion() {\n        return JavaEnvUtils.getJavaVersion();\n    }\n\n    /**\n     * Sets the <code>ant.java.version</code> property and tests for\n     * unsupported JVM versions. If the version is supported,\n     * verbose log messages are generated to record the Java version\n     * and operating system name.\n     *\n     * @exception BuildException if this Java version is not supported\n     *\n     * @see org.apache.tools.ant.util.JavaEnvUtils#getJavaVersion\n     */\n    public void setJavaVersionProperty() throws BuildException {\n        String javaVersion = JavaEnvUtils.getJavaVersion();\n        setPropertyInternal(\"ant.java.version\", javaVersion);\n\n        if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_0)) {\n            throw new BuildException(\"Ant cannot work on Java 1.0\");\n        }\n\n        log(\"Detected Java version: \" + javaVersion + \" in: \"\n            + System.getProperty(\"java.home\"), MSG_VERBOSE);\n\n        log(\"Detected OS: \" + System.getProperty(\"os.name\"), MSG_VERBOSE);\n    }\n\n    /**\n     * Adds all system properties which aren't already defined as\n     * user properties to the project properties.\n     */\n    public void setSystemProperties() {\n        Properties systemP = System.getProperties();\n        Enumeration e = systemP.keys();\n        while (e.hasMoreElements()) {\n            Object name = e.nextElement();\n            String value = systemP.get(name).toString();\n            this.setPropertyInternal(name.toString(), value);\n        }\n    }\n\n    /**\n     * Adds a new task definition to the project.\n     * Attempting to override an existing definition with an\n     * equivalent one (i.e. with the same classname) results in\n     * a verbose log message. Attempting to override an existing definition\n     * with a different one results in a warning log message and\n     * invalidates any tasks which have already been created with the\n     * old definition.\n     *\n     * @param taskName The name of the task to add.\n     *                 Must not be <code>null</code>.\n     * @param taskClass The full name of the class implementing the task.\n     *                  Must not be <code>null</code>.\n     *\n     * @exception BuildException if the class is unsuitable for being an Ant\n     *                           task. An error level message is logged before\n     *                           this exception is thrown.\n     *\n     * @see #checkTaskClass(Class)\n     */\n    public void addTaskDefinition(String taskName, Class taskClass)\n         throws BuildException {\n        Class old = (Class) taskClassDefinitions.get(taskName);\n        if (null != old) {\n            if (old.equals(taskClass)) {\n                log(\"Ignoring override for task \" + taskName\n                    + \", it is already defined by the same class.\",\n                    MSG_VERBOSE);\n                return;\n            } else {\n                int logLevel = MSG_WARN;\n                if (old.getName().equals(taskClass.getName())) {\n                    ClassLoader oldLoader = old.getClassLoader();\n                    ClassLoader newLoader = taskClass.getClassLoader();\n                    if (oldLoader != null \n                        && newLoader != null\n                        && oldLoader instanceof AntClassLoader\n                        && newLoader instanceof AntClassLoader\n                        && ((AntClassLoader) oldLoader).getClasspath()\n                        .equals(((AntClassLoader) newLoader).getClasspath())\n                        ) {\n                        logLevel = MSG_VERBOSE;\n                    }\n                }\n                \n                log(\"Trying to override old definition of task \" + taskName,\n                    logLevel);\n                invalidateCreatedTasks(taskName);\n            }\n        }\n\n        String msg = \" +User task: \" + taskName + \"     \" + taskClass.getName();\n        log(msg, MSG_DEBUG);\n        checkTaskClass(taskClass);\n        taskClassDefinitions.put(taskName, taskClass);\n    }\n\n    /**\n     * Checks whether or not a class is suitable for serving as Ant task.\n     * Ant task implementation classes must be public, concrete, and have\n     * a no-arg constructor.\n     *\n     * @param taskClass The class to be checked.\n     *                  Must not be <code>null</code>.\n     *\n     * @exception BuildException if the class is unsuitable for being an Ant\n     *                           task. An error level message is logged before\n     *                           this exception is thrown.\n     */\n    public void checkTaskClass(final Class taskClass) throws BuildException {\n        if (!Modifier.isPublic(taskClass.getModifiers())) {\n            final String message = taskClass + \" is not public\";\n            log(message, Project.MSG_ERR);\n            throw new BuildException(message);\n        }\n        if (Modifier.isAbstract(taskClass.getModifiers())) {\n            final String message = taskClass + \" is abstract\";\n            log(message, Project.MSG_ERR);\n            throw new BuildException(message);\n        }\n        try {\n            taskClass.getConstructor(null);\n        } catch (NoSuchMethodException e) {\n            final String message = \"No public no-arg constructor in \"\n                + taskClass;\n            log(message, Project.MSG_ERR);\n            throw new BuildException(message);\n        }\n        if (!Task.class.isAssignableFrom(taskClass)) {\n            TaskAdapter.checkTaskClass(taskClass, this);\n        }\n    }\n\n    /**\n     * Returns the current task definition hashtable. The returned hashtable is\n     * \"live\" and so should not be modified.\n     *\n     * @return a map of from task name to implementing class\n     *         (String to Class).\n     */\n    public Hashtable getTaskDefinitions() {\n        return taskClassDefinitions;\n    }\n\n    /**\n     * Adds a new datatype definition.\n     * Attempting to override an existing definition with an\n     * equivalent one (i.e. with the same classname) results in\n     * a verbose log message. Attempting to override an existing definition\n     * with a different one results in a warning log message, but the\n     * definition is changed.\n     *\n     * @param typeName The name of the datatype.\n     *                 Must not be <code>null</code>.\n     * @param typeClass The full name of the class implementing the datatype.\n     *                  Must not be <code>null</code>.\n     */\n    public void addDataTypeDefinition(String typeName, Class typeClass) {\n        synchronized(dataClassDefinitions) {\n            Class old = (Class) dataClassDefinitions.get(typeName);\n            if (null != old) {\n                if (old.equals(typeClass)) {\n                    log(\"Ignoring override for datatype \" + typeName\n                        + \", it is already defined by the same class.\",\n                        MSG_VERBOSE);\n                    return;\n                } else {\n                    log(\"Trying to override old definition of datatype \"\n                        + typeName, MSG_WARN);\n                }\n            }\n            dataClassDefinitions.put(typeName, typeClass);\n        }\n        String msg = \" +User datatype: \" + typeName + \"     \"\n            + typeClass.getName();\n        log(msg, MSG_DEBUG);\n    }\n\n    /**\n     * Returns the current datatype definition hashtable. The returned\n     * hashtable is \"live\" and so should not be modified.\n     *\n     * @return a map of from datatype name to implementing class\n     *         (String to Class).\n     */\n    public Hashtable getDataTypeDefinitions() {\n        return dataClassDefinitions;\n    }\n\n    /**\n     * Adds a <em>new</em> target to the project.\n     *\n     * @param target The target to be added to the project.\n     *               Must not be <code>null</code>.\n     *\n     * @exception BuildException if the target already exists in the project\n     *\n     * @see Project#addOrReplaceTarget\n     */\n    public void addTarget(Target target) throws BuildException {\n        String name = target.getName();\n        if (targets.get(name) != null) {\n            throw new BuildException(\"Duplicate target: `\" + name + \"'\");\n        }\n        addOrReplaceTarget(name, target);\n    }\n\n    /**\n     * Adds a <em>new</em> target to the project.\n     *\n     * @param targetName The name to use for the target.\n     *             Must not be <code>null</code>.\n     * @param target The target to be added to the project.\n     *               Must not be <code>null</code>.\n     *\n     * @exception BuildException if the target already exists in the project\n     *\n     * @see Project#addOrReplaceTarget\n     */\n     public void addTarget(String targetName, Target target)\n         throws BuildException {\n         if (targets.get(targetName) != null) {\n             throw new BuildException(\"Duplicate target: `\" + targetName + \"'\");\n         }\n         addOrReplaceTarget(targetName, target);\n     }\n\n    /**\n     * Adds a target to the project, or replaces one with the same\n     * name.\n     *\n     * @param target The target to be added or replaced in the project.\n     *               Must not be <code>null</code>.\n     */\n    public void addOrReplaceTarget(Target target) {\n        addOrReplaceTarget(target.getName(), target);\n    }\n\n    /**\n     * Adds a target to the project, or replaces one with the same\n     * name.\n     *\n     * @param targetName The name to use for the target.\n     *                   Must not be <code>null</code>.\n     * @param target The target to be added or replaced in the project.\n     *               Must not be <code>null</code>.\n     */\n    public void addOrReplaceTarget(String targetName, Target target) {\n        String msg = \" +Target: \" + targetName;\n        log(msg, MSG_DEBUG);\n        target.setProject(this);\n        targets.put(targetName, target);\n    }\n\n    /**\n     * Returns the hashtable of targets. The returned hashtable\n     * is \"live\" and so should not be modified.\n     * @return a map from name to target (String to Target).\n     */\n    public Hashtable getTargets() {\n        return targets;\n    }\n\n    /**\n     * Creates a new instance of a task.\n     *\n     * @param taskType The name of the task to create an instance of.\n     *                 Must not be <code>null</code>.\n     *\n     * @return an instance of the specified task, or <code>null</code> if\n     *         the task name is not recognised.\n     *\n     * @exception BuildException if the task name is recognised but task\n     *                           creation fails.\n     */\n    public Task createTask(String taskType) throws BuildException {\n        Class c = (Class) taskClassDefinitions.get(taskType);\n\n        if (c == null) {\n            return null;\n        }\n\n        try {\n            Object o = c.newInstance();\n            Task task = null;\n            if (o instanceof Task) {\n               task = (Task) o;\n            } else {\n                TaskAdapter taskA = new TaskAdapter();\n                taskA.setProxy(o);\n                task = taskA;\n            }\n            task.setProject(this);\n            task.setTaskType(taskType);\n\n            task.setTaskName(taskType);\n\n            String msg = \"   +Task: \" + taskType;\n            log (msg, MSG_DEBUG);\n            addCreatedTask(taskType, task);\n            return task;\n        } catch (Throwable t) {\n            String msg = \"Could not create task of type: \"\n                 + taskType + \" due to \" + t;\n            throw new BuildException(msg, t);\n        }\n    }\n\n    /**\n     * Keeps a record of all tasks that have been created so that they\n     * can be invalidated if a new task definition overrides the current one.\n     *\n     * @param type The name of the type of task which has been created.\n     *             Must not be <code>null</code>.\n     *\n     * @param task The freshly created task instance.\n     *             Must not be <code>null</code>.\n     */\n    private void addCreatedTask(String type, Task task) {\n        synchronized (createdTasks) {\n            Vector v = (Vector) createdTasks.get(type);\n            if (v == null) {\n                v = new Vector();\n                createdTasks.put(type, v);\n            }\n            v.addElement(task);\n        }\n    }\n\n    /**\n     * Mark tasks as invalid which no longer are of the correct type\n     * for a given taskname.\n     *\n     * @param type The name of the type of task to invalidate.\n     *             Must not be <code>null</code>.\n     */\n    private void invalidateCreatedTasks(String type) {\n        synchronized (createdTasks) {\n            Vector v = (Vector) createdTasks.get(type);\n            if (v != null) {\n                Enumeration enum1 = v.elements();\n                while (enum1.hasMoreElements()) {\n                    Task t = (Task) enum1.nextElement();\n                    t.markInvalid();\n                }\n                v.removeAllElements();\n                createdTasks.remove(type);\n            }\n        }\n    }\n\n    /**\n     * Creates a new instance of a data type.\n     *\n     * @param typeName The name of the data type to create an instance of.\n     *                 Must not be <code>null</code>.\n     *\n     * @return an instance of the specified data type, or <code>null</code> if\n     *         the data type name is not recognised.\n     *\n     * @exception BuildException if the data type name is recognised but\n     *                           instance creation fails.\n     */\n    public Object createDataType(String typeName) throws BuildException {\n        Class c = (Class) dataClassDefinitions.get(typeName);\n\n        if (c == null) {\n            return null;\n        }\n\n        try {\n            java.lang.reflect.Constructor ctor = null;\n            boolean noArg = false;\n            try {\n                ctor = c.getConstructor(new Class[0]);\n                noArg = true;\n            } catch (NoSuchMethodException nse) {\n                ctor = c.getConstructor(new Class[] {Project.class});\n                noArg = false;\n            }\n\n            Object o = null;\n            if (noArg) {\n                 o = ctor.newInstance(new Object[0]);\n            } else {\n                 o = ctor.newInstance(new Object[] {this});\n            }\n            if (o instanceof ProjectComponent) {\n                ((ProjectComponent) o).setProject(this);\n            }\n            String msg = \"   +DataType: \" + typeName;\n            log (msg, MSG_DEBUG);\n            return o;\n        } catch (java.lang.reflect.InvocationTargetException ite) {\n            Throwable t = ite.getTargetException();\n            String msg = \"Could not create datatype of type: \"\n                 + typeName + \" due to \" + t;\n            throw new BuildException(msg, t);\n        } catch (Throwable t) {\n            String msg = \"Could not create datatype of type: \"\n                 + typeName + \" due to \" + t;\n            throw new BuildException(msg, t);\n        }\n    }\n\n    /**\n     * Execute the specified sequence of targets, and the targets\n     * they depend on.\n     *\n     * @param targetNames A vector of target name strings to execute.\n     *                    Must not be <code>null</code>.\n     *\n     * @exception BuildException if the build failed\n     */\n    public void executeTargets(Vector targetNames) throws BuildException {\n        Throwable error = null;\n\n        for (int i = 0; i < targetNames.size(); i++) {\n            executeTarget((String) targetNames.elementAt(i));\n        }\n    }\n\n    /**\n     * Demultiplexes output so that each task receives the appropriate\n     * messages. If the current thread is not currently executing a task,\n     * the message is logged directly.\n     *\n     * @param line Message to handle. Should not be <code>null</code>.\n     * @param isError Whether the text represents an error (<code>true</code>)\n     *        or information (<code>false</code>).\n     */\n    public void demuxOutput(String line, boolean isError) {\n        Task task = (Task) threadTasks.get(Thread.currentThread());\n        if (task == null) {\n            fireMessageLogged(this, line, isError ? MSG_ERR : MSG_INFO);\n        } else {\n            if (isError) {\n                task.handleErrorOutput(line);\n            } else {\n                task.handleOutput(line);\n            }\n        }\n    }\n\n    /**\n     * Demultiplexes flush operation so that each task receives the appropriate\n     * messages. If the current thread is not currently executing a task,\n     * the message is logged directly.\n     *\n     * @since Ant 1.5.2\n     *\n     * @param line Message to handle. Should not be <code>null</code>.\n     * @param isError Whether the text represents an error (<code>true</code>)\n     *        or information (<code>false</code>).\n     * @param terminated true if this line should be terminated with an \n     *        end-of-line marker\n     */\n    public void demuxFlush(String line, boolean isError) {\n        Task task = (Task) threadTasks.get(Thread.currentThread());\n        if (task == null) {\n            fireMessageLogged(this, line, isError ? MSG_ERR : MSG_INFO);\n        } else {\n            if (isError) {\n                task.handleErrorFlush(line);\n            } else {\n                task.handleFlush(line);\n            }\n        }\n    }\n\n    \n    \n    /**\n     * Executes the specified target and any targets it depends on.\n     *\n     * @param targetName The name of the target to execute.\n     *                   Must not be <code>null</code>.\n     *\n     * @exception BuildException if the build failed\n     */\n    public void executeTarget(String targetName) throws BuildException {\n\n\n        if (targetName == null) {\n            String msg = \"No target specified\";\n            throw new BuildException(msg);\n        }\n\n        Vector sortedTargets = topoSort(targetName, targets);\n\n        int curidx = 0;\n        Target curtarget;\n\n        do {\n            curtarget = (Target) sortedTargets.elementAt(curidx++);\n            curtarget.performTasks();\n        } while (!curtarget.getName().equals(targetName));\n    }\n\n    /**\n     * Returns the canonical form of a filename.\n     * <p>\n     * If the specified file name is relative it is resolved\n     * with respect to the given root directory.\n     *\n     * @param fileName The name of the file to resolve.\n     *                 Must not be <code>null</code>.\n     *\n     * @param rootDir  The directory to resolve relative file names with\n     *                 respect to. May be <code>null</code>, in which case\n     *                 the current directory is used.\n     *\n     * @return the resolved File.\n     *\n     * @deprecated\n     */\n    public File resolveFile(String fileName, File rootDir) {\n        return fileUtils.resolveFile(rootDir, fileName);\n    }\n\n    /**\n     * Returns the canonical form of a filename.\n     * <p>\n     * If the specified file name is relative it is resolved\n     * with respect to the project's base directory.\n     *\n     * @param fileName The name of the file to resolve.\n     *                 Must not be <code>null</code>.\n     *\n     * @return the resolved File.\n     *\n     */\n    public File resolveFile(String fileName) {\n        return fileUtils.resolveFile(baseDir, fileName);\n    }\n\n    /**\n     * Translates a path into its native (platform specific) format.\n     * <p>\n     * This method uses PathTokenizer to separate the input path\n     * into its components. This handles DOS style paths in a relatively\n     * sensible way. The file separators are then converted to their platform\n     * specific versions.\n     *\n     * @param toProcess The path to be translated.\n     *                  May be <code>null</code>.\n     *\n     * @return the native version of the specified path or\n     *         an empty string if the path is <code>null</code> or empty.\n     *\n     * @see PathTokenizer\n     */\n    public static String translatePath(String toProcess) {\n        if (toProcess == null || toProcess.length() == 0) {\n            return \"\";\n        }\n\n        StringBuffer path = new StringBuffer(toProcess.length() + 50);\n        PathTokenizer tokenizer = new PathTokenizer(toProcess);\n        while (tokenizer.hasMoreTokens()) {\n            String pathComponent = tokenizer.nextToken();\n            pathComponent = pathComponent.replace('/', File.separatorChar);\n            pathComponent = pathComponent.replace('\\\\', File.separatorChar);\n            if (path.length() != 0) {\n                path.append(File.pathSeparatorChar);\n            }\n            path.append(pathComponent);\n        }\n\n        return path.toString();\n    }\n\n    /**\n     * Convenience method to copy a file from a source to a destination.\n     * No filtering is performed.\n     *\n     * @param sourceFile Name of file to copy from.\n     *                   Must not be <code>null</code>.\n     * @param destFile Name of file to copy to.\n     *                 Must not be <code>null</code>.\n     *\n     * @exception IOException if the copying fails\n     *\n     * @deprecated\n     */\n    public void copyFile(String sourceFile, String destFile)\n          throws IOException {\n        fileUtils.copyFile(sourceFile, destFile);\n    }\n\n    /**\n     * Convenience method to copy a file from a source to a destination\n     * specifying if token filtering should be used.\n     *\n     * @param sourceFile Name of file to copy from.\n     *                   Must not be <code>null</code>.\n     * @param destFile Name of file to copy to.\n     *                 Must not be <code>null</code>.\n     * @param filtering Whether or not token filtering should be used during\n     *                  the copy.\n     *\n     * @exception IOException if the copying fails\n     *\n     * @deprecated\n     */\n    public void copyFile(String sourceFile, String destFile, boolean filtering)\n        throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null);\n    }\n\n    /**\n     * Convenience method to copy a file from a source to a\n     * destination specifying if token filtering should be used and if\n     * source files may overwrite newer destination files.\n     *\n     * @param sourceFile Name of file to copy from.\n     *                   Must not be <code>null</code>.\n     * @param destFile Name of file to copy to.\n     *                 Must not be <code>null</code>.\n     * @param filtering Whether or not token filtering should be used during\n     *                  the copy.\n     * @param overwrite Whether or not the destination file should be\n     *                  overwritten if it already exists.\n     *\n     * @exception IOException if the copying fails\n     *\n     * @deprecated\n     */\n    public void copyFile(String sourceFile, String destFile, boolean filtering,\n                         boolean overwrite) throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null, overwrite);\n    }\n\n    /**\n     * Convenience method to copy a file from a source to a\n     * destination specifying if token filtering should be used, if\n     * source files may overwrite newer destination files, and if the\n     * last modified time of the resulting file should be set to\n     * that of the source file.\n     *\n     * @param sourceFile Name of file to copy from.\n     *                   Must not be <code>null</code>.\n     * @param destFile Name of file to copy to.\n     *                 Must not be <code>null</code>.\n     * @param filtering Whether or not token filtering should be used during\n     *                  the copy.\n     * @param overwrite Whether or not the destination file should be\n     *                  overwritten if it already exists.\n     * @param preserveLastModified Whether or not the last modified time of\n     *                             the resulting file should be set to that\n     *                             of the source file.\n     *\n     * @exception IOException if the copying fails\n     *\n     * @deprecated\n     */\n    public void copyFile(String sourceFile, String destFile, boolean filtering,\n                         boolean overwrite, boolean preserveLastModified)\n        throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null, overwrite, preserveLastModified);\n    }\n\n    /**\n     * Convenience method to copy a file from a source to a destination.\n     * No filtering is performed.\n     *\n     * @param sourceFile File to copy from.\n     *                   Must not be <code>null</code>.\n     * @param destFile File to copy to.\n     *                 Must not be <code>null</code>.\n     *\n     * @exception IOException if the copying fails\n     *\n     * @deprecated\n     */\n    public void copyFile(File sourceFile, File destFile) throws IOException {\n        fileUtils.copyFile(sourceFile, destFile);\n    }\n\n    /**\n     * Convenience method to copy a file from a source to a destination\n     * specifying if token filtering should be used.\n     *\n     * @param sourceFile File to copy from.\n     *                   Must not be <code>null</code>.\n     * @param destFile File to copy to.\n     *                 Must not be <code>null</code>.\n     * @param filtering Whether or not token filtering should be used during\n     *                  the copy.\n     *\n     * @exception IOException if the copying fails\n     *\n     * @deprecated\n     */\n    public void copyFile(File sourceFile, File destFile, boolean filtering)\n        throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null);\n    }\n\n    /**\n     * Convenience method to copy a file from a source to a\n     * destination specifying if token filtering should be used and if\n     * source files may overwrite newer destination files.\n     *\n     * @param sourceFile File to copy from.\n     *                   Must not be <code>null</code>.\n     * @param destFile File to copy to.\n     *                 Must not be <code>null</code>.\n     * @param filtering Whether or not token filtering should be used during\n     *                  the copy.\n     * @param overwrite Whether or not the destination file should be\n     *                  overwritten if it already exists.\n     *\n     * @exception IOException if the file cannot be copied.\n     *\n     * @deprecated\n     */\n    public void copyFile(File sourceFile, File destFile, boolean filtering,\n                         boolean overwrite) throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null, overwrite);\n    }\n\n    /**\n     * Convenience method to copy a file from a source to a\n     * destination specifying if token filtering should be used, if\n     * source files may overwrite newer destination files, and if the\n     * last modified time of the resulting file should be set to\n     * that of the source file.\n     *\n     * @param sourceFile File to copy from.\n     *                   Must not be <code>null</code>.\n     * @param destFile File to copy to.\n     *                 Must not be <code>null</code>.\n     * @param filtering Whether or not token filtering should be used during\n     *                  the copy.\n     * @param overwrite Whether or not the destination file should be\n     *                  overwritten if it already exists.\n     * @param preserveLastModified Whether or not the last modified time of\n     *                             the resulting file should be set to that\n     *                             of the source file.\n     *\n     * @exception IOException if the file cannot be copied.\n     *\n     * @deprecated\n     */\n    public void copyFile(File sourceFile, File destFile, boolean filtering,\n                         boolean overwrite, boolean preserveLastModified)\n        throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null, overwrite, preserveLastModified);\n    }\n\n    /**\n     * Calls File.setLastModified(long time) on Java above 1.1, and logs\n     * a warning on Java 1.1.\n     *\n     * @param file The file to set the last modified time on.\n     *             Must not be <code>null</code>.\n     *\n     * @param time the required modification time.\n     *\n     * @deprecated\n     *\n     * @exception BuildException if the last modified time cannot be set\n     *                           despite running on a platform with a version\n     *                           above 1.1.\n     */\n    public void setFileLastModified(File file, long time)\n         throws BuildException {\n        if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n            log(\"Cannot change the modification time of \" + file\n                + \" in JDK 1.1\", Project.MSG_WARN);\n            return;\n        }\n        fileUtils.setFileLastModified(file, time);\n        log(\"Setting modification time for \" + file, MSG_VERBOSE);\n    }\n\n    /**\n     * Returns the boolean equivalent of a string, which is considered\n     * <code>true</code> if either <code>\"on\"</code>, <code>\"true\"</code>,\n     * or <code>\"yes\"</code> is found, ignoring case.\n     *\n     * @param s The string to convert to a boolean value.\n     *          Must not be <code>null</code>.\n     *\n     * @return <code>true</code> if the given string is <code>\"on\"</code>,\n     *         <code>\"true\"</code> or <code>\"yes\"</code>, or\n     *         <code>false</code> otherwise.\n     */\n    public static boolean toBoolean(String s) {\n        return (s.equalsIgnoreCase(\"on\") ||\n                s.equalsIgnoreCase(\"true\") ||\n                s.equalsIgnoreCase(\"yes\"));\n    }\n\n    /**\n     * Topologically sorts a set of targets.\n     *\n     * @param root The name of the root target. The sort is created in such\n     *             a way that the sequence of Targets up to the root\n     *             target is the minimum possible such sequence.\n     *             Must not be <code>null</code>.\n     * @param targets A map of names to targets (String to Target).\n     *                Must not be <code>null</code>.\n     * @return a vector of strings with the names of the targets in\n     *         sorted order.\n     * @exception BuildException if there is a cyclic dependency among the\n     *                           targets, or if a named target does not exist.\n     */\n    public final Vector topoSort(String root, Hashtable targets)\n        throws BuildException {\n        Vector ret = new Vector();\n        Hashtable state = new Hashtable();\n        Stack visiting = new Stack();\n\n\n        tsort(root, targets, state, visiting, ret);\n        log(\"Build sequence for target `\" + root + \"' is \" + ret, MSG_VERBOSE);\n        for (Enumeration en = targets.keys(); en.hasMoreElements();) {\n            String curTarget = (String) en.nextElement();\n            String st = (String) state.get(curTarget);\n            if (st == null) {\n                tsort(curTarget, targets, state, visiting, ret);\n            } else if (st == VISITING) {\n                throw new RuntimeException(\"Unexpected node in visiting state: \"\n                    + curTarget);\n            }\n        }\n        log(\"Complete build sequence is \" + ret, MSG_VERBOSE);\n        return ret;\n    }\n\n    /**\n     * Performs a single step in a recursive depth-first-search traversal of\n     * the target dependency tree.\n     * <p>\n     * The current target is first set to the \"visiting\" state, and pushed\n     * onto the \"visiting\" stack.\n     * <p>\n     * An exception is then thrown if any child of the current node is in the\n     * visiting state, as that implies a circular dependency. The exception\n     * contains details of the cycle, using elements of the \"visiting\" stack.\n     * <p>\n     * If any child has not already been \"visited\", this method is called\n     * recursively on it.\n     * <p>\n     * The current target is then added to the ordered list of targets. Note\n     * that this is performed after the children have been visited in order\n     * to get the correct order. The current target is set to the \"visited\"\n     * state.\n     * <p>\n     * By the time this method returns, the ordered list contains the sequence\n     * of targets up to and including the current target.\n     *\n     * @param root The current target to inspect.\n     *             Must not be <code>null</code>.\n     * @param targets A mapping from names to targets (String to Target).\n     *                Must not be <code>null</code>.\n     * @param state   A mapping from target names to states\n     *                (String to String).\n     *                The states in question are \"VISITING\" and \"VISITED\".\n     *                Must not be <code>null</code>.\n     * @param visiting A stack of targets which are currently being visited.\n     *                 Must not be <code>null</code>.\n     * @param ret     The list to add target names to. This will end up\n     *                containing the complete list of depenencies in\n     *                dependency order.\n     *                Must not be <code>null</code>.\n     *\n     * @exception BuildException if a non-existent target is specified or if\n     *                           a circular dependency is detected.\n     */\n    private final void tsort(String root, Hashtable targets,\n                             Hashtable state, Stack visiting,\n                             Vector ret)\n        throws BuildException {\n        state.put(root, VISITING);\n        visiting.push(root);\n\n        Target target = (Target) targets.get(root);\n\n        if (target == null) {\n            StringBuffer sb = new StringBuffer(\"Target `\");\n            sb.append(root);\n            sb.append(\"' does not exist in this project. \");\n            visiting.pop();\n            if (!visiting.empty()) {\n                String parent = (String) visiting.peek();\n                sb.append(\"It is used from target `\");\n                sb.append(parent);\n                sb.append(\"'.\");\n            }\n\n            throw new BuildException(new String(sb));\n        }\n\n        for (Enumeration en = target.getDependencies(); en.hasMoreElements();) {\n            String cur = (String) en.nextElement();\n            String m = (String) state.get(cur);\n            if (m == null) {\n                tsort(cur, targets, state, visiting, ret);\n            } else if (m == VISITING) {\n                throw makeCircularException(cur, visiting);\n            }\n        }\n\n        String p = (String) visiting.pop();\n        if (root != p) {\n            throw new RuntimeException(\"Unexpected internal error: expected to \"\n                + \"pop \" + root + \" but got \" + p);\n        }\n        state.put(root, VISITED);\n        ret.addElement(target);\n    }\n\n    /**\n     * Builds an appropriate exception detailing a specified circular\n     * dependency.\n     *\n     * @param end The dependency to stop at. Must not be <code>null</code>.\n     * @param stk A stack of dependencies. Must not be <code>null</code>.\n     *\n     * @return a BuildException detailing the specified circular dependency.\n     */\n    private static BuildException makeCircularException(String end, Stack stk) {\n        StringBuffer sb = new StringBuffer(\"Circular dependency: \");\n        sb.append(end);\n        String c;\n        do {\n            c = (String) stk.pop();\n            sb.append(\" <- \");\n            sb.append(c);\n        } while (!c.equals(end));\n        return new BuildException(new String(sb));\n    }\n\n    /**\n     * Adds a reference to the project.\n     *\n     * @param name The name of the reference. Must not be <code>null</code>.\n     * @param value The value of the reference. Must not be <code>null</code>.\n     */\n    public void addReference(String name, Object value) {\n        synchronized (references) {\n            Object old = references.get(name);\n            if (old == value) {\n                return;\n            }\n            if (old != null && !(old instanceof UnknownElement)) {\n                log(\"Overriding previous definition of reference to \" + name,\n                    MSG_WARN);\n            }\n            String valueAsString = \"\";\n            try {\n                valueAsString = value.toString();\n            } catch (Throwable t) {\n                log(\"Caught exception (\" + t.getClass().getName() +\")\"\n                    + \" while expanding \" + name + \": \" + t.getMessage(),\n                    MSG_WARN);\n            }\n            log(\"Adding reference: \" + name + \" -> \" + valueAsString,\n                MSG_DEBUG);\n            references.put(name, value);\n        }\n    }\n\n    /**\n     * Returns a map of the references in the project (String to Object).\n     * The returned hashtable is \"live\" and so must not be modified.\n     *\n     * @return a map of the references in the project (String to Object).\n     */\n    public Hashtable getReferences() {\n        return references;\n    }\n\n    /**\n     * Looks up a reference by its key (ID).\n     *\n     * @param key The key for the desired reference.\n     *            Must not be <code>null</code>.\n     *\n     * @return the reference with the specified ID, or <code>null</code> if\n     *         there is no such reference in the project.\n     */\n    public Object getReference(String key) {\n        return references.get(key);\n    }\n\n    /**\n     * Returns a description of the type of the given element, with\n     * special handling for instances of tasks and data types.\n     * <p>\n     * This is useful for logging purposes.\n     *\n     * @param element The element to describe.\n     *                Must not be <code>null</code>.\n     *\n     * @return a description of the element type\n     *\n     * @since 1.95, Ant 1.5\n     */\n    public String getElementName(Object element) {\n        Hashtable elements = taskClassDefinitions;\n        Class elementClass = element.getClass();\n        String typeName = \"task\";\n        if (!elements.contains(elementClass)) {\n            elements = dataClassDefinitions;\n            typeName = \"data type\";\n            if (!elements.contains(elementClass)) {\n                elements = null;\n            }\n        }\n\n        if (elements != null) {\n            Enumeration e = elements.keys();\n            while (e.hasMoreElements()) {\n                String name = (String) e.nextElement();\n                Class clazz = (Class) elements.get(name);\n                if (elementClass.equals(clazz)) {\n                    return \"The <\" + name + \"> \" + typeName;\n                }\n            }\n        }\n\n        return \"Class \" + elementClass.getName();\n    }\n\n    /**\n     * Sends a \"build started\" event to the build listeners for this project.\n     */\n    public void fireBuildStarted() {\n        BuildEvent event = new BuildEvent(this);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.buildStarted(event);\n        }\n    }\n\n    /**\n     * Sends a \"build finished\" event to the build listeners for this project.\n     * @param exception an exception indicating a reason for a build\n     *                  failure. May be <code>null</code>, indicating\n     *                  a successful build.\n     */\n    public void fireBuildFinished(Throwable exception) {\n        BuildEvent event = new BuildEvent(this);\n        event.setException(exception);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.buildFinished(event);\n        }\n    }\n\n\n    /**\n     * Sends a \"target started\" event to the build listeners for this project.\n     *\n     * @param target The target which is starting to build.\n     *               Must not be <code>null</code>.\n     */\n    protected void fireTargetStarted(Target target) {\n        BuildEvent event = new BuildEvent(target);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.targetStarted(event);\n        }\n    }\n\n    /**\n     * Sends a \"target finished\" event to the build listeners for this\n     * project.\n     *\n     * @param target    The target which has finished building.\n     *                  Must not be <code>null</code>.\n     * @param exception an exception indicating a reason for a build\n     *                  failure. May be <code>null</code>, indicating\n     *                  a successful build.\n     */\n    protected void fireTargetFinished(Target target, Throwable exception) {\n        BuildEvent event = new BuildEvent(target);\n        event.setException(exception);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.targetFinished(event);\n        }\n    }\n\n    /**\n     * Sends a \"task started\" event to the build listeners for this project.\n     *\n     * @param task The target which is starting to execute.\n     *               Must not be <code>null</code>.\n     */\n    protected void fireTaskStarted(Task task) {\n        registerThreadTask(Thread.currentThread(), task);\n        BuildEvent event = new BuildEvent(task);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.taskStarted(event);\n        }\n    }\n\n    /**\n     * Sends a \"task finished\" event to the build listeners for this\n     * project.\n     *\n     * @param task      The task which has finished executing.\n     *                  Must not be <code>null</code>.\n     * @param exception an exception indicating a reason for a build\n     *                  failure. May be <code>null</code>, indicating\n     *                  a successful build.\n     */\n    protected void fireTaskFinished(Task task, Throwable exception) {\n        registerThreadTask(Thread.currentThread(), null);\n        System.out.flush();\n        System.err.flush();\n        BuildEvent event = new BuildEvent(task);\n        event.setException(exception);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.taskFinished(event);\n        }\n    }\n\n    /**\n     * Sends a \"message logged\" event to the build listeners for this project.\n     *\n     * @param event    The event to send. This should be built up with the\n     *                 appropriate task/target/project by the caller, so that\n     *                 this method can set the message and priority, then send\n     *                 the event. Must not be <code>null</code>.\n     * @param message  The message to send. Should not be <code>null</code>.\n     * @param priority The priority of the message.\n     */\n    private void fireMessageLoggedEvent(BuildEvent event, String message,\n                                        int priority) {\n        event.setMessage(message, priority);\n        Vector listeners = getBuildListeners();\n        synchronized(this) {\n            if (loggingMessage) {\n                throw new BuildException(\"Listener attempted to access \" \n                    + (priority == MSG_ERR ? \"System.err\" : \"System.out\") \n                    + \" - infinite loop terminated\");\n            }\n            loggingMessage = true;                \n            for (int i = 0; i < listeners.size(); i++) {\n                BuildListener listener = (BuildListener) listeners.elementAt(i);\n                listener.messageLogged(event);\n            }\n            loggingMessage = false;\n        }\n    }\n\n    /**\n     * Sends a \"message logged\" project level event to the build listeners for\n     * this project.\n     *\n     * @param project  The project generating the event.\n     *                 Should not be <code>null</code>.\n     * @param message  The message to send. Should not be <code>null</code>.\n     * @param priority The priority of the message.\n     */\n    protected void fireMessageLogged(Project project, String message,\n                                     int priority) {\n        BuildEvent event = new BuildEvent(project);\n        fireMessageLoggedEvent(event, message, priority);\n    }\n\n    /**\n     * Sends a \"message logged\" target level event to the build listeners for\n     * this project.\n     *\n     * @param target   The target generating the event.\n     *                 Must not be <code>null</code>.\n     * @param message  The message to send. Should not be <code>null</code>.\n     * @param priority The priority of the message.\n     */\n    protected void fireMessageLogged(Target target, String message,\n                                     int priority) {\n        BuildEvent event = new BuildEvent(target);\n        fireMessageLoggedEvent(event, message, priority);\n    }\n\n    /**\n     * Sends a \"message logged\" task level event to the build listeners for\n     * this project.\n     *\n     * @param task     The task generating the event.\n     *                 Must not be <code>null</code>.\n     * @param message  The message to send. Should not be <code>null</code>.\n     * @param priority The priority of the message.\n     */\n    protected void fireMessageLogged(Task task, String message, int priority) {\n        BuildEvent event = new BuildEvent(task);\n        fireMessageLoggedEvent(event, message, priority);\n    }\n\n    /**\n     * Register a task as the current task for a thread.\n     * If the task is null, the thread's entry is removed.\n     *\n     * @param thread the thread on which the task is registered.\n     * @param task the task to be registered.\n     * @since Ant 1.5\n     */\n    public synchronized void registerThreadTask(Thread thread, Task task) {\n        if (task != null) {\n            threadTasks.put(thread, task);\n        } else {\n            threadTasks.remove(thread);\n        }\n    }\n\n    /**\n     * Get the current task assopciated with a thread, if any\n     *\n     * @param thread the thread for which the task is required.\n     * @return the task which is currently registered for the given thread or\n     *         null if no task is registered.\n     */\n    public Task getThreadTask(Thread thread) {\n        return (Task) threadTasks.get(thread);", "functions": [{"function_name": "setInputHandler", "code": "    public void setInputHandler(InputHandler handler) {\n        inputHandler = handler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInputHandler", "code": "    public InputHandler getInputHandler() {\n        return inputHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "init", "code": "    public void init() throws BuildException {\n        setJavaVersionProperty();\n\n        String defs = \"/org/apache/tools/ant/taskdefs/defaults.properties\";\n\n        try {\n            Properties props = new Properties();\n            InputStream in = this.getClass().getResourceAsStream(defs);\n            if (in == null) {\n                throw new BuildException(\"Can't load default task list\");\n            }\n            props.load(in);\n            in.close();\n\n            Enumeration enum1 = props.propertyNames();\n            while (enum1.hasMoreElements()) {\n                String key = (String) enum1.nextElement();\n                String value = props.getProperty(key);\n                try {\n                    Class taskClass = Class.forName(value);\n                    addTaskDefinition(key, taskClass);\n                } catch (NoClassDefFoundError ncdfe) {\n                    log(\"Could not load a dependent class (\"\n                        + ncdfe.getMessage() + \") for task \" + key, MSG_DEBUG);\n                } catch (ClassNotFoundException cnfe) {\n                    log(\"Could not load class (\" + value\n                        + \") for task \" + key, MSG_DEBUG);\n                }\n            }\n        } catch (IOException ioe) {\n            throw new BuildException(\"Can't load default task list\");\n        }\n\n        String dataDefs = \"/org/apache/tools/ant/types/defaults.properties\";\n\n        try {\n            Properties props = new Properties();\n            InputStream in = this.getClass().getResourceAsStream(dataDefs);\n            if (in == null) {\n                throw new BuildException(\"Can't load default datatype list\");\n            }\n            props.load(in);\n            in.close();\n\n            Enumeration enum1 = props.propertyNames();\n            while (enum1.hasMoreElements()) {\n                String key = (String) enum1.nextElement();\n                String value = props.getProperty(key);\n                try {\n                    Class dataClass = Class.forName(value);\n                    addDataTypeDefinition(key, dataClass);\n                } catch (NoClassDefFoundError ncdfe) {\n                } catch (ClassNotFoundException cnfe) {\n                }\n            }\n        } catch (IOException ioe) {\n            throw new BuildException(\"Can't load default datatype list\");\n        }\n\n        setSystemProperties();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "CALL", "CATCH", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CATCH", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CATCH", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [0, 18], [6, 19], [7, 20], [1, 21], [1, 22], [9, 23], [2, 24], [12, 25], [13, 26], [3, 27], [3, 28], [15, 29], [4, 30], [19, 31], [7, 32], [7, 33], [7, 34], [8, 35], [9, 36], [23, 37], [11, 38], [25, 39], [13, 40], [13, 41], [13, 42], [14, 43], [15, 44], [29, 45], [17, 46], [31, 47], [32, 48], [32, 49], [32, 50], [36, 51], [10, 52], [10, 53], [39, 54], [40, 55], [40, 56], [40, 57], [44, 58], [16, 59], [16, 60], [32, 61], [33, 62], [51, 63], [40, 64], [41, 65], [58, 66], [50, 67], [34, 68], [55, 69], [56, 70], [57, 71], [42, 72], [69, 73], [70, 74], [73, 75], [74, 76], [75, 77], [75, 78], [76, 79], [76, 80], [78, 81], [80, 82], [80, 83], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 3], [18, 0], [19, 6], [20, 7], [21, 1], [22, 1], [23, 9], [24, 2], [25, 12], [26, 13], [27, 3], [28, 3], [29, 15], [30, 4], [31, 19], [32, 7], [33, 7], [34, 7], [35, 8], [36, 9], [37, 23], [38, 11], [39, 25], [40, 13], [41, 13], [42, 13], [43, 14], [44, 15], [45, 29], [46, 17], [47, 31], [48, 32], [49, 32], [50, 32], [51, 36], [52, 10], [53, 10], [54, 39], [55, 40], [56, 40], [57, 40], [58, 44], [59, 16], [60, 16], [61, 32], [62, 33], [63, 51], [64, 40], [65, 41], [66, 58], [67, 50], [68, 34], [69, 55], [70, 56], [71, 57], [72, 42], [73, 69], [74, 70], [75, 73], [76, 74], [77, 75], [78, 75], [79, 76], [80, 76], [81, 78], [82, 80], [83, 80], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83]]}, {"function_name": "setCoreLoader", "code": "    public void setCoreLoader(ClassLoader coreLoader) {\n        this.coreLoader = coreLoader;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCoreLoader", "code": "    public ClassLoader getCoreLoader() {\n        return coreLoader;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addBuildListener", "code": "    public void addBuildListener(BuildListener listener) {\n        listeners.addElement(listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeBuildListener", "code": "    public void removeBuildListener(BuildListener listener) {\n        listeners.removeElement(listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBuildListeners", "code": "    public Vector getBuildListeners() {\n        return (Vector) listeners.clone();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "log", "code": "    public void log(String message) {\n        log(message, MSG_INFO);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "log", "code": "    public void log(String message, int msgLevel) {\n        fireMessageLogged(this, message, msgLevel);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "log", "code": "    public void log(Task task, String message, int msgLevel) {\n        fireMessageLogged(task, message, msgLevel);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "log", "code": "    public void log(Target target, String message, int msgLevel) {\n        fireMessageLogged(target, message, msgLevel);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getGlobalFilterSet", "code": "    public FilterSet getGlobalFilterSet() {\n        return globalFilterSet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProperty", "code": "    public synchronized void setProperty(String name, String value) {\n        if (null != userProperties.get(name)) {\n            log(\"Override ignored for user property \" + name, MSG_VERBOSE);\n            return;\n        }\n\n        if (null != properties.get(name)) {\n            log(\"Overriding previous definition of property \" + name,\n                MSG_VERBOSE);\n        }\n\n        log(\"Setting project property: \" + name + \" -> \" +\n             value, MSG_DEBUG);\n        properties.put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [6, 9], [7, 10], [7, 11], [2, 12], [8, 13], [8, 14], [9, 15], [1, 16], [2, 17], [15, 18], [15, 19], [16, 20], [17, 21], [19, 22], [20, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 6], [10, 7], [11, 7], [12, 2], [13, 8], [14, 8], [15, 9], [16, 1], [17, 2], [18, 15], [19, 15], [20, 16], [21, 17], [22, 19], [23, 20], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "setNewProperty", "code": "    public synchronized void setNewProperty(String name, String value) {\n        if (null != properties.get(name)) {\n            log(\"Override ignored for property \" + name, MSG_VERBOSE);\n            return;\n        }\n        log(\"Setting project property: \" + name + \" -> \" +\n            value, MSG_DEBUG);\n        properties.put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [5, 7], [1, 8], [6, 9], [6, 10], [7, 11], [1, 12], [11, 13], [11, 14], [12, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 5], [8, 1], [9, 6], [10, 6], [11, 7], [12, 1], [13, 11], [14, 11], [15, 12], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setUserProperty", "code": "    public synchronized void setUserProperty(String name, String value) {\n        log(\"Setting ro project property: \" + name + \" -> \" +\n            value, MSG_DEBUG);\n        userProperties.put(name, value);\n        properties.put(name, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setInheritedProperty", "code": "    public synchronized void setInheritedProperty(String name, String value) {\n        inheritedProperties.put(name, value);\n        setUserProperty(name, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setPropertyInternal", "code": "    private void setPropertyInternal(String name, String value) {\n        if (null != userProperties.get(name)) {\n            return;\n        }\n        properties.put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getProperty", "code": "    public String getProperty(String name) {\n        if (name == null) {\n          return null;\n        }\n        String property = (String) properties.get(name);\n        return property;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [5, 7], [2, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 5], [8, 2], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "replaceProperties", "code": "    public String replaceProperties(String value)\n        throws BuildException {\n        return ProjectHelper.replaceProperties(this, value, properties);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getUserProperty", "code": "     public String getUserProperty(String name) {\n        if (name == null) {\n            return null;\n        }\n        String property = (String) userProperties.get(name);\n        return property;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [5, 7], [2, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 5], [8, 2], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getProperties", "code": "    public Hashtable getProperties() {\n        Hashtable propertiesCopy = new Hashtable();\n\n        Enumeration e = properties.keys();\n        while (e.hasMoreElements()) {\n            Object name = e.nextElement();\n            Object value = properties.get(name);\n            propertiesCopy.put(name, value);\n        }\n\n        return propertiesCopy;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [3, 8], [4, 9], [2, 10], [6, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 3], [9, 4], [10, 2], [11, 6], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getUserProperties", "code": "    public Hashtable getUserProperties() {\n        Hashtable propertiesCopy = new Hashtable();\n\n        Enumeration e = userProperties.keys();\n        while (e.hasMoreElements()) {\n            Object name = e.nextElement();\n            Object value = properties.get(name);\n            propertiesCopy.put(name, value);\n        }\n\n        return propertiesCopy;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [3, 8], [4, 9], [2, 10], [6, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 3], [9, 4], [10, 2], [11, 6], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "copyUserProperties", "code": "    public void copyUserProperties(Project other) {\n        Enumeration e = userProperties.keys();\n        while (e.hasMoreElements()) {\n            Object arg = e.nextElement();\n            if (inheritedProperties.containsKey(arg)) {\n                continue;\n            }\n            Object value = userProperties.get(arg);\n            other.setUserProperty(arg.toString(), value.toString());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [1, 9], [6, 10], [9, 11], [9, 12], [5, 13], [6, 14], [7, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 1], [10, 6], [11, 9], [12, 9], [13, 5], [14, 6], [15, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "copyInheritedProperties", "code": "    public void copyInheritedProperties(Project other) {\n        Enumeration e = inheritedProperties.keys();\n        while (e.hasMoreElements()) {\n            String arg = e.nextElement().toString();\n            if (other.getUserProperty(arg) != null) {\n                continue;\n            }\n            Object value = inheritedProperties.get(arg);\n            other.setInheritedProperty(arg, value.toString());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [1, 9], [6, 10], [9, 11], [5, 12], [6, 13], [10, 14], [10, 15], [7, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 1], [10, 6], [11, 9], [12, 5], [13, 6], [14, 10], [15, 10], [16, 7], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setDefaultTarget", "code": "    public void setDefaultTarget(String defaultTarget) {\n        this.defaultTarget = defaultTarget;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultTarget", "code": "    public String getDefaultTarget() {\n        return defaultTarget;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefault", "code": "    public void setDefault(String defaultTarget) {\n        this.defaultTarget = defaultTarget;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        setUserProperty(\"ant.project.name\",  name);\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDescription", "code": "    public void setDescription(String description) {\n        this.description = description;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDescription", "code": "    public String getDescription() {\n        return description;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addFilter", "code": "    public void addFilter(String token, String value) {\n        if (token == null) {\n            return;\n        }\n\n        globalFilterSet.addFilter(new FilterSet.Filter(token, value));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getFilters", "code": "    public Hashtable getFilters() {\n        return globalFilterSet.getFilterHash();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBasedir", "code": "    public void setBasedir(String baseD) throws BuildException {\n        setBaseDir(new File(baseD));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBaseDir", "code": "    public void setBaseDir(File baseDir) throws BuildException {\n        baseDir = fileUtils.normalize(baseDir.getAbsolutePath());\n        if (!baseDir.exists()) {\n            throw new BuildException(\"Basedir \" + baseDir.getAbsolutePath()\n                + \" does not exist\");\n        }\n        if (!baseDir.isDirectory()) {\n            throw new BuildException(\"Basedir \" + baseDir.getAbsolutePath()\n                + \" is not a directory\");\n        }\n        this.baseDir = baseDir;\n        setPropertyInternal(\"basedir\", this.baseDir.getPath());\n        String msg = \"Project base dir set to: \" + this.baseDir;\n        log(msg, MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [0, 10], [1, 11], [6, 12], [2, 13], [3, 14], [10, 15], [11, 16], [6, 17], [13, 18], [14, 19], [15, 20], [18, 21], [19, 22], [21, 23], [21, 24], [22, 25], [22, 26], [24, 27], [24, 28], [26, 29], [26, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 0], [11, 1], [12, 6], [13, 2], [14, 3], [15, 10], [16, 11], [17, 6], [18, 13], [19, 14], [20, 15], [21, 18], [22, 19], [23, 21], [24, 21], [25, 22], [26, 22], [27, 24], [28, 24], [29, 26], [30, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getBaseDir", "code": "    public File getBaseDir() {\n        if (baseDir == null) {\n            try {\n                setBasedir(\".\");\n            } catch (BuildException ex) {\n                ex.printStackTrace();\n            }\n        }\n        return baseDir;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getJavaVersion", "code": "    public static String getJavaVersion() {\n        return JavaEnvUtils.getJavaVersion();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setJavaVersionProperty", "code": "    public void setJavaVersionProperty() throws BuildException {\n        String javaVersion = JavaEnvUtils.getJavaVersion();\n        setPropertyInternal(\"ant.java.version\", javaVersion);\n\n        if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_0)) {\n            throw new BuildException(\"Ant cannot work on Java 1.0\");\n        }\n\n        log(\"Detected Java version: \" + javaVersion + \" in: \"\n            + System.getProperty(\"java.home\"), MSG_VERBOSE);\n\n        log(\"Detected OS: \" + System.getProperty(\"os.name\"), MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [3, 7], [4, 8], [1, 9], [6, 10], [2, 11], [7, 12], [7, 13], [8, 14], [8, 15], [9, 16], [12, 17], [14, 18], [15, 19], [15, 20], [16, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 3], [8, 4], [9, 1], [10, 6], [11, 2], [12, 7], [13, 7], [14, 8], [15, 8], [16, 9], [17, 12], [18, 14], [19, 15], [20, 15], [21, 16], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "setSystemProperties", "code": "    public void setSystemProperties() {\n        Properties systemP = System.getProperties();\n        Enumeration e = systemP.keys();\n        while (e.hasMoreElements()) {\n            Object name = e.nextElement();\n            String value = systemP.get(name).toString();\n            this.setPropertyInternal(name.toString(), value);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [1, 9], [5, 10], [6, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 1], [10, 5], [11, 6], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "addTaskDefinition", "code": "    public void addTaskDefinition(String taskName, Class taskClass)\n         throws BuildException {\n        Class old = (Class) taskClassDefinitions.get(taskName);\n        if (null != old) {\n            if (old.equals(taskClass)) {\n                log(\"Ignoring override for task \" + taskName\n                    + \", it is already defined by the same class.\",\n                    MSG_VERBOSE);\n                return;\n            } else {\n                int logLevel = MSG_WARN;\n                if (old.getName().equals(taskClass.getName())) {\n                    ClassLoader oldLoader = old.getClassLoader();\n                    ClassLoader newLoader = taskClass.getClassLoader();\n                    if (oldLoader != null \n                        && newLoader != null\n                        && oldLoader instanceof AntClassLoader\n                        && newLoader instanceof AntClassLoader\n                        && ((AntClassLoader) oldLoader).getClasspath()\n                        .equals(((AntClassLoader) newLoader).getClasspath())\n                        ) {\n                        logLevel = MSG_VERBOSE;\n                    }\n                }\n                \n                log(\"Trying to override old definition of task \" + taskName,\n                    logLevel);\n                invalidateCreatedTasks(taskName);\n            }\n        }\n\n        String msg = \" +User task: \" + taskName + \"     \" + taskClass.getName();\n        log(msg, MSG_DEBUG);\n        checkTaskClass(taskClass);\n        taskClassDefinitions.put(taskName, taskClass);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 10], [2, 11], [9, 12], [10, 13], [10, 14], [11, 15], [3, 16], [14, 17], [14, 18], [11, 19], [11, 20], [11, 21], [18, 22], [11, 23], [11, 24], [19, 25], [11, 26], [24, 27], [19, 28], [19, 29], [19, 30], [25, 31], [26, 32], [27, 33], [28, 34], [31, 35], [32, 36], [32, 37], [34, 38], [29, 39], [30, 40], [37, 41], [28, 42], [38, 43], [38, 44], [44, 45], [44, 46], [46, 47], [46, 48], [47, 49], [48, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 1], [11, 2], [12, 9], [13, 10], [14, 10], [15, 11], [16, 3], [17, 14], [18, 14], [19, 11], [20, 11], [21, 11], [22, 18], [23, 11], [24, 11], [25, 19], [26, 11], [27, 24], [28, 19], [29, 19], [30, 19], [31, 25], [32, 26], [33, 27], [34, 28], [35, 31], [36, 32], [37, 32], [38, 34], [39, 29], [40, 30], [41, 37], [42, 28], [43, 38], [44, 38], [45, 44], [46, 44], [47, 46], [48, 46], [49, 47], [50, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "checkTaskClass", "code": "    public void checkTaskClass(final Class taskClass) throws BuildException {\n        if (!Modifier.isPublic(taskClass.getModifiers())) {\n            final String message = taskClass + \" is not public\";\n            log(message, Project.MSG_ERR);\n            throw new BuildException(message);\n        }\n        if (Modifier.isAbstract(taskClass.getModifiers())) {\n            final String message = taskClass + \" is abstract\";\n            log(message, Project.MSG_ERR);\n            throw new BuildException(message);\n        }\n        try {\n            taskClass.getConstructor(null);\n        } catch (NoSuchMethodException e) {\n            final String message = \"No public no-arg constructor in \"\n                + taskClass;\n            log(message, Project.MSG_ERR);\n            throw new BuildException(message);\n        }\n        if (!Task.class.isAssignableFrom(taskClass)) {\n            TaskAdapter.checkTaskClass(taskClass, this);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "IF", "IF", "PARAM", "CALL", "CATCH", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [7, 10], [7, 11], [2, 12], [3, 13], [3, 14], [8, 15], [4, 16], [4, 17], [9, 18], [1, 19], [10, 20], [7, 21], [12, 22], [13, 23], [3, 24], [16, 25], [4, 26], [11, 27], [14, 28], [17, 29], [27, 30], [28, 31], [29, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 7], [11, 7], [12, 2], [13, 3], [14, 3], [15, 8], [16, 4], [17, 4], [18, 9], [19, 1], [20, 10], [21, 7], [22, 12], [23, 13], [24, 3], [25, 16], [26, 4], [27, 11], [28, 14], [29, 17], [30, 27], [31, 28], [32, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "getTaskDefinitions", "code": "    public Hashtable getTaskDefinitions() {\n        return taskClassDefinitions;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addDataTypeDefinition", "code": "    public void addDataTypeDefinition(String typeName, Class typeClass) {\n        synchronized(dataClassDefinitions) {\n            Class old = (Class) dataClassDefinitions.get(typeName);\n            if (null != old) {\n                if (old.equals(typeClass)) {\n                    log(\"Ignoring override for datatype \" + typeName\n                        + \", it is already defined by the same class.\",\n                        MSG_VERBOSE);\n                    return;\n                } else {\n                    log(\"Trying to override old definition of datatype \"\n                        + typeName, MSG_WARN);\n                }\n            }\n            dataClassDefinitions.put(typeName, typeClass);\n        }\n        String msg = \" +User datatype: \" + typeName + \"     \"\n            + typeClass.getName();\n        log(msg, MSG_DEBUG);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [5, 9], [7, 10], [7, 11], [5, 12], [9, 13], [11, 14], [11, 15], [12, 16], [6, 17], [15, 18], [12, 19], [12, 20], [12, 21], [20, 22], [21, 23], [22, 24], [23, 25], [23, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 5], [10, 7], [11, 7], [12, 5], [13, 9], [14, 11], [15, 11], [16, 12], [17, 6], [18, 15], [19, 12], [20, 12], [21, 12], [22, 20], [23, 21], [24, 22], [25, 23], [26, 23], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getDataTypeDefinitions", "code": "    public Hashtable getDataTypeDefinitions() {\n        return dataClassDefinitions;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addTarget", "code": "    public void addTarget(Target target) throws BuildException {\n        String name = target.getName();\n        if (targets.get(name) != null) {\n            throw new BuildException(\"Duplicate target: `\" + name + \"'\");\n        }\n        addOrReplaceTarget(name, target);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [2, 9], [6, 10], [10, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 2], [10, 6], [11, 10], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addTarget", "code": "     public void addTarget(String targetName, Target target)\n         throws BuildException {\n         if (targets.get(targetName) != null) {\n             throw new BuildException(\"Duplicate target: `\" + targetName + \"'\");\n         }\n         addOrReplaceTarget(targetName, target);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [6, 9], [9, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 6], [10, 9], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "addOrReplaceTarget", "code": "    public void addOrReplaceTarget(Target target) {\n        addOrReplaceTarget(target.getName(), target);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addOrReplaceTarget", "code": "    public void addOrReplaceTarget(String targetName, Target target) {\n        String msg = \" +Target: \" + targetName;\n        log(msg, MSG_DEBUG);\n        target.setProject(this);\n        targets.put(targetName, target);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getTargets", "code": "    public Hashtable getTargets() {\n        return targets;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createTask", "code": "    public Task createTask(String taskType) throws BuildException {\n        Class c = (Class) taskClassDefinitions.get(taskType);\n\n        if (c == null) {\n            return null;\n        }\n\n        try {\n            Object o = c.newInstance();\n            Task task = null;\n            if (o instanceof Task) {\n               task = (Task) o;\n            } else {\n                TaskAdapter taskA = new TaskAdapter();\n                taskA.setProxy(o);\n                task = taskA;\n            }\n            task.setProject(this);\n            task.setTaskType(taskType);\n\n            task.setTaskName(taskType);\n\n            String msg = \"   +Task: \" + taskType;\n            log (msg, MSG_DEBUG);\n            addCreatedTask(taskType, task);\n            return task;\n        } catch (Throwable t) {\n            String msg = \"Could not create task of type: \"\n                 + taskType + \" due to \" + t;\n            throw new BuildException(msg, t);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "CATCH", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [5, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [8, 19], [2, 20], [11, 21], [12, 22], [7, 23], [8, 24], [9, 25], [10, 26], [20, 27], [3, 28], [13, 29], [23, 30], [8, 31], [8, 32], [8, 33], [29, 34], [24, 35], [34, 36], [34, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 5], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 8], [20, 2], [21, 11], [22, 12], [23, 7], [24, 8], [25, 9], [26, 10], [27, 20], [28, 3], [29, 13], [30, 23], [31, 8], [32, 8], [33, 8], [34, 29], [35, 24], [36, 34], [37, 34], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "addCreatedTask", "code": "    private void addCreatedTask(String type, Task task) {\n        synchronized (createdTasks) {\n            Vector v = (Vector) createdTasks.get(type);\n            if (v == null) {\n                v = new Vector();\n                createdTasks.put(type, v);\n            }\n            v.addElement(task);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [6, 7], [3, 8], [3, 9], [4, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 6], [8, 3], [9, 3], [10, 4], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "invalidateCreatedTasks", "code": "    private void invalidateCreatedTasks(String type) {\n        synchronized (createdTasks) {\n            Vector v = (Vector) createdTasks.get(type);\n            if (v != null) {\n                Enumeration enum1 = v.elements();\n                while (enum1.hasMoreElements()) {\n                    Task t = (Task) enum1.nextElement();\n                    t.markInvalid();\n                }\n                v.removeAllElements();\n                createdTasks.remove(type);", "ast_nodes": ["FUNC_DECL", "PARAM", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [2, 8], [2, 9], [5, 10], [3, 11], [5, 12], [6, 13], [5, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 2], [9, 2], [10, 5], [11, 3], [12, 5], [13, 6], [14, 5], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "createDataType", "code": "    public Object createDataType(String typeName) throws BuildException {\n        Class c = (Class) dataClassDefinitions.get(typeName);\n\n        if (c == null) {\n            return null;\n        }\n\n        try {\n            java.lang.reflect.Constructor ctor = null;\n            boolean noArg = false;\n            try {\n                ctor = c.getConstructor(new Class[0]);\n                noArg = true;\n            } catch (NoSuchMethodException nse) {\n                ctor = c.getConstructor(new Class[] {Project.class});\n                noArg = false;\n            }\n\n            Object o = null;\n            if (noArg) {\n                 o = ctor.newInstance(new Object[0]);\n            } else {\n                 o = ctor.newInstance(new Object[] {this});\n            }\n            if (o instanceof ProjectComponent) {\n                ((ProjectComponent) o).setProject(this);\n            }\n            String msg = \"   +DataType: \" + typeName;\n            log (msg, MSG_DEBUG);\n            return o;\n        } catch (java.lang.reflect.InvocationTargetException ite) {\n            Throwable t = ite.getTargetException();\n            String msg = \"Could not create datatype of type: \"\n                 + typeName + \" due to \" + t;\n            throw new BuildException(msg, t);\n        } catch (Throwable t) {\n            String msg = \"Could not create datatype of type: \"\n                 + typeName + \" due to \" + t;\n            throw new BuildException(msg, t);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "IF", "IF", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CATCH", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [5, 16], [5, 17], [6, 18], [6, 19], [6, 20], [1, 21], [9, 22], [12, 23], [2, 24], [15, 25], [16, 26], [18, 27], [8, 28], [11, 29], [12, 30], [12, 31], [13, 32], [14, 33], [24, 34], [3, 35], [17, 36], [19, 37], [20, 38], [28, 39], [10, 40], [10, 41], [23, 42], [23, 43], [30, 44], [31, 45], [36, 46], [37, 47], [40, 48], [41, 49], [42, 50], [43, 51], [46, 52], [46, 53], [47, 54], [47, 55], [45, 56], [53, 57], [55, 58], [49, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 5], [17, 5], [18, 6], [19, 6], [20, 6], [21, 1], [22, 9], [23, 12], [24, 2], [25, 15], [26, 16], [27, 18], [28, 8], [29, 11], [30, 12], [31, 12], [32, 13], [33, 14], [34, 24], [35, 3], [36, 17], [37, 19], [38, 20], [39, 28], [40, 10], [41, 10], [42, 23], [43, 23], [44, 30], [45, 31], [46, 36], [47, 37], [48, 40], [49, 41], [50, 42], [51, 43], [52, 46], [53, 46], [54, 47], [55, 47], [56, 45], [57, 53], [58, 55], [59, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "executeTargets", "code": "    public void executeTargets(Vector targetNames) throws BuildException {\n        Throwable error = null;\n\n        for (int i = 0; i < targetNames.size(); i++) {\n            executeTarget((String) targetNames.elementAt(i));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "demuxOutput", "code": "    public void demuxOutput(String line, boolean isError) {\n        Task task = (Task) threadTasks.get(Thread.currentThread());\n        if (task == null) {\n            fireMessageLogged(this, line, isError ? MSG_ERR : MSG_INFO);\n        } else {\n            if (isError) {\n                task.handleErrorOutput(line);\n            } else {\n                task.handleOutput(line);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [2, 9], [8, 10], [9, 11], [6, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 2], [10, 8], [11, 9], [12, 6], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "demuxFlush", "code": "    public void demuxFlush(String line, boolean isError) {\n        Task task = (Task) threadTasks.get(Thread.currentThread());\n        if (task == null) {\n            fireMessageLogged(this, line, isError ? MSG_ERR : MSG_INFO);\n        } else {\n            if (isError) {\n                task.handleErrorFlush(line);\n            } else {\n                task.handleFlush(line);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [2, 9], [8, 10], [9, 11], [6, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 2], [10, 8], [11, 9], [12, 6], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "executeTarget", "code": "    public void executeTarget(String targetName) throws BuildException {\n\n\n        if (targetName == null) {\n            String msg = \"No target specified\";\n            throw new BuildException(msg);\n        }\n\n        Vector sortedTargets = topoSort(targetName, targets);\n\n        int curidx = 0;\n        Target curtarget;\n\n        do {\n            curtarget = (Target) sortedTargets.elementAt(curidx++);\n            curtarget.performTasks();\n        } while (!curtarget.getName().equals(targetName));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [5, 8], [7, 9], [3, 10], [4, 11], [5, 12], [5, 13], [8, 14], [1, 15], [1, 16], [12, 17], [13, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 5], [9, 7], [10, 3], [11, 4], [12, 5], [13, 5], [14, 8], [15, 1], [16, 1], [17, 12], [18, 13], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "resolveFile", "code": "    public File resolveFile(String fileName, File rootDir) {\n        return fileUtils.resolveFile(rootDir, fileName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "resolveFile", "code": "    public File resolveFile(String fileName) {\n        return fileUtils.resolveFile(baseDir, fileName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translatePath", "code": "    public static String translatePath(String toProcess) {\n        if (toProcess == null || toProcess.length() == 0) {\n            return \"\";\n        }\n\n        StringBuffer path = new StringBuffer(toProcess.length() + 50);\n        PathTokenizer tokenizer = new PathTokenizer(toProcess);\n        while (tokenizer.hasMoreTokens()) {\n            String pathComponent = tokenizer.nextToken();\n            pathComponent = pathComponent.replace('/', File.separatorChar);\n            pathComponent = pathComponent.replace('\\\\', File.separatorChar);\n            if (path.length() != 0) {\n                path.append(File.pathSeparatorChar);\n            }\n            path.append(pathComponent);\n        }\n\n        return path.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [5, 9], [2, 10], [2, 11], [3, 12], [4, 13], [5, 14], [9, 15], [9, 16], [2, 17], [10, 18], [2, 19], [2, 20], [13, 21], [14, 22], [15, 23], [15, 24], [16, 25], [18, 26], [18, 27], [19, 28], [20, 29], [11, 30], [21, 31], [21, 32], [10, 33], [28, 34], [29, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 5], [10, 2], [11, 2], [12, 3], [13, 4], [14, 5], [15, 9], [16, 9], [17, 2], [18, 10], [19, 2], [20, 2], [21, 13], [22, 14], [23, 15], [24, 15], [25, 16], [26, 18], [27, 18], [28, 19], [29, 20], [30, 11], [31, 21], [32, 21], [33, 10], [34, 28], [35, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "copyFile", "code": "    public void copyFile(String sourceFile, String destFile)\n          throws IOException {\n        fileUtils.copyFile(sourceFile, destFile);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "copyFile", "code": "    public void copyFile(String sourceFile, String destFile, boolean filtering)\n        throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "copyFile", "code": "    public void copyFile(String sourceFile, String destFile, boolean filtering,\n                         boolean overwrite) throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null, overwrite);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "copyFile", "code": "    public void copyFile(String sourceFile, String destFile, boolean filtering,\n                         boolean overwrite, boolean preserveLastModified)\n        throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null, overwrite, preserveLastModified);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "copyFile", "code": "    public void copyFile(File sourceFile, File destFile) throws IOException {\n        fileUtils.copyFile(sourceFile, destFile);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "copyFile", "code": "    public void copyFile(File sourceFile, File destFile, boolean filtering)\n        throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "copyFile", "code": "    public void copyFile(File sourceFile, File destFile, boolean filtering,\n                         boolean overwrite) throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null, overwrite);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "copyFile", "code": "    public void copyFile(File sourceFile, File destFile, boolean filtering,\n                         boolean overwrite, boolean preserveLastModified)\n        throws IOException {\n        fileUtils.copyFile(sourceFile, destFile,\n            filtering ? globalFilters : null, overwrite, preserveLastModified);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setFileLastModified", "code": "    public void setFileLastModified(File file, long time)\n         throws BuildException {\n        if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n            log(\"Cannot change the modification time of \" + file\n                + \" in JDK 1.1\", Project.MSG_WARN);\n            return;\n        }\n        fileUtils.setFileLastModified(file, time);\n        log(\"Setting modification time for \" + file, MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [1, 8], [7, 9], [1, 10], [10, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 1], [9, 7], [10, 1], [11, 10], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "toBoolean", "code": "    public static boolean toBoolean(String s) {\n        return (s.equalsIgnoreCase(\"on\") ||\n                s.equalsIgnoreCase(\"true\") ||\n                s.equalsIgnoreCase(\"yes\"));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "topoSort", "code": "    public final Vector topoSort(String root, Hashtable targets)\n        throws BuildException {\n        Vector ret = new Vector();\n        Hashtable state = new Hashtable();\n        Stack visiting = new Stack();\n\n\n        tsort(root, targets, state, visiting, ret);\n        log(\"Build sequence for target `\" + root + \"' is \" + ret, MSG_VERBOSE);\n        for (Enumeration en = targets.keys(); en.hasMoreElements();) {\n            String curTarget = (String) en.nextElement();\n            String st = (String) state.get(curTarget);\n            if (st == null) {\n                tsort(curTarget, targets, state, visiting, ret);\n            } else if (st == VISITING) {\n                throw new RuntimeException(\"Unexpected node in visiting state: \"\n                    + curTarget);\n            }\n        }\n        log(\"Complete build sequence is \" + ret, MSG_VERBOSE);\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [0, 10], [0, 11], [8, 12], [2, 13], [2, 14], [2, 15], [10, 16], [3, 17], [4, 18], [5, 19], [12, 20], [13, 21], [13, 22], [2, 23], [16, 24], [21, 25], [22, 26], [24, 27], [24, 28], [21, 29], [13, 30], [14, 31], [15, 32], [28, 33], [29, 34], [34, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 0], [11, 0], [12, 8], [13, 2], [14, 2], [15, 2], [16, 10], [17, 3], [18, 4], [19, 5], [20, 12], [21, 13], [22, 13], [23, 2], [24, 16], [25, 21], [26, 22], [27, 24], [28, 24], [29, 21], [30, 13], [31, 14], [32, 15], [33, 28], [34, 29], [35, 34], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "tsort", "code": "    private final void tsort(String root, Hashtable targets,\n                             Hashtable state, Stack visiting,\n                             Vector ret)\n        throws BuildException {\n        state.put(root, VISITING);\n        visiting.push(root);\n\n        Target target = (Target) targets.get(root);\n\n        if (target == null) {\n            StringBuffer sb = new StringBuffer(\"Target `\");\n            sb.append(root);\n            sb.append(\"' does not exist in this project. \");\n            visiting.pop();\n            if (!visiting.empty()) {\n                String parent = (String) visiting.peek();\n                sb.append(\"It is used from target `\");\n                sb.append(parent);\n                sb.append(\"'.\");\n            }\n\n            throw new BuildException(new String(sb));\n        }\n\n        for (Enumeration en = target.getDependencies(); en.hasMoreElements();) {\n            String cur = (String) en.nextElement();\n            String m = (String) state.get(cur);\n            if (m == null) {\n                tsort(cur, targets, state, visiting, ret);\n            } else if (m == VISITING) {\n                throw makeCircularException(cur, visiting);\n            }\n        }\n\n        String p = (String) visiting.pop();\n        if (root != p) {\n            throw new RuntimeException(\"Unexpected internal error: expected to \"\n                + \"pop \" + root + \" but got \" + p);\n        }\n        state.put(root, VISITED);\n        ret.addElement(target);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [3, 14], [4, 15], [0, 16], [0, 17], [1, 18], [3, 19], [3, 20], [3, 21], [4, 22], [4, 23], [4, 24], [15, 25], [18, 26], [2, 27], [19, 28], [19, 29], [3, 30], [22, 31], [23, 32], [4, 33], [4, 34], [4, 35], [5, 36], [26, 37], [28, 38], [29, 39], [31, 40], [23, 41], [34, 42], [24, 43], [37, 44], [28, 45], [19, 46], [20, 47], [21, 48], [23, 49], [23, 50], [23, 51], [43, 52], [44, 53], [44, 54], [45, 55], [49, 56], [51, 57], [54, 58], [41, 59], [58, 60], [58, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 3], [15, 4], [16, 0], [17, 0], [18, 1], [19, 3], [20, 3], [21, 3], [22, 4], [23, 4], [24, 4], [25, 15], [26, 18], [27, 2], [28, 19], [29, 19], [30, 3], [31, 22], [32, 23], [33, 4], [34, 4], [35, 4], [36, 5], [37, 26], [38, 28], [39, 29], [40, 31], [41, 23], [42, 34], [43, 24], [44, 37], [45, 28], [46, 19], [47, 20], [48, 21], [49, 23], [50, 23], [51, 23], [52, 43], [53, 44], [54, 44], [55, 45], [56, 49], [57, 51], [58, 54], [59, 41], [60, 58], [61, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "makeCircularException", "code": "    private static BuildException makeCircularException(String end, Stack stk) {\n        StringBuffer sb = new StringBuffer(\"Circular dependency: \");\n        sb.append(end);\n        String c;\n        do {\n            c = (String) stk.pop();\n            sb.append(\" <- \");\n            sb.append(c);\n        } while (!c.equals(end));\n        return new BuildException(new String(sb));", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [7, 10], [4, 11], [2, 12], [2, 13], [2, 14], [11, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 7], [11, 4], [12, 2], [13, 2], [14, 2], [15, 11], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "addReference", "code": "    public void addReference(String name, Object value) {\n        synchronized (references) {\n            Object old = references.get(name);\n            if (old == value) {\n                return;\n            }\n            if (old != null && !(old instanceof UnknownElement)) {\n                log(\"Overriding previous definition of reference to \" + name,\n                    MSG_WARN);\n            }\n            String valueAsString = \"\";\n            try {\n                valueAsString = value.toString();\n            } catch (Throwable t) {\n                log(\"Caught exception (\" + t.getClass().getName() +\")\"\n                    + \" while expanding \" + name + \": \" + t.getMessage(),\n                    MSG_WARN);\n            }\n            log(\"Adding reference: \" + name + \" -> \" + valueAsString,\n                MSG_DEBUG);\n            references.put(name, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CATCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [5, 11], [6, 12], [9, 13], [3, 14], [4, 15], [11, 16], [11, 17], [6, 18], [7, 19], [13, 20], [10, 21], [14, 22], [5, 23], [17, 24], [20, 25], [20, 26], [21, 27], [23, 28], [26, 29], [27, 30], [27, 31], [28, 32], [31, 33], [31, 34], [34, 35], [35, 36], [35, 37], [37, 38], [37, 39], [39, 40], [39, 41], [40, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 5], [12, 6], [13, 9], [14, 3], [15, 4], [16, 11], [17, 11], [18, 6], [19, 7], [20, 13], [21, 10], [22, 14], [23, 5], [24, 17], [25, 20], [26, 20], [27, 21], [28, 23], [29, 26], [30, 27], [31, 27], [32, 28], [33, 31], [34, 31], [35, 34], [36, 35], [37, 35], [38, 37], [39, 37], [40, 39], [41, 39], [42, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getReferences", "code": "    public Hashtable getReferences() {\n        return references;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getReference", "code": "    public Object getReference(String key) {\n        return references.get(key);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getElementName", "code": "    public String getElementName(Object element) {\n        Hashtable elements = taskClassDefinitions;\n        Class elementClass = element.getClass();\n        String typeName = \"task\";\n        if (!elements.contains(elementClass)) {\n            elements = dataClassDefinitions;\n            typeName = \"data type\";\n            if (!elements.contains(elementClass)) {\n                elements = null;\n            }\n        }\n\n        if (elements != null) {\n            Enumeration e = elements.keys();\n            while (e.hasMoreElements()) {\n                String name = (String) e.nextElement();\n                Class clazz = (Class) elements.get(name);\n                if (elementClass.equals(clazz)) {\n                    return \"The <\" + name + \"> \" + typeName;\n                }\n            }\n        }\n\n        return \"Class \" + elementClass.getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [8, 11], [8, 12], [2, 13], [2, 14], [9, 15], [3, 16], [4, 17], [5, 18], [13, 19], [16, 20], [3, 21], [3, 22], [13, 23], [13, 24], [13, 25], [14, 26], [21, 27], [23, 28], [16, 29], [23, 30], [29, 31], [30, 32], [24, 33], [25, 34], [32, 35], [35, 36], [35, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 8], [12, 8], [13, 2], [14, 2], [15, 9], [16, 3], [17, 4], [18, 5], [19, 13], [20, 16], [21, 3], [22, 3], [23, 13], [24, 13], [25, 13], [26, 14], [27, 21], [28, 23], [29, 16], [30, 23], [31, 29], [32, 30], [33, 24], [34, 25], [35, 32], [36, 35], [37, 35], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "fireBuildStarted", "code": "    public void fireBuildStarted() {\n        BuildEvent event = new BuildEvent(this);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.buildStarted(event);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [3, 8], [1, 9], [1, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 3], [9, 1], [10, 1], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "fireBuildFinished", "code": "    public void fireBuildFinished(Throwable exception) {\n        BuildEvent event = new BuildEvent(this);\n        event.setException(exception);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.buildFinished(event);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [5, 8], [2, 9], [3, 10], [1, 11], [1, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 5], [9, 2], [10, 3], [11, 1], [12, 1], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "fireTargetStarted", "code": "    protected void fireTargetStarted(Target target) {\n        BuildEvent event = new BuildEvent(target);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.targetStarted(event);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [1, 10], [1, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 1], [11, 1], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "fireTargetFinished", "code": "    protected void fireTargetFinished(Target target, Throwable exception) {\n        BuildEvent event = new BuildEvent(target);\n        event.setException(exception);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.targetFinished(event);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [1, 8], [6, 9], [2, 10], [3, 11], [1, 12], [1, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 1], [9, 6], [10, 2], [11, 3], [12, 1], [13, 1], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "fireTaskStarted", "code": "    protected void fireTaskStarted(Task task) {\n        registerThreadTask(Thread.currentThread(), task);\n        BuildEvent event = new BuildEvent(task);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.taskStarted(event);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [5, 8], [2, 9], [3, 10], [6, 11], [1, 12], [1, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 5], [9, 2], [10, 3], [11, 6], [12, 1], [13, 1], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "fireTaskFinished", "code": "    protected void fireTaskFinished(Task task, Throwable exception) {\n        registerThreadTask(Thread.currentThread(), null);\n        System.out.flush();\n        System.err.flush();\n        BuildEvent event = new BuildEvent(task);\n        event.setException(exception);\n        Vector listeners = getBuildListeners();\n        for (int i = 0; i < listeners.size(); i++) {\n            BuildListener listener = (BuildListener) listeners.elementAt(i);\n            listener.taskFinished(event);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [6, 12], [2, 13], [3, 14], [10, 15], [10, 16], [1, 17], [1, 18], [11, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 6], [13, 2], [14, 3], [15, 10], [16, 10], [17, 1], [18, 1], [19, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "fireMessageLoggedEvent", "code": "    private void fireMessageLoggedEvent(BuildEvent event, String message,\n                                        int priority) {\n        event.setMessage(message, priority);\n        Vector listeners = getBuildListeners();\n        synchronized(this) {\n            if (loggingMessage) {\n                throw new BuildException(\"Listener attempted to access \" \n                    + (priority == MSG_ERR ? \"System.err\" : \"System.out\") \n                    + \" - infinite loop terminated\");\n            }\n            loggingMessage = true;                \n            for (int i = 0; i < listeners.size(); i++) {\n                BuildListener listener = (BuildListener) listeners.elementAt(i);\n                listener.messageLogged(event);\n            }\n            loggingMessage = false;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LOOP", "IF", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [0, 10], [1, 11], [8, 12], [5, 13], [9, 14], [10, 15], [6, 16], [5, 17], [5, 18], [16, 19], [19, 20], [13, 21], [20, 22], [20, 23], [23, 24], [23, 25], [24, 26], [24, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 0], [11, 1], [12, 8], [13, 5], [14, 9], [15, 10], [16, 6], [17, 5], [18, 5], [19, 16], [20, 19], [21, 13], [22, 20], [23, 20], [24, 23], [25, 23], [26, 24], [27, 24], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "fireMessageLogged", "code": "    protected void fireMessageLogged(Project project, String message,\n                                     int priority) {\n        BuildEvent event = new BuildEvent(project);\n        fireMessageLoggedEvent(event, message, priority);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fireMessageLogged", "code": "    protected void fireMessageLogged(Target target, String message,\n                                     int priority) {\n        BuildEvent event = new BuildEvent(target);\n        fireMessageLoggedEvent(event, message, priority);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fireMessageLogged", "code": "    protected void fireMessageLogged(Task task, String message, int priority) {\n        BuildEvent event = new BuildEvent(task);\n        fireMessageLoggedEvent(event, message, priority);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "registerThreadTask", "code": "    public synchronized void registerThreadTask(Thread thread, Task task) {\n        if (task != null) {\n            threadTasks.put(thread, task);\n        } else {\n            threadTasks.remove(thread);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getThreadTask", "code": "    public Task getThreadTask(Thread thread) {\n        return (Task) threadTasks.get(thread);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Project", "code": "    public Project() {\n        fileUtils = FileUtils.newFileUtils();\n        inputHandler = new DefaultInputHandler();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.3-4514", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/options/GeneralOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.GeneralOptionPane", "code": "public class GeneralOptionPane extends AbstractOptionPane\n{\n\t//{{{ checkFileStatus options\n\t// Check the buffer status when the view got the focus\n\tpublic static final int checkFileStatus_focus = 0;\n\t// Check the file status when the view got the status\n\t// or when saving or visiting the buffer\n\tpublic static final int checkFileStatus_all = 1;\n\t// Check the file status when visiting or saving <b>any</b> buffer\n\tpublic static final int checkFileStatus_operations = 2;\n\t// Check the file status when visiting or saving the buffer\n\tpublic static final int checkFileStatus_focusBuffer = 3;\n\t// Check the file status when saving the buffer\n\tpublic static final int checkFileStatus_none = 4;\n\t//}}}\n\n\t//{{{ Private members\n\tprivate JComboBox lineSeparator;\n\tprivate JComboBox checkModStatus;\n\tprivate JComboBox checkModStatusUpon;\n\tprivate JTextField recentFiles;\n\tprivate JTextField hypersearchResultsWarning;\n\tprivate JCheckBox saveCaret;\n\tprivate JCheckBox sortRecent;\n\tprivate JCheckBox persistentMarkers;\n\tprivate JCheckBox restore;\n\tprivate JCheckBox restoreRemote;\n\tprivate JCheckBox restoreCLI;\n\t//}}}\n\n\t//{{{ GeneralOptionPane constructor\n\tpublic GeneralOptionPane()\n\t{\n\t\tsuper(\"general\");\n\t} //}}}\n\n\t//{{{ _init() method\n\t@Override\n\tprotected void _init()\n\t{\n\n\t\t/* Line separator */\n\t\tString[] lineSeps = { jEdit.getProperty(\"lineSep.unix\"),\n\t\t\tjEdit.getProperty(\"lineSep.windows\"),\n\t\t\tjEdit.getProperty(\"lineSep.mac\") };\n\t\tlineSeparator = new JComboBox(lineSeps);\n\t\tString lineSep = jEdit.getProperty(\"buffer.\"+ JEditBuffer.LINESEP,\n\t\t\tSystem.getProperty(\"line.separator\"));\n\t\tif(\"\\n\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(0);\n\t\telse if(\"\\r\\n\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(1);\n\t\telse if(\"\\r\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(2);\n\t\taddComponent(jEdit.getProperty(\"options.general.lineSeparator\"),\n\t\t\tlineSeparator);\n\n\n\t\t/* Check mod status */\n\t\tString[] modCheckOptions = {\n\t\t\tjEdit.getProperty(\"options.general.checkModStatus.nothing\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatus.prompt\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatus.reload\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatus.silentReload\")\n\t\t};\n\t\tcheckModStatus = new JComboBox(modCheckOptions);\n\t\tif(jEdit.getBooleanProperty(\"autoReload\"))\n\t\t{\n\t\t\tif (jEdit.getBooleanProperty(\"autoReloadDialog\"))\n\t\t\t\t// reload and notify\n\t\t\t\tcheckModStatus.setSelectedIndex(2);\n\t\t\telse\t// reload silently\n\t\t\t\tcheckModStatus.setSelectedIndex(3);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (jEdit.getBooleanProperty(\"autoReloadDialog\"))\n\t\t\t\t// prompt\n\t\t\t\tcheckModStatus.setSelectedIndex(1);\n\t\t\telse\t// do nothing\n\t\t\t\tcheckModStatus.setSelectedIndex(0);\n\t\t}\n\t\taddComponent(jEdit.getProperty(\"options.general.checkModStatus\"),\n\t\t\tcheckModStatus);\n\n\t\t/* Check mod status upon */\n\t\tString[] modCheckUponOptions = {\n\t\t\tjEdit.getProperty(\"options.general.checkModStatusUpon.focus\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatusUpon.all\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatusUpon.operations\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatusUpon.focusBuffer\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatusUpon.none\")\n\t\t};\n\t\tcheckModStatusUpon = new JComboBox(modCheckUponOptions);\n\t\tcheckModStatusUpon.setSelectedIndex(jEdit.getIntegerProperty(\"checkFileStatus\"));\n\t\taddComponent(jEdit.getProperty(\"options.general.checkModStatusUpon\"),\n\t\t\tcheckModStatusUpon);\n\n\t\t/* Recent file list size */\n\t\trecentFiles = new JTextField(jEdit.getProperty(\n\t\t\t\"options.general.recentFiles\"));\n\t\trecentFiles.setText(jEdit.getProperty(\"recentFiles\"));\n\t\taddComponent(jEdit.getProperty(\"options.general.recentFiles\"),\n\t\t\trecentFiles);\n\n\t\t/* Sort recent file list */\n\t\tsortRecent = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.sortRecent\"));\n\t\tsortRecent.setSelected(jEdit.getBooleanProperty(\"sortRecent\"));\n\t\taddComponent(sortRecent);\n\n\t\t/* Save caret positions */\n\t\tsaveCaret = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.saveCaret\"));\n\t\tsaveCaret.setSelected(jEdit.getBooleanProperty(\"saveCaret\"));\n\t\taddComponent(saveCaret);\n\n\t\t/* Persistent markers */\n\t\tpersistentMarkers = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.persistentMarkers\"));\n\t\tpersistentMarkers.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"persistentMarkers\"));\n\t\taddComponent(persistentMarkers);\n\n\t\t/* Session management */\n\t\trestore = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.restore\"));\n\n\t\trestore.setSelected(jEdit.getBooleanProperty(\"restore\"));\n\t\trestore.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\trestoreCLI.setEnabled(restore.isSelected());\n\t\t\t\trestoreRemote.setEnabled(restore.isSelected());\n\t\t\t}\n\t\t});\n\n\t\taddComponent(restore);\n\n\t\trestoreRemote = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.restore.remote\"));\n\t\trestoreRemote.setSelected(jEdit.getBooleanProperty(\"restore.remote\", false));\n\t\trestoreRemote.setEnabled(restore.isSelected());\n\t\taddComponent(restoreRemote);\n\n\t\trestoreCLI = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.restore.cli\"));\n\t\trestoreCLI.setSelected(jEdit.getBooleanProperty(\"restore.cli\"));\n\t\trestoreCLI.setEnabled(restore.isSelected());\n\t\taddComponent(restoreCLI);\n\n\t\t\n\t\thypersearchResultsWarning = new JTextField(jEdit.getProperty(\"hypersearch.maxWarningResults\"));\n\t\taddComponent(jEdit.getProperty(\"options.general.hypersearch.maxWarningResults\"),\n\t\t\thypersearchResultsWarning);\n\n\n\n\t} //}}}\n\n\t//{{{ _save() method\n\t@Override\n\tprotected void _save()\n\t{\n\n\t\tString lineSep = null;\n\t\tswitch(lineSeparator.getSelectedIndex())\n\t\t{\n\t\tcase 0:\n\t\t\tlineSep = \"\\n\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tlineSep = \"\\r\\n\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tlineSep = \"\\r\";\n\t\t\tbreak;\n\t\t}\n\t\tjEdit.setProperty(\"buffer.\"+ JEditBuffer.LINESEP,lineSep);\n\t\tswitch(checkModStatus.getSelectedIndex())\n\t\t{\n\t\tcase 0:\n\t\t\tjEdit.setBooleanProperty(\"autoReloadDialog\",false);\n\t\t\tjEdit.setBooleanProperty(\"autoReload\",false);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tjEdit.setBooleanProperty(\"autoReloadDialog\",true);\n\t\t\tjEdit.setBooleanProperty(\"autoReload\",false);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tjEdit.setBooleanProperty(\"autoReloadDialog\",true);\n\t\t\tjEdit.setBooleanProperty(\"autoReload\",true);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tjEdit.setBooleanProperty(\"autoReloadDialog\",false);\n\t\t\tjEdit.setBooleanProperty(\"autoReload\",true);\n\t\t\tbreak;\n\t\t}\n\t\tjEdit.setIntegerProperty(\"checkFileStatus\",checkModStatusUpon.getSelectedIndex());\n\t\tjEdit.setProperty(\"recentFiles\",recentFiles.getText());\n\t\tjEdit.setBooleanProperty(\"sortRecent\",sortRecent.isSelected());\n\t\tjEdit.setBooleanProperty(\"saveCaret\",saveCaret.isSelected());\n\t\tjEdit.setBooleanProperty(\"persistentMarkers\",\n\t\t\tpersistentMarkers.isSelected());\n\t\tjEdit.setBooleanProperty(\"restore\",restore.isSelected());\n\t\tjEdit.setBooleanProperty(\"restore.cli\",restoreCLI.isSelected());\n\t\tjEdit.setBooleanProperty(\"restore.remote\", restoreRemote.isSelected());\n\t\ttry\n\t\t{\n\t\t\tjEdit.setIntegerProperty(\"hypersearch.maxWarningResults\", Integer.parseInt(hypersearchResultsWarning.getText()));\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tLog.log(Log.WARNING, this, \"hypersearchResultsWarning: \" + hypersearchResultsWarning.getText() + \" is not a valid value for this option\");", "functions": [{"function_name": "_init", "code": "\t@Override\n\tprotected void _init()\n\t{\n\n\t\t/* Line separator */\n\t\tString[] lineSeps = { jEdit.getProperty(\"lineSep.unix\"),\n\t\t\tjEdit.getProperty(\"lineSep.windows\"),\n\t\t\tjEdit.getProperty(\"lineSep.mac\") };\n\t\tlineSeparator = new JComboBox(lineSeps);\n\t\tString lineSep = jEdit.getProperty(\"buffer.\"+ JEditBuffer.LINESEP,\n\t\t\tSystem.getProperty(\"line.separator\"));\n\t\tif(\"\\n\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(0);\n\t\telse if(\"\\r\\n\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(1);\n\t\telse if(\"\\r\".equals(lineSep))\n\t\t\tlineSeparator.setSelectedIndex(2);\n\t\taddComponent(jEdit.getProperty(\"options.general.lineSeparator\"),\n\t\t\tlineSeparator);\n\n\n\t\t/* Check mod status */\n\t\tString[] modCheckOptions = {\n\t\t\tjEdit.getProperty(\"options.general.checkModStatus.nothing\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatus.prompt\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatus.reload\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatus.silentReload\")\n\t\t};\n\t\tcheckModStatus = new JComboBox(modCheckOptions);\n\t\tif(jEdit.getBooleanProperty(\"autoReload\"))\n\t\t{\n\t\t\tif (jEdit.getBooleanProperty(\"autoReloadDialog\"))\n\t\t\t\t// reload and notify\n\t\t\t\tcheckModStatus.setSelectedIndex(2);\n\t\t\telse\t// reload silently\n\t\t\t\tcheckModStatus.setSelectedIndex(3);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (jEdit.getBooleanProperty(\"autoReloadDialog\"))\n\t\t\t\t// prompt\n\t\t\t\tcheckModStatus.setSelectedIndex(1);\n\t\t\telse\t// do nothing\n\t\t\t\tcheckModStatus.setSelectedIndex(0);\n\t\t}\n\t\taddComponent(jEdit.getProperty(\"options.general.checkModStatus\"),\n\t\t\tcheckModStatus);\n\n\t\t/* Check mod status upon */\n\t\tString[] modCheckUponOptions = {\n\t\t\tjEdit.getProperty(\"options.general.checkModStatusUpon.focus\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatusUpon.all\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatusUpon.operations\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatusUpon.focusBuffer\"),\n\t\t\tjEdit.getProperty(\"options.general.checkModStatusUpon.none\")\n\t\t};\n\t\tcheckModStatusUpon = new JComboBox(modCheckUponOptions);\n\t\tcheckModStatusUpon.setSelectedIndex(jEdit.getIntegerProperty(\"checkFileStatus\"));\n\t\taddComponent(jEdit.getProperty(\"options.general.checkModStatusUpon\"),\n\t\t\tcheckModStatusUpon);\n\n\t\t/* Recent file list size */\n\t\trecentFiles = new JTextField(jEdit.getProperty(\n\t\t\t\"options.general.recentFiles\"));\n\t\trecentFiles.setText(jEdit.getProperty(\"recentFiles\"));\n\t\taddComponent(jEdit.getProperty(\"options.general.recentFiles\"),\n\t\t\trecentFiles);\n\n\t\t/* Sort recent file list */\n\t\tsortRecent = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.sortRecent\"));\n\t\tsortRecent.setSelected(jEdit.getBooleanProperty(\"sortRecent\"));\n\t\taddComponent(sortRecent);\n\n\t\t/* Save caret positions */\n\t\tsaveCaret = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.saveCaret\"));\n\t\tsaveCaret.setSelected(jEdit.getBooleanProperty(\"saveCaret\"));\n\t\taddComponent(saveCaret);\n\n\t\t/* Persistent markers */\n\t\tpersistentMarkers = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.persistentMarkers\"));\n\t\tpersistentMarkers.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"persistentMarkers\"));\n\t\taddComponent(persistentMarkers);\n\n\t\t/* Session management */\n\t\trestore = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.restore\"));\n\n\t\trestore.setSelected(jEdit.getBooleanProperty(\"restore\"));\n\t\trestore.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\trestoreCLI.setEnabled(restore.isSelected());\n\t\t\t\trestoreRemote.setEnabled(restore.isSelected());\n\t\t\t}\n\t\t});\n\n\t\taddComponent(restore);\n\n\t\trestoreRemote = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.restore.remote\"));\n\t\trestoreRemote.setSelected(jEdit.getBooleanProperty(\"restore.remote\", false));\n\t\trestoreRemote.setEnabled(restore.isSelected());\n\t\taddComponent(restoreRemote);\n\n\t\trestoreCLI = new JCheckBox(jEdit.getProperty(\n\t\t\t\"options.general.restore.cli\"));\n\t\trestoreCLI.setSelected(jEdit.getBooleanProperty(\"restore.cli\"));\n\t\trestoreCLI.setEnabled(restore.isSelected());\n\t\taddComponent(restoreCLI);\n\n\t\t\n\t\thypersearchResultsWarning = new JTextField(jEdit.getProperty(\"hypersearch.maxWarningResults\"));\n\t\taddComponent(jEdit.getProperty(\"options.general.hypersearch.maxWarningResults\"),\n\t\t\thypersearchResultsWarning);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [2, 37], [0, 38], [0, 39], [4, 40], [4, 41], [0, 42], [7, 43], [8, 44], [10, 45], [11, 46], [12, 47], [14, 48], [15, 49], [16, 50], [18, 51], [19, 52], [20, 53], [22, 54], [23, 55], [25, 56], [26, 57], [28, 58], [29, 59], [30, 60], [31, 61], [32, 62], [33, 63], [34, 64], [35, 65], [36, 66], [2, 67], [2, 68], [37, 69], [38, 70], [39, 71], [40, 72], [40, 73], [4, 74], [41, 75], [5, 76], [42, 77], [43, 78], [44, 79], [46, 80], [47, 81], [49, 82], [49, 83], [50, 84], [51, 85], [52, 86], [53, 87], [54, 88], [55, 89], [56, 90], [57, 91], [58, 92], [59, 93], [60, 94], [61, 95], [62, 96], [63, 97], [64, 98], [1, 99], [1, 100], [1, 101], [1, 102], [1, 103], [66, 104], [67, 105], [68, 106], [3, 107], [3, 108], [3, 109], [3, 110], [71, 111], [72, 112], [40, 113], [73, 114], [74, 115], [76, 116], [76, 117], [6, 118], [6, 119], [6, 120], [79, 121], [81, 122], [84, 123], [85, 124], [87, 125], [89, 126], [91, 127], [93, 128], [96, 129], [99, 130], [100, 131], [101, 132], [102, 133], [103, 134], [67, 135], [67, 136], [105, 137], [68, 138], [68, 139], [106, 140], [107, 141], [108, 142], [109, 143], [110, 144], [72, 145], [112, 146], [113, 147], [116, 148], [117, 149], [118, 150], [119, 151], [120, 152], [85, 153], [85, 154], [135, 155], [136, 156], [138, 157], [139, 158], [145, 159], [153, 160], [154, 161], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 2], [38, 0], [39, 0], [40, 4], [41, 4], [42, 0], [43, 7], [44, 8], [45, 10], [46, 11], [47, 12], [48, 14], [49, 15], [50, 16], [51, 18], [52, 19], [53, 20], [54, 22], [55, 23], [56, 25], [57, 26], [58, 28], [59, 29], [60, 30], [61, 31], [62, 32], [63, 33], [64, 34], [65, 35], [66, 36], [67, 2], [68, 2], [69, 37], [70, 38], [71, 39], [72, 40], [73, 40], [74, 4], [75, 41], [76, 5], [77, 42], [78, 43], [79, 44], [80, 46], [81, 47], [82, 49], [83, 49], [84, 50], [85, 51], [86, 52], [87, 53], [88, 54], [89, 55], [90, 56], [91, 57], [92, 58], [93, 59], [94, 60], [95, 61], [96, 62], [97, 63], [98, 64], [99, 1], [100, 1], [101, 1], [102, 1], [103, 1], [104, 66], [105, 67], [106, 68], [107, 3], [108, 3], [109, 3], [110, 3], [111, 71], [112, 72], [113, 40], [114, 73], [115, 74], [116, 76], [117, 76], [118, 6], [119, 6], [120, 6], [121, 79], [122, 81], [123, 84], [124, 85], [125, 87], [126, 89], [127, 91], [128, 93], [129, 96], [130, 99], [131, 100], [132, 101], [133, 102], [134, 103], [135, 67], [136, 67], [137, 105], [138, 68], [139, 68], [140, 106], [141, 107], [142, 108], [143, 109], [144, 110], [145, 72], [146, 112], [147, 113], [148, 116], [149, 117], [150, 118], [151, 119], [152, 120], [153, 85], [154, 85], [155, 135], [156, 136], [157, 138], [158, 139], [159, 145], [160, 153], [161, 154], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161]]}, {"function_name": "_save", "code": "\t@Override\n\tprotected void _save()\n\t{\n\n\t\tString lineSep = null;\n\t\tswitch(lineSeparator.getSelectedIndex())\n\t\t{\n\t\tcase 0:\n\t\t\tlineSep = \"\\n\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tlineSep = \"\\r\\n\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tlineSep = \"\\r\";\n\t\t\tbreak;\n\t\t}\n\t\tjEdit.setProperty(\"buffer.\"+ JEditBuffer.LINESEP,lineSep);\n\t\tswitch(checkModStatus.getSelectedIndex())\n\t\t{\n\t\tcase 0:\n\t\t\tjEdit.setBooleanProperty(\"autoReloadDialog\",false);\n\t\t\tjEdit.setBooleanProperty(\"autoReload\",false);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tjEdit.setBooleanProperty(\"autoReloadDialog\",true);\n\t\t\tjEdit.setBooleanProperty(\"autoReload\",false);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tjEdit.setBooleanProperty(\"autoReloadDialog\",true);\n\t\t\tjEdit.setBooleanProperty(\"autoReload\",true);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tjEdit.setBooleanProperty(\"autoReloadDialog\",false);\n\t\t\tjEdit.setBooleanProperty(\"autoReload\",true);\n\t\t\tbreak;\n\t\t}\n\t\tjEdit.setIntegerProperty(\"checkFileStatus\",checkModStatusUpon.getSelectedIndex());\n\t\tjEdit.setProperty(\"recentFiles\",recentFiles.getText());\n\t\tjEdit.setBooleanProperty(\"sortRecent\",sortRecent.isSelected());\n\t\tjEdit.setBooleanProperty(\"saveCaret\",saveCaret.isSelected());\n\t\tjEdit.setBooleanProperty(\"persistentMarkers\",\n\t\t\tpersistentMarkers.isSelected());\n\t\tjEdit.setBooleanProperty(\"restore\",restore.isSelected());\n\t\tjEdit.setBooleanProperty(\"restore.cli\",restoreCLI.isSelected());\n\t\tjEdit.setBooleanProperty(\"restore.remote\", restoreRemote.isSelected());\n\t\ttry\n\t\t{\n\t\t\tjEdit.setIntegerProperty(\"hypersearch.maxWarningResults\", Integer.parseInt(hypersearchResultsWarning.getText()));\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tLog.log(Log.WARNING, this, \"hypersearchResultsWarning: \" + hypersearchResultsWarning.getText() + \" is not a valid value for this option\");", "ast_nodes": ["FUNC_DECL", "TRY", "SWITCH", "SWITCH", "VAR_DECL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [0, 15], [3, 16], [1, 17], [6, 18], [6, 19], [7, 20], [7, 21], [8, 22], [8, 23], [9, 24], [9, 25], [10, 26], [10, 27], [11, 28], [11, 29], [12, 30], [12, 31], [13, 32], [13, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [15, 42], [3, 43], [3, 44], [3, 45], [3, 46], [3, 47], [3, 48], [4, 49], [5, 50], [17, 51], [17, 52], [2, 53], [2, 54], [2, 55], [2, 56], [2, 57], [2, 58], [2, 59], [2, 60], [42, 61], [3, 62], [3, 63], [3, 64], [50, 65], [51, 66], [53, 67], [53, 68], [54, 69], [54, 70], [55, 71], [55, 72], [56, 73], [56, 74], [57, 75], [57, 76], [58, 77], [58, 78], [59, 79], [59, 80], [60, 81], [60, 82], [62, 83], [63, 84], [64, 85], [65, 86], [65, 87], [87, 88], [87, 89], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 0], [16, 3], [17, 1], [18, 6], [19, 6], [20, 7], [21, 7], [22, 8], [23, 8], [24, 9], [25, 9], [26, 10], [27, 10], [28, 11], [29, 11], [30, 12], [31, 12], [32, 13], [33, 13], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 15], [43, 3], [44, 3], [45, 3], [46, 3], [47, 3], [48, 3], [49, 4], [50, 5], [51, 17], [52, 17], [53, 2], [54, 2], [55, 2], [56, 2], [57, 2], [58, 2], [59, 2], [60, 2], [61, 42], [62, 3], [63, 3], [64, 3], [65, 50], [66, 51], [67, 53], [68, 53], [69, 54], [70, 54], [71, 55], [72, 55], [73, 56], [74, 56], [75, 57], [76, 57], [77, 58], [78, 58], [79, 59], [80, 59], [81, 60], [82, 60], [83, 62], [84, 63], [85, 64], [86, 65], [87, 65], [88, 87], [89, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89]]}, {"function_name": "GeneralOptionPane", "code": "\tpublic GeneralOptionPane()\n\t{\n\t\tsuper(\"general\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-2888", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/bam/model/ActivityState.java", "language": "java", "name": "org.apache.camel.bam.model.ActivityState", "code": "@Entity\npublic class ActivityState extends TemporalEntity {\n    private static final transient Log LOG = LogFactory.getLog(ActivityState.class);\n    private ProcessInstance processInstance;\n    private Integer receivedMessageCount = 0;\n    private ActivityDefinition activityDefinition;\n    private Date timeExpected;\n    @Temporal(TemporalType.TIME)\n    private Date timeOverdue;\n    private Integer escalationLevel = 0;\n\n    @Override\n    @Id\n    @GeneratedValue\n    public Long getId() {\n        return super.getId();\n    }\n\n    @Override\n    public String toString() {\n        return \"ActivityState[\" + getId() + \" on \" + getProcessInstance() + \" \" + getActivityDefinition() + \"]\";\n    }\n\n    public synchronized void processExchange(ActivityRules activityRules, ProcessContext context) throws Exception {\n        int messageCount = 0;\n        Integer count = getReceivedMessageCount();\n        if (count != null) {\n            messageCount = count.intValue();\n        }\n        setReceivedMessageCount(++messageCount);\n\n        if (messageCount == 1) {\n            onFirstMessage(context);\n        }\n        int expectedMessages = activityRules.getExpectedMessages();\n        if (messageCount == expectedMessages) {\n            onExpectedMessage(context);\n        } else if (messageCount > expectedMessages) {\n            onExcessMessage(context);\n        }\n    }\n\n    /**\n     * Returns true if this state is for the given activity\n     */\n    public boolean isActivity(ActivityRules activityRules) {\n        return ObjectHelper.equal(getActivityDefinition(), activityRules.getActivityDefinition());\n    }\n\n    @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.MERGE })\n    public ProcessInstance getProcessInstance() {\n        return processInstance;\n    }\n\n    public void setProcessInstance(ProcessInstance processInstance) {\n        this.processInstance = processInstance;\n        processInstance.getActivityStates().add(this);\n    }\n\n    @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.MERGE })\n    public ActivityDefinition getActivityDefinition() {\n        return activityDefinition;\n    }\n\n    public void setActivityDefinition(ActivityDefinition activityDefinition) {\n        this.activityDefinition = activityDefinition;\n    }\n\n    public Integer getEscalationLevel() {\n        return escalationLevel;\n    }\n\n    public void setEscalationLevel(Integer escalationLevel) {\n        this.escalationLevel = escalationLevel;\n    }\n\n    public Integer getReceivedMessageCount() {\n        return receivedMessageCount;\n    }\n\n    public void setReceivedMessageCount(Integer receivedMessageCount) {\n        this.receivedMessageCount = receivedMessageCount;\n    }\n\n    @Temporal(TemporalType.TIME)\n    public Date getTimeExpected() {\n        return timeExpected;\n    }\n\n    public void setTimeExpected(Date timeExpected) {\n        this.timeExpected = timeExpected;\n    }\n\n    @Temporal(TemporalType.TIME)\n    public Date getTimeOverdue() {\n        return timeOverdue;\n    }\n\n    public void setTimeOverdue(Date timeOverdue) {\n        this.timeOverdue = timeOverdue;\n    }\n\n    public void setTimeCompleted(Date timeCompleted) {\n        super.setTimeCompleted(timeCompleted);\n        if (timeCompleted != null) {\n            setEscalationLevel(-1);\n        }\n    }\n\n    @Transient\n    public String getCorrelationKey() {\n        ProcessInstance pi = getProcessInstance();\n        if (pi == null) {\n            return null;\n        }\n        return pi.getCorrelationKey();\n    }\n\n\n    /**\n     * Called when the first message is reached\n     */\n    protected void onFirstMessage(ProcessContext context) {\n        if (!isStarted()) {\n            setTimeStarted(currentTime());\n            context.onStarted(this);\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Activity first message: \" + this);\n            }\n        }\n    }\n\n    /**\n     * Called when the expected number of messages are is reached\n     */\n    protected void onExpectedMessage(ProcessContext context) {\n        if (!isCompleted()) {\n            setTimeCompleted(currentTime());\n            setTimeOverdue(null);\n            context.onCompleted(this);\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Activity complete: \" + this);\n            }\n        }\n    }\n\n    /**\n     * Called when an excess message (after the expected number of messages) are\n     * received\n     */\n    protected void onExcessMessage(ProcessContext context) {\n    }\n\n    protected Date currentTime() {\n        return new Date();", "functions": [{"function_name": "getId", "code": "    @Override\n    @Id\n    @GeneratedValue\n    public Long getId() {\n        return super.getId();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"ActivityState[\" + getId() + \" on \" + getProcessInstance() + \" \" + getActivityDefinition() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "processExchange", "code": "    public synchronized void processExchange(ActivityRules activityRules, ProcessContext context) throws Exception {\n        int messageCount = 0;\n        Integer count = getReceivedMessageCount();\n        if (count != null) {\n            messageCount = count.intValue();\n        }\n        setReceivedMessageCount(++messageCount);\n\n        if (messageCount == 1) {\n            onFirstMessage(context);\n        }\n        int expectedMessages = activityRules.getExpectedMessages();\n        if (messageCount == expectedMessages) {\n            onExpectedMessage(context);\n        } else if (messageCount > expectedMessages) {\n            onExcessMessage(context);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [3, 11], [0, 12], [4, 13], [9, 14], [2, 15], [11, 16], [13, 17], [5, 18], [6, 19], [1, 20], [3, 21], [4, 22], [9, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 3], [12, 0], [13, 4], [14, 9], [15, 2], [16, 11], [17, 13], [18, 5], [19, 6], [20, 1], [21, 3], [22, 4], [23, 9], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "isActivity", "code": "    public boolean isActivity(ActivityRules activityRules) {\n        return ObjectHelper.equal(getActivityDefinition(), activityRules.getActivityDefinition());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getProcessInstance", "code": "    @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.MERGE })\n    public ProcessInstance getProcessInstance() {\n        return processInstance;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessInstance", "code": "    public void setProcessInstance(ProcessInstance processInstance) {\n        this.processInstance = processInstance;\n        processInstance.getActivityStates().add(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getActivityDefinition", "code": "    @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.MERGE })\n    public ActivityDefinition getActivityDefinition() {\n        return activityDefinition;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setActivityDefinition", "code": "    public void setActivityDefinition(ActivityDefinition activityDefinition) {\n        this.activityDefinition = activityDefinition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEscalationLevel", "code": "    public Integer getEscalationLevel() {\n        return escalationLevel;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEscalationLevel", "code": "    public void setEscalationLevel(Integer escalationLevel) {\n        this.escalationLevel = escalationLevel;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReceivedMessageCount", "code": "    public Integer getReceivedMessageCount() {\n        return receivedMessageCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReceivedMessageCount", "code": "    public void setReceivedMessageCount(Integer receivedMessageCount) {\n        this.receivedMessageCount = receivedMessageCount;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTimeExpected", "code": "    @Temporal(TemporalType.TIME)\n    public Date getTimeExpected() {\n        return timeExpected;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeExpected", "code": "    public void setTimeExpected(Date timeExpected) {\n        this.timeExpected = timeExpected;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTimeOverdue", "code": "    @Temporal(TemporalType.TIME)\n    public Date getTimeOverdue() {\n        return timeOverdue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeOverdue", "code": "    public void setTimeOverdue(Date timeOverdue) {\n        this.timeOverdue = timeOverdue;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTimeCompleted", "code": "    public void setTimeCompleted(Date timeCompleted) {\n        super.setTimeCompleted(timeCompleted);\n        if (timeCompleted != null) {\n            setEscalationLevel(-1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getCorrelationKey", "code": "    @Transient\n    public String getCorrelationKey() {\n        ProcessInstance pi = getProcessInstance();\n        if (pi == null) {\n            return null;\n        }\n        return pi.getCorrelationKey();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "onFirstMessage", "code": "    protected void onFirstMessage(ProcessContext context) {\n        if (!isStarted()) {\n            setTimeStarted(currentTime());\n            context.onStarted(this);\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Activity first message: \" + this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 6], [1, 7], [7, 8], [4, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 1], [7, 1], [8, 7], [9, 4], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "onExpectedMessage", "code": "    protected void onExpectedMessage(ProcessContext context) {\n        if (!isCompleted()) {\n            setTimeCompleted(currentTime());\n            setTimeOverdue(null);\n            context.onCompleted(this);\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Activity complete: \" + this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 8], [7, 9], [8, 10], [4, 11], [11, 12], [12, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 1], [7, 1], [8, 1], [9, 7], [10, 8], [11, 4], [12, 11], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "onExcessMessage", "code": "    protected void onExcessMessage(ProcessContext context) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "currentTime", "code": "    protected Date currentTime() {\n        return new Date();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.4-2211", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/bam/processor/BamProcessorSupport.java", "language": "java", "name": "org.apache.camel.bam.processor.BamProcessorSupport", "code": "public abstract class BamProcessorSupport<T> implements Processor {\n    private static final transient Log LOG = LogFactory.getLog(BamProcessorSupport.class);\n    private Class<T> entityType;\n    private Expression<Exchange> correlationKeyExpression;\n    private TransactionTemplate transactionTemplate;\n    private int retryCount = 20;\n    private long retrySleep = 1000L;\n\n    protected BamProcessorSupport(TransactionTemplate transactionTemplate,\n                                  Expression<Exchange> correlationKeyExpression) {\n        this.transactionTemplate = transactionTemplate;\n        this.correlationKeyExpression = correlationKeyExpression;\n\n        Type type = getClass().getGenericSuperclass();\n        if (type instanceof ParameterizedType) {\n            ParameterizedType parameterizedType = (ParameterizedType)type;\n            Type[] arguments = parameterizedType.getActualTypeArguments();\n            if (arguments.length > 0) {\n                Type argumentType = arguments[0];\n                if (argumentType instanceof Class) {\n                    this.entityType = (Class<T>)argumentType;\n                }\n            }\n        }\n        if (entityType == null) {\n            throw new IllegalArgumentException(\"Could not infer the entity type!\");\n        }\n    }\n\n    protected BamProcessorSupport(TransactionTemplate transactionTemplate,\n                                  Expression<Exchange> correlationKeyExpression, Class<T> entitytype) {\n        this.transactionTemplate = transactionTemplate;\n        this.entityType = entitytype;\n        this.correlationKeyExpression = correlationKeyExpression;\n    }\n\n    public void process(final Exchange exchange) {\n        for (int i = 1; i <= retryCount; i++) {\n            if (i > 1) {\n                LOG.info(\"Retrying attempt: \" + i);\n                try {\n                    Thread.sleep(retryCount);\n                } catch (InterruptedException e) {\n                    LOG.debug(\"Caught: \" + e, e);\n                }\n            }\n            try {\n                transactionTemplate.execute(new TransactionCallback() {\n                    public Object doInTransaction(TransactionStatus status) {\n                        try {\n                            Object key = getCorrelationKey(exchange);\n\n                            T entity = loadEntity(exchange, key);\n\n                            if (LOG.isDebugEnabled()) {\n                                LOG.debug(\"Correlation key: \" + key + \" with entity: \" + entity);\n                            }\n                            processEntity(exchange, entity);\n\n                            return entity;\n                        } catch (Exception e) {\n                            return onError(status, e);\n                        }\n                    }\n                });\n                if (i > 1) {\n                    LOG.info(\"Attempt \" + i + \" worked!\");\n                }\n                return;\n            } catch (Exception e) {\n                LOG.warn(\"Failed to complete transaction: \" + e, e);\n            }\n        }\n    }\n\n    public Expression<Exchange> getCorrelationKeyExpression() {\n        return correlationKeyExpression;\n    }\n\n    public Class<T> getEntityType() {\n        return entityType;\n    }\n\n    protected abstract void processEntity(Exchange exchange, T entity) throws Exception;\n\n    protected abstract T loadEntity(Exchange exchange, Object key) throws Exception;\n\n    protected abstract Class getKeyType();\n\n    protected Object getCorrelationKey(Exchange exchange) throws NoCorrelationKeyException {\n        Object value = correlationKeyExpression.evaluate(exchange);\n        Class keyType = getKeyType();\n        if (keyType != null) {\n            value = ExchangeHelper.convertToType(exchange, keyType, value);\n        }\n        if (value == null) {\n            throw new NoCorrelationKeyException(this, exchange);\n        }\n        return value;\n    }\n\n    protected Object onError(TransactionStatus status, Exception e) {\n        status.setRollbackOnly();\n        LOG.error(\"Caught: \" + e, e);\n        throw new RuntimeCamelException(e);", "functions": [{"function_name": "process", "code": "    public void process(final Exchange exchange) {\n        for (int i = 1; i <= retryCount; i++) {\n            if (i > 1) {\n                LOG.info(\"Retrying attempt: \" + i);\n                try {\n                    Thread.sleep(retryCount);\n                } catch (InterruptedException e) {\n                    LOG.debug(\"Caught: \" + e, e);\n                }\n            }\n            try {\n                transactionTemplate.execute(new TransactionCallback() {\n                    public Object doInTransaction(TransactionStatus status) {\n                        try {\n                            Object key = getCorrelationKey(exchange);\n\n                            T entity = loadEntity(exchange, key);\n\n                            if (LOG.isDebugEnabled()) {\n                                LOG.debug(\"Correlation key: \" + key + \" with entity: \" + entity);\n                            }\n                            processEntity(exchange, entity);\n\n                            return entity;\n                        } catch (Exception e) {\n                            return onError(status, e);\n                        }\n                    }\n                });\n                if (i > 1) {\n                    LOG.info(\"Attempt \" + i + \" worked!\");\n                }\n                return;\n            } catch (Exception e) {\n                LOG.warn(\"Failed to complete transaction: \" + e, e);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "TRY", "IF", "CATCH", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "BINARY_OP", "CALL", "FUNC_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [4, 7], [4, 8], [5, 9], [1, 10], [8, 11], [4, 12], [5, 13], [9, 14], [6, 15], [11, 16], [12, 17], [13, 18], [5, 19], [15, 20], [8, 21], [17, 22], [13, 23], [19, 24], [20, 25], [21, 26], [22, 27], [22, 28], [18, 29], [24, 30], [26, 31], [26, 32], [27, 33], [27, 34], [27, 35], [27, 36], [27, 37], [29, 38], [32, 39], [33, 40], [27, 41], [35, 42], [38, 43], [40, 44], [36, 45], [37, 46], [35, 47], [47, 48], [48, 49], [49, 50], [49, 51], [51, 52], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 4], [8, 4], [9, 5], [10, 1], [11, 8], [12, 4], [13, 5], [14, 9], [15, 6], [16, 11], [17, 12], [18, 13], [19, 5], [20, 15], [21, 8], [22, 17], [23, 13], [24, 19], [25, 20], [26, 21], [27, 22], [28, 22], [29, 18], [30, 24], [31, 26], [32, 26], [33, 27], [34, 27], [35, 27], [36, 27], [37, 27], [38, 29], [39, 32], [40, 33], [41, 27], [42, 35], [43, 38], [44, 40], [45, 36], [46, 37], [47, 35], [48, 47], [49, 48], [50, 49], [51, 49], [52, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "getCorrelationKeyExpression", "code": "    public Expression<Exchange> getCorrelationKeyExpression() {\n        return correlationKeyExpression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEntityType", "code": "    public Class<T> getEntityType() {\n        return entityType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "processEntity", "code": "    protected abstract void processEntity(Exchange exchange, T entity) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadEntity", "code": "    protected abstract T loadEntity(Exchange exchange, Object key) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getKeyType", "code": "    protected abstract Class getKeyType();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getCorrelationKey", "code": "    protected Object getCorrelationKey(Exchange exchange) throws NoCorrelationKeyException {\n        Object value = correlationKeyExpression.evaluate(exchange);\n        Class keyType = getKeyType();\n        if (keyType != null) {\n            value = ExchangeHelper.convertToType(exchange, keyType, value);\n        }\n        if (value == null) {\n            throw new NoCorrelationKeyException(this, exchange);\n        }\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [7, 10], [8, 11], [4, 12], [5, 13], [9, 14], [3, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 7], [11, 8], [12, 4], [13, 5], [14, 9], [15, 3], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "onError", "code": "    protected Object onError(TransactionStatus status, Exception e) {\n        status.setRollbackOnly();\n        LOG.error(\"Caught: \" + e, e);\n        throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "BamProcessorSupport", "code": "    protected BamProcessorSupport(TransactionTemplate transactionTemplate,\n                                  Expression<Exchange> correlationKeyExpression) {\n        this.transactionTemplate = transactionTemplate;\n        this.correlationKeyExpression = correlationKeyExpression;\n\n        Type type = getClass().getGenericSuperclass();\n        if (type instanceof ParameterizedType) {\n            ParameterizedType parameterizedType = (ParameterizedType)type;\n            Type[] arguments = parameterizedType.getActualTypeArguments();\n            if (arguments.length > 0) {\n                Type argumentType = arguments[0];\n                if (argumentType instanceof Class) {\n                    this.entityType = (Class<T>)argumentType;\n                }\n            }\n        }\n        if (entityType == null) {\n            throw new IllegalArgumentException(\"Could not infer the entity type!\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [1, 10], [6, 11], [2, 12], [2, 13], [2, 14], [3, 15], [10, 16], [12, 17], [15, 18], [16, 19], [12, 20], [12, 21], [17, 22], [13, 23], [20, 24], [20, 25], [21, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 1], [11, 6], [12, 2], [13, 2], [14, 2], [15, 3], [16, 10], [17, 12], [18, 15], [19, 16], [20, 12], [21, 12], [22, 17], [23, 13], [24, 20], [25, 20], [26, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "BamProcessorSupport", "code": "    protected BamProcessorSupport(TransactionTemplate transactionTemplate,\n                                  Expression<Exchange> correlationKeyExpression, Class<T> entitytype) {\n        this.transactionTemplate = transactionTemplate;\n        this.entityType = entitytype;\n        this.correlationKeyExpression = correlationKeyExpression;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "ant-1.7-775", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantCPInfo.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantCPInfo", "code": "public abstract class ConstantCPInfo extends ConstantPoolEntry {\n\n    /**\n     * The entry's untyped value. Each subclass interprets the constant\n     * value based on the subclass's type. The value here must be\n     * compatible.\n     */\n    private Object value;\n\n    /**\n     * Initialise the constant entry.\n     *\n     * @param tagValue the constant pool entry type to be used.\n     * @param entries the number of constant pool entry slots occupied by\n     *      this entry.\n     */\n    protected ConstantCPInfo(int tagValue, int entries) {\n        super(tagValue, entries);\n    }\n\n    /**\n     * Get the value of the constant.\n     *\n     * @return the value of the constant (untyped).\n     */\n    public Object getValue() {\n        return value;\n    }\n\n    /**\n     * Set the constant value.\n     *\n     * @param newValue the new untyped value of this constant.\n     */\n    public void setValue(Object newValue) {\n        value = newValue;", "functions": [{"function_name": "getValue", "code": "    public Object getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setValue", "code": "    public void setValue(Object newValue) {\n        value = newValue;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ConstantCPInfo", "code": "    protected ConstantCPInfo(int tagValue, int entries) {\n        super(tagValue, entries);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-5988", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/poifs/storage/BlockAllocationTableWriter.java", "language": "java", "name": "org.apache.poi.poifs.storage.BlockAllocationTableWriter", "code": "public class BlockAllocationTableWriter\n    implements BlockWritable, BATManaged\n{\n    private IntList    _entries;\n    private BATBlock[] _blocks;\n    private int        _start_block;\n\n    /**\n     * create a BlockAllocationTableWriter\n     */\n\n    public BlockAllocationTableWriter()\n    {\n        _start_block = POIFSConstants.END_OF_CHAIN;\n        _entries     = new IntList();\n        _blocks      = new BATBlock[ 0 ];\n    }\n\n    /**\n     * Create the BATBlocks we need\n     *\n     * @return start block index of BAT blocks\n     */\n\n    public int createBlocks()\n    {\n        int xbat_blocks = 0;\n        int bat_blocks  = 0;\n\n        while (true)\n        {\n            int calculated_bat_blocks  =\n                BATBlock.calculateStorageRequirements(bat_blocks\n                                                      + xbat_blocks\n                                                      + _entries.size());\n            int calculated_xbat_blocks =\n                HeaderBlockWriter\n                    .calculateXBATStorageRequirements(calculated_bat_blocks);\n\n            if ((bat_blocks == calculated_bat_blocks)\n                    && (xbat_blocks == calculated_xbat_blocks))\n            {\n\n                break;\n            }\n            else\n            {\n                bat_blocks  = calculated_bat_blocks;\n                xbat_blocks = calculated_xbat_blocks;\n            }\n        }\n        int startBlock = allocateSpace(bat_blocks);\n\n        allocateSpace(xbat_blocks);\n        simpleCreateBlocks();\n        return startBlock;\n    }\n\n    /**\n     * Allocate space for a block of indices\n     *\n     * @param blockCount the number of blocks to allocate space for\n     *\n     * @return the starting index of the blocks\n     */\n\n    public int allocateSpace(final int blockCount)\n    {\n        int startBlock = _entries.size();\n\n        if (blockCount > 0)\n        {\n            int limit = blockCount - 1;\n            int index = startBlock + 1;\n\n            for (int k = 0; k < limit; k++)\n            {\n                _entries.add(index++);\n            }\n            _entries.add(POIFSConstants.END_OF_CHAIN);\n        }\n        return startBlock;\n    }\n\n    /**\n     * get the starting block\n     *\n     * @return the starting block index\n     */\n\n    public int getStartBlock()\n    {\n        return _start_block;\n    }\n\n    /**\n     * create the BATBlocks\n     */\n\n    void simpleCreateBlocks()\n    {\n        _blocks = BATBlock.createBATBlocks(_entries.toArray());\n    }\n\n    /* ********** START implementation of BlockWritable ********** */\n\n    /**\n     * Write the storage to an OutputStream\n     *\n     * @param stream the OutputStream to which the stored data should\n     *               be written\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream\n     */\n\n    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        for (int j = 0; j < _blocks.length; j++)\n        {\n            _blocks[ j ].writeBlocks(stream);\n        }\n    }\n\n    /* **********  END  implementation of BlockWritable ********** */\n    /* ********** START implementation of BATManaged ********** */\n\n    /**\n     * Return the number of BigBlock's this instance uses\n     *\n     * @return count of BigBlock instances\n     */\n\n    public int countBlocks()\n    {\n        return _blocks.length;\n    }\n\n    /**\n     * Set the start block for this instance\n     *\n     * @param start_block\n     */\n\n    public void setStartBlock(int start_block)\n    {\n        _start_block = start_block;", "functions": [{"function_name": "createBlocks", "code": "    public int createBlocks()\n    {\n        int xbat_blocks = 0;\n        int bat_blocks  = 0;\n\n        while (true)\n        {\n            int calculated_bat_blocks  =\n                BATBlock.calculateStorageRequirements(bat_blocks\n                                                      + xbat_blocks\n                                                      + _entries.size());\n            int calculated_xbat_blocks =\n                HeaderBlockWriter\n                    .calculateXBATStorageRequirements(calculated_bat_blocks);\n\n            if ((bat_blocks == calculated_bat_blocks)\n                    && (xbat_blocks == calculated_xbat_blocks))\n            {\n\n                break;\n            }\n            else\n            {\n                bat_blocks  = calculated_bat_blocks;\n                xbat_blocks = calculated_xbat_blocks;\n            }\n        }\n        int startBlock = allocateSpace(bat_blocks);\n\n        allocateSpace(xbat_blocks);\n        simpleCreateBlocks();\n        return startBlock;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [2, 9], [3, 10], [3, 11], [3, 12], [4, 13], [5, 14], [10, 15], [10, 16], [15, 17], [15, 18], [11, 19], [12, 20], [10, 21], [10, 22], [20, 23], [23, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 2], [10, 3], [11, 3], [12, 3], [13, 4], [14, 5], [15, 10], [16, 10], [17, 15], [18, 15], [19, 11], [20, 12], [21, 10], [22, 10], [23, 20], [24, 23], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "allocateSpace", "code": "    public int allocateSpace(final int blockCount)\n    {\n        int startBlock = _entries.size();\n\n        if (blockCount > 0)\n        {\n            int limit = blockCount - 1;\n            int index = startBlock + 1;\n\n            for (int k = 0; k < limit; k++)\n            {\n                _entries.add(index++);\n            }\n            _entries.add(POIFSConstants.END_OF_CHAIN);\n        }\n        return startBlock;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [3, 10], [2, 11], [6, 12], [7, 13], [8, 14], [6, 15], [6, 16], [13, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 3], [11, 2], [12, 6], [13, 7], [14, 8], [15, 6], [16, 6], [17, 13], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getStartBlock", "code": "    public int getStartBlock()\n    {\n        return _start_block;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "simpleCreateBlocks", "code": "    void simpleCreateBlocks()\n    {\n        _blocks = BATBlock.createBATBlocks(_entries.toArray());", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "writeBlocks", "code": "    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        for (int j = 0; j < _blocks.length; j++)\n        {\n            _blocks[ j ].writeBlocks(stream);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "countBlocks", "code": "    public int countBlocks()\n    {\n        return _blocks.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStartBlock", "code": "    public void setStartBlock(int start_block)\n    {\n        _start_block = start_block;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "BlockAllocationTableWriter", "code": "    public BlockAllocationTableWriter()\n    {\n        _start_block = POIFSConstants.END_OF_CHAIN;\n        _entries     = new IntList();\n        _blocks      = new BATBlock[ 0 ];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "poi-3.0-6146", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/InterfaceHdrRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.InterfaceHdrRecord", "code": "public class InterfaceHdrRecord\n    extends Record\n{\n    public final static short sid = 0xe1;\n\n    /**\n     * suggested (and probably correct) default\n     */\n\n    public final static short CODEPAGE = ( short ) 0x4b0;\n\n    public InterfaceHdrRecord()\n    {\n    }\n\n    /**\n     * Constructs an Codepage record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xe1 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public InterfaceHdrRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A INTERFACEHDR RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_codepage = in.readShort();\n    }\n\n    /**\n     * set the codepage for the file\n     *\n     * @param cp - the codepage\n     * @see #CODEPAGE\n     */\n\n    public void setCodepage(short cp)\n    {\n        field_1_codepage = cp;\n    }\n\n    /**\n     * get the codepage for the file\n     *\n     * @return the codepage\n     * @see #CODEPAGE\n     */\n\n    public short getCodepage()\n    {\n        return field_1_codepage;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[INTERFACEHDR]\\n\");\n        buffer.append(\"    .codepage        = \")\n            .append(Integer.toHexString(getCodepage())).append(\"\\n\");\n        buffer.append(\"[/INTERFACEHDR]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getCodepage());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A INTERFACEHDR RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_codepage = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setCodepage", "code": "    public void setCodepage(short cp)\n    {\n        field_1_codepage = cp;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCodepage", "code": "    public short getCodepage()\n    {\n        return field_1_codepage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[INTERFACEHDR]\\n\");\n        buffer.append(\"    .codepage        = \")\n            .append(Integer.toHexString(getCodepage())).append(\"\\n\");\n        buffer.append(\"[/INTERFACEHDR]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getCodepage());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "InterfaceHdrRecord", "code": "    public InterfaceHdrRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "InterfaceHdrRecord", "code": "    public InterfaceHdrRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.5-6883", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/axes/ChildTestIterator.java", "language": "java", "name": "org.apache.xpath.axes.ChildTestIterator", "code": "public class ChildTestIterator extends BasicTestIterator\n{\n  /** The traverser to use to navigate over the descendants. */\n  transient protected DTMAxisTraverser m_traverser;\n  \n  /** The extended type ID, not set until setRoot. */\n\n\n  /**\n   * Create a ChildTestIterator object.\n   *\n   * @param compiler A reference to the Compiler that contains the op map.\n   * @param opPos The position within the op map, which contains the\n   * location path expression for this itterator.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  ChildTestIterator(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis);\n  }\n  \n  /**\n   * Create a ChildTestIterator object.\n   *\n   * @param traverser Traverser that tells how the KeyIterator is to be handled.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public ChildTestIterator(DTMAxisTraverser traverser)\n  {\n\n    super(null);\n\n    m_traverser = traverser;\n  }\n\n  /**\n   * Get the next node via getNextXXX.  Bottlenecked for derived class override.\n   * @return The next node on the axis, or DTM.NULL.\n   */\n  protected int getNextNode()\n  {                     \n    if(true /* 0 == m_extendedTypeID */)\n    {\n      m_lastFetched = (DTM.NULL == m_lastFetched)\n                   ? m_traverser.first(m_context)\n                   : m_traverser.next(m_context, m_lastFetched);\n    }\n\n    return m_lastFetched;\n  }\n\n  \n  /**\n   *  Get a cloned Iterator that is reset to the beginning\n   *  of the query.\n   * \n   *  @return A cloned NodeIterator set of the start of the query.\n   * \n   *  @throws CloneNotSupportedException\n   */\n  public DTMIterator cloneWithReset() throws CloneNotSupportedException\n  {\n\n    ChildTestIterator clone = (ChildTestIterator) super.cloneWithReset();\n    clone.m_traverser = m_traverser;\n\n    return clone;\n  }\n  \n\n  /**\n   * Initialize the context values for this expression\n   * after it is cloned.\n   *\n   * @param execContext The XPath runtime context for this\n   * transformation.\n   */\n  public void setRoot(int context, Object environment)\n  {\n    super.setRoot(context, environment);\n    m_traverser = m_cdtm.getAxisTraverser(Axis.CHILD);\n    \n    \n  }\n  \n  /**\n   * Returns the axis being iterated, if it is known.\n   * \n   * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple \n   * types.\n   */\n  public int getAxis()\n  {\n    return org.apache.xml.dtm.Axis.CHILD;\n  }\n\n  /**\n   *  Detaches the iterator from the set which it iterated over, releasing\n   * any computational resources and placing the iterator in the INVALID\n   * state. After<code>detach</code> has been invoked, calls to\n   * <code>nextNode</code> or<code>previousNode</code> will raise the\n   * exception INVALID_STATE_ERR.\n   */\n  public void detach()\n  {   \n    if(m_allowDetach)\n    {\n      m_traverser = null;\n      \n      super.detach();", "functions": [{"function_name": "getNextNode", "code": "  protected int getNextNode()\n  {                     \n    if(true /* 0 == m_extendedTypeID */)\n    {\n      m_lastFetched = (DTM.NULL == m_lastFetched)\n                   ? m_traverser.first(m_context)\n                   : m_traverser.next(m_context, m_lastFetched);\n    }\n\n    return m_lastFetched;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "cloneWithReset", "code": "  public DTMIterator cloneWithReset() throws CloneNotSupportedException\n  {\n\n    ChildTestIterator clone = (ChildTestIterator) super.cloneWithReset();\n    clone.m_traverser = m_traverser;\n\n    return clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRoot", "code": "  public void setRoot(int context, Object environment)\n  {\n    super.setRoot(context, environment);\n    m_traverser = m_cdtm.getAxisTraverser(Axis.CHILD);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAxis", "code": "  public int getAxis()\n  {\n    return org.apache.xml.dtm.Axis.CHILD;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "detach", "code": "  public void detach()\n  {   \n    if(m_allowDetach)\n    {\n      m_traverser = null;\n      \n      super.detach();", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ChildTestIterator", "code": "  ChildTestIterator(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ChildTestIterator", "code": "  public ChildTestIterator(DTMAxisTraverser traverser)\n  {\n\n    super(null);\n\n    m_traverser = traverser;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "jedit-4.0-3858", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "bsh/Parser.java", "language": "java", "name": "bsh.Parser", "code": "class Parser/*@bgen(jjtree)*/implements ParserTreeConstants, ParserConstants {/*@bgen(jjtree)*/\n  protected JJTParserState jjtree = new JJTParserState();\n        void jjtreeOpenNodeScope(Node n) {\n                ((SimpleNode)n).firstToken = getToken(1);\n        }\n\n        void jjtreeCloseNodeScope(Node n) {\n                ((SimpleNode)n).lastToken = getToken(0);\n        }\n\n        /**\n\t\tRe-initialize the input stream and token source.\n\t*/\n        void reInitInput( Reader in ) {\n                ReInit(in);\n        }\n\n        /**\n\t\tExplicitly re-initialize just the token reader.\n\t\tThis seems to be necessary to avoid certain looping errors when\n\t\treading bogus input.  See Interpreter.\n\t*/\n        void reInitTokenInput( Reader in ) {\n                jj_input_stream.ReInit( in,\n                        jj_input_stream.getEndLine(),\n                        jj_input_stream.getEndColumn() );\n        }\n\n  final public boolean Line() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case 0:\n      jj_consume_token(0);\n        Interpreter.debug(\"End of File!\");\n        {if (true) return true;}\n      break;\n    case BOOLEAN:\n    case BREAK:\n    case BYTE:\n    case CHAR:\n    case CONTINUE:\n    case DO:\n    case DOUBLE:\n    case FALSE:\n    case FINAL:\n    case FLOAT:\n    case FOR:\n    case IF:\n    case IMPORT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case RETURN:\n    case SHORT:\n    case SWITCH:\n    case THROW:\n    case TRUE:\n    case TRY:\n    case VOID:\n    case WHILE:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case LBRACE:\n    case SEMICOLON:\n    case BANG:\n    case TILDE:\n    case INCR:\n    case DECR:\n    case PLUS:\n    case MINUS:\n      if (jj_2_1(2147483647)) {\n        Expression();\n        jj_consume_token(SEMICOLON);\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BREAK:\n        case BYTE:\n        case CHAR:\n        case CONTINUE:\n        case DO:\n        case DOUBLE:\n        case FALSE:\n        case FINAL:\n        case FLOAT:\n        case FOR:\n        case IF:\n        case IMPORT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case RETURN:\n        case SHORT:\n        case SWITCH:\n        case THROW:\n        case TRUE:\n        case TRY:\n        case VOID:\n        case WHILE:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n        case LBRACE:\n        case SEMICOLON:\n        case INCR:\n        case DECR:\n          BlockStatement();\n          break;\n        default:\n          jj_la1[0] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n                {if (true) return false;}\n      break;\n    default:\n      jj_la1[1] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    throw new Error(\"Missing return statement in function\");\n  }\n\n/*****************************************\n * THE JAVA LANGUAGE GRAMMAR STARTS HERE *\n *****************************************/\n  final public void MethodDeclaration() throws ParseException {\n /*@bgen(jjtree) MethodDeclaration */\n  BSHMethodDeclaration jjtn000 = new BSHMethodDeclaration(JJTMETHODDECLARATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_2(2147483647)) {\n        ReturnType();\n        t = jj_consume_token(IDENTIFIER);\n                                    jjtn000.name = t.image;\n        FormalParameters();\n        Block();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          t = jj_consume_token(IDENTIFIER);\n                       jjtn000.name = t.image;\n          FormalParameters();\n          Block();\n          break;\n        default:\n          jj_la1[2] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n      if (jjtc000) {\n        jjtree.clearNodeScope(jjtn000);\n        jjtc000 = false;\n      } else {\n        jjtree.popNode();\n      }\n      if (jjte000 instanceof RuntimeException) {\n        {if (true) throw (RuntimeException)jjte000;}\n      }\n      if (jjte000 instanceof ParseException) {\n        {if (true) throw (ParseException)jjte000;}\n      }\n      {if (true) throw (Error)jjte000;}\n    } finally {\n      if (jjtc000) {\n        jjtree.closeNodeScope(jjtn000, true);\n        jjtreeCloseNodeScope(jjtn000);\n      }\n    }\n  }\n\n  final public void MethodDeclarationLookahead() throws ParseException {\n    if (jj_2_3(2147483647)) {\n      ReturnType();\n      jj_consume_token(IDENTIFIER);\n      FormalParameters();\n      jj_consume_token(LBRACE);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        FormalParameters();\n        jj_consume_token(LBRACE);\n        break;\n      default:\n        jj_la1[3] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void MethodDeclarationTypeLookahead() throws ParseException {\n    ReturnType();\n    jj_consume_token(IDENTIFIER);\n    jj_consume_token(LPAREN);\n  }\n\n  final public void ImportDeclaration() throws ParseException {\n /*@bgen(jjtree) ImportDeclaration */\n    BSHImportDeclaration jjtn000 = new BSHImportDeclaration(JJTIMPORTDECLARATION);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_4(2)) {\n        jj_consume_token(IMPORT);\n        AmbiguousName();\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case DOT:\n          t = jj_consume_token(DOT);\n          jj_consume_token(STAR);\n          break;\n        default:\n          jj_la1[4] = jj_gen;\n          ;\n        }\n        jj_consume_token(SEMICOLON);\n                                                 jjtree.closeNodeScope(jjtn000, true);\n                                                 jjtc000 = false;\n                                                 jjtreeCloseNodeScope(jjtn000);\n    if ( t != null )\n        jjtn000.importPackage = true;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IMPORT:\n          jj_consume_token(IMPORT);\n          jj_consume_token(STAR);\n          jj_consume_token(SEMICOLON);\n                     jjtree.closeNodeScope(jjtn000, true);\n                     jjtc000 = false;\n                     jjtreeCloseNodeScope(jjtn000);\n                jjtn000.superImport = true;\n          break;\n        default:\n          jj_la1[5] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void VariableDeclarator() throws ParseException {\n /*@bgen(jjtree) VariableDeclarator */\n  BSHVariableDeclarator jjtn000 = new BSHVariableDeclarator(JJTVARIABLEDECLARATOR);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ASSIGN:\n        jj_consume_token(ASSIGN);\n        VariableInitializer();\n        break;\n      default:\n        jj_la1[6] = jj_gen;\n        ;\n      }\n                                                 jjtree.closeNodeScope(jjtn000, true);\n                                                 jjtc000 = false;\n                                                 jjtreeCloseNodeScope(jjtn000);\n                                                 jjtn000.name = t.image;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\nCan get rid of this if we ignore postfix array dimensions in declarations.\nI don't like them and I don't want to deal with them right now.\n\nvoid VariableDeclaratorId() #VariableDeclaratorId :\n{ Token t; }\n{\n  t=<IDENTIFIER> { jjtThis.name = t.image; }\n  ( \"[\" \"]\" { jjtThis.addArrayDimension(); } )*\n}\n*/\n  final public void VariableInitializer() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case LBRACE:\n      ArrayInitializer();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n    case INCR:\n    case DECR:\n    case PLUS:\n    case MINUS:\n      Expression();\n      break;\n    default:\n      jj_la1[7] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n  }\n\n  final public void ArrayInitializer() throws ParseException {\n /*@bgen(jjtree) ArrayInitializer */\n  BSHArrayInitializer jjtn000 = new BSHArrayInitializer(JJTARRAYINITIALIZER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case LBRACE:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        VariableInitializer();\n        label_1:\n        while (true) {\n          if (jj_2_5(2)) {\n            ;\n          } else {\n            break label_1;\n          }\n          jj_consume_token(COMMA);\n          VariableInitializer();\n        }\n        break;\n      default:\n        jj_la1[8] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        jj_consume_token(COMMA);\n        break;\n      default:\n        jj_la1[9] = jj_gen;\n        ;\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void FormalParameters() throws ParseException {\n /*@bgen(jjtree) FormalParameters */\n  BSHFormalParameters jjtn000 = new BSHFormalParameters(JJTFORMALPARAMETERS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        FormalParameter();\n        label_2:\n        while (true) {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case COMMA:\n            ;\n            break;\n          default:\n            jj_la1[10] = jj_gen;\n            break label_2;\n          }\n          jj_consume_token(COMMA);\n          FormalParameter();\n        }\n        break;\n      default:\n        jj_la1[11] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\nvoid FormalParameter() #FormalParameter :\n{ Token t; }\n{\n    // added [] to Type for bsh.  Removed [ final ] - is that legal?\n  [ LOOKAHEAD(2) Type() ] t=<IDENTIFIER> { jjtThis.name = t.image; }\n}\n*/\n  final public void FormalParameter() throws ParseException {\n /*@bgen(jjtree) FormalParameter */\n  BSHFormalParameter jjtn000 = new BSHFormalParameter(JJTFORMALPARAMETER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      if (jj_2_6(2)) {\n        Type();\n        t = jj_consume_token(IDENTIFIER);\n                                       jjtree.closeNodeScope(jjtn000, true);\n                                       jjtc000 = false;\n                                       jjtreeCloseNodeScope(jjtn000);\n                                       jjtn000.name = t.image;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          t = jj_consume_token(IDENTIFIER);\n                   jjtree.closeNodeScope(jjtn000, true);\n                   jjtc000 = false;\n                   jjtreeCloseNodeScope(jjtn000);\n                   jjtn000.name = t.image;\n          break;\n        default:\n          jj_la1[12] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tType, name and expression syntax follows.\n*/\n  final public void Type() throws ParseException {\n /*@bgen(jjtree) Type */\n  BSHType jjtn000 = new BSHType(JJTTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n        PrimitiveType();\n        break;\n      case IDENTIFIER:\n        AmbiguousName();\n        break;\n      default:\n        jj_la1[13] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      label_3:\n      while (true) {\n        if (jj_2_7(2)) {\n          ;\n        } else {\n          break label_3;\n        }\n        jj_consume_token(LBRACKET);\n        jj_consume_token(RBRACKET);\n                                 jjtn000.addArrayDimension();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tOriginally called ResultType in the grammar\n*/\n  final public void ReturnType() throws ParseException {\n /*@bgen(jjtree) ReturnType */\n  BSHReturnType jjtn000 = new BSHReturnType(JJTRETURNTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case VOID:\n        jj_consume_token(VOID);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.isVoid = true;\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        Type();\n        break;\n      default:\n        jj_la1[14] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void PrimitiveType() throws ParseException {\n /*@bgen(jjtree) PrimitiveType */\n  BSHPrimitiveType jjtn000 = new BSHPrimitiveType(JJTPRIMITIVETYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n        jj_consume_token(BOOLEAN);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type = Boolean.TYPE;\n        break;\n      case CHAR:\n        jj_consume_token(CHAR);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Character.TYPE;\n        break;\n      case BYTE:\n        jj_consume_token(BYTE);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Byte.TYPE;\n        break;\n      case SHORT:\n        jj_consume_token(SHORT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Short.TYPE;\n        break;\n      case INT:\n        jj_consume_token(INT);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.type =  Integer.TYPE;\n        break;\n      case LONG:\n        jj_consume_token(LONG);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Long.TYPE;\n        break;\n      case FLOAT:\n        jj_consume_token(FLOAT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Float.TYPE;\n        break;\n      case DOUBLE:\n        jj_consume_token(DOUBLE);\n             jjtree.closeNodeScope(jjtn000, true);\n             jjtc000 = false;\n             jjtreeCloseNodeScope(jjtn000);\n             jjtn000.type =  Double.TYPE;\n        break;\n      default:\n        jj_la1[15] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } finally {\n  if (jjtc000) {\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtreeCloseNodeScope(jjtn000);\n  }\n    }\n  }\n\n  final public void AmbiguousName() throws ParseException {\n /*@bgen(jjtree) AmbiguousName */\n    BSHAmbiguousName jjtn000 = new BSHAmbiguousName(JJTAMBIGUOUSNAME);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t;\n    StringBuffer s;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n        s = new StringBuffer(t.image);\n      label_4:\n      while (true) {\n        if (jj_2_8(2)) {\n          ;\n        } else {\n          break label_4;\n        }\n        jj_consume_token(DOT);\n        t = jj_consume_token(IDENTIFIER);\n        s.append(\".\"+t.image);\n      }\n       jjtree.closeNodeScope(jjtn000, true);\n       jjtc000 = false;\n       jjtreeCloseNodeScope(jjtn000);\n        jjtn000.text = s.toString();\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n * Expression syntax follows.\n */\n  final public void Expression() throws ParseException {\n    if (jj_2_9(2147483647)) {\n      Assignment();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ConditionalExpression();\n        break;\n      default:\n        jj_la1[16] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void Assignment() throws ParseException {\n /*@bgen(jjtree) Assignment */\n  BSHAssignment jjtn000 = new BSHAssignment(JJTASSIGNMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);int op ;\n    try {\n      LHSPrimaryExpression();\n      op = AssignmentOperator();\n    jjtn000.operator = op;\n      Expression();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public int AssignmentOperator() throws ParseException {\n  Token t;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case ASSIGN:\n      jj_consume_token(ASSIGN);\n      break;\n    case STARASSIGN:\n      jj_consume_token(STARASSIGN);\n      break;\n    case SLASHASSIGN:\n      jj_consume_token(SLASHASSIGN);\n      break;\n    case MODASSIGN:\n      jj_consume_token(MODASSIGN);\n      break;\n    case PLUSASSIGN:\n      jj_consume_token(PLUSASSIGN);\n      break;\n    case MINUSASSIGN:\n      jj_consume_token(MINUSASSIGN);\n      break;\n    case ANDASSIGN:\n      jj_consume_token(ANDASSIGN);\n      break;\n    case XORASSIGN:\n      jj_consume_token(XORASSIGN);\n      break;\n    case ORASSIGN:\n      jj_consume_token(ORASSIGN);\n      break;\n    case LSHIFTASSIGN:\n      jj_consume_token(LSHIFTASSIGN);\n      break;\n    case LSHIFTASSIGNX:\n      jj_consume_token(LSHIFTASSIGNX);\n      break;\n    case RSIGNEDSHIFTASSIGN:\n      jj_consume_token(RSIGNEDSHIFTASSIGN);\n      break;\n    case RSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RSIGNEDSHIFTASSIGNX);\n      break;\n    case RUNSIGNEDSHIFTASSIGN:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGN);\n      break;\n    case RUNSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGNX);\n      break;\n    default:\n      jj_la1[17] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n        t = getToken(0);\n        {if (true) return t.kind;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public void ConditionalExpression() throws ParseException {\n    ConditionalOrExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case HOOK:\n      jj_consume_token(HOOK);\n      Expression();\n      jj_consume_token(COLON);\n                                                     BSHTernaryExpression jjtn001 = new BSHTernaryExpression(JJTTERNARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n        ConditionalExpression();\n      } catch (Throwable jjte001) {\n                                                     if (jjtc001) {\n                                                       jjtree.clearNodeScope(jjtn001);\n                                                       jjtc001 = false;\n                                                     } else {\n                                                       jjtree.popNode();\n                                                     }\n                                                     if (jjte001 instanceof RuntimeException) {\n                                                       {if (true) throw (RuntimeException)jjte001;}\n                                                     }\n                                                     if (jjte001 instanceof ParseException) {\n                                                       {if (true) throw (ParseException)jjte001;}\n                                                     }\n                                                     {if (true) throw (Error)jjte001;}\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  3);\n                                                       jjtreeCloseNodeScope(jjtn001);\n                                                     }\n      }\n      break;\n    default:\n      jj_la1[18] = jj_gen;\n      ;\n    }\n  }\n\n  final public void ConditionalOrExpression() throws ParseException {\n  Token t=null;\n    ConditionalAndExpression();\n    label_5:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n      case BOOL_ORX:\n        ;\n        break;\n      default:\n        jj_la1[19] = jj_gen;\n        break label_5;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n        t = jj_consume_token(BOOL_OR);\n        break;\n      case BOOL_ORX:\n        t = jj_consume_token(BOOL_ORX);\n        break;\n      default:\n        jj_la1[20] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ConditionalAndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void ConditionalAndExpression() throws ParseException {\n  Token t=null;\n    InclusiveOrExpression();\n    label_6:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n      case BOOL_ANDX:\n        ;\n        break;\n      default:\n        jj_la1[21] = jj_gen;\n        break label_6;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n        t = jj_consume_token(BOOL_AND);\n        break;\n      case BOOL_ANDX:\n        t = jj_consume_token(BOOL_ANDX);\n        break;\n      default:\n        jj_la1[22] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void InclusiveOrExpression() throws ParseException {\n  Token t=null;\n    ExclusiveOrExpression();\n    label_7:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n      case BIT_ORX:\n        ;\n        break;\n      default:\n        jj_la1[23] = jj_gen;\n        break label_7;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n        t = jj_consume_token(BIT_OR);\n        break;\n      case BIT_ORX:\n        t = jj_consume_token(BIT_ORX);\n        break;\n      default:\n        jj_la1[24] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ExclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void ExclusiveOrExpression() throws ParseException {\n  Token t=null;\n    AndExpression();\n    label_8:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case XOR:\n        ;\n        break;\n      default:\n        jj_la1[25] = jj_gen;\n        break label_8;\n      }\n      t = jj_consume_token(XOR);\n      AndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void AndExpression() throws ParseException {\n  Token t=null;\n    EqualityExpression();\n    label_9:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n      case BIT_ANDX:\n        ;\n        break;\n      default:\n        jj_la1[26] = jj_gen;\n        break label_9;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n        t = jj_consume_token(BIT_AND);\n        break;\n      case BIT_ANDX:\n        t = jj_consume_token(BIT_ANDX);\n        break;\n      default:\n        jj_la1[27] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      EqualityExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void EqualityExpression() throws ParseException {\n  Token t = null;\n    InstanceOfExpression();\n    label_10:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n      case NE:\n        ;\n        break;\n      default:\n        jj_la1[28] = jj_gen;\n        break label_10;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n        t = jj_consume_token(EQ);\n        break;\n      case NE:\n        t = jj_consume_token(NE);\n        break;\n      default:\n        jj_la1[29] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InstanceOfExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void InstanceOfExpression() throws ParseException {\n  Token t = null;\n    RelationalExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case INSTANCEOF:\n      t = jj_consume_token(INSTANCEOF);\n      Type();\n                              BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                              boolean jjtc001 = true;\n                              jjtree.openNodeScope(jjtn001);\n                              jjtreeOpenNodeScope(jjtn001);\n      try {\n                              jjtree.closeNodeScope(jjtn001,  2);\n                              jjtc001 = false;\n                              jjtreeCloseNodeScope(jjtn001);\n                              jjtn001.kind = t.kind;\n      } finally {\n                              if (jjtc001) {\n                                jjtree.closeNodeScope(jjtn001,  2);\n                                jjtreeCloseNodeScope(jjtn001);\n                              }\n      }\n      break;\n    default:\n      jj_la1[30] = jj_gen;\n      ;\n    }\n  }\n\n  final public void RelationalExpression() throws ParseException {\n  Token t = null;\n    ShiftExpression();\n    label_11:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case GT:\n      case GTX:\n      case LT:\n      case LTX:\n      case LE:\n      case LEX:\n      case GE:\n      case GEX:\n        ;\n        break;\n      default:\n        jj_la1[31] = jj_gen;\n        break label_11;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LT:\n        t = jj_consume_token(LT);\n        break;\n      case LTX:\n        t = jj_consume_token(LTX);\n        break;\n      case GT:\n        t = jj_consume_token(GT);\n        break;\n      case GTX:\n        t = jj_consume_token(GTX);\n        break;\n      case LE:\n        t = jj_consume_token(LE);\n        break;\n      case LEX:\n        t = jj_consume_token(LEX);\n        break;\n      case GE:\n        t = jj_consume_token(GE);\n        break;\n      case GEX:\n        t = jj_consume_token(GEX);\n        break;\n      default:\n        jj_la1[32] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ShiftExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);\n    }\n      }\n    }\n  }\n\n  final public void ShiftExpression() throws ParseException {\n  Token t = null;\n    AdditiveExpression();\n    label_12:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n      case LSHIFTX:\n      case RSIGNEDSHIFT:\n      case RSIGNEDSHIFTX:\n      case RUNSIGNEDSHIFT:\n      case RUNSIGNEDSHIFTX:\n        ;\n        break;\n      default:\n        jj_la1[33] = jj_gen;\n        break label_12;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n        t = jj_consume_token(LSHIFT);\n        break;\n      case LSHIFTX:\n        t = jj_consume_token(LSHIFTX);\n        break;\n      case RSIGNEDSHIFT:\n        t = jj_consume_token(RSIGNEDSHIFT);\n        break;\n      case RSIGNEDSHIFTX:\n        t = jj_consume_token(RSIGNEDSHIFTX);\n        break;\n      case RUNSIGNEDSHIFT:\n        t = jj_consume_token(RUNSIGNEDSHIFT);\n        break;\n      case RUNSIGNEDSHIFTX:\n        t = jj_consume_token(RUNSIGNEDSHIFTX);\n        break;\n      default:\n        jj_la1[34] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      AdditiveExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);\n    }\n      }\n    }\n  }\n\n  final public void AdditiveExpression() throws ParseException {\n  Token t = null;\n    MultiplicativeExpression();\n    label_13:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n      case MINUS:\n        ;\n        break;\n      default:\n        jj_la1[35] = jj_gen;\n        break label_13;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_la1[36] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      MultiplicativeExpression();\n                                                     BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n                                                     jjtree.closeNodeScope(jjtn001,  2);\n                                                     jjtc001 = false;\n                                                     jjtreeCloseNodeScope(jjtn001);\n                                                     jjtn001.kind = t.kind;\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  2);\n                                                       jjtreeCloseNodeScope(jjtn001);\n                                                     }\n      }\n    }\n  }\n\n  final public void MultiplicativeExpression() throws ParseException {\n  Token t = null;\n    UnaryExpression();\n    label_14:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n      case SLASH:\n      case MOD:\n        ;\n        break;\n      default:\n        jj_la1[37] = jj_gen;\n        break label_14;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n        t = jj_consume_token(STAR);\n        break;\n      case SLASH:\n        t = jj_consume_token(SLASH);\n        break;\n      case MOD:\n        t = jj_consume_token(MOD);\n        break;\n      default:\n        jj_la1[38] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n                      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                      boolean jjtc001 = true;\n                      jjtree.openNodeScope(jjtn001);\n                      jjtreeOpenNodeScope(jjtn001);\n      try {\n                      jjtree.closeNodeScope(jjtn001,  2);\n                      jjtc001 = false;\n                      jjtreeCloseNodeScope(jjtn001);\n                      jjtn001.kind = t.kind;\n      } finally {\n                      if (jjtc001) {\n                        jjtree.closeNodeScope(jjtn001,  2);\n                        jjtreeCloseNodeScope(jjtn001);\n                      }\n      }\n    }\n  }\n\n  final public void UnaryExpression() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case PLUS:\n    case MINUS:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_la1[39] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    case INCR:\n      PreIncrementExpression();\n      break;\n    case DECR:\n      PreDecrementExpression();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n      UnaryExpressionNotPlusMinus();\n      break;\n    default:\n      jj_la1[40] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n  }\n\n  final public void PreIncrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(INCR);\n    LHSPrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n    }\n  }\n\n  final public void PreDecrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(DECR);\n    LHSPrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n    }\n  }\n\n  final public void UnaryExpressionNotPlusMinus() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case BANG:\n    case TILDE:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TILDE:\n        t = jj_consume_token(TILDE);\n        break;\n      case BANG:\n        t = jj_consume_token(BANG);\n        break;\n      default:\n        jj_la1[41] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    default:\n      jj_la1[42] = jj_gen;\n      if (jj_2_10(2147483647)) {\n        CastExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FALSE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case SHORT:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n          PostfixExpression();\n          break;\n        default:\n          jj_la1[43] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    }\n  }\n\n// This production is to determine lookahead only.\n  final public void CastLookahead() throws ParseException {\n    if (jj_2_11(2)) {\n      jj_consume_token(LPAREN);\n      PrimitiveType();\n    } else if (jj_2_12(2147483647)) {\n      jj_consume_token(LPAREN);\n      AmbiguousName();\n      jj_consume_token(LBRACKET);\n      jj_consume_token(RBRACKET);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LPAREN:\n        jj_consume_token(LPAREN);\n        AmbiguousName();\n        jj_consume_token(RPAREN);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case TILDE:\n          jj_consume_token(TILDE);\n          break;\n        case BANG:\n          jj_consume_token(BANG);\n          break;\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          break;\n        case IDENTIFIER:\n          jj_consume_token(IDENTIFIER);\n          break;\n        case NEW:\n          jj_consume_token(NEW);\n          break;\n        case FALSE:\n        case NULL:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n          Literal();\n          break;\n        default:\n          jj_la1[44] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n        break;\n      default:\n        jj_la1[45] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void PostfixExpression() throws ParseException {\n  Token t = null;\n    if (jj_2_13(2147483647)) {\n      LHSPrimaryExpression();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INCR:\n        t = jj_consume_token(INCR);\n        break;\n      case DECR:\n        t = jj_consume_token(DECR);\n        break;\n      default:\n        jj_la1[46] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n                                BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n                                boolean jjtc001 = true;\n                                jjtree.openNodeScope(jjtn001);\n                                jjtreeOpenNodeScope(jjtn001);\n      try {\n                                jjtree.closeNodeScope(jjtn001,  1);\n                                jjtc001 = false;\n                                jjtreeCloseNodeScope(jjtn001);\n                jjtn001.kind = t.kind; jjtn001.postfix = true;\n      } finally {\n                                if (jjtc001) {\n                                  jjtree.closeNodeScope(jjtn001,  1);\n                                  jjtreeCloseNodeScope(jjtn001);\n                                }\n      }\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n        PrimaryExpression();\n        break;\n      default:\n        jj_la1[47] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void CastExpression() throws ParseException {\n /*@bgen(jjtree) CastExpression */\n  BSHCastExpression jjtn000 = new BSHCastExpression(JJTCASTEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_14(2147483647)) {\n        jj_consume_token(LPAREN);\n        Type();\n        jj_consume_token(RPAREN);\n        UnaryExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          Type();\n          jj_consume_token(RPAREN);\n          UnaryExpressionNotPlusMinus();\n          break;\n        default:\n          jj_la1[48] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void PrimaryExpression() throws ParseException {\n                                               /*@bgen(jjtree) PrimaryExpression */\n  BSHPrimaryExpression jjtn000 = new BSHPrimaryExpression(JJTPRIMARYEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      PrimaryPrefix();\n      label_15:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACE:\n        case LBRACKET:\n        case DOT:\n          ;\n          break;\n        default:\n          jj_la1[49] = jj_gen;\n          break label_15;\n        }\n        PrimarySuffix();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void MethodInvocation() throws ParseException {\n                                             /*@bgen(jjtree) MethodInvocation */\n  BSHMethodInvocation jjtn000 = new BSHMethodInvocation(JJTMETHODINVOCATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      AmbiguousName();\n      Arguments();\n    } catch (Throwable jjte000) {\n     if (jjtc000) {\n       jjtree.clearNodeScope(jjtn000);\n       jjtc000 = false;\n     } else {\n       jjtree.popNode();\n     }\n     if (jjte000 instanceof RuntimeException) {\n       {if (true) throw (RuntimeException)jjte000;}\n     }\n     if (jjte000 instanceof ParseException) {\n       {if (true) throw (ParseException)jjte000;}\n     }\n     {if (true) throw (Error)jjte000;}\n    } finally {\n     if (jjtc000) {\n       jjtree.closeNodeScope(jjtn000, true);\n       jjtreeCloseNodeScope(jjtn000);\n     }\n    }\n  }\n\n  final public void PrimaryPrefix() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case FALSE:\n    case NULL:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n      Literal();\n      break;\n    case LPAREN:\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      break;\n    case NEW:\n      AllocationExpression();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case SHORT:\n    case IDENTIFIER:\n      if (jj_2_16(2147483647)) {\n        MethodInvocation();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case SHORT:\n        case IDENTIFIER:\n          if (jj_2_15(2147483647)) {\n            Type();\n          } else {\n            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n            case IDENTIFIER:\n              AmbiguousName();\n              break;\n            default:\n              jj_la1[50] = jj_gen;\n              jj_consume_token(-1);\n              throw new ParseException();\n            }\n          }\n          break;\n        default:\n          jj_la1[51] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n      break;\n    default:\n      jj_la1[52] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n  }\n\n  final public void PrimarySuffix() throws ParseException {\n /*@bgen(jjtree) PrimarySuffix */\n    BSHPrimarySuffix jjtn000 = new BSHPrimarySuffix(JJTPRIMARYSUFFIX);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_17(2)) {\n        jj_consume_token(DOT);\n        jj_consume_token(CLASS);\n                jjtree.closeNodeScope(jjtn000, true);\n                jjtc000 = false;\n                jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.CLASS;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.INDEX;\n          break;\n        case DOT:\n          jj_consume_token(DOT);\n          t = jj_consume_token(IDENTIFIER);\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LPAREN:\n            Arguments();\n            break;\n          default:\n            jj_la1[53] = jj_gen;\n            ;\n          }\n                                         jjtree.closeNodeScope(jjtn000, true);\n                                         jjtc000 = false;\n                                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.NAME;\n        jjtn000.field = t.image;\n          break;\n        case LBRACE:\n          jj_consume_token(LBRACE);\n          Expression();\n          jj_consume_token(RBRACE);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.PROPERTY;\n          break;\n        default:\n          jj_la1[54] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tBegin LHS part of the grammar --\n\n\tThe reason this stuff is duplicated (e.g. LHSPrimaryPrefix and \n\tPrimaryPrefix) is that the whole grammar splits based on whether we \n\tare preparig to do an assignment or not.  This is an important issue \n\tto revisit in the future.\n*/\n/**\n\tThe method invocation is here to force this to an object type in order \n\tto simplify the suffix processing.  \n*/\n  final public void LHSPrimaryPrefix() throws ParseException {\n    if (jj_2_18(2147483647)) {\n      MethodInvocation();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        AmbiguousName();\n        break;\n      default:\n        jj_la1[55] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void LHSPrimaryExpression() throws ParseException {\n                                                     /*@bgen(jjtree) LHSPrimaryExpression */\n  BSHLHSPrimaryExpression jjtn000 = new BSHLHSPrimaryExpression(JJTLHSPRIMARYEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      LHSPrimaryPrefix();\n      label_16:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACE:\n        case LBRACKET:\n        case DOT:\n          ;\n          break;\n        default:\n          jj_la1[56] = jj_gen;\n          break label_16;\n        }\n        LHSPrimarySuffix();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void LHSPrimarySuffix() throws ParseException {\n /*@bgen(jjtree) LHSPrimarySuffix */\n    BSHLHSPrimarySuffix jjtn000 = new BSHLHSPrimarySuffix(JJTLHSPRIMARYSUFFIX);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t=null, t1, t2 = null;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACKET:\n        jj_consume_token(LBRACKET);\n        Expression();\n        jj_consume_token(RBRACKET);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.INDEX;\n        break;\n      case DOT:\n        jj_consume_token(DOT);\n        t1 = jj_consume_token(IDENTIFIER);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LPAREN:\n          Arguments();\n          jj_consume_token(DOT);\n          t2 = jj_consume_token(IDENTIFIER);\n          break;\n        default:\n          jj_la1[57] = jj_gen;\n          ;\n        }\n                                                                jjtree.closeNodeScope(jjtn000, true);\n                                                                jjtc000 = false;\n                                                                jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.NAME;\n        if ( t2 == null )\n            jjtn000.field = t1.image;\n        else {\n            jjtn000.method = t1.image;\n            jjtn000.field = t2.image;\n        }\n        break;\n      case LBRACE:\n        jj_consume_token(LBRACE);\n        Expression();\n        jj_consume_token(RBRACE);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.PROPERTY;\n        break;\n      default:\n        jj_la1[58] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\t-- End LHS part of the grammar\n*/\n  final public void Literal() throws ParseException {\n /*@bgen(jjtree) Literal */\n    BSHLiteral jjtn000 = new BSHLiteral(JJTLITERAL);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token x;\n    boolean b;\n    String literal;\n    char ch;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INTEGER_LITERAL:\n        x = jj_consume_token(INTEGER_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'l' || ch == 'L')\n    {\n        literal = literal.substring(0,literal.length()-1);\n\n        // This really should be Long.decode, but there isn't one. As a result,\n        // hex and octal literals ending in 'l' or 'L' don't work.\n        jjtn000.value = new Primitive( new Long( literal ) );\n    }\n    else\n        jjtn000.value = new Primitive( Integer.decode( literal ) );\n        break;\n      case FLOATING_POINT_LITERAL:\n        x = jj_consume_token(FLOATING_POINT_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'f' || ch == 'F')\n    {\n        literal = literal.substring(0,literal.length()-1);\n        jjtn000.value = new Primitive( new Float( literal ) );\n    }\n    else\n    {\n        if(ch == 'd' || ch == 'D')\n            literal = literal.substring(0,literal.length()-1);\n\n        jjtn000.value = new Primitive( new Double( literal ) );\n    }\n        break;\n      case CHARACTER_LITERAL:\n        x = jj_consume_token(CHARACTER_LITERAL);\n                            jjtree.closeNodeScope(jjtn000, true);\n                            jjtc000 = false;\n                            jjtreeCloseNodeScope(jjtn000);\n                try {\n                jjtn000.charSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw new ParseException(\"Error parsing character: \"+x.image);}\n                }\n        break;\n      case STRING_LITERAL:\n        x = jj_consume_token(STRING_LITERAL);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n                try {\n                        jjtn000.stringSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw new ParseException(\"Error parsing string: \"+x.image);}\n                }\n        break;\n      case FALSE:\n      case TRUE:\n        b = BooleanLiteral();\n                          jjtree.closeNodeScope(jjtn000, true);\n                          jjtc000 = false;\n                          jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = new Primitive( new Boolean(b) );\n        break;\n      case NULL:\n        NullLiteral();\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.NULL;\n        break;\n      case VOID:\n        VoidLiteral();\n                 jjtree.closeNodeScope(jjtn000, true);\n                 jjtc000 = false;\n                 jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.VOID;\n        break;\n      default:\n        jj_la1[59] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public boolean BooleanLiteral() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case TRUE:\n      jj_consume_token(TRUE);\n           {if (true) return true;}\n      break;\n    case FALSE:\n      jj_consume_token(FALSE);\n            {if (true) return false;}\n      break;\n    default:\n      jj_la1[60] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public void NullLiteral() throws ParseException {\n    jj_consume_token(NULL);\n  }\n\n  final public void VoidLiteral() throws ParseException {\n    jj_consume_token(VOID);\n  }\n\n  final public void Arguments() throws ParseException {\n /*@bgen(jjtree) Arguments */\n  BSHArguments jjtn000 = new BSHArguments(JJTARGUMENTS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ArgumentList();\n        break;\n      default:\n        jj_la1[61] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n// leave these on the stack for Arguments() to handle\n  final public void ArgumentList() throws ParseException {\n    Expression();\n    label_17:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        ;\n        break;\n      default:\n        jj_la1[62] = jj_gen;\n        break label_17;\n      }\n      jj_consume_token(COMMA);\n      Expression();\n    }\n  }\n\n  final public void AllocationExpression() throws ParseException {\n /*@bgen(jjtree) AllocationExpression */\n  BSHAllocationExpression jjtn000 = new BSHAllocationExpression(JJTALLOCATIONEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_20(2)) {\n        jj_consume_token(NEW);\n        PrimitiveType();\n        ArrayDimensions();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case NEW:\n          jj_consume_token(NEW);\n          AmbiguousName();\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LBRACKET:\n            ArrayDimensions();\n            break;\n          case LPAREN:\n            Arguments();\n            if (jj_2_19(2)) {\n              Block();\n            } else {\n              ;\n            }\n            break;\n          default:\n            jj_la1[63] = jj_gen;\n            jj_consume_token(-1);\n            throw new ParseException();\n          }\n          break;\n        default:\n          jj_la1[64] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ArrayDimensions() throws ParseException {\n /*@bgen(jjtree) ArrayDimensions */\n  BSHArrayDimensions jjtn000 = new BSHArrayDimensions(JJTARRAYDIMENSIONS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_22(2)) {\n        label_18:\n        while (true) {\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                                        jjtn000.addArrayDimension();\n          if (jj_2_21(2)) {\n            ;\n          } else {\n            break label_18;\n          }\n        }\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          label_19:\n          while (true) {\n            jj_consume_token(LBRACKET);\n            jj_consume_token(RBRACKET);\n              jjtn000.addArrayDimension();\n            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n            case LBRACKET:\n              ;\n              break;\n            default:\n              jj_la1[65] = jj_gen;\n              break label_19;\n            }\n          }\n          ArrayInitializer();\n          break;\n        default:\n          jj_la1[66] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n * Statement syntax follows.\n */\n  final public void Statement() throws ParseException {\n    if (jj_2_23(2)) {\n      LabeledStatement();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACE:\n        Block();\n        break;\n      case SEMICOLON:\n        EmptyStatement();\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        StatementExpression();\n        jj_consume_token(SEMICOLON);\n        break;\n      case SWITCH:\n        SwitchStatement();\n        break;\n      case IF:\n        IfStatement();\n        break;\n      case WHILE:\n        WhileStatement();\n        break;\n      case DO:\n        DoStatement();\n        break;\n      case FOR:\n        ForStatement();\n        break;\n      case BREAK:\n        BreakStatement();\n        break;\n      case CONTINUE:\n        ContinueStatement();\n        break;\n      case RETURN:\n        ReturnStatement();\n        break;\n      case THROW:\n        ThrowStatement();\n        break;\n      case TRY:\n        TryStatement();\n        break;\n      default:\n        jj_la1[67] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void LabeledStatement() throws ParseException {\n    jj_consume_token(IDENTIFIER);\n    jj_consume_token(COLON);\n    Statement();\n  }\n\n  final public void Block() throws ParseException {\n /*@bgen(jjtree) Block */\n  BSHBlock jjtn000 = new BSHBlock(JJTBLOCK);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      label_20:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BREAK:\n        case BYTE:\n        case CHAR:\n        case CONTINUE:\n        case DO:\n        case DOUBLE:\n        case FALSE:\n        case FINAL:\n        case FLOAT:\n        case FOR:\n        case IF:\n        case IMPORT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case RETURN:\n        case SHORT:\n        case SWITCH:\n        case THROW:\n        case TRUE:\n        case TRY:\n        case VOID:\n        case WHILE:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n        case LBRACE:\n        case SEMICOLON:\n        case INCR:\n        case DECR:\n          ;\n          break;\n        default:\n          jj_la1[68] = jj_gen;\n          break label_20;\n        }\n        BlockStatement();\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void BlockStatement() throws ParseException {\n    if (jj_2_24(2147483647)) {\n      MethodDeclaration();\n    } else if (jj_2_25(2147483647)) {\n      TypedVariableDeclaration();\n      jj_consume_token(SEMICOLON);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BREAK:\n      case BYTE:\n      case CHAR:\n      case CONTINUE:\n      case DO:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case FOR:\n      case IF:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case RETURN:\n      case SHORT:\n      case SWITCH:\n      case THROW:\n      case TRUE:\n      case TRY:\n      case VOID:\n      case WHILE:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case LBRACE:\n      case SEMICOLON:\n      case INCR:\n      case DECR:\n        Statement();\n        break;\n      case IMPORT:\n        ImportDeclaration();\n        break;\n      default:\n        jj_la1[69] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void EmptyStatement() throws ParseException {\n    jj_consume_token(SEMICOLON);\n  }\n\n  final public void StatementExpression() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case INCR:\n      PreIncrementExpression();\n      break;\n    case DECR:\n      PreDecrementExpression();\n      break;\n    default:\n      jj_la1[70] = jj_gen;\n      if (jj_2_26(2147483647)) {\n        Assignment();\n\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FALSE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case SHORT:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n          PostfixExpression();\n          break;\n        default:\n          jj_la1[71] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    }\n  }\n\n  final public void SwitchStatement() throws ParseException {\n /*@bgen(jjtree) SwitchStatement */\n  BSHSwitchStatement jjtn000 = new BSHSwitchStatement(JJTSWITCHSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(SWITCH);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(LBRACE);\n      label_21:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CASE:\n        case _DEFAULT:\n          ;\n          break;\n        default:\n          jj_la1[72] = jj_gen;\n          break label_21;\n        }\n        SwitchLabel();\n        label_22:\n        while (true) {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case BOOLEAN:\n          case BREAK:\n          case BYTE:\n          case CHAR:\n          case CONTINUE:\n          case DO:\n          case DOUBLE:\n          case FALSE:\n          case FINAL:\n          case FLOAT:\n          case FOR:\n          case IF:\n          case IMPORT:\n          case INT:\n          case LONG:\n          case NEW:\n          case NULL:\n          case RETURN:\n          case SHORT:\n          case SWITCH:\n          case THROW:\n          case TRUE:\n          case TRY:\n          case VOID:\n          case WHILE:\n          case INTEGER_LITERAL:\n          case FLOATING_POINT_LITERAL:\n          case CHARACTER_LITERAL:\n          case STRING_LITERAL:\n          case IDENTIFIER:\n          case LPAREN:\n          case LBRACE:\n          case SEMICOLON:\n          case INCR:\n          case DECR:\n            ;\n            break;\n          default:\n            jj_la1[73] = jj_gen;\n            break label_22;\n          }\n          BlockStatement();\n        }\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void SwitchLabel() throws ParseException {\n /*@bgen(jjtree) SwitchLabel */\n  BSHSwitchLabel jjtn000 = new BSHSwitchLabel(JJTSWITCHLABEL);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CASE:\n        jj_consume_token(CASE);\n        Expression();\n        jj_consume_token(COLON);\n        break;\n      case _DEFAULT:\n        jj_consume_token(_DEFAULT);\n        jj_consume_token(COLON);\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n                  jjtn000.isDefault = true;\n        break;\n      default:\n        jj_la1[74] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void IfStatement() throws ParseException {\n /*@bgen(jjtree) IfStatement */\n  BSHIfStatement jjtn000 = new BSHIfStatement(JJTIFSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(IF);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ELSE:\n        jj_consume_token(ELSE);\n        Statement();\n        break;\n      default:\n        jj_la1[75] = jj_gen;\n        ;\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void WhileStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tDo statement is just a While statement with a special hook to execute\n\tat least once.\n*/\n  final public void DoStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(DO);\n      Statement();\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(SEMICOLON);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.isDoStatement=true;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ForStatement() throws ParseException {\n /*@bgen(jjtree) ForStatement */\n  BSHForStatement jjtn000 = new BSHForStatement(JJTFORSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(FOR);\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FINAL:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        ForInit();\n                          jjtn000.hasForInit=true;\n        break;\n      default:\n        jj_la1[76] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n                         jjtn000.hasExpression=true;\n        break;\n      default:\n        jj_la1[77] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        ForUpdate();\n                        jjtn000.hasForUpdate=true;\n        break;\n      default:\n        jj_la1[78] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ForInit() throws ParseException {\n  Token t = null;\n    if (jj_2_27(2147483647)) {\n      TypedVariableDeclaration();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        StatementExpressionList();\n        break;\n      default:\n        jj_la1[79] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n/**\n\tDeclared a typed variable.\n\tUntyped variables are not declared per-se but are handled by the part\n\tof the grammar that deals with assignments.\n*/\n  final public void TypedVariableDeclaration() throws ParseException {\n /*@bgen(jjtree) TypedVariableDeclaration */\n        BSHTypedVariableDeclaration jjtn000 = new BSHTypedVariableDeclaration(JJTTYPEDVARIABLEDECLARATION);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FINAL:\n        t = jj_consume_token(FINAL);\n        break;\n      default:\n        jj_la1[80] = jj_gen;\n        ;\n      }\n      Type();\n      VariableDeclarator();\n      label_23:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          jj_la1[81] = jj_gen;\n          break label_23;\n        }\n        jj_consume_token(COMMA);\n        VariableDeclarator();\n      }\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n        jjtn000.isFinal = (t!=null);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void StatementExpressionList() throws ParseException {\n /*@bgen(jjtree) StatementExpressionList */\n  BSHStatementExpressionList jjtn000 = new BSHStatementExpressionList(JJTSTATEMENTEXPRESSIONLIST);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      StatementExpression();\n      label_24:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          jj_la1[82] = jj_gen;\n          break label_24;\n        }\n        jj_consume_token(COMMA);\n        StatementExpression();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ForUpdate() throws ParseException {\n    StatementExpressionList();\n  }\n\n  final public void BreakStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(BREAK);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        jj_la1[83] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                 jjtree.closeNodeScope(jjtn000, true);\n                                 jjtc000 = false;\n                                 jjtreeCloseNodeScope(jjtn000);\n                                 jjtn000.kind = BREAK;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ContinueStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(CONTINUE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        jj_la1[84] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                    jjtree.closeNodeScope(jjtn000, true);\n                                    jjtc000 = false;\n                                    jjtreeCloseNodeScope(jjtn000);\n                                    jjtn000.kind = CONTINUE;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ReturnStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(RETURN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n        break;\n      default:\n        jj_la1[85] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                  jjtree.closeNodeScope(jjtn000, true);\n                                  jjtc000 = false;\n                                  jjtreeCloseNodeScope(jjtn000);\n                                  jjtn000.kind = RETURN;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ThrowStatement() throws ParseException {\n /*@bgen(jjtree) ThrowStatement */\n  BSHThrowStatement jjtn000 = new BSHThrowStatement(JJTTHROWSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(THROW);\n      Expression();\n      jj_consume_token(SEMICOLON);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void TryStatement() throws ParseException {\n /*@bgen(jjtree) TryStatement */\n  BSHTryStatement jjtn000 = new BSHTryStatement(JJTTRYSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(TRY);\n      Block();\n      label_25:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CATCH:\n          ;\n          break;\n        default:\n          jj_la1[86] = jj_gen;\n          break label_25;\n        }\n        jj_consume_token(CATCH);\n        jj_consume_token(LPAREN);\n        FormalParameter();\n        jj_consume_token(RPAREN);\n        Block();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FINALLY:\n        jj_consume_token(FINALLY);\n        Block();\n        break;\n      default:\n        jj_la1[87] = jj_gen;\n        ;\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final private boolean jj_2_1(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_1();\n    jj_save(0, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_2(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_2();\n    jj_save(1, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_3(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_3();\n    jj_save(2, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_4(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_4();\n    jj_save(3, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_5(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_5();\n    jj_save(4, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_6(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_6();\n    jj_save(5, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_7(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_7();\n    jj_save(6, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_8(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_8();\n    jj_save(7, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_9(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_9();\n    jj_save(8, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_10(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_10();\n    jj_save(9, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_11(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_11();\n    jj_save(10, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_12(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_12();\n    jj_save(11, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_13(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_13();\n    jj_save(12, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_14(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_14();\n    jj_save(13, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_15(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_15();\n    jj_save(14, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_16(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_16();\n    jj_save(15, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_17(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_17();\n    jj_save(16, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_18(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_18();\n    jj_save(17, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_19(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_19();\n    jj_save(18, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_20(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_20();\n    jj_save(19, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_21(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_21();\n    jj_save(20, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_22(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_22();\n    jj_save(21, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_23(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_23();\n    jj_save(22, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_24(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_24();\n    jj_save(23, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_25(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_25();\n    jj_save(24, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_26(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_26();\n    jj_save(25, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_27(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_27();\n    jj_save(26, xla);\n    return retval;\n  }\n\n  final private boolean jj_3R_43() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_27() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_43()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_81() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_142() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_247() {\n    if (jj_scan_token(ELSE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_40() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_80()) {\n    jj_scanpos = xsp;\n    if (jj_3R_81()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_80() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_2() {\n    if (jj_3R_27()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_120() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_142()) {\n    jj_scanpos = xsp;\n    if (jj_3R_143()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_119() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_273() {\n    if (jj_3R_274()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_248() {\n    if (jj_3R_265()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_272() {\n    if (jj_3R_136()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_265() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_272()) {\n    jj_scanpos = xsp;\n    if (jj_3R_273()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_250() {\n    if (jj_3R_266()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_249() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_153() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_36() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_152() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_83() {\n    if (jj_3R_105()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_95() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_135() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_152()) {\n    jj_scanpos = xsp;\n    if (jj_3R_153()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_35() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_104() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_119()) {\n    jj_scanpos = xsp;\n    if (jj_3R_120()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_103() {\n    if (jj_3R_118()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_185() {\n    if (jj_scan_token(FOR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_248()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_249()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_250()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_94() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_102() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_82() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_101()) {\n    jj_scanpos = xsp;\n    if (jj_3R_102()) {\n    jj_scanpos = xsp;\n    if (jj_3R_103()) {\n    jj_scanpos = xsp;\n    if (jj_3R_104()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_101() {\n    if (jj_3R_111()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_1() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_184() {\n    if (jj_scan_token(DO)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_37() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_93() {\n    if (jj_scan_token(BANG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_14() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_279() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_42() {\n    if (jj_3R_82()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_83()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_92() {\n    if (jj_scan_token(TILDE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_183() {\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_285() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_269()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_284() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_242()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_278() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_283() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_284()) {\n    jj_scanpos = xsp;\n    if (jj_3R_285()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_13() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_35()) {\n    jj_scanpos = xsp;\n    if (jj_3R_36()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_264() {\n    if (jj_3R_99()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_182() {\n    if (jj_scan_token(IF)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_247()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_213() {\n    if (jj_3R_42()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_12() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_212() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_278()) {\n    jj_scanpos = xsp;\n    if (jj_3R_279()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_205() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_212()) {\n    jj_scanpos = xsp;\n    if (jj_3R_213()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_271() {\n    if (jj_scan_token(_DEFAULT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_270() {\n    if (jj_scan_token(CASE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_263() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_270()) {\n    jj_scanpos = xsp;\n    if (jj_3R_271()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_246() {\n    if (jj_3R_263()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_264()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_69() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_92()) {\n    jj_scanpos = xsp;\n    if (jj_3R_93()) {\n    jj_scanpos = xsp;\n    if (jj_3R_94()) {\n    jj_scanpos = xsp;\n    if (jj_3R_95()) {\n    jj_scanpos = xsp;\n    if (jj_3R_96()) {\n    jj_scanpos = xsp;\n    if (jj_3R_97()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_68() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_10() {\n    if (jj_3R_33()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_26() {\n    if (jj_3R_42()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_181() {\n    if (jj_scan_token(SWITCH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_246()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_11() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_33() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_11()) {\n    jj_scanpos = xsp;\n    if (jj_3R_68()) {\n    jj_scanpos = xsp;\n    if (jj_3R_69()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_282() {\n    if (jj_scan_token(BANG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_277() {\n    if (jj_3R_205()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_262() {\n    if (jj_scan_token(MOD)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_199() {\n    if (jj_3R_205()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_276() {\n    if (jj_3R_283()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_198() {\n    if (jj_3R_84()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_281() {\n    if (jj_scan_token(TILDE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_275() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_281()) {\n    jj_scanpos = xsp;\n    if (jj_3R_282()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_242()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_269() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_275()) {\n    jj_scanpos = xsp;\n    if (jj_3R_276()) {\n    jj_scanpos = xsp;\n    if (jj_3R_277()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_197() {\n    if (jj_3R_204()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_196() {\n    if (jj_3R_203()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_180() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_196()) {\n    jj_scanpos = xsp;\n    if (jj_3R_197()) {\n    jj_scanpos = xsp;\n    if (jj_3R_198()) {\n    jj_scanpos = xsp;\n    if (jj_3R_199()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_261() {\n    if (jj_scan_token(SLASH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_237() {\n    if (jj_scan_token(RSIGNEDSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_204() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_260() {\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_179() {\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_243() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_260()) {\n    jj_scanpos = xsp;\n    if (jj_3R_261()) {\n    jj_scanpos = xsp;\n    if (jj_3R_262()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_242()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_203() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_41() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_236() {\n    if (jj_scan_token(RSIGNEDSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_268() {\n    if (jj_scan_token(MINUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_25() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_41()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_116() {\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_24() {\n    if (jj_3R_40()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_259() {\n    if (jj_3R_269()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_229() {\n    if (jj_scan_token(GEX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_258() {\n    if (jj_3R_204()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_257() {\n    if (jj_3R_203()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_115() {\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_267() {\n    if (jj_scan_token(PLUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_225() {\n    if (jj_scan_token(GTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_256() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_267()) {\n    jj_scanpos = xsp;\n    if (jj_3R_268()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_242()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_242() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_256()) {\n    jj_scanpos = xsp;\n    if (jj_3R_257()) {\n    jj_scanpos = xsp;\n    if (jj_3R_258()) {\n    jj_scanpos = xsp;\n    if (jj_3R_259()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_114() {\n    if (jj_3R_136()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_245() {\n    if (jj_scan_token(MINUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_99() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_113()) {\n    jj_scanpos = xsp;\n    if (jj_3R_114()) {\n    jj_scanpos = xsp;\n    if (jj_3R_115()) {\n    jj_scanpos = xsp;\n    if (jj_3R_116()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_113() {\n    if (jj_3R_135()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_228() {\n    if (jj_scan_token(GE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_79() {\n    if (jj_3R_99()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_239() {\n    if (jj_scan_token(RUNSIGNEDSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_232() {\n    if (jj_3R_242()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_243()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_224() {\n    if (jj_scan_token(GT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_235() {\n    if (jj_scan_token(LSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_244() {\n    if (jj_scan_token(PLUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_38() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_79()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_233() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_244()) {\n    jj_scanpos = xsp;\n    if (jj_3R_245()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_232()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_217() {\n    if (jj_scan_token(NE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_220() {\n    if (jj_3R_232()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_233()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_39() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_227() {\n    if (jj_scan_token(LEX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_238() {\n    if (jj_scan_token(RUNSIGNEDSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_234() {\n    if (jj_scan_token(LSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_223() {\n    if (jj_scan_token(LTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_221() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_234()) {\n    jj_scanpos = xsp;\n    if (jj_3R_235()) {\n    jj_scanpos = xsp;\n    if (jj_3R_236()) {\n    jj_scanpos = xsp;\n    if (jj_3R_237()) {\n    jj_scanpos = xsp;\n    if (jj_3R_238()) {\n    jj_scanpos = xsp;\n    if (jj_3R_239()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_220()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_167() {\n    if (jj_3R_190()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_216() {\n    if (jj_scan_token(EQ)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_166() {\n    if (jj_3R_189()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_218() {\n    if (jj_3R_220()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_221()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_209() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_216()) {\n    jj_scanpos = xsp;\n    if (jj_3R_217()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_208()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_165() {\n    if (jj_3R_188()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_164() {\n    if (jj_3R_187()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_226() {\n    if (jj_scan_token(LE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_222() {\n    if (jj_scan_token(LT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_163() {\n    if (jj_3R_186()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_219() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_222()) {\n    jj_scanpos = xsp;\n    if (jj_3R_223()) {\n    jj_scanpos = xsp;\n    if (jj_3R_224()) {\n    jj_scanpos = xsp;\n    if (jj_3R_225()) {\n    jj_scanpos = xsp;\n    if (jj_3R_226()) {\n    jj_scanpos = xsp;\n    if (jj_3R_227()) {\n    jj_scanpos = xsp;\n    if (jj_3R_228()) {\n    jj_scanpos = xsp;\n    if (jj_3R_229()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_218()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_162() {\n    if (jj_3R_185()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_161() {\n    if (jj_3R_184()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_214() {\n    if (jj_3R_218()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_219()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_160() {\n    if (jj_3R_183()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_159() {\n    if (jj_3R_182()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_215() {\n    if (jj_scan_token(INSTANCEOF)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_158() {\n    if (jj_3R_181()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_208() {\n    if (jj_3R_214()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_215()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_157() {\n    if (jj_3R_180()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_19() {\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_211() {\n    if (jj_scan_token(BIT_ANDX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_156() {\n    if (jj_3R_179()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_155() {\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_193() {\n    if (jj_scan_token(XOR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_192()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_23() {\n    if (jj_3R_39()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_137() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_23()) {\n    jj_scanpos = xsp;\n    if (jj_3R_155()) {\n    jj_scanpos = xsp;\n    if (jj_3R_156()) {\n    jj_scanpos = xsp;\n    if (jj_3R_157()) {\n    jj_scanpos = xsp;\n    if (jj_3R_158()) {\n    jj_scanpos = xsp;\n    if (jj_3R_159()) {\n    jj_scanpos = xsp;\n    if (jj_3R_160()) {\n    jj_scanpos = xsp;\n    if (jj_3R_161()) {\n    jj_scanpos = xsp;\n    if (jj_3R_162()) {\n    jj_scanpos = xsp;\n    if (jj_3R_163()) {\n    jj_scanpos = xsp;\n    if (jj_3R_164()) {\n    jj_scanpos = xsp;\n    if (jj_3R_165()) {\n    jj_scanpos = xsp;\n    if (jj_3R_166()) {\n    jj_scanpos = xsp;\n    if (jj_3R_167()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_201() {\n    if (jj_3R_208()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_209()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_61() {\n    if (jj_scan_token(ORASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_210() {\n    if (jj_scan_token(BIT_AND)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_202() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_210()) {\n    jj_scanpos = xsp;\n    if (jj_3R_211()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_201()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_172() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_19()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_200() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_192() {\n    if (jj_3R_201()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_202()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_191() {\n    Token xsp;\n    if (jj_3R_200()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_200()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_3R_88()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_171() {\n    if (jj_3R_170()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_60() {\n    if (jj_scan_token(XORASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_195() {\n    if (jj_scan_token(BIT_ORX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_21() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_170() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_22()) {\n    jj_scanpos = xsp;\n    if (jj_3R_191()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_22() {\n    Token xsp;\n    if (jj_3_21()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_21()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_173() {\n    if (jj_3R_192()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_193()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_59() {\n    if (jj_scan_token(ANDASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_65() {\n    if (jj_scan_token(RSIGNEDSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_176() {\n    if (jj_scan_token(BOOL_ANDX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_194() {\n    if (jj_scan_token(BIT_OR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_107() {\n    if (jj_scan_token(HOOK)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_85()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_174() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_194()) {\n    jj_scanpos = xsp;\n    if (jj_3R_195()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_173()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_58() {\n    if (jj_scan_token(MINUSASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_145() {\n    if (jj_3R_173()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_174()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_64() {\n    if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_141() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_171()) {\n    jj_scanpos = xsp;\n    if (jj_3R_172()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_148() {\n    if (jj_scan_token(BOOL_ORX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_20() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_170()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_118() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_20()) {\n    jj_scanpos = xsp;\n    if (jj_3R_141()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_175() {\n    if (jj_scan_token(BOOL_AND)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_57() {\n    if (jj_scan_token(PLUSASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_146() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_175()) {\n    jj_scanpos = xsp;\n    if (jj_3R_176()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_145()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_134() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_124() {\n    if (jj_3R_145()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_146()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_112() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_134()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_98() {\n    if (jj_3R_112()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_56() {\n    if (jj_scan_token(MODASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_147() {\n    if (jj_scan_token(BOOL_OR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_125() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_147()) {\n    jj_scanpos = xsp;\n    if (jj_3R_148()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_124()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_78() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_98()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_106() {\n    if (jj_3R_124()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_125()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_55() {\n    if (jj_scan_token(SLASHASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_67() {\n    if (jj_scan_token(RUNSIGNEDSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_151() {\n    if (jj_scan_token(VOID)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_63() {\n    if (jj_scan_token(LSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_85() {\n    if (jj_3R_106()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_107()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_54() {\n    if (jj_scan_token(STARASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_150() {\n    if (jj_scan_token(NULL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_66() {\n    if (jj_scan_token(RUNSIGNEDSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_62() {\n    if (jj_scan_token(LSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_53() {\n    if (jj_scan_token(ASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_32() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_53()) {\n    jj_scanpos = xsp;\n    if (jj_3R_54()) {\n    jj_scanpos = xsp;\n    if (jj_3R_55()) {\n    jj_scanpos = xsp;\n    if (jj_3R_56()) {\n    jj_scanpos = xsp;\n    if (jj_3R_57()) {\n    jj_scanpos = xsp;\n    if (jj_3R_58()) {\n    jj_scanpos = xsp;\n    if (jj_3R_59()) {\n    jj_scanpos = xsp;\n    if (jj_3R_60()) {\n    jj_scanpos = xsp;\n    if (jj_3R_61()) {\n    jj_scanpos = xsp;\n    if (jj_3R_62()) {\n    jj_scanpos = xsp;\n    if (jj_3R_63()) {\n    jj_scanpos = xsp;\n    if (jj_3R_64()) {\n    jj_scanpos = xsp;\n    if (jj_3R_65()) {\n    jj_scanpos = xsp;\n    if (jj_3R_66()) {\n    jj_scanpos = xsp;\n    if (jj_3R_67()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_178() {\n    if (jj_scan_token(FALSE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_177() {\n    if (jj_scan_token(TRUE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_149() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_177()) {\n    jj_scanpos = xsp;\n    if (jj_3R_178()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_9() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_133() {\n    if (jj_3R_151()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_84() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_132() {\n    if (jj_3R_150()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_131() {\n    if (jj_3R_149()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_45() {\n    if (jj_3R_85()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_44() {\n    if (jj_3R_84()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_26() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_44()) {\n    jj_scanpos = xsp;\n    if (jj_3R_45()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_130() {\n    if (jj_scan_token(STRING_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_129() {\n    if (jj_scan_token(CHARACTER_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_8() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_28() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_8()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_128() {\n    if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_207() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_77() {\n    if (jj_scan_token(DOUBLE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_76() {\n    if (jj_scan_token(FLOAT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_75() {\n    if (jj_scan_token(LONG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_74() {\n    if (jj_scan_token(INT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_50() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_73() {\n    if (jj_scan_token(SHORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_72() {\n    if (jj_scan_token(BYTE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_71() {\n    if (jj_scan_token(CHAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_34() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_70()) {\n    jj_scanpos = xsp;\n    if (jj_3R_71()) {\n    jj_scanpos = xsp;\n    if (jj_3R_72()) {\n    jj_scanpos = xsp;\n    if (jj_3R_73()) {\n    jj_scanpos = xsp;\n    if (jj_3R_74()) {\n    jj_scanpos = xsp;\n    if (jj_3R_75()) {\n    jj_scanpos = xsp;\n    if (jj_3R_76()) {\n    jj_scanpos = xsp;\n    if (jj_3R_77()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_70() {\n    if (jj_scan_token(BOOLEAN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_87() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_111() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_127()) {\n    jj_scanpos = xsp;\n    if (jj_3R_128()) {\n    jj_scanpos = xsp;\n    if (jj_3R_129()) {\n    jj_scanpos = xsp;\n    if (jj_3R_130()) {\n    jj_scanpos = xsp;\n    if (jj_3R_131()) {\n    jj_scanpos = xsp;\n    if (jj_3R_132()) {\n    jj_scanpos = xsp;\n    if (jj_3R_133()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_127() {\n    if (jj_scan_token(INTEGER_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_46() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_86()) {\n    jj_scanpos = xsp;\n    if (jj_3R_87()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_86() {\n    if (jj_scan_token(VOID)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_7() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_126() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_49() {\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_30() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_49()) {\n    jj_scanpos = xsp;\n    if (jj_3R_50()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_7()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_110() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_140() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_139()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_52() {\n    if (jj_3R_91()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_169() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_109() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_126()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_6() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_139() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_6()) {\n    jj_scanpos = xsp;\n    if (jj_3R_169()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_108() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_91() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_108()) {\n    jj_scanpos = xsp;\n    if (jj_3R_109()) {\n    jj_scanpos = xsp;\n    if (jj_3R_110()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_5() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_117() {\n    if (jj_3R_139()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_140()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3_18() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_31() {\n    if (jj_3R_51()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_52()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_255() {\n    if (jj_scan_token(FINALLY)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_100() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_117()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_254() {\n    if (jj_scan_token(CATCH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_139()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_206() {\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_5()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_90() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_190() {\n    if (jj_scan_token(TRY)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_254()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    xsp = jj_scanpos;\n    if (jj_3R_255()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_51() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_89()) {\n    jj_scanpos = xsp;\n    if (jj_3R_90()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_89() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_88() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_206()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_207()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_253() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_252() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_48() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_189() {\n    if (jj_scan_token(THROW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_144() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_47() {\n    if (jj_3R_88()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_29() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_47()) {\n    jj_scanpos = xsp;\n    if (jj_3R_48()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_240() {\n    if (jj_scan_token(ASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_231() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_230()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_280() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_180()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_241() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_188() {\n    if (jj_scan_token(RETURN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_253()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_251() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_187() {\n    if (jj_scan_token(CONTINUE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_252()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_97() {\n    if (jj_3R_111()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_186() {\n    if (jj_scan_token(BREAK)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_251()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_123() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_230() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_240()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_96() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_122() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_144()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_266() {\n    if (jj_3R_274()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_168() {\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_121() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_274() {\n    if (jj_3R_180()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_280()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3_17() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(CLASS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_105() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_17()) {\n    jj_scanpos = xsp;\n    if (jj_3R_121()) {\n    jj_scanpos = xsp;\n    if (jj_3R_122()) {\n    jj_scanpos = xsp;\n    if (jj_3R_123()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_4() {\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_241()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_138() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_4()) {\n    jj_scanpos = xsp;\n    if (jj_3R_168()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_15() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(CLASS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_154() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_3() {\n    if (jj_3R_27()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_143() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_136() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_154()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_230()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_231()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_27() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_16() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  public ParserTokenManager token_source;\n  ASCII_UCodeESC_CharStream jj_input_stream;\n  public Token token, jj_nt;\n  private int jj_ntk;\n  private Token jj_scanpos, jj_lastpos;\n  private int jj_la;\n  public boolean lookingAhead = false;\n  private boolean jj_semLA;\n  private int jj_gen;\n  final private int[] jj_la1 = new int[88];\n  final private int[] jj_la1_0 = {0xdb6a5800,0xdb6a5801,0x0,0x0,0x0,0x80000000,0x0,0x9424800,0x9424800,0x0,0x0,0x8424800,0x0,0x8424800,0x8424800,0x8424800,0x9424800,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9424800,0x0,0x0,0x9424800,0x1000000,0x0,0x0,0x9424800,0x0,0x0,0x0,0x8424800,0x9424800,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x1000000,0x9424800,0x0,0x0,0x0,0x0,0x0,0x596a5800,0xdb6a5800,0xd96a5800,0x0,0x9424800,0x108000,0xdb6a5800,0x108000,0x800000,0xb424800,0x9424800,0x9424800,0x9424800,0x2000000,0x0,0x0,0x0,0x0,0x9424800,0x10000,0x4000000,};\n  final private int[] jj_la1_1 = {0xa747f63a,0xa747f63a,0x4000000,0x4000000,0x0,0x0,0x0,0xa745443a,0xa745443a,0x0,0x0,0x400040a,0x4000000,0x400040a,0x401040a,0x40a,0x2745443a,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2745443a,0x0,0x0,0x2745443a,0x27454030,0x20000000,0x0,0x2745443a,0x20000000,0x80000000,0x4000000,0x400040a,0x2745443a,0x20000000,0x80000000,0x4000000,0x80000000,0x20000000,0x80000000,0x3454020,0x4000,0x2745443a,0x0,0x20000000,0x10,0x0,0x0,0xa747f63a,0xa747f63a,0xa747f63a,0x0,0x2745443a,0x0,0xa747f63a,0x0,0x0,0x2745443a,0x2745443a,0x2745443a,0x2745443a,0x0,0x0,0x0,0x4000000,0x4000000,0x2745443a,0x0,0x0,};\n  final private int[] jj_la1_2 = {0x6000008,0x1e001808,0x0,0x0,0x20,0x0,0x40,0x1e001800,0x1e001800,0x10,0x10,0x0,0x0,0x0,0x0,0x0,0x1e001800,0x40,0x2000,0x600000,0x600000,0x1800000,0x1800000,0x0,0x0,0x0,0x80000000,0x80000000,0x108000,0x108000,0x0,0xf0780,0xf0780,0x0,0x0,0x18000000,0x18000000,0x60000000,0x60000000,0x18000000,0x1e001800,0x1800,0x1800,0x0,0x1800,0x0,0x6000000,0x0,0x0,0x22,0x0,0x0,0x0,0x0,0x22,0x0,0x22,0x0,0x22,0x0,0x0,0x1e001800,0x10,0x2,0x0,0x2,0x2,0x6000008,0x6000008,0x6000008,0x6000000,0x0,0x0,0x6000008,0x0,0x0,0x6000000,0x1e001800,0x6000000,0x6000000,0x0,0x10,0x10,0x0,0x0,0x1e001800,0x0,0x0,};\n  final private int[] jj_la1_3 = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x7faf800,0x0,0x0,0x0,0x0,0x0,0x6,0x6,0x8,0x1,0x1,0x0,0x0,0x0,0x0,0x0,0x7e0,0x7e0,0x0,0x0,0x10,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,};\n  final private JJCalls[] jj_2_rtns = new JJCalls[27];\n  private boolean jj_rescan = false;\n  private int jj_gc = 0;\n\n  public Parser(java.io.InputStream stream) {\n    jj_input_stream = new ASCII_UCodeESC_CharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public void ReInit(java.io.InputStream stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public Parser(java.io.Reader stream) {\n    jj_input_stream = new ASCII_UCodeESC_CharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public void ReInit(java.io.Reader stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public Parser(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public void ReInit(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  final private Token jj_consume_token(int kind) throws ParseException {\n    Token oldToken;\n    if ((oldToken = token).next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    if (token.kind == kind) {\n      jj_gen++;\n      if (++jj_gc > 100) {\n        jj_gc = 0;\n        for (int i = 0; i < jj_2_rtns.length; i++) {\n          JJCalls c = jj_2_rtns[i];\n          while (c != null) {\n            if (c.gen < jj_gen) c.first = null;\n            c = c.next;\n          }\n        }\n      }\n      return token;\n    }\n    token = oldToken;\n    jj_kind = kind;\n    throw generateParseException();\n  }\n\n  final private boolean jj_scan_token(int kind) {\n    if (jj_scanpos == jj_lastpos) {\n      jj_la--;\n      if (jj_scanpos.next == null) {\n        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();\n      } else {\n        jj_lastpos = jj_scanpos = jj_scanpos.next;\n      }\n    } else {\n      jj_scanpos = jj_scanpos.next;\n    }\n    if (jj_rescan) {\n      int i = 0; Token tok = token;\n      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }\n      if (tok != null) jj_add_error_token(kind, i);\n    }\n    return (jj_scanpos.kind != kind);\n  }\n\n  final public Token getNextToken() {\n    if (token.next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    jj_gen++;\n    return token;\n  }\n\n  final public Token getToken(int index) {\n    Token t = lookingAhead ? jj_scanpos : token;\n    for (int i = 0; i < index; i++) {\n      if (t.next != null) t = t.next;\n      else t = t.next = token_source.getNextToken();\n    }\n    return t;\n  }\n\n  final private int jj_ntk() {\n    if ((jj_nt=token.next) == null)\n      return (jj_ntk = (token.next=token_source.getNextToken()).kind);\n    else\n      return (jj_ntk = jj_nt.kind);\n  }\n\n  private java.util.Vector jj_expentries = new java.util.Vector();\n  private int[] jj_expentry;\n  private int jj_kind = -1;\n  private int[] jj_lasttokens = new int[100];\n  private int jj_endpos;\n\n  private void jj_add_error_token(int kind, int pos) {\n    if (pos >= 100) return;\n    if (pos == jj_endpos + 1) {\n      jj_lasttokens[jj_endpos++] = kind;\n    } else if (jj_endpos != 0) {\n      jj_expentry = new int[jj_endpos];\n      for (int i = 0; i < jj_endpos; i++) {\n        jj_expentry[i] = jj_lasttokens[i];\n      }\n      boolean exists = false;\n      for (java.util.Enumeration enum1 = jj_expentries.elements(); enum1.hasMoreElements();) {\n        int[] oldentry = (int[])(enum1.nextElement());\n        if (oldentry.length == jj_expentry.length) {\n          exists = true;\n          for (int i = 0; i < jj_expentry.length; i++) {\n            if (oldentry[i] != jj_expentry[i]) {\n              exists = false;\n              break;\n            }\n          }\n          if (exists) break;\n        }\n      }\n      if (!exists) jj_expentries.addElement(jj_expentry);\n      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;\n    }\n  }\n\n  final public ParseException generateParseException() {\n    jj_expentries.removeAllElements();\n    boolean[] la1tokens = new boolean[123];\n    for (int i = 0; i < 123; i++) {\n      la1tokens[i] = false;\n    }\n    if (jj_kind >= 0) {\n      la1tokens[jj_kind] = true;\n      jj_kind = -1;\n    }\n    for (int i = 0; i < 88; i++) {\n      if (jj_la1[i] == jj_gen) {\n        for (int j = 0; j < 32; j++) {\n          if ((jj_la1_0[i] & (1<<j)) != 0) {\n            la1tokens[j] = true;\n          }\n          if ((jj_la1_1[i] & (1<<j)) != 0) {\n            la1tokens[32+j] = true;\n          }\n          if ((jj_la1_2[i] & (1<<j)) != 0) {\n            la1tokens[64+j] = true;\n          }\n          if ((jj_la1_3[i] & (1<<j)) != 0) {\n            la1tokens[96+j] = true;\n          }\n        }\n      }\n    }\n    for (int i = 0; i < 123; i++) {\n      if (la1tokens[i]) {\n        jj_expentry = new int[1];\n        jj_expentry[0] = i;\n        jj_expentries.addElement(jj_expentry);\n      }\n    }\n    jj_endpos = 0;\n    jj_rescan_token();\n    jj_add_error_token(0, 0);\n    int[][] exptokseq = new int[jj_expentries.size()][];\n    for (int i = 0; i < jj_expentries.size(); i++) {\n      exptokseq[i] = (int[])jj_expentries.elementAt(i);\n    }\n    return new ParseException(token, exptokseq, tokenImage);\n  }\n\n  final public void enable_tracing() {\n  }\n\n  final public void disable_tracing() {\n  }\n\n  final private void jj_rescan_token() {\n    jj_rescan = true;\n    for (int i = 0; i < 27; i++) {\n      JJCalls p = jj_2_rtns[i];\n      do {\n        if (p.gen > jj_gen) {\n          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;\n          switch (i) {\n            case 0: jj_3_1(); break;\n            case 1: jj_3_2(); break;\n            case 2: jj_3_3(); break;\n            case 3: jj_3_4(); break;\n            case 4: jj_3_5(); break;\n            case 5: jj_3_6(); break;\n            case 6: jj_3_7(); break;\n            case 7: jj_3_8(); break;\n            case 8: jj_3_9(); break;\n            case 9: jj_3_10(); break;\n            case 10: jj_3_11(); break;\n            case 11: jj_3_12(); break;\n            case 12: jj_3_13(); break;\n            case 13: jj_3_14(); break;\n            case 14: jj_3_15(); break;\n            case 15: jj_3_16(); break;\n            case 16: jj_3_17(); break;\n            case 17: jj_3_18(); break;\n            case 18: jj_3_19(); break;\n            case 19: jj_3_20(); break;\n            case 20: jj_3_21(); break;\n            case 21: jj_3_22(); break;\n            case 22: jj_3_23(); break;\n            case 23: jj_3_24(); break;\n            case 24: jj_3_25(); break;\n            case 25: jj_3_26(); break;\n            case 26: jj_3_27(); break;\n          }\n        }\n        p = p.next;\n      } while (p != null);\n    }\n    jj_rescan = false;\n  }\n\n  final private void jj_save(int index, int xla) {\n    JJCalls p = jj_2_rtns[index];\n    while (p.gen > jj_gen) {\n      if (p.next == null) { p = p.next = new JJCalls(); break; }\n      p = p.next;\n    }\n    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;\n  }\n\n  static final class JJCalls {\n    int gen;\n    Token first;\n    int arg;\n    JJCalls next;", "functions": [{"function_name": "jjtreeOpenNodeScope", "code": "        void jjtreeOpenNodeScope(Node n) {\n                ((SimpleNode)n).firstToken = getToken(1);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "jjtreeCloseNodeScope", "code": "        void jjtreeCloseNodeScope(Node n) {\n                ((SimpleNode)n).lastToken = getToken(0);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "reInitInput", "code": "        void reInitInput( Reader in ) {\n                ReInit(in);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "reInitTokenInput", "code": "        void reInitTokenInput( Reader in ) {\n                jj_input_stream.ReInit( in,\n                        jj_input_stream.getEndLine(),\n                        jj_input_stream.getEndColumn() );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Line", "code": "  final public boolean Line() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case 0:\n      jj_consume_token(0);\n        Interpreter.debug(\"End of File!\");\n        {if (true) return true;}\n      break;\n    case BOOLEAN:\n    case BREAK:\n    case BYTE:\n    case CHAR:\n    case CONTINUE:\n    case DO:\n    case DOUBLE:\n    case FALSE:\n    case FINAL:\n    case FLOAT:\n    case FOR:\n    case IF:\n    case IMPORT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case RETURN:\n    case SHORT:\n    case SWITCH:\n    case THROW:\n    case TRUE:\n    case TRY:\n    case VOID:\n    case WHILE:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case LBRACE:\n    case SEMICOLON:\n    case BANG:\n    case TILDE:\n    case INCR:\n    case DECR:\n    case PLUS:\n    case MINUS:\n      if (jj_2_1(2147483647)) {\n        Expression();\n        jj_consume_token(SEMICOLON);\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BREAK:\n        case BYTE:\n        case CHAR:\n        case CONTINUE:\n        case DO:\n        case DOUBLE:\n        case FALSE:\n        case FINAL:\n        case FLOAT:\n        case FOR:\n        case IF:\n        case IMPORT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case RETURN:\n        case SHORT:\n        case SWITCH:\n        case THROW:\n        case TRUE:\n        case TRY:\n        case VOID:\n        case WHILE:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n        case LBRACE:\n        case SEMICOLON:\n        case INCR:\n        case DECR:\n          BlockStatement();\n          break;\n        default:\n          jj_la1[0] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n                {if (true) return false;}\n      break;\n    default:\n      jj_la1[1] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "IF", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [4, 11], [4, 12], [6, 13], [2, 14], [2, 15], [2, 16], [8, 17], [2, 18], [2, 19], [2, 20], [12, 21], [14, 22], [16, 23], [16, 24], [8, 25], [17, 26], [18, 27], [18, 28], [19, 29], [20, 30], [23, 31], [25, 32], [8, 33], [8, 34], [27, 35], [15, 36], [25, 37], [25, 38], [32, 39], [32, 40], [37, 41], [25, 42], [25, 43], [25, 44], [40, 45], [42, 46], [43, 47], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 4], [12, 4], [13, 6], [14, 2], [15, 2], [16, 2], [17, 8], [18, 2], [19, 2], [20, 2], [21, 12], [22, 14], [23, 16], [24, 16], [25, 8], [26, 17], [27, 18], [28, 18], [29, 19], [30, 20], [31, 23], [32, 25], [33, 8], [34, 8], [35, 27], [36, 15], [37, 25], [38, 25], [39, 32], [40, 32], [41, 37], [42, 25], [43, 25], [44, 25], [45, 40], [46, 42], [47, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "MethodDeclaration", "code": "  final public void MethodDeclaration() throws ParseException {\n /*@bgen(jjtree) MethodDeclaration */\n  BSHMethodDeclaration jjtn000 = new BSHMethodDeclaration(JJTMETHODDECLARATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_2(2147483647)) {\n        ReturnType();\n        t = jj_consume_token(IDENTIFIER);\n                                    jjtn000.name = t.image;\n        FormalParameters();\n        Block();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          t = jj_consume_token(IDENTIFIER);\n                       jjtn000.name = t.image;\n          FormalParameters();\n          Block();\n          break;\n        default:\n          jj_la1[2] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n      if (jjtc000) {\n        jjtree.clearNodeScope(jjtn000);\n        jjtc000 = false;\n      } else {\n        jjtree.popNode();\n      }\n      if (jjte000 instanceof RuntimeException) {\n        {if (true) throw (RuntimeException)jjte000;}\n      }\n      if (jjte000 instanceof ParseException) {\n        {if (true) throw (ParseException)jjte000;}\n      }\n      {if (true) throw (Error)jjte000;}\n    } finally {\n      if (jjtc000) {\n        jjtree.closeNodeScope(jjtn000, true);\n        jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [2, 14], [3, 15], [4, 16], [6, 17], [10, 18], [11, 19], [7, 20], [13, 21], [5, 22], [5, 23], [17, 24], [17, 25], [20, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [23, 32], [10, 33], [11, 34], [12, 35], [12, 36], [12, 37], [20, 38], [20, 39], [26, 40], [26, 41], [30, 42], [33, 43], [33, 44], [34, 45], [34, 46], [36, 47], [38, 48], [20, 49], [20, 50], [20, 51], [20, 52], [20, 53], [20, 54], [41, 55], [49, 56], [54, 57], [50, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 2], [15, 3], [16, 4], [17, 6], [18, 10], [19, 11], [20, 7], [21, 13], [22, 5], [23, 5], [24, 17], [25, 17], [26, 20], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 23], [33, 10], [34, 11], [35, 12], [36, 12], [37, 12], [38, 20], [39, 20], [40, 26], [41, 26], [42, 30], [43, 33], [44, 33], [45, 34], [46, 34], [47, 36], [48, 38], [49, 20], [50, 20], [51, 20], [52, 20], [53, 20], [54, 20], [55, 41], [56, 49], [57, 54], [58, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "MethodDeclarationLookahead", "code": "  final public void MethodDeclarationLookahead() throws ParseException {\n    if (jj_2_3(2147483647)) {\n      ReturnType();\n      jj_consume_token(IDENTIFIER);\n      FormalParameters();\n      jj_consume_token(LBRACE);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        FormalParameters();\n        jj_consume_token(LBRACE);\n        break;\n      default:\n        jj_la1[3] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [5, 12], [5, 13], [10, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [13, 20], [15, 21], [16, 22], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 5], [13, 5], [14, 10], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 13], [21, 15], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "MethodDeclarationTypeLookahead", "code": "  final public void MethodDeclarationTypeLookahead() throws ParseException {\n    ReturnType();\n    jj_consume_token(IDENTIFIER);\n    jj_consume_token(LPAREN);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ImportDeclaration", "code": "  final public void ImportDeclaration() throws ParseException {\n /*@bgen(jjtree) ImportDeclaration */\n    BSHImportDeclaration jjtn000 = new BSHImportDeclaration(JJTIMPORTDECLARATION);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_4(2)) {\n        jj_consume_token(IMPORT);\n        AmbiguousName();\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case DOT:\n          t = jj_consume_token(DOT);\n          jj_consume_token(STAR);\n          break;\n        default:\n          jj_la1[4] = jj_gen;\n          ;\n        }\n        jj_consume_token(SEMICOLON);\n                                                 jjtree.closeNodeScope(jjtn000, true);\n                                                 jjtc000 = false;\n                                                 jjtreeCloseNodeScope(jjtn000);\n    if ( t != null )\n        jjtn000.importPackage = true;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IMPORT:\n          jj_consume_token(IMPORT);\n          jj_consume_token(STAR);\n          jj_consume_token(SEMICOLON);\n                     jjtree.closeNodeScope(jjtn000, true);\n                     jjtc000 = false;\n                     jjtreeCloseNodeScope(jjtn000);\n                jjtn000.superImport = true;\n          break;\n        default:\n          jj_la1[5] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "IF", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [2, 14], [3, 15], [4, 16], [6, 17], [10, 18], [11, 19], [7, 20], [7, 21], [7, 22], [13, 23], [5, 24], [5, 25], [17, 26], [17, 27], [20, 28], [21, 29], [7, 30], [7, 31], [7, 32], [7, 33], [22, 34], [7, 35], [7, 36], [25, 37], [10, 38], [11, 39], [12, 40], [12, 41], [12, 42], [20, 43], [20, 44], [28, 45], [28, 46], [21, 47], [29, 48], [31, 49], [32, 50], [22, 51], [34, 52], [34, 53], [38, 54], [38, 55], [39, 56], [39, 57], [41, 58], [43, 59], [20, 60], [20, 61], [20, 62], [20, 63], [20, 64], [20, 65], [20, 66], [20, 67], [20, 68], [46, 69], [47, 70], [22, 71], [22, 72], [22, 73], [53, 74], [60, 75], [62, 76], [64, 77], [65, 78], [73, 79], [61, 80], [71, 81], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 2], [15, 3], [16, 4], [17, 6], [18, 10], [19, 11], [20, 7], [21, 7], [22, 7], [23, 13], [24, 5], [25, 5], [26, 17], [27, 17], [28, 20], [29, 21], [30, 7], [31, 7], [32, 7], [33, 7], [34, 22], [35, 7], [36, 7], [37, 25], [38, 10], [39, 11], [40, 12], [41, 12], [42, 12], [43, 20], [44, 20], [45, 28], [46, 28], [47, 21], [48, 29], [49, 31], [50, 32], [51, 22], [52, 34], [53, 34], [54, 38], [55, 38], [56, 39], [57, 39], [58, 41], [59, 43], [60, 20], [61, 20], [62, 20], [63, 20], [64, 20], [65, 20], [66, 20], [67, 20], [68, 20], [69, 46], [70, 47], [71, 22], [72, 22], [73, 22], [74, 53], [75, 60], [76, 62], [77, 64], [78, 65], [79, 73], [80, 61], [81, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81]]}, {"function_name": "VariableDeclarator", "code": "  final public void VariableDeclarator() throws ParseException {\n /*@bgen(jjtree) VariableDeclarator */\n  BSHVariableDeclarator jjtn000 = new BSHVariableDeclarator(JJTVARIABLEDECLARATOR);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ASSIGN:\n        jj_consume_token(ASSIGN);\n        VariableInitializer();\n        break;\n      default:\n        jj_la1[6] = jj_gen;\n        ;\n      }\n                                                 jjtree.closeNodeScope(jjtn000, true);\n                                                 jjtc000 = false;\n                                                 jjtreeCloseNodeScope(jjtn000);\n                                                 jjtn000.name = t.image;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [1, 13], [1, 14], [1, 15], [1, 16], [7, 17], [1, 18], [3, 19], [4, 20], [6, 21], [10, 22], [11, 23], [15, 24], [16, 25], [7, 26], [17, 27], [17, 28], [18, 29], [5, 30], [5, 31], [21, 32], [21, 33], [7, 34], [7, 35], [7, 36], [28, 37], [31, 38], [10, 39], [11, 40], [12, 41], [12, 42], [12, 43], [39, 44], [39, 45], [40, 46], [40, 47], [42, 48], [34, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 1], [14, 1], [15, 1], [16, 1], [17, 7], [18, 1], [19, 3], [20, 4], [21, 6], [22, 10], [23, 11], [24, 15], [25, 16], [26, 7], [27, 17], [28, 17], [29, 18], [30, 5], [31, 5], [32, 21], [33, 21], [34, 7], [35, 7], [36, 7], [37, 28], [38, 31], [39, 10], [40, 11], [41, 12], [42, 12], [43, 12], [44, 39], [45, 39], [46, 40], [47, 40], [48, 42], [49, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "VariableInitializer", "code": "  final public void VariableInitializer() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case LBRACE:\n      ArrayInitializer();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n    case INCR:\n    case DECR:\n    case PLUS:\n    case MINUS:\n      Expression();\n      break;\n    default:\n      jj_la1[7] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [2, 7], [3, 8], [1, 9], [1, 10], [1, 11], [1, 12], [7, 13], [9, 14], [10, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 2], [8, 3], [9, 1], [10, 1], [11, 1], [12, 1], [13, 7], [14, 9], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "ArrayInitializer", "code": "  final public void ArrayInitializer() throws ParseException {\n /*@bgen(jjtree) ArrayInitializer */\n  BSHArrayInitializer jjtn000 = new BSHArrayInitializer(JJTARRAYINITIALIZER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case LBRACE:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        VariableInitializer();\n        label_1:\n        while (true) {\n          if (jj_2_5(2)) {\n            ;\n          } else {\n            break label_1;\n          }\n          jj_consume_token(COMMA);\n          VariableInitializer();\n        }\n        break;\n      default:\n        jj_la1[8] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        jj_consume_token(COMMA);\n        break;\n      default:\n        jj_la1[9] = jj_gen;\n        ;\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "COND_EXPR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "LOOP", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [5, 10], [5, 11], [5, 12], [1, 13], [6, 14], [7, 15], [1, 16], [2, 17], [3, 18], [5, 19], [10, 20], [11, 21], [6, 22], [14, 23], [14, 24], [7, 25], [7, 26], [15, 27], [15, 28], [4, 29], [4, 30], [19, 31], [19, 32], [6, 33], [6, 34], [24, 35], [7, 36], [26, 37], [7, 38], [28, 39], [30, 40], [10, 41], [11, 42], [12, 43], [12, 44], [12, 45], [26, 46], [41, 47], [41, 48], [42, 49], [42, 50], [44, 51], [26, 52], [26, 53], [46, 54], [33, 55], [36, 56], [46, 57], [54, 58], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 5], [11, 5], [12, 5], [13, 1], [14, 6], [15, 7], [16, 1], [17, 2], [18, 3], [19, 5], [20, 10], [21, 11], [22, 6], [23, 14], [24, 14], [25, 7], [26, 7], [27, 15], [28, 15], [29, 4], [30, 4], [31, 19], [32, 19], [33, 6], [34, 6], [35, 24], [36, 7], [37, 26], [38, 7], [39, 28], [40, 30], [41, 10], [42, 11], [43, 12], [44, 12], [45, 12], [46, 26], [47, 41], [48, 41], [49, 42], [50, 42], [51, 44], [52, 26], [53, 26], [54, 46], [55, 33], [56, 36], [57, 46], [58, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "FormalParameters", "code": "  final public void FormalParameters() throws ParseException {\n /*@bgen(jjtree) FormalParameters */\n  BSHFormalParameters jjtn000 = new BSHFormalParameters(JJTFORMALPARAMETERS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        FormalParameter();\n        label_2:\n        while (true) {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case COMMA:\n            ;\n            break;\n          default:\n            jj_la1[10] = jj_gen;\n            break label_2;\n          }\n          jj_consume_token(COMMA);\n          FormalParameter();\n        }\n        break;\n      default:\n        jj_la1[11] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LOOP", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "SWITCH", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [2, 15], [3, 16], [5, 17], [9, 18], [10, 19], [6, 20], [6, 21], [13, 22], [13, 23], [4, 24], [4, 25], [17, 26], [17, 27], [6, 28], [21, 29], [6, 30], [23, 31], [25, 32], [9, 33], [10, 34], [11, 35], [11, 36], [11, 37], [21, 38], [33, 39], [33, 40], [34, 41], [34, 42], [36, 43], [21, 44], [21, 45], [38, 46], [28, 47], [38, 48], [38, 49], [46, 50], [46, 51], [38, 52], [51, 53], [52, 54], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 2], [16, 3], [17, 5], [18, 9], [19, 10], [20, 6], [21, 6], [22, 13], [23, 13], [24, 4], [25, 4], [26, 17], [27, 17], [28, 6], [29, 21], [30, 6], [31, 23], [32, 25], [33, 9], [34, 10], [35, 11], [36, 11], [37, 11], [38, 21], [39, 33], [40, 33], [41, 34], [42, 34], [43, 36], [44, 21], [45, 21], [46, 38], [47, 28], [48, 38], [49, 38], [50, 46], [51, 46], [52, 38], [53, 51], [54, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "FormalParameter", "code": "  final public void FormalParameter() throws ParseException {\n /*@bgen(jjtree) FormalParameter */\n  BSHFormalParameter jjtn000 = new BSHFormalParameter(JJTFORMALPARAMETER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      if (jj_2_6(2)) {\n        Type();\n        t = jj_consume_token(IDENTIFIER);\n                                       jjtree.closeNodeScope(jjtn000, true);\n                                       jjtc000 = false;\n                                       jjtreeCloseNodeScope(jjtn000);\n                                       jjtn000.name = t.image;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          t = jj_consume_token(IDENTIFIER);\n                   jjtree.closeNodeScope(jjtn000, true);\n                   jjtc000 = false;\n                   jjtreeCloseNodeScope(jjtn000);\n                   jjtn000.name = t.image;\n          break;\n        default:\n          jj_la1[12] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [3, 14], [4, 15], [6, 16], [10, 17], [11, 18], [7, 19], [13, 20], [5, 21], [5, 22], [16, 23], [16, 24], [19, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [22, 32], [10, 33], [11, 34], [12, 35], [12, 36], [12, 37], [19, 38], [19, 39], [25, 40], [25, 41], [28, 42], [29, 43], [30, 44], [33, 45], [33, 46], [34, 47], [34, 48], [36, 49], [38, 50], [19, 51], [19, 52], [19, 53], [19, 54], [19, 55], [19, 56], [19, 57], [41, 58], [51, 59], [55, 60], [56, 61], [57, 62], [52, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 3], [15, 4], [16, 6], [17, 10], [18, 11], [19, 7], [20, 13], [21, 5], [22, 5], [23, 16], [24, 16], [25, 19], [26, 7], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 22], [33, 10], [34, 11], [35, 12], [36, 12], [37, 12], [38, 19], [39, 19], [40, 25], [41, 25], [42, 28], [43, 29], [44, 30], [45, 33], [46, 33], [47, 34], [48, 34], [49, 36], [50, 38], [51, 19], [52, 19], [53, 19], [54, 19], [55, 19], [56, 19], [57, 19], [58, 41], [59, 51], [60, 55], [61, 56], [62, 57], [63, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "Type", "code": "  final public void Type() throws ParseException {\n /*@bgen(jjtree) Type */\n  BSHType jjtn000 = new BSHType(JJTTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n        PrimitiveType();\n        break;\n      case IDENTIFIER:\n        AmbiguousName();\n        break;\n      default:\n        jj_la1[13] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      label_3:\n      while (true) {\n        if (jj_2_7(2)) {\n          ;\n        } else {\n          break label_3;\n        }\n        jj_consume_token(LBRACKET);\n        jj_consume_token(RBRACKET);\n                                 jjtn000.addArrayDimension();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [5, 10], [5, 11], [5, 12], [6, 13], [7, 14], [2, 15], [3, 16], [5, 17], [10, 18], [11, 19], [6, 20], [7, 21], [7, 22], [7, 23], [14, 24], [14, 25], [4, 26], [4, 27], [17, 28], [17, 29], [6, 30], [6, 31], [6, 32], [20, 33], [21, 34], [7, 35], [7, 36], [7, 37], [7, 38], [25, 39], [27, 40], [10, 41], [11, 42], [12, 43], [12, 44], [12, 45], [20, 46], [33, 47], [35, 48], [41, 49], [41, 50], [42, 51], [42, 52], [44, 53], [36, 54], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 5], [11, 5], [12, 5], [13, 6], [14, 7], [15, 2], [16, 3], [17, 5], [18, 10], [19, 11], [20, 6], [21, 7], [22, 7], [23, 7], [24, 14], [25, 14], [26, 4], [27, 4], [28, 17], [29, 17], [30, 6], [31, 6], [32, 6], [33, 20], [34, 21], [35, 7], [36, 7], [37, 7], [38, 7], [39, 25], [40, 27], [41, 10], [42, 11], [43, 12], [44, 12], [45, 12], [46, 20], [47, 33], [48, 35], [49, 41], [50, 41], [51, 42], [52, 42], [53, 44], [54, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "ReturnType", "code": "  final public void ReturnType() throws ParseException {\n /*@bgen(jjtree) ReturnType */\n  BSHReturnType jjtn000 = new BSHReturnType(JJTRETURNTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case VOID:\n        jj_consume_token(VOID);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.isVoid = true;\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        Type();\n        break;\n      default:\n        jj_la1[14] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [6, 19], [6, 20], [12, 21], [12, 22], [4, 23], [4, 24], [15, 25], [15, 26], [18, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 35], [22, 36], [24, 37], [9, 38], [10, 39], [11, 40], [11, 41], [11, 42], [28, 43], [31, 44], [33, 45], [34, 46], [38, 47], [38, 48], [39, 49], [39, 50], [41, 51], [29, 52], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 6], [20, 6], [21, 12], [22, 12], [23, 4], [24, 4], [25, 15], [26, 15], [27, 18], [28, 6], [29, 6], [30, 6], [31, 6], [32, 6], [33, 6], [34, 6], [35, 6], [36, 22], [37, 24], [38, 9], [39, 10], [40, 11], [41, 11], [42, 11], [43, 28], [44, 31], [45, 33], [46, 34], [47, 38], [48, 38], [49, 39], [50, 39], [51, 41], [52, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "PrimitiveType", "code": "  final public void PrimitiveType() throws ParseException {\n /*@bgen(jjtree) PrimitiveType */\n  BSHPrimitiveType jjtn000 = new BSHPrimitiveType(JJTPRIMITIVETYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n        jj_consume_token(BOOLEAN);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type = Boolean.TYPE;\n        break;\n      case CHAR:\n        jj_consume_token(CHAR);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Character.TYPE;\n        break;\n      case BYTE:\n        jj_consume_token(BYTE);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Byte.TYPE;\n        break;\n      case SHORT:\n        jj_consume_token(SHORT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Short.TYPE;\n        break;\n      case INT:\n        jj_consume_token(INT);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.type =  Integer.TYPE;\n        break;\n      case LONG:\n        jj_consume_token(LONG);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Long.TYPE;\n        break;\n      case FLOAT:\n        jj_consume_token(FLOAT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Float.TYPE;\n        break;\n      case DOUBLE:\n        jj_consume_token(DOUBLE);\n             jjtree.closeNodeScope(jjtn000, true);\n             jjtc000 = false;\n             jjtreeCloseNodeScope(jjtn000);\n             jjtn000.type =  Double.TYPE;\n        break;\n      default:\n        jj_la1[15] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } finally {\n  if (jjtc000) {\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "SWITCH", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [2, 9], [3, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [8, 20], [8, 21], [4, 22], [4, 23], [11, 24], [5, 25], [5, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 39], [5, 40], [5, 41], [5, 42], [5, 43], [5, 44], [5, 45], [5, 46], [5, 47], [5, 48], [5, 49], [5, 50], [5, 51], [5, 52], [5, 53], [5, 54], [5, 55], [5, 56], [5, 57], [5, 58], [5, 59], [5, 60], [5, 61], [5, 62], [5, 63], [5, 64], [5, 65], [5, 66], [21, 67], [23, 68], [25, 69], [29, 70], [30, 71], [34, 72], [35, 73], [39, 74], [40, 75], [44, 76], [45, 77], [49, 78], [50, 79], [54, 80], [55, 81], [59, 82], [60, 83], [64, 84], [65, 85], [26, 86], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 2], [10, 3], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 8], [21, 8], [22, 4], [23, 4], [24, 11], [25, 5], [26, 5], [27, 5], [28, 5], [29, 5], [30, 5], [31, 5], [32, 5], [33, 5], [34, 5], [35, 5], [36, 5], [37, 5], [38, 5], [39, 5], [40, 5], [41, 5], [42, 5], [43, 5], [44, 5], [45, 5], [46, 5], [47, 5], [48, 5], [49, 5], [50, 5], [51, 5], [52, 5], [53, 5], [54, 5], [55, 5], [56, 5], [57, 5], [58, 5], [59, 5], [60, 5], [61, 5], [62, 5], [63, 5], [64, 5], [65, 5], [66, 5], [67, 21], [68, 23], [69, 25], [70, 29], [71, 30], [72, 34], [73, 35], [74, 39], [75, 40], [76, 44], [77, 45], [78, 49], [79, 50], [80, 54], [81, 55], [82, 59], [83, 60], [84, 64], [85, 65], [86, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "AmbiguousName", "code": "  final public void AmbiguousName() throws ParseException {\n /*@bgen(jjtree) AmbiguousName */\n    BSHAmbiguousName jjtn000 = new BSHAmbiguousName(JJTAMBIGUOUSNAME);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t;\n    StringBuffer s;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n        s = new StringBuffer(t.image);\n      label_4:\n      while (true) {\n        if (jj_2_8(2)) {\n          ;\n        } else {\n          break label_4;\n        }\n        jj_consume_token(DOT);\n        t = jj_consume_token(IDENTIFIER);\n        s.append(\".\"+t.image);\n      }\n       jjtree.closeNodeScope(jjtn000, true);\n       jjtc000 = false;\n       jjtreeCloseNodeScope(jjtn000);\n        jjtn000.text = s.toString();\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [7, 14], [1, 15], [1, 16], [4, 17], [5, 18], [10, 19], [12, 20], [13, 21], [7, 22], [15, 23], [16, 24], [6, 25], [6, 26], [7, 27], [7, 28], [7, 29], [22, 30], [26, 31], [27, 32], [28, 33], [22, 34], [30, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 7], [15, 1], [16, 1], [17, 4], [18, 5], [19, 10], [20, 12], [21, 13], [22, 7], [23, 15], [24, 16], [25, 6], [26, 6], [27, 7], [28, 7], [29, 7], [30, 22], [31, 26], [32, 27], [33, 28], [34, 22], [35, 30], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "Expression", "code": "  final public void Expression() throws ParseException {\n    if (jj_2_9(2147483647)) {\n      Assignment();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ConditionalExpression();\n        break;\n      default:\n        jj_la1[16] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [3, 7], [3, 8], [5, 9], [5, 10], [7, 11], [3, 12], [3, 13], [3, 14], [10, 15], [12, 16], [13, 17], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 3], [8, 3], [9, 5], [10, 5], [11, 7], [12, 3], [13, 3], [14, 3], [15, 10], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "Assignment", "code": "  final public void Assignment() throws ParseException {\n /*@bgen(jjtree) Assignment */\n  BSHAssignment jjtn000 = new BSHAssignment(JJTASSIGNMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);int op ;\n    try {\n      LHSPrimaryExpression();\n      op = AssignmentOperator();\n    jjtn000.operator = op;\n      Expression();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [0, 7], [0, 8], [6, 9], [6, 10], [6, 11], [1, 12], [1, 13], [1, 14], [1, 15], [3, 16], [4, 17], [6, 18], [9, 19], [10, 20], [14, 21], [5, 22], [5, 23], [18, 24], [18, 25], [23, 26], [9, 27], [10, 28], [11, 29], [11, 30], [11, 31], [27, 32], [27, 33], [28, 34], [28, 35], [30, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 0], [8, 0], [9, 6], [10, 6], [11, 6], [12, 1], [13, 1], [14, 1], [15, 1], [16, 3], [17, 4], [18, 6], [19, 9], [20, 10], [21, 14], [22, 5], [23, 5], [24, 18], [25, 18], [26, 23], [27, 9], [28, 10], [29, 11], [30, 11], [31, 11], [32, 27], [33, 27], [34, 28], [35, 28], [36, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "AssignmentOperator", "code": "  final public int AssignmentOperator() throws ParseException {\n  Token t;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case ASSIGN:\n      jj_consume_token(ASSIGN);\n      break;\n    case STARASSIGN:\n      jj_consume_token(STARASSIGN);\n      break;\n    case SLASHASSIGN:\n      jj_consume_token(SLASHASSIGN);\n      break;\n    case MODASSIGN:\n      jj_consume_token(MODASSIGN);\n      break;\n    case PLUSASSIGN:\n      jj_consume_token(PLUSASSIGN);\n      break;\n    case MINUSASSIGN:\n      jj_consume_token(MINUSASSIGN);\n      break;\n    case ANDASSIGN:\n      jj_consume_token(ANDASSIGN);\n      break;\n    case XORASSIGN:\n      jj_consume_token(XORASSIGN);\n      break;\n    case ORASSIGN:\n      jj_consume_token(ORASSIGN);\n      break;\n    case LSHIFTASSIGN:\n      jj_consume_token(LSHIFTASSIGN);\n      break;\n    case LSHIFTASSIGNX:\n      jj_consume_token(LSHIFTASSIGNX);\n      break;\n    case RSIGNEDSHIFTASSIGN:\n      jj_consume_token(RSIGNEDSHIFTASSIGN);\n      break;\n    case RSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RSIGNEDSHIFTASSIGNX);\n      break;\n    case RUNSIGNEDSHIFTASSIGN:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGN);\n      break;\n    case RUNSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGNX);\n      break;\n    default:\n      jj_la1[17] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n        t = getToken(0);\n        {if (true) return t.kind;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "VAR_DECL", "CALL", "IF", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [4, 8], [5, 9], [5, 10], [6, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [7, 28], [7, 29], [11, 30], [12, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [29, 49], [32, 50], [33, 51], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 4], [9, 5], [10, 5], [11, 6], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 7], [29, 7], [30, 11], [31, 12], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 29], [50, 32], [51, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "ConditionalExpression", "code": "  final public void ConditionalExpression() throws ParseException {\n    ConditionalOrExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case HOOK:\n      jj_consume_token(HOOK);\n      Expression();\n      jj_consume_token(COLON);\n                                                     BSHTernaryExpression jjtn001 = new BSHTernaryExpression(JJTTERNARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n        ConditionalExpression();\n      } catch (Throwable jjte001) {\n                                                     if (jjtc001) {\n                                                       jjtree.clearNodeScope(jjtn001);\n                                                       jjtc001 = false;\n                                                     } else {\n                                                       jjtree.popNode();\n                                                     }\n                                                     if (jjte001 instanceof RuntimeException) {\n                                                       {if (true) throw (RuntimeException)jjte001;}\n                                                     }\n                                                     if (jjte001 instanceof ParseException) {\n                                                       {if (true) throw (ParseException)jjte001;}\n                                                     }\n                                                     {if (true) throw (Error)jjte001;}\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  3);\n                                                       jjtreeCloseNodeScope(jjtn001);\n                                                     }\n      }\n      break;\n    default:\n      jj_la1[18] = jj_gen;\n      ;", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "CALL", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "IF", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [2, 9], [1, 10], [5, 11], [5, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [9, 18], [12, 19], [12, 20], [12, 21], [5, 22], [6, 23], [7, 24], [12, 25], [19, 26], [20, 27], [10, 28], [11, 29], [11, 30], [25, 31], [25, 32], [30, 33], [19, 34], [20, 35], [21, 36], [21, 37], [21, 38], [34, 39], [34, 40], [35, 41], [35, 42], [37, 43], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 2], [10, 1], [11, 5], [12, 5], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 9], [19, 12], [20, 12], [21, 12], [22, 5], [23, 6], [24, 7], [25, 12], [26, 19], [27, 20], [28, 10], [29, 11], [30, 11], [31, 25], [32, 25], [33, 30], [34, 19], [35, 20], [36, 21], [37, 21], [38, 21], [39, 34], [40, 34], [41, 35], [42, 35], [43, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "ConditionalOrExpression", "code": "  final public void ConditionalOrExpression() throws ParseException {\n  Token t=null;\n    ConditionalAndExpression();\n    label_5:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n      case BOOL_ORX:\n        ;\n        break;\n      default:\n        jj_la1[19] = jj_gen;\n        break label_5;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n        t = jj_consume_token(BOOL_OR);\n        break;\n      case BOOL_ORX:\n        t = jj_consume_token(BOOL_ORX);\n        break;\n      default:\n        jj_la1[20] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ConditionalAndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "ConditionalAndExpression", "code": "  final public void ConditionalAndExpression() throws ParseException {\n  Token t=null;\n    InclusiveOrExpression();\n    label_6:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n      case BOOL_ANDX:\n        ;\n        break;\n      default:\n        jj_la1[21] = jj_gen;\n        break label_6;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n        t = jj_consume_token(BOOL_AND);\n        break;\n      case BOOL_ANDX:\n        t = jj_consume_token(BOOL_ANDX);\n        break;\n      default:\n        jj_la1[22] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "InclusiveOrExpression", "code": "  final public void InclusiveOrExpression() throws ParseException {\n  Token t=null;\n    ExclusiveOrExpression();\n    label_7:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n      case BIT_ORX:\n        ;\n        break;\n      default:\n        jj_la1[23] = jj_gen;\n        break label_7;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n        t = jj_consume_token(BIT_OR);\n        break;\n      case BIT_ORX:\n        t = jj_consume_token(BIT_ORX);\n        break;\n      default:\n        jj_la1[24] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ExclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "ExclusiveOrExpression", "code": "  final public void ExclusiveOrExpression() throws ParseException {\n  Token t=null;\n    AndExpression();\n    label_8:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case XOR:\n        ;\n        break;\n      default:\n        jj_la1[25] = jj_gen;\n        break label_8;\n      }\n      t = jj_consume_token(XOR);\n      AndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "ASSIGN", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [8, 15], [5, 16], [5, 17], [5, 18], [5, 19], [6, 20], [7, 21], [14, 22], [8, 23], [8, 24], [15, 25], [15, 26], [18, 27], [19, 28], [8, 29], [26, 30], [10, 31], [10, 32], [32, 33], [29, 34], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 8], [16, 5], [17, 5], [18, 5], [19, 5], [20, 6], [21, 7], [22, 14], [23, 8], [24, 8], [25, 15], [26, 15], [27, 18], [28, 19], [29, 8], [30, 26], [31, 10], [32, 10], [33, 32], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "AndExpression", "code": "  final public void AndExpression() throws ParseException {\n  Token t=null;\n    EqualityExpression();\n    label_9:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n      case BIT_ANDX:\n        ;\n        break;\n      default:\n        jj_la1[26] = jj_gen;\n        break label_9;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n        t = jj_consume_token(BIT_AND);\n        break;\n      case BIT_ANDX:\n        t = jj_consume_token(BIT_ANDX);\n        break;\n      default:\n        jj_la1[27] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      EqualityExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "EqualityExpression", "code": "  final public void EqualityExpression() throws ParseException {\n  Token t = null;\n    InstanceOfExpression();\n    label_10:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n      case NE:\n        ;\n        break;\n      default:\n        jj_la1[28] = jj_gen;\n        break label_10;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n        t = jj_consume_token(EQ);\n        break;\n      case NE:\n        t = jj_consume_token(NE);\n        break;\n      default:\n        jj_la1[29] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InstanceOfExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "InstanceOfExpression", "code": "  final public void InstanceOfExpression() throws ParseException {\n  Token t = null;\n    RelationalExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case INSTANCEOF:\n      t = jj_consume_token(INSTANCEOF);\n      Type();\n                              BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                              boolean jjtc001 = true;\n                              jjtree.openNodeScope(jjtn001);\n                              jjtreeOpenNodeScope(jjtn001);\n      try {\n                              jjtree.closeNodeScope(jjtn001,  2);\n                              jjtc001 = false;\n                              jjtreeCloseNodeScope(jjtn001);\n                              jjtn001.kind = t.kind;\n      } finally {\n                              if (jjtc001) {\n                                jjtree.closeNodeScope(jjtn001,  2);\n                                jjtreeCloseNodeScope(jjtn001);\n                              }\n      }\n      break;\n    default:\n      jj_la1[30] = jj_gen;\n      ;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "COND_EXPR", "CALL", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [3, 10], [2, 11], [1, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [10, 18], [6, 19], [6, 20], [6, 21], [6, 22], [7, 23], [8, 24], [17, 25], [21, 26], [22, 27], [12, 28], [13, 29], [13, 30], [30, 31], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 3], [11, 2], [12, 1], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 10], [19, 6], [20, 6], [21, 6], [22, 6], [23, 7], [24, 8], [25, 17], [26, 21], [27, 22], [28, 12], [29, 13], [30, 13], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "RelationalExpression", "code": "  final public void RelationalExpression() throws ParseException {\n  Token t = null;\n    ShiftExpression();\n    label_11:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case GT:\n      case GTX:\n      case LT:\n      case LTX:\n      case LE:\n      case LEX:\n      case GE:\n      case GEX:\n        ;\n        break;\n      default:\n        jj_la1[31] = jj_gen;\n        break label_11;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LT:\n        t = jj_consume_token(LT);\n        break;\n      case LTX:\n        t = jj_consume_token(LTX);\n        break;\n      case GT:\n        t = jj_consume_token(GT);\n        break;\n      case GTX:\n        t = jj_consume_token(GTX);\n        break;\n      case LE:\n        t = jj_consume_token(LE);\n        break;\n      case LEX:\n        t = jj_consume_token(LEX);\n        break;\n      case GE:\n        t = jj_consume_token(GE);\n        break;\n      case GEX:\n        t = jj_consume_token(GEX);\n        break;\n      default:\n        jj_la1[32] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ShiftExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 30], [8, 31], [15, 32], [15, 33], [9, 34], [9, 35], [16, 36], [16, 37], [19, 38], [20, 39], [23, 40], [8, 41], [8, 42], [8, 43], [8, 44], [8, 45], [8, 46], [8, 47], [8, 48], [8, 49], [8, 50], [33, 51], [9, 52], [37, 53], [11, 54], [11, 55], [41, 56], [43, 57], [44, 58], [45, 59], [46, 60], [47, 61], [48, 62], [49, 63], [50, 64], [55, 65], [42, 66], [52, 67], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 8], [31, 8], [32, 15], [33, 15], [34, 9], [35, 9], [36, 16], [37, 16], [38, 19], [39, 20], [40, 23], [41, 8], [42, 8], [43, 8], [44, 8], [45, 8], [46, 8], [47, 8], [48, 8], [49, 8], [50, 8], [51, 33], [52, 9], [53, 37], [54, 11], [55, 11], [56, 41], [57, 43], [58, 44], [59, 45], [60, 46], [61, 47], [62, 48], [63, 49], [64, 50], [65, 55], [66, 42], [67, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "ShiftExpression", "code": "  final public void ShiftExpression() throws ParseException {\n  Token t = null;\n    AdditiveExpression();\n    label_12:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n      case LSHIFTX:\n      case RSIGNEDSHIFT:\n      case RSIGNEDSHIFTX:\n      case RUNSIGNEDSHIFT:\n      case RUNSIGNEDSHIFTX:\n        ;\n        break;\n      default:\n        jj_la1[33] = jj_gen;\n        break label_12;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n        t = jj_consume_token(LSHIFT);\n        break;\n      case LSHIFTX:\n        t = jj_consume_token(LSHIFTX);\n        break;\n      case RSIGNEDSHIFT:\n        t = jj_consume_token(RSIGNEDSHIFT);\n        break;\n      case RSIGNEDSHIFTX:\n        t = jj_consume_token(RSIGNEDSHIFTX);\n        break;\n      case RUNSIGNEDSHIFT:\n        t = jj_consume_token(RUNSIGNEDSHIFT);\n        break;\n      case RUNSIGNEDSHIFTX:\n        t = jj_consume_token(RUNSIGNEDSHIFTX);\n        break;\n      default:\n        jj_la1[34] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      AdditiveExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [15, 30], [15, 31], [9, 32], [9, 33], [16, 34], [16, 35], [19, 36], [20, 37], [23, 38], [8, 39], [8, 40], [8, 41], [8, 42], [8, 43], [8, 44], [8, 45], [8, 46], [31, 47], [9, 48], [35, 49], [11, 50], [11, 51], [39, 52], [41, 53], [42, 54], [43, 55], [44, 56], [45, 57], [46, 58], [51, 59], [40, 60], [48, 61], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 15], [31, 15], [32, 9], [33, 9], [34, 16], [35, 16], [36, 19], [37, 20], [38, 23], [39, 8], [40, 8], [41, 8], [42, 8], [43, 8], [44, 8], [45, 8], [46, 8], [47, 31], [48, 9], [49, 35], [50, 11], [51, 11], [52, 39], [53, 41], [54, 42], [55, 43], [56, 44], [57, 45], [58, 46], [59, 51], [60, 40], [61, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "AdditiveExpression", "code": "  final public void AdditiveExpression() throws ParseException {\n  Token t = null;\n    MultiplicativeExpression();\n    label_13:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n      case MINUS:\n        ;\n        break;\n      default:\n        jj_la1[35] = jj_gen;\n        break label_13;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_la1[36] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      MultiplicativeExpression();\n                                                     BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n                                                     jjtree.closeNodeScope(jjtn001,  2);\n                                                     jjtc001 = false;\n                                                     jjtreeCloseNodeScope(jjtn001);\n                                                     jjtn001.kind = t.kind;\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  2);\n                                                       jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "MultiplicativeExpression", "code": "  final public void MultiplicativeExpression() throws ParseException {\n  Token t = null;\n    UnaryExpression();\n    label_14:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n      case SLASH:\n      case MOD:\n        ;\n        break;\n      default:\n        jj_la1[37] = jj_gen;\n        break label_14;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n        t = jj_consume_token(STAR);\n        break;\n      case SLASH:\n        t = jj_consume_token(SLASH);\n        break;\n      case MOD:\n        t = jj_consume_token(MOD);\n        break;\n      default:\n        jj_la1[38] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n                      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                      boolean jjtc001 = true;\n                      jjtree.openNodeScope(jjtn001);\n                      jjtreeOpenNodeScope(jjtn001);\n      try {\n                      jjtree.closeNodeScope(jjtn001,  2);\n                      jjtc001 = false;\n                      jjtreeCloseNodeScope(jjtn001);\n                      jjtn001.kind = t.kind;\n      } finally {\n                      if (jjtc001) {\n                        jjtree.closeNodeScope(jjtn001,  2);\n                        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [8, 26], [15, 27], [15, 28], [9, 29], [9, 30], [16, 31], [16, 32], [19, 33], [20, 34], [23, 35], [8, 36], [8, 37], [8, 38], [8, 39], [8, 40], [28, 41], [9, 42], [32, 43], [11, 44], [11, 45], [36, 46], [38, 47], [39, 48], [40, 49], [45, 50], [37, 51], [42, 52], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 8], [27, 15], [28, 15], [29, 9], [30, 9], [31, 16], [32, 16], [33, 19], [34, 20], [35, 23], [36, 8], [37, 8], [38, 8], [39, 8], [40, 8], [41, 28], [42, 9], [43, 32], [44, 11], [45, 11], [46, 36], [47, 38], [48, 39], [49, 40], [50, 45], [51, 37], [52, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "UnaryExpression", "code": "  final public void UnaryExpression() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case PLUS:\n    case MINUS:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_la1[39] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    case INCR:\n      PreIncrementExpression();\n      break;\n    case DECR:\n      PreDecrementExpression();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n      UnaryExpressionNotPlusMinus();\n      break;\n    default:\n      jj_la1[40] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "COND_EXPR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [3, 13], [3, 14], [2, 15], [4, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [9, 22], [1, 23], [1, 24], [1, 25], [12, 26], [14, 27], [17, 28], [9, 29], [9, 30], [9, 31], [9, 32], [10, 33], [11, 34], [12, 35], [12, 36], [12, 37], [26, 38], [26, 39], [31, 40], [32, 41], [35, 42], [12, 43], [12, 44], [12, 45], [12, 46], [39, 47], [18, 48], [22, 49], [22, 50], [43, 51], [45, 52], [46, 53], [50, 54], [44, 55], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 3], [14, 3], [15, 2], [16, 4], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 9], [23, 1], [24, 1], [25, 1], [26, 12], [27, 14], [28, 17], [29, 9], [30, 9], [31, 9], [32, 9], [33, 10], [34, 11], [35, 12], [36, 12], [37, 12], [38, 26], [39, 26], [40, 31], [41, 32], [42, 35], [43, 12], [44, 12], [45, 12], [46, 12], [47, 39], [48, 18], [49, 22], [50, 22], [51, 43], [52, 45], [53, 46], [54, 50], [55, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "PreIncrementExpression", "code": "  final public void PreIncrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(INCR);\n    LHSPrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [9, 16], [4, 17], [12, 18], [13, 19], [5, 20], [5, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 9], [17, 4], [18, 12], [19, 13], [20, 5], [21, 5], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "PreDecrementExpression", "code": "  final public void PreDecrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(DECR);\n    LHSPrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [9, 16], [4, 17], [12, 18], [13, 19], [5, 20], [5, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 9], [17, 4], [18, 12], [19, 13], [20, 5], [21, 5], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "UnaryExpressionNotPlusMinus", "code": "  final public void UnaryExpressionNotPlusMinus() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case BANG:\n    case TILDE:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TILDE:\n        t = jj_consume_token(TILDE);\n        break;\n      case BANG:\n        t = jj_consume_token(BANG);\n        break;\n      default:\n        jj_la1[41] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    default:\n      jj_la1[42] = jj_gen;\n      if (jj_2_10(2147483647)) {\n        CastExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FALSE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case SHORT:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n          PostfixExpression();\n          break;\n        default:\n          jj_la1[43] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "COND_EXPR", "IF", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [2, 12], [4, 13], [1, 14], [6, 15], [1, 16], [1, 17], [1, 18], [9, 19], [11, 20], [4, 21], [13, 22], [6, 23], [6, 24], [6, 25], [6, 26], [7, 27], [8, 28], [9, 29], [9, 30], [9, 31], [19, 32], [19, 33], [21, 34], [4, 35], [25, 36], [26, 37], [29, 38], [9, 39], [9, 40], [9, 41], [9, 42], [33, 43], [21, 44], [21, 45], [34, 46], [34, 47], [14, 48], [15, 49], [15, 50], [39, 51], [41, 52], [42, 53], [44, 54], [21, 55], [21, 56], [21, 57], [47, 58], [50, 59], [55, 60], [40, 61], [56, 62], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 2], [13, 4], [14, 1], [15, 6], [16, 1], [17, 1], [18, 1], [19, 9], [20, 11], [21, 4], [22, 13], [23, 6], [24, 6], [25, 6], [26, 6], [27, 7], [28, 8], [29, 9], [30, 9], [31, 9], [32, 19], [33, 19], [34, 21], [35, 4], [36, 25], [37, 26], [38, 29], [39, 9], [40, 9], [41, 9], [42, 9], [43, 33], [44, 21], [45, 21], [46, 34], [47, 34], [48, 14], [49, 15], [50, 15], [51, 39], [52, 41], [53, 42], [54, 44], [55, 21], [56, 21], [57, 21], [58, 47], [59, 50], [60, 55], [61, 40], [62, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "CastLookahead", "code": "  final public void CastLookahead() throws ParseException {\n    if (jj_2_11(2)) {\n      jj_consume_token(LPAREN);\n      PrimitiveType();\n    } else if (jj_2_12(2147483647)) {\n      jj_consume_token(LPAREN);\n      AmbiguousName();\n      jj_consume_token(LBRACKET);\n      jj_consume_token(RBRACKET);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LPAREN:\n        jj_consume_token(LPAREN);\n        AmbiguousName();\n        jj_consume_token(RPAREN);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case TILDE:\n          jj_consume_token(TILDE);\n          break;\n        case BANG:\n          jj_consume_token(BANG);\n          break;\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          break;\n        case IDENTIFIER:\n          jj_consume_token(IDENTIFIER);\n          break;\n        case NEW:\n          jj_consume_token(NEW);\n          break;\n        case FALSE:\n        case NULL:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n          Literal();\n          break;\n        default:\n          jj_la1[44] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n        break;\n      default:\n        jj_la1[45] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [2, 6], [4, 7], [1, 8], [1, 9], [6, 10], [2, 11], [2, 12], [2, 13], [2, 14], [6, 15], [6, 16], [6, 17], [10, 18], [10, 19], [15, 20], [6, 21], [6, 22], [17, 23], [6, 24], [6, 25], [6, 26], [19, 27], [21, 28], [17, 29], [17, 30], [17, 31], [17, 32], [17, 33], [17, 34], [17, 35], [23, 36], [23, 37], [29, 38], [17, 39], [17, 40], [17, 41], [17, 42], [17, 43], [17, 44], [17, 45], [17, 46], [37, 47], [22, 48], [39, 49], [40, 50], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 2], [7, 4], [8, 1], [9, 1], [10, 6], [11, 2], [12, 2], [13, 2], [14, 2], [15, 6], [16, 6], [17, 6], [18, 10], [19, 10], [20, 15], [21, 6], [22, 6], [23, 17], [24, 6], [25, 6], [26, 6], [27, 19], [28, 21], [29, 17], [30, 17], [31, 17], [32, 17], [33, 17], [34, 17], [35, 17], [36, 23], [37, 23], [38, 29], [39, 17], [40, 17], [41, 17], [42, 17], [43, 17], [44, 17], [45, 17], [46, 17], [47, 37], [48, 22], [49, 39], [50, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "PostfixExpression", "code": "  final public void PostfixExpression() throws ParseException {\n  Token t = null;\n    if (jj_2_13(2147483647)) {\n      LHSPrimaryExpression();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INCR:\n        t = jj_consume_token(INCR);\n        break;\n      case DECR:\n        t = jj_consume_token(DECR);\n        break;\n      default:\n        jj_la1[46] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n                                BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n                                boolean jjtc001 = true;\n                                jjtree.openNodeScope(jjtn001);\n                                jjtreeOpenNodeScope(jjtn001);\n      try {\n                                jjtree.closeNodeScope(jjtn001,  1);\n                                jjtc001 = false;\n                                jjtreeCloseNodeScope(jjtn001);\n                jjtn001.kind = t.kind; jjtn001.postfix = true;\n      } finally {\n                                if (jjtc001) {\n                                  jjtree.closeNodeScope(jjtn001,  1);\n                                  jjtreeCloseNodeScope(jjtn001);\n                                }\n      }\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n        PrimaryExpression();\n        break;\n      default:\n        jj_la1[47] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "SWITCH", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "IF", "CALL", "CALL", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [2, 10], [4, 11], [5, 12], [1, 13], [1, 14], [8, 15], [1, 16], [4, 17], [4, 18], [11, 19], [11, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [6, 26], [7, 27], [8, 28], [8, 29], [8, 30], [15, 31], [15, 32], [17, 33], [4, 34], [4, 35], [4, 36], [20, 37], [21, 38], [24, 39], [25, 40], [28, 41], [8, 42], [8, 43], [8, 44], [8, 45], [32, 46], [34, 47], [12, 48], [12, 49], [42, 50], [44, 51], [45, 52], [49, 53], [35, 54], [43, 55], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 2], [11, 4], [12, 5], [13, 1], [14, 1], [15, 8], [16, 1], [17, 4], [18, 4], [19, 11], [20, 11], [21, 5], [22, 5], [23, 5], [24, 5], [25, 5], [26, 6], [27, 7], [28, 8], [29, 8], [30, 8], [31, 15], [32, 15], [33, 17], [34, 4], [35, 4], [36, 4], [37, 20], [38, 21], [39, 24], [40, 25], [41, 28], [42, 8], [43, 8], [44, 8], [45, 8], [46, 32], [47, 34], [48, 12], [49, 12], [50, 42], [51, 44], [52, 45], [53, 49], [54, 35], [55, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "CastExpression", "code": "  final public void CastExpression() throws ParseException {\n /*@bgen(jjtree) CastExpression */\n  BSHCastExpression jjtn000 = new BSHCastExpression(JJTCASTEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_14(2147483647)) {\n        jj_consume_token(LPAREN);\n        Type();\n        jj_consume_token(RPAREN);\n        UnaryExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          Type();\n          jj_consume_token(RPAREN);\n          UnaryExpressionNotPlusMinus();\n          break;\n        default:\n          jj_la1[48] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [12, 19], [4, 20], [4, 21], [15, 22], [15, 23], [18, 24], [6, 25], [6, 26], [6, 27], [6, 28], [21, 29], [9, 30], [10, 31], [11, 32], [11, 33], [11, 34], [18, 35], [18, 36], [24, 37], [24, 38], [30, 39], [30, 40], [31, 41], [31, 42], [33, 43], [35, 44], [18, 45], [18, 46], [18, 47], [18, 48], [18, 49], [18, 50], [38, 51], [45, 52], [46, 53], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 12], [20, 4], [21, 4], [22, 15], [23, 15], [24, 18], [25, 6], [26, 6], [27, 6], [28, 6], [29, 21], [30, 9], [31, 10], [32, 11], [33, 11], [34, 11], [35, 18], [36, 18], [37, 24], [38, 24], [39, 30], [40, 30], [41, 31], [42, 31], [43, 33], [44, 35], [45, 18], [46, 18], [47, 18], [48, 18], [49, 18], [50, 18], [51, 38], [52, 45], [53, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "PrimaryExpression", "code": "  final public void PrimaryExpression() throws ParseException {\n                                               /*@bgen(jjtree) PrimaryExpression */\n  BSHPrimaryExpression jjtn000 = new BSHPrimaryExpression(JJTPRIMARYEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      PrimaryPrefix();\n      label_15:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACE:\n        case LBRACKET:\n        case DOT:\n          ;\n          break;\n        default:\n          jj_la1[49] = jj_gen;\n          break label_15;\n        }\n        PrimarySuffix();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [2, 14], [3, 15], [5, 16], [9, 17], [10, 18], [6, 19], [4, 20], [4, 21], [16, 22], [16, 23], [6, 24], [19, 25], [21, 26], [9, 27], [10, 28], [11, 29], [11, 30], [11, 31], [19, 32], [19, 33], [25, 34], [25, 35], [27, 36], [27, 37], [28, 38], [28, 39], [30, 40], [19, 41], [35, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 2], [15, 3], [16, 5], [17, 9], [18, 10], [19, 6], [20, 4], [21, 4], [22, 16], [23, 16], [24, 6], [25, 19], [26, 21], [27, 9], [28, 10], [29, 11], [30, 11], [31, 11], [32, 19], [33, 19], [34, 25], [35, 25], [36, 27], [37, 27], [38, 28], [39, 28], [40, 30], [41, 19], [42, 35], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "MethodInvocation", "code": "  final public void MethodInvocation() throws ParseException {\n                                             /*@bgen(jjtree) MethodInvocation */\n  BSHMethodInvocation jjtn000 = new BSHMethodInvocation(JJTMETHODINVOCATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      AmbiguousName();\n      Arguments();\n    } catch (Throwable jjte000) {\n     if (jjtc000) {\n       jjtree.clearNodeScope(jjtn000);\n       jjtc000 = false;\n     } else {\n       jjtree.popNode();\n     }\n     if (jjte000 instanceof RuntimeException) {\n       {if (true) throw (RuntimeException)jjte000;}\n     }\n     if (jjte000 instanceof ParseException) {\n       {if (true) throw (ParseException)jjte000;}\n     }\n     {if (true) throw (Error)jjte000;}\n    } finally {\n     if (jjtc000) {\n       jjtree.closeNodeScope(jjtn000, true);\n       jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [2, 13], [3, 14], [5, 15], [8, 16], [9, 17], [4, 18], [4, 19], [15, 20], [15, 21], [19, 22], [8, 23], [9, 24], [10, 25], [10, 26], [10, 27], [23, 28], [23, 29], [24, 30], [24, 31], [26, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 2], [14, 3], [15, 5], [16, 8], [17, 9], [18, 4], [19, 4], [20, 15], [21, 15], [22, 19], [23, 8], [24, 9], [25, 10], [26, 10], [27, 10], [28, 23], [29, 23], [30, 24], [31, 24], [32, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "PrimaryPrefix", "code": "  final public void PrimaryPrefix() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case FALSE:\n    case NULL:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n      Literal();\n      break;\n    case LPAREN:\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      break;\n    case NEW:\n      AllocationExpression();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case SHORT:\n    case IDENTIFIER:\n      if (jj_2_16(2147483647)) {\n        MethodInvocation();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case SHORT:\n        case IDENTIFIER:\n          if (jj_2_15(2147483647)) {\n            Type();\n          } else {\n            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n            case IDENTIFIER:\n              AmbiguousName();\n              break;\n            default:\n              jj_la1[50] = jj_gen;\n              jj_consume_token(-1);\n              throw new ParseException();\n            }\n          }\n          break;\n        default:\n          jj_la1[51] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n      break;\n    default:\n      jj_la1[52] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [2, 10], [3, 11], [1, 12], [1, 13], [5, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [10, 20], [12, 21], [5, 22], [14, 23], [22, 24], [5, 25], [13, 26], [22, 27], [22, 28], [22, 29], [24, 30], [24, 31], [27, 32], [22, 33], [22, 34], [29, 35], [31, 36], [33, 37], [29, 38], [35, 39], [38, 40], [29, 41], [34, 42], [38, 43], [38, 44], [40, 45], [40, 46], [43, 47], [38, 48], [38, 49], [38, 50], [46, 51], [48, 52], [49, 53], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 2], [11, 3], [12, 1], [13, 1], [14, 5], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 10], [21, 12], [22, 5], [23, 14], [24, 22], [25, 5], [26, 13], [27, 22], [28, 22], [29, 22], [30, 24], [31, 24], [32, 27], [33, 22], [34, 22], [35, 29], [36, 31], [37, 33], [38, 29], [39, 35], [40, 38], [41, 29], [42, 34], [43, 38], [44, 38], [45, 40], [46, 40], [47, 43], [48, 38], [49, 38], [50, 38], [51, 46], [52, 48], [53, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "PrimarySuffix", "code": "  final public void PrimarySuffix() throws ParseException {\n /*@bgen(jjtree) PrimarySuffix */\n    BSHPrimarySuffix jjtn000 = new BSHPrimarySuffix(JJTPRIMARYSUFFIX);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_17(2)) {\n        jj_consume_token(DOT);\n        jj_consume_token(CLASS);\n                jjtree.closeNodeScope(jjtn000, true);\n                jjtc000 = false;\n                jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.CLASS;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.INDEX;\n          break;\n        case DOT:\n          jj_consume_token(DOT);\n          t = jj_consume_token(IDENTIFIER);\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LPAREN:\n            Arguments();\n            break;\n          default:\n            jj_la1[53] = jj_gen;\n            ;\n          }\n                                         jjtree.closeNodeScope(jjtn000, true);\n                                         jjtc000 = false;\n                                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.NAME;\n        jjtn000.field = t.image;\n          break;\n        case LBRACE:\n          jj_consume_token(LBRACE);\n          Expression();\n          jj_consume_token(RBRACE);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.PROPERTY;\n          break;\n        default:\n          jj_la1[54] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "SWITCH", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [2, 14], [3, 15], [4, 16], [6, 17], [10, 18], [11, 19], [7, 20], [13, 21], [5, 22], [5, 23], [17, 24], [17, 25], [20, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [23, 33], [10, 34], [11, 35], [12, 36], [12, 37], [12, 38], [20, 39], [20, 40], [20, 41], [20, 42], [20, 43], [26, 44], [26, 45], [29, 46], [30, 47], [34, 48], [34, 49], [35, 50], [35, 51], [37, 52], [39, 53], [20, 54], [20, 55], [20, 56], [20, 57], [20, 58], [20, 59], [20, 60], [20, 61], [20, 62], [20, 63], [20, 64], [20, 65], [20, 66], [20, 67], [42, 68], [20, 69], [20, 70], [20, 71], [20, 72], [20, 73], [20, 74], [20, 75], [20, 76], [20, 77], [45, 78], [54, 79], [58, 80], [59, 81], [66, 82], [67, 83], [42, 84], [68, 85], [68, 86], [69, 87], [73, 88], [74, 89], [42, 90], [42, 91], [86, 92], [55, 93], [90, 94], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 2], [15, 3], [16, 4], [17, 6], [18, 10], [19, 11], [20, 7], [21, 13], [22, 5], [23, 5], [24, 17], [25, 17], [26, 20], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 7], [33, 23], [34, 10], [35, 11], [36, 12], [37, 12], [38, 12], [39, 20], [40, 20], [41, 20], [42, 20], [43, 20], [44, 26], [45, 26], [46, 29], [47, 30], [48, 34], [49, 34], [50, 35], [51, 35], [52, 37], [53, 39], [54, 20], [55, 20], [56, 20], [57, 20], [58, 20], [59, 20], [60, 20], [61, 20], [62, 20], [63, 20], [64, 20], [65, 20], [66, 20], [67, 20], [68, 42], [69, 20], [70, 20], [71, 20], [72, 20], [73, 20], [74, 20], [75, 20], [76, 20], [77, 20], [78, 45], [79, 54], [80, 58], [81, 59], [82, 66], [83, 67], [84, 42], [85, 68], [86, 68], [87, 69], [88, 73], [89, 74], [90, 42], [91, 42], [92, 86], [93, 55], [94, 90], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "LHSPrimaryPrefix", "code": "  final public void LHSPrimaryPrefix() throws ParseException {\n    if (jj_2_18(2147483647)) {\n      MethodInvocation();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        AmbiguousName();\n        break;\n      default:\n        jj_la1[55] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [3, 7], [3, 8], [5, 9], [5, 10], [7, 11], [3, 12], [3, 13], [3, 14], [10, 15], [12, 16], [13, 17], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 3], [8, 3], [9, 5], [10, 5], [11, 7], [12, 3], [13, 3], [14, 3], [15, 10], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "LHSPrimaryExpression", "code": "  final public void LHSPrimaryExpression() throws ParseException {\n                                                     /*@bgen(jjtree) LHSPrimaryExpression */\n  BSHLHSPrimaryExpression jjtn000 = new BSHLHSPrimaryExpression(JJTLHSPRIMARYEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      LHSPrimaryPrefix();\n      label_16:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACE:\n        case LBRACKET:\n        case DOT:\n          ;\n          break;\n        default:\n          jj_la1[56] = jj_gen;\n          break label_16;\n        }\n        LHSPrimarySuffix();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [2, 14], [3, 15], [5, 16], [9, 17], [10, 18], [6, 19], [4, 20], [4, 21], [16, 22], [16, 23], [6, 24], [19, 25], [21, 26], [9, 27], [10, 28], [11, 29], [11, 30], [11, 31], [19, 32], [19, 33], [25, 34], [25, 35], [27, 36], [27, 37], [28, 38], [28, 39], [30, 40], [19, 41], [35, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 2], [15, 3], [16, 5], [17, 9], [18, 10], [19, 6], [20, 4], [21, 4], [22, 16], [23, 16], [24, 6], [25, 19], [26, 21], [27, 9], [28, 10], [29, 11], [30, 11], [31, 11], [32, 19], [33, 19], [34, 25], [35, 25], [36, 27], [37, 27], [38, 28], [39, 28], [40, 30], [41, 19], [42, 35], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "LHSPrimarySuffix", "code": "  final public void LHSPrimarySuffix() throws ParseException {\n /*@bgen(jjtree) LHSPrimarySuffix */\n    BSHLHSPrimarySuffix jjtn000 = new BSHLHSPrimarySuffix(JJTLHSPRIMARYSUFFIX);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t=null, t1, t2 = null;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACKET:\n        jj_consume_token(LBRACKET);\n        Expression();\n        jj_consume_token(RBRACKET);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.INDEX;\n        break;\n      case DOT:\n        jj_consume_token(DOT);\n        t1 = jj_consume_token(IDENTIFIER);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LPAREN:\n          Arguments();\n          jj_consume_token(DOT);\n          t2 = jj_consume_token(IDENTIFIER);\n          break;\n        default:\n          jj_la1[57] = jj_gen;\n          ;\n        }\n                                                                jjtree.closeNodeScope(jjtn000, true);\n                                                                jjtc000 = false;\n                                                                jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.NAME;\n        if ( t2 == null )\n            jjtn000.field = t1.image;\n        else {\n            jjtn000.method = t1.image;\n            jjtn000.field = t2.image;\n        }\n        break;\n      case LBRACE:\n        jj_consume_token(LBRACE);\n        Expression();\n        jj_consume_token(RBRACE);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.PROPERTY;\n        break;\n      default:\n        jj_la1[58] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "SWITCH", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [2, 14], [2, 15], [3, 16], [4, 17], [6, 18], [10, 19], [11, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [13, 27], [13, 28], [5, 29], [5, 30], [18, 31], [18, 32], [21, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [7, 39], [7, 40], [7, 41], [7, 42], [24, 43], [7, 44], [7, 45], [7, 46], [7, 47], [25, 48], [7, 49], [7, 50], [7, 51], [7, 52], [7, 53], [7, 54], [7, 55], [7, 56], [7, 57], [28, 58], [30, 59], [10, 60], [11, 61], [12, 62], [12, 63], [12, 64], [34, 65], [38, 66], [39, 67], [24, 68], [43, 69], [46, 70], [47, 71], [25, 72], [48, 73], [48, 74], [49, 75], [53, 76], [54, 77], [60, 78], [60, 79], [61, 80], [61, 81], [63, 82], [24, 83], [24, 84], [25, 85], [25, 86], [25, 87], [25, 88], [74, 89], [35, 90], [86, 91], [85, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 2], [15, 2], [16, 3], [17, 4], [18, 6], [19, 10], [20, 11], [21, 7], [22, 7], [23, 7], [24, 7], [25, 7], [26, 7], [27, 13], [28, 13], [29, 5], [30, 5], [31, 18], [32, 18], [33, 21], [34, 7], [35, 7], [36, 7], [37, 7], [38, 7], [39, 7], [40, 7], [41, 7], [42, 7], [43, 24], [44, 7], [45, 7], [46, 7], [47, 7], [48, 25], [49, 7], [50, 7], [51, 7], [52, 7], [53, 7], [54, 7], [55, 7], [56, 7], [57, 7], [58, 28], [59, 30], [60, 10], [61, 11], [62, 12], [63, 12], [64, 12], [65, 34], [66, 38], [67, 39], [68, 24], [69, 43], [70, 46], [71, 47], [72, 25], [73, 48], [74, 48], [75, 49], [76, 53], [77, 54], [78, 60], [79, 60], [80, 61], [81, 61], [82, 63], [83, 24], [84, 24], [85, 25], [86, 25], [87, 25], [88, 25], [89, 74], [90, 35], [91, 86], [92, 85], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "Literal", "code": "  final public void Literal() throws ParseException {\n /*@bgen(jjtree) Literal */\n    BSHLiteral jjtn000 = new BSHLiteral(JJTLITERAL);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token x;\n    boolean b;\n    String literal;\n    char ch;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INTEGER_LITERAL:\n        x = jj_consume_token(INTEGER_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'l' || ch == 'L')\n    {\n        literal = literal.substring(0,literal.length()-1);\n\n        // This really should be Long.decode, but there isn't one. As a result,\n        // hex and octal literals ending in 'l' or 'L' don't work.\n        jjtn000.value = new Primitive( new Long( literal ) );\n    }\n    else\n        jjtn000.value = new Primitive( Integer.decode( literal ) );\n        break;\n      case FLOATING_POINT_LITERAL:\n        x = jj_consume_token(FLOATING_POINT_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'f' || ch == 'F')\n    {\n        literal = literal.substring(0,literal.length()-1);\n        jjtn000.value = new Primitive( new Float( literal ) );\n    }\n    else\n    {\n        if(ch == 'd' || ch == 'D')\n            literal = literal.substring(0,literal.length()-1);\n\n        jjtn000.value = new Primitive( new Double( literal ) );\n    }\n        break;\n      case CHARACTER_LITERAL:\n        x = jj_consume_token(CHARACTER_LITERAL);\n                            jjtree.closeNodeScope(jjtn000, true);\n                            jjtc000 = false;\n                            jjtreeCloseNodeScope(jjtn000);\n                try {\n                jjtn000.charSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw new ParseException(\"Error parsing character: \"+x.image);}\n                }\n        break;\n      case STRING_LITERAL:\n        x = jj_consume_token(STRING_LITERAL);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n                try {\n                        jjtn000.stringSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw new ParseException(\"Error parsing string: \"+x.image);}\n                }\n        break;\n      case FALSE:\n      case TRUE:\n        b = BooleanLiteral();\n                          jjtree.closeNodeScope(jjtn000, true);\n                          jjtc000 = false;\n                          jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = new Primitive( new Boolean(b) );\n        break;\n      case NULL:\n        NullLiteral();\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.NULL;\n        break;\n      case VOID:\n        VoidLiteral();\n                 jjtree.closeNodeScope(jjtn000, true);\n                 jjtc000 = false;\n                 jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.VOID;\n        break;\n      default:\n        jj_la1[59] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "TRY", "BREAK_CONTINUE", "TRY", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CATCH", "CALL", "ASSIGN", "CALL", "ASSIGN", "CATCH", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [0, 11], [0, 12], [9, 13], [9, 14], [9, 15], [10, 16], [6, 17], [7, 18], [9, 19], [13, 20], [14, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [10, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [16, 34], [16, 35], [8, 36], [8, 37], [19, 38], [19, 39], [22, 40], [10, 41], [10, 42], [10, 43], [10, 44], [10, 45], [10, 46], [10, 47], [10, 48], [10, 49], [10, 50], [10, 51], [10, 52], [10, 53], [10, 54], [10, 55], [10, 56], [10, 57], [27, 58], [10, 59], [10, 60], [10, 61], [10, 62], [29, 63], [10, 64], [10, 65], [10, 66], [10, 67], [31, 68], [10, 69], [10, 70], [10, 71], [10, 72], [10, 73], [10, 74], [33, 75], [10, 76], [10, 77], [10, 78], [10, 79], [10, 80], [10, 81], [35, 82], [37, 83], [13, 84], [14, 85], [15, 86], [15, 87], [15, 88], [41, 89], [45, 90], [46, 91], [50, 92], [51, 93], [53, 94], [55, 95], [56, 96], [57, 97], [27, 98], [60, 99], [61, 100], [62, 101], [29, 102], [65, 103], [66, 104], [67, 105], [31, 106], [68, 107], [68, 108], [69, 109], [72, 110], [73, 111], [74, 112], [33, 113], [75, 114], [75, 115], [76, 116], [79, 117], [80, 118], [81, 119], [84, 120], [84, 121], [85, 122], [85, 123], [87, 124], [94, 125], [58, 126], [98, 127], [63, 128], [102, 129], [31, 130], [106, 131], [31, 132], [31, 133], [107, 134], [108, 135], [109, 136], [113, 137], [33, 138], [33, 139], [114, 140], [115, 141], [116, 142], [42, 143], [126, 144], [126, 145], [127, 146], [127, 147], [128, 148], [128, 149], [129, 150], [129, 151], [130, 152], [106, 153], [131, 154], [131, 155], [132, 156], [133, 157], [136, 158], [136, 159], [137, 160], [138, 161], [139, 162], [142, 163], [142, 164], [144, 165], [146, 166], [146, 167], [148, 168], [150, 169], [150, 170], [152, 171], [153, 172], [154, 173], [155, 174], [156, 175], [157, 176], [157, 177], [161, 178], [162, 179], [162, 180], [165, 181], [168, 182], [172, 183], [172, 184], [176, 185], [176, 186], [179, 187], [179, 188], [181, 189], [182, 190], [183, 191], [183, 192], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 0], [12, 0], [13, 9], [14, 9], [15, 9], [16, 10], [17, 6], [18, 7], [19, 9], [20, 13], [21, 14], [22, 10], [23, 10], [24, 10], [25, 10], [26, 10], [27, 10], [28, 10], [29, 10], [30, 10], [31, 10], [32, 10], [33, 10], [34, 16], [35, 16], [36, 8], [37, 8], [38, 19], [39, 19], [40, 22], [41, 10], [42, 10], [43, 10], [44, 10], [45, 10], [46, 10], [47, 10], [48, 10], [49, 10], [50, 10], [51, 10], [52, 10], [53, 10], [54, 10], [55, 10], [56, 10], [57, 10], [58, 27], [59, 10], [60, 10], [61, 10], [62, 10], [63, 29], [64, 10], [65, 10], [66, 10], [67, 10], [68, 31], [69, 10], [70, 10], [71, 10], [72, 10], [73, 10], [74, 10], [75, 33], [76, 10], [77, 10], [78, 10], [79, 10], [80, 10], [81, 10], [82, 35], [83, 37], [84, 13], [85, 14], [86, 15], [87, 15], [88, 15], [89, 41], [90, 45], [91, 46], [92, 50], [93, 51], [94, 53], [95, 55], [96, 56], [97, 57], [98, 27], [99, 60], [100, 61], [101, 62], [102, 29], [103, 65], [104, 66], [105, 67], [106, 31], [107, 68], [108, 68], [109, 69], [110, 72], [111, 73], [112, 74], [113, 33], [114, 75], [115, 75], [116, 76], [117, 79], [118, 80], [119, 81], [120, 84], [121, 84], [122, 85], [123, 85], [124, 87], [125, 94], [126, 58], [127, 98], [128, 63], [129, 102], [130, 31], [131, 106], [132, 31], [133, 31], [134, 107], [135, 108], [136, 109], [137, 113], [138, 33], [139, 33], [140, 114], [141, 115], [142, 116], [143, 42], [144, 126], [145, 126], [146, 127], [147, 127], [148, 128], [149, 128], [150, 129], [151, 129], [152, 130], [153, 106], [154, 131], [155, 131], [156, 132], [157, 133], [158, 136], [159, 136], [160, 137], [161, 138], [162, 139], [163, 142], [164, 142], [165, 144], [166, 146], [167, 146], [168, 148], [169, 150], [170, 150], [171, 152], [172, 153], [173, 154], [174, 155], [175, 156], [176, 157], [177, 157], [178, 161], [179, 162], [180, 162], [181, 165], [182, 168], [183, 172], [184, 172], [185, 176], [186, 176], [187, 179], [188, 179], [189, 181], [190, 182], [191, 183], [192, 183], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192]]}, {"function_name": "BooleanLiteral", "code": "  final public boolean BooleanLiteral() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case TRUE:\n      jj_consume_token(TRUE);\n           {if (true) return true;}\n      break;\n    case FALSE:\n      jj_consume_token(FALSE);\n            {if (true) return false;}\n      break;\n    default:\n      jj_la1[60] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [4, 9], [4, 10], [6, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [10, 18], [12, 19], [14, 20], [14, 21], [16, 22], [16, 23], [20, 24], [22, 25], [13, 26], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 4], [10, 4], [11, 6], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 10], [19, 12], [20, 14], [21, 14], [22, 16], [23, 16], [24, 20], [25, 22], [26, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "NullLiteral", "code": "  final public void NullLiteral() throws ParseException {\n    jj_consume_token(NULL);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "VoidLiteral", "code": "  final public void VoidLiteral() throws ParseException {\n    jj_consume_token(VOID);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Arguments", "code": "  final public void Arguments() throws ParseException {\n /*@bgen(jjtree) Arguments */\n  BSHArguments jjtn000 = new BSHArguments(JJTARGUMENTS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ArgumentList();\n        break;\n      default:\n        jj_la1[61] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [2, 15], [3, 16], [5, 17], [9, 18], [10, 19], [6, 20], [13, 21], [13, 22], [4, 23], [4, 24], [17, 25], [17, 26], [6, 27], [6, 28], [22, 29], [24, 30], [9, 31], [10, 32], [11, 33], [11, 34], [11, 35], [31, 36], [31, 37], [32, 38], [32, 39], [34, 40], [27, 41], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 2], [16, 3], [17, 5], [18, 9], [19, 10], [20, 6], [21, 13], [22, 13], [23, 4], [24, 4], [25, 17], [26, 17], [27, 6], [28, 6], [29, 22], [30, 24], [31, 9], [32, 10], [33, 11], [34, 11], [35, 11], [36, 31], [37, 31], [38, 32], [39, 32], [40, 34], [41, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "ArgumentList", "code": "  final public void ArgumentList() throws ParseException {\n    Expression();\n    label_17:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        ;\n        break;\n      default:\n        jj_la1[62] = jj_gen;\n        break label_17;\n      }\n      jj_consume_token(COMMA);\n      Expression();", "ast_nodes": ["FUNC_DECL", "LOOP", "LITERAL_ANCHOR", "CALL", "SWITCH", "CALL", "CALL", "COND_EXPR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [7, 10], [7, 11], [4, 12], [11, 13], [12, 14], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 7], [11, 7], [12, 4], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "AllocationExpression", "code": "  final public void AllocationExpression() throws ParseException {\n /*@bgen(jjtree) AllocationExpression */\n  BSHAllocationExpression jjtn000 = new BSHAllocationExpression(JJTALLOCATIONEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_20(2)) {\n        jj_consume_token(NEW);\n        PrimitiveType();\n        ArrayDimensions();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case NEW:\n          jj_consume_token(NEW);\n          AmbiguousName();\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LBRACKET:\n            ArrayDimensions();\n            break;\n          case LPAREN:\n            Arguments();\n            if (jj_2_19(2)) {\n              Block();\n            } else {\n              ;\n            }\n            break;\n          default:\n            jj_la1[63] = jj_gen;\n            jj_consume_token(-1);\n            throw new ParseException();\n          }\n          break;\n        default:\n          jj_la1[64] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [12, 19], [4, 20], [4, 21], [15, 22], [15, 23], [18, 24], [6, 25], [6, 26], [6, 27], [21, 28], [9, 29], [10, 30], [11, 31], [11, 32], [11, 33], [18, 34], [18, 35], [18, 36], [24, 37], [24, 38], [29, 39], [29, 40], [30, 41], [30, 42], [32, 43], [34, 44], [18, 45], [18, 46], [36, 47], [18, 48], [18, 49], [38, 50], [45, 51], [36, 52], [36, 53], [36, 54], [36, 55], [47, 56], [47, 57], [52, 58], [36, 59], [36, 60], [54, 61], [36, 62], [36, 63], [57, 64], [46, 65], [59, 66], [61, 67], [54, 68], [60, 69], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 12], [20, 4], [21, 4], [22, 15], [23, 15], [24, 18], [25, 6], [26, 6], [27, 6], [28, 21], [29, 9], [30, 10], [31, 11], [32, 11], [33, 11], [34, 18], [35, 18], [36, 18], [37, 24], [38, 24], [39, 29], [40, 29], [41, 30], [42, 30], [43, 32], [44, 34], [45, 18], [46, 18], [47, 36], [48, 18], [49, 18], [50, 38], [51, 45], [52, 36], [53, 36], [54, 36], [55, 36], [56, 47], [57, 47], [58, 52], [59, 36], [60, 36], [61, 54], [62, 36], [63, 36], [64, 57], [65, 46], [66, 59], [67, 61], [68, 54], [69, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "ArrayDimensions", "code": "  final public void ArrayDimensions() throws ParseException {\n /*@bgen(jjtree) ArrayDimensions */\n  BSHArrayDimensions jjtn000 = new BSHArrayDimensions(JJTARRAYDIMENSIONS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_22(2)) {\n        label_18:\n        while (true) {\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                                        jjtn000.addArrayDimension();\n          if (jj_2_21(2)) {\n            ;\n          } else {\n            break label_18;\n          }\n        }\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          label_19:\n          while (true) {\n            jj_consume_token(LBRACKET);\n            jj_consume_token(RBRACKET);\n              jjtn000.addArrayDimension();\n            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n            case LBRACKET:\n              ;\n              break;\n            default:\n              jj_la1[65] = jj_gen;\n              break label_19;\n            }\n          }\n          ArrayInitializer();\n          break;\n        default:\n          jj_la1[66] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "LOOP", "CALL", "BINARY_OP", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "BREAK_CONTINUE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [6, 19], [12, 20], [4, 21], [4, 22], [15, 23], [15, 24], [18, 25], [19, 26], [22, 27], [9, 28], [10, 29], [11, 30], [11, 31], [11, 32], [18, 33], [18, 34], [18, 35], [25, 36], [25, 37], [19, 38], [28, 39], [28, 40], [29, 41], [29, 42], [31, 43], [33, 44], [18, 45], [18, 46], [18, 47], [35, 48], [37, 49], [38, 50], [19, 51], [19, 52], [19, 53], [19, 54], [45, 55], [35, 56], [38, 57], [50, 58], [56, 59], [35, 60], [35, 61], [35, 62], [46, 63], [56, 64], [56, 65], [59, 66], [59, 67], [56, 68], [67, 69], [68, 70], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 6], [20, 12], [21, 4], [22, 4], [23, 15], [24, 15], [25, 18], [26, 19], [27, 22], [28, 9], [29, 10], [30, 11], [31, 11], [32, 11], [33, 18], [34, 18], [35, 18], [36, 25], [37, 25], [38, 19], [39, 28], [40, 28], [41, 29], [42, 29], [43, 31], [44, 33], [45, 18], [46, 18], [47, 18], [48, 35], [49, 37], [50, 38], [51, 19], [52, 19], [53, 19], [54, 19], [55, 45], [56, 35], [57, 38], [58, 50], [59, 56], [60, 35], [61, 35], [62, 35], [63, 46], [64, 56], [65, 56], [66, 59], [67, 59], [68, 56], [69, 67], [70, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "Statement", "code": "  final public void Statement() throws ParseException {\n    if (jj_2_23(2)) {\n      LabeledStatement();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACE:\n        Block();\n        break;\n      case SEMICOLON:\n        EmptyStatement();\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        StatementExpression();\n        jj_consume_token(SEMICOLON);\n        break;\n      case SWITCH:\n        SwitchStatement();\n        break;\n      case IF:\n        IfStatement();\n        break;\n      case WHILE:\n        WhileStatement();\n        break;\n      case DO:\n        DoStatement();\n        break;\n      case FOR:\n        ForStatement();\n        break;\n      case BREAK:\n        BreakStatement();\n        break;\n      case CONTINUE:\n        ContinueStatement();\n        break;\n      case RETURN:\n        ReturnStatement();\n        break;\n      case THROW:\n        ThrowStatement();\n        break;\n      case TRY:\n        TryStatement();\n        break;\n      default:\n        jj_la1[67] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [5, 21], [5, 22], [7, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [22, 40], [24, 41], [25, 42], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 3], [8, 3], [9, 3], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 5], [22, 5], [23, 7], [24, 3], [25, 3], [26, 3], [27, 3], [28, 3], [29, 3], [30, 3], [31, 3], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 22], [41, 24], [42, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "LabeledStatement", "code": "  final public void LabeledStatement() throws ParseException {\n    jj_consume_token(IDENTIFIER);\n    jj_consume_token(COLON);\n    Statement();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Block", "code": "  final public void Block() throws ParseException {\n /*@bgen(jjtree) Block */\n  BSHBlock jjtn000 = new BSHBlock(JJTBLOCK);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      label_20:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BREAK:\n        case BYTE:\n        case CHAR:\n        case CONTINUE:\n        case DO:\n        case DOUBLE:\n        case FALSE:\n        case FINAL:\n        case FLOAT:\n        case FOR:\n        case IF:\n        case IMPORT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case RETURN:\n        case SHORT:\n        case SWITCH:\n        case THROW:\n        case TRUE:\n        case TRY:\n        case VOID:\n        case WHILE:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n        case LBRACE:\n        case SEMICOLON:\n        case INCR:\n        case DECR:\n          ;\n          break;\n        default:\n          jj_la1[68] = jj_gen;\n          break label_20;\n        }\n        BlockStatement();\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [2, 15], [3, 16], [5, 17], [9, 18], [10, 19], [6, 20], [4, 21], [4, 22], [17, 23], [17, 24], [6, 25], [20, 26], [22, 27], [9, 28], [10, 29], [11, 30], [11, 31], [11, 32], [20, 33], [20, 34], [26, 35], [26, 36], [28, 37], [28, 38], [29, 39], [29, 40], [31, 41], [20, 42], [36, 43], [42, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 2], [16, 3], [17, 5], [18, 9], [19, 10], [20, 6], [21, 4], [22, 4], [23, 17], [24, 17], [25, 6], [26, 20], [27, 22], [28, 9], [29, 10], [30, 11], [31, 11], [32, 11], [33, 20], [34, 20], [35, 26], [36, 26], [37, 28], [38, 28], [39, 29], [40, 29], [41, 31], [42, 20], [43, 36], [44, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "BlockStatement", "code": "  final public void BlockStatement() throws ParseException {\n    if (jj_2_24(2147483647)) {\n      MethodDeclaration();\n    } else if (jj_2_25(2147483647)) {\n      TypedVariableDeclaration();\n      jj_consume_token(SEMICOLON);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BREAK:\n      case BYTE:\n      case CHAR:\n      case CONTINUE:\n      case DO:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case FOR:\n      case IF:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case RETURN:\n      case SHORT:\n      case SWITCH:\n      case THROW:\n      case TRUE:\n      case TRY:\n      case VOID:\n      case WHILE:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case LBRACE:\n      case SEMICOLON:\n      case INCR:\n      case DECR:\n        Statement();\n        break;\n      case IMPORT:\n        ImportDeclaration();\n        break;\n      default:\n        jj_la1[69] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [2, 6], [4, 7], [1, 8], [6, 9], [2, 10], [2, 11], [6, 12], [6, 13], [6, 14], [9, 15], [9, 16], [12, 17], [6, 18], [6, 19], [6, 20], [6, 21], [16, 22], [18, 23], [19, 24], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 2], [7, 4], [8, 1], [9, 6], [10, 2], [11, 2], [12, 6], [13, 6], [14, 6], [15, 9], [16, 9], [17, 12], [18, 6], [19, 6], [20, 6], [21, 6], [22, 16], [23, 18], [24, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "EmptyStatement", "code": "  final public void EmptyStatement() throws ParseException {\n    jj_consume_token(SEMICOLON);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "StatementExpression", "code": "  final public void StatementExpression() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case INCR:\n      PreIncrementExpression();\n      break;\n    case DECR:\n      PreDecrementExpression();\n      break;\n    default:\n      jj_la1[70] = jj_gen;\n      if (jj_2_26(2147483647)) {\n        Assignment();\n\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FALSE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case SHORT:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n          PostfixExpression();\n          break;\n        default:\n          jj_la1[71] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [2, 7], [3, 8], [1, 9], [1, 10], [1, 11], [7, 12], [3, 13], [8, 14], [13, 15], [3, 16], [13, 17], [13, 18], [15, 19], [15, 20], [9, 21], [17, 22], [13, 23], [13, 24], [13, 25], [20, 26], [23, 27], [24, 28], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 2], [8, 3], [9, 1], [10, 1], [11, 1], [12, 7], [13, 3], [14, 8], [15, 13], [16, 3], [17, 13], [18, 13], [19, 15], [20, 15], [21, 9], [22, 17], [23, 13], [24, 13], [25, 13], [26, 20], [27, 23], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "SwitchStatement", "code": "  final public void SwitchStatement() throws ParseException {\n /*@bgen(jjtree) SwitchStatement */\n  BSHSwitchStatement jjtn000 = new BSHSwitchStatement(JJTSWITCHSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(SWITCH);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(LBRACE);\n      label_21:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CASE:\n        case _DEFAULT:\n          ;\n          break;\n        default:\n          jj_la1[72] = jj_gen;\n          break label_21;\n        }\n        SwitchLabel();\n        label_22:\n        while (true) {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case BOOLEAN:\n          case BREAK:\n          case BYTE:\n          case CHAR:\n          case CONTINUE:\n          case DO:\n          case DOUBLE:\n          case FALSE:\n          case FINAL:\n          case FLOAT:\n          case FOR:\n          case IF:\n          case IMPORT:\n          case INT:\n          case LONG:\n          case NEW:\n          case NULL:\n          case RETURN:\n          case SHORT:\n          case SWITCH:\n          case THROW:\n          case TRUE:\n          case TRY:\n          case VOID:\n          case WHILE:\n          case INTEGER_LITERAL:\n          case FLOATING_POINT_LITERAL:\n          case CHARACTER_LITERAL:\n          case STRING_LITERAL:\n          case IDENTIFIER:\n          case LPAREN:\n          case LBRACE:\n          case SEMICOLON:\n          case INCR:\n          case DECR:\n            ;\n            break;\n          default:\n            jj_la1[73] = jj_gen;\n            break label_22;\n          }\n          BlockStatement();\n        }\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LOOP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "SWITCH", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [2, 19], [3, 20], [5, 21], [9, 22], [10, 23], [6, 24], [6, 25], [4, 26], [4, 27], [21, 28], [21, 29], [24, 30], [6, 31], [25, 32], [27, 33], [9, 34], [10, 35], [11, 36], [11, 37], [11, 38], [24, 39], [25, 40], [25, 41], [32, 42], [32, 43], [34, 44], [34, 45], [35, 46], [35, 47], [37, 48], [24, 49], [39, 50], [25, 51], [43, 52], [39, 53], [39, 54], [50, 55], [50, 56], [39, 57], [56, 58], [51, 59], [57, 60], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 2], [20, 3], [21, 5], [22, 9], [23, 10], [24, 6], [25, 6], [26, 4], [27, 4], [28, 21], [29, 21], [30, 24], [31, 6], [32, 25], [33, 27], [34, 9], [35, 10], [36, 11], [37, 11], [38, 11], [39, 24], [40, 25], [41, 25], [42, 32], [43, 32], [44, 34], [45, 34], [46, 35], [47, 35], [48, 37], [49, 24], [50, 39], [51, 25], [52, 43], [53, 39], [54, 39], [55, 50], [56, 50], [57, 39], [58, 56], [59, 51], [60, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "SwitchLabel", "code": "  final public void SwitchLabel() throws ParseException {\n /*@bgen(jjtree) SwitchLabel */\n  BSHSwitchLabel jjtn000 = new BSHSwitchLabel(JJTSWITCHLABEL);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CASE:\n        jj_consume_token(CASE);\n        Expression();\n        jj_consume_token(COLON);\n        break;\n      case _DEFAULT:\n        jj_consume_token(_DEFAULT);\n        jj_consume_token(COLON);\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n                  jjtn000.isDefault = true;\n        break;\n      default:\n        jj_la1[74] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [6, 19], [6, 20], [12, 21], [12, 22], [4, 23], [4, 24], [15, 25], [15, 26], [18, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 35], [6, 36], [6, 37], [6, 38], [22, 39], [24, 40], [9, 41], [10, 42], [11, 43], [11, 44], [11, 45], [28, 46], [30, 47], [32, 48], [33, 49], [41, 50], [41, 51], [42, 52], [42, 53], [44, 54], [29, 55], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 6], [20, 6], [21, 12], [22, 12], [23, 4], [24, 4], [25, 15], [26, 15], [27, 18], [28, 6], [29, 6], [30, 6], [31, 6], [32, 6], [33, 6], [34, 6], [35, 6], [36, 6], [37, 6], [38, 6], [39, 22], [40, 24], [41, 9], [42, 10], [43, 11], [44, 11], [45, 11], [46, 28], [47, 30], [48, 32], [49, 33], [50, 41], [51, 41], [52, 42], [53, 42], [54, 44], [55, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "IfStatement", "code": "  final public void IfStatement() throws ParseException {\n /*@bgen(jjtree) IfStatement */\n  BSHIfStatement jjtn000 = new BSHIfStatement(JJTIFSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(IF);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ELSE:\n        jj_consume_token(ELSE);\n        Statement();\n        break;\n      default:\n        jj_la1[75] = jj_gen;\n        ;\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [3, 19], [5, 20], [9, 21], [10, 22], [6, 23], [12, 24], [12, 25], [4, 26], [4, 27], [20, 28], [20, 29], [6, 30], [6, 31], [6, 32], [25, 33], [27, 34], [9, 35], [10, 36], [11, 37], [11, 38], [11, 39], [35, 40], [35, 41], [36, 42], [36, 43], [38, 44], [30, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 3], [20, 5], [21, 9], [22, 10], [23, 6], [24, 12], [25, 12], [26, 4], [27, 4], [28, 20], [29, 20], [30, 6], [31, 6], [32, 6], [33, 25], [34, 27], [35, 9], [36, 10], [37, 11], [38, 11], [39, 11], [40, 35], [41, 35], [42, 36], [43, 36], [44, 38], [45, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "WhileStatement", "code": "  final public void WhileStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [2, 16], [3, 17], [5, 18], [8, 19], [9, 20], [4, 21], [4, 22], [18, 23], [18, 24], [22, 25], [8, 26], [9, 27], [10, 28], [10, 29], [10, 30], [26, 31], [26, 32], [27, 33], [27, 34], [29, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 2], [17, 3], [18, 5], [19, 8], [20, 9], [21, 4], [22, 4], [23, 18], [24, 18], [25, 22], [26, 8], [27, 9], [28, 10], [29, 10], [30, 10], [31, 26], [32, 26], [33, 27], [34, 27], [35, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "DoStatement", "code": "  final public void DoStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(DO);\n      Statement();\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(SEMICOLON);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.isDoStatement=true;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [2, 22], [3, 23], [5, 24], [8, 25], [9, 26], [11, 27], [13, 28], [14, 29], [4, 30], [4, 31], [24, 32], [24, 33], [31, 34], [8, 35], [9, 36], [10, 37], [10, 38], [10, 39], [35, 40], [35, 41], [36, 42], [36, 43], [38, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 2], [23, 3], [24, 5], [25, 8], [26, 9], [27, 11], [28, 13], [29, 14], [30, 4], [31, 4], [32, 24], [33, 24], [34, 31], [35, 8], [36, 9], [37, 10], [38, 10], [39, 10], [40, 35], [41, 35], [42, 36], [43, 36], [44, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "ForStatement", "code": "  final public void ForStatement() throws ParseException {\n /*@bgen(jjtree) ForStatement */\n  BSHForStatement jjtn000 = new BSHForStatement(JJTFORSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(FOR);\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FINAL:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        ForInit();\n                          jjtn000.hasForInit=true;\n        break;\n      default:\n        jj_la1[76] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n                         jjtn000.hasExpression=true;\n        break;\n      default:\n        jj_la1[77] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        ForUpdate();\n                        jjtn000.hasForUpdate=true;\n        break;\n      default:\n        jj_la1[78] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "SWITCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [0, 9], [0, 10], [5, 11], [5, 12], [5, 13], [1, 14], [1, 15], [6, 16], [1, 17], [7, 18], [1, 19], [8, 20], [1, 21], [1, 22], [2, 23], [3, 24], [5, 25], [11, 26], [12, 27], [6, 28], [16, 29], [16, 30], [7, 31], [18, 32], [18, 33], [8, 34], [20, 35], [20, 36], [4, 37], [4, 38], [25, 39], [25, 40], [6, 41], [6, 42], [6, 43], [30, 44], [7, 45], [7, 46], [7, 47], [33, 48], [8, 49], [8, 50], [8, 51], [36, 52], [38, 53], [11, 54], [12, 55], [13, 56], [13, 57], [13, 58], [42, 59], [46, 60], [50, 61], [54, 62], [54, 63], [55, 64], [55, 65], [57, 66], [41, 67], [45, 68], [49, 69], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 0], [10, 0], [11, 5], [12, 5], [13, 5], [14, 1], [15, 1], [16, 6], [17, 1], [18, 7], [19, 1], [20, 8], [21, 1], [22, 1], [23, 2], [24, 3], [25, 5], [26, 11], [27, 12], [28, 6], [29, 16], [30, 16], [31, 7], [32, 18], [33, 18], [34, 8], [35, 20], [36, 20], [37, 4], [38, 4], [39, 25], [40, 25], [41, 6], [42, 6], [43, 6], [44, 30], [45, 7], [46, 7], [47, 7], [48, 33], [49, 8], [50, 8], [51, 8], [52, 36], [53, 38], [54, 11], [55, 12], [56, 13], [57, 13], [58, 13], [59, 42], [60, 46], [61, 50], [62, 54], [63, 54], [64, 55], [65, 55], [66, 57], [67, 41], [68, 45], [69, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "ForInit", "code": "  final public void ForInit() throws ParseException {\n  Token t = null;\n    if (jj_2_27(2147483647)) {\n      TypedVariableDeclaration();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        StatementExpressionList();\n        break;\n      default:\n        jj_la1[79] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [4, 7], [1, 8], [4, 9], [4, 10], [7, 11], [7, 12], [9, 13], [4, 14], [4, 15], [4, 16], [12, 17], [14, 18], [15, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 4], [8, 1], [9, 4], [10, 4], [11, 7], [12, 7], [13, 9], [14, 4], [15, 4], [16, 4], [17, 12], [18, 14], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "TypedVariableDeclaration", "code": "  final public void TypedVariableDeclaration() throws ParseException {\n /*@bgen(jjtree) TypedVariableDeclaration */\n        BSHTypedVariableDeclaration jjtn000 = new BSHTypedVariableDeclaration(JJTTYPEDVARIABLEDECLARATION);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FINAL:\n        t = jj_consume_token(FINAL);\n        break;\n      default:\n        jj_la1[80] = jj_gen;\n        ;\n      }\n      Type();\n      VariableDeclarator();\n      label_23:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          jj_la1[81] = jj_gen;\n          break label_23;\n        }\n        jj_consume_token(COMMA);\n        VariableDeclarator();\n      }\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n        jjtn000.isFinal = (t!=null);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [0, 9], [0, 10], [6, 11], [6, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [7, 18], [1, 19], [1, 20], [8, 21], [2, 22], [3, 23], [4, 24], [6, 25], [11, 26], [12, 27], [14, 28], [16, 29], [17, 30], [7, 31], [8, 32], [21, 33], [21, 34], [5, 35], [5, 36], [25, 37], [25, 38], [28, 39], [7, 40], [7, 41], [31, 42], [8, 43], [8, 44], [34, 45], [36, 46], [11, 47], [12, 48], [13, 49], [13, 50], [13, 51], [31, 52], [31, 53], [42, 54], [42, 55], [44, 56], [47, 57], [47, 58], [48, 59], [48, 60], [50, 61], [31, 62], [55, 63], [43, 64], [62, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 0], [10, 0], [11, 6], [12, 6], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 7], [19, 1], [20, 1], [21, 8], [22, 2], [23, 3], [24, 4], [25, 6], [26, 11], [27, 12], [28, 14], [29, 16], [30, 17], [31, 7], [32, 8], [33, 21], [34, 21], [35, 5], [36, 5], [37, 25], [38, 25], [39, 28], [40, 7], [41, 7], [42, 31], [43, 8], [44, 8], [45, 34], [46, 36], [47, 11], [48, 12], [49, 13], [50, 13], [51, 13], [52, 31], [53, 31], [54, 42], [55, 42], [56, 44], [57, 47], [58, 47], [59, 48], [60, 48], [61, 50], [62, 31], [63, 55], [64, 43], [65, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "StatementExpressionList", "code": "  final public void StatementExpressionList() throws ParseException {\n /*@bgen(jjtree) StatementExpressionList */\n  BSHStatementExpressionList jjtn000 = new BSHStatementExpressionList(JJTSTATEMENTEXPRESSIONLIST);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      StatementExpression();\n      label_24:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          jj_la1[82] = jj_gen;\n          break label_24;\n        }\n        jj_consume_token(COMMA);\n        StatementExpression();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [2, 14], [3, 15], [5, 16], [9, 17], [10, 18], [6, 19], [4, 20], [4, 21], [16, 22], [16, 23], [6, 24], [6, 25], [19, 26], [21, 27], [9, 28], [10, 29], [11, 30], [11, 31], [11, 32], [19, 33], [19, 34], [26, 35], [26, 36], [28, 37], [28, 38], [29, 39], [29, 40], [31, 41], [19, 42], [36, 43], [42, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 2], [15, 3], [16, 5], [17, 9], [18, 10], [19, 6], [20, 4], [21, 4], [22, 16], [23, 16], [24, 6], [25, 6], [26, 19], [27, 21], [28, 9], [29, 10], [30, 11], [31, 11], [32, 11], [33, 19], [34, 19], [35, 26], [36, 26], [37, 28], [38, 28], [39, 29], [40, 29], [41, 31], [42, 19], [43, 36], [44, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "ForUpdate", "code": "  final public void ForUpdate() throws ParseException {\n    StatementExpressionList();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BreakStatement", "code": "  final public void BreakStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(BREAK);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        jj_la1[83] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                 jjtree.closeNodeScope(jjtn000, true);\n                                 jjtc000 = false;\n                                 jjtreeCloseNodeScope(jjtn000);\n                                 jjtn000.kind = BREAK;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "SWITCH", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [1, 14], [2, 15], [3, 16], [10, 17], [11, 18], [5, 19], [13, 20], [13, 21], [4, 22], [4, 23], [5, 24], [5, 25], [21, 26], [23, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 1], [15, 2], [16, 3], [17, 10], [18, 11], [19, 5], [20, 13], [21, 13], [22, 4], [23, 4], [24, 5], [25, 5], [26, 21], [27, 23], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "ContinueStatement", "code": "  final public void ContinueStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(CONTINUE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        jj_la1[84] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                    jjtree.closeNodeScope(jjtn000, true);\n                                    jjtc000 = false;\n                                    jjtreeCloseNodeScope(jjtn000);\n                                    jjtn000.kind = CONTINUE;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "SWITCH", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [1, 14], [2, 15], [3, 16], [10, 17], [11, 18], [5, 19], [13, 20], [13, 21], [4, 22], [4, 23], [5, 24], [5, 25], [21, 26], [23, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 1], [15, 2], [16, 3], [17, 10], [18, 11], [19, 5], [20, 13], [21, 13], [22, 4], [23, 4], [24, 5], [25, 5], [26, 21], [27, 23], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "ReturnStatement", "code": "  final public void ReturnStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(RETURN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n        break;\n      default:\n        jj_la1[85] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                  jjtree.closeNodeScope(jjtn000, true);\n                                  jjtc000 = false;\n                                  jjtreeCloseNodeScope(jjtn000);\n                                  jjtn000.kind = RETURN;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [6, 17], [1, 18], [2, 19], [3, 20], [5, 21], [9, 22], [10, 23], [14, 24], [15, 25], [6, 26], [17, 27], [17, 28], [4, 29], [4, 30], [21, 31], [21, 32], [6, 33], [6, 34], [28, 35], [30, 36], [9, 37], [10, 38], [11, 39], [11, 40], [11, 41], [37, 42], [37, 43], [38, 44], [38, 45], [40, 46], [33, 47], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 6], [18, 1], [19, 2], [20, 3], [21, 5], [22, 9], [23, 10], [24, 14], [25, 15], [26, 6], [27, 17], [28, 17], [29, 4], [30, 4], [31, 21], [32, 21], [33, 6], [34, 6], [35, 28], [36, 30], [37, 9], [38, 10], [39, 11], [40, 11], [41, 11], [42, 37], [43, 37], [44, 38], [45, 38], [46, 40], [47, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "ThrowStatement", "code": "  final public void ThrowStatement() throws ParseException {\n /*@bgen(jjtree) ThrowStatement */\n  BSHThrowStatement jjtn000 = new BSHThrowStatement(JJTTHROWSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(THROW);\n      Expression();\n      jj_consume_token(SEMICOLON);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [5, 16], [8, 17], [9, 18], [4, 19], [4, 20], [16, 21], [16, 22], [20, 23], [8, 24], [9, 25], [10, 26], [10, 27], [10, 28], [24, 29], [24, 30], [25, 31], [25, 32], [27, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 5], [17, 8], [18, 9], [19, 4], [20, 4], [21, 16], [22, 16], [23, 20], [24, 8], [25, 9], [26, 10], [27, 10], [28, 10], [29, 24], [30, 24], [31, 25], [32, 25], [33, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "TryStatement", "code": "  final public void TryStatement() throws ParseException {\n /*@bgen(jjtree) TryStatement */\n  BSHTryStatement jjtn000 = new BSHTryStatement(JJTTRYSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(TRY);\n      Block();\n      label_25:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CATCH:\n          ;\n          break;\n        default:\n          jj_la1[86] = jj_gen;\n          break label_25;\n        }\n        jj_consume_token(CATCH);\n        jj_consume_token(LPAREN);\n        FormalParameter();\n        jj_consume_token(RPAREN);\n        Block();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FINALLY:\n        jj_consume_token(FINALLY);\n        Block();\n        break;\n      default:\n        jj_la1[87] = jj_gen;\n        ;\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [5, 10], [5, 11], [5, 12], [6, 13], [7, 14], [1, 15], [1, 16], [2, 17], [3, 18], [5, 19], [10, 20], [11, 21], [6, 22], [13, 23], [13, 24], [7, 25], [4, 26], [4, 27], [19, 28], [19, 29], [6, 30], [6, 31], [6, 32], [24, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [25, 39], [27, 40], [10, 41], [11, 42], [12, 43], [12, 44], [12, 45], [25, 46], [25, 47], [39, 48], [39, 49], [41, 50], [41, 51], [42, 52], [42, 53], [44, 54], [25, 55], [49, 56], [30, 57], [55, 58], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 5], [11, 5], [12, 5], [13, 6], [14, 7], [15, 1], [16, 1], [17, 2], [18, 3], [19, 5], [20, 10], [21, 11], [22, 6], [23, 13], [24, 13], [25, 7], [26, 4], [27, 4], [28, 19], [29, 19], [30, 6], [31, 6], [32, 6], [33, 24], [34, 7], [35, 7], [36, 7], [37, 7], [38, 7], [39, 25], [40, 27], [41, 10], [42, 11], [43, 12], [44, 12], [45, 12], [46, 25], [47, 25], [48, 39], [49, 39], [50, 41], [51, 41], [52, 42], [53, 42], [54, 44], [55, 25], [56, 49], [57, 30], [58, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "jj_2_1", "code": "  final private boolean jj_2_1(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_1();\n    jj_save(0, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_2", "code": "  final private boolean jj_2_2(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_2();\n    jj_save(1, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_3", "code": "  final private boolean jj_2_3(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_3();\n    jj_save(2, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_4", "code": "  final private boolean jj_2_4(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_4();\n    jj_save(3, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_5", "code": "  final private boolean jj_2_5(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_5();\n    jj_save(4, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_6", "code": "  final private boolean jj_2_6(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_6();\n    jj_save(5, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_7", "code": "  final private boolean jj_2_7(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_7();\n    jj_save(6, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_8", "code": "  final private boolean jj_2_8(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_8();\n    jj_save(7, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_9", "code": "  final private boolean jj_2_9(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_9();\n    jj_save(8, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_10", "code": "  final private boolean jj_2_10(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_10();\n    jj_save(9, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_11", "code": "  final private boolean jj_2_11(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_11();\n    jj_save(10, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_12", "code": "  final private boolean jj_2_12(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_12();\n    jj_save(11, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_13", "code": "  final private boolean jj_2_13(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_13();\n    jj_save(12, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_14", "code": "  final private boolean jj_2_14(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_14();\n    jj_save(13, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_15", "code": "  final private boolean jj_2_15(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_15();\n    jj_save(14, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_16", "code": "  final private boolean jj_2_16(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_16();\n    jj_save(15, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_17", "code": "  final private boolean jj_2_17(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_17();\n    jj_save(16, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_18", "code": "  final private boolean jj_2_18(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_18();\n    jj_save(17, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_19", "code": "  final private boolean jj_2_19(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_19();\n    jj_save(18, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_20", "code": "  final private boolean jj_2_20(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_20();\n    jj_save(19, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_21", "code": "  final private boolean jj_2_21(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_21();\n    jj_save(20, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_22", "code": "  final private boolean jj_2_22(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_22();\n    jj_save(21, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_23", "code": "  final private boolean jj_2_23(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_23();\n    jj_save(22, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_24", "code": "  final private boolean jj_2_24(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_24();\n    jj_save(23, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_25", "code": "  final private boolean jj_2_25(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_25();\n    jj_save(24, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_26", "code": "  final private boolean jj_2_26(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_26();\n    jj_save(25, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_27", "code": "  final private boolean jj_2_27(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_27();\n    jj_save(26, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_3R_43", "code": "  final private boolean jj_3R_43() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_27", "code": "  final private boolean jj_3_27() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_43()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [0, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [14, 25], [14, 26], [15, 27], [17, 28], [17, 29], [6, 30], [22, 31], [26, 32], [28, 33], [29, 34], [29, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 0], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 14], [26, 14], [27, 15], [28, 17], [29, 17], [30, 6], [31, 22], [32, 26], [33, 28], [34, 29], [35, 29], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_81", "code": "  final private boolean jj_3R_81() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_142", "code": "  final private boolean jj_3R_142() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_247", "code": "  final private boolean jj_3R_247() {\n    if (jj_scan_token(ELSE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_40", "code": "  final private boolean jj_3R_40() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_80()) {\n    jj_scanpos = xsp;\n    if (jj_3R_81()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_80", "code": "  final private boolean jj_3R_80() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3_2", "code": "  final private boolean jj_3_2() {\n    if (jj_3R_27()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_120", "code": "  final private boolean jj_3R_120() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_142()) {\n    jj_scanpos = xsp;\n    if (jj_3R_143()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_119", "code": "  final private boolean jj_3R_119() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_273", "code": "  final private boolean jj_3R_273() {\n    if (jj_3R_274()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_248", "code": "  final private boolean jj_3R_248() {\n    if (jj_3R_265()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_272", "code": "  final private boolean jj_3R_272() {\n    if (jj_3R_136()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_265", "code": "  final private boolean jj_3R_265() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_272()) {\n    jj_scanpos = xsp;\n    if (jj_3R_273()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_250", "code": "  final private boolean jj_3R_250() {\n    if (jj_3R_266()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_249", "code": "  final private boolean jj_3R_249() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_153", "code": "  final private boolean jj_3R_153() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_36", "code": "  final private boolean jj_3R_36() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_152", "code": "  final private boolean jj_3R_152() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_83", "code": "  final private boolean jj_3R_83() {\n    if (jj_3R_105()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_95", "code": "  final private boolean jj_3R_95() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_135", "code": "  final private boolean jj_3R_135() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_152()) {\n    jj_scanpos = xsp;\n    if (jj_3R_153()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_35", "code": "  final private boolean jj_3R_35() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_104", "code": "  final private boolean jj_3R_104() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_119()) {\n    jj_scanpos = xsp;\n    if (jj_3R_120()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_103", "code": "  final private boolean jj_3R_103() {\n    if (jj_3R_118()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_185", "code": "  final private boolean jj_3R_185() {\n    if (jj_scan_token(FOR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_248()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_249()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_250()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [2, 19], [2, 20], [3, 21], [3, 22], [4, 23], [4, 24], [5, 25], [5, 26], [6, 27], [6, 28], [0, 29], [7, 30], [7, 31], [8, 32], [8, 33], [9, 34], [9, 35], [0, 36], [10, 37], [10, 38], [11, 39], [11, 40], [12, 41], [12, 42], [0, 43], [14, 44], [14, 45], [15, 46], [15, 47], [16, 48], [16, 49], [17, 50], [17, 51], [19, 52], [20, 53], [20, 54], [21, 55], [23, 56], [24, 57], [24, 58], [25, 59], [27, 60], [27, 61], [6, 62], [30, 63], [31, 64], [31, 65], [32, 66], [34, 67], [34, 68], [9, 69], [37, 70], [38, 71], [38, 72], [39, 73], [41, 74], [41, 75], [12, 76], [44, 77], [45, 78], [45, 79], [46, 80], [48, 81], [49, 82], [49, 83], [50, 84], [54, 85], [58, 86], [60, 87], [61, 88], [61, 89], [65, 90], [67, 91], [68, 92], [68, 93], [72, 94], [74, 95], [75, 96], [75, 97], [79, 98], [83, 99], [89, 100], [93, 101], [97, 102], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 2], [20, 2], [21, 3], [22, 3], [23, 4], [24, 4], [25, 5], [26, 5], [27, 6], [28, 6], [29, 0], [30, 7], [31, 7], [32, 8], [33, 8], [34, 9], [35, 9], [36, 0], [37, 10], [38, 10], [39, 11], [40, 11], [41, 12], [42, 12], [43, 0], [44, 14], [45, 14], [46, 15], [47, 15], [48, 16], [49, 16], [50, 17], [51, 17], [52, 19], [53, 20], [54, 20], [55, 21], [56, 23], [57, 24], [58, 24], [59, 25], [60, 27], [61, 27], [62, 6], [63, 30], [64, 31], [65, 31], [66, 32], [67, 34], [68, 34], [69, 9], [70, 37], [71, 38], [72, 38], [73, 39], [74, 41], [75, 41], [76, 12], [77, 44], [78, 45], [79, 45], [80, 46], [81, 48], [82, 49], [83, 49], [84, 50], [85, 54], [86, 58], [87, 60], [88, 61], [89, 61], [90, 65], [91, 67], [92, 68], [93, 68], [94, 72], [95, 74], [96, 75], [97, 75], [98, 79], [99, 83], [100, 89], [101, 93], [102, 97], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102]]}, {"function_name": "jj_3R_94", "code": "  final private boolean jj_3R_94() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_102", "code": "  final private boolean jj_3R_102() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_82", "code": "  final private boolean jj_3R_82() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_101()) {\n    jj_scanpos = xsp;\n    if (jj_3R_102()) {\n    jj_scanpos = xsp;\n    if (jj_3R_103()) {\n    jj_scanpos = xsp;\n    if (jj_3R_104()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [20, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [31, 37], [31, 38], [20, 39], [34, 40], [35, 41], [36, 42], [36, 43], [37, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 20], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 31], [38, 31], [39, 20], [40, 34], [41, 35], [42, 36], [43, 36], [44, 37], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jj_3R_101", "code": "  final private boolean jj_3R_101() {\n    if (jj_3R_111()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_1", "code": "  final private boolean jj_3_1() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_184", "code": "  final private boolean jj_3R_184() {\n    if (jj_scan_token(DO)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [2, 18], [3, 19], [3, 20], [4, 21], [4, 22], [5, 23], [5, 24], [6, 25], [6, 26], [7, 27], [7, 28], [8, 29], [8, 30], [9, 31], [9, 32], [10, 33], [10, 34], [11, 35], [11, 36], [12, 37], [12, 38], [13, 39], [13, 40], [14, 41], [14, 42], [15, 43], [15, 44], [17, 45], [18, 46], [18, 47], [19, 48], [21, 49], [22, 50], [22, 51], [23, 52], [25, 53], [26, 54], [26, 55], [27, 56], [29, 57], [30, 58], [30, 59], [31, 60], [33, 61], [34, 62], [34, 63], [35, 64], [37, 65], [38, 66], [38, 67], [39, 68], [41, 69], [42, 70], [42, 71], [43, 72], [47, 73], [51, 74], [55, 75], [59, 76], [63, 77], [67, 78], [71, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 2], [19, 3], [20, 3], [21, 4], [22, 4], [23, 5], [24, 5], [25, 6], [26, 6], [27, 7], [28, 7], [29, 8], [30, 8], [31, 9], [32, 9], [33, 10], [34, 10], [35, 11], [36, 11], [37, 12], [38, 12], [39, 13], [40, 13], [41, 14], [42, 14], [43, 15], [44, 15], [45, 17], [46, 18], [47, 18], [48, 19], [49, 21], [50, 22], [51, 22], [52, 23], [53, 25], [54, 26], [55, 26], [56, 27], [57, 29], [58, 30], [59, 30], [60, 31], [61, 33], [62, 34], [63, 34], [64, 35], [65, 37], [66, 38], [67, 38], [68, 39], [69, 41], [70, 42], [71, 42], [72, 43], [73, 47], [74, 51], [75, 55], [76, 59], [77, 63], [78, 67], [79, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "jj_3R_37", "code": "  final private boolean jj_3R_37() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_93", "code": "  final private boolean jj_3R_93() {\n    if (jj_scan_token(BANG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_14", "code": "  final private boolean jj_3_14() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_279", "code": "  final private boolean jj_3R_279() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_42", "code": "  final private boolean jj_3R_42() {\n    if (jj_3R_82()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_83()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_92", "code": "  final private boolean jj_3R_92() {\n    if (jj_scan_token(TILDE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_183", "code": "  final private boolean jj_3R_183() {\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [3, 15], [3, 16], [4, 17], [4, 18], [5, 19], [5, 20], [6, 21], [6, 22], [7, 23], [7, 24], [8, 25], [8, 26], [9, 27], [9, 28], [10, 29], [10, 30], [11, 31], [11, 32], [13, 33], [14, 34], [14, 35], [15, 36], [17, 37], [18, 38], [18, 39], [19, 40], [21, 41], [22, 42], [22, 43], [23, 44], [25, 45], [26, 46], [26, 47], [27, 48], [29, 49], [30, 50], [30, 51], [31, 52], [35, 53], [39, 54], [43, 55], [47, 56], [51, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 3], [16, 3], [17, 4], [18, 4], [19, 5], [20, 5], [21, 6], [22, 6], [23, 7], [24, 7], [25, 8], [26, 8], [27, 9], [28, 9], [29, 10], [30, 10], [31, 11], [32, 11], [33, 13], [34, 14], [35, 14], [36, 15], [37, 17], [38, 18], [39, 18], [40, 19], [41, 21], [42, 22], [43, 22], [44, 23], [45, 25], [46, 26], [47, 26], [48, 27], [49, 29], [50, 30], [51, 30], [52, 31], [53, 35], [54, 39], [55, 43], [56, 47], [57, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "jj_3R_285", "code": "  final private boolean jj_3R_285() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_269()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_284", "code": "  final private boolean jj_3R_284() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_242()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_278", "code": "  final private boolean jj_3R_278() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_283", "code": "  final private boolean jj_3R_283() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_284()) {\n    jj_scanpos = xsp;\n    if (jj_3R_285()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3_13", "code": "  final private boolean jj_3_13() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_35()) {\n    jj_scanpos = xsp;\n    if (jj_3R_36()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [2, 17], [10, 18], [11, 19], [11, 20], [12, 21], [14, 22], [15, 23], [15, 24], [16, 25], [16, 26], [17, 27], [17, 28], [2, 29], [20, 30], [24, 31], [25, 32], [26, 33], [26, 34], [27, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 2], [18, 10], [19, 11], [20, 11], [21, 12], [22, 14], [23, 15], [24, 15], [25, 16], [26, 16], [27, 17], [28, 17], [29, 2], [30, 20], [31, 24], [32, 25], [33, 26], [34, 26], [35, 27], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_264", "code": "  final private boolean jj_3R_264() {\n    if (jj_3R_99()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_182", "code": "  final private boolean jj_3R_182() {\n    if (jj_scan_token(IF)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_247()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [2, 16], [0, 17], [4, 18], [4, 19], [5, 20], [5, 21], [6, 22], [6, 23], [7, 24], [7, 25], [8, 26], [8, 27], [9, 28], [9, 29], [10, 30], [10, 31], [11, 32], [11, 33], [12, 34], [12, 35], [13, 36], [13, 37], [15, 38], [15, 39], [2, 40], [18, 41], [19, 42], [19, 43], [20, 44], [22, 45], [23, 46], [23, 47], [24, 48], [26, 49], [27, 50], [27, 51], [28, 52], [30, 53], [31, 54], [31, 55], [32, 56], [34, 57], [35, 58], [35, 59], [36, 60], [38, 61], [39, 62], [39, 63], [43, 64], [47, 65], [51, 66], [55, 67], [59, 68], [63, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 2], [17, 0], [18, 4], [19, 4], [20, 5], [21, 5], [22, 6], [23, 6], [24, 7], [25, 7], [26, 8], [27, 8], [28, 9], [29, 9], [30, 10], [31, 10], [32, 11], [33, 11], [34, 12], [35, 12], [36, 13], [37, 13], [38, 15], [39, 15], [40, 2], [41, 18], [42, 19], [43, 19], [44, 20], [45, 22], [46, 23], [47, 23], [48, 24], [49, 26], [50, 27], [51, 27], [52, 28], [53, 30], [54, 31], [55, 31], [56, 32], [57, 34], [58, 35], [59, 35], [60, 36], [61, 38], [62, 39], [63, 39], [64, 43], [65, 47], [66, 51], [67, 55], [68, 59], [69, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "jj_3R_213", "code": "  final private boolean jj_3R_213() {\n    if (jj_3R_42()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_12", "code": "  final private boolean jj_3_12() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_212", "code": "  final private boolean jj_3R_212() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_278()) {\n    jj_scanpos = xsp;\n    if (jj_3R_279()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [2, 17], [10, 18], [11, 19], [11, 20], [12, 21], [14, 22], [15, 23], [15, 24], [16, 25], [16, 26], [17, 27], [17, 28], [2, 29], [20, 30], [24, 31], [25, 32], [26, 33], [26, 34], [27, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 2], [18, 10], [19, 11], [20, 11], [21, 12], [22, 14], [23, 15], [24, 15], [25, 16], [26, 16], [27, 17], [28, 17], [29, 2], [30, 20], [31, 24], [32, 25], [33, 26], [34, 26], [35, 27], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_205", "code": "  final private boolean jj_3R_205() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_212()) {\n    jj_scanpos = xsp;\n    if (jj_3R_213()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_271", "code": "  final private boolean jj_3R_271() {\n    if (jj_scan_token(_DEFAULT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_270", "code": "  final private boolean jj_3R_270() {\n    if (jj_scan_token(CASE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_263", "code": "  final private boolean jj_3R_263() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_270()) {\n    jj_scanpos = xsp;\n    if (jj_3R_271()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_246", "code": "  final private boolean jj_3R_246() {\n    if (jj_3R_263()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_264()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_69", "code": "  final private boolean jj_3R_69() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_92()) {\n    jj_scanpos = xsp;\n    if (jj_3R_93()) {\n    jj_scanpos = xsp;\n    if (jj_3R_94()) {\n    jj_scanpos = xsp;\n    if (jj_3R_95()) {\n    jj_scanpos = xsp;\n    if (jj_3R_96()) {\n    jj_scanpos = xsp;\n    if (jj_3R_97()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [0, 13], [4, 14], [4, 15], [5, 16], [5, 17], [6, 18], [6, 19], [7, 20], [7, 21], [8, 22], [8, 23], [9, 24], [9, 25], [11, 26], [11, 27], [2, 28], [14, 29], [15, 30], [15, 31], [16, 32], [18, 33], [19, 34], [19, 35], [20, 36], [22, 37], [23, 38], [23, 39], [24, 40], [26, 41], [27, 42], [27, 43], [28, 44], [28, 45], [2, 46], [31, 47], [35, 48], [39, 49], [43, 50], [44, 51], [44, 52], [28, 53], [51, 54], [52, 55], [52, 56], [53, 57], [53, 58], [28, 59], [56, 60], [57, 61], [57, 62], [53, 63], [61, 64], [62, 65], [62, 66], [63, 67], [63, 68], [53, 69], [66, 70], [67, 71], [67, 72], [63, 73], [71, 74], [72, 75], [72, 76], [73, 77], [73, 78], [63, 79], [76, 80], [77, 81], [77, 82], [73, 83], [73, 84], [81, 85], [82, 86], [82, 87], [83, 88], [83, 89], [84, 90], [84, 91], [73, 92], [87, 93], [88, 94], [89, 95], [89, 96], [90, 97], [96, 98], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 0], [14, 4], [15, 4], [16, 5], [17, 5], [18, 6], [19, 6], [20, 7], [21, 7], [22, 8], [23, 8], [24, 9], [25, 9], [26, 11], [27, 11], [28, 2], [29, 14], [30, 15], [31, 15], [32, 16], [33, 18], [34, 19], [35, 19], [36, 20], [37, 22], [38, 23], [39, 23], [40, 24], [41, 26], [42, 27], [43, 27], [44, 28], [45, 28], [46, 2], [47, 31], [48, 35], [49, 39], [50, 43], [51, 44], [52, 44], [53, 28], [54, 51], [55, 52], [56, 52], [57, 53], [58, 53], [59, 28], [60, 56], [61, 57], [62, 57], [63, 53], [64, 61], [65, 62], [66, 62], [67, 63], [68, 63], [69, 53], [70, 66], [71, 67], [72, 67], [73, 63], [74, 71], [75, 72], [76, 72], [77, 73], [78, 73], [79, 63], [80, 76], [81, 77], [82, 77], [83, 73], [84, 73], [85, 81], [86, 82], [87, 82], [88, 83], [89, 83], [90, 84], [91, 84], [92, 73], [93, 87], [94, 88], [95, 89], [96, 89], [97, 90], [98, 96], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98]]}, {"function_name": "jj_3R_68", "code": "  final private boolean jj_3R_68() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3_10", "code": "  final private boolean jj_3_10() {\n    if (jj_3R_33()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_26", "code": "  final private boolean jj_3_26() {\n    if (jj_3R_42()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_181", "code": "  final private boolean jj_3R_181() {\n    if (jj_scan_token(SWITCH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_246()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [2, 18], [3, 19], [3, 20], [4, 21], [6, 22], [6, 23], [7, 24], [7, 25], [8, 26], [8, 27], [9, 28], [9, 29], [10, 30], [10, 31], [11, 32], [11, 33], [12, 34], [12, 35], [13, 36], [13, 37], [14, 38], [14, 39], [15, 40], [15, 41], [17, 42], [18, 43], [18, 44], [19, 45], [4, 46], [4, 47], [22, 48], [23, 49], [23, 50], [24, 51], [26, 52], [27, 53], [27, 54], [28, 55], [30, 56], [31, 57], [31, 58], [32, 59], [34, 60], [35, 61], [35, 62], [36, 63], [38, 64], [39, 65], [39, 66], [40, 67], [44, 68], [46, 69], [46, 70], [47, 71], [4, 72], [50, 73], [54, 74], [58, 75], [62, 76], [66, 77], [69, 78], [70, 79], [70, 80], [47, 81], [80, 82], [47, 83], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 2], [19, 3], [20, 3], [21, 4], [22, 6], [23, 6], [24, 7], [25, 7], [26, 8], [27, 8], [28, 9], [29, 9], [30, 10], [31, 10], [32, 11], [33, 11], [34, 12], [35, 12], [36, 13], [37, 13], [38, 14], [39, 14], [40, 15], [41, 15], [42, 17], [43, 18], [44, 18], [45, 19], [46, 4], [47, 4], [48, 22], [49, 23], [50, 23], [51, 24], [52, 26], [53, 27], [54, 27], [55, 28], [56, 30], [57, 31], [58, 31], [59, 32], [60, 34], [61, 35], [62, 35], [63, 36], [64, 38], [65, 39], [66, 39], [67, 40], [68, 44], [69, 46], [70, 46], [71, 47], [72, 4], [73, 50], [74, 54], [75, 58], [76, 62], [77, 66], [78, 69], [79, 70], [80, 70], [81, 47], [82, 80], [83, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83]]}, {"function_name": "jj_3_11", "code": "  final private boolean jj_3_11() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_33", "code": "  final private boolean jj_3R_33() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_11()) {\n    jj_scanpos = xsp;\n    if (jj_3R_68()) {\n    jj_scanpos = xsp;\n    if (jj_3R_69()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [10, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [21, 27], [21, 28], [10, 29], [24, 30], [25, 31], [26, 32], [26, 33], [27, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 10], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 21], [28, 21], [29, 10], [30, 24], [31, 25], [32, 26], [33, 26], [34, 27], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_282", "code": "  final private boolean jj_3R_282() {\n    if (jj_scan_token(BANG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_277", "code": "  final private boolean jj_3R_277() {\n    if (jj_3R_205()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_262", "code": "  final private boolean jj_3R_262() {\n    if (jj_scan_token(MOD)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_199", "code": "  final private boolean jj_3R_199() {\n    if (jj_3R_205()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_276", "code": "  final private boolean jj_3R_276() {\n    if (jj_3R_283()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_198", "code": "  final private boolean jj_3R_198() {\n    if (jj_3R_84()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_281", "code": "  final private boolean jj_3R_281() {\n    if (jj_scan_token(TILDE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_275", "code": "  final private boolean jj_3R_275() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_281()) {\n    jj_scanpos = xsp;\n    if (jj_3R_282()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_242()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_269", "code": "  final private boolean jj_3R_269() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_275()) {\n    jj_scanpos = xsp;\n    if (jj_3R_276()) {\n    jj_scanpos = xsp;\n    if (jj_3R_277()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [10, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [21, 27], [21, 28], [10, 29], [24, 30], [25, 31], [26, 32], [26, 33], [27, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 10], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 21], [28, 21], [29, 10], [30, 24], [31, 25], [32, 26], [33, 26], [34, 27], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_197", "code": "  final private boolean jj_3R_197() {\n    if (jj_3R_204()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_196", "code": "  final private boolean jj_3R_196() {\n    if (jj_3R_203()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_180", "code": "  final private boolean jj_3R_180() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_196()) {\n    jj_scanpos = xsp;\n    if (jj_3R_197()) {\n    jj_scanpos = xsp;\n    if (jj_3R_198()) {\n    jj_scanpos = xsp;\n    if (jj_3R_199()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [20, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [31, 37], [31, 38], [20, 39], [34, 40], [35, 41], [36, 42], [36, 43], [37, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 20], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 31], [38, 31], [39, 20], [40, 34], [41, 35], [42, 36], [43, 36], [44, 37], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jj_3R_261", "code": "  final private boolean jj_3R_261() {\n    if (jj_scan_token(SLASH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_237", "code": "  final private boolean jj_3R_237() {\n    if (jj_scan_token(RSIGNEDSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_204", "code": "  final private boolean jj_3R_204() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_260", "code": "  final private boolean jj_3R_260() {\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_179", "code": "  final private boolean jj_3R_179() {\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_243", "code": "  final private boolean jj_3R_243() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_260()) {\n    jj_scanpos = xsp;\n    if (jj_3R_261()) {\n    jj_scanpos = xsp;\n    if (jj_3R_262()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_242()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [16, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [4, 27], [24, 28], [25, 29], [25, 30], [20, 31], [20, 32], [29, 33], [30, 34], [30, 35], [31, 36], [31, 37], [32, 38], [32, 39], [20, 40], [35, 41], [36, 42], [37, 43], [37, 44], [38, 45], [44, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 16], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 4], [28, 24], [29, 25], [30, 25], [31, 20], [32, 20], [33, 29], [34, 30], [35, 30], [36, 31], [37, 31], [38, 32], [39, 32], [40, 20], [41, 35], [42, 36], [43, 37], [44, 37], [45, 38], [46, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_203", "code": "  final private boolean jj_3R_203() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_41", "code": "  final private boolean jj_3R_41() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_236", "code": "  final private boolean jj_3R_236() {\n    if (jj_scan_token(RSIGNEDSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_268", "code": "  final private boolean jj_3R_268() {\n    if (jj_scan_token(MINUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_25", "code": "  final private boolean jj_3_25() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_41()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [0, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [14, 25], [14, 26], [15, 27], [17, 28], [17, 29], [6, 30], [22, 31], [26, 32], [28, 33], [29, 34], [29, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 0], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 14], [26, 14], [27, 15], [28, 17], [29, 17], [30, 6], [31, 22], [32, 26], [33, 28], [34, 29], [35, 29], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_116", "code": "  final private boolean jj_3R_116() {\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_24", "code": "  final private boolean jj_3_24() {\n    if (jj_3R_40()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_259", "code": "  final private boolean jj_3R_259() {\n    if (jj_3R_269()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_229", "code": "  final private boolean jj_3R_229() {\n    if (jj_scan_token(GEX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_258", "code": "  final private boolean jj_3R_258() {\n    if (jj_3R_204()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_257", "code": "  final private boolean jj_3R_257() {\n    if (jj_3R_203()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_115", "code": "  final private boolean jj_3R_115() {\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_267", "code": "  final private boolean jj_3R_267() {\n    if (jj_scan_token(PLUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_225", "code": "  final private boolean jj_3R_225() {\n    if (jj_scan_token(GTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_256", "code": "  final private boolean jj_3R_256() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_267()) {\n    jj_scanpos = xsp;\n    if (jj_3R_268()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_242()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_242", "code": "  final private boolean jj_3R_242() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_256()) {\n    jj_scanpos = xsp;\n    if (jj_3R_257()) {\n    jj_scanpos = xsp;\n    if (jj_3R_258()) {\n    jj_scanpos = xsp;\n    if (jj_3R_259()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [20, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [31, 37], [31, 38], [20, 39], [34, 40], [35, 41], [36, 42], [36, 43], [37, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 20], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 31], [38, 31], [39, 20], [40, 34], [41, 35], [42, 36], [43, 36], [44, 37], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jj_3R_114", "code": "  final private boolean jj_3R_114() {\n    if (jj_3R_136()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_245", "code": "  final private boolean jj_3R_245() {\n    if (jj_scan_token(MINUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_99", "code": "  final private boolean jj_3R_99() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_113()) {\n    jj_scanpos = xsp;\n    if (jj_3R_114()) {\n    jj_scanpos = xsp;\n    if (jj_3R_115()) {\n    jj_scanpos = xsp;\n    if (jj_3R_116()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [20, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [31, 37], [31, 38], [20, 39], [34, 40], [35, 41], [36, 42], [36, 43], [37, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 20], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 31], [38, 31], [39, 20], [40, 34], [41, 35], [42, 36], [43, 36], [44, 37], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jj_3R_113", "code": "  final private boolean jj_3R_113() {\n    if (jj_3R_135()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_228", "code": "  final private boolean jj_3R_228() {\n    if (jj_scan_token(GE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_79", "code": "  final private boolean jj_3R_79() {\n    if (jj_3R_99()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_239", "code": "  final private boolean jj_3R_239() {\n    if (jj_scan_token(RUNSIGNEDSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_232", "code": "  final private boolean jj_3R_232() {\n    if (jj_3R_242()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_243()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_224", "code": "  final private boolean jj_3R_224() {\n    if (jj_scan_token(GT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_235", "code": "  final private boolean jj_3R_235() {\n    if (jj_scan_token(LSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_244", "code": "  final private boolean jj_3R_244() {\n    if (jj_scan_token(PLUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_38", "code": "  final private boolean jj_3R_38() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_79()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [6, 14], [6, 15], [7, 16], [7, 17], [9, 18], [10, 19], [10, 20], [11, 21], [4, 22], [4, 23], [14, 24], [15, 25], [15, 26], [16, 27], [20, 28], [22, 29], [22, 30], [23, 31], [4, 32], [26, 33], [29, 34], [30, 35], [30, 36], [23, 37], [36, 38], [23, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 6], [15, 6], [16, 7], [17, 7], [18, 9], [19, 10], [20, 10], [21, 11], [22, 4], [23, 4], [24, 14], [25, 15], [26, 15], [27, 16], [28, 20], [29, 22], [30, 22], [31, 23], [32, 4], [33, 26], [34, 29], [35, 30], [36, 30], [37, 23], [38, 36], [39, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "jj_3R_233", "code": "  final private boolean jj_3R_233() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_244()) {\n    jj_scanpos = xsp;\n    if (jj_3R_245()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_232()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_217", "code": "  final private boolean jj_3R_217() {\n    if (jj_scan_token(NE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_220", "code": "  final private boolean jj_3R_220() {\n    if (jj_3R_232()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_233()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_39", "code": "  final private boolean jj_3R_39() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_227", "code": "  final private boolean jj_3R_227() {\n    if (jj_scan_token(LEX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_238", "code": "  final private boolean jj_3R_238() {\n    if (jj_scan_token(RUNSIGNEDSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_234", "code": "  final private boolean jj_3R_234() {\n    if (jj_scan_token(LSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_223", "code": "  final private boolean jj_3R_223() {\n    if (jj_scan_token(LTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_221", "code": "  final private boolean jj_3R_221() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_234()) {\n    jj_scanpos = xsp;\n    if (jj_3R_235()) {\n    jj_scanpos = xsp;\n    if (jj_3R_236()) {\n    jj_scanpos = xsp;\n    if (jj_3R_237()) {\n    jj_scanpos = xsp;\n    if (jj_3R_238()) {\n    jj_scanpos = xsp;\n    if (jj_3R_239()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_220()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [16, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [4, 27], [24, 28], [25, 29], [25, 30], [20, 31], [29, 32], [30, 33], [30, 34], [31, 35], [31, 36], [20, 37], [34, 38], [35, 39], [35, 40], [31, 41], [39, 42], [40, 43], [40, 44], [41, 45], [41, 46], [31, 47], [44, 48], [45, 49], [45, 50], [41, 51], [49, 52], [50, 53], [50, 54], [51, 55], [51, 56], [41, 57], [54, 58], [55, 59], [55, 60], [51, 61], [51, 62], [59, 63], [60, 64], [60, 65], [61, 66], [61, 67], [62, 68], [62, 69], [51, 70], [65, 71], [66, 72], [67, 73], [67, 74], [68, 75], [74, 76], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 16], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 4], [28, 24], [29, 25], [30, 25], [31, 20], [32, 29], [33, 30], [34, 30], [35, 31], [36, 31], [37, 20], [38, 34], [39, 35], [40, 35], [41, 31], [42, 39], [43, 40], [44, 40], [45, 41], [46, 41], [47, 31], [48, 44], [49, 45], [50, 45], [51, 41], [52, 49], [53, 50], [54, 50], [55, 51], [56, 51], [57, 41], [58, 54], [59, 55], [60, 55], [61, 51], [62, 51], [63, 59], [64, 60], [65, 60], [66, 61], [67, 61], [68, 62], [69, 62], [70, 51], [71, 65], [72, 66], [73, 67], [74, 67], [75, 68], [76, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76]]}, {"function_name": "jj_3R_167", "code": "  final private boolean jj_3R_167() {\n    if (jj_3R_190()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_216", "code": "  final private boolean jj_3R_216() {\n    if (jj_scan_token(EQ)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_166", "code": "  final private boolean jj_3R_166() {\n    if (jj_3R_189()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_218", "code": "  final private boolean jj_3R_218() {\n    if (jj_3R_220()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_221()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_209", "code": "  final private boolean jj_3R_209() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_216()) {\n    jj_scanpos = xsp;\n    if (jj_3R_217()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_208()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_165", "code": "  final private boolean jj_3R_165() {\n    if (jj_3R_188()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_164", "code": "  final private boolean jj_3R_164() {\n    if (jj_3R_187()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_226", "code": "  final private boolean jj_3R_226() {\n    if (jj_scan_token(LE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_222", "code": "  final private boolean jj_3R_222() {\n    if (jj_scan_token(LT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_163", "code": "  final private boolean jj_3R_163() {\n    if (jj_3R_186()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_219", "code": "  final private boolean jj_3R_219() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_222()) {\n    jj_scanpos = xsp;\n    if (jj_3R_223()) {\n    jj_scanpos = xsp;\n    if (jj_3R_224()) {\n    jj_scanpos = xsp;\n    if (jj_3R_225()) {\n    jj_scanpos = xsp;\n    if (jj_3R_226()) {\n    jj_scanpos = xsp;\n    if (jj_3R_227()) {\n    jj_scanpos = xsp;\n    if (jj_3R_228()) {\n    jj_scanpos = xsp;\n    if (jj_3R_229()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_218()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [16, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [4, 27], [24, 28], [25, 29], [25, 30], [20, 31], [29, 32], [30, 33], [30, 34], [31, 35], [31, 36], [20, 37], [34, 38], [35, 39], [35, 40], [31, 41], [39, 42], [40, 43], [40, 44], [41, 45], [41, 46], [31, 47], [44, 48], [45, 49], [45, 50], [41, 51], [49, 52], [50, 53], [50, 54], [51, 55], [51, 56], [41, 57], [54, 58], [55, 59], [55, 60], [51, 61], [59, 62], [60, 63], [60, 64], [61, 65], [61, 66], [51, 67], [64, 68], [65, 69], [65, 70], [61, 71], [69, 72], [70, 73], [70, 74], [71, 75], [71, 76], [61, 77], [74, 78], [75, 79], [75, 80], [71, 81], [71, 82], [79, 83], [80, 84], [80, 85], [81, 86], [81, 87], [82, 88], [82, 89], [71, 90], [85, 91], [86, 92], [87, 93], [87, 94], [88, 95], [94, 96], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 16], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 4], [28, 24], [29, 25], [30, 25], [31, 20], [32, 29], [33, 30], [34, 30], [35, 31], [36, 31], [37, 20], [38, 34], [39, 35], [40, 35], [41, 31], [42, 39], [43, 40], [44, 40], [45, 41], [46, 41], [47, 31], [48, 44], [49, 45], [50, 45], [51, 41], [52, 49], [53, 50], [54, 50], [55, 51], [56, 51], [57, 41], [58, 54], [59, 55], [60, 55], [61, 51], [62, 59], [63, 60], [64, 60], [65, 61], [66, 61], [67, 51], [68, 64], [69, 65], [70, 65], [71, 61], [72, 69], [73, 70], [74, 70], [75, 71], [76, 71], [77, 61], [78, 74], [79, 75], [80, 75], [81, 71], [82, 71], [83, 79], [84, 80], [85, 80], [86, 81], [87, 81], [88, 82], [89, 82], [90, 71], [91, 85], [92, 86], [93, 87], [94, 87], [95, 88], [96, 94], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96]]}, {"function_name": "jj_3R_162", "code": "  final private boolean jj_3R_162() {\n    if (jj_3R_185()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_161", "code": "  final private boolean jj_3R_161() {\n    if (jj_3R_184()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_214", "code": "  final private boolean jj_3R_214() {\n    if (jj_3R_218()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_219()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_160", "code": "  final private boolean jj_3R_160() {\n    if (jj_3R_183()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_159", "code": "  final private boolean jj_3R_159() {\n    if (jj_3R_182()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_215", "code": "  final private boolean jj_3R_215() {\n    if (jj_scan_token(INSTANCEOF)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_158", "code": "  final private boolean jj_3R_158() {\n    if (jj_3R_181()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_208", "code": "  final private boolean jj_3R_208() {\n    if (jj_3R_214()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_215()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [10, 17], [11, 18], [11, 19], [12, 20], [14, 21], [15, 22], [15, 23], [19, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 10], [18, 11], [19, 11], [20, 12], [21, 14], [22, 15], [23, 15], [24, 19], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_157", "code": "  final private boolean jj_3R_157() {\n    if (jj_3R_180()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3_19", "code": "  final private boolean jj_3_19() {\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_211", "code": "  final private boolean jj_3R_211() {\n    if (jj_scan_token(BIT_ANDX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_156", "code": "  final private boolean jj_3R_156() {\n    if (jj_3R_179()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_155", "code": "  final private boolean jj_3R_155() {\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_193", "code": "  final private boolean jj_3R_193() {\n    if (jj_scan_token(XOR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_192()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3_23", "code": "  final private boolean jj_3_23() {\n    if (jj_3R_39()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_137", "code": "  final private boolean jj_3R_137() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_23()) {\n    jj_scanpos = xsp;\n    if (jj_3R_155()) {\n    jj_scanpos = xsp;\n    if (jj_3R_156()) {\n    jj_scanpos = xsp;\n    if (jj_3R_157()) {\n    jj_scanpos = xsp;\n    if (jj_3R_158()) {\n    jj_scanpos = xsp;\n    if (jj_3R_159()) {\n    jj_scanpos = xsp;\n    if (jj_3R_160()) {\n    jj_scanpos = xsp;\n    if (jj_3R_161()) {\n    jj_scanpos = xsp;\n    if (jj_3R_162()) {\n    jj_scanpos = xsp;\n    if (jj_3R_163()) {\n    jj_scanpos = xsp;\n    if (jj_3R_164()) {\n    jj_scanpos = xsp;\n    if (jj_3R_165()) {\n    jj_scanpos = xsp;\n    if (jj_3R_166()) {\n    jj_scanpos = xsp;\n    if (jj_3R_167()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [28, 31], [29, 32], [29, 33], [30, 34], [30, 35], [20, 36], [33, 37], [34, 38], [34, 39], [30, 40], [38, 41], [39, 42], [39, 43], [40, 44], [40, 45], [30, 46], [43, 47], [44, 48], [44, 49], [40, 50], [48, 51], [49, 52], [49, 53], [50, 54], [50, 55], [40, 56], [53, 57], [54, 58], [54, 59], [50, 60], [58, 61], [59, 62], [59, 63], [60, 64], [60, 65], [50, 66], [63, 67], [64, 68], [64, 69], [60, 70], [68, 71], [69, 72], [69, 73], [70, 74], [70, 75], [60, 76], [73, 77], [74, 78], [74, 79], [70, 80], [78, 81], [79, 82], [79, 83], [80, 84], [80, 85], [70, 86], [83, 87], [84, 88], [84, 89], [80, 90], [88, 91], [89, 92], [89, 93], [90, 94], [90, 95], [80, 96], [93, 97], [94, 98], [94, 99], [90, 100], [98, 101], [99, 102], [99, 103], [100, 104], [100, 105], [90, 106], [103, 107], [104, 108], [104, 109], [100, 110], [108, 111], [109, 112], [109, 113], [110, 114], [110, 115], [100, 116], [113, 117], [114, 118], [114, 119], [110, 120], [118, 121], [119, 122], [119, 123], [120, 124], [120, 125], [110, 126], [123, 127], [124, 128], [124, 129], [120, 130], [120, 131], [128, 132], [129, 133], [129, 134], [130, 135], [130, 136], [131, 137], [131, 138], [120, 139], [134, 140], [135, 141], [136, 142], [136, 143], [137, 144], [143, 145], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 28], [32, 29], [33, 29], [34, 30], [35, 30], [36, 20], [37, 33], [38, 34], [39, 34], [40, 30], [41, 38], [42, 39], [43, 39], [44, 40], [45, 40], [46, 30], [47, 43], [48, 44], [49, 44], [50, 40], [51, 48], [52, 49], [53, 49], [54, 50], [55, 50], [56, 40], [57, 53], [58, 54], [59, 54], [60, 50], [61, 58], [62, 59], [63, 59], [64, 60], [65, 60], [66, 50], [67, 63], [68, 64], [69, 64], [70, 60], [71, 68], [72, 69], [73, 69], [74, 70], [75, 70], [76, 60], [77, 73], [78, 74], [79, 74], [80, 70], [81, 78], [82, 79], [83, 79], [84, 80], [85, 80], [86, 70], [87, 83], [88, 84], [89, 84], [90, 80], [91, 88], [92, 89], [93, 89], [94, 90], [95, 90], [96, 80], [97, 93], [98, 94], [99, 94], [100, 90], [101, 98], [102, 99], [103, 99], [104, 100], [105, 100], [106, 90], [107, 103], [108, 104], [109, 104], [110, 100], [111, 108], [112, 109], [113, 109], [114, 110], [115, 110], [116, 100], [117, 113], [118, 114], [119, 114], [120, 110], [121, 118], [122, 119], [123, 119], [124, 120], [125, 120], [126, 110], [127, 123], [128, 124], [129, 124], [130, 120], [131, 120], [132, 128], [133, 129], [134, 129], [135, 130], [136, 130], [137, 131], [138, 131], [139, 120], [140, 134], [141, 135], [142, 136], [143, 136], [144, 137], [145, 143], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145]]}, {"function_name": "jj_3R_201", "code": "  final private boolean jj_3R_201() {\n    if (jj_3R_208()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_209()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_61", "code": "  final private boolean jj_3R_61() {\n    if (jj_scan_token(ORASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_210", "code": "  final private boolean jj_3R_210() {\n    if (jj_scan_token(BIT_AND)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_202", "code": "  final private boolean jj_3R_202() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_210()) {\n    jj_scanpos = xsp;\n    if (jj_3R_211()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_201()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_172", "code": "  final private boolean jj_3R_172() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_19()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [10, 17], [11, 18], [11, 19], [12, 20], [14, 21], [15, 22], [15, 23], [19, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 10], [18, 11], [19, 11], [20, 12], [21, 14], [22, 15], [23, 15], [24, 19], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_200", "code": "  final private boolean jj_3R_200() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_192", "code": "  final private boolean jj_3R_192() {\n    if (jj_3R_201()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_202()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_191", "code": "  final private boolean jj_3R_191() {\n    Token xsp;\n    if (jj_3R_200()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_200()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_3R_88()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [9, 18], [10, 19], [10, 20], [11, 21], [4, 22], [4, 23], [14, 24], [15, 25], [15, 26], [16, 27], [20, 28], [22, 29], [22, 30], [23, 31], [4, 32], [26, 33], [29, 34], [30, 35], [30, 36], [23, 37], [36, 38], [23, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 9], [19, 10], [20, 10], [21, 11], [22, 4], [23, 4], [24, 14], [25, 15], [26, 15], [27, 16], [28, 20], [29, 22], [30, 22], [31, 23], [32, 4], [33, 26], [34, 29], [35, 30], [36, 30], [37, 23], [38, 36], [39, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "jj_3R_171", "code": "  final private boolean jj_3R_171() {\n    if (jj_3R_170()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_60", "code": "  final private boolean jj_3R_60() {\n    if (jj_scan_token(XORASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_195", "code": "  final private boolean jj_3R_195() {\n    if (jj_scan_token(BIT_ORX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_21", "code": "  final private boolean jj_3_21() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_170", "code": "  final private boolean jj_3R_170() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_22()) {\n    jj_scanpos = xsp;\n    if (jj_3R_191()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3_22", "code": "  final private boolean jj_3_22() {\n    Token xsp;\n    if (jj_3_21()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_21()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_173", "code": "  final private boolean jj_3R_173() {\n    if (jj_3R_192()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_193()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_59", "code": "  final private boolean jj_3R_59() {\n    if (jj_scan_token(ANDASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_65", "code": "  final private boolean jj_3R_65() {\n    if (jj_scan_token(RSIGNEDSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_176", "code": "  final private boolean jj_3R_176() {\n    if (jj_scan_token(BOOL_ANDX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_194", "code": "  final private boolean jj_3R_194() {\n    if (jj_scan_token(BIT_OR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_107", "code": "  final private boolean jj_3R_107() {\n    if (jj_scan_token(HOOK)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_85()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_174", "code": "  final private boolean jj_3R_174() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_194()) {\n    jj_scanpos = xsp;\n    if (jj_3R_195()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_173()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_58", "code": "  final private boolean jj_3R_58() {\n    if (jj_scan_token(MINUSASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_145", "code": "  final private boolean jj_3R_145() {\n    if (jj_3R_173()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_174()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_64", "code": "  final private boolean jj_3R_64() {\n    if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_141", "code": "  final private boolean jj_3R_141() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_171()) {\n    jj_scanpos = xsp;\n    if (jj_3R_172()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [0, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [9, 21], [2, 22], [2, 23], [12, 24], [13, 25], [13, 26], [14, 27], [16, 28], [17, 29], [17, 30], [18, 31], [20, 32], [21, 33], [21, 34], [22, 35], [22, 36], [23, 37], [23, 38], [2, 39], [26, 40], [30, 41], [34, 42], [35, 43], [36, 44], [36, 45], [37, 46], [45, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 0], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 9], [22, 2], [23, 2], [24, 12], [25, 13], [26, 13], [27, 14], [28, 16], [29, 17], [30, 17], [31, 18], [32, 20], [33, 21], [34, 21], [35, 22], [36, 22], [37, 23], [38, 23], [39, 2], [40, 26], [41, 30], [42, 34], [43, 35], [44, 36], [45, 36], [46, 37], [47, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "jj_3R_148", "code": "  final private boolean jj_3R_148() {\n    if (jj_scan_token(BOOL_ORX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_20", "code": "  final private boolean jj_3_20() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_170()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_118", "code": "  final private boolean jj_3R_118() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_20()) {\n    jj_scanpos = xsp;\n    if (jj_3R_141()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_175", "code": "  final private boolean jj_3R_175() {\n    if (jj_scan_token(BOOL_AND)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_57", "code": "  final private boolean jj_3R_57() {\n    if (jj_scan_token(PLUSASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_146", "code": "  final private boolean jj_3R_146() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_175()) {\n    jj_scanpos = xsp;\n    if (jj_3R_176()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_145()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_134", "code": "  final private boolean jj_3R_134() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_124", "code": "  final private boolean jj_3R_124() {\n    if (jj_3R_145()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_146()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_112", "code": "  final private boolean jj_3R_112() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_134()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_98", "code": "  final private boolean jj_3R_98() {\n    if (jj_3R_112()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_56", "code": "  final private boolean jj_3R_56() {\n    if (jj_scan_token(MODASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_147", "code": "  final private boolean jj_3R_147() {\n    if (jj_scan_token(BOOL_OR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_125", "code": "  final private boolean jj_3R_125() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_147()) {\n    jj_scanpos = xsp;\n    if (jj_3R_148()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_124()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_78", "code": "  final private boolean jj_3R_78() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_98()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [0, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [22, 31], [24, 32], [25, 33], [25, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 0], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 22], [32, 24], [33, 25], [34, 25], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_106", "code": "  final private boolean jj_3R_106() {\n    if (jj_3R_124()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_125()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_55", "code": "  final private boolean jj_3R_55() {\n    if (jj_scan_token(SLASHASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_67", "code": "  final private boolean jj_3R_67() {\n    if (jj_scan_token(RUNSIGNEDSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_151", "code": "  final private boolean jj_3R_151() {\n    if (jj_scan_token(VOID)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_63", "code": "  final private boolean jj_3R_63() {\n    if (jj_scan_token(LSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_85", "code": "  final private boolean jj_3R_85() {\n    if (jj_3R_106()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_107()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [10, 17], [11, 18], [11, 19], [12, 20], [14, 21], [15, 22], [15, 23], [19, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 10], [18, 11], [19, 11], [20, 12], [21, 14], [22, 15], [23, 15], [24, 19], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_54", "code": "  final private boolean jj_3R_54() {\n    if (jj_scan_token(STARASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_150", "code": "  final private boolean jj_3R_150() {\n    if (jj_scan_token(NULL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_66", "code": "  final private boolean jj_3R_66() {\n    if (jj_scan_token(RUNSIGNEDSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_62", "code": "  final private boolean jj_3R_62() {\n    if (jj_scan_token(LSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_53", "code": "  final private boolean jj_3R_53() {\n    if (jj_scan_token(ASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_32", "code": "  final private boolean jj_3R_32() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_53()) {\n    jj_scanpos = xsp;\n    if (jj_3R_54()) {\n    jj_scanpos = xsp;\n    if (jj_3R_55()) {\n    jj_scanpos = xsp;\n    if (jj_3R_56()) {\n    jj_scanpos = xsp;\n    if (jj_3R_57()) {\n    jj_scanpos = xsp;\n    if (jj_3R_58()) {\n    jj_scanpos = xsp;\n    if (jj_3R_59()) {\n    jj_scanpos = xsp;\n    if (jj_3R_60()) {\n    jj_scanpos = xsp;\n    if (jj_3R_61()) {\n    jj_scanpos = xsp;\n    if (jj_3R_62()) {\n    jj_scanpos = xsp;\n    if (jj_3R_63()) {\n    jj_scanpos = xsp;\n    if (jj_3R_64()) {\n    jj_scanpos = xsp;\n    if (jj_3R_65()) {\n    jj_scanpos = xsp;\n    if (jj_3R_66()) {\n    jj_scanpos = xsp;\n    if (jj_3R_67()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [28, 31], [29, 32], [29, 33], [30, 34], [30, 35], [20, 36], [33, 37], [34, 38], [34, 39], [30, 40], [38, 41], [39, 42], [39, 43], [40, 44], [40, 45], [30, 46], [43, 47], [44, 48], [44, 49], [40, 50], [48, 51], [49, 52], [49, 53], [50, 54], [50, 55], [40, 56], [53, 57], [54, 58], [54, 59], [50, 60], [58, 61], [59, 62], [59, 63], [60, 64], [60, 65], [50, 66], [63, 67], [64, 68], [64, 69], [60, 70], [68, 71], [69, 72], [69, 73], [70, 74], [70, 75], [60, 76], [73, 77], [74, 78], [74, 79], [70, 80], [78, 81], [79, 82], [79, 83], [80, 84], [80, 85], [70, 86], [83, 87], [84, 88], [84, 89], [80, 90], [88, 91], [89, 92], [89, 93], [90, 94], [90, 95], [80, 96], [93, 97], [94, 98], [94, 99], [90, 100], [98, 101], [99, 102], [99, 103], [100, 104], [100, 105], [90, 106], [103, 107], [104, 108], [104, 109], [100, 110], [108, 111], [109, 112], [109, 113], [110, 114], [110, 115], [100, 116], [113, 117], [114, 118], [114, 119], [110, 120], [118, 121], [119, 122], [119, 123], [120, 124], [120, 125], [110, 126], [123, 127], [124, 128], [124, 129], [120, 130], [128, 131], [129, 132], [129, 133], [130, 134], [130, 135], [120, 136], [133, 137], [134, 138], [134, 139], [130, 140], [130, 141], [138, 142], [139, 143], [139, 144], [140, 145], [140, 146], [141, 147], [141, 148], [130, 149], [144, 150], [145, 151], [146, 152], [146, 153], [147, 154], [153, 155], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 28], [32, 29], [33, 29], [34, 30], [35, 30], [36, 20], [37, 33], [38, 34], [39, 34], [40, 30], [41, 38], [42, 39], [43, 39], [44, 40], [45, 40], [46, 30], [47, 43], [48, 44], [49, 44], [50, 40], [51, 48], [52, 49], [53, 49], [54, 50], [55, 50], [56, 40], [57, 53], [58, 54], [59, 54], [60, 50], [61, 58], [62, 59], [63, 59], [64, 60], [65, 60], [66, 50], [67, 63], [68, 64], [69, 64], [70, 60], [71, 68], [72, 69], [73, 69], [74, 70], [75, 70], [76, 60], [77, 73], [78, 74], [79, 74], [80, 70], [81, 78], [82, 79], [83, 79], [84, 80], [85, 80], [86, 70], [87, 83], [88, 84], [89, 84], [90, 80], [91, 88], [92, 89], [93, 89], [94, 90], [95, 90], [96, 80], [97, 93], [98, 94], [99, 94], [100, 90], [101, 98], [102, 99], [103, 99], [104, 100], [105, 100], [106, 90], [107, 103], [108, 104], [109, 104], [110, 100], [111, 108], [112, 109], [113, 109], [114, 110], [115, 110], [116, 100], [117, 113], [118, 114], [119, 114], [120, 110], [121, 118], [122, 119], [123, 119], [124, 120], [125, 120], [126, 110], [127, 123], [128, 124], [129, 124], [130, 120], [131, 128], [132, 129], [133, 129], [134, 130], [135, 130], [136, 120], [137, 133], [138, 134], [139, 134], [140, 130], [141, 130], [142, 138], [143, 139], [144, 139], [145, 140], [146, 140], [147, 141], [148, 141], [149, 130], [150, 144], [151, 145], [152, 146], [153, 146], [154, 147], [155, 153], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155]]}, {"function_name": "jj_3R_178", "code": "  final private boolean jj_3R_178() {\n    if (jj_scan_token(FALSE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_177", "code": "  final private boolean jj_3R_177() {\n    if (jj_scan_token(TRUE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_149", "code": "  final private boolean jj_3R_149() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_177()) {\n    jj_scanpos = xsp;\n    if (jj_3R_178()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3_9", "code": "  final private boolean jj_3_9() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_133", "code": "  final private boolean jj_3R_133() {\n    if (jj_3R_151()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_84", "code": "  final private boolean jj_3R_84() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_132", "code": "  final private boolean jj_3R_132() {\n    if (jj_3R_150()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_131", "code": "  final private boolean jj_3R_131() {\n    if (jj_3R_149()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_45", "code": "  final private boolean jj_3R_45() {\n    if (jj_3R_85()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_44", "code": "  final private boolean jj_3R_44() {\n    if (jj_3R_84()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_26", "code": "  final private boolean jj_3R_26() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_44()) {\n    jj_scanpos = xsp;\n    if (jj_3R_45()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_130", "code": "  final private boolean jj_3R_130() {\n    if (jj_scan_token(STRING_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_129", "code": "  final private boolean jj_3R_129() {\n    if (jj_scan_token(CHARACTER_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_8", "code": "  final private boolean jj_3_8() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_28", "code": "  final private boolean jj_3R_28() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_8()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_128", "code": "  final private boolean jj_3R_128() {\n    if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_207", "code": "  final private boolean jj_3R_207() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_77", "code": "  final private boolean jj_3R_77() {\n    if (jj_scan_token(DOUBLE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_76", "code": "  final private boolean jj_3R_76() {\n    if (jj_scan_token(FLOAT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_75", "code": "  final private boolean jj_3R_75() {\n    if (jj_scan_token(LONG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_74", "code": "  final private boolean jj_3R_74() {\n    if (jj_scan_token(INT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_50", "code": "  final private boolean jj_3R_50() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_73", "code": "  final private boolean jj_3R_73() {\n    if (jj_scan_token(SHORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_72", "code": "  final private boolean jj_3R_72() {\n    if (jj_scan_token(BYTE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_71", "code": "  final private boolean jj_3R_71() {\n    if (jj_scan_token(CHAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_34", "code": "  final private boolean jj_3R_34() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_70()) {\n    jj_scanpos = xsp;\n    if (jj_3R_71()) {\n    jj_scanpos = xsp;\n    if (jj_3R_72()) {\n    jj_scanpos = xsp;\n    if (jj_3R_73()) {\n    jj_scanpos = xsp;\n    if (jj_3R_74()) {\n    jj_scanpos = xsp;\n    if (jj_3R_75()) {\n    jj_scanpos = xsp;\n    if (jj_3R_76()) {\n    jj_scanpos = xsp;\n    if (jj_3R_77()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [28, 31], [29, 32], [29, 33], [30, 34], [30, 35], [20, 36], [33, 37], [34, 38], [34, 39], [30, 40], [38, 41], [39, 42], [39, 43], [40, 44], [40, 45], [30, 46], [43, 47], [44, 48], [44, 49], [40, 50], [48, 51], [49, 52], [49, 53], [50, 54], [50, 55], [40, 56], [53, 57], [54, 58], [54, 59], [50, 60], [58, 61], [59, 62], [59, 63], [60, 64], [60, 65], [50, 66], [63, 67], [64, 68], [64, 69], [60, 70], [60, 71], [68, 72], [69, 73], [69, 74], [70, 75], [70, 76], [71, 77], [71, 78], [60, 79], [74, 80], [75, 81], [76, 82], [76, 83], [77, 84], [83, 85], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 28], [32, 29], [33, 29], [34, 30], [35, 30], [36, 20], [37, 33], [38, 34], [39, 34], [40, 30], [41, 38], [42, 39], [43, 39], [44, 40], [45, 40], [46, 30], [47, 43], [48, 44], [49, 44], [50, 40], [51, 48], [52, 49], [53, 49], [54, 50], [55, 50], [56, 40], [57, 53], [58, 54], [59, 54], [60, 50], [61, 58], [62, 59], [63, 59], [64, 60], [65, 60], [66, 50], [67, 63], [68, 64], [69, 64], [70, 60], [71, 60], [72, 68], [73, 69], [74, 69], [75, 70], [76, 70], [77, 71], [78, 71], [79, 60], [80, 74], [81, 75], [82, 76], [83, 76], [84, 77], [85, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "jj_3R_70", "code": "  final private boolean jj_3R_70() {\n    if (jj_scan_token(BOOLEAN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_87", "code": "  final private boolean jj_3R_87() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_111", "code": "  final private boolean jj_3R_111() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_127()) {\n    jj_scanpos = xsp;\n    if (jj_3R_128()) {\n    jj_scanpos = xsp;\n    if (jj_3R_129()) {\n    jj_scanpos = xsp;\n    if (jj_3R_130()) {\n    jj_scanpos = xsp;\n    if (jj_3R_131()) {\n    jj_scanpos = xsp;\n    if (jj_3R_132()) {\n    jj_scanpos = xsp;\n    if (jj_3R_133()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [28, 31], [29, 32], [29, 33], [30, 34], [30, 35], [20, 36], [33, 37], [34, 38], [34, 39], [30, 40], [38, 41], [39, 42], [39, 43], [40, 44], [40, 45], [30, 46], [43, 47], [44, 48], [44, 49], [40, 50], [48, 51], [49, 52], [49, 53], [50, 54], [50, 55], [40, 56], [53, 57], [54, 58], [54, 59], [50, 60], [50, 61], [58, 62], [59, 63], [59, 64], [60, 65], [60, 66], [61, 67], [61, 68], [50, 69], [64, 70], [65, 71], [66, 72], [66, 73], [67, 74], [73, 75], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 28], [32, 29], [33, 29], [34, 30], [35, 30], [36, 20], [37, 33], [38, 34], [39, 34], [40, 30], [41, 38], [42, 39], [43, 39], [44, 40], [45, 40], [46, 30], [47, 43], [48, 44], [49, 44], [50, 40], [51, 48], [52, 49], [53, 49], [54, 50], [55, 50], [56, 40], [57, 53], [58, 54], [59, 54], [60, 50], [61, 50], [62, 58], [63, 59], [64, 59], [65, 60], [66, 60], [67, 61], [68, 61], [69, 50], [70, 64], [71, 65], [72, 66], [73, 66], [74, 67], [75, 73], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "jj_3R_127", "code": "  final private boolean jj_3R_127() {\n    if (jj_scan_token(INTEGER_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_46", "code": "  final private boolean jj_3R_46() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_86()) {\n    jj_scanpos = xsp;\n    if (jj_3R_87()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_86", "code": "  final private boolean jj_3R_86() {\n    if (jj_scan_token(VOID)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_7", "code": "  final private boolean jj_3_7() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_126", "code": "  final private boolean jj_3R_126() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_49", "code": "  final private boolean jj_3R_49() {\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_30", "code": "  final private boolean jj_3R_30() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_49()) {\n    jj_scanpos = xsp;\n    if (jj_3R_50()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_7()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "IF", "IF", "RETURN", "BINARY_OP", "IF", "IF", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [0, 9], [2, 10], [2, 11], [7, 12], [7, 13], [3, 14], [3, 15], [10, 16], [10, 17], [11, 18], [2, 19], [12, 20], [13, 21], [13, 22], [14, 23], [14, 24], [15, 25], [15, 26], [3, 27], [16, 28], [17, 29], [17, 30], [11, 31], [22, 32], [23, 33], [24, 34], [24, 35], [25, 36], [30, 37], [11, 38], [35, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 0], [10, 2], [11, 2], [12, 7], [13, 7], [14, 3], [15, 3], [16, 10], [17, 10], [18, 11], [19, 2], [20, 12], [21, 13], [22, 13], [23, 14], [24, 14], [25, 15], [26, 15], [27, 3], [28, 16], [29, 17], [30, 17], [31, 11], [32, 22], [33, 23], [34, 24], [35, 24], [36, 25], [37, 30], [38, 11], [39, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "jj_3R_110", "code": "  final private boolean jj_3R_110() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_140", "code": "  final private boolean jj_3R_140() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_139()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_52", "code": "  final private boolean jj_3R_52() {\n    if (jj_3R_91()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_169", "code": "  final private boolean jj_3R_169() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_109", "code": "  final private boolean jj_3R_109() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_126()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [0, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [9, 21], [2, 22], [12, 23], [13, 24], [13, 25], [14, 26], [16, 27], [17, 28], [17, 29], [18, 30], [20, 31], [21, 32], [21, 33], [25, 34], [29, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 0], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 9], [22, 2], [23, 12], [24, 13], [25, 13], [26, 14], [27, 16], [28, 17], [29, 17], [30, 18], [31, 20], [32, 21], [33, 21], [34, 25], [35, 29], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3_6", "code": "  final private boolean jj_3_6() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_139", "code": "  final private boolean jj_3R_139() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_6()) {\n    jj_scanpos = xsp;\n    if (jj_3R_169()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_108", "code": "  final private boolean jj_3R_108() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_91", "code": "  final private boolean jj_3R_91() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_108()) {\n    jj_scanpos = xsp;\n    if (jj_3R_109()) {\n    jj_scanpos = xsp;\n    if (jj_3R_110()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [10, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [21, 27], [21, 28], [10, 29], [24, 30], [25, 31], [26, 32], [26, 33], [27, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 10], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 21], [28, 21], [29, 10], [30, 24], [31, 25], [32, 26], [33, 26], [34, 27], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3_5", "code": "  final private boolean jj_3_5() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_117", "code": "  final private boolean jj_3R_117() {\n    if (jj_3R_139()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_140()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3_18", "code": "  final private boolean jj_3_18() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_31", "code": "  final private boolean jj_3R_31() {\n    if (jj_3R_51()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_52()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_255", "code": "  final private boolean jj_3R_255() {\n    if (jj_scan_token(FINALLY)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_100", "code": "  final private boolean jj_3R_100() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_117()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [0, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [22, 31], [24, 32], [25, 33], [25, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 0], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 22], [32, 24], [33, 25], [34, 25], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_254", "code": "  final private boolean jj_3R_254() {\n    if (jj_scan_token(CATCH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_139()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [3, 15], [3, 16], [4, 17], [4, 18], [5, 19], [5, 20], [6, 21], [6, 22], [7, 23], [7, 24], [8, 25], [8, 26], [9, 27], [9, 28], [10, 29], [10, 30], [11, 31], [11, 32], [13, 33], [14, 34], [14, 35], [15, 36], [17, 37], [18, 38], [18, 39], [19, 40], [21, 41], [22, 42], [22, 43], [23, 44], [25, 45], [26, 46], [26, 47], [27, 48], [29, 49], [30, 50], [30, 51], [31, 52], [35, 53], [39, 54], [43, 55], [47, 56], [51, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 3], [16, 3], [17, 4], [18, 4], [19, 5], [20, 5], [21, 6], [22, 6], [23, 7], [24, 7], [25, 8], [26, 8], [27, 9], [28, 9], [29, 10], [30, 10], [31, 11], [32, 11], [33, 13], [34, 14], [35, 14], [36, 15], [37, 17], [38, 18], [39, 18], [40, 19], [41, 21], [42, 22], [43, 22], [44, 23], [45, 25], [46, 26], [47, 26], [48, 27], [49, 29], [50, 30], [51, 30], [52, 31], [53, 35], [54, 39], [55, 43], [56, 47], [57, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "jj_3R_206", "code": "  final private boolean jj_3R_206() {\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_5()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_90", "code": "  final private boolean jj_3R_90() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_190", "code": "  final private boolean jj_3R_190() {\n    if (jj_scan_token(TRY)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_254()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    xsp = jj_scanpos;\n    if (jj_3R_255()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [0, 12], [3, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [7, 19], [8, 20], [8, 21], [10, 22], [10, 23], [2, 24], [3, 25], [3, 26], [14, 27], [15, 28], [15, 29], [16, 30], [18, 31], [19, 32], [19, 33], [20, 34], [22, 35], [23, 36], [23, 37], [25, 38], [25, 39], [26, 40], [3, 41], [29, 42], [33, 43], [37, 44], [38, 45], [39, 46], [39, 47], [26, 48], [47, 49], [26, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 0], [13, 3], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 7], [20, 8], [21, 8], [22, 10], [23, 10], [24, 2], [25, 3], [26, 3], [27, 14], [28, 15], [29, 15], [30, 16], [31, 18], [32, 19], [33, 19], [34, 20], [35, 22], [36, 23], [37, 23], [38, 25], [39, 25], [40, 26], [41, 3], [42, 29], [43, 33], [44, 37], [45, 38], [46, 39], [47, 39], [48, 26], [49, 47], [50, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "jj_3R_51", "code": "  final private boolean jj_3R_51() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_89()) {\n    jj_scanpos = xsp;\n    if (jj_3R_90()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_89", "code": "  final private boolean jj_3R_89() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_88", "code": "  final private boolean jj_3R_88() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_206()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_207()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [3, 12], [3, 13], [4, 14], [4, 15], [0, 16], [5, 17], [5, 18], [0, 19], [7, 20], [7, 21], [8, 22], [8, 23], [10, 24], [11, 25], [11, 26], [12, 27], [14, 28], [14, 29], [4, 30], [17, 31], [17, 32], [5, 33], [20, 34], [21, 35], [21, 36], [22, 37], [26, 38], [28, 39], [29, 40], [29, 41], [31, 42], [32, 43], [32, 44], [36, 45], [41, 46], [44, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 3], [13, 3], [14, 4], [15, 4], [16, 0], [17, 5], [18, 5], [19, 0], [20, 7], [21, 7], [22, 8], [23, 8], [24, 10], [25, 11], [26, 11], [27, 12], [28, 14], [29, 14], [30, 4], [31, 17], [32, 17], [33, 5], [34, 20], [35, 21], [36, 21], [37, 22], [38, 26], [39, 28], [40, 29], [41, 29], [42, 31], [43, 32], [44, 32], [45, 36], [46, 41], [47, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "jj_3R_253", "code": "  final private boolean jj_3R_253() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_252", "code": "  final private boolean jj_3R_252() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_48", "code": "  final private boolean jj_3R_48() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_189", "code": "  final private boolean jj_3R_189() {\n    if (jj_scan_token(THROW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_144", "code": "  final private boolean jj_3R_144() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_47", "code": "  final private boolean jj_3R_47() {\n    if (jj_3R_88()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_29", "code": "  final private boolean jj_3R_29() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_47()) {\n    jj_scanpos = xsp;\n    if (jj_3R_48()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_240", "code": "  final private boolean jj_3R_240() {\n    if (jj_scan_token(ASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_231", "code": "  final private boolean jj_3R_231() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_230()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_280", "code": "  final private boolean jj_3R_280() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_180()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_241", "code": "  final private boolean jj_3R_241() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_188", "code": "  final private boolean jj_3R_188() {\n    if (jj_scan_token(RETURN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_253()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [0, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [22, 31], [24, 32], [25, 33], [25, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 0], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 22], [32, 24], [33, 25], [34, 25], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_251", "code": "  final private boolean jj_3R_251() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_187", "code": "  final private boolean jj_3R_187() {\n    if (jj_scan_token(CONTINUE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_252()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [0, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [22, 31], [24, 32], [25, 33], [25, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 0], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 22], [32, 24], [33, 25], [34, 25], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_97", "code": "  final private boolean jj_3R_97() {\n    if (jj_3R_111()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_186", "code": "  final private boolean jj_3R_186() {\n    if (jj_scan_token(BREAK)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_251()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [0, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [22, 31], [24, 32], [25, 33], [25, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 0], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 22], [32, 24], [33, 25], [34, 25], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_123", "code": "  final private boolean jj_3R_123() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_230", "code": "  final private boolean jj_3R_230() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_240()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [10, 17], [11, 18], [11, 19], [12, 20], [14, 21], [15, 22], [15, 23], [19, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 10], [18, 11], [19, 11], [20, 12], [21, 14], [22, 15], [23, 15], [24, 19], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_96", "code": "  final private boolean jj_3R_96() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_122", "code": "  final private boolean jj_3R_122() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_144()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [0, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [9, 21], [2, 22], [12, 23], [13, 24], [13, 25], [14, 26], [16, 27], [17, 28], [17, 29], [18, 30], [20, 31], [21, 32], [21, 33], [25, 34], [29, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 0], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 9], [22, 2], [23, 12], [24, 13], [25, 13], [26, 14], [27, 16], [28, 17], [29, 17], [30, 18], [31, 20], [32, 21], [33, 21], [34, 25], [35, 29], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_266", "code": "  final private boolean jj_3R_266() {\n    if (jj_3R_274()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_168", "code": "  final private boolean jj_3R_168() {\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_121", "code": "  final private boolean jj_3R_121() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_274", "code": "  final private boolean jj_3R_274() {\n    if (jj_3R_180()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_280()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3_17", "code": "  final private boolean jj_3_17() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(CLASS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_105", "code": "  final private boolean jj_3R_105() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_17()) {\n    jj_scanpos = xsp;\n    if (jj_3R_121()) {\n    jj_scanpos = xsp;\n    if (jj_3R_122()) {\n    jj_scanpos = xsp;\n    if (jj_3R_123()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [20, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [31, 37], [31, 38], [20, 39], [34, 40], [35, 41], [36, 42], [36, 43], [37, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 20], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 31], [38, 31], [39, 20], [40, 34], [41, 35], [42, 36], [43, 36], [44, 37], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jj_3_4", "code": "  final private boolean jj_3_4() {\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_241()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [0, 17], [6, 18], [6, 19], [7, 20], [7, 21], [8, 22], [8, 23], [9, 24], [9, 25], [11, 26], [12, 27], [12, 28], [13, 29], [15, 30], [15, 31], [4, 32], [18, 33], [19, 34], [19, 35], [20, 36], [22, 37], [23, 38], [23, 39], [24, 40], [28, 41], [30, 42], [31, 43], [31, 44], [35, 45], [39, 46], [44, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 0], [18, 6], [19, 6], [20, 7], [21, 7], [22, 8], [23, 8], [24, 9], [25, 9], [26, 11], [27, 12], [28, 12], [29, 13], [30, 15], [31, 15], [32, 4], [33, 18], [34, 19], [35, 19], [36, 20], [37, 22], [38, 23], [39, 23], [40, 24], [41, 28], [42, 30], [43, 31], [44, 31], [45, 35], [46, 39], [47, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "jj_3R_138", "code": "  final private boolean jj_3R_138() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_4()) {\n    jj_scanpos = xsp;\n    if (jj_3R_168()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3_15", "code": "  final private boolean jj_3_15() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(CLASS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_154", "code": "  final private boolean jj_3R_154() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_3", "code": "  final private boolean jj_3_3() {\n    if (jj_3R_27()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_143", "code": "  final private boolean jj_3R_143() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_136", "code": "  final private boolean jj_3R_136() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_154()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_230()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_231()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [0, 21], [2, 22], [2, 23], [11, 24], [12, 25], [12, 26], [13, 27], [15, 28], [16, 29], [16, 30], [17, 31], [19, 32], [19, 33], [7, 34], [22, 35], [22, 36], [23, 37], [2, 38], [26, 39], [30, 40], [32, 41], [33, 42], [33, 43], [35, 44], [36, 45], [36, 46], [23, 47], [43, 48], [46, 49], [23, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 0], [22, 2], [23, 2], [24, 11], [25, 12], [26, 12], [27, 13], [28, 15], [29, 16], [30, 16], [31, 17], [32, 19], [33, 19], [34, 7], [35, 22], [36, 22], [37, 23], [38, 2], [39, 26], [40, 30], [41, 32], [42, 33], [43, 33], [44, 35], [45, 36], [46, 36], [47, 23], [48, 43], [49, 46], [50, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "jj_3R_27", "code": "  final private boolean jj_3R_27() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3_16", "code": "  final private boolean jj_3_16() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.InputStream stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [5, 14], [6, 15], [8, 16], [9, 17], [11, 18], [11, 19], [12, 20], [1, 21], [13, 22], [2, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 5], [15, 6], [16, 8], [17, 9], [18, 11], [19, 11], [20, 12], [21, 1], [22, 13], [23, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.Reader stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [5, 14], [6, 15], [8, 16], [9, 17], [11, 18], [11, 19], [12, 20], [1, 21], [13, 22], [2, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 5], [15, 6], [16, 8], [17, 9], [18, 11], [19, 11], [20, 12], [21, 1], [22, 13], [23, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "ReInit", "code": "  public void ReInit(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [5, 13], [6, 14], [8, 15], [9, 16], [11, 17], [1, 18], [12, 19], [2, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 5], [14, 6], [15, 8], [16, 9], [17, 11], [18, 1], [19, 12], [20, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "jj_consume_token", "code": "  final private Token jj_consume_token(int kind) throws ParseException {\n    Token oldToken;\n    if ((oldToken = token).next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    if (token.kind == kind) {\n      jj_gen++;\n      if (++jj_gc > 100) {\n        jj_gc = 0;\n        for (int i = 0; i < jj_2_rtns.length; i++) {\n          JJCalls c = jj_2_rtns[i];\n          while (c != null) {\n            if (c.gen < jj_gen) c.first = null;\n            c = c.next;\n          }\n        }\n      }\n      return token;\n    }\n    token = oldToken;\n    jj_kind = kind;\n    throw generateParseException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [0, 10], [3, 11], [2, 12], [2, 13], [10, 14], [3, 15], [3, 16], [11, 17], [11, 18], [13, 19], [15, 20], [13, 21], [19, 22], [20, 23], [21, 24], [13, 25], [21, 26], [21, 27], [25, 28], [26, 29], [21, 30], [26, 31], [29, 32], [26, 33], [31, 34], [31, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 0], [11, 3], [12, 2], [13, 2], [14, 10], [15, 3], [16, 3], [17, 11], [18, 11], [19, 13], [20, 15], [21, 13], [22, 19], [23, 20], [24, 21], [25, 13], [26, 21], [27, 21], [28, 25], [29, 26], [30, 21], [31, 26], [32, 29], [33, 26], [34, 31], [35, 31], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_scan_token", "code": "  final private boolean jj_scan_token(int kind) {\n    if (jj_scanpos == jj_lastpos) {\n      jj_la--;\n      if (jj_scanpos.next == null) {\n        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();\n      } else {\n        jj_lastpos = jj_scanpos = jj_scanpos.next;\n      }\n    } else {\n      jj_scanpos = jj_scanpos.next;\n    }\n    if (jj_rescan) {\n      int i = 0; Token tok = token;\n      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }\n      if (tok != null) jj_add_error_token(kind, i);\n    }\n    return (jj_scanpos.kind != kind);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [2, 8], [2, 9], [2, 10], [3, 11], [7, 12], [8, 13], [3, 14], [11, 15], [7, 16], [12, 17], [13, 18], [13, 19], [10, 20], [15, 21], [8, 22], [19, 23], [11, 24], [11, 25], [24, 26], [25, 27], [27, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [8, 2], [9, 2], [10, 2], [11, 3], [12, 7], [13, 8], [14, 3], [15, 11], [16, 7], [17, 12], [18, 13], [19, 13], [20, 10], [21, 15], [22, 8], [23, 19], [24, 11], [25, 11], [26, 24], [27, 25], [28, 27], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getNextToken", "code": "  final public Token getNextToken() {\n    if (token.next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    jj_gen++;\n    return token;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [2, 7], [4, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 2], [8, 4], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getToken", "code": "  final public Token getToken(int index) {\n    Token t = lookingAhead ? jj_scanpos : token;\n    for (int i = 0; i < index; i++) {\n      if (t.next != null) t = t.next;\n      else t = t.next = token_source.getNextToken();\n    }\n    return t;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [2, 9], [6, 10], [6, 11], [8, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 2], [10, 6], [11, 6], [12, 8], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_ntk", "code": "  final private int jj_ntk() {\n    if ((jj_nt=token.next) == null)\n      return (jj_ntk = (token.next=token_source.getNextToken()).kind);\n    else\n      return (jj_ntk = jj_nt.kind);", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [4, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 4], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_add_error_token", "code": "  private void jj_add_error_token(int kind, int pos) {\n    if (pos >= 100) return;\n    if (pos == jj_endpos + 1) {\n      jj_lasttokens[jj_endpos++] = kind;\n    } else if (jj_endpos != 0) {\n      jj_expentry = new int[jj_endpos];\n      for (int i = 0; i < jj_endpos; i++) {\n        jj_expentry[i] = jj_lasttokens[i];\n      }\n      boolean exists = false;\n      for (java.util.Enumeration enum1 = jj_expentries.elements(); enum1.hasMoreElements();) {\n        int[] oldentry = (int[])(enum1.nextElement());\n        if (oldentry.length == jj_expentry.length) {\n          exists = true;\n          for (int i = 0; i < jj_expentry.length; i++) {\n            if (oldentry[i] != jj_expentry[i]) {\n              exists = false;\n              break;\n            }\n          }\n          if (exists) break;\n        }\n      }\n      if (!exists) jj_expentries.addElement(jj_expentry);\n      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LOOP", "VAR_DECL", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LOOP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [5, 9], [6, 10], [8, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [9, 17], [1, 18], [10, 19], [12, 20], [14, 21], [16, 22], [5, 23], [12, 24], [20, 25], [13, 26], [14, 27], [14, 28], [15, 29], [27, 30], [14, 31], [16, 32], [16, 33], [27, 34], [27, 35], [24, 36], [34, 37], [35, 38], [27, 39], [28, 40], [36, 41], [36, 42], [35, 43], [39, 44], [43, 45], [35, 46], [43, 47], [43, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 5], [10, 6], [11, 8], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 9], [18, 1], [19, 10], [20, 12], [21, 14], [22, 16], [23, 5], [24, 12], [25, 20], [26, 13], [27, 14], [28, 14], [29, 15], [30, 27], [31, 14], [32, 16], [33, 16], [34, 27], [35, 27], [36, 24], [37, 34], [38, 35], [39, 27], [40, 28], [41, 36], [42, 36], [43, 35], [44, 39], [45, 43], [46, 35], [47, 43], [48, 43], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "generateParseException", "code": "  final public ParseException generateParseException() {\n    jj_expentries.removeAllElements();\n    boolean[] la1tokens = new boolean[123];\n    for (int i = 0; i < 123; i++) {\n      la1tokens[i] = false;\n    }\n    if (jj_kind >= 0) {\n      la1tokens[jj_kind] = true;\n      jj_kind = -1;\n    }\n    for (int i = 0; i < 88; i++) {\n      if (jj_la1[i] == jj_gen) {\n        for (int j = 0; j < 32; j++) {\n          if ((jj_la1_0[i] & (1<<j)) != 0) {\n            la1tokens[j] = true;\n          }\n          if ((jj_la1_1[i] & (1<<j)) != 0) {\n            la1tokens[32+j] = true;\n          }\n          if ((jj_la1_2[i] & (1<<j)) != 0) {\n            la1tokens[64+j] = true;\n          }\n          if ((jj_la1_3[i] & (1<<j)) != 0) {\n            la1tokens[96+j] = true;\n          }\n        }\n      }\n    }\n    for (int i = 0; i < 123; i++) {\n      if (la1tokens[i]) {\n        jj_expentry = new int[1];\n        jj_expentry[0] = i;\n        jj_expentries.addElement(jj_expentry);\n      }\n    }\n    jj_endpos = 0;\n    jj_rescan_token();\n    jj_add_error_token(0, 0);\n    int[][] exptokseq = new int[jj_expentries.size()][];\n    for (int i = 0; i < jj_expentries.size(); i++) {\n      exptokseq[i] = (int[])jj_expentries.elementAt(i);\n    }\n    return new ParseException(token, exptokseq, tokenImage);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "LOOP", "IF", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [0, 12], [0, 13], [4, 14], [5, 15], [6, 16], [7, 17], [0, 18], [10, 19], [11, 20], [11, 21], [13, 22], [4, 23], [14, 24], [5, 25], [15, 26], [16, 27], [17, 28], [2, 29], [2, 30], [3, 31], [4, 32], [25, 33], [5, 34], [6, 35], [6, 36], [7, 37], [7, 38], [8, 39], [25, 40], [35, 41], [36, 42], [37, 43], [29, 44], [23, 45], [23, 46], [23, 47], [40, 48], [40, 49], [40, 50], [40, 51], [40, 52], [48, 53], [47, 54], [49, 55], [50, 56], [51, 57], [52, 58], [40, 59], [46, 60], [55, 61], [55, 62], [56, 63], [56, 64], [57, 65], [57, 66], [58, 67], [58, 68], [49, 69], [62, 70], [50, 71], [64, 72], [51, 73], [66, 74], [52, 75], [68, 76], [69, 77], [70, 78], [71, 79], [72, 80], [73, 81], [74, 82], [75, 83], [76, 84], [69, 85], [71, 86], [73, 87], [85, 88], [86, 89], [87, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 0], [13, 0], [14, 4], [15, 5], [16, 6], [17, 7], [18, 0], [19, 10], [20, 11], [21, 11], [22, 13], [23, 4], [24, 14], [25, 5], [26, 15], [27, 16], [28, 17], [29, 2], [30, 2], [31, 3], [32, 4], [33, 25], [34, 5], [35, 6], [36, 6], [37, 7], [38, 7], [39, 8], [40, 25], [41, 35], [42, 36], [43, 37], [44, 29], [45, 23], [46, 23], [47, 23], [48, 40], [49, 40], [50, 40], [51, 40], [52, 40], [53, 48], [54, 47], [55, 49], [56, 50], [57, 51], [58, 52], [59, 40], [60, 46], [61, 55], [62, 55], [63, 56], [64, 56], [65, 57], [66, 57], [67, 58], [68, 58], [69, 49], [70, 62], [71, 50], [72, 64], [73, 51], [74, 66], [75, 52], [76, 68], [77, 69], [78, 70], [79, 71], [80, 72], [81, 73], [82, 74], [83, 75], [84, 76], [85, 69], [86, 71], [87, 73], [88, 85], [89, 86], [90, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "enable_tracing", "code": "  final public void enable_tracing() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "disable_tracing", "code": "  final public void disable_tracing() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "jj_rescan_token", "code": "  final private void jj_rescan_token() {\n    jj_rescan = true;\n    for (int i = 0; i < 27; i++) {\n      JJCalls p = jj_2_rtns[i];\n      do {\n        if (p.gen > jj_gen) {\n          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;\n          switch (i) {\n            case 0: jj_3_1(); break;\n            case 1: jj_3_2(); break;\n            case 2: jj_3_3(); break;\n            case 3: jj_3_4(); break;\n            case 4: jj_3_5(); break;\n            case 5: jj_3_6(); break;\n            case 6: jj_3_7(); break;\n            case 7: jj_3_8(); break;\n            case 8: jj_3_9(); break;\n            case 9: jj_3_10(); break;\n            case 10: jj_3_11(); break;\n            case 11: jj_3_12(); break;\n            case 12: jj_3_13(); break;\n            case 13: jj_3_14(); break;\n            case 14: jj_3_15(); break;\n            case 15: jj_3_16(); break;\n            case 16: jj_3_17(); break;\n            case 17: jj_3_18(); break;\n            case 18: jj_3_19(); break;\n            case 19: jj_3_20(); break;\n            case 20: jj_3_21(); break;\n            case 21: jj_3_22(); break;\n            case 22: jj_3_23(); break;\n            case 23: jj_3_24(); break;\n            case 24: jj_3_25(); break;\n            case 25: jj_3_26(); break;\n            case 26: jj_3_27(); break;\n          }\n        }\n        p = p.next;\n      } while (p != null);\n    }\n    jj_rescan = false;", "ast_nodes": ["FUNC_DECL", "LOOP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "SWITCH", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 6], [1, 7], [3, 8], [4, 9], [6, 10], [1, 11], [6, 12], [10, 13], [6, 14], [12, 15], [12, 16], [12, 17], [12, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [16, 36], [16, 37], [16, 38], [16, 39], [16, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [16, 53], [16, 54], [16, 55], [16, 56], [16, 57], [16, 58], [16, 59], [16, 60], [16, 61], [16, 62], [16, 63], [16, 64], [16, 65], [16, 66], [16, 67], [16, 68], [16, 69], [16, 70], [16, 71], [16, 72], [17, 73], [16, 74], [16, 75], [16, 76], [16, 77], [16, 78], [16, 79], [16, 80], [16, 81], [16, 82], [16, 83], [16, 84], [16, 85], [16, 86], [16, 87], [16, 88], [16, 89], [16, 90], [16, 91], [16, 92], [16, 93], [16, 94], [16, 95], [16, 96], [16, 97], [16, 98], [16, 99], [16, 100], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 1], [7, 1], [8, 3], [9, 4], [10, 6], [11, 1], [12, 6], [13, 10], [14, 6], [15, 12], [16, 12], [17, 12], [18, 12], [19, 16], [20, 16], [21, 16], [22, 16], [23, 16], [24, 16], [25, 16], [26, 16], [27, 16], [28, 16], [29, 16], [30, 16], [31, 16], [32, 16], [33, 16], [34, 16], [35, 16], [36, 16], [37, 16], [38, 16], [39, 16], [40, 16], [41, 16], [42, 16], [43, 16], [44, 16], [45, 16], [46, 16], [47, 16], [48, 16], [49, 16], [50, 16], [51, 16], [52, 16], [53, 16], [54, 16], [55, 16], [56, 16], [57, 16], [58, 16], [59, 16], [60, 16], [61, 16], [62, 16], [63, 16], [64, 16], [65, 16], [66, 16], [67, 16], [68, 16], [69, 16], [70, 16], [71, 16], [72, 16], [73, 17], [74, 16], [75, 16], [76, 16], [77, 16], [78, 16], [79, 16], [80, 16], [81, 16], [82, 16], [83, 16], [84, 16], [85, 16], [86, 16], [87, 16], [88, 16], [89, 16], [90, 16], [91, 16], [92, 16], [93, 16], [94, 16], [95, 16], [96, 16], [97, 16], [98, 16], [99, 16], [100, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100]]}, {"function_name": "jj_save", "code": "  final private void jj_save(int index, int xla) {\n    JJCalls p = jj_2_rtns[index];\n    while (p.gen > jj_gen) {\n      if (p.next == null) { p = p.next = new JJCalls(); break; }\n      p = p.next;\n    }\n    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [7, 9], [1, 10], [9, 11], [1, 12], [10, 13], [10, 14], [13, 15], [10, 16], [16, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 7], [10, 1], [11, 9], [12, 1], [13, 10], [14, 10], [15, 13], [16, 10], [17, 16], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "Parser", "code": "  public Parser(java.io.InputStream stream) {\n    jj_input_stream = new ASCII_UCodeESC_CharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [5, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [1, 20], [12, 21], [2, 22], [18, 23], [18, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 5], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 1], [21, 12], [22, 2], [23, 18], [24, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "Parser", "code": "  public Parser(java.io.Reader stream) {\n    jj_input_stream = new ASCII_UCodeESC_CharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [5, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [1, 20], [12, 21], [2, 22], [18, 23], [18, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 5], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 1], [21, 12], [22, 2], [23, 18], [24, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "Parser", "code": "  public Parser(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [10, 16], [1, 17], [11, 18], [2, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [16, 10], [17, 1], [18, 11], [19, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 0}
{"sample_id": "xalan-2.4-6441", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/transformer/KeyIterator.java", "language": "java", "name": "org.apache.xalan.transformer.KeyIterator", "code": "public class KeyIterator extends OneStepIteratorForward\n{\n\n  /** Key name.\n   *  @serial           */\n  private QName m_name;\n\n  /**\n   * Get the key name from a key declaration this iterator will process\n   *\n   *\n   * @return Key name\n   */\n  public QName getName()\n  {\n    return m_name;\n  }\n\n  /** Vector of Key declarations in the stylesheet.\n   *  @serial          */\n  private Vector m_keyDeclarations;\n\n  /**\n   * Get the key declarations from the stylesheet \n   *\n   *\n   * @return Vector containing the key declarations from the stylesheet\n   */\n  public Vector getKeyDeclarations()\n  {\n    return m_keyDeclarations;\n  }\n\n  /**\n    * Create a KeyIterator object.\n    *\n    * @param compiler A reference to the Compiler that contains the op map.\n    * @param opPos The position within the op map, which contains the\n    * location path expression for this itterator.\n    *\n    * @throws javax.xml.transform.TransformerException\n    */\n  KeyIterator(QName name, Vector keyDeclarations)\n  {\n    super(Axis.ALL);\n    m_keyDeclarations = keyDeclarations;\n    m_name = name;\n  }\n\n  /**\n   *  Test whether a specified node is visible in the logical view of a\n   * TreeWalker or NodeIterator. This function will be called by the\n   * implementation of TreeWalker and NodeIterator; it is not intended to\n   * be called directly from user code.\n   * \n   * @param testnode  The node to check to see if it passes the filter or not.\n   *\n   * @return  a constant to determine whether the node is accepted,\n   *   rejected, or skipped, as defined  above .\n   */\n  public short acceptNode(int testNode)\n  {\n    boolean foundKey = false;\n    KeyIterator ki = (KeyIterator) m_lpi;\n    org.apache.xpath.XPathContext xctxt = ki.getXPathContext();\n    Vector keys = ki.getKeyDeclarations();\n\n    QName name = ki.getName();\n    try\n    {\n      int nDeclarations = keys.size();\n\n      for (int i = 0; i < nDeclarations; i++)\n      {\n        KeyDeclaration kd = (KeyDeclaration) keys.elementAt(i);\n\n        if (!kd.getName().equals(name))\n          continue;\n\n        foundKey = true;\n\n        XPath matchExpr = kd.getMatch();\n        double score = matchExpr.getMatchScore(xctxt, testNode);\n\n        if (score == kd.getMatch().MATCH_SCORE_NONE)\n          continue;\n\n        return DTMIterator.FILTER_ACCEPT;\n\t  }\n    }\n    catch (TransformerException se)\n    {\n\n    }\n\n    if (!foundKey)\n      throw new RuntimeException(\n        XSLMessages.createMessage(\n          XSLTErrorResources.ER_NO_XSLKEY_DECLARATION,\n          new Object[] { name.getLocalName()}));\n          \n    return DTMIterator.FILTER_REJECT;", "functions": [{"function_name": "getName", "code": "  public QName getName()\n  {\n    return m_name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getKeyDeclarations", "code": "  public Vector getKeyDeclarations()\n  {\n    return m_keyDeclarations;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "acceptNode", "code": "  public short acceptNode(int testNode)\n  {\n    boolean foundKey = false;\n    KeyIterator ki = (KeyIterator) m_lpi;\n    org.apache.xpath.XPathContext xctxt = ki.getXPathContext();\n    Vector keys = ki.getKeyDeclarations();\n\n    QName name = ki.getName();\n    try\n    {\n      int nDeclarations = keys.size();\n\n      for (int i = 0; i < nDeclarations; i++)\n      {\n        KeyDeclaration kd = (KeyDeclaration) keys.elementAt(i);\n\n        if (!kd.getName().equals(name))\n          continue;\n\n        foundKey = true;\n\n        XPath matchExpr = kd.getMatch();\n        double score = matchExpr.getMatchScore(xctxt, testNode);\n\n        if (score == kd.getMatch().MATCH_SCORE_NONE)\n          continue;\n\n        return DTMIterator.FILTER_ACCEPT;\n\t  }\n    }\n    catch (TransformerException se)\n    {\n\n    }\n\n    if (!foundKey)\n      throw new RuntimeException(\n        XSLMessages.createMessage(\n          XSLTErrorResources.ER_NO_XSLKEY_DECLARATION,\n          new Object[] { name.getLocalName()}));\n          \n    return DTMIterator.FILTER_REJECT;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "THROW_RAISE", "CATCH", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [3, 12], [3, 13], [10, 14], [12, 15], [4, 16], [5, 17], [6, 18], [8, 19], [14, 20], [12, 21], [12, 22], [12, 23], [12, 24], [12, 25], [12, 26], [13, 27], [22, 28], [22, 29], [12, 30], [25, 31], [25, 32], [12, 33], [29, 34], [23, 35], [24, 36], [30, 37], [32, 38], [20, 39], [26, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 3], [13, 3], [14, 10], [15, 12], [16, 4], [17, 5], [18, 6], [19, 8], [20, 14], [21, 12], [22, 12], [23, 12], [24, 12], [25, 12], [26, 12], [27, 13], [28, 22], [29, 22], [30, 12], [31, 25], [32, 25], [33, 12], [34, 29], [35, 23], [36, 24], [37, 30], [38, 32], [39, 20], [40, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "KeyIterator", "code": "  KeyIterator(QName name, Vector keyDeclarations)\n  {\n    super(Axis.ALL);\n    m_keyDeclarations = keyDeclarations;\n    m_name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.0-3937", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/OptionGroup.java", "language": "java", "name": "org.gjt.sp.jedit.OptionGroup", "code": "public class OptionGroup\n{\n\tpublic OptionGroup(String name)\n\t{\n\t\tthis.name = name;\n\t\tmembers = new Vector();\n\t}\n\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t}\n\n\tpublic void addOptionGroup(OptionGroup group)\n\t{\n\t\tif (members.indexOf(group) != -1) return;\n\n\t\tmembers.addElement(group);\n\t}\n\n\tpublic void addOptionPane(OptionPane pane)\n\t{\n\t\tif (members.indexOf(pane) != -1) return;\n\n\t\tmembers.addElement(pane);\n\t}\n\n\tpublic Enumeration getMembers()\n\t{\n\t\treturn members.elements();\n\t}\n\n\tpublic Object getMember(int index)\n\t{\n\t\treturn (index >= 0 && index < members.size())\n\t\t\t? members.elementAt(index) : null;\n\t}\n\n\tpublic int getMemberIndex(Object member)\n\t{\n\t\treturn members.indexOf(member);\n\t}\n\n\tpublic int getMemberCount()\n\t{\n\t\treturn members.size();\n\t}\n\n\tpublic void save()\n\t{\n\t\tEnumeration enum1 = members.elements();\n\n\t\twhile (enum1.hasMoreElements())\n\t\t{\n\t\t\tObject elem = enum1.nextElement();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (elem instanceof OptionPane)\n\t\t\t\t{\n\t\t\t\t\t((OptionPane)elem).save();\n\t\t\t\t}\n\t\t\t\telse if (elem instanceof OptionGroup)\n\t\t\t\t{\n\t\t\t\t\t((OptionGroup)elem).save();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, elem,\n\t\t\t\t\t\"Error saving option pane\");\n\t\t\t\tLog.log(Log.ERROR, elem, t);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate String name;\n\tprivate Vector members;", "functions": [{"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addOptionGroup", "code": "\tpublic void addOptionGroup(OptionGroup group)\n\t{\n\t\tif (members.indexOf(group) != -1) return;\n\n\t\tmembers.addElement(group);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addOptionPane", "code": "\tpublic void addOptionPane(OptionPane pane)\n\t{\n\t\tif (members.indexOf(pane) != -1) return;\n\n\t\tmembers.addElement(pane);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getMembers", "code": "\tpublic Enumeration getMembers()\n\t{\n\t\treturn members.elements();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMember", "code": "\tpublic Object getMember(int index)\n\t{\n\t\treturn (index >= 0 && index < members.size())\n\t\t\t? members.elementAt(index) : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [6, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [8, 6], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getMemberIndex", "code": "\tpublic int getMemberIndex(Object member)\n\t{\n\t\treturn members.indexOf(member);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMemberCount", "code": "\tpublic int getMemberCount()\n\t{\n\t\treturn members.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "save", "code": "\tpublic void save()\n\t{\n\t\tEnumeration enum1 = members.elements();\n\n\t\twhile (enum1.hasMoreElements())\n\t\t{\n\t\t\tObject elem = enum1.nextElement();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (elem instanceof OptionPane)\n\t\t\t\t{\n\t\t\t\t\t((OptionPane)elem).save();\n\t\t\t\t}\n\t\t\t\telse if (elem instanceof OptionGroup)\n\t\t\t\t{\n\t\t\t\t\t((OptionGroup)elem).save();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, elem,\n\t\t\t\t\t\"Error saving option pane\");\n\t\t\t\tLog.log(Log.ERROR, elem, t);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "TRY", "VAR_DECL", "CALL", "CATCH", "IF", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [4, 8], [8, 9], [8, 10], [5, 11], [7, 12], [7, 13], [9, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 4], [9, 8], [10, 8], [11, 5], [12, 7], [13, 7], [14, 9], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "OptionGroup", "code": "\tpublic OptionGroup(String name)\n\t{\n\t\tthis.name = name;\n\t\tmembers = new Vector();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.7-1110", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/TeeOutputStream.java", "language": "java", "name": "org.apache.tools.ant.util.TeeOutputStream", "code": "public class TeeOutputStream extends OutputStream {\n    private OutputStream left;\n    private OutputStream right;\n\n    /**\n     * Constructor for TeeOutputStream.\n     * @param left one of the output streams.\n     * @param right the other output stream.\n     */\n    public TeeOutputStream(OutputStream left, OutputStream right) {\n        this.left = left;\n        this.right = right;\n    }\n\n    /**\n     * Close both output streams.\n     * @throws IOException on error.\n     */\n    public void close() throws IOException {\n        try {\n            left.close();\n        } finally {\n            right.close();\n        }\n    }\n\n    /**\n     * Flush both output streams.\n     * @throws IOException on error\n     */\n    public void flush() throws IOException {\n        left.flush();\n        right.flush();\n    }\n\n    /**\n     * Write a byte array to both output streams.\n     * @param b an array of bytes.\n     * @throws IOException on error.\n     */\n    public void write(byte[] b) throws IOException {\n        left.write(b);\n        right.write(b);\n    }\n\n    /**\n     * Write a byte array to both output streams.\n     * @param b     the data.\n     * @param off   the start offset in the data.\n     * @param len   the number of bytes to write.\n     * @throws IOException on error.\n     */\n    public void write(byte[] b, int off, int len) throws IOException {\n        left.write(b, off, len);\n        right.write(b, off, len);\n    }\n\n    /**\n     * Write a byte to both output streams.\n     * @param b the byte to write.\n     * @throws IOException on error.\n     */\n    public void write(int b) throws IOException {\n        left.write(b);\n        right.write(b);", "functions": [{"function_name": "close", "code": "    public void close() throws IOException {\n        try {\n            left.close();\n        } finally {\n            right.close();", "ast_nodes": ["FUNC_DECL", "TRY", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "flush", "code": "    public void flush() throws IOException {\n        left.flush();\n        right.flush();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "write", "code": "    public void write(byte[] b) throws IOException {\n        left.write(b);\n        right.write(b);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "write", "code": "    public void write(byte[] b, int off, int len) throws IOException {\n        left.write(b, off, len);\n        right.write(b, off, len);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "write", "code": "    public void write(int b) throws IOException {\n        left.write(b);\n        right.write(b);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "TeeOutputStream", "code": "    public TeeOutputStream(OutputStream left, OutputStream right) {\n        this.left = left;\n        this.right = right;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.2-1999", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/converter/IOConverter.java", "language": "java", "name": "org.apache.camel.converter.IOConverter", "code": "@Converter\npublic class IOConverter {\n    private static final transient Log LOG = LogFactory.getLog(IOConverter.class);\n\n    /**\n     * Utility classes should not have a public constructor.\n     */\n    private IOConverter() {        \n    }\n\n    @Converter\n    public static InputStream toInputStream(URL url) throws IOException {\n        return url.openStream();\n    }\n\n    @Converter\n    public static InputStream toInputStream(File file) throws FileNotFoundException {\n        return new BufferedInputStream(new FileInputStream(file));\n    }\n\n    @Converter\n    public static BufferedReader toReader(File file) throws FileNotFoundException {\n        return new BufferedReader(new FileReader(file));\n    }\n\n    @Converter\n    public static File toFile(String name) throws FileNotFoundException {\n        return new File(name);\n    }\n\n    @Converter\n    public static OutputStream toOutputStream(File file) throws FileNotFoundException {\n        return new BufferedOutputStream(new FileOutputStream(file));\n    }\n\n    @Converter\n    public static BufferedWriter toWriter(File file) throws IOException {\n        return new BufferedWriter(new FileWriter(file));\n    }\n\n    @Converter\n    public static Reader toReader(InputStream in) throws FileNotFoundException {\n        return new InputStreamReader(in);\n    }\n\n    @Converter\n    public static Writer toWriter(OutputStream out) throws FileNotFoundException {\n        return new OutputStreamWriter(out);\n    }\n\n    @Converter\n    public static StringReader toReader(String text) {\n        return new StringReader(text);\n    }\n\n    @Converter\n    public static InputStream toInputStream(String text) {\n        return toInputStream(text.getBytes());\n    }\n\n    @Converter\n    public static byte[] toByteArray(String text) {\n        return text.getBytes();\n    }\n\n    @Converter\n    public static String toString(byte[] data) {\n        return new String(data);\n    }\n\n    @Converter\n    public static String toString(File file) throws IOException {\n        return toString(toReader(file));\n    }\n\n    @Converter\n    public static String toString(URL url) throws IOException {\n        return toString(toInputStream(url));\n    }\n\n    @Converter\n    public static String toString(Reader reader) throws IOException {\n        if (reader instanceof BufferedReader) {\n            return toString((BufferedReader)reader);\n        } else {\n            return toString(new BufferedReader(reader));\n        }\n    }\n\n    @Converter\n    public static String toString(BufferedReader reader) throws IOException {\n        if (reader == null) {\n            return null;\n        }\n        try {\n            CollectionStringBuffer builder = new CollectionStringBuffer(\"\\n\");\n            while (true) {\n                String line = reader.readLine();\n                if (line == null) {\n                    return builder.toString();\n                }\n                builder.append(line);\n            }\n        } finally {\n            try {\n                reader.close();\n            } catch (IOException e) {\n                LOG.warn(\"Failed to close stream: \" + e, e);\n            }\n        }\n    }\n\n    @Converter\n    public static String toString(InputStream in) throws IOException {\n        return toString(toReader(in));\n    }\n\n    @Converter\n    public static InputStream toInputStream(byte[] data) {\n        return new ByteArrayInputStream(data);\n    }\n\n    @Converter\n    public static ObjectOutput toObjectOutput(OutputStream stream) throws IOException {\n        if (stream instanceof ObjectOutput) {\n            return (ObjectOutput) stream;\n        }\n        else {\n            return new ObjectOutputStream(stream);\n        }\n    }\n\n    @Converter\n    public static ObjectInput toObjectInput(InputStream stream) throws IOException {\n        if (stream instanceof ObjectInput) {\n            return (ObjectInput) stream;\n        }\n        else {\n            return new ObjectInputStream(stream);", "functions": [{"function_name": "toInputStream", "code": "    @Converter\n    public static InputStream toInputStream(URL url) throws IOException {\n        return url.openStream();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toInputStream", "code": "    @Converter\n    public static InputStream toInputStream(File file) throws FileNotFoundException {\n        return new BufferedInputStream(new FileInputStream(file));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toReader", "code": "    @Converter\n    public static BufferedReader toReader(File file) throws FileNotFoundException {\n        return new BufferedReader(new FileReader(file));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toFile", "code": "    @Converter\n    public static File toFile(String name) throws FileNotFoundException {\n        return new File(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toOutputStream", "code": "    @Converter\n    public static OutputStream toOutputStream(File file) throws FileNotFoundException {\n        return new BufferedOutputStream(new FileOutputStream(file));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toWriter", "code": "    @Converter\n    public static BufferedWriter toWriter(File file) throws IOException {\n        return new BufferedWriter(new FileWriter(file));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toReader", "code": "    @Converter\n    public static Reader toReader(InputStream in) throws FileNotFoundException {\n        return new InputStreamReader(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toWriter", "code": "    @Converter\n    public static Writer toWriter(OutputStream out) throws FileNotFoundException {\n        return new OutputStreamWriter(out);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toReader", "code": "    @Converter\n    public static StringReader toReader(String text) {\n        return new StringReader(text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toInputStream", "code": "    @Converter\n    public static InputStream toInputStream(String text) {\n        return toInputStream(text.getBytes());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toByteArray", "code": "    @Converter\n    public static byte[] toByteArray(String text) {\n        return text.getBytes();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    @Converter\n    public static String toString(byte[] data) {\n        return new String(data);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    @Converter\n    public static String toString(File file) throws IOException {\n        return toString(toReader(file));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toString", "code": "    @Converter\n    public static String toString(URL url) throws IOException {\n        return toString(toInputStream(url));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toString", "code": "    @Converter\n    public static String toString(Reader reader) throws IOException {\n        if (reader instanceof BufferedReader) {\n            return toString((BufferedReader)reader);\n        } else {\n            return toString(new BufferedReader(reader));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "toString", "code": "    @Converter\n    public static String toString(BufferedReader reader) throws IOException {\n        if (reader == null) {\n            return null;\n        }\n        try {\n            CollectionStringBuffer builder = new CollectionStringBuffer(\"\\n\");\n            while (true) {\n                String line = reader.readLine();\n                if (line == null) {\n                    return builder.toString();\n                }\n                builder.append(line);\n            }\n        } finally {\n            try {\n                reader.close();\n            } catch (IOException e) {\n                LOG.warn(\"Failed to close stream: \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "TRY", "LOOP", "VAR_DECL", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [4, 8], [5, 9], [2, 10], [7, 11], [4, 12], [5, 13], [5, 14], [6, 15], [10, 16], [8, 17], [5, 18], [13, 19], [15, 20], [17, 21], [13, 22], [19, 23], [14, 24], [21, 25], [22, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 4], [9, 5], [10, 2], [11, 7], [12, 4], [13, 5], [14, 5], [15, 6], [16, 10], [17, 8], [18, 5], [19, 13], [20, 15], [21, 17], [22, 13], [23, 19], [24, 14], [25, 21], [26, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "toString", "code": "    @Converter\n    public static String toString(InputStream in) throws IOException {\n        return toString(toReader(in));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toInputStream", "code": "    @Converter\n    public static InputStream toInputStream(byte[] data) {\n        return new ByteArrayInputStream(data);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toObjectOutput", "code": "    @Converter\n    public static ObjectOutput toObjectOutput(OutputStream stream) throws IOException {\n        if (stream instanceof ObjectOutput) {\n            return (ObjectOutput) stream;\n        }\n        else {\n            return new ObjectOutputStream(stream);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "toObjectInput", "code": "    @Converter\n    public static ObjectInput toObjectInput(InputStream stream) throws IOException {\n        if (stream instanceof ObjectInput) {\n            return (ObjectInput) stream;\n        }\n        else {\n            return new ObjectInputStream(stream);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "IOConverter", "code": "    private IOConverter() {        ", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.7-1330", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/native2ascii/DefaultNative2Ascii.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii", "code": "public abstract class DefaultNative2Ascii implements Native2AsciiAdapter {\n\n    /** No-arg constructor. */\n    public DefaultNative2Ascii() {\n    }\n\n    /**\n     * Splits the task into setting up the command line switches\n     * @param args the native 2 ascii arguments.\n     * @param srcFile the source file.\n     * @param destFile the destination file.\n     * @return run if the conversion was successful.\n     * @throws BuildException if there is a problem.\n     * (delegated to {@link #setup setup}), adding the file names\n     * (delegated to {@link #addFiles addFiles}) and running the tool\n     * (delegated to {@link #run run}).\n     */\n    public final boolean convert(Native2Ascii args, File srcFile,\n                                 File destFile) throws BuildException {\n        Commandline cmd = new Commandline();\n        setup(cmd, args);\n        addFiles(cmd, args, srcFile, destFile);\n        return run(cmd, args);\n    }\n\n    /**\n     * Sets up the initial command line.\n     *\n     * <p>only the -encoding argument and nested arg elements get\n     * handled here.</p>\n     *\n     * @param cmd Command line to add to\n     * @param args provides the user-setting and access to Ant's\n     * logging system.\n     * @throws BuildException if there was a problem.\n     */\n    protected void setup(Commandline cmd, Native2Ascii args)\n        throws BuildException {\n        if (args.getEncoding() != null) {\n            cmd.createArgument().setValue(\"-encoding\");\n            cmd.createArgument().setValue(args.getEncoding());\n        }\n        cmd.addArguments(args.getCurrentArgs());\n    }\n\n    /**\n     * Adds source and dest files to the command line.\n     *\n     * <p>This implementation adds them without any leading\n     * qualifiers, source first.</p>\n     *\n     * @param cmd Command line to add to\n     * @param log provides access to Ant's logging system.\n     * @param src the source file\n     * @param dest the destination file\n     * @throws BuildException if there was a problem.\n     */\n    protected void addFiles(Commandline cmd, ProjectComponent log, File src,\n                            File dest) throws BuildException {\n        cmd.createArgument().setFile(src);\n        cmd.createArgument().setFile(dest);\n    }\n\n    /**\n     * Executes the command.\n     *\n     * @param cmd Command line to execute\n     * @param log provides access to Ant's logging system.\n     * @return whether execution was successful\n     * @throws BuildException if there was a problem.\n     */\n    protected abstract boolean run(Commandline cmd, ProjectComponent log)", "functions": [{"function_name": "convert", "code": "    public final boolean convert(Native2Ascii args, File srcFile,\n                                 File destFile) throws BuildException {\n        Commandline cmd = new Commandline();\n        setup(cmd, args);\n        addFiles(cmd, args, srcFile, destFile);\n        return run(cmd, args);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setup", "code": "    protected void setup(Commandline cmd, Native2Ascii args)\n        throws BuildException {\n        if (args.getEncoding() != null) {\n            cmd.createArgument().setValue(\"-encoding\");\n            cmd.createArgument().setValue(args.getEncoding());\n        }\n        cmd.addArguments(args.getCurrentArgs());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [5, 7], [5, 8], [1, 9], [1, 10], [9, 11], [10, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 5], [8, 5], [9, 1], [10, 1], [11, 9], [12, 10], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addFiles", "code": "    protected void addFiles(Commandline cmd, ProjectComponent log, File src,\n                            File dest) throws BuildException {\n        cmd.createArgument().setFile(src);\n        cmd.createArgument().setFile(dest);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "run", "code": "    protected abstract boolean run(Commandline cmd, ProjectComponent log)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DefaultNative2Ascii", "code": "    public DefaultNative2Ascii() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "log4j-1.2-5049", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/helpers/RelativeTimeDateFormat.java", "language": "java", "name": "org.apache.log4j.helpers.RelativeTimeDateFormat", "code": "public class RelativeTimeDateFormat extends DateFormat {\n  private static final long serialVersionUID = 7055751607085611984L;\n\n\n  protected final long startTime;\n\n  public\n  RelativeTimeDateFormat() {\n    this.startTime = System.currentTimeMillis();\n  }\n  \n  /**\n     Appends to <code>sbuf</code> the number of milliseconds elapsed\n     since the start of the application. \n     \n     @since 0.7.5\n  */\n  public\n  StringBuffer format(Date date, StringBuffer sbuf,\n\t\t      FieldPosition fieldPosition) {\n    //System.err.println(\":\"+ date.getTime() + \" - \" + startTime);\n    return sbuf.append((date.getTime() - startTime));\n  }\n\n  /**\n     This method does not do anything but return <code>null</code>.\n   */\n  public\n  Date parse(java.lang.String s, ParsePosition pos) {\n    return null;", "functions": [{"function_name": "format", "code": "  StringBuffer format(Date date, StringBuffer sbuf,\n\t\t      FieldPosition fieldPosition) {\n    //System.err.println(\":\"+ date.getTime() + \" - \" + startTime);\n    return sbuf.append((date.getTime() - startTime));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "parse", "code": "  Date parse(java.lang.String s, ParsePosition pos) {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RelativeTimeDateFormat", "code": "  RelativeTimeDateFormat() {\n    this.startTime = System.currentTimeMillis();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.5-6829", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/TransletOutput.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.TransletOutput", "code": "final class TransletOutput extends Instruction {\n\n    private Expression _filename;\n    private boolean _append;\n\n    /**\n     * Displays the contents of this <xsltc:output> element.\n     */\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"TransletOutput: \" + _filename);\n    }\n\t\t\n    /**\n     * Parse the contents of this <xsltc:output> element. The only attribute\n     * we recognise is the 'file' attribute that contains teh output filename.\n     */\n    public void parseContents(Parser parser) {\n\tString filename = getAttribute(\"file\");\n        \n        String append   = getAttribute(\"append\");\n\n\tif ((filename == null) || (filename.equals(EMPTYSTRING))) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"file\");\n\t}\n\n\t_filename = AttributeValue.create(this, filename, parser);\n        \n        if (append != null && (append.toLowerCase().equals(\"yes\") ||\n            append.toLowerCase().equals(\"true\"))) {\n          _append = true;     \n        }\n        else\n          _append = false;\n          \n\tparseChildren(parser);\n    }\n    \n    /**\n     * Type checks the 'file' attribute (must be able to convert it to a str).\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type type = _filename.typeCheck(stable);\n\tif (type instanceof StringType == false) {\n\t    _filename = new CastExpr(_filename, Type.String);\n\t}\n\ttypeCheckContents(stable);\n\treturn Type.Void;\n    }\n    \n    /**\n     * Compile code that opens the give file for output, dumps the contents of\n     * the element to the file, then closes the file.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadHandler());\n\t\n\tfinal int open =  cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t   \"openOutputHandler\",\n                                           \"(\" + STRING_SIG + \"Z)\" +\n\t\t\t\t\t   TRANSLET_OUTPUT_SIG);\n\n\tfinal int close =  cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t    \"closeOutputHandler\",\n\t\t\t\t\t    \"(\"+TRANSLET_OUTPUT_SIG+\")V\");\n\n\til.append(classGen.loadTranslet());\n\t_filename.translate(classGen, methodGen);\n        il.append(new PUSH(cpg, _append));\n\til.append(new INVOKEVIRTUAL(open));\n\n\til.append(methodGen.storeHandler());\n\t\n\ttranslateContents(classGen, methodGen);\n\n\til.append(classGen.loadTranslet());\n\til.append(methodGen.loadHandler());\n\til.append(new INVOKEVIRTUAL(close));\n\n\til.append(methodGen.storeHandler());", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"TransletOutput: \" + _filename);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tString filename = getAttribute(\"file\");\n        \n        String append   = getAttribute(\"append\");\n\n\tif ((filename == null) || (filename.equals(EMPTYSTRING))) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"file\");\n\t}\n\n\t_filename = AttributeValue.create(this, filename, parser);\n        \n        if (append != null && (append.toLowerCase().equals(\"yes\") ||\n            append.toLowerCase().equals(\"true\"))) {\n          _append = true;     \n        }\n        else\n          _append = false;\n          \n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [1, 10], [7, 11], [7, 12], [8, 13], [9, 14], [9, 15], [3, 16], [4, 17], [10, 18], [1, 19], [11, 20], [11, 21], [12, 22], [2, 23], [15, 24], [16, 25], [17, 26], [19, 27], [20, 28], [21, 29], [23, 30], [28, 31], [29, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 1], [11, 7], [12, 7], [13, 8], [14, 9], [15, 9], [16, 3], [17, 4], [18, 10], [19, 1], [20, 11], [21, 11], [22, 12], [23, 2], [24, 15], [25, 16], [26, 17], [27, 19], [28, 20], [29, 21], [30, 23], [31, 28], [32, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type type = _filename.typeCheck(stable);\n\tif (type instanceof StringType == false) {\n\t    _filename = new CastExpr(_filename, Type.String);\n\t}\n\ttypeCheckContents(stable);\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [6, 8], [3, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 6], [9, 3], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadHandler());\n\t\n\tfinal int open =  cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t   \"openOutputHandler\",\n                                           \"(\" + STRING_SIG + \"Z)\" +\n\t\t\t\t\t   TRANSLET_OUTPUT_SIG);\n\n\tfinal int close =  cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t    \"closeOutputHandler\",\n\t\t\t\t\t    \"(\"+TRANSLET_OUTPUT_SIG+\")V\");\n\n\til.append(classGen.loadTranslet());\n\t_filename.translate(classGen, methodGen);\n        il.append(new PUSH(cpg, _append));\n\til.append(new INVOKEVIRTUAL(open));\n\n\til.append(methodGen.storeHandler());\n\t\n\ttranslateContents(classGen, methodGen);\n\n\til.append(classGen.loadTranslet());\n\til.append(methodGen.loadHandler());\n\til.append(new INVOKEVIRTUAL(close));\n\n\til.append(methodGen.storeHandler());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [7, 18], [8, 19], [9, 20], [10, 21], [12, 22], [13, 23], [14, 24], [16, 25], [1, 26], [2, 27], [17, 28], [3, 29], [4, 30], [26, 31], [26, 32], [27, 33], [27, 34], [31, 35], [31, 36], [33, 37], [36, 38], [37, 39], [37, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 7], [19, 8], [20, 9], [21, 10], [22, 12], [23, 13], [24, 14], [25, 16], [26, 1], [27, 2], [28, 17], [29, 3], [30, 4], [31, 26], [32, 26], [33, 27], [34, 27], [35, 31], [36, 31], [37, 33], [38, 36], [39, 37], [40, 37], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}], "label": 0}
{"sample_id": "jedit-4.2-4265", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "gnu/regexp/RESyntax.java", "language": "java", "name": "gnu.regexp.RESyntax", "code": "public final class RESyntax implements Serializable {\n    static final String DEFAULT_LINE_SEPARATOR = System.getProperty(\"line.separator\");\n\n    private static final String SYNTAX_IS_FINAL = RE.getLocalizedMessage(\"syntax.final\");\n\n    private BitSet bits;\n\n    // true for the constant defined syntaxes\n    private boolean isFinal = false;\n\n    private String lineSeparator = DEFAULT_LINE_SEPARATOR;\n\n  // Values for constants are bit indexes\n\n  /**\n   * Syntax bit. Backslash is an escape character in lists.\n   */\n  public static final int RE_BACKSLASH_ESCAPE_IN_LISTS =  0;\n\n  /**\n   * Syntax bit. Use \\? instead of ? and \\+ instead of +.\n   */\n  public static final int RE_BK_PLUS_QM                =  1;\n\n  /**\n   * Syntax bit. POSIX character classes ([:...:]) in lists are allowed.\n   */\n  public static final int RE_CHAR_CLASSES              =  2;\n\n  /**\n   * Syntax bit. ^ and $ are special everywhere.\n   * <B>Not implemented.</B>\n   */\n  public static final int RE_CONTEXT_INDEP_ANCHORS     =  3; \n\n  /**\n   * Syntax bit. Repetition operators are only special in valid positions.\n   * <B>Not implemented.</B>\n   */\n  public static final int RE_CONTEXT_INDEP_OPS         =  4; \n\n  /**\n   * Syntax bit. Repetition and alternation operators are invalid\n   * at start and end of pattern and other places. \n   * <B>Not implemented</B>.\n   */\n  public static final int RE_CONTEXT_INVALID_OPS       =  5; \n\n  /**\n   * Syntax bit. Match-any-character operator (.) matches a newline.\n   */\n  public static final int RE_DOT_NEWLINE               =  6;\n\n  /**\n   * Syntax bit. Match-any-character operator (.) does not match a null.\n   */\n  public static final int RE_DOT_NOT_NULL              =  7;\n\n  /**\n   * Syntax bit. Intervals ({x}, {x,}, {x,y}) are allowed.\n   */\n  public static final int RE_INTERVALS                 =  8;\n\n  /**\n   * Syntax bit. No alternation (|), match one-or-more (+), or \n   * match zero-or-one (?) operators.\n   */\n  public static final int RE_LIMITED_OPS               =  9;\n\n  /**\n   * Syntax bit. Newline is an alternation operator.\n   */\n  public static final int RE_NEWLINE_ALT               = 10; // impl.\n\n  /**\n   * Syntax bit. Intervals use { } instead of \\{ \\}\n   */\n  public static final int RE_NO_BK_BRACES              = 11; \n\n  /**\n   * Syntax bit. Grouping uses ( ) instead of \\( \\).\n   */\n  public static final int RE_NO_BK_PARENS              = 12;\n\n  /**\n   * Syntax bit. Backreferences not allowed.\n   */\n  public static final int RE_NO_BK_REFS                = 13;\n\n  /**\n   * Syntax bit. Alternation uses | instead of \\|\n   */\n  public static final int RE_NO_BK_VBAR                = 14;\n\n  /**\n   * Syntax bit. <B>Not implemented</B>.\n   */\n  public static final int RE_NO_EMPTY_RANGES           = 15;\n\n  /**\n   * Syntax bit. An unmatched right parenthesis (')' or '\\)', depending\n   * on RE_NO_BK_PARENS) will throw an exception when compiling.\n   */\n  public static final int RE_UNMATCHED_RIGHT_PAREN_ORD = 16;\n\n  /**\n   * Syntax bit. <B>Not implemented.</B>\n   */\n  public static final int RE_HAT_LISTS_NOT_NEWLINE     = 17;\n\n  /**\n   * Syntax bit.  Stingy matching is allowed (+?, *?, ??, {x,y}?).\n   */\n  public static final int RE_STINGY_OPS                = 18;\n\n  /**\n   * Syntax bit. Allow character class escapes (\\d, \\D, \\s, \\S, \\w, \\W).\n   */\n  public static final int RE_CHAR_CLASS_ESCAPES        = 19;\n\n  /**\n   * Syntax bit. Allow use of (?:xxx) grouping (subexpression is not saved).\n   */\n  public static final int RE_PURE_GROUPING             = 20;\n\n  /**\n   * Syntax bit. Allow use of (?=xxx) and (?!xxx) apply the subexpression\n   * to the text following the current position without consuming that text.\n   */\n  public static final int RE_LOOKAHEAD                 = 21;\n\n  /**\n   * Syntax bit. Allow beginning- and end-of-string anchors (\\A, \\Z).\n   */\n  public static final int RE_STRING_ANCHORS            = 22;\n\n  /**\n   * Syntax bit. Allow embedded comments, (?#comment), as in Perl5.\n   */\n  public static final int RE_COMMENTS                  = 23;\n\n  /**\n   * Syntax bit. Allow character class escapes within lists, as in Perl5.\n   */\n  public static final int RE_CHAR_CLASS_ESC_IN_LISTS   = 24;\n\n  private static final int BIT_TOTAL                   = 25;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the awk utility.\n   */\n  public static final RESyntax RE_SYNTAX_AWK;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the ed utility.\n   */\n  public static final RESyntax RE_SYNTAX_ED;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the egrep utility.\n   */\n  public static final RESyntax RE_SYNTAX_EGREP;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the GNU Emacs editor.\n   */\n  public static final RESyntax RE_SYNTAX_EMACS;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the grep utility.\n   */\n  public static final RESyntax RE_SYNTAX_GREP;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the POSIX awk specification.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_AWK;\n\n  /**\n   * Predefined syntax.\n   * Emulates POSIX basic regular expression support.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_BASIC;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the POSIX egrep specification.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_EGREP;\n\n  /**\n   * Predefined syntax.\n   * Emulates POSIX extended regular expression support.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_EXTENDED;\n\n  /**\n   * Predefined syntax.\n   * Emulates POSIX basic minimal regular expressions.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_MINIMAL_BASIC;\n\n  /**\n   * Predefined syntax.\n   * Emulates POSIX extended minimal regular expressions.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_MINIMAL_EXTENDED;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the sed utility.\n   */\n  public static final RESyntax RE_SYNTAX_SED;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in Larry Wall's perl, version 4,\n   */\n  public static final RESyntax RE_SYNTAX_PERL4;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in Larry Wall's perl, version 4,\n   * using single line mode (/s modifier).\n   */\n  public static final RESyntax RE_SYNTAX_PERL4_S; // single line mode (/s)\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in Larry Wall's perl, version 5.\n   */\n  public static final RESyntax RE_SYNTAX_PERL5;  \n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in Larry Wall's perl, version 5,\n   * using single line mode (/s modifier).\n   */\n  public static final RESyntax RE_SYNTAX_PERL5_S;\n\n    /**\n     * Predefined syntax.\n     * Emulates regular expression support in Java 1.4's java.util.regex\n     * package.\n     */\n    public static final RESyntax RE_SYNTAX_JAVA_1_4;\n\n  static {\n      // Define syntaxes\n      \n      RE_SYNTAX_EMACS = new RESyntax().makeFinal();\n      \n      RESyntax RE_SYNTAX_POSIX_COMMON = new RESyntax()\n\t  .set(RE_CHAR_CLASSES)\n\t  .set(RE_DOT_NEWLINE)\n\t  .set(RE_DOT_NOT_NULL)\n\t  .set(RE_INTERVALS)\n\t  .set(RE_NO_EMPTY_RANGES)\n\t  .makeFinal();\n      \n      RE_SYNTAX_POSIX_BASIC = new RESyntax(RE_SYNTAX_POSIX_COMMON)\n\t  .set(RE_BK_PLUS_QM)\n\t  .makeFinal();\n      \n      RE_SYNTAX_POSIX_EXTENDED = new RESyntax(RE_SYNTAX_POSIX_COMMON)\n\t  .set(RE_CONTEXT_INDEP_ANCHORS)\n\t  .set(RE_CONTEXT_INDEP_OPS)\n\t  .set(RE_NO_BK_BRACES)\n\t  .set(RE_NO_BK_PARENS)\n\t  .set(RE_NO_BK_VBAR)\n\t  .set(RE_UNMATCHED_RIGHT_PAREN_ORD)\n\t  .makeFinal();\n\n      RE_SYNTAX_AWK = new RESyntax()\n\t  .set(RE_BACKSLASH_ESCAPE_IN_LISTS)\n\t  .set(RE_DOT_NOT_NULL)\n\t  .set(RE_NO_BK_PARENS)\n\t  .set(RE_NO_BK_REFS)\n\t  .set(RE_NO_BK_VBAR)\n\t  .set(RE_NO_EMPTY_RANGES)\n\t  .set(RE_UNMATCHED_RIGHT_PAREN_ORD)\n\t  .makeFinal();\n      \n      RE_SYNTAX_POSIX_AWK = new RESyntax(RE_SYNTAX_POSIX_EXTENDED)\n\t  .set(RE_BACKSLASH_ESCAPE_IN_LISTS)\n\t  .makeFinal();\n      \n      RE_SYNTAX_GREP = new RESyntax()\n\t  .set(RE_BK_PLUS_QM)\n\t  .set(RE_CHAR_CLASSES)\n\t  .set(RE_HAT_LISTS_NOT_NEWLINE)\n\t  .set(RE_INTERVALS)\n\t  .set(RE_NEWLINE_ALT)\n\t  .makeFinal();\n      \n      RE_SYNTAX_EGREP = new RESyntax()\n\t  .set(RE_CHAR_CLASSES)\n\t  .set(RE_CONTEXT_INDEP_ANCHORS)\n\t  .set(RE_CONTEXT_INDEP_OPS)\n\t  .set(RE_HAT_LISTS_NOT_NEWLINE)\n\t  .set(RE_NEWLINE_ALT)\n\t  .set(RE_NO_BK_PARENS)\n\t  .set(RE_NO_BK_VBAR)\n\t  .makeFinal();\n    \n      RE_SYNTAX_POSIX_EGREP = new RESyntax(RE_SYNTAX_EGREP)\n\t  .set(RE_INTERVALS)\n\t  .set(RE_NO_BK_BRACES)\n\t  .makeFinal();\n    \n      /* P1003.2/D11.2, section 4.20.7.1, lines 5078ff.  */\n    \n      RE_SYNTAX_ED = new RESyntax(RE_SYNTAX_POSIX_BASIC)\n\t  .makeFinal();\n    \n      RE_SYNTAX_SED = new RESyntax(RE_SYNTAX_POSIX_BASIC)\n\t  .makeFinal();\n      \n      RE_SYNTAX_POSIX_MINIMAL_BASIC = new RESyntax(RE_SYNTAX_POSIX_COMMON)\n\t  .set(RE_LIMITED_OPS)\n\t  .makeFinal();\n      \n      /* Differs from RE_SYNTAX_POSIX_EXTENDED in that RE_CONTEXT_INVALID_OPS\n\t replaces RE_CONTEXT_INDEP_OPS and RE_NO_BK_REFS is added. */\n      \n      RE_SYNTAX_POSIX_MINIMAL_EXTENDED = new RESyntax(RE_SYNTAX_POSIX_COMMON)\n\t  .set(RE_CONTEXT_INDEP_ANCHORS)\n\t  .set(RE_CONTEXT_INVALID_OPS)\n\t  .set(RE_NO_BK_BRACES)\n\t  .set(RE_NO_BK_PARENS)\n\t  .set(RE_NO_BK_REFS)\n\t  .set(RE_NO_BK_VBAR)\n\t  .set(RE_UNMATCHED_RIGHT_PAREN_ORD)\n\t  .makeFinal();\n      \n      /* There is no official Perl spec, but here's a \"best guess\" */\n      \n      RE_SYNTAX_PERL4 = new RESyntax()\n\t  .set(RE_BACKSLASH_ESCAPE_IN_LISTS)\n\t  .set(RE_CONTEXT_INDEP_ANCHORS)\n\t  .set(RE_CONTEXT_INDEP_OPS)          // except for '{', apparently\n\t  .set(RE_INTERVALS)\n\t  .set(RE_NO_BK_BRACES)\n\t  .set(RE_NO_BK_PARENS)\n\t  .set(RE_NO_BK_VBAR)\n\t  .set(RE_NO_EMPTY_RANGES)\n\t  .set(RE_CHAR_CLASS_ESCAPES)    // \\d,\\D,\\w,\\W,\\s,\\S\n\t  .makeFinal();\n      \n      RE_SYNTAX_PERL4_S = new RESyntax(RE_SYNTAX_PERL4)\n\t  .set(RE_DOT_NEWLINE)\n\t  .makeFinal();\n      \n      RE_SYNTAX_PERL5 = new RESyntax(RE_SYNTAX_PERL4)\n\t  .set(RE_PURE_GROUPING)          // (?:)\n\t  .set(RE_STINGY_OPS)             // *?,??,+?,{}?\n\t  .set(RE_LOOKAHEAD)              // (?=)(?!)\n\t  .set(RE_STRING_ANCHORS)         // \\A,\\Z\n\t  .set(RE_CHAR_CLASS_ESC_IN_LISTS)// \\d,\\D,\\w,\\W,\\s,\\S within []\n\t  .set(RE_COMMENTS)              // (?#)\n\t  .makeFinal();\n      \n      RE_SYNTAX_PERL5_S = new RESyntax(RE_SYNTAX_PERL5)\n\t  .set(RE_DOT_NEWLINE)\n\t  .makeFinal();\n\n      RE_SYNTAX_JAVA_1_4 = new RESyntax(RE_SYNTAX_PERL5)\n\t  // XXX\n\t  .makeFinal();\n  }\n\n  /**\n   * Construct a new syntax object with all bits turned off.\n   * This is equivalent to RE_SYNTAX_EMACS.\n   */\n  public RESyntax() {\n    bits = new BitSet(BIT_TOTAL);\n  }\n\n    /**\n     * Called internally when constructing predefined syntaxes\n     * so their interpretation cannot vary.  Conceivably useful\n     * for your syntaxes as well.  Causes IllegalAccessError to\n     * be thrown if any attempt to modify the syntax is made.\n     *\n     * @return this object for convenient chaining\n     */\n    public RESyntax makeFinal() {\n\tisFinal = true;\n\treturn this;\n    }\n\n  /**\n   * Construct a new syntax object with all bits set the same \n   * as the other syntax.\n   */\n  public RESyntax(RESyntax other) {\n    bits = (BitSet) other.bits.clone();\n  }\n\n  /**\n   * Check if a given bit is set in this syntax.\n   */\n  public boolean get(int index) {\n    return bits.get(index);\n  }\n\n  /**\n   * Set a given bit in this syntax. \n   *\n   * @param index the constant (RESyntax.RE_xxx) bit to set.\n   * @return a reference to this object for easy chaining.\n   */\n  public RESyntax set(int index) {\n      if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n    bits.set(index);\n    return this;\n  }\n\n  /**\n   * Clear a given bit in this syntax. \n   *\n   * @param index the constant (RESyntax.RE_xxx) bit to clear.\n   * @return a reference to this object for easy chaining.\n   */\n  public RESyntax clear(int index) {\n      if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n      bits.clear(index);\n      return this;\n  }\n\n    /**\n     * Changes the line separator string for regular expressions\n     * created using this RESyntax.  The default separator is the\n     * value returned by the system property \"line.separator\", which\n     * should be correct when reading platform-specific files from a\n     * filesystem.  However, many programs may collect input from\n     * sources where the line separator is differently specified (for\n     * example, in the applet environment, the text box widget\n     * interprets line breaks as single-character newlines,\n     * regardless of the host platform.\n     *\n     * Note that setting the line separator to a character or\n     * characters that have specific meaning within the current syntax\n     * can cause unexpected chronosynclastic infundibula.\n     *\n     * @return this object for convenient chaining \n     */\n    public RESyntax setLineSeparator(String aSeparator) {\n\tif (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n\tlineSeparator = aSeparator;\n\treturn this;\n    }\n\n    /**\n     * Returns the currently active line separator string.  The default\n     * is the platform-dependent system property \"line.separator\".\n     */\n    public String getLineSeparator() {\n\treturn lineSeparator;", "functions": [{"function_name": "makeFinal", "code": "    public RESyntax makeFinal() {\n\tisFinal = true;\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "get", "code": "  public boolean get(int index) {\n    return bits.get(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "set", "code": "  public RESyntax set(int index) {\n      if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n    bits.set(index);\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "clear", "code": "  public RESyntax clear(int index) {\n      if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n      bits.clear(index);\n      return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setLineSeparator", "code": "    public RESyntax setLineSeparator(String aSeparator) {\n\tif (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n\tlineSeparator = aSeparator;\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getLineSeparator", "code": "    public String getLineSeparator() {\n\treturn lineSeparator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RESyntax", "code": "  public RESyntax() {\n    bits = new BitSet(BIT_TOTAL);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RESyntax", "code": "  public RESyntax(RESyntax other) {\n    bits = (BitSet) other.bits.clone();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "poi-2.0-5408", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/poifs/property/DocumentProperty.java", "language": "java", "name": "org.apache.poi.poifs.property.DocumentProperty", "code": "public class DocumentProperty\n    extends Property\n{\n\n    private POIFSDocument _document;\n\n    /**\n     * Constructor\n     *\n     * @param name POIFSDocument name\n     * @param size POIFSDocument size\n     */\n\n    public DocumentProperty(final String name, final int size)\n    {\n        super();\n        _document = null;\n        setName(name);\n        setSize(size);\n        setPropertyType(PropertyConstants.DOCUMENT_TYPE);\n    }\n\n    /**\n     * reader constructor\n     *\n     * @param index index number\n     * @param array byte data\n     * @param offset offset into byte data\n     */\n\n    protected DocumentProperty(final int index, final byte [] array,\n                               final int offset)\n    {\n        super(index, array, offset);\n        _document = null;\n    }\n\n    /**\n     * set the POIFSDocument\n     *\n     * @param doc the associated POIFSDocument\n     */\n\n    public void setDocument(POIFSDocument doc)\n    {\n        _document = doc;\n    }\n\n    /**\n     * get the POIFSDocument\n     *\n     * @return the associated document\n     */\n\n    public POIFSDocument getDocument()\n    {\n        return _document;\n    }\n\n    /* ********** START extension of Property ********** */\n\n    /**\n     * give method more visibility\n     *\n     * @return true if this property should use small blocks\n     */\n\n    public boolean shouldUseSmallBlocks()\n    {\n        return super.shouldUseSmallBlocks();\n    }\n\n    /**\n     * @return true if a directory type Property\n     */\n\n    public boolean isDirectory()\n    {\n        return false;\n    }\n\n    /**\n     * Perform whatever activities need to be performed prior to\n     * writing\n     */\n\n    protected void preWrite()", "functions": [{"function_name": "setDocument", "code": "    public void setDocument(POIFSDocument doc)\n    {\n        _document = doc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocument", "code": "    public POIFSDocument getDocument()\n    {\n        return _document;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "shouldUseSmallBlocks", "code": "    public boolean shouldUseSmallBlocks()\n    {\n        return super.shouldUseSmallBlocks();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isDirectory", "code": "    public boolean isDirectory()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "preWrite", "code": "    protected void preWrite()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DocumentProperty", "code": "    public DocumentProperty(final String name, final int size)\n    {\n        super();\n        _document = null;\n        setName(name);\n        setSize(size);\n        setPropertyType(PropertyConstants.DOCUMENT_TYPE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "DocumentProperty", "code": "    protected DocumentProperty(final int index, final byte [] array,\n                               final int offset)\n    {\n        super(index, array, offset);\n        _document = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "camel-1.0-1424", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/spring/RouteBuilderFinder.java", "language": "java", "name": "org.apache.camel.spring.RouteBuilderFinder", "code": "public class RouteBuilderFinder implements ApplicationContextAware {\n    private String[] packages = {};\n    private ApplicationContext applicationContext;\n    private ResolverUtil resolver = new ResolverUtil();\n\n    public RouteBuilderFinder(ApplicationContext applicationContext, String[] packages) {\n        this.applicationContext = applicationContext;\n        this.packages = packages;\n    }\n\n    public RouteBuilderFinder(CamelContextFactoryBean factoryBean) {\n        this.applicationContext = factoryBean.getApplicationContext();\n        this.packages = factoryBean.getPackages();\n    }\n\n    public String[] getPackages() {\n        return packages;\n    }\n\n    public void setPackages(String[] packages) {\n        this.packages = packages;\n    }\n\n    public ApplicationContext getApplicationContext() {\n        return applicationContext;\n    }\n\n    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n        this.applicationContext = applicationContext;\n    }\n\n    /**\n     * Appends all the {@link RouteBuilder} instances that can be found on the classpath\n     */\n    public void appendBuilders(List<RouteBuilder> list) throws IllegalAccessException, InstantiationException {\n        resolver.findImplementations(RouteBuilder.class, packages);\n        Set<Class> classes = resolver.getClasses();\n        for (Class aClass : classes) {\n            if (shouldIgnoreBean(aClass)) {\n                continue;\n            }\n            if (isValidClass(aClass)) {\n                list.add(instantiateBuilder(aClass));\n            }\n        }\n    }\n\n    public void destroy() throws Exception {\n    }\n\n    /**\n     * Lets ignore beans that are not explicitly configured in the spring.xml\n     */\n    protected boolean shouldIgnoreBean(Class type) {\n        Map beans = applicationContext.getBeansOfType(type, true, true);\n        if (beans == null || beans.isEmpty()) {\n            return false;\n        }\n        return true;\n    }\n\n    /**\n     * Returns true if the object is non-abstract and supports a zero argument constructor\n     */\n    protected boolean isValidClass(Class type) {\n        if (!Modifier.isAbstract(type.getModifiers()) && !type.isInterface()) {\n            Constructor[] constructors = type.getDeclaredConstructors();\n            for (Constructor constructor : constructors) {\n                Class[] classes = constructor.getParameterTypes();\n                if (classes.length == 0) {\n                    return true;\n                }\n            }\n        }\n        return false;\n    }\n\n    protected RouteBuilder instantiateBuilder(Class type) throws IllegalAccessException, InstantiationException {\n        return (RouteBuilder) type.newInstance();", "functions": [{"function_name": "getPackages", "code": "    public String[] getPackages() {\n        return packages;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPackages", "code": "    public void setPackages(String[] packages) {\n        this.packages = packages;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getApplicationContext", "code": "    public ApplicationContext getApplicationContext() {\n        return applicationContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setApplicationContext", "code": "    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n        this.applicationContext = applicationContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "appendBuilders", "code": "    public void appendBuilders(List<RouteBuilder> list) throws IllegalAccessException, InstantiationException {\n        resolver.findImplementations(RouteBuilder.class, packages);\n        Set<Class> classes = resolver.getClasses();\n        for (Class aClass : classes) {\n            if (shouldIgnoreBean(aClass)) {\n                continue;\n            }\n            if (isValidClass(aClass)) {\n                list.add(instantiateBuilder(aClass));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "IF", "IF", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [5, 8], [6, 9], [6, 10], [5, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 5], [9, 6], [10, 6], [11, 5], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "destroy", "code": "    public void destroy() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "shouldIgnoreBean", "code": "    protected boolean shouldIgnoreBean(Class type) {\n        Map beans = applicationContext.getBeansOfType(type, true, true);\n        if (beans == null || beans.isEmpty()) {\n            return false;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [6, 9], [3, 10], [7, 11], [9, 12], [10, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 6], [10, 3], [11, 7], [12, 9], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isValidClass", "code": "    protected boolean isValidClass(Class type) {\n        if (!Modifier.isAbstract(type.getModifiers()) && !type.isInterface()) {\n            Constructor[] constructors = type.getDeclaredConstructors();\n            for (Constructor constructor : constructors) {\n                Class[] classes = constructor.getParameterTypes();\n                if (classes.length == 0) {\n                    return true;\n                }\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [9, 10], [6, 11], [6, 12], [7, 13], [11, 14], [11, 15], [14, 16], [12, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 9], [11, 6], [12, 6], [13, 7], [14, 11], [15, 11], [16, 14], [17, 12], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "instantiateBuilder", "code": "    protected RouteBuilder instantiateBuilder(Class type) throws IllegalAccessException, InstantiationException {\n        return (RouteBuilder) type.newInstance();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RouteBuilderFinder", "code": "    public RouteBuilderFinder(ApplicationContext applicationContext, String[] packages) {\n        this.applicationContext = applicationContext;\n        this.packages = packages;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RouteBuilderFinder", "code": "    public RouteBuilderFinder(CamelContextFactoryBean factoryBean) {\n        this.applicationContext = factoryBean.getApplicationContext();\n        this.packages = factoryBean.getPackages();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "poi-2.5-5770", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/EndSubRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.EndSubRecord", "code": "public class EndSubRecord\n    extends SubRecord\n{\n    public final static short      sid                             = 0x00;\n\n\n    public EndSubRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a End record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x00 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public EndSubRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a End record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x00 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public EndSubRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a End record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[ftEnd]\\n\");\n\n        buffer.append(\"[/ftEnd]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4 ;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        EndSubRecord rec = new EndSubRecord();\n    \n        return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a End record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[ftEnd]\\n\");\n\n        buffer.append(\"[/ftEnd]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [4, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 4], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [6, 8], [7, 9], [2, 10], [6, 11], [8, 12], [9, 13], [11, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 6], [9, 7], [10, 2], [11, 6], [12, 8], [13, 9], [14, 11], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4 ;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        EndSubRecord rec = new EndSubRecord();\n    \n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "EndSubRecord", "code": "    public EndSubRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "EndSubRecord", "code": "    public EndSubRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "EndSubRecord", "code": "    public EndSubRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.6-592", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/cvslib/CVSEntry.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.cvslib.CVSEntry", "code": "class CVSEntry {\n    private Date m_date;\n    private String m_author;\n    private final String m_comment;\n    private final Vector m_files = new Vector();\n\n    public CVSEntry(Date date, String author, String comment) {\n        m_date = date;\n        m_author = author;\n        m_comment = comment;\n    }\n\n    public void addFile(String file, String revision) {\n        m_files.addElement(new RCSFile(file, revision));\n    }\n\n    public void addFile(String file, String revision, String previousRevision) {\n        m_files.addElement(new RCSFile(file, revision, previousRevision));\n    }\n\n    Date getDate() {\n        return m_date;\n    }\n\n    void setAuthor(final String author) {\n        m_author = author;\n    }\n\n    String getAuthor() {\n        return m_author;\n    }\n\n    String getComment() {\n        return m_comment;\n    }\n\n    Vector getFiles() {\n        return m_files;\n    }\n\n    public String toString() {\n        return getAuthor() + \"\\n\" + getDate() + \"\\n\" + getFiles() + \"\\n\"\n            + getComment();", "functions": [{"function_name": "addFile", "code": "    public void addFile(String file, String revision) {\n        m_files.addElement(new RCSFile(file, revision));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addFile", "code": "    public void addFile(String file, String revision, String previousRevision) {\n        m_files.addElement(new RCSFile(file, revision, previousRevision));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDate", "code": "    Date getDate() {\n        return m_date;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAuthor", "code": "    void setAuthor(final String author) {\n        m_author = author;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAuthor", "code": "    String getAuthor() {\n        return m_author;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getComment", "code": "    String getComment() {\n        return m_comment;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFiles", "code": "    Vector getFiles() {\n        return m_files;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n        return getAuthor() + \"\\n\" + getDate() + \"\\n\" + getFiles() + \"\\n\"\n            + getComment();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "CVSEntry", "code": "    public CVSEntry(Date date, String author, String comment) {\n        m_date = date;\n        m_author = author;\n        m_comment = comment;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-2.0-5486", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/CalcModeRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.CalcModeRecord", "code": "public class CalcModeRecord\n    extends Record\n{\n    public final static short sid                     = 0xD;\n\n    /**\n     * manually calculate formulas (0)\n     */\n\n    public final static short MANUAL                  = 0;\n\n    /**\n     * automatically calculate formulas (1)\n     */\n\n    public final static short AUTOMATIC               = 1;\n\n    /**\n     * automatically calculate formulas except for tables (-1)\n     */\n\n    public final static short AUTOMATIC_EXCEPT_TABLES = -1;\n    private short             field_1_calcmode;\n\n    public CalcModeRecord()\n    {\n    }\n\n    /**\n     * Constructs a CalcModeRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0xD or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public CalcModeRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a CalcModeRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0xD or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's start data\n     */\n\n    public CalcModeRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An Calc Mode RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_calcmode = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set the calc mode flag for formulas\n     *\n     * @see #MANUAL\n     * @see #AUTOMATIC\n     * @see #AUTOMATIC_EXCEPT_TABLES\n     *\n     * @param calcmode one of the three flags above\n     */\n\n    public void setCalcMode(short calcmode)\n    {\n        field_1_calcmode = calcmode;\n    }\n\n    /**\n     * get the calc mode flag for formulas\n     *\n     * @see #MANUAL\n     * @see #AUTOMATIC\n     * @see #AUTOMATIC_EXCEPT_TABLES\n     *\n     * @return calcmode one of the three flags above\n     */\n\n    public short getCalcMode()\n    {\n        return field_1_calcmode;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[CALCMODE]\\n\");\n        buffer.append(\"    .calcmode       = \")\n            .append(Integer.toHexString(getCalcMode())).append(\"\\n\");\n        buffer.append(\"[/CALCMODE]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, getCalcMode());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      CalcModeRecord rec = new CalcModeRecord();\n      rec.field_1_calcmode = field_1_calcmode;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An Calc Mode RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_calcmode = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setCalcMode", "code": "    public void setCalcMode(short calcmode)\n    {\n        field_1_calcmode = calcmode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCalcMode", "code": "    public short getCalcMode()\n    {\n        return field_1_calcmode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[CALCMODE]\\n\");\n        buffer.append(\"    .calcmode       = \")\n            .append(Integer.toHexString(getCalcMode())).append(\"\\n\");\n        buffer.append(\"[/CALCMODE]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, getCalcMode());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [6, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 6], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      CalcModeRecord rec = new CalcModeRecord();\n      rec.field_1_calcmode = field_1_calcmode;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CalcModeRecord", "code": "    public CalcModeRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "CalcModeRecord", "code": "    public CalcModeRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "CalcModeRecord", "code": "    public CalcModeRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-2681", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/loadbalancer/LoadBalancerSupport.java", "language": "java", "name": "org.apache.camel.processor.loadbalancer.LoadBalancerSupport", "code": "public abstract class LoadBalancerSupport extends ServiceSupport implements LoadBalancer {\n    private List<Processor> processors = new CopyOnWriteArrayList<Processor>();\n\n    public void addProcessor(Processor processor) {\n        processors.add(processor);\n    }\n\n    public void removeProcessor(Processor processor) {\n        processors.remove(processor);\n    }\n\n    public List<Processor> getProcessors() {\n        return processors;\n    }\n    \n    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processors);        \n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processors);       ", "functions": [{"function_name": "addProcessor", "code": "    public void addProcessor(Processor processor) {\n        processors.add(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeProcessor", "code": "    public void removeProcessor(Processor processor) {\n        processors.remove(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProcessors", "code": "    public List<Processor> getProcessors() {\n        return processors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processors);        ", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processors);       ", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.1-4089", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/JCheckBoxList.java", "language": "java", "name": "org.gjt.sp.jedit.gui.JCheckBoxList", "code": "public class JCheckBoxList extends JTable\n{\n\t//{{{ JCheckBoxList constructor\n\t/**\n\t * Creates a checkbox list with the given list of objects. The elements\n\t * of this array can either be Entry instances, or other objects (if the\n\t * latter, they will default to being unchecked).\n\t */\n\tpublic JCheckBoxList(Object[] items)\n\t{\n\t\tsetModel(items);\n\t} //}}}\n\n\t//{{{ JCheckBoxList constructor\n\t/**\n\t * Creates a checkbox list with the given list of objects. The elements\n\t * of this vector can either be Entry instances, or other objects (if the\n\t * latter, they will default to being unchecked).\n\t */\n\tpublic JCheckBoxList(Vector items)\n\t{\n\t\tsetModel(items);\n\t} //}}}\n\n\t//{{{ setModel() method\n\t/**\n\t * Sets the model to the given list of objects. The elements of this\n\t * array can either be Entry instances, or other objects (if the\n\t * latter, they will default to being unchecked).\n\t */\n\tpublic void setModel(Object[] items)\n\t{\n\t\tsetModel(new CheckBoxListModel(items));\n\t\tinit();\n\t} //}}}\n\n\t//{{{ setModel() method\n\t/**\n\t * Sets the model to the given list of objects. The elements of this\n\t * vector can either be Entry instances, or other objects (if the\n\t * latter, they will default to being unchecked).\n\t */\n\tpublic void setModel(Vector items)\n\t{\n\t\tsetModel(new CheckBoxListModel(items));\n\t\tinit();\n\t} //}}}\n\n\t//{{{ getCheckedValues() method\n\tpublic Object[] getCheckedValues()\n\t{\n\t\tVector values = new Vector();\n\t\tCheckBoxListModel model = (CheckBoxListModel)getModel();\n\t\tfor(int i = 0; i < model.items.size(); i++)\n\t\t{\n\t\t\tEntry entry = (Entry)model.items.elementAt(i);\n\t\t\tif(entry.checked && !entry.caption)\n\t\t\t\tvalues.addElement(entry.value);\n\t\t}\n\n\t\tObject[] retVal = new Object[values.size()];\n\t\tvalues.copyInto(retVal);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ selectAll() method\n\tpublic void selectAll()\n\t{\n\t\tCheckBoxListModel model = (CheckBoxListModel)getModel();\n\t\tfor(int i = 0; i < model.items.size(); i++)\n\t\t{\n\t\t\tEntry entry = (Entry)model.items.elementAt(i);\n\t\t\tif(!entry.caption)\n\t\t\t\tentry.checked = true;\n\t\t}\n\n\t\tmodel.fireTableRowsUpdated(0,model.getRowCount());\n\t} //}}}\n\n\t//{{{ getValues() method\n\tpublic Entry[] getValues()\n\t{\n\t\tCheckBoxListModel model = (CheckBoxListModel)getModel();\n\t\tEntry[] retVal = new Entry[model.items.size()];\n\t\tmodel.items.copyInto(retVal);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ getSelectedValue() method\n\tpublic Object getSelectedValue()\n\t{\n\t\tint row = getSelectedRow();\n\t\tif(row == -1)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn getModel().getValueAt(row,1);\n\t} //}}}\n\n\t//{{{ getCellRenderer() method\n\tpublic TableCellRenderer getCellRenderer(int row, int column)\n\t{\n\t\tif(column == 0)\n\t\t{\n\t\t\tEntry entry = (Entry)((CheckBoxListModel)getModel()).items.get(row);\n\t\t\tif(entry.caption)\n\t\t\t\treturn dummy;\n\t\t}\n\n\t\treturn super.getCellRenderer(row,column);\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate TableCellRenderer dummy;\n\n\t//{{{ init() method\n\tprivate void init()\n\t{\n\t\tdummy = new DummyRenderer();\n\t\tgetSelectionModel().setSelectionMode(ListSelectionModel\n\t\t\t.SINGLE_SELECTION);\n\t\tsetShowGrid(false);\n\t\tsetAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);\n\t\tTableColumn column = getColumnModel().getColumn(0);\n\t\tint checkBoxWidth = new JCheckBox().getPreferredSize().width;\n\t\tcolumn.setPreferredWidth(checkBoxWidth);\n\t\tcolumn.setMinWidth(checkBoxWidth);\n\t\tcolumn.setWidth(checkBoxWidth);\n\t\tcolumn.setMaxWidth(checkBoxWidth);\n\t\tcolumn.setResizable(false);\n\n\t\tcolumn = getColumnModel().getColumn(1);\n\t\tcolumn.setCellRenderer(new LabelRenderer());\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Entry class\n\t/**\n\t * A check box list entry.\n\t */\n\tpublic static class Entry\n\t{\n\t\tboolean checked;\n\t\tboolean caption;\n\t\tObject value;\n\n\t\tpublic Entry(Object value)\n\t\t{\n\t\t\tthis.caption = true;\n\t\t\tthis.value = value;\n\t\t}\n\n\t\tpublic Entry(boolean checked, Object value)\n\t\t{\n\t\t\tthis.checked = checked;\n\t\t\tthis.value = value;\n\t\t}\n\n\t\tpublic boolean isChecked()\n\t\t{\n\t\t\treturn checked;\n\t\t}\n\n\t\tpublic Object getValue()\n\t\t{\n\t\t\treturn value;\n\t\t}\n\t} //}}}\n\n\t//{{{ DummyRenderer class\n\tprivate class DummyRenderer extends DefaultTableCellRenderer\n\t{\n\t\tpublic Component getTableCellRendererComponent(JTable table, Object value,\n\t\t\tboolean isSelected, boolean hasFocus, int row, int column)\n\t\t{\n\t\t\treturn super.getTableCellRendererComponent(table,null /* value */,\n\t\t\t\tisSelected,false /* hasFocus */,row,column);\n\t\t}\n\t} //}}}\n\n\t//{{{ LabelRenderer class\n\tprivate class LabelRenderer extends DefaultTableCellRenderer\n\t{\n\t\tFont plainFont, boldFont;\n\n\t\tLabelRenderer()\n\t\t{\n\t\t\tplainFont = UIManager.getFont(\"Tree.font\");\n\t\t\tboldFont = plainFont.deriveFont(Font.BOLD);\n\t\t}\n\n\t\tpublic Component getTableCellRendererComponent(JTable table, Object value,\n\t\t\tboolean isSelected, boolean hasFocus, int row, int column)\n\t\t{\n\t\t\tsuper.getTableCellRendererComponent(table,value,isSelected,\n\t\t\t\thasFocus,row,column);\n\n\t\t\tEntry entry = (Entry)((CheckBoxListModel)getModel()).items.get(row);\n\t\t\tif(entry.caption)\n\t\t\t\tsetFont(boldFont);\n\t\t\telse\n\t\t\t\tsetFont(plainFont);\n\t\t\treturn this;", "functions": [{"function_name": "setModel", "code": "\tpublic void setModel(Object[] items)\n\t{\n\t\tsetModel(new CheckBoxListModel(items));\n\t\tinit();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setModel", "code": "\tpublic void setModel(Vector items)\n\t{\n\t\tsetModel(new CheckBoxListModel(items));\n\t\tinit();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCheckedValues", "code": "\tpublic Object[] getCheckedValues()\n\t{\n\t\tVector values = new Vector();\n\t\tCheckBoxListModel model = (CheckBoxListModel)getModel();\n\t\tfor(int i = 0; i < model.items.size(); i++)\n\t\t{\n\t\t\tEntry entry = (Entry)model.items.elementAt(i);\n\t\t\tif(entry.checked && !entry.caption)\n\t\t\t\tvalues.addElement(entry.value);\n\t\t}\n\n\t\tObject[] retVal = new Object[values.size()];\n\t\tvalues.copyInto(retVal);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [3, 8], [3, 9], [7, 10], [5, 11], [2, 12], [8, 13], [3, 14], [4, 15], [8, 16], [9, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 3], [9, 3], [10, 7], [11, 5], [12, 2], [13, 8], [14, 3], [15, 4], [16, 8], [17, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "selectAll", "code": "\tpublic void selectAll()\n\t{\n\t\tCheckBoxListModel model = (CheckBoxListModel)getModel();\n\t\tfor(int i = 0; i < model.items.size(); i++)\n\t\t{\n\t\t\tEntry entry = (Entry)model.items.elementAt(i);\n\t\t\tif(!entry.caption)\n\t\t\t\tentry.checked = true;\n\t\t}\n\n\t\tmodel.fireTableRowsUpdated(0,model.getRowCount());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [3, 6], [1, 7], [1, 8], [4, 9], [1, 10], [2, 11], [7, 12], [12, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 3], [7, 1], [8, 1], [9, 4], [10, 1], [11, 2], [12, 7], [13, 12], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getValues", "code": "\tpublic Entry[] getValues()\n\t{\n\t\tCheckBoxListModel model = (CheckBoxListModel)getModel();\n\t\tEntry[] retVal = new Entry[model.items.size()];\n\t\tmodel.items.copyInto(retVal);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSelectedValue", "code": "\tpublic Object getSelectedValue()\n\t{\n\t\tint row = getSelectedRow();\n\t\tif(row == -1)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn getModel().getValueAt(row,1);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [2, 9], [6, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 2], [10, 6], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getCellRenderer", "code": "\tpublic TableCellRenderer getCellRenderer(int row, int column)\n\t{\n\t\tif(column == 0)\n\t\t{\n\t\t\tEntry entry = (Entry)((CheckBoxListModel)getModel()).items.get(row);\n\t\t\tif(entry.caption)\n\t\t\t\treturn dummy;\n\t\t}\n\n\t\treturn super.getCellRenderer(row,column);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "init", "code": "\tprivate void init()\n\t{\n\t\tdummy = new DummyRenderer();\n\t\tgetSelectionModel().setSelectionMode(ListSelectionModel\n\t\t\t.SINGLE_SELECTION);\n\t\tsetShowGrid(false);\n\t\tsetAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);\n\t\tTableColumn column = getColumnModel().getColumn(0);\n\t\tint checkBoxWidth = new JCheckBox().getPreferredSize().width;\n\t\tcolumn.setPreferredWidth(checkBoxWidth);\n\t\tcolumn.setMinWidth(checkBoxWidth);\n\t\tcolumn.setWidth(checkBoxWidth);\n\t\tcolumn.setMaxWidth(checkBoxWidth);\n\t\tcolumn.setResizable(false);\n\n\t\tcolumn = getColumnModel().getColumn(1);\n\t\tcolumn.setCellRenderer(new LabelRenderer());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [4, 15], [5, 16], [1, 17], [2, 18], [11, 19], [12, 20], [13, 21], [15, 22], [17, 23], [18, 24], [22, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 4], [16, 5], [17, 1], [18, 2], [19, 11], [20, 12], [21, 13], [22, 15], [23, 17], [24, 18], [25, 22], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "JCheckBoxList", "code": "\tpublic JCheckBoxList(Object[] items)\n\t{\n\t\tsetModel(items);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JCheckBoxList", "code": "\tpublic JCheckBoxList(Vector items)\n\t{\n\t\tsetModel(items);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-7994", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/UnresolvedRef.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.UnresolvedRef", "code": "final class UnresolvedRef extends VariableRefBase {\n\n    private QName           _variableName = null;\n    private VariableRefBase _ref = null;\n    private VariableBase    _var = null;\n    private Stylesheet      _sheet = null;\n\n    public UnresolvedRef(QName name) {\n\tsuper();\n\t_variableName = name;\n\t_sheet = getStylesheet();\n    }\n\n    public QName getName() {\n\treturn(_variableName);\n    }\n\n    private ErrorMsg reportError() {\n\tErrorMsg err = new ErrorMsg(ErrorMsg.VARIABLE_UNDEF_ERR,\n\t\t\t\t    _variableName, this);\n\tgetParser().reportError(Constants.ERROR, err);\n\treturn(err);\n    }\n\n    private VariableRefBase resolve(Parser parser, SymbolTable stable) {\n\tVariableBase ref = parser.lookupVariable(_variableName);\n\tif (ref == null) ref = (VariableBase)stable.lookupName(_variableName);\n\tif (ref == null) {\n\t    reportError();\n\t    return null;\n\t}\n\t\n\tif ((_var = findParentVariable()) != null) _var.addDependency(ref);\n\n\tif (ref instanceof Variable)\n\t    return(new VariableRef((Variable)ref));\n\telse if (ref instanceof Param)\n\t    return(new ParameterRef((Param)ref));\n\telse\n\t    return null;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_ref != null) {\n\t    final String name = _variableName.toString();\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.CIRCULAR_VARIABLE_ERR,\n\t\t\t\t\tname, this);\n\t}\n\tif ((_ref = resolve(getParser(), stable)) != null) {\n\t    return (_type = _ref.typeCheck(stable));\n\t}\n\tthrow new TypeCheckError(reportError());\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tif (_ref != null)\n\t    _ref.translate(classGen, methodGen);\n\telse\n\t    reportError();\n    }\n\n    public String toString() {\n\treturn \"unresolved-ref()\";", "functions": [{"function_name": "getName", "code": "    public QName getName() {\n\treturn(_variableName);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reportError", "code": "    private ErrorMsg reportError() {\n\tErrorMsg err = new ErrorMsg(ErrorMsg.VARIABLE_UNDEF_ERR,\n\t\t\t\t    _variableName, this);\n\tgetParser().reportError(Constants.ERROR, err);\n\treturn(err);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resolve", "code": "    private VariableRefBase resolve(Parser parser, SymbolTable stable) {\n\tVariableBase ref = parser.lookupVariable(_variableName);\n\tif (ref == null) ref = (VariableBase)stable.lookupName(_variableName);\n\tif (ref == null) {\n\t    reportError();\n\t    return null;\n\t}\n\t\n\tif ((_var = findParentVariable()) != null) _var.addDependency(ref);\n\n\tif (ref instanceof Variable)\n\t    return(new VariableRef((Variable)ref));\n\telse if (ref instanceof Param)\n\t    return(new ParameterRef((Param)ref));\n\telse\n\t    return null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [4, 13], [8, 14], [8, 15], [8, 16], [9, 17], [2, 18], [11, 19], [11, 20], [3, 21], [12, 22], [4, 23], [13, 24], [5, 25], [14, 26], [15, 27], [20, 28], [21, 29], [3, 30], [23, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 4], [14, 8], [15, 8], [16, 8], [17, 9], [18, 2], [19, 11], [20, 11], [21, 3], [22, 12], [23, 4], [24, 13], [25, 5], [26, 14], [27, 15], [28, 20], [29, 21], [30, 3], [31, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_ref != null) {\n\t    final String name = _variableName.toString();\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.CIRCULAR_VARIABLE_ERR,\n\t\t\t\t\tname, this);\n\t}\n\tif ((_ref = resolve(getParser(), stable)) != null) {\n\t    return (_type = _ref.typeCheck(stable));\n\t}\n\tthrow new TypeCheckError(reportError());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [5, 8], [2, 9], [6, 10], [6, 11], [3, 12], [3, 13], [7, 14], [9, 15], [11, 16], [15, 17], [16, 18], [12, 19], [13, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 5], [9, 2], [10, 6], [11, 6], [12, 3], [13, 3], [14, 7], [15, 9], [16, 11], [17, 15], [18, 16], [19, 12], [20, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tif (_ref != null)\n\t    _ref.translate(classGen, methodGen);\n\telse\n\t    reportError();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"unresolved-ref()\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "UnresolvedRef", "code": "    public UnresolvedRef(QName name) {\n\tsuper();\n\t_variableName = name;\n\t_sheet = getStylesheet();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.3-6", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/taskdefs/Move.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Move", "code": "public class Move extends Copy {\n\n    public Move() {\n        super();\n        forceOverwrite = true;\n    }\n\n\n    protected void doFileOperations() {\n            log(\"Moving \" + fileCopyMap.size() + \" files to \" + \n                destDir.getAbsolutePath() );\n\n            Enumeration e = fileCopyMap.keys();\n            while (e.hasMoreElements()) {\n                String fromFile = (String) e.nextElement();\n                String toFile = (String) fileCopyMap.get(fromFile);\n\n                try {\n                    log(\"Moving \" + fromFile + \" to \" + toFile, verbosity);\n                    project.copyFile(fromFile, toFile, filtering, forceOverwrite);\n                    File f = new File(fromFile);\n                    if (!f.delete()) {\n                        throw new BuildException(\"Unable to delete file \" + f.getAbsolutePath());\n                    }\n                } catch (IOException ioe) {\n                    String msg = \"Failed to copy \" + fromFile + \" to \" + toFile\n                        + \" due to \" + ioe.getMessage();\n                    throw new BuildException(msg, ioe, location);\n                }\n            }\n\n        if(true) {\n            Enumeration e = dirCopyMap.elements();\n            int count = 0;\n            while (e.hasMoreElements()) {\n                File d = new File((String)e.nextElement());\n                if (!d.exists()) {\n                    if (!d.mkdirs()) {\n                        log(\"Unable to create directory \" + d.getAbsolutePath(), Project.MSG_ERR);\n                    } else {\n                        count++;\n                    }\n                }\n            }\n\n            if (count > 0) {\n                log(\"Moved \" + count + \" empty directories to \" + destDir.getAbsolutePath());\n            }\n        }\n\n        if (filesets.size() > 0) {\n            Enumeration e = filesets.elements();\n            while (e.hasMoreElements()) {\n                FileSet fs = (FileSet)e.nextElement();\n                File dir = fs.getDir(project);\n\n                if (okToDelete(dir)) {\n                    deleteDir(dir);\n                }\n            }\n        }\n    }\n\n    /**\n     * Its only ok to delete a directory tree if there are \n     * no files in it.\n     */\n    protected boolean okToDelete(File d) {\n        String[] list = d.list();\n\n        for (int i = 0; i < list.length; i++) {\n            String s = list[i];\n            File f = new File(d, s);\n            if (f.isDirectory()) {\n                if (!okToDelete(f)) return false;\n            } else {\n            }\n        }\n\n        return true;\n    }\n\n    /**\n     * Go and delete the directory tree.\n     */\n    protected void deleteDir(File d) {\n        String[] list = d.list();\n\n        for (int i = 0; i < list.length; i++) {\n            String s = list[i];\n            File f = new File(d, s);\n            if (f.isDirectory()) {\n                deleteDir(f);\n            } else {\n                throw new BuildException(\"UNEXPECTED ERROR - The file \" + f.getAbsolutePath() + \" should not exist!\");\n            }\n        }\n        log(\"Deleting directory \" + d.getAbsolutePath(), verbosity);\n        if (!d.delete()) {\n           throw new BuildException(\"Unable to delete directory \" + d.getAbsolutePath());", "functions": [{"function_name": "doFileOperations", "code": "    protected void doFileOperations() {\n            log(\"Moving \" + fileCopyMap.size() + \" files to \" + \n                destDir.getAbsolutePath() );\n\n            Enumeration e = fileCopyMap.keys();\n            while (e.hasMoreElements()) {\n                String fromFile = (String) e.nextElement();\n                String toFile = (String) fileCopyMap.get(fromFile);\n\n                try {\n                    log(\"Moving \" + fromFile + \" to \" + toFile, verbosity);\n                    project.copyFile(fromFile, toFile, filtering, forceOverwrite);\n                    File f = new File(fromFile);\n                    if (!f.delete()) {\n                        throw new BuildException(\"Unable to delete file \" + f.getAbsolutePath());\n                    }\n                } catch (IOException ioe) {\n                    String msg = \"Failed to copy \" + fromFile + \" to \" + toFile\n                        + \" due to \" + ioe.getMessage();\n                    throw new BuildException(msg, ioe, location);\n                }\n            }\n\n        if(true) {\n            Enumeration e = dirCopyMap.elements();\n            int count = 0;\n            while (e.hasMoreElements()) {\n                File d = new File((String)e.nextElement());\n                if (!d.exists()) {\n                    if (!d.mkdirs()) {\n                        log(\"Unable to create directory \" + d.getAbsolutePath(), Project.MSG_ERR);\n                    } else {\n                        count++;\n                    }\n                }\n            }\n\n            if (count > 0) {\n                log(\"Moved \" + count + \" empty directories to \" + destDir.getAbsolutePath());\n            }\n        }\n\n        if (filesets.size() > 0) {\n            Enumeration e = filesets.elements();\n            while (e.hasMoreElements()) {\n                FileSet fs = (FileSet)e.nextElement();\n                File dir = fs.getDir(project);\n\n                if (okToDelete(dir)) {\n                    deleteDir(dir);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CATCH", "IF", "VAR_DECL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [0, 8], [1, 9], [1, 10], [5, 11], [5, 12], [2, 13], [2, 14], [2, 15], [2, 16], [3, 17], [3, 18], [3, 19], [4, 20], [8, 21], [9, 22], [13, 23], [14, 24], [17, 25], [17, 26], [17, 27], [21, 28], [21, 29], [9, 30], [9, 31], [9, 32], [10, 33], [23, 34], [14, 35], [14, 36], [15, 37], [16, 38], [25, 39], [25, 40], [26, 41], [17, 42], [17, 43], [29, 44], [29, 45], [30, 46], [13, 47], [35, 48], [39, 49], [26, 50], [27, 51], [43, 52], [18, 53], [19, 54], [45, 55], [45, 56], [31, 57], [47, 58], [35, 59], [36, 60], [40, 61], [50, 62], [52, 63], [30, 64], [32, 65], [58, 66], [58, 67], [59, 68], [61, 69], [61, 70], [62, 71], [63, 72], [63, 73], [67, 74], [67, 75], [60, 76], [70, 77], [70, 78], [71, 79], [71, 80], [73, 81], [75, 82], [59, 83], [78, 84], [83, 85], [84, 86], [84, 87], [85, 88], [85, 89], [87, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 0], [9, 1], [10, 1], [11, 5], [12, 5], [13, 2], [14, 2], [15, 2], [16, 2], [17, 3], [18, 3], [19, 3], [20, 4], [21, 8], [22, 9], [23, 13], [24, 14], [25, 17], [26, 17], [27, 17], [28, 21], [29, 21], [30, 9], [31, 9], [32, 9], [33, 10], [34, 23], [35, 14], [36, 14], [37, 15], [38, 16], [39, 25], [40, 25], [41, 26], [42, 17], [43, 17], [44, 29], [45, 29], [46, 30], [47, 13], [48, 35], [49, 39], [50, 26], [51, 27], [52, 43], [53, 18], [54, 19], [55, 45], [56, 45], [57, 31], [58, 47], [59, 35], [60, 36], [61, 40], [62, 50], [63, 52], [64, 30], [65, 32], [66, 58], [67, 58], [68, 59], [69, 61], [70, 61], [71, 62], [72, 63], [73, 63], [74, 67], [75, 67], [76, 60], [77, 70], [78, 70], [79, 71], [80, 71], [81, 73], [82, 75], [83, 59], [84, 78], [85, 83], [86, 84], [87, 84], [88, 85], [89, 85], [90, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "okToDelete", "code": "    protected boolean okToDelete(File d) {\n        String[] list = d.list();\n\n        for (int i = 0; i < list.length; i++) {\n            String s = list[i];\n            File f = new File(d, s);\n            if (f.isDirectory()) {\n                if (!okToDelete(f)) return false;\n            } else {\n            }\n        }\n\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [3, 10], [7, 11], [2, 12], [7, 13], [8, 14], [13, 15], [13, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 3], [11, 7], [12, 2], [13, 7], [14, 8], [15, 13], [16, 13], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "deleteDir", "code": "    protected void deleteDir(File d) {\n        String[] list = d.list();\n\n        for (int i = 0; i < list.length; i++) {\n            String s = list[i];\n            File f = new File(d, s);\n            if (f.isDirectory()) {\n                deleteDir(f);\n            } else {\n                throw new BuildException(\"UNEXPECTED ERROR - The file \" + f.getAbsolutePath() + \" should not exist!\");\n            }\n        }\n        log(\"Deleting directory \" + d.getAbsolutePath(), verbosity);\n        if (!d.delete()) {\n           throw new BuildException(\"Unable to delete directory \" + d.getAbsolutePath());", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [6, 9], [2, 10], [2, 11], [2, 12], [3, 13], [8, 14], [9, 15], [9, 16], [10, 17], [2, 18], [14, 19], [10, 20], [11, 21], [19, 22], [19, 23], [20, 24], [10, 25], [24, 26], [26, 27], [26, 28], [28, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 6], [10, 2], [11, 2], [12, 2], [13, 3], [14, 8], [15, 9], [16, 9], [17, 10], [18, 2], [19, 14], [20, 10], [21, 11], [22, 19], [23, 19], [24, 20], [25, 10], [26, 24], [27, 26], [28, 26], [29, 28], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "Move", "code": "    public Move() {\n        super();\n        forceOverwrite = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-2951", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/ProcessorType.java", "language": "java", "name": "org.apache.camel.model.ProcessorType", "code": "@XmlAccessorType(XmlAccessType.PROPERTY)\npublic abstract class ProcessorType<Type extends ProcessorType> extends OptionalIdentifiedType<Type> implements Block {\n\n    /**\n     * @deprecated will be removed in Camel 2.0\n     */\n    public static final String DEFAULT_TRACE_CATEGORY = \"org.apache.camel.TRACE\";\n\n    private static final transient Log LOG = LogFactory.getLog(ProcessorType.class);\n    private ErrorHandlerBuilder errorHandlerBuilder;\n    private Boolean inheritErrorHandlerFlag;\n    private NodeFactory nodeFactory;\n    private LinkedList<Block> blocks = new LinkedList<Block>();\n    private ProcessorType<? extends ProcessorType> parent;\n    private List<InterceptorType> interceptors = new ArrayList<InterceptorType>();\n    private String errorHandlerRef;\n\n    public abstract List<ProcessorType<?>> getOutputs();\n\n\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        throw new UnsupportedOperationException(\"Not implemented yet for class: \" + getClass().getName());\n    }\n\n    public Processor createOutputsProcessor(RouteContext routeContext) throws Exception {\n        Collection<ProcessorType<?>> outputs = getOutputs();\n        return createOutputsProcessor(routeContext, outputs);\n    }\n\n    public void addRoutes(RouteContext routeContext, Collection<Route> routes) throws Exception {\n        Processor processor = makeProcessor(routeContext);\n        if (!routeContext.isRouteAdded()) {\n            routeContext.addEventDrivenProcessor(processor);\n        }\n    }\n\n    /**\n     * Wraps the child processor in whatever necessary interceptors and error\n     * handlers\n     */\n    public Processor wrapProcessor(RouteContext routeContext, Processor processor) throws Exception {\n        processor = wrapProcessorInInterceptors(routeContext, processor);\n        return wrapInErrorHandler(routeContext, processor);\n    }\n\n\n    /**\n     * Sends the exchange to the given endpoint URI\n     */\n    public Type to(String uri) {\n        addOutput(new ToType(uri));\n        return (Type) this;\n    }   \n    \n\n    /**\n     * Sends the exchange to the given endpoint\n     */\n    public Type to(Endpoint endpoint) {\n        addOutput(new ToType(endpoint));\n        return (Type) this;\n    }\n    \n    /**\n     * Sends the exchange with certain exchange pattern to the given endpoint\n     *\n     * @param pattern the pattern to use for the message exchange\n     * @param uri  the endpoint to send to\n     * @return the builder\n     */\n    public Type to(ExchangePattern pattern, String uri) {\n        addOutput(new ToType(uri, pattern));\n        return (Type) this;\n    }   \n    \n\n    /**\n     * Sends the exchange with certain exchange pattern to the given endpoint\n     *\n     * @param pattern the pattern to use for the message exchange\n     * @param endpoint  the endpoint to send to\n     * @return the builder\n     */\n    public Type to(ExchangePattern pattern, Endpoint endpoint) {\n        addOutput(new ToType(endpoint, pattern));\n        return (Type) this;\n    }\n\n    /**\n     * Sends the exchange to a list of endpoints\n     */\n    public Type to(String... uris) {\n        for (String uri : uris) {\n            addOutput(new ToType(uri));\n        }\n        return (Type) this;\n    }\n\n\n    /**\n     * Sends the exchange to a list of endpoints\n     */\n    public Type to(Endpoint... endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint));\n        }\n        return (Type) this;\n    }\n\n    /**\n     * Sends the exchange to a list of endpoint\n     */\n    public Type to(Iterable<Endpoint> endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint));\n        }\n        return (Type) this;\n    }\n    \n    \n    /**\n     * Sends the exchange to a list of endpoints\n     *\n     * @param pattern the pattern to use for the message exchanges\n     * @param uris  list of endpoints to send to\n     * @return the builder\n     */\n    public Type to(ExchangePattern pattern, String... uris) {\n        for (String uri : uris) {\n            addOutput(new ToType(uri, pattern));\n        }\n        return (Type) this;\n    }\n\n    /**\n     * Sends the exchange to a list of endpoints\n     *\n     * @param pattern the pattern to use for the message exchanges\n     * @param endpoints  list of endpoints to send to\n     * @return the builder\n     */\n    public Type to(ExchangePattern pattern, Endpoint... endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint, pattern));\n        }\n        return (Type) this;\n    }\n\n    /**\n     * Sends the exchange to a list of endpoints\n     *\n     * @param pattern the pattern to use for the message exchanges\n     * @param endpoints  list of endpoints to send to\n     * @return the builder\n     */\n    public Type to(ExchangePattern pattern, Iterable<Endpoint> endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint, pattern));\n        }\n        return (Type) this;\n    }\n\n\n    /**\n     * set the ExchangePattern {@link ExchangePattern} into the exchange\n     *\n     * @param exchangePattern  instance of {@link ExchangePattern}\n     * @return the builder\n     */\n    public Type setExchangePattern(ExchangePattern exchangePattern) {\n        addOutput(new SetExchangePatternType(exchangePattern));\n        return (Type) this;\n    }\n\n    /**\n     * set the exchange's ExchangePattern {@link ExchangePattern} to be InOnly\n     *\n     *\n     * @return the builder\n     */\n    public Type inOnly() {\n        return setExchangePattern(ExchangePattern.InOnly);\n    }\n\n    /**\n     * Sends the message to the given endpoint using an\n     *\n     * @param uri The endpoint uri which is used for sending the exchange\n     * @return the builder\n     */\n    public Type inOnly(String uri) {\n        return to(ExchangePattern.InOnly, uri);\n    }\n\n    /**\n     * Sends the message to the given endpoint using an\n     *\n     * @param endpoint The endpoint which is used for sending the exchange\n     * @return the builder\n     */\n    public Type inOnly(Endpoint endpoint) {\n        return to(ExchangePattern.InOnly, endpoint);\n    }\n\n\n    /**\n     * Sends the message to the given endpoints using an\n     *\n     * @param uris  list of endpoints to send to\n     * @return the builder\n     */\n    public Type inOnly(String... uris) {\n        return to(ExchangePattern.InOnly, uris);\n    }\n\n\n    /**\n     * Sends the message to the given endpoints using an\n     *\n     * @param endpoints  list of endpoints to send to\n     * @return the builder\n     */\n    public Type inOnly(Endpoint... endpoints) {\n        return to(ExchangePattern.InOnly, endpoints);\n    }\n\n    /**\n     * Sends the message to the given endpoints using an\n     *\n     * @param endpoints  list of endpoints to send to\n     * @return the builder\n     */\n    public Type inOnly(Iterable<Endpoint> endpoints) {\n        return to(ExchangePattern.InOnly, endpoints);\n    }\n\n\n    /**\n     * set the exchange's ExchangePattern {@link ExchangePattern} to be InOut\n     *\n     *\n     * @return the builder\n     */\n    public Type inOut() {\n        return setExchangePattern(ExchangePattern.InOut);\n    }\n\n    /**\n     * Sends the message to the given endpoint using an\n     *\n     * @param uri The endpoint uri which is used for sending the exchange\n     * @return the builder\n     */\n    public Type inOut(String uri) {\n        return to(ExchangePattern.InOut, uri);\n    }\n\n\n    /**\n     * Sends the message to the given endpoint using an\n     *\n     * @param endpoint The endpoint which is used for sending the exchange\n     * @return the builder\n     */\n    public Type inOut(Endpoint endpoint) {\n        return to(ExchangePattern.InOut, endpoint);\n    }\n\n    /**\n     * Sends the message to the given endpoints using an\n     *\n     * @param uris  list of endpoints to send to\n     * @return the builder\n     */\n    public Type inOut(String... uris) {\n        return to(ExchangePattern.InOut, uris);\n    }\n\n\n    /**\n     * Sends the message to the given endpoints using an\n     *\n     * @param endpoints  list of endpoints to send to\n     * @return the builder\n     */\n    public Type inOut(Endpoint... endpoints) {\n        return to(ExchangePattern.InOut, endpoints);\n    }\n\n    /**\n     * Sends the message to the given endpoints using an\n     *\n     * @param endpoints  list of endpoints to send to\n     * @return the builder\n     */\n    public Type inOut(Iterable<Endpoint> endpoints) {\n        return to(ExchangePattern.InOut, endpoints);\n    }\n\n\n    /**\n     * Multicasts messages to all its child outputs; so that each processor and\n     * destination gets a copy of the original message to avoid the processors\n     * interfering with each other.\n     */\n    public MulticastType multicast() {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Multicasts messages to all its child outputs; so that each processor and\n     * destination gets a copy of the original message to avoid the processors\n     * interfering with each other.\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @return the multicast type\n     */\n    public MulticastType multicast(AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;\n    }\n\n    /**\n     * Multicasts messages to all its child outputs; so that each processor and\n     * destination gets a copy of the original message to avoid the processors\n     * interfering with each other.\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @return the multicast type\n     */\n    public MulticastType multicast(AggregationStrategy aggregationStrategy) {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return answer;\n    }\n\n    /**\n     * Creates a {@link Pipeline} of the list of endpoints so that the message\n     * will get processed by each endpoint in turn and for request/response the\n     * output of one endpoint will be the input of the next endpoint\n     */\n    public Type pipeline(String... uris) {\n        return to(uris);\n    }\n\n    /**\n     * Creates a {@link Pipeline} of the list of endpoints so that the message\n     * will get processed by each endpoint in turn and for request/response the\n     * output of one endpoint will be the input of the next endpoint\n     */\n    public Type pipeline(Endpoint... endpoints) {\n        return to(endpoints);\n    }\n\n    /**\n     * Creates a {@link Pipeline} of the list of endpoints so that the message\n     * will get processed by each endpoint in turn and for request/response the\n     * output of one endpoint will be the input of the next endpoint\n     */\n    public Type pipeline(Collection<Endpoint> endpoints) {\n        return to(endpoints);\n    }\n\n    /**\n     * Ends the current block\n     */\n    public ProcessorType<? extends ProcessorType> end() {\n        if (blocks.isEmpty()) {\n            if (parent == null) {\n                throw new IllegalArgumentException(\"Root node with no active block\");\n            }\n            return parent;\n        }\n        popBlock();\n        return this;\n    }\n\n    /**\n     * Causes subsequent processors to be called asynchronously\n     *\n     * @param coreSize the number of threads that will be used to process\n     *                 messages in subsequent processors.\n     * @return a ThreadType builder that can be used to further configure the\n     *         the thread pool.\n     */\n    public ThreadType thread(int coreSize) {\n        ThreadType answer = new ThreadType(coreSize);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Causes subsequent processors to be called asynchronously\n     *\n     * @param executor the executor that will be used to process\n     *                 messages in subsequent processors.\n     * @return a ThreadType builder that can be used to further configure the\n     *         the thread pool.\n     */\n    public ProcessorType<Type> thread(ThreadPoolExecutor executor) {\n        ThreadType answer = new ThreadType(executor);\n        addOutput(answer);\n        return this;\n    }\n\n    /**\n     * Creates an {@link org.apache.camel.processor.idempotent.IdempotentConsumer}\n     * to avoid duplicate messages\n     */\n    public IdempotentConsumerType idempotentConsumer(Expression messageIdExpression,\n            MessageIdRepository messageIdRepository) {\n        IdempotentConsumerType answer = new IdempotentConsumerType(messageIdExpression, messageIdRepository);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates an {@link org.apache.camel.processor.idempotent.IdempotentConsumer}\n     * to avoid duplicate messages\n     *\n     * @return the builder used to create the expression\n     */\n    public ExpressionClause<IdempotentConsumerType> idempotentConsumer(MessageIdRepository messageIdRepository) {\n        IdempotentConsumerType answer = new IdempotentConsumerType();\n        answer.setMessageIdRepository(messageIdRepository);\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates a predicate expression which only if it is true then the\n     * exchange is forwarded to the destination\n     *\n     * @return the clause used to create the filter expression\n     */\n    public ExpressionClause<FilterType> filter() {\n        FilterType filter = new FilterType();\n        addOutput(filter);\n        return ExpressionClause.createAndSetExpression(filter);\n    }\n\n    /**\n     * Creates a predicate which is applied and only if it is true then the\n     * exchange is forwarded to the destination\n     *\n     * @return the builder for a predicate\n     */\n    public FilterType filter(Predicate predicate) {\n        FilterType filter = new FilterType(predicate);\n        addOutput(filter);\n        return filter;\n    }\n\n    public FilterType filter(ExpressionType expression) {\n        FilterType filter = getNodeFactory().createFilter();\n        filter.setExpression(expression);\n        addOutput(filter);\n        return filter;\n    }\n\n    public FilterType filter(String language, String expression) {\n        return filter(new LanguageExpression(language, expression));\n    }\n\n    public LoadBalanceType loadBalance() {\n        LoadBalanceType answer = new LoadBalanceType();\n        addOutput(answer);\n        return answer;\n    }\n\n\n    /**\n     * Creates a choice of one or more predicates with an otherwise clause\n     *\n     * @return the builder for a choice expression\n     */\n    public ChoiceType choice() {\n        ChoiceType answer = new ChoiceType();\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates a try/catch block\n     *\n     * @return the builder for a tryBlock expression\n     */\n    public TryType tryBlock() {\n        TryType answer = new TryType();\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates a dynamic <a\n     * List</a> pattern.\n     *\n     * @param recipients is the builder of the expression used in the\n     *                    {@link org.apache.camel.processor.RecipientList}\n     *                    to decide the destinations\n     */\n    public Type recipientList(Expression recipients) {\n        RecipientListType answer = new RecipientListType(recipients);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Creates a dynamic <a\n     * List</a> pattern.\n     *\n     * @return the expression clause for the expression used in the\n     *                    {@link org.apache.camel.processor.RecipientList}\n     *                    to decide the destinations\n     */\n    public ExpressionClause<ProcessorType<Type>> recipientList() {\n        RecipientListType answer = new RecipientListType();\n        addOutput(answer);\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        answer.setExpression(clause);\n        return clause;\n    }\n\n    /**\n     * Creates a <a\n     * Slip</a> pattern.\n     *\n     * @param header is the header that the {@link org.apache.camel.processor.RoutingSlip RoutingSlip}\n     * class will look in for the list of URIs to route the message to.\n     * @param uriDelimiter is the delimiter that will be used to split up\n     * the list of URIs in the routing slip.\n     */\n    public Type routingSlip(String header, String uriDelimiter) {\n        RoutingSlipType answer = new RoutingSlipType(header, uriDelimiter);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Creates a <a\n     * Slip</a> pattern.\n     *\n     * @param header is the header that the {@link org.apache.camel.processor.RoutingSlip RoutingSlip}\n     * class will look in for the list of URIs to route the message to. The list of URIs\n     * will be split based on the default delimiter\n     * {@link RoutingSlipType#DEFAULT_DELIMITER}.\n     */\n    public Type routingSlip(String header) {\n        RoutingSlipType answer = new RoutingSlipType(header);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Creates a <a\n     * Slip</a> pattern with the default header {@link RoutingSlipType#ROUTING_SLIP_HEADER}.\n     * The list of URIs in the header will be split based on the default delimiter\n     * {@link RoutingSlipType#DEFAULT_DELIMITER}.\n     */\n    public Type routingSlip() {\n        RoutingSlipType answer = new RoutingSlipType();\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * This splitter responds with the latest message returned from destination\n     * endpoint.\n     *\n     * @param recipients the expression on which to split\n     * @return the builder\n     */\n    public SplitterType splitter(Expression recipients) {\n        SplitterType answer = new SplitterType(recipients);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * This splitter responds with the latest message returned from destination\n     * endpoint.\n     *\n     * @return the expression clause for the expression on which to split\n     */\n    public ExpressionClause<SplitterType> splitter() {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * Answer from the splitter is produced using given {@link AggregationStrategy}\n     * @param partsExpression the expression on which to split\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @return the builder\n     */\n    public SplitterType splitter(Expression partsExpression, AggregationStrategy aggregationStrategy) {\n        SplitterType answer = new SplitterType(partsExpression);\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * Answer from the splitter is produced using given {@link AggregationStrategy}\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @return the expression clause for the expression on which to split\n     */\n    public ExpressionClause<SplitterType> splitter(AggregationStrategy aggregationStrategy) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * This splitter responds with the latest message returned from destination\n     * endpoint.\n     *\n     * @param recipients the expression on which to split\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @return the builder\n     */\n    public SplitterType splitter(Expression recipients, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType(recipients);\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * This splitter responds with the latest message returned from destination\n     * endpoint.\n     *\n     * @param recipients the expression on which to split\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @param threadPoolExecutor override the default {@link ThreadPoolExecutor} \n     * @return the builder\n     */\n    public SplitterType splitter(Expression recipients, boolean parallelProcessing, ThreadPoolExecutor threadPoolExecutor) {\n        SplitterType answer = new SplitterType(recipients);\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        answer.setThreadPoolExecutor(threadPoolExecutor);\n        return answer;\n    }    \n    \n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * This splitter responds with the latest message returned from destination\n     * endpoint.\n     *\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @return the expression clause for the expression on which to split\n     */\n    public ExpressionClause<SplitterType> splitter(boolean parallelProcessing) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * This splitter responds with the latest message returned from destination\n     * endpoint.\n     *\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @param threadPoolExecutor override the default {@link ThreadPoolExecutor} \n     * @return the expression clause for the expression on which to split\n     */\n    public ExpressionClause<SplitterType> splitter(boolean parallelProcessing, ThreadPoolExecutor threadPoolExecutor) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        answer.setThreadPoolExecutor(threadPoolExecutor);\n        return ExpressionClause.createAndSetExpression(answer);\n    }    \n    \n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * Answer from the splitter is produced using given {@link AggregationStrategy}\n     * @param partsExpression the expression on which to split\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @return the builder\n     */\n    public SplitterType splitter(Expression partsExpression,\n            AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType(partsExpression);\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * Answer from the splitter is produced using given {@link AggregationStrategy}\n     * @param partsExpression the expression on which to split\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @param threadPoolExecutor override the default {@link ThreadPoolExecutor} \n     * @return the builder\n     */\n    public SplitterType splitter(Expression partsExpression,\n            AggregationStrategy aggregationStrategy, boolean parallelProcessing, ThreadPoolExecutor threadPoolExecutor) {\n        SplitterType answer = new SplitterType(partsExpression);\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        answer.setThreadPoolExecutor(threadPoolExecutor);        \n        return answer;\n    }    \n    \n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * Answer from the splitter is produced using given {@link AggregationStrategy}\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @return the expression clause for the expression on which to split\n     */\n    public ExpressionClause<SplitterType> splitter(AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to iterate through each of the\n     * parts of a message and then each part is then send to some endpoint.\n     * Answer from the splitter is produced using given {@link AggregationStrategy}\n     * @param aggregationStrategy the strategy used to aggregate responses for\n     *          every part\n     * @param parallelProcessing if is <tt>true</tt> camel will fork thread to call the endpoint producer\n     * @param threadPoolExecutor override the default {@link ThreadPoolExecutor} \n     * @return the expression clause for the expression on which to split\n     */\n    public ExpressionClause<SplitterType> splitter(AggregationStrategy aggregationStrategy, boolean parallelProcessing, ThreadPoolExecutor threadPoolExecutor) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        answer.setThreadPoolExecutor(threadPoolExecutor);           \n        return ExpressionClause.createAndSetExpression(answer);\n    }   \n    \n    /**\n     * Creates the <a\n     * pattern where a list of expressions are evaluated to be able to compare\n     * the message exchanges to reorder them. e.g. you may wish to sort by some\n     * headers\n     *\n     * @return the expression clause for the expressions on which to compare messages in order\n     */\n    public ExpressionClause<ResequencerType> resequencer() {\n        ResequencerType answer = new ResequencerType();\n        addOutput(answer);\n        ExpressionClause<ResequencerType> clause = new ExpressionClause<ResequencerType>(answer);\n        answer.expression(clause);\n        return clause;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where an expression is evaluated to be able to compare the\n     * message exchanges to reorder them. e.g. you may wish to sort by some\n     * header\n     *\n     * @param expression the expression on which to compare messages in order\n     * @return the builder\n     */\n    public ResequencerType resequencer(Expression<Exchange> expression) {\n        return resequencer(Collections.<Expression>singletonList(expression));\n    }\n\n    /**\n     * Creates the <a\n     * pattern where a list of expressions are evaluated to be able to compare\n     * the message exchanges to reorder them. e.g. you may wish to sort by some\n     * headers\n     *\n     * @param expressions the expressions on which to compare messages in order\n     * @return the builder\n     */\n    public ResequencerType resequencer(List<Expression> expressions) {\n        ResequencerType answer = new ResequencerType(expressions);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * pattern where a list of expressions are evaluated to be able to compare\n     * the message exchanges to reorder them. e.g. you may wish to sort by some\n     * headers\n     *\n     * @param expressions the expressions on which to compare messages in order\n     * @return the builder\n     */\n    public ResequencerType resequencer(Expression... expressions) {\n        List<Expression> list = new ArrayList<Expression>();\n        list.addAll(Arrays.asList(expressions));\n        return resequencer(list);\n    }\n\n    /**\n     * Creates an <a\n     * pattern where a batch of messages are processed (up to a maximum amount\n     * or until some timeout is reached) and messages for the same correlation\n     * key are combined together using some kind of {@link AggregationStrategy}\n     * (by default the latest message is used) to compress many message exchanges\n     * into a smaller number of exchanges.\n     * <p/>\n     * A good example of this is stock market data; you may be receiving 30,000\n     * messages/second and you may want to throttle it right down so that multiple\n     * messages for the same stock are combined (or just the latest message is used\n     * and older prices are discarded). Another idea is to combine line item messages\n     * together into a single invoice message.\n     */\n    public ExpressionClause<AggregatorType> aggregator() {\n        AggregatorType answer = new AggregatorType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates an <a\n     * pattern where a batch of messages are processed (up to a maximum amount\n     * or until some timeout is reached) and messages for the same correlation\n     * key are combined together using some kind of {@link AggregationStrategy}\n     * (by default the latest message is used) to compress many message exchanges\n     * into a smaller number of exchanges.\n     * <p/>\n     * A good example of this is stock market data; you may be receiving 30,000\n     * messages/second and you may want to throttle it right down so that multiple\n     * messages for the same stock are combined (or just the latest message is used\n     * and older prices are discarded). Another idea is to combine line item messages\n     * together into a single invoice message.\n     *\n     * @param aggregationStrategy the strategy used for the aggregation\n     */\n    public ExpressionClause<AggregatorType> aggregator(AggregationStrategy aggregationStrategy) {\n        AggregatorType answer = new AggregatorType();\n        answer.setAggregationStrategy(aggregationStrategy);\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates an <a\n     * pattern using a custom aggregation collection implementation. The aggregation collection must\n     * be configued with the strategy and correlation expression that this aggregator should use.\n     * This avoids duplicating this configuration on both the collection and the aggregator itself.\n     *\n     * @param aggregationCollection the collection used to perform the aggregation\n     */\n    public AggregatorType aggregator(AggregationCollection aggregationCollection) {\n        AggregatorType answer = new AggregatorType();\n        answer.setAggregationCollection(aggregationCollection);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates an <a\n     * pattern where a batch of messages are processed (up to a maximum amount\n     * or until some timeout is reached) and messages for the same correlation\n     * key are combined together using some kind of {@link AggregationStrategy}\n     * (by default the latest message is used) to compress many message exchanges\n     * into a smaller number of exchanges.\n     * <p/>\n     * A good example of this is stock market data; you may be receiving 30,000\n     * messages/second and you may want to throttle it right down so that multiple\n     * messages for the same stock are combined (or just the latest message is used\n     * and older prices are discarded). Another idea is to combine line item messages\n     * together into a single invoice message.\n     *\n     * @param correlationExpression the expression used to calculate the\n     *                              correlation key. For a JMS message this could be the\n     *                              expression <code>header(\"JMSDestination\")</code> or\n     *                              <code>header(\"JMSCorrelationID\")</code>\n     */\n    public AggregatorType aggregator(Expression correlationExpression) {\n        AggregatorType answer = new AggregatorType(correlationExpression);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates an <a\n     * pattern where a batch of messages are processed (up to a maximum amount\n     * or until some timeout is reached) and messages for the same correlation\n     * key are combined together using some kind of {@link AggregationStrategy}\n     * (by default the latest message is used) to compress many message exchanges\n     * into a smaller number of exchanges.\n     * <p/>\n     * A good example of this is stock market data; you may be receiving 30,000\n     * messages/second and you may want to throttle it right down so that multiple\n     * messages for the same stock are combined (or just the latest message is used\n     * and older prices are discarded). Another idea is to combine line item messages\n     * together into a single invoice message.\n     *\n     * @param correlationExpression the expression used to calculate the\n     *                              correlation key. For a JMS message this could be the\n     *                              expression <code>header(\"JMSDestination\")</code> or\n     *                              <code>header(\"JMSCorrelationID\")</code>\n     */\n    public AggregatorType aggregator(Expression correlationExpression, AggregationStrategy aggregationStrategy) {\n        AggregatorType answer = new AggregatorType(correlationExpression, aggregationStrategy);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * where an expression is used to calculate the time which the message will\n     * be dispatched on\n     *\n     * @param processAtExpression an expression to calculate the time at which\n     *                            the messages should be processed\n     * @return the builder\n     */\n    public DelayerType delayer(Expression<Exchange> processAtExpression) {\n        return delayer(processAtExpression, 0L);\n    }\n\n    /**\n     * Creates the <a\n     * where an expression is used to calculate the time which the message will\n     * be dispatched on\n     *\n     * @param processAtExpression an expression to calculate the time at which\n     *                            the messages should be processed\n     * @param delay               the delay in milliseconds which is added to the\n     *                            processAtExpression to determine the time the message\n     *                            should be processed\n     * @return the builder\n     */\n    public DelayerType delayer(Expression<Exchange> processAtExpression, long delay) {\n        DelayerType answer = new DelayerType(processAtExpression, delay);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates the <a\n     * where an expression is used to calculate the time which the message will\n     * be dispatched on\n     * @return the expression clause to create the expression\n     */\n    public ExpressionClause<DelayerType> delayer() {\n        DelayerType answer = new DelayerType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);\n    }\n\n    /**\n     * Creates the <a\n     * where a fixed amount of milliseconds are used to delay processing of a\n     * message exchange\n     *\n     * @param delay the default delay in milliseconds\n     * @return the builder\n     */\n    public DelayerType delayer(long delay) {\n        return delayer(null, delay);\n    }\n\n    /**\n     * Creates the <a\n     * where an expression is used to calculate the time which the message will\n     * be dispatched on\n     *\n     * @return the builder\n     */\n    public ThrottlerType throttler(long maximumRequestCount) {\n        ThrottlerType answer = new ThrottlerType(maximumRequestCount);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Creates a expression which must evaluate to an integer that determines\n     * how many times the exchange should be sent down the rest of the route.\n     *\n     * @return the clause used to create the loop expression\n     */\n    public ExpressionClause<LoopType> loop() {\n        LoopType loop = new LoopType();\n        addOutput(loop);\n        return ExpressionClause.createAndSetExpression(loop);\n    }\n\n    public LoopType loop(Expression<?> expression) {\n        LoopType loop = getNodeFactory().createLoop();\n        loop.setExpression(expression);\n        addOutput(loop);\n        return loop;\n    }\n\n    public LoopType loop(int count) {\n        LoopType loop = getNodeFactory().createLoop();\n        loop.setExpression(new ConstantExpression(Integer.toString(count)));\n        addOutput(loop);\n        return loop;\n    }\n\n    public Type throwFault(Throwable fault) {\n        ThrowFaultType answer = new ThrowFaultType();\n        answer.setFault(fault);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    public Type throwFault(String message) {\n        return throwFault(new CamelException(message));\n    }\n\n    /**\n     * Intercepts outputs added to this node in the future (i.e. intercepts outputs added after this statement)\n     */\n    public Type interceptor(String ref) {\n        InterceptorRef interceptor = new InterceptorRef(ref);\n        intercept(interceptor);\n        return (Type) this;\n    }\n\n    /**\n     * Intercepts outputs added to this node in the future (i.e. intercepts outputs added after this statement)\n     */\n    public Type intercept(DelegateProcessor interceptor) {\n        intercept(new InterceptorRef(interceptor));\n        return (Type) this;\n    }\n\n    /**\n     * Intercepts outputs added to this node in the future (i.e. intercepts outputs added after this statement)\n     */\n    public InterceptType intercept() {\n        InterceptType answer = new InterceptType();\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Intercepts outputs added to this node in the future (i.e. intercepts outputs added after this statement)\n     */\n    public void intercept(InterceptorType interceptor) {\n        addOutput(interceptor);\n        pushBlock(interceptor);\n    }\n\n    /**\n     * Adds an interceptor around the whole of this nodes processing\n     *\n     * @param interceptor\n     */\n    public void addInterceptor(InterceptorType interceptor) {\n        interceptors.add(interceptor);\n    }\n\n    /**\n     * Adds an interceptor around the whole of this nodes processing\n     *\n     * @param interceptor\n     */\n    public void addInterceptor(DelegateProcessor interceptor) {\n        addInterceptor(new InterceptorRef(interceptor));\n    }\n\n    public void pushBlock(Block block) {\n        blocks.add(block);\n    }\n\n    public Block popBlock() {\n        return blocks.isEmpty() ? null : blocks.removeLast();\n    }\n\n    public Type proceed() {\n        ProceedType proceed = null;\n        ProcessorType currentProcessor = this;\n\n        if (currentProcessor instanceof InterceptType) {\n            proceed = ((InterceptType) currentProcessor).getProceed();\n            LOG.info(\"proceed() is the implied and hence not needed for an intercept()\");\n        }\n        if (proceed == null) {\n            for (ProcessorType node = parent; node != null; node = node.getParent()) {\n                if (node instanceof InterceptType) {\n                    InterceptType intercept = (InterceptType)node;\n                    proceed = intercept.getProceed();\n                    break;\n                }\n            }\n\n            if (proceed == null) {\n                throw new IllegalArgumentException(\"Cannot use proceed() without being within an intercept() block\");\n            }\n\n        }\n\n        addOutput(proceed);\n        return (Type) this;\n    }\n\n    public Type stop() {\n        ProcessorType currentProcessor = this;\n\n        if (currentProcessor instanceof InterceptType) {\n            ((InterceptType) currentProcessor).stopIntercept();\n        } else {\n            ProcessorType node;\n            for (node = parent; node != null; node = node.getParent()) {\n                if (node instanceof InterceptType) {\n                    ((InterceptType) node).stopIntercept();\n                    break;\n                }\n            }\n            if (node == null) {\n                throw new IllegalArgumentException(\"Cannot use stop() without being within an intercept() block\");\n            }\n        }\n\n        return (Type) this;\n    }\n\n    /**\n     * Catches an exception type.\n     *\n     * @deprecated Please use {@link #onException(Class)} instead. Will be removed in Camel 2.0.\n     */\n    public ExceptionType exception(Class exceptionType) {\n        return onException(exceptionType);\n    }\n\n    /**\n     * Catches an exception type.\n     */\n    public ExceptionType onException(Class exceptionType) {\n        ExceptionType answer = new ExceptionType(exceptionType);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Apply an interceptor route if the predicate is true\n     */\n    public ChoiceType intercept(Predicate predicate) {\n        InterceptType answer = new InterceptType();\n        addOutput(answer);\n        return answer.when(predicate);\n    }\n\n    public Type interceptors(String... refs) {\n        for (String ref : refs) {\n            interceptor(ref);\n        }\n        return (Type) this;\n    }\n\n    /**\n     * Trace logs the exchange before it goes to the next processing step using\n     * the {@link #DEFAULT_TRACE_CATEGORY} logging category.\n     *\n     * instead. Will be removed in Camel 2.0.\n     */\n    public Type trace() {\n        return trace(DEFAULT_TRACE_CATEGORY);\n    }\n\n    /**\n     * Trace logs the exchange before it goes to the next processing step using\n     * the specified logging category.\n     *\n     * @param category the logging category trace messages will sent to.\n     *\n     * instead. Will be removed in Camel 2.0.\n     */\n    public Type trace(String category) {\n        final Log log = LogFactory.getLog(category);\n        return intercept(new DelegateProcessor() {\n            @Override\n            public void process(Exchange exchange) throws Exception {\n                log.trace(exchange);\n                processNext(exchange);\n            }\n        });\n    }\n\n    public PolicyRef policies() {\n        PolicyRef answer = new PolicyRef();\n        addOutput(answer);\n        return answer;\n    }\n\n    public PolicyRef policy(Policy policy) {\n        PolicyRef answer = new PolicyRef(policy);\n        addOutput(answer);\n        return answer;\n    }\n\n    /**\n     * Forces handling of faults as exceptions\n     *\n     * @return the current builder with the fault handler configured\n     */\n    public Type handleFault() {\n        intercept(new HandleFaultType());\n        return (Type) this;\n    }\n\n    /**\n     * Installs the given error handler builder\n     *\n     * @param errorHandlerBuilder the error handler to be used by default for\n     *                            all child routes\n     * @return the current builder with the error handler configured\n     */\n    public Type errorHandler(ErrorHandlerBuilder errorHandlerBuilder) {\n        setErrorHandlerBuilder(errorHandlerBuilder);\n        return (Type) this;\n    }\n\n    /**\n     * Configures whether or not the error handler is inherited by every\n     * processing node (or just the top most one)\n     *\n     * @param condition the flag as to whether error handlers should be\n     *                  inherited or not\n     * @return the current builder\n     */\n    public Type inheritErrorHandler(boolean condition) {\n        setInheritErrorHandlerFlag(condition);\n        return (Type) this;\n    }\n\n\n    /**\n     * Adds the custom processor to this destination which could be a final\n     * destination, or could be a transformation in a pipeline\n     */\n    public Type process(Processor processor) {\n        ProcessorRef answer = new ProcessorRef(processor);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds the custom processor reference to this destination which could be a final\n     * destination, or could be a transformation in a pipeline\n     */\n    public Type processRef(String ref) {\n        ProcessorRef answer = new ProcessorRef();\n        answer.setRef(ref);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean which is invoked which could be a final destination, or could\n     * be a transformation in a pipeline\n     */\n    public Type bean(Object bean) {\n        BeanRef answer = new BeanRef();\n        answer.setBean(bean);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean and method which is invoked which could be a final\n     * destination, or could be a transformation in a pipeline\n     */\n    public Type bean(Object bean, String method) {\n        BeanRef answer = new BeanRef();\n        answer.setBean(bean);\n        answer.setMethod(method);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean by type which is invoked which could be a final destination, or could\n     * be a transformation in a pipeline\n     */\n    public Type bean(Class beanType) {\n        BeanRef answer = new BeanRef();\n        answer.setBeanType(beanType);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean type and method which is invoked which could be a final\n     * destination, or could be a transformation in a pipeline\n     */\n    public Type bean(Class beanType, String method) {\n        BeanRef answer = new BeanRef();\n        answer.setBeanType(beanType);\n        answer.setMethod(method);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean which is invoked which could be a final destination, or could\n     * be a transformation in a pipeline\n     */\n    public Type beanRef(String ref) {\n        BeanRef answer = new BeanRef(ref);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a bean and method which is invoked which could be a final\n     * destination, or could be a transformation in a pipeline\n     */\n    public Type beanRef(String ref, String method) {\n        BeanRef answer = new BeanRef(ref, method);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the body on the IN message\n     */\n    public ExpressionClause<ProcessorType<Type>> setBody() {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetBodyType answer = new SetBodyType(clause);\n        addOutput(answer);\n        return clause;\n    }\n\n    /**\n     * Adds a processor which sets the body on the IN message\n     */\n    public Type setBody(Expression expression) {\n        SetBodyType answer = new SetBodyType(expression);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the body on the OUT message\n     *\n     * @deprecated Please use {@link #transform(Expression)} instead. Will be removed in Camel 2.0.\n     */\n    @Deprecated\n    public Type setOutBody(Expression expression) {\n        return transform(expression);\n    }\n\n    /**\n     * Adds a processor which sets the body on the OUT message\n     *\n     * @deprecated Please use {@link #transform()} instead. Will be removed in Camel 2.0.\n     */\n    @Deprecated\n    public ExpressionClause<ProcessorType<Type>> setOutBody() {\n        return transform();\n    }\n\n    /**\n     * Adds a processor which sets the body on the OUT message\n     */\n    public Type transform(Expression expression) {\n        TransformType answer = new TransformType(expression);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the body on the OUT message\n     */\n    public ExpressionClause<ProcessorType<Type>> transform() {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        TransformType answer = new TransformType(clause);\n        addOutput(answer);\n        return clause;\n    }\n\n    /**\n     * Adds a processor which sets the body on the FAULT message\n     */\n    public Type setFaultBody(Expression expression) {\n        return process(ProcessorBuilder.setFaultBody(expression));\n    }\n\n    /**\n     * Adds a processor which sets the header on the IN message\n     */\n    public ExpressionClause<ProcessorType<Type>> setHeader(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetHeaderType answer = new SetHeaderType(name, clause);\n        addOutput(answer);\n        return clause;\n    }\n\n    /**\n     * Adds a processor which sets the header on the IN message\n     */\n    public Type setHeader(String name, Expression expression) {\n        SetHeaderType answer = new SetHeaderType(name, expression);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the header on the IN message to the given value\n     * @deprecated Please use {@link #setHeader(String, Expression)} instead. Will be removed in Camel 2.0.\n     */\n    public Type setHeader(String name, String value) {\n        SetHeaderType answer = new SetHeaderType(name, value);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the header on the OUT message\n     */\n    public ExpressionClause<ProcessorType<Type>> setOutHeader(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetOutHeaderType answer = new SetOutHeaderType(name, clause);\n        addOutput(answer);\n        return clause;\n    }\n\n    /**\n     * Adds a processor which sets the header on the OUT message\n     */\n    public Type setOutHeader(String name, Expression expression) {\n        SetOutHeaderType answer = new SetOutHeaderType(name, expression);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which sets the header on the FAULT message\n     */\n    public Type setFaultHeader(String name, Expression expression) {\n        return process(ProcessorBuilder.setFaultHeader(name, expression));\n    }\n\n    /**\n     * Adds a processor which sets the exchange property\n     */\n    public Type setProperty(String name, Expression expression) {\n        SetPropertyType answer = new SetPropertyType(name, expression);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n\n    /**\n     * Adds a processor which sets the exchange property\n     */\n    public ExpressionClause<ProcessorType<Type>> setProperty(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetPropertyType answer = new SetPropertyType(name, clause);\n        addOutput(answer);\n        return clause;\n    }\n\n    /**\n     * Adds a processor which removes the header on the IN message\n     */\n    public Type removeHeader(String name) {\n        RemoveHeaderType answer = new RemoveHeaderType(name);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Adds a processor which removes the header on the FAULT message\n     */\n    public Type removeFaultHeader(String name) {\n        return process(ProcessorBuilder.removeFaultHeader(name));\n    }\n\n    /**\n     * Adds a processor which removes the exchange property\n     */\n    public Type removeProperty(String name) {\n        RemovePropertyType answer = new RemovePropertyType(name);\n        addOutput(answer);\n        return (Type) this;\n    }\n\n    /**\n     * Converts the IN message body to the specified type\n     */\n    public Type convertBodyTo(Class type) {\n        addOutput(new ConvertBodyType(type));\n        return (Type) this;\n    }\n    \n    /**\n     * Converts the IN message body to the specified class type\n     */\n    public Type convertBodyTo(String typeString) {\n        addOutput(new ConvertBodyType(typeString));\n        return (Type) this;\n    }\n\n    /**\n     * Converts the OUT message body to the specified type\n     *\n     * @deprecated Please use {@link #convertBodyTo(Class)} instead. Will be removed in Camel 2.0.\n     */\n    @Deprecated\n    public Type convertOutBodyTo(Class type) {\n        return process(new ConvertBodyProcessor(type));\n    }\n\n    /**\n     * Converts the FAULT message body to the specified type\n     *\n     * @deprecated Please use {@link #convertBodyTo(Class)} instead. Will be removed in Camel 2.0.\n     */\n    @Deprecated\n    public Type convertFaultBodyTo(Class type) {\n        return process(new ConvertBodyProcessor(type));\n    }\n\n\n    /**\n     * Unmarshals the in body using a {@link DataFormat} expression to define\n     * the format of the input message and the output will be set on the out message body.\n     *\n     * @return the expression to create the {@link DataFormat}\n     */\n    public DataFormatClause<ProcessorType<Type>> unmarshal() {\n        return new DataFormatClause<ProcessorType<Type>>(this, DataFormatClause.Operation.Unmarshal);\n    }\n\n    /**\n     * Unmarshals the in body using the specified {@link DataFormat}\n     * and sets the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type unmarshal(DataFormatType dataFormatType) {\n        addOutput(new UnmarshalType(dataFormatType));\n        return (Type) this;\n    }\n\n    /**\n     * Unmarshals the in body using the specified {@link DataFormat}\n     * and sets the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type unmarshal(DataFormat dataFormat) {\n        return unmarshal(new DataFormatType(dataFormat));\n    }\n\n    /**\n     * Unmarshals the in body using the specified {@link DataFormat}\n     * reference in the {@link org.apache.camel.spi.Registry} and sets\n     * the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type unmarshal(String dataTypeRef) {\n        addOutput(new UnmarshalType(dataTypeRef));\n        return (Type) this;\n    }\n\n    /**\n     * Marshals the in body using a {@link DataFormat} expression to define\n     * the format of the output which will be added to the out body.\n     *\n     * @return the expression to create the {@link DataFormat}\n     */\n    public DataFormatClause<ProcessorType<Type>> marshal() {\n        return new DataFormatClause<ProcessorType<Type>>(this, DataFormatClause.Operation.Marshal);\n    }\n\n    /**\n     * Marshals the in body using the specified {@link DataFormat}\n     * and sets the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type marshal(DataFormatType dataFormatType) {\n        addOutput(new MarshalType(dataFormatType));\n        return (Type) this;\n    }\n\n    /**\n     * Marshals the in body using the specified {@link DataFormat}\n     * and sets the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type marshal(DataFormat dataFormat) {\n        return marshal(new DataFormatType(dataFormat));\n    }\n\n    /**\n     * Marshals the in body the specified {@link DataFormat}\n     * reference in the {@link org.apache.camel.spi.Registry} and sets\n     * the output on the out message body.\n     *\n     * @return this object\n     */\n    public Type marshal(String dataTypeRef) {\n        addOutput(new MarshalType(dataTypeRef));\n        return (Type) this;\n    }\n\n    @XmlTransient\n    public ProcessorType<? extends ProcessorType> getParent() {\n        return parent;\n    }\n\n    public void setParent(ProcessorType<? extends ProcessorType> parent) {\n        this.parent = parent;\n    }\n\n    @XmlTransient\n    public ErrorHandlerBuilder getErrorHandlerBuilder() {\n        if (errorHandlerBuilder == null) {\n            errorHandlerBuilder = createErrorHandlerBuilder();\n        }\n        return errorHandlerBuilder;\n    }\n\n    /**\n     * Sets the error handler to use with processors created by this builder\n     */\n    public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder) {\n        this.errorHandlerBuilder = errorHandlerBuilder;\n    }\n\n    /**\n     * Sets the error handler if one is not already set\n     */\n    protected void setErrorHandlerBuilderIfNull(ErrorHandlerBuilder errorHandlerBuilder) {\n        if (this.errorHandlerBuilder == null) {\n            setErrorHandlerBuilder(errorHandlerBuilder);\n        }\n    }\n\n    public String getErrorHandlerRef() {\n        return errorHandlerRef;\n    }\n\n    /**\n     * Sets the bean ref name of the error handler builder to use on this route\n     */\n    @XmlAttribute(required = false)\n    public void setErrorHandlerRef(String errorHandlerRef) {\n        this.errorHandlerRef = errorHandlerRef;\n        setErrorHandlerBuilder(new ErrorHandlerBuilderRef(errorHandlerRef));\n    }\n\n    @XmlTransient\n    public boolean isInheritErrorHandler() {\n        return isInheritErrorHandler(getInheritErrorHandlerFlag());\n    }\n\n    /**\n     * Lets default the inherit value to be true if there is none specified\n     */\n    public static boolean isInheritErrorHandler(Boolean value) {\n        return value == null || value.booleanValue();\n    }\n\n    @XmlAttribute(name = \"inheritErrorHandler\", required = false)\n    public Boolean getInheritErrorHandlerFlag() {\n        return inheritErrorHandlerFlag;\n    }\n\n    public void setInheritErrorHandlerFlag(Boolean inheritErrorHandlerFlag) {\n        this.inheritErrorHandlerFlag = inheritErrorHandlerFlag;\n    }\n\n    @XmlTransient\n    public NodeFactory getNodeFactory() {\n        if (nodeFactory == null) {\n            nodeFactory = new NodeFactory();\n        }\n        return nodeFactory;\n    }\n\n    public void setNodeFactory(NodeFactory nodeFactory) {\n        this.nodeFactory = nodeFactory;\n    }\n\n    /**\n     * Returns a label to describe this node such as the expression if some kind of expression node\n     */\n    public String getLabel() {\n        return \"\";\n    }\n\n\n    /**\n     * Creates the processor and wraps it in any necessary interceptors and\n     * error handlers\n     */\n    protected Processor makeProcessor(RouteContext routeContext) throws Exception {\n        Processor processor = createProcessor(routeContext);\n        return wrapProcessor(routeContext, processor);\n    }\n\n    /**\n     * A strategy method which allows derived classes to wrap the child\n     * processor in some kind of interceptor\n     *\n     * @param routeContext\n     * @param target       the processor which can be wrapped\n     * @return the original processor or a new wrapped interceptor\n     */\n    protected Processor wrapProcessorInInterceptors(RouteContext routeContext, Processor target) throws Exception {\n        if (target == null) {\n            throw new IllegalArgumentException(\"target not provided on node: \" + this);\n        }\n\n        List<InterceptStrategy> strategies = new ArrayList<InterceptStrategy>();\n        CamelContext camelContext = routeContext.getCamelContext();\n        if (camelContext instanceof DefaultCamelContext) {\n            DefaultCamelContext defaultCamelContext = (DefaultCamelContext) camelContext;\n            strategies.addAll(defaultCamelContext.getInterceptStrategies());\n        }\n        strategies.addAll(routeContext.getInterceptStrategies());\n        for (InterceptStrategy strategy : strategies) {\n            if (strategy != null) {\n                target = strategy.wrapProcessorInInterceptors(this, target);\n            }\n        }\n\n        List<InterceptorType> list = routeContext.getRoute().getInterceptors();\n        if (interceptors != null) {\n            list.addAll(interceptors);\n        }\n        Collections.reverse(list);\n        Set<Processor> interceptors = new HashSet<Processor>();\n        interceptors.add(target);\n        for (InterceptorType interceptorType : list) {\n            DelegateProcessor interceptor = interceptorType.createInterceptor(routeContext);\n            if (!interceptors.contains(interceptor)) {\n                interceptors.add(interceptor);\n                if (interceptor.getProcessor() != null) {\n                    LOG.warn(\"Interceptor \" + interceptor + \" currently wraps target \"\n                            + interceptor.getProcessor()\n                            + \" is attempting to change target \" + target\n                            + \" new wrapping has been denied.\");\n                } else {\n                    interceptor.setProcessor(target);\n                    target = interceptor;\n                }\n            }\n        }\n        return target;\n    }\n\n    /**\n     * A strategy method to allow newly created processors to be wrapped in an\n     * error handler.\n     */\n    protected Processor wrapInErrorHandler(RouteContext routeContext, Processor target) throws Exception {\n        if (target == null) {\n            throw new IllegalArgumentException(\"target not provided on node: \" + this);\n        }\n\n        ErrorHandlerWrappingStrategy strategy = routeContext.getErrorHandlerWrappingStrategy();\n\n        if (strategy != null) {\n            return strategy.wrapProcessorInErrorHandler(routeContext, this, target);\n        }\n\n        return getErrorHandlerBuilder().createErrorHandler(routeContext, target);\n    }\n\n    protected ErrorHandlerBuilder createErrorHandlerBuilder() {\n        if (errorHandlerRef != null) {\n            return new ErrorHandlerBuilderRef(errorHandlerRef);\n        }\n        if (isInheritErrorHandler()) {\n            return new DeadLetterChannelBuilder();\n        } else {\n            return new NoErrorHandlerBuilder();\n        }\n    }\n\n    protected void configureChild(ProcessorType output) {\n        output.setNodeFactory(getNodeFactory());\n    }\n\n    public void addOutput(ProcessorType processorType) {\n        processorType.setParent(this);\n        configureChild(processorType);\n        if (blocks.isEmpty()) {\n            getOutputs().add(processorType);\n        } else {\n            Block block = blocks.getLast();\n            block.addOutput(processorType);\n        }\n    }\n\n    /**\n     * Creates a new instance of some kind of composite processor which defaults\n     * to using a {@link Pipeline} but derived classes could change the\n     * behaviour\n     */\n    protected Processor createCompositeProcessor(RouteContext routeContext, List<Processor> list) {\n        return new Pipeline(list);\n    }\n\n    protected Processor createOutputsProcessor(RouteContext routeContext, Collection<ProcessorType<?>> outputs)\n        throws Exception {\n        List<Processor> list = new ArrayList<Processor>();\n        for (ProcessorType output : outputs) {\n            Processor processor = output.createProcessor(routeContext);\n            if (output instanceof ProceedType && processor == null) {\n                continue;\n            }\n            processor = output.wrapProcessorInInterceptors(routeContext, processor);\n\n            ProcessorType currentProcessor = this;\n            if (!(currentProcessor instanceof ExceptionType || currentProcessor instanceof TryType)) {\n                processor = output.wrapInErrorHandler(routeContext, processor);\n            }\n\n            list.add(processor);\n        }\n        Processor processor = null;\n        if (!list.isEmpty()) {\n            if (list.size() == 1) {\n                processor = list.get(0);\n            } else {\n                processor = createCompositeProcessor(routeContext, list);\n            }\n        }\n        return processor;\n    }\n\n    public void clearOutput() {\n        getOutputs().clear();\n        blocks.clear();", "functions": [{"function_name": "getOutputs", "code": "    public abstract List<ProcessorType<?>> getOutputs();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "createProcessor", "code": "    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        throw new UnsupportedOperationException(\"Not implemented yet for class: \" + getClass().getName());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createOutputsProcessor", "code": "    public Processor createOutputsProcessor(RouteContext routeContext) throws Exception {\n        Collection<ProcessorType<?>> outputs = getOutputs();\n        return createOutputsProcessor(routeContext, outputs);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addRoutes", "code": "    public void addRoutes(RouteContext routeContext, Collection<Route> routes) throws Exception {\n        Processor processor = makeProcessor(routeContext);\n        if (!routeContext.isRouteAdded()) {\n            routeContext.addEventDrivenProcessor(processor);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "wrapProcessor", "code": "    public Processor wrapProcessor(RouteContext routeContext, Processor processor) throws Exception {\n        processor = wrapProcessorInInterceptors(routeContext, processor);\n        return wrapInErrorHandler(routeContext, processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "to", "code": "    public Type to(String uri) {\n        addOutput(new ToType(uri));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "to", "code": "    public Type to(Endpoint endpoint) {\n        addOutput(new ToType(endpoint));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "to", "code": "    public Type to(ExchangePattern pattern, String uri) {\n        addOutput(new ToType(uri, pattern));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "to", "code": "    public Type to(ExchangePattern pattern, Endpoint endpoint) {\n        addOutput(new ToType(endpoint, pattern));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "to", "code": "    public Type to(String... uris) {\n        for (String uri : uris) {\n            addOutput(new ToType(uri));\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "to", "code": "    public Type to(Endpoint... endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint));\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "to", "code": "    public Type to(Iterable<Endpoint> endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint));\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "to", "code": "    public Type to(ExchangePattern pattern, String... uris) {\n        for (String uri : uris) {\n            addOutput(new ToType(uri, pattern));\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "to", "code": "    public Type to(ExchangePattern pattern, Endpoint... endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint, pattern));\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "to", "code": "    public Type to(ExchangePattern pattern, Iterable<Endpoint> endpoints) {\n        for (Endpoint endpoint : endpoints) {\n            addOutput(new ToType(endpoint, pattern));\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExchangePattern", "code": "    public Type setExchangePattern(ExchangePattern exchangePattern) {\n        addOutput(new SetExchangePatternType(exchangePattern));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "inOnly", "code": "    public Type inOnly() {\n        return setExchangePattern(ExchangePattern.InOnly);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "inOnly", "code": "    public Type inOnly(String uri) {\n        return to(ExchangePattern.InOnly, uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inOnly", "code": "    public Type inOnly(Endpoint endpoint) {\n        return to(ExchangePattern.InOnly, endpoint);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inOnly", "code": "    public Type inOnly(String... uris) {\n        return to(ExchangePattern.InOnly, uris);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inOnly", "code": "    public Type inOnly(Endpoint... endpoints) {\n        return to(ExchangePattern.InOnly, endpoints);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inOnly", "code": "    public Type inOnly(Iterable<Endpoint> endpoints) {\n        return to(ExchangePattern.InOnly, endpoints);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inOut", "code": "    public Type inOut() {\n        return setExchangePattern(ExchangePattern.InOut);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "inOut", "code": "    public Type inOut(String uri) {\n        return to(ExchangePattern.InOut, uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inOut", "code": "    public Type inOut(Endpoint endpoint) {\n        return to(ExchangePattern.InOut, endpoint);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inOut", "code": "    public Type inOut(String... uris) {\n        return to(ExchangePattern.InOut, uris);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inOut", "code": "    public Type inOut(Endpoint... endpoints) {\n        return to(ExchangePattern.InOut, endpoints);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inOut", "code": "    public Type inOut(Iterable<Endpoint> endpoints) {\n        return to(ExchangePattern.InOut, endpoints);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "multicast", "code": "    public MulticastType multicast() {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "multicast", "code": "    public MulticastType multicast(AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "multicast", "code": "    public MulticastType multicast(AggregationStrategy aggregationStrategy) {\n        MulticastType answer = new MulticastType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "pipeline", "code": "    public Type pipeline(String... uris) {\n        return to(uris);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "pipeline", "code": "    public Type pipeline(Endpoint... endpoints) {\n        return to(endpoints);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "pipeline", "code": "    public Type pipeline(Collection<Endpoint> endpoints) {\n        return to(endpoints);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "end", "code": "    public ProcessorType<? extends ProcessorType> end() {\n        if (blocks.isEmpty()) {\n            if (parent == null) {\n                throw new IllegalArgumentException(\"Root node with no active block\");\n            }\n            return parent;\n        }\n        popBlock();\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "RETURN", "IF", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [6, 7], [6, 8], [7, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 6], [8, 6], [9, 7], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "thread", "code": "    public ThreadType thread(int coreSize) {\n        ThreadType answer = new ThreadType(coreSize);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "thread", "code": "    public ProcessorType<Type> thread(ThreadPoolExecutor executor) {\n        ThreadType answer = new ThreadType(executor);\n        addOutput(answer);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "idempotentConsumer", "code": "    public IdempotentConsumerType idempotentConsumer(Expression messageIdExpression,\n            MessageIdRepository messageIdRepository) {\n        IdempotentConsumerType answer = new IdempotentConsumerType(messageIdExpression, messageIdRepository);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "idempotentConsumer", "code": "    public ExpressionClause<IdempotentConsumerType> idempotentConsumer(MessageIdRepository messageIdRepository) {\n        IdempotentConsumerType answer = new IdempotentConsumerType();\n        answer.setMessageIdRepository(messageIdRepository);\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "filter", "code": "    public ExpressionClause<FilterType> filter() {\n        FilterType filter = new FilterType();\n        addOutput(filter);\n        return ExpressionClause.createAndSetExpression(filter);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "filter", "code": "    public FilterType filter(Predicate predicate) {\n        FilterType filter = new FilterType(predicate);\n        addOutput(filter);\n        return filter;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "filter", "code": "    public FilterType filter(ExpressionType expression) {\n        FilterType filter = getNodeFactory().createFilter();\n        filter.setExpression(expression);\n        addOutput(filter);\n        return filter;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "filter", "code": "    public FilterType filter(String language, String expression) {\n        return filter(new LanguageExpression(language, expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "loadBalance", "code": "    public LoadBalanceType loadBalance() {\n        LoadBalanceType answer = new LoadBalanceType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "choice", "code": "    public ChoiceType choice() {\n        ChoiceType answer = new ChoiceType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "tryBlock", "code": "    public TryType tryBlock() {\n        TryType answer = new TryType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "recipientList", "code": "    public Type recipientList(Expression recipients) {\n        RecipientListType answer = new RecipientListType(recipients);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "recipientList", "code": "    public ExpressionClause<ProcessorType<Type>> recipientList() {\n        RecipientListType answer = new RecipientListType();\n        addOutput(answer);\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        answer.setExpression(clause);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "routingSlip", "code": "    public Type routingSlip(String header, String uriDelimiter) {\n        RoutingSlipType answer = new RoutingSlipType(header, uriDelimiter);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "routingSlip", "code": "    public Type routingSlip(String header) {\n        RoutingSlipType answer = new RoutingSlipType(header);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "routingSlip", "code": "    public Type routingSlip() {\n        RoutingSlipType answer = new RoutingSlipType();\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "splitter", "code": "    public SplitterType splitter(Expression recipients) {\n        SplitterType answer = new SplitterType(recipients);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "splitter", "code": "    public ExpressionClause<SplitterType> splitter() {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "splitter", "code": "    public SplitterType splitter(Expression partsExpression, AggregationStrategy aggregationStrategy) {\n        SplitterType answer = new SplitterType(partsExpression);\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "splitter", "code": "    public ExpressionClause<SplitterType> splitter(AggregationStrategy aggregationStrategy) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "splitter", "code": "    public SplitterType splitter(Expression recipients, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType(recipients);\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "splitter", "code": "    public SplitterType splitter(Expression recipients, boolean parallelProcessing, ThreadPoolExecutor threadPoolExecutor) {\n        SplitterType answer = new SplitterType(recipients);\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        answer.setThreadPoolExecutor(threadPoolExecutor);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "splitter", "code": "    public ExpressionClause<SplitterType> splitter(boolean parallelProcessing) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "splitter", "code": "    public ExpressionClause<SplitterType> splitter(boolean parallelProcessing, ThreadPoolExecutor threadPoolExecutor) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setParallelProcessing(parallelProcessing);\n        answer.setThreadPoolExecutor(threadPoolExecutor);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "splitter", "code": "    public SplitterType splitter(Expression partsExpression,\n            AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType(partsExpression);\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "splitter", "code": "    public SplitterType splitter(Expression partsExpression,\n            AggregationStrategy aggregationStrategy, boolean parallelProcessing, ThreadPoolExecutor threadPoolExecutor) {\n        SplitterType answer = new SplitterType(partsExpression);\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        answer.setThreadPoolExecutor(threadPoolExecutor);        \n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "splitter", "code": "    public ExpressionClause<SplitterType> splitter(AggregationStrategy aggregationStrategy, boolean parallelProcessing) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "splitter", "code": "    public ExpressionClause<SplitterType> splitter(AggregationStrategy aggregationStrategy, boolean parallelProcessing, ThreadPoolExecutor threadPoolExecutor) {\n        SplitterType answer = new SplitterType();\n        addOutput(answer);\n        answer.setAggregationStrategy(aggregationStrategy);\n        answer.setParallelProcessing(parallelProcessing);\n        answer.setThreadPoolExecutor(threadPoolExecutor);           \n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "resequencer", "code": "    public ExpressionClause<ResequencerType> resequencer() {\n        ResequencerType answer = new ResequencerType();\n        addOutput(answer);\n        ExpressionClause<ResequencerType> clause = new ExpressionClause<ResequencerType>(answer);\n        answer.expression(clause);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "resequencer", "code": "    public ResequencerType resequencer(Expression<Exchange> expression) {\n        return resequencer(Collections.<Expression>singletonList(expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "resequencer", "code": "    public ResequencerType resequencer(List<Expression> expressions) {\n        ResequencerType answer = new ResequencerType(expressions);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resequencer", "code": "    public ResequencerType resequencer(Expression... expressions) {\n        List<Expression> list = new ArrayList<Expression>();\n        list.addAll(Arrays.asList(expressions));\n        return resequencer(list);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "aggregator", "code": "    public ExpressionClause<AggregatorType> aggregator() {\n        AggregatorType answer = new AggregatorType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "aggregator", "code": "    public ExpressionClause<AggregatorType> aggregator(AggregationStrategy aggregationStrategy) {\n        AggregatorType answer = new AggregatorType();\n        answer.setAggregationStrategy(aggregationStrategy);\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "aggregator", "code": "    public AggregatorType aggregator(AggregationCollection aggregationCollection) {\n        AggregatorType answer = new AggregatorType();\n        answer.setAggregationCollection(aggregationCollection);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "aggregator", "code": "    public AggregatorType aggregator(Expression correlationExpression) {\n        AggregatorType answer = new AggregatorType(correlationExpression);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "aggregator", "code": "    public AggregatorType aggregator(Expression correlationExpression, AggregationStrategy aggregationStrategy) {\n        AggregatorType answer = new AggregatorType(correlationExpression, aggregationStrategy);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "delayer", "code": "    public DelayerType delayer(Expression<Exchange> processAtExpression) {\n        return delayer(processAtExpression, 0L);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "delayer", "code": "    public DelayerType delayer(Expression<Exchange> processAtExpression, long delay) {\n        DelayerType answer = new DelayerType(processAtExpression, delay);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "delayer", "code": "    public ExpressionClause<DelayerType> delayer() {\n        DelayerType answer = new DelayerType();\n        addOutput(answer);\n        return ExpressionClause.createAndSetExpression(answer);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "delayer", "code": "    public DelayerType delayer(long delay) {\n        return delayer(null, delay);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "throttler", "code": "    public ThrottlerType throttler(long maximumRequestCount) {\n        ThrottlerType answer = new ThrottlerType(maximumRequestCount);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "loop", "code": "    public ExpressionClause<LoopType> loop() {\n        LoopType loop = new LoopType();\n        addOutput(loop);\n        return ExpressionClause.createAndSetExpression(loop);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "loop", "code": "    public LoopType loop(Expression<?> expression) {\n        LoopType loop = getNodeFactory().createLoop();\n        loop.setExpression(expression);\n        addOutput(loop);\n        return loop;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "loop", "code": "    public LoopType loop(int count) {\n        LoopType loop = getNodeFactory().createLoop();\n        loop.setExpression(new ConstantExpression(Integer.toString(count)));\n        addOutput(loop);\n        return loop;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [2, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 2], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "throwFault", "code": "    public Type throwFault(Throwable fault) {\n        ThrowFaultType answer = new ThrowFaultType();\n        answer.setFault(fault);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "throwFault", "code": "    public Type throwFault(String message) {\n        return throwFault(new CamelException(message));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "interceptor", "code": "    public Type interceptor(String ref) {\n        InterceptorRef interceptor = new InterceptorRef(ref);\n        intercept(interceptor);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "intercept", "code": "    public Type intercept(DelegateProcessor interceptor) {\n        intercept(new InterceptorRef(interceptor));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "intercept", "code": "    public InterceptType intercept() {\n        InterceptType answer = new InterceptType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "intercept", "code": "    public void intercept(InterceptorType interceptor) {\n        addOutput(interceptor);\n        pushBlock(interceptor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addInterceptor", "code": "    public void addInterceptor(InterceptorType interceptor) {\n        interceptors.add(interceptor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addInterceptor", "code": "    public void addInterceptor(DelegateProcessor interceptor) {\n        addInterceptor(new InterceptorRef(interceptor));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "pushBlock", "code": "    public void pushBlock(Block block) {\n        blocks.add(block);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popBlock", "code": "    public Block popBlock() {\n        return blocks.isEmpty() ? null : blocks.removeLast();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "proceed", "code": "    public Type proceed() {\n        ProceedType proceed = null;\n        ProcessorType currentProcessor = this;\n\n        if (currentProcessor instanceof InterceptType) {\n            proceed = ((InterceptType) currentProcessor).getProceed();\n            LOG.info(\"proceed() is the implied and hence not needed for an intercept()\");\n        }\n        if (proceed == null) {\n            for (ProcessorType node = parent; node != null; node = node.getParent()) {\n                if (node instanceof InterceptType) {\n                    InterceptType intercept = (InterceptType)node;\n                    proceed = intercept.getProceed();\n                    break;\n                }\n            }\n\n            if (proceed == null) {\n                throw new IllegalArgumentException(\"Cannot use proceed() without being within an intercept() block\");\n            }\n\n        }\n\n        addOutput(proceed);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [2, 10], [7, 11], [5, 12], [9, 13], [10, 14], [10, 15], [3, 16], [3, 17], [9, 18], [13, 19], [10, 20], [14, 21], [15, 22], [16, 23], [18, 24], [20, 25], [24, 26], [20, 27], [20, 28], [20, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 2], [11, 7], [12, 5], [13, 9], [14, 10], [15, 10], [16, 3], [17, 3], [18, 9], [19, 13], [20, 10], [21, 14], [22, 15], [23, 16], [24, 18], [25, 20], [26, 24], [27, 20], [28, 20], [29, 20], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "stop", "code": "    public Type stop() {\n        ProcessorType currentProcessor = this;\n\n        if (currentProcessor instanceof InterceptType) {\n            ((InterceptType) currentProcessor).stopIntercept();\n        } else {\n            ProcessorType node;\n            for (node = parent; node != null; node = node.getParent()) {\n                if (node instanceof InterceptType) {\n                    ((InterceptType) node).stopIntercept();\n                    break;\n                }\n            }\n            if (node == null) {\n                throw new IllegalArgumentException(\"Cannot use stop() without being within an intercept() block\");\n            }\n        }\n\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [5, 12], [8, 13], [6, 14], [9, 15], [10, 16], [12, 17], [14, 18], [17, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 5], [13, 8], [14, 6], [15, 9], [16, 10], [17, 12], [18, 14], [19, 17], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "exception", "code": "    public ExceptionType exception(Class exceptionType) {\n        return onException(exceptionType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "onException", "code": "    public ExceptionType onException(Class exceptionType) {\n        ExceptionType answer = new ExceptionType(exceptionType);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "intercept", "code": "    public ChoiceType intercept(Predicate predicate) {\n        InterceptType answer = new InterceptType();\n        addOutput(answer);\n        return answer.when(predicate);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "interceptors", "code": "    public Type interceptors(String... refs) {\n        for (String ref : refs) {\n            interceptor(ref);\n        }\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "trace", "code": "    public Type trace() {\n        return trace(DEFAULT_TRACE_CATEGORY);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "trace", "code": "    public Type trace(String category) {\n        final Log log = LogFactory.getLog(category);\n        return intercept(new DelegateProcessor() {\n            @Override\n            public void process(Exchange exchange) throws Exception {\n                log.trace(exchange);\n                processNext(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [5, 7], [7, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 5], [8, 7], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "policies", "code": "    public PolicyRef policies() {\n        PolicyRef answer = new PolicyRef();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "policy", "code": "    public PolicyRef policy(Policy policy) {\n        PolicyRef answer = new PolicyRef(policy);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "handleFault", "code": "    public Type handleFault() {\n        intercept(new HandleFaultType());\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "errorHandler", "code": "    public Type errorHandler(ErrorHandlerBuilder errorHandlerBuilder) {\n        setErrorHandlerBuilder(errorHandlerBuilder);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inheritErrorHandler", "code": "    public Type inheritErrorHandler(boolean condition) {\n        setInheritErrorHandlerFlag(condition);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "process", "code": "    public Type process(Processor processor) {\n        ProcessorRef answer = new ProcessorRef(processor);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "processRef", "code": "    public Type processRef(String ref) {\n        ProcessorRef answer = new ProcessorRef();\n        answer.setRef(ref);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "bean", "code": "    public Type bean(Object bean) {\n        BeanRef answer = new BeanRef();\n        answer.setBean(bean);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "bean", "code": "    public Type bean(Object bean, String method) {\n        BeanRef answer = new BeanRef();\n        answer.setBean(bean);\n        answer.setMethod(method);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "bean", "code": "    public Type bean(Class beanType) {\n        BeanRef answer = new BeanRef();\n        answer.setBeanType(beanType);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "bean", "code": "    public Type bean(Class beanType, String method) {\n        BeanRef answer = new BeanRef();\n        answer.setBeanType(beanType);\n        answer.setMethod(method);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "beanRef", "code": "    public Type beanRef(String ref) {\n        BeanRef answer = new BeanRef(ref);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "beanRef", "code": "    public Type beanRef(String ref, String method) {\n        BeanRef answer = new BeanRef(ref, method);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setBody", "code": "    public ExpressionClause<ProcessorType<Type>> setBody() {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetBodyType answer = new SetBodyType(clause);\n        addOutput(answer);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setBody", "code": "    public Type setBody(Expression expression) {\n        SetBodyType answer = new SetBodyType(expression);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setOutBody", "code": "    @Deprecated\n    public Type setOutBody(Expression expression) {\n        return transform(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setOutBody", "code": "    @Deprecated\n    public ExpressionClause<ProcessorType<Type>> setOutBody() {\n        return transform();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "transform", "code": "    public Type transform(Expression expression) {\n        TransformType answer = new TransformType(expression);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "transform", "code": "    public ExpressionClause<ProcessorType<Type>> transform() {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        TransformType answer = new TransformType(clause);\n        addOutput(answer);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setFaultBody", "code": "    public Type setFaultBody(Expression expression) {\n        return process(ProcessorBuilder.setFaultBody(expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setHeader", "code": "    public ExpressionClause<ProcessorType<Type>> setHeader(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetHeaderType answer = new SetHeaderType(name, clause);\n        addOutput(answer);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setHeader", "code": "    public Type setHeader(String name, Expression expression) {\n        SetHeaderType answer = new SetHeaderType(name, expression);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setHeader", "code": "    public Type setHeader(String name, String value) {\n        SetHeaderType answer = new SetHeaderType(name, value);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOutHeader", "code": "    public ExpressionClause<ProcessorType<Type>> setOutHeader(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetOutHeaderType answer = new SetOutHeaderType(name, clause);\n        addOutput(answer);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setOutHeader", "code": "    public Type setOutHeader(String name, Expression expression) {\n        SetOutHeaderType answer = new SetOutHeaderType(name, expression);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setFaultHeader", "code": "    public Type setFaultHeader(String name, Expression expression) {\n        return process(ProcessorBuilder.setFaultHeader(name, expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setProperty", "code": "    public Type setProperty(String name, Expression expression) {\n        SetPropertyType answer = new SetPropertyType(name, expression);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setProperty", "code": "    public ExpressionClause<ProcessorType<Type>> setProperty(String name) {\n        ExpressionClause<ProcessorType<Type>> clause = new ExpressionClause<ProcessorType<Type>>((Type) this);\n        SetPropertyType answer = new SetPropertyType(name, clause);\n        addOutput(answer);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "removeHeader", "code": "    public Type removeHeader(String name) {\n        RemoveHeaderType answer = new RemoveHeaderType(name);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "removeFaultHeader", "code": "    public Type removeFaultHeader(String name) {\n        return process(ProcessorBuilder.removeFaultHeader(name));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeProperty", "code": "    public Type removeProperty(String name) {\n        RemovePropertyType answer = new RemovePropertyType(name);\n        addOutput(answer);\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "convertBodyTo", "code": "    public Type convertBodyTo(Class type) {\n        addOutput(new ConvertBodyType(type));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "convertBodyTo", "code": "    public Type convertBodyTo(String typeString) {\n        addOutput(new ConvertBodyType(typeString));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "convertOutBodyTo", "code": "    @Deprecated\n    public Type convertOutBodyTo(Class type) {\n        return process(new ConvertBodyProcessor(type));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "convertFaultBodyTo", "code": "    @Deprecated\n    public Type convertFaultBodyTo(Class type) {\n        return process(new ConvertBodyProcessor(type));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unmarshal", "code": "    public DataFormatClause<ProcessorType<Type>> unmarshal() {\n        return new DataFormatClause<ProcessorType<Type>>(this, DataFormatClause.Operation.Unmarshal);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "unmarshal", "code": "    public Type unmarshal(DataFormatType dataFormatType) {\n        addOutput(new UnmarshalType(dataFormatType));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unmarshal", "code": "    public Type unmarshal(DataFormat dataFormat) {\n        return unmarshal(new DataFormatType(dataFormat));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unmarshal", "code": "    public Type unmarshal(String dataTypeRef) {\n        addOutput(new UnmarshalType(dataTypeRef));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "marshal", "code": "    public DataFormatClause<ProcessorType<Type>> marshal() {\n        return new DataFormatClause<ProcessorType<Type>>(this, DataFormatClause.Operation.Marshal);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "marshal", "code": "    public Type marshal(DataFormatType dataFormatType) {\n        addOutput(new MarshalType(dataFormatType));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "marshal", "code": "    public Type marshal(DataFormat dataFormat) {\n        return marshal(new DataFormatType(dataFormat));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "marshal", "code": "    public Type marshal(String dataTypeRef) {\n        addOutput(new MarshalType(dataTypeRef));\n        return (Type) this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getParent", "code": "    @XmlTransient\n    public ProcessorType<? extends ProcessorType> getParent() {\n        return parent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParent", "code": "    public void setParent(ProcessorType<? extends ProcessorType> parent) {\n        this.parent = parent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandlerBuilder", "code": "    @XmlTransient\n    public ErrorHandlerBuilder getErrorHandlerBuilder() {\n        if (errorHandlerBuilder == null) {\n            errorHandlerBuilder = createErrorHandlerBuilder();\n        }\n        return errorHandlerBuilder;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setErrorHandlerBuilder", "code": "    public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder) {\n        this.errorHandlerBuilder = errorHandlerBuilder;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorHandlerBuilderIfNull", "code": "    protected void setErrorHandlerBuilderIfNull(ErrorHandlerBuilder errorHandlerBuilder) {\n        if (this.errorHandlerBuilder == null) {\n            setErrorHandlerBuilder(errorHandlerBuilder);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getErrorHandlerRef", "code": "    public String getErrorHandlerRef() {\n        return errorHandlerRef;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorHandlerRef", "code": "    @XmlAttribute(required = false)\n    public void setErrorHandlerRef(String errorHandlerRef) {\n        this.errorHandlerRef = errorHandlerRef;\n        setErrorHandlerBuilder(new ErrorHandlerBuilderRef(errorHandlerRef));", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isInheritErrorHandler", "code": "    @XmlTransient\n    public boolean isInheritErrorHandler() {\n        return isInheritErrorHandler(getInheritErrorHandlerFlag());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isInheritErrorHandler", "code": "    public static boolean isInheritErrorHandler(Boolean value) {\n        return value == null || value.booleanValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getInheritErrorHandlerFlag", "code": "    @XmlAttribute(name = \"inheritErrorHandler\", required = false)\n    public Boolean getInheritErrorHandlerFlag() {\n        return inheritErrorHandlerFlag;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setInheritErrorHandlerFlag", "code": "    public void setInheritErrorHandlerFlag(Boolean inheritErrorHandlerFlag) {\n        this.inheritErrorHandlerFlag = inheritErrorHandlerFlag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNodeFactory", "code": "    @XmlTransient\n    public NodeFactory getNodeFactory() {\n        if (nodeFactory == null) {\n            nodeFactory = new NodeFactory();\n        }\n        return nodeFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setNodeFactory", "code": "    public void setNodeFactory(NodeFactory nodeFactory) {\n        this.nodeFactory = nodeFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLabel", "code": "    public String getLabel() {\n        return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "makeProcessor", "code": "    protected Processor makeProcessor(RouteContext routeContext) throws Exception {\n        Processor processor = createProcessor(routeContext);\n        return wrapProcessor(routeContext, processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "wrapProcessorInInterceptors", "code": "    protected Processor wrapProcessorInInterceptors(RouteContext routeContext, Processor target) throws Exception {\n        if (target == null) {\n            throw new IllegalArgumentException(\"target not provided on node: \" + this);\n        }\n\n        List<InterceptStrategy> strategies = new ArrayList<InterceptStrategy>();\n        CamelContext camelContext = routeContext.getCamelContext();\n        if (camelContext instanceof DefaultCamelContext) {\n            DefaultCamelContext defaultCamelContext = (DefaultCamelContext) camelContext;\n            strategies.addAll(defaultCamelContext.getInterceptStrategies());\n        }\n        strategies.addAll(routeContext.getInterceptStrategies());\n        for (InterceptStrategy strategy : strategies) {\n            if (strategy != null) {\n                target = strategy.wrapProcessorInInterceptors(this, target);\n            }\n        }\n\n        List<InterceptorType> list = routeContext.getRoute().getInterceptors();\n        if (interceptors != null) {\n            list.addAll(interceptors);\n        }\n        Collections.reverse(list);\n        Set<Processor> interceptors = new HashSet<Processor>();\n        interceptors.add(target);\n        for (InterceptorType interceptorType : list) {\n            DelegateProcessor interceptor = interceptorType.createInterceptor(routeContext);\n            if (!interceptors.contains(interceptor)) {\n                interceptors.add(interceptor);\n                if (interceptor.getProcessor() != null) {\n                    LOG.warn(\"Interceptor \" + interceptor + \" currently wraps target \"\n                            + interceptor.getProcessor()\n                            + \" is attempting to change target \" + target\n                            + \" new wrapping has been denied.\");\n                } else {\n                    interceptor.setProcessor(target);\n                    target = interceptor;\n                }\n            }\n        }\n        return target;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "VAR_DECL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [4, 15], [0, 16], [7, 17], [10, 18], [2, 19], [2, 20], [3, 21], [15, 22], [5, 23], [6, 24], [16, 25], [7, 26], [8, 27], [9, 28], [10, 29], [18, 30], [19, 31], [4, 32], [23, 33], [24, 34], [7, 35], [29, 36], [19, 37], [20, 38], [34, 39], [35, 40], [36, 41], [37, 42], [19, 43], [24, 44], [41, 45], [42, 46], [42, 47], [44, 48], [37, 49], [37, 50], [37, 51], [51, 52], [52, 53], [52, 54], [54, 55], [55, 56], [55, 57], [57, 58], [57, 59], [59, 60], [59, 61], [61, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 4], [16, 0], [17, 7], [18, 10], [19, 2], [20, 2], [21, 3], [22, 15], [23, 5], [24, 6], [25, 16], [26, 7], [27, 8], [28, 9], [29, 10], [30, 18], [31, 19], [32, 4], [33, 23], [34, 24], [35, 7], [36, 29], [37, 19], [38, 20], [39, 34], [40, 35], [41, 36], [42, 37], [43, 19], [44, 24], [45, 41], [46, 42], [47, 42], [48, 44], [49, 37], [50, 37], [51, 37], [52, 51], [53, 52], [54, 52], [55, 54], [56, 55], [57, 55], [58, 57], [59, 57], [60, 59], [61, 59], [62, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "wrapInErrorHandler", "code": "    protected Processor wrapInErrorHandler(RouteContext routeContext, Processor target) throws Exception {\n        if (target == null) {\n            throw new IllegalArgumentException(\"target not provided on node: \" + this);\n        }\n\n        ErrorHandlerWrappingStrategy strategy = routeContext.getErrorHandlerWrappingStrategy();\n\n        if (strategy != null) {\n            return strategy.wrapProcessorInErrorHandler(routeContext, this, target);\n        }\n\n        return getErrorHandlerBuilder().createErrorHandler(routeContext, target);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [7, 10], [2, 11], [8, 12], [3, 13], [4, 14], [9, 15], [11, 16], [14, 17], [17, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 7], [11, 2], [12, 8], [13, 3], [14, 4], [15, 9], [16, 11], [17, 14], [18, 17], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "createErrorHandlerBuilder", "code": "    protected ErrorHandlerBuilder createErrorHandlerBuilder() {\n        if (errorHandlerRef != null) {\n            return new ErrorHandlerBuilderRef(errorHandlerRef);\n        }\n        if (isInheritErrorHandler()) {\n            return new DeadLetterChannelBuilder();\n        } else {\n            return new NoErrorHandlerBuilder();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "BINARY_OP", "RETURN", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [2, 7], [4, 8], [5, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 2], [8, 4], [9, 5], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "configureChild", "code": "    protected void configureChild(ProcessorType output) {\n        output.setNodeFactory(getNodeFactory());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addOutput", "code": "    public void addOutput(ProcessorType processorType) {\n        processorType.setParent(this);\n        configureChild(processorType);\n        if (blocks.isEmpty()) {\n            getOutputs().add(processorType);\n        } else {\n            Block block = blocks.getLast();\n            block.addOutput(processorType);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createCompositeProcessor", "code": "    protected Processor createCompositeProcessor(RouteContext routeContext, List<Processor> list) {\n        return new Pipeline(list);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createOutputsProcessor", "code": "    protected Processor createOutputsProcessor(RouteContext routeContext, Collection<ProcessorType<?>> outputs)\n        throws Exception {\n        List<Processor> list = new ArrayList<Processor>();\n        for (ProcessorType output : outputs) {\n            Processor processor = output.createProcessor(routeContext);\n            if (output instanceof ProceedType && processor == null) {\n                continue;\n            }\n            processor = output.wrapProcessorInInterceptors(routeContext, processor);\n\n            ProcessorType currentProcessor = this;\n            if (!(currentProcessor instanceof ExceptionType || currentProcessor instanceof TryType)) {\n                processor = output.wrapInErrorHandler(routeContext, processor);\n            }\n\n            list.add(processor);\n        }\n        Processor processor = null;\n        if (!list.isEmpty()) {\n            if (list.size() == 1) {\n                processor = list.get(0);\n            } else {\n                processor = createCompositeProcessor(routeContext, list);\n            }\n        }\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [4, 11], [4, 12], [4, 13], [4, 14], [5, 15], [9, 16], [4, 17], [11, 18], [4, 19], [13, 20], [16, 21], [16, 22], [18, 23], [18, 24], [19, 25], [13, 26], [20, 27], [20, 28], [14, 29], [9, 30], [9, 31], [11, 32], [27, 33], [30, 34], [31, 35], [32, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 4], [12, 4], [13, 4], [14, 4], [15, 5], [16, 9], [17, 4], [18, 11], [19, 4], [20, 13], [21, 16], [22, 16], [23, 18], [24, 18], [25, 19], [26, 13], [27, 20], [28, 20], [29, 14], [30, 9], [31, 9], [32, 11], [33, 27], [34, 30], [35, 31], [36, 32], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "clearOutput", "code": "    public void clearOutput() {\n        getOutputs().clear();\n        blocks.clear();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "ant-1.3-93", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/taskdefs/XSLTLiaison.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.XSLTLiaison", "code": "public interface XSLTLiaison {\n\n    public void setStylesheet(String fileName) throws Exception;\n\n    public void addParam(String name, String expression) throws Exception;\n\n    public void transform(String infile, String outfile) throws Exception;", "functions": [{"function_name": "setStylesheet", "code": "    public void setStylesheet(String fileName) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addParam", "code": "    public void addParam(String name, String expression) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "transform", "code": "    public void transform(String infile, String outfile) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.0-5386", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/NameRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.NameRecord", "code": "public class NameRecord extends Record {\n    /**\n     */\n    \n\t/**Included for completeness sake, not implemented\n\t   */\n\tpublic final static byte  BUILTIN_CONSOLIDATE_AREA      = (byte)1;\n\t\n\t/**Included for completeness sake, not implemented\n\t */\n\tpublic final static byte  BUILTIN_AUTO_OPEN             = (byte)2;\n\n\t/**Included for completeness sake, not implemented\n\t */\n\tpublic final static byte  BUILTIN_AUTO_CLOSE            = (byte)3;\n\n\t/**Included for completeness sake, not implemented\n\t */\n\tpublic final static byte  BUILTIN_DATABASE              = (byte)4;\n\n\t/**Included for completeness sake, not implemented\n\t */\n\tpublic final static byte  BUILTIN_CRITERIA              = (byte)5;\n\t\n\tpublic final static byte  BUILTIN_PRINT_AREA            = (byte)6;\n\tpublic final static byte  BUILTIN_PRINT_TITLE           = (byte)7;\n\t\n\t/**Included for completeness sake, not implemented\n\t */\n\tpublic final static byte  BUILTIN_RECORDER              = (byte)8;\n\t\n\t/**Included for completeness sake, not implemented\n\t */\n\tpublic final static byte  BUILTIN_DATA_FORM             = (byte)9;\n\t\n\t/**Included for completeness sake, not implemented\n\t */\n\n\tpublic final static byte  BUILTIN_AUTO_ACTIVATE         = (byte)10;\n\t\n\t/**Included for completeness sake, not implemented\n\t */\n\n\tpublic final static byte  BUILTIN_AUTO_DEACTIVATE       = (byte)11;\n\t\n\t/**Included for completeness sake, not implemented\n\t */\n\tpublic final static byte  BUILTIN_SHEET_TITLE           = (byte)12;\n    \n    public static final short OPT_HIDDEN_NAME =   (short) 0x0001;\n    public static final short OPT_FUNCTION_NAME = (short) 0x0002;\n    public static final short OPT_COMMAND_NAME =  (short) 0x0004;\n    public static final short OPT_MACRO =         (short) 0x0008;\n    public static final short OPT_COMPLEX =       (short) 0x0010;\n    public static final short OPT_BUILTIN =       (short) 0x0020;\n    public static final short OPT_BINDATA =       (short) 0x1000;\n\n    \n    private short             field_1_option_flag;\n    private byte              field_2_keyboard_shortcut;\n    private byte              field_3_length_name_text;\n    private short             field_4_length_name_definition;\n    private short             field_6_equals_to_index_to_sheet;\n    private byte              field_7_length_custom_menu;\n    private byte              field_8_length_description_text;\n    private byte              field_9_length_help_topic_text;\n    private byte              field_10_length_status_bar_text;\n    private byte              field_12_builtIn_name;\n    private String            field_12_name_text;\n    private Stack             field_13_name_definition;\n    private String            field_14_custom_menu_text;\n    private String            field_15_description_text;\n    private String            field_16_help_topic_text;\n    private String            field_17_status_bar_text;\n\n\n    /** Creates new NameRecord */\n    public NameRecord() {\n        field_13_name_definition = new Stack();\n\n        field_12_name_text = new String();\n        field_14_custom_menu_text = new String();\n        field_15_description_text = new String();\n        field_16_help_topic_text = new String();\n        field_17_status_bar_text = new String();\n    }\n\n    /**\n     * Constructs a Name record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x18 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n    public NameRecord(short id, short size, byte [] data) {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a Name record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x18 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n    public NameRecord(short id, short size, byte [] data, int offset) {\n        super(id, size, data, offset);\n    }\n\n\t/**\n\t * Constructor to create a built-in named region\n\t * @param builtin Built-in byte representation for the name record, use the public constants\n\t * @param index \n\t */\n\tpublic NameRecord(byte builtin, short index)\n\t{\n\t    this();\t    \n\t    this.field_12_builtIn_name = builtin;\n\t    this.setOptionFlag((short)(this.getOptionFlag() | OPT_BUILTIN));\n\t    this.setNameTextLength((byte)1);\n\t    \n\t\tthis.setCustomMenuLength((byte)0);\n\t\tthis.setDescriptionTextLength((byte)0);\n\t\tthis.setHelpTopicLength((byte)0);\n\t\tthis.setStatusBarLength((byte)0);\n\n\t    \n\t}\n\n    /** sets the option flag for the named range\n     * @param flag option flag\n     */\n    public void setOptionFlag(short flag){\n        field_1_option_flag = flag;\n    }\n\n\n    /** sets the keyboard shortcut\n     * @param shortcut keyboard shortcut\n     */\n    public void setKeyboardShortcut(byte shortcut){\n        field_2_keyboard_shortcut = shortcut;\n    }\n\n    /** sets the name of the named range length\n     * @param length name length\n     */\n    public void setNameTextLength(byte length){\n        field_3_length_name_text = length;\n    }\n\n    /** sets the definition (reference - formula) length\n     * @param length defenition length\n     */\n    public void setDefinitionTextLength(short length){\n        field_4_length_name_definition = length;\n    }\n\n    /** sets the index number to the extern sheet (thats is what writen in documentation\n     *  but as i saw , it works differently)\n     * @param index extern sheet index\n     */\n    public void setUnused(short index){\n        field_5_index_to_sheet = index;\n\n    }\n\n    public short getEqualsToIndexToSheet()\n    {\n        return field_6_equals_to_index_to_sheet;\n    }\n\n\t/**\n\t * Convenience method to retrieve the index the name refers to.\n\t * @see #getEqualsToIndexToSheet()\n\t * @return short\n\t */\n\tpublic short getIndexToSheet() {\n\t\treturn getEqualsToIndexToSheet();\n\t}\n\n    /**\n     * @return function group\n     * @see FnGroupCountRecord\n     */\n    public byte getFnGroup() {\n        int masked = field_1_option_flag & 0x0fc0;\n        return (byte) (masked >> 4);\n    }\n\n    public void setEqualsToIndexToSheet(short value)\n    {\n        field_6_equals_to_index_to_sheet = value;\n    }\n\n\n    /** sets the custom menu length\n     * @param length custom menu length\n     */\n    public void setCustomMenuLength(byte length){\n        field_7_length_custom_menu = length;\n    }\n\n    /** sets the length of named range description\n     * @param length description length\n     */\n    public void setDescriptionTextLength(byte length){\n        field_8_length_description_text = length;\n    }\n\n    /** sets the help topic length\n     * @param length help topic length\n     */\n    public void setHelpTopicLength(byte length){\n        field_9_length_help_topic_text = length;\n    }\n\n    /** sets the length of the status bar text\n     * @param length status bar text length\n     */\n    public void setStatusBarLength(byte length){\n        field_10_length_status_bar_text = length;\n    }\n\n    /** sets the compressed unicode flag\n     * @param flag unicode flag\n     */\n    public void setCompressedUnicodeFlag(byte flag) {\n        field_11_compressed_unicode_flag = flag;\n    }\n\n    /** sets the name of the named range\n     * @param name named range name\n     */\n    public void setNameText(String name){\n        field_12_name_text = name;\n    }\n\n\n    /** sets the custom menu text\n     * @param text custom menu text\n     */\n    public void setCustomMenuText(String text){\n        field_14_custom_menu_text = text;\n    }\n\n    /** sets the description text\n     * @param text the description text\n     */\n    public void setDescriptionText(String text){\n        field_15_description_text = text;\n    }\n\n    /** sets the help topic text\n     * @param text help topix text\n     */\n    public void setHelpTopicText(String text){\n        field_16_help_topic_text = text;\n    }\n\n    /** sets the status bar text\n     * @param text status bar text\n     */\n    public void setStatusBarText(String text){\n        field_17_status_bar_text = text;\n    }\n\n    /** gets the option flag\n     * @return option flag\n     */\n    public short getOptionFlag(){\n        return field_1_option_flag;\n    }\n\n    /** returns the keyboard shortcut\n     * @return keyboard shortcut\n     */\n    public byte getKeyboardShortcut(){\n        return field_2_keyboard_shortcut ;\n    }\n\n    /** gets the name length\n     * @return name length\n     */\n    public byte getNameTextLength(){\n        return field_3_length_name_text;\n    }\n\n    /** get the definition length\n     * @return definition length\n     */\n    public short getDefinitionTextLength(){\n        return field_4_length_name_definition;\n    }\n\n    /** gets the index to extern sheet\n     * @return index to extern sheet\n     */\n    public short getUnused(){\n        return field_5_index_to_sheet;\n    }\n\n    /** gets the custom menu length\n     * @return custom menu length\n     */\n    public byte getCustomMenuLength(){\n        return field_7_length_custom_menu;\n    }\n\n    /** gets the description text length\n     * @return description text length\n     */\n    public byte getDescriptionTextLength(){\n        return field_8_length_description_text;\n    }\n\n    /** gets the help topic length\n     * @return help topic length\n     */\n    public byte getHelpTopicLength(){\n        return field_9_length_help_topic_text;\n    }\n\n    /** get the status bar text length\n     * @return satus bar length\n     */\n    public byte getStatusBarLength(){\n        return field_10_length_status_bar_text;\n    }\n\n    /** gets the name compressed Unicode flag\n     * @return compressed unicode flag\n     */\n    public byte getCompressedUnicodeFlag() {\n        return field_11_compressed_unicode_flag;\n    }\n\n    /**\n     * @return true if name is hidden\n     */\n    public boolean isHiddenName() {\n        return (field_1_option_flag & OPT_HIDDEN_NAME) != 0;\n    }\n\n    /**\n     * @return true if name is a function\n     */\n    public boolean isFunctionName() {\n        return (field_1_option_flag & OPT_FUNCTION_NAME) != 0;\n    }\n\n    /**\n     * @return true if name is a command\n     */\n    public boolean isCommandName() {\n        return (field_1_option_flag & OPT_COMMAND_NAME) != 0;\n    }\n\n    /**\n     * @return true if function macro or command macro\n     */\n    public boolean isMacro() {\n        return (field_1_option_flag & OPT_MACRO) != 0;\n    }\n\n    /**\n     * @return true if array formula or user defined\n     */\n    public boolean isComplexFunction() {\n        return (field_1_option_flag & OPT_COMPLEX) != 0;\n    }\n\n\n\t/**Convenience Function to determine if the name is a built-in name\n\t */\n\tpublic boolean isBuiltInName()\n\t{\n\t    return ((this.getOptionFlag() & OPT_BUILTIN) != 0);\n\t}\n\n\n\t/** gets the name\n\t * @return name\n\t */\n\tpublic String getNameText(){\n\n    \treturn this.isBuiltInName() ? this.translateBuiltInName(this.getBuiltInName()) : field_12_name_text;\n\t}\n\n\t/** Gets the Built In Name\n\t * @return the built in Name\n\t */\n\tpublic byte getBuiltInName()\n\t{\n\t    return this.field_12_builtIn_name;\n\t}\n\n\n    /** gets the definition, reference (Formula)\n     * @return definition -- can be null if we cant parse ptgs\n     */\n    public List getNameDefinition() {\n        return field_13_name_definition;\n    }\n\n    public void setNameDefinition(Stack nameDefinition) {\n        field_13_name_definition = nameDefinition;\n    }\n\n    /** get the custom menu text\n     * @return custom menu text\n     */\n    public String getCustomMenuText(){\n        return field_14_custom_menu_text;\n    }\n\n    /** gets the description text\n     * @return description text\n     */\n    public String getDescriptionText(){\n        return field_15_description_text;\n    }\n\n    /** get the help topic text\n     * @return gelp topic text\n     */\n    public String getHelpTopicText(){\n        return field_16_help_topic_text;\n    }\n\n    /** gets the status bar text\n     * @return status bar text\n     */\n    public String getStatusBarText(){\n        return field_17_status_bar_text;\n    }\n\n    /**\n     * called by constructor, should throw runtime exception in the event of a\n     * record passed with a differing ID.\n     *\n     * @param id alleged id for this record\n     */\n    protected void validateSid(short id) {\n        if (id != sid) {\n            throw new RecordFormatException(\"NOT A valid Name RECORD\");\n        }\n    }\n\n    /**\n     * called by the class that is responsible for writing this sucker.\n     * Subclasses should implement this so that their data is passed back in a\n     * byte array.\n     *\n     * @param offset to begin writing at\n     * @param data byte array containing instance data\n     * @return number of bytes written\n     */\n    public int serialize( int offset, byte[] data )\n    {\n        LittleEndian.putShort( data, 0 + offset, sid );\n        LittleEndian.putShort( data, 4 + offset, getOptionFlag() );\n        data[6 + offset] = getKeyboardShortcut();\n        data[7 + offset] = getNameTextLength();\n        LittleEndian.putShort( data, 8 + offset, getDefinitionTextLength() );\n        LittleEndian.putShort( data, 10 + offset, getUnused() );\n        LittleEndian.putShort( data, 12 + offset, getEqualsToIndexToSheet() );\n        data[14 + offset] = getCustomMenuLength();\n        data[15 + offset] = getDescriptionTextLength();\n        data[16 + offset] = getHelpTopicLength();\n        data[17 + offset] = getStatusBarLength();\n        data[18 + offset] = getCompressedUnicodeFlag();\n\n        /* temp: gjs\n        if (isBuiltInName())\n        {\n            LittleEndian.putShort( data, 2 + offset, (short) ( 16 + field_13_raw_name_definition.length ) );\n\n            data[19 + offset] = field_12_builtIn_name;\n            System.arraycopy( field_13_raw_name_definition, 0, data, 20 + offset, field_13_raw_name_definition.length );\n\n            return 20 + field_13_raw_name_definition.length;\n        }\n        else\n        {     */\n            LittleEndian.putShort( data, 2 + offset, (short) ( 15 + getTextsLength() ) );\n            \n\t\t\tint start_of_name_definition = 19 + field_3_length_name_text;\n\n\t\t\tif (this.isBuiltInName()) {\n\t\t\t\tdata [19 + offset] =  this.getBuiltInName();\n\t\t\t} else {\n\t\t\t\tStringUtil.putCompressedUnicode( getNameText(), data, 19 + offset );\n\t\t\t\t\n\t\t\t}\n\n\n\t\t\tif ( this.field_13_name_definition != null )\n\t\t\t{\n\t\t\t\tserializePtgs( data, start_of_name_definition + offset );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.arraycopy( field_13_raw_name_definition, 0, data\n\t\t\t\t\t, start_of_name_definition + offset, field_13_raw_name_definition.length );\n\t\t\t}\t\t\t\t\n\n\n            int start_of_custom_menu_text = start_of_name_definition + field_4_length_name_definition;\n            StringUtil.putCompressedUnicode( getCustomMenuText(), data, start_of_custom_menu_text + offset );\n\n            int start_of_description_text = start_of_custom_menu_text + field_7_length_custom_menu;\n            StringUtil.putCompressedUnicode( getDescriptionText(), data, start_of_description_text + offset );\n\n            int start_of_help_topic_text = start_of_description_text + field_8_length_description_text;\n            StringUtil.putCompressedUnicode( getHelpTopicText(), data, start_of_help_topic_text + offset );\n\n            int start_of_status_bar_text = start_of_help_topic_text + field_9_length_help_topic_text;\n            StringUtil.putCompressedUnicode( getStatusBarText(), data, start_of_status_bar_text + offset );\n\n            return getRecordSize();\n        /* } */\n    }\n\n    private void serializePtgs(byte [] data, int offset) {\n        int pos = offset;\n\n        for (int k = 0; k < field_13_name_definition.size(); k++) {\n            Ptg ptg = ( Ptg ) field_13_name_definition.get(k);\n\n            ptg.writeBytes(data, pos);\n            pos += ptg.getSize();\n        }\n    }\n\n\n    /** gets the length of all texts\n     * @return total length\n     */\n    public int getTextsLength(){\n        int result;\n\n        result = getNameTextLength() + getDefinitionTextLength() + getDescriptionTextLength() +\n        getHelpTopicLength() + getStatusBarLength();\n\n\n        return result;\n    }\n\n    /** returns the record size\n     */\n    public int getRecordSize(){\n        int result;\n\n        result = 19 + getTextsLength();\n\n        return result;\n    }\n\n    /** gets the extern sheet number\n     * @return extern sheet index\n     */\n    public short getExternSheetNumber(){\n        if (field_13_name_definition == null) return 0;\n        Ptg ptg = (Ptg) field_13_name_definition.peek();\n        short result = 0;\n\n        if (ptg.getClass() == Area3DPtg.class){\n            result = ((Area3DPtg) ptg).getExternSheetIndex();\n\n        } else if (ptg.getClass() == Ref3DPtg.class){\n            result = ((Ref3DPtg) ptg).getExternSheetIndex();\n        }\n\n        return result;\n    }\n\n    /** sets the extern sheet number\n     * @param externSheetNumber extern sheet number\n     */\n    public void setExternSheetNumber(short externSheetNumber){\n        Ptg ptg;\n\n        if (field_13_name_definition == null || field_13_name_definition.isEmpty()){\n            field_13_name_definition = new Stack();\n            ptg = createNewPtg();\n        } else {\n            ptg = (Ptg) field_13_name_definition.peek();\n        }\n\n        if (ptg.getClass() == Area3DPtg.class){\n            ((Area3DPtg) ptg).setExternSheetIndex(externSheetNumber);\n\n        } else if (ptg.getClass() == Ref3DPtg.class){\n            ((Ref3DPtg) ptg).setExternSheetIndex(externSheetNumber);\n        }\n\n    }\n\n    private Ptg createNewPtg(){\n        Ptg ptg = new Area3DPtg();\n        field_13_name_definition.push(ptg);\n\n        return ptg;\n    }\n\n    /** gets the reference , the area only (range)\n     * @return area reference\n     */\n    public String getAreaReference(Workbook book){\n        if (field_13_name_definition == null) return \"#REF!\";\n        Ptg ptg = (Ptg) field_13_name_definition.peek();\n        String result = \"\";\n\n        if (ptg.getClass() == Area3DPtg.class){\n            result = ptg.toFormulaString(book);\n\n        } else if (ptg.getClass() == Ref3DPtg.class){\n            result = ptg.toFormulaString(book);\n        }\n\n        return result;\n    }\n\n    /** sets the reference , the area only (range)\n     * @param ref area reference\n     */\n    public void setAreaReference(String ref){\n        RangeAddress ra = new RangeAddress(ref);\n        Ptg oldPtg;\n        Ptg ptg;\n\n        if (field_13_name_definition==null ||field_13_name_definition.isEmpty()){\n            field_13_name_definition = new Stack();\n            oldPtg = createNewPtg();\n        } else {\n            oldPtg = (Ptg) field_13_name_definition.pop();\n        }\n\n        short externSheetIndex = 0;\n\n        if (oldPtg.getClass() == Area3DPtg.class){\n            externSheetIndex =  ((Area3DPtg) oldPtg).getExternSheetIndex();\n\n        } else if (oldPtg.getClass() == Ref3DPtg.class){\n            externSheetIndex =  ((Ref3DPtg) oldPtg).getExternSheetIndex();\n        }\n\n        if (ra.hasRange()) {\n            ptg = new Area3DPtg();\n            ((Area3DPtg) ptg).setExternSheetIndex(externSheetIndex);\n            ((Area3DPtg) ptg).setArea(ref);\n            this.setDefinitionTextLength((short)ptg.getSize());\n        } else {\n            ptg = new Ref3DPtg();\n            ((Ref3DPtg) ptg).setExternSheetIndex(externSheetIndex);\n            ((Ref3DPtg) ptg).setArea(ref);\n            this.setDefinitionTextLength((short)ptg.getSize());\n        }\n\n        field_13_name_definition.push(ptg);\n\n    }\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     * @param offset of the record's data (provided a big array of the file)\n     */\n    protected void fillFields(byte[] data, short size, int offset) {\n        field_1_option_flag             = LittleEndian.getShort(data, 0 + offset);\n        field_2_keyboard_shortcut       = data [2 + offset];\n        field_3_length_name_text        = data [3 + offset];\n        field_4_length_name_definition  = LittleEndian.getShort(data, 4 + offset);\n        field_5_index_to_sheet          = LittleEndian.getShort(data, 6 + offset);\n        field_6_equals_to_index_to_sheet= LittleEndian.getShort(data, 8 + offset);\n        field_7_length_custom_menu      = data [10 + offset];\n        field_8_length_description_text = data [11 + offset];\n        field_9_length_help_topic_text  = data [12 + offset];\n        field_10_length_status_bar_text = data [13 + offset];\n        \n\n        /*\n        temp: gjs\n        if (isBuiltInName()) {\n\n            field_11_compressed_unicode_flag = data[ 14 + offset ];\n            field_12_builtIn_name = data[ 15 + offset ];\n\n            if ( (field_12_builtIn_name & (short)0x07) != 0 ) {\n                field_12_name_text = \"Print_Titles\";\n\n\n                field_13_raw_name_definition = new byte[ field_4_length_name_definition ];\n                System.arraycopy( data, 16 + offset, field_13_raw_name_definition, 0, field_13_raw_name_definition.length );\n\n            }\n        }\n        else { */\n    \n            field_11_compressed_unicode_flag= data [14 + offset];\n            \n            \n\t\t\tif (this.isBuiltInName()) {\n\t\t\t\tfield_12_builtIn_name = data[ 15 + offset ];\n\t\t\t}\n            \n            field_12_name_text = StringUtil.getFromCompressedUnicode(data, 15 + offset,\n            LittleEndian.ubyteToInt(field_3_length_name_text));\n        \n            int start_of_name_definition    = 15 + field_3_length_name_text;\n            field_13_name_definition = getParsedExpressionTokens(data, field_4_length_name_definition,\n            offset, start_of_name_definition);\n    \n            int start_of_custom_menu_text   = start_of_name_definition + field_4_length_name_definition;\n            field_14_custom_menu_text       = StringUtil.getFromCompressedUnicode(data, start_of_custom_menu_text + offset,\n            LittleEndian.ubyteToInt(field_7_length_custom_menu));\n    \n            int start_of_description_text   = start_of_custom_menu_text + field_7_length_custom_menu;;\n            field_15_description_text       = StringUtil.getFromCompressedUnicode(data, start_of_description_text + offset,\n            LittleEndian.ubyteToInt(field_8_length_description_text));\n    \n            int start_of_help_topic_text    = start_of_description_text + field_8_length_description_text;\n            field_16_help_topic_text        = StringUtil.getFromCompressedUnicode(data, start_of_help_topic_text + offset,\n            LittleEndian.ubyteToInt(field_9_length_help_topic_text));\n    \n            int start_of_status_bar_text       = start_of_help_topic_text + field_9_length_help_topic_text;\n            field_17_status_bar_text        = StringUtil.getFromCompressedUnicode(data, start_of_status_bar_text +  offset,\n            LittleEndian.ubyteToInt(field_10_length_status_bar_text));\n        /*} */\n    }\n\n    private Stack getParsedExpressionTokens(byte [] data, short size,\n        int offset, int start_of_expression) {\n        Stack stack = new Stack();\n        int   pos           = start_of_expression + offset;\n        int   sizeCounter   = 0;\n        try {\n            while (sizeCounter < size) {\n                Ptg ptg = Ptg.createPtg(data, pos);\n\n                pos += ptg.getSize();\n                sizeCounter += ptg.getSize();\n                stack.push(ptg);\n                field_13_raw_name_definition=new byte[size];\n                System.arraycopy(data,offset,field_13_raw_name_definition,0,size);\n            }\n        } catch (java.lang.UnsupportedOperationException uoe) {\n            System.err.println(\"[WARNING] Unknown Ptg \"\n                    + uoe.getMessage() );\n            field_13_raw_name_definition=new byte[size];\n            System.arraycopy(data,offset,field_13_raw_name_definition,0,size);\n            return null;\n        }\n        return stack;\n    }\n\n\n    /**\n     * return the non static version of the id for this record.\n     */\n    public short getSid() {\n        return this.sid;\n    }\n    /*\n      20 00 \n      00 \n      01 \n      00 00 \n      01 00 \n      00 \n      00 \n      00 \n      00 \n      \n      \n      \n      \n      20 00 \n      00 \n      01 \n      00 00 \n      01 00 \n      00 \n      00 \n      00 \n      00 \n      \n  */\n    /*\n      18, 00, \n      1B, 00, \n      \n      20, 00, \n      00, \n      01, \n      0B, 00, \n      00, \n      00, \n      00, \n      00, \n      00, \n      07, \n      3B 00 00 07 00 07 00 00 00 FF 00 ]     \n     */\n\n    /**\n     * @see Object#toString()\n     */\n    public String toString() {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[NAME]\\n\");\n        buffer.append(\"    .option flags         = \").append( HexDump.toHex( field_1_option_flag ) )\n            .append(\"\\n\");\n        buffer.append(\"    .keyboard shortcut    = \").append( HexDump.toHex( field_2_keyboard_shortcut ) )\n            .append(\"\\n\");\n        buffer.append(\"    .length of the name   = \").append( field_3_length_name_text )\n            .append(\"\\n\");\n        buffer.append(\"    .size of the formula data = \").append( field_4_length_name_definition )\n            .append(\"\\n\");\n        buffer.append(\"    .unused                   = \").append( field_5_index_to_sheet )\n            .append(\"\\n\");\n        buffer.append(\"    .index to sheet (1-based, 0=Global)           = \").append( field_6_equals_to_index_to_sheet )\n            .append(\"\\n\");\n        buffer.append(\"    .Length of menu text (character count)        = \").append( field_7_length_custom_menu )\n            .append(\"\\n\");\n        buffer.append(\"    .Length of description text (character count) = \").append( field_8_length_description_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Length of help topic text (character count)  = \").append( field_9_length_help_topic_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Length of status bar text (character count)  = \").append( field_10_length_status_bar_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Name (Unicode flag)  = \").append( field_11_compressed_unicode_flag )\n            .append(\"\\n\");\n        buffer.append(\"    .Name (Unicode text)  = \").append( getNameText() )\n            .append(\"\\n\");\n        buffer.append(\"    .Formula data (RPN token array without size field)      = \").append( HexDump.toHex( \n                       ((field_13_raw_name_definition != null) ? field_13_raw_name_definition : new byte[0] ) ) )\n            .append(\"\\n\");\n            \n        buffer.append(\"    .Menu text (Unicode string without length field)        = \").append( field_14_custom_menu_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Description text (Unicode string without length field) = \").append( field_15_description_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Help topic text (Unicode string without length field)  = \").append( field_16_help_topic_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Status bar text (Unicode string without length field)  = \").append( field_17_status_bar_text )\n            .append(\"\\n\");\n        buffer.append(org.apache.poi.util.HexDump.dump(this.field_13_raw_name_definition,0,0));\n        buffer.append(\"[/NAME]\\n\");\n        \n        return buffer.toString();\n    }\n\n\t/**Creates a human readable name for built in types\n\t * @return Unknown if the built-in name cannot be translated\n\t */\n\tprotected String translateBuiltInName(byte name)\n\t{\n\t    switch (name)\n\t    {\n\t        case NameRecord.BUILTIN_AUTO_ACTIVATE :     return \"Auto_Activate\";\n\t        case NameRecord.BUILTIN_AUTO_CLOSE :        return \"Auto_Close\";\n\t        case NameRecord.BUILTIN_AUTO_DEACTIVATE :   return \"Auto_Deactivate\";\n\t        case NameRecord.BUILTIN_AUTO_OPEN :         return \"Auto_Open\";\n\t        case NameRecord.BUILTIN_CONSOLIDATE_AREA :  return \"Consolidate_Area\";\n\t        case NameRecord.BUILTIN_CRITERIA :          return \"Criteria\";\n\t        case NameRecord.BUILTIN_DATABASE :          return \"Database\";\n\t        case NameRecord.BUILTIN_DATA_FORM :         return \"Data_Form\";            \n\t        case NameRecord.BUILTIN_PRINT_AREA :        return \"Print_Area\";\n\t        case NameRecord.BUILTIN_PRINT_TITLE :       return \"Print_Titles\";\n\t        case NameRecord.BUILTIN_RECORDER :          return \"Recorder\";\n\t        case NameRecord.BUILTIN_SHEET_TITLE :       return \"Sheet_Title\";\n\t        \n\t    }\n\t    \n\t    return \"Unknown\";", "functions": [{"function_name": "setOptionFlag", "code": "    public void setOptionFlag(short flag){\n        field_1_option_flag = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setKeyboardShortcut", "code": "    public void setKeyboardShortcut(byte shortcut){\n        field_2_keyboard_shortcut = shortcut;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNameTextLength", "code": "    public void setNameTextLength(byte length){\n        field_3_length_name_text = length;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDefinitionTextLength", "code": "    public void setDefinitionTextLength(short length){\n        field_4_length_name_definition = length;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUnused", "code": "    public void setUnused(short index){\n        field_5_index_to_sheet = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEqualsToIndexToSheet", "code": "    public short getEqualsToIndexToSheet()\n    {\n        return field_6_equals_to_index_to_sheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIndexToSheet", "code": "\tpublic short getIndexToSheet() {\n\t\treturn getEqualsToIndexToSheet();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFnGroup", "code": "    public byte getFnGroup() {\n        int masked = field_1_option_flag & 0x0fc0;\n        return (byte) (masked >> 4);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setEqualsToIndexToSheet", "code": "    public void setEqualsToIndexToSheet(short value)\n    {\n        field_6_equals_to_index_to_sheet = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCustomMenuLength", "code": "    public void setCustomMenuLength(byte length){\n        field_7_length_custom_menu = length;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDescriptionTextLength", "code": "    public void setDescriptionTextLength(byte length){\n        field_8_length_description_text = length;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHelpTopicLength", "code": "    public void setHelpTopicLength(byte length){\n        field_9_length_help_topic_text = length;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStatusBarLength", "code": "    public void setStatusBarLength(byte length){\n        field_10_length_status_bar_text = length;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCompressedUnicodeFlag", "code": "    public void setCompressedUnicodeFlag(byte flag) {\n        field_11_compressed_unicode_flag = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNameText", "code": "    public void setNameText(String name){\n        field_12_name_text = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCustomMenuText", "code": "    public void setCustomMenuText(String text){\n        field_14_custom_menu_text = text;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDescriptionText", "code": "    public void setDescriptionText(String text){\n        field_15_description_text = text;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHelpTopicText", "code": "    public void setHelpTopicText(String text){\n        field_16_help_topic_text = text;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStatusBarText", "code": "    public void setStatusBarText(String text){\n        field_17_status_bar_text = text;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptionFlag", "code": "    public short getOptionFlag(){\n        return field_1_option_flag;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getKeyboardShortcut", "code": "    public byte getKeyboardShortcut(){\n        return field_2_keyboard_shortcut ;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNameTextLength", "code": "    public byte getNameTextLength(){\n        return field_3_length_name_text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDefinitionTextLength", "code": "    public short getDefinitionTextLength(){\n        return field_4_length_name_definition;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getUnused", "code": "    public short getUnused(){\n        return field_5_index_to_sheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCustomMenuLength", "code": "    public byte getCustomMenuLength(){\n        return field_7_length_custom_menu;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDescriptionTextLength", "code": "    public byte getDescriptionTextLength(){\n        return field_8_length_description_text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHelpTopicLength", "code": "    public byte getHelpTopicLength(){\n        return field_9_length_help_topic_text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStatusBarLength", "code": "    public byte getStatusBarLength(){\n        return field_10_length_status_bar_text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCompressedUnicodeFlag", "code": "    public byte getCompressedUnicodeFlag() {\n        return field_11_compressed_unicode_flag;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isHiddenName", "code": "    public boolean isHiddenName() {\n        return (field_1_option_flag & OPT_HIDDEN_NAME) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isFunctionName", "code": "    public boolean isFunctionName() {\n        return (field_1_option_flag & OPT_FUNCTION_NAME) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isCommandName", "code": "    public boolean isCommandName() {\n        return (field_1_option_flag & OPT_COMMAND_NAME) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isMacro", "code": "    public boolean isMacro() {\n        return (field_1_option_flag & OPT_MACRO) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isComplexFunction", "code": "    public boolean isComplexFunction() {\n        return (field_1_option_flag & OPT_COMPLEX) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isBuiltInName", "code": "\tpublic boolean isBuiltInName()\n\t{\n\t    return ((this.getOptionFlag() & OPT_BUILTIN) != 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getNameText", "code": "\tpublic String getNameText(){\n\n    \treturn this.isBuiltInName() ? this.translateBuiltInName(this.getBuiltInName()) : field_12_name_text;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getBuiltInName", "code": "\tpublic byte getBuiltInName()\n\t{\n\t    return this.field_12_builtIn_name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNameDefinition", "code": "    public List getNameDefinition() {\n        return field_13_name_definition;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNameDefinition", "code": "    public void setNameDefinition(Stack nameDefinition) {\n        field_13_name_definition = nameDefinition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCustomMenuText", "code": "    public String getCustomMenuText(){\n        return field_14_custom_menu_text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDescriptionText", "code": "    public String getDescriptionText(){\n        return field_15_description_text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHelpTopicText", "code": "    public String getHelpTopicText(){\n        return field_16_help_topic_text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStatusBarText", "code": "    public String getStatusBarText(){\n        return field_17_status_bar_text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "validateSid", "code": "    protected void validateSid(short id) {\n        if (id != sid) {\n            throw new RecordFormatException(\"NOT A valid Name RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data )\n    {\n        LittleEndian.putShort( data, 0 + offset, sid );\n        LittleEndian.putShort( data, 4 + offset, getOptionFlag() );\n        data[6 + offset] = getKeyboardShortcut();\n        data[7 + offset] = getNameTextLength();\n        LittleEndian.putShort( data, 8 + offset, getDefinitionTextLength() );\n        LittleEndian.putShort( data, 10 + offset, getUnused() );\n        LittleEndian.putShort( data, 12 + offset, getEqualsToIndexToSheet() );\n        data[14 + offset] = getCustomMenuLength();\n        data[15 + offset] = getDescriptionTextLength();\n        data[16 + offset] = getHelpTopicLength();\n        data[17 + offset] = getStatusBarLength();\n        data[18 + offset] = getCompressedUnicodeFlag();\n\n        /* temp: gjs\n        if (isBuiltInName())\n        {\n            LittleEndian.putShort( data, 2 + offset, (short) ( 16 + field_13_raw_name_definition.length ) );\n\n            data[19 + offset] = field_12_builtIn_name;\n            System.arraycopy( field_13_raw_name_definition, 0, data, 20 + offset, field_13_raw_name_definition.length );\n\n            return 20 + field_13_raw_name_definition.length;\n        }\n        else\n        {     */\n            LittleEndian.putShort( data, 2 + offset, (short) ( 15 + getTextsLength() ) );\n            \n\t\t\tint start_of_name_definition = 19 + field_3_length_name_text;\n\n\t\t\tif (this.isBuiltInName()) {\n\t\t\t\tdata [19 + offset] =  this.getBuiltInName();\n\t\t\t} else {\n\t\t\t\tStringUtil.putCompressedUnicode( getNameText(), data, 19 + offset );\n\t\t\t\t\n\t\t\t}\n\n\n\t\t\tif ( this.field_13_name_definition != null )\n\t\t\t{\n\t\t\t\tserializePtgs( data, start_of_name_definition + offset );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.arraycopy( field_13_raw_name_definition, 0, data\n\t\t\t\t\t, start_of_name_definition + offset, field_13_raw_name_definition.length );\n\t\t\t}\t\t\t\t\n\n\n            int start_of_custom_menu_text = start_of_name_definition + field_4_length_name_definition;\n            StringUtil.putCompressedUnicode( getCustomMenuText(), data, start_of_custom_menu_text + offset );\n\n            int start_of_description_text = start_of_custom_menu_text + field_7_length_custom_menu;\n            StringUtil.putCompressedUnicode( getDescriptionText(), data, start_of_description_text + offset );\n\n            int start_of_help_topic_text = start_of_description_text + field_8_length_description_text;\n            StringUtil.putCompressedUnicode( getHelpTopicText(), data, start_of_help_topic_text + offset );\n\n            int start_of_status_bar_text = start_of_help_topic_text + field_9_length_help_topic_text;\n            StringUtil.putCompressedUnicode( getStatusBarText(), data, start_of_status_bar_text + offset );\n\n            return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [0, 13], [0, 14], [0, 15], [6, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [12, 30], [12, 31], [2, 32], [13, 33], [13, 34], [3, 35], [14, 36], [14, 37], [4, 38], [15, 39], [15, 40], [5, 41], [16, 42], [7, 43], [8, 44], [17, 45], [18, 46], [19, 47], [20, 48], [21, 49], [22, 50], [23, 51], [23, 52], [24, 53], [24, 54], [25, 55], [25, 56], [26, 57], [27, 58], [28, 59], [28, 60], [29, 61], [6, 62], [6, 63], [7, 64], [7, 65], [44, 66], [17, 67], [45, 68], [52, 69], [54, 70], [56, 71], [60, 72], [61, 73], [62, 74], [62, 75], [63, 76], [64, 77], [64, 78], [67, 79], [67, 80], [18, 81], [19, 82], [20, 83], [21, 84], [22, 85], [26, 86], [27, 87], [77, 88], [65, 89], [81, 90], [82, 91], [83, 92], [84, 93], [85, 94], [86, 95], [87, 96], [65, 97], [97, 98], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 0], [14, 0], [15, 0], [16, 6], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 12], [31, 12], [32, 2], [33, 13], [34, 13], [35, 3], [36, 14], [37, 14], [38, 4], [39, 15], [40, 15], [41, 5], [42, 16], [43, 7], [44, 8], [45, 17], [46, 18], [47, 19], [48, 20], [49, 21], [50, 22], [51, 23], [52, 23], [53, 24], [54, 24], [55, 25], [56, 25], [57, 26], [58, 27], [59, 28], [60, 28], [61, 29], [62, 6], [63, 6], [64, 7], [65, 7], [66, 44], [67, 17], [68, 45], [69, 52], [70, 54], [71, 56], [72, 60], [73, 61], [74, 62], [75, 62], [76, 63], [77, 64], [78, 64], [79, 67], [80, 67], [81, 18], [82, 19], [83, 20], [84, 21], [85, 22], [86, 26], [87, 27], [88, 77], [89, 65], [90, 81], [91, 82], [92, 83], [93, 84], [94, 85], [95, 86], [96, 87], [97, 65], [98, 97], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98]]}, {"function_name": "serializePtgs", "code": "    private void serializePtgs(byte [] data, int offset) {\n        int pos = offset;\n\n        for (int k = 0; k < field_13_name_definition.size(); k++) {\n            Ptg ptg = ( Ptg ) field_13_name_definition.get(k);\n\n            ptg.writeBytes(data, pos);\n            pos += ptg.getSize();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [1, 9], [1, 10], [8, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 1], [10, 1], [11, 8], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getTextsLength", "code": "    public int getTextsLength(){\n        int result;\n\n        result = getNameTextLength() + getDefinitionTextLength() + getDescriptionTextLength() +\n        getHelpTopicLength() + getStatusBarLength();\n\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize(){\n        int result;\n\n        result = 19 + getTextsLength();\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getExternSheetNumber", "code": "    public short getExternSheetNumber(){\n        if (field_13_name_definition == null) return 0;\n        Ptg ptg = (Ptg) field_13_name_definition.peek();\n        short result = 0;\n\n        if (ptg.getClass() == Area3DPtg.class){\n            result = ((Area3DPtg) ptg).getExternSheetIndex();\n\n        } else if (ptg.getClass() == Ref3DPtg.class){\n            result = ((Ref3DPtg) ptg).getExternSheetIndex();\n        }\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [5, 8], [5, 9], [6, 10], [7, 11], [3, 12], [8, 13], [9, 14], [10, 15], [2, 16], [4, 17], [6, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 5], [9, 5], [10, 6], [11, 7], [12, 3], [13, 8], [14, 9], [15, 10], [16, 2], [17, 4], [18, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setExternSheetNumber", "code": "    public void setExternSheetNumber(short externSheetNumber){\n        Ptg ptg;\n\n        if (field_13_name_definition == null || field_13_name_definition.isEmpty()){\n            field_13_name_definition = new Stack();\n            ptg = createNewPtg();\n        } else {\n            ptg = (Ptg) field_13_name_definition.peek();\n        }\n\n        if (ptg.getClass() == Area3DPtg.class){\n            ((Area3DPtg) ptg).setExternSheetIndex(externSheetNumber);\n\n        } else if (ptg.getClass() == Ref3DPtg.class){\n            ((Ref3DPtg) ptg).setExternSheetIndex(externSheetNumber);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [5, 8], [6, 9], [7, 10], [7, 11], [8, 12], [2, 13], [2, 14], [2, 15], [11, 16], [14, 17], [15, 18], [13, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 5], [9, 6], [10, 7], [11, 7], [12, 8], [13, 2], [14, 2], [15, 2], [16, 11], [17, 14], [18, 15], [19, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "createNewPtg", "code": "    private Ptg createNewPtg(){\n        Ptg ptg = new Area3DPtg();\n        field_13_name_definition.push(ptg);\n\n        return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAreaReference", "code": "    public String getAreaReference(Workbook book){\n        if (field_13_name_definition == null) return \"#REF!\";\n        Ptg ptg = (Ptg) field_13_name_definition.peek();\n        String result = \"\";\n\n        if (ptg.getClass() == Area3DPtg.class){\n            result = ptg.toFormulaString(book);\n\n        } else if (ptg.getClass() == Ref3DPtg.class){\n            result = ptg.toFormulaString(book);\n        }\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [5, 9], [5, 10], [7, 11], [8, 12], [3, 13], [9, 14], [10, 15], [11, 16], [2, 17], [4, 18], [7, 19], [17, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 5], [10, 5], [11, 7], [12, 8], [13, 3], [14, 9], [15, 10], [16, 11], [17, 2], [18, 4], [19, 7], [20, 17], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setAreaReference", "code": "    public void setAreaReference(String ref){\n        RangeAddress ra = new RangeAddress(ref);\n        Ptg oldPtg;\n        Ptg ptg;\n\n        if (field_13_name_definition==null ||field_13_name_definition.isEmpty()){\n            field_13_name_definition = new Stack();\n            oldPtg = createNewPtg();\n        } else {\n            oldPtg = (Ptg) field_13_name_definition.pop();\n        }\n\n        short externSheetIndex = 0;\n\n        if (oldPtg.getClass() == Area3DPtg.class){\n            externSheetIndex =  ((Area3DPtg) oldPtg).getExternSheetIndex();\n\n        } else if (oldPtg.getClass() == Ref3DPtg.class){\n            externSheetIndex =  ((Ref3DPtg) oldPtg).getExternSheetIndex();\n        }\n\n        if (ra.hasRange()) {\n            ptg = new Area3DPtg();\n            ((Area3DPtg) ptg).setExternSheetIndex(externSheetIndex);\n            ((Area3DPtg) ptg).setArea(ref);\n            this.setDefinitionTextLength((short)ptg.getSize());\n        } else {\n            ptg = new Ref3DPtg();\n            ((Ref3DPtg) ptg).setExternSheetIndex(externSheetIndex);\n            ((Ref3DPtg) ptg).setArea(ref);\n            this.setDefinitionTextLength((short)ptg.getSize());\n        }\n\n        field_13_name_definition.push(ptg);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [4, 13], [11, 14], [12, 15], [3, 16], [13, 17], [13, 18], [7, 19], [1, 20], [1, 21], [14, 22], [2, 23], [4, 24], [4, 25], [4, 26], [18, 27], [1, 28], [20, 29], [1, 30], [21, 31], [11, 32], [25, 33], [26, 34], [24, 35], [28, 36], [30, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 4], [14, 11], [15, 12], [16, 3], [17, 13], [18, 13], [19, 7], [20, 1], [21, 1], [22, 14], [23, 2], [24, 4], [25, 4], [26, 4], [27, 18], [28, 1], [29, 20], [30, 1], [31, 21], [32, 11], [33, 25], [34, 26], [35, 24], [36, 28], [37, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte[] data, short size, int offset) {\n        field_1_option_flag             = LittleEndian.getShort(data, 0 + offset);\n        field_2_keyboard_shortcut       = data [2 + offset];\n        field_3_length_name_text        = data [3 + offset];\n        field_4_length_name_definition  = LittleEndian.getShort(data, 4 + offset);\n        field_5_index_to_sheet          = LittleEndian.getShort(data, 6 + offset);\n        field_6_equals_to_index_to_sheet= LittleEndian.getShort(data, 8 + offset);\n        field_7_length_custom_menu      = data [10 + offset];\n        field_8_length_description_text = data [11 + offset];\n        field_9_length_help_topic_text  = data [12 + offset];\n        field_10_length_status_bar_text = data [13 + offset];\n        \n\n        /*\n        temp: gjs\n        if (isBuiltInName()) {\n\n            field_11_compressed_unicode_flag = data[ 14 + offset ];\n            field_12_builtIn_name = data[ 15 + offset ];\n\n            if ( (field_12_builtIn_name & (short)0x07) != 0 ) {\n                field_12_name_text = \"Print_Titles\";\n\n\n                field_13_raw_name_definition = new byte[ field_4_length_name_definition ];\n                System.arraycopy( data, 16 + offset, field_13_raw_name_definition, 0, field_13_raw_name_definition.length );\n\n            }\n        }\n        else { */\n    \n            field_11_compressed_unicode_flag= data [14 + offset];\n            \n            \n\t\t\tif (this.isBuiltInName()) {\n\t\t\t\tfield_12_builtIn_name = data[ 15 + offset ];\n\t\t\t}\n            \n            field_12_name_text = StringUtil.getFromCompressedUnicode(data, 15 + offset,\n            LittleEndian.ubyteToInt(field_3_length_name_text));\n        \n            int start_of_name_definition    = 15 + field_3_length_name_text;\n            field_13_name_definition = getParsedExpressionTokens(data, field_4_length_name_definition,\n            offset, start_of_name_definition);\n    \n            int start_of_custom_menu_text   = start_of_name_definition + field_4_length_name_definition;\n            field_14_custom_menu_text       = StringUtil.getFromCompressedUnicode(data, start_of_custom_menu_text + offset,\n            LittleEndian.ubyteToInt(field_7_length_custom_menu));\n    \n            int start_of_description_text   = start_of_custom_menu_text + field_7_length_custom_menu;;\n            field_15_description_text       = StringUtil.getFromCompressedUnicode(data, start_of_description_text + offset,\n            LittleEndian.ubyteToInt(field_8_length_description_text));\n    \n            int start_of_help_topic_text    = start_of_description_text + field_8_length_description_text;\n            field_16_help_topic_text        = StringUtil.getFromCompressedUnicode(data, start_of_help_topic_text + offset,\n            LittleEndian.ubyteToInt(field_9_length_help_topic_text));\n    \n            int start_of_status_bar_text       = start_of_help_topic_text + field_9_length_help_topic_text;\n            field_17_status_bar_text        = StringUtil.getFromCompressedUnicode(data, start_of_status_bar_text +  offset,\n            LittleEndian.ubyteToInt(field_10_length_status_bar_text));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [10, 27], [1, 28], [11, 29], [2, 30], [12, 31], [3, 32], [13, 33], [4, 34], [14, 35], [5, 36], [15, 37], [6, 38], [21, 39], [22, 40], [23, 41], [26, 42], [27, 43], [27, 44], [29, 45], [29, 46], [31, 47], [31, 48], [33, 49], [33, 50], [36, 51], [37, 52], [37, 53], [6, 54], [39, 55], [40, 56], [41, 57], [42, 58], [53, 59], [16, 60], [17, 61], [18, 62], [19, 63], [20, 64], [55, 65], [56, 66], [57, 67], [24, 68], [25, 69], [58, 70], [60, 71], [61, 72], [62, 73], [63, 74], [64, 75], [68, 76], [69, 77], [54, 78], [78, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 10], [28, 1], [29, 11], [30, 2], [31, 12], [32, 3], [33, 13], [34, 4], [35, 14], [36, 5], [37, 15], [38, 6], [39, 21], [40, 22], [41, 23], [42, 26], [43, 27], [44, 27], [45, 29], [46, 29], [47, 31], [48, 31], [49, 33], [50, 33], [51, 36], [52, 37], [53, 37], [54, 6], [55, 39], [56, 40], [57, 41], [58, 42], [59, 53], [60, 16], [61, 17], [62, 18], [63, 19], [64, 20], [65, 55], [66, 56], [67, 57], [68, 24], [69, 25], [70, 58], [71, 60], [72, 61], [73, 62], [74, 63], [75, 64], [76, 68], [77, 69], [78, 54], [79, 78], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "getParsedExpressionTokens", "code": "    private Stack getParsedExpressionTokens(byte [] data, short size,\n        int offset, int start_of_expression) {\n        Stack stack = new Stack();\n        int   pos           = start_of_expression + offset;\n        int   sizeCounter   = 0;\n        try {\n            while (sizeCounter < size) {\n                Ptg ptg = Ptg.createPtg(data, pos);\n\n                pos += ptg.getSize();\n                sizeCounter += ptg.getSize();\n                stack.push(ptg);\n                field_13_raw_name_definition=new byte[size];\n                System.arraycopy(data,offset,field_13_raw_name_definition,0,size);\n            }\n        } catch (java.lang.UnsupportedOperationException uoe) {\n            System.err.println(\"[WARNING] Unknown Ptg \"\n                    + uoe.getMessage() );\n            field_13_raw_name_definition=new byte[size];\n            System.arraycopy(data,offset,field_13_raw_name_definition,0,size);\n            return null;\n        }\n        return stack;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "LOOP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [10, 12], [11, 13], [3, 14], [4, 15], [5, 16], [12, 17], [10, 18], [10, 19], [10, 20], [11, 21], [18, 22], [20, 23], [11, 24], [11, 25], [11, 26], [11, 27], [11, 28], [23, 29], [23, 30], [24, 31], [27, 32], [28, 33], [21, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 10], [13, 11], [14, 3], [15, 4], [16, 5], [17, 12], [18, 10], [19, 10], [20, 10], [21, 11], [22, 18], [23, 20], [24, 11], [25, 11], [26, 11], [27, 11], [28, 11], [29, 23], [30, 23], [31, 24], [32, 27], [33, 28], [34, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getSid", "code": "    public short getSid() {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[NAME]\\n\");\n        buffer.append(\"    .option flags         = \").append( HexDump.toHex( field_1_option_flag ) )\n            .append(\"\\n\");\n        buffer.append(\"    .keyboard shortcut    = \").append( HexDump.toHex( field_2_keyboard_shortcut ) )\n            .append(\"\\n\");\n        buffer.append(\"    .length of the name   = \").append( field_3_length_name_text )\n            .append(\"\\n\");\n        buffer.append(\"    .size of the formula data = \").append( field_4_length_name_definition )\n            .append(\"\\n\");\n        buffer.append(\"    .unused                   = \").append( field_5_index_to_sheet )\n            .append(\"\\n\");\n        buffer.append(\"    .index to sheet (1-based, 0=Global)           = \").append( field_6_equals_to_index_to_sheet )\n            .append(\"\\n\");\n        buffer.append(\"    .Length of menu text (character count)        = \").append( field_7_length_custom_menu )\n            .append(\"\\n\");\n        buffer.append(\"    .Length of description text (character count) = \").append( field_8_length_description_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Length of help topic text (character count)  = \").append( field_9_length_help_topic_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Length of status bar text (character count)  = \").append( field_10_length_status_bar_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Name (Unicode flag)  = \").append( field_11_compressed_unicode_flag )\n            .append(\"\\n\");\n        buffer.append(\"    .Name (Unicode text)  = \").append( getNameText() )\n            .append(\"\\n\");\n        buffer.append(\"    .Formula data (RPN token array without size field)      = \").append( HexDump.toHex( \n                       ((field_13_raw_name_definition != null) ? field_13_raw_name_definition : new byte[0] ) ) )\n            .append(\"\\n\");\n            \n        buffer.append(\"    .Menu text (Unicode string without length field)        = \").append( field_14_custom_menu_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Description text (Unicode string without length field) = \").append( field_15_description_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Help topic text (Unicode string without length field)  = \").append( field_16_help_topic_text )\n            .append(\"\\n\");\n        buffer.append(\"    .Status bar text (Unicode string without length field)  = \").append( field_17_status_bar_text )\n            .append(\"\\n\");\n        buffer.append(org.apache.poi.util.HexDump.dump(this.field_13_raw_name_definition,0,0));\n        buffer.append(\"[/NAME]\\n\");\n        \n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [4, 24], [5, 25], [6, 26], [6, 27], [6, 28], [7, 29], [7, 30], [7, 31], [8, 32], [8, 33], [8, 34], [9, 35], [9, 36], [9, 37], [10, 38], [10, 39], [10, 40], [11, 41], [11, 42], [11, 43], [12, 44], [12, 45], [12, 46], [13, 47], [13, 48], [13, 49], [14, 50], [14, 51], [14, 52], [15, 53], [15, 54], [15, 55], [16, 56], [16, 57], [16, 58], [17, 59], [17, 60], [17, 61], [18, 62], [18, 63], [18, 64], [19, 65], [19, 66], [19, 67], [20, 68], [20, 69], [20, 70], [21, 71], [21, 72], [21, 73], [22, 74], [22, 75], [22, 76], [23, 77], [2, 78], [25, 79], [25, 80], [27, 81], [30, 82], [33, 83], [36, 84], [39, 85], [40, 86], [42, 87], [43, 88], [45, 89], [48, 90], [51, 91], [54, 92], [57, 93], [60, 94], [63, 95], [66, 96], [69, 97], [72, 98], [73, 99], [75, 100], [76, 101], [86, 102], [102, 103], [102, 104], [103, 105], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 4], [25, 5], [26, 6], [27, 6], [28, 6], [29, 7], [30, 7], [31, 7], [32, 8], [33, 8], [34, 8], [35, 9], [36, 9], [37, 9], [38, 10], [39, 10], [40, 10], [41, 11], [42, 11], [43, 11], [44, 12], [45, 12], [46, 12], [47, 13], [48, 13], [49, 13], [50, 14], [51, 14], [52, 14], [53, 15], [54, 15], [55, 15], [56, 16], [57, 16], [58, 16], [59, 17], [60, 17], [61, 17], [62, 18], [63, 18], [64, 18], [65, 19], [66, 19], [67, 19], [68, 20], [69, 20], [70, 20], [71, 21], [72, 21], [73, 21], [74, 22], [75, 22], [76, 22], [77, 23], [78, 2], [79, 25], [80, 25], [81, 27], [82, 30], [83, 33], [84, 36], [85, 39], [86, 40], [87, 42], [88, 43], [89, 45], [90, 48], [91, 51], [92, 54], [93, 57], [94, 60], [95, 63], [96, 66], [97, 69], [98, 72], [99, 73], [100, 75], [101, 76], [102, 86], [103, 102], [104, 102], [105, 103], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105]]}, {"function_name": "translateBuiltInName", "code": "\tprotected String translateBuiltInName(byte name)\n\t{\n\t    switch (name)\n\t    {\n\t        case NameRecord.BUILTIN_AUTO_ACTIVATE :     return \"Auto_Activate\";\n\t        case NameRecord.BUILTIN_AUTO_CLOSE :        return \"Auto_Close\";\n\t        case NameRecord.BUILTIN_AUTO_DEACTIVATE :   return \"Auto_Deactivate\";\n\t        case NameRecord.BUILTIN_AUTO_OPEN :         return \"Auto_Open\";\n\t        case NameRecord.BUILTIN_CONSOLIDATE_AREA :  return \"Consolidate_Area\";\n\t        case NameRecord.BUILTIN_CRITERIA :          return \"Criteria\";\n\t        case NameRecord.BUILTIN_DATABASE :          return \"Database\";\n\t        case NameRecord.BUILTIN_DATA_FORM :         return \"Data_Form\";            \n\t        case NameRecord.BUILTIN_PRINT_AREA :        return \"Print_Area\";\n\t        case NameRecord.BUILTIN_PRINT_TITLE :       return \"Print_Titles\";\n\t        case NameRecord.BUILTIN_RECORDER :          return \"Recorder\";\n\t        case NameRecord.BUILTIN_SHEET_TITLE :       return \"Sheet_Title\";\n\t        \n\t    }\n\t    \n\t    return \"Unknown\";", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "PARAM", "LITERAL_ANCHOR", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [5, 17], [6, 18], [7, 19], [8, 20], [9, 21], [10, 22], [11, 23], [12, 24], [13, 25], [14, 26], [15, 27], [16, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 5], [18, 6], [19, 7], [20, 8], [21, 9], [22, 10], [23, 11], [24, 12], [25, 13], [26, 14], [27, 15], [28, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "NameRecord", "code": "    public NameRecord() {\n        field_13_name_definition = new Stack();\n\n        field_12_name_text = new String();\n        field_14_custom_menu_text = new String();\n        field_15_description_text = new String();\n        field_16_help_topic_text = new String();\n        field_17_status_bar_text = new String();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "NameRecord", "code": "    public NameRecord(short id, short size, byte [] data) {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "NameRecord", "code": "    public NameRecord(short id, short size, byte [] data, int offset) {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "NameRecord", "code": "\tpublic NameRecord(byte builtin, short index)\n\t{\n\t    this();\t    \n\t    this.field_12_builtIn_name = builtin;\n\t    this.setOptionFlag((short)(this.getOptionFlag() | OPT_BUILTIN));\n\t    this.setNameTextLength((byte)1);\n\t    \n\t\tthis.setCustomMenuLength((byte)0);\n\t\tthis.setDescriptionTextLength((byte)0);\n\t\tthis.setHelpTopicLength((byte)0);\n\t\tthis.setStatusBarLength((byte)0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "camel-1.2-1824", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/bean/DefaultParameterMappingStrategy.java", "language": "java", "name": "org.apache.camel.component.bean.DefaultParameterMappingStrategy", "code": "public class DefaultParameterMappingStrategy implements ParameterMappingStrategy {\n    private Map<Class, Expression> parameterTypeToExpressionMap = new ConcurrentHashMap<Class, Expression>();\n\n    public DefaultParameterMappingStrategy() {\n    }\n\n    public synchronized Expression getDefaultParameterTypeExpression(Class parameterType) {\n        return parameterTypeToExpressionMap.get(parameterType);\n    }\n\n    /**\n     * Adds a default parameter type mapping to an expression\n     */\n    public synchronized void addParameterMapping(Class parameterType, Expression expression) {\n        parameterTypeToExpressionMap.put(parameterType, expression);\n    }\n\n    /**\n     * Creates an invocation on the given POJO using annotations to decide which method to invoke\n     * and to figure out which parameters to use\n     */\n/*\n    public MethodInvocation createInvocation(Object pojo,\n                                             BeanInfo beanInfo, \n                                             Exchange messageExchange,\n                                             Endpoint pojoEndpoint) throws RuntimeCamelException {\n        return beanInfo.createInvocation(pojo, messageExchange);\n    }\n*/\n    public void loadDefaultRegistry() {\n        addParameterMapping(Exchange.class, ExpressionBuilder.exchangeExpression());\n        addParameterMapping(Message.class, ExpressionBuilder.inMessageExpression());", "functions": [{"function_name": "getDefaultParameterTypeExpression", "code": "    public synchronized Expression getDefaultParameterTypeExpression(Class parameterType) {\n        return parameterTypeToExpressionMap.get(parameterType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addParameterMapping", "code": "    public synchronized void addParameterMapping(Class parameterType, Expression expression) {\n        parameterTypeToExpressionMap.put(parameterType, expression);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "loadDefaultRegistry", "code": "    public void loadDefaultRegistry() {\n        addParameterMapping(Exchange.class, ExpressionBuilder.exchangeExpression());\n        addParameterMapping(Message.class, ExpressionBuilder.inMessageExpression());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DefaultParameterMappingStrategy", "code": "    public DefaultParameterMappingStrategy() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.4-2204", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/file/remote/FtpProducer.java", "language": "java", "name": "org.apache.camel.component.file.remote.FtpProducer", "code": "public class FtpProducer extends RemoteFileProducer<RemoteFileExchange> {\n    private static final transient Log LOG = LogFactory.getLog(FtpProducer.class);\n\n    private FtpEndpoint endpoint;\n    private FTPClient client;\n\n    public FtpProducer(FtpEndpoint endpoint, FTPClient client) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        this.client = client;\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        connectIfNecessary();\n        try {\n            process(endpoint.createExchange(exchange));\n        } catch (FTPConnectionClosedException e) {\n            LOG.warn(\"Disconnecting due to exception: \" + e.toString());\n            disconnect();\n            throw e;\n        } catch (RuntimeCamelException e) {\n            LOG.warn(\"Caught RuntimeCamelException: \" + e.toString());\n            LOG.warn(\"Hoping an explicit disconnect/reconnect will solve the problem\");\n            disconnect();\n            throw e;\n        }\n    }\n\n    protected void connectIfNecessary() throws IOException {\n        if (!client.isConnected()) {\n            LOG.warn(\"FtpProducer's client isn't connected, trying to reconnect...\");\n            endpoint.connect(client);\n            LOG.info(\"Connected to \" + endpoint.getConfiguration());\n        }\n    }\n\n    public void disconnect() throws IOException {\n        LOG.info(\"FtpProducer's client is being explicitly disconnected\");\n        endpoint.disconnect(client);\n    }\n\n    public void process(RemoteFileExchange exchange) throws Exception {\n        InputStream payload = exchange.getIn().getBody(InputStream.class);\n        try {\n            String fileName = createFileName(exchange.getIn(), endpoint.getConfiguration());\n\n            int lastPathIndex = fileName.lastIndexOf('/');\n            if (lastPathIndex != -1) {\n                String directory = fileName.substring(0, lastPathIndex);\n                if (!buildDirectory(client, directory)) {\n                    LOG.warn(\"Couldn't build directory: \" + directory + \" (either permissions deny it, or it already exists)\");\n                }\n            }\n\n            final boolean success = client.storeFile(fileName, payload);\n            if (!success) {\n                throw new RuntimeCamelException(\"Error sending file: \" + fileName);\n            }\n\n            RemoteFileConfiguration config = endpoint.getConfiguration();\n            LOG.info(\"Sent: \" + fileName + \" to \" + config.toString().substring(0, config.toString().indexOf(config.getFile())));\n        } finally {\n            if (payload != null) {\n                payload.close();\n            }\n        }\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        LOG.info(\"Starting\");\n        try {\n            connectIfNecessary();\n        } catch (IOException e) {\n            LOG.warn(\"Couldn't connect to \" + endpoint.getConfiguration());\n        }\n        super.doStart();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        LOG.info(\"Stopping\");\n        disconnect();\n        super.doStop();\n    }\n\n    protected static boolean buildDirectory(FTPClient ftpClient, String dirName) throws IOException {\n        boolean atLeastOneSuccess = false;\n        final StringBuilder sb = new StringBuilder(dirName.length());\n        final String[] dirs = dirName.split(\"\\\\/\");\n\n        for (String dir : dirs) {\n            sb.append(dir).append('/');\n            String directory = sb.toString();\n\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Trying to build directory: \" + directory);\n            }\n            final boolean success = ftpClient.makeDirectory(directory);\n\n            if (!atLeastOneSuccess && success) {\n                atLeastOneSuccess = true;\n            }\n        }\n\n        return atLeastOneSuccess;", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        connectIfNecessary();\n        try {\n            process(endpoint.createExchange(exchange));\n        } catch (FTPConnectionClosedException e) {\n            LOG.warn(\"Disconnecting due to exception: \" + e.toString());\n            disconnect();\n            throw e;\n        } catch (RuntimeCamelException e) {\n            LOG.warn(\"Caught RuntimeCamelException: \" + e.toString());\n            LOG.warn(\"Hoping an explicit disconnect/reconnect will solve the problem\");\n            disconnect();\n            throw e;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [3, 6], [4, 7], [1, 8], [3, 9], [3, 10], [3, 11], [4, 12], [4, 13], [8, 14], [10, 15], [11, 16], [13, 17], [16, 18], [16, 19], [17, 20], [17, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 3], [7, 4], [8, 1], [9, 3], [10, 3], [11, 3], [12, 4], [13, 4], [14, 8], [15, 10], [16, 11], [17, 13], [18, 16], [19, 16], [20, 17], [21, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "connectIfNecessary", "code": "    protected void connectIfNecessary() throws IOException {\n        if (!client.isConnected()) {\n            LOG.warn(\"FtpProducer's client isn't connected, trying to reconnect...\");\n            endpoint.connect(client);\n            LOG.info(\"Connected to \" + endpoint.getConfiguration());", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [6, 8], [6, 9], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "disconnect", "code": "    public void disconnect() throws IOException {\n        LOG.info(\"FtpProducer's client is being explicitly disconnected\");\n        endpoint.disconnect(client);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "process", "code": "    public void process(RemoteFileExchange exchange) throws Exception {\n        InputStream payload = exchange.getIn().getBody(InputStream.class);\n        try {\n            String fileName = createFileName(exchange.getIn(), endpoint.getConfiguration());\n\n            int lastPathIndex = fileName.lastIndexOf('/');\n            if (lastPathIndex != -1) {\n                String directory = fileName.substring(0, lastPathIndex);\n                if (!buildDirectory(client, directory)) {\n                    LOG.warn(\"Couldn't build directory: \" + directory + \" (either permissions deny it, or it already exists)\");\n                }\n            }\n\n            final boolean success = client.storeFile(fileName, payload);\n            if (!success) {\n                throw new RuntimeCamelException(\"Error sending file: \" + fileName);\n            }\n\n            RemoteFileConfiguration config = endpoint.getConfiguration();\n            LOG.info(\"Sent: \" + fileName + \" to \" + config.toString().substring(0, config.toString().indexOf(config.getFile())));\n        } finally {\n            if (payload != null) {\n                payload.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [1, 12], [8, 13], [2, 14], [11, 15], [12, 16], [5, 17], [6, 18], [7, 19], [8, 20], [8, 21], [13, 22], [9, 23], [10, 24], [14, 25], [4, 26], [16, 27], [16, 28], [18, 29], [20, 30], [23, 31], [24, 32], [24, 33], [27, 34], [28, 35], [28, 36], [29, 37], [21, 38], [34, 39], [34, 40], [36, 41], [37, 42], [20, 43], [38, 44], [39, 45], [43, 46], [45, 47], [46, 48], [46, 49], [49, 50], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 1], [13, 8], [14, 2], [15, 11], [16, 12], [17, 5], [18, 6], [19, 7], [20, 8], [21, 8], [22, 13], [23, 9], [24, 10], [25, 14], [26, 4], [27, 16], [28, 16], [29, 18], [30, 20], [31, 23], [32, 24], [33, 24], [34, 27], [35, 28], [36, 28], [37, 29], [38, 21], [39, 34], [40, 34], [41, 36], [42, 37], [43, 20], [44, 38], [45, 39], [46, 43], [47, 45], [48, 46], [49, 46], [50, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        LOG.info(\"Starting\");\n        try {\n            connectIfNecessary();\n        } catch (IOException e) {\n            LOG.warn(\"Couldn't connect to \" + endpoint.getConfiguration());\n        }\n        super.doStart();", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [3, 5], [2, 6], [6, 7], [7, 8], [7, 9], [1, 0], [2, 1], [3, 0], [4, 1], [5, 3], [6, 2], [7, 6], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        LOG.info(\"Stopping\");\n        disconnect();\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "buildDirectory", "code": "    protected static boolean buildDirectory(FTPClient ftpClient, String dirName) throws IOException {\n        boolean atLeastOneSuccess = false;\n        final StringBuilder sb = new StringBuilder(dirName.length());\n        final String[] dirs = dirName.split(\"\\\\/\");\n\n        for (String dir : dirs) {\n            sb.append(dir).append('/');\n            String directory = sb.toString();\n\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Trying to build directory: \" + directory);\n            }\n            final boolean success = ftpClient.makeDirectory(directory);\n\n            if (!atLeastOneSuccess && success) {\n                atLeastOneSuccess = true;\n            }\n        }\n\n        return atLeastOneSuccess;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [3, 12], [4, 13], [5, 14], [8, 15], [10, 16], [2, 17], [12, 18], [13, 19], [9, 20], [11, 21], [17, 22], [8, 23], [10, 24], [22, 25], [23, 26], [24, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 3], [13, 4], [14, 5], [15, 8], [16, 10], [17, 2], [18, 12], [19, 13], [20, 9], [21, 11], [22, 17], [23, 8], [24, 10], [25, 22], [26, 23], [27, 24], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "FtpProducer", "code": "    public FtpProducer(FtpEndpoint endpoint, FTPClient client) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        this.client = client;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.5-7338", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/compiler/FuncLoader.java", "language": "java", "name": "org.apache.xpath.compiler.FuncLoader", "code": "public class FuncLoader\n{\n\n  /** The function ID, which may correspond to one of the FUNC_XXX values \n   *  found in {@link org.apache.xpath.compiler.FunctionTable}, but may \n   *  be a value installed by an external module.  */\n  private int m_funcID;\n\n  /** The class name of the function.  Must not be null.   */\n  private String m_funcName;\n\n  /**\n   * Get the local class name of the function class.  If function name does \n   * not have a '.' in it, it is assumed to be relative to \n   * 'org.apache.xpath.functions'.\n   *\n   * @return The class name of the {org.apache.xpath.functions.Function} class.\n   */\n  public String getName()\n  {\n    return m_funcName;\n  }\n\n  /**\n   * Construct a function loader\n   *\n   * @param funcName The class name of the {org.apache.xpath.functions.Function} \n   *             class, which, if it does not have a '.' in it, is assumed to \n   *             be relative to 'org.apache.xpath.functions'. \n   * @param funcID  The function ID, which may correspond to one of the FUNC_XXX \n   *    values found in {@link org.apache.xpath.compiler.FunctionTable}, but may \n   *    be a value installed by an external module. \n   */\n  public FuncLoader(String funcName, int funcID)\n  {\n\n    super();\n\n    m_funcID = funcID;\n    m_funcName = funcName;\n  }\n\n  /**\n   * Get a Function instance that this instance is liaisoning for.\n   *\n   * @return non-null reference to Function derivative.\n   *\n   * @throws javax.xml.transform.TransformerException if ClassNotFoundException, \n   *    IllegalAccessException, or InstantiationException is thrown.\n   */\n  public Function getFunction() throws javax.xml.transform.TransformerException\n  {\n\n    try\n    {\n      Class function;\n\n      if (m_funcName.indexOf(\".\") < 0)\n      {\n\n        String classname = \"org.apache.xpath.functions.\" + m_funcName;\n\n        function = Class.forName(classname);\n      }\n      else\n        function = Class.forName(m_funcName);\n\n      Function func = (Function) function.newInstance();\n\n      return func;\n    }\n    catch (ClassNotFoundException e)\n    {\n      throw new javax.xml.transform.TransformerException(e);\n    }\n    catch (IllegalAccessException e)\n    {\n      throw new javax.xml.transform.TransformerException(e);\n    }\n    catch (InstantiationException e)\n    {\n      throw new javax.xml.transform.TransformerException(e);", "functions": [{"function_name": "getName", "code": "  public String getName()\n  {\n    return m_funcName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFunction", "code": "  public Function getFunction() throws javax.xml.transform.TransformerException\n  {\n\n    try\n    {\n      Class function;\n\n      if (m_funcName.indexOf(\".\") < 0)\n      {\n\n        String classname = \"org.apache.xpath.functions.\" + m_funcName;\n\n        function = Class.forName(classname);\n      }\n      else\n        function = Class.forName(m_funcName);\n\n      Function func = (Function) function.newInstance();\n\n      return func;\n    }\n    catch (ClassNotFoundException e)\n    {\n      throw new javax.xml.transform.TransformerException(e);\n    }\n    catch (IllegalAccessException e)\n    {\n      throw new javax.xml.transform.TransformerException(e);\n    }\n    catch (InstantiationException e)\n    {\n      throw new javax.xml.transform.TransformerException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CATCH", "CATCH", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [3, 10], [4, 11], [7, 12], [9, 13], [10, 14], [11, 15], [7, 16], [7, 17], [12, 18], [12, 19], [6, 20], [16, 21], [7, 22], [19, 23], [22, 24], [17, 25], [25, 26], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 3], [11, 4], [12, 7], [13, 9], [14, 10], [15, 11], [16, 7], [17, 7], [18, 12], [19, 12], [20, 6], [21, 16], [22, 7], [23, 19], [24, 22], [25, 17], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "FuncLoader", "code": "  public FuncLoader(String funcName, int funcID)\n  {\n\n    super();\n\n    m_funcID = funcID;\n    m_funcName = funcName;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.6-3019", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/http/CamelServlet.java", "language": "java", "name": "org.apache.camel.component.http.CamelServlet", "code": "public class CamelServlet extends HttpServlet {\n\n    private ConcurrentHashMap<String, HttpConsumer> consumers = new ConcurrentHashMap<String, HttpConsumer>();\n\n    public CamelServlet() {\n    }\n\n    @Override\n    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n        try {\n\n            HttpConsumer consumer = resolve(request);\n            if (consumer == null) {\n                response.sendError(HttpServletResponse.SC_NOT_FOUND);\n                return;\n            }\n\n            HttpExchange exchange = new HttpExchange(consumer.getEndpoint(), request, response);\n            consumer.getProcessor().process(exchange);\n\n\n            consumer.getBinding().writeResponse(exchange, response);\n\n        } catch (Exception e) {\n            throw new ServletException(e);\n        }\n    }\n\n    protected HttpConsumer resolve(HttpServletRequest request) {\n        String path = request.getPathInfo();\n        return consumers.get(path);\n    }\n\n    public void connect(HttpConsumer consumer) {\n        consumers.put(consumer.getPath(), consumer);\n    }\n\n    public void disconnect(HttpConsumer consumer) {\n        consumers.remove(consumer.getPath());", "functions": [{"function_name": "service", "code": "    @Override\n    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n        try {\n\n            HttpConsumer consumer = resolve(request);\n            if (consumer == null) {\n                response.sendError(HttpServletResponse.SC_NOT_FOUND);\n                return;\n            }\n\n            HttpExchange exchange = new HttpExchange(consumer.getEndpoint(), request, response);\n            consumer.getProcessor().process(exchange);\n\n\n            consumer.getBinding().writeResponse(exchange, response);\n\n        } catch (Exception e) {\n            throw new ServletException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [1, 9], [1, 10], [6, 11], [8, 12], [9, 13], [10, 14], [5, 15], [6, 16], [11, 17], [7, 18], [15, 19], [6, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 1], [10, 1], [11, 6], [12, 8], [13, 9], [14, 10], [15, 5], [16, 6], [17, 11], [18, 7], [19, 15], [20, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "resolve", "code": "    protected HttpConsumer resolve(HttpServletRequest request) {\n        String path = request.getPathInfo();\n        return consumers.get(path);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "connect", "code": "    public void connect(HttpConsumer consumer) {\n        consumers.put(consumer.getPath(), consumer);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "disconnect", "code": "    public void disconnect(HttpConsumer consumer) {\n        consumers.remove(consumer.getPath());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "CamelServlet", "code": "    public CamelServlet() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.0-1379", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/util/UuidGenerator.java", "language": "java", "name": "org.apache.camel.util.UuidGenerator", "code": "public class UuidGenerator {\n\n    private static final Logger log = Logger.getLogger(UuidGenerator.class.getName());\n    private static final String UNIQUE_STUB;\n    private static int instanceCount;\n    private static String hostName;\n    private String seed;\n    private long sequence;\n    \n    static {\n        String stub = \"\";\n        boolean canAccessSystemProps = true;\n        try{\n            SecurityManager sm = System.getSecurityManager();\n            if(sm != null){\n                sm.checkPropertiesAccess();\n            }\n        }catch(SecurityException se){\n            canAccessSystemProps = false;\n        }\n        \n        if ( canAccessSystemProps) {\n            try {\n                hostName = InetAddress.getLocalHost().getHostName();\n                ServerSocket ss = new ServerSocket(0);\n                stub=\"/\" + ss.getLocalPort() + \"-\" + System.currentTimeMillis() + \"/\";\n                Thread.sleep(100);\n                ss.close();\n            }catch(Exception ioe){\n                log.log(Level.WARNING, \"could not generate unique stub\",ioe);\n            }\n        }else{\n            hostName=\"localhost\";\n            stub = \"-1-\" +System.currentTimeMillis() +\"-\";\n        }\n        UNIQUE_STUB = stub;\n    }\n    \n    /**\n     * As we have to find the hostname as a side-affect of generating\n     * a unique stub, we allow it's easy retrevial here\n     * @return the local host name\n     */\n    \n    public static String getHostName(){\n        return hostName;\n    }\n    \n    /**\n     * Construct an IdGenerator\n     *\n     */\n    \n    public UuidGenerator(String prefix){\n        synchronized(UNIQUE_STUB){\n            this.seed = prefix + UNIQUE_STUB +(instanceCount++) +\"-\";\n        }\n    }\n    \n    public UuidGenerator(){\n        this(\"ID-\" + hostName);\n    }\n    \n    /**\n     * Generate a unqiue id\n     * @return a unique id\n     */\n    \n    public synchronized String generateId(){\n        return this.seed + (this.sequence++);\n    }\n    \n    /**\n     * Generate a unique ID - that is friendly for a URL or file system\n     * @return a unique id\n     */\n    public String generateSanitizedId(){\n        String result = generateId();\n        result = result.replace(':', '-');\n        result = result.replace('_', '-');\n        result = result.replace('.', '-');\n        return result;", "functions": [{"function_name": "getHostName", "code": "    public static String getHostName(){\n        return hostName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "generateId", "code": "    public synchronized String generateId(){\n        return this.seed + (this.sequence++);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "generateSanitizedId", "code": "    public String generateSanitizedId(){\n        String result = generateId();\n        result = result.replace(':', '-');\n        result = result.replace('_', '-');\n        result = result.replace('.', '-');\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [5, 8], [2, 9], [6, 10], [6, 11], [7, 12], [7, 13], [8, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 5], [9, 2], [10, 6], [11, 6], [12, 7], [13, 7], [14, 8], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "UuidGenerator", "code": "    public UuidGenerator(String prefix){\n        synchronized(UNIQUE_STUB){\n            this.seed = prefix + UNIQUE_STUB +(instanceCount++) +\"-\";", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "UuidGenerator", "code": "    public UuidGenerator(){\n        this(\"ID-\" + hostName);", "ast_nodes": ["FUNC_DECL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.2-4313", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/browser/BrowserCommandsMenu.java", "language": "java", "name": "org.gjt.sp.jedit.browser.BrowserCommandsMenu", "code": "public class BrowserCommandsMenu extends JPopupMenu\n{\n\t//{{{ BrowserCommandsMenu constructor\n\tpublic BrowserCommandsMenu(VFSBrowser browser, VFS.DirectoryEntry[] files)\n\t{\n\t\tthis.browser = browser;\n\n\t\tif(files != null)\n\t\t{\n\t\t\tVFS vfs = VFSManager.getVFSForPath(files[0].deletePath);\n\t\t\tint type = files[0].type;\n\t\t\tboolean fileOpen = (jEdit.getBuffer(files[0].path) != null);\n\t\t\tboolean delete = !fileOpen && (vfs.getCapabilities() & VFS.DELETE_CAP) != 0;\n\t\t\tboolean rename = !fileOpen && (vfs.getCapabilities() & VFS.RENAME_CAP) != 0;\n\n\t\t\tfor(int i = 1; i < files.length; i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = files[i];\n\n\t\t\t\tVFS _vfs = VFSManager.getVFSForPath(file.deletePath);\n\t\t\t\tdelete &= (vfs == _vfs) && (_vfs.getCapabilities()\n\t\t\t\t\t& VFS.DELETE_CAP) != 0;\n\n\t\t\t\tif(type == file.type)\n\t\t\t\t\t/* all good */;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// this will disable most operations if\n\t\t\t\t\t// files of multiple types are selected\n\t\t\t\t\ttype = -1;\n\t\t\t\t}\n\n\t\t\t\t// set rename to false if > 1 file selected\n\t\t\t\trename = false;\n\n\t\t\t\t// show 'close' item if at least one selected\n\t\t\t\t// file is currently open\n\t\t\t\tif(jEdit.getBuffer(file.path) != null)\n\t\t\t\t\tfileOpen = true;\n\t\t\t}\n\n\t\t\tif(type == VFS.DirectoryEntry.DIRECTORY\n\t\t\t\t|| type == VFS.DirectoryEntry.FILESYSTEM)\n\t\t\t{\n\t\t\t\tif(files.length == 1)\n\t\t\t\t\tadd(createMenuItem(\"browse\"));\n\t\t\t\tif(browser.getMode() == VFSBrowser.BROWSER)\n\t\t\t\t\tadd(createMenuItem(\"browse-window\"));\n\t\t\t}\n\t\t\telse if(type == VFS.DirectoryEntry.FILE\n\t\t\t\t&& (browser.getMode() == VFSBrowser.BROWSER\n\t\t\t\t|| browser.getMode() == VFSBrowser.BROWSER_DIALOG))\n\t\t\t{\n\t\t\t\tadd(createMenuItem(\"open\"));\n\t\t\t\tadd(GUIUtilities.loadMenu(\n\t\t\t\t\tVFSBrowser.getActionContext(),\n\t\t\t\t\t\"vfs.browser.open-in\"));\n\t\t\t\tadd(createMenuItem(\"insert\"));\n\n\t\t\t\tif(fileOpen)\n\t\t\t\t\tadd(createMenuItem(\"close\"));\n\t\t\t}\n\t\t\telse if(type != -1)\n\t\t\t\tadd(createMenuItem(\"open\"));\n\n\t\t\tif(rename)\n\t\t\t\tadd(createMenuItem(\"rename\"));\n\t\t\tif(delete)\n\t\t\t\tadd(createMenuItem(\"delete\"));\n\n\t\t\tadd(createMenuItem(\"copy-path\"));\n\t\t\taddSeparator();\n\t\t}\n\n\t\tadd(createMenuItem(\"up\"));\n\t\tadd(createMenuItem(\"reload\"));\n\t\tadd(createMenuItem(\"roots\"));\n\t\tadd(createMenuItem(\"home\"));\n\t\tadd(createMenuItem(\"synchronize\"));\n\t\taddSeparator();\n\n\t\tif(browser.getMode() == VFSBrowser.BROWSER)\n\t\t\tadd(createMenuItem(\"new-file\"));\n\n\t\tadd(createMenuItem(\"new-directory\"));\n\n\t\tif(browser.getMode() == VFSBrowser.BROWSER)\n\t\t{\n\t\t\taddSeparator();\n\t\t\tadd(createMenuItem(\"search-directory\"));\n\t\t}\n\n\t\taddSeparator();\n\n\t\tadd(createMenuItem(\"show-hidden-files\"));\n\n\t\tif(browser.getMode() == VFSBrowser.BROWSER\n\t\t\t|| browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t{\n\t\t\taddSeparator();\n\t\t\tadd(createEncodingMenu());\n\t\t}\n\n\t\tupdate();\n\t} //}}}\n\n\t//{{{ update() method\n\tpublic void update()\n\t{\n\t\tif(encodingMenuItems != null)\n\t\t{\n\t\t\tJRadioButtonMenuItem mi = (JRadioButtonMenuItem)\n\t\t\t\tencodingMenuItems.get(browser.currentEncoding);\n\t\t\tif(mi != null)\n\t\t\t{\n\t\t\t\tmi.setSelected(true);\n\t\t\t\totherEncoding.setText(jEdit.getProperty(\n\t\t\t\t\t\"vfs.browser.other-encoding.label\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\totherEncoding.setSelected(true);\n\t\t\t\totherEncoding.setText(jEdit.getProperty(\n\t\t\t\t\t\"vfs.browser.other-encoding-2.label\",\n\t\t\t\t\tnew String[] { browser.currentEncoding }));\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate VFSBrowser browser;\n\tprivate HashMap encodingMenuItems;\n\tprivate JCheckBoxMenuItem autoDetect;\n\tprivate JRadioButtonMenuItem otherEncoding;\n\n\t//{{{ createMenuItem() method\n\tprivate JMenuItem createMenuItem(String name)\n\t{\n\t\treturn GUIUtilities.loadMenuItem(VFSBrowser.getActionContext(),\n\t\t\t\"vfs.browser.\" + name,false);\n\t} //}}}\n\n\t//{{{ createEncodingMenu() method\n\tprivate JMenu createEncodingMenu()\n\t{\n\t\tActionHandler actionHandler = new ActionHandler();\n\n\t\tencodingMenuItems = new HashMap();\n\t\tJMenu encodingMenu = new JMenu(jEdit.getProperty(\n\t\t\t\"vfs.browser.commands.encoding.label\"));\n\n\t\tJMenu menu = encodingMenu;\n\n\t\tautoDetect = new JCheckBoxMenuItem(\n\t\t\tjEdit.getProperty(\n\t\t\t\"vfs.browser.commands.encoding.auto-detect\"));\n\t\tautoDetect.setSelected(browser.autoDetectEncoding);\n\t\tautoDetect.setActionCommand(\"auto-detect\");\n\t\tautoDetect.addActionListener(actionHandler);\n\t\tmenu.add(autoDetect);\n\t\tmenu.addSeparator();\n\n\t\tButtonGroup grp = new ButtonGroup();\n\n\t\tList encodingMenuItemList = new ArrayList();\n\t\tString[] encodings = MiscUtilities.getEncodings();\n\t\tfor(int i = 0; i < encodings.length; i++)\n\t\t{\n\t\t\tString encoding = encodings[i];\n\t\t\tJRadioButtonMenuItem mi = new JRadioButtonMenuItem(encoding);\n\t\t\tmi.setActionCommand(\"encoding@\" + encoding);\n\t\t\tmi.addActionListener(actionHandler);\n\t\t\tgrp.add(mi);\n\t\t\tencodingMenuItems.put(encoding,mi);\n\t\t\tencodingMenuItemList.add(mi);\n\t\t}\n\n\t\tString systemEncoding = System.getProperty(\"file.encoding\");\n\t\tif(encodingMenuItems.get(systemEncoding) == null)\n\t\t{\n\t\t\tJRadioButtonMenuItem mi = new JRadioButtonMenuItem(\n\t\t\t\tsystemEncoding);\n\t\t\tmi.setActionCommand(\"encoding@\" + systemEncoding);\n\t\t\tmi.addActionListener(actionHandler);\n\t\t\tgrp.add(mi);\n\t\t\tencodingMenuItems.put(systemEncoding,mi);\n\t\t\tencodingMenuItemList.add(mi);\n\t\t}\n\n\t\tCollections.sort(encodingMenuItemList,\n\t\t\tnew MiscUtilities.MenuItemCompare());\n\n\t\tIterator iter = encodingMenuItemList.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tJRadioButtonMenuItem mi = (JRadioButtonMenuItem)\n\t\t\t\titer.next();\n\n\t\t\tif(menu.getMenuComponentCount() > 20)\n\t\t\t{\n\t\t\t\tJMenu newMenu = new JMenu(\n\t\t\t\t\tjEdit.getProperty(\"common.more\"));\n\t\t\t\tmenu.add(newMenu);\n\t\t\t\tmenu = newMenu;\n\t\t\t}\n\n\t\t\tmenu.add(mi);\n\t\t}\n\t\tmenu.addSeparator();\n\n\t\totherEncoding = new JRadioButtonMenuItem();\n\t\totherEncoding.setActionCommand(\"other-encoding\");\n\t\totherEncoding.addActionListener(actionHandler);\n\t\tgrp.add(otherEncoding);\n\t\tmenu.add(otherEncoding);\n\n\t\treturn encodingMenu;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tString actionCommand = evt.getActionCommand();\n\n\t\t\tif(actionCommand.equals(\"auto-detect\"))\n\t\t\t{\n\t\t\t\tbrowser.autoDetectEncoding\n\t\t\t\t\t= autoDetect.isSelected();\n\t\t\t}\n\t\t\telse if(actionCommand.equals(\"other-encoding\"))\n\t\t\t{\n\t\t\t\tString encoding = GUIUtilities.input(browser,\n\t\t\t\t\t\"encoding-prompt\",null,\n\t\t\t\t\tjEdit.getProperty(\"buffer.encoding\",\n\t\t\t\t\tSystem.getProperty(\"file.encoding\")));\n\t\t\t\tif(encoding == null)\n\t\t\t\t\treturn;\n\t\t\t\tbrowser.currentEncoding = encoding;\n\t\t\t}\n\t\t\telse if(actionCommand.startsWith(\"encoding@\"))\n\t\t\t{\n\t\t\t\tbrowser.currentEncoding = actionCommand.substring(9);", "functions": [{"function_name": "update", "code": "\tpublic void update()\n\t{\n\t\tif(encodingMenuItems != null)\n\t\t{\n\t\t\tJRadioButtonMenuItem mi = (JRadioButtonMenuItem)\n\t\t\t\tencodingMenuItems.get(browser.currentEncoding);\n\t\t\tif(mi != null)\n\t\t\t{\n\t\t\t\tmi.setSelected(true);\n\t\t\t\totherEncoding.setText(jEdit.getProperty(\n\t\t\t\t\t\"vfs.browser.other-encoding.label\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\totherEncoding.setSelected(true);\n\t\t\t\totherEncoding.setText(jEdit.getProperty(\n\t\t\t\t\t\"vfs.browser.other-encoding-2.label\",\n\t\t\t\t\tnew String[] { browser.currentEncoding }));", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [6, 7], [3, 8], [3, 9], [3, 10], [3, 11], [4, 12], [8, 13], [9, 14], [10, 15], [11, 16], [13, 17], [15, 18], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 6], [8, 3], [9, 3], [10, 3], [11, 3], [12, 4], [13, 8], [14, 9], [15, 10], [16, 11], [17, 13], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "createMenuItem", "code": "\tprivate JMenuItem createMenuItem(String name)\n\t{\n\t\treturn GUIUtilities.loadMenuItem(VFSBrowser.getActionContext(),\n\t\t\t\"vfs.browser.\" + name,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createEncodingMenu", "code": "\tprivate JMenu createEncodingMenu()\n\t{\n\t\tActionHandler actionHandler = new ActionHandler();\n\n\t\tencodingMenuItems = new HashMap();\n\t\tJMenu encodingMenu = new JMenu(jEdit.getProperty(\n\t\t\t\"vfs.browser.commands.encoding.label\"));\n\n\t\tJMenu menu = encodingMenu;\n\n\t\tautoDetect = new JCheckBoxMenuItem(\n\t\t\tjEdit.getProperty(\n\t\t\t\"vfs.browser.commands.encoding.auto-detect\"));\n\t\tautoDetect.setSelected(browser.autoDetectEncoding);\n\t\tautoDetect.setActionCommand(\"auto-detect\");\n\t\tautoDetect.addActionListener(actionHandler);\n\t\tmenu.add(autoDetect);\n\t\tmenu.addSeparator();\n\n\t\tButtonGroup grp = new ButtonGroup();\n\n\t\tList encodingMenuItemList = new ArrayList();\n\t\tString[] encodings = MiscUtilities.getEncodings();\n\t\tfor(int i = 0; i < encodings.length; i++)\n\t\t{\n\t\t\tString encoding = encodings[i];\n\t\t\tJRadioButtonMenuItem mi = new JRadioButtonMenuItem(encoding);\n\t\t\tmi.setActionCommand(\"encoding@\" + encoding);\n\t\t\tmi.addActionListener(actionHandler);\n\t\t\tgrp.add(mi);\n\t\t\tencodingMenuItems.put(encoding,mi);\n\t\t\tencodingMenuItemList.add(mi);\n\t\t}\n\n\t\tString systemEncoding = System.getProperty(\"file.encoding\");\n\t\tif(encodingMenuItems.get(systemEncoding) == null)\n\t\t{\n\t\t\tJRadioButtonMenuItem mi = new JRadioButtonMenuItem(\n\t\t\t\tsystemEncoding);\n\t\t\tmi.setActionCommand(\"encoding@\" + systemEncoding);\n\t\t\tmi.addActionListener(actionHandler);\n\t\t\tgrp.add(mi);\n\t\t\tencodingMenuItems.put(systemEncoding,mi);\n\t\t\tencodingMenuItemList.add(mi);\n\t\t}\n\n\t\tCollections.sort(encodingMenuItemList,\n\t\t\tnew MiscUtilities.MenuItemCompare());\n\n\t\tIterator iter = encodingMenuItemList.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tJRadioButtonMenuItem mi = (JRadioButtonMenuItem)\n\t\t\t\titer.next();\n\n\t\t\tif(menu.getMenuComponentCount() > 20)\n\t\t\t{\n\t\t\t\tJMenu newMenu = new JMenu(\n\t\t\t\t\tjEdit.getProperty(\"common.more\"));\n\t\t\t\tmenu.add(newMenu);\n\t\t\t\tmenu = newMenu;\n\t\t\t}\n\n\t\t\tmenu.add(mi);\n\t\t}\n\t\tmenu.addSeparator();\n\n\t\totherEncoding = new JRadioButtonMenuItem();\n\t\totherEncoding.setActionCommand(\"other-encoding\");\n\t\totherEncoding.addActionListener(actionHandler);\n\t\tgrp.add(otherEncoding);\n\t\tmenu.add(otherEncoding);\n\n\t\treturn encodingMenu;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [2, 19], [0, 20], [4, 21], [6, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [16, 30], [17, 31], [2, 32], [2, 33], [3, 34], [20, 35], [4, 36], [21, 37], [21, 38], [5, 39], [6, 40], [6, 41], [7, 42], [8, 43], [9, 44], [26, 45], [28, 46], [11, 47], [29, 48], [12, 49], [2, 50], [32, 51], [4, 52], [4, 53], [4, 54], [4, 55], [4, 56], [39, 57], [6, 58], [6, 59], [6, 60], [6, 61], [6, 62], [6, 63], [46, 64], [47, 65], [32, 66], [51, 67], [51, 68], [56, 69], [36, 70], [62, 71], [40, 72], [64, 73], [65, 74], [32, 75], [32, 76], [33, 77], [69, 78], [71, 79], [66, 80], [80, 81], [81, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 2], [20, 0], [21, 4], [22, 6], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 16], [31, 17], [32, 2], [33, 2], [34, 3], [35, 20], [36, 4], [37, 21], [38, 21], [39, 5], [40, 6], [41, 6], [42, 7], [43, 8], [44, 9], [45, 26], [46, 28], [47, 11], [48, 29], [49, 12], [50, 2], [51, 32], [52, 4], [53, 4], [54, 4], [55, 4], [56, 4], [57, 39], [58, 6], [59, 6], [60, 6], [61, 6], [62, 6], [63, 6], [64, 46], [65, 47], [66, 32], [67, 51], [68, 51], [69, 56], [70, 36], [71, 62], [72, 40], [73, 64], [74, 65], [75, 32], [76, 32], [77, 33], [78, 69], [79, 71], [80, 66], [81, 80], [82, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "BrowserCommandsMenu", "code": "\tpublic BrowserCommandsMenu(VFSBrowser browser, VFS.DirectoryEntry[] files)\n\t{\n\t\tthis.browser = browser;\n\n\t\tif(files != null)\n\t\t{\n\t\t\tVFS vfs = VFSManager.getVFSForPath(files[0].deletePath);\n\t\t\tint type = files[0].type;\n\t\t\tboolean fileOpen = (jEdit.getBuffer(files[0].path) != null);\n\t\t\tboolean delete = !fileOpen && (vfs.getCapabilities() & VFS.DELETE_CAP) != 0;\n\t\t\tboolean rename = !fileOpen && (vfs.getCapabilities() & VFS.RENAME_CAP) != 0;\n\n\t\t\tfor(int i = 1; i < files.length; i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = files[i];\n\n\t\t\t\tVFS _vfs = VFSManager.getVFSForPath(file.deletePath);\n\t\t\t\tdelete &= (vfs == _vfs) && (_vfs.getCapabilities()\n\t\t\t\t\t& VFS.DELETE_CAP) != 0;\n\n\t\t\t\tif(type == file.type)\n\t\t\t\t\t/* all good */;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// this will disable most operations if\n\t\t\t\t\t// files of multiple types are selected\n\t\t\t\t\ttype = -1;\n\t\t\t\t}\n\n\t\t\t\t// set rename to false if > 1 file selected\n\t\t\t\trename = false;\n\n\t\t\t\t// show 'close' item if at least one selected\n\t\t\t\t// file is currently open\n\t\t\t\tif(jEdit.getBuffer(file.path) != null)\n\t\t\t\t\tfileOpen = true;\n\t\t\t}\n\n\t\t\tif(type == VFS.DirectoryEntry.DIRECTORY\n\t\t\t\t|| type == VFS.DirectoryEntry.FILESYSTEM)\n\t\t\t{\n\t\t\t\tif(files.length == 1)\n\t\t\t\t\tadd(createMenuItem(\"browse\"));\n\t\t\t\tif(browser.getMode() == VFSBrowser.BROWSER)\n\t\t\t\t\tadd(createMenuItem(\"browse-window\"));\n\t\t\t}\n\t\t\telse if(type == VFS.DirectoryEntry.FILE\n\t\t\t\t&& (browser.getMode() == VFSBrowser.BROWSER\n\t\t\t\t|| browser.getMode() == VFSBrowser.BROWSER_DIALOG))\n\t\t\t{\n\t\t\t\tadd(createMenuItem(\"open\"));\n\t\t\t\tadd(GUIUtilities.loadMenu(\n\t\t\t\t\tVFSBrowser.getActionContext(),\n\t\t\t\t\t\"vfs.browser.open-in\"));\n\t\t\t\tadd(createMenuItem(\"insert\"));\n\n\t\t\t\tif(fileOpen)\n\t\t\t\t\tadd(createMenuItem(\"close\"));\n\t\t\t}\n\t\t\telse if(type != -1)\n\t\t\t\tadd(createMenuItem(\"open\"));\n\n\t\t\tif(rename)\n\t\t\t\tadd(createMenuItem(\"rename\"));\n\t\t\tif(delete)\n\t\t\t\tadd(createMenuItem(\"delete\"));\n\n\t\t\tadd(createMenuItem(\"copy-path\"));\n\t\t\taddSeparator();\n\t\t}\n\n\t\tadd(createMenuItem(\"up\"));\n\t\tadd(createMenuItem(\"reload\"));\n\t\tadd(createMenuItem(\"roots\"));\n\t\tadd(createMenuItem(\"home\"));\n\t\tadd(createMenuItem(\"synchronize\"));\n\t\taddSeparator();\n\n\t\tif(browser.getMode() == VFSBrowser.BROWSER)\n\t\t\tadd(createMenuItem(\"new-file\"));\n\n\t\tadd(createMenuItem(\"new-directory\"));\n\n\t\tif(browser.getMode() == VFSBrowser.BROWSER)\n\t\t{\n\t\t\taddSeparator();\n\t\t\tadd(createMenuItem(\"search-directory\"));\n\t\t}\n\n\t\taddSeparator();\n\n\t\tadd(createMenuItem(\"show-hidden-files\"));\n\n\t\tif(browser.getMode() == VFSBrowser.BROWSER\n\t\t\t|| browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t{\n\t\t\taddSeparator();\n\t\t\tadd(createEncodingMenu());\n\t\t}\n\n\t\tupdate();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [2, 11], [0, 12], [3, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [4, 20], [0, 21], [8, 22], [8, 23], [9, 24], [11, 25], [12, 26], [3, 27], [13, 28], [15, 29], [16, 30], [17, 31], [18, 32], [19, 33], [4, 34], [4, 35], [4, 36], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [20, 43], [1, 44], [1, 45], [22, 46], [23, 47], [24, 48], [2, 49], [2, 50], [26, 51], [27, 52], [29, 53], [30, 54], [31, 55], [32, 56], [33, 57], [4, 58], [4, 59], [36, 60], [36, 61], [37, 62], [44, 63], [49, 64], [52, 65], [59, 66], [34, 67], [35, 68], [60, 69], [60, 70], [36, 71], [36, 72], [61, 73], [61, 74], [37, 75], [37, 76], [37, 77], [37, 78], [38, 79], [39, 80], [40, 81], [42, 82], [64, 83], [66, 84], [67, 85], [68, 86], [69, 87], [60, 88], [70, 89], [70, 90], [71, 91], [72, 92], [75, 93], [37, 94], [76, 95], [37, 96], [37, 97], [79, 98], [80, 99], [81, 100], [81, 101], [85, 102], [86, 103], [69, 104], [87, 105], [60, 106], [60, 107], [60, 108], [89, 109], [89, 110], [71, 111], [91, 112], [72, 113], [92, 114], [75, 115], [93, 116], [93, 117], [94, 118], [96, 119], [77, 120], [98, 121], [98, 122], [99, 123], [99, 124], [41, 125], [104, 126], [88, 127], [106, 128], [107, 129], [108, 130], [109, 131], [110, 132], [111, 133], [113, 134], [115, 135], [76, 136], [119, 137], [119, 138], [122, 139], [124, 140], [82, 141], [126, 142], [127, 143], [128, 144], [129, 145], [129, 146], [130, 147], [133, 148], [134, 149], [136, 150], [137, 151], [137, 152], [101, 153], [143, 154], [152, 155], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 2], [12, 0], [13, 3], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 4], [21, 0], [22, 8], [23, 8], [24, 9], [25, 11], [26, 12], [27, 3], [28, 13], [29, 15], [30, 16], [31, 17], [32, 18], [33, 19], [34, 4], [35, 4], [36, 4], [37, 4], [38, 4], [39, 4], [40, 4], [41, 4], [42, 4], [43, 20], [44, 1], [45, 1], [46, 22], [47, 23], [48, 24], [49, 2], [50, 2], [51, 26], [52, 27], [53, 29], [54, 30], [55, 31], [56, 32], [57, 33], [58, 4], [59, 4], [60, 36], [61, 36], [62, 37], [63, 44], [64, 49], [65, 52], [66, 59], [67, 34], [68, 35], [69, 60], [70, 60], [71, 36], [72, 36], [73, 61], [74, 61], [75, 37], [76, 37], [77, 37], [78, 37], [79, 38], [80, 39], [81, 40], [82, 42], [83, 64], [84, 66], [85, 67], [86, 68], [87, 69], [88, 60], [89, 70], [90, 70], [91, 71], [92, 72], [93, 75], [94, 37], [95, 76], [96, 37], [97, 37], [98, 79], [99, 80], [100, 81], [101, 81], [102, 85], [103, 86], [104, 69], [105, 87], [106, 60], [107, 60], [108, 60], [109, 89], [110, 89], [111, 71], [112, 91], [113, 72], [114, 92], [115, 75], [116, 93], [117, 93], [118, 94], [119, 96], [120, 77], [121, 98], [122, 98], [123, 99], [124, 99], [125, 41], [126, 104], [127, 88], [128, 106], [129, 107], [130, 108], [131, 109], [132, 110], [133, 111], [134, 113], [135, 115], [136, 76], [137, 119], [138, 119], [139, 122], [140, 124], [141, 82], [142, 126], [143, 127], [144, 128], [145, 129], [146, 129], [147, 130], [148, 133], [149, 134], [150, 136], [151, 137], [152, 137], [153, 101], [154, 143], [155, 152], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155]]}], "label": 0}
{"sample_id": "xalan-2.7-8152", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/transformer/StackGuard.java", "language": "java", "name": "org.apache.xalan.transformer.StackGuard", "code": "public class StackGuard\n{\n\n  /**\n   * Used for infinite loop check. If the value is -1, do not\n   * check for infinite loops. Anyone who wants to enable that\n   * check should change the value of this variable to be the\n   * level of recursion that they want to check. Be careful setting\n   * this variable, if the number is too low, it may report an\n   * infinite loop situation, when there is none.\n   * Post version 1.0.0, we'll make this a runtime feature.\n   */\n  private int m_recursionLimit = -1;\n  \n  TransformerImpl m_transformer;\n\n  /**\n   * Get the recursion limit.\n   * Used for infinite loop check. If the value is -1, do not\n   * check for infinite loops. Anyone who wants to enable that\n   * check should change the value of this variable to be the\n   * level of recursion that they want to check. Be careful setting\n   * this variable, if the number is too low, it may report an\n   * infinite loop situation, when there is none.\n   * Post version 1.0.0, we'll make this a runtime feature.\n   *\n   * @return The recursion limit.\n   */\n  public int getRecursionLimit()\n  {\n    return m_recursionLimit;\n  }\n\n  /**\n   * Set the recursion limit.\n   * Used for infinite loop check. If the value is -1, do not\n   * check for infinite loops. Anyone who wants to enable that\n   * check should change the value of this variable to be the\n   * level of recursion that they want to check. Be careful setting\n   * this variable, if the number is too low, it may report an\n   * infinite loop situation, when there is none.\n   * Post version 1.0.0, we'll make this a runtime feature.\n   *\n   * @param limit The recursion limit.\n   */\n  public void setRecursionLimit(int limit)\n  {\n    m_recursionLimit = limit;\n  }\n\n  /**\n   * Constructor StackGuard\n   *\n   */\n  public StackGuard(TransformerImpl transformerImpl)\n  {\n    m_transformer = transformerImpl;\n  }\n\n  /**\n   * Overide equal method for StackGuard objects \n   *\n   */\n  public int countLikeTemplates(ElemTemplate templ, int pos)\n  {\n  \tObjectStack elems = m_transformer.getCurrentTemplateElements();\n  \tint count = 1;\n    for (int i = pos-1; i >= 0; i--)\n    {\n    \tif((ElemTemplateElement)elems.elementAt(i) == templ)\n    \t\tcount++;\n    }\n\t\n    return count;\n  }\n\n  \n  /**\n   * Get the next named or match template down from and including \n   * the given position.\n   * @param pos the current index position in the stack.\n   * @return null if no matched or named template found, otherwise \n   * the next named or matched template at or below the position.\n   */\n  private ElemTemplate getNextMatchOrNamedTemplate(int pos)\n  {\n  \tObjectStack elems = m_transformer.getCurrentTemplateElements();\n    for (int i = pos; i >= 0; i--)\n    {\n    \tElemTemplateElement elem = (ElemTemplateElement) elems.elementAt(i);\n    \tif(null != elem)\n    \t{\n\t    \tif(elem.getXSLToken() == Constants.ELEMNAME_TEMPLATE)\n\t    \t{\n\t    \t\treturn (ElemTemplate)elem;\n\t    \t}\n    \t}\n    }\n  \treturn null;\n  }\n\n  /**\n   * Check if we are in an infinite loop\n   *\n   * @throws TransformerException\n   */\n  public void checkForInfinateLoop() throws TransformerException\n  {\n    int nTemplates = m_transformer.getCurrentTemplateElementsCount();\n    if(nTemplates < m_recursionLimit)\n    \treturn;\n    \t\n    if(m_recursionLimit <= 0)\n    \t\n    for (int i = (nTemplates - 1); i >= m_recursionLimit; i--)\n    {\n    \tElemTemplate template = getNextMatchOrNamedTemplate(i);\n    \t\n    \tif(null == template)\n    \t\tbreak;\n    \t\t\n    \tint loopCount = countLikeTemplates(template, i);\n    \t\n    \tif (loopCount >= m_recursionLimit)\n    \t{\n    \t\t\n    \t\tString idIs = XSLMessages.createMessage(((null != template.getName()) ? \"nameIs\" : \"matchPatternIs\"), null);\n        \tObject[] msgArgs = new Object[]{ new Integer(loopCount), idIs, \n                     ((null != template.getName()) ? template.getName().toString() \n    \t\t   : template.getMatch().getPatternString()) };\n        \tString msg = XSLMessages.createMessage(\"recursionTooDeep\", msgArgs);\n\n    \t\tthrow new TransformerException(msg);", "functions": [{"function_name": "getRecursionLimit", "code": "  public int getRecursionLimit()\n  {\n    return m_recursionLimit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRecursionLimit", "code": "  public void setRecursionLimit(int limit)\n  {\n    m_recursionLimit = limit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "countLikeTemplates", "code": "  public int countLikeTemplates(ElemTemplate templ, int pos)\n  {\n  \tObjectStack elems = m_transformer.getCurrentTemplateElements();\n  \tint count = 1;\n    for (int i = pos-1; i >= 0; i--)\n    {\n    \tif((ElemTemplateElement)elems.elementAt(i) == templ)\n    \t\tcount++;\n    }\n\t\n    return count;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [3, 10], [4, 11], [8, 12], [2, 13], [13, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 3], [11, 4], [12, 8], [13, 2], [14, 13], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getNextMatchOrNamedTemplate", "code": "  private ElemTemplate getNextMatchOrNamedTemplate(int pos)\n  {\n  \tObjectStack elems = m_transformer.getCurrentTemplateElements();\n    for (int i = pos; i >= 0; i--)\n    {\n    \tElemTemplateElement elem = (ElemTemplateElement) elems.elementAt(i);\n    \tif(null != elem)\n    \t{\n\t    \tif(elem.getXSLToken() == Constants.ELEMNAME_TEMPLATE)\n\t    \t{\n\t    \t\treturn (ElemTemplate)elem;\n\t    \t}\n    \t}\n    }\n  \treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [11, 13], [12, 14], [8, 15], [12, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 11], [14, 12], [15, 8], [16, 12], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "checkForInfinateLoop", "code": "  public void checkForInfinateLoop() throws TransformerException\n  {\n    int nTemplates = m_transformer.getCurrentTemplateElementsCount();\n    if(nTemplates < m_recursionLimit)\n    \treturn;\n    \t\n    if(m_recursionLimit <= 0)\n    \t\n    for (int i = (nTemplates - 1); i >= m_recursionLimit; i--)\n    {\n    \tElemTemplate template = getNextMatchOrNamedTemplate(i);\n    \t\n    \tif(null == template)\n    \t\tbreak;\n    \t\t\n    \tint loopCount = countLikeTemplates(template, i);\n    \t\n    \tif (loopCount >= m_recursionLimit)\n    \t{\n    \t\t\n    \t\tString idIs = XSLMessages.createMessage(((null != template.getName()) ? \"nameIs\" : \"matchPatternIs\"), null);\n        \tObject[] msgArgs = new Object[]{ new Integer(loopCount), idIs, \n                     ((null != template.getName()) ? template.getName().toString() \n    \t\t   : template.getMatch().getPatternString()) };\n        \tString msg = XSLMessages.createMessage(\"recursionTooDeep\", msgArgs);\n\n    \t\tthrow new TransformerException(msg);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "LOOP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [2, 7], [4, 8], [5, 9], [3, 10], [4, 11], [4, 12], [4, 13], [4, 14], [11, 15], [13, 16], [13, 17], [4, 18], [11, 19], [11, 20], [11, 21], [11, 22], [12, 23], [17, 24], [14, 25], [18, 26], [19, 27], [20, 28], [22, 29], [28, 30], [29, 31], [29, 32], [21, 33], [21, 34], [32, 35], [32, 36], [32, 37], [33, 38], [33, 39], [33, 40], [37, 41], [37, 42], [38, 43], [39, 44], [40, 45], [40, 46], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 2], [8, 4], [9, 5], [10, 3], [11, 4], [12, 4], [13, 4], [14, 4], [15, 11], [16, 13], [17, 13], [18, 4], [19, 11], [20, 11], [21, 11], [22, 11], [23, 12], [24, 17], [25, 14], [26, 18], [27, 19], [28, 20], [29, 22], [30, 28], [31, 29], [32, 29], [33, 21], [34, 21], [35, 32], [36, 32], [37, 32], [38, 33], [39, 33], [40, 33], [41, 37], [42, 37], [43, 38], [44, 39], [45, 40], [46, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "StackGuard", "code": "  public StackGuard(TransformerImpl transformerImpl)\n  {\n    m_transformer = transformerImpl;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.1-4141", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/Abbrevs.java", "language": "java", "name": "org.gjt.sp.jedit.Abbrevs", "code": "public class Abbrevs\n{\n\t//{{{ getExpandOnInput() method\n\t/**\n\t * Returns if abbreviations should be expanded after the\n\t * user finishes typing a word.\n\t */\n\tpublic static boolean getExpandOnInput()\n\t{\n\t\treturn expandOnInput;\n\t} //}}}\n\n\t//{{{ setExpandOnInput() method\n\t/**\n\t * Sets if abbreviations should be expanded after the\n\t * user finishes typing a word.\n\t * @param true If true, typing a non-alphanumeric characater will\n\t * automatically attempt to expand the current abbrev\n\t */\n\tpublic static void setExpandOnInput(boolean expandOnInput)\n\t{\n\t\tAbbrevs.expandOnInput = expandOnInput;\n\t} //}}}\n\n\t//{{{ expandAbbrev() method\n\t/**\n\t * Expands the abbrev at the caret position in the specified\n\t * view.\n\t * @param view The view\n\t * @param add If true and abbrev not found, will ask user if\n\t * it should be added\n\t * @since jEdit 2.6pre4\n\t */\n\tpublic static boolean expandAbbrev(View view, boolean add)\n\t{\n\t\t//{{{ Figure out some minor things\n\t\tBuffer buffer = view.getBuffer();\n\t\tJEditTextArea textArea = view.getTextArea();\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t}\n\n\t\tint line = textArea.getCaretLine();\n\t\tint lineStart = buffer.getLineStartOffset(line);\n\t\tint caret = textArea.getCaretPosition();\n\n\t\tString lineText = buffer.getLineText(line);\n\t\tif(lineText.length() == 0)\n\t\t{\n\t\t\tif(add)\n\t\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t}\n\n\t\tint pos = caret - lineStart;\n\t\tif(pos == 0)\n\t\t{\n\t\t\tif(add)\n\t\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t} //}}}\n\n\t\t// we reuse the 'pp' vector to save time\n\t\tpp.removeAllElements();\n\n\t\tint wordStart;\n\t\tString abbrev;\n\n\t\t//{{{ Handle abbrevs of the form abbrev#pos1#pos2#pos3#...\n\t\tif(lineText.charAt(pos-1) == '#')\n\t\t{\n\t\t\twordStart = lineText.indexOf('#');\n\t\t\twordStart = TextUtilities.findWordStart(lineText,wordStart,\n\t\t\t\tbuffer.getStringProperty(\"noWordSep\") + '#');\n\n\t\t\tabbrev = lineText.substring(wordStart,pos - 1);\n\n\t\t\t// positional parameters will be inserted where $1, $2, $3, ...\n\t\t\t// occurs in the expansion\n\n\t\t\tint lastIndex = 0;\n\t\t\tfor(int i = 0; i < abbrev.length(); i++)\n\t\t\t{\n\t\t\t\tif(abbrev.charAt(i) == '#')\n\t\t\t\t{\n\t\t\t\t\tpp.addElement(abbrev.substring(lastIndex,i));\n\t\t\t\t\tlastIndex = i + 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpp.addElement(abbrev.substring(lastIndex));\n\n\t\t\t// the first element of pp is the abbrev itself\n\t\t\tabbrev = (String)pp.elementAt(0);\n\t\t\tpp.removeElementAt(0);\n\t\t} //}}}\n\t\t//{{{ Handle ordinary abbrevs\n\t\telse\n\t\t{\n\t\t\twordStart = TextUtilities.findWordStart(lineText,pos - 1,\n\t\t\t\tbuffer.getStringProperty(\"noWordSep\"));\n\n\t\t\tabbrev = lineText.substring(wordStart,pos);\n\t\t} //}}}\n\n\t\tExpansion expand = expandAbbrev(buffer.getMode().getName(),\n\t\t\tabbrev,(buffer.getBooleanProperty(\"noTabs\") ?\n\t\t\tbuffer.getTabSize() : 0),pp);\n\n\t\t//{{{ Maybe show add abbrev dialog\n\t\tif(expand == null)\n\t\t{\n\t\t\tif(add)\n\t\t\t\tnew AddAbbrevDialog(view,abbrev);\n\n\t\t\treturn false;\n\t\t} //}}}\n\t\t//{{{ Insert the expansion\n\t\telse\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// obtain the leading indent for later use\n\t\t\t\tlineText = buffer.getText(lineStart,wordStart);\n\t\t\t\tint leadingIndent = MiscUtilities.getLeadingWhiteSpaceWidth(\n\t\t\t\t\tlineText,buffer.getTabSize());\n\n\t\t\t\tbuffer.remove(lineStart + wordStart,pos - wordStart);\n\t\t\t\tbuffer.insert(lineStart + wordStart,expand.text);\n\t\t\t\tif(expand.caretPosition != -1)\n\t\t\t\t{\n\t\t\t\t\ttextArea.setCaretPosition(lineStart + wordStart\n\t\t\t\t\t\t+ expand.caretPosition);\n\t\t\t\t}\n\n\t\t\t\tString whiteSpace = MiscUtilities.createWhiteSpace(\n\t\t\t\t\tleadingIndent,buffer.getBooleanProperty(\"noTabs\")\n\t\t\t\t\t? 0 : buffer.getTabSize());\n\n\t\t\t\t// note that if expand.lineCount is 0, we\n\t\t\t\t// don't do any indentation at all\n\t\t\t\tfor(int i = line + 1; i <= line + expand.lineCount; i++)\n\t\t\t\t{\n\t\t\t\t\tbuffer.insert(buffer.getLineStartOffset(i),\n\t\t\t\t\t\twhiteSpace);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\n\t\t\tif(expand.posParamCount != pp.size())\n\t\t\t{\n\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\"view.status.incomplete-abbrev\",\n\t\t\t\t\tnew Integer[] { new Integer(pp.size()),\n\t\t\t\t\tnew Integer(expand.posParamCount) }));\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ getGlobalAbbrevs() method\n\t/**\n\t * Returns the global abbreviation set.\n\t * @since jEdit 2.3pre1\n\t */\n\tpublic static Hashtable getGlobalAbbrevs()\n\t{\n\t\tif(!loaded)\n\t\t\tload();\n\n\t\treturn globalAbbrevs;\n\t} //}}}\n\n\t//{{{ setGlobalAbbrevs() method\n\t/**\n\t * Sets the global abbreviation set.\n\t * @param globalAbbrevs The new global abbrev set\n\t * @since jEdit 2.3pre1\n\t */\n\tpublic static void setGlobalAbbrevs(Hashtable globalAbbrevs)\n\t{\n\t\tabbrevsChanged = true;\n\t\tAbbrevs.globalAbbrevs = globalAbbrevs;\n\t} //}}}\n\n\t//{{{ getModeAbbrevs() method\n\t/**\n\t * Returns the mode-specific abbreviation set.\n\t * @since jEdit 2.3pre1\n\t */\n\tpublic static Hashtable getModeAbbrevs()\n\t{\n\t\tif(!loaded)\n\t\t\tload();\n\n\t\treturn modes;\n\t} //}}}\n\n\t//{{{ setModeAbbrevs() method\n\t/**\n\t * Sets the mode-specific abbreviation set.\n\t * @param globalAbbrevs The new global abbrev set\n\t * @since jEdit 2.3pre1\n\t */\n\tpublic static void setModeAbbrevs(Hashtable modes)\n\t{\n\t\tabbrevsChanged = true;\n\t\tAbbrevs.modes = modes;\n\t} //}}}\n\n\t//{{{ addGlobalAbbrev() method\n\t/**\n\t * Adds an abbreviation to the global abbreviation list.\n\t * @param abbrev The abbreviation\n\t * @param expansion The expansion\n\t * @since jEdit 3.1pre1\n\t */\n\tpublic static void addGlobalAbbrev(String abbrev, String expansion)\n\t{\n\t\tif(!loaded)\n\t\t\tload();\n\n\t\tglobalAbbrevs.put(abbrev,expansion);\n\t\tabbrevsChanged = true;\n\t} //}}}\n\n\t//{{{ addModeAbbrev() method\n\t/**\n\t * Adds a mode-specific abbrev.\n\t * @param mode The edit mode\n\t * @param abbrev The abbrev\n\t * @param expansion The expansion\n\t * @since jEdit 3.1pre1\n\t */\n\tpublic static void addModeAbbrev(String mode, String abbrev, String expansion)\n\t{\n\t\tif(!loaded)\n\t\t\tload();\n\n\t\tHashtable modeAbbrevs = (Hashtable)modes.get(mode);\n\t\tif(modeAbbrevs == null)\n\t\t{\n\t\t\tmodeAbbrevs = new Hashtable();\n\t\t\tmodes.put(mode,modeAbbrevs);\n\t\t}\n\t\tmodeAbbrevs.put(abbrev,expansion);\n\t\tabbrevsChanged = true;\n\t} //}}}\n\n\t//{{{ save() method\n\tstatic void save()\n\t{\n\t\tjEdit.setBooleanProperty(\"view.expandOnInput\",expandOnInput);\n\n\t\tString settings = jEdit.getSettingsDirectory();\n\t\tif(abbrevsChanged && settings != null)\n\t\t{\n\t\t\tFile file1 = new File(MiscUtilities.constructPath(settings,\"#abbrevs#save#\"));\n\t\t\tFile file2 = new File(MiscUtilities.constructPath(settings,\"abbrevs\"));\n\t\t\tif(file2.exists() && file2.lastModified() != abbrevsModTime)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,Abbrevs.class,file2 + \" changed on disk;\"\n\t\t\t\t\t+ \" will not save abbrevs\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tjEdit.backupSettingsFile(file2);\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsaveAbbrevs(new FileWriter(file1));\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,\"Error while saving \" + file1);\n\t\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,e);\n\t\t\t\t}\n\t\t\t\tfile2.delete();\n\t\t\t\tfile1.renameTo(file2);\n\t\t\t\tabbrevsModTime = file2.lastModified();\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate static boolean loaded;\n\tprivate static boolean abbrevsChanged;\n\tprivate static long abbrevsModTime;\n\tprivate static boolean expandOnInput;\n\tprivate static Hashtable globalAbbrevs;\n\tprivate static Hashtable modes;\n\tprivate static Vector pp = new Vector();\n\t//}}}\n\n\tprivate Abbrevs() {}\n\n\tstatic\n\t{\n\t\texpandOnInput = jEdit.getBooleanProperty(\"view.expandOnInput\");\n\t}\n\n\t//{{{ load() method\n\tprivate static void load()\n\t{\n\t\tglobalAbbrevs = new Hashtable();\n\t\tmodes = new Hashtable();\n\n\t\tString settings = jEdit.getSettingsDirectory();\n\t\tif(settings != null)\n\t\t{\n\t\t\tFile file = new File(MiscUtilities.constructPath(settings,\"abbrevs\"));\n\t\t\tabbrevsModTime = file.lastModified();\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tloadAbbrevs(new FileReader(file));\n\t\t\t\tloaded = true;\n\t\t\t}\n\t\t\tcatch(FileNotFoundException fnf)\n\t\t\t{\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,\"Error while loading \" + file);\n\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,e);\n\t\t\t}\n\t\t}\n\n\t\t// only load global abbrevs if user abbrevs file could not be loaded\n\t\tif(!loaded)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tloadAbbrevs(new InputStreamReader(Abbrevs.class\n\t\t\t\t\t.getResourceAsStream(\"default.abbrevs\")));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,\"Error while loading default.abbrevs\");\n\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,e);\n\t\t\t}\n\t\t\tloaded = true;\n\t\t}\n\t} //}}}\n\n\t//{{{ expandAbbrev() method\n\tprivate static Expansion expandAbbrev(String mode, String abbrev,\n\t\tint softTabSize, Vector pp)\n\t{\n\t\tif(!loaded)\n\t\t\tload();\n\n\t\t// try mode-specific abbrevs first\n\t\tString expand = null;\n\t\tHashtable modeAbbrevs = (Hashtable)modes.get(mode);\n\t\tif(modeAbbrevs != null)\n\t\t\texpand = (String)modeAbbrevs.get(abbrev);\n\n\t\tif(expand == null)\n\t\t\texpand = (String)globalAbbrevs.get(abbrev);\n\n\t\tif(expand == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn new Expansion(expand,softTabSize,pp);\n\t} //}}}\n\n\t//{{{ loadAbbrevs() method\n\tprivate static void loadAbbrevs(Reader _in) throws Exception\n\t{\n\t\tBufferedReader in = new BufferedReader(_in);\n\n\t\tHashtable currentAbbrevs = null;\n\n\t\tString line;\n\t\twhile((line = in.readLine()) != null)\n\t\t{\n\t\t\tif(line.length() == 0)\n\t\t\t\tcontinue;\n\t\t\telse if(line.startsWith(\"[\") && line.indexOf('|') == -1)\n\t\t\t{\n\t\t\t\tif(line.equals(\"[global]\"))\n\t\t\t\t\tcurrentAbbrevs = globalAbbrevs;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString mode = line.substring(1,\n\t\t\t\t\t\tline.length() - 1);\n\t\t\t\t\tcurrentAbbrevs = (Hashtable)modes.get(mode);\n\t\t\t\t\tif(currentAbbrevs == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurrentAbbrevs = new Hashtable();\n\t\t\t\t\t\tmodes.put(mode,currentAbbrevs);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint index = line.indexOf('|');\n\t\t\t\tcurrentAbbrevs.put(line.substring(0,index),\n\t\t\t\t\tline.substring(index + 1));\n\t\t\t}\n\t\t}\n\n\t\tin.close();\n\t} //}}}\n\n\t//{{{ saveAbbrevs() method\n\tprivate static void saveAbbrevs(Writer _out) throws Exception\n\t{\n\t\tBufferedWriter out = new BufferedWriter(_out);\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\t// write global abbrevs\n\t\tout.write(\"[global]\");\n\t\tout.write(lineSep);\n\n\t\tsaveAbbrevs(out,globalAbbrevs);\n\n\t\t// write mode abbrevs\n\t\tEnumeration keys = modes.keys();\n\t\tEnumeration values = modes.elements();\n\t\twhile(keys.hasMoreElements())\n\t\t{\n\t\t\tout.write('[');\n\t\t\tout.write((String)keys.nextElement());\n\t\t\tout.write(']');\n\t\t\tout.write(lineSep);\n\t\t\tsaveAbbrevs(out,(Hashtable)values.nextElement());\n\t\t}\n\n\t\tout.close();\n\t} //}}}\n\n\t//{{{ saveAbbrevs() method\n\tprivate static void saveAbbrevs(Writer out, Hashtable abbrevs)\n\t\tthrows Exception\n\t{\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\tEnumeration keys = abbrevs.keys();\n\t\tEnumeration values = abbrevs.elements();\n\t\twhile(keys.hasMoreElements())\n\t\t{\n\t\t\tString abbrev = (String)keys.nextElement();\n\t\t\tout.write(abbrev);\n\t\t\tout.write('|');\n\t\t\tout.write(values.nextElement().toString());\n\t\t\tout.write(lineSep);\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Expansion class\n\tstatic class Expansion\n\t{\n\t\tString text;\n\t\tint caretPosition = -1;\n\t\tint lineCount;\n\n\t\t// number of positional parameters in abbreviation expansion\n\t\tint posParamCount;\n\n\t\t//{{{ Expansion constructor\n\t\tExpansion(String text, int softTabSize, Vector pp)\n\t\t{\n\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\tboolean backslash = false;\n\n\t\t\tfor(int i = 0; i < text.length(); i++)\n\t\t\t{\n\t\t\t\tchar ch = text.charAt(i);\n\t\t\t\t//{{{ Handle backslash\n\t\t\t\tif(backslash)\n\t\t\t\t{\n\t\t\t\t\tbackslash = false;\n\n\t\t\t\t\tif(ch == '|')\n\t\t\t\t\t\tcaretPosition = buf.length();\n\t\t\t\t\telse if(ch == 'n')\n\t\t\t\t\t{\n\t\t\t\t\t\tbuf.append('\\n');\n\t\t\t\t\t\tlineCount++;\n\t\t\t\t\t}\n\t\t\t\t\telse if(ch == 't')\n\t\t\t\t\t{\n\t\t\t\t\t\tif(softTabSize == 0)\n\t\t\t\t\t\t\tbuf.append('\\t');\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor(int j = 0; j < softTabSize; j++)\n\t\t\t\t\t\t\t\tbuf.append(' ');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tbuf.append(ch);\n\t\t\t\t}\n\t\t\t\telse if(ch == '\\\\')\n\t\t\t\t\tbackslash = true;\n\t\t\t\t//}}}\n\t\t\t\t//{{{ Handle $\n\t\t\t\telse if(ch == '$')\n\t\t\t\t{\n\t\t\t\t\tif(i != text.length() - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tch = text.charAt(i + 1);\n\t\t\t\t\t\tif(Character.isDigit(ch) && ch != '0')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ti++;\n\n\t\t\t\t\t\t\tint pos = ch - '0';\n\t\t\t\t\t\t\tposParamCount = Math.max(pos,posParamCount);\n\t\t\t\t\t\t\t// $n is 1-indexed, but vector\n\t\t\t\t\t\t\t// contents is zero indexed\n\t\t\t\t\t\t\tif(pos <= pp.size())\n\t\t\t\t\t\t\t\tbuf.append(pp.elementAt(pos - 1));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// $key will be $key, for\n\t\t\t\t\t\t\t// example\n\t\t\t\t\t\t\tbuf.append('$');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tbuf.append('$'); // $ at end is literal\n\t\t\t\t} //}}}\n\t\t\t\telse\n\t\t\t\t\tbuf.append(ch);\n\t\t\t}\n\n\t\t\tthis.text = buf.toString();", "functions": [{"function_name": "getExpandOnInput", "code": "\tpublic static boolean getExpandOnInput()\n\t{\n\t\treturn expandOnInput;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExpandOnInput", "code": "\tpublic static void setExpandOnInput(boolean expandOnInput)\n\t{\n\t\tAbbrevs.expandOnInput = expandOnInput;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "expandAbbrev", "code": "\tpublic static boolean expandAbbrev(View view, boolean add)\n\t{\n\t\t//{{{ Figure out some minor things\n\t\tBuffer buffer = view.getBuffer();\n\t\tJEditTextArea textArea = view.getTextArea();\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t}\n\n\t\tint line = textArea.getCaretLine();\n\t\tint lineStart = buffer.getLineStartOffset(line);\n\t\tint caret = textArea.getCaretPosition();\n\n\t\tString lineText = buffer.getLineText(line);\n\t\tif(lineText.length() == 0)\n\t\t{\n\t\t\tif(add)\n\t\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t}\n\n\t\tint pos = caret - lineStart;\n\t\tif(pos == 0)\n\t\t{\n\t\t\tif(add)\n\t\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t} //}}}\n\n\t\t// we reuse the 'pp' vector to save time\n\t\tpp.removeAllElements();\n\n\t\tint wordStart;\n\t\tString abbrev;\n\n\t\t//{{{ Handle abbrevs of the form abbrev#pos1#pos2#pos3#...\n\t\tif(lineText.charAt(pos-1) == '#')\n\t\t{\n\t\t\twordStart = lineText.indexOf('#');\n\t\t\twordStart = TextUtilities.findWordStart(lineText,wordStart,\n\t\t\t\tbuffer.getStringProperty(\"noWordSep\") + '#');\n\n\t\t\tabbrev = lineText.substring(wordStart,pos - 1);\n\n\t\t\t// positional parameters will be inserted where $1, $2, $3, ...\n\t\t\t// occurs in the expansion\n\n\t\t\tint lastIndex = 0;\n\t\t\tfor(int i = 0; i < abbrev.length(); i++)\n\t\t\t{\n\t\t\t\tif(abbrev.charAt(i) == '#')\n\t\t\t\t{\n\t\t\t\t\tpp.addElement(abbrev.substring(lastIndex,i));\n\t\t\t\t\tlastIndex = i + 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpp.addElement(abbrev.substring(lastIndex));\n\n\t\t\t// the first element of pp is the abbrev itself\n\t\t\tabbrev = (String)pp.elementAt(0);\n\t\t\tpp.removeElementAt(0);\n\t\t} //}}}\n\t\t//{{{ Handle ordinary abbrevs\n\t\telse\n\t\t{\n\t\t\twordStart = TextUtilities.findWordStart(lineText,pos - 1,\n\t\t\t\tbuffer.getStringProperty(\"noWordSep\"));\n\n\t\t\tabbrev = lineText.substring(wordStart,pos);\n\t\t} //}}}\n\n\t\tExpansion expand = expandAbbrev(buffer.getMode().getName(),\n\t\t\tabbrev,(buffer.getBooleanProperty(\"noTabs\") ?\n\t\t\tbuffer.getTabSize() : 0),pp);\n\n\t\t//{{{ Maybe show add abbrev dialog\n\t\tif(expand == null)\n\t\t{\n\t\t\tif(add)\n\t\t\t\tnew AddAbbrevDialog(view,abbrev);\n\n\t\t\treturn false;\n\t\t} //}}}\n\t\t//{{{ Insert the expansion\n\t\telse\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// obtain the leading indent for later use\n\t\t\t\tlineText = buffer.getText(lineStart,wordStart);\n\t\t\t\tint leadingIndent = MiscUtilities.getLeadingWhiteSpaceWidth(\n\t\t\t\t\tlineText,buffer.getTabSize());\n\n\t\t\t\tbuffer.remove(lineStart + wordStart,pos - wordStart);\n\t\t\t\tbuffer.insert(lineStart + wordStart,expand.text);\n\t\t\t\tif(expand.caretPosition != -1)\n\t\t\t\t{\n\t\t\t\t\ttextArea.setCaretPosition(lineStart + wordStart\n\t\t\t\t\t\t+ expand.caretPosition);\n\t\t\t\t}\n\n\t\t\t\tString whiteSpace = MiscUtilities.createWhiteSpace(\n\t\t\t\t\tleadingIndent,buffer.getBooleanProperty(\"noTabs\")\n\t\t\t\t\t? 0 : buffer.getTabSize());\n\n\t\t\t\t// note that if expand.lineCount is 0, we\n\t\t\t\t// don't do any indentation at all\n\t\t\t\tfor(int i = line + 1; i <= line + expand.lineCount; i++)\n\t\t\t\t{\n\t\t\t\t\tbuffer.insert(buffer.getLineStartOffset(i),\n\t\t\t\t\t\twhiteSpace);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\n\t\t\tif(expand.posParamCount != pp.size())\n\t\t\t{\n\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\"view.status.incomplete-abbrev\",\n\t\t\t\t\tnew Integer[] { new Integer(pp.size()),\n\t\t\t\t\tnew Integer(expand.posParamCount) }));\n\t\t\t}\n\n\t\t\treturn true;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "IF", "TRY", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [3, 19], [0, 20], [6, 21], [8, 22], [13, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [18, 29], [2, 30], [3, 31], [3, 32], [19, 33], [19, 34], [6, 35], [6, 36], [21, 37], [7, 38], [8, 39], [8, 40], [22, 41], [22, 42], [9, 43], [10, 44], [11, 45], [12, 46], [13, 47], [14, 48], [15, 49], [24, 50], [25, 51], [26, 52], [26, 53], [26, 54], [26, 55], [1, 56], [27, 57], [30, 58], [30, 59], [3, 60], [3, 61], [3, 62], [3, 63], [3, 64], [31, 65], [3, 66], [3, 67], [3, 68], [34, 69], [35, 70], [39, 71], [47, 72], [13, 73], [51, 74], [26, 75], [52, 76], [54, 77], [26, 78], [26, 79], [26, 80], [28, 81], [58, 82], [58, 83], [58, 84], [59, 85], [60, 86], [61, 87], [62, 88], [64, 89], [31, 90], [65, 91], [32, 92], [66, 93], [67, 94], [68, 95], [69, 96], [36, 97], [40, 98], [73, 99], [25, 100], [76, 101], [53, 102], [77, 103], [78, 104], [79, 105], [79, 106], [55, 107], [80, 108], [84, 109], [87, 110], [87, 111], [63, 112], [90, 113], [31, 114], [93, 115], [94, 116], [95, 117], [97, 118], [98, 119], [100, 120], [52, 121], [52, 122], [102, 123], [54, 124], [107, 125], [110, 126], [111, 127], [112, 128], [113, 129], [113, 130], [115, 131], [116, 132], [116, 133], [120, 134], [121, 135], [122, 136], [123, 137], [123, 138], [123, 139], [124, 140], [90, 141], [90, 142], [133, 143], [134, 144], [139, 145], [140, 146], [141, 147], [142, 148], [147, 149], [134, 150], [134, 151], [151, 152], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 3], [20, 0], [21, 6], [22, 8], [23, 13], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 18], [30, 2], [31, 3], [32, 3], [33, 19], [34, 19], [35, 6], [36, 6], [37, 21], [38, 7], [39, 8], [40, 8], [41, 22], [42, 22], [43, 9], [44, 10], [45, 11], [46, 12], [47, 13], [48, 14], [49, 15], [50, 24], [51, 25], [52, 26], [53, 26], [54, 26], [55, 26], [56, 1], [57, 27], [58, 30], [59, 30], [60, 3], [61, 3], [62, 3], [63, 3], [64, 3], [65, 31], [66, 3], [67, 3], [68, 3], [69, 34], [70, 35], [71, 39], [72, 47], [73, 13], [74, 51], [75, 26], [76, 52], [77, 54], [78, 26], [79, 26], [80, 26], [81, 28], [82, 58], [83, 58], [84, 58], [85, 59], [86, 60], [87, 61], [88, 62], [89, 64], [90, 31], [91, 65], [92, 32], [93, 66], [94, 67], [95, 68], [96, 69], [97, 36], [98, 40], [99, 73], [100, 25], [101, 76], [102, 53], [103, 77], [104, 78], [105, 79], [106, 79], [107, 55], [108, 80], [109, 84], [110, 87], [111, 87], [112, 63], [113, 90], [114, 31], [115, 93], [116, 94], [117, 95], [118, 97], [119, 98], [120, 100], [121, 52], [122, 52], [123, 102], [124, 54], [125, 107], [126, 110], [127, 111], [128, 112], [129, 113], [130, 113], [131, 115], [132, 116], [133, 116], [134, 120], [135, 121], [136, 122], [137, 123], [138, 123], [139, 123], [140, 124], [141, 90], [142, 90], [143, 133], [144, 134], [145, 139], [146, 140], [147, 141], [148, 142], [149, 147], [150, 134], [151, 134], [152, 151], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152]]}, {"function_name": "getGlobalAbbrevs", "code": "\tpublic static Hashtable getGlobalAbbrevs()\n\t{\n\t\tif(!loaded)\n\t\t\tload();\n\n\t\treturn globalAbbrevs;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setGlobalAbbrevs", "code": "\tpublic static void setGlobalAbbrevs(Hashtable globalAbbrevs)\n\t{\n\t\tabbrevsChanged = true;\n\t\tAbbrevs.globalAbbrevs = globalAbbrevs;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getModeAbbrevs", "code": "\tpublic static Hashtable getModeAbbrevs()\n\t{\n\t\tif(!loaded)\n\t\t\tload();\n\n\t\treturn modes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setModeAbbrevs", "code": "\tpublic static void setModeAbbrevs(Hashtable modes)\n\t{\n\t\tabbrevsChanged = true;\n\t\tAbbrevs.modes = modes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addGlobalAbbrev", "code": "\tpublic static void addGlobalAbbrev(String abbrev, String expansion)\n\t{\n\t\tif(!loaded)\n\t\t\tload();\n\n\t\tglobalAbbrevs.put(abbrev,expansion);\n\t\tabbrevsChanged = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addModeAbbrev", "code": "\tpublic static void addModeAbbrev(String mode, String abbrev, String expansion)\n\t{\n\t\tif(!loaded)\n\t\t\tload();\n\n\t\tHashtable modeAbbrevs = (Hashtable)modes.get(mode);\n\t\tif(modeAbbrevs == null)\n\t\t{\n\t\t\tmodeAbbrevs = new Hashtable();\n\t\t\tmodes.put(mode,modeAbbrevs);\n\t\t}\n\t\tmodeAbbrevs.put(abbrev,expansion);\n\t\tabbrevsChanged = true;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [7, 10], [9, 11], [3, 12], [1, 13], [1, 14], [2, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 7], [11, 9], [12, 3], [13, 1], [14, 1], [15, 2], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "save", "code": "\tstatic void save()\n\t{\n\t\tjEdit.setBooleanProperty(\"view.expandOnInput\",expandOnInput);\n\n\t\tString settings = jEdit.getSettingsDirectory();\n\t\tif(abbrevsChanged && settings != null)\n\t\t{\n\t\t\tFile file1 = new File(MiscUtilities.constructPath(settings,\"#abbrevs#save#\"));\n\t\t\tFile file2 = new File(MiscUtilities.constructPath(settings,\"abbrevs\"));\n\t\t\tif(file2.exists() && file2.lastModified() != abbrevsModTime)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,Abbrevs.class,file2 + \" changed on disk;\"\n\t\t\t\t\t+ \" will not save abbrevs\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tjEdit.backupSettingsFile(file2);\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsaveAbbrevs(new FileWriter(file1));\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,\"Error while saving \" + file1);\n\t\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,e);\n\t\t\t\t}\n\t\t\t\tfile2.delete();\n\t\t\t\tfile1.renameTo(file2);\n\t\t\t\tabbrevsModTime = file2.lastModified();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [3, 8], [2, 9], [4, 10], [5, 11], [8, 12], [5, 13], [11, 14], [11, 15], [6, 16], [7, 17], [5, 18], [5, 19], [5, 20], [13, 21], [5, 22], [5, 23], [14, 24], [16, 25], [17, 26], [18, 27], [13, 28], [23, 29], [25, 30], [26, 31], [21, 32], [21, 33], [28, 34], [29, 35], [29, 36], [33, 37], [36, 38], [37, 39], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 3], [9, 2], [10, 4], [11, 5], [12, 8], [13, 5], [14, 11], [15, 11], [16, 6], [17, 7], [18, 5], [19, 5], [20, 5], [21, 13], [22, 5], [23, 5], [24, 14], [25, 16], [26, 17], [27, 18], [28, 13], [29, 23], [30, 25], [31, 26], [32, 21], [33, 21], [34, 28], [35, 29], [36, 29], [37, 33], [38, 36], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "load", "code": "\tprivate static void load()\n\t{\n\t\tglobalAbbrevs = new Hashtable();\n\t\tmodes = new Hashtable();\n\n\t\tString settings = jEdit.getSettingsDirectory();\n\t\tif(settings != null)\n\t\t{\n\t\t\tFile file = new File(MiscUtilities.constructPath(settings,\"abbrevs\"));\n\t\t\tabbrevsModTime = file.lastModified();\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tloadAbbrevs(new FileReader(file));\n\t\t\t\tloaded = true;\n\t\t\t}\n\t\t\tcatch(FileNotFoundException fnf)\n\t\t\t{\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,\"Error while loading \" + file);\n\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,e);\n\t\t\t}\n\t\t}\n\n\t\t// only load global abbrevs if user abbrevs file could not be loaded\n\t\tif(!loaded)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tloadAbbrevs(new InputStreamReader(Abbrevs.class\n\t\t\t\t\t.getResourceAsStream(\"default.abbrevs\")));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,\"Error while loading default.abbrevs\");\n\t\t\t\tLog.log(Log.ERROR,Abbrevs.class,e);\n\t\t\t}\n\t\t\tloaded = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "TRY", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CATCH", "CATCH", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [4, 10], [3, 11], [5, 12], [6, 13], [1, 14], [7, 15], [8, 16], [8, 17], [2, 18], [14, 19], [7, 20], [8, 21], [8, 22], [18, 23], [9, 24], [15, 25], [15, 26], [20, 27], [16, 28], [16, 29], [21, 30], [22, 31], [24, 32], [26, 33], [27, 34], [29, 35], [32, 36], [34, 37], [35, 38], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 4], [11, 3], [12, 5], [13, 6], [14, 1], [15, 7], [16, 8], [17, 8], [18, 2], [19, 14], [20, 7], [21, 8], [22, 8], [23, 18], [24, 9], [25, 15], [26, 15], [27, 20], [28, 16], [29, 16], [30, 21], [31, 22], [32, 24], [33, 26], [34, 27], [35, 29], [36, 32], [37, 34], [38, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "expandAbbrev", "code": "\tprivate static Expansion expandAbbrev(String mode, String abbrev,\n\t\tint softTabSize, Vector pp)\n\t{\n\t\tif(!loaded)\n\t\t\tload();\n\n\t\t// try mode-specific abbrevs first\n\t\tString expand = null;\n\t\tHashtable modeAbbrevs = (Hashtable)modes.get(mode);\n\t\tif(modeAbbrevs != null)\n\t\t\texpand = (String)modeAbbrevs.get(abbrev);\n\n\t\tif(expand == null)\n\t\t\texpand = (String)globalAbbrevs.get(abbrev);\n\n\t\tif(expand == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn new Expansion(expand,softTabSize,pp);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [11, 16], [12, 17], [13, 18], [2, 19], [14, 20], [3, 21], [15, 22], [5, 23], [6, 24], [4, 25], [19, 26], [21, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 11], [17, 12], [18, 13], [19, 2], [20, 14], [21, 3], [22, 15], [23, 5], [24, 6], [25, 4], [26, 19], [27, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "loadAbbrevs", "code": "\tprivate static void loadAbbrevs(Reader _in) throws Exception\n\t{\n\t\tBufferedReader in = new BufferedReader(_in);\n\n\t\tHashtable currentAbbrevs = null;\n\n\t\tString line;\n\t\twhile((line = in.readLine()) != null)\n\t\t{\n\t\t\tif(line.length() == 0)\n\t\t\t\tcontinue;\n\t\t\telse if(line.startsWith(\"[\") && line.indexOf('|') == -1)\n\t\t\t{\n\t\t\t\tif(line.equals(\"[global]\"))\n\t\t\t\t\tcurrentAbbrevs = globalAbbrevs;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString mode = line.substring(1,\n\t\t\t\t\t\tline.length() - 1);\n\t\t\t\t\tcurrentAbbrevs = (Hashtable)modes.get(mode);\n\t\t\t\t\tif(currentAbbrevs == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurrentAbbrevs = new Hashtable();\n\t\t\t\t\t\tmodes.put(mode,currentAbbrevs);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint index = line.indexOf('|');\n\t\t\t\tcurrentAbbrevs.put(line.substring(0,index),\n\t\t\t\t\tline.substring(index + 1));\n\t\t\t}\n\t\t}\n\n\t\tin.close();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [7, 10], [3, 11], [4, 12], [8, 13], [8, 14], [8, 15], [10, 16], [13, 17], [15, 18], [15, 19], [13, 20], [13, 21], [17, 22], [17, 23], [13, 24], [21, 25], [22, 26], [22, 27], [23, 28], [24, 29], [24, 30], [20, 31], [21, 32], [21, 33], [21, 34], [25, 35], [27, 36], [29, 37], [30, 38], [31, 39], [32, 40], [21, 41], [37, 42], [40, 43], [33, 44], [32, 45], [32, 46], [41, 47], [44, 48], [44, 49], [46, 50], [48, 51], [48, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 7], [11, 3], [12, 4], [13, 8], [14, 8], [15, 8], [16, 10], [17, 13], [18, 15], [19, 15], [20, 13], [21, 13], [22, 17], [23, 17], [24, 13], [25, 21], [26, 22], [27, 22], [28, 23], [29, 24], [30, 24], [31, 20], [32, 21], [33, 21], [34, 21], [35, 25], [36, 27], [37, 29], [38, 30], [39, 31], [40, 32], [41, 21], [42, 37], [43, 40], [44, 33], [45, 32], [46, 32], [47, 41], [48, 44], [49, 44], [50, 46], [51, 48], [52, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "saveAbbrevs", "code": "\tprivate static void saveAbbrevs(Writer _out) throws Exception\n\t{\n\t\tBufferedWriter out = new BufferedWriter(_out);\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\t// write global abbrevs\n\t\tout.write(\"[global]\");\n\t\tout.write(lineSep);\n\n\t\tsaveAbbrevs(out,globalAbbrevs);\n\n\t\t// write mode abbrevs\n\t\tEnumeration keys = modes.keys();\n\t\tEnumeration values = modes.elements();\n\t\twhile(keys.hasMoreElements())\n\t\t{\n\t\t\tout.write('[');\n\t\t\tout.write((String)keys.nextElement());\n\t\t\tout.write(']');\n\t\t\tout.write(lineSep);\n\t\t\tsaveAbbrevs(out,(Hashtable)values.nextElement());\n\t\t}\n\n\t\tout.close();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [11, 14], [4, 15], [5, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [15, 22], [19, 23], [21, 24], [17, 25], [20, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 11], [15, 4], [16, 5], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 15], [23, 19], [24, 21], [25, 17], [26, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "saveAbbrevs", "code": "\tprivate static void saveAbbrevs(Writer out, Hashtable abbrevs)\n\t\tthrows Exception\n\t{\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\tEnumeration keys = abbrevs.keys();\n\t\tEnumeration values = abbrevs.elements();\n\t\twhile(keys.hasMoreElements())\n\t\t{\n\t\t\tString abbrev = (String)keys.nextElement();\n\t\t\tout.write(abbrev);\n\t\t\tout.write('|');\n\t\t\tout.write(values.nextElement().toString());\n\t\t\tout.write(lineSep);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [2, 9], [3, 10], [4, 11], [1, 12], [1, 13], [1, 14], [1, 15], [11, 16], [13, 17], [14, 18], [17, 19], [8, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 2], [10, 3], [11, 4], [12, 1], [13, 1], [14, 1], [15, 1], [16, 11], [17, 13], [18, 14], [19, 17], [20, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "Abbrevs", "code": "\tprivate Abbrevs() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.4-130", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/DirectoryScanner.java", "language": "java", "name": "org.apache.tools.ant.DirectoryScanner", "code": "public class DirectoryScanner implements FileScanner {\n\n    /**\n     * Patterns that should be excluded by default.\n     *\n     * @see #addDefaultExcludes()\n     */\n    protected final static String[] DEFAULTEXCLUDES = {\n        \"**/*~\",\n        \"**/#*#\",\n        \"**/.#*\",\n        \"**/%*%\",\n        \"**/CVS\",\n        \"**/CVS/**\",\n        \"**/.cvsignore\",\n        \"**/SCCS\",\n        \"**/SCCS/**\",\n        \"**/vssver.scc\"\n    };\n\n    /**\n     * The base directory which should be scanned.\n     */\n    protected File basedir;\n\n    /**\n     * The patterns for the files that should be included.\n     */\n    protected String[] includes;\n\n    /**\n     * The patterns for the files that should be excluded.\n     */\n    protected String[] excludes;\n\n    /**\n     * The files that where found and matched at least one includes, and matched\n     * no excludes.\n     */\n    protected Vector filesIncluded;\n\n    /**\n     * The files that where found and did not match any includes.\n     */\n    protected Vector filesNotIncluded;\n\n    /**\n     * The files that where found and matched at least one includes, and also\n     * matched at least one excludes.\n     */\n    protected Vector filesExcluded;\n\n    /**\n     * The directories that where found and matched at least one includes, and\n     * matched no excludes.\n     */\n    protected Vector dirsIncluded;\n\n    /**\n     * The directories that where found and did not match any includes.\n     */\n    protected Vector dirsNotIncluded;\n\n    /**\n     * The files that where found and matched at least one includes, and also\n     * matched at least one excludes.\n     */\n    protected Vector dirsExcluded;\n\n    /**\n     * Have the Vectors holding our results been built by a slow scan?\n     */\n    protected boolean haveSlowResults = false;\n\n    /**\n     * Should the file system be treated as a case sensitive one?\n     */\n    protected boolean isCaseSensitive = true;\n\n    /**\n     * Constructor.\n     */\n    public DirectoryScanner() {\n    }\n\n\n    /**\n     * Does the path match the start of this pattern up to the first \"**\".\n     *\n     * <p>This is not a general purpose test and should only be used if you\n     * can live with false positives.</p>\n     *\n     * <p><code>pattern=**\\\\a</code> and <code>str=b</code> will yield true.\n     *\n     * @param pattern the (non-null) pattern to match against\n     * @param str     the (non-null) string (path) to match\n     */\n    protected static boolean matchPatternStart(String pattern, String str) {\n        return matchPatternStart(pattern, str, true);\n    }\n\n    /**\n     * Does the path match the start of this pattern up to the first \"**\".\n     *\n     * <p>This is not a general purpose test and should only be used if you\n     * can live with false positives.</p>\n     *\n     * <p><code>pattern=**\\\\a</code> and <code>str=b</code> will yield true.\n     *\n     * @param pattern             the (non-null) pattern to match against\n     * @param str                 the (non-null) string (path) to match\n     * @param isCaseSensitive     must matches be case sensitive?\n     */\n    protected static boolean matchPatternStart(String pattern, String str,\n                                               boolean isCaseSensitive) {\n        if (str.startsWith(File.separator) !=\n            pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        Vector patDirs = new Vector();\n        StringTokenizer st = new StringTokenizer(pattern,File.separator);\n        while (st.hasMoreTokens()) {\n            patDirs.addElement(st.nextToken());\n        }\n\n        Vector strDirs = new Vector();\n        st = new StringTokenizer(str,File.separator);\n        while (st.hasMoreTokens()) {\n            strDirs.addElement(st.nextToken());\n        }\n\n        int patIdxStart = 0;\n        int patIdxEnd   = patDirs.size()-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strDirs.size()-1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxStart);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxStart), isCaseSensitive)) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n\n        if (strIdxStart > strIdxEnd) {\n            return true;\n        } else if (patIdxStart > patIdxEnd) {\n            return false;\n        } else {\n            return true;\n        }\n    }\n\n    /**\n     * Matches a path against a pattern.\n     *\n     * @param pattern the (non-null) pattern to match against\n     * @param str     the (non-null) string (path) to match\n     *\n     * @return <code>true</code> when the pattern matches against the string.\n     *         <code>false</code> otherwise.\n     */\n    protected static boolean matchPath(String pattern, String str) {\n        return matchPath(pattern, str, true);\n    }\n\n    /**\n     * Matches a path against a pattern.\n     *\n     * @param pattern            the (non-null) pattern to match against\n     * @param str                the (non-null) string (path) to match\n     * @param isCaseSensitive    must a case sensitive match be done?\n     *\n     * @return <code>true</code> when the pattern matches against the string.\n     *         <code>false</code> otherwise.\n     */\n    protected static boolean matchPath(String pattern, String str, boolean isCaseSensitive) {\n        if (str.startsWith(File.separator) !=\n            pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        Vector patDirs = new Vector();\n        StringTokenizer st = new StringTokenizer(pattern,File.separator);\n        while (st.hasMoreTokens()) {\n            patDirs.addElement(st.nextToken());\n        }\n\n        Vector strDirs = new Vector();\n        st = new StringTokenizer(str,File.separator);\n        while (st.hasMoreTokens()) {\n            strDirs.addElement(st.nextToken());\n        }\n\n        int patIdxStart = 0;\n        int patIdxEnd   = patDirs.size()-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strDirs.size()-1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxStart);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxStart), isCaseSensitive)) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs.elementAt(i).equals(\"**\")) {\n                    return false;\n                }\n            }\n            return true;\n        } else {\n            if (patIdxStart > patIdxEnd) {\n                return false;\n            }\n        }\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxEnd);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxEnd), isCaseSensitive)) {\n                return false;\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs.elementAt(i).equals(\"**\")) {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart+1; i <= patIdxEnd; i++) {\n                if (patDirs.elementAt(i).equals(\"**\")) {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart+1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp-patIdxStart-1);\n            int strLength = (strIdxEnd-strIdxStart+1);\n            int foundIdx  = -1;\nstrLoop:\n            for (int i = 0; i <= strLength - patLength; i++) {\n                for (int j = 0; j < patLength; j++) {\n                    String subPat = (String)patDirs.elementAt(patIdxStart+j+1);\n                    String subStr = (String)strDirs.elementAt(strIdxStart+i+j);\n                    if (!match(subPat,subStr, isCaseSensitive)) {\n                        continue strLoop;\n                    }\n                }\n\n                foundIdx = strIdxStart+i;\n                break;\n            }\n\n            if (foundIdx == -1) {\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx+patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (!patDirs.elementAt(i).equals(\"**\")) {\n                return false;\n            }\n        }\n\n        return true;\n    }\n\n\n    /**\n     * Matches a string against a pattern. The pattern contains two special\n     * characters:\n     * '*' which means zero or more characters,\n     * '?' which means one and only one character.\n     *\n     * @param pattern the (non-null) pattern to match against\n     * @param str     the (non-null) string that must be matched against the\n     *                pattern\n     *\n     * @return <code>true</code> when the string matches against the pattern,\n     *         <code>false</code> otherwise.\n     */\n    protected static boolean match(String pattern, String str) {\n        return match(pattern, str, true);\n    }\n\n\n    /**\n     * Matches a string against a pattern. The pattern contains two special\n     * characters:\n     * '*' which means zero or more characters,\n     * '?' which means one and only one character.\n     *\n     * @param pattern the (non-null) pattern to match against\n     * @param str     the (non-null) string that must be matched against the\n     *                pattern\n     *\n     * @return <code>true</code> when the string matches against the pattern,\n     *         <code>false</code> otherwise.\n     */\n    protected static boolean match(String pattern, String str, boolean isCaseSensitive) {\n        char[] patArr = pattern.toCharArray();\n        char[] strArr = str.toCharArray();\n        int patIdxStart = 0;\n        int patIdxEnd   = patArr.length-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strArr.length-1;\n        char ch;\n\n        boolean containsStar = false;\n        for (int i = 0; i < patArr.length; i++) {\n            if (patArr[i] == '*') {\n                containsStar = true;\n                break;\n            }\n        }\n\n        if (!containsStar) {\n            if (patIdxEnd != strIdxEnd) {\n            }\n            for (int i = 0; i <= patIdxEnd; i++) {\n                ch = patArr[i];\n                if (ch != '?') {\n                    if (isCaseSensitive && ch != strArr[i]) {\n                    }\n                    if (!isCaseSensitive && Character.toUpperCase(ch) !=\n                        Character.toUpperCase(strArr[i])) {\n                    }\n                }\n            }\n        }\n        \n        if (patIdxEnd == 0) {\n        }\n\n        while((ch = patArr[patIdxStart]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?') {\n                if (isCaseSensitive && ch != strArr[strIdxStart]) {\n                }\n                if (!isCaseSensitive && Character.toUpperCase(ch) !=\n                    Character.toUpperCase(strArr[strIdxStart])) {\n                }\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while((ch = patArr[patIdxEnd]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?') {\n                if (isCaseSensitive && ch != strArr[strIdxEnd]) {\n                }\n                if (!isCaseSensitive && Character.toUpperCase(ch) !=\n                    Character.toUpperCase(strArr[strIdxEnd])) {\n                }\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart+1; i <= patIdxEnd; i++) {\n                if (patArr[i] == '*') {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart+1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp-patIdxStart-1);\n            int strLength = (strIdxEnd-strIdxStart+1);\n            int foundIdx  = -1;\n            strLoop:\n            for (int i = 0; i <= strLength - patLength; i++) {\n                for (int j = 0; j < patLength; j++) {\n                    ch = patArr[patIdxStart+j+1];\n                    if (ch != '?') {\n                        if (isCaseSensitive && ch != strArr[strIdxStart+i+j]) {\n                            continue strLoop;\n                        }\n                        if (!isCaseSensitive && Character.toUpperCase(ch) !=\n                            Character.toUpperCase(strArr[strIdxStart+i+j])) {\n                            continue strLoop;\n                        }\n                    }\n                }\n\n                foundIdx = strIdxStart+i;\n                break;\n            }\n\n            if (foundIdx == -1) {\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx+patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (patArr[i] != '*') {\n                return false;\n            }\n        }\n        return true;\n    }\n\n\n\n    /**\n     * Sets the basedir for scanning. This is the directory that is scanned\n     * recursively. All '/' and '\\' characters are replaced by\n     * <code>File.separatorChar</code>. So the separator used need not match\n     * <code>File.separatorChar</code>.\n     *\n     * @param basedir the (non-null) basedir for scanning\n     */\n    public void setBasedir(String basedir) {\n        setBasedir(new File(basedir.replace('/',File.separatorChar).replace('\\\\',File.separatorChar)));\n    }\n\n\n\n    /**\n     * Sets the basedir for scanning. This is the directory that is scanned\n     * recursively.\n     *\n     * @param basedir the basedir for scanning\n     */\n    public void setBasedir(File basedir) {\n        this.basedir = basedir;\n    }\n\n\n\n    /**\n     * Gets the basedir that is used for scanning. This is the directory that\n     * is scanned recursively.\n     *\n     * @return the basedir that is used for scanning\n     */\n    public File getBasedir() {\n        return basedir;\n    }\n\n\n\n    /**\n     * Sets the case sensitivity of the file system\n     *\n     * @param specifies if the filesystem is case sensitive\n     */\n    public void setCaseSensitive(boolean isCaseSensitive) {\n        this.isCaseSensitive = isCaseSensitive;\n    }\n\n    /**\n     * Sets the set of include patterns to use. All '/' and '\\' characters are\n     * replaced by <code>File.separatorChar</code>. So the separator used need\n     * not match <code>File.separatorChar</code>.\n     * <p>\n     * When a pattern ends with a '/' or '\\', \"**\" is appended.\n     *\n     * @param includes list of include patterns\n     */\n    public void setIncludes(String[] includes) {\n        if (includes == null) {\n            this.includes = null;\n        } else {\n            this.includes = new String[includes.length];\n            for (int i = 0; i < includes.length; i++) {\n                String pattern;\n                pattern = includes[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n                if (pattern.endsWith(File.separator)) {\n                    pattern += \"**\";\n                }\n                this.includes[i] = pattern;\n            }\n        }\n    }\n\n\n\n    /**\n     * Sets the set of exclude patterns to use. All '/' and '\\' characters are\n     * replaced by <code>File.separatorChar</code>. So the separator used need\n     * not match <code>File.separatorChar</code>.\n     * <p>\n     * When a pattern ends with a '/' or '\\', \"**\" is appended.\n     *\n     * @param excludes list of exclude patterns\n     */\n    public void setExcludes(String[] excludes) {\n        if (excludes == null) {\n            this.excludes = null;\n        } else {\n            this.excludes = new String[excludes.length];\n            for (int i = 0; i < excludes.length; i++) {\n                String pattern;\n                pattern = excludes[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n                if (pattern.endsWith(File.separator)) {\n                    pattern += \"**\";\n                }\n                this.excludes[i] = pattern;\n            }\n        }\n    }\n\n\n\n    /**\n     * Scans the base directory for files that match at least one include\n     * pattern, and don't match any exclude patterns.\n     *\n     * @exception IllegalStateException when basedir was set incorrecly\n     */\n    public void scan() {\n        if (basedir == null) {\n            throw new IllegalStateException(\"No basedir set\");\n        }\n        if (!basedir.exists()) {\n            throw new IllegalStateException(\"basedir \" + basedir\n                                            + \" does not exist\");\n        }\n        if (!basedir.isDirectory()) {\n            throw new IllegalStateException(\"basedir \" + basedir\n                                            + \" is not a directory\");\n        }\n\n        if (includes == null) {\n            includes = new String[1];\n            includes[0] = \"**\";\n        }\n        if (excludes == null) {\n            excludes = new String[0];\n        }\n\n        filesIncluded    = new Vector();\n        filesNotIncluded = new Vector();\n        filesExcluded    = new Vector();\n        dirsIncluded     = new Vector();\n        dirsNotIncluded  = new Vector();\n        dirsExcluded     = new Vector();\n\n        if (isIncluded(\"\")) {\n            if (!isExcluded(\"\")) {\n                dirsIncluded.addElement(\"\");\n            } else {\n                dirsExcluded.addElement(\"\");\n            }\n        } else {\n            dirsNotIncluded.addElement(\"\");\n        }\n        scandir(basedir, \"\", true);\n    }\n\n    /**\n     * Toplevel invocation for the scan.\n     *\n     * <p>Returns immediately if a slow scan has already been requested.\n     */\n    protected void slowScan() {\n        if (haveSlowResults) {\n            return;\n        }\n\n        String[] excl = new String[dirsExcluded.size()];\n        dirsExcluded.copyInto(excl);\n\n        String[] notIncl = new String[dirsNotIncluded.size()];\n        dirsNotIncluded.copyInto(notIncl);\n\n        for (int i=0; i<excl.length; i++) {\n            if (!couldHoldIncluded(excl[i])) {\n                scandir(new File(basedir, excl[i]), \n                        excl[i]+File.separator, false);\n            }\n        }\n        \n        for (int i=0; i<notIncl.length; i++) {\n            if (!couldHoldIncluded(notIncl[i])) {\n                scandir(new File(basedir, notIncl[i]), \n                        notIncl[i]+File.separator, false);\n            }\n        }\n\n        haveSlowResults  = true;\n    }\n\n\n    /**\n     * Scans the passed dir for files and directories. Found files and\n     * directories are placed in their respective collections, based on the\n     * matching of includes and excludes. When a directory is found, it is\n     * scanned recursively.\n     *\n     * @param dir   the directory to scan\n     * @param vpath the path relative to the basedir (needed to prevent\n     *              problems with an absolute path when using dir)\n     *\n     * @see #filesIncluded\n     * @see #filesNotIncluded\n     * @see #filesExcluded\n     * @see #dirsIncluded\n     * @see #dirsNotIncluded\n     * @see #dirsExcluded\n     */\n    protected void scandir(File dir, String vpath, boolean fast) {\n        String[] newfiles = dir.list();\n\n        if (newfiles == null) {\n            /*\n             * two reasons are mentioned in the API docs for File.list\n             * (1) dir is not a directory. This is impossible as\n             *     we wouldn't get here in this case.\n             * (2) an IO error occurred (why doesn't it throw an exception \n             *     then???)\n             */\n            throw new BuildException(\"IO error scanning directory \"\n                                     + dir.getAbsolutePath());\n        }\n\n        for (int i = 0; i < newfiles.length; i++) {\n            String name = vpath+newfiles[i];\n            File   file = new File(dir,newfiles[i]);\n            if (file.isDirectory()) {\n                if (isIncluded(name)) {\n                    if (!isExcluded(name)) {\n                        dirsIncluded.addElement(name);\n                        if (fast) {\n                            scandir(file, name+File.separator, fast);\n                        }\n                    } else {\n                        dirsExcluded.addElement(name);\n                        if (fast && couldHoldIncluded(name)) {\n                            scandir(file, name+File.separator, fast);\n                        }\n                    }\n                } else {\n                    dirsNotIncluded.addElement(name);\n                    if (fast && couldHoldIncluded(name)) {\n                        scandir(file, name+File.separator, fast);\n                    }\n                }\n                if (!fast) {\n                    scandir(file, name+File.separator, fast);\n                }\n            } else if (file.isFile()) {\n                if (isIncluded(name)) {\n                    if (!isExcluded(name)) {\n                        filesIncluded.addElement(name);\n                    } else {\n                        filesExcluded.addElement(name);\n                    }\n                } else {\n                    filesNotIncluded.addElement(name);\n                }\n            }\n        }\n    }\n\n\n\n    /**\n     * Tests whether a name matches against at least one include pattern.\n     *\n     * @param name the name to match\n     * @return <code>true</code> when the name matches against at least one\n     *         include pattern, <code>false</code> otherwise.\n     */\n    protected boolean isIncluded(String name) {\n        for (int i = 0; i < includes.length; i++) {\n            if (matchPath(includes[i],name, isCaseSensitive)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Tests whether a name matches the start of at least one include pattern.\n     *\n     * @param name the name to match\n     * @return <code>true</code> when the name matches against at least one\n     *         include pattern, <code>false</code> otherwise.\n     */\n    protected boolean couldHoldIncluded(String name) {\n        for (int i = 0; i < includes.length; i++) {\n            if (matchPatternStart(includes[i],name, isCaseSensitive)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Tests whether a name matches against at least one exclude pattern.\n     *\n     * @param name the name to match\n     * @return <code>true</code> when the name matches against at least one\n     *         exclude pattern, <code>false</code> otherwise.\n     */\n    protected boolean isExcluded(String name) {\n        for (int i = 0; i < excludes.length; i++) {\n            if (matchPath(excludes[i],name, isCaseSensitive)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n\n    /**\n     * Get the names of the files that matched at least one of the include\n     * patterns, and matched none of the exclude patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the files\n     */\n    public String[] getIncludedFiles() {\n        int count = filesIncluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesIncluded.elementAt(i);\n        }\n        return files;\n    }\n\n\n\n    /**\n     * Get the names of the files that matched at none of the include patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the files\n     */\n    public String[] getNotIncludedFiles() {\n        slowScan();\n        int count = filesNotIncluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesNotIncluded.elementAt(i);\n        }\n        return files;\n    }\n\n\n\n    /**\n     * Get the names of the files that matched at least one of the include\n     * patterns, an matched also at least one of the exclude patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the files\n     */\n    public String[] getExcludedFiles() {\n        slowScan();\n        int count = filesExcluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesExcluded.elementAt(i);\n        }\n        return files;\n    }\n\n\n\n    /**\n     * Get the names of the directories that matched at least one of the include\n     * patterns, an matched none of the exclude patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the directories\n     */\n    public String[] getIncludedDirectories() {\n        int count = dirsIncluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsIncluded.elementAt(i);\n        }\n        return directories;\n    }\n\n\n\n    /**\n     * Get the names of the directories that matched at none of the include\n     * patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the directories\n     */\n    public String[] getNotIncludedDirectories() {\n        slowScan();\n        int count = dirsNotIncluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsNotIncluded.elementAt(i);\n        }\n        return directories;\n    }\n\n\n\n    /**\n     * Get the names of the directories that matched at least one of the include\n     * patterns, an matched also at least one of the exclude patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the directories\n     */\n    public String[] getExcludedDirectories() {\n        slowScan();\n        int count = dirsExcluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsExcluded.elementAt(i);\n        }\n        return directories;\n    }\n\n\n\n    /**\n     * Adds the array with default exclusions to the current exclusions set.\n     *\n     */\n    public void addDefaultExcludes() {\n        int excludesLength = excludes == null ? 0 : excludes.length;\n        String[] newExcludes;\n        newExcludes = new String[excludesLength + DEFAULTEXCLUDES.length];\n        if (excludesLength > 0) {\n            System.arraycopy(excludes,0,newExcludes,0,excludesLength);\n        }\n        for (int i = 0; i < DEFAULTEXCLUDES.length; i++) {\n            newExcludes[i+excludesLength] = DEFAULTEXCLUDES[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n        }\n        excludes = newExcludes;", "functions": [{"function_name": "matchPatternStart", "code": "    protected static boolean matchPatternStart(String pattern, String str) {\n        return matchPatternStart(pattern, str, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "matchPatternStart", "code": "    protected static boolean matchPatternStart(String pattern, String str,\n                                               boolean isCaseSensitive) {\n        if (str.startsWith(File.separator) !=\n            pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        Vector patDirs = new Vector();\n        StringTokenizer st = new StringTokenizer(pattern,File.separator);\n        while (st.hasMoreTokens()) {\n            patDirs.addElement(st.nextToken());\n        }\n\n        Vector strDirs = new Vector();\n        st = new StringTokenizer(str,File.separator);\n        while (st.hasMoreTokens()) {\n            strDirs.addElement(st.nextToken());\n        }\n\n        int patIdxStart = 0;\n        int patIdxEnd   = patDirs.size()-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strDirs.size()-1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxStart);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxStart), isCaseSensitive)) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n\n        if (strIdxStart > strIdxEnd) {\n            return true;\n        } else if (patIdxStart > patIdxEnd) {\n            return false;\n        } else {\n            return true;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [1, 17], [2, 18], [7, 19], [0, 20], [9, 21], [12, 22], [16, 23], [1, 24], [2, 25], [2, 26], [2, 27], [18, 28], [18, 29], [3, 30], [4, 31], [5, 32], [6, 33], [20, 34], [8, 35], [10, 36], [11, 37], [12, 38], [22, 39], [22, 40], [16, 41], [16, 42], [24, 43], [25, 44], [26, 45], [30, 46], [30, 47], [32, 48], [32, 49], [7, 50], [9, 51], [38, 52], [41, 53], [42, 54], [25, 55], [26, 56], [45, 57], [50, 58], [51, 59], [55, 60], [44, 61], [27, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 1], [18, 2], [19, 7], [20, 0], [21, 9], [22, 12], [23, 16], [24, 1], [25, 2], [26, 2], [27, 2], [28, 18], [29, 18], [30, 3], [31, 4], [32, 5], [33, 6], [34, 20], [35, 8], [36, 10], [37, 11], [38, 12], [39, 22], [40, 22], [41, 16], [42, 16], [43, 24], [44, 25], [45, 26], [46, 30], [47, 30], [48, 32], [49, 32], [50, 7], [51, 9], [52, 38], [53, 41], [54, 42], [55, 25], [56, 26], [57, 45], [58, 50], [59, 51], [60, 55], [61, 44], [62, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "matchPath", "code": "    protected static boolean matchPath(String pattern, String str) {\n        return matchPath(pattern, str, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "matchPath", "code": "    protected static boolean matchPath(String pattern, String str, boolean isCaseSensitive) {\n        if (str.startsWith(File.separator) !=\n            pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        Vector patDirs = new Vector();\n        StringTokenizer st = new StringTokenizer(pattern,File.separator);\n        while (st.hasMoreTokens()) {\n            patDirs.addElement(st.nextToken());\n        }\n\n        Vector strDirs = new Vector();\n        st = new StringTokenizer(str,File.separator);\n        while (st.hasMoreTokens()) {\n            strDirs.addElement(st.nextToken());\n        }\n\n        int patIdxStart = 0;\n        int patIdxEnd   = patDirs.size()-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strDirs.size()-1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxStart);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxStart), isCaseSensitive)) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs.elementAt(i).equals(\"**\")) {\n                    return false;\n                }\n            }\n            return true;\n        } else {\n            if (patIdxStart > patIdxEnd) {\n                return false;\n            }\n        }\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxEnd);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxEnd), isCaseSensitive)) {\n                return false;\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs.elementAt(i).equals(\"**\")) {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart+1; i <= patIdxEnd; i++) {\n                if (patDirs.elementAt(i).equals(\"**\")) {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart+1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp-patIdxStart-1);\n            int strLength = (strIdxEnd-strIdxStart+1);\n            int foundIdx  = -1;\nstrLoop:\n            for (int i = 0; i <= strLength - patLength; i++) {\n                for (int j = 0; j < patLength; j++) {\n                    String subPat = (String)patDirs.elementAt(patIdxStart+j+1);\n                    String subStr = (String)strDirs.elementAt(strIdxStart+i+j);\n                    if (!match(subPat,subStr, isCaseSensitive)) {\n                        continue strLoop;\n                    }\n                }\n\n                foundIdx = strIdxStart+i;\n                break;\n            }\n\n            if (foundIdx == -1) {\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx+patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (!patDirs.elementAt(i).equals(\"**\")) {\n                return false;\n            }\n        }\n\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "IF", "LOOP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "RETURN", "LOOP", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN", "IF", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [2, 22], [3, 23], [4, 24], [5, 25], [6, 26], [7, 27], [12, 28], [0, 29], [14, 30], [17, 31], [2, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [3, 40], [23, 41], [23, 42], [4, 43], [4, 44], [5, 45], [5, 46], [5, 47], [25, 48], [25, 49], [6, 50], [6, 51], [6, 52], [7, 53], [7, 54], [7, 55], [27, 56], [27, 57], [8, 58], [9, 59], [10, 60], [11, 61], [29, 62], [13, 63], [15, 64], [16, 65], [17, 66], [31, 67], [31, 68], [32, 69], [3, 70], [3, 71], [33, 72], [34, 73], [38, 74], [39, 75], [43, 76], [44, 77], [45, 78], [46, 79], [50, 80], [51, 81], [52, 82], [53, 83], [54, 84], [58, 85], [58, 86], [60, 87], [60, 88], [12, 89], [14, 90], [66, 91], [32, 92], [69, 93], [70, 94], [33, 95], [72, 96], [34, 97], [34, 98], [73, 99], [35, 100], [36, 101], [37, 102], [38, 103], [74, 104], [39, 105], [40, 106], [44, 107], [45, 108], [46, 109], [79, 110], [50, 111], [52, 112], [53, 113], [54, 114], [84, 115], [89, 116], [90, 117], [92, 118], [93, 119], [95, 120], [34, 121], [98, 122], [34, 123], [101, 124], [101, 125], [102, 126], [102, 127], [104, 128], [105, 129], [39, 130], [107, 131], [108, 132], [78, 133], [47, 134], [111, 135], [112, 136], [113, 137], [83, 138], [55, 139], [121, 140], [98, 141], [98, 142], [98, 143], [105, 144], [129, 145], [130, 146], [107, 147], [131, 148], [112, 149], [136, 150], [141, 151], [98, 152], [105, 153], [145, 154], [147, 155], [148, 156], [149, 157], [150, 158], [141, 159], [142, 160], [143, 161], [160, 162], [161, 163], [162, 164], [163, 165], [163, 166], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 2], [23, 3], [24, 4], [25, 5], [26, 6], [27, 7], [28, 12], [29, 0], [30, 14], [31, 17], [32, 2], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 3], [41, 23], [42, 23], [43, 4], [44, 4], [45, 5], [46, 5], [47, 5], [48, 25], [49, 25], [50, 6], [51, 6], [52, 6], [53, 7], [54, 7], [55, 7], [56, 27], [57, 27], [58, 8], [59, 9], [60, 10], [61, 11], [62, 29], [63, 13], [64, 15], [65, 16], [66, 17], [67, 31], [68, 31], [69, 32], [70, 3], [71, 3], [72, 33], [73, 34], [74, 38], [75, 39], [76, 43], [77, 44], [78, 45], [79, 46], [80, 50], [81, 51], [82, 52], [83, 53], [84, 54], [85, 58], [86, 58], [87, 60], [88, 60], [89, 12], [90, 14], [91, 66], [92, 32], [93, 69], [94, 70], [95, 33], [96, 72], [97, 34], [98, 34], [99, 73], [100, 35], [101, 36], [102, 37], [103, 38], [104, 74], [105, 39], [106, 40], [107, 44], [108, 45], [109, 46], [110, 79], [111, 50], [112, 52], [113, 53], [114, 54], [115, 84], [116, 89], [117, 90], [118, 92], [119, 93], [120, 95], [121, 34], [122, 98], [123, 34], [124, 101], [125, 101], [126, 102], [127, 102], [128, 104], [129, 105], [130, 39], [131, 107], [132, 108], [133, 78], [134, 47], [135, 111], [136, 112], [137, 113], [138, 83], [139, 55], [140, 121], [141, 98], [142, 98], [143, 98], [144, 105], [145, 129], [146, 130], [147, 107], [148, 131], [149, 112], [150, 136], [151, 141], [152, 98], [153, 105], [154, 145], [155, 147], [156, 148], [157, 149], [158, 150], [159, 141], [160, 142], [161, 143], [162, 160], [163, 161], [164, 162], [165, 163], [166, 163], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166]]}, {"function_name": "match", "code": "    protected static boolean match(String pattern, String str) {\n        return match(pattern, str, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "match", "code": "    protected static boolean match(String pattern, String str, boolean isCaseSensitive) {\n        char[] patArr = pattern.toCharArray();\n        char[] strArr = str.toCharArray();\n        int patIdxStart = 0;\n        int patIdxEnd   = patArr.length-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strArr.length-1;\n        char ch;\n\n        boolean containsStar = false;\n        for (int i = 0; i < patArr.length; i++) {\n            if (patArr[i] == '*') {\n                containsStar = true;\n                break;\n            }\n        }\n\n        if (!containsStar) {\n            if (patIdxEnd != strIdxEnd) {\n            }\n            for (int i = 0; i <= patIdxEnd; i++) {\n                ch = patArr[i];\n                if (ch != '?') {\n                    if (isCaseSensitive && ch != strArr[i]) {\n                    }\n                    if (!isCaseSensitive && Character.toUpperCase(ch) !=\n                        Character.toUpperCase(strArr[i])) {\n                    }\n                }\n            }\n        }\n        \n        if (patIdxEnd == 0) {\n        }\n\n        while((ch = patArr[patIdxStart]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?') {\n                if (isCaseSensitive && ch != strArr[strIdxStart]) {\n                }\n                if (!isCaseSensitive && Character.toUpperCase(ch) !=\n                    Character.toUpperCase(strArr[strIdxStart])) {\n                }\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while((ch = patArr[patIdxEnd]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?') {\n                if (isCaseSensitive && ch != strArr[strIdxEnd]) {\n                }\n                if (!isCaseSensitive && Character.toUpperCase(ch) !=\n                    Character.toUpperCase(strArr[strIdxEnd])) {\n                }\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart+1; i <= patIdxEnd; i++) {\n                if (patArr[i] == '*') {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart+1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp-patIdxStart-1);\n            int strLength = (strIdxEnd-strIdxStart+1);\n            int foundIdx  = -1;\n            strLoop:\n            for (int i = 0; i <= strLength - patLength; i++) {\n                for (int j = 0; j < patLength; j++) {\n                    ch = patArr[patIdxStart+j+1];\n                    if (ch != '?') {\n                        if (isCaseSensitive && ch != strArr[strIdxStart+i+j]) {\n                            continue strLoop;\n                        }\n                        if (!isCaseSensitive && Character.toUpperCase(ch) !=\n                            Character.toUpperCase(strArr[strIdxStart+i+j])) {\n                            continue strLoop;\n                        }\n                    }\n                }\n\n                foundIdx = strIdxStart+i;\n                break;\n            }\n\n            if (foundIdx == -1) {\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx+patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (patArr[i] != '*') {\n                return false;\n            }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "IF", "LOOP", "IF", "LOOP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [1, 22], [2, 23], [3, 24], [4, 25], [5, 26], [6, 27], [7, 28], [8, 29], [10, 30], [2, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [24, 40], [24, 41], [4, 42], [4, 43], [5, 44], [26, 45], [26, 46], [6, 47], [6, 48], [7, 49], [28, 50], [28, 51], [29, 52], [9, 53], [9, 54], [10, 55], [11, 56], [13, 57], [14, 58], [15, 59], [16, 60], [17, 61], [18, 62], [31, 63], [3, 64], [3, 65], [32, 66], [33, 67], [37, 68], [38, 69], [42, 70], [43, 71], [44, 72], [46, 73], [46, 74], [47, 75], [48, 76], [49, 77], [51, 78], [51, 79], [53, 80], [54, 81], [55, 82], [10, 83], [57, 84], [59, 85], [31, 86], [63, 87], [64, 88], [32, 89], [66, 90], [33, 91], [33, 92], [67, 93], [34, 94], [35, 95], [36, 96], [37, 97], [68, 98], [38, 99], [39, 100], [43, 101], [44, 102], [44, 103], [72, 104], [48, 105], [49, 106], [49, 107], [77, 108], [53, 109], [55, 110], [82, 111], [86, 112], [89, 113], [33, 114], [92, 115], [33, 116], [95, 117], [95, 118], [96, 119], [96, 120], [98, 121], [99, 122], [38, 123], [101, 124], [102, 125], [103, 126], [105, 127], [106, 128], [107, 129], [109, 130], [53, 131], [53, 132], [55, 133], [114, 134], [92, 135], [99, 136], [122, 137], [123, 138], [101, 139], [124, 140], [125, 141], [126, 142], [105, 143], [127, 144], [128, 145], [129, 146], [109, 147], [109, 148], [130, 149], [133, 150], [135, 151], [92, 152], [92, 153], [99, 154], [139, 155], [141, 156], [141, 157], [143, 158], [145, 159], [145, 160], [147, 161], [148, 162], [135, 163], [135, 164], [151, 165], [161, 166], [162, 167], [163, 168], [164, 169], [166, 170], [166, 171], [163, 172], [168, 173], [164, 174], [169, 175], [152, 176], [173, 177], [173, 178], [176, 179], [176, 180], [175, 181], [177, 182], [181, 183], [182, 184], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 1], [23, 2], [24, 3], [25, 4], [26, 5], [27, 6], [28, 7], [29, 8], [30, 10], [31, 2], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 24], [41, 24], [42, 4], [43, 4], [44, 5], [45, 26], [46, 26], [47, 6], [48, 6], [49, 7], [50, 28], [51, 28], [52, 29], [53, 9], [54, 9], [55, 10], [56, 11], [57, 13], [58, 14], [59, 15], [60, 16], [61, 17], [62, 18], [63, 31], [64, 3], [65, 3], [66, 32], [67, 33], [68, 37], [69, 38], [70, 42], [71, 43], [72, 44], [73, 46], [74, 46], [75, 47], [76, 48], [77, 49], [78, 51], [79, 51], [80, 53], [81, 54], [82, 55], [83, 10], [84, 57], [85, 59], [86, 31], [87, 63], [88, 64], [89, 32], [90, 66], [91, 33], [92, 33], [93, 67], [94, 34], [95, 35], [96, 36], [97, 37], [98, 68], [99, 38], [100, 39], [101, 43], [102, 44], [103, 44], [104, 72], [105, 48], [106, 49], [107, 49], [108, 77], [109, 53], [110, 55], [111, 82], [112, 86], [113, 89], [114, 33], [115, 92], [116, 33], [117, 95], [118, 95], [119, 96], [120, 96], [121, 98], [122, 99], [123, 38], [124, 101], [125, 102], [126, 103], [127, 105], [128, 106], [129, 107], [130, 109], [131, 53], [132, 53], [133, 55], [134, 114], [135, 92], [136, 99], [137, 122], [138, 123], [139, 101], [140, 124], [141, 125], [142, 126], [143, 105], [144, 127], [145, 128], [146, 129], [147, 109], [148, 109], [149, 130], [150, 133], [151, 135], [152, 92], [153, 92], [154, 99], [155, 139], [156, 141], [157, 141], [158, 143], [159, 145], [160, 145], [161, 147], [162, 148], [163, 135], [164, 135], [165, 151], [166, 161], [167, 162], [168, 163], [169, 164], [170, 166], [171, 166], [172, 163], [173, 168], [174, 164], [175, 169], [176, 152], [177, 173], [178, 173], [179, 176], [180, 176], [181, 175], [182, 177], [183, 181], [184, 182], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184]]}, {"function_name": "setBasedir", "code": "    public void setBasedir(String basedir) {\n        setBasedir(new File(basedir.replace('/',File.separatorChar).replace('\\\\',File.separatorChar)));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setBasedir", "code": "    public void setBasedir(File basedir) {\n        this.basedir = basedir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBasedir", "code": "    public File getBasedir() {\n        return basedir;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCaseSensitive", "code": "    public void setCaseSensitive(boolean isCaseSensitive) {\n        this.isCaseSensitive = isCaseSensitive;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIncludes", "code": "    public void setIncludes(String[] includes) {\n        if (includes == null) {\n            this.includes = null;\n        } else {\n            this.includes = new String[includes.length];\n            for (int i = 0; i < includes.length; i++) {\n                String pattern;\n                pattern = includes[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n                if (pattern.endsWith(File.separator)) {\n                    pattern += \"**\";\n                }\n                this.includes[i] = pattern;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [1, 8], [4, 9], [4, 10], [8, 11], [4, 12], [9, 13], [4, 14], [4, 15], [9, 16], [14, 17], [14, 18], [16, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 1], [9, 4], [10, 4], [11, 8], [12, 4], [13, 9], [14, 4], [15, 4], [16, 9], [17, 14], [18, 14], [19, 16], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setExcludes", "code": "    public void setExcludes(String[] excludes) {\n        if (excludes == null) {\n            this.excludes = null;\n        } else {\n            this.excludes = new String[excludes.length];\n            for (int i = 0; i < excludes.length; i++) {\n                String pattern;\n                pattern = excludes[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n                if (pattern.endsWith(File.separator)) {\n                    pattern += \"**\";\n                }\n                this.excludes[i] = pattern;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [1, 8], [4, 9], [4, 10], [8, 11], [4, 12], [9, 13], [4, 14], [4, 15], [9, 16], [14, 17], [14, 18], [16, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 1], [9, 4], [10, 4], [11, 8], [12, 4], [13, 9], [14, 4], [15, 4], [16, 9], [17, 14], [18, 14], [19, 16], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "scan", "code": "    public void scan() {\n        if (basedir == null) {\n            throw new IllegalStateException(\"No basedir set\");\n        }\n        if (!basedir.exists()) {\n            throw new IllegalStateException(\"basedir \" + basedir\n                                            + \" does not exist\");\n        }\n        if (!basedir.isDirectory()) {\n            throw new IllegalStateException(\"basedir \" + basedir\n                                            + \" is not a directory\");\n        }\n\n        if (includes == null) {\n            includes = new String[1];\n            includes[0] = \"**\";\n        }\n        if (excludes == null) {\n            excludes = new String[0];\n        }\n\n        filesIncluded    = new Vector();\n        filesNotIncluded = new Vector();\n        filesExcluded    = new Vector();\n        dirsIncluded     = new Vector();\n        dirsNotIncluded  = new Vector();\n        dirsExcluded     = new Vector();\n\n        if (isIncluded(\"\")) {\n            if (!isExcluded(\"\")) {\n                dirsIncluded.addElement(\"\");\n            } else {\n                dirsExcluded.addElement(\"\");\n            }\n        } else {\n            dirsNotIncluded.addElement(\"\");\n        }\n        scandir(basedir, \"\", true);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [3, 16], [4, 17], [5, 18], [6, 19], [7, 20], [7, 21], [1, 22], [8, 23], [9, 24], [10, 25], [11, 26], [12, 27], [13, 28], [14, 29], [15, 30], [16, 31], [4, 32], [5, 33], [6, 34], [19, 35], [1, 36], [22, 37], [2, 38], [3, 39], [3, 40], [32, 41], [33, 42], [34, 43], [36, 44], [37, 45], [39, 46], [41, 47], [42, 48], [43, 49], [22, 50], [22, 51], [38, 52], [40, 53], [47, 54], [47, 55], [48, 56], [48, 57], [50, 58], [51, 59], [39, 60], [55, 61], [57, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 3], [17, 4], [18, 5], [19, 6], [20, 7], [21, 7], [22, 1], [23, 8], [24, 9], [25, 10], [26, 11], [27, 12], [28, 13], [29, 14], [30, 15], [31, 16], [32, 4], [33, 5], [34, 6], [35, 19], [36, 1], [37, 22], [38, 2], [39, 3], [40, 3], [41, 32], [42, 33], [43, 34], [44, 36], [45, 37], [46, 39], [47, 41], [48, 42], [49, 43], [50, 22], [51, 22], [52, 38], [53, 40], [54, 47], [55, 47], [56, 48], [57, 48], [58, 50], [59, 51], [60, 39], [61, 55], [62, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "slowScan", "code": "    protected void slowScan() {\n        if (haveSlowResults) {\n            return;\n        }\n\n        String[] excl = new String[dirsExcluded.size()];\n        dirsExcluded.copyInto(excl);\n\n        String[] notIncl = new String[dirsNotIncluded.size()];\n        dirsNotIncluded.copyInto(notIncl);\n\n        for (int i=0; i<excl.length; i++) {\n            if (!couldHoldIncluded(excl[i])) {\n                scandir(new File(basedir, excl[i]), \n                        excl[i]+File.separator, false);\n            }\n        }\n        \n        for (int i=0; i<notIncl.length; i++) {\n            if (!couldHoldIncluded(notIncl[i])) {\n                scandir(new File(basedir, notIncl[i]), \n                        notIncl[i]+File.separator, false);\n            }\n        }\n\n        haveSlowResults  = true;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [0, 10], [6, 11], [1, 12], [2, 13], [5, 14], [12, 15], [1, 16], [13, 17], [2, 18], [3, 19], [4, 20], [12, 21], [13, 22], [21, 23], [21, 24], [21, 25], [22, 26], [22, 27], [22, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 0], [11, 6], [12, 1], [13, 2], [14, 5], [15, 12], [16, 1], [17, 13], [18, 2], [19, 3], [20, 4], [21, 12], [22, 13], [23, 21], [24, 21], [25, 21], [26, 22], [27, 22], [28, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "scandir", "code": "    protected void scandir(File dir, String vpath, boolean fast) {\n        String[] newfiles = dir.list();\n\n        if (newfiles == null) {\n            /*\n             * two reasons are mentioned in the API docs for File.list\n             * (1) dir is not a directory. This is impossible as\n             *     we wouldn't get here in this case.\n             * (2) an IO error occurred (why doesn't it throw an exception \n             *     then???)\n             */\n            throw new BuildException(\"IO error scanning directory \"\n                                     + dir.getAbsolutePath());\n        }\n\n        for (int i = 0; i < newfiles.length; i++) {\n            String name = vpath+newfiles[i];\n            File   file = new File(dir,newfiles[i]);\n            if (file.isDirectory()) {\n                if (isIncluded(name)) {\n                    if (!isExcluded(name)) {\n                        dirsIncluded.addElement(name);\n                        if (fast) {\n                            scandir(file, name+File.separator, fast);\n                        }\n                    } else {\n                        dirsExcluded.addElement(name);\n                        if (fast && couldHoldIncluded(name)) {\n                            scandir(file, name+File.separator, fast);\n                        }\n                    }\n                } else {\n                    dirsNotIncluded.addElement(name);\n                    if (fast && couldHoldIncluded(name)) {\n                        scandir(file, name+File.separator, fast);\n                    }\n                }\n                if (!fast) {\n                    scandir(file, name+File.separator, fast);\n                }\n            } else if (file.isFile()) {\n                if (isIncluded(name)) {\n                    if (!isExcluded(name)) {\n                        filesIncluded.addElement(name);\n                    } else {\n                        filesExcluded.addElement(name);\n                    }\n                } else {\n                    filesNotIncluded.addElement(name);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [1, 10], [1, 11], [2, 12], [8, 13], [3, 14], [9, 15], [9, 16], [1, 17], [12, 18], [15, 19], [9, 20], [9, 21], [10, 22], [11, 23], [18, 24], [15, 25], [21, 26], [24, 27], [24, 28], [25, 29], [21, 30], [21, 31], [25, 32], [20, 33], [30, 34], [21, 35], [31, 36], [25, 37], [32, 38], [33, 39], [34, 40], [31, 41], [31, 42], [30, 43], [41, 44], [31, 45], [31, 46], [32, 47], [32, 48], [43, 49], [44, 50], [41, 51], [42, 52], [51, 53], [52, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 1], [11, 1], [12, 2], [13, 8], [14, 3], [15, 9], [16, 9], [17, 1], [18, 12], [19, 15], [20, 9], [21, 9], [22, 10], [23, 11], [24, 18], [25, 15], [26, 21], [27, 24], [28, 24], [29, 25], [30, 21], [31, 21], [32, 25], [33, 20], [34, 30], [35, 21], [36, 31], [37, 25], [38, 32], [39, 33], [40, 34], [41, 31], [42, 31], [43, 30], [44, 41], [45, 31], [46, 31], [47, 32], [48, 32], [49, 43], [50, 44], [51, 41], [52, 42], [53, 51], [54, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "isIncluded", "code": "    protected boolean isIncluded(String name) {\n        for (int i = 0; i < includes.length; i++) {\n            if (matchPath(includes[i],name, isCaseSensitive)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [2, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 2], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "couldHoldIncluded", "code": "    protected boolean couldHoldIncluded(String name) {\n        for (int i = 0; i < includes.length; i++) {\n            if (matchPatternStart(includes[i],name, isCaseSensitive)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [2, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 2], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isExcluded", "code": "    protected boolean isExcluded(String name) {\n        for (int i = 0; i < excludes.length; i++) {\n            if (matchPath(excludes[i],name, isCaseSensitive)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [2, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 2], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getIncludedFiles", "code": "    public String[] getIncludedFiles() {\n        int count = filesIncluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesIncluded.elementAt(i);\n        }\n        return files;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [2, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [7, 2], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getNotIncludedFiles", "code": "    public String[] getNotIncludedFiles() {\n        slowScan();\n        int count = filesNotIncluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesNotIncluded.elementAt(i);\n        }\n        return files;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [4, 7], [2, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 4], [8, 2], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getExcludedFiles", "code": "    public String[] getExcludedFiles() {\n        slowScan();\n        int count = filesExcluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesExcluded.elementAt(i);\n        }\n        return files;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [4, 7], [2, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 4], [8, 2], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getIncludedDirectories", "code": "    public String[] getIncludedDirectories() {\n        int count = dirsIncluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsIncluded.elementAt(i);\n        }\n        return directories;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [2, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [7, 2], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getNotIncludedDirectories", "code": "    public String[] getNotIncludedDirectories() {\n        slowScan();\n        int count = dirsNotIncluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsNotIncluded.elementAt(i);\n        }\n        return directories;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [4, 7], [2, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 4], [8, 2], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getExcludedDirectories", "code": "    public String[] getExcludedDirectories() {\n        slowScan();\n        int count = dirsExcluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsExcluded.elementAt(i);\n        }\n        return directories;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [4, 7], [2, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 4], [8, 2], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addDefaultExcludes", "code": "    public void addDefaultExcludes() {\n        int excludesLength = excludes == null ? 0 : excludes.length;\n        String[] newExcludes;\n        newExcludes = new String[excludesLength + DEFAULTEXCLUDES.length];\n        if (excludesLength > 0) {\n            System.arraycopy(excludes,0,newExcludes,0,excludesLength);\n        }\n        for (int i = 0; i < DEFAULTEXCLUDES.length; i++) {\n            newExcludes[i+excludesLength] = DEFAULTEXCLUDES[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n        }\n        excludes = newExcludes;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [7, 9], [4, 10], [1, 11], [1, 12], [2, 13], [8, 14], [10, 15], [10, 16], [13, 17], [13, 18], [16, 19], [11, 20], [11, 21], [20, 22], [21, 23], [11, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 7], [10, 4], [11, 1], [12, 1], [13, 2], [14, 8], [15, 10], [16, 10], [17, 13], [18, 13], [19, 16], [20, 11], [21, 11], [22, 20], [23, 21], [24, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "DirectoryScanner", "code": "    public DirectoryScanner() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.2-1993", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/ibatis/IBatisComponent.java", "language": "java", "name": "org.apache.camel.component.ibatis.IBatisComponent", "code": "public class IBatisComponent extends DefaultComponent {\n    private static final transient Log LOG = LogFactory.getLog(IBatisComponent.class);\n\n    public static final String DEFAULT_CONFIG_URI = \"SqlMapConfig.xml\";\n    private SqlMapClient sqlMapClient;\n    private Resource sqlMapResource;\n\n    public IBatisComponent() {\n    }\n\n    public IBatisComponent(SqlMapClient sqlMapClient) {\n        this.sqlMapClient = sqlMapClient;\n    }\n\n    public SqlMapClient getSqlMapClient() throws IOException {\n        if (sqlMapClient == null) {\n            sqlMapClient = createSqlMapClient();\n        }\n        return sqlMapClient;\n    }\n\n    public void setSqlMapClient(SqlMapClient sqlMapClient) {\n        this.sqlMapClient = sqlMapClient;\n    }\n\n    public Resource getSqlMapResource() {\n        if (sqlMapResource == null) {\n            sqlMapResource = new ClassPathResource(DEFAULT_CONFIG_URI);\n            LOG.debug(\"Defaulting to use the iBatis configuration from: \" + sqlMapResource);\n        }\n        return sqlMapResource;\n    }\n\n    public void setSqlMapResource(Resource sqlMapResource) {\n        this.sqlMapResource = sqlMapResource;\n    }\n\n    protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        return new IBatisEndpoint(uri, this, remaining);\n    }\n\n    protected SqlMapClient createSqlMapClient() throws IOException {\n        InputStream in = getSqlMapResource().getInputStream();\n        return SqlMapClientBuilder.buildSqlMapClient(in);", "functions": [{"function_name": "getSqlMapClient", "code": "    public SqlMapClient getSqlMapClient() throws IOException {\n        if (sqlMapClient == null) {\n            sqlMapClient = createSqlMapClient();\n        }\n        return sqlMapClient;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setSqlMapClient", "code": "    public void setSqlMapClient(SqlMapClient sqlMapClient) {\n        this.sqlMapClient = sqlMapClient;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSqlMapResource", "code": "    public Resource getSqlMapResource() {\n        if (sqlMapResource == null) {\n            sqlMapResource = new ClassPathResource(DEFAULT_CONFIG_URI);\n            LOG.debug(\"Defaulting to use the iBatis configuration from: \" + sqlMapResource);\n        }\n        return sqlMapResource;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setSqlMapResource", "code": "    public void setSqlMapResource(Resource sqlMapResource) {\n        this.sqlMapResource = sqlMapResource;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createEndpoint", "code": "    protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        return new IBatisEndpoint(uri, this, remaining);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createSqlMapClient", "code": "    protected SqlMapClient createSqlMapClient() throws IOException {\n        InputStream in = getSqlMapResource().getInputStream();\n        return SqlMapClientBuilder.buildSqlMapClient(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "IBatisComponent", "code": "    public IBatisComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IBatisComponent", "code": "    public IBatisComponent(SqlMapClient sqlMapClient) {\n        this.sqlMapClient = sqlMapClient;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.4-2144", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/bean/MethodInvocation.java", "language": "java", "name": "org.apache.camel.component.bean.MethodInvocation", "code": "public interface MethodInvocation {\n\n    Method getMethod();\n\n    Object[] getArguments();\n\n    Object proceed() throws Throwable;\n\n    Object getThis();\n\n    AccessibleObject getStaticPart();", "functions": [{"function_name": "getMethod", "code": "    Method getMethod();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getArguments", "code": "    Object[] getArguments();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "proceed", "code": "    Object proceed() throws Throwable;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getThis", "code": "    Object getThis();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getStaticPart", "code": "    AccessibleObject getStaticPart();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "jedit-4.3-4726", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/options/ShortcutsOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.ShortcutsOptionPane", "code": "public class ShortcutsOptionPane extends AbstractOptionPane\n{\n\t//{{{ ShortcutsOptionPane constructor\n\tpublic ShortcutsOptionPane()\n\t{\n\t\tsuper(\"shortcuts\");\n\t} //}}}\n\n\t//{{{ _init() method\n\t@Override\n\tprotected void _init()\n\t{\n\t\tallBindings = new Vector<KeyBinding>();\n\n\t\tsetLayout(new BorderLayout(12,12));\n\n\t\tinitModels();\n\n\t\tselectModel = new JComboBox(models);\n\t\tselectModel.addActionListener(new ActionHandler());\n\t\tselectModel.setToolTipText(jEdit.getProperty(\"options.shortcuts.select.tooltip\"));\n\t\tBox north = Box.createHorizontalBox();\n\t\tnorth.add(new JLabel(jEdit.getProperty(\n\t\t\t\"options.shortcuts.select.label\")));\n\t\tnorth.add(Box.createHorizontalStrut(6));\n\t\tnorth.add(selectModel);\n\n\t\tfilterTF = new JTextField(40);\n\t\tfilterTF.setToolTipText(jEdit.getProperty(\"options.shortcuts.filter.tooltip\"));\n\t\tfilterTF.getDocument().addDocumentListener(new DocumentListener()\n\t\t{\n\t\t\tpublic void changedUpdate(DocumentEvent e)\n\t\t\t{\n\t\t\t\tsetFilter();\n\t\t\t}\n\n\t\t\tpublic void insertUpdate(DocumentEvent e)\n\t\t\t{\n\t\t\t\tsetFilter();\n\t\t\t}\n\n\t\t\tpublic void removeUpdate(DocumentEvent e)\n\t\t\t{\n\t\t\t\tsetFilter();\n\t\t\t}\n\t\t});\n\t\tJButton clearButton = new JButton(jEdit.getProperty(\n\t\t\t\t\"options.shortcuts.clear.label\"));\n\t\tclearButton.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tfilterTF.setText(\"\");\n\t\t\t\tfilterTF.requestFocus();\n\t\t\t}\n\t\t});\n\n\t\tJPanel filterPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t\tfilterPanel.add(new JLabel(jEdit.getProperty(\"options.shortcuts.filter.label\")));\n\t\tfilterPanel.add(filterTF);\n\t\tfilterPanel.add(clearButton);\n\n\t\tkeyTable = new JTable(filteredModel);\n\t\tfilteredModel.setTable(keyTable);\n\t\tkeyTable.getTableHeader().setReorderingAllowed(false);\n\t\tkeyTable.getTableHeader().addMouseListener(new HeaderMouseHandler());\n\t\tkeyTable.addMouseListener(new TableMouseHandler());\n\t\tDimension d = keyTable.getPreferredSize();\n\t\td.height = Math.min(d.height,200);\n\t\tJScrollPane scroller = new JScrollPane(keyTable);\n\t\tscroller.setPreferredSize(d);\n\t\tJPanel tableFilterPanel = new JPanel(new BorderLayout());\n\t\ttableFilterPanel.add(BorderLayout.NORTH,filterPanel);\n\t\ttableFilterPanel.add(BorderLayout.CENTER,scroller);\n\n\t\tadd(BorderLayout.NORTH,north);\n\t\tadd(BorderLayout.CENTER,tableFilterPanel);\n\t\ttry\n\t\t{\n\t\t\tselectModel.setSelectedIndex(jEdit.getIntegerProperty(\"options.shortcuts.select.index\", 0));\n\t\t}\n\t\tcatch (IllegalArgumentException eae) {}\n\t} //}}}\n\n\t//{{{ _save() method\n\t@Override\n\tprotected void _save()\n\t{\n\t\tif(keyTable.getCellEditor() != null)\n\t\t\tkeyTable.getCellEditor().stopCellEditing();\n\n\t\tfor (ShortcutsModel model : models)\n\t\t\tmodel.save();\n\n\t\tMacros.loadMacros();\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate JTable keyTable;\n\tprivate Vector<ShortcutsModel> models;\n\tprivate FilteredTableModel<ShortcutsModel> filteredModel;\n\tprivate JComboBox selectModel;\n\tprivate List<KeyBinding> allBindings;\n\tprivate JTextField filterTF;\n\n\t//{{{ setFilter() method\n\tprivate void setFilter()\n\t{\n\t\tfilteredModel.setFilter(filterTF.getText());\n\t} //}}}\n\n\t//{{{ initModels() method\n\tprivate void initModels()\n\t{\n\t\tList<KeyBinding[]> allBindings = new Vector<KeyBinding[]>();\n\t\tmodels = new Vector<ShortcutsModel>();\n\t\tActionSet[] actionSets = jEdit.getActionSets();\n\t\tfor(int i = 0; i < actionSets.length; i++)\n\t\t{\n\t\t\tActionSet actionSet = actionSets[i];\n\t\t\tif(actionSet.getActionCount() != 0)\n\t\t\t{\n\t\t\t\tString modelLabel = actionSet.getLabel();\n\t\t\t\tif(modelLabel == null)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,\"Empty action set: \"\n\t\t\t\t\t\t+ actionSet.getPluginJAR());\n\t\t\t\t}\n\t\t\t\tShortcutsModel model = createModel(modelLabel,\n\t\t\t\t\t\tactionSet.getActionNames());\n\t\t\t\tmodels.addElement(model);\n\t\t\t\tallBindings.addAll(model.getBindings());\n\t\t\t}\n\t\t}\n\t\tif (models.size() > 1)\n\t\t\tmodels.addElement(new ShortcutsModel(\"All\", allBindings));\n\t\tCollections.sort(models,new StandardUtilities.StringCompare<ShortcutsModel>(true));\n\t\tShortcutsModel currentModel = models.elementAt(0);\n\t\tfilteredModel = new FilteredTableModel<ShortcutsModel>(currentModel)\n\t\t{\n\t\t\t@Override\n\t\t\tpublic String prepareFilter(String filter)\n\t\t\t{\n\t\t\t\treturn filter.toLowerCase();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean passFilter(int row, String filter)\n\t\t\t{\n\t\t\t\tString name = delegated.getBindingAt(row, 0).label.toLowerCase();\n\t\t\t\treturn name.contains(filter);\n\t\t\t}\n\t\t};\n\t} //}}}\n\n\t//{{{ createModel() method\n\tprivate ShortcutsModel createModel(String modelLabel, String[] actions)\n\t{\n\t\tList<GrabKeyDialog.KeyBinding[]> bindings = new Vector<GrabKeyDialog.KeyBinding[]>(actions.length);\n\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tString name = actions[i];\n\t\t\tEditAction ea = jEdit.getAction(name);\n\t\t\tString label = ea.getLabel();\n\t\t\t// Skip certain actions this way\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\n\t\t\tlabel = GUIUtilities.prettifyMenuLabel(label);\n\t\t\taddBindings(name,label,bindings);\n\t\t}\n\n\t\treturn new ShortcutsModel(modelLabel,bindings);\n\t} //}}}\n\n\t//{{{ addBindings() method\n\tprivate void addBindings(String name, String label, List<GrabKeyDialog.KeyBinding[]> bindings)\n\t{\n\t\tGrabKeyDialog.KeyBinding[] b = new GrabKeyDialog.KeyBinding[2];\n\n\t\tb[0] = createBinding(name,label,\n\t\t\tjEdit.getProperty(name + \".shortcut\"));\n\t\tb[1] = createBinding(name,label,\n\t\t\tjEdit.getProperty(name + \".shortcut2\"));\n\n\t\tbindings.add(b);\n\t} //}}}\n\n\t//{{{ createBinding() method\n\tprivate GrabKeyDialog.KeyBinding createBinding(String name,\n\t\tString label, String shortcut)\n\t{\n\t\tif(shortcut != null && shortcut.length() == 0)\n\t\t\tshortcut = null;\n\n\t\tGrabKeyDialog.KeyBinding binding\n\t\t\t= new GrabKeyDialog.KeyBinding(name,label,shortcut,false);\n\n\t\tallBindings.add(binding);\n\t\treturn binding;\n\t} //}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ HeaderMouseHandler class\n\tprivate class HeaderMouseHandler extends MouseAdapter\n\t{\n\t\t@Override\n\t\tpublic void mouseClicked(MouseEvent evt)\n\t\t{\n\t\t\tShortcutsModel shortcutsModel = filteredModel.getDelegated();\n\t\t\tswitch(keyTable.getTableHeader().columnAtPoint(evt.getPoint()))\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tshortcutsModel.sort(0);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tshortcutsModel.sort(1);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tshortcutsModel.sort(2);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsetFilter();\n\t\t}\n\t} //}}}\n\n\t//{{{ TableMouseHandler class\n\tprivate class TableMouseHandler extends MouseAdapter\n\t{\n\t\t@Override\n\t\tpublic void mouseClicked(MouseEvent evt)\n\t\t{\n\t\t\tint row = keyTable.getSelectedRow();\n\t\t\tint col = keyTable.getSelectedColumn();\n\t\t\tif(col != 0 && row != -1)\n\t\t\t{\n\t\t\t\t GrabKeyDialog gkd = new GrabKeyDialog(\n\t\t\t\t\tGUIUtilities.getParentDialog(\n\t\t\t\t\tShortcutsOptionPane.this),\n\t\t\t\t\tfilteredModel.getDelegated().getBindingAt(filteredModel.getTrueRow(row), col - 1),\n\t\t\t\t\tallBindings,null);\n\t\t\t\tif(gkd.isOK())\n\t\t\t\t\tfilteredModel.setValueAt(\n\t\t\t\t\t\tgkd.getShortcut(),row,col);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ ActionHandler class\n\tprivate class ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tShortcutsModel newModel\n\t\t\t\t= (ShortcutsModel)selectModel.getSelectedItem();\n\t\t\tif(filteredModel.getDelegated() != newModel)\n\t\t\t{\n\t\t\t\tjEdit.setIntegerProperty(\"options.shortcuts.select.index\", selectModel.getSelectedIndex());\n\t\t\t\tfilteredModel.setDelegated(newModel);\n\t\t\t\tsetFilter();\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ ShortcutsModel class\n\tprivate class ShortcutsModel extends AbstractTableModel\n\t{\n\t\tprivate List<GrabKeyDialog.KeyBinding[]> bindings;\n\t\tprivate String name;\n\n\t\tShortcutsModel(String name, List<GrabKeyDialog.KeyBinding[]> bindings)\n\t\t{\n\t\t\tthis.name = name;\n\t\t\tthis.bindings = bindings;\n\t\t\tsort(0);\n\t\t}\n\n\t\tpublic List<GrabKeyDialog.KeyBinding[]> getBindings()\n\t\t{\n\t\t\treturn bindings;\n\t\t}\n\n\t\tpublic void sort(int col)\n\t\t{\n\t\t\tCollections.sort(bindings,new KeyCompare(col));\n\t\t}\n\n\t\tpublic int getColumnCount()\n\t\t{\n\t\t\treturn 3;\n\t\t}\n\n\t\tpublic int getRowCount()\n\t\t{\n\t\t\treturn bindings.size();\n\t\t}\n\n\t\tpublic Object getValueAt(int row, int col)\n\t\t{\n\t\t\tswitch(col)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\treturn getBindingAt(row,0).label;\n\t\t\tcase 1:\n\t\t\t\treturn getBindingAt(row,0).shortcut;\n\t\t\tcase 2:\n\t\t\t\treturn getBindingAt(row,1).shortcut;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\t@Override\n\t\tpublic void setValueAt(Object value, int row, int col)\n\t\t{\n\t\t\tif(col == 0)\n\t\t\t\treturn;\n\n\t\t\tgetBindingAt(row,col-1).shortcut = (String)value;\n\n\t\t\t// redraw the whole table because a second shortcut\n\t\t\t// might have changed, too\n\t\t\tfireTableDataChanged();\n\t\t}\n\n\t\t@Override\n\t\tpublic String getColumnName(int index)\n\t\t{\n\t\t\tswitch(index)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\treturn jEdit.getProperty(\"options.shortcuts.name\");\n\t\t\tcase 1:\n\t\t\t\treturn jEdit.getProperty(\"options.shortcuts.shortcut1\");\n\t\t\tcase 2:\n\t\t\t\treturn jEdit.getProperty(\"options.shortcuts.shortcut2\");\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\tpublic void save()\n\t\t{\n\t\t\tfor (GrabKeyDialog.KeyBinding[] binding : bindings)\n\t\t\t{\n\t\t\t\tjEdit.setProperty(\n\t\t\t\t\tbinding[0].name + \".shortcut\",\n\t\t\t\t\tbinding[0].shortcut);\n\t\t\t\tjEdit.setProperty(\n\t\t\t\t\tbinding[1].name + \".shortcut2\",\n\t\t\t\t\tbinding[1].shortcut);\n\t\t\t}\n\t\t}\n\n\t\tpublic GrabKeyDialog.KeyBinding getBindingAt(int row, int nr)\n\t\t{\n\t\t\tGrabKeyDialog.KeyBinding[] binding = bindings.get(row);\n\t\t\treturn binding[nr];\n\t\t}\n\n\t\t@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn name;\n\t\t}\n\n\t\tprivate class KeyCompare implements Comparator<GrabKeyDialog.KeyBinding[]>\n\t\t{\n\t\t\tprivate int col;\n\n\t\t\tKeyCompare(int col)\n\t\t\t{\n\t\t\t\tthis.col = col;\n\t\t\t}\n\n\t\t\tpublic int compare(GrabKeyDialog.KeyBinding[] k1, GrabKeyDialog.KeyBinding[] k2)\n\t\t\t{\n\t\t\t\tString label1 = k1[0].label.toLowerCase();\n\t\t\t\tString label2 = k2[0].label.toLowerCase();\n\n\t\t\t\tif(col == 0)\n\t\t\t\t\treturn StandardUtilities.compareStrings(\n\t\t\t\t\t\tlabel1,label2,true);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString shortcut1, shortcut2;\n\t\t\t\t\tif(col == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tshortcut1 = k1[0].shortcut;\n\t\t\t\t\t\tshortcut2 = k2[0].shortcut;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tshortcut1 = k1[1].shortcut;\n\t\t\t\t\t\tshortcut2 = k2[1].shortcut;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(shortcut1 == null && shortcut2 != null)\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\telse if(shortcut2 == null && shortcut1 != null)\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\telse if(shortcut1 == null)\n\t\t\t\t\t\treturn StandardUtilities.compareStrings(label1,label2,true);\n\t\t\t\t\telse\n\t\t\t\t\t\treturn StandardUtilities.compareStrings(shortcut1,shortcut2,true);", "functions": [{"function_name": "_init", "code": "\t@Override\n\tprotected void _init()\n\t{\n\t\tallBindings = new Vector<KeyBinding>();\n\n\t\tsetLayout(new BorderLayout(12,12));\n\n\t\tinitModels();\n\n\t\tselectModel = new JComboBox(models);\n\t\tselectModel.addActionListener(new ActionHandler());\n\t\tselectModel.setToolTipText(jEdit.getProperty(\"options.shortcuts.select.tooltip\"));\n\t\tBox north = Box.createHorizontalBox();\n\t\tnorth.add(new JLabel(jEdit.getProperty(\n\t\t\t\"options.shortcuts.select.label\")));\n\t\tnorth.add(Box.createHorizontalStrut(6));\n\t\tnorth.add(selectModel);\n\n\t\tfilterTF = new JTextField(40);\n\t\tfilterTF.setToolTipText(jEdit.getProperty(\"options.shortcuts.filter.tooltip\"));\n\t\tfilterTF.getDocument().addDocumentListener(new DocumentListener()\n\t\t{\n\t\t\tpublic void changedUpdate(DocumentEvent e)\n\t\t\t{\n\t\t\t\tsetFilter();\n\t\t\t}\n\n\t\t\tpublic void insertUpdate(DocumentEvent e)\n\t\t\t{\n\t\t\t\tsetFilter();\n\t\t\t}\n\n\t\t\tpublic void removeUpdate(DocumentEvent e)\n\t\t\t{\n\t\t\t\tsetFilter();\n\t\t\t}\n\t\t});\n\t\tJButton clearButton = new JButton(jEdit.getProperty(\n\t\t\t\t\"options.shortcuts.clear.label\"));\n\t\tclearButton.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tfilterTF.setText(\"\");\n\t\t\t\tfilterTF.requestFocus();\n\t\t\t}\n\t\t});\n\n\t\tJPanel filterPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t\tfilterPanel.add(new JLabel(jEdit.getProperty(\"options.shortcuts.filter.label\")));\n\t\tfilterPanel.add(filterTF);\n\t\tfilterPanel.add(clearButton);\n\n\t\tkeyTable = new JTable(filteredModel);\n\t\tfilteredModel.setTable(keyTable);\n\t\tkeyTable.getTableHeader().setReorderingAllowed(false);\n\t\tkeyTable.getTableHeader().addMouseListener(new HeaderMouseHandler());\n\t\tkeyTable.addMouseListener(new TableMouseHandler());\n\t\tDimension d = keyTable.getPreferredSize();\n\t\td.height = Math.min(d.height,200);\n\t\tJScrollPane scroller = new JScrollPane(keyTable);\n\t\tscroller.setPreferredSize(d);\n\t\tJPanel tableFilterPanel = new JPanel(new BorderLayout());\n\t\ttableFilterPanel.add(BorderLayout.NORTH,filterPanel);\n\t\ttableFilterPanel.add(BorderLayout.CENTER,scroller);\n\n\t\tadd(BorderLayout.NORTH,north);\n\t\tadd(BorderLayout.CENTER,tableFilterPanel);\n\t\ttry\n\t\t{\n\t\t\tselectModel.setSelectedIndex(jEdit.getIntegerProperty(\"options.shortcuts.select.index\", 0));", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "PARAM", "LITERAL_ANCHOR", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [1, 36], [2, 37], [3, 38], [14, 39], [4, 40], [15, 41], [16, 42], [17, 43], [19, 44], [22, 45], [5, 46], [23, 47], [6, 48], [24, 49], [25, 50], [26, 51], [28, 52], [29, 53], [7, 54], [30, 55], [31, 56], [32, 57], [34, 58], [35, 59], [36, 60], [37, 61], [39, 62], [42, 63], [43, 64], [45, 65], [46, 66], [47, 67], [48, 68], [49, 69], [50, 70], [51, 71], [52, 72], [53, 73], [55, 74], [58, 75], [58, 76], [60, 77], [60, 78], [65, 79], [67, 80], [68, 81], [69, 82], [69, 83], [69, 84], [73, 85], [67, 86], [67, 87], [82, 88], [83, 89], [84, 90], [87, 91], [82, 92], [83, 93], [84, 94], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 1], [37, 2], [38, 3], [39, 14], [40, 4], [41, 15], [42, 16], [43, 17], [44, 19], [45, 22], [46, 5], [47, 23], [48, 6], [49, 24], [50, 25], [51, 26], [52, 28], [53, 29], [54, 7], [55, 30], [56, 31], [57, 32], [58, 34], [59, 35], [60, 36], [61, 37], [62, 39], [63, 42], [64, 43], [65, 45], [66, 46], [67, 47], [68, 48], [69, 49], [70, 50], [71, 51], [72, 52], [73, 53], [74, 55], [75, 58], [76, 58], [77, 60], [78, 60], [79, 65], [80, 67], [81, 68], [82, 69], [83, 69], [84, 69], [85, 73], [86, 67], [87, 67], [88, 82], [89, 83], [90, 84], [91, 87], [92, 82], [93, 83], [94, 84], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "_save", "code": "\t@Override\n\tprotected void _save()\n\t{\n\t\tif(keyTable.getCellEditor() != null)\n\t\t\tkeyTable.getCellEditor().stopCellEditing();\n\n\t\tfor (ShortcutsModel model : models)\n\t\t\tmodel.save();\n\n\t\tMacros.loadMacros();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [4, 7], [4, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 4], [8, 4], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setFilter", "code": "\tprivate void setFilter()\n\t{\n\t\tfilteredModel.setFilter(filterTF.getText());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "initModels", "code": "\tprivate void initModels()\n\t{\n\t\tList<KeyBinding[]> allBindings = new Vector<KeyBinding[]>();\n\t\tmodels = new Vector<ShortcutsModel>();\n\t\tActionSet[] actionSets = jEdit.getActionSets();\n\t\tfor(int i = 0; i < actionSets.length; i++)\n\t\t{\n\t\t\tActionSet actionSet = actionSets[i];\n\t\t\tif(actionSet.getActionCount() != 0)\n\t\t\t{\n\t\t\t\tString modelLabel = actionSet.getLabel();\n\t\t\t\tif(modelLabel == null)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,\"Empty action set: \"\n\t\t\t\t\t\t+ actionSet.getPluginJAR());\n\t\t\t\t}\n\t\t\t\tShortcutsModel model = createModel(modelLabel,\n\t\t\t\t\t\tactionSet.getActionNames());\n\t\t\t\tmodels.addElement(model);\n\t\t\t\tallBindings.addAll(model.getBindings());\n\t\t\t}\n\t\t}\n\t\tif (models.size() > 1)\n\t\t\tmodels.addElement(new ShortcutsModel(\"All\", allBindings));\n\t\tCollections.sort(models,new StandardUtilities.StringCompare<ShortcutsModel>(true));\n\t\tShortcutsModel currentModel = models.elementAt(0);\n\t\tfilteredModel = new FilteredTableModel<ShortcutsModel>(currentModel)\n\t\t{\n\t\t\t@Override\n\t\t\tpublic String prepareFilter(String filter)\n\t\t\t{\n\t\t\t\treturn filter.toLowerCase();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean passFilter(int row, String filter)\n\t\t\t{\n\t\t\t\tString name = delegated.getBindingAt(row, 0).label.toLowerCase();\n\t\t\t\treturn name.contains(filter);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "PARAM", "PARAM", "RETURN", "PARAM", "LITERAL_ANCHOR", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [0, 10], [6, 11], [1, 12], [7, 13], [2, 14], [8, 15], [8, 16], [3, 17], [3, 18], [4, 19], [10, 20], [5, 21], [11, 22], [11, 23], [12, 24], [13, 25], [14, 26], [17, 27], [3, 28], [22, 29], [22, 30], [22, 31], [22, 32], [23, 33], [23, 34], [26, 35], [17, 36], [17, 37], [17, 38], [27, 39], [27, 40], [29, 41], [33, 42], [17, 43], [17, 44], [37, 45], [30, 46], [43, 47], [36, 48], [45, 49], [38, 50], [46, 51], [46, 52], [48, 53], [37, 54], [54, 55], [55, 56], [55, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 0], [11, 6], [12, 1], [13, 7], [14, 2], [15, 8], [16, 8], [17, 3], [18, 3], [19, 4], [20, 10], [21, 5], [22, 11], [23, 11], [24, 12], [25, 13], [26, 14], [27, 17], [28, 3], [29, 22], [30, 22], [31, 22], [32, 22], [33, 23], [34, 23], [35, 26], [36, 17], [37, 17], [38, 17], [39, 27], [40, 27], [41, 29], [42, 33], [43, 17], [44, 17], [45, 37], [46, 30], [47, 43], [48, 36], [49, 45], [50, 38], [51, 46], [52, 46], [53, 48], [54, 37], [55, 54], [56, 55], [57, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "createModel", "code": "\tprivate ShortcutsModel createModel(String modelLabel, String[] actions)\n\t{\n\t\tList<GrabKeyDialog.KeyBinding[]> bindings = new Vector<GrabKeyDialog.KeyBinding[]>(actions.length);\n\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tString name = actions[i];\n\t\t\tEditAction ea = jEdit.getAction(name);\n\t\t\tString label = ea.getLabel();\n\t\t\t// Skip certain actions this way\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\n\t\t\tlabel = GUIUtilities.prettifyMenuLabel(label);\n\t\t\taddBindings(name,label,bindings);\n\t\t}\n\n\t\treturn new ShortcutsModel(modelLabel,bindings);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [3, 12], [2, 13], [2, 14], [8, 15], [8, 16], [2, 17], [14, 18], [16, 19], [9, 20], [10, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 3], [13, 2], [14, 2], [15, 8], [16, 8], [17, 2], [18, 14], [19, 16], [20, 9], [21, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "addBindings", "code": "\tprivate void addBindings(String name, String label, List<GrabKeyDialog.KeyBinding[]> bindings)\n\t{\n\t\tGrabKeyDialog.KeyBinding[] b = new GrabKeyDialog.KeyBinding[2];\n\n\t\tb[0] = createBinding(name,label,\n\t\t\tjEdit.getProperty(name + \".shortcut\"));\n\t\tb[1] = createBinding(name,label,\n\t\t\tjEdit.getProperty(name + \".shortcut2\"));\n\n\t\tbindings.add(b);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [7, 9], [8, 10], [9, 11], [1, 12], [10, 13], [6, 14], [11, 15], [7, 16], [13, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 7], [10, 8], [11, 9], [12, 1], [13, 10], [14, 6], [15, 11], [16, 7], [17, 13], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "createBinding", "code": "\tprivate GrabKeyDialog.KeyBinding createBinding(String name,\n\t\tString label, String shortcut)\n\t{\n\t\tif(shortcut != null && shortcut.length() == 0)\n\t\t\tshortcut = null;\n\n\t\tGrabKeyDialog.KeyBinding binding\n\t\t\t= new GrabKeyDialog.KeyBinding(name,label,shortcut,false);\n\n\t\tallBindings.add(binding);\n\t\treturn binding;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [2, 9], [3, 10], [8, 11], [8, 12], [9, 13], [10, 14], [11, 15], [11, 16], [12, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 2], [10, 3], [11, 8], [12, 8], [13, 9], [14, 10], [15, 11], [16, 11], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "ShortcutsOptionPane", "code": "\tpublic ShortcutsOptionPane()\n\t{\n\t\tsuper(\"shortcuts\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6375", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/serialize/WriterToUTF8Buffered.java", "language": "java", "name": "org.apache.xalan.serialize.WriterToUTF8Buffered", "code": "public final class WriterToUTF8Buffered extends Writer\n{\n\n  /** The byte stream to write to. (sc & sb remove final to compile in JDK 1.1.8) */\n  private OutputStream m_os;\n\n  /**\n   * The internal buffer where data is stored. \n   * (sc & sb remove final to compile in JDK 1.1.8)\n   */\n  private byte buf[];\n\n  /**\n   * The number of valid bytes in the buffer. This value is always\n   * in the range <tt>0</tt> through <tt>buf.length</tt>; elements\n   * <tt>buf[0]</tt> through <tt>buf[count-1]</tt> contain valid\n   * byte data.\n   */\n  private int count;\n\n  /**\n   * Create an buffered UTF-8 writer.\n   *\n   *\n   * @param   out    the underlying output stream.\n   *\n   * @throws UnsupportedEncodingException\n   */\n  public WriterToUTF8Buffered(OutputStream out)\n          throws UnsupportedEncodingException\n  {\n    this(out, 8 * 1024);\n  }\n\n  /**\n   * Create an buffered UTF-8 writer to write data to the\n   * specified underlying output stream with the specified buffer\n   * size.\n   *\n   * @param   out    the underlying output stream.\n   * @param   size   the buffer size.\n   * @exception IllegalArgumentException if size <= 0.\n   */\n  public WriterToUTF8Buffered(final OutputStream out, final int size)\n  {\n\n    m_os = out;\n\n    if (size <= 0)\n    {\n    }\n\n    buf = new byte[size];\n    count = 0;\n  }\n\n  /**\n   * Write a single character.  The character to be written is contained in\n   * the 16 low-order bits of the given integer value; the 16 high-order bits\n   * are ignored.\n   *\n   * <p> Subclasses that intend to support efficient single-character output\n   * should override this method.\n   *\n   * @param c  int specifying a character to be written.\n   * @exception  IOException  If an I/O error occurs\n   */\n  public void write(final int c) throws IOException\n  {\n    \n    if (c < 0x80)\n    {\n      if (count >= buf.length)\n        flushBuffer();\n      buf[count++] = (byte) (c);\n    }\n    else if (c < 0x800)\n    {\n      if (count+1 >= buf.length)\n        flushBuffer();\n      buf[count++] = (byte) (0xc0 + (c >> 6));\n      buf[count++] = (byte) (0x80 + (c & 0x3f));\n    }\n    else\n    {\n      if (count+2 >= buf.length)\n        flushBuffer();\n      buf[count++] = (byte) (0xe0 + (c >> 12));\n      buf[count++] = (byte) (0x80 + ((c >> 6) & 0x3f));\n      buf[count++] = (byte) (0x80 + (c & 0x3f));\n    }\n  }\n\n  /**\n   * Write a portion of an array of characters.\n   *\n   * @param  chars  Array of characters\n   * @param  start   Offset from which to start writing characters\n   * @param  length   Number of characters to write\n   *\n   * @exception  IOException  If an I/O error occurs\n   *\n   * @throws java.io.IOException\n   */\n  private final void writeDirect(\n          final char chars[], final int start, final int length)\n            throws java.io.IOException\n  {\n\n    final OutputStream os = m_os;\n\n    int n = length+start;\n    for (int i = start; i < n; i++)\n    {\n      final char c = chars[i];\n\n      if (c < 0x80)\n        os.write(c);\n      else if (c < 0x800)\n      {\n        os.write(0xc0 + (c >> 6));\n        os.write(0x80 + (c & 0x3f));\n      }\n      else\n      {\n        os.write(0xe0 + (c >> 12));\n        os.write(0x80 + ((c >> 6) & 0x3f));\n        os.write(0x80 + (c & 0x3f));\n      }\n    }\n  }\n\n  /**\n   * Write a string.\n   *\n   * @param  s  String to be written\n   *\n   * @exception  IOException  If an I/O error occurs\n   */\n  private final void writeDirect(final String s) throws IOException\n  {\n\n    final int n = s.length();\n    final OutputStream os = m_os;\n\n    for (int i = 0; i < n; i++)\n    {\n      final char c = s.charAt(i);\n\n      if (c < 0x80)\n        os.write(c);\n      else if (c < 0x800)\n      {\n        os.write(0xc0 + (c >> 6));\n        os.write(0x80 + (c & 0x3f));\n      }\n      else\n      {\n        os.write(0xe0 + (c >> 12));\n        os.write(0x80 + ((c >> 6) & 0x3f));\n        os.write(0x80 + (c & 0x3f));\n      }\n    }\n  }\n\n  /**\n   * Write a portion of an array of characters.\n   *\n   * @param  chars  Array of characters\n   * @param  start   Offset from which to start writing characters\n   * @param  length   Number of characters to write\n   *\n   * @exception  IOException  If an I/O error occurs\n   *\n   * @throws java.io.IOException\n   */\n  public void write(final char chars[], final int start, final int length)\n          throws java.io.IOException\n  {\n\n\n    int lengthx3 = (length << 1) + length;\n\n    if (lengthx3 >= buf.length)\n    {\n\n      /* If the request length exceeds the size of the output buffer,\n         flush the output buffer and then write the data directly.\n         In this way buffered streams will cascade harmlessly. */\n      flushBuffer();\n      writeDirect(chars, start, length);\n\n      return;\n    }\n\n    if (lengthx3 > buf.length - count)\n    {\n      flushBuffer();\n    }\n\n    final OutputStream os = m_os;\n    int n = length+start;\n    for (int i = start; i < n; i++)\n    {\n      final char c = chars[i];\n\n      if (c < 0x80)\n        buf[count++] = (byte) (c);\n      else if (c < 0x800)\n      {\n        buf[count++] = (byte) (0xc0 + (c >> 6));\n        buf[count++] = (byte) (0x80 + (c & 0x3f));\n      }\n      else\n      {\n        buf[count++] = (byte) (0xe0 + (c >> 12));\n        buf[count++] = (byte) (0x80 + ((c >> 6) & 0x3f));\n        buf[count++] = (byte) (0x80 + (c & 0x3f));\n      }\n    }\n\n  }\n\n  /**\n   * Write a string.\n   *\n   * @param  s  String to be written\n   *\n   * @exception  IOException  If an I/O error occurs\n   */\n  public void write(final String s) throws IOException\n  {\n\n    final int length = s.length();\n\n\n    int lengthx3 = (length << 1) + length;\n\n    if (lengthx3 >= buf.length)\n    {\n\n      /* If the request length exceeds the size of the output buffer,\n         flush the output buffer and then write the data directly.\n         In this way buffered streams will cascade harmlessly. */\n      flushBuffer();\n      writeDirect(s);\n\n      return;\n    }\n\n    if (lengthx3 > buf.length - count)\n    {\n      flushBuffer();\n    }\n\n    final OutputStream os = m_os;\n\n    for (int i = 0; i < length; i++)\n    {\n      final char c = s.charAt(i);\n\n      if (c < 0x80)\n        buf[count++] = (byte) (c);\n      else if (c < 0x800)\n      {\n        buf[count++] = (byte) (0xc0 + (c >> 6));\n        buf[count++] = (byte) (0x80 + (c & 0x3f));\n      }\n      else\n      {\n        buf[count++] = (byte) (0xe0 + (c >> 12));\n        buf[count++] = (byte) (0x80 + ((c >> 6) & 0x3f));\n        buf[count++] = (byte) (0x80 + (c & 0x3f));\n      }\n    }\n\n  }\n\n  /**\n   * Flush the internal buffer\n   *\n   * @throws IOException\n   */\n  public void flushBuffer() throws IOException\n  {\n\n    if (count > 0)\n    {\n      m_os.write(buf, 0, count);\n\n      count = 0;\n    }\n  }\n\n  /**\n   * Flush the stream.  If the stream has saved any characters from the\n   * various write() methods in a buffer, write them immediately to their\n   * intended destination.  Then, if that destination is another character or\n   * byte stream, flush it.  Thus one flush() invocation will flush all the\n   * buffers in a chain of Writers and OutputStreams.\n   *\n   * @exception  IOException  If an I/O error occurs\n   *\n   * @throws java.io.IOException\n   */\n  public void flush() throws java.io.IOException\n  {\n    flushBuffer();\n    m_os.flush();\n  }\n\n  /**\n   * Close the stream, flushing it first.  Once a stream has been closed,\n   * further write() or flush() invocations will cause an IOException to be\n   * thrown.  Closing a previously-closed stream, however, has no effect.\n   *\n   * @exception  IOException  If an I/O error occurs\n   *\n   * @throws java.io.IOException\n   */\n  public void close() throws java.io.IOException\n  {\n    flushBuffer();\n    m_os.close();\n  }\n\n  /**\n   * Get the output stream where the events will be serialized to.\n   *\n   * @return reference to the result stream, or null of only a writer was\n   * set.\n   */\n  public OutputStream getOutputStream()\n  {\n    return m_os;", "functions": [{"function_name": "write", "code": "  public void write(final int c) throws IOException\n  {\n    \n    if (c < 0x80)\n    {\n      if (count >= buf.length)\n        flushBuffer();\n      buf[count++] = (byte) (c);\n    }\n    else if (c < 0x800)\n    {\n      if (count+1 >= buf.length)\n        flushBuffer();\n      buf[count++] = (byte) (0xc0 + (c >> 6));\n      buf[count++] = (byte) (0x80 + (c & 0x3f));\n    }\n    else\n    {\n      if (count+2 >= buf.length)\n        flushBuffer();\n      buf[count++] = (byte) (0xe0 + (c >> 12));\n      buf[count++] = (byte) (0x80 + ((c >> 6) & 0x3f));\n      buf[count++] = (byte) (0x80 + (c & 0x3f));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [4, 7], [3, 8], [3, 9], [5, 10], [1, 11], [6, 12], [3, 13], [3, 14], [3, 15], [8, 16], [3, 17], [3, 18], [9, 19], [6, 20], [8, 21], [16, 22], [9, 23], [19, 24], [13, 25], [14, 26], [15, 27], [22, 28], [17, 29], [18, 30], [24, 31], [25, 32], [25, 33], [26, 34], [26, 35], [27, 36], [27, 37], [29, 38], [29, 39], [30, 40], [30, 41], [32, 42], [34, 43], [34, 44], [36, 45], [38, 46], [40, 47], [44, 48], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 4], [8, 3], [9, 3], [10, 5], [11, 1], [12, 6], [13, 3], [14, 3], [15, 3], [16, 8], [17, 3], [18, 3], [19, 9], [20, 6], [21, 8], [22, 16], [23, 9], [24, 19], [25, 13], [26, 14], [27, 15], [28, 22], [29, 17], [30, 18], [31, 24], [32, 25], [33, 25], [34, 26], [35, 26], [36, 27], [37, 27], [38, 29], [39, 29], [40, 30], [41, 30], [42, 32], [43, 34], [44, 34], [45, 36], [46, 38], [47, 40], [48, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "writeDirect", "code": "  private final void writeDirect(\n          final char chars[], final int start, final int length)\n            throws java.io.IOException\n  {\n\n    final OutputStream os = m_os;\n\n    int n = length+start;\n    for (int i = start; i < n; i++)\n    {\n      final char c = chars[i];\n\n      if (c < 0x80)\n        os.write(c);\n      else if (c < 0x800)\n      {\n        os.write(0xc0 + (c >> 6));\n        os.write(0x80 + (c & 0x3f));\n      }\n      else\n      {\n        os.write(0xe0 + (c >> 12));\n        os.write(0x80 + ((c >> 6) & 0x3f));\n        os.write(0x80 + (c & 0x3f));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [8, 11], [8, 12], [11, 13], [8, 14], [12, 15], [13, 16], [11, 17], [11, 18], [11, 19], [11, 20], [11, 21], [17, 22], [18, 23], [19, 24], [20, 25], [21, 26], [22, 27], [22, 28], [23, 29], [23, 30], [24, 31], [24, 32], [25, 33], [25, 34], [26, 35], [26, 36], [27, 37], [29, 38], [29, 39], [31, 40], [33, 41], [35, 42], [39, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 8], [12, 8], [13, 11], [14, 8], [15, 12], [16, 13], [17, 11], [18, 11], [19, 11], [20, 11], [21, 11], [22, 17], [23, 18], [24, 19], [25, 20], [26, 21], [27, 22], [28, 22], [29, 23], [30, 23], [31, 24], [32, 24], [33, 25], [34, 25], [35, 26], [36, 26], [37, 27], [38, 29], [39, 29], [40, 31], [41, 33], [42, 35], [43, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "writeDirect", "code": "  private final void writeDirect(final String s) throws IOException\n  {\n\n    final int n = s.length();\n    final OutputStream os = m_os;\n\n    for (int i = 0; i < n; i++)\n    {\n      final char c = s.charAt(i);\n\n      if (c < 0x80)\n        os.write(c);\n      else if (c < 0x800)\n      {\n        os.write(0xc0 + (c >> 6));\n        os.write(0x80 + (c & 0x3f));\n      }\n      else\n      {\n        os.write(0xe0 + (c >> 12));\n        os.write(0x80 + ((c >> 6) & 0x3f));\n        os.write(0x80 + (c & 0x3f));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [3, 8], [6, 9], [6, 10], [1, 11], [9, 12], [6, 13], [10, 14], [7, 15], [12, 16], [9, 17], [9, 18], [9, 19], [9, 20], [9, 21], [17, 22], [18, 23], [19, 24], [20, 25], [21, 26], [22, 27], [22, 28], [23, 29], [23, 30], [24, 31], [24, 32], [25, 33], [25, 34], [26, 35], [26, 36], [27, 37], [29, 38], [29, 39], [31, 40], [33, 41], [35, 42], [39, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 3], [9, 6], [10, 6], [11, 1], [12, 9], [13, 6], [14, 10], [15, 7], [16, 12], [17, 9], [18, 9], [19, 9], [20, 9], [21, 9], [22, 17], [23, 18], [24, 19], [25, 20], [26, 21], [27, 22], [28, 22], [29, 23], [30, 23], [31, 24], [32, 24], [33, 25], [34, 25], [35, 26], [36, 26], [37, 27], [38, 29], [39, 29], [40, 31], [41, 33], [42, 35], [43, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "write", "code": "  public void write(final char chars[], final int start, final int length)\n          throws java.io.IOException\n  {\n\n\n    int lengthx3 = (length << 1) + length;\n\n    if (lengthx3 >= buf.length)\n    {\n\n      /* If the request length exceeds the size of the output buffer,\n         flush the output buffer and then write the data directly.\n         In this way buffered streams will cascade harmlessly. */\n      flushBuffer();\n      writeDirect(chars, start, length);\n\n      return;\n    }\n\n    if (lengthx3 > buf.length - count)\n    {\n      flushBuffer();\n    }\n\n    final OutputStream os = m_os;\n    int n = length+start;\n    for (int i = start; i < n; i++)\n    {\n      final char c = chars[i];\n\n      if (c < 0x80)\n        buf[count++] = (byte) (c);\n      else if (c < 0x800)\n      {\n        buf[count++] = (byte) (0xc0 + (c >> 6));\n        buf[count++] = (byte) (0x80 + (c & 0x3f));\n      }\n      else\n      {\n        buf[count++] = (byte) (0xe0 + (c >> 12));\n        buf[count++] = (byte) (0x80 + ((c >> 6) & 0x3f));\n        buf[count++] = (byte) (0x80 + (c & 0x3f));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [4, 11], [5, 12], [1, 13], [1, 14], [2, 15], [11, 16], [5, 17], [6, 18], [13, 19], [13, 20], [4, 21], [5, 22], [5, 23], [18, 24], [19, 25], [13, 26], [20, 27], [24, 28], [25, 29], [19, 30], [19, 31], [19, 32], [19, 33], [19, 34], [30, 35], [31, 36], [32, 37], [33, 38], [34, 39], [35, 40], [35, 41], [36, 42], [36, 43], [37, 44], [37, 45], [38, 46], [38, 47], [39, 48], [39, 49], [40, 50], [42, 51], [42, 52], [44, 53], [46, 54], [48, 55], [52, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 4], [12, 5], [13, 1], [14, 1], [15, 2], [16, 11], [17, 5], [18, 6], [19, 13], [20, 13], [21, 4], [22, 5], [23, 5], [24, 18], [25, 19], [26, 13], [27, 20], [28, 24], [29, 25], [30, 19], [31, 19], [32, 19], [33, 19], [34, 19], [35, 30], [36, 31], [37, 32], [38, 33], [39, 34], [40, 35], [41, 35], [42, 36], [43, 36], [44, 37], [45, 37], [46, 38], [47, 38], [48, 39], [49, 39], [50, 40], [51, 42], [52, 42], [53, 44], [54, 46], [55, 48], [56, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "write", "code": "  public void write(final String s) throws IOException\n  {\n\n    final int length = s.length();\n\n\n    int lengthx3 = (length << 1) + length;\n\n    if (lengthx3 >= buf.length)\n    {\n\n      /* If the request length exceeds the size of the output buffer,\n         flush the output buffer and then write the data directly.\n         In this way buffered streams will cascade harmlessly. */\n      flushBuffer();\n      writeDirect(s);\n\n      return;\n    }\n\n    if (lengthx3 > buf.length - count)\n    {\n      flushBuffer();\n    }\n\n    final OutputStream os = m_os;\n\n    for (int i = 0; i < length; i++)\n    {\n      final char c = s.charAt(i);\n\n      if (c < 0x80)\n        buf[count++] = (byte) (c);\n      else if (c < 0x800)\n      {\n        buf[count++] = (byte) (0xc0 + (c >> 6));\n        buf[count++] = (byte) (0x80 + (c & 0x3f));\n      }\n      else\n      {\n        buf[count++] = (byte) (0xe0 + (c >> 12));\n        buf[count++] = (byte) (0x80 + ((c >> 6) & 0x3f));\n        buf[count++] = (byte) (0x80 + (c & 0x3f));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [4, 10], [1, 11], [1, 12], [9, 13], [4, 14], [5, 15], [6, 16], [11, 17], [11, 18], [1, 19], [3, 20], [4, 21], [4, 22], [15, 23], [17, 24], [11, 25], [18, 26], [12, 27], [23, 28], [24, 29], [17, 30], [17, 31], [17, 32], [17, 33], [17, 34], [30, 35], [31, 36], [32, 37], [33, 38], [34, 39], [35, 40], [35, 41], [36, 42], [36, 43], [37, 44], [37, 45], [38, 46], [38, 47], [39, 48], [39, 49], [40, 50], [42, 51], [42, 52], [44, 53], [46, 54], [48, 55], [52, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 4], [11, 1], [12, 1], [13, 9], [14, 4], [15, 5], [16, 6], [17, 11], [18, 11], [19, 1], [20, 3], [21, 4], [22, 4], [23, 15], [24, 17], [25, 11], [26, 18], [27, 12], [28, 23], [29, 24], [30, 17], [31, 17], [32, 17], [33, 17], [34, 17], [35, 30], [36, 31], [37, 32], [38, 33], [39, 34], [40, 35], [41, 35], [42, 36], [43, 36], [44, 37], [45, 37], [46, 38], [47, 38], [48, 39], [49, 39], [50, 40], [51, 42], [52, 42], [53, 44], [54, 46], [55, 48], [56, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "flushBuffer", "code": "  public void flushBuffer() throws IOException\n  {\n\n    if (count > 0)\n    {\n      m_os.write(buf, 0, count);\n\n      count = 0;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "flush", "code": "  public void flush() throws java.io.IOException\n  {\n    flushBuffer();\n    m_os.flush();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "close", "code": "  public void close() throws java.io.IOException\n  {\n    flushBuffer();\n    m_os.close();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputStream", "code": "  public OutputStream getOutputStream()\n  {\n    return m_os;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "WriterToUTF8Buffered", "code": "  public WriterToUTF8Buffered(OutputStream out)\n          throws UnsupportedEncodingException\n  {\n    this(out, 8 * 1024);", "ast_nodes": ["FUNC_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "WriterToUTF8Buffered", "code": "  public WriterToUTF8Buffered(final OutputStream out, final int size)\n  {\n\n    m_os = out;\n\n    if (size <= 0)\n    {\n    }\n\n    buf = new byte[size];\n    count = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [4, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 4], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "ant-1.5-338", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/email/EmailAddress.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.email.EmailAddress", "code": "public class EmailAddress {\n    private String name;\n    private String address;\n\n\n    /** Creates an empty email address  */\n    public EmailAddress() {\n    }\n\n\n    /**\n     * Creates a new email address based on the given string\n     *\n     * @param address the email address\n     */\n    public EmailAddress(String address) {\n        this.address = address;\n    }\n\n\n    /**\n     * Sets the personal / display name of the address\n     *\n     * @param name the display name\n     */\n    public void setName(String name) {\n        this.name = name;\n    }\n\n\n    /**\n     * Sets the email address\n     *\n     * @param address the actual email address\n     */\n    public void setAddress(String address) {\n        this.address = address;\n    }\n\n\n    /**\n     * Constructs a string \"name &lt;address&gt;\" or \"address\"\n     *\n     * @return a string representation of the address\n     */\n    public String toString() {\n        if (name == null) {\n            return address;\n        } else {\n            return name + \" <\" + address + \">\";\n        }\n    }\n\n\n    /**\n     * Returns the address\n     *\n     * @return the address part\n     */\n    public String getAddress() {\n        return address;\n    }\n\n\n    /**\n     * Returns the display name\n     *\n     * @return the display name part\n     */\n    public String getName() {\n        return name;", "functions": [{"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAddress", "code": "    public void setAddress(String address) {\n        this.address = address;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n        if (name == null) {\n            return address;\n        } else {\n            return name + \" <\" + address + \">\";", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [6, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 6], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getAddress", "code": "    public String getAddress() {\n        return address;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "EmailAddress", "code": "    public EmailAddress() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "EmailAddress", "code": "    public EmailAddress(String address) {\n        this.address = address;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8441", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.TransformerFactoryImpl", "code": "public class TransformerFactoryImpl\n    extends SAXTransformerFactory implements SourceLoader, ErrorListener \n{\n    public final static String TRANSLET_NAME = \"translet-name\";\n    public final static String DESTINATION_DIRECTORY = \"destination-directory\";\n    public final static String PACKAGE_NAME = \"package-name\";\n    public final static String JAR_NAME = \"jar-name\";\n    public final static String GENERATE_TRANSLET = \"generate-translet\";\n    public final static String AUTO_TRANSLET = \"auto-translet\";\n    public final static String USE_CLASSPATH = \"use-classpath\";\n    public final static String DEBUG = \"debug\";\n    public final static String ENABLE_INLINING = \"enable-inlining\";\n    public final static String INDENT_NUMBER = \"indent-number\";\n        \n    /**\n     * This error listener is used only for this factory and is not passed to\n     * the Templates or Transformer objects that we create.\n     */\n    private ErrorListener _errorListener = this; \n\n    /**\n     * This URIResolver is passed to all created Templates and Transformers\n     */\n    private URIResolver _uriResolver = null;\n\n    /** \n     * As Gregor Samsa awoke one morning from uneasy dreams he found himself\n     * transformed in his bed into a gigantic insect. He was lying on his hard,\n     * as it were armour plated, back, and if he lifted his head a little he\n     * could see his big, brown belly divided into stiff, arched segments, on\n     * top of which the bed quilt could hardly keep in position and was about\n     * to slide off completely. His numerous legs, which were pitifully thin\n     * compared to the rest of his bulk, waved helplessly before his eyes.\n     * \"What has happened to me?\", he thought. It was no dream....\n     */\n    protected final static String DEFAULT_TRANSLET_NAME = \"GregorSamsa\";\n    \n    /**\n     * The class name of the translet\n     */\n    private String _transletName = DEFAULT_TRANSLET_NAME;\n    \n    /**\n     * The destination directory for the translet\n     */\n    private String _destinationDirectory = null;\n    \n    /**\n     * The package name prefix for all generated translet classes\n     */\n    private String _packageName = null;\n    \n    /**\n     * The jar file name which the translet classes are packaged into\n     */\n    private String _jarFileName = null;\n\n    /**\n     * This Hashtable is used to store parameters for locating\n     * <?xml-stylesheet ...?> processing instructions in XML docs.\n     */\n    private Hashtable _piParams = null;\n\n    /**\n     * The above hashtable stores objects of this class.\n     */\n    private static class PIParamWrapper {\n\tpublic String _media = null;\n\tpublic String _title = null;\n\tpublic String _charset = null;\n\t\n\tpublic PIParamWrapper(String media, String title, String charset) {\n\t    _media = media;\n\t    _title = title;\n\t    _charset = charset;\n\t}\n    }\n\n    /**\n     * Set to <code>true</code> when debugging is enabled.\n     */\n    private boolean _debug = false;\n\n    /**\n     * Set to <code>true</code> when templates are inlined.\n     */\n    private boolean _enableInlining = false;\n    \n    /**\n     * Set to <code>true</code> when we want to generate \n     * translet classes from the stylesheet.\n     */\n    private boolean _generateTranslet = false;\n    \n    /**\n     * If this is set to <code>true</code>, we attempt to use translet classes\n     * for transformation if possible without compiling the stylesheet. The\n     * translet class is only used if its timestamp is newer than the timestamp\n     * of the stylesheet.\n     */\n    private boolean _autoTranslet = false;\n    \n    /**\n     * If this is set to <code>true</code>, we attempt to load the translet\n     * from the CLASSPATH.\n     */\n    private boolean _useClasspath = false;\n\n    /**\n     * Number of indent spaces when indentation is turned on.\n     */\n    private int _indentNumber = -1;\n\n    /**\n     * The provider of the XSLTC DTM Manager service.  This is fixed for any\n     * instance of this class.  In order to change service providers, a new\n     * XSLTC <code>TransformerFactory</code> must be instantiated.\n     * @see XSLTCDTMManager#getDTMManagerClass()\n     */\n    private Class m_DTMManagerClass;\n\n    /**\n     * <p>State of secure processing feature.</p>\n     */\n    private boolean _isSecureProcessing = false;\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     */\n    public TransformerFactoryImpl() {\n        m_DTMManagerClass = XSLTCDTMManager.getDTMManagerClass();\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Set the error event listener for the TransformerFactory, which is used\n     * for the processing of transformation instructions, and not for the\n     * transformation itself.\n     *\n     * @param listener The error listener to use with the TransformerFactory\n     * @throws IllegalArgumentException\n     */\n    public void setErrorListener(ErrorListener listener) \n\tthrows IllegalArgumentException \n    {\n\tif (listener == null) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.ERROR_LISTENER_NULL_ERR,\n\t\t\t\t\t\"TransformerFactory\");\n            throw new IllegalArgumentException(err.toString());\n\t}\n\t_errorListener = listener;\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Get the error event handler for the TransformerFactory.\n     *\n     * @return The error listener used with the TransformerFactory\n     */\n    public ErrorListener getErrorListener() { \n\treturn _errorListener;\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Returns the value set for a TransformerFactory attribute\n     *\n     * @param name The attribute name\n     * @return An object representing the attribute value\n     * @throws IllegalArgumentException\n     */\n    public Object getAttribute(String name) \n\tthrows IllegalArgumentException \n    { \n\tif (name.equals(TRANSLET_NAME)) {\n\t    return _transletName;\n\t}\n\telse if (name.equals(GENERATE_TRANSLET)) {\n\t    return new Boolean(_generateTranslet);\n\t}\n\telse if (name.equals(AUTO_TRANSLET)) {\n\t    return new Boolean(_autoTranslet);\n\t}\n\n\tErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);\n\tthrow new IllegalArgumentException(err.toString());\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Sets the value for a TransformerFactory attribute.\n     *\n     * @param name The attribute name\n     * @param value An object representing the attribute value\n     * @throws IllegalArgumentException\n     */\n    public void setAttribute(String name, Object value) \n\tthrows IllegalArgumentException \n    { \n\tif (name.equals(TRANSLET_NAME) && value instanceof String) {\n\t    _transletName = (String) value;\t      \n\t    return;\n\t}\n\telse if (name.equals(DESTINATION_DIRECTORY) && value instanceof String) {\n\t    _destinationDirectory = (String) value;\n\t    return;\n\t}\n\telse if (name.equals(PACKAGE_NAME) && value instanceof String) {\n\t    _packageName = (String) value;\n\t    return;\n\t}\n\telse if (name.equals(JAR_NAME) && value instanceof String) {\n\t    _jarFileName = (String) value;\n\t    return;\n\t}\n\telse if (name.equals(GENERATE_TRANSLET)) {\n\t    if (value instanceof Boolean) {\n\t\t_generateTranslet = ((Boolean) value).booleanValue();\n\t\treturn;\n\t    }\n\t    else if (value instanceof String) {\n\t\t_generateTranslet = ((String) value).equalsIgnoreCase(\"true\");\n\t\treturn;\n\t    }\n\t}\n\telse if (name.equals(AUTO_TRANSLET)) {\n\t    if (value instanceof Boolean) {\n\t\t_autoTranslet = ((Boolean) value).booleanValue();\n\t\treturn;\n\t    }\n\t    else if (value instanceof String) {\n\t\t_autoTranslet = ((String) value).equalsIgnoreCase(\"true\");\n\t\treturn;\n\t    }\n\t}\n\telse if (name.equals(USE_CLASSPATH)) {\n\t    if (value instanceof Boolean) {\n\t\t_useClasspath = ((Boolean) value).booleanValue();\n\t\treturn;\n\t    }\n\t    else if (value instanceof String) {\n\t\t_useClasspath = ((String) value).equalsIgnoreCase(\"true\");\n\t\treturn;\n\t    }\t    \n\t}\n\telse if (name.equals(DEBUG)) {\n\t    if (value instanceof Boolean) {\n\t\t_debug = ((Boolean) value).booleanValue();\n\t\treturn;\n\t    }\n\t    else if (value instanceof String) {\n\t\t_debug = ((String) value).equalsIgnoreCase(\"true\");\n\t\treturn;\n\t    }\n\t}\n\telse if (name.equals(ENABLE_INLINING)) {\n\t    if (value instanceof Boolean) {\n\t\t_enableInlining = ((Boolean) value).booleanValue();\n\t\treturn;\n\t    }\n\t    else if (value instanceof String) {\n\t\t_enableInlining = ((String) value).equalsIgnoreCase(\"true\");\n\t\treturn;\n\t    }\n\t}\n\telse if (name.equals(INDENT_NUMBER)) {\n\t    if (value instanceof String) {\n\t\ttry {\n\t\t    _indentNumber = Integer.parseInt((String) value);\n\t\t    return;\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t}\n\t    }\n\t    else if (value instanceof Integer) {\n\t\t_indentNumber = ((Integer) value).intValue();\n\t\treturn;\n\t    }\n\t}\n\n\tfinal ErrorMsg err \n\t    = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);\n\tthrow new IllegalArgumentException(err.toString());\n    }\n\n    /**\n     * <p>Set a feature for this <code>TransformerFactory</code> and <code>Transformer</code>s\n     * or <code>Template</code>s created by this factory.</p>\n     * \n     * <p>\n     * Feature names are fully qualified {@link java.net.URI}s.\n     * Implementations may define their own features.\n     * An {@link TransformerConfigurationException} is thrown if this <code>TransformerFactory</code> or the\n     * <code>Transformer</code>s or <code>Template</code>s it creates cannot support the feature.\n     * It is possible for an <code>TransformerFactory</code> to expose a feature value but be unable to change its state.\n     * </p>\n     * \n     * <p>See {@link javax.xml.transform.TransformerFactory} for full documentation of specific features.</p>\n     * \n     * @param name Feature name.\n     * @param value Is feature state <code>true</code> or <code>false</code>.\n     *  \n     * @throws TransformerConfigurationException if this <code>TransformerFactory</code>\n     *   or the <code>Transformer</code>s or <code>Template</code>s it creates cannot support this feature.\n     * @throws NullPointerException If the <code>name</code> parameter is null.\n     */\n    public void setFeature(String name, boolean value)\n        throws TransformerConfigurationException {\n\n\tif (name == null) {\n            ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_SET_FEATURE_NULL_NAME);\n    \t    throw new NullPointerException(err.toString());\n\t}\t\t\n\telse if (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {\n\t    _isSecureProcessing = value;\t\t\n\t    return;\n\t}\n\telse {\t\n            ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_UNSUPPORTED_FEATURE, name);\n            throw new TransformerConfigurationException(err.toString());\n        }\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Look up the value of a feature (to see if it is supported).\n     * This method must be updated as the various methods and features of this\n     * class are implemented.\n     *\n     * @param name The feature name\n     * @return 'true' if feature is supported, 'false' if not\n     */\n    public boolean getFeature(String name) { \n\tString[] features = {\n\t    DOMSource.FEATURE,\n\t    DOMResult.FEATURE,\n\t    SAXSource.FEATURE,\n\t    SAXResult.FEATURE,\n\t    StreamSource.FEATURE,\n\t    StreamResult.FEATURE,\n\t    SAXTransformerFactory.FEATURE,\n\t    SAXTransformerFactory.FEATURE_XMLFILTER\n\t};\n\n\tif (name == null) {\n    \t    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_GET_FEATURE_NULL_NAME);\n    \t    throw new NullPointerException(err.toString());\n\t}\n\n\tfor (int i =0; i < features.length; i++) {\n\t    if (name.equals(features[i])) {\n\t\treturn true;\n\t    }\n\t}\n\tif (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {\n\t\treturn _isSecureProcessing;\n\t}\n\n\treturn false;\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Get the object that is used by default during the transformation to\n     * resolve URIs used in document(), xsl:import, or xsl:include.\n     *\n     * @return The URLResolver used for this TransformerFactory and all\n     * Templates and Transformer objects created using this factory\n     */    \n    public URIResolver getURIResolver() {\n\treturn _uriResolver;\n    } \n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Set the object that is used by default during the transformation to\n     * resolve URIs used in document(), xsl:import, or xsl:include. Note that\n     * this does not affect Templates and Transformers that are already\n     * created with this factory.\n     *\n     * @param resolver The URLResolver used for this TransformerFactory and all\n     * Templates and Transformer objects created using this factory\n     */    \n    public void setURIResolver(URIResolver resolver) {\n\t_uriResolver = resolver;\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Get the stylesheet specification(s) associated via the xml-stylesheet\n     * the document document specified in the source parameter, and that match\n     * the given criteria.\n     *\n     * @param source The XML source document.\n     * @param media The media attribute to be matched. May be null, in which\n     * case the prefered templates will be used (i.e. alternate = no).\n     * @param title The value of the title attribute to match. May be null.\n     * @param charset The value of the charset attribute to match. May be null.\n     * @return A Source object suitable for passing to the TransformerFactory.\n     * @throws TransformerConfigurationException\n     */\n    public Source  getAssociatedStylesheet(Source source, String media,\n\t\t\t\t\t  String title, String charset)\n\tthrows TransformerConfigurationException {\n\n        String baseId;\n        XMLReader reader = null;\n        InputSource isource = null;\n\n\n        /**\n         * Fix for bugzilla bug 24187\n         */\n        StylesheetPIHandler _stylesheetPIHandler = new StylesheetPIHandler(null,media,title,charset);\n\n        try {\n  \n            if (source instanceof DOMSource ) {\n                final DOMSource domsrc = (DOMSource) source;\n                baseId = domsrc.getSystemId();\n                final org.w3c.dom.Node node = domsrc.getNode();\n                final DOM2SAX dom2sax = new DOM2SAX(node);\n\n                _stylesheetPIHandler.setBaseId(baseId);\n\n                dom2sax.setContentHandler( _stylesheetPIHandler);\n                dom2sax.parse();\n            } else {\n                isource = SAXSource.sourceToInputSource(source);\n                baseId = isource.getSystemId();\n\n                SAXParserFactory factory = SAXParserFactory.newInstance();\n                factory.setNamespaceAware(true);\n                \n                if (_isSecureProcessing) {\n                    try {\n                        factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n                    }\n                    catch (org.xml.sax.SAXException e) {}\n                }\n                \n                SAXParser jaxpParser = factory.newSAXParser();\n\n                reader = jaxpParser.getXMLReader();\n                if (reader == null) {\n                    reader = XMLReaderFactory.createXMLReader();\n                }\n\n                _stylesheetPIHandler.setBaseId(baseId);\n                reader.setContentHandler(_stylesheetPIHandler);\n                reader.parse(isource);\n\n            }\n\n            if (_uriResolver != null ) {\n                _stylesheetPIHandler.setURIResolver(_uriResolver);\n            }\n\n        } catch (StopParseException e ) {\n\n        } catch (javax.xml.parsers.ParserConfigurationException e) {\n\n             throw new TransformerConfigurationException(\n             \"getAssociatedStylesheets failed\", e);\n\n        } catch (org.xml.sax.SAXException se) {\n\n             throw new TransformerConfigurationException(\n             \"getAssociatedStylesheets failed\", se);\n\n\n        } catch (IOException ioe ) {\n           throw new TransformerConfigurationException(\n           \"getAssociatedStylesheets failed\", ioe);\n\n        }\n\n         return _stylesheetPIHandler.getAssociatedStylesheet();\n\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Create a Transformer object that copies the input document to the result.\n     *\n     * @return A Transformer object that simply copies the source to the result.\n     * @throws TransformerConfigurationException\n     */    \n    public Transformer newTransformer()\n\tthrows TransformerConfigurationException \n    { \n\tTransformerImpl result = new TransformerImpl(new Properties(), \n\t    _indentNumber, this);\n\tif (_uriResolver != null) {\n\t    result.setURIResolver(_uriResolver);\n\t}\n\t\n\tif (_isSecureProcessing) {\n\t    result.setSecureProcessing(true);\n\t}\n\treturn result;\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Process the Source into a Templates object, which is a a compiled\n     * representation of the source. Note that this method should not be\n     * used with XSLTC, as the time-consuming compilation is done for each\n     * and every transformation.\n     *\n     * @return A Templates object that can be used to create Transformers.\n     * @throws TransformerConfigurationException\n     */\n    public Transformer newTransformer(Source source) throws\n\tTransformerConfigurationException \n    {\n\tfinal Templates templates = newTemplates(source);\n\tfinal Transformer transformer = templates.newTransformer();\n\tif (_uriResolver != null) {\n\t    transformer.setURIResolver(_uriResolver);\n\t}\n\treturn(transformer);\n    }\n\n    /**\n     * Pass warning messages from the compiler to the error listener\n     */\n    private void passWarningsToListener(Vector messages) \n\tthrows TransformerException \n    {\n\tif (_errorListener == null || messages == null) {\n\t    return;\n\t}\n\tfinal int count = messages.size();\n\tfor (int pos = 0; pos < count; pos++) {\n\t    ErrorMsg msg = (ErrorMsg)messages.elementAt(pos);\n\t    if (msg.isWarningError())\n\t        _errorListener.error(\n\t\t    new TransformerConfigurationException(msg.toString()));\n\t    else\n\t    \t_errorListener.warning(\n\t\t    new TransformerConfigurationException(msg.toString()));\n\t}\n    }\n\n    /**\n     * Pass error messages from the compiler to the error listener\n     */\n    private void passErrorsToListener(Vector messages) {\n\ttry {\n\t    if (_errorListener == null || messages == null) {\n\t\treturn;\n\t    }\n\t    final int count = messages.size();\n\t    for (int pos = 0; pos < count; pos++) {\n\t\tString message = messages.elementAt(pos).toString();\n\t\t_errorListener.error(new TransformerException(message));\n\t    }\n\t}\n\tcatch (TransformerException e) {\n\t}\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Process the Source into a Templates object, which is a a compiled\n     * representation of the source.\n     *\n     * @param source The input stylesheet - DOMSource not supported!!!\n     * @return A Templates object that can be used to create Transformers.\n     * @throws TransformerConfigurationException\n     */\n    public Templates newTemplates(Source source)\n\tthrows TransformerConfigurationException \n    {\n\tif (_useClasspath) {\n\t    String transletName = getTransletBaseName(source);\n\t            \n\t    if (_packageName != null)\n\t        transletName = _packageName + \".\" + transletName;\n\t        \n\t    try {\n                final Class clazz = ObjectFactory.findProviderClass(\n                    transletName, ObjectFactory.findClassLoader(), true);\n\t        resetTransientAttributes();\n\t            \n\t        return new TemplatesImpl(new Class[]{clazz}, transletName, null, _indentNumber, this);\n\t    }\n\t    catch (ClassNotFoundException cnfe) {\n\t        ErrorMsg err = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, transletName);\n\t        throw new TransformerConfigurationException(err.toString());\n\t    }\n\t    catch (Exception e) {\n\t        ErrorMsg err = new ErrorMsg(\n                                     new ErrorMsg(ErrorMsg.RUNTIME_ERROR_KEY)\n                                     + e.getMessage());\n\t        throw new TransformerConfigurationException(err.toString());\n\t    }\n\t}\n\t\n\tif (_autoTranslet)  {\n\t    byte[][] bytecodes = null;\n\t    String transletClassName = getTransletBaseName(source);\n\t    \n\t    if (_packageName != null)\n\t        transletClassName = _packageName + \".\" + transletClassName;\n\t    \n\t    if (_jarFileName != null)\n\t    \tbytecodes = getBytecodesFromJar(source, transletClassName);\n\t    else\n\t    \tbytecodes = getBytecodesFromClasses(source, transletClassName);\t    \n\t  \n\t    if (bytecodes != null) {\n\t    \tif (_debug) {\n\t      \t    if (_jarFileName != null)\n\t        \tSystem.err.println(new ErrorMsg(\n\t            \t    ErrorMsg.TRANSFORM_WITH_JAR_STR, transletClassName, _jarFileName));\n\t            else\n\t            \tSystem.err.println(new ErrorMsg(\n\t            \t    ErrorMsg.TRANSFORM_WITH_TRANSLET_STR, transletClassName));\n\t    \t}\n\n\t    \tresetTransientAttributes();\n\t    \n\t    \treturn new TemplatesImpl(bytecodes, transletClassName, null, _indentNumber, this);\t    \n\t    }\n\t}\n\t\n\tfinal XSLTC xsltc = new XSLTC();\n\tif (_debug) xsltc.setDebug(true);\n\tif (_enableInlining) xsltc.setTemplateInlining(true);\n\tif (_isSecureProcessing) xsltc.setSecureProcessing(true);\n\txsltc.init();\n\n\tif (_uriResolver != null) {\n\t    xsltc.setSourceLoader(this);\n\t}\n\n\tif ((_piParams != null) && (_piParams.get(source) != null)) {\n\t    PIParamWrapper p = (PIParamWrapper)_piParams.get(source);\n\t    if (p != null) {\n\t\txsltc.setPIParameters(p._media, p._title, p._charset);\n\t    }\n\t}\n\n\tint outputType = XSLTC.BYTEARRAY_OUTPUT;\n\tif (_generateTranslet || _autoTranslet) {\n\t    xsltc.setClassName(getTransletBaseName(source));\n\t  \n\t    if (_destinationDirectory != null)\n\t    \txsltc.setDestDirectory(_destinationDirectory);\n\t    else {\n\t    \tString xslName = getStylesheetFileName(source);\n\t    \tif (xslName != null) {\n\t      \t    File xslFile = new File(xslName);\n\t            String xslDir = xslFile.getParent();\n\t    \n\t      \t    if (xslDir != null)\n\t                xsltc.setDestDirectory(xslDir);\n\t    \t}\n\t    }\n\t  \n\t    if (_packageName != null)\n\t        xsltc.setPackageName(_packageName);\n\t\n\t    if (_jarFileName != null) {\n\t    \txsltc.setJarFileName(_jarFileName);\n\t    \toutputType = XSLTC.BYTEARRAY_AND_JAR_OUTPUT;\n\t    }\n\t    else\n\t    \toutputType = XSLTC.BYTEARRAY_AND_FILE_OUTPUT;\n\t}\n\n\tfinal InputSource input = Util.getInputSource(xsltc, source);\n\tbyte[][] bytecodes = xsltc.compile(null, input, outputType);\n\tfinal String transletName = xsltc.getClassName();\n\n\tif ((_generateTranslet || _autoTranslet)\n\t   \t&& bytecodes != null && _jarFileName != null) {\n\t    try {\n\t    \txsltc.outputToJar();\n\t    }\n\t    catch (java.io.IOException e) { }\n\t}\n\n\tresetTransientAttributes();\n\n\tif (_errorListener != this) {\n\t    try {\n\t\tpassWarningsToListener(xsltc.getWarnings());\n\t    }\n\t    catch (TransformerException e) {\n\t\tthrow new TransformerConfigurationException(e);\n\t    }\n\t}\n\telse {\n\t    xsltc.printWarnings();\n\t}\n\n    if (bytecodes == null) {\n        \n        ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_COMPILE_ERR);\n        TransformerConfigurationException exc =  new TransformerConfigurationException(err.toString());\n        \n        if (_errorListener != null) {\n            passErrorsToListener(xsltc.getErrors());\n            \n            try {\n                _errorListener.fatalError(exc);\n            } catch (TransformerException te) {\n            }    \n        }\n        else {\n            xsltc.printErrors();\n        }\n        throw exc;\n    }\n\n\treturn new TemplatesImpl(bytecodes, transletName, \n\t    xsltc.getOutputProperties(), _indentNumber, this);\n    }\n\n    /**\n     * javax.xml.transform.sax.SAXTransformerFactory implementation.\n     * Get a TemplatesHandler object that can process SAX ContentHandler\n     * events into a Templates object.\n     *\n     * @return A TemplatesHandler object that can handle SAX events\n     * @throws TransformerConfigurationException\n     */\n    public TemplatesHandler newTemplatesHandler() \n\tthrows TransformerConfigurationException \n    { \n\tfinal TemplatesHandlerImpl handler = \n\t    new TemplatesHandlerImpl(_indentNumber, this);\n\tif (_uriResolver != null) {\n\t    handler.setURIResolver(_uriResolver);\n\t}\n\treturn handler;\n    }\n\n    /**\n     * javax.xml.transform.sax.SAXTransformerFactory implementation.\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events into a Result. This method will return a pure copy transformer.\n     *\n     * @return A TransformerHandler object that can handle SAX events\n     * @throws TransformerConfigurationException\n     */\n    public TransformerHandler newTransformerHandler() \n\tthrows TransformerConfigurationException \n    {\n\tfinal Transformer transformer = newTransformer();\n\tif (_uriResolver != null) {\n\t    transformer.setURIResolver(_uriResolver);\n\t}\n\treturn new TransformerHandlerImpl((TransformerImpl) transformer);\n    }\n\n    /**\n     * javax.xml.transform.sax.SAXTransformerFactory implementation.\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events into a Result, based on the transformation instructions\n     * specified by the argument.\n     *\n     * @param src The source of the transformation instructions.\n     * @return A TransformerHandler object that can handle SAX events\n     * @throws TransformerConfigurationException\n     */\n    public TransformerHandler newTransformerHandler(Source src) \n\tthrows TransformerConfigurationException \n    { \n\tfinal Transformer transformer = newTransformer(src);\n\tif (_uriResolver != null) {\n\t    transformer.setURIResolver(_uriResolver);\n\t}\n\treturn new TransformerHandlerImpl((TransformerImpl) transformer);\n    }\n\n    /**\n     * javax.xml.transform.sax.SAXTransformerFactory implementation.\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events into a Result, based on the transformation instructions\n     * specified by the argument.\n     *\n     * @param templates Represents a pre-processed stylesheet\n     * @return A TransformerHandler object that can handle SAX events\n     * @throws TransformerConfigurationException\n     */    \n    public TransformerHandler newTransformerHandler(Templates templates) \n\tthrows TransformerConfigurationException  \n    {\n\tfinal Transformer transformer = templates.newTransformer();\n\tfinal TransformerImpl internal = (TransformerImpl)transformer;\n\treturn new TransformerHandlerImpl(internal);\n    }\n\n    /**\n     * javax.xml.transform.sax.SAXTransformerFactory implementation.\n     * Create an XMLFilter that uses the given source as the\n     * transformation instructions.\n     *\n     * @param src The source of the transformation instructions.\n     * @return An XMLFilter object, or null if this feature is not supported.\n     * @throws TransformerConfigurationException\n     */\n    public XMLFilter newXMLFilter(Source src) \n\tthrows TransformerConfigurationException \n    {\n\tTemplates templates = newTemplates(src);\n\tif (templates == null) return null; \n\treturn newXMLFilter(templates);\n    }\n\n    /**\n     * javax.xml.transform.sax.SAXTransformerFactory implementation.\n     * Create an XMLFilter that uses the given source as the\n     * transformation instructions.\n     *\n     * @param templates The source of the transformation instructions.\n     * @return An XMLFilter object, or null if this feature is not supported.\n     * @throws TransformerConfigurationException\n     */\n    public XMLFilter newXMLFilter(Templates templates) \n\tthrows TransformerConfigurationException \n    {\n\ttry {\n      \t    return new org.apache.xalan.xsltc.trax.TrAXFilter(templates);\n    \t}\n\tcatch (TransformerConfigurationException e1) {\n      \t    if (_errorListener != null) {\n                try {\n          \t    _errorListener.fatalError(e1);\n          \t    return null;\n        \t}\n\t\tcatch (TransformerException e2) {\n          \t    new TransformerConfigurationException(e2);\n        \t}\n      \t    }\n      \t    throw e1;\n    \t}\n    }\n\n    /**\n     * Receive notification of a recoverable error. \n     * The transformer must continue to provide normal parsing events after\n     * invoking this method. It should still be possible for the application\n     * to process the document through to the end.\n     *\n     * @param e The warning information encapsulated in a transformer \n     * exception.\n     * @throws TransformerException if the application chooses to discontinue\n     * the transformation (always does in our case).\n     */\n    public void error(TransformerException e)\n\tthrows TransformerException \n    {\n\tThrowable wrapped = e.getException();\n        if (wrapped != null) {\n            System.err.println(new ErrorMsg(ErrorMsg.ERROR_PLUS_WRAPPED_MSG,\n                                            e.getMessageAndLocation(),\n                                            wrapped.getMessage()));\n        } else {\n            System.err.println(new ErrorMsg(ErrorMsg.ERROR_MSG,\n                                            e.getMessageAndLocation()));\n\t}\n\tthrow e; \t\n    }\n\n    /**\n     * Receive notification of a non-recoverable error. \n     * The application must assume that the transformation cannot continue\n     * after the Transformer has invoked this method, and should continue\n     * (if at all) only to collect addition error messages. In fact,\n     * Transformers are free to stop reporting events once this method has\n     * been invoked.\n     *\n     * @param e warning information encapsulated in a transformer\n     * exception.\n     * @throws TransformerException if the application chooses to discontinue\n     * the transformation (always does in our case).\n     */\n    public void fatalError(TransformerException e)\n\tthrows TransformerException \n    {\n\tThrowable wrapped = e.getException();\n        if (wrapped != null) {\n            System.err.println(new ErrorMsg(ErrorMsg.FATAL_ERR_PLUS_WRAPPED_MSG,\n                                            e.getMessageAndLocation(),\n                                            wrapped.getMessage()));\n        } else {\n            System.err.println(new ErrorMsg(ErrorMsg.FATAL_ERR_MSG,\n                                            e.getMessageAndLocation()));\n        }\n\tthrow e;\n    }\n\n    /**\n     * Receive notification of a warning.\n     * Transformers can use this method to report conditions that are not\n     * errors or fatal errors. The default behaviour is to take no action.\n     * After invoking this method, the Transformer must continue with the\n     * transformation. It should still be possible for the application to\n     * process the document through to the end.\n     *\n     * @param e The warning information encapsulated in a transformer\n     * exception.\n     * @throws TransformerException if the application chooses to discontinue\n     * the transformation (never does in our case).\n     */\n    public void warning(TransformerException e)\n\tthrows TransformerException \n    {\n\tThrowable wrapped = e.getException();\n\tif (wrapped != null) {\n            System.err.println(new ErrorMsg(ErrorMsg.WARNING_PLUS_WRAPPED_MSG,\n                                            e.getMessageAndLocation(),\n                                            wrapped.getMessage()));\n\t} else {\n            System.err.println(new ErrorMsg(ErrorMsg.WARNING_MSG,\n                                            e.getMessageAndLocation()));\n        }\n    }\n\n    /**\n     * This method implements XSLTC's SourceLoader interface. It is used to\n     * glue a TrAX URIResolver to the XSLTC compiler's Input and Import classes.\n     *\n     * @param href The URI of the document to load\n     * @param context The URI of the currently loaded document\n     * @param xsltc The compiler that resuests the document\n     * @return An InputSource with the loaded document\n     */\n    public InputSource loadSource(String href, String context, XSLTC xsltc) {\n\ttry {\n\t    if (_uriResolver != null) {\n\t\tfinal Source source = _uriResolver.resolve(href, context);\n\t\tif (source != null) {\n\t\t    return Util.getInputSource(xsltc, source);\n\t\t}\n\t    }\n\t}\n\tcatch (TransformerException e) {\n\t}\n\treturn null;\n    }\n\n    /**\n     * Reset the per-session attributes to their default values\n     */\n    private void resetTransientAttributes() {\n\t_transletName = DEFAULT_TRANSLET_NAME;\n\t_destinationDirectory = null;\n\t_packageName = null;\n\t_jarFileName = null;    \n    }\n        \n    /**\n     * Load the translet classes from local .class files and return\n     * the bytecode array.\n     *\n     * @param source The xsl source\n     * @param fullClassName The full name of the translet\n     * @return The bytecode array\n     */\n    private byte[][] getBytecodesFromClasses(Source source, String fullClassName)\n    {\n    \tif (fullClassName == null)\n    \t    return null;\n    \t  \n    \tString xslFileName = getStylesheetFileName(source);\n    \tFile xslFile = null;\n    \tif (xslFileName != null)\n    \t    xslFile = new File(xslFileName);\n    \t\n    \tfinal String transletName;\n    \tint lastDotIndex = fullClassName.lastIndexOf('.');\n    \tif (lastDotIndex > 0)\n    \t    transletName = fullClassName.substring(lastDotIndex+1);\n    \telse\n    \t    transletName = fullClassName;\n    \t    \t\n    \tString transletPath = fullClassName.replace('.', '/');\n    \tif (_destinationDirectory != null) {\n    \t    transletPath = _destinationDirectory + \"/\" + transletPath + \".class\";\n    \t}\n    \telse {\n    \t    if (xslFile != null && xslFile.getParent() != null)\n    \t    \ttransletPath = xslFile.getParent() + \"/\" + transletPath + \".class\";\n    \t    else\n    \t    \ttransletPath = transletPath + \".class\";\n    \t}\n    \t    \t    \t\n    \tFile transletFile = new File(transletPath);\n    \tif (!transletFile.exists())\n    \t    return null;\n    \t    \t  \n    \tif (xslFile != null && xslFile.exists()) {\n    \t    long xslTimestamp = xslFile.lastModified();\n    \t    long transletTimestamp = transletFile.lastModified();\n    \t    if (transletTimestamp < xslTimestamp)\n    \t    \treturn null;\n    \t}\n    \t\n    \tVector bytecodes = new Vector();\n    \tint fileLength = (int)transletFile.length();\n    \tif (fileLength > 0) {\n    \t    FileInputStream input = null;\n    \t    try {\n    \t    \tinput = new FileInputStream(transletFile);\n    \t    }\n    \t    catch (FileNotFoundException e) {\n    \t    \treturn null;\n    \t    }\n    \t  \n    \t    byte[] bytes = new byte[fileLength];\n    \t    try {\n\t    \treadFromInputStream(bytes, input, fileLength);\n\t    \tinput.close();\n\t    }\n\t    catch (IOException e) {\n    \t    \treturn null;\n    \t    }\n    \t  \n    \t    bytecodes.addElement(bytes);\n    \t}\n    \telse\n    \t    return null;\n    \t\n    \tString transletParentDir = transletFile.getParent();\n    \tif (transletParentDir == null)\n    \t    transletParentDir = System.getProperty(\"user.dir\");\n    \t  \n    \tFile transletParentFile = new File(transletParentDir);\n    \t\n    \tfinal String transletAuxPrefix = transletName + \"$\";\n    \tFile[] auxfiles = transletParentFile.listFiles(new FilenameFilter() {\n        \tpublic boolean accept(File dir, String name)\n    \t\t{\n    \t\t    return (name.endsWith(\".class\") && name.startsWith(transletAuxPrefix));\t\n    \t\t}\n    \t      });\n    \t\n    \tfor (int i = 0; i < auxfiles.length; i++)\n    \t{\n    \t    File auxfile = auxfiles[i];\n    \t    int auxlength = (int)auxfile.length();\n    \t    if (auxlength > 0) {\n    \t    \tFileInputStream auxinput = null;\n    \t    \ttry {\n    \t      \t    auxinput = new FileInputStream(auxfile);\n    \t    \t}\n    \t    \tcatch (FileNotFoundException e) {\n    \t      \t    continue;\n    \t    \t}\n    \t  \n    \t    \tbyte[] bytes = new byte[auxlength];\n    \t    \n    \t    \ttry {\n    \t      \t    readFromInputStream(bytes, auxinput, auxlength);\n    \t      \t    auxinput.close();\n    \t    \t}\n    \t    \tcatch (IOException e) {\n    \t      \t    continue;\n    \t    \t}\n    \t    \n    \t    \tbytecodes.addElement(bytes);   \t    \n    \t    }\n    \t}\n    \t\n    \tfinal int count = bytecodes.size();\n    \tif ( count > 0) {\n    \t    final byte[][] result = new byte[count][1];\n    \t    for (int i = 0; i < count; i++) {\n    \t    \tresult[i] = (byte[])bytecodes.elementAt(i);\n    \t    }\n    \t  \n    \t    return result;\n    \t}\n    \telse\n    \t    return null;\n    }\n    \n    /**\n     * Load the translet classes from the jar file and return the bytecode.\n     *\n     * @param source The xsl source\n     * @param fullClassName The full name of the translet\n     * @return The bytecode array\n     */\n    private byte[][] getBytecodesFromJar(Source source, String fullClassName)\n    {\n    \tString xslFileName = getStylesheetFileName(source);\n    \tFile xslFile = null;\n    \tif (xslFileName != null)\n    \t    xslFile = new File(xslFileName);\n      \n      \tString jarPath = null;\n      \tif (_destinationDirectory != null)\n            jarPath = _destinationDirectory + \"/\" + _jarFileName;\n      \telse {\n      \t    if (xslFile != null && xslFile.getParent() != null)\n    \t    \tjarPath = xslFile.getParent() + \"/\" + _jarFileName;\n    \t    else\n    \t    \tjarPath = _jarFileName;\n    \t}\n            \n      \tFile file = new File(jarPath);\n      \tif (!file.exists())\n            return null;\n\n    \tif (xslFile != null && xslFile.exists()) {\n    \t    long xslTimestamp = xslFile.lastModified();\n    \t    long transletTimestamp = file.lastModified();\n    \t    if (transletTimestamp < xslTimestamp)\n    \t        return null;\n    \t}\n      \n      \tZipFile jarFile = null;\n      \ttry {\n            jarFile = new ZipFile(file);\n      \t}\n      \tcatch (IOException e) {\n            return null;\n      \t}\n      \n      \tString transletPath = fullClassName.replace('.', '/');\n      \tString transletAuxPrefix = transletPath + \"$\";\n      \tString transletFullName = transletPath + \".class\";\n      \n      \tVector bytecodes = new Vector();      \n      \n      \tEnumeration entries = jarFile.entries();\n      \twhile (entries.hasMoreElements())\n      \t{\n            ZipEntry entry = (ZipEntry)entries.nextElement();\n            String entryName = entry.getName();\n            if (entry.getSize() > 0 && \n            \t  (entryName.equals(transletFullName) ||\n              \t  (entryName.endsWith(\".class\") && \n              \t      entryName.startsWith(transletAuxPrefix))))\n            {\n            \ttry {\n              \t    InputStream input = jarFile.getInputStream(entry);\n              \t    int size = (int)entry.getSize();\n              \t    byte[] bytes = new byte[size];\n              \t    readFromInputStream(bytes, input, size);\n              \t    input.close();\n              \t    bytecodes.addElement(bytes);\n            \t}\n            \tcatch (IOException e) {\n              \t    return null;\n            \t}          \n            }\n      \t}\n      \n    \tfinal int count = bytecodes.size();\n    \tif (count > 0) {\n    \t    final byte[][] result = new byte[count][1];\n    \t    for (int i = 0; i < count; i++) {\n    \t    \tresult[i] = (byte[])bytecodes.elementAt(i);\n    \t    }\n    \t  \n    \t    return result;\n    \t}\n    \telse\n    \t    return null;\n    }\n    \n    /**\n     * Read a given number of bytes from the InputStream into a byte array.\n     *\n     * @param bytes The byte array to store the input content.\n     * @param input The input stream.\n     * @param size The number of bytes to read.\n     */\n    private void readFromInputStream(byte[] bytes, InputStream input, int size)\n      \tthrows IOException\n    {\n      int n = 0;\n      int offset = 0;\n      int length = size;\n      while (length > 0 && (n = input.read(bytes, offset, length)) > 0) {\n          offset = offset + n;\n          length = length - n;\n      }    \n    }\n\n    /**\n     * Return the base class name of the translet.\n     * The translet name is resolved using the following rules:\n     * 1. if the _transletName attribute is set and its value is not \"GregorSamsa\",\n     *    then _transletName is returned.\n     * 2. otherwise get the translet name from the base name of the system ID\n     * 3. return \"GregorSamsa\" if the result from step 2 is null.\n     *\n     * @param source The input Source\n     * @return The name of the translet class\n     */\n    private String getTransletBaseName(Source source)\n    {      \n        String transletBaseName = null;\n        if (!_transletName.equals(DEFAULT_TRANSLET_NAME))\n            return _transletName;\n      \telse {\n            String systemId = source.getSystemId();\n            if (systemId != null) {\n          \tString baseName = Util.baseName(systemId);\n\t\tif (baseName != null) {\n\t\t    baseName = Util.noExtName(baseName);\n\t\t    transletBaseName = Util.toJavaName(baseName);\n\t\t}\n            }\n      \t}\n      \n        return (transletBaseName != null) ? transletBaseName : DEFAULT_TRANSLET_NAME;\n    }\n        \n    /**\n     *  Return the local file name from the systemId of the Source object\n     *\n     * @param source The Source\n     * @return The file name in the local filesystem, or null if the\n     * systemId does not represent a local file.\n     */\n    private String getStylesheetFileName(Source source)\n    {\n    \tString systemId = source.getSystemId();\n      \tif (systemId != null) {\n            File file = new File(systemId);\n            if (file.exists())\n                return systemId;\n            else {\n              \tURL url = null;\n          \ttry {\n            \t    url = new URL(systemId);\n          \t}\n          \tcatch (MalformedURLException e) {\n            \t    return null;\n          \t}\n          \n          \tif (\"file\".equals(url.getProtocol()))\n            \t    return url.getFile();\n          \telse\n            \t    return null;\n            }\n      \t}\n      \telse\n            return null;\n    }\n\n    /**\n     * Returns the Class object the provides the XSLTC DTM Manager service.\n     */\n    protected Class getDTMManagerClass() {\n        return m_DTMManagerClass;", "functions": [{"function_name": "setErrorListener", "code": "    public void setErrorListener(ErrorListener listener) \n\tthrows IllegalArgumentException \n    {\n\tif (listener == null) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.ERROR_LISTENER_NULL_ERR,\n\t\t\t\t\t\"TransformerFactory\");\n            throw new IllegalArgumentException(err.toString());\n\t}\n\t_errorListener = listener;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [8, 9], [6, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 8], [10, 6], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getErrorListener", "code": "    public ErrorListener getErrorListener() { \n\treturn _errorListener;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAttribute", "code": "    public Object getAttribute(String name) \n\tthrows IllegalArgumentException \n    { \n\tif (name.equals(TRANSLET_NAME)) {\n\t    return _transletName;\n\t}\n\telse if (name.equals(GENERATE_TRANSLET)) {\n\t    return new Boolean(_generateTranslet);\n\t}\n\telse if (name.equals(AUTO_TRANSLET)) {\n\t    return new Boolean(_autoTranslet);\n\t}\n\n\tErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);\n\tthrow new IllegalArgumentException(err.toString());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "IF", "PARAM", "CALL", "IF", "CALL", "CALL", "CALL", "IF", "CALL", "RETURN", "CALL", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [3, 7], [5, 8], [2, 9], [6, 10], [6, 11], [3, 12], [10, 13], [6, 14], [10, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 3], [8, 5], [9, 2], [10, 6], [11, 6], [12, 3], [13, 10], [14, 6], [15, 10], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setAttribute", "code": "    public void setAttribute(String name, Object value) \n\tthrows IllegalArgumentException \n    { \n\tif (name.equals(TRANSLET_NAME) && value instanceof String) {\n\t    _transletName = (String) value;\t      \n\t    return;\n\t}\n\telse if (name.equals(DESTINATION_DIRECTORY) && value instanceof String) {\n\t    _destinationDirectory = (String) value;\n\t    return;\n\t}\n\telse if (name.equals(PACKAGE_NAME) && value instanceof String) {\n\t    _packageName = (String) value;\n\t    return;\n\t}\n\telse if (name.equals(JAR_NAME) && value instanceof String) {\n\t    _jarFileName = (String) value;\n\t    return;\n\t}\n\telse if (name.equals(GENERATE_TRANSLET)) {\n\t    if (value instanceof Boolean) {\n\t\t_generateTranslet = ((Boolean) value).booleanValue();\n\t\treturn;\n\t    }\n\t    else if (value instanceof String) {\n\t\t_generateTranslet = ((String) value).equalsIgnoreCase(\"true\");\n\t\treturn;\n\t    }\n\t}\n\telse if (name.equals(AUTO_TRANSLET)) {\n\t    if (value instanceof Boolean) {\n\t\t_autoTranslet = ((Boolean) value).booleanValue();\n\t\treturn;\n\t    }\n\t    else if (value instanceof String) {\n\t\t_autoTranslet = ((String) value).equalsIgnoreCase(\"true\");\n\t\treturn;\n\t    }\n\t}\n\telse if (name.equals(USE_CLASSPATH)) {\n\t    if (value instanceof Boolean) {\n\t\t_useClasspath = ((Boolean) value).booleanValue();\n\t\treturn;\n\t    }\n\t    else if (value instanceof String) {\n\t\t_useClasspath = ((String) value).equalsIgnoreCase(\"true\");\n\t\treturn;\n\t    }\t    \n\t}\n\telse if (name.equals(DEBUG)) {\n\t    if (value instanceof Boolean) {\n\t\t_debug = ((Boolean) value).booleanValue();\n\t\treturn;\n\t    }\n\t    else if (value instanceof String) {\n\t\t_debug = ((String) value).equalsIgnoreCase(\"true\");\n\t\treturn;\n\t    }\n\t}\n\telse if (name.equals(ENABLE_INLINING)) {\n\t    if (value instanceof Boolean) {\n\t\t_enableInlining = ((Boolean) value).booleanValue();\n\t\treturn;\n\t    }\n\t    else if (value instanceof String) {\n\t\t_enableInlining = ((String) value).equalsIgnoreCase(\"true\");\n\t\treturn;\n\t    }\n\t}\n\telse if (name.equals(INDENT_NUMBER)) {\n\t    if (value instanceof String) {\n\t\ttry {\n\t\t    _indentNumber = Integer.parseInt((String) value);\n\t\t    return;\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t}\n\t    }\n\t    else if (value instanceof Integer) {\n\t\t_indentNumber = ((Integer) value).intValue();\n\t\treturn;\n\t    }\n\t}\n\n\tfinal ErrorMsg err \n\t    = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);\n\tthrow new IllegalArgumentException(err.toString());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "IF", "CALL", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "IF", "CALL", "IF", "ASSIGN", "IF", "CALL", "IF", "IF", "BINARY_OP", "IF", "CALL", "IF", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "CALL", "IF", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "ASSIGN", "CALL", "IF", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "ASSIGN", "ASSIGN", "IF", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "ASSIGN", "ASSIGN", "BINARY_OP", "TRY", "RETURN", "ASSIGN", "ASSIGN", "RETURN", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [3, 8], [6, 9], [2, 10], [7, 11], [7, 12], [3, 13], [8, 14], [8, 15], [11, 16], [11, 17], [7, 18], [12, 19], [12, 20], [3, 21], [16, 22], [16, 23], [11, 24], [17, 25], [17, 26], [7, 27], [22, 28], [22, 29], [16, 30], [23, 31], [23, 32], [11, 33], [28, 34], [28, 35], [22, 36], [16, 37], [34, 38], [34, 39], [28, 40], [36, 41], [36, 42], [38, 43], [38, 44], [34, 45], [40, 46], [40, 47], [41, 48], [36, 49], [43, 50], [43, 51], [38, 52], [45, 53], [45, 54], [46, 55], [40, 56], [41, 57], [36, 58], [50, 59], [43, 60], [52, 61], [52, 62], [53, 63], [45, 64], [46, 65], [40, 66], [41, 67], [50, 68], [60, 69], [60, 70], [61, 71], [52, 72], [53, 73], [45, 74], [46, 75], [68, 76], [68, 77], [69, 78], [60, 79], [61, 80], [52, 81], [53, 82], [76, 83], [68, 84], [69, 85], [60, 86], [61, 87], [76, 88], [84, 89], [84, 90], [69, 91], [76, 92], [84, 93], [93, 94], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 3], [9, 6], [10, 2], [11, 7], [12, 7], [13, 3], [14, 8], [15, 8], [16, 11], [17, 11], [18, 7], [19, 12], [20, 12], [21, 3], [22, 16], [23, 16], [24, 11], [25, 17], [26, 17], [27, 7], [28, 22], [29, 22], [30, 16], [31, 23], [32, 23], [33, 11], [34, 28], [35, 28], [36, 22], [37, 16], [38, 34], [39, 34], [40, 28], [41, 36], [42, 36], [43, 38], [44, 38], [45, 34], [46, 40], [47, 40], [48, 41], [49, 36], [50, 43], [51, 43], [52, 38], [53, 45], [54, 45], [55, 46], [56, 40], [57, 41], [58, 36], [59, 50], [60, 43], [61, 52], [62, 52], [63, 53], [64, 45], [65, 46], [66, 40], [67, 41], [68, 50], [69, 60], [70, 60], [71, 61], [72, 52], [73, 53], [74, 45], [75, 46], [76, 68], [77, 68], [78, 69], [79, 60], [80, 61], [81, 52], [82, 53], [83, 76], [84, 68], [85, 69], [86, 60], [87, 61], [88, 76], [89, 84], [90, 84], [91, 69], [92, 76], [93, 84], [94, 93], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "setFeature", "code": "    public void setFeature(String name, boolean value)\n        throws TransformerConfigurationException {\n\n\tif (name == null) {\n            ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_SET_FEATURE_NULL_NAME);\n    \t    throw new NullPointerException(err.toString());\n\t}\t\t\n\telse if (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {\n\t    _isSecureProcessing = value;\t\t\n\t    return;\n\t}\n\telse {\t\n            ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_UNSUPPORTED_FEATURE, name);\n            throw new TransformerConfigurationException(err.toString());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [5, 9], [4, 10], [4, 11], [4, 12], [7, 13], [10, 14], [4, 15], [13, 16], [8, 17], [14, 18], [11, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 5], [10, 4], [11, 4], [12, 4], [13, 7], [14, 10], [15, 4], [16, 13], [17, 8], [18, 14], [19, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getFeature", "code": "    public boolean getFeature(String name) { \n\tString[] features = {\n\t    DOMSource.FEATURE,\n\t    DOMResult.FEATURE,\n\t    SAXSource.FEATURE,\n\t    SAXResult.FEATURE,\n\t    StreamSource.FEATURE,\n\t    StreamResult.FEATURE,\n\t    SAXTransformerFactory.FEATURE,\n\t    SAXTransformerFactory.FEATURE_XMLFILTER\n\t};\n\n\tif (name == null) {\n    \t    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_GET_FEATURE_NULL_NAME);\n    \t    throw new NullPointerException(err.toString());\n\t}\n\n\tfor (int i =0; i < features.length; i++) {\n\t    if (name.equals(features[i])) {\n\t\treturn true;\n\t    }\n\t}\n\tif (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {\n\t\treturn _isSecureProcessing;\n\t}\n\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [2, 11], [3, 12], [4, 13], [4, 14], [10, 15], [12, 16], [3, 17], [13, 18], [12, 19], [18, 20], [14, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 2], [12, 3], [13, 4], [14, 4], [15, 10], [16, 12], [17, 3], [18, 13], [19, 12], [20, 18], [21, 14], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getURIResolver", "code": "    public URIResolver getURIResolver() {\n\treturn _uriResolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setURIResolver", "code": "    public void setURIResolver(URIResolver resolver) {\n\t_uriResolver = resolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAssociatedStylesheet", "code": "    public Source  getAssociatedStylesheet(Source source, String media,\n\t\t\t\t\t  String title, String charset)\n\tthrows TransformerConfigurationException {\n\n        String baseId;\n        XMLReader reader = null;\n        InputSource isource = null;\n\n\n        /**\n         * Fix for bugzilla bug 24187\n         */\n        StylesheetPIHandler _stylesheetPIHandler = new StylesheetPIHandler(null,media,title,charset);\n\n        try {\n  \n            if (source instanceof DOMSource ) {\n                final DOMSource domsrc = (DOMSource) source;\n                baseId = domsrc.getSystemId();\n                final org.w3c.dom.Node node = domsrc.getNode();\n                final DOM2SAX dom2sax = new DOM2SAX(node);\n\n                _stylesheetPIHandler.setBaseId(baseId);\n\n                dom2sax.setContentHandler( _stylesheetPIHandler);\n                dom2sax.parse();\n            } else {\n                isource = SAXSource.sourceToInputSource(source);\n                baseId = isource.getSystemId();\n\n                SAXParserFactory factory = SAXParserFactory.newInstance();\n                factory.setNamespaceAware(true);\n                \n                if (_isSecureProcessing) {\n                    try {\n                        factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n                    }\n                    catch (org.xml.sax.SAXException e) {}\n                }\n                \n                SAXParser jaxpParser = factory.newSAXParser();\n\n                reader = jaxpParser.getXMLReader();\n                if (reader == null) {\n                    reader = XMLReaderFactory.createXMLReader();\n                }\n\n                _stylesheetPIHandler.setBaseId(baseId);\n                reader.setContentHandler(_stylesheetPIHandler);\n                reader.parse(isource);\n\n            }\n\n            if (_uriResolver != null ) {\n                _stylesheetPIHandler.setURIResolver(_uriResolver);\n            }\n\n        } catch (StopParseException e ) {\n\n        } catch (javax.xml.parsers.ParserConfigurationException e) {\n\n             throw new TransformerConfigurationException(\n             \"getAssociatedStylesheets failed\", e);\n\n        } catch (org.xml.sax.SAXException se) {\n\n             throw new TransformerConfigurationException(\n             \"getAssociatedStylesheets failed\", se);\n\n\n        } catch (IOException ioe ) {\n           throw new TransformerConfigurationException(\n           \"getAssociatedStylesheets failed\", ioe);\n\n        }\n\n         return _stylesheetPIHandler.getAssociatedStylesheet();", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "CATCH", "CATCH", "CATCH", "IF", "IF", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [12, 18], [13, 19], [14, 20], [16, 21], [17, 22], [3, 23], [4, 24], [5, 25], [18, 26], [19, 27], [20, 28], [21, 29], [17, 30], [17, 31], [17, 32], [17, 33], [17, 34], [17, 35], [17, 36], [23, 37], [26, 38], [27, 39], [28, 40], [16, 41], [17, 42], [17, 43], [17, 44], [30, 45], [17, 46], [17, 47], [17, 48], [17, 49], [17, 50], [17, 51], [17, 52], [17, 53], [45, 54], [46, 55], [31, 56], [32, 57], [47, 58], [33, 59], [48, 60], [49, 61], [34, 62], [35, 63], [53, 64], [30, 65], [57, 66], [65, 67], [57, 68], [68, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 12], [19, 13], [20, 14], [21, 16], [22, 17], [23, 3], [24, 4], [25, 5], [26, 18], [27, 19], [28, 20], [29, 21], [30, 17], [31, 17], [32, 17], [33, 17], [34, 17], [35, 17], [36, 17], [37, 23], [38, 26], [39, 27], [40, 28], [41, 16], [42, 17], [43, 17], [44, 17], [45, 30], [46, 17], [47, 17], [48, 17], [49, 17], [50, 17], [51, 17], [52, 17], [53, 17], [54, 45], [55, 46], [56, 31], [57, 32], [58, 47], [59, 33], [60, 48], [61, 49], [62, 34], [63, 35], [64, 53], [65, 30], [66, 57], [67, 65], [68, 57], [69, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "newTransformer", "code": "    public Transformer newTransformer()\n\tthrows TransformerConfigurationException \n    { \n\tTransformerImpl result = new TransformerImpl(new Properties(), \n\t    _indentNumber, this);\n\tif (_uriResolver != null) {\n\t    result.setURIResolver(_uriResolver);\n\t}\n\t\n\tif (_isSecureProcessing) {\n\t    result.setSecureProcessing(true);\n\t}\n\treturn result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [5, 6], [4, 7], [2, 8], [3, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 5], [7, 4], [8, 2], [9, 3], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "newTransformer", "code": "    public Transformer newTransformer(Source source) throws\n\tTransformerConfigurationException \n    {\n\tfinal Templates templates = newTemplates(source);\n\tfinal Transformer transformer = templates.newTransformer();\n\tif (_uriResolver != null) {\n\t    transformer.setURIResolver(_uriResolver);\n\t}\n\treturn(transformer);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [3, 8], [4, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 3], [9, 4], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "passWarningsToListener", "code": "    private void passWarningsToListener(Vector messages) \n\tthrows TransformerException \n    {\n\tif (_errorListener == null || messages == null) {\n\t    return;\n\t}\n\tfinal int count = messages.size();\n\tfor (int pos = 0; pos < count; pos++) {\n\t    ErrorMsg msg = (ErrorMsg)messages.elementAt(pos);\n\t    if (msg.isWarningError())\n\t        _errorListener.error(\n\t\t    new TransformerConfigurationException(msg.toString()));\n\t    else\n\t    \t_errorListener.warning(\n\t\t    new TransformerConfigurationException(msg.toString()));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [1, 8], [2, 9], [3, 10], [6, 11], [6, 12], [7, 13], [1, 14], [11, 15], [12, 16], [7, 17], [7, 18], [17, 19], [18, 20], [8, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 1], [9, 2], [10, 3], [11, 6], [12, 6], [13, 7], [14, 1], [15, 11], [16, 12], [17, 7], [18, 7], [19, 17], [20, 18], [21, 8], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "passErrorsToListener", "code": "    private void passErrorsToListener(Vector messages) {\n\ttry {\n\t    if (_errorListener == null || messages == null) {\n\t\treturn;\n\t    }\n\t    final int count = messages.size();\n\t    for (int pos = 0; pos < count; pos++) {\n\t\tString message = messages.elementAt(pos).toString();\n\t\t_errorListener.error(new TransformerException(message));", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [4, 9], [5, 10], [6, 11], [8, 12], [8, 13], [4, 14], [4, 15], [12, 16], [13, 17], [14, 18], [9, 19], [19, 20], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 4], [10, 5], [11, 6], [12, 8], [13, 8], [14, 4], [15, 4], [16, 12], [17, 13], [18, 14], [19, 9], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "newTemplates", "code": "    public Templates newTemplates(Source source)\n\tthrows TransformerConfigurationException \n    {\n\tif (_useClasspath) {\n\t    String transletName = getTransletBaseName(source);\n\t            \n\t    if (_packageName != null)\n\t        transletName = _packageName + \".\" + transletName;\n\t        \n\t    try {\n                final Class clazz = ObjectFactory.findProviderClass(\n                    transletName, ObjectFactory.findClassLoader(), true);\n\t        resetTransientAttributes();\n\t            \n\t        return new TemplatesImpl(new Class[]{clazz}, transletName, null, _indentNumber, this);\n\t    }\n\t    catch (ClassNotFoundException cnfe) {\n\t        ErrorMsg err = new ErrorMsg(ErrorMsg.CLASS_NOT_FOUND_ERR, transletName);\n\t        throw new TransformerConfigurationException(err.toString());\n\t    }\n\t    catch (Exception e) {\n\t        ErrorMsg err = new ErrorMsg(\n                                     new ErrorMsg(ErrorMsg.RUNTIME_ERROR_KEY)\n                                     + e.getMessage());\n\t        throw new TransformerConfigurationException(err.toString());\n\t    }\n\t}\n\t\n\tif (_autoTranslet)  {\n\t    byte[][] bytecodes = null;\n\t    String transletClassName = getTransletBaseName(source);\n\t    \n\t    if (_packageName != null)\n\t        transletClassName = _packageName + \".\" + transletClassName;\n\t    \n\t    if (_jarFileName != null)\n\t    \tbytecodes = getBytecodesFromJar(source, transletClassName);\n\t    else\n\t    \tbytecodes = getBytecodesFromClasses(source, transletClassName);\t    \n\t  \n\t    if (bytecodes != null) {\n\t    \tif (_debug) {\n\t      \t    if (_jarFileName != null)\n\t        \tSystem.err.println(new ErrorMsg(\n\t            \t    ErrorMsg.TRANSFORM_WITH_JAR_STR, transletClassName, _jarFileName));\n\t            else\n\t            \tSystem.err.println(new ErrorMsg(\n\t            \t    ErrorMsg.TRANSFORM_WITH_TRANSLET_STR, transletClassName));\n\t    \t}\n\n\t    \tresetTransientAttributes();\n\t    \n\t    \treturn new TemplatesImpl(bytecodes, transletClassName, null, _indentNumber, this);\t    \n\t    }\n\t}\n\t\n\tfinal XSLTC xsltc = new XSLTC();\n\tif (_debug) xsltc.setDebug(true);\n\tif (_enableInlining) xsltc.setTemplateInlining(true);\n\tif (_isSecureProcessing) xsltc.setSecureProcessing(true);\n\txsltc.init();\n\n\tif (_uriResolver != null) {\n\t    xsltc.setSourceLoader(this);\n\t}\n\n\tif ((_piParams != null) && (_piParams.get(source) != null)) {\n\t    PIParamWrapper p = (PIParamWrapper)_piParams.get(source);\n\t    if (p != null) {\n\t\txsltc.setPIParameters(p._media, p._title, p._charset);\n\t    }\n\t}\n\n\tint outputType = XSLTC.BYTEARRAY_OUTPUT;\n\tif (_generateTranslet || _autoTranslet) {\n\t    xsltc.setClassName(getTransletBaseName(source));\n\t  \n\t    if (_destinationDirectory != null)\n\t    \txsltc.setDestDirectory(_destinationDirectory);\n\t    else {\n\t    \tString xslName = getStylesheetFileName(source);\n\t    \tif (xslName != null) {\n\t      \t    File xslFile = new File(xslName);\n\t            String xslDir = xslFile.getParent();\n\t    \n\t      \t    if (xslDir != null)\n\t                xsltc.setDestDirectory(xslDir);\n\t    \t}\n\t    }\n\t  \n\t    if (_packageName != null)\n\t        xsltc.setPackageName(_packageName);\n\t\n\t    if (_jarFileName != null) {\n\t    \txsltc.setJarFileName(_jarFileName);\n\t    \toutputType = XSLTC.BYTEARRAY_AND_JAR_OUTPUT;\n\t    }\n\t    else\n\t    \toutputType = XSLTC.BYTEARRAY_AND_FILE_OUTPUT;\n\t}\n\n\tfinal InputSource input = Util.getInputSource(xsltc, source);\n\tbyte[][] bytecodes = xsltc.compile(null, input, outputType);\n\tfinal String transletName = xsltc.getClassName();\n\n\tif ((_generateTranslet || _autoTranslet)\n\t   \t&& bytecodes != null && _jarFileName != null) {\n\t    try {\n\t    \txsltc.outputToJar();\n\t    }\n\t    catch (java.io.IOException e) { }\n\t}\n\n\tresetTransientAttributes();\n\n\tif (_errorListener != this) {\n\t    try {\n\t\tpassWarningsToListener(xsltc.getWarnings());\n\t    }\n\t    catch (TransformerException e) {\n\t\tthrow new TransformerConfigurationException(e);\n\t    }\n\t}\n\telse {\n\t    xsltc.printWarnings();\n\t}\n\n    if (bytecodes == null) {\n        \n        ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_COMPILE_ERR);\n        TransformerConfigurationException exc =  new TransformerConfigurationException(err.toString());\n        \n        if (_errorListener != null) {\n            passErrorsToListener(xsltc.getErrors());\n            \n            try {\n                _errorListener.fatalError(exc);\n            } catch (TransformerException te) {\n            }    \n        }\n        else {\n            xsltc.printErrors();\n        }\n        throw exc;\n    }\n\n\treturn new TemplatesImpl(bytecodes, transletName, \n\t    xsltc.getOutputProperties(), _indentNumber, this);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "TRY", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "TRY", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CATCH", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CATCH", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 19], [2, 20], [3, 21], [0, 22], [4, 23], [8, 24], [10, 25], [11, 26], [0, 27], [19, 28], [2, 29], [2, 30], [2, 31], [2, 32], [20, 33], [3, 34], [4, 35], [23, 36], [23, 37], [5, 38], [6, 39], [7, 40], [8, 41], [8, 42], [8, 43], [10, 44], [10, 45], [25, 46], [25, 47], [26, 48], [12, 49], [13, 50], [14, 51], [15, 52], [16, 53], [16, 54], [16, 55], [16, 56], [16, 57], [17, 58], [17, 59], [17, 60], [30, 61], [3, 62], [34, 63], [35, 64], [36, 65], [37, 66], [37, 67], [39, 68], [41, 69], [42, 70], [43, 71], [8, 72], [44, 73], [46, 74], [46, 75], [47, 76], [11, 77], [49, 78], [50, 79], [51, 80], [53, 81], [54, 82], [55, 83], [58, 84], [58, 85], [58, 86], [58, 87], [59, 88], [30, 89], [61, 90], [31, 91], [32, 92], [63, 93], [34, 94], [35, 95], [66, 96], [41, 97], [69, 98], [42, 99], [70, 100], [43, 101], [43, 102], [43, 103], [71, 104], [72, 105], [73, 106], [53, 107], [53, 108], [81, 109], [54, 110], [54, 111], [82, 112], [55, 113], [83, 114], [56, 115], [57, 116], [84, 117], [84, 118], [85, 119], [85, 120], [86, 121], [58, 122], [59, 123], [88, 124], [60, 125], [30, 126], [89, 127], [30, 128], [91, 129], [93, 130], [94, 131], [41, 132], [41, 133], [101, 134], [44, 135], [45, 136], [107, 137], [53, 138], [110, 139], [111, 140], [113, 141], [117, 142], [119, 143], [121, 144], [87, 145], [123, 146], [89, 147], [128, 148], [101, 149], [101, 150], [101, 151], [134, 152], [102, 153], [137, 154], [108, 155], [141, 156], [142, 157], [118, 158], [143, 159], [120, 160], [145, 161], [145, 162], [146, 163], [149, 164], [155, 165], [156, 166], [158, 167], [163, 168], [149, 169], [164, 170], [150, 171], [151, 172], [155, 173], [155, 174], [165, 175], [167, 176], [167, 177], [173, 178], [174, 179], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 1], [20, 2], [21, 3], [22, 0], [23, 4], [24, 8], [25, 10], [26, 11], [27, 0], [28, 19], [29, 2], [30, 2], [31, 2], [32, 2], [33, 20], [34, 3], [35, 4], [36, 23], [37, 23], [38, 5], [39, 6], [40, 7], [41, 8], [42, 8], [43, 8], [44, 10], [45, 10], [46, 25], [47, 25], [48, 26], [49, 12], [50, 13], [51, 14], [52, 15], [53, 16], [54, 16], [55, 16], [56, 16], [57, 16], [58, 17], [59, 17], [60, 17], [61, 30], [62, 3], [63, 34], [64, 35], [65, 36], [66, 37], [67, 37], [68, 39], [69, 41], [70, 42], [71, 43], [72, 8], [73, 44], [74, 46], [75, 46], [76, 47], [77, 11], [78, 49], [79, 50], [80, 51], [81, 53], [82, 54], [83, 55], [84, 58], [85, 58], [86, 58], [87, 58], [88, 59], [89, 30], [90, 61], [91, 31], [92, 32], [93, 63], [94, 34], [95, 35], [96, 66], [97, 41], [98, 69], [99, 42], [100, 70], [101, 43], [102, 43], [103, 43], [104, 71], [105, 72], [106, 73], [107, 53], [108, 53], [109, 81], [110, 54], [111, 54], [112, 82], [113, 55], [114, 83], [115, 56], [116, 57], [117, 84], [118, 84], [119, 85], [120, 85], [121, 86], [122, 58], [123, 59], [124, 88], [125, 60], [126, 30], [127, 89], [128, 30], [129, 91], [130, 93], [131, 94], [132, 41], [133, 41], [134, 101], [135, 44], [136, 45], [137, 107], [138, 53], [139, 110], [140, 111], [141, 113], [142, 117], [143, 119], [144, 121], [145, 87], [146, 123], [147, 89], [148, 128], [149, 101], [150, 101], [151, 101], [152, 134], [153, 102], [154, 137], [155, 108], [156, 141], [157, 142], [158, 118], [159, 143], [160, 120], [161, 145], [162, 145], [163, 146], [164, 149], [165, 155], [166, 156], [167, 158], [168, 163], [169, 149], [170, 164], [171, 150], [172, 151], [173, 155], [174, 155], [175, 165], [176, 167], [177, 167], [178, 173], [179, 174], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179]]}, {"function_name": "newTemplatesHandler", "code": "    public TemplatesHandler newTemplatesHandler() \n\tthrows TransformerConfigurationException \n    { \n\tfinal TemplatesHandlerImpl handler = \n\t    new TemplatesHandlerImpl(_indentNumber, this);\n\tif (_uriResolver != null) {\n\t    handler.setURIResolver(_uriResolver);\n\t}\n\treturn handler;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler() \n\tthrows TransformerConfigurationException \n    {\n\tfinal Transformer transformer = newTransformer();\n\tif (_uriResolver != null) {\n\t    transformer.setURIResolver(_uriResolver);\n\t}\n\treturn new TransformerHandlerImpl((TransformerImpl) transformer);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [3, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 3], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler(Source src) \n\tthrows TransformerConfigurationException \n    { \n\tfinal Transformer transformer = newTransformer(src);\n\tif (_uriResolver != null) {\n\t    transformer.setURIResolver(_uriResolver);\n\t}\n\treturn new TransformerHandlerImpl((TransformerImpl) transformer);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [6, 7], [3, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 6], [8, 3], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler(Templates templates) \n\tthrows TransformerConfigurationException  \n    {\n\tfinal Transformer transformer = templates.newTransformer();\n\tfinal TransformerImpl internal = (TransformerImpl)transformer;\n\treturn new TransformerHandlerImpl(internal);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "newXMLFilter", "code": "    public XMLFilter newXMLFilter(Source src) \n\tthrows TransformerConfigurationException \n    {\n\tTemplates templates = newTemplates(src);\n\tif (templates == null) return null; \n\treturn newXMLFilter(templates);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [3, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "newXMLFilter", "code": "    public XMLFilter newXMLFilter(Templates templates) \n\tthrows TransformerConfigurationException \n    {\n\ttry {\n      \t    return new org.apache.xalan.xsltc.trax.TrAXFilter(templates);\n    \t}\n\tcatch (TransformerConfigurationException e1) {\n      \t    if (_errorListener != null) {\n                try {\n          \t    _errorListener.fatalError(e1);\n          \t    return null;\n        \t}\n\t\tcatch (TransformerException e2) {\n          \t    new TransformerConfigurationException(e2);\n        \t}\n      \t    }\n      \t    throw e1;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "IF", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [6, 8], [6, 9], [8, 10], [9, 11], [9, 12], [12, 13], [9, 14], [11, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 6], [9, 6], [10, 8], [11, 9], [12, 9], [13, 12], [14, 9], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "error", "code": "    public void error(TransformerException e)\n\tthrows TransformerException \n    {\n\tThrowable wrapped = e.getException();\n        if (wrapped != null) {\n            System.err.println(new ErrorMsg(ErrorMsg.ERROR_PLUS_WRAPPED_MSG,\n                                            e.getMessageAndLocation(),\n                                            wrapped.getMessage()));\n        } else {\n            System.err.println(new ErrorMsg(ErrorMsg.ERROR_MSG,\n                                            e.getMessageAndLocation()));\n\t}\n\tthrow e; \t", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [2, 9], [8, 10], [9, 11], [10, 12], [11, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 2], [10, 8], [11, 9], [12, 10], [13, 11], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "fatalError", "code": "    public void fatalError(TransformerException e)\n\tthrows TransformerException \n    {\n\tThrowable wrapped = e.getException();\n        if (wrapped != null) {\n            System.err.println(new ErrorMsg(ErrorMsg.FATAL_ERR_PLUS_WRAPPED_MSG,\n                                            e.getMessageAndLocation(),\n                                            wrapped.getMessage()));\n        } else {\n            System.err.println(new ErrorMsg(ErrorMsg.FATAL_ERR_MSG,\n                                            e.getMessageAndLocation()));\n        }\n\tthrow e;", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [2, 9], [8, 10], [9, 11], [10, 12], [11, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 2], [10, 8], [11, 9], [12, 10], [13, 11], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "warning", "code": "    public void warning(TransformerException e)\n\tthrows TransformerException \n    {\n\tThrowable wrapped = e.getException();\n\tif (wrapped != null) {\n            System.err.println(new ErrorMsg(ErrorMsg.WARNING_PLUS_WRAPPED_MSG,\n                                            e.getMessageAndLocation(),\n                                            wrapped.getMessage()));\n\t} else {\n            System.err.println(new ErrorMsg(ErrorMsg.WARNING_MSG,\n                                            e.getMessageAndLocation()));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [1, 8], [7, 9], [8, 10], [9, 11], [10, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 1], [9, 7], [10, 8], [11, 9], [12, 10], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "loadSource", "code": "    public InputSource loadSource(String href, String context, XSLTC xsltc) {\n\ttry {\n\t    if (_uriResolver != null) {\n\t\tfinal Source source = _uriResolver.resolve(href, context);\n\t\tif (source != null) {\n\t\t    return Util.getInputSource(xsltc, source);\n\t\t}\n\t    }\n\t}\n\tcatch (TransformerException e) {\n\t}\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [8, 9], [8, 10], [8, 11], [9, 12], [10, 13], [10, 14], [13, 15], [11, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 8], [10, 8], [11, 8], [12, 9], [13, 10], [14, 10], [15, 13], [16, 11], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "resetTransientAttributes", "code": "    private void resetTransientAttributes() {\n\t_transletName = DEFAULT_TRANSLET_NAME;\n\t_destinationDirectory = null;\n\t_packageName = null;\n\t_jarFileName = null;    ", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getBytecodesFromClasses", "code": "    private byte[][] getBytecodesFromClasses(Source source, String fullClassName)\n    {\n    \tif (fullClassName == null)\n    \t    return null;\n    \t  \n    \tString xslFileName = getStylesheetFileName(source);\n    \tFile xslFile = null;\n    \tif (xslFileName != null)\n    \t    xslFile = new File(xslFileName);\n    \t\n    \tfinal String transletName;\n    \tint lastDotIndex = fullClassName.lastIndexOf('.');\n    \tif (lastDotIndex > 0)\n    \t    transletName = fullClassName.substring(lastDotIndex+1);\n    \telse\n    \t    transletName = fullClassName;\n    \t    \t\n    \tString transletPath = fullClassName.replace('.', '/');\n    \tif (_destinationDirectory != null) {\n    \t    transletPath = _destinationDirectory + \"/\" + transletPath + \".class\";\n    \t}\n    \telse {\n    \t    if (xslFile != null && xslFile.getParent() != null)\n    \t    \ttransletPath = xslFile.getParent() + \"/\" + transletPath + \".class\";\n    \t    else\n    \t    \ttransletPath = transletPath + \".class\";\n    \t}\n    \t    \t    \t\n    \tFile transletFile = new File(transletPath);\n    \tif (!transletFile.exists())\n    \t    return null;\n    \t    \t  \n    \tif (xslFile != null && xslFile.exists()) {\n    \t    long xslTimestamp = xslFile.lastModified();\n    \t    long transletTimestamp = transletFile.lastModified();\n    \t    if (transletTimestamp < xslTimestamp)\n    \t    \treturn null;\n    \t}\n    \t\n    \tVector bytecodes = new Vector();\n    \tint fileLength = (int)transletFile.length();\n    \tif (fileLength > 0) {\n    \t    FileInputStream input = null;\n    \t    try {\n    \t    \tinput = new FileInputStream(transletFile);\n    \t    }\n    \t    catch (FileNotFoundException e) {\n    \t    \treturn null;\n    \t    }\n    \t  \n    \t    byte[] bytes = new byte[fileLength];\n    \t    try {\n\t    \treadFromInputStream(bytes, input, fileLength);\n\t    \tinput.close();\n\t    }\n\t    catch (IOException e) {\n    \t    \treturn null;\n    \t    }\n    \t  \n    \t    bytecodes.addElement(bytes);\n    \t}\n    \telse\n    \t    return null;\n    \t\n    \tString transletParentDir = transletFile.getParent();\n    \tif (transletParentDir == null)\n    \t    transletParentDir = System.getProperty(\"user.dir\");\n    \t  \n    \tFile transletParentFile = new File(transletParentDir);\n    \t\n    \tfinal String transletAuxPrefix = transletName + \"$\";\n    \tFile[] auxfiles = transletParentFile.listFiles(new FilenameFilter() {\n        \tpublic boolean accept(File dir, String name)\n    \t\t{\n    \t\t    return (name.endsWith(\".class\") && name.startsWith(transletAuxPrefix));\t\n    \t\t}\n    \t      });\n    \t\n    \tfor (int i = 0; i < auxfiles.length; i++)\n    \t{\n    \t    File auxfile = auxfiles[i];\n    \t    int auxlength = (int)auxfile.length();\n    \t    if (auxlength > 0) {\n    \t    \tFileInputStream auxinput = null;\n    \t    \ttry {\n    \t      \t    auxinput = new FileInputStream(auxfile);\n    \t    \t}\n    \t    \tcatch (FileNotFoundException e) {\n    \t      \t    continue;\n    \t    \t}\n    \t  \n    \t    \tbyte[] bytes = new byte[auxlength];\n    \t    \n    \t    \ttry {\n    \t      \t    readFromInputStream(bytes, auxinput, auxlength);\n    \t      \t    auxinput.close();\n    \t    \t}\n    \t    \tcatch (IOException e) {\n    \t      \t    continue;\n    \t    \t}\n    \t    \n    \t    \tbytecodes.addElement(bytes);   \t    \n    \t    }\n    \t}\n    \t\n    \tfinal int count = bytecodes.size();\n    \tif ( count > 0) {\n    \t    final byte[][] result = new byte[count][1];\n    \t    for (int i = 0; i < count; i++) {\n    \t    \tresult[i] = (byte[])bytecodes.elementAt(i);\n    \t    }\n    \t  \n    \t    return result;\n    \t}\n    \telse\n    \t    return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "CATCH", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "FUNC_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "CALL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "CALL", "BREAK_CONTINUE", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [1, 26], [1, 27], [3, 28], [7, 29], [9, 30], [9, 31], [12, 32], [13, 33], [13, 34], [15, 35], [17, 36], [20, 37], [23, 38], [23, 39], [26, 40], [1, 41], [1, 42], [1, 43], [27, 44], [2, 45], [3, 46], [3, 47], [3, 48], [4, 49], [5, 50], [6, 51], [7, 52], [29, 53], [8, 54], [30, 55], [9, 56], [9, 57], [9, 58], [9, 59], [31, 60], [11, 61], [12, 62], [12, 63], [12, 64], [32, 65], [32, 66], [33, 67], [14, 68], [15, 69], [35, 70], [16, 71], [17, 72], [17, 73], [36, 74], [18, 75], [20, 76], [37, 77], [21, 78], [22, 79], [38, 80], [39, 81], [42, 82], [46, 83], [3, 84], [49, 85], [50, 86], [52, 87], [9, 88], [56, 89], [58, 90], [10, 91], [62, 92], [62, 93], [66, 94], [69, 95], [15, 96], [71, 97], [71, 98], [73, 99], [75, 100], [76, 101], [46, 102], [46, 103], [46, 104], [46, 105], [83, 106], [85, 107], [87, 108], [89, 109], [56, 110], [56, 111], [90, 112], [58, 113], [59, 114], [92, 115], [63, 116], [64, 117], [69, 118], [69, 119], [95, 120], [95, 121], [96, 122], [99, 123], [42, 124], [42, 125], [43, 126], [46, 127], [102, 128], [104, 129], [47, 130], [107, 131], [107, 132], [107, 133], [109, 134], [112, 135], [113, 136], [118, 137], [119, 138], [120, 139], [120, 140], [121, 141], [122, 142], [122, 143], [123, 144], [128, 145], [102, 146], [102, 147], [129, 148], [104, 149], [105, 150], [131, 151], [137, 152], [138, 153], [138, 154], [143, 155], [124, 156], [149, 157], [151, 158], [151, 159], [154, 160], [155, 161], [159, 162], [160, 163], [160, 164], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 1], [27, 1], [28, 3], [29, 7], [30, 9], [31, 9], [32, 12], [33, 13], [34, 13], [35, 15], [36, 17], [37, 20], [38, 23], [39, 23], [40, 26], [41, 1], [42, 1], [43, 1], [44, 27], [45, 2], [46, 3], [47, 3], [48, 3], [49, 4], [50, 5], [51, 6], [52, 7], [53, 29], [54, 8], [55, 30], [56, 9], [57, 9], [58, 9], [59, 9], [60, 31], [61, 11], [62, 12], [63, 12], [64, 12], [65, 32], [66, 32], [67, 33], [68, 14], [69, 15], [70, 35], [71, 16], [72, 17], [73, 17], [74, 36], [75, 18], [76, 20], [77, 37], [78, 21], [79, 22], [80, 38], [81, 39], [82, 42], [83, 46], [84, 3], [85, 49], [86, 50], [87, 52], [88, 9], [89, 56], [90, 58], [91, 10], [92, 62], [93, 62], [94, 66], [95, 69], [96, 15], [97, 71], [98, 71], [99, 73], [100, 75], [101, 76], [102, 46], [103, 46], [104, 46], [105, 46], [106, 83], [107, 85], [108, 87], [109, 89], [110, 56], [111, 56], [112, 90], [113, 58], [114, 59], [115, 92], [116, 63], [117, 64], [118, 69], [119, 69], [120, 95], [121, 95], [122, 96], [123, 99], [124, 42], [125, 42], [126, 43], [127, 46], [128, 102], [129, 104], [130, 47], [131, 107], [132, 107], [133, 107], [134, 109], [135, 112], [136, 113], [137, 118], [138, 119], [139, 120], [140, 120], [141, 121], [142, 122], [143, 122], [144, 123], [145, 128], [146, 102], [147, 102], [148, 129], [149, 104], [150, 105], [151, 131], [152, 137], [153, 138], [154, 138], [155, 143], [156, 124], [157, 149], [158, 151], [159, 151], [160, 154], [161, 155], [162, 159], [163, 160], [164, 160], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164]]}, {"function_name": "getBytecodesFromJar", "code": "    private byte[][] getBytecodesFromJar(Source source, String fullClassName)\n    {\n    \tString xslFileName = getStylesheetFileName(source);\n    \tFile xslFile = null;\n    \tif (xslFileName != null)\n    \t    xslFile = new File(xslFileName);\n      \n      \tString jarPath = null;\n      \tif (_destinationDirectory != null)\n            jarPath = _destinationDirectory + \"/\" + _jarFileName;\n      \telse {\n      \t    if (xslFile != null && xslFile.getParent() != null)\n    \t    \tjarPath = xslFile.getParent() + \"/\" + _jarFileName;\n    \t    else\n    \t    \tjarPath = _jarFileName;\n    \t}\n            \n      \tFile file = new File(jarPath);\n      \tif (!file.exists())\n            return null;\n\n    \tif (xslFile != null && xslFile.exists()) {\n    \t    long xslTimestamp = xslFile.lastModified();\n    \t    long transletTimestamp = file.lastModified();\n    \t    if (transletTimestamp < xslTimestamp)\n    \t        return null;\n    \t}\n      \n      \tZipFile jarFile = null;\n      \ttry {\n            jarFile = new ZipFile(file);\n      \t}\n      \tcatch (IOException e) {\n            return null;\n      \t}\n      \n      \tString transletPath = fullClassName.replace('.', '/');\n      \tString transletAuxPrefix = transletPath + \"$\";\n      \tString transletFullName = transletPath + \".class\";\n      \n      \tVector bytecodes = new Vector();      \n      \n      \tEnumeration entries = jarFile.entries();\n      \twhile (entries.hasMoreElements())\n      \t{\n            ZipEntry entry = (ZipEntry)entries.nextElement();\n            String entryName = entry.getName();\n            if (entry.getSize() > 0 && \n            \t  (entryName.equals(transletFullName) ||\n              \t  (entryName.endsWith(\".class\") && \n              \t      entryName.startsWith(transletAuxPrefix))))\n            {\n            \ttry {\n              \t    InputStream input = jarFile.getInputStream(entry);\n              \t    int size = (int)entry.getSize();\n              \t    byte[] bytes = new byte[size];\n              \t    readFromInputStream(bytes, input, size);\n              \t    input.close();\n              \t    bytecodes.addElement(bytes);\n            \t}\n            \tcatch (IOException e) {\n              \t    return null;\n            \t}          \n            }\n      \t}\n      \n    \tfinal int count = bytecodes.size();\n    \tif (count > 0) {\n    \t    final byte[][] result = new byte[count][1];\n    \t    for (int i = 0; i < count; i++) {\n    \t    \tresult[i] = (byte[])bytecodes.elementAt(i);\n    \t    }\n    \t  \n    \t    return result;\n    \t}\n    \telse\n    \t    return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "CALL", "CATCH", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [1, 22], [3, 23], [9, 24], [11, 25], [12, 26], [12, 27], [14, 28], [16, 29], [21, 30], [1, 31], [1, 32], [1, 33], [22, 34], [2, 35], [3, 36], [3, 37], [3, 38], [4, 39], [5, 40], [6, 41], [7, 42], [8, 43], [24, 44], [9, 45], [10, 46], [11, 47], [11, 48], [11, 49], [25, 50], [25, 51], [26, 52], [13, 53], [14, 54], [14, 55], [28, 56], [15, 57], [16, 58], [29, 59], [17, 60], [18, 61], [32, 62], [36, 63], [41, 64], [42, 65], [43, 66], [43, 67], [44, 68], [45, 69], [47, 70], [47, 71], [51, 72], [54, 73], [55, 74], [58, 75], [36, 76], [63, 77], [63, 78], [37, 79], [70, 80], [48, 81], [49, 82], [54, 83], [54, 84], [73, 85], [73, 86], [74, 87], [32, 88], [32, 89], [33, 90], [76, 91], [76, 92], [76, 93], [76, 94], [77, 95], [77, 96], [78, 97], [78, 98], [38, 99], [84, 100], [85, 101], [85, 102], [86, 103], [87, 104], [91, 105], [76, 106], [76, 107], [76, 108], [95, 109], [95, 110], [100, 111], [88, 112], [105, 113], [94, 114], [110, 115], [111, 116], [111, 117], [93, 118], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 1], [23, 3], [24, 9], [25, 11], [26, 12], [27, 12], [28, 14], [29, 16], [30, 21], [31, 1], [32, 1], [33, 1], [34, 22], [35, 2], [36, 3], [37, 3], [38, 3], [39, 4], [40, 5], [41, 6], [42, 7], [43, 8], [44, 24], [45, 9], [46, 10], [47, 11], [48, 11], [49, 11], [50, 25], [51, 25], [52, 26], [53, 13], [54, 14], [55, 14], [56, 28], [57, 15], [58, 16], [59, 29], [60, 17], [61, 18], [62, 32], [63, 36], [64, 41], [65, 42], [66, 43], [67, 43], [68, 44], [69, 45], [70, 47], [71, 47], [72, 51], [73, 54], [74, 55], [75, 58], [76, 36], [77, 63], [78, 63], [79, 37], [80, 70], [81, 48], [82, 49], [83, 54], [84, 54], [85, 73], [86, 73], [87, 74], [88, 32], [89, 32], [90, 33], [91, 76], [92, 76], [93, 76], [94, 76], [95, 77], [96, 77], [97, 78], [98, 78], [99, 38], [100, 84], [101, 85], [102, 85], [103, 86], [104, 87], [105, 91], [106, 76], [107, 76], [108, 76], [109, 95], [110, 95], [111, 100], [112, 88], [113, 105], [114, 94], [115, 110], [116, 111], [117, 111], [118, 93], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118]]}, {"function_name": "readFromInputStream", "code": "    private void readFromInputStream(byte[] bytes, InputStream input, int size)\n      \tthrows IOException\n    {\n      int n = 0;\n      int offset = 0;\n      int length = size;\n      while (length > 0 && (n = input.read(bytes, offset, length)) > 0) {\n          offset = offset + n;\n          length = length - n;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [8, 10], [3, 11], [4, 12], [1, 13], [1, 14], [9, 15], [9, 16], [10, 17], [13, 18], [14, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 8], [11, 3], [12, 4], [13, 1], [14, 1], [15, 9], [16, 9], [17, 10], [18, 13], [19, 14], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getTransletBaseName", "code": "    private String getTransletBaseName(Source source)\n    {      \n        String transletBaseName = null;\n        if (!_transletName.equals(DEFAULT_TRANSLET_NAME))\n            return _transletName;\n      \telse {\n            String systemId = source.getSystemId();\n            if (systemId != null) {\n          \tString baseName = Util.baseName(systemId);\n\t\tif (baseName != null) {\n\t\t    baseName = Util.noExtName(baseName);\n\t\t    transletBaseName = Util.toJavaName(baseName);\n\t\t}\n            }\n      \t}\n      \n        return (transletBaseName != null) ? transletBaseName : DEFAULT_TRANSLET_NAME;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "COND_EXPR", "RETURN", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [5, 8], [2, 9], [2, 10], [3, 11], [8, 12], [9, 13], [9, 14], [9, 15], [13, 16], [10, 17], [14, 18], [18, 19], [15, 20], [14, 21], [14, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 5], [9, 2], [10, 2], [11, 3], [12, 8], [13, 9], [14, 9], [15, 9], [16, 13], [17, 10], [18, 14], [19, 18], [20, 15], [21, 14], [22, 14], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getStylesheetFileName", "code": "    private String getStylesheetFileName(Source source)\n    {\n    \tString systemId = source.getSystemId();\n      \tif (systemId != null) {\n            File file = new File(systemId);\n            if (file.exists())\n                return systemId;\n            else {\n              \tURL url = null;\n          \ttry {\n            \t    url = new URL(systemId);\n          \t}\n          \tcatch (MalformedURLException e) {\n            \t    return null;\n          \t}\n          \n          \tif (\"file\".equals(url.getProtocol()))\n            \t    return url.getFile();\n          \telse\n            \t    return null;\n            }\n      \t}\n      \telse\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "IF", "TRY", "VAR_DECL", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [5, 9], [2, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [8, 16], [13, 17], [13, 18], [13, 19], [14, 20], [17, 21], [18, 22], [19, 23], [20, 24], [14, 25], [15, 26], [23, 27], [24, 28], [25, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 5], [10, 2], [11, 7], [12, 7], [13, 7], [14, 7], [15, 7], [16, 8], [17, 13], [18, 13], [19, 13], [20, 14], [21, 17], [22, 18], [23, 19], [24, 20], [25, 14], [26, 15], [27, 23], [28, 24], [29, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getDTMManagerClass", "code": "    protected Class getDTMManagerClass() {\n        return m_DTMManagerClass;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "TransformerFactoryImpl", "code": "    public TransformerFactoryImpl() {\n        m_DTMManagerClass = XSLTCDTMManager.getDTMManagerClass();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-2708", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/loadbalancer/LoadBalancerType.java", "language": "java", "name": "org.apache.camel.model.loadbalancer.LoadBalancerType", "code": "@XmlType(name = \"loadBalancerType\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class LoadBalancerType extends IdentifiedType implements LoadBalancer {\n\n    @XmlTransient\n    private LoadBalancer loadBalancer;\n    @XmlTransient\n    private String loadBalancerTypeName;\n\n    public LoadBalancerType() {\n    }\n\n    public LoadBalancerType(LoadBalancer loadBalancer) {\n        this.loadBalancer = loadBalancer;\n    }\n\n    protected LoadBalancerType(String loadBalancerTypeName) {\n        this.loadBalancerTypeName = loadBalancerTypeName;\n    }\n\n    public static LoadBalancer getLoadBalancer(RouteContext routeContext, LoadBalancerType type, String ref) {\n        if (type == null) {\n            notNull(ref, \"ref or LoadBalancerType\");\n            LoadBalancer loadBalancer = routeContext.lookup(ref, LoadBalancer.class);\n            if (loadBalancer instanceof LoadBalancerType) {\n                type = (LoadBalancerType) loadBalancer;\n            } else {\n                return loadBalancer;\n            }\n        }\n        return type.getLoadBalancer(routeContext);\n    }\n\n\n    /**\n     * Sets a named property on the data format instance using introspection\n     */\n    protected void setProperty(Object bean, String name, Object value) {\n        try {\n            IntrospectionSupport.setProperty(bean, name, value);\n        } catch (Exception e) {\n            throw new IllegalArgumentException(\"Failed to set property \" + name + \" on \" + bean\n                                               + \". Reason: \" + e, e);\n        }\n    }\n\n    /**\n     * Allows derived classes to customize the load balancer\n     */\n    protected void configureLoadBalancer(LoadBalancer loadBalancer) {\n    }\n\n    public LoadBalancer getLoadBalancer(RouteContext routeContext) {\n        if (loadBalancer == null) {\n            loadBalancer = createLoadBalancer(routeContext);\n            ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n            configureLoadBalancer(loadBalancer);\n        }\n        return loadBalancer;\n    }\n\n    /**\n     * Factory method to create the load balancer instance\n     */\n    protected LoadBalancer createLoadBalancer(RouteContext routeContext) {\n        if (loadBalancerTypeName != null) {\n            Class type = ObjectHelper.loadClass(loadBalancerTypeName, getClass().getClassLoader());\n            if (type == null) {\n                throw new IllegalArgumentException(\"The class \" + loadBalancerTypeName + \" is not on the classpath! Cannot use the loadBalancer \" + this);\n            }\n            return (LoadBalancer) ObjectHelper.newInstance(type);\n        }\n        return null;\n    }\n\n\n    public void addProcessor(Processor processor) {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.addProcessor(processor);\n    }\n\n    public List<Processor> getProcessors() {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        return loadBalancer.getProcessors();\n    }\n\n    public void removeProcessor(Processor processor) {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.removeProcessor(processor);\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.process(exchange);\n    }\n\n    public boolean process(Exchange exchange, final AsyncCallback callback) {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        \n        return loadBalancer.process(exchange, new AsyncCallback() {\n            public void done(boolean doneSynchronously) {\n                if (doneSynchronously) {\n                    return;\n                } else {\n                    callback.done(doneSynchronously);", "functions": [{"function_name": "getLoadBalancer", "code": "    public static LoadBalancer getLoadBalancer(RouteContext routeContext, LoadBalancerType type, String ref) {\n        if (type == null) {\n            notNull(ref, \"ref or LoadBalancerType\");\n            LoadBalancer loadBalancer = routeContext.lookup(ref, LoadBalancer.class);\n            if (loadBalancer instanceof LoadBalancerType) {\n                type = (LoadBalancerType) loadBalancer;\n            } else {\n                return loadBalancer;\n            }\n        }\n        return type.getLoadBalancer(routeContext);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [7, 10], [8, 11], [2, 12], [8, 13], [9, 14], [12, 15], [8, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 7], [11, 8], [12, 2], [13, 8], [14, 9], [15, 12], [16, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setProperty", "code": "    protected void setProperty(Object bean, String name, Object value) {\n        try {\n            IntrospectionSupport.setProperty(bean, name, value);\n        } catch (Exception e) {\n            throw new IllegalArgumentException(\"Failed to set property \" + name + \" on \" + bean\n                                               + \". Reason: \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [6, 8], [8, 9], [9, 10], [10, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 6], [9, 8], [10, 9], [11, 10], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "configureLoadBalancer", "code": "    protected void configureLoadBalancer(LoadBalancer loadBalancer) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLoadBalancer", "code": "    public LoadBalancer getLoadBalancer(RouteContext routeContext) {\n        if (loadBalancer == null) {\n            loadBalancer = createLoadBalancer(routeContext);\n            ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n            configureLoadBalancer(loadBalancer);\n        }\n        return loadBalancer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [2, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 2], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createLoadBalancer", "code": "    protected LoadBalancer createLoadBalancer(RouteContext routeContext) {\n        if (loadBalancerTypeName != null) {\n            Class type = ObjectHelper.loadClass(loadBalancerTypeName, getClass().getClassLoader());\n            if (type == null) {\n                throw new IllegalArgumentException(\"The class \" + loadBalancerTypeName + \" is not on the classpath! Cannot use the loadBalancer \" + this);\n            }\n            return (LoadBalancer) ObjectHelper.newInstance(type);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [7, 10], [6, 11], [7, 12], [10, 13], [8, 14], [12, 15], [14, 16], [15, 17], [16, 18], [17, 19], [19, 20], [19, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 7], [11, 6], [12, 7], [13, 10], [14, 8], [15, 12], [16, 14], [17, 15], [18, 16], [19, 17], [20, 19], [21, 19], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "addProcessor", "code": "    public void addProcessor(Processor processor) {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.addProcessor(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getProcessors", "code": "    public List<Processor> getProcessors() {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        return loadBalancer.getProcessors();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeProcessor", "code": "    public void removeProcessor(Processor processor) {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.removeProcessor(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        loadBalancer.process(exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "process", "code": "    public boolean process(Exchange exchange, final AsyncCallback callback) {\n        ObjectHelper.notNull(loadBalancer, \"loadBalancer\");\n        \n        return loadBalancer.process(exchange, new AsyncCallback() {\n            public void done(boolean doneSynchronously) {\n                if (doneSynchronously) {\n                    return;\n                } else {\n                    callback.done(doneSynchronously);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "IF", "PARAM", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [5, 7], [6, 8], [8, 9], [8, 10], [9, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 5], [8, 6], [9, 8], [10, 8], [11, 9], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "LoadBalancerType", "code": "    public LoadBalancerType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "LoadBalancerType", "code": "    public LoadBalancerType(LoadBalancer loadBalancer) {\n        this.loadBalancer = loadBalancer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LoadBalancerType", "code": "    protected LoadBalancerType(String loadBalancerTypeName) {\n        this.loadBalancerTypeName = loadBalancerTypeName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-3.0-6127", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/ddf/EscherProperty.java", "language": "java", "name": "org.apache.poi.ddf.EscherProperty", "code": "abstract public class EscherProperty\n{\n    protected short  id;\n\n    /**\n     * The id is distinct from the actual property number.  The id includes the property number the blip id\n     * flag and an indicator whether the property is complex or not.\n     */\n    public EscherProperty( short id )\n    {\n        this.id   = id;\n    }\n\n    /**\n     * Constructs a new escher property.  The three parameters are combined to form a property\n     * id.\n     */\n    public EscherProperty( short propertyNumber, boolean isComplex, boolean isBlipId )\n    {\n        this.id   = (short)(propertyNumber +\n                (isComplex ? 0x8000 : 0x0) +\n                (isBlipId ? 0x4000 : 0x0));\n    }\n\n    public short getId()\n    {\n        return id;\n    }\n\n    public short getPropertyNumber()\n    {\n        return (short) ( id & (short) 0x3FFF );\n    }\n\n    public boolean isComplex()\n    {\n        return ( id & (short) 0x8000 ) != 0;\n    }\n\n    public boolean isBlipId()\n    {\n        return ( id & (short) 0x4000 ) != 0;\n    }\n\n    public String getName()\n    {\n        return EscherProperties.getPropertyName(id);\n    }\n\n    /**\n     * Most properties are just 6 bytes in length.  Override this if we're\n     * dealing with complex properties.\n     */\n    public int getPropertySize()\n    {\n        return 6;\n    }\n\n    /**\n     * Escher properties consist of a simple fixed length part and a complex variable length part.\n     * The fixed length part is serialized first.\n     */\n    abstract public int serializeSimplePart( byte[] data, int pos );\n    /**\n     * Escher properties consist of a simple fixed length part and a complex variable length part.\n     * The fixed length part is serialized first.\n     */\n    abstract public int serializeComplexPart( byte[] data, int pos );", "functions": [{"function_name": "getId", "code": "    public short getId()\n    {\n        return id;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPropertyNumber", "code": "    public short getPropertyNumber()\n    {\n        return (short) ( id & (short) 0x3FFF );", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isComplex", "code": "    public boolean isComplex()\n    {\n        return ( id & (short) 0x8000 ) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isBlipId", "code": "    public boolean isBlipId()\n    {\n        return ( id & (short) 0x4000 ) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getName", "code": "    public String getName()\n    {\n        return EscherProperties.getPropertyName(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPropertySize", "code": "    public int getPropertySize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "serializeSimplePart", "code": "    abstract public int serializeSimplePart( byte[] data, int pos );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "serializeComplexPart", "code": "    abstract public int serializeComplexPart( byte[] data, int pos );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "EscherProperty", "code": "    public EscherProperty( short id )\n    {\n        this.id   = id;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "EscherProperty", "code": "    public EscherProperty( short propertyNumber, boolean isComplex, boolean isBlipId )\n    {\n        this.id   = (short)(propertyNumber +\n                (isComplex ? 0x8000 : 0x0) +\n                (isBlipId ? 0x4000 : 0x0));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [5, 7], [6, 8], [6, 9], [7, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 5], [8, 6], [9, 6], [10, 7], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 1}
{"sample_id": "ant-1.7-833", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/selectors/SizeSelector.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.SizeSelector", "code": "public class SizeSelector extends BaseExtendSelector {\n\n    /** Constants for kilo, kibi etc */\n    private static final int  KILO = 1000;\n    private static final int  KIBI = 1024;\n    private static final int  KIBI_POS = 4;\n    private static final int  MEGA = 1000000;\n    private static final int  MEGA_POS = 9;\n    private static final int  MEBI = 1048576;\n    private static final int  MEBI_POS = 13;\n    private static final long GIGA = 1000000000L;\n    private static final int  GIGA_POS = 18;\n    private static final long GIBI = 1073741824L;\n    private static final int  GIBI_POS = 22;\n    private static final long TERA = 1000000000000L;\n    private static final int  TERA_POS = 27;\n    private static final long TEBI = 1099511627776L;\n    private static final int  TEBI_POS = 31;\n    private static final int  END_POS = 36;\n\n    /** Used for parameterized custom selector */\n    public static final String SIZE_KEY = \"value\";\n    /** Used for parameterized custom selector */\n    public static final String UNITS_KEY = \"units\";\n    /** Used for parameterized custom selector */\n    public static final String WHEN_KEY = \"when\";\n\n    private long size = -1;\n    private long multiplier = 1;\n    private long sizelimit = -1;\n    private Comparison when = Comparison.EQUAL;\n\n    /**\n     * Creates a new <code>SizeSelector</code> instance.\n     *\n     */\n    public SizeSelector() {\n    }\n\n    /**\n     * Returns a <code>String</code> object representing the specified\n     * SizeSelector. This is \"{sizeselector value: \" + <\"compare\",\n     * \"less\", \"more\", \"equal\"> + \"}\".\n     * @return a string describing this object\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer(\"{sizeselector value: \");\n        buf.append(sizelimit);\n        buf.append(\"compare: \").append(when.getValue());\n        buf.append(\"}\");\n        return buf.toString();\n    }\n\n    /**\n     * A size selector needs to know what size to base its selecting on.\n     * This will be further modified by the multiplier to get an\n     * actual size limit.\n     *\n     * @param size the size to select against expressed in units.\n     */\n    public void setValue(long size) {\n        this.size = size;\n        if (multiplier != 0 && size > -1) {\n            sizelimit = size * multiplier;\n        }\n    }\n\n    /**\n     * Sets the units to use for the comparison. This is a little\n     * complicated because common usage has created standards that\n     * play havoc with capitalization rules. Thus, some people will\n     * use \"K\" for indicating 1000's, when the SI standard calls for\n     * \"k\". Others have tried to introduce \"K\" as a multiple of 1024,\n     * but that falls down when you reach \"M\", since \"m\" is already\n     * defined as 0.001.\n     * <p>\n     * To get around this complexity, a number of standards bodies\n     * have proposed the 2^10 standard, and at least one has adopted\n     * it. But we are still left with a populace that isn't clear on\n     * how capitalization should work.\n     * <p>\n     * We therefore ignore capitalization as much as possible.\n     * Completely mixed case is not possible, but all upper and lower\n     * forms are accepted for all long and short forms. Since we have\n     * no need to work with the 0.001 case, this practice works here.\n     * <p>\n     * This function translates all the long and short forms that a\n     * unit prefix can occur in and translates them into a single\n     * multiplier.\n     *\n     * @param units The units to compare the size to, using an\n     *        EnumeratedAttribute.\n     */\n    public void setUnits(ByteUnits units) {\n        int i = units.getIndex();\n        multiplier = 0;\n        if (i > -1 && i < KIBI_POS) {\n            multiplier = KILO;\n        } else if (i < MEGA_POS) {\n            multiplier = KIBI;\n        } else if (i < MEBI_POS) {\n            multiplier = MEGA;\n        } else if (i < GIGA_POS) {\n            multiplier = MEBI;\n        } else if (i < GIBI_POS) {\n            multiplier = GIGA;\n        } else if (i < TERA_POS) {\n            multiplier = GIBI;\n        } else if (i < TEBI_POS) {\n            multiplier = TERA;\n        } else if (i < END_POS) {\n            multiplier = TEBI;\n        }\n        if (multiplier > 0 && size > -1) {\n            sizelimit = size * multiplier;\n        }\n    }\n\n    /**\n     * This specifies when the file should be selected, whether it be\n     * when the file matches a particular size, when it is smaller,\n     * or whether it is larger.\n     *\n     * @param when The comparison to perform, an EnumeratedAttribute.\n     */\n    public void setWhen(SizeComparisons when) {\n        this.when = when;\n    }\n\n    /**\n     * When using this as a custom selector, this method will be called.\n     * It translates each parameter into the appropriate setXXX() call.\n     *\n     * @param parameters the complete set of parameters for this selector.\n     */\n    public void setParameters(Parameter[] parameters) {\n        super.setParameters(parameters);\n        if (parameters != null) {\n            for (int i = 0; i < parameters.length; i++) {\n                String paramname = parameters[i].getName();\n                if (SIZE_KEY.equalsIgnoreCase(paramname)) {\n                    try {\n                        setValue(Long.parseLong(parameters[i].getValue()));\n                    } catch (NumberFormatException nfe) {\n                        setError(\"Invalid size setting \"\n                                + parameters[i].getValue());\n                    }\n                } else if (UNITS_KEY.equalsIgnoreCase(paramname)) {\n                    ByteUnits units = new ByteUnits();\n                    units.setValue(parameters[i].getValue());\n                    setUnits(units);\n                } else if (WHEN_KEY.equalsIgnoreCase(paramname)) {\n                    SizeComparisons scmp = new SizeComparisons();\n                    scmp.setValue(parameters[i].getValue());\n                    setWhen(scmp);\n                } else {\n                    setError(\"Invalid parameter \" + paramname);\n                }\n            }\n        }\n    }\n\n    /**\n     * <p>Checks to make sure all settings are kosher. In this case, it\n     * means that the size attribute has been set (to a positive value),\n     * that the multiplier has a valid setting, and that the size limit\n     * is valid. Since the latter is a calculated value, this can only\n     * fail due to a programming error.\n     * </p>\n     * <p>If a problem is detected, the setError() method is called.\n     * </p>\n     */\n    public void verifySettings() {\n        if (size < 0) {\n            setError(\"The value attribute is required, and must be positive\");\n        } else if (multiplier < 1) {\n            setError(\"Invalid Units supplied, must be K,Ki,M,Mi,G,Gi,T,or Ti\");\n        } else if (sizelimit < 0) {\n            setError(\"Internal error: Code is not setting sizelimit correctly\");\n        }\n    }\n\n    /**\n     * The heart of the matter. This is where the selector gets to decide\n     * on the inclusion of a file in a particular fileset.\n     *\n     * @param basedir A java.io.File object for the base directory.\n     * @param filename The name of the file to check.\n     * @param file A File object for this filename.\n     * @return whether the file should be selected or not.\n     */\n    public boolean isSelected(File basedir, String filename, File file) {\n\n        validate();\n\n        if (file.isDirectory()) {\n            return true;\n        }\n        long diff = file.length() - sizelimit;\n        return when.evaluate(diff == 0 ? 0 : (int) (diff / Math.abs(diff)));\n    }\n\n\n    /**\n     * Enumerated attribute with the values for units.\n     * <p>\n     * This treats the standard SI units as representing powers of ten,\n     * as they should. If you want the powers of 2 that approximate\n     * the SI units, use the first two characters followed by a\n     * <code>bi</code>. So 1024 (2^10) becomes <code>kibi</code>,\n     * 1048576 (2^20) becomes <code>mebi</code>, 1073741824 (2^30)\n     * becomes <code>gibi</code>, and so on. The symbols are also\n     * accepted, and these are the first letter capitalized followed\n     * by an <code>i</code>. <code>Ki</code>, <code>Mi</code>,\n     * <code>Gi</code>, and so on. Capitalization variations on these\n     * are also accepted.\n     * <p>\n     * This binary prefix system is approved by the IEC and appears on\n     * its way for approval by other agencies, but it is not an SI\n     * standard. It disambiguates things for us, though.\n     */\n    public static class ByteUnits extends EnumeratedAttribute {\n        /**\n         * @return the values as an array of strings\n         */\n        public String[] getValues() {\n            return new String[]{\"K\", \"k\", \"kilo\", \"KILO\",\n                                \"Ki\", \"KI\", \"ki\", \"kibi\", \"KIBI\",\n                                \"M\", \"m\", \"mega\", \"MEGA\",\n                                \"Mi\", \"MI\", \"mi\", \"mebi\", \"MEBI\",\n                                \"G\", \"g\", \"giga\", \"GIGA\",\n                                \"Gi\", \"GI\", \"gi\", \"gibi\", \"GIBI\",\n                                \"T\", \"t\", \"tera\", \"TERA\",\n           /* You wish! */      \"Ti\", \"TI\", \"ti\", \"tebi\", \"TEBI\"\n            };\n        }\n    }\n\n    /**\n     * Enumerated attribute with the values for size comparison.\n     */\n    public static class SizeComparisons extends Comparison {", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer(\"{sizeselector value: \");\n        buf.append(sizelimit);\n        buf.append(\"compare: \").append(when.getValue());\n        buf.append(\"}\");\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [2, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 2], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setValue", "code": "    public void setValue(long size) {\n        this.size = size;\n        if (multiplier != 0 && size > -1) {\n            sizelimit = size * multiplier;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [3, 6], [1, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 3], [7, 1], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setUnits", "code": "    public void setUnits(ByteUnits units) {\n        int i = units.getIndex();\n        multiplier = 0;\n        if (i > -1 && i < KIBI_POS) {\n            multiplier = KILO;\n        } else if (i < MEGA_POS) {\n            multiplier = KIBI;\n        } else if (i < MEBI_POS) {\n            multiplier = MEGA;\n        } else if (i < GIGA_POS) {\n            multiplier = MEBI;\n        } else if (i < GIBI_POS) {\n            multiplier = GIGA;\n        } else if (i < TERA_POS) {\n            multiplier = GIBI;\n        } else if (i < TEBI_POS) {\n            multiplier = TERA;\n        } else if (i < END_POS) {\n            multiplier = TEBI;\n        }\n        if (multiplier > 0 && size > -1) {\n            sizelimit = size * multiplier;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [0, 8], [5, 9], [5, 10], [6, 11], [6, 12], [7, 13], [7, 14], [8, 15], [3, 16], [1, 17], [9, 18], [10, 19], [11, 20], [11, 21], [2, 22], [14, 23], [17, 24], [20, 25], [20, 26], [6, 27], [25, 28], [25, 29], [11, 30], [28, 31], [28, 32], [20, 33], [31, 34], [31, 35], [25, 36], [34, 37], [28, 38], [31, 39], [34, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 0], [9, 5], [10, 5], [11, 6], [12, 6], [13, 7], [14, 7], [15, 8], [16, 3], [17, 1], [18, 9], [19, 10], [20, 11], [21, 11], [22, 2], [23, 14], [24, 17], [25, 20], [26, 20], [27, 6], [28, 25], [29, 25], [30, 11], [31, 28], [32, 28], [33, 20], [34, 31], [35, 31], [36, 25], [37, 34], [38, 28], [39, 31], [40, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "setWhen", "code": "    public void setWhen(SizeComparisons when) {\n        this.when = when;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setParameters", "code": "    public void setParameters(Parameter[] parameters) {\n        super.setParameters(parameters);\n        if (parameters != null) {\n            for (int i = 0; i < parameters.length; i++) {\n                String paramname = parameters[i].getName();\n                if (SIZE_KEY.equalsIgnoreCase(paramname)) {\n                    try {\n                        setValue(Long.parseLong(parameters[i].getValue()));\n                    } catch (NumberFormatException nfe) {\n                        setError(\"Invalid size setting \"\n                                + parameters[i].getValue());\n                    }\n                } else if (UNITS_KEY.equalsIgnoreCase(paramname)) {\n                    ByteUnits units = new ByteUnits();\n                    units.setValue(parameters[i].getValue());\n                    setUnits(units);\n                } else if (WHEN_KEY.equalsIgnoreCase(paramname)) {\n                    SizeComparisons scmp = new SizeComparisons();\n                    scmp.setValue(parameters[i].getValue());\n                    setWhen(scmp);\n                } else {\n                    setError(\"Invalid parameter \" + paramname);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "TRY", "CALL", "VAR_DECL", "CATCH", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [4, 8], [7, 9], [7, 10], [4, 11], [9, 12], [9, 13], [7, 14], [12, 15], [9, 16], [14, 17], [8, 18], [12, 19], [9, 20], [9, 21], [14, 22], [12, 23], [12, 24], [12, 25], [16, 26], [17, 27], [22, 28], [23, 29], [19, 30], [21, 31], [27, 32], [29, 33], [25, 34], [32, 35], [28, 36], [32, 37], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 4], [9, 7], [10, 7], [11, 4], [12, 9], [13, 9], [14, 7], [15, 12], [16, 9], [17, 14], [18, 8], [19, 12], [20, 9], [21, 9], [22, 14], [23, 12], [24, 12], [25, 12], [26, 16], [27, 17], [28, 22], [29, 23], [30, 19], [31, 21], [32, 27], [33, 29], [34, 25], [35, 32], [36, 28], [37, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "verifySettings", "code": "    public void verifySettings() {\n        if (size < 0) {\n            setError(\"The value attribute is required, and must be positive\");\n        } else if (multiplier < 1) {\n            setError(\"Invalid Units supplied, must be K,Ki,M,Mi,G,Gi,T,or Ti\");\n        } else if (sizelimit < 0) {\n            setError(\"Internal error: Code is not setting sizelimit correctly\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [3, 6], [4, 7], [5, 8], [1, 9], [7, 10], [2, 11], [9, 12], [4, 13], [11, 14], [13, 15], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 3], [7, 4], [8, 5], [9, 1], [10, 7], [11, 2], [12, 9], [13, 4], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "isSelected", "code": "    public boolean isSelected(File basedir, String filename, File file) {\n\n        validate();\n\n        if (file.isDirectory()) {\n            return true;\n        }\n        long diff = file.length() - sizelimit;\n        return when.evaluate(diff == 0 ? 0 : (int) (diff / Math.abs(diff)));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [0, 9], [7, 10], [2, 11], [3, 12], [10, 13], [10, 14], [11, 15], [12, 16], [10, 17], [14, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 0], [10, 7], [11, 2], [12, 3], [13, 10], [14, 10], [15, 11], [16, 12], [17, 10], [18, 14], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "SizeSelector", "code": "    public SizeSelector() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.6-2842", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jms/JmsProviderMetadata.java", "language": "java", "name": "org.apache.camel.component.jms.JmsProviderMetadata", "code": "public class JmsProviderMetadata {\n    private Class<? extends TemporaryQueue> temporaryQueueType;\n    private Class<? extends TemporaryTopic> temporaryTopicType;\n\n    /**\n     * Lazily loads the temporary queue type if one has not been explicitly configured\n     * via calling the {@link #setTemporaryQueueType(Class)}\n     */\n    public Class<? extends TemporaryQueue> getTemporaryQueueType(JmsOperations template) {\n        Class<? extends TemporaryQueue> answer = getTemporaryQueueType();\n        if (answer == null) {\n            loadTemporaryDestinationTypes(template);\n            answer = getTemporaryQueueType();\n        }\n        return answer;\n    }\n\n    /**\n     * Lazily loads the temporary topic type if one has not been explicitly configured\n     * via calling the {@link #setTemporaryTopicType(Class)}\n     */\n    public Class<? extends TemporaryTopic> getTemporaryTopicType(JmsOperations template) {\n        Class<? extends TemporaryTopic> answer = getTemporaryTopicType();\n        if (answer == null) {\n            loadTemporaryDestinationTypes(template);\n            answer = getTemporaryTopicType();\n        }\n        return answer;\n    }\n\n\n    public Class<? extends TemporaryQueue> getTemporaryQueueType() {\n        return temporaryQueueType;\n    }\n\n    public void setTemporaryQueueType(Class<? extends TemporaryQueue> temporaryQueueType) {\n        this.temporaryQueueType = temporaryQueueType;\n    }\n\n    public Class<? extends TemporaryTopic> getTemporaryTopicType() {\n        return temporaryTopicType;\n    }\n\n    public void setTemporaryTopicType(Class<? extends TemporaryTopic> temporaryTopicType) {\n        this.temporaryTopicType = temporaryTopicType;\n    }\n\n    protected void loadTemporaryDestinationTypes(JmsOperations template) {\n        if (template == null) {\n            throw new IllegalArgumentException(\"No JmsTemplate supplied!\");\n        }\n        template.execute(new SessionCallback() {\n            public Object doInJms(Session session) throws JMSException {\n                TemporaryQueue queue = session.createTemporaryQueue();\n                setTemporaryQueueType(queue.getClass());\n\n                TemporaryTopic topic = session.createTemporaryTopic();\n                setTemporaryTopicType(topic.getClass());\n\n                queue.delete();\n                topic.delete();\n                return null;", "functions": [{"function_name": "getTemporaryQueueType", "code": "    public Class<? extends TemporaryQueue> getTemporaryQueueType(JmsOperations template) {\n        Class<? extends TemporaryQueue> answer = getTemporaryQueueType();\n        if (answer == null) {\n            loadTemporaryDestinationTypes(template);\n            answer = getTemporaryQueueType();\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getTemporaryTopicType", "code": "    public Class<? extends TemporaryTopic> getTemporaryTopicType(JmsOperations template) {\n        Class<? extends TemporaryTopic> answer = getTemporaryTopicType();\n        if (answer == null) {\n            loadTemporaryDestinationTypes(template);\n            answer = getTemporaryTopicType();\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getTemporaryQueueType", "code": "    public Class<? extends TemporaryQueue> getTemporaryQueueType() {\n        return temporaryQueueType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTemporaryQueueType", "code": "    public void setTemporaryQueueType(Class<? extends TemporaryQueue> temporaryQueueType) {\n        this.temporaryQueueType = temporaryQueueType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTemporaryTopicType", "code": "    public Class<? extends TemporaryTopic> getTemporaryTopicType() {\n        return temporaryTopicType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTemporaryTopicType", "code": "    public void setTemporaryTopicType(Class<? extends TemporaryTopic> temporaryTopicType) {\n        this.temporaryTopicType = temporaryTopicType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadTemporaryDestinationTypes", "code": "    protected void loadTemporaryDestinationTypes(JmsOperations template) {\n        if (template == null) {\n            throw new IllegalArgumentException(\"No JmsTemplate supplied!\");\n        }\n        template.execute(new SessionCallback() {\n            public Object doInJms(Session session) throws JMSException {\n                TemporaryQueue queue = session.createTemporaryQueue();\n                setTemporaryQueueType(queue.getClass());\n\n                TemporaryTopic topic = session.createTemporaryTopic();\n                setTemporaryTopicType(topic.getClass());\n\n                queue.delete();\n                topic.delete();\n                return null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "FUNC_DECL", "CALL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [4, 7], [5, 8], [6, 9], [8, 10], [8, 11], [8, 12], [8, 13], [9, 14], [10, 15], [8, 16], [8, 17], [8, 18], [8, 19], [18, 20], [11, 21], [19, 22], [12, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 4], [8, 5], [9, 6], [10, 8], [11, 8], [12, 8], [13, 8], [14, 9], [15, 10], [16, 8], [17, 8], [18, 8], [19, 8], [20, 18], [21, 11], [22, 19], [23, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}], "label": 0}
{"sample_id": "poi-2.5-5817", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/model/FormulaParser.java", "language": "java", "name": "org.apache.poi.hssf.model.FormulaParser", "code": "public class FormulaParser {\n    \n    public static int FORMULA_TYPE_CELL = 0;\n    public static int FORMULA_TYPE_SHARED = 1;\n    public static int FORMULA_TYPE_ARRAY =2;\n    public static int FORMULA_TYPE_CONDFOMRAT = 3;\n    public static int FORMULA_TYPE_NAMEDRANGE = 4;\n    \n    private String formulaString;\n    private int pointer=0;\n    private int formulaLength;\n    \n    private List tokens = new java.util.Stack();\n    \n    /**\n     * Using an unsynchronized linkedlist to implement a stack since we're not multi-threaded.\n     */\n    private List functionTokens = new LinkedList();\n    \n    private List result = new ArrayList();\n    private int numParen;\n    \n    private static char TAB = '\\t';\n    private static char CR = '\\n';\n    \n   private boolean inFunction = false;\n   \n   private Workbook book;\n    \n    \n    /** create the parser with the string that is to be parsed\n     *    later call the parse() method to return ptg list in rpn order\n     *    then call the getRPNPtg() to retrive the parse results\n     *  This class is recommended only for single threaded use\n     */\n    public FormulaParser(String formula, Workbook book){\n        formulaString = formula;\n        pointer=0;\n        this.book = book;\n    \tformulaLength = formulaString.length();\n    }\n    \n\n    /** Read New Character From Input Stream */\n    private void GetChar() {\n        if (pointer == formulaLength) {\n            look = (char)0;\n\t    return;\n\t}\n        look=formulaString.charAt(pointer++);\n    }\n    \n\n    /** Report an Error */\n    private void Error(String s) {\n        System.out.println(\"Error: \"+s);\n    }\n    \n    \n \n    /** Report Error and Halt */\n    private void Abort(String s) {\n        Error(s);\n        throw new RuntimeException(\"Cannot Parse, sorry : \"+s);\n    }\n    \n    \n\n    /** Report What Was Expected */\n    private void Expected(String s) {\n        Abort(s + \" Expected\");\n    }\n    \n    \n \n    /** Recognize an Alpha Character */\n    private boolean IsAlpha(char c) {\n        return Character.isLetter(c) || c == '$';\n    }\n    \n    \n \n    /** Recognize a Decimal Digit */\n    private boolean IsDigit(char c) {\n        return Character.isDigit(c);\n    }\n    \n    \n\n    /** Recognize an Alphanumeric */\n    private boolean  IsAlNum(char c) {\n        return  (IsAlpha(c) || IsDigit(c));\n    }\n    \n    \n\n    /** Recognize an Addop */\n    private boolean IsAddop( char c) {\n        return (c =='+' || c =='-');\n    }\n    \n\n    /** Recognize White Space */\n    private boolean IsWhite( char c) {\n        return  (c ==' ' || c== TAB);\n    }\n    \n    /**\n     * Determines special characters;primarily in use for definition of string literals\n     * @param c\n     * @return boolean\n     */\n    private boolean IsSpecialChar(char c) {\n    \treturn (c == '>' || c== '<' || c== '=' || c=='&' || c=='[' || c==']');\n    }\n    \n\n    /** Skip Over Leading White Space */\n    private void SkipWhite() {\n        while (IsWhite(look)) {\n            GetChar();\n        }\n    }\n    \n    \n\n    /** Match a Specific Input Character */\n    private void Match(char x) {\n        if (look != x) {\n            Expected(\"\" + x + \"\");\n        }else {\n            GetChar();\n            SkipWhite();\n        }\n    }\n    \n    /** Get an Identifier */\n    private String GetName() {\n        StringBuffer Token = new StringBuffer();\n        if (!IsAlpha(look) && look != '\\'') {\n            Expected(\"Name\");\n        }\n        if(look == '\\'')\n        {\n        \tMatch('\\'');\n        \tboolean done = look == '\\'';\n        \twhile(!done)\n        \t{\n        \t\tToken.append(Character.toUpperCase(look));\n        \t\tGetChar();\n        \t\tif(look == '\\'')\n        \t\t{\n        \t\t\tMatch('\\'');\n        \t\t\tdone = look != '\\'';\n        \t\t}\n        \t}\n        }\n        else\n        {\n\t        while (IsAlNum(look)) {\n\t            Token.append(Character.toUpperCase(look));\n\t            GetChar();\n\t        }\n\t\t}\n        SkipWhite();\n        return Token.toString();\n    }\n    \n    /**Get an Identifier AS IS, without stripping white spaces or \n       converting to uppercase; used for literals */\n    private String GetNameAsIs() {\n        StringBuffer Token = new StringBuffer();\n\t\t\n\t\twhile (IsAlNum(look) || IsWhite(look) || IsSpecialChar(look)) {\n            Token = Token.append(look);\n            GetChar();\n        }\n        return Token.toString();\n    }\n    \n    \n    /** Get a Number */\n    private String GetNum() {\n        String Value =\"\";\n        if  (!IsDigit(look)) Expected(\"Integer\");\n        while (IsDigit(look)){\n            Value = Value + look;\n            GetChar();\n        }\n        SkipWhite();\n        return Value;\n    }\n\n    /** Output a String with Tab */\n    private void  Emit(String s){\n        System.out.print(TAB+s);\n    }\n\n    /** Output a String with Tab and CRLF */\n    private void EmitLn(String s) {\n        Emit(s);\n        System.out.println();;\n    }\n    \n    /** Parse and Translate a String Identifier */\n    private void Ident() {\n        String name;\n        name = GetName();\n        if (look == '('){\n            function(name);\n            String first = name;\n            Match(':');\n            String second = GetName();\n            tokens.add(new AreaPtg(first+\":\"+second));\n        } else if (look == '!') {\n            Match('!');\n            String sheetName = name;\n            String first = GetName();\n            short externIdx = book.checkExternSheet(book.getSheetIndex(sheetName));\n            if (look == ':') {\n                Match(':');\n                String second=GetName();\n                \n                tokens.add(new Area3DPtg(first+\":\"+second,externIdx));\n            } else {\n                tokens.add(new Ref3DPtg(first,externIdx));\n            }\n        } else {\n            boolean boolLit = (name.equals(\"TRUE\") || name.equals(\"FALSE\"));\n            if (boolLit) {\n                tokens.add(new BoolPtg(name));\n            } else if (cellRef) {\n                tokens.add(new ReferencePtg(name));\n            }else {\n            }\n        }\n    }\n    \n    /**\n     * Adds a pointer to the last token to the latest function argument list.\n     * @param obj\n     */\n    private void addArgumentPointer() {\n\t\tif (this.functionTokens.size() > 0) {\n\t\t\tList arguments = (List)this.functionTokens.get(0);\n\t\t\targuments.add(tokens.get(tokens.size()-1));\n\t\t}\n    }\n    \n    private void function(String name) {\n    \tthis.functionTokens.add(0, new ArrayList(2));\n    \t\n        Match('(');\n        int numArgs = Arguments();\n        Match(')');\n                \n        AbstractFunctionPtg functionPtg = getFunction(name,(byte)numArgs);\n        \n\t\ttokens.add(functionPtg);\n \n        if (functionPtg.getName().equals(\"externalflag\")) {\n            tokens.add(new NamePtg(name, this.book));\n        }\n\n\t\tthis.functionTokens.remove(0);\n    }\n    \n    /**\n     * Adds the size of all the ptgs after the provided index (inclusive).\n     * <p>\n     * Initially used to count a goto\n     * @param index\n     * @return int\n     */\n    private int getPtgSize(int index) {\n    \tint count = 0;\n    \t\n    \tIterator ptgIterator = tokens.listIterator(index);\n    \twhile (ptgIterator.hasNext()) {\n    \t\tPtg ptg = (Ptg)ptgIterator.next();\n    \t\tcount+=ptg.getSize();\n    \t}\n    \t\n    \treturn count;\n    }\n    \n    private int getPtgSize(int start, int end) {\n        int count = 0;\n        int index = start;\n        Iterator ptgIterator = tokens.listIterator(index);\n        while (ptgIterator.hasNext() && index <= end) {\n            Ptg ptg = (Ptg)ptgIterator.next();\n            count+=ptg.getSize();\n            index++;\n        }\n        \n        return count;\n    }\n    /**\n     * Generates the variable function ptg for the formula.\n     * <p>\n     * For IF Formulas, additional PTGs are added to the tokens \n     * @param name\n     * @param numArgs\n     * @return Ptg a null is returned if we're in an IF formula, it needs extreme manipulation and is handled in this function\n     */\n    private AbstractFunctionPtg getFunction(String name, byte numArgs) {\n        AbstractFunctionPtg retval = null;\n        \n        if (name.equals(\"IF\")) {\n            retval = new FuncVarPtg(AbstractFunctionPtg.ATTR_NAME, numArgs);\n            \n            List argumentPointers = (List)this.functionTokens.get(0);\n            \n            \n            AttrPtg ifPtg = new AttrPtg();\n            ifPtg.setOptimizedIf(true);\n            \n            if (argumentPointers.size() != 2  && argumentPointers.size() != 3) {\n                throw new IllegalArgumentException(\"[\"+argumentPointers.size()+\"] Arguments Found - An IF formula requires 2 or 3 arguments. IF(CONDITION, TRUE_VALUE, FALSE_VALUE [OPTIONAL]\");\n            }\n            \n            int ifIndex = tokens.indexOf(argumentPointers.get(0))+1;\n            tokens.add(ifIndex, ifPtg);\n            \n            \n            int gotoIndex = tokens.indexOf(argumentPointers.get(1))+1;\n            \n            AttrPtg goto1Ptg = new AttrPtg();\n            goto1Ptg.setGoto(true);\n            \n            \n            tokens.add(gotoIndex, goto1Ptg);\n            \n            \n                \n                AttrPtg goto2Ptg = new AttrPtg();\n                goto2Ptg.setGoto(true);\n                goto2Ptg.setData((short)(retval.getSize()-1));\n                \n            \n            \n            ifPtg.setData((short)(getPtgSize(ifIndex+1, gotoIndex)));\n            \n            int ptgCount = this.getPtgSize(gotoIndex)-goto1Ptg.getSize()+retval.getSize();\n            if (ptgCount > (int)Short.MAX_VALUE) {\n                throw new RuntimeException(\"Ptg Size exceeds short when being specified for a goto ptg in an if\");\n            }\n            \n            goto1Ptg.setData((short)(ptgCount-1));\n            \n        } else {\n            \n            retval = new FuncVarPtg(name,numArgs);\n        }\n        \n        return retval;\n    }\n    \n    /** get arguments to a function */\n    private int Arguments() {\n        int numArgs = 0;\n        if (look != ')')  {\n            numArgs++; \n            Expression();\n\t\t\t   addArgumentPointer();\n        \n            if(look == ',') {\n              Match(',');\n            }\n            else {\n              Match(';');\n            }\n            Expression();\n\t\t\t   addArgumentPointer();\n            numArgs++;\n        }\n        return numArgs;\n    }\n\n   /** Parse and Translate a Math Factor  */\n    private void Factor() {\n    \tif (look == '-')\n    \t{\n    \t\tMatch('-');\n    \t\tFactor();\n    \t\ttokens.add(new UnaryMinusPtg());\n    \t}\n        else if (look == '(' ) {\n            Match('(');\n            Expression();\n            Match(')');\n            tokens.add(new ParenthesisPtg());\n        } else if (IsAlpha(look) || look == '\\''){\n            Ident();\n        } else if(look == '\"') {\n           StringLiteral();\n        } else {\n             \n            String number = GetNum();\n            if (look=='.') {\n                Match('.');\n                String decimalPart = null;\n                tokens.add(new NumberPtg(number));\n            } else {\n            }\n        }\n    }\n    \n    private void StringLiteral() \n\t{\n\t\tif (look != '\"')\n\t\t\tExpected(\"\\\"\");\n\t\telse\n\t\t{\n\t\t\tGetChar();\n\t\t\tStringBuffer Token = new StringBuffer();\n\t\t\tfor (;;)\n\t\t\t{\n\t\t\t\tif (look == '\"')\n\t\t\t\t{\n\t\t\t\t\tGetChar();\n\t\t\t\t\tif (look == '\"')\n\t\t\t\t\t\tToken.append(\"\\\"\");\n\t\t\t\t\telse\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (look == 0)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToken.append(look);\n\t\t\t\t\tGetChar();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttokens.add(new StringPtg(Token.toString()));\n\t\t}\n\t}\n    \n    /** Recognize and Translate a Multiply */\n    private void Multiply(){\n        Match('*');\n        Factor();\n        tokens.add(new MultiplyPtg());\n  \n    }\n    \n    \n    /** Recognize and Translate a Divide */\n    private void Divide() {\n        Match('/');\n        Factor();\n        tokens.add(new DividePtg());\n\n    }\n    \n    \n    /** Parse and Translate a Math Term */\n    private void  Term(){\n        Factor();\n\t\t while (look == '*' || look == '/' || look == '^' || look == '&') {\n        \n            if (look == '*') Multiply();\n            else if (look == '/') Divide();\n            else if (look == '^') Power();\n            else if (look == '&') Concat();\n        }\n    }\n    \n    /** Recognize and Translate an Add */\n    private void Add() {\n        Match('+');\n        Term();\n        tokens.add(new AddPtg());\n    }\n    \n    /** Recognize and Translate a Concatination */\n    private void Concat() {\n        Match('&');\n        Term();\n        tokens.add(new ConcatPtg());\n    }\n    \n    /** Recognize and Translate a test for Equality  */\n    private void Equal() {\n        Match('=');\n        Expression();\n        tokens.add(new EqualPtg());\n    }\n    \n    /** Recognize and Translate a Subtract */\n    private void Subtract() {\n        Match('-');\n        Term();\n        tokens.add(new SubtractPtg());\n    }    \n\n    private void Power() {\n        Match('^');\n        Term();\n        tokens.add(new PowerPtg());\n    }\n    \n    \n    /** Parse and Translate an Expression */\n    private void Expression() {\n        Term();\n        while (IsAddop(look)) {\n            if (look == '+' )  Add();\n            else if (look == '-') Subtract();\n        }\n        \n\t\t/*\n\t\t * This isn't quite right since it would allow multiple comparison operators.\n\t\t */\n\t\t\n\t\t  if(look == '=' || look == '>' || look == '<') {\n\t\t  \t\tif (look == '=') Equal();\n\t\t      else if (look == '>') GreaterThan();\n\t\t      else if (look == '<') LessThan();\n\t\t      return;\n\t\t  }        \n        \n        \n    }\n    \n    /** Recognize and Translate a Greater Than  */\n    private void GreaterThan() {\n\t\tMatch('>');\n\t\tif(look == '=')\n\t\t    GreaterEqual();\n\t\telse {\n\t\t    Expression();\n\t\t    tokens.add(new GreaterThanPtg());\n\t\t}\n    }\n    \n    /** Recognize and Translate a Less Than  */\n    private void LessThan() {\n\t\tMatch('<');\n\t\tif(look == '=')\n\t\t    LessEqual();\n\t\telse if(look == '>')\n\t\t    NotEqual();\n\t\telse {\n\t\t    Expression();\n\t\t    tokens.add(new LessThanPtg());\n\t\t}\n\n\t}  \n   \n   /**\n    * Recognize and translate Greater than or Equal\n    *\n    */ \n\tprivate void GreaterEqual() {\n\t    Match('=');\n\t    Expression();\n\t    tokens.add(new GreaterEqualPtg());\n\t}    \n\n\t/**\n\t * Recognize and translate Less than or Equal\n\t *\n\t */ \n\n\tprivate void LessEqual() {\n\t    Match('=');\n\t    Expression();\n\t    tokens.add(new LessEqualPtg());\n\t}\n\t\n\t/**\n\t * Recognize and not Equal\n\t *\n\t */ \n\n\tprivate void NotEqual() {\n\t    Match('>');\n\t    Expression();\n\t    tokens.add(new NotEqualPtg());\n\t}    \n    \n    /**\nprocedure Assignment;\nvar Name: string[8];\nbegin\n   Name := GetName;\n   Match('=');\n   Expression;\n\nend;\n     **/\n    \n \n    /** Initialize */\n    \n    private void  init() {\n        GetChar();\n        SkipWhite();\n    }\n    \n    /** API call to execute the parsing of the formula\n     *\n     */\n    public void parse() {\n        synchronized (tokens) {\n            init();\n            Expression();\n        }\n    }\n    \n    \n    /*********************************\n     * PARSER IMPLEMENTATION ENDS HERE\n     * EXCEL SPECIFIC METHODS BELOW\n     *******************************/\n    \n    /** API call to retrive the array of Ptgs created as \n     * a result of the parsing\n     */\n    public Ptg[] getRPNPtg() {\n     return getRPNPtg(FORMULA_TYPE_CELL);\n    }\n    \n    public Ptg[] getRPNPtg(int formulaType) {\n        Node node = createTree();\n        setRootLevelRVA(node, formulaType);\n        setParameterRVA(node,formulaType);\n        return (Ptg[]) tokens.toArray(new Ptg[0]);\n    }\n    \n    private void setRootLevelRVA(Node n, int formulaType) {\n        Ptg p = (Ptg) n.getValue();\n            if (formulaType == FormulaParser.FORMULA_TYPE_NAMEDRANGE) {\n                if (p.getDefaultOperandClass() == Ptg.CLASS_REF) {\n                    setClass(n,Ptg.CLASS_REF);\n                } else {\n                    setClass(n,Ptg.CLASS_ARRAY);\n                }\n            } else {\n                setClass(n,Ptg.CLASS_VALUE);\n            }\n        \n    }\n    \n    private void setParameterRVA(Node n, int formulaType) {\n        Ptg p = n.getValue();\n        int numOperands = n.getNumChildren();\n        if (p instanceof AbstractFunctionPtg) {\n            for (int i =0;i<numOperands;i++) {\n                setParameterRVA(n.getChild(i),((AbstractFunctionPtg)p).getParameterClass(i),formulaType);\n                setParameterRVA(n.getChild(i),formulaType);\n            }\n        } else {\n            for (int i =0;i<numOperands;i++) {\n                setParameterRVA(n.getChild(i),formulaType);\n            }\n        } \n    }\n    private void setParameterRVA(Node n, int expectedClass,int formulaType) {\n        Ptg p = (Ptg) n.getValue();\n            if (p.getDefaultOperandClass() == Ptg.CLASS_REF ) {\n                setClass(n, Ptg.CLASS_REF);\n            }\n            if (p.getDefaultOperandClass() == Ptg.CLASS_VALUE) {\n                if (formulaType==FORMULA_TYPE_CELL || formulaType == FORMULA_TYPE_SHARED) {\n                    setClass(n,Ptg.CLASS_VALUE);\n                } else {\n                    setClass(n,Ptg.CLASS_ARRAY);\n                }\n            }\n            if (p.getDefaultOperandClass() == Ptg.CLASS_ARRAY ) {\n                setClass(n, Ptg.CLASS_ARRAY);\n            }\n            if (formulaType == FORMULA_TYPE_NAMEDRANGE) {\n                setClass(n,Ptg.CLASS_ARRAY) ;\n            } else {\n                setClass(n,Ptg.CLASS_VALUE);\n            }\n            if (p.getDefaultOperandClass() == Ptg.CLASS_VALUE &&\n                 (formulaType==FORMULA_TYPE_CELL || formulaType == FORMULA_TYPE_SHARED)) {\n                 setClass(n,Ptg.CLASS_VALUE);\n            } else {\n                setClass(n,Ptg.CLASS_ARRAY);\n            }\n        \n    }\n    \n     private void setClass(Node n, byte theClass) {\n        Ptg p = (Ptg) n.getValue();\n        if (p instanceof AbstractFunctionPtg || !(p instanceof OperationPtg)) {\n            p.setClass(theClass);\n        } else {\n            for (int i =0;i<n.getNumChildren();i++) {\n                setClass(n.getChild(i),theClass);\n            }\n        }\n     }\n    /**\n     * Convience method which takes in a list then passes it to the other toFormulaString\n     * signature. \n     * @param book   workbook for 3D and named references\n     * @param lptgs  list of Ptg, can be null or empty\n     * @return a human readable String\n     */\n    public static String toFormulaString(Workbook book, List lptgs) {\n        String retval = null;\n        if (lptgs == null || lptgs.size() == 0) return \"#NAME\";\n        Ptg[] ptgs = new Ptg[lptgs.size()];\n        ptgs = (Ptg[])lptgs.toArray(ptgs);\n        retval = toFormulaString(book, ptgs);\n        return retval;\n    }\n    \n    /**\n     * Static method to convert an array of Ptgs in RPN order\n     * to a human readable string format in infix mode.\n     * @param book  workbook for named and 3D references\n     * @param ptgs  array of Ptg, can be null or empty\n     * @return a human readable String\n     */\n    public static String toFormulaString(Workbook book, Ptg[] ptgs) {\n        if (ptgs == null || ptgs.length == 0) return \"#NAME\";\n        java.util.Stack stack = new java.util.Stack();\n        AttrPtg ifptg = null;\n\n        stack.push(ptgs[0].toFormulaString(book));\n                  \n        for (int i = 1; i < ptgs.length; i++) {\n            if (! (ptgs[i] instanceof OperationPtg)) {\n                stack.push(ptgs[i].toFormulaString(book));\n                continue;\n            }\n                      \n            if (ptgs[i] instanceof AttrPtg && ((AttrPtg) ptgs[i]).isOptimizedIf()) {\n                ifptg = (AttrPtg) ptgs[i];\n                continue;\n            }\n                      \n            final OperationPtg o = (OperationPtg) ptgs[i];\n            final String[] operands = new String[o.getNumberOfOperands()];\n\n            for (int j = operands.length; j > 0; j--) {\n                operands[j - 1] = (String) stack.pop();\n                      }  \n\n            stack.push(o.toFormulaString(operands));\n            if (!(o instanceof AbstractFunctionPtg)) continue;\n\n            final AbstractFunctionPtg f = (AbstractFunctionPtg) o;\n            final String fname = f.getName();\n            if (fname == null) continue;\n\n            if ((ifptg != null) && (fname.equals(\"specialflag\"))) {\n                stack.push(ifptg.toFormulaString(new String[]{(String) stack.pop()}));\n                continue;\n                      }\n            if (fname.equals(\"externalflag\")) {\n                final String top = (String) stack.pop();\n                final int paren = top.indexOf('(');\n                final int comma = top.indexOf(',');\n                if (comma == -1) {\n                    final int rparen = top.indexOf(')');\n                    stack.push(top.substring(paren + 1, rparen) + \"()\");\n                  }\n                else {\n                    stack.push(top.substring(paren + 1, comma) + '(' +\n                               top.substring(comma + 1));\n            }\n        }\n    }\n        return (String) stack.pop();\n    }\n\n\n    /** Create a tree representation of the RPN token array\n     *used to run the class(RVA) change algo\n     */\n    private Node createTree() {\n        java.util.Stack stack = new java.util.Stack();\n        int numPtgs = tokens.size();\n        OperationPtg o;\n        int numOperands;\n        Node[] operands;\n        for (int i=0;i<numPtgs;i++) {\n            if (tokens.get(i) instanceof OperationPtg) {\n                \n                o = (OperationPtg) tokens.get(i);\n                numOperands = o.getNumberOfOperands();\n                operands = new Node[numOperands];\n                for (int j=0;j<numOperands;j++) {\n                    operands[numOperands-j-1] = (Node) stack.pop(); \n                }\n                Node result = new Node(o);\n                result.setChildren(operands);\n                stack.push(result);\n            } else {\n                stack.push(new Node((Ptg)tokens.get(i)));\n            }\n        }\n        return (Node) stack.pop();\n    }\n   \n    /** toString on the parser instance returns the RPN ordered list of tokens\n     *   Useful for testing\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer();\n           for (int i=0;i<tokens.size();i++) {\n            buf.append( ( (Ptg)tokens.get(i)).toFormulaString(book));\n            buf.append(' ');\n        } \n        return buf.toString();", "functions": [{"function_name": "GetChar", "code": "    private void GetChar() {\n        if (pointer == formulaLength) {\n            look = (char)0;\n\t    return;\n\t}\n        look=formulaString.charAt(pointer++);", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "BINARY_OP", "CALL", "RETURN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "Error", "code": "    private void Error(String s) {\n        System.out.println(\"Error: \"+s);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Abort", "code": "    private void Abort(String s) {\n        Error(s);\n        throw new RuntimeException(\"Cannot Parse, sorry : \"+s);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "Expected", "code": "    private void Expected(String s) {\n        Abort(s + \" Expected\");", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "IsAlpha", "code": "    private boolean IsAlpha(char c) {\n        return Character.isLetter(c) || c == '$';", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "IsDigit", "code": "    private boolean IsDigit(char c) {\n        return Character.isDigit(c);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "IsAlNum", "code": "    private boolean  IsAlNum(char c) {\n        return  (IsAlpha(c) || IsDigit(c));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "IsAddop", "code": "    private boolean IsAddop( char c) {\n        return (c =='+' || c =='-');", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "IsWhite", "code": "    private boolean IsWhite( char c) {\n        return  (c ==' ' || c== TAB);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "IsSpecialChar", "code": "    private boolean IsSpecialChar(char c) {\n    \treturn (c == '>' || c== '<' || c== '=' || c=='&' || c=='[' || c==']');", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [7, 9], [8, 10], [8, 11], [10, 12], [11, 13], [11, 14], [13, 15], [14, 16], [14, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 7], [10, 8], [11, 8], [12, 10], [13, 11], [14, 11], [15, 13], [16, 14], [17, 14], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "SkipWhite", "code": "    private void SkipWhite() {\n        while (IsWhite(look)) {\n            GetChar();", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Match", "code": "    private void Match(char x) {\n        if (look != x) {\n            Expected(\"\" + x + \"\");\n        }else {\n            GetChar();\n            SkipWhite();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [6, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 6], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "GetName", "code": "    private String GetName() {\n        StringBuffer Token = new StringBuffer();\n        if (!IsAlpha(look) && look != '\\'') {\n            Expected(\"Name\");\n        }\n        if(look == '\\'')\n        {\n        \tMatch('\\'');\n        \tboolean done = look == '\\'';\n        \twhile(!done)\n        \t{\n        \t\tToken.append(Character.toUpperCase(look));\n        \t\tGetChar();\n        \t\tif(look == '\\'')\n        \t\t{\n        \t\t\tMatch('\\'');\n        \t\t\tdone = look != '\\'';\n        \t\t}\n        \t}\n        }\n        else\n        {\n\t        while (IsAlNum(look)) {\n\t            Token.append(Character.toUpperCase(look));\n\t            GetChar();\n\t        }\n\t\t}\n        SkipWhite();\n        return Token.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LOOP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [3, 8], [2, 9], [2, 10], [2, 11], [7, 12], [8, 13], [8, 14], [4, 15], [9, 16], [2, 17], [3, 18], [13, 19], [10, 20], [11, 21], [17, 22], [18, 23], [9, 24], [9, 25], [20, 26], [10, 27], [10, 28], [21, 29], [25, 30], [26, 31], [28, 32], [20, 33], [20, 34], [33, 35], [34, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 3], [9, 2], [10, 2], [11, 2], [12, 7], [13, 8], [14, 8], [15, 4], [16, 9], [17, 2], [18, 3], [19, 13], [20, 10], [21, 11], [22, 17], [23, 18], [24, 9], [25, 9], [26, 20], [27, 10], [28, 10], [29, 21], [30, 25], [31, 26], [32, 28], [33, 20], [34, 20], [35, 33], [36, 34], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "GetNameAsIs", "code": "    private String GetNameAsIs() {\n        StringBuffer Token = new StringBuffer();\n\t\t\n\t\twhile (IsAlNum(look) || IsWhite(look) || IsSpecialChar(look)) {\n            Token = Token.append(look);\n            GetChar();\n        }\n        return Token.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [5, 7], [3, 8], [2, 9], [2, 10], [7, 11], [7, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 5], [8, 3], [9, 2], [10, 2], [11, 7], [12, 7], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "GetNum", "code": "    private String GetNum() {\n        String Value =\"\";\n        if  (!IsDigit(look)) Expected(\"Integer\");\n        while (IsDigit(look)){\n            Value = Value + look;\n            GetChar();\n        }\n        SkipWhite();\n        return Value;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [3, 8], [4, 9], [2, 10], [2, 11], [8, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 3], [9, 4], [10, 2], [11, 2], [12, 8], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "Emit", "code": "    private void  Emit(String s){\n        System.out.print(TAB+s);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "EmitLn", "code": "    private void EmitLn(String s) {\n        Emit(s);\n        System.out.println();;", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Ident", "code": "    private void Ident() {\n        String name;\n        name = GetName();\n        if (look == '('){\n            function(name);\n            String first = name;\n            Match(':');\n            String second = GetName();\n            tokens.add(new AreaPtg(first+\":\"+second));\n        } else if (look == '!') {\n            Match('!');\n            String sheetName = name;\n            String first = GetName();\n            short externIdx = book.checkExternSheet(book.getSheetIndex(sheetName));\n            if (look == ':') {\n                Match(':');\n                String second=GetName();\n                \n                tokens.add(new Area3DPtg(first+\":\"+second,externIdx));\n            } else {\n                tokens.add(new Ref3DPtg(first,externIdx));\n            }\n        } else {\n            boolean boolLit = (name.equals(\"TRUE\") || name.equals(\"FALSE\"));\n            if (boolLit) {\n                tokens.add(new BoolPtg(name));\n            } else if (cellRef) {\n                tokens.add(new ReferencePtg(name));\n            }else {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [3, 6], [1, 7], [1, 8], [4, 9], [5, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [6, 17], [1, 18], [1, 19], [1, 20], [11, 21], [13, 22], [3, 23], [18, 24], [7, 25], [19, 26], [12, 27], [13, 28], [22, 29], [14, 30], [15, 31], [23, 32], [24, 33], [11, 34], [27, 35], [27, 36], [13, 37], [13, 38], [13, 39], [30, 40], [33, 41], [21, 42], [34, 43], [35, 44], [36, 45], [37, 46], [38, 47], [28, 48], [39, 49], [41, 50], [42, 51], [47, 52], [52, 53], [53, 54], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 3], [7, 1], [8, 1], [9, 4], [10, 5], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 6], [18, 1], [19, 1], [20, 1], [21, 11], [22, 13], [23, 3], [24, 18], [25, 7], [26, 19], [27, 12], [28, 13], [29, 22], [30, 14], [31, 15], [32, 23], [33, 24], [34, 11], [35, 27], [36, 27], [37, 13], [38, 13], [39, 13], [40, 30], [41, 33], [42, 21], [43, 34], [44, 35], [45, 36], [46, 37], [47, 38], [48, 28], [49, 39], [50, 41], [51, 42], [52, 47], [53, 52], [54, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "addArgumentPointer", "code": "    private void addArgumentPointer() {\n\t\tif (this.functionTokens.size() > 0) {\n\t\t\tList arguments = (List)this.functionTokens.get(0);\n\t\t\targuments.add(tokens.get(tokens.size()-1));", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [2, 6], [5, 7], [7, 8], [8, 9], [8, 10], [3, 11], [11, 12], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 2], [7, 5], [8, 7], [9, 8], [10, 8], [11, 3], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "function", "code": "    private void function(String name) {\n    \tthis.functionTokens.add(0, new ArrayList(2));\n    \t\n        Match('(');\n        int numArgs = Arguments();\n        Match(')');\n                \n        AbstractFunctionPtg functionPtg = getFunction(name,(byte)numArgs);\n        \n\t\ttokens.add(functionPtg);\n \n        if (functionPtg.getName().equals(\"externalflag\")) {\n            tokens.add(new NamePtg(name, this.book));\n        }\n\n\t\tthis.functionTokens.remove(0);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [5, 10], [2, 11], [7, 12], [3, 13], [8, 14], [0, 15], [9, 16], [1, 17], [10, 18], [15, 19], [15, 20], [17, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 5], [11, 2], [12, 7], [13, 3], [14, 8], [15, 0], [16, 9], [17, 1], [18, 10], [19, 15], [20, 15], [21, 17], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getPtgSize", "code": "    private int getPtgSize(int index) {\n    \tint count = 0;\n    \t\n    \tIterator ptgIterator = tokens.listIterator(index);\n    \twhile (ptgIterator.hasNext()) {\n    \t\tPtg ptg = (Ptg)ptgIterator.next();\n    \t\tcount+=ptg.getSize();\n    \t}\n    \t\n    \treturn count;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [3, 8], [4, 9], [2, 10], [10, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 3], [9, 4], [10, 2], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getPtgSize", "code": "    private int getPtgSize(int start, int end) {\n        int count = 0;\n        int index = start;\n        Iterator ptgIterator = tokens.listIterator(index);\n        while (ptgIterator.hasNext() && index <= end) {\n            Ptg ptg = (Ptg)ptgIterator.next();\n            count+=ptg.getSize();\n            index++;\n        }\n        \n        return count;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [8, 10], [8, 11], [3, 12], [5, 13], [2, 14], [14, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 8], [11, 8], [12, 3], [13, 5], [14, 2], [15, 14], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getFunction", "code": "    private AbstractFunctionPtg getFunction(String name, byte numArgs) {\n        AbstractFunctionPtg retval = null;\n        \n        if (name.equals(\"IF\")) {\n            retval = new FuncVarPtg(AbstractFunctionPtg.ATTR_NAME, numArgs);\n            \n            List argumentPointers = (List)this.functionTokens.get(0);\n            \n            \n            AttrPtg ifPtg = new AttrPtg();\n            ifPtg.setOptimizedIf(true);\n            \n            if (argumentPointers.size() != 2  && argumentPointers.size() != 3) {\n                throw new IllegalArgumentException(\"[\"+argumentPointers.size()+\"] Arguments Found - An IF formula requires 2 or 3 arguments. IF(CONDITION, TRUE_VALUE, FALSE_VALUE [OPTIONAL]\");\n            }\n            \n            int ifIndex = tokens.indexOf(argumentPointers.get(0))+1;\n            tokens.add(ifIndex, ifPtg);\n            \n            \n            int gotoIndex = tokens.indexOf(argumentPointers.get(1))+1;\n            \n            AttrPtg goto1Ptg = new AttrPtg();\n            goto1Ptg.setGoto(true);\n            \n            \n            tokens.add(gotoIndex, goto1Ptg);\n            \n            \n                \n                AttrPtg goto2Ptg = new AttrPtg();\n                goto2Ptg.setGoto(true);\n                goto2Ptg.setData((short)(retval.getSize()-1));\n                \n            \n            \n            ifPtg.setData((short)(getPtgSize(ifIndex+1, gotoIndex)));\n            \n            int ptgCount = this.getPtgSize(gotoIndex)-goto1Ptg.getSize()+retval.getSize();\n            if (ptgCount > (int)Short.MAX_VALUE) {\n                throw new RuntimeException(\"Ptg Size exceeds short when being specified for a goto ptg in an if\");\n            }\n            \n            goto1Ptg.setData((short)(ptgCount-1));\n            \n        } else {\n            \n            retval = new FuncVarPtg(name,numArgs);\n        }\n        \n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [6, 16], [3, 17], [2, 18], [2, 19], [7, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [13, 27], [2, 28], [2, 29], [18, 30], [7, 31], [8, 32], [23, 33], [9, 34], [25, 35], [10, 36], [11, 37], [12, 38], [13, 39], [27, 40], [27, 41], [28, 42], [14, 43], [29, 44], [19, 45], [31, 46], [32, 47], [32, 48], [21, 49], [22, 50], [37, 51], [37, 52], [38, 53], [38, 54], [39, 55], [40, 56], [40, 57], [41, 58], [41, 59], [45, 60], [46, 61], [48, 62], [49, 63], [50, 64], [50, 65], [52, 66], [54, 67], [55, 68], [15, 69], [48, 70], [63, 71], [66, 72], [67, 73], [68, 74], [68, 75], [69, 76], [75, 77], [75, 78], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 6], [17, 3], [18, 2], [19, 2], [20, 7], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 13], [28, 2], [29, 2], [30, 18], [31, 7], [32, 8], [33, 23], [34, 9], [35, 25], [36, 10], [37, 11], [38, 12], [39, 13], [40, 27], [41, 27], [42, 28], [43, 14], [44, 29], [45, 19], [46, 31], [47, 32], [48, 32], [49, 21], [50, 22], [51, 37], [52, 37], [53, 38], [54, 38], [55, 39], [56, 40], [57, 40], [58, 41], [59, 41], [60, 45], [61, 46], [62, 48], [63, 49], [64, 50], [65, 50], [66, 52], [67, 54], [68, 55], [69, 15], [70, 48], [71, 63], [72, 66], [73, 67], [74, 68], [75, 68], [76, 69], [77, 75], [78, 75], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78]]}, {"function_name": "Arguments", "code": "    private int Arguments() {\n        int numArgs = 0;\n        if (look != ')')  {\n            numArgs++; \n            Expression();\n\t\t\t   addArgumentPointer();\n        \n            if(look == ',') {\n              Match(',');\n            }\n            else {\n              Match(';');\n            }\n            Expression();\n\t\t\t   addArgumentPointer();\n            numArgs++;\n        }\n        return numArgs;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [3, 7], [2, 8], [2, 9], [5, 10], [2, 11], [2, 12], [10, 13], [5, 14], [5, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 3], [8, 2], [9, 2], [10, 5], [11, 2], [12, 2], [13, 10], [14, 5], [15, 5], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "Factor", "code": "    private void Factor() {\n    \tif (look == '-')\n    \t{\n    \t\tMatch('-');\n    \t\tFactor();\n    \t\ttokens.add(new UnaryMinusPtg());\n    \t}\n        else if (look == '(' ) {\n            Match('(');\n            Expression();\n            Match(')');\n            tokens.add(new ParenthesisPtg());\n        } else if (IsAlpha(look) || look == '\\''){\n            Ident();\n        } else if(look == '\"') {\n           StringLiteral();\n        } else {\n             \n            String number = GetNum();\n            if (look=='.') {\n                Match('.');\n                String decimalPart = null;\n                tokens.add(new NumberPtg(number));\n            } else {", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [3, 6], [4, 7], [4, 8], [5, 9], [1, 10], [1, 11], [1, 12], [7, 13], [8, 14], [8, 15], [2, 16], [2, 17], [2, 18], [2, 19], [10, 20], [12, 21], [7, 22], [7, 23], [13, 24], [4, 25], [14, 26], [16, 27], [17, 28], [19, 29], [22, 30], [7, 31], [22, 32], [30, 33], [23, 34], [22, 35], [22, 36], [35, 37], [32, 38], [36, 39], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 3], [7, 4], [8, 4], [9, 5], [10, 1], [11, 1], [12, 1], [13, 7], [14, 8], [15, 8], [16, 2], [17, 2], [18, 2], [19, 2], [20, 10], [21, 12], [22, 7], [23, 7], [24, 13], [25, 4], [26, 14], [27, 16], [28, 17], [29, 19], [30, 22], [31, 7], [32, 22], [33, 30], [34, 23], [35, 22], [36, 22], [37, 35], [38, 32], [39, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "StringLiteral", "code": "    private void StringLiteral() \n\t{\n\t\tif (look != '\"')\n\t\t\tExpected(\"\\\"\");\n\t\telse\n\t\t{\n\t\t\tGetChar();\n\t\t\tStringBuffer Token = new StringBuffer();\n\t\t\tfor (;;)\n\t\t\t{\n\t\t\t\tif (look == '\"')\n\t\t\t\t{\n\t\t\t\t\tGetChar();\n\t\t\t\t\tif (look == '\"')\n\t\t\t\t\t\tToken.append(\"\\\"\");\n\t\t\t\t\telse\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (look == 0)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToken.append(look);\n\t\t\t\t\tGetChar();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttokens.add(new StringPtg(Token.toString()));", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [1, 7], [1, 8], [5, 9], [7, 10], [3, 11], [4, 12], [10, 13], [11, 14], [11, 15], [14, 16], [11, 17], [15, 18], [14, 19], [16, 20], [17, 21], [17, 22], [11, 23], [14, 24], [14, 25], [17, 26], [22, 27], [26, 28], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 1], [8, 1], [9, 5], [10, 7], [11, 3], [12, 4], [13, 10], [14, 11], [15, 11], [16, 14], [17, 11], [18, 15], [19, 14], [20, 16], [21, 17], [22, 17], [23, 11], [24, 14], [25, 14], [26, 17], [27, 22], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "Multiply", "code": "    private void Multiply(){\n        Match('*');\n        Factor();\n        tokens.add(new MultiplyPtg());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Divide", "code": "    private void Divide() {\n        Match('/');\n        Factor();\n        tokens.add(new DividePtg());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Term", "code": "    private void  Term(){\n        Factor();\n\t\t while (look == '*' || look == '/' || look == '^' || look == '&') {\n        \n            if (look == '*') Multiply();\n            else if (look == '/') Divide();\n            else if (look == '^') Power();\n            else if (look == '&') Concat();", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [4, 8], [5, 9], [6, 10], [6, 11], [7, 12], [7, 13], [4, 14], [8, 15], [10, 16], [11, 17], [11, 18], [12, 19], [12, 20], [7, 21], [13, 22], [17, 23], [18, 24], [19, 25], [12, 26], [20, 27], [19, 28], [25, 29], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 4], [9, 5], [10, 6], [11, 6], [12, 7], [13, 7], [14, 4], [15, 8], [16, 10], [17, 11], [18, 11], [19, 12], [20, 12], [21, 7], [22, 13], [23, 17], [24, 18], [25, 19], [26, 12], [27, 20], [28, 19], [29, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "Add", "code": "    private void Add() {\n        Match('+');\n        Term();\n        tokens.add(new AddPtg());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Concat", "code": "    private void Concat() {\n        Match('&');\n        Term();\n        tokens.add(new ConcatPtg());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Equal", "code": "    private void Equal() {\n        Match('=');\n        Expression();\n        tokens.add(new EqualPtg());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Subtract", "code": "    private void Subtract() {\n        Match('-');\n        Term();\n        tokens.add(new SubtractPtg());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Power", "code": "    private void Power() {\n        Match('^');\n        Term();\n        tokens.add(new PowerPtg());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Expression", "code": "    private void Expression() {\n        Term();\n        while (IsAddop(look)) {\n            if (look == '+' )  Add();\n            else if (look == '-') Subtract();\n        }\n        \n\t\t/*\n\t\t * This isn't quite right since it would allow multiple comparison operators.\n\t\t */\n\t\t\n\t\t  if(look == '=' || look == '>' || look == '<') {\n\t\t  \t\tif (look == '=') Equal();\n\t\t      else if (look == '>') GreaterThan();\n\t\t      else if (look == '<') LessThan();\n\t\t      return;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "BINARY_OP", "CALL", "CALL", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "IF", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [0, 5], [1, 6], [1, 7], [3, 8], [3, 9], [2, 10], [7, 11], [7, 12], [8, 13], [9, 14], [9, 15], [10, 16], [10, 17], [11, 18], [11, 19], [7, 20], [12, 21], [14, 22], [15, 23], [16, 24], [10, 25], [17, 26], [18, 27], [11, 28], [19, 29], [16, 30], [24, 31], [18, 32], [27, 33], [1, 0], [2, 0], [3, 1], [4, 2], [5, 0], [6, 1], [7, 1], [8, 3], [9, 3], [10, 2], [11, 7], [12, 7], [13, 8], [14, 9], [15, 9], [16, 10], [17, 10], [18, 11], [19, 11], [20, 7], [21, 12], [22, 14], [23, 15], [24, 16], [25, 10], [26, 17], [27, 18], [28, 11], [29, 19], [30, 16], [31, 24], [32, 18], [33, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "GreaterThan", "code": "    private void GreaterThan() {\n\t\tMatch('>');\n\t\tif(look == '=')\n\t\t    GreaterEqual();\n\t\telse {\n\t\t    Expression();\n\t\t    tokens.add(new GreaterThanPtg());", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [7, 9], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "LessThan", "code": "    private void LessThan() {\n\t\tMatch('<');\n\t\tif(look == '=')\n\t\t    LessEqual();\n\t\telse if(look == '>')\n\t\t    NotEqual();\n\t\telse {\n\t\t    Expression();\n\t\t    tokens.add(new LessThanPtg());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [0, 4], [2, 5], [1, 6], [3, 7], [4, 8], [2, 9], [5, 10], [2, 11], [2, 12], [11, 13], [1, 0], [2, 1], [3, 1], [4, 0], [5, 2], [6, 1], [7, 3], [8, 4], [9, 2], [10, 5], [11, 2], [12, 2], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "GreaterEqual", "code": "\tprivate void GreaterEqual() {\n\t    Match('=');\n\t    Expression();\n\t    tokens.add(new GreaterEqualPtg());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "LessEqual", "code": "\tprivate void LessEqual() {\n\t    Match('=');\n\t    Expression();\n\t    tokens.add(new LessEqualPtg());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "NotEqual", "code": "\tprivate void NotEqual() {\n\t    Match('>');\n\t    Expression();\n\t    tokens.add(new NotEqualPtg());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "init", "code": "    private void  init() {\n        GetChar();\n        SkipWhite();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parse", "code": "    public void parse() {\n        synchronized (tokens) {\n            init();\n            Expression();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRPNPtg", "code": "    public Ptg[] getRPNPtg() {\n     return getRPNPtg(FORMULA_TYPE_CELL);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRPNPtg", "code": "    public Ptg[] getRPNPtg(int formulaType) {\n        Node node = createTree();\n        setRootLevelRVA(node, formulaType);\n        setParameterRVA(node,formulaType);\n        return (Ptg[]) tokens.toArray(new Ptg[0]);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setRootLevelRVA", "code": "    private void setRootLevelRVA(Node n, int formulaType) {\n        Ptg p = (Ptg) n.getValue();\n            if (formulaType == FormulaParser.FORMULA_TYPE_NAMEDRANGE) {\n                if (p.getDefaultOperandClass() == Ptg.CLASS_REF) {\n                    setClass(n,Ptg.CLASS_REF);\n                } else {\n                    setClass(n,Ptg.CLASS_ARRAY);\n                }\n            } else {\n                setClass(n,Ptg.CLASS_VALUE);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [2, 9], [8, 10], [6, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 2], [10, 8], [11, 6], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setParameterRVA", "code": "    private void setParameterRVA(Node n, int formulaType) {\n        Ptg p = n.getValue();\n        int numOperands = n.getNumChildren();\n        if (p instanceof AbstractFunctionPtg) {\n            for (int i =0;i<numOperands;i++) {\n                setParameterRVA(n.getChild(i),((AbstractFunctionPtg)p).getParameterClass(i),formulaType);\n                setParameterRVA(n.getChild(i),formulaType);\n            }\n        } else {\n            for (int i =0;i<numOperands;i++) {\n                setParameterRVA(n.getChild(i),formulaType);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LOOP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [3, 10], [7, 11], [8, 12], [7, 13], [7, 14], [8, 15], [8, 16], [8, 17], [13, 18], [15, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 3], [11, 7], [12, 8], [13, 7], [14, 7], [15, 8], [16, 8], [17, 8], [18, 13], [19, 15], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "setParameterRVA", "code": "    private void setParameterRVA(Node n, int expectedClass,int formulaType) {\n        Ptg p = (Ptg) n.getValue();\n            if (p.getDefaultOperandClass() == Ptg.CLASS_REF ) {\n                setClass(n, Ptg.CLASS_REF);\n            }\n            if (p.getDefaultOperandClass() == Ptg.CLASS_VALUE) {\n                if (formulaType==FORMULA_TYPE_CELL || formulaType == FORMULA_TYPE_SHARED) {\n                    setClass(n,Ptg.CLASS_VALUE);\n                } else {\n                    setClass(n,Ptg.CLASS_ARRAY);\n                }\n            }\n            if (p.getDefaultOperandClass() == Ptg.CLASS_ARRAY ) {\n                setClass(n, Ptg.CLASS_ARRAY);\n            }\n            if (formulaType == FORMULA_TYPE_NAMEDRANGE) {\n                setClass(n,Ptg.CLASS_ARRAY) ;\n            } else {\n                setClass(n,Ptg.CLASS_VALUE);\n            }\n            if (p.getDefaultOperandClass() == Ptg.CLASS_VALUE &&\n                 (formulaType==FORMULA_TYPE_CELL || formulaType == FORMULA_TYPE_SHARED)) {\n                 setClass(n,Ptg.CLASS_VALUE);\n            } else {\n                setClass(n,Ptg.CLASS_ARRAY);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [4, 13], [5, 14], [10, 15], [10, 16], [12, 17], [4, 18], [13, 19], [14, 20], [1, 21], [1, 22], [15, 23], [15, 24], [16, 25], [2, 26], [2, 27], [3, 28], [18, 29], [5, 30], [6, 31], [29, 32], [29, 33], [18, 34], [18, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 4], [14, 5], [15, 10], [16, 10], [17, 12], [18, 4], [19, 13], [20, 14], [21, 1], [22, 1], [23, 15], [24, 15], [25, 16], [26, 2], [27, 2], [28, 3], [29, 18], [30, 5], [31, 6], [32, 29], [33, 29], [34, 18], [35, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "setClass", "code": "     private void setClass(Node n, byte theClass) {\n        Ptg p = (Ptg) n.getValue();\n        if (p instanceof AbstractFunctionPtg || !(p instanceof OperationPtg)) {\n            p.setClass(theClass);\n        } else {\n            for (int i =0;i<n.getNumChildren();i++) {\n                setClass(n.getChild(i),theClass);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [6, 9], [1, 10], [2, 11], [9, 12], [6, 13], [6, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 6], [10, 1], [11, 2], [12, 9], [13, 6], [14, 6], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "toFormulaString", "code": "    public static String toFormulaString(Workbook book, List lptgs) {\n        String retval = null;\n        if (lptgs == null || lptgs.size() == 0) return \"#NAME\";\n        Ptg[] ptgs = new Ptg[lptgs.size()];\n        ptgs = (Ptg[])lptgs.toArray(ptgs);\n        retval = toFormulaString(book, ptgs);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [3, 10], [7, 11], [9, 12], [10, 13], [10, 14], [4, 15], [8, 16], [2, 17], [13, 18], [13, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 3], [11, 7], [12, 9], [13, 10], [14, 10], [15, 4], [16, 8], [17, 2], [18, 13], [19, 13], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "toFormulaString", "code": "    public static String toFormulaString(Workbook book, Ptg[] ptgs) {\n        if (ptgs == null || ptgs.length == 0) return \"#NAME\";\n        java.util.Stack stack = new java.util.Stack();\n        AttrPtg ifptg = null;\n\n        stack.push(ptgs[0].toFormulaString(book));\n                  \n        for (int i = 1; i < ptgs.length; i++) {\n            if (! (ptgs[i] instanceof OperationPtg)) {\n                stack.push(ptgs[i].toFormulaString(book));\n                continue;\n            }\n                      \n            if (ptgs[i] instanceof AttrPtg && ((AttrPtg) ptgs[i]).isOptimizedIf()) {\n                ifptg = (AttrPtg) ptgs[i];\n                continue;\n            }\n                      \n            final OperationPtg o = (OperationPtg) ptgs[i];\n            final String[] operands = new String[o.getNumberOfOperands()];\n\n            for (int j = operands.length; j > 0; j--) {\n                operands[j - 1] = (String) stack.pop();\n                      }  \n\n            stack.push(o.toFormulaString(operands));\n            if (!(o instanceof AbstractFunctionPtg)) continue;\n\n            final AbstractFunctionPtg f = (AbstractFunctionPtg) o;\n            final String fname = f.getName();\n            if (fname == null) continue;\n\n            if ((ifptg != null) && (fname.equals(\"specialflag\"))) {\n                stack.push(ifptg.toFormulaString(new String[]{(String) stack.pop()}));\n                continue;\n                      }\n            if (fname.equals(\"externalflag\")) {\n                final String top = (String) stack.pop();\n                final int paren = top.indexOf('(');\n                final int comma = top.indexOf(',');\n                if (comma == -1) {\n                    final int rparen = top.indexOf(')');\n                    stack.push(top.substring(paren + 1, rparen) + \"()\");\n                  }\n                else {\n                    stack.push(top.substring(paren + 1, comma) + '(' +\n                               top.substring(comma + 1));\n            }\n        }\n    }\n        return (String) stack.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "CALL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [5, 10], [5, 11], [1, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [3, 24], [4, 25], [10, 26], [11, 27], [11, 28], [13, 29], [14, 30], [15, 31], [15, 32], [18, 33], [18, 34], [2, 35], [19, 36], [22, 37], [23, 38], [2, 39], [9, 40], [27, 41], [28, 42], [13, 43], [13, 44], [13, 45], [13, 46], [29, 47], [14, 48], [30, 49], [30, 50], [32, 51], [16, 52], [35, 53], [36, 54], [22, 55], [37, 56], [23, 57], [9, 58], [43, 59], [14, 60], [49, 61], [50, 62], [19, 63], [20, 64], [22, 65], [23, 66], [43, 67], [59, 68], [44, 69], [45, 70], [60, 71], [43, 72], [43, 73], [69, 74], [70, 75], [46, 76], [63, 77], [66, 78], [72, 79], [73, 80], [67, 81], [63, 82], [79, 83], [79, 84], [80, 85], [80, 86], [81, 87], [82, 88], [83, 89], [84, 90], [84, 91], [86, 92], [71, 93], [89, 94], [91, 95], [92, 96], [95, 97], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 5], [11, 5], [12, 1], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 3], [25, 4], [26, 10], [27, 11], [28, 11], [29, 13], [30, 14], [31, 15], [32, 15], [33, 18], [34, 18], [35, 2], [36, 19], [37, 22], [38, 23], [39, 2], [40, 9], [41, 27], [42, 28], [43, 13], [44, 13], [45, 13], [46, 13], [47, 29], [48, 14], [49, 30], [50, 30], [51, 32], [52, 16], [53, 35], [54, 36], [55, 22], [56, 37], [57, 23], [58, 9], [59, 43], [60, 14], [61, 49], [62, 50], [63, 19], [64, 20], [65, 22], [66, 23], [67, 43], [68, 59], [69, 44], [70, 45], [71, 60], [72, 43], [73, 43], [74, 69], [75, 70], [76, 46], [77, 63], [78, 66], [79, 72], [80, 73], [81, 67], [82, 63], [83, 79], [84, 79], [85, 80], [86, 80], [87, 81], [88, 82], [89, 83], [90, 84], [91, 84], [92, 86], [93, 71], [94, 89], [95, 91], [96, 92], [97, 95], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97]]}, {"function_name": "createTree", "code": "    private Node createTree() {\n        java.util.Stack stack = new java.util.Stack();\n        int numPtgs = tokens.size();\n        OperationPtg o;\n        int numOperands;\n        Node[] operands;\n        for (int i=0;i<numPtgs;i++) {\n            if (tokens.get(i) instanceof OperationPtg) {\n                \n                o = (OperationPtg) tokens.get(i);\n                numOperands = o.getNumberOfOperands();\n                operands = new Node[numOperands];\n                for (int j=0;j<numOperands;j++) {\n                    operands[numOperands-j-1] = (Node) stack.pop(); \n                }\n                Node result = new Node(o);\n                result.setChildren(operands);\n                stack.push(result);\n            } else {\n                stack.push(new Node((Ptg)tokens.get(i)));\n            }\n        }\n        return (Node) stack.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LOOP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 9], [2, 10], [6, 11], [7, 12], [10, 13], [2, 14], [10, 15], [10, 16], [13, 17], [10, 18], [10, 19], [10, 20], [16, 21], [10, 22], [10, 23], [10, 24], [18, 25], [15, 26], [23, 27], [16, 28], [16, 29], [24, 30], [25, 31], [28, 32], [28, 33], [33, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 1], [10, 2], [11, 6], [12, 7], [13, 10], [14, 2], [15, 10], [16, 10], [17, 13], [18, 10], [19, 10], [20, 10], [21, 16], [22, 10], [23, 10], [24, 10], [25, 18], [26, 15], [27, 23], [28, 16], [29, 16], [30, 24], [31, 25], [32, 28], [33, 28], [34, 33], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer();\n           for (int i=0;i<tokens.size();i++) {\n            buf.append( ( (Ptg)tokens.get(i)).toFormulaString(book));\n            buf.append(' ');\n        } \n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [3, 7], [2, 8], [2, 9], [2, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 3], [8, 2], [9, 2], [10, 2], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "FormulaParser", "code": "    public FormulaParser(String formula, Workbook book){\n        formulaString = formula;\n        pointer=0;\n        this.book = book;\n    \tformulaLength = formulaString.length();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "jedit-4.2-4284", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "bsh/ClassGenerator.java", "language": "java", "name": "bsh.ClassGenerator", "code": "public abstract class ClassGenerator\n{\n\tprivate static ClassGenerator cg;\n\n\tpublic static ClassGenerator getClassGenerator() \n\t\tthrows UtilEvalError\n\t{\n\t\tif ( cg == null ) \n\t\t{\n\t\t\ttry {\n\t\t\t\tClass clas = Class.forName( \"bsh.ClassGeneratorImpl\" );\n\t\t\t\tcg = (ClassGenerator)clas.newInstance();\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tthrow new Unavailable(\"ClassGenerator unavailable: \"+e);\n\t\t\t}\n\t\t}\n\t\n\t\treturn cg;\n\t}\n\n\t/**\n\t\tParse the BSHBlock for the class definition and generate the class.\n\t*/\n\tpublic abstract Class generateClass( \n\t\tString name, Modifiers modifiers, \n\t\tClass [] interfaces, Class superClass, BSHBlock block, \n\t\tboolean isInterface, CallStack callstack, Interpreter interpreter \n\t)\n\t\tthrows EvalError;\n\n\t/**\n\t\tInvoke a super.method() style superclass method on an object instance.\n\t\tThis is not a normal function of the Java reflection API and is\n\t\tprovided by generated class accessor methods.\n\t*/\n\tpublic abstract Object invokeSuperclassMethod(\n\t\tBshClassManager bcm, Object instance, String methodName, Object [] args\n\t)\n        throws UtilEvalError, ReflectError, InvocationTargetException;\n\n\t/**\n\t\tChange the parent of the class instance namespace.\n\t\tThis is currently used for inner class support.\n\t\tNote: This method will likely be removed in the future.\n\t*/\n\tpublic abstract void setInstanceNameSpaceParent( \n\t\tObject instance, String className, NameSpace parent );", "functions": [{"function_name": "getClassGenerator", "code": "\tpublic static ClassGenerator getClassGenerator() \n\t\tthrows UtilEvalError\n\t{\n\t\tif ( cg == null ) \n\t\t{\n\t\t\ttry {\n\t\t\t\tClass clas = Class.forName( \"bsh.ClassGeneratorImpl\" );\n\t\t\t\tcg = (ClassGenerator)clas.newInstance();\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tthrow new Unavailable(\"ClassGenerator unavailable: \"+e);\n\t\t\t}\n\t\t}\n\t\n\t\treturn cg;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [6, 8], [4, 9], [8, 10], [7, 11], [10, 12], [9, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 6], [9, 4], [10, 8], [11, 7], [12, 10], [13, 9], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "generateClass", "code": "\tpublic abstract Class generateClass( \n\t\tString name, Modifiers modifiers, \n\t\tClass [] interfaces, Class superClass, BSHBlock block, \n\t\tboolean isInterface, CallStack callstack, Interpreter interpreter ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "invokeSuperclassMethod", "code": "\tpublic abstract Object invokeSuperclassMethod(\n\t\tBshClassManager bcm, Object instance, String methodName, Object [] args", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setInstanceNameSpaceParent", "code": "\tpublic abstract void setInstanceNameSpaceParent( \n\t\tObject instance, String className, NameSpace parent );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.6-7826", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/dom/DOMAdapter.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.DOMAdapter", "code": "public final class DOMAdapter implements DOM {\n\n    private DOMEnhancedForDTM _enhancedDOM;\n\n    private DOM _dom;\n\n    private String[] _namesArray;\n    private String[] _urisArray;\n    private int[]    _typesArray;\n    private String[] _namespaceArray;\n\n    private short[] _mapping = null;\n    private int[]   _reverse = null;\n    private short[] _NSmapping = null;\n    private short[] _NSreverse = null;\n\n    private StripFilter _filter = null;\n\n    private int _multiDOMMask;\n    \n    public DOMAdapter(DOM dom,\n                      String[] namesArray,\n                      String[] urisArray,\n                      int[] typesArray,\n                      String[] namespaceArray) {\n        if (dom instanceof DOMEnhancedForDTM){\n            _enhancedDOM = (DOMEnhancedForDTM) dom;\n        }\n\n        _dom = dom;\n        _namesArray = namesArray;\n        _urisArray = urisArray;\n        _typesArray = typesArray;\n        _namespaceArray = namespaceArray;\n    }\n\n    public void setupMapping(String[] names, String[] urisArray,\n                             int[] typesArray, String[] namespaces) {\n        _namesArray = names;\n        _urisArray = urisArray;\n        _typesArray = typesArray;\n        _namespaceArray = namespaces;\n    }\n    \n    public String[] getNamesArray() {\n        return _namesArray;\n    }\n    \n    public String[] getUrisArray() {\n    \treturn _urisArray;\n    }\n    \n    public int[] getTypesArray() {\n    \treturn _typesArray;\n    }\n    \n    public String[] getNamespaceArray() {\n        return _namespaceArray;\n    }\n    \n    public DOM getDOMImpl() {\n    \treturn _dom;\n    }\n\n    private short[] getMapping() {\n        if (_mapping == null) {\n            if (_enhancedDOM != null) {\n                _mapping = _enhancedDOM.getMapping(_namesArray, _urisArray,\n                                                   _typesArray);\n            } \n        }\n        return _mapping;\n    }\n\n    private int[] getReverse() {\n\tif (_reverse == null) {\n            if (_enhancedDOM != null) {\n\t        _reverse = _enhancedDOM.getReverseMapping(_namesArray,\n                                                          _urisArray,\n                                                          _typesArray);\n            }\n\t}\n\treturn _reverse;\n    }\n\n    private short[] getNSMapping() {\n\tif (_NSmapping == null) {\n            if (_enhancedDOM != null) {\n\t        _NSmapping = _enhancedDOM.getNamespaceMapping(_namespaceArray);\n            }\n\t}\n\treturn _NSmapping;\n    }\n\n    private short[] getNSReverse() {\n\tif (_NSreverse == null) {\n            if (_enhancedDOM != null) {\n\t        _NSreverse = _enhancedDOM\n                                  .getReverseNamespaceMapping(_namespaceArray);\n            }\n\t}\n\treturn _NSreverse;\n    }\n\n    /** \n      * Returns singleton iterator containg the document root \n      */\n    public DTMAxisIterator getIterator() {\n        return _dom.getIterator();\n    }\n    \n    public String getStringValue() {\n        return _dom.getStringValue();\n    }\n    \n    public DTMAxisIterator getChildren(final int node) {\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.getChildren(node);\n        }\n        else {\n            DTMAxisIterator iterator = _dom.getChildren(node);\n            return iterator.setStartNode(node);\n        }\n    }\n\n    public void setFilter(StripFilter filter) {\n\t_filter = filter;\n    }\n\n    public DTMAxisIterator getTypedChildren(final int type) {\n        final int[] reverse = getReverse();\n\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.getTypedChildren(reverse[type]);\n        }\n        else {\n            return _dom.getTypedChildren(type);\n        }      \n    }\n\n    public DTMAxisIterator getNamespaceAxisIterator(final int axis,\n                                                    final int ns) {\n        return _dom.getNamespaceAxisIterator(axis, getNSReverse()[ns]);\n    }\n\n    public DTMAxisIterator getAxisIterator(final int axis) {\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.getAxisIterator(axis);\n        }\n        else {\n            return _dom.getAxisIterator(axis);\n        }        \n    }\n    \n    public DTMAxisIterator getTypedAxisIterator(final int axis,\n                                                final int type) {\n        final int[] reverse = getReverse();\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.getTypedAxisIterator(axis, reverse[type]);\n        } else {\n            return _dom.getTypedAxisIterator(axis, type);\n        }      \n    }\n        \n    public int getMultiDOMMask() {\n\treturn _multiDOMMask;\n    }\n\n    public void setMultiDOMMask(int mask) {\n\t_multiDOMMask = mask;\n    }\n\n    public DTMAxisIterator getNthDescendant(int type, int n,\n                                            boolean includeself) {\n        return _dom.getNthDescendant(getReverse()[type], n, includeself);\n    }\n\n    public DTMAxisIterator getNodeValueIterator(DTMAxisIterator iterator,\n                                                int type, String value,\n                                                boolean op) {\n        return _dom.getNodeValueIterator(iterator, type, value, op);\n    }\n\n    public DTMAxisIterator orderNodes(DTMAxisIterator source, int node) {\n        return _dom.orderNodes(source, node);\n    }\n    \n    public int getExpandedTypeID(final int node) {\n        if (_enhancedDOM != null) {\n            return getMapping()[_enhancedDOM.getExpandedTypeID2(node)];\n        }\n        else {\n            return getMapping()[_dom.getExpandedTypeID(node)];\n        }\n    }\n\n    public int getNamespaceType(final int node) {\n    \treturn getNSMapping()[_dom.getNSType(node)];\n    }\n\n    public int getNSType(int node) {\n\treturn _dom.getNSType(node);\n    }\n    \n    public int getParent(final int node) {\n        return _dom.getParent(node);\n    }\n\n    public int getAttributeNode(final int type, final int element) {\n\treturn _dom.getAttributeNode(getReverse()[type], element);\n    }\n    \n    public String getNodeName(final int node) {\n    \tif (node == DTM.NULL) {\n    \t    return \"\";\n    \t}\n        return _dom.getNodeName(node);\n    }\n    \n    public String getNodeNameX(final int node) \n    {\n    \tif (node == DTM.NULL) {\n    \t    return \"\";\n    \t}\n        return _dom.getNodeNameX(node);\n    }\n\n    public String getNamespaceName(final int node) \n    {\n    \tif (node == DTM.NULL) {\n    \t    return \"\";\n    \t}\n        return _dom.getNamespaceName(node);\n    }\n    \n    public String getStringValueX(final int node) \n    {    \t\n    \tif (_enhancedDOM != null) {\n            return _enhancedDOM.getStringValueX(node);\n        }\n        else {\n            if (node == DTM.NULL) {\n    \t        return \"\";\n    \t    }\n            return _dom.getStringValueX(node);\n        }\n    }\n    \n    public void copy(final int node, SerializationHandler handler)\n\tthrows TransletException \n    {\n        _dom.copy(node, handler);\n    }\n    \n    public void copy(DTMAxisIterator nodes,SerializationHandler handler)\n\tthrows TransletException \n    {\n\t_dom.copy(nodes, handler);\n    }\n\n    public String shallowCopy(final int node, SerializationHandler handler)\n\tthrows TransletException \n    {\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.shallowCopy(node, handler);\n        }\n        else {\n            return _dom.shallowCopy(node, handler);\n        }\n    }\n    \n    public boolean lessThan(final int node1, final int node2) \n    {\n        return _dom.lessThan(node1, node2);\n    }\n    \n    public void characters(final int textNode, SerializationHandler handler)\n      throws TransletException \n    {\n        if (_enhancedDOM != null) {\n            _enhancedDOM.characters(textNode, handler);\n        }\n        else {\n            _dom.characters(textNode, handler);\n        }\n    }\n\n    public Node makeNode(int index) \n    {\n        return _dom.makeNode(index);\n    }\n\n    public Node makeNode(DTMAxisIterator iter) \n    {\n        return _dom.makeNode(iter);\n    }\n\n    public NodeList makeNodeList(int index) \n    {\n        return _dom.makeNodeList(index);\n    }\n\n    public NodeList makeNodeList(DTMAxisIterator iter) \n    {\n        return _dom.makeNodeList(iter);\n    }\n\n    public String getLanguage(int node) \n    {\n        return _dom.getLanguage(node);\n    }\n\n    public int getSize() \n    {\n        return _dom.getSize();\n    }\n\n    public void setDocumentURI(String uri) \n    {\n        if (_enhancedDOM != null) {\n            _enhancedDOM.setDocumentURI(uri);\n        }\n    }\n\n    public String getDocumentURI()\n    {\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.getDocumentURI();\n        }\n        else {\n            return \"\";\n        }\n    }\n\n    public String getDocumentURI(int node) \n    {\n        return _dom.getDocumentURI(node);\n    }\n\n    public int getDocument() \n    {\n        return _dom.getDocument();\n    }\n\n    public boolean isElement(final int node) \n    {\n        return(_dom.isElement(node));\n    }\n\n    public boolean isAttribute(final int node) \n    {\n        return(_dom.isAttribute(node));\n    }\n    \n    public int getNodeIdent(int nodeHandle)\n    {\n    \treturn _dom.getNodeIdent(nodeHandle);\n    }\n    \n    public int getNodeHandle(int nodeId)\n    {\n    \treturn _dom.getNodeHandle(nodeId);\n    }\n    \n    /**\n     * Return a instance of a DOM class to be used as an RTF\n     */ \n    public DOM getResultTreeFrag(int initSize, int rtfType)\n    {\n    \tif (_enhancedDOM != null) {\n    \t    return _enhancedDOM.getResultTreeFrag(initSize, rtfType);\n    \t}\n    \telse {\n    \t    return _dom.getResultTreeFrag(initSize, rtfType);\n    \t}\n    }\n    \n    /**\n     * Return a instance of a DOM class to be used as an RTF\n     */ \n    public DOM getResultTreeFrag(int initSize, int rtfType,\n                                 boolean addToManager)\n    {\n    \tif (_enhancedDOM != null) {\n    \t    return _enhancedDOM.getResultTreeFrag(initSize, rtfType,\n                                                  addToManager);\n    \t}\n    \telse {\n\t    return _dom.getResultTreeFrag(initSize, rtfType, addToManager);\n\t}\n    }\n  \n    \n    /**\n     * Returns a SerializationHandler class wrapped in a SAX adapter.\n     */\n    public SerializationHandler getOutputDomBuilder()\n    {\n    \treturn _dom.getOutputDomBuilder();\n    }\n\n    public String lookupNamespace(int node, String prefix) \n\tthrows TransletException \n    {\n\treturn _dom.lookupNamespace(node, prefix);\n    }\n\n    public String getUnparsedEntityURI(String entity) {\n        return _dom.getUnparsedEntityURI(entity);\n    }\n\n    public Hashtable getElementsWithIDs() {\n        return _dom.getElementsWithIDs();", "functions": [{"function_name": "setupMapping", "code": "    public void setupMapping(String[] names, String[] urisArray,\n                             int[] typesArray, String[] namespaces) {\n        _namesArray = names;\n        _urisArray = urisArray;\n        _typesArray = typesArray;\n        _namespaceArray = namespaces;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNamesArray", "code": "    public String[] getNamesArray() {\n        return _namesArray;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getUrisArray", "code": "    public String[] getUrisArray() {\n    \treturn _urisArray;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypesArray", "code": "    public int[] getTypesArray() {\n    \treturn _typesArray;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespaceArray", "code": "    public String[] getNamespaceArray() {\n        return _namespaceArray;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDOMImpl", "code": "    public DOM getDOMImpl() {\n    \treturn _dom;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMapping", "code": "    private short[] getMapping() {\n        if (_mapping == null) {\n            if (_enhancedDOM != null) {\n                _mapping = _enhancedDOM.getMapping(_namesArray, _urisArray,\n                                                   _typesArray);\n            } \n        }\n        return _mapping;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getReverse", "code": "    private int[] getReverse() {\n\tif (_reverse == null) {\n            if (_enhancedDOM != null) {\n\t        _reverse = _enhancedDOM.getReverseMapping(_namesArray,\n                                                          _urisArray,\n                                                          _typesArray);\n            }\n\t}\n\treturn _reverse;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getNSMapping", "code": "    private short[] getNSMapping() {\n\tif (_NSmapping == null) {\n            if (_enhancedDOM != null) {\n\t        _NSmapping = _enhancedDOM.getNamespaceMapping(_namespaceArray);\n            }\n\t}\n\treturn _NSmapping;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getNSReverse", "code": "    private short[] getNSReverse() {\n\tif (_NSreverse == null) {\n            if (_enhancedDOM != null) {\n\t        _NSreverse = _enhancedDOM\n                                  .getReverseNamespaceMapping(_namespaceArray);\n            }\n\t}\n\treturn _NSreverse;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getIterator", "code": "    public DTMAxisIterator getIterator() {\n        return _dom.getIterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStringValue", "code": "    public String getStringValue() {\n        return _dom.getStringValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getChildren", "code": "    public DTMAxisIterator getChildren(final int node) {\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.getChildren(node);\n        }\n        else {\n            DTMAxisIterator iterator = _dom.getChildren(node);\n            return iterator.setStartNode(node);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [6, 9], [5, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 6], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setFilter", "code": "    public void setFilter(StripFilter filter) {\n\t_filter = filter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTypedChildren", "code": "    public DTMAxisIterator getTypedChildren(final int type) {\n        final int[] reverse = getReverse();\n\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.getTypedChildren(reverse[type]);\n        }\n        else {\n            return _dom.getTypedChildren(type);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNamespaceAxisIterator", "code": "    public DTMAxisIterator getNamespaceAxisIterator(final int axis,\n                                                    final int ns) {\n        return _dom.getNamespaceAxisIterator(axis, getNSReverse()[ns]);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getAxisIterator", "code": "    public DTMAxisIterator getAxisIterator(final int axis) {\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.getAxisIterator(axis);\n        }\n        else {\n            return _dom.getAxisIterator(axis);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getTypedAxisIterator", "code": "    public DTMAxisIterator getTypedAxisIterator(final int axis,\n                                                final int type) {\n        final int[] reverse = getReverse();\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.getTypedAxisIterator(axis, reverse[type]);\n        } else {\n            return _dom.getTypedAxisIterator(axis, type);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getMultiDOMMask", "code": "    public int getMultiDOMMask() {\n\treturn _multiDOMMask;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMultiDOMMask", "code": "    public void setMultiDOMMask(int mask) {\n\t_multiDOMMask = mask;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNthDescendant", "code": "    public DTMAxisIterator getNthDescendant(int type, int n,\n                                            boolean includeself) {\n        return _dom.getNthDescendant(getReverse()[type], n, includeself);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNodeValueIterator", "code": "    public DTMAxisIterator getNodeValueIterator(DTMAxisIterator iterator,\n                                                int type, String value,\n                                                boolean op) {\n        return _dom.getNodeValueIterator(iterator, type, value, op);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "orderNodes", "code": "    public DTMAxisIterator orderNodes(DTMAxisIterator source, int node) {\n        return _dom.orderNodes(source, node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getExpandedTypeID", "code": "    public int getExpandedTypeID(final int node) {\n        if (_enhancedDOM != null) {\n            return getMapping()[_enhancedDOM.getExpandedTypeID2(node)];\n        }\n        else {\n            return getMapping()[_dom.getExpandedTypeID(node)];", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNamespaceType", "code": "    public int getNamespaceType(final int node) {\n    \treturn getNSMapping()[_dom.getNSType(node)];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNSType", "code": "    public int getNSType(int node) {\n\treturn _dom.getNSType(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getParent", "code": "    public int getParent(final int node) {\n        return _dom.getParent(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAttributeNode", "code": "    public int getAttributeNode(final int type, final int element) {\n\treturn _dom.getAttributeNode(getReverse()[type], element);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getNodeName", "code": "    public String getNodeName(final int node) {\n    \tif (node == DTM.NULL) {\n    \t    return \"\";\n    \t}\n        return _dom.getNodeName(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNodeNameX", "code": "    public String getNodeNameX(final int node) \n    {\n    \tif (node == DTM.NULL) {\n    \t    return \"\";\n    \t}\n        return _dom.getNodeNameX(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNamespaceName", "code": "    public String getNamespaceName(final int node) \n    {\n    \tif (node == DTM.NULL) {\n    \t    return \"\";\n    \t}\n        return _dom.getNamespaceName(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getStringValueX", "code": "    public String getStringValueX(final int node) \n    {    \t\n    \tif (_enhancedDOM != null) {\n            return _enhancedDOM.getStringValueX(node);\n        }\n        else {\n            if (node == DTM.NULL) {\n    \t        return \"\";\n    \t    }\n            return _dom.getStringValueX(node);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [5, 9], [6, 10], [5, 11], [11, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 5], [10, 6], [11, 5], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "copy", "code": "    public void copy(final int node, SerializationHandler handler)\n\tthrows TransletException \n    {\n        _dom.copy(node, handler);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "copy", "code": "    public void copy(DTMAxisIterator nodes,SerializationHandler handler)\n\tthrows TransletException \n    {\n\t_dom.copy(nodes, handler);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "shallowCopy", "code": "    public String shallowCopy(final int node, SerializationHandler handler)\n\tthrows TransletException \n    {\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.shallowCopy(node, handler);\n        }\n        else {\n            return _dom.shallowCopy(node, handler);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "lessThan", "code": "    public boolean lessThan(final int node1, final int node2) \n    {\n        return _dom.lessThan(node1, node2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "characters", "code": "    public void characters(final int textNode, SerializationHandler handler)\n      throws TransletException \n    {\n        if (_enhancedDOM != null) {\n            _enhancedDOM.characters(textNode, handler);\n        }\n        else {\n            _dom.characters(textNode, handler);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "makeNode", "code": "    public Node makeNode(int index) \n    {\n        return _dom.makeNode(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "makeNode", "code": "    public Node makeNode(DTMAxisIterator iter) \n    {\n        return _dom.makeNode(iter);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "makeNodeList", "code": "    public NodeList makeNodeList(int index) \n    {\n        return _dom.makeNodeList(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "makeNodeList", "code": "    public NodeList makeNodeList(DTMAxisIterator iter) \n    {\n        return _dom.makeNodeList(iter);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLanguage", "code": "    public String getLanguage(int node) \n    {\n        return _dom.getLanguage(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSize", "code": "    public int getSize() \n    {\n        return _dom.getSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDocumentURI", "code": "    public void setDocumentURI(String uri) \n    {\n        if (_enhancedDOM != null) {\n            _enhancedDOM.setDocumentURI(uri);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDocumentURI", "code": "    public String getDocumentURI()\n    {\n        if (_enhancedDOM != null) {\n            return _enhancedDOM.getDocumentURI();\n        }\n        else {\n            return \"\";", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDocumentURI", "code": "    public String getDocumentURI(int node) \n    {\n        return _dom.getDocumentURI(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocument", "code": "    public int getDocument() \n    {\n        return _dom.getDocument();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isElement", "code": "    public boolean isElement(final int node) \n    {\n        return(_dom.isElement(node));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAttribute", "code": "    public boolean isAttribute(final int node) \n    {\n        return(_dom.isAttribute(node));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNodeIdent", "code": "    public int getNodeIdent(int nodeHandle)\n    {\n    \treturn _dom.getNodeIdent(nodeHandle);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNodeHandle", "code": "    public int getNodeHandle(int nodeId)\n    {\n    \treturn _dom.getNodeHandle(nodeId);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResultTreeFrag", "code": "    public DOM getResultTreeFrag(int initSize, int rtfType)\n    {\n    \tif (_enhancedDOM != null) {\n    \t    return _enhancedDOM.getResultTreeFrag(initSize, rtfType);\n    \t}\n    \telse {\n    \t    return _dom.getResultTreeFrag(initSize, rtfType);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getResultTreeFrag", "code": "    public DOM getResultTreeFrag(int initSize, int rtfType,\n                                 boolean addToManager)\n    {\n    \tif (_enhancedDOM != null) {\n    \t    return _enhancedDOM.getResultTreeFrag(initSize, rtfType,\n                                                  addToManager);\n    \t}\n    \telse {\n\t    return _dom.getResultTreeFrag(initSize, rtfType, addToManager);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getOutputDomBuilder", "code": "    public SerializationHandler getOutputDomBuilder()\n    {\n    \treturn _dom.getOutputDomBuilder();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "lookupNamespace", "code": "    public String lookupNamespace(int node, String prefix) \n\tthrows TransletException \n    {\n\treturn _dom.lookupNamespace(node, prefix);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUnparsedEntityURI", "code": "    public String getUnparsedEntityURI(String entity) {\n        return _dom.getUnparsedEntityURI(entity);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getElementsWithIDs", "code": "    public Hashtable getElementsWithIDs() {\n        return _dom.getElementsWithIDs();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DOMAdapter", "code": "    public DOMAdapter(DOM dom,\n                      String[] namesArray,\n                      String[] urisArray,\n                      int[] typesArray,\n                      String[] namespaceArray) {\n        if (dom instanceof DOMEnhancedForDTM){\n            _enhancedDOM = (DOMEnhancedForDTM) dom;\n        }\n\n        _dom = dom;\n        _namesArray = namesArray;\n        _urisArray = urisArray;\n        _typesArray = typesArray;\n        _namespaceArray = namespaceArray;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 0}
{"sample_id": "ant-1.4-224", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/zip/ZipLong.java", "language": "java", "name": "org.apache.tools.zip.ZipLong", "code": "public class ZipLong implements Cloneable {\n\n    private long value;\n\n    /**\n     * Create instance from a number.\n     *\n     * @since 1.1\n     */\n    public ZipLong(long value) {\n        this.value = value;\n    }\n\n    /**\n     * Create instance from bytes.\n     *\n     * @since 1.1\n     */\n    public ZipLong (byte[] bytes) {\n        this(bytes, 0);\n    }\n\n    /**\n     * Create instance from the four bytes starting at offset.\n     *\n     * @since 1.1\n     */\n    public ZipLong (byte[] bytes, int offset) {\n        value = (bytes[offset+3] << 24) & 0xFF000000l;\n        value += (bytes[offset+2] << 16) & 0xFF0000;\n        value += (bytes[offset+1] << 8) & 0xFF00;\n        value += (bytes[offset] & 0xFF);\n    }\n\n    /**\n     * Get value as two bytes in big endian byte order.\n     *\n     * @since 1.1\n     */\n    public byte[] getBytes() {\n        byte[] result = new byte[4];\n        result[0] = (byte) ((value & 0xFF));\n        result[1] = (byte) ((value & 0xFF00) >> 8);\n        result[2] = (byte) ((value & 0xFF0000) >> 16);\n        result[3] = (byte) ((value & 0xFF000000l) >> 24);\n        return result;\n    }\n\n    /**\n     * Get value as Java int.\n     *\n     * @since 1.1\n     */\n    public long getValue() {\n        return value;\n    }\n\n    /**\n     * Override to make two instances with same value equal.\n     *\n     * @since 1.1\n     */\n    public boolean equals(Object o) {\n        if (o == null || !(o instanceof ZipLong)) {\n            return false;\n        }\n        return value == ((ZipLong) o).getValue();\n    }\n\n    /**\n     * Override to make two instances with same value equal.\n     *\n     * @since 1.1\n     */\n    public int hashCode() {\n        return (int) value;", "functions": [{"function_name": "getBytes", "code": "    public byte[] getBytes() {\n        byte[] result = new byte[4];\n        result[0] = (byte) ((value & 0xFF));\n        result[1] = (byte) ((value & 0xFF00) >> 8);\n        result[2] = (byte) ((value & 0xFF0000) >> 16);\n        result[3] = (byte) ((value & 0xFF000000l) >> 24);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [5, 9], [6, 10], [2, 11], [7, 12], [7, 13], [3, 14], [8, 15], [8, 16], [4, 17], [9, 18], [9, 19], [5, 20], [10, 21], [6, 22], [13, 23], [16, 24], [19, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 5], [10, 6], [11, 2], [12, 7], [13, 7], [14, 3], [15, 8], [16, 8], [17, 4], [18, 9], [19, 9], [20, 5], [21, 10], [22, 6], [23, 13], [24, 16], [25, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getValue", "code": "    public long getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "equals", "code": "    public boolean equals(Object o) {\n        if (o == null || !(o instanceof ZipLong)) {\n            return false;\n        }\n        return value == ((ZipLong) o).getValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "hashCode", "code": "    public int hashCode() {\n        return (int) value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ZipLong", "code": "    public ZipLong(long value) {\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ZipLong", "code": "    public ZipLong (byte[] bytes) {\n        this(bytes, 0);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ZipLong", "code": "    public ZipLong (byte[] bytes, int offset) {\n        value = (bytes[offset+3] << 24) & 0xFF000000l;\n        value += (bytes[offset+2] << 16) & 0xFF0000;\n        value += (bytes[offset+1] << 8) & 0xFF00;\n        value += (bytes[offset] & 0xFF);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [8, 12], [8, 13], [9, 14], [9, 15], [10, 16], [10, 17], [13, 18], [15, 19], [17, 20], [13, 21], [15, 22], [17, 23], [21, 24], [22, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 5], [10, 6], [11, 7], [12, 8], [13, 8], [14, 9], [15, 9], [16, 10], [17, 10], [18, 13], [19, 15], [20, 17], [21, 13], [22, 15], [23, 17], [24, 21], [25, 22], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}], "label": 0}
{"sample_id": "xalan-2.7-8292", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/res/XMLErrorResources_ca.java", "language": "java", "name": "org.apache.xml.res.XMLErrorResources_ca", "code": "public class XMLErrorResources_ca extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 61;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 0;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 4;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Message keys\n   */\n  public static final String ER_FUNCTION_NOT_SUPPORTED = \"ER_FUNCTION_NOT_SUPPORTED\";\n  public static final String ER_CANNOT_OVERWRITE_CAUSE = \"ER_CANNOT_OVERWRITE_CAUSE\";\n  public static final String ER_NO_DEFAULT_IMPL = \"ER_NO_DEFAULT_IMPL\";\n  public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = \"ER_CHUNKEDINTARRAY_NOT_SUPPORTED\";\n  public static final String ER_OFFSET_BIGGER_THAN_SLOT = \"ER_OFFSET_BIGGER_THAN_SLOT\";\n  public static final String ER_COROUTINE_NOT_AVAIL = \"ER_COROUTINE_NOT_AVAIL\";\n  public static final String ER_COROUTINE_CO_EXIT = \"ER_COROUTINE_CO_EXIT\";\n  public static final String ER_COJOINROUTINESET_FAILED = \"ER_COJOINROUTINESET_FAILED\";\n  public static final String ER_COROUTINE_PARAM = \"ER_COROUTINE_PARAM\";\n  public static final String ER_PARSER_DOTERMINATE_ANSWERS = \"ER_PARSER_DOTERMINATE_ANSWERS\";\n  public static final String ER_NO_PARSE_CALL_WHILE_PARSING = \"ER_NO_PARSE_CALL_WHILE_PARSING\";\n  public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = \"ER_ITERATOR_CLONE_NOT_SUPPORTED\";\n  public static final String ER_UNKNOWN_AXIS_TYPE = \"ER_UNKNOWN_AXIS_TYPE\";\n  public static final String ER_AXIS_NOT_SUPPORTED = \"ER_AXIS_NOT_SUPPORTED\";\n  public static final String ER_NO_DTMIDS_AVAIL = \"ER_NO_DTMIDS_AVAIL\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_NODE_NON_NULL = \"ER_NODE_NON_NULL\";\n  public static final String ER_COULD_NOT_RESOLVE_NODE = \"ER_COULD_NOT_RESOLVE_NODE\";\n  public static final String ER_STARTPARSE_WHILE_PARSING = \"ER_STARTPARSE_WHILE_PARSING\";\n  public static final String ER_STARTPARSE_NEEDS_SAXPARSER = \"ER_STARTPARSE_NEEDS_SAXPARSER\";\n  public static final String ER_COULD_NOT_INIT_PARSER = \"ER_COULD_NOT_INIT_PARSER\";\n  public static final String ER_EXCEPTION_CREATING_POOL = \"ER_EXCEPTION_CREATING_POOL\";\n  public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = \"ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE\";\n  public static final String ER_SCHEME_REQUIRED = \"ER_SCHEME_REQUIRED\";\n  public static final String ER_NO_SCHEME_IN_URI = \"ER_NO_SCHEME_IN_URI\";\n  public static final String ER_NO_SCHEME_INURI = \"ER_NO_SCHEME_INURI\";\n  public static final String ER_PATH_INVALID_CHAR = \"ER_PATH_INVALID_CHAR\";\n  public static final String ER_SCHEME_FROM_NULL_STRING = \"ER_SCHEME_FROM_NULL_STRING\";\n  public static final String ER_SCHEME_NOT_CONFORMANT = \"ER_SCHEME_NOT_CONFORMANT\";\n  public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = \"ER_HOST_ADDRESS_NOT_WELLFORMED\";\n  public static final String ER_PORT_WHEN_HOST_NULL = \"ER_PORT_WHEN_HOST_NULL\";\n  public static final String ER_INVALID_PORT = \"ER_INVALID_PORT\";\n  public static final String ER_FRAG_FOR_GENERIC_URI =\"ER_FRAG_FOR_GENERIC_URI\";\n  public static final String ER_FRAG_WHEN_PATH_NULL = \"ER_FRAG_WHEN_PATH_NULL\";\n  public static final String ER_FRAG_INVALID_CHAR = \"ER_FRAG_INVALID_CHAR\";\n  public static final String ER_PARSER_IN_USE = \"ER_PARSER_IN_USE\";\n  public static final String ER_CANNOT_CHANGE_WHILE_PARSING = \"ER_CANNOT_CHANGE_WHILE_PARSING\";\n  public static final String ER_SELF_CAUSATION_NOT_PERMITTED = \"ER_SELF_CAUSATION_NOT_PERMITTED\";\n  public static final String ER_NO_USERINFO_IF_NO_HOST = \"ER_NO_USERINFO_IF_NO_HOST\";\n  public static final String ER_NO_PORT_IF_NO_HOST = \"ER_NO_PORT_IF_NO_HOST\";\n  public static final String ER_NO_QUERY_STRING_IN_PATH = \"ER_NO_QUERY_STRING_IN_PATH\";\n  public static final String ER_NO_FRAGMENT_STRING_IN_PATH = \"ER_NO_FRAGMENT_STRING_IN_PATH\";\n  public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = \"ER_CANNOT_INIT_URI_EMPTY_PARMS\";\n  public static final String ER_METHOD_NOT_SUPPORTED =\"ER_METHOD_NOT_SUPPORTED\";\n  public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = \"ER_INCRSAXSRCFILTER_NOT_RESTARTABLE\";\n  public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = \"ER_XMLRDR_NOT_BEFORE_STARTPARSE\";\n  public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = \"ER_AXIS_TRAVERSER_NOT_SUPPORTED\";\n  public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = \"ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER\";\n  public static final String ER_SYSTEMID_UNKNOWN = \"ER_SYSTEMID_UNKNOWN\";\n  public static final String ER_LOCATION_UNKNOWN = \"ER_LOCATION_UNKNOWN\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = \"ER_CREATEDOCUMENT_NOT_SUPPORTED\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT\";\n  public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = \"ER_CANT_OUTPUT_TEXT_BEFORE_DOC\";\n  public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = \"ER_CANT_HAVE_MORE_THAN_ONE_ROOT\";\n  public static final String ER_ARG_LOCALNAME_NULL = \"ER_ARG_LOCALNAME_NULL\";\n  public static final String ER_ARG_LOCALNAME_INVALID = \"ER_ARG_LOCALNAME_INVALID\";\n  public static final String ER_ARG_PREFIX_INVALID = \"ER_ARG_PREFIX_INVALID\";\n\n  public static final String ER_RESOURCE_COULD_NOT_FIND = \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD = \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_INVALID_UTF16_SURROGATE = \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_NAMESPACE_PREFIX = \"ER_NAMESPACE_PREFIX\";\n  public static final String ER_STRAY_ATTRIBUTE = \"ER_STRAY_ATTIRBUTE\";\n  public static final String ER_STRAY_NAMESPACE = \"ER_STRAY_NAMESPACE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE = \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = \"ER_COULD_NOT_LOAD_METHOD_PROPERTY\";\n  public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = \"ER_SERIALIZER_NOT_CONTENTHANDLER\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = \"ER_ILLEGAL_ATTRIBUTE_POSITION\";\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /**\n   * Get the lookup table for error messages\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return new Object[][] {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"Aquesta funci\\u00f3 no t\\u00e9 suport. \"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"No es pot sobreescriure una causa \"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"No s'ha trobat cap implementaci\\u00f3 per defecte \"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"En l''actualitat ChunkedIntArray({0}) no t\\u00e9 suport \"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"El despla\\u00e7ament \\u00e9s m\\u00e9s gran que la ranura \"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"Coroutine no est\\u00e0 disponible, id={0} \"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager ha rebut una petici\\u00f3 co_exit() \"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"S'ha produ\\u00eft un error a co_joinCoroutineSet() \"},\n\n    { ER_COROUTINE_PARAM,\n      \"Error de par\\u00e0metre coroutine ({0}) \"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\nUNEXPECTED: doTerminate de l''analitzador respon {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"L'an\\u00e0lisi no es pot cridar mentre s'est\\u00e0 duent a terme \"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Error: l''iterador de tipus de l''eix {0} no s''ha implementat \"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Error: l''iterador de l''eix {0} no s''ha implementat \"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"El clonatge de l'iterador no t\\u00e9 suport \"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"Tipus de commutaci\\u00f3 de l''eix desconeguda: {0} \"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"La commutaci\\u00f3 de l''eix no t\\u00e9 suport: {0} \"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"No hi ha m\\u00e9s ID de DTM disponibles \"},\n\n    { ER_NOT_SUPPORTED,\n      \"No t\\u00e9 suport: {0} \"},\n\n    { ER_NODE_NON_NULL,\n      \"El node no ha de ser nul per a getDTMHandleFromNode \"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"No s'ha pogut resoldre el node en un manejador \"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"startParse no es pot cridar mentre s'est\\u00e0 duent a terme l'an\\u00e0lisi \"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse necessita un SAXParser que no sigui nul \"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"No s'ha pogut inicialitzar l'analitzador amb \"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"S'ha produ\\u00eft una excepci\\u00f3 en crear una nova inst\\u00e0ncia de l'agrupaci\\u00f3 \"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"La via d'acc\\u00e9s cont\\u00e9 una seq\\u00fc\\u00e8ncia d'escapament no v\\u00e0lida \"},\n\n    { ER_SCHEME_REQUIRED,\n       \"Es necessita l'esquema \"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"No s''ha trobat cap esquema a l''URI: {0} \"},\n\n    { ER_NO_SCHEME_INURI,\n       \"No s'ha trobat cap esquema a l'URI \"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"La via d'acc\\u00e9s cont\\u00e9 un car\\u00e0cter no v\\u00e0lid {0} \"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"No es pot establir un esquema des d'una cadena nul\\u00b7la \"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"L'esquema no t\\u00e9 conformitat. \"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"El sistema principal no t\\u00e9 una adre\\u00e7a ben formada \"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"El port no es pot establir quan el sistema principal \\u00e9s nul \"},\n\n    { ER_INVALID_PORT,\n       \"N\\u00famero de port no v\\u00e0lid \"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"El fragment nom\\u00e9s es pot establir per a un URI gen\\u00e8ric \"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"El fragment no es pot establir si la via d'acc\\u00e9s \\u00e9s nul\\u00b7la \"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"El fragment cont\\u00e9 un car\\u00e0cter no v\\u00e0lid \"},\n\n    { ER_PARSER_IN_USE,\n      \"L'analitzador ja s'est\\u00e0 utilitzant \"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"No es pot modificar {0} {1} mentre es du a terme l''an\\u00e0lisi \"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"La causalitat pr\\u00f2pia no est\\u00e0 permesa. \"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"No es pot especificar informaci\\u00f3 de l'usuari si no s'especifica el sistema principal \"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"No es pot especificar el port si no s'especifica el sistema principal \"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"No es pot especificar una cadena de consulta en la via d'acc\\u00e9s i la cadena de consulta \"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"No es pot especificar un fragment tant en la via d'acc\\u00e9s com en el fragment \"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"No es pot inicialitzar l'URI amb par\\u00e0metres buits \"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"Aquest m\\u00e8tode encara no t\\u00e9 suport \"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"Ara mateix no es pot reiniciar IncrementalSAXSource_Filter \"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"XMLReader no es pot produir abans de la petici\\u00f3 d'startParse \"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"La commutaci\\u00f3 de l''eix no t\\u00e9 suport: {0} \"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"S''ha creat ListingErrorHandler amb PrintWriter nul \"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"ID del sistema (SystemId) desconegut \"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"Ubicaci\\u00f3 de l'error desconeguda\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"El prefix s''ha de resoldre en un espai de noms: {0} \"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"createDocument() no t\\u00e9 suport a XPathContext \"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"El subordinat de l'atribut no t\\u00e9 un document de propietari. \"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"El subordinat de l'atribut no t\\u00e9 un element de document de propietari. \"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"Av\\u00eds: no es pot produir text abans de l'element de document. Es passa per alt. \"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"No hi pot haver m\\u00e9s d'una arrel en un DOM. \"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"L'argument 'localName' \\u00e9s nul. \"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"El nom local de QNAME ha de ser un NCName v\\u00e0lid. \"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"El prefix de QNAME ha de ser un NCName v\\u00e0lid. \"},\n\n    { \"BAD_CODE\", \"El par\\u00e0metre de createMessage estava fora dels l\\u00edmits. \"},\n    { \"FORMAT_FAILED\", \"S'ha generat una excepci\\u00f3 durant la crida messageFormat. \"},\n    { \"line\", \"L\\u00ednia n\\u00fam. \"},\n    { \"column\",\"Columna n\\u00fam. \"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"La classe de serialitzador ''{0}'' no implementa org.xml.sax.ContentHandler.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"No s''ha trobat el recurs [ {0} ].\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"El recurs [ {0} ] no s''ha pogut carregar: {1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"Grand\\u00e0ria del buffer <=0 \" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"S''ha detectat un suplent UTF-16 no v\\u00e0lid: {0} ? \" },\n\n    {ER_OIERROR,\n      \"Error d'E/S \" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"No es pot afegir l''atribut {0} despr\\u00e9s dels nodes subordinats o abans que es produeixi un element. Es passar\\u00e0 per alt l''atribut. \"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"L''espai de noms del prefix ''{0}'' no s''ha declarat.\" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"L''atribut ''{0}'' es troba fora de l''element.\" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"La declaraci\\u00f3 d''espai de noms ''{0}''=''{1}'' es troba fora de l''element.\" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"No s''ha pogut carregar ''{0}'' (comproveu la CLASSPATH); ara s''estan fent servir els valors per defecte.\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"No s''ha pogut carregar el fitxer de propietats ''{0}'' del m\\u00e8tode de sortida ''{1}'' (comproveu la CLASSPATH)\" }\n\n\n  };\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"ca\", \"ES\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return new Object[][] {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"Aquesta funci\\u00f3 no t\\u00e9 suport. \"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"No es pot sobreescriure una causa \"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"No s'ha trobat cap implementaci\\u00f3 per defecte \"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"En l''actualitat ChunkedIntArray({0}) no t\\u00e9 suport \"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"El despla\\u00e7ament \\u00e9s m\\u00e9s gran que la ranura \"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"Coroutine no est\\u00e0 disponible, id={0} \"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager ha rebut una petici\\u00f3 co_exit() \"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"S'ha produ\\u00eft un error a co_joinCoroutineSet() \"},\n\n    { ER_COROUTINE_PARAM,\n      \"Error de par\\u00e0metre coroutine ({0}) \"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\nUNEXPECTED: doTerminate de l''analitzador respon {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"L'an\\u00e0lisi no es pot cridar mentre s'est\\u00e0 duent a terme \"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Error: l''iterador de tipus de l''eix {0} no s''ha implementat \"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Error: l''iterador de l''eix {0} no s''ha implementat \"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"El clonatge de l'iterador no t\\u00e9 suport \"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"Tipus de commutaci\\u00f3 de l''eix desconeguda: {0} \"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"La commutaci\\u00f3 de l''eix no t\\u00e9 suport: {0} \"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"No hi ha m\\u00e9s ID de DTM disponibles \"},\n\n    { ER_NOT_SUPPORTED,\n      \"No t\\u00e9 suport: {0} \"},\n\n    { ER_NODE_NON_NULL,\n      \"El node no ha de ser nul per a getDTMHandleFromNode \"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"No s'ha pogut resoldre el node en un manejador \"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"startParse no es pot cridar mentre s'est\\u00e0 duent a terme l'an\\u00e0lisi \"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse necessita un SAXParser que no sigui nul \"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"No s'ha pogut inicialitzar l'analitzador amb \"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"S'ha produ\\u00eft una excepci\\u00f3 en crear una nova inst\\u00e0ncia de l'agrupaci\\u00f3 \"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"La via d'acc\\u00e9s cont\\u00e9 una seq\\u00fc\\u00e8ncia d'escapament no v\\u00e0lida \"},\n\n    { ER_SCHEME_REQUIRED,\n       \"Es necessita l'esquema \"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"No s''ha trobat cap esquema a l''URI: {0} \"},\n\n    { ER_NO_SCHEME_INURI,\n       \"No s'ha trobat cap esquema a l'URI \"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"La via d'acc\\u00e9s cont\\u00e9 un car\\u00e0cter no v\\u00e0lid {0} \"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"No es pot establir un esquema des d'una cadena nul\\u00b7la \"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"L'esquema no t\\u00e9 conformitat. \"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"El sistema principal no t\\u00e9 una adre\\u00e7a ben formada \"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"El port no es pot establir quan el sistema principal \\u00e9s nul \"},\n\n    { ER_INVALID_PORT,\n       \"N\\u00famero de port no v\\u00e0lid \"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"El fragment nom\\u00e9s es pot establir per a un URI gen\\u00e8ric \"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"El fragment no es pot establir si la via d'acc\\u00e9s \\u00e9s nul\\u00b7la \"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"El fragment cont\\u00e9 un car\\u00e0cter no v\\u00e0lid \"},\n\n    { ER_PARSER_IN_USE,\n      \"L'analitzador ja s'est\\u00e0 utilitzant \"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"No es pot modificar {0} {1} mentre es du a terme l''an\\u00e0lisi \"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"La causalitat pr\\u00f2pia no est\\u00e0 permesa. \"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"No es pot especificar informaci\\u00f3 de l'usuari si no s'especifica el sistema principal \"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"No es pot especificar el port si no s'especifica el sistema principal \"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"No es pot especificar una cadena de consulta en la via d'acc\\u00e9s i la cadena de consulta \"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"No es pot especificar un fragment tant en la via d'acc\\u00e9s com en el fragment \"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"No es pot inicialitzar l'URI amb par\\u00e0metres buits \"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"Aquest m\\u00e8tode encara no t\\u00e9 suport \"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"Ara mateix no es pot reiniciar IncrementalSAXSource_Filter \"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"XMLReader no es pot produir abans de la petici\\u00f3 d'startParse \"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"La commutaci\\u00f3 de l''eix no t\\u00e9 suport: {0} \"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"S''ha creat ListingErrorHandler amb PrintWriter nul \"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"ID del sistema (SystemId) desconegut \"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"Ubicaci\\u00f3 de l'error desconeguda\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"El prefix s''ha de resoldre en un espai de noms: {0} \"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"createDocument() no t\\u00e9 suport a XPathContext \"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"El subordinat de l'atribut no t\\u00e9 un document de propietari. \"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"El subordinat de l'atribut no t\\u00e9 un element de document de propietari. \"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"Av\\u00eds: no es pot produir text abans de l'element de document. Es passa per alt. \"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"No hi pot haver m\\u00e9s d'una arrel en un DOM. \"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"L'argument 'localName' \\u00e9s nul. \"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"El nom local de QNAME ha de ser un NCName v\\u00e0lid. \"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"El prefix de QNAME ha de ser un NCName v\\u00e0lid. \"},\n\n    { \"BAD_CODE\", \"El par\\u00e0metre de createMessage estava fora dels l\\u00edmits. \"},\n    { \"FORMAT_FAILED\", \"S'ha generat una excepci\\u00f3 durant la crida messageFormat. \"},\n    { \"line\", \"L\\u00ednia n\\u00fam. \"},\n    { \"column\",\"Columna n\\u00fam. \"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"La classe de serialitzador ''{0}'' no implementa org.xml.sax.ContentHandler.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"No s''ha trobat el recurs [ {0} ].\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"El recurs [ {0} ] no s''ha pogut carregar: {1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"Grand\\u00e0ria del buffer <=0 \" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"S''ha detectat un suplent UTF-16 no v\\u00e0lid: {0} ? \" },\n\n    {ER_OIERROR,\n      \"Error d'E/S \" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"No es pot afegir l''atribut {0} despr\\u00e9s dels nodes subordinats o abans que es produeixi un element. Es passar\\u00e0 per alt l''atribut. \"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"L''espai de noms del prefix ''{0}'' no s''ha declarat.\" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"L''atribut ''{0}'' es troba fora de l''element.\" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"La declaraci\\u00f3 d''espai de noms ''{0}''=''{1}'' es troba fora de l''element.\" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"No s''ha pogut carregar ''{0}'' (comproveu la CLASSPATH); ara s''estan fent servir els valors per defecte.\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"No s''ha pogut carregar el fitxer de propietats ''{0}'' del m\\u00e8tode de sortida ''{1}'' (comproveu la CLASSPATH)\" }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81], [1, 82], [1, 83], [1, 84], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [72, 1], [73, 1], [74, 1], [75, 1], [76, 1], [77, 1], [78, 1], [79, 1], [80, 1], [81, 1], [82, 1], [83, 1], [84, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "loadResourceBundle", "code": "  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"ca\", \"ES\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "poi-2.5-5742", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/model/SimpleFilledShape.java", "language": "java", "name": "org.apache.poi.hssf.model.SimpleFilledShape", "code": "public class SimpleFilledShape\n        extends AbstractShape\n{\n    private EscherContainerRecord spContainer;\n    private ObjRecord objRecord;\n\n    /**\n     * Creates the low evel records for an oval.\n     *\n     * @param hssfShape  The highlevel shape.\n     * @param shapeId    The shape id to use for this shape.\n     */\n    SimpleFilledShape( HSSFSimpleShape hssfShape, int shapeId )\n    {\n        spContainer = createSpContainer( hssfShape, shapeId );\n        objRecord = createObjRecord( hssfShape, shapeId );\n    }\n\n    /**\n     * Generates the shape records for this shape.\n     *\n     * @param hssfShape\n     * @param shapeId\n     * @return\n     */\n    private EscherContainerRecord createSpContainer( HSSFSimpleShape hssfShape, int shapeId )\n    {\n        HSSFShape shape = hssfShape;\n\n        EscherContainerRecord spContainer = new EscherContainerRecord();\n        EscherSpRecord sp = new EscherSpRecord();\n        EscherOptRecord opt = new EscherOptRecord();\n        EscherClientDataRecord clientData = new EscherClientDataRecord();\n\n        spContainer.setRecordId( EscherContainerRecord.SP_CONTAINER );\n        spContainer.setOptions( (short) 0x000F );\n        sp.setRecordId( EscherSpRecord.RECORD_ID );\n        short shapeType = objTypeToShapeType( hssfShape.getShapeType() );\n        sp.setOptions( (short) ( ( shapeType << 4 ) | 0x2 ) );\n        sp.setShapeId( shapeId );\n        sp.setFlags( EscherSpRecord.FLAG_HAVEANCHOR | EscherSpRecord.FLAG_HASSHAPETYPE );\n        opt.setRecordId( EscherOptRecord.RECORD_ID );\n        addStandardOptions(shape, opt);\n        EscherRecord anchor = createAnchor( shape.getAnchor() );\n        clientData.setRecordId( EscherClientDataRecord.RECORD_ID );\n        clientData.setOptions( (short) 0x0000 );\n\n        spContainer.addChildRecord( sp );\n        spContainer.addChildRecord( opt );\n        spContainer.addChildRecord( anchor );\n        spContainer.addChildRecord( clientData );\n\n        return spContainer;\n    }\n\n    private short objTypeToShapeType( int objType )\n    {\n        short shapeType;\n        if (objType == HSSFSimpleShape.OBJECT_TYPE_OVAL)\n            shapeType = EscherAggregate.ST_ELLIPSE;\n        else if (objType == HSSFSimpleShape.OBJECT_TYPE_RECTANGLE)\n            shapeType = EscherAggregate.ST_RECTANGLE;\n        else\n            throw new IllegalArgumentException(\"Unable to handle an object of this type\");\n        return shapeType;\n    }\n\n    /**\n     * Creates the low level OBJ record for this shape.\n     */\n    private ObjRecord createObjRecord( HSSFShape hssfShape, int shapeId )\n    {\n        HSSFShape shape = hssfShape;\n\n        ObjRecord obj = new ObjRecord();\n        CommonObjectDataSubRecord c = new CommonObjectDataSubRecord();\n        c.setObjectType( (short) ( (HSSFSimpleShape) shape ).getShapeType() );\n        c.setObjectId( (short) ( shapeId ) );\n        c.setLocked( true );\n        c.setPrintable( true );\n        c.setAutofill( true );\n        c.setAutoline( true );\n        EndSubRecord e = new EndSubRecord();\n\n        obj.addSubRecord( c );\n        obj.addSubRecord( e );\n\n        return obj;\n    }\n\n    public EscherContainerRecord getSpContainer()\n    {\n        return spContainer;\n    }\n\n    public ObjRecord getObjRecord()\n    {\n        return objRecord;", "functions": [{"function_name": "createSpContainer", "code": "    private EscherContainerRecord createSpContainer( HSSFSimpleShape hssfShape, int shapeId )\n    {\n        HSSFShape shape = hssfShape;\n\n        EscherContainerRecord spContainer = new EscherContainerRecord();\n        EscherSpRecord sp = new EscherSpRecord();\n        EscherOptRecord opt = new EscherOptRecord();\n        EscherClientDataRecord clientData = new EscherClientDataRecord();\n\n        spContainer.setRecordId( EscherContainerRecord.SP_CONTAINER );\n        spContainer.setOptions( (short) 0x000F );\n        sp.setRecordId( EscherSpRecord.RECORD_ID );\n        short shapeType = objTypeToShapeType( hssfShape.getShapeType() );\n        sp.setOptions( (short) ( ( shapeType << 4 ) | 0x2 ) );\n        sp.setShapeId( shapeId );\n        sp.setFlags( EscherSpRecord.FLAG_HAVEANCHOR | EscherSpRecord.FLAG_HASSHAPETYPE );\n        opt.setRecordId( EscherOptRecord.RECORD_ID );\n        addStandardOptions(shape, opt);\n        EscherRecord anchor = createAnchor( shape.getAnchor() );\n        clientData.setRecordId( EscherClientDataRecord.RECORD_ID );\n        clientData.setOptions( (short) 0x0000 );\n\n        spContainer.addChildRecord( sp );\n        spContainer.addChildRecord( opt );\n        spContainer.addChildRecord( anchor );\n        spContainer.addChildRecord( clientData );\n\n        return spContainer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [2, 25], [19, 26], [3, 27], [4, 28], [5, 29], [6, 30], [7, 31], [15, 32], [25, 33], [21, 34], [27, 35], [23, 36], [34, 37], [34, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 2], [26, 19], [27, 3], [28, 4], [29, 5], [30, 6], [31, 7], [32, 15], [33, 25], [34, 21], [35, 27], [36, 23], [37, 34], [38, 34], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "objTypeToShapeType", "code": "    private short objTypeToShapeType( int objType )\n    {\n        short shapeType;\n        if (objType == HSSFSimpleShape.OBJECT_TYPE_OVAL)\n            shapeType = EscherAggregate.ST_ELLIPSE;\n        else if (objType == HSSFSimpleShape.OBJECT_TYPE_RECTANGLE)\n            shapeType = EscherAggregate.ST_RECTANGLE;\n        else\n            throw new IllegalArgumentException(\"Unable to handle an object of this type\");\n        return shapeType;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [2, 9], [7, 10], [5, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 2], [10, 7], [11, 5], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createObjRecord", "code": "    private ObjRecord createObjRecord( HSSFShape hssfShape, int shapeId )\n    {\n        HSSFShape shape = hssfShape;\n\n        ObjRecord obj = new ObjRecord();\n        CommonObjectDataSubRecord c = new CommonObjectDataSubRecord();\n        c.setObjectType( (short) ( (HSSFSimpleShape) shape ).getShapeType() );\n        c.setObjectId( (short) ( shapeId ) );\n        c.setLocked( true );\n        c.setPrintable( true );\n        c.setAutofill( true );\n        c.setAutoline( true );\n        EndSubRecord e = new EndSubRecord();\n\n        obj.addSubRecord( c );\n        obj.addSubRecord( e );\n\n        return obj;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [10, 17], [11, 18], [12, 19], [13, 20], [3, 21], [4, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 10], [18, 11], [19, 12], [20, 13], [21, 3], [22, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getSpContainer", "code": "    public EscherContainerRecord getSpContainer()\n    {\n        return spContainer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getObjRecord", "code": "    public ObjRecord getObjRecord()\n    {\n        return objRecord;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SimpleFilledShape", "code": "    SimpleFilledShape( HSSFSimpleShape hssfShape, int shapeId )\n    {\n        spContainer = createSpContainer( hssfShape, shapeId );\n        objRecord = createObjRecord( hssfShape, shapeId );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.7-8609", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/templates/ElemUnknown.java", "language": "java", "name": "org.apache.xalan.templates.ElemUnknown", "code": "public class ElemUnknown extends ElemLiteralResult\n{\n    static final long serialVersionUID = -4573981712648730168L;\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   *@return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_UNDEFINED;\n  }\n  \n  /**\n   * Execute the fallbacks when an extension is not available.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  private void executeFallbacks(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n    for (ElemTemplateElement child = m_firstChild; child != null;\n             child = child.m_nextSibling)\n    {\n      if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK)\n      {\n        try\n        {\n          transformer.pushElemTemplateElement(child);\n          ((ElemFallback) child).executeFallback(transformer);\n        }\n        finally\n        {\n          transformer.popElemTemplateElement();\n        }\n      }\n    }\n\n  }\n  \n  /**\n   * Return true if this extension element has a <xsl:fallback> child element.\n   *\n   * @return true if this extension element has a <xsl:fallback> child element.\n   */\n  private boolean hasFallbackChildren()\n  {\n    for (ElemTemplateElement child = m_firstChild; child != null;\n             child = child.m_nextSibling)\n    {\n      if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK)\n        return true;\n    }\n    \n    return false;\n  }\n\n\n  /**\n   * Execute an unknown element.\n   * Execute fallback if fallback child exists or do nothing\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(TransformerImpl transformer)\n            throws TransformerException\n  {\n\n\n    if (transformer.getDebug())\n\t\ttransformer.getTraceManager().fireTraceEvent(this);\n\n\ttry {\n\n\t\tif (hasFallbackChildren()) {\n\t\t\texecuteFallbacks(transformer);\n\t\t} else {\n\t\t}\n\t\t\n\t} catch (TransformerException e) {\n\t\ttransformer.getErrorListener().fatalError(e);\n\t}\n    if (transformer.getDebug())\n\t\ttransformer.getTraceManager().fireTraceEndEvent(this);", "functions": [{"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_UNDEFINED;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "executeFallbacks", "code": "  private void executeFallbacks(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n    for (ElemTemplateElement child = m_firstChild; child != null;\n             child = child.m_nextSibling)\n    {\n      if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK)\n      {\n        try\n        {\n          transformer.pushElemTemplateElement(child);\n          ((ElemFallback) child).executeFallback(transformer);\n        }\n        finally\n        {\n          transformer.popElemTemplateElement();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [7, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 7], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "hasFallbackChildren", "code": "  private boolean hasFallbackChildren()\n  {\n    for (ElemTemplateElement child = m_firstChild; child != null;\n             child = child.m_nextSibling)\n    {\n      if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK)\n        return true;\n    }\n    \n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "execute", "code": "  public void execute(TransformerImpl transformer)\n            throws TransformerException\n  {\n\n\n    if (transformer.getDebug())\n\t\ttransformer.getTraceManager().fireTraceEvent(this);\n\n\ttry {\n\n\t\tif (hasFallbackChildren()) {\n\t\t\texecuteFallbacks(transformer);\n\t\t} else {\n\t\t}\n\t\t\n\t} catch (TransformerException e) {\n\t\ttransformer.getErrorListener().fatalError(e);\n\t}\n    if (transformer.getDebug())\n\t\ttransformer.getTraceManager().fireTraceEndEvent(this);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "IF", "PARAM", "CALL", "CATCH", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [1, 9], [7, 10], [3, 11], [9, 12], [6, 13], [11, 14], [13, 15], [7, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 1], [10, 7], [11, 3], [12, 9], [13, 6], [14, 11], [15, 13], [16, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 1}
{"sample_id": "jedit-4.3-4769", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/menu/ReloadWithEncodingProvider.java", "language": "java", "name": "org.gjt.sp.jedit.menu.ReloadWithEncodingProvider", "code": "public class ReloadWithEncodingProvider implements ActionListener, DynamicMenuProvider\n{\t\n\tprivate View view;\n\n\t//{{{ updateEveryTime() method\n\tpublic boolean updateEveryTime()\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ update() method\n\tpublic void update(JMenu menu)\n\t{\n\t\tview = GUIUtilities.getView(menu);\n\n\t\t// auto detect\n\t\tJMenuItem auto = new JMenuItem(\n\t\t\tjEdit.getProperty(\"vfs.browser.commands.encoding.auto-detect\"));\n\t\tauto.setActionCommand(\"auto-detect\");\n\t\tauto.addActionListener(this);\n\t\tmenu.add(auto);\n\t\tmenu.addSeparator();\n\t\t// all the enabled encodings + the system encoding\n\t\tString[] encodings = MiscUtilities.getEncodings(true);\n\t\tString systemEncoding = System.getProperty(\"file.encoding\");\n\n\t\tif (Arrays.binarySearch(encodings, systemEncoding) < 0)\n\t\t{\n\t\t\tString[] tmp_a = new String[encodings.length + 1];\n\t\t\tSystem.arraycopy(encodings, 0, tmp_a, 0, encodings.length);\n\t\t\ttmp_a[encodings.length] = systemEncoding;\n\t\t\tencodings = tmp_a;\n\t\t}\n\n\t\tArrays.sort(encodings);\n\n\t\tint maxItems = jEdit.getIntegerProperty(\"menu.spillover\",20);\n\t\tfor (int i = 0; i < encodings.length; i++)\n\t\t{\n\t\t\tJMenuItem mi = new JMenuItem(encodings[i]);\n\t\t\tmi.setActionCommand(\"encoding@\" + encodings[i]);\n\t\t\tmi.addActionListener(this);\n\t\t\tif ((menu.getMenuComponentCount() >= maxItems) && (i < encodings.length))\n\t\t\t{\n\t\t\t\tJMenu newMenu = new JMenu(jEdit.getProperty(\"common.more\"));\n\t\t\t\tmenu.add(newMenu);\n\t\t\t\tmenu = newMenu;\n\t\t\t}\n\t\t\tmenu.add(mi);\n\t\t}\n\n\t\tmenu.addSeparator();\n\n\t\t// option to prompt for the encoding\n\t\tJMenuItem other = new JMenuItem(\n\t\t\tjEdit.getProperty(\"vfs.browser.other-encoding.label\"));\n\t\tother.setActionCommand(\"other-encoding\");\n\t\tother.addActionListener(this);\n\t\tmenu.add(other);\n\t} //}}}\n\n\t//{{{ actionPerformed() method\n\tpublic void actionPerformed(ActionEvent ae)\n\t{\n\t\tJMenuItem mi = (JMenuItem) ae.getSource();\n\t\tString action = mi.getActionCommand();\n\t\tString encoding = null;\n\t\tHashtable props = null;\n\n\t\tif (action.startsWith(\"encoding@\"))\n\t\t{\n\t\t\tencoding = action.substring(9);\n\t\t}\n\t\telse if (action.equals(\"other-encoding\"))\n\t\t{\n\t\t\tencoding = JOptionPane.showInputDialog(view,\n\t\t\t\tjEdit.getProperty(\"encoding-prompt.message\"),\n\t\t\t\tjEdit.getProperty(\"encoding-prompt.title\"),\n\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif (encoding == null)\n\t\t\t\treturn;\n\n\t\t\tif (!EncodingServer.hasEncoding(encoding))\n\t\t\t{\n\t\t\t\tString msg = jEdit.getProperty(\"reload-encoding.error\",\n\t\t\t\t\t\tnew Object[] { encoding });\n\t\t\t\tJOptionPane.showMessageDialog(view,\n\t\t\t\t\tmsg,\n\t\t\t\t\tjEdit.getProperty(\"common.error\"),\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (encoding != null)\n\t\t{\n\t\t\tprops = new Hashtable();\n\t\t\tprops.put(Buffer.ENCODING, encoding);\n\t\t\t// Disable auto-detect because user explicitly\n\t\t\t// specify an encoding.\n\t\t\tprops.put(Buffer.ENCODING_AUTODETECT, false);\n\t\t}\n\n\t\tString path = view.getBuffer().getPath();\n\t\tjEdit.closeBuffer(view, view.getBuffer());\n\t\tjEdit.openFile(view,null,path,false,props);", "functions": [{"function_name": "updateEveryTime", "code": "\tpublic boolean updateEveryTime()\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "update", "code": "\tpublic void update(JMenu menu)\n\t{\n\t\tview = GUIUtilities.getView(menu);\n\n\t\t// auto detect\n\t\tJMenuItem auto = new JMenuItem(\n\t\t\tjEdit.getProperty(\"vfs.browser.commands.encoding.auto-detect\"));\n\t\tauto.setActionCommand(\"auto-detect\");\n\t\tauto.addActionListener(this);\n\t\tmenu.add(auto);\n\t\tmenu.addSeparator();\n\t\t// all the enabled encodings + the system encoding\n\t\tString[] encodings = MiscUtilities.getEncodings(true);\n\t\tString systemEncoding = System.getProperty(\"file.encoding\");\n\n\t\tif (Arrays.binarySearch(encodings, systemEncoding) < 0)\n\t\t{\n\t\t\tString[] tmp_a = new String[encodings.length + 1];\n\t\t\tSystem.arraycopy(encodings, 0, tmp_a, 0, encodings.length);\n\t\t\ttmp_a[encodings.length] = systemEncoding;\n\t\t\tencodings = tmp_a;\n\t\t}\n\n\t\tArrays.sort(encodings);\n\n\t\tint maxItems = jEdit.getIntegerProperty(\"menu.spillover\",20);\n\t\tfor (int i = 0; i < encodings.length; i++)\n\t\t{\n\t\t\tJMenuItem mi = new JMenuItem(encodings[i]);\n\t\t\tmi.setActionCommand(\"encoding@\" + encodings[i]);\n\t\t\tmi.addActionListener(this);\n\t\t\tif ((menu.getMenuComponentCount() >= maxItems) && (i < encodings.length))\n\t\t\t{\n\t\t\t\tJMenu newMenu = new JMenu(jEdit.getProperty(\"common.more\"));\n\t\t\t\tmenu.add(newMenu);\n\t\t\t\tmenu = newMenu;\n\t\t\t}\n\t\t\tmenu.add(mi);\n\t\t}\n\n\t\tmenu.addSeparator();\n\n\t\t// option to prompt for the encoding\n\t\tJMenuItem other = new JMenuItem(\n\t\t\tjEdit.getProperty(\"vfs.browser.other-encoding.label\"));\n\t\tother.setActionCommand(\"other-encoding\");\n\t\tother.addActionListener(this);\n\t\tmenu.add(other);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [0, 14], [4, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [11, 21], [1, 22], [2, 23], [2, 24], [3, 25], [4, 26], [15, 27], [15, 28], [5, 29], [6, 30], [19, 31], [7, 32], [20, 33], [22, 34], [2, 35], [23, 36], [2, 37], [2, 38], [2, 39], [25, 40], [25, 41], [4, 42], [4, 43], [4, 44], [29, 45], [30, 46], [32, 47], [34, 48], [23, 49], [36, 50], [36, 51], [38, 52], [24, 53], [44, 54], [44, 55], [47, 56], [23, 57], [23, 58], [51, 59], [52, 60], [26, 61], [49, 62], [61, 63], [62, 64], [64, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 0], [15, 4], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 11], [22, 1], [23, 2], [24, 2], [25, 3], [26, 4], [27, 15], [28, 15], [29, 5], [30, 6], [31, 19], [32, 7], [33, 20], [34, 22], [35, 2], [36, 23], [37, 2], [38, 2], [39, 2], [40, 25], [41, 25], [42, 4], [43, 4], [44, 4], [45, 29], [46, 30], [47, 32], [48, 34], [49, 23], [50, 36], [51, 36], [52, 38], [53, 24], [54, 44], [55, 44], [56, 47], [57, 23], [58, 23], [59, 51], [60, 52], [61, 26], [62, 49], [63, 61], [64, 62], [65, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "actionPerformed", "code": "\tpublic void actionPerformed(ActionEvent ae)\n\t{\n\t\tJMenuItem mi = (JMenuItem) ae.getSource();\n\t\tString action = mi.getActionCommand();\n\t\tString encoding = null;\n\t\tHashtable props = null;\n\n\t\tif (action.startsWith(\"encoding@\"))\n\t\t{\n\t\t\tencoding = action.substring(9);\n\t\t}\n\t\telse if (action.equals(\"other-encoding\"))\n\t\t{\n\t\t\tencoding = JOptionPane.showInputDialog(view,\n\t\t\t\tjEdit.getProperty(\"encoding-prompt.message\"),\n\t\t\t\tjEdit.getProperty(\"encoding-prompt.title\"),\n\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif (encoding == null)\n\t\t\t\treturn;\n\n\t\t\tif (!EncodingServer.hasEncoding(encoding))\n\t\t\t{\n\t\t\t\tString msg = jEdit.getProperty(\"reload-encoding.error\",\n\t\t\t\t\t\tnew Object[] { encoding });\n\t\t\t\tJOptionPane.showMessageDialog(view,\n\t\t\t\t\tmsg,\n\t\t\t\t\tjEdit.getProperty(\"common.error\"),\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (encoding != null)\n\t\t{\n\t\t\tprops = new Hashtable();\n\t\t\tprops.put(Buffer.ENCODING, encoding);\n\t\t\t// Disable auto-detect because user explicitly\n\t\t\t// specify an encoding.\n\t\t\tprops.put(Buffer.ENCODING_AUTODETECT, false);\n\t\t}\n\n\t\tString path = view.getBuffer().getPath();\n\t\tjEdit.closeBuffer(view, view.getBuffer());\n\t\tjEdit.openFile(view,null,path,false,props);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [3, 13], [9, 14], [9, 15], [10, 16], [1, 17], [11, 18], [12, 19], [13, 20], [4, 21], [5, 22], [6, 23], [17, 24], [2, 25], [2, 26], [2, 27], [12, 28], [12, 29], [19, 30], [3, 31], [7, 32], [25, 33], [27, 34], [28, 35], [29, 36], [29, 37], [12, 38], [31, 39], [28, 40], [28, 41], [37, 42], [38, 43], [39, 44], [28, 45], [43, 46], [43, 47], [45, 48], [41, 49], [46, 50], [47, 51], [48, 52], [49, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 3], [14, 9], [15, 9], [16, 10], [17, 1], [18, 11], [19, 12], [20, 13], [21, 4], [22, 5], [23, 6], [24, 17], [25, 2], [26, 2], [27, 2], [28, 12], [29, 12], [30, 19], [31, 3], [32, 7], [33, 25], [34, 27], [35, 28], [36, 29], [37, 29], [38, 12], [39, 31], [40, 28], [41, 28], [42, 37], [43, 38], [44, 39], [45, 28], [46, 43], [47, 43], [48, 45], [49, 41], [50, 46], [51, 47], [52, 48], [53, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}], "label": 0}
{"sample_id": "camel-1.4-2490", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/impl/DefaultLifecycleStrategy.java", "language": "java", "name": "org.apache.camel.impl.DefaultLifecycleStrategy", "code": "public class DefaultLifecycleStrategy implements LifecycleStrategy {\n\n    public void onContextStart(CamelContext context) {\n    }\n\n    public void onEndpointAdd(Endpoint<? extends Exchange> endpoint) {\n    }\n\n    public void onServiceAdd(CamelContext context, Service service) {\n    }\n\n    public void onRoutesAdd(Collection<Route> routes) {\n    }\n\n    public void onRouteContextCreate(RouteContext routeContext) {", "functions": [{"function_name": "onContextStart", "code": "    public void onContextStart(CamelContext context) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "onEndpointAdd", "code": "    public void onEndpointAdd(Endpoint<? extends Exchange> endpoint) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "onServiceAdd", "code": "    public void onServiceAdd(CamelContext context, Service service) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "onRoutesAdd", "code": "    public void onRoutesAdd(Collection<Route> routes) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "onRouteContextCreate", "code": "    public void onRouteContextCreate(RouteContext routeContext) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-2.5-5834", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/poifs/filesystem/DirectoryEntry.java", "language": "java", "name": "org.apache.poi.poifs.filesystem.DirectoryEntry", "code": "public interface DirectoryEntry\n    extends Entry\n{\n\n    /**\n     * get an iterator of the Entry instances contained directly in\n     * this instance (in other words, children only; no grandchildren\n     * etc.)\n     *\n     * @return iterator; never null, but hasNext() may return false\n     *         immediately (i.e., this DirectoryEntry is empty). All\n     *         objects retrieved by next() are guaranteed to be\n     *         implementations of Entry.\n     */\n\n    public Iterator getEntries();\n\n    /**\n     * is this DirectoryEntry empty?\n     *\n     * @return true if this instance contains no Entry instances\n     */\n\n    public boolean isEmpty();\n\n    /**\n     * find out how many Entry instances are contained directly within\n     * this DirectoryEntry\n     *\n     * @return number of immediately (no grandchildren etc.) contained\n     *         Entry instances\n     */\n\n    public int getEntryCount();\n\n    /**\n     * get a specified Entry by name\n     *\n     * @param name the name of the Entry to obtain.\n     *\n     * @return the specified Entry, if it is directly contained in\n     *         this DirectoryEntry\n     *\n     * @exception FileNotFoundException if no Entry with the specified\n     *            name exists in this DirectoryEntry\n     */\n\n    public Entry getEntry(final String name)\n        throws FileNotFoundException;\n\n    /**\n     * create a new DocumentEntry\n     *\n     * @param name the name of the new DocumentEntry\n     * @param stream the InputStream from which to create the new\n     *               DocumentEntry\n     *\n     * @return the new DocumentEntry\n     *\n     * @exception IOException\n     */\n\n    public DocumentEntry createDocument(final String name,\n                                        final InputStream stream)\n        throws IOException;\n\n    /**\n     * create a new DocumentEntry; the data will be provided later\n     *\n     * @param name the name of the new DocumentEntry\n     * @param size the size of the new DocumentEntry\n     * @param writer the writer of the new DocumentEntry\n     *\n     * @return the new DocumentEntry\n     *\n     * @exception IOException\n     */\n\n    public DocumentEntry createDocument(final String name, final int size,\n                                        final POIFSWriterListener writer)\n        throws IOException;\n\n    /**\n     * create a new DirectoryEntry\n     *\n     * @param name the name of the new DirectoryEntry\n     *\n     * @return the new DirectoryEntry\n     *\n     * @exception IOException\n     */\n\n    public DirectoryEntry createDirectory(final String name)\n        throws IOException;\n\n    /**\n     * Gets the storage clsid of the directory entry\n     *\n     * @return storage Class ID\n     */\n    public ClassID getStorageClsid();\n\n    /**\n     * Sets the storage clsid for the directory entry\n     *\n     * @param clsidStorage storage Class ID\n     */\n    public void setStorageClsid(ClassID clsidStorage);", "functions": [{"function_name": "getEntries", "code": "    public Iterator getEntries();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isEmpty", "code": "    public boolean isEmpty();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getEntryCount", "code": "    public int getEntryCount();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getEntry", "code": "    public Entry getEntry(final String name)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createDocument", "code": "    public DocumentEntry createDocument(final String name,\n                                        final InputStream stream)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createDocument", "code": "    public DocumentEntry createDocument(final String name, final int size,\n                                        final POIFSWriterListener writer)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createDirectory", "code": "    public DirectoryEntry createDirectory(final String name)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStorageClsid", "code": "    public ClassID getStorageClsid();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setStorageClsid", "code": "    public void setStorageClsid(ClassID clsidStorage);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.2-1984", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/RuntimeExchangeException.java", "language": "java", "name": "org.apache.camel.RuntimeExchangeException", "code": "public class RuntimeExchangeException extends RuntimeCamelException {\n    private static final long serialVersionUID = -8721487431101572630L;\n    private final Exchange exchange;\n\n    public RuntimeExchangeException(String message, Exchange exchange) {\n        super(message + \" on the exchange: \" +  exchange);\n        this.exchange = exchange;\n    }\n\n    public RuntimeExchangeException(Exception e, Exchange exchange) {\n        super(e.getMessage(), e);\n        this.exchange = exchange;\n    }\n\n    /**\n     * Returns the exchange which caused the exception\n     *\n     * @return the exchange which caused the exception\n     */\n    public Exchange getExchange() {\n        return exchange;", "functions": [{"function_name": "getExchange", "code": "    public Exchange getExchange() {\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RuntimeExchangeException", "code": "    public RuntimeExchangeException(String message, Exchange exchange) {\n        super(message + \" on the exchange: \" +  exchange);\n        this.exchange = exchange;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "RuntimeExchangeException", "code": "    public RuntimeExchangeException(Exception e, Exchange exchange) {\n        super(e.getMessage(), e);\n        this.exchange = exchange;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.6-664", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/selectors/modifiedselector/DigestAlgorithm.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.modifiedselector.DigestAlgorithm", "code": "public class DigestAlgorithm implements Algorithm {\n\n\n\n\n    /**\n     * MessageDigest algorithm to be used.\n     */\n    private String algorithm = \"MD5\";\n\n    /**\n     * MessageDigest Algorithm provider\n     */\n    private String provider = null;\n\n    /**\n     * Message Digest instance\n     */\n    private MessageDigest messageDigest = null;\n\n    /**\n     * Size of the read buffer to use.\n     */\n    private int readBufferSize = 8 * 1024;\n\n\n\n\n    /**\n     * Specifies the algorithm to be used to compute the checksum.\n     * Defaults to \"MD5\". Other popular algorithms like \"SHA\" may be used as well.\n     * @param algorithm the digest algorithm to use\n     */\n    public void setAlgorithm(String algorithm) {\n        this.algorithm = algorithm;\n    }\n\n\n    /**\n     * Sets the MessageDigest algorithm provider to be used\n     * to calculate the checksum.\n     * @param provider provider to use\n     */\n    public void setProvider(String provider) {\n        this.provider = provider;\n    }\n\n\n    /** Initialize the security message digest. */\n    public void initMessageDigest() {\n        if (messageDigest != null) {\n            return;\n        }\n\n        if ((provider != null) && !\"\".equals(provider) && !\"null\".equals(provider)) {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm, provider);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo);\n            } catch (NoSuchProviderException noprovider) {\n                throw new BuildException(noprovider);\n            }\n        } else {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo);\n            }\n        }\n    }\n\n\n\n\n    /**\n     * This algorithm doesn't need any configuration.\n     * Therefore it's always valid.\n     * @return <i>true</i> if all is ok, otherwise <i>false</i>.\n     */\n    public boolean isValid() {\n        return true;\n    }\n\n\n    /**\n     * Computes a value for a file content with the specified digest algorithm.\n     * @param file    File object for which the value should be evaluated.\n     * @return        The value for that file\n     */\n    public String getValue(File file) {\n        initMessageDigest();\n        String checksum = null;\n        try {\n            if (!file.canRead()) {\n                return null;\n            }\n            FileInputStream fis = null;\n            FileOutputStream fos = null;\n            byte[] buf = new byte[readBufferSize];\n            try {\n                messageDigest.reset();\n                fis = new FileInputStream(file);\n                DigestInputStream dis = new DigestInputStream(fis,\n                                                              messageDigest);\n                while (dis.read(buf, 0, readBufferSize) != -1) {\n                }\n                dis.close();\n                fis.close();\n                fis = null;\n                byte[] fileDigest = messageDigest.digest();\n                StringBuffer checksumSb = new StringBuffer();\n                for (int i = 0; i < fileDigest.length; i++) {\n                    String hexStr = Integer.toHexString(0x00ff & fileDigest[i]);\n                    if (hexStr.length() < 2) {\n                        checksumSb.append(\"0\");\n                    }\n                    checksumSb.append(hexStr);\n                }\n                checksum = checksumSb.toString();\n            } catch (Exception e) {\n                return null;\n            }\n        } catch (Exception e) {\n            return null;\n        }\n        return checksum;\n    }\n\n\n    /**\n     * Override Object.toString().\n     * @return some information about this algorithm.\n     */\n    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        buf.append(\"<DigestAlgorithm:\");\n        buf.append(\"algorithm=\").append(algorithm);\n        buf.append(\";provider=\").append(provider);\n        buf.append(\">\");\n        return buf.toString();", "functions": [{"function_name": "setAlgorithm", "code": "    public void setAlgorithm(String algorithm) {\n        this.algorithm = algorithm;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProvider", "code": "    public void setProvider(String provider) {\n        this.provider = provider;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "initMessageDigest", "code": "    public void initMessageDigest() {\n        if (messageDigest != null) {\n            return;\n        }\n\n        if ((provider != null) && !\"\".equals(provider) && !\"null\".equals(provider)) {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm, provider);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo);\n            } catch (NoSuchProviderException noprovider) {\n                throw new BuildException(noprovider);\n            }\n        } else {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "TRY", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CATCH", "CATCH", "CATCH", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "ASSIGN", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [3, 7], [3, 8], [2, 9], [4, 10], [5, 11], [6, 12], [6, 13], [7, 14], [8, 15], [8, 16], [11, 17], [5, 18], [12, 19], [13, 20], [6, 21], [15, 22], [16, 23], [17, 24], [18, 25], [19, 26], [20, 27], [21, 28], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 3], [8, 3], [9, 2], [10, 4], [11, 5], [12, 6], [13, 6], [14, 7], [15, 8], [16, 8], [17, 11], [18, 5], [19, 12], [20, 13], [21, 6], [22, 15], [23, 16], [24, 17], [25, 18], [26, 19], [27, 20], [28, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "isValid", "code": "    public boolean isValid() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValue", "code": "    public String getValue(File file) {\n        initMessageDigest();\n        String checksum = null;\n        try {\n            if (!file.canRead()) {\n                return null;\n            }\n            FileInputStream fis = null;\n            FileOutputStream fos = null;\n            byte[] buf = new byte[readBufferSize];\n            try {\n                messageDigest.reset();\n                fis = new FileInputStream(file);\n                DigestInputStream dis = new DigestInputStream(fis,\n                                                              messageDigest);\n                while (dis.read(buf, 0, readBufferSize) != -1) {\n                }\n                dis.close();\n                fis.close();\n                fis = null;\n                byte[] fileDigest = messageDigest.digest();\n                StringBuffer checksumSb = new StringBuffer();\n                for (int i = 0; i < fileDigest.length; i++) {\n                    String hexStr = Integer.toHexString(0x00ff & fileDigest[i]);\n                    if (hexStr.length() < 2) {\n                        checksumSb.append(\"0\");\n                    }\n                    checksumSb.append(hexStr);\n                }\n                checksum = checksumSb.toString();\n            } catch (Exception e) {\n                return null;\n            }\n        } catch (Exception e) {\n            return null;\n        }\n        return checksum;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "CATCH", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "RETURN", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [0, 11], [5, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [10, 19], [3, 20], [12, 21], [13, 22], [6, 23], [14, 24], [6, 25], [6, 26], [6, 27], [17, 28], [6, 29], [6, 30], [8, 31], [9, 32], [10, 33], [22, 34], [23, 35], [14, 36], [14, 37], [15, 38], [16, 39], [25, 40], [28, 41], [28, 42], [18, 43], [29, 44], [33, 45], [14, 46], [36, 47], [14, 48], [42, 49], [47, 50], [47, 51], [37, 52], [36, 53], [52, 54], [53, 55], [54, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 0], [12, 5], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 6], [19, 10], [20, 3], [21, 12], [22, 13], [23, 6], [24, 14], [25, 6], [26, 6], [27, 6], [28, 17], [29, 6], [30, 6], [31, 8], [32, 9], [33, 10], [34, 22], [35, 23], [36, 14], [37, 14], [38, 15], [39, 16], [40, 25], [41, 28], [42, 28], [43, 18], [44, 29], [45, 33], [46, 14], [47, 36], [48, 14], [49, 42], [50, 47], [51, 47], [52, 37], [53, 36], [54, 52], [55, 53], [56, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        buf.append(\"<DigestAlgorithm:\");\n        buf.append(\"algorithm=\").append(algorithm);\n        buf.append(\";provider=\").append(provider);\n        buf.append(\">\");\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [5, 10], [6, 11], [6, 12], [7, 13], [2, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 5], [11, 6], [12, 6], [13, 7], [14, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "poi-2.5-5651", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/usermodel/HSSFDateUtil.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFDateUtil", "code": "public class HSSFDateUtil\n{\n    private HSSFDateUtil()\n    {\n    }\n\n    private static final int    BAD_DATE          = 0;\n    private static final long   DAY_MILLISECONDS  = 24 * 60 * 60 * 1000;\n    private static final double CAL_1900_ABSOLUTE =\n        ( double ) absoluteDay(new GregorianCalendar(1900, Calendar\n        .JANUARY, 1)) - 2.0;\n\n    /**\n     * Given a Date, converts it into a double representing its internal Excel representation,\n     *   which is the number of days since 1/1/1900. Fractional days represent hours, minutes, and seconds.\n     *\n     * @return Excel representation of Date (-1 if error - test for error by checking for less than 0.1)\n     * @param  date the Date\n     */\n\n    public static double getExcelDate(Date date)\n    {\n        Calendar calStart = new GregorianCalendar();\n\n        calStart.setTime();\n        if (calStart.get(Calendar.YEAR) < 1900)\n        {\n            return BAD_DATE;\n        }\n        else\n        {\n            double fraction = (((calStart.get(Calendar.HOUR_OF_DAY) * 60\n                                 + calStart.get(Calendar.MINUTE)\n                                ) * 60 + calStart.get(Calendar.SECOND)\n                               ) * 1000 + calStart.get(Calendar.MILLISECOND)\n                              ) / ( double ) DAY_MILLISECONDS;\n            calStart = dayStart(calStart);\n\n            return fraction + ( double ) absoluteDay(calStart)\n                   - CAL_1900_ABSOLUTE;\n        }\n    }\n\n    /**\n     * Given a excel date, converts it into a Date.\n     * Assumes 1900 date windowing.\n     *\n     * @param  date the Excel Date\n     *\n     * @return Java representation of a date (null if error)\n     * @see #getJavaDate(double,boolean)\n     */\n\n    public static Date getJavaDate(double date)\n    {\n        return getJavaDate(date,false);\n    }\n    \n    /**\n     *  Given an Excel date with either 1900 or 1904 date windowing,\n     *  converts it to a java.util.Date.\n     *\n     *  NOTE: If the default <code>TimeZone</code> in Java uses Daylight\n     *  Saving Time then the conversion back to an Excel date may not give\n     *  the same value, that is the comparison\n     *  <CODE>excelDate == getExcelDate(getJavaDate(excelDate,false))</CODE>\n     *  is not always true. For example if default timezone is\n     *  <code>Europe/Copenhagen</code>, on 2004-03-28 the minute after\n     *  01:59 CET is 03:00 CEST, if the excel date represents a time between\n     *  02:00 and 03:00 then it is converted to past 03:00 summer time\n     *\n     *  @param date  The Excel date.\n     *  @param use1904windowing  true if date uses 1904 windowing,\n     *   or false if using 1900 date windowing.\n     *  @return Java representation of the date, or null if date is not a valid Excel date\n     *  @see java.util.TimeZone\n     */\n    public static Date getJavaDate(double date, boolean use1904windowing) {\n        if (isValidExcelDate(date)) {\n            int startYear = 1900;\n            int wholeDays = (int)Math.floor(date);\n            if (use1904windowing) {\n                startYear = 1904;\n            }\n            else if (wholeDays < 61) {\n                dayAdjust = 0;\n            }\n            GregorianCalendar calendar = new GregorianCalendar(startYear,0,\n                                                     wholeDays + dayAdjust);\n            int millisecondsInDay = (int)((date - Math.floor(date)) * \n                                          (double) DAY_MILLISECONDS + 0.5);\n            calendar.set(GregorianCalendar.MILLISECOND, millisecondsInDay);\n            return calendar.getTime();\n        }\n        else {\n            return null;\n        }\n    }\n\n    /**\n     * given a format ID this will check whether the format represents\n     * an internal date format or not. \n     */\n    public static boolean isInternalDateFormat(int format) {\n      boolean retval =false;\n\n            switch(format) {\n                case 0x0e:\n                case 0x0f:\n                case 0x10:\n                case 0x11:\n                case 0x12:\n                case 0x13:\n                case 0x14:\n                case 0x15:\n                case 0x16:\n                case 0x2d:\n                case 0x2e:\n                case 0x2f:\n                    retval = true;\n                    break;\n                    \n                default:\n                    retval = false;\n                    break;\n            }\n       return retval;\n    }\n\n    /**\n     *  Check if a cell contains a date\n     *  Since dates are stored internally in Excel as double values \n     *  we infer it is a date if it is formatted as such. \n     *  @see #isInternalDateFormat(int)\n     */\n    public static boolean isCellDateFormatted(HSSFCell cell) {\n        if (cell == null) return false;\n        boolean bDate = false;\n        \n        double d = cell.getNumericCellValue();\n        if ( HSSFDateUtil.isValidExcelDate(d) ) {\n            HSSFCellStyle style = cell.getCellStyle();\n            int i = style.getDataFormat();\n            bDate = isInternalDateFormat(i);\n        }\n        return bDate;\n    }\n\n\n    /**\n     * Given a double, checks if it is a valid Excel date.\n     *\n     * @return true if valid\n     * @param  value the double value\n     */\n\n    public static boolean isValidExcelDate(double value)\n    {\n        return (value > -Double.MIN_VALUE);\n    }\n\n    /**\n     * Given a Calendar, return the number of days since 1600/12/31.\n     *\n     * @return days number of days since 1600/12/31\n     * @param  cal the Calendar\n     * @exception IllegalArgumentException if date is invalid\n     */\n\n    private static int absoluteDay(Calendar cal)\n    {\n        return cal.get(Calendar.DAY_OF_YEAR)\n               + daysInPriorYears(cal.get(Calendar.YEAR));\n    }\n\n    /**\n     * Return the number of days in prior years since 1601\n     *\n     * @return    days  number of days in years prior to yr.\n     * @param     yr    a year (1600 < yr < 4000)\n     * @exception IllegalArgumentException if year is outside of range.\n     */\n\n    private static int daysInPriorYears(int yr)\n    {\n        if (yr < 1601)\n        {\n            throw new IllegalArgumentException(\n                \"'year' must be 1601 or greater\");\n        }\n        int y    = yr - 1601;\n\n        return days;\n    }\n\n    private static Calendar dayStart(final Calendar cal)\n    {\n        cal.get(Calendar);\n        cal.set(Calendar.HOUR_OF_DAY, 0);\n        cal.set(Calendar.MINUTE, 0);\n        cal.set(Calendar.SECOND, 0);\n        cal.set(Calendar.MILLISECOND, 0);\n        cal.get(Calendar);\n        return cal;", "functions": [{"function_name": "getExcelDate", "code": "    public static double getExcelDate(Date date)\n    {\n        Calendar calStart = new GregorianCalendar();\n\n        calStart.setTime();\n        if (calStart.get(Calendar.YEAR) < 1900)\n        {\n            return BAD_DATE;\n        }\n        else\n        {\n            double fraction = (((calStart.get(Calendar.HOUR_OF_DAY) * 60\n                                 + calStart.get(Calendar.MINUTE)\n                                ) * 60 + calStart.get(Calendar.SECOND)\n                               ) * 1000 + calStart.get(Calendar.MILLISECOND)\n                              ) / ( double ) DAY_MILLISECONDS;\n            calStart = dayStart(calStart);\n\n            return fraction + ( double ) absoluteDay(calStart)\n                   - CAL_1900_ABSOLUTE;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "RETURN", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [1, 8], [4, 9], [4, 10], [2, 11], [6, 12], [1, 13], [12, 14], [13, 15], [7, 16], [16, 17], [14, 18], [17, 19], [17, 20], [20, 21], [20, 22], [22, 23], [22, 24], [24, 25], [24, 26], [26, 27], [26, 28], [28, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 1], [9, 4], [10, 4], [11, 2], [12, 6], [13, 1], [14, 12], [15, 13], [16, 7], [17, 16], [18, 14], [19, 17], [20, 17], [21, 20], [22, 20], [23, 22], [24, 22], [25, 24], [26, 24], [27, 26], [28, 26], [29, 28], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getJavaDate", "code": "    public static Date getJavaDate(double date)\n    {\n        return getJavaDate(date,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getJavaDate", "code": "    public static Date getJavaDate(double date, boolean use1904windowing) {\n        if (isValidExcelDate(date)) {\n            int startYear = 1900;\n            int wholeDays = (int)Math.floor(date);\n            if (use1904windowing) {\n                startYear = 1904;\n            }\n            else if (wholeDays < 61) {\n                dayAdjust = 0;\n            }\n            GregorianCalendar calendar = new GregorianCalendar(startYear,0,\n                                                     wholeDays + dayAdjust);\n            int millisecondsInDay = (int)((date - Math.floor(date)) * \n                                          (double) DAY_MILLISECONDS + 0.5);\n            calendar.set(GregorianCalendar.MILLISECOND, millisecondsInDay);\n            return calendar.getTime();\n        }\n        else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "RETURN", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [5, 12], [6, 13], [1, 14], [9, 15], [8, 16], [15, 17], [11, 18], [7, 19], [16, 20], [16, 21], [17, 22], [9, 23], [10, 24], [19, 25], [19, 26], [15, 27], [23, 28], [26, 29], [27, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 5], [13, 6], [14, 1], [15, 9], [16, 8], [17, 15], [18, 11], [19, 7], [20, 16], [21, 16], [22, 17], [23, 9], [24, 10], [25, 19], [26, 19], [27, 15], [28, 23], [29, 26], [30, 27], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "isInternalDateFormat", "code": "    public static boolean isInternalDateFormat(int format) {\n      boolean retval =false;\n\n            switch(format) {\n                case 0x0e:\n                case 0x0f:\n                case 0x10:\n                case 0x11:\n                case 0x12:\n                case 0x13:\n                case 0x14:\n                case 0x15:\n                case 0x16:\n                case 0x2d:\n                case 0x2e:\n                case 0x2f:\n                    retval = true;\n                    break;\n                    \n                default:\n                    retval = false;\n                    break;\n            }\n       return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [3, 19], [2, 20], [2, 21], [20, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 3], [20, 2], [21, 2], [22, 20], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "isCellDateFormatted", "code": "    public static boolean isCellDateFormatted(HSSFCell cell) {\n        if (cell == null) return false;\n        boolean bDate = false;\n        \n        double d = cell.getNumericCellValue();\n        if ( HSSFDateUtil.isValidExcelDate(d) ) {\n            HSSFCellStyle style = cell.getCellStyle();\n            int i = style.getDataFormat();\n            bDate = isInternalDateFormat(i);\n        }\n        return bDate;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [5, 8], [5, 9], [2, 10], [2, 11], [3, 12], [4, 13], [8, 14], [9, 15], [2, 16], [16, 17], [10, 18], [11, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 5], [9, 5], [10, 2], [11, 2], [12, 3], [13, 4], [14, 8], [15, 9], [16, 2], [17, 16], [18, 10], [19, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "isValidExcelDate", "code": "    public static boolean isValidExcelDate(double value)\n    {\n        return (value > -Double.MIN_VALUE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "absoluteDay", "code": "    private static int absoluteDay(Calendar cal)\n    {\n        return cal.get(Calendar.DAY_OF_YEAR)\n               + daysInPriorYears(cal.get(Calendar.YEAR));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "daysInPriorYears", "code": "    private static int daysInPriorYears(int yr)\n    {\n        if (yr < 1601)\n        {\n            throw new IllegalArgumentException(\n                \"'year' must be 1601 or greater\");\n        }\n        int y    = yr - 1601;\n\n        return days;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [3, 7], [5, 8], [6, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 3], [8, 5], [9, 6], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "dayStart", "code": "    private static Calendar dayStart(final Calendar cal)\n    {\n        cal.get(Calendar);\n        cal.set(Calendar.HOUR_OF_DAY, 0);\n        cal.set(Calendar.MINUTE, 0);\n        cal.set(Calendar.SECOND, 0);\n        cal.set(Calendar.MILLISECOND, 0);\n        cal.get(Calendar);\n        return cal;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [6, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 6], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "HSSFDateUtil", "code": "    private HSSFDateUtil()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.5-7184", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/dtm/DTMAxisIterator.java", "language": "java", "name": "org.apache.xml.dtm.DTMAxisIterator", "code": "public interface DTMAxisIterator extends Cloneable\n{\n\n  /** Specifies the end of the iteration, and is the same as DTM.NULL.  */\n  public static final int END = DTM.NULL;\n\n  /**\n   * Get the next node in the iteration.\n   *\n   * @return The next node handle in the iteration, or END.\n   */\n  public int next();  \n  \n\n  /**\n   * Resets the iterator to the last start node.\n   *\n   * @return A DTMAxisIterator, which may or may not be the same as this \n   *         iterator.\n   */\n  public DTMAxisIterator reset();\n\n  /**\n   * @return the number of nodes in this iterator.  This may be an expensive \n   * operation when called the first time.\n   */\n  public int getLast();\n\n  /**\n   * @return The position of the current node in the set, as defined by XPath.\n   */\n  public int getPosition();\n\n  /**\n   * Remembers the current node for the next call to gotoMark().\n   */\n  public void setMark();\n\n  /**\n   * Restores the current node remembered by setMark().\n   */\n  public void gotoMark();\n\n  /**\n   * Set start to END should 'close' the iterator,\n   * i.e. subsequent call to next() should return END.\n   *\n   * @param node Sets the root of the iteration.\n   *\n   * @return A DTMAxisIterator set to the start of the iteration.\n   */\n  public DTMAxisIterator setStartNode(int node);\n\n  /**\n   * Get start to END should 'close' the iterator,\n   * i.e. subsequent call to next() should return END.\n   *\n   * @return The root node of the iteration.\n   */\n  public int getStartNode();\n\n  /**\n   * @return true if this iterator has a reversed axis, else false.\n   */\n  public boolean isReverse();\n\n  /**\n   * @return a deep copy of this iterator. The clone should not be reset \n   * from its current position.\n   */\n  public DTMAxisIterator cloneIterator();\n  \n  /**\n   * Set if restartable.\n   */\n  public void setRestartable(boolean isRestartable);\n\n  /**\n   * Return the node at the given position.\n   * \n   * @param position The position\n   * @return The node at the given position.\n   */\n  public int getNodeByPosition(int position);", "functions": [{"function_name": "next", "code": "  public int next();  ", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "reset", "code": "  public DTMAxisIterator reset();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getLast", "code": "  public int getLast();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getPosition", "code": "  public int getPosition();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setMark", "code": "  public void setMark();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "gotoMark", "code": "  public void gotoMark();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setStartNode", "code": "  public DTMAxisIterator setStartNode(int node);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStartNode", "code": "  public int getStartNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isReverse", "code": "  public boolean isReverse();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "cloneIterator", "code": "  public DTMAxisIterator cloneIterator();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setRestartable", "code": "  public void setRestartable(boolean isRestartable);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeByPosition", "code": "  public int getNodeByPosition(int position);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.4-2302", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/util/UnsafeUriCharactersEncoder.java", "language": "java", "name": "org.apache.camel.util.UnsafeUriCharactersEncoder", "code": "public final class UnsafeUriCharactersEncoder {\n    private static BitSet unsafeCharacters;\n    private static final transient Log LOG = LogFactory.getLog(UnsafeUriCharactersEncoder.class);\n    private static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C',\n                                              'D', 'E', 'F'};\n\n    static {\n        unsafeCharacters = new BitSet(256);\n        unsafeCharacters.set(' ');\n        unsafeCharacters.set('\"');\n        unsafeCharacters.set('<');\n        unsafeCharacters.set('>');\n        unsafeCharacters.set('#');\n        unsafeCharacters.set('%');\n        unsafeCharacters.set('{');\n        unsafeCharacters.set('}');\n        unsafeCharacters.set('|');\n        unsafeCharacters.set('\\\\');\n        unsafeCharacters.set('^');\n        unsafeCharacters.set('~');\n        unsafeCharacters.set('[');\n        unsafeCharacters.set(']');\n        unsafeCharacters.set('`');\n    }\n\n    private UnsafeUriCharactersEncoder() {\n    }\n\n    public static String encode(String s) {\n        int n = s.length();\n        if (n == 0) {\n            return s;\n        }\n\n        try {\n            byte[] bytes = s.getBytes(\"UTF8\");\n            for (int i = 0;;) {\n                if (unsafeCharacters.get(bytes[i])) {\n                    break;\n                }\n                if (++i >= bytes.length) {\n                    return s;\n                }\n            }\n\n            StringBuffer sb = new StringBuffer();\n            for (byte b : bytes) {\n                if (unsafeCharacters.get(b)) {\n                    appendEscape(sb, b);\n                } else {\n                    sb.append((char)b);\n                }\n            }\n            return sb.toString();\n        } catch (UnsupportedEncodingException e) {\n            LOG.error(\"Can't encoding the uri: \", e);\n            return null;\n        }\n    }\n\n    private static void appendEscape(StringBuffer sb, byte b) {\n        sb.append('%');\n        sb.append(HEX_DIGITS[(b >> 4) & 0x0f]);\n        sb.append(HEX_DIGITS[(b >> 0) & 0x0f]);", "functions": [{"function_name": "encode", "code": "    public static String encode(String s) {\n        int n = s.length();\n        if (n == 0) {\n            return s;\n        }\n\n        try {\n            byte[] bytes = s.getBytes(\"UTF8\");\n            for (int i = 0;;) {\n                if (unsafeCharacters.get(bytes[i])) {\n                    break;\n                }\n                if (++i >= bytes.length) {\n                    return s;\n                }\n            }\n\n            StringBuffer sb = new StringBuffer();\n            for (byte b : bytes) {\n                if (unsafeCharacters.get(b)) {\n                    appendEscape(sb, b);\n                } else {\n                    sb.append((char)b);\n                }\n            }\n            return sb.toString();\n        } catch (UnsupportedEncodingException e) {\n            LOG.error(\"Can't encoding the uri: \", e);\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "CATCH", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "RETURN", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BREAK_CONTINUE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [6, 13], [2, 14], [11, 15], [3, 16], [12, 17], [5, 18], [7, 19], [8, 20], [9, 21], [9, 22], [10, 23], [18, 24], [19, 25], [21, 26], [22, 27], [9, 28], [23, 29], [21, 30], [22, 31], [19, 32], [19, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 6], [14, 2], [15, 11], [16, 3], [17, 12], [18, 5], [19, 7], [20, 8], [21, 9], [22, 9], [23, 10], [24, 18], [25, 19], [26, 21], [27, 22], [28, 9], [29, 23], [30, 21], [31, 22], [32, 19], [33, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "appendEscape", "code": "    private static void appendEscape(StringBuffer sb, byte b) {\n        sb.append('%');\n        sb.append(HEX_DIGITS[(b >> 4) & 0x0f]);\n        sb.append(HEX_DIGITS[(b >> 0) & 0x0f]);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [3, 7], [4, 8], [7, 9], [7, 10], [8, 11], [8, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 3], [8, 4], [9, 7], [10, 7], [11, 8], [12, 8], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "UnsafeUriCharactersEncoder", "code": "    private UnsafeUriCharactersEncoder() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.2-4437", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "gnu/regexp/RE.java", "language": "java", "name": "gnu.regexp.RE", "code": "public class RE extends REToken {\n  // This String will be returned by getVersion()\n  private static final String VERSION = \"1.1.5-dev\";\n\n  // The localized strings are kept in a separate file\n  private static ResourceBundle messages = PropertyResourceBundle.getBundle(\"gnu/regexp/MessagesBundle\", Locale.getDefault());\n\n  // These are, respectively, the first and last tokens in our linked list\n  // If there is only one token, firstToken == lastToken\n  private REToken firstToken, lastToken;\n\n  // This is the number of subexpressions in this regular expression,\n  // with a minimum value of zero.  Returned by getNumSubs()\n  private int numSubs;\n\n    /** Minimum length, in characters, of any possible match. */\n    private int minimumLength;\n\n  /**\n   * Compilation flag. Do  not  differentiate  case.   Subsequent\n   * searches  using  this  RE will be case insensitive.\n   */\n  public static final int REG_ICASE = 2;\n\n  /**\n   * Compilation flag. The match-any-character operator (dot)\n   * will match a newline character.  When set this overrides the syntax\n   * bit RE_DOT_NEWLINE (see RESyntax for details).  This is equivalent to\n   * the \"/s\" operator in Perl.\n   */\n  public static final int REG_DOT_NEWLINE = 4;\n\n  /**\n   * Compilation flag. Use multiline mode.  In this mode, the ^ and $\n   * anchors will match based on newlines within the input. This is\n   * equivalent to the \"/m\" operator in Perl.\n   */\n  public static final int REG_MULTILINE = 8;\n\n  /**\n   * Execution flag.\n   * The match-beginning operator (^) will not match at the beginning\n   * of the input string. Useful for matching on a substring when you\n   * know the context of the input is such that position zero of the\n   * input to the match test is not actually position zero of the text.\n   * <P>\n   * This example demonstrates the results of various ways of matching on\n   * a substring.\n   * <P>\n   * <CODE>\n   * String s = \"food bar fool\";<BR>\n   * RE exp = new RE(\"^foo.\");<BR>\n   * REMatch m0 = exp.getMatch(s);<BR>\n   * REMatch m1 = exp.getMatch(s.substring(8));<BR>\n   * REMatch m2 = exp.getMatch(s.substring(8),0,RE.REG_NOTBOL); <BR>\n   * REMatch m3 = exp.getMatch(s,8);                            <BR>\n   * REMatch m4 = exp.getMatch(s,8,RE.REG_ANCHORINDEX);         <BR>\n   * <P>\n   * // Results:<BR>\n   * //  m0.toString(): \"food\"<BR>\n   * //  m1.toString(): \"fool\"<BR>\n   * //  m2.toString(): null<BR>\n   * //  m3.toString(): null<BR>\n   * //  m4.toString(): \"fool\"<BR>\n   * </CODE>\n   */\n  public static final int REG_NOTBOL = 16;\n\n  /**\n   * Execution flag.\n   * The match-end operator ($) does not match at the end\n   * of the input string. Useful for matching on substrings.\n   */\n  public static final int REG_NOTEOL = 32;\n\n  /**\n   * Execution flag.\n   * When a match method is invoked that starts matching at a non-zero\n   * index into the input, treat the input as if it begins at the index\n   * given.  The effect of this flag is that the engine does not \"see\"\n   * any text in the input before the given index.  This is useful so\n   * that the match-beginning operator (^) matches not at position 0\n   * in the input string, but at the position the search started at\n   * (based on the index input given to the getMatch function).  See\n   * the example under REG_NOTBOL.  It also affects the use of the \\&lt;\n   * and \\b operators.\n   */\n  public static final int REG_ANCHORINDEX = 64;\n\n  /**\n   * Execution flag.\n   * The substitute and substituteAll methods will not attempt to\n   * interpolate occurrences of $1-$9 in the replacement text with\n   * the corresponding subexpressions.  For example, you may want to\n   * replace all matches of \"one dollar\" with \"$1\".\n   */\n  public static final int REG_NO_INTERPOLATE = 128;\n\n  /** Returns a string representing the version of the gnu.regexp package. */\n  public static final String version() {\n    return VERSION;\n  }\n\n  // Retrieves a message from the ResourceBundle\n  static final String getLocalizedMessage(String key) {\n    return messages.getString(key);\n  }\n\n  /**\n   * Constructs a regular expression pattern buffer without any compilation\n   * flags set, and using the default syntax (RESyntax.RE_SYNTAX_PERL5).\n   *\n   * @param pattern A regular expression pattern, in the form of a String,\n   *   StringBuffer or char[].  Other input types will be converted to\n   *   strings using the toString() method.\n   * @exception REException The input pattern could not be parsed.\n   * @exception NullPointerException The pattern was null.\n   */\n  public RE(Object pattern) throws REException {\n    this(pattern,0,RESyntax.RE_SYNTAX_PERL5,0,0);\n  }\n\n  /**\n   * Constructs a regular expression pattern buffer using the specified\n   * compilation flags and the default syntax (RESyntax.RE_SYNTAX_PERL5).\n   *\n   * @param pattern A regular expression pattern, in the form of a String,\n   *   StringBuffer, or char[].  Other input types will be converted to\n   *   strings using the toString() method.\n   * @param cflags The logical OR of any combination of the compilation flags listed above.\n   * @exception REException The input pattern could not be parsed.\n   * @exception NullPointerException The pattern was null.\n   */\n  public RE(Object pattern, int cflags) throws REException {\n    this(pattern,cflags,RESyntax.RE_SYNTAX_PERL5,0,0);\n  }\n\n  /**\n   * Constructs a regular expression pattern buffer using the specified\n   * compilation flags and regular expression syntax.\n   *\n   * @param pattern A regular expression pattern, in the form of a String,\n   *   StringBuffer, or char[].  Other input types will be converted to\n   *   strings using the toString() method.\n   * @param cflags The logical OR of any combination of the compilation flags listed above.\n   * @param syntax The type of regular expression syntax to use.\n   * @exception REException The input pattern could not be parsed.\n   * @exception NullPointerException The pattern was null.\n   */\n  public RE(Object pattern, int cflags, RESyntax syntax) throws REException {\n    this(pattern,cflags,syntax,0,0);\n  }\n\n  // internal constructor used for alternation\n  private RE(REToken first, REToken last,int subs, int subIndex, int minLength) {\n    super(subIndex);\n    firstToken = first;\n    lastToken = last;\n    numSubs = subs;\n    minimumLength = minLength;\n    addToken(new RETokenEndSub(subIndex));\n  }\n\n  private RE(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {\n    super(myIndex); // Subexpression index of this token.\n    initialize(patternObj, cflags, syntax, myIndex, nextSub);\n  }\n\n    // For use by subclasses\n    protected RE() { super(0); }\n\n    // The meat of construction\n  protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {\n      char[] pattern;\n    if (patternObj instanceof String) {\n      pattern = ((String) patternObj).toCharArray();\n    } else if (patternObj instanceof char[]) {\n      pattern = (char[]) patternObj;\n    } else if (patternObj instanceof StringBuffer) {\n      pattern = new char [((StringBuffer) patternObj).length()];\n      ((StringBuffer) patternObj).getChars(0,pattern.length,pattern,0);\n    } else {\n\tpattern = patternObj.toString().toCharArray();\n    }\n\n    int pLength = pattern.length;\n\n    numSubs = 0; // Number of subexpressions in this token.\n    Vector branches = null;\n\n    // linked list of tokens (sort of -- some closed loops can exist)\n    firstToken = lastToken = null;\n\n    // Precalculate these so we don't pay for the math every time we\n    // need to access them.\n    boolean insens = ((cflags & REG_ICASE) > 0);\n\n    // Parse pattern into tokens.  Does anyone know if it's more efficient\n    // to use char[] than a String.charAt()?  I'm assuming so.\n\n    // index tracks the position in the char array\n    int index = 0;\n\n    // this will be the current parse character (pattern[index])\n    CharUnit unit = new CharUnit();\n\n    // This is used for {x,y} calculations\n    IntPair minMax = new IntPair();\n\n    // Buffer a token so we can create a TokenRepeated, etc.\n    REToken currentToken = null;\n    char ch;\n\n    while (index < pLength) {\n      // read the next character unit (including backslash escapes)\n      index = getCharUnit(pattern,index,unit);\n\n      // ALTERNATION OPERATOR\n      //  \\| or | (if RE_NO_BK_VBAR) or newline (if RE_NEWLINE_ALT)\n      //  not available if RE_LIMITED_OPS is set\n\n      // TODO: the '\\n' literal here should be a test against REToken.newline,\n      // which unfortunately may be more than a single character.\n      if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ unit.bk))\n\t     || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\\n') && !unit.bk) )\n\t   && !syntax.get(RESyntax.RE_LIMITED_OPS)) {\n\t// make everything up to here be a branch. create vector if nec.\n\taddToken(currentToken);\n\tRE theBranch = new RE(firstToken, lastToken, numSubs, subIndex, minimumLength);\n\tminimumLength = 0;\n\tif (branches == null) {\n\t    branches = new Vector();\n\t}\n\tbranches.addElement(theBranch);\n\tfirstToken = lastToken = currentToken = null;\n      }\n      \n      // INTERVAL OPERATOR:\n      //  {x} | {x,} | {x,y}  (RE_INTERVALS && RE_NO_BK_BRACES)\n      //  \\{x\\} | \\{x,\\} | \\{x,y\\} (RE_INTERVALS && !RE_NO_BK_BRACES)\n      //\n      // OPEN QUESTION: \n      //  what is proper interpretation of '{' at start of string?\n\n      else if ((unit.ch == '{') && syntax.get(RESyntax.RE_INTERVALS) && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk)) {\n\tint newIndex = getMinMax(pattern,index,minMax,syntax);\n        if (newIndex > index) {\n          if (minMax.first > minMax.second)\n            throw new REException(getLocalizedMessage(\"interval.order\"),REException.REG_BADRPT,newIndex);\n          if (currentToken == null)\n            throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,newIndex);\n          if (currentToken instanceof RETokenRepeated) \n            throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,newIndex);\n          if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n            throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,newIndex);\n          if ((currentToken.getMinimumLength() == 0) && (minMax.second == Integer.MAX_VALUE))\n            throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,newIndex);\n          index = newIndex;\n          currentToken = setRepeated(currentToken,minMax.first,minMax.second,index); \n        }\n        else {\n          addToken(currentToken);\n          currentToken = new RETokenChar(subIndex,unit.ch,insens);\n        } \n      }\n      \n      // LIST OPERATOR:\n      //  [...] | [^...]\n\n      else if ((unit.ch == '[') && !unit.bk) {\n\tVector options = new Vector();\n\tboolean negative = false;\n\tchar lastChar = 0;\n\tif (index == pLength) throw new REException(getLocalizedMessage(\"unmatched.bracket\"),REException.REG_EBRACK,index);\n\t\n\t// Check for initial caret, negation\n\tif ((ch = pattern[index]) == '^') {\n\t  negative = true;\n\t  if (++index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t  ch = pattern[index];\n\t}\n\n\t// Check for leading right bracket literal\n\tif (ch == ']') {\n\t  lastChar = ch;\n\t  if (++index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t}\n\n\twhile ((ch = pattern[index++]) != ']') {\n\t  if ((ch == '-') && (lastChar != 0)) {\n\t    if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t    if ((ch = pattern[index]) == ']') {\n\t      options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t      lastChar = '-';\n\t    } else {\n\t      options.addElement(new RETokenRange(subIndex,lastChar,ch,insens));\n\t      lastChar = 0;\n\t      index++;\n\t    }\n          } else if ((ch == '\\\\') && syntax.get(RESyntax.RE_BACKSLASH_ESCAPE_IN_LISTS)) {\n            if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t    int posixID = -1;\n\t    boolean negate = false;\n            char asciiEsc = 0;\n\t    if ((\"dswDSW\".indexOf(pattern[index]) != -1) && syntax.get(RESyntax.RE_CHAR_CLASS_ESC_IN_LISTS)) {\n\t      switch (pattern[index]) {\n\t      case 'D':\n\t\tnegate = true;\n\t      case 'd':\n\t\tposixID = RETokenPOSIX.DIGIT;\n\t\tbreak;\n\t      case 'S':\n\t\tnegate = true;\n\t      case 's':\n\t\tposixID = RETokenPOSIX.SPACE;\n\t\tbreak;\n\t      case 'W':\n\t\tnegate = true;\n\t      case 'w':\n\t\tposixID = RETokenPOSIX.ALNUM;\n\t\tbreak;\n\t      }\n\t    }\n            else if (\"nrt\".indexOf(pattern[index]) != -1) {\n              switch (pattern[index]) {\n                case 'n':\n                  asciiEsc = '\\n';\n                  break;\n                case 't':\n                  asciiEsc = '\\t';\n                  break;\n                case 'r':\n                  asciiEsc = '\\r';\n                  break;\n              }\n            }\n\t    if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    \n\t    if (posixID != -1) {\n\t      options.addElement(new RETokenPOSIX(subIndex,posixID,insens,negate));\n\t    } else if (asciiEsc != 0) {\n\t      lastChar = asciiEsc;\n\t    } else {\n\t      lastChar = pattern[index];\n\t    }\n\t    ++index;\n\t  } else if ((ch == '[') && (syntax.get(RESyntax.RE_CHAR_CLASSES)) && (index < pLength) && (pattern[index] == ':')) {\n\t    StringBuffer posixSet = new StringBuffer();\n\t    index = getPosixSet(pattern,index+1,posixSet);\n\t    int posixId = RETokenPOSIX.intValue(posixSet.toString());\n\t    if (posixId != -1)\n\t      options.addElement(new RETokenPOSIX(subIndex,posixId,insens,false));\n\t  } else {\n\t    if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    lastChar = ch;\n\t  }\n\t  if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t} // while in list\n\t// Out of list, index is one past ']'\n\t    \n\tif (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    \n\t// Create a new RETokenOneOf\n\taddToken(currentToken);\n\toptions.trimToSize();\n\tcurrentToken = new RETokenOneOf(subIndex,options,negative);\n      }\n\n      // SUBEXPRESSIONS\n      //  (...) | \\(...\\) depending on RE_NO_BK_PARENS\n\n      else if ((unit.ch == '(') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) {\n\tboolean pure = false;\n\tboolean comment = false;\n        boolean lookAhead = false;\n        boolean negativelh = false;\n\tif ((index+1 < pLength) && (pattern[index] == '?')) {\n\t  switch (pattern[index+1]) {\n          case '!':\n            if (syntax.get(RESyntax.RE_LOOKAHEAD)) {\n              pure = true;\n              negativelh = true;\n              lookAhead = true;\n              index += 2;\n            }\n            break;\n          case '=':\n            if (syntax.get(RESyntax.RE_LOOKAHEAD)) {\n              pure = true;\n              lookAhead = true;\n              index += 2;\n            }\n            break;\n\t  case ':':\n\t    if (syntax.get(RESyntax.RE_PURE_GROUPING)) {\n\t      pure = true;\n\t      index += 2;\n\t    }\n\t    break;\n\t  case '#':\n\t    if (syntax.get(RESyntax.RE_COMMENTS)) {\n\t      comment = true;\n\t    }\n\t    break;\n          default:\n            throw new REException(getLocalizedMessage(\"repeat.no.token\"), REException.REG_BADRPT, index);\n\t  }\n\t}\n\n\tif (index >= pLength) {\n\t    throw new REException(getLocalizedMessage(\"unmatched.paren\"), REException.REG_ESUBREG,index);\n\t}\n\n\t// find end of subexpression\n\tint endIndex = index;\n\tint nextIndex = index;\n\tint nested = 0;\n\n\twhile ( ((nextIndex = getCharUnit(pattern,endIndex,unit)) > 0)\n\t\t&& !(nested == 0 && (unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) )\n\t  if ((endIndex = nextIndex) >= pLength)\n\t    throw new REException(getLocalizedMessage(\"subexpr.no.end\"),REException.REG_ESUBREG,nextIndex);\n\t  else if (unit.ch == '(' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))\n\t    nested++;\n\t  else if (unit.ch == ')' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))\n\t    nested--;\n\n\t// endIndex is now position at a ')','\\)' \n\t// nextIndex is end of string or position after ')' or '\\)'\n\n\tif (comment) index = nextIndex;\n\telse { // not a comment\n\t  // create RE subexpression as token.\n\t  addToken(currentToken);\n\t  if (!pure) {\n\t    numSubs++;\n\t  }\n\n\t  int useIndex = (pure || lookAhead) ? 0 : nextSub + numSubs;\n\t  currentToken = new RE(String.valueOf(pattern,index,endIndex-index).toCharArray(),cflags,syntax,useIndex,nextSub + numSubs);\n\t  numSubs += ((RE) currentToken).getNumSubs();\n\n          if (lookAhead) {\n\t      currentToken = new RETokenLookAhead(currentToken,negativelh);\n\t  }\n\n\t  index = nextIndex;\n\t} // not a comment\n      } // subexpression\n    \n      // UNMATCHED RIGHT PAREN\n      // ) or \\) throw exception if\n      // !syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD)\n      else if (!syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) && ((unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))) {\n\tthrow new REException(getLocalizedMessage(\"unmatched.paren\"),REException.REG_EPAREN,index);\n      }\n\n      // START OF LINE OPERATOR\n      //  ^\n\n      else if ((unit.ch == '^') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = null;\n\taddToken(new RETokenStart(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));\n      }\n\n      // END OF LINE OPERATOR\n      //  $\n\n      else if ((unit.ch == '$') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = null;\n\taddToken(new RETokenEnd(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));\n      }\n\n      // MATCH-ANY-CHARACTER OPERATOR (except possibly newline and null)\n      //  .\n\n      else if ((unit.ch == '.') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenAny(subIndex,syntax.get(RESyntax.RE_DOT_NEWLINE) || ((cflags & REG_DOT_NEWLINE) > 0),syntax.get(RESyntax.RE_DOT_NOT_NULL));\n      }\n\n      // ZERO-OR-MORE REPEAT OPERATOR\n      //  *\n\n      else if ((unit.ch == '*') && !unit.bk) {\n\tif (currentToken == null)\n          throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenRepeated)\n          throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n\t  throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\tif (currentToken.getMinimumLength() == 0)\n\t  throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,index);\n\tcurrentToken = setRepeated(currentToken,0,Integer.MAX_VALUE,index);\n      }\n\n      // ONE-OR-MORE REPEAT OPERATOR\n      //  + | \\+ depending on RE_BK_PLUS_QM\n      //  not available if RE_LIMITED_OPS is set\n\n      else if ((unit.ch == '+') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) {\n\tif (currentToken == null)\n          throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenRepeated)\n          throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n\t  throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\tif (currentToken.getMinimumLength() == 0)\n\t  throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,index);\n\tcurrentToken = setRepeated(currentToken,1,Integer.MAX_VALUE,index);\n      }\n\n      // ZERO-OR-ONE REPEAT OPERATOR / STINGY MATCHING OPERATOR\n      //  ? | \\? depending on RE_BK_PLUS_QM\n      //  not available if RE_LIMITED_OPS is set\n      //  stingy matching if RE_STINGY_OPS is set and it follows a quantifier\n\n      else if ((unit.ch == '?') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) {\n\tif (currentToken == null) throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\n\t// Check for stingy matching on RETokenRepeated\n\tif (currentToken instanceof RETokenRepeated) {\n          if (syntax.get(RESyntax.RE_STINGY_OPS) && !((RETokenRepeated)currentToken).isStingy())\n            ((RETokenRepeated)currentToken).makeStingy();\n          else\n            throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n        }\n        else if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n          throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\telse\n\t  currentToken = setRepeated(currentToken,0,1,index);\n      }\n\t\n      // BACKREFERENCE OPERATOR\n      //  \\1 \\2 ... \\9\n      // not available if RE_NO_BK_REFS is set\n\n      else if (unit.bk && Character.isDigit(unit.ch) && !syntax.get(RESyntax.RE_NO_BK_REFS)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenBackRef(subIndex,Character.digit(unit.ch,10),insens);\n      }\n\n      // START OF STRING OPERATOR\n      //  \\A if RE_STRING_ANCHORS is set\n      \n      else if (unit.bk && (unit.ch == 'A') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenStart(subIndex,null);\n      }\n\n      // WORD BREAK OPERATOR\n      //  \\b if ????\n\n      else if (unit.bk && (unit.ch == 'b') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, false);\n      } \n\n      // WORD BEGIN OPERATOR \n      //  \\< if ????\n      else if (unit.bk && (unit.ch == '<')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN, false);\n      } \n\n      // WORD END OPERATOR \n      //  \\> if ????\n      else if (unit.bk && (unit.ch == '>')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.END, false);\n      } \n\n      // NON-WORD BREAK OPERATOR\n      // \\B if ????\n\n      else if (unit.bk && (unit.ch == 'B') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, true);\n      } \n\n      \n      // DIGIT OPERATOR\n      //  \\d if RE_CHAR_CLASS_ESCAPES is set\n      \n      else if (unit.bk && (unit.ch == 'd') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,false);\n      }\n\n      // NON-DIGIT OPERATOR\n      //  \\D\n\n\telse if (unit.bk && (unit.ch == 'D') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,true);\n\t}\n\n\t// NEWLINE ESCAPE\n        //  \\n\n\n\telse if (unit.bk && (unit.ch == 'n')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\n',false);\n\t}\n\n\t// RETURN ESCAPE\n        //  \\r\n\n\telse if (unit.bk && (unit.ch == 'r')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\r',false);\n\t}\n\n\t// WHITESPACE OPERATOR\n        //  \\s if RE_CHAR_CLASS_ESCAPES is set\n\n\telse if (unit.bk && (unit.ch == 's') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,false);\n\t}\n\n\t// NON-WHITESPACE OPERATOR\n        //  \\S\n\n\telse if (unit.bk && (unit.ch == 'S') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,true);\n\t}\n\n\t// TAB ESCAPE\n        //  \\t\n\n\telse if (unit.bk && (unit.ch == 't')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\t',false);\n\t}\n\n\t// ALPHANUMERIC OPERATOR\n        //  \\w\n\n\telse if (unit.bk && (unit.ch == 'w') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,false);\n\t}\n\n\t// NON-ALPHANUMERIC OPERATOR\n        //  \\W\n\n\telse if (unit.bk && (unit.ch == 'W') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,true);\n\t}\n\n\t// END OF STRING OPERATOR\n        //  \\Z\n\n\telse if (unit.bk && (unit.ch == 'Z') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenEnd(subIndex,null);\n\t}\n\n\t// NON-SPECIAL CHARACTER (or escape to make literal)\n        //  c | \\* for example\n\n\telse {  // not a special character\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,unit.ch,insens);\n\t} \n      } // end while\n\n    // Add final buffered token and an EndSub marker\n    addToken(currentToken);\n      \n    if (branches != null) {\n\tbranches.addElement(new RE(firstToken,lastToken,numSubs,subIndex,minimumLength));\n\tbranches.trimToSize(); // compact the Vector\n\tminimumLength = 0;\n\tfirstToken = lastToken = null;\n\taddToken(new RETokenOneOf(subIndex,branches,false));\n    } \n    else addToken(new RETokenEndSub(subIndex));\n\n  }\n\n  private static int getCharUnit(char[] input, int index, CharUnit unit) throws REException {\n    unit.ch = input[index++];\n    if (unit.bk = (unit.ch == '\\\\'))\n      if (index < input.length)\n\tunit.ch = input[index++];\n      else throw new REException(getLocalizedMessage(\"ends.with.backslash\"),REException.REG_ESCAPE,index);\n    return index;\n  }\n\n  /**\n   * Checks if the regular expression matches the input in its entirety.\n   *\n   * @param input The input text.\n   */\n  public boolean isMatch(Object input) {\n    return isMatch(input,0,0);\n  }\n  \n  /**\n   * Checks if the input string, starting from index, is an exact match of\n   * this regular expression.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   */\n  public boolean isMatch(Object input,int index) {\n    return isMatch(input,index,0);\n  }\n  \n\n  /**\n   * Checks if the input, starting from index and using the specified\n   * execution flags, is an exact match of this regular expression.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   */\n  public boolean isMatch(Object input,int index,int eflags) {\n    return isMatchImpl(makeCharIndexed(input,index),index,eflags);\n  }\n\n  private boolean isMatchImpl(CharIndexed input, int index, int eflags) {\n    if (firstToken == null)  // Trivial case\n      return (input.charAt(0) == CharIndexed.OUT_OF_BOUNDS);\n    REMatch m = new REMatch(numSubs, index, eflags);\n    if (firstToken.match(input, m)) {\n\twhile (m != null) {\n\t    if (input.charAt(m.index) == CharIndexed.OUT_OF_BOUNDS) {\n\t\treturn true;\n\t    }\n\t    m = m.next;\n\t}\n    }\n    return false;\n  }\n    \n  /**\n   * Returns the maximum number of subexpressions in this regular expression.\n   * If the expression contains branches, the value returned will be the\n   * maximum subexpressions in any of the branches.\n   */\n  public int getNumSubs() {\n    return numSubs;\n  }\n\n  // Overrides REToken.setUncle\n  void setUncle(REToken uncle) {\n      if (lastToken != null) {\n\t  lastToken.setUncle(uncle);\n      } else super.setUncle(uncle); // to deal with empty subexpressions\n  }\n\n  // Overrides REToken.chain\n\n  boolean chain(REToken next) {\n    super.chain(next);\n    setUncle(next);\n    return true;\n  }\n\n  /**\n   * Returns the minimum number of characters that could possibly\n   * constitute a match of this regular expression.\n   */\n  public int getMinimumLength() {\n      return minimumLength;\n  }\n\n  /**\n   * Returns an array of all matches found in the input.\n   *\n   * If the regular expression allows the empty string to match, it will\n   * substitute matches at all positions except the end of the input.\n   *\n   * @param input The input text.\n   * @return a non-null (but possibly zero-length) array of matches\n   */\n  public REMatch[] getAllMatches(Object input) {\n    return getAllMatches(input,0,0);\n  }\n\n  /**\n   * Returns an array of all matches found in the input,\n   * beginning at the specified index position.\n   *\n   * If the regular expression allows the empty string to match, it will\n   * substitute matches at all positions except the end of the input.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @return a non-null (but possibly zero-length) array of matches\n   */\n  public REMatch[] getAllMatches(Object input, int index) {\n    return getAllMatches(input,index,0);\n  }\n\n  /**\n   * Returns an array of all matches found in the input string,\n   * beginning at the specified index position and using the specified\n   * execution flags.\n   *\n   * If the regular expression allows the empty string to match, it will\n   * substitute matches at all positions except the end of the input.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @return a non-null (but possibly zero-length) array of matches\n   */\n  public REMatch[] getAllMatches(Object input, int index, int eflags) {\n    return getAllMatchesImpl(makeCharIndexed(input,index),index,eflags);\n  }\n\n  // this has been changed since 1.03 to be non-overlapping matches\n  private REMatch[] getAllMatchesImpl(CharIndexed input, int index, int eflags) {\n    Vector all = new Vector();\n    REMatch m = null;\n    while ((m = getMatchImpl(input,index,eflags,null)) != null) {\n      all.addElement(m);\n      index = m.getEndIndex();\n      if (m.end[0] == 0) {   // handle pathological case of zero-length match\n\tindex++;\n\tinput.move(1);\n      } else {\n\tinput.move(m.end[0]);\n      }\n      if (!input.isValid()) break;\n    }\n    REMatch[] mset = new REMatch[all.size()];\n    all.copyInto(mset);\n    return mset;\n  }\n  \n    /* Implements abstract method REToken.match() */\n    boolean match(CharIndexed input, REMatch mymatch) { \n\tif (firstToken == null) return next(input, mymatch);\n\n\t// Note the start of this subexpression\n\tmymatch.start[subIndex] = mymatch.index;\n\n\treturn firstToken.match(input, mymatch);\n    }\n  \n  /**\n   * Returns the first match found in the input.  If no match is found,\n   * null is returned.\n   *\n   * @param input The input text.\n   * @return An REMatch instance referencing the match, or null if none.\n   */\n  public REMatch getMatch(Object input) {\n    return getMatch(input,0,0);\n  }\n  \n  /**\n   * Returns the first match found in the input, beginning\n   * the search at the specified index.  If no match is found,\n   * returns null.\n   *\n   * @param input The input text.\n   * @param index The offset within the text to begin looking for a match.\n   * @return An REMatch instance referencing the match, or null if none.\n   */\n  public REMatch getMatch(Object input, int index) {\n    return getMatch(input,index,0);\n  }\n  \n  /**\n   * Returns the first match found in the input, beginning\n   * the search at the specified index, and using the specified\n   * execution flags.  If no match is found, returns null.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @return An REMatch instance referencing the match, or null if none.\n   */\n  public REMatch getMatch(Object input, int index, int eflags) {\n    return getMatch(input,index,eflags,null);\n  }\n\n  /**\n   * Returns the first match found in the input, beginning the search\n   * at the specified index, and using the specified execution flags.\n   * If no match is found, returns null.  If a StringBuffer is\n   * provided and is non-null, the contents of the input text from the\n   * index to the beginning of the match (or to the end of the input,\n   * if there is no match) are appended to the StringBuffer.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @param buffer The StringBuffer to save pre-match text in.\n   * @return An REMatch instance referencing the match, or null if none.  */\n  public REMatch getMatch(Object input, int index, int eflags, StringBuffer buffer) {\n    return getMatchImpl(makeCharIndexed(input,index),index,eflags,buffer);\n  }\n\n  REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) {\n      // Create a new REMatch to hold results\n      REMatch mymatch = new REMatch(numSubs, anchor, eflags);\n      do {\n\t  // Optimization: check if anchor + minimumLength > length\n\t  if (minimumLength == 0 || input.charAt(minimumLength-1) != CharIndexed.OUT_OF_BOUNDS) {\n\t      if (match(input, mymatch)) {\n\t\t  // Find longest match of them all to observe leftmost longest\n\t\t  REMatch longest = mymatch;\n\t\t  while ((mymatch = mymatch.next) != null) {\n\t\t      if (mymatch.index > longest.index) {\n\t\t\t  longest = mymatch;\n\t\t      }\n\t\t  }\n\t\t  \n\t\t  longest.end[0] = longest.index;\n\t\t  longest.finish(input);\n\t\t  return longest;\n\t      }\n\t  }\n\t  mymatch.clear(++anchor);\n\t  // Append character to buffer if needed\n\t  if (buffer != null && input.charAt(0) != CharIndexed.OUT_OF_BOUNDS) {\n\t      buffer.append(input.charAt(0));\n\t  }\n      } while (input.move(1));\n      \n      // Special handling at end of input for e.g. \"$\"\n      if (minimumLength == 0) {\n\t  if (match(input, mymatch)) {\n\t      mymatch.finish(input);\n\t      return mymatch;\n\t  }\n      }\n\n      return null;\n  }\n\n  /**\n   * Returns an REMatchEnumeration that can be used to iterate over the\n   * matches found in the input text.\n   *\n   * @param input The input text.\n   * @return A non-null REMatchEnumeration instance.\n   */\n  public REMatchEnumeration getMatchEnumeration(Object input) {\n    return getMatchEnumeration(input,0,0);\n  }\n\n\n  /**\n   * Returns an REMatchEnumeration that can be used to iterate over the\n   * matches found in the input text.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @return A non-null REMatchEnumeration instance, with its input cursor\n   *  set to the index position specified.\n   */\n  public REMatchEnumeration getMatchEnumeration(Object input, int index) {\n    return getMatchEnumeration(input,index,0);\n  }\n\n  /**\n   * Returns an REMatchEnumeration that can be used to iterate over the\n   * matches found in the input text.\n   *\n   * @param input The input text.\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @return A non-null REMatchEnumeration instance, with its input cursor\n   *  set to the index position specified.\n   */\n  public REMatchEnumeration getMatchEnumeration(Object input, int index, int eflags) {\n    return new REMatchEnumeration(this,makeCharIndexed(input,index),index,eflags);\n  }\n\n\n  /**\n   * Substitutes the replacement text for the first match found in the input.\n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @return A String interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substitute(Object input,String replace) {\n    return substitute(input,replace,0,0);\n  }\n\n  /**\n   * Substitutes the replacement text for the first match found in the input\n   * beginning at the specified index position.  Specifying an index\n   * effectively causes the regular expression engine to throw away the\n   * specified number of characters. \n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @param index The offset index at which the search should be begin.\n   * @return A String containing the substring of the input, starting\n   *   at the index position, and interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substitute(Object input,String replace,int index) {\n    return substitute(input,replace,index,0);\n  }\n\n  /**\n   * Substitutes the replacement text for the first match found in the input\n   * string, beginning at the specified index position and using the\n   * specified execution flags.\n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @return A String containing the substring of the input, starting\n   *   at the index position, and interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substitute(Object input,String replace,int index,int eflags) {\n    return substituteImpl(makeCharIndexed(input,index),replace,index,eflags);\n  }\n\n  private String substituteImpl(CharIndexed input,String replace,int index,int eflags) {\n    StringBuffer buffer = new StringBuffer();\n    REMatch m = getMatchImpl(input,index,eflags,buffer);\n    if (m==null) return buffer.toString();\n    buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ?\n\t\t   replace : m.substituteInto(replace) );\n    if (input.move(m.end[0])) {\n      do {\n\tbuffer.append(input.charAt(0));\n      } while (input.move(1));\n    }\n    return buffer.toString();\n  }\n  \n  /**\n   * Substitutes the replacement text for each non-overlapping match found \n   * in the input text.\n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @return A String interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substituteAll(Object input,String replace) {\n    return substituteAll(input,replace,0,0);\n  }\n\n  /**\n   * Substitutes the replacement text for each non-overlapping match found \n   * in the input text, starting at the specified index.\n   *\n   * If the regular expression allows the empty string to match, it will\n   * substitute matches at all positions except the end of the input.\n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @param index The offset index at which the search should be begin.\n   * @return A String containing the substring of the input, starting\n   *   at the index position, and interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substituteAll(Object input,String replace,int index) {\n    return substituteAll(input,replace,index,0);\n  }\n \n  /**\n   * Substitutes the replacement text for each non-overlapping match found \n   * in the input text, starting at the specified index and using the\n   * specified execution flags.\n   *\n   * @param input The input text.\n   * @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).\n   * @param index The offset index at which the search should be begin.\n   * @param eflags The logical OR of any execution flags above.\n   * @return A String containing the substring of the input, starting\n   *   at the index position, and interpolating the substituted text.\n   * @see REMatch#substituteInto\n   */\n  public String substituteAll(Object input,String replace,int index,int eflags) {\n    return substituteAllImpl(makeCharIndexed(input,index),replace,index,eflags);\n  }\n\n  private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) {\n    StringBuffer buffer = new StringBuffer();\n    REMatch m;\n    while ((m = getMatchImpl(input,index,eflags,buffer)) != null) {\n\tbuffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ?\n\t\t       replace : m.substituteInto(replace) );\n      index = m.getEndIndex();\n      if (m.end[0] == 0) {\n\tchar ch = input.charAt(0);\n\tif (ch != CharIndexed.OUT_OF_BOUNDS) \n\t    buffer.append(ch);\n\tinput.move(1);\n      } else {\n\t  input.move(m.end[0]);\n      }\n\n      if (!input.isValid()) break;\n    }\n    return buffer.toString();\n  }\n  \n  /* Helper function for constructor */\n  private void addToken(REToken next) {\n    if (next == null) return;\n    minimumLength += next.getMinimumLength();\n    if (firstToken == null) {\n\tlastToken = firstToken = next;\n    } else {\n      // if chain returns false, it \"rejected\" the token due to\n      // an optimization, and next was combined with lastToken\n      if (lastToken.chain(next)) {\n\t  lastToken = next;\n      }\n    }\n  }\n\n  private static REToken setRepeated(REToken current, int min, int max, int index) throws REException {\n    if (current == null) throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n    return new RETokenRepeated(current.subIndex,current,min,max);\n  }\n\n  private static int getPosixSet(char[] pattern,int index,StringBuffer buf) {\n    // Precondition: pattern[index-1] == ':'\n    // we will return pos of closing ']'.\n    int i;\n    for (i=index; i<(pattern.length-1); i++) {\n      if ((pattern[i] == ':') && (pattern[i+1] == ']'))\n\treturn i+2;\n      buf.append(pattern[i]);\n    }\n    return index; // didn't match up\n  }\n\n  private int getMinMax(char[] input,int index,IntPair minMax,RESyntax syntax) throws REException {\n    // Precondition: input[index-1] == '{', minMax != null\n\n    boolean mustMatch = !syntax.get(RESyntax.RE_NO_BK_BRACES);\n    int startIndex = index;\n    if (index == input.length) {\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"unmatched.brace\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    }\n    \n    int min,max=0;\n    CharUnit unit = new CharUnit();\n    StringBuffer buf = new StringBuffer();\n    \n    // Read string of digits\n    do {\n      index = getCharUnit(input,index,unit);\n      if (Character.isDigit(unit.ch))\n        buf.append(unit.ch);\n    } while ((index != input.length) && Character.isDigit(unit.ch));\n\n    // Check for {} tomfoolery\n    if (buf.length() == 0) {\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    }\n\n    min = Integer.parseInt(buf.toString());\n\t\n    if ((unit.ch == '}') && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk))\n      max = min;\n    else if (index == input.length)\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.no.end\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    else if ((unit.ch == ',') && !unit.bk) {\n      buf = new StringBuffer();\n      // Read string of digits\n      while (((index = getCharUnit(input,index,unit)) != input.length) && Character.isDigit(unit.ch))\n\tbuf.append(unit.ch);\n\n      if (!((unit.ch == '}') && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk)))\n        if (mustMatch)\n          throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n        else\n          return startIndex;\n\n      // This is the case of {x,}\n      if (buf.length() == 0) max = Integer.MAX_VALUE;\n      else max = Integer.parseInt(buf.toString());\n    } else\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n\n    // We know min and max now, and they are valid.\n\n    minMax.first = min;\n    minMax.second = max;\n\n    // return the index following the '}'\n    return index;\n  }\n\n   /**\n    * Return a human readable form of the compiled regular expression,\n    * useful for debugging.\n    */\n   public String toString() {\n     StringBuffer sb = new StringBuffer();\n     dump(sb);\n     return sb.toString();\n   }\n\n  void dump(StringBuffer os) {\n    os.append('(');\n    if (subIndex == 0)\n      os.append(\"?:\");\n    if (firstToken != null)\n      firstToken.dumpAll(os);\n    os.append(')');\n  }\n\n  // Cast input appropriately or throw exception\n  private static CharIndexed makeCharIndexed(Object input, int index) {\n      // We could let a String fall through to final input, but since\n      // it's the most likely input type, we check it first.\n    if (input instanceof String)\n      return new CharIndexedString((String) input,index);\n    else if (input instanceof char[])\n      return new CharIndexedCharArray((char[]) input,index);\n    else if (input instanceof StringBuffer)\n      return new CharIndexedStringBuffer((StringBuffer) input,index);\n    else if (input instanceof InputStream)\n      return new CharIndexedInputStream((InputStream) input,index);\n    else if (input instanceof Reader)\n\treturn new CharIndexedReader((Reader) input, index);\n    else if (input instanceof CharIndexed)\n\treturn (CharIndexed) input; // do we lose index info?\n    else \n\treturn new CharIndexedString(input.toString(), index);", "functions": [{"function_name": "version", "code": "  public static final String version() {\n    return VERSION;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalizedMessage", "code": "  static final String getLocalizedMessage(String key) {\n    return messages.getString(key);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "initialize", "code": "  protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {\n      char[] pattern;\n    if (patternObj instanceof String) {\n      pattern = ((String) patternObj).toCharArray();\n    } else if (patternObj instanceof char[]) {\n      pattern = (char[]) patternObj;\n    } else if (patternObj instanceof StringBuffer) {\n      pattern = new char [((StringBuffer) patternObj).length()];\n      ((StringBuffer) patternObj).getChars(0,pattern.length,pattern,0);\n    } else {\n\tpattern = patternObj.toString().toCharArray();\n    }\n\n    int pLength = pattern.length;\n\n    numSubs = 0; // Number of subexpressions in this token.\n    Vector branches = null;\n\n    // linked list of tokens (sort of -- some closed loops can exist)\n    firstToken = lastToken = null;\n\n    // Precalculate these so we don't pay for the math every time we\n    // need to access them.\n    boolean insens = ((cflags & REG_ICASE) > 0);\n\n    // Parse pattern into tokens.  Does anyone know if it's more efficient\n    // to use char[] than a String.charAt()?  I'm assuming so.\n\n    // index tracks the position in the char array\n    int index = 0;\n\n    // this will be the current parse character (pattern[index])\n    CharUnit unit = new CharUnit();\n\n    // This is used for {x,y} calculations\n    IntPair minMax = new IntPair();\n\n    // Buffer a token so we can create a TokenRepeated, etc.\n    REToken currentToken = null;\n    char ch;\n\n    while (index < pLength) {\n      // read the next character unit (including backslash escapes)\n      index = getCharUnit(pattern,index,unit);\n\n      // ALTERNATION OPERATOR\n      //  \\| or | (if RE_NO_BK_VBAR) or newline (if RE_NEWLINE_ALT)\n      //  not available if RE_LIMITED_OPS is set\n\n      // TODO: the '\\n' literal here should be a test against REToken.newline,\n      // which unfortunately may be more than a single character.\n      if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ unit.bk))\n\t     || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\\n') && !unit.bk) )\n\t   && !syntax.get(RESyntax.RE_LIMITED_OPS)) {\n\t// make everything up to here be a branch. create vector if nec.\n\taddToken(currentToken);\n\tRE theBranch = new RE(firstToken, lastToken, numSubs, subIndex, minimumLength);\n\tminimumLength = 0;\n\tif (branches == null) {\n\t    branches = new Vector();\n\t}\n\tbranches.addElement(theBranch);\n\tfirstToken = lastToken = currentToken = null;\n      }\n      \n      // INTERVAL OPERATOR:\n      //  {x} | {x,} | {x,y}  (RE_INTERVALS && RE_NO_BK_BRACES)\n      //  \\{x\\} | \\{x,\\} | \\{x,y\\} (RE_INTERVALS && !RE_NO_BK_BRACES)\n      //\n      // OPEN QUESTION: \n      //  what is proper interpretation of '{' at start of string?\n\n      else if ((unit.ch == '{') && syntax.get(RESyntax.RE_INTERVALS) && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk)) {\n\tint newIndex = getMinMax(pattern,index,minMax,syntax);\n        if (newIndex > index) {\n          if (minMax.first > minMax.second)\n            throw new REException(getLocalizedMessage(\"interval.order\"),REException.REG_BADRPT,newIndex);\n          if (currentToken == null)\n            throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,newIndex);\n          if (currentToken instanceof RETokenRepeated) \n            throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,newIndex);\n          if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n            throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,newIndex);\n          if ((currentToken.getMinimumLength() == 0) && (minMax.second == Integer.MAX_VALUE))\n            throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,newIndex);\n          index = newIndex;\n          currentToken = setRepeated(currentToken,minMax.first,minMax.second,index); \n        }\n        else {\n          addToken(currentToken);\n          currentToken = new RETokenChar(subIndex,unit.ch,insens);\n        } \n      }\n      \n      // LIST OPERATOR:\n      //  [...] | [^...]\n\n      else if ((unit.ch == '[') && !unit.bk) {\n\tVector options = new Vector();\n\tboolean negative = false;\n\tchar lastChar = 0;\n\tif (index == pLength) throw new REException(getLocalizedMessage(\"unmatched.bracket\"),REException.REG_EBRACK,index);\n\t\n\t// Check for initial caret, negation\n\tif ((ch = pattern[index]) == '^') {\n\t  negative = true;\n\t  if (++index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t  ch = pattern[index];\n\t}\n\n\t// Check for leading right bracket literal\n\tif (ch == ']') {\n\t  lastChar = ch;\n\t  if (++index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t}\n\n\twhile ((ch = pattern[index++]) != ']') {\n\t  if ((ch == '-') && (lastChar != 0)) {\n\t    if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t    if ((ch = pattern[index]) == ']') {\n\t      options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t      lastChar = '-';\n\t    } else {\n\t      options.addElement(new RETokenRange(subIndex,lastChar,ch,insens));\n\t      lastChar = 0;\n\t      index++;\n\t    }\n          } else if ((ch == '\\\\') && syntax.get(RESyntax.RE_BACKSLASH_ESCAPE_IN_LISTS)) {\n            if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t    int posixID = -1;\n\t    boolean negate = false;\n            char asciiEsc = 0;\n\t    if ((\"dswDSW\".indexOf(pattern[index]) != -1) && syntax.get(RESyntax.RE_CHAR_CLASS_ESC_IN_LISTS)) {\n\t      switch (pattern[index]) {\n\t      case 'D':\n\t\tnegate = true;\n\t      case 'd':\n\t\tposixID = RETokenPOSIX.DIGIT;\n\t\tbreak;\n\t      case 'S':\n\t\tnegate = true;\n\t      case 's':\n\t\tposixID = RETokenPOSIX.SPACE;\n\t\tbreak;\n\t      case 'W':\n\t\tnegate = true;\n\t      case 'w':\n\t\tposixID = RETokenPOSIX.ALNUM;\n\t\tbreak;\n\t      }\n\t    }\n            else if (\"nrt\".indexOf(pattern[index]) != -1) {\n              switch (pattern[index]) {\n                case 'n':\n                  asciiEsc = '\\n';\n                  break;\n                case 't':\n                  asciiEsc = '\\t';\n                  break;\n                case 'r':\n                  asciiEsc = '\\r';\n                  break;\n              }\n            }\n\t    if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    \n\t    if (posixID != -1) {\n\t      options.addElement(new RETokenPOSIX(subIndex,posixID,insens,negate));\n\t    } else if (asciiEsc != 0) {\n\t      lastChar = asciiEsc;\n\t    } else {\n\t      lastChar = pattern[index];\n\t    }\n\t    ++index;\n\t  } else if ((ch == '[') && (syntax.get(RESyntax.RE_CHAR_CLASSES)) && (index < pLength) && (pattern[index] == ':')) {\n\t    StringBuffer posixSet = new StringBuffer();\n\t    index = getPosixSet(pattern,index+1,posixSet);\n\t    int posixId = RETokenPOSIX.intValue(posixSet.toString());\n\t    if (posixId != -1)\n\t      options.addElement(new RETokenPOSIX(subIndex,posixId,insens,false));\n\t  } else {\n\t    if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    lastChar = ch;\n\t  }\n\t  if (index == pLength) throw new REException(getLocalizedMessage(\"class.no.end\"),REException.REG_EBRACK,index);\n\t} // while in list\n\t// Out of list, index is one past ']'\n\t    \n\tif (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens));\n\t    \n\t// Create a new RETokenOneOf\n\taddToken(currentToken);\n\toptions.trimToSize();\n\tcurrentToken = new RETokenOneOf(subIndex,options,negative);\n      }\n\n      // SUBEXPRESSIONS\n      //  (...) | \\(...\\) depending on RE_NO_BK_PARENS\n\n      else if ((unit.ch == '(') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) {\n\tboolean pure = false;\n\tboolean comment = false;\n        boolean lookAhead = false;\n        boolean negativelh = false;\n\tif ((index+1 < pLength) && (pattern[index] == '?')) {\n\t  switch (pattern[index+1]) {\n          case '!':\n            if (syntax.get(RESyntax.RE_LOOKAHEAD)) {\n              pure = true;\n              negativelh = true;\n              lookAhead = true;\n              index += 2;\n            }\n            break;\n          case '=':\n            if (syntax.get(RESyntax.RE_LOOKAHEAD)) {\n              pure = true;\n              lookAhead = true;\n              index += 2;\n            }\n            break;\n\t  case ':':\n\t    if (syntax.get(RESyntax.RE_PURE_GROUPING)) {\n\t      pure = true;\n\t      index += 2;\n\t    }\n\t    break;\n\t  case '#':\n\t    if (syntax.get(RESyntax.RE_COMMENTS)) {\n\t      comment = true;\n\t    }\n\t    break;\n          default:\n            throw new REException(getLocalizedMessage(\"repeat.no.token\"), REException.REG_BADRPT, index);\n\t  }\n\t}\n\n\tif (index >= pLength) {\n\t    throw new REException(getLocalizedMessage(\"unmatched.paren\"), REException.REG_ESUBREG,index);\n\t}\n\n\t// find end of subexpression\n\tint endIndex = index;\n\tint nextIndex = index;\n\tint nested = 0;\n\n\twhile ( ((nextIndex = getCharUnit(pattern,endIndex,unit)) > 0)\n\t\t&& !(nested == 0 && (unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) )\n\t  if ((endIndex = nextIndex) >= pLength)\n\t    throw new REException(getLocalizedMessage(\"subexpr.no.end\"),REException.REG_ESUBREG,nextIndex);\n\t  else if (unit.ch == '(' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))\n\t    nested++;\n\t  else if (unit.ch == ')' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))\n\t    nested--;\n\n\t// endIndex is now position at a ')','\\)' \n\t// nextIndex is end of string or position after ')' or '\\)'\n\n\tif (comment) index = nextIndex;\n\telse { // not a comment\n\t  // create RE subexpression as token.\n\t  addToken(currentToken);\n\t  if (!pure) {\n\t    numSubs++;\n\t  }\n\n\t  int useIndex = (pure || lookAhead) ? 0 : nextSub + numSubs;\n\t  currentToken = new RE(String.valueOf(pattern,index,endIndex-index).toCharArray(),cflags,syntax,useIndex,nextSub + numSubs);\n\t  numSubs += ((RE) currentToken).getNumSubs();\n\n          if (lookAhead) {\n\t      currentToken = new RETokenLookAhead(currentToken,negativelh);\n\t  }\n\n\t  index = nextIndex;\n\t} // not a comment\n      } // subexpression\n    \n      // UNMATCHED RIGHT PAREN\n      // ) or \\) throw exception if\n      // !syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD)\n      else if (!syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) && ((unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))) {\n\tthrow new REException(getLocalizedMessage(\"unmatched.paren\"),REException.REG_EPAREN,index);\n      }\n\n      // START OF LINE OPERATOR\n      //  ^\n\n      else if ((unit.ch == '^') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = null;\n\taddToken(new RETokenStart(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));\n      }\n\n      // END OF LINE OPERATOR\n      //  $\n\n      else if ((unit.ch == '$') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = null;\n\taddToken(new RETokenEnd(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null));\n      }\n\n      // MATCH-ANY-CHARACTER OPERATOR (except possibly newline and null)\n      //  .\n\n      else if ((unit.ch == '.') && !unit.bk) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenAny(subIndex,syntax.get(RESyntax.RE_DOT_NEWLINE) || ((cflags & REG_DOT_NEWLINE) > 0),syntax.get(RESyntax.RE_DOT_NOT_NULL));\n      }\n\n      // ZERO-OR-MORE REPEAT OPERATOR\n      //  *\n\n      else if ((unit.ch == '*') && !unit.bk) {\n\tif (currentToken == null)\n          throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenRepeated)\n          throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n\t  throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\tif (currentToken.getMinimumLength() == 0)\n\t  throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,index);\n\tcurrentToken = setRepeated(currentToken,0,Integer.MAX_VALUE,index);\n      }\n\n      // ONE-OR-MORE REPEAT OPERATOR\n      //  + | \\+ depending on RE_BK_PLUS_QM\n      //  not available if RE_LIMITED_OPS is set\n\n      else if ((unit.ch == '+') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) {\n\tif (currentToken == null)\n          throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenRepeated)\n          throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n\tif (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n\t  throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\tif (currentToken.getMinimumLength() == 0)\n\t  throw new REException(getLocalizedMessage(\"repeat.empty.token\"),REException.REG_BADRPT,index);\n\tcurrentToken = setRepeated(currentToken,1,Integer.MAX_VALUE,index);\n      }\n\n      // ZERO-OR-ONE REPEAT OPERATOR / STINGY MATCHING OPERATOR\n      //  ? | \\? depending on RE_BK_PLUS_QM\n      //  not available if RE_LIMITED_OPS is set\n      //  stingy matching if RE_STINGY_OPS is set and it follows a quantifier\n\n      else if ((unit.ch == '?') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) {\n\tif (currentToken == null) throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n\n\t// Check for stingy matching on RETokenRepeated\n\tif (currentToken instanceof RETokenRepeated) {\n          if (syntax.get(RESyntax.RE_STINGY_OPS) && !((RETokenRepeated)currentToken).isStingy())\n            ((RETokenRepeated)currentToken).makeStingy();\n          else\n            throw new REException(getLocalizedMessage(\"repeat.chained\"),REException.REG_BADRPT,index);\n        }\n        else if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary)\n          throw new REException(getLocalizedMessage(\"repeat.assertion\"),REException.REG_BADRPT,index);\n\telse\n\t  currentToken = setRepeated(currentToken,0,1,index);\n      }\n\t\n      // BACKREFERENCE OPERATOR\n      //  \\1 \\2 ... \\9\n      // not available if RE_NO_BK_REFS is set\n\n      else if (unit.bk && Character.isDigit(unit.ch) && !syntax.get(RESyntax.RE_NO_BK_REFS)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenBackRef(subIndex,Character.digit(unit.ch,10),insens);\n      }\n\n      // START OF STRING OPERATOR\n      //  \\A if RE_STRING_ANCHORS is set\n      \n      else if (unit.bk && (unit.ch == 'A') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenStart(subIndex,null);\n      }\n\n      // WORD BREAK OPERATOR\n      //  \\b if ????\n\n      else if (unit.bk && (unit.ch == 'b') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, false);\n      } \n\n      // WORD BEGIN OPERATOR \n      //  \\< if ????\n      else if (unit.bk && (unit.ch == '<')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN, false);\n      } \n\n      // WORD END OPERATOR \n      //  \\> if ????\n      else if (unit.bk && (unit.ch == '>')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.END, false);\n      } \n\n      // NON-WORD BREAK OPERATOR\n      // \\B if ????\n\n      else if (unit.bk && (unit.ch == 'B') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, true);\n      } \n\n      \n      // DIGIT OPERATOR\n      //  \\d if RE_CHAR_CLASS_ESCAPES is set\n      \n      else if (unit.bk && (unit.ch == 'd') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\taddToken(currentToken);\n\tcurrentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,false);\n      }\n\n      // NON-DIGIT OPERATOR\n      //  \\D\n\n\telse if (unit.bk && (unit.ch == 'D') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,true);\n\t}\n\n\t// NEWLINE ESCAPE\n        //  \\n\n\n\telse if (unit.bk && (unit.ch == 'n')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\n',false);\n\t}\n\n\t// RETURN ESCAPE\n        //  \\r\n\n\telse if (unit.bk && (unit.ch == 'r')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\r',false);\n\t}\n\n\t// WHITESPACE OPERATOR\n        //  \\s if RE_CHAR_CLASS_ESCAPES is set\n\n\telse if (unit.bk && (unit.ch == 's') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,false);\n\t}\n\n\t// NON-WHITESPACE OPERATOR\n        //  \\S\n\n\telse if (unit.bk && (unit.ch == 'S') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,true);\n\t}\n\n\t// TAB ESCAPE\n        //  \\t\n\n\telse if (unit.bk && (unit.ch == 't')) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,'\\t',false);\n\t}\n\n\t// ALPHANUMERIC OPERATOR\n        //  \\w\n\n\telse if (unit.bk && (unit.ch == 'w') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,false);\n\t}\n\n\t// NON-ALPHANUMERIC OPERATOR\n        //  \\W\n\n\telse if (unit.bk && (unit.ch == 'W') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,true);\n\t}\n\n\t// END OF STRING OPERATOR\n        //  \\Z\n\n\telse if (unit.bk && (unit.ch == 'Z') && syntax.get(RESyntax.RE_STRING_ANCHORS)) {\n\t  addToken(currentToken);\n\t  currentToken = new RETokenEnd(subIndex,null);\n\t}\n\n\t// NON-SPECIAL CHARACTER (or escape to make literal)\n        //  c | \\* for example\n\n\telse {  // not a special character\n\t  addToken(currentToken);\n\t  currentToken = new RETokenChar(subIndex,unit.ch,insens);\n\t} \n      } // end while\n\n    // Add final buffered token and an EndSub marker\n    addToken(currentToken);\n      \n    if (branches != null) {\n\tbranches.addElement(new RE(firstToken,lastToken,numSubs,subIndex,minimumLength));\n\tbranches.trimToSize(); // compact the Vector\n\tminimumLength = 0;\n\tfirstToken = lastToken = null;\n\taddToken(new RETokenOneOf(subIndex,branches,false));\n    } \n    else addToken(new RETokenEndSub(subIndex));", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "IF", "LOOP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "IF", "ASSIGN", "IF", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "SWITCH", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "IF", "IF", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "SWITCH", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [0, 19], [2, 20], [0, 21], [0, 22], [11, 23], [11, 24], [1, 25], [18, 26], [2, 27], [4, 28], [5, 29], [6, 30], [7, 31], [8, 32], [21, 33], [9, 34], [22, 35], [23, 36], [23, 37], [25, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [27, 44], [27, 45], [2, 46], [32, 47], [32, 48], [33, 49], [36, 50], [11, 51], [39, 52], [40, 53], [41, 54], [43, 55], [44, 56], [44, 57], [27, 58], [27, 59], [45, 60], [45, 61], [46, 62], [23, 63], [52, 64], [53, 65], [56, 66], [56, 67], [44, 68], [44, 69], [57, 70], [57, 71], [27, 72], [27, 73], [58, 74], [27, 75], [27, 76], [61, 77], [61, 78], [36, 79], [36, 80], [66, 81], [66, 82], [56, 83], [56, 84], [56, 85], [56, 86], [56, 87], [56, 88], [56, 89], [56, 90], [67, 91], [68, 92], [70, 93], [71, 94], [71, 95], [72, 96], [74, 97], [75, 98], [59, 99], [77, 100], [78, 101], [78, 102], [79, 103], [81, 104], [81, 105], [66, 106], [66, 107], [66, 108], [66, 109], [66, 110], [66, 111], [66, 112], [66, 113], [66, 114], [66, 115], [66, 116], [82, 117], [82, 118], [56, 119], [56, 120], [56, 121], [83, 122], [84, 123], [85, 124], [86, 125], [87, 126], [87, 127], [91, 128], [68, 129], [68, 130], [68, 131], [68, 132], [68, 133], [69, 134], [95, 135], [96, 136], [58, 137], [100, 138], [100, 139], [101, 140], [102, 141], [103, 142], [104, 143], [104, 144], [81, 145], [105, 146], [105, 147], [107, 148], [107, 149], [111, 150], [112, 151], [117, 152], [118, 153], [119, 154], [83, 155], [122, 156], [84, 157], [84, 158], [123, 159], [123, 160], [85, 161], [124, 162], [86, 163], [125, 164], [125, 165], [126, 166], [88, 167], [89, 168], [90, 169], [68, 170], [68, 171], [68, 172], [68, 173], [129, 174], [129, 175], [130, 176], [130, 177], [131, 178], [131, 179], [132, 180], [132, 181], [133, 182], [133, 183], [136, 184], [137, 185], [138, 186], [143, 187], [143, 188], [144, 189], [145, 190], [146, 191], [146, 192], [106, 193], [106, 194], [106, 195], [106, 196], [148, 197], [148, 198], [148, 199], [149, 200], [149, 201], [108, 202], [111, 203], [112, 204], [151, 205], [151, 206], [113, 207], [114, 208], [115, 209], [116, 210], [155, 211], [157, 212], [157, 213], [158, 214], [158, 215], [161, 216], [161, 217], [85, 218], [86, 219], [163, 220], [163, 221], [86, 222], [166, 223], [170, 224], [172, 225], [174, 226], [175, 227], [175, 228], [176, 229], [177, 230], [177, 231], [178, 232], [180, 233], [181, 234], [182, 235], [187, 236], [187, 237], [188, 238], [104, 239], [104, 240], [104, 241], [189, 242], [190, 243], [191, 244], [192, 245], [106, 246], [106, 247], [106, 248], [106, 249], [197, 250], [197, 251], [198, 252], [199, 253], [200, 254], [200, 255], [201, 256], [201, 257], [203, 258], [205, 259], [206, 260], [212, 261], [214, 262], [214, 263], [158, 264], [158, 265], [215, 266], [215, 267], [216, 268], [220, 269], [222, 270], [223, 271], [226, 272], [228, 273], [228, 274], [229, 275], [232, 276], [233, 277], [235, 278], [236, 279], [236, 280], [237, 281], [143, 282], [143, 283], [143, 284], [238, 285], [239, 286], [240, 287], [243, 288], [248, 289], [194, 290], [250, 291], [251, 292], [251, 293], [252, 294], [254, 295], [255, 296], [255, 297], [257, 298], [258, 299], [204, 300], [204, 301], [204, 302], [204, 303], [204, 304], [204, 305], [204, 306], [204, 307], [204, 308], [204, 309], [204, 310], [204, 311], [204, 312], [260, 313], [261, 314], [262, 315], [214, 316], [214, 317], [214, 318], [214, 319], [214, 320], [214, 321], [214, 322], [263, 323], [263, 324], [264, 325], [265, 326], [265, 327], [266, 328], [267, 329], [268, 330], [269, 331], [272, 332], [275, 333], [276, 334], [277, 335], [278, 336], [279, 337], [279, 338], [236, 339], [236, 340], [236, 341], [236, 342], [280, 343], [187, 344], [187, 345], [281, 346], [282, 347], [283, 348], [286, 349], [193, 350], [289, 351], [289, 352], [290, 353], [290, 354], [290, 355], [291, 356], [291, 357], [292, 358], [293, 359], [294, 360], [296, 361], [297, 362], [299, 363], [300, 364], [302, 365], [305, 366], [308, 367], [311, 368], [204, 369], [314, 370], [262, 371], [262, 372], [262, 373], [262, 374], [315, 375], [315, 376], [316, 377], [316, 378], [317, 379], [318, 380], [318, 381], [322, 382], [322, 383], [324, 384], [325, 385], [325, 386], [326, 387], [330, 388], [331, 389], [337, 390], [337, 391], [279, 392], [279, 393], [279, 394], [279, 395], [338, 396], [338, 397], [236, 398], [339, 399], [339, 400], [340, 401], [340, 402], [341, 403], [341, 404], [342, 405], [342, 406], [343, 407], [344, 408], [347, 409], [349, 410], [349, 411], [349, 412], [350, 413], [352, 414], [352, 415], [356, 416], [357, 417], [364, 418], [369, 419], [262, 420], [371, 421], [372, 422], [262, 423], [375, 424], [376, 425], [376, 426], [377, 427], [378, 428], [317, 429], [379, 430], [380, 431], [318, 432], [381, 433], [381, 434], [319, 435], [320, 436], [321, 437], [382, 438], [264, 439], [264, 440], [264, 441], [264, 442], [387, 443], [390, 444], [390, 445], [337, 446], [337, 447], [391, 448], [391, 449], [279, 450], [392, 451], [392, 452], [393, 453], [393, 454], [394, 455], [394, 456], [395, 457], [395, 458], [396, 459], [397, 460], [397, 461], [398, 462], [399, 463], [400, 464], [400, 465], [401, 466], [402, 467], [402, 468], [403, 469], [405, 470], [406, 471], [408, 472], [408, 473], [409, 474], [409, 475], [409, 476], [412, 477], [412, 478], [418, 479], [302, 480], [305, 481], [305, 482], [308, 483], [308, 484], [308, 485], [311, 486], [311, 487], [311, 488], [311, 489], [371, 490], [421, 491], [372, 492], [422, 493], [373, 494], [423, 495], [374, 496], [426, 497], [426, 498], [427, 499], [316, 500], [429, 501], [380, 502], [431, 503], [431, 504], [434, 505], [434, 506], [438, 507], [439, 508], [440, 509], [441, 510], [442, 511], [443, 512], [444, 513], [444, 514], [445, 515], [445, 516], [446, 517], [446, 518], [447, 519], [447, 520], [448, 521], [449, 522], [449, 523], [450, 524], [451, 525], [452, 526], [452, 527], [453, 528], [454, 529], [454, 530], [455, 531], [457, 532], [458, 533], [461, 534], [462, 535], [463, 536], [466, 537], [469, 538], [470, 539], [473, 540], [473, 541], [476, 542], [476, 543], [480, 544], [481, 545], [482, 546], [483, 547], [484, 548], [485, 549], [486, 550], [487, 551], [488, 552], [489, 553], [490, 554], [492, 555], [494, 556], [495, 557], [498, 558], [377, 559], [377, 560], [500, 561], [504, 562], [432, 563], [432, 564], [432, 565], [432, 566], [432, 567], [432, 568], [432, 569], [432, 570], [432, 571], [506, 572], [507, 573], [513, 574], [513, 575], [514, 576], [514, 577], [390, 578], [390, 579], [516, 580], [517, 581], [517, 582], [446, 583], [519, 584], [520, 585], [523, 586], [524, 587], [525, 588], [528, 589], [531, 590], [532, 591], [536, 592], [537, 593], [538, 594], [539, 595], [540, 596], [540, 597], [555, 598], [557, 599], [502, 600], [502, 601], [502, 602], [502, 603], [502, 604], [502, 605], [432, 606], [432, 607], [432, 608], [432, 609], [432, 610], [432, 611], [574, 612], [574, 613], [575, 614], [575, 615], [444, 616], [444, 617], [577, 618], [578, 619], [517, 620], [581, 621], [582, 622], [582, 623], [583, 624], [583, 625], [584, 626], [588, 627], [589, 628], [590, 629], [591, 630], [502, 631], [502, 632], [502, 633], [607, 634], [609, 635], [611, 636], [612, 637], [612, 638], [613, 639], [513, 640], [513, 641], [615, 642], [616, 643], [618, 644], [619, 645], [620, 646], [621, 647], [624, 648], [625, 649], [626, 650], [631, 651], [632, 652], [633, 653], [637, 654], [637, 655], [638, 656], [574, 657], [574, 658], [639, 659], [640, 660], [642, 661], [643, 662], [645, 663], [646, 664], [646, 665], [647, 666], [648, 667], [654, 668], [654, 669], [655, 670], [655, 671], [612, 672], [612, 673], [656, 674], [657, 675], [660, 676], [660, 677], [667, 678], [668, 679], [668, 680], [669, 681], [669, 682], [637, 683], [637, 684], [671, 685], [672, 686], [675, 687], [679, 688], [679, 689], [680, 690], [680, 691], [654, 692], [654, 693], [682, 694], [683, 695], [685, 696], [686, 697], [688, 698], [688, 699], [689, 700], [668, 701], [668, 702], [691, 703], [692, 704], [694, 705], [695, 706], [695, 707], [698, 708], [698, 709], [699, 710], [679, 711], [679, 712], [700, 713], [701, 714], [703, 715], [704, 716], [708, 717], [708, 718], [709, 719], [709, 720], [688, 721], [688, 722], [710, 723], [711, 724], [714, 725], [717, 726], [717, 727], [718, 728], [718, 729], [698, 730], [698, 731], [720, 732], [721, 733], [724, 734], [724, 735], [726, 736], [726, 737], [727, 738], [708, 739], [708, 740], [729, 741], [730, 742], [732, 743], [733, 744], [733, 745], [736, 746], [736, 747], [737, 748], [737, 749], [717, 750], [717, 751], [738, 752], [739, 753], [741, 754], [742, 755], [746, 756], [747, 757], [747, 758], [726, 759], [726, 760], [749, 761], [750, 762], [753, 763], [756, 764], [756, 765], [736, 766], [736, 767], [758, 768], [759, 769], [761, 770], [762, 771], [762, 772], [746, 773], [746, 774], [746, 775], [746, 776], [765, 777], [766, 778], [768, 779], [769, 780], [773, 781], [775, 782], [777, 783], [778, 784], [782, 785], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 0], [20, 2], [21, 0], [22, 0], [23, 11], [24, 11], [25, 1], [26, 18], [27, 2], [28, 4], [29, 5], [30, 6], [31, 7], [32, 8], [33, 21], [34, 9], [35, 22], [36, 23], [37, 23], [38, 25], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 27], [45, 27], [46, 2], [47, 32], [48, 32], [49, 33], [50, 36], [51, 11], [52, 39], [53, 40], [54, 41], [55, 43], [56, 44], [57, 44], [58, 27], [59, 27], [60, 45], [61, 45], [62, 46], [63, 23], [64, 52], [65, 53], [66, 56], [67, 56], [68, 44], [69, 44], [70, 57], [71, 57], [72, 27], [73, 27], [74, 58], [75, 27], [76, 27], [77, 61], [78, 61], [79, 36], [80, 36], [81, 66], [82, 66], [83, 56], [84, 56], [85, 56], [86, 56], [87, 56], [88, 56], [89, 56], [90, 56], [91, 67], [92, 68], [93, 70], [94, 71], [95, 71], [96, 72], [97, 74], [98, 75], [99, 59], [100, 77], [101, 78], [102, 78], [103, 79], [104, 81], [105, 81], [106, 66], [107, 66], [108, 66], [109, 66], [110, 66], [111, 66], [112, 66], [113, 66], [114, 66], [115, 66], [116, 66], [117, 82], [118, 82], [119, 56], [120, 56], [121, 56], [122, 83], [123, 84], [124, 85], [125, 86], [126, 87], [127, 87], [128, 91], [129, 68], [130, 68], [131, 68], [132, 68], [133, 68], [134, 69], [135, 95], [136, 96], [137, 58], [138, 100], [139, 100], [140, 101], [141, 102], [142, 103], [143, 104], [144, 104], [145, 81], [146, 105], [147, 105], [148, 107], [149, 107], [150, 111], [151, 112], [152, 117], [153, 118], [154, 119], [155, 83], [156, 122], [157, 84], [158, 84], [159, 123], [160, 123], [161, 85], [162, 124], [163, 86], [164, 125], [165, 125], [166, 126], [167, 88], [168, 89], [169, 90], [170, 68], [171, 68], [172, 68], [173, 68], [174, 129], [175, 129], [176, 130], [177, 130], [178, 131], [179, 131], [180, 132], [181, 132], [182, 133], [183, 133], [184, 136], [185, 137], [186, 138], [187, 143], [188, 143], [189, 144], [190, 145], [191, 146], [192, 146], [193, 106], [194, 106], [195, 106], [196, 106], [197, 148], [198, 148], [199, 148], [200, 149], [201, 149], [202, 108], [203, 111], [204, 112], [205, 151], [206, 151], [207, 113], [208, 114], [209, 115], [210, 116], [211, 155], [212, 157], [213, 157], [214, 158], [215, 158], [216, 161], [217, 161], [218, 85], [219, 86], [220, 163], [221, 163], [222, 86], [223, 166], [224, 170], [225, 172], [226, 174], [227, 175], [228, 175], [229, 176], [230, 177], [231, 177], [232, 178], [233, 180], [234, 181], [235, 182], [236, 187], [237, 187], [238, 188], [239, 104], [240, 104], [241, 104], [242, 189], [243, 190], [244, 191], [245, 192], [246, 106], [247, 106], [248, 106], [249, 106], [250, 197], [251, 197], [252, 198], [253, 199], [254, 200], [255, 200], [256, 201], [257, 201], [258, 203], [259, 205], [260, 206], [261, 212], [262, 214], [263, 214], [264, 158], [265, 158], [266, 215], [267, 215], [268, 216], [269, 220], [270, 222], [271, 223], [272, 226], [273, 228], [274, 228], [275, 229], [276, 232], [277, 233], [278, 235], [279, 236], [280, 236], [281, 237], [282, 143], [283, 143], [284, 143], [285, 238], [286, 239], [287, 240], [288, 243], [289, 248], [290, 194], [291, 250], [292, 251], [293, 251], [294, 252], [295, 254], [296, 255], [297, 255], [298, 257], [299, 258], [300, 204], [301, 204], [302, 204], [303, 204], [304, 204], [305, 204], [306, 204], [307, 204], [308, 204], [309, 204], [310, 204], [311, 204], [312, 204], [313, 260], [314, 261], [315, 262], [316, 214], [317, 214], [318, 214], [319, 214], [320, 214], [321, 214], [322, 214], [323, 263], [324, 263], [325, 264], [326, 265], [327, 265], [328, 266], [329, 267], [330, 268], [331, 269], [332, 272], [333, 275], [334, 276], [335, 277], [336, 278], [337, 279], [338, 279], [339, 236], [340, 236], [341, 236], [342, 236], [343, 280], [344, 187], [345, 187], [346, 281], [347, 282], [348, 283], [349, 286], [350, 193], [351, 289], [352, 289], [353, 290], [354, 290], [355, 290], [356, 291], [357, 291], [358, 292], [359, 293], [360, 294], [361, 296], [362, 297], [363, 299], [364, 300], [365, 302], [366, 305], [367, 308], [368, 311], [369, 204], [370, 314], [371, 262], [372, 262], [373, 262], [374, 262], [375, 315], [376, 315], [377, 316], [378, 316], [379, 317], [380, 318], [381, 318], [382, 322], [383, 322], [384, 324], [385, 325], [386, 325], [387, 326], [388, 330], [389, 331], [390, 337], [391, 337], [392, 279], [393, 279], [394, 279], [395, 279], [396, 338], [397, 338], [398, 236], [399, 339], [400, 339], [401, 340], [402, 340], [403, 341], [404, 341], [405, 342], [406, 342], [407, 343], [408, 344], [409, 347], [410, 349], [411, 349], [412, 349], [413, 350], [414, 352], [415, 352], [416, 356], [417, 357], [418, 364], [419, 369], [420, 262], [421, 371], [422, 372], [423, 262], [424, 375], [425, 376], [426, 376], [427, 377], [428, 378], [429, 317], [430, 379], [431, 380], [432, 318], [433, 381], [434, 381], [435, 319], [436, 320], [437, 321], [438, 382], [439, 264], [440, 264], [441, 264], [442, 264], [443, 387], [444, 390], [445, 390], [446, 337], [447, 337], [448, 391], [449, 391], [450, 279], [451, 392], [452, 392], [453, 393], [454, 393], [455, 394], [456, 394], [457, 395], [458, 395], [459, 396], [460, 397], [461, 397], [462, 398], [463, 399], [464, 400], [465, 400], [466, 401], [467, 402], [468, 402], [469, 403], [470, 405], [471, 406], [472, 408], [473, 408], [474, 409], [475, 409], [476, 409], [477, 412], [478, 412], [479, 418], [480, 302], [481, 305], [482, 305], [483, 308], [484, 308], [485, 308], [486, 311], [487, 311], [488, 311], [489, 311], [490, 371], [491, 421], [492, 372], [493, 422], [494, 373], [495, 423], [496, 374], [497, 426], [498, 426], [499, 427], [500, 316], [501, 429], [502, 380], [503, 431], [504, 431], [505, 434], [506, 434], [507, 438], [508, 439], [509, 440], [510, 441], [511, 442], [512, 443], [513, 444], [514, 444], [515, 445], [516, 445], [517, 446], [518, 446], [519, 447], [520, 447], [521, 448], [522, 449], [523, 449], [524, 450], [525, 451], [526, 452], [527, 452], [528, 453], [529, 454], [530, 454], [531, 455], [532, 457], [533, 458], [534, 461], [535, 462], [536, 463], [537, 466], [538, 469], [539, 470], [540, 473], [541, 473], [542, 476], [543, 476], [544, 480], [545, 481], [546, 482], [547, 483], [548, 484], [549, 485], [550, 486], [551, 487], [552, 488], [553, 489], [554, 490], [555, 492], [556, 494], [557, 495], [558, 498], [559, 377], [560, 377], [561, 500], [562, 504], [563, 432], [564, 432], [565, 432], [566, 432], [567, 432], [568, 432], [569, 432], [570, 432], [571, 432], [572, 506], [573, 507], [574, 513], [575, 513], [576, 514], [577, 514], [578, 390], [579, 390], [580, 516], [581, 517], [582, 517], [583, 446], [584, 519], [585, 520], [586, 523], [587, 524], [588, 525], [589, 528], [590, 531], [591, 532], [592, 536], [593, 537], [594, 538], [595, 539], [596, 540], [597, 540], [598, 555], [599, 557], [600, 502], [601, 502], [602, 502], [603, 502], [604, 502], [605, 502], [606, 432], [607, 432], [608, 432], [609, 432], [610, 432], [611, 432], [612, 574], [613, 574], [614, 575], [615, 575], [616, 444], [617, 444], [618, 577], [619, 578], [620, 517], [621, 581], [622, 582], [623, 582], [624, 583], [625, 583], [626, 584], [627, 588], [628, 589], [629, 590], [630, 591], [631, 502], [632, 502], [633, 502], [634, 607], [635, 609], [636, 611], [637, 612], [638, 612], [639, 613], [640, 513], [641, 513], [642, 615], [643, 616], [644, 618], [645, 619], [646, 620], [647, 621], [648, 624], [649, 625], [650, 626], [651, 631], [652, 632], [653, 633], [654, 637], [655, 637], [656, 638], [657, 574], [658, 574], [659, 639], [660, 640], [661, 642], [662, 643], [663, 645], [664, 646], [665, 646], [666, 647], [667, 648], [668, 654], [669, 654], [670, 655], [671, 655], [672, 612], [673, 612], [674, 656], [675, 657], [676, 660], [677, 660], [678, 667], [679, 668], [680, 668], [681, 669], [682, 669], [683, 637], [684, 637], [685, 671], [686, 672], [687, 675], [688, 679], [689, 679], [690, 680], [691, 680], [692, 654], [693, 654], [694, 682], [695, 683], [696, 685], [697, 686], [698, 688], [699, 688], [700, 689], [701, 668], [702, 668], [703, 691], [704, 692], [705, 694], [706, 695], [707, 695], [708, 698], [709, 698], [710, 699], [711, 679], [712, 679], [713, 700], [714, 701], [715, 703], [716, 704], [717, 708], [718, 708], [719, 709], [720, 709], [721, 688], [722, 688], [723, 710], [724, 711], [725, 714], [726, 717], [727, 717], [728, 718], [729, 718], [730, 698], [731, 698], [732, 720], [733, 721], [734, 724], [735, 724], [736, 726], [737, 726], [738, 727], [739, 708], [740, 708], [741, 729], [742, 730], [743, 732], [744, 733], [745, 733], [746, 736], [747, 736], [748, 737], [749, 737], [750, 717], [751, 717], [752, 738], [753, 739], [754, 741], [755, 742], [756, 746], [757, 747], [758, 747], [759, 726], [760, 726], [761, 749], [762, 750], [763, 753], [764, 756], [765, 756], [766, 736], [767, 736], [768, 758], [769, 759], [770, 761], [771, 762], [772, 762], [773, 746], [774, 746], [775, 746], [776, 746], [777, 765], [778, 766], [779, 768], [780, 769], [781, 773], [782, 775], [783, 777], [784, 778], [785, 782], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493], [494, 494], [495, 495], [496, 496], [497, 497], [498, 498], [499, 499], [500, 500], [501, 501], [502, 502], [503, 503], [504, 504], [505, 505], [506, 506], [507, 507], [508, 508], [509, 509], [510, 510], [511, 511], [512, 512], [513, 513], [514, 514], [515, 515], [516, 516], [517, 517], [518, 518], [519, 519], [520, 520], [521, 521], [522, 522], [523, 523], [524, 524], [525, 525], [526, 526], [527, 527], [528, 528], [529, 529], [530, 530], [531, 531], [532, 532], [533, 533], [534, 534], [535, 535], [536, 536], [537, 537], [538, 538], [539, 539], [540, 540], [541, 541], [542, 542], [543, 543], [544, 544], [545, 545], [546, 546], [547, 547], [548, 548], [549, 549], [550, 550], [551, 551], [552, 552], [553, 553], [554, 554], [555, 555], [556, 556], [557, 557], [558, 558], [559, 559], [560, 560], [561, 561], [562, 562], [563, 563], [564, 564], [565, 565], [566, 566], [567, 567], [568, 568], [569, 569], [570, 570], [571, 571], [572, 572], [573, 573], [574, 574], [575, 575], [576, 576], [577, 577], [578, 578], [579, 579], [580, 580], [581, 581], [582, 582], [583, 583], [584, 584], [585, 585], [586, 586], [587, 587], [588, 588], [589, 589], [590, 590], [591, 591], [592, 592], [593, 593], [594, 594], [595, 595], [596, 596], [597, 597], [598, 598], [599, 599], [600, 600], [601, 601], [602, 602], [603, 603], [604, 604], [605, 605], [606, 606], [607, 607], [608, 608], [609, 609], [610, 610], [611, 611], [612, 612], [613, 613], [614, 614], [615, 615], [616, 616], [617, 617], [618, 618], [619, 619], [620, 620], [621, 621], [622, 622], [623, 623], [624, 624], [625, 625], [626, 626], [627, 627], [628, 628], [629, 629], [630, 630], [631, 631], [632, 632], [633, 633], [634, 634], [635, 635], [636, 636], [637, 637], [638, 638], [639, 639], [640, 640], [641, 641], [642, 642], [643, 643], [644, 644], [645, 645], [646, 646], [647, 647], [648, 648], [649, 649], [650, 650], [651, 651], [652, 652], [653, 653], [654, 654], [655, 655], [656, 656], [657, 657], [658, 658], [659, 659], [660, 660], [661, 661], [662, 662], [663, 663], [664, 664], [665, 665], [666, 666], [667, 667], [668, 668], [669, 669], [670, 670], [671, 671], [672, 672], [673, 673], [674, 674], [675, 675], [676, 676], [677, 677], [678, 678], [679, 679], [680, 680], [681, 681], [682, 682], [683, 683], [684, 684], [685, 685], [686, 686], [687, 687], [688, 688], [689, 689], [690, 690], [691, 691], [692, 692], [693, 693], [694, 694], [695, 695], [696, 696], [697, 697], [698, 698], [699, 699], [700, 700], [701, 701], [702, 702], [703, 703], [704, 704], [705, 705], [706, 706], [707, 707], [708, 708], [709, 709], [710, 710], [711, 711], [712, 712], [713, 713], [714, 714], [715, 715], [716, 716], [717, 717], [718, 718], [719, 719], [720, 720], [721, 721], [722, 722], [723, 723], [724, 724], [725, 725], [726, 726], [727, 727], [728, 728], [729, 729], [730, 730], [731, 731], [732, 732], [733, 733], [734, 734], [735, 735], [736, 736], [737, 737], [738, 738], [739, 739], [740, 740], [741, 741], [742, 742], [743, 743], [744, 744], [745, 745], [746, 746], [747, 747], [748, 748], [749, 749], [750, 750], [751, 751], [752, 752], [753, 753], [754, 754], [755, 755], [756, 756], [757, 757], [758, 758], [759, 759], [760, 760], [761, 761], [762, 762], [763, 763], [764, 764], [765, 765], [766, 766], [767, 767], [768, 768], [769, 769], [770, 770], [771, 771], [772, 772], [773, 773], [774, 774], [775, 775], [776, 776], [777, 777], [778, 778], [779, 779], [780, 780], [781, 781], [782, 782], [783, 783], [784, 784], [785, 785]]}, {"function_name": "getCharUnit", "code": "  private static int getCharUnit(char[] input, int index, CharUnit unit) throws REException {\n    unit.ch = input[index++];\n    if (unit.bk = (unit.ch == '\\\\'))\n      if (index < input.length)\n\tunit.ch = input[index++];\n      else throw new REException(getLocalizedMessage(\"ends.with.backslash\"),REException.REG_ESCAPE,index);\n    return index;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "IF", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [0, 8], [6, 9], [6, 10], [7, 11], [9, 12], [6, 13], [11, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 0], [9, 6], [10, 6], [11, 7], [12, 9], [13, 6], [14, 11], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isMatch", "code": "  public boolean isMatch(Object input) {\n    return isMatch(input,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isMatch", "code": "  public boolean isMatch(Object input,int index) {\n    return isMatch(input,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isMatch", "code": "  public boolean isMatch(Object input,int index,int eflags) {\n    return isMatchImpl(makeCharIndexed(input,index),index,eflags);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isMatchImpl", "code": "  private boolean isMatchImpl(CharIndexed input, int index, int eflags) {\n    if (firstToken == null)  // Trivial case\n      return (input.charAt(0) == CharIndexed.OUT_OF_BOUNDS);\n    REMatch m = new REMatch(numSubs, index, eflags);\n    if (firstToken.match(input, m)) {\n\twhile (m != null) {\n\t    if (input.charAt(m.index) == CharIndexed.OUT_OF_BOUNDS) {\n\t\treturn true;\n\t    }\n\t    m = m.next;\n\t}\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LOOP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [4, 11], [2, 12], [3, 13], [10, 14], [11, 15], [12, 16], [14, 17], [12, 18], [16, 19], [17, 20], [12, 21], [18, 22], [18, 23], [22, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 4], [12, 2], [13, 3], [14, 10], [15, 11], [16, 12], [17, 14], [18, 12], [19, 16], [20, 17], [21, 12], [22, 18], [23, 18], [24, 22], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getNumSubs", "code": "  public int getNumSubs() {\n    return numSubs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUncle", "code": "  void setUncle(REToken uncle) {\n      if (lastToken != null) {\n\t  lastToken.setUncle(uncle);\n      } else super.setUncle(uncle); // to deal with empty subexpressions", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "chain", "code": "  boolean chain(REToken next) {\n    super.chain(next);\n    setUncle(next);\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 0], [2, 0], [3, 1], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getMinimumLength", "code": "  public int getMinimumLength() {\n      return minimumLength;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAllMatches", "code": "  public REMatch[] getAllMatches(Object input) {\n    return getAllMatches(input,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getAllMatches", "code": "  public REMatch[] getAllMatches(Object input, int index) {\n    return getAllMatches(input,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getAllMatches", "code": "  public REMatch[] getAllMatches(Object input, int index, int eflags) {\n    return getAllMatchesImpl(makeCharIndexed(input,index),index,eflags);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getAllMatchesImpl", "code": "  private REMatch[] getAllMatchesImpl(CharIndexed input, int index, int eflags) {\n    Vector all = new Vector();\n    REMatch m = null;\n    while ((m = getMatchImpl(input,index,eflags,null)) != null) {\n      all.addElement(m);\n      index = m.getEndIndex();\n      if (m.end[0] == 0) {   // handle pathological case of zero-length match\n\tindex++;\n\tinput.move(1);\n      } else {\n\tinput.move(m.end[0]);\n      }\n      if (!input.isValid()) break;\n    }\n    REMatch[] mset = new REMatch[all.size()];\n    all.copyInto(mset);\n    return mset;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [3, 11], [3, 12], [10, 13], [10, 14], [4, 15], [5, 16], [2, 17], [11, 18], [11, 19], [12, 20], [3, 21], [3, 22], [14, 23], [20, 24], [21, 25], [23, 26], [12, 27], [12, 28], [28, 29], [20, 30], [27, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 3], [12, 3], [13, 10], [14, 10], [15, 4], [16, 5], [17, 2], [18, 11], [19, 11], [20, 12], [21, 3], [22, 3], [23, 14], [24, 20], [25, 21], [26, 23], [27, 12], [28, 12], [29, 28], [30, 20], [31, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) { \n\tif (firstToken == null) return next(input, mymatch);\n\n\t// Note the start of this subexpression\n\tmymatch.start[subIndex] = mymatch.index;\n\n\treturn firstToken.match(input, mymatch);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [2, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 2], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getMatch", "code": "  public REMatch getMatch(Object input) {\n    return getMatch(input,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMatch", "code": "  public REMatch getMatch(Object input, int index) {\n    return getMatch(input,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMatch", "code": "  public REMatch getMatch(Object input, int index, int eflags) {\n    return getMatch(input,index,eflags,null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getMatch", "code": "  public REMatch getMatch(Object input, int index, int eflags, StringBuffer buffer) {\n    return getMatchImpl(makeCharIndexed(input,index),index,eflags,buffer);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getMatchImpl", "code": "  REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) {\n      // Create a new REMatch to hold results\n      REMatch mymatch = new REMatch(numSubs, anchor, eflags);\n      do {\n\t  // Optimization: check if anchor + minimumLength > length\n\t  if (minimumLength == 0 || input.charAt(minimumLength-1) != CharIndexed.OUT_OF_BOUNDS) {\n\t      if (match(input, mymatch)) {\n\t\t  // Find longest match of them all to observe leftmost longest\n\t\t  REMatch longest = mymatch;\n\t\t  while ((mymatch = mymatch.next) != null) {\n\t\t      if (mymatch.index > longest.index) {\n\t\t\t  longest = mymatch;\n\t\t      }\n\t\t  }\n\t\t  \n\t\t  longest.end[0] = longest.index;\n\t\t  longest.finish(input);\n\t\t  return longest;\n\t      }\n\t  }\n\t  mymatch.clear(++anchor);\n\t  // Append character to buffer if needed\n\t  if (buffer != null && input.charAt(0) != CharIndexed.OUT_OF_BOUNDS) {\n\t      buffer.append(input.charAt(0));\n\t  }\n      } while (input.move(1));\n      \n      // Special handling at end of input for e.g. \"$\"\n      if (minimumLength == 0) {\n\t  if (match(input, mymatch)) {\n\t      mymatch.finish(input);\n\t      return mymatch;\n\t  }\n      }\n\n      return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [2, 12], [10, 13], [3, 14], [3, 15], [11, 16], [4, 17], [12, 18], [14, 19], [3, 20], [15, 21], [12, 22], [19, 23], [19, 24], [15, 25], [21, 26], [21, 27], [12, 28], [14, 29], [23, 30], [24, 31], [25, 32], [26, 33], [27, 34], [29, 35], [30, 36], [25, 37], [25, 38], [25, 39], [33, 40], [35, 41], [25, 42], [25, 43], [38, 44], [40, 45], [38, 46], [44, 47], [44, 48], [46, 49], [43, 50], [46, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 2], [13, 10], [14, 3], [15, 3], [16, 11], [17, 4], [18, 12], [19, 14], [20, 3], [21, 15], [22, 12], [23, 19], [24, 19], [25, 15], [26, 21], [27, 21], [28, 12], [29, 14], [30, 23], [31, 24], [32, 25], [33, 26], [34, 27], [35, 29], [36, 30], [37, 25], [38, 25], [39, 25], [40, 33], [41, 35], [42, 25], [43, 25], [44, 38], [45, 40], [46, 38], [47, 44], [48, 44], [49, 46], [50, 43], [51, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "getMatchEnumeration", "code": "  public REMatchEnumeration getMatchEnumeration(Object input) {\n    return getMatchEnumeration(input,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMatchEnumeration", "code": "  public REMatchEnumeration getMatchEnumeration(Object input, int index) {\n    return getMatchEnumeration(input,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMatchEnumeration", "code": "  public REMatchEnumeration getMatchEnumeration(Object input, int index, int eflags) {\n    return new REMatchEnumeration(this,makeCharIndexed(input,index),index,eflags);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "substitute", "code": "  public String substitute(Object input,String replace) {\n    return substitute(input,replace,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "substitute", "code": "  public String substitute(Object input,String replace,int index) {\n    return substitute(input,replace,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "substitute", "code": "  public String substitute(Object input,String replace,int index,int eflags) {\n    return substituteImpl(makeCharIndexed(input,index),replace,index,eflags);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "substituteImpl", "code": "  private String substituteImpl(CharIndexed input,String replace,int index,int eflags) {\n    StringBuffer buffer = new StringBuffer();\n    REMatch m = getMatchImpl(input,index,eflags,buffer);\n    if (m==null) return buffer.toString();\n    buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ?\n\t\t   replace : m.substituteInto(replace) );\n    if (input.move(m.end[0])) {\n      do {\n\tbuffer.append(input.charAt(0));\n      } while (input.move(1));\n    }\n    return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "LOOP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [0, 12], [3, 13], [3, 14], [2, 15], [12, 16], [13, 17], [14, 18], [4, 19], [5, 20], [15, 21], [16, 22], [16, 23], [21, 24], [11, 25], [23, 26], [23, 27], [15, 28], [28, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 0], [13, 3], [14, 3], [15, 2], [16, 12], [17, 13], [18, 14], [19, 4], [20, 5], [21, 15], [22, 16], [23, 16], [24, 21], [25, 11], [26, 23], [27, 23], [28, 15], [29, 28], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "substituteAll", "code": "  public String substituteAll(Object input,String replace) {\n    return substituteAll(input,replace,0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "substituteAll", "code": "  public String substituteAll(Object input,String replace,int index) {\n    return substituteAll(input,replace,index,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "substituteAll", "code": "  public String substituteAll(Object input,String replace,int index,int eflags) {\n    return substituteAllImpl(makeCharIndexed(input,index),replace,index,eflags);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "substituteAllImpl", "code": "  private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) {\n    StringBuffer buffer = new StringBuffer();\n    REMatch m;\n    while ((m = getMatchImpl(input,index,eflags,buffer)) != null) {\n\tbuffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ?\n\t\t       replace : m.substituteInto(replace) );\n      index = m.getEndIndex();\n      if (m.end[0] == 0) {\n\tchar ch = input.charAt(0);\n\tif (ch != CharIndexed.OUT_OF_BOUNDS) \n\t    buffer.append(ch);\n\tinput.move(1);\n      } else {\n\t  input.move(m.end[0]);\n      }\n\n      if (!input.isValid()) break;\n    }\n    return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [2, 12], [10, 13], [10, 14], [4, 15], [11, 16], [11, 17], [12, 18], [2, 19], [2, 20], [14, 21], [12, 22], [12, 23], [18, 24], [19, 25], [20, 26], [12, 27], [12, 28], [22, 29], [26, 30], [26, 31], [28, 32], [22, 33], [23, 34], [18, 35], [31, 36], [31, 37], [34, 38], [27, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 2], [13, 10], [14, 10], [15, 4], [16, 11], [17, 11], [18, 12], [19, 2], [20, 2], [21, 14], [22, 12], [23, 12], [24, 18], [25, 19], [26, 20], [27, 12], [28, 12], [29, 22], [30, 26], [31, 26], [32, 28], [33, 22], [34, 23], [35, 18], [36, 31], [37, 31], [38, 34], [39, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "addToken", "code": "  private void addToken(REToken next) {\n    if (next == null) return;\n    minimumLength += next.getMinimumLength();\n    if (firstToken == null) {\n\tlastToken = firstToken = next;\n    } else {\n      // if chain returns false, it \"rejected\" the token due to\n      // an optimization, and next was combined with lastToken\n      if (lastToken.chain(next)) {\n\t  lastToken = next;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [2, 7], [1, 8], [4, 9], [5, 10], [7, 11], [8, 12], [1, 13], [13, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 2], [8, 1], [9, 4], [10, 5], [11, 7], [12, 8], [13, 1], [14, 13], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setRepeated", "code": "  private static REToken setRepeated(REToken current, int min, int max, int index) throws REException {\n    if (current == null) throw new REException(getLocalizedMessage(\"repeat.no.token\"),REException.REG_BADRPT,index);\n    return new RETokenRepeated(current.subIndex,current,min,max);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [8, 10], [9, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 8], [11, 9], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getPosixSet", "code": "  private static int getPosixSet(char[] pattern,int index,StringBuffer buf) {\n    // Precondition: pattern[index-1] == ':'\n    // we will return pos of closing ']'.\n    int i;\n    for (i=index; i<(pattern.length-1); i++) {\n      if ((pattern[i] == ':') && (pattern[i+1] == ']'))\n\treturn i+2;\n      buf.append(pattern[i]);\n    }\n    return index; // didn't match up", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [2, 11], [9, 12], [9, 13], [10, 14], [12, 15], [13, 16], [13, 17], [15, 18], [16, 19], [17, 20], [16, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 2], [12, 9], [13, 9], [14, 10], [15, 12], [16, 13], [17, 13], [18, 15], [19, 16], [20, 17], [21, 16], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getMinMax", "code": "  private int getMinMax(char[] input,int index,IntPair minMax,RESyntax syntax) throws REException {\n    // Precondition: input[index-1] == '{', minMax != null\n\n    boolean mustMatch = !syntax.get(RESyntax.RE_NO_BK_BRACES);\n    int startIndex = index;\n    if (index == input.length) {\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"unmatched.brace\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    }\n    \n    int min,max=0;\n    CharUnit unit = new CharUnit();\n    StringBuffer buf = new StringBuffer();\n    \n    // Read string of digits\n    do {\n      index = getCharUnit(input,index,unit);\n      if (Character.isDigit(unit.ch))\n        buf.append(unit.ch);\n    } while ((index != input.length) && Character.isDigit(unit.ch));\n\n    // Check for {} tomfoolery\n    if (buf.length() == 0) {\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    }\n\n    min = Integer.parseInt(buf.toString());\n\t\n    if ((unit.ch == '}') && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk))\n      max = min;\n    else if (index == input.length)\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.no.end\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n    else if ((unit.ch == ',') && !unit.bk) {\n      buf = new StringBuffer();\n      // Read string of digits\n      while (((index = getCharUnit(input,index,unit)) != input.length) && Character.isDigit(unit.ch))\n\tbuf.append(unit.ch);\n\n      if (!((unit.ch == '}') && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk)))\n        if (mustMatch)\n          throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n        else\n          return startIndex;\n\n      // This is the case of {x,}\n      if (buf.length() == 0) max = Integer.MAX_VALUE;\n      else max = Integer.parseInt(buf.toString());\n    } else\n      if (mustMatch)\n        throw new REException(getLocalizedMessage(\"interval.error\"),REException.REG_EBRACE,index);\n      else\n        return startIndex;\n\n    // We know min and max now, and they are valid.\n\n    minMax.first = min;\n    minMax.second = max;\n\n    // return the index following the '}'\n    return index;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "IF", "BINARY_OP", "RETURN", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "THROW_RAISE", "CALL", "ASSIGN", "RETURN", "THROW_RAISE", "RETURN", "THROW_RAISE", "IF", "IF", "LOOP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [2, 17], [2, 18], [0, 19], [3, 20], [4, 21], [8, 22], [17, 23], [17, 24], [17, 25], [2, 26], [18, 27], [18, 28], [19, 29], [3, 30], [20, 31], [20, 32], [4, 33], [21, 34], [21, 35], [5, 36], [6, 37], [7, 38], [8, 39], [10, 40], [23, 41], [23, 42], [24, 43], [24, 44], [27, 45], [28, 46], [29, 47], [30, 48], [30, 49], [33, 50], [4, 51], [39, 52], [39, 53], [41, 54], [41, 55], [23, 56], [23, 57], [23, 58], [42, 59], [44, 60], [49, 61], [33, 62], [51, 63], [53, 64], [55, 65], [56, 66], [57, 67], [57, 68], [58, 69], [23, 70], [59, 71], [60, 72], [61, 73], [64, 74], [65, 75], [56, 76], [56, 77], [66, 78], [66, 79], [67, 80], [67, 81], [68, 82], [68, 83], [58, 84], [69, 85], [69, 86], [70, 87], [72, 88], [73, 89], [74, 90], [75, 91], [76, 92], [81, 93], [82, 94], [83, 95], [86, 96], [92, 97], [93, 98], [96, 99], [98, 100], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 2], [18, 2], [19, 0], [20, 3], [21, 4], [22, 8], [23, 17], [24, 17], [25, 17], [26, 2], [27, 18], [28, 18], [29, 19], [30, 3], [31, 20], [32, 20], [33, 4], [34, 21], [35, 21], [36, 5], [37, 6], [38, 7], [39, 8], [40, 10], [41, 23], [42, 23], [43, 24], [44, 24], [45, 27], [46, 28], [47, 29], [48, 30], [49, 30], [50, 33], [51, 4], [52, 39], [53, 39], [54, 41], [55, 41], [56, 23], [57, 23], [58, 23], [59, 42], [60, 44], [61, 49], [62, 33], [63, 51], [64, 53], [65, 55], [66, 56], [67, 57], [68, 57], [69, 58], [70, 23], [71, 59], [72, 60], [73, 61], [74, 64], [75, 65], [76, 56], [77, 56], [78, 66], [79, 66], [80, 67], [81, 67], [82, 68], [83, 68], [84, 58], [85, 69], [86, 69], [87, 70], [88, 72], [89, 73], [90, 74], [91, 75], [92, 76], [93, 81], [94, 82], [95, 83], [96, 86], [97, 92], [98, 93], [99, 96], [100, 98], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100]]}, {"function_name": "toString", "code": "   public String toString() {\n     StringBuffer sb = new StringBuffer();\n     dump(sb);\n     return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "dump", "code": "  void dump(StringBuffer os) {\n    os.append('(');\n    if (subIndex == 0)\n      os.append(\"?:\");\n    if (firstToken != null)\n      firstToken.dumpAll(os);\n    os.append(')');", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [4, 8], [1, 9], [5, 10], [2, 11], [6, 12], [7, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 4], [9, 1], [10, 5], [11, 2], [12, 6], [13, 7], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "makeCharIndexed", "code": "  private static CharIndexed makeCharIndexed(Object input, int index) {\n      // We could let a String fall through to final input, but since\n      // it's the most likely input type, we check it first.\n    if (input instanceof String)\n      return new CharIndexedString((String) input,index);\n    else if (input instanceof char[])\n      return new CharIndexedCharArray((char[]) input,index);\n    else if (input instanceof StringBuffer)\n      return new CharIndexedStringBuffer((StringBuffer) input,index);\n    else if (input instanceof InputStream)\n      return new CharIndexedInputStream((InputStream) input,index);\n    else if (input instanceof Reader)\n\treturn new CharIndexedReader((Reader) input, index);\n    else if (input instanceof CharIndexed)\n\treturn (CharIndexed) input; // do we lose index info?\n    else \n\treturn new CharIndexedString(input.toString(), index);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [5, 10], [7, 11], [7, 12], [7, 13], [8, 14], [11, 15], [11, 16], [11, 17], [12, 18], [15, 19], [15, 20], [15, 21], [16, 22], [19, 23], [19, 24], [19, 25], [20, 26], [23, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 5], [11, 7], [12, 7], [13, 7], [14, 8], [15, 11], [16, 11], [17, 11], [18, 12], [19, 15], [20, 15], [21, 15], [22, 16], [23, 19], [24, 19], [25, 19], [26, 20], [27, 23], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "RE", "code": "  public RE(Object pattern) throws REException {\n    this(pattern,0,RESyntax.RE_SYNTAX_PERL5,0,0);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RE", "code": "  public RE(Object pattern, int cflags) throws REException {\n    this(pattern,cflags,RESyntax.RE_SYNTAX_PERL5,0,0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RE", "code": "  public RE(Object pattern, int cflags, RESyntax syntax) throws REException {\n    this(pattern,cflags,syntax,0,0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "RE", "code": "  private RE(REToken first, REToken last,int subs, int subIndex, int minLength) {\n    super(subIndex);\n    firstToken = first;\n    lastToken = last;\n    numSubs = subs;\n    minimumLength = minLength;\n    addToken(new RETokenEndSub(subIndex));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "RE", "code": "  private RE(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {\n    super(myIndex); // Subexpression index of this token.\n    initialize(patternObj, cflags, syntax, myIndex, nextSub);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "RE", "code": "    protected RE() { super(0); }", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.5-7232", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/Output.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Output", "code": "final class Output extends TopLevelElement {\n\n\n    private String  _version;\n    private String  _method;\n    private String  _encoding;\n    private boolean _omitHeader = false;\n    private String  _standalone;\n    private String  _doctypePublic;\n    private String  _doctypeSystem;\n    private String  _cdata;\n    private boolean _indent = false;\n    private String  _mediaType;\n    private String  _cdataToMerge;\n\n    private boolean _disabled = false;\n\n    private final static String STRING_SIG = \"Ljava/lang/String;\";\n    private final static String XML_VERSION = \"1.0\";\n    private final static String HTML_VERSION = \"4.0\";\n\n    /**\n     * Displays the contents of this element (for debugging)\n     */\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"Output \" + _method);\n    }\n\n    /**\n     * Disables this <xsl:output> element in case where there are some other\n     * <xsl:output> element (from a different imported/included stylesheet)\n     * with higher precedence.\n     */\n    public void disable() {\n\t_disabled = true;\n    }\n\n    public boolean enabled() {\n\treturn !_disabled;\n    }\n\n    public String getCdata() {\n\treturn _cdata;\n    }\n\n    public void mergeCdata(String cdata) {\n\t_cdataToMerge = cdata;\n    }\n\n    /**\n     * Scans the attribute list for the xsl:output instruction\n     */\n    public void parseContents(Parser parser) {\n\tfinal Properties outputProperties = new Properties();\n\n\tparser.setOutput(this);\n\n\tif (_disabled) return;\n\n\tString attrib = null;\n\n\t_version = getAttribute(\"version\");\n\tif (_version == null || _version.equals(Constants.EMPTYSTRING)) {\n\t    _version = null;\n\t}\n\telse {\n\t    outputProperties.setProperty(OutputKeys.VERSION, _version);\n\t}\n\n\t_method = getAttribute(\"method\");\n\tif (_method.equals(Constants.EMPTYSTRING)) {\n\t    _method = null;\n\t}\n\tif (_method != null) {\n\t    _method = _method.toLowerCase();\n\t    outputProperties.setProperty(OutputKeys.METHOD, _method);\n\t}\n\n\t_encoding = getAttribute(\"encoding\");\n\tif (_encoding.equals(Constants.EMPTYSTRING)) {\n\t    _encoding = null;\n\t}\n\telse {\n\t    try {\n        String canonicalEncoding;\n        canonicalEncoding = Encodings.convertMime2JavaEncoding(_encoding);\n\t\tOutputStreamWriter writer =\n\t\t    new OutputStreamWriter(System.out, canonicalEncoding); \n\t    }\n\t    catch (java.io.UnsupportedEncodingException e) {\n\t\tErrorMsg msg = new ErrorMsg(ErrorMsg.UNSUPPORTED_ENCODING,\n\t\t\t\t\t    _encoding, this);\n\t\tparser.reportError(Constants.WARNING, msg);\n\t    }\n\t    outputProperties.setProperty(OutputKeys.ENCODING, _encoding);\n\t}\n\n\tattrib = getAttribute(\"omit-xml-declaration\");\n\tif (attrib != null && !attrib.equals(Constants.EMPTYSTRING)) {\n\t    if (attrib.equals(\"yes\")) {\n\t\t_omitHeader = true;\n\t    }\n\t    outputProperties.setProperty(OutputKeys.OMIT_XML_DECLARATION, attrib);\n\t}\n\n\t_standalone = getAttribute(\"standalone\");\n\tif (_standalone.equals(Constants.EMPTYSTRING)) {\n\t    _standalone = null;\n\t}\n\telse {\n\t    outputProperties.setProperty(OutputKeys.STANDALONE, _standalone);\n\t}\n\n\t_doctypeSystem = getAttribute(\"doctype-system\");\n\tif (_doctypeSystem.equals(Constants.EMPTYSTRING)) {\n\t    _doctypeSystem = null;\n\t}\n\telse {\n\t    outputProperties.setProperty(OutputKeys.DOCTYPE_SYSTEM, _doctypeSystem);\n\t}\n\n\n\t_doctypePublic = getAttribute(\"doctype-public\");\n\tif (_doctypePublic.equals(Constants.EMPTYSTRING)) {\n\t    _doctypePublic = null;\n\t}\n\telse {\n\t    outputProperties.setProperty(OutputKeys.DOCTYPE_PUBLIC, _doctypePublic);\n\t}\n\n\t_cdata = getAttribute(\"cdata-section-elements\");\n\tif (_cdata != null && _cdata.equals(Constants.EMPTYSTRING)) {\n\t    _cdata = null;\n\t}\n\telse {\n\t    StringBuffer expandedNames = new StringBuffer();\n\t    StringTokenizer tokens = new StringTokenizer(_cdata);\n\n\t    while (tokens.hasMoreTokens()) {\n\t\texpandedNames.append(\n\t\t   parser.getQName(tokens.nextToken()).toString()).append(' ');\n\t    }\n\t    _cdata = expandedNames.toString();\n\t    if (_cdataToMerge != null) {\n\t\t_cdata = _cdata + _cdataToMerge;\n\t    }\n\t    outputProperties.setProperty(OutputKeys.CDATA_SECTION_ELEMENTS, \n\t\t_cdata);\n\t}\n\n\tattrib = getAttribute(\"indent\");\n\tif (attrib != null && !attrib.equals(EMPTYSTRING)) {\n\t    if (attrib.equals(\"yes\")) {\n\t\t_indent = true;\n\t    }\n\t    outputProperties.setProperty(OutputKeys.INDENT, attrib);\n\t}\n\telse if (_method != null && _method.equals(\"html\")) {\n\t    _indent = true;\n\t}\n\n\t_mediaType = getAttribute(\"media-type\");\n\tif (_mediaType.equals(Constants.EMPTYSTRING)) {\n\t    _mediaType = null;\n\t}\n\telse {\n\t    outputProperties.setProperty(OutputKeys.MEDIA_TYPE, _mediaType);\n\t}\n\n\tif (_method != null) {\n\t    if (_method.equals(\"html\")) {\n\t\tif (_version == null) {\n\t\t    _version = HTML_VERSION;\n\t\t}\n\t\tif (_mediaType == null) {\n\t\t    _mediaType = \"text/html\";\n\t\t}\n\t    }\n\t    else if (_method.equals(\"text\")) {\n\t\tif (_mediaType == null) {\n\t\t    _mediaType = \"text/plain\";\n\t\t}\n\t    }\n\t}\n\n\tparser.getCurrentStylesheet().setOutputProperties(outputProperties);\n    }\n\n    /**\n     * Compile code that passes the information in this <xsl:output> element\n     * to the appropriate fields in the translet\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tif (_disabled) return;\n\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\n\tint field = 0;\n        il.append(classGen.loadTranslet());\n\n\tif ((_version != null) && (!_version.equals(XML_VERSION))) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_version\", STRING_SIG);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _version));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_method != null) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_method\", STRING_SIG);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _method));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_encoding != null) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_encoding\", STRING_SIG);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _encoding));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_omitHeader) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_omitHeader\", \"Z\");\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _omitHeader));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_standalone != null) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_standalone\", STRING_SIG);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _standalone));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tfield = cpg.addFieldref(TRANSLET_CLASS,\"_doctypeSystem\",STRING_SIG);\n\til.append(DUP);\n\til.append(new PUSH(cpg, _doctypeSystem));\n\til.append(new PUTFIELD(field));\n\tfield = cpg.addFieldref(TRANSLET_CLASS,\"_doctypePublic\",STRING_SIG);\n\til.append(DUP);\n\til.append(new PUSH(cpg, _doctypePublic));\n\til.append(new PUTFIELD(field));\n\t\n\tif (_mediaType != null) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_mediaType\", STRING_SIG);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _mediaType));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_indent) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_indent\", \"Z\");\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _indent));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_cdata != null) {\n\t    int index = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"addCdataElement\",\n\t\t\t\t\t \"(Ljava/lang/String;)V\");\n\n\t    StringTokenizer tokens = new StringTokenizer(_cdata);\n\t    while (tokens.hasMoreTokens()) {\n\t\til.append(DUP);\n\t\til.append(new PUSH(cpg, tokens.nextToken()));\n\t\til.append(new INVOKEVIRTUAL(index));", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"Output \" + _method);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "disable", "code": "    public void disable() {\n\t_disabled = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "enabled", "code": "    public boolean enabled() {\n\treturn !_disabled;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCdata", "code": "    public String getCdata() {\n\treturn _cdata;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "mergeCdata", "code": "    public void mergeCdata(String cdata) {\n\t_cdataToMerge = cdata;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tfinal Properties outputProperties = new Properties();\n\n\tparser.setOutput(this);\n\n\tif (_disabled) return;\n\n\tString attrib = null;\n\n\t_version = getAttribute(\"version\");\n\tif (_version == null || _version.equals(Constants.EMPTYSTRING)) {\n\t    _version = null;\n\t}\n\telse {\n\t    outputProperties.setProperty(OutputKeys.VERSION, _version);\n\t}\n\n\t_method = getAttribute(\"method\");\n\tif (_method.equals(Constants.EMPTYSTRING)) {\n\t    _method = null;\n\t}\n\tif (_method != null) {\n\t    _method = _method.toLowerCase();\n\t    outputProperties.setProperty(OutputKeys.METHOD, _method);\n\t}\n\n\t_encoding = getAttribute(\"encoding\");\n\tif (_encoding.equals(Constants.EMPTYSTRING)) {\n\t    _encoding = null;\n\t}\n\telse {\n\t    try {\n        String canonicalEncoding;\n        canonicalEncoding = Encodings.convertMime2JavaEncoding(_encoding);\n\t\tOutputStreamWriter writer =\n\t\t    new OutputStreamWriter(System.out, canonicalEncoding); \n\t    }\n\t    catch (java.io.UnsupportedEncodingException e) {\n\t\tErrorMsg msg = new ErrorMsg(ErrorMsg.UNSUPPORTED_ENCODING,\n\t\t\t\t\t    _encoding, this);\n\t\tparser.reportError(Constants.WARNING, msg);\n\t    }\n\t    outputProperties.setProperty(OutputKeys.ENCODING, _encoding);\n\t}\n\n\tattrib = getAttribute(\"omit-xml-declaration\");\n\tif (attrib != null && !attrib.equals(Constants.EMPTYSTRING)) {\n\t    if (attrib.equals(\"yes\")) {\n\t\t_omitHeader = true;\n\t    }\n\t    outputProperties.setProperty(OutputKeys.OMIT_XML_DECLARATION, attrib);\n\t}\n\n\t_standalone = getAttribute(\"standalone\");\n\tif (_standalone.equals(Constants.EMPTYSTRING)) {\n\t    _standalone = null;\n\t}\n\telse {\n\t    outputProperties.setProperty(OutputKeys.STANDALONE, _standalone);\n\t}\n\n\t_doctypeSystem = getAttribute(\"doctype-system\");\n\tif (_doctypeSystem.equals(Constants.EMPTYSTRING)) {\n\t    _doctypeSystem = null;\n\t}\n\telse {\n\t    outputProperties.setProperty(OutputKeys.DOCTYPE_SYSTEM, _doctypeSystem);\n\t}\n\n\n\t_doctypePublic = getAttribute(\"doctype-public\");\n\tif (_doctypePublic.equals(Constants.EMPTYSTRING)) {\n\t    _doctypePublic = null;\n\t}\n\telse {\n\t    outputProperties.setProperty(OutputKeys.DOCTYPE_PUBLIC, _doctypePublic);\n\t}\n\n\t_cdata = getAttribute(\"cdata-section-elements\");\n\tif (_cdata != null && _cdata.equals(Constants.EMPTYSTRING)) {\n\t    _cdata = null;\n\t}\n\telse {\n\t    StringBuffer expandedNames = new StringBuffer();\n\t    StringTokenizer tokens = new StringTokenizer(_cdata);\n\n\t    while (tokens.hasMoreTokens()) {\n\t\texpandedNames.append(\n\t\t   parser.getQName(tokens.nextToken()).toString()).append(' ');\n\t    }\n\t    _cdata = expandedNames.toString();\n\t    if (_cdataToMerge != null) {\n\t\t_cdata = _cdata + _cdataToMerge;\n\t    }\n\t    outputProperties.setProperty(OutputKeys.CDATA_SECTION_ELEMENTS, \n\t\t_cdata);\n\t}\n\n\tattrib = getAttribute(\"indent\");\n\tif (attrib != null && !attrib.equals(EMPTYSTRING)) {\n\t    if (attrib.equals(\"yes\")) {\n\t\t_indent = true;\n\t    }\n\t    outputProperties.setProperty(OutputKeys.INDENT, attrib);\n\t}\n\telse if (_method != null && _method.equals(\"html\")) {\n\t    _indent = true;\n\t}\n\n\t_mediaType = getAttribute(\"media-type\");\n\tif (_mediaType.equals(Constants.EMPTYSTRING)) {\n\t    _mediaType = null;\n\t}\n\telse {\n\t    outputProperties.setProperty(OutputKeys.MEDIA_TYPE, _mediaType);\n\t}\n\n\tif (_method != null) {\n\t    if (_method.equals(\"html\")) {\n\t\tif (_version == null) {\n\t\t    _version = HTML_VERSION;\n\t\t}\n\t\tif (_mediaType == null) {\n\t\t    _mediaType = \"text/html\";\n\t\t}\n\t    }\n\t    else if (_method.equals(\"text\")) {\n\t\tif (_mediaType == null) {\n\t\t    _mediaType = \"text/plain\";\n\t\t}\n\t    }\n\t}\n\n\tparser.getCurrentStylesheet().setOutputProperties(outputProperties);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "RETURN", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "TRY", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [2, 19], [0, 20], [3, 21], [3, 22], [0, 23], [4, 24], [0, 25], [5, 26], [0, 27], [6, 28], [0, 29], [7, 30], [0, 31], [8, 32], [0, 33], [9, 34], [0, 35], [10, 36], [11, 37], [0, 38], [12, 39], [0, 40], [14, 41], [0, 42], [17, 43], [1, 44], [18, 45], [20, 46], [21, 47], [3, 48], [22, 49], [22, 50], [23, 51], [4, 52], [4, 53], [4, 54], [4, 55], [24, 56], [24, 57], [25, 58], [27, 59], [29, 60], [31, 61], [8, 62], [32, 63], [32, 64], [33, 65], [9, 66], [35, 67], [36, 68], [38, 69], [39, 70], [39, 71], [40, 72], [13, 73], [15, 74], [44, 75], [44, 76], [2, 77], [2, 78], [46, 79], [47, 80], [47, 81], [3, 82], [48, 83], [50, 84], [51, 85], [4, 86], [52, 87], [4, 88], [53, 89], [4, 90], [57, 91], [58, 92], [5, 93], [5, 94], [59, 95], [6, 96], [6, 97], [60, 98], [7, 99], [7, 100], [61, 101], [8, 102], [62, 103], [64, 104], [65, 105], [9, 106], [66, 107], [66, 108], [66, 109], [9, 110], [67, 111], [10, 112], [10, 113], [11, 114], [69, 115], [12, 116], [12, 117], [71, 118], [72, 119], [75, 120], [44, 121], [44, 122], [76, 123], [78, 124], [21, 125], [80, 126], [81, 127], [83, 128], [87, 129], [88, 130], [54, 131], [55, 132], [90, 133], [94, 134], [97, 135], [100, 136], [103, 137], [107, 138], [66, 139], [110, 140], [113, 141], [114, 142], [117, 143], [75, 144], [120, 145], [121, 146], [122, 147], [125, 148], [48, 149], [52, 150], [53, 151], [62, 152], [107, 153], [108, 154], [139, 155], [144, 156], [146, 157], [147, 158], [149, 159], [150, 160], [151, 161], [151, 162], [152, 163], [138, 164], [156, 165], [121, 166], [122, 167], [161, 168], [161, 169], [162, 170], [144, 171], [166, 172], [171, 173], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 2], [20, 0], [21, 3], [22, 3], [23, 0], [24, 4], [25, 0], [26, 5], [27, 0], [28, 6], [29, 0], [30, 7], [31, 0], [32, 8], [33, 0], [34, 9], [35, 0], [36, 10], [37, 11], [38, 0], [39, 12], [40, 0], [41, 14], [42, 0], [43, 17], [44, 1], [45, 18], [46, 20], [47, 21], [48, 3], [49, 22], [50, 22], [51, 23], [52, 4], [53, 4], [54, 4], [55, 4], [56, 24], [57, 24], [58, 25], [59, 27], [60, 29], [61, 31], [62, 8], [63, 32], [64, 32], [65, 33], [66, 9], [67, 35], [68, 36], [69, 38], [70, 39], [71, 39], [72, 40], [73, 13], [74, 15], [75, 44], [76, 44], [77, 2], [78, 2], [79, 46], [80, 47], [81, 47], [82, 3], [83, 48], [84, 50], [85, 51], [86, 4], [87, 52], [88, 4], [89, 53], [90, 4], [91, 57], [92, 58], [93, 5], [94, 5], [95, 59], [96, 6], [97, 6], [98, 60], [99, 7], [100, 7], [101, 61], [102, 8], [103, 62], [104, 64], [105, 65], [106, 9], [107, 66], [108, 66], [109, 66], [110, 9], [111, 67], [112, 10], [113, 10], [114, 11], [115, 69], [116, 12], [117, 12], [118, 71], [119, 72], [120, 75], [121, 44], [122, 44], [123, 76], [124, 78], [125, 21], [126, 80], [127, 81], [128, 83], [129, 87], [130, 88], [131, 54], [132, 55], [133, 90], [134, 94], [135, 97], [136, 100], [137, 103], [138, 107], [139, 66], [140, 110], [141, 113], [142, 114], [143, 117], [144, 75], [145, 120], [146, 121], [147, 122], [148, 125], [149, 48], [150, 52], [151, 53], [152, 62], [153, 107], [154, 108], [155, 139], [156, 144], [157, 146], [158, 147], [159, 149], [160, 150], [161, 151], [162, 151], [163, 152], [164, 138], [165, 156], [166, 121], [167, 122], [168, 161], [169, 161], [170, 162], [171, 144], [172, 166], [173, 171], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tif (_disabled) return;\n\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\n\tint field = 0;\n        il.append(classGen.loadTranslet());\n\n\tif ((_version != null) && (!_version.equals(XML_VERSION))) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_version\", STRING_SIG);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _version));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_method != null) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_method\", STRING_SIG);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _method));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_encoding != null) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_encoding\", STRING_SIG);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _encoding));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_omitHeader) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_omitHeader\", \"Z\");\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _omitHeader));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_standalone != null) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_standalone\", STRING_SIG);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _standalone));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tfield = cpg.addFieldref(TRANSLET_CLASS,\"_doctypeSystem\",STRING_SIG);\n\til.append(DUP);\n\til.append(new PUSH(cpg, _doctypeSystem));\n\til.append(new PUTFIELD(field));\n\tfield = cpg.addFieldref(TRANSLET_CLASS,\"_doctypePublic\",STRING_SIG);\n\til.append(DUP);\n\til.append(new PUSH(cpg, _doctypePublic));\n\til.append(new PUTFIELD(field));\n\t\n\tif (_mediaType != null) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_mediaType\", STRING_SIG);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _mediaType));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_indent) {\n\t    field = cpg.addFieldref(TRANSLET_CLASS, \"_indent\", \"Z\");\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _indent));\n\t    il.append(new PUTFIELD(field));\n\t}\n\n\tif (_cdata != null) {\n\t    int index = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"addCdataElement\",\n\t\t\t\t\t \"(Ljava/lang/String;)V\");\n\n\t    StringTokenizer tokens = new StringTokenizer(_cdata);\n\t    while (tokens.hasMoreTokens()) {\n\t\til.append(DUP);\n\t\til.append(new PUSH(cpg, tokens.nextToken()));\n\t\til.append(new INVOKEVIRTUAL(index));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [3, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [4, 25], [6, 26], [7, 27], [8, 28], [0, 29], [12, 30], [1, 31], [1, 32], [1, 33], [15, 34], [16, 35], [17, 36], [18, 37], [20, 38], [21, 39], [22, 40], [24, 41], [25, 42], [26, 43], [27, 44], [28, 45], [28, 46], [29, 47], [9, 48], [10, 49], [11, 50], [31, 51], [2, 52], [2, 53], [2, 54], [2, 55], [3, 56], [3, 57], [3, 58], [3, 59], [38, 60], [41, 61], [4, 62], [4, 63], [4, 64], [4, 65], [5, 66], [5, 67], [5, 68], [5, 69], [6, 70], [6, 71], [6, 72], [6, 73], [7, 74], [7, 75], [7, 76], [7, 77], [8, 78], [8, 79], [8, 80], [8, 81], [46, 82], [32, 83], [33, 84], [52, 85], [53, 86], [55, 87], [56, 88], [57, 89], [59, 90], [62, 91], [63, 92], [65, 93], [66, 94], [67, 95], [69, 96], [70, 97], [71, 98], [73, 99], [74, 100], [75, 101], [77, 102], [78, 103], [79, 104], [81, 105], [31, 106], [31, 107], [31, 108], [84, 109], [84, 110], [87, 111], [87, 112], [90, 113], [93, 114], [96, 115], [96, 116], [99, 117], [102, 118], [105, 119], [106, 120], [107, 121], [121, 122], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 3], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 4], [26, 6], [27, 7], [28, 8], [29, 0], [30, 12], [31, 1], [32, 1], [33, 1], [34, 15], [35, 16], [36, 17], [37, 18], [38, 20], [39, 21], [40, 22], [41, 24], [42, 25], [43, 26], [44, 27], [45, 28], [46, 28], [47, 29], [48, 9], [49, 10], [50, 11], [51, 31], [52, 2], [53, 2], [54, 2], [55, 2], [56, 3], [57, 3], [58, 3], [59, 3], [60, 38], [61, 41], [62, 4], [63, 4], [64, 4], [65, 4], [66, 5], [67, 5], [68, 5], [69, 5], [70, 6], [71, 6], [72, 6], [73, 6], [74, 7], [75, 7], [76, 7], [77, 7], [78, 8], [79, 8], [80, 8], [81, 8], [82, 46], [83, 32], [84, 33], [85, 52], [86, 53], [87, 55], [88, 56], [89, 57], [90, 59], [91, 62], [92, 63], [93, 65], [94, 66], [95, 67], [96, 69], [97, 70], [98, 71], [99, 73], [100, 74], [101, 75], [102, 77], [103, 78], [104, 79], [105, 81], [106, 31], [107, 31], [108, 31], [109, 84], [110, 84], [111, 87], [112, 87], [113, 90], [114, 93], [115, 96], [116, 96], [117, 99], [118, 102], [119, 105], [120, 106], [121, 107], [122, 121], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122]]}], "label": 1}
{"sample_id": "ant-1.7-996", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/Rename.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Rename", "code": "public class Rename extends Task {\n\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n\n    private File src;\n    private File dest;\n    private boolean replace = true;\n\n\n    /**\n     * Sets the file to be renamed.\n     * @param src the file to rename\n     */\n    public void setSrc(File src) {\n        this.src = src;\n    }\n\n    /**\n     * Sets the new name of the file.\n     * @param dest the new name of the file.\n     */\n    public void setDest(File dest) {\n        this.dest = dest;\n    }\n\n    /**\n     * Sets whether an existing file should be replaced.\n     * @param replace <code>on</code>, if an existing file should be replaced.\n     */\n    public void setReplace(String replace) {\n        this.replace = Project.toBoolean(replace);\n    }\n\n\n    /**\n     * Renames the file <code>src</code> to <code>dest</code>\n     * @exception org.apache.tools.ant.BuildException The exception is\n     * thrown, if the rename operation fails.\n     */\n    public void execute() throws BuildException {\n        log(\"DEPRECATED - The rename task is deprecated.  Use move instead.\");\n\n        if (dest == null) {\n            throw new BuildException(\"dest attribute is required\", getLocation());\n        }\n\n        if (src == null) {\n            throw new BuildException(\"src attribute is required\", getLocation());\n        }\n\n        if (!replace && dest.exists()) {\n            throw new BuildException(dest + \" already exists.\");\n        }\n\n        try {\n            FILE_UTILS.rename(src, dest);\n        } catch (IOException e) {\n            throw new BuildException(\"Unable to rename \" + src + \" to \"\n                + dest, e, getLocation());", "functions": [{"function_name": "setSrc", "code": "    public void setSrc(File src) {\n        this.src = src;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDest", "code": "    public void setDest(File dest) {\n        this.dest = dest;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setReplace", "code": "    public void setReplace(String replace) {\n        this.replace = Project.toBoolean(replace);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        log(\"DEPRECATED - The rename task is deprecated.  Use move instead.\");\n\n        if (dest == null) {\n            throw new BuildException(\"dest attribute is required\", getLocation());\n        }\n\n        if (src == null) {\n            throw new BuildException(\"src attribute is required\", getLocation());\n        }\n\n        if (!replace && dest.exists()) {\n            throw new BuildException(dest + \" already exists.\");\n        }\n\n        try {\n            FILE_UTILS.rename(src, dest);\n        } catch (IOException e) {\n            throw new BuildException(\"Unable to rename \" + src + \" to \"\n                + dest, e, getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "IF", "CATCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "THROW_RAISE", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [0, 9], [5, 10], [1, 11], [2, 12], [6, 13], [3, 14], [7, 15], [4, 16], [8, 17], [9, 18], [10, 19], [12, 20], [14, 21], [16, 22], [19, 23], [19, 24], [20, 25], [21, 26], [21, 27], [22, 28], [22, 29], [24, 30], [25, 31], [30, 32], [30, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 0], [10, 5], [11, 1], [12, 2], [13, 6], [14, 3], [15, 7], [16, 4], [17, 8], [18, 9], [19, 10], [20, 12], [21, 14], [22, 16], [23, 19], [24, 19], [25, 20], [26, 21], [27, 21], [28, 22], [29, 22], [30, 24], [31, 25], [32, 30], [33, 30], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}], "label": 0}
{"sample_id": "jedit-4.1-4044", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/ErrorListDialog.java", "language": "java", "name": "org.gjt.sp.jedit.gui.ErrorListDialog", "code": "public class ErrorListDialog extends EnhancedDialog\n{\n\t//{{{ ErrorEntry class\n\tpublic static class ErrorEntry\n\t{\n\t\tString path;\n\t\tString[] messages;\n\n\t\tpublic ErrorEntry(String path, String messageProp, Object[] args)\n\t\t{\n\t\t\tthis.path = path;\n\n\t\t\tString message = jEdit.getProperty(messageProp,args);\n\t\t\tif(message == null)\n\t\t\t\tmessage = \"Undefined property: \" + messageProp;\n\n\t\t\tLog.log(Log.ERROR,this,path + \":\");\n\t\t\tLog.log(Log.ERROR,this,message);\n\n\t\t\tVector tokenizedMessage = new Vector();\n\t\t\tint lastIndex = -1;\n\t\t\tfor(int i = 0; i < message.length(); i++)\n\t\t\t{\n\t\t\t\tif(message.charAt(i) == '\\n')\n\t\t\t\t{\n\t\t\t\t\ttokenizedMessage.addElement(message.substring(\n\t\t\t\t\t\tlastIndex + 1,i));\n\t\t\t\t\tlastIndex = i;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(lastIndex != message.length())\n\t\t\t{\n\t\t\t\ttokenizedMessage.addElement(message.substring(\n\t\t\t\t\tlastIndex + 1));\n\t\t\t}\n\n\t\t\tmessages = new String[tokenizedMessage.size()];\n\t\t\ttokenizedMessage.copyInto(messages);\n\t\t}\n\t} //}}}\n\n\t//{{{ ErrorListDialog constructor\n\tpublic ErrorListDialog(Frame frame, String title, String caption,\n\t\tVector messages, boolean showPluginMgrButton)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tBox iconBox = new Box(BoxLayout.Y_AXIS);\n\t\ticonBox.add(new JLabel(UIManager.getIcon(\"OptionPane.errorIcon\")));\n\t\ticonBox.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.WEST,iconBox);\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout());\n\n\t\tJLabel label = new JLabel(caption);\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,0));\n\t\tcenterPanel.add(BorderLayout.NORTH,label);\n\n\t\tJList errors = new JList(messages);\n\t\terrors.setCellRenderer(new ErrorListCellRenderer());\n\t\terrors.setVisibleRowCount(Math.min(messages.size(),4));\n\n\t\t// need this bullshit scroll bar policy for the preferred size\n\t\t// hack to work\n\t\tJScrollPane scrollPane = new JScrollPane(errors,\n\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tDimension size = scrollPane.getPreferredSize();\n\t\tsize.width = Math.min(size.width,400);\n\t\tscrollPane.setPreferredSize(size);\n\n\t\tcenterPanel.add(BorderLayout.CENTER,scrollPane);\n\n\t\tcontent.add(BorderLayout.CENTER,centerPanel);\n\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\t\tbuttons.add(Box.createGlue());\n\n\t\tok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(new ActionHandler());\n\n\t\tif(showPluginMgrButton)\n\t\t{\n\t\t\tpluginMgr = new JButton(jEdit.getProperty(\"error-list.plugin-manager\"));\n\t\t\tpluginMgr.addActionListener(new ActionHandler());\n\t\t\tbuttons.add(pluginMgr);\n\t\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\t}\n\n\t\tbuttons.add(ok);\n\n\t\tbuttons.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(frame);\n\t\tshow();\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate JButton ok, pluginMgr;\n\t//}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\t//{{{ actionPerformed() method\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == ok)\n\t\t\t\tdispose();\n\t\t\telse if(evt.getSource() == pluginMgr)\n\t\t\t{\n\t\t\t\tnew org.gjt.sp.jedit.pluginmgr.PluginManager(\n\t\t\t\t\tJOptionPane.getFrameForComponent(\n\t\t\t\t\tErrorListDialog.this));", "functions": [{"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ErrorListDialog", "code": "\tpublic ErrorListDialog(Frame frame, String title, String caption,\n\t\tVector messages, boolean showPluginMgrButton)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tBox iconBox = new Box(BoxLayout.Y_AXIS);\n\t\ticonBox.add(new JLabel(UIManager.getIcon(\"OptionPane.errorIcon\")));\n\t\ticonBox.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.WEST,iconBox);\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout());\n\n\t\tJLabel label = new JLabel(caption);\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,0));\n\t\tcenterPanel.add(BorderLayout.NORTH,label);\n\n\t\tJList errors = new JList(messages);\n\t\terrors.setCellRenderer(new ErrorListCellRenderer());\n\t\terrors.setVisibleRowCount(Math.min(messages.size(),4));\n\n\t\t// need this bullshit scroll bar policy for the preferred size\n\t\t// hack to work\n\t\tJScrollPane scrollPane = new JScrollPane(errors,\n\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tDimension size = scrollPane.getPreferredSize();\n\t\tsize.width = Math.min(size.width,400);\n\t\tscrollPane.setPreferredSize(size);\n\n\t\tcenterPanel.add(BorderLayout.CENTER,scrollPane);\n\n\t\tcontent.add(BorderLayout.CENTER,centerPanel);\n\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\t\tbuttons.add(Box.createGlue());\n\n\t\tok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(new ActionHandler());\n\n\t\tif(showPluginMgrButton)\n\t\t{\n\t\t\tpluginMgr = new JButton(jEdit.getProperty(\"error-list.plugin-manager\"));\n\t\t\tpluginMgr.addActionListener(new ActionHandler());\n\t\t\tbuttons.add(pluginMgr);\n\t\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\t}\n\n\t\tbuttons.add(ok);\n\n\t\tbuttons.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(frame);\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [18, 39], [20, 40], [22, 41], [23, 42], [24, 43], [2, 44], [28, 45], [3, 46], [4, 47], [29, 48], [30, 49], [5, 50], [32, 51], [6, 52], [7, 53], [34, 54], [35, 55], [8, 56], [37, 57], [9, 58], [1, 59], [1, 60], [1, 61], [1, 62], [42, 63], [45, 64], [48, 65], [48, 66], [51, 67], [51, 68], [51, 69], [51, 70], [53, 71], [55, 72], [57, 73], [57, 74], [57, 75], [57, 76], [58, 77], [59, 78], [61, 79], [62, 80], [63, 81], [72, 82], [77, 83], [77, 84], [78, 85], [80, 86], [86, 87], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 18], [40, 20], [41, 22], [42, 23], [43, 24], [44, 2], [45, 28], [46, 3], [47, 4], [48, 29], [49, 30], [50, 5], [51, 32], [52, 6], [53, 7], [54, 34], [55, 35], [56, 8], [57, 37], [58, 9], [59, 1], [60, 1], [61, 1], [62, 1], [63, 42], [64, 45], [65, 48], [66, 48], [67, 51], [68, 51], [69, 51], [70, 51], [71, 53], [72, 55], [73, 57], [74, 57], [75, 57], [76, 57], [77, 58], [78, 59], [79, 61], [80, 62], [81, 63], [82, 72], [83, 77], [84, 77], [85, 78], [86, 80], [87, 86], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}], "label": 0}
{"sample_id": "poi-3.0-6250", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/poifs/filesystem/POIFSWriterEvent.java", "language": "java", "name": "org.apache.poi.poifs.filesystem.POIFSWriterEvent", "code": "public class POIFSWriterEvent\n{\n    private DocumentOutputStream stream;\n    private POIFSDocumentPath    path;\n    private String               documentName;\n    private int                  limit;\n\n    /**\n     * package scoped constructor\n     *\n     * @param stream the DocumentOutputStream, freshly opened\n     * @param path the path of the document\n     * @param documentName the name of the document\n     * @param limit the limit, in bytes, that can be written to the\n     *              stream\n     */\n\n    POIFSWriterEvent(final DocumentOutputStream stream,\n                     final POIFSDocumentPath path, final String documentName,\n                     final int limit)\n    {\n        this.stream       = stream;\n        this.path         = path;\n        this.documentName = documentName;\n        this.limit        = limit;\n    }\n\n    /**\n     * @return the DocumentOutputStream, freshly opened\n     */\n\n    public DocumentOutputStream getStream()\n    {\n        return stream;\n    }\n\n    /**\n     * @return the document's path\n     */\n\n    public POIFSDocumentPath getPath()\n    {\n        return path;\n    }\n\n    /**\n     * @return the document's name\n     */\n\n    public String getName()\n    {\n        return documentName;\n    }\n\n    /**\n     * @return the limit on writing, in bytes\n     */\n\n    public int getLimit()\n    {\n        return limit;", "functions": [{"function_name": "getStream", "code": "    public DocumentOutputStream getStream()\n    {\n        return stream;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPath", "code": "    public POIFSDocumentPath getPath()\n    {\n        return path;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "    public String getName()\n    {\n        return documentName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLimit", "code": "    public int getLimit()\n    {\n        return limit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "POIFSWriterEvent", "code": "    POIFSWriterEvent(final DocumentOutputStream stream,\n                     final POIFSDocumentPath path, final String documentName,\n                     final int limit)\n    {\n        this.stream       = stream;\n        this.path         = path;\n        this.documentName = documentName;\n        this.limit        = limit;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.6-7918", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/lib/sql/SecuritySupport12.java", "language": "java", "name": "org.apache.xalan.lib.sql.SecuritySupport12", "code": "class SecuritySupport12 extends SecuritySupport {\n\n    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;\n            }\n        });\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;\n                }\n            });\n    }\n\n    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;\n                }\n            });\n    }\n\n    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);\n                }\n            });\n    }\n\n    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();\n        }\n    }\n\n    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;\n                }\n            });\n    }\n    \n    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());\n                }\n            })).booleanValue();\n    }\n    \n    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "functions": [{"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "COND_EXPR", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [7, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 7], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [8, 10], [10, 11], [8, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 8], [11, 10], [12, 8], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLastModified", "code": "    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.7-8312", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/PrefixResolverDefault.java", "language": "java", "name": "org.apache.xml.utils.PrefixResolverDefault", "code": "public class PrefixResolverDefault implements PrefixResolver\n{\n\n  /**\n   * The context to resolve the prefix from, if the context\n   * is not given.\n   */\n  Node m_context;\n\n  /**\n   * Construct a PrefixResolverDefault object.\n   * @param xpathExpressionContext The context from\n   * which XPath expression prefixes will be resolved.\n   * Warning: This will not work correctly if xpathExpressionContext\n   * is an attribute node.\n   */\n  public PrefixResolverDefault(Node xpathExpressionContext)\n  {\n    m_context = xpathExpressionContext;\n  }\n\n  /**\n   * Given a namespace, get the corrisponding prefix.  This assumes that\n   * the PrevixResolver hold's it's own namespace context, or is a namespace\n   * context itself.\n   * @param prefix Prefix to resolve.\n   * @return Namespace that prefix resolves to, or null if prefix\n   * is not bound.\n   */\n  public String getNamespaceForPrefix(String prefix)\n  {\n    return getNamespaceForPrefix(prefix, m_context);\n  }\n\n  /**\n   * Given a namespace, get the corrisponding prefix.\n   * Warning: This will not work correctly if namespaceContext\n   * is an attribute node.\n   * @param prefix Prefix to resolve.\n   * @param namespaceContext Node from which to start searching for a\n   * xmlns attribute that binds a prefix to a namespace.\n   * @return Namespace that prefix resolves to, or null if prefix\n   * is not bound.\n   */\n  public String getNamespaceForPrefix(String prefix,\n                                      org.w3c.dom.Node namespaceContext)\n  {\n\n    Node parent = namespaceContext;\n    String namespace = null;\n\n    if (prefix.equals(\"xml\"))\n    {\n      namespace = Constants.S_XMLNAMESPACEURI;\n    }\n    else\n    {\n      int type;\n\n      while ((null != parent) && (null == namespace)\n             && (((type = parent.getNodeType()) == Node.ELEMENT_NODE)\n                 || (type == Node.ENTITY_REFERENCE_NODE)))\n      {\n        if (type == Node.ELEMENT_NODE)\n        {\n                if (parent.getNodeName().indexOf(prefix+\":\") == 0) \n                        return parent.getNamespaceURI();                \n          NamedNodeMap nnm = parent.getAttributes();\n\n          for (int i = 0; i < nnm.getLength(); i++)\n          {\n            Node attr = nnm.item(i);\n            String aname = attr.getNodeName();\n            boolean isPrefix = aname.startsWith(\"xmlns:\");\n\n            if (isPrefix || aname.equals(\"xmlns\"))\n            {\n              int index = aname.indexOf(':');\n              String p = isPrefix ? aname.substring(index + 1) : \"\";\n\n              if (p.equals(prefix))\n              {\n                namespace = attr.getNodeValue();\n\n                break;\n              }\n            }\n          }\n        }\n\n        parent = parent.getParentNode();\n      }\n    }\n\n    return namespace;\n  }\n\n  /**\n   * Return the base identifier.\n   *\n   * @return null\n   */\n  public String getBaseIdentifier()\n  {\n    return null;\n  }\n\t/**\n\t * @see PrefixResolver#handlesNullPrefixes()\n\t */\n\tpublic boolean handlesNullPrefixes() {\n\t\treturn false;", "functions": [{"function_name": "getNamespaceForPrefix", "code": "  public String getNamespaceForPrefix(String prefix)\n  {\n    return getNamespaceForPrefix(prefix, m_context);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNamespaceForPrefix", "code": "  public String getNamespaceForPrefix(String prefix,\n                                      org.w3c.dom.Node namespaceContext)\n  {\n\n    Node parent = namespaceContext;\n    String namespace = null;\n\n    if (prefix.equals(\"xml\"))\n    {\n      namespace = Constants.S_XMLNAMESPACEURI;\n    }\n    else\n    {\n      int type;\n\n      while ((null != parent) && (null == namespace)\n             && (((type = parent.getNodeType()) == Node.ELEMENT_NODE)\n                 || (type == Node.ENTITY_REFERENCE_NODE)))\n      {\n        if (type == Node.ELEMENT_NODE)\n        {\n                if (parent.getNodeName().indexOf(prefix+\":\") == 0) \n                        return parent.getNamespaceURI();                \n          NamedNodeMap nnm = parent.getAttributes();\n\n          for (int i = 0; i < nnm.getLength(); i++)\n          {\n            Node attr = nnm.item(i);\n            String aname = attr.getNodeName();\n            boolean isPrefix = aname.startsWith(\"xmlns:\");\n\n            if (isPrefix || aname.equals(\"xmlns\"))\n            {\n              int index = aname.indexOf(':');\n              String p = isPrefix ? aname.substring(index + 1) : \"\";\n\n              if (p.equals(prefix))\n              {\n                namespace = attr.getNodeValue();\n\n                break;\n              }\n            }\n          }\n        }\n\n        parent = parent.getParentNode();\n      }\n    }\n\n    return namespace;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "COND_EXPR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [3, 11], [8, 12], [2, 13], [8, 14], [12, 15], [12, 16], [8, 17], [14, 18], [15, 19], [15, 20], [16, 21], [16, 22], [17, 23], [14, 24], [14, 25], [14, 26], [20, 27], [21, 28], [22, 29], [24, 30], [26, 31], [26, 32], [27, 33], [24, 34], [24, 35], [24, 36], [24, 37], [30, 38], [25, 39], [31, 40], [32, 41], [32, 42], [34, 43], [24, 44], [42, 45], [34, 46], [34, 47], [34, 48], [43, 49], [35, 50], [36, 51], [37, 52], [45, 53], [46, 54], [49, 55], [50, 56], [53, 57], [46, 58], [47, 59], [48, 60], [46, 61], [59, 62], [59, 63], [60, 64], [61, 65], [63, 66], [66, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 3], [12, 8], [13, 2], [14, 8], [15, 12], [16, 12], [17, 8], [18, 14], [19, 15], [20, 15], [21, 16], [22, 16], [23, 17], [24, 14], [25, 14], [26, 14], [27, 20], [28, 21], [29, 22], [30, 24], [31, 26], [32, 26], [33, 27], [34, 24], [35, 24], [36, 24], [37, 24], [38, 30], [39, 25], [40, 31], [41, 32], [42, 32], [43, 34], [44, 24], [45, 42], [46, 34], [47, 34], [48, 34], [49, 43], [50, 35], [51, 36], [52, 37], [53, 45], [54, 46], [55, 49], [56, 50], [57, 53], [58, 46], [59, 47], [60, 48], [61, 46], [62, 59], [63, 59], [64, 60], [65, 61], [66, 63], [67, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "getBaseIdentifier", "code": "  public String getBaseIdentifier()\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "handlesNullPrefixes", "code": "\tpublic boolean handlesNullPrefixes() {\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "PrefixResolverDefault", "code": "  public PrefixResolverDefault(Node xpathExpressionContext)\n  {\n    m_context = xpathExpressionContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.3-4632", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/HistoryModel.java", "language": "java", "name": "org.gjt.sp.jedit.gui.HistoryModel", "code": "public class HistoryModel extends DefaultListModel\n\timplements MutableListModel\n{\n\t//{{{ HistoryModel constructor\n\t/**\n\t * Creates a new history list. Calling this is normally not\n\t * necessary.\n\t */\n\tpublic HistoryModel(String name)\n\t{\n\t\tthis.name = name;\n\t} //}}}\n\n\t//{{{ addItem() method\n\t/**\n\t * Adds an item to the end of this history list, trimming the list\n\t * to the maximum number of items if necessary.\n\t * @param text The item\n\t */\n\tpublic void addItem(String text)\n\t{\n\t\tif(text == null || text.length() == 0)\n\t\t\treturn;\n\n\t\tint index = indexOf(text);\n\t\tif(index != -1)\n\t\t\tremoveElementAt(index);\n\n\t\tinsertElementAt(text,0);\n\n\t\twhile(getSize() > max)\n\t\t\tremoveElementAt(getSize() - 1);\n\t} //}}}\n\n\t//{{{ insertElementAt() method\n\tpublic void insertElementAt(Object obj, int index)\n\t{\n\t\tmodified = true;\n\t\tsuper.insertElementAt(obj,index);\n\t} //}}}\n\n\t//{{{ getItem() method\n\t/**\n\t * Returns an item from the history list.\n\t * @param index The index\n\t */\n\tpublic String getItem(int index)\n\t{\n\t\treturn (String)elementAt(index);\n\t} //}}}\n\n\t//{{{ removeElement() method\n\tpublic boolean removeElement(Object obj)\n\t{\n\t\tmodified = true;\n\t\treturn super.removeElement(obj);\n\t} //}}}\n\n\t//{{{ clear() method\n\t/**\n\t * @deprecated Call <code>removeAllElements()</code> instead.\n\t */\n\tpublic void clear()\n\t{\n\t\tremoveAllElements();\n\t} //}}}\n\n\t//{{{ removeAllElements() method\n\tpublic void removeAllElements()\n\t{\n\t\tmodified = true;\n\t\tsuper.removeAllElements();\n\t} //}}}\n\n\t//{{{ getName() method\n\t/**\n\t * Returns the name of this history list. This can be passed\n\t * to the HistoryTextField constructor.\n\t */\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ getModel() method\n\t/**\n\t * Returns a named model. If the specified model does not\n\t * already exist, it will be created.\n\t * @param name The model name\n\t */\n\tpublic static HistoryModel getModel(String name)\n\t{\n\t\tif(models == null)\n\t\t\tmodels = Collections.synchronizedMap(new HashMap<String, HistoryModel>());\n\n\t\tHistoryModel model = models.get(name);\n\t\tif(model == null)\n\t\t{\n\t\t\tmodel = new HistoryModel(name);\n\t\t\tmodels.put(name,model);\n\t\t}\n\n\t\treturn model;\n\t} //}}}\n\n\t//{{{ loadHistory() method\n\tpublic static void loadHistory()\n\t{\n\t\tif (saver != null)\n\t\t\tmodels = saver.load(models);\n\t} //}}}\n\n\t//{{{ saveHistory() method\n\tpublic static void saveHistory()\n\t{\n\t\tif (saver != null && modified && saver.save(models))\n\t\t\tmodified = false;\n\t} //}}}\n\n\t//{{{ setMax() method\n\tpublic static void setMax(int max)\n\t{\n\t\tHistoryModel.max = max;\n\t} //}}}\n\n\t//{{{ setSaver() method\n\tpublic static void setSaver(HistoryModelSaver saver)\n\t{\n\t\tHistoryModel.saver = saver;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static int max;\n\n\tprivate String name;\n\tprivate static Map<String, HistoryModel> models;\n\n\tprivate static boolean modified;\n\tprivate static HistoryModelSaver saver;", "functions": [{"function_name": "addItem", "code": "\tpublic void addItem(String text)\n\t{\n\t\tif(text == null || text.length() == 0)\n\t\t\treturn;\n\n\t\tint index = indexOf(text);\n\t\tif(index != -1)\n\t\t\tremoveElementAt(index);\n\n\t\tinsertElementAt(text,0);\n\n\t\twhile(getSize() > max)\n\t\t\tremoveElementAt(getSize() - 1);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [4, 9], [4, 10], [1, 11], [6, 12], [7, 13], [2, 14], [8, 15], [3, 16], [10, 17], [10, 18], [11, 19], [17, 20], [17, 21], [18, 22], [19, 23], [19, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 4], [10, 4], [11, 1], [12, 6], [13, 7], [14, 2], [15, 8], [16, 3], [17, 10], [18, 10], [19, 11], [20, 17], [21, 17], [22, 18], [23, 19], [24, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "insertElementAt", "code": "\tpublic void insertElementAt(Object obj, int index)\n\t{\n\t\tmodified = true;\n\t\tsuper.insertElementAt(obj,index);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getItem", "code": "\tpublic String getItem(int index)\n\t{\n\t\treturn (String)elementAt(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeElement", "code": "\tpublic boolean removeElement(Object obj)\n\t{\n\t\tmodified = true;\n\t\treturn super.removeElement(obj);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "clear", "code": "\tpublic void clear()\n\t{\n\t\tremoveAllElements();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "removeAllElements", "code": "\tpublic void removeAllElements()\n\t{\n\t\tmodified = true;\n\t\tsuper.removeAllElements();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getModel", "code": "\tpublic static HistoryModel getModel(String name)\n\t{\n\t\tif(models == null)\n\t\t\tmodels = Collections.synchronizedMap(new HashMap<String, HistoryModel>());\n\n\t\tHistoryModel model = models.get(name);\n\t\tif(model == null)\n\t\t{\n\t\t\tmodel = new HistoryModel(name);\n\t\t\tmodels.put(name,model);\n\t\t}\n\n\t\treturn model;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [6, 8], [3, 9], [4, 10], [7, 11], [2, 12], [2, 13], [10, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 6], [9, 3], [10, 4], [11, 7], [12, 2], [13, 2], [14, 10], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "loadHistory", "code": "\tpublic static void loadHistory()\n\t{\n\t\tif (saver != null)\n\t\t\tmodels = saver.load(models);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "saveHistory", "code": "\tpublic static void saveHistory()\n\t{\n\t\tif (saver != null && modified && saver.save(models))\n\t\t\tmodified = false;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [3, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 3], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setMax", "code": "\tpublic static void setMax(int max)\n\t{\n\t\tHistoryModel.max = max;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSaver", "code": "\tpublic static void setSaver(HistoryModelSaver saver)\n\t{\n\t\tHistoryModel.saver = saver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HistoryModel", "code": "\tpublic HistoryModel(String name)\n\t{\n\t\tthis.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.4-2027", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/jhc/JhcProducer.java", "language": "java", "name": "org.apache.camel.component.jhc.JhcProducer", "code": "public class JhcProducer extends DefaultProducer<JhcExchange> implements AsyncProcessor {\n    public static final String HTTP_RESPONSE_CODE = \"http.responseCode\";\n    public static final Set<String> HEADERS_TO_SKIP = new HashSet<String>(Arrays.asList(\n            \"content-length\", \"content-type\", HTTP_RESPONSE_CODE.toLowerCase()));\n\n    private static final transient Log LOG = LogFactory.getLog(JhcProducer.class);\n\n    private int nbThreads = 2;\n    private ConnectingIOReactor ioReactor;\n    private ThreadFactory threadFactory;\n    private Thread runner;\n\n    public JhcProducer(JhcEndpoint endpoint) {\n        super(endpoint);\n    }\n\n    @Override\n    public JhcEndpoint getEndpoint() {\n        return (JhcEndpoint) super.getEndpoint();\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        HttpParams params = getEndpoint().getParams();\n        ioReactor = new DefaultConnectingIOReactor(nbThreads, threadFactory, params);\n        BasicHttpProcessor httpproc = new BasicHttpProcessor();\n        httpproc.addInterceptor(new RequestContent());\n        httpproc.addInterceptor(new RequestTargetHost());\n        httpproc.addInterceptor(new RequestConnControl());\n        httpproc.addInterceptor(new RequestUserAgent());\n        httpproc.addInterceptor(new RequestExpectContinue());\n        BufferingHttpClientHandler handler = new BufferingHttpClientHandler(\n                httpproc,\n                new MyHttpRequestExecutionHandler(),\n                new DefaultConnectionReuseStrategy(),\n                params);\n        handler.setEventListener(new EventLogger());\n        final IOEventDispatch ioEventDispatch = new DefaultClientIOEventDispatch(handler, params);\n        runner = new Thread(new Runnable() {\n            public void run() {\n                try {\n                    ioReactor.execute(ioEventDispatch);\n                } catch (InterruptedIOException ex) {\n                    LOG.info(\"Interrupted\");\n                } catch (IOException e) {\n                    LOG.warn(\"I/O error: \" + e.getMessage());\n                }\n                LOG.debug(\"Shutdown\");\n            }\n\n        });\n        runner.start();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        ioReactor.shutdown();\n        runner.join();\n        super.doStop();\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"process: \" + exchange);\n        }\n        AsyncProcessorHelper.process(this, exchange);\n    }\n\n    public boolean process(Exchange exchange, AsyncCallback callback) {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"processAsync: \" + exchange);\n        }\n        SocketAddress addr = new InetSocketAddress(getEndpoint().getHost(), getEndpoint().getPort());\n        exchange.setProperty(AsyncCallback.class.getName(), callback);\n        SessionRequest req = ioReactor.connect(addr, null, exchange, new MySessionRequestCallback());\n        return false;\n    }\n\n    protected HttpRequest createRequest(Exchange exchange) {\n        String uri = getEndpoint().getEndpointUri();\n        HttpEntity entity = createEntity(exchange);\n        HttpRequest req;\n        if (entity == null) {\n            req = new BasicHttpRequest(\"GET\", getEndpoint().getPath());\n        } else {\n            req = new BasicHttpEntityEnclosingRequest(\"POST\", getEndpoint().getPath());\n            ((BasicHttpEntityEnclosingRequest)req).setEntity(entity);\n        }\n\n        for (String headerName : exchange.getIn().getHeaders().keySet()) {\n            String headerValue = exchange.getIn().getHeader(headerName, String.class);\n            if (shouldHeaderBePropagated(headerName, headerValue)) {\n                req.addHeader(headerName, headerValue);\n            }\n        }\n\n        return req;\n    }\n\n    protected HttpEntity createEntity(Exchange exchange) {\n        Message in = exchange.getIn();\n        HttpEntity entity = in.getBody(HttpEntity.class);\n        if (entity == null) {\n            byte[] data = in.getBody(byte[].class);\n            if (data == null) {\n                return null;\n            }\n            entity = new ByteArrayEntity(data);\n            String contentType = in.getHeader(\"Content-Type\", String.class);\n            if (contentType != null) {\n                ((ByteArrayEntity) entity).setContentType(contentType);\n            }\n            String contentEncoding = in.getHeader(\"Content-Encoding\", String.class);\n            if (contentEncoding != null) {\n                ((ByteArrayEntity) entity).setContentEncoding(contentEncoding);\n            }\n        }\n        return entity;\n    }\n\n    protected boolean shouldHeaderBePropagated(String headerName, String headerValue) {\n        if (headerValue == null) {\n            return false;\n        }\n        if (headerName.startsWith(\"org.apache.camel\")) {\n            return false;\n        }\n        if (HEADERS_TO_SKIP.contains(headerName.toLowerCase())) {\n            return false;\n        }\n        return true;\n    }\n\n    static class MySessionRequestCallback implements SessionRequestCallback {\n\n        public void completed(SessionRequest sessionRequest) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Completed\");\n            }\n        }\n\n        public void failed(SessionRequest sessionRequest) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Failed\");\n            }\n        }\n\n        public void timeout(SessionRequest sessionRequest) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Timeout\");\n            }\n        }\n\n        public void cancelled(SessionRequest sessionRequest) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Cancelled\");\n            }\n        }\n    }\n\n    class MyHttpRequestExecutionHandler implements HttpRequestExecutionHandler {\n\n        private static final String REQUEST_SENT       = \"request-sent\";\n        private static final String RESPONSE_RECEIVED  = \"response-received\";\n\n        public void initalizeContext(HttpContext httpContext, Object o) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Initialize context\");\n            }\n            httpContext.setAttribute(Exchange.class.getName(), (Exchange) o);\n        }\n\n        public HttpRequest submitRequest(HttpContext httpContext) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Submit request: \" + httpContext);\n            }\n            Object flag = httpContext.getAttribute(REQUEST_SENT);\n            if (flag == null) {\n                httpContext.setAttribute(REQUEST_SENT, Boolean.TRUE);\n                Exchange e = (Exchange) httpContext.getAttribute(Exchange.class.getName());\n                return createRequest(e);\n            } else {\n                return null;\n            }\n        }\n\n        public void handleResponse(HttpResponse httpResponse, HttpContext httpContext) throws IOException {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Handle response\");\n            }\n            httpContext.setAttribute(RESPONSE_RECEIVED, Boolean.TRUE);\n            Exchange e = (Exchange) httpContext.getAttribute(Exchange.class.getName());\n            e.getOut().setBody(httpResponse.getEntity());\n            for (Iterator it = httpResponse.headerIterator(); it.hasNext();) {\n                Header h = (Header) it.next();\n                e.getOut().setHeader(h.getName(), h.getValue());\n            }\n            e.getOut().setHeader(HTTP_RESPONSE_CODE, httpResponse.getStatusLine().getStatusCode());\n            AsyncCallback callback = (AsyncCallback) e.removeProperty(AsyncCallback.class.getName());\n            callback.done(false);\n        }\n\n        public void finalizeContext(HttpContext httpContext) {\n        }\n    }\n\n    static class EventLogger implements EventListener {\n\n        public void connectionOpen(final NHttpConnection conn) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Connection open: \" + conn);\n            }\n        }\n\n        public void connectionTimeout(final NHttpConnection conn) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Connection timed out: \" + conn);\n            }\n        }\n\n        public void connectionClosed(final NHttpConnection conn) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Connection closed: \" + conn);\n            }\n        }\n\n        public void fatalIOException(final IOException ex, final NHttpConnection conn) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"I/O error: \" + ex.getMessage());\n            }\n        }\n\n        public void fatalProtocolException(final HttpException ex, final NHttpConnection conn) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"HTTP error: \" + ex.getMessage());", "functions": [{"function_name": "getEndpoint", "code": "    @Override\n    public JhcEndpoint getEndpoint() {\n        return (JhcEndpoint) super.getEndpoint();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        HttpParams params = getEndpoint().getParams();\n        ioReactor = new DefaultConnectingIOReactor(nbThreads, threadFactory, params);\n        BasicHttpProcessor httpproc = new BasicHttpProcessor();\n        httpproc.addInterceptor(new RequestContent());\n        httpproc.addInterceptor(new RequestTargetHost());\n        httpproc.addInterceptor(new RequestConnControl());\n        httpproc.addInterceptor(new RequestUserAgent());\n        httpproc.addInterceptor(new RequestExpectContinue());\n        BufferingHttpClientHandler handler = new BufferingHttpClientHandler(\n                httpproc,\n                new MyHttpRequestExecutionHandler(),\n                new DefaultConnectionReuseStrategy(),\n                params);\n        handler.setEventListener(new EventLogger());\n        final IOEventDispatch ioEventDispatch = new DefaultClientIOEventDispatch(handler, params);\n        runner = new Thread(new Runnable() {\n            public void run() {\n                try {\n                    ioReactor.execute(ioEventDispatch);\n                } catch (InterruptedIOException ex) {\n                    LOG.info(\"Interrupted\");\n                } catch (IOException e) {\n                    LOG.warn(\"I/O error: \" + e.getMessage());\n                }\n                LOG.debug(\"Shutdown\");\n            }\n\n        });\n        runner.start();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "TRY", "CALL", "CATCH", "CATCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [6, 14], [1, 15], [7, 16], [2, 17], [8, 18], [9, 19], [10, 20], [11, 21], [12, 22], [3, 23], [13, 24], [4, 25], [14, 26], [17, 27], [17, 28], [25, 29], [26, 30], [30, 31], [30, 32], [31, 33], [31, 34], [32, 35], [31, 36], [33, 37], [34, 38], [37, 39], [38, 40], [39, 41], [39, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 6], [15, 1], [16, 7], [17, 2], [18, 8], [19, 9], [20, 10], [21, 11], [22, 12], [23, 3], [24, 13], [25, 4], [26, 14], [27, 17], [28, 17], [29, 25], [30, 26], [31, 30], [32, 30], [33, 31], [34, 31], [35, 32], [36, 31], [37, 33], [38, 34], [39, 37], [40, 38], [41, 39], [42, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        ioReactor.shutdown();\n        runner.join();\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"process: \" + exchange);\n        }\n        AsyncProcessorHelper.process(this, exchange);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "process", "code": "    public boolean process(Exchange exchange, AsyncCallback callback) {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"processAsync: \" + exchange);\n        }\n        SocketAddress addr = new InetSocketAddress(getEndpoint().getHost(), getEndpoint().getPort());\n        exchange.setProperty(AsyncCallback.class.getName(), callback);\n        SessionRequest req = ioReactor.connect(addr, null, exchange, new MySessionRequestCallback());\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [4, 9], [2, 10], [8, 11], [3, 12], [10, 13], [10, 14], [12, 15], [12, 16], [4, 17], [15, 18], [16, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 4], [10, 2], [11, 8], [12, 3], [13, 10], [14, 10], [15, 12], [16, 12], [17, 4], [18, 15], [19, 16], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createRequest", "code": "    protected HttpRequest createRequest(Exchange exchange) {\n        String uri = getEndpoint().getEndpointUri();\n        HttpEntity entity = createEntity(exchange);\n        HttpRequest req;\n        if (entity == null) {\n            req = new BasicHttpRequest(\"GET\", getEndpoint().getPath());\n        } else {\n            req = new BasicHttpEntityEnclosingRequest(\"POST\", getEndpoint().getPath());\n            ((BasicHttpEntityEnclosingRequest)req).setEntity(entity);\n        }\n\n        for (String headerName : exchange.getIn().getHeaders().keySet()) {\n            String headerValue = exchange.getIn().getHeader(headerName, String.class);\n            if (shouldHeaderBePropagated(headerName, headerValue)) {\n                req.addHeader(headerName, headerValue);\n            }\n        }\n\n        return req;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [2, 9], [2, 10], [2, 11], [8, 12], [5, 13], [6, 14], [9, 15], [11, 16], [11, 17], [3, 18], [3, 19], [14, 20], [10, 21], [18, 22], [19, 23], [9, 24], [21, 25], [22, 26], [22, 27], [23, 28], [23, 29], [26, 30], [28, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 2], [10, 2], [11, 2], [12, 8], [13, 5], [14, 6], [15, 9], [16, 11], [17, 11], [18, 3], [19, 3], [20, 14], [21, 10], [22, 18], [23, 19], [24, 9], [25, 21], [26, 22], [27, 22], [28, 23], [29, 23], [30, 26], [31, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "createEntity", "code": "    protected HttpEntity createEntity(Exchange exchange) {\n        Message in = exchange.getIn();\n        HttpEntity entity = in.getBody(HttpEntity.class);\n        if (entity == null) {\n            byte[] data = in.getBody(byte[].class);\n            if (data == null) {\n                return null;\n            }\n            entity = new ByteArrayEntity(data);\n            String contentType = in.getHeader(\"Content-Type\", String.class);\n            if (contentType != null) {\n                ((ByteArrayEntity) entity).setContentType(contentType);\n            }\n            String contentEncoding = in.getHeader(\"Content-Encoding\", String.class);\n            if (contentEncoding != null) {\n                ((ByteArrayEntity) entity).setContentEncoding(contentEncoding);\n            }\n        }\n        return entity;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [6, 13], [3, 14], [4, 15], [7, 16], [9, 17], [2, 18], [11, 19], [16, 20], [8, 21], [17, 22], [10, 23], [18, 24], [11, 25], [19, 26], [12, 27], [21, 28], [23, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 6], [14, 3], [15, 4], [16, 7], [17, 9], [18, 2], [19, 11], [20, 16], [21, 8], [22, 17], [23, 10], [24, 18], [25, 11], [26, 19], [27, 12], [28, 21], [29, 23], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "shouldHeaderBePropagated", "code": "    protected boolean shouldHeaderBePropagated(String headerName, String headerValue) {\n        if (headerValue == null) {\n            return false;\n        }\n        if (headerName.startsWith(\"org.apache.camel\")) {\n            return false;\n        }\n        if (HEADERS_TO_SKIP.contains(headerName.toLowerCase())) {\n            return false;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "RETURN", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [2, 11], [8, 12], [3, 13], [9, 14], [4, 15], [10, 16], [11, 17], [13, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 2], [12, 8], [13, 3], [14, 9], [15, 4], [16, 10], [17, 11], [18, 13], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "JhcProducer", "code": "    public JhcProducer(JhcEndpoint endpoint) {\n        super(endpoint);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "log4j-1.2-5076", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/FileAppender.java", "language": "java", "name": "org.apache.log4j.FileAppender", "code": "public class FileAppender extends WriterAppender {\n\n  /** Controls file truncatation. The default value for this variable\n   * is <code>true</code>, meaning that by default a\n   * <code>FileAppender</code> will append to an existing file and not\n   * truncate it.\n   *\n   * <p>This option is meaningful only if the FileAppender opens the\n   * file.\n   */\n  protected boolean fileAppend = true;\n\n  /**\n     The name of the log file. */\n  protected String fileName = null;\n\n  /**\n     Do we do bufferedIO? */\n  protected boolean bufferedIO = false;\n\n  /**\n   * Determines the size of IO buffer be. Default is 8K. \n   */\n  protected int bufferSize = 8*1024;\n\n\n  /**\n     The default constructor does not do anything.\n  */\n  public\n  FileAppender() {\n  }\n\n  /**\n    Instantiate a <code>FileAppender</code> and open the file\n    designated by <code>filename</code>. The opened filename will\n    become the output destination for this appender.\n\n    <p>If the <code>append</code> parameter is true, the file will be\n    appended to. Otherwise, the file designated by\n    <code>filename</code> will be truncated before being opened.\n\n    <p>If the <code>bufferedIO</code> parameter is <code>true</code>,\n    then buffered IO will be used to write to the output file.\n\n  */\n  public\n  FileAppender(Layout layout, String filename, boolean append, boolean bufferedIO,\n\t       int bufferSize) throws IOException {\n    this.layout = layout;\n    this.setFile(filename, append, bufferedIO, bufferSize);\n  }\n\n  /**\n    Instantiate a FileAppender and open the file designated by\n    <code>filename</code>. The opened filename will become the output\n    destination for this appender.\n\n    <p>If the <code>append</code> parameter is true, the file will be\n    appended to. Otherwise, the file designated by\n    <code>filename</code> will be truncated before being opened.\n  */\n  public\n  FileAppender(Layout layout, String filename, boolean append)\n                                                             throws IOException {\n    this.layout = layout;\n    this.setFile(filename, append, false, bufferSize);\n  }\n\n  /**\n     Instantiate a FileAppender and open the file designated by\n    <code>filename</code>. The opened filename will become the output\n    destination for this appender.\n\n    <p>The file will be appended to.  */\n  public\n  FileAppender(Layout layout, String filename) throws IOException {\n    this(layout, filename, true);\n  }\n\n  /**\n     The <b>File</b> property takes a string value which should be the\n     name of the file to append to.\n\n     <p><font color=\"#DD0044\"><b>Note that the special values\n     \"System.out\" or \"System.err\" are no longer honored.</b></font>\n\n     <p>Note: Actual opening of the file is made when {@link\n     #activateOptions} is called, not when the options are set.  */\n  public void setFile(String file) {\n    // Trim spaces from both ends. The users probably does not want\n    // trailing spaces in file names.\n    String val = file.trim();\n    fileName = val;\n  }\n\n  /**\n      Returns the value of the <b>Append</b> option.\n   */\n  public\n  boolean getAppend() {\n    return fileAppend;\n  }\n\n\n  /** Returns the value of the <b>File</b> option. */\n  public\n  String getFile() {\n    return fileName;\n  }\n\n  /**\n     If the value of <b>File</b> is not <code>null</code>, then {@link\n     #setFile} is called with the values of <b>File</b>  and\n     <b>Append</b> properties.\n\n     @since 0.8.1 */\n  public\n  void activateOptions() {\n    if(fileName != null) {\n      try {\n\tsetFile(fileName, fileAppend, bufferedIO, bufferSize);\n      }\n      catch(java.io.IOException e) {\n\terrorHandler.error(\"setFile(\"+fileName+\",\"+fileAppend+\") call failed.\",\n\t\t\t   e, ErrorCode.FILE_OPEN_FAILURE);\n      }\n    } else {\n      //LogLog.error(\"File option not set for appender [\"+name+\"].\");\n      LogLog.warn(\"File option not set for appender [\"+name+\"].\");\n      LogLog.warn(\"Are you using FileAppender instead of ConsoleAppender?\");\n    }\n  }\n\n /**\n     Closes the previously opened file.\n  */\n  protected\n  void closeFile() {\n    if(this.qw != null) {\n      try {\n\tthis.qw.close();\n      }\n      catch(java.io.IOException e) {\n          if (e instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n\t// Exceptionally, it does not make sense to delegate to an\n\t// ErrorHandler. Since a closed appender is basically dead.\n\tLogLog.error(\"Could not close \" + qw, e);\n      }\n    }\n  }\n\n  /**\n     Get the value of the <b>BufferedIO</b> option.\n\n     <p>BufferedIO will significatnly increase performance on heavily\n     loaded systems.\n\n  */\n  public\n  boolean getBufferedIO() {\n    return this.bufferedIO;\n  }\n\n\n  /**\n     Get the size of the IO buffer.\n  */\n  public\n  int getBufferSize() {\n    return this.bufferSize;\n  }\n\n\n\n  /**\n     The <b>Append</b> option takes a boolean value. It is set to\n     <code>true</code> by default. If true, then <code>File</code>\n     will be opened in append mode by {@link #setFile setFile} (see\n     above). Otherwise, {@link #setFile setFile} will open\n     <code>File</code> in truncate mode.\n\n     <p>Note: Actual opening of the file is made when {@link\n     #activateOptions} is called, not when the options are set.\n   */\n  public\n  void setAppend(boolean flag) {\n    fileAppend = flag;\n  }\n\n  /**\n     The <b>BufferedIO</b> option takes a boolean value. It is set to\n     <code>false</code> by default. If true, then <code>File</code>\n     will be opened and the resulting {@link java.io.Writer} wrapped\n     around a {@link BufferedWriter}.\n\n     BufferedIO will significatnly increase performance on heavily\n     loaded systems.\n\n  */\n  public\n  void setBufferedIO(boolean bufferedIO) {\n    this.bufferedIO = bufferedIO;\n    if(bufferedIO) {\n      immediateFlush = false;\n    }\n  }\n\n\n  /**\n     Set the size of the IO buffer.\n  */\n  public\n  void setBufferSize(int bufferSize) {\n    this.bufferSize = bufferSize;\n  }\n\n  /**\n    <p>Sets and <i>opens</i> the file where the log output will\n    go. The specified file must be writable.\n\n    <p>If there was already an opened file, then the previous file\n    is closed first.\n\n    <p><b>Do not use this method directly. To configure a FileAppender\n    or one of its subclasses, set its properties one by one and then\n    call activateOptions.</b>\n\n    @param fileName The path to the log file.\n    @param append   If true will append to fileName. Otherwise will\n        truncate fileName.  */\n  public\n  synchronized\n  void setFile(String fileName, boolean append, boolean bufferedIO, int bufferSize)\n                                                            throws IOException {\n    LogLog.debug(\"setFile called: \"+fileName+\", \"+append);\n\n    // It does not make sense to have immediate flush and bufferedIO.\n    if(bufferedIO) {\n      setImmediateFlush(false);\n    }\n\n    reset();\n    FileOutputStream ostream = null;\n    try {\n          //\n          //   attempt to create file\n          //\n          ostream = new FileOutputStream(fileName, append);\n    } catch(FileNotFoundException ex) {\n          //\n          //   if parent directory does not exist then\n          //      attempt to create it and try to create file\n          //      see bug 9150\n          //\n          String parentName = new File(fileName).getParent();\n          if (parentName != null) {\n             File parentDir = new File(parentName);\n             if(!parentDir.exists() && parentDir.mkdirs()) {\n                ostream = new FileOutputStream(fileName, append);\n             } else {\n                throw ex;\n             }\n          } else {\n             throw ex;\n          }\n    }\n    Writer fw = createWriter(ostream);\n    if(bufferedIO) {\n      fw = new BufferedWriter(fw, bufferSize);\n    }\n    this.setQWForFiles(fw);\n    this.fileName = fileName;\n    this.fileAppend = append;\n    this.bufferedIO = bufferedIO;\n    this.bufferSize = bufferSize;\n    writeHeader();\n    LogLog.debug(\"setFile ended\");\n  }\n\n\n  /**\n     Sets the quiet writer being used.\n\n     This method is overriden by {@link RollingFileAppender}.\n   */\n  protected\n  void setQWForFiles(Writer writer) {\n     this.qw = new QuietWriter(writer, errorHandler);\n  }\n\n\n  /**\n     Close any previously opened file and call the parent's\n     <code>reset</code>.  */\n  protected\n  void reset() {\n    closeFile();\n    this.fileName = null;\n    super.reset();", "functions": [{"function_name": "setFile", "code": "  public void setFile(String file) {\n    // Trim spaces from both ends. The users probably does not want\n    // trailing spaces in file names.\n    String val = file.trim();\n    fileName = val;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAppend", "code": "  boolean getAppend() {\n    return fileAppend;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFile", "code": "  String getFile() {\n    return fileName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "activateOptions", "code": "  void activateOptions() {\n    if(fileName != null) {\n      try {\n\tsetFile(fileName, fileAppend, bufferedIO, bufferSize);\n      }\n      catch(java.io.IOException e) {\n\terrorHandler.error(\"setFile(\"+fileName+\",\"+fileAppend+\") call failed.\",\n\t\t\t   e, ErrorCode.FILE_OPEN_FAILURE);\n      }\n    } else {\n      //LogLog.error(\"File option not set for appender [\"+name+\"].\");\n      LogLog.warn(\"File option not set for appender [\"+name+\"].\");\n      LogLog.warn(\"Are you using FileAppender instead of ConsoleAppender?\");", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [1, 6], [3, 7], [5, 8], [6, 9], [3, 10], [9, 11], [9, 12], [7, 13], [12, 14], [13, 15], [15, 16], [15, 17], [17, 18], [18, 19], [18, 20], [20, 21], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 1], [7, 3], [8, 5], [9, 6], [10, 3], [11, 9], [12, 9], [13, 7], [14, 12], [15, 13], [16, 15], [17, 15], [18, 17], [19, 18], [20, 18], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "closeFile", "code": "  void closeFile() {\n    if(this.qw != null) {\n      try {\n\tthis.qw.close();\n      }\n      catch(java.io.IOException e) {\n          if (e instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n\t// Exceptionally, it does not make sense to delegate to an\n\t// ErrorHandler. Since a closed appender is basically dead.\n\tLogLog.error(\"Could not close \" + qw, e);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "IF", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [5, 6], [5, 7], [6, 8], [3, 9], [7, 10], [10, 11], [6, 12], [12, 13], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 5], [7, 5], [8, 6], [9, 3], [10, 7], [11, 10], [12, 6], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getBufferedIO", "code": "  boolean getBufferedIO() {\n    return this.bufferedIO;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBufferSize", "code": "  int getBufferSize() {\n    return this.bufferSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAppend", "code": "  void setAppend(boolean flag) {\n    fileAppend = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBufferedIO", "code": "  void setBufferedIO(boolean bufferedIO) {\n    this.bufferedIO = bufferedIO;\n    if(bufferedIO) {\n      immediateFlush = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setBufferSize", "code": "  void setBufferSize(int bufferSize) {\n    this.bufferSize = bufferSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFile", "code": "  void setFile(String fileName, boolean append, boolean bufferedIO, int bufferSize)\n                                                            throws IOException {\n    LogLog.debug(\"setFile called: \"+fileName+\", \"+append);\n\n    // It does not make sense to have immediate flush and bufferedIO.\n    if(bufferedIO) {\n      setImmediateFlush(false);\n    }\n\n    reset();\n    FileOutputStream ostream = null;\n    try {\n          //\n          //   attempt to create file\n          //\n          ostream = new FileOutputStream(fileName, append);\n    } catch(FileNotFoundException ex) {\n          //\n          //   if parent directory does not exist then\n          //      attempt to create it and try to create file\n          //      see bug 9150\n          //\n          String parentName = new File(fileName).getParent();\n          if (parentName != null) {\n             File parentDir = new File(parentName);\n             if(!parentDir.exists() && parentDir.mkdirs()) {\n                ostream = new FileOutputStream(fileName, append);\n             } else {\n                throw ex;\n             }\n          } else {\n             throw ex;\n          }\n    }\n    Writer fw = createWriter(ostream);\n    if(bufferedIO) {\n      fw = new BufferedWriter(fw, bufferSize);\n    }\n    this.setQWForFiles(fw);\n    this.fileName = fileName;\n    this.fileAppend = append;\n    this.bufferedIO = bufferedIO;\n    this.bufferSize = bufferSize;\n    writeHeader();\n    LogLog.debug(\"setFile ended\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [3, 16], [0, 17], [0, 18], [10, 19], [0, 20], [2, 21], [16, 22], [16, 23], [3, 24], [4, 25], [18, 26], [1, 27], [22, 28], [24, 29], [5, 30], [26, 31], [27, 32], [22, 33], [22, 34], [22, 35], [28, 36], [23, 37], [30, 38], [31, 39], [31, 40], [34, 41], [37, 42], [40, 43], [34, 44], [41, 45], [41, 46], [35, 47], [34, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 3], [17, 0], [18, 0], [19, 10], [20, 0], [21, 2], [22, 16], [23, 16], [24, 3], [25, 4], [26, 18], [27, 1], [28, 22], [29, 24], [30, 5], [31, 26], [32, 27], [33, 22], [34, 22], [35, 22], [36, 28], [37, 23], [38, 30], [39, 31], [40, 31], [41, 34], [42, 37], [43, 40], [44, 34], [45, 41], [46, 41], [47, 35], [48, 34], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "setQWForFiles", "code": "  void setQWForFiles(Writer writer) {\n     this.qw = new QuietWriter(writer, errorHandler);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "reset", "code": "  void reset() {\n    closeFile();\n    this.fileName = null;\n    super.reset();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FileAppender", "code": "  FileAppender() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FileAppender", "code": "  FileAppender(Layout layout, String filename, boolean append, boolean bufferedIO,\n\t       int bufferSize) throws IOException {\n    this.layout = layout;\n    this.setFile(filename, append, bufferedIO, bufferSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "FileAppender", "code": "  FileAppender(Layout layout, String filename, boolean append)\n                                                             throws IOException {\n    this.layout = layout;\n    this.setFile(filename, append, false, bufferSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "FileAppender", "code": "  FileAppender(Layout layout, String filename) throws IOException {\n    this(layout, filename, true);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.6-7950", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/extensions/XSLProcessorContext.java", "language": "java", "name": "org.apache.xalan.extensions.XSLProcessorContext", "code": "public class XSLProcessorContext\n{\n\n  /**\n   * Create a processor context to be passed to an extension.\n   * (Notice it is a package-only constructor).\n   *\n   * @param transformer non-null transformer instance\n   * @param stylesheetTree The owning stylesheet\n   * @param sourceTree The source document\n   * @param sourceNode The current source node\n   * @param mode the current mode being executed.\n   */\n  public XSLProcessorContext(TransformerImpl transformer,\n                             Stylesheet stylesheetTree)\n  {\n\n    this.transformer = transformer;\n    this.stylesheetTree = stylesheetTree;\n    org.apache.xpath.XPathContext xctxt = transformer.getXPathContext();\n    this.mode = transformer.getMode();\n    this.sourceNode = xctxt.getCurrentNode();\n    this.sourceTree = xctxt.getDTM(this.sourceNode);\n  }\n\n  /** An instance of a transformer          */\n  private TransformerImpl transformer;\n\n  /**\n   * Get the transformer.\n   *\n   * @return the transformer instance for this context\n   */\n  public TransformerImpl getTransformer()\n  {\n    return transformer;\n  }\n\n  /** The owning stylesheet for this context          */\n  private Stylesheet stylesheetTree;\n\n  /**\n   * Get the Stylesheet being executed.\n   *\n   * @return the Stylesheet being executed.\n   */\n  public Stylesheet getStylesheet()\n  {\n    return stylesheetTree;\n  }\n\n  /**  The root of the source tree being executed.        */\n  private org.apache.xml.dtm.DTM sourceTree;\n\n  /**\n   * Get the root of the source tree being executed.\n   *\n   * @return the root of the source tree being executed.\n   */\n  public org.w3c.dom.Node getSourceTree()\n  {\n    return sourceTree.getNode(sourceTree.getDocumentRoot(sourceNode));\n  }\n\n  /** the current context node.          */\n  private int sourceNode;\n\n  /**\n   * Get the current context node.\n   *\n   * @return the current context node.\n   */\n  public org.w3c.dom.Node getContextNode()\n  {\n    return sourceTree.getNode(sourceNode);\n  }\n\n  /** the current mode being executed.         */\n  private QName mode;\n\n  /**\n   * Get the current mode being executed.\n   *\n   * @return the current mode being executed.\n   */\n  public QName getMode()\n  {\n    return mode;\n  }\n\n  /**\n   * Output an object to the result tree by doing the right conversions.\n   * This is public for access by extensions.\n   *\n   *\n   * @param stylesheetTree The owning stylesheet\n   * @param obj the Java object to output. If its of an X<something> type\n   *        then that conversion is done first and then sent out.\n   *\n   * @throws TransformerException\n   * @throws java.io.FileNotFoundException\n   * @throws java.io.IOException\n   * @throws java.net.MalformedURLException\n   */\n  public void outputToResultTree(Stylesheet stylesheetTree, Object obj)\n          throws TransformerException, java.net.MalformedURLException,\n                 java.io.FileNotFoundException, java.io.IOException\n  {\n\n    try\n    {\n      SerializationHandler rtreeHandler = transformer.getResultTreeHandler();\n      XPathContext xctxt = transformer.getXPathContext();\n      XObject value;\n\n      if (obj instanceof XObject)\n      {\n        value = (XObject) obj;\n      }\n      else if (obj instanceof String)\n      {\n        value = new XString((String) obj);\n      }\n      else if (obj instanceof Boolean)\n      {\n        value = new XBoolean(((Boolean) obj).booleanValue());\n      }\n      else if (obj instanceof Double)\n      {\n        value = new XNumber(((Double) obj).doubleValue());\n      }\n      else if (obj instanceof DocumentFragment)\n      {\n        int handle = xctxt.getDTMHandleFromNode((DocumentFragment)obj);\n        \n        value = new XRTreeFrag(handle, xctxt);\n      }\n      else if (obj instanceof DTM)\n      {\n        DTM dtm = (DTM)obj;\n        DTMIterator iterator = new DescendantIterator();\n        iterator.setRoot(dtm.getDocument(), xctxt);\n        value = new XNodeSet(iterator);\n      }\n      else if (obj instanceof DTMAxisIterator)\n      {\n        DTMAxisIterator iter = (DTMAxisIterator)obj;\n        DTMIterator iterator = new OneStepIterator(iter, -1);\n        value = new XNodeSet(iterator);\n      }\n      else if (obj instanceof DTMIterator)\n      {\n        value = new XNodeSet((DTMIterator) obj);\n      }\n      else if (obj instanceof NodeIterator)\n      {\n        value = new XNodeSet(new org.apache.xpath.NodeSetDTM(((NodeIterator)obj), xctxt));\n      }\n      else if (obj instanceof org.w3c.dom.Node)\n      {\n        value =\n          new XNodeSet(xctxt.getDTMHandleFromNode((org.w3c.dom.Node) obj),\n                       xctxt.getDTMManager());\n      }\n      else\n      {\n        value = new XString(obj.toString());\n      }\n\n      int type = value.getType();\n      String s;\n\n      switch (type)\n      {\n      case XObject.CLASS_BOOLEAN :\n      case XObject.CLASS_NUMBER :\n      case XObject.CLASS_STRING :\n        s = value.str();\n\n        rtreeHandler.characters(s.toCharArray(), 0, s.length());\n        break;\n\n        DTMIterator nl = value.iter();\n        \n        int pos;\n\n        while (DTM.NULL != (pos = nl.nextNode()))\n        {\n          DTM dtm = nl.getDTM(pos);\n          int top = pos;\n\n          while (DTM.NULL != pos)\n          {\n            rtreeHandler.flushPending();\n            ClonerToResultTree.cloneToResultTree(pos, dtm.getNodeType(pos), \n                                                   dtm, rtreeHandler, true);\n\n            int nextNode = dtm.getFirstChild(pos);\n\n            while (DTM.NULL == nextNode)\n            {\n              if (DTM.ELEMENT_NODE == dtm.getNodeType(pos))\n              {\n                rtreeHandler.endElement(\"\", \"\", dtm.getNodeName(pos));\n              }\n\n              if (top == pos)\n                break;\n\n              nextNode = dtm.getNextSibling(pos);\n\n              if (DTM.NULL == nextNode)\n              {\n                pos = dtm.getParent(pos);\n\n                if (top == pos)\n                {\n                  if (DTM.ELEMENT_NODE == dtm.getNodeType(pos))\n                  {\n                    rtreeHandler.endElement(\"\", \"\", dtm.getNodeName(pos));\n                  }\n\n                  nextNode = DTM.NULL;\n\n                  break;\n                }\n              }\n            }\n\n            pos = nextNode;\n          }\n        }\n        break;\n      case XObject.CLASS_RTREEFRAG :\n        SerializerUtils.outputResultTreeFragment(\n            rtreeHandler, value, transformer.getXPathContext());\n        break;\n      }\n    }\n    catch(org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);", "functions": [{"function_name": "getTransformer", "code": "  public TransformerImpl getTransformer()\n  {\n    return transformer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStylesheet", "code": "  public Stylesheet getStylesheet()\n  {\n    return stylesheetTree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSourceTree", "code": "  public org.w3c.dom.Node getSourceTree()\n  {\n    return sourceTree.getNode(sourceTree.getDocumentRoot(sourceNode));", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getContextNode", "code": "  public org.w3c.dom.Node getContextNode()\n  {\n    return sourceTree.getNode(sourceNode);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMode", "code": "  public QName getMode()\n  {\n    return mode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "outputToResultTree", "code": "  public void outputToResultTree(Stylesheet stylesheetTree, Object obj)\n          throws TransformerException, java.net.MalformedURLException,\n                 java.io.FileNotFoundException, java.io.IOException\n  {\n\n    try\n    {\n      SerializationHandler rtreeHandler = transformer.getResultTreeHandler();\n      XPathContext xctxt = transformer.getXPathContext();\n      XObject value;\n\n      if (obj instanceof XObject)\n      {\n        value = (XObject) obj;\n      }\n      else if (obj instanceof String)\n      {\n        value = new XString((String) obj);\n      }\n      else if (obj instanceof Boolean)\n      {\n        value = new XBoolean(((Boolean) obj).booleanValue());\n      }\n      else if (obj instanceof Double)\n      {\n        value = new XNumber(((Double) obj).doubleValue());\n      }\n      else if (obj instanceof DocumentFragment)\n      {\n        int handle = xctxt.getDTMHandleFromNode((DocumentFragment)obj);\n        \n        value = new XRTreeFrag(handle, xctxt);\n      }\n      else if (obj instanceof DTM)\n      {\n        DTM dtm = (DTM)obj;\n        DTMIterator iterator = new DescendantIterator();\n        iterator.setRoot(dtm.getDocument(), xctxt);\n        value = new XNodeSet(iterator);\n      }\n      else if (obj instanceof DTMAxisIterator)\n      {\n        DTMAxisIterator iter = (DTMAxisIterator)obj;\n        DTMIterator iterator = new OneStepIterator(iter, -1);\n        value = new XNodeSet(iterator);\n      }\n      else if (obj instanceof DTMIterator)\n      {\n        value = new XNodeSet((DTMIterator) obj);\n      }\n      else if (obj instanceof NodeIterator)\n      {\n        value = new XNodeSet(new org.apache.xpath.NodeSetDTM(((NodeIterator)obj), xctxt));\n      }\n      else if (obj instanceof org.w3c.dom.Node)\n      {\n        value =\n          new XNodeSet(xctxt.getDTMHandleFromNode((org.w3c.dom.Node) obj),\n                       xctxt.getDTMManager());\n      }\n      else\n      {\n        value = new XString(obj.toString());\n      }\n\n      int type = value.getType();\n      String s;\n\n      switch (type)\n      {\n      case XObject.CLASS_BOOLEAN :\n      case XObject.CLASS_NUMBER :\n      case XObject.CLASS_STRING :\n        s = value.str();\n\n        rtreeHandler.characters(s.toCharArray(), 0, s.length());\n        break;\n\n        DTMIterator nl = value.iter();\n        \n        int pos;\n\n        while (DTM.NULL != (pos = nl.nextNode()))\n        {\n          DTM dtm = nl.getDTM(pos);\n          int top = pos;\n\n          while (DTM.NULL != pos)\n          {\n            rtreeHandler.flushPending();\n            ClonerToResultTree.cloneToResultTree(pos, dtm.getNodeType(pos), \n                                                   dtm, rtreeHandler, true);\n\n            int nextNode = dtm.getFirstChild(pos);\n\n            while (DTM.NULL == nextNode)\n            {\n              if (DTM.ELEMENT_NODE == dtm.getNodeType(pos))\n              {\n                rtreeHandler.endElement(\"\", \"\", dtm.getNodeName(pos));\n              }\n\n              if (top == pos)\n                break;\n\n              nextNode = dtm.getNextSibling(pos);\n\n              if (DTM.NULL == nextNode)\n              {\n                pos = dtm.getParent(pos);\n\n                if (top == pos)\n                {\n                  if (DTM.ELEMENT_NODE == dtm.getNodeType(pos))\n                  {\n                    rtreeHandler.endElement(\"\", \"\", dtm.getNodeName(pos));\n                  }\n\n                  nextNode = DTM.NULL;\n\n                  break;\n                }\n              }\n            }\n\n            pos = nextNode;\n          }\n        }\n        break;\n      case XObject.CLASS_RTREEFRAG :\n        SerializerUtils.outputResultTreeFragment(\n            rtreeHandler, value, transformer.getXPathContext());\n        break;\n      }\n    }\n    catch(org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "SWITCH", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "IF", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LOOP", "VAR_DECL", "VAR_DECL", "BREAK_CONTINUE", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "LOOP", "VAR_DECL", "CALL", "IF", "BINARY_OP", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [4, 12], [8, 13], [8, 14], [12, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [7, 22], [13, 23], [13, 24], [10, 25], [11, 26], [5, 27], [18, 28], [5, 29], [5, 30], [23, 31], [23, 32], [8, 33], [27, 34], [18, 35], [18, 36], [18, 37], [28, 38], [20, 39], [29, 40], [29, 41], [29, 42], [30, 43], [31, 44], [31, 45], [13, 46], [35, 47], [38, 48], [44, 49], [44, 50], [23, 51], [46, 52], [35, 53], [35, 54], [37, 55], [49, 56], [49, 57], [44, 58], [31, 59], [51, 60], [35, 61], [53, 62], [35, 63], [35, 64], [56, 65], [56, 66], [49, 67], [49, 68], [44, 69], [59, 70], [53, 71], [53, 72], [53, 73], [54, 74], [63, 75], [63, 76], [65, 77], [65, 78], [56, 79], [56, 80], [49, 81], [49, 82], [69, 83], [58, 84], [71, 85], [53, 86], [72, 87], [72, 88], [73, 89], [77, 90], [77, 91], [56, 92], [81, 93], [82, 94], [67, 95], [71, 96], [86, 97], [89, 98], [90, 99], [65, 100], [92, 101], [79, 102], [96, 103], [71, 104], [73, 105], [77, 106], [100, 107], [102, 108], [96, 109], [96, 110], [104, 111], [105, 112], [105, 113], [105, 114], [90, 115], [90, 116], [106, 117], [96, 118], [110, 119], [115, 120], [116, 121], [117, 122], [119, 123], [120, 124], [121, 125], [121, 126], [110, 127], [127, 128], [127, 129], [127, 130], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 4], [13, 8], [14, 8], [15, 12], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 5], [22, 7], [23, 13], [24, 13], [25, 10], [26, 11], [27, 5], [28, 18], [29, 5], [30, 5], [31, 23], [32, 23], [33, 8], [34, 27], [35, 18], [36, 18], [37, 18], [38, 28], [39, 20], [40, 29], [41, 29], [42, 29], [43, 30], [44, 31], [45, 31], [46, 13], [47, 35], [48, 38], [49, 44], [50, 44], [51, 23], [52, 46], [53, 35], [54, 35], [55, 37], [56, 49], [57, 49], [58, 44], [59, 31], [60, 51], [61, 35], [62, 53], [63, 35], [64, 35], [65, 56], [66, 56], [67, 49], [68, 49], [69, 44], [70, 59], [71, 53], [72, 53], [73, 53], [74, 54], [75, 63], [76, 63], [77, 65], [78, 65], [79, 56], [80, 56], [81, 49], [82, 49], [83, 69], [84, 58], [85, 71], [86, 53], [87, 72], [88, 72], [89, 73], [90, 77], [91, 77], [92, 56], [93, 81], [94, 82], [95, 67], [96, 71], [97, 86], [98, 89], [99, 90], [100, 65], [101, 92], [102, 79], [103, 96], [104, 71], [105, 73], [106, 77], [107, 100], [108, 102], [109, 96], [110, 96], [111, 104], [112, 105], [113, 105], [114, 105], [115, 90], [116, 90], [117, 106], [118, 96], [119, 110], [120, 115], [121, 116], [122, 117], [123, 119], [124, 120], [125, 121], [126, 121], [127, 110], [128, 127], [129, 127], [130, 127], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130]]}, {"function_name": "XSLProcessorContext", "code": "  public XSLProcessorContext(TransformerImpl transformer,\n                             Stylesheet stylesheetTree)\n  {\n\n    this.transformer = transformer;\n    this.stylesheetTree = stylesheetTree;\n    org.apache.xpath.XPathContext xctxt = transformer.getXPathContext();\n    this.mode = transformer.getMode();\n    this.sourceNode = xctxt.getCurrentNode();\n    this.sourceTree = xctxt.getDTM(this.sourceNode);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [6, 11], [1, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 6], [12, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 1}
{"sample_id": "xalan-2.7-8506", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/res/XPATHErrorResources_ko.java", "language": "java", "name": "org.apache.xpath.res.XPATHErrorResources_ko", "code": "public class XPATHErrorResources_ko extends ListResourceBundle\n{\n\n/*\n * General notes to translators:\n *\n * This file contains error and warning messages related to XPath Error\n * Handling.\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n *  8) The context node is the node in the document with respect to which an\n *     XPath expression is being evaluated.\n *\n *  9) An iterator is an object that traverses nodes in the tree, one at a time.\n *\n *  10) NCName is an XML term used to describe a name that does not contain a\n *     colon (a \"no-colon name\").\n *\n *  11) QName is an XML term meaning \"qualified name\".\n */\n\n  /** Field MAX_CODE          */\n\n  /** Field MAX_WARNING          */\n\n  /** Field MAX_OTHERS          */\n  public static final int MAX_OTHERS = 20;\n\n  /** Field MAX_MESSAGES          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * static variables\n   */\n  public static final String ERROR0000 = \"ERROR0000\";\n  public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH =\n         \"ER_CURRENT_NOT_ALLOWED_IN_MATCH\";\n  public static final String ER_CURRENT_TAKES_NO_ARGS =\n         \"ER_CURRENT_TAKES_NO_ARGS\";\n  public static final String ER_DOCUMENT_REPLACED = \"ER_DOCUMENT_REPLACED\";\n  public static final String ER_CONTEXT_HAS_NO_OWNERDOC =\n         \"ER_CONTEXT_HAS_NO_OWNERDOC\";\n  public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS =\n         \"ER_LOCALNAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS =\n         \"ER_NAMESPACEURI_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS =\n         \"ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NUMBER_HAS_TOO_MANY_ARGS =\n         \"ER_NUMBER_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAME_HAS_TOO_MANY_ARGS =\n         \"ER_NAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRING_HAS_TOO_MANY_ARGS =\n         \"ER_STRING_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS =\n         \"ER_STRINGLENGTH_HAS_TOO_MANY_ARGS\";\n  public static final String ER_TRANSLATE_TAKES_3_ARGS =\n         \"ER_TRANSLATE_TAKES_3_ARGS\";\n  public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG =\n         \"ER_UNPARSEDENTITYURI_TAKES_1_ARG\";\n  public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED =\n         \"ER_NAMESPACEAXIS_NOT_IMPLEMENTED\";\n  public static final String ER_UNKNOWN_AXIS = \"ER_UNKNOWN_AXIS\";\n  public static final String ER_UNKNOWN_MATCH_OPERATION =\n         \"ER_UNKNOWN_MATCH_OPERATION\";\n  public static final String ER_INCORRECT_ARG_LENGTH =\"ER_INCORRECT_ARG_LENGTH\";\n  public static final String ER_CANT_CONVERT_TO_NUMBER =\n         \"ER_CANT_CONVERT_TO_NUMBER\";\n  public static final String ER_CANT_CONVERT_TO_NODELIST =\n         \"ER_CANT_CONVERT_TO_NODELIST\";\n  public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST =\n         \"ER_CANT_CONVERT_TO_MUTABLENODELIST\";\n  public static final String ER_CANT_CONVERT_TO_TYPE =\"ER_CANT_CONVERT_TO_TYPE\";\n  public static final String ER_EXPECTED_MATCH_PATTERN =\n         \"ER_EXPECTED_MATCH_PATTERN\";\n  public static final String ER_COULDNOT_GET_VAR_NAMED =\n         \"ER_COULDNOT_GET_VAR_NAMED\";\n  public static final String ER_UNKNOWN_OPCODE = \"ER_UNKNOWN_OPCODE\";\n  public static final String ER_EXTRA_ILLEGAL_TOKENS =\"ER_EXTRA_ILLEGAL_TOKENS\";\n  public static final String ER_EXPECTED_DOUBLE_QUOTE =\n         \"ER_EXPECTED_DOUBLE_QUOTE\";\n  public static final String ER_EXPECTED_SINGLE_QUOTE =\n         \"ER_EXPECTED_SINGLE_QUOTE\";\n  public static final String ER_EMPTY_EXPRESSION = \"ER_EMPTY_EXPRESSION\";\n  public static final String ER_EXPECTED_BUT_FOUND = \"ER_EXPECTED_BUT_FOUND\";\n  public static final String ER_INCORRECT_PROGRAMMER_ASSERTION =\n         \"ER_INCORRECT_PROGRAMMER_ASSERTION\";\n  public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL =\n         \"ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL\";\n  public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG\";\n  public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG\";\n  public static final String ER_PREDICATE_ILLEGAL_SYNTAX =\n         \"ER_PREDICATE_ILLEGAL_SYNTAX\";\n  public static final String ER_ILLEGAL_AXIS_NAME = \"ER_ILLEGAL_AXIS_NAME\";\n  public static final String ER_UNKNOWN_NODETYPE = \"ER_UNKNOWN_NODETYPE\";\n  public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED =\n         \"ER_PATTERN_LITERAL_NEEDS_BE_QUOTED\";\n  public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER =\n         \"ER_COULDNOT_BE_FORMATTED_TO_NUMBER\";\n  public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON =\n         \"ER_COULDNOT_CREATE_XMLPROCESSORLIAISON\";\n  public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP =\n         \"ER_DIDNOT_FIND_XPATH_SELECT_EXP\";\n  public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH =\n         \"ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH\";\n  public static final String ER_ERROR_OCCURED = \"ER_ERROR_OCCURED\";\n  public static final String ER_ILLEGAL_VARIABLE_REFERENCE =\n         \"ER_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String ER_AXES_NOT_ALLOWED = \"ER_AXES_NOT_ALLOWED\";\n  public static final String ER_KEY_HAS_TOO_MANY_ARGS =\n         \"ER_KEY_HAS_TOO_MANY_ARGS\";\n  public static final String ER_COUNT_TAKES_1_ARG = \"ER_COUNT_TAKES_1_ARG\";\n  public static final String ER_COULDNOT_FIND_FUNCTION =\n         \"ER_COULDNOT_FIND_FUNCTION\";\n  public static final String ER_UNSUPPORTED_ENCODING =\"ER_UNSUPPORTED_ENCODING\";\n  public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING =\n         \"ER_PROBLEM_IN_DTM_NEXTSIBLING\";\n  public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL =\n         \"ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL\";\n  public static final String ER_SETDOMFACTORY_NOT_SUPPORTED =\n         \"ER_SETDOMFACTORY_NOT_SUPPORTED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_PARSE_NOT_SUPPORTED = \"ER_PARSE_NOT_SUPPORTED\";\n  public static final String ER_SAX_API_NOT_HANDLED = \"ER_SAX_API_NOT_HANDLED\";\npublic static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =\n         \"ER_IGNORABLE_WHITESPACE_NOT_HANDLED\";\n  public static final String ER_DTM_CANNOT_HANDLE_NODES =\n         \"ER_DTM_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_CANNOT_HANDLE_NODES =\n         \"ER_XERCES_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_PARSE_ERROR_DETAILS =\n         \"ER_XERCES_PARSE_ERROR_DETAILS\";\n  public static final String ER_XERCES_PARSE_ERROR = \"ER_XERCES_PARSE_ERROR\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_CANNOT_CREATE_URL = \"ER_CANNOT_CREATE_URL\";\n  public static final String ER_XPATH_READOBJECT = \"ER_XPATH_READOBJECT\";\n public static final String ER_FUNCTION_TOKEN_NOT_FOUND =\n         \"ER_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String ER_CANNOT_DEAL_XPATH_TYPE =\n         \"ER_CANNOT_DEAL_XPATH_TYPE\";\n  public static final String ER_NODESET_NOT_MUTABLE = \"ER_NODESET_NOT_MUTABLE\";\n  public static final String ER_NODESETDTM_NOT_MUTABLE =\n         \"ER_NODESETDTM_NOT_MUTABLE\";\n   /**  Variable not resolvable:   */\n  public static final String ER_VAR_NOT_RESOLVABLE = \"ER_VAR_NOT_RESOLVABLE\";\n   /** Null error handler  */\n public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n   /**  Programmer's assertion: unknown opcode  */\n  public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE =\n         \"ER_PROG_ASSERT_UNKNOWN_OPCODE\";\n   /**  0 or 1   */\n  public static final String ER_ZERO_OR_ONE = \"ER_ZERO_OR_ONE\";\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =\n         \"ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = \"ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  fsb() not supported for XStringForChars   */\n  public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS =\n         \"ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS\";\n   /**  Could not find variable with the name of   */\n public static final String ER_COULD_NOT_FIND_VAR = \"ER_COULD_NOT_FIND_VAR\";\n   /**  XStringForChars can not take a string for an argument   */\n public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING =\n         \"ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING\";\n   /**  The FastStringBuffer argument can not be null   */\n public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL =\n         \"ER_FASTSTRINGBUFFER_CANNOT_BE_NULL\";\n   /**  2 or 3   */\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n   /** Variable accessed before it is bound! */\n  public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND =\n         \"ER_VARIABLE_ACCESSED_BEFORE_BIND\";\n   /** XStringForFSB can not take a string for an argument! */\n public static final String ER_FSB_CANNOT_TAKE_STRING =\n         \"ER_FSB_CANNOT_TAKE_STRING\";\n   /** Error! Setting the root of a walker to null! */\n  public static final String ER_SETTING_WALKER_ROOT_TO_NULL =\n         \"ER_SETTING_WALKER_ROOT_TO_NULL\";\n   /** This NodeSetDTM can not iterate to a previous node! */\n  public static final String ER_NODESETDTM_CANNOT_ITERATE =\n         \"ER_NODESETDTM_CANNOT_ITERATE\";\n  /** This NodeSet can not iterate to a previous node! */\n public static final String ER_NODESET_CANNOT_ITERATE =\n         \"ER_NODESET_CANNOT_ITERATE\";\n  /** This NodeSetDTM can not do indexing or counting functions! */\n  public static final String ER_NODESETDTM_CANNOT_INDEX =\n         \"ER_NODESETDTM_CANNOT_INDEX\";\n  /** This NodeSet can not do indexing or counting functions! */\n  public static final String ER_NODESET_CANNOT_INDEX =\n         \"ER_NODESET_CANNOT_INDEX\";\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n  public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE =\n         \"ER_CANNOT_CALL_SETSHOULDCACHENODE\";\n  /** {0} only allows {1} arguments */\n public static final String ER_ONLY_ALLOWS = \"ER_ONLY_ALLOWS\";\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n  public static final String ER_UNKNOWN_STEP = \"ER_UNKNOWN_STEP\";\n  /** Problem with RelativeLocationPath */\n  public static final String ER_EXPECTED_REL_LOC_PATH =\n         \"ER_EXPECTED_REL_LOC_PATH\";\n  /** Problem with LocationPath */\n  public static final String ER_EXPECTED_LOC_PATH = \"ER_EXPECTED_LOC_PATH\";\n  /** Problem with Step */\n  public static final String ER_EXPECTED_LOC_STEP = \"ER_EXPECTED_LOC_STEP\";\n  /** Problem with NodeTest */\n  public static final String ER_EXPECTED_NODE_TEST = \"ER_EXPECTED_NODE_TEST\";\n  /** Expected step pattern */\n  public static final String ER_EXPECTED_STEP_PATTERN =\n        \"ER_EXPECTED_STEP_PATTERN\";\n  /** Expected relative path pattern */\n  public static final String ER_EXPECTED_REL_PATH_PATTERN =\n         \"ER_EXPECTED_REL_PATH_PATTERN\";\n  /** localname in QNAME should be a valid NCName */\n  /** prefix in QNAME should be a valid NCName */\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n  public static final String ER_CANT_CONVERT_TO_BOOLEAN =\n         \"ER_CANT_CONVERT_TO_BOOLEAN\";\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n  public static final String ER_CANT_CONVERT_TO_SINGLENODE =\n         \"ER_CANT_CONVERT_TO_SINGLENODE\";\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n  public static final String ER_CANT_GET_SNAPSHOT_LENGTH =\n         \"ER_CANT_GET_SNAPSHOT_LENGTH\";\n  /** Field ER_NON_ITERATOR_TYPE                */\n  public static final String ER_NON_ITERATOR_TYPE = \"ER_NON_ITERATOR_TYPE\";\n  /** Field ER_DOC_MUTATED                      */\n  public static final String ER_DOC_MUTATED = \"ER_DOC_MUTATED\";\n  public static final String ER_INVALID_XPATH_TYPE = \"ER_INVALID_XPATH_TYPE\";\n  public static final String ER_EMPTY_XPATH_RESULT = \"ER_EMPTY_XPATH_RESULT\";\n  public static final String ER_INCOMPATIBLE_TYPES = \"ER_INCOMPATIBLE_TYPES\";\n  public static final String ER_NULL_RESOLVER = \"ER_NULL_RESOLVER\";\n  public static final String ER_CANT_CONVERT_TO_STRING =\n         \"ER_CANT_CONVERT_TO_STRING\";\n  public static final String ER_NON_SNAPSHOT_TYPE = \"ER_NON_SNAPSHOT_TYPE\";\n  public static final String ER_WRONG_DOCUMENT = \"ER_WRONG_DOCUMENT\";\n  /* Note to translators:  The XPath expression cannot be evaluated with respect\n   * to this type of node.\n   */\n  /** Field ER_WRONG_NODETYPE                    */\n  public static final String ER_WRONG_NODETYPE = \"ER_WRONG_NODETYPE\";\n  public static final String ER_XPATH_ERROR = \"ER_XPATH_ERROR\";\n\n  public static final String WG_LOCALE_NAME_NOT_HANDLED =\n         \"WG_LOCALE_NAME_NOT_HANDLED\";\n  public static final String WG_PROPERTY_NOT_SUPPORTED =\n         \"WG_PROPERTY_NOT_SUPPORTED\";\n  public static final String WG_DONT_DO_ANYTHING_WITH_NS =\n         \"WG_DONT_DO_ANYTHING_WITH_NS\";\n  public static final String WG_SECURITY_EXCEPTION = \"WG_SECURITY_EXCEPTION\";\n  public static final String WG_QUO_NO_LONGER_DEFINED =\n         \"WG_QUO_NO_LONGER_DEFINED\";\n  public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST =\n         \"WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST\";\n  public static final String WG_FUNCTION_TOKEN_NOT_FOUND =\n         \"WG_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String WG_COULDNOT_FIND_FUNCTION =\n         \"WG_COULDNOT_FIND_FUNCTION\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED =\n         \"WG_EXPAND_ENTITIES_NOT_SUPPORTED\";\n  public static final String WG_ILLEGAL_VARIABLE_REFERENCE =\n         \"WG_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String WG_UNSUPPORTED_ENCODING =\"WG_UNSUPPORTED_ENCODING\";\n\n\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return new Object[][]{\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"\\uc77c\\uce58 \\ud328\\ud134\\uc5d0\\uc11c current() \\ud568\\uc218\\uac00 \\ud5c8\\uc6a9\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"current() \\ud568\\uc218\\uac00 \\uc778\\uc218\\ub97c \\uc2b9\\uc778\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"document() \\ud568\\uc218 \\uad6c\\ud604\\uc774 org.apache.xalan.xslt.FuncDocument\\ub85c \\ubc14\\ub00c\\uc5c8\\uc2b5\\ub2c8\\ub2e4!\"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"\\ubb38\\ub9e5\\uc5d0 \\uc18c\\uc720\\uc790 \\ubb38\\uc11c\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"local-name()\\uc774 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"namespace-uri()\\uac00 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"normalize-space()\\uac00 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"number()\\uac00 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"name()\\uc774 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"string()\\uc774 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"string-length()\\uac00 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"translate() \\ud568\\uc218\\uac00 \\uc138 \\uac1c\\uc758 \\uc778\\uc218\\ub97c \\ucde8\\ud569\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"unparsed-entity-uri \\ud568\\uc218\\ub294 \\ud558\\ub098\\uc758 \\uc778\\uc218\\ub97c \\ucde8\\ud574\\uc57c \\ud569\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"\\uc774\\ub984 \\uacf5\\uac04 \\ucd95\\uc774 \\uc544\\uc9c1 \\uad6c\\ud604\\ub418\\uc9c0 \\uc54a\\uc558\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"\\uc54c \\uc218 \\uc5c6\\ub294 \\ucd95: {0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"\\uc54c \\uc218 \\uc5c6\\ub294 \\uc77c\\uce58 \\uc870\\uc791\\uc785\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"processing-instruction() node \\ud14c\\uc2a4\\ud2b8\\uc758 \\uc778\\uc218 \\uae38\\uc774\\uac00 \\uc62c\\ubc14\\ub974\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"{0}\\uc744(\\ub97c) \\uc22b\\uc790\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"{0}\\uc744(\\ub97c) NodeList\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"{0}\\uc744(\\ub97c) NodeSetDTM\\uc73c\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"{0}\\uc744(\\ub97c) \\uc720\\ud615 \\ubc88\\ud638 {1}(\\uc73c)\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"getMatchScore\\uc5d0\\uc11c \\ud328\\ud134\\uc774 \\uc77c\\uce58\\ud560 \\uac83\\uc774\\ub77c \\uc608\\uc0c1\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"\\uc774\\ub984\\uc774 {0}\\uc778 \\ubcc0\\uc218\\ub97c \\uac00\\uc838\\uc62c \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"\\uc624\\ub958! \\uc54c \\uc218 \\uc5c6\\ub294 op \\ucf54\\ub4dc: {0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"\\uc720\\ud6a8\\ud558\\uc9c0 \\uc54a\\uc740 \\ucd94\\uac00 \\ud1a0\\ud070: {0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"\\ub530\\uc634\\ud45c\\uac00 \\ud2c0\\ub9b0 \\ub9ac\\ud130\\ub7f4... \\ud070 \\ub530\\uc634\\ud45c\\ub97c \\uc608\\uc0c1\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"\\ub530\\uc634\\ud45c\\uac00 \\ud2c0\\ub9b0 \\ub9ac\\ud130\\ub7f4... \\uc791\\uc740 \\ub530\\uc634\\ud45c\\ub97c \\uc608\\uc0c1\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"\\ube48 \\ud45c\\ud604\\uc2dd!\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"{0}\\uc744(\\ub97c) \\uc608\\uc0c1\\ud588\\uc73c\\ub098 {1}\\uc774(\\uac00) \\ubc1c\\uacac\\ub428\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"\\ud504\\ub85c\\uadf8\\ub798\\uba38 \\ub2e8\\uc5b8\\ubb38\\uc774 \\uc62c\\ubc14\\ub974\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4! - {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"19990709 XPath \\ucd08\\uc548\\uc5d0\\uc11c\\ub294 \\ubd80\\uc6b8(...) \\uc778\\uc218\\uac00 \\ub354 \\uc774\\uc0c1 \\uc120\\ud0dd\\uc801\\uc774\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"','\\ub97c \\ubc1c\\uacac\\ud588\\uc73c\\ub098 \\uadf8 \\uc55e\\uc5d0 \\uc5b4\\ub5a0\\ud55c \\uc778\\uc218\\ub3c4 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"','\\ub97c \\ubc1c\\uacac\\ud588\\uc73c\\ub098 \\ub4a4\\uc5d0 \\uc5b4\\ub5a0\\ud55c \\uc778\\uc218\\ub3c4 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"'..[predicate]' \\ub610\\ub294 '.[predicate]'\\ub294 \\uc720\\ud6a8\\ud558\\uc9c0 \\uc54a\\uc740 \\uad6c\\ubb38\\uc785\\ub2c8\\ub2e4.  \\ub300\\uc2e0 'self::node()[predicate]'\\ub97c \\uc0ac\\uc6a9\\ud558\\uc2ed\\uc2dc\\uc624.\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"\\uc720\\ud6a8\\ud558\\uc9c0 \\uc54a\\uc740 \\ucd95 \\uc774\\ub984: {0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"\\uc54c \\uc218 \\uc5c6\\ub294 \\ub178\\ub4dc \\uc720\\ud615: {0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"\\ud328\\ud134 \\ub9ac\\ud130\\ub7f4({0})\\uc740 \\ub530\\uc634\\ud45c\\uac00 \\uc788\\uc5b4\\uc57c \\ud569\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"{0}\\uc740(\\ub294) \\uc22b\\uc790\\ub85c \\ud3ec\\ub9f7\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"XML TransformerFactory Liaison\\uc744 \\uc791\\uc131\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"\\uc624\\ub958! xpath \\uc120\\ud0dd \\ud45c\\ud604\\uc2dd(-select)\\uc744 \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"\\uc624\\ub958! OP_LOCATIONPATH \\ub4a4\\uc5d0 ENDOP\\ub97c \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"\\uc624\\ub958\\uac00 \\ubc1c\\uc0dd\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"\\ubcc0\\uc218\\uc5d0 \\ub300\\ud574 \\uc8fc\\uc5b4\\uc9c4 VariableReference\\uac00 \\ubc94\\uc704\\ub97c \\ubc97\\uc5b4\\ub0ac\\uac70\\ub098 \\uc815\\uc758\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!  \\uc774\\ub984 = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"\\ud558\\uc704:: \\ubc0f \\uc18d\\uc131:: \\ucd95\\ub9cc \\ud328\\ud134\\uc5d0 \\uc77c\\uce58\\ud560 \\uc218 \\uc788\\uc2b5\\ub2c8\\ub2e4!  \\uc704\\ubc18 \\ucd95 = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"key()\\uc758 \\uc778\\uc218 \\uc218\\uac00 \\uc62c\\ubc14\\ub974\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"count \\ud568\\uc218\\ub294 \\ud558\\ub098\\uc758 \\uc778\\uc218\\ub97c \\ucde8\\ud574\\uc57c \\ud569\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"\\ud568\\uc218\\ub97c \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"\\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\ub294 \\uc778\\ucf54\\ub529: {0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"getNextSibling\\uc758 DTM\\uc5d0 \\ubb38\\uc81c\\uac00 \\ubc1c\\uc0dd\\ud588\\uc2b5\\ub2c8\\ub2e4... \\ubcf5\\uad6c \\uc2dc\\ub3c4 \\uc911\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"\\ud504\\ub85c\\uadf8\\ub798\\uba38 \\uc624\\ub958: EmptyNodeList\\ub97c \\uc4f8 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"XPathContext\\uc5d0\\uc11c setDOMFactory\\ub97c \\uc9c0\\uc6d0\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"\\uc811\\ub450\\ubd80\\ub294 \\uc774\\ub984 \\uacf5\\uac04\\uc73c\\ub85c \\ubd84\\uc11d\\ub418\\uc5b4\\uc57c \\ud569\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"XPathContext\\uc5d0\\uc11c \\uad6c\\ubb38 \\ubd84\\uc11d(InputSource \\uc18c\\uc2a4)\\uc774 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4! {0}\\uc744(\\ub97c) \\uc5f4 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"SAX API \\ubb38\\uc790(char ch[]... \\uac00 DTM\\uc5d0 \\uc758\\ud574 \\ucc98\\ub9ac\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"ignorableWhitespace(char ch[]... \\uac00 DTM\\uc5d0 \\uc758\\ud574 \\ucc98\\ub9ac\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison\\uc774 {0} \\uc720\\ud615\\uc758 \\ub178\\ub4dc\\ub97c \\ucc98\\ub9ac\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper\\uac00 {0} \\uc720\\ud615\\uc758 \\ub178\\ub4dc\\ub97c \\ucc98\\ub9ac\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"DOM2Helper.parse \\uc624\\ub958: \\uc2dc\\uc2a4\\ud15c ID - {0} \\ud68c\\uc120 - {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"DOM2Helper.parse \\uc624\\ub958\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"\\uc798\\ubabb\\ub41c UTF-16 \\ub300\\ub9ac\\uc790(surrogate)\\uac00 \\ubc1c\\uacac\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4: {0} ?\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"IO \\uc624\\ub958\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"url\\uc744 \\uc791\\uc131\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"XPath.readObject\\uc758 {0}\"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\ud568\\uc218 \\ud1a0\\ud070\\uc774 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"XPath \\uc720\\ud615\\uc744 \\ucc98\\ub9ac\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"\\uc774 NodeSet\\uac00 \\uac00\\ubcc0\\uc801\\uc774\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"\\uc774 NodeSetDTM\\uc774 \\uac00\\ubcc0\\uc801\\uc774\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"\\ubcc0\\uc218\\ub97c \\ubd84\\uc11d\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"\\ub110(null) \\uc624\\ub958 \\ud578\\ub4e4\\ub7ec\"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"\\ud504\\ub85c\\uadf8\\ub798\\uba38\\uc758 \\ub2e8\\uc5b8\\ubb38: \\uc54c \\uc218 \\uc5c6\\ub294 op \\ucf54\\ub4dc: {0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 \\ub610\\ub294 1\"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"XRTreeFragSelectWrapper\\uc5d0\\uc11c rtf()\\ub97c \\uc9c0\\uc6d0\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"XRTreeFragSelectWrapper\\uc5d0\\uc11c asNodeIterator()\\ub97c \\uc9c0\\uc6d0\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"XStringForChars\\uc5d0 \\ub300\\ud574 fsb()\\uac00 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"\\uc774\\ub984\\uc774 {0}\\uc778 \\ubcc0\\uc218\\ub97c \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"XStringForChars\\ub294 \\uc778\\uc218\\ub85c \\ubb38\\uc790\\uc5f4\\uc744 \\uac00\\uc838\\uc62c \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"FastStringBuffer \\uc778\\uc218\\ub294 \\ub110(null)\\uc774 \\ub420 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 \\ub610\\ub294 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"\\ubcc0\\uc218\\uac00 \\ubc14\\uc778\\ub4dc\\ub418\\uae30 \\uc804\\uc5d0 \\ubcc0\\uc218\\uc5d0 \\uc561\\uc138\\uc2a4\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"XStringForFSB\\ub294 \\uc778\\uc218\\ub85c \\ubb38\\uc790\\uc5f4\\uc744 \\ucde8\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n !!!! \\uc624\\ub958! \\uc6cc\\ucee4\\uc758 \\ub8e8\\ud2b8\\ub85c \\ub110(null)\\uc774 \\uc124\\uc815\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4!!!\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"\\uc774 NodeSetDTM\\uc740 \\uc774\\uc804 \\ub178\\ub4dc\\ub85c \\ubc18\\ubcf5\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"\\uc774 NodeSet\\ub294 \\uc774\\uc804 \\ub178\\ub4dc\\ub85c \\ubc18\\ubcf5\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"\\uc774 NodeSetDTM\\uc740 \\uc0c9\\uc778 \\ub610\\ub294 \\uce74\\uc6b4\\ud305 \\ud568\\uc218\\ub97c \\uc0ac\\uc6a9\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"\\uc774 NodeSet\\ub294 \\uc0c9\\uc778 \\ub610\\ub294 \\uce74\\uc6b4\\ud305 \\ud568\\uc218\\ub97c \\uc0ac\\uc6a9\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"nextNode\\uac00 \\ud638\\ucd9c\\ub41c \\ud6c4\\uc5d0 setShouldCacheNodes\\ub97c \\ud638\\ucd9c\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"{0}\\uc740(\\ub294) {1} \\uc778\\uc218\\ub9cc\\uc744 \\ud5c8\\uc6a9\\ud569\\ub2c8\\ub2e4.\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"getNextStepPos\\uc5d0 \\ud504\\ub85c\\uadf8\\ub798\\uba38\\uc758 \\ub2e8\\uc5b8\\ubb38: \\uc54c \\uc218 \\uc5c6\\ub294 stepType: {0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"\\uc704\\uce58 \\uacbd\\ub85c\\uac00 \\uc608\\uc0c1\\ub418\\uc5c8\\uc9c0\\ub9cc \\ub2e4\\uc74c \\ud1a0\\ud070\\uc774 \\ubc1c\\uacac\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4\\u003a  {0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"NCName:* \\ub610\\ub294 QName\\uacfc \\uc77c\\uce58\\ud558\\ub294 \\ub178\\ub4dc \\ud14c\\uc2a4\\ud2b8\\uac00 \\uc608\\uc0c1\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"\\ub2e8\\uacc4 \\ud328\\ud134\\uc774 \\uc608\\uc0c1\\ub418\\uc5c8\\uc9c0\\ub9cc '/'\\uac00 \\ubc1c\\uacac\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"\\uad00\\ub828 \\uacbd\\ub85c \\ud328\\ud134\\uc774 \\uc608\\uc0c1\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"{0}\\uc744(\\ub97c) \\ubd80\\uc6b8\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"{0}\\uc744(\\ub97c) \\ub2e8\\uc77c \\ub178\\ub4dc\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. \\uc774\\ub7ec\\ud55c getter \\uc740 ANY_UNORDERED_NODE_TYPE \\ubc0f FIRST_ORDERED_NODE_TYPE \\uc720\\ud615\\uc5d0 \\uc801\\uc6a9\\ub429\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"{0} \\uc720\\ud615\\uc5d0 \\ub300\\ud55c \\uc2a4\\ub0c5\\uc0f7 \\uae38\\uc774\\ub97c \\uac00\\uc838\\uc62c \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. \\uc774\\ub7ec\\ud55c getter \\uc740 UNORDERED_NODE_SNAPSHOT_TYPE \\ubc0f ORDERED_NODE_SNAPSHOT_TYPE \\uc720\\ud615\\uc5d0 \\uc801\\uc6a9\\ub429\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"\\ube44 \\ubc18\\ubcf5\\uae30 \\uc720\\ud615 {0}\\uc5d0 \\ub300\\ud574 \\ubc18\\ubcf5\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"\\uacb0\\uacfc\\uac00 \\ub9ac\\ud134\\ub418\\uc5c8\\uc73c\\ubbc0\\ub85c \\ubb38\\uc11c\\uac00 \\ubcc0\\uacbd\\ub429\\ub2c8\\ub2e4. \\ubc18\\ubcf5\\uae30\\uac00 \\uc62c\\ubc14\\ub974\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"\\uc798\\ubabb\\ub41c XPath \\uc720\\ud615 \\uc778\\uc218: {0}\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"\\ube44\\uc5b4 \\uc788\\ub294 XPath result \\uc624\\ube0c\\uc81d\\ud2b8\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"\\ub9ac\\ud134\\ub41c \\uc720\\ud615 {0}\\uc740(\\ub294) \\uc9c0\\uc815\\ub41c \\uc720\\ud615 {1}(\\uc73c)\\ub85c \\uac15\\uc81c \\uc9c0\\uc815\\ub420 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"\\ub110(null) \\uc811\\ub450\\ubd80 \\ubd84\\uc11d\\uae30\\ub85c \\uc811\\ub450\\ubd80\\ub97c \\ubd84\\uc11d\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"{0}\\uc744(\\ub97c) \\ubb38\\uc790\\uc5f4\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"{0} \\uc720\\ud615\\uc5d0 \\ub300\\ud55c snapshotItem\\uc744 \\ud638\\ucd9c\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. \\uc774\\ub7ec\\ud55c \\ubc29\\ubc95\\uc740 UNORDERED_NODE_SNAPSHOT_TYPE \\ubc0f ORDERED_NODE_SNAPSHOT_TYPE \\uc720\\ud615\\uc5d0 \\uc801\\uc6a9\\ub429\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"\\ucee8\\ud14d\\uc2a4\\ud2b8 \\ub178\\ub4dc\\ub294 \\uc774 XPathEvaluator\\ub85c \\ubc14\\uc778\\ub4dc\\ub418\\ub294 \\ubb38\\uc11c\\uc5d0 \\ud3ec\\ud568\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"\\ucee8\\ud14d\\uc2a4\\ud2b8 \\ub178\\ub4dc \\uc720\\ud615\\uc774 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"XPath\\uc758 \\uc54c \\uc218 \\uc5c6\\ub294 \\uc624\\ub958.\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"format-number \\ud568\\uc218\\uc5d0 \\uc788\\ub294 \\ub85c\\ucf00\\uc77c \\uc774\\ub984\\uc774 \\uc544\\uc9c1 \\ucc98\\ub9ac\\ub418\\uc9c0 \\uc54a\\uc558\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"XSL \\ud2b9\\uc131\\uc774 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"\\ud2b9\\uc131\\uc5d0\\uc11c {0} \\uc774\\ub984 \\uacf5\\uac04\\uacfc \\uad00\\ub828\\ud558\\uc5ec \\ud604\\uc7ac \\uc544\\ubb34\\ub7f0 \\uc791\\uc5c5\\ub3c4 \\uc218\\ud589\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4: {1}\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"XSL \\uc2dc\\uc2a4\\ud15c \\ud2b9\\uc131\\uc5d0 \\uc561\\uc138\\uc2a4 \\uc2dc\\ub3c4 \\uc911 SecurityException: {0}\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"\\uc774\\uc804 \\uad6c\\ubb38: quo(...)\\uac00 \\ub354 \\uc774\\uc0c1 XPath\\uc5d0 \\uc815\\uc758\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"nodeTest\\ub97c \\uad6c\\ud604\\ud558\\ub824\\uba74 XPath\\uc5d0 \\ub3c4\\ucd9c\\ub41c \\uc624\\ube0c\\uc81d\\ud2b8\\uac00 \\uc788\\uc5b4\\uc57c \\ud569\\ub2c8\\ub2e4!\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\ud568\\uc218 \\ud1a0\\ud070\\uc774 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"\\ud568\\uc218\\ub97c \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"{0}\\uc5d0\\uc11c URL\\uc744 \\uc791\\uc131\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"DTM \\uad6c\\ubb38 \\ubd84\\uc11d\\uae30\\uc5d0 \\ub300\\ud574 -E \\uc635\\uc158\\uc774 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"\\ubcc0\\uc218\\uc5d0 \\ub300\\ud574 \\uc8fc\\uc5b4\\uc9c4 VariableReference\\uac00 \\ubc94\\uc704\\ub97c \\ubc97\\uc5b4\\ub0ac\\uac70\\ub098 \\uc815\\uc758\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4! \\uc774\\ub984 = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"\\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\ub294 \\uc778\\ucf54\\ub529: {0}\"},\n\n\n\n  { \"ui_language\", \"ko\"},\n  { \"help_language\", \"ko\"},\n  { \"language\", \"ko\"},\n  { \"BAD_CODE\", \"createMessage\\uc5d0 \\ub300\\ud55c \\ub9e4\\uac1c\\ubcc0\\uc218\\uac00 \\ubc94\\uc704\\ub97c \\ubc97\\uc5b4\\ub0a8\"},\n  { \"FORMAT_FAILED\", \"messageFormat \\ud638\\ucd9c \\uc911 \\uc608\\uc678 \\ubc1c\\uc0dd\"},\n  { \"version\", \">>>>>>> Xalan \\ubc84\\uc804 \"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"\\uc608\"},\n  { \"line\", \"\\ud589 #\"},\n  { \"column\", \"\\uc5f4 #\"},\n  { \"xsldone\", \"XSLProcessor: \\uc644\\ub8cc\"},\n  { \"xpath_option\", \"xpath \\uc635\\uc158: \"},\n  { \"optionIN\", \"[-in inputXMLURL]\"},\n  { \"optionSelect\", \"[-select xpath expression]\"},\n  { \"optionMatch\", \"[-match match pattern (\\uc77c\\uce58 \\uc9c4\\ub2e8\\uc744 \\uc704\\ud574)]\"},\n  { \"optionAnyExpr\", \"\\ub610\\ub294 xpath \\ud45c\\ud604\\uc2dd\\ub9cc\\uc73c\\ub85c \\uc9c4\\ub2e8 \\ub364\\ud504\\uac00 \\uc218\\ud589\\ub420 \\uac83\\uc785\\ub2c8\\ub2e4.\"},\n  { \"noParsermsg1\", \"XSL \\ud504\\ub85c\\uc138\\uc2a4\\uac00 \\uc2e4\\ud328\\ud588\\uc2b5\\ub2c8\\ub2e4.\"},\n  { \"noParsermsg2\", \"** \\uad6c\\ubb38 \\ubd84\\uc11d\\uae30\\ub97c \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. **\"},\n  { \"noParsermsg3\", \"\\ud074\\ub798\\uc2a4 \\uacbd\\ub85c\\ub97c \\uc810\\uac80\\ud558\\uc2ed\\uc2dc\\uc624.\"},\n  { \"noParsermsg4\", \"Java\\uc6a9 IBM XML \\uad6c\\ubb38 \\ubd84\\uc11d\\uae30\\uac00 \\uc5c6\\uc73c\\uba74\"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }\n\n  };\n  }\n\n\n\n  /** Field BAD_CODE          */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** Field FORMAT_FAILED          */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** Field ERROR_RESOURCES          */\n  public static final String ERROR_RESOURCES =\n    \"org.apache.xpath.res.XPATHErrorResources\";\n\n  /** Field ERROR_STRING          */\n  public static final String ERROR_STRING = \"#error\";\n\n  /** Field ERROR_HEADER          */\n  public static final String ERROR_HEADER = \"\\uc624\\ub958: \";\n\n  /** Field WARNING_HEADER          */\n  public static final String WARNING_HEADER = \"\\uacbd\\uace0: \";\n\n  /** Field XSL_HEADER          */\n  public static final String XSL_HEADER = \"XSL \";\n\n  /** Field XML_HEADER          */\n  public static final String XML_HEADER = \"XML \";\n\n  /** Field QUERY_HEADER          */\n  public static final String QUERY_HEADER = \"PATTERN \";\n\n\n  /**\n   * Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   * of ResourceBundle.getBundle().\n   *\n   * @param className Name of local-specific subclass.\n   * @return the ResourceBundle\n   * @throws MissingResourceException\n   */\n  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"ko\", \"KR\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return new Object[][]{\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"\\uc77c\\uce58 \\ud328\\ud134\\uc5d0\\uc11c current() \\ud568\\uc218\\uac00 \\ud5c8\\uc6a9\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"current() \\ud568\\uc218\\uac00 \\uc778\\uc218\\ub97c \\uc2b9\\uc778\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"document() \\ud568\\uc218 \\uad6c\\ud604\\uc774 org.apache.xalan.xslt.FuncDocument\\ub85c \\ubc14\\ub00c\\uc5c8\\uc2b5\\ub2c8\\ub2e4!\"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"\\ubb38\\ub9e5\\uc5d0 \\uc18c\\uc720\\uc790 \\ubb38\\uc11c\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"local-name()\\uc774 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"namespace-uri()\\uac00 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"normalize-space()\\uac00 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"number()\\uac00 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"name()\\uc774 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"string()\\uc774 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"string-length()\\uac00 \\ub108\\ubb34 \\ub9ce\\uc740 \\uc778\\uc218\\ub97c \\uac00\\uc9d1\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"translate() \\ud568\\uc218\\uac00 \\uc138 \\uac1c\\uc758 \\uc778\\uc218\\ub97c \\ucde8\\ud569\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"unparsed-entity-uri \\ud568\\uc218\\ub294 \\ud558\\ub098\\uc758 \\uc778\\uc218\\ub97c \\ucde8\\ud574\\uc57c \\ud569\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"\\uc774\\ub984 \\uacf5\\uac04 \\ucd95\\uc774 \\uc544\\uc9c1 \\uad6c\\ud604\\ub418\\uc9c0 \\uc54a\\uc558\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"\\uc54c \\uc218 \\uc5c6\\ub294 \\ucd95: {0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"\\uc54c \\uc218 \\uc5c6\\ub294 \\uc77c\\uce58 \\uc870\\uc791\\uc785\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"processing-instruction() node \\ud14c\\uc2a4\\ud2b8\\uc758 \\uc778\\uc218 \\uae38\\uc774\\uac00 \\uc62c\\ubc14\\ub974\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"{0}\\uc744(\\ub97c) \\uc22b\\uc790\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"{0}\\uc744(\\ub97c) NodeList\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"{0}\\uc744(\\ub97c) NodeSetDTM\\uc73c\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"{0}\\uc744(\\ub97c) \\uc720\\ud615 \\ubc88\\ud638 {1}(\\uc73c)\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"getMatchScore\\uc5d0\\uc11c \\ud328\\ud134\\uc774 \\uc77c\\uce58\\ud560 \\uac83\\uc774\\ub77c \\uc608\\uc0c1\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"\\uc774\\ub984\\uc774 {0}\\uc778 \\ubcc0\\uc218\\ub97c \\uac00\\uc838\\uc62c \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"\\uc624\\ub958! \\uc54c \\uc218 \\uc5c6\\ub294 op \\ucf54\\ub4dc: {0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"\\uc720\\ud6a8\\ud558\\uc9c0 \\uc54a\\uc740 \\ucd94\\uac00 \\ud1a0\\ud070: {0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"\\ub530\\uc634\\ud45c\\uac00 \\ud2c0\\ub9b0 \\ub9ac\\ud130\\ub7f4... \\ud070 \\ub530\\uc634\\ud45c\\ub97c \\uc608\\uc0c1\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"\\ub530\\uc634\\ud45c\\uac00 \\ud2c0\\ub9b0 \\ub9ac\\ud130\\ub7f4... \\uc791\\uc740 \\ub530\\uc634\\ud45c\\ub97c \\uc608\\uc0c1\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"\\ube48 \\ud45c\\ud604\\uc2dd!\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"{0}\\uc744(\\ub97c) \\uc608\\uc0c1\\ud588\\uc73c\\ub098 {1}\\uc774(\\uac00) \\ubc1c\\uacac\\ub428\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"\\ud504\\ub85c\\uadf8\\ub798\\uba38 \\ub2e8\\uc5b8\\ubb38\\uc774 \\uc62c\\ubc14\\ub974\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4! - {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"19990709 XPath \\ucd08\\uc548\\uc5d0\\uc11c\\ub294 \\ubd80\\uc6b8(...) \\uc778\\uc218\\uac00 \\ub354 \\uc774\\uc0c1 \\uc120\\ud0dd\\uc801\\uc774\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"','\\ub97c \\ubc1c\\uacac\\ud588\\uc73c\\ub098 \\uadf8 \\uc55e\\uc5d0 \\uc5b4\\ub5a0\\ud55c \\uc778\\uc218\\ub3c4 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"','\\ub97c \\ubc1c\\uacac\\ud588\\uc73c\\ub098 \\ub4a4\\uc5d0 \\uc5b4\\ub5a0\\ud55c \\uc778\\uc218\\ub3c4 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"'..[predicate]' \\ub610\\ub294 '.[predicate]'\\ub294 \\uc720\\ud6a8\\ud558\\uc9c0 \\uc54a\\uc740 \\uad6c\\ubb38\\uc785\\ub2c8\\ub2e4.  \\ub300\\uc2e0 'self::node()[predicate]'\\ub97c \\uc0ac\\uc6a9\\ud558\\uc2ed\\uc2dc\\uc624.\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"\\uc720\\ud6a8\\ud558\\uc9c0 \\uc54a\\uc740 \\ucd95 \\uc774\\ub984: {0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"\\uc54c \\uc218 \\uc5c6\\ub294 \\ub178\\ub4dc \\uc720\\ud615: {0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"\\ud328\\ud134 \\ub9ac\\ud130\\ub7f4({0})\\uc740 \\ub530\\uc634\\ud45c\\uac00 \\uc788\\uc5b4\\uc57c \\ud569\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"{0}\\uc740(\\ub294) \\uc22b\\uc790\\ub85c \\ud3ec\\ub9f7\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"XML TransformerFactory Liaison\\uc744 \\uc791\\uc131\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"\\uc624\\ub958! xpath \\uc120\\ud0dd \\ud45c\\ud604\\uc2dd(-select)\\uc744 \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"\\uc624\\ub958! OP_LOCATIONPATH \\ub4a4\\uc5d0 ENDOP\\ub97c \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"\\uc624\\ub958\\uac00 \\ubc1c\\uc0dd\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"\\ubcc0\\uc218\\uc5d0 \\ub300\\ud574 \\uc8fc\\uc5b4\\uc9c4 VariableReference\\uac00 \\ubc94\\uc704\\ub97c \\ubc97\\uc5b4\\ub0ac\\uac70\\ub098 \\uc815\\uc758\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!  \\uc774\\ub984 = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"\\ud558\\uc704:: \\ubc0f \\uc18d\\uc131:: \\ucd95\\ub9cc \\ud328\\ud134\\uc5d0 \\uc77c\\uce58\\ud560 \\uc218 \\uc788\\uc2b5\\ub2c8\\ub2e4!  \\uc704\\ubc18 \\ucd95 = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"key()\\uc758 \\uc778\\uc218 \\uc218\\uac00 \\uc62c\\ubc14\\ub974\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"count \\ud568\\uc218\\ub294 \\ud558\\ub098\\uc758 \\uc778\\uc218\\ub97c \\ucde8\\ud574\\uc57c \\ud569\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"\\ud568\\uc218\\ub97c \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"\\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\ub294 \\uc778\\ucf54\\ub529: {0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"getNextSibling\\uc758 DTM\\uc5d0 \\ubb38\\uc81c\\uac00 \\ubc1c\\uc0dd\\ud588\\uc2b5\\ub2c8\\ub2e4... \\ubcf5\\uad6c \\uc2dc\\ub3c4 \\uc911\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"\\ud504\\ub85c\\uadf8\\ub798\\uba38 \\uc624\\ub958: EmptyNodeList\\ub97c \\uc4f8 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"XPathContext\\uc5d0\\uc11c setDOMFactory\\ub97c \\uc9c0\\uc6d0\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"\\uc811\\ub450\\ubd80\\ub294 \\uc774\\ub984 \\uacf5\\uac04\\uc73c\\ub85c \\ubd84\\uc11d\\ub418\\uc5b4\\uc57c \\ud569\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"XPathContext\\uc5d0\\uc11c \\uad6c\\ubb38 \\ubd84\\uc11d(InputSource \\uc18c\\uc2a4)\\uc774 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4! {0}\\uc744(\\ub97c) \\uc5f4 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"SAX API \\ubb38\\uc790(char ch[]... \\uac00 DTM\\uc5d0 \\uc758\\ud574 \\ucc98\\ub9ac\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"ignorableWhitespace(char ch[]... \\uac00 DTM\\uc5d0 \\uc758\\ud574 \\ucc98\\ub9ac\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison\\uc774 {0} \\uc720\\ud615\\uc758 \\ub178\\ub4dc\\ub97c \\ucc98\\ub9ac\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper\\uac00 {0} \\uc720\\ud615\\uc758 \\ub178\\ub4dc\\ub97c \\ucc98\\ub9ac\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"DOM2Helper.parse \\uc624\\ub958: \\uc2dc\\uc2a4\\ud15c ID - {0} \\ud68c\\uc120 - {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"DOM2Helper.parse \\uc624\\ub958\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"\\uc798\\ubabb\\ub41c UTF-16 \\ub300\\ub9ac\\uc790(surrogate)\\uac00 \\ubc1c\\uacac\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4: {0} ?\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"IO \\uc624\\ub958\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"url\\uc744 \\uc791\\uc131\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"XPath.readObject\\uc758 {0}\"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\ud568\\uc218 \\ud1a0\\ud070\\uc774 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"XPath \\uc720\\ud615\\uc744 \\ucc98\\ub9ac\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"\\uc774 NodeSet\\uac00 \\uac00\\ubcc0\\uc801\\uc774\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"\\uc774 NodeSetDTM\\uc774 \\uac00\\ubcc0\\uc801\\uc774\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"\\ubcc0\\uc218\\ub97c \\ubd84\\uc11d\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"\\ub110(null) \\uc624\\ub958 \\ud578\\ub4e4\\ub7ec\"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"\\ud504\\ub85c\\uadf8\\ub798\\uba38\\uc758 \\ub2e8\\uc5b8\\ubb38: \\uc54c \\uc218 \\uc5c6\\ub294 op \\ucf54\\ub4dc: {0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 \\ub610\\ub294 1\"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"XRTreeFragSelectWrapper\\uc5d0\\uc11c rtf()\\ub97c \\uc9c0\\uc6d0\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"XRTreeFragSelectWrapper\\uc5d0\\uc11c asNodeIterator()\\ub97c \\uc9c0\\uc6d0\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"XStringForChars\\uc5d0 \\ub300\\ud574 fsb()\\uac00 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"\\uc774\\ub984\\uc774 {0}\\uc778 \\ubcc0\\uc218\\ub97c \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"XStringForChars\\ub294 \\uc778\\uc218\\ub85c \\ubb38\\uc790\\uc5f4\\uc744 \\uac00\\uc838\\uc62c \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"FastStringBuffer \\uc778\\uc218\\ub294 \\ub110(null)\\uc774 \\ub420 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 \\ub610\\ub294 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"\\ubcc0\\uc218\\uac00 \\ubc14\\uc778\\ub4dc\\ub418\\uae30 \\uc804\\uc5d0 \\ubcc0\\uc218\\uc5d0 \\uc561\\uc138\\uc2a4\\ud588\\uc2b5\\ub2c8\\ub2e4!\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"XStringForFSB\\ub294 \\uc778\\uc218\\ub85c \\ubb38\\uc790\\uc5f4\\uc744 \\ucde8\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n !!!! \\uc624\\ub958! \\uc6cc\\ucee4\\uc758 \\ub8e8\\ud2b8\\ub85c \\ub110(null)\\uc774 \\uc124\\uc815\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4!!!\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"\\uc774 NodeSetDTM\\uc740 \\uc774\\uc804 \\ub178\\ub4dc\\ub85c \\ubc18\\ubcf5\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"\\uc774 NodeSet\\ub294 \\uc774\\uc804 \\ub178\\ub4dc\\ub85c \\ubc18\\ubcf5\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"\\uc774 NodeSetDTM\\uc740 \\uc0c9\\uc778 \\ub610\\ub294 \\uce74\\uc6b4\\ud305 \\ud568\\uc218\\ub97c \\uc0ac\\uc6a9\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"\\uc774 NodeSet\\ub294 \\uc0c9\\uc778 \\ub610\\ub294 \\uce74\\uc6b4\\ud305 \\ud568\\uc218\\ub97c \\uc0ac\\uc6a9\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"nextNode\\uac00 \\ud638\\ucd9c\\ub41c \\ud6c4\\uc5d0 setShouldCacheNodes\\ub97c \\ud638\\ucd9c\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"{0}\\uc740(\\ub294) {1} \\uc778\\uc218\\ub9cc\\uc744 \\ud5c8\\uc6a9\\ud569\\ub2c8\\ub2e4.\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"getNextStepPos\\uc5d0 \\ud504\\ub85c\\uadf8\\ub798\\uba38\\uc758 \\ub2e8\\uc5b8\\ubb38: \\uc54c \\uc218 \\uc5c6\\ub294 stepType: {0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"\\uc704\\uce58 \\uacbd\\ub85c\\uac00 \\uc608\\uc0c1\\ub418\\uc5c8\\uc9c0\\ub9cc \\ub2e4\\uc74c \\ud1a0\\ud070\\uc774 \\ubc1c\\uacac\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4\\u003a  {0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"NCName:* \\ub610\\ub294 QName\\uacfc \\uc77c\\uce58\\ud558\\ub294 \\ub178\\ub4dc \\ud14c\\uc2a4\\ud2b8\\uac00 \\uc608\\uc0c1\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"\\ub2e8\\uacc4 \\ud328\\ud134\\uc774 \\uc608\\uc0c1\\ub418\\uc5c8\\uc9c0\\ub9cc '/'\\uac00 \\ubc1c\\uacac\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"\\uad00\\ub828 \\uacbd\\ub85c \\ud328\\ud134\\uc774 \\uc608\\uc0c1\\ub418\\uc5c8\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"{0}\\uc744(\\ub97c) \\ubd80\\uc6b8\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"{0}\\uc744(\\ub97c) \\ub2e8\\uc77c \\ub178\\ub4dc\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. \\uc774\\ub7ec\\ud55c getter \\uc740 ANY_UNORDERED_NODE_TYPE \\ubc0f FIRST_ORDERED_NODE_TYPE \\uc720\\ud615\\uc5d0 \\uc801\\uc6a9\\ub429\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"{0} \\uc720\\ud615\\uc5d0 \\ub300\\ud55c \\uc2a4\\ub0c5\\uc0f7 \\uae38\\uc774\\ub97c \\uac00\\uc838\\uc62c \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. \\uc774\\ub7ec\\ud55c getter \\uc740 UNORDERED_NODE_SNAPSHOT_TYPE \\ubc0f ORDERED_NODE_SNAPSHOT_TYPE \\uc720\\ud615\\uc5d0 \\uc801\\uc6a9\\ub429\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"\\ube44 \\ubc18\\ubcf5\\uae30 \\uc720\\ud615 {0}\\uc5d0 \\ub300\\ud574 \\ubc18\\ubcf5\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"\\uacb0\\uacfc\\uac00 \\ub9ac\\ud134\\ub418\\uc5c8\\uc73c\\ubbc0\\ub85c \\ubb38\\uc11c\\uac00 \\ubcc0\\uacbd\\ub429\\ub2c8\\ub2e4. \\ubc18\\ubcf5\\uae30\\uac00 \\uc62c\\ubc14\\ub974\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"\\uc798\\ubabb\\ub41c XPath \\uc720\\ud615 \\uc778\\uc218: {0}\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"\\ube44\\uc5b4 \\uc788\\ub294 XPath result \\uc624\\ube0c\\uc81d\\ud2b8\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"\\ub9ac\\ud134\\ub41c \\uc720\\ud615 {0}\\uc740(\\ub294) \\uc9c0\\uc815\\ub41c \\uc720\\ud615 {1}(\\uc73c)\\ub85c \\uac15\\uc81c \\uc9c0\\uc815\\ub420 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"\\ub110(null) \\uc811\\ub450\\ubd80 \\ubd84\\uc11d\\uae30\\ub85c \\uc811\\ub450\\ubd80\\ub97c \\ubd84\\uc11d\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"{0}\\uc744(\\ub97c) \\ubb38\\uc790\\uc5f4\\ub85c \\ubcc0\\ud658\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"{0} \\uc720\\ud615\\uc5d0 \\ub300\\ud55c snapshotItem\\uc744 \\ud638\\ucd9c\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. \\uc774\\ub7ec\\ud55c \\ubc29\\ubc95\\uc740 UNORDERED_NODE_SNAPSHOT_TYPE \\ubc0f ORDERED_NODE_SNAPSHOT_TYPE \\uc720\\ud615\\uc5d0 \\uc801\\uc6a9\\ub429\\ub2c8\\ub2e4.\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"\\ucee8\\ud14d\\uc2a4\\ud2b8 \\ub178\\ub4dc\\ub294 \\uc774 XPathEvaluator\\ub85c \\ubc14\\uc778\\ub4dc\\ub418\\ub294 \\ubb38\\uc11c\\uc5d0 \\ud3ec\\ud568\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"\\ucee8\\ud14d\\uc2a4\\ud2b8 \\ub178\\ub4dc \\uc720\\ud615\\uc774 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"XPath\\uc758 \\uc54c \\uc218 \\uc5c6\\ub294 \\uc624\\ub958.\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"format-number \\ud568\\uc218\\uc5d0 \\uc788\\ub294 \\ub85c\\ucf00\\uc77c \\uc774\\ub984\\uc774 \\uc544\\uc9c1 \\ucc98\\ub9ac\\ub418\\uc9c0 \\uc54a\\uc558\\uc2b5\\ub2c8\\ub2e4!\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"XSL \\ud2b9\\uc131\\uc774 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"\\ud2b9\\uc131\\uc5d0\\uc11c {0} \\uc774\\ub984 \\uacf5\\uac04\\uacfc \\uad00\\ub828\\ud558\\uc5ec \\ud604\\uc7ac \\uc544\\ubb34\\ub7f0 \\uc791\\uc5c5\\ub3c4 \\uc218\\ud589\\ud558\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4: {1}\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"XSL \\uc2dc\\uc2a4\\ud15c \\ud2b9\\uc131\\uc5d0 \\uc561\\uc138\\uc2a4 \\uc2dc\\ub3c4 \\uc911 SecurityException: {0}\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"\\uc774\\uc804 \\uad6c\\ubb38: quo(...)\\uac00 \\ub354 \\uc774\\uc0c1 XPath\\uc5d0 \\uc815\\uc758\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"nodeTest\\ub97c \\uad6c\\ud604\\ud558\\ub824\\uba74 XPath\\uc5d0 \\ub3c4\\ucd9c\\ub41c \\uc624\\ube0c\\uc81d\\ud2b8\\uac00 \\uc788\\uc5b4\\uc57c \\ud569\\ub2c8\\ub2e4!\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\ud568\\uc218 \\ud1a0\\ud070\\uc774 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"\\ud568\\uc218\\ub97c \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4: {0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"{0}\\uc5d0\\uc11c URL\\uc744 \\uc791\\uc131\\ud560 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"DTM \\uad6c\\ubb38 \\ubd84\\uc11d\\uae30\\uc5d0 \\ub300\\ud574 -E \\uc635\\uc158\\uc774 \\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\uc2b5\\ub2c8\\ub2e4.\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"\\ubcc0\\uc218\\uc5d0 \\ub300\\ud574 \\uc8fc\\uc5b4\\uc9c4 VariableReference\\uac00 \\ubc94\\uc704\\ub97c \\ubc97\\uc5b4\\ub0ac\\uac70\\ub098 \\uc815\\uc758\\uac00 \\uc5c6\\uc2b5\\ub2c8\\ub2e4! \\uc774\\ub984 = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"\\uc9c0\\uc6d0\\ub418\\uc9c0 \\uc54a\\ub294 \\uc778\\ucf54\\ub529: {0}\"},\n\n\n\n  { \"ui_language\", \"ko\"},\n  { \"help_language\", \"ko\"},\n  { \"language\", \"ko\"},\n  { \"BAD_CODE\", \"createMessage\\uc5d0 \\ub300\\ud55c \\ub9e4\\uac1c\\ubcc0\\uc218\\uac00 \\ubc94\\uc704\\ub97c \\ubc97\\uc5b4\\ub0a8\"},\n  { \"FORMAT_FAILED\", \"messageFormat \\ud638\\ucd9c \\uc911 \\uc608\\uc678 \\ubc1c\\uc0dd\"},\n  { \"version\", \">>>>>>> Xalan \\ubc84\\uc804 \"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"\\uc608\"},\n  { \"line\", \"\\ud589 #\"},\n  { \"column\", \"\\uc5f4 #\"},\n  { \"xsldone\", \"XSLProcessor: \\uc644\\ub8cc\"},\n  { \"xpath_option\", \"xpath \\uc635\\uc158: \"},\n  { \"optionIN\", \"[-in inputXMLURL]\"},\n  { \"optionSelect\", \"[-select xpath expression]\"},\n  { \"optionMatch\", \"[-match match pattern (\\uc77c\\uce58 \\uc9c4\\ub2e8\\uc744 \\uc704\\ud574)]\"},\n  { \"optionAnyExpr\", \"\\ub610\\ub294 xpath \\ud45c\\ud604\\uc2dd\\ub9cc\\uc73c\\ub85c \\uc9c4\\ub2e8 \\ub364\\ud504\\uac00 \\uc218\\ud589\\ub420 \\uac83\\uc785\\ub2c8\\ub2e4.\"},\n  { \"noParsermsg1\", \"XSL \\ud504\\ub85c\\uc138\\uc2a4\\uac00 \\uc2e4\\ud328\\ud588\\uc2b5\\ub2c8\\ub2e4.\"},\n  { \"noParsermsg2\", \"** \\uad6c\\ubb38 \\ubd84\\uc11d\\uae30\\ub97c \\ucc3e\\uc744 \\uc218 \\uc5c6\\uc2b5\\ub2c8\\ub2e4. **\"},\n  { \"noParsermsg3\", \"\\ud074\\ub798\\uc2a4 \\uacbd\\ub85c\\ub97c \\uc810\\uac80\\ud558\\uc2ed\\uc2dc\\uc624.\"},\n  { \"noParsermsg4\", \"Java\\uc6a9 IBM XML \\uad6c\\ubb38 \\ubd84\\uc11d\\uae30\\uac00 \\uc5c6\\uc73c\\uba74\"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81], [1, 82], [1, 83], [1, 84], [1, 85], [1, 86], [1, 87], [1, 88], [1, 89], [1, 90], [1, 91], [1, 92], [1, 93], [1, 94], [1, 95], [1, 96], [1, 97], [1, 98], [1, 99], [1, 100], [1, 101], [1, 102], [1, 103], [1, 104], [1, 105], [1, 106], [1, 107], [1, 108], [1, 109], [1, 110], [1, 111], [1, 112], [1, 113], [1, 114], [1, 115], [1, 116], [1, 117], [1, 118], [1, 119], [1, 120], [1, 121], [1, 122], [1, 123], [1, 124], [1, 125], [1, 126], [1, 127], [1, 128], [1, 129], [1, 130], [1, 131], [1, 132], [1, 133], [1, 134], [1, 135], [1, 136], [1, 137], [1, 138], [1, 139], [1, 140], [1, 141], [1, 142], [1, 143], [1, 144], [1, 145], [1, 146], [1, 147], [1, 148], [1, 149], [1, 150], [1, 151], [1, 152], [1, 153], [1, 154], [1, 155], [1, 156], [1, 157], [1, 158], [1, 159], [1, 160], [1, 161], [1, 162], [1, 163], [1, 164], [1, 165], [1, 166], [1, 167], [1, 168], [1, 169], [1, 170], [1, 171], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [72, 1], [73, 1], [74, 1], [75, 1], [76, 1], [77, 1], [78, 1], [79, 1], [80, 1], [81, 1], [82, 1], [83, 1], [84, 1], [85, 1], [86, 1], [87, 1], [88, 1], [89, 1], [90, 1], [91, 1], [92, 1], [93, 1], [94, 1], [95, 1], [96, 1], [97, 1], [98, 1], [99, 1], [100, 1], [101, 1], [102, 1], [103, 1], [104, 1], [105, 1], [106, 1], [107, 1], [108, 1], [109, 1], [110, 1], [111, 1], [112, 1], [113, 1], [114, 1], [115, 1], [116, 1], [117, 1], [118, 1], [119, 1], [120, 1], [121, 1], [122, 1], [123, 1], [124, 1], [125, 1], [126, 1], [127, 1], [128, 1], [129, 1], [130, 1], [131, 1], [132, 1], [133, 1], [134, 1], [135, 1], [136, 1], [137, 1], [138, 1], [139, 1], [140, 1], [141, 1], [142, 1], [143, 1], [144, 1], [145, 1], [146, 1], [147, 1], [148, 1], [149, 1], [150, 1], [151, 1], [152, 1], [153, 1], [154, 1], [155, 1], [156, 1], [157, 1], [158, 1], [159, 1], [160, 1], [161, 1], [162, 1], [163, 1], [164, 1], [165, 1], [166, 1], [167, 1], [168, 1], [169, 1], [170, 1], [171, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171]]}, {"function_name": "loadResourceBundle", "code": "  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"ko\", \"KR\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "jedit-4.0-3779", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "com/microstar/xml/XmlParser.java", "language": "java", "name": "com.microstar.xml.XmlParser", "code": "public class XmlParser {\n\n  //\n  // Use special cheats that speed up the code (currently about 50%),\n  // but may cause problems with future maintenance and add to the\n  // class file size (about 500 bytes).\n  //\n  private final static boolean USE_CHEATS = true;\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Constructors.\n  ////////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Construct a new parser with no associated handler.\n    * @see #setHandler\n    * @see #parse\n    */\n  public XmlParser ()\n  {\n  }\n\n\n  /**\n    * Set the handler that will receive parsing events.\n    * @param handler The handler to receive callback events.\n    * @see #parse\n    * @see XmlHandler\n    */\n  public void setHandler (XmlHandler handler)\n  {\n    this.handler = handler;\n  }\n\n\n  /**\n    * Parse an XML document from a URI.\n    * <p>You may parse a document more than once, but only one thread\n    * may call this method for an object at one time.\n    * @param systemId The URI of the document.\n    * @param publicId The public identifier of the document, or null.\n    * @param encoding The suggested encoding, or null if unknown.\n    * @exception java.lang.Exception Any exception thrown by your\n    *            own handlers, or any derivation of java.io.IOException\n    *            thrown by the parser itself.\n    */\n  public void parse (String systemId, String publicId, String encoding)\n    throws java.lang.Exception\n  {\n    doParse(systemId, publicId, null, null, encoding);\n  }\n\n\n  /**\n    * Parse an XML document from a byte stream.\n    * <p>The URI that you supply will become the base URI for\n    * resolving relative links, but &AElig;lfred will actually read\n    * the document from the supplied input stream.\n    * <p>You may parse a document more than once, but only one thread\n    * may call this method for an object at one time.\n    * @param systemId The base URI of the document, or null if not\n    *                 known.\n    * @param publicId The public identifier of the document, or null\n    *                 if not known.\n    * @param stream A byte input stream.\n    * @param encoding The suggested encoding, or null if unknown.\n    * @exception java.lang.Exception Any exception thrown by your\n    *            own handlers, or any derivation of java.io.IOException\n    *            thrown by the parser itself.\n    */\n  public void parse (String systemId, String publicId,\n\t\t     InputStream stream, String encoding)\n    throws java.lang.Exception\n  {\n    doParse(systemId, publicId, null, stream, encoding);\n  }\n\n\n  /**\n    * Parse an XML document from a character stream.\n    * <p>The URI that you supply will become the base URI for\n    * resolving relative links, but &AElig;lfred will actually read\n    * the document from the supplied input stream.\n    * <p>You may parse a document more than once, but only one thread\n    * may call this method for an object at one time.\n    * @param systemId The base URI of the document, or null if not\n    *                 known.\n    * @param publicId The public identifier of the document, or null\n    *                 if not known.\n    * @param reader A character stream.\n    * @exception java.lang.Exception Any exception thrown by your\n    *            own handlers, or any derivation of java.io.IOException\n    *            thrown by the parser itself.\n    */\n  public void parse (String systemId, String publicId, Reader reader)\n    throws java.lang.Exception\n  {\n    doParse(systemId, publicId, reader, null, null);\n  }\n\n\n  private synchronized void doParse (String systemId, String publicId,\n\t\t\t\t     Reader reader, InputStream stream,\n\t\t\t\t     String encoding)\n    throws java.lang.Exception\n  {\n    basePublicId = publicId;\n    baseURI = systemId;\n    baseReader = reader;\n    baseInputStream = stream;\n\n    initializeVariables();\n\n\t\t\t\t// Set the default entities here.\n    setInternalEntity(intern(\"amp\"), \"&#38;\");\n    setInternalEntity(intern(\"lt\"), \"&#60;\");\n    setInternalEntity(intern(\"gt\"), \"&#62;\");\n    setInternalEntity(intern(\"apos\"), \"&#39;\");\n    setInternalEntity(intern(\"quot\"), \"&#34;\");\n\n    if (handler != null) {\n      handler.startDocument();\n    }\n\n    pushURL(\"[document]\", basePublicId, baseURI, baseReader, baseInputStream,\n\t    encoding);\n\n    parseDocument();\n\n    if (handler != null) {\n      handler.endDocument();\n    }\n    cleanupVariables();\n  }\n\n\n\n\n  ////////////////////////////////////////////////////////////////////////\n  // Constants.\n  ////////////////////////////////////////////////////////////////////////\n\n  //\n  // Constants for element content type.\n  //\n\n  /**\n    * Constant: an element has not been declared.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_UNDECLARED = 0;\n\n  /**\n    * Constant: the element has a content model of ANY.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_ANY = 1;\n\n  /**\n    * Constant: the element has declared content of EMPTY.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_EMPTY = 2;\n\n  /**\n    * Constant: the element has mixed content.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_MIXED = 3;\n\n  /**\n    * Constant: the element has element content.\n    * @see #getElementContentType\n    */\n  public final static int CONTENT_ELEMENTS = 4;\n\n\n  //\n  // Constants for the entity type.\n  //\n\n  /**\n    * Constant: the entity has not been declared.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_UNDECLARED = 0;\n\n  /**\n    * Constant: the entity is internal.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_INTERNAL = 1;\n\n  /**\n    * Constant: the entity is external, non-XML data.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_NDATA = 2;\n\n  /**\n    * Constant: the entity is external XML data.\n    * @see #getEntityType\n    */\n  public final static int ENTITY_TEXT = 3;\n\n\n  //\n  // Constants for attribute type.\n  //\n\n  /**\n    * Constant: the attribute has not been declared for this element type.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_UNDECLARED = 0;\n\n  /**\n    * Constant: the attribute value is a string value.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_CDATA = 1;\n\n  /**\n    * Constant: the attribute value is a unique identifier.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ID = 2;\n\n  /**\n    * Constant: the attribute value is a reference to a unique identifier.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_IDREF = 3;\n\n  /**\n    * Constant: the attribute value is a list of ID references.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_IDREFS = 4;\n\n  /**\n    * Constant: the attribute value is the name of an entity.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ENTITY = 5;\n\n  /**\n    * Constant: the attribute value is a list of entity names.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ENTITIES = 6;\n\n  /**\n    * Constant: the attribute value is a name token.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_NMTOKEN = 7;\n\n  /**\n    * Constant: the attribute value is a list of name tokens.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_NMTOKENS = 8;\n\n  /**\n    * Constant: the attribute value is a token from an enumeration.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_ENUMERATED = 9;\n\n  /**\n    * Constant: the attribute is the name of a notation.\n    * @see #getAttributeType\n    */\n  public final static int ATTRIBUTE_NOTATION = 10;\n\n\n  //\n  // When the class is loaded, populate the hash table of\n  // attribute types.\n  //\n\n  /**\n    * Hash table of attribute types.\n    */\n  private static Hashtable attributeTypeHash;\n  static {\n    attributeTypeHash = new Hashtable();\n    attributeTypeHash.put(\"CDATA\", new Integer(ATTRIBUTE_CDATA));\n    attributeTypeHash.put(\"ID\", new Integer(ATTRIBUTE_ID));\n    attributeTypeHash.put(\"IDREF\", new Integer(ATTRIBUTE_IDREF));\n    attributeTypeHash.put(\"IDREFS\", new Integer(ATTRIBUTE_IDREFS));\n    attributeTypeHash.put(\"ENTITY\", new Integer(ATTRIBUTE_ENTITY));\n    attributeTypeHash.put(\"ENTITIES\", new Integer(ATTRIBUTE_ENTITIES));\n    attributeTypeHash.put(\"NMTOKEN\", new Integer(ATTRIBUTE_NMTOKEN));\n    attributeTypeHash.put(\"NMTOKENS\", new Integer(ATTRIBUTE_NMTOKENS));\n    attributeTypeHash.put(\"NOTATION\", new Integer(ATTRIBUTE_NOTATION));\n  }\n\n\n  //\n  // Constants for supported encodings.\n  //\n  private final static int ENCODING_UTF_8 = 1;\n  private final static int ENCODING_ISO_8859_1 = 2;\n  private final static int ENCODING_UCS_2_12 = 3;\n  private final static int ENCODING_UCS_2_21 = 4;\n  private final static int ENCODING_UCS_4_1234 = 5;\n  private final static int ENCODING_UCS_4_4321 = 6;\n  private final static int ENCODING_UCS_4_2143 = 7;\n  private final static int ENCODING_UCS_4_3412 = 8;\n\n\n  //\n  // Constants for attribute default value.\n  //\n\n  /**\n    * Constant: the attribute is not declared.\n    * @see #getAttributeDefaultValueType\n    */\n  public final static int ATTRIBUTE_DEFAULT_UNDECLARED = 0;\n\n  /**\n    * Constant: the attribute has a literal default value specified.\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    */\n  public final static int ATTRIBUTE_DEFAULT_SPECIFIED = 1;\n\n  /**\n    * Constant: the attribute was declared #IMPLIED.\n    * @see #getAttributeDefaultValueType\n    */\n  public final static int ATTRIBUTE_DEFAULT_IMPLIED = 2;\n\n  /**\n    * Constant: the attribute was declared #REQUIRED.\n    * @see #getAttributeDefaultValueType\n    */\n  public final static int ATTRIBUTE_DEFAULT_REQUIRED = 3;\n\n  /**\n    * Constant: the attribute was declared #FIXED.\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    */\n  public final static int ATTRIBUTE_DEFAULT_FIXED = 4;\n\n\n  //\n  // Constants for input.\n  //\n  private final static int INPUT_NONE = 0;\n  private final static int INPUT_INTERNAL = 1;\n  private final static int INPUT_EXTERNAL = 2;\n  private final static int INPUT_STREAM = 3;\n  private final static int INPUT_BUFFER = 4;\n  private final static int INPUT_READER = 5;\n\n\n  //\n  // Flags for reading literals.\n  //\n  private final static int LIT_CHAR_REF = 1;\n  private final static int LIT_ENTITY_REF = 2;\n  private final static int LIT_PE_REF = 4;\n  private final static int LIT_NORMALIZE = 8;\n\n\n  //\n  // Flags for parsing context.\n  //\n  private final static int CONTEXT_NONE = 0;\n  private final static int CONTEXT_DTD = 1;\n  private final static int CONTEXT_ENTITYVALUE = 2;\n  private final static int CONTEXT_ATTRIBUTEVALUE = 3;\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Error reporting.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Report an error.\n    * @param message The error message.\n    * @param textFound The text that caused the error (or null).\n    * @see XmlHandler#error\n    * @see #line\n    */\n  void error (String message, String textFound, String textExpected)\n    throws java.lang.Exception\n  {\n    errorCount++;\n    if (textFound != null) {\n      message = message + \" (found \\\"\" + textFound + \"\\\")\";\n    }\n    if (textExpected != null) {\n      message = message + \" (expected \\\"\" + textExpected + \"\\\")\";\n    }\n    if (handler != null) {\n      String uri = null;\n\n      if (externalEntity != null) {\n\turi = externalEntity.getURL().toString();\n      }\n      handler.error(message, uri, line, column);\n    }\n  }\n\n\n  /**\n    * Report a serious error.\n    * @param message The error message.\n    * @param textFound The text that caused the error (or null).\n    */\n  void error (String message, char textFound, String textExpected)\n    throws java.lang.Exception\n  {\n    error(message, new Character(textFound).toString(), textExpected);\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Major syntactic productions.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Parse an XML document.\n    * <pre>\n    * [1] document ::= prolog element Misc*\n    * </pre>\n    * <p>This is the top-level parsing function for a single XML\n    * document.  As a minimum, a well-formed document must have\n    * a document element, and a valid document must have a prolog\n    * as well.\n    */\n  void parseDocument ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    parseProlog();\n    require('<');\n    parseElement();\n    try\n      {\n      parseMisc();  //skip all white, PIs, and comments\n      c=readCh();   //if this doesn't throw an exception...\n      error(\"unexpected characters after document end\",c,null);\n      }\n    catch (EOFException e)\n      {return;}\n    }\n\n\n  /**\n    * Skip a comment.\n    * <pre>\n    * [18] Comment ::= '&lt;!--' ((Char - '-') | ('-' (Char - '-')))* \"-->\"\n    * </pre>\n    * <p>(The <code>&lt;!--</code> has already been read.)\n    */\n  void parseComment ()\n    throws java.lang.Exception\n  {\n    skipUntil(\"-->\");\n  }\n\n\n  /**\n    * Parse a processing instruction and do a call-back.\n    * <pre>\n    * [19] PI ::= '&lt;?' Name (S (Char* - (Char* '?&gt;' Char*)))? '?&gt;'\n    * </pre>\n    * <p>(The <code>&lt;?</code> has already been read.)\n    * <p>An XML processing instruction <em>must</em> begin with\n    * a Name, which is the instruction's target.\n    */\n  void parsePI ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    if (!tryRead(\"?>\")) {\n      requireWhitespace();\n      parseUntil(\"?>\");\n    }\n    if (handler != null) {\n      handler.processingInstruction(name, dataBufferToString());\n    }\n  }\n\n\n  /**\n    * Parse a CDATA marked section.\n    * <pre>\n    * [20] CDSect ::= CDStart CData CDEnd\n    * [21] CDStart ::= '&lt;![CDATA['\n    * [22] CData ::= (Char* - (Char* ']]&gt;' Char*))\n    * [23] CDEnd ::= ']]&gt;'\n    * </pre>\n    * <p>(The '&lt;![CDATA[' has already been read.)\n    * <p>Note that this just appends characters to the dataBuffer,\n    * without actually generating an event.\n    */\n  void parseCDSect ()\n    throws java.lang.Exception\n  {\n    parseUntil(\"]]>\");\n  }\n\n\n  /**\n    * Parse the prolog of an XML document.\n    * <pre>\n    * [24] prolog ::= XMLDecl? Misc* (Doctypedecl Misc*)?\n    * </pre>\n    * <p>There are a couple of tricks here.  First, it is necessary to\n    * declare the XML default attributes after the DTD (if present)\n    * has been read.  Second, it is not possible to expand general\n    * references in attribute value literals until after the entire\n    * DTD (if present) has been parsed.\n    * <p>We do not look for the XML declaration here, because it is\n    * handled by pushURL().\n    * @see pushURL\n    */\n  void parseProlog ()\n    throws java.lang.Exception\n  {\n    parseMisc();\n\n    if (tryRead(\"<!DOCTYPE\")) {\n      parseDoctypedecl();\n      parseMisc();\n    }\n  }\n\n\n  /**\n    * Parse the XML declaration.\n    * <pre>\n    * [25] XMLDecl ::= '&lt;?xml' VersionInfo EncodingDecl? SDDecl? S? '?&gt;'\n    * [26] VersionInfo ::= S 'version' Eq ('\"1.0\"' | \"'1.0'\")\n    * [33] SDDecl ::= S 'standalone' Eq \"'\" ('yes' | 'no') \"'\"\n    *               | S 'standalone' Eq '\"' (\"yes\" | \"no\") '\"'\n    * [78] EncodingDecl ::= S 'encoding' Eq QEncoding\n    * </pre>\n    * <p>([80] to [82] are also significant.)\n    * <p>(The <code>&lt;?xml</code> and whitespace have already been read.)\n    * <p>TODO: validate value of standalone.\n    * @see #parseTextDecl\n    * @see #checkEncoding\n    */\n  void parseXMLDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String version;\n    String encodingName = null;\n    String standalone = null;\n\n\t\t\t\t// Read the version.\n    require(\"version\");\n    parseEq();\n    version = readLiteral(0);\n    if (!version.equals(\"1.0\")) {\n      error(\"unsupported XML version\", version, \"1.0\");\n    }\n\n\t\t\t\t// Try reading an encoding declaration.\n    skipWhitespace();\n    if (tryRead(\"encoding\")) {\n      parseEq();\n      encodingName = readLiteral(0);\n      checkEncoding(encodingName, ignoreEncoding);\n    }\n\n\t\t\t\t// Try reading a standalone declaration\n    skipWhitespace();\n    if (tryRead(\"standalone\")) {\n      parseEq();\n      standalone = readLiteral(0);\n    }\n\n    skipWhitespace();\n    require(\"?>\");\n  }\n\n\n  /**\n    * Parse the Encoding PI.\n    * <pre>\n    * [78] EncodingDecl ::= S 'encoding' Eq QEncoding\n    * [79] EncodingPI ::= '&lt;?xml' S 'encoding' Eq QEncoding S? '?&gt;'\n    * [80] QEncoding ::= '\"' Encoding '\"' | \"'\" Encoding \"'\"\n    * [81] Encoding ::= LatinName\n    * [82] LatinName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*\n    * </pre>\n    * <p>(The <code>&lt;?xml</code>' and whitespace have already been read.)\n    * @see #parseXMLDecl\n    * @see #checkEncoding\n    */\n  void parseTextDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String encodingName = null;\n    \n\t\t\t\t// Read an optional version.\n    if (tryRead(\"version\")) {\n      String version;\n      parseEq();\n      version = readLiteral(0);\n      if (!version.equals(\"1.0\")) {\n\terror(\"unsupported XML version\", version, \"1.0\");\n      }\n      requireWhitespace();\n    }\n      \n\n\t\t\t\t// Read the encoding.\n    require(\"encoding\");\n    parseEq();\n    encodingName = readLiteral(0);\n    checkEncoding(encodingName, ignoreEncoding);\n\n    skipWhitespace();\n    require(\"?>\");\n  }\n\n\n  /**\n    * Check that the encoding specified makes sense.\n    * <p>Compare what the author has specified in the XML declaration\n    * or encoding PI with what we have detected.\n    * <p>This is also important for distinguishing among the various\n    * 7- and 8-bit encodings, such as ISO-LATIN-1 (I cannot autodetect\n    * those).\n    * @param encodingName The name of the encoding specified by the user.\n    * @see #parseXMLDecl\n    * @see #parseTextDecl\n    */\n  void checkEncoding (String encodingName, boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    encodingName = encodingName.toUpperCase();\n\n    if (ignoreEncoding) {\n      return;\n    }\n\n    switch (encoding) {\n\t\t\t\t// 8-bit encodings\n    case ENCODING_UTF_8:\n      if (encodingName.equals(\"ISO-8859-1\")) {\n\tencoding = ENCODING_ISO_8859_1;\n      } else if (!encodingName.equals(\"UTF-8\")) {\n\terror(\"unsupported 8-bit encoding\",\n\t      encodingName,\n\t      \"UTF-8 or ISO-8859-1\");\n      }\n      break;\n\t\t\t\t// 16-bit encodings\n    case ENCODING_UCS_2_12:\n    case ENCODING_UCS_2_21:\n      if (!encodingName.equals(\"ISO-10646-UCS-2\") &&\n\t  !encodingName.equals(\"UTF-16\")) {\n\terror(\"unsupported 16-bit encoding\",\n\t      encodingName,\n\t      \"ISO-10646-UCS-2\");\n      }\n      break;\n\t\t\t\t// 32-bit encodings\n    case ENCODING_UCS_4_1234:\n    case ENCODING_UCS_4_4321:\n    case ENCODING_UCS_4_2143:\n    case ENCODING_UCS_4_3412:\n      if (!encodingName.equals(\"ISO-10646-UCS-4\")) {\n\terror(\"unsupported 32-bit encoding\",\n\t      encodingName,\n\t      \"ISO-10646-UCS-4\");\n      }\n    }\n  }\n\n\n  /**\n    * Parse miscellaneous markup outside the document element and DOCTYPE\n    * declaration.\n    * <pre>\n    * [27] Misc ::= Comment | PI | S\n    * </pre>\n    */\n  void parseMisc ()\n    throws java.lang.Exception\n    {\n    while (true)\n      {\n      skipWhitespace();\n      if (tryRead(\"<?\"))\n        {parsePI();}\n      else if (tryRead(\"<!--\"))\n        {parseComment();}\n      else\n        {return;}\n      }\n    }\n\n\n  /**\n    * Parse a document type declaration.\n    * <pre>\n    * [28] doctypedecl ::= '&lt;!DOCTYPE' S Name (S ExternalID)? S?\n    *                      ('[' %markupdecl* ']' S?)? '&gt;'\n    * </pre>\n    * <p>(The <code>&lt;!DOCTYPE</code> has already been read.)\n    */\n  void parseDoctypedecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    String doctypeName, ids[];\n\n\t\t\t\t// Read the document type name.\n    requireWhitespace();\n    doctypeName = readNmtoken(true);\n\n\t\t\t\t// Read the ExternalIDs.\n    skipWhitespace();\n    ids = readExternalIds(false);\n\n\t\t\t\t// Look for a declaration subset.\n    skipWhitespace();\n    if (tryRead('[')) {\n\n\t\t\t\t// loop until the subset ends\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead(']')) {\n\t  break;\t\t// end of subset\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    }\n\n\t\t\t\t// Read the external subset, if any\n    if (ids[1] != null) {\n      pushURL(\"[external subset]\", ids[0], ids[1], null, null, null);\n\n\t\t\t\t// Loop until we end up back at '>'\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead('>')) {\n\t  break;\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    } else {\n\t\t\t\t// No external subset.\n      skipWhitespace();\n      require('>');\n    }\n\n    if (handler != null) {\n      handler.doctypeDecl(doctypeName, ids[0], ids[1]);\n    }\n\n\t\t\t\t// Expand general entities in\n\t\t\t\t// default values of attributes.\n\t\t\t\t// (Do this after the doctypeDecl\n\t\t\t\t// event!).\n    // expandAttributeDefaultValues();\n  }\n\n\n  /**\n    * Parse a markup declaration in the internal or external DTD subset.\n    * <pre>\n    * [29] markupdecl ::= ( %elementdecl | %AttlistDecl | %EntityDecl |\n    *                       %NotationDecl | %PI | %S | %Comment |\n    *                       InternalPERef )\n    * [30] InternalPERef ::= PEReference\n    * [31] extSubset ::= (%markupdecl | %conditionalSect)*\n    * </pre>\n    */\n  void parseMarkupdecl ()\n    throws java.lang.Exception\n  {\n    if (tryRead(\"<!ELEMENT\")) {\n      parseElementdecl();\n    } else if (tryRead(\"<!ATTLIST\")) {\n      parseAttlistDecl();\n    } else if (tryRead(\"<!ENTITY\")) {\n      parseEntityDecl();\n    } else if (tryRead(\"<!NOTATION\")) {\n      parseNotationDecl();\n    } else if (tryRead(\"<?\")) {\n      parsePI();\n    } else if (tryRead(\"<!--\")) {\n      parseComment();\n    } else if (tryRead(\"<![\")) {\n      parseConditionalSect();\n    } else {\n      error(\"expected markup declaration\", null, null);\n    }\n  }\n\n\n  /**\n    * Parse an element, with its tags.\n    * <pre>\n    * [33] STag ::= '&lt;' Name (S Attribute)* S? '&gt;' [WFC: unique Att spec]\n    * [38] element ::= EmptyElement | STag content ETag\n    * [39] EmptyElement ::= '&lt;' Name (S Attribute)* S? '/&gt;'\n    *                       [WFC: unique Att spec]\n    * </pre>\n    * <p>(The '&lt;' has already been read.)\n    * <p>NOTE: this method actually chains onto parseContent(), if necessary,\n    * and parseContent() will take care of calling parseETag().\n    */\n  void parseElement ()\n    throws java.lang.Exception\n  {\n    String gi;\n    char c;\n    int oldElementContent = currentElementContent;\n    String oldElement = currentElement;\n\n\t\t\t\t// This is the (global) counter for the\n\t\t\t\t// array of specified attributes.\n    tagAttributePos = 0;\n\n\t\t\t\t// Read the element type name.\n    gi = readNmtoken(true);\n\n\t\t\t\t// Determine the current content type.\n    currentElement = gi;\n    currentElementContent = getElementContentType(gi);\n    if (currentElementContent == CONTENT_UNDECLARED) {\n      currentElementContent = CONTENT_ANY;\n    }\n\n\t\t\t\t// Read the attributes, if any.\n\t\t\t\t// After this loop, we should be just\n\t\t\t\t// in front of the closing delimiter.\n    skipWhitespace();\n    c = readCh();\n    while (c != '/' && c != '>') {\n      unread(c);\n      parseAttribute(gi);\n      skipWhitespace();\n      c = readCh();\n    }\n    unread(c);\n\n\t\t\t\t// Supply any defaulted attributes.\n    Enumeration atts = declaredAttributes(gi);\n    if (atts != null) {\n      String aname;\n    loop: while (atts.hasMoreElements()) {\n      aname = (String)atts.nextElement();\n\t\t\t\t// See if it was specified.\n      for (int i = 0; i < tagAttributePos; i++) {\n\tif (tagAttributes[i] == aname) {\n\t  continue loop;\n\t}\n      }\n\t\t\t\t// I guess not...\n      if (handler != null) {\n\thandler.attribute(aname,\n\t\t\t  getAttributeExpandedValue(gi, aname),\n\t\t\t  false);\n      }\n    }\n    }\n\n\t\t\t\t// Figure out if this is a start tag\n\t\t\t\t// or an empty element, and dispatch an\n\t\t\t\t// event accordingly.\n    c = readCh();\n    switch (c) {\n    case '>':\n      if (handler != null) {\n\thandler.startElement(gi);\n      }\n      parseContent();\n      break;\n    case '/':\n      require('>');\n      if (handler != null) {\n\thandler.startElement(gi);\n\thandler.endElement(gi);\n      }\n      break;\n    }\n\n\t\t\t\t// Restore the previous state.\n    currentElement = oldElement;\n    currentElementContent = oldElementContent;\n  }\n\n\n  /**\n    * Parse an attribute assignment.\n    * <pre>\n    * [34] Attribute ::= Name Eq AttValue\n    * </pre>\n    * @param name The name of the attribute's element.\n    * @see XmlHandler#attribute\n    */\n  void parseAttribute (String name)\n    throws java.lang.Exception\n  {\n    String aname;\n    int type;\n    String value;\n\n\t\t\t\t// Read the attribute name.\n    aname = readNmtoken(true).intern();\n    type = getAttributeDefaultValueType(name, aname);\n\n\t\t\t\t// Parse '='\n    parseEq();\n\n\t\t\t\t// Read the value, normalizing whitespace\n\t\t\t\t// if it is not CDATA.\n    if (type == ATTRIBUTE_CDATA || type == ATTRIBUTE_UNDECLARED) {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF);\n    } else {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF | LIT_NORMALIZE);\n    }\n\n\t\t\t\t// Inform the handler about the\n\t\t\t\t// attribute.\n    if (handler != null) {\n      handler.attribute(aname, value, true);\n    }\n    dataBufferPos = 0;\n\n\t\t\t\t// Note that the attribute has been\n\t\t\t\t// specified.\n    if (tagAttributePos == tagAttributes.length) {\n      String newAttrib[] = new String[tagAttributes.length * 2];\n      System.arraycopy(tagAttributes, 0, newAttrib, 0, tagAttributePos);\n      tagAttributes = newAttrib;\n    }\n    tagAttributes[tagAttributePos++] = aname;\n  }\n\n\n  /**\n    * Parse an equals sign surrounded by optional whitespace.\n    * [35] Eq ::= S? '=' S?\n    */\n  void parseEq ()\n    throws java.lang.Exception\n  {\n    skipWhitespace();\n    require('=');\n    skipWhitespace();\n  }\n\n\n  /**\n    * Parse an end tag.\n    * [36] ETag ::= '</' Name S? '>'\n    * *NOTE: parseContent() chains to here.\n    */\n  void parseETag ()\n    throws java.lang.Exception\n  {\n    String name;\n    name = readNmtoken(true);\n    if (name != currentElement) {\n      error(\"mismatched end tag\", name, currentElement);\n    }\n    skipWhitespace();\n    require('>');\n    if (handler != null) {\n      handler.endElement(name);\n    }\n  }\n\n\n  /**\n    * Parse the content of an element.\n    * [37] content ::= (element | PCData | Reference | CDSect | PI | Comment)*\n    * [68] Reference ::= EntityRef | CharRef\n    */\n  void parseContent ()\n    throws java.lang.Exception\n  {\n    String data;\n    char c;\n\n    while (true) {\n\n      switch (currentElementContent) {\n      case CONTENT_ANY:\n      case CONTENT_MIXED:\n\tparsePCData();\n\tbreak;\n      case CONTENT_ELEMENTS:\n\tparseWhitespace();\n\tbreak;\n      }\n\n\t\t\t\t// Handle delimiters\n      c = readCh();\n      switch (c) {\n\n      case '&':\t\t\t// Found \"&\"\n\tc = readCh();\n\tif (c == '#') {\n\t  parseCharRef();\n\t} else {\n\t  unread(c);\n\t  parseEntityRef(true);\n\t}\n\tbreak;\n\n      case '<':\t\t\t// Found \"<\"\n\n\tc = readCh();\n\tswitch (c) {\n\n\tcase '!':\t\t// Found \"<!\"\n\t  c = readCh();\n\t  switch (c) {\n\t  case '-':\t\t// Found \"<!-\"\n\t    require('-');\n\t    parseComment();\n\t    break;\n\t  case '[':\t\t// Found \"<![\"\n\t    require(\"CDATA[\");\n\t    parseCDSect();\n\t    break;\n\t  default:\n\t    error(\"expected comment or CDATA section\", c, null);\n\t    break;\n\t  }\n\t  break;\n\n\tcase '?':\t\t// Found \"<?\"\n\t  dataBufferFlush();\n\t  parsePI();\n\t  break;\n\n\tcase '/':\t\t// Found \"</\"\n\t  dataBufferFlush();\n\t  parseETag();\n\t  return;\n\n\tdefault:\t\t// Found \"<\" followed by something else\n\t  dataBufferFlush();\n\t  unread(c);\n\t  parseElement();\n\t  break;\n\t}\n      }\n    }\n  }\n\n\n  /**\n    * Parse an element type declaration.\n    * [40] elementdecl ::= '<!ELEMENT' S %Name S (%S S)? %contentspec S? '>'\n    *                      [VC: Unique Element Declaration]\n    * *NOTE: the '<!ELEMENT' has already been read.\n    */\n  void parseElementdecl ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    requireWhitespace();\n\t\t\t\t// Read the element type name.\n    name = readNmtoken(true);\n\n    requireWhitespace();\n\t\t\t\t// Read the content model.\n    parseContentspec(name);\n\n    skipWhitespace();\n    require('>');\n  }\n\n\n  /**\n    * Content specification.\n    * [41] contentspec ::= 'EMPTY' | 'ANY' | Mixed | elements\n    */\n  void parseContentspec (String name)\n    throws java.lang.Exception\n  {\n    if (tryRead(\"EMPTY\")) {\n      setElement(name, CONTENT_EMPTY, null, null);\n      return;\n    } else if (tryRead(\"ANY\")) {\n      setElement(name, CONTENT_ANY, null, null);\n      return;\n    } else {\n      require('(');\n      dataBufferAppend('(');\n      skipWhitespace();\n      if (tryRead(\"#PCDATA\")) {\n\tdataBufferAppend(\"#PCDATA\");\n\tparseMixed();\n\tsetElement(name, CONTENT_MIXED, dataBufferToString(), null);\n      } else {\n\tparseElements();\n\tsetElement(name, CONTENT_ELEMENTS, dataBufferToString(), null);\n      }\n    }\n  }\n\n\n  /**\n    * Parse an element-content model.\n    * [42] elements ::= (choice | seq) ('?' | '*' | '+')?\n    * [44] cps ::= S? %cp S?\n    * [45] choice ::= '(' S? %ctokplus (S? '|' S? %ctoks)* S? ')'\n    * [46] ctokplus ::= cps ('|' cps)+\n    * [47] ctoks ::= cps ('|' cps)*\n    * [48] seq ::= '(' S? %stoks (S? ',' S? %stoks)* S? ')'\n    * [49] stoks ::= cps (',' cps)*\n    * *NOTE: the opening '(' and S have already been read.\n    * *TODO: go over parameter entity boundaries more carefully.\n    */\n  void parseElements ()\n    throws java.lang.Exception\n  {\n    char c;\n    char sep;\n\n\t\t\t\t// Parse the first content particle\n    skipWhitespace();\n    parseCp();\n\n\t\t\t\t// Check for end or for a separator.\n    skipWhitespace();\n    c = readCh();\n    switch (c) {\n    case ')':\n      dataBufferAppend(')');\n      c = readCh();\n      switch (c) {\n      case '*':\n      case '+':\n      case '?':\n\tdataBufferAppend(c);\n\tbreak;\n      default:\n\tunread(c);\n      }\n      return;\n    case ',':\t\t\t// Register the separator.\n    case '|':\n      sep = c;\n      dataBufferAppend(c);\n      break;\n    default:\n      error(\"bad separator in content model\", c, null);\n      return;\n    }\n\n\t\t\t\t// Parse the rest of the content model.\n    while (true) {\n      skipWhitespace();\n      parseCp();\n      skipWhitespace();\n      c = readCh();\n      if (c == ')') {\n\tdataBufferAppend(')');\n\tbreak;\n      } else if (c != sep) {\n\terror(\"bad separator in content model\", c, null);\n\treturn;\n      } else {\n\tdataBufferAppend(c);\n      }\n    }\n\n\t\t\t\t// Check for the occurrence indicator.\n    c = readCh();\n    switch (c) {\n    case '?':\n    case '*':\n    case '+':\n      dataBufferAppend(c);\n      return;\n    default:\n      unread(c);\n      return;\n    }\n  }\n\n\n  /**\n    * Parse a content particle.\n    * [43] cp ::= (Name | choice | seq) ('?' | '*' | '+')\n    * *NOTE: I actually use a slightly different production here:\n    *        cp ::= (elements | (Name ('?' | '*' | '+')?))\n    */\n  void parseCp ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (tryRead('(')) {\n      dataBufferAppend('(');\n      parseElements();\n    } else {\n      dataBufferAppend(readNmtoken(true));\n      c = readCh();\n      switch (c) {\n      case '?':\n      case '*':\n      case '+':\n\tdataBufferAppend(c);\n\tbreak;\n      default:\n\tunread(c);\n\tbreak;\n      }\n    }\n  }\n\n\n  /**\n    * Parse mixed content.\n    * [50] Mixed ::= '(' S? %( %'#PCDATA' (S? '|' S? %Mtoks)* ) S? ')*'\n    *              | '(' S? %('#PCDATA') S? ')'\n    * [51] Mtoks ::= %Name (S? '|' S? %Name)*\n    * *NOTE: the S and '#PCDATA' have already been read.\n    */\n  void parseMixed ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Check for PCDATA alone.\n    skipWhitespace();\n    if (tryRead(')')) {\n      dataBufferAppend(\")*\");\n      tryRead('*');\n      return;\n    }\n\n\t\t\t\t// Parse mixed content.\n    skipWhitespace();\n    while (!tryRead(\")*\")) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();\n      dataBufferAppend(readNmtoken(true));\n      skipWhitespace();\n    }\n    dataBufferAppend(\")*\");\n  }\n\n\n  /**\n    * Parse an attribute list declaration.\n    * [52] AttlistDecl ::= '<!ATTLIST' S %Name S? %AttDef+ S? '>'\n    * *NOTE: the '<!ATTLIST' has already been read.\n    */\n  void parseAttlistDecl ()\n    throws java.lang.Exception\n  {\n    String elementName;\n\n    requireWhitespace();\n    elementName = readNmtoken(true);\n    requireWhitespace();\n    while (!tryRead('>')) {\n      parseAttDef(elementName);\n      skipWhitespace();\n    }\n  }\n\n\n  /**\n    * Parse a single attribute definition.\n    * [53] AttDef ::= S %Name S %AttType S %Default\n    */\n  void parseAttDef (String elementName)\n    throws java.lang.Exception\n  {\n    String name;\n    int type;\n    String enum1 = null;\n\n\t\t\t\t// Read the attribute name.\n    name = readNmtoken(true);\n\n\t\t\t\t// Read the attribute type.\n    requireWhitespace();\n    type = readAttType();\n\n\t\t\t\t// Get the string of enumerated values\n\t\t\t\t// if necessary.\n    if (type == ATTRIBUTE_ENUMERATED || type == ATTRIBUTE_NOTATION) {\n      enum1 = dataBufferToString();\n    }\n\n\t\t\t\t// Read the default value.\n    requireWhitespace();\n    parseDefault(elementName, name, type, enum1);\n  }\n\n\n  /**\n    * Parse the attribute type.\n    * [54] AttType ::= StringType | TokenizedType | EnumeratedType\n    * [55] StringType ::= 'CDATA'\n    * [56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' |\n    *                        'NMTOKEN' | 'NMTOKENS'\n    * [57] EnumeratedType ::= NotationType | Enumeration\n    * *TODO: validate the type!!\n    */\n  int readAttType ()\n    throws java.lang.Exception\n  {\n    String typeString;\n    Integer type;\n\n    if (tryRead('(')) {\n      parseEnumeration();\n      return ATTRIBUTE_ENUMERATED;\n    } else {\n      typeString = readNmtoken(true);\n      if (typeString.equals(\"NOTATION\")) {\n\tparseNotationType();\n      }\n      type = (Integer)attributeTypeHash.get(typeString);\n      if (type == null) {\n\terror(\"illegal attribute type\", typeString, null);\n\treturn ATTRIBUTE_UNDECLARED;\n      } else {\n\treturn type.intValue();\n      }\n    }\n  }\n\n\n  /**\n    * Parse an enumeration.\n    * [60] Enumeration ::= '(' S? %Etoks (S? '|' S? %Etoks)* S? ')'\n    * [61] Etoks ::= %Nmtoken (S? '|' S? %Nmtoken)*\n    * *NOTE: the '(' has already been read.\n    */\n  void parseEnumeration ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    dataBufferAppend('(');\n\n\t\t\t\t// Read the first token.\n    skipWhitespace();\n    dataBufferAppend(readNmtoken(true));\n\t\t\t\t// Read the remaining tokens.\n    skipWhitespace();\n    while (!tryRead(')')) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();\n      dataBufferAppend(readNmtoken(true));\n      skipWhitespace();\n    }\n    dataBufferAppend(')');\n  }\n\n\n  /**\n    * Parse a notation type for an attribute.\n    * [58] NotationType ::= %'NOTATION' S '(' S? %Ntoks (S? '|' S? %Ntoks)*\n    *                       S? ')'\n    * [59] Ntoks ::= %Name (S? '|' S? %Name)\n    * *NOTE: the 'NOTATION' has already been read\n    */\n  void parseNotationType ()\n    throws java.lang.Exception\n  {\n    requireWhitespace();\n    require('(');\n\n    parseEnumeration();\n  }\n\n\n  /**\n    * Parse the default value for an attribute.\n    * [62] Default ::= '#REQUIRED' | '#IMPLIED' | ((%'#FIXED' S)? %AttValue\n    */\n  void parseDefault (String elementName, String name, int type, String enum1)\n    throws java.lang.Exception\n  {\n    int valueType = ATTRIBUTE_DEFAULT_SPECIFIED;\n    String value = null;\n    boolean normalizeWSFlag;\n\n    if (tryRead('#')) {\n      if (tryRead(\"FIXED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_FIXED;\n\trequireWhitespace();\n\tcontext = CONTEXT_ATTRIBUTEVALUE;\n\tvalue = readLiteral(LIT_CHAR_REF);\n\tcontext = CONTEXT_DTD;\n      } else if (tryRead(\"REQUIRED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_REQUIRED;\n      } else if (tryRead(\"IMPLIED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_IMPLIED;\n      } else {\n\terror(\"illegal keyword for attribute default value\", null, null);\n      }\n    } else {\n      context = CONTEXT_ATTRIBUTEVALUE;\n      value = readLiteral(LIT_CHAR_REF);\n      context = CONTEXT_DTD;\n    }\n    setAttribute(elementName, name, type, enum1, value, valueType);\n  }\n\n\n  /**\n    * Parse a conditional section.\n    * [63] conditionalSect ::= includeSect || ignoreSect\n    * [64] includeSect ::= '<![' %'INCLUDE' '[' (%markupdecl*)* ']]>'\n    * [65] ignoreSect ::= '<![' %'IGNORE' '[' ignoreSectContents* ']]>'\n    * [66] ignoreSectContents ::= ((SkipLit | Comment | PI) -(Char* ']]>'))\n    *                           | ('<![' ignoreSectContents* ']]>')\n    *                           | (Char - (']' | [<'\"]))\n    *                           | ('<!' (Char - ('-' | '[')))\n    * *NOTE: the '<![' has already been read.\n    * *TODO: verify that I am handling ignoreSectContents right.\n    */\n  void parseConditionalSect ()\n    throws java.lang.Exception\n  {\n    skipWhitespace();\n    if (tryRead(\"INCLUDE\")) {\n      skipWhitespace();\n      require('[');\n      skipWhitespace();\n      while (!tryRead(\"]]>\")) {\n\tparseMarkupdecl();\n\tskipWhitespace();\n      }\n    } else if (tryRead(\"IGNORE\")) {\n      skipWhitespace();\n      require('[');\n      int nesting = 1;\n      char c;\n      for (int nest = 1; nest > 0; ) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '<':\n\t  if (tryRead(\"![\")) {\n\t    nest++;\n\t  }\n\tcase ']':\n\t  if (tryRead(\"]>\")) {\n\t    nest--;\n\t  }\n\t}\n      }\n    } else {\n      error(\"conditional section must begin with INCLUDE or IGNORE\",\n\t    null, null);\n    }\n  }\n\n\n  /**\n    * Read a character reference.\n    * [67] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'\n    * *NOTE: the '&#' has already been read.\n    */\n  void parseCharRef ()\n    throws java.lang.Exception\n  {\n    int value = 0;\n    char c;\n\n    if (tryRead('x')) {\n      loop1: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\tcase 'a':\n\tcase 'A':\n\tcase 'b':\n\tcase 'B':\n\tcase 'c':\n\tcase 'C':\n\tcase 'd':\n\tcase 'D':\n\tcase 'e':\n\tcase 'E':\n\tcase 'f':\n\tcase 'F':\n\t  value *= 16;\n\t  value += Integer.parseInt(new Character(c).toString(), 16);\n\t  break;\n\tcase ';':\n\t  break loop1;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop1;\n\t}\n      }\n    } else {\n      loop2: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\t  value *= 10;\n\t  value += Integer.parseInt(new Character(c).toString(), 10);\n\t  break;\n\tcase ';':\n\t  break loop2;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop2;\n\t}\n      }\n    }\n\n    // Check for surrogates: 00000000 0000xxxx yyyyyyyy zzzzzzzz\n    //  (1101|10xx|xxyy|yyyy + 1101|11yy|zzzz|zzzz: \n    if (value <= 0x0000ffff) {\n\t\t\t\t// no surrogates needed\n      dataBufferAppend((char)value);\n    } else if (value <= 0x000fffff) {\n\t\t\t\t// > 16 bits, surrogate needed\n      dataBufferAppend((char)(0xd8 | ((value & 0x000ffc00) >> 10)));\n      dataBufferAppend((char)(0xdc | (value & 0x0003ff)));\n    } else {\n\t\t\t\t// too big for surrogate\n      error(\"character reference \" + value + \" is too large for UTF-16\",\n\t    new Integer(value).toString(), null);\n    }\n  }\n\n\n  /**\n    * Parse a reference.\n    * [69] EntityRef ::= '&' Name ';'\n    * *NOTE: the '&' has already been read.\n    * @param externalAllowed External entities are allowed here.\n    */\n  void parseEntityRef (boolean externalAllowed)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      pushString(name, getEntityValue(name));\n      break;\n    case ENTITY_TEXT:\n      if (externalAllowed) {\n\tpushURL(name, getEntityPublicId(name),\n\t\tgetEntitySystemId(name),\n\t\tnull, null, null);\n      } else {\n\terror(\"reference to external entity in attribute value.\", name, null);\n      }\n      break;\n    case ENTITY_NDATA:\n      if (externalAllowed) {\n\terror(\"data entity reference in content\", name, null);\n      } else {\n\terror(\"reference to external entity in attribute value.\", name, null);\n      }\n      break;\n    }\n  }\n\n\n  /**\n    * Parse a parameter entity reference.\n    * [70] PEReference ::= '%' Name ';'\n    * *NOTE: the '%' has already been read.\n    */\n  void parsePEReference (boolean isEntityValue)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = \"%\" + readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared parameter entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      if (isEntityValue) {\n\tpushString(name, getEntityValue(name));\n      } else {\n\tpushString(name, \" \" + getEntityValue(name) + ' ');\n      }\n      break;\n    case ENTITY_TEXT:\n      if (isEntityValue) {\n\tpushString(null, \" \");\n      }\n      pushURL(name, getEntityPublicId(name),\n\t      getEntitySystemId(name),\n\t      null, null, null);\n      if (isEntityValue) {\n\tpushString(null, \" \");\n      }\n      break;\n    }\n  }\n\n\n  /**\n    * Parse an entity declaration.\n    * [71] EntityDecl ::= '<!ENTITY' S %Name S %EntityDef S? '>'\n    *                   | '<!ENTITY' S '%' S %Name S %EntityDef S? '>'\n    * [72] EntityDef ::= EntityValue | ExternalDef\n    * [73] ExternalDef ::= ExternalID %NDataDecl?\n    * [74] ExternalID ::= 'SYSTEM' S SystemLiteral\n    *                   | 'PUBLIC' S PubidLiteral S SystemLiteral\n    * [75] NDataDecl ::= S %'NDATA' S %Name\n    * *NOTE: the '<!ENTITY' has already been read.\n    */\n  void parseEntityDecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    boolean peFlag = false;\n    String name, value, notationName, ids[];\n\n\t\t\t\t// Check for a parameter entity.\n    requireWhitespace();\n    if (tryRead('%')) {\n      peFlag = true;\n      requireWhitespace();\n    }\n\n\t\t\t\t// Read the entity name, and prepend\n\t\t\t\t// '%' if necessary.\n    name = readNmtoken(true);\n    if (peFlag) {\n      name = \"%\" + name;\n    }\n\n\t\t\t\t// Read the entity value.\n    requireWhitespace();\n    c = readCh();\n    unread(c);\n    if (c == '\"' || c == '\\'') {\n\t\t\t\t// Internal entity.\n      context = CONTEXT_ENTITYVALUE;\n      value = readLiteral(LIT_CHAR_REF|LIT_PE_REF);\n      context = CONTEXT_DTD;\n      setInternalEntity(name,value);\n    } else {\n\t\t\t\t// Read the external IDs\n      ids = readExternalIds(false);\n      if (ids[1] == null) {\n\terror(\"system identifer missing\", name, null);\n      }\n\n\t\t\t\t// Check for NDATA declaration.\n      skipWhitespace();\n      if (tryRead(\"NDATA\")) {\n\trequireWhitespace();\n\tnotationName = readNmtoken(true);\n\tsetExternalDataEntity(name, ids[0], ids[1], notationName);\n      } else {\n\tsetExternalTextEntity(name, ids[0], ids[1]);\n      }\n    }\n\n\t\t\t\t// Finish the declaration.\n    skipWhitespace();\n    require('>');\n  }\n\n\n  /**\n    * Parse a notation declaration.\n    * [81] NotationDecl ::= '<!NOTATION' S %Name S %ExternalID S? '>'\n    * *NOTE: the '<!NOTATION' has already been read.\n    */\n  void parseNotationDecl ()\n    throws java.lang.Exception\n  {\n    String nname, ids[];\n    \n\n    requireWhitespace();\n    nname = readNmtoken(true);\n\n    requireWhitespace();\n\n\t\t\t\t// Read the external identifiers.\n    ids = readExternalIds(true);\n    if (ids[0] == null && ids[1] == null) {\n      error(\"external identifer missing\", nname, null);\n    }\n\n\t\t\t\t// Register the notation.\n    setNotation(nname, ids[0], ids[1]);\n\n    skipWhitespace();\n    require('>');\n  }\n\n\n  /**\n    * Parse PCDATA.\n    * <pre>\n    * [16] PCData ::= [^&lt;&amp;]*\n    * </pre>\n    * <p>The trick here is that the data stays in the dataBuffer without\n    * necessarily being converted to a string right away.\n    */\n  void parsePCData ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Start with a little cheat -- in most\n\t\t\t\t// cases, the entire sequence of\n\t\t\t\t// character data will already be in\n\t\t\t\t// the readBuffer; if not, fall through to\n\t\t\t\t// the normal approach.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '&':\n\tcase '<':\n\t  int start = readBufferPos;\n\t  columnAugment++;\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  dataBufferAppend(readBuffer, start, i-start);\n\t  return;\n\tdefault:\n\t  columnAugment++;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, the cheat didn't work; start over\n\t\t\t\t// and do it by the book.\n    while (true) {\n      c = readCh();\n      switch (c) {\n      case '<':\n      case '&':\n\tunread(c);\n\treturn;\n      default:\n\tdataBufferAppend(c);\n\tbreak;\n      }\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // High-level reading and scanning methods.\n  //////////////////////////////////////////////////////////////////////\n\n  /**\n    * Require whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void requireWhitespace ()\n    throws java.lang.Exception\n  {\n    char c = readCh();\n    if (isWhitespace(c)) {\n      skipWhitespace();\n    } else {\n      error(\"whitespace expected\", c, null);\n    }\n  }\n\n\n  /**\n    * Parse whitespace characters, and leave them in the data buffer.\n    */\n  void parseWhitespace ()\n    throws java.lang.Exception\n  {\n    char c = readCh();\n    while (isWhitespace(c)) {\n      dataBufferAppend(c);\n      c = readCh();\n    }\n    unread(c);\n  }\n\n\n  /**\n    * Skip whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void skipWhitespace ()\n    throws java.lang.Exception\n  {\n\t\t\t\t// Start with a little cheat.  Most of\n\t\t\t\t// the time, the white space will fall\n\t\t\t\t// within the current read buffer; if\n\t\t\t\t// not, then fall through.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\t  columnAugment++;\n\t  break;\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tdefault:\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  return;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, do it by the book.\n    char c = readCh();\n    while (isWhitespace(c)) {\n      c = readCh();\n    }\n    unread(c);\n  }\n\n\n  /**\n    * Read a name or name token.\n    * [5] Name ::= (Letter | '_' | ':') (NameChar)*\n    * [7] Nmtoken ::= (NameChar)+\n    * *NOTE: [6] is implemented implicitly where required.\n    */\n  String readNmtoken (boolean isName)\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (USE_CHEATS) {\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tcase '<':\n\tcase '>':\n\tcase '&':\n\tcase ',':\n\tcase '|':\n\tcase '*':\n\tcase '+':\n\tcase '?':\n\tcase ')':\n\tcase '=':\n\tcase '\\'':\n\tcase '\"':\n\tcase '[':\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\tcase '\\n':\n\tcase ';':\n\tcase '/':\n\tcase '#':\n\t  int start = readBufferPos;\n\t  if (i == start) {\n\t    error(\"name expected\", readBuffer[i], null);\n\t  }\n\t  readBufferPos = i;\n\t  return intern(readBuffer, start, i - start);\n\t}\n      }\n    }\n\n    nameBufferPos = 0;\n\n\t\t\t\t// Read the first character.\n    loop: while (true) {\n      c = readCh();\n      switch (c) {\n      case '%':\n      case '<':\n      case '>':\n      case '&':\n      case ',':\n      case '|':\n      case '*':\n      case '+':\n      case '?':\n      case ')':\n      case '=':\n      case '\\'':\n      case '\"':\n      case '[':\n      case ' ':\n      case '\\t':\n      case '\\n':\n      case '\\r':\n      case ';':\n      case '/':\n\tunread(c);\n\tif (nameBufferPos == 0) {\n\t  error(\"name expected\", null, null);\n\t}\n\tString s = intern(nameBuffer,0,nameBufferPos);\n\tnameBufferPos = 0;\n\treturn s;\n      default:\n\tnameBuffer =\n\t  (char[])extendArray(nameBuffer, nameBuffer.length, nameBufferPos);\n\tnameBuffer[nameBufferPos++] = c;\n      }\n    }\n  }\n\n\n  /**\n    * Read a literal.\n    * [10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"'\n    *                 | \"'\" ([^<&'] | Reference)* \"'\"\n    * [11] SystemLiteral ::= '\"' URLchar* '\"' | \"'\" (URLchar - \"'\")* \"'\"\n    * [13] PubidLiteral ::= '\"' PubidChar* '\"' | \"'\" (PubidChar - \"'\")* \"'\"\n    * [9] EntityValue ::= '\"' ([^%&\"] | PEReference | Reference)* '\"'\n    *                   | \"'\" ([^%&'] | PEReference | Reference)* \"'\"\n    */\n  String readLiteral (int flags)\n    throws java.lang.Exception\n  {\n    char delim, c;\n    int startLine = line;\n\n\t\t\t\t// Find the delimiter.\n    delim = readCh();\n    if (delim != '\"' && delim != '\\'' && delim != (char)0) {\n      error(\"expected '\\\"' or \\\"'\\\"\", delim, null);\n      return null;\n    }\n\n\t\t\t\t// Read the literal.\n    try {\n      c = readCh();\n\n    loop: while (c != delim) {\n      switch (c) {\n\t\t\t\t// Literals never have line ends\n      case '\\n':\n      case '\\r':\n\tc = ' ';\n\tbreak;\n\t\t\t\t// References may be allowed\n      case '&':\n\tif ((flags & LIT_CHAR_REF) > 0) {\n\t  c = readCh();\n\t  if (c == '#') {\n\t    parseCharRef();\n\t    c = readCh();\n\t    continue loop;\t\t// check the next character\n\t  } else if ((flags & LIT_ENTITY_REF) > 0) {\n\t    unread(c);\n\t    parseEntityRef(false);\n\t    c = readCh();\n\t    continue loop;\n\t  } else {\n\t    dataBufferAppend('&');\n\t  }\n\t}\n\tbreak;\n\n      default:\n\tbreak;\n      }\n      dataBufferAppend(c);\n      c = readCh();\n    }\n    } catch (EOFException e) {\n      error(\"end of input while looking for delimiter (started on line \"\n\t    + startLine + ')', null, new Character(delim).toString());\n    }\n\n\t\t\t\t// Normalise whitespace if necessary.\n    if ((flags & LIT_NORMALIZE) > 0) {\n      dataBufferNormalize();\n    }\n\n\t\t\t\t// Return the value.\n    return dataBufferToString();\n  }\n\n\n  /**\n    * Try reading external identifiers.\n    * <p>The system identifier is not required for notations.\n    * @param inNotation Are we in a notation?\n    * @return A two-member String array containing the identifiers.\n    */\n  String[] readExternalIds (boolean inNotation)\n    throws java.lang.Exception\n  {\n    char c;\n    String ids[] = new String[2];\n\n    if (tryRead(\"PUBLIC\")) {\n      requireWhitespace();\n      ids[0] = readLiteral(LIT_NORMALIZE); // public id\n      if (inNotation) {\n\tskipWhitespace();\n\tif (tryRead('\"') || tryRead('\\'')) {\n\t  ids[1] = readLiteral(0);\n\t}\n      } else {\n\trequireWhitespace();\n\tids[1] = readLiteral(0); // system id\n      }\n    } else if (tryRead(\"SYSTEM\")) {\n      requireWhitespace();\n      ids[1] = readLiteral(0);\t// system id\n    }\n\n    return ids;\n  }\n\n\n  /**\n    * Test if a character is whitespace.\n    * <pre>\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    * </pre>\n    * @param c The character to test.\n    * @return true if the character is whitespace.\n    */\n  final boolean isWhitespace (char c)\n  {\n    switch ((int)c) {\n    case 0x20:\n    case 0x09:\n    case 0x0d:\n    case 0x0a:\n      return true;\n    default:\n      return false;\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Utility routines.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Add a character to the data buffer.\n    */\n  void dataBufferAppend (char c)\n  {\n\t\t\t\t// Expand buffer if necessary.\n    dataBuffer =\n      (char[])extendArray(dataBuffer, dataBuffer.length, dataBufferPos);\n    dataBuffer[dataBufferPos++] = c;\n  }\n\n\n  /** \n    * Add a string to the data buffer.\n    */\n  void dataBufferAppend (String s)\n  {\n    dataBufferAppend(s.toCharArray(), 0, s.length());\n  }\n\n\n  /**\n    * Append (part of) a character array to the data buffer.\n    */\n  void dataBufferAppend (char ch[], int start, int length)\n  {\n    dataBuffer =\n      (char[])extendArray(dataBuffer, dataBuffer.length,\n\t\t\t  dataBufferPos + length);\n    System.arraycopy((Object)ch, start,\n\t\t     (Object)dataBuffer, dataBufferPos,\n\t\t     length);\n    dataBufferPos += length;\n  }\n\n\n  /**\n    * Normalise whitespace in the data buffer.\n    */\n  void dataBufferNormalize ()\n  {\n    int i = 0;\n    int j = 0;\n    int end = dataBufferPos;\n\n\t\t\t\t// Skip whitespace at the start.\n    while (j < end && isWhitespace(dataBuffer[j])) {\n      j++;\n    }\n\n\t\t\t\t// Skip whitespace at the end.\n    while (end > j && isWhitespace(dataBuffer[end - 1])) {\n      end --;\n    }\n\n\t\t\t\t// Start copying to the left.\n    while (j < end) {\n\n      char c = dataBuffer[j++];\n\n\t\t\t\t// Normalise all other whitespace to\n\t\t\t\t// a single space.\n      if (isWhitespace(c)) {\n\twhile (j < end && isWhitespace(dataBuffer[j++])) {\n\t}\n\tdataBuffer[i++] = ' ';\n\tdataBuffer[i++] = dataBuffer[j-1];\n      } else {\n\tdataBuffer[i++] = c;\n      }\n    }\n\n\t\t\t\t// The new length is <= the old one.\n    dataBufferPos = i;\n  }\n\n\n  /**\n    * Convert the data buffer to a string.\n    * @param internFlag true if the contents should be interned.\n    * @see #intern(char[],int,int)\n    */\n  String dataBufferToString ()\n  {\n    String s = new String(dataBuffer, 0, dataBufferPos);\n    dataBufferPos = 0;\n    return s;\n  }\n\n\n  /**\n    * Flush the contents of the data buffer to the handler, if\n    * appropriate, and reset the buffer for new input.\n    */\n  void dataBufferFlush ()\n    throws java.lang.Exception\n  {\n    if (dataBufferPos > 0) {\n      switch (currentElementContent) {\n      case CONTENT_UNDECLARED:\n      case CONTENT_EMPTY:\n\t// do nothing\n\tbreak;\n      case CONTENT_MIXED:\n      case CONTENT_ANY:\n\tif (handler != null) {\n\t  handler.charData(dataBuffer, 0, dataBufferPos);\n\t}\n\tbreak;\n      case CONTENT_ELEMENTS:\n\tif (handler != null) {\n\t  handler.ignorableWhitespace(dataBuffer, 0, dataBufferPos);\n\t}\n\tbreak;\n      }\n      dataBufferPos = 0;\n    }\n  }\n\n\n  /**\n    * Require a string to appear, or throw an exception.\n    */\n  void require (String delim)\n    throws java.lang.Exception\n  {\n    char ch[] = delim.toCharArray();\n    for (int i = 0; i < ch.length; i++) {\n      require(ch[i]);\n    }\n  }\n\n\n  /**\n    * Require a character to appear, or throw an exception.\n    */\n  void require (char delim)\n       throws java.lang.Exception\n  {\n    char c = readCh();\n\n    if (c != delim) {\n      error(\"expected character\", c, new Character(delim).toString());\n    }\n  }\n\n\n  /**\n    * Return an internalised version of a string.\n    * <p>&AElig;lfred uses this method to create an internalised version\n    * of all names and attribute values, so that it can test equality\n    * with <code>==</code> instead of <code>String.equals()</code>.\n    * <p>If you want to be able to test for equality in the same way,\n    * you can use this method to internalise your own strings first:\n    * <pre>\n    * String PARA = handler.intern(\"PARA\");\n    * </pre>\n    * <p>Note that this will not return the same results as String.intern().\n    * @param s The string to internalise.\n    * @return An internalised version of the string.\n    * @see #intern(char[],int,int)\n    * @see java.lang.String#intern\n    */\n  public String intern (String s)\n  {\n    char ch[] = s.toCharArray();\n    return intern(ch, 0, ch.length);\n  }\n\n\n  /**\n    * Create an internalised string from a character array.\n    * <p>This is much more efficient than constructing a non-internalised\n    * string first, and then internalising it.\n    * <p>Note that this will not return the same results as String.intern().\n    * @param ch an array of characters for building the string.\n    * @param start the starting position in the array.\n    * @param length the number of characters to place in the string.\n    * @return an internalised string.\n    * @see #intern(String)\n    * @see java.lang.String#intern\n    */\n  public String intern (char ch[], int start, int length)\n  {\n    int index;\n    int hash = 0;\n\n\t\t\t\t// Generate a hash code.\n    for (int i = start; i < start + length; i++) {\n      hash = ((hash << 1) & 0xffffff) + (int)ch[i];\n    }\n\n    hash = hash % SYMBOL_TABLE_LENGTH;\n\n\t\t\t\t// Get the bucket.\n    Object bucket[] = (Object[])symbolTable[hash];\n    if (bucket == null) {\n      symbolTable[hash] = bucket = new Object[8];\n    }\n\n\t\t\t\t// Search for a matching tuple, and\n\t\t\t\t// return the string if we find one.\n    for (index = 0; index < bucket.length; index += 2) {\n      char chFound[] = (char[])bucket[index];\n\n\t\t\t\t// Stop when we hit a null index.\n      if (chFound == null) {\n\tbreak;\n      }\n\n\t\t\t\t// If they're the same length,\n\t\t\t\t// check for a match.\n\t\t\t\t// If the loop finishes, 'index' will\n\t\t\t\t// contain the current bucket\n\t\t\t\t// position.\n      if (chFound.length == length) {\n\tfor (int i = 0; i < chFound.length; i++) {\n\t\t\t\t// Stop if there are no more tuples.\n\t  if (ch[start+i] != chFound[i]) {\n\t    break;\n\t  } else if (i == length-1) {\n\t\t\t\t// That's it, we have a match!\n\t    return (String)bucket[index+1];\n\t  }\n\t}\n      }\n    }\n\n\t\t\t\t// Not found -- we'll have to add it.\n\n\t\t\t\t// Do we have to grow the bucket?\n    bucket =\n      (Object[])extendArray(bucket, bucket.length, index);\n\n\t\t\t\t// OK, add it to the end of the\n\t\t\t\t// bucket.\n    String s = new String(ch, start, length);\n    bucket[index] = s.toCharArray();\n    bucket[index+1] = s;\n    symbolTable[hash] = bucket;\n    return s;\n  }\n\n\n  /**\n    * Ensure the capacity of an array, allocating a new one if\n    * necessary.\n    */\n  Object extendArray (Object array, int currentSize, int requiredSize)\n  {\n    if (requiredSize < currentSize) {\n      return array;\n    } else {\n      Object newArray = null;\n      int newSize = currentSize * 2;\n\n      if (newSize <= requiredSize) {\n\tnewSize = requiredSize + 1;\n      }\n\n      if (array instanceof char[]) {\n\tnewArray = new char[currentSize * 2];\n      } else if (array instanceof Object[]) {\n\tnewArray = new Object[currentSize * 2];\n      }\n\n      System.arraycopy(array, 0, newArray, 0, currentSize);\n      return newArray;\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // XML query routines.\n  //////////////////////////////////////////////////////////////////////\n\n\n  //\n  // Elements\n  //\n\n  /**\n    * Get the declared elements for an XML document.\n    * <p>The results will be valid only after the DTD (if any) has been\n    * parsed.\n    * @return An enumeration of all element types declared for this\n    *         document (as Strings).\n    * @see #getElementContentType\n    * @see #getElementContentModel\n    */\n  public Enumeration declaredElements ()\n  {\n    return elementInfo.keys();\n  }\n\n\n  /**\n    * Look up the content type of an element.\n    * @param name The element type name.\n    * @return An integer constant representing the content type.\n    * @see #getElementContentModel\n    * @see #CONTENT_UNDECLARED\n    * @see #CONTENT_ANY\n    * @see #CONTENT_EMPTY\n    * @see #CONTENT_MIXED\n    * @see #CONTENT_ELEMENTS\n    */\n  public int getElementContentType (String name)\n  {\n    Object element[] = (Object[])elementInfo.get(name);\n    if (element == null) {\n      return CONTENT_UNDECLARED;\n    } else {\n      return ((Integer)element[0]).intValue();\n    }\n  }\n\n\n  /**\n    * Look up the content model of an element.\n    * <p>The result will always be null unless the content type is\n    * CONTENT_ELEMENTS or CONTENT_MIXED.\n    * @param name The element type name.\n    * @return The normalised content model, as a string.\n    * @see #getElementContentType\n    */\n  public String getElementContentModel (String name)\n  {\n    Object element[] = (Object[])elementInfo.get(name);\n    if (element == null) {\n      return null;\n    } else {\n      return (String)element[1];\n    }\n  }\n\n\n  /**\n    * Register an element.\n    * Array format:\n    *  element type\n    *  attribute hash table\n    */\n  void setElement (String name, int contentType,\n\t\t   String contentModel, Hashtable attributes)\n    throws java.lang.Exception\n  {\n    Object element[];\n\n\t\t\t\t// Try looking up the element\n    element = (Object[])elementInfo.get(name);\n\n\t\t\t\t// Make a new one if necessary.\n    if (element == null) {\n      element = new Object[3];\n      element[0] = new Integer(CONTENT_UNDECLARED);\n      element[1] = null;\n      element[2] = null;\n    } else if (contentType != CONTENT_UNDECLARED &&\n\t       ((Integer)element[0]).intValue() != CONTENT_UNDECLARED) {\n      error(\"multiple declarations for element type\", name, null);\n      return;\n    }\n\n\t\t\t\t// Insert the content type, if any.\n    if (contentType != CONTENT_UNDECLARED) {\n      element[0] = new Integer(contentType);\n    }\n\n\t\t\t\t// Insert the content model, if any.\n    if (contentModel != null) {\n      element[1] = contentModel;\n    }\n\n\t\t\t\t// Insert the attributes, if any.\n    if (attributes != null) {\n      element[2] =attributes;\n    }\n\n\t\t\t\t// Save the element info.\n    elementInfo.put(name,element);\n  }\n\n\n  /**\n    * Look up the attribute hash table for an element.\n    * The hash table is the second item in the element array.\n    */\n  Hashtable getElementAttributes (String name)\n  {\n    Object element[] = (Object[])elementInfo.get(name);\n    if (element == null) {\n      return null;\n    } else {\n      return (Hashtable)element[2];\n    }\n  }\n\n\n\n  //\n  // Attributes\n  //\n\n  /**\n    * Get the declared attributes for an element type.\n    * @param elname The name of the element type.\n    * @return An Enumeration of all the attributes declared for\n    *         a specific element type.  The results will be valid only\n    *         after the DTD (if any) has been parsed.\n    * @see #getAttributeType\n    * @see #getAttributeEnumeration\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    * @see #getAttributeExpandedValue\n    */\n  public Enumeration declaredAttributes (String elname)\n  {\n    Hashtable attlist = getElementAttributes(elname);\n\n    if (attlist == null) {\n      return null;\n    } else {\n      return attlist.keys();\n    }\n  }\n\n\n  /**\n    * Retrieve the declared type of an attribute.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return An integer constant representing the attribute type.\n    * @see #ATTRIBUTE_UNDECLARED\n    * @see #ATTRIBUTE_CDATA\n    * @see #ATTRIBUTE_ID\n    * @see #ATTRIBUTE_IDREF\n    * @see #ATTRIBUTE_IDREFS\n    * @see #ATTRIBUTE_ENTITY\n    * @see #ATTRIBUTE_ENTITIES\n    * @see #ATTRIBUTE_NMTOKEN\n    * @see #ATTRIBUTE_NMTOKENS\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */\n  public int getAttributeType (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return ATTRIBUTE_UNDECLARED;\n    } else {\n      return ((Integer)attribute[0]).intValue();\n    }\n  }\n\n\n  /**\n    * Retrieve the allowed values for an enumerated attribute type.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return A string containing the token list.\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */\n  public String getAttributeEnumeration (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else {\n      return (String)attribute[3];\n    }\n  }\n\n\n  /**\n    * Retrieve the default value of a declared attribute.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared and unspecified.\n    * @see #getAttributeExpandedValue\n    */\n  public String getAttributeDefaultValue (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else {\n      return (String)attribute[1];\n    }\n  }\n\n\n  /**\n    * Retrieve the expanded value of a declared attribute.\n    * <p>All general entities will be expanded.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The expanded default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared\n    * @see #getAttributeDefaultValue\n    */\n  public String getAttributeExpandedValue (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else if (attribute[4] == null && attribute[1] != null) {\n      try {\n\tpushString(null, (char)0 + (String)attribute[1] + (char)0);\n\tattribute[4] = readLiteral(LIT_NORMALIZE |\n\t\t\t\t   LIT_CHAR_REF |\n\t\t\t\t   LIT_ENTITY_REF);\n      } catch (Exception e) {}\n    }\n    return (String)attribute[4];\n  }\n\n\n  /**\n    * Retrieve the default value type of a declared attribute.\n    * @see #ATTRIBUTE_DEFAULT_SPECIFIED\n    * @see #ATTRIBUTE_DEFAULT_IMPLIED\n    * @see #ATTRIBUTE_DEFAULT_REQUIRED\n    * @see #ATTRIBUTE_DEFAULT_FIXED\n    */\n  public int getAttributeDefaultValueType (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return ATTRIBUTE_DEFAULT_UNDECLARED;\n    } else {\n      return ((Integer)attribute[2]).intValue();\n    }\n  }\n\n\n  /**\n    * Register an attribute declaration for later retrieval.\n    * Format:\n    * - String type\n    * - String default value\n    * - int value type\n    * *TODO: do something with attribute types.\n    */\n  void setAttribute (String elName, String name, int type, String enumeration,\n\t\t     String value, int valueType)\n    throws java.lang.Exception\n  {\n    Hashtable attlist;\n    Object attribute[];\n\n\t\t\t\t// Create a new hashtable if necessary.\n    attlist = getElementAttributes(elName);\n    if (attlist == null) {\n      attlist = new Hashtable();\n    }\n\n\t\t\t\t// Check that the attribute doesn't\n\t\t\t\t// already exist!\n    if (attlist.get(name) != null) {\n      return;\n    } else {\n      attribute = new Object[5];\n      attribute[0] = new Integer(type);\n      attribute[1] = value;\n      attribute[2] = new Integer(valueType);\n      attribute[3] = enumeration;\n      attribute[4] = null;\n      attlist.put(name.intern(), attribute);\n\n\t\t\t\t// Use CONTENT_UNDECLARED to avoid overwriting\n\t\t\t\t// existing element declaration.\n      setElement(elName,CONTENT_UNDECLARED, null, attlist);\n    }\n  }\n\n\n  /**\n    * Retrieve the three-member array representing an\n    * attribute declaration.\n    */\n  Object[] getAttribute (String elName, String name)\n  {\n    Hashtable attlist;\n    Object attribute[];\n\n    attlist = getElementAttributes(elName);\n    if (attlist == null) {\n      return null;\n    }\n\n    attribute = (Object[])attlist.get(name);\n    return attribute;\n  }\n\n\n  //\n  // Entities\n  //\n\n  /**\n    * Get declared entities.\n    * @return An Enumeration of all the entities declared for\n    *         this XML document.  The results will be valid only\n    *         after the DTD (if any) has been parsed.\n    * @see #getEntityType\n    * @see #getEntityPublicId\n    * @see #getEntitySystemId\n    * @see #getEntityValue\n    * @see #getEntityNotationName\n    */\n  public Enumeration declaredEntities ()\n  {\n    return entityInfo.keys();\n  }\n\n\n  /**\n    * Find the type of an entity.\n    * @returns An integer constant representing the entity type.\n    * @see #ENTITY_UNDECLARED\n    * @see #ENTITY_INTERNAL\n    * @see #ENTITY_NDATA\n    * @see #ENTITY_TEXT\n    */\n  public int getEntityType (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return ENTITY_UNDECLARED;\n    } else {\n      return ((Integer)entity[0]).intValue();\n    }\n  }\n\n\n  /**\n    * Return an external entity's public identifier, if any.\n    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, if it is not an\n    *         external entity, or if no public identifier was\n    *         provided.\n    * @see #getEntityType\n    */\n  public String getEntityPublicId (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[1];\n    }\n  }\n\n\n  /**\n    * Return an external entity's system identifier.\n    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, or if it is not an\n    *         external entity.\n    * @see #getEntityType\n    */\n  public String getEntitySystemId (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[2];\n    }\n  }\n\n\n  /**\n    * Return the value of an internal entity.\n    * @param ename The name of the internal entity.\n    * @return The entity's value, or null if the entity was\n    *         not declared, or if it is not an internal entity.\n    * @see #getEntityType\n    */\n  public String getEntityValue (String ename)\n  {\n    Object entity[] = (Object[])entityInfo.get(ename);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[3];\n    }\n  }\n\n\n  /**\n    * Get the notation name associated with an NDATA entity.\n    * @param ename The NDATA entity name.\n    * @return The associated notation name, or null if the\n    *         entity was not declared, or if it is not an\n    *         NDATA entity.\n    * @see #getEntityType\n    */\n  public String getEntityNotationName (String eName)\n  {\n    Object entity[] = (Object[])entityInfo.get(eName);\n    if (entity == null) {\n      return null;\n    } else {\n      return (String)entity[4];\n    }\n  }\n\n\n  /**\n    * Register an entity declaration for later retrieval.\n    */\n  void setInternalEntity (String eName, String value)\n  {\n    setEntity(eName, ENTITY_INTERNAL, null, null, value, null);\n  }\n\n\n  /**\n    * Register an external data entity.\n    */\n  void setExternalDataEntity (String eName, String pubid,\n\t\t\t      String sysid, String nName)\n  {\n    setEntity(eName, ENTITY_NDATA, pubid, sysid, null, nName);\n  }\n\n\n  /**\n    * Register an external text entity.\n    */\n  void setExternalTextEntity (String eName, String pubid, String sysid)\n  {\n    setEntity(eName, ENTITY_TEXT, pubid, sysid, null, null);\n  }\n\n\n  /**\n    * Register an entity declaration for later retrieval.\n    */\n  void setEntity (String eName, int eClass,\n\t\t  String pubid, String sysid,\n\t\t  String value, String nName)\n  {\n    Object entity[];\n\n    if (entityInfo.get(eName) == null) {\n      entity = new Object[5];\n      entity[0] = new Integer(eClass);\n      entity[1] = pubid;\n      entity[2] = sysid;\n      entity[3] = value;\n      entity[4] = nName;\n\n      entityInfo.put(eName,entity);\n    }\n  }\n\n\n  //\n  // Notations.\n  //\n\n  /**\n    * Get declared notations.\n    * @return An Enumeration of all the notations declared for\n    *         this XML document.  The results will be valid only\n    *         after the DTD (if any) has been parsed.\n    * @see #getNotationPublicId\n    * @see #getNotationSystemId\n    */\n  public Enumeration declaredNotations ()\n  {\n    return notationInfo.keys();\n  }\n\n\n  /**\n    * Look up the public identifier for a notation.\n    * You will normally use this method to look up a notation\n    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the public identifier, or null\n    *         if none was provided or if no such notation was\n    *         declared.\n    * @see #getNotationSystemId\n    */\n  public String getNotationPublicId (String nname)\n  {\n    Object notation[] = (Object[])notationInfo.get(nname);\n    if (notation == null) {\n      return null;\n    } else {\n      return (String)notation[0];\n    }\n  }\n\n\n  /**\n    * Look up the system identifier for a notation.\n    * You will normally use this method to look up a notation\n    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the system identifier, or null\n    *         if no such notation was declared.\n    * @see #getNotationPublicId\n    */\n  public String getNotationSystemId (String nname)\n  {\n    Object notation[] = (Object[])notationInfo.get(nname);\n    if (notation == null) {\n      return null;\n    } else {\n      return (String)notation[1];\n    }\n  }\n\n\n  /**\n    * Register a notation declaration for later retrieval.\n    * Format:\n    * - public id\n    * - system id\n    */\n  void setNotation (String nname, String pubid, String sysid)\n    throws java.lang.Exception\n  {\n    Object notation[];\n\n    if (notationInfo.get(nname) == null) {\n      notation = new Object[2];\n      notation[0] = pubid;\n      notation[1] = sysid;\n      notationInfo.put(nname,notation);\n    } else {\n      error(\"multiple declarations of notation\", nname, null);\n    }\n  }\n\n\n  //\n  // Location.\n  //\n\n\n  /**\n    * Return the current line number.\n    */\n  public int getLineNumber ()\n  {\n    return line;\n  }\n\n\n  /**\n    * Return the current column number.\n    */\n  public int getColumnNumber ()\n  {\n    return column;\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // High-level I/O.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Read a single character from the readBuffer.\n    * <p>The readDataChunk() method maintains the buffer.\n    * <p>If we hit the end of an entity, try to pop the stack and\n    * keep going.\n    * <p>(This approach doesn't really enforce XML's rules about\n    * entity boundaries, but this is not currently a validating\n    * parser).\n    * <p>This routine also attempts to keep track of the current\n    * position in external entities, but it's not entirely accurate.\n    * @return The next available input character.\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #line\n    * @return The next character from the current input source.\n    */\n  char readCh ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    // As long as there's nothing in the\n    // read buffer, try reading more data\n    // (for an external entity) or popping\n    // the entity stack (for either).\n    while (readBufferPos >= readBufferLength)\n      {\n      switch (sourceType)\n        {\n        case INPUT_READER:\n        case INPUT_EXTERNAL:\n        case INPUT_STREAM:\n        readDataChunk();\n        while (readBufferLength < 1)\n          {\n          popInput();\n          if (readBufferLength <1)\n            {\n            readDataChunk();\n            }\n          }\n        break;\n\n        default:\n        popInput();\n        break;\n        }\n      }\n\n    c = readBuffer[readBufferPos++];\n\n    // This is a particularly nasty bit\n    // of code, that checks for a parameter\n    // entity reference but peeks ahead to\n    // catch the '%' in parameter entity\n    // declarations.\n    if\n      (\n      c == '%' && \n      (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE)\n      )\n      {\n      char c2 = readCh();\n      unread(c2);\n      if (!isWhitespace(c2))\n        {\n        parsePEReference(context == CONTEXT_ENTITYVALUE);\n        return readCh();\n        }\n      }\n\n    if (c == '\\n')\n      {\n      line++;\n      column = 0;\n      }\n    else\n      {\n      column++;\n      }\n\n    return c;\n    }\n\n\n  /**\n    * Push a single character back onto the current input stream.\n    * <p>This method usually pushes the character back onto\n    * the readBuffer, while the unread(String) method treats the\n    * string as a new internal entity.\n    * <p>I don't think that this would ever be called with \n    * readBufferPos = 0, because the methods always reads a character\n    * before unreading it, but just in case, I've added a boundary\n    * condition.\n    * @param c The character to push back.\n    * @see #readCh\n    * @see #unread(String)\n    * @see #unread(char[])\n    * @see #readBuffer\n    */\n  void unread (char c)\n    throws java.lang.Exception\n    {\n    // Normal condition.\n    if (c == '\\n')\n      {\n      line--;\n      column = -1;\n      }\n    if (readBufferPos > 0)\n      {\n      readBuffer[--readBufferPos] = c;\n      }\n    else\n      {\n      pushString(null, new Character(c).toString());\n      }\n    }\n\n\n  /**\n    * Push a char array back onto the current input stream.\n    * <p>NOTE: you must <em>never</em> push back characters that you\n    * haven't actually read: use pushString() instead.\n    * @see #readCh\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readBuffer\n    * @see #pushString\n    */\n  void unread (char ch[], int length) \n    throws java.lang.Exception\n    {\n    for (int i = 0; i < length; i++)\n        {\n        if (ch[i] == '\\n')\n          {line--;column = -1;}\n        }\n    if (length < readBufferPos)\n      {readBufferPos -= length;}\n    else\n      {\n      pushCharArray(null, ch, 0, length);\n      sourceType = INPUT_BUFFER;\n      }\n    }\n\n\n  /**\n    * Push a new external input source.\n    * <p>The source will be either an external text entity, or the DTD\n    * external subset.\n    * <p>TO DO: Right now, this method always attempts to autodetect\n    * the encoding; in the future, it should allow the caller to \n    * request an encoding explicitly, and it should also look at the\n    * headers with an HTTP connection.\n    * @param url The java.net.URL object for the entity.\n    * @see XmlHandler#resolveEntity\n    * @see #pushString\n    * @see #sourceType\n    * @see #pushInput\n    * @see #detectEncoding\n    * @see #sourceType\n    * @see #readBuffer\n    */\n  void pushURL (String ename, String publicId, String systemId,\n\t\tReader reader, InputStream stream, String encoding)\n    throws java.lang.Exception\n  {\n    URL url;\n    boolean ignoreEncoding = false;\n\n\t\t\t\t// Push the existing status.\n    pushInput(ename);\n\n\t\t\t\t// Create a new read buffer.\n\t\t\t\t// (Note the four-character margin)\n    readBuffer = new char[READ_BUFFER_MAX+4];\n    readBufferPos = 0;\n    readBufferLength = 0;\n    readBufferOverflow = -1;\n    is = null;\n    line = 1;\n\n    currentByteCount = 0;\n\n\t\t\t\t// Flush any remaining data.\n    dataBufferFlush();\n\n\t\t\t\t// Make the URL absolute.\n    if (systemId != null && externalEntity != null) {\n      systemId = new URL(externalEntity.getURL(), systemId).toString();\n    } else if (baseURI != null) {\n      try {\n\tsystemId = new URL(new URL(baseURI), systemId).toString();\n      } catch (Exception e) {}\n    }\n\n\t\t\t\t// See if the application wants to\n\t\t\t\t// redirect the system ID and/or\n\t\t\t\t// supply its own character stream.\n    if (systemId != null && handler != null) {\n      Object input = handler.resolveEntity(publicId, systemId);\n      if (input != null) {\n\tif (input instanceof String) {\n\t  systemId = (String)input;\n\t} else if (input instanceof InputStream) {\n\t  stream = (InputStream)input;\n\t} else if (input instanceof Reader) {\n\t  reader = (Reader)input;\n\t}\n      }\n    }\n\n\t\t\t\t// Start the entity.\n    if (handler != null) {\n      if (systemId != null) {\n\thandler.startExternalEntity(systemId);\n      } else {\n\thandler.startExternalEntity(\"[external stream]\");\n      }\n    }\n\n\t\t\t\t// Figure out what we're reading from.\n    if (reader != null) {\n\t\t\t\t// There's an explicit character stream.\n      sourceType = INPUT_READER;\n      this.reader = reader;\n      tryEncodingDecl(true);\n      return;\n    } else if (stream != null) {\n      sourceType = INPUT_STREAM;\n      is = stream;\n    } else {\n\t\t\t\t// We have to open our own stream\n\t\t\t\t// to the URL.\n\n\t\t\t\t// Set the new status\n      sourceType = INPUT_EXTERNAL;\n      url = new URL(systemId);\n\n      externalEntity = url.openConnection();\n      externalEntity.connect();\n      is = externalEntity.getInputStream();\n    }\n\n\t\t\t\t// If we get to here, there must be\n\t\t\t\t// an InputStream available.\n    if (!is.markSupported()) {\n      is = new BufferedInputStream(is);\n    }\n\n\t\t\t\t// Attempt to detect the encoding.\n    if (encoding == null && externalEntity != null) {\n      encoding = externalEntity.getContentEncoding();\n    }\n\n    if (encoding != null) {\n      checkEncoding(encoding, false);\n      ignoreEncoding = true;\n    } else {\n      detectEncoding();\n      ignoreEncoding = false;\n    }\n\n\t\t\t\t// Read an XML or text declaration.\n    tryEncodingDecl(ignoreEncoding);\n  }\n\n\n  /**\n    * Check for an encoding declaration.\n    */\n  void tryEncodingDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n\t\t\t\t// Read the XML/Encoding declaration.\n    if (tryRead(\"<?xml\")) {\n      if (tryWhitespace()) {\n\tif (inputStack.size() > 0) {\n\t  parseTextDecl(ignoreEncoding);\n\t} else {\n\t  parseXMLDecl(ignoreEncoding);\n\t}\n      } else {\n\tunread(\"xml\".toCharArray(), 3);\n\tparsePI();\n      }\n    }\n  }\n\n\n  /**\n    * Attempt to detect the encoding of an entity.\n    * <p>The trick here (as suggested in the XML standard) is that\n    * any entity not in UTF-8, or in UCS-2 with a byte-order mark, \n    * <b>must</b> begin with an XML declaration or an encoding\n    * declaration; we simply have to look for \"&lt;?XML\" in various\n    * encodings.\n    * <p>This method has no way to distinguish among 8-bit encodings.\n    * Instead, it assumes UTF-8, then (possibly) revises its assumption\n    * later in checkEncoding().  Any ASCII-derived 8-bit encoding\n    * should work, but most will be rejected later by checkEncoding().\n    * <p>I don't currently detect EBCDIC, since I'm concerned that it\n    * could also be a valid UTF-8 sequence; I'll have to do more checking\n    * later.\n    * @see #tryEncoding(byte[], byte, byte, byte, byte)\n    * @see #tryEncoding(byte[], byte, byte)\n    * @see #checkEncoding\n    * @see #read8bitEncodingDeclaration\n    */\n  void detectEncoding ()\n    throws java.lang.Exception\n  {\n    byte signature[] = new byte[4];\n\n\t\t\t\t// Read the first four bytes for\n\t\t\t\t// autodetection.\n    is.mark(4);\n    is.read(signature);\n    is.reset();\n\n\t\t\t\t// Look for a known signature.\n    if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t    (byte)0x00, (byte)0x3c)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x00 0x3c: UCS-4, big-endian (1234)\n      encoding = ENCODING_UCS_4_1234;\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x3c 0x00 0x00 0x00: UCS-4, little-endian (4321)\n      encoding = ENCODING_UCS_4_4321;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t\t   (byte)0x3c, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x3c 0x00: UCS-4, unusual (2143)\n      encoding = ENCODING_UCS_4_2143;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x3c 0x00 0x00: UCS-4, unusual (3421)\n      encoding = ENCODING_UCS_4_3412;\n    } else if (tryEncoding(signature, (byte)0xfe, (byte)0xff)) {\n      // UCS-2 with a byte-order marker.\n      // 0xfe 0xff: UCS-2, big-endian (12)\n      encoding = ENCODING_UCS_2_12;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0xff, (byte)0xfe)) {\n      // UCS-2 with a byte-order marker.\n      // 0xff 0xfe: UCS-2, little-endian (21)\n      encoding = ENCODING_UCS_2_21;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x3f)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x00 0x3c 0x00 0x3f: UCS-2, big-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_12;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x3f, (byte)0x00)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x3c 0x00 0x3f 0x00: UCS-2, little-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_21;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x3f,\n\t\t\t   (byte)0x78, (byte)0x6d)) {\n      // Some kind of 8-bit encoding with \"<?XML\"\n      // 0x3c 0x3f 0x78 0x6d: UTF-8 or other 8-bit markup (read ENCODING)\n      encoding = ENCODING_UTF_8;\n      read8bitEncodingDeclaration();\n    } else {\n      // Some kind of 8-bit encoding without \"<?XML\"\n      // (otherwise) UTF-8 without encoding/XML declaration\n      encoding = ENCODING_UTF_8;\n    }\n  }\n\n\n  /**\n    * Check for a four-byte signature.\n    * <p>Utility routine for detectEncoding().\n    * <p>Always looks for some part of \"<?XML\" in a specific encoding.\n    * @param sig The first four bytes read.\n    * @param b1 The first byte of the signature\n    * @param b2 The second byte of the signature\n    * @param b3 The third byte of the signature\n    * @param b4 The fourth byte of the signature\n    * @see #detectEncoding\n    */\n  boolean tryEncoding (byte sig[], byte b1, byte b2, byte b3, byte b4)\n  {\n    return (sig[0] == b1 && sig[1] == b2 && sig[2] == b3 && sig[3] == b4);\n  }\n\n\n  /**\n    * Check for a two-byte signature.\n    * <p>Looks for a UCS-2 byte-order mark.\n    * <p>Utility routine for detectEncoding().\n    * @param sig The first four bytes read.\n    * @param b1 The first byte of the signature\n    * @param b2 The second byte of the signature\n    * @see #detectEncoding\n    */\n  boolean tryEncoding (byte sig[], byte b1, byte b2)\n  {\n    return ((sig[0] == b1) && (sig[1] == b2));\n  }\n\n\n  /**\n    * This method pushes a string back onto input.\n    * <p>It is useful either as the expansion of an internal entity, \n    * or for backtracking during the parse.\n    * <p>Call pushCharArray() to do the actual work.\n    * @param s The string to push back onto input.\n    * @see #pushCharArray\n    */\n  void pushString (String ename, String s) \n    throws java.lang.Exception\n  {\n    char ch[] = s.toCharArray();\n    pushCharArray(ename, ch, 0, ch.length);\n  }\n\n\n  /**\n    * Push a new internal input source.\n    * <p>This method is useful for expanding an internal entity,\n    * or for unreading a string of characters.  It creates a new\n    * readBuffer containing the characters in the array, instead\n    * of characters converted from an input byte stream.\n    * <p>I've added a couple of optimisations: don't push zero-\n    * length strings, and just push back a single character\n    * for 1-character strings; this should save some time and memory.\n    * @param ch The char array to push.\n    * @see #pushString\n    * @see #pushURL\n    * @see #readBuffer\n    * @see #sourceType\n    * @see #pushInput\n    */\n  void pushCharArray (String ename, char ch[], int start, int length)\n    throws java.lang.Exception\n  {\n\t\t\t\t// Push the existing status\n    pushInput(ename);\n    sourceType = INPUT_INTERNAL;\n    readBuffer = ch;\n    readBufferPos = start;\n    readBufferLength = length;\n    readBufferOverflow = -1;\n  }\n\n\n  /**\n    * Save the current input source onto the stack.\n    * <p>This method saves all of the global variables associated with\n    * the current input source, so that they can be restored when a new\n    * input source has finished.  It also tests for entity recursion.\n    * <p>The method saves the following global variables onto a stack\n    * using a fixed-length array:\n    * <ol>\n    * <li>sourceType\n    * <li>externalEntity\n    * <li>readBuffer\n    * <li>readBufferPos\n    * <li>readBufferLength\n    * <li>line\n    * <li>encoding\n    * </ol>\n    * @param ename The name of the entity (if any) causing the new input.\n    * @see #popInput\n    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void pushInput (String ename)\n    throws java.lang.Exception\n  {\n    Object input[] = new Object[12];\n\n\t\t\t\t// Check for entity recursion.\n    if (ename != null) {\n      Enumeration entities = entityStack.elements();\n      while (entities.hasMoreElements()) {\n\tString e = (String)entities.nextElement();\n\tif (e == ename) {\n\t  error(\"recursive reference to entity\", ename, null);\n\t}\n      }\n    }\n    entityStack.push(ename);\n\n\t\t\t\t// Don't bother if there is no input.\n    if (sourceType == INPUT_NONE) {\n      return;\n    }\n\n\t\t\t\t// Set up a snapshot of the current\n\t\t\t\t// input source.\n    input[0] = new Integer(sourceType);\n    input[1] = externalEntity;\n    input[2] = readBuffer;\n    input[3] = new Integer(readBufferPos);\n    input[4] = new Integer(readBufferLength);\n    input[5] = new Integer(line);\n    input[6] = new Integer(encoding);\n    input[7] = new Integer(readBufferOverflow);\n    input[8] = is;\n    input[9] = new Integer(currentByteCount);\n    input[10] = new Integer(column);\n    input[11] = reader;\n\n\t\t\t\t// Push it onto the stack.\n    inputStack.push(input);\n  }\n\n\n  /**\n    * Restore a previous input source.\n    * <p>This method restores all of the global variables associated with\n    * the current input source.\n    * @exception java.io.EOFException\n    *    If there are no more entries on the input stack.\n    * @see #pushInput\n    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void popInput ()\n    throws java.lang.Exception\n  {\n    Object input[];\n\n\n    switch (sourceType) {\n\n    case INPUT_EXTERNAL:\n      dataBufferFlush();\n      if (handler != null && externalEntity != null) {\n\thandler.endExternalEntity(externalEntity.getURL().toString());\n      }\n      break;\n    case INPUT_STREAM:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    case INPUT_READER:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    }\n\n\t\t\t\t// Throw an EOFException if there\n\t\t\t\t// is nothing else to pop.\n    if (inputStack.isEmpty()) {\n      throw new EOFException();\n    } else {\n      String s;\n      input = (Object[])inputStack.pop();\n      s = (String)entityStack.pop();\n    }\n\n    sourceType = ((Integer)input[0]).intValue();\n    externalEntity = (URLConnection)input[1];\n    readBuffer = (char[])input[2];\n    readBufferPos = ((Integer)input[3]).intValue();\n    readBufferLength = ((Integer)input[4]).intValue();\n    line = ((Integer)input[5]).intValue();\n    encoding = ((Integer)input[6]).intValue();\n    readBufferOverflow = ((Integer)input[7]).intValue();\n    is = (InputStream)input[8];\n    currentByteCount = ((Integer)input[9]).intValue();\n    column = ((Integer)input[10]).intValue();\n    reader = (Reader)input[11];\n  }\n\n\n  /**\n    * Return true if we can read the expected character.\n    * <p>Note that the character will be removed from the input stream\n    * on success, but will be put back on failure.  Do not attempt to\n    * read the character again if the method succeeds.\n    * @param delim The character that should appear next.  For a\n    *              insensitive match, you must supply this in upper-case.\n    * @return true if the character was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(String)\n    */\n  boolean tryRead (char delim)\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Read the character\n    c = readCh();\n\n\t\t\t\t// Test for a match, and push the character\n\t\t\t\t// back if the match fails.\n    if (c == delim) {\n      return true;\n    } else {\n      unread(c);\n      return false;\n    }\n  }\n\n\n  /**\n    * Return true if we can read the expected string.\n    * <p>This is simply a convenience method.\n    * <p>Note that the string will be removed from the input stream\n    * on success, but will be put back on failure.  Do not attempt to\n    * read the string again if the method succeeds.\n    * <p>This method will push back a character rather than an\n    * array whenever possible (probably the majority of cases).\n    * <p><b>NOTE:</b> This method currently has a hard-coded limit\n    * of 100 characters for the delimiter.\n    * @param delim The string that should appear next.\n    * @return true if the string was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(char)\n    */\n  boolean tryRead (String delim)\n    throws java.lang.Exception\n    {\n    char ch[] = delim.toCharArray();\n    char c;\n\n    // Compare the input, character-\n    // by character.\n    \n    for (int i = 0; i < ch.length; i++)\n      {\n      c=readCh();\n      if (c!=ch[i])\n        {\n        unread(c);\n        if (i!=0)\n          {unread(ch,i);}\n        return false;\n        }\n      }\n    return true;\n    }\n\n\n\n  /**\n    * Return true if we can read some whitespace.\n    * <p>This is simply a convenience method.\n    * <p>This method will push back a character rather than an\n    * array whenever possible (probably the majority of cases).\n    * @return true if whitespace was found.\n    */\n  boolean tryWhitespace ()\n    throws java.lang.Exception\n  {\n    char c;\n    c = readCh();\n    if (isWhitespace(c)) {\n      skipWhitespace();\n      return true;\n    } else {\n      unread(c);\n      return false;\n    }\n  }\n\n\n  /**\n    * Read all data until we find the specified string.\n    * <p>This is especially useful for scanning marked sections.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter\n    * @see #tryRead(String, boolean)\n    * @see #readCh\n    */\n  void parseUntil (String delim)\n    throws java.lang.Exception\n  {\n    char c;\n    int startLine = line;\n\n    try {\n      while (!tryRead(delim)) {\n\tc = readCh();\n\tdataBufferAppend(c);\n      }\n    } catch (EOFException e) {\n      error(\"end of input while looking for delimiter (started on line \" +\n\t    startLine + ')', null, delim);\n    }\n  }\n\n\n  /**\n    * Skip all data until we find the specified string.\n    * <p>This is especially useful for scanning comments.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter\n    * @see #tryRead(String, boolean)\n    * @see #readCh\n    */\n  void skipUntil (String delim)\n    throws java.lang.Exception\n  {\n    while (!tryRead(delim)) {\n      readCh();\n    }\n  }\n\n\n  /**\n    * Read just the encoding declaration (or XML declaration) at the \n    * start of an external entity.\n    * When this method is called, we know that the declaration is\n    * present (or appears to be).  We also know that the entity is\n    * in some sort of ASCII-derived 8-bit encoding.\n    * The idea of this is to let us read what the 8-bit encoding is\n    * before we've committed to converting any more of the file; the\n    * XML or encoding declaration must be in 7-bit ASCII, so we're\n    * safe as long as we don't go past it.\n    */\n  void read8bitEncodingDeclaration ()\n    throws java.lang.Exception\n  {\n    int ch;\n    readBufferPos = readBufferLength = 0;\n\n    while (true) {\n      ch = is.read();\n      readBuffer[readBufferLength++] = (char)ch;\n      switch (ch) {\n      case (int)'>':\n\treturn;\n      case -1:\n\terror(\"end of file before end of XML or encoding declaration.\",\n\t      null, \"?>\");\n\treturn;\n      }\n      if (readBuffer.length == readBufferLength) {\n\terror(\"unfinished XML or encoding declaration\", null, null);\n      }\n    }\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Low-level I/O.\n  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Read a chunk of data from an external input source.\n    * <p>This is simply a front-end that fills the rawReadBuffer\n    * with bytes, then calls the appropriate encoding handler.\n    * @see #encoding\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #filterCR\n    * @see #copyUtf8ReadBuffer\n    * @see #copyIso8859_1ReadBuffer\n    * @see #copyUcs_2ReadBuffer\n    * @see #copyUcs_4ReadBuffer\n    */\n  void readDataChunk ()\n    throws java.lang.Exception\n    {\n    int count, i, j;\n\n    // See if we have any overflow.\n    if (readBufferOverflow > -1)\n      {\n      readBuffer[0] = (char)readBufferOverflow;\n      readBufferOverflow = -1;\n      readBufferPos = 1;\n      sawCR = true;\n      }\n    else\n      {\n      readBufferPos = 0;\n      sawCR = false;\n      }\n\n    // Special situation -- we're taking\n    // input from a character stream.\n    if (sourceType == INPUT_READER)\n      {\n      count = reader.read(readBuffer, readBufferPos, READ_BUFFER_MAX-1);\n      if (count < 0)\n        {readBufferLength = -1;}\n      else\n        {\n        readBufferLength = readBufferPos+count;\n        filterCR();\n        sawCR = false;\n        }\n      return;\n      }\n\n    // Read as many bytes as possible\n    // into the read buffer.\n    count = is.read(rawReadBuffer, 0, READ_BUFFER_MAX);\n\n    // Dispatch to an encoding-specific\n    // reader method to populate the\n    // readBuffer.\n    switch (encoding)\n      {\n      case ENCODING_UTF_8:\n      copyUtf8ReadBuffer(count);\n      break;\n      \n      case ENCODING_ISO_8859_1:\n      copyIso8859_1ReadBuffer(count);\n      break;\n      \n      case ENCODING_UCS_2_12:\n      copyUcs2ReadBuffer(count, 8, 0);\n      break;\n      \n      case ENCODING_UCS_2_21:\n      copyUcs2ReadBuffer(count, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_1234:\n      copyUcs4ReadBuffer(count, 24, 16, 8, 0);\n      break;\n      \n      case ENCODING_UCS_4_4321:\n      copyUcs4ReadBuffer(count, 0, 8, 16, 24);\n      break;\n      \n      case ENCODING_UCS_4_2143:\n      copyUcs4ReadBuffer(count, 16, 24, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_3412:\n      copyUcs4ReadBuffer(count, 8, 0, 24, 16);\n      break;\n      }\n\n    // Filter out all carriage returns\n    // if we've seen any.\n    if (sawCR)\n      {\n      filterCR();\n      sawCR = false;\n      }\n    \n    // Reset the position.\n    readBufferPos = 0;\n    currentByteCount += count;\n    }\n\n\n  /**\n    * Filter carriage returns in the read buffer.\n    * <p>CRLF becomes LF; CR becomes LF.\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #readBufferOverflow\n    */\n  void filterCR ()\n    {\n    int i, j;\n    \n    readBufferOverflow = -1;\n    \n    loop: for (i = 0, j = 0; j < readBufferLength; i++, j++)\n      {\n      switch (readBuffer[j])\n        {\n        case '\\r':\n        if (j == readBufferLength - 1)\n          {\n          readBufferOverflow = '\\r';\n          readBufferLength--;\n          break loop;\n          }\n        else if (readBuffer[j+1] == '\\n')\n          {j++;}\n        readBuffer[i] = '\\n';\n        break;\n        \n        case '\\n':\n        default:\n        readBuffer[i] = readBuffer[j];\n        break;\n        }\n      }\n    readBufferLength = i;\n    }\n\n\n  /**\n    * Convert a buffer of UTF-8-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>The tricky part of this is dealing with UTF-8 multi-byte \n    * sequences, but it doesn't seem to slow things down too much.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #getNextUtf8Byte\n    */\n  void copyUtf8ReadBuffer (int count)\n    throws java.lang.Exception\n  {\n    int i = 0;\n    int j = readBufferPos;\n    int b1;\n    boolean isSurrogate = false;\n    while (i < count) {\n      b1 = rawReadBuffer[i++];\n      isSurrogate = false;\n\n\t\t\t\t// Determine whether we are dealing\n\t\t\t\t// with a one-, two-, three-, or four-\n\t\t\t\t// byte sequence.\n      if ((b1 & 0x80) == 0) {\n\t// 1-byte sequence: 000000000xxxxxxx = 0xxxxxxx\n\treadBuffer[j++] = (char)b1;\n      } else if ((b1 & 0xe0) == 0xc0) {\n\t// 2-byte sequence: 00000yyyyyxxxxxx = 110yyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x1f) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf0) == 0xe0) {\n\t// 3-byte sequence: zzzzyyyyyyxxxxxx = 1110zzzz 10yyyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x0f) << 12) |\n\t\t (getNextUtf8Byte(i++, count) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf8) == 0xf0) {\n\t// 4-byte sequence: 11101110wwwwzzzzyy + 110111yyyyxxxxxx\n\t//     = 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx\n\t// (uuuuu = wwww + 1)\n\tisSurrogate = true;\n\tint b2 = getNextUtf8Byte(i++, count);\n\tint b3 = getNextUtf8Byte(i++, count);\n\tint b4 = getNextUtf8Byte(i++, count);\n\treadBuffer[j++] =\n\t  (char)(0xd800 |\n\t\t ((((b1 & 0x07) << 2) | ((b2 & 0x30) >> 4) - 1) << 6) |\n\t\t ((b2 & 0x0f) << 2) |\n\t\t ((b3 & 0x30) >> 4));\n\treadBuffer[j++] =\n\t  (char)(0xdc |\n\t\t ((b3 & 0x0f) << 6) |\n\t\t b4);\n\t\t\t\t// TODO: test that surrogate value is legal.\n      } else {\n\t// Otherwise, the 8th bit may not be set in UTF-8\n\tencodingError(\"bad start for UTF-8 multi-byte sequence\", b1, i);\n      }\n      if (readBuffer[j-1] == '\\r') {\n\tsawCR = true;\n      }\n    }\n\t\t\t\t// How many characters have we read?\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Return the next byte value in a UTF-8 sequence.\n    * If it is not possible to get a byte from the current\n    * entity, throw an exception.\n    * @param pos The current position in the rawReadBuffer.\n    * @param count The number of bytes in the rawReadBuffer\n    * @return The significant six bits of a non-initial byte in\n    *         a UTF-8 sequence.\n    * @exception EOFException If the sequence is incomplete.\n    */\n  int getNextUtf8Byte (int pos, int count)\n    throws java.lang.Exception\n  {\n    int val;\n\n\t\t\t\t// Take a character from the buffer\n\t\t\t\t// or from the actual input stream.\n    if (pos < count) {\n      val = rawReadBuffer[pos];\n    } else {\n      val = is.read();\n      if (val == -1) {\n\tencodingError(\"unfinished multi-byte UTF-8 sequence at EOF\", -1, pos);\n      }\n    }\n\n\t\t\t\t// Check for the correct bits at the\n\t\t\t\t// start.\n    if ((val & 0xc0) != 0x80) {\n      encodingError(\"bad continuation of multi-byte UTF-8 sequence\", val,\n\t\t    pos + 1);\n    }\n\n\t\t\t\t// Return the significant bits.\n    return (val & 0x3f);\n  }\n\n\n  /**\n    * Convert a buffer of ISO-8859-1-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>This is a direct conversion, with no tricks.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyIso8859_1ReadBuffer (int count)\n  {\n    int i, j;\n    for (i = 0, j = readBufferPos; i < count; i++, j++) {\n      readBuffer[j] = (char)(rawReadBuffer[i] & 0xff);\n      if (readBuffer[j] == '\\r') {\n\tsawCR = true;\n      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Convert a buffer of UCS-2-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs2ReadBuffer (int count, int shift1, int shift2)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n\n    if (count > 0 && (count % 2) != 0) {\n      encodingError(\"odd number of bytes in UCS-2 encoding\", -1, count);\n    }\n    for (int i = 0; i < count; i+=2) {\n      readBuffer[j++] =\n\t(char)(((rawReadBuffer[i] & 0xff) << shift1) |\n\t       ((rawReadBuffer[i+1] & 0xff) << shift2));\n      if (readBuffer[j-1] == '\\r') {\n\tsawCR = true;\n      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Convert a buffer of UCS-4-encoded bytes into UTF-16 characters.\n    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>Java has 16-bit chars, but this routine will attempt to use\n    * surrogates to encoding values between 0x00010000 and 0x000fffff.\n    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @param shift3 The number of bits to shift byte 2\n    * @param shift4 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs4ReadBuffer (int count, int shift1, int shift2,\n\t\t\t   int shift3, int shift4)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n    int value;\n\n    if (count > 0 && (count % 4) != 0) {\n      encodingError(\"number of bytes in UCS-4 encoding not divisible by 4\",\n\t\t    -1, count);\n    }\n    for (int i = 0; i < count; i+=4) {\n      value = (((rawReadBuffer[i] & 0xff) << shift1) |\n\t       ((rawReadBuffer[i+1] & 0xff) << shift2) |\n\t       ((rawReadBuffer[i+2] & 0xff) << shift3) |\n\t       ((rawReadBuffer[i+3] & 0xff) << shift4));\n      if (value < 0x0000ffff) {\n\treadBuffer[j++] = (char)value;\n\tif (value == (int)'\\r') {\n\t  sawCR = true;\n\t}\n      } else if (value < 0x000fffff) {\n\treadBuffer[j++] = (char)(0xd8 | ((value & 0x000ffc00) >> 10));\n\treadBuffer[j++] = (char)(0xdc | (value & 0x0003ff));\n      } else {\n\tencodingError(\"value cannot be represented in UTF-16\",\n\t\t      value, i);\n      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Report a character encoding error.\n    */\n  void encodingError (String message, int value, int offset)\n    throws java.lang.Exception\n  {\n    String uri;\n\n    if (value >= 0) {\n      message = message + \" (byte value: 0x\" +\n\tInteger.toHexString(value) + ')';\n    }\n    if (externalEntity != null) {\n      uri = externalEntity.getURL().toString();\n    } else {\n      uri = baseURI;\n    }\n    handler.error(message, uri, -1, offset + currentByteCount);\n  }\n\n\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Local Variables.\n  //////////////////////////////////////////////////////////////////////\n\n  /**\n    * Re-initialize the variables for each parse.\n    */\n  void initializeVariables ()\n  {\n\t\t\t\t// No errors; first line\n    errorCount = 0;\n    line = 1;\n    column = 0;\n\n\t\t\t\t// Set up the buffers for data and names\n    dataBufferPos = 0;\n    dataBuffer = new char[DATA_BUFFER_INITIAL];\n    nameBufferPos = 0;\n    nameBuffer = new char[NAME_BUFFER_INITIAL];\n\n\t\t\t\t// Set up the DTD hash tables\n    elementInfo = new Hashtable();\n    entityInfo = new Hashtable();\n    notationInfo = new Hashtable();\n\n\t\t\t\t// Set up the variables for the current\n\t\t\t\t// element context.\n    currentElement = null;\n    currentElementContent = CONTENT_UNDECLARED;\n\n\t\t\t\t// Set up the input variables\n    sourceType = INPUT_NONE;\n    inputStack = new Stack();\n    entityStack = new Stack();\n    externalEntity = null;\n    tagAttributePos = 0;\n    tagAttributes = new String[100];\n    rawReadBuffer = new byte[READ_BUFFER_MAX];\n    readBufferOverflow = -1;\n\n    context = CONTEXT_NONE;\n\n    symbolTable = new Object[SYMBOL_TABLE_LENGTH];\n  }\n\n\n  /**\n    * Clean up after the parse to allow some garbage collection.\n    * Leave around anything that might be useful for queries.\n    */\n  void cleanupVariables ()\n  {\n    errorCount = -1;\n    line = -1;\n    column = -1;\n    dataBuffer = null;\n    nameBuffer = null;\n    currentElement = null;\n    currentElementContent = CONTENT_UNDECLARED;\n    sourceType = INPUT_NONE;\n    inputStack = null;\n    externalEntity = null;\n    entityStack = null;\n  }\n\n  //\n  // The current XML handler interface.\n  //\n  XmlHandler handler;\n\n  //\n  // I/O information.\n  //\n  private Reader reader;\t// current reader\n  private InputStream is;\t// current input stream\n  private int line;\t\t// current line number\n  private int column;\t\t// current column number\n  private int sourceType;\t// type of input source\n  private Stack inputStack;\t// stack of input soruces\n  private URLConnection externalEntity;\t// current external entity\n  private int encoding;\t\t// current character encoding.\n  private int currentByteCount;\t// how many bytes read from current source.\n\n  //\n  // Maintain a count of errors.\n  //\n  private int errorCount;\n\n  //\n  // Buffers for decoded but unparsed character input.\n  //\n  private final static int READ_BUFFER_MAX = 16384;\n  private char readBuffer[];\n  private int readBufferPos;\n  private int readBufferLength;\n  private int readBufferOverflow; // overflow character from last data chunk.\n\n\n  //\n  // Buffer for undecoded raw byte input.\n  //\n  private byte rawReadBuffer[];\n\n\n  //\n  // Buffer for parsed character data.\n  //\n  private static int DATA_BUFFER_INITIAL = 4096;\n  private char dataBuffer[];\n  private int dataBufferPos;\n\n  //\n  // Buffer for parsed names.\n  //\n  private static int NAME_BUFFER_INITIAL = 1024;\n  private char nameBuffer[];\n  private int nameBufferPos;\n\n\n  //\n  // Hashtables for DTD information on elements, entities, and notations.\n  //\n  private Hashtable elementInfo;\n  private Hashtable entityInfo;\n  private Hashtable notationInfo;\n\n\n  //\n  // Element type currently in force.\n  //\n  private String currentElement;\n  private int currentElementContent;\n\n  //\n  // Base external identifiers for resolution.\n  //\n  private String basePublicId;\n  private String baseURI;\n  private int baseEncoding;\n  private Reader baseReader;\n  private InputStream baseInputStream;\n  private char baseInputBuffer[];\n  private int baseInputBufferStart;\n  private int baseInputBufferLength;\n\n  //\n  // Stack of entity names, to help detect recursion.\n  //\n  private Stack entityStack;\n\n  //\n  // Are we in a context where PEs are allowed?\n  //\n  private int context;\n\n  //\n  // Symbol table, for internalising names.\n  //\n  private Object symbolTable[];\n  private final static int SYMBOL_TABLE_LENGTH = 1087;\n\n  //\n  // Hash table of attributes found in current start tag.", "functions": [{"function_name": "setHandler", "code": "    */\n  public void setHandler (XmlHandler handler)\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parse", "code": "    */\n  public void parse (String systemId, String publicId, String encoding)\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parse", "code": "    */\n  public void parse (String systemId, String publicId,\n\t\t     InputStream stream, String encoding)\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parse", "code": "    */\n  public void parse (String systemId, String publicId, Reader reader)\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "doParse", "code": "\n  private synchronized void doParse (String systemId, String publicId,\n\t\t\t\t     Reader reader, InputStream stream,\n\t\t\t\t     String encoding)\n    throws java.lang.Exception\n  {\n    basePublicId = publicId;\n    baseURI = systemId;\n    baseReader = reader;\n    baseInputStream = stream;\n\n    initializeVariables();\n\n\t\t\t\t// Set the default entities here.\n    setInternalEntity(intern(\"amp\"), \"&#38;\");\n    setInternalEntity(intern(\"lt\"), \"&#60;\");\n    setInternalEntity(intern(\"gt\"), \"&#62;\");\n    setInternalEntity(intern(\"apos\"), \"&#39;\");\n    setInternalEntity(intern(\"quot\"), \"&#34;\");\n\n    if (handler != null) {\n      handler.startDocument();\n    }\n\n    pushURL(\"[document]\", basePublicId, baseURI, baseReader, baseInputStream,\n\t    encoding);\n\n    parseDocument();\n\n    if (handler != null) {\n      handler.endDocument();\n    }", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [2, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [9, 23], [11, 24], [12, 25], [13, 26], [13, 27], [14, 28], [14, 29], [15, 30], [15, 31], [16, 32], [16, 33], [17, 34], [17, 35], [1, 36], [2, 37], [27, 38], [29, 39], [31, 40], [33, 41], [35, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 2], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 9], [24, 11], [25, 12], [26, 13], [27, 13], [28, 14], [29, 14], [30, 15], [31, 15], [32, 16], [33, 16], [34, 17], [35, 17], [36, 1], [37, 2], [38, 27], [39, 29], [40, 31], [41, 33], [42, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "error", "code": "    * @see XmlHandler#error\n    * @see #line\n    */\n  void error (String message, String textFound, String textExpected)\n    throws java.lang.Exception\n  {\n    errorCount++;\n    if (textFound != null) {\n      message = message + \" (found \\\"\" + textFound + \"\\\")\";\n    }\n    if (textExpected != null) {\n      message = message + \" (expected \\\"\" + textExpected + \"\\\")\";\n    }\n    if (handler != null) {\n      String uri = null;\n\n      if (externalEntity != null) {", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [1, 10], [1, 11], [7, 12], [8, 13], [9, 14], [1, 15], [10, 16], [2, 17], [3, 18], [16, 19], [11, 20], [17, 21], [18, 22], [10, 23], [21, 24], [21, 25], [22, 26], [22, 27], [23, 28], [25, 29], [27, 30], [28, 31], [29, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 1], [11, 1], [12, 7], [13, 8], [14, 9], [15, 1], [16, 10], [17, 2], [18, 3], [19, 16], [20, 11], [21, 17], [22, 18], [23, 10], [24, 21], [25, 21], [26, 22], [27, 22], [28, 23], [29, 25], [30, 27], [31, 28], [32, 29], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "error", "code": "    * @param message The error message.\n    * @param textFound The text that caused the error (or null).\n    */\n  void error (String message, char textFound, String textExpected)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parseDocument", "code": "    * document.  As a minimum, a well-formed document must have\n    * a document element, and a valid document must have a prolog\n    * as well.\n    */\n  void parseDocument ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    parseProlog();\n    require('<');\n    parseElement();\n    try\n      {\n      parseMisc();  //skip all white, PIs, and comments\n      c=readCh();   //if this doesn't throw an exception...", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "CATCH", "CALL", "CALL", "CALL", "RETURN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [3, 7], [1, 8], [1, 9], [1, 10], [5, 11], [8, 12], [8, 13], [9, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 3], [8, 1], [9, 1], [10, 1], [11, 5], [12, 8], [13, 8], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "parseComment", "code": "    * [18] Comment ::= '&lt;!--' ((Char - '-') | ('-' (Char - '-')))* \"-->\"\n    * </pre>\n    * <p>(The <code>&lt;!--</code> has already been read.)\n    */", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parsePI", "code": "    * <p>(The <code>&lt;?</code> has already been read.)\n    * <p>An XML processing instruction <em>must</em> begin with\n    * a Name, which is the instruction's target.\n    */\n  void parsePI ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    if (!tryRead(\"?>\")) {\n      requireWhitespace();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [4, 7], [5, 8], [6, 9], [1, 10], [2, 11], [2, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 4], [8, 5], [9, 6], [10, 1], [11, 2], [12, 2], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "parseCDSect", "code": "    * <p>(The '&lt;![CDATA[' has already been read.)\n    * <p>Note that this just appends characters to the dataBuffer,\n    * without actually generating an event.\n    */", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseProlog", "code": "    * <p>We do not look for the XML declaration here, because it is\n    * handled by pushURL().\n    * @see pushURL\n    */\n  void parseProlog ()\n    throws java.lang.Exception\n  {\n    parseMisc();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [1, 5], [1, 6], [1, 0], [2, 1], [3, 0], [4, 2], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parseXMLDecl", "code": "    * <p>TODO: validate value of standalone.\n    * @see #parseTextDecl\n    * @see #checkEncoding\n    */\n  void parseXMLDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String version;\n    String encodingName = null;\n    String standalone = null;\n\n\t\t\t\t// Read the version.\n    require(\"version\");\n    parseEq();\n    version = readLiteral(0);\n    if (!version.equals(\"1.0\")) {\n      error(\"unsupported XML version\", version, \"1.0\");\n    }\n\n\t\t\t\t// Try reading an encoding declaration.\n    skipWhitespace();\n    if (tryRead(\"encoding\")) {\n      parseEq();\n      encodingName = readLiteral(0);\n      checkEncoding(encodingName, ignoreEncoding);\n    }\n\n\t\t\t\t// Try reading a standalone declaration\n    skipWhitespace();\n    if (tryRead(\"standalone\")) {\n      parseEq();\n      standalone = readLiteral(0);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [2, 12], [0, 13], [3, 14], [0, 15], [0, 16], [0, 17], [8, 18], [10, 19], [12, 20], [14, 21], [15, 22], [17, 23], [4, 24], [5, 25], [1, 26], [1, 27], [2, 28], [2, 29], [2, 30], [3, 31], [22, 32], [26, 33], [29, 34], [31, 35], [31, 36], [33, 37], [34, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 2], [13, 0], [14, 3], [15, 0], [16, 0], [17, 0], [18, 8], [19, 10], [20, 12], [21, 14], [22, 15], [23, 17], [24, 4], [25, 5], [26, 1], [27, 1], [28, 2], [29, 2], [30, 2], [31, 3], [32, 22], [33, 26], [34, 29], [35, 31], [36, 31], [37, 33], [38, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "parseTextDecl", "code": "    * <p>(The <code>&lt;?xml</code>' and whitespace have already been read.)\n    * @see #parseXMLDecl\n    * @see #checkEncoding\n    */\n  void parseTextDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    String encodingName = null;\n    \n\t\t\t\t// Read an optional version.\n    if (tryRead(\"version\")) {\n      String version;\n      parseEq();\n      version = readLiteral(0);\n      if (!version.equals(\"1.0\")) {\n\terror(\"unsupported XML version\", version, \"1.0\");\n      }\n      requireWhitespace();\n    }\n      \n\n\t\t\t\t// Read the encoding.\n    require(\"encoding\");\n    parseEq();\n    encodingName = readLiteral(0);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [4, 11], [7, 12], [9, 13], [1, 14], [1, 15], [10, 16], [2, 17], [12, 18], [1, 19], [14, 20], [1, 21], [1, 22], [20, 23], [21, 24], [14, 25], [24, 26], [25, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 4], [12, 7], [13, 9], [14, 1], [15, 1], [16, 10], [17, 2], [18, 12], [19, 1], [20, 14], [21, 1], [22, 1], [23, 20], [24, 21], [25, 14], [26, 24], [27, 25], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "checkEncoding", "code": "    * @param encodingName The name of the encoding specified by the user.\n    * @see #parseXMLDecl\n    * @see #parseTextDecl\n    */\n  void checkEncoding (String encodingName, boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n    encodingName = encodingName.toUpperCase();\n\n    if (ignoreEncoding) {\n      return;\n    }\n\n    switch (encoding) {\n\t\t\t\t// 8-bit encodings\n    case ENCODING_UTF_8:\n      if (encodingName.equals(\"ISO-8859-1\")) {\n\tencoding = ENCODING_ISO_8859_1;\n      } else if (!encodingName.equals(\"UTF-8\")) {\n\terror(\"unsupported 8-bit encoding\",\n\t      encodingName,\n\t      \"UTF-8 or ISO-8859-1\");\n      }\n      break;\n\t\t\t\t// 16-bit encodings\n    case ENCODING_UCS_2_12:\n    case ENCODING_UCS_2_21:\n      if (!encodingName.equals(\"ISO-10646-UCS-2\") &&\n\t  !encodingName.equals(\"UTF-16\")) {\n\terror(\"unsupported 16-bit encoding\",\n\t      encodingName,\n\t      \"ISO-10646-UCS-2\");\n      }\n      break;\n\t\t\t\t// 32-bit encodings\n    case ENCODING_UCS_4_1234:\n    case ENCODING_UCS_4_4321:\n    case ENCODING_UCS_4_2143:\n    case ENCODING_UCS_4_3412:", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "PARAM", "PARAM", "ASSIGN", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "RETURN", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [6, 13], [8, 14], [10, 15], [10, 16], [13, 17], [14, 18], [14, 19], [15, 20], [16, 21], [6, 22], [8, 23], [18, 24], [19, 25], [20, 26], [10, 27], [22, 28], [22, 29], [23, 30], [23, 31], [15, 32], [32, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 6], [14, 8], [15, 10], [16, 10], [17, 13], [18, 14], [19, 14], [20, 15], [21, 16], [22, 6], [23, 8], [24, 18], [25, 19], [26, 20], [27, 10], [28, 22], [29, 22], [30, 23], [31, 23], [32, 15], [33, 32], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "parseMisc", "code": "    * <pre>\n    * [27] Misc ::= Comment | PI | S\n    * </pre>\n    */\n  void parseMisc ()\n    throws java.lang.Exception\n    {\n    while (true)\n      {\n      skipWhitespace();\n      if (tryRead(\"<?\"))\n        {parsePI();}", "ast_nodes": ["FUNC_DECL", "LOOP", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [3, 5], [1, 6], [4, 7], [5, 8], [4, 9], [7, 10], [3, 11], [4, 12], [1, 0], [2, 1], [3, 1], [4, 3], [5, 3], [6, 1], [7, 4], [8, 5], [9, 4], [10, 7], [11, 3], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "parseDoctypedecl", "code": "    *                      ('[' %markupdecl* ']' S?)? '&gt;'\n    * </pre>\n    * <p>(The <code>&lt;!DOCTYPE</code> has already been read.)\n    */\n  void parseDoctypedecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    String doctypeName, ids[];\n\n\t\t\t\t// Read the document type name.\n    requireWhitespace();\n    doctypeName = readNmtoken(true);\n\n\t\t\t\t// Read the ExternalIDs.\n    skipWhitespace();\n    ids = readExternalIds(false);\n\n\t\t\t\t// Look for a declaration subset.\n    skipWhitespace();\n    if (tryRead('[')) {\n\n\t\t\t\t// loop until the subset ends\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead(']')) {\n\t  break;\t\t// end of subset\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    }\n\n\t\t\t\t// Read the external subset, if any\n    if (ids[1] != null) {\n      pushURL(\"[external subset]\", ids[0], ids[1], null, null, null);\n\n\t\t\t\t// Loop until we end up back at '>'\n      while (true) {\n\tcontext = CONTEXT_DTD;\n\tskipWhitespace();\n\tcontext = CONTEXT_NONE;\n\tif (tryRead('>')) {\n\t  break;\n\t} else {\n\t  context = CONTEXT_DTD;\n\t  parseMarkupdecl();\n\t  context = CONTEXT_NONE;\n\t}\n      }\n    } else {\n\t\t\t\t// No external subset.\n      skipWhitespace();\n      require('>');", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [6, 14], [2, 15], [7, 16], [3, 17], [8, 18], [10, 19], [12, 20], [1, 21], [2, 22], [2, 23], [15, 24], [2, 25], [17, 26], [19, 27], [20, 28], [22, 29], [15, 30], [25, 31], [25, 32], [25, 33], [25, 34], [7, 35], [17, 36], [30, 37], [15, 38], [15, 39], [15, 40], [36, 41], [17, 42], [17, 43], [17, 44], [21, 45], [21, 46], [30, 47], [37, 48], [25, 49], [25, 50], [36, 51], [41, 52], [30, 53], [30, 54], [30, 55], [36, 56], [36, 57], [36, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 6], [15, 2], [16, 7], [17, 3], [18, 8], [19, 10], [20, 12], [21, 1], [22, 2], [23, 2], [24, 15], [25, 2], [26, 17], [27, 19], [28, 20], [29, 22], [30, 15], [31, 25], [32, 25], [33, 25], [34, 25], [35, 7], [36, 17], [37, 30], [38, 15], [39, 15], [40, 15], [41, 36], [42, 17], [43, 17], [44, 17], [45, 21], [46, 21], [47, 30], [48, 37], [49, 25], [50, 25], [51, 36], [52, 41], [53, 30], [54, 30], [55, 30], [56, 36], [57, 36], [58, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "parseMarkupdecl", "code": "    * [30] InternalPERef ::= PEReference\n    * [31] extSubset ::= (%markupdecl | %conditionalSect)*\n    * </pre>\n    */\n  void parseMarkupdecl ()\n    throws java.lang.Exception\n  {\n    if (tryRead(\"<!ELEMENT\")) {\n      parseElementdecl();\n    } else if (tryRead(\"<!ATTLIST\")) {\n      parseAttlistDecl();\n    } else if (tryRead(\"<!ENTITY\")) {\n      parseEntityDecl();\n    } else if (tryRead(\"<!NOTATION\")) {\n      parseNotationDecl();\n    } else if (tryRead(\"<?\")) {\n      parsePI();\n    } else if (tryRead(\"<!--\")) {\n      parseComment();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [3, 6], [4, 7], [4, 8], [5, 9], [1, 10], [7, 11], [7, 12], [8, 13], [2, 14], [11, 15], [11, 16], [12, 17], [4, 18], [15, 19], [15, 20], [16, 21], [7, 22], [19, 23], [20, 24], [11, 25], [23, 26], [15, 27], [19, 28], [19, 29], [28, 30], [28, 31], [28, 32], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 3], [7, 4], [8, 4], [9, 5], [10, 1], [11, 7], [12, 7], [13, 8], [14, 2], [15, 11], [16, 11], [17, 12], [18, 4], [19, 15], [20, 15], [21, 16], [22, 7], [23, 19], [24, 20], [25, 11], [26, 23], [27, 15], [28, 19], [29, 19], [30, 28], [31, 28], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "parseElement", "code": "    * <p>(The '&lt;' has already been read.)\n    * <p>NOTE: this method actually chains onto parseContent(), if necessary,\n    * and parseContent() will take care of calling parseETag().\n    */\n  void parseElement ()\n    throws java.lang.Exception\n  {\n    String gi;\n    char c;\n    int oldElementContent = currentElementContent;\n    String oldElement = currentElement;\n\n\t\t\t\t// This is the (global) counter for the\n\t\t\t\t// array of specified attributes.\n    tagAttributePos = 0;\n\n\t\t\t\t// Read the element type name.\n    gi = readNmtoken(true);\n\n\t\t\t\t// Determine the current content type.\n    currentElement = gi;\n    currentElementContent = getElementContentType(gi);\n    if (currentElementContent == CONTENT_UNDECLARED) {\n      currentElementContent = CONTENT_ANY;\n    }\n\n\t\t\t\t// Read the attributes, if any.\n\t\t\t\t// After this loop, we should be just\n\t\t\t\t// in front of the closing delimiter.\n    skipWhitespace();\n    c = readCh();\n    while (c != '/' && c != '>') {\n      unread(c);\n      parseAttribute(gi);\n      skipWhitespace();\n      c = readCh();\n    }\n    unread(c);\n\n\t\t\t\t// Supply any defaulted attributes.\n    Enumeration atts = declaredAttributes(gi);\n    if (atts != null) {\n      String aname;\n    loop: while (atts.hasMoreElements()) {\n      aname = (String)atts.nextElement();\n\t\t\t\t// See if it was specified.\n      for (int i = 0; i < tagAttributePos; i++) {\n\tif (tagAttributes[i] == aname) {\n\t  continue loop;\n\t}\n      }\n\t\t\t\t// I guess not...\n      if (handler != null) {\n\thandler.attribute(aname,\n\t\t\t  getAttributeExpandedValue(gi, aname),\n\t\t\t  false);\n      }\n    }\n    }\n\n\t\t\t\t// Figure out if this is a start tag\n\t\t\t\t// or an empty element, and dispatch an\n\t\t\t\t// event accordingly.\n    c = readCh();\n    switch (c) {\n    case '>':\n      if (handler != null) {\n\thandler.startElement(gi);\n      }\n      parseContent();\n      break;\n    case '/':\n      require('>');\n      if (handler != null) {\n\thandler.startElement(gi);\n\thandler.endElement(gi);\n      }\n      break;\n    }", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LOOP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [0, 14], [4, 15], [0, 16], [0, 17], [5, 18], [0, 19], [0, 20], [0, 21], [0, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [12, 29], [2, 30], [2, 31], [13, 32], [3, 33], [15, 34], [15, 35], [16, 36], [19, 37], [21, 38], [22, 39], [24, 40], [1, 41], [1, 42], [27, 43], [30, 44], [4, 45], [4, 46], [4, 47], [4, 48], [34, 49], [35, 50], [5, 51], [38, 52], [40, 53], [41, 54], [43, 55], [30, 56], [30, 57], [45, 58], [24, 59], [24, 60], [27, 61], [56, 62], [57, 63], [30, 64], [62, 65], [57, 66], [56, 67], [66, 68], [57, 69], [64, 70], [67, 71], [67, 72], [66, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 0], [15, 4], [16, 0], [17, 0], [18, 5], [19, 0], [20, 0], [21, 0], [22, 0], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 12], [30, 2], [31, 2], [32, 13], [33, 3], [34, 15], [35, 15], [36, 16], [37, 19], [38, 21], [39, 22], [40, 24], [41, 1], [42, 1], [43, 27], [44, 30], [45, 4], [46, 4], [47, 4], [48, 4], [49, 34], [50, 35], [51, 5], [52, 38], [53, 40], [54, 41], [55, 43], [56, 30], [57, 30], [58, 45], [59, 24], [60, 24], [61, 27], [62, 56], [63, 57], [64, 30], [65, 62], [66, 57], [67, 56], [68, 66], [69, 57], [70, 64], [71, 67], [72, 67], [73, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "parseAttribute", "code": "    * </pre>\n    * @param name The name of the attribute's element.\n    * @see XmlHandler#attribute\n    */\n  void parseAttribute (String name)\n    throws java.lang.Exception\n  {\n    String aname;\n    int type;\n    String value;\n\n\t\t\t\t// Read the attribute name.\n    aname = readNmtoken(true).intern();\n    type = getAttributeDefaultValueType(name, aname);\n\n\t\t\t\t// Parse '='\n    parseEq();\n\n\t\t\t\t// Read the value, normalizing whitespace\n\t\t\t\t// if it is not CDATA.\n    if (type == ATTRIBUTE_CDATA || type == ATTRIBUTE_UNDECLARED) {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF);\n    } else {\n      value = readLiteral(LIT_CHAR_REF | LIT_ENTITY_REF | LIT_NORMALIZE);\n    }\n\n\t\t\t\t// Inform the handler about the\n\t\t\t\t// attribute.\n    if (handler != null) {\n      handler.attribute(aname, value, true);\n    }\n    dataBufferPos = 0;\n\n\t\t\t\t// Note that the attribute has been\n\t\t\t\t// specified.\n    if (tagAttributePos == tagAttributes.length) {\n      String newAttrib[] = new String[tagAttributes.length * 2];", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [3, 12], [0, 13], [0, 14], [0, 15], [1, 16], [10, 17], [11, 18], [12, 19], [12, 20], [14, 21], [15, 22], [1, 23], [1, 24], [2, 25], [3, 26], [3, 27], [22, 28], [22, 29], [24, 30], [24, 31], [25, 32], [26, 33], [27, 34], [16, 35], [33, 36], [34, 37], [35, 38], [36, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 3], [13, 0], [14, 0], [15, 0], [16, 1], [17, 10], [18, 11], [19, 12], [20, 12], [21, 14], [22, 15], [23, 1], [24, 1], [25, 2], [26, 3], [27, 3], [28, 22], [29, 22], [30, 24], [31, 24], [32, 25], [33, 26], [34, 27], [35, 16], [36, 33], [37, 34], [38, 35], [39, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "parseEq", "code": "  /**\n    * Parse an equals sign surrounded by optional whitespace.\n    * [35] Eq ::= S? '=' S?\n    */\n  void parseEq ()\n    throws java.lang.Exception", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parseETag", "code": "    * Parse an end tag.\n    * [36] ETag ::= '</' Name S? '>'\n    * *NOTE: parseContent() chains to here.\n    */\n  void parseETag ()\n    throws java.lang.Exception\n  {\n    String name;\n    name = readNmtoken(true);\n    if (name != currentElement) {\n      error(\"mismatched end tag\", name, currentElement);\n    }", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [0, 8], [4, 9], [5, 10], [8, 11], [1, 12], [2, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 0], [9, 4], [10, 5], [11, 8], [12, 1], [13, 2], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "parseContent", "code": "    * Parse the content of an element.\n    * [37] content ::= (element | PCData | Reference | CDSect | PI | Comment)*\n    * [68] Reference ::= EntityRef | CharRef\n    */\n  void parseContent ()\n    throws java.lang.Exception\n  {\n    String data;\n    char c;\n\n    while (true) {\n\n      switch (currentElementContent) {\n      case CONTENT_ANY:\n      case CONTENT_MIXED:\n\tparsePCData();\n\tbreak;\n      case CONTENT_ELEMENTS:\n\tparseWhitespace();\n\tbreak;\n      }\n\n\t\t\t\t// Handle delimiters\n      c = readCh();\n      switch (c) {\n\n      case '&':\t\t\t// Found \"&\"\n\tc = readCh();\n\tif (c == '#') {\n\t  parseCharRef();\n\t} else {\n\t  unread(c);\n\t  parseEntityRef(true);\n\t}\n\tbreak;\n\n      case '<':\t\t\t// Found \"<\"\n\n\tc = readCh();\n\tswitch (c) {\n\n\tcase '!':\t\t// Found \"<!\"\n\t  c = readCh();\n\t  switch (c) {\n\t  case '-':\t\t// Found \"<!-\"\n\t    require('-');\n\t    parseComment();\n\t    break;\n\t  case '[':\t\t// Found \"<![\"\n\t    require(\"CDATA[\");\n\t    parseCDSect();\n\t    break;\n\t  default:\n\t    error(\"expected comment or CDATA section\", c, null);\n\t    break;\n\t  }\n\t  break;\n\n\tcase '?':\t\t// Found \"<?\"\n\t  dataBufferFlush();\n\t  parsePI();\n\t  break;\n\n\tcase '/':\t\t// Found \"</\"\n\t  dataBufferFlush();\n\t  parseETag();\n\t  return;\n\n\tdefault:\t\t// Found \"<\" followed by something else", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "SWITCH", "SWITCH", "ASSIGN", "SWITCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "SWITCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [7, 13], [6, 14], [6, 15], [5, 16], [11, 17], [5, 18], [6, 19], [6, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [16, 29], [17, 30], [18, 31], [8, 32], [8, 33], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 39], [11, 40], [11, 41], [11, 42], [27, 43], [27, 44], [27, 45], [27, 46], [27, 47], [39, 48], [40, 49], [27, 50], [27, 51], [27, 52], [27, 53], [27, 54], [50, 55], [50, 56], [52, 57], [54, 58], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 5], [11, 5], [12, 5], [13, 7], [14, 6], [15, 6], [16, 5], [17, 11], [18, 5], [19, 6], [20, 6], [21, 8], [22, 8], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 16], [30, 17], [31, 18], [32, 8], [33, 8], [34, 8], [35, 8], [36, 8], [37, 8], [38, 8], [39, 8], [40, 11], [41, 11], [42, 11], [43, 27], [44, 27], [45, 27], [46, 27], [47, 27], [48, 39], [49, 40], [50, 27], [51, 27], [52, 27], [53, 27], [54, 27], [55, 50], [56, 50], [57, 52], [58, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "parseElementdecl", "code": "    * [40] elementdecl ::= '<!ELEMENT' S %Name S (%S S)? %contentspec S? '>'\n    *                      [VC: Unique Element Declaration]\n    * *NOTE: the '<!ELEMENT' has already been read.\n    */\n  void parseElementdecl ()\n    throws java.lang.Exception\n  {\n    String name;\n\n    requireWhitespace();\n\t\t\t\t// Read the element type name.\n    name = readNmtoken(true);\n\n    requireWhitespace();\n\t\t\t\t// Read the content model.", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "parseContentspec", "code": "  /**\n    * Content specification.\n    * [41] contentspec ::= 'EMPTY' | 'ANY' | Mixed | elements\n    */\n  void parseContentspec (String name)\n    throws java.lang.Exception\n  {\n    if (tryRead(\"EMPTY\")) {\n      setElement(name, CONTENT_EMPTY, null, null);\n      return;\n    } else if (tryRead(\"ANY\")) {\n      setElement(name, CONTENT_ANY, null, null);\n      return;\n    } else {\n      require('(');\n      dataBufferAppend('(');\n      skipWhitespace();\n      if (tryRead(\"#PCDATA\")) {\n\tdataBufferAppend(\"#PCDATA\");\n\tparseMixed();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [4, 7], [3, 8], [3, 9], [5, 10], [1, 11], [8, 12], [3, 13], [3, 14], [3, 15], [3, 16], [11, 17], [11, 18], [12, 19], [14, 20], [15, 21], [16, 22], [16, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [24, 29], [24, 30], [26, 31], [26, 32], [28, 33], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 4], [8, 3], [9, 3], [10, 5], [11, 1], [12, 8], [13, 3], [14, 3], [15, 3], [16, 3], [17, 11], [18, 11], [19, 12], [20, 14], [21, 15], [22, 16], [23, 16], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 24], [30, 24], [31, 26], [32, 26], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "parseElements", "code": "    * [49] stoks ::= cps (',' cps)*\n    * *NOTE: the opening '(' and S have already been read.\n    * *TODO: go over parameter entity boundaries more carefully.\n    */\n  void parseElements ()\n    throws java.lang.Exception\n  {\n    char c;\n    char sep;\n\n\t\t\t\t// Parse the first content particle\n    skipWhitespace();\n    parseCp();\n\n\t\t\t\t// Check for end or for a separator.\n    skipWhitespace();\n    c = readCh();\n    switch (c) {\n    case ')':\n      dataBufferAppend(')');\n      c = readCh();\n      switch (c) {\n      case '*':\n      case '+':\n      case '?':\n\tdataBufferAppend(c);\n\tbreak;\n      default:\n\tunread(c);\n      }\n      return;\n    case ',':\t\t\t// Register the separator.\n    case '|':\n      sep = c;\n      dataBufferAppend(c);\n      break;\n    default:\n      error(\"bad separator in content model\", c, null);\n      return;\n    }\n\n\t\t\t\t// Parse the rest of the content model.\n    while (true) {\n      skipWhitespace();\n      parseCp();\n      skipWhitespace();\n      c = readCh();\n      if (c == ')') {\n\tdataBufferAppend(')');\n\tbreak;\n      } else if (c != sep) {\n\terror(\"bad separator in content model\", c, null);\n\treturn;\n      } else {\n\tdataBufferAppend(c);\n      }\n    }\n\n\t\t\t\t// Check for the occurrence indicator.\n    c = readCh();\n    switch (c) {\n    case '?':\n    case '*':\n    case '+':\n      dataBufferAppend(c);", "ast_nodes": ["FUNC_DECL", "SWITCH", "LOOP", "SWITCH", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [6, 17], [2, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [8, 26], [1, 27], [1, 28], [18, 29], [18, 30], [2, 31], [2, 32], [2, 33], [2, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [29, 40], [18, 41], [30, 42], [31, 43], [35, 44], [35, 45], [24, 46], [24, 47], [24, 48], [24, 49], [38, 50], [39, 51], [29, 52], [18, 53], [24, 54], [24, 55], [29, 56], [29, 57], [53, 58], [57, 59], [57, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 6], [18, 2], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 8], [27, 1], [28, 1], [29, 18], [30, 18], [31, 2], [32, 2], [33, 2], [34, 2], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 29], [41, 18], [42, 30], [43, 31], [44, 35], [45, 35], [46, 24], [47, 24], [48, 24], [49, 24], [50, 38], [51, 39], [52, 29], [53, 18], [54, 24], [55, 24], [56, 29], [57, 29], [58, 53], [59, 57], [60, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "parseCp", "code": "    * [43] cp ::= (Name | choice | seq) ('?' | '*' | '+')\n    * *NOTE: I actually use a slightly different production here:\n    *        cp ::= (elements | (Name ('?' | '*' | '+')?))\n    */\n  void parseCp ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (tryRead('(')) {\n      dataBufferAppend('(');\n      parseElements();\n    } else {\n      dataBufferAppend(readNmtoken(true));\n      c = readCh();\n      switch (c) {\n      case '?':\n      case '*':\n      case '+':\n\tdataBufferAppend(c);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "SWITCH", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [6, 15], [7, 16], [9, 17], [4, 18], [4, 19], [16, 20], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 4], [12, 4], [13, 4], [14, 4], [15, 6], [16, 7], [17, 9], [18, 4], [19, 4], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "parseMixed", "code": "    *              | '(' S? %('#PCDATA') S? ')'\n    * [51] Mtoks ::= %Name (S? '|' S? %Name)*\n    * *NOTE: the S and '#PCDATA' have already been read.\n    */\n  void parseMixed ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Check for PCDATA alone.\n    skipWhitespace();\n    if (tryRead(')')) {\n      dataBufferAppend(\")*\");\n      tryRead('*');\n      return;\n    }\n\n\t\t\t\t// Parse mixed content.\n    skipWhitespace();\n    while (!tryRead(\")*\")) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [4, 9], [5, 10], [2, 11], [7, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [2, 19], [14, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 4], [10, 5], [11, 2], [12, 7], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 2], [20, 14], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "parseAttlistDecl", "code": "    * Parse an attribute list declaration.\n    * [52] AttlistDecl ::= '<!ATTLIST' S %Name S? %AttDef+ S? '>'\n    * *NOTE: the '<!ATTLIST' has already been read.\n    */\n  void parseAttlistDecl ()\n    throws java.lang.Exception\n  {\n    String elementName;\n\n    requireWhitespace();\n    elementName = readNmtoken(true);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [3, 7], [5, 8], [1, 9], [1, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 3], [8, 5], [9, 1], [10, 1], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "parseAttDef", "code": "  /**\n    * Parse a single attribute definition.\n    * [53] AttDef ::= S %Name S %AttType S %Default\n    */\n  void parseAttDef (String elementName)\n    throws java.lang.Exception\n  {\n    String name;\n    int type;\n    String enum1 = null;\n\n\t\t\t\t// Read the attribute name.\n    name = readNmtoken(true);\n\n\t\t\t\t// Read the attribute type.\n    requireWhitespace();\n    type = readAttType();\n\n\t\t\t\t// Get the string of enumerated values\n\t\t\t\t// if necessary.\n    if (type == ATTRIBUTE_ENUMERATED || type == ATTRIBUTE_NOTATION) {\n      enum1 = dataBufferToString();\n    }", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [8, 12], [8, 13], [9, 14], [11, 15], [2, 16], [1, 17], [15, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 8], [13, 8], [14, 9], [15, 11], [16, 2], [17, 1], [18, 15], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "readAttType", "code": "    *                        'NMTOKEN' | 'NMTOKENS'\n    * [57] EnumeratedType ::= NotationType | Enumeration\n    * *TODO: validate the type!!\n    */\n  int readAttType ()\n    throws java.lang.Exception\n  {\n    String typeString;\n    Integer type;\n\n    if (tryRead('(')) {\n      parseEnumeration();\n      return ATTRIBUTE_ENUMERATED;\n    } else {\n      typeString = readNmtoken(true);\n      if (typeString.equals(\"NOTATION\")) {\n\tparseNotationType();\n      }\n      type = (Integer)attributeTypeHash.get(typeString);\n      if (type == null) {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "IF", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [6, 11], [1, 12], [1, 13], [5, 14], [5, 15], [9, 16], [11, 17], [12, 18], [14, 19], [5, 20], [10, 21], [6, 22], [18, 23], [20, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 6], [12, 1], [13, 1], [14, 5], [15, 5], [16, 9], [17, 11], [18, 12], [19, 14], [20, 5], [21, 10], [22, 6], [23, 18], [24, 20], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "parseEnumeration", "code": "    * [60] Enumeration ::= '(' S? %Etoks (S? '|' S? %Etoks)* S? ')'\n    * [61] Etoks ::= %Nmtoken (S? '|' S? %Nmtoken)*\n    * *NOTE: the '(' has already been read.\n    */\n  void parseEnumeration ()\n    throws java.lang.Exception\n  {\n    char c;\n\n    dataBufferAppend('(');\n\n\t\t\t\t// Read the first token.\n    skipWhitespace();\n    dataBufferAppend(readNmtoken(true));\n\t\t\t\t// Read the remaining tokens.\n    skipWhitespace();\n    while (!tryRead(')')) {\n      require('|');\n      dataBufferAppend('|');\n      skipWhitespace();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [6, 11], [8, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [11, 18], [14, 19], [16, 20], [17, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 6], [12, 8], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 11], [19, 14], [20, 16], [21, 17], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "parseNotationType", "code": "    *                       S? ')'\n    * [59] Ntoks ::= %Name (S? '|' S? %Name)\n    * *NOTE: the 'NOTATION' has already been read\n    */\n  void parseNotationType ()\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parseDefault", "code": "  /**\n    * Parse the default value for an attribute.\n    * [62] Default ::= '#REQUIRED' | '#IMPLIED' | ((%'#FIXED' S)? %AttValue\n    */\n  void parseDefault (String elementName, String name, int type, String enum1)\n    throws java.lang.Exception\n  {\n    int valueType = ATTRIBUTE_DEFAULT_SPECIFIED;\n    String value = null;\n    boolean normalizeWSFlag;\n\n    if (tryRead('#')) {\n      if (tryRead(\"FIXED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_FIXED;\n\trequireWhitespace();\n\tcontext = CONTEXT_ATTRIBUTEVALUE;\n\tvalue = readLiteral(LIT_CHAR_REF);\n\tcontext = CONTEXT_DTD;\n      } else if (tryRead(\"REQUIRED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_REQUIRED;\n      } else if (tryRead(\"IMPLIED\")) {\n\tvalueType = ATTRIBUTE_DEFAULT_IMPLIED;\n      } else {\n\terror(\"illegal keyword for attribute default value\", null, null);\n      }\n    } else {\n      context = CONTEXT_ATTRIBUTEVALUE;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [10, 12], [3, 13], [1, 14], [1, 15], [1, 16], [11, 17], [11, 18], [15, 19], [17, 20], [17, 21], [18, 22], [20, 23], [21, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [23, 30], [17, 31], [26, 32], [20, 33], [20, 34], [33, 35], [33, 36], [33, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 10], [13, 3], [14, 1], [15, 1], [16, 1], [17, 11], [18, 11], [19, 15], [20, 17], [21, 17], [22, 18], [23, 20], [24, 21], [25, 11], [26, 11], [27, 11], [28, 11], [29, 11], [30, 23], [31, 17], [32, 26], [33, 20], [34, 20], [35, 33], [36, 33], [37, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "parseConditionalSect", "code": "    *                           | ('<!' (Char - ('-' | '[')))\n    * *NOTE: the '<![' has already been read.\n    * *TODO: verify that I am handling ignoreSectContents right.\n    */\n  void parseConditionalSect ()\n    throws java.lang.Exception\n  {\n    skipWhitespace();\n    if (tryRead(\"INCLUDE\")) {\n      skipWhitespace();\n      require('[');\n      skipWhitespace();\n      while (!tryRead(\"]]>\")) {\n\tparseMarkupdecl();\n\tskipWhitespace();\n      }\n    } else if (tryRead(\"IGNORE\")) {\n      skipWhitespace();\n      require('[');\n      int nesting = 1;\n      char c;\n      for (int nest = 1; nest > 0; ) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '<':\n\t  if (tryRead(\"![\")) {\n\t    nest++;\n\t  }\n\tcase ']':\n\t  if (tryRead(\"]>\")) {\n\t    nest--;\n\t  }\n\t}", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [0, 4], [2, 5], [1, 6], [3, 7], [2, 8], [2, 9], [2, 10], [5, 11], [6, 12], [1, 13], [1, 14], [1, 15], [2, 16], [8, 17], [2, 18], [2, 19], [12, 20], [14, 21], [16, 22], [16, 23], [16, 24], [8, 25], [17, 26], [10, 27], [18, 28], [6, 29], [6, 30], [8, 31], [8, 32], [25, 33], [25, 34], [25, 35], [25, 36], [31, 37], [33, 38], [35, 39], [38, 40], [39, 41], [1, 0], [2, 1], [3, 1], [4, 0], [5, 2], [6, 1], [7, 3], [8, 2], [9, 2], [10, 2], [11, 5], [12, 6], [13, 1], [14, 1], [15, 1], [16, 2], [17, 8], [18, 2], [19, 2], [20, 12], [21, 14], [22, 16], [23, 16], [24, 16], [25, 8], [26, 17], [27, 10], [28, 18], [29, 6], [30, 6], [31, 8], [32, 8], [33, 25], [34, 25], [35, 25], [36, 25], [37, 31], [38, 33], [39, 35], [40, 38], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "parseCharRef", "code": "    * Read a character reference.\n    * [67] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'\n    * *NOTE: the '&#' has already been read.\n    */\n  void parseCharRef ()\n    throws java.lang.Exception\n  {\n    int value = 0;\n    char c;\n\n    if (tryRead('x')) {\n      loop1: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\tcase 'a':\n\tcase 'A':\n\tcase 'b':\n\tcase 'B':\n\tcase 'c':\n\tcase 'C':\n\tcase 'd':\n\tcase 'D':\n\tcase 'e':\n\tcase 'E':\n\tcase 'f':\n\tcase 'F':\n\t  value *= 16;\n\t  value += Integer.parseInt(new Character(c).toString(), 16);\n\t  break;\n\tcase ';':\n\t  break loop1;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop1;\n\t}\n      }\n    } else {\n      loop2: while (true) {\n\tc = readCh();\n\tswitch (c) {\n\tcase '0':\n\tcase '1':\n\tcase '2':\n\tcase '3':\n\tcase '4':\n\tcase '5':\n\tcase '6':\n\tcase '7':\n\tcase '8':\n\tcase '9':\n\t  value *= 10;\n\t  value += Integer.parseInt(new Character(c).toString(), 10);\n\t  break;\n\tcase ';':\n\t  break loop2;\n\tdefault:\n\t  error(\"illegal character in character reference\", c, null);\n\t  break loop2;\n\t}\n      }\n    }\n\n    // Check for surrogates: 00000000 0000xxxx yyyyyyyy zzzzzzzz\n    //  (1101|10xx|xxyy|yyyy + 1101|11yy|zzzz|zzzz: \n    if (value <= 0x0000ffff) {\n\t\t\t\t// no surrogates needed\n      dataBufferAppend((char)value);\n    } else if (value <= 0x000fffff) {\n\t\t\t\t// > 16 bits, surrogate needed\n      dataBufferAppend((char)(0xd8 | ((value & 0x000ffc00) >> 10)));\n      dataBufferAppend((char)(0xdc | (value & 0x0003ff)));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [5, 8], [6, 9], [2, 10], [2, 11], [7, 12], [4, 13], [8, 14], [1, 15], [10, 16], [11, 17], [5, 18], [5, 19], [5, 20], [10, 21], [11, 22], [18, 23], [18, 24], [18, 25], [10, 26], [11, 27], [24, 28], [25, 29], [25, 30], [19, 31], [20, 32], [21, 33], [21, 34], [21, 35], [21, 36], [21, 37], [21, 38], [21, 39], [21, 40], [21, 41], [21, 42], [21, 43], [21, 44], [21, 45], [21, 46], [26, 47], [22, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 53], [22, 54], [22, 55], [22, 56], [22, 57], [22, 58], [22, 59], [22, 60], [22, 61], [22, 62], [22, 63], [22, 64], [22, 65], [22, 66], [22, 67], [22, 68], [22, 69], [22, 70], [22, 71], [22, 72], [22, 73], [27, 74], [30, 75], [31, 76], [31, 77], [32, 78], [32, 79], [21, 80], [21, 81], [21, 82], [22, 83], [22, 84], [22, 85], [76, 86], [78, 87], [78, 88], [80, 89], [80, 90], [81, 91], [82, 92], [83, 93], [83, 94], [84, 95], [85, 96], [88, 97], [91, 98], [91, 99], [95, 100], [95, 101], [99, 102], [101, 103], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 5], [9, 6], [10, 2], [11, 2], [12, 7], [13, 4], [14, 8], [15, 1], [16, 10], [17, 11], [18, 5], [19, 5], [20, 5], [21, 10], [22, 11], [23, 18], [24, 18], [25, 18], [26, 10], [27, 11], [28, 24], [29, 25], [30, 25], [31, 19], [32, 20], [33, 21], [34, 21], [35, 21], [36, 21], [37, 21], [38, 21], [39, 21], [40, 21], [41, 21], [42, 21], [43, 21], [44, 21], [45, 21], [46, 21], [47, 26], [48, 22], [49, 22], [50, 22], [51, 22], [52, 22], [53, 22], [54, 22], [55, 22], [56, 22], [57, 22], [58, 22], [59, 22], [60, 22], [61, 22], [62, 22], [63, 22], [64, 22], [65, 22], [66, 22], [67, 22], [68, 22], [69, 22], [70, 22], [71, 22], [72, 22], [73, 22], [74, 27], [75, 30], [76, 31], [77, 31], [78, 32], [79, 32], [80, 21], [81, 21], [82, 21], [83, 22], [84, 22], [85, 22], [86, 76], [87, 78], [88, 78], [89, 80], [90, 80], [91, 81], [92, 82], [93, 83], [94, 83], [95, 84], [96, 85], [97, 88], [98, 91], [99, 91], [100, 95], [101, 95], [102, 99], [103, 101], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103]]}, {"function_name": "parseEntityRef", "code": "    * [69] EntityRef ::= '&' Name ';'\n    * *NOTE: the '&' has already been read.\n    * @param externalAllowed External entities are allowed here.\n    */\n  void parseEntityRef (boolean externalAllowed)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      pushString(name, getEntityValue(name));\n      break;\n    case ENTITY_TEXT:\n      if (externalAllowed) {\n\tpushURL(name, getEntityPublicId(name),\n\t\tgetEntitySystemId(name),\n\t\tnull, null, null);\n      } else {\n\terror(\"reference to external entity in attribute value.\", name, null);\n      }\n      break;\n    case ENTITY_NDATA:\n      if (externalAllowed) {\n\terror(\"data entity reference in content\", name, null);", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [6, 14], [1, 15], [1, 16], [14, 17], [15, 18], [16, 19], [16, 20], [8, 21], [8, 22], [10, 23], [10, 24], [21, 25], [21, 26], [22, 27], [22, 28], [23, 29], [23, 30], [24, 31], [24, 32], [24, 33], [24, 34], [24, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 6], [15, 1], [16, 1], [17, 14], [18, 15], [19, 16], [20, 16], [21, 8], [22, 8], [23, 10], [24, 10], [25, 21], [26, 21], [27, 22], [28, 22], [29, 23], [30, 23], [31, 24], [32, 24], [33, 24], [34, 24], [35, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "parsePEReference", "code": "    * Parse a parameter entity reference.\n    * [70] PEReference ::= '%' Name ';'\n    * *NOTE: the '%' has already been read.\n    */\n  void parsePEReference (boolean isEntityValue)\n    throws java.lang.Exception\n  {\n    String name;\n\n    name = \"%\" + readNmtoken(true);\n    require(';');\n    switch (getEntityType(name)) {\n    case ENTITY_UNDECLARED:\n      error(\"reference to undeclared parameter entity\", name, null);\n      break;\n    case ENTITY_INTERNAL:\n      if (isEntityValue) {\n\tpushString(name, getEntityValue(name));\n      } else {\n\tpushString(name, \" \" + getEntityValue(name) + ' ');\n      }\n      break;\n    case ENTITY_TEXT:\n      if (isEntityValue) {\n\tpushString(null, \" \");\n      }\n      pushURL(name, getEntityPublicId(name),\n\t      getEntitySystemId(name),\n\t      null, null, null);", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "IF", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [6, 14], [1, 15], [1, 16], [14, 17], [14, 18], [15, 19], [15, 20], [15, 21], [15, 22], [15, 23], [16, 24], [16, 25], [17, 26], [8, 27], [9, 28], [11, 29], [11, 30], [27, 31], [27, 32], [28, 33], [28, 34], [29, 35], [30, 36], [35, 37], [35, 38], [38, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 6], [15, 1], [16, 1], [17, 14], [18, 14], [19, 15], [20, 15], [21, 15], [22, 15], [23, 15], [24, 16], [25, 16], [26, 17], [27, 8], [28, 9], [29, 11], [30, 11], [31, 27], [32, 27], [33, 28], [34, 28], [35, 29], [36, 30], [37, 35], [38, 35], [39, 38], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "parseEntityDecl", "code": "    *                   | 'PUBLIC' S PubidLiteral S SystemLiteral\n    * [75] NDataDecl ::= S %'NDATA' S %Name\n    * *NOTE: the '<!ENTITY' has already been read.\n    */\n  void parseEntityDecl ()\n    throws java.lang.Exception\n  {\n    char c;\n    boolean peFlag = false;\n    String name, value, notationName, ids[];\n\n\t\t\t\t// Check for a parameter entity.\n    requireWhitespace();\n    if (tryRead('%')) {\n      peFlag = true;\n      requireWhitespace();\n    }\n\n\t\t\t\t// Read the entity name, and prepend\n\t\t\t\t// '%' if necessary.\n    name = readNmtoken(true);\n    if (peFlag) {\n      name = \"%\" + name;\n    }\n\n\t\t\t\t// Read the entity value.\n    requireWhitespace();\n    c = readCh();\n    unread(c);\n    if (c == '\"' || c == '\\'') {\n\t\t\t\t// Internal entity.\n      context = CONTEXT_ENTITYVALUE;\n      value = readLiteral(LIT_CHAR_REF|LIT_PE_REF);\n      context = CONTEXT_DTD;\n      setInternalEntity(name,value);\n    } else {\n\t\t\t\t// Read the external IDs\n      ids = readExternalIds(false);\n      if (ids[1] == null) {\n\terror(\"system identifer missing\", name, null);\n      }\n\n\t\t\t\t// Check for NDATA declaration.\n      skipWhitespace();\n      if (tryRead(\"NDATA\")) {\n\trequireWhitespace();\n\tnotationName = readNmtoken(true);\n\tsetExternalDataEntity(name, ids[0], ids[1], notationName);\n      } else {\n\tsetExternalTextEntity(name, ids[0], ids[1]);\n      }\n    }", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [0, 15], [7, 16], [1, 17], [1, 18], [9, 19], [9, 20], [11, 21], [13, 22], [14, 23], [5, 24], [17, 25], [1, 26], [18, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [19, 33], [20, 34], [2, 35], [22, 36], [3, 37], [3, 38], [25, 39], [27, 40], [28, 41], [31, 42], [35, 43], [38, 44], [17, 45], [17, 46], [17, 47], [17, 48], [18, 49], [41, 50], [42, 51], [43, 52], [47, 53], [49, 54], [49, 55], [27, 56], [53, 57], [45, 58], [45, 59], [46, 60], [46, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 0], [16, 7], [17, 1], [18, 1], [19, 9], [20, 9], [21, 11], [22, 13], [23, 14], [24, 5], [25, 17], [26, 1], [27, 18], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 19], [34, 20], [35, 2], [36, 22], [37, 3], [38, 3], [39, 25], [40, 27], [41, 28], [42, 31], [43, 35], [44, 38], [45, 17], [46, 17], [47, 17], [48, 17], [49, 18], [50, 41], [51, 42], [52, 43], [53, 47], [54, 49], [55, 49], [56, 27], [57, 53], [58, 45], [59, 45], [60, 46], [61, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "parseNotationDecl", "code": "    * Parse a notation declaration.\n    * [81] NotationDecl ::= '<!NOTATION' S %Name S %ExternalID S? '>'\n    * *NOTE: the '<!NOTATION' has already been read.\n    */\n  void parseNotationDecl ()\n    throws java.lang.Exception\n  {\n    String nname, ids[];\n    \n\n    requireWhitespace();\n    nname = readNmtoken(true);\n\n    requireWhitespace();\n\n\t\t\t\t// Read the external identifiers.\n    ids = readExternalIds(true);\n    if (ids[0] == null && ids[1] == null) {\n      error(\"external identifer missing\", nname, null);\n    }\n\n\t\t\t\t// Register the notation.", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [6, 12], [6, 13], [7, 14], [9, 15], [1, 16], [12, 17], [13, 18], [14, 19], [15, 20], [5, 21], [5, 22], [16, 23], [16, 24], [12, 25], [13, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 6], [13, 6], [14, 7], [15, 9], [16, 1], [17, 12], [18, 13], [19, 14], [20, 15], [21, 5], [22, 5], [23, 16], [24, 16], [25, 12], [26, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "parsePCData", "code": "    * </pre>\n    * <p>The trick here is that the data stays in the dataBuffer without\n    * necessarily being converted to a string right away.\n    */\n  void parsePCData ()\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Start with a little cheat -- in most\n\t\t\t\t// cases, the entire sequence of\n\t\t\t\t// character data will already be in\n\t\t\t\t// the readBuffer; if not, fall through to\n\t\t\t\t// the normal approach.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '&':\n\tcase '<':\n\t  int start = readBufferPos;\n\t  columnAugment++;\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  dataBufferAppend(readBuffer, start, i-start);\n\t  return;\n\tdefault:\n\t  columnAugment++;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, the cheat didn't work; start over\n\t\t\t\t// and do it by the book.\n    while (true) {\n      c = readCh();\n      switch (c) {\n      case '<':\n      case '&':\n\tunread(c);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "SWITCH", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [2, 7], [2, 8], [1, 9], [6, 10], [5, 11], [5, 12], [5, 13], [5, 14], [9, 15], [6, 16], [7, 17], [8, 18], [5, 19], [5, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [22, 29], [16, 30], [16, 31], [28, 32], [29, 33], [31, 34], [22, 35], [22, 36], [22, 37], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 2], [8, 2], [9, 1], [10, 6], [11, 5], [12, 5], [13, 5], [14, 5], [15, 9], [16, 6], [17, 7], [18, 8], [19, 5], [20, 5], [21, 16], [22, 16], [23, 16], [24, 16], [25, 16], [26, 16], [27, 16], [28, 16], [29, 22], [30, 16], [31, 16], [32, 28], [33, 29], [34, 31], [35, 22], [36, 22], [37, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "requireWhitespace", "code": "\n  /**\n    * Require whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void requireWhitespace ()\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "parseWhitespace", "code": "\n\n  /**\n    * Parse whitespace characters, and leave them in the data buffer.\n    */\n  void parseWhitespace ()\n    throws java.lang.Exception\n  {\n    char c = readCh();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "skipWhitespace", "code": "\n  /**\n    * Skip whitespace characters.\n    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    */\n  void skipWhitespace ()\n    throws java.lang.Exception\n  {\n\t\t\t\t// Start with a little cheat.  Most of\n\t\t\t\t// the time, the white space will fall\n\t\t\t\t// within the current read buffer; if\n\t\t\t\t// not, then fall through.\n    if (USE_CHEATS) {\n      int lineAugment = 0;\n      int columnAugment = 0;\n\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\t  columnAugment++;\n\t  break;\n\tcase '\\n':\n\t  lineAugment++;\n\t  columnAugment = 0;\n\t  break;\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tdefault:\n\t  readBufferPos = i;\n\t  if (lineAugment > 0) {\n\t    line += lineAugment;\n\t    column = columnAugment;\n\t  } else {\n\t    column += columnAugment;\n\t  }\n\t  return;\n\t}\n      }\n    }\n\n\t\t\t\t// OK, do it by the book.", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [3, 9], [1, 10], [7, 11], [10, 12], [7, 13], [8, 14], [9, 15], [13, 16], [13, 17], [13, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [17, 26], [13, 27], [18, 28], [13, 29], [26, 30], [18, 31], [28, 32], [28, 33], [29, 34], [17, 35], [17, 36], [17, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 3], [10, 1], [11, 7], [12, 10], [13, 7], [14, 8], [15, 9], [16, 13], [17, 13], [18, 13], [19, 13], [20, 13], [21, 13], [22, 13], [23, 13], [24, 13], [25, 13], [26, 17], [27, 13], [28, 18], [29, 13], [30, 26], [31, 18], [32, 28], [33, 28], [34, 29], [35, 17], [36, 17], [37, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "readNmtoken", "code": "    * Read a name or name token.\n    * [5] Name ::= (Letter | '_' | ':') (NameChar)*\n    * [7] Nmtoken ::= (NameChar)+\n    * *NOTE: [6] is implemented implicitly where required.\n    */\n  String readNmtoken (boolean isName)\n    throws java.lang.Exception\n  {\n    char c;\n\n    if (USE_CHEATS) {\n      loop: for (int i = readBufferPos; i < readBufferLength; i++) {\n\tswitch (readBuffer[i]) {\n\tcase '%':\n\t  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {\n\t    break loop;\n\t  } // else fall through...\n\tcase '<':\n\tcase '>':\n\tcase '&':\n\tcase ',':\n\tcase '|':\n\tcase '*':\n\tcase '+':\n\tcase '?':\n\tcase ')':\n\tcase '=':\n\tcase '\\'':\n\tcase '\"':\n\tcase '[':\n\tcase ' ':\n\tcase '\\t':\n\tcase '\\r':\n\tcase '\\n':\n\tcase ';':\n\tcase '/':\n\tcase '#':\n\t  int start = readBufferPos;\n\t  if (i == start) {\n\t    error(\"name expected\", readBuffer[i], null);\n\t  }\n\t  readBufferPos = i;\n\t  return intern(readBuffer, start, i - start);\n\t}\n      }\n    }\n\n    nameBufferPos = 0;\n\n\t\t\t\t// Read the first character.\n    loop: while (true) {\n      c = readCh();\n      switch (c) {\n      case '%':\n      case '<':\n      case '>':\n      case '&':\n      case ',':\n      case '|':\n      case '*':\n      case '+':\n      case '?':\n      case ')':\n      case '=':\n      case '\\'':\n      case '\"':\n      case '[':\n      case ' ':\n      case '\\t':\n      case '\\n':\n      case '\\r':\n      case ';':\n      case '/':\n\tunread(c);\n\tif (nameBufferPos == 0) {\n\t  error(\"name expected\", null, null);\n\t}\n\tString s = intern(nameBuffer,0,nameBufferPos);\n\tnameBufferPos = 0;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "SWITCH", "LITERAL_ANCHOR", "LOOP", "ASSIGN", "BINARY_OP", "RETURN", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "SWITCH", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [6, 8], [2, 9], [1, 10], [9, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [10, 35], [9, 36], [7, 37], [7, 38], [7, 39], [14, 40], [7, 41], [39, 42], [13, 43], [40, 44], [36, 45], [36, 46], [36, 47], [36, 48], [36, 49], [36, 50], [36, 51], [36, 52], [36, 53], [36, 54], [36, 55], [36, 56], [36, 57], [36, 58], [36, 59], [36, 60], [36, 61], [36, 62], [36, 63], [36, 64], [36, 65], [36, 66], [36, 67], [36, 68], [36, 69], [38, 70], [43, 71], [14, 72], [45, 73], [36, 74], [46, 75], [68, 76], [72, 77], [72, 78], [72, 79], [73, 80], [68, 81], [76, 82], [76, 83], [46, 84], [84, 85], [84, 86], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 6], [9, 2], [10, 1], [11, 9], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 7], [19, 7], [20, 7], [21, 7], [22, 7], [23, 7], [24, 7], [25, 7], [26, 7], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 7], [33, 7], [34, 7], [35, 10], [36, 9], [37, 7], [38, 7], [39, 7], [40, 14], [41, 7], [42, 39], [43, 13], [44, 40], [45, 36], [46, 36], [47, 36], [48, 36], [49, 36], [50, 36], [51, 36], [52, 36], [53, 36], [54, 36], [55, 36], [56, 36], [57, 36], [58, 36], [59, 36], [60, 36], [61, 36], [62, 36], [63, 36], [64, 36], [65, 36], [66, 36], [67, 36], [68, 36], [69, 36], [70, 38], [71, 43], [72, 14], [73, 45], [74, 36], [75, 46], [76, 68], [77, 72], [78, 72], [79, 72], [80, 73], [81, 68], [82, 76], [83, 76], [84, 46], [85, 84], [86, 84], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "readLiteral", "code": "    * [11] SystemLiteral ::= '\"' URLchar* '\"' | \"'\" (URLchar - \"'\")* \"'\"\n    * [13] PubidLiteral ::= '\"' PubidChar* '\"' | \"'\" (PubidChar - \"'\")* \"'\"\n    * [9] EntityValue ::= '\"' ([^%&\"] | PEReference | Reference)* '\"'\n    *                   | \"'\" ([^%&'] | PEReference | Reference)* \"'\"\n    */\n  String readLiteral (int flags)\n    throws java.lang.Exception\n  {\n    char delim, c;\n    int startLine = line;\n\n\t\t\t\t// Find the delimiter.\n    delim = readCh();\n    if (delim != '\"' && delim != '\\'' && delim != (char)0) {\n      error(\"expected '\\\"' or \\\"'\\\"\", delim, null);\n      return null;\n    }\n\n\t\t\t\t// Read the literal.\n    try {\n      c = readCh();\n\n    loop: while (c != delim) {\n      switch (c) {\n\t\t\t\t// Literals never have line ends\n      case '\\n':\n      case '\\r':\n\tc = ' ';\n\tbreak;\n\t\t\t\t// References may be allowed\n      case '&':\n\tif ((flags & LIT_CHAR_REF) > 0) {\n\t  c = readCh();\n\t  if (c == '#') {\n\t    parseCharRef();\n\t    c = readCh();\n\t    continue loop;\t\t// check the next character\n\t  } else if ((flags & LIT_ENTITY_REF) > 0) {\n\t    unread(c);\n\t    parseEntityRef(false);\n\t    c = readCh();\n\t    continue loop;\n\t  } else {\n\t    dataBufferAppend('&');\n\t  }\n\t}\n\tbreak;\n\n      default:\n\tbreak;\n      }\n      dataBufferAppend(c);\n      c = readCh();\n    }\n    } catch (EOFException e) {\n      error(\"end of input while looking for delimiter (started on line \"\n\t    + startLine + ')', null, new Character(delim).toString());\n    }\n\n\t\t\t\t// Normalise whitespace if necessary.\n    if ((flags & LIT_NORMALIZE) > 0) {", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CATCH", "LOOP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "SWITCH", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [3, 11], [4, 12], [0, 13], [9, 14], [9, 15], [11, 16], [3, 17], [4, 18], [12, 19], [12, 20], [13, 21], [2, 22], [10, 23], [11, 24], [17, 25], [18, 26], [4, 27], [20, 28], [20, 29], [23, 30], [23, 31], [23, 32], [11, 33], [11, 34], [27, 35], [27, 36], [19, 37], [28, 38], [29, 39], [30, 40], [32, 41], [32, 42], [33, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [24, 49], [24, 50], [42, 51], [46, 52], [24, 53], [46, 54], [52, 55], [52, 56], [53, 57], [54, 58], [54, 59], [46, 60], [58, 61], [54, 62], [59, 63], [60, 64], [58, 65], [61, 66], [61, 67], [54, 68], [54, 69], [58, 70], [58, 71], [58, 72], [58, 73], [68, 74], [70, 75], [71, 76], [72, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 3], [12, 4], [13, 0], [14, 9], [15, 9], [16, 11], [17, 3], [18, 4], [19, 12], [20, 12], [21, 13], [22, 2], [23, 10], [24, 11], [25, 17], [26, 18], [27, 4], [28, 20], [29, 20], [30, 23], [31, 23], [32, 23], [33, 11], [34, 11], [35, 27], [36, 27], [37, 19], [38, 28], [39, 29], [40, 30], [41, 32], [42, 32], [43, 33], [44, 24], [45, 24], [46, 24], [47, 24], [48, 24], [49, 24], [50, 24], [51, 42], [52, 46], [53, 24], [54, 46], [55, 52], [56, 52], [57, 53], [58, 54], [59, 54], [60, 46], [61, 58], [62, 54], [63, 59], [64, 60], [65, 58], [66, 61], [67, 61], [68, 54], [69, 54], [70, 58], [71, 58], [72, 58], [73, 58], [74, 68], [75, 70], [76, 71], [77, 72], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "readExternalIds", "code": "    * Try reading external identifiers.\n    * <p>The system identifier is not required for notations.\n    * @param inNotation Are we in a notation?\n    * @return A two-member String array containing the identifiers.\n    */\n  String[] readExternalIds (boolean inNotation)\n    throws java.lang.Exception\n  {\n    char c;\n    String ids[] = new String[2];\n\n    if (tryRead(\"PUBLIC\")) {\n      requireWhitespace();\n      ids[0] = readLiteral(LIT_NORMALIZE); // public id\n      if (inNotation) {\n\tskipWhitespace();\n\tif (tryRead('\"') || tryRead('\\'')) {\n\t  ids[1] = readLiteral(0);\n\t}\n      } else {\n\trequireWhitespace();\n\tids[1] = readLiteral(0); // system id\n      }\n    } else if (tryRead(\"SYSTEM\")) {", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "IF", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [2, 9], [7, 10], [8, 11], [2, 12], [2, 13], [3, 14], [6, 15], [6, 16], [9, 17], [12, 18], [15, 19], [9, 20], [9, 21], [17, 22], [9, 23], [19, 24], [20, 25], [22, 26], [22, 27], [12, 28], [15, 29], [25, 30], [17, 31], [26, 32], [27, 33], [20, 34], [31, 35], [35, 36], [31, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 2], [10, 7], [11, 8], [12, 2], [13, 2], [14, 3], [15, 6], [16, 6], [17, 9], [18, 12], [19, 15], [20, 9], [21, 9], [22, 17], [23, 9], [24, 19], [25, 20], [26, 22], [27, 22], [28, 12], [29, 15], [30, 25], [31, 17], [32, 26], [33, 27], [34, 20], [35, 31], [36, 35], [37, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "isWhitespace", "code": "    * [1] S ::= (#x20 | #x9 | #xd | #xa)+\n    * </pre>\n    * @param c The character to test.\n    * @return true if the character is whitespace.\n    */\n  final boolean isWhitespace (char c)\n  {\n    switch ((int)c) {\n    case 0x20:\n    case 0x09:", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [4, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "dataBufferAppend", "code": "  //////////////////////////////////////////////////////////////////////\n\n\n  /**\n    * Add a character to the data buffer.\n    */", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "dataBufferAppend", "code": "  }\n\n", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "dataBufferAppend", "code": "  }\n\n\n  /**\n    * Append (part of) a character array to the data buffer.\n    */\n  void dataBufferAppend (char ch[], int start, int length)\n  {\n    dataBuffer =", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "dataBufferNormalize", "code": "  }\n\n\n  /**\n    * Normalise whitespace in the data buffer.\n    */\n  void dataBufferNormalize ()\n  {\n    int i = 0;\n    int j = 0;\n    int end = dataBufferPos;\n\n\t\t\t\t// Skip whitespace at the start.\n    while (j < end && isWhitespace(dataBuffer[j])) {\n      j++;\n    }\n\n\t\t\t\t// Skip whitespace at the end.\n    while (end > j && isWhitespace(dataBuffer[end - 1])) {\n      end --;\n    }\n\n\t\t\t\t// Start copying to the left.\n    while (j < end) {\n\n      char c = dataBuffer[j++];\n\n\t\t\t\t// Normalise all other whitespace to\n\t\t\t\t// a single space.\n      if (isWhitespace(c)) {\n\twhile (j < end && isWhitespace(dataBuffer[j++])) {\n\t}\n\tdataBuffer[i++] = ' ';\n\tdataBuffer[i++] = dataBuffer[j-1];\n      } else {", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LOOP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [1, 11], [1, 12], [9, 13], [9, 14], [10, 15], [10, 16], [5, 17], [6, 18], [11, 19], [11, 20], [11, 21], [11, 22], [11, 23], [20, 24], [13, 25], [23, 26], [24, 27], [24, 28], [25, 29], [22, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 1], [12, 1], [13, 9], [14, 9], [15, 10], [16, 10], [17, 5], [18, 6], [19, 11], [20, 11], [21, 11], [22, 11], [23, 11], [24, 20], [25, 13], [26, 23], [27, 24], [28, 24], [29, 25], [30, 22], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "dataBufferToString", "code": "\n  /**\n    * Convert the data buffer to a string.\n    * @param internFlag true if the contents should be interned.\n    * @see #intern(char[],int,int)", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "dataBufferFlush", "code": "\n\n  /**\n    * Flush the contents of the data buffer to the handler, if\n    * appropriate, and reset the buffer for new input.\n    */\n  void dataBufferFlush ()\n    throws java.lang.Exception\n  {\n    if (dataBufferPos > 0) {\n      switch (currentElementContent) {\n      case CONTENT_UNDECLARED:\n      case CONTENT_EMPTY:\n\t// do nothing\n\tbreak;\n      case CONTENT_MIXED:\n      case CONTENT_ANY:\n\tif (handler != null) {\n\t  handler.charData(dataBuffer, 0, dataBufferPos);\n\t}\n\tbreak;\n      case CONTENT_ELEMENTS:", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [5, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [8, 12], [10, 13], [12, 14], [13, 15], [8, 16], [10, 17], [16, 18], [17, 19], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 5], [7, 3], [8, 3], [9, 3], [10, 3], [11, 3], [12, 8], [13, 10], [14, 12], [15, 13], [16, 8], [17, 10], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "require", "code": "  }\n\n\n  /**\n    * Require a string to appear, or throw an exception.\n    */", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "require", "code": "  }\n\n\n  /**\n    * Require a character to appear, or throw an exception.\n    */\n  void require (char delim)", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [6, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 6], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "intern", "code": "    * <p>Note that this will not return the same results as String.intern().\n    * @param s The string to internalise.\n    * @return An internalised version of the string.\n    * @see #intern(char[],int,int)", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "intern", "code": "    * @param start the starting position in the array.\n    * @param length the number of characters to place in the string.\n    * @return an internalised string.\n    * @see #intern(String)\n    * @see java.lang.String#intern\n    */\n  public String intern (char ch[], int start, int length)\n  {\n    int index;\n    int hash = 0;\n\n\t\t\t\t// Generate a hash code.\n    for (int i = start; i < start + length; i++) {\n      hash = ((hash << 1) & 0xffffff) + (int)ch[i];\n    }\n\n    hash = hash % SYMBOL_TABLE_LENGTH;\n\n\t\t\t\t// Get the bucket.\n    Object bucket[] = (Object[])symbolTable[hash];\n    if (bucket == null) {\n      symbolTable[hash] = bucket = new Object[8];\n    }\n\n\t\t\t\t// Search for a matching tuple, and\n\t\t\t\t// return the string if we find one.\n    for (index = 0; index < bucket.length; index += 2) {\n      char chFound[] = (char[])bucket[index];\n\n\t\t\t\t// Stop when we hit a null index.\n      if (chFound == null) {\n\tbreak;\n      }\n\n\t\t\t\t// If they're the same length,\n\t\t\t\t// check for a match.\n\t\t\t\t// If the loop finishes, 'index' will\n\t\t\t\t// contain the current bucket\n\t\t\t\t// position.\n      if (chFound.length == length) {\n\tfor (int i = 0; i < chFound.length; i++) {\n\t\t\t\t// Stop if there are no more tuples.\n\t  if (ch[start+i] != chFound[i]) {\n\t    break;\n\t  } else if (i == length-1) {\n\t\t\t\t// That's it, we have a match!\n\t    return (String)bucket[index+1];\n\t  }\n\t}\n      }\n    }\n\n\t\t\t\t// Not found -- we'll have to add it.\n\n\t\t\t\t// Do we have to grow the bucket?\n    bucket =\n      (Object[])extendArray(bucket, bucket.length, index);\n\n\t\t\t\t// OK, add it to the end of the", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LOOP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [3, 16], [3, 17], [3, 18], [4, 19], [0, 20], [6, 21], [14, 22], [2, 23], [3, 24], [3, 25], [3, 26], [16, 27], [18, 28], [19, 29], [20, 30], [21, 31], [7, 32], [15, 33], [24, 34], [25, 35], [4, 36], [6, 37], [13, 38], [24, 39], [25, 40], [35, 41], [36, 42], [37, 43], [38, 44], [39, 45], [43, 46], [39, 47], [42, 48], [46, 49], [46, 50], [47, 51], [47, 52], [39, 53], [50, 54], [51, 55], [47, 56], [51, 57], [55, 58], [58, 59], [52, 60], [57, 61], [61, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 3], [17, 3], [18, 3], [19, 4], [20, 0], [21, 6], [22, 14], [23, 2], [24, 3], [25, 3], [26, 3], [27, 16], [28, 18], [29, 19], [30, 20], [31, 21], [32, 7], [33, 15], [34, 24], [35, 25], [36, 4], [37, 6], [38, 13], [39, 24], [40, 25], [41, 35], [42, 36], [43, 37], [44, 38], [45, 39], [46, 43], [47, 39], [48, 42], [49, 46], [50, 46], [51, 47], [52, 47], [53, 39], [54, 50], [55, 51], [56, 47], [57, 51], [58, 55], [59, 58], [60, 52], [61, 57], [62, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "extendArray", "code": "\n\n  /**\n    * Ensure the capacity of an array, allocating a new one if\n    * necessary.\n    */\n  Object extendArray (Object array, int currentSize, int requiredSize)\n  {\n    if (requiredSize < currentSize) {\n      return array;\n    } else {\n      Object newArray = null;\n      int newSize = currentSize * 2;\n\n      if (newSize <= requiredSize) {\n\tnewSize = requiredSize + 1;\n      }\n\n      if (array instanceof char[]) {\n\tnewArray = new char[currentSize * 2];", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [7, 13], [7, 14], [8, 15], [12, 16], [12, 17], [13, 18], [9, 19], [10, 20], [7, 21], [8, 22], [19, 23], [13, 24], [22, 25], [21, 26], [25, 27], [24, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 7], [14, 7], [15, 8], [16, 12], [17, 12], [18, 13], [19, 9], [20, 10], [21, 7], [22, 8], [23, 19], [24, 13], [25, 22], [26, 21], [27, 25], [28, 24], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "declaredElements", "code": "    * <p>The results will be valid only after the DTD (if any) has been\n    * parsed.\n    * @return An enumeration of all element types declared for this", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getElementContentType", "code": "    * @see #getElementContentModel\n    * @see #CONTENT_UNDECLARED\n    * @see #CONTENT_ANY\n    * @see #CONTENT_EMPTY\n    * @see #CONTENT_MIXED\n    * @see #CONTENT_ELEMENTS\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getElementContentModel", "code": "    * Look up the content model of an element.\n    * <p>The result will always be null unless the content type is\n    * CONTENT_ELEMENTS or CONTENT_MIXED.\n    * @param name The element type name.\n    * @return The normalised content model, as a string.\n    * @see #getElementContentType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setElement", "code": "\n  /**\n    * Register an element.\n    * Array format:\n    *  element type\n    *  attribute hash table\n    */\n  void setElement (String name, int contentType,\n\t\t   String contentModel, Hashtable attributes)\n    throws java.lang.Exception\n  {\n    Object element[];\n\n\t\t\t\t// Try looking up the element\n    element = (Object[])elementInfo.get(name);\n\n\t\t\t\t// Make a new one if necessary.\n    if (element == null) {\n      element = new Object[3];\n      element[0] = new Integer(CONTENT_UNDECLARED);\n      element[1] = null;\n      element[2] = null;\n    } else if (contentType != CONTENT_UNDECLARED &&\n\t       ((Integer)element[0]).intValue() != CONTENT_UNDECLARED) {\n      error(\"multiple declarations for element type\", name, null);\n      return;\n    }\n\n\t\t\t\t// Insert the content type, if any.\n    if (contentType != CONTENT_UNDECLARED) {\n      element[0] = new Integer(contentType);\n    }\n\n\t\t\t\t// Insert the content model, if any.\n    if (contentModel != null) {\n      element[1] = contentModel;\n    }\n", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [4, 14], [4, 15], [0, 16], [11, 17], [12, 18], [14, 19], [15, 20], [1, 21], [2, 22], [3, 23], [14, 24], [19, 25], [19, 26], [4, 27], [4, 28], [4, 29], [4, 30], [16, 31], [23, 32], [14, 33], [27, 34], [28, 35], [29, 36], [33, 37], [33, 38], [30, 39], [21, 40], [22, 41], [23, 42], [27, 43], [28, 44], [29, 45], [25, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 4], [15, 4], [16, 0], [17, 11], [18, 12], [19, 14], [20, 15], [21, 1], [22, 2], [23, 3], [24, 14], [25, 19], [26, 19], [27, 4], [28, 4], [29, 4], [30, 4], [31, 16], [32, 23], [33, 14], [34, 27], [35, 28], [36, 29], [37, 33], [38, 33], [39, 30], [40, 21], [41, 22], [42, 23], [43, 27], [44, 28], [45, 29], [46, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "getElementAttributes", "code": "  }\n\n\n  /**\n    * Look up the attribute hash table for an element.\n    * The hash table is the second item in the element array.\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "declaredAttributes", "code": "    *         after the DTD (if any) has been parsed.\n    * @see #getAttributeType\n    * @see #getAttributeEnumeration\n    * @see #getAttributeDefaultValueType\n    * @see #getAttributeDefaultValue\n    * @see #getAttributeExpandedValue\n    */\n  public Enumeration declaredAttributes (String elname)", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getAttributeType", "code": "    * @see #ATTRIBUTE_ENTITY\n    * @see #ATTRIBUTE_ENTITIES\n    * @see #ATTRIBUTE_NMTOKEN\n    * @see #ATTRIBUTE_NMTOKENS\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getAttributeEnumeration", "code": "    * Retrieve the allowed values for an enumerated attribute type.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return A string containing the token list.\n    * @see #ATTRIBUTE_ENUMERATED\n    * @see #ATTRIBUTE_NOTATION\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [7, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 7], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getAttributeDefaultValue", "code": "    * Retrieve the default value of a declared attribute.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared and unspecified.\n    * @see #getAttributeExpandedValue\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [7, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 7], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getAttributeExpandedValue", "code": "    * <p>All general entities will be expanded.\n    * @param name The name of the associated element.\n    * @param aname The name of the attribute.\n    * @return The expanded default value, or null if the attribute was\n    *         #IMPLIED or simply undeclared\n    * @see #getAttributeDefaultValue\n    */\n  public String getAttributeExpandedValue (String name, String aname)\n  {\n    Object attribute[] = getAttribute(name, aname);\n    if (attribute == null) {\n      return null;\n    } else if (attribute[4] == null && attribute[1] != null) {\n      try {", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "TRY", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [2, 9], [7, 10], [3, 11], [6, 12], [8, 13], [8, 14], [9, 15], [1, 16], [12, 17], [13, 18], [14, 19], [12, 20], [12, 21], [20, 22], [21, 23], [21, 24], [13, 25], [14, 26], [22, 27], [23, 28], [27, 29], [20, 30], [23, 31], [28, 32], [28, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 2], [10, 7], [11, 3], [12, 6], [13, 8], [14, 8], [15, 9], [16, 1], [17, 12], [18, 13], [19, 14], [20, 12], [21, 12], [22, 20], [23, 21], [24, 21], [25, 13], [26, 14], [27, 22], [28, 23], [29, 27], [30, 20], [31, 23], [32, 28], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getAttributeDefaultValueType", "code": "  /**\n    * Retrieve the default value type of a declared attribute.\n    * @see #ATTRIBUTE_DEFAULT_SPECIFIED\n    * @see #ATTRIBUTE_DEFAULT_IMPLIED\n    * @see #ATTRIBUTE_DEFAULT_REQUIRED\n    * @see #ATTRIBUTE_DEFAULT_FIXED\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setAttribute", "code": "    * Register an attribute declaration for later retrieval.\n    * Format:\n    * - String type\n    * - String default value\n    * - int value type\n    * *TODO: do something with attribute types.\n    */\n  void setAttribute (String elName, String name, int type, String enumeration,\n\t\t     String value, int valueType)\n    throws java.lang.Exception\n  {\n    Hashtable attlist;\n    Object attribute[];\n\n\t\t\t\t// Create a new hashtable if necessary.\n    attlist = getElementAttributes(elName);\n    if (attlist == null) {\n      attlist = new Hashtable();\n    }\n\n\t\t\t\t// Check that the attribute doesn't\n\t\t\t\t// already exist!\n    if (attlist.get(name) != null) {\n      return;\n    } else {\n      attribute = new Object[5];\n      attribute[0] = new Integer(type);\n      attribute[1] = value;\n      attribute[2] = new Integer(valueType);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [0, 13], [1, 14], [11, 15], [11, 16], [12, 17], [13, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [2, 27], [19, 28], [20, 29], [21, 30], [23, 31], [25, 32], [27, 33], [26, 34], [21, 35], [22, 36], [23, 37], [24, 38], [25, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 0], [14, 1], [15, 11], [16, 11], [17, 12], [18, 13], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 2], [28, 19], [29, 20], [30, 21], [31, 23], [32, 25], [33, 27], [34, 26], [35, 21], [36, 22], [37, 23], [38, 24], [39, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getAttribute", "code": "  }\n\n\n  /**\n    * Retrieve the three-member array representing an\n    * attribute declaration.\n    */\n  Object[] getAttribute (String elName, String name)\n  {\n    Hashtable attlist;\n    Object attribute[];\n", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [2, 10], [8, 11], [9, 12], [7, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 2], [11, 8], [12, 9], [13, 7], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "declaredEntities", "code": "    *         after the DTD (if any) has been parsed.\n    * @see #getEntityType\n    * @see #getEntityPublicId", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEntityType", "code": "    * Find the type of an entity.\n    * @returns An integer constant representing the entity type.\n    * @see #ENTITY_UNDECLARED\n    * @see #ENTITY_INTERNAL\n    * @see #ENTITY_NDATA\n    * @see #ENTITY_TEXT\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getEntityPublicId", "code": "    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, if it is not an\n    *         external entity, or if no public identifier was\n    *         provided.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getEntitySystemId", "code": "    * Return an external entity's system identifier.\n    * @param ename The name of the external entity.\n    * @return The entity's system identifier, or null if the\n    *         entity was not declared, or if it is not an\n    *         external entity.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getEntityValue", "code": "  /**\n    * Return the value of an internal entity.\n    * @param ename The name of the internal entity.\n    * @return The entity's value, or null if the entity was\n    *         not declared, or if it is not an internal entity.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getEntityNotationName", "code": "    * Get the notation name associated with an NDATA entity.\n    * @param ename The NDATA entity name.\n    * @return The associated notation name, or null if the\n    *         entity was not declared, or if it is not an\n    *         NDATA entity.\n    * @see #getEntityType\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setInternalEntity", "code": "    }\n  }\n", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExternalDataEntity", "code": "    setEntity(eName, ENTITY_INTERNAL, null, null, value, null);\n  }\n\n", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExternalTextEntity", "code": "    setEntity(eName, ENTITY_NDATA, pubid, sysid, null, nName);\n  }\n", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setEntity", "code": "    setEntity(eName, ENTITY_TEXT, pubid, sysid, null, null);\n  }\n\n\n  /**\n    * Register an entity declaration for later retrieval.\n    */\n  void setEntity (String eName, int eClass,\n\t\t  String pubid, String sysid,\n\t\t  String value, String nName)\n  {\n    Object entity[];\n\n    if (entityInfo.get(eName) == null) {\n      entity = new Object[5];", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [9, 10], [9, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [17, 19], [18, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 9], [11, 9], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 17], [20, 18], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "declaredNotations", "code": "    * Get declared notations.\n    * @return An Enumeration of all the notations declared for\n    *         this XML document.  The results will be valid only", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNotationPublicId", "code": "    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the public identifier, or null\n    *         if none was provided or if no such notation was\n    *         declared.\n    * @see #getNotationSystemId\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNotationSystemId", "code": "    * You will normally use this method to look up a notation\n    * that was provided as an attribute value or for an NDATA entity.\n    * @param nname The name of the notation.\n    * @return A string containing the system identifier, or null\n    *         if no such notation was declared.\n    * @see #getNotationPublicId\n    */", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [2, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 2], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setNotation", "code": "\n  /**\n    * Register a notation declaration for later retrieval.\n    * Format:\n    * - public id\n    * - system id\n    */\n  void setNotation (String nname, String pubid, String sysid)\n    throws java.lang.Exception\n  {\n    Object notation[];\n", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [9, 14], [9, 15], [13, 16], [11, 17], [12, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 9], [15, 9], [16, 13], [17, 11], [18, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getLineNumber", "code": "  // Location.\n  //\n", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getColumnNumber", "code": "    return line;\n  }\n", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "readCh", "code": "    * @return The next available input character.\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #line\n    * @return The next character from the current input source.\n    */\n  char readCh ()\n    throws java.lang.Exception\n    {\n    char c;\n\n    // As long as there's nothing in the\n    // read buffer, try reading more data\n    // (for an external entity) or popping\n    // the entity stack (for either).\n    while (readBufferPos >= readBufferLength)\n      {\n      switch (sourceType)\n        {\n        case INPUT_READER:\n        case INPUT_EXTERNAL:\n        case INPUT_STREAM:\n        readDataChunk();\n        while (readBufferLength < 1)\n          {\n          popInput();\n          if (readBufferLength <1)\n            {\n            readDataChunk();\n            }\n          }\n        break;\n\n        default:\n        popInput();\n        break;\n        }\n      }\n\n    c = readBuffer[readBufferPos++];\n\n    // This is a particularly nasty bit\n    // of code, that checks for a parameter\n    // entity reference but peeks ahead to\n    // catch the '%' in parameter entity\n    // declarations.\n    if\n      (\n      c == '%' && \n      (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE)\n      )\n      {\n      char c2 = readCh();\n      unread(c2);\n      if (!isWhitespace(c2))\n        {\n        parsePEReference(context == CONTEXT_ENTITYVALUE);\n        return readCh();\n        }\n      }\n\n    if (c == '\\n')\n      {\n      line++;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "SWITCH", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LOOP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [0, 8], [4, 9], [6, 10], [3, 11], [3, 12], [7, 13], [7, 14], [4, 15], [2, 16], [11, 17], [3, 18], [13, 19], [13, 20], [14, 21], [16, 22], [11, 23], [12, 24], [15, 25], [15, 26], [15, 27], [23, 28], [11, 29], [15, 30], [27, 31], [15, 32], [29, 33], [27, 34], [31, 35], [34, 36], [27, 37], [36, 38], [34, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 0], [9, 4], [10, 6], [11, 3], [12, 3], [13, 7], [14, 7], [15, 4], [16, 2], [17, 11], [18, 3], [19, 13], [20, 13], [21, 14], [22, 16], [23, 11], [24, 12], [25, 15], [26, 15], [27, 15], [28, 23], [29, 11], [30, 15], [31, 27], [32, 15], [33, 29], [34, 27], [35, 31], [36, 34], [37, 27], [38, 36], [39, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "unread", "code": "    * before unreading it, but just in case, I've added a boundary\n    * condition.\n    * @param c The character to push back.\n    * @see #readCh\n    * @see #unread(String)\n    * @see #unread(char[])\n    * @see #readBuffer\n    */\n  void unread (char c)\n    throws java.lang.Exception\n    {\n    // Normal condition.\n    if (c == '\\n')\n      {\n      line--;\n      column = -1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [5, 7], [1, 8], [1, 9], [2, 10], [8, 11], [8, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 5], [8, 1], [9, 1], [10, 2], [11, 8], [12, 8], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "unread", "code": "    * <p>NOTE: you must <em>never</em> push back characters that you\n    * haven't actually read: use pushString() instead.\n    * @see #readCh\n    * @see #unread(char)\n    * @see #unread(String)\n    * @see #readBuffer\n    * @see #pushString\n    */\n  void unread (char ch[], int length) \n    throws java.lang.Exception\n    {\n    for (int i = 0; i < length; i++)\n        {\n        if (ch[i] == '\\n')", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [1, 9], [1, 10], [7, 11], [2, 12], [9, 13], [9, 14], [11, 15], [7, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 1], [10, 1], [11, 7], [12, 2], [13, 9], [14, 9], [15, 11], [16, 7], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "pushURL", "code": "    * @see XmlHandler#resolveEntity\n    * @see #pushString\n    * @see #sourceType\n    * @see #pushInput\n    * @see #detectEncoding\n    * @see #sourceType\n    * @see #readBuffer\n    */\n  void pushURL (String ename, String publicId, String systemId,\n\t\tReader reader, InputStream stream, String encoding)\n    throws java.lang.Exception\n  {\n    URL url;\n    boolean ignoreEncoding = false;\n\n\t\t\t\t// Push the existing status.\n    pushInput(ename);\n\n\t\t\t\t// Create a new read buffer.\n\t\t\t\t// (Note the four-character margin)\n    readBuffer = new char[READ_BUFFER_MAX+4];\n    readBufferPos = 0;\n    readBufferLength = 0;\n    readBufferOverflow = -1;\n    is = null;\n    line = 1;\n\n    currentByteCount = 0;\n\n\t\t\t\t// Flush any remaining data.\n    dataBufferFlush();\n\n\t\t\t\t// Make the URL absolute.\n    if (systemId != null && externalEntity != null) {\n      systemId = new URL(externalEntity.getURL(), systemId).toString();\n    } else if (baseURI != null) {\n      try {\n\tsystemId = new URL(new URL(baseURI), systemId).toString();\n      } catch (Exception e) {}\n    }\n\n\t\t\t\t// See if the application wants to\n\t\t\t\t// redirect the system ID and/or\n\t\t\t\t// supply its own character stream.\n    if (systemId != null && handler != null) {\n      Object input = handler.resolveEntity(publicId, systemId);\n      if (input != null) {\n\tif (input instanceof String) {\n\t  systemId = (String)input;\n\t} else if (input instanceof InputStream) {\n\t  stream = (InputStream)input;\n\t} else if (input instanceof Reader) {\n\t  reader = (Reader)input;\n\t}\n      }\n    }\n\n\t\t\t\t// Start the entity.\n    if (handler != null) {\n      if (systemId != null) {\n\thandler.startExternalEntity(systemId);\n      } else {\n\thandler.startExternalEntity(\"[external stream]\");\n      }\n    }\n\n\t\t\t\t// Figure out what we're reading from.\n    if (reader != null) {\n\t\t\t\t// There's an explicit character stream.\n      sourceType = INPUT_READER;\n      this.reader = reader;\n      tryEncodingDecl(true);\n      return;\n    } else if (stream != null) {\n      sourceType = INPUT_STREAM;\n      is = stream;\n    } else {\n\t\t\t\t// We have to open our own stream\n\t\t\t\t// to the URL.\n\n\t\t\t\t// Set the new status\n      sourceType = INPUT_EXTERNAL;\n      url = new URL(systemId);\n\n      externalEntity = url.openConnection();\n      externalEntity.connect();\n      is = externalEntity.getInputStream();\n    }\n\n\t\t\t\t// If we get to here, there must be\n\t\t\t\t// an InputStream available.\n    if (!is.markSupported()) {\n      is = new BufferedInputStream(is);\n    }\n\n\t\t\t\t// Attempt to detect the encoding.\n    if (encoding == null && externalEntity != null) {\n      encoding = externalEntity.getContentEncoding();\n    }\n\n    if (encoding != null) {\n      checkEncoding(encoding, false);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [2, 18], [3, 19], [4, 20], [4, 21], [5, 22], [6, 23], [7, 24], [7, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [17, 35], [18, 36], [18, 37], [20, 38], [4, 39], [21, 40], [5, 41], [22, 42], [6, 43], [6, 44], [23, 45], [23, 46], [24, 47], [25, 48], [25, 49], [27, 50], [28, 51], [29, 52], [30, 53], [31, 54], [32, 55], [8, 56], [1, 57], [1, 58], [1, 59], [1, 60], [2, 61], [36, 62], [37, 63], [3, 64], [38, 65], [4, 66], [4, 67], [4, 68], [41, 69], [43, 70], [45, 71], [46, 72], [24, 73], [47, 74], [7, 75], [48, 76], [49, 77], [33, 78], [57, 79], [59, 80], [60, 81], [61, 82], [64, 83], [20, 84], [20, 85], [20, 86], [20, 87], [20, 88], [20, 89], [20, 90], [66, 91], [69, 92], [43, 93], [70, 94], [44, 95], [73, 96], [75, 97], [78, 98], [84, 99], [86, 100], [87, 101], [41, 102], [41, 103], [93, 104], [93, 105], [73, 106], [97, 107], [97, 108], [102, 109], [104, 110], [104, 111], [106, 112], [110, 113], [93, 114], [112, 115], [112, 116], [104, 117], [110, 118], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 2], [19, 3], [20, 4], [21, 4], [22, 5], [23, 6], [24, 7], [25, 7], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 17], [36, 18], [37, 18], [38, 20], [39, 4], [40, 21], [41, 5], [42, 22], [43, 6], [44, 6], [45, 23], [46, 23], [47, 24], [48, 25], [49, 25], [50, 27], [51, 28], [52, 29], [53, 30], [54, 31], [55, 32], [56, 8], [57, 1], [58, 1], [59, 1], [60, 1], [61, 2], [62, 36], [63, 37], [64, 3], [65, 38], [66, 4], [67, 4], [68, 4], [69, 41], [70, 43], [71, 45], [72, 46], [73, 24], [74, 47], [75, 7], [76, 48], [77, 49], [78, 33], [79, 57], [80, 59], [81, 60], [82, 61], [83, 64], [84, 20], [85, 20], [86, 20], [87, 20], [88, 20], [89, 20], [90, 20], [91, 66], [92, 69], [93, 43], [94, 70], [95, 44], [96, 73], [97, 75], [98, 78], [99, 84], [100, 86], [101, 87], [102, 41], [103, 41], [104, 93], [105, 93], [106, 73], [107, 97], [108, 97], [109, 102], [110, 104], [111, 104], [112, 106], [113, 110], [114, 93], [115, 112], [116, 112], [117, 104], [118, 110], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118]]}, {"function_name": "tryEncodingDecl", "code": "\t\t\t\t// Read an XML or text declaration.\n    tryEncodingDecl(ignoreEncoding);\n  }\n\n\n  /**\n    * Check for an encoding declaration.\n    */\n  void tryEncodingDecl (boolean ignoreEncoding)\n    throws java.lang.Exception\n  {\n\t\t\t\t// Read the XML/Encoding declaration.\n    if (tryRead(\"<?xml\")) {\n      if (tryWhitespace()) {", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [4, 8], [4, 9], [7, 10], [9, 11], [9, 12], [10, 13], [10, 14], [12, 15], [7, 16], [7, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 4], [9, 4], [10, 7], [11, 9], [12, 9], [13, 10], [14, 10], [15, 12], [16, 7], [17, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "detectEncoding", "code": "    * <p>I don't currently detect EBCDIC, since I'm concerned that it\n    * could also be a valid UTF-8 sequence; I'll have to do more checking\n    * later.\n    * @see #tryEncoding(byte[], byte, byte, byte, byte)\n    * @see #tryEncoding(byte[], byte, byte)\n    * @see #checkEncoding\n    * @see #read8bitEncodingDeclaration\n    */\n  void detectEncoding ()\n    throws java.lang.Exception\n  {\n    byte signature[] = new byte[4];\n\n\t\t\t\t// Read the first four bytes for\n\t\t\t\t// autodetection.\n    is.mark(4);\n    is.read(signature);\n    is.reset();\n\n\t\t\t\t// Look for a known signature.\n    if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t    (byte)0x00, (byte)0x3c)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x00 0x3c: UCS-4, big-endian (1234)\n      encoding = ENCODING_UCS_4_1234;\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x3c 0x00 0x00 0x00: UCS-4, little-endian (4321)\n      encoding = ENCODING_UCS_4_4321;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x00,\n\t\t\t   (byte)0x3c, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x00 0x3c 0x00: UCS-4, unusual (2143)\n      encoding = ENCODING_UCS_4_2143;\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x00)) {\n      // UCS-4 must begin with \"<!XML\"\n      // 0x00 0x3c 0x00 0x00: UCS-4, unusual (3421)\n      encoding = ENCODING_UCS_4_3412;\n    } else if (tryEncoding(signature, (byte)0xfe, (byte)0xff)) {\n      // UCS-2 with a byte-order marker.\n      // 0xfe 0xff: UCS-2, big-endian (12)\n      encoding = ENCODING_UCS_2_12;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0xff, (byte)0xfe)) {\n      // UCS-2 with a byte-order marker.\n      // 0xff 0xfe: UCS-2, little-endian (21)\n      encoding = ENCODING_UCS_2_21;\n      is.read(); is.read();\n    } else if (tryEncoding(signature, (byte)0x00, (byte)0x3c,\n\t\t\t   (byte)0x00, (byte)0x3f)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x00 0x3c 0x00 0x3f: UCS-2, big-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_12;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x00,\n\t\t\t   (byte)0x3f, (byte)0x00)) {\n      // UCS-2 without a BOM must begin with \"<?XML\"\n      // 0x3c 0x00 0x3f 0x00: UCS-2, little-endian, no byte-order mark\n      encoding = ENCODING_UCS_2_21;\n      error(\"no byte-order mark for UCS-2 entity\", null, null);\n    } else if (tryEncoding(signature, (byte)0x3c, (byte)0x3f,\n\t\t\t   (byte)0x78, (byte)0x6d)) {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [0, 6], [0, 7], [3, 8], [3, 9], [7, 10], [8, 11], [8, 12], [1, 13], [4, 14], [4, 15], [4, 16], [4, 17], [2, 18], [11, 19], [11, 20], [3, 21], [9, 22], [9, 23], [9, 24], [9, 25], [19, 26], [19, 27], [8, 28], [12, 29], [12, 30], [12, 31], [12, 32], [26, 33], [26, 34], [11, 35], [20, 36], [20, 37], [20, 38], [20, 39], [33, 40], [33, 41], [19, 42], [19, 43], [19, 44], [27, 45], [27, 46], [40, 47], [40, 48], [26, 49], [26, 50], [26, 51], [34, 52], [34, 53], [47, 54], [33, 55], [33, 56], [41, 57], [41, 58], [41, 59], [41, 60], [40, 61], [40, 62], [48, 63], [48, 64], [48, 65], [48, 66], [55, 67], [55, 68], [55, 69], [47, 70], [47, 71], [47, 72], [54, 73], [54, 74], [54, 75], [54, 76], [61, 77], [61, 78], [61, 79], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 0], [7, 0], [8, 3], [9, 3], [10, 7], [11, 8], [12, 8], [13, 1], [14, 4], [15, 4], [16, 4], [17, 4], [18, 2], [19, 11], [20, 11], [21, 3], [22, 9], [23, 9], [24, 9], [25, 9], [26, 19], [27, 19], [28, 8], [29, 12], [30, 12], [31, 12], [32, 12], [33, 26], [34, 26], [35, 11], [36, 20], [37, 20], [38, 20], [39, 20], [40, 33], [41, 33], [42, 19], [43, 19], [44, 19], [45, 27], [46, 27], [47, 40], [48, 40], [49, 26], [50, 26], [51, 26], [52, 34], [53, 34], [54, 47], [55, 33], [56, 33], [57, 41], [58, 41], [59, 41], [60, 41], [61, 40], [62, 40], [63, 48], [64, 48], [65, 48], [66, 48], [67, 55], [68, 55], [69, 55], [70, 47], [71, 47], [72, 47], [73, 54], [74, 54], [75, 54], [76, 54], [77, 61], [78, 61], [79, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "tryEncoding", "code": "    * <p>Always looks for some part of \"<?XML\" in a specific encoding.\n    * @param sig The first four bytes read.\n    * @param b1 The first byte of the signature", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [7, 9], [9, 10], [9, 11], [11, 12], [11, 13], [8, 14], [10, 15], [12, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 7], [10, 9], [11, 9], [12, 11], [13, 11], [14, 8], [15, 10], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "tryEncoding", "code": "    * Check for a two-byte signature.\n    * <p>Looks for a UCS-2 byte-order mark.\n    * <p>Utility routine for detectEncoding().", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "pushString", "code": "  /**\n    * This method pushes a string back onto input.\n    * <p>It is useful either as the expansion of an internal entity, \n    * or for backtracking during the parse.\n    * <p>Call pushCharArray() to do the actual work.", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "pushCharArray", "code": "    * for 1-character strings; this should save some time and memory.\n    * @param ch The char array to push.\n    * @see #pushString\n    * @see #pushURL\n    * @see #readBuffer\n    * @see #sourceType\n    * @see #pushInput\n    */\n  void pushCharArray (String ename, char ch[], int start, int length)\n    throws java.lang.Exception", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "pushInput", "code": "    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void pushInput (String ename)\n    throws java.lang.Exception\n  {\n    Object input[] = new Object[12];\n\n\t\t\t\t// Check for entity recursion.\n    if (ename != null) {\n      Enumeration entities = entityStack.elements();\n      while (entities.hasMoreElements()) {\n\tString e = (String)entities.nextElement();\n\tif (e == ename) {\n\t  error(\"recursive reference to entity\", ename, null);\n\t}\n      }\n    }\n    entityStack.push(ename);\n\n\t\t\t\t// Don't bother if there is no input.\n    if (sourceType == INPUT_NONE) {\n      return;\n    }\n\n\t\t\t\t// Set up a snapshot of the current\n\t\t\t\t// input source.\n    input[0] = new Integer(sourceType);\n    input[1] = externalEntity;\n    input[2] = readBuffer;\n    input[3] = new Integer(readBufferPos);\n    input[4] = new Integer(readBufferLength);\n    input[5] = new Integer(line);\n    input[6] = new Integer(encoding);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [0, 19], [2, 20], [7, 21], [8, 22], [10, 23], [11, 24], [12, 25], [13, 26], [14, 27], [17, 28], [1, 29], [2, 30], [2, 31], [20, 32], [30, 33], [3, 34], [6, 35], [7, 36], [8, 37], [9, 38], [10, 39], [11, 40], [12, 41], [13, 42], [14, 43], [15, 44], [16, 45], [17, 46], [30, 47], [30, 48], [31, 49], [47, 50], [47, 51], [48, 52], [51, 53], [51, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 0], [20, 2], [21, 7], [22, 8], [23, 10], [24, 11], [25, 12], [26, 13], [27, 14], [28, 17], [29, 1], [30, 2], [31, 2], [32, 20], [33, 30], [34, 3], [35, 6], [36, 7], [37, 8], [38, 9], [39, 10], [40, 11], [41, 12], [42, 13], [43, 14], [44, 15], [45, 16], [46, 17], [47, 30], [48, 30], [49, 31], [50, 47], [51, 47], [52, 48], [53, 51], [54, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "popInput", "code": "    * @see #sourceType\n    * @see #externalEntity\n    * @see #readBuffer\n    * @see #readBufferPos\n    * @see #readBufferLength\n    * @see #line\n    * @see #encoding\n    */\n  void popInput ()\n    throws java.lang.Exception\n  {\n    Object input[];\n\n\n    switch (sourceType) {\n\n    case INPUT_EXTERNAL:\n      dataBufferFlush();\n      if (handler != null && externalEntity != null) {\n\thandler.endExternalEntity(externalEntity.getURL().toString());\n      }\n      break;\n    case INPUT_STREAM:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    case INPUT_READER:\n      dataBufferFlush();\n      if (baseURI != null) {\n\tif (handler != null) {\n\t  handler.endExternalEntity(baseURI);\n\t}\n      }\n      break;\n    }\n\n\t\t\t\t// Throw an EOFException if there\n\t\t\t\t// is nothing else to pop.\n    if (inputStack.isEmpty()) {\n      throw new EOFException();\n    } else {\n      String s;\n      input = (Object[])inputStack.pop();\n      s = (String)entityStack.pop();\n    }\n\n    sourceType = ((Integer)input[0]).intValue();\n    externalEntity = (URLConnection)input[1];\n    readBuffer = (char[])input[2];\n    readBufferPos = ((Integer)input[3]).intValue();", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "VAR_DECL", "THROW_RAISE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [1, 17], [1, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [1, 25], [1, 26], [18, 27], [20, 28], [2, 29], [22, 30], [2, 31], [24, 32], [2, 33], [20, 34], [28, 35], [22, 36], [30, 37], [32, 38], [32, 39], [4, 40], [5, 41], [6, 42], [7, 43], [8, 44], [9, 45], [10, 46], [11, 47], [12, 48], [13, 49], [14, 50], [15, 51], [25, 52], [26, 53], [34, 54], [36, 55], [24, 56], [38, 57], [39, 58], [54, 59], [55, 60], [56, 61], [34, 62], [36, 63], [61, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 1], [18, 1], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 1], [26, 1], [27, 18], [28, 20], [29, 2], [30, 22], [31, 2], [32, 24], [33, 2], [34, 20], [35, 28], [36, 22], [37, 30], [38, 32], [39, 32], [40, 4], [41, 5], [42, 6], [43, 7], [44, 8], [45, 9], [46, 10], [47, 11], [48, 12], [49, 13], [50, 14], [51, 15], [52, 25], [53, 26], [54, 34], [55, 36], [56, 24], [57, 38], [58, 39], [59, 54], [60, 55], [61, 56], [62, 34], [63, 36], [64, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "tryRead", "code": "    * on success, but will be put back on failure.  Do not attempt to\n    * read the character again if the method succeeds.\n    * @param delim The character that should appear next.  For a\n    *              insensitive match, you must supply this in upper-case.\n    * @return true if the character was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(String)\n    */\n  boolean tryRead (char delim)\n    throws java.lang.Exception\n  {\n    char c;\n\n\t\t\t\t// Read the character\n    c = readCh();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [5, 8], [6, 9], [1, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 5], [9, 6], [10, 1], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "tryRead", "code": "    * array whenever possible (probably the majority of cases).\n    * <p><b>NOTE:</b> This method currently has a hard-coded limit\n    * of 100 characters for the delimiter.\n    * @param delim The string that should appear next.\n    * @return true if the string was successfully read, or false if\n    *         it was not.\n    * @see #tryRead(char)\n    */\n  boolean tryRead (String delim)\n    throws java.lang.Exception\n    {\n    char ch[] = delim.toCharArray();\n    char c;\n\n    // Compare the input, character-\n    // by character.\n    \n    for (int i = 0; i < ch.length; i++)\n      {\n      c=readCh();\n      if (c!=ch[i])", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [8, 10], [2, 11], [2, 12], [8, 13], [8, 14], [11, 15], [13, 16], [14, 17], [8, 18], [17, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 8], [11, 2], [12, 2], [13, 8], [14, 8], [15, 11], [16, 13], [17, 14], [18, 8], [19, 17], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "tryWhitespace", "code": "\n  /**\n    * Return true if we can read some whitespace.\n    * <p>This is simply a convenience method.\n    * <p>This method will push back a character rather than an\n    * array whenever possible (probably the majority of cases).\n    * @return true if whitespace was found.\n    */\n  boolean tryWhitespace ()\n    throws java.lang.Exception\n  {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "ASSIGN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 9], [6, 10], [1, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 4], [8, 5], [9, 1], [10, 6], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "parseUntil", "code": "    * Read all data until we find the specified string.\n    * <p>This is especially useful for scanning marked sections.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter\n    * @see #tryRead(String, boolean)\n    * @see #readCh\n    */\n  void parseUntil (String delim)\n    throws java.lang.Exception\n  {\n    char c;\n    int startLine = line;\n", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "LOOP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [5, 8], [8, 9], [8, 10], [6, 11], [6, 12], [10, 13], [10, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [8, 5], [9, 8], [10, 8], [11, 6], [12, 6], [13, 10], [14, 10], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "skipUntil", "code": "    * Skip all data until we find the specified string.\n    * <p>This is especially useful for scanning comments.\n    * <p>This is a a little inefficient right now, since it calls tryRead()\n    * for every character.\n    * @param delim The string delimiter", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "read8bitEncodingDeclaration", "code": "    * When this method is called, we know that the declaration is\n    * present (or appears to be).  We also know that the entity is\n    * in some sort of ASCII-derived 8-bit encoding.\n    * The idea of this is to let us read what the 8-bit encoding is\n    * before we've committed to converting any more of the file; the\n    * XML or encoding declaration must be in 7-bit ASCII, so we're\n    * safe as long as we don't go past it.\n    */\n  void read8bitEncodingDeclaration ()\n    throws java.lang.Exception\n  {\n    int ch;\n    readBufferPos = readBufferLength = 0;\n\n    while (true) {\n      ch = is.read();\n      readBuffer[readBufferLength++] = (char)ch;\n      switch (ch) {\n      case (int)'>':", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "IF", "SWITCH", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [4, 7], [5, 8], [1, 9], [1, 10], [7, 11], [6, 12], [6, 13], [6, 14], [10, 15], [5, 16], [6, 17], [6, 18], [16, 19], [16, 20], [16, 21], [17, 22], [17, 23], [17, 24], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 4], [8, 5], [9, 1], [10, 1], [11, 7], [12, 6], [13, 6], [14, 6], [15, 10], [16, 5], [17, 6], [18, 6], [19, 16], [20, 16], [21, 16], [22, 17], [23, 17], [24, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "readDataChunk", "code": "    * @see #encoding\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #filterCR\n    * @see #copyUtf8ReadBuffer\n    * @see #copyIso8859_1ReadBuffer\n    * @see #copyUcs_2ReadBuffer\n    * @see #copyUcs_4ReadBuffer\n    */\n  void readDataChunk ()\n    throws java.lang.Exception\n    {\n    int count, i, j;\n\n    // See if we have any overflow.\n    if (readBufferOverflow > -1)\n      {\n      readBuffer[0] = (char)readBufferOverflow;\n      readBufferOverflow = -1;\n      readBufferPos = 1;\n      sawCR = true;\n      }\n    else\n      {\n      readBufferPos = 0;\n      sawCR = false;\n      }\n\n    // Special situation -- we're taking\n    // input from a character stream.\n    if (sourceType == INPUT_READER)\n      {\n      count = reader.read(readBuffer, readBufferPos, READ_BUFFER_MAX-1);\n      if (count < 0)\n        {readBufferLength = -1;}\n      else\n        {\n        readBufferLength = readBufferPos+count;\n        filterCR();\n        sawCR = false;\n        }\n      return;\n      }\n\n    // Read as many bytes as possible\n    // into the read buffer.\n    count = is.read(rawReadBuffer, 0, READ_BUFFER_MAX);\n\n    // Dispatch to an encoding-specific\n    // reader method to populate the\n    // readBuffer.\n    switch (encoding)\n      {\n      case ENCODING_UTF_8:\n      copyUtf8ReadBuffer(count);\n      break;\n      \n      case ENCODING_ISO_8859_1:\n      copyIso8859_1ReadBuffer(count);\n      break;\n      \n      case ENCODING_UCS_2_12:\n      copyUcs2ReadBuffer(count, 8, 0);\n      break;\n      \n      case ENCODING_UCS_2_21:\n      copyUcs2ReadBuffer(count, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_1234:\n      copyUcs4ReadBuffer(count, 24, 16, 8, 0);\n      break;\n      \n      case ENCODING_UCS_4_4321:\n      copyUcs4ReadBuffer(count, 0, 8, 16, 24);\n      break;\n      \n      case ENCODING_UCS_4_2143:\n      copyUcs4ReadBuffer(count, 16, 24, 0, 8);\n      break;\n      \n      case ENCODING_UCS_4_3412:\n      copyUcs4ReadBuffer(count, 8, 0, 24, 16);\n      break;\n      }\n\n    // Filter out all carriage returns\n    // if we've seen any.", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "IF", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [8, 20], [3, 21], [3, 22], [10, 23], [1, 24], [1, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [20, 34], [22, 35], [3, 36], [4, 37], [4, 38], [4, 39], [4, 40], [4, 41], [4, 42], [24, 43], [26, 44], [26, 45], [26, 46], [26, 47], [27, 48], [27, 49], [27, 50], [27, 51], [28, 52], [28, 53], [28, 54], [28, 55], [29, 56], [29, 57], [29, 58], [29, 59], [30, 60], [30, 61], [31, 62], [31, 63], [35, 64], [36, 65], [37, 66], [38, 67], [39, 68], [40, 69], [41, 70], [22, 71], [22, 72], [22, 73], [22, 74], [65, 75], [71, 76], [73, 77], [74, 78], [75, 79], [42, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 8], [21, 3], [22, 3], [23, 10], [24, 1], [25, 1], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 20], [35, 22], [36, 3], [37, 4], [38, 4], [39, 4], [40, 4], [41, 4], [42, 4], [43, 24], [44, 26], [45, 26], [46, 26], [47, 26], [48, 27], [49, 27], [50, 27], [51, 27], [52, 28], [53, 28], [54, 28], [55, 28], [56, 29], [57, 29], [58, 29], [59, 29], [60, 30], [61, 30], [62, 31], [63, 31], [64, 35], [65, 36], [66, 37], [67, 38], [68, 39], [69, 40], [70, 41], [71, 22], [72, 22], [73, 22], [74, 22], [75, 65], [76, 71], [77, 73], [78, 74], [79, 75], [80, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "filterCR", "code": "\n\n  /**\n    * Filter carriage returns in the read buffer.\n    * <p>CRLF becomes LF; CR becomes LF.\n    * @see #readDataChunk\n    * @see #readBuffer\n    * @see #readBufferOverflow\n    */\n  void filterCR ()\n    {\n    int i, j;\n    \n    readBufferOverflow = -1;\n    \n    loop: for (i = 0, j = 0; j < readBufferLength; i++, j++)\n      {\n      switch (readBuffer[j])\n        {\n        case '\\r':\n        if (j == readBufferLength - 1)\n          {\n          readBufferOverflow = '\\r';\n          readBufferLength--;\n          break loop;\n          }\n        else if (readBuffer[j+1] == '\\n')\n          {j++;}\n        readBuffer[i] = '\\n';", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [1, 8], [5, 9], [6, 10], [7, 11], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [15, 19], [15, 20], [18, 21], [19, 22], [15, 23], [20, 24], [22, 25], [15, 26], [24, 27], [26, 28], [22, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 1], [9, 5], [10, 6], [11, 7], [12, 8], [13, 8], [14, 8], [15, 8], [16, 8], [17, 8], [18, 8], [19, 15], [20, 15], [21, 18], [22, 19], [23, 15], [24, 20], [25, 22], [26, 15], [27, 24], [28, 26], [29, 22], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "copyUtf8ReadBuffer", "code": "    * readBuffer.\n    * <p>The tricky part of this is dealing with UTF-8 multi-byte \n    * sequences, but it doesn't seem to slow things down too much.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    * @see #getNextUtf8Byte\n    */\n  void copyUtf8ReadBuffer (int count)\n    throws java.lang.Exception\n  {\n    int i = 0;\n    int j = readBufferPos;\n    int b1;\n    boolean isSurrogate = false;\n    while (i < count) {\n      b1 = rawReadBuffer[i++];\n      isSurrogate = false;\n\n\t\t\t\t// Determine whether we are dealing\n\t\t\t\t// with a one-, two-, three-, or four-\n\t\t\t\t// byte sequence.\n      if ((b1 & 0x80) == 0) {\n\t// 1-byte sequence: 000000000xxxxxxx = 0xxxxxxx\n\treadBuffer[j++] = (char)b1;\n      } else if ((b1 & 0xe0) == 0xc0) {\n\t// 2-byte sequence: 00000yyyyyxxxxxx = 110yyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x1f) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf0) == 0xe0) {\n\t// 3-byte sequence: zzzzyyyyyyxxxxxx = 1110zzzz 10yyyyyy 10xxxxxx\n\treadBuffer[j++] =\n\t  (char)(((b1 & 0x0f) << 12) |\n\t\t (getNextUtf8Byte(i++, count) << 6) |\n\t\t getNextUtf8Byte(i++, count));\n      } else if ((b1 & 0xf8) == 0xf0) {\n\t// 4-byte sequence: 11101110wwwwzzzzyy + 110111yyyyxxxxxx\n\t//     = 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx\n\t// (uuuuu = wwww + 1)\n\tisSurrogate = true;\n\tint b2 = getNextUtf8Byte(i++, count);\n\tint b3 = getNextUtf8Byte(i++, count);\n\tint b4 = getNextUtf8Byte(i++, count);\n\treadBuffer[j++] =\n\t  (char)(0xd800 |\n\t\t ((((b1 & 0x07) << 2) | ((b2 & 0x30) >> 4) - 1) << 6) |\n\t\t ((b2 & 0x0f) << 2) |\n\t\t ((b3 & 0x30) >> 4));\n\treadBuffer[j++] =\n\t  (char)(0xdc |\n\t\t ((b3 & 0x0f) << 6) |\n\t\t b4);\n\t\t\t\t// TODO: test that surrogate value is legal.\n      } else {", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [9, 13], [10, 14], [10, 15], [1, 16], [1, 17], [13, 18], [14, 19], [14, 20], [15, 21], [15, 22], [16, 23], [9, 24], [19, 25], [19, 26], [20, 27], [20, 28], [10, 29], [22, 30], [24, 31], [13, 32], [25, 33], [26, 34], [26, 35], [14, 36], [28, 37], [32, 38], [25, 39], [25, 40], [25, 41], [33, 42], [33, 43], [19, 44], [35, 45], [25, 46], [25, 47], [25, 48], [25, 49], [43, 50], [36, 51], [46, 52], [39, 53], [40, 54], [41, 55], [49, 56], [44, 57], [51, 58], [51, 59], [47, 60], [48, 61], [57, 62], [57, 63], [59, 64], [59, 65], [60, 66], [61, 67], [61, 68], [63, 69], [63, 70], [65, 71], [66, 72], [66, 73], [67, 74], [67, 75], [68, 76], [68, 77], [69, 78], [69, 79], [70, 80], [70, 81], [72, 82], [72, 83], [75, 84], [76, 85], [76, 86], [77, 87], [77, 88], [81, 89], [83, 90], [86, 91], [87, 92], [87, 93], [93, 94], [93, 95], [94, 96], [94, 97], [95, 98], [95, 99], [97, 100], [97, 101], [99, 102], [101, 103], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 9], [14, 10], [15, 10], [16, 1], [17, 1], [18, 13], [19, 14], [20, 14], [21, 15], [22, 15], [23, 16], [24, 9], [25, 19], [26, 19], [27, 20], [28, 20], [29, 10], [30, 22], [31, 24], [32, 13], [33, 25], [34, 26], [35, 26], [36, 14], [37, 28], [38, 32], [39, 25], [40, 25], [41, 25], [42, 33], [43, 33], [44, 19], [45, 35], [46, 25], [47, 25], [48, 25], [49, 25], [50, 43], [51, 36], [52, 46], [53, 39], [54, 40], [55, 41], [56, 49], [57, 44], [58, 51], [59, 51], [60, 47], [61, 48], [62, 57], [63, 57], [64, 59], [65, 59], [66, 60], [67, 61], [68, 61], [69, 63], [70, 63], [71, 65], [72, 66], [73, 66], [74, 67], [75, 67], [76, 68], [77, 68], [78, 69], [79, 69], [80, 70], [81, 70], [82, 72], [83, 72], [84, 75], [85, 76], [86, 76], [87, 77], [88, 77], [89, 81], [90, 83], [91, 86], [92, 87], [93, 87], [94, 93], [95, 93], [96, 94], [97, 94], [98, 95], [99, 95], [100, 97], [101, 97], [102, 99], [103, 101], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103]]}, {"function_name": "getNextUtf8Byte", "code": "    * Return the next byte value in a UTF-8 sequence.\n    * If it is not possible to get a byte from the current\n    * entity, throw an exception.\n    * @param pos The current position in the rawReadBuffer.\n    * @param count The number of bytes in the rawReadBuffer\n    * @return The significant six bits of a non-initial byte in\n    *         a UTF-8 sequence.\n    * @exception EOFException If the sequence is incomplete.\n    */\n  int getNextUtf8Byte (int pos, int count)\n    throws java.lang.Exception\n  {\n    int val;\n\n\t\t\t\t// Take a character from the buffer\n\t\t\t\t// or from the actual input stream.\n    if (pos < count) {\n      val = rawReadBuffer[pos];\n    } else {\n      val = is.read();\n      if (val == -1) {\n\tencodingError(\"unfinished multi-byte UTF-8 sequence at EOF\", -1, pos);\n      }\n    }\n", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [7, 10], [8, 11], [8, 12], [3, 13], [2, 14], [12, 15], [13, 16], [3, 17], [3, 18], [14, 19], [14, 20], [16, 21], [17, 22], [19, 23], [13, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 7], [11, 8], [12, 8], [13, 3], [14, 2], [15, 12], [16, 13], [17, 3], [18, 3], [19, 14], [20, 14], [21, 16], [22, 17], [23, 19], [24, 13], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "copyIso8859_1ReadBuffer", "code": "    * <p>When readDataChunk() calls this method, the raw bytes are in \n    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * <p>This is a direct conversion, with no tricks.\n    * @param count The number of bytes to convert.\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyIso8859_1ReadBuffer (int count)", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [8, 10], [1, 11], [10, 12], [8, 13], [11, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 8], [11, 1], [12, 10], [13, 8], [14, 11], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "copyUcs2ReadBuffer", "code": "    * rawReadBuffer, and the final characters will appear in \n    * readBuffer.\n    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs2ReadBuffer (int count, int shift1, int shift2)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n\n    if (count > 0 && (count % 2) != 0) {\n      encodingError(\"odd number of bytes in UCS-2 encoding\", -1, count);\n    }", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [2, 10], [1, 11], [8, 12], [10, 13], [10, 14], [11, 15], [1, 16], [1, 17], [2, 18], [13, 19], [13, 20], [14, 21], [15, 22], [18, 23], [18, 24], [20, 25], [11, 26], [16, 27], [26, 28], [15, 29], [27, 30], [27, 31], [29, 32], [30, 33], [31, 34], [33, 35], [34, 36], [33, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 2], [11, 1], [12, 8], [13, 10], [14, 10], [15, 11], [16, 1], [17, 1], [18, 2], [19, 13], [20, 13], [21, 14], [22, 15], [23, 18], [24, 18], [25, 20], [26, 11], [27, 16], [28, 26], [29, 15], [30, 27], [31, 27], [32, 29], [33, 30], [34, 31], [35, 33], [36, 34], [37, 33], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "copyUcs4ReadBuffer", "code": "    * @param count The number of bytes to convert.\n    * @param shift1 The number of bits to shift byte 1.\n    * @param shift2 The number of bits to shift byte 2\n    * @param shift3 The number of bits to shift byte 2\n    * @param shift4 The number of bits to shift byte 2\n    * @see #readDataChunk\n    * @see #rawReadBuffer\n    * @see #readBuffer\n    */\n  void copyUcs4ReadBuffer (int count, int shift1, int shift2,\n\t\t\t   int shift3, int shift4)\n    throws java.lang.Exception\n  {\n    int j = readBufferPos;\n    int value;\n\n    if (count > 0 && (count % 4) != 0) {\n      encodingError(\"number of bytes in UCS-4 encoding not divisible by 4\",\n\t\t    -1, count);\n    }\n    for (int i = 0; i < count; i+=4) {\n      value = (((rawReadBuffer[i] & 0xff) << shift1) |\n\t       ((rawReadBuffer[i+1] & 0xff) << shift2) |\n\t       ((rawReadBuffer[i+2] & 0xff) << shift3) |\n\t       ((rawReadBuffer[i+3] & 0xff) << shift4));\n      if (value < 0x0000ffff) {\n\treadBuffer[j++] = (char)value;\n\tif (value == (int)'\\r') {\n\t  sawCR = true;\n\t}", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [2, 13], [1, 14], [11, 15], [13, 16], [13, 17], [14, 18], [14, 19], [1, 20], [1, 21], [2, 22], [16, 23], [16, 24], [17, 25], [18, 26], [14, 27], [19, 28], [20, 29], [22, 30], [22, 31], [24, 32], [26, 33], [27, 34], [14, 35], [29, 36], [29, 37], [18, 38], [18, 39], [18, 40], [36, 41], [37, 42], [37, 43], [38, 44], [27, 45], [34, 46], [41, 47], [42, 48], [43, 49], [43, 50], [39, 51], [40, 52], [45, 53], [48, 54], [49, 55], [50, 56], [51, 57], [51, 58], [52, 59], [52, 60], [41, 61], [55, 62], [56, 63], [57, 64], [59, 65], [59, 66], [61, 67], [48, 68], [66, 69], [68, 70], [55, 71], [71, 72], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 2], [14, 1], [15, 11], [16, 13], [17, 13], [18, 14], [19, 14], [20, 1], [21, 1], [22, 2], [23, 16], [24, 16], [25, 17], [26, 18], [27, 14], [28, 19], [29, 20], [30, 22], [31, 22], [32, 24], [33, 26], [34, 27], [35, 14], [36, 29], [37, 29], [38, 18], [39, 18], [40, 18], [41, 36], [42, 37], [43, 37], [44, 38], [45, 27], [46, 34], [47, 41], [48, 42], [49, 43], [50, 43], [51, 39], [52, 40], [53, 45], [54, 48], [55, 49], [56, 50], [57, 51], [58, 51], [59, 52], [60, 52], [61, 41], [62, 55], [63, 56], [64, 57], [65, 59], [66, 59], [67, 61], [68, 48], [69, 66], [70, 68], [71, 55], [72, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72]]}, {"function_name": "encodingError", "code": "      }\n    }\n    readBufferLength = j;\n  }\n\n\n  /**\n    * Report a character encoding error.\n    */\n  void encodingError (String message, int value, int offset)\n    throws java.lang.Exception\n  {\n    String uri;\n\n    if (value >= 0) {", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [7, 10], [7, 11], [8, 12], [9, 13], [1, 14], [1, 15], [2, 16], [15, 17], [16, 18], [17, 19], [18, 20], [18, 21], [21, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 7], [11, 7], [12, 8], [13, 9], [14, 1], [15, 1], [16, 2], [17, 15], [18, 16], [19, 17], [20, 18], [21, 18], [22, 21], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "initializeVariables", "code": "\n\n\n  //////////////////////////////////////////////////////////////////////\n  // Local Variables.\n  //////////////////////////////////////////////////////////////////////\n\n  /**\n    * Re-initialize the variables for each parse.\n    */\n  void initializeVariables ()\n  {\n\t\t\t\t// No errors; first line\n    errorCount = 0;\n    line = 1;\n    column = 0;\n\n\t\t\t\t// Set up the buffers for data and names\n    dataBufferPos = 0;\n    dataBuffer = new char[DATA_BUFFER_INITIAL];\n    nameBufferPos = 0;\n    nameBuffer = new char[NAME_BUFFER_INITIAL];\n\n\t\t\t\t// Set up the DTD hash tables\n    elementInfo = new Hashtable();\n    entityInfo = new Hashtable();\n    notationInfo = new Hashtable();\n\n\t\t\t\t// Set up the variables for the current\n\t\t\t\t// element context.\n    currentElement = null;\n    currentElementContent = CONTENT_UNDECLARED;\n\n\t\t\t\t// Set up the input variables\n    sourceType = INPUT_NONE;\n    inputStack = new Stack();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [3, 23], [6, 24], [7, 25], [8, 26], [9, 27], [12, 28], [13, 29], [14, 30], [15, 31], [17, 32], [19, 33], [20, 34], [21, 35], [22, 36], [5, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 3], [24, 6], [25, 7], [26, 8], [27, 9], [28, 12], [29, 13], [30, 14], [31, 15], [32, 17], [33, 19], [34, 20], [35, 21], [36, 22], [37, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "cleanupVariables", "code": "    context = CONTEXT_NONE;\n\n    symbolTable = new Object[SYMBOL_TABLE_LENGTH];\n  }\n\n\n  /**\n    * Clean up after the parse to allow some garbage collection.\n    * Leave around anything that might be useful for queries.\n    */\n  void cleanupVariables ()\n  {\n    errorCount = -1;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [3, 14], [6, 15], [7, 16], [8, 17], [9, 18], [10, 19], [11, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 3], [15, 6], [16, 7], [17, 8], [18, 9], [19, 10], [20, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "XmlParser", "code": "    */", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.6-3028", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/builder/ExpressionClause.java", "language": "java", "name": "org.apache.camel.builder.ExpressionClause", "code": "public class ExpressionClause<T> extends ExpressionType {\n    private T result;\n    private String language;\n\n    public ExpressionClause(T result) {\n        this.result = result;\n    }\n\n    public static <T extends ExpressionNode> ExpressionClause<T> createAndSetExpression(T result) {\n        ExpressionClause<T> clause = new ExpressionClause<T>(result);\n        result.setExpression(clause);\n        return clause;\n    }\n\n\n\n    /**\n     * Specify an {@link Expression} instance\n     */\n    public T expression(Expression expression) {\n        setExpressionValue(expression);\n        return result;\n    }\n\n    /**\n     * Specify the constant expression value\n     */\n    public T constant(Object value) {\n        return expression(ExpressionBuilder.constantExpression(value));\n    }\n\n    /**\n     * An expression of the exchange\n     */\n    public T exchange() {\n        return expression(ExpressionBuilder.exchangeExpression());\n    }\n\n    /**\n     * An expression of an inbound message\n     */\n    public T inMessage() {\n        return expression(ExpressionBuilder.inMessageExpression());\n    }\n\n    /**\n     * An expression of an inbound message\n     */\n    public T outMessage() {\n        return expression(ExpressionBuilder.outMessageExpression());\n    }\n\n    /**\n     * An expression of an inbound message body\n     */\n    public T body() {\n        return expression(ExpressionBuilder.bodyExpression());\n    }\n\n    /**\n     * An expression of an inbound message body converted to the expected type\n     */\n    public T body(Class expectedType) {\n        return expression(ExpressionBuilder.bodyExpression(expectedType));\n    }\n\n    /**\n     * An expression of an outbound message body\n     */\n    public T outBody() {\n        return expression(ExpressionBuilder.outBodyExpression());\n    }\n\n    /**\n     * An expression of an outbound message body converted to the expected type\n     */\n    public T outBody(Class expectedType) {\n        return expression(ExpressionBuilder.outBodyExpression(expectedType));\n    }\n\n    /**\n     * An expression of an inbound message header of the given name\n     */\n    public T header(String name) {\n        return expression(ExpressionBuilder.headerExpression(name));\n    }\n\n    /**\n     * An expression of the inbound headers\n     */\n    public T headers() {\n        return expression(ExpressionBuilder.headersExpression());\n    }\n\n    /**\n     * An expression of an outbound message header of the given name\n     */\n    public T outHeader(String name) {\n        return expression(ExpressionBuilder.outHeaderExpression(name));\n    }\n\n    /**\n     * An expression of the outbound headers\n     */\n    public T outHeaders() {\n        return expression(ExpressionBuilder.outHeadersExpression());\n    }\n\n    /**\n     * An expression of an exchange property of the given name\n     */\n    public T property(String name) {\n        return expression(ExpressionBuilder.propertyExpression(name));\n    }\n\n    /**\n     * An expression of the exchange properties\n     */\n    public T properties() {\n        return expression(ExpressionBuilder.propertiesExpression());\n    }\n\n\n    /**\n     * Evaluates an expression using the\n     * which basically means the bean is invoked to determine the expression value.\n     *\n     * @param bean the name of the bean looked up the registry\n     * @return the builder to continue processing the DSL\n     */\n    public T method(String bean) {\n        MethodCallExpression expression = new MethodCallExpression(bean);\n        setExpressionType(expression);\n        return result;\n    }\n\n    /**\n     * Evaluates an expression using the\n     * which basically means the bean is invoked to determine the expression value.\n     *\n     * @param bean   the name of the bean looked up the registry\n     * @param method the name of the method to invoke on the bean\n     * @return the builder to continue processing the DSL\n     */\n    public T method(String bean, String method) {\n        MethodCallExpression expression = new MethodCallExpression(bean, method);\n        setExpressionType(expression);\n        return result;\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     * @deprecated use language(<tt>\"beanshell\"</tt>, text). Will be removed in Camel 2.0.\n     */\n    public T beanShell(String text) {\n        return language(\"beanshell\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T el(String text) {\n        return language(\"el\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T groovy(String text) {\n        return language(\"groovy\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T javaScript(String text) {\n        return language(\"js\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T jxpath(String text) {\n        return language(\"jxpath\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T ognl(String text) {\n        return language(\"ognl\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T php(String text) {\n        return language(\"php\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T python(String text) {\n        return language(\"python\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T ruby(String text) {\n        return language(\"ruby\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T sql(String text) {\n        return language(\"sql\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T simple(String text) {\n        return language(\"simple\", text);\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T xpath(String text) {\n        return language(\"xpath\", text);\n    }\n\n    /**\n     * with the specified result type\n     *\n     * @param text       the expression to be evaluated\n     * @param resultType the return type expected by the expressiopn\n     * @return the builder to continue processing the DSL\n     */\n    public T xpath(String text, Class resultType) {\n        XPathExpression expression = new XPathExpression(text);\n        expression.setResultType(resultType);\n        setExpressionType(expression);\n        return result;\n    }\n\n    /**\n     * with the specified result type and set of namespace prefixes and URIs\n     *\n     * @param text       the expression to be evaluated\n     * @param resultType the return type expected by the expression\n     * @param namespaces the namespace prefix and URIs to use\n     * @return the builder to continue processing the DSL\n     */\n    public T xpath(String text, Class resultType, Namespaces namespaces) {\n        return xpath(text, resultType, namespaces.getNamespaces());\n    }\n\n    /**\n     * with the specified result type and set of namespace prefixes and URIs\n     *\n     * @param text       the expression to be evaluated\n     * @param resultType the return type expected by the expression\n     * @param namespaces the namespace prefix and URIs to use\n     * @return the builder to continue processing the DSL\n     */\n    public T xpath(String text, Class resultType, Map<String, String> namespaces) {\n        XPathExpression expression = new XPathExpression(text);\n        expression.setResultType(resultType);\n        expression.setNamespaces(namespaces);\n        setExpressionType(expression);\n        return result;\n    }\n\n    /**\n     * with the specified set of namespace prefixes and URIs\n     *\n     * @param text       the expression to be evaluated\n     * @param namespaces the namespace prefix and URIs to use\n     * @return the builder to continue processing the DSL\n     */\n    public T xpath(String text, Namespaces namespaces) {\n        return xpath(text, namespaces.getNamespaces());\n    }\n\n    /**\n     * with the specified set of namespace prefixes and URIs\n     *\n     * @param text       the expression to be evaluated\n     * @param namespaces the namespace prefix and URIs to use\n     * @return the builder to continue processing the DSL\n     */\n    public T xpath(String text, Map<String, String> namespaces) {\n        XPathExpression expression = new XPathExpression(text);\n        expression.setNamespaces(namespaces);\n        setExpressionType(expression);\n        return result;\n    }\n\n    /**\n     *\n     * @param text the expression to be evaluated\n     * @return the builder to continue processing the DSL\n     */\n    public T xquery(String text) {\n        return language(\"xquery\", text);\n    }\n\n    /**\n     * with the specified result type\n     *\n     * @param text       the expression to be evaluated\n     * @param resultType the return type expected by the expressiopn\n     * @return the builder to continue processing the DSL\n     */\n    public T xquery(String text, Class resultType) {\n        XQueryExpression expression = new XQueryExpression(text);\n        expression.setResultType(resultType);\n        setExpressionType(expression);\n        return result;\n    }\n\n    /**\n     * with the specified result type and set of namespace prefixes and URIs\n     *\n     * @param text       the expression to be evaluated\n     * @param resultType the return type expected by the expression\n     * @param namespaces the namespace prefix and URIs to use\n     * @return the builder to continue processing the DSL\n     */\n    public T xquery(String text, Class resultType, Namespaces namespaces) {\n        return xquery(text, resultType, namespaces.getNamespaces());\n    }\n\n    /**\n     * with the specified result type and set of namespace prefixes and URIs\n     *\n     * @param text       the expression to be evaluated\n     * @param resultType the return type expected by the expression\n     * @param namespaces the namespace prefix and URIs to use\n     * @return the builder to continue processing the DSL\n     */\n    public T xquery(String text, Class resultType, Map<String, String> namespaces) {\n        XQueryExpression expression = new XQueryExpression(text);\n        expression.setResultType(resultType);\n        expression.setNamespaces(namespaces);\n        setExpressionType(expression);\n        return result;\n    }\n\n    /**\n     * with the specified set of namespace prefixes and URIs\n     *\n     * @param text       the expression to be evaluated\n     * @param namespaces the namespace prefix and URIs to use\n     * @return the builder to continue processing the DSL\n     */\n    public T xquery(String text, Namespaces namespaces) {\n        return xquery(text, namespaces.getNamespaces());\n    }\n\n    /**\n     * with the specified set of namespace prefixes and URIs\n     *\n     * @param text       the expression to be evaluated\n     * @param namespaces the namespace prefix and URIs to use\n     * @return the builder to continue processing the DSL\n     */\n    public T xquery(String text, Map<String, String> namespaces) {\n        XQueryExpression expression = new XQueryExpression(text);\n        expression.setNamespaces(namespaces);\n        setExpressionType(expression);\n        return result;\n    }\n\n    /**\n     * Evaluates a given language name with the expression text\n     *\n     * @param language   the name of the language\n     * @param expression the expression in the given language\n     * @return the builder to continue processing the DSL\n     */\n    public T language(String language, String expression) {\n        setLanguage(language);\n        setExpression(expression);\n        return result;\n    }\n\n    public String getLanguage() {\n        return language;\n    }\n\n    public void setLanguage(String language) {\n        this.language = language;", "functions": [{"function_name": "createAndSetExpression", "code": "    public static <T extends ExpressionNode> ExpressionClause<T> createAndSetExpression(T result) {\n        ExpressionClause<T> clause = new ExpressionClause<T>(result);\n        result.setExpression(clause);\n        return clause;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "expression", "code": "    public T expression(Expression expression) {\n        setExpressionValue(expression);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "constant", "code": "    public T constant(Object value) {\n        return expression(ExpressionBuilder.constantExpression(value));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "exchange", "code": "    public T exchange() {\n        return expression(ExpressionBuilder.exchangeExpression());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inMessage", "code": "    public T inMessage() {\n        return expression(ExpressionBuilder.inMessageExpression());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "outMessage", "code": "    public T outMessage() {\n        return expression(ExpressionBuilder.outMessageExpression());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "body", "code": "    public T body() {\n        return expression(ExpressionBuilder.bodyExpression());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "body", "code": "    public T body(Class expectedType) {\n        return expression(ExpressionBuilder.bodyExpression(expectedType));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "outBody", "code": "    public T outBody() {\n        return expression(ExpressionBuilder.outBodyExpression());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "outBody", "code": "    public T outBody(Class expectedType) {\n        return expression(ExpressionBuilder.outBodyExpression(expectedType));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "header", "code": "    public T header(String name) {\n        return expression(ExpressionBuilder.headerExpression(name));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "headers", "code": "    public T headers() {\n        return expression(ExpressionBuilder.headersExpression());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "outHeader", "code": "    public T outHeader(String name) {\n        return expression(ExpressionBuilder.outHeaderExpression(name));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "outHeaders", "code": "    public T outHeaders() {\n        return expression(ExpressionBuilder.outHeadersExpression());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "property", "code": "    public T property(String name) {\n        return expression(ExpressionBuilder.propertyExpression(name));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "properties", "code": "    public T properties() {\n        return expression(ExpressionBuilder.propertiesExpression());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "method", "code": "    public T method(String bean) {\n        MethodCallExpression expression = new MethodCallExpression(bean);\n        setExpressionType(expression);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "method", "code": "    public T method(String bean, String method) {\n        MethodCallExpression expression = new MethodCallExpression(bean, method);\n        setExpressionType(expression);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "beanShell", "code": "    public T beanShell(String text) {\n        return language(\"beanshell\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "el", "code": "    public T el(String text) {\n        return language(\"el\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "groovy", "code": "    public T groovy(String text) {\n        return language(\"groovy\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "javaScript", "code": "    public T javaScript(String text) {\n        return language(\"js\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "jxpath", "code": "    public T jxpath(String text) {\n        return language(\"jxpath\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ognl", "code": "    public T ognl(String text) {\n        return language(\"ognl\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "php", "code": "    public T php(String text) {\n        return language(\"php\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "python", "code": "    public T python(String text) {\n        return language(\"python\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ruby", "code": "    public T ruby(String text) {\n        return language(\"ruby\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "sql", "code": "    public T sql(String text) {\n        return language(\"sql\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "simple", "code": "    public T simple(String text) {\n        return language(\"simple\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "xpath", "code": "    public T xpath(String text) {\n        return language(\"xpath\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "xpath", "code": "    public T xpath(String text, Class resultType) {\n        XPathExpression expression = new XPathExpression(text);\n        expression.setResultType(resultType);\n        setExpressionType(expression);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "xpath", "code": "    public T xpath(String text, Class resultType, Namespaces namespaces) {\n        return xpath(text, resultType, namespaces.getNamespaces());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "xpath", "code": "    public T xpath(String text, Class resultType, Map<String, String> namespaces) {\n        XPathExpression expression = new XPathExpression(text);\n        expression.setResultType(resultType);\n        expression.setNamespaces(namespaces);\n        setExpressionType(expression);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "xpath", "code": "    public T xpath(String text, Namespaces namespaces) {\n        return xpath(text, namespaces.getNamespaces());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "xpath", "code": "    public T xpath(String text, Map<String, String> namespaces) {\n        XPathExpression expression = new XPathExpression(text);\n        expression.setNamespaces(namespaces);\n        setExpressionType(expression);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "xquery", "code": "    public T xquery(String text) {\n        return language(\"xquery\", text);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "xquery", "code": "    public T xquery(String text, Class resultType) {\n        XQueryExpression expression = new XQueryExpression(text);\n        expression.setResultType(resultType);\n        setExpressionType(expression);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "xquery", "code": "    public T xquery(String text, Class resultType, Namespaces namespaces) {\n        return xquery(text, resultType, namespaces.getNamespaces());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "xquery", "code": "    public T xquery(String text, Class resultType, Map<String, String> namespaces) {\n        XQueryExpression expression = new XQueryExpression(text);\n        expression.setResultType(resultType);\n        expression.setNamespaces(namespaces);\n        setExpressionType(expression);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "xquery", "code": "    public T xquery(String text, Namespaces namespaces) {\n        return xquery(text, namespaces.getNamespaces());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "xquery", "code": "    public T xquery(String text, Map<String, String> namespaces) {\n        XQueryExpression expression = new XQueryExpression(text);\n        expression.setNamespaces(namespaces);\n        setExpressionType(expression);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "language", "code": "    public T language(String language, String expression) {\n        setLanguage(language);\n        setExpression(expression);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return language;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLanguage", "code": "    public void setLanguage(String language) {\n        this.language = language;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ExpressionClause", "code": "    public ExpressionClause(T result) {\n        this.result = result;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.7-8093", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/processor/XSLTAttributeDef.java", "language": "java", "name": "org.apache.xalan.processor.XSLTAttributeDef", "code": "public class XSLTAttributeDef\n{\n   static final int FATAL = 0;\n   static final int ERROR = 1;\n   static final int WARNING = 2;\n   \n   \n  /**\n   * Construct an instance of XSLTAttributeDef.\n   *\n   * @param namespace The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param type One of T_CDATA, T_URL, T_AVT, T_PATTERN, T_EXPR, T_CHAR,\n   * T_NUMBER, T_YESNO, T_QNAME, T_QNAMES, T_ENUM, T_SIMPLEPATTERNLIST,\n   * T_NMTOKEN, T_STRINGLIST, T_PREFIX_URLLIST, T_ENUM_OR_PQNAME, T_NCNAME.\n   * @param required true if this is attribute is required by the XSLT specification.\n   * @param supportsAVT true if this attribute supports AVT's.\n   * @param errorType the type of error to issue if validation fails.  One of FATAL, ERROR, WARNING. \n   */\n  XSLTAttributeDef(String namespace, String name, int type, boolean required, boolean supportsAVT, int errorType)\n  {\n    this.m_namespace = namespace;\n    this.m_name = name;\n    this.m_type = type;\n    this.m_required = required;\n    this.m_supportsAVT = supportsAVT;\n    this.m_errorType = errorType;\n  }\n\n  /**\n   * Construct an instance of XSLTAttributeDef.\n   *\n   * @param namespace The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param type One of T_CDATA, T_URL, T_AVT, T_PATTERN, T_EXPR,\n   * T_CHAR, T_NUMBER, T_YESNO, T_QNAME, T_QNAMES, T_ENUM,\n   * T_SIMPLEPATTERNLIST, T_NMTOKEN, T_STRINGLIST, T_PREFIX_URLLIST, \n   * T_ENUM_OR_PQNAME, T_NCNAME.\n   * @param supportsAVT true if this attribute supports AVT's. \n   * @param errorType the type of error to issue if validation fails.  One of FATAL, ERROR, WARNING. \n   * @param defaultVal The default value for this attribute.\n   */\n  XSLTAttributeDef(String namespace, String name, int type, boolean supportsAVT, int errorType, String defaultVal)\n  {\n\n    this.m_namespace = namespace;\n    this.m_name = name;\n    this.m_type = type;\n    this.m_required = false;\n    this.m_supportsAVT = supportsAVT;  \n    this.m_errorType = errorType;      \n    this.m_default = defaultVal;\n   }\n\n  /**\n   * Construct an instance of XSLTAttributeDef that uses two\n   * enumerated values.\n   *\n   * @param namespace The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param required true if this attribute is required by the XSLT specification.\n   * @param supportsAVT true if this attribute supports AVT's.  \n   * @param prefixedQNameValAllowed If true, the type is T_ENUM_OR_PQNAME       \n   * @param errorType the type of error to issue if validation fails.  One of FATAL, ERROR, WARNING. \n   * @param k1 The XSLT name of the enumerated value.\n   * @param v1 An integer representation of k1.\n   * @param k2 The XSLT name of the enumerated value.\n   * @param v2 An integer representation of k2.\n    */\n  XSLTAttributeDef(String namespace, String name, boolean required, boolean supportsAVT, \n                    boolean prefixedQNameValAllowed, int errorType, String k1, int v1, String k2, int v2)\n  {\n\n    this.m_namespace = namespace;\n    this.m_name = name;\n\tthis.m_type = prefixedQNameValAllowed ? this.T_ENUM_OR_PQNAME : this.T_ENUM;    \n    this.m_required = required;\n    this.m_supportsAVT = supportsAVT;    \n    this.m_errorType = errorType;    \n    m_enums = new StringToIntTable(2);\n\n    m_enums.put(k1, v1);\n    m_enums.put(k2, v2);\n  }\n\n  /**\n   * Construct an instance of XSLTAttributeDef that uses three\n   * enumerated values.\n   *\n   * @param namespace The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param required true if this attribute is required by the XSLT specification.\n   * @param supportsAVT true if this attribute supports AVT's.\n   * @param prefixedQNameValAllowed If true, the type is T_ENUM_OR_PQNAME\n   * @param errorType the type of error to issue if validation fails.  One of FATAL, ERROR, WARNING.    * \n   * @param k1 The XSLT name of the enumerated value.\n   * @param v1 An integer representation of k1.\n   * @param k2 The XSLT name of the enumerated value.\n   * @param v2 An integer representation of k2.\n   * @param k3 The XSLT name of the enumerated value.\n   * @param v3 An integer representation of k3.\n   */\n  XSLTAttributeDef(String namespace, String name, boolean required, boolean supportsAVT,\n                    boolean prefixedQNameValAllowed, int errorType, String k1, int v1, String k2, int v2, String k3, int v3)\n  {\n\n    this.m_namespace = namespace;\n    this.m_name = name;\n\tthis.m_type = prefixedQNameValAllowed ? this.T_ENUM_OR_PQNAME : this.T_ENUM;    \n    this.m_required = required;\n    this.m_supportsAVT = supportsAVT; \n    this.m_errorType = errorType;      \n    m_enums = new StringToIntTable(3);\n\n    m_enums.put(k1, v1);\n    m_enums.put(k2, v2);\n    m_enums.put(k3, v3);\n  }\n\n  /**\n   * Construct an instance of XSLTAttributeDef that uses three\n   * enumerated values.\n   *\n   * @param namespace The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param required true if this attribute is required by the XSLT specification.\n   * @param supportsAVT true if this attribute supports AVT's.\n   * @param prefixedQNameValAllowed If true, the type is T_ENUM_OR_PQNAME\n   * @param errorType the type of error to issue if validation fails.  One of FATAL, ERROR, WARNING.    * @param k1 The XSLT name of the enumerated value.\n   * @param v1 An integer representation of k1.\n   * @param k2 The XSLT name of the enumerated value.\n   * @param v2 An integer representation of k2.\n   * @param k3 The XSLT name of the enumerated value.\n   * @param v3 An integer representation of k3.\n   * @param k4 The XSLT name of the enumerated value.\n   * @param v4 An integer representation of k4.\n   */\n  XSLTAttributeDef(String namespace, String name, boolean required, boolean supportsAVT,\n                   boolean prefixedQNameValAllowed, int errorType, String k1, int v1, String k2, int v2, \n                   String k3, int v3, String k4, int v4)\n  {\n\n    this.m_namespace = namespace;\n    this.m_name = name;\n\tthis.m_type = prefixedQNameValAllowed ? this.T_ENUM_OR_PQNAME : this.T_ENUM;    \n    this.m_required = required;\n    this.m_supportsAVT = supportsAVT;      \n    this.m_errorType = errorType; \n    m_enums = new StringToIntTable(4);\n\n    m_enums.put(k1, v1);\n    m_enums.put(k2, v2);\n    m_enums.put(k3, v3);\n    m_enums.put(k4, v4);\n  }\n\n  /** Type values that represent XSLT attribute types. */\n  static final int T_CDATA = 1,\n\n  T_URL = 2,\n\n\n  T_PATTERN = 4,\n\n  T_EXPR = 5,\n\n  T_CHAR = 6,\n\n  T_NUMBER = 7,\n\n  T_YESNO = 8,\n\n  T_QNAME = 9,\n\n  T_QNAMES = 10,\n\n  T_ENUM = 11,\n\n  T_SIMPLEPATTERNLIST = 12,\n\n  T_NMTOKEN = 13,\n\n  T_STRINGLIST = 14,\n\n  T_PREFIX_URLLIST = 15,\n  \n  T_ENUM_OR_PQNAME = 16,\n\n  T_NCNAME = 17,\n  \n  T_AVT_QNAME = 18,\n  \n  T_QNAMES_RESOLVE_NULL = 19,\n  \n  T_PREFIXLIST = 20;\n\n  /** Representation for an attribute in a foreign namespace. */\n  static final XSLTAttributeDef m_foreignAttr = new XSLTAttributeDef(\"*\", \"*\",\n                                            XSLTAttributeDef.T_CDATA,false, false, WARNING);\n\n  /** Method name that objects may implement if they wish to have forein attributes set. */\n  static final String S_FOREIGNATTR_SETTER = \"setForeignAttr\";\n\n  /**\n   * The allowed namespace for this element.\n   */\n  private String m_namespace;\n\n  /**\n   * Get the allowed namespace for this attribute.\n   *\n   * @return The allowed namespace for this attribute, which may be null, or may be \"*\".\n   */\n  String getNamespace()\n  {\n    return m_namespace;\n  }\n\n  /**\n   * The name of this element.\n   */\n  private String m_name;\n\n  /**\n   * Get the name of this attribute.\n   *\n   * @return non-null reference to the name of this attribute, which may be \"*\".\n   */\n  String getName()\n  {\n    return m_name;\n  }\n\n  /**\n   * The type of this attribute value.\n   */\n  private int m_type;\n\n  /**\n   * Get the type of this attribute value.\n   *\n   * @return One of T_CDATA, T_URL, T_AVT, T_PATTERN, T_EXPR, T_CHAR,\n   * T_NUMBER, T_YESNO, T_QNAME, T_QNAMES, T_ENUM, T_SIMPLEPATTERNLIST,\n   * T_NMTOKEN, T_STRINGLIST, T_PREFIX_URLLIST, T_ENUM_OR_PQNAME.\n   */\n  int getType()\n  {\n    return m_type;\n  }\n\n  /**\n   * If this element is of type T_ENUM, this will contain\n   * a map from the attribute string to the Xalan integer\n   * value.\n   */\n  private StringToIntTable m_enums;\n\n  /**\n   * If this element is of type T_ENUM, this will return\n   * a map from the attribute string to the Xalan integer\n   * value.\n   * @param key The XSLT attribute value.\n   *\n   * @return The integer representation of the enumerated value for this attribute.\n   * @throws Throws NullPointerException if m_enums is null.\n   */\n  private int getEnum(String key)\n  {\n    return m_enums.get(key);\n  }\n\n /**\n   * If this element is of type T_ENUM, this will return\n   * an array of strings - the values in the enumeration\n   *\n   * @return An array of the enumerated values permitted for this attribute.\n   *\n   * @throws Throws NullPointerException if m_enums is null.\n   */\n  private String[] getEnumNames()\n  {\n    return m_enums.keys();\n  }\n\n  /**\n   * The default value for this attribute.\n   */\n  private String m_default;\n\n  /**\n   * Get the default value for this attribute.\n   *\n   * @return The default value for this attribute, or null.\n   */\n  String getDefault()\n  {\n    return m_default;\n  }\n\n  /**\n   * Set the default value for this attribute.\n   *\n   * @param def String representation of the default value for this attribute.\n   */\n  void setDefault(String def)\n  {\n    m_default = def;\n  }\n\n  /**\n   * If true, this is a required attribute.\n   */\n  private boolean m_required;\n\n  /**\n   * Get whether or not this is a required attribute.\n   *\n   * @return true if this is a required attribute.\n   */\n  boolean getRequired()\n  {\n    return m_required;\n  }\n\n  /**\n   * If true, this is attribute supports AVT's.\n   */\n  private boolean m_supportsAVT;\n\n  /**\n   * Get whether or not this attribute supports AVT's.\n   *\n   * @return true if this attribute supports AVT's.\n   */\n  boolean getSupportsAVT()\n  {\n    return m_supportsAVT;\n  }\n  \n  int m_errorType = this.WARNING;\n  \n  /**\n   * Get the type of error message to use if the attribute value is invalid.\n   *\n   * @return one of XSLAttributeDef.FATAL, XSLAttributeDef.ERROR, XSLAttributeDef.WARNING\n   */\n  int getErrorType()\n  {\n    return m_errorType;\n  }\n  /**\n   * String that should represent the setter method which which\n   * may be used on objects to set a value that represents this attribute  \n   */\n  String m_setterString = null;\n\n  /**\n   * Return a string that should represent the setter method.\n   * The setter method name will be created algorithmically the\n   * first time this method is accessed, and then cached for return\n   * by subsequent invocations of this method.\n   *\n   * @return String that should represent the setter method which which\n   * may be used on objects to set a value that represents this attribute,\n   * of null if no setter method should be called.\n   */\n  public String getSetterMethodName()\n  {\n\n    if (null == m_setterString)\n    {\n      if (m_foreignAttr == this)\n      {\n        return S_FOREIGNATTR_SETTER;\n      }\n      else if (m_name.equals(\"*\"))\n      {\n        m_setterString = \"addLiteralResultAttribute\";\n\n        return m_setterString;\n      }\n\n      StringBuffer outBuf = new StringBuffer();\n\n      outBuf.append(\"set\");\n\n      if ((m_namespace != null)\n              && m_namespace.equals(Constants.S_XMLNAMESPACEURI))\n      {\n        outBuf.append(\"Xml\");\n      }\n\n      int n = m_name.length();\n\n      for (int i = 0; i < n; i++)\n      {\n        char c = m_name.charAt(i);\n\n        if ('-' == c)\n        {\n          i++;\n\n          c = m_name.charAt(i);\n          c = Character.toUpperCase(c);\n        }\n        else if (0 == i)\n        {\n          c = Character.toUpperCase(c);\n        }\n\n        outBuf.append(c);\n      }\n\n      m_setterString = outBuf.toString();\n    }\n\n    return m_setterString;\n  }\n\n  /**\n   * Process an attribute string of type T_AVT into\n   * a AVT value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value Should be an Attribute Value Template string.\n   *\n   * @return An AVT object that may be used to evaluate the Attribute Value Template.\n   *\n   * @throws org.xml.sax.SAXException which will wrap a\n   * {@link javax.xml.transform.TransformerException}, if there is a syntax error\n   * in the attribute value template string.\n   */\n  AVT processAVT(\n          StylesheetHandler handler, String uri, String name, String rawName, String value,\n          ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\n      return avt;\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * Process an attribute string of type T_CDATA into\n   * a String value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value non-null string reference.\n   *\n   * @return The value argument.\n   * \n   * @throws org.xml.sax.SAXException.\n   */\n  Object processCDATA(StylesheetHandler handler, String uri, String name,\n                      String rawName, String value, ElemTemplateElement owner)\n                      throws org.xml.sax.SAXException\n  {\n  \tif (getSupportsAVT()) {\n\t    try\n\t    {\n\t      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\t      return avt;\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }  \t\t\n  \t} else {  \t  \t\n\t    return value;\n  \t}\n  }\n\n  /**\n   * Process an attribute string of type T_CHAR into\n   * a Character value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value Should be a string with a length of 1.\n   *\n   * @return Character object.\n   *\n   * @throws org.xml.sax.SAXException if the string is not a length of 1.\n   */\n  Object processCHAR(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\tif (getSupportsAVT()) {\n\t    try\n\t    {\n\t      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\t\n\t\t  if ((avt.isSimple()) && (value.length() != 1)) {\n\t\t  \thandleError(handler, XSLTErrorResources.INVALID_TCHAR, new Object[] {name, value},null);\n            return null;\n\t\t  }\t\n\t      return avt;\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }\n\t} else {    \n\t    if (value.length() != 1)\n\t    {\n            handleError(handler, XSLTErrorResources.INVALID_TCHAR, new Object[] {name, value},null);\n            return null;\n\t    }\n\n\t    return new Character(value.charAt(0));\n\t}\n  }\n\n  /**\n   * Process an attribute string of type T_ENUM into a int value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value non-null string that represents an enumerated value that is\n   * valid for this element.\n   * @param owner\n   *\n   * @return An Integer representation of the enumerated value if this attribute does not support\n   *         AVT.  Otherwise, and AVT is returned.\n   */\n  Object processENUM(StylesheetHandler handler, String uri, String name,\n                     String rawName, String value, ElemTemplateElement owner)\n                     throws org.xml.sax.SAXException\n  {\n\n\tAVT avt = null;\n\tif (getSupportsAVT()) {\n\t    try\n\t    {\n\t      avt = new AVT(handler, uri, name, rawName, value, owner);\n\t      \n\t      if (!avt.isSimple()) return avt;\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }\n\t}    \n\t\n    int retVal = this.getEnum(value);\n    \n\tif (retVal == StringToIntTable.INVALID_KEY) \n    {\n       StringBuffer enumNamesList = getListOfEnums();\n       handleError(handler, XSLTErrorResources.INVALID_ENUM,new Object[]{name, value, enumNamesList.toString() },null);\n       return null;\n    }\n\n\tif (getSupportsAVT()) return avt;\n\telse return new Integer(retVal);\t\n\n  }\n\n  /**\n   * Process an attribute string of that is either an enumerated value or a qname-but-not-ncname.\n   * Returns an AVT, if this attribute support AVT; otherwise returns int or qname.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value non-null string that represents an enumerated value that is\n   * valid for this element.\n   * @param owner\n   *\n   * @return AVT if attribute supports AVT. An Integer representation of the enumerated value if\n   *         attribute does not support AVT and an enumerated value was used.  Otherwise a qname\n   *         is returned.\n   */\n  Object processENUM_OR_PQNAME(StylesheetHandler handler, String uri, String name,\n                     String rawName, String value, ElemTemplateElement owner)\n                     throws org.xml.sax.SAXException\n  {\n\n\tObject objToReturn = null;\n\t\n\tif (getSupportsAVT()) {\n\t    try\n\t    {\n\t      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\t      if (!avt.isSimple()) return avt;\n\t      else objToReturn = avt;\n\t    }  \n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }\n\t}    \n\t\n  \tint key = this.getEnum(value);\n    \n    if (key != StringToIntTable.INVALID_KEY) \n    {\n        if (objToReturn == null) objToReturn = new Integer(key);\n    }\n\n    else\n    {\n        try \n        {\n\t\t\tQName qname = new QName(value, handler, true);\n            if (objToReturn == null) objToReturn = qname;\t\n\t        \n\t\t\tif (qname.getPrefix() == null) {\n\t           StringBuffer enumNamesList = getListOfEnums();\n\n \t           enumNamesList.append(\" <qname-but-not-ncname>\");\n               handleError(handler,XSLTErrorResources.INVALID_ENUM,new Object[]{name, value, enumNamesList.toString() },null); \n               return null;\n        \n\t        }            \n        }\n        catch (IllegalArgumentException ie) \n        {\n           StringBuffer enumNamesList = getListOfEnums();\n           enumNamesList.append(\" <qname-but-not-ncname>\");\n           \n           handleError(handler,XSLTErrorResources.INVALID_ENUM,new Object[]{name, value, enumNamesList.toString() },ie); \n           return null;\n\n        }\n        catch (RuntimeException re)\n        {\n           StringBuffer enumNamesList = getListOfEnums();\n           enumNamesList.append(\" <qname-but-not-ncname>\");\n\n           handleError(handler,XSLTErrorResources.INVALID_ENUM,new Object[]{name, value, enumNamesList.toString() },re); \n           return null;\n        }    \n  \t}\n  \t\n  \treturn objToReturn;\n  }\n\n  /**\n   * Process an attribute string of type T_EXPR into\n   * an XPath value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value An XSLT expression string.\n   *\n   * @return an XPath object that may be used for evaluation.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the expression\n   * string contains a syntax error.\n   */\n  Object processEXPR(\n          StylesheetHandler handler, String uri, String name, String rawName, String value,\n          ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      XPath expr = handler.createXPath(value, owner);\n\n      return expr;\n    }\n    catch (TransformerException te)\n    {\n      org.xml.sax.SAXException se = new org.xml.sax.SAXException(te);\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * Process an attribute string of type T_NMTOKEN into\n   * a String value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A NMTOKEN string.\n   *\n   * @return the value argument or an AVT if this attribute supports AVTs.\n   * \n   * @throws org.xml.sax.SAXException if the value is not a valid nmtoken\n   */\n  Object processNMTOKEN(StylesheetHandler handler, String uri, String name,\n                        String rawName, String value, ElemTemplateElement owner)\n             throws org.xml.sax.SAXException\n  {\n  \t\n  \tif (getSupportsAVT()) {\n\t    try\n\t    {\n\t      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\t\n\t\t  if ((avt.isSimple()) && (!XML11Char.isXML11ValidNmtoken(value))) {\n            handleError(handler,XSLTErrorResources.INVALID_NMTOKEN, new Object[] {name,value},null);\n            return null;\n\t\t  }\t\n\t      return avt;\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }  \t\t\n  \t} else {\n  \t\tif (!XML11Char.isXML11ValidNmtoken(value)) {\n            handleError(handler,XSLTErrorResources.INVALID_NMTOKEN, new Object[] {name,value},null);\n            return null;\n  \t\t}\n  \t}\t  \t\t\t\n    return value;\n  }\n\n  /**\n   * Process an attribute string of type T_PATTERN into\n   * an XPath match pattern value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A match pattern string.\n   *\n   * @return An XPath pattern that may be used to evaluate the XPath.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the match pattern\n   * string contains a syntax error.\n   */\n  Object processPATTERN(\n          StylesheetHandler handler, String uri, String name, String rawName, String value,\n          ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      XPath pattern = handler.createMatchPatternXPath(value, owner);\n\n      return pattern;\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * Process an attribute string of type T_NUMBER into\n   * a double value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A string that can be parsed into a double value.\n   * @param number\n   *\n   * @return A Double object.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException}\n   * if the string does not contain a parsable number.\n   */\n  Object processNUMBER(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n\n\tif (getSupportsAVT()) \n\t{\n\t\tDouble val;\n\t\tAVT avt = null;\n\t    try\n\t    {\n\t      avt = new AVT(handler, uri, name, rawName, value, owner);\n\t      \n\t      if (avt.isSimple()) \n\t      {\n\t      \tval = Double.valueOf(value);\n\t      }\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    } \n\t    catch (NumberFormatException nfe)\n\t    {\n\t     \thandleError(handler,XSLTErrorResources.INVALID_NUMBER, new Object[] {name, value}, nfe);\n            return null;\n\t    }\n\t    return avt;\n\t\n\t} \n\telse\n    {\n\t    try\n\t    {\n\t      return Double.valueOf(value);\n\t    }\n\t    catch (NumberFormatException nfe)\n\t    {\n            handleError(handler,XSLTErrorResources.INVALID_NUMBER, new Object[] {name, value}, nfe);\n            return null;\n\t    }\n    }    \n  }\n\n  /**\n   * Process an attribute string of type T_QNAME into a QName value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A string that represents a potentially prefix qualified name.\n   * @param owner\n   *\n   * @return A QName object if this attribute does not support AVT's.  Otherwise, an AVT\n   *         is returned.\n   *\n   * @throws org.xml.sax.SAXException if the string contains a prefix that can not be\n   * resolved, or the string contains syntax that is invalid for a qualified name.\n   */\n  Object processQNAME(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n     try \n        {\t\n   \t      QName qname = new QName(value, handler, true);\n          return qname;\n        }\n        catch (IllegalArgumentException ie)\n        {\n            handleError(handler,XSLTErrorResources.INVALID_QNAME, new Object[] {name, value},ie);\n            return null;\n        }\n        catch (RuntimeException re) {\n            handleError(handler,XSLTErrorResources.INVALID_QNAME, new Object[] {name, value},re);\n            return null;\n        }\n  \t}\n \n\n  /**\n   * Process an attribute string of type T_QNAME into a QName value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A string that represents a potentially prefix qualified name.\n   * @param owner\n   *\n   * @return An AVT is returned.\n   *\n   * @throws org.xml.sax.SAXException if the string contains a prefix that can not be\n   * resolved, or the string contains syntax that is invalid for a qualified name.\n   */\n  Object processAVT_QNAME(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n       AVT avt = null;\n       try\n       {\n          avt = new AVT(handler, uri, name, rawName, value, owner);\n    \n          if (avt.isSimple())\n          {\n             int indexOfNSSep = value.indexOf(':');\n\n             if (indexOfNSSep >= 0) \n             {   \n                  String prefix = value.substring(0, indexOfNSSep);\n                  if (!XML11Char.isXML11ValidNCName(prefix))\n                  {\n                     handleError(handler,XSLTErrorResources.INVALID_QNAME,new Object[]{name,value },null);\n                     return null;\n                  }\n             }\n                 \n             String localName =  (indexOfNSSep < 0)\n                 ? value : value.substring(indexOfNSSep + 1); \n             \n             if ((localName == null) || (localName.length() == 0) ||\n                 (!XML11Char.isXML11ValidNCName(localName)))\n             {    \n                     handleError(handler,XSLTErrorResources.INVALID_QNAME,new Object[]{name,value },null );\n                     return null;\n             }\n          }  \n        }\n        catch (TransformerException te)\n        {\n          throw new org.xml.sax.SAXException(te);\n        } \n    \n    return avt;\n }\n\n  /**\n   * Process an attribute string of type NCName into a String\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A string that represents a potentially prefix qualified name.\n   * @param owner\n   *\n   * @return A String object if this attribute does not support AVT's.  Otherwise, an AVT\n   *         is returned.\n   *\n   * @throws org.xml.sax.SAXException if the string contains a prefix that can not be\n   * resolved, or the string contains syntax that is invalid for a NCName.\n   */\n  Object processNCNAME(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n    \n    if (getSupportsAVT()) \n    {\n        AVT avt = null;\n        try\n        {\n          avt = new AVT(handler, uri, name, rawName, value, owner);\n    \n          if ((avt.isSimple()) &&  (!XML11Char.isXML11ValidNCName(value))) \n          {\n             handleError(handler,XSLTErrorResources.INVALID_NCNAME,new Object[] {name,value},null);\n             return null;\n          }      \n          return avt;\n        }\n        catch (TransformerException te)\n        {\n          throw new org.xml.sax.SAXException(te);\n        } \n        \n    } else {\n        if (!XML11Char.isXML11ValidNCName(value)) \n        {\n            handleError(handler,XSLTErrorResources.INVALID_NCNAME,new Object[] {name,value},null);\n            return null;\n        }\n        return value;\n    }\n }\n\n  /**\n   * Process an attribute string of type T_QNAMES into a vector of QNames where\n   * the specification requires that non-prefixed elements not be placed in a\n   * namespace.  (See section 2.4 of XSLT 1.0.)\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A whitespace delimited list of qualified names.\n   *\n   * @return a Vector of QName objects.\n   *\n   * @throws org.xml.sax.SAXException if the one of the qualified name strings\n   * contains a prefix that can not be\n   * resolved, or a qualified name contains syntax that is invalid for a qualified name.\n   */\n  Vector processQNAMES(\n          StylesheetHandler handler, String uri, String name, String rawName, String value)\n            throws org.xml.sax.SAXException\n  {\n\n    StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n    int nQNames = tokenizer.countTokens();\n    Vector qnames = new Vector(nQNames);\n\n    for (int i = 0; i < nQNames; i++)\n    {\n      qnames.addElement(new QName(tokenizer.nextToken(), handler));\n    }\n\n    return qnames;\n  }\n\n /**\n   * Process an attribute string of type T_QNAMES_RESOLVE_NULL into a vector\n   * of QNames where the specification requires non-prefixed elements to be\n   * placed in the default namespace.  (See section 16 of XSLT 1.0; the\n   * <em>only</em> time that this will get called is for the\n   * <code>cdata-section-elements</code> attribute on <code>xsl:output</code>.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A whitespace delimited list of qualified names.\n   *\n   * @return a Vector of QName objects.\n   *\n   * @throws org.xml.sax.SAXException if the one of the qualified name strings\n   * contains a prefix that can not be resolved, or a qualified name contains\n   * syntax that is invalid for a qualified name.\n   */\n  final Vector processQNAMESRNU(StylesheetHandler handler, String uri,\n    String name, String rawName, String value)\n    throws org.xml.sax.SAXException\n  {\n\n    StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n    int nQNames = tokenizer.countTokens();\n    Vector qnames = new Vector(nQNames);\n\n    String defaultURI = handler.getNamespaceForPrefix(\"\");\n    for (int i = 0; i < nQNames; i++)\n    {\n      String tok = tokenizer.nextToken();\n      if (tok.indexOf(':') == -1) {\n        qnames.addElement(new QName(defaultURI,tok));\n      } else {\n        qnames.addElement(new QName(tok, handler));\n      }\n    }\n    return qnames;\n  }\n\n  /**\n   * Process an attribute string of type T_SIMPLEPATTERNLIST into\n   * a vector of XPath match patterns.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A whitespace delimited list of simple match patterns.\n   *\n   * @return A Vector of XPath objects.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if one of the match pattern\n   * strings contains a syntax error.\n   */\n  Vector processSIMPLEPATTERNLIST(\n          StylesheetHandler handler, String uri, String name, String rawName, String value,\n          ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n      int nPatterns = tokenizer.countTokens();\n      Vector patterns = new Vector(nPatterns);\n\n      for (int i = 0; i < nPatterns; i++)\n      {\n        XPath pattern =\n          handler.createMatchPatternXPath(tokenizer.nextToken(), owner);\n\n        patterns.addElement(pattern);\n      }\n\n      return patterns;\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * Process an attribute string of type T_STRINGLIST into\n   * a vector of XPath match patterns.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value a whitespace delimited list of string values.\n   *\n   * @return A StringVector of the tokenized strings.\n   */\n  StringVector processSTRINGLIST(StylesheetHandler handler, String uri,\n                                 String name, String rawName, String value)\n  {\n\n    StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n    int nStrings = tokenizer.countTokens();\n    StringVector strings = new StringVector(nStrings);\n\n    for (int i = 0; i < nStrings; i++)\n    {\n      strings.addElement(tokenizer.nextToken());\n    }\n\n    return strings;\n  }\n\n  /**\n   * Process an attribute string of type T_URLLIST into\n   * a vector of prefixes that may be resolved to URLs.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A list of whitespace delimited prefixes.\n   *\n   * @return A vector of strings that may be resolved to URLs.\n   *\n   * @throws org.xml.sax.SAXException if one of the prefixes can not be resolved.\n   */\n  StringVector processPREFIX_URLLIST(\n          StylesheetHandler handler, String uri, String name, String rawName, String value)\n            throws org.xml.sax.SAXException\n  {\n\n    StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n    int nStrings = tokenizer.countTokens();\n    StringVector strings = new StringVector(nStrings);\n\n    for (int i = 0; i < nStrings; i++)\n    {\n      String prefix = tokenizer.nextToken();\n      String url = handler.getNamespaceForPrefix(prefix);\n\n      if (url != null)\n        strings.addElement(url);\n      else\n        throw new org.xml.sax.SAXException(XSLMessages.createMessage(XSLTErrorResources.ER_CANT_RESOLVE_NSPREFIX, new Object[] {prefix}));\n    \n    }\n\n    return strings;\n  }\n\n  /**\n    * Process an attribute string of type T_PREFIXLIST into\n    * a vector of prefixes that may be resolved to URLs.\n    *\n    * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n    * @param uri The Namespace URI, or an empty string.\n    * @param name The local name (without prefix), or empty string if not namespace processing.\n    * @param rawName The qualified name (with prefix).\n    * @param value A list of whitespace delimited prefixes.\n    *\n    * @return A vector of strings that may be resolved to URLs.\n    *\n    * @throws org.xml.sax.SAXException if one of the prefixes can not be resolved.\n    */\n   StringVector processPREFIX_LIST(\n           StylesheetHandler handler, String uri, String name, \n           String rawName, String value) throws org.xml.sax.SAXException\n   {\n    \n     StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n     int nStrings = tokenizer.countTokens();\n     StringVector strings = new StringVector(nStrings);\n\n     for (int i = 0; i < nStrings; i++)\n     {\n       String prefix = tokenizer.nextToken();\n       String url = handler.getNamespaceForPrefix(prefix);\n       if (prefix.equals(Constants.ATTRVAL_DEFAULT_PREFIX) || url != null)\n         strings.addElement(prefix);\n       else\n         throw new org.xml.sax.SAXException(\n              XSLMessages.createMessage(\n                   XSLTErrorResources.ER_CANT_RESOLVE_NSPREFIX, \n                   new Object[] {prefix}));\n    \n     }\n\n     return strings;\n   }\n\n\n  /**\n   * Process an attribute string of type T_URL into\n   * a URL value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value non-null string that conforms to the URL syntax.\n   *\n   * @return The non-absolutized URL argument, in other words, the value argument.  If this \n   *         attribute supports AVT, an AVT is returned.\n   *\n   * @throws org.xml.sax.SAXException if the URL does not conform to the URL syntax.\n   */\n  Object processURL(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    if (getSupportsAVT()) {\n\t    try\n\t    {\n\t      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\t\n\t      return avt;\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }  \t\t\n     } else {\n     \t\n\t    return value;\n    }\n  }\n\n  /**\n   * Process an attribute string of type T_YESNO into\n   * a Boolean value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value A string that should be \"yes\" or \"no\".\n   *\n   * @return Boolean object representation of the value.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  private Boolean processYESNO(\n          StylesheetHandler handler, String uri, String name, String rawName, String value)\n            throws org.xml.sax.SAXException\n  {\n\n    if (!(value.equals(\"yes\") || value.equals(\"no\")))\n    {\n      handleError(handler, XSLTErrorResources.INVALID_BOOLEAN, new Object[] {name,value}, null);\n      return null;\n   }\n \n     return new Boolean(value.equals(\"yes\") ? true : false);\n  }\n\n  /**\n   * Process an attribute value.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param uri The Namespace URI, or an empty string.\n   * @param name The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param value The unprocessed string value of the attribute.\n   *\n   * @return The processed Object representation of the attribute.\n   *\n   * @throws org.xml.sax.SAXException if the attribute value can not be processed.\n   */\n  Object processValue(\n          StylesheetHandler handler, String uri, String name, String rawName, String value,\n          ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    int type = getType();\n    Object processedValue = null;\n\n    switch (type)\n    {\n    case T_AVT :\n      processedValue = processAVT(handler, uri, name, rawName, value, owner);\n      break;\n    case T_CDATA :\n      processedValue = processCDATA(handler, uri, name, rawName, value, owner);\n      break;\n    case T_CHAR :\n      processedValue = processCHAR(handler, uri, name, rawName, value, owner);\n      break;\n    case T_ENUM :\n      processedValue = processENUM(handler, uri, name, rawName, value, owner);\n      break;\n    case T_EXPR :\n      processedValue = processEXPR(handler, uri, name, rawName, value, owner);\n      break;\n    case T_NMTOKEN :\n      processedValue = processNMTOKEN(handler, uri, name, rawName, value, owner);\n      break;\n    case T_PATTERN :\n      processedValue = processPATTERN(handler, uri, name, rawName, value, owner);\n      break;\n    case T_NUMBER :\n      processedValue = processNUMBER(handler, uri, name, rawName, value, owner);\n      break;\n    case T_QNAME :\n      processedValue = processQNAME(handler, uri, name, rawName, value, owner);\n      break;\n    case T_QNAMES :\n      processedValue = processQNAMES(handler, uri, name, rawName, value);\n      break;\n\tcase T_QNAMES_RESOLVE_NULL:\n      processedValue = processQNAMESRNU(handler, uri, name, rawName, value);\n      break;\n    case T_SIMPLEPATTERNLIST :\n      processedValue = processSIMPLEPATTERNLIST(handler, uri, name, rawName,\n                                                value, owner);\n      break;\n    case T_URL :\n      processedValue = processURL(handler, uri, name, rawName, value, owner);\n      break;\n    case T_YESNO :\n      processedValue = processYESNO(handler, uri, name, rawName, value);\n      break;\n    case T_STRINGLIST :\n      processedValue = processSTRINGLIST(handler, uri, name, rawName, value);\n      break;\n    case T_PREFIX_URLLIST :\n      processedValue = processPREFIX_URLLIST(handler, uri, name, rawName,\n                                             value);\n      break;\n    case T_ENUM_OR_PQNAME :\n    \tprocessedValue = processENUM_OR_PQNAME(handler, uri, name, rawName, value, owner);\n    \tbreak;\n    case T_NCNAME :\n        processedValue = processNCNAME(handler, uri, name, rawName, value, owner);\n        break;\n    case T_AVT_QNAME :\n        processedValue = processAVT_QNAME(handler, uri, name, rawName, value, owner);\n        break;\n    case T_PREFIXLIST :\n      processedValue = processPREFIX_LIST(handler, uri, name, rawName,\n                                             value);\n      break;\n\n    default :\n    }\n\n    return processedValue;\n  }\n\n  /**\n   * Set the default value of an attribute.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param elem The object on which the property will be set.\n   *\n   * @throws org.xml.sax.SAXException wraps an invocation exception if the\n   * setter method can not be invoked on the object.\n   */\n  void setDefAttrValue(StylesheetHandler handler, ElemTemplateElement elem)\n          throws org.xml.sax.SAXException\n  {\n    setAttrValue(handler, this.getNamespace(), this.getName(),\n                 this.getName(), this.getDefault(), elem);\n  }\n\n  /**\n   * Get the primative type for the class, if there\n   * is one.  If the class is a Double, for instance,\n   * this will return double.class.  If the class is not one\n   * of the 9 primative types, it will return the same\n   * class that was passed in.\n   *\n   * @param obj The object which will be resolved to a primative class object if possible.\n   *\n   * @return The most primative class representation possible for the object, never null.\n   */\n  private Class getPrimativeClass(Object obj)\n  {\n\n    if (obj instanceof XPath)\n      return XPath.class;\n\n    Class cl = obj.getClass();\n\n    if (cl == Double.class)\n    {\n      cl = double.class;\n    }\n\n    if (cl == Float.class)\n    {\n      cl = float.class;\n    }\n    else if (cl == Boolean.class)\n    {\n      cl = boolean.class;\n    }\n    else if (cl == Byte.class)\n    {\n      cl = byte.class;\n    }\n    else if (cl == Character.class)\n    {\n      cl = char.class;\n    }\n    else if (cl == Short.class)\n    {\n      cl = short.class;\n    }\n    else if (cl == Integer.class)\n    {\n      cl = int.class;\n    }\n    else if (cl == Long.class)\n    {\n      cl = long.class;\n    }\n\n    return cl;\n  }\n  \n  /**\n   * StringBuffer containing comma delimited list of valid values for ENUM type.\n   * Used to build error message.\n   */\n  private StringBuffer getListOfEnums() \n  {\n     StringBuffer enumNamesList = new StringBuffer();            \n     String [] enumValues = this.getEnumNames();\n\n     for (int i = 0; i < enumValues.length; i++)\n     {\n        if (i > 0)\n        {\n           enumNamesList.append(' ');\n        }\n        enumNamesList.append(enumValues[i]);\n    }        \n    return enumNamesList;\n  }\n\n  /**\n   * Set a value on an attribute.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param attrUri The Namespace URI of the attribute, or an empty string.\n   * @param attrLocalName The local name (without prefix), or empty string if not namespace processing.\n   * @param attrRawName The raw name of the attribute, including possible prefix.\n   * @param attrValue The attribute's value.\n   * @param elem The object that should contain a property that represents the attribute.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  boolean setAttrValue(\n          StylesheetHandler handler, String attrUri, String attrLocalName, \n          String attrRawName, String attrValue, ElemTemplateElement elem)\n            throws org.xml.sax.SAXException\n  {\n    if(attrRawName.equals(\"xmlns\") || attrRawName.startsWith(\"xmlns:\"))\n      return true;\n      \n    String setterString = getSetterMethodName();\n\n    if (null != setterString)\n    {\n      try\n      {\n        Method meth;\n        Object[] args;\n\n        if(setterString.equals(S_FOREIGNATTR_SETTER))\n        {\n          if( attrUri==null) attrUri=\"\";\n          Class sclass = attrUri.getClass();\n          Class[] argTypes = new Class[]{ sclass, sclass,\n                                      sclass, sclass };\n  \n          meth = elem.getClass().getMethod(setterString, argTypes);\n  \n          args = new Object[]{ attrUri, attrLocalName,\n                                      attrRawName, attrValue };\n        }\n        else\n        {\n          Object value = processValue(handler, attrUri, attrLocalName,\n                                      attrRawName, attrValue, elem);\n          if (null == value) return false;\n                                      \n          Class[] argTypes = new Class[]{ getPrimativeClass(value) };\n  \n          try\n          {\n            meth = elem.getClass().getMethod(setterString, argTypes);\n          }\n          catch (NoSuchMethodException nsme)\n          {\n            Class cl = ((Object) value).getClass();\n  \n            argTypes[0] = cl;\n            meth = elem.getClass().getMethod(setterString, argTypes);\n          }\n  \n          args = new Object[]{ value };\n        }\n\n        meth.invoke(elem, args);\n      }\n      catch (NoSuchMethodException nsme)\n      {\n        if (!setterString.equals(S_FOREIGNATTR_SETTER)) \n        {\n          return false;\n        }\n      }\n      catch (IllegalAccessException iae)\n      {\n        return false;\n      }\n      catch (InvocationTargetException nsme)\n      {\n        handleError(handler, XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_VALUE,\n            new Object[]{ Constants.ATTRNAME_NAME, getName()}, nsme);\n        return false;\n      }\n    }\n    \n    return true;\n  }\n  \n  private void handleError(StylesheetHandler handler, String msg, Object [] args, Exception exc) throws org.xml.sax.SAXException\n  {\n    switch (getErrorType()) \n    {\n        case (FATAL):\n        case (ERROR):\n                handler.error(msg, args, exc);          \n                break;\n        case (WARNING):\n                handler.warn(msg, args);       \n        default: break;", "functions": [{"function_name": "getNamespace", "code": "  String getNamespace()\n  {\n    return m_namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "  String getName()\n  {\n    return m_name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "  int getType()\n  {\n    return m_type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEnum", "code": "  private int getEnum(String key)\n  {\n    return m_enums.get(key);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEnumNames", "code": "  private String[] getEnumNames()\n  {\n    return m_enums.keys();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefault", "code": "  String getDefault()\n  {\n    return m_default;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefault", "code": "  void setDefault(String def)\n  {\n    m_default = def;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRequired", "code": "  boolean getRequired()\n  {\n    return m_required;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSupportsAVT", "code": "  boolean getSupportsAVT()\n  {\n    return m_supportsAVT;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getErrorType", "code": "  int getErrorType()\n  {\n    return m_errorType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSetterMethodName", "code": "  public String getSetterMethodName()\n  {\n\n    if (null == m_setterString)\n    {\n      if (m_foreignAttr == this)\n      {\n        return S_FOREIGNATTR_SETTER;\n      }\n      else if (m_name.equals(\"*\"))\n      {\n        m_setterString = \"addLiteralResultAttribute\";\n\n        return m_setterString;\n      }\n\n      StringBuffer outBuf = new StringBuffer();\n\n      outBuf.append(\"set\");\n\n      if ((m_namespace != null)\n              && m_namespace.equals(Constants.S_XMLNAMESPACEURI))\n      {\n        outBuf.append(\"Xml\");\n      }\n\n      int n = m_name.length();\n\n      for (int i = 0; i < n; i++)\n      {\n        char c = m_name.charAt(i);\n\n        if ('-' == c)\n        {\n          i++;\n\n          c = m_name.charAt(i);\n          c = Character.toUpperCase(c);\n        }\n        else if (0 == i)\n        {\n          c = Character.toUpperCase(c);\n        }\n\n        outBuf.append(c);\n      }\n\n      m_setterString = outBuf.toString();\n    }\n\n    return m_setterString;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [3, 9], [2, 10], [4, 11], [6, 12], [2, 13], [8, 14], [8, 15], [10, 16], [4, 17], [4, 18], [5, 19], [12, 20], [12, 21], [13, 22], [7, 23], [14, 24], [8, 25], [4, 26], [17, 27], [17, 28], [4, 29], [6, 30], [21, 31], [14, 32], [24, 33], [27, 34], [28, 35], [18, 36], [30, 37], [14, 38], [34, 39], [17, 40], [17, 41], [38, 42], [27, 43], [40, 44], [41, 45], [43, 46], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 3], [10, 2], [11, 4], [12, 6], [13, 2], [14, 8], [15, 8], [16, 10], [17, 4], [18, 4], [19, 5], [20, 12], [21, 12], [22, 13], [23, 7], [24, 14], [25, 8], [26, 4], [27, 17], [28, 17], [29, 4], [30, 6], [31, 21], [32, 14], [33, 24], [34, 27], [35, 28], [36, 18], [37, 30], [38, 14], [39, 34], [40, 17], [41, 17], [42, 38], [43, 27], [44, 40], [45, 41], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "processAVT", "code": "  AVT processAVT(\n          StylesheetHandler handler, String uri, String name, String rawName, String value,\n          ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\n      return avt;\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [8, 11], [11, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 8], [12, 11], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "processCDATA", "code": "  Object processCDATA(StylesheetHandler handler, String uri, String name,\n                      String rawName, String value, ElemTemplateElement owner)\n                      throws org.xml.sax.SAXException\n  {\n  \tif (getSupportsAVT()) {\n\t    try\n\t    {\n\t      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\t      return avt;\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }  \t\t\n  \t} else {  \t  \t\n\t    return value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "TRY", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [10, 11], [10, 12], [10, 13], [11, 14], [14, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 10], [12, 10], [13, 10], [14, 11], [15, 14], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "processCHAR", "code": "  Object processCHAR(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\tif (getSupportsAVT()) {\n\t    try\n\t    {\n\t      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\t\n\t\t  if ((avt.isSimple()) && (value.length() != 1)) {\n\t\t  \thandleError(handler, XSLTErrorResources.INVALID_TCHAR, new Object[] {name, value},null);\n            return null;\n\t\t  }\t\n\t      return avt;\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }\n\t} else {    \n\t    if (value.length() != 1)\n\t    {\n            handleError(handler, XSLTErrorResources.INVALID_TCHAR, new Object[] {name, value},null);\n            return null;\n\t    }\n\n\t    return new Character(value.charAt(0));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "IF", "TRY", "CALL", "BINARY_OP", "CATCH", "RETURN", "IF", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [9, 12], [10, 13], [11, 14], [11, 15], [11, 16], [11, 17], [12, 18], [10, 19], [13, 20], [13, 21], [14, 22], [16, 23], [18, 24], [19, 25], [10, 26], [22, 27], [16, 28], [23, 29], [23, 30], [17, 31], [26, 32], [28, 33], [16, 34], [29, 35], [29, 36], [34, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 9], [13, 10], [14, 11], [15, 11], [16, 11], [17, 11], [18, 12], [19, 10], [20, 13], [21, 13], [22, 14], [23, 16], [24, 18], [25, 19], [26, 10], [27, 22], [28, 16], [29, 23], [30, 23], [31, 17], [32, 26], [33, 28], [34, 16], [35, 29], [36, 29], [37, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "processENUM", "code": "  Object processENUM(StylesheetHandler handler, String uri, String name,\n                     String rawName, String value, ElemTemplateElement owner)\n                     throws org.xml.sax.SAXException\n  {\n\n\tAVT avt = null;\n\tif (getSupportsAVT()) {\n\t    try\n\t    {\n\t      avt = new AVT(handler, uri, name, rawName, value, owner);\n\t      \n\t      if (!avt.isSimple()) return avt;\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }\n\t}    \n\t\n    int retVal = this.getEnum(value);\n    \n\tif (retVal == StringToIntTable.INVALID_KEY) \n    {\n       StringBuffer enumNamesList = getListOfEnums();\n       handleError(handler, XSLTErrorResources.INVALID_ENUM,new Object[]{name, value, enumNamesList.toString() },null);\n       return null;\n    }\n\n\tif (getSupportsAVT()) return avt;\n\telse return new Integer(retVal);\t", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "VAR_DECL", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "IF", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "RETURN", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [1, 14], [2, 15], [4, 16], [12, 17], [2, 18], [2, 19], [4, 20], [5, 21], [18, 22], [2, 23], [3, 24], [20, 25], [20, 26], [23, 27], [19, 28], [25, 29], [26, 30], [26, 31], [20, 32], [29, 33], [32, 34], [23, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 1], [15, 2], [16, 4], [17, 12], [18, 2], [19, 2], [20, 4], [21, 5], [22, 18], [23, 2], [24, 3], [25, 20], [26, 20], [27, 23], [28, 19], [29, 25], [30, 26], [31, 26], [32, 20], [33, 29], [34, 32], [35, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "processENUM_OR_PQNAME", "code": "  Object processENUM_OR_PQNAME(StylesheetHandler handler, String uri, String name,\n                     String rawName, String value, ElemTemplateElement owner)\n                     throws org.xml.sax.SAXException\n  {\n\n\tObject objToReturn = null;\n\t\n\tif (getSupportsAVT()) {\n\t    try\n\t    {\n\t      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\t      if (!avt.isSimple()) return avt;\n\t      else objToReturn = avt;\n\t    }  \n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }\n\t}    \n\t\n  \tint key = this.getEnum(value);\n    \n    if (key != StringToIntTable.INVALID_KEY) \n    {\n        if (objToReturn == null) objToReturn = new Integer(key);\n    }\n\n    else\n    {\n        try \n        {\n\t\t\tQName qname = new QName(value, handler, true);\n            if (objToReturn == null) objToReturn = qname;\t\n\t        \n\t\t\tif (qname.getPrefix() == null) {\n\t           StringBuffer enumNamesList = getListOfEnums();\n\n \t           enumNamesList.append(\" <qname-but-not-ncname>\");\n               handleError(handler,XSLTErrorResources.INVALID_ENUM,new Object[]{name, value, enumNamesList.toString() },null); \n               return null;\n        \n\t        }            \n        }\n        catch (IllegalArgumentException ie) \n        {\n           StringBuffer enumNamesList = getListOfEnums();\n           enumNamesList.append(\" <qname-but-not-ncname>\");\n           \n           handleError(handler,XSLTErrorResources.INVALID_ENUM,new Object[]{name, value, enumNamesList.toString() },ie); \n           return null;\n\n        }\n        catch (RuntimeException re)\n        {\n           StringBuffer enumNamesList = getListOfEnums();\n           enumNamesList.append(\" <qname-but-not-ncname>\");\n\n           handleError(handler,XSLTErrorResources.INVALID_ENUM,new Object[]{name, value, enumNamesList.toString() },re); \n           return null;\n        }    \n  \t}\n  \t\n  \treturn objToReturn;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "TRY", "IF", "TRY", "LITERAL_ANCHOR", "CATCH", "CATCH", "IF", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CATCH", "IF", "VAR_DECL", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [4, 13], [2, 14], [2, 15], [4, 16], [5, 17], [14, 18], [14, 19], [14, 20], [14, 21], [14, 22], [15, 23], [3, 24], [16, 25], [16, 26], [16, 27], [18, 28], [18, 29], [19, 30], [19, 31], [20, 32], [21, 33], [15, 34], [23, 35], [25, 36], [26, 37], [26, 38], [28, 39], [18, 40], [18, 41], [30, 42], [19, 43], [19, 44], [20, 45], [20, 46], [32, 47], [32, 48], [21, 49], [33, 50], [22, 51], [34, 52], [36, 53], [26, 54], [27, 55], [41, 56], [29, 57], [44, 58], [31, 59], [45, 60], [20, 61], [20, 62], [51, 63], [61, 64], [62, 65], [46, 66], [40, 67], [43, 68], [61, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 4], [14, 2], [15, 2], [16, 4], [17, 5], [18, 14], [19, 14], [20, 14], [21, 14], [22, 14], [23, 15], [24, 3], [25, 16], [26, 16], [27, 16], [28, 18], [29, 18], [30, 19], [31, 19], [32, 20], [33, 21], [34, 15], [35, 23], [36, 25], [37, 26], [38, 26], [39, 28], [40, 18], [41, 18], [42, 30], [43, 19], [44, 19], [45, 20], [46, 20], [47, 32], [48, 32], [49, 21], [50, 33], [51, 22], [52, 34], [53, 36], [54, 26], [55, 27], [56, 41], [57, 29], [58, 44], [59, 31], [60, 45], [61, 20], [62, 20], [63, 51], [64, 61], [65, 62], [66, 46], [67, 40], [68, 43], [69, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "processEXPR", "code": "  Object processEXPR(\n          StylesheetHandler handler, String uri, String name, String rawName, String value,\n          ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      XPath expr = handler.createXPath(value, owner);\n\n      return expr;\n    }\n    catch (TransformerException te)\n    {\n      org.xml.sax.SAXException se = new org.xml.sax.SAXException(te);\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [8, 11], [8, 12], [11, 13], [10, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 8], [12, 8], [13, 11], [14, 10], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "processNMTOKEN", "code": "  Object processNMTOKEN(StylesheetHandler handler, String uri, String name,\n                        String rawName, String value, ElemTemplateElement owner)\n             throws org.xml.sax.SAXException\n  {\n  \t\n  \tif (getSupportsAVT()) {\n\t    try\n\t    {\n\t      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\t\n\t\t  if ((avt.isSimple()) && (!XML11Char.isXML11ValidNmtoken(value))) {\n            handleError(handler,XSLTErrorResources.INVALID_NMTOKEN, new Object[] {name,value},null);\n            return null;\n\t\t  }\t\n\t      return avt;\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }  \t\t\n  \t} else {\n  \t\tif (!XML11Char.isXML11ValidNmtoken(value)) {\n            handleError(handler,XSLTErrorResources.INVALID_NMTOKEN, new Object[] {name,value},null);\n            return null;\n  \t\t}\n  \t}\t  \t\t\t\n    return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "IF", "TRY", "CALL", "CATCH", "RETURN", "IF", "VAR_DECL", "RETURN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [2, 11], [10, 12], [11, 13], [11, 14], [11, 15], [11, 16], [10, 17], [13, 18], [15, 19], [17, 20], [10, 21], [18, 22], [15, 23], [19, 24], [19, 25], [16, 26], [21, 27], [23, 28], [15, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 2], [12, 10], [13, 11], [14, 11], [15, 11], [16, 11], [17, 10], [18, 13], [19, 15], [20, 17], [21, 10], [22, 18], [23, 15], [24, 19], [25, 19], [26, 16], [27, 21], [28, 23], [29, 15], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "processPATTERN", "code": "  Object processPATTERN(\n          StylesheetHandler handler, String uri, String name, String rawName, String value,\n          ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      XPath pattern = handler.createMatchPatternXPath(value, owner);\n\n      return pattern;\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [8, 11], [11, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 8], [12, 11], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "processNUMBER", "code": "  Object processNUMBER(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n\n\tif (getSupportsAVT()) \n\t{\n\t\tDouble val;\n\t\tAVT avt = null;\n\t    try\n\t    {\n\t      avt = new AVT(handler, uri, name, rawName, value, owner);\n\t      \n\t      if (avt.isSimple()) \n\t      {\n\t      \tval = Double.valueOf(value);\n\t      }\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    } \n\t    catch (NumberFormatException nfe)\n\t    {\n\t     \thandleError(handler,XSLTErrorResources.INVALID_NUMBER, new Object[] {name, value}, nfe);\n            return null;\n\t    }\n\t    return avt;\n\t\n\t} \n\telse\n    {\n\t    try\n\t    {\n\t      return Double.valueOf(value);\n\t    }\n\t    catch (NumberFormatException nfe)\n\t    {\n            handleError(handler,XSLTErrorResources.INVALID_NUMBER, new Object[] {name, value}, nfe);\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "TRY", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "CATCH", "RETURN", "CATCH", "CATCH", "IF", "RETURN", "CALL", "RETURN", "THROW_RAISE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [9, 14], [9, 15], [11, 16], [11, 17], [11, 18], [14, 19], [15, 20], [16, 21], [17, 22], [18, 23], [11, 24], [12, 25], [19, 26], [14, 27], [21, 28], [16, 29], [22, 30], [24, 31], [18, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 9], [15, 9], [16, 11], [17, 11], [18, 11], [19, 14], [20, 15], [21, 16], [22, 17], [23, 18], [24, 11], [25, 12], [26, 19], [27, 14], [28, 21], [29, 16], [30, 22], [31, 24], [32, 18], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "processQNAME", "code": "  Object processQNAME(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n     try \n        {\t\n   \t      QName qname = new QName(value, handler, true);\n          return qname;\n        }\n        catch (IllegalArgumentException ie)\n        {\n            handleError(handler,XSLTErrorResources.INVALID_QNAME, new Object[] {name, value},ie);\n            return null;\n        }\n        catch (RuntimeException re) {\n            handleError(handler,XSLTErrorResources.INVALID_QNAME, new Object[] {name, value},re);\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [8, 12], [9, 13], [12, 14], [8, 15], [13, 16], [9, 17], [11, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 8], [13, 9], [14, 12], [15, 8], [16, 13], [17, 9], [18, 11], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "processAVT_QNAME", "code": "  Object processAVT_QNAME(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n       AVT avt = null;\n       try\n       {\n          avt = new AVT(handler, uri, name, rawName, value, owner);\n    \n          if (avt.isSimple())\n          {\n             int indexOfNSSep = value.indexOf(':');\n\n             if (indexOfNSSep >= 0) \n             {   \n                  String prefix = value.substring(0, indexOfNSSep);\n                  if (!XML11Char.isXML11ValidNCName(prefix))\n                  {\n                     handleError(handler,XSLTErrorResources.INVALID_QNAME,new Object[]{name,value },null);\n                     return null;\n                  }\n             }\n                 \n             String localName =  (indexOfNSSep < 0)\n                 ? value : value.substring(indexOfNSSep + 1); \n             \n             if ((localName == null) || (localName.length() == 0) ||\n                 (!XML11Char.isXML11ValidNCName(localName)))\n             {    \n                     handleError(handler,XSLTErrorResources.INVALID_QNAME,new Object[]{name,value },null );\n                     return null;\n             }\n          }  \n        }\n        catch (TransformerException te)\n        {\n          throw new org.xml.sax.SAXException(te);\n        } \n    \n    return avt;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "THROW_RAISE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "COND_EXPR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [10, 12], [11, 13], [2, 14], [3, 15], [12, 16], [11, 17], [11, 18], [11, 19], [11, 20], [14, 21], [17, 22], [19, 23], [17, 24], [22, 25], [22, 26], [18, 27], [19, 28], [19, 29], [23, 30], [20, 31], [24, 32], [17, 33], [26, 34], [26, 35], [27, 36], [27, 37], [28, 38], [31, 39], [33, 40], [34, 41], [34, 42], [35, 43], [36, 44], [37, 45], [28, 46], [29, 47], [44, 48], [46, 49], [28, 50], [47, 51], [50, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 10], [13, 11], [14, 2], [15, 3], [16, 12], [17, 11], [18, 11], [19, 11], [20, 11], [21, 14], [22, 17], [23, 19], [24, 17], [25, 22], [26, 22], [27, 18], [28, 19], [29, 19], [30, 23], [31, 20], [32, 24], [33, 17], [34, 26], [35, 26], [36, 27], [37, 27], [38, 28], [39, 31], [40, 33], [41, 34], [42, 34], [43, 35], [44, 36], [45, 37], [46, 28], [47, 29], [48, 44], [49, 46], [50, 28], [51, 47], [52, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "processNCNAME", "code": "  Object processNCNAME(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n    \n    if (getSupportsAVT()) \n    {\n        AVT avt = null;\n        try\n        {\n          avt = new AVT(handler, uri, name, rawName, value, owner);\n    \n          if ((avt.isSimple()) &&  (!XML11Char.isXML11ValidNCName(value))) \n          {\n             handleError(handler,XSLTErrorResources.INVALID_NCNAME,new Object[] {name,value},null);\n             return null;\n          }      \n          return avt;\n        }\n        catch (TransformerException te)\n        {\n          throw new org.xml.sax.SAXException(te);\n        } \n        \n    } else {\n        if (!XML11Char.isXML11ValidNCName(value)) \n        {\n            handleError(handler,XSLTErrorResources.INVALID_NCNAME,new Object[] {name,value},null);\n            return null;\n        }\n        return value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "IF", "TRY", "VAR_DECL", "CALL", "CATCH", "RETURN", "IF", "RETURN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [10, 13], [11, 14], [11, 15], [11, 16], [10, 17], [14, 18], [16, 19], [11, 20], [12, 21], [17, 22], [10, 23], [18, 24], [16, 25], [19, 26], [19, 27], [20, 28], [23, 29], [25, 30], [16, 31], [31, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 10], [14, 11], [15, 11], [16, 11], [17, 10], [18, 14], [19, 16], [20, 11], [21, 12], [22, 17], [23, 10], [24, 18], [25, 16], [26, 19], [27, 19], [28, 20], [29, 23], [30, 25], [31, 16], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "processQNAMES", "code": "  Vector processQNAMES(\n          StylesheetHandler handler, String uri, String name, String rawName, String value)\n            throws org.xml.sax.SAXException\n  {\n\n    StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n    int nQNames = tokenizer.countTokens();\n    Vector qnames = new Vector(nQNames);\n\n    for (int i = 0; i < nQNames; i++)\n    {\n      qnames.addElement(new QName(tokenizer.nextToken(), handler));\n    }\n\n    return qnames;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [4, 13], [5, 14], [2, 15], [2, 16], [14, 17], [15, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 4], [14, 5], [15, 2], [16, 2], [17, 14], [18, 15], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "processQNAMESRNU", "code": "  final Vector processQNAMESRNU(StylesheetHandler handler, String uri,\n    String name, String rawName, String value)\n    throws org.xml.sax.SAXException\n  {\n\n    StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n    int nQNames = tokenizer.countTokens();\n    Vector qnames = new Vector(nQNames);\n\n    String defaultURI = handler.getNamespaceForPrefix(\"\");\n    for (int i = 0; i < nQNames; i++)\n    {\n      String tok = tokenizer.nextToken();\n      if (tok.indexOf(':') == -1) {\n        qnames.addElement(new QName(defaultURI,tok));\n      } else {\n        qnames.addElement(new QName(tok, handler));\n      }\n    }\n    return qnames;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [2, 13], [2, 14], [3, 15], [4, 16], [5, 17], [6, 18], [13, 19], [2, 20], [15, 21], [18, 22], [19, 23], [19, 24], [14, 25], [13, 26], [13, 27], [24, 28], [26, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 2], [14, 2], [15, 3], [16, 4], [17, 5], [18, 6], [19, 13], [20, 2], [21, 15], [22, 18], [23, 19], [24, 19], [25, 14], [26, 13], [27, 13], [28, 24], [29, 26], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "processSIMPLEPATTERNLIST", "code": "  Vector processSIMPLEPATTERNLIST(\n          StylesheetHandler handler, String uri, String name, String rawName, String value,\n          ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n      int nPatterns = tokenizer.countTokens();\n      Vector patterns = new Vector(nPatterns);\n\n      for (int i = 0; i < nPatterns; i++)\n      {\n        XPath pattern =\n          handler.createMatchPatternXPath(tokenizer.nextToken(), owner);\n\n        patterns.addElement(pattern);\n      }\n\n      return patterns;\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [8, 14], [10, 15], [14, 16], [10, 17], [11, 18], [12, 19], [13, 20], [10, 21], [10, 22], [20, 23], [17, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 8], [15, 10], [16, 14], [17, 10], [18, 11], [19, 12], [20, 13], [21, 10], [22, 10], [23, 20], [24, 17], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "processSTRINGLIST", "code": "  StringVector processSTRINGLIST(StylesheetHandler handler, String uri,\n                                 String name, String rawName, String value)\n  {\n\n    StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n    int nStrings = tokenizer.countTokens();\n    StringVector strings = new StringVector(nStrings);\n\n    for (int i = 0; i < nStrings; i++)\n    {\n      strings.addElement(tokenizer.nextToken());\n    }\n\n    return strings;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [4, 13], [5, 14], [2, 15], [2, 16], [14, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 4], [14, 5], [15, 2], [16, 2], [17, 14], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "processPREFIX_URLLIST", "code": "  StringVector processPREFIX_URLLIST(\n          StylesheetHandler handler, String uri, String name, String rawName, String value)\n            throws org.xml.sax.SAXException\n  {\n\n    StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n    int nStrings = tokenizer.countTokens();\n    StringVector strings = new StringVector(nStrings);\n\n    for (int i = 0; i < nStrings; i++)\n    {\n      String prefix = tokenizer.nextToken();\n      String url = handler.getNamespaceForPrefix(prefix);\n\n      if (url != null)\n        strings.addElement(url);\n      else\n        throw new org.xml.sax.SAXException(XSLMessages.createMessage(XSLTErrorResources.ER_CANT_RESOLVE_NSPREFIX, new Object[] {prefix}));\n    \n    }\n\n    return strings;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [2, 13], [2, 14], [3, 15], [4, 16], [5, 17], [12, 18], [12, 19], [2, 20], [17, 21], [18, 22], [12, 23], [19, 24], [13, 25], [14, 26], [22, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 2], [14, 2], [15, 3], [16, 4], [17, 5], [18, 12], [19, 12], [20, 2], [21, 17], [22, 18], [23, 12], [24, 19], [25, 13], [26, 14], [27, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "processPREFIX_LIST", "code": "   StringVector processPREFIX_LIST(\n           StylesheetHandler handler, String uri, String name, \n           String rawName, String value) throws org.xml.sax.SAXException\n   {\n    \n     StringTokenizer tokenizer = new StringTokenizer(value, \" \\t\\n\\r\\f\");\n     int nStrings = tokenizer.countTokens();\n     StringVector strings = new StringVector(nStrings);\n\n     for (int i = 0; i < nStrings; i++)\n     {\n       String prefix = tokenizer.nextToken();\n       String url = handler.getNamespaceForPrefix(prefix);\n       if (prefix.equals(Constants.ATTRVAL_DEFAULT_PREFIX) || url != null)\n         strings.addElement(prefix);\n       else\n         throw new org.xml.sax.SAXException(\n              XSLMessages.createMessage(\n                   XSLTErrorResources.ER_CANT_RESOLVE_NSPREFIX, \n                   new Object[] {prefix}));\n    \n     }\n\n     return strings;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [2, 13], [2, 14], [3, 15], [4, 16], [5, 17], [12, 18], [12, 19], [2, 20], [17, 21], [18, 22], [12, 23], [19, 24], [19, 25], [13, 26], [14, 27], [22, 28], [24, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 2], [14, 2], [15, 3], [16, 4], [17, 5], [18, 12], [19, 12], [20, 2], [21, 17], [22, 18], [23, 12], [24, 19], [25, 19], [26, 13], [27, 14], [28, 22], [29, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "processURL", "code": "  Object processURL(\n          StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    if (getSupportsAVT()) {\n\t    try\n\t    {\n\t      AVT avt = new AVT(handler, uri, name, rawName, value, owner);\n\t\n\t      return avt;\n\t    }\n\t    catch (TransformerException te)\n\t    {\n\t      throw new org.xml.sax.SAXException(te);\n\t    }  \t\t\n     } else {\n     \t\n\t    return value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "TRY", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [10, 11], [10, 12], [10, 13], [11, 14], [14, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 10], [12, 10], [13, 10], [14, 11], [15, 14], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "processYESNO", "code": "  private Boolean processYESNO(\n          StylesheetHandler handler, String uri, String name, String rawName, String value)\n            throws org.xml.sax.SAXException\n  {\n\n    if (!(value.equals(\"yes\") || value.equals(\"no\")))\n    {\n      handleError(handler, XSLTErrorResources.INVALID_BOOLEAN, new Object[] {name,value}, null);\n      return null;\n   }\n \n     return new Boolean(value.equals(\"yes\") ? true : false);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "COND_EXPR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [8, 10], [2, 11], [9, 12], [9, 13], [10, 14], [10, 15], [10, 16], [11, 17], [2, 18], [12, 19], [13, 20], [16, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 8], [11, 2], [12, 9], [13, 9], [14, 10], [15, 10], [16, 10], [17, 11], [18, 2], [19, 12], [20, 13], [21, 16], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "processValue", "code": "  Object processValue(\n          StylesheetHandler handler, String uri, String name, String rawName, String value,\n          ElemTemplateElement owner)\n            throws org.xml.sax.SAXException\n  {\n\n    int type = getType();\n    Object processedValue = null;\n\n    switch (type)\n    {\n    case T_AVT :\n      processedValue = processAVT(handler, uri, name, rawName, value, owner);\n      break;\n    case T_CDATA :\n      processedValue = processCDATA(handler, uri, name, rawName, value, owner);\n      break;\n    case T_CHAR :\n      processedValue = processCHAR(handler, uri, name, rawName, value, owner);\n      break;\n    case T_ENUM :\n      processedValue = processENUM(handler, uri, name, rawName, value, owner);\n      break;\n    case T_EXPR :\n      processedValue = processEXPR(handler, uri, name, rawName, value, owner);\n      break;\n    case T_NMTOKEN :\n      processedValue = processNMTOKEN(handler, uri, name, rawName, value, owner);\n      break;\n    case T_PATTERN :\n      processedValue = processPATTERN(handler, uri, name, rawName, value, owner);\n      break;\n    case T_NUMBER :\n      processedValue = processNUMBER(handler, uri, name, rawName, value, owner);\n      break;\n    case T_QNAME :\n      processedValue = processQNAME(handler, uri, name, rawName, value, owner);\n      break;\n    case T_QNAMES :\n      processedValue = processQNAMES(handler, uri, name, rawName, value);\n      break;\n\tcase T_QNAMES_RESOLVE_NULL:\n      processedValue = processQNAMESRNU(handler, uri, name, rawName, value);\n      break;\n    case T_SIMPLEPATTERNLIST :\n      processedValue = processSIMPLEPATTERNLIST(handler, uri, name, rawName,\n                                                value, owner);\n      break;\n    case T_URL :\n      processedValue = processURL(handler, uri, name, rawName, value, owner);\n      break;\n    case T_YESNO :\n      processedValue = processYESNO(handler, uri, name, rawName, value);\n      break;\n    case T_STRINGLIST :\n      processedValue = processSTRINGLIST(handler, uri, name, rawName, value);\n      break;\n    case T_PREFIX_URLLIST :\n      processedValue = processPREFIX_URLLIST(handler, uri, name, rawName,\n                                             value);\n      break;\n    case T_ENUM_OR_PQNAME :\n    \tprocessedValue = processENUM_OR_PQNAME(handler, uri, name, rawName, value, owner);\n    \tbreak;\n    case T_NCNAME :\n        processedValue = processNCNAME(handler, uri, name, rawName, value, owner);\n        break;\n    case T_AVT_QNAME :\n        processedValue = processAVT_QNAME(handler, uri, name, rawName, value, owner);\n        break;\n    case T_PREFIXLIST :\n      processedValue = processPREFIX_LIST(handler, uri, name, rawName,\n                                             value);\n      break;\n\n    default :\n    }\n\n    return processedValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [3, 31], [4, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [33, 53], [34, 54], [35, 55], [36, 56], [37, 57], [38, 58], [39, 59], [40, 60], [41, 61], [42, 62], [43, 63], [44, 64], [45, 65], [46, 66], [47, 67], [48, 68], [49, 69], [50, 70], [51, 71], [52, 72], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 3], [32, 4], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 2], [52, 2], [53, 33], [54, 34], [55, 35], [56, 36], [57, 37], [58, 38], [59, 39], [60, 40], [61, 41], [62, 42], [63, 43], [64, 44], [65, 45], [66, 46], [67, 47], [68, 48], [69, 49], [70, 50], [71, 51], [72, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72]]}, {"function_name": "setDefAttrValue", "code": "  void setDefAttrValue(StylesheetHandler handler, ElemTemplateElement elem)\n          throws org.xml.sax.SAXException\n  {\n    setAttrValue(handler, this.getNamespace(), this.getName(),\n                 this.getName(), this.getDefault(), elem);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [3, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 3], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getPrimativeClass", "code": "  private Class getPrimativeClass(Object obj)\n  {\n\n    if (obj instanceof XPath)\n      return XPath.class;\n\n    Class cl = obj.getClass();\n\n    if (cl == Double.class)\n    {\n      cl = double.class;\n    }\n\n    if (cl == Float.class)\n    {\n      cl = float.class;\n    }\n    else if (cl == Boolean.class)\n    {\n      cl = boolean.class;\n    }\n    else if (cl == Byte.class)\n    {\n      cl = byte.class;\n    }\n    else if (cl == Character.class)\n    {\n      cl = char.class;\n    }\n    else if (cl == Short.class)\n    {\n      cl = short.class;\n    }\n    else if (cl == Integer.class)\n    {\n      cl = int.class;\n    }\n    else if (cl == Long.class)\n    {\n      cl = long.class;\n    }\n\n    return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [5, 10], [5, 11], [7, 12], [7, 13], [4, 14], [12, 15], [12, 16], [2, 17], [3, 18], [15, 19], [15, 20], [7, 21], [19, 22], [19, 23], [12, 24], [22, 25], [22, 26], [15, 27], [25, 28], [19, 29], [22, 30], [25, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 5], [11, 5], [12, 7], [13, 7], [14, 4], [15, 12], [16, 12], [17, 2], [18, 3], [19, 15], [20, 15], [21, 7], [22, 19], [23, 19], [24, 12], [25, 22], [26, 22], [27, 15], [28, 25], [29, 19], [30, 22], [31, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getListOfEnums", "code": "  private StringBuffer getListOfEnums() \n  {\n     StringBuffer enumNamesList = new StringBuffer();            \n     String [] enumValues = this.getEnumNames();\n\n     for (int i = 0; i < enumValues.length; i++)\n     {\n        if (i > 0)\n        {\n           enumNamesList.append(' ');\n        }\n        enumNamesList.append(enumValues[i]);\n    }        \n    return enumNamesList;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [4, 7], [2, 8], [6, 9], [2, 10], [3, 11], [9, 12], [6, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 4], [8, 2], [9, 6], [10, 2], [11, 3], [12, 9], [13, 6], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setAttrValue", "code": "  boolean setAttrValue(\n          StylesheetHandler handler, String attrUri, String attrLocalName, \n          String attrRawName, String attrValue, ElemTemplateElement elem)\n            throws org.xml.sax.SAXException\n  {\n    if(attrRawName.equals(\"xmlns\") || attrRawName.startsWith(\"xmlns:\"))\n      return true;\n      \n    String setterString = getSetterMethodName();\n\n    if (null != setterString)\n    {\n      try\n      {\n        Method meth;\n        Object[] args;\n\n        if(setterString.equals(S_FOREIGNATTR_SETTER))\n        {\n          if( attrUri==null) attrUri=\"\";\n          Class sclass = attrUri.getClass();\n          Class[] argTypes = new Class[]{ sclass, sclass,\n                                      sclass, sclass };\n  \n          meth = elem.getClass().getMethod(setterString, argTypes);\n  \n          args = new Object[]{ attrUri, attrLocalName,\n                                      attrRawName, attrValue };\n        }\n        else\n        {\n          Object value = processValue(handler, attrUri, attrLocalName,\n                                      attrRawName, attrValue, elem);\n          if (null == value) return false;\n                                      \n          Class[] argTypes = new Class[]{ getPrimativeClass(value) };\n  \n          try\n          {\n            meth = elem.getClass().getMethod(setterString, argTypes);\n          }\n          catch (NoSuchMethodException nsme)\n          {\n            Class cl = ((Object) value).getClass();\n  \n            argTypes[0] = cl;\n            meth = elem.getClass().getMethod(setterString, argTypes);\n          }\n  \n          args = new Object[]{ value };\n        }\n\n        meth.invoke(elem, args);\n      }\n      catch (NoSuchMethodException nsme)\n      {\n        if (!setterString.equals(S_FOREIGNATTR_SETTER)) \n        {\n          return false;\n        }\n      }\n      catch (IllegalAccessException iae)\n      {\n        return false;\n      }\n      catch (InvocationTargetException nsme)\n      {\n        handleError(handler, XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_VALUE,\n            new Object[]{ Constants.ATTRNAME_NAME, getName()}, nsme);\n        return false;\n      }\n    }\n    \n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "CATCH", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "RETURN", "ASSIGN", "CATCH", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [4, 13], [4, 14], [2, 15], [12, 16], [3, 17], [13, 18], [14, 19], [14, 20], [15, 21], [15, 22], [15, 23], [15, 24], [15, 25], [15, 26], [19, 27], [20, 28], [21, 29], [22, 30], [23, 31], [15, 32], [24, 33], [29, 34], [21, 35], [30, 36], [31, 37], [24, 38], [24, 39], [24, 40], [24, 41], [24, 42], [24, 43], [24, 44], [31, 45], [24, 46], [38, 47], [40, 48], [40, 49], [24, 50], [24, 51], [44, 52], [45, 53], [47, 54], [38, 55], [48, 56], [49, 57], [41, 58], [51, 59], [43, 60], [44, 61], [52, 62], [35, 63], [47, 64], [47, 65], [55, 66], [59, 67], [61, 68], [64, 69], [66, 70], [39, 71], [69, 72], [65, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 4], [14, 4], [15, 2], [16, 12], [17, 3], [18, 13], [19, 14], [20, 14], [21, 15], [22, 15], [23, 15], [24, 15], [25, 15], [26, 15], [27, 19], [28, 20], [29, 21], [30, 22], [31, 23], [32, 15], [33, 24], [34, 29], [35, 21], [36, 30], [37, 31], [38, 24], [39, 24], [40, 24], [41, 24], [42, 24], [43, 24], [44, 24], [45, 31], [46, 24], [47, 38], [48, 40], [49, 40], [50, 24], [51, 24], [52, 44], [53, 45], [54, 47], [55, 38], [56, 48], [57, 49], [58, 41], [59, 51], [60, 43], [61, 44], [62, 52], [63, 35], [64, 47], [65, 47], [66, 55], [67, 59], [68, 61], [69, 64], [70, 66], [71, 39], [72, 69], [73, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "handleError", "code": "  private void handleError(StylesheetHandler handler, String msg, Object [] args, Exception exc) throws org.xml.sax.SAXException\n  {\n    switch (getErrorType()) \n    {\n        case (FATAL):\n        case (ERROR):\n                handler.error(msg, args, exc);          \n                break;\n        case (WARNING):\n                handler.warn(msg, args);       \n        default: break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "XSLTAttributeDef", "code": "  XSLTAttributeDef(String namespace, String name, int type, boolean required, boolean supportsAVT, int errorType)\n  {\n    this.m_namespace = namespace;\n    this.m_name = name;\n    this.m_type = type;\n    this.m_required = required;\n    this.m_supportsAVT = supportsAVT;\n    this.m_errorType = errorType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "XSLTAttributeDef", "code": "  XSLTAttributeDef(String namespace, String name, int type, boolean supportsAVT, int errorType, String defaultVal)\n  {\n\n    this.m_namespace = namespace;\n    this.m_name = name;\n    this.m_type = type;\n    this.m_required = false;\n    this.m_supportsAVT = supportsAVT;  \n    this.m_errorType = errorType;      \n    this.m_default = defaultVal;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "XSLTAttributeDef", "code": "  XSLTAttributeDef(String namespace, String name, boolean required, boolean supportsAVT, \n                    boolean prefixedQNameValAllowed, int errorType, String k1, int v1, String k2, int v2)\n  {\n\n    this.m_namespace = namespace;\n    this.m_name = name;\n\tthis.m_type = prefixedQNameValAllowed ? this.T_ENUM_OR_PQNAME : this.T_ENUM;    \n    this.m_required = required;\n    this.m_supportsAVT = supportsAVT;    \n    this.m_errorType = errorType;    \n    m_enums = new StringToIntTable(2);\n\n    m_enums.put(k1, v1);\n    m_enums.put(k2, v2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [13, 20], [17, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 13], [21, 17], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "XSLTAttributeDef", "code": "  XSLTAttributeDef(String namespace, String name, boolean required, boolean supportsAVT,\n                    boolean prefixedQNameValAllowed, int errorType, String k1, int v1, String k2, int v2, String k3, int v3)\n  {\n\n    this.m_namespace = namespace;\n    this.m_name = name;\n\tthis.m_type = prefixedQNameValAllowed ? this.T_ENUM_OR_PQNAME : this.T_ENUM;    \n    this.m_required = required;\n    this.m_supportsAVT = supportsAVT; \n    this.m_errorType = errorType;      \n    m_enums = new StringToIntTable(3);\n\n    m_enums.put(k1, v1);\n    m_enums.put(k2, v2);\n    m_enums.put(k3, v3);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [16, 23], [20, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 16], [24, 20], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "XSLTAttributeDef", "code": "  XSLTAttributeDef(String namespace, String name, boolean required, boolean supportsAVT,\n                   boolean prefixedQNameValAllowed, int errorType, String k1, int v1, String k2, int v2, \n                   String k3, int v3, String k4, int v4)\n  {\n\n    this.m_namespace = namespace;\n    this.m_name = name;\n\tthis.m_type = prefixedQNameValAllowed ? this.T_ENUM_OR_PQNAME : this.T_ENUM;    \n    this.m_required = required;\n    this.m_supportsAVT = supportsAVT;      \n    this.m_errorType = errorType; \n    m_enums = new StringToIntTable(4);\n\n    m_enums.put(k1, v1);\n    m_enums.put(k2, v2);\n    m_enums.put(k3, v3);\n    m_enums.put(k4, v4);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [19, 26], [23, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 19], [27, 23], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}], "label": 1}
{"sample_id": "xalan-2.7-8427", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/CompilerException.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.CompilerException", "code": "public final class CompilerException extends Exception {\n    static final long serialVersionUID = 1732939618562742663L;\n\n    private String _msg;\n\n    public CompilerException() {\n\tsuper();\n    }\n    \n    public CompilerException(Exception e) {\n\tsuper(e.toString());\n\t_msg = e.toString(); \n    }\n    \n    public CompilerException(String message) {\n\tsuper(message);\n\t_msg = message;\n    }\n\n    public String getMessage() {\n\tfinal int col = _msg.indexOf(':');\n\n\tif (col > -1)\n\t    return(_msg.substring(col));\n\telse\n\t    return(_msg);", "functions": [{"function_name": "getMessage", "code": "    public String getMessage() {\n\tfinal int col = _msg.indexOf(':');\n\n\tif (col > -1)\n\t    return(_msg.substring(col));\n\telse\n\t    return(_msg);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "CompilerException", "code": "    public CompilerException() {\n\tsuper();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "CompilerException", "code": "    public CompilerException(Exception e) {\n\tsuper(e.toString());\n\t_msg = e.toString(); ", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CompilerException", "code": "    public CompilerException(String message) {\n\tsuper(message);\n\t_msg = message;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.5-7056", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/serializer/SerializerTrace.java", "language": "java", "name": "org.apache.xml.serializer.SerializerTrace", "code": "public interface SerializerTrace {\n    \n  /**\n   * Event type generated when a document begins.\n   *\n   */\n  public static final int EVENTTYPE_STARTDOCUMENT = 1;\n\n  /**\n   * Event type generated when a document ends.\n   */\n  public static final int EVENTTYPE_ENDDOCUMENT = 2;\n\n  /**\n   * Event type generated when an element begins (after the attributes have been processed but before the children have been added).\n   */\n  public static final int EVENTTYPE_STARTELEMENT = 3;\n\n  /**\n   * Event type generated when an element ends, after it's children have been added.\n   */\n  public static final int EVENTTYPE_ENDELEMENT = 4;\n\n  /**\n   * Event type generated for character data (CDATA and Ignorable Whitespace have their own events).\n   */\n  public static final int EVENTTYPE_CHARACTERS = 5;\n\n  /**\n   * Event type generated for ignorable whitespace (I'm not sure how much this is actually called.\n   */\n  public static final int EVENTTYPE_IGNORABLEWHITESPACE = 6;\n\n  /**\n   * Event type generated for processing instructions.\n   */\n  public static final int EVENTTYPE_PI = 7;\n\n  /**\n   * Event type generated after a comment has been added.\n   */\n  public static final int EVENTTYPE_COMMENT = 8;\n\n  /**\n   * Event type generate after an entity ref is created.\n   */\n  public static final int EVENTTYPE_ENTITYREF = 9;\n\n  /**\n   * Event type generated after CDATA is generated.\n   */\n  public static final int EVENTTYPE_CDATA = 10;\n  \n  /**\n   * Event type generated when characters might be written to an output stream,\n   *  but  these characters never are. They will ultimately be written out via\n   * EVENTTYPE_OUTPUT_CHARACTERS. This type is used as attributes are collected.\n   * Whenever the attributes change this event type is fired. At the very end\n   * however, when the attributes do not change anymore and are going to be\n   * ouput to the document the real characters will be written out using the\n   * EVENTTYPE_OUTPUT_CHARACTERS.\n   */\n  public static final int EVENTTYPE_OUTPUT_PSEUDO_CHARACTERS = 11;\n  \n  /**\n   * Event type generated when characters are written to an output stream.\n   */\n  public static final int EVENTTYPE_OUTPUT_CHARACTERS = 12;\n    \n\n  /**\n   * Tell if trace listeners are present.\n   *\n   * @return True if there are trace listeners\n   */\n  public boolean hasTraceListeners();\n  \n  /**\n   * Fire startDocument, endDocument events.\n   *\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   */\n  public void fireGenerateEvent(int eventType);\n  \n  /**\n   * Fire startElement, endElement events.\n   *\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param name The name of the element.\n   * @param atts The SAX attribute list.\n   */\n  public void fireGenerateEvent(int eventType, String name, Attributes atts);\n  \n  /**\n   * Fire characters, cdata events.\n   *\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param ch The char array from the SAX event.\n   * @param start The start offset to be used in the char array.\n   * @param length The end offset to be used in the chara array.\n   */\n  public void fireGenerateEvent(int eventType, char ch[], int start, int length);\n  \n  /**\n   * Fire processingInstruction events.\n   *\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param name The name of the processing instruction.\n   * @param data The processing instruction data.\n   */\n  public void fireGenerateEvent(int eventType, String name, String data);\n  \n\n  /**\n   * Fire comment and entity ref events.\n   *\n   * @param eventType One of the EVENTTYPE_XXX constants.\n   * @param data The comment or entity ref data.\n   */\n  public void fireGenerateEvent(int eventType, String data);", "functions": [{"function_name": "hasTraceListeners", "code": "  public boolean hasTraceListeners();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "fireGenerateEvent", "code": "  public void fireGenerateEvent(int eventType);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fireGenerateEvent", "code": "  public void fireGenerateEvent(int eventType, String name, Attributes atts);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "fireGenerateEvent", "code": "  public void fireGenerateEvent(int eventType, char ch[], int start, int length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "fireGenerateEvent", "code": "  public void fireGenerateEvent(int eventType, String name, String data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "fireGenerateEvent", "code": "  public void fireGenerateEvent(int eventType, String data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.2-1939", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/SendProcessor.java", "language": "java", "name": "org.apache.camel.processor.SendProcessor", "code": "public class SendProcessor extends ServiceSupport implements AsyncProcessor, Service {\n    private static final transient Log LOG = LogFactory.getLog(SendProcessor.class);\n    private Endpoint destination;\n    private Producer producer;\n    private AsyncProcessor processor;\n\n    public SendProcessor(Endpoint destination) {\n        if (destination == null) {\n            throw new IllegalArgumentException(\"Endpoint cannot be null!\");\n        }\n        this.destination = destination;\n    }\n\n    @Override\n    public String toString() {\n        return \"sendTo(\" + destination + \")\";\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        if (producer == null) {\n            if (isStopped()) {\n                LOG.warn(\"Ignoring exchange sent after processor is stopped: \" + exchange);\n            } else {\n                throw new IllegalStateException(\"No producer, this processor has not been started!\");\n            }\n        } else {\n            producer.process(exchange);\n        }\n    }\n\n    public boolean process(Exchange exchange, AsyncCallback callback) {\n        if (producer == null) {\n            if (isStopped()) {\n                LOG.warn(\"Ignoring exchange sent after processor is stopped: \" + exchange);\n            } else {\n                exchange.setException(new IllegalStateException(\"No producer, this processor has not been started!\"));\n            }\n            callback.done(true);\n            return true;\n        } else {\n            return processor.process(exchange, callback);\n        }\n    }\n\n    \n    public Endpoint getDestination() {\n        return destination;\n    }\n\n    protected void doStart() throws Exception {\n        this.producer = destination.createProducer();\n        this.producer.start();\n        this.processor = AsyncProcessorTypeConverter.convert(producer);\n    }\n\n    protected void doStop() throws Exception {\n        if (producer != null) {\n            try {\n                producer.stop();\n            } finally {\n                producer = null;\n                processor = null;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"sendTo(\" + destination + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        if (producer == null) {\n            if (isStopped()) {\n                LOG.warn(\"Ignoring exchange sent after processor is stopped: \" + exchange);\n            } else {\n                throw new IllegalStateException(\"No producer, this processor has not been started!\");\n            }\n        } else {\n            producer.process(exchange);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [4, 7], [4, 8], [8, 9], [4, 10], [9, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 4], [8, 4], [9, 8], [10, 4], [11, 9], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "process", "code": "    public boolean process(Exchange exchange, AsyncCallback callback) {\n        if (producer == null) {\n            if (isStopped()) {\n                LOG.warn(\"Ignoring exchange sent after processor is stopped: \" + exchange);\n            } else {\n                exchange.setException(new IllegalStateException(\"No producer, this processor has not been started!\"));\n            }\n            callback.done(true);\n            return true;\n        } else {\n            return processor.process(exchange, callback);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [1, 11], [7, 12], [11, 13], [7, 14], [7, 15], [14, 16], [15, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 1], [12, 7], [13, 11], [14, 7], [15, 7], [16, 14], [17, 15], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getDestination", "code": "    public Endpoint getDestination() {\n        return destination;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        this.producer = destination.createProducer();\n        this.producer.start();\n        this.processor = AsyncProcessorTypeConverter.convert(producer);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        if (producer != null) {\n            try {\n                producer.stop();\n            } finally {\n                producer = null;\n                processor = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [3, 6], [3, 7], [5, 8], [6, 9], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 3], [7, 3], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "SendProcessor", "code": "    public SendProcessor(Endpoint destination) {\n        if (destination == null) {\n            throw new IllegalArgumentException(\"Endpoint cannot be null!\");\n        }\n        this.destination = destination;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "ant-1.6-490", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/SignJar.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.SignJar", "code": "public class SignJar extends Task {\n\n    /**\n     * The name of the jar file.\n     */\n    protected File jar;\n\n    /**\n     * The alias of signer.\n     */\n    protected String alias;\n\n    /**\n     * The name of keystore file.\n     */\n    private String keystore;\n\n    protected String storepass;\n    protected String storetype;\n    protected String keypass;\n    protected String sigfile;\n    protected File signedjar;\n    protected boolean verbose;\n    protected boolean internalsf;\n    protected boolean sectionsonly;\n\n    /** The maximum amount of memory to use for Jar signer */\n    private String maxMemory;\n\n    /**\n     * the filesets of the jars to sign\n     */\n    protected Vector filesets = new Vector();\n\n    /**\n     * Whether to assume a jar which has an appropriate .SF file in is already\n     * signed.\n     */\n    protected boolean lazy;\n\n\n    /**\n     * Set the maximum memory to be used by the jarsigner process\n     *\n     * @param max a string indicating the maximum memory according to the\n     *        JVM conventions (e.g. 128m is 128 Megabytes)\n     */\n    public void setMaxmemory(String max) {\n        maxMemory = max;\n    }\n\n    /**\n     * the jar file to sign; required\n     */\n    public void setJar(final File jar) {\n        this.jar = jar;\n    }\n\n    /**\n     * the alias to sign under; required\n     */\n    public void setAlias(final String alias) {\n        this.alias = alias;\n    }\n\n    /**\n     * keystore location; required\n     */\n    public void setKeystore(final String keystore) {\n        this.keystore = keystore;\n    }\n\n    /**\n     * password for keystore integrity; required\n     */\n    public void setStorepass(final String storepass) {\n        this.storepass = storepass;\n    }\n\n    /**\n     * keystore type; optional\n     */\n    public void setStoretype(final String storetype) {\n        this.storetype = storetype;\n    }\n\n    /**\n     * password for private key (if different); optional\n     */\n    public void setKeypass(final String keypass) {\n        this.keypass = keypass;\n    }\n\n    /**\n     * name of .SF/.DSA file; optional\n     */\n    public void setSigfile(final String sigfile) {\n        this.sigfile = sigfile;\n    }\n\n    /**\n     * name of signed JAR file; optional\n     */\n    public void setSignedjar(final File signedjar) {\n        this.signedjar = signedjar;\n    }\n\n    /**\n     * Enable verbose output when signing\n     * ; optional: default false\n     */\n    public void setVerbose(final boolean verbose) {\n        this.verbose = verbose;\n    }\n\n    /**\n     * Flag to include the .SF file inside the signature;\n     * optional; default false\n     */\n    public void setInternalsf(final boolean internalsf) {\n        this.internalsf = internalsf;\n    }\n\n    /**\n     * flag to compute hash of entire manifest;\n     * optional, default false\n     */\n    public void setSectionsonly(final boolean sectionsonly) {\n        this.sectionsonly = sectionsonly;\n    }\n\n    /**\n     * flag to control whether the presence of a signature\n     * file means a JAR is signed;\n     * optional, default false\n     */\n    public void setLazy(final boolean lazy) {\n        this.lazy = lazy;\n    }\n\n    /**\n     * Adds a set of files to sign\n     * @since Ant 1.4\n     */\n    public void addFileset(final FileSet set) {\n        filesets.addElement(set);\n    }\n\n\n    /**\n     * sign the jar(s)\n     */\n    public void execute() throws BuildException {\n        if (null == jar && filesets.size() == 0) {\n            throw new BuildException(\"jar must be set through jar attribute \"\n                                     + \"or nested filesets\");\n        }\n        if (null != jar) {\n            if (filesets.size() != 0) {\n                log(\"nested filesets will be ignored if the jar attribute has\"\n                    + \" been specified.\", Project.MSG_WARN);\n            }\n\n            doOneJar(jar, signedjar);\n            return;\n        } else {\n            for (int i = 0; i < filesets.size(); i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n                String[] jarFiles = ds.getIncludedFiles();\n                for (int j = 0; j < jarFiles.length; j++) {\n                    doOneJar(new File(fs.getDir(getProject()), jarFiles[j]), null);\n                }\n            }\n        }\n    }\n\n    /**\n     * sign one jar\n     */\n    private void doOneJar(File jarSource, File jarTarget)\n        throws BuildException {\n\n        if (null == alias) {\n            throw new BuildException(\"alias attribute must be set\");\n        }\n\n        if (null == storepass) {\n            throw new BuildException(\"storepass attribute must be set\");\n        }\n\n        if (isUpToDate(jarSource, jarTarget)) {\n            return;\n        }\n\n        final ExecTask cmd = (ExecTask) getProject().createTask(\"exec\");\n        cmd.setExecutable(JavaEnvUtils.getJdkExecutable(\"jarsigner\"));\n\n        if (maxMemory != null) {\n            cmd.createArg().setValue(\"-J-Xmx\" + maxMemory);\n        }\n\n        if (null != keystore) {\n            File keystoreFile = getProject().resolveFile(keystore);\n            if (keystoreFile.exists()) {\n                cmd.createArg().setValue(\"-keystore\");\n                cmd.createArg().setValue(keystoreFile.getPath());\n            } else {\n                cmd.createArg().setValue(\"-keystore\");\n                cmd.createArg().setValue(keystore);\n            }\n        }\n\n        if (null != storepass) {\n            cmd.createArg().setValue(\"-storepass\");\n            cmd.createArg().setValue(storepass);\n        }\n\n        if (null != storetype) {\n            cmd.createArg().setValue(\"-storetype\");\n            cmd.createArg().setValue(storetype);\n        }\n\n        if (null != keypass) {\n            cmd.createArg().setValue(\"-keypass\");\n            cmd.createArg().setValue(keypass);\n        }\n\n        if (null != sigfile) {\n            cmd.createArg().setValue(\"-sigfile\");\n            cmd.createArg().setValue(sigfile);\n        }\n\n        if (null != jarTarget) {\n            cmd.createArg().setValue(\"-signedjar\");\n            cmd.createArg().setValue(jarTarget.toString());\n        }\n\n        if (verbose) {\n            cmd.createArg().setValue(\"-verbose\");\n        }\n\n        if (internalsf) {\n            cmd.createArg().setValue(\"-internalsf\");\n        }\n\n        if (sectionsonly) {\n            cmd.createArg().setValue(\"-sectionsonly\");\n        }\n\n        cmd.createArg().setValue(jarSource.toString());\n\n        cmd.createArg().setValue(alias);\n\n        log(\"Signing JAR: \" + jarSource.getAbsolutePath());\n        cmd.setFailonerror(true);\n        cmd.setTaskName(getTaskName());\n        cmd.execute();\n    }\n\n    protected boolean isUpToDate(File jarFile, File signedjarFile) {\n        if (null == jarFile) {\n            return false;\n        }\n\n        if (null != signedjarFile) {\n\n            if (!jarFile.exists()) {\n              return false;\n            }\n            if (!signedjarFile.exists()) {\n              return false;\n            }\n            if (jarFile.equals(signedjarFile)) {\n              return false;\n            }\n            if (signedjarFile.lastModified() > jarFile.lastModified()) {\n                return true;\n            }\n        } else {\n            if (lazy) {\n                return isSigned(jarFile);\n            }\n        }\n\n        return false;\n    }\n\n    /**\n     * test for a file being signed, by looking for a signature in the META-INF\n     * directory\n     * @param file\n     * @return true if the file is signed\n     */\n    protected boolean isSigned(File file) {\n        final String SIG_START = \"META-INF/\";\n        final String SIG_END = \".SF\";\n\n        if (!file.exists()) {\n            return false;\n        }\n        ZipFile jarFile = null;\n        try {\n            jarFile = new ZipFile(file);\n            if (null == alias) {\n                Enumeration entries = jarFile.entries();\n                while (entries.hasMoreElements()) {\n                    String name = ((ZipEntry) entries.nextElement()).getName();\n                    if (name.startsWith(SIG_START) && name.endsWith(SIG_END)) {\n                        return true;\n                    }\n                }\n                return false;\n            } else {\n                return jarFile.getEntry(SIG_START + alias.toUpperCase()\n                                        + SIG_END) != null;\n            }\n        } catch (IOException e) {\n            return false;\n        } finally {\n            if (jarFile != null) {\n                try {\n                    jarFile.close();", "functions": [{"function_name": "setMaxmemory", "code": "    public void setMaxmemory(String max) {\n        maxMemory = max;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setJar", "code": "    public void setJar(final File jar) {\n        this.jar = jar;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAlias", "code": "    public void setAlias(final String alias) {\n        this.alias = alias;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setKeystore", "code": "    public void setKeystore(final String keystore) {\n        this.keystore = keystore;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStorepass", "code": "    public void setStorepass(final String storepass) {\n        this.storepass = storepass;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStoretype", "code": "    public void setStoretype(final String storetype) {\n        this.storetype = storetype;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setKeypass", "code": "    public void setKeypass(final String keypass) {\n        this.keypass = keypass;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSigfile", "code": "    public void setSigfile(final String sigfile) {\n        this.sigfile = sigfile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSignedjar", "code": "    public void setSignedjar(final File signedjar) {\n        this.signedjar = signedjar;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVerbose", "code": "    public void setVerbose(final boolean verbose) {\n        this.verbose = verbose;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setInternalsf", "code": "    public void setInternalsf(final boolean internalsf) {\n        this.internalsf = internalsf;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSectionsonly", "code": "    public void setSectionsonly(final boolean sectionsonly) {\n        this.sectionsonly = sectionsonly;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLazy", "code": "    public void setLazy(final boolean lazy) {\n        this.lazy = lazy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(final FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (null == jar && filesets.size() == 0) {\n            throw new BuildException(\"jar must be set through jar attribute \"\n                                     + \"or nested filesets\");\n        }\n        if (null != jar) {\n            if (filesets.size() != 0) {\n                log(\"nested filesets will be ignored if the jar attribute has\"\n                    + \" been specified.\", Project.MSG_WARN);\n            }\n\n            doOneJar(jar, signedjar);\n            return;\n        } else {\n            for (int i = 0; i < filesets.size(); i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n                String[] jarFiles = ds.getIncludedFiles();\n                for (int j = 0; j < jarFiles.length; j++) {\n                    doOneJar(new File(fs.getDir(getProject()), jarFiles[j]), null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "LOOP", "RETURN", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [1, 7], [3, 8], [2, 9], [4, 10], [4, 11], [5, 12], [1, 13], [7, 14], [9, 15], [10, 16], [10, 17], [11, 18], [5, 19], [5, 20], [5, 21], [5, 22], [12, 23], [14, 24], [14, 25], [15, 26], [19, 27], [5, 28], [7, 29], [26, 30], [26, 31], [20, 32], [21, 33], [29, 34], [19, 35], [19, 36], [33, 37], [22, 38], [34, 39], [34, 40], [35, 41], [35, 42], [42, 43], [43, 44], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 1], [8, 3], [9, 2], [10, 4], [11, 4], [12, 5], [13, 1], [14, 7], [15, 9], [16, 10], [17, 10], [18, 11], [19, 5], [20, 5], [21, 5], [22, 5], [23, 12], [24, 14], [25, 14], [26, 15], [27, 19], [28, 5], [29, 7], [30, 26], [31, 26], [32, 20], [33, 21], [34, 29], [35, 19], [36, 19], [37, 33], [38, 22], [39, 34], [40, 34], [41, 35], [42, 35], [43, 42], [44, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "doOneJar", "code": "    private void doOneJar(File jarSource, File jarTarget)\n        throws BuildException {\n\n        if (null == alias) {\n            throw new BuildException(\"alias attribute must be set\");\n        }\n\n        if (null == storepass) {\n            throw new BuildException(\"storepass attribute must be set\");\n        }\n\n        if (isUpToDate(jarSource, jarTarget)) {\n            return;\n        }\n\n        final ExecTask cmd = (ExecTask) getProject().createTask(\"exec\");\n        cmd.setExecutable(JavaEnvUtils.getJdkExecutable(\"jarsigner\"));\n\n        if (maxMemory != null) {\n            cmd.createArg().setValue(\"-J-Xmx\" + maxMemory);\n        }\n\n        if (null != keystore) {\n            File keystoreFile = getProject().resolveFile(keystore);\n            if (keystoreFile.exists()) {\n                cmd.createArg().setValue(\"-keystore\");\n                cmd.createArg().setValue(keystoreFile.getPath());\n            } else {\n                cmd.createArg().setValue(\"-keystore\");\n                cmd.createArg().setValue(keystore);\n            }\n        }\n\n        if (null != storepass) {\n            cmd.createArg().setValue(\"-storepass\");\n            cmd.createArg().setValue(storepass);\n        }\n\n        if (null != storetype) {\n            cmd.createArg().setValue(\"-storetype\");\n            cmd.createArg().setValue(storetype);\n        }\n\n        if (null != keypass) {\n            cmd.createArg().setValue(\"-keypass\");\n            cmd.createArg().setValue(keypass);\n        }\n\n        if (null != sigfile) {\n            cmd.createArg().setValue(\"-sigfile\");\n            cmd.createArg().setValue(sigfile);\n        }\n\n        if (null != jarTarget) {\n            cmd.createArg().setValue(\"-signedjar\");\n            cmd.createArg().setValue(jarTarget.toString());\n        }\n\n        if (verbose) {\n            cmd.createArg().setValue(\"-verbose\");\n        }\n\n        if (internalsf) {\n            cmd.createArg().setValue(\"-internalsf\");\n        }\n\n        if (sectionsonly) {\n            cmd.createArg().setValue(\"-sectionsonly\");\n        }\n\n        cmd.createArg().setValue(jarSource.toString());\n\n        cmd.createArg().setValue(alias);\n\n        log(\"Signing JAR: \" + jarSource.getAbsolutePath());\n        cmd.setFailonerror(true);\n        cmd.setTaskName(getTaskName());\n        cmd.execute();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [4, 23], [5, 24], [6, 25], [7, 26], [8, 27], [9, 28], [10, 29], [0, 30], [12, 31], [13, 32], [14, 33], [18, 34], [19, 35], [20, 36], [21, 37], [22, 38], [23, 39], [24, 40], [25, 41], [26, 42], [27, 43], [9, 44], [9, 45], [28, 46], [29, 47], [30, 48], [12, 49], [13, 50], [32, 51], [14, 52], [33, 53], [36, 54], [36, 55], [38, 56], [1, 57], [2, 58], [3, 59], [4, 60], [4, 61], [5, 62], [5, 63], [6, 64], [6, 65], [7, 66], [7, 67], [8, 68], [8, 69], [44, 70], [10, 71], [48, 72], [11, 73], [50, 74], [52, 75], [57, 76], [58, 77], [59, 78], [60, 79], [61, 80], [62, 81], [63, 82], [64, 83], [65, 84], [66, 85], [67, 86], [68, 87], [69, 88], [45, 89], [71, 90], [73, 91], [74, 92], [75, 93], [76, 94], [77, 95], [78, 96], [79, 97], [80, 98], [82, 99], [84, 100], [86, 101], [88, 102], [44, 103], [44, 104], [44, 105], [44, 106], [89, 107], [90, 108], [91, 109], [103, 110], [104, 111], [105, 112], [106, 113], [108, 114], [111, 115], [112, 116], [113, 117], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 4], [24, 5], [25, 6], [26, 7], [27, 8], [28, 9], [29, 10], [30, 0], [31, 12], [32, 13], [33, 14], [34, 18], [35, 19], [36, 20], [37, 21], [38, 22], [39, 23], [40, 24], [41, 25], [42, 26], [43, 27], [44, 9], [45, 9], [46, 28], [47, 29], [48, 30], [49, 12], [50, 13], [51, 32], [52, 14], [53, 33], [54, 36], [55, 36], [56, 38], [57, 1], [58, 2], [59, 3], [60, 4], [61, 4], [62, 5], [63, 5], [64, 6], [65, 6], [66, 7], [67, 7], [68, 8], [69, 8], [70, 44], [71, 10], [72, 48], [73, 11], [74, 50], [75, 52], [76, 57], [77, 58], [78, 59], [79, 60], [80, 61], [81, 62], [82, 63], [83, 64], [84, 65], [85, 66], [86, 67], [87, 68], [88, 69], [89, 45], [90, 71], [91, 73], [92, 74], [93, 75], [94, 76], [95, 77], [96, 78], [97, 79], [98, 80], [99, 82], [100, 84], [101, 86], [102, 88], [103, 44], [104, 44], [105, 44], [106, 44], [107, 89], [108, 90], [109, 91], [110, 103], [111, 104], [112, 105], [113, 106], [114, 108], [115, 111], [116, 112], [117, 113], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117]]}, {"function_name": "isUpToDate", "code": "    protected boolean isUpToDate(File jarFile, File signedjarFile) {\n        if (null == jarFile) {\n            return false;\n        }\n\n        if (null != signedjarFile) {\n\n            if (!jarFile.exists()) {\n              return false;\n            }\n            if (!signedjarFile.exists()) {\n              return false;\n            }\n            if (jarFile.equals(signedjarFile)) {\n              return false;\n            }\n            if (signedjarFile.lastModified() > jarFile.lastModified()) {\n                return true;\n            }\n        } else {\n            if (lazy) {\n                return isSigned(jarFile);\n            }\n        }\n\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "RETURN", "CALL", "CALL", "RETURN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [7, 14], [3, 15], [8, 16], [10, 17], [11, 18], [12, 19], [13, 20], [15, 21], [9, 22], [10, 23], [17, 24], [17, 25], [11, 26], [12, 27], [13, 28], [22, 29], [23, 30], [26, 31], [27, 32], [28, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 7], [15, 3], [16, 8], [17, 10], [18, 11], [19, 12], [20, 13], [21, 15], [22, 9], [23, 10], [24, 17], [25, 17], [26, 11], [27, 12], [28, 13], [29, 22], [30, 23], [31, 26], [32, 27], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "isSigned", "code": "    protected boolean isSigned(File file) {\n        final String SIG_START = \"META-INF/\";\n        final String SIG_END = \".SF\";\n\n        if (!file.exists()) {\n            return false;\n        }\n        ZipFile jarFile = null;\n        try {\n            jarFile = new ZipFile(file);\n            if (null == alias) {\n                Enumeration entries = jarFile.entries();\n                while (entries.hasMoreElements()) {\n                    String name = ((ZipEntry) entries.nextElement()).getName();\n                    if (name.startsWith(SIG_START) && name.endsWith(SIG_END)) {\n                        return true;\n                    }\n                }\n                return false;\n            } else {\n                return jarFile.getEntry(SIG_START + alias.toUpperCase()\n                                        + SIG_END) != null;\n            }\n        } catch (IOException e) {\n            return false;\n        } finally {\n            if (jarFile != null) {\n                try {\n                    jarFile.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CATCH", "IF", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [3, 10], [7, 11], [8, 12], [9, 13], [1, 14], [2, 15], [3, 16], [4, 17], [5, 18], [7, 19], [11, 20], [12, 21], [9, 22], [9, 23], [9, 24], [9, 25], [13, 26], [14, 27], [16, 28], [19, 29], [22, 30], [23, 31], [24, 32], [19, 33], [30, 34], [30, 35], [24, 36], [24, 37], [25, 38], [35, 39], [36, 40], [39, 41], [36, 42], [40, 43], [40, 44], [41, 45], [42, 46], [37, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 3], [11, 7], [12, 8], [13, 9], [14, 1], [15, 2], [16, 3], [17, 4], [18, 5], [19, 7], [20, 11], [21, 12], [22, 9], [23, 9], [24, 9], [25, 9], [26, 13], [27, 14], [28, 16], [29, 19], [30, 22], [31, 23], [32, 24], [33, 19], [34, 30], [35, 30], [36, 24], [37, 24], [38, 25], [39, 35], [40, 36], [41, 39], [42, 36], [43, 40], [44, 40], [45, 41], [46, 42], [47, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}], "label": 0}
{"sample_id": "xalan-2.6-7442", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/res/XMLErrorResources_zh_CN.java", "language": "java", "name": "org.apache.xml.res.XMLErrorResources_zh_CN", "code": "public class XMLErrorResources_zh_CN extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 61;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 0;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 4;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Message keys\n   */\n  public static final String ER_FUNCTION_NOT_SUPPORTED = \"ER_FUNCTION_NOT_SUPPORTED\";\n  public static final String ER_CANNOT_OVERWRITE_CAUSE = \"ER_CANNOT_OVERWRITE_CAUSE\";\n  public static final String ER_NO_DEFAULT_IMPL = \"ER_NO_DEFAULT_IMPL\";\n  public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = \"ER_CHUNKEDINTARRAY_NOT_SUPPORTED\";\n  public static final String ER_OFFSET_BIGGER_THAN_SLOT = \"ER_OFFSET_BIGGER_THAN_SLOT\";\n  public static final String ER_COROUTINE_NOT_AVAIL = \"ER_COROUTINE_NOT_AVAIL\";\n  public static final String ER_COROUTINE_CO_EXIT = \"ER_COROUTINE_CO_EXIT\";\n  public static final String ER_COJOINROUTINESET_FAILED = \"ER_COJOINROUTINESET_FAILED\";\n  public static final String ER_COROUTINE_PARAM = \"ER_COROUTINE_PARAM\";\n  public static final String ER_PARSER_DOTERMINATE_ANSWERS = \"ER_PARSER_DOTERMINATE_ANSWERS\";\n  public static final String ER_NO_PARSE_CALL_WHILE_PARSING = \"ER_NO_PARSE_CALL_WHILE_PARSING\";\n  public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = \"ER_ITERATOR_CLONE_NOT_SUPPORTED\";\n  public static final String ER_UNKNOWN_AXIS_TYPE = \"ER_UNKNOWN_AXIS_TYPE\";\n  public static final String ER_AXIS_NOT_SUPPORTED = \"ER_AXIS_NOT_SUPPORTED\";\n  public static final String ER_NO_DTMIDS_AVAIL = \"ER_NO_DTMIDS_AVAIL\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_NODE_NON_NULL = \"ER_NODE_NON_NULL\";\n  public static final String ER_COULD_NOT_RESOLVE_NODE = \"ER_COULD_NOT_RESOLVE_NODE\";\n  public static final String ER_STARTPARSE_WHILE_PARSING = \"ER_STARTPARSE_WHILE_PARSING\";\n  public static final String ER_STARTPARSE_NEEDS_SAXPARSER = \"ER_STARTPARSE_NEEDS_SAXPARSER\";\n  public static final String ER_COULD_NOT_INIT_PARSER = \"ER_COULD_NOT_INIT_PARSER\";\n  public static final String ER_EXCEPTION_CREATING_POOL = \"ER_EXCEPTION_CREATING_POOL\";\n  public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = \"ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE\";\n  public static final String ER_SCHEME_REQUIRED = \"ER_SCHEME_REQUIRED\";\n  public static final String ER_NO_SCHEME_IN_URI = \"ER_NO_SCHEME_IN_URI\";\n  public static final String ER_NO_SCHEME_INURI = \"ER_NO_SCHEME_INURI\";\n  public static final String ER_PATH_INVALID_CHAR = \"ER_PATH_INVALID_CHAR\";\n  public static final String ER_SCHEME_FROM_NULL_STRING = \"ER_SCHEME_FROM_NULL_STRING\";\n  public static final String ER_SCHEME_NOT_CONFORMANT = \"ER_SCHEME_NOT_CONFORMANT\";\n  public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = \"ER_HOST_ADDRESS_NOT_WELLFORMED\";\n  public static final String ER_PORT_WHEN_HOST_NULL = \"ER_PORT_WHEN_HOST_NULL\";\n  public static final String ER_INVALID_PORT = \"ER_INVALID_PORT\";\n  public static final String ER_FRAG_FOR_GENERIC_URI =\"ER_FRAG_FOR_GENERIC_URI\";\n  public static final String ER_FRAG_WHEN_PATH_NULL = \"ER_FRAG_WHEN_PATH_NULL\";\n  public static final String ER_FRAG_INVALID_CHAR = \"ER_FRAG_INVALID_CHAR\";\n  public static final String ER_PARSER_IN_USE = \"ER_PARSER_IN_USE\";\n  public static final String ER_CANNOT_CHANGE_WHILE_PARSING = \"ER_CANNOT_CHANGE_WHILE_PARSING\";\n  public static final String ER_SELF_CAUSATION_NOT_PERMITTED = \"ER_SELF_CAUSATION_NOT_PERMITTED\";\n  public static final String ER_NO_USERINFO_IF_NO_HOST = \"ER_NO_USERINFO_IF_NO_HOST\";\n  public static final String ER_NO_PORT_IF_NO_HOST = \"ER_NO_PORT_IF_NO_HOST\";\n  public static final String ER_NO_QUERY_STRING_IN_PATH = \"ER_NO_QUERY_STRING_IN_PATH\";\n  public static final String ER_NO_FRAGMENT_STRING_IN_PATH = \"ER_NO_FRAGMENT_STRING_IN_PATH\";\n  public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = \"ER_CANNOT_INIT_URI_EMPTY_PARMS\";\n  public static final String ER_METHOD_NOT_SUPPORTED =\"ER_METHOD_NOT_SUPPORTED\";\n  public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = \"ER_INCRSAXSRCFILTER_NOT_RESTARTABLE\";\n  public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = \"ER_XMLRDR_NOT_BEFORE_STARTPARSE\";\n  public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = \"ER_AXIS_TRAVERSER_NOT_SUPPORTED\";\n  public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = \"ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER\";\n  public static final String ER_SYSTEMID_UNKNOWN = \"ER_SYSTEMID_UNKNOWN\";\n  public static final String ER_LOCATION_UNKNOWN = \"ER_LOCATION_UNKNOWN\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = \"ER_CREATEDOCUMENT_NOT_SUPPORTED\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT\";\n  public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = \"ER_CANT_OUTPUT_TEXT_BEFORE_DOC\";\n  public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = \"ER_CANT_HAVE_MORE_THAN_ONE_ROOT\";\n  public static final String ER_ARG_LOCALNAME_NULL = \"ER_ARG_LOCALNAME_NULL\";\n  public static final String ER_ARG_LOCALNAME_INVALID = \"ER_ARG_LOCALNAME_INVALID\";\n  public static final String ER_ARG_PREFIX_INVALID = \"ER_ARG_PREFIX_INVALID\";\n\n  public static final String ER_RESOURCE_COULD_NOT_FIND = \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD = \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_INVALID_UTF16_SURROGATE = \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_NAMESPACE_PREFIX = \"ER_NAMESPACE_PREFIX\";\n  public static final String ER_STRAY_ATTRIBUTE = \"ER_STRAY_ATTIRBUTE\";\n  public static final String ER_STRAY_NAMESPACE = \"ER_STRAY_NAMESPACE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE = \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = \"ER_COULD_NOT_LOAD_METHOD_PROPERTY\";\n  public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = \"ER_SERIALIZER_NOT_CONTENTHANDLER\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = \"ER_ILLEGAL_ATTRIBUTE_POSITION\";\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /** The lookup table for error messages.   */\n  public static final Object[][] contents = {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u51fd\\u6570\\uff01\"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"\\u65e0\\u6cd5\\u8986\\u76d6\\u539f\\u56e0\"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"\\u627e\\u4e0d\\u5230\\u7f3a\\u7701\\u5b9e\\u73b0\"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"\\u5f53\\u524d\\u4e0d\\u652f\\u6301 ChunkedIntArray({0})\"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"\\u504f\\u79fb\\u5927\\u4e8e\\u69fd\"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"\\u534f\\u540c\\u7a0b\\u5e8f\\u4e0d\\u53ef\\u7528\\uff0cid={0}\"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager \\u63a5\\u6536\\u5230 co_exit() \\u8bf7\\u6c42\"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"co_joinCoroutineSet() \\u5931\\u8d25\"},\n\n    { ER_COROUTINE_PARAM,\n      \"\\u534f\\u540c\\u7a0b\\u5e8f\\u53c2\\u6570\\u9519\\u8bef\\uff08{0}\\uff09\"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\n\\u610f\\u5916\\uff1a\\u89e3\\u6790\\u5668 doTerminate \\u5e94\\u7b54 {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"\\u5206\\u6790\\u65f6\\u53ef\\u80fd\\u6ca1\\u6709\\u8c03\\u7528 parse\"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"\\u9519\\u8bef\\uff1a\\u6ca1\\u6709\\u5b9e\\u73b0\\u4e3a\\u8f74 {0} \\u8f93\\u5165\\u7684\\u8fed\\u4ee3\\u5668\"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"\\u9519\\u8bef\\uff1a\\u6ca1\\u6709\\u5b9e\\u73b0\\u8f74 {0} \\u7684\\u8fed\\u4ee3\\u5668\"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u8fed\\u4ee3\\u5668\\u514b\\u9686\"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"\\u672a\\u77e5\\u7684\\u8f74\\u904d\\u5386\\u7c7b\\u578b\\uff1a{0}\"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u8f74\\u904d\\u5386\\u7a0b\\u5e8f\\uff1a{0}\"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"\\u65e0\\u66f4\\u591a\\u7684 DTM \\u6807\\u8bc6\\u53ef\\u7528\"},\n\n    { ER_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\uff1a{0}\"},\n\n    { ER_NODE_NON_NULL,\n      \"\\u8282\\u70b9\\u5bf9\\u4e8e getDTMHandleFromNode \\u5fc5\\u987b\\u662f\\u975e\\u7a7a\\u7684\"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"\\u65e0\\u6cd5\\u5c06\\u8282\\u70b9\\u89e3\\u6790\\u5230\\u53e5\\u67c4\"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"\\u5206\\u6790\\u65f6\\u53ef\\u80fd\\u6ca1\\u6709\\u8c03\\u7528 startParse\"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse \\u9700\\u8981\\u975e\\u7a7a\\u7684 SAXParser\"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"\\u65e0\\u6cd5\\u7528\\u4ee5\\u4e0b\\u5de5\\u5177\\u521d\\u59cb\\u5316\\u89e3\\u6790\\u5668\"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"\\u4e3a\\u6c60\\u521b\\u5efa\\u65b0\\u5b9e\\u4f8b\\u65f6\\u53d1\\u751f\\u5f02\\u5e38\"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"\\u8def\\u5f84\\u5305\\u542b\\u65e0\\u6548\\u7684\\u8f6c\\u4e49\\u5e8f\\u5217\"},\n\n    { ER_SCHEME_REQUIRED,\n       \"\\u6a21\\u5f0f\\u662f\\u5fc5\\u9700\\u7684\\uff01\"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"\\u5728 URI \\u4e2d\\u627e\\u4e0d\\u5230\\u6a21\\u5f0f\\uff1a{0}\"},\n\n    { ER_NO_SCHEME_INURI,\n       \"URI \\u4e2d\\u672a\\u627e\\u5230\\u6a21\\u5f0f\"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"\\u8def\\u5f84\\u5305\\u542b\\u975e\\u6cd5\\u5b57\\u7b26\\uff1a{0}\"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"\\u65e0\\u6cd5\\u4ece\\u7a7a\\u5b57\\u7b26\\u4e32\\u8bbe\\u7f6e\\u6a21\\u5f0f\"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"\\u6a21\\u5f0f\\u4e0d\\u4e00\\u81f4\\u3002\"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"\\u4e3b\\u673a\\u4e0d\\u662f\\u683c\\u5f0f\\u826f\\u597d\\u7684\\u5730\\u5740\"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"\\u4e3b\\u673a\\u4e3a\\u7a7a\\u65f6\\uff0c\\u65e0\\u6cd5\\u8bbe\\u7f6e\\u7aef\\u53e3\"},\n\n    { ER_INVALID_PORT,\n       \"\\u65e0\\u6548\\u7684\\u7aef\\u53e3\\u53f7\"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"\\u53ea\\u80fd\\u4e3a\\u4e00\\u822c URI \\u8bbe\\u7f6e\\u7247\\u6bb5\"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"\\u8def\\u5f84\\u4e3a\\u7a7a\\u65f6\\uff0c\\u65e0\\u6cd5\\u8bbe\\u7f6e\\u7247\\u6bb5\"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"\\u7247\\u6bb5\\u5305\\u542b\\u65e0\\u6548\\u7684\\u5b57\\u7b26\"},\n\n    { ER_PARSER_IN_USE,\n      \"\\u89e3\\u6790\\u5668\\u5df2\\u5728\\u4f7f\\u7528\"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"\\u5206\\u6790\\u65f6\\u65e0\\u6cd5\\u66f4\\u6539 {0} {1}\"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"\\u4e0d\\u5141\\u8bb8\\u81ea\\u6210\\u56e0\\u679c\\u5173\\u7cfb\"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"\\u5982\\u679c\\u6ca1\\u6709\\u6307\\u5b9a\\u4e3b\\u673a\\uff0c\\u5219\\u4e0d\\u53ef\\u4ee5\\u6307\\u5b9a Userinfo\"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"\\u5982\\u679c\\u6ca1\\u6709\\u6307\\u5b9a\\u4e3b\\u673a\\uff0c\\u5219\\u4e0d\\u53ef\\u4ee5\\u6307\\u5b9a\\u7aef\\u53e3\"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"\\u8def\\u5f84\\u548c\\u67e5\\u8be2\\u5b57\\u7b26\\u4e32\\u4e2d\\u4e0d\\u80fd\\u6307\\u5b9a\\u67e5\\u8be2\\u5b57\\u7b26\\u4e32\"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"\\u8def\\u5f84\\u548c\\u7247\\u6bb5\\u4e2d\\u90fd\\u65e0\\u6cd5\\u6307\\u5b9a\\u7247\\u6bb5\"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"\\u65e0\\u6cd5\\u4ee5\\u7a7a\\u53c2\\u6570\\u521d\\u59cb\\u5316 URI\"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"\\u5c1a\\u4e0d\\u652f\\u6301\\u65b9\\u6cd5\"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"\\u5f53\\u524d\\u4e0d\\u53ef\\u91cd\\u65b0\\u542f\\u52a8 IncrementalSAXSource_Filter\"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"XMLReader \\u4e0d\\u5728 startParse \\u8bf7\\u6c42\\u4e4b\\u524d\"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u8f74\\u904d\\u5386\\u7a0b\\u5e8f\\uff1a{0}\"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"\\u4ee5\\u7a7a\\u7684 PrintWriter \\u521b\\u5efa\\u4e86 ListingErrorHandler\\uff01\"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"SystemId \\u672a\\u77e5\"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"\\u9519\\u8bef\\u4f4d\\u7f6e\\u672a\\u77e5\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"\\u524d\\u7f00\\u5fc5\\u987b\\u89e3\\u6790\\u4e3a\\u540d\\u79f0\\u7a7a\\u95f4\\uff1a{0}\"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"XPathContext \\u4e2d\\u4e0d\\u652f\\u6301 createDocument ()\\uff01\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"\\u5b50\\u5c5e\\u6027\\u6ca1\\u6709\\u6240\\u6709\\u8005\\u6587\\u6863\\uff01\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"\\u5b50\\u5c5e\\u6027\\u6ca1\\u6709\\u6240\\u6709\\u8005\\u6587\\u6863\\u5143\\u7d20\\uff01\"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"\\u8b66\\u544a\\uff1a\\u65e0\\u6cd5\\u8f93\\u51fa document \\u5143\\u7d20\\u524d\\u7684\\u6587\\u672c\\uff01\\u5ffd\\u7565...\"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"DOM \\u4e0a\\u4e0d\\u80fd\\u6709\\u591a\\u4e2a\\u6839\\uff01\"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"\\u81ea\\u53d8\\u91cf\\u201clocalName\\u201d\\u4e3a\\u7a7a\"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"QNAME \\u4e2d\\u7684\\u672c\\u5730\\u540d\\u5e94\\u5f53\\u662f\\u6709\\u6548\\u7684 NCName\"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"QNAME \\u4e2d\\u7684\\u524d\\u7f00\\u5e94\\u5f53\\u662f\\u6709\\u6548\\u7684 NCName\"},\n\n    { \"BAD_CODE\", \"createMessage \\u7684\\u53c2\\u6570\\u8d85\\u51fa\\u8303\\u56f4\"},\n    { \"FORMAT_FAILED\", \"\\u5728 messageFormat \\u8c03\\u7528\\u8fc7\\u7a0b\\u4e2d\\u629b\\u51fa\\u7684\\u5f02\\u5e38\"},\n    { \"line\", \"\\u884c\\u53f7\"},\n    { \"column\",\"\\u5217\\u53f7\"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"\\u4e32\\u884c\\u5668\\u7c7b\\u201c{0}\\u201d\\u4e0d\\u5b9e\\u73b0 org.xml.sax.ContentHandler.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"\\u627e\\u4e0d\\u5230\\u8d44\\u6e90 [ {0} ]\\u3002\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"\\u8d44\\u6e90 [ {0} ] \\u65e0\\u6cd5\\u88c5\\u5165\\uff1a{1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"\\u7f13\\u51b2\\u533a\\u5927\\u5c0f <=0\" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"\\u68c0\\u6d4b\\u5230\\u65e0\\u6548\\u7684 UTF-16 \\u66ff\\u4ee3\\u8005\\uff1a{0}\\uff1f\" },\n\n    {ER_OIERROR,\n      \"IO \\u9519\\u8bef\" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"\\u5728\\u751f\\u6210\\u5b50\\u8282\\u70b9\\u4e4b\\u540e\\u6216\\u5728\\u751f\\u6210\\u5143\\u7d20\\u4e4b\\u524d\\u65e0\\u6cd5\\u6dfb\\u52a0\\u5c5e\\u6027 {0}\\u3002\\u5c06\\u5ffd\\u7565\\u5c5e\\u6027\\u3002\"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"\\u6ca1\\u6709\\u8bf4\\u660e\\u540d\\u79f0\\u7a7a\\u95f4\\u524d\\u7f00\\u201c{0}\\u201d\\u3002\" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"\\u5c5e\\u6027\\u201c{0}\\u201d\\u5728\\u5143\\u7d20\\u5916\\u3002\" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"\\u540d\\u79f0\\u7a7a\\u95f4\\u8bf4\\u660e\\u201c{0}\\u201d=\\u201c{1}\\u201d\\u5728\\u5143\\u7d20\\u5916\\u3002\" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"\\u65e0\\u6cd5\\u88c5\\u5165\\u201c{0}\\u201d\\uff08\\u68c0\\u67e5 CLASSPATH\\uff09\\uff0c\\u73b0\\u5728\\u53ea\\u4f7f\\u7528\\u7f3a\\u7701\\u503c\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"\\u65e0\\u6cd5\\u4e3a\\u8f93\\u51fa\\u65b9\\u6cd5\\u201c{1}\\u201d\\u88c5\\u8f7d\\u5c5e\\u6027\\u6587\\u4ef6\\u201c{0}\\u201d\\uff08\\u68c0\\u67e5 CLASSPATH\\uff09\" }\n\n\n  };\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"zh\", \"CN\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"\\u65e0\\u6cd5\\u88c5\\u5165\\u4efb\\u4f55\\u8d44\\u6e90\\u5305\\u3002\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"zh\", \"CN\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"\\u65e0\\u6cd5\\u88c5\\u5165\\u4efb\\u4f55\\u8d44\\u6e90\\u5305\\u3002\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "ant-1.6-539", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/AntlibDefinition.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.AntlibDefinition", "code": "public class AntlibDefinition extends Task {\n\n    private String uri = \"\";\n    private ClassLoader antlibClassLoader;\n\n    /**\n     * The URI for this definition.\n     * If the URI is \"antlib:org.apache.tools.ant\",\n     * (this is the default uri)\n     * the uri will be set to \"\".\n     * URIs that start with \"ant:\" are reserved\n     * and are not allowed in this context.\n     * @param uri the namespace URI\n     * @throws BuildException if a reserved URI is used\n     */\n    public void setURI(String uri) throws BuildException {\n        if (uri.equals(ProjectHelper.ANT_CORE_URI)) {\n            uri = \"\";\n        }\n        if (uri.startsWith(\"ant:\")) {\n            throw new BuildException(\"Attempt to use a reserved URI \" + uri);\n        }\n        this.uri = uri;\n    }\n\n    /**\n     * The URI for this definition.\n     * @return The URI for this defintion.\n     */\n    public String getURI() {\n        return uri;\n    }\n\n    /**\n     * Set the class loader of the loading object\n     *\n     * @param classLoader a <code>ClassLoader</code> value\n     */\n    public void setAntlibClassLoader(ClassLoader classLoader) {\n        this.antlibClassLoader = classLoader;\n    }\n\n    /**\n     * The current antlib classloader\n     * @return the antlib classloader for the definition, this\n     *         is null if the definition is not used in an antlib.\n     */\n    public ClassLoader getAntlibClassLoader() {\n        return antlibClassLoader;", "functions": [{"function_name": "setURI", "code": "    public void setURI(String uri) throws BuildException {\n        if (uri.equals(ProjectHelper.ANT_CORE_URI)) {\n            uri = \"\";\n        }\n        if (uri.startsWith(\"ant:\")) {\n            throw new BuildException(\"Attempt to use a reserved URI \" + uri);\n        }\n        this.uri = uri;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [7, 9], [2, 10], [9, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 7], [10, 2], [11, 9], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getURI", "code": "    public String getURI() {\n        return uri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAntlibClassLoader", "code": "    public void setAntlibClassLoader(ClassLoader classLoader) {\n        this.antlibClassLoader = classLoader;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAntlibClassLoader", "code": "    public ClassLoader getAntlibClassLoader() {\n        return antlibClassLoader;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-2.5-5658", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/FontIndexRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.FontIndexRecord", "code": "public class FontIndexRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1026;\n    private  short      field_1_fontIndex;\n\n\n    public FontIndexRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a FontIndex record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1026 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public FontIndexRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a FontIndex record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1026 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public FontIndexRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a FontIndex record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_fontIndex              = LittleEndian.getShort(data, pos + 0x0 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[FONTX]\\n\");\n        buffer.append(\"    .fontIndex            = \")\n            .append(\"0x\").append(HexDump.toHex(  getFontIndex ()))\n            .append(\" (\").append( getFontIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/FONTX]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_fontIndex);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        FontIndexRecord rec = new FontIndexRecord();\n    \n        rec.field_1_fontIndex = field_1_fontIndex;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the font index field for the FontIndex record.\n     */\n    public short getFontIndex()\n    {\n        return field_1_fontIndex;\n    }\n\n    /**\n     * Set the font index field for the FontIndex record.\n     */\n    public void setFontIndex(short field_1_fontIndex)\n    {\n        this.field_1_fontIndex = field_1_fontIndex;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a FontIndex record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_fontIndex              = LittleEndian.getShort(data, pos + 0x0 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[FONTX]\\n\");\n        buffer.append(\"    .fontIndex            = \")\n            .append(\"0x\").append(HexDump.toHex(  getFontIndex ()))\n            .append(\" (\").append( getFontIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/FONTX]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [7, 16], [2, 17], [9, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [22, 24], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 6], [16, 7], [17, 2], [18, 9], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_fontIndex);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [6, 9], [7, 10], [8, 11], [2, 12], [9, 13], [7, 14], [10, 15], [11, 16], [13, 17], [14, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 6], [10, 7], [11, 8], [12, 2], [13, 9], [14, 7], [15, 10], [16, 11], [17, 13], [18, 14], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        FontIndexRecord rec = new FontIndexRecord();\n    \n        rec.field_1_fontIndex = field_1_fontIndex;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFontIndex", "code": "    public short getFontIndex()\n    {\n        return field_1_fontIndex;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFontIndex", "code": "    public void setFontIndex(short field_1_fontIndex)\n    {\n        this.field_1_fontIndex = field_1_fontIndex;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FontIndexRecord", "code": "    public FontIndexRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FontIndexRecord", "code": "    public FontIndexRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FontIndexRecord", "code": "    public FontIndexRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.7-918", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/Available.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Available", "code": "public class Available extends Task implements Condition {\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n\n    private String property;\n    private String classname;\n    private String filename;\n    private File file;\n    private Path filepath;\n    private String resource;\n    private FileDir type;\n    private Path classpath;\n    private AntClassLoader loader;\n    private String value = \"true\";\n    private boolean isTask = false;\n    private boolean ignoreSystemclasses = false;\n    private boolean searchParents   = false;\n\n    /**\n     * Set the searchParents attribute.\n     * This controls the behaviour of the the \"file\" type.\n     * If true, the path, parent path and grandparent path are\n     * searched for the file. If false, only the path is seached.\n     * The default value is false.\n     * @param searchParents the value to set.\n     */\n    public void setSearchParents(boolean  searchParents) {\n        this.searchParents = searchParents;\n    }\n\n    /**\n     * Set the classpath to be used when searching for classes and resources.\n     *\n     * @param classpath an Ant Path object containing the search path.\n     */\n    public void setClasspath(Path classpath) {\n        createClasspath().append(classpath);\n    }\n\n    /**\n     * Classpath to be used when searching for classes and resources.\n     *\n     * @return an empty Path instance to be configured by Ant.\n     */\n    public Path createClasspath() {\n        if (this.classpath == null) {\n            this.classpath = new Path(getProject());\n        }\n        return this.classpath.createPath();\n    }\n\n    /**\n     * Set the classpath by reference.\n     *\n     * @param r a Reference to a Path instance to be used as the classpath\n     *          value.\n     */\n    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);\n    }\n\n    /**\n     * Set the path to use when looking for a file.\n     *\n     * @param filepath a Path instance containing the search path for files.\n     */\n    public void setFilepath(Path filepath) {\n        createFilepath().append(filepath);\n    }\n\n    /**\n     * Path to search for file resources.\n     *\n     * @return a new Path instance which Ant will configure with a file search\n     *         path.\n     */\n    public Path createFilepath() {\n        if (this.filepath == null) {\n            this.filepath = new Path(getProject());\n        }\n        return this.filepath.createPath();\n    }\n\n    /**\n     * Set the name of the property which will be set if the particular resource\n     * is available.\n     *\n     * @param property the name of the property to set.\n     */\n    public void setProperty(String property) {\n        this.property = property;\n    }\n\n    /**\n     * Set the value to be given to the property if the desired resource is\n     * available.\n     *\n     * @param value the value to be given.\n     */\n    public void setValue(String value) {\n        this.value = value;\n    }\n\n    /**\n     * Set a classname of a class which must be available to set the given\n     * property.\n     *\n     * @param classname the name of the class required.\n     */\n    public void setClassname(String classname) {\n        if (!\"\".equals(classname)) {\n            this.classname = classname;\n        }\n    }\n\n    /**\n     * Set the file which must be present in the file system to set the given\n     * property.\n     *\n     * @param file the name of the file which is required.\n     */\n    public void setFile(File file) {\n        this.file = file;\n        this.filename = FILE_UTILS.removeLeadingPath(getProject().getBaseDir(), file);\n    }\n\n    /**\n     * Set the name of a Java resource which is required to set the property.\n     *\n     * @param resource the name of a resource which is required to be available.\n     */\n    public void setResource(String resource) {\n        this.resource = resource;\n    }\n\n    /**\n     * @deprecated since 1.5.x.\n     *             setType(String) is deprecated and is replaced with\n     *             setType(Available.FileDir) to make Ant's Introspection\n     *             mechanism do the work and also to encapsulate operations on\n     *             the type in its own class.\n     * @param type the type of resource\n     */\n    public void setType(String type) {\n        log(\"DEPRECATED - The setType(String) method has been deprecated.\"\n            + \" Use setType(Available.FileDir) instead.\",\n            Project.MSG_WARN);\n        this.type = new FileDir();\n        this.type.setValue(type);\n    }\n\n    /**\n     * Set what type of file is required - either directory or file.\n     *\n     * @param type an instance of the FileDir enumeratedAttribute indicating\n     *             whether the file required is to be a directory or a plain\n     *             file.\n     */\n    public void setType(FileDir type) {\n        this.type = type;\n    }\n\n    /**\n     * Set whether the search for classes should ignore the runtime classes and\n     * just use the given classpath.\n     *\n     * @param ignore true if system classes are to be ignored.\n     */\n    public void setIgnoresystemclasses(boolean ignore) {\n        this.ignoreSystemclasses = ignore;\n    }\n\n    /**\n     * Entry point when operating as a task.\n     *\n     * @exception BuildException if the task is not configured correctly.\n     */\n    public void execute() throws BuildException {\n        if (property == null) {\n            throw new BuildException(\"property attribute is required\",\n                                     getLocation());\n        }\n\n        isTask = true;\n        try {\n            if (eval()) {\n                String oldvalue = getProject().getProperty(property);\n                if (null != oldvalue && !oldvalue.equals(value)) {\n                    log(\"DEPRECATED - <available> used to override an existing\"\n                        + \" property.\"\n                        + StringUtils.LINE_SEP\n                        + \"  Build file should not reuse the same property\"\n                        + \" name for different values.\",\n                        Project.MSG_WARN);\n                }\n                getProject().setProperty(property, value);\n            }\n        } finally {\n            isTask = false;\n        }\n    }\n\n    /**\n     * Evaluate the availability of a resource.\n     *\n     * @return boolean is the resource is available.\n     * @exception BuildException if the condition is not configured correctly\n     */\n    public boolean eval() throws BuildException {\n        try {\n            if (classname == null && file == null && resource == null) {\n                throw new BuildException(\"At least one of (classname|file|\"\n                                         + \"resource) is required\", getLocation());\n            }\n            if (type != null) {\n                if (file == null) {\n                    throw new BuildException(\"The type attribute is only valid \"\n                                             + \"when specifying the file \"\n                                             + \"attribute.\", getLocation());\n                }\n            }\n            if (classpath != null) {\n                classpath.setProject(getProject());\n                this.loader = getProject().createClassLoader(classpath);\n            }\n            String appendix = \"\";\n            if (isTask) {\n                appendix = \" to set property \" + property;\n            } else {\n                setTaskName(\"available\");\n            }\n            if ((classname != null) && !checkClass(classname)) {\n                log(\"Unable to load class \" + classname + appendix,\n                    Project.MSG_VERBOSE);\n                return false;\n            }\n            if ((file != null) && !checkFile()) {\n                StringBuffer buf = new StringBuffer(\"Unable to find \");\n                if (type != null) {\n                    buf.append(type).append(' ');\n                }\n                buf.append(filename).append(appendix);\n                log(buf.toString(), Project.MSG_VERBOSE);\n                return false;\n            }\n            if ((resource != null) && !checkResource(resource)) {\n                log(\"Unable to load resource \" + resource + appendix,\n                    Project.MSG_VERBOSE);\n                return false;\n            }\n        } finally {\n            if (loader != null) {\n                loader.cleanup();\n                loader = null;\n            }\n            if (!isTask) {\n                setTaskName(null);\n            }\n        }\n        return true;\n    }\n\n    /**\n     * Search for file/directory either relative to project's\n     * basedir or in the path given as filepath.\n     *\n     * <p>filepath can be a list of directory and/or file names (gen'd\n     * via <fileset>)</p>\n     *\n     * <p>look for:</p><ul>\n     *   <li>full-pathname specified == path in list</li>\n     *   <li>full-pathname specified == parent dir of path in list</li>\n     *   <li>simple name specified   == path in list</li>\n     *   <li>simple name specified   == path in list + name</li>\n     *   <li>simple name specified   == parent dir + name</li>\n     *   <li>simple name specified   == parent of parent dir + name</li>\n     * </ul>\n     */\n    private boolean checkFile() {\n        if (filepath == null) {\n            return checkFile(file, filename);\n        } else {\n            String[] paths = filepath.list();\n            for (int i = 0; i < paths.length; ++i) {\n                log(\"Searching \" + paths[i], Project.MSG_VERBOSE);\n                File path = new File(paths[i]);\n\n                if (path.exists()\n                    && (filename.equals(paths[i])\n                        || filename.equals(path.getName()))) {\n                    if (type == null) {\n                        log(\"Found: \" + path, Project.MSG_VERBOSE);\n                        return true;\n                    } else if (type.isDir()\n                               && path.isDirectory()) {\n                        log(\"Found directory: \" + path, Project.MSG_VERBOSE);\n                        return true;\n                    } else if (type.isFile()\n                               && path.isFile()) {\n                        log(\"Found file: \" + path, Project.MSG_VERBOSE);\n                        return true;\n                    }\n                    return false;\n                }\n                File parent = path.getParentFile();\n                if (parent != null && parent.exists()\n                    && filename.equals(parent.getAbsolutePath())) {\n                    if (type == null) {\n                        log(\"Found: \" + parent, Project.MSG_VERBOSE);\n                        return true;\n                    } else if (type.isDir()) {\n                        log(\"Found directory: \" + parent, Project.MSG_VERBOSE);\n                        return true;\n                    }\n                    return false;\n                }\n                if (path.exists() && path.isDirectory()) {\n                    if (checkFile(new File(path, filename),\n                                  filename + \" in \" + path)) {\n                        return true;\n                    }\n                }\n\n                while (searchParents && parent != null && parent.exists()) {\n                    if (checkFile(new File(parent, filename),\n                                  filename + \" in \" + parent)) {\n                        return true;\n                    }\n                    parent = parent.getParentFile();\n                }\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Check if a given file exists and matches the required type.\n     */\n    private boolean checkFile(File f, String text) {\n        if (type != null) {\n            if (type.isDir()) {\n                if (f.isDirectory()) {\n                    log(\"Found directory: \" + text, Project.MSG_VERBOSE);\n                }\n                return f.isDirectory();\n            } else if (type.isFile()) {\n                if (f.isFile()) {\n                    log(\"Found file: \" + text, Project.MSG_VERBOSE);\n                }\n                return f.isFile();\n            }\n        }\n        if (f.exists()) {\n            log(\"Found: \" + text, Project.MSG_VERBOSE);\n        }\n        return f.exists();\n    }\n\n    /**\n     * Check if a given resource can be loaded.\n     */\n    private boolean checkResource(String resource) {\n        if (loader != null) {\n            return (loader.getResourceAsStream(resource) != null);\n        } else {\n            ClassLoader cL = this.getClass().getClassLoader();\n            if (cL != null) {\n                return (cL.getResourceAsStream(resource) != null);\n            } else {\n                return\n                    (ClassLoader.getSystemResourceAsStream(resource) != null);\n            }\n        }\n    }\n\n    /**\n     * Check if a given class can be loaded.\n     */\n    private boolean checkClass(String classname) {\n        try {\n            if (ignoreSystemclasses) {\n                loader = getProject().createClassLoader(classpath);\n                loader.setParentFirst(false);\n                loader.addJavaLibraries();\n                if (loader != null) {\n                    try {\n                        loader.findClass(classname);\n                    } catch (SecurityException se) {\n                        return true;\n                    }\n                } else {\n                    return false;\n                }\n            } else if (loader != null) {\n                loader.loadClass(classname);\n            } else {\n                ClassLoader l = this.getClass().getClassLoader();\n                if (l != null) {\n                    Class.forName(classname, true, l);\n                } else {\n                    Class.forName(classname);\n                }\n            }\n            return true;\n        } catch (ClassNotFoundException e) {\n            log(\"class \\\"\" + classname + \"\\\" was not found\",\n                Project.MSG_DEBUG);\n            return false;\n        } catch (NoClassDefFoundError e) {\n            log(\"Could not load dependent class \\\"\" + e.getMessage()\n                + \"\\\" for class \\\"\" + classname + \"\\\"\",\n                Project.MSG_DEBUG);\n            return false;\n        }\n    }\n\n    /**\n     * EnumeratedAttribute covering the file types to be checked for, either\n     * file or dir.\n     */\n    public static class FileDir extends EnumeratedAttribute {\n\n        private static final String[] VALUES = {\"file\", \"dir\"};\n\n        /**\n         * @see EnumeratedAttribute#getValues\n         */\n        /** {@inheritDoc}. */\n        public String[] getValues() {\n            return VALUES;\n        }\n\n        /**\n         * Indicate if the value specifies a directory.\n         *\n         * @return true if the value specifies a directory.\n         */\n        public boolean isDir() {\n            return \"dir\".equalsIgnoreCase(getValue());\n        }\n\n        /**\n         * Indicate if the value specifies a file.\n         *\n         * @return true if the value specifies a file.\n         */\n        public boolean isFile() {\n            return \"file\".equalsIgnoreCase(getValue());", "functions": [{"function_name": "setSearchParents", "code": "    public void setSearchParents(boolean  searchParents) {\n        this.searchParents = searchParents;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        createClasspath().append(classpath);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (this.classpath == null) {\n            this.classpath = new Path(getProject());\n        }\n        return this.classpath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFilepath", "code": "    public void setFilepath(Path filepath) {\n        createFilepath().append(filepath);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createFilepath", "code": "    public Path createFilepath() {\n        if (this.filepath == null) {\n            this.filepath = new Path(getProject());\n        }\n        return this.filepath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [3, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 2], [4, 1], [5, 3], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setProperty", "code": "    public void setProperty(String property) {\n        this.property = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValue", "code": "    public void setValue(String value) {\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setClassname", "code": "    public void setClassname(String classname) {\n        if (!\"\".equals(classname)) {\n            this.classname = classname;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;\n        this.filename = FILE_UTILS.removeLeadingPath(getProject().getBaseDir(), file);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setResource", "code": "    public void setResource(String resource) {\n        this.resource = resource;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setType", "code": "    public void setType(String type) {\n        log(\"DEPRECATED - The setType(String) method has been deprecated.\"\n            + \" Use setType(Available.FileDir) instead.\",\n            Project.MSG_WARN);\n        this.type = new FileDir();\n        this.type.setValue(type);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setType", "code": "    public void setType(FileDir type) {\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIgnoresystemclasses", "code": "    public void setIgnoresystemclasses(boolean ignore) {\n        this.ignoreSystemclasses = ignore;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (property == null) {\n            throw new BuildException(\"property attribute is required\",\n                                     getLocation());\n        }\n\n        isTask = true;\n        try {\n            if (eval()) {\n                String oldvalue = getProject().getProperty(property);\n                if (null != oldvalue && !oldvalue.equals(value)) {\n                    log(\"DEPRECATED - <available> used to override an existing\"\n                        + \" property.\"\n                        + StringUtils.LINE_SEP\n                        + \"  Build file should not reuse the same property\"\n                        + \" name for different values.\",\n                        Project.MSG_WARN);\n                }\n                getProject().setProperty(property, value);\n            }\n        } finally {\n            isTask = false;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 6], [3, 7], [4, 8], [2, 9], [5, 10], [6, 11], [3, 12], [3, 13], [9, 14], [3, 15], [12, 16], [14, 17], [14, 18], [15, 19], [16, 20], [16, 21], [13, 22], [12, 23], [21, 24], [22, 25], [23, 26], [26, 27], [26, 28], [28, 29], [28, 30], [30, 31], [31, 32], [31, 33], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 1], [7, 3], [8, 4], [9, 2], [10, 5], [11, 6], [12, 3], [13, 3], [14, 9], [15, 3], [16, 12], [17, 14], [18, 14], [19, 15], [20, 16], [21, 16], [22, 13], [23, 12], [24, 21], [25, 22], [26, 23], [27, 26], [28, 26], [29, 28], [30, 28], [31, 30], [32, 31], [33, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "eval", "code": "    public boolean eval() throws BuildException {\n        try {\n            if (classname == null && file == null && resource == null) {\n                throw new BuildException(\"At least one of (classname|file|\"\n                                         + \"resource) is required\", getLocation());\n            }\n            if (type != null) {\n                if (file == null) {\n                    throw new BuildException(\"The type attribute is only valid \"\n                                             + \"when specifying the file \"\n                                             + \"attribute.\", getLocation());\n                }\n            }\n            if (classpath != null) {\n                classpath.setProject(getProject());\n                this.loader = getProject().createClassLoader(classpath);\n            }\n            String appendix = \"\";\n            if (isTask) {\n                appendix = \" to set property \" + property;\n            } else {\n                setTaskName(\"available\");\n            }\n            if ((classname != null) && !checkClass(classname)) {\n                log(\"Unable to load class \" + classname + appendix,\n                    Project.MSG_VERBOSE);\n                return false;\n            }\n            if ((file != null) && !checkFile()) {\n                StringBuffer buf = new StringBuffer(\"Unable to find \");\n                if (type != null) {\n                    buf.append(type).append(' ');\n                }\n                buf.append(filename).append(appendix);\n                log(buf.toString(), Project.MSG_VERBOSE);\n                return false;\n            }\n            if ((resource != null) && !checkResource(resource)) {\n                log(\"Unable to load resource \" + resource + appendix,\n                    Project.MSG_VERBOSE);\n                return false;\n            }\n        } finally {\n            if (loader != null) {\n                loader.cleanup();\n                loader = null;\n            }\n            if (!isTask) {\n                setTaskName(null);\n            }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "LITERAL_ANCHOR", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [5, 14], [6, 15], [7, 16], [8, 17], [11, 18], [12, 19], [13, 20], [14, 21], [6, 22], [15, 23], [15, 24], [7, 25], [7, 26], [7, 27], [16, 28], [16, 29], [8, 30], [17, 31], [17, 32], [10, 33], [18, 34], [12, 35], [19, 36], [13, 37], [20, 38], [20, 39], [4, 40], [5, 41], [5, 42], [22, 43], [6, 44], [24, 45], [25, 46], [7, 47], [7, 48], [26, 49], [29, 50], [30, 51], [8, 52], [32, 53], [9, 54], [9, 55], [11, 56], [11, 57], [35, 58], [37, 59], [38, 60], [39, 61], [39, 62], [40, 63], [41, 64], [44, 65], [47, 66], [48, 67], [49, 68], [27, 69], [52, 70], [54, 71], [55, 72], [56, 73], [57, 74], [35, 75], [58, 76], [59, 77], [59, 78], [61, 79], [62, 80], [65, 81], [26, 82], [69, 83], [70, 84], [72, 85], [73, 86], [75, 87], [78, 88], [78, 89], [81, 90], [82, 91], [84, 92], [87, 93], [87, 94], [91, 95], [94, 96], [94, 97], [97, 98], [97, 99], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 5], [15, 6], [16, 7], [17, 8], [18, 11], [19, 12], [20, 13], [21, 14], [22, 6], [23, 15], [24, 15], [25, 7], [26, 7], [27, 7], [28, 16], [29, 16], [30, 8], [31, 17], [32, 17], [33, 10], [34, 18], [35, 12], [36, 19], [37, 13], [38, 20], [39, 20], [40, 4], [41, 5], [42, 5], [43, 22], [44, 6], [45, 24], [46, 25], [47, 7], [48, 7], [49, 26], [50, 29], [51, 30], [52, 8], [53, 32], [54, 9], [55, 9], [56, 11], [57, 11], [58, 35], [59, 37], [60, 38], [61, 39], [62, 39], [63, 40], [64, 41], [65, 44], [66, 47], [67, 48], [68, 49], [69, 27], [70, 52], [71, 54], [72, 55], [73, 56], [74, 57], [75, 35], [76, 58], [77, 59], [78, 59], [79, 61], [80, 62], [81, 65], [82, 26], [83, 69], [84, 70], [85, 72], [86, 73], [87, 75], [88, 78], [89, 78], [90, 81], [91, 82], [92, 84], [93, 87], [94, 87], [95, 91], [96, 94], [97, 94], [98, 97], [99, 97], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99]]}, {"function_name": "checkFile", "code": "    private boolean checkFile() {\n        if (filepath == null) {\n            return checkFile(file, filename);\n        } else {\n            String[] paths = filepath.list();\n            for (int i = 0; i < paths.length; ++i) {\n                log(\"Searching \" + paths[i], Project.MSG_VERBOSE);\n                File path = new File(paths[i]);\n\n                if (path.exists()\n                    && (filename.equals(paths[i])\n                        || filename.equals(path.getName()))) {\n                    if (type == null) {\n                        log(\"Found: \" + path, Project.MSG_VERBOSE);\n                        return true;\n                    } else if (type.isDir()\n                               && path.isDirectory()) {\n                        log(\"Found directory: \" + path, Project.MSG_VERBOSE);\n                        return true;\n                    } else if (type.isFile()\n                               && path.isFile()) {\n                        log(\"Found file: \" + path, Project.MSG_VERBOSE);\n                        return true;\n                    }\n                    return false;\n                }\n                File parent = path.getParentFile();\n                if (parent != null && parent.exists()\n                    && filename.equals(parent.getAbsolutePath())) {\n                    if (type == null) {\n                        log(\"Found: \" + parent, Project.MSG_VERBOSE);\n                        return true;\n                    } else if (type.isDir()) {\n                        log(\"Found directory: \" + parent, Project.MSG_VERBOSE);\n                        return true;\n                    }\n                    return false;\n                }\n                if (path.exists() && path.isDirectory()) {\n                    if (checkFile(new File(path, filename),\n                                  filename + \" in \" + path)) {\n                        return true;\n                    }\n                }\n\n                while (searchParents && parent != null && parent.exists()) {\n                    if (checkFile(new File(parent, filename),\n                                  filename + \" in \" + parent)) {\n                        return true;\n                    }\n                    parent = parent.getParentFile();\n                }\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LOOP", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "RETURN", "IF", "CALL", "BINARY_OP", "CALL", "RETURN", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [2, 7], [4, 8], [5, 9], [7, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [6, 17], [11, 18], [12, 19], [13, 20], [15, 21], [5, 22], [5, 23], [11, 24], [18, 25], [18, 26], [12, 27], [19, 28], [19, 29], [13, 30], [13, 31], [20, 32], [20, 33], [14, 34], [15, 35], [15, 36], [21, 37], [21, 38], [16, 39], [22, 40], [11, 41], [24, 42], [26, 43], [27, 44], [30, 45], [31, 46], [31, 47], [32, 48], [33, 49], [33, 50], [35, 51], [36, 52], [36, 53], [37, 54], [37, 55], [40, 56], [41, 57], [24, 58], [42, 59], [42, 60], [43, 61], [27, 62], [44, 63], [44, 64], [46, 65], [31, 66], [47, 67], [50, 68], [52, 69], [52, 70], [36, 71], [53, 72], [54, 73], [58, 74], [59, 75], [62, 76], [63, 77], [46, 78], [66, 79], [31, 80], [69, 81], [52, 82], [70, 83], [70, 84], [71, 85], [36, 86], [75, 87], [77, 88], [78, 89], [46, 90], [80, 91], [69, 92], [81, 93], [81, 94], [82, 95], [52, 96], [86, 97], [90, 98], [91, 99], [92, 100], [69, 101], [96, 102], [97, 103], [98, 104], [101, 105], [102, 106], [105, 107], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 2], [8, 4], [9, 5], [10, 7], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 6], [18, 11], [19, 12], [20, 13], [21, 15], [22, 5], [23, 5], [24, 11], [25, 18], [26, 18], [27, 12], [28, 19], [29, 19], [30, 13], [31, 13], [32, 20], [33, 20], [34, 14], [35, 15], [36, 15], [37, 21], [38, 21], [39, 16], [40, 22], [41, 11], [42, 24], [43, 26], [44, 27], [45, 30], [46, 31], [47, 31], [48, 32], [49, 33], [50, 33], [51, 35], [52, 36], [53, 36], [54, 37], [55, 37], [56, 40], [57, 41], [58, 24], [59, 42], [60, 42], [61, 43], [62, 27], [63, 44], [64, 44], [65, 46], [66, 31], [67, 47], [68, 50], [69, 52], [70, 52], [71, 36], [72, 53], [73, 54], [74, 58], [75, 59], [76, 62], [77, 63], [78, 46], [79, 66], [80, 31], [81, 69], [82, 52], [83, 70], [84, 70], [85, 71], [86, 36], [87, 75], [88, 77], [89, 78], [90, 46], [91, 80], [92, 69], [93, 81], [94, 81], [95, 82], [96, 52], [97, 86], [98, 90], [99, 91], [100, 92], [101, 69], [102, 96], [103, 97], [104, 98], [105, 101], [106, 102], [107, 105], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107]]}, {"function_name": "checkFile", "code": "    private boolean checkFile(File f, String text) {\n        if (type != null) {\n            if (type.isDir()) {\n                if (f.isDirectory()) {\n                    log(\"Found directory: \" + text, Project.MSG_VERBOSE);\n                }\n                return f.isDirectory();\n            } else if (type.isFile()) {\n                if (f.isFile()) {\n                    log(\"Found file: \" + text, Project.MSG_VERBOSE);\n                }\n                return f.isFile();\n            }\n        }\n        if (f.exists()) {\n            log(\"Found: \" + text, Project.MSG_VERBOSE);\n        }\n        return f.exists();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [3, 9], [8, 10], [2, 11], [9, 12], [9, 13], [11, 14], [12, 15], [9, 16], [9, 17], [14, 18], [12, 19], [12, 20], [16, 21], [17, 22], [19, 23], [20, 24], [17, 25], [20, 26], [25, 27], [26, 28], [27, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 3], [10, 8], [11, 2], [12, 9], [13, 9], [14, 11], [15, 12], [16, 9], [17, 9], [18, 14], [19, 12], [20, 12], [21, 16], [22, 17], [23, 19], [24, 20], [25, 17], [26, 20], [27, 25], [28, 26], [29, 27], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "checkResource", "code": "    private boolean checkResource(String resource) {\n        if (loader != null) {\n            return (loader.getResourceAsStream(resource) != null);\n        } else {\n            ClassLoader cL = this.getClass().getClassLoader();\n            if (cL != null) {\n                return (cL.getResourceAsStream(resource) != null);\n            } else {\n                return\n                    (ClassLoader.getSystemResourceAsStream(resource) != null);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [6, 9], [4, 10], [4, 11], [8, 12], [9, 13], [9, 14], [10, 15], [11, 16], [5, 17], [5, 18], [15, 19], [15, 20], [16, 21], [16, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 6], [10, 4], [11, 4], [12, 8], [13, 9], [14, 9], [15, 10], [16, 11], [17, 5], [18, 5], [19, 15], [20, 15], [21, 16], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "checkClass", "code": "    private boolean checkClass(String classname) {\n        try {\n            if (ignoreSystemclasses) {\n                loader = getProject().createClassLoader(classpath);\n                loader.setParentFirst(false);\n                loader.addJavaLibraries();\n                if (loader != null) {\n                    try {\n                        loader.findClass(classname);\n                    } catch (SecurityException se) {\n                        return true;\n                    }\n                } else {\n                    return false;\n                }\n            } else if (loader != null) {\n                loader.loadClass(classname);\n            } else {\n                ClassLoader l = this.getClass().getClassLoader();\n                if (l != null) {\n                    Class.forName(classname, true, l);\n                } else {\n                    Class.forName(classname);\n                }\n            }\n            return true;\n        } catch (ClassNotFoundException e) {\n            log(\"class \\\"\" + classname + \"\\\" was not found\",\n                Project.MSG_DEBUG);\n            return false;\n        } catch (NoClassDefFoundError e) {\n            log(\"Could not load dependent class \\\"\" + e.getMessage()\n                + \"\\\" for class \\\"\" + classname + \"\\\"\",\n                Project.MSG_DEBUG);\n            return false;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "RETURN", "IF", "RETURN", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [3, 12], [8, 13], [4, 14], [10, 15], [6, 16], [12, 17], [14, 18], [10, 19], [10, 20], [15, 21], [16, 22], [6, 23], [6, 24], [6, 25], [17, 26], [17, 27], [18, 28], [18, 29], [19, 30], [10, 31], [16, 32], [16, 33], [22, 34], [24, 35], [25, 36], [27, 37], [29, 38], [30, 39], [32, 40], [33, 41], [36, 42], [37, 43], [37, 44], [19, 45], [19, 46], [20, 47], [20, 48], [41, 49], [33, 50], [44, 51], [44, 52], [46, 53], [49, 54], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 5], [10, 6], [11, 7], [12, 3], [13, 8], [14, 4], [15, 10], [16, 6], [17, 12], [18, 14], [19, 10], [20, 10], [21, 15], [22, 16], [23, 6], [24, 6], [25, 6], [26, 17], [27, 17], [28, 18], [29, 18], [30, 19], [31, 10], [32, 16], [33, 16], [34, 22], [35, 24], [36, 25], [37, 27], [38, 29], [39, 30], [40, 32], [41, 33], [42, 36], [43, 37], [44, 37], [45, 19], [46, 19], [47, 20], [48, 20], [49, 41], [50, 33], [51, 44], [52, 44], [53, 46], [54, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}], "label": 1}
{"sample_id": "camel-1.4-2289", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/builder/Builder.java", "language": "java", "name": "org.apache.camel.builder.Builder", "code": "public final class Builder {\n\n    /**\n     * Utility classes should not have a public constructor.\n     */\n    private Builder() {\n    }\n\n    /**\n     * Returns a constant expression\n     */\n    public static <E extends Exchange> ValueBuilder<E> constant(Object value) {\n        Expression<E> expression = ExpressionBuilder.constantExpression(value);\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for headers on an exchange\n     */\n    public static <E extends Exchange> ValueBuilder<E> header(String name) {\n        Expression<E> expression = ExpressionBuilder.headerExpression(name);\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the inbound body on an exchange\n     */\n    public static <E extends Exchange> ValueBuilder<E> body() {\n        Expression<E> expression = ExpressionBuilder.bodyExpression();\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the inbound message body as a\n     * specific type\n     */\n    public static <E extends Exchange, T> ValueBuilder<E> bodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.<E, T> bodyExpression(type);\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the outbound body on an\n     * exchange\n     */\n    public static <E extends Exchange> ValueBuilder<E> outBody() {\n        Expression<E> expression = ExpressionBuilder.outBodyExpression();\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the outbound message body as a\n     * specific type\n     */\n    public static <E extends Exchange, T> ValueBuilder<E> outBodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.<E, T> outBodyExpression(type);\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the fault body on an\n     * exchange\n     */\n    public static <E extends Exchange> ValueBuilder<E> faultBody() {\n        Expression<E> expression = ExpressionBuilder.faultBodyExpression();\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the fault message body as a\n     * specific type\n     */\n    public static <E extends Exchange, T> ValueBuilder<E> faultBodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.<E, T> faultBodyExpression(type);\n        return new ValueBuilder<E>(expression);\n    }\n\n    /**\n     * Returns an expression for the given system property\n     */\n    public static <E extends Exchange> ValueBuilder<E> systemProperty(final String name) {\n        return systemProperty(name, null);\n    }\n\n    /**\n     * Returns an expression for the given system property\n     */\n    public static <E extends Exchange> ValueBuilder<E> systemProperty(final String name,\n                                                                      final String defaultValue) {\n        return new ValueBuilder<E>(ExpressionBuilder.<E> systemProperty(name, defaultValue));", "functions": [{"function_name": "constant", "code": "    public static <E extends Exchange> ValueBuilder<E> constant(Object value) {\n        Expression<E> expression = ExpressionBuilder.constantExpression(value);\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "header", "code": "    public static <E extends Exchange> ValueBuilder<E> header(String name) {\n        Expression<E> expression = ExpressionBuilder.headerExpression(name);\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "body", "code": "    public static <E extends Exchange> ValueBuilder<E> body() {\n        Expression<E> expression = ExpressionBuilder.bodyExpression();\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "bodyAs", "code": "    public static <E extends Exchange, T> ValueBuilder<E> bodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.<E, T> bodyExpression(type);\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "outBody", "code": "    public static <E extends Exchange> ValueBuilder<E> outBody() {\n        Expression<E> expression = ExpressionBuilder.outBodyExpression();\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "outBodyAs", "code": "    public static <E extends Exchange, T> ValueBuilder<E> outBodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.<E, T> outBodyExpression(type);\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "faultBody", "code": "    public static <E extends Exchange> ValueBuilder<E> faultBody() {\n        Expression<E> expression = ExpressionBuilder.faultBodyExpression();\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "faultBodyAs", "code": "    public static <E extends Exchange, T> ValueBuilder<E> faultBodyAs(Class<T> type) {\n        Expression<E> expression = ExpressionBuilder.<E, T> faultBodyExpression(type);\n        return new ValueBuilder<E>(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "systemProperty", "code": "    public static <E extends Exchange> ValueBuilder<E> systemProperty(final String name) {\n        return systemProperty(name, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "systemProperty", "code": "    public static <E extends Exchange> ValueBuilder<E> systemProperty(final String name,\n                                                                      final String defaultValue) {\n        return new ValueBuilder<E>(ExpressionBuilder.<E> systemProperty(name, defaultValue));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Builder", "code": "    private Builder() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.0-1458", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/http/HttpComponent.java", "language": "java", "name": "org.apache.camel.component.http.HttpComponent", "code": "public class HttpComponent extends DefaultComponent<HttpExchange> {\n\t\n\tprivate CamelServlet camelServlet;\n\t\n\t/** \n\t * Connects the URL specified on the endpoint to the specified processor.\n\t *  \n\t * @throws Exception\n\t */\n\tpublic void connect(HttpConsumer consumer) throws Exception {\n\t\tcamelServlet.connect(consumer);\n\t}\n\n\t/**\n\t * Disconnects the URL specified on the endpoint from the specified processor.\n\t * \n\t * @throws Exception\n\t */\n\tpublic void disconnect(HttpConsumer consumer) throws Exception {\n\t\tcamelServlet.disconnect(consumer);\n\t}\n\n\tpublic CamelServlet getCamelServlet() {\n\t\treturn camelServlet;\n\t}\n\n\tpublic void setCamelServlet(CamelServlet camelServlet) {\n\t\tthis.camelServlet = camelServlet;\n\t}\n\n\t@Override\n\tprotected Endpoint<HttpExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n\t\treturn new HttpEndpoint(uri, this);", "functions": [{"function_name": "connect", "code": "\tpublic void connect(HttpConsumer consumer) throws Exception {\n\t\tcamelServlet.connect(consumer);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "disconnect", "code": "\tpublic void disconnect(HttpConsumer consumer) throws Exception {\n\t\tcamelServlet.disconnect(consumer);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCamelServlet", "code": "\tpublic CamelServlet getCamelServlet() {\n\t\treturn camelServlet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCamelServlet", "code": "\tpublic void setCamelServlet(CamelServlet camelServlet) {\n\t\tthis.camelServlet = camelServlet;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createEndpoint", "code": "\t@Override\n\tprotected Endpoint<HttpExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n\t\treturn new HttpEndpoint(uri, this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "poi-2.0-5461", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hpsf/ClassID.java", "language": "java", "name": "org.apache.poi.hpsf.ClassID", "code": "public class ClassID\n{\n\n    /**\n     * <p>The bytes making out the class ID in correct order,\n     * i.e. big-endian.</p>\n     */\n    protected byte[] bytes;\n\n\n\n    /**\n     *  <p>Creates a {@link ClassID} and reads its value from a byte\n     *  array.</p>\n     *\n     * @param src The byte array to read from.\n     * @param offset The offset of the first byte to read.\n     */\n    public ClassID(final byte[] src, final int offset)\n    {\n        read(src, offset);\n    }\n\n\n    /**\n     *  <p>Creates a {@link ClassID} and initializes its value with\n     *  0x00 bytes.</p>\n     */\n    public ClassID()\n    {\n        bytes = new byte[LENGTH];\n        for (int i = 0; i < LENGTH; i++)\n            bytes[i] = 0x00;\n    }\n\n\n\n    /** <p>The number of bytes occupied by this object in the byte\n     * stream.</p> */\n    public static final int LENGTH = 16;\n\n    /**\n     * @return The number of bytes occupied by this object in the byte\n     * stream.\n     */\n    public int length()\n    {\n        return LENGTH;\n    }\n\n\n\n    /**\n     * <p>Gets the bytes making out the class ID. They are returned in\n     * correct order, i.e. big-endian.</p>\n     * \n     * @return the bytes making out the class ID.\n     */\n    public byte[] getBytes()\n    {\n        return bytes;\n    }\n\n\n\n    /**\n     * <p>Reads the class ID's value from a byte array by turning\n     * little-endian into big-endian.</p>\n     *\n     * @param src The byte array to read from\n     *\n     * @param offset The offset within the <var>src</var> byte array\n     *\n     * @return A byte array containing the class ID.\n     */\n    public byte[] read(final byte[] src, final int offset)\n    {\n        bytes = new byte[16];\n\n        /* Read double word. */\n        bytes[0] = src[3 + offset];\n        bytes[1] = src[2 + offset];\n        bytes[2] = src[1 + offset];\n        bytes[3] = src[0 + offset];\n\n        /* Read first word. */\n        bytes[4] = src[5 + offset];\n        bytes[5] = src[4 + offset];\n\n        /* Read second word. */\n        bytes[6] = src[7 + offset];\n        bytes[7] = src[6 + offset];\n\n        /* Read 8 bytes. */\n        for (int i = 8; i < 16; i++)\n            bytes[i] = src[i + offset];\n\n        return bytes;\n    }\n\n\n\n    /**\n     * <p>Writes the class ID to a byte array in the\n     * little-endian.</p>\n     *\n     * @param dst The byte array to write to.\n     *\n     * @param offset The offset within the <var>dst</var> byte array.\n     *\n     * @exception ArrayStoreException if there is not enough room for the class \n     * ID 16 bytes in the byte array after the <var>offset</var> position.\n     */\n    public void write(final byte[] dst, final int offset)\n    throws ArrayStoreException\n    {\n        /* Check array size: */\n        if (dst.length < 16)\n            throw new ArrayStoreException\n                (\"Destination byte[] must have room for at least 16 bytes, \" +\n                 \"but has a length of only \" + dst.length + \".\");\n        /* Write double word. */\n        dst[0 + offset] = bytes[3];\n        dst[1 + offset] = bytes[2];\n        dst[2 + offset] = bytes[1];\n        dst[3 + offset] = bytes[0];\n\n        /* Write first word. */\n        dst[4 + offset] = bytes[5];\n        dst[5 + offset] = bytes[4];\n\n        /* Write second word. */\n        dst[6 + offset] = bytes[7];\n        dst[7 + offset] = bytes[6];\n\n        /* Write 8 bytes. */\n        for (int i = 8; i < 16; i++)\n            dst[i + offset] = bytes[i];\n    }\n\n\n\n    /**\n     * <p>Checks whether this <code>ClassID</code> is equal to another\n     * object.</p>\n     *\n     * @param o the object to compare this <code>PropertySet</code> with\n     * @return <code>true</code> if the objects are equal, else\n     * <code>false</code>.</p>\n     */\n    public boolean equals(final Object o)\n    {\n        if (o == null || !(o instanceof ClassID))\n            return false;\n        final ClassID cid = (ClassID) o;\n        if (bytes.length != cid.bytes.length)\n            return false;\n        for (int i = 0; i < bytes.length; i++)\n            if (bytes[i] != cid.bytes[i])\n                return false;\n        return true;\n    }\n    /**\n     * Returns a human readable representation of the Class ID\n     *   in standard format <code>\"{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}\"</code>\n     * @return String representation of the Class ID represented\n     *   by this object.\n     */\n    public String toString()\n    {\n        StringBuffer sbClassId = new StringBuffer( 38);\n        sbClassId.append( '{');\n        for( int i=0; i < 16; i++) {\n            sbClassId.append( HexDump.toHex( bytes[ i]));\n            if( i == 3 || i == 5 || i == 7 || i == 9) {\n                sbClassId.append( '-');\n            }\n        }\n        sbClassId.append( '}');\n        return sbClassId.toString();", "functions": [{"function_name": "length", "code": "    public int length()\n    {\n        return LENGTH;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBytes", "code": "    public byte[] getBytes()\n    {\n        return bytes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "read", "code": "    public byte[] read(final byte[] src, final int offset)\n    {\n        bytes = new byte[16];\n\n        /* Read double word. */\n        bytes[0] = src[3 + offset];\n        bytes[1] = src[2 + offset];\n        bytes[2] = src[1 + offset];\n        bytes[3] = src[0 + offset];\n\n        /* Read first word. */\n        bytes[4] = src[5 + offset];\n        bytes[5] = src[4 + offset];\n\n        /* Read second word. */\n        bytes[6] = src[7 + offset];\n        bytes[7] = src[6 + offset];\n\n        /* Read 8 bytes. */\n        for (int i = 8; i < 16; i++)\n            bytes[i] = src[i + offset];\n\n        return bytes;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [5, 16], [2, 17], [14, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [10, 27], [10, 28], [11, 29], [11, 30], [12, 31], [12, 32], [13, 33], [13, 34], [15, 35], [19, 36], [21, 37], [23, 38], [25, 39], [27, 40], [29, 41], [31, 42], [33, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 5], [17, 2], [18, 14], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 10], [28, 10], [29, 11], [30, 11], [31, 12], [32, 12], [33, 13], [34, 13], [35, 15], [36, 19], [37, 21], [38, 23], [39, 25], [40, 27], [41, 29], [42, 31], [43, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "write", "code": "    public void write(final byte[] dst, final int offset)\n    throws ArrayStoreException\n    {\n        /* Check array size: */\n        if (dst.length < 16)\n            throw new ArrayStoreException\n                (\"Destination byte[] must have room for at least 16 bytes, \" +\n                 \"but has a length of only \" + dst.length + \".\");\n        /* Write double word. */\n        dst[0 + offset] = bytes[3];\n        dst[1 + offset] = bytes[2];\n        dst[2 + offset] = bytes[1];\n        dst[3 + offset] = bytes[0];\n\n        /* Write first word. */\n        dst[4 + offset] = bytes[5];\n        dst[5 + offset] = bytes[4];\n\n        /* Write second word. */\n        dst[6 + offset] = bytes[7];\n        dst[7 + offset] = bytes[6];\n\n        /* Write 8 bytes. */\n        for (int i = 8; i < 16; i++)\n            dst[i + offset] = bytes[i];", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [2, 15], [1, 16], [5, 17], [14, 18], [15, 19], [1, 20], [18, 21], [6, 22], [6, 23], [7, 24], [7, 25], [8, 26], [8, 27], [9, 28], [9, 29], [10, 30], [10, 31], [11, 32], [11, 33], [12, 34], [12, 35], [13, 36], [13, 37], [21, 38], [21, 39], [16, 40], [23, 41], [25, 42], [27, 43], [29, 44], [31, 45], [33, 46], [35, 47], [37, 48], [39, 49], [49, 50], [49, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 2], [16, 1], [17, 5], [18, 14], [19, 15], [20, 1], [21, 18], [22, 6], [23, 6], [24, 7], [25, 7], [26, 8], [27, 8], [28, 9], [29, 9], [30, 10], [31, 10], [32, 11], [33, 11], [34, 12], [35, 12], [36, 13], [37, 13], [38, 21], [39, 21], [40, 16], [41, 23], [42, 25], [43, 27], [44, 29], [45, 31], [46, 33], [47, 35], [48, 37], [49, 39], [50, 49], [51, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "equals", "code": "    public boolean equals(final Object o)\n    {\n        if (o == null || !(o instanceof ClassID))\n            return false;\n        final ClassID cid = (ClassID) o;\n        if (bytes.length != cid.bytes.length)\n            return false;\n        for (int i = 0; i < bytes.length; i++)\n            if (bytes[i] != cid.bytes[i])\n                return false;\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [3, 10], [3, 11], [5, 12], [5, 13], [8, 14], [8, 15], [10, 16], [12, 17], [13, 18], [13, 19], [14, 20], [2, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 3], [11, 3], [12, 5], [13, 5], [14, 8], [15, 8], [16, 10], [17, 12], [18, 13], [19, 13], [20, 14], [21, 2], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer sbClassId = new StringBuffer( 38);\n        sbClassId.append( '{');\n        for( int i=0; i < 16; i++) {\n            sbClassId.append( HexDump.toHex( bytes[ i]));\n            if( i == 3 || i == 5 || i == 7 || i == 9) {\n                sbClassId.append( '-');\n            }\n        }\n        sbClassId.append( '}');\n        return sbClassId.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [5, 8], [2, 9], [6, 10], [7, 11], [3, 12], [9, 13], [2, 14], [2, 15], [12, 16], [13, 17], [13, 18], [14, 19], [9, 20], [17, 21], [18, 22], [18, 23], [20, 24], [22, 25], [23, 26], [23, 27], [26, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 5], [9, 2], [10, 6], [11, 7], [12, 3], [13, 9], [14, 2], [15, 2], [16, 12], [17, 13], [18, 13], [19, 14], [20, 9], [21, 17], [22, 18], [23, 18], [24, 20], [25, 22], [26, 23], [27, 23], [28, 26], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "ClassID", "code": "    public ClassID(final byte[] src, final int offset)\n    {\n        read(src, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ClassID", "code": "    public ClassID()\n    {\n        bytes = new byte[LENGTH];\n        for (int i = 0; i < LENGTH; i++)\n            bytes[i] = 0x00;", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 0], [2, 1], [3, 0], [4, 1], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "jedit-4.2-4444", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/syntax/ParserRuleSet.java", "language": "java", "name": "org.gjt.sp.jedit.syntax.ParserRuleSet", "code": "public class ParserRuleSet\n{\n\t//{{{ getStandardRuleSet() method\n\t/**\n\t * Returns a parser rule set that highlights everything with the\n\t * specified token type.\n\t * @param id The token type\n\t */\n\tpublic static ParserRuleSet getStandardRuleSet(byte id)\n\t{\n\t\treturn standard[id];\n\t} //}}}\n\n\t//{{{ ParserRuleSet constructor\n\tpublic ParserRuleSet(String modeName, String setName)\n\t{\n\t\tthis.modeName = modeName;\n\t\tthis.setName = setName;\n\t\truleMapFirst = new ParserRule[RULE_BUCKET_COUNT];\n\t\truleMapLast = new ParserRule[RULE_BUCKET_COUNT];\n\t\timports = new LinkedList();\n\t} //}}}\n\n\t//{{{ getModeName() method\n\tpublic String getModeName()\n\t{\n\t\treturn modeName;\n\t} //}}}\n\n\t//{{{ getSetName() method\n\tpublic String getSetName()\n\t{\n\t\treturn setName;\n\t} //}}}\n\n\t//{{{ getName() method\n\tpublic String getName()\n\t{\n\t\treturn modeName + \"::\" + setName;\n\t} //}}}\n\n\t//{{{ getProperties() method\n\tpublic Hashtable getProperties()\n\t{\n\t\treturn props;\n\t} //}}}\n\n\t//{{{ setProperties() method\n\tpublic void setProperties(Hashtable props)\n\t{\n\t\tthis.props = props;\n\t\t_noWordSep = null;\n\t} //}}}\n\n\t//{{{ resolveImports() method\n\t/**\n\t * Resolves all rulesets added with {@link #addRuleSet(ParserRuleSet)}.\n\t * @since jEdit 4.2pre3\n\t */\n\tpublic void resolveImports()\n\t{\n\t\tIterator iter = imports.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tParserRuleSet ruleset = (ParserRuleSet)iter.next();\n\t\t\tfor(int i = 0; i < ruleset.ruleMapFirst.length; i++)\n\t\t\t{\n\t\t\t\tParserRule rule = ruleset.ruleMapFirst[i];\n\t\t\t\twhile(rule != null)\n\t\t\t\t{\n\t\t\t\t\taddRule(rule);\n\t\t\t\t\trule = rule.next;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(ruleset.keywords != null)\n\t\t\t{\n\t\t\t\tif(keywords == null)\n\t\t\t\t\tkeywords = new KeywordMap(ignoreCase);\n\t\t\t\tkeywords.add(ruleset.keywords);\n\t\t\t}\n\t\t}\n\t\timports.clear();\n\t} //}}}\n\n\t//{{{ addRuleSet() method\n\t/**\n\t * Adds all rules contained in the given ruleset.\n\t * @param ruleset The ruleset\n\t * @since jEdit 4.2pre3\n\t */\n\tpublic void addRuleSet(ParserRuleSet ruleset)\n\t{\n\t\timports.add(ruleset);\n\t} //}}}\n\n\t//{{{ addRule() method\n\tpublic void addRule(ParserRule r)\n\t{\n\t\truleCount++;\n\n\t\tint key = Character.toUpperCase(r.hashChar)\n\t\t\t% RULE_BUCKET_COUNT;\n\t\tParserRule last = ruleMapLast[key];\n\t\tif(last == null)\n\t\t\truleMapFirst[key] = ruleMapLast[key] = r;\n\t\telse\n\t\t{\n\t\t\tlast.next = r;\n\t\t\truleMapLast[key] = r;\n\t\t}\n\t} //}}}\n\n\t//{{{ getRules() method\n\tpublic ParserRule getRules(char ch)\n\t{\n\t\tint key = Character.toUpperCase(ch) % RULE_BUCKET_COUNT;\n\t\treturn ruleMapFirst[key];\n\t} //}}}\n\n\t//{{{ getRuleCount() method\n\tpublic int getRuleCount()\n\t{\n\t\treturn ruleCount;\n\t} //}}}\n\n\t//{{{ getTerminateChar() method\n\tpublic int getTerminateChar()\n\t{\n\t\treturn terminateChar;\n\t} //}}}\n\n\t//{{{ setTerminateChar() method\n\tpublic void setTerminateChar(int atChar)\n\t{\n\t\tterminateChar = (atChar >= 0) ? atChar : -1;\n\t} //}}}\n\n\t//{{{ getIgnoreCase() method\n\tpublic boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;\n\t} //}}}\n\n\t//{{{ setIgnoreCase() method\n\tpublic void setIgnoreCase(boolean b)\n\t{\n\t\tignoreCase = b;\n\t} //}}}\n\n\t//{{{ getKeywords() method\n\tpublic KeywordMap getKeywords()\n\t{\n\t\treturn keywords;\n\t} //}}}\n\n\t//{{{ setKeywords() method\n\tpublic void setKeywords(KeywordMap km)\n\t{\n\t\tkeywords = km;\n\t\t_noWordSep = null;\n\t} //}}}\n\n\t//{{{ getHighlightDigits() method\n\tpublic boolean getHighlightDigits()\n\t{\n\t\treturn highlightDigits;\n\t} //}}}\n\n\t//{{{ setHighlightDigits() method\n\tpublic void setHighlightDigits(boolean highlightDigits)\n\t{\n\t\tthis.highlightDigits = highlightDigits;\n\t} //}}}\n\n\t//{{{ getDigitRegexp() method\n\tpublic RE getDigitRegexp()\n\t{\n\t\treturn digitRE;\n\t} //}}}\n\n\t//{{{ setDigitRegexp() method\n\tpublic void setDigitRegexp(RE digitRE)\n\t{\n\t\tthis.digitRE = digitRE;\n\t} //}}}\n\n\t//{{{ getEscapeRule() method\n\tpublic ParserRule getEscapeRule()\n\t{\n\t\treturn escapeRule;\n\t} //}}}\n\n\t//{{{ setEscapeRule() method\n\tpublic void setEscapeRule(ParserRule escapeRule)\n\t{\n\t\taddRule(escapeRule);\n\t\tthis.escapeRule = escapeRule;\n\t} //}}}\n\n\t//{{{ getDefault() method\n\tpublic byte getDefault()\n\t{\n\t\treturn defaultToken;\n\t} //}}}\n\n\t//{{{ setDefault() method\n\tpublic void setDefault(byte def)\n\t{\n\t\tdefaultToken = def;\n\t} //}}}\n\n\t//{{{ getNoWordSep() method\n\tpublic String getNoWordSep()\n\t{\n\t\tif(_noWordSep == null)\n\t\t{\n\t\t\t_noWordSep = noWordSep;\n\t\t\tif(noWordSep == null)\n\t\t\t\tnoWordSep = \"\";\n\t\t\tif(keywords != null)\n\t\t\t\tnoWordSep += keywords.getNonAlphaNumericChars();\n\t\t}\n\t\treturn noWordSep;\n\t} //}}}\n\n\t//{{{ setNoWordSep() method\n\tpublic void setNoWordSep(String noWordSep)\n\t{\n\t\tthis.noWordSep = noWordSep;\n\t\t_noWordSep = null;\n\t} //}}}\n\n\t//{{{ isBuiltIn() method\n\t/**\n\t * Returns if this is a built-in ruleset.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic boolean isBuiltIn()\n\t{\n\t\treturn builtIn;\n\t} //}}}\n\n\t//{{{ toString() method\n\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[\" + modeName + \"::\" + setName + \"]\";\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static ParserRuleSet[] standard;\n\n\tstatic\n\t{\n\t\tstandard = new ParserRuleSet[Token.ID_COUNT];\n\t\tfor(byte i = 0; i < standard.length; i++)\n\t\t{\n\t\t\tstandard[i] = new ParserRuleSet(null,null);\n\t\t\tstandard[i].setDefault(i);\n\t\t\tstandard[i].builtIn = true;\n\t\t}\n\t}\n\n\tprivate static final int RULE_BUCKET_COUNT = 128;\n\n\tprivate String modeName, setName;\n\tprivate Hashtable props;\n\n\tprivate KeywordMap keywords;\n\n\tprivate int ruleCount;\n\n\tprivate ParserRule[] ruleMapFirst;\n\tprivate ParserRule[] ruleMapLast;\n\n\tprivate LinkedList imports;\n\n\tprivate int terminateChar = -1;\n\tprivate boolean ignoreCase = true;\n\tprivate byte defaultToken;\n\tprivate ParserRule escapeRule;\n\n\tprivate boolean highlightDigits;\n\tprivate RE digitRE;\n\n\tprivate String _noWordSep;\n\tprivate String noWordSep;\n\n\tprivate boolean builtIn;", "functions": [{"function_name": "getStandardRuleSet", "code": "\tpublic static ParserRuleSet getStandardRuleSet(byte id)\n\t{\n\t\treturn standard[id];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getModeName", "code": "\tpublic String getModeName()\n\t{\n\t\treturn modeName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSetName", "code": "\tpublic String getSetName()\n\t{\n\t\treturn setName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn modeName + \"::\" + setName;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getProperties", "code": "\tpublic Hashtable getProperties()\n\t{\n\t\treturn props;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProperties", "code": "\tpublic void setProperties(Hashtable props)\n\t{\n\t\tthis.props = props;\n\t\t_noWordSep = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "resolveImports", "code": "\tpublic void resolveImports()\n\t{\n\t\tIterator iter = imports.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tParserRuleSet ruleset = (ParserRuleSet)iter.next();\n\t\t\tfor(int i = 0; i < ruleset.ruleMapFirst.length; i++)\n\t\t\t{\n\t\t\t\tParserRule rule = ruleset.ruleMapFirst[i];\n\t\t\t\twhile(rule != null)\n\t\t\t\t{\n\t\t\t\t\taddRule(rule);\n\t\t\t\t\trule = rule.next;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(ruleset.keywords != null)\n\t\t\t{\n\t\t\t\tif(keywords == null)\n\t\t\t\t\tkeywords = new KeywordMap(ignoreCase);\n\t\t\t\tkeywords.add(ruleset.keywords);\n\t\t\t}\n\t\t}\n\t\timports.clear();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "IF", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [5, 9], [6, 10], [5, 11], [9, 12], [6, 13], [6, 14], [5, 15], [11, 16], [13, 17], [6, 18], [7, 19], [11, 20], [16, 21], [17, 22], [20, 23], [13, 24], [13, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 5], [10, 6], [11, 5], [12, 9], [13, 6], [14, 6], [15, 5], [16, 11], [17, 13], [18, 6], [19, 7], [20, 11], [21, 16], [22, 17], [23, 20], [24, 13], [25, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "addRuleSet", "code": "\tpublic void addRuleSet(ParserRuleSet ruleset)\n\t{\n\t\timports.add(ruleset);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addRule", "code": "\tpublic void addRule(ParserRule r)\n\t{\n\t\truleCount++;\n\n\t\tint key = Character.toUpperCase(r.hashChar)\n\t\t\t% RULE_BUCKET_COUNT;\n\t\tParserRule last = ruleMapLast[key];\n\t\tif(last == null)\n\t\t\truleMapFirst[key] = ruleMapLast[key] = r;\n\t\telse\n\t\t{\n\t\t\tlast.next = r;\n\t\t\truleMapLast[key] = r;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [3, 8], [1, 9], [1, 10], [6, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 3], [9, 1], [10, 1], [11, 6], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getRules", "code": "\tpublic ParserRule getRules(char ch)\n\t{\n\t\tint key = Character.toUpperCase(ch) % RULE_BUCKET_COUNT;\n\t\treturn ruleMapFirst[key];", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getRuleCount", "code": "\tpublic int getRuleCount()\n\t{\n\t\treturn ruleCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTerminateChar", "code": "\tpublic int getTerminateChar()\n\t{\n\t\treturn terminateChar;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTerminateChar", "code": "\tpublic void setTerminateChar(int atChar)\n\t{\n\t\tterminateChar = (atChar >= 0) ? atChar : -1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getIgnoreCase", "code": "\tpublic boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreCase", "code": "\tpublic void setIgnoreCase(boolean b)\n\t{\n\t\tignoreCase = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getKeywords", "code": "\tpublic KeywordMap getKeywords()\n\t{\n\t\treturn keywords;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setKeywords", "code": "\tpublic void setKeywords(KeywordMap km)\n\t{\n\t\tkeywords = km;\n\t\t_noWordSep = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getHighlightDigits", "code": "\tpublic boolean getHighlightDigits()\n\t{\n\t\treturn highlightDigits;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHighlightDigits", "code": "\tpublic void setHighlightDigits(boolean highlightDigits)\n\t{\n\t\tthis.highlightDigits = highlightDigits;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDigitRegexp", "code": "\tpublic RE getDigitRegexp()\n\t{\n\t\treturn digitRE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDigitRegexp", "code": "\tpublic void setDigitRegexp(RE digitRE)\n\t{\n\t\tthis.digitRE = digitRE;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEscapeRule", "code": "\tpublic ParserRule getEscapeRule()\n\t{\n\t\treturn escapeRule;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEscapeRule", "code": "\tpublic void setEscapeRule(ParserRule escapeRule)\n\t{\n\t\taddRule(escapeRule);\n\t\tthis.escapeRule = escapeRule;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDefault", "code": "\tpublic byte getDefault()\n\t{\n\t\treturn defaultToken;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefault", "code": "\tpublic void setDefault(byte def)\n\t{\n\t\tdefaultToken = def;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNoWordSep", "code": "\tpublic String getNoWordSep()\n\t{\n\t\tif(_noWordSep == null)\n\t\t{\n\t\t\t_noWordSep = noWordSep;\n\t\t\tif(noWordSep == null)\n\t\t\t\tnoWordSep = \"\";\n\t\t\tif(keywords != null)\n\t\t\t\tnoWordSep += keywords.getNonAlphaNumericChars();\n\t\t}\n\t\treturn noWordSep;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [4, 7], [5, 8], [2, 9], [4, 10], [7, 11], [5, 12], [8, 13], [10, 14], [12, 15], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 4], [8, 5], [9, 2], [10, 4], [11, 7], [12, 5], [13, 8], [14, 10], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setNoWordSep", "code": "\tpublic void setNoWordSep(String noWordSep)\n\t{\n\t\tthis.noWordSep = noWordSep;\n\t\t_noWordSep = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isBuiltIn", "code": "\tpublic boolean isBuiltIn()\n\t{\n\t\treturn builtIn;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[\" + modeName + \"::\" + setName + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "ParserRuleSet", "code": "\tpublic ParserRuleSet(String modeName, String setName)\n\t{\n\t\tthis.modeName = modeName;\n\t\tthis.setName = setName;\n\t\truleMapFirst = new ParserRule[RULE_BUCKET_COUNT];\n\t\truleMapLast = new ParserRule[RULE_BUCKET_COUNT];\n\t\timports = new LinkedList();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "log4j-1.2-5018", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/helpers/OnlyOnceErrorHandler.java", "language": "java", "name": "org.apache.log4j.helpers.OnlyOnceErrorHandler", "code": "public class OnlyOnceErrorHandler implements ErrorHandler {\n\n\n  final String WARN_PREFIX = \"log4j warning: \";\n  final String ERROR_PREFIX = \"log4j error: \";\n\n  boolean firstTime = true;\n\n\n  /**\n     Does not do anything.\n   */\n  public \n  void setLogger(Logger logger) {\n  }\n\n\n  /**\n     No options to activate.\n  */\n  public \n  void activateOptions() {\n  }\n\n\n  /**\n     Prints the message and the stack trace of the exception on\n     <code>System.err</code>.  */\n  public\n  void error(String message, Exception e, int errorCode) { \n    error(message, e, errorCode, null);\n  }\n\n  /**\n     Prints the message and the stack trace of the exception on\n     <code>System.err</code>.\n   */\n  public\n  void error(String message, Exception e, int errorCode, LoggingEvent event) {\n    if (e instanceof InterruptedIOException || e instanceof InterruptedException) {\n        Thread.currentThread().interrupt();\n    }\n    if(firstTime) {\n      LogLog.error(message, e);\n      firstTime = false;\n    }\n  }\n\n\n  /**\n     Print a the error message passed as parameter on\n     <code>System.err</code>.  \n  */\n  public \n  void error(String message) {\n    if(firstTime) {\n      LogLog.error(message);\n      firstTime = false;\n    }\n  }\n  \n  /**\n     Does not do anything.\n   */\n  public\n  void setAppender(Appender appender) {\n  }\n\n  /**\n     Does not do anything.\n   */\n  public\n  void setBackupAppender(Appender appender) {", "functions": [{"function_name": "setLogger", "code": "  void setLogger(Logger logger) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "activateOptions", "code": "  void activateOptions() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "error", "code": "  void error(String message, Exception e, int errorCode) { \n    error(message, e, errorCode, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "error", "code": "  void error(String message, Exception e, int errorCode, LoggingEvent event) {\n    if (e instanceof InterruptedIOException || e instanceof InterruptedException) {\n        Thread.currentThread().interrupt();\n    }\n    if(firstTime) {\n      LogLog.error(message, e);\n      firstTime = false;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [7, 8], [7, 9], [1, 10], [1, 11], [2, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 7], [9, 7], [10, 1], [11, 1], [12, 2], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "error", "code": "  void error(String message) {\n    if(firstTime) {\n      LogLog.error(message);\n      firstTime = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setAppender", "code": "  void setAppender(Appender appender) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBackupAppender", "code": "  void setBackupAppender(Appender appender) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ant-1.7-788", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/condition/TypeFound.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.condition.TypeFound", "code": "public class TypeFound extends ProjectComponent implements Condition {\n\n    private String name;\n    private String uri;\n\n    /**\n     * the task or other type to look for\n     * @param name the name of the type\n     */\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    /**\n     * The URI for this definition.\n     * @param uri the namespace URI. If this is not set, use the\n     *            default ant namespace.\n     */\n    public void setURI(String uri) {\n        this.uri = uri;\n    }\n\n    /**\n     * test for a task or other ant type existing in the current project\n     * @param typename the name of the type\n     * @return true if the typename exists\n     */\n    protected boolean doesTypeExist(String typename) {\n\n        ComponentHelper helper =\n            ComponentHelper.getComponentHelper(getProject());\n        String componentName = ProjectHelper.genComponentName(uri, typename);\n        AntTypeDefinition def = helper.getDefinition(componentName);\n        if (def == null) {\n            return false;\n        }\n        boolean found = def.getExposedClass(getProject()) != null;\n        if (!found) {\n            String text = helper.diagnoseCreationFailure(componentName, \"type\");\n            log(text, Project.MSG_VERBOSE);\n        }\n        return found;\n    }\n\n\n    /**\n     * Is this condition true?\n     * @return true if the condition is true\n     * @exception BuildException if an error occurs\n     */\n    public boolean eval() throws BuildException {\n        if (name == null) {\n            throw new BuildException(\"No type specified\");\n        }\n        return doesTypeExist(name);", "functions": [{"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setURI", "code": "    public void setURI(String uri) {\n        this.uri = uri;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doesTypeExist", "code": "    protected boolean doesTypeExist(String typename) {\n\n        ComponentHelper helper =\n            ComponentHelper.getComponentHelper(getProject());\n        String componentName = ProjectHelper.genComponentName(uri, typename);\n        AntTypeDefinition def = helper.getDefinition(componentName);\n        if (def == null) {\n            return false;\n        }\n        boolean found = def.getExposedClass(getProject()) != null;\n        if (!found) {\n            String text = helper.diagnoseCreationFailure(componentName, \"type\");\n            log(text, Project.MSG_VERBOSE);\n        }\n        return found;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [2, 10], [3, 11], [4, 12], [9, 13], [5, 14], [6, 15], [7, 16], [2, 17], [11, 18], [11, 19], [12, 20], [16, 21], [10, 22], [19, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 2], [11, 3], [12, 4], [13, 9], [14, 5], [15, 6], [16, 7], [17, 2], [18, 11], [19, 11], [20, 12], [21, 16], [22, 10], [23, 19], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "eval", "code": "    public boolean eval() throws BuildException {\n        if (name == null) {\n            throw new BuildException(\"No type specified\");\n        }\n        return doesTypeExist(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.5-7022", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/CharKey.java", "language": "java", "name": "org.apache.xml.utils.CharKey", "code": "public class CharKey extends Object\n{\n\n  /** String value          */\n  private char m_char;\n\n  /**\n   * Constructor CharKey\n   *\n   * @param key char value of this object.\n   */\n  public CharKey(char key)\n  {\n    m_char = key;\n  }\n  \n  /**\n   * Default constructor for a CharKey.\n   *\n   * @param key char value of this object.\n   */\n  public CharKey()\n  {\n  }\n  \n  /**\n   * Get the hash value of the character.  \n   *\n   * @return hash value of the character.\n   */\n  public final void setChar(char c)\n  {\n    m_char = c;\n  }\n\n\n\n  /**\n   * Get the hash value of the character.  \n   *\n   * @return hash value of the character.\n   */\n  public final int hashCode()\n  {\n    return (int)m_char;\n  }\n\n  /**\n   * Override of equals() for this object \n   *\n   * @param obj to compare to\n   *\n   * @return True if this object equals this string value \n   */\n  public final boolean equals(Object obj)\n  {\n    return ((CharKey)obj).m_char == m_char;", "functions": [{"function_name": "setChar", "code": "  public final void setChar(char c)\n  {\n    m_char = c;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hashCode", "code": "  public final int hashCode()\n  {\n    return (int)m_char;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "equals", "code": "  public final boolean equals(Object obj)\n  {\n    return ((CharKey)obj).m_char == m_char;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "CharKey", "code": "  public CharKey(char key)\n  {\n    m_char = key;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CharKey", "code": "  public CharKey()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.4-2469", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/ExchangeProperty.java", "language": "java", "name": "org.apache.camel.ExchangeProperty", "code": "public class ExchangeProperty<T> {\n\n    private static final List<ExchangeProperty<?>> VALUES =\n        new ArrayList<ExchangeProperty<?>>();\n\n    private static final Map<String, ExchangeProperty<?>> LITERAL_MAP =\n        new HashMap<String, ExchangeProperty<?>>();\n\n    private static final Map<String, ExchangeProperty<?>> NAME_MAP =\n        new HashMap<String, ExchangeProperty<?>>();\n\n    private final String literal;\n    private final String name;\n    private final Class<T> type;\n\n    public ExchangeProperty(String literal, String name, Class<T> type) {\n        this.literal = literal;\n        this.name = name;\n        this.type = type;\n        register(this);\n    }\n\n    public String literal() {\n        return literal;\n    }\n\n    public String name() {\n        return name;\n    }\n\n    public Class<T> type() {\n        return type;\n    }\n\n    public T get(Exchange exchange) {\n        return exchange.getProperty(name, type);\n    }\n\n    public static ExchangeProperty<?> get(String literal) {\n        return LITERAL_MAP.get(literal);\n    }\n\n    public static ExchangeProperty<?> getByName(String name) {\n        return NAME_MAP.get(name);\n    }\n\n    public T set(Exchange exchange, T value) {\n        T oldValue = get(exchange);\n        exchange.setProperty(name, value);\n        return oldValue;\n    }\n\n    public T remove(Exchange exchange) {\n        T oldValue = get(exchange);\n        exchange.removeProperty(name);\n        return oldValue;\n    }\n\n    @Override\n    public String toString() {\n        return type().getCanonicalName() + \" \" + name + \" (\" + literal() + \")\";\n    }\n\n    public static synchronized void register(ExchangeProperty<?> property) {\n        ExchangeProperty<?> existingProperty = LITERAL_MAP.get(property.literal());\n        if (existingProperty != null && existingProperty != property) {\n            throw new RuntimeCamelException(\"An Exchange Property '\" + property.literal()\n                    + \"' has already been registered; its traits are: \" + existingProperty.toString());\n        }\n        VALUES.add(property);\n        LITERAL_MAP.put(property.literal(), property);\n        NAME_MAP.put(property.name(), property);\n    }\n\n    public static synchronized void deregister(ExchangeProperty<?> property) {\n        if (property != null) {\n            VALUES.remove(property);\n            LITERAL_MAP.remove(property.literal());\n            NAME_MAP.put(property.name(), property);\n        }\n    }\n\n    public static synchronized void deregister(String literal) {\n        ExchangeProperty<?> property = LITERAL_MAP.get(literal);\n        if (property != null) {\n            VALUES.remove(property);\n            LITERAL_MAP.remove(property.literal());\n            NAME_MAP.put(property.name(), property);\n        }\n    }\n\n    public static synchronized ExchangeProperty<?>[] values() {\n        return VALUES.toArray(new ExchangeProperty[0]);", "functions": [{"function_name": "literal", "code": "    public String literal() {\n        return literal;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "name", "code": "    public String name() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "type", "code": "    public Class<T> type() {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "get", "code": "    public T get(Exchange exchange) {\n        return exchange.getProperty(name, type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "get", "code": "    public static ExchangeProperty<?> get(String literal) {\n        return LITERAL_MAP.get(literal);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getByName", "code": "    public static ExchangeProperty<?> getByName(String name) {\n        return NAME_MAP.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "set", "code": "    public T set(Exchange exchange, T value) {\n        T oldValue = get(exchange);\n        exchange.setProperty(name, value);\n        return oldValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "remove", "code": "    public T remove(Exchange exchange) {\n        T oldValue = get(exchange);\n        exchange.removeProperty(name);\n        return oldValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return type().getCanonicalName() + \" \" + name + \" (\" + literal() + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "register", "code": "    public static synchronized void register(ExchangeProperty<?> property) {\n        ExchangeProperty<?> existingProperty = LITERAL_MAP.get(property.literal());\n        if (existingProperty != null && existingProperty != property) {\n            throw new RuntimeCamelException(\"An Exchange Property '\" + property.literal()\n                    + \"' has already been registered; its traits are: \" + existingProperty.toString());\n        }\n        VALUES.add(property);\n        LITERAL_MAP.put(property.literal(), property);\n        NAME_MAP.put(property.name(), property);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [4, 8], [5, 9], [1, 10], [7, 11], [7, 12], [2, 13], [10, 14], [12, 15], [13, 16], [14, 17], [17, 18], [17, 19], [19, 20], [19, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 4], [9, 5], [10, 1], [11, 7], [12, 7], [13, 2], [14, 10], [15, 12], [16, 13], [17, 14], [18, 17], [19, 17], [20, 19], [21, 19], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "deregister", "code": "    public static synchronized void deregister(ExchangeProperty<?> property) {\n        if (property != null) {\n            VALUES.remove(property);\n            LITERAL_MAP.remove(property.literal());\n            NAME_MAP.put(property.name(), property);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "deregister", "code": "    public static synchronized void deregister(String literal) {\n        ExchangeProperty<?> property = LITERAL_MAP.get(literal);\n        if (property != null) {\n            VALUES.remove(property);\n            LITERAL_MAP.remove(property.literal());\n            NAME_MAP.put(property.name(), property);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [1, 8], [1, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 1], [9, 1], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "values", "code": "    public static synchronized ExchangeProperty<?>[] values() {\n        return VALUES.toArray(new ExchangeProperty[0]);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ExchangeProperty", "code": "    public ExchangeProperty(String literal, String name, Class<T> type) {\n        this.literal = literal;\n        this.name = name;\n        this.type = type;\n        register(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "jedit-4.1-4210", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/SelectLineRange.java", "language": "java", "name": "org.gjt.sp.jedit.gui.SelectLineRange", "code": "public class SelectLineRange extends EnhancedDialog implements ActionListener\n{\n\t//{{{ SelectLineRange constructor\n\tpublic SelectLineRange(View view)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"selectlinerange.title\"),true);\n\t\tthis.view = view;\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,0));\n\t\tsetContentPane(content);\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\n\t\t\t\"selectlinerange.caption\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,12));\n\t\tcontent.add(BorderLayout.NORTH,label);\n\n\t\tJPanel panel = createFieldPanel();\n\n\t\tcontent.add(BorderLayout.CENTER,panel);\n\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(6,0,0,12));\n\t\tpanel.add(Box.createGlue());\n\t\tpanel.add(Box.createGlue());\n\t\tok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(this);\n\t\tgetRootPane().setDefaultButton(ok);\n\t\tpanel.add(ok);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.addActionListener(this);\n\t\tpanel.add(cancel);\n\t\tpanel.add(Box.createGlue());\n\n\t\tcontent.add(panel,BorderLayout.SOUTH);\n\n\t\tGUIUtilities.requestFocus(this,startField);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tshow();\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\tint startLine;\n\t\tint endLine;\n\n\t\ttry\n\t\t{\n\t\t\tstartLine = Integer.parseInt(startField.getText()) - 1;\n\t\t\tendLine = Integer.parseInt(endField.getText()) - 1;\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tBuffer buffer = view.getBuffer();\n\n\t\tif(startLine < 0 || endLine >= buffer.getLineCount()\n\t\t\t|| startLine > endLine)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tJEditTextArea textArea = view.getTextArea();\n\t\ttextArea.setSelection(new Selection.Range(\n\t\t\tbuffer.getLineStartOffset(startLine),\n\t\t\tbuffer.getLineEndOffset(endLine) - 1));\n\t\ttextArea.moveCaretPosition(buffer.getLineEndOffset(endLine) - 1);\n\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ actionPerformed() method\n\tpublic void actionPerformed(ActionEvent evt)\n\t{\n\t\tObject source = evt.getSource();\n\t\tif(source == ok)\n\t\t\tok();\n\t\telse if(source == cancel)\n\t\t\tcancel();\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate View view;\n\tprivate JTextField startField;\n\tprivate JTextField endField;\n\tprivate JButton ok;\n\tprivate JButton cancel;\n\t//}}}\n\n\t//{{{ createFieldPanel() method\n\tprivate JPanel createFieldPanel()\n\t{\n\t\tGridBagLayout layout = new GridBagLayout();\n\t\tJPanel panel = new JPanel(layout);\n\n\t\tGridBagConstraints cons = new GridBagConstraints();\n\t\tcons.insets = new Insets(0,0,6,12);\n\t\tcons.gridwidth = cons.gridheight = 1;\n\t\tcons.gridx = cons.gridy = 0;\n\t\tcons.fill = GridBagConstraints.BOTH;\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"selectlinerange.start\"),\n\t\t\tSwingConstants.RIGHT);\n\t\tlayout.setConstraints(label,cons);\n\t\tpanel.add(label);\n\n\t\tstartField = new JTextField(10);\n\t\tcons.gridx = 1;\n\t\tcons.weightx = 1.0f;\n\t\tlayout.setConstraints(startField,cons);\n\t\tpanel.add(startField);\n\n\t\tlabel = new JLabel(jEdit.getProperty(\"selectlinerange.end\"),\n\t\t\tSwingConstants.RIGHT);\n\t\tcons.gridx = 0;\n\t\tcons.weightx = 0.0f;\n\t\tcons.gridy = 1;\n\t\tlayout.setConstraints(label,cons);\n\t\tpanel.add(label);\n\n\t\tendField = new JTextField(10);\n\t\tcons.gridx = 1;\n\t\tcons.weightx = 1.0f;\n\t\tlayout.setConstraints(endField,cons);\n\t\tpanel.add(endField);\n\n\t\treturn panel;", "functions": [{"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tint startLine;\n\t\tint endLine;\n\n\t\ttry\n\t\t{\n\t\t\tstartLine = Integer.parseInt(startField.getText()) - 1;\n\t\t\tendLine = Integer.parseInt(endField.getText()) - 1;\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tBuffer buffer = view.getBuffer();\n\n\t\tif(startLine < 0 || endLine >= buffer.getLineCount()\n\t\t\t|| startLine > endLine)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tJEditTextArea textArea = view.getTextArea();\n\t\ttextArea.setSelection(new Selection.Range(\n\t\t\tbuffer.getLineStartOffset(startLine),\n\t\t\tbuffer.getLineEndOffset(endLine) - 1));\n\t\ttextArea.moveCaretPosition(buffer.getLineEndOffset(endLine) - 1);\n\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CATCH", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [4, 11], [8, 12], [9, 13], [1, 14], [2, 15], [10, 16], [10, 17], [3, 18], [11, 19], [4, 20], [4, 21], [12, 22], [12, 23], [13, 24], [13, 25], [2, 26], [17, 27], [17, 28], [11, 29], [20, 30], [21, 31], [24, 32], [24, 33], [26, 34], [27, 35], [28, 36], [29, 37], [30, 38], [30, 39], [31, 40], [31, 41], [39, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 4], [12, 8], [13, 9], [14, 1], [15, 2], [16, 10], [17, 10], [18, 3], [19, 11], [20, 4], [21, 4], [22, 12], [23, 12], [24, 13], [25, 13], [26, 2], [27, 17], [28, 17], [29, 11], [30, 20], [31, 21], [32, 24], [33, 24], [34, 26], [35, 27], [36, 28], [37, 29], [38, 30], [39, 30], [40, 31], [41, 31], [42, 39], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "actionPerformed", "code": "\tpublic void actionPerformed(ActionEvent evt)\n\t{\n\t\tObject source = evt.getSource();\n\t\tif(source == ok)\n\t\t\tok();\n\t\telse if(source == cancel)\n\t\t\tcancel();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [2, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 2], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createFieldPanel", "code": "\tprivate JPanel createFieldPanel()\n\t{\n\t\tGridBagLayout layout = new GridBagLayout();\n\t\tJPanel panel = new JPanel(layout);\n\n\t\tGridBagConstraints cons = new GridBagConstraints();\n\t\tcons.insets = new Insets(0,0,6,12);\n\t\tcons.gridwidth = cons.gridheight = 1;\n\t\tcons.gridx = cons.gridy = 0;\n\t\tcons.fill = GridBagConstraints.BOTH;\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"selectlinerange.start\"),\n\t\t\tSwingConstants.RIGHT);\n\t\tlayout.setConstraints(label,cons);\n\t\tpanel.add(label);\n\n\t\tstartField = new JTextField(10);\n\t\tcons.gridx = 1;\n\t\tcons.weightx = 1.0f;\n\t\tlayout.setConstraints(startField,cons);\n\t\tpanel.add(startField);\n\n\t\tlabel = new JLabel(jEdit.getProperty(\"selectlinerange.end\"),\n\t\t\tSwingConstants.RIGHT);\n\t\tcons.gridx = 0;\n\t\tcons.weightx = 0.0f;\n\t\tcons.gridy = 1;\n\t\tlayout.setConstraints(label,cons);\n\t\tpanel.add(label);\n\n\t\tendField = new JTextField(10);\n\t\tcons.gridx = 1;\n\t\tcons.weightx = 1.0f;\n\t\tlayout.setConstraints(endField,cons);\n\t\tpanel.add(endField);\n\n\t\treturn panel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [8, 28], [9, 29], [10, 30], [13, 31], [14, 32], [15, 33], [16, 34], [19, 35], [20, 36], [21, 37], [2, 38], [25, 39], [26, 40], [27, 41], [3, 42], [4, 43], [5, 44], [30, 45], [34, 46], [37, 47], [38, 48], [39, 49], [40, 50], [41, 51], [41, 52], [41, 53], [41, 54], [46, 55], [48, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 8], [29, 9], [30, 10], [31, 13], [32, 14], [33, 15], [34, 16], [35, 19], [36, 20], [37, 21], [38, 2], [39, 25], [40, 26], [41, 27], [42, 3], [43, 4], [44, 5], [45, 30], [46, 34], [47, 37], [48, 38], [49, 39], [50, 40], [51, 41], [52, 41], [53, 41], [54, 41], [55, 46], [56, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "SelectLineRange", "code": "\tpublic SelectLineRange(View view)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"selectlinerange.title\"),true);\n\t\tthis.view = view;\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,0));\n\t\tsetContentPane(content);\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\n\t\t\t\"selectlinerange.caption\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,12));\n\t\tcontent.add(BorderLayout.NORTH,label);\n\n\t\tJPanel panel = createFieldPanel();\n\n\t\tcontent.add(BorderLayout.CENTER,panel);\n\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(6,0,0,12));\n\t\tpanel.add(Box.createGlue());\n\t\tpanel.add(Box.createGlue());\n\t\tok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(this);\n\t\tgetRootPane().setDefaultButton(ok);\n\t\tpanel.add(ok);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.addActionListener(this);\n\t\tpanel.add(cancel);\n\t\tpanel.add(Box.createGlue());\n\n\t\tcontent.add(panel,BorderLayout.SOUTH);\n\n\t\tGUIUtilities.requestFocus(this,startField);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [10, 32], [13, 33], [14, 34], [16, 35], [18, 36], [19, 37], [20, 38], [21, 39], [22, 40], [23, 41], [1, 42], [26, 43], [2, 44], [28, 45], [3, 46], [31, 47], [33, 48], [34, 49], [36, 50], [39, 51], [39, 52], [39, 53], [39, 54], [43, 55], [43, 56], [43, 57], [43, 58], [44, 59], [45, 60], [45, 61], [45, 62], [45, 63], [46, 64], [48, 65], [50, 66], [59, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 10], [33, 13], [34, 14], [35, 16], [36, 18], [37, 19], [38, 20], [39, 21], [40, 22], [41, 23], [42, 1], [43, 26], [44, 2], [45, 28], [46, 3], [47, 31], [48, 33], [49, 34], [50, 36], [51, 39], [52, 39], [53, 39], [54, 39], [55, 43], [56, 43], [57, 43], [58, 43], [59, 44], [60, 45], [61, 45], [62, 45], [63, 45], [64, 46], [65, 48], [66, 50], [67, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}], "label": 0}
{"sample_id": "jedit-4.1-3991", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/buffer/OffsetManager.java", "language": "java", "name": "org.gjt.sp.jedit.buffer.OffsetManager", "code": "public class OffsetManager\n{\n\t//{{{ OffsetManager constructor\n\tpublic OffsetManager(Buffer buffer)\n\t{\n\t\tthis.buffer = buffer;\n\n\t\tlineInfo = new long[1];\n\t\t// make first line visible by default\n\t\tlineInfo[0] = 1L | (0xffL << VISIBLE_SHIFT);\n\t\tlineContext = new TokenMarker.LineContext[1];\n\t\tlineCount = 1;\n\n\t\tpositions = new PosBottomHalf[100];\n\n\t\tvirtualLineCounts = new int[8];\n\t\tfor(int i = 0; i < 8; i++)\n\t\t\tvirtualLineCounts[i] = 1;\n\n\t\tgapLine = -1;\n\t} //}}}\n\n\t//{{{ getLineCount() method\n\tpublic final int getLineCount()\n\t{\n\t\treturn lineCount;\n\t} //}}}\n\n\t//{{{ getVirtualLineCount() method\n\tpublic final int getVirtualLineCount(int index)\n\t{\n\t\treturn virtualLineCounts[index];\n\t} //}}}\n\n\t//{{{ setVirtualLineCount() method\n\tpublic final void setVirtualLineCount(int index, int lineCount)\n\t{\n\t\tvirtualLineCounts[index] = lineCount;\n\t} //}}}\n\n\t//{{{ getLineOfOffset() method\n\tpublic int getLineOfOffset(int offset)\n\t{\n\t\tint start = 0;\n\t\tint end = lineCount - 1;\n\n\t\tfor(;;)\n\t\t{\n\t\t\tswitch(end - start)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tif(getLineEndOffset(start) <= offset)\n\t\t\t\t\treturn start + 1;\n\t\t\t\telse\n\t\t\t\t\treturn start;\n\t\t\tcase 1:\n\t\t\t\tif(getLineEndOffset(start) <= offset)\n\t\t\t\t{\n\t\t\t\t\tif(getLineEndOffset(end) <= offset)\n\t\t\t\t\t\treturn end + 1;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn end;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn start;\n\t\t\tdefault:\n\t\t\t\tint pivot = (end + start) / 2;\n\t\t\t\tint value = getLineEndOffset(pivot);\n\t\t\t\tif(value == offset)\n\t\t\t\t\treturn pivot + 1;\n\t\t\t\telse if(value < offset)\n\t\t\t\t\tstart = pivot + 1;\n\t\t\t\telse\n\t\t\t\t\tend = pivot - 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ getLineEndOffset() method\n\tpublic final int getLineEndOffset(int line)\n\t{\n\t\tint end = (int)(lineInfo[line] & END_MASK);\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\treturn end + gapWidth;\n\t\telse\n\t\t\treturn end;\n\t} //}}}\n\n\t//{{{ isFoldLevelValid() method\n\tpublic final boolean isFoldLevelValid(int line)\n\t{\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\treturn false;\n\n\t\treturn (lineInfo[line] & FOLD_LEVEL_VALID_MASK) != 0;\n\t} //}}}\n\n\t//{{{ getFoldLevel() method\n\tpublic final int getFoldLevel(int line)\n\t{\n\t\treturn (int)((lineInfo[line] & FOLD_LEVEL_MASK)\n\t\t\t>> FOLD_LEVEL_SHIFT);\n\t} //}}}\n\n\t//{{{ setFoldLevel() method\n\t// Also sets 'fold level valid' flag\n\tpublic final void setFoldLevel(int line, int level)\n\t{\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\tmoveGap(line + 1,0,\"setFoldLevel\");\n\n\t\tlineInfo[line] = ((lineInfo[line] & ~FOLD_LEVEL_MASK)\n\t\t\t| ((long)level << FOLD_LEVEL_SHIFT)\n\t\t\t| FOLD_LEVEL_VALID_MASK);\n\t} //}}}\n\n\t//{{{ isLineVisible() method\n\tpublic final boolean isLineVisible(int line, int index)\n\t{\n\t\tlong mask = 1L << (index + VISIBLE_SHIFT);\n\t\treturn (lineInfo[line] & mask) != 0;\n\t} //}}}\n\n\t//{{{ setLineVisible() method\n\tpublic final void setLineVisible(int line, int index, boolean visible)\n\t{\n\t\tlong mask = 1L << (index + VISIBLE_SHIFT);\n\t\tif(visible)\n\t\t\tlineInfo[line] = (lineInfo[line] | mask);\n\t\telse\n\t\t\tlineInfo[line] = (lineInfo[line] & ~mask);\n\t} //}}}\n\n\t/* the next two methods are not used!\n\n\t//{{{ getScreenLineCount() method\n\tpublic final int getScreenLineCount(int line)\n\t{\n\t\treturn (int)((lineInfo[line] & SCREEN_LINES_MASK)\n\t\t\t>> SCREEN_LINES_SHIFT);\n\t} //}}}\n\n\t//{{{ setScreenLineCount() method\n\tpublic final void setScreenLineCount(int line, int count)\n\t{\n\t\tlineInfo[line] = ((lineInfo[line] & ~SCREEN_LINES_MASK)\n\t\t\t| ((long)count << SCREEN_LINES_SHIFT));\n\t} //}}}\n\n\t*/\n\n\t//{{{ isLineContextValid() method\n\tpublic final boolean isLineContextValid(int line)\n\t{\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\treturn false;\n\n\t\treturn (lineInfo[line] & CONTEXT_VALID_MASK) != 0;\n\t} //}}}\n\n\t//{{{ getLineContext() method\n\tpublic final TokenMarker.LineContext getLineContext(int line)\n\t{\n\t\treturn lineContext[line];\n\t} //}}}\n\n\t//{{{ setLineContext() method\n\t// Also sets 'context valid' to true\n\tpublic final void setLineContext(int line, TokenMarker.LineContext context)\n\t{\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\tmoveGap(line + 1,0,\"setLineContext\");\n\n\t\tlineContext[line] = context;\n\t\tlineInfo[line] |= CONTEXT_VALID_MASK;\n\t} //}}}\n\n\t//{{{ createPosition() method\n\n\t// note: Buffer.createPosition() grabs a read lock, so the buffer\n\t// will not change during this method. however, if two stops call\n\t// it, there can be contention issues unless this method is\n\t// synchronized.\n\n\t// I could make Buffer.createPosition() grab a write lock, but then\n\t// it would be necessary to implement grabbing write locks within\n\t// read locks, since HyperSearch for example does everything inside\n\t// a read lock.\n\tpublic synchronized Position createPosition(int offset)\n\t{\n\t\tPosBottomHalf bh = null;\n\n\t\tfor(int i = 0; i < positionCount; i++)\n\t\t{\n\t\t\tPosBottomHalf _bh = positions[i];\n\t\t\tif(_bh.offset == offset)\n\t\t\t{\n\t\t\t\tbh = _bh;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(_bh.offset > offset)\n\t\t\t{\n\t\t\t\tbh = new PosBottomHalf(offset);\n\t\t\t\tgrowPositionArray();\n\t\t\t\tSystem.arraycopy(positions,i,positions,i+1,\n\t\t\t\t\tpositionCount - i);\n\t\t\t\tpositionCount++;\n\t\t\t\tpositions[i] = bh;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(bh == null)\n\t\t{\n\t\t\tbh = new PosBottomHalf(offset);\n\t\t\tgrowPositionArray();\n\t\t\tpositions[positionCount++] = bh;\n\t\t}\n\n\t\treturn new PosTopHalf(bh);\n\t} //}}}\n\n\t//{{{ expandFolds() method\n\t/**\n\t * Like <code>FoldVisibilityManager.expandFolds()</code>, but does\n\t * it for all fold visibility managers viewing this buffer. Should\n\t * only be called after loading.\n\t */\n\tpublic void expandFolds(int foldLevel)\n\t{\n\t\tint newVirtualLineCount = 0;\n\n\t\tif(foldLevel == 0)\n\t\t{\n\t\t\tnewVirtualLineCount = lineCount;\n\n\t\t\tfor(int i = 0; i < lineCount; i++)\n\t\t\t\tlineInfo[i] |= VISIBLE_MASK;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfoldLevel = (foldLevel - 1) * buffer.getIndentSize() + 1;\n\n\t\t\t/* this ensures that the first line is always visible */\n\t\t\tboolean seenVisibleLine = false;\n\n\t\t\tfor(int i = 0; i < lineCount; i++)\n\t\t\t{\n\t\t\t\tif(!seenVisibleLine || buffer.getFoldLevel(i) < foldLevel)\n\t\t\t\t{\n\t\t\t\t\tseenVisibleLine = true;\n\t\t\t\t\tlineInfo[i] |= VISIBLE_MASK;\n\t\t\t\t\tnewVirtualLineCount++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tlineInfo[i] &= ~VISIBLE_MASK;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < virtualLineCounts.length; i++)\n\t\t{\n\t\t\tvirtualLineCounts[i] = newVirtualLineCount;\n\t\t}\n\t} //}}}\n\n\t//{{{ contentInserted() method\n\tpublic void contentInserted(int startLine, int offset,\n\t\tint numLines, int length, IntegerArray endOffsets)\n\t{\n\t\tint endLine = startLine + numLines;\n\n\t\t//{{{ Update line info and line context arrays\n\t\tif(numLines > 0)\n\t\t{\n\t\t\tmoveGap(-1,0,\"contentInserted\");\n\n\t\t\tlineCount += numLines;\n\n\t\t\tif(lineInfo.length <= lineCount)\n\t\t\t{\n\t\t\t\tlong[] lineInfoN = new long[(lineCount + 1) * 2];\n\t\t\t\tSystem.arraycopy(lineInfo,0,lineInfoN,0,\n\t\t\t\t\t\t lineInfo.length);\n\t\t\t\tlineInfo = lineInfoN;\n\n\t\t\t\tTokenMarker.LineContext[] lineContextN\n\t\t\t\t\t= new TokenMarker.LineContext[(lineCount + 1) * 2];\n\t\t\t\tSystem.arraycopy(lineContext,0,lineContextN,0,\n\t\t\t\t\t\t lineContext.length);\n\t\t\t\tlineContext = lineContextN;\n\t\t\t}\n\n\t\t\tSystem.arraycopy(lineInfo,startLine,lineInfo,\n\t\t\t\tendLine,lineCount - endLine);\n\t\t\tSystem.arraycopy(lineContext,startLine,lineContext,\n\t\t\t\tendLine,lineCount - endLine);\n\n\t\t\t//{{{ Find fold start of this line\n\t\t\tint foldLevel = buffer.getFoldLevel(startLine);\n\t\t\tlong visible = (0xffL << VISIBLE_SHIFT);\n\t\t\tif(startLine != 0)\n\t\t\t{\n\t\t\t\tfor(int i = startLine; i > 0; i--)\n\t\t\t\t{\n\t\t\t\t\tif(/* buffer.isFoldStart(i - 1)\n\t\t\t\t\t\t&& */ buffer.getFoldLevel(i) <= foldLevel)\n\t\t\t\t\t{\n\t\t\t\t\t\tvisible = (lineInfo[i] & VISIBLE_MASK);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} //}}}\n\n\t\t\tfor(int i = 0; i < numLines; i++)\n\t\t\t{\n\t\t\t\t// need the line end offset to be in place\n\t\t\t\t// for following fold level calculations\n\t\t\t\tlineInfo[startLine + i] = (offset\n\t\t\t\t\t+ endOffsets.get(i) + 1)\n\t\t\t\t\t| visible;\n\t\t\t}\n\n\t\t\t//{{{ Unrolled\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 0))) != 0)\n\t\t\t\tvirtualLineCounts[0] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 1))) != 0)\n\t\t\t\tvirtualLineCounts[1] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 2))) != 0)\n\t\t\t\tvirtualLineCounts[2] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 3))) != 0)\n\t\t\t\tvirtualLineCounts[3] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 4))) != 0)\n\t\t\t\tvirtualLineCounts[4] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 5))) != 0)\n\t\t\t\tvirtualLineCounts[5] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 6))) != 0)\n\t\t\t\tvirtualLineCounts[6] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 7))) != 0)\n\t\t\t\tvirtualLineCounts[7] += numLines;\n\t\t\t//}}}\n\t\t} //}}}\n\n\t\tmoveGap(endLine,length,\"contentInserted\");\n\n\t\tupdatePositionsForInsert(offset,length);\n\t} //}}}\n\n\t//{{{ contentRemoved() method\n\tpublic void contentRemoved(int startLine, int offset,\n\t\tint numLines, int length)\n\t{\n\t\t//{{{ Update virtual line counts\n\t\tfor(int i = 0; i < numLines; i++)\n\t\t{\n\t\t\tlong info = lineInfo[startLine + i];\n\n\t\t\t// Unrolled for max efficency\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 0))) != 0)\n\t\t\t\tvirtualLineCounts[0]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 1))) != 0)\n\t\t\t\tvirtualLineCounts[1]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 2))) != 0)\n\t\t\t\tvirtualLineCounts[2]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 3))) != 0)\n\t\t\t\tvirtualLineCounts[3]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 4))) != 0)\n\t\t\t\tvirtualLineCounts[4]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 5))) != 0)\n\t\t\t\tvirtualLineCounts[5]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 6))) != 0)\n\t\t\t\tvirtualLineCounts[6]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 7))) != 0)\n\t\t\t\tvirtualLineCounts[7]--;\n\t\t} //}}}\n\n\t\t//{{{ Update line info and line context arrays\n\t\tif(numLines > 0)\n\t\t{\n\t\t\tmoveGap(-1,0,\"contentRemoved\");\n\n\t\t\tlineCount -= numLines;\n\t\t\tSystem.arraycopy(lineInfo,startLine + numLines,lineInfo,\n\t\t\t\tstartLine,lineCount - startLine);\n\t\t\tSystem.arraycopy(lineContext,startLine + numLines,lineContext,\n\t\t\t\tstartLine,lineCount - startLine);\n\t\t} //}}}\n\n\t\tmoveGap(startLine,-length,\"contentRemoved\");\n\n\t\tupdatePositionsForRemove(offset,length);\n\t} //}}}\n\n\t//{{{ lineInfoChangedFrom() method\n\tpublic void lineInfoChangedFrom(int startLine)\n\t{\n\t\tmoveGap(startLine,0,\"lineInfoChangedFrom\");\n\t} //}}}\n\n\t//{{{ Private members\n\n\t/* {{{ Format of entires in line info array:\n\t * 0-31: end offset\n\t * 32-47: fold level\n\t * 48-55: visibility bit flags\n\t * 56: fold level valid flag\n\t * 57: context valid flag\n\t * 58-62: number of screen lines (currently unused, reserved for jEdit 4.1)\n\t * 63: reserved\n\t *\n\t * Having all the info packed into a long is not very OO and makes the\n\t * code somewhat more complicated, but it saves a lot of memory.\n\t *\n\t * The new document model has just 12 bytes of overhead per line.\n\t * LineContext instances are now internalized, so only a few should\n\t * actually be in the heap.\n\t *\n\t * In the old document model there were 5 objects per line, for a\n\t * total of about 100 bytes, plus a cached token list, which used\n\t * another 100 or so bytes.\n\t * }}}*/\n\tprivate static final long END_MASK = 0x00000000ffffffffL;\n\tprivate static final long FOLD_LEVEL_MASK = 0x0000ffff00000000L;\n\tprivate static final int FOLD_LEVEL_SHIFT = 32;\n\tprivate static final long VISIBLE_MASK = 0x00ff000000000000L;\n\tprivate static final int VISIBLE_SHIFT = 48;\n\tprivate static final long FOLD_LEVEL_VALID_MASK = (1L<<56);\n\tprivate static final long CONTEXT_VALID_MASK = (1L<<57);\n\tprivate static final long SCREEN_LINES_MASK = 0x7c00000000000000L;\n\tprivate static final long SCREEN_LINES_SHIFT = 58;\n\n\t//{{{ Instance variables\n\tprivate Buffer buffer;\n\tprivate long[] lineInfo;\n\tprivate TokenMarker.LineContext[] lineContext;\n\n\tprivate int lineCount;\n\n\tprivate PosBottomHalf[] positions;\n\tprivate int positionCount;\n\n\tprivate int[] virtualLineCounts;\n\n\t/**\n\t * If -1, then there is no gap.\n\t * Otherwise, all lines from this line onwards need to have gapWidth\n\t * added to their end offsets.\n\t */\n\tprivate int gapLine;\n\tprivate int gapWidth;\n\t//}}}\n\n\t//{{{ setLineEndOffset() method\n\tprivate final void setLineEndOffset(int line, int end)\n\t{\n\t\tlineInfo[line] = ((lineInfo[line] & ~(END_MASK\n\t\t\t| FOLD_LEVEL_VALID_MASK | CONTEXT_VALID_MASK)) | end);\n\t\t// what is the point of this -- DO NOT UNCOMMENT THIS IT\n\t\t// CAUSES A PERFORMANCE LOSS; nextLineRequested becomes true\n\t\t//lineContext[line] = null;\n\t} //}}}\n\n\t//{{{ moveGap() method\n\tprivate final void moveGap(int newGapLine, int newGapWidth, String method)\n\t{\n\t\tif(gapLine == -1)\n\t\t\tgapWidth = newGapWidth;\n\t\telse if(newGapLine == -1)\n\t\t{\n\t\t\t//if(gapWidth != 0)\n\t\t\t{\n\t\t\t\t//if(DEBUG && gapLine != lineCount)\n\t\t\t\t//\tSystem.err.println(method + \": update from \" + gapLine + \" to \" + lineCount);\n\t\t\t\tfor(int i = gapLine; i < lineCount; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i));\n\t\t\t}\n\n\t\t\tgapWidth = newGapWidth;\n\t\t}\n\t\telse if(newGapLine < gapLine)\n\t\t{\n\t\t\t//if(gapWidth != 0)\n\t\t\t{\n\t\t\t\t//if(DEBUG && newGapLine != gapLine)\n\t\t\t\t//\tSystem.err.println(method + \": update from \" + newGapLine + \" to \" + gapLine);\n\t\t\t\tfor(int i = newGapLine; i < gapLine; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i) - gapWidth);\n\t\t\t}\n\t\t\tgapWidth += newGapWidth;\n\t\t}\n\t\telse //if(newGapLine >= gapLine)\n\t\t{\n\t\t\t//if(gapWidth != 0)\n\t\t\t{\n\t\t\t\t//if(DEBUG && gapLine != newGapLine)\n\t\t\t\t//\tSystem.err.println(method + \": update from \" + gapLine + \" to \" + newGapLine);\n\t\t\t\tfor(int i = gapLine; i < newGapLine; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i));\n\t\t\t}\n\n\t\t\tgapWidth += newGapWidth;\n\t\t}\n\n\t\tif(newGapLine == lineCount)\n\t\t\tgapLine = -1;\n\t\telse\n\t\t\tgapLine = newGapLine;\n\t} //}}}\n\n\t//{{{ growPositionArray() method\n\tprivate void growPositionArray()\n\t{\n\t\tif(positions.length < positionCount + 1)\n\t\t{\n\t\t\tPosBottomHalf[] newPositions = new PosBottomHalf[\n\t\t\t\t(positionCount + 1) * 2];\n\t\t\tSystem.arraycopy(positions,0,newPositions,0,positionCount);\n\t\t\tpositions = newPositions;\n\t\t}\n\t} //}}}\n\n\t//{{{ removePosition() method\n\tprivate synchronized void removePosition(PosBottomHalf bh)\n\t{\n\t\tint index = -1;\n\n\t\tfor(int i = 0; i < positionCount; i++)\n\t\t{\n\t\t\tif(positions[i] == bh)\n\t\t\t{\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.arraycopy(positions,index + 1,positions,index,\n\t\t\tpositionCount - index - 1);\n\t\tpositions[--positionCount] = null;\n\t} //}}}\n\n\t//{{{ updatePositionsForInsert() method\n\tprivate void updatePositionsForInsert(int offset, int length)\n\t{\n\t\tif(positionCount == 0)\n\t\t\treturn;\n\n\t\tint start = getPositionAtOffset(offset);\n\n\t\tfor(int i = start; i < positionCount; i++)\n\t\t{\n\t\t\tPosBottomHalf bh = positions[i];\n\t\t\tif(bh.offset < offset)\n\t\t\t\tLog.log(Log.ERROR,this,\"Screwed up: \" + bh.offset);\n\t\t\telse\n\t\t\t\tbh.offset += length;\n\t\t}\n\t} //}}}\n\n\t//{{{ updatePositionsForRemove() method\n\tprivate void updatePositionsForRemove(int offset, int length)\n\t{\n\t\tif(positionCount == 0)\n\t\t\treturn;\n\n\t\tint start = getPositionAtOffset(offset);\n\n\t\tfor(int i = start; i < positionCount; i++)\n\t\t{\n\t\t\tPosBottomHalf bh = positions[i];\n\t\t\tif(bh.offset < offset)\n\t\t\t\tLog.log(Log.ERROR,this,\"Screwed up: \" + bh.offset);\n\t\t\telse if(bh.offset < offset + length)\n\t\t\t\tbh.offset = offset;\n\t\t\telse\n\t\t\t\tbh.offset -= length;\n\t\t}\n\t} //}}}\n\n\t//{{{ getPositionAtOffset() method\n\tprivate int getPositionAtOffset(int offset)\n\t{\n\t\tint start = 0;\n\t\tint end = positionCount - 1;\n\n\t\tPosBottomHalf bh;\n\nloop:\t\tfor(;;)\n\t\t{\n\t\t\tswitch(end - start)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tbh = positions[start];\n\t\t\t\tif(bh.offset < offset)\n\t\t\t\t\tstart++;\n\t\t\t\tbreak loop;\n\t\t\tcase 1:\n\t\t\t\tbh = positions[end];\n\t\t\t\tif(bh.offset < offset)\n\t\t\t\t{\n\t\t\t\t\tstart = end + 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbh = positions[start];\n\t\t\t\t\tif(bh.offset < offset)\n\t\t\t\t\t{\n\t\t\t\t\t\tstart++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak loop;\n\t\t\tdefault:\n\t\t\t\tint pivot = (start + end) / 2;\n\t\t\t\tbh = positions[pivot];\n\t\t\t\tif(bh.offset > offset)\n\t\t\t\t\tend = pivot - 1;\n\t\t\t\telse\n\t\t\t\t\tstart = pivot + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn start;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ PosTopHalf class\n\tstatic class PosTopHalf implements Position\n\t{\n\t\tPosBottomHalf bh;\n\n\t\t//{{{ PosTopHalf constructor\n\t\tPosTopHalf(PosBottomHalf bh)\n\t\t{\n\t\t\tthis.bh = bh;\n\t\t\tbh.ref();\n\t\t} //}}}\n\n\t\t//{{{ getOffset() method\n\t\tpublic int getOffset()\n\t\t{\n\t\t\treturn bh.offset;\n\t\t} //}}}\n\n\t\t//{{{ finalize() method\n\t\tpublic void finalize()\n\t\t{\n\t\t\tbh.unref();\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ PosBottomHalf class\n\tclass PosBottomHalf\n\t{\n\t\tint offset;\n\t\tint ref;\n\n\t\t//{{{ PosBottomHalf constructor\n\t\tPosBottomHalf(int offset)\n\t\t{\n\t\t\tthis.offset = offset;\n\t\t} //}}}\n\n\t\t//{{{ ref() method\n\t\tvoid ref()\n\t\t{\n\t\t\tref++;\n\t\t} //}}}\n\n\t\t//{{{ unref() method\n\t\tvoid unref()\n\t\t{\n\t\t\tif(--ref == 0)\n\t\t\t\tremovePosition(this);", "functions": [{"function_name": "getLineCount", "code": "\tpublic final int getLineCount()\n\t{\n\t\treturn lineCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getVirtualLineCount", "code": "\tpublic final int getVirtualLineCount(int index)\n\t{\n\t\treturn virtualLineCounts[index];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVirtualLineCount", "code": "\tpublic final void setVirtualLineCount(int index, int lineCount)\n\t{\n\t\tvirtualLineCounts[index] = lineCount;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLineOfOffset", "code": "\tpublic int getLineOfOffset(int offset)\n\t{\n\t\tint start = 0;\n\t\tint end = lineCount - 1;\n\n\t\tfor(;;)\n\t\t{\n\t\t\tswitch(end - start)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tif(getLineEndOffset(start) <= offset)\n\t\t\t\t\treturn start + 1;\n\t\t\t\telse\n\t\t\t\t\treturn start;\n\t\t\tcase 1:\n\t\t\t\tif(getLineEndOffset(start) <= offset)\n\t\t\t\t{\n\t\t\t\t\tif(getLineEndOffset(end) <= offset)\n\t\t\t\t\t\treturn end + 1;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn end;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn start;\n\t\t\tdefault:\n\t\t\t\tint pivot = (end + start) / 2;\n\t\t\t\tint value = getLineEndOffset(pivot);\n\t\t\t\tif(value == offset)\n\t\t\t\t\treturn pivot + 1;\n\t\t\t\telse if(value < offset)\n\t\t\t\t\tstart = pivot + 1;\n\t\t\t\telse\n\t\t\t\t\tend = pivot - 1;\n\t\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [5, 8], [6, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [11, 18], [11, 19], [11, 20], [14, 21], [14, 22], [16, 23], [16, 24], [16, 25], [18, 26], [19, 27], [12, 28], [13, 29], [14, 30], [22, 31], [24, 32], [25, 33], [18, 34], [18, 35], [27, 36], [29, 37], [29, 38], [30, 39], [30, 40], [30, 41], [32, 42], [34, 43], [35, 44], [40, 45], [41, 46], [43, 47], [44, 48], [45, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 5], [9, 6], [10, 5], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 5], [18, 11], [19, 11], [20, 11], [21, 14], [22, 14], [23, 16], [24, 16], [25, 16], [26, 18], [27, 19], [28, 12], [29, 13], [30, 14], [31, 22], [32, 24], [33, 25], [34, 18], [35, 18], [36, 27], [37, 29], [38, 29], [39, 30], [40, 30], [41, 30], [42, 32], [43, 34], [44, 35], [45, 40], [46, 41], [47, 43], [48, 44], [49, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "getLineEndOffset", "code": "\tpublic final int getLineEndOffset(int line)\n\t{\n\t\tint end = (int)(lineInfo[line] & END_MASK);\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\treturn end + gapWidth;\n\t\telse\n\t\t\treturn end;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [9, 10], [2, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 9], [11, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "isFoldLevelValid", "code": "\tpublic final boolean isFoldLevelValid(int line)\n\t{\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\treturn false;\n\n\t\treturn (lineInfo[line] & FOLD_LEVEL_VALID_MASK) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [4, 8], [5, 9], [6, 10], [6, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 4], [9, 5], [10, 6], [11, 6], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getFoldLevel", "code": "\tpublic final int getFoldLevel(int line)\n\t{\n\t\treturn (int)((lineInfo[line] & FOLD_LEVEL_MASK)\n\t\t\t>> FOLD_LEVEL_SHIFT);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setFoldLevel", "code": "\tpublic final void setFoldLevel(int line, int level)\n\t{\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\tmoveGap(line + 1,0,\"setFoldLevel\");\n\n\t\tlineInfo[line] = ((lineInfo[line] & ~FOLD_LEVEL_MASK)\n\t\t\t| ((long)level << FOLD_LEVEL_SHIFT)\n\t\t\t| FOLD_LEVEL_VALID_MASK);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [5, 8], [5, 9], [6, 10], [7, 11], [7, 12], [7, 13], [9, 14], [10, 15], [10, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 5], [9, 5], [10, 6], [11, 7], [12, 7], [13, 7], [14, 9], [15, 10], [16, 10], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "isLineVisible", "code": "\tpublic final boolean isLineVisible(int line, int index)\n\t{\n\t\tlong mask = 1L << (index + VISIBLE_SHIFT);\n\t\treturn (lineInfo[line] & mask) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setLineVisible", "code": "\tpublic final void setLineVisible(int line, int index, boolean visible)\n\t{\n\t\tlong mask = 1L << (index + VISIBLE_SHIFT);\n\t\tif(visible)\n\t\t\tlineInfo[line] = (lineInfo[line] | mask);\n\t\telse\n\t\t\tlineInfo[line] = (lineInfo[line] & ~mask);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [6, 9], [7, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 6], [10, 7], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "isLineContextValid", "code": "\tpublic final boolean isLineContextValid(int line)\n\t{\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\treturn false;\n\n\t\treturn (lineInfo[line] & CONTEXT_VALID_MASK) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [4, 8], [5, 9], [6, 10], [6, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 4], [9, 5], [10, 6], [11, 6], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getLineContext", "code": "\tpublic final TokenMarker.LineContext getLineContext(int line)\n\t{\n\t\treturn lineContext[line];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLineContext", "code": "\tpublic final void setLineContext(int line, TokenMarker.LineContext context)\n\t{\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\tmoveGap(line + 1,0,\"setLineContext\");\n\n\t\tlineContext[line] = context;\n\t\tlineInfo[line] |= CONTEXT_VALID_MASK;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [7, 10], [7, 11], [7, 12], [9, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 7], [11, 7], [12, 7], [13, 9], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "createPosition", "code": "\tpublic synchronized Position createPosition(int offset)\n\t{\n\t\tPosBottomHalf bh = null;\n\n\t\tfor(int i = 0; i < positionCount; i++)\n\t\t{\n\t\t\tPosBottomHalf _bh = positions[i];\n\t\t\tif(_bh.offset == offset)\n\t\t\t{\n\t\t\t\tbh = _bh;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(_bh.offset > offset)\n\t\t\t{\n\t\t\t\tbh = new PosBottomHalf(offset);\n\t\t\t\tgrowPositionArray();\n\t\t\t\tSystem.arraycopy(positions,i,positions,i+1,\n\t\t\t\t\tpositionCount - i);\n\t\t\t\tpositionCount++;\n\t\t\t\tpositions[i] = bh;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(bh == null)\n\t\t{\n\t\t\tbh = new PosBottomHalf(offset);\n\t\t\tgrowPositionArray();\n\t\t\tpositions[positionCount++] = bh;\n\t\t}\n\n\t\treturn new PosTopHalf(bh);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [7, 9], [3, 10], [3, 11], [4, 12], [2, 13], [2, 14], [2, 15], [10, 16], [10, 17], [3, 18], [15, 19], [16, 20], [10, 21], [16, 22], [10, 23], [16, 24], [16, 25], [16, 26], [16, 27], [25, 28], [25, 29], [27, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 7], [10, 3], [11, 3], [12, 4], [13, 2], [14, 2], [15, 2], [16, 10], [17, 10], [18, 3], [19, 15], [20, 16], [21, 10], [22, 16], [23, 10], [24, 16], [25, 16], [26, 16], [27, 16], [28, 25], [29, 25], [30, 27], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "expandFolds", "code": "\tpublic void expandFolds(int foldLevel)\n\t{\n\t\tint newVirtualLineCount = 0;\n\n\t\tif(foldLevel == 0)\n\t\t{\n\t\t\tnewVirtualLineCount = lineCount;\n\n\t\t\tfor(int i = 0; i < lineCount; i++)\n\t\t\t\tlineInfo[i] |= VISIBLE_MASK;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfoldLevel = (foldLevel - 1) * buffer.getIndentSize() + 1;\n\n\t\t\t/* this ensures that the first line is always visible */\n\t\t\tboolean seenVisibleLine = false;\n\n\t\t\tfor(int i = 0; i < lineCount; i++)\n\t\t\t{\n\t\t\t\tif(!seenVisibleLine || buffer.getFoldLevel(i) < foldLevel)\n\t\t\t\t{\n\t\t\t\t\tseenVisibleLine = true;\n\t\t\t\t\tlineInfo[i] |= VISIBLE_MASK;\n\t\t\t\t\tnewVirtualLineCount++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tlineInfo[i] &= ~VISIBLE_MASK;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < virtualLineCounts.length; i++)\n\t\t{\n\t\t\tvirtualLineCounts[i] = newVirtualLineCount;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [3, 11], [1, 12], [1, 13], [7, 14], [2, 15], [9, 16], [2, 17], [7, 18], [8, 19], [15, 20], [9, 21], [18, 22], [7, 23], [20, 24], [20, 25], [9, 26], [18, 27], [22, 28], [25, 29], [25, 30], [18, 31], [18, 32], [28, 33], [30, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 3], [12, 1], [13, 1], [14, 7], [15, 2], [16, 9], [17, 2], [18, 7], [19, 8], [20, 15], [21, 9], [22, 18], [23, 7], [24, 20], [25, 20], [26, 9], [27, 18], [28, 22], [29, 25], [30, 25], [31, 18], [32, 18], [33, 28], [34, 30], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "contentInserted", "code": "\tpublic void contentInserted(int startLine, int offset,\n\t\tint numLines, int length, IntegerArray endOffsets)\n\t{\n\t\tint endLine = startLine + numLines;\n\n\t\t//{{{ Update line info and line context arrays\n\t\tif(numLines > 0)\n\t\t{\n\t\t\tmoveGap(-1,0,\"contentInserted\");\n\n\t\t\tlineCount += numLines;\n\n\t\t\tif(lineInfo.length <= lineCount)\n\t\t\t{\n\t\t\t\tlong[] lineInfoN = new long[(lineCount + 1) * 2];\n\t\t\t\tSystem.arraycopy(lineInfo,0,lineInfoN,0,\n\t\t\t\t\t\t lineInfo.length);\n\t\t\t\tlineInfo = lineInfoN;\n\n\t\t\t\tTokenMarker.LineContext[] lineContextN\n\t\t\t\t\t= new TokenMarker.LineContext[(lineCount + 1) * 2];\n\t\t\t\tSystem.arraycopy(lineContext,0,lineContextN,0,\n\t\t\t\t\t\t lineContext.length);\n\t\t\t\tlineContext = lineContextN;\n\t\t\t}\n\n\t\t\tSystem.arraycopy(lineInfo,startLine,lineInfo,\n\t\t\t\tendLine,lineCount - endLine);\n\t\t\tSystem.arraycopy(lineContext,startLine,lineContext,\n\t\t\t\tendLine,lineCount - endLine);\n\n\t\t\t//{{{ Find fold start of this line\n\t\t\tint foldLevel = buffer.getFoldLevel(startLine);\n\t\t\tlong visible = (0xffL << VISIBLE_SHIFT);\n\t\t\tif(startLine != 0)\n\t\t\t{\n\t\t\t\tfor(int i = startLine; i > 0; i--)\n\t\t\t\t{\n\t\t\t\t\tif(/* buffer.isFoldStart(i - 1)\n\t\t\t\t\t\t&& */ buffer.getFoldLevel(i) <= foldLevel)\n\t\t\t\t\t{\n\t\t\t\t\t\tvisible = (lineInfo[i] & VISIBLE_MASK);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} //}}}\n\n\t\t\tfor(int i = 0; i < numLines; i++)\n\t\t\t{\n\t\t\t\t// need the line end offset to be in place\n\t\t\t\t// for following fold level calculations\n\t\t\t\tlineInfo[startLine + i] = (offset\n\t\t\t\t\t+ endOffsets.get(i) + 1)\n\t\t\t\t\t| visible;\n\t\t\t}\n\n\t\t\t//{{{ Unrolled\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 0))) != 0)\n\t\t\t\tvirtualLineCounts[0] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 1))) != 0)\n\t\t\t\tvirtualLineCounts[1] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 2))) != 0)\n\t\t\t\tvirtualLineCounts[2] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 3))) != 0)\n\t\t\t\tvirtualLineCounts[3] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 4))) != 0)\n\t\t\t\tvirtualLineCounts[4] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 5))) != 0)\n\t\t\t\tvirtualLineCounts[5] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 6))) != 0)\n\t\t\t\tvirtualLineCounts[6] += numLines;\n\t\t\tif((visible & (1L << (VISIBLE_SHIFT + 7))) != 0)\n\t\t\t\tvirtualLineCounts[7] += numLines;\n\t\t\t//}}}\n\t\t} //}}}\n\n\t\tmoveGap(endLine,length,\"contentInserted\");\n\n\t\tupdatePositionsForInsert(offset,length);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [9, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [10, 25], [2, 26], [12, 27], [13, 28], [14, 29], [15, 30], [16, 31], [17, 32], [18, 33], [19, 34], [20, 35], [21, 36], [1, 37], [1, 38], [24, 39], [1, 40], [1, 41], [12, 42], [27, 43], [27, 44], [13, 45], [28, 46], [28, 47], [14, 48], [29, 49], [29, 50], [15, 51], [30, 52], [30, 53], [16, 54], [31, 55], [31, 56], [17, 57], [32, 58], [32, 59], [18, 60], [33, 61], [33, 62], [19, 63], [34, 64], [34, 65], [21, 66], [36, 67], [22, 68], [23, 69], [37, 70], [38, 71], [24, 72], [24, 73], [41, 74], [41, 75], [41, 76], [44, 77], [47, 78], [50, 79], [53, 80], [56, 81], [59, 82], [62, 83], [65, 84], [20, 85], [20, 86], [66, 87], [68, 88], [24, 89], [24, 90], [24, 91], [24, 92], [77, 93], [77, 94], [78, 95], [78, 96], [79, 97], [79, 98], [80, 99], [80, 100], [81, 101], [81, 102], [82, 103], [82, 104], [83, 105], [83, 106], [84, 107], [84, 108], [85, 109], [66, 110], [87, 111], [90, 112], [90, 113], [92, 114], [92, 115], [42, 116], [93, 117], [45, 118], [95, 119], [48, 120], [97, 121], [51, 122], [99, 123], [54, 124], [101, 125], [57, 126], [103, 127], [60, 128], [105, 129], [63, 130], [107, 131], [109, 132], [110, 133], [72, 134], [73, 135], [132, 136], [132, 137], [85, 138], [110, 139], [133, 140], [134, 141], [134, 142], [135, 143], [135, 144], [137, 145], [110, 146], [142, 147], [144, 148], [146, 149], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 9], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 10], [26, 2], [27, 12], [28, 13], [29, 14], [30, 15], [31, 16], [32, 17], [33, 18], [34, 19], [35, 20], [36, 21], [37, 1], [38, 1], [39, 24], [40, 1], [41, 1], [42, 12], [43, 27], [44, 27], [45, 13], [46, 28], [47, 28], [48, 14], [49, 29], [50, 29], [51, 15], [52, 30], [53, 30], [54, 16], [55, 31], [56, 31], [57, 17], [58, 32], [59, 32], [60, 18], [61, 33], [62, 33], [63, 19], [64, 34], [65, 34], [66, 21], [67, 36], [68, 22], [69, 23], [70, 37], [71, 38], [72, 24], [73, 24], [74, 41], [75, 41], [76, 41], [77, 44], [78, 47], [79, 50], [80, 53], [81, 56], [82, 59], [83, 62], [84, 65], [85, 20], [86, 20], [87, 66], [88, 68], [89, 24], [90, 24], [91, 24], [92, 24], [93, 77], [94, 77], [95, 78], [96, 78], [97, 79], [98, 79], [99, 80], [100, 80], [101, 81], [102, 81], [103, 82], [104, 82], [105, 83], [106, 83], [107, 84], [108, 84], [109, 85], [110, 66], [111, 87], [112, 90], [113, 90], [114, 92], [115, 92], [116, 42], [117, 93], [118, 45], [119, 95], [120, 48], [121, 97], [122, 51], [123, 99], [124, 54], [125, 101], [126, 57], [127, 103], [128, 60], [129, 105], [130, 63], [131, 107], [132, 109], [133, 110], [134, 72], [135, 73], [136, 132], [137, 132], [138, 85], [139, 110], [140, 133], [141, 134], [142, 134], [143, 135], [144, 135], [145, 137], [146, 110], [147, 142], [148, 144], [149, 146], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149]]}, {"function_name": "contentRemoved", "code": "\tpublic void contentRemoved(int startLine, int offset,\n\t\tint numLines, int length)\n\t{\n\t\t//{{{ Update virtual line counts\n\t\tfor(int i = 0; i < numLines; i++)\n\t\t{\n\t\t\tlong info = lineInfo[startLine + i];\n\n\t\t\t// Unrolled for max efficency\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 0))) != 0)\n\t\t\t\tvirtualLineCounts[0]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 1))) != 0)\n\t\t\t\tvirtualLineCounts[1]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 2))) != 0)\n\t\t\t\tvirtualLineCounts[2]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 3))) != 0)\n\t\t\t\tvirtualLineCounts[3]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 4))) != 0)\n\t\t\t\tvirtualLineCounts[4]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 5))) != 0)\n\t\t\t\tvirtualLineCounts[5]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 6))) != 0)\n\t\t\t\tvirtualLineCounts[6]--;\n\t\t\tif((info & (1L << (VISIBLE_SHIFT + 7))) != 0)\n\t\t\t\tvirtualLineCounts[7]--;\n\t\t} //}}}\n\n\t\t//{{{ Update line info and line context arrays\n\t\tif(numLines > 0)\n\t\t{\n\t\t\tmoveGap(-1,0,\"contentRemoved\");\n\n\t\t\tlineCount -= numLines;\n\t\t\tSystem.arraycopy(lineInfo,startLine + numLines,lineInfo,\n\t\t\t\tstartLine,lineCount - startLine);\n\t\t\tSystem.arraycopy(lineContext,startLine + numLines,lineContext,\n\t\t\t\tstartLine,lineCount - startLine);\n\t\t} //}}}\n\n\t\tmoveGap(startLine,-length,\"contentRemoved\");\n\n\t\tupdatePositionsForRemove(offset,length);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [8, 11], [9, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [1, 22], [1, 23], [1, 24], [1, 25], [13, 26], [14, 27], [15, 28], [16, 29], [17, 30], [18, 31], [19, 32], [20, 33], [2, 34], [22, 35], [22, 36], [23, 37], [23, 38], [25, 39], [25, 40], [25, 41], [26, 42], [26, 43], [27, 44], [27, 45], [28, 46], [28, 47], [29, 48], [29, 49], [30, 50], [30, 51], [31, 52], [31, 53], [32, 54], [32, 55], [33, 56], [33, 57], [43, 58], [45, 59], [47, 60], [49, 61], [51, 62], [53, 63], [55, 64], [57, 65], [13, 66], [58, 67], [58, 68], [14, 69], [59, 70], [59, 71], [15, 72], [60, 73], [60, 74], [16, 75], [61, 76], [61, 77], [17, 78], [62, 79], [62, 80], [18, 81], [63, 82], [63, 83], [19, 84], [64, 85], [64, 86], [20, 87], [65, 88], [65, 89], [21, 90], [67, 91], [70, 92], [73, 93], [76, 94], [79, 95], [82, 96], [85, 97], [88, 98], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 8], [12, 9], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 1], [23, 1], [24, 1], [25, 1], [26, 13], [27, 14], [28, 15], [29, 16], [30, 17], [31, 18], [32, 19], [33, 20], [34, 2], [35, 22], [36, 22], [37, 23], [38, 23], [39, 25], [40, 25], [41, 25], [42, 26], [43, 26], [44, 27], [45, 27], [46, 28], [47, 28], [48, 29], [49, 29], [50, 30], [51, 30], [52, 31], [53, 31], [54, 32], [55, 32], [56, 33], [57, 33], [58, 43], [59, 45], [60, 47], [61, 49], [62, 51], [63, 53], [64, 55], [65, 57], [66, 13], [67, 58], [68, 58], [69, 14], [70, 59], [71, 59], [72, 15], [73, 60], [74, 60], [75, 16], [76, 61], [77, 61], [78, 17], [79, 62], [80, 62], [81, 18], [82, 63], [83, 63], [84, 19], [85, 64], [86, 64], [87, 20], [88, 65], [89, 65], [90, 21], [91, 67], [92, 70], [93, 73], [94, 76], [95, 79], [96, 82], [97, 85], [98, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98]]}, {"function_name": "lineInfoChangedFrom", "code": "\tpublic void lineInfoChangedFrom(int startLine)\n\t{\n\t\tmoveGap(startLine,0,\"lineInfoChangedFrom\");", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setLineEndOffset", "code": "\tprivate final void setLineEndOffset(int line, int end)\n\t{\n\t\tlineInfo[line] = ((lineInfo[line] & ~(END_MASK\n\t\t\t| FOLD_LEVEL_VALID_MASK | CONTEXT_VALID_MASK)) | end);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "moveGap", "code": "\tprivate final void moveGap(int newGapLine, int newGapWidth, String method)\n\t{\n\t\tif(gapLine == -1)\n\t\t\tgapWidth = newGapWidth;\n\t\telse if(newGapLine == -1)\n\t\t{\n\t\t\t//if(gapWidth != 0)\n\t\t\t{\n\t\t\t\t//if(DEBUG && gapLine != lineCount)\n\t\t\t\t//\tSystem.err.println(method + \": update from \" + gapLine + \" to \" + lineCount);\n\t\t\t\tfor(int i = gapLine; i < lineCount; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i));\n\t\t\t}\n\n\t\t\tgapWidth = newGapWidth;\n\t\t}\n\t\telse if(newGapLine < gapLine)\n\t\t{\n\t\t\t//if(gapWidth != 0)\n\t\t\t{\n\t\t\t\t//if(DEBUG && newGapLine != gapLine)\n\t\t\t\t//\tSystem.err.println(method + \": update from \" + newGapLine + \" to \" + gapLine);\n\t\t\t\tfor(int i = newGapLine; i < gapLine; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i) - gapWidth);\n\t\t\t}\n\t\t\tgapWidth += newGapWidth;\n\t\t}\n\t\telse //if(newGapLine >= gapLine)\n\t\t{\n\t\t\t//if(gapWidth != 0)\n\t\t\t{\n\t\t\t\t//if(DEBUG && gapLine != newGapLine)\n\t\t\t\t//\tSystem.err.println(method + \": update from \" + gapLine + \" to \" + newGapLine);\n\t\t\t\tfor(int i = gapLine; i < newGapLine; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i));\n\t\t\t}\n\n\t\t\tgapWidth += newGapWidth;\n\t\t}\n\n\t\tif(newGapLine == lineCount)\n\t\t\tgapLine = -1;\n\t\telse\n\t\t\tgapLine = newGapLine;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LOOP", "ASSIGN", "LOOP", "ASSIGN", "LOOP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [1, 9], [1, 10], [7, 11], [7, 12], [2, 13], [8, 14], [10, 15], [11, 16], [12, 17], [7, 18], [7, 19], [11, 20], [11, 21], [11, 22], [11, 23], [19, 24], [21, 25], [23, 26], [19, 27], [21, 28], [23, 29], [27, 30], [28, 31], [29, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 1], [10, 1], [11, 7], [12, 7], [13, 2], [14, 8], [15, 10], [16, 11], [17, 12], [18, 7], [19, 7], [20, 11], [21, 11], [22, 11], [23, 11], [24, 19], [25, 21], [26, 23], [27, 19], [28, 21], [29, 23], [30, 27], [31, 28], [32, 29], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "growPositionArray", "code": "\tprivate void growPositionArray()\n\t{\n\t\tif(positions.length < positionCount + 1)\n\t\t{\n\t\t\tPosBottomHalf[] newPositions = new PosBottomHalf[\n\t\t\t\t(positionCount + 1) * 2];\n\t\t\tSystem.arraycopy(positions,0,newPositions,0,positionCount);\n\t\t\tpositions = newPositions;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [1, 6], [4, 7], [6, 8], [6, 9], [3, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 1], [7, 4], [8, 6], [9, 6], [10, 3], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "removePosition", "code": "\tprivate synchronized void removePosition(PosBottomHalf bh)\n\t{\n\t\tint index = -1;\n\n\t\tfor(int i = 0; i < positionCount; i++)\n\t\t{\n\t\t\tif(positions[i] == bh)\n\t\t\t{\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.arraycopy(positions,index + 1,positions,index,\n\t\t\tpositionCount - index - 1);\n\t\tpositions[--positionCount] = null;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [5, 8], [5, 9], [1, 10], [2, 11], [8, 12], [8, 13], [9, 14], [10, 15], [1, 16], [10, 17], [10, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 5], [9, 5], [10, 1], [11, 2], [12, 8], [13, 8], [14, 9], [15, 10], [16, 1], [17, 10], [18, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "updatePositionsForInsert", "code": "\tprivate void updatePositionsForInsert(int offset, int length)\n\t{\n\t\tif(positionCount == 0)\n\t\t\treturn;\n\n\t\tint start = getPositionAtOffset(offset);\n\n\t\tfor(int i = start; i < positionCount; i++)\n\t\t{\n\t\t\tPosBottomHalf bh = positions[i];\n\t\t\tif(bh.offset < offset)\n\t\t\t\tLog.log(Log.ERROR,this,\"Screwed up: \" + bh.offset);\n\t\t\telse\n\t\t\t\tbh.offset += length;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [3, 8], [1, 9], [1, 10], [2, 11], [8, 12], [9, 13], [9, 14], [9, 15], [15, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 3], [9, 1], [10, 1], [11, 2], [12, 8], [13, 9], [14, 9], [15, 9], [16, 15], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "updatePositionsForRemove", "code": "\tprivate void updatePositionsForRemove(int offset, int length)\n\t{\n\t\tif(positionCount == 0)\n\t\t\treturn;\n\n\t\tint start = getPositionAtOffset(offset);\n\n\t\tfor(int i = start; i < positionCount; i++)\n\t\t{\n\t\t\tPosBottomHalf bh = positions[i];\n\t\t\tif(bh.offset < offset)\n\t\t\t\tLog.log(Log.ERROR,this,\"Screwed up: \" + bh.offset);\n\t\t\telse if(bh.offset < offset + length)\n\t\t\t\tbh.offset = offset;\n\t\t\telse\n\t\t\t\tbh.offset -= length;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [3, 8], [1, 9], [1, 10], [2, 11], [8, 12], [9, 13], [9, 14], [13, 15], [9, 16], [13, 17], [13, 18], [15, 19], [16, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 3], [9, 1], [10, 1], [11, 2], [12, 8], [13, 9], [14, 9], [15, 13], [16, 9], [17, 13], [18, 13], [19, 15], [20, 16], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getPositionAtOffset", "code": "\tprivate int getPositionAtOffset(int offset)\n\t{\n\t\tint start = 0;\n\t\tint end = positionCount - 1;\n\n\t\tPosBottomHalf bh;\n\nloop:\t\tfor(;;)\n\t\t{\n\t\t\tswitch(end - start)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tbh = positions[start];\n\t\t\t\tif(bh.offset < offset)\n\t\t\t\t\tstart++;\n\t\t\t\tbreak loop;\n\t\t\tcase 1:\n\t\t\t\tbh = positions[end];\n\t\t\t\tif(bh.offset < offset)\n\t\t\t\t{\n\t\t\t\t\tstart = end + 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbh = positions[start];\n\t\t\t\t\tif(bh.offset < offset)\n\t\t\t\t\t{\n\t\t\t\t\t\tstart++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak loop;\n\t\t\tdefault:\n\t\t\t\tint pivot = (start + end) / 2;\n\t\t\t\tbh = positions[pivot];\n\t\t\t\tif(bh.offset > offset)\n\t\t\t\t\tend = pivot - 1;\n\t\t\t\telse\n\t\t\t\t\tstart = pivot + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn start;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "VAR_DECL", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [5, 9], [7, 10], [8, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [7, 19], [7, 20], [13, 21], [7, 22], [16, 23], [7, 24], [19, 25], [7, 26], [13, 27], [13, 28], [14, 29], [16, 30], [27, 31], [28, 32], [29, 33], [29, 34], [30, 35], [16, 36], [16, 37], [31, 38], [32, 39], [37, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 5], [10, 7], [11, 8], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 7], [19, 7], [20, 7], [21, 13], [22, 7], [23, 16], [24, 7], [25, 19], [26, 7], [27, 13], [28, 13], [29, 14], [30, 16], [31, 27], [32, 28], [33, 29], [34, 29], [35, 30], [36, 16], [37, 16], [38, 31], [39, 32], [40, 37], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "OffsetManager", "code": "\tpublic OffsetManager(Buffer buffer)\n\t{\n\t\tthis.buffer = buffer;\n\n\t\tlineInfo = new long[1];\n\t\t// make first line visible by default\n\t\tlineInfo[0] = 1L | (0xffL << VISIBLE_SHIFT);\n\t\tlineContext = new TokenMarker.LineContext[1];\n\t\tlineCount = 1;\n\n\t\tpositions = new PosBottomHalf[100];\n\n\t\tvirtualLineCounts = new int[8];\n\t\tfor(int i = 0; i < 8; i++)\n\t\t\tvirtualLineCounts[i] = 1;\n\n\t\tgapLine = -1;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [3, 12], [1, 13], [4, 14], [7, 15], [9, 16], [13, 17], [1, 18], [5, 19], [6, 20], [8, 21], [16, 22], [16, 23], [10, 24], [22, 25], [9, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 3], [13, 1], [14, 4], [15, 7], [16, 9], [17, 13], [18, 1], [19, 5], [20, 6], [21, 8], [22, 16], [23, 16], [24, 10], [25, 22], [26, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}], "label": 1}
{"sample_id": "xalan-2.4-6698", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/LogicalExpr.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.LogicalExpr", "code": "final class LogicalExpr extends Expression {\n\n    public static final int OR  = 0;\n    public static final int AND = 1;\n\t\n\n    private static final String[] Ops = { \"or\", \"and\" };\n\n    /**\n     * Creates a new logical expression - either OR or AND. Note that the\n     * left- and right-hand side expressions can also be logical expressions,\n     * thus creating logical trees representing structures such as\n     * (a and (b or c) and d), etc...\n     */\n    public LogicalExpr(int op, Expression left, Expression right) {\n\t_op = op;\n\t(_left = left).setParent(this);\n\t(_right = right).setParent(this);\n    }\n\n    /**\n     * Returns true if this expressions contains a call to position(). This is\n     * needed for context changes in node steps containing multiple predicates.\n     */\n    public boolean hasPositionCall() {\n\treturn (_left.hasPositionCall() || _right.hasPositionCall());\n    }\n\n    /**\n     * Returns an object representing the compile-time evaluation \n     * of an expression. We are only using this for function-available\n     * and element-available at this time.\n     */\n    public Object evaluateAtCompileTime() {\n\tfinal Object leftb = _left.evaluateAtCompileTime();\n\tfinal Object rightb = _right.evaluateAtCompileTime();\n\n\tif (leftb == null || rightb == null) {\n\t    return null;\n\t}\n\n\tif (_op == AND) {\n\t    return (leftb == Boolean.TRUE && rightb == Boolean.TRUE) ?\n\t\tBoolean.TRUE : Boolean.FALSE;\n\t}\n\telse {\n\t    return (leftb == Boolean.TRUE || rightb == Boolean.TRUE) ?\n\t\tBoolean.TRUE : Boolean.FALSE;\n\t}\n    }\n\n    /**\n     * Returns this logical expression's operator - OR or AND represented\n     * by 0 and 1 respectively.\n     */\n    public int getOp() {\n\treturn(_op);\n    }\n\n    /**\n     * Override the SyntaxTreeNode.setParser() method to make sure that the\n     * parser is set for sub-expressions\n     */\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_left.setParser(parser);\n\t_right.setParser(parser);\n    }\n\n    /**\n     * Returns a string describing this expression\n     */\n    public String toString() {\n\treturn Ops[_op] + '(' + _left + \", \" + _right + ')';\n    }\n\n    /**\n     * Type-check this expression, and possibly child expressions.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tType tleft = _left.typeCheck(stable); \n\tType tright = _right.typeCheck(stable);\n\n\tMethodType wantType = new MethodType(Type.Void, tleft, tright);\n\tMethodType haveType = lookupPrimop(stable, Ops[_op], wantType);\n\n\tif (haveType != null) {\n\t    Type arg1 = (Type)haveType.argsType().elementAt(0);\n\t    if (!arg1.identicalTo(tleft))\n\t\t_left = new CastExpr(_left, arg1);\n\t    Type arg2 = (Type) haveType.argsType().elementAt(1);\n\t    if (!arg2.identicalTo(tright))\n\t\t_right = new CastExpr(_right, arg1);\n\t    return _type = haveType.resultType();\n\t}\n\tthrow new TypeCheckError(this);\n    }\n\n    /**\n     * Compile the expression - leave boolean expression on stack\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\ttranslateDesynthesized(classGen, methodGen);\n\tsynthesize(classGen, methodGen);\n    }\n\n    /**\n     * Compile expression and update true/false-lists\n     */\n    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal SyntaxTreeNode parent = getParent();\n\n\tif (_op == AND) {\n\n\t    _left.translateDesynthesized(classGen, methodGen);\n\n\t    InstructionHandle middle = il.append(NOP);\n\n\t    _right.translateDesynthesized(classGen, methodGen);\n\n\t    InstructionHandle after = il.append(NOP);\n\n\t    _falseList.append(_right._falseList.append(_left._falseList));\n\n\t    if ((_left instanceof LogicalExpr) &&\n\t\t(((LogicalExpr)_left).getOp() == OR)) {\n\t\t_left.backPatchTrueList(middle);\n\t    }\n\t    else if (_left instanceof NotCall) {\n\t\t_left.backPatchTrueList(middle);\n\t    }\n\t    else {\n\t\t_trueList.append(_left._trueList);\n\t    }\n\n\t    if ((_right instanceof LogicalExpr) &&\n\t\t(((LogicalExpr)_right).getOp() == OR)) {\n\t\t_right.backPatchTrueList(after);\n\t    }\n\t    else if (_right instanceof NotCall) {\n\t\t_right.backPatchTrueList(after);\n\t    }\n\t    else {\n\t\t_trueList.append(_right._trueList);\n\t    }\n\t} \n\telse {\n\t    _left.translateDesynthesized(classGen, methodGen);\n\n\t    InstructionHandle ih = il.append(new GOTO(null));\n\n\t    _right.translateDesynthesized(classGen, methodGen);\n\n\t    _left._trueList.backPatch(ih);\n\t    _left._falseList.backPatch(ih.getNext());\n\t\t\t\n\t    _falseList.append(_right._falseList);\n\t    _trueList.add(ih).append(_right._trueList);", "functions": [{"function_name": "hasPositionCall", "code": "    public boolean hasPositionCall() {\n\treturn (_left.hasPositionCall() || _right.hasPositionCall());", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "evaluateAtCompileTime", "code": "    public Object evaluateAtCompileTime() {\n\tfinal Object leftb = _left.evaluateAtCompileTime();\n\tfinal Object rightb = _right.evaluateAtCompileTime();\n\n\tif (leftb == null || rightb == null) {\n\t    return null;\n\t}\n\n\tif (_op == AND) {\n\t    return (leftb == Boolean.TRUE && rightb == Boolean.TRUE) ?\n\t\tBoolean.TRUE : Boolean.FALSE;\n\t}\n\telse {\n\t    return (leftb == Boolean.TRUE || rightb == Boolean.TRUE) ?\n\t\tBoolean.TRUE : Boolean.FALSE;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [1, 8], [2, 9], [6, 10], [6, 11], [3, 12], [4, 13], [7, 14], [8, 15], [9, 16], [10, 17], [11, 18], [14, 19], [15, 20], [19, 21], [19, 22], [20, 23], [20, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 1], [9, 2], [10, 6], [11, 6], [12, 3], [13, 4], [14, 7], [15, 8], [16, 9], [17, 10], [18, 11], [19, 14], [20, 15], [21, 19], [22, 19], [23, 20], [24, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getOp", "code": "    public int getOp() {\n\treturn(_op);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_left.setParser(parser);\n\t_right.setParser(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn Ops[_op] + '(' + _left + \", \" + _right + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tType tleft = _left.typeCheck(stable); \n\tType tright = _right.typeCheck(stable);\n\n\tMethodType wantType = new MethodType(Type.Void, tleft, tright);\n\tMethodType haveType = lookupPrimop(stable, Ops[_op], wantType);\n\n\tif (haveType != null) {\n\t    Type arg1 = (Type)haveType.argsType().elementAt(0);\n\t    if (!arg1.identicalTo(tleft))\n\t\t_left = new CastExpr(_left, arg1);\n\t    Type arg2 = (Type) haveType.argsType().elementAt(1);\n\t    if (!arg2.identicalTo(tright))\n\t\t_right = new CastExpr(_right, arg1);\n\t    return _type = haveType.resultType();\n\t}\n\tthrow new TypeCheckError(this);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [9, 15], [3, 16], [4, 17], [5, 18], [6, 19], [10, 20], [11, 21], [13, 22], [20, 23], [11, 24], [13, 25], [24, 26], [12, 27], [25, 28], [14, 29], [27, 30], [29, 31], [30, 32], [31, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 9], [16, 3], [17, 4], [18, 5], [19, 6], [20, 10], [21, 11], [22, 13], [23, 20], [24, 11], [25, 13], [26, 24], [27, 12], [28, 25], [29, 14], [30, 27], [31, 29], [32, 30], [33, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\ttranslateDesynthesized(classGen, methodGen);\n\tsynthesize(classGen, methodGen);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "translateDesynthesized", "code": "    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal SyntaxTreeNode parent = getParent();\n\n\tif (_op == AND) {\n\n\t    _left.translateDesynthesized(classGen, methodGen);\n\n\t    InstructionHandle middle = il.append(NOP);\n\n\t    _right.translateDesynthesized(classGen, methodGen);\n\n\t    InstructionHandle after = il.append(NOP);\n\n\t    _falseList.append(_right._falseList.append(_left._falseList));\n\n\t    if ((_left instanceof LogicalExpr) &&\n\t\t(((LogicalExpr)_left).getOp() == OR)) {\n\t\t_left.backPatchTrueList(middle);\n\t    }\n\t    else if (_left instanceof NotCall) {\n\t\t_left.backPatchTrueList(middle);\n\t    }\n\t    else {\n\t\t_trueList.append(_left._trueList);\n\t    }\n\n\t    if ((_right instanceof LogicalExpr) &&\n\t\t(((LogicalExpr)_right).getOp() == OR)) {\n\t\t_right.backPatchTrueList(after);\n\t    }\n\t    else if (_right instanceof NotCall) {\n\t\t_right.backPatchTrueList(after);\n\t    }\n\t    else {\n\t\t_trueList.append(_right._trueList);\n\t    }\n\t} \n\telse {\n\t    _left.translateDesynthesized(classGen, methodGen);\n\n\t    InstructionHandle ih = il.append(new GOTO(null));\n\n\t    _right.translateDesynthesized(classGen, methodGen);\n\n\t    _left._trueList.backPatch(ih);\n\t    _left._falseList.backPatch(ih.getNext());\n\t\t\t\n\t    _falseList.append(_right._falseList);\n\t    _trueList.add(ih).append(_right._trueList);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [3, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [8, 20], [8, 21], [9, 22], [9, 23], [1, 24], [1, 25], [1, 26], [14, 27], [16, 28], [7, 29], [20, 30], [21, 31], [21, 32], [22, 33], [23, 34], [23, 35], [24, 36], [10, 37], [11, 38], [29, 39], [8, 40], [9, 41], [39, 42], [20, 43], [20, 44], [22, 45], [22, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 3], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 8], [21, 8], [22, 9], [23, 9], [24, 1], [25, 1], [26, 1], [27, 14], [28, 16], [29, 7], [30, 20], [31, 21], [32, 21], [33, 22], [34, 23], [35, 23], [36, 24], [37, 10], [38, 11], [39, 29], [40, 8], [41, 9], [42, 39], [43, 20], [44, 20], [45, 22], [46, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "LogicalExpr", "code": "    public LogicalExpr(int op, Expression left, Expression right) {\n\t_op = op;\n\t(_left = left).setParent(this);\n\t(_right = right).setParent(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "jedit-4.2-4507", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "gnu/regexp/RETokenBackRef.java", "language": "java", "name": "gnu.regexp.RETokenBackRef", "code": "final class RETokenBackRef extends REToken {\n  private int num;\n  private boolean insens;\n  \n  RETokenBackRef(int subIndex, int num, boolean insens) {\n    super(subIndex);\n    this.num = num;\n    this.insens = insens;\n  }\n\n  // should implement getMinimumLength() -- any ideas?\n\n    boolean match(CharIndexed input, REMatch mymatch) {\n\tint b,e;\n\tb = mymatch.start[num];\n\te = mymatch.end[num];\n\tif ((b==-1)||(e==-1)) return false; // this shouldn't happen, but...\n\tfor (int i=b; i<e; i++) {\n\t    if (input.charAt(mymatch.index+i-b) != input.charAt(i)) {\n\t\treturn false;\n\t    }\n\t}\n\tmymatch.index += e-b;\n\treturn next(input, mymatch);\n    }\n    \n    void dump(StringBuffer os) {\n\tos.append('\\\\').append(num);", "functions": [{"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\tint b,e;\n\tb = mymatch.start[num];\n\te = mymatch.end[num];\n\tif ((b==-1)||(e==-1)) return false; // this shouldn't happen, but...\n\tfor (int i=b; i<e; i++) {\n\t    if (input.charAt(mymatch.index+i-b) != input.charAt(i)) {\n\t\treturn false;\n\t    }\n\t}\n\tmymatch.index += e-b;\n\treturn next(input, mymatch);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [3, 10], [3, 11], [0, 12], [0, 13], [8, 14], [2, 15], [10, 16], [11, 17], [11, 18], [15, 19], [17, 20], [18, 21], [15, 22], [19, 23], [19, 24], [22, 25], [24, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 3], [11, 3], [12, 0], [13, 0], [14, 8], [15, 2], [16, 10], [17, 11], [18, 11], [19, 15], [20, 17], [21, 18], [22, 15], [23, 19], [24, 19], [25, 22], [26, 24], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "dump", "code": "    void dump(StringBuffer os) {\n\tos.append('\\\\').append(num);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RETokenBackRef", "code": "  RETokenBackRef(int subIndex, int num, boolean insens) {\n    super(subIndex);\n    this.num = num;\n    this.insens = insens;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.6-7681", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/CallTemplate.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.CallTemplate", "code": "final class CallTemplate extends Instruction {\n    \n    /**\n     * Name of template to call.\n     */\n    private QName _name;\n    \n    /** \n     * The array of effective parameters in this CallTemplate. An object in \n     * this array can be either a WithParam or a Param if no WithParam \n     * exists for a particular parameter.\n     */\n    private Object[] _parameters = null;\n        \n    /**\n     * The corresponding template which this CallTemplate calls.\n     */\n    private Template _calleeTemplate = null;\n    \n    public void display(int indent) {\n\tindent(indent);\n\tSystem.out.print(\"CallTemplate\");\n\tUtil.println(\" name \" + _name);\n\tdisplayContents(indent + IndentIncrement);\n    }\n\t\t\n    public boolean hasWithParams() {\n\treturn elementCount() > 0;\n    }\n\n    public void parseContents(Parser parser) {\n        final String name = getAttribute(\"name\");\n        if (name.length() > 0) {\n            if (!XMLChar.isValidQName(name)) {\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this);\n                parser.reportError(Constants.ERROR, err);           \n            }                \n            _name = parser.getQNameIgnoreDefaultNs(name);\n        }\n        else {\n            reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\t\t\n        }\n\tparseChildren(parser);\n    }\n\t\t\n    /**\n     * Verify that a template with this name exists.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Template template = stable.lookupTemplate(_name);\n\tif (template != null) {\n\t    typeCheckContents(stable);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.TEMPLATE_UNDEF_ERR,_name,this);\n\t    throw new TypeCheckError(err);\n\t}\n\treturn Type.Void;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal Stylesheet stylesheet = classGen.getStylesheet();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (stylesheet.hasLocalParams() || hasContents()) {\n\t    _calleeTemplate = getCalleeTemplate();\n\t    \n\t    if (_calleeTemplate != null) {\n\t    \tbuildParameterList();\n\t    }\n\t    else {\n\t        final int push = cpg.addMethodref(TRANSLET_CLASS, \n\t\t\t\t\t          PUSH_PARAM_FRAME,\n\t\t\t\t\t          PUSH_PARAM_FRAME_SIG);\n\t        il.append(classGen.loadTranslet());\n\t        il.append(new INVOKEVIRTUAL(push));\n\t        translateContents(classGen, methodGen);\n\t    }\n\t}\n\n\tfinal String className = stylesheet.getClassName();\n        String methodName = Util.escape(_name.toString());\n\n\til.append(classGen.loadTranslet());\n\til.append(methodGen.loadDOM());\n\til.append(methodGen.loadIterator());\n\til.append(methodGen.loadHandler());\n\til.append(methodGen.loadCurrentNode());\n        \n\tStringBuffer methodSig = new StringBuffer(\"(\" + DOM_INTF_SIG \n            + NODE_ITERATOR_SIG + TRANSLET_OUTPUT_SIG + NODE_SIG);\n\t\n\tif (_calleeTemplate != null) {\n\t    Vector calleeParams = _calleeTemplate.getParameters();\n\t    int numParams = _parameters.length;\n\t    \n\t    for (int i = 0; i < numParams; i++) {\n\t        SyntaxTreeNode node = (SyntaxTreeNode)_parameters[i];\n                \n                if (node instanceof Param) {\n                    il.append(ACONST_NULL);\n                }else{\n                    node.translate(classGen, methodGen);\n                }\n            \n        }\n\n\tmethodSig.append(\")V\");\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(className,\n\t\t\t\t\t\t     methodName,\n\t\t\t\t\t\t     methodSig.toString())));\n\t\n\tif (_calleeTemplate == null && (stylesheet.hasLocalParams() || hasContents())) {\n\t    final int pop = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t     POP_PARAM_FRAME,\n\t\t\t\t\t     POP_PARAM_FRAME_SIG);\n\t    il.append(classGen.loadTranslet());\n\t    il.append(new INVOKEVIRTUAL(pop));\n\t}\n    }\n    }\n    /**\n     * Return the simple named template which this CallTemplate calls.\n     * Return false if there is no matched template or the matched\n     * template is not a simple named template.\n     */\n    public Template getCalleeTemplate() {\n    \tStylesheet stylesheet = getXSLTC().getStylesheet();\n    \tVector templates = stylesheet.getAllValidTemplates();\n        \n    \tint size = templates.size();\n    \tfor (int i = 0; i < size; i++) {\n    \t    Template t = (Template)templates.elementAt(i);\n    \t    if (t.getName() == _name && t.isSimpleNamedTemplate()) {\n    \t    \treturn t;\n    \t    }\n    \t}\n    \treturn null;\n    }\n    \n    /**\n     * Build the list of effective parameters in this CallTemplate.\n     * The parameters of the called template are put into the array first.\n     * Then we visit the WithParam children of this CallTemplate and replace\n     * the Param with a corresponding WithParam having the same name.\n     */\n    private void buildParameterList() {   \t\n    \tVector defaultParams = _calleeTemplate.getParameters();\n    \tint numParams = defaultParams.size();\n    \t_parameters = new Object[numParams];\n    \tfor (int i = 0; i < numParams; i++) {\n    \t    _parameters[i] = defaultParams.elementAt(i);\n    \t}\n    \t\t    \t\n    \tint count = elementCount();\n    \tfor (int i = 0; i < count; i++) {\n    \t    Object node = elementAt(i);\n            \n    \t    if (node instanceof WithParam) {\n    \t    \tWithParam withParam = (WithParam)node;\n    \t    \tQName name = withParam.getName();\n                \n    \t    \tfor (int k = 0; k < numParams; k++) {\n    \t    \t    Object object = _parameters[k];\n    \t    \t    if (object instanceof Param \n    \t    \t        && ((Param)object).getName() == name) {\n    \t    \t        withParam.setDoParameterOptimization(true);\n    \t    \t        _parameters[k] = withParam;\n    \t    \t        break;\n    \t    \t    }\n    \t    \t    else if (object instanceof WithParam \n    \t    \t        && ((WithParam)object).getName() == name) {\n    \t    \t        withParam.setDoParameterOptimization(true);\n    \t    \t        _parameters[k] = withParam;    \t    \t        \n    \t    \t        break;", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tSystem.out.print(\"CallTemplate\");\n\tUtil.println(\" name \" + _name);\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "hasWithParams", "code": "    public boolean hasWithParams() {\n\treturn elementCount() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n        final String name = getAttribute(\"name\");\n        if (name.length() > 0) {\n            if (!XMLChar.isValidQName(name)) {\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this);\n                parser.reportError(Constants.ERROR, err);           \n            }                \n            _name = parser.getQNameIgnoreDefaultNs(name);\n        }\n        else {\n            reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\t\t\n        }\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [2, 9], [1, 10], [1, 11], [6, 12], [9, 13], [10, 14], [11, 15], [6, 16], [6, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 2], [10, 1], [11, 1], [12, 6], [13, 9], [14, 10], [15, 11], [16, 6], [17, 6], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Template template = stable.lookupTemplate(_name);\n\tif (template != null) {\n\t    typeCheckContents(stable);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.TEMPLATE_UNDEF_ERR,_name,this);\n\t    throw new TypeCheckError(err);\n\t}\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [6, 10], [2, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 6], [11, 2], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal Stylesheet stylesheet = classGen.getStylesheet();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (stylesheet.hasLocalParams() || hasContents()) {\n\t    _calleeTemplate = getCalleeTemplate();\n\t    \n\t    if (_calleeTemplate != null) {\n\t    \tbuildParameterList();\n\t    }\n\t    else {\n\t        final int push = cpg.addMethodref(TRANSLET_CLASS, \n\t\t\t\t\t          PUSH_PARAM_FRAME,\n\t\t\t\t\t          PUSH_PARAM_FRAME_SIG);\n\t        il.append(classGen.loadTranslet());\n\t        il.append(new INVOKEVIRTUAL(push));\n\t        translateContents(classGen, methodGen);\n\t    }\n\t}\n\n\tfinal String className = stylesheet.getClassName();\n        String methodName = Util.escape(_name.toString());\n\n\til.append(classGen.loadTranslet());\n\til.append(methodGen.loadDOM());\n\til.append(methodGen.loadIterator());\n\til.append(methodGen.loadHandler());\n\til.append(methodGen.loadCurrentNode());\n        \n\tStringBuffer methodSig = new StringBuffer(\"(\" + DOM_INTF_SIG \n            + NODE_ITERATOR_SIG + TRANSLET_OUTPUT_SIG + NODE_SIG);\n\t\n\tif (_calleeTemplate != null) {\n\t    Vector calleeParams = _calleeTemplate.getParameters();\n\t    int numParams = _parameters.length;\n\t    \n\t    for (int i = 0; i < numParams; i++) {\n\t        SyntaxTreeNode node = (SyntaxTreeNode)_parameters[i];\n                \n                if (node instanceof Param) {\n                    il.append(ACONST_NULL);\n                }else{\n                    node.translate(classGen, methodGen);\n                }\n            \n        }\n\n\tmethodSig.append(\")V\");\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(className,\n\t\t\t\t\t\t     methodName,\n\t\t\t\t\t\t     methodSig.toString())));\n\t\n\tif (_calleeTemplate == null && (stylesheet.hasLocalParams() || hasContents())) {\n\t    final int pop = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t     POP_PARAM_FRAME,\n\t\t\t\t\t     POP_PARAM_FRAME_SIG);\n\t    il.append(classGen.loadTranslet());\n\t    il.append(new INVOKEVIRTUAL(pop));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [5, 17], [1, 18], [1, 19], [1, 20], [1, 21], [11, 22], [2, 23], [12, 24], [13, 25], [14, 26], [15, 27], [16, 28], [3, 29], [4, 30], [5, 31], [17, 32], [17, 33], [6, 34], [7, 35], [8, 36], [18, 37], [1, 38], [1, 39], [19, 40], [23, 41], [29, 42], [31, 43], [5, 44], [18, 45], [37, 46], [37, 47], [38, 48], [39, 49], [19, 50], [19, 51], [21, 52], [41, 53], [31, 54], [43, 55], [44, 56], [18, 57], [18, 58], [46, 59], [46, 60], [47, 61], [48, 62], [50, 63], [19, 64], [53, 65], [31, 66], [31, 67], [31, 68], [31, 69], [57, 70], [58, 71], [45, 72], [62, 73], [65, 74], [67, 75], [68, 76], [54, 77], [50, 78], [50, 79], [74, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 5], [18, 1], [19, 1], [20, 1], [21, 1], [22, 11], [23, 2], [24, 12], [25, 13], [26, 14], [27, 15], [28, 16], [29, 3], [30, 4], [31, 5], [32, 17], [33, 17], [34, 6], [35, 7], [36, 8], [37, 18], [38, 1], [39, 1], [40, 19], [41, 23], [42, 29], [43, 31], [44, 5], [45, 18], [46, 37], [47, 37], [48, 38], [49, 39], [50, 19], [51, 19], [52, 21], [53, 41], [54, 31], [55, 43], [56, 44], [57, 18], [58, 18], [59, 46], [60, 46], [61, 47], [62, 48], [63, 50], [64, 19], [65, 53], [66, 31], [67, 31], [68, 31], [69, 31], [70, 57], [71, 58], [72, 45], [73, 62], [74, 65], [75, 67], [76, 68], [77, 54], [78, 50], [79, 50], [80, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "getCalleeTemplate", "code": "    public Template getCalleeTemplate() {\n    \tStylesheet stylesheet = getXSLTC().getStylesheet();\n    \tVector templates = stylesheet.getAllValidTemplates();\n        \n    \tint size = templates.size();\n    \tfor (int i = 0; i < size; i++) {\n    \t    Template t = (Template)templates.elementAt(i);\n    \t    if (t.getName() == _name && t.isSimpleNamedTemplate()) {\n    \t    \treturn t;\n    \t    }\n    \t}\n    \treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [3, 10], [4, 11], [5, 12], [8, 13], [2, 14], [12, 15], [8, 16], [13, 17], [13, 18], [18, 19], [9, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 3], [11, 4], [12, 5], [13, 8], [14, 2], [15, 12], [16, 8], [17, 13], [18, 13], [19, 18], [20, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "buildParameterList", "code": "    private void buildParameterList() {   \t\n    \tVector defaultParams = _calleeTemplate.getParameters();\n    \tint numParams = defaultParams.size();\n    \t_parameters = new Object[numParams];\n    \tfor (int i = 0; i < numParams; i++) {\n    \t    _parameters[i] = defaultParams.elementAt(i);\n    \t}\n    \t\t    \t\n    \tint count = elementCount();\n    \tfor (int i = 0; i < count; i++) {\n    \t    Object node = elementAt(i);\n            \n    \t    if (node instanceof WithParam) {\n    \t    \tWithParam withParam = (WithParam)node;\n    \t    \tQName name = withParam.getName();\n                \n    \t    \tfor (int k = 0; k < numParams; k++) {\n    \t    \t    Object object = _parameters[k];\n    \t    \t    if (object instanceof Param \n    \t    \t        && ((Param)object).getName() == name) {\n    \t    \t        withParam.setDoParameterOptimization(true);\n    \t    \t        _parameters[k] = withParam;\n    \t    \t        break;\n    \t    \t    }\n    \t    \t    else if (object instanceof WithParam \n    \t    \t        && ((WithParam)object).getName() == name) {\n    \t    \t        withParam.setDoParameterOptimization(true);\n    \t    \t        _parameters[k] = withParam;    \t    \t        \n    \t    \t        break;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [0, 8], [1, 9], [1, 10], [2, 11], [4, 12], [5, 13], [9, 14], [1, 15], [3, 16], [3, 17], [9, 18], [9, 19], [9, 20], [10, 21], [16, 22], [18, 23], [18, 24], [18, 25], [19, 26], [24, 27], [24, 28], [18, 29], [27, 30], [24, 31], [28, 32], [28, 33], [27, 34], [30, 35], [30, 36], [24, 37], [24, 38], [27, 39], [27, 40], [38, 41], [40, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 0], [9, 1], [10, 1], [11, 2], [12, 4], [13, 5], [14, 9], [15, 1], [16, 3], [17, 3], [18, 9], [19, 9], [20, 9], [21, 10], [22, 16], [23, 18], [24, 18], [25, 18], [26, 19], [27, 24], [28, 24], [29, 18], [30, 27], [31, 24], [32, 28], [33, 28], [34, 27], [35, 30], [36, 30], [37, 24], [38, 24], [39, 27], [40, 27], [41, 38], [42, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}], "label": 1}
{"sample_id": "camel-1.6-3049", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/converter/jaxb/IntegerHeader.java", "language": "java", "name": "org.apache.camel.converter.jaxb.IntegerHeader", "code": "@XmlRootElement(name = \"intHeader\")\n@XmlAccessorType(value = XmlAccessType.FIELD)\npublic class IntegerHeader extends HeaderType {\n    @XmlAttribute(name = \"value\")\n    private Integer number;\n\n    public IntegerHeader() {\n    }\n\n    public IntegerHeader(String name, Integer number) {\n        super(name);\n        this.number = number;\n    }\n\n    public Integer getNumber() {\n        return number;\n    }\n\n    public void setNumber(Integer number) {\n        this.number = number;\n    }\n\n    public Object getValue() {\n        return getNumber();\n    }\n\n    public void setValue(Object value) {\n        if (value instanceof Number) {\n            Number n = (Number) value;\n            setNumber(n.intValue());\n        } else {\n            throw new IllegalArgumentException(\"Value must be an Integer\");", "functions": [{"function_name": "getNumber", "code": "    public Integer getNumber() {\n        return number;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNumber", "code": "    public void setNumber(Integer number) {\n        this.number = number;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValue", "code": "    public Object getValue() {\n        return getNumber();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValue", "code": "    public void setValue(Object value) {\n        if (value instanceof Number) {\n            Number n = (Number) value;\n            setNumber(n.intValue());\n        } else {\n            throw new IllegalArgumentException(\"Value must be an Integer\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 1], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "IntegerHeader", "code": "    public IntegerHeader() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IntegerHeader", "code": "    public IntegerHeader(String name, Integer number) {\n        super(name);\n        this.number = number;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "jedit-3.2-3651", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "gnu/regexp/CharIndexedReader.java", "language": "java", "name": "gnu.regexp.CharIndexedReader", "code": "class CharIndexedReader implements CharIndexed {\n    private static final int BUFFER_INCREMENT = 1024;\n    private static final int UNKNOWN = Integer.MAX_VALUE; // value for end\n    \n    private final BufferedReader br;\n    // so that we don't try to reset() right away\n    private int index = -1;\n\n    private int bufsize = BUFFER_INCREMENT;\n\n    private int end = UNKNOWN;\n\n    private char cached = OUT_OF_BOUNDS;\n\n    // Big enough for a \\r\\n pair\n    // lookBehind[0] = most recent\n    // lookBehind[1] = second most recent\n    private char[] lookBehind = new char[] { OUT_OF_BOUNDS, OUT_OF_BOUNDS }; \n  \n    CharIndexedReader(Reader reader, int index) {\n\tif (reader instanceof BufferedReader) {\n\t    br = (BufferedReader) reader; \n\t} else {\n\t    br = new BufferedReader(reader,BUFFER_INCREMENT);\n\t}\n\tnext();\n\tif (index > 0) move(index);\n    }\n    \n    private boolean next() {\n\tlookBehind[1] = lookBehind[0];\n\tlookBehind[0] = cached;\n\n\tif (end == 1) {\n\t    cached = OUT_OF_BOUNDS;\n\t    return false;\n\t}\n\tend--; // closer to end\n\t\n\ttry {\n\t    if (index != -1) {\n\t\tbr.reset();\n\t    }\n\t    int i = br.read();\n\t    br.mark(bufsize);\n\t    if (i == -1) {\n\t\tend = 1;\n\t\tcached = OUT_OF_BOUNDS;\n\t\treturn false;\n\t    }\n\n\t    // convert the byte read into a char\n\t    cached = (char) i;\n\t    index = 1;\n\t} catch (IOException e) { \n\t    e.printStackTrace();\n\t    cached = OUT_OF_BOUNDS;\n\t    return false; \n\t}\n\treturn true;\n    }\n    \n    public char charAt(int index) {\n\tif (index == 0) {\n\t    return cached;\n\t} else if (index >= end) {\n\t    return OUT_OF_BOUNDS;\n\t} else if (index >= bufsize) {\n\t    // Allocate more space in the buffer.\n\t    try {\n\t\twhile (bufsize <= index) bufsize += BUFFER_INCREMENT;\n\t\tbr.reset();\n\t\tbr.mark(bufsize);\n\t\tbr.skip(index-1);\n\t    } catch (IOException e) { }\n\t} else if (this.index != index) {\n\t    try {\n\t\tbr.reset();\n\t\tbr.skip(index-1);\n\t    } catch (IOException e) { }\n\t} else if (index == -1) {\n\t    return lookBehind[0];\n\t} else if (index == -2) {\n\t    return lookBehind[1];\n\t} else if (index < -2) {\n\t    return OUT_OF_BOUNDS;\n\t}\n\n\tchar ch = OUT_OF_BOUNDS;\n\t\n\ttry {\n\t    int i = br.read();\n\t    this.index = index+1; // this.index is index of next pos relative to charAt(0)\n\t    if (i == -1) {\n\t\t// set flag that next should fail next time?\n\t\tend = index;\n\t\treturn ch;\n\t    }\n\t    ch = (char) i;\n\t} catch (IOException ie) { }\n\t\n\treturn ch;\n    }\n    \n    public boolean move(int index) {\n\t// move read position [index] clicks from 'charAt(0)'\n\tboolean retval = true;\n\twhile (retval && (index-- > 0)) retval = next();\n\treturn retval;\n    }\n    \n    public boolean isValid() {\n\treturn (cached != OUT_OF_BOUNDS);", "functions": [{"function_name": "next", "code": "    private boolean next() {\n\tlookBehind[1] = lookBehind[0];\n\tlookBehind[0] = cached;\n\n\tif (end == 1) {\n\t    cached = OUT_OF_BOUNDS;\n\t    return false;\n\t}\n\tend--; // closer to end\n\t\n\ttry {\n\t    if (index != -1) {\n\t\tbr.reset();\n\t    }\n\t    int i = br.read();\n\t    br.mark(bufsize);\n\t    if (i == -1) {\n\t\tend = 1;\n\t\tcached = OUT_OF_BOUNDS;\n\t\treturn false;\n\t    }\n\n\t    // convert the byte read into a char\n\t    cached = (char) i;\n\t    index = 1;\n\t} catch (IOException e) { \n\t    e.printStackTrace();\n\t    cached = OUT_OF_BOUNDS;\n\t    return false; \n\t}\n\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "RETURN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [3, 9], [0, 10], [0, 11], [5, 12], [2, 13], [2, 14], [6, 15], [2, 16], [8, 17], [3, 18], [9, 19], [12, 20], [5, 21], [5, 22], [13, 23], [6, 24], [15, 25], [7, 26], [17, 27], [18, 28], [3, 29], [24, 30], [6, 31], [6, 32], [8, 33], [10, 34], [11, 35], [11, 36], [32, 37], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 3], [10, 0], [11, 0], [12, 5], [13, 2], [14, 2], [15, 6], [16, 2], [17, 8], [18, 3], [19, 9], [20, 12], [21, 5], [22, 5], [23, 13], [24, 6], [25, 15], [26, 7], [27, 17], [28, 18], [29, 3], [30, 24], [31, 6], [32, 6], [33, 8], [34, 10], [35, 11], [36, 11], [37, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "charAt", "code": "    public char charAt(int index) {\n\tif (index == 0) {\n\t    return cached;\n\t} else if (index >= end) {\n\t    return OUT_OF_BOUNDS;\n\t} else if (index >= bufsize) {\n\t    // Allocate more space in the buffer.\n\t    try {\n\t\twhile (bufsize <= index) bufsize += BUFFER_INCREMENT;\n\t\tbr.reset();\n\t\tbr.mark(bufsize);\n\t\tbr.skip(index-1);\n\t    } catch (IOException e) { }\n\t} else if (this.index != index) {\n\t    try {\n\t\tbr.reset();\n\t\tbr.skip(index-1);\n\t    } catch (IOException e) { }\n\t} else if (index == -1) {\n\t    return lookBehind[0];\n\t} else if (index == -2) {\n\t    return lookBehind[1];\n\t} else if (index < -2) {\n\t    return OUT_OF_BOUNDS;\n\t}\n\n\tchar ch = OUT_OF_BOUNDS;\n\t\n\ttry {\n\t    int i = br.read();\n\t    this.index = index+1; // this.index is index of next pos relative to charAt(0)\n\t    if (i == -1) {\n\t\t// set flag that next should fail next time?\n\t\tend = index;\n\t\treturn ch;\n\t    }\n\t    ch = (char) i;\n\t} catch (IOException ie) { }\n\t\n\treturn ch;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "PARAM", "CATCH", "IF", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "TRY", "IF", "BINARY_OP", "TRY", "CATCH", "LOOP", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [4, 9], [4, 10], [2, 11], [7, 12], [2, 13], [9, 14], [9, 15], [4, 16], [10, 17], [7, 18], [12, 19], [13, 20], [8, 21], [14, 22], [14, 23], [9, 24], [7, 25], [20, 26], [22, 27], [22, 28], [14, 29], [27, 30], [27, 31], [22, 32], [29, 33], [29, 34], [30, 35], [30, 36], [27, 37], [31, 38], [32, 39], [29, 40], [29, 41], [29, 42], [34, 43], [35, 44], [30, 45], [36, 46], [32, 47], [32, 48], [40, 49], [34, 50], [35, 51], [44, 52], [47, 53], [49, 54], [37, 55], [53, 56], [45, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 4], [10, 4], [11, 2], [12, 7], [13, 2], [14, 9], [15, 9], [16, 4], [17, 10], [18, 7], [19, 12], [20, 13], [21, 8], [22, 14], [23, 14], [24, 9], [25, 7], [26, 20], [27, 22], [28, 22], [29, 14], [30, 27], [31, 27], [32, 22], [33, 29], [34, 29], [35, 30], [36, 30], [37, 27], [38, 31], [39, 32], [40, 29], [41, 29], [42, 29], [43, 34], [44, 35], [45, 30], [46, 36], [47, 32], [48, 32], [49, 40], [50, 34], [51, 35], [52, 44], [53, 47], [54, 49], [55, 37], [56, 53], [57, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "move", "code": "    public boolean move(int index) {\n\t// move read position [index] clicks from 'charAt(0)'\n\tboolean retval = true;\n\twhile (retval && (index-- > 0)) retval = next();\n\treturn retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isValid", "code": "    public boolean isValid() {\n\treturn (cached != OUT_OF_BOUNDS);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CharIndexedReader", "code": "    CharIndexedReader(Reader reader, int index) {\n\tif (reader instanceof BufferedReader) {\n\t    br = (BufferedReader) reader; \n\t} else {\n\t    br = new BufferedReader(reader,BUFFER_INCREMENT);\n\t}\n\tnext();\n\tif (index > 0) move(index);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [5, 9], [2, 10], [2, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 5], [10, 2], [11, 2], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "log4j-1.1-4916", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/config/PropertySetter.java", "language": "java", "name": "org.apache.log4j.config.PropertySetter", "code": "public class PropertySetter {\n  protected Object obj;\n  protected PropertyDescriptor[] props;\n  \n  /**\n    Create a new PropertySetter for the specified Object. This is done\n    in prepartion for invoking {@link #setProperty} one or more times.\n    \n    @param obj  the object for which to set properties\n   */\n  public\n  PropertySetter(Object obj) {\n    this.obj = obj;\n  }\n  \n  /**\n     Uses JavaBeans {@link Introspector} to computer setters of object to be\n     configured.\n   */\n  protected\n  void introspect() {\n    try {\n      BeanInfo bi = Introspector.getBeanInfo(obj.getClass());\n      props = bi.getPropertyDescriptors();\n    } catch (IntrospectionException ex) {\n      LogLog.error(\"Failed to introspect \"+obj+\": \" + ex.getMessage());\n      props = new PropertyDescriptor[0];\n    }\n  }\n  \n\n  /**\n     Set the properties of an object passed as a parameter in one\n     go. The <code>properties</code> are parsed relative to a\n     <code>prefix</code>.\n\n     @param obj The object to configure.\n     @param properties A java.util.Properties containing keys and values.\n     @param prefix Only keys having the specified prefix will be set.\n  */\n  public\n  static\n  void setProperties(Object obj, Properties properties, String prefix) {\n    new PropertySetter(obj).setProperties(properties, prefix);\n  }\n  \n\n  /**\n     Set the properites for the object that match the\n     <code>prefix</code> passed as parameter.\n\n     \n   */\n  public\n  void setProperties(Properties properties, String prefix) {\n    int len = prefix.length();\n    \n    for (Enumeration e = properties.keys(); e.hasMoreElements(); ) {\n      String key = (String) e.nextElement();\n      \n      // handle only properties that start with the desired frefix.\n      if (key.startsWith(prefix)) {\n\n\t\n\t// ignore key if it contains dots after the prefix\n        if (key.indexOf('.', len + 1) > 0) {\n\t  //System.err.println(\"----------Ignoring---[\"+key\n\t  //\t     +\"], prefix=[\"+prefix+\"].\");\n\t  continue;\n\t}\n        \n\tString value = OptionConverter.findAndSubst(key, properties);\n        key = key.substring(len);\n        if (\"layout\".equals(key) && obj instanceof Appender) {\n          continue;\n        }        \n        setProperty(key, value);\n      }\n    }\n    activate();\n  }\n  \n  /**\n     Set a property on this PropertySetter's Object. If successful, this\n     method will invoke a setter method on the underlying Object. The\n     setter is the one for the specified property name and the value is\n     determined partly from the setter argument type and partly from the\n     value specified in the call to this method.\n     \n     <p>If the setter expects a String no conversion is necessary.\n     If it expects an int, then an attempt is made to convert 'value'\n     to an int using new Integer(value). If the setter expects a boolean,\n     the conversion is by new Boolean(value).\n     \n     @param name    name of the property\n     @param value   String value of the property\n   */\n  public\n  void setProperty(String name, String value) {\n    if (value == null) return;\n    \n    name = Introspector.decapitalize(name);\n    PropertyDescriptor prop = getPropertyDescriptor(name);\n    \n    //LogLog.debug(\"---------Key: \"+name+\", type=\"+prop.getPropertyType());\n\n    if (prop == null) {\n      LogLog.warn(\"No such property [\" + name + \"] in \"+\n\t\t  obj.getClass().getName()+\".\" );\n    } else {\n      try {\n        setProperty(prop, name, value);\n      } catch (PropertySetterException ex) {\n        LogLog.warn(\"Failed to set property \" + name +\n                    \" to value \\\"\" + value + \"\\\". \" + ex.getMessage());\n      }\n    }\n  }\n  \n  /** \n      Set the named property given a {@link PropertyDescriptor}.\n\n      @param prop A PropertyDescriptor describing the characteristics\n      of the property to set.\n      @param name The named of the property to set.\n      @param value The value of the property.      \n   */\n  public\n  void setProperty(PropertyDescriptor prop, String name, String value)\n    throws PropertySetterException {\n    Method setter = prop.getWriteMethod();\n    if (setter == null) {\n      throw new PropertySetterException(\"No setter for property\");\n    }\n    Class[] paramTypes = setter.getParameterTypes();\n    if (paramTypes.length != 1) {\n      throw new PropertySetterException(\"#params for setter != 1\");\n    }\n    \n    Object arg;\n    try {\n      arg = convertArg(value, paramTypes[0]);\n    } catch (Throwable t) {\n      throw new PropertySetterException(\"Conversion to type [\"+paramTypes[0]+\n\t\t\t\t\t\"] failed. Reason: \"+t);\n    }\n    if (arg == null) {\n      throw new PropertySetterException(\n          \"Conversion to type [\"+paramTypes[0]+\"] failed.\");\n    }\n    LogLog.debug(\"Setting property [\" + name + \"] to [\" +arg+\"].\");\n    try {\n      setter.invoke(obj, new Object[]  { arg });\n    } catch (Exception ex) {\n      throw new PropertySetterException(ex);\n    }\n  }\n  \n\n  /**\n     Convert <code>val</code> a String parameter to an object of a\n     given type.\n  */\n  protected\n  Object convertArg(String val, Class type) {\n    if(val == null)\n      return null;\n\n    String v = val.trim();\n    if (String.class.isAssignableFrom(type)) {\n      return val;\n    } else if (Integer.TYPE.isAssignableFrom(type)) {\n      return new Integer(v);\n    } else if (Long.TYPE.isAssignableFrom(type)) {\n      return new Long(v);\n    } else if (Boolean.TYPE.isAssignableFrom(type)) {\n      if (\"true\".equalsIgnoreCase(v)) {\n        return Boolean.TRUE;\n      } else if (\"false\".equalsIgnoreCase(v)) {\n        return Boolean.FALSE;\n      }\n    } else if (Priority.class.isAssignableFrom(type)) {\n      return OptionConverter.toPriority(v, Priority.DEBUG);\n    }\n    return null;\n  }\n  \n  \n  protected\n  PropertyDescriptor getPropertyDescriptor(String name) {\n    if (props == null) introspect();\n    \n    for (int i = 0; i < props.length; i++) {\n      if (name.equals(props[i].getName())) {\n\treturn props[i];\n      }\n    }\n    return null;\n  }\n  \n  public\n  void activate() {\n    if (obj instanceof OptionHandler) {\n      ((OptionHandler) obj).activateOptions();", "functions": [{"function_name": "introspect", "code": "  void introspect() {\n    try {\n      BeanInfo bi = Introspector.getBeanInfo(obj.getClass());\n      props = bi.getPropertyDescriptors();\n    } catch (IntrospectionException ex) {\n      LogLog.error(\"Failed to introspect \"+obj+\": \" + ex.getMessage());\n      props = new PropertyDescriptor[0];", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [4, 7], [3, 8], [6, 9], [8, 10], [5, 11], [9, 12], [9, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 4], [8, 3], [9, 6], [10, 8], [11, 5], [12, 9], [13, 9], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setProperties", "code": "  void setProperties(Object obj, Properties properties, String prefix) {\n    new PropertySetter(obj).setProperties(properties, prefix);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setProperties", "code": "  void setProperties(Properties properties, String prefix) {\n    int len = prefix.length();\n    \n    for (Enumeration e = properties.keys(); e.hasMoreElements(); ) {\n      String key = (String) e.nextElement();\n      \n      // handle only properties that start with the desired frefix.\n      if (key.startsWith(prefix)) {\n\n\t\n\t// ignore key if it contains dots after the prefix\n        if (key.indexOf('.', len + 1) > 0) {\n\t  //System.err.println(\"----------Ignoring---[\"+key\n\t  //\t     +\"], prefix=[\"+prefix+\"].\");\n\t  continue;\n\t}\n        \n\tString value = OptionConverter.findAndSubst(key, properties);\n        key = key.substring(len);\n        if (\"layout\".equals(key) && obj instanceof Appender) {\n          continue;\n        }        \n        setProperty(key, value);\n      }\n    }\n    activate();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [7, 10], [1, 11], [7, 12], [7, 13], [7, 14], [7, 15], [12, 16], [7, 17], [14, 18], [8, 19], [12, 20], [16, 21], [16, 22], [17, 23], [13, 24], [14, 25], [18, 26], [18, 27], [22, 28], [27, 29], [27, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 7], [11, 1], [12, 7], [13, 7], [14, 7], [15, 7], [16, 12], [17, 7], [18, 14], [19, 8], [20, 12], [21, 16], [22, 16], [23, 17], [24, 13], [25, 14], [26, 18], [27, 18], [28, 22], [29, 27], [30, 27], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "setProperty", "code": "  void setProperty(String name, String value) {\n    if (value == null) return;\n    \n    name = Introspector.decapitalize(name);\n    PropertyDescriptor prop = getPropertyDescriptor(name);\n    \n    //LogLog.debug(\"---------Key: \"+name+\", type=\"+prop.getPropertyType());\n\n    if (prop == null) {\n      LogLog.warn(\"No such property [\" + name + \"] in \"+\n\t\t  obj.getClass().getName()+\".\" );\n    } else {\n      try {\n        setProperty(prop, name, value);\n      } catch (PropertySetterException ex) {\n        LogLog.warn(\"Failed to set property \" + name +\n                    \" to value \\\"\" + value + \"\\\". \" + ex.getMessage());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [3, 8], [3, 9], [1, 10], [6, 11], [2, 12], [7, 13], [9, 14], [10, 15], [1, 16], [10, 17], [16, 18], [15, 19], [18, 20], [18, 21], [19, 22], [21, 23], [21, 24], [22, 25], [22, 26], [23, 27], [24, 28], [24, 29], [26, 30], [26, 31], [29, 32], [31, 33], [33, 34], [33, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 3], [9, 3], [10, 1], [11, 6], [12, 2], [13, 7], [14, 9], [15, 10], [16, 1], [17, 10], [18, 16], [19, 15], [20, 18], [21, 18], [22, 19], [23, 21], [24, 21], [25, 22], [26, 22], [27, 23], [28, 24], [29, 24], [30, 26], [31, 26], [32, 29], [33, 31], [34, 33], [35, 33], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "setProperty", "code": "  void setProperty(PropertyDescriptor prop, String name, String value)\n    throws PropertySetterException {\n    Method setter = prop.getWriteMethod();\n    if (setter == null) {\n      throw new PropertySetterException(\"No setter for property\");\n    }\n    Class[] paramTypes = setter.getParameterTypes();\n    if (paramTypes.length != 1) {\n      throw new PropertySetterException(\"#params for setter != 1\");\n    }\n    \n    Object arg;\n    try {\n      arg = convertArg(value, paramTypes[0]);\n    } catch (Throwable t) {\n      throw new PropertySetterException(\"Conversion to type [\"+paramTypes[0]+\n\t\t\t\t\t\"] failed. Reason: \"+t);\n    }\n    if (arg == null) {\n      throw new PropertySetterException(\n          \"Conversion to type [\"+paramTypes[0]+\"] failed.\");\n    }\n    LogLog.debug(\"Setting property [\" + name + \"] to [\" +arg+\"].\");\n    try {\n      setter.invoke(obj, new Object[]  { arg });\n    } catch (Exception ex) {\n      throw new PropertySetterException(ex);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CALL", "BINARY_OP", "CATCH", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [2, 14], [3, 15], [5, 16], [7, 17], [12, 18], [1, 19], [13, 20], [2, 21], [14, 22], [15, 23], [3, 24], [5, 25], [16, 26], [6, 27], [7, 28], [17, 29], [8, 30], [18, 31], [20, 32], [20, 33], [21, 34], [23, 35], [24, 36], [25, 37], [28, 38], [33, 39], [34, 40], [35, 41], [37, 42], [38, 43], [39, 44], [39, 45], [40, 46], [40, 47], [41, 48], [45, 49], [47, 50], [48, 51], [48, 52], [36, 53], [52, 54], [47, 55], [52, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 2], [15, 3], [16, 5], [17, 7], [18, 12], [19, 1], [20, 13], [21, 2], [22, 14], [23, 15], [24, 3], [25, 5], [26, 16], [27, 6], [28, 7], [29, 17], [30, 8], [31, 18], [32, 20], [33, 20], [34, 21], [35, 23], [36, 24], [37, 25], [38, 28], [39, 33], [40, 34], [41, 35], [42, 37], [43, 38], [44, 39], [45, 39], [46, 40], [47, 40], [48, 41], [49, 45], [50, 47], [51, 48], [52, 48], [53, 36], [54, 52], [55, 47], [56, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "convertArg", "code": "  Object convertArg(String val, Class type) {\n    if(val == null)\n      return null;\n\n    String v = val.trim();\n    if (String.class.isAssignableFrom(type)) {\n      return val;\n    } else if (Integer.TYPE.isAssignableFrom(type)) {\n      return new Integer(v);\n    } else if (Long.TYPE.isAssignableFrom(type)) {\n      return new Long(v);\n    } else if (Boolean.TYPE.isAssignableFrom(type)) {\n      if (\"true\".equalsIgnoreCase(v)) {\n        return Boolean.TRUE;\n      } else if (\"false\".equalsIgnoreCase(v)) {\n        return Boolean.FALSE;\n      }\n    } else if (Priority.class.isAssignableFrom(type)) {\n      return OptionConverter.toPriority(v, Priority.DEBUG);\n    }\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "IF", "CALL", "RETURN", "CALL", "CALL", "IF", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [4, 10], [4, 11], [8, 12], [8, 13], [2, 14], [3, 15], [10, 16], [11, 17], [12, 18], [12, 19], [8, 20], [18, 21], [18, 22], [12, 23], [20, 24], [21, 25], [18, 26], [23, 27], [21, 28], [26, 29], [26, 30], [28, 31], [29, 32], [26, 33], [30, 34], [29, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 4], [11, 4], [12, 8], [13, 8], [14, 2], [15, 3], [16, 10], [17, 11], [18, 12], [19, 12], [20, 8], [21, 18], [22, 18], [23, 12], [24, 20], [25, 21], [26, 18], [27, 23], [28, 21], [29, 26], [30, 26], [31, 28], [32, 29], [33, 26], [34, 30], [35, 29], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getPropertyDescriptor", "code": "  PropertyDescriptor getPropertyDescriptor(String name) {\n    if (props == null) introspect();\n    \n    for (int i = 0; i < props.length; i++) {\n      if (name.equals(props[i].getName())) {\n\treturn props[i];\n      }\n    }\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [3, 9], [7, 10], [8, 11], [2, 12], [8, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 3], [10, 7], [11, 8], [12, 2], [13, 8], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "activate", "code": "  void activate() {\n    if (obj instanceof OptionHandler) {\n      ((OptionHandler) obj).activateOptions();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "PropertySetter", "code": "  PropertySetter(Object obj) {\n    this.obj = obj;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.7-8435", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/Key.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Key", "code": "final class Key extends TopLevelElement {\n\n    /**\n     * The name of this key as defined in xsl:key.\n     */\n    private QName _name;\n\n    /**\n     * The pattern to match starting at the root node.\n     */\n    private Pattern _match; \n\n    /**\n     * The expression that generates the values for this key.\n     */\n    private Expression _use;\n\n    /**\n     * The type of the _use expression.\n     */\n    private Type _useType;\n\n    /**\n     * Parse the <xsl:key> element and attributes\n     * @param parser A reference to the stylesheet parser\n     */\n    public void parseContents(Parser parser) {\n\n        final String name = getAttribute(\"name\");\n        if (!XML11Char.isXML11ValidQName(name)){\n            ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this);\n            parser.reportError(Constants.ERROR, err);           \n        }\n        _name = parser.getQNameIgnoreDefaultNs(name);\n\t_match = parser.parsePattern(this, \"match\", null);\n\t_use = parser.parseExpression(this, \"use\", null);\n\n        if (_name == null) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\n\t    return;\n        }\n        if (_match.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"match\");\n\t    return;\n        }\n        if (_use.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"use\");\n\t    return;\n        }\n    }\n\n    /**\n     * Returns a String-representation of this key's name\n     * @return The key's name (from the <xsl:key> elements 'name' attribute).\n     */\n    public String getName() {\n\treturn _name.toString();\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_match.typeCheck(stable);\n\n\t_useType = _use.typeCheck(stable);\n\tif (_useType instanceof StringType == false &&\n\t    _useType instanceof NodeSetType == false) \n\t{\n\t    _use = new CastExpr(_use, Type.String);\n\t}\n\n\treturn Type.Void;\n    }\n\n    /**\n     * This method is called if the \"use\" attribute of the key contains a\n     * node set. In this case we must traverse all nodes in the set and\n     * create one entry in this key's index for each node in the set.\n     */\n    public void traverseNodeSet(ClassGenerator classGen,\n\t\t\t\tMethodGenerator methodGen,\n\t\t\t\tint buildKeyIndex) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tfinal int getNodeValue = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\t   GET_NODE_VALUE,\n\t\t\t\t\t\t\t   \"(I)\"+STRING_SIG);\n\t\t\t\t\t\t\t   \n\tfinal int getNodeIdent = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\t   \"getNodeIdent\",\n\t\t\t\t\t\t\t   \"(I)\"+NODE_SIG);\t\n\t\t\t\t\t\t\t   \n\tfinal int keyDom = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"setKeyIndexDom\",\n\t\t\t\t\t \"(\"+STRING_SIG+DOM_INTF_SIG+\")V\");\t\t\t\t \n\t\t\t\t\t\t   \t\t\t\t\t   \n\n\tfinal LocalVariableGen parentNode =\n\t    methodGen.addLocalVariable(\"parentNode\",\n\t\t\t\t       Util.getJCRefType(\"I\"),\n\t\t\t\t       il.getEnd(), null);\n\n\til.append(new ISTORE(parentNode.getIndex()));\t\n\til.append(methodGen.loadDOM());\n\til.append(new ILOAD(parentNode.getIndex()));\t\n\til.append(new INVOKEINTERFACE(getNodeIdent, 2));\n\til.append(new ISTORE(parentNode.getIndex()));\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.loadIterator());\n\n\t_use.translate(classGen, methodGen);\n\t_use.startIterator(classGen, methodGen);\n\til.append(methodGen.storeIterator());\n\n\tfinal BranchHandle nextNode = il.append(new GOTO(null));\n\tfinal InstructionHandle loop = il.append(NOP);\n\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg, _name.toString()));\n\til.append(new ILOAD(parentNode.getIndex()));\n\n\til.append(methodGen.loadDOM());\n\til.append(methodGen.loadCurrentNode());\n\til.append(new INVOKEINTERFACE(getNodeValue, 2));\t\t\n\n\til.append(new INVOKEVIRTUAL(buildKeyIndex));\n\t\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg, getName()));\n\til.append(methodGen.loadDOM());\n\til.append(new INVOKEVIRTUAL(keyDom));\n\n\tnextNode.setTarget(il.append(methodGen.loadIterator()));\n\til.append(methodGen.nextNode());\t\n\n\til.append(DUP);\n\til.append(methodGen.storeCurrentNode());\n\n\til.append(methodGen.storeIterator());\n\til.append(methodGen.storeCurrentNode());\n    }\n\n    /**\n     * Gather all nodes that match the expression in the attribute \"match\"\n     * and add one (or more) entries in this key's index.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int current = methodGen.getLocalIndex(\"current\");\n\n\tfinal int key = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"buildKeyIndex\",\n\t\t\t\t\t \"(\"+STRING_SIG+\"I\"+OBJECT_SIG+\")V\");\n\t\t\t\t\t \n\tfinal int keyDom = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"setKeyIndexDom\",\n\t\t\t\t\t \"(\"+STRING_SIG+DOM_INTF_SIG+\")V\");\n\t\t\t\t\t \n\tfinal int getNodeIdent = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\t   \"getNodeIdent\",\n\t\t\t\t\t\t\t   \"(I)\"+NODE_SIG);\t\t\t\t\t \t\t\t\t \n\n\tfinal int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  \"getAxisIterator\",\n\t\t\t\t\t\t  \"(I)\"+NODE_ITERATOR_SIG);\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.loadIterator());\n\n\til.append(methodGen.loadDOM());\t\n\til.append(new PUSH(cpg,Axis.DESCENDANT));\n\til.append(new INVOKEINTERFACE(git, 2));\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.setStartNode());\n\til.append(methodGen.storeIterator());\n\n\tfinal BranchHandle nextNode = il.append(new GOTO(null));\n\tfinal InstructionHandle loop = il.append(NOP);\n\n\til.append(methodGen.loadCurrentNode());\n\t_match.translate(classGen, methodGen);\n\tfinal BranchHandle skipNode = il.append(new IFEQ(null));\n\t\n\tif (_useType instanceof NodeSetType) {\n\t    il.append(methodGen.loadCurrentNode());\n\t    traverseNodeSet(classGen, methodGen, key);\n\t}\n\telse {\n\t    il.append(classGen.loadTranslet());\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _name.toString()));\n\t    il.append(DUP_X1);\n\t    il.append(methodGen.loadCurrentNode());\n\t    _use.translate(classGen, methodGen);\n\t    il.append(SWAP);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(SWAP);\n\t    il.append(new INVOKEINTERFACE(getNodeIdent, 2));\n\t    il.append(SWAP);\n\t    il.append(new INVOKEVIRTUAL(key));\n\t    \n\t    il.append(methodGen.loadDOM());\n\t    il.append(new INVOKEVIRTUAL(keyDom));\n\t}\n\t\n\tfinal InstructionHandle skip = il.append(NOP);\n\t\n\til.append(methodGen.loadIterator());\n\til.append(methodGen.nextNode());\n\til.append(DUP);\n\til.append(methodGen.storeCurrentNode());\n\til.append(new IFGT(loop));\n\n\til.append(methodGen.storeIterator());\n\til.append(methodGen.storeCurrentNode());\n\t\n\tnextNode.setTarget(skip);\n\tskipNode.setTarget(skip);", "functions": [{"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\n        final String name = getAttribute(\"name\");\n        if (!XML11Char.isXML11ValidQName(name)){\n            ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this);\n            parser.reportError(Constants.ERROR, err);           \n        }\n        _name = parser.getQNameIgnoreDefaultNs(name);\n\t_match = parser.parsePattern(this, \"match\", null);\n\t_use = parser.parseExpression(this, \"use\", null);\n\n        if (_name == null) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\n\t    return;\n        }\n        if (_match.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"match\");\n\t    return;\n        }\n        if (_use.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"use\");\n\t    return;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "RETURN", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [0, 10], [0, 11], [0, 12], [4, 13], [1, 14], [2, 15], [3, 16], [9, 17], [10, 18], [11, 19], [12, 20], [4, 21], [5, 22], [1, 23], [2, 24], [3, 25], [18, 26], [18, 27], [19, 28], [19, 29], [4, 30], [22, 31], [23, 32], [24, 33], [25, 34], [21, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 0], [11, 0], [12, 0], [13, 4], [14, 1], [15, 2], [16, 3], [17, 9], [18, 10], [19, 11], [20, 12], [21, 4], [22, 5], [23, 1], [24, 2], [25, 3], [26, 18], [27, 18], [28, 19], [29, 19], [30, 4], [31, 22], [32, 23], [33, 24], [34, 25], [35, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getName", "code": "    public String getName() {\n\treturn _name.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_match.typeCheck(stable);\n\n\t_useType = _use.typeCheck(stable);\n\tif (_useType instanceof StringType == false &&\n\t    _useType instanceof NodeSetType == false) \n\t{\n\t    _use = new CastExpr(_use, Type.String);\n\t}\n\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [0, 6], [4, 7], [4, 8], [5, 9], [2, 10], [7, 11], [7, 12], [8, 13], [8, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 0], [7, 4], [8, 4], [9, 5], [10, 2], [11, 7], [12, 7], [13, 8], [14, 8], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "traverseNodeSet", "code": "    public void traverseNodeSet(ClassGenerator classGen,\n\t\t\t\tMethodGenerator methodGen,\n\t\t\t\tint buildKeyIndex) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tfinal int getNodeValue = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\t   GET_NODE_VALUE,\n\t\t\t\t\t\t\t   \"(I)\"+STRING_SIG);\n\t\t\t\t\t\t\t   \n\tfinal int getNodeIdent = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\t   \"getNodeIdent\",\n\t\t\t\t\t\t\t   \"(I)\"+NODE_SIG);\t\n\t\t\t\t\t\t\t   \n\tfinal int keyDom = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"setKeyIndexDom\",\n\t\t\t\t\t \"(\"+STRING_SIG+DOM_INTF_SIG+\")V\");\t\t\t\t \n\t\t\t\t\t\t   \t\t\t\t\t   \n\n\tfinal LocalVariableGen parentNode =\n\t    methodGen.addLocalVariable(\"parentNode\",\n\t\t\t\t       Util.getJCRefType(\"I\"),\n\t\t\t\t       il.getEnd(), null);\n\n\til.append(new ISTORE(parentNode.getIndex()));\t\n\til.append(methodGen.loadDOM());\n\til.append(new ILOAD(parentNode.getIndex()));\t\n\til.append(new INVOKEINTERFACE(getNodeIdent, 2));\n\til.append(new ISTORE(parentNode.getIndex()));\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.loadIterator());\n\n\t_use.translate(classGen, methodGen);\n\t_use.startIterator(classGen, methodGen);\n\til.append(methodGen.storeIterator());\n\n\tfinal BranchHandle nextNode = il.append(new GOTO(null));\n\tfinal InstructionHandle loop = il.append(NOP);\n\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg, _name.toString()));\n\til.append(new ILOAD(parentNode.getIndex()));\n\n\til.append(methodGen.loadDOM());\n\til.append(methodGen.loadCurrentNode());\n\til.append(new INVOKEINTERFACE(getNodeValue, 2));\t\t\n\n\til.append(new INVOKEVIRTUAL(buildKeyIndex));\n\t\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg, getName()));\n\til.append(methodGen.loadDOM());\n\til.append(new INVOKEVIRTUAL(keyDom));\n\n\tnextNode.setTarget(il.append(methodGen.loadIterator()));\n\til.append(methodGen.nextNode());\t\n\n\til.append(DUP);\n\til.append(methodGen.storeCurrentNode());\n\n\til.append(methodGen.storeIterator());\n\til.append(methodGen.storeCurrentNode());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [12, 39], [13, 40], [14, 41], [16, 42], [17, 43], [18, 44], [19, 45], [20, 46], [21, 47], [22, 48], [23, 49], [24, 50], [25, 51], [26, 52], [27, 53], [28, 54], [1, 55], [2, 56], [29, 57], [32, 58], [33, 59], [34, 60], [35, 61], [36, 62], [37, 63], [38, 64], [3, 65], [4, 66], [5, 67], [6, 68], [7, 69], [8, 70], [43, 71], [46, 72], [49, 73], [52, 74], [53, 75], [56, 76], [60, 77], [61, 78], [62, 79], [64, 80], [65, 81], [65, 82], [65, 83], [65, 84], [66, 85], [66, 86], [67, 87], [67, 88], [68, 89], [76, 90], [83, 91], [85, 92], [85, 93], [87, 94], [89, 95], [93, 96], [96, 97], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 12], [40, 13], [41, 14], [42, 16], [43, 17], [44, 18], [45, 19], [46, 20], [47, 21], [48, 22], [49, 23], [50, 24], [51, 25], [52, 26], [53, 27], [54, 28], [55, 1], [56, 2], [57, 29], [58, 32], [59, 33], [60, 34], [61, 35], [62, 36], [63, 37], [64, 38], [65, 3], [66, 4], [67, 5], [68, 6], [69, 7], [70, 8], [71, 43], [72, 46], [73, 49], [74, 52], [75, 53], [76, 56], [77, 60], [78, 61], [79, 62], [80, 64], [81, 65], [82, 65], [83, 65], [84, 65], [85, 66], [86, 66], [87, 67], [88, 67], [89, 68], [90, 76], [91, 83], [92, 85], [93, 85], [94, 87], [95, 89], [96, 93], [97, 96], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int current = methodGen.getLocalIndex(\"current\");\n\n\tfinal int key = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"buildKeyIndex\",\n\t\t\t\t\t \"(\"+STRING_SIG+\"I\"+OBJECT_SIG+\")V\");\n\t\t\t\t\t \n\tfinal int keyDom = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"setKeyIndexDom\",\n\t\t\t\t\t \"(\"+STRING_SIG+DOM_INTF_SIG+\")V\");\n\t\t\t\t\t \n\tfinal int getNodeIdent = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\t   \"getNodeIdent\",\n\t\t\t\t\t\t\t   \"(I)\"+NODE_SIG);\t\t\t\t\t \t\t\t\t \n\n\tfinal int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  \"getAxisIterator\",\n\t\t\t\t\t\t  \"(I)\"+NODE_ITERATOR_SIG);\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.loadIterator());\n\n\til.append(methodGen.loadDOM());\t\n\til.append(new PUSH(cpg,Axis.DESCENDANT));\n\til.append(new INVOKEINTERFACE(git, 2));\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.setStartNode());\n\til.append(methodGen.storeIterator());\n\n\tfinal BranchHandle nextNode = il.append(new GOTO(null));\n\tfinal InstructionHandle loop = il.append(NOP);\n\n\til.append(methodGen.loadCurrentNode());\n\t_match.translate(classGen, methodGen);\n\tfinal BranchHandle skipNode = il.append(new IFEQ(null));\n\t\n\tif (_useType instanceof NodeSetType) {\n\t    il.append(methodGen.loadCurrentNode());\n\t    traverseNodeSet(classGen, methodGen, key);\n\t}\n\telse {\n\t    il.append(classGen.loadTranslet());\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, _name.toString()));\n\t    il.append(DUP_X1);\n\t    il.append(methodGen.loadCurrentNode());\n\t    _use.translate(classGen, methodGen);\n\t    il.append(SWAP);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(SWAP);\n\t    il.append(new INVOKEINTERFACE(getNodeIdent, 2));\n\t    il.append(SWAP);\n\t    il.append(new INVOKEVIRTUAL(key));\n\t    \n\t    il.append(methodGen.loadDOM());\n\t    il.append(new INVOKEVIRTUAL(keyDom));\n\t}\n\t\n\tfinal InstructionHandle skip = il.append(NOP);\n\t\n\til.append(methodGen.loadIterator());\n\til.append(methodGen.nextNode());\n\til.append(DUP);\n\til.append(methodGen.storeCurrentNode());\n\til.append(new IFGT(loop));\n\n\til.append(methodGen.storeIterator());\n\til.append(methodGen.storeCurrentNode());\n\t\n\tnextNode.setTarget(skip);\n\tskipNode.setTarget(skip);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [2, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [17, 35], [18, 36], [19, 37], [20, 38], [22, 39], [23, 40], [1, 41], [3, 42], [26, 43], [4, 44], [5, 45], [27, 46], [28, 47], [29, 48], [30, 49], [31, 50], [32, 51], [33, 52], [34, 53], [6, 54], [7, 55], [8, 56], [9, 57], [10, 58], [11, 59], [12, 60], [2, 61], [2, 62], [2, 63], [2, 64], [2, 65], [2, 66], [2, 67], [2, 68], [2, 69], [2, 70], [2, 71], [2, 72], [2, 73], [2, 74], [2, 75], [2, 76], [42, 77], [45, 78], [49, 79], [54, 80], [54, 81], [55, 82], [55, 83], [56, 84], [56, 85], [57, 86], [57, 87], [58, 88], [61, 89], [62, 90], [63, 91], [65, 92], [67, 93], [70, 94], [72, 95], [74, 96], [76, 97], [77, 98], [78, 99], [80, 100], [82, 101], [84, 102], [84, 103], [86, 104], [86, 105], [92, 106], [95, 107], [103, 108], [105, 109], [108, 110], [109, 111], [109, 112], [112, 113], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 2], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 17], [36, 18], [37, 19], [38, 20], [39, 22], [40, 23], [41, 1], [42, 3], [43, 26], [44, 4], [45, 5], [46, 27], [47, 28], [48, 29], [49, 30], [50, 31], [51, 32], [52, 33], [53, 34], [54, 6], [55, 7], [56, 8], [57, 9], [58, 10], [59, 11], [60, 12], [61, 2], [62, 2], [63, 2], [64, 2], [65, 2], [66, 2], [67, 2], [68, 2], [69, 2], [70, 2], [71, 2], [72, 2], [73, 2], [74, 2], [75, 2], [76, 2], [77, 42], [78, 45], [79, 49], [80, 54], [81, 54], [82, 55], [83, 55], [84, 56], [85, 56], [86, 57], [87, 57], [88, 58], [89, 61], [90, 62], [91, 63], [92, 65], [93, 67], [94, 70], [95, 72], [96, 74], [97, 76], [98, 77], [99, 78], [100, 80], [101, 82], [102, 84], [103, 84], [104, 86], [105, 86], [106, 92], [107, 95], [108, 103], [109, 105], [110, 108], [111, 109], [112, 109], [113, 112], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113]]}], "label": 1}
{"sample_id": "xalan-2.7-8174", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/res/XMLErrorResources_tr.java", "language": "java", "name": "org.apache.xml.res.XMLErrorResources_tr", "code": "public class XMLErrorResources_tr extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 61;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 0;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 4;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Message keys\n   */\n  public static final String ER_FUNCTION_NOT_SUPPORTED = \"ER_FUNCTION_NOT_SUPPORTED\";\n  public static final String ER_CANNOT_OVERWRITE_CAUSE = \"ER_CANNOT_OVERWRITE_CAUSE\";\n  public static final String ER_NO_DEFAULT_IMPL = \"ER_NO_DEFAULT_IMPL\";\n  public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = \"ER_CHUNKEDINTARRAY_NOT_SUPPORTED\";\n  public static final String ER_OFFSET_BIGGER_THAN_SLOT = \"ER_OFFSET_BIGGER_THAN_SLOT\";\n  public static final String ER_COROUTINE_NOT_AVAIL = \"ER_COROUTINE_NOT_AVAIL\";\n  public static final String ER_COROUTINE_CO_EXIT = \"ER_COROUTINE_CO_EXIT\";\n  public static final String ER_COJOINROUTINESET_FAILED = \"ER_COJOINROUTINESET_FAILED\";\n  public static final String ER_COROUTINE_PARAM = \"ER_COROUTINE_PARAM\";\n  public static final String ER_PARSER_DOTERMINATE_ANSWERS = \"ER_PARSER_DOTERMINATE_ANSWERS\";\n  public static final String ER_NO_PARSE_CALL_WHILE_PARSING = \"ER_NO_PARSE_CALL_WHILE_PARSING\";\n  public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = \"ER_ITERATOR_CLONE_NOT_SUPPORTED\";\n  public static final String ER_UNKNOWN_AXIS_TYPE = \"ER_UNKNOWN_AXIS_TYPE\";\n  public static final String ER_AXIS_NOT_SUPPORTED = \"ER_AXIS_NOT_SUPPORTED\";\n  public static final String ER_NO_DTMIDS_AVAIL = \"ER_NO_DTMIDS_AVAIL\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_NODE_NON_NULL = \"ER_NODE_NON_NULL\";\n  public static final String ER_COULD_NOT_RESOLVE_NODE = \"ER_COULD_NOT_RESOLVE_NODE\";\n  public static final String ER_STARTPARSE_WHILE_PARSING = \"ER_STARTPARSE_WHILE_PARSING\";\n  public static final String ER_STARTPARSE_NEEDS_SAXPARSER = \"ER_STARTPARSE_NEEDS_SAXPARSER\";\n  public static final String ER_COULD_NOT_INIT_PARSER = \"ER_COULD_NOT_INIT_PARSER\";\n  public static final String ER_EXCEPTION_CREATING_POOL = \"ER_EXCEPTION_CREATING_POOL\";\n  public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = \"ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE\";\n  public static final String ER_SCHEME_REQUIRED = \"ER_SCHEME_REQUIRED\";\n  public static final String ER_NO_SCHEME_IN_URI = \"ER_NO_SCHEME_IN_URI\";\n  public static final String ER_NO_SCHEME_INURI = \"ER_NO_SCHEME_INURI\";\n  public static final String ER_PATH_INVALID_CHAR = \"ER_PATH_INVALID_CHAR\";\n  public static final String ER_SCHEME_FROM_NULL_STRING = \"ER_SCHEME_FROM_NULL_STRING\";\n  public static final String ER_SCHEME_NOT_CONFORMANT = \"ER_SCHEME_NOT_CONFORMANT\";\n  public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = \"ER_HOST_ADDRESS_NOT_WELLFORMED\";\n  public static final String ER_PORT_WHEN_HOST_NULL = \"ER_PORT_WHEN_HOST_NULL\";\n  public static final String ER_INVALID_PORT = \"ER_INVALID_PORT\";\n  public static final String ER_FRAG_FOR_GENERIC_URI =\"ER_FRAG_FOR_GENERIC_URI\";\n  public static final String ER_FRAG_WHEN_PATH_NULL = \"ER_FRAG_WHEN_PATH_NULL\";\n  public static final String ER_FRAG_INVALID_CHAR = \"ER_FRAG_INVALID_CHAR\";\n  public static final String ER_PARSER_IN_USE = \"ER_PARSER_IN_USE\";\n  public static final String ER_CANNOT_CHANGE_WHILE_PARSING = \"ER_CANNOT_CHANGE_WHILE_PARSING\";\n  public static final String ER_SELF_CAUSATION_NOT_PERMITTED = \"ER_SELF_CAUSATION_NOT_PERMITTED\";\n  public static final String ER_NO_USERINFO_IF_NO_HOST = \"ER_NO_USERINFO_IF_NO_HOST\";\n  public static final String ER_NO_PORT_IF_NO_HOST = \"ER_NO_PORT_IF_NO_HOST\";\n  public static final String ER_NO_QUERY_STRING_IN_PATH = \"ER_NO_QUERY_STRING_IN_PATH\";\n  public static final String ER_NO_FRAGMENT_STRING_IN_PATH = \"ER_NO_FRAGMENT_STRING_IN_PATH\";\n  public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = \"ER_CANNOT_INIT_URI_EMPTY_PARMS\";\n  public static final String ER_METHOD_NOT_SUPPORTED =\"ER_METHOD_NOT_SUPPORTED\";\n  public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = \"ER_INCRSAXSRCFILTER_NOT_RESTARTABLE\";\n  public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = \"ER_XMLRDR_NOT_BEFORE_STARTPARSE\";\n  public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = \"ER_AXIS_TRAVERSER_NOT_SUPPORTED\";\n  public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = \"ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER\";\n  public static final String ER_SYSTEMID_UNKNOWN = \"ER_SYSTEMID_UNKNOWN\";\n  public static final String ER_LOCATION_UNKNOWN = \"ER_LOCATION_UNKNOWN\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = \"ER_CREATEDOCUMENT_NOT_SUPPORTED\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT\";\n  public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = \"ER_CANT_OUTPUT_TEXT_BEFORE_DOC\";\n  public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = \"ER_CANT_HAVE_MORE_THAN_ONE_ROOT\";\n  public static final String ER_ARG_LOCALNAME_NULL = \"ER_ARG_LOCALNAME_NULL\";\n  public static final String ER_ARG_LOCALNAME_INVALID = \"ER_ARG_LOCALNAME_INVALID\";\n  public static final String ER_ARG_PREFIX_INVALID = \"ER_ARG_PREFIX_INVALID\";\n\n  public static final String ER_RESOURCE_COULD_NOT_FIND = \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD = \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_INVALID_UTF16_SURROGATE = \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_NAMESPACE_PREFIX = \"ER_NAMESPACE_PREFIX\";\n  public static final String ER_STRAY_ATTRIBUTE = \"ER_STRAY_ATTIRBUTE\";\n  public static final String ER_STRAY_NAMESPACE = \"ER_STRAY_NAMESPACE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE = \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = \"ER_COULD_NOT_LOAD_METHOD_PROPERTY\";\n  public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = \"ER_SERIALIZER_NOT_CONTENTHANDLER\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = \"ER_ILLEGAL_ATTRIBUTE_POSITION\";\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /**\n   * Get the lookup table for error messages\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return new Object[][] {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"\\u0130\\u015flev desteklenmiyor!\"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"Nedenin \\u00fczerine yaz\\u0131lamaz\"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"Varsay\\u0131lan uygulama bulunamad\\u0131\"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"ChunkedIntArray({0}) \\u015fu an desteklenmiyor\"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"G\\u00f6reli konum yuvadan b\\u00fcy\\u00fck\"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"Coroutine kullan\\u0131lam\\u0131yor, id={0}\"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager co_exit() iste\\u011fi ald\\u0131\"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"co_joinCoroutineSet() ba\\u015far\\u0131s\\u0131z oldu\"},\n\n    { ER_COROUTINE_PARAM,\n      \"Coroutine de\\u011fi\\u015ftirgesi hatas\\u0131 ({0})\"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\nBEKLENMEYEN: Parser doTerminate yan\\u0131t\\u0131 {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"Ayr\\u0131\\u015ft\\u0131rma s\\u0131ras\\u0131nda parse \\u00e7a\\u011fr\\u0131lamaz\"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Hata: {0} ekseni i\\u00e7in tip atanm\\u0131\\u015f yineleyici ger\\u00e7ekle\\u015ftirilmedi\"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Hata: {0} ekseni i\\u00e7in yineleyici ger\\u00e7ekle\\u015ftirilmedi\"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"Yineleyici e\\u015fkopyas\\u0131 desteklenmiyor\"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"Bilinmeyen eksen dola\\u015fma tipi: {0}\"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"Eksen dola\\u015f\\u0131c\\u0131 desteklenmiyor: {0}\"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"Kullan\\u0131labilecek ba\\u015fka DTM tan\\u0131t\\u0131c\\u0131s\\u0131 yok\"},\n\n    { ER_NOT_SUPPORTED,\n      \"Desteklenmiyor: {0}\"},\n\n    { ER_NODE_NON_NULL,\n      \"getDTMHandleFromNode i\\u00e7in d\\u00fc\\u011f\\u00fcm bo\\u015f de\\u011ferli olmamal\\u0131d\\u0131r\"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"D\\u00fc\\u011f\\u00fcm tan\\u0131t\\u0131c\\u0131 de\\u011fere \\u00e7\\u00f6z\\u00fclemedi\"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"Ayr\\u0131\\u015ft\\u0131rma s\\u0131ras\\u0131nda startParse \\u00e7a\\u011fr\\u0131lamaz\"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse i\\u00e7in bo\\u015f de\\u011ferli olmayan SAXParser gerekiyor\"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"Ayr\\u0131\\u015ft\\u0131r\\u0131c\\u0131 bununla kullan\\u0131ma haz\\u0131rlanamad\\u0131\"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"Havuz i\\u00e7in yeni \\u00f6rnek yarat\\u0131l\\u0131rken kural d\\u0131\\u015f\\u0131 durum\"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"Yol ge\\u00e7ersiz ka\\u00e7\\u0131\\u015f dizisi i\\u00e7eriyor\"},\n\n    { ER_SCHEME_REQUIRED,\n       \"\\u015eema gerekli!\"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"URI i\\u00e7inde \\u015fema bulunamad\\u0131: {0}\"},\n\n    { ER_NO_SCHEME_INURI,\n       \"URI i\\u00e7inde \\u015fema bulunamad\\u0131\"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"Yol ge\\u00e7ersiz karakter i\\u00e7eriyor: {0}\"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"Bo\\u015f de\\u011ferli dizgiden \\u015fema tan\\u0131mlanamaz\"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"\\u015eema uyumlu de\\u011fil.\"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"Anasistem do\\u011fru bi\\u00e7imli bir adres de\\u011fil\"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"Anasistem bo\\u015f de\\u011ferliyken kap\\u0131 tan\\u0131mlanamaz\"},\n\n    { ER_INVALID_PORT,\n       \"Kap\\u0131 numaras\\u0131 ge\\u00e7ersiz\"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"Par\\u00e7a yaln\\u0131zca soysal URI i\\u00e7in tan\\u0131mlanabilir\"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"Yol bo\\u015f de\\u011ferliyken par\\u00e7a tan\\u0131mlanamaz\"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"Par\\u00e7a ge\\u00e7ersiz karakter i\\u00e7eriyor\"},\n\n    { ER_PARSER_IN_USE,\n      \"Ayr\\u0131\\u015ft\\u0131r\\u0131c\\u0131 kullan\\u0131mda\"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"Ayr\\u0131\\u015ft\\u0131rma s\\u0131ras\\u0131nda {0} {1} de\\u011fi\\u015ftirilemez\"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"\\u00d6znedenselli\\u011fe izin verilmez\"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"Anasistem belirtilmediyse kullan\\u0131c\\u0131 bilgisi belirtilemez\"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"Anasistem belirtilmediyse kap\\u0131 belirtilemez\"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"Yol ve sorgu dizgisinde sorgu dizgisi belirtilemez\"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"Par\\u00e7a hem yolda, hem de par\\u00e7ada belirtilemez\"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"Bo\\u015f de\\u011fi\\u015ftirgelerle URI kullan\\u0131ma haz\\u0131rlanamaz\"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"Y\\u00f6ntem hen\\u00fcz desteklenmiyor\"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"IncrementalSAXSource_Filter \\u015fu an yeniden ba\\u015flat\\u0131labilir durumda de\\u011fil\"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"XMLReader, startParse iste\\u011finden \\u00f6nce olmaz\"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"Eksen dola\\u015f\\u0131c\\u0131 desteklenmiyor: {0}\"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"ListingErrorHandler bo\\u015f de\\u011ferli PrintWriter ile yarat\\u0131ld\\u0131!\"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"SystemId bilinmiyor\"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"Hata yeri bilinmiyor\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"\\u00d6nek bir ad alan\\u0131na \\u00e7\\u00f6z\\u00fclmelidir: {0}\"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"XPathContext i\\u00e7inde createDocument() desteklenmiyor!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"\\u00d6zniteli\\u011fin alt \\u00f6\\u011fesinin iye belgesi yok!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"\\u00d6zniteli\\u011fin alt \\u00f6\\u011fesinin iye belge \\u00f6\\u011fesi yok!\"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"Uyar\\u0131: Belge \\u00f6\\u011fesinden \\u00f6nce metin \\u00e7\\u0131k\\u0131\\u015f\\u0131 olamaz!  Yoksay\\u0131l\\u0131yor...\"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"DOM \\u00fczerinde birden fazla k\\u00f6k olamaz!\"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"'localName' ba\\u011f\\u0131ms\\u0131z de\\u011fi\\u015ftirgesi bo\\u015f de\\u011ferli\"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"QNAME i\\u00e7indeki yerel ad (localname) ge\\u00e7erli bir NCName olmal\\u0131d\\u0131r\"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"QNAME i\\u00e7indeki \\u00f6nek ge\\u00e7erli bir NCName olmal\\u0131d\\u0131r\"},\n\n    { \"BAD_CODE\", \"createMessage i\\u00e7in kullan\\u0131lan de\\u011fi\\u015ftirge s\\u0131n\\u0131rlar\\u0131n d\\u0131\\u015f\\u0131nda\"},\n    { \"FORMAT_FAILED\", \"messageFormat \\u00e7a\\u011fr\\u0131s\\u0131 s\\u0131ras\\u0131nda kural d\\u0131\\u015f\\u0131 durum yay\\u0131nland\\u0131\"},\n    { \"line\", \"Sat\\u0131r #\"},\n    { \"column\",\"Kolon #\"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"Diziselle\\u015ftirici s\\u0131n\\u0131f\\u0131 ''{0}'' org.xml.sax.ContentHandler i\\u015flevini uygulam\\u0131yor.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"Kaynak [ {0} ] bulunamad\\u0131.\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"Kaynak [ {0} ] y\\u00fckleyemedi: {1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"Arabellek b\\u00fcy\\u00fckl\\u00fc\\u011f\\u00fc <=0\" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"UTF-16 yerine kullan\\u0131lan de\\u011fer ge\\u00e7ersiz: {0} ?\" },\n\n    {ER_OIERROR,\n      \"G\\u00c7 hatas\\u0131\" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"Alt d\\u00fc\\u011f\\u00fcmlerden sonra ya da bir \\u00f6\\u011fe \\u00fcretilmeden \\u00f6nce {0} \\u00f6zniteli\\u011fi eklenemez. \\u00d6znitelik yoksay\\u0131lacak.\"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"''{0}'' \\u00f6nekine ili\\u015fkin ad alan\\u0131 bildirilmedi.\" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"''{0}'' \\u00f6zniteli\\u011fi \\u00f6\\u011fenin d\\u0131\\u015f\\u0131nda.\" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"''{0}''=''{1}'' ad alan\\u0131 bildirimi \\u00f6\\u011fenin d\\u0131\\u015f\\u0131nda.\" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"''{0}'' y\\u00fcklenemedi (CLASSPATH de\\u011fi\\u015fkeninizi inceleyin), yaln\\u0131zca varsay\\u0131lanlar kullan\\u0131l\\u0131yor\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"''{1}'' \\u00e7\\u0131k\\u0131\\u015f y\\u00f6ntemi i\\u00e7in ''{0}'' \\u00f6zellik dosyas\\u0131 y\\u00fcklenemedi (CLASSPATH de\\u011fi\\u015fkenini inceleyin)\" }\n\n\n  };\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"tr\", \"TR\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return new Object[][] {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"\\u0130\\u015flev desteklenmiyor!\"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"Nedenin \\u00fczerine yaz\\u0131lamaz\"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"Varsay\\u0131lan uygulama bulunamad\\u0131\"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"ChunkedIntArray({0}) \\u015fu an desteklenmiyor\"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"G\\u00f6reli konum yuvadan b\\u00fcy\\u00fck\"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"Coroutine kullan\\u0131lam\\u0131yor, id={0}\"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager co_exit() iste\\u011fi ald\\u0131\"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"co_joinCoroutineSet() ba\\u015far\\u0131s\\u0131z oldu\"},\n\n    { ER_COROUTINE_PARAM,\n      \"Coroutine de\\u011fi\\u015ftirgesi hatas\\u0131 ({0})\"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\nBEKLENMEYEN: Parser doTerminate yan\\u0131t\\u0131 {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"Ayr\\u0131\\u015ft\\u0131rma s\\u0131ras\\u0131nda parse \\u00e7a\\u011fr\\u0131lamaz\"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Hata: {0} ekseni i\\u00e7in tip atanm\\u0131\\u015f yineleyici ger\\u00e7ekle\\u015ftirilmedi\"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Hata: {0} ekseni i\\u00e7in yineleyici ger\\u00e7ekle\\u015ftirilmedi\"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"Yineleyici e\\u015fkopyas\\u0131 desteklenmiyor\"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"Bilinmeyen eksen dola\\u015fma tipi: {0}\"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"Eksen dola\\u015f\\u0131c\\u0131 desteklenmiyor: {0}\"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"Kullan\\u0131labilecek ba\\u015fka DTM tan\\u0131t\\u0131c\\u0131s\\u0131 yok\"},\n\n    { ER_NOT_SUPPORTED,\n      \"Desteklenmiyor: {0}\"},\n\n    { ER_NODE_NON_NULL,\n      \"getDTMHandleFromNode i\\u00e7in d\\u00fc\\u011f\\u00fcm bo\\u015f de\\u011ferli olmamal\\u0131d\\u0131r\"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"D\\u00fc\\u011f\\u00fcm tan\\u0131t\\u0131c\\u0131 de\\u011fere \\u00e7\\u00f6z\\u00fclemedi\"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"Ayr\\u0131\\u015ft\\u0131rma s\\u0131ras\\u0131nda startParse \\u00e7a\\u011fr\\u0131lamaz\"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse i\\u00e7in bo\\u015f de\\u011ferli olmayan SAXParser gerekiyor\"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"Ayr\\u0131\\u015ft\\u0131r\\u0131c\\u0131 bununla kullan\\u0131ma haz\\u0131rlanamad\\u0131\"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"Havuz i\\u00e7in yeni \\u00f6rnek yarat\\u0131l\\u0131rken kural d\\u0131\\u015f\\u0131 durum\"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"Yol ge\\u00e7ersiz ka\\u00e7\\u0131\\u015f dizisi i\\u00e7eriyor\"},\n\n    { ER_SCHEME_REQUIRED,\n       \"\\u015eema gerekli!\"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"URI i\\u00e7inde \\u015fema bulunamad\\u0131: {0}\"},\n\n    { ER_NO_SCHEME_INURI,\n       \"URI i\\u00e7inde \\u015fema bulunamad\\u0131\"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"Yol ge\\u00e7ersiz karakter i\\u00e7eriyor: {0}\"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"Bo\\u015f de\\u011ferli dizgiden \\u015fema tan\\u0131mlanamaz\"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"\\u015eema uyumlu de\\u011fil.\"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"Anasistem do\\u011fru bi\\u00e7imli bir adres de\\u011fil\"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"Anasistem bo\\u015f de\\u011ferliyken kap\\u0131 tan\\u0131mlanamaz\"},\n\n    { ER_INVALID_PORT,\n       \"Kap\\u0131 numaras\\u0131 ge\\u00e7ersiz\"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"Par\\u00e7a yaln\\u0131zca soysal URI i\\u00e7in tan\\u0131mlanabilir\"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"Yol bo\\u015f de\\u011ferliyken par\\u00e7a tan\\u0131mlanamaz\"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"Par\\u00e7a ge\\u00e7ersiz karakter i\\u00e7eriyor\"},\n\n    { ER_PARSER_IN_USE,\n      \"Ayr\\u0131\\u015ft\\u0131r\\u0131c\\u0131 kullan\\u0131mda\"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"Ayr\\u0131\\u015ft\\u0131rma s\\u0131ras\\u0131nda {0} {1} de\\u011fi\\u015ftirilemez\"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"\\u00d6znedenselli\\u011fe izin verilmez\"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"Anasistem belirtilmediyse kullan\\u0131c\\u0131 bilgisi belirtilemez\"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"Anasistem belirtilmediyse kap\\u0131 belirtilemez\"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"Yol ve sorgu dizgisinde sorgu dizgisi belirtilemez\"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"Par\\u00e7a hem yolda, hem de par\\u00e7ada belirtilemez\"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"Bo\\u015f de\\u011fi\\u015ftirgelerle URI kullan\\u0131ma haz\\u0131rlanamaz\"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"Y\\u00f6ntem hen\\u00fcz desteklenmiyor\"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"IncrementalSAXSource_Filter \\u015fu an yeniden ba\\u015flat\\u0131labilir durumda de\\u011fil\"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"XMLReader, startParse iste\\u011finden \\u00f6nce olmaz\"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"Eksen dola\\u015f\\u0131c\\u0131 desteklenmiyor: {0}\"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"ListingErrorHandler bo\\u015f de\\u011ferli PrintWriter ile yarat\\u0131ld\\u0131!\"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"SystemId bilinmiyor\"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"Hata yeri bilinmiyor\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"\\u00d6nek bir ad alan\\u0131na \\u00e7\\u00f6z\\u00fclmelidir: {0}\"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"XPathContext i\\u00e7inde createDocument() desteklenmiyor!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"\\u00d6zniteli\\u011fin alt \\u00f6\\u011fesinin iye belgesi yok!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"\\u00d6zniteli\\u011fin alt \\u00f6\\u011fesinin iye belge \\u00f6\\u011fesi yok!\"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"Uyar\\u0131: Belge \\u00f6\\u011fesinden \\u00f6nce metin \\u00e7\\u0131k\\u0131\\u015f\\u0131 olamaz!  Yoksay\\u0131l\\u0131yor...\"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"DOM \\u00fczerinde birden fazla k\\u00f6k olamaz!\"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"'localName' ba\\u011f\\u0131ms\\u0131z de\\u011fi\\u015ftirgesi bo\\u015f de\\u011ferli\"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"QNAME i\\u00e7indeki yerel ad (localname) ge\\u00e7erli bir NCName olmal\\u0131d\\u0131r\"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"QNAME i\\u00e7indeki \\u00f6nek ge\\u00e7erli bir NCName olmal\\u0131d\\u0131r\"},\n\n    { \"BAD_CODE\", \"createMessage i\\u00e7in kullan\\u0131lan de\\u011fi\\u015ftirge s\\u0131n\\u0131rlar\\u0131n d\\u0131\\u015f\\u0131nda\"},\n    { \"FORMAT_FAILED\", \"messageFormat \\u00e7a\\u011fr\\u0131s\\u0131 s\\u0131ras\\u0131nda kural d\\u0131\\u015f\\u0131 durum yay\\u0131nland\\u0131\"},\n    { \"line\", \"Sat\\u0131r #\"},\n    { \"column\",\"Kolon #\"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"Diziselle\\u015ftirici s\\u0131n\\u0131f\\u0131 ''{0}'' org.xml.sax.ContentHandler i\\u015flevini uygulam\\u0131yor.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"Kaynak [ {0} ] bulunamad\\u0131.\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"Kaynak [ {0} ] y\\u00fckleyemedi: {1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"Arabellek b\\u00fcy\\u00fckl\\u00fc\\u011f\\u00fc <=0\" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"UTF-16 yerine kullan\\u0131lan de\\u011fer ge\\u00e7ersiz: {0} ?\" },\n\n    {ER_OIERROR,\n      \"G\\u00c7 hatas\\u0131\" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"Alt d\\u00fc\\u011f\\u00fcmlerden sonra ya da bir \\u00f6\\u011fe \\u00fcretilmeden \\u00f6nce {0} \\u00f6zniteli\\u011fi eklenemez. \\u00d6znitelik yoksay\\u0131lacak.\"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"''{0}'' \\u00f6nekine ili\\u015fkin ad alan\\u0131 bildirilmedi.\" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"''{0}'' \\u00f6zniteli\\u011fi \\u00f6\\u011fenin d\\u0131\\u015f\\u0131nda.\" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"''{0}''=''{1}'' ad alan\\u0131 bildirimi \\u00f6\\u011fenin d\\u0131\\u015f\\u0131nda.\" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"''{0}'' y\\u00fcklenemedi (CLASSPATH de\\u011fi\\u015fkeninizi inceleyin), yaln\\u0131zca varsay\\u0131lanlar kullan\\u0131l\\u0131yor\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"''{1}'' \\u00e7\\u0131k\\u0131\\u015f y\\u00f6ntemi i\\u00e7in ''{0}'' \\u00f6zellik dosyas\\u0131 y\\u00fcklenemedi (CLASSPATH de\\u011fi\\u015fkenini inceleyin)\" }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81], [1, 82], [1, 83], [1, 84], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [72, 1], [73, 1], [74, 1], [75, 1], [76, 1], [77, 1], [78, 1], [79, 1], [80, 1], [81, 1], [82, 1], [83, 1], [84, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "loadResourceBundle", "code": "  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"tr\", \"TR\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "xalan-2.5-7229", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/dtm/DTMAxisTraverser.java", "language": "java", "name": "org.apache.xml.dtm.DTMAxisTraverser", "code": "public abstract class DTMAxisTraverser\n{\n\n  /**\n   * By the nature of the stateless traversal, the context node can not be\n   * returned or the iteration will go into an infinate loop.  So to traverse \n   * an axis, the first function must be used to get the first node.\n   *\n   * <p>This method needs to be overloaded only by those axis that process\n   * the self node. <\\p>\n   *\n   * @param context The context node of this traversal. This is the point\n   * that the traversal starts from.\n   * @return the first node in the traversal.\n   */\n  public int first(int context)\n  {\n    return next(context, context);\n  }\n\n  /**\n   * By the nature of the stateless traversal, the context node can not be\n   * returned or the iteration will go into an infinate loop.  So to traverse \n   * an axis, the first function must be used to get the first node.\n   *\n   * <p>This method needs to be overloaded only by those axis that process\n   * the self node. <\\p>\n   *\n   * @param context The context node of this traversal. This is the point\n   * of origin for the traversal -- its \"root node\" or starting point.\n   * @param extendedTypeID The extended type ID that must match.\n   *\n   * @return the first node in the traversal.\n   */\n  public int first(int context, int extendedTypeID)\n  {\n    return next(context, context, extendedTypeID);\n  }\n\n  /**\n   * Traverse to the next node after the current node.\n   *\n   * @param context The context node of this traversal. This is the point\n   * of origin for the traversal -- its \"root node\" or starting point.\n   * @param current The current node of the traversal. This is the last known\n   * location in the traversal, typically the node-handle returned by the\n   * previous traversal step. For the first traversal step, context\n   * should be set equal to current. Note that in order to test whether\n   * context is in the set, you must use the first() method instead.\n   *\n   * @return the next node in the iteration, or DTM.NULL.\n   * @see first(int)\n   */\n  public abstract int next(int context, int current);\n\n  /**\n   * Traverse to the next node after the current node that is matched\n   * by the extended type ID.\n   *\n   * @param context The context node of this traversal. This is the point\n   * of origin for the traversal -- its \"root node\" or starting point.\n   * @param current The current node of the traversal. This is the last known\n   * location in the traversal, typically the node-handle returned by the\n   * previous traversal step. For the first traversal step, context\n   * should be set equal to current. Note that in order to test whether\n   * context is in the set, you must use the first() method instead.\n   * @param extendedTypeID The extended type ID that must match.\n   *\n   * @return the next node in the iteration, or DTM.NULL.\n   * @see first(int,int)\n   */\n  public abstract int next(int context, int current, int extendedTypeID);", "functions": [{"function_name": "first", "code": "  public int first(int context)\n  {\n    return next(context, context);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "first", "code": "  public int first(int context, int extendedTypeID)\n  {\n    return next(context, context, extendedTypeID);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "next", "code": "  public abstract int next(int context, int current);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "next", "code": "  public abstract int next(int context, int current, int extendedTypeID);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "poi-3.0-6042", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/poifs/storage/SmallBlockTableWriter.java", "language": "java", "name": "org.apache.poi.poifs.storage.SmallBlockTableWriter", "code": "public class SmallBlockTableWriter\n    implements BlockWritable, BATManaged\n{\n    private BlockAllocationTableWriter _sbat;\n    private List                       _small_blocks;\n    private int                        _big_block_count;\n    private RootProperty               _root;\n\n    /**\n     * Creates new SmallBlockTable\n     *\n     * @param documents a List of POIFSDocument instances\n     * @param root the Filesystem's root property\n     */\n\n    public SmallBlockTableWriter(final List documents,\n                                 final RootProperty root)\n    {\n        _sbat         = new BlockAllocationTableWriter();\n        _small_blocks = new ArrayList();\n        _root         = root;\n        Iterator iter = documents.iterator();\n\n        while (iter.hasNext())\n        {\n            POIFSDocument   doc    = ( POIFSDocument ) iter.next();\n            BlockWritable[] blocks = doc.getSmallBlocks();\n\n            if (blocks.length != 0)\n            {\n                doc.setStartBlock(_sbat.allocateSpace(blocks.length));\n                for (int j = 0; j < blocks.length; j++)\n                {\n                    _small_blocks.add(blocks[ j ]);\n                }\n            }\n        }\n        _sbat.simpleCreateBlocks();\n        _root.setSize(_small_blocks.size());\n        _big_block_count = SmallDocumentBlock.fill(_small_blocks);\n    }\n\n    /**\n     * Get the number of SBAT blocks\n     *\n     * @return number of SBAT big blocks\n     */\n    \n    public int getSBATBlockCount()\n    {\n\treturn (_big_block_count + 15) / 16;\n    }\n\n    /**\n     * Get the SBAT\n     *\n     * @return the Small Block Allocation Table\n     */\n\n    public BlockAllocationTableWriter getSBAT()\n    {\n        return _sbat;\n    }\n\n    /* ********** START implementation of BATManaged ********** */\n\n    /**\n     * Return the number of BigBlock's this instance uses\n     *\n     * @return count of BigBlock instances\n     */\n\n    public int countBlocks()\n    {\n        return _big_block_count;\n    }\n\n    /**\n     * Set the start block for this instance\n     *\n     * @param start_block\n     */\n\n    public void setStartBlock(int start_block)\n    {\n        _root.setStartBlock(start_block);\n    }\n\n    /* **********  END  implementation of BATManaged ********** */\n    /* ********** START implementation of BlockWritable ********** */\n\n    /**\n     * Write the storage to an OutputStream\n     *\n     * @param stream the OutputStream to which the stored data should\n     *               be written\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream\n     */\n\n    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        Iterator iter = _small_blocks.iterator();\n\n        while (iter.hasNext())\n        {\n            (( BlockWritable ) iter.next()).writeBlocks(stream);", "functions": [{"function_name": "getSBATBlockCount", "code": "    public int getSBATBlockCount()\n    {\n\treturn (_big_block_count + 15) / 16;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSBAT", "code": "    public BlockAllocationTableWriter getSBAT()\n    {\n        return _sbat;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "countBlocks", "code": "    public int countBlocks()\n    {\n        return _big_block_count;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStartBlock", "code": "    public void setStartBlock(int start_block)\n    {\n        _root.setStartBlock(start_block);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "writeBlocks", "code": "    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        Iterator iter = _small_blocks.iterator();\n\n        while (iter.hasNext())\n        {\n            (( BlockWritable ) iter.next()).writeBlocks(stream);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "SmallBlockTableWriter", "code": "    public SmallBlockTableWriter(final List documents,\n                                 final RootProperty root)\n    {\n        _sbat         = new BlockAllocationTableWriter();\n        _small_blocks = new ArrayList();\n        _root         = root;\n        Iterator iter = documents.iterator();\n\n        while (iter.hasNext())\n        {\n            POIFSDocument   doc    = ( POIFSDocument ) iter.next();\n            BlockWritable[] blocks = doc.getSmallBlocks();\n\n            if (blocks.length != 0)\n            {\n                doc.setStartBlock(_sbat.allocateSpace(blocks.length));\n                for (int j = 0; j < blocks.length; j++)\n                {\n                    _small_blocks.add(blocks[ j ]);\n                }\n            }\n        }\n        _sbat.simpleCreateBlocks();\n        _root.setSize(_small_blocks.size());\n        _big_block_count = SmallDocumentBlock.fill(_small_blocks);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [5, 12], [6, 13], [1, 14], [1, 15], [1, 16], [2, 17], [10, 18], [11, 19], [14, 20], [14, 21], [20, 22], [15, 23], [21, 24], [14, 25], [16, 26], [25, 27], [21, 28], [21, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 5], [13, 6], [14, 1], [15, 1], [16, 1], [17, 2], [18, 10], [19, 11], [20, 14], [21, 14], [22, 20], [23, 15], [24, 21], [25, 14], [26, 16], [27, 25], [28, 21], [29, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}], "label": 1}
{"sample_id": "ivy-2.0-3331", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/resolver/util/ResolverHelper.java", "language": "java", "name": "org.apache.ivy.plugins.resolver.util.ResolverHelper", "code": "public final class ResolverHelper {\n    private ResolverHelper() {\n    }\n    \n    // lists all the values a token can take in a pattern, as listed by a given url lister\n    public static String[] listTokenValues(Repository rep, String pattern, String token) {\n        String fileSep = rep.getFileSeparator();\n        pattern = rep.standardize(pattern);\n        String tokenString = IvyPatternHelper.getTokenString(token);\n        int index = pattern.indexOf(tokenString);\n        if (index == -1) {\n            Message.verbose(\"unable to list \" + token + \" in \" + pattern\n                    + \": token not found in pattern\");\n            return null;\n        }\n        if (((pattern.length() <= index + tokenString.length()) || fileSep.equals(pattern\n                .substring(index + tokenString.length(), index + tokenString.length() + 1)))\n                && (index == 0 || fileSep.equals(pattern.substring(index - 1, index)))) {\n            // the searched token is a whole name\n            String root = pattern.substring(0, index);\n            return listAll(rep, root);\n        } else {\n            int slashIndex = pattern.substring(0, index).lastIndexOf(fileSep);\n            String root = slashIndex == -1 ? \"\" : pattern.substring(0, slashIndex);\n\n            try {\n                Message.debug(\"\\tusing \" + rep + \" to list all in \" + root);\n                List all = rep.list(root);\n                if (all != null) {\n                    Message.debug(\"\\t\\tfound \" + all.size() + \" urls\");\n                    List ret = new ArrayList(all.size());\n                    int endNameIndex = pattern.indexOf(fileSep, slashIndex + 1);\n                    String namePattern;\n                    if (endNameIndex != -1) {\n                        namePattern = pattern.substring(slashIndex + 1, endNameIndex);\n                    } else {\n                        namePattern = pattern.substring(slashIndex + 1);\n                    }\n                    String acceptNamePattern = \".*\"\n                            + IvyPatternHelper.substituteToken(namePattern, token, \"([^\" + fileSep\n                                    + \"]+)\") + \".*\";\n                    Pattern p = Pattern.compile(acceptNamePattern.toString());\n                    for (Iterator iter = all.iterator(); iter.hasNext();) {\n                        String path = (String) iter.next();\n                        Matcher m = p.matcher(path);\n                        if (m.matches()) {\n                            String value = m.group(1);\n                            ret.add(value);\n                        }\n                    }\n                    Message.debug(\"\\t\\t\" + ret.size() + \" matched \" + pattern);\n                    return (String[]) ret.toArray(new String[ret.size()]);\n                } else {\n                    return null;\n                }\n            } catch (IOException e) {\n                Message.verbose(\n                    \"problem while listing resources in \" + root + \" with \" + rep + \":\");\n                Message.verbose(\"  \" + e.getClass().getName() + \" \" + e.getMessage());\n                return null;\n            } catch (Exception e) {\n                Message.warn(\"problem while listing resources in \" + root + \" with \" + rep + \":\");\n                Message.warn(\"  \" + e.getClass().getName() + \" \" + e.getMessage());\n                return null;\n            }\n        }\n    }\n\n    public static String[] listAll(Repository rep, String parent) {\n        try {\n            String fileSep = rep.getFileSeparator();\n            Message.debug(\"\\tusing \" + rep + \" to list all in \" + parent);\n            List all = rep.list(parent);\n            if (all != null) {\n                Message.debug(\"\\t\\tfound \" + all.size() + \" resources\");\n                List names = new ArrayList(all.size());\n                for (Iterator iter = all.iterator(); iter.hasNext();) {\n                    String path = (String) iter.next();\n                    if (path.endsWith(fileSep)) {\n                        path = path.substring(0, path.length() - 1);\n                    }\n                    int slashIndex = path.lastIndexOf(fileSep);\n                    names.add(path.substring(slashIndex + 1));\n                }\n                return (String[]) names.toArray(new String[names.size()]);\n            } else {\n                Message.debug(\"\\t\\tno resources found\");\n                return null;\n            }\n        } catch (IOException e) {\n            Message.verbose(\"problem while listing resources in \" + parent + \" with \" + rep + \":\");\n            Message.verbose(\"  \" + e.getClass().getName() + \" \" + e.getMessage());\n            return null;\n        } catch (Exception e) {\n            Message.warn(\"problem while listing resources in \" + parent + \" with \" + rep + \":\");\n            Message.warn(\"  \" + e.getClass().getName() + \" \" + e.getMessage());\n            return null;\n        }\n    }\n\n    public static ResolvedResource[] findAll(Repository rep, ModuleRevisionId mrid, String pattern,\n            Artifact artifact) {\n        // substitute all but revision\n        String partiallyResolvedPattern = IvyPatternHelper.substitute(pattern, ModuleRevisionId\n                .newInstance(mrid, IvyPatternHelper.getTokenString(IvyPatternHelper.REVISION_KEY)),\n            artifact);\n        Message.debug(\"\\tlisting all in \" + partiallyResolvedPattern);\n\n        String[] revs = listTokenValues(rep, partiallyResolvedPattern,\n            IvyPatternHelper.REVISION_KEY);\n        if (revs != null) {\n            Message.debug(\"\\tfound revs: \" + Arrays.asList(revs));\n            List ret = new ArrayList(revs.length);\n            for (int i = 0; i < revs.length; i++) {\n                String rres = IvyPatternHelper.substituteToken(partiallyResolvedPattern,\n                    IvyPatternHelper.REVISION_KEY, revs[i]);\n                try {\n                    Resource res = rep.getResource(rres);\n                    if ((res != null) && res.exists()) {\n                        ret.add(new ResolvedResource(res, revs[i]));\n                    }\n                } catch (IOException e) {\n                    Message.warn(\"impossible to get resource from name listed by repository: \"\n                            + rres + \": \" + e.getMessage());\n                }\n            }\n            if (revs.length != ret.size()) {\n                Message.debug(\"\\tfound resolved res: \" + ret);\n            }\n            return (ResolvedResource[]) ret.toArray(new ResolvedResource[ret.size()]);\n        } else if (partiallyResolvedPattern.indexOf(\n                \"[\" + IvyPatternHelper.REVISION_KEY + \"]\") == -1) {\n            // the partially resolved pattern is completely resolved, check the resource\n            try {\n                Resource res = rep.getResource(partiallyResolvedPattern);\n                if (res.exists()) {\n                    Message.debug(\"\\tonly one resource found without real listing: \"\n                                    + \"using and defining it as working@\"\n                                    + rep.getName() + \" revision: \" + res.getName());\n                    return new ResolvedResource[] {new ResolvedResource(res, \"working@\"\n                            + rep.getName())};\n                }\n            } catch (IOException e) {\n                Message.debug(\"\\timpossible to get resource from name listed by repository: \"\n                        + partiallyResolvedPattern + \": \" + e.getMessage());\n            }\n            Message.debug(\"\\tno revision found\");\n        }\n        return null;\n    }\n\n    // public static ResolvedResource[] findAll(Repository rep, ModuleRevisionId mrid, String\n    // pattern, Artifact artifact, VersionMatcher versionMatcher, ResourceMDParser mdParser) {\n    // // substitute all but revision\n    // String partiallyResolvedPattern = IvyPatternHelper.substitute(pattern, new\n    // ModuleRevisionId(mrid.getModuleId(),\n    // IvyPatternHelper.getTokenString(IvyPatternHelper.REVISION_KEY), mrid.getExtraAttributes()),\n    // artifact);\n    // Message.debug(\"\\tlisting all in \"+partiallyResolvedPattern);\n    //        \n    // String[] revs = listTokenValues(rep, partiallyResolvedPattern,\n    // IvyPatternHelper.REVISION_KEY);\n    // if (revs != null) {\n    // Message.debug(\"\\tfound revs: \"+Arrays.asList(revs));\n    // List ret = new ArrayList(revs.length);\n    // String rres = null;\n    // for (int i = 0; i < revs.length; i++) {\n    // ModuleRevisionId foundMrid = new ModuleRevisionId(mrid.getModuleId(), revs[i],\n    // mrid.getExtraAttributes());\n    // if (versionMatcher.accept(mrid, foundMrid)) {\n    // rres = IvyPatternHelper.substituteToken(partiallyResolvedPattern,\n    // IvyPatternHelper.REVISION_KEY, revs[i]);\n    // try {\n    // ResolvedResource resolvedResource;\n    // if (versionMatcher.needModuleDescriptor(mrid, foundMrid)) {\n    // resolvedResource = mdParser.parse(rep.getResource(rres), revs[i]);\n    // if (!versionMatcher.accept(mrid,\n    // ((MDResolvedResource)resolvedResource).getResolvedModuleRevision().getDescriptor())) {\n    // continue;\n    // }\n    // } else {\n    // resolvedResource = new ResolvedResource(rep.getResource(rres), revs[i]);\n    // }\n    // ret.add(resolvedResource);\n    // } catch (IOException e) {\n    // Message.warn(\"impossible to get resource from name listed by repository: \"+rres+\":\n    // \"+e.getMessage());\n    // }\n    // }\n    // }\n    // if (revs.length != ret.size()) {\n    // Message.debug(\"\\tfound resolved res: \"+ret);\n    // }\n    // return (ResolvedResource[])ret.toArray(new ResolvedResource[ret.size()]);\n    // } else {\n    // // maybe the partially resolved pattern is completely resolved ?\n    // try {\n    // Resource res = rep.getResource(partiallyResolvedPattern);\n    // if (res.exists()) {\n    // Message.debug(\"\\tonly one resource found without real listing: using and defining it as\n    // working@\"+rep.getName()+\" revision: \"+res.getName());\n    // return new ResolvedResource[] {new ResolvedResource(res, \"working@\"+rep.getName())};\n    // }\n    // } catch (IOException e) {\n    // Message.debug(\"\\timpossible to get resource from name listed by repository:\n    // \"+partiallyResolvedPattern+\": \"+e.getMessage());\n    // }\n    // Message.debug(\"\\tno revision found\");\n    // }\n    // return null;\n    // }\n\n    // lists all the values a token can take in a pattern, as listed by a given url lister\n    public static String[] listTokenValues(URLLister lister, String pattern, String token) {\n        pattern = standardize(pattern);\n        if (lister.accept(pattern)) {\n            String tokenString = IvyPatternHelper.getTokenString(token);\n            int index = pattern.indexOf(tokenString);\n            if (index == -1) {\n                Message.verbose(\"unable to list \" + token + \" in \" + pattern\n                        + \": token not found in pattern\");\n                return null;\n            }\n            if (((pattern.length() <= index + tokenString.length()) || \"/\".equals(pattern\n                    .substring(index + tokenString.length(), index + tokenString.length() + 1)))\n                    && (index == 0 || \"/\".equals(pattern.substring(index - 1, index)))) {\n                // the searched token is a whole name\n                String root = pattern.substring(0, index);\n                try {\n                    return listAll(lister, new URL(root));\n                } catch (MalformedURLException e) {\n                    Message\n                            .warn(\"malformed url from pattern root: \" + root + \": \"\n                                    + e.getMessage());\n                    return null;\n                }\n            } else {\n                int slashIndex = pattern.substring(0, index).lastIndexOf('/');\n                String root = slashIndex == -1 ? \"\" : pattern.substring(0, slashIndex);\n\n                try {\n                    Message.debug(\"\\tusing \" + lister + \" to list all in \" + root);\n                    List all = lister.listAll(new URL(root));\n                    Message.debug(\"\\t\\tfound \" + all.size() + \" urls\");\n                    List ret = new ArrayList(all.size());\n                    int endNameIndex = pattern.indexOf('/', slashIndex + 1);\n                    String namePattern;\n                    if (endNameIndex != -1) {\n                        namePattern = pattern.substring(slashIndex + 1, endNameIndex);\n                    } else {\n                        namePattern = pattern.substring(slashIndex + 1);\n                    }\n                    String acceptNamePattern = \".*\"\n                            + IvyPatternHelper.substituteToken(namePattern, token, \"([^/]+)\")\n                            + \".*\";\n                    Pattern p = Pattern.compile(acceptNamePattern.toString());\n                    for (Iterator iter = all.iterator(); iter.hasNext();) {\n                        URL url = (URL) iter.next();\n                        String path = standardize(url.getPath());\n                        Matcher m = p.matcher(path);\n                        if (m.matches()) {\n                            String value = m.group(1);\n                            ret.add(value);\n                        }\n                    }\n                    Message.debug(\"\\t\\t\" + ret.size() + \" matched \" + pattern);\n                    return (String[]) ret.toArray(new String[ret.size()]);\n                } catch (Exception e) {\n                    Message.warn(\"problem while listing files in \" + root + \": \" + e.getClass()\n                            + \" \" + e.getMessage());\n                    return null;\n                }\n            }\n        }\n        return null;\n    }\n\n    private static String standardize(String path) {\n        return path.replace('\\\\', '/');\n    }\n\n    public static String[] listAll(URLLister lister, URL root) {\n        try {\n            if (lister.accept(root.toExternalForm())) {\n                Message.debug(\"\\tusing \" + lister + \" to list all in \" + root);\n                List all = lister.listAll(root);\n                Message.debug(\"\\t\\tfound \" + all.size() + \" urls\");\n                List names = new ArrayList(all.size());\n                for (Iterator iter = all.iterator(); iter.hasNext();) {\n                    URL dir = (URL) iter.next();\n                    String path = dir.getPath();\n                    if (path.endsWith(\"/\")) {\n                        path = path.substring(0, path.length() - 1);\n                    }\n                    int slashIndex = path.lastIndexOf('/');\n                    names.add(path.substring(slashIndex + 1));\n                }\n                return (String[]) names.toArray(new String[names.size()]);\n            }\n            return null;\n        } catch (Exception e) {\n            Message.warn(\"problem while listing directories in \" + root + \": \" + e.getClass() + \" \"\n                    + e.getMessage());\n            return null;", "functions": [{"function_name": "listTokenValues", "code": "    public static String[] listTokenValues(Repository rep, String pattern, String token) {\n        String fileSep = rep.getFileSeparator();\n        pattern = rep.standardize(pattern);\n        String tokenString = IvyPatternHelper.getTokenString(token);\n        int index = pattern.indexOf(tokenString);\n        if (index == -1) {\n            Message.verbose(\"unable to list \" + token + \" in \" + pattern\n                    + \": token not found in pattern\");\n            return null;\n        }\n        if (((pattern.length() <= index + tokenString.length()) || fileSep.equals(pattern\n                .substring(index + tokenString.length(), index + tokenString.length() + 1)))\n                && (index == 0 || fileSep.equals(pattern.substring(index - 1, index)))) {\n            // the searched token is a whole name\n            String root = pattern.substring(0, index);\n            return listAll(rep, root);\n        } else {\n            int slashIndex = pattern.substring(0, index).lastIndexOf(fileSep);\n            String root = slashIndex == -1 ? \"\" : pattern.substring(0, slashIndex);\n\n            try {\n                Message.debug(\"\\tusing \" + rep + \" to list all in \" + root);\n                List all = rep.list(root);\n                if (all != null) {\n                    Message.debug(\"\\t\\tfound \" + all.size() + \" urls\");\n                    List ret = new ArrayList(all.size());\n                    int endNameIndex = pattern.indexOf(fileSep, slashIndex + 1);\n                    String namePattern;\n                    if (endNameIndex != -1) {\n                        namePattern = pattern.substring(slashIndex + 1, endNameIndex);\n                    } else {\n                        namePattern = pattern.substring(slashIndex + 1);\n                    }\n                    String acceptNamePattern = \".*\"\n                            + IvyPatternHelper.substituteToken(namePattern, token, \"([^\" + fileSep\n                                    + \"]+)\") + \".*\";\n                    Pattern p = Pattern.compile(acceptNamePattern.toString());\n                    for (Iterator iter = all.iterator(); iter.hasNext();) {\n                        String path = (String) iter.next();\n                        Matcher m = p.matcher(path);\n                        if (m.matches()) {\n                            String value = m.group(1);\n                            ret.add(value);\n                        }\n                    }\n                    Message.debug(\"\\t\\t\" + ret.size() + \" matched \" + pattern);\n                    return (String[]) ret.toArray(new String[ret.size()]);\n                } else {\n                    return null;\n                }\n            } catch (IOException e) {\n                Message.verbose(\n                    \"problem while listing resources in \" + root + \" with \" + rep + \":\");\n                Message.verbose(\"  \" + e.getClass().getName() + \" \" + e.getMessage());\n                return null;\n            } catch (Exception e) {\n                Message.warn(\"problem while listing resources in \" + root + \" with \" + rep + \":\");\n                Message.warn(\"  \" + e.getClass().getName() + \" \" + e.getMessage());\n                return null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "TRY", "VAR_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CATCH", "CATCH", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [9, 17], [9, 18], [2, 19], [10, 20], [3, 21], [4, 22], [11, 23], [5, 24], [12, 25], [12, 26], [12, 27], [12, 28], [15, 29], [17, 30], [17, 31], [18, 32], [18, 33], [19, 34], [2, 35], [25, 36], [26, 37], [27, 38], [12, 39], [13, 40], [14, 41], [16, 42], [30, 43], [31, 44], [32, 45], [33, 46], [33, 47], [35, 48], [36, 49], [25, 50], [25, 51], [37, 52], [26, 53], [26, 54], [27, 55], [27, 56], [27, 57], [27, 58], [27, 59], [27, 60], [27, 61], [27, 62], [27, 63], [38, 64], [28, 65], [39, 66], [40, 67], [40, 68], [40, 69], [41, 70], [41, 71], [42, 72], [43, 73], [45, 74], [45, 75], [46, 76], [48, 77], [48, 78], [50, 79], [51, 80], [53, 81], [54, 82], [55, 83], [27, 84], [57, 85], [60, 86], [27, 87], [66, 88], [67, 89], [69, 90], [73, 91], [74, 92], [74, 93], [75, 94], [78, 95], [79, 96], [79, 97], [80, 98], [80, 99], [81, 100], [81, 101], [82, 102], [82, 103], [56, 104], [84, 105], [57, 106], [57, 107], [57, 108], [58, 109], [59, 110], [86, 111], [62, 112], [63, 113], [87, 114], [88, 115], [88, 116], [93, 117], [95, 118], [95, 119], [97, 120], [97, 121], [99, 122], [101, 123], [101, 124], [103, 125], [105, 126], [106, 127], [57, 128], [109, 129], [110, 130], [110, 131], [60, 132], [60, 133], [112, 134], [113, 135], [114, 136], [114, 137], [116, 138], [119, 139], [121, 140], [121, 141], [122, 142], [122, 143], [124, 144], [124, 145], [125, 146], [125, 147], [104, 148], [126, 149], [126, 150], [106, 151], [107, 152], [131, 153], [131, 154], [132, 155], [133, 156], [134, 157], [137, 158], [137, 159], [140, 160], [143, 161], [144, 162], [147, 163], [150, 164], [150, 165], [106, 166], [108, 167], [153, 168], [155, 169], [156, 170], [151, 171], [168, 172], [168, 173], [169, 174], [170, 175], [171, 176], [173, 177], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 9], [18, 9], [19, 2], [20, 10], [21, 3], [22, 4], [23, 11], [24, 5], [25, 12], [26, 12], [27, 12], [28, 12], [29, 15], [30, 17], [31, 17], [32, 18], [33, 18], [34, 19], [35, 2], [36, 25], [37, 26], [38, 27], [39, 12], [40, 13], [41, 14], [42, 16], [43, 30], [44, 31], [45, 32], [46, 33], [47, 33], [48, 35], [49, 36], [50, 25], [51, 25], [52, 37], [53, 26], [54, 26], [55, 27], [56, 27], [57, 27], [58, 27], [59, 27], [60, 27], [61, 27], [62, 27], [63, 27], [64, 38], [65, 28], [66, 39], [67, 40], [68, 40], [69, 40], [70, 41], [71, 41], [72, 42], [73, 43], [74, 45], [75, 45], [76, 46], [77, 48], [78, 48], [79, 50], [80, 51], [81, 53], [82, 54], [83, 55], [84, 27], [85, 57], [86, 60], [87, 27], [88, 66], [89, 67], [90, 69], [91, 73], [92, 74], [93, 74], [94, 75], [95, 78], [96, 79], [97, 79], [98, 80], [99, 80], [100, 81], [101, 81], [102, 82], [103, 82], [104, 56], [105, 84], [106, 57], [107, 57], [108, 57], [109, 58], [110, 59], [111, 86], [112, 62], [113, 63], [114, 87], [115, 88], [116, 88], [117, 93], [118, 95], [119, 95], [120, 97], [121, 97], [122, 99], [123, 101], [124, 101], [125, 103], [126, 105], [127, 106], [128, 57], [129, 109], [130, 110], [131, 110], [132, 60], [133, 60], [134, 112], [135, 113], [136, 114], [137, 114], [138, 116], [139, 119], [140, 121], [141, 121], [142, 122], [143, 122], [144, 124], [145, 124], [146, 125], [147, 125], [148, 104], [149, 126], [150, 126], [151, 106], [152, 107], [153, 131], [154, 131], [155, 132], [156, 133], [157, 134], [158, 137], [159, 137], [160, 140], [161, 143], [162, 144], [163, 147], [164, 150], [165, 150], [166, 106], [167, 108], [168, 153], [169, 155], [170, 156], [171, 151], [172, 168], [173, 168], [174, 169], [175, 170], [176, 171], [177, 173], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177]]}, {"function_name": "listAll", "code": "    public static String[] listAll(Repository rep, String parent) {\n        try {\n            String fileSep = rep.getFileSeparator();\n            Message.debug(\"\\tusing \" + rep + \" to list all in \" + parent);\n            List all = rep.list(parent);\n            if (all != null) {\n                Message.debug(\"\\t\\tfound \" + all.size() + \" resources\");\n                List names = new ArrayList(all.size());\n                for (Iterator iter = all.iterator(); iter.hasNext();) {\n                    String path = (String) iter.next();\n                    if (path.endsWith(fileSep)) {\n                        path = path.substring(0, path.length() - 1);\n                    }\n                    int slashIndex = path.lastIndexOf(fileSep);\n                    names.add(path.substring(slashIndex + 1));\n                }\n                return (String[]) names.toArray(new String[names.size()]);\n            } else {\n                Message.debug(\"\\t\\tno resources found\");\n                return null;\n            }\n        } catch (IOException e) {\n            Message.verbose(\"problem while listing resources in \" + parent + \" with \" + rep + \":\");\n            Message.verbose(\"  \" + e.getClass().getName() + \" \" + e.getMessage());\n            return null;\n        } catch (Exception e) {\n            Message.warn(\"problem while listing resources in \" + parent + \" with \" + rep + \":\");\n            Message.warn(\"  \" + e.getClass().getName() + \" \" + e.getMessage());\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [5, 10], [6, 11], [1, 12], [9, 13], [4, 14], [4, 15], [10, 16], [5, 17], [5, 18], [6, 19], [6, 20], [6, 21], [6, 22], [11, 23], [7, 24], [12, 25], [8, 26], [14, 27], [15, 28], [17, 29], [18, 30], [19, 31], [6, 32], [21, 33], [6, 34], [25, 35], [27, 36], [27, 37], [28, 38], [28, 39], [29, 40], [29, 41], [30, 42], [30, 43], [32, 44], [20, 45], [21, 46], [21, 47], [21, 48], [22, 49], [34, 50], [35, 51], [35, 52], [37, 53], [37, 54], [39, 55], [41, 56], [41, 57], [43, 58], [21, 59], [47, 60], [21, 61], [49, 62], [50, 63], [50, 64], [52, 65], [54, 66], [54, 67], [55, 68], [55, 69], [57, 70], [57, 71], [58, 72], [58, 73], [45, 74], [59, 75], [46, 76], [64, 77], [64, 78], [66, 79], [69, 80], [70, 81], [73, 82], [75, 83], [47, 84], [48, 85], [83, 86], [84, 87], [87, 88], [87, 89], [88, 90], [88, 91], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 5], [11, 6], [12, 1], [13, 9], [14, 4], [15, 4], [16, 10], [17, 5], [18, 5], [19, 6], [20, 6], [21, 6], [22, 6], [23, 11], [24, 7], [25, 12], [26, 8], [27, 14], [28, 15], [29, 17], [30, 18], [31, 19], [32, 6], [33, 21], [34, 6], [35, 25], [36, 27], [37, 27], [38, 28], [39, 28], [40, 29], [41, 29], [42, 30], [43, 30], [44, 32], [45, 20], [46, 21], [47, 21], [48, 21], [49, 22], [50, 34], [51, 35], [52, 35], [53, 37], [54, 37], [55, 39], [56, 41], [57, 41], [58, 43], [59, 21], [60, 47], [61, 21], [62, 49], [63, 50], [64, 50], [65, 52], [66, 54], [67, 54], [68, 55], [69, 55], [70, 57], [71, 57], [72, 58], [73, 58], [74, 45], [75, 59], [76, 46], [77, 64], [78, 64], [79, 66], [80, 69], [81, 70], [82, 73], [83, 75], [84, 47], [85, 48], [86, 83], [87, 84], [88, 87], [89, 87], [90, 88], [91, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91]]}, {"function_name": "findAll", "code": "    public static ResolvedResource[] findAll(Repository rep, ModuleRevisionId mrid, String pattern,\n            Artifact artifact) {\n        // substitute all but revision\n        String partiallyResolvedPattern = IvyPatternHelper.substitute(pattern, ModuleRevisionId\n                .newInstance(mrid, IvyPatternHelper.getTokenString(IvyPatternHelper.REVISION_KEY)),\n            artifact);\n        Message.debug(\"\\tlisting all in \" + partiallyResolvedPattern);\n\n        String[] revs = listTokenValues(rep, partiallyResolvedPattern,\n            IvyPatternHelper.REVISION_KEY);\n        if (revs != null) {\n            Message.debug(\"\\tfound revs: \" + Arrays.asList(revs));\n            List ret = new ArrayList(revs.length);\n            for (int i = 0; i < revs.length; i++) {\n                String rres = IvyPatternHelper.substituteToken(partiallyResolvedPattern,\n                    IvyPatternHelper.REVISION_KEY, revs[i]);\n                try {\n                    Resource res = rep.getResource(rres);\n                    if ((res != null) && res.exists()) {\n                        ret.add(new ResolvedResource(res, revs[i]));\n                    }\n                } catch (IOException e) {\n                    Message.warn(\"impossible to get resource from name listed by repository: \"\n                            + rres + \": \" + e.getMessage());\n                }\n            }\n            if (revs.length != ret.size()) {\n                Message.debug(\"\\tfound resolved res: \" + ret);\n            }\n            return (ResolvedResource[]) ret.toArray(new ResolvedResource[ret.size()]);\n        } else if (partiallyResolvedPattern.indexOf(\n                \"[\" + IvyPatternHelper.REVISION_KEY + \"]\") == -1) {\n            // the partially resolved pattern is completely resolved, check the resource\n            try {\n                Resource res = rep.getResource(partiallyResolvedPattern);\n                if (res.exists()) {\n                    Message.debug(\"\\tonly one resource found without real listing: \"\n                                    + \"using and defining it as working@\"\n                                    + rep.getName() + \" revision: \" + res.getName());\n                    return new ResolvedResource[] {new ResolvedResource(res, \"working@\"\n                            + rep.getName())};\n                }\n            } catch (IOException e) {\n                Message.debug(\"\\timpossible to get resource from name listed by repository: \"\n                        + partiallyResolvedPattern + \": \" + e.getMessage());\n            }\n            Message.debug(\"\\tno revision found\");\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CATCH", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [0, 12], [10, 13], [2, 14], [2, 15], [2, 16], [2, 17], [11, 18], [3, 19], [12, 20], [4, 21], [10, 22], [13, 23], [13, 24], [15, 25], [16, 26], [2, 27], [20, 28], [21, 29], [10, 30], [22, 31], [22, 32], [22, 33], [24, 34], [14, 35], [25, 36], [16, 37], [16, 38], [17, 39], [27, 40], [29, 41], [30, 42], [32, 43], [34, 44], [34, 45], [15, 46], [37, 47], [37, 48], [37, 49], [16, 50], [40, 51], [40, 52], [31, 53], [32, 54], [33, 55], [45, 56], [35, 57], [46, 58], [48, 59], [38, 60], [53, 61], [32, 62], [58, 63], [47, 64], [59, 65], [59, 66], [49, 67], [61, 68], [61, 69], [62, 70], [64, 71], [48, 72], [66, 73], [69, 74], [69, 75], [54, 76], [70, 77], [70, 78], [71, 79], [71, 80], [72, 81], [75, 82], [76, 83], [78, 84], [78, 85], [80, 86], [80, 87], [83, 88], [83, 89], [85, 90], [85, 91], [87, 92], [91, 93], [91, 94], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 0], [13, 10], [14, 2], [15, 2], [16, 2], [17, 2], [18, 11], [19, 3], [20, 12], [21, 4], [22, 10], [23, 13], [24, 13], [25, 15], [26, 16], [27, 2], [28, 20], [29, 21], [30, 10], [31, 22], [32, 22], [33, 22], [34, 24], [35, 14], [36, 25], [37, 16], [38, 16], [39, 17], [40, 27], [41, 29], [42, 30], [43, 32], [44, 34], [45, 34], [46, 15], [47, 37], [48, 37], [49, 37], [50, 16], [51, 40], [52, 40], [53, 31], [54, 32], [55, 33], [56, 45], [57, 35], [58, 46], [59, 48], [60, 38], [61, 53], [62, 32], [63, 58], [64, 47], [65, 59], [66, 59], [67, 49], [68, 61], [69, 61], [70, 62], [71, 64], [72, 48], [73, 66], [74, 69], [75, 69], [76, 54], [77, 70], [78, 70], [79, 71], [80, 71], [81, 72], [82, 75], [83, 76], [84, 78], [85, 78], [86, 80], [87, 80], [88, 83], [89, 83], [90, 85], [91, 85], [92, 87], [93, 91], [94, 91], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "listTokenValues", "code": "    public static String[] listTokenValues(URLLister lister, String pattern, String token) {\n        pattern = standardize(pattern);\n        if (lister.accept(pattern)) {\n            String tokenString = IvyPatternHelper.getTokenString(token);\n            int index = pattern.indexOf(tokenString);\n            if (index == -1) {\n                Message.verbose(\"unable to list \" + token + \" in \" + pattern\n                        + \": token not found in pattern\");\n                return null;\n            }\n            if (((pattern.length() <= index + tokenString.length()) || \"/\".equals(pattern\n                    .substring(index + tokenString.length(), index + tokenString.length() + 1)))\n                    && (index == 0 || \"/\".equals(pattern.substring(index - 1, index)))) {\n                // the searched token is a whole name\n                String root = pattern.substring(0, index);\n                try {\n                    return listAll(lister, new URL(root));\n                } catch (MalformedURLException e) {\n                    Message\n                            .warn(\"malformed url from pattern root: \" + root + \": \"\n                                    + e.getMessage());\n                    return null;\n                }\n            } else {\n                int slashIndex = pattern.substring(0, index).lastIndexOf('/');\n                String root = slashIndex == -1 ? \"\" : pattern.substring(0, slashIndex);\n\n                try {\n                    Message.debug(\"\\tusing \" + lister + \" to list all in \" + root);\n                    List all = lister.listAll(new URL(root));\n                    Message.debug(\"\\t\\tfound \" + all.size() + \" urls\");\n                    List ret = new ArrayList(all.size());\n                    int endNameIndex = pattern.indexOf('/', slashIndex + 1);\n                    String namePattern;\n                    if (endNameIndex != -1) {\n                        namePattern = pattern.substring(slashIndex + 1, endNameIndex);\n                    } else {\n                        namePattern = pattern.substring(slashIndex + 1);\n                    }\n                    String acceptNamePattern = \".*\"\n                            + IvyPatternHelper.substituteToken(namePattern, token, \"([^/]+)\")\n                            + \".*\";\n                    Pattern p = Pattern.compile(acceptNamePattern.toString());\n                    for (Iterator iter = all.iterator(); iter.hasNext();) {\n                        URL url = (URL) iter.next();\n                        String path = standardize(url.getPath());\n                        Matcher m = p.matcher(path);\n                        if (m.matches()) {\n                            String value = m.group(1);\n                            ret.add(value);\n                        }\n                    }\n                    Message.debug(\"\\t\\t\" + ret.size() + \" matched \" + pattern);\n                    return (String[]) ret.toArray(new String[ret.size()]);\n                } catch (Exception e) {\n                    Message.warn(\"problem while listing files in \" + root + \": \" + e.getClass()\n                            + \" \" + e.getMessage());\n                    return null;\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CATCH", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [2, 9], [2, 10], [2, 11], [2, 12], [8, 13], [9, 14], [10, 15], [9, 16], [9, 17], [9, 18], [9, 19], [9, 20], [14, 21], [14, 22], [10, 23], [15, 24], [11, 25], [12, 26], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [16, 36], [19, 37], [19, 38], [21, 39], [21, 40], [22, 41], [22, 42], [23, 43], [10, 44], [27, 45], [16, 46], [29, 47], [32, 48], [16, 49], [16, 50], [17, 51], [18, 52], [37, 53], [38, 54], [20, 55], [39, 56], [40, 57], [41, 58], [42, 59], [42, 60], [44, 61], [45, 62], [27, 63], [28, 64], [46, 65], [29, 66], [29, 67], [29, 68], [29, 69], [30, 70], [31, 71], [48, 72], [34, 73], [35, 74], [49, 75], [36, 76], [50, 77], [51, 78], [51, 79], [51, 80], [52, 81], [52, 82], [53, 83], [37, 84], [54, 85], [55, 86], [56, 87], [58, 88], [59, 89], [61, 90], [61, 91], [63, 92], [65, 93], [66, 94], [29, 95], [70, 96], [71, 97], [71, 98], [32, 99], [32, 100], [73, 101], [73, 102], [74, 103], [75, 104], [75, 105], [76, 106], [77, 107], [78, 108], [80, 109], [82, 110], [84, 111], [87, 112], [88, 113], [88, 114], [91, 115], [92, 116], [92, 117], [64, 118], [93, 119], [93, 120], [66, 121], [67, 122], [68, 123], [98, 124], [98, 125], [99, 126], [100, 127], [101, 128], [105, 129], [105, 130], [107, 131], [107, 132], [111, 133], [111, 134], [112, 135], [113, 136], [113, 137], [114, 138], [115, 139], [115, 140], [117, 141], [117, 142], [120, 143], [120, 144], [66, 145], [123, 146], [69, 147], [124, 148], [126, 149], [127, 150], [132, 151], [134, 152], [134, 153], [137, 154], [140, 155], [142, 156], [142, 157], [121, 158], [149, 159], [150, 160], [153, 161], [157, 162], [157, 163], [158, 164], [163, 165], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 2], [10, 2], [11, 2], [12, 2], [13, 8], [14, 9], [15, 10], [16, 9], [17, 9], [18, 9], [19, 9], [20, 9], [21, 14], [22, 14], [23, 10], [24, 15], [25, 11], [26, 12], [27, 16], [28, 16], [29, 16], [30, 16], [31, 16], [32, 16], [33, 16], [34, 16], [35, 16], [36, 16], [37, 19], [38, 19], [39, 21], [40, 21], [41, 22], [42, 22], [43, 23], [44, 10], [45, 27], [46, 16], [47, 29], [48, 32], [49, 16], [50, 16], [51, 17], [52, 18], [53, 37], [54, 38], [55, 20], [56, 39], [57, 40], [58, 41], [59, 42], [60, 42], [61, 44], [62, 45], [63, 27], [64, 28], [65, 46], [66, 29], [67, 29], [68, 29], [69, 29], [70, 30], [71, 31], [72, 48], [73, 34], [74, 35], [75, 49], [76, 36], [77, 50], [78, 51], [79, 51], [80, 51], [81, 52], [82, 52], [83, 53], [84, 37], [85, 54], [86, 55], [87, 56], [88, 58], [89, 59], [90, 61], [91, 61], [92, 63], [93, 65], [94, 66], [95, 29], [96, 70], [97, 71], [98, 71], [99, 32], [100, 32], [101, 73], [102, 73], [103, 74], [104, 75], [105, 75], [106, 76], [107, 77], [108, 78], [109, 80], [110, 82], [111, 84], [112, 87], [113, 88], [114, 88], [115, 91], [116, 92], [117, 92], [118, 64], [119, 93], [120, 93], [121, 66], [122, 67], [123, 68], [124, 98], [125, 98], [126, 99], [127, 100], [128, 101], [129, 105], [130, 105], [131, 107], [132, 107], [133, 111], [134, 111], [135, 112], [136, 113], [137, 113], [138, 114], [139, 115], [140, 115], [141, 117], [142, 117], [143, 120], [144, 120], [145, 66], [146, 123], [147, 69], [148, 124], [149, 126], [150, 127], [151, 132], [152, 134], [153, 134], [154, 137], [155, 140], [156, 142], [157, 142], [158, 121], [159, 149], [160, 150], [161, 153], [162, 157], [163, 157], [164, 158], [165, 163], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165]]}, {"function_name": "standardize", "code": "    private static String standardize(String path) {\n        return path.replace('\\\\', '/');", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "listAll", "code": "    public static String[] listAll(URLLister lister, URL root) {\n        try {\n            if (lister.accept(root.toExternalForm())) {\n                Message.debug(\"\\tusing \" + lister + \" to list all in \" + root);\n                List all = lister.listAll(root);\n                Message.debug(\"\\t\\tfound \" + all.size() + \" urls\");\n                List names = new ArrayList(all.size());\n                for (Iterator iter = all.iterator(); iter.hasNext();) {\n                    URL dir = (URL) iter.next();\n                    String path = dir.getPath();\n                    if (path.endsWith(\"/\")) {\n                        path = path.substring(0, path.length() - 1);\n                    }\n                    int slashIndex = path.lastIndexOf('/');\n                    names.add(path.substring(slashIndex + 1));\n                }\n                return (String[]) names.toArray(new String[names.size()]);\n            }\n            return null;\n        } catch (Exception e) {\n            Message.warn(\"problem while listing directories in \" + root + \": \" + e.getClass() + \" \"\n                    + e.getMessage());\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [7, 10], [4, 11], [6, 12], [6, 13], [6, 14], [6, 15], [9, 16], [11, 17], [13, 18], [6, 19], [6, 20], [17, 21], [17, 22], [12, 23], [13, 24], [13, 25], [13, 26], [13, 27], [14, 28], [19, 29], [15, 30], [20, 31], [22, 32], [22, 33], [13, 34], [25, 35], [13, 36], [28, 37], [29, 38], [29, 39], [31, 40], [33, 41], [33, 42], [23, 43], [34, 44], [24, 45], [35, 46], [26, 47], [39, 48], [39, 49], [40, 50], [40, 51], [42, 52], [42, 53], [44, 54], [45, 55], [25, 56], [27, 57], [51, 58], [53, 59], [54, 60], [56, 61], [61, 62], [61, 63], [62, 64], [62, 65], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 7], [11, 4], [12, 6], [13, 6], [14, 6], [15, 6], [16, 9], [17, 11], [18, 13], [19, 6], [20, 6], [21, 17], [22, 17], [23, 12], [24, 13], [25, 13], [26, 13], [27, 13], [28, 14], [29, 19], [30, 15], [31, 20], [32, 22], [33, 22], [34, 13], [35, 25], [36, 13], [37, 28], [38, 29], [39, 29], [40, 31], [41, 33], [42, 33], [43, 23], [44, 34], [45, 24], [46, 35], [47, 26], [48, 39], [49, 39], [50, 40], [51, 40], [52, 42], [53, 42], [54, 44], [55, 45], [56, 25], [57, 27], [58, 51], [59, 53], [60, 54], [61, 56], [62, 61], [63, 61], [64, 62], [65, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "ResolverHelper", "code": "    private ResolverHelper() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.5-7201", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/util/TypeCheckError.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.TypeCheckError", "code": "public class TypeCheckError extends Exception {\n    ErrorMsg _error = null;\n    SyntaxTreeNode _node = null;\n\t\n    public TypeCheckError(SyntaxTreeNode node) {\n\tsuper();\n\t_node = node;\n    }\n\n    public TypeCheckError(ErrorMsg error) {\n\tsuper();\n\t_error = error;\n    }\n\t\n    public TypeCheckError(String code, Object param) {\n\tsuper();\n\t_error = new ErrorMsg(code, param);\n    }\n\n    public TypeCheckError(String code, Object param1, Object param2) {\n\tsuper();\n\t_error = new ErrorMsg(code, param1, param2);\n    }\n\n    public ErrorMsg getErrorMsg() {\n        return _error;\n    }\n\n    public String getMessage() {\n        return toString();\n    }\n\n    public String toString() {\n\tString result;\n\n\tif (_error == null) {\n            if (_node != null) {\n                _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_ERR,\n                                      _node.toString());\n\t    } else {\n\t        _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_UNK_LOC_ERR);\n\t    }\n        }\n\n\treturn _error.toString();", "functions": [{"function_name": "getErrorMsg", "code": "    public ErrorMsg getErrorMsg() {\n        return _error;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMessage", "code": "    public String getMessage() {\n        return toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n\tString result;\n\n\tif (_error == null) {\n            if (_node != null) {\n                _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_ERR,\n                                      _node.toString());\n\t    } else {\n\t        _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_UNK_LOC_ERR);\n\t    }\n        }\n\n\treturn _error.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [8, 9], [6, 10], [6, 11], [10, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 8], [10, 6], [11, 6], [12, 10], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(SyntaxTreeNode node) {\n\tsuper();\n\t_node = node;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(ErrorMsg error) {\n\tsuper();\n\t_error = error;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(String code, Object param) {\n\tsuper();\n\t_error = new ErrorMsg(code, param);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(String code, Object param1, Object param2) {\n\tsuper();\n\t_error = new ErrorMsg(code, param1, param2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "log4j-1.2-4969", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/helpers/PatternConverter.java", "language": "java", "name": "org.apache.log4j.helpers.PatternConverter", "code": "public abstract class PatternConverter {\n  public PatternConverter next;\n  int min = -1;\n  int max = 0x7FFFFFFF;\n  boolean leftAlign = false;\n\n  protected\n  PatternConverter() {  }\n  \n  protected\n  PatternConverter(FormattingInfo fi) {\n    min = fi.min;\n    max = fi.max;\n    leftAlign = fi.leftAlign;\n  }\n\n  /**\n     Derived pattern converters must override this method in order to\n     convert conversion specifiers in the correct way.\n  */\n  abstract\n  protected\n  String convert(LoggingEvent event);\n\n  /**\n     A template method for formatting in a converter specific way.\n   */\n  public\n  void format(StringBuffer sbuf, LoggingEvent e) {\n    String s = convert(e);\n\n    if(s == null) {\n      if(0 < min)\n\tspacePad(sbuf, min);\n      return;\n    }\n\n    int len = s.length();\n\n    if(len > max)\n      sbuf.append(s.substring(len-max));\n    else if(len < min) {\n      if(leftAlign) {\t\n\tsbuf.append(s);\n\tspacePad(sbuf, min-len);\n      }\n      else {\n\tspacePad(sbuf, min-len);\n\tsbuf.append(s);\n      }\n    }\n    else\n      sbuf.append(s);\n  }\t\n\n  static String[] SPACES = {\" \", \"  \", \"    \", \"        \", //1,2,4,8 spaces\n\t\t\t    \"                \", // 16 spaces\n\t\t\t    \"                                \" }; // 32 spaces\n\n  /**\n     Fast space padding method.\n  */\n  public\n  void spacePad(StringBuffer sbuf, int length) {\n    while(length >= 32) {\n      sbuf.append(SPACES[5]);\n      length -= 32;\n    }\n    \n    for(int i = 4; i >= 0; i--) {\t\n      if((length & (1<<i)) != 0) {\n\tsbuf.append(SPACES[i]);", "functions": [{"function_name": "convert", "code": "  String convert(LoggingEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "format", "code": "  void format(StringBuffer sbuf, LoggingEvent e) {\n    String s = convert(e);\n\n    if(s == null) {\n      if(0 < min)\n\tspacePad(sbuf, min);\n      return;\n    }\n\n    int len = s.length();\n\n    if(len > max)\n      sbuf.append(s.substring(len-max));\n    else if(len < min) {\n      if(leftAlign) {\t\n\tsbuf.append(s);\n\tspacePad(sbuf, min-len);\n      }\n      else {\n\tspacePad(sbuf, min-len);\n\tsbuf.append(s);\n      }\n    }\n    else\n      sbuf.append(s);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [3, 9], [7, 10], [1, 11], [2, 12], [3, 13], [3, 14], [9, 15], [4, 16], [7, 17], [7, 18], [11, 19], [14, 20], [19, 21], [14, 22], [20, 23], [18, 24], [18, 25], [18, 26], [18, 27], [25, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 3], [10, 7], [11, 1], [12, 2], [13, 3], [14, 3], [15, 9], [16, 4], [17, 7], [18, 7], [19, 11], [20, 14], [21, 19], [22, 14], [23, 20], [24, 18], [25, 18], [26, 18], [27, 18], [28, 25], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "spacePad", "code": "  void spacePad(StringBuffer sbuf, int length) {\n    while(length >= 32) {\n      sbuf.append(SPACES[5]);\n      length -= 32;\n    }\n    \n    for(int i = 4; i >= 0; i--) {\t\n      if((length & (1<<i)) != 0) {\n\tsbuf.append(SPACES[i]);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [6, 9], [7, 10], [1, 11], [2, 12], [2, 13], [10, 14], [10, 15], [12, 16], [7, 17], [15, 18], [18, 19], [13, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 6], [10, 7], [11, 1], [12, 2], [13, 2], [14, 10], [15, 10], [16, 12], [17, 7], [18, 15], [19, 18], [20, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "PatternConverter", "code": "  PatternConverter() {  }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PatternConverter", "code": "  PatternConverter(FormattingInfo fi) {\n    min = fi.min;\n    max = fi.max;\n    leftAlign = fi.leftAlign;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-3.0-5979", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hpsf/wellknown/SectionIDMap.java", "language": "java", "name": "org.apache.poi.hpsf.wellknown.SectionIDMap", "code": "public class SectionIDMap extends HashMap\n{\n\n    /**\n     * <p>The SummaryInformation's section's format ID.</p>\n     */\n    public static final byte[] SUMMARY_INFORMATION_ID = new byte[]\n    {\n        (byte) 0xF2, (byte) 0x9F, (byte) 0x85, (byte) 0xE0,\n        (byte) 0x4F, (byte) 0xF9, (byte) 0x10, (byte) 0x68,\n        (byte) 0xAB, (byte) 0x91, (byte) 0x08, (byte) 0x00,\n        (byte) 0x2B, (byte) 0x27, (byte) 0xB3, (byte) 0xD9\n    };\n\n    /**\n     * <p>The DocumentSummaryInformation's first and second sections' format\n     * ID.</p>\n     */\n    public static final byte[][] DOCUMENT_SUMMARY_INFORMATION_ID = new byte[][]\n    {\n        {\n            (byte) 0xD5, (byte) 0xCD, (byte) 0xD5, (byte) 0x02,\n            (byte) 0x2E, (byte) 0x9C, (byte) 0x10, (byte) 0x1B,\n            (byte) 0x93, (byte) 0x97, (byte) 0x08, (byte) 0x00,\n            (byte) 0x2B, (byte) 0x2C, (byte) 0xF9, (byte) 0xAE\n        },\n        {\n            (byte) 0xD5, (byte) 0xCD, (byte) 0xD5, (byte) 0x05,\n            (byte) 0x2E, (byte) 0x9C, (byte) 0x10, (byte) 0x1B,\n            (byte) 0x93, (byte) 0x97, (byte) 0x08, (byte) 0x00,\n            (byte) 0x2B, (byte) 0x2C, (byte) 0xF9, (byte) 0xAE\n        }\n    };\n\n    /**\n     * <p>A property without a known name is described by this string.</p> \n     */\n    public static final String UNDEFINED = \"[undefined]\";\n\n    /**\n     * <p>The default section ID map. It maps section format IDs to\n     * {@link PropertyIDMap}s.</p>\n     */\n    private static SectionIDMap defaultMap;\n\n\n\n    /**\n     * <p>Returns the singleton instance of the default {@link\n     * SectionIDMap}.</p>\n     *\n     * @return The instance value\n     */\n    public static SectionIDMap getInstance()\n    {\n        if (defaultMap == null)\n        {\n            final SectionIDMap m = new SectionIDMap();\n            m.put(SUMMARY_INFORMATION_ID,\n                  PropertyIDMap.getSummaryInformationProperties());\n            m.put(DOCUMENT_SUMMARY_INFORMATION_ID[0],\n                  PropertyIDMap.getDocumentSummaryInformationProperties());\n            defaultMap = m;\n        }\n        return defaultMap;\n    }\n\n\n\n    /**\n     * <p>Returns the property ID string that is associated with a\n     * given property ID in a section format ID's namespace.</p>\n     *\n     * @param sectionFormatID Each section format ID has its own name\n     * space of property ID strings and thus must be specified.\n     * @param  pid The property ID\n     * @return The well-known property ID string associated with the\n     * property ID <var>pid</var> in the name space spanned by <var>\n     * sectionFormatID</var> . If the <var>pid</var>\n     * /<var>sectionFormatID </var> combination is not well-known, the\n     * string \"[undefined]\" is returned.\n     */\n    public static String getPIDString(final byte[] sectionFormatID,\n                                      final long pid)\n    {\n        final PropertyIDMap m = getInstance().get(sectionFormatID);\n        if (m == null)\n            return UNDEFINED;\n        else\n        {\n            final String s = (String) m.get(pid);\n            if (s == null)\n                return UNDEFINED;\n            return s;\n        }\n    }\n\n\n\n    /**\n     * <p>Returns the {@link PropertyIDMap} for a given section format\n     * ID.</p>\n     * \n     * @param sectionFormatID the section format ID\n     * @return the property ID map\n     */\n    public PropertyIDMap get(final byte[] sectionFormatID)\n    {\n        return (PropertyIDMap) super.get(new String(sectionFormatID));\n    }\n\n\n\n    /**\n     * <p>Returns the {@link PropertyIDMap} for a given section format\n     * ID.</p>\n     *\n     * @param sectionFormatID A section format ID as a <tt>byte[]</tt> .\n     * @deprecated Use {@link #get(byte[])} instead!\n     * @return the property ID map\n     */\n    public Object get(final Object sectionFormatID)\n    {\n        return get((byte[]) sectionFormatID);\n    }\n\n\n\n    /**\n     * <p>Associates a section format ID with a {@link\n     * PropertyIDMap}.</p>\n     * \n     * @param sectionFormatID the section format ID\n     * @param propertyIDMap the property ID map\n     * @return as defined by {@link java.util.Map#put}\n     */\n    public Object put(final byte[] sectionFormatID,\n                      final PropertyIDMap propertyIDMap)\n    {\n        return super.put(new String(sectionFormatID), propertyIDMap);\n    }\n\n\n\n    /**\n     * @deprecated Use {@link #put(byte[], PropertyIDMap)} instead!\n     *\n     * @see #put(byte[], PropertyIDMap)\n     * \n     * @param key This parameter remains undocumented since the method is\n     * deprecated.\n     * @param value This parameter remains undocumented since the method is\n     * deprecated.\n     * @return The return value remains undocumented since the method is\n     * deprecated.\n     */\n    public Object put(final Object key, final Object value)\n    {\n        return put((byte[]) key, (PropertyIDMap) value);", "functions": [{"function_name": "getInstance", "code": "    public static SectionIDMap getInstance()\n    {\n        if (defaultMap == null)\n        {\n            final SectionIDMap m = new SectionIDMap();\n            m.put(SUMMARY_INFORMATION_ID,\n                  PropertyIDMap.getSummaryInformationProperties());\n            m.put(DOCUMENT_SUMMARY_INFORMATION_ID[0],\n                  PropertyIDMap.getDocumentSummaryInformationProperties());\n            defaultMap = m;\n        }\n        return defaultMap;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [7, 9], [8, 10], [4, 11], [7, 12], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 7], [10, 8], [11, 4], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getPIDString", "code": "    public static String getPIDString(final byte[] sectionFormatID,\n                                      final long pid)\n    {\n        final PropertyIDMap m = getInstance().get(sectionFormatID);\n        if (m == null)\n            return UNDEFINED;\n        else\n        {\n            final String s = (String) m.get(pid);\n            if (s == null)\n                return UNDEFINED;\n            return s;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [2, 11], [8, 12], [8, 13], [11, 14], [13, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 2], [12, 8], [13, 8], [14, 11], [15, 13], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "get", "code": "    public PropertyIDMap get(final byte[] sectionFormatID)\n    {\n        return (PropertyIDMap) super.get(new String(sectionFormatID));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "get", "code": "    public Object get(final Object sectionFormatID)\n    {\n        return get((byte[]) sectionFormatID);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "put", "code": "    public Object put(final byte[] sectionFormatID,\n                      final PropertyIDMap propertyIDMap)\n    {\n        return super.put(new String(sectionFormatID), propertyIDMap);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "put", "code": "    public Object put(final Object key, final Object value)\n    {\n        return put((byte[]) key, (PropertyIDMap) value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.2-1882", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/jmx/JMXMessage.java", "language": "java", "name": "org.apache.camel.component.jmx.JMXMessage", "code": "public class JMXMessage extends DefaultMessage {\n\n    private Notification notification;\n\n    public JMXMessage() {\n        this(null);\n    }\n\n    public JMXMessage(Notification notification) {\n        this.notification = notification;\n    }\n\n    @Override\n    public String toString() {\n        return \"JMXMessage: \" + notification;\n    }\n\n    @Override\n    public JMXExchange getExchange() {\n        return (JMXExchange)super.getExchange();\n    }\n\n    @Override\n    public JMXMessage newInstance() {\n        return new JMXMessage();\n    }\n\n    public Notification getNotification() {\n        return notification;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"JMXMessage: \" + notification;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getExchange", "code": "    @Override\n    public JMXExchange getExchange() {\n        return (JMXExchange)super.getExchange();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "newInstance", "code": "    @Override\n    public JMXMessage newInstance() {\n        return new JMXMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNotification", "code": "    public Notification getNotification() {\n        return notification;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "JMXMessage", "code": "    public JMXMessage() {\n        this(null);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "JMXMessage", "code": "    public JMXMessage(Notification notification) {\n        this.notification = notification;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ivy-2.0-3446", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/resolve/IvyNodeEviction.java", "language": "java", "name": "org.apache.ivy.core.resolve.IvyNodeEviction", "code": "public class IvyNodeEviction {\n    /**\n     * This class contains data about the eviction of an {@link IvyNode}.\n     */\n    public static class EvictionData {\n        /**\n         * Can be null in case of transitive eviction.\n         */\n        private IvyNode parent;\n\n        /**\n         * Can be null in case of transitive eviction.\n         */\n        private ConflictManager conflictManager;\n\n        /**\n         * Can be null in case of transitive eviction.\n         */\n        private Collection selected; // Collection(IvyNode)\n\n        private String rootModuleConf;\n\n        private String detail;\n\n        /**\n         * Creates a new object containing the eviction data of an {@link IvyNode}.\n         * \n         * @param rootModuleConf\n         *            the root module configuration\n         * @param parent\n         *            the parent node (or <tt>null</tt> in case of transitive eviction)\n         * @param conflictManager\n         *            the conflict manager which evicted the node (or <tt>null</tt> in case of\n         *            transitive eviction)\n         * @param selected\n         *            a collection of {@link IvyNode}s which evict the evicted node (or\n         *            <tt>null</tt> in case of transitive eviction)\n         */\n        public EvictionData(String rootModuleConf, IvyNode parent, ConflictManager conflictManager,\n                Collection selected) {\n            this(rootModuleConf, parent, conflictManager, selected, null);\n        }\n\n        /**\n         * Creates a new object containing the eviction data of an {@link IvyNode}.\n         * \n         * @param rootModuleConf\n         *            the root module configuration\n         * @param parent\n         *            the parent node (or <tt>null</tt> in case of transitive eviction)\n         * @param conflictManager\n         *            the conflict manager which evicted the node (or <tt>null</tt> in case of\n         *            transitive eviction)\n         * @param selected\n         *            a collection of {@link IvyNode}s which evict the evicted node (or\n         *            <tt>null</tt> in case of transitive eviction)\n         * @param detail\n         *            a String detailing the reason why the node was evicted\n         */\n        public EvictionData(String rootModuleConf, IvyNode parent, ConflictManager conflictManager,\n                Collection selected, String detail) {\n            this.rootModuleConf = rootModuleConf;\n            this.parent = parent;\n            this.conflictManager = conflictManager;\n            this.selected = selected;\n            this.detail = detail;\n        }\n\n        public String toString() {\n            if (selected != null) {\n                return selected + \" in \" + parent \n                    + (detail == null ? \"\" : \" \" + detail)\n                    + \" (\" + conflictManager + \") [\" + rootModuleConf + \"]\";\n            } else {\n                return \"transitively [\" + rootModuleConf + \"]\";\n            }\n        }\n\n        public ConflictManager getConflictManager() {\n            return conflictManager;\n        }\n\n        public IvyNode getParent() {\n            return parent;\n        }\n\n        public Collection getSelected() {\n            return selected;\n        }\n\n        public String getRootModuleConf() {\n            return rootModuleConf;\n        }\n\n        public boolean isTransitivelyEvicted() {\n            return parent == null;\n        }\n        \n        public String getDetail() {\n            return detail;\n        }\n    }\n\n    private static final class ModuleIdConf {\n        private ModuleId moduleId;\n\n        private String conf;\n\n        public ModuleIdConf(ModuleId mid, String conf) {\n            if (mid == null) {\n                throw new NullPointerException(\"mid cannot be null\");\n            }\n            if (conf == null) {\n                throw new NullPointerException(\"conf cannot be null\");\n            }\n            moduleId = mid;\n            this.conf = conf;\n        }\n\n        public final String getConf() {\n            return conf;\n        }\n\n        public final ModuleId getModuleId() {\n            return moduleId;\n        }\n\n        public boolean equals(Object obj) {\n            if (!(obj instanceof ModuleIdConf)) {\n                return false;\n            }\n            return getModuleId().equals(((ModuleIdConf) obj).getModuleId())\n                    && getConf().equals(((ModuleIdConf) obj).getConf());\n        }\n\n        public int hashCode() {\n            //CheckStyle:MagicNumber| OFF\n            int hash = 33;\n            hash += getModuleId().hashCode() * 17;\n            hash += getConf().hashCode() * 17;\n            //CheckStyle:MagicNumber| ON\n            return hash;\n        }\n    }\n\n    private IvyNode node;\n\n    private Map selectedDeps = new HashMap(); // Map (ModuleIdConf -> Set(Node)) // map indicating\n\n    // for each dependency which node has been selected\n\n    private Map pendingConflicts = new HashMap(); // Map (ModuleIdConf -> Set(Node)) // map\n\n    // indicating for each dependency which nodes\n    // are in pending conflict (conflict detected\n    // but not yet resolved)\n\n    private Map evictedDeps = new HashMap(); // Map (ModuleIdConf -> Set(Node)) // map indicating\n\n    // for each dependency which node has been evicted\n\n    private Map evictedRevs = new HashMap(); // Map (ModuleIdConf -> Set(ModuleRevisionId)) //\n\n    // map indicating for each dependency which revision\n    // has been evicted\n\n    private Map evicted = new HashMap(); // Map (root module conf -> EvictionData) // indicates\n\n    // if the node is evicted in each root module conf\n\n    public IvyNodeEviction(IvyNode node) {\n        if (node == null) {\n            throw new NullPointerException(\"node must not be null\");\n        }\n        this.node = node;\n    }\n\n    /**\n     * @return A copy of the set of resolved nodes (real nodes)\n     */\n    public Set getResolvedNodes(ModuleId mid, String rootModuleConf) {\n        Collection resolved = (Collection) selectedDeps.get(new ModuleIdConf(mid, rootModuleConf));\n        Set ret = new HashSet();\n        if (resolved != null) {\n            for (Iterator iter = resolved.iterator(); iter.hasNext();) {\n                IvyNode node = (IvyNode) iter.next();\n                ret.add(node.getRealNode());\n            }\n        }\n        return ret;\n    }\n\n    public Collection getResolvedRevisions(ModuleId mid, String rootModuleConf) {\n        Collection resolved = (Collection) selectedDeps.get(new ModuleIdConf(mid, rootModuleConf));\n        if (resolved == null) {\n            return new HashSet();\n        } else {\n            Collection resolvedRevs = new HashSet();\n            for (Iterator iter = resolved.iterator(); iter.hasNext();) {\n                IvyNode node = (IvyNode) iter.next();\n                resolvedRevs.add(node.getId());\n                resolvedRevs.add(node.getResolvedId());\n            }\n            return resolvedRevs;\n        }\n    }\n\n    public void setResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection resolved) {\n        ModuleIdConf moduleIdConf = new ModuleIdConf(moduleId, rootModuleConf);\n        selectedDeps.put(moduleIdConf, new HashSet(resolved));\n    }\n\n    public Collection getEvictedNodes(ModuleId mid, String rootModuleConf) {\n        Collection resolved = (Collection) evictedDeps.get(new ModuleIdConf(mid, rootModuleConf));\n        Set ret = new HashSet();\n        if (resolved != null) {\n            for (Iterator iter = resolved.iterator(); iter.hasNext();) {\n                IvyNode node = (IvyNode) iter.next();\n                ret.add(node.getRealNode());\n            }\n        }\n        return ret;\n    }\n\n    public Collection getEvictedRevisions(ModuleId mid, String rootModuleConf) {\n        Collection evicted = (Collection) evictedRevs.get(new ModuleIdConf(mid, rootModuleConf));\n        if (evicted == null) {\n            return new HashSet();\n        } else {\n            return new HashSet(evicted);\n        }\n    }\n\n    public void setEvictedNodes(ModuleId moduleId, String rootModuleConf, Collection evicted) {\n        ModuleIdConf moduleIdConf = new ModuleIdConf(moduleId, rootModuleConf);\n        evictedDeps.put(moduleIdConf, new HashSet(evicted));\n        Collection evictedRevs = new HashSet();\n        for (Iterator iter = evicted.iterator(); iter.hasNext();) {\n            IvyNode node = (IvyNode) iter.next();\n            evictedRevs.add(node.getId());\n            evictedRevs.add(node.getResolvedId());\n        }\n        this.evictedRevs.put(moduleIdConf, evictedRevs);\n    }\n\n    public boolean isEvicted(String rootModuleConf) {\n        cleanEvicted();\n        IvyNode root = node.getRoot();\n        ModuleId moduleId = node.getId().getModuleId();\n        Collection resolvedRevisions = root.getResolvedRevisions(moduleId, rootModuleConf);\n        EvictionData evictedData = getEvictedData(rootModuleConf);\n        return root != node && evictedData != null \n            && (!resolvedRevisions.contains(node.getResolvedId())\n                || evictedData.isTransitivelyEvicted()\n               );\n    }\n\n    public boolean isCompletelyEvicted() {\n        cleanEvicted();\n        if (node.isRoot()) {\n            return false;\n        }\n        String[] rootModuleConfigurations = node.getRootModuleConfigurations();\n        for (int i = 0; i < rootModuleConfigurations.length; i++) {\n            if (!isEvicted(rootModuleConfigurations[i])) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    private void cleanEvicted() {\n        // check if it was evicted by a node that we are now the real node for\n        for (Iterator iter = evicted.keySet().iterator(); iter.hasNext();) {\n            String rootModuleConf = (String) iter.next();\n            EvictionData ed = (EvictionData) evicted.get(rootModuleConf);\n            Collection sel = ed.getSelected();\n            if (sel != null) {\n                for (Iterator iterator = sel.iterator(); iterator.hasNext();) {\n                    IvyNode n = (IvyNode) iterator.next();\n                    if (n.getRealNode().equals(this)) {\n                        // yes, we are the real node for a selected one !\n                        // we are no more evicted in this conf !\n                        iter.remove();\n                    }\n                }\n            }\n        }\n    }\n\n    public void markEvicted(EvictionData evictionData) {\n        evicted.put(evictionData.getRootModuleConf(), evictionData);\n    }\n\n    public EvictionData getEvictedData(String rootModuleConf) {\n        cleanEvicted();\n        return (EvictionData) evicted.get(rootModuleConf);\n    }\n\n    public String[] getEvictedConfs() {\n        cleanEvicted();\n        return (String[]) evicted.keySet().toArray(new String[evicted.keySet().size()]);\n    }\n\n    /**\n     * Returns null if this node has only be evicted transitively, or the the collection of selected\n     * nodes if it has been evicted by other selected nodes\n     * \n     * @return\n     */\n    public Collection getAllEvictingNodes() {\n        Collection allEvictingNodes = null;\n        for (Iterator iter = evicted.values().iterator(); iter.hasNext();) {\n            EvictionData ed = (EvictionData) iter.next();\n            Collection selected = ed.getSelected();\n            if (selected != null) {\n                if (allEvictingNodes == null) {\n                    allEvictingNodes = new HashSet();\n                }\n                allEvictingNodes.addAll(selected);\n            }\n        }\n        return allEvictingNodes;\n    }\n    \n    public Collection/*<String>*/ getAllEvictingNodesDetails() {\n        Collection ret = null;\n        for (Iterator iter = evicted.values().iterator(); iter.hasNext();) {\n            EvictionData ed = (EvictionData) iter.next();\n            Collection selected = ed.getSelected();\n            if (selected != null) {\n                if (ret == null) {\n                    ret = new HashSet();\n                }\n                if (selected.size() == 1) {\n                    ret.add(selected.iterator().next() \n                        + (ed.getDetail() == null ? \"\" : \" \" + ed.getDetail()));\n                } else if (selected.size() > 1) {\n                    ret.add(selected \n                        + (ed.getDetail() == null ? \"\" : \" \" + ed.getDetail()));\n                }\n            }\n        }\n        return ret;\n    }\n\n    public Collection getAllEvictingConflictManagers() {\n        Collection ret = new HashSet();\n        for (Iterator iter = evicted.values().iterator(); iter.hasNext();) {\n            EvictionData ed = (EvictionData) iter.next();\n            ret.add(ed.getConflictManager());\n        }\n        return ret;\n    }\n\n    /**\n     * Returns the eviction data for this node if it has been previously evicted in the root, null\n     * otherwise (if it hasn't been evicted in root) for the given rootModuleConf. Note that this\n     * method only works if conflict resolution has already be done in all the ancestors.\n     * \n     * @param rootModuleConf\n     * @param ancestor\n     * @return\n     */\n    public EvictionData getEvictionDataInRoot(String rootModuleConf, IvyNode ancestor) {\n        Collection selectedNodes = node.getRoot().getResolvedNodes(node.getModuleId(),\n            rootModuleConf);\n        for (Iterator iter = selectedNodes.iterator(); iter.hasNext();) {\n            IvyNode node = (IvyNode) iter.next();\n            if (node.getResolvedId().equals(this.node.getResolvedId())) {\n                // the node is part of the selected ones for the root: no eviction data to return\n                return null;\n            }\n        }\n        // we didn't find this mrid in the selected ones for the root: it has been previously\n        // evicted\n        return new EvictionData(rootModuleConf, ancestor, node.getRoot().getConflictManager(\n            node.getModuleId()), selectedNodes);\n    }\n\n    public Collection getPendingConflicts(String rootModuleConf, ModuleId mid) {\n        Collection resolved = (Collection) pendingConflicts.get(new ModuleIdConf(mid,\n                rootModuleConf));\n        Set ret = new HashSet();\n        if (resolved != null) {\n            for (Iterator iter = resolved.iterator(); iter.hasNext();) {\n                IvyNode node = (IvyNode) iter.next();\n                ret.add(node.getRealNode());\n            }\n        }\n        return ret;\n    }\n\n    public void setPendingConflicts(ModuleId moduleId, String rootModuleConf, \n            Collection conflicts) {\n        ModuleIdConf moduleIdConf = new ModuleIdConf(moduleId, rootModuleConf);\n        pendingConflicts.put(moduleIdConf, new HashSet(conflicts));", "functions": [{"function_name": "getResolvedNodes", "code": "    public Set getResolvedNodes(ModuleId mid, String rootModuleConf) {\n        Collection resolved = (Collection) selectedDeps.get(new ModuleIdConf(mid, rootModuleConf));\n        Set ret = new HashSet();\n        if (resolved != null) {\n            for (Iterator iter = resolved.iterator(); iter.hasNext();) {\n                IvyNode node = (IvyNode) iter.next();\n                ret.add(node.getRealNode());\n            }\n        }\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [3, 10], [8, 11], [4, 12], [8, 13], [12, 14], [8, 15], [8, 16], [15, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 3], [11, 8], [12, 4], [13, 8], [14, 12], [15, 8], [16, 8], [17, 15], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getResolvedRevisions", "code": "    public Collection getResolvedRevisions(ModuleId mid, String rootModuleConf) {\n        Collection resolved = (Collection) selectedDeps.get(new ModuleIdConf(mid, rootModuleConf));\n        if (resolved == null) {\n            return new HashSet();\n        } else {\n            Collection resolvedRevs = new HashSet();\n            for (Iterator iter = resolved.iterator(); iter.hasNext();) {\n                IvyNode node = (IvyNode) iter.next();\n                resolvedRevs.add(node.getId());\n                resolvedRevs.add(node.getResolvedId());\n            }\n            return resolvedRevs;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [7, 11], [9, 12], [2, 13], [7, 14], [8, 15], [13, 16], [7, 17], [7, 18], [7, 19], [17, 20], [18, 21], [14, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 7], [12, 9], [13, 2], [14, 7], [15, 8], [16, 13], [17, 7], [18, 7], [19, 7], [20, 17], [21, 18], [22, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "setResolvedNodes", "code": "    public void setResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection resolved) {\n        ModuleIdConf moduleIdConf = new ModuleIdConf(moduleId, rootModuleConf);\n        selectedDeps.put(moduleIdConf, new HashSet(resolved));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getEvictedNodes", "code": "    public Collection getEvictedNodes(ModuleId mid, String rootModuleConf) {\n        Collection resolved = (Collection) evictedDeps.get(new ModuleIdConf(mid, rootModuleConf));\n        Set ret = new HashSet();\n        if (resolved != null) {\n            for (Iterator iter = resolved.iterator(); iter.hasNext();) {\n                IvyNode node = (IvyNode) iter.next();\n                ret.add(node.getRealNode());\n            }\n        }\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [3, 10], [8, 11], [4, 12], [8, 13], [12, 14], [8, 15], [8, 16], [15, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 3], [11, 8], [12, 4], [13, 8], [14, 12], [15, 8], [16, 8], [17, 15], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getEvictedRevisions", "code": "    public Collection getEvictedRevisions(ModuleId mid, String rootModuleConf) {\n        Collection evicted = (Collection) evictedRevs.get(new ModuleIdConf(mid, rootModuleConf));\n        if (evicted == null) {\n            return new HashSet();\n        } else {\n            return new HashSet(evicted);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [7, 10], [2, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 7], [11, 2], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setEvictedNodes", "code": "    public void setEvictedNodes(ModuleId moduleId, String rootModuleConf, Collection evicted) {\n        ModuleIdConf moduleIdConf = new ModuleIdConf(moduleId, rootModuleConf);\n        evictedDeps.put(moduleIdConf, new HashSet(evicted));\n        Collection evictedRevs = new HashSet();\n        for (Iterator iter = evicted.iterator(); iter.hasNext();) {\n            IvyNode node = (IvyNode) iter.next();\n            evictedRevs.add(node.getId());\n            evictedRevs.add(node.getResolvedId());\n        }\n        this.evictedRevs.put(moduleIdConf, evictedRevs);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [1, 10], [2, 11], [8, 12], [3, 13], [1, 14], [1, 15], [1, 16], [14, 17], [15, 18], [10, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 1], [11, 2], [12, 8], [13, 3], [14, 1], [15, 1], [16, 1], [17, 14], [18, 15], [19, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "isEvicted", "code": "    public boolean isEvicted(String rootModuleConf) {\n        cleanEvicted();\n        IvyNode root = node.getRoot();\n        ModuleId moduleId = node.getId().getModuleId();\n        Collection resolvedRevisions = root.getResolvedRevisions(moduleId, rootModuleConf);\n        EvictionData evictedData = getEvictedData(rootModuleConf);\n        return root != node && evictedData != null \n            && (!resolvedRevisions.contains(node.getResolvedId())\n                || evictedData.isTransitivelyEvicted()", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [7, 9], [7, 10], [2, 11], [3, 12], [4, 13], [5, 14], [9, 15], [9, 16], [10, 17], [10, 18], [13, 19], [16, 20], [17, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 7], [10, 7], [11, 2], [12, 3], [13, 4], [14, 5], [15, 9], [16, 9], [17, 10], [18, 10], [19, 13], [20, 16], [21, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "isCompletelyEvicted", "code": "    public boolean isCompletelyEvicted() {\n        cleanEvicted();\n        if (node.isRoot()) {\n            return false;\n        }\n        String[] rootModuleConfigurations = node.getRootModuleConfigurations();\n        for (int i = 0; i < rootModuleConfigurations.length; i++) {\n            if (!isEvicted(rootModuleConfigurations[i])) {\n                return false;\n            }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [0, 8], [2, 9], [3, 10], [4, 11], [9, 12], [2, 13], [11, 14], [9, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 0], [9, 2], [10, 3], [11, 4], [12, 9], [13, 2], [14, 11], [15, 9], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "cleanEvicted", "code": "    private void cleanEvicted() {\n        // check if it was evicted by a node that we are now the real node for\n        for (Iterator iter = evicted.keySet().iterator(); iter.hasNext();) {\n            String rootModuleConf = (String) iter.next();\n            EvictionData ed = (EvictionData) evicted.get(rootModuleConf);\n            Collection sel = ed.getSelected();\n            if (sel != null) {\n                for (Iterator iterator = sel.iterator(); iterator.hasNext();) {\n                    IvyNode n = (IvyNode) iterator.next();\n                    if (n.getRealNode().equals(this)) {\n                        // yes, we are the real node for a selected one !\n                        // we are no more evicted in this conf !\n                        iter.remove();", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [1, 8], [3, 9], [7, 10], [4, 11], [8, 12], [9, 13], [5, 14], [6, 15], [9, 16], [9, 17], [16, 18], [9, 19], [18, 20], [16, 21], [17, 22], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 1], [9, 3], [10, 7], [11, 4], [12, 8], [13, 9], [14, 5], [15, 6], [16, 9], [17, 9], [18, 16], [19, 9], [20, 18], [21, 16], [22, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "markEvicted", "code": "    public void markEvicted(EvictionData evictionData) {\n        evicted.put(evictionData.getRootModuleConf(), evictionData);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEvictedData", "code": "    public EvictionData getEvictedData(String rootModuleConf) {\n        cleanEvicted();\n        return (EvictionData) evicted.get(rootModuleConf);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getEvictedConfs", "code": "    public String[] getEvictedConfs() {\n        cleanEvicted();\n        return (String[]) evicted.keySet().toArray(new String[evicted.keySet().size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getAllEvictingNodes", "code": "    public Collection getAllEvictingNodes() {\n        Collection allEvictingNodes = null;\n        for (Iterator iter = evicted.values().iterator(); iter.hasNext();) {\n            EvictionData ed = (EvictionData) iter.next();\n            Collection selected = ed.getSelected();\n            if (selected != null) {\n                if (allEvictingNodes == null) {\n                    allEvictingNodes = new HashSet();\n                }\n                allEvictingNodes.addAll(selected);\n            }\n        }\n        return allEvictingNodes;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [3, 8], [5, 9], [2, 10], [5, 11], [9, 12], [6, 13], [10, 14], [5, 15], [11, 16], [7, 17], [16, 18], [11, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 3], [9, 5], [10, 2], [11, 5], [12, 9], [13, 6], [14, 10], [15, 5], [16, 11], [17, 7], [18, 16], [19, 11], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getAllEvictingNodesDetails", "code": "    public Collection/*<String>*/ getAllEvictingNodesDetails() {\n        Collection ret = null;\n        for (Iterator iter = evicted.values().iterator(); iter.hasNext();) {\n            EvictionData ed = (EvictionData) iter.next();\n            Collection selected = ed.getSelected();\n            if (selected != null) {\n                if (ret == null) {\n                    ret = new HashSet();\n                }\n                if (selected.size() == 1) {\n                    ret.add(selected.iterator().next() \n                        + (ed.getDetail() == null ? \"\" : \" \" + ed.getDetail()));\n                } else if (selected.size() > 1) {\n                    ret.add(selected \n                        + (ed.getDetail() == null ? \"\" : \" \" + ed.getDetail()));\n                }\n            }\n        }\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [3, 8], [5, 9], [2, 10], [5, 11], [5, 12], [9, 13], [6, 14], [10, 15], [11, 16], [11, 17], [12, 18], [7, 19], [16, 20], [17, 21], [17, 22], [18, 23], [20, 24], [20, 25], [11, 26], [12, 27], [16, 28], [26, 29], [27, 30], [28, 31], [29, 32], [29, 33], [31, 34], [32, 35], [32, 36], [32, 37], [33, 38], [34, 39], [34, 40], [34, 41], [35, 42], [35, 43], [37, 44], [37, 45], [39, 46], [39, 47], [41, 48], [41, 49], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 3], [9, 5], [10, 2], [11, 5], [12, 5], [13, 9], [14, 6], [15, 10], [16, 11], [17, 11], [18, 12], [19, 7], [20, 16], [21, 17], [22, 17], [23, 18], [24, 20], [25, 20], [26, 11], [27, 12], [28, 16], [29, 26], [30, 27], [31, 28], [32, 29], [33, 29], [34, 31], [35, 32], [36, 32], [37, 32], [38, 33], [39, 34], [40, 34], [41, 34], [42, 35], [43, 35], [44, 37], [45, 37], [46, 39], [47, 39], [48, 41], [49, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "getAllEvictingConflictManagers", "code": "    public Collection getAllEvictingConflictManagers() {\n        Collection ret = new HashSet();\n        for (Iterator iter = evicted.values().iterator(); iter.hasNext();) {\n            EvictionData ed = (EvictionData) iter.next();\n            ret.add(ed.getConflictManager());\n        }\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [3, 6], [2, 7], [2, 8], [7, 9], [8, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 3], [7, 2], [8, 2], [9, 7], [10, 8], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getEvictionDataInRoot", "code": "    public EvictionData getEvictionDataInRoot(String rootModuleConf, IvyNode ancestor) {\n        Collection selectedNodes = node.getRoot().getResolvedNodes(node.getModuleId(),\n            rootModuleConf);\n        for (Iterator iter = selectedNodes.iterator(); iter.hasNext();) {\n            IvyNode node = (IvyNode) iter.next();\n            if (node.getResolvedId().equals(this.node.getResolvedId())) {\n                // the node is part of the selected ones for the root: no eviction data to return\n                return null;\n            }\n        }\n        // we didn't find this mrid in the selected ones for the root: it has been previously\n        // evicted\n        return new EvictionData(rootModuleConf, ancestor, node.getRoot().getConflictManager(\n            node.getModuleId()), selectedNodes);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [6, 8], [2, 9], [2, 10], [3, 11], [8, 12], [9, 13], [2, 14], [11, 15], [12, 16], [9, 17], [13, 18], [15, 19], [17, 20], [10, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 6], [9, 2], [10, 2], [11, 3], [12, 8], [13, 9], [14, 2], [15, 11], [16, 12], [17, 9], [18, 13], [19, 15], [20, 17], [21, 10], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getPendingConflicts", "code": "    public Collection getPendingConflicts(String rootModuleConf, ModuleId mid) {\n        Collection resolved = (Collection) pendingConflicts.get(new ModuleIdConf(mid,\n                rootModuleConf));\n        Set ret = new HashSet();\n        if (resolved != null) {\n            for (Iterator iter = resolved.iterator(); iter.hasNext();) {\n                IvyNode node = (IvyNode) iter.next();\n                ret.add(node.getRealNode());\n            }\n        }\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [3, 10], [8, 11], [4, 12], [8, 13], [12, 14], [8, 15], [8, 16], [15, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 3], [11, 8], [12, 4], [13, 8], [14, 12], [15, 8], [16, 8], [17, 15], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setPendingConflicts", "code": "    public void setPendingConflicts(ModuleId moduleId, String rootModuleConf, \n            Collection conflicts) {\n        ModuleIdConf moduleIdConf = new ModuleIdConf(moduleId, rootModuleConf);\n        pendingConflicts.put(moduleIdConf, new HashSet(conflicts));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "IvyNodeEviction", "code": "    public IvyNodeEviction(IvyNode node) {\n        if (node == null) {\n            throw new NullPointerException(\"node must not be null\");\n        }\n        this.node = node;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "poi-3.0-5987", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/eventmodel/ModelFactory.java", "language": "java", "name": "org.apache.poi.hssf.eventmodel.ModelFactory", "code": "public class ModelFactory implements ERFListener\n{\n\n    List listeners;\n    Model currentmodel;\n    boolean lastEOF;\n \n    /**\n     * Constructor for ModelFactory.  Does practically nothing.\n     */\n    public ModelFactory()\n    {\n        super();\n        listeners = new ArrayList(1);\n    }\n    \n    /**\n     * register a ModelFactoryListener so that it can receive \n     * Models as they are created.\n     */\n    public void registerListener(ModelFactoryListener listener) {\n        listeners.add(listener);\n    }\n    \n    /**\n     * Start processing the Workbook stream into Model events.\n     */\n    public void run(InputStream stream) {\n        EventRecordFactory factory = new EventRecordFactory(true);\n        factory.registerListener(this,null);\n        lastEOF = true;\n        factory.processRecords(stream);\n    }\n\n    public boolean processRecord(Record rec)\n    {\n       if (rec.getSid() == BOFRecord.sid) {\n             if (lastEOF != true) {\n              throw new RuntimeException(\"Not yet handled embedded models\");  \n             } else {\n              BOFRecord bof = (BOFRecord)rec;\n              switch (bof.getType()) {\n               case BOFRecord.TYPE_WORKBOOK:\n                 currentmodel = new Workbook();                 \n               break;\n               case BOFRecord.TYPE_WORKSHEET:\n                 currentmodel = new Sheet();                                  \n               break;\n              default:\n                   throw new RuntimeException(\"Unsupported model type \"+bof.getType());\n              }                \n               \n             }        \n        }\n        \n        if (rec.getSid() == EOFRecord.sid) {\n            lastEOF = true;\n            throwEvent(currentmodel);\n        } else {\n            lastEOF = false;   \n        }\n        \n \n        return true;\n    }\n\n    /**\n     * Throws the model as an event to the listeners\n     * @param model to be thrown\n     */\n    private void throwEvent(Model model)\n    {\n        Iterator i = listeners.iterator();\n        while (i.hasNext()) {\n          ModelFactoryListener mfl = (ModelFactoryListener) i.next();\n          mfl.process(model);", "functions": [{"function_name": "registerListener", "code": "    public void registerListener(ModelFactoryListener listener) {\n        listeners.add(listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "run", "code": "    public void run(InputStream stream) {\n        EventRecordFactory factory = new EventRecordFactory(true);\n        factory.registerListener(this,null);\n        lastEOF = true;\n        factory.processRecords(stream);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "processRecord", "code": "    public boolean processRecord(Record rec)\n    {\n       if (rec.getSid() == BOFRecord.sid) {\n             if (lastEOF != true) {\n              throw new RuntimeException(\"Not yet handled embedded models\");  \n             } else {\n              BOFRecord bof = (BOFRecord)rec;\n              switch (bof.getType()) {\n               case BOFRecord.TYPE_WORKBOOK:\n                 currentmodel = new Workbook();                 \n               break;\n               case BOFRecord.TYPE_WORKSHEET:\n                 currentmodel = new Sheet();                                  \n               break;\n              default:\n                   throw new RuntimeException(\"Unsupported model type \"+bof.getType());\n              }                \n               \n             }        \n        }\n        \n        if (rec.getSid() == EOFRecord.sid) {\n            lastEOF = true;\n            throwEvent(currentmodel);\n        } else {\n            lastEOF = false;   \n        }\n        \n \n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "VAR_DECL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [6, 8], [3, 9], [7, 10], [2, 11], [2, 12], [2, 13], [9, 14], [11, 15], [13, 16], [9, 17], [9, 18], [9, 19], [14, 20], [17, 21], [19, 22], [17, 23], [17, 24], [17, 25], [22, 26], [23, 27], [17, 28], [17, 29], [27, 30], [28, 31], [29, 32], [30, 33], [30, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 6], [9, 3], [10, 7], [11, 2], [12, 2], [13, 2], [14, 9], [15, 11], [16, 13], [17, 9], [18, 9], [19, 9], [20, 14], [21, 17], [22, 19], [23, 17], [24, 17], [25, 17], [26, 22], [27, 23], [28, 17], [29, 17], [30, 27], [31, 28], [32, 29], [33, 30], [34, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "throwEvent", "code": "    private void throwEvent(Model model)\n    {\n        Iterator i = listeners.iterator();\n        while (i.hasNext()) {\n          ModelFactoryListener mfl = (ModelFactoryListener) i.next();\n          mfl.process(model);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "ModelFactory", "code": "    public ModelFactory()\n    {\n        super();\n        listeners = new ArrayList(1);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "ant-1.7-864", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.junit.FormatterElement", "code": "public class FormatterElement {\n\n    private String classname;\n    private String extension;\n    private OutputStream out = System.out;\n    private File outFile;\n    private boolean useFile = true;\n    private String ifProperty;\n    private String unlessProperty;\n\n    /** xml formatter class */\n    public static final String XML_FORMATTER_CLASS_NAME =\n        \"org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter\";\n    /** brief formatter class */\n    public static final String BRIEF_FORMATTER_CLASS_NAME =\n        \"org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter\";\n    /** plain formatter class */\n    public static final String PLAIN_FORMATTER_CLASS_NAME =\n        \"org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter\";\n\n    /**\n     * <p> Quick way to use a standard formatter.\n     *\n     * <p> At the moment, there are three supported standard formatters.\n     * <ul>\n     * <li> The <code>xml</code> type uses a <code>XMLJUnitResultFormatter</code>.\n     * <li> The <code>brief</code> type uses a <code>BriefJUnitResultFormatter</code>.\n     * <li> The <code>plain</code> type (the default) uses a <code>PlainJUnitResultFormatter</code>.\n     * </ul>\n     *\n     * <p> Sets <code>classname</code> attribute - so you can't use that\n     * attribute if you use this one.\n     * @param type the enumerated value to use.\n     */\n    public void setType(TypeAttribute type) {\n        if (\"xml\".equals(type.getValue())) {\n            setClassname(XML_FORMATTER_CLASS_NAME);\n        } else {\n            if (\"brief\".equals(type.getValue())) {\n                setClassname(BRIEF_FORMATTER_CLASS_NAME);\n                setClassname(PLAIN_FORMATTER_CLASS_NAME);\n            }\n        }\n    }\n\n    /**\n     * <p> Set name of class to be used as the formatter.\n     *\n     * <p> This class must implement <code>JUnitResultFormatter</code>\n     * @param classname the name of the formatter class.\n     */\n    public void setClassname(String classname) {\n        this.classname = classname;\n        if (XML_FORMATTER_CLASS_NAME.equals(classname)) {\n           setExtension(\".xml\");\n        } else if (PLAIN_FORMATTER_CLASS_NAME.equals(classname)) {\n           setExtension(\".txt\");\n        } else if (BRIEF_FORMATTER_CLASS_NAME.equals(classname)) {\n           setExtension(\".txt\");\n        }\n    }\n\n    /**\n     * Get name of class to be used as the formatter.\n     * @return the name of the class.\n     */\n    public String getClassname() {\n        return classname;\n    }\n\n    /**\n     * Set the extension to use for the report file.\n     * @param ext the extension to use.\n     */\n    public void setExtension(String ext) {\n        this.extension = ext;\n    }\n\n    /**\n     * Get the extension used for the report file.\n     * @return the extension.\n     */\n    public String getExtension() {\n        return extension;\n    }\n\n    /**\n     * <p> Set the file which the formatte should log to.\n     *\n     * <p> Note that logging to file must be enabled .\n     */\n    void setOutfile(File out) {\n        this.outFile = out;\n    }\n\n    /**\n     * <p> Set output stream for formatter to use.\n     *\n     * <p> Defaults to standard out.\n     * @param out the output stream to use.\n     */\n    public void setOutput(OutputStream out) {\n        this.out = out;\n    }\n\n    /**\n     * Set whether the formatter should log to file.\n     * @param useFile if true use a file, if false send\n     *                to standard out.\n     */\n    public void setUseFile(boolean useFile) {\n        this.useFile = useFile;\n    }\n\n    /**\n     * Get whether the formatter should log to file.\n     */\n    boolean getUseFile() {\n        return useFile;\n    }\n\n    /**\n     * Set whether this formatter should be used.  It will be\n     * used if the property has been set, otherwise it won't.\n     * @param ifProperty name of property\n     */\n    public void setIf(String ifProperty) {\n        this.ifProperty = ifProperty;\n    }\n\n    /**\n     * Set whether this formatter should NOT be used. It\n     * will not be used if the property has been set, orthwise it\n     * will be used.\n     * @param unlessProperty name of property\n     */\n    public void setUnless(String unlessProperty) {\n        this.unlessProperty = unlessProperty;\n    }\n\n    /**\n     * Ensures that the selector passes the conditions placed\n     * on it with <code>if</code> and <code>unless</code> properties.\n     * @param t the task the this formatter is used in.\n     * @return true if the formatter should be used.\n     */\n    public boolean shouldUse(Task t) {\n        if (ifProperty != null && t.getProject().getProperty(ifProperty) == null) {\n            return false;\n        } else if (unlessProperty != null\n                    && t.getProject().getProperty(unlessProperty) != null) {\n            return false;\n        }\n\n        return true;\n    }\n\n    /**\n     * @since Ant 1.2\n     */\n    JUnitTaskMirror.JUnitResultFormatterMirror createFormatter() throws BuildException {\n        return createFormatter(null);\n    }\n\n    /**\n     * @since Ant 1.6\n     */\n    JUnitTaskMirror.JUnitResultFormatterMirror createFormatter(ClassLoader loader)\n        throws BuildException {\n\n        if (classname == null) {\n            throw new BuildException(\"you must specify type or classname\");\n        }\n        Class f = null;\n        try {\n            if (loader == null) {\n                f = Class.forName(classname);\n            } else {\n                f = Class.forName(classname, true, loader);\n            }\n        } catch (ClassNotFoundException e) {\n            throw new BuildException(\n                \"Using loader \" + loader + \" on class \" + classname\n                + \": \" + e, e);\n        } catch (NoClassDefFoundError e) {\n            throw new BuildException(\n                \"Using loader \" + loader + \" on class \" + classname\n                + \": \" + e, e);\n        }\n\n        Object o = null;\n        try {\n            o = f.newInstance();\n        } catch (InstantiationException e) {\n            throw new BuildException(e);\n        } catch (IllegalAccessException e) {\n            throw new BuildException(e);\n        }\n\n        if (!(o instanceof JUnitTaskMirror.JUnitResultFormatterMirror)) {\n            throw new BuildException(classname\n                + \" is not a JUnitResultFormatter\");\n        }\n        JUnitTaskMirror.JUnitResultFormatterMirror r =\n            (JUnitTaskMirror.JUnitResultFormatterMirror) o;\n        if (useFile && outFile != null) {\n            try {\n                out = new BufferedOutputStream(new FileOutputStream(outFile));\n            } catch (java.io.IOException e) {\n                throw new BuildException(\"Unable to open file \" + outFile, e);\n            }\n        }\n        r.setOutput(out);\n        return r;\n    }\n\n    /**\n     * <p> Enumerated attribute with the values \"plain\", \"xml\" and \"brief\".\n     *\n     * <p> Use to enumerate options for <code>type</code> attribute.\n     */\n    public static class TypeAttribute extends EnumeratedAttribute {\n        /** {@inheritDoc}. */\n        public String[] getValues() {\n            return new String[] {\"plain\", \"xml\", \"brief\"};", "functions": [{"function_name": "setType", "code": "    public void setType(TypeAttribute type) {\n        if (\"xml\".equals(type.getValue())) {\n            setClassname(XML_FORMATTER_CLASS_NAME);\n        } else {\n            if (\"brief\".equals(type.getValue())) {\n                setClassname(BRIEF_FORMATTER_CLASS_NAME);\n                setClassname(PLAIN_FORMATTER_CLASS_NAME);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [5, 8], [6, 9], [4, 10], [4, 11], [9, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 5], [9, 6], [10, 4], [11, 4], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setClassname", "code": "    public void setClassname(String classname) {\n        this.classname = classname;\n        if (XML_FORMATTER_CLASS_NAME.equals(classname)) {\n           setExtension(\".xml\");\n        } else if (PLAIN_FORMATTER_CLASS_NAME.equals(classname)) {\n           setExtension(\".txt\");\n        } else if (BRIEF_FORMATTER_CLASS_NAME.equals(classname)) {\n           setExtension(\".txt\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "ASSIGN", "IF", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [3, 6], [3, 7], [6, 8], [1, 9], [3, 10], [9, 11], [6, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 3], [7, 3], [8, 6], [9, 1], [10, 3], [11, 9], [12, 6], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getClassname", "code": "    public String getClassname() {\n        return classname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExtension", "code": "    public void setExtension(String ext) {\n        this.extension = ext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExtension", "code": "    public String getExtension() {\n        return extension;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOutfile", "code": "    void setOutfile(File out) {\n        this.outFile = out;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutput", "code": "    public void setOutput(OutputStream out) {\n        this.out = out;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUseFile", "code": "    public void setUseFile(boolean useFile) {\n        this.useFile = useFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUseFile", "code": "    boolean getUseFile() {\n        return useFile;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIf", "code": "    public void setIf(String ifProperty) {\n        this.ifProperty = ifProperty;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUnless", "code": "    public void setUnless(String unlessProperty) {\n        this.unlessProperty = unlessProperty;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "shouldUse", "code": "    public boolean shouldUse(Task t) {\n        if (ifProperty != null && t.getProject().getProperty(ifProperty) == null) {\n            return false;\n        } else if (unlessProperty != null\n                    && t.getProject().getProperty(unlessProperty) != null) {\n            return false;\n        }\n\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [2, 8], [6, 9], [6, 10], [5, 11], [7, 12], [7, 13], [8, 14], [9, 15], [9, 16], [10, 17], [11, 18], [12, 19], [12, 20], [13, 21], [16, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 2], [9, 6], [10, 6], [11, 5], [12, 7], [13, 7], [14, 8], [15, 9], [16, 9], [17, 10], [18, 11], [19, 12], [20, 12], [21, 13], [22, 16], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "createFormatter", "code": "    JUnitTaskMirror.JUnitResultFormatterMirror createFormatter() throws BuildException {\n        return createFormatter(null);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createFormatter", "code": "    JUnitTaskMirror.JUnitResultFormatterMirror createFormatter(ClassLoader loader)\n        throws BuildException {\n\n        if (classname == null) {\n            throw new BuildException(\"you must specify type or classname\");\n        }\n        Class f = null;\n        try {\n            if (loader == null) {\n                f = Class.forName(classname);\n            } else {\n                f = Class.forName(classname, true, loader);\n            }\n        } catch (ClassNotFoundException e) {\n            throw new BuildException(\n                \"Using loader \" + loader + \" on class \" + classname\n                + \": \" + e, e);\n        } catch (NoClassDefFoundError e) {\n            throw new BuildException(\n                \"Using loader \" + loader + \" on class \" + classname\n                + \": \" + e, e);\n        }\n\n        Object o = null;\n        try {\n            o = f.newInstance();\n        } catch (InstantiationException e) {\n            throw new BuildException(e);\n        } catch (IllegalAccessException e) {\n            throw new BuildException(e);\n        }\n\n        if (!(o instanceof JUnitTaskMirror.JUnitResultFormatterMirror)) {\n            throw new BuildException(classname\n                + \" is not a JUnitResultFormatter\");\n        }\n        JUnitTaskMirror.JUnitResultFormatterMirror r =\n            (JUnitTaskMirror.JUnitResultFormatterMirror) o;\n        if (useFile && outFile != null) {\n            try {\n                out = new BufferedOutputStream(new FileOutputStream(outFile));\n            } catch (java.io.IOException e) {\n                throw new BuildException(\"Unable to open file \" + outFile, e);\n            }\n        }\n        r.setOutput(out);\n        return r;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "CATCH", "CATCH", "CATCH", "IF", "BINARY_OP", "TRY", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [4, 13], [5, 14], [5, 15], [7, 16], [7, 17], [7, 18], [9, 19], [2, 20], [12, 21], [4, 22], [14, 23], [15, 24], [5, 25], [6, 26], [16, 27], [17, 28], [18, 29], [8, 30], [9, 31], [19, 32], [20, 33], [21, 34], [22, 35], [23, 36], [24, 37], [25, 38], [27, 39], [28, 40], [29, 41], [31, 42], [33, 43], [20, 44], [35, 45], [39, 46], [40, 47], [18, 48], [18, 49], [42, 50], [43, 51], [44, 52], [45, 53], [46, 54], [47, 55], [48, 56], [49, 57], [51, 58], [52, 59], [54, 60], [54, 61], [55, 62], [55, 63], [56, 64], [58, 65], [61, 66], [63, 67], [66, 68], [66, 69], [67, 70], [67, 71], [69, 72], [71, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 4], [14, 5], [15, 5], [16, 7], [17, 7], [18, 7], [19, 9], [20, 2], [21, 12], [22, 4], [23, 14], [24, 15], [25, 5], [26, 6], [27, 16], [28, 17], [29, 18], [30, 8], [31, 9], [32, 19], [33, 20], [34, 21], [35, 22], [36, 23], [37, 24], [38, 25], [39, 27], [40, 28], [41, 29], [42, 31], [43, 33], [44, 20], [45, 35], [46, 39], [47, 40], [48, 18], [49, 18], [50, 42], [51, 43], [52, 44], [53, 45], [54, 46], [55, 47], [56, 48], [57, 49], [58, 51], [59, 52], [60, 54], [61, 54], [62, 55], [63, 55], [64, 56], [65, 58], [66, 61], [67, 63], [68, 66], [69, 66], [70, 67], [71, 67], [72, 69], [73, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}], "label": 0}
{"sample_id": "camel-1.4-2546", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/spring/spi/ApplicationContextRegistry.java", "language": "java", "name": "org.apache.camel.spring.spi.ApplicationContextRegistry", "code": "public class ApplicationContextRegistry implements Registry {\n    private ApplicationContext applicationContext;\n\n    public ApplicationContextRegistry(ApplicationContext applicationContext) {\n        this.applicationContext = applicationContext;\n    }\n\n    public <T> T lookup(String name, Class<T> type) {\n        try {\n            Object value = applicationContext.getBean(name, type);\n            return type.cast(value);\n        } catch (NoSuchBeanDefinitionException e) {\n            return null;\n        }\n    }\n\n    public Object lookup(String name) {\n        try {\n            return applicationContext.getBean(name);\n        } catch (NoSuchBeanDefinitionException e) {\n            return null;", "functions": [{"function_name": "lookup", "code": "    public <T> T lookup(String name, Class<T> type) {\n        try {\n            Object value = applicationContext.getBean(name, type);\n            return type.cast(value);\n        } catch (NoSuchBeanDefinitionException e) {\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [7, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 7], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "lookup", "code": "    public Object lookup(String name) {\n        try {\n            return applicationContext.getBean(name);\n        } catch (NoSuchBeanDefinitionException e) {\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ApplicationContextRegistry", "code": "    public ApplicationContextRegistry(ApplicationContext applicationContext) {\n        this.applicationContext = applicationContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7643", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/DTMIterator.java", "language": "java", "name": "org.apache.xml.dtm.DTMIterator", "code": "public interface DTMIterator\n{\n\n\n  /**\n   * Accept the node.\n   */\n  public static final short FILTER_ACCEPT = 1;\n\n  /**\n   * Reject the node. Same behavior as FILTER_SKIP. (In the DOM these\n   * differ when applied to a TreeWalker but have the same result when\n   * applied to a NodeIterator).\n   */\n  public static final short FILTER_REJECT = 2;\n\n  /**\n   * Skip this single node. \n   */\n  public static final short FILTER_SKIP = 3;\n    \n  /**\n   * Get an instance of a DTM that \"owns\" a node handle.  Since a node \n   * iterator may be passed without a DTMManager, this allows the \n   * caller to easily get the DTM using just the iterator.\n   *\n   * @param nodeHandle the nodeHandle.\n   *\n   * @return a non-null DTM reference.\n   */\n  public DTM getDTM(int nodeHandle);\n  \n  /**\n   * Get an instance of the DTMManager.  Since a node \n   * iterator may be passed without a DTMManager, this allows the \n   * caller to easily get the DTMManager using just the iterator.\n   *\n   * @return a non-null DTMManager reference.\n   */\n  public DTMManager getDTMManager();\n\n  /**\n   * The root node of the <code>DTMIterator</code>, as specified when it\n   * was created.  Note the root node is not the root node of the \n   * document tree, but the context node from where the iteration \n   * begins and ends.\n   *\n   * @return nodeHandle int Handle of the context node.\n   */\n  public int getRoot();\n\n  /**\n   * Reset the root node of the <code>DTMIterator</code>, overriding\n   * the value specified when it was created.  Note the root node is\n   * not the root node of the document tree, but the context node from\n   * where the iteration begins.\n   *\n   * @param nodeHandle int Handle of the context node.\n   * @param environment The environment object.  \n   * The environment in which this iterator operates, which should provide:\n   * <ul>\n   * <li>a node (the context node... same value as \"root\" defined below) </li>\n   * <li>a pair of non-zero positive integers (the context position and the context size) </li>\n   * <li>a set of variable bindings </li>\n   * <li>a function library </li>\n   * <li>the set of namespace declarations in scope for the expression.</li>\n   * <ul>\n   * \n   * <p>At this time the exact implementation of this environment is application \n   * dependent.  Probably a proper interface will be created fairly soon.</p>\n   * \n   */\n  public void setRoot(int nodeHandle, Object environment);\n  \n  /**\n   * Reset the iterator to the start. After resetting, the next node returned\n   * will be the root node -- or, if that's filtered out, the first node\n   * within the root's subtree which is _not_ skipped by the filters.\n   */\n  public void reset();\n\n  /**\n   * This attribute determines which node types are presented via the\n   * iterator. The available set of constants is defined above.  \n   * Nodes not accepted by\n   * <code>whatToShow</code> will be skipped, but their children may still\n   * be considered.\n   *\n   * @return one of the SHOW_XXX constants, or several ORed together.\n   */\n  public int getWhatToShow();\n\n  /**\n   * <p>The value of this flag determines whether the children of entity\n   * reference nodes are visible to the iterator. If false, they  and\n   * their descendants will be rejected. Note that this rejection takes\n   * precedence over <code>whatToShow</code> and the filter. </p>\n   * \n   * <p> To produce a view of the document that has entity references\n   * expanded and does not expose the entity reference node itself, use\n   * the <code>whatToShow</code> flags to hide the entity reference node\n   * and set <code>expandEntityReferences</code> to true when creating the\n   * iterator. To produce a view of the document that has entity reference\n   * nodes but no entity expansion, use the <code>whatToShow</code> flags\n   * to show the entity reference node and set\n   * <code>expandEntityReferences</code> to false.</p>\n   *\n   * <p>NOTE: In Xalan's use of DTM we will generally have fully expanded\n   * entity references when the document tree was built, and thus this\n   * flag will have no effect.</p>\n   *\n   * @return true if entity references will be expanded.  */\n  public boolean getExpandEntityReferences();\n\n  /**\n   * Returns the next node in the set and advances the position of the\n   * iterator in the set. After a <code>DTMIterator</code> has setRoot called,\n   * the first call to <code>nextNode()</code> returns that root or (if it\n   * is rejected by the filters) the first node within its subtree which is\n   * not filtered out.\n   * @return The next node handle in the set being iterated over, or\n   *  <code>DTM.NULL</code> if there are no more members in that set.\n   */\n  public int nextNode();\n\n  /**\n   * Returns the previous node in the set and moves the position of the\n   * <code>DTMIterator</code> backwards in the set.\n   * @return The previous node handle in the set being iterated over,\n   *   or <code>DTM.NULL</code> if there are no more members in that set.\n   */\n  public int previousNode();\n\n  /**\n   * Detaches the <code>DTMIterator</code> from the set which it iterated\n   * over, releasing any computational resources and placing the iterator\n   * in the INVALID state. After <code>detach</code> has been invoked,\n   * calls to <code>nextNode</code> or <code>previousNode</code> will\n   * raise a runtime exception.\n   */\n  public void detach();\n  \n  /**\n   * Specify if it's OK for detach to release the iterator for reuse.\n   * \n   * @param allowRelease true if it is OK for detach to release this iterator \n   * for pooling.\n   */\n  public void allowDetachToRelease(boolean allowRelease);\n\n  /**\n   * Get the current node in the iterator. Note that this differs from\n   * the DOM's NodeIterator, where the current position lies between two\n   * nodes (as part of the maintain-relative-position semantic).\n   *\n   * @return The current node handle, or -1.\n   */\n  public int getCurrentNode();\n\n  /**\n   * Tells if this NodeSetDTM is \"fresh\", in other words, if\n   * the first nextNode() that is called will return the\n   * first node in the set.\n   *\n   * @return true if the iteration of this list has not yet begun.\n   */\n  public boolean isFresh();\n\n\n  /**\n   * If setShouldCacheNodes(true) is called, then nodes will\n   * be cached, enabling random access, and giving the ability to do \n   * sorts and the like.  They are not cached by default.\n   *\n   * %REVIEW% Shouldn't the other random-access methods throw an exception\n   * if they're called on a DTMIterator with this flag set false?\n   *\n   * @param b true if the nodes should be cached.\n   */\n  public void setShouldCacheNodes(boolean b);\n  \n  /**\n   * Tells if this iterator can have nodes added to it or set via \n   * the <code>setItem(int node, int index)</code> method.\n   * \n   * @return True if the nodelist can be mutated.\n   */\n  public boolean isMutable();\n\n  /** Get the current position within the cached list, which is one\n   * less than the next nextNode() call will retrieve.  i.e. if you\n   * call getCurrentPos() and the return is 0, the next fetch will\n   * take place at index 1.\n   *\n   * @return The position of the iteration.\n   */\n  public int getCurrentPos();\n\n  /**\n   * If an index is requested, NodeSetDTM will call this method\n   * to run the iterator to the index.  By default this sets\n   * m_next to the index.  If the index argument is -1, this\n   * signals that the iterator should be run to the end and\n   * completely fill the cache.\n   *\n   * @param index The index to run to, or -1 if the iterator should be run\n   *              to the end.\n   */\n  public void runTo(int index);\n\n  /**\n   * Set the current position in the node set.\n   * \n   * @param i Must be a valid index.\n   */\n  public void setCurrentPos(int i);\n\n  /**\n   * Returns the <code>node handle</code> of an item in the collection. If\n   * <code>index</code> is greater than or equal to the number of nodes in\n   * the list, this returns <code>null</code>.\n   *\n   * @param index of the item.\n   * @return The node handle at the <code>index</code>th position in the\n   *   <code>DTMIterator</code>, or <code>-1</code> if that is not a valid\n   *   index.\n   */\n  public int item(int index);\n  \n  /**\n   * Sets the node at the specified index of this vector to be the\n   * specified node. The previous component at that position is discarded.\n   *\n   * <p>The index must be a value greater than or equal to 0 and less\n   * than the current size of the vector.  \n   * The iterator must be in cached mode.</p>\n   * \n   * <p>Meant to be used for sorted iterators.</p>\n   *\n   * @param node Node to set\n   * @param index Index of where to set the node\n   */\n  public void setItem(int node, int index);\n  \n  /**\n   * The number of nodes in the list. The range of valid child node indices\n   * is 0 to <code>length-1</code> inclusive. Note that this requires running\n   * the iterator to completion, and presumably filling the cache.\n   *\n   * @return The number of nodes in the list.\n   */\n  public int getLength();\n    \n  \n  /**\n   * Get a cloned Iterator that is reset to the start of the iteration.\n   *\n   * @return A clone of this iteration that has been reset.\n   *\n   * @throws CloneNotSupportedException\n   */\n  public DTMIterator cloneWithReset() throws CloneNotSupportedException;\n\n  /**\n   * Get a clone of this iterator, but don't reset the iteration in the \n   * process, so that it may be used from the current position.\n   *\n   * @return A clone of this object.\n   *\n   * @throws CloneNotSupportedException\n   */\n  public Object clone() throws CloneNotSupportedException;\n  \n  /**\n   * Returns true if all the nodes in the iteration well be returned in document \n   * order.\n   * \n   * @return true if all the nodes in the iteration well be returned in document \n   * order.\n   */\n  public boolean isDocOrdered();\n  \n  /**\n   * Returns the axis being iterated, if it is known.\n   * \n   * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple \n   * types.\n   */\n  public int getAxis();", "functions": [{"function_name": "getDTM", "code": "  public DTM getDTM(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDTMManager", "code": "  public DTMManager getDTMManager();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getRoot", "code": "  public int getRoot();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setRoot", "code": "  public void setRoot(int nodeHandle, Object environment);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "reset", "code": "  public void reset();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getWhatToShow", "code": "  public int getWhatToShow();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getExpandEntityReferences", "code": "  public boolean getExpandEntityReferences();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "nextNode", "code": "  public int nextNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "previousNode", "code": "  public int previousNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "detach", "code": "  public void detach();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "allowDetachToRelease", "code": "  public void allowDetachToRelease(boolean allowRelease);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCurrentNode", "code": "  public int getCurrentNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isFresh", "code": "  public boolean isFresh();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setShouldCacheNodes", "code": "  public void setShouldCacheNodes(boolean b);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isMutable", "code": "  public boolean isMutable();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getCurrentPos", "code": "  public int getCurrentPos();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "runTo", "code": "  public void runTo(int index);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCurrentPos", "code": "  public void setCurrentPos(int i);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "item", "code": "  public int item(int index);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setItem", "code": "  public void setItem(int node, int index);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLength", "code": "  public int getLength();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "cloneWithReset", "code": "  public DTMIterator cloneWithReset() throws CloneNotSupportedException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "clone", "code": "  public Object clone() throws CloneNotSupportedException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isDocOrdered", "code": "  public boolean isDocOrdered();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getAxis", "code": "  public int getAxis();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.5-7119", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/IntExpr.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.IntExpr", "code": "final class IntExpr extends Expression {\n    private final int _value;\n\n    public IntExpr(int value) {\n        _value = value;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn _type = Type.Int;\n    }\n\n    public String toString() {\n\treturn \"int-expr(\" + _value + ')';\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn _type = Type.Int;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"int-expr(\" + _value + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "IntExpr", "code": "    public IntExpr(int value) {\n        _value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-3240", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/LoadBalanceType.java", "language": "java", "name": "org.apache.camel.model.LoadBalanceType", "code": "@XmlRootElement(name = \"loadBalance\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class LoadBalanceType extends ProcessorType<LoadBalanceType> {\n    @XmlAttribute(required = false)\n    private String ref;\n\n    @XmlElements({\n        @XmlElement(required = false, name = \"roundRobin\", type = RoundRobinLoadBalanceStrategy.class),\n        @XmlElement(required = false, name = \"random\", type = RandomLoadBalanceStrategy.class),\n        @XmlElement(required = false, name = \"sticky\", type = StickyLoadBalanceStrategy.class),\n        @XmlElement(required = false, name = \"topic\", type = TopicLoadBalanceStrategy.class)}\n        )\n    private LoadBalancerType loadBalancerType;\n\n    @XmlElementRef\n    private List<ProcessorType<?>> outputs = new ArrayList<ProcessorType<?>>();\n\n    public LoadBalanceType() {\n    }\n\n    @Override\n    public String getShortName() {\n        return \"loadbalance\";\n    }\n\n    public List<ProcessorType<?>> getOutputs() {\n        return outputs;\n    }\n\n    public void setOutputs(List<ProcessorType<?>> outputs) {\n        this.outputs = outputs;\n        if (outputs != null) {\n            for (ProcessorType output : outputs) {\n                configureChild(output);\n            }\n        }\n    }\n\n\n    @Override\n    protected void configureChild(ProcessorType output) {\n        super.configureChild(output);\n        if (isInheritErrorHandler()) {\n            output.setErrorHandlerBuilder(getErrorHandlerBuilder());\n        }\n    }\n\n    public String getRef() {\n        return ref;\n    }\n\n    public void setRef(String ref) {\n        this.ref = ref;\n    }\n\n    public LoadBalancerType getLoadBalancerType() {\n        return loadBalancerType;\n    }\n\n    public void setLoadBalancerType(LoadBalancerType loadbalancer) {\n        loadBalancerType = loadbalancer;\n    }\n\n    protected Processor createOutputsProcessor(RouteContext routeContext, Collection<ProcessorType<?>> outputs)\n        throws Exception {\n        LoadBalancer loadBalancer = LoadBalancerType.getLoadBalancer(routeContext, loadBalancerType, ref);\n        for (ProcessorType processorType : outputs) {\n            SendProcessor processor = (SendProcessor) processorType.createProcessor(routeContext);\n            loadBalancer.addProcessor(processor);\n        }\n        return loadBalancer;\n    }\n    \n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        LoadBalancer loadBalancer = LoadBalancerType.getLoadBalancer(routeContext, loadBalancerType, ref);\n        for (ProcessorType processorType : getOutputs()) {            \n            Processor processor = processorType.createProcessor(routeContext);\n            processor = processorType.wrapProcessorInInterceptors(routeContext, processor);\n            loadBalancer.addProcessor(processor);\n        }\n\n        return loadBalancer;\n    }\n    \n    public LoadBalanceType setLoadBalancer(LoadBalancer loadBalancer) {\n        loadBalancerType = new LoadBalancerType(loadBalancer);\n        return this;\n    }\n\n    public LoadBalanceType roundRobin() {\n        loadBalancerType = new LoadBalancerType(new RoundRobinLoadBalancer());\n        return this;\n    }\n\n    public LoadBalanceType random() {\n        loadBalancerType = new LoadBalancerType(new RandomLoadBalancer());\n        return this;\n    }\n\n    public LoadBalanceType sticky(Expression<Exchange> correlationExpression) {\n        loadBalancerType = new LoadBalancerType(new StickyLoadBalancer(correlationExpression));\n        return this;\n    }\n\n    /**\n     * @deprecated will be removed in Camel 2.0, use multicast instead\n     */\n    public LoadBalanceType topic() {\n        loadBalancerType = new LoadBalancerType(new TopicLoadBalancer());\n        return this;\n    }\n\n    @Override\n    public String getLabel() {\n        CollectionStringBuffer buffer = new CollectionStringBuffer();\n        List<ProcessorType<?>> list = getOutputs();\n        for (ProcessorType<?> processorType : list) {\n            buffer.append(processorType.getLabel());\n        }\n        return buffer.toString();\n    }\n\n    @Override\n    public String toString() {\n        if (loadBalancerType != null) {\n            return \"LoadBalanceType[\" + loadBalancerType + \", \" + getOutputs() + \"]\";\n        } else {\n            return \"LoadBalanceType[ref: \" + ref + \", \" + getOutputs() + \"]\";", "functions": [{"function_name": "getShortName", "code": "    @Override\n    public String getShortName() {\n        return \"loadbalance\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputs", "code": "    public List<ProcessorType<?>> getOutputs() {\n        return outputs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOutputs", "code": "    public void setOutputs(List<ProcessorType<?>> outputs) {\n        this.outputs = outputs;\n        if (outputs != null) {\n            for (ProcessorType output : outputs) {\n                configureChild(output);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "configureChild", "code": "    @Override\n    protected void configureChild(ProcessorType output) {\n        super.configureChild(output);\n        if (isInheritErrorHandler()) {\n            output.setErrorHandlerBuilder(getErrorHandlerBuilder());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getRef", "code": "    public String getRef() {\n        return ref;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRef", "code": "    public void setRef(String ref) {\n        this.ref = ref;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLoadBalancerType", "code": "    public LoadBalancerType getLoadBalancerType() {\n        return loadBalancerType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLoadBalancerType", "code": "    public void setLoadBalancerType(LoadBalancerType loadbalancer) {\n        loadBalancerType = loadbalancer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createOutputsProcessor", "code": "    protected Processor createOutputsProcessor(RouteContext routeContext, Collection<ProcessorType<?>> outputs)\n        throws Exception {\n        LoadBalancer loadBalancer = LoadBalancerType.getLoadBalancer(routeContext, loadBalancerType, ref);\n        for (ProcessorType processorType : outputs) {\n            SendProcessor processor = (SendProcessor) processorType.createProcessor(routeContext);\n            loadBalancer.addProcessor(processor);\n        }\n        return loadBalancer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [2, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 2], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        LoadBalancer loadBalancer = LoadBalancerType.getLoadBalancer(routeContext, loadBalancerType, ref);\n        for (ProcessorType processorType : getOutputs()) {            \n            Processor processor = processorType.createProcessor(routeContext);\n            processor = processorType.wrapProcessorInInterceptors(routeContext, processor);\n            loadBalancer.addProcessor(processor);\n        }\n\n        return loadBalancer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [2, 8], [2, 9], [9, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 2], [9, 2], [10, 9], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setLoadBalancer", "code": "    public LoadBalanceType setLoadBalancer(LoadBalancer loadBalancer) {\n        loadBalancerType = new LoadBalancerType(loadBalancer);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "roundRobin", "code": "    public LoadBalanceType roundRobin() {\n        loadBalancerType = new LoadBalancerType(new RoundRobinLoadBalancer());\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "random", "code": "    public LoadBalanceType random() {\n        loadBalancerType = new LoadBalancerType(new RandomLoadBalancer());\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "sticky", "code": "    public LoadBalanceType sticky(Expression<Exchange> correlationExpression) {\n        loadBalancerType = new LoadBalancerType(new StickyLoadBalancer(correlationExpression));\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "topic", "code": "    public LoadBalanceType topic() {\n        loadBalancerType = new LoadBalancerType(new TopicLoadBalancer());\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLabel", "code": "    @Override\n    public String getLabel() {\n        CollectionStringBuffer buffer = new CollectionStringBuffer();\n        List<ProcessorType<?>> list = getOutputs();\n        for (ProcessorType<?> processorType : list) {\n            buffer.append(processorType.getLabel());\n        }\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        if (loadBalancerType != null) {\n            return \"LoadBalanceType[\" + loadBalancerType + \", \" + getOutputs() + \"]\";\n        } else {\n            return \"LoadBalanceType[ref: \" + ref + \", \" + getOutputs() + \"]\";", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [7, 11], [9, 12], [9, 13], [11, 14], [11, 15], [13, 16], [13, 17], [15, 18], [15, 19], [17, 20], [19, 21], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [11, 7], [12, 9], [13, 9], [14, 11], [15, 11], [16, 13], [17, 13], [18, 15], [19, 15], [20, 17], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "LoadBalanceType", "code": "    public LoadBalanceType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.6-7723", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/transformer/KeyIterator.java", "language": "java", "name": "org.apache.xalan.transformer.KeyIterator", "code": "public class KeyIterator extends OneStepIteratorForward\n{\n\n  /** Key name.\n   *  @serial           */\n  private QName m_name;\n\n  /**\n   * Get the key name from a key declaration this iterator will process\n   *\n   *\n   * @return Key name\n   */\n  public QName getName()\n  {\n    return m_name;\n  }\n\n  /** Vector of Key declarations in the stylesheet.\n   *  @serial          */\n  private Vector m_keyDeclarations;\n\n  /**\n   * Get the key declarations from the stylesheet \n   *\n   *\n   * @return Vector containing the key declarations from the stylesheet\n   */\n  public Vector getKeyDeclarations()\n  {\n    return m_keyDeclarations;\n  }\n\n  /**\n    * Create a KeyIterator object.\n    *\n    * @param compiler A reference to the Compiler that contains the op map.\n    * @param opPos The position within the op map, which contains the\n    * location path expression for this itterator.\n    *\n    * @throws javax.xml.transform.TransformerException\n    */\n  KeyIterator(QName name, Vector keyDeclarations)\n  {\n    super(Axis.ALL);\n    m_keyDeclarations = keyDeclarations;\n    m_name = name;\n  }\n\n  /**\n   *  Test whether a specified node is visible in the logical view of a\n   * TreeWalker or NodeIterator. This function will be called by the\n   * implementation of TreeWalker and NodeIterator; it is not intended to\n   * be called directly from user code.\n   * \n   * @param testnode  The node to check to see if it passes the filter or not.\n   *\n   * @return  a constant to determine whether the node is accepted,\n   *   rejected, or skipped, as defined  above .\n   */\n  public short acceptNode(int testNode)\n  {\n    boolean foundKey = false;\n    KeyIterator ki = (KeyIterator) m_lpi;\n    org.apache.xpath.XPathContext xctxt = ki.getXPathContext();\n    Vector keys = ki.getKeyDeclarations();\n\n    QName name = ki.getName();\n    try\n    {\n      int nDeclarations = keys.size();\n\n      for (int i = 0; i < nDeclarations; i++)\n      {\n        KeyDeclaration kd = (KeyDeclaration) keys.elementAt(i);\n\n        if (!kd.getName().equals(name))\n          continue;\n\n        foundKey = true;\n\n        XPath matchExpr = kd.getMatch();\n        double score = matchExpr.getMatchScore(xctxt, testNode);\n\n        if (score == kd.getMatch().MATCH_SCORE_NONE)\n          continue;\n\n        return DTMIterator.FILTER_ACCEPT;\n\t  }\n    }\n    catch (TransformerException se)\n    {\n\n    }\n\n    if (!foundKey)\n      throw new RuntimeException(\n        XSLMessages.createMessage(\n          XSLTErrorResources.ER_NO_XSLKEY_DECLARATION,\n          new Object[] { name.getLocalName()}));\n          \n    return DTMIterator.FILTER_REJECT;", "functions": [{"function_name": "getName", "code": "  public QName getName()\n  {\n    return m_name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getKeyDeclarations", "code": "  public Vector getKeyDeclarations()\n  {\n    return m_keyDeclarations;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "acceptNode", "code": "  public short acceptNode(int testNode)\n  {\n    boolean foundKey = false;\n    KeyIterator ki = (KeyIterator) m_lpi;\n    org.apache.xpath.XPathContext xctxt = ki.getXPathContext();\n    Vector keys = ki.getKeyDeclarations();\n\n    QName name = ki.getName();\n    try\n    {\n      int nDeclarations = keys.size();\n\n      for (int i = 0; i < nDeclarations; i++)\n      {\n        KeyDeclaration kd = (KeyDeclaration) keys.elementAt(i);\n\n        if (!kd.getName().equals(name))\n          continue;\n\n        foundKey = true;\n\n        XPath matchExpr = kd.getMatch();\n        double score = matchExpr.getMatchScore(xctxt, testNode);\n\n        if (score == kd.getMatch().MATCH_SCORE_NONE)\n          continue;\n\n        return DTMIterator.FILTER_ACCEPT;\n\t  }\n    }\n    catch (TransformerException se)\n    {\n\n    }\n\n    if (!foundKey)\n      throw new RuntimeException(\n        XSLMessages.createMessage(\n          XSLTErrorResources.ER_NO_XSLKEY_DECLARATION,\n          new Object[] { name.getLocalName()}));\n          \n    return DTMIterator.FILTER_REJECT;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "THROW_RAISE", "CATCH", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [3, 12], [3, 13], [10, 14], [12, 15], [4, 16], [5, 17], [6, 18], [8, 19], [14, 20], [12, 21], [12, 22], [12, 23], [12, 24], [12, 25], [12, 26], [13, 27], [22, 28], [22, 29], [12, 30], [25, 31], [25, 32], [12, 33], [29, 34], [23, 35], [24, 36], [30, 37], [32, 38], [20, 39], [26, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 3], [13, 3], [14, 10], [15, 12], [16, 4], [17, 5], [18, 6], [19, 8], [20, 14], [21, 12], [22, 12], [23, 12], [24, 12], [25, 12], [26, 12], [27, 13], [28, 22], [29, 22], [30, 12], [31, 25], [32, 25], [33, 12], [34, 29], [35, 23], [36, 24], [37, 30], [38, 32], [39, 20], [40, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "KeyIterator", "code": "  KeyIterator(QName name, Vector keyDeclarations)\n  {\n    super(Axis.ALL);\n    m_keyDeclarations = keyDeclarations;\n    m_name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.4-6726", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/transformer/ResultTreeHandler.java", "language": "java", "name": "org.apache.xalan.transformer.ResultTreeHandler", "code": "public class ResultTreeHandler extends QueuedEvents\n        implements ContentHandler, LexicalHandler, TransformState,\n        org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.CharacterNodeHandler,\n        ErrorHandler\n{\n\n  /** Indicate whether running in Debug mode */\n  private static final boolean DEBUG = false;\n\n  /**\n   * Null constructor for object pooling.\n   */\n  public ResultTreeHandler(){}\n\n  /**\n   * Create a new result tree handler.  The real content\n   * handler will be the ContentHandler passed as an argument.\n   *\n   * @param transformer non-null transformer instance\n   * @param realHandler Content Handler instance\n   */\n  public ResultTreeHandler(TransformerImpl transformer,\n                           ContentHandler realHandler)\n  {\n    init(transformer, realHandler);\n  }\n\n  /**\n   * Initializer method.\n   *\n   * @param transformer non-null transformer instance\n   * @param realHandler Content Handler instance\n   */\n  public void init(TransformerImpl transformer, ContentHandler realHandler)\n  {\n\n    m_transformer = transformer;\n\n    TraceManager tracer = transformer.getTraceManager();\n\n    if ((null != tracer) && tracer.hasTraceListeners())\n      m_tracer = tracer;\n    else\n      m_tracer = null;\n\n    m_contentHandler = realHandler;\n\n    if (m_contentHandler instanceof LexicalHandler)\n      m_lexicalHandler = (LexicalHandler) m_contentHandler;\n    else\n      m_lexicalHandler = null;\n\n    m_isTransformClient = (m_contentHandler instanceof TransformerClient);\n\n    m_cloner = new ClonerToResultTree(transformer, this);\n\n    if (null != m_transformer)\n      m_stylesheetRoot = m_transformer.getStylesheet();\n\n  }\n\n  /**\n   * Bottleneck the startDocument event.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void startDocument() throws org.xml.sax.SAXException{}\n\n  /**\n   * Bottleneck the endDocument event.  This may be called\n   * more than once in order to make sure the pending start\n   * document is called.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void endDocument() throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (!m_docEnded)\n    {\n      m_contentHandler.endDocument();\n\n      if (null != m_tracer)\n      {\n        GenerateEvent ge =\n          new GenerateEvent(m_transformer,\n                            GenerateEvent.EVENTTYPE_ENDDOCUMENT, null);\n\n        m_tracer.fireGenerateEvent(ge);\n      }\n\n      m_docEnded = true;\n      m_docPending = false;\n    }\n  }\n\n  /**\n   * Bottleneck the startElement event.  This is used to \"pend\" an\n   * element, so that attributes can still be added to it before\n   * the real \"startElement\" is called on the result tree listener.\n   *\n   * @param ns Namespace URI of element\n   * @param localName Local part of qname of element\n   * @param name Name of element\n   * @param atts List of attributes for the element\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void startElement(\n          String ns, String localName, String name, Attributes atts)\n            throws org.xml.sax.SAXException\n  {\n\n    if (DEBUG)\n    {\n      if (m_elemIsPending)\n        System.out.println(\"(ResultTreeHandler#startElement - pended: \"\n                           + m_url + \"#\" + m_localName);\n\n      System.out.println(\"ResultTreeHandler#startElement: \" + ns + \"#\"\n                         + localName);\n\n    }\n\n    if(m_docPending)\n      checkForSerializerSwitch(ns, localName);\n      \n    flushPending(true);\n\n    if (!m_nsContextPushed)\n    {\n      if (DEBUG)\n        System.out.println(\n          \"ResultTreeHandler#startElement - push(startElement)\");\n\n      m_nsSupport.pushContext();\n\n      m_nsContextPushed = true;\n    }\n    \n    if (ns != null)\n      ensurePrefixIsDeclared(ns, name);\n\n    m_name = name;\n    m_url = ns;\n    m_localName = localName;\n\n    if (null != atts)\n      m_attributes.addAttributes(atts);\n\n    m_elemIsPending = true;\n    m_elemIsEnded = false;\n    \n    if(m_isTransformClient && (null != m_transformer))\n    {\n      m_snapshot.m_currentElement = m_transformer.getCurrentElement();\n      m_snapshot.m_currentTemplate = m_transformer.getCurrentTemplate();\n      m_snapshot.m_matchedTemplate = m_transformer.getMatchedTemplate();\n      int currentNodeHandle = m_transformer.getCurrentNode();\n      DTM dtm = m_transformer.getXPathContext().getDTM(currentNodeHandle);\n      m_snapshot.m_currentNode = dtm.getNode(currentNodeHandle);\n      m_snapshot.m_matchedNode = m_transformer.getMatchedNode();\n    }\n\n    m_eventCount++;\n  }\n\n  /**\n   * Bottleneck the endElement event.\n   *\n   * @param ns Namespace URI of element\n   * @param localName Local part of qname of element\n   * @param name Name of element\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void endElement(String ns, String localName, String name)\n          throws org.xml.sax.SAXException\n  {\n\n    if (DEBUG)\n    {\n      if (m_elemIsPending)\n        System.out.println(\"(ResultTreeHandler#endElement - pended: \"\n                           + m_url + \"#\" + m_localName);\n\n      System.out.println(\"ResultTreeHandler#endElement: \" + ns + \"#\"\n                         + localName);\n    }\n\n    flushPending(true);\n    m_contentHandler.endElement(ns, localName, name);\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_ENDELEMENT,\n                                           name, (Attributes)null);\n\n      m_tracer.fireGenerateEvent(ge);\n    }\n\n    sendEndPrefixMappings();\n    popEvent();\n\n    if (DEBUG)\n      System.out.println(\"ResultTreeHandler#startElement pop: \" + localName);\n\n    m_nsSupport.popContext();\n  }\n\n  /** Indicate whether a namespace context was pushed */\n  boolean m_nsContextPushed = false;\n\n  /**\n   * Begin the scope of a prefix-URI Namespace mapping.\n   *\n   * <p>The information from this event is not necessary for\n   * normal Namespace processing: the SAX XML reader will\n   * automatically replace prefixes for element and attribute\n   * feature is true (the default).</p>\n   *\n   * <p>There are cases, however, when applications need to\n   * use prefixes in character data or in attribute values,\n   * where they cannot safely be expanded automatically; the\n   * start/endPrefixMapping event supplies the information\n   * to the application to expand prefixes in those contexts\n   * itself, if necessary.</p>\n   *\n   * <p>Note that start/endPrefixMapping events are not\n   * guaranteed to be properly nested relative to each-other:\n   * all startPrefixMapping events will occur before the\n   * corresponding startElement event, and all endPrefixMapping\n   * events will occur after the corresponding endElement event,\n   * but their order is not guaranteed.</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @param uri The Namespace URI the prefix is mapped to.\n   * @throws org.xml.sax.SAXException The client may throw\n   *            an exception during processing.\n   * @see #endPrefixMapping\n   * @see #startElement\n   */\n  public void startPrefixMapping(String prefix, String uri)\n          throws org.xml.sax.SAXException\n  {\n    startPrefixMapping(prefix, uri, true);\n  }\n\n  /**\n   * Begin the scope of a prefix-URI Namespace mapping.\n   *\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @param uri The Namespace URI the prefix is mapped to.\n   * @param shouldFlush Indicate whether pending events needs\n   * to be flushed first\n   *\n   * @throws org.xml.sax.SAXException The client may throw\n   *            an exception during processing.\n   */\n  public void startPrefixMapping(\n          String prefix, String uri, boolean shouldFlush)\n            throws org.xml.sax.SAXException\n  {\n\n    if (shouldFlush)\n      flushPending(false);\n\n    if (!m_nsContextPushed)\n    {\n      if (DEBUG)\n        System.out.println(\n          \"ResultTreeHandler#startPrefixMapping push(startPrefixMapping: \"\n          + prefix + \")\");\n\n      m_nsSupport.pushContext();\n\n      m_nsContextPushed = true;\n    }\n\n    if (null == prefix){\n\n    String existingURI = m_nsSupport.getURI(prefix);\n\t}\n    if (null == existingURI)\n      existingURI = \"\";\n\n    if (null == uri)\n      uri = \"\";\n\n    if (!existingURI.equals(uri))\n    {\n      if (DEBUG)\n      {\n        System.out.println(\"ResultTreeHandler#startPrefixMapping Prefix: \"\n                           + prefix);\n        System.out.println(\"ResultTreeHandler#startPrefixMapping uri: \"\n                           + uri);\n      }\n\n      m_nsSupport.declarePrefix(prefix, uri);\n    }\n  }\n\n  /**\n   * End the scope of a prefix-URI mapping.\n   *\n   * <p>See startPrefixMapping for details.  This event will\n   * always occur after the corresponding endElement event,\n   * but the order of endPrefixMapping events is not otherwise\n   * guaranteed.</p>\n   *\n   * @param prefix The prefix that was being mapping.\n   * @throws org.xml.sax.SAXException The client may throw\n   *            an exception during processing.\n   * @see #startPrefixMapping\n   * @see #endElement\n   */\n  public void endPrefixMapping(String prefix)\n          throws org.xml.sax.SAXException{}\n\n  /**\n   * Bottleneck the characters event.\n   *\n   * @param ch Array of characters to process\n   * @param start start of characters in the array\n   * @param length Number of characters in the array\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void characters(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n\n    /*if (m_startDoc.isPending\n    && XMLCharacterRecognizer.isWhiteSpace(ch, start, length))\n    return;*/\n    if (DEBUG)\n    {\n      System.out.print(\"ResultTreeHandler#characters: \");\n\n      int n = start + length;\n\n      for (int i = start; i < n; i++)\n      {\n        if (Character.isWhitespace(ch[i]))\n          System.out.print(\"\\\\\" + ((int) ch[i]));\n        else\n          System.out.print(ch[i]);\n      }\n\n      System.out.println(\"\");\n    }\n\n    flushPending(true);\n    m_contentHandler.characters(ch, start, length);\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_CHARACTERS,\n                                           ch, start, length);\n\n      m_tracer.fireGenerateEvent(ge);\n    }\n  }\n  \n  public void characters(org.w3c.dom.Node node)\n          throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n    \n    if(m_isTransformClient)\n      m_snapshot.m_currentNode = node;\n\n    String data = node.getNodeValue();\n    char [] ch = null;\n    int length = 0;\n    if (data != null)\n    {\n    ch = data.toCharArray();\n    length = data.length();\n    m_contentHandler.characters(ch, 0, length);\n    }\n    \n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_CHARACTERS,\n                                           ch, 0, length);\n\n      m_tracer.fireGenerateEvent(ge);\n    }  \n    if(m_isTransformClient)\n      m_snapshot.m_currentNode = null;\n  }\n\n  /**\n   * Bottleneck the ignorableWhitespace event.\n   *\n   * @param ch Array of characters to process\n   * @param start start of characters in the array\n   * @param length Number of characters in the array\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void ignorableWhitespace(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (m_docPending\n            && XMLCharacterRecognizer.isWhiteSpace(ch, start, length))\n      return;\n\n    flushPending(true);\n    m_contentHandler.ignorableWhitespace(ch, start, length);\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge =\n        new GenerateEvent(m_transformer,\n                          GenerateEvent.EVENTTYPE_IGNORABLEWHITESPACE, ch,\n                          start, length);\n\n      m_tracer.fireGenerateEvent(ge);\n    }\n  }\n\n  /**\n   * Bottleneck the processingInstruction event.\n   *\n   * @param target Processing instruction target name\n   * @param data Processing instruction data\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void processingInstruction(String target, String data)\n          throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n    m_contentHandler.processingInstruction(target, data);\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_PI,\n                                           target, data);\n\n      m_tracer.fireGenerateEvent(ge);\n    }\n  }\n\n  /**\n   * Bottleneck the comment event.\n   *\n   * @param data Comment data\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void comment(String data) throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.comment(data.toCharArray(), 0, data.length());\n    }\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_COMMENT,\n                                           data);\n\n      m_tracer.fireGenerateEvent(ge);\n    }\n  }\n\n  /**\n   * Bottleneck the comment event.\n   *\n   * @param ch Character array with comment data\n   * @param start start of characters in the array\n   * @param length number of characters in the array\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void comment(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.comment(ch, start, length);\n    }\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_COMMENT,\n                                           new String(ch, start, length));\n\n      m_tracer.fireGenerateEvent(ge);\n    }\n  }\n\n  /**\n   * Entity reference event.\n   *\n   * @param name Name of entity\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void entityReference(String name) throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startEntity(name);\n      m_lexicalHandler.endEntity(name);\n    }\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_ENTITYREF,\n                                           name);\n\n      m_tracer.fireGenerateEvent(ge);\n    }\n  }\n\n  /**\n   * Start an entity.\n   *\n   * @param name Name of the entity\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void startEntity(String name) throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startEntity(name);\n    }\n  }\n\n  /**\n   * End an entity.\n   *\n   * @param name Name of the entity\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void endEntity(String name) throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endEntity(name);\n    }\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_ENTITYREF,\n                                           name);\n\n      m_tracer.fireGenerateEvent(ge);\n    }\n  }\n\n  /**\n   * Start the DTD.\n   *\n   * @param s1 The document type name.\n   * @param s2 The declared public identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @param s3 The declared system identifier for the\n   *        external DTD subset, or null if none was declared.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void startDTD(String s1, String s2, String s3)\n          throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startDTD(s1, s2, s3);\n    }\n  }\n\n  /**\n   * End the DTD.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void endDTD() throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endDTD();\n    }\n  }\n\n  /**\n   * Start the CDATACharacters.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void startCDATA() throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startCDATA();\n    }\n  }\n\n  /**\n   * End the CDATA characters.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void endCDATA() throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endCDATA();\n    }\n  }\n\n  /**\n   * Receive notification of a skipped entity.\n   *\n   * <p>The Parser will invoke this method once for each entity\n   * skipped.  Non-validating processors may skip entities if they\n   * have not seen the declarations (because, for example, the\n   * entity was declared in an external DTD subset).  All processors\n   * may skip external entities, depending on the values of the\n   * properties.</p>\n   *\n   * @param name The name of the skipped entity.  If it is a\n   *        parameter entity, the name will begin with '%'.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void skippedEntity(String name) throws org.xml.sax.SAXException{}\n\n  /**\n   * Set whether Namespace declarations have been added to\n   * this element\n   *\n   *\n   * @param b Flag indicating whether Namespace declarations\n   * have been added to this element\n   */\n  public void setNSDeclsHaveBeenAdded(boolean b)\n  {\n\n    m_nsDeclsHaveBeenAdded = b;\n  }\n\n  /**\n   * Flush the event.\n   *\n   * @throws TransformerException\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  void flushDocEvent() throws org.xml.sax.SAXException\n  {\n\n    if (m_docPending)\n    {\n      m_contentHandler.startDocument();\n\n      if (null != m_tracer)\n      {\n        GenerateEvent ge =\n          new GenerateEvent(m_transformer,\n                            GenerateEvent.EVENTTYPE_STARTDOCUMENT);\n\n        m_tracer.fireGenerateEvent(ge);\n      }\n\n      if (m_contentHandler instanceof TransformerClient)\n      {\n        ((TransformerClient) m_contentHandler).setTransformState(this);\n      }\n\n      m_docPending = false;\n    }\n  }\n  \n  /**\n   * Flush the event.\n   *\n   * @throws SAXException\n   */\n  void flushElem() throws org.xml.sax.SAXException\n  {\n\n    if (m_elemIsPending)\n    {\n      if (null != m_name)\n      {\n        try\n        {\n          m_contentHandler.startElement(m_url, m_localName, m_name,\n                                      m_attributes);\n        }\n        catch(Exception re)\n        {\n          throw new SAXParseException(re.getMessage(), \n          m_transformer.getCurrentElement().getPublicId(), \n          m_transformer.getCurrentElement().getSystemId(), \n          m_transformer.getCurrentElement().getLineNumber(), \n          m_transformer.getCurrentElement().getColumnNumber(), \n          re);\n        }\n        \n        if(null != m_tracer)\n        {\n          GenerateEvent ge =\n            new GenerateEvent(m_transformer,\n                              GenerateEvent.EVENTTYPE_STARTELEMENT, m_name,\n                                      m_attributes);\n  \n          m_tracer.fireGenerateEvent(ge);\n        }\n        if(m_isTransformClient)\n          m_snapshot.m_currentNode = null;\n      }\n\n      m_elemIsPending = false;\n      m_attributes.clear();\n  \n      m_nsDeclsHaveBeenAdded = false;\n      m_name = null;\n      m_url = null;\n      m_localName = null;\n      m_namespaces = null;\n\n    }\n  }\n\n\n  /**\n   * Flush the pending element.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public final void flushPending() throws org.xml.sax.SAXException\n  {\n    flushPending(true);\n  }\n\n  /**\n   * Flush the pending element, and any attributes associated with it.\n   *\n   * NOTE: If there are attributes but _no_ pending element (which can\n   * happen if the user's stylesheet is doing something inappropriate),\n   * we still want to make sure they are flushed.\n   *\n   * @param type Event type\n   *\n   * NEEDSDOC @param flushPrefixes\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public final void flushPending(boolean flushPrefixes)\n          throws org.xml.sax.SAXException\n  {\n\n    if (flushPrefixes && m_docPending)\n    {\n      flushDocEvent();\n    }\n\n    if (m_elemIsPending)\n    {\n      if (!m_nsDeclsHaveBeenAdded)\n          sendStartPrefixMappings();\n\n\n      if (DEBUG)\n      {\n        System.out.println(\"ResultTreeHandler#flushPending - start flush: \"\n                           + m_name);\n      }\n\n      flushElem();\n\n      if (DEBUG)\n      {\n        System.out.println(\n          \"ResultTreeHandler#flushPending - after flush, isPending: \"\n          + m_elemIsPending);\n      }\n\n      m_nsContextPushed = false;\n    }\n  }\n\n  /**\n   * Given a result tree fragment, walk the tree and\n   * output it to the result stream.\n   *\n   * @param obj Result tree fragment object\n   * @param support XPath context for the result tree fragment\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void outputResultTreeFragment(XObject obj, XPathContext support)\n          throws org.xml.sax.SAXException\n  {\n\n    int doc = obj.rtf();\n    DTM dtm = support.getDTM(doc);\n\n    if(null != dtm)\n    {\n\t    for (int n = dtm.getFirstChild(doc); DTM.NULL != n;\n\t            n = dtm.getNextSibling(n))\n\t    {\n\t      dtm.dispatchToEvents(n, this);\n\t    }\n    }\n  }\n\n  /**\n   * To fullfill the FormatterListener interface... no action\n   * for the moment.\n   *\n   * @param locator Document locator\n   */\n  public void setDocumentLocator(Locator locator){}\n\n  /**\n   * This function checks to make sure a given prefix is really\n   * declared.  It might not be, because it may be an excluded prefix.\n   * If it's not, it still needs to be declared at this point.\n   * TODO: This needs to be done at an earlier stage in the game... -sb\n   *\n   * @param ns Namespace URI of the element\n   * @param rawName Raw name of element (with prefix)\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void ensurePrefixIsDeclared(String ns, String rawName)\n          throws org.xml.sax.SAXException\n  {\n\n    if (ns != null && ns.length() > 0)\n    {\n      int index;\n      String prefix = (index = rawName.indexOf(\":\")) < 0\n                      ? \"\" : rawName.substring(0, index);\n\n      if (null != prefix)\n      {\n        String foundURI = m_nsSupport.getURI(prefix);\n\n        if ((null == foundURI) ||!foundURI.equals(ns))\n        {\n          startPrefixMapping(prefix, ns, false);\n                                        \n        }\n      }\n    }\n  }\n\n  /**\n   * This function checks to make sure a given prefix is really\n   * declared.  It might not be, because it may be an excluded prefix.\n   * If it's not, it still needs to be declared at this point.\n   * TODO: This needs to be done at an earlier stage in the game... -sb\n   *\n   * @param ns Namespace URI of the element\n   * @param rawName Raw name of element (with prefix)\n   *\n   * NEEDSDOC @param dtm\n   * NEEDSDOC @param namespace\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void ensureNamespaceDeclDeclared(DTM dtm, int namespace)\n          throws org.xml.sax.SAXException\n  {\n\n    String uri = dtm.getNodeValue(namespace);\n    String prefix = dtm.getNodeNameX(namespace);\n\n    if ((uri != null && uri.length() > 0) && (null != prefix))\n    {\n      String foundURI = m_nsSupport.getURI(prefix);\n\n      if ((null == foundURI) ||!foundURI.equals(uri))\n      {\n        startPrefixMapping(prefix, uri, false);\n      }\n    }\n  }\n\n  /**\n   * Add the attributes that have been declared to the attribute list.\n   * (Seems like I shouldn't have to do this...)\n   * Internally deprecated in favor of combined startAndAddPrefixMappings();\n   * \n   *\n   * @throws org.xml.sax.SAXException\n   */\n  protected void sendStartPrefixMappings() throws org.xml.sax.SAXException\n  {\n    Enumeration prefixes = m_nsSupport.getDeclaredPrefixes();\n    ContentHandler handler = m_contentHandler;\n    while (prefixes.hasMoreElements())\n    {\n      String prefix = (String) prefixes.nextElement();\n      handler.startPrefixMapping(prefix, m_nsSupport.getURI(prefix));\n    }\n  }\n\n  /**\n   * Combination of sendStartPrefixMappings and\n   * addNSDeclsToAttrs() (which it mostly replaces).  Merging the two\n   * loops is significantly more efficient.\n   *\n   * @throws org.xml.sax.SAXException */\n  protected void startAndAddPrefixMappings() throws org.xml.sax.SAXException\n  {\n\n    Enumeration prefixes = m_nsSupport.getDeclaredPrefixes();\n    ContentHandler handler = m_contentHandler;\n\n    while (prefixes.hasMoreElements())\n    {\n      String prefix = (String) prefixes.nextElement();\n      String uri=m_nsSupport.getURI(prefix);\n      \n      handler.startPrefixMapping(prefix, uri);\n\n      boolean isDefault = (prefix.length() == 0);\n      String name;\n\n      if (isDefault)\n      {\n        name = \"xmlns\";\n      }\n      else\n        name = \"xmlns:\" + prefix;\n\n      if (null == uri)\n        uri = \"\";\n    }\n    m_nsDeclsHaveBeenAdded=true;\n  }\n\n  /**\n   * Add the attributes that have been declared to the attribute list.\n   * (Seems like I shouldn't have to do this...)\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  protected void sendEndPrefixMappings() throws org.xml.sax.SAXException\n  {\n\n    Enumeration prefixes = m_nsSupport.getDeclaredPrefixes();\n    ContentHandler handler = m_contentHandler;\n\n    while (prefixes.hasMoreElements())\n    {\n      String prefix = (String) prefixes.nextElement();\n\n      handler.endPrefixMapping(prefix);\n    }\n  }\n\n  /**\n   * Check to see if we should switch serializers based on the\n   * first output element being an HTML element.\n   *\n   * @param ns Namespace URI of the element\n   * @param localName Local part of name of the element\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  private void checkForSerializerSwitch(String ns, String localName)\n          throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      if (m_docPending)\n      {\n        SerializerSwitcher.switchSerializerIfHTML(m_transformer, ns,\n                                                  localName);\n      }\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * Add the attributes that have been declared to the attribute list.\n   *\n   * %REVIEW% This should have been done automatically during\n   * flushPending(boolean); is it ever explicitly reinvoked?\n   */\n  public void addNSDeclsToAttrs()\n  {\n\n    Enumeration prefixes = m_nsSupport.getDeclaredPrefixes();\n\n    while (prefixes.hasMoreElements())\n    {\n      String prefix = (String) prefixes.nextElement();\n      boolean isDefault = (prefix.length() == 0);\n      String name;\n\n      if (isDefault)\n      {\n\n        name = \"xmlns\";\n      }\n      else\n        name = \"xmlns:\" + prefix;\n\n      String uri = m_nsSupport.getURI(prefix);\n\n      if (null == uri)\n        uri = \"\";\n      \n      m_nsDeclsHaveBeenAdded = true;        \n    }\n\n  }\n\n  /**\n   * Copy <KBD>xmlns:</KBD> attributes in if not already in scope.\n   * \n   * As a quick hack to support ClonerToResultTree, this can also be used\n   * to copy an individual namespace node.\n   *\n   * @param src Source Node\n   * NEEDSDOC @param type\n   * NEEDSDOC @param dtm\n   *\n   * @throws TransformerException\n   */\n  public void processNSDecls(int src, int type, DTM dtm)\n          throws TransformerException\n  {\n\n    try\n    {\n      if (type == DTM.ELEMENT_NODE)\n      {\n        for (int namespace = dtm.getFirstNamespaceNode(src, true);\n                DTM.NULL != namespace;\n                namespace = dtm.getNextNamespaceNode(src, namespace, true))\n        {\n\n          String prefix = dtm.getNodeNameX(namespace);\n          String desturi = getURI(prefix);\n          String srcURI = dtm.getNodeValue(namespace);\n\n          if (!srcURI.equalsIgnoreCase(desturi))\n          {\n            this.startPrefixMapping(prefix, srcURI, false);\n          }\n        }\n      }\n      else if (type == DTM.NAMESPACE_NODE)\n\t\t\t{\n          String prefix = dtm.getNodeNameX(src);\n          String desturi = getURI(prefix);\n          String srcURI = dtm.getNodeValue(src);\n\n          if (!srcURI.equalsIgnoreCase(desturi))\n          {\n            this.startPrefixMapping(prefix, srcURI, false);\n          }\n\t\t\t}\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n  }\n\n  /**\n   * Given a prefix, return the namespace,\n   *\n   * @param prefix Given prefix name\n   *\n   * @return Namespace associated with the given prefix, or null\n   */\n  public String getURI(String prefix)\n  {\n    return m_nsSupport.getURI(prefix);\n  }\n\n  /**\n   * Given a namespace, try and find a prefix.\n   *\n   * @param namespace Given namespace URI\n   *\n   * @return Prefix name associated with namespace URI\n   */\n  public String getPrefix(String namespace)\n  {\n\n    Enumeration enum1 = m_nsSupport.getPrefixes();\n\n    while (enum1.hasMoreElements())\n    {\n      String prefix = (String) enum1.nextElement();\n\n      if (m_nsSupport.getURI(prefix).equals(namespace))\n        return prefix;\n    }\n\n    return null;\n  }\n\n  /**\n   * Get the NamespaceSupport object.\n   *\n   * @return NamespaceSupport object.\n   */\n  public NamespaceSupport getNamespaceSupport()\n  {\n    return m_nsSupport;\n  }\n\n\n  /**\n   * Return the current content handler.\n   *\n   * @return The current content handler, or null if none\n   *         has been registered.\n   * @see #setContentHandler\n   */\n  public final ContentHandler getContentHandler()\n  {\n    return m_contentHandler;\n  }\n\n  /**\n   * Set the current content handler.\n   *\n   *\n   * @param ch Content Handler to be set\n   * @return The current content handler, or null if none\n   *         has been registered.\n   * @see #getContentHandler\n   */\n  public void setContentHandler(ContentHandler ch)\n  {\n\n    m_contentHandler = ch;\n\n    m_isTransformClient = (m_contentHandler instanceof TransformerClient);\n\n    if (m_contentHandler instanceof LexicalHandler)\n      m_lexicalHandler = (LexicalHandler) m_contentHandler;\n    else\n      m_lexicalHandler = null;\n\n    reInitEvents();\n  }\n\n  /**\n   * Get a unique namespace value.\n   *\n   * @return a unique namespace value to be used with a\n   * fabricated prefix\n   */\n  public int getUniqueNSValue()\n  {\n    return m_uniqueNSValue++;\n  }\n\n  /**\n   * Get new unique namespace prefix.\n   *\n   * @return Unique fabricated prefix.\n   */\n  public String getNewUniqueNSPrefix()\n  {\n    return S_NAMESPACEPREFIX + String.valueOf(getUniqueNSValue());\n  }\n\n  /**\n   * Get the pending attributes.  We have to delay the call to\n   * m_flistener.startElement(name, atts) because of the\n   * xsl:attribute and xsl:copy calls.  In other words,\n   * the attributes have to be fully collected before you\n   * can call startElement.\n   *\n   * @return the pending attributes.\n   */\n  public MutableAttrListImpl getPendingAttributes()\n  {\n    return m_attributes;\n  }\n\n  /**\n   * Add an attribute to the end of the list.\n   *\n   * <p>Do not pass in xmlns decls to this function!\n   *\n   * <p>For the sake of speed, this method does no checking\n   * to see if the attribute is already in the list: that is\n   * the responsibility of the application.</p>\n   *\n   * @param uri The Namespace URI, or the empty string if\n   *        none is available or Namespace processing is not\n   *        being performed.\n   * @param localName The local name, or the empty string if\n   *        Namespace processing is not being performed.\n   * @param rawName The raw XML 1.0 name, or the empty string\n   *        if raw names are not available.\n   * @param type The attribute type as a string.\n   * @param value The attribute value.\n   *\n   * @throws TransformerException\n   */\n  public void addAttribute(\n          String uri, String localName, String rawName, String type, String value)\n            throws TransformerException\n  {\n    if (m_elemIsPending)\n    {\n\taddNSDeclsToAttrs();\n\n\turi = \"\";\n\n      try\n      {\n\t  ensurePrefixIsDeclared(uri, rawName);\n      }\n      catch (org.xml.sax.SAXException se)\n      {\n\tthrow new TransformerException(se);\n      }\n      \n      if (DEBUG)\n\tSystem.out.println(\"ResultTreeHandler#addAttribute Adding attr: \"\n\t\t\t   + localName + \", \" + uri);\n\n      if (!isDefinedNSDecl(rawName, value))\n\tm_attributes.addAttribute(uri, localName, rawName, type, value);\n    }\n  }\n\n  /**\n   * Return whether or not a namespace declaration is defined\n   *\n   *\n   * @param rawName Raw name of namespace element\n   * @param value URI of given namespace\n   *\n   * @return True if the namespace is already defined in list of\n   * namespaces\n   */\n  public boolean isDefinedNSDecl(String rawName, String value)\n  {\n\n    if (rawName.equals(\"xmlns\") || rawName.startsWith(\"xmlns:\"))\n    {\n      int index;\n      String prefix = (index = rawName.indexOf(\":\")) < 0\n                      ? \"\" : rawName.substring(0, index);\n      String definedURI = m_nsSupport.getURI(prefix);\n\n      if (null != definedURI)\n      {\n        if (definedURI.equals(value))\n        {\n          return true;\n        }\n        else\n          return false;\n      }\n      else\n        return false;\n    }\n    else\n      return false;\n  }\n\n  /**\n   * Returns whether a namespace is defined\n   *\n   *\n   * @param attr Namespace attribute node\n   *\n   * @return True if the namespace is already defined in\n   * list of namespaces\n   */\n  public boolean isDefinedNSDecl(int attr)\n  {\n\n    DTM dtm = m_transformer.getXPathContext().getDTM(attr);\n\n    if (DTM.NAMESPACE_NODE == dtm.getNodeType(attr))\n    {\n\n      String prefix = dtm.getNodeNameX(attr);\n      String uri = getURI(prefix);\n\n      if ((null != uri) && uri.equals(dtm.getStringValue(attr)))\n        return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Returns whether a namespace is defined\n   *\n   *\n   * @param attr Namespace attribute node\n   * @param dtm The DTM that owns attr.\n   *\n   * @return True if the namespace is already defined in\n   * list of namespaces\n   */\n  public boolean isDefinedNSDecl(int attr, DTM dtm)\n  {\n\n    if (DTM.NAMESPACE_NODE == dtm.getNodeType(attr))\n    {\n\n      String prefix = dtm.getNodeNameX(attr);\n      String uri = getURI(prefix);\n\n      if ((null != uri) && uri.equals(dtm.getStringValue(attr)))\n        return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Copy an DOM attribute to the created output element, executing\n   * attribute templates as need be, and processing the xsl:use\n   * attribute.\n   *\n   * @param attr Attribute node to add to result tree\n   *\n   * @throws TransformerException\n   */\n  public void addAttribute(int attr) throws TransformerException\n  {\n\n    DTM dtm = m_transformer.getXPathContext().getDTM(attr);\n\n    if (isDefinedNSDecl(attr, dtm))\n      return;\n\n    String ns = dtm.getNamespaceURI(attr);\n\n    if (ns == null)\n      ns = \"\";\n\n    addAttribute(ns, dtm.getLocalName(attr), dtm.getNodeName(attr), \"CDATA\",\n                 dtm.getNodeValue(attr));\n  }\n  /**\n   * Copy DOM attributes to the result element.\n   *\n   * @param src Source node with the attributes\n   *\n   * @throws TransformerException\n   */\n  public void addAttributes(int src) throws TransformerException\n  {\n\n    DTM dtm = m_transformer.getXPathContext().getDTM(src);\n\n    for (int node = dtm.getFirstAttribute(src); DTM.NULL != node;\n            node = dtm.getNextAttribute(node))\n    {\n      addAttribute(node);\n    }\n  }\n\n  /**\n   * Tell if an element is pending, to be output to the result tree.\n   *\n   * @return True if an element is pending\n   */\n  public final boolean isElementPending()\n  {\n    \n    return m_elemIsPending;\n  }\n\n  /**\n   * Retrieves the stylesheet element that produced\n   * the SAX event.\n   *\n   * <p>Please note that the ElemTemplateElement returned may\n   * be in a default template, and thus may not be\n   * defined in the stylesheet.</p>\n   *\n   * @return the stylesheet element that produced the SAX event.\n   */\n  public ElemTemplateElement getCurrentElement()\n  {\n\n    if (m_elemIsPending)\n      return m_snapshot.m_currentElement;\n    else\n      return m_transformer.getCurrentElement();\n  }\n\n  /**\n   * This method retrieves the current context node\n   * in the source tree.\n   *\n   * @return the current context node in the source tree.\n   */\n  public org.w3c.dom.Node getCurrentNode()\n  {\n    \n    if (m_snapshot.m_currentNode != null)\n    {\n      return m_snapshot.m_currentNode;\n    }\n    else\n    {\n      DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getCurrentNode());\n      return dtm.getNode(m_transformer.getCurrentNode());\n    }\n  }\n\n  /**\n   * This method retrieves the xsl:template\n   * that is in effect, which may be a matched template\n   * or a named template.\n   *\n   * <p>Please note that the ElemTemplate returned may\n   * be a default template, and thus may not have a template\n   * defined in the stylesheet.</p>\n   *\n   * @return the xsl:template that is in effect\n   */\n  public ElemTemplate getCurrentTemplate()\n  {\n\n    if (m_elemIsPending)\n      return m_snapshot.m_currentTemplate;\n    else\n      return m_transformer.getCurrentTemplate();\n  }\n\n  /**\n   * This method retrieves the xsl:template\n   * that was matched.  Note that this may not be\n   * the same thing as the current template (which\n   * may be from getCurrentElement()), since a named\n   * template may be in effect.\n   *\n   * <p>Please note that the ElemTemplate returned may\n   * be a default template, and thus may not have a template\n   * defined in the stylesheet.</p>\n   *\n   * @return the xsl:template that was matched.\n   */\n  public ElemTemplate getMatchedTemplate()\n  {\n\n    if (m_elemIsPending)\n      return m_snapshot.m_matchedTemplate;\n    else\n      return m_transformer.getMatchedTemplate();\n  }\n\n  /**\n   * Retrieves the node in the source tree that matched\n   * the template obtained via getMatchedTemplate().\n   *\n   * @return the node in the source tree that matched\n   * the template obtained via getMatchedTemplate().\n   */\n  public org.w3c.dom.Node getMatchedNode()\n  {\n\n    if (m_elemIsPending)\n    {\n      DTM dtm = m_transformer.getXPathContext().getDTM(m_snapshot.m_matchedNode);\n      return dtm.getNode(m_snapshot.m_matchedNode);\n    }\n    else\n    {\n      DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getMatchedNode());\n      return dtm.getNode(m_transformer.getMatchedNode());\n    }\n  }\n\n  /**\n   * Get the current context node list.\n   *\n   * @return the current context node list.\n   */\n  public org.w3c.dom.traversal.NodeIterator getContextNodeList()\n  {\n\n    if (m_elemIsPending)\n    {\n      return new org.apache.xml.dtm.ref.DTMNodeIterator(m_snapshot.m_contextNodeList);\n    }\n    else\n      return new org.apache.xml.dtm.ref.DTMNodeIterator(m_transformer.getContextNodeList());\n  }\n\n  /**\n   * Get the TrAX Transformer object in effect.\n   *\n   * @return the TrAX Transformer object in effect.\n   */\n  public Transformer getTransformer()\n  {\n    return m_transformer;\n  }\n  \n  \n  \n  /**\n    * Receive notification of a warning.\n    *\n    * <p>SAX parsers will use this method to report conditions that\n    * are not errors or fatal errors as defined by the XML 1.0\n    * recommendation.  The default behaviour is to take no action.</p>\n    *\n    * <p>The SAX parser must continue to provide normal parsing events\n    * after invoking this method: it should still be possible for the\n    * application to process the document through to the end.</p>\n    *\n    * <p>Filters may use this method to report other, non-XML warnings\n    * as well.</p>\n    *\n    * @param exception The warning information encapsulated in a\n    *                  SAX parse exception.\n    * @exception org.xml.sax.SAXException Any SAX exception, possibly\n    *            wrapping another exception.\n    * @see org.xml.sax.SAXParseException \n    */\n  public void warning (SAXParseException exception)\n    throws SAXException\n  {\n    if (m_contentHandler instanceof ErrorHandler)\n      ((ErrorHandler)m_contentHandler).warning(exception);\n  }\n    \n    \n   /**\n    * Receive notification of a recoverable error.\n    *\n    * <p>This corresponds to the definition of \"error\" in section 1.2\n    * of the W3C XML 1.0 Recommendation.  For example, a validating\n    * parser would use this callback to report the violation of a\n    * validity constraint.  The default behaviour is to take no\n    * action.</p>\n    *\n    * <p>The SAX parser must continue to provide normal parsing events\n    * after invoking this method: it should still be possible for the\n    * application to process the document through to the end.  If the\n    * application cannot do so, then the parser should report a fatal\n    * error even if the XML 1.0 recommendation does not require it to\n    * do so.</p>\n    *\n    * <p>Filters may use this method to report other, non-XML errors\n    * as well.</p>\n    *\n    * @param exception The error information encapsulated in a\n    *                  SAX parse exception.\n    * @exception org.xml.sax.SAXException Any SAX exception, possibly\n    *            wrapping another exception.\n    * @see org.xml.sax.SAXParseException \n    */\n  public void error (SAXParseException exception)\n    throws SAXException\n  {\n    if (m_contentHandler instanceof ErrorHandler)\n      ((ErrorHandler)m_contentHandler).error(exception);\n  }\n    \n    \n   /**\n    * Receive notification of a non-recoverable error.\n    *\n    * <p>This corresponds to the definition of \"fatal error\" in\n    * section 1.2 of the W3C XML 1.0 Recommendation.  For example, a\n    * parser would use this callback to report the violation of a\n    * well-formedness constraint.</p>\n    *\n    * <p>The application must assume that the document is unusable\n    * after the parser has invoked this method, and should continue\n    * (if at all) only for the sake of collecting addition error\n    * messages: in fact, SAX parsers are free to stop reporting any\n    * other events once this method has been invoked.</p>\n    *\n    * @param exception The error information encapsulated in a\n    *                  SAX parse exception.  \n    * @exception org.xml.sax.SAXException Any SAX exception, possibly\n    *            wrapping another exception.\n    * @see org.xml.sax.SAXParseException\n    */\n  public void fatalError (SAXParseException exception)\n    throws SAXException\n  {      \n    m_elemIsPending = false;\n    m_docEnded = true;\n    m_docPending = false;\n    \n    if (m_contentHandler instanceof ErrorHandler)\n      ((ErrorHandler)m_contentHandler).fatalError(exception);\n  }\n  \n  boolean m_isTransformClient = false;\n\n  /**\n   * Use the SAX2 helper class to track result namespaces.\n   */\n  NamespaceSupport m_nsSupport = new NamespaceSupport2();\n\n  /**\n   * The transformer object.\n   */\n  private TransformerImpl m_transformer;\n\n  /**\n   * The content handler.  May be null, in which\n   * case, we'll defer to the content handler in the\n   * transformer.\n   */\n  private ContentHandler m_contentHandler;\n\n  /** The LexicalHandler */\n  private LexicalHandler m_lexicalHandler;\n\n  /**\n   * The root of a linked set of stylesheets.\n   */\n  private StylesheetRoot m_stylesheetRoot = null;\n\n  /**\n   * This is used whenever a unique namespace is needed.\n   */\n  private int m_uniqueNSValue = 0;\n\n  /** Prefix used to create unique prefix names */\n  private static final String S_NAMESPACEPREFIX = \"ns\";\n\n  /**\n   * This class clones nodes to the result tree.\n   */\n  public ClonerToResultTree m_cloner;\n\n  /**\n   * Trace manager for debug support.\n   */\n  private TraceManager m_tracer;\n  \n  private QueuedStateSnapshot m_snapshot = new QueuedStateSnapshot();\n\n  \n  class QueuedStateSnapshot\n  {\n    /**\n     * The stylesheet element that produced the SAX event.\n     */\n    ElemTemplateElement m_currentElement;\n    \n    /**\n     * The current context node in the source tree.\n     */\n    org.w3c.dom.Node m_currentNode;\n    \n    /**\n     * The xsl:template that is in effect, which may be a matched template\n     * or a named template.\n     */\n    ElemTemplate m_currentTemplate;\n    \n    /**\n     * The xsl:template that was matched.\n     */\n    ElemTemplate m_matchedTemplate;\n    \n    /**\n     * The node in the source tree that matched\n     * the template obtained via getMatchedTemplate().\n     */\n    int m_matchedNode;\n    \n    /**\n     * The current context node list.\n     */\n    DTMIterator m_contextNodeList;", "functions": [{"function_name": "init", "code": "  public void init(TransformerImpl transformer, ContentHandler realHandler)\n  {\n\n    m_transformer = transformer;\n\n    TraceManager tracer = transformer.getTraceManager();\n\n    if ((null != tracer) && tracer.hasTraceListeners())\n      m_tracer = tracer;\n    else\n      m_tracer = null;\n\n    m_contentHandler = realHandler;\n\n    if (m_contentHandler instanceof LexicalHandler)\n      m_lexicalHandler = (LexicalHandler) m_contentHandler;\n    else\n      m_lexicalHandler = null;\n\n    m_isTransformClient = (m_contentHandler instanceof TransformerClient);\n\n    m_cloner = new ClonerToResultTree(transformer, this);\n\n    if (null != m_transformer)\n      m_stylesheetRoot = m_transformer.getStylesheet();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [2, 10], [0, 11], [3, 12], [0, 13], [1, 14], [7, 15], [8, 16], [9, 17], [2, 18], [2, 19], [3, 20], [3, 21], [12, 22], [12, 23], [4, 24], [14, 25], [18, 26], [20, 27], [23, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 2], [11, 0], [12, 3], [13, 0], [14, 1], [15, 7], [16, 8], [17, 9], [18, 2], [19, 2], [20, 3], [21, 3], [22, 12], [23, 12], [24, 4], [25, 14], [26, 18], [27, 20], [28, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "startDocument", "code": "  public void startDocument() throws org.xml.sax.SAXException{}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endDocument", "code": "  public void endDocument() throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (!m_docEnded)\n    {\n      m_contentHandler.endDocument();\n\n      if (null != m_tracer)\n      {\n        GenerateEvent ge =\n          new GenerateEvent(m_transformer,\n                            GenerateEvent.EVENTTYPE_ENDDOCUMENT, null);\n\n        m_tracer.fireGenerateEvent(ge);\n      }\n\n      m_docEnded = true;\n      m_docPending = false;", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [3, 7], [1, 8], [5, 9], [6, 10], [3, 11], [7, 12], [3, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 3], [8, 1], [9, 5], [10, 6], [11, 3], [12, 7], [13, 3], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "startElement", "code": "  public void startElement(\n          String ns, String localName, String name, Attributes atts)\n            throws org.xml.sax.SAXException\n  {\n\n    if (DEBUG)\n    {\n      if (m_elemIsPending)\n        System.out.println(\"(ResultTreeHandler#startElement - pended: \"\n                           + m_url + \"#\" + m_localName);\n\n      System.out.println(\"ResultTreeHandler#startElement: \" + ns + \"#\"\n                         + localName);\n\n    }\n\n    if(m_docPending)\n      checkForSerializerSwitch(ns, localName);\n      \n    flushPending(true);\n\n    if (!m_nsContextPushed)\n    {\n      if (DEBUG)\n        System.out.println(\n          \"ResultTreeHandler#startElement - push(startElement)\");\n\n      m_nsSupport.pushContext();\n\n      m_nsContextPushed = true;\n    }\n    \n    if (ns != null)\n      ensurePrefixIsDeclared(ns, name);\n\n    m_name = name;\n    m_url = ns;\n    m_localName = localName;\n\n    if (null != atts)\n      m_attributes.addAttributes(atts);\n\n    m_elemIsPending = true;\n    m_elemIsEnded = false;\n    \n    if(m_isTransformClient && (null != m_transformer))\n    {\n      m_snapshot.m_currentElement = m_transformer.getCurrentElement();\n      m_snapshot.m_currentTemplate = m_transformer.getCurrentTemplate();\n      m_snapshot.m_matchedTemplate = m_transformer.getMatchedTemplate();\n      int currentNodeHandle = m_transformer.getCurrentNode();\n      DTM dtm = m_transformer.getXPathContext().getDTM(currentNodeHandle);\n      m_snapshot.m_currentNode = dtm.getNode(currentNodeHandle);\n      m_snapshot.m_matchedNode = m_transformer.getMatchedNode();\n    }\n\n    m_eventCount++;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [0, 13], [2, 14], [0, 15], [0, 16], [0, 17], [3, 18], [0, 19], [1, 20], [1, 21], [11, 22], [12, 23], [13, 24], [2, 25], [14, 26], [3, 27], [18, 28], [4, 29], [19, 30], [5, 31], [6, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [22, 38], [4, 39], [4, 40], [6, 41], [33, 42], [34, 43], [20, 44], [21, 45], [35, 46], [36, 47], [37, 48], [39, 49], [29, 50], [41, 51], [32, 52], [44, 53], [50, 54], [51, 55], [52, 56], [55, 57], [55, 58], [56, 59], [58, 60], [59, 61], [59, 62], [62, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 0], [14, 2], [15, 0], [16, 0], [17, 0], [18, 3], [19, 0], [20, 1], [21, 1], [22, 11], [23, 12], [24, 13], [25, 2], [26, 14], [27, 3], [28, 18], [29, 4], [30, 19], [31, 5], [32, 6], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 22], [39, 4], [40, 4], [41, 6], [42, 33], [43, 34], [44, 20], [45, 21], [46, 35], [47, 36], [48, 37], [49, 39], [50, 29], [51, 41], [52, 32], [53, 44], [54, 50], [55, 51], [56, 52], [57, 55], [58, 55], [59, 56], [60, 58], [61, 59], [62, 59], [63, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "endElement", "code": "  public void endElement(String ns, String localName, String name)\n          throws org.xml.sax.SAXException\n  {\n\n    if (DEBUG)\n    {\n      if (m_elemIsPending)\n        System.out.println(\"(ResultTreeHandler#endElement - pended: \"\n                           + m_url + \"#\" + m_localName);\n\n      System.out.println(\"ResultTreeHandler#endElement: \" + ns + \"#\"\n                         + localName);\n    }\n\n    flushPending(true);\n    m_contentHandler.endElement(ns, localName, name);\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_ENDELEMENT,\n                                           name, (Attributes)null);\n\n      m_tracer.fireGenerateEvent(ge);\n    }\n\n    sendEndPrefixMappings();\n    popEvent();\n\n    if (DEBUG)\n      System.out.println(\"ResultTreeHandler#startElement pop: \" + localName);\n\n    m_nsSupport.popContext();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [0, 12], [1, 13], [2, 14], [10, 15], [12, 16], [3, 17], [13, 18], [2, 19], [3, 20], [18, 21], [14, 22], [20, 23], [17, 24], [23, 25], [24, 26], [22, 27], [25, 28], [25, 29], [26, 30], [29, 31], [30, 32], [30, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 0], [13, 1], [14, 2], [15, 10], [16, 12], [17, 3], [18, 13], [19, 2], [20, 3], [21, 18], [22, 14], [23, 20], [24, 17], [25, 23], [26, 24], [27, 22], [28, 25], [29, 25], [30, 26], [31, 29], [32, 30], [33, 30], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(String prefix, String uri)\n          throws org.xml.sax.SAXException\n  {\n    startPrefixMapping(prefix, uri, true);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(\n          String prefix, String uri, boolean shouldFlush)\n            throws org.xml.sax.SAXException\n  {\n\n    if (shouldFlush)\n      flushPending(false);\n\n    if (!m_nsContextPushed)\n    {\n      if (DEBUG)\n        System.out.println(\n          \"ResultTreeHandler#startPrefixMapping push(startPrefixMapping: \"\n          + prefix + \")\");\n\n      m_nsSupport.pushContext();\n\n      m_nsContextPushed = true;\n    }\n\n    if (null == prefix){\n\n    String existingURI = m_nsSupport.getURI(prefix);\n\t}\n    if (null == existingURI)\n      existingURI = \"\";\n\n    if (null == uri)\n      uri = \"\";\n\n    if (!existingURI.equals(uri))\n    {\n      if (DEBUG)\n      {\n        System.out.println(\"ResultTreeHandler#startPrefixMapping Prefix: \"\n                           + prefix);\n        System.out.println(\"ResultTreeHandler#startPrefixMapping uri: \"\n                           + uri);\n      }\n\n      m_nsSupport.declarePrefix(prefix, uri);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [4, 13], [1, 14], [2, 15], [11, 16], [3, 17], [12, 18], [4, 19], [13, 20], [5, 21], [6, 22], [1, 23], [15, 24], [17, 25], [5, 26], [5, 27], [22, 28], [19, 29], [26, 30], [21, 31], [14, 32], [14, 33], [31, 34], [32, 35], [33, 36], [34, 37], [34, 38], [35, 39], [36, 40], [38, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 4], [14, 1], [15, 2], [16, 11], [17, 3], [18, 12], [19, 4], [20, 13], [21, 5], [22, 6], [23, 1], [24, 15], [25, 17], [26, 5], [27, 5], [28, 22], [29, 19], [30, 26], [31, 21], [32, 14], [33, 14], [34, 31], [35, 32], [36, 33], [37, 34], [38, 34], [39, 35], [40, 36], [41, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(String prefix)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "characters", "code": "  public void characters(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n\n    /*if (m_startDoc.isPending\n    && XMLCharacterRecognizer.isWhiteSpace(ch, start, length))\n    return;*/\n    if (DEBUG)\n    {\n      System.out.print(\"ResultTreeHandler#characters: \");\n\n      int n = start + length;\n\n      for (int i = start; i < n; i++)\n      {\n        if (Character.isWhitespace(ch[i]))\n          System.out.print(\"\\\\\" + ((int) ch[i]));\n        else\n          System.out.print(ch[i]);\n      }\n\n      System.out.println(\"\");\n    }\n\n    flushPending(true);\n    m_contentHandler.characters(ch, start, length);\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_CHARACTERS,\n                                           ch, start, length);\n\n      m_tracer.fireGenerateEvent(ge);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [1, 9], [6, 10], [8, 11], [2, 12], [2, 13], [1, 14], [2, 15], [12, 16], [2, 17], [9, 18], [15, 19], [12, 20], [13, 21], [17, 22], [20, 23], [20, 24], [20, 25], [25, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 1], [10, 6], [11, 8], [12, 2], [13, 2], [14, 1], [15, 2], [16, 12], [17, 2], [18, 9], [19, 15], [20, 12], [21, 13], [22, 17], [23, 20], [24, 20], [25, 20], [26, 25], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "characters", "code": "  public void characters(org.w3c.dom.Node node)\n          throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n    \n    if(m_isTransformClient)\n      m_snapshot.m_currentNode = node;\n\n    String data = node.getNodeValue();\n    char [] ch = null;\n    int length = 0;\n    if (data != null)\n    {\n    ch = data.toCharArray();\n    length = data.length();\n    m_contentHandler.characters(ch, 0, length);\n    }\n    \n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_CHARACTERS,\n                                           ch, 0, length);\n\n      m_tracer.fireGenerateEvent(ge);\n    }  \n    if(m_isTransformClient)\n      m_snapshot.m_currentNode = null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [0, 11], [1, 12], [2, 13], [9, 14], [10, 15], [4, 16], [5, 17], [6, 18], [7, 19], [11, 20], [12, 21], [2, 22], [3, 23], [3, 24], [3, 25], [13, 26], [23, 27], [24, 28], [25, 29], [26, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 0], [12, 1], [13, 2], [14, 9], [15, 10], [16, 4], [17, 5], [18, 6], [19, 7], [20, 11], [21, 12], [22, 2], [23, 3], [24, 3], [25, 3], [26, 13], [27, 23], [28, 24], [29, 25], [30, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (m_docPending\n            && XMLCharacterRecognizer.isWhiteSpace(ch, start, length))\n      return;\n\n    flushPending(true);\n    m_contentHandler.ignorableWhitespace(ch, start, length);\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge =\n        new GenerateEvent(m_transformer,\n                          GenerateEvent.EVENTTYPE_IGNORABLEWHITESPACE, ch,\n                          start, length);\n\n      m_tracer.fireGenerateEvent(ge);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [2, 10], [1, 11], [6, 12], [8, 13], [10, 14], [1, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 2], [11, 1], [12, 6], [13, 8], [14, 10], [15, 1], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(String target, String data)\n          throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n    m_contentHandler.processingInstruction(target, data);\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_PI,\n                                           target, data);\n\n      m_tracer.fireGenerateEvent(ge);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [4, 8], [6, 9], [1, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 4], [9, 6], [10, 1], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "comment", "code": "  public void comment(String data) throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.comment(data.toCharArray(), 0, data.length());\n    }\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_COMMENT,\n                                           data);\n\n      m_tracer.fireGenerateEvent(ge);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [1, 7], [4, 8], [5, 9], [6, 10], [1, 11], [2, 12], [7, 13], [12, 14], [12, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 1], [8, 4], [9, 5], [10, 6], [11, 1], [12, 2], [13, 7], [14, 12], [15, 12], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "comment", "code": "  public void comment(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.comment(ch, start, length);\n    }\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_COMMENT,\n                                           new String(ch, start, length));\n\n      m_tracer.fireGenerateEvent(ge);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [1, 9], [6, 10], [7, 11], [8, 12], [1, 13], [2, 14], [9, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 1], [10, 6], [11, 7], [12, 8], [13, 1], [14, 2], [15, 9], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "entityReference", "code": "  public void entityReference(String name) throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startEntity(name);\n      m_lexicalHandler.endEntity(name);\n    }\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_ENTITYREF,\n                                           name);\n\n      m_tracer.fireGenerateEvent(ge);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [1, 7], [4, 8], [5, 9], [6, 10], [1, 11], [2, 12], [2, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 1], [8, 4], [9, 5], [10, 6], [11, 1], [12, 2], [13, 2], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "startEntity", "code": "  public void startEntity(String name) throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "endEntity", "code": "  public void endEntity(String name) throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endEntity(name);\n    }\n\n    if (null != m_tracer)\n    {\n      GenerateEvent ge = new GenerateEvent(m_transformer,\n                                           GenerateEvent.EVENTTYPE_ENTITYREF,\n                                           name);\n\n      m_tracer.fireGenerateEvent(ge);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [1, 7], [4, 8], [5, 9], [6, 10], [1, 11], [2, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 1], [8, 4], [9, 5], [10, 6], [11, 1], [12, 2], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "startDTD", "code": "  public void startDTD(String s1, String s2, String s3)\n          throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startDTD(s1, s2, s3);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [6, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [8, 6], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "endDTD", "code": "  public void endDTD() throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endDTD();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [3, 5], [1, 6], [1, 0], [2, 1], [3, 0], [4, 2], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "startCDATA", "code": "  public void startCDATA() throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.startCDATA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [3, 5], [1, 6], [1, 0], [2, 1], [3, 0], [4, 2], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "endCDATA", "code": "  public void endCDATA() throws org.xml.sax.SAXException\n  {\n\n    flushPending(true);\n\n    if (null != m_lexicalHandler)\n    {\n      m_lexicalHandler.endCDATA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [2, 4], [3, 5], [1, 6], [1, 0], [2, 1], [3, 0], [4, 2], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(String name) throws org.xml.sax.SAXException{}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNSDeclsHaveBeenAdded", "code": "  public void setNSDeclsHaveBeenAdded(boolean b)\n  {\n\n    m_nsDeclsHaveBeenAdded = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "flushDocEvent", "code": "  void flushDocEvent() throws org.xml.sax.SAXException\n  {\n\n    if (m_docPending)\n    {\n      m_contentHandler.startDocument();\n\n      if (null != m_tracer)\n      {\n        GenerateEvent ge =\n          new GenerateEvent(m_transformer,\n                            GenerateEvent.EVENTTYPE_STARTDOCUMENT);\n\n        m_tracer.fireGenerateEvent(ge);\n      }\n\n      if (m_contentHandler instanceof TransformerClient)\n      {\n        ((TransformerClient) m_contentHandler).setTransformState(this);\n      }\n\n      m_docPending = false;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [3, 9], [6, 10], [3, 11], [9, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [9, 3], [10, 6], [11, 3], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "flushElem", "code": "  void flushElem() throws org.xml.sax.SAXException\n  {\n\n    if (m_elemIsPending)\n    {\n      if (null != m_name)\n      {\n        try\n        {\n          m_contentHandler.startElement(m_url, m_localName, m_name,\n                                      m_attributes);\n        }\n        catch(Exception re)\n        {\n          throw new SAXParseException(re.getMessage(), \n          m_transformer.getCurrentElement().getPublicId(), \n          m_transformer.getCurrentElement().getSystemId(), \n          m_transformer.getCurrentElement().getLineNumber(), \n          m_transformer.getCurrentElement().getColumnNumber(), \n          re);\n        }\n        \n        if(null != m_tracer)\n        {\n          GenerateEvent ge =\n            new GenerateEvent(m_transformer,\n                              GenerateEvent.EVENTTYPE_STARTELEMENT, m_name,\n                                      m_attributes);\n  \n          m_tracer.fireGenerateEvent(ge);\n        }\n        if(m_isTransformClient)\n          m_snapshot.m_currentNode = null;\n      }\n\n      m_elemIsPending = false;\n      m_attributes.clear();\n  \n      m_nsDeclsHaveBeenAdded = false;\n      m_name = null;\n      m_url = null;\n      m_localName = null;\n      m_namespaces = null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [3, 11], [4, 12], [5, 13], [6, 14], [7, 15], [9, 16], [2, 17], [2, 18], [2, 19], [10, 20], [18, 21], [19, 22], [17, 23], [18, 24], [21, 25], [22, 26], [19, 27], [23, 28], [18, 29], [26, 30], [24, 31], [30, 32], [30, 33], [30, 34], [30, 35], [30, 36], [32, 37], [33, 38], [34, 39], [35, 40], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 3], [12, 4], [13, 5], [14, 6], [15, 7], [16, 9], [17, 2], [18, 2], [19, 2], [20, 10], [21, 18], [22, 19], [23, 17], [24, 18], [25, 21], [26, 22], [27, 19], [28, 23], [29, 18], [30, 26], [31, 24], [32, 30], [33, 30], [34, 30], [35, 30], [36, 30], [37, 32], [38, 33], [39, 34], [40, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "flushPending", "code": "  public final void flushPending() throws org.xml.sax.SAXException\n  {\n    flushPending(true);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "flushPending", "code": "  public final void flushPending(boolean flushPrefixes)\n          throws org.xml.sax.SAXException\n  {\n\n    if (flushPrefixes && m_docPending)\n    {\n      flushDocEvent();\n    }\n\n    if (m_elemIsPending)\n    {\n      if (!m_nsDeclsHaveBeenAdded)\n          sendStartPrefixMappings();\n\n\n      if (DEBUG)\n      {\n        System.out.println(\"ResultTreeHandler#flushPending - start flush: \"\n                           + m_name);\n      }\n\n      flushElem();\n\n      if (DEBUG)\n      {\n        System.out.println(\n          \"ResultTreeHandler#flushPending - after flush, isPending: \"\n          + m_elemIsPending);\n      }\n\n      m_nsContextPushed = false;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "IF", "IF", "IF", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [8, 11], [7, 12], [5, 13], [6, 14], [13, 15], [14, 16], [15, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 8], [12, 7], [13, 5], [14, 6], [15, 13], [16, 14], [17, 15], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "outputResultTreeFragment", "code": "  public void outputResultTreeFragment(XObject obj, XPathContext support)\n          throws org.xml.sax.SAXException\n  {\n\n    int doc = obj.rtf();\n    DTM dtm = support.getDTM(doc);\n\n    if(null != dtm)\n    {\n\t    for (int n = dtm.getFirstChild(doc); DTM.NULL != n;\n\t            n = dtm.getNextSibling(n))\n\t    {\n\t      dtm.dispatchToEvents(n, this);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [3, 10], [7, 11], [7, 12], [11, 13], [7, 14], [7, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 3], [11, 7], [12, 7], [13, 11], [14, 7], [15, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator){}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ensurePrefixIsDeclared", "code": "  public void ensurePrefixIsDeclared(String ns, String rawName)\n          throws org.xml.sax.SAXException\n  {\n\n    if (ns != null && ns.length() > 0)\n    {\n      int index;\n      String prefix = (index = rawName.indexOf(\":\")) < 0\n                      ? \"\" : rawName.substring(0, index);\n\n      if (null != prefix)\n      {\n        String foundURI = m_nsSupport.getURI(prefix);\n\n        if ((null == foundURI) ||!foundURI.equals(ns))\n        {\n          startPrefixMapping(prefix, ns, false);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [4, 9], [5, 10], [8, 11], [8, 12], [9, 13], [5, 14], [5, 15], [10, 16], [6, 17], [14, 18], [17, 19], [17, 20], [17, 21], [18, 22], [18, 23], [15, 24], [19, 25], [21, 26], [21, 27], [14, 28], [23, 29], [27, 30], [28, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 4], [10, 5], [11, 8], [12, 8], [13, 9], [14, 5], [15, 5], [16, 10], [17, 6], [18, 14], [19, 17], [20, 17], [21, 17], [22, 18], [23, 18], [24, 15], [25, 19], [26, 21], [27, 21], [28, 14], [29, 23], [30, 27], [31, 28], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "ensureNamespaceDeclDeclared", "code": "  public void ensureNamespaceDeclDeclared(DTM dtm, int namespace)\n          throws org.xml.sax.SAXException\n  {\n\n    String uri = dtm.getNodeValue(namespace);\n    String prefix = dtm.getNodeNameX(namespace);\n\n    if ((uri != null && uri.length() > 0) && (null != prefix))\n    {\n      String foundURI = m_nsSupport.getURI(prefix);\n\n      if ((null == foundURI) ||!foundURI.equals(uri))\n      {\n        startPrefixMapping(prefix, uri, false);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [6, 10], [2, 11], [3, 12], [7, 13], [9, 14], [10, 15], [10, 16], [13, 17], [13, 18], [8, 19], [15, 20], [15, 21], [16, 22], [7, 23], [18, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 6], [11, 2], [12, 3], [13, 7], [14, 9], [15, 10], [16, 10], [17, 13], [18, 13], [19, 8], [20, 15], [21, 15], [22, 16], [23, 7], [24, 18], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "sendStartPrefixMappings", "code": "  protected void sendStartPrefixMappings() throws org.xml.sax.SAXException\n  {\n    Enumeration prefixes = m_nsSupport.getDeclaredPrefixes();\n    ContentHandler handler = m_contentHandler;\n    while (prefixes.hasMoreElements())\n    {\n      String prefix = (String) prefixes.nextElement();\n      handler.startPrefixMapping(prefix, m_nsSupport.getURI(prefix));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [3, 6], [1, 7], [7, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 3], [7, 1], [8, 7], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "startAndAddPrefixMappings", "code": "  protected void startAndAddPrefixMappings() throws org.xml.sax.SAXException\n  {\n\n    Enumeration prefixes = m_nsSupport.getDeclaredPrefixes();\n    ContentHandler handler = m_contentHandler;\n\n    while (prefixes.hasMoreElements())\n    {\n      String prefix = (String) prefixes.nextElement();\n      String uri=m_nsSupport.getURI(prefix);\n      \n      handler.startPrefixMapping(prefix, uri);\n\n      boolean isDefault = (prefix.length() == 0);\n      String name;\n\n      if (isDefault)\n      {\n        name = \"xmlns\";\n      }\n      else\n        name = \"xmlns:\" + prefix;\n\n      if (null == uri)\n        uri = \"\";\n    }\n    m_nsDeclsHaveBeenAdded=true;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [3, 13], [7, 14], [1, 15], [7, 16], [14, 17], [8, 18], [10, 19], [11, 20], [16, 21], [18, 22], [8, 23], [19, 24], [19, 25], [12, 26], [22, 27], [23, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 3], [14, 7], [15, 1], [16, 7], [17, 14], [18, 8], [19, 10], [20, 11], [21, 16], [22, 18], [23, 8], [24, 19], [25, 19], [26, 12], [27, 22], [28, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "sendEndPrefixMappings", "code": "  protected void sendEndPrefixMappings() throws org.xml.sax.SAXException\n  {\n\n    Enumeration prefixes = m_nsSupport.getDeclaredPrefixes();\n    ContentHandler handler = m_contentHandler;\n\n    while (prefixes.hasMoreElements())\n    {\n      String prefix = (String) prefixes.nextElement();\n\n      handler.endPrefixMapping(prefix);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [3, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 3], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "checkForSerializerSwitch", "code": "  private void checkForSerializerSwitch(String ns, String localName)\n          throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      if (m_docPending)\n      {\n        SerializerSwitcher.switchSerializerIfHTML(m_transformer, ns,\n                                                  localName);\n      }\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [6, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 6], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addNSDeclsToAttrs", "code": "  public void addNSDeclsToAttrs()\n  {\n\n    Enumeration prefixes = m_nsSupport.getDeclaredPrefixes();\n\n    while (prefixes.hasMoreElements())\n    {\n      String prefix = (String) prefixes.nextElement();\n      boolean isDefault = (prefix.length() == 0);\n      String name;\n\n      if (isDefault)\n      {\n\n        name = \"xmlns\";\n      }\n      else\n        name = \"xmlns:\" + prefix;\n\n      String uri = m_nsSupport.getURI(prefix);\n\n      if (null == uri)\n        uri = \"\";\n      \n      m_nsDeclsHaveBeenAdded = true;        ", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [1, 11], [4, 12], [11, 13], [4, 14], [12, 15], [5, 16], [6, 17], [8, 18], [14, 19], [17, 20], [6, 21], [18, 22], [18, 23], [9, 24], [20, 25], [21, 26], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 1], [12, 4], [13, 11], [14, 4], [15, 12], [16, 5], [17, 6], [18, 8], [19, 14], [20, 17], [21, 6], [22, 18], [23, 18], [24, 9], [25, 20], [26, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "processNSDecls", "code": "  public void processNSDecls(int src, int type, DTM dtm)\n          throws TransformerException\n  {\n\n    try\n    {\n      if (type == DTM.ELEMENT_NODE)\n      {\n        for (int namespace = dtm.getFirstNamespaceNode(src, true);\n                DTM.NULL != namespace;\n                namespace = dtm.getNextNamespaceNode(src, namespace, true))\n        {\n\n          String prefix = dtm.getNodeNameX(namespace);\n          String desturi = getURI(prefix);\n          String srcURI = dtm.getNodeValue(namespace);\n\n          if (!srcURI.equalsIgnoreCase(desturi))\n          {\n            this.startPrefixMapping(prefix, srcURI, false);\n          }\n        }\n      }\n      else if (type == DTM.NAMESPACE_NODE)\n\t\t\t{\n          String prefix = dtm.getNodeNameX(src);\n          String desturi = getURI(prefix);\n          String srcURI = dtm.getNodeValue(src);\n\n          if (!srcURI.equalsIgnoreCase(desturi))\n          {\n            this.startPrefixMapping(prefix, srcURI, false);\n          }\n\t\t\t}\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "THROW_RAISE", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [7, 10], [8, 11], [6, 12], [8, 13], [8, 14], [8, 15], [8, 16], [12, 17], [12, 18], [13, 19], [12, 20], [12, 21], [12, 22], [12, 23], [17, 24], [14, 25], [15, 26], [16, 27], [20, 28], [24, 29], [12, 30], [21, 31], [22, 32], [23, 33], [30, 34], [13, 35], [35, 36], [20, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 7], [11, 8], [12, 6], [13, 8], [14, 8], [15, 8], [16, 8], [17, 12], [18, 12], [19, 13], [20, 12], [21, 12], [22, 12], [23, 12], [24, 17], [25, 14], [26, 15], [27, 16], [28, 20], [29, 24], [30, 12], [31, 21], [32, 22], [33, 23], [34, 30], [35, 13], [36, 35], [37, 20], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "getURI", "code": "  public String getURI(String prefix)\n  {\n    return m_nsSupport.getURI(prefix);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPrefix", "code": "  public String getPrefix(String namespace)\n  {\n\n    Enumeration enum1 = m_nsSupport.getPrefixes();\n\n    while (enum1.hasMoreElements())\n    {\n      String prefix = (String) enum1.nextElement();\n\n      if (m_nsSupport.getURI(prefix).equals(namespace))\n        return prefix;\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [3, 9], [7, 10], [7, 11], [11, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 3], [10, 7], [11, 7], [12, 11], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getNamespaceSupport", "code": "  public NamespaceSupport getNamespaceSupport()\n  {\n    return m_nsSupport;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContentHandler", "code": "  public final ContentHandler getContentHandler()\n  {\n    return m_contentHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setContentHandler", "code": "  public void setContentHandler(ContentHandler ch)\n  {\n\n    m_contentHandler = ch;\n\n    m_isTransformClient = (m_contentHandler instanceof TransformerClient);\n\n    if (m_contentHandler instanceof LexicalHandler)\n      m_lexicalHandler = (LexicalHandler) m_contentHandler;\n    else\n      m_lexicalHandler = null;\n\n    reInitEvents();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [1, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 1], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getUniqueNSValue", "code": "  public int getUniqueNSValue()\n  {\n    return m_uniqueNSValue++;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNewUniqueNSPrefix", "code": "  public String getNewUniqueNSPrefix()\n  {\n    return S_NAMESPACEPREFIX + String.valueOf(getUniqueNSValue());", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getPendingAttributes", "code": "  public MutableAttrListImpl getPendingAttributes()\n  {\n    return m_attributes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addAttribute", "code": "  public void addAttribute(\n          String uri, String localName, String rawName, String type, String value)\n            throws TransformerException\n  {\n    if (m_elemIsPending)\n    {\n\taddNSDeclsToAttrs();\n\n\turi = \"\";\n\n      try\n      {\n\t  ensurePrefixIsDeclared(uri, rawName);\n      }\n      catch (org.xml.sax.SAXException se)\n      {\n\tthrow new TransformerException(se);\n      }\n      \n      if (DEBUG)\n\tSystem.out.println(\"ResultTreeHandler#addAttribute Adding attr: \"\n\t\t\t   + localName + \", \" + uri);\n\n      if (!isDefinedNSDecl(rawName, value))\n\tm_attributes.addAttribute(uri, localName, rawName, type, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "IF", "TRY", "CALL", "CATCH", "ASSIGN", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [9, 11], [1, 12], [1, 13], [7, 14], [8, 15], [11, 16], [9, 17], [12, 18], [15, 19], [16, 20], [19, 21], [21, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 9], [12, 1], [13, 1], [14, 7], [15, 8], [16, 11], [17, 9], [18, 12], [19, 15], [20, 16], [21, 19], [22, 21], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "isDefinedNSDecl", "code": "  public boolean isDefinedNSDecl(String rawName, String value)\n  {\n\n    if (rawName.equals(\"xmlns\") || rawName.startsWith(\"xmlns:\"))\n    {\n      int index;\n      String prefix = (index = rawName.indexOf(\":\")) < 0\n                      ? \"\" : rawName.substring(0, index);\n      String definedURI = m_nsSupport.getURI(prefix);\n\n      if (null != definedURI)\n      {\n        if (definedURI.equals(value))\n        {\n          return true;\n        }\n        else\n          return false;\n      }\n      else\n        return false;\n    }\n    else\n      return false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [5, 12], [7, 13], [7, 14], [11, 15], [12, 16], [13, 17], [7, 18], [14, 19], [8, 20], [9, 21], [18, 22], [18, 23], [21, 24], [21, 25], [21, 26], [22, 27], [18, 28], [24, 29], [26, 30], [26, 31], [28, 32], [31, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 5], [13, 7], [14, 7], [15, 11], [16, 12], [17, 13], [18, 7], [19, 14], [20, 8], [21, 9], [22, 18], [23, 18], [24, 21], [25, 21], [26, 21], [27, 22], [28, 18], [29, 24], [30, 26], [31, 26], [32, 28], [33, 31], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "isDefinedNSDecl", "code": "  public boolean isDefinedNSDecl(int attr)\n  {\n\n    DTM dtm = m_transformer.getXPathContext().getDTM(attr);\n\n    if (DTM.NAMESPACE_NODE == dtm.getNodeType(attr))\n    {\n\n      String prefix = dtm.getNodeNameX(attr);\n      String uri = getURI(prefix);\n\n      if ((null != uri) && uri.equals(dtm.getStringValue(attr)))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [3, 11], [7, 12], [7, 13], [11, 14], [12, 15], [13, 16], [13, 17], [8, 18], [9, 19], [16, 20], [17, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 3], [12, 7], [13, 7], [14, 11], [15, 12], [16, 13], [17, 13], [18, 8], [19, 9], [20, 16], [21, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "isDefinedNSDecl", "code": "  public boolean isDefinedNSDecl(int attr, DTM dtm)\n  {\n\n    if (DTM.NAMESPACE_NODE == dtm.getNodeType(attr))\n    {\n\n      String prefix = dtm.getNodeNameX(attr);\n      String uri = getURI(prefix);\n\n      if ((null != uri) && uri.equals(dtm.getStringValue(attr)))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [7, 11], [7, 12], [11, 13], [12, 14], [12, 15], [8, 16], [9, 17], [14, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 7], [12, 7], [13, 11], [14, 12], [15, 12], [16, 8], [17, 9], [18, 14], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "addAttribute", "code": "  public void addAttribute(int attr) throws TransformerException\n  {\n\n    DTM dtm = m_transformer.getXPathContext().getDTM(attr);\n\n    if (isDefinedNSDecl(attr, dtm))\n      return;\n\n    String ns = dtm.getNamespaceURI(attr);\n\n    if (ns == null)\n      ns = \"\";\n\n    addAttribute(ns, dtm.getLocalName(attr), dtm.getNodeName(attr), \"CDATA\",\n                 dtm.getNodeValue(attr));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [3, 9], [6, 10], [6, 11], [6, 12], [6, 13], [1, 14], [7, 15], [2, 16], [4, 17], [14, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 3], [10, 6], [11, 6], [12, 6], [13, 6], [14, 1], [15, 7], [16, 2], [17, 4], [18, 14], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "addAttributes", "code": "  public void addAttributes(int src) throws TransformerException\n  {\n\n    DTM dtm = m_transformer.getXPathContext().getDTM(src);\n\n    for (int node = dtm.getFirstAttribute(src); DTM.NULL != node;\n            node = dtm.getNextAttribute(node))\n    {\n      addAttribute(node);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [1, 8], [1, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 1], [9, 1], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isElementPending", "code": "  public final boolean isElementPending()\n  {\n    \n    return m_elemIsPending;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCurrentElement", "code": "  public ElemTemplateElement getCurrentElement()\n  {\n\n    if (m_elemIsPending)\n      return m_snapshot.m_currentElement;\n    else\n      return m_transformer.getCurrentElement();", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCurrentNode", "code": "  public org.w3c.dom.Node getCurrentNode()\n  {\n    \n    if (m_snapshot.m_currentNode != null)\n    {\n      return m_snapshot.m_currentNode;\n    }\n    else\n    {\n      DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getCurrentNode());\n      return dtm.getNode(m_transformer.getCurrentNode());", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [7, 8], [4, 9], [9, 10], [10, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 7], [9, 4], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getCurrentTemplate", "code": "  public ElemTemplate getCurrentTemplate()\n  {\n\n    if (m_elemIsPending)\n      return m_snapshot.m_currentTemplate;\n    else\n      return m_transformer.getCurrentTemplate();", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getMatchedTemplate", "code": "  public ElemTemplate getMatchedTemplate()\n  {\n\n    if (m_elemIsPending)\n      return m_snapshot.m_matchedTemplate;\n    else\n      return m_transformer.getMatchedTemplate();", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getMatchedNode", "code": "  public org.w3c.dom.Node getMatchedNode()\n  {\n\n    if (m_elemIsPending)\n    {\n      DTM dtm = m_transformer.getXPathContext().getDTM(m_snapshot.m_matchedNode);\n      return dtm.getNode(m_snapshot.m_matchedNode);\n    }\n    else\n    {\n      DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getMatchedNode());\n      return dtm.getNode(m_transformer.getMatchedNode());", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [6, 8], [3, 9], [5, 10], [9, 11], [10, 12], [11, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 6], [9, 3], [10, 5], [11, 9], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getContextNodeList", "code": "  public org.w3c.dom.traversal.NodeIterator getContextNodeList()\n  {\n\n    if (m_elemIsPending)\n    {\n      return new org.apache.xml.dtm.ref.DTMNodeIterator(m_snapshot.m_contextNodeList);\n    }\n    else\n      return new org.apache.xml.dtm.ref.DTMNodeIterator(m_transformer.getContextNodeList());", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getTransformer", "code": "  public Transformer getTransformer()\n  {\n    return m_transformer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "warning", "code": "  public void warning (SAXParseException exception)\n    throws SAXException\n  {\n    if (m_contentHandler instanceof ErrorHandler)\n      ((ErrorHandler)m_contentHandler).warning(exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "error", "code": "  public void error (SAXParseException exception)\n    throws SAXException\n  {\n    if (m_contentHandler instanceof ErrorHandler)\n      ((ErrorHandler)m_contentHandler).error(exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "fatalError", "code": "  public void fatalError (SAXParseException exception)\n    throws SAXException\n  {      \n    m_elemIsPending = false;\n    m_docEnded = true;\n    m_docPending = false;\n    \n    if (m_contentHandler instanceof ErrorHandler)\n      ((ErrorHandler)m_contentHandler).fatalError(exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ResultTreeHandler", "code": "  public ResultTreeHandler(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ResultTreeHandler", "code": "  public ResultTreeHandler(TransformerImpl transformer,\n                           ContentHandler realHandler)\n  {\n    init(transformer, realHandler);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "poi-1.5-5211", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/LegendRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.LegendRecord", "code": "public class LegendRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1015;\n    private  int        field_1_xPosition;\n    private  int        field_2_yPosition;\n    private  int        field_3_xSize;\n    private  int        field_4_ySize;\n    private  byte       field_5_type;\n    public final static byte        TYPE_BOTTOM                    = 0;\n    public final static byte        TYPE_CORNER                    = 1;\n    public final static byte        TYPE_TOP                       = 2;\n    public final static byte        TYPE_RIGHT                     = 3;\n    public final static byte        TYPE_LEFT                      = 4;\n    public final static byte        TYPE_NOT_DOCKED                = 7;\n    private  byte       field_6_spacing;\n    public final static byte        SPACING_CLOSE                  = 0;\n    public final static byte        SPACING_MEDIUM                 = 1;\n    public final static byte        SPACING_OPEN                   = 2;\n    private  short      field_7_options;\n    private BitField   autoPosition                               = new BitField(0x1);\n    private BitField   autoSeries                                 = new BitField(0x2);\n    private BitField   autoPosX                                   = new BitField(0x4);\n    private BitField   autoPosY                                   = new BitField(0x8);\n    private BitField   vert                                       = new BitField(0x10);\n    private BitField   containsDataTable                          = new BitField(0x20);\n\n\n    public LegendRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Legend record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1015 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public LegendRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a Legend record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1015 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public LegendRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Legend record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_xPosition               = LittleEndian.getInt(data, 0x0 + offset);\n        field_2_yPosition               = LittleEndian.getInt(data, 0x4 + offset);\n        field_3_xSize                   = LittleEndian.getInt(data, 0x8 + offset);\n        field_4_ySize                   = LittleEndian.getInt(data, 0xc + offset);\n        field_5_type                    = data[ 0x10 + offset ];\n        field_6_spacing                 = data[ 0x11 + offset ];\n        field_7_options                 = LittleEndian.getShort(data, 0x12 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[Legend]\\n\");\n\n        buffer.append(\"    .xPosition            = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getXPosition()))\n            .append(\" (\").append(getXPosition()).append(\" )\\n\");\n\n        buffer.append(\"    .yPosition            = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getYPosition()))\n            .append(\" (\").append(getYPosition()).append(\" )\\n\");\n\n        buffer.append(\"    .xSize                = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getXSize()))\n            .append(\" (\").append(getXSize()).append(\" )\\n\");\n\n        buffer.append(\"    .ySize                = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getYSize()))\n            .append(\" (\").append(getYSize()).append(\" )\\n\");\n\n        buffer.append(\"    .type                 = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((byte)getType()))\n            .append(\" (\").append(getType()).append(\" )\\n\");\n\n        buffer.append(\"    .spacing              = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((byte)getSpacing()))\n            .append(\" (\").append(getSpacing()).append(\" )\\n\");\n\n        buffer.append(\"    .options              = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getOptions()))\n            .append(\" (\").append(getOptions()).append(\" )\\n\");\n        buffer.append(\"         .autoPosition             = \").append(isAutoPosition        ()).append('\\n');\n        buffer.append(\"         .autoSeries               = \").append(isAutoSeries          ()).append('\\n');\n        buffer.append(\"         .autoPosX                 = \").append(isAutoPosX            ()).append('\\n');\n        buffer.append(\"         .autoPosY                 = \").append(isAutoPosY            ()).append('\\n');\n        buffer.append(\"         .vert                     = \").append(isVert                ()).append('\\n');\n        buffer.append(\"         .containsDataTable        = \").append(isContainsDataTable   ()).append('\\n');\n\n        buffer.append(\"[/Legend]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset, field_1_xPosition);\n        LittleEndian.putInt(data, 8 + offset, field_2_yPosition);\n        LittleEndian.putInt(data, 12 + offset, field_3_xSize);\n        LittleEndian.putInt(data, 16 + offset, field_4_ySize);\n        data[ 20 + offset ] = field_5_type;\n        data[ 21 + offset ] = field_6_spacing;\n        LittleEndian.putShort(data, 22 + offset, field_7_options);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4 + 4 + 4 + 4 + 4 + 1 + 1 + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n\n    /**\n     * Get the x position field for the Legend record.\n     */\n    public int getXPosition()\n    {\n        return field_1_xPosition;\n    }\n\n    /**\n     * Set the x position field for the Legend record.\n     */\n    public void setXPosition(int field_1_xPosition)\n    {\n        this.field_1_xPosition = field_1_xPosition;\n    }\n\n    /**\n     * Get the y position field for the Legend record.\n     */\n    public int getYPosition()\n    {\n        return field_2_yPosition;\n    }\n\n    /**\n     * Set the y position field for the Legend record.\n     */\n    public void setYPosition(int field_2_yPosition)\n    {\n        this.field_2_yPosition = field_2_yPosition;\n    }\n\n    /**\n     * Get the x size field for the Legend record.\n     */\n    public int getXSize()\n    {\n        return field_3_xSize;\n    }\n\n    /**\n     * Set the x size field for the Legend record.\n     */\n    public void setXSize(int field_3_xSize)\n    {\n        this.field_3_xSize = field_3_xSize;\n    }\n\n    /**\n     * Get the y size field for the Legend record.\n     */\n    public int getYSize()\n    {\n        return field_4_ySize;\n    }\n\n    /**\n     * Set the y size field for the Legend record.\n     */\n    public void setYSize(int field_4_ySize)\n    {\n        this.field_4_ySize = field_4_ySize;\n    }\n\n    /**\n     * Get the type field for the Legend record.\n     *\n     * @return  One of \n     *        TYPE_BOTTOM\n     *        TYPE_CORNER\n     *        TYPE_TOP\n     *        TYPE_RIGHT\n     *        TYPE_LEFT\n     *        TYPE_NOT_DOCKED\n     */\n    public byte getType()\n    {\n        return field_5_type;\n    }\n\n    /**\n     * Set the type field for the Legend record.\n     *\n     * @param field_5_type\n     *        One of \n     *        TYPE_BOTTOM\n     *        TYPE_CORNER\n     *        TYPE_TOP\n     *        TYPE_RIGHT\n     *        TYPE_LEFT\n     *        TYPE_NOT_DOCKED\n     */\n    public void setType(byte field_5_type)\n    {\n        this.field_5_type = field_5_type;\n    }\n\n    /**\n     * Get the spacing field for the Legend record.\n     *\n     * @return  One of \n     *        SPACING_CLOSE\n     *        SPACING_MEDIUM\n     *        SPACING_OPEN\n     */\n    public byte getSpacing()\n    {\n        return field_6_spacing;\n    }\n\n    /**\n     * Set the spacing field for the Legend record.\n     *\n     * @param field_6_spacing\n     *        One of \n     *        SPACING_CLOSE\n     *        SPACING_MEDIUM\n     *        SPACING_OPEN\n     */\n    public void setSpacing(byte field_6_spacing)\n    {\n        this.field_6_spacing = field_6_spacing;\n    }\n\n    /**\n     * Get the options field for the Legend record.\n     */\n    public short getOptions()\n    {\n        return field_7_options;\n    }\n\n    /**\n     * Set the options field for the Legend record.\n     */\n    public void setOptions(short field_7_options)\n    {\n        this.field_7_options = field_7_options;\n    }\n\n    /**\n     * Sets the auto position field value.\n     * set to true if legend is docked\n     */\n    public void setAutoPosition(boolean value)\n    {\n        field_7_options = autoPosition.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * set to true if legend is docked\n     * @return  the auto position field value.\n     */\n    public boolean isAutoPosition()\n    {\n        return autoPosition.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the auto series field value.\n     * automatic series distribution\n     */\n    public void setAutoSeries(boolean value)\n    {\n        field_7_options = autoSeries.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * automatic series distribution\n     * @return  the auto series field value.\n     */\n    public boolean isAutoSeries()\n    {\n        return autoSeries.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the auto pos x field value.\n     * x positioning is done automatically\n     */\n    public void setAutoPosX(boolean value)\n    {\n        field_7_options = autoPosX.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * x positioning is done automatically\n     * @return  the auto pos x field value.\n     */\n    public boolean isAutoPosX()\n    {\n        return autoPosX.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the auto pos y field value.\n     * y positioning is done automatically\n     */\n    public void setAutoPosY(boolean value)\n    {\n        field_7_options = autoPosY.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * y positioning is done automatically\n     * @return  the auto pos y field value.\n     */\n    public boolean isAutoPosY()\n    {\n        return autoPosY.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the vert field value.\n     * if true legend is vertical (otherwise it's horizonal)\n     */\n    public void setVert(boolean value)\n    {\n        field_7_options = vert.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * if true legend is vertical (otherwise it's horizonal)\n     * @return  the vert field value.\n     */\n    public boolean isVert()\n    {\n        return vert.isSet(field_7_options);\n    }\n\n    /**\n     * Sets the contains data table field value.\n     * true if the chart contains the data table\n     */\n    public void setContainsDataTable(boolean value)\n    {\n        field_7_options = containsDataTable.setShortBoolean(field_7_options, value);\n    }\n\n    /**\n     * true if the chart contains the data table\n     * @return  the contains data table field value.\n     */\n    public boolean isContainsDataTable()\n    {\n        return containsDataTable.isSet(field_7_options);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Legend record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_xPosition               = LittleEndian.getInt(data, 0x0 + offset);\n        field_2_yPosition               = LittleEndian.getInt(data, 0x4 + offset);\n        field_3_xSize                   = LittleEndian.getInt(data, 0x8 + offset);\n        field_4_ySize                   = LittleEndian.getInt(data, 0xc + offset);\n        field_5_type                    = data[ 0x10 + offset ];\n        field_6_spacing                 = data[ 0x11 + offset ];\n        field_7_options                 = LittleEndian.getShort(data, 0x12 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [4, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [16, 21], [5, 22], [6, 23], [17, 24], [18, 25], [19, 26], [20, 27], [22, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 4], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [21, 16], [22, 5], [23, 6], [24, 17], [25, 18], [26, 19], [27, 20], [28, 22], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[Legend]\\n\");\n\n        buffer.append(\"    .xPosition            = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getXPosition()))\n            .append(\" (\").append(getXPosition()).append(\" )\\n\");\n\n        buffer.append(\"    .yPosition            = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getYPosition()))\n            .append(\" (\").append(getYPosition()).append(\" )\\n\");\n\n        buffer.append(\"    .xSize                = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getXSize()))\n            .append(\" (\").append(getXSize()).append(\" )\\n\");\n\n        buffer.append(\"    .ySize                = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((int)getYSize()))\n            .append(\" (\").append(getYSize()).append(\" )\\n\");\n\n        buffer.append(\"    .type                 = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((byte)getType()))\n            .append(\" (\").append(getType()).append(\" )\\n\");\n\n        buffer.append(\"    .spacing              = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((byte)getSpacing()))\n            .append(\" (\").append(getSpacing()).append(\" )\\n\");\n\n        buffer.append(\"    .options              = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getOptions()))\n            .append(\" (\").append(getOptions()).append(\" )\\n\");\n        buffer.append(\"         .autoPosition             = \").append(isAutoPosition        ()).append('\\n');\n        buffer.append(\"         .autoSeries               = \").append(isAutoSeries          ()).append('\\n');\n        buffer.append(\"         .autoPosX                 = \").append(isAutoPosX            ()).append('\\n');\n        buffer.append(\"         .autoPosY                 = \").append(isAutoPosY            ()).append('\\n');\n        buffer.append(\"         .vert                     = \").append(isVert                ()).append('\\n');\n        buffer.append(\"         .containsDataTable        = \").append(isContainsDataTable   ()).append('\\n');\n\n        buffer.append(\"[/Legend]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [4, 19], [5, 20], [5, 21], [5, 22], [6, 23], [6, 24], [6, 25], [7, 26], [7, 27], [7, 28], [8, 29], [8, 30], [8, 31], [9, 32], [9, 33], [9, 34], [10, 35], [10, 36], [10, 37], [11, 38], [11, 39], [11, 40], [11, 41], [11, 42], [11, 43], [12, 44], [12, 45], [12, 46], [12, 47], [12, 48], [12, 49], [13, 50], [13, 51], [13, 52], [13, 53], [13, 54], [13, 55], [14, 56], [14, 57], [14, 58], [14, 59], [14, 60], [14, 61], [15, 62], [15, 63], [15, 64], [15, 65], [15, 66], [15, 67], [16, 68], [16, 69], [16, 70], [16, 71], [16, 72], [16, 73], [17, 74], [17, 75], [17, 76], [17, 77], [17, 78], [17, 79], [18, 80], [2, 81], [21, 82], [22, 83], [24, 84], [25, 85], [27, 86], [28, 87], [30, 88], [31, 89], [33, 90], [34, 91], [36, 92], [37, 93], [39, 94], [40, 95], [41, 96], [42, 97], [43, 98], [45, 99], [46, 100], [47, 101], [48, 102], [49, 103], [51, 104], [52, 105], [53, 106], [54, 107], [55, 108], [57, 109], [58, 110], [59, 111], [60, 112], [61, 113], [63, 114], [64, 115], [65, 116], [66, 117], [67, 118], [69, 119], [70, 120], [71, 121], [72, 122], [73, 123], [75, 124], [76, 125], [77, 126], [78, 127], [79, 128], [97, 129], [102, 130], [107, 131], [112, 132], [117, 133], [122, 134], [127, 135], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 4], [20, 5], [21, 5], [22, 5], [23, 6], [24, 6], [25, 6], [26, 7], [27, 7], [28, 7], [29, 8], [30, 8], [31, 8], [32, 9], [33, 9], [34, 9], [35, 10], [36, 10], [37, 10], [38, 11], [39, 11], [40, 11], [41, 11], [42, 11], [43, 11], [44, 12], [45, 12], [46, 12], [47, 12], [48, 12], [49, 12], [50, 13], [51, 13], [52, 13], [53, 13], [54, 13], [55, 13], [56, 14], [57, 14], [58, 14], [59, 14], [60, 14], [61, 14], [62, 15], [63, 15], [64, 15], [65, 15], [66, 15], [67, 15], [68, 16], [69, 16], [70, 16], [71, 16], [72, 16], [73, 16], [74, 17], [75, 17], [76, 17], [77, 17], [78, 17], [79, 17], [80, 18], [81, 2], [82, 21], [83, 22], [84, 24], [85, 25], [86, 27], [87, 28], [88, 30], [89, 31], [90, 33], [91, 34], [92, 36], [93, 37], [94, 39], [95, 40], [96, 41], [97, 42], [98, 43], [99, 45], [100, 46], [101, 47], [102, 48], [103, 49], [104, 51], [105, 52], [106, 53], [107, 54], [108, 55], [109, 57], [110, 58], [111, 59], [112, 60], [113, 61], [114, 63], [115, 64], [116, 65], [117, 66], [118, 67], [119, 69], [120, 70], [121, 71], [122, 72], [123, 73], [124, 75], [125, 76], [126, 77], [127, 78], [128, 79], [129, 97], [130, 102], [131, 107], [132, 112], [133, 117], [134, 122], [135, 127], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset, field_1_xPosition);\n        LittleEndian.putInt(data, 8 + offset, field_2_yPosition);\n        LittleEndian.putInt(data, 12 + offset, field_3_xSize);\n        LittleEndian.putInt(data, 16 + offset, field_4_ySize);\n        data[ 20 + offset ] = field_5_type;\n        data[ 21 + offset ] = field_6_spacing;\n        LittleEndian.putShort(data, 22 + offset, field_7_options);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [5, 14], [8, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [18, 25], [12, 26], [19, 27], [20, 28], [6, 29], [7, 30], [26, 31], [26, 32], [29, 33], [30, 34], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 5], [15, 8], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 18], [26, 12], [27, 19], [28, 20], [29, 6], [30, 7], [31, 26], [32, 26], [33, 29], [34, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4 + 4 + 4 + 4 + 4 + 1 + 1 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [14, 15], [14, 16], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [15, 14], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXPosition", "code": "    public int getXPosition()\n    {\n        return field_1_xPosition;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXPosition", "code": "    public void setXPosition(int field_1_xPosition)\n    {\n        this.field_1_xPosition = field_1_xPosition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getYPosition", "code": "    public int getYPosition()\n    {\n        return field_2_yPosition;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setYPosition", "code": "    public void setYPosition(int field_2_yPosition)\n    {\n        this.field_2_yPosition = field_2_yPosition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXSize", "code": "    public int getXSize()\n    {\n        return field_3_xSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXSize", "code": "    public void setXSize(int field_3_xSize)\n    {\n        this.field_3_xSize = field_3_xSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getYSize", "code": "    public int getYSize()\n    {\n        return field_4_ySize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setYSize", "code": "    public void setYSize(int field_4_ySize)\n    {\n        this.field_4_ySize = field_4_ySize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "    public byte getType()\n    {\n        return field_5_type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setType", "code": "    public void setType(byte field_5_type)\n    {\n        this.field_5_type = field_5_type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSpacing", "code": "    public byte getSpacing()\n    {\n        return field_6_spacing;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSpacing", "code": "    public void setSpacing(byte field_6_spacing)\n    {\n        this.field_6_spacing = field_6_spacing;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptions", "code": "    public short getOptions()\n    {\n        return field_7_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOptions", "code": "    public void setOptions(short field_7_options)\n    {\n        this.field_7_options = field_7_options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoPosition", "code": "    public void setAutoPosition(boolean value)\n    {\n        field_7_options = autoPosition.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoPosition", "code": "    public boolean isAutoPosition()\n    {\n        return autoPosition.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoSeries", "code": "    public void setAutoSeries(boolean value)\n    {\n        field_7_options = autoSeries.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoSeries", "code": "    public boolean isAutoSeries()\n    {\n        return autoSeries.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoPosX", "code": "    public void setAutoPosX(boolean value)\n    {\n        field_7_options = autoPosX.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoPosX", "code": "    public boolean isAutoPosX()\n    {\n        return autoPosX.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoPosY", "code": "    public void setAutoPosY(boolean value)\n    {\n        field_7_options = autoPosY.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoPosY", "code": "    public boolean isAutoPosY()\n    {\n        return autoPosY.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVert", "code": "    public void setVert(boolean value)\n    {\n        field_7_options = vert.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isVert", "code": "    public boolean isVert()\n    {\n        return vert.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setContainsDataTable", "code": "    public void setContainsDataTable(boolean value)\n    {\n        field_7_options = containsDataTable.setShortBoolean(field_7_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isContainsDataTable", "code": "    public boolean isContainsDataTable()\n    {\n        return containsDataTable.isSet(field_7_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LegendRecord", "code": "    public LegendRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "LegendRecord", "code": "    public LegendRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LegendRecord", "code": "    public LegendRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.0-1416", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/spring/EndpointFactoryBean.java", "language": "java", "name": "org.apache.camel.spring.EndpointFactoryBean", "code": "public class EndpointFactoryBean implements FactoryBean {\n    private CamelContext context;\n    private String uri;\n    private Endpoint endpoint;\n    private boolean singleton;\n\n    public Object getObject() throws Exception {\n        if (endpoint == null) {\n            endpoint = createEndpoint();\n        }\n        return endpoint;\n    }\n\n    public Class getObjectType() {\n        return Endpoint.class;\n    }\n\n    public boolean isSingleton() {\n        return singleton;\n    }\n\n    public CamelContext getContext() {\n        return context;\n    }\n\n    /**\n     * Sets the context to use to resolve endpoints\n     *\n     * @param context the context used to resolve endpoints\n     */\n    public void setContext(CamelContext context) {\n        this.context = context;\n    }\n\n    public Endpoint getEndpoint() {\n        return endpoint;\n    }\n\n    public void setEndpoint(Endpoint endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    public void setSingleton(boolean singleton) {\n        this.singleton = singleton;\n    }\n\n    public String getUri() {\n        return uri;\n    }\n\n    /**\n     * Sets the URI to use to resolve the endpoint\n     *\n     * @param uri the URI used to set the endpoint\n     */\n    public void setUri(String uri) {\n        this.uri = uri;\n    }\n\n    protected Endpoint createEndpoint() {\n        notNull(context, \"context\");\n        notNull(uri, \"uri\");\n        return context.getEndpoint(uri);", "functions": [{"function_name": "getObject", "code": "    public Object getObject() throws Exception {\n        if (endpoint == null) {\n            endpoint = createEndpoint();\n        }\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getObjectType", "code": "    public Class getObjectType() {\n        return Endpoint.class;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return singleton;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContext", "code": "    public CamelContext getContext() {\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setContext", "code": "    public void setContext(CamelContext context) {\n        this.context = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndpoint", "code": "    public Endpoint getEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEndpoint", "code": "    public void setEndpoint(Endpoint endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSingleton", "code": "    public void setSingleton(boolean singleton) {\n        this.singleton = singleton;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUri", "code": "    public String getUri() {\n        return uri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUri", "code": "    public void setUri(String uri) {\n        this.uri = uri;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createEndpoint", "code": "    protected Endpoint createEndpoint() {\n        notNull(context, \"context\");\n        notNull(uri, \"uri\");\n        return context.getEndpoint(uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 0], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.5-6888", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/dtm/ref/DTMTreeWalker.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMTreeWalker", "code": "public class DTMTreeWalker\n{\n\n  /** Local reference to a ContentHandler          */\n  private ContentHandler m_contentHandler = null;\n\n  /** DomHelper for this TreeWalker          */\n  protected DTM m_dtm;\n  \n  /**\n   * Set the DTM to be traversed.\n   * \n   * @param dtm The Document Table Model to be used.\n   */\n  public void setDTM(DTM dtm)\n  {\n    m_dtm = dtm;\n  }\n\n  /**\n   * Get the ContentHandler used for the tree walk.\n   *\n   * @return the ContentHandler used for the tree walk\n   */\n  public ContentHandler getcontentHandler()\n  {\n    return m_contentHandler;\n  }\n  \n  /**\n   * Set the ContentHandler used for the tree walk.\n   *\n   * @param ch the ContentHandler to be the result of the tree walk.\n   */\n  public void setcontentHandler(ContentHandler ch)\n  {\n    m_contentHandler = ch;\n  }\n\n  \n  /**\n   * Constructor.\n   * @param   contentHandler The implemention of the\n   * contentHandler operation (toXMLString, digest, ...)\n   */\n  public DTMTreeWalker()\n  {\n  }\n  \n  /**\n   * Constructor.\n   * @param   contentHandler The implemention of the\n   * contentHandler operation (toXMLString, digest, ...)\n   */\n  public DTMTreeWalker(ContentHandler contentHandler, DTM dtm)\n  {\n    this.m_contentHandler = contentHandler;\n    m_dtm = dtm;\n  }\n  \n  /** Perform a non-recursive pre-order/post-order traversal,\n   * operating as a Visitor. startNode (preorder) and endNode\n   * (postorder) are invoked for each node as we traverse over them,\n   * with the result that the node is written out to m_contentHandler.\n   *\n   * @param pos Node in the tree at which to start (and end) traversal --\n   * in other words, the root of the subtree to traverse over.\n   *\n   * @throws TransformerException */\n  public void traverse(int pos) throws org.xml.sax.SAXException\n  {\n\n\n    while (DTM.NULL != pos)\n    {\n      startNode(pos);\n      int nextNode = m_dtm.getFirstChild(pos);\n      while (DTM.NULL == nextNode)\n      {\n        endNode(pos);\n\n        if (top == pos)\n          break;\n\n        nextNode = m_dtm.getNextSibling(pos);\n\n        if (DTM.NULL == nextNode)\n        {\n          pos = m_dtm.getParent(pos);\n\n          if ((DTM.NULL == pos) || (top == pos))\n          {\n            if (DTM.NULL != pos)\n              endNode(pos);\n\n            nextNode = DTM.NULL;\n\n            break;\n          }\n        }\n      }\n\n      pos = nextNode;\n    }\n  }\n\n  /** Perform a non-recursive pre-order/post-order traversal,\n   * operating as a Visitor. startNode (preorder) and endNode\n   * (postorder) are invoked for each node as we traverse over them,\n   * with the result that the node is written out to m_contentHandler.\n   *\n   * @param pos Node in the tree where to start traversal\n   * @param top Node in the tree where to end traversal.\n   * If top==DTM.NULL, run through end of document.\n   *\n   * @throws TransformerException\n   */\n  public void traverse(int pos, int top) throws org.xml.sax.SAXException\n  {\n\n    while (DTM.NULL != pos)\n    {\n      startNode(pos);\n      int nextNode = m_dtm.getFirstChild(pos);\n      while (DTM.NULL == nextNode)\n      {\n        endNode(pos);\n\n        if ((DTM.NULL != top) && top == pos)\n          break;\n\n        nextNode = m_dtm.getNextSibling(pos);\n\n        if (DTM.NULL == nextNode)\n        {\n          pos = m_dtm.getParent(pos);\n\n          if ((DTM.NULL == pos) || ((DTM.NULL != top) && (top == pos)))\n          {\n            nextNode = DTM.NULL;\n\n            break;\n          }\n        }\n      }\n\n      pos = nextNode;\n    }\n  }\n\n  /** Flag indicating whether following text to be processed is raw text          */\n  boolean nextIsRaw = false;\n  \n  /**\n   * Optimized dispatch of characters.\n   */\n  private final void dispatachChars(int node)\n     throws org.xml.sax.SAXException\n  {\n    m_dtm.dispatchCharactersEvents(node, m_contentHandler, false);\n  }\n\n  /**\n   * Start processing given node\n   *\n   *\n   * @param node Node to process\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  protected void startNode(int node) throws org.xml.sax.SAXException\n  {\n\n    if (m_contentHandler instanceof NodeConsumer)\n    {\n    }\n\n    switch (m_dtm.getNodeType(node))\n    {\n    case DTM.COMMENT_NODE :\n    {\n      XMLString data = m_dtm.getStringValue(node);\n\n      if (m_contentHandler instanceof LexicalHandler)\n      {\n        LexicalHandler lh = ((LexicalHandler) this.m_contentHandler);\n        data.dispatchAsComment(lh);\n      }\n    }\n    break;\n    case DTM.DOCUMENT_FRAGMENT_NODE :\n\n      break;\n    case DTM.DOCUMENT_NODE :\n      this.m_contentHandler.startDocument();\n      break;\n    case DTM.ELEMENT_NODE :\n      DTM dtm = m_dtm;           \n\n      for (int nsn = dtm.getFirstNamespaceNode(node, true); DTM.NULL != nsn;\n           nsn = dtm.getNextNamespaceNode(node, nsn, true))\n      {\n        String prefix = dtm.getNodeNameX(nsn);\n\n        this.m_contentHandler.startPrefixMapping(prefix, dtm.getNodeValue(nsn));\n        \n      }\n\n      String ns = dtm.getNamespaceURI(node);\n      if(null == ns)\n        ns = \"\";\n        \n      org.xml.sax.helpers.AttributesImpl attrs = \n                            new org.xml.sax.helpers.AttributesImpl();\n              \n      for (int i = dtm.getFirstAttribute(node); \n           i != DTM.NULL; \n           i = dtm.getNextAttribute(i)) \n      {\n        attrs.addAttribute(dtm.getNamespaceURI(i), \n                           dtm.getLocalName(i), \n                           dtm.getNodeName(i), \n                           \"CDATA\", \n                           dtm.getNodeValue(i));\n      }\n      \n        \n      this.m_contentHandler.startElement(ns,\n                                         m_dtm.getLocalName(node),\n                                         m_dtm.getNodeName(node),\n                                         attrs);\n      break;\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n    {\n      String name = m_dtm.getNodeName(node);\n\n      if (name.equals(\"xslt-next-is-raw\"))\n      {\n        nextIsRaw = true;\n      }\n      else\n      {\n        this.m_contentHandler.processingInstruction(name,\n                                                    m_dtm.getNodeValue(node));\n      }\n    }\n    break;\n    case DTM.CDATA_SECTION_NODE :\n    {\n      boolean isLexH = (m_contentHandler instanceof LexicalHandler);\n      LexicalHandler lh = isLexH\n                          ? ((LexicalHandler) this.m_contentHandler) : null;\n\n      if (isLexH)\n      {\n        lh.startCDATA();\n      }\n      \n      dispatachChars(node);\n\n      {\n        if (isLexH)\n        {\n          lh.endCDATA();\n        }\n      }\n    }\n    break;\n    case DTM.TEXT_NODE :\n    {\n      if (nextIsRaw)\n      {\n        nextIsRaw = false;\n\n        m_contentHandler.processingInstruction(javax.xml.transform.Result.PI_DISABLE_OUTPUT_ESCAPING, \"\");\n        dispatachChars(node);\n        m_contentHandler.processingInstruction(javax.xml.transform.Result.PI_ENABLE_OUTPUT_ESCAPING, \"\");\n      }\n      else\n      {\n        dispatachChars(node);\n      }\n    }\n    break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    {\n      if (m_contentHandler instanceof LexicalHandler)\n      {\n        ((LexicalHandler) this.m_contentHandler).startEntity(\n          m_dtm.getNodeName(node));\n      }\n      else\n      {\n\n      }\n    }\n    break;\n    default :\n    }\n  }\n\n  /**\n   * End processing of given node \n   *\n   *\n   * @param node Node we just finished processing\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  protected void endNode(int node) throws org.xml.sax.SAXException\n  {\n\n    switch (m_dtm.getNodeType(node))\n    {\n    case DTM.DOCUMENT_NODE :\n      this.m_contentHandler.endDocument();\n      break;\n    case DTM.ELEMENT_NODE :\n      String ns = m_dtm.getNamespaceURI(node);\n      if(null == ns)\n        ns = \"\";\n      this.m_contentHandler.endElement(ns,\n                                         m_dtm.getLocalName(node),\n                                         m_dtm.getNodeName(node));\n\n      for (int nsn = m_dtm.getFirstNamespaceNode(node, true); DTM.NULL != nsn;\n           nsn = m_dtm.getNextNamespaceNode(node, nsn, true))\n      {\n        String prefix = m_dtm.getNodeNameX(nsn);\n\n        this.m_contentHandler.endPrefixMapping(prefix);\n      }\n      break;\n    case DTM.CDATA_SECTION_NODE :\n      break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    {\n      if (m_contentHandler instanceof LexicalHandler)\n      {\n        LexicalHandler lh = ((LexicalHandler) this.m_contentHandler);\n\n        lh.endEntity(m_dtm.getNodeName(node));\n      }\n    }\n    break;", "functions": [{"function_name": "setDTM", "code": "  public void setDTM(DTM dtm)\n  {\n    m_dtm = dtm;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getcontentHandler", "code": "  public ContentHandler getcontentHandler()\n  {\n    return m_contentHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setcontentHandler", "code": "  public void setcontentHandler(ContentHandler ch)\n  {\n    m_contentHandler = ch;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "traverse", "code": "  public void traverse(int pos) throws org.xml.sax.SAXException\n  {\n\n\n    while (DTM.NULL != pos)\n    {\n      startNode(pos);\n      int nextNode = m_dtm.getFirstChild(pos);\n      while (DTM.NULL == nextNode)\n      {\n        endNode(pos);\n\n        if (top == pos)\n          break;\n\n        nextNode = m_dtm.getNextSibling(pos);\n\n        if (DTM.NULL == nextNode)\n        {\n          pos = m_dtm.getParent(pos);\n\n          if ((DTM.NULL == pos) || (top == pos))\n          {\n            if (DTM.NULL != pos)\n              endNode(pos);\n\n            nextNode = DTM.NULL;\n\n            break;\n          }\n        }\n      }\n\n      pos = nextNode;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "IF", "IF", "CALL", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "IF", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 8], [4, 9], [4, 10], [5, 11], [9, 12], [4, 13], [10, 14], [10, 15], [4, 16], [9, 17], [13, 18], [17, 19], [9, 20], [17, 21], [17, 22], [19, 23], [19, 24], [20, 25], [17, 26], [22, 27], [22, 28], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 4], [8, 1], [9, 4], [10, 4], [11, 5], [12, 9], [13, 4], [14, 10], [15, 10], [16, 4], [17, 9], [18, 13], [19, 17], [20, 9], [21, 17], [22, 17], [23, 19], [24, 19], [25, 20], [26, 17], [27, 22], [28, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "traverse", "code": "  public void traverse(int pos, int top) throws org.xml.sax.SAXException\n  {\n\n    while (DTM.NULL != pos)\n    {\n      startNode(pos);\n      int nextNode = m_dtm.getFirstChild(pos);\n      while (DTM.NULL == nextNode)\n      {\n        endNode(pos);\n\n        if ((DTM.NULL != top) && top == pos)\n          break;\n\n        nextNode = m_dtm.getNextSibling(pos);\n\n        if (DTM.NULL == nextNode)\n        {\n          pos = m_dtm.getParent(pos);\n\n          if ((DTM.NULL == pos) || ((DTM.NULL != top) && (top == pos)))\n          {\n            nextNode = DTM.NULL;\n\n            break;\n          }\n        }\n      }\n\n      pos = nextNode;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "IF", "IF", "CALL", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [1, 9], [5, 10], [5, 11], [6, 12], [10, 13], [5, 14], [11, 15], [11, 16], [5, 17], [10, 18], [14, 19], [16, 20], [16, 21], [18, 22], [10, 23], [18, 24], [22, 25], [22, 26], [23, 27], [18, 28], [25, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [9, 1], [10, 5], [11, 5], [12, 6], [13, 10], [14, 5], [15, 11], [16, 11], [17, 5], [18, 10], [19, 14], [20, 16], [21, 16], [22, 18], [23, 10], [24, 18], [25, 22], [26, 22], [27, 23], [28, 18], [29, 25], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "dispatachChars", "code": "  private final void dispatachChars(int node)\n     throws org.xml.sax.SAXException\n  {\n    m_dtm.dispatchCharactersEvents(node, m_contentHandler, false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startNode", "code": "  protected void startNode(int node) throws org.xml.sax.SAXException\n  {\n\n    if (m_contentHandler instanceof NodeConsumer)\n    {\n    }\n\n    switch (m_dtm.getNodeType(node))\n    {\n    case DTM.COMMENT_NODE :\n    {\n      XMLString data = m_dtm.getStringValue(node);\n\n      if (m_contentHandler instanceof LexicalHandler)\n      {\n        LexicalHandler lh = ((LexicalHandler) this.m_contentHandler);\n        data.dispatchAsComment(lh);\n      }\n    }\n    break;\n    case DTM.DOCUMENT_FRAGMENT_NODE :\n\n      break;\n    case DTM.DOCUMENT_NODE :\n      this.m_contentHandler.startDocument();\n      break;\n    case DTM.ELEMENT_NODE :\n      DTM dtm = m_dtm;           \n\n      for (int nsn = dtm.getFirstNamespaceNode(node, true); DTM.NULL != nsn;\n           nsn = dtm.getNextNamespaceNode(node, nsn, true))\n      {\n        String prefix = dtm.getNodeNameX(nsn);\n\n        this.m_contentHandler.startPrefixMapping(prefix, dtm.getNodeValue(nsn));\n        \n      }\n\n      String ns = dtm.getNamespaceURI(node);\n      if(null == ns)\n        ns = \"\";\n        \n      org.xml.sax.helpers.AttributesImpl attrs = \n                            new org.xml.sax.helpers.AttributesImpl();\n              \n      for (int i = dtm.getFirstAttribute(node); \n           i != DTM.NULL; \n           i = dtm.getNextAttribute(i)) \n      {\n        attrs.addAttribute(dtm.getNamespaceURI(i), \n                           dtm.getLocalName(i), \n                           dtm.getNodeName(i), \n                           \"CDATA\", \n                           dtm.getNodeValue(i));\n      }\n      \n        \n      this.m_contentHandler.startElement(ns,\n                                         m_dtm.getLocalName(node),\n                                         m_dtm.getNodeName(node),\n                                         attrs);\n      break;\n    case DTM.PROCESSING_INSTRUCTION_NODE :\n    {\n      String name = m_dtm.getNodeName(node);\n\n      if (name.equals(\"xslt-next-is-raw\"))\n      {\n        nextIsRaw = true;\n      }\n      else\n      {\n        this.m_contentHandler.processingInstruction(name,\n                                                    m_dtm.getNodeValue(node));\n      }\n    }\n    break;\n    case DTM.CDATA_SECTION_NODE :\n    {\n      boolean isLexH = (m_contentHandler instanceof LexicalHandler);\n      LexicalHandler lh = isLexH\n                          ? ((LexicalHandler) this.m_contentHandler) : null;\n\n      if (isLexH)\n      {\n        lh.startCDATA();\n      }\n      \n      dispatachChars(node);\n\n      {\n        if (isLexH)\n        {\n          lh.endCDATA();\n        }\n      }\n    }\n    break;\n    case DTM.TEXT_NODE :\n    {\n      if (nextIsRaw)\n      {\n        nextIsRaw = false;\n\n        m_contentHandler.processingInstruction(javax.xml.transform.Result.PI_DISABLE_OUTPUT_ESCAPING, \"\");\n        dispatachChars(node);\n        m_contentHandler.processingInstruction(javax.xml.transform.Result.PI_ENABLE_OUTPUT_ESCAPING, \"\");\n      }\n      else\n      {\n        dispatachChars(node);\n      }\n    }\n    break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    {\n      if (m_contentHandler instanceof LexicalHandler)\n      {\n        ((LexicalHandler) this.m_contentHandler).startEntity(\n          m_dtm.getNodeName(node));\n      }\n      else\n      {\n\n      }\n    }\n    break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "PARAM", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [11, 27], [11, 28], [13, 29], [15, 30], [15, 31], [1, 32], [1, 33], [20, 34], [1, 35], [1, 36], [25, 37], [1, 38], [27, 39], [12, 40], [13, 41], [29, 42], [14, 43], [15, 44], [30, 45], [1, 46], [32, 47], [23, 48], [24, 49], [37, 50], [26, 51], [38, 52], [38, 53], [11, 54], [11, 55], [41, 56], [45, 57], [15, 58], [32, 59], [33, 60], [21, 61], [21, 62], [21, 63], [21, 64], [21, 65], [22, 66], [48, 67], [25, 68], [54, 69], [54, 70], [54, 71], [54, 72], [54, 73], [15, 74], [44, 75], [58, 76], [32, 77], [62, 78], [64, 79], [65, 80], [35, 81], [25, 82], [68, 83], [74, 84], [82, 85], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 11], [28, 11], [29, 13], [30, 15], [31, 15], [32, 1], [33, 1], [34, 20], [35, 1], [36, 1], [37, 25], [38, 1], [39, 27], [40, 12], [41, 13], [42, 29], [43, 14], [44, 15], [45, 30], [46, 1], [47, 32], [48, 23], [49, 24], [50, 37], [51, 26], [52, 38], [53, 38], [54, 11], [55, 11], [56, 41], [57, 45], [58, 15], [59, 32], [60, 33], [61, 21], [62, 21], [63, 21], [64, 21], [65, 21], [66, 22], [67, 48], [68, 25], [69, 54], [70, 54], [71, 54], [72, 54], [73, 54], [74, 15], [75, 44], [76, 58], [77, 32], [78, 62], [79, 64], [80, 65], [81, 35], [82, 25], [83, 68], [84, 74], [85, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "endNode", "code": "  protected void endNode(int node) throws org.xml.sax.SAXException\n  {\n\n    switch (m_dtm.getNodeType(node))\n    {\n    case DTM.DOCUMENT_NODE :\n      this.m_contentHandler.endDocument();\n      break;\n    case DTM.ELEMENT_NODE :\n      String ns = m_dtm.getNamespaceURI(node);\n      if(null == ns)\n        ns = \"\";\n      this.m_contentHandler.endElement(ns,\n                                         m_dtm.getLocalName(node),\n                                         m_dtm.getNodeName(node));\n\n      for (int nsn = m_dtm.getFirstNamespaceNode(node, true); DTM.NULL != nsn;\n           nsn = m_dtm.getNextNamespaceNode(node, nsn, true))\n      {\n        String prefix = m_dtm.getNodeNameX(nsn);\n\n        this.m_contentHandler.endPrefixMapping(prefix);\n      }\n      break;\n    case DTM.CDATA_SECTION_NODE :\n      break;\n    case DTM.ENTITY_REFERENCE_NODE :\n    {\n      if (m_contentHandler instanceof LexicalHandler)\n      {\n        LexicalHandler lh = ((LexicalHandler) this.m_contentHandler);\n\n        lh.endEntity(m_dtm.getNodeName(node));\n      }\n    }\n    break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LOOP", "IF", "VAR_DECL", "BREAK_CONTINUE", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [7, 12], [7, 13], [8, 14], [11, 15], [7, 16], [12, 17], [1, 18], [8, 19], [14, 20], [9, 21], [1, 22], [11, 23], [17, 24], [7, 25], [18, 26], [18, 27], [19, 28], [11, 29], [7, 30], [16, 31], [25, 32], [29, 33], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 7], [13, 7], [14, 8], [15, 11], [16, 7], [17, 12], [18, 1], [19, 8], [20, 14], [21, 9], [22, 1], [23, 11], [24, 17], [25, 7], [26, 18], [27, 18], [28, 19], [29, 11], [30, 7], [31, 16], [32, 25], [33, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "DTMTreeWalker", "code": "  public DTMTreeWalker()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DTMTreeWalker", "code": "  public DTMTreeWalker(ContentHandler contentHandler, DTM dtm)\n  {\n    this.m_contentHandler = contentHandler;\n    m_dtm = dtm;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.0-1522", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/Producer.java", "language": "java", "name": "org.apache.camel.Producer", "code": "public interface Producer<E extends Exchange> extends Processor, Service {\n\n    Endpoint<E> getEndpoint();\n\n    /**\n     * Creates a new exchange to send to this endpoint\n     *\n     * @return a newly created exchange\n     */\n    E createExchange();\n\n    /**\n     * Creates a new exchange for communicating with this exchange using the given exchange to pre-populate the values\n     * of the headers and messages\n     */\n    E createExchange(E exchange);", "functions": [{"function_name": "getEndpoint", "code": "    Endpoint<E> getEndpoint();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "createExchange", "code": "    E createExchange();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "createExchange", "code": "    E createExchange(E exchange);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-1.5-5262", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/PrintGridlinesRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.PrintGridlinesRecord", "code": "public class PrintGridlinesRecord\n    extends Record\n{\n    public final static short sid = 0x2b;\n    private short             field_1_print_gridlines;\n\n    public PrintGridlinesRecord()\n    {\n    }\n\n    /**\n     * Constructs a PrintGridlines record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x2b or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public PrintGridlinesRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a PrintGridlines record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x2b or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record data\n     */\n\n    public PrintGridlinesRecord(short id, short size, byte [] data,\n                                int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PrintGridlines RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_print_gridlines = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set whether or not to print the gridlines (and make your spreadsheet ugly)\n     *\n     * @param pg  make spreadsheet ugly - Y/N\n     */\n\n    public void setPrintGridlines(boolean pg)\n    {\n        if (pg == true)\n        {\n            field_1_print_gridlines = 1;\n        }\n        else\n        {\n            field_1_print_gridlines = 0;\n        }\n    }\n\n    /**\n     * get whether or not to print the gridlines (and make your spreadsheet ugly)\n     *\n     * @return make spreadsheet ugly - Y/N\n     */\n\n    public boolean getPrintGridlines()\n    {\n        return (field_1_print_gridlines == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PRINTGRIDLINES]\\n\");\n        buffer.append(\"    .printgridlines = \").append(getPrintGridlines())\n            .append(\"\\n\");\n        buffer.append(\"[/PRINTGRIDLINES]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, field_1_print_gridlines);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PrintGridlines RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_print_gridlines = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setPrintGridlines", "code": "    public void setPrintGridlines(boolean pg)\n    {\n        if (pg == true)\n        {\n            field_1_print_gridlines = 1;\n        }\n        else\n        {\n            field_1_print_gridlines = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getPrintGridlines", "code": "    public boolean getPrintGridlines()\n    {\n        return (field_1_print_gridlines == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PRINTGRIDLINES]\\n\");\n        buffer.append(\"    .printgridlines = \").append(getPrintGridlines())\n            .append(\"\\n\");\n        buffer.append(\"[/PRINTGRIDLINES]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, field_1_print_gridlines);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [6, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 6], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "PrintGridlinesRecord", "code": "    public PrintGridlinesRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PrintGridlinesRecord", "code": "    public PrintGridlinesRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "PrintGridlinesRecord", "code": "    public PrintGridlinesRecord(short id, short size, byte [] data,\n                                int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.5-285", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/Jar.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Jar", "code": "public class Jar extends Zip {\n    /** The index file name. */\n    private static final String INDEX_NAME = \"META-INF/INDEX.LIST\";\n\n    /** The mainfest file name. */\n    private static final String MANIFEST_NAME = \"META-INF/MANIFEST.MF\";\n\n    /** merged manifests added through addConfiguredManifest */\n    private Manifest configuredManifest;\n    /** shadow of the above if upToDate check alters the value */\n    private Manifest savedConfiguredManifest;\n\n    /**  merged manifests added through filesets */\n    private Manifest filesetManifest;\n\n    /** \n     * Manifest of original archive, will be set to null if not in\n     * update mode.\n     */\n    private Manifest originalManifest;\n\n    /**\n     *  whether to merge fileset manifests;\n     *  value is true if filesetmanifest is 'merge' or 'mergewithoutmain'\n     */\n    private FilesetManifestConfig filesetManifestConfig;\n\n    /**\n     *  Whether to create manifest file on finalizeOutputStream?\n     */\n    private boolean manifestOnFinalize = true;\n\n    /**\n     * whether to merge the main section of fileset manifests;\n     * value is true if filesetmanifest is 'merge'\n     */\n    private boolean mergeManifestsMain = true;\n\n    /** the manifest specified by the 'manifest' attribute **/\n    private Manifest manifest;\n\n    /** The encoding to use when reading in a manifest file */\n    private String manifestEncoding;\n    \n    /**\n     * The file found from the 'manifest' attribute.  This can be\n     * either the location of a manifest, or the name of a jar added\n     * through a fileset.  If its the name of an added jar, the\n     * manifest is looked for in META-INF/MANIFEST.MF\n     */\n    private File manifestFile;\n\n    /** jar index is JDK 1.3+ only */\n    private boolean index = false;\n\n    /** \n     * whether to really create the archive in createEmptyZip, will\n     * get set in getResourcesToAdd.\n     */\n    private boolean createEmpty = false;\n\n    /** constructor */\n    public Jar() {\n        super();\n        archiveType = \"jar\";\n        emptyBehavior = \"create\";\n        setEncoding(\"UTF8\");\n    }\n\n    /**\n     * @ant.attribute ignore=\"true\"\n     */\n    public void setWhenempty(WhenEmpty we) {\n        log(\"JARs are never empty, they contain at least a manifest file\",\n            Project.MSG_WARN);\n    }\n\n    /**\n     * @deprecated Use setDestFile(File) instead\n     */\n    public void setJarfile(File jarFile) {\n        setDestFile(jarFile);\n    }\n\n    /**\n     * Set whether or not to create an index list for classes.\n     * This may speed up classloading in some cases.\n     */\n    public void setIndex(boolean flag){\n        index = flag;\n    }\n\n    /**\n     * Set whether or not to create an index list for classes.\n     * This may speed up classloading in some cases.\n     */\n    public void setManifestEncoding(String manifestEncoding) {\n        this.manifestEncoding = manifestEncoding;\n    }\n\n    /**\n     * Allows the manifest for the archive file to be provided inline\n     * in the build file rather than in an external file.\n     *\n     * @param newManifest\n     * @throws ManifestException\n     */\n    public void addConfiguredManifest(Manifest newManifest)\n        throws ManifestException {\n        if (configuredManifest == null) {\n            configuredManifest = newManifest;\n        } else {\n            configuredManifest.merge(newManifest);\n        }\n        savedConfiguredManifest = configuredManifest;\n    }\n\n    /**\n     * The manifest file to use. This can be either the location of a manifest,\n     * or the name of a jar added through a fileset. If its the name of an added\n     * jar, the task expects the manifest to be in the jar at META-INF/MANIFEST.MF.\n     *\n     * @param manifestFile the manifest file to use.\n     */\n    public void setManifest(File manifestFile) {\n        if (!manifestFile.exists()) {\n            throw new BuildException(\"Manifest file: \" + manifestFile +\n                                     \" does not exist.\", getLocation());\n        }\n\n        this.manifestFile = manifestFile;\n    }\n\n    private Manifest getManifest(File manifestFile) {\n\n        Manifest newManifest = null;\n        FileInputStream fis = null;\n        InputStreamReader isr = null;\n        try {\n            fis = new FileInputStream(manifestFile);\n            if (manifestEncoding == null) {\n                isr = new InputStreamReader(fis);\n            } else {\n                isr = new InputStreamReader(fis, manifestEncoding);\n            }\n            newManifest = getManifest(isr);\n        } catch (UnsupportedEncodingException e) {\n            throw new BuildException(\"Unsupported encoding while reading manifest: \"\n                                     + e.getMessage(), e);\n        } catch (IOException e) {\n            throw new BuildException(\"Unable to read manifest file: \"\n                                     + manifestFile\n                                     + \" (\" + e.getMessage() + \")\", e);\n        } finally {\n            if (isr != null) {\n                try {\n                    isr.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n        return newManifest;\n    }\n\n    /**\n     * @return null if jarFile doesn't contain a manifest, the\n     * manifest otherwise.\n     * @since Ant 1.5.2\n     */\n    private Manifest getManifestFromJar(File jarFile) throws IOException {\n        ZipFile zf = null;\n        try {\n            zf = new ZipFile(jarFile);\n            \n            Enumeration enum1 = zf.entries();\n            while (enum1.hasMoreElements()) {\n                ZipEntry ze = (ZipEntry) enum1.nextElement();\n                if (ze.getName().equalsIgnoreCase(MANIFEST_NAME)) {\n                    InputStreamReader isr =\n                        new InputStreamReader(zf.getInputStream(ze), \"UTF-8\");\n                    return getManifest(isr);\n                }\n            }\n            return null;\n        } finally {\n            if (zf != null) {\n                try {\n                    zf.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n    }\n\n    private Manifest getManifest(Reader r) {\n\n        Manifest newManifest = null;\n        try {\n            newManifest = new Manifest(r);\n        } catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest: \" + manifestFile,\n                                     e, getLocation());\n        } catch (IOException e) {\n            throw new BuildException(\"Unable to read manifest file\"\n                                     + \" (\" + e.getMessage() + \")\", e);\n        }\n        return newManifest;\n    }\n\n    /**\n     * Behavior when a Manifest is found in a zipfileset or zipgroupfileset file.\n     * Valid values are \"skip\", \"merge\", and \"mergewithoutmain\".\n     * \"merge\" will merge all of manifests together, and merge this into any\n     * other specified manifests.\n     * \"mergewithoutmain\" merges everything but the Main section of the manifests.\n     * Default value is \"skip\".\n     *\n     * Note: if this attribute's value is not \"skip\", the created jar will not\n     * be readable by using java.util.jar.JarInputStream\n     *\n     * @param config setting for found manifest behavior.\n     */\n    /*\n    public void setFilesetmanifest(FilesetManifestConfig config) {\n        filesetManifestConfig = config;\n        mergeManifestsMain = \"merge\".equals(config.getValue());\n    }\n    */\n\n    /**\n     * Adds a zipfileset to include in the META-INF directory.\n     *\n     * @param fs zipfileset to add\n     */\n    public void addMetainf(ZipFileSet fs) {\n        fs.setPrefix(\"META-INF/\");\n        super.addFileset(fs);\n    }\n\n    protected void initZipOutputStream(ZipOutputStream zOut)\n        throws IOException, BuildException {\n        if (filesetManifestConfig == null\n            || filesetManifestConfig.getValue().equals(\"skip\")) {\n            manifestOnFinalize = false;\n            Manifest jarManifest = createManifest();\n            writeManifest(zOut, jarManifest);\n        }\n    }\n\n    private Manifest createManifest()\n        throws BuildException {\n        try {\n            Manifest finalManifest = Manifest.getDefaultManifest();\n\n            if (manifest == null) {\n                if (manifestFile != null) {\n                    manifest = getManifest(manifestFile);\n                }\n            }\n\n            /*\n             * Precedence: manifestFile wins over inline manifest,\n             * over manifests read from the filesets over the original\n             * manifest.\n             *\n             * merge with null argument is a no-op\n             */\n\n            if (isInUpdateMode()) {\n                finalManifest.merge(originalManifest);\n            }\n            finalManifest.merge(filesetManifest);\n            finalManifest.merge(configuredManifest);\n            finalManifest.merge(manifest, !mergeManifestsMain);\n\n            return finalManifest;\n\n        } catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest\", e, getLocation());\n        }\n    }\n\n    private void writeManifest(ZipOutputStream zOut, Manifest manifest)\n         throws IOException {\n        for (Enumeration e = manifest.getWarnings();\n             e.hasMoreElements();) {\n            log(\"Manifest warning: \" + (String) e.nextElement(),\n                Project.MSG_WARN);\n        }\n\n        zipDir(null, zOut, \"META-INF/\", ZipFileSet.DEFAULT_DIR_MODE);\n        ByteArrayOutputStream baos = new ByteArrayOutputStream();\n        OutputStreamWriter osw = new OutputStreamWriter(baos, \"UTF-8\");\n        PrintWriter writer = new PrintWriter(osw);\n        manifest.write(writer);\n        writer.flush();\n\n        ByteArrayInputStream bais =\n            new ByteArrayInputStream(baos.toByteArray());\n        super.zipFile(bais, zOut, MANIFEST_NAME,\n                      System.currentTimeMillis(), null,\n                      ZipFileSet.DEFAULT_FILE_MODE);\n        super.initZipOutputStream(zOut);\n    }\n\n    protected void finalizeZipOutputStream(ZipOutputStream zOut)\n            throws IOException, BuildException {\n        if (manifestOnFinalize) {\n            Manifest jarManifest = createManifest();\n            writeManifest(zOut, jarManifest);\n        }\n\n        if (index) {\n            createIndexList(zOut);\n        }\n    }\n\n    /**\n     * Create the index list to speed up classloading.\n     * This is a JDK 1.3+ specific feature and is enabled by default. See\n     * the JAR index specification</a> for more details.\n     *\n     * @param zOut the zip stream representing the jar being built.\n     * @throws IOException thrown if there is an error while creating the\n     * index and adding it to the zip stream.\n     */\n    private void createIndexList(ZipOutputStream zOut) throws IOException {\n        ByteArrayOutputStream baos = new ByteArrayOutputStream();\n        PrintWriter writer = new PrintWriter(new OutputStreamWriter(baos,\n                                                                    \"UTF8\"));\n\n        writer.println(\"JarIndex-Version: 1.0\");\n        writer.println();\n\n        writer.println(zipFile.getName());\n\n        Enumeration enum1 = addedDirs.keys();\n        while (enum1.hasMoreElements()) {\n            String dir = (String) enum1.nextElement();\n\n            dir = dir.replace('\\\\', '/');\n            int pos = dir.lastIndexOf('/');\n            if (pos != -1){\n                dir = dir.substring(0, pos);\n            }\n\n            if (dir.startsWith(\"META-INF\")) {\n                continue;\n            }\n            writer.println(dir);\n        }\n\n        writer.flush();\n        ByteArrayInputStream bais =\n            new ByteArrayInputStream(baos.toByteArray());\n        super.zipFile(bais, zOut, INDEX_NAME, System.currentTimeMillis(), null,\n                      ZipFileSet.DEFAULT_FILE_MODE);\n    }\n\n    /**\n     * Overriden from Zip class to deal with manifests\n     */\n    protected void zipFile(InputStream is, ZipOutputStream zOut, String vPath,\n                           long lastModified, File fromArchive, int mode)\n        throws IOException {\n        if (MANIFEST_NAME.equalsIgnoreCase(vPath))  {\n            filesetManifest(fromArchive, is);\n        } else {\n            super.zipFile(is, zOut, vPath, lastModified, fromArchive, mode);\n        }\n    }\n\n    private void filesetManifest(File file, InputStream is) throws IOException {\n        if (manifestFile != null && manifestFile.equals(file)) {\n            log(\"Found manifest \" + file, Project.MSG_VERBOSE);\n            try {\n                if (is != null) {\n                    InputStreamReader isr;\n                    if (manifestEncoding == null) {\n                        isr = new InputStreamReader(is);\n                    } else {\n                        isr = new InputStreamReader(is, manifestEncoding);\n                    }\n                    manifest = getManifest(isr);\n                } else {\n                    manifest = getManifest(file);\n                }\n            } catch (UnsupportedEncodingException e) {\n                throw new BuildException(\"Unsupported encoding while reading \" \n                    + \"manifest: \" + e.getMessage(), e);\n            }\n        } else if (filesetManifestConfig != null &&\n                   !filesetManifestConfig.getValue().equals(\"skip\")) {\n            log(\"Found manifest to merge in file \" + file,\n                Project.MSG_VERBOSE);\n\n            try {\n                Manifest newManifest = null;\n                if (is != null) {\n                    InputStreamReader isr;\n                    if (manifestEncoding == null) {\n                        isr = new InputStreamReader(is);\n                    } else {\n                        isr = new InputStreamReader(is, manifestEncoding);\n                    }\n                    newManifest = getManifest(isr);\n                } else {\n                    newManifest = getManifest(file);\n                }\n\n                if (filesetManifest == null) {\n                    filesetManifest = newManifest;\n                } else {\n                    filesetManifest.merge(newManifest);\n                }\n            } catch (UnsupportedEncodingException e) {\n                throw new BuildException(\"Unsupported encoding while reading \" \n                    + \"manifest: \" + e.getMessage(), e);\n            } catch (ManifestException e) {\n                log(\"Manifest in file \" + file + \" is invalid: \"\n                    + e.getMessage(), Project.MSG_ERR);\n                throw new BuildException(\"Invalid Manifest\", e, getLocation());\n            }\n        } else {\n\n\n        }\n    }\n\n    /**\n     * Collect the resources that are newer than the corresponding\n     * entries (or missing) in the original archive.\n     *\n     * <p>If we are going to recreate the archive instead of updating\n     * it, all resources should be considered as new, if a single one\n     * is.  Because of this, subclasses overriding this method must\n     * call <code>super.getResourcesToAdd</code> and indicate with the\n     * third arg if they already know that the archive is\n     * out-of-date.</p>\n     *\n     * @param filesets The filesets to grab resources from\n     * @param zipFile intended archive file (may or may not exist)\n     * @param needsUpdate whether we already know that the archive is\n     * out-of-date.  Subclasses overriding this method are supposed to\n     * set this value correctly in their call to\n     * super.getResourcesToAdd.\n     * @return an array of resources to add for each fileset passed in as well\n     *         as a flag that indicates whether the archive is uptodate.\n     *\n     * @exception BuildException if it likes\n     */\n    protected ArchiveState getResourcesToAdd(FileSet[] filesets,\n                                             File zipFile,\n                                             boolean needsUpdate)\n        throws BuildException {\n\n        if (zipFile.exists()) {\n\n            try {\n                originalManifest = getManifestFromJar(zipFile);\n                if (originalManifest == null) {\n                    log(\"Updating jar since the current jar has no manifest\",\n                        Project.MSG_VERBOSE);\n                    needsUpdate = true;\n                } else {\n                    Manifest mf = createManifest();\n                    if (!mf.equals(originalManifest)) {\n                        log(\"Updating jar since jar manifest has changed\", \n                            Project.MSG_VERBOSE);\n                        needsUpdate = true;\n                    }\n                }\n            } catch (Throwable t) {\n                log(\"error while reading original manifest: \" + t.getMessage(),\n                    Project.MSG_WARN);\n                needsUpdate = true;\n            }\n\n        } else {\n            needsUpdate = true;\n        }\n\n        createEmpty = needsUpdate;\n        return super.getResourcesToAdd(filesets, zipFile, needsUpdate);\n    }\n\n    protected boolean createEmptyZip(File zipFile) throws BuildException {\n        if (!createEmpty) {\n            return true;\n        }\n        \n        ZipOutputStream zOut = null;\n        try {\n            log(\"Building MANIFEST-only jar: \" \n                + getDestFile().getAbsolutePath());\n            zOut = new ZipOutputStream(new FileOutputStream(getDestFile()));\n\n            zOut.setEncoding(getEncoding());\n            if (isCompress()) {\n                zOut.setMethod(ZipOutputStream.DEFLATED);\n            } else {\n                zOut.setMethod(ZipOutputStream.STORED);\n            }\n            initZipOutputStream(zOut);\n            finalizeZipOutputStream(zOut);\n        } catch (IOException ioe) {\n            throw new BuildException(\"Could not create almost empty JAR archive\"\n                                     + \" (\" + ioe.getMessage() + \")\", ioe,\n                                     getLocation());\n        } finally {\n            try {\n                if (zOut != null) {\n                    zOut.close();\n                }\n            } catch (IOException ex) {\n            }\n            createEmpty = false;\n        }\n        return true;\n    }\n\n    /**\n     * Make sure we don't think we already have a MANIFEST next time this task\n     * gets executed.\n     *\n     * @see Zip#cleanUp\n     */\n    protected void cleanUp() {\n        super.cleanUp();\n\n        manifest = null;\n        configuredManifest = savedConfiguredManifest;\n        filesetManifest = null;\n    }\n\n    /**\n     * reset to default values.\n     *\n     * @see Zip#reset\n     *\n     * @since 1.44, Ant 1.5\n     */\n    public void reset() {\n        super.reset();\n        configuredManifest = null;\n        filesetManifestConfig = null;\n        mergeManifestsMain = false;\n        manifestFile = null;\n        index = false;\n    }\n\n    public static class FilesetManifestConfig extends EnumeratedAttribute {\n        public String[] getValues() {\n            return new String[] {\"skip\", \"merge\", \"mergewithoutmain\"};", "functions": [{"function_name": "setWhenempty", "code": "    public void setWhenempty(WhenEmpty we) {\n        log(\"JARs are never empty, they contain at least a manifest file\",\n            Project.MSG_WARN);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setJarfile", "code": "    public void setJarfile(File jarFile) {\n        setDestFile(jarFile);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIndex", "code": "    public void setIndex(boolean flag){\n        index = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setManifestEncoding", "code": "    public void setManifestEncoding(String manifestEncoding) {\n        this.manifestEncoding = manifestEncoding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addConfiguredManifest", "code": "    public void addConfiguredManifest(Manifest newManifest)\n        throws ManifestException {\n        if (configuredManifest == null) {\n            configuredManifest = newManifest;\n        } else {\n            configuredManifest.merge(newManifest);\n        }\n        savedConfiguredManifest = configuredManifest;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setManifest", "code": "    public void setManifest(File manifestFile) {\n        if (!manifestFile.exists()) {\n            throw new BuildException(\"Manifest file: \" + manifestFile +\n                                     \" does not exist.\", getLocation());\n        }\n\n        this.manifestFile = manifestFile;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getManifest", "code": "    private Manifest getManifest(File manifestFile) {\n\n        Manifest newManifest = null;\n        FileInputStream fis = null;\n        InputStreamReader isr = null;\n        try {\n            fis = new FileInputStream(manifestFile);\n            if (manifestEncoding == null) {\n                isr = new InputStreamReader(fis);\n            } else {\n                isr = new InputStreamReader(fis, manifestEncoding);\n            }\n            newManifest = getManifest(isr);\n        } catch (UnsupportedEncodingException e) {\n            throw new BuildException(\"Unsupported encoding while reading manifest: \"\n                                     + e.getMessage(), e);\n        } catch (IOException e) {\n            throw new BuildException(\"Unable to read manifest file: \"\n                                     + manifestFile\n                                     + \" (\" + e.getMessage() + \")\", e);\n        } finally {\n            if (isr != null) {\n                try {\n                    isr.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n        return newManifest;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CATCH", "CATCH", "IF", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [8, 12], [9, 13], [2, 14], [10, 15], [2, 16], [3, 17], [4, 18], [5, 19], [7, 20], [11, 21], [12, 22], [13, 23], [14, 24], [15, 25], [16, 26], [20, 27], [22, 28], [23, 29], [10, 30], [10, 31], [20, 32], [28, 33], [28, 34], [29, 35], [29, 36], [30, 37], [31, 38], [34, 39], [34, 40], [40, 41], [40, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 8], [13, 9], [14, 2], [15, 10], [16, 2], [17, 3], [18, 4], [19, 5], [20, 7], [21, 11], [22, 12], [23, 13], [24, 14], [25, 15], [26, 16], [27, 20], [28, 22], [29, 23], [30, 10], [31, 10], [32, 20], [33, 28], [34, 28], [35, 29], [36, 29], [37, 30], [38, 31], [39, 34], [40, 34], [41, 40], [42, 40], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "getManifestFromJar", "code": "    private Manifest getManifestFromJar(File jarFile) throws IOException {\n        ZipFile zf = null;\n        try {\n            zf = new ZipFile(jarFile);\n            \n            Enumeration enum1 = zf.entries();\n            while (enum1.hasMoreElements()) {\n                ZipEntry ze = (ZipEntry) enum1.nextElement();\n                if (ze.getName().equalsIgnoreCase(MANIFEST_NAME)) {\n                    InputStreamReader isr =\n                        new InputStreamReader(zf.getInputStream(ze), \"UTF-8\");\n                    return getManifest(isr);\n                }\n            }\n            return null;\n        } finally {\n            if (zf != null) {\n                try {\n                    zf.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "IF", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CATCH", "CALL", "CALL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [1, 11], [2, 12], [4, 13], [8, 14], [6, 15], [6, 16], [7, 17], [11, 18], [13, 19], [15, 20], [13, 21], [15, 22], [15, 23], [20, 24], [22, 25], [16, 26], [23, 27], [27, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 1], [12, 2], [13, 4], [14, 8], [15, 6], [16, 6], [17, 7], [18, 11], [19, 13], [20, 15], [21, 13], [22, 15], [23, 15], [24, 20], [25, 22], [26, 16], [27, 23], [28, 27], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getManifest", "code": "    private Manifest getManifest(Reader r) {\n\n        Manifest newManifest = null;\n        try {\n            newManifest = new Manifest(r);\n        } catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest: \" + manifestFile,\n                                     e, getLocation());\n        } catch (IOException e) {\n            throw new BuildException(\"Unable to read manifest file\"\n                                     + \" (\" + e.getMessage() + \")\", e);\n        }\n        return newManifest;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "CATCH", "CATCH", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [6, 8], [2, 9], [3, 10], [7, 11], [8, 12], [6, 13], [9, 14], [11, 15], [12, 16], [12, 17], [13, 18], [15, 19], [15, 20], [17, 21], [18, 22], [18, 23], [20, 24], [20, 25], [25, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 6], [9, 2], [10, 3], [11, 7], [12, 8], [13, 6], [14, 9], [15, 11], [16, 12], [17, 12], [18, 13], [19, 15], [20, 15], [21, 17], [22, 18], [23, 18], [24, 20], [25, 20], [26, 25], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "addMetainf", "code": "    public void addMetainf(ZipFileSet fs) {\n        fs.setPrefix(\"META-INF/\");\n        super.addFileset(fs);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "initZipOutputStream", "code": "    protected void initZipOutputStream(ZipOutputStream zOut)\n        throws IOException, BuildException {\n        if (filesetManifestConfig == null\n            || filesetManifestConfig.getValue().equals(\"skip\")) {\n            manifestOnFinalize = false;\n            Manifest jarManifest = createManifest();\n            writeManifest(zOut, jarManifest);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [1, 8], [5, 9], [6, 10], [4, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 1], [9, 5], [10, 6], [11, 4], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createManifest", "code": "    private Manifest createManifest()\n        throws BuildException {\n        try {\n            Manifest finalManifest = Manifest.getDefaultManifest();\n\n            if (manifest == null) {\n                if (manifestFile != null) {\n                    manifest = getManifest(manifestFile);\n                }\n            }\n\n            /*\n             * Precedence: manifestFile wins over inline manifest,\n             * over manifests read from the filesets over the original\n             * manifest.\n             *\n             * merge with null argument is a no-op\n             */\n\n            if (isInUpdateMode()) {\n                finalManifest.merge(originalManifest);\n            }\n            finalManifest.merge(filesetManifest);\n            finalManifest.merge(configuredManifest);\n            finalManifest.merge(manifest, !mergeManifestsMain);\n\n            return finalManifest;\n\n        } catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest\", e, getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "IF", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [1, 8], [1, 9], [1, 10], [4, 11], [5, 12], [7, 13], [2, 14], [5, 15], [12, 16], [6, 17], [13, 18], [13, 19], [14, 20], [4, 21], [15, 22], [20, 23], [20, 24], [22, 25], [15, 26], [26, 27], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 1], [9, 1], [10, 1], [11, 4], [12, 5], [13, 7], [14, 2], [15, 5], [16, 12], [17, 6], [18, 13], [19, 13], [20, 14], [21, 4], [22, 15], [23, 20], [24, 20], [25, 22], [26, 15], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "writeManifest", "code": "    private void writeManifest(ZipOutputStream zOut, Manifest manifest)\n         throws IOException {\n        for (Enumeration e = manifest.getWarnings();\n             e.hasMoreElements();) {\n            log(\"Manifest warning: \" + (String) e.nextElement(),\n                Project.MSG_WARN);\n        }\n\n        zipDir(null, zOut, \"META-INF/\", ZipFileSet.DEFAULT_DIR_MODE);\n        ByteArrayOutputStream baos = new ByteArrayOutputStream();\n        OutputStreamWriter osw = new OutputStreamWriter(baos, \"UTF-8\");\n        PrintWriter writer = new PrintWriter(osw);\n        manifest.write(writer);\n        writer.flush();\n\n        ByteArrayInputStream bais =\n            new ByteArrayInputStream(baos.toByteArray());\n        super.zipFile(bais, zOut, MANIFEST_NAME,\n                      System.currentTimeMillis(), null,\n                      ZipFileSet.DEFAULT_FILE_MODE);\n        super.initZipOutputStream(zOut);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [5, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [4, 17], [10, 18], [10, 19], [14, 20], [16, 21], [5, 22], [5, 23], [22, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 5], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 4], [18, 10], [19, 10], [20, 14], [21, 16], [22, 5], [23, 5], [24, 22], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "finalizeZipOutputStream", "code": "    protected void finalizeZipOutputStream(ZipOutputStream zOut)\n            throws IOException, BuildException {\n        if (manifestOnFinalize) {\n            Manifest jarManifest = createManifest();\n            writeManifest(zOut, jarManifest);\n        }\n\n        if (index) {\n            createIndexList(zOut);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createIndexList", "code": "    private void createIndexList(ZipOutputStream zOut) throws IOException {\n        ByteArrayOutputStream baos = new ByteArrayOutputStream();\n        PrintWriter writer = new PrintWriter(new OutputStreamWriter(baos,\n                                                                    \"UTF8\"));\n\n        writer.println(\"JarIndex-Version: 1.0\");\n        writer.println();\n\n        writer.println(zipFile.getName());\n\n        Enumeration enum1 = addedDirs.keys();\n        while (enum1.hasMoreElements()) {\n            String dir = (String) enum1.nextElement();\n\n            dir = dir.replace('\\\\', '/');\n            int pos = dir.lastIndexOf('/');\n            if (pos != -1){\n                dir = dir.substring(0, pos);\n            }\n\n            if (dir.startsWith(\"META-INF\")) {\n                continue;\n            }\n            writer.println(dir);\n        }\n\n        writer.flush();\n        ByteArrayInputStream bais =\n            new ByteArrayInputStream(baos.toByteArray());\n        super.zipFile(bais, zOut, INDEX_NAME, System.currentTimeMillis(), null,\n                      ZipFileSet.DEFAULT_FILE_MODE);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [2, 16], [2, 17], [2, 18], [3, 19], [9, 20], [11, 21], [4, 22], [5, 23], [14, 24], [2, 25], [15, 26], [16, 27], [2, 28], [22, 29], [15, 30], [26, 31], [27, 32], [17, 33], [28, 34], [29, 35], [16, 36], [33, 37], [34, 38], [34, 39], [18, 40], [36, 41], [41, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 2], [17, 2], [18, 2], [19, 3], [20, 9], [21, 11], [22, 4], [23, 5], [24, 14], [25, 2], [26, 15], [27, 16], [28, 2], [29, 22], [30, 15], [31, 26], [32, 27], [33, 17], [34, 28], [35, 29], [36, 16], [37, 33], [38, 34], [39, 34], [40, 18], [41, 36], [42, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "zipFile", "code": "    protected void zipFile(InputStream is, ZipOutputStream zOut, String vPath,\n                           long lastModified, File fromArchive, int mode)\n        throws IOException {\n        if (MANIFEST_NAME.equalsIgnoreCase(vPath))  {\n            filesetManifest(fromArchive, is);\n        } else {\n            super.zipFile(is, zOut, vPath, lastModified, fromArchive, mode);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "filesetManifest", "code": "    private void filesetManifest(File file, InputStream is) throws IOException {\n        if (manifestFile != null && manifestFile.equals(file)) {\n            log(\"Found manifest \" + file, Project.MSG_VERBOSE);\n            try {\n                if (is != null) {\n                    InputStreamReader isr;\n                    if (manifestEncoding == null) {\n                        isr = new InputStreamReader(is);\n                    } else {\n                        isr = new InputStreamReader(is, manifestEncoding);\n                    }\n                    manifest = getManifest(isr);\n                } else {\n                    manifest = getManifest(file);\n                }\n            } catch (UnsupportedEncodingException e) {\n                throw new BuildException(\"Unsupported encoding while reading \" \n                    + \"manifest: \" + e.getMessage(), e);\n            }\n        } else if (filesetManifestConfig != null &&\n                   !filesetManifestConfig.getValue().equals(\"skip\")) {\n            log(\"Found manifest to merge in file \" + file,\n                Project.MSG_VERBOSE);\n\n            try {\n                Manifest newManifest = null;\n                if (is != null) {\n                    InputStreamReader isr;\n                    if (manifestEncoding == null) {\n                        isr = new InputStreamReader(is);\n                    } else {\n                        isr = new InputStreamReader(is, manifestEncoding);\n                    }\n                    newManifest = getManifest(isr);\n                } else {\n                    newManifest = getManifest(file);\n                }\n\n                if (filesetManifest == null) {\n                    filesetManifest = newManifest;\n                } else {\n                    filesetManifest.merge(newManifest);\n                }\n            } catch (UnsupportedEncodingException e) {\n                throw new BuildException(\"Unsupported encoding while reading \" \n                    + \"manifest: \" + e.getMessage(), e);\n            } catch (ManifestException e) {\n                log(\"Manifest in file \" + file + \" is invalid: \"\n                    + e.getMessage(), Project.MSG_ERR);\n                throw new BuildException(\"Invalid Manifest\", e, getLocation());\n            }\n        } else {", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "TRY", "CALL", "BINARY_OP", "TRY", "CALL", "BINARY_OP", "CATCH", "IF", "CALL", "LITERAL_ANCHOR", "CATCH", "CATCH", "IF", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [5, 9], [4, 10], [6, 11], [6, 12], [7, 13], [7, 14], [1, 15], [9, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [4, 22], [11, 23], [12, 24], [13, 25], [14, 26], [15, 27], [17, 28], [18, 29], [19, 30], [20, 31], [22, 32], [23, 33], [25, 34], [14, 35], [14, 36], [26, 37], [27, 38], [28, 39], [17, 40], [29, 41], [30, 42], [20, 43], [20, 44], [31, 45], [21, 46], [32, 47], [34, 48], [14, 49], [14, 50], [35, 51], [39, 52], [39, 53], [40, 54], [41, 55], [19, 56], [19, 57], [20, 58], [20, 59], [43, 60], [48, 61], [48, 62], [49, 63], [50, 64], [51, 65], [54, 66], [54, 67], [55, 68], [55, 69], [58, 70], [59, 71], [60, 72], [62, 73], [62, 74], [35, 75], [35, 76], [67, 77], [67, 78], [69, 79], [69, 80], [43, 81], [43, 82], [75, 83], [76, 84], [78, 85], [81, 86], [82, 87], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 5], [10, 4], [11, 6], [12, 6], [13, 7], [14, 7], [15, 1], [16, 9], [17, 10], [18, 10], [19, 10], [20, 10], [21, 10], [22, 4], [23, 11], [24, 12], [25, 13], [26, 14], [27, 15], [28, 17], [29, 18], [30, 19], [31, 20], [32, 22], [33, 23], [34, 25], [35, 14], [36, 14], [37, 26], [38, 27], [39, 28], [40, 17], [41, 29], [42, 30], [43, 20], [44, 20], [45, 31], [46, 21], [47, 32], [48, 34], [49, 14], [50, 14], [51, 35], [52, 39], [53, 39], [54, 40], [55, 41], [56, 19], [57, 19], [58, 20], [59, 20], [60, 43], [61, 48], [62, 48], [63, 49], [64, 50], [65, 51], [66, 54], [67, 54], [68, 55], [69, 55], [70, 58], [71, 59], [72, 60], [73, 62], [74, 62], [75, 35], [76, 35], [77, 67], [78, 67], [79, 69], [80, 69], [81, 43], [82, 43], [83, 75], [84, 76], [85, 78], [86, 81], [87, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}, {"function_name": "getResourcesToAdd", "code": "    protected ArchiveState getResourcesToAdd(FileSet[] filesets,\n                                             File zipFile,\n                                             boolean needsUpdate)\n        throws BuildException {\n\n        if (zipFile.exists()) {\n\n            try {\n                originalManifest = getManifestFromJar(zipFile);\n                if (originalManifest == null) {\n                    log(\"Updating jar since the current jar has no manifest\",\n                        Project.MSG_VERBOSE);\n                    needsUpdate = true;\n                } else {\n                    Manifest mf = createManifest();\n                    if (!mf.equals(originalManifest)) {\n                        log(\"Updating jar since jar manifest has changed\", \n                            Project.MSG_VERBOSE);\n                        needsUpdate = true;\n                    }\n                }\n            } catch (Throwable t) {\n                log(\"error while reading original manifest: \" + t.getMessage(),\n                    Project.MSG_WARN);\n                needsUpdate = true;\n            }\n\n        } else {\n            needsUpdate = true;\n        }\n\n        createEmpty = needsUpdate;\n        return super.getResourcesToAdd(filesets, zipFile, needsUpdate);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "TRY", "ASSIGN", "CATCH", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [8, 10], [8, 11], [9, 12], [11, 13], [8, 14], [10, 15], [10, 16], [11, 17], [11, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [11, 24], [11, 25], [22, 26], [22, 27], [18, 28], [24, 29], [25, 30], [17, 31], [17, 32], [31, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 8], [11, 8], [12, 9], [13, 11], [14, 8], [15, 10], [16, 10], [17, 11], [18, 11], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 11], [25, 11], [26, 22], [27, 22], [28, 18], [29, 24], [30, 25], [31, 17], [32, 17], [33, 31], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "createEmptyZip", "code": "    protected boolean createEmptyZip(File zipFile) throws BuildException {\n        if (!createEmpty) {\n            return true;\n        }\n        \n        ZipOutputStream zOut = null;\n        try {\n            log(\"Building MANIFEST-only jar: \" \n                + getDestFile().getAbsolutePath());\n            zOut = new ZipOutputStream(new FileOutputStream(getDestFile()));\n\n            zOut.setEncoding(getEncoding());\n            if (isCompress()) {\n                zOut.setMethod(ZipOutputStream.DEFLATED);\n            } else {\n                zOut.setMethod(ZipOutputStream.STORED);\n            }\n            initZipOutputStream(zOut);\n            finalizeZipOutputStream(zOut);\n        } catch (IOException ioe) {\n            throw new BuildException(\"Could not create almost empty JAR archive\"\n                                     + \" (\" + ioe.getMessage() + \")\", ioe,\n                                     getLocation());\n        } finally {\n            try {\n                if (zOut != null) {\n                    zOut.close();\n                }\n            } catch (IOException ex) {\n            }\n            createEmpty = false;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "TRY", "CATCH", "IF", "ASSIGN", "CATCH", "IF", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [7, 12], [8, 13], [2, 14], [2, 15], [9, 16], [2, 17], [2, 18], [2, 19], [3, 20], [4, 21], [10, 22], [12, 23], [13, 24], [17, 25], [18, 26], [19, 27], [21, 28], [23, 29], [24, 30], [24, 31], [9, 32], [9, 33], [26, 34], [27, 35], [27, 36], [12, 37], [31, 38], [31, 39], [34, 40], [35, 41], [39, 42], [39, 43], [43, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 7], [13, 8], [14, 2], [15, 2], [16, 9], [17, 2], [18, 2], [19, 2], [20, 3], [21, 4], [22, 10], [23, 12], [24, 13], [25, 17], [26, 18], [27, 19], [28, 21], [29, 23], [30, 24], [31, 24], [32, 9], [33, 9], [34, 26], [35, 27], [36, 27], [37, 12], [38, 31], [39, 31], [40, 34], [41, 35], [42, 39], [43, 39], [44, 43], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "cleanUp", "code": "    protected void cleanUp() {\n        super.cleanUp();\n\n        manifest = null;\n        configuredManifest = savedConfiguredManifest;\n        filesetManifest = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "reset", "code": "    public void reset() {\n        super.reset();\n        configuredManifest = null;\n        filesetManifestConfig = null;\n        mergeManifestsMain = false;\n        manifestFile = null;\n        index = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "Jar", "code": "    public Jar() {\n        super();\n        archiveType = \"jar\";\n        emptyBehavior = \"create\";\n        setEncoding(\"UTF8\");", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.5-6880", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/synthetic/SynthesisException.java", "language": "java", "name": "org.apache.xml.utils.synthetic.SynthesisException", "code": "public class SynthesisException extends Exception\n{\n\n  /** Field code.\n   *  @serial          */\n  int code;\n\n\n  /** Field SYNTAX          */\n  public static final int SYNTAX = 0;\n\n  /** Field UNSUPPORTED          */\n  public static final int UNSUPPORTED = 1;\n\n  /** Field REIFIED          */\n  public static final int REIFIED = 2;\n\n  /** Field UNREIFIED          */\n  public static final int UNREIFIED = 3;\n\n  /** Field WRONG_OWNER          */\n  public static final int WRONG_OWNER = 4;\n\n  /** Field errToString          */\n  public static final String[] errToString = {\n    \"(Syntax error; specific message should be passed in)\",\n    \"Feature not yet supported\",\n    \"Can't change features of 'real' class\",\n    \"Can't yet instantiate/invoke without 'real' class\",\n    \"Can't add Member to an object other than its declarer\", };\n\n  /**\n   * Constructor SynthesisException\n   *\n   *\n   * @param code\n   */\n  public SynthesisException(int code)\n  {\n\n    super(errToString[code]);\n\n    this.code = code;\n  }\n\n  /**\n   * Constructor SynthesisException\n   *\n   *\n   * @param code\n   * @param msg\n   */\n  public SynthesisException(int code, String msg)\n  {\n\n    super(msg);\n\n    this.code = code;\n  }\n\n  /**\n   * Method getCode \n   *\n   *\n   */\n  int getCode()\n  {\n    return code;", "functions": [{"function_name": "getCode", "code": "  int getCode()\n  {\n    return code;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SynthesisException", "code": "  public SynthesisException(int code)\n  {\n\n    super(errToString[code]);\n\n    this.code = code;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SynthesisException", "code": "  public SynthesisException(int code, String msg)\n  {\n\n    super(msg);\n\n    this.code = code;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "jedit-4.1-4096", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/ReflectManager.java", "language": "java", "name": "bsh.ReflectManager", "code": "public abstract class ReflectManager\n{\n\tprivate static ReflectManager rfm;\n\n\t/**\n\t\tReturn the singleton bsh ReflectManager.\n\t\t@throws Unavailable\n\t*/\n\tpublic static ReflectManager getReflectManager() \n\t{\n\t\tif ( rfm == null ) \n\t\t{\n\t\t\tClass clas;\n\t\t\ttry {\n\t\t\t\tclas = BshClassManager.plainClassForName(\n\t\t\t\t\t\"bsh.reflect.ReflectManagerImpl\" );\n\t\t\t\trfm = (ReflectManager)clas.newInstance();\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tthrow new Unavailable(\"Reflect Manager unavailable: \"+e);\n\t\t\t}\n\t\t}\n\t\n\t\treturn rfm;\n\t}\n\n\t/**\n\t\tReflect Manager Set Accessible.\n\t\tConvenience method to invoke the reflect manager.\n\t\t@throws Unavailable\n\t*/\n\tpublic static boolean RMSetAccessible( Object obj ) \n\t\tthrows Unavailable\n\t{\n\t\treturn getReflectManager().setAccessible( obj );\n\t}\n\n\t/**\n\t\tSet a java.lang.reflect Field, Method, Constructor, or Array of\n\t\taccessible objects to accessible mode.\n\t\t@return true if the object was accessible or false if it was not.\n\t*/\n\tpublic abstract boolean setAccessible( Object o );", "functions": [{"function_name": "getReflectManager", "code": "\tpublic static ReflectManager getReflectManager() \n\t{\n\t\tif ( rfm == null ) \n\t\t{\n\t\t\tClass clas;\n\t\t\ttry {\n\t\t\t\tclas = BshClassManager.plainClassForName(\n\t\t\t\t\t\"bsh.reflect.ReflectManagerImpl\" );\n\t\t\t\trfm = (ReflectManager)clas.newInstance();\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tthrow new Unavailable(\"Reflect Manager unavailable: \"+e);\n\t\t\t}\n\t\t}\n\t\n\t\treturn rfm;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CATCH", "THROW_RAISE", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [4, 7], [7, 8], [4, 9], [4, 10], [8, 11], [10, 12], [11, 13], [9, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 4], [8, 7], [9, 4], [10, 4], [11, 8], [12, 10], [13, 11], [14, 9], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "RMSetAccessible", "code": "\tpublic static boolean RMSetAccessible( Object obj ) \n\t\tthrows Unavailable\n\t{\n\t\treturn getReflectManager().setAccessible( obj );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setAccessible", "code": "\tpublic abstract boolean setAccessible( Object o );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6665", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/Copy.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Copy", "code": "final class Copy extends Instruction {\n    private UseAttributeSets _useSets;\n    \n    public void parseContents(Parser parser) {\n\tfinal String useSets = getAttribute(\"use-attribute-sets\");\n\tif (useSets.length() > 0) {\n\t    _useSets = new UseAttributeSets(useSets, parser);\n\t}\n\tparseChildren(parser);\n    }\n    \n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"Copy\");\n\tindent(indent + IndentIncrement);\n\tdisplayContents(indent + IndentIncrement);\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_useSets != null) {\n\t    _useSets.typeCheck(stable);\n\t}\n\ttypeCheckContents(stable);\n\treturn Type.Void;\n    }\n\t\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tfinal LocalVariableGen name =\n\t    methodGen.addLocalVariable2(\"name\",\n\t\t\t\t\tUtil.getJCRefType(STRING_SIG),\n\t\t\t\t\til.getEnd());\n\tfinal LocalVariableGen length =\n\t    methodGen.addLocalVariable2(\"length\",\n\t\t\t\t\tUtil.getJCRefType(\"I\"),\n\t\t\t\t\til.getEnd());\n\n\til.append(methodGen.loadDOM());\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.loadHandler());\n\tfinal int cpy = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  \"shallowCopy\",\n\t\t\t\t\t\t  \"(\"\n\t\t\t\t\t\t  + NODE_SIG\n\t\t\t\t\t\t  + TRANSLET_OUTPUT_SIG\n\t\t\t\t\t\t  + \")\" + STRING_SIG); \n\til.append(new INVOKEINTERFACE(cpy, 3));\n\til.append(DUP);\n\til.append(new ASTORE(name.getIndex()));\n\tfinal BranchHandle ifBlock1 = il.append(new IFNULL(null));\n\n\til.append(new ALOAD(name.getIndex()));\n\tfinal int lengthMethod = cpg.addMethodref(STRING_CLASS,\"length\",\"()I\");\n\til.append(new INVOKEVIRTUAL(lengthMethod));\n\til.append(new ISTORE(length.getIndex()));\n\n\tif (_useSets != null) {\n\t    final SyntaxTreeNode parent = getParent();\n\t    if ((parent instanceof LiteralElement) ||\n\t\t(parent instanceof LiteralElement)) {\n\t\t_useSets.translate(classGen, methodGen);\n\t    }\n\t    else {\n\t\til.append(new ILOAD(length.getIndex()));\n\t\tfinal BranchHandle ifBlock2 = il.append(new IFEQ(null));\n\t\t_useSets.translate(classGen, methodGen);\n\t\tifBlock2.setTarget(il.append(NOP));\n\t    }\n\t}\n\n\ttranslateContents(classGen, methodGen);\n\n\til.append(new ILOAD(length.getIndex()));\n\tfinal BranchHandle ifBlock3 = il.append(new IFEQ(null));\n\til.append(methodGen.loadHandler());\n\til.append(new ALOAD(name.getIndex()));\n\til.append(methodGen.endElement());\n\t\n\tfinal InstructionHandle end = il.append(NOP);\n\tifBlock1.setTarget(end);\n\tifBlock3.setTarget(end);\n\tmethodGen.removeLocalVariable(name);\n\tmethodGen.removeLocalVariable(length);", "functions": [{"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tfinal String useSets = getAttribute(\"use-attribute-sets\");\n\tif (useSets.length() > 0) {\n\t    _useSets = new UseAttributeSets(useSets, parser);\n\t}\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [1, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [9, 1], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"Copy\");\n\tindent(indent + IndentIncrement);\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_useSets != null) {\n\t    _useSets.typeCheck(stable);\n\t}\n\ttypeCheckContents(stable);\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tfinal LocalVariableGen name =\n\t    methodGen.addLocalVariable2(\"name\",\n\t\t\t\t\tUtil.getJCRefType(STRING_SIG),\n\t\t\t\t\til.getEnd());\n\tfinal LocalVariableGen length =\n\t    methodGen.addLocalVariable2(\"length\",\n\t\t\t\t\tUtil.getJCRefType(\"I\"),\n\t\t\t\t\til.getEnd());\n\n\til.append(methodGen.loadDOM());\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.loadHandler());\n\tfinal int cpy = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  \"shallowCopy\",\n\t\t\t\t\t\t  \"(\"\n\t\t\t\t\t\t  + NODE_SIG\n\t\t\t\t\t\t  + TRANSLET_OUTPUT_SIG\n\t\t\t\t\t\t  + \")\" + STRING_SIG); \n\til.append(new INVOKEINTERFACE(cpy, 3));\n\til.append(DUP);\n\til.append(new ASTORE(name.getIndex()));\n\tfinal BranchHandle ifBlock1 = il.append(new IFNULL(null));\n\n\til.append(new ALOAD(name.getIndex()));\n\tfinal int lengthMethod = cpg.addMethodref(STRING_CLASS,\"length\",\"()I\");\n\til.append(new INVOKEVIRTUAL(lengthMethod));\n\til.append(new ISTORE(length.getIndex()));\n\n\tif (_useSets != null) {\n\t    final SyntaxTreeNode parent = getParent();\n\t    if ((parent instanceof LiteralElement) ||\n\t\t(parent instanceof LiteralElement)) {\n\t\t_useSets.translate(classGen, methodGen);\n\t    }\n\t    else {\n\t\til.append(new ILOAD(length.getIndex()));\n\t\tfinal BranchHandle ifBlock2 = il.append(new IFEQ(null));\n\t\t_useSets.translate(classGen, methodGen);\n\t\tifBlock2.setTarget(il.append(NOP));\n\t    }\n\t}\n\n\ttranslateContents(classGen, methodGen);\n\n\til.append(new ILOAD(length.getIndex()));\n\tfinal BranchHandle ifBlock3 = il.append(new IFEQ(null));\n\til.append(methodGen.loadHandler());\n\til.append(new ALOAD(name.getIndex()));\n\til.append(methodGen.endElement());\n\t\n\tfinal InstructionHandle end = il.append(NOP);\n\tifBlock1.setTarget(end);\n\tifBlock3.setTarget(end);\n\tmethodGen.removeLocalVariable(name);\n\tmethodGen.removeLocalVariable(length);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [3, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [1, 32], [17, 33], [18, 34], [19, 35], [2, 36], [20, 37], [3, 38], [3, 39], [22, 40], [23, 41], [24, 42], [4, 43], [25, 44], [5, 45], [26, 46], [28, 47], [6, 48], [29, 49], [30, 50], [31, 51], [7, 52], [8, 53], [9, 54], [10, 55], [34, 56], [36, 57], [37, 58], [38, 59], [41, 60], [43, 61], [43, 62], [44, 63], [45, 64], [46, 65], [47, 66], [48, 67], [48, 68], [52, 69], [52, 70], [52, 71], [53, 72], [53, 73], [53, 74], [57, 75], [38, 76], [59, 77], [59, 78], [39, 79], [64, 80], [67, 81], [70, 82], [38, 83], [38, 84], [38, 85], [38, 86], [81, 87], [81, 88], [83, 89], [76, 90], [85, 91], [88, 92], [90, 93], [91, 94], [92, 95], [93, 96], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 3], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 1], [33, 17], [34, 18], [35, 19], [36, 2], [37, 20], [38, 3], [39, 3], [40, 22], [41, 23], [42, 24], [43, 4], [44, 25], [45, 5], [46, 26], [47, 28], [48, 6], [49, 29], [50, 30], [51, 31], [52, 7], [53, 8], [54, 9], [55, 10], [56, 34], [57, 36], [58, 37], [59, 38], [60, 41], [61, 43], [62, 43], [63, 44], [64, 45], [65, 46], [66, 47], [67, 48], [68, 48], [69, 52], [70, 52], [71, 52], [72, 53], [73, 53], [74, 53], [75, 57], [76, 38], [77, 59], [78, 59], [79, 39], [80, 64], [81, 67], [82, 70], [83, 38], [84, 38], [85, 38], [86, 38], [87, 81], [88, 81], [89, 83], [90, 76], [91, 85], [92, 88], [93, 90], [94, 91], [95, 92], [96, 93], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96]]}], "label": 0}
{"sample_id": "xalan-2.7-8198", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/trax/SmartTransformerFactoryImpl.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl", "code": "public class SmartTransformerFactoryImpl extends SAXTransformerFactory \n{\n    /**\n     * <p>Name of class as a constant to use for debugging.</p>\n     */\n    private static final String CLASS_NAME = \"SmartTransformerFactoryImpl\";\n\n    private SAXTransformerFactory _xsltcFactory = null;\n    private SAXTransformerFactory _xalanFactory = null;\n    private SAXTransformerFactory _currFactory = null;\n    private ErrorListener      _errorlistener = null;\n    private URIResolver        _uriresolver = null;\n    \n    /**\n     * <p>State of secure processing feature.</p>\n     */\n    private boolean featureSecureProcessing = false;\n\n    /**\n     * implementation of the SmartTransformerFactory. This factory\n     * uses org.apache.xalan.xsltc.trax.TransformerFactory\n     * to return Templates objects; and uses \n     * org.apache.xalan.processor.TransformerFactory\n     * to return Transformer objects.  \n     */\n    public SmartTransformerFactoryImpl() { }\n\n    private void createXSLTCTransformerFactory() {\n\t_xsltcFactory = new TransformerFactoryImpl();\n\t_currFactory = _xsltcFactory;\n    }\n\n    private void createXalanTransformerFactory() {\n \tfinal String xalanMessage =\n\t    \"org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl \"+\n\t    \"could not create an \"+\n\t    \"org.apache.xalan.processor.TransformerFactoryImpl.\";\n\ttry {\n            Class xalanFactClass = ObjectFactory.findProviderClass(\n                \"org.apache.xalan.processor.TransformerFactoryImpl\",\n                ObjectFactory.findClassLoader(), true);\n\t    _xalanFactory = (SAXTransformerFactory)\n\t\txalanFactClass.newInstance();\n\t} \n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(xalanMessage);\n        }\n \tcatch (InstantiationException e) {\n\t    System.err.println(xalanMessage);\n\t}\n \tcatch (IllegalAccessException e) {\n\t    System.err.println(xalanMessage);\n\t}\n\t_currFactory = _xalanFactory;\n    }\n\n    public void setErrorListener(ErrorListener listener) \n\tthrows IllegalArgumentException \n    {\n\t_errorlistener = listener;\n    }\n\n    public ErrorListener getErrorListener() { \n\treturn _errorlistener;\n    }\n\n    public Object getAttribute(String name) \n\tthrows IllegalArgumentException \n    {\n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            return _xsltcFactory.getAttribute(name); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    return _xalanFactory.getAttribute(name);\n        }\n    }\n\n    public void setAttribute(String name, Object value) \n\tthrows IllegalArgumentException { \n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            _xsltcFactory.setAttribute(name, value); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    _xalanFactory.setAttribute(name, value);\n        }\n    }\n\n    /**\n     * <p>Set a feature for this <code>SmartTransformerFactory</code> and <code>Transformer</code>s\n     * or <code>Template</code>s created by this factory.</p>\n     * \n     * <p>\n     * Feature names are fully qualified {@link java.net.URI}s.\n     * Implementations may define their own features.\n     * An {@link TransformerConfigurationException} is thrown if this <code>TransformerFactory</code> or the\n     * <code>Transformer</code>s or <code>Template</code>s it creates cannot support the feature.\n     * It is possible for an <code>TransformerFactory</code> to expose a feature value but be unable to change its state.\n     * </p>\n     * \n     * <p>See {@link javax.xml.transform.TransformerFactory} for full documentation of specific features.</p>\n     * \n     * @param name Feature name.\n     * @param value Is feature state <code>true</code> or <code>false</code>.\n     *  \n     * @throws TransformerConfigurationException if this <code>TransformerFactory</code>\n     *   or the <code>Transformer</code>s or <code>Template</code>s it creates cannot support this feature.\n     * @throws NullPointerException If the <code>name</code> parameter is null.\n     */\n    public void setFeature(String name, boolean value)\n        throws TransformerConfigurationException {\n\n\tif (name == null) {\n            ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_SET_FEATURE_NULL_NAME);\n    \t    throw new NullPointerException(err.toString());\n\t}\n\telse if (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {\n\t    featureSecureProcessing = value;\t\t\n\t    return;\n\t}\n\telse {\t\n            ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_UNSUPPORTED_FEATURE, name);\n            throw new TransformerConfigurationException(err.toString());\n        }\n    }\n\n    /**\n     * javax.xml.transform.sax.TransformerFactory implementation.\n     * Look up the value of a feature (to see if it is supported).\n     * This method must be updated as the various methods and features of this\n     * class are implemented.\n     *\n     * @param name The feature name\n     * @return 'true' if feature is supported, 'false' if not\n     */\n    public boolean getFeature(String name) { \n        String[] features = {\n            DOMSource.FEATURE,\n            DOMResult.FEATURE,\n            SAXSource.FEATURE,\n            SAXResult.FEATURE,\n            StreamSource.FEATURE,\n            StreamResult.FEATURE\n        };\n\t\t\n\tif (name == null) {\n    \t    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_GET_FEATURE_NULL_NAME);\n    \t    throw new NullPointerException(err.toString());\n\t}\n\n\tfor (int i = 0; i < features.length; i++) {\n\t    if (name.equals(features[i]))\n\t\treturn true;\n\t}\n\n\tif (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {\n\t    return featureSecureProcessing;\n\t}\n\n        return false;\n    }\n\n    public URIResolver getURIResolver() {\n\treturn _uriresolver; \n    } \n\n    public void setURIResolver(URIResolver resolver) {\n\t_uriresolver = resolver;\n    }\n\n    public Source getAssociatedStylesheet(Source source, String media,\n\t\t\t\t\t  String title, String charset)\n\tthrows TransformerConfigurationException \n    {\n\tif (_currFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\treturn _currFactory.getAssociatedStylesheet(source, media,\n\t\ttitle, charset);\n    }\n\n    /**\n     * Create a Transformer object that copies the input document to the\n     * result. Uses the org.apache.xalan.processor.TransformerFactory.\n     * @return A Transformer object.\n     */\n    public Transformer newTransformer()\n\tthrows TransformerConfigurationException \n    {\n\tif (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(); \n    }\n\n    /**\n     * Create a Transformer object that from the input stylesheet \n     * Uses the org.apache.xalan.processor.TransformerFactory.\n     * @param source the stylesheet.\n     * @return A Transformer object.\n     */\n    public Transformer newTransformer(Source source) throws\n\tTransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(source); \n    }\n\n    /**\n     * Create a Templates object that from the input stylesheet \n     * Uses the org.apache.xalan.xsltc.trax.TransformerFactory.\n     * @param source the stylesheet.\n     * @return A Templates object.\n     */\n    public Templates newTemplates(Source source)\n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xsltcFactory;\t \n\treturn _currFactory.newTemplates(source); \n    }\n\n    /**\n     * Get a TemplatesHandler object that can process SAX ContentHandler\n     * events into a Templates object. Uses the\n     * org.apache.xalan.xsltc.trax.TransformerFactory.\n     */\n    public TemplatesHandler newTemplatesHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\treturn _xsltcFactory.newTemplatesHandler();\n    }\n\n    /**\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events based on a copy transformer. \n     * Uses org.apache.xalan.processor.TransformerFactory. \n     */\n    public TransformerHandler newTransformerHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn _xalanFactory.newTransformerHandler(); \n    }\n\n    /**\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events based on a transformer specified by the stylesheet Source. \n     * Uses org.apache.xalan.processor.TransformerFactory. \n     */\n    public TransformerHandler newTransformerHandler(Source src) \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn _xalanFactory.newTransformerHandler(src); \n    }\n\n\n    /**\n     * Get a TransformerHandler object that can process SAX ContentHandler\n     * events based on a transformer specified by the stylesheet Source. \n     * Uses org.apache.xalan.xsltc.trax.TransformerFactory. \n     */\n    public TransformerHandler newTransformerHandler(Templates templates) \n\tthrows TransformerConfigurationException  \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n        return _xsltcFactory.newTransformerHandler(templates);\n    }\n\n\n    /**\n     * Create an XMLFilter that uses the given source as the\n     * transformation instructions. Uses\n     * org.apache.xalan.xsltc.trax.TransformerFactory.\n     */\n    public XMLFilter newXMLFilter(Source src) \n\tthrows TransformerConfigurationException {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\tTemplates templates = _xsltcFactory.newTemplates(src);\n\tif (templates == null ) return null;\n\treturn newXMLFilter(templates); \n    }\n\n    /*\n     * Create an XMLFilter that uses the given source as the\n     * transformation instructions. Uses\n     * org.apache.xalan.xsltc.trax.TransformerFactory.\n     */\n    public XMLFilter newXMLFilter(Templates templates) \n\tthrows TransformerConfigurationException {\n\ttry {\n            return new org.apache.xalan.xsltc.trax.TrAXFilter(templates);\n        }\n        catch(TransformerConfigurationException e1) {\n            if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n\t    ErrorListener errorListener = _xsltcFactory.getErrorListener();\n            if(errorListener != null) {\n                try {\n                    errorListener.fatalError(e1);\n                    return null;\n                }\n                catch( TransformerException e2) {\n                    new TransformerConfigurationException(e2);\n                }\n            }\n            throw e1;", "functions": [{"function_name": "createXSLTCTransformerFactory", "code": "    private void createXSLTCTransformerFactory() {\n\t_xsltcFactory = new TransformerFactoryImpl();\n\t_currFactory = _xsltcFactory;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createXalanTransformerFactory", "code": "    private void createXalanTransformerFactory() {\n \tfinal String xalanMessage =\n\t    \"org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl \"+\n\t    \"could not create an \"+\n\t    \"org.apache.xalan.processor.TransformerFactoryImpl.\";\n\ttry {\n            Class xalanFactClass = ObjectFactory.findProviderClass(\n                \"org.apache.xalan.processor.TransformerFactoryImpl\",\n                ObjectFactory.findClassLoader(), true);\n\t    _xalanFactory = (SAXTransformerFactory)\n\t\txalanFactClass.newInstance();\n\t} \n\tcatch (ClassNotFoundException e) {\n\t    System.err.println(xalanMessage);\n        }\n \tcatch (InstantiationException e) {\n\t    System.err.println(xalanMessage);\n\t}\n \tcatch (IllegalAccessException e) {\n\t    System.err.println(xalanMessage);\n\t}\n\t_currFactory = _xalanFactory;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "ASSIGN", "CATCH", "CATCH", "CATCH", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [4, 10], [5, 11], [6, 12], [7, 13], [9, 14], [9, 15], [8, 16], [13, 17], [13, 18], [13, 19], [15, 20], [15, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 4], [11, 5], [12, 6], [13, 7], [14, 9], [15, 9], [16, 8], [17, 13], [18, 13], [19, 13], [20, 15], [21, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setErrorListener", "code": "    public void setErrorListener(ErrorListener listener) \n\tthrows IllegalArgumentException \n    {\n\t_errorlistener = listener;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorListener", "code": "    public ErrorListener getErrorListener() { \n\treturn _errorlistener;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAttribute", "code": "    public Object getAttribute(String name) \n\tthrows IllegalArgumentException \n    {\n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            return _xsltcFactory.getAttribute(name); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    return _xalanFactory.getAttribute(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "IF", "RETURN", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [11, 16], [13, 17], [5, 18], [7, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 11], [17, 13], [18, 5], [19, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setAttribute", "code": "    public void setAttribute(String name, Object value) \n\tthrows IllegalArgumentException { \n\tif ((name.equals(\"translet-name\")) || (name.equals(\"debug\"))) { \n\t    if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n            _xsltcFactory.setAttribute(name, value); \n        }\n        else {\n\t    if (_xalanFactory == null) {\n\t        createXalanTransformerFactory();\n\t    } \n\t    _xalanFactory.setAttribute(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [1, 9], [5, 10], [1, 11], [6, 12], [7, 13], [8, 14], [10, 15], [12, 16], [5, 17], [6, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 1], [10, 5], [11, 1], [12, 6], [13, 7], [14, 8], [15, 10], [16, 12], [17, 5], [18, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setFeature", "code": "    public void setFeature(String name, boolean value)\n        throws TransformerConfigurationException {\n\n\tif (name == null) {\n            ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_SET_FEATURE_NULL_NAME);\n    \t    throw new NullPointerException(err.toString());\n\t}\n\telse if (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {\n\t    featureSecureProcessing = value;\t\t\n\t    return;\n\t}\n\telse {\t\n            ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_UNSUPPORTED_FEATURE, name);\n            throw new TransformerConfigurationException(err.toString());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [5, 9], [4, 10], [4, 11], [4, 12], [7, 13], [10, 14], [4, 15], [13, 16], [8, 17], [14, 18], [11, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 5], [10, 4], [11, 4], [12, 4], [13, 7], [14, 10], [15, 4], [16, 13], [17, 8], [18, 14], [19, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getFeature", "code": "    public boolean getFeature(String name) { \n        String[] features = {\n            DOMSource.FEATURE,\n            DOMResult.FEATURE,\n            SAXSource.FEATURE,\n            SAXResult.FEATURE,\n            StreamSource.FEATURE,\n            StreamResult.FEATURE\n        };\n\t\t\n\tif (name == null) {\n    \t    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_GET_FEATURE_NULL_NAME);\n    \t    throw new NullPointerException(err.toString());\n\t}\n\n\tfor (int i = 0; i < features.length; i++) {\n\t    if (name.equals(features[i]))\n\t\treturn true;\n\t}\n\n\tif (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {\n\t    return featureSecureProcessing;\n\t}\n\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [2, 11], [3, 12], [4, 13], [4, 14], [10, 15], [12, 16], [12, 17], [3, 18], [13, 19], [16, 20], [19, 21], [14, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 2], [12, 3], [13, 4], [14, 4], [15, 10], [16, 12], [17, 12], [18, 3], [19, 13], [20, 16], [21, 19], [22, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getURIResolver", "code": "    public URIResolver getURIResolver() {\n\treturn _uriresolver; ", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setURIResolver", "code": "    public void setURIResolver(URIResolver resolver) {\n\t_uriresolver = resolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAssociatedStylesheet", "code": "    public Source getAssociatedStylesheet(Source source, String media,\n\t\t\t\t\t  String title, String charset)\n\tthrows TransformerConfigurationException \n    {\n\tif (_currFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\treturn _currFactory.getAssociatedStylesheet(source, media,\n\t\ttitle, charset);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [8, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 8], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "newTransformer", "code": "    public Transformer newTransformer()\n\tthrows TransformerConfigurationException \n    {\n\tif (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [3, 8], [4, 9], [7, 10], [8, 11], [9, 12], [2, 13], [3, 14], [4, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 3], [9, 4], [10, 7], [11, 8], [12, 9], [13, 2], [14, 3], [15, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "newTransformer", "code": "    public Transformer newTransformer(Source source) throws\n\tTransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xalanFactory;\t \n\treturn _currFactory.newTransformer(source); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [4, 10], [8, 11], [9, 12], [10, 13], [2, 14], [3, 15], [4, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 4], [11, 8], [12, 9], [13, 10], [14, 2], [15, 3], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newTemplates", "code": "    public Templates newTemplates(Source source)\n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n \t_currFactory = _xsltcFactory;\t \n\treturn _currFactory.newTemplates(source); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [3, 9], [4, 10], [8, 11], [9, 12], [10, 13], [2, 14], [3, 15], [4, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 3], [10, 4], [11, 8], [12, 9], [13, 10], [14, 2], [15, 3], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newTemplatesHandler", "code": "    public TemplatesHandler newTemplatesHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\treturn _xsltcFactory.newTemplatesHandler();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [6, 9], [7, 10], [8, 11], [2, 12], [3, 13], [4, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 6], [10, 7], [11, 8], [12, 2], [13, 3], [14, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler() \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn _xalanFactory.newTransformerHandler(); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [6, 9], [7, 10], [8, 11], [2, 12], [3, 13], [4, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 6], [10, 7], [11, 8], [12, 2], [13, 3], [14, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler(Source src) \n\tthrows TransformerConfigurationException \n    {\n        if (_xalanFactory == null) {\n            createXalanTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xalanFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xalanFactory.setURIResolver(_uriresolver);\n\t}\n\treturn _xalanFactory.newTransformerHandler(src); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [7, 10], [8, 11], [9, 12], [2, 13], [3, 14], [4, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 7], [11, 8], [12, 9], [13, 2], [14, 3], [15, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "newTransformerHandler", "code": "    public TransformerHandler newTransformerHandler(Templates templates) \n\tthrows TransformerConfigurationException  \n    {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n        return _xsltcFactory.newTransformerHandler(templates);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [7, 10], [8, 11], [9, 12], [2, 13], [3, 14], [4, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 7], [11, 8], [12, 9], [13, 2], [14, 3], [15, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "newXMLFilter", "code": "    public XMLFilter newXMLFilter(Source src) \n\tthrows TransformerConfigurationException {\n        if (_xsltcFactory == null) {\n            createXSLTCTransformerFactory();\n        }\n\tif (_errorlistener != null) {\n\t    _xsltcFactory.setErrorListener(_errorlistener);\t    \n\t}\n\tif (_uriresolver != null) {\n\t    _xsltcFactory.setURIResolver(_uriresolver);\n\t}\n\tTemplates templates = _xsltcFactory.newTemplates(src);\n\tif (templates == null ) return null;\n\treturn newXMLFilter(templates); ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [4, 11], [5, 12], [6, 13], [9, 14], [10, 15], [3, 16], [11, 17], [12, 18], [13, 19], [4, 20], [5, 21], [6, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 4], [12, 5], [13, 6], [14, 9], [15, 10], [16, 3], [17, 11], [18, 12], [19, 13], [20, 4], [21, 5], [22, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "newXMLFilter", "code": "    public XMLFilter newXMLFilter(Templates templates) \n\tthrows TransformerConfigurationException {\n\ttry {\n            return new org.apache.xalan.xsltc.trax.TrAXFilter(templates);\n        }\n        catch(TransformerConfigurationException e1) {\n            if (_xsltcFactory == null) {\n                createXSLTCTransformerFactory();\n            }\n\t    ErrorListener errorListener = _xsltcFactory.getErrorListener();\n            if(errorListener != null) {\n                try {\n                    errorListener.fatalError(e1);\n                    return null;\n                }\n                catch( TransformerException e2) {\n                    new TransformerConfigurationException(e2);\n                }\n            }\n            throw e1;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [3, 7], [3, 8], [4, 9], [6, 10], [8, 11], [6, 12], [10, 13], [7, 14], [11, 15], [12, 16], [12, 17], [8, 18], [17, 19], [12, 20], [16, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 3], [8, 3], [9, 4], [10, 6], [11, 8], [12, 6], [13, 10], [14, 7], [15, 11], [16, 12], [17, 12], [18, 8], [19, 17], [20, 12], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "SmartTransformerFactoryImpl", "code": "    public SmartTransformerFactoryImpl() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.7-1308", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/j2ee/AbstractHotDeploymentTool.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.j2ee.AbstractHotDeploymentTool", "code": "public abstract class AbstractHotDeploymentTool implements HotDeploymentTool {\n    /** The parent task **/\n    private ServerDeploy task;\n\n    /** The classpath passed to the JVM on execution. **/\n    private Path classpath;\n\n    /** The username for the deployment server. **/\n    private String userName;\n\n    /** The password for the deployment server. **/\n    private String password;\n\n    /** The address of the deployment server **/\n    private String server;\n\n    /**\n     *  Add a classpath as a nested element.\n     *  @return A Path object representing the classpath to be used.\n     */\n    public Path createClasspath() {\n        if (classpath == null) {\n            classpath = new Path(task.getProject());\n        }\n        return classpath.createPath();\n    }\n\n    /**\n     *  Determines if the \"action\" attribute defines a valid action.\n     *  <p>Subclasses should determine if the action passed in is\n     *  supported by the vendor's deployment tool.\n     *  <p>Actions may by \"deploy\", \"delete\", etc... It all depends\n     *  on the tool.\n     *  @return true if the \"action\" attribute is valid, false if not.\n     */\n    protected abstract boolean isActionValid();\n\n    /**\n     *  Validates the passed in attributes.\n     *  Subclasses should chain to this super-method to insure\n     *  validation of boilerplate attributes.\n     *  <p>Only the \"action\" attribute is required in the\n     *  base class.  Subclasses should check attributes accordingly.\n     *  @exception org.apache.tools.ant.BuildException if the attributes are invalid or incomplete.\n     */\n    public void validateAttributes() throws BuildException {\n        if (task.getAction() == null) {\n            throw new BuildException(\"The \\\"action\\\" attribute must be set\");\n        }\n\n        if (!isActionValid()) {\n            throw new BuildException(\"Invalid action \\\"\" + task.getAction() + \"\\\" passed\");\n        }\n\n        if (classpath == null) {\n            throw new BuildException(\"The classpath attribute must be set\");\n        }\n    }\n\n    /**\n     *  Perform the actual deployment.\n     *  It's up to the subclasses to implement the actual behavior.\n     *  @exception org.apache.tools.ant.BuildException if the attributes are invalid or incomplete.\n     */\n    public abstract void deploy() throws BuildException;\n\n    /**\n     *  Sets the parent task.\n     *  @param task a ServerDeploy object representing the parent task.\n     *  @ant.attribute ignore=\"true\"\n     */\n    public void setTask(ServerDeploy task) {\n        this.task = task;\n    }\n\n    /**\n     *  Returns the task field, a ServerDeploy object.\n     *  @return An ServerDeploy representing the parent task.\n     */\n    protected ServerDeploy getTask() {\n        return task;\n    }\n\n    /**\n     *  gets the classpath field.\n     *  @return A Path representing the \"classpath\" attribute.\n     */\n    public Path getClasspath() {\n        return classpath;\n    }\n\n    /**\n     *  The classpath to be passed to the JVM running the tool;\n     *  optional depending upon the tool.\n     *  The classpath may also be supplied as a nested element.\n     *  @param classpath A Path object representing the \"classpath\" attribute.\n     */\n    public void setClasspath(Path classpath) {\n        this.classpath = classpath;\n    }\n\n    /**\n     *  Returns the userName field.\n     *  @return A String representing the \"userName\" attribute.\n     */\n    public String getUserName() {\n        return userName;\n    }\n\n    /**\n     *  The user with privileges to deploy applications to the server; optional.\n     *  @param userName A String representing the \"userName\" attribute.\n     */\n    public void setUserName(String userName) {\n        this.userName = userName;\n    }\n\n    /**\n     *  Returns the password field.\n     *  @return A String representing the \"password\" attribute.\n     */\n    public String getPassword() {\n        return password;\n    }\n\n    /**\n     *  The password of the user; optional.\n     *  @param password A String representing the \"password\" attribute.\n     */\n    public void setPassword(String password) {\n        this.password = password;\n    }\n\n    /**\n     *  Returns the server field.\n     *  @return A String representing the \"server\" attribute.\n     */\n    public String getServer() {\n        return server;\n    }\n\n    /**\n     *  The address or URL for the server where the component will be deployed.\n     *  @param server A String representing the \"server\" attribute.\n     */\n    public void setServer(String server) {\n        this.server = server;", "functions": [{"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (classpath == null) {\n            classpath = new Path(task.getProject());\n        }\n        return classpath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isActionValid", "code": "    protected abstract boolean isActionValid();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "validateAttributes", "code": "    public void validateAttributes() throws BuildException {\n        if (task.getAction() == null) {\n            throw new BuildException(\"The \\\"action\\\" attribute must be set\");\n        }\n\n        if (!isActionValid()) {\n            throw new BuildException(\"Invalid action \\\"\" + task.getAction() + \"\\\" passed\");\n        }\n\n        if (classpath == null) {\n            throw new BuildException(\"The classpath attribute must be set\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [2, 9], [3, 10], [6, 11], [6, 12], [7, 13], [9, 14], [10, 15], [13, 16], [14, 17], [15, 18], [17, 19], [17, 20], [20, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [9, 2], [10, 3], [11, 6], [12, 6], [13, 7], [14, 9], [15, 10], [16, 13], [17, 14], [18, 15], [19, 17], [20, 17], [21, 20], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "deploy", "code": "    public abstract void deploy() throws BuildException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setTask", "code": "    public void setTask(ServerDeploy task) {\n        this.task = task;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTask", "code": "    protected ServerDeploy getTask() {\n        return task;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getClasspath", "code": "    public Path getClasspath() {\n        return classpath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        this.classpath = classpath;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUserName", "code": "    public String getUserName() {\n        return userName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUserName", "code": "    public void setUserName(String userName) {\n        this.userName = userName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPassword", "code": "    public String getPassword() {\n        return password;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPassword", "code": "    public void setPassword(String password) {\n        this.password = password;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getServer", "code": "    public String getServer() {\n        return server;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setServer", "code": "    public void setServer(String server) {\n        this.server = server;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.3-14", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/XmlLogger.java", "language": "java", "name": "org.apache.tools.ant.XmlLogger", "code": "public class XmlLogger implements BuildListener {\n\n    private static final DocumentBuilder builder = getDocumentBuilder();\n\n    private static DocumentBuilder getDocumentBuilder() {\n        try {\n            return DocumentBuilderFactory.newInstance().newDocumentBuilder();\n        }\n        catch(Exception exc) {\n            throw new ExceptionInInitializerError(exc);\n        }\n    }\n\n    private static final String BUILD_TAG = \"build\";\n    private static final String TARGET_TAG = \"target\";\n    private static final String TASK_TAG = \"task\";\n    private static final String MESSAGE_TAG = \"message\";\n    private static final String NAME_ATTR = \"name\";\n    private static final String TIME_ATTR = \"time\";\n    private static final String PRIORITY_ATTR = \"priority\";\n    private static final String LOCATION_ATTR = \"location\";\n    private static final String ERROR_ATTR = \"error\";\n\n    private Document doc;\n    private Element buildElement;\n    private Element targetElement;\n    private Element taskElement;\n\n    private long buildStartTime;\n    private long targetStartTime;\n    private long taskStartTime;\n\n    private Stack targetTimeStack = new Stack();\n    private Stack targetStack = new Stack();\n    private Stack taskTimeStack = new Stack();\n    private Stack taskStack = new Stack();\n\n    /**\n     *  Constructs a new BuildListener that logs build events to an XML file.\n     */\n    public XmlLogger() {\n    }\n\n    public void buildStarted(BuildEvent event) {\n        buildStartTime = System.currentTimeMillis();\n\n        doc = builder.newDocument();\n        buildElement = doc.createElement(BUILD_TAG);\n    }\n\n    public void buildFinished(BuildEvent event) {\n        long totalTime = System.currentTimeMillis() - buildStartTime;\n        buildElement.setAttribute(TIME_ATTR, DefaultLogger.formatTime(totalTime));\n\n        if (event.getException() != null) {\n            buildElement.setAttribute(ERROR_ATTR, event.getException().toString());\n        }\n\n        try {\n            String outFilename = \n                event.getProject().getProperty(\"XmlLogger.file\");\n\n            if (outFilename == null) {\n                outFilename = \"log.xml\";\n            }\n\n            Writer out = new FileWriter(outFilename);\n            out.write(\"<?xml:stylesheet type=\\\"text/xsl\\\" href=\\\"log.xsl\\\"?>\\n\\n\");\n            (new DOMElementWriter()).write(buildElement, out, 0, \"\\t\");\n            out.flush();\n            out.close();\n            \n        } catch(IOException exc) {\n            throw new BuildException(\"Unable to close log file\", exc);\n        }\n        buildElement = null;\n    }\n\n    public void targetStarted(BuildEvent event) {\n        if (targetElement != null) {\n            targetTimeStack.push(new Long(targetStartTime));\n            targetStack.push(targetElement);\n        }\n        targetStartTime = System.currentTimeMillis();\n        targetElement = doc.createElement(TARGET_TAG);\n        targetElement.setAttribute(NAME_ATTR, event.getTarget().getName());\n    }\n\n    public void targetFinished(BuildEvent event) {\n        long totalTime = System.currentTimeMillis() - targetStartTime;\n        targetElement.setAttribute(TIME_ATTR, DefaultLogger.formatTime(totalTime));\n        if (taskElement == null) {\n            buildElement.appendChild(targetElement);\n        } else {\n            taskElement.appendChild(targetElement);\n        }\n\n        targetElement = null;\n\n        if (!targetStack.isEmpty()) {\n            targetStartTime = ((Long) targetTimeStack.pop()).longValue();\n            targetElement = (Element) targetStack.pop();\n        }\n    }\n\n    public void taskStarted(BuildEvent event) {\n        if (taskElement != null) {\n            taskTimeStack.push(new Long(taskStartTime));\n            taskStack.push(taskElement);\n        }\n\n        taskStartTime = System.currentTimeMillis();\n        taskElement = doc.createElement(TASK_TAG);\n\n        String name = event.getTask().getClass().getName();\n        int pos = name.lastIndexOf(\".\");\n        if (pos != -1) {\n            name = name.substring(pos + 1);\n        }\n        taskElement.setAttribute(NAME_ATTR, name);\n\n        taskElement.setAttribute(LOCATION_ATTR, event.getTask().getLocation().toString());\n    }\n\n    public void taskFinished(BuildEvent event) {\n        long totalTime = System.currentTimeMillis() - taskStartTime;\n        taskElement.setAttribute(TIME_ATTR, DefaultLogger.formatTime(totalTime));\n        targetElement.appendChild(taskElement);\n\n        taskElement = null;\n        if (!taskStack.isEmpty()) {\n            taskStartTime = ((Long) taskTimeStack.pop()).longValue();\n            taskElement = (Element) taskStack.pop();\n        }\n    }\n\n    public void messageLogged(BuildEvent event) {\n        Element messageElement = doc.createElement(MESSAGE_TAG);\n\n        String name = \"debug\";\n        switch(event.getPriority()) {\n            case Project.MSG_ERR: name = \"error\"; break;\n            case Project.MSG_WARN: name = \"warn\"; break;\n            case Project.MSG_INFO: name = \"info\"; break;\n            default: name = \"debug\"; break;\n        }\n        messageElement.setAttribute(PRIORITY_ATTR, name);\n\n        Text messageText = doc.createTextNode(event.getMessage());\n        messageElement.appendChild(messageText);\n\n        if (taskElement != null) {\n            taskElement.appendChild(messageElement);\n        }\n        else if (targetElement != null) {\n            targetElement.appendChild(messageElement);\n        }\n        else {\n            buildElement.appendChild(messageElement);", "functions": [{"function_name": "getDocumentBuilder", "code": "    private static DocumentBuilder getDocumentBuilder() {\n        try {\n            return DocumentBuilderFactory.newInstance().newDocumentBuilder();\n        }\n        catch(Exception exc) {\n            throw new ExceptionInInitializerError(exc);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {\n        buildStartTime = System.currentTimeMillis();\n\n        doc = builder.newDocument();\n        buildElement = doc.createElement(BUILD_TAG);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        long totalTime = System.currentTimeMillis() - buildStartTime;\n        buildElement.setAttribute(TIME_ATTR, DefaultLogger.formatTime(totalTime));\n\n        if (event.getException() != null) {\n            buildElement.setAttribute(ERROR_ATTR, event.getException().toString());\n        }\n\n        try {\n            String outFilename = \n                event.getProject().getProperty(\"XmlLogger.file\");\n\n            if (outFilename == null) {\n                outFilename = \"log.xml\";\n            }\n\n            Writer out = new FileWriter(outFilename);\n            out.write(\"<?xml:stylesheet type=\\\"text/xsl\\\" href=\\\"log.xsl\\\"?>\\n\\n\");\n            (new DOMElementWriter()).write(buildElement, out, 0, \"\\t\");\n            out.flush();\n            out.close();\n            \n        } catch(IOException exc) {\n            throw new BuildException(\"Unable to close log file\", exc);\n        }\n        buildElement = null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "ASSIGN", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [0, 11], [5, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [8, 18], [10, 19], [10, 20], [11, 21], [3, 22], [13, 23], [16, 24], [17, 25], [7, 26], [18, 27], [9, 28], [2, 29], [22, 30], [23, 31], [24, 32], [24, 33], [8, 34], [28, 35], [29, 36], [34, 37], [35, 38], [36, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 0], [12, 5], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 8], [19, 10], [20, 10], [21, 11], [22, 3], [23, 13], [24, 16], [25, 17], [26, 7], [27, 18], [28, 9], [29, 2], [30, 22], [31, 23], [32, 24], [33, 24], [34, 8], [35, 28], [36, 29], [37, 34], [38, 35], [39, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {\n        if (targetElement != null) {\n            targetTimeStack.push(new Long(targetStartTime));\n            targetStack.push(targetElement);\n        }\n        targetStartTime = System.currentTimeMillis();\n        targetElement = doc.createElement(TARGET_TAG);\n        targetElement.setAttribute(NAME_ATTR, event.getTarget().getName());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [1, 12], [1, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 5], [10, 6], [11, 7], [12, 1], [13, 1], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {\n        long totalTime = System.currentTimeMillis() - targetStartTime;\n        targetElement.setAttribute(TIME_ATTR, DefaultLogger.formatTime(totalTime));\n        if (taskElement == null) {\n            buildElement.appendChild(targetElement);\n        } else {\n            taskElement.appendChild(targetElement);\n        }\n\n        targetElement = null;\n\n        if (!targetStack.isEmpty()) {\n            targetStartTime = ((Long) targetTimeStack.pop()).longValue();\n            targetElement = (Element) targetStack.pop();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [6, 9], [7, 10], [8, 11], [3, 12], [1, 13], [1, 14], [2, 15], [2, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 6], [10, 7], [11, 8], [12, 3], [13, 1], [14, 1], [15, 2], [16, 2], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {\n        if (taskElement != null) {\n            taskTimeStack.push(new Long(taskStartTime));\n            taskStack.push(taskElement);\n        }\n\n        taskStartTime = System.currentTimeMillis();\n        taskElement = doc.createElement(TASK_TAG);\n\n        String name = event.getTask().getClass().getName();\n        int pos = name.lastIndexOf(\".\");\n        if (pos != -1) {\n            name = name.substring(pos + 1);\n        }\n        taskElement.setAttribute(NAME_ATTR, name);\n\n        taskElement.setAttribute(LOCATION_ATTR, event.getTask().getLocation().toString());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [4, 11], [6, 12], [8, 13], [2, 14], [3, 15], [9, 16], [10, 17], [11, 18], [12, 19], [12, 20], [1, 21], [14, 22], [15, 23], [15, 24], [4, 25], [4, 26], [21, 27], [26, 28], [27, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 4], [12, 6], [13, 8], [14, 2], [15, 3], [16, 9], [17, 10], [18, 11], [19, 12], [20, 12], [21, 1], [22, 14], [23, 15], [24, 15], [25, 4], [26, 4], [27, 21], [28, 26], [29, 27], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {\n        long totalTime = System.currentTimeMillis() - taskStartTime;\n        taskElement.setAttribute(TIME_ATTR, DefaultLogger.formatTime(totalTime));\n        targetElement.appendChild(taskElement);\n\n        taskElement = null;\n        if (!taskStack.isEmpty()) {\n            taskStartTime = ((Long) taskTimeStack.pop()).longValue();\n            taskElement = (Element) taskStack.pop();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [7, 9], [2, 10], [1, 11], [1, 12], [10, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 7], [10, 2], [11, 1], [12, 1], [13, 10], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {\n        Element messageElement = doc.createElement(MESSAGE_TAG);\n\n        String name = \"debug\";\n        switch(event.getPriority()) {\n            case Project.MSG_ERR: name = \"error\"; break;\n            case Project.MSG_WARN: name = \"warn\"; break;\n            case Project.MSG_INFO: name = \"info\"; break;\n            default: name = \"debug\"; break;\n        }\n        messageElement.setAttribute(PRIORITY_ATTR, name);\n\n        Text messageText = doc.createTextNode(event.getMessage());\n        messageElement.appendChild(messageText);\n\n        if (taskElement != null) {\n            taskElement.appendChild(messageElement);\n        }\n        else if (targetElement != null) {\n            targetElement.appendChild(messageElement);\n        }\n        else {\n            buildElement.appendChild(messageElement);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [0, 9], [0, 10], [3, 11], [7, 12], [8, 13], [2, 14], [3, 15], [3, 16], [3, 17], [3, 18], [4, 19], [5, 20], [12, 21], [1, 22], [14, 23], [3, 24], [3, 25], [3, 26], [3, 27], [7, 28], [7, 29], [24, 30], [25, 31], [26, 32], [27, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 0], [10, 0], [11, 3], [12, 7], [13, 8], [14, 2], [15, 3], [16, 3], [17, 3], [18, 3], [19, 4], [20, 5], [21, 12], [22, 1], [23, 14], [24, 3], [25, 3], [26, 3], [27, 3], [28, 7], [29, 7], [30, 24], [31, 25], [32, 26], [33, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "XmlLogger", "code": "    public XmlLogger() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.6-7891", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/QName.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.QName", "code": "final class QName {\n    private final String _localname;\n    private String _prefix;\n    private String _namespace;\n    private String _stringRep;\n    private int    _hashCode;\n\n    public QName(String namespace, String prefix, String localname) {\n\t_namespace = namespace;\n\t_prefix    = prefix;\n\t_localname = localname;\n\n\t_stringRep = \n\t    (namespace != null && !namespace.equals(Constants.EMPTYSTRING)) ?\n\t    (namespace + ':' + localname) : localname;\n\n    }\n\n    public void clearNamespace() {\n\t_namespace = Constants.EMPTYSTRING;\n    }\n\n    public String toString() {\n\treturn _stringRep;\n    }\n\n    public String getStringRep() {\n\treturn _stringRep;\n    }\n\n    public boolean equals(Object other) {\n\treturn (this == other);\n    }\n\n    public String getLocalPart() {\n\treturn _localname;\n    }\n\n    public String getNamespace() {\n\treturn _namespace;\n    }\n\n    public String getPrefix() {\n\treturn _prefix;\n    }\n\n    public int hashCode() {\n\treturn _hashCode;\n    }\n\n    public String dump() {\n\treturn new String(\"QName: \" + _namespace + \"(\" + _prefix + \"):\" \n\t    + _localname);", "functions": [{"function_name": "clearNamespace", "code": "    public void clearNamespace() {\n\t_namespace = Constants.EMPTYSTRING;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn _stringRep;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStringRep", "code": "    public String getStringRep() {\n\treturn _stringRep;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "equals", "code": "    public boolean equals(Object other) {\n\treturn (this == other);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLocalPart", "code": "    public String getLocalPart() {\n\treturn _localname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespace", "code": "    public String getNamespace() {\n\treturn _namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPrefix", "code": "    public String getPrefix() {\n\treturn _prefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hashCode", "code": "    public int hashCode() {\n\treturn _hashCode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dump", "code": "    public String dump() {\n\treturn new String(\"QName: \" + _namespace + \"(\" + _prefix + \"):\" \n\t    + _localname);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [6, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 6], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "QName", "code": "    public QName(String namespace, String prefix, String localname) {\n\t_namespace = namespace;\n\t_prefix    = prefix;\n\t_localname = localname;\n\n\t_stringRep = \n\t    (namespace != null && !namespace.equals(Constants.EMPTYSTRING)) ?\n\t    (namespace + ':' + localname) : localname;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [8, 9], [8, 10], [9, 11], [10, 12], [10, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 8], [10, 8], [11, 9], [12, 10], [13, 10], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}], "label": 0}
{"sample_id": "ivy-2.0-3279", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/util/MessageLoggerEngine.java", "language": "java", "name": "org.apache.ivy.util.MessageLoggerEngine", "code": "public class MessageLoggerEngine implements MessageLogger {\n    private final Stack/*<MessageLogger>*/ loggerStack = new Stack();\n    \n    private MessageLogger defaultLogger = null;\n\n    private List problems = new ArrayList();\n\n    private List warns = new ArrayList();\n\n    private List errors = new ArrayList();\n    \n    public MessageLoggerEngine() {\n    }\n\n    /**\n     * Sets the logger used when the stack is empty.\n     * \n     * @param defaultLogger the logger to use when the stack is empty.\n     */\n    public void setDefaultLogger(MessageLogger defaultLogger) {\n        this.defaultLogger = defaultLogger;\n    }\n\n\n\n    /**\n     * Push a logger on the stack.\n     * \n     * @param logger\n     *            the logger to push. Must not be <code>null</code>.\n     */\n    public void pushLogger(MessageLogger logger) {\n        Checks.checkNotNull(logger, \"logger\");\n        loggerStack.push(logger);\n    }\n    \n    /**\n     * Pops a logger from the logger stack.\n     * <p>\n     * Does nothing if the logger stack is empty\n     * </p>\n     */\n    public void popLogger() {\n        if (!loggerStack.isEmpty()) {\n            loggerStack.pop();\n        }\n    }\n\n    /**\n     * Returns the current logger, or the default one if there is no logger in the stack\n     * @return the current logger, or the default one if there is no logger in the stack\n     */\n    private MessageLogger peekLogger() {\n        if (loggerStack.isEmpty()) {\n            return getDefaultLogger();\n        }\n        return (MessageLogger) loggerStack.peek();\n    }\n\n    private MessageLogger getDefaultLogger() {\n        // we don't store the logger returned by Message.getDefaultLogger() to always stay in sync\n        // as long as our default logger has not been set explicitly with setDefaultLogger()\n        return defaultLogger == null ? Message.getDefaultLogger() : defaultLogger;\n    }\n\n    // consolidated methods\n    public void warn(String msg) {\n        peekLogger().warn(msg);\n        problems.add(\"WARN:  \" + msg);\n        warns.add(msg);\n    }\n    \n    public void error(String msg) {\n        peekLogger().error(msg);\n        problems.add(\"\\tERROR: \" + msg);\n        errors.add(msg);\n    }\n\n    public List getErrors() {\n        return errors;\n    }\n\n    public List getProblems() {\n        return problems;\n    }\n\n    public List getWarns() {\n        return warns;\n    }\n\n    public void sumupProblems() {\n        MessageLoggerHelper.sumupProblems(this);\n        clearProblems();\n    }\n    \n    public void clearProblems() {\n        getDefaultLogger().clearProblems();\n        for (Iterator iter = loggerStack.iterator(); iter.hasNext();) {\n            MessageLogger l = (MessageLogger) iter.next();\n            l.clearProblems();\n        }\n        problems.clear();\n        errors.clear();\n        warns.clear();\n    }\n\n    public void setShowProgress(boolean progress) {\n        getDefaultLogger().setShowProgress(progress);\n        // updates all loggers in the stack\n        for (Iterator iter = loggerStack.iterator(); iter.hasNext();) {\n            MessageLogger l = (MessageLogger) iter.next();\n            l.setShowProgress(progress);\n        }\n    }\n    \n    public boolean isShowProgress() {\n        // testing the default logger is enough, all loggers should be in sync\n        return getDefaultLogger().isShowProgress();\n    }\n\n    // delegation methods\n    \n    public void debug(String msg) {\n        peekLogger().debug(msg);\n    }\n    \n    public void deprecated(String msg) {\n        peekLogger().deprecated(msg);\n    }\n\n    public void endProgress() {\n        peekLogger().endProgress();\n    }\n\n    public void endProgress(String msg) {\n        peekLogger().endProgress(msg);\n    }\n\n    public void info(String msg) {\n        peekLogger().info(msg);\n    }\n\n    public void rawinfo(String msg) {\n        peekLogger().rawinfo(msg);\n    }\n\n    public void log(String msg, int level) {\n        peekLogger().log(msg, level);\n    }\n\n    public void progress() {\n        peekLogger().progress();\n    }\n\n    public void rawlog(String msg, int level) {\n        peekLogger().rawlog(msg, level);\n    }\n\n    public void verbose(String msg) {\n        peekLogger().verbose(msg);", "functions": [{"function_name": "setDefaultLogger", "code": "    public void setDefaultLogger(MessageLogger defaultLogger) {\n        this.defaultLogger = defaultLogger;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "pushLogger", "code": "    public void pushLogger(MessageLogger logger) {\n        Checks.checkNotNull(logger, \"logger\");\n        loggerStack.push(logger);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "popLogger", "code": "    public void popLogger() {\n        if (!loggerStack.isEmpty()) {\n            loggerStack.pop();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "peekLogger", "code": "    private MessageLogger peekLogger() {\n        if (loggerStack.isEmpty()) {\n            return getDefaultLogger();\n        }\n        return (MessageLogger) loggerStack.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getDefaultLogger", "code": "    private MessageLogger getDefaultLogger() {\n        // we don't store the logger returned by Message.getDefaultLogger() to always stay in sync\n        // as long as our default logger has not been set explicitly with setDefaultLogger()\n        return defaultLogger == null ? Message.getDefaultLogger() : defaultLogger;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "warn", "code": "    public void warn(String msg) {\n        peekLogger().warn(msg);\n        problems.add(\"WARN:  \" + msg);\n        warns.add(msg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "error", "code": "    public void error(String msg) {\n        peekLogger().error(msg);\n        problems.add(\"\\tERROR: \" + msg);\n        errors.add(msg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getErrors", "code": "    public List getErrors() {\n        return errors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProblems", "code": "    public List getProblems() {\n        return problems;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getWarns", "code": "    public List getWarns() {\n        return warns;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "sumupProblems", "code": "    public void sumupProblems() {\n        MessageLoggerHelper.sumupProblems(this);\n        clearProblems();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clearProblems", "code": "    public void clearProblems() {\n        getDefaultLogger().clearProblems();\n        for (Iterator iter = loggerStack.iterator(); iter.hasNext();) {\n            MessageLogger l = (MessageLogger) iter.next();\n            l.clearProblems();\n        }\n        problems.clear();\n        errors.clear();\n        warns.clear();", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [6, 8], [1, 9], [1, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 6], [9, 1], [10, 1], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setShowProgress", "code": "    public void setShowProgress(boolean progress) {\n        getDefaultLogger().setShowProgress(progress);\n        // updates all loggers in the stack\n        for (Iterator iter = loggerStack.iterator(); iter.hasNext();) {\n            MessageLogger l = (MessageLogger) iter.next();\n            l.setShowProgress(progress);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [4, 6], [1, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 4], [7, 1], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isShowProgress", "code": "    public boolean isShowProgress() {\n        // testing the default logger is enough, all loggers should be in sync\n        return getDefaultLogger().isShowProgress();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "debug", "code": "    public void debug(String msg) {\n        peekLogger().debug(msg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "deprecated", "code": "    public void deprecated(String msg) {\n        peekLogger().deprecated(msg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "endProgress", "code": "    public void endProgress() {\n        peekLogger().endProgress();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "endProgress", "code": "    public void endProgress(String msg) {\n        peekLogger().endProgress(msg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "info", "code": "    public void info(String msg) {\n        peekLogger().info(msg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "rawinfo", "code": "    public void rawinfo(String msg) {\n        peekLogger().rawinfo(msg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "log", "code": "    public void log(String msg, int level) {\n        peekLogger().log(msg, level);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "progress", "code": "    public void progress() {\n        peekLogger().progress();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "rawlog", "code": "    public void rawlog(String msg, int level) {\n        peekLogger().rawlog(msg, level);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "verbose", "code": "    public void verbose(String msg) {\n        peekLogger().verbose(msg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "MessageLoggerEngine", "code": "    public MessageLoggerEngine() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.2-1798", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/dataformat/XMLBeansDataFormat.java", "language": "java", "name": "org.apache.camel.model.dataformat.XMLBeansDataFormat", "code": "@XmlRootElement(name = \"xmlBeans\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class XMLBeansDataFormat extends DataFormatType {\n    @XmlAttribute(required = false)\n    private Boolean prettyPrint;\n\n    public XMLBeansDataFormat() {\n        super(\"org.apache.camel.dataformat.converter.XmlBeansDataType\");\n    }\n\n    public Boolean getPrettyPrint() {\n        return prettyPrint;\n    }\n\n    public void setPrettyPrint(Boolean prettyPrint) {\n        this.prettyPrint = prettyPrint;", "functions": [{"function_name": "getPrettyPrint", "code": "    public Boolean getPrettyPrint() {\n        return prettyPrint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPrettyPrint", "code": "    public void setPrettyPrint(Boolean prettyPrint) {\n        this.prettyPrint = prettyPrint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "XMLBeansDataFormat", "code": "    public XMLBeansDataFormat() {\n        super(\"org.apache.camel.dataformat.converter.XmlBeansDataType\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.6-548", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/PropertySet.java", "language": "java", "name": "org.apache.tools.ant.types.PropertySet", "code": "public class PropertySet extends DataType {\n\n    private boolean dynamic = true;\n    private boolean negate = false;\n    private Set cachedNames;\n    private Vector ptyRefs = new Vector();\n    private Vector setRefs = new Vector();\n    private Mapper mapper;\n\n    /**\n     * This is a nested class containing a reference to some properties\n     * and optionally a source of properties.\n     */\n    public static class PropertyRef {\n\n        private int count;\n        private String name;\n        private String regex;\n        private String prefix;\n        private String builtin;\n\n        /**\n         * Set the name.\n         * @param name a <code>String</code> value.\n         */\n        public void setName(String name) {\n            assertValid(\"name\", name);\n            this.name = name;\n        }\n\n        /**\n         * Set the regular expression to use to filter the properties.\n         * @param regex a regular expression.\n         */\n        public void setRegex(String regex) {\n            assertValid(\"regex\", regex);\n            this.regex = regex;\n        }\n\n        /**\n         * Set the prefix to use.\n         * @param prefix a <code>String</code> value.\n         */\n        public void setPrefix(String prefix) {\n            assertValid(\"prefix\", prefix);\n            this.prefix = prefix;\n        }\n\n        /**\n         * Builtin property names - all, system or commandline.\n         * @param b an enumerated <code>BuildinPropertySetName</code> value.\n         */\n        public void setBuiltin(BuiltinPropertySetName b) {\n            String pBuiltIn = b.getValue();\n            assertValid(\"builtin\", pBuiltIn);\n            this.builtin = pBuiltIn;\n        }\n\n        private void assertValid(String attr, String value) {\n            if (value == null || value.length() < 1) {\n                throw new BuildException(\"Invalid attribute: \" + attr);\n            }\n\n            if (++count != 1) {\n                throw new BuildException(\"Attributes name, regex, and \"\n                    + \"prefix are mutually exclusive\");\n            }\n        }\n\n        /**\n         * A debug toString().\n         * @return a string version of this object.\n         */\n        public String toString() {\n            return \"name=\" + name + \", regex=\" + regex + \", prefix=\" + prefix\n                + \", builtin=\" + builtin;\n        }\n\t}\n\n    /**\n     * Allow properties of a particular name in the set.\n     * @param name the property name to allow.\n     */\n    public void appendName(String name) {\n        PropertyRef r = new PropertyRef();\n        r.setName(name);\n        addPropertyref(r);\n    }\n\n    /**\n     * Allow properties whose names match a regex in the set.\n     * @param regex the regular expression to use.\n     */\n    public void appendRegex(String regex) {\n        PropertyRef r = new PropertyRef();\n        r.setRegex(regex);\n        addPropertyref(r);\n    }\n\n    /**\n     * Allow properties whose names start with a prefix in the set.\n     * @param prefix the prefix to use.\n     */\n    public void appendPrefix(String prefix) {\n        PropertyRef r = new PropertyRef();\n        r.setPrefix(prefix);\n        addPropertyref(r);\n    }\n\n    /**\n     * Allow builtin (all, system or commandline) properties in the set.\n     * @param b the type of builtin properties.\n     */\n    public void appendBuiltin(BuiltinPropertySetName b) {\n        PropertyRef r = new PropertyRef();\n        r.setBuiltin(b);\n        addPropertyref(r);\n    }\n\n    /**\n     * Set a mapper to change property names.\n     * @param type mapper type.\n     * @param from source pattern.\n     * @param to output pattern.\n     */\n    public void setMapper(String type, String from, String to) {\n        Mapper m = createMapper();\n        Mapper.MapperType mapperType = new Mapper.MapperType();\n        mapperType.setValue(type);\n        m.setFrom(from);\n        m.setTo(to);\n    }\n\n    /**\n     * Add a property reference (nested element) to the references to be used.\n     * @param ref a property reference.\n     */\n    public void addPropertyref(PropertyRef ref) {\n        assertNotReference();\n        ptyRefs.addElement(ref);\n    }\n\n    /**\n     * Add another property set to this set.\n     * @param ref another property set.\n     */\n    public void addPropertyset(PropertySet ref) {\n        assertNotReference();\n        setRefs.addElement(ref);\n    }\n\n    /**\n     * Create a mapper to map the property names.\n     * @return a mapper to be configured.\n     */\n    public Mapper createMapper() {\n        assertNotReference();\n        if (mapper != null) {\n            throw new BuildException(\"Too many <mapper>s!\");\n        }\n        mapper = new Mapper(getProject());\n        return mapper;\n    }\n\n    /**\n     * Add a nested FileNameMapper.\n     * @param fileNameMapper the mapper to add.\n     * @since Ant 1.6.3\n     */\n    public void add(FileNameMapper fileNameMapper) {\n        createMapper().add(fileNameMapper);\n    }\n\n    /**\n     * Set whether to reevaluate the set everytime the set is used.\n     * Default is true.\n     *\n     * @param dynamic if true, reevaluate the property set each time\n     *                the set is used. if false cache the property set\n     *                the first time and use the cached set on subsequent\n     *                occasions.\n     */\n    public void setDynamic(boolean dynamic) {\n        assertNotReference();\n        this.dynamic = dynamic;\n    }\n\n    /**\n     * Set whether to negate results.\n     * If \"true\", all properties not selected by nested elements will be returned.\n     *  Default is \"false\".\n     * @param negate if true, negate the selection criteria.\n     */\n    public void setNegate(boolean negate) {\n        assertNotReference();\n        this.negate = negate;\n    }\n\n    /**\n     * Get the dynamic attribute.\n     * @return true if the property set is to be evalulated each time it is used.\n     */\n    public boolean getDynamic() {\n        return isReference() ? getRef().dynamic : dynamic;\n    }\n\n    /**\n     * Get the mapper attribute.\n     * @return the mapper attribute.\n     */\n    public Mapper getMapper() {\n        return isReference() ? getRef().mapper : mapper;\n    }\n\n    /**\n     * Convert the system properties to a hashtable.\n     * Use propertynames to get the list of properties (including\n     * default ones).\n     */\n    private Hashtable getAllSystemProperties() {\n        Hashtable ret = new Hashtable();\n        for (Enumeration e = System.getProperties().propertyNames();\n             e.hasMoreElements();) {\n            String name = (String) e.nextElement();\n            ret.put(name, System.getProperties().getProperty(name));\n        }\n        return ret;\n    }\n\n    /**\n     * This is the operation to get the existing or recalculated properties.\n     * @return the properties for this propertyset.\n     */\n    public Properties getProperties() {\n        if (isReference()) {\n            return getRef().getProperties();\n        }\n        Set names = null;\n        Project prj = getProject();\n        Hashtable props =\n            prj == null ? getAllSystemProperties() : prj.getProperties();\n\n        for (Enumeration e = setRefs.elements(); e.hasMoreElements();) {\n            PropertySet set = (PropertySet) e.nextElement();\n            props.putAll(set.getProperties());\n        }\n\n        if (getDynamic() || cachedNames == null) {\n            names = new HashSet();\n            addPropertyNames(names, props);\n            for (Enumeration e = setRefs.elements(); e.hasMoreElements();) {\n                PropertySet set = (PropertySet) e.nextElement();\n                names.addAll(set.getProperties().keySet());\n            }\n            if (negate) {\n                HashSet complement = new HashSet(props.keySet());\n                complement.removeAll(names);\n                names = complement;\n            }\n            if (!getDynamic()) {\n                cachedNames = names;\n            }\n        } else {\n            names = cachedNames;\n        }\n        FileNameMapper m = null;\n        Mapper myMapper = getMapper();\n        if (myMapper != null) {\n            m = myMapper.getImplementation();\n        }\n        Properties properties = new Properties();\n        for (Iterator iter = names.iterator(); iter.hasNext();) {\n            String name = (String) iter.next();\n            String value = (String) props.get(name);\n            if (m != null) {\n                String[] newname = m.mapFileName(name);\n                if (newname != null) {\n                    name = newname[0];\n                }\n            }\n            properties.setProperty(name, value);\n        }\n        return properties;\n    }\n\n    /**\n     * @param  names the output Set to fill with the property names\n     *         matching this PropertySet selection criteria.\n     * @param  properties the current Project properties, passed in to\n     *         avoid needless duplication of the Hashtable during recursion.\n     */\n    private void addPropertyNames(Set names, Hashtable properties) {\n        Project prj = getProject();\n\n        for (Enumeration e = ptyRefs.elements(); e.hasMoreElements();) {\n            PropertyRef r = (PropertyRef) e.nextElement();\n            if (r.name != null) {\n                if (prj != null && prj.getProperty(r.name) != null) {\n                    names.add(r.name);\n                }\n            } else if (r.prefix != null) {\n                for (Enumeration p = properties.keys(); p.hasMoreElements();) {\n                    String name = (String) p.nextElement();\n                    if (name.startsWith(r.prefix)) {\n                        names.add(name);\n                    }\n                }\n            } else if (r.regex != null) {\n                RegexpMatcherFactory matchMaker = new RegexpMatcherFactory();\n                RegexpMatcher matcher = matchMaker.newRegexpMatcher();\n                matcher.setPattern(r.regex);\n                for (Enumeration p = properties.keys(); p.hasMoreElements();) {\n                    String name = (String) p.nextElement();\n                    if (matcher.matches(name)) {\n                        names.add(name);\n                    }\n                }\n            } else if (r.builtin != null) {\n\n                if (r.builtin.equals(BuiltinPropertySetName.ALL)) {\n                    names.addAll(properties.keySet());\n                } else if (r.builtin.equals(BuiltinPropertySetName.SYSTEM)) {\n                    names.addAll(System.getProperties().keySet());\n                } else if (r.builtin.equals(BuiltinPropertySetName\n                                              .COMMANDLINE)) {\n                    names.addAll(getProject().getUserProperties().keySet());\n                } else {\n                    throw new BuildException(\"Impossible: Invalid builtin \"\n                                             + \"attribute!\");\n                }\n            } else {\n                throw new BuildException(\"Impossible: Invalid PropertyRef!\");\n            }\n        }\n    }\n\n    /**\n     * Performs the check for circular references and returns the\n     * referenced PropertySet.\n     * @return the referenced PropertySet.\n     */\n    protected PropertySet getRef() {\n        return (PropertySet) getCheckedRef(PropertySet.class, \"propertyset\");\n    }\n\n    /**\n     * Sets the value of the refid attribute.\n     *\n     * @param  r the reference this datatype should point to.\n     * @throws BuildException if another attribute was set, since\n     *         refid and all other attributes are mutually exclusive.\n     */\n    public final void setRefid(Reference r) {\n        if (!noAttributeSet) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);\n    }\n\n    /**\n     * Ensures this data type is not a reference.\n     *\n     * <p>Calling this method as the first line of every bean method of\n     * this data type (setXyz, addXyz, createXyz) ensure proper handling\n     * of the refid attribute.</p>\n     *\n     * @throws BuildException if the refid attribute was already set, since\n     *         refid and all other attributes are mutually exclusive.\n     */\n    protected final void assertNotReference() {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        noAttributeSet = false;\n    }\n\n    /**\n     * Flag which tracks whether any attribute has been set; used by\n     * {@link #assertNotReference()} and {@link #setRefid(Reference)}.\n     */\n    private boolean noAttributeSet = true;\n\n    /**\n     * Used for propertyref's builtin attribute.\n     */\n    public static class BuiltinPropertySetName extends EnumeratedAttribute {\n        static final String ALL = \"all\";\n        static final String SYSTEM = \"system\";\n        static final String COMMANDLINE = \"commandline\";\n        /** @see EnumeratedAttribute#getValues() */\n        public String[] getValues() {\n            return new String[] {ALL, SYSTEM, COMMANDLINE};\n        }\n    }\n\n    /**\n     * A debug toString.\n     * This gets a comma separated list of key=value pairs for\n     * the properties in the set.\n     * The output order is sorted according to the keys' <i>natural order</i>.\n     * @return a string rep of this object.\n     */\n    public String toString() {\n        StringBuffer b = new StringBuffer();\n        TreeMap sorted = new TreeMap(getProperties());\n        for (Iterator i = sorted.entrySet().iterator(); i.hasNext();) {\n            Map.Entry e = (Map.Entry) i.next();\n            if (b.length() != 0) {\n                b.append(\", \");\n            }\n            b.append(e.getKey().toString());\n            b.append(\"=\");\n            b.append(e.getValue().toString());\n        }\n        return b.toString();", "functions": [{"function_name": "appendName", "code": "    public void appendName(String name) {\n        PropertyRef r = new PropertyRef();\n        r.setName(name);\n        addPropertyref(r);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "appendRegex", "code": "    public void appendRegex(String regex) {\n        PropertyRef r = new PropertyRef();\n        r.setRegex(regex);\n        addPropertyref(r);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "appendPrefix", "code": "    public void appendPrefix(String prefix) {\n        PropertyRef r = new PropertyRef();\n        r.setPrefix(prefix);\n        addPropertyref(r);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "appendBuiltin", "code": "    public void appendBuiltin(BuiltinPropertySetName b) {\n        PropertyRef r = new PropertyRef();\n        r.setBuiltin(b);\n        addPropertyref(r);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setMapper", "code": "    public void setMapper(String type, String from, String to) {\n        Mapper m = createMapper();\n        Mapper.MapperType mapperType = new Mapper.MapperType();\n        mapperType.setValue(type);\n        m.setFrom(from);\n        m.setTo(to);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addPropertyref", "code": "    public void addPropertyref(PropertyRef ref) {\n        assertNotReference();\n        ptyRefs.addElement(ref);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addPropertyset", "code": "    public void addPropertyset(PropertySet ref) {\n        assertNotReference();\n        setRefs.addElement(ref);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createMapper", "code": "    public Mapper createMapper() {\n        assertNotReference();\n        if (mapper != null) {\n            throw new BuildException(\"Too many <mapper>s!\");\n        }\n        mapper = new Mapper(getProject());\n        return mapper;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [3, 6], [2, 7], [4, 8], [6, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 3], [7, 2], [8, 4], [9, 6], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "add", "code": "    public void add(FileNameMapper fileNameMapper) {\n        createMapper().add(fileNameMapper);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDynamic", "code": "    public void setDynamic(boolean dynamic) {\n        assertNotReference();\n        this.dynamic = dynamic;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setNegate", "code": "    public void setNegate(boolean negate) {\n        assertNotReference();\n        this.negate = negate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDynamic", "code": "    public boolean getDynamic() {\n        return isReference() ? getRef().dynamic : dynamic;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getMapper", "code": "    public Mapper getMapper() {\n        return isReference() ? getRef().mapper : mapper;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAllSystemProperties", "code": "    private Hashtable getAllSystemProperties() {\n        Hashtable ret = new Hashtable();\n        for (Enumeration e = System.getProperties().propertyNames();\n             e.hasMoreElements();) {\n            String name = (String) e.nextElement();\n            ret.put(name, System.getProperties().getProperty(name));\n        }\n        return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [3, 6], [2, 7], [2, 8], [7, 9], [8, 10], [9, 11], [5, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 3], [7, 2], [8, 2], [9, 7], [10, 8], [11, 9], [12, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getProperties", "code": "    public Properties getProperties() {\n        if (isReference()) {\n            return getRef().getProperties();\n        }\n        Set names = null;\n        Project prj = getProject();\n        Hashtable props =\n            prj == null ? getAllSystemProperties() : prj.getProperties();\n\n        for (Enumeration e = setRefs.elements(); e.hasMoreElements();) {\n            PropertySet set = (PropertySet) e.nextElement();\n            props.putAll(set.getProperties());\n        }\n\n        if (getDynamic() || cachedNames == null) {\n            names = new HashSet();\n            addPropertyNames(names, props);\n            for (Enumeration e = setRefs.elements(); e.hasMoreElements();) {\n                PropertySet set = (PropertySet) e.nextElement();\n                names.addAll(set.getProperties().keySet());\n            }\n            if (negate) {\n                HashSet complement = new HashSet(props.keySet());\n                complement.removeAll(names);\n                names = complement;\n            }\n            if (!getDynamic()) {\n                cachedNames = names;\n            }\n        } else {\n            names = cachedNames;\n        }\n        FileNameMapper m = null;\n        Mapper myMapper = getMapper();\n        if (myMapper != null) {\n            m = myMapper.getImplementation();\n        }\n        Properties properties = new Properties();\n        for (Iterator iter = names.iterator(); iter.hasNext();) {\n            String name = (String) iter.next();\n            String value = (String) props.get(name);\n            if (m != null) {\n                String[] newname = m.mapFileName(name);\n                if (newname != null) {\n                    name = newname[0];\n                }\n            }\n            properties.setProperty(name, value);\n        }\n        return properties;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LOOP", "BINARY_OP", "CALL", "VAR_DECL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [4, 14], [7, 15], [8, 16], [12, 17], [2, 18], [2, 19], [2, 20], [3, 21], [14, 22], [5, 23], [6, 24], [7, 25], [7, 26], [7, 27], [15, 28], [15, 29], [8, 30], [9, 31], [10, 32], [11, 33], [12, 34], [2, 35], [18, 36], [2, 37], [4, 38], [7, 39], [25, 40], [27, 41], [7, 42], [7, 43], [28, 44], [8, 45], [8, 46], [31, 47], [31, 48], [31, 49], [34, 50], [18, 51], [18, 52], [36, 53], [38, 54], [26, 55], [27, 56], [43, 57], [45, 58], [49, 59], [50, 60], [51, 61], [19, 62], [20, 63], [25, 64], [26, 65], [26, 66], [27, 67], [27, 68], [30, 69], [61, 70], [52, 71], [55, 72], [67, 73], [51, 74], [72, 75], [73, 76], [56, 77], [74, 78], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 4], [15, 7], [16, 8], [17, 12], [18, 2], [19, 2], [20, 2], [21, 3], [22, 14], [23, 5], [24, 6], [25, 7], [26, 7], [27, 7], [28, 15], [29, 15], [30, 8], [31, 9], [32, 10], [33, 11], [34, 12], [35, 2], [36, 18], [37, 2], [38, 4], [39, 7], [40, 25], [41, 27], [42, 7], [43, 7], [44, 28], [45, 8], [46, 8], [47, 31], [48, 31], [49, 31], [50, 34], [51, 18], [52, 18], [53, 36], [54, 38], [55, 26], [56, 27], [57, 43], [58, 45], [59, 49], [60, 50], [61, 51], [62, 19], [63, 20], [64, 25], [65, 26], [66, 26], [67, 27], [68, 27], [69, 30], [70, 61], [71, 52], [72, 55], [73, 67], [74, 51], [75, 72], [76, 73], [77, 56], [78, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78]]}, {"function_name": "addPropertyNames", "code": "    private void addPropertyNames(Set names, Hashtable properties) {\n        Project prj = getProject();\n\n        for (Enumeration e = ptyRefs.elements(); e.hasMoreElements();) {\n            PropertyRef r = (PropertyRef) e.nextElement();\n            if (r.name != null) {\n                if (prj != null && prj.getProperty(r.name) != null) {\n                    names.add(r.name);\n                }\n            } else if (r.prefix != null) {\n                for (Enumeration p = properties.keys(); p.hasMoreElements();) {\n                    String name = (String) p.nextElement();\n                    if (name.startsWith(r.prefix)) {\n                        names.add(name);\n                    }\n                }\n            } else if (r.regex != null) {\n                RegexpMatcherFactory matchMaker = new RegexpMatcherFactory();\n                RegexpMatcher matcher = matchMaker.newRegexpMatcher();\n                matcher.setPattern(r.regex);\n                for (Enumeration p = properties.keys(); p.hasMoreElements();) {\n                    String name = (String) p.nextElement();\n                    if (matcher.matches(name)) {\n                        names.add(name);\n                    }\n                }\n            } else if (r.builtin != null) {\n\n                if (r.builtin.equals(BuiltinPropertySetName.ALL)) {\n                    names.addAll(properties.keySet());\n                } else if (r.builtin.equals(BuiltinPropertySetName.SYSTEM)) {\n                    names.addAll(System.getProperties().keySet());\n                } else if (r.builtin.equals(BuiltinPropertySetName\n                                              .COMMANDLINE)) {\n                    names.addAll(getProject().getUserProperties().keySet());\n                } else {\n                    throw new BuildException(\"Impossible: Invalid builtin \"\n                                             + \"attribute!\");\n                }\n            } else {\n                throw new BuildException(\"Impossible: Invalid PropertyRef!\");", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [6, 9], [6, 10], [1, 11], [9, 12], [9, 13], [6, 14], [10, 15], [12, 16], [12, 17], [9, 18], [13, 19], [14, 20], [7, 21], [16, 22], [12, 23], [12, 24], [12, 25], [17, 26], [18, 27], [20, 28], [20, 29], [16, 30], [16, 31], [22, 32], [23, 33], [12, 34], [18, 35], [18, 36], [14, 37], [28, 38], [28, 39], [29, 40], [30, 41], [31, 42], [31, 43], [23, 44], [23, 45], [24, 46], [25, 47], [35, 48], [18, 49], [41, 50], [42, 51], [42, 52], [44, 53], [23, 54], [51, 55], [31, 56], [35, 57], [36, 58], [51, 59], [42, 60], [56, 61], [44, 62], [45, 63], [59, 64], [51, 65], [60, 66], [64, 67], [65, 68], [66, 69], [67, 70], [67, 71], [68, 72], [68, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 6], [10, 6], [11, 1], [12, 9], [13, 9], [14, 6], [15, 10], [16, 12], [17, 12], [18, 9], [19, 13], [20, 14], [21, 7], [22, 16], [23, 12], [24, 12], [25, 12], [26, 17], [27, 18], [28, 20], [29, 20], [30, 16], [31, 16], [32, 22], [33, 23], [34, 12], [35, 18], [36, 18], [37, 14], [38, 28], [39, 28], [40, 29], [41, 30], [42, 31], [43, 31], [44, 23], [45, 23], [46, 24], [47, 25], [48, 35], [49, 18], [50, 41], [51, 42], [52, 42], [53, 44], [54, 23], [55, 51], [56, 31], [57, 35], [58, 36], [59, 51], [60, 42], [61, 56], [62, 44], [63, 45], [64, 59], [65, 51], [66, 60], [67, 64], [68, 65], [69, 66], [70, 67], [71, 67], [72, 68], [73, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "getRef", "code": "    protected PropertySet getRef() {\n        return (PropertySet) getCheckedRef(PropertySet.class, \"propertyset\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRefid", "code": "    public final void setRefid(Reference r) {\n        if (!noAttributeSet) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "assertNotReference", "code": "    protected final void assertNotReference() {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        noAttributeSet = false;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer b = new StringBuffer();\n        TreeMap sorted = new TreeMap(getProperties());\n        for (Iterator i = sorted.entrySet().iterator(); i.hasNext();) {\n            Map.Entry e = (Map.Entry) i.next();\n            if (b.length() != 0) {\n                b.append(\", \");\n            }\n            b.append(e.getKey().toString());\n            b.append(\"=\");\n            b.append(e.getValue().toString());\n        }\n        return b.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [3, 9], [4, 10], [2, 11], [2, 12], [2, 13], [7, 14], [2, 15], [9, 16], [11, 17], [12, 18], [13, 19], [14, 20], [14, 21], [15, 22], [17, 23], [19, 24], [7, 25], [8, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 3], [10, 4], [11, 2], [12, 2], [13, 2], [14, 7], [15, 2], [16, 9], [17, 11], [18, 12], [19, 13], [20, 14], [21, 14], [22, 15], [23, 17], [24, 19], [25, 7], [26, 8], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}], "label": 1}
{"sample_id": "camel-1.2-1987", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/InvalidTypeException.java", "language": "java", "name": "org.apache.camel.InvalidTypeException", "code": "public class InvalidTypeException extends CamelExchangeException {\n    private final Object value;\n    private final Class<?> type;\n\n    public InvalidTypeException(Exchange exchange, Object value, Class<?> type) {\n        super(\"Could not convert value: \" + value + \" to type: \" + type.getName()\n              + NoSuchPropertyException.valueDescription(value), exchange);\n        this.value = value;\n        this.type = type;\n    }\n\n    /**\n     * The value\n     */\n    public Object getValue() {\n        return value;\n    }\n\n    /**\n     * The expected type of the value\n     */\n    public Class<?> getType() {\n        return type;", "functions": [{"function_name": "getValue", "code": "    public Object getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public Class<?> getType() {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "InvalidTypeException", "code": "    public InvalidTypeException(Exchange exchange, Object value, Class<?> type) {\n        super(\"Could not convert value: \" + value + \" to type: \" + type.getName()\n              + NoSuchPropertyException.valueDescription(value), exchange);\n        this.value = value;\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 1}
{"sample_id": "camel-1.6-3192", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/mail/MailMessage.java", "language": "java", "name": "org.apache.camel.component.mail.MailMessage", "code": "public class MailMessage extends DefaultMessage {\n    private Message mailMessage;\n\n    public MailMessage() {\n    }\n\n    public MailMessage(Message message) {\n        this.mailMessage = message;\n    }\n\n    @Override\n    public String toString() {\n        if (mailMessage != null) {\n            return \"MailMessage: \" + MailUtils.dumpMessage(mailMessage);\n        } else {\n            return \"MailMessage: \" + getBody();\n        }\n    }\n\n    @Override\n    public MailExchange getExchange() {\n        return (MailExchange)super.getExchange();\n    }\n\n    public MailMessage copy() {\n        MailMessage answer = (MailMessage)super.copy();\n        answer.mailMessage = mailMessage;\n        return answer;\n    }\n\n    /**\n     * Returns the underlying Mail message\n     */\n    public Message getMessage() {\n        return mailMessage;\n    }\n\n    public void setMessage(Message mailMessage) {\n        this.mailMessage = mailMessage;\n    }\n\n    @Override\n    public Object getHeader(String name) {\n        Object answer = super.getHeader(name);\n        \n        if (answer == null) {\n            answer = super.getHeader(name.toLowerCase());\n        }\n        return answer;\n    }\n  \n    @Override\n    public MailMessage newInstance() {\n        return new MailMessage();\n    }\n\n    @Override\n    protected Object createBody() {\n        if (mailMessage != null) {\n            return getExchange().getBinding().extractBodyFromMail(getExchange(), mailMessage);\n        }\n        return null;\n    }\n\n    @Override\n    protected void populateInitialHeaders(Map<String, Object> map) {\n        if (mailMessage != null) {\n            try {\n                map.putAll(getExchange().getBinding().extractHeadersFromMail(mailMessage));\n            } catch (MessagingException e) {\n                throw new RuntimeCamelException(\"Error accessing headers due to: \" + e.getMessage(), e);\n            }\n        }\n    }\n\n    @Override\n    protected void populateInitialAttachments(Map<String, DataHandler> map) {\n        if (mailMessage != null) {\n            try {\n                extractAttachments(mailMessage, map);\n            } catch (Exception e) {\n                throw new RuntimeCamelException(\"Error populating the initial mail message attachments\", e);\n            }\n        }\n    }\n\n    public void copyFrom(org.apache.camel.Message that) {\n        super.copyFrom(that);\n        if (that instanceof MailMessage) {\n            MailMessage mailMessage = (MailMessage) that;\n            this.mailMessage = mailMessage.mailMessage;\n        }\n    }\n\n    /**\n     * Parses the attachments of the given mail message and adds them to the map\n     *\n     * @param  message  the mail message with attachments\n     * @param  map      the map to add found attachments (attachmentFilename is the key)\n     */\n    protected static void extractAttachments(Message message, Map<String, DataHandler> map)\n        throws javax.mail.MessagingException, IOException {\n\n        Object content = message.getContent();\n        if (content instanceof Multipart) {\n            Multipart mp = (Multipart)content;\n            for (int i = 0; i < mp.getCount(); i++) {\n                Part part = mp.getBodyPart(i);\n                String disposition = part.getDisposition();\n                if (disposition != null) {\n                    if (disposition.equalsIgnoreCase(Part.ATTACHMENT) || disposition.equalsIgnoreCase(Part.INLINE)) {\n                        if (part.getFileName() != null) {\n                            CollectionHelper.appendValue(map, part.getFileName(), part.getDataHandler());", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        if (mailMessage != null) {\n            return \"MailMessage: \" + MailUtils.dumpMessage(mailMessage);\n        } else {\n            return \"MailMessage: \" + getBody();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [7, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getExchange", "code": "    @Override\n    public MailExchange getExchange() {\n        return (MailExchange)super.getExchange();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "copy", "code": "    public MailMessage copy() {\n        MailMessage answer = (MailMessage)super.copy();\n        answer.mailMessage = mailMessage;\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMessage", "code": "    public Message getMessage() {\n        return mailMessage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessage", "code": "    public void setMessage(Message mailMessage) {\n        this.mailMessage = mailMessage;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeader", "code": "    @Override\n    public Object getHeader(String name) {\n        Object answer = super.getHeader(name);\n        \n        if (answer == null) {\n            answer = super.getHeader(name.toLowerCase());\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "newInstance", "code": "    @Override\n    public MailMessage newInstance() {\n        return new MailMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createBody", "code": "    @Override\n    protected Object createBody() {\n        if (mailMessage != null) {\n            return getExchange().getBinding().extractBodyFromMail(getExchange(), mailMessage);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [7, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 7], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "populateInitialHeaders", "code": "    @Override\n    protected void populateInitialHeaders(Map<String, Object> map) {\n        if (mailMessage != null) {\n            try {\n                map.putAll(getExchange().getBinding().extractHeadersFromMail(mailMessage));\n            } catch (MessagingException e) {\n                throw new RuntimeCamelException(\"Error accessing headers due to: \" + e.getMessage(), e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [6, 7], [4, 8], [7, 9], [8, 10], [9, 11], [10, 12], [10, 13], [11, 14], [11, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 6], [8, 4], [9, 7], [10, 8], [11, 9], [12, 10], [13, 10], [14, 11], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "populateInitialAttachments", "code": "    @Override\n    protected void populateInitialAttachments(Map<String, DataHandler> map) {\n        if (mailMessage != null) {\n            try {\n                extractAttachments(mailMessage, map);\n            } catch (Exception e) {\n                throw new RuntimeCamelException(\"Error populating the initial mail message attachments\", e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [6, 7], [4, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 6], [8, 4], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "copyFrom", "code": "    public void copyFrom(org.apache.camel.Message that) {\n        super.copyFrom(that);\n        if (that instanceof MailMessage) {\n            MailMessage mailMessage = (MailMessage) that;\n            this.mailMessage = mailMessage.mailMessage;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "extractAttachments", "code": "    protected static void extractAttachments(Message message, Map<String, DataHandler> map)\n        throws javax.mail.MessagingException, IOException {\n\n        Object content = message.getContent();\n        if (content instanceof Multipart) {\n            Multipart mp = (Multipart)content;\n            for (int i = 0; i < mp.getCount(); i++) {\n                Part part = mp.getBodyPart(i);\n                String disposition = part.getDisposition();\n                if (disposition != null) {\n                    if (disposition.equalsIgnoreCase(Part.ATTACHMENT) || disposition.equalsIgnoreCase(Part.INLINE)) {\n                        if (part.getFileName() != null) {\n                            CollectionHelper.appendValue(map, part.getFileName(), part.getDataHandler());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [6, 9], [6, 10], [6, 11], [6, 12], [9, 13], [10, 14], [6, 15], [10, 16], [14, 17], [11, 18], [12, 19], [16, 20], [16, 21], [20, 22], [20, 23], [21, 24], [24, 25], [24, 26], [21, 27], [27, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 6], [10, 6], [11, 6], [12, 6], [13, 9], [14, 10], [15, 6], [16, 10], [17, 14], [18, 11], [19, 12], [20, 16], [21, 16], [22, 20], [23, 20], [24, 21], [25, 24], [26, 24], [27, 21], [28, 27], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "MailMessage", "code": "    public MailMessage() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "MailMessage", "code": "    public MailMessage(Message message) {\n        this.mailMessage = message;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-3110", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/impl/ProducerCache.java", "language": "java", "name": "org.apache.camel.impl.ProducerCache", "code": "public class ProducerCache<E extends Exchange> extends ServiceSupport {\n    private static final transient Log LOG = LogFactory.getLog(ProducerCache.class);\n\n    private Map<String, Producer<E>> producers = new HashMap<String, Producer<E>>();\n\n    public synchronized Producer<E> getProducer(Endpoint<E> endpoint) {\n        String key = endpoint.getEndpointUri();\n        Producer<E> answer = producers.get(key);\n        if (answer == null) {\n            try {\n                answer = endpoint.createProducer();\n                answer.start();\n            } catch (Exception e) {\n                throw new FailedToCreateProducerException(endpoint, e);\n            }\n            producers.put(key, answer);\n        }\n        return answer;\n    }\n\n    /**\n     * Sends the exchange to the given endpoint\n     *\n     * @param endpoint the endpoint to send the exchange to\n     * @param exchange the exchange to send\n     */\n    public void send(Endpoint<E> endpoint, E exchange) {\n        try {\n            Producer<E> producer = getProducer(endpoint);\n            producer.process(exchange);\n        } catch (Exception e) {\n            throw wrapRuntimeCamelException(e);\n        }\n    }\n\n    /**\n     * Sends an exchange to an endpoint using a supplied\n     * {@link Processor} to populate the exchange\n     *\n     * @param endpoint the endpoint to send the exchange to\n     * @param processor the transformer used to populate the new exchange\n     */\n    public E send(Endpoint<E> endpoint, Processor processor) {\n        try {\n            Producer<E> producer = getProducer(endpoint);\n            E exchange = producer.createExchange();\n            return sendExchange(endpoint, producer, processor, exchange);\n        } catch (Exception e) {\n            throw wrapRuntimeCamelException(e);\n        }\n    }\n\n    /**\n     * Sends an exchange to an endpoint using a supplied\n     * {@link Processor} to populate the exchange.  The callback\n     * will be called when the exchange is completed.\n     *\n     * @param endpoint the endpoint to send the exchange to\n     * @param processor the transformer used to populate the new exchange\n     */\n    public E send(Endpoint<E> endpoint, Processor processor, AsyncCallback callback) {\n        try {\n            Producer<E> producer = getProducer(endpoint);\n            E exchange = producer.createExchange();\n            boolean sync = sendExchange(endpoint, producer, processor, exchange, callback);\n            setProcessedSync(exchange, sync);\n            return exchange;\n        } catch (Exception e) {\n            throw wrapRuntimeCamelException(e);\n        }\n    }\n\n    public static boolean isProcessedSync(Exchange exchange) {\n        Boolean rc = exchange.getProperty(ProducerCache.class.getName() + \".SYNC\", Boolean.class);\n        return rc == null ? false : rc;\n    }\n\n    public static void setProcessedSync(Exchange exchange, boolean b) {\n        exchange.setProperty(ProducerCache.class.getName() + \".SYNC\", b ? Boolean.TRUE : Boolean.FALSE);\n    }\n\n    /**\n     * Sends an exchange to an endpoint using a supplied\n     * {@link Processor} to populate the exchange\n     *\n     * @param endpoint the endpoint to send the exchange to\n     * @param pattern the message {@link ExchangePattern} such as\n     *   {@link ExchangePattern#InOnly} or {@link ExchangePattern#InOut}\n     * @param processor the transformer used to populate the new exchange\n     */\n    public E send(Endpoint<E> endpoint, ExchangePattern pattern, Processor processor) {\n        try {\n            Producer<E> producer = getProducer(endpoint);\n            E exchange = producer.createExchange(pattern);\n            return sendExchange(endpoint, producer, processor, exchange);\n        } catch (Exception e) {\n            throw wrapRuntimeCamelException(e);\n        }\n    }\n\n\n    protected E sendExchange(Endpoint<E> endpoint, Producer<E> producer, Processor processor, E exchange) throws Exception {\n        processor.process(exchange);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\">>>> \" + endpoint + \" \" + exchange);\n        }\n        producer.process(exchange);\n        return exchange;\n    }\n\n    protected boolean sendExchange(Endpoint<E> endpoint, Producer<E> producer, Processor processor, E exchange, AsyncCallback callback) throws Exception {\n        processor.process(exchange);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\">>>> \" + endpoint + \" \" + exchange);\n        }\n        return AsyncProcessorTypeConverter.convert(producer).process(exchange, callback);\n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(producers.values());\n        producers.clear();\n    }\n\n    protected void doStart() throws Exception {", "functions": [{"function_name": "getProducer", "code": "    public synchronized Producer<E> getProducer(Endpoint<E> endpoint) {\n        String key = endpoint.getEndpointUri();\n        Producer<E> answer = producers.get(key);\n        if (answer == null) {\n            try {\n                answer = endpoint.createProducer();\n                answer.start();\n            } catch (Exception e) {\n                throw new FailedToCreateProducerException(endpoint, e);\n            }\n            producers.put(key, answer);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "THROW_RAISE", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [2, 11], [7, 12], [12, 13], [7, 14], [7, 15], [13, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 2], [12, 7], [13, 12], [14, 7], [15, 7], [16, 13], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "send", "code": "    public void send(Endpoint<E> endpoint, E exchange) {\n        try {\n            Producer<E> producer = getProducer(endpoint);\n            producer.process(exchange);\n        } catch (Exception e) {\n            throw wrapRuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [6, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 6], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "send", "code": "    public E send(Endpoint<E> endpoint, Processor processor) {\n        try {\n            Producer<E> producer = getProducer(endpoint);\n            E exchange = producer.createExchange();\n            return sendExchange(endpoint, producer, processor, exchange);\n        } catch (Exception e) {\n            throw wrapRuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [8, 10], [6, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 8], [11, 6], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "send", "code": "    public E send(Endpoint<E> endpoint, Processor processor, AsyncCallback callback) {\n        try {\n            Producer<E> producer = getProducer(endpoint);\n            E exchange = producer.createExchange();\n            boolean sync = sendExchange(endpoint, producer, processor, exchange, callback);\n            setProcessedSync(exchange, sync);\n            return exchange;\n        } catch (Exception e) {\n            throw wrapRuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [1, 11], [10, 12], [7, 13], [8, 14], [9, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 1], [12, 10], [13, 7], [14, 8], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "isProcessedSync", "code": "    public static boolean isProcessedSync(Exchange exchange) {\n        Boolean rc = exchange.getProperty(ProducerCache.class.getName() + \".SYNC\", Boolean.class);\n        return rc == null ? false : rc;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [6, 8], [7, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 6], [9, 7], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setProcessedSync", "code": "    public static void setProcessedSync(Exchange exchange, boolean b) {\n        exchange.setProperty(ProducerCache.class.getName() + \".SYNC\", b ? Boolean.TRUE : Boolean.FALSE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "send", "code": "    public E send(Endpoint<E> endpoint, ExchangePattern pattern, Processor processor) {\n        try {\n            Producer<E> producer = getProducer(endpoint);\n            E exchange = producer.createExchange(pattern);\n            return sendExchange(endpoint, producer, processor, exchange);\n        } catch (Exception e) {\n            throw wrapRuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [6, 10], [9, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 6], [11, 9], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "sendExchange", "code": "    protected E sendExchange(Endpoint<E> endpoint, Producer<E> producer, Processor processor, E exchange) throws Exception {\n        processor.process(exchange);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\">>>> \" + endpoint + \" \" + exchange);\n        }\n        producer.process(exchange);\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [2, 10], [10, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 2], [11, 10], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "sendExchange", "code": "    protected boolean sendExchange(Endpoint<E> endpoint, Producer<E> producer, Processor processor, E exchange, AsyncCallback callback) throws Exception {\n        processor.process(exchange);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\">>>> \" + endpoint + \" \" + exchange);\n        }\n        return AsyncProcessorTypeConverter.convert(producer).process(exchange, callback);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [0, 10], [8, 11], [2, 12], [12, 13], [13, 14], [14, 15], [14, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 0], [11, 8], [12, 2], [13, 12], [14, 13], [15, 14], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(producers.values());\n        producers.clear();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "poi-3.0-6140", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/PasswordRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.PasswordRecord", "code": "public class PasswordRecord\n    extends Record\n{\n    public final static short sid = 0x13;\n\n    public PasswordRecord()\n    {\n    }\n\n    /**\n     * Constructs a Password record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x13 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public PasswordRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PASSWORD RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_password = in.readShort();\n    }\n\n    /**\n     * set the password\n     *\n     * @param password  representing the password\n     */\n\n    public void setPassword(short password)\n    {\n        field_1_password = password;\n    }\n\n    /**\n     * get the password\n     *\n     * @return short  representing the password\n     */\n\n    public short getPassword()\n    {\n        return field_1_password;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PASSWORD]\\n\");\n        buffer.append(\"    .password       = \")\n            .append(Integer.toHexString(getPassword())).append(\"\\n\");\n        buffer.append(\"[/PASSWORD]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getPassword());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    /**\n     * Clone this record.\n     */\n    public Object clone() {\n      PasswordRecord clone = new PasswordRecord();\n      clone.setPassword(field_1_password);\n      return clone;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PASSWORD RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_password = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setPassword", "code": "    public void setPassword(short password)\n    {\n        field_1_password = password;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPassword", "code": "    public short getPassword()\n    {\n        return field_1_password;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PASSWORD]\\n\");\n        buffer.append(\"    .password       = \")\n            .append(Integer.toHexString(getPassword())).append(\"\\n\");\n        buffer.append(\"[/PASSWORD]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getPassword());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      PasswordRecord clone = new PasswordRecord();\n      clone.setPassword(field_1_password);\n      return clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "PasswordRecord", "code": "    public PasswordRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PasswordRecord", "code": "    public PasswordRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.4-2092", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/impl/DefaultComponent.java", "language": "java", "name": "org.apache.camel.impl.DefaultComponent", "code": "public abstract class DefaultComponent<E extends Exchange> extends ServiceSupport implements Component<E> {\n    private static final transient Log LOG = LogFactory.getLog(DefaultComponent.class);\n\n    private int defaultThreadPoolSize = 5;\n    private CamelContext camelContext;\n    private ScheduledExecutorService executorService;\n\n    public DefaultComponent() {\n    }\n\n    public DefaultComponent(CamelContext context) {\n        this.camelContext = context;\n    }\n\n    public Endpoint<E> createEndpoint(String uri) throws Exception {\n        ObjectHelper.notNull(getCamelContext(), \"camelContext\");\n        URI u = new URI(UnsafeUriCharactersEncoder.encode(uri));\n        String path = u.getSchemeSpecificPart();\n\n            path = path.substring(2);\n        \n        int idx = path.indexOf('?');\n        if (idx > 0) {\n            path = path.substring(0, idx);\n        }\n        Map parameters = URISupport.parseParameters(u);\n\n        validateURI(uri, path, parameters);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Creating endpoint uri=[\" + uri + \"], path=[\" + path + \"], parameters=[\" + parameters + \"]\");\n        }\n        Endpoint<E> endpoint = createEndpoint(uri, path, parameters);\n        if (endpoint == null) {\n            return null;\n        }\n\n        if (parameters != null) {\n            endpoint.configureProperties(parameters);\n            if (useIntrospectionOnEndpoint()) {\n                setProperties(endpoint, parameters);\n            }\n\n            if (parameters.size() > 0) {\n                throw new ResolveEndpointFailedException(uri, \"There are \" + parameters.size()\n                    + \" parameters that couldn't be set on the endpoint.\"\n                    + \" Check the uri if the parameters are spelt correctly and that they are properties of the endpoint.\"\n                    + \" Unknown parameters=[\" + parameters + \"]\");\n            }\n        }\n\n        return endpoint;\n    }\n\n    /**\n     * Strategy for validation of the uri when creating the endpoint.\n     *\n     * @param uri        the uri - the uri the end user provided untouched\n     * @param path       the path - part after the scheme\n     * @param parameters the parameters, an empty map if no parameters given\n     * @throws ResolveEndpointFailedException should be thrown if the URI validation failed\n     */\n    protected void validateURI(String uri, String path, Map parameters) throws ResolveEndpointFailedException {\n        if (uri.contains(\"&\") && !uri.contains(\"?\")) {\n            throw new ResolveEndpointFailedException(uri, \"Invalid uri syntax: no ? marker however the uri \"\n                + \"has & parameter separators. Check the uri if its missing a ? marker.\");\n        }\n\n        if (uri.contains(\"&&\")) {\n            throw new ResolveEndpointFailedException(uri, \"Invalid uri syntax: Double && marker found. \"\n                + \"Check the uri and remove the duplicate & marker.\");\n        }\n    }\n\n    public CamelContext getCamelContext() {\n        return camelContext;\n    }\n\n    public void setCamelContext(CamelContext context) {\n        this.camelContext = context;\n    }\n\n    public ScheduledExecutorService getExecutorService() {\n        if (executorService == null) {\n            executorService = createExecutorService();\n        }\n        return executorService;\n    }\n\n    public void setExecutorService(ScheduledExecutorService executorService) {\n        this.executorService = executorService;\n    }\n\n    /**\n     * A factory method to create a default thread pool and executor\n     */\n    protected ScheduledExecutorService createExecutorService() {\n        return new ScheduledThreadPoolExecutor(defaultThreadPoolSize, new ThreadFactory() {\n            int counter;\n\n            public synchronized Thread newThread(Runnable runnable) {\n                Thread thread = new Thread(runnable);\n                thread.setName(\"Thread: \" + (++counter) + \" \" + DefaultComponent.this.toString());\n                return thread;\n            }\n        });\n    }\n\n    protected void doStart() throws Exception {\n    }\n\n    protected void doStop() throws Exception {\n        if (executorService != null) {\n            executorService.shutdown();\n        }\n    }\n\n    /**\n     * A factory method allowing derived components to create a new endpoint\n     * from the given URI, remaining path and optional parameters\n     *\n     * @param uri the full URI of the endpoint\n     * @param remaining the remaining part of the URI without the query\n     *                parameters or component prefix\n     * @param parameters the optional parameters passed in\n     * @return a newly created endpoint or null if the endpoint cannot be\n     *         created based on the inputs\n     */\n    protected abstract Endpoint<E> createEndpoint(String uri, String remaining, Map parameters)\n        throws Exception;\n\n    /**\n     * Sets the bean properties on the given bean\n     */\n    protected void setProperties(Object bean, Map parameters) throws Exception {\n        IntrospectionSupport.setProperties(getCamelContext().getTypeConverter(), bean, parameters);\n    }\n\n    /**\n     * Derived classes may wish to overload this to prevent the default introspection of URI parameters\n     * on the created Endpoint instance\n     */\n    protected boolean useIntrospectionOnEndpoint() {\n        return true;\n    }\n\n\n\n    /**\n     * Converts the given value to the requested type\n     */\n    public <T> T convertTo(Class<T> type, Object value) {\n        return CamelContextHelper.convertTo(getCamelContext(), type, value);\n    }\n\n    /**\n     * Converts the given value to the specified type throwing an {@link IllegalArgumentException}\n     * if the value could not be converted to a non null value\n     */\n    public  <T> T mandatoryConvertTo(Class<T> type, Object value) {\n        return CamelContextHelper.mandatoryConvertTo(getCamelContext(), type, value);\n    }\n\n    /**\n     * Creates a new instance of the given type using the {@link Injector} on the given\n     * {@link CamelContext}\n     */\n    public  <T> T newInstance(Class<T> beanType) {\n        return getCamelContext().getInjector().newInstance(beanType);\n    }\n\n    /**\n     * Look up the given named bean in the {@link Registry} on the\n     * {@link CamelContext}\n     */\n    public Object lookup(String name) {\n        return getCamelContext().getRegistry().lookup(name);\n    }\n\n    /**\n     * Look up the given named bean of the given type in the {@link Registry} on the\n     * {@link CamelContext}\n     */\n    public <T> T lookup(String name, Class<T> beanType) {\n        return getCamelContext().getRegistry().lookup(name, beanType);\n    }\n\n    /**\n     * Look up the given named bean in the {@link Registry} on the\n     * {@link CamelContext} or throws\n     */\n    public Object mandatoryLookup(String name) {\n        return CamelContextHelper.mandatoryLookup(getCamelContext(), name);\n    }\n\n    /**\n     * Look up the given named bean of the given type in the {@link Registry} on the\n     * {@link CamelContext}\n     */\n    public <T> T mandatoryLookup(String name, Class<T> beanType) {\n        return CamelContextHelper.mandatoryLookup(getCamelContext(), name, beanType);\n    }\n\n    /**\n     * Gets the parameter and remove it from the parameter map.\n     * \n     * @param parameters  the parameters\n     * @param key        the key\n     * @param type       the requested type to convert the value from the parameter\n     * @return  the converted value parameter, <tt>null</tt> if parameter does not exists.\n     */\n    public <T> T getAndRemoveParameter(Map parameters, String key, Class<T> type) {\n        return getAndRemoveParameter(parameters, key, type, null);\n    }\n\n    /**\n     * Gets the parameter and remove it from the parameter map.\n     *\n     * @param parameters     the parameters\n     * @param key           the key\n     * @param type          the requested type to convert the value from the parameter\n     * @param defaultValue  use this default value if the parameter does not contain the key\n     * @return  the converted value parameter\n     */\n    public <T> T getAndRemoveParameter(Map parameters, String key, Class<T> type, T defaultValue) {\n        Object value = parameters.remove(key);\n        if (value == null) {\n            value = defaultValue;\n        }\n        if (value == null) {\n            return null;\n        }\n        return convertTo(type, value);", "functions": [{"function_name": "createEndpoint", "code": "    public Endpoint<E> createEndpoint(String uri) throws Exception {\n        ObjectHelper.notNull(getCamelContext(), \"camelContext\");\n        URI u = new URI(UnsafeUriCharactersEncoder.encode(uri));\n        String path = u.getSchemeSpecificPart();\n\n            path = path.substring(2);\n        \n        int idx = path.indexOf('?');\n        if (idx > 0) {\n            path = path.substring(0, idx);\n        }\n        Map parameters = URISupport.parseParameters(u);\n\n        validateURI(uri, path, parameters);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Creating endpoint uri=[\" + uri + \"], path=[\" + path + \"], parameters=[\" + parameters + \"]\");\n        }\n        Endpoint<E> endpoint = createEndpoint(uri, path, parameters);\n        if (endpoint == null) {\n            return null;\n        }\n\n        if (parameters != null) {\n            endpoint.configureProperties(parameters);\n            if (useIntrospectionOnEndpoint()) {\n                setProperties(endpoint, parameters);\n            }\n\n            if (parameters.size() > 0) {\n                throw new ResolveEndpointFailedException(uri, \"There are \" + parameters.size()\n                    + \" parameters that couldn't be set on the endpoint.\"\n                    + \" Check the uri if the parameters are spelt correctly and that they are properties of the endpoint.\"\n                    + \" Unknown parameters=[\" + parameters + \"]\");\n            }\n        }\n\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [5, 14], [0, 15], [7, 16], [0, 17], [0, 18], [2, 19], [2, 20], [12, 21], [3, 22], [13, 23], [4, 24], [6, 25], [16, 26], [8, 27], [17, 28], [9, 29], [10, 30], [18, 31], [18, 32], [19, 33], [20, 34], [2, 35], [22, 36], [5, 37], [7, 38], [27, 39], [28, 40], [30, 41], [19, 42], [33, 43], [33, 44], [37, 45], [38, 46], [42, 47], [20, 48], [45, 49], [45, 50], [46, 51], [47, 52], [50, 53], [52, 54], [52, 55], [53, 56], [53, 57], [55, 58], [57, 59], [58, 60], [58, 61], [59, 62], [59, 63], [61, 64], [61, 65], [63, 66], [65, 67], [65, 68], [68, 69], [68, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 5], [15, 0], [16, 7], [17, 0], [18, 0], [19, 2], [20, 2], [21, 12], [22, 3], [23, 13], [24, 4], [25, 6], [26, 16], [27, 8], [28, 17], [29, 9], [30, 10], [31, 18], [32, 18], [33, 19], [34, 20], [35, 2], [36, 22], [37, 5], [38, 7], [39, 27], [40, 28], [41, 30], [42, 19], [43, 33], [44, 33], [45, 37], [46, 38], [47, 42], [48, 20], [49, 45], [50, 45], [51, 46], [52, 47], [53, 50], [54, 52], [55, 52], [56, 53], [57, 53], [58, 55], [59, 57], [60, 58], [61, 58], [62, 59], [63, 59], [64, 61], [65, 61], [66, 63], [67, 65], [68, 65], [69, 68], [70, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "validateURI", "code": "    protected void validateURI(String uri, String path, Map parameters) throws ResolveEndpointFailedException {\n        if (uri.contains(\"&\") && !uri.contains(\"?\")) {\n            throw new ResolveEndpointFailedException(uri, \"Invalid uri syntax: no ? marker however the uri \"\n                + \"has & parameter separators. Check the uri if its missing a ? marker.\");\n        }\n\n        if (uri.contains(\"&&\")) {\n            throw new ResolveEndpointFailedException(uri, \"Invalid uri syntax: Double && marker found. \"\n                + \"Check the uri and remove the duplicate & marker.\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [6, 9], [2, 10], [7, 11], [7, 12], [8, 13], [10, 14], [11, 15], [12, 16], [13, 17], [14, 18], [17, 19], [17, 20], [18, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 6], [10, 2], [11, 7], [12, 7], [13, 8], [14, 10], [15, 11], [16, 12], [17, 13], [18, 14], [19, 17], [20, 17], [21, 18], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getCamelContext", "code": "    public CamelContext getCamelContext() {\n        return camelContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCamelContext", "code": "    public void setCamelContext(CamelContext context) {\n        this.camelContext = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExecutorService", "code": "    public ScheduledExecutorService getExecutorService() {\n        if (executorService == null) {\n            executorService = createExecutorService();\n        }\n        return executorService;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExecutorService", "code": "    public void setExecutorService(ScheduledExecutorService executorService) {\n        this.executorService = executorService;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExecutorService", "code": "    protected ScheduledExecutorService createExecutorService() {\n        return new ScheduledThreadPoolExecutor(defaultThreadPoolSize, new ThreadFactory() {\n            int counter;\n\n            public synchronized Thread newThread(Runnable runnable) {\n                Thread thread = new Thread(runnable);\n                thread.setName(\"Thread: \" + (++counter) + \" \" + DefaultComponent.this.toString());\n                return thread;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [4, 6], [4, 7], [4, 8], [4, 9], [9, 10], [7, 11], [10, 12], [10, 13], [12, 14], [12, 15], [15, 16], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 4], [7, 4], [8, 4], [9, 4], [10, 9], [11, 7], [12, 10], [13, 10], [14, 12], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        if (executorService != null) {\n            executorService.shutdown();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createEndpoint", "code": "    protected abstract Endpoint<E> createEndpoint(String uri, String remaining, Map parameters)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setProperties", "code": "    protected void setProperties(Object bean, Map parameters) throws Exception {\n        IntrospectionSupport.setProperties(getCamelContext().getTypeConverter(), bean, parameters);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "useIntrospectionOnEndpoint", "code": "    protected boolean useIntrospectionOnEndpoint() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "convertTo", "code": "    public <T> T convertTo(Class<T> type, Object value) {\n        return CamelContextHelper.convertTo(getCamelContext(), type, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "mandatoryConvertTo", "code": "    public  <T> T mandatoryConvertTo(Class<T> type, Object value) {\n        return CamelContextHelper.mandatoryConvertTo(getCamelContext(), type, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "newInstance", "code": "    public  <T> T newInstance(Class<T> beanType) {\n        return getCamelContext().getInjector().newInstance(beanType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookup", "code": "    public Object lookup(String name) {\n        return getCamelContext().getRegistry().lookup(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookup", "code": "    public <T> T lookup(String name, Class<T> beanType) {\n        return getCamelContext().getRegistry().lookup(name, beanType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "mandatoryLookup", "code": "    public Object mandatoryLookup(String name) {\n        return CamelContextHelper.mandatoryLookup(getCamelContext(), name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "mandatoryLookup", "code": "    public <T> T mandatoryLookup(String name, Class<T> beanType) {\n        return CamelContextHelper.mandatoryLookup(getCamelContext(), name, beanType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getAndRemoveParameter", "code": "    public <T> T getAndRemoveParameter(Map parameters, String key, Class<T> type) {\n        return getAndRemoveParameter(parameters, key, type, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getAndRemoveParameter", "code": "    public <T> T getAndRemoveParameter(Map parameters, String key, Class<T> type, T defaultValue) {\n        Object value = parameters.remove(key);\n        if (value == null) {\n            value = defaultValue;\n        }\n        if (value == null) {\n            return null;\n        }\n        return convertTo(type, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [2, 12], [10, 13], [11, 14], [4, 15], [12, 16], [3, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 2], [13, 10], [14, 11], [15, 4], [16, 12], [17, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "DefaultComponent", "code": "    public DefaultComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DefaultComponent", "code": "    public DefaultComponent(CamelContext context) {\n        this.camelContext = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.5-7067", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/serializer/XSLOutputAttributes.java", "language": "java", "name": "org.apache.xml.serializer.XSLOutputAttributes", "code": "public interface XSLOutputAttributes\n{\n    /**\n     * Returns the previously set value of the value to be used as the public\n     * identifier in the document type declaration (DTD).\n     *\n     *@return the public identifier to be used in the DOCTYPE declaration in the\n     * output document.\n     */\n    public String getDoctypePublic();\n    /**\n     * Returns the previously set value of the value to be used\n     * as the system identifier in the document type declaration (DTD).\n     * @return the system identifier to be used in the DOCTYPE declaration in\n     * the output document.\n     *\n     */ \n    public String getDoctypeSystem();\n    /**\n     * @return the character encoding to be used in the output document.\n     */    \n    public String getEncoding();\n    /**\n\t * @return true if the output document should be indented to visually\n\t * indicate its structure.\n     */    \n    public boolean getIndent();\n    \n    /**\n     * @return the number of spaces to indent for each indentation level.\n     */\n    public int getIndentAmount();\n    /**\n     * @return the mediatype the media-type or MIME type associated with the\n     * output document.\n     */    \n    public String getMediaType();\n    /**\n     * @return true if the XML declaration is to be omitted from the output\n     * document.\n     */    \n    public boolean getOmitXMLDeclaration();\n    /**\n      * @return a value of \"yes\" if the <code>standalone</code> delaration is to\n      * be included in the output document.\n      */    \n    public String getStandalone();\n    /**\n     * @return the version of the output format.\n     */    \n    public String getVersion();\n\n\n\n\n\n\n    /**\n     * Sets the value coming from the xsl:output cdata-section-elements\n     * stylesheet property.\n     * \n     * This sets the elements whose text elements are to be output as CDATA\n     * sections.\n     * @param URI_and_localNames pairs of namespace URI and local names that\n     * identify elements whose text elements are to be output as CDATA sections.\n     * The namespace of the local element must be the given URI to match. The\n     * qName is not given because the prefix does not matter, only the namespace\n     * URI to which that prefix would map matters, so the prefix itself is not\n     * relevant in specifying which elements have their text to be output as\n     * CDATA sections.\n     */\n    public void setCdataSectionElements(Vector URI_and_localNames);\n\n    /** Set the value coming from the xsl:output doctype-public and doctype-system stylesheet properties\n     * @param system the system identifier to be used in the DOCTYPE declaration\n     * in the output document.\n     * @param pub the public identifier to be used in the DOCTYPE declaration in\n     * the output document.\n     */\n    public void setDoctype(String system, String pub);\n\n    /** Set the value coming from the xsl:output doctype-public stylesheet attribute.\n      * @param doctype the public identifier to be used in the DOCTYPE\n      * declaration in the output document.\n      */\n    public void setDoctypePublic(String doctype);\n    /** Set the value coming from the xsl:output doctype-system stylesheet attribute.\n      * @param doctype the system identifier to be used in the DOCTYPE\n      * declaration in the output document.\n      */\n    public void setDoctypeSystem(String doctype);\n    /**\n     * Sets the character encoding coming from the xsl:output encoding stylesheet attribute.\n     * @param encoding the character encoding\n     */\n    public void setEncoding(String encoding);\n    /**\n     * Sets the value coming from the xsl:output indent stylesheet\n     * attribute.\n     * @param indent true if the output document should be indented to visually\n     * indicate its structure.\n     */\n    public void setIndent(boolean indent);\n    /**\n     * Sets the value coming from the xsl:output media-type stylesheet attribute.\n     * @param mediatype the media-type or MIME type associated with the output\n     * document.\n     */\n    public void setMediaType(String mediatype);\n    /**\n     * Sets the value coming from the xsl:output omit-xml-declaration stylesheet attribute\n     * @param b true if the XML declaration is to be omitted from the output\n     * document.\n     */\n    public void setOmitXMLDeclaration(boolean b);\n    /**\n     * Sets the value coming from the xsl:output standalone stylesheet attribute.\n     * @param standalone a value of \"yes\" indicates that the\n     * <code>standalone</code> delaration is to be included in the output\n     * document.\n     */\n    public void setStandalone(String standalone);\n    /**\n     * Sets the value coming from the xsl:output version attribute.\n     * @param version the version of the output format.\n     */\n    public void setVersion(String version);", "functions": [{"function_name": "getDoctypePublic", "code": "    public String getDoctypePublic();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDoctypeSystem", "code": "    public String getDoctypeSystem();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getEncoding", "code": "    public String getEncoding();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIndent", "code": "    public boolean getIndent();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIndentAmount", "code": "    public int getIndentAmount();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getMediaType", "code": "    public String getMediaType();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getOmitXMLDeclaration", "code": "    public boolean getOmitXMLDeclaration();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getStandalone", "code": "    public String getStandalone();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getVersion", "code": "    public String getVersion();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setCdataSectionElements", "code": "    public void setCdataSectionElements(Vector URI_and_localNames);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDoctype", "code": "    public void setDoctype(String system, String pub);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDoctypePublic", "code": "    public void setDoctypePublic(String doctype);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDoctypeSystem", "code": "    public void setDoctypeSystem(String doctype);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEncoding", "code": "    public void setEncoding(String encoding);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIndent", "code": "    public void setIndent(boolean indent);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMediaType", "code": "    public void setMediaType(String mediatype);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOmitXMLDeclaration", "code": "    public void setOmitXMLDeclaration(boolean b);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStandalone", "code": "    public void setStandalone(String standalone);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVersion", "code": "    public void setVersion(String version);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.5-6834", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/functions/FunctionDef1Arg.java", "language": "java", "name": "org.apache.xpath.functions.FunctionDef1Arg", "code": "public class FunctionDef1Arg extends FunctionOneArg\n{\n\n  /**\n   * Execute the first argument expression that is expected to return a\n   * nodeset.  If the argument is null, then return the current context node.\n   *\n   * @param xctxt Runtime XPath context.\n   *\n   * @return The first node of the executed nodeset, or the current context\n   *         node if the first argument is null.\n   *\n   * @throws javax.xml.transform.TransformerException if an error occurs while\n   *                                   executing the argument expression.\n   */\n  protected int getArg0AsNode(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n\n    return (null == m_arg0)\n           ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);\n  }\n  \n  /**\n   * Tell if the expression is a nodeset expression.\n   * @return true if the expression can be represented as a nodeset.\n   */\n  public boolean Arg0IsNodesetExpr()\n  {\n    return (null == m_arg0) ? true : m_arg0.isNodesetExpr();\n  }\n\n  /**\n   * Execute the first argument expression that is expected to return a\n   * string.  If the argument is null, then get the string value from the\n   * current context node.\n   *\n   * @param xctxt Runtime XPath context.\n   *\n   * @return The string value of the first argument, or the string value of the\n   *         current context node if the first argument is null.\n   *\n   * @throws javax.xml.transform.TransformerException if an error occurs while\n   *                                   executing the argument expression.\n   */\n  protected XMLString getArg0AsString(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    if(null == m_arg0)\n    {\n      int currentNode = xctxt.getCurrentNode();\n      if(DTM.NULL == currentNode)\n        return XString.EMPTYSTRING;\n      else\n      {\n        DTM dtm = xctxt.getDTM(currentNode);\n        return dtm.getStringValue(currentNode);\n      }\n      \n    }\n    else\n      return m_arg0.execute(xctxt).xstr();   \n  }\n\n  /**\n   * Execute the first argument expression that is expected to return a\n   * number.  If the argument is null, then get the number value from the\n   * current context node.\n   *\n   * @param xctxt Runtime XPath context.\n   *\n   * @return The number value of the first argument, or the number value of the\n   *         current context node if the first argument is null.\n   *\n   * @throws javax.xml.transform.TransformerException if an error occurs while\n   *                                   executing the argument expression.\n   */\n  protected double getArg0AsNumber(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n\n    if(null == m_arg0)\n    {\n      int currentNode = xctxt.getCurrentNode();\n      if(DTM.NULL == currentNode)\n        return 0;\n      else\n      {\n        DTM dtm = xctxt.getDTM(currentNode);\n        XMLString str = dtm.getStringValue(currentNode);\n        return str.toDouble();\n      }\n      \n    }\n    else\n      return m_arg0.execute(xctxt).num();\n  }\n\n  /**\n   * Check that the number of arguments passed to this function is correct.\n   *\n   * @param argNum The number of arguments that is being passed to the function.\n   *\n   * @throws WrongNumberArgsException if the number of arguments is not 0 or 1.\n   */\n  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum > 1)\n      reportWrongNumberArgs();\n  }\n\n  /**\n   * Constructs and throws a WrongNumberArgException with the appropriate\n   * message for this function object.\n   *\n   * @throws WrongNumberArgsException\n   */\n  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n  }\n\n  /**\n   * Tell if this expression or it's subexpressions can traverse outside\n   * the current subtree.\n   *\n   * @return true if traversal outside the context node's subtree can occur.\n   */\n  public boolean canTraverseOutsideSubtree()\n  {\n    return (null == m_arg0) ? false : super.canTraverseOutsideSubtree();", "functions": [{"function_name": "getArg0AsNode", "code": "  protected int getArg0AsNode(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n\n    return (null == m_arg0)\n           ? xctxt.getCurrentNode() : m_arg0.asNode(xctxt);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "Arg0IsNodesetExpr", "code": "  public boolean Arg0IsNodesetExpr()\n  {\n    return (null == m_arg0) ? true : m_arg0.isNodesetExpr();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getArg0AsString", "code": "  protected XMLString getArg0AsString(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    if(null == m_arg0)\n    {\n      int currentNode = xctxt.getCurrentNode();\n      if(DTM.NULL == currentNode)\n        return XString.EMPTYSTRING;\n      else\n      {\n        DTM dtm = xctxt.getDTM(currentNode);\n        return dtm.getStringValue(currentNode);\n      }\n      \n    }\n    else\n      return m_arg0.execute(xctxt).xstr();   ", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [6, 11], [6, 12], [6, 13], [7, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 6], [12, 6], [13, 6], [14, 7], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getArg0AsNumber", "code": "  protected double getArg0AsNumber(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n\n    if(null == m_arg0)\n    {\n      int currentNode = xctxt.getCurrentNode();\n      if(DTM.NULL == currentNode)\n        return 0;\n      else\n      {\n        DTM dtm = xctxt.getDTM(currentNode);\n        XMLString str = dtm.getStringValue(currentNode);\n        return str.toDouble();\n      }\n      \n    }\n    else\n      return m_arg0.execute(xctxt).num();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [10, 15], [7, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 10], [16, 7], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "checkNumberArgs", "code": "  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum > 1)\n      reportWrongNumberArgs();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "reportWrongNumberArgs", "code": "  protected void reportWrongNumberArgs() throws WrongNumberArgsException {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "canTraverseOutsideSubtree", "code": "  public boolean canTraverseOutsideSubtree()\n  {\n    return (null == m_arg0) ? false : super.canTraverseOutsideSubtree();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "jedit-3.2-3654", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/syntax/KeywordMap.java", "language": "java", "name": "org.gjt.sp.jedit.syntax.KeywordMap", "code": "public class KeywordMap\n{\n\t/**\n\t * Creates a new <code>KeywordMap</code>.\n\t * @param ignoreCase True if keys are case insensitive\n\t */\n\tpublic KeywordMap(boolean ignoreCase)\n\t{\n\t\tthis(ignoreCase, 52);\n\t\tthis.ignoreCase = ignoreCase;\n\t}\n\n\t/**\n\t * Creates a new <code>KeywordMap</code>.\n\t * @param ignoreCase True if the keys are case insensitive\n\t * @param mapLength The number of `buckets' to create.\n\t * A value of 52 will give good performance for most maps.\n\t */\n\tpublic KeywordMap(boolean ignoreCase, int mapLength)\n\t{\n\t\tthis.mapLength = mapLength;\n\t\tthis.ignoreCase = ignoreCase;\n\t\tmap = new Keyword[mapLength];\n\t}\n\n\t/**\n\t * Looks up a key.\n\t * @param text The text segment\n\t * @param offset The offset of the substring within the text segment\n\t * @param length The length of the substring\n\t */\n\tpublic byte lookup(Segment text, int offset, int length)\n\t{\n\t\tif(length == 0)\n\t\t\treturn Token.NULL;\n\t\tKeyword k = map[getSegmentMapKey(text, offset, length)];\n\t\twhile(k != null)\n\t\t{\n\t\t\tif(length != k.keyword.length)\n\t\t\t{\n\t\t\t\tk = k.next;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(TextUtilities.regionMatches(ignoreCase,text,offset,\n\t\t\t\tk.keyword))\n\t\t\t\treturn k.id;\n\t\t\tk = k.next;\n\t\t}\n\t\treturn Token.NULL;\n\t}\n\n\t/**\n\t * Adds a key-value mapping.\n\t * @param keyword The key\n\t * @Param id The value\n\t */\n\tpublic void add(String keyword, byte id)\n\t{\n\t\tint key = getStringMapKey(keyword);\n\t\tmap[key] = new Keyword(keyword.toCharArray(),id,map[key]);\n\t}\n\n\t/**\n\t * Returns true if the keyword map is set to be case insensitive,\n\t * false otherwise.\n\t */\n\tpublic boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;\n\t}\n\n\t/**\n\t * Sets if the keyword map should be case insensitive.\n\t * @param ignoreCase True if the keyword map should be case\n\t * insensitive, false otherwise\n\t */\n\tpublic void setIgnoreCase(boolean ignoreCase)\n\t{\n\t\tthis.ignoreCase = ignoreCase;\n\t}\n\n\t// protected members\n\tprotected int mapLength;\n\n\tprotected int getStringMapKey(String s)\n\t{\n\t\treturn (Character.toUpperCase(s.charAt(0)) +\n\t\t\t\tCharacter.toUpperCase(s.charAt(s.length()-1)))\n\t\t\t\t% mapLength;\n\t}\n\n\tprotected int getSegmentMapKey(Segment s, int off, int len)\n\t{\n\t\treturn (Character.toUpperCase(s.array[off]) +\n\t\t\t\tCharacter.toUpperCase(s.array[off + len - 1]))\n\t\t\t\t% mapLength;\n\t}\n\n\t// private members\n\tclass Keyword\n\t{\n\t\tpublic Keyword(char[] keyword, byte id, Keyword next)\n\t\t{\n\t\t\tthis.keyword = keyword;\n\t\t\tthis.id = id;\n\t\t\tthis.next = next;\n\t\t}\n\n\t\tpublic char[] keyword;\n\t\tpublic byte id;\n\t\tpublic Keyword next;\n\t}\n\n\tprivate Keyword[] map;\n\tprivate boolean ignoreCase;", "functions": [{"function_name": "lookup", "code": "\tpublic byte lookup(Segment text, int offset, int length)\n\t{\n\t\tif(length == 0)\n\t\t\treturn Token.NULL;\n\t\tKeyword k = map[getSegmentMapKey(text, offset, length)];\n\t\twhile(k != null)\n\t\t{\n\t\t\tif(length != k.keyword.length)\n\t\t\t{\n\t\t\t\tk = k.next;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(TextUtilities.regionMatches(ignoreCase,text,offset,\n\t\t\t\tk.keyword))\n\t\t\t\treturn k.id;\n\t\t\tk = k.next;\n\t\t}\n\t\treturn Token.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [4, 9], [4, 10], [2, 11], [2, 12], [8, 13], [10, 14], [2, 15], [11, 16], [11, 17], [12, 18], [12, 19], [3, 20], [12, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 4], [10, 4], [11, 2], [12, 2], [13, 8], [14, 10], [15, 2], [16, 11], [17, 11], [18, 12], [19, 12], [20, 3], [21, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "add", "code": "\tpublic void add(String keyword, byte id)\n\t{\n\t\tint key = getStringMapKey(keyword);\n\t\tmap[key] = new Keyword(keyword.toCharArray(),id,map[key]);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getIgnoreCase", "code": "\tpublic boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreCase", "code": "\tpublic void setIgnoreCase(boolean ignoreCase)\n\t{\n\t\tthis.ignoreCase = ignoreCase;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStringMapKey", "code": "\tprotected int getStringMapKey(String s)\n\t{\n\t\treturn (Character.toUpperCase(s.charAt(0)) +\n\t\t\t\tCharacter.toUpperCase(s.charAt(s.length()-1)))\n\t\t\t\t% mapLength;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [5, 7], [6, 8], [7, 9], [8, 10], [9, 11], [9, 12], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 5], [8, 6], [9, 7], [10, 8], [11, 9], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSegmentMapKey", "code": "\tprotected int getSegmentMapKey(Segment s, int off, int len)\n\t{\n\t\treturn (Character.toUpperCase(s.array[off]) +\n\t\t\t\tCharacter.toUpperCase(s.array[off + len - 1]))\n\t\t\t\t% mapLength;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [6, 8], [7, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [8, 6], [9, 7], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "KeywordMap", "code": "\tpublic KeywordMap(boolean ignoreCase)\n\t{\n\t\tthis(ignoreCase, 52);\n\t\tthis.ignoreCase = ignoreCase;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "KeywordMap", "code": "\tpublic KeywordMap(boolean ignoreCase, int mapLength)\n\t{\n\t\tthis.mapLength = mapLength;\n\t\tthis.ignoreCase = ignoreCase;\n\t\tmap = new Keyword[mapLength];", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "camel-1.4-2281", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/impl/DefaultCamelContext.java", "language": "java", "name": "org.apache.camel.impl.DefaultCamelContext", "code": "public class DefaultCamelContext extends ServiceSupport implements CamelContext, Service {\n    private static final transient Log LOG = LogFactory.getLog(DefaultCamelContext.class);\n    private static final String NAME_PREFIX = \"camel-\";\n    private static int nameSuffix;\n\n    private String name;\n    private final Map<String, Endpoint> endpoints = new HashMap<String, Endpoint>();\n    private final Map<String, Component> components = new HashMap<String, Component>();\n    private List<Route> routes;\n    private List<Service> servicesToClose = new ArrayList<Service>();\n    private TypeConverter typeConverter;\n    private ExchangeConverter exchangeConverter;\n    private Injector injector;\n    private ComponentResolver componentResolver;\n    private boolean autoCreateComponents = true;\n    private LanguageResolver languageResolver = new DefaultLanguageResolver();\n    private Registry registry;\n    private LifecycleStrategy lifecycleStrategy;\n    private List<RouteType> routeDefinitions = new ArrayList<RouteType>();\n    private List<InterceptStrategy> interceptStrategies = new ArrayList<InterceptStrategy>();\n    private Boolean trace;\n    private ErrorHandlerBuilder errorHandlerBuilder;\n\n    public DefaultCamelContext() {\n        name = NAME_PREFIX + ++nameSuffix;\n\n        if (Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {\n            LOG.info(\"JMX is disabled. Using DefaultLifecycleStrategy.\");\n            lifecycleStrategy = new DefaultLifecycleStrategy();\n        } else {\n            try {\n                LOG.info(\"JMX enabled. Using InstrumentationLifecycleStrategy.\");\n                lifecycleStrategy = new InstrumentationLifecycleStrategy();\n            } catch (NoClassDefFoundError e) {\n                LOG.warn(\"Could not find needed classes for JMX lifecycle strategy.\"\n                    + \" Are you missing spring-context.jar by any chance? NoClassDefFoundError: \" + e.getMessage());\n            } catch (Exception e) {\n                LOG.warn(\"Could not create JMX lifecycle strategy, caused by: \" + e.getMessage());\n            }\n            if (lifecycleStrategy == null) {\n                LOG.warn(\"Not possible to use JMX lifecycle strategy. Using DefaultLifecycleStrategy instead.\");\n                lifecycleStrategy = new DefaultLifecycleStrategy();\n            }\n        }\n    }\n\n    /**\n     * Creates the {@link CamelContext} using the given JNDI context as the\n     * registry\n     *\n     * @param jndiContext\n     */\n    public DefaultCamelContext(Context jndiContext) {\n        this(new JndiRegistry(jndiContext));\n    }\n\n    /**\n     * Creates the {@link CamelContext} using the given registry\n     */\n    public DefaultCamelContext(Registry registry) {\n        this();\n        this.registry = registry;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    /**\n     * Sets the name of the this context.\n     */\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public void addComponent(String componentName, final Component component) {\n        if (component == null) {\n            throw new IllegalArgumentException(\"Component cannot be null\");\n        }\n        synchronized (components) {\n            if (components.containsKey(componentName)) {\n                throw new IllegalArgumentException(\"Component previously added: \" + componentName);\n            }\n            component.setCamelContext(this);\n            components.put(componentName, component);\n        }\n    }\n\n    public Component getComponent(String name) {\n        synchronized (components) {\n            Component component = components.get(name);\n            if (component == null && autoCreateComponents) {\n                try {\n                    component = getComponentResolver().resolveComponent(name, this);\n                    if (component != null) {\n                        addComponent(name, component);\n                        if (isStarted()) {\n                            startServices(component);\n                        }\n                    }\n                } catch (Exception e) {\n                    throw new RuntimeCamelException(\"Could not auto create component: \" + name, e);\n                }\n            }\n            return component;\n        }\n    }\n\n    public <T extends Component> T getComponent(String name, Class<T> componentType) {\n        Component component = getComponent(name);\n        if (componentType.isInstance(component)) {\n            return componentType.cast(component);\n        } else {\n            throw new IllegalArgumentException(\"The component is not of type: \" + componentType + \" but is: \"\n                    + component);\n        }\n    }\n\n    public Component removeComponent(String componentName) {\n        synchronized (components) {\n            return components.remove(componentName);\n        }\n    }\n\n    public Component getOrCreateComponent(String componentName, Callable<Component> factory) {\n        synchronized (components) {\n            Component component = components.get(componentName);\n            if (component == null) {\n                try {\n                    component = factory.call();\n                    if (component == null) {\n                        throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n                                + \" component, it returned null.\");\n                    }\n                    components.put(componentName, component);\n                    component.setCamelContext(this);\n                } catch (Exception e) {\n                    throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n                            + \" component\", e);\n                }\n            }\n            return component;\n        }\n    }\n\n\n    public Collection<Endpoint> getSingletonEndpoints() {\n        synchronized (endpoints) {\n            return new ArrayList<Endpoint>(endpoints.values());\n        }\n    }\n\n    public Endpoint addSingletonEndpoint(String uri, Endpoint endpoint) throws Exception {\n        Endpoint oldEndpoint;\n        synchronized (endpoints) {\n            startServices(endpoint);\n            oldEndpoint = endpoints.remove(uri);\n            endpoints.put(uri, endpoint);\n            stopServices(oldEndpoint);\n        }\n        return oldEndpoint;\n    }\n\n    public Endpoint removeSingletonEndpoint(String uri) throws Exception {\n        Endpoint oldEndpoint;\n        synchronized (endpoints) {\n            oldEndpoint = endpoints.remove(uri);\n            stopServices(oldEndpoint);\n        }\n        return oldEndpoint;\n    }\n\n    public Endpoint getEndpoint(String uri) {\n        Endpoint answer;\n        synchronized (endpoints) {\n            answer = endpoints.get(uri);\n            if (answer == null) {\n                try {\n\n                    String splitURI[] = ObjectHelper.splitOnCharacter(uri, \":\", 2);\n                    if (splitURI[1] != null) {\n                        String scheme = splitURI[0];\n                        Component component = getComponent(scheme);\n\n                        if (component != null) {\n                            answer = component.createEndpoint(uri);\n\n                            if (answer != null && LOG.isDebugEnabled()) {\n                                LOG.debug(uri + \" converted to endpoint: \" + answer + \" by component: \" + component);\n                            }\n                        }\n                    }\n                    if (answer == null) {\n                        answer = createEndpoint(uri);\n                    }\n\n                    if (answer != null) {\n                        addService(answer);\n\n                        if (answer.isSingleton()) {\n                            endpoints.put(uri, answer);\n\n                            lifecycleStrategy.onEndpointAdd(answer);\n                        }\n                    }\n                } catch (Exception e) {\n                    LOG.debug(\"Failed to resolve endpoint \" + uri + \". Reason: \" + e, e);\n                    throw new ResolveEndpointFailedException(uri, e);\n                }\n            }\n        }\n        return answer;\n    }\n\n\n    public <T extends Endpoint> T getEndpoint(String name, Class<T> endpointType) {\n        Endpoint endpoint = getEndpoint(name);\n        if (endpointType.isInstance(endpoint)) {\n            return endpointType.cast(endpoint);\n        } else {\n            throw new IllegalArgumentException(\"The endpoint is not of type: \" + endpointType + \" but is: \"\n                    + endpoint);\n        }\n    }\n\n    public List<Route> getRoutes() {\n        if (routes == null) {\n            routes = new ArrayList<Route>();\n        }\n        return routes;\n    }\n\n    public void setRoutes(List<Route> routes) {\n        this.routes = routes;\n    }\n\n    public void addRoutes(Collection<Route> routes) throws Exception {\n        if (this.routes == null) {\n            this.routes = new ArrayList<Route>(routes);\n        } else {\n            this.routes.addAll(routes);\n        }\n        lifecycleStrategy.onRoutesAdd(routes);\n        if (shouldStartRoutes()) {\n            startRoutes(routes);\n        }\n    }\n\n    public void addRoutes(Routes builder) throws Exception {\n        builder.setContext(this);\n        List<Route> routeList = builder.getRouteList();\n        LOG.debug(\"Adding routes from: \" + builder + \" routes: \" + routeList);\n        addRoutes(routeList);\n    }\n\n    public void addRouteDefinitions(Collection<RouteType> routeDefinitions) throws Exception {\n        this.routeDefinitions.addAll(routeDefinitions);\n        if (shouldStartRoutes()) {\n            startRouteDefinitions(routeDefinitions);\n        }\n\n    }\n\n    /**\n     * Adds a service, starting it so that it will be stopped with this context\n     */\n    public void addService(Object object) throws Exception {\n        if (object instanceof Service) {\n            Service service = (Service) object;\n            service.start();\n            servicesToClose.add(service);\n        }\n    }\n\n\n    public Language resolveLanguage(String language) {\n        return getLanguageResolver().resolveLanguage(language, this);\n    }\n\n    public ExchangeConverter getExchangeConverter() {\n        if (exchangeConverter == null) {\n            exchangeConverter = createExchangeConverter();\n        }\n        return exchangeConverter;\n    }\n\n    public void setExchangeConverter(ExchangeConverter exchangeConverter) {\n        this.exchangeConverter = exchangeConverter;\n    }\n\n    public TypeConverter getTypeConverter() {\n        if (typeConverter == null) {\n            typeConverter = createTypeConverter();\n        }\n        return typeConverter;\n    }\n\n    public void setTypeConverter(TypeConverter typeConverter) {\n        this.typeConverter = typeConverter;\n    }\n\n    public Injector getInjector() {\n        if (injector == null) {\n            injector = createInjector();\n        }\n        return injector;\n    }\n\n    public void setInjector(Injector injector) {\n        this.injector = injector;\n    }\n\n    public ComponentResolver getComponentResolver() {\n        if (componentResolver == null) {\n            componentResolver = createComponentResolver();\n        }\n        return componentResolver;\n    }\n\n    public void setComponentResolver(ComponentResolver componentResolver) {\n        this.componentResolver = componentResolver;\n    }\n\n    public LanguageResolver getLanguageResolver() {\n        return languageResolver;\n    }\n\n    public void setLanguageResolver(LanguageResolver languageResolver) {\n        this.languageResolver = languageResolver;\n    }\n\n    public boolean isAutoCreateComponents() {\n        return autoCreateComponents;\n    }\n\n    public void setAutoCreateComponents(boolean autoCreateComponents) {\n        this.autoCreateComponents = autoCreateComponents;\n    }\n\n    public Registry getRegistry() {\n        if (registry == null) {\n            registry = createRegistry();\n        }\n        return registry;\n    }\n\n    public void setRegistry(Registry registry) {\n        this.registry = registry;\n    }\n\n    public LifecycleStrategy getLifecycleStrategy() {\n        return lifecycleStrategy;\n    }\n\n    public void setLifecycleStrategy(LifecycleStrategy lifecycleStrategy) {\n        this.lifecycleStrategy = lifecycleStrategy;\n    }\n\n    public List<RouteType> getRouteDefinitions() {\n        return routeDefinitions;\n    }\n\n    public List<InterceptStrategy> getInterceptStrategies() {\n        return interceptStrategies;\n    }\n\n    public void setInterceptStrategies(List<InterceptStrategy> interceptStrategies) {\n        this.interceptStrategies = interceptStrategies;\n    }\n\n    public void addInterceptStrategy(InterceptStrategy interceptStrategy) {\n        getInterceptStrategies().add(interceptStrategy);\n    }\n\n    /**\n     * Returns true if tracing has been enabled or disabled via the {@link #setTrace(Boolean)} method\n     * or it has not been specified then default to the <b>camel.trace</b> system property\n     */\n    public boolean getTrace() {\n        final Boolean value = getTracing();\n        if (value != null) {\n            return value;\n        } else {\n            return SystemHelper.isSystemProperty(\"canel.trace\");\n        }\n    }\n\n    public Boolean getTracing() {\n        return trace;\n    }\n\n    public void setTrace(Boolean trace) {\n        this.trace = trace;\n    }\n\n    public <E extends Exchange> ProducerTemplate<E> createProducerTemplate() {\n        return new DefaultProducerTemplate<E>(this);\n    }\n\n    public ErrorHandlerBuilder getErrorHandlerBuilder() {\n        return errorHandlerBuilder;\n    }\n\n    /**\n     * Sets the default error handler builder which is inherited by the routes\n     */\n    public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder) {\n        this.errorHandlerBuilder = errorHandlerBuilder;\n    }\n\n\n    protected void doStart() throws Exception {\n        if (getTrace()) {\n            boolean found = false;\n            final List<InterceptStrategy> list = getInterceptStrategies();\n            for (InterceptStrategy strategy : list) {\n                if (strategy instanceof Tracer) {\n                    found = true;\n                }\n            }\n            if (!found) {\n                addInterceptStrategy(new Tracer());\n            }\n        }\n        lifecycleStrategy.onContextStart(this);\n\n        forceLazyInitialization();\n        if (components != null) {\n            for (Component component : components.values()) {\n                startServices(component);\n            }\n        }\n        startRouteDefinitions(routeDefinitions);\n        startRoutes(routes);\n    }\n\n    protected void startRouteDefinitions(Collection<RouteType> list) throws Exception {\n        if (list != null) {\n            Collection<Route> routes = new ArrayList<Route>();\n            for (RouteType route : list) {\n                route.addRoutes(this, routes);\n            }\n            addRoutes(routes);\n        }\n    }\n\n    protected void doStop() throws Exception {\n        stopServices(servicesToClose);\n        if (components != null) {\n            for (Component component : components.values()) {\n                stopServices(component);\n            }\n        }\n    }\n\n    protected void startRoutes(Collection<Route> routeList) throws Exception {\n        if (routeList != null) {\n            for (Route<Exchange> route : routeList) {\n                List<Service> services = route.getServicesForRoute();\n                for (Service service : services) {\n                    addService(service);\n                }\n            }\n        }\n    }\n\n    /**\n     * Lets force some lazy initialization to occur upfront before we start any\n     * components and create routes\n     */\n    protected void forceLazyInitialization() {\n        getExchangeConverter();\n        getInjector();\n        getLanguageResolver();\n        getTypeConverter();\n    }\n\n    /**\n     * Lazily create a default implementation\n     */\n    protected ExchangeConverter createExchangeConverter() {\n        return new DefaultExchangeConverter();\n    }\n\n    /**\n     * Lazily create a default implementation\n     */\n    protected TypeConverter createTypeConverter() {\n        return new DefaultTypeConverter(getInjector());\n    }\n\n    /**\n     * Lazily create a default implementation\n     */\n    protected Injector createInjector() {\n        FactoryFinder finder = new FactoryFinder();\n        try {\n            return (Injector) finder.newInstance(\"Injector\");\n        } catch (NoFactoryAvailableException e) {\n            return new ReflectionInjector();\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e);\n        } catch (IOException e) {\n            throw new RuntimeCamelException(e);\n        } catch (ClassNotFoundException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    /**\n     * Lazily create a default implementation\n     */\n    protected ComponentResolver createComponentResolver() {\n        return new DefaultComponentResolver();\n    }\n\n    /**\n     * Lazily create a default implementation\n     */\n    protected Registry createRegistry() {\n        return new JndiRegistry();\n    }\n\n    /**\n     * A pluggable strategy to allow an endpoint to be created without requiring\n     * a component to be its factory, such as for looking up the URI inside some\n     * {@link Registry}\n     *\n     * @param uri the uri for the endpoint to be created\n     * @return the newly created endpoint or null if it could not be resolved\n     */\n    protected Endpoint createEndpoint(String uri) {\n        Object value = getRegistry().lookup(uri);\n        if (value instanceof Endpoint) {\n            return (Endpoint) value;\n        } else if (value instanceof Processor) {\n            return new ProcessorEndpoint(uri, this, (Processor) value);\n        } else if (value != null) {\n            return convertBeanToEndpoint(uri, value);\n        }\n        return null;\n    }\n\n    /**\n     * Attempt to convert the bean from a {@link Registry} to an endpoint using\n     * some kind of transformation or wrapper\n     *\n     * @param uri  the uri for the endpoint (and name in the registry)\n     * @param bean the bean to be converted to an endpoint, which will be not null\n     * @return a new endpoint\n     */\n    protected Endpoint convertBeanToEndpoint(String uri, Object bean) {\n        throw new IllegalArgumentException(\"uri: \" + uri + \" bean: \" + bean\n                + \" could not be converted to an Endpoint\");\n    }\n\n    /**\n     * Should we start newly added routes?\n     */\n    protected boolean shouldStartRoutes() {\n        return isStarted() && !isStarting();", "functions": [{"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addComponent", "code": "    public void addComponent(String componentName, final Component component) {\n        if (component == null) {\n            throw new IllegalArgumentException(\"Component cannot be null\");\n        }\n        synchronized (components) {\n            if (components.containsKey(componentName)) {\n                throw new IllegalArgumentException(\"Component previously added: \" + componentName);\n            }\n            component.setCamelContext(this);\n            components.put(componentName, component);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [4, 8], [1, 9], [5, 10], [4, 11], [9, 12], [11, 13], [12, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 4], [9, 1], [10, 5], [11, 4], [12, 9], [13, 11], [14, 12], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getComponent", "code": "    public Component getComponent(String name) {\n        synchronized (components) {\n            Component component = components.get(name);\n            if (component == null && autoCreateComponents) {\n                try {\n                    component = getComponentResolver().resolveComponent(name, this);\n                    if (component != null) {\n                        addComponent(name, component);\n                        if (isStarted()) {\n                            startServices(component);\n                        }\n                    }\n                } catch (Exception e) {\n                    throw new RuntimeCamelException(\"Could not auto create component: \" + name, e);\n                }\n            }\n            return component;", "ast_nodes": ["FUNC_DECL", "PARAM", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "TRY", "BINARY_OP", "CALL", "CATCH", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [5, 7], [4, 8], [6, 9], [6, 10], [7, 11], [9, 12], [10, 13], [6, 14], [12, 15], [10, 16], [13, 17], [14, 18], [15, 19], [16, 20], [10, 21], [18, 22], [19, 23], [16, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 5], [8, 4], [9, 6], [10, 6], [11, 7], [12, 9], [13, 10], [14, 6], [15, 12], [16, 10], [17, 13], [18, 14], [19, 15], [20, 16], [21, 10], [22, 18], [23, 19], [24, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getComponent", "code": "    public <T extends Component> T getComponent(String name, Class<T> componentType) {\n        Component component = getComponent(name);\n        if (componentType.isInstance(component)) {\n            return componentType.cast(component);\n        } else {\n            throw new IllegalArgumentException(\"The component is not of type: \" + componentType + \" but is: \"\n                    + component);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [6, 9], [7, 10], [9, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 6], [10, 7], [11, 9], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "removeComponent", "code": "    public Component removeComponent(String componentName) {\n        synchronized (components) {\n            return components.remove(componentName);", "ast_nodes": ["FUNC_DECL", "PARAM", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getOrCreateComponent", "code": "    public Component getOrCreateComponent(String componentName, Callable<Component> factory) {\n        synchronized (components) {\n            Component component = components.get(componentName);\n            if (component == null) {\n                try {\n                    component = factory.call();\n                    if (component == null) {\n                        throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n                                + \" component, it returned null.\");\n                    }\n                    components.put(componentName, component);\n                    component.setCamelContext(this);\n                } catch (Exception e) {\n                    throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n                            + \" component\", e);\n                }\n            }\n            return component;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "IF", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [4, 7], [6, 8], [5, 9], [7, 10], [7, 11], [10, 12], [7, 13], [7, 14], [11, 15], [7, 16], [12, 17], [11, 18], [15, 19], [16, 20], [17, 21], [18, 22], [21, 23], [21, 24], [22, 25], [24, 26], [25, 27], [25, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 4], [8, 6], [9, 5], [10, 7], [11, 7], [12, 10], [13, 7], [14, 7], [15, 11], [16, 7], [17, 12], [18, 11], [19, 15], [20, 16], [21, 17], [22, 18], [23, 21], [24, 21], [25, 22], [26, 24], [27, 25], [28, 25], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getSingletonEndpoints", "code": "    public Collection<Endpoint> getSingletonEndpoints() {\n        synchronized (endpoints) {\n            return new ArrayList<Endpoint>(endpoints.values());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addSingletonEndpoint", "code": "    public Endpoint addSingletonEndpoint(String uri, Endpoint endpoint) throws Exception {\n        Endpoint oldEndpoint;\n        synchronized (endpoints) {\n            startServices(endpoint);\n            oldEndpoint = endpoints.remove(uri);\n            endpoints.put(uri, endpoint);\n            stopServices(oldEndpoint);\n        }\n        return oldEndpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "removeSingletonEndpoint", "code": "    public Endpoint removeSingletonEndpoint(String uri) throws Exception {\n        Endpoint oldEndpoint;\n        synchronized (endpoints) {\n            oldEndpoint = endpoints.remove(uri);\n            stopServices(oldEndpoint);\n        }\n        return oldEndpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getEndpoint", "code": "    public Endpoint getEndpoint(String uri) {\n        Endpoint answer;\n        synchronized (endpoints) {\n            answer = endpoints.get(uri);\n            if (answer == null) {\n                try {\n\n                    String splitURI[] = ObjectHelper.splitOnCharacter(uri, \":\", 2);\n                    if (splitURI[1] != null) {\n                        String scheme = splitURI[0];\n                        Component component = getComponent(scheme);\n\n                        if (component != null) {\n                            answer = component.createEndpoint(uri);\n\n                            if (answer != null && LOG.isDebugEnabled()) {\n                                LOG.debug(uri + \" converted to endpoint: \" + answer + \" by component: \" + component);\n                            }\n                        }\n                    }\n                    if (answer == null) {\n                        answer = createEndpoint(uri);\n                    }\n\n                    if (answer != null) {\n                        addService(answer);\n\n                        if (answer.isSingleton()) {\n                            endpoints.put(uri, answer);\n\n                            lifecycleStrategy.onEndpointAdd(answer);\n                        }\n                    }\n                } catch (Exception e) {\n                    LOG.debug(\"Failed to resolve endpoint \" + uri + \". Reason: \" + e, e);\n                    throw new ResolveEndpointFailedException(uri, e);\n                }\n            }\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "ASSIGN", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "IF", "IF", "IF", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [0, 6], [4, 7], [5, 8], [6, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [10, 15], [11, 16], [12, 17], [13, 18], [15, 19], [10, 20], [11, 21], [16, 22], [17, 23], [13, 24], [13, 25], [13, 26], [18, 27], [14, 28], [20, 29], [21, 30], [11, 31], [12, 32], [24, 33], [28, 34], [28, 35], [29, 36], [32, 37], [24, 38], [33, 39], [25, 40], [18, 41], [36, 42], [36, 43], [21, 44], [21, 45], [38, 46], [24, 47], [43, 48], [46, 49], [46, 50], [47, 51], [26, 52], [38, 53], [50, 54], [53, 55], [55, 56], [56, 57], [56, 58], [58, 59], [59, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 0], [7, 4], [8, 5], [9, 6], [10, 7], [11, 7], [12, 7], [13, 7], [14, 7], [15, 10], [16, 11], [17, 12], [18, 13], [19, 15], [20, 10], [21, 11], [22, 16], [23, 17], [24, 13], [25, 13], [26, 13], [27, 18], [28, 14], [29, 20], [30, 21], [31, 11], [32, 12], [33, 24], [34, 28], [35, 28], [36, 29], [37, 32], [38, 24], [39, 33], [40, 25], [41, 18], [42, 36], [43, 36], [44, 21], [45, 21], [46, 38], [47, 24], [48, 43], [49, 46], [50, 46], [51, 47], [52, 26], [53, 38], [54, 50], [55, 53], [56, 55], [57, 56], [58, 56], [59, 58], [60, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "getEndpoint", "code": "    public <T extends Endpoint> T getEndpoint(String name, Class<T> endpointType) {\n        Endpoint endpoint = getEndpoint(name);\n        if (endpointType.isInstance(endpoint)) {\n            return endpointType.cast(endpoint);\n        } else {\n            throw new IllegalArgumentException(\"The endpoint is not of type: \" + endpointType + \" but is: \"\n                    + endpoint);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [6, 9], [7, 10], [9, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 6], [10, 7], [11, 9], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getRoutes", "code": "    public List<Route> getRoutes() {\n        if (routes == null) {\n            routes = new ArrayList<Route>();\n        }\n        return routes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setRoutes", "code": "    public void setRoutes(List<Route> routes) {\n        this.routes = routes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addRoutes", "code": "    public void addRoutes(Collection<Route> routes) throws Exception {\n        if (this.routes == null) {\n            this.routes = new ArrayList<Route>(routes);\n        } else {\n            this.routes.addAll(routes);\n        }\n        lifecycleStrategy.onRoutesAdd(routes);\n        if (shouldStartRoutes()) {\n            startRoutes(routes);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [6, 7], [1, 8], [2, 9], [2, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 6], [8, 1], [9, 2], [10, 2], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "addRoutes", "code": "    public void addRoutes(Routes builder) throws Exception {\n        builder.setContext(this);\n        List<Route> routeList = builder.getRouteList();\n        LOG.debug(\"Adding routes from: \" + builder + \" routes: \" + routeList);\n        addRoutes(routeList);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 7], [6, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 1], [8, 6], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "addRouteDefinitions", "code": "    public void addRouteDefinitions(Collection<RouteType> routeDefinitions) throws Exception {\n        this.routeDefinitions.addAll(routeDefinitions);\n        if (shouldStartRoutes()) {\n            startRouteDefinitions(routeDefinitions);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addService", "code": "    public void addService(Object object) throws Exception {\n        if (object instanceof Service) {\n            Service service = (Service) object;\n            service.start();\n            servicesToClose.add(service);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "resolveLanguage", "code": "    public Language resolveLanguage(String language) {\n        return getLanguageResolver().resolveLanguage(language, this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getExchangeConverter", "code": "    public ExchangeConverter getExchangeConverter() {\n        if (exchangeConverter == null) {\n            exchangeConverter = createExchangeConverter();\n        }\n        return exchangeConverter;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExchangeConverter", "code": "    public void setExchangeConverter(ExchangeConverter exchangeConverter) {\n        this.exchangeConverter = exchangeConverter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTypeConverter", "code": "    public TypeConverter getTypeConverter() {\n        if (typeConverter == null) {\n            typeConverter = createTypeConverter();\n        }\n        return typeConverter;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setTypeConverter", "code": "    public void setTypeConverter(TypeConverter typeConverter) {\n        this.typeConverter = typeConverter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInjector", "code": "    public Injector getInjector() {\n        if (injector == null) {\n            injector = createInjector();\n        }\n        return injector;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setInjector", "code": "    public void setInjector(Injector injector) {\n        this.injector = injector;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getComponentResolver", "code": "    public ComponentResolver getComponentResolver() {\n        if (componentResolver == null) {\n            componentResolver = createComponentResolver();\n        }\n        return componentResolver;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setComponentResolver", "code": "    public void setComponentResolver(ComponentResolver componentResolver) {\n        this.componentResolver = componentResolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLanguageResolver", "code": "    public LanguageResolver getLanguageResolver() {\n        return languageResolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLanguageResolver", "code": "    public void setLanguageResolver(LanguageResolver languageResolver) {\n        this.languageResolver = languageResolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAutoCreateComponents", "code": "    public boolean isAutoCreateComponents() {\n        return autoCreateComponents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoCreateComponents", "code": "    public void setAutoCreateComponents(boolean autoCreateComponents) {\n        this.autoCreateComponents = autoCreateComponents;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRegistry", "code": "    public Registry getRegistry() {\n        if (registry == null) {\n            registry = createRegistry();\n        }\n        return registry;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setRegistry", "code": "    public void setRegistry(Registry registry) {\n        this.registry = registry;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLifecycleStrategy", "code": "    public LifecycleStrategy getLifecycleStrategy() {\n        return lifecycleStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLifecycleStrategy", "code": "    public void setLifecycleStrategy(LifecycleStrategy lifecycleStrategy) {\n        this.lifecycleStrategy = lifecycleStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRouteDefinitions", "code": "    public List<RouteType> getRouteDefinitions() {\n        return routeDefinitions;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInterceptStrategies", "code": "    public List<InterceptStrategy> getInterceptStrategies() {\n        return interceptStrategies;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInterceptStrategies", "code": "    public void setInterceptStrategies(List<InterceptStrategy> interceptStrategies) {\n        this.interceptStrategies = interceptStrategies;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addInterceptStrategy", "code": "    public void addInterceptStrategy(InterceptStrategy interceptStrategy) {\n        getInterceptStrategies().add(interceptStrategy);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTrace", "code": "    public boolean getTrace() {\n        final Boolean value = getTracing();\n        if (value != null) {\n            return value;\n        } else {\n            return SystemHelper.isSystemProperty(\"canel.trace\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [2, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 2], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getTracing", "code": "    public Boolean getTracing() {\n        return trace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTrace", "code": "    public void setTrace(Boolean trace) {\n        this.trace = trace;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProducerTemplate", "code": "    public <E extends Exchange> ProducerTemplate<E> createProducerTemplate() {\n        return new DefaultProducerTemplate<E>(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandlerBuilder", "code": "    public ErrorHandlerBuilder getErrorHandlerBuilder() {\n        return errorHandlerBuilder;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorHandlerBuilder", "code": "    public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder) {\n        this.errorHandlerBuilder = errorHandlerBuilder;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        if (getTrace()) {\n            boolean found = false;\n            final List<InterceptStrategy> list = getInterceptStrategies();\n            for (InterceptStrategy strategy : list) {\n                if (strategy instanceof Tracer) {\n                    found = true;\n                }\n            }\n            if (!found) {\n                addInterceptStrategy(new Tracer());\n            }\n        }\n        lifecycleStrategy.onContextStart(this);\n\n        forceLazyInitialization();\n        if (components != null) {\n            for (Component component : components.values()) {\n                startServices(component);\n            }\n        }\n        startRouteDefinitions(routeDefinitions);\n        startRoutes(routes);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [2, 8], [1, 9], [5, 10], [2, 11], [2, 12], [2, 13], [2, 14], [9, 15], [12, 16], [13, 17], [14, 18], [9, 19], [11, 20], [16, 21], [20, 22], [16, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 2], [9, 1], [10, 5], [11, 2], [12, 2], [13, 2], [14, 2], [15, 9], [16, 12], [17, 13], [18, 14], [19, 9], [20, 11], [21, 16], [22, 20], [23, 16], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "startRouteDefinitions", "code": "    protected void startRouteDefinitions(Collection<RouteType> list) throws Exception {\n        if (list != null) {\n            Collection<Route> routes = new ArrayList<Route>();\n            for (RouteType route : list) {\n                route.addRoutes(this, routes);\n            }\n            addRoutes(routes);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 7], [5, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 1], [8, 5], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        stopServices(servicesToClose);\n        if (components != null) {\n            for (Component component : components.values()) {\n                stopServices(component);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "startRoutes", "code": "    protected void startRoutes(Collection<Route> routeList) throws Exception {\n        if (routeList != null) {\n            for (Route<Exchange> route : routeList) {\n                List<Service> services = route.getServicesForRoute();\n                for (Service service : services) {\n                    addService(service);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [7, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 7], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "forceLazyInitialization", "code": "    protected void forceLazyInitialization() {\n        getExchangeConverter();\n        getInjector();\n        getLanguageResolver();\n        getTypeConverter();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createExchangeConverter", "code": "    protected ExchangeConverter createExchangeConverter() {\n        return new DefaultExchangeConverter();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createTypeConverter", "code": "    protected TypeConverter createTypeConverter() {\n        return new DefaultTypeConverter(getInjector());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createInjector", "code": "    protected Injector createInjector() {\n        FactoryFinder finder = new FactoryFinder();\n        try {\n            return (Injector) finder.newInstance(\"Injector\");\n        } catch (NoFactoryAvailableException e) {\n            return new ReflectionInjector();\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e);\n        } catch (IOException e) {\n            throw new RuntimeCamelException(e);\n        } catch (ClassNotFoundException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "RETURN", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [2, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [8, 20], [20, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 2], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 8], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createComponentResolver", "code": "    protected ComponentResolver createComponentResolver() {\n        return new DefaultComponentResolver();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createRegistry", "code": "    protected Registry createRegistry() {\n        return new JndiRegistry();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createEndpoint", "code": "    protected Endpoint createEndpoint(String uri) {\n        Object value = getRegistry().lookup(uri);\n        if (value instanceof Endpoint) {\n            return (Endpoint) value;\n        } else if (value instanceof Processor) {\n            return new ProcessorEndpoint(uri, this, (Processor) value);\n        } else if (value != null) {\n            return convertBeanToEndpoint(uri, value);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [6, 9], [2, 10], [3, 11], [8, 12], [6, 13], [11, 14], [8, 15], [12, 16], [13, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 6], [10, 2], [11, 3], [12, 8], [13, 6], [14, 11], [15, 8], [16, 12], [17, 13], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "convertBeanToEndpoint", "code": "    protected Endpoint convertBeanToEndpoint(String uri, Object bean) {\n        throw new IllegalArgumentException(\"uri: \" + uri + \" bean: \" + bean\n                + \" could not be converted to an Endpoint\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "shouldStartRoutes", "code": "    protected boolean shouldStartRoutes() {\n        return isStarted() && !isStarting();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DefaultCamelContext", "code": "    public DefaultCamelContext() {\n        name = NAME_PREFIX + ++nameSuffix;\n\n        if (Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {\n            LOG.info(\"JMX is disabled. Using DefaultLifecycleStrategy.\");\n            lifecycleStrategy = new DefaultLifecycleStrategy();\n        } else {\n            try {\n                LOG.info(\"JMX enabled. Using InstrumentationLifecycleStrategy.\");\n                lifecycleStrategy = new InstrumentationLifecycleStrategy();\n            } catch (NoClassDefFoundError e) {\n                LOG.warn(\"Could not find needed classes for JMX lifecycle strategy.\"\n                    + \" Are you missing spring-context.jar by any chance? NoClassDefFoundError: \" + e.getMessage());\n            } catch (Exception e) {\n                LOG.warn(\"Could not create JMX lifecycle strategy, caused by: \" + e.getMessage());\n            }\n            if (lifecycleStrategy == null) {\n                LOG.warn(\"Not possible to use JMX lifecycle strategy. Using DefaultLifecycleStrategy instead.\");\n                lifecycleStrategy = new DefaultLifecycleStrategy();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "ASSIGN", "IF", "TRY", "BINARY_OP", "BINARY_OP", "CATCH", "CATCH", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [5, 9], [1, 10], [1, 11], [7, 12], [5, 13], [5, 14], [10, 15], [11, 16], [4, 17], [4, 18], [8, 19], [9, 20], [13, 21], [14, 22], [17, 23], [18, 24], [19, 25], [20, 26], [25, 27], [25, 28], [26, 29], [26, 30], [30, 31], [30, 32], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 5], [10, 1], [11, 1], [12, 7], [13, 5], [14, 5], [15, 10], [16, 11], [17, 4], [18, 4], [19, 8], [20, 9], [21, 13], [22, 14], [23, 17], [24, 18], [25, 19], [26, 20], [27, 25], [28, 25], [29, 26], [30, 26], [31, 30], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "DefaultCamelContext", "code": "    public DefaultCamelContext(Context jndiContext) {\n        this(new JndiRegistry(jndiContext));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DefaultCamelContext", "code": "    public DefaultCamelContext(Registry registry) {\n        this();\n        this.registry = registry;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7505", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/axes/WalkerFactory.java", "language": "java", "name": "org.apache.xpath.axes.WalkerFactory", "code": "public class WalkerFactory\n{\n\n  /**\n   * This method is for building an array of possible levels\n   * where the target element(s) could be found for a match.\n   * @param xpath The xpath that is executing.\n   * @param context The current source tree context node.\n   *\n   * @param lpi The owning location path iterator.\n   * @param compiler non-null reference to compiler object that has processed\n   *                 the XPath operations into an opcode map.\n   * @param stepOpCodePos The opcode position for the step.\n   *\n   * @return non-null AxesWalker derivative.\n   *\n   * @throws javax.xml.transform.TransformerException\n   * @xsl.usage advanced\n   */\n  static AxesWalker loadOneWalker(\n          WalkingIterator lpi, Compiler compiler, int stepOpCodePos)\n            throws javax.xml.transform.TransformerException\n  {\n\n    AxesWalker firstWalker = null;\n    int stepType = compiler.getOp(stepOpCodePos);\n\n    if (stepType != OpCodes.ENDOP)\n    {\n\n      firstWalker = createDefaultWalker(compiler, stepType, lpi, 0);\n\n      firstWalker.init(compiler, stepOpCodePos, stepType);\n    }\n\n    return firstWalker;\n  }\n\n  /**\n   * This method is for building an array of possible levels\n   * where the target element(s) could be found for a match.\n   * @param xpath The xpath that is executing.\n   * @param context The current source tree context node.\n   *\n   * @param lpi The owning location path iterator object.\n   * @param compiler non-null reference to compiler object that has processed\n   *                 the XPath operations into an opcode map.\n   * @param stepOpCodePos The opcode position for the step.\n   * @param stepIndex The top-level step index withing the iterator.\n   *\n   * @return non-null AxesWalker derivative.\n   *\n   * @throws javax.xml.transform.TransformerException\n   * @xsl.usage advanced\n   */\n  static AxesWalker loadWalkers(\n          WalkingIterator lpi, Compiler compiler, int stepOpCodePos, int stepIndex)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int stepType;\n    AxesWalker firstWalker = null;\n    AxesWalker walker, prevWalker = null;\n\n    int analysis = analyze(compiler, stepOpCodePos, stepIndex);\n\n    while (OpCodes.ENDOP != (stepType = compiler.getOp(stepOpCodePos)))\n    {\n      walker = createDefaultWalker(compiler, stepOpCodePos, lpi, analysis);\n\n      walker.init(compiler, stepOpCodePos, stepType);\n      walker.exprSetParent(lpi);\n\n      if (null == firstWalker)\n      {\n        firstWalker = walker;\n      }\n      else\n      {\n        prevWalker.setNextWalker(walker);\n        walker.setPrevWalker(prevWalker);\n      }\n\n      prevWalker = walker;\n      stepOpCodePos = compiler.getNextStepPos(stepOpCodePos);\n\n      if (stepOpCodePos < 0)\n        break;\n    }\n\n    return firstWalker;\n  }\n  \n  public static boolean isSet(int analysis, int bits)\n  {\n    return (0 != (analysis & bits));\n  }\n  \n  public static void diagnoseIterator(String name, int analysis, Compiler compiler)\n  {\n    System.out.println(compiler.toString()+\", \"+name+\", \"\n                             + Integer.toBinaryString(analysis) + \", \"\n                             + getAnalysisString(analysis));\n  }\n\n  /**\n   * Create a new LocPathIterator iterator.  The exact type of iterator\n   * returned is based on an analysis of the XPath operations.\n   *\n   * @param compiler non-null reference to compiler object that has processed\n   *                 the XPath operations into an opcode map.\n   * @param opPos The position of the operation code for this itterator.\n   *\n   * @return non-null reference to a LocPathIterator or derivative.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public static DTMIterator newDTMIterator(\n          Compiler compiler, int opPos,\n          boolean isTopLevel)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int firstStepPos = compiler.getFirstChildPos(opPos);\n    int analysis = analyze(compiler, firstStepPos, 0);\n    boolean isOneStep = isOneStep(analysis);\n    DTMIterator iter;\n\n    if (isOneStep && walksSelfOnly(analysis) && \n        isWild(analysis) && !hasPredicate(analysis))\n    {\n      if (DEBUG_ITERATOR_CREATION)\n        diagnoseIterator(\"SelfIteratorNoPredicate\", analysis, compiler);\n\n      iter = new SelfIteratorNoPredicate(compiler, opPos, analysis);\n    }\n    else if (walksChildrenOnly(analysis) && isOneStep)\n    {\n\n      if (isWild(analysis) && !hasPredicate(analysis))\n      {\n        if (DEBUG_ITERATOR_CREATION)\n          diagnoseIterator(\"ChildIterator\", analysis, compiler);\n\n        iter = new ChildIterator(compiler, opPos, analysis);\n      }\n      else\n      {\n        if (DEBUG_ITERATOR_CREATION)\n          diagnoseIterator(\"ChildTestIterator\", analysis, compiler);\n\n        iter = new ChildTestIterator(compiler, opPos, analysis);\n      }\n    }\n    else if (isOneStep && walksAttributes(analysis))\n    {\n      if (DEBUG_ITERATOR_CREATION)\n        diagnoseIterator(\"AttributeIterator\", analysis, compiler);\n\n      iter = new AttributeIterator(compiler, opPos, analysis);\n    }\n    else if(isOneStep && !walksFilteredList(analysis))\n    {\n      if( !walksNamespaces(analysis) \n      && (walksInDocOrder(analysis) || isSet(analysis, BIT_PARENT)))\n      {\n        if (false || DEBUG_ITERATOR_CREATION)\n          diagnoseIterator(\"OneStepIteratorForward\", analysis, compiler);\n  \n        iter = new OneStepIteratorForward(compiler, opPos, analysis);\n      }\n      else\n      {\n        if (false || DEBUG_ITERATOR_CREATION)\n          diagnoseIterator(\"OneStepIterator\", analysis, compiler);\n  \n        iter = new OneStepIterator(compiler, opPos, analysis);\n      }\n    }\n\n    else if (isOptimizableForDescendantIterator(compiler, firstStepPos, 0)\n             )\n    {\n      if (DEBUG_ITERATOR_CREATION)\n        diagnoseIterator(\"DescendantIterator\", analysis, compiler);\n\n      iter = new DescendantIterator(compiler, opPos, analysis);\n    }\n    else\n    { \n      if(isNaturalDocOrder(compiler, firstStepPos, 0, analysis))\n      {\n        if (false || DEBUG_ITERATOR_CREATION)\n        {\n          diagnoseIterator(\"WalkingIterator\", analysis, compiler);\n        }\n  \n        iter = new WalkingIterator(compiler, opPos, analysis, true);\n      }\n      else\n      {\n        if (DEBUG_ITERATOR_CREATION)\n          diagnoseIterator(\"WalkingIteratorSorted\", analysis, compiler);\n\n        iter = new WalkingIteratorSorted(compiler, opPos, analysis, true);\n      }\n    }\n    if(iter instanceof LocPathIterator)\n      ((LocPathIterator)iter).setIsTopLevel(isTopLevel);\n      \n    return iter;\n  }\n  \n  /**\n   * Special purpose function to see if we can optimize the pattern for \n   * a DescendantIterator.\n   *\n   * @param compiler non-null reference to compiler object that has processed\n   *                 the XPath operations into an opcode map.\n   * @param stepOpCodePos The opcode position for the step.\n   * @param stepIndex The top-level step index withing the iterator.\n   *\n   * @return 32 bits as an integer that give information about the location\n   * path as a whole.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public static int getAxisFromStep(\n          Compiler compiler, int stepOpCodePos)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int stepType = compiler.getOp(stepOpCodePos);\n\n    switch (stepType)\n    {\n    case OpCodes.FROM_FOLLOWING :\n      return Axis.FOLLOWING;\n    case OpCodes.FROM_FOLLOWING_SIBLINGS :\n      return Axis.FOLLOWINGSIBLING;\n    case OpCodes.FROM_PRECEDING :\n      return Axis.PRECEDING;\n    case OpCodes.FROM_PRECEDING_SIBLINGS :\n      return Axis.PRECEDINGSIBLING;\n    case OpCodes.FROM_PARENT :\n      return Axis.PARENT;\n    case OpCodes.FROM_NAMESPACE :\n      return Axis.NAMESPACE;\n    case OpCodes.FROM_ANCESTORS :\n      return Axis.ANCESTOR;\n    case OpCodes.FROM_ANCESTORS_OR_SELF :\n      return Axis.ANCESTORORSELF;\n    case OpCodes.FROM_ATTRIBUTES :\n      return Axis.ATTRIBUTE;\n    case OpCodes.FROM_ROOT :\n      return Axis.ROOT;\n    case OpCodes.FROM_CHILDREN :\n      return Axis.CHILD;\n    case OpCodes.FROM_DESCENDANTS_OR_SELF :\n      return Axis.DESCENDANTORSELF;\n    case OpCodes.FROM_DESCENDANTS :\n      return Axis.DESCENDANT;\n    case OpCodes.FROM_SELF :\n      return Axis.SELF;\n    case OpCodes.OP_EXTFUNCTION :\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_GROUP :\n    case OpCodes.OP_VARIABLE :\n      return Axis.FILTEREDLIST;\n    }\n\n   }\n    \n    /**\n     * Get a corresponding BIT_XXX from an axis.\n     * @param axis One of Axis.ANCESTOR, etc.\n     * @return One of BIT_ANCESTOR, etc.\n     */\n    static public int getAnalysisBitFromAxes(int axis)\n    {\n        switch(axis){\n        case Axis.ANCESTOR :\n          return BIT_ANCESTOR;\n        case Axis.ANCESTORORSELF :\n          return BIT_ANCESTOR_OR_SELF;\n        case Axis.ATTRIBUTE :\n          return BIT_ATTRIBUTE;\n        case Axis.CHILD :\n          return BIT_CHILD;\n        case Axis.DESCENDANT :\n          return BIT_DESCENDANT;\n        case Axis.DESCENDANTORSELF :\n          return BIT_DESCENDANT_OR_SELF;\n        case Axis.FOLLOWING :\n          return BIT_FOLLOWING;\n        case Axis.FOLLOWINGSIBLING :\n          return BIT_FOLLOWING_SIBLING;\n        case Axis.NAMESPACE :\n        case Axis.NAMESPACEDECLS :\n          return BIT_NAMESPACE;\n        case Axis.PARENT :\n          return BIT_PARENT;\n        case Axis.PRECEDING :\n          return BIT_PRECEDING;\n        case Axis.PRECEDINGSIBLING :\n          return BIT_PRECEDING_SIBLING;\n        case Axis.SELF :\n          return BIT_SELF;\n        case Axis.ALLFROMNODE :\n          return BIT_DESCENDANT_OR_SELF;\n        case Axis.DESCENDANTSFROMROOT :\n        case Axis.ALL :\n        case Axis.DESCENDANTSORSELFFROMROOT :\n          return BIT_ANY_DESCENDANT_FROM_ROOT;\n        case Axis.ROOT :\n          return BIT_ROOT;\n        case Axis.FILTEREDLIST :\n          return BIT_FILTER;\n        default :\n          return BIT_FILTER;\n      }\n    }\n  \n  static boolean functionProximateOrContainsProximate(Compiler compiler, \n                                                      int opPos)\n  {\n    int endFunc = opPos + compiler.getOp(opPos + 1) - 1;\n    opPos = compiler.getFirstChildPos(opPos);\n    int funcID = compiler.getOp(opPos);\n    switch(funcID)\n    {\n      case FunctionTable.FUNC_LAST:\n      case FunctionTable.FUNC_POSITION:\n        return true;\n      default:\n        opPos++;\n        int i = 0;\n        for (int p = opPos; p < endFunc; p = compiler.getNextOpPos(p), i++)\n        {\n          int innerExprOpPos = p+2;\n          int argOp = compiler.getOp(innerExprOpPos);\n          boolean prox = isProximateInnerExpr(compiler, innerExprOpPos);\n          if(prox)\n            return true;\n        }\n\n    }\n    return false;\n  }\n  \n  static boolean isProximateInnerExpr(Compiler compiler, int opPos)\n  {\n    int op = compiler.getOp(opPos);\n    int innerExprOpPos = opPos+2;\n    switch(op)\n    {\n      case OpCodes.OP_ARGUMENT:\n        if(isProximateInnerExpr(compiler, innerExprOpPos))\n          return true;\n        break;\n      case OpCodes.OP_VARIABLE:\n      case OpCodes.OP_NUMBERLIT:\n      case OpCodes.OP_LITERAL:\n      case OpCodes.OP_LOCATIONPATH:\n      case OpCodes.OP_FUNCTION:\n        boolean isProx = functionProximateOrContainsProximate(compiler, opPos);\n        if(isProx)\n          return true;\n        break;\n      case OpCodes.OP_GT:\n      case OpCodes.OP_GTE:\n      case OpCodes.OP_LT:\n      case OpCodes.OP_LTE:\n      case OpCodes.OP_EQUALS:\n        int leftPos = compiler.getFirstChildPos(op);\n        int rightPos = compiler.getNextOpPos(leftPos);\n        isProx = isProximateInnerExpr(compiler, leftPos);\n        if(isProx)\n          return true;\n        isProx = isProximateInnerExpr(compiler, rightPos);\n        if(isProx)\n          return true;\n        break;\n      default:\n    }\n    return false;\n  }\n    \n  /**\n   * Tell if the predicates need to have proximity knowledge.\n   */\n  public static boolean mightBeProximate(Compiler compiler, int opPos, int stepType)\n          throws javax.xml.transform.TransformerException\n  {\n\n    boolean mightBeProximate = false;\n    int argLen;\n\n    switch (stepType)\n    {\n    case OpCodes.OP_VARIABLE :\n    case OpCodes.OP_EXTFUNCTION :\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_GROUP :\n      argLen = compiler.getArgLength(opPos);\n      break;\n    default :\n      argLen = compiler.getArgLengthOfStep(opPos);\n    }\n\n    int predPos = compiler.getFirstPredicateOpPos(opPos);\n    int count = 0;\n\n    while (OpCodes.OP_PREDICATE == compiler.getOp(predPos))\n    {\n      count++;\n      \n      int innerExprOpPos = predPos+2;\n      int predOp = compiler.getOp(innerExprOpPos);\n\n      switch(predOp)\n      {\n        case OpCodes.OP_VARIABLE:\n        case OpCodes.OP_LOCATIONPATH:\n          break;\n        case OpCodes.OP_NUMBER:\n        case OpCodes.OP_NUMBERLIT:\n        case OpCodes.OP_FUNCTION:\n          boolean isProx \n            = functionProximateOrContainsProximate(compiler, innerExprOpPos);\n          if(isProx)\n            return true;\n          break;\n        case OpCodes.OP_GT:\n        case OpCodes.OP_GTE:\n        case OpCodes.OP_LT:\n        case OpCodes.OP_LTE:\n        case OpCodes.OP_EQUALS:\n          int leftPos = compiler.getFirstChildPos(innerExprOpPos);\n          int rightPos = compiler.getNextOpPos(leftPos);\n          isProx = isProximateInnerExpr(compiler, leftPos);\n          if(isProx)\n            return true;\n          isProx = isProximateInnerExpr(compiler, rightPos);\n          if(isProx)\n            return true;\n          break;\n        default:\n      }\n\n      predPos = compiler.getNextOpPos(predPos);\n    }\n\n    return mightBeProximate;\n  }\n  \n  /**\n   * Special purpose function to see if we can optimize the pattern for \n   * a DescendantIterator.\n   *\n   * @param compiler non-null reference to compiler object that has processed\n   *                 the XPath operations into an opcode map.\n   * @param stepOpCodePos The opcode position for the step.\n   * @param stepIndex The top-level step index withing the iterator.\n   *\n   * @return 32 bits as an integer that give information about the location\n   * path as a whole.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  private static boolean isOptimizableForDescendantIterator(\n          Compiler compiler, int stepOpCodePos, int stepIndex)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int stepType;\n    int stepCount = 0;\n    boolean foundDorDS = false;\n    boolean foundSelf = false;\n    boolean foundDS = false;\n    \n    int nodeTestType = OpCodes.NODETYPE_NODE;\n    \n    while (OpCodes.ENDOP != (stepType = compiler.getOp(stepOpCodePos)))\n    {\n      if(nodeTestType != OpCodes.NODETYPE_NODE && nodeTestType != OpCodes.NODETYPE_ROOT)\n        return false;\n        \n      stepCount++;\n      if(stepCount > 3)\n        return false;\n        \n      boolean mightBeProximate = mightBeProximate(compiler, stepOpCodePos, stepType);\n      if(mightBeProximate)\n        return false;\n\n      switch (stepType)\n      {\n      case OpCodes.FROM_FOLLOWING :\n      case OpCodes.FROM_FOLLOWING_SIBLINGS :\n      case OpCodes.FROM_PRECEDING :\n      case OpCodes.FROM_PRECEDING_SIBLINGS :\n      case OpCodes.FROM_PARENT :\n      case OpCodes.OP_VARIABLE :\n      case OpCodes.OP_EXTFUNCTION :\n      case OpCodes.OP_FUNCTION :\n      case OpCodes.OP_GROUP :\n      case OpCodes.FROM_NAMESPACE :\n      case OpCodes.FROM_ANCESTORS :\n      case OpCodes.FROM_ANCESTORS_OR_SELF :\n      case OpCodes.FROM_ATTRIBUTES :\n      case OpCodes.MATCH_ATTRIBUTE :\n      case OpCodes.MATCH_ANY_ANCESTOR :\n      case OpCodes.MATCH_IMMEDIATE_ANCESTOR :\n        return false;\n      case OpCodes.FROM_ROOT :\n        if(1 != stepCount)\n          return false;\n        break;\n      case OpCodes.FROM_CHILDREN :\n        if(!foundDS && !(foundDorDS && foundSelf))\n          return false;\n        break;\n      case OpCodes.FROM_DESCENDANTS_OR_SELF :\n        foundDS = true;\n      case OpCodes.FROM_DESCENDANTS :\n        if(3 == stepCount)\n          return false;\n        foundDorDS = true;\n        break;\n      case OpCodes.FROM_SELF :\n        if(1 != stepCount)\n          return false;\n        foundSelf = true;\n        break;\n      default :\n      }\n      \n      nodeTestType = compiler.getStepTestType(stepOpCodePos);\n\n      int nextStepOpCodePos = compiler.getNextStepPos(stepOpCodePos);\n\n      if (nextStepOpCodePos < 0)\n        break;\n        \n      if(OpCodes.ENDOP != compiler.getOp(nextStepOpCodePos))\n      {\n        if(compiler.countPredicates(stepOpCodePos) > 0)\n        {\n          return false;\n        }\n      }\n      \n      stepOpCodePos = nextStepOpCodePos;\n    }\n\n    return true;\n  }\n\n  /**\n   * Analyze the location path and return 32 bits that give information about\n   * the location path as a whole.  See the BIT_XXX constants for meaning about\n   * each of the bits.\n   *\n   * @param compiler non-null reference to compiler object that has processed\n   *                 the XPath operations into an opcode map.\n   * @param stepOpCodePos The opcode position for the step.\n   * @param stepIndex The top-level step index withing the iterator.\n   *\n   * @return 32 bits as an integer that give information about the location\n   * path as a whole.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  private static int analyze(\n          Compiler compiler, int stepOpCodePos, int stepIndex)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int stepType;\n    int stepCount = 0;\n\n    while (OpCodes.ENDOP != (stepType = compiler.getOp(stepOpCodePos)))\n    {\n      stepCount++;\n\n      boolean predAnalysis = analyzePredicate(compiler, stepOpCodePos,\n                                              stepType);\n\n      if (predAnalysis)\n        analysisResult |= BIT_PREDICATE;\n\n      switch (stepType)\n      {\n      case OpCodes.OP_VARIABLE :\n      case OpCodes.OP_EXTFUNCTION :\n      case OpCodes.OP_FUNCTION :\n      case OpCodes.OP_GROUP :\n        analysisResult |= BIT_FILTER;\n        break;\n      case OpCodes.FROM_ROOT :\n        analysisResult |= BIT_ROOT;\n        break;\n      case OpCodes.FROM_ANCESTORS :\n        analysisResult |= BIT_ANCESTOR;\n        break;\n      case OpCodes.FROM_ANCESTORS_OR_SELF :\n        analysisResult |= BIT_ANCESTOR_OR_SELF;\n        break;\n      case OpCodes.FROM_ATTRIBUTES :\n        analysisResult |= BIT_ATTRIBUTE;\n        break;\n      case OpCodes.FROM_NAMESPACE :\n        analysisResult |= BIT_NAMESPACE;\n        break;\n      case OpCodes.FROM_CHILDREN :\n        analysisResult |= BIT_CHILD;\n        break;\n      case OpCodes.FROM_DESCENDANTS :\n        analysisResult |= BIT_DESCENDANT;\n        break;\n      case OpCodes.FROM_DESCENDANTS_OR_SELF :\n\n        if (2 == stepCount && BIT_ROOT == analysisResult)\n        {\n          analysisResult |= BIT_ANY_DESCENDANT_FROM_ROOT;\n        }\n\n        analysisResult |= BIT_DESCENDANT_OR_SELF;\n        break;\n      case OpCodes.FROM_FOLLOWING :\n        analysisResult |= BIT_FOLLOWING;\n        break;\n      case OpCodes.FROM_FOLLOWING_SIBLINGS :\n        analysisResult |= BIT_FOLLOWING_SIBLING;\n        break;\n      case OpCodes.FROM_PRECEDING :\n        analysisResult |= BIT_PRECEDING;\n        break;\n      case OpCodes.FROM_PRECEDING_SIBLINGS :\n        analysisResult |= BIT_PRECEDING_SIBLING;\n        break;\n      case OpCodes.FROM_PARENT :\n        analysisResult |= BIT_PARENT;\n        break;\n      case OpCodes.FROM_SELF :\n        analysisResult |= BIT_SELF;\n        break;\n      case OpCodes.MATCH_ATTRIBUTE :\n        analysisResult |= (BIT_MATCH_PATTERN | BIT_ATTRIBUTE);\n        break;\n      case OpCodes.MATCH_ANY_ANCESTOR :\n        analysisResult |= (BIT_MATCH_PATTERN | BIT_ANCESTOR);\n        break;\n      case OpCodes.MATCH_IMMEDIATE_ANCESTOR :\n        analysisResult |= (BIT_MATCH_PATTERN | BIT_PARENT);\n        break;\n      default :\n      }\n\n      {\n        analysisResult |= BIT_NODETEST_ANY;\n      }\n\n      stepOpCodePos = compiler.getNextStepPos(stepOpCodePos);\n\n      if (stepOpCodePos < 0)\n        break;\n    }\n\n    analysisResult |= (stepCount & BITS_COUNT);\n\n    return analysisResult;\n  }\n  \n  /**\n   * Tell if the given axis goes downword.  Bogus name, if you can think of \n   * a better one, please do tell.  This really has to do with inverting \n   * attribute axis.\n   * @param axis One of Axis.XXX.\n   * @return true if the axis is not a child axis and does not go up from \n   * the axis root.\n   */\n  public static boolean isDownwardAxisOfMany(int axis)\n  {\n    return ((Axis.DESCENDANTORSELF == axis) ||\n          (Axis.DESCENDANT == axis) \n          || (Axis.FOLLOWING == axis) \n          || (Axis.PRECEDING == axis) \n          );\n  }\n\n  /**\n   * as a generalized match pattern.  What this means is that the LocationPath\n   * is read backwards, as a test on a given node, to see if it matches the\n   * criteria of the selection, and ends up at the context node.  Essentially,\n   * this is a backwards query from a given node, to find the context node.\n   * <p>So, the selection \"foo/daz[2]\" is, in non-abreviated expanded syntax,\n   * \"self::node()/following-sibling::foo/child::daz[position()=2]\".\n   * Taking this as a match pattern for a probable node, it works out to\n   * \"self::daz/parent::foo[child::daz[position()=2 and isPrevStepNode()]\n   * precedingSibling::node()[isContextNodeOfLocationPath()]\", adding magic\n   * isPrevStepNode and isContextNodeOfLocationPath operations.  Predicates in\n   * the location path have to be executed by the following step,\n   * because they have to know the context of their execution.\n   *\n   * @param mpi The MatchPatternIterator to which the steps will be attached.\n   * @param compiler The compiler that holds the syntax tree/op map to\n   * construct from.\n   * @param stepOpCodePos The current op code position within the opmap.\n   * @param stepIndex The top-level step index withing the iterator.\n   *\n   * @return A StepPattern object, which may contain relative StepPatterns.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  static StepPattern loadSteps(\n          MatchPatternIterator mpi, Compiler compiler, int stepOpCodePos, \n                                                       int stepIndex)\n            throws javax.xml.transform.TransformerException\n  {\n    if (DEBUG_PATTERN_CREATION)\n    {\n      System.out.println(\"================\");\n      System.out.println(\"loadSteps for: \"+compiler.getPatternString());\n    }\n    int stepType;\n    StepPattern step = null;\n    StepPattern firstStep = null, prevStep = null;\n    int analysis = analyze(compiler, stepOpCodePos, stepIndex);\n\n    while (OpCodes.ENDOP != (stepType = compiler.getOp(stepOpCodePos)))\n    {\n      step = createDefaultStepPattern(compiler, stepOpCodePos, mpi, analysis,\n                                      firstStep, prevStep);\n\n      if (null == firstStep)\n      {\n        firstStep = step;\n      }\n      else\n      {\n\n        step.setRelativePathPattern(prevStep);\n      }\n\n      prevStep = step;\n      stepOpCodePos = compiler.getNextStepPos(stepOpCodePos);\n\n      if (stepOpCodePos < 0)\n        break;\n    }\n    \n    int axis = Axis.SELF;\n    int paxis = Axis.SELF;\n    StepPattern tail = step;\n    for (StepPattern pat = step; null != pat; \n         pat = pat.getRelativePathPattern()) \n    {\n      int nextAxis = pat.getAxis();\n      pat.setAxis(axis);\n      \n      \n      int whatToShow = pat.getWhatToShow();\n      if(whatToShow == DTMFilter.SHOW_ATTRIBUTE || \n         whatToShow == DTMFilter.SHOW_NAMESPACE)\n      {\n        int newAxis = (whatToShow == DTMFilter.SHOW_ATTRIBUTE) ? \n                       Axis.ATTRIBUTE : Axis.NAMESPACE;\n        if(isDownwardAxisOfMany(axis))\n        {\n          StepPattern attrPat = new StepPattern(whatToShow, \n                                    pat.getNamespace(),\n                                    pat.getLocalName());\n          XNumber score = pat.getStaticScore();\n          pat.setNamespace(null);\n          pat.setLocalName(NodeTest.WILD);\n          attrPat.setPredicates(pat.getPredicates());\n          pat.setPredicates(null);\n          pat.setWhatToShow(DTMFilter.SHOW_ELEMENT);\n          StepPattern rel = pat.getRelativePathPattern();\n          pat.setRelativePathPattern(attrPat);\n          attrPat.setRelativePathPattern(rel);\n          attrPat.setStaticScore(score);\n          \n          if(Axis.PRECEDING == pat.getAxis())\n            pat.setAxis(Axis.PRECEDINGANDANCESTOR);\n            \n          else if(Axis.DESCENDANT == pat.getAxis())\n            pat.setAxis(Axis.DESCENDANTORSELF);\n          \n          pat = attrPat;\n        }\n        else if(Axis.CHILD == pat.getAxis())\n        {\n          pat.setAxis(Axis.ATTRIBUTE);\n        }\n      }\n      axis = nextAxis;\n      tail = pat;\n    }\n    \n    if(axis < Axis.ALL)\n    {\n      StepPattern selfPattern = new ContextMatchStepPattern(axis, paxis);\n      XNumber score = tail.getStaticScore();\n      tail.setRelativePathPattern(selfPattern);\n      tail.setStaticScore(score);\n      selfPattern.setStaticScore(score);\n    }        \n\n    if (DEBUG_PATTERN_CREATION)\n    {\n      System.out.println(\"Done loading steps: \"+step.toString());\n            \n      System.out.println(\"\");\n    }\n  }\n\n  /**\n   * Create a StepPattern that is contained within a LocationPath.\n   *\n   *\n   * @param compiler The compiler that holds the syntax tree/op map to\n   * construct from.\n   * @param stepOpCodePos The current op code position within the opmap.\n   * @param mpi The MatchPatternIterator to which the steps will be attached.\n   * @param analysis 32 bits of analysis, from which the type of AxesWalker\n   *                 may be influenced.\n   * @param tail The step that is the first step analyzed, but the last \n   *                  step in the relative match linked list, i.e. the tail.\n   *                  May be null.\n   * @param head The step that is the current head of the relative \n   *                 match step linked list.\n   *                 May be null.\n   *\n   * @return the head of the list.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  private static StepPattern createDefaultStepPattern(\n          Compiler compiler, int opPos, MatchPatternIterator mpi, \n          int analysis, StepPattern tail, StepPattern head)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int stepType = compiler.getOp(opPos);\n    boolean simpleInit = false;\n    int totalNumberWalkers = (analysis & BITS_COUNT);\n    boolean prevIsOneStepDown = true;\n    int firstStepPos = compiler.getFirstChildPos(opPos);\n    \n    int whatToShow = compiler.getWhatToShow(opPos);\n    StepPattern ai = null;\n    int axis, predicateAxis;\n    \n    switch (stepType)\n    {\n    case OpCodes.OP_VARIABLE :\n    case OpCodes.OP_EXTFUNCTION :\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_GROUP :\n      prevIsOneStepDown = false;\n\n      Expression expr;\n\n      switch (stepType)\n      {\n      case OpCodes.OP_VARIABLE :\n      case OpCodes.OP_EXTFUNCTION :\n      case OpCodes.OP_FUNCTION :\n      case OpCodes.OP_GROUP :\n        expr = compiler.compile(opPos);\n        break;\n      default :\n        expr = compiler.compile(opPos + 2);\n      }\n\n      axis = Axis.FILTEREDLIST;\n      predicateAxis = Axis.FILTEREDLIST;\n      ai = new FunctionPattern(expr, axis, predicateAxis);\n      simpleInit = true;\n      break;\n    case OpCodes.FROM_ROOT :\n      whatToShow = DTMFilter.SHOW_DOCUMENT\n                   | DTMFilter.SHOW_DOCUMENT_FRAGMENT;\n\n      axis = Axis.ROOT;\n      predicateAxis = Axis.ROOT;\n      ai = new StepPattern(DTMFilter.SHOW_DOCUMENT | \n                                DTMFilter.SHOW_DOCUMENT_FRAGMENT,\n                                axis, predicateAxis);\n      break;\n    case OpCodes.FROM_ATTRIBUTES :\n      whatToShow = DTMFilter.SHOW_ATTRIBUTE;\n      axis = Axis.PARENT;\n      predicateAxis = Axis.ATTRIBUTE;\n      break;\n    case OpCodes.FROM_NAMESPACE :\n      whatToShow = DTMFilter.SHOW_NAMESPACE;\n      axis = Axis.PARENT;\n      predicateAxis = Axis.NAMESPACE;\n      break;\n    case OpCodes.FROM_ANCESTORS :\n      axis = Axis.DESCENDANT;\n      predicateAxis = Axis.ANCESTOR;\n      break;\n    case OpCodes.FROM_CHILDREN :\n      axis = Axis.PARENT;\n      predicateAxis = Axis.CHILD;\n      break;\n    case OpCodes.FROM_ANCESTORS_OR_SELF :\n      axis = Axis.DESCENDANTORSELF;\n      predicateAxis = Axis.ANCESTORORSELF;\n      break;\n    case OpCodes.FROM_SELF :\n      axis = Axis.SELF;\n      predicateAxis = Axis.SELF;\n      break;\n    case OpCodes.FROM_PARENT :\n      axis = Axis.CHILD;\n      predicateAxis = Axis.PARENT;\n      break;\n    case OpCodes.FROM_PRECEDING_SIBLINGS :\n      axis = Axis.FOLLOWINGSIBLING;\n      predicateAxis = Axis.PRECEDINGSIBLING;\n      break;\n    case OpCodes.FROM_PRECEDING :\n      axis = Axis.FOLLOWING;\n      predicateAxis = Axis.PRECEDING;\n      break;\n    case OpCodes.FROM_FOLLOWING_SIBLINGS :\n      axis = Axis.PRECEDINGSIBLING;\n      predicateAxis = Axis.FOLLOWINGSIBLING;\n      break;\n    case OpCodes.FROM_FOLLOWING :\n      axis = Axis.PRECEDING;\n      predicateAxis = Axis.FOLLOWING;\n      break;\n    case OpCodes.FROM_DESCENDANTS_OR_SELF :\n      axis = Axis.ANCESTORORSELF;\n      predicateAxis = Axis.DESCENDANTORSELF;\n      break;\n    case OpCodes.FROM_DESCENDANTS :\n      axis = Axis.ANCESTOR;\n      predicateAxis = Axis.DESCENDANT;\n      break;\n    default :\n    }\n    if(null == ai)\n    {\n      ai = new StepPattern(whatToShow, compiler.getStepNS(opPos),\n                                compiler.getStepLocalName(opPos),\n                                axis, predicateAxis);\n    }\n   \n    if (false || DEBUG_PATTERN_CREATION)\n    {\n      System.out.print(\"new step: \"+ ai);\n      System.out.print(\", axis: \" + Axis.names[ai.getAxis()]);\n      System.out.print(\", predAxis: \" + Axis.names[ai.getAxis()]);\n      System.out.print(\", what: \");\n      System.out.print(\"    \");\n      ai.debugWhatToShow(ai.getWhatToShow());\n    }\n\n    int argLen = compiler.getFirstPredicateOpPos(opPos);\n\n    ai.setPredicates(compiler.getCompiledPredicates(argLen));\n\n    return ai;\n  }\n\n  /**\n   * Analyze a step and give information about it's predicates.  Right now this\n   * just returns true or false if the step has a predicate.\n   *\n   * @param compiler non-null reference to compiler object that has processed\n   *                 the XPath operations into an opcode map.\n   * @param opPos The opcode position for the step.\n   * @param stepType The type of step, one of OP_GROUP, etc.\n   *\n   * @return true if step has a predicate.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  static boolean analyzePredicate(Compiler compiler, int opPos, int stepType)\n          throws javax.xml.transform.TransformerException\n  {\n\n    int argLen;\n\n    switch (stepType)\n    {\n    case OpCodes.OP_VARIABLE :\n    case OpCodes.OP_EXTFUNCTION :\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_GROUP :\n      argLen = compiler.getArgLength(opPos);\n      break;\n    default :\n      argLen = compiler.getArgLengthOfStep(opPos);\n    }\n\n    int pos = compiler.getFirstPredicateOpPos(opPos);\n    int nPredicates = compiler.countPredicates(pos);\n\n    return (nPredicates > 0) ? true : false;\n  }\n\n  /**\n   * Create the proper Walker from the axes type.\n   *\n   * @param compiler non-null reference to compiler object that has processed\n   *                 the XPath operations into an opcode map.\n   * @param opPos The opcode position for the step.\n   * @param lpi The owning location path iterator.\n   * @param analysis 32 bits of analysis, from which the type of AxesWalker\n   *                 may be influenced.\n   *\n   * @return non-null reference to AxesWalker derivative.\n   * @throws RuntimeException if the input is bad.\n   */\n  private static AxesWalker createDefaultWalker(Compiler compiler, int opPos,\n          WalkingIterator lpi, int analysis)\n  {\n\n    AxesWalker ai = null;\n    int stepType = compiler.getOp(opPos);\n\n    /*\n    System.out.println(\"0: \"+compiler.getOp(opPos));\n    System.out.println(\"1: \"+compiler.getOp(opPos+1));\n    System.out.println(\"2: \"+compiler.getOp(opPos+2));\n    System.out.println(\"3: \"+compiler.getOp(opPos+3));\n    System.out.println(\"4: \"+compiler.getOp(opPos+4));\n    System.out.println(\"5: \"+compiler.getOp(opPos+5));\n    */\n    boolean simpleInit = false;\n    int totalNumberWalkers = (analysis & BITS_COUNT);\n    boolean prevIsOneStepDown = true;\n\n    switch (stepType)\n    {\n    case OpCodes.OP_VARIABLE :\n    case OpCodes.OP_EXTFUNCTION :\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_GROUP :\n      prevIsOneStepDown = false;\n\n      if (DEBUG_WALKER_CREATION)\n        System.out.println(\"new walker:  FilterExprWalker: \" + analysis\n                           + \", \" + compiler.toString());\n\n      ai = new FilterExprWalker(lpi);\n      simpleInit = true;\n      break;\n    case OpCodes.FROM_ROOT :\n      ai = new AxesWalker(lpi, Axis.ROOT);\n      break;\n    case OpCodes.FROM_ANCESTORS :\n      prevIsOneStepDown = false;\n      ai = new ReverseAxesWalker(lpi, Axis.ANCESTOR);\n      break;\n    case OpCodes.FROM_ANCESTORS_OR_SELF :\n      prevIsOneStepDown = false;\n      ai = new ReverseAxesWalker(lpi, Axis.ANCESTORORSELF);\n      break;\n    case OpCodes.FROM_ATTRIBUTES :\n      ai = new AxesWalker(lpi, Axis.ATTRIBUTE);\n      break;\n    case OpCodes.FROM_NAMESPACE :\n      ai = new AxesWalker(lpi, Axis.NAMESPACE);\n      break;\n    case OpCodes.FROM_CHILDREN :\n      ai = new AxesWalker(lpi, Axis.CHILD);\n      break;\n    case OpCodes.FROM_DESCENDANTS :\n      prevIsOneStepDown = false;\n      ai = new AxesWalker(lpi, Axis.DESCENDANT);\n      break;\n    case OpCodes.FROM_DESCENDANTS_OR_SELF :\n      prevIsOneStepDown = false;\n      ai = new AxesWalker(lpi, Axis.DESCENDANTORSELF);\n      break;\n    case OpCodes.FROM_FOLLOWING :\n      prevIsOneStepDown = false;\n      ai = new AxesWalker(lpi, Axis.FOLLOWING);\n      break;\n    case OpCodes.FROM_FOLLOWING_SIBLINGS :\n      prevIsOneStepDown = false;\n      ai = new AxesWalker(lpi, Axis.FOLLOWINGSIBLING);\n      break;\n    case OpCodes.FROM_PRECEDING :\n      prevIsOneStepDown = false;\n      ai = new ReverseAxesWalker(lpi, Axis.PRECEDING);\n      break;\n    case OpCodes.FROM_PRECEDING_SIBLINGS :\n      prevIsOneStepDown = false;\n      ai = new ReverseAxesWalker(lpi, Axis.PRECEDINGSIBLING);\n      break;\n    case OpCodes.FROM_PARENT :\n      prevIsOneStepDown = false;\n      ai = new ReverseAxesWalker(lpi, Axis.PARENT);\n      break;\n    case OpCodes.FROM_SELF :\n      ai = new AxesWalker(lpi, Axis.SELF);\n      break;\n    default :\n    }\n\n    if (simpleInit)\n    {\n      ai.initNodeTest(DTMFilter.SHOW_ALL);\n    }\n    else\n    {\n      int whatToShow = compiler.getWhatToShow(opPos);\n\n      /*\n      System.out.print(\"construct: \");\n      NodeTest.debugWhatToShow(whatToShow);\n      System.out.println(\"or stuff: \"+(whatToShow & (DTMFilter.SHOW_ATTRIBUTE\n                             | DTMFilter.SHOW_ELEMENT\n                             | DTMFilter.SHOW_PROCESSING_INSTRUCTION)));\n      */\n      if ((0 == (whatToShow\n                 & (DTMFilter.SHOW_ATTRIBUTE | DTMFilter.SHOW_NAMESPACE | DTMFilter.SHOW_ELEMENT\n                    | DTMFilter.SHOW_PROCESSING_INSTRUCTION))) || (whatToShow == DTMFilter.SHOW_ALL))\n        ai.initNodeTest(whatToShow);\n      else\n      {\n        ai.initNodeTest(whatToShow, compiler.getStepNS(opPos),\n                        compiler.getStepLocalName(opPos));\n      }\n    }\n\n    return ai;\n  }\n  \n  public static String getAnalysisString(int analysis)\n  {\n    StringBuffer buf = new StringBuffer();\n    buf.append(\"count: \"+getStepCount(analysis)+\" \");\n    if((analysis & BIT_NODETEST_ANY) != 0)\n    {\n      buf.append(\"NTANY|\");\n    }\n    if((analysis & BIT_PREDICATE) != 0)\n    {\n      buf.append(\"PRED|\");\n    }\n    if((analysis & BIT_ANCESTOR) != 0)\n    {\n      buf.append(\"ANC|\");\n    }\n    if((analysis & BIT_ANCESTOR_OR_SELF) != 0)\n    {\n      buf.append(\"ANCOS|\");\n    }\n    if((analysis & BIT_ATTRIBUTE) != 0)\n    {\n      buf.append(\"ATTR|\");\n    }\n    if((analysis & BIT_CHILD) != 0)\n    {\n      buf.append(\"CH|\");\n    }\n    if((analysis & BIT_DESCENDANT) != 0)\n    {\n      buf.append(\"DESC|\");\n    }\n    if((analysis & BIT_DESCENDANT_OR_SELF) != 0)\n    {\n      buf.append(\"DESCOS|\");\n    }\n    if((analysis & BIT_FOLLOWING) != 0)\n    {\n      buf.append(\"FOL|\");\n    }\n    if((analysis & BIT_FOLLOWING_SIBLING) != 0)\n    {\n      buf.append(\"FOLS|\");\n    }\n    if((analysis & BIT_NAMESPACE) != 0)\n    {\n      buf.append(\"NS|\");\n    }\n    if((analysis & BIT_PARENT) != 0)\n    {\n      buf.append(\"P|\");\n    }\n    if((analysis & BIT_PRECEDING) != 0)\n    {\n      buf.append(\"PREC|\");\n    }\n    if((analysis & BIT_PRECEDING_SIBLING) != 0)\n    {\n      buf.append(\"PRECS|\");\n    }\n    if((analysis & BIT_SELF) != 0)\n    {\n      buf.append(\".|\");\n    }\n    if((analysis & BIT_FILTER) != 0)\n    {\n      buf.append(\"FLT|\");\n    }\n    if((analysis & BIT_ROOT) != 0)\n    {\n      buf.append(\"R|\");\n    }\n    return buf.toString();\n  }\n\n  /** Set to true for diagnostics about walker creation */\n  static final boolean DEBUG_PATTERN_CREATION = false;\n\n  /** Set to true for diagnostics about walker creation */\n  static final boolean DEBUG_WALKER_CREATION = false;\n\n  /** Set to true for diagnostics about iterator creation */\n  static final boolean DEBUG_ITERATOR_CREATION = false;\n  \n  public static boolean hasPredicate(int analysis)\n  {\n    return (0 != (analysis & BIT_PREDICATE));\n  }\n\n  public static boolean isWild(int analysis)\n  {\n    return (0 != (analysis & BIT_NODETEST_ANY));\n  }\n\n  public static boolean walksAncestors(int analysis)\n  {\n    return isSet(analysis, BIT_ANCESTOR | BIT_ANCESTOR_OR_SELF);\n  }\n  \n  public static boolean walksAttributes(int analysis)\n  {\n    return (0 != (analysis & BIT_ATTRIBUTE));\n  }\n\n  public static boolean walksNamespaces(int analysis)\n  {\n    return (0 != (analysis & BIT_NAMESPACE));\n  }  \n\n  public static boolean walksChildren(int analysis)\n  {\n    return (0 != (analysis & BIT_CHILD));\n  }\n\n  public static boolean walksDescendants(int analysis)\n  {\n    return isSet(analysis, BIT_DESCENDANT | BIT_DESCENDANT_OR_SELF);\n  }\n\n  public static boolean walksSubtree(int analysis)\n  {\n    return isSet(analysis, BIT_DESCENDANT | BIT_DESCENDANT_OR_SELF | BIT_CHILD);\n  }\n  \n  public static boolean walksSubtreeOnlyMaybeAbsolute(int analysis)\n  {\n    return walksSubtree(analysis)\n           && !walksExtraNodes(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           ;\n  }\n  \n  public static boolean walksSubtreeOnly(int analysis)\n  {\n    return walksSubtreeOnlyMaybeAbsolute(analysis) \n           && !isAbsolute(analysis) \n           ;\n  }\n\n  public static boolean walksFilteredList(int analysis)\n  {\n    return isSet(analysis, BIT_FILTER);\n  }\n  \n  public static boolean walksSubtreeOnlyFromRootOrContext(int analysis)\n  {\n    return walksSubtree(analysis)\n           && !walksExtraNodes(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isSet(analysis, BIT_FILTER) \n           ;\n  }\n\n  public static boolean walksInDocOrder(int analysis)\n  {\n    return (walksSubtreeOnlyMaybeAbsolute(analysis)\n           || walksExtraNodesOnly(analysis)\n           || walksFollowingOnlyMaybeAbsolute(analysis)) \n           && !isSet(analysis, BIT_FILTER) \n           ;\n  }\n  \n  public static boolean walksFollowingOnlyMaybeAbsolute(int analysis)\n  {\n    return isSet(analysis, BIT_SELF | BIT_FOLLOWING_SIBLING | BIT_FOLLOWING)\n           && !walksSubtree(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           ;\n  }\n  \n  public static boolean walksUp(int analysis)\n  {\n    return isSet(analysis, BIT_PARENT | BIT_ANCESTOR | BIT_ANCESTOR_OR_SELF);\n  }\n  \n  public static boolean walksSideways(int analysis)\n  {\n    return isSet(analysis, BIT_FOLLOWING | BIT_FOLLOWING_SIBLING | \n                           BIT_PRECEDING | BIT_PRECEDING_SIBLING);\n  }\n  \n  public static boolean walksExtraNodes(int analysis)\n  {\n    return isSet(analysis, BIT_NAMESPACE | BIT_ATTRIBUTE);\n  }\n\n  public static boolean walksExtraNodesOnly(int analysis)\n  {\n    return walksExtraNodes(analysis)\n           && !isSet(analysis, BIT_SELF) \n           && !walksSubtree(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isAbsolute(analysis) \n           ;\n  }\n\n  public static boolean isAbsolute(int analysis)\n  {\n    return isSet(analysis, BIT_ROOT | BIT_FILTER);\n  }\n  \n  public static boolean walksChildrenOnly(int analysis)\n  {\n    return walksChildren(analysis)\n           && !isSet(analysis, BIT_SELF)\n           && !walksExtraNodes(analysis)\n           && !walksDescendants(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && (!isAbsolute(analysis) || isSet(analysis, BIT_ROOT))\n           ;\n  }\n  \n  public static boolean walksChildrenAndExtraAndSelfOnly(int analysis)\n  {\n    return walksChildren(analysis)\n           && !walksDescendants(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && (!isAbsolute(analysis) || isSet(analysis, BIT_ROOT))\n           ;\n  }\n  \n  public static boolean walksDescendantsAndExtraAndSelfOnly(int analysis)\n  {\n    return !walksChildren(analysis)\n           && walksDescendants(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && (!isAbsolute(analysis) || isSet(analysis, BIT_ROOT))\n           ;\n  }\n  \n  public static boolean walksSelfOnly(int analysis)\n  {\n    return isSet(analysis, BIT_SELF) \n           && !walksSubtree(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isAbsolute(analysis) \n           ;\n  }\n\n  \n  public static boolean walksUpOnly(int analysis)\n  {\n    return !walksSubtree(analysis) \n           && walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isAbsolute(analysis) \n           ;\n  }\n  \n  public static boolean walksDownOnly(int analysis)\n  {\n    return walksSubtree(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isAbsolute(analysis) \n           ;\n  }\n\n  public static boolean walksDownExtraOnly(int analysis)\n  {\n    return walksSubtree(analysis) &&  walksExtraNodes(analysis)\n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isAbsolute(analysis) \n           ;\n  }\n  \n  public static boolean canSkipSubtrees(int analysis)\n  {\n    return isSet(analysis, BIT_CHILD) | walksSideways(analysis);\n  }\n  \n  public static boolean canCrissCross(int analysis)\n  {\n    if(walksSelfOnly(analysis))\n      return false;\n    else if(walksDownOnly(analysis) && !canSkipSubtrees(analysis))\n      return false;\n    else if(walksChildrenAndExtraAndSelfOnly(analysis))\n      return false;\n    else if(walksDescendantsAndExtraAndSelfOnly(analysis))\n      return false;\n    else if(walksUpOnly(analysis))\n      return false;\n    else if(walksExtraNodesOnly(analysis))\n      return false;\n    else if(walksSubtree(analysis) \n           && (walksSideways(analysis) \n            || walksUp(analysis) \n            || canSkipSubtrees(analysis)))\n      return true;\n    else\n      return false;\n  }\n  \n  /**\n   * Tell if the pattern can be 'walked' with the iteration steps in natural \n   * document order, without duplicates.\n   *\n   * @param analysis The general analysis of the pattern.\n   *\n   * @return true if the walk can be done in natural order.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  static public boolean isNaturalDocOrder(int analysis)\n  {\n    if(canCrissCross(analysis) || isSet(analysis, BIT_NAMESPACE) ||\n       walksFilteredList(analysis))\n      return false;\n      \n    if(walksInDocOrder(analysis))\n      return true;\n      \n    return false;\n  }\n  \n  /**\n   * Tell if the pattern can be 'walked' with the iteration steps in natural \n   * document order, without duplicates.\n   *\n   * @param compiler non-null reference to compiler object that has processed\n   *                 the XPath operations into an opcode map.\n   * @param stepOpCodePos The opcode position for the step.\n   * @param stepIndex The top-level step index withing the iterator.\n   * @param analysis The general analysis of the pattern.\n   *\n   * @return true if the walk can be done in natural order.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  private static boolean isNaturalDocOrder(\n          Compiler compiler, int stepOpCodePos, int stepIndex, int analysis)\n            throws javax.xml.transform.TransformerException\n  {\n    if(canCrissCross(analysis))\n      return false;\n      \n    if(isSet(analysis, BIT_NAMESPACE))\n      return false;\n      \n    if(isSet(analysis, BIT_FOLLOWING | BIT_FOLLOWING_SIBLING) && \n       isSet(analysis, BIT_PRECEDING | BIT_PRECEDING_SIBLING))\n      return  false;\n      \n    \n    int stepType;\n    int stepCount = 0;\n    boolean foundWildAttribute = false;\n    \n    int potentialDuplicateMakingStepCount = 0;\n    \n    while (OpCodes.ENDOP != (stepType = compiler.getOp(stepOpCodePos)))\n    {        \n      stepCount++;\n        \n      switch (stepType)\n      {\n      case OpCodes.FROM_ATTRIBUTES :\n      case OpCodes.MATCH_ATTRIBUTE :\n          return false;\n        \n        \n        String localName = compiler.getStepLocalName(stepOpCodePos);\n        if(localName.equals(\"*\"))\n        {\n          foundWildAttribute = true;\n        }\n        break;\n      case OpCodes.FROM_FOLLOWING :\n      case OpCodes.FROM_FOLLOWING_SIBLINGS :\n      case OpCodes.FROM_PRECEDING :\n      case OpCodes.FROM_PRECEDING_SIBLINGS :\n      case OpCodes.FROM_PARENT :\n      case OpCodes.OP_VARIABLE :\n      case OpCodes.OP_EXTFUNCTION :\n      case OpCodes.OP_FUNCTION :\n      case OpCodes.OP_GROUP :\n      case OpCodes.FROM_NAMESPACE :\n      case OpCodes.FROM_ANCESTORS :\n      case OpCodes.FROM_ANCESTORS_OR_SELF :      \n      case OpCodes.MATCH_ANY_ANCESTOR :\n      case OpCodes.MATCH_IMMEDIATE_ANCESTOR :\n      case OpCodes.FROM_DESCENDANTS_OR_SELF :\n      case OpCodes.FROM_DESCENDANTS :\n        if(potentialDuplicateMakingStepCount > 0)\n            return false;\n        potentialDuplicateMakingStepCount++;\n      case OpCodes.FROM_ROOT :\n      case OpCodes.FROM_CHILDREN :\n      case OpCodes.FROM_SELF :\n        if(foundWildAttribute)\n          return false;\n        break;\n      default :\n      }\n\n      int nextStepOpCodePos = compiler.getNextStepPos(stepOpCodePos);\n\n      if (nextStepOpCodePos < 0)\n        break;\n              \n      stepOpCodePos = nextStepOpCodePos;\n    }\n\n    return true;\n  }\n  \n  public static boolean isOneStep(int analysis)\n  {\n    return (analysis & BITS_COUNT) == 0x00000001;\n  }\n\n  public static int getStepCount(int analysis)\n  {\n    return (analysis & BITS_COUNT);\n  }\n\n  /**\n   * First 8 bits are the number of top-level location steps.  Hopefully\n   *  there will never be more that 255 location steps!!!\n   */\n  public static final int BITS_COUNT = 0x000000FF;\n\n  /** 4 bits are reserved for future use. */\n  public static final int BITS_RESERVED = 0x00000F00;\n\n  /** Bit is on if the expression contains a top-level predicate. */\n  public static final int BIT_PREDICATE = (0x00001000);\n\n  /** Bit is on if any of the walkers contain an ancestor step. */\n  public static final int BIT_ANCESTOR = (0x00001000 << 1);\n\n  /** Bit is on if any of the walkers contain an ancestor-or-self step. */\n  public static final int BIT_ANCESTOR_OR_SELF = (0x00001000 << 2);\n\n  /** Bit is on if any of the walkers contain an attribute step. */\n  public static final int BIT_ATTRIBUTE = (0x00001000 << 3);\n\n  /** Bit is on if any of the walkers contain a child step. */\n  public static final int BIT_CHILD = (0x00001000 << 4);\n\n  /** Bit is on if any of the walkers contain a descendant step. */\n  public static final int BIT_DESCENDANT = (0x00001000 << 5);\n\n  /** Bit is on if any of the walkers contain a descendant-or-self step. */\n  public static final int BIT_DESCENDANT_OR_SELF = (0x00001000 << 6);\n\n  /** Bit is on if any of the walkers contain a following step. */\n  public static final int BIT_FOLLOWING = (0x00001000 << 7);\n\n  /** Bit is on if any of the walkers contain a following-sibiling step. */\n  public static final int BIT_FOLLOWING_SIBLING = (0x00001000 << 8);\n\n  /** Bit is on if any of the walkers contain a namespace step. */\n  public static final int BIT_NAMESPACE = (0x00001000 << 9);\n\n  /** Bit is on if any of the walkers contain a parent step. */\n  public static final int BIT_PARENT = (0x00001000 << 10);\n\n  /** Bit is on if any of the walkers contain a preceding step. */\n  public static final int BIT_PRECEDING = (0x00001000 << 11);\n\n  /** Bit is on if any of the walkers contain a preceding-sibling step. */\n  public static final int BIT_PRECEDING_SIBLING = (0x00001000 << 12);\n\n  /** Bit is on if any of the walkers contain a self step. */\n  public static final int BIT_SELF = (0x00001000 << 13);\n\n  /**\n   * Bit is on if any of the walkers contain a filter (i.e. id(), extension\n   *  function, etc.) step.\n   */\n  public static final int BIT_FILTER = (0x00001000 << 14);\n\n  /** Bit is on if any of the walkers contain a root step. */\n  public static final int BIT_ROOT = (0x00001000 << 15);\n\n  /**\n   * Bit is on if any of the walkers can go backwards in document\n   *  order from the context node.\n   */\n  public static final int BIT_BACKWARDS_SELF = (0x00001000 << 16);\n\n  public static final int BIT_ANY_DESCENDANT_FROM_ROOT = (0x00001000 << 17);\n\n  /**\n   * Bit is on if any of the walkers contain an node() test.  This is\n   *  really only useful if the count is 1.\n   */\n  public static final int BIT_NODETEST_ANY = (0x00001000 << 18);\n\n\n  /** Bit is on if the expression is a match pattern. */\n  public static final int BIT_MATCH_PATTERN = (0x00001000 << 19);", "functions": [{"function_name": "loadOneWalker", "code": "  static AxesWalker loadOneWalker(\n          WalkingIterator lpi, Compiler compiler, int stepOpCodePos)\n            throws javax.xml.transform.TransformerException\n  {\n\n    AxesWalker firstWalker = null;\n    int stepType = compiler.getOp(stepOpCodePos);\n\n    if (stepType != OpCodes.ENDOP)\n    {\n\n      firstWalker = createDefaultWalker(compiler, stepType, lpi, 0);\n\n      firstWalker.init(compiler, stepOpCodePos, stepType);\n    }\n\n    return firstWalker;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [2, 11], [2, 12], [12, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 2], [12, 2], [13, 12], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "loadWalkers", "code": "  static AxesWalker loadWalkers(\n          WalkingIterator lpi, Compiler compiler, int stepOpCodePos, int stepIndex)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int stepType;\n    AxesWalker firstWalker = null;\n    AxesWalker walker, prevWalker = null;\n\n    int analysis = analyze(compiler, stepOpCodePos, stepIndex);\n\n    while (OpCodes.ENDOP != (stepType = compiler.getOp(stepOpCodePos)))\n    {\n      walker = createDefaultWalker(compiler, stepOpCodePos, lpi, analysis);\n\n      walker.init(compiler, stepOpCodePos, stepType);\n      walker.exprSetParent(lpi);\n\n      if (null == firstWalker)\n      {\n        firstWalker = walker;\n      }\n      else\n      {\n        prevWalker.setNextWalker(walker);\n        walker.setPrevWalker(prevWalker);\n      }\n\n      prevWalker = walker;\n      stepOpCodePos = compiler.getNextStepPos(stepOpCodePos);\n\n      if (stepOpCodePos < 0)\n        break;\n    }\n\n    return firstWalker;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [2, 13], [11, 14], [3, 15], [4, 16], [5, 17], [12, 18], [12, 19], [2, 20], [2, 21], [13, 22], [2, 23], [2, 24], [2, 25], [14, 26], [19, 27], [20, 28], [22, 29], [25, 30], [13, 31], [13, 32], [13, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 2], [14, 11], [15, 3], [16, 4], [17, 5], [18, 12], [19, 12], [20, 2], [21, 2], [22, 13], [23, 2], [24, 2], [25, 2], [26, 14], [27, 19], [28, 20], [29, 22], [30, 25], [31, 13], [32, 13], [33, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "isSet", "code": "  public static boolean isSet(int analysis, int bits)\n  {\n    return (0 != (analysis & bits));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "diagnoseIterator", "code": "  public static void diagnoseIterator(String name, int analysis, Compiler compiler)\n  {\n    System.out.println(compiler.toString()+\", \"+name+\", \"\n                             + Integer.toBinaryString(analysis) + \", \"\n                             + getAnalysisString(analysis));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [5, 7], [7, 8], [7, 9], [9, 10], [9, 11], [11, 12], [11, 13], [13, 14], [14, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 5], [8, 7], [9, 7], [10, 9], [11, 9], [12, 11], [13, 11], [14, 13], [15, 14], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newDTMIterator", "code": "  public static DTMIterator newDTMIterator(\n          Compiler compiler, int opPos,\n          boolean isTopLevel)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int firstStepPos = compiler.getFirstChildPos(opPos);\n    int analysis = analyze(compiler, firstStepPos, 0);\n    boolean isOneStep = isOneStep(analysis);\n    DTMIterator iter;\n\n    if (isOneStep && walksSelfOnly(analysis) && \n        isWild(analysis) && !hasPredicate(analysis))\n    {\n      if (DEBUG_ITERATOR_CREATION)\n        diagnoseIterator(\"SelfIteratorNoPredicate\", analysis, compiler);\n\n      iter = new SelfIteratorNoPredicate(compiler, opPos, analysis);\n    }\n    else if (walksChildrenOnly(analysis) && isOneStep)\n    {\n\n      if (isWild(analysis) && !hasPredicate(analysis))\n      {\n        if (DEBUG_ITERATOR_CREATION)\n          diagnoseIterator(\"ChildIterator\", analysis, compiler);\n\n        iter = new ChildIterator(compiler, opPos, analysis);\n      }\n      else\n      {\n        if (DEBUG_ITERATOR_CREATION)\n          diagnoseIterator(\"ChildTestIterator\", analysis, compiler);\n\n        iter = new ChildTestIterator(compiler, opPos, analysis);\n      }\n    }\n    else if (isOneStep && walksAttributes(analysis))\n    {\n      if (DEBUG_ITERATOR_CREATION)\n        diagnoseIterator(\"AttributeIterator\", analysis, compiler);\n\n      iter = new AttributeIterator(compiler, opPos, analysis);\n    }\n    else if(isOneStep && !walksFilteredList(analysis))\n    {\n      if( !walksNamespaces(analysis) \n      && (walksInDocOrder(analysis) || isSet(analysis, BIT_PARENT)))\n      {\n        if (false || DEBUG_ITERATOR_CREATION)\n          diagnoseIterator(\"OneStepIteratorForward\", analysis, compiler);\n  \n        iter = new OneStepIteratorForward(compiler, opPos, analysis);\n      }\n      else\n      {\n        if (false || DEBUG_ITERATOR_CREATION)\n          diagnoseIterator(\"OneStepIterator\", analysis, compiler);\n  \n        iter = new OneStepIterator(compiler, opPos, analysis);\n      }\n    }\n\n    else if (isOptimizableForDescendantIterator(compiler, firstStepPos, 0)\n             )\n    {\n      if (DEBUG_ITERATOR_CREATION)\n        diagnoseIterator(\"DescendantIterator\", analysis, compiler);\n\n      iter = new DescendantIterator(compiler, opPos, analysis);\n    }\n    else\n    { \n      if(isNaturalDocOrder(compiler, firstStepPos, 0, analysis))\n      {\n        if (false || DEBUG_ITERATOR_CREATION)\n        {\n          diagnoseIterator(\"WalkingIterator\", analysis, compiler);\n        }\n  \n        iter = new WalkingIterator(compiler, opPos, analysis, true);\n      }\n      else\n      {\n        if (DEBUG_ITERATOR_CREATION)\n          diagnoseIterator(\"WalkingIteratorSorted\", analysis, compiler);\n\n        iter = new WalkingIteratorSorted(compiler, opPos, analysis, true);\n      }\n    }\n    if(iter instanceof LocPathIterator)\n      ((LocPathIterator)iter).setIsTopLevel(isTopLevel);\n      \n    return iter;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "IF", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "ASSIGN", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "IF", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [3, 13], [12, 14], [12, 15], [3, 16], [13, 17], [13, 18], [5, 19], [6, 20], [7, 21], [14, 22], [14, 23], [12, 24], [15, 25], [3, 26], [18, 27], [18, 28], [20, 29], [22, 30], [22, 31], [14, 32], [23, 33], [24, 34], [26, 35], [16, 36], [28, 37], [30, 38], [22, 39], [31, 40], [14, 41], [24, 42], [24, 43], [34, 44], [34, 45], [36, 46], [30, 47], [30, 48], [38, 49], [39, 50], [41, 51], [32, 52], [24, 53], [24, 54], [47, 55], [30, 56], [39, 57], [39, 58], [50, 59], [50, 60], [52, 61], [53, 62], [42, 63], [54, 64], [43, 65], [47, 66], [47, 67], [55, 68], [56, 69], [48, 70], [39, 71], [57, 72], [39, 73], [58, 74], [59, 75], [59, 76], [63, 77], [65, 78], [47, 79], [47, 80], [67, 81], [70, 82], [71, 83], [57, 84], [72, 85], [73, 86], [58, 87], [74, 88], [79, 89], [66, 90], [80, 91], [81, 92], [84, 93], [87, 94], [89, 95], [90, 96], [91, 97], [67, 98], [98, 99], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 3], [14, 12], [15, 12], [16, 3], [17, 13], [18, 13], [19, 5], [20, 6], [21, 7], [22, 14], [23, 14], [24, 12], [25, 15], [26, 3], [27, 18], [28, 18], [29, 20], [30, 22], [31, 22], [32, 14], [33, 23], [34, 24], [35, 26], [36, 16], [37, 28], [38, 30], [39, 22], [40, 31], [41, 14], [42, 24], [43, 24], [44, 34], [45, 34], [46, 36], [47, 30], [48, 30], [49, 38], [50, 39], [51, 41], [52, 32], [53, 24], [54, 24], [55, 47], [56, 30], [57, 39], [58, 39], [59, 50], [60, 50], [61, 52], [62, 53], [63, 42], [64, 54], [65, 43], [66, 47], [67, 47], [68, 55], [69, 56], [70, 48], [71, 39], [72, 57], [73, 39], [74, 58], [75, 59], [76, 59], [77, 63], [78, 65], [79, 47], [80, 47], [81, 67], [82, 70], [83, 71], [84, 57], [85, 72], [86, 73], [87, 58], [88, 74], [89, 79], [90, 66], [91, 80], [92, 81], [93, 84], [94, 87], [95, 89], [96, 90], [97, 91], [98, 67], [99, 98], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99]]}, {"function_name": "getAxisFromStep", "code": "  public static int getAxisFromStep(\n          Compiler compiler, int stepOpCodePos)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int stepType = compiler.getOp(stepOpCodePos);\n\n    switch (stepType)\n    {\n    case OpCodes.FROM_FOLLOWING :\n      return Axis.FOLLOWING;\n    case OpCodes.FROM_FOLLOWING_SIBLINGS :\n      return Axis.FOLLOWINGSIBLING;\n    case OpCodes.FROM_PRECEDING :\n      return Axis.PRECEDING;\n    case OpCodes.FROM_PRECEDING_SIBLINGS :\n      return Axis.PRECEDINGSIBLING;\n    case OpCodes.FROM_PARENT :\n      return Axis.PARENT;\n    case OpCodes.FROM_NAMESPACE :\n      return Axis.NAMESPACE;\n    case OpCodes.FROM_ANCESTORS :\n      return Axis.ANCESTOR;\n    case OpCodes.FROM_ANCESTORS_OR_SELF :\n      return Axis.ANCESTORORSELF;\n    case OpCodes.FROM_ATTRIBUTES :\n      return Axis.ATTRIBUTE;\n    case OpCodes.FROM_ROOT :\n      return Axis.ROOT;\n    case OpCodes.FROM_CHILDREN :\n      return Axis.CHILD;\n    case OpCodes.FROM_DESCENDANTS_OR_SELF :\n      return Axis.DESCENDANTORSELF;\n    case OpCodes.FROM_DESCENDANTS :\n      return Axis.DESCENDANT;\n    case OpCodes.FROM_SELF :\n      return Axis.SELF;\n    case OpCodes.OP_EXTFUNCTION :\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_GROUP :\n    case OpCodes.OP_VARIABLE :\n      return Axis.FILTEREDLIST;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [2, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getAnalysisBitFromAxes", "code": "    static public int getAnalysisBitFromAxes(int axis)\n    {\n        switch(axis){\n        case Axis.ANCESTOR :\n          return BIT_ANCESTOR;\n        case Axis.ANCESTORORSELF :\n          return BIT_ANCESTOR_OR_SELF;\n        case Axis.ATTRIBUTE :\n          return BIT_ATTRIBUTE;\n        case Axis.CHILD :\n          return BIT_CHILD;\n        case Axis.DESCENDANT :\n          return BIT_DESCENDANT;\n        case Axis.DESCENDANTORSELF :\n          return BIT_DESCENDANT_OR_SELF;\n        case Axis.FOLLOWING :\n          return BIT_FOLLOWING;\n        case Axis.FOLLOWINGSIBLING :\n          return BIT_FOLLOWING_SIBLING;\n        case Axis.NAMESPACE :\n        case Axis.NAMESPACEDECLS :\n          return BIT_NAMESPACE;\n        case Axis.PARENT :\n          return BIT_PARENT;\n        case Axis.PRECEDING :\n          return BIT_PRECEDING;\n        case Axis.PRECEDINGSIBLING :\n          return BIT_PRECEDING_SIBLING;\n        case Axis.SELF :\n          return BIT_SELF;\n        case Axis.ALLFROMNODE :\n          return BIT_DESCENDANT_OR_SELF;\n        case Axis.DESCENDANTSFROMROOT :\n        case Axis.ALL :\n        case Axis.DESCENDANTSORSELFFROMROOT :\n          return BIT_ANY_DESCENDANT_FROM_ROOT;\n        case Axis.ROOT :\n          return BIT_ROOT;\n        case Axis.FILTEREDLIST :\n          return BIT_FILTER;\n        default :\n          return BIT_FILTER;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "functionProximateOrContainsProximate", "code": "  static boolean functionProximateOrContainsProximate(Compiler compiler, \n                                                      int opPos)\n  {\n    int endFunc = opPos + compiler.getOp(opPos + 1) - 1;\n    opPos = compiler.getFirstChildPos(opPos);\n    int funcID = compiler.getOp(opPos);\n    switch(funcID)\n    {\n      case FunctionTable.FUNC_LAST:\n      case FunctionTable.FUNC_POSITION:\n        return true;\n      default:\n        opPos++;\n        int i = 0;\n        for (int p = opPos; p < endFunc; p = compiler.getNextOpPos(p), i++)\n        {\n          int innerExprOpPos = p+2;\n          int argOp = compiler.getOp(innerExprOpPos);\n          boolean prox = isProximateInnerExpr(compiler, innerExprOpPos);\n          if(prox)\n            return true;\n        }\n\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "LOOP", "VAR_DECL", "RETURN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [2, 10], [2, 11], [3, 12], [8, 13], [4, 14], [9, 15], [9, 16], [11, 17], [14, 18], [14, 19], [9, 20], [9, 21], [9, 22], [9, 23], [15, 24], [10, 25], [19, 26], [20, 27], [26, 28], [27, 29], [21, 30], [22, 31], [23, 32], [28, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 2], [11, 2], [12, 3], [13, 8], [14, 4], [15, 9], [16, 9], [17, 11], [18, 14], [19, 14], [20, 9], [21, 9], [22, 9], [23, 9], [24, 15], [25, 10], [26, 19], [27, 20], [28, 26], [29, 27], [30, 21], [31, 22], [32, 23], [33, 28], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "isProximateInnerExpr", "code": "  static boolean isProximateInnerExpr(Compiler compiler, int opPos)\n  {\n    int op = compiler.getOp(opPos);\n    int innerExprOpPos = opPos+2;\n    switch(op)\n    {\n      case OpCodes.OP_ARGUMENT:\n        if(isProximateInnerExpr(compiler, innerExprOpPos))\n          return true;\n        break;\n      case OpCodes.OP_VARIABLE:\n      case OpCodes.OP_NUMBERLIT:\n      case OpCodes.OP_LITERAL:\n      case OpCodes.OP_LOCATIONPATH:\n      case OpCodes.OP_FUNCTION:\n        boolean isProx = functionProximateOrContainsProximate(compiler, opPos);\n        if(isProx)\n          return true;\n        break;\n      case OpCodes.OP_GT:\n      case OpCodes.OP_GTE:\n      case OpCodes.OP_LT:\n      case OpCodes.OP_LTE:\n      case OpCodes.OP_EQUALS:\n        int leftPos = compiler.getFirstChildPos(op);\n        int rightPos = compiler.getNextOpPos(leftPos);\n        isProx = isProximateInnerExpr(compiler, leftPos);\n        if(isProx)\n          return true;\n        isProx = isProximateInnerExpr(compiler, rightPos);\n        if(isProx)\n          return true;\n        break;\n      default:\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "VAR_DECL", "VAR_DECL", "BREAK_CONTINUE", "IF", "VAR_DECL", "BREAK_CONTINUE", "IF", "BINARY_OP", "CALL", "RETURN", "ASSIGN", "RETURN", "ASSIGN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [3, 18], [4, 19], [9, 20], [2, 21], [10, 22], [2, 23], [14, 24], [17, 25], [17, 26], [18, 27], [20, 28], [21, 29], [22, 30], [23, 31], [11, 32], [12, 33], [24, 34], [15, 35], [25, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 3], [19, 4], [20, 9], [21, 2], [22, 10], [23, 2], [24, 14], [25, 17], [26, 17], [27, 18], [28, 20], [29, 21], [30, 22], [31, 23], [32, 11], [33, 12], [34, 24], [35, 15], [36, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "mightBeProximate", "code": "  public static boolean mightBeProximate(Compiler compiler, int opPos, int stepType)\n          throws javax.xml.transform.TransformerException\n  {\n\n    boolean mightBeProximate = false;\n    int argLen;\n\n    switch (stepType)\n    {\n    case OpCodes.OP_VARIABLE :\n    case OpCodes.OP_EXTFUNCTION :\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_GROUP :\n      argLen = compiler.getArgLength(opPos);\n      break;\n    default :\n      argLen = compiler.getArgLengthOfStep(opPos);\n    }\n\n    int predPos = compiler.getFirstPredicateOpPos(opPos);\n    int count = 0;\n\n    while (OpCodes.OP_PREDICATE == compiler.getOp(predPos))\n    {\n      count++;\n      \n      int innerExprOpPos = predPos+2;\n      int predOp = compiler.getOp(innerExprOpPos);\n\n      switch(predOp)\n      {\n        case OpCodes.OP_VARIABLE:\n        case OpCodes.OP_LOCATIONPATH:\n          break;\n        case OpCodes.OP_NUMBER:\n        case OpCodes.OP_NUMBERLIT:\n        case OpCodes.OP_FUNCTION:\n          boolean isProx \n            = functionProximateOrContainsProximate(compiler, innerExprOpPos);\n          if(isProx)\n            return true;\n          break;\n        case OpCodes.OP_GT:\n        case OpCodes.OP_GTE:\n        case OpCodes.OP_LT:\n        case OpCodes.OP_LTE:\n        case OpCodes.OP_EQUALS:\n          int leftPos = compiler.getFirstChildPos(innerExprOpPos);\n          int rightPos = compiler.getNextOpPos(leftPos);\n          isProx = isProximateInnerExpr(compiler, leftPos);\n          if(isProx)\n            return true;\n          isProx = isProximateInnerExpr(compiler, rightPos);\n          if(isProx)\n            return true;\n          break;\n        default:\n      }\n\n      predPos = compiler.getNextOpPos(predPos);\n    }\n\n    return mightBeProximate;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "SWITCH", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BREAK_CONTINUE", "IF", "IF", "VAR_DECL", "VAR_DECL", "BREAK_CONTINUE", "IF", "VAR_DECL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "ASSIGN", "RETURN", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [2, 13], [2, 14], [11, 15], [3, 16], [4, 17], [5, 18], [7, 19], [2, 20], [5, 21], [5, 22], [20, 23], [12, 24], [12, 25], [12, 26], [12, 27], [12, 28], [12, 29], [12, 30], [12, 31], [12, 32], [13, 33], [14, 34], [21, 35], [22, 36], [25, 37], [12, 38], [26, 39], [12, 40], [30, 41], [34, 42], [37, 43], [38, 44], [39, 45], [40, 46], [27, 47], [28, 48], [41, 49], [31, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 2], [14, 2], [15, 11], [16, 3], [17, 4], [18, 5], [19, 7], [20, 2], [21, 5], [22, 5], [23, 20], [24, 12], [25, 12], [26, 12], [27, 12], [28, 12], [29, 12], [30, 12], [31, 12], [32, 12], [33, 13], [34, 14], [35, 21], [36, 22], [37, 25], [38, 12], [39, 26], [40, 12], [41, 30], [42, 34], [43, 37], [44, 38], [45, 39], [46, 40], [47, 27], [48, 28], [49, 41], [50, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "isOptimizableForDescendantIterator", "code": "  private static boolean isOptimizableForDescendantIterator(\n          Compiler compiler, int stepOpCodePos, int stepIndex)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int stepType;\n    int stepCount = 0;\n    boolean foundDorDS = false;\n    boolean foundSelf = false;\n    boolean foundDS = false;\n    \n    int nodeTestType = OpCodes.NODETYPE_NODE;\n    \n    while (OpCodes.ENDOP != (stepType = compiler.getOp(stepOpCodePos)))\n    {\n      if(nodeTestType != OpCodes.NODETYPE_NODE && nodeTestType != OpCodes.NODETYPE_ROOT)\n        return false;\n        \n      stepCount++;\n      if(stepCount > 3)\n        return false;\n        \n      boolean mightBeProximate = mightBeProximate(compiler, stepOpCodePos, stepType);\n      if(mightBeProximate)\n        return false;\n\n      switch (stepType)\n      {\n      case OpCodes.FROM_FOLLOWING :\n      case OpCodes.FROM_FOLLOWING_SIBLINGS :\n      case OpCodes.FROM_PRECEDING :\n      case OpCodes.FROM_PRECEDING_SIBLINGS :\n      case OpCodes.FROM_PARENT :\n      case OpCodes.OP_VARIABLE :\n      case OpCodes.OP_EXTFUNCTION :\n      case OpCodes.OP_FUNCTION :\n      case OpCodes.OP_GROUP :\n      case OpCodes.FROM_NAMESPACE :\n      case OpCodes.FROM_ANCESTORS :\n      case OpCodes.FROM_ANCESTORS_OR_SELF :\n      case OpCodes.FROM_ATTRIBUTES :\n      case OpCodes.MATCH_ATTRIBUTE :\n      case OpCodes.MATCH_ANY_ANCESTOR :\n      case OpCodes.MATCH_IMMEDIATE_ANCESTOR :\n        return false;\n      case OpCodes.FROM_ROOT :\n        if(1 != stepCount)\n          return false;\n        break;\n      case OpCodes.FROM_CHILDREN :\n        if(!foundDS && !(foundDorDS && foundSelf))\n          return false;\n        break;\n      case OpCodes.FROM_DESCENDANTS_OR_SELF :\n        foundDS = true;\n      case OpCodes.FROM_DESCENDANTS :\n        if(3 == stepCount)\n          return false;\n        foundDorDS = true;\n        break;\n      case OpCodes.FROM_SELF :\n        if(1 != stepCount)\n          return false;\n        foundSelf = true;\n        break;\n      default :\n      }\n      \n      nodeTestType = compiler.getStepTestType(stepOpCodePos);\n\n      int nextStepOpCodePos = compiler.getNextStepPos(stepOpCodePos);\n\n      if (nextStepOpCodePos < 0)\n        break;\n        \n      if(OpCodes.ENDOP != compiler.getOp(nextStepOpCodePos))\n      {\n        if(compiler.countPredicates(stepOpCodePos) > 0)\n        {\n          return false;\n        }\n      }\n      \n      stepOpCodePos = nextStepOpCodePos;\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "VAR_DECL", "SWITCH", "IF", "VAR_DECL", "IF", "IF", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [13, 22], [4, 23], [5, 24], [6, 25], [7, 26], [2, 27], [14, 28], [15, 29], [15, 30], [2, 31], [18, 32], [20, 33], [20, 34], [21, 35], [21, 36], [22, 37], [14, 38], [28, 39], [30, 40], [16, 41], [31, 42], [17, 43], [17, 44], [17, 45], [17, 46], [17, 47], [17, 48], [17, 49], [17, 50], [17, 51], [32, 52], [19, 53], [33, 54], [34, 55], [35, 56], [36, 57], [36, 58], [38, 59], [17, 60], [44, 61], [44, 62], [17, 63], [46, 64], [46, 65], [17, 66], [48, 67], [48, 68], [50, 69], [50, 70], [51, 71], [38, 72], [59, 73], [59, 74], [60, 75], [61, 76], [62, 77], [63, 78], [64, 79], [65, 80], [66, 81], [67, 82], [68, 83], [69, 84], [70, 85], [72, 86], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 13], [23, 4], [24, 5], [25, 6], [26, 7], [27, 2], [28, 14], [29, 15], [30, 15], [31, 2], [32, 18], [33, 20], [34, 20], [35, 21], [36, 21], [37, 22], [38, 14], [39, 28], [40, 30], [41, 16], [42, 31], [43, 17], [44, 17], [45, 17], [46, 17], [47, 17], [48, 17], [49, 17], [50, 17], [51, 17], [52, 32], [53, 19], [54, 33], [55, 34], [56, 35], [57, 36], [58, 36], [59, 38], [60, 17], [61, 44], [62, 44], [63, 17], [64, 46], [65, 46], [66, 17], [67, 48], [68, 48], [69, 50], [70, 50], [71, 51], [72, 38], [73, 59], [74, 59], [75, 60], [76, 61], [77, 62], [78, 63], [79, 64], [80, 65], [81, 66], [82, 67], [83, 68], [84, 69], [85, 70], [86, 72], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "analyze", "code": "  private static int analyze(\n          Compiler compiler, int stepOpCodePos, int stepIndex)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int stepType;\n    int stepCount = 0;\n\n    while (OpCodes.ENDOP != (stepType = compiler.getOp(stepOpCodePos)))\n    {\n      stepCount++;\n\n      boolean predAnalysis = analyzePredicate(compiler, stepOpCodePos,\n                                              stepType);\n\n      if (predAnalysis)\n        analysisResult |= BIT_PREDICATE;\n\n      switch (stepType)\n      {\n      case OpCodes.OP_VARIABLE :\n      case OpCodes.OP_EXTFUNCTION :\n      case OpCodes.OP_FUNCTION :\n      case OpCodes.OP_GROUP :\n        analysisResult |= BIT_FILTER;\n        break;\n      case OpCodes.FROM_ROOT :\n        analysisResult |= BIT_ROOT;\n        break;\n      case OpCodes.FROM_ANCESTORS :\n        analysisResult |= BIT_ANCESTOR;\n        break;\n      case OpCodes.FROM_ANCESTORS_OR_SELF :\n        analysisResult |= BIT_ANCESTOR_OR_SELF;\n        break;\n      case OpCodes.FROM_ATTRIBUTES :\n        analysisResult |= BIT_ATTRIBUTE;\n        break;\n      case OpCodes.FROM_NAMESPACE :\n        analysisResult |= BIT_NAMESPACE;\n        break;\n      case OpCodes.FROM_CHILDREN :\n        analysisResult |= BIT_CHILD;\n        break;\n      case OpCodes.FROM_DESCENDANTS :\n        analysisResult |= BIT_DESCENDANT;\n        break;\n      case OpCodes.FROM_DESCENDANTS_OR_SELF :\n\n        if (2 == stepCount && BIT_ROOT == analysisResult)\n        {\n          analysisResult |= BIT_ANY_DESCENDANT_FROM_ROOT;\n        }\n\n        analysisResult |= BIT_DESCENDANT_OR_SELF;\n        break;\n      case OpCodes.FROM_FOLLOWING :\n        analysisResult |= BIT_FOLLOWING;\n        break;\n      case OpCodes.FROM_FOLLOWING_SIBLINGS :\n        analysisResult |= BIT_FOLLOWING_SIBLING;\n        break;\n      case OpCodes.FROM_PRECEDING :\n        analysisResult |= BIT_PRECEDING;\n        break;\n      case OpCodes.FROM_PRECEDING_SIBLINGS :\n        analysisResult |= BIT_PRECEDING_SIBLING;\n        break;\n      case OpCodes.FROM_PARENT :\n        analysisResult |= BIT_PARENT;\n        break;\n      case OpCodes.FROM_SELF :\n        analysisResult |= BIT_SELF;\n        break;\n      case OpCodes.MATCH_ATTRIBUTE :\n        analysisResult |= (BIT_MATCH_PATTERN | BIT_ATTRIBUTE);\n        break;\n      case OpCodes.MATCH_ANY_ANCESTOR :\n        analysisResult |= (BIT_MATCH_PATTERN | BIT_ANCESTOR);\n        break;\n      case OpCodes.MATCH_IMMEDIATE_ANCESTOR :\n        analysisResult |= (BIT_MATCH_PATTERN | BIT_PARENT);\n        break;\n      default :\n      }\n\n      {\n        analysisResult |= BIT_NODETEST_ANY;\n      }\n\n      stepOpCodePos = compiler.getNextStepPos(stepOpCodePos);\n\n      if (stepOpCodePos < 0)\n        break;\n    }\n\n    analysisResult |= (stepCount & BITS_COUNT);\n\n    return analysisResult;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "SWITCH", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [8, 10], [2, 11], [2, 12], [2, 13], [2, 14], [9, 15], [3, 16], [11, 17], [11, 18], [2, 19], [15, 20], [18, 21], [19, 22], [2, 23], [12, 24], [12, 25], [12, 26], [12, 27], [12, 28], [12, 29], [12, 30], [12, 31], [12, 32], [12, 33], [12, 34], [12, 35], [12, 36], [12, 37], [12, 38], [12, 39], [12, 40], [12, 41], [12, 42], [13, 43], [14, 44], [12, 45], [12, 46], [12, 47], [12, 48], [12, 49], [12, 50], [12, 51], [12, 52], [12, 53], [12, 54], [34, 55], [12, 56], [12, 57], [12, 58], [12, 59], [12, 60], [12, 61], [12, 62], [12, 63], [45, 64], [46, 65], [47, 66], [55, 67], [55, 68], [34, 69], [68, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 8], [11, 2], [12, 2], [13, 2], [14, 2], [15, 9], [16, 3], [17, 11], [18, 11], [19, 2], [20, 15], [21, 18], [22, 19], [23, 2], [24, 12], [25, 12], [26, 12], [27, 12], [28, 12], [29, 12], [30, 12], [31, 12], [32, 12], [33, 12], [34, 12], [35, 12], [36, 12], [37, 12], [38, 12], [39, 12], [40, 12], [41, 12], [42, 12], [43, 13], [44, 14], [45, 12], [46, 12], [47, 12], [48, 12], [49, 12], [50, 12], [51, 12], [52, 12], [53, 12], [54, 12], [55, 34], [56, 12], [57, 12], [58, 12], [59, 12], [60, 12], [61, 12], [62, 12], [63, 12], [64, 45], [65, 46], [66, 47], [67, 55], [68, 55], [69, 34], [70, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "isDownwardAxisOfMany", "code": "  public static boolean isDownwardAxisOfMany(int axis)\n  {\n    return ((Axis.DESCENDANTORSELF == axis) ||\n          (Axis.DESCENDANT == axis) \n          || (Axis.FOLLOWING == axis) \n          || (Axis.PRECEDING == axis) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "loadSteps", "code": "  static StepPattern loadSteps(\n          MatchPatternIterator mpi, Compiler compiler, int stepOpCodePos, \n                                                       int stepIndex)\n            throws javax.xml.transform.TransformerException\n  {\n    if (DEBUG_PATTERN_CREATION)\n    {\n      System.out.println(\"================\");\n      System.out.println(\"loadSteps for: \"+compiler.getPatternString());\n    }\n    int stepType;\n    StepPattern step = null;\n    StepPattern firstStep = null, prevStep = null;\n    int analysis = analyze(compiler, stepOpCodePos, stepIndex);\n\n    while (OpCodes.ENDOP != (stepType = compiler.getOp(stepOpCodePos)))\n    {\n      step = createDefaultStepPattern(compiler, stepOpCodePos, mpi, analysis,\n                                      firstStep, prevStep);\n\n      if (null == firstStep)\n      {\n        firstStep = step;\n      }\n      else\n      {\n\n        step.setRelativePathPattern(prevStep);\n      }\n\n      prevStep = step;\n      stepOpCodePos = compiler.getNextStepPos(stepOpCodePos);\n\n      if (stepOpCodePos < 0)\n        break;\n    }\n    \n    int axis = Axis.SELF;\n    int paxis = Axis.SELF;\n    StepPattern tail = step;\n    for (StepPattern pat = step; null != pat; \n         pat = pat.getRelativePathPattern()) \n    {\n      int nextAxis = pat.getAxis();\n      pat.setAxis(axis);\n      \n      \n      int whatToShow = pat.getWhatToShow();\n      if(whatToShow == DTMFilter.SHOW_ATTRIBUTE || \n         whatToShow == DTMFilter.SHOW_NAMESPACE)\n      {\n        int newAxis = (whatToShow == DTMFilter.SHOW_ATTRIBUTE) ? \n                       Axis.ATTRIBUTE : Axis.NAMESPACE;\n        if(isDownwardAxisOfMany(axis))\n        {\n          StepPattern attrPat = new StepPattern(whatToShow, \n                                    pat.getNamespace(),\n                                    pat.getLocalName());\n          XNumber score = pat.getStaticScore();\n          pat.setNamespace(null);\n          pat.setLocalName(NodeTest.WILD);\n          attrPat.setPredicates(pat.getPredicates());\n          pat.setPredicates(null);\n          pat.setWhatToShow(DTMFilter.SHOW_ELEMENT);\n          StepPattern rel = pat.getRelativePathPattern();\n          pat.setRelativePathPattern(attrPat);\n          attrPat.setRelativePathPattern(rel);\n          attrPat.setStaticScore(score);\n          \n          if(Axis.PRECEDING == pat.getAxis())\n            pat.setAxis(Axis.PRECEDINGANDANCESTOR);\n            \n          else if(Axis.DESCENDANT == pat.getAxis())\n            pat.setAxis(Axis.DESCENDANTORSELF);\n          \n          pat = attrPat;\n        }\n        else if(Axis.CHILD == pat.getAxis())\n        {\n          pat.setAxis(Axis.ATTRIBUTE);\n        }\n      }\n      axis = nextAxis;\n      tail = pat;\n    }\n    \n    if(axis < Axis.ALL)\n    {\n      StepPattern selfPattern = new ContextMatchStepPattern(axis, paxis);\n      XNumber score = tail.getStaticScore();\n      tail.setRelativePathPattern(selfPattern);\n      tail.setStaticScore(score);\n      selfPattern.setStaticScore(score);\n    }        \n\n    if (DEBUG_PATTERN_CREATION)\n    {\n      System.out.println(\"Done loading steps: \"+step.toString());\n            \n      System.out.println(\"\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "COND_EXPR", "CALL", "ASSIGN", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [2, 17], [3, 18], [3, 19], [7, 20], [2, 21], [2, 22], [3, 23], [3, 24], [3, 25], [18, 26], [19, 27], [7, 28], [7, 29], [20, 30], [8, 31], [9, 32], [9, 33], [10, 34], [1, 35], [1, 36], [2, 37], [2, 38], [2, 39], [3, 40], [3, 41], [23, 42], [3, 43], [28, 44], [28, 45], [7, 46], [7, 47], [29, 48], [7, 49], [30, 50], [12, 51], [12, 52], [35, 53], [36, 54], [21, 55], [22, 56], [23, 57], [23, 58], [42, 59], [42, 60], [24, 61], [25, 62], [45, 63], [46, 64], [48, 65], [49, 66], [51, 67], [52, 68], [54, 69], [54, 70], [57, 71], [57, 72], [29, 73], [29, 74], [67, 75], [67, 76], [71, 77], [57, 78], [57, 79], [57, 80], [57, 81], [58, 82], [77, 83], [57, 84], [78, 85], [78, 86], [57, 87], [57, 88], [57, 89], [57, 90], [57, 91], [57, 92], [57, 93], [57, 94], [82, 95], [71, 96], [85, 97], [78, 98], [86, 99], [79, 100], [91, 101], [92, 102], [94, 103], [80, 104], [81, 105], [85, 106], [97, 107], [105, 108], [105, 109], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 2], [18, 3], [19, 3], [20, 7], [21, 2], [22, 2], [23, 3], [24, 3], [25, 3], [26, 18], [27, 19], [28, 7], [29, 7], [30, 20], [31, 8], [32, 9], [33, 9], [34, 10], [35, 1], [36, 1], [37, 2], [38, 2], [39, 2], [40, 3], [41, 3], [42, 23], [43, 3], [44, 28], [45, 28], [46, 7], [47, 7], [48, 29], [49, 7], [50, 30], [51, 12], [52, 12], [53, 35], [54, 36], [55, 21], [56, 22], [57, 23], [58, 23], [59, 42], [60, 42], [61, 24], [62, 25], [63, 45], [64, 46], [65, 48], [66, 49], [67, 51], [68, 52], [69, 54], [70, 54], [71, 57], [72, 57], [73, 29], [74, 29], [75, 67], [76, 67], [77, 71], [78, 57], [79, 57], [80, 57], [81, 57], [82, 58], [83, 77], [84, 57], [85, 78], [86, 78], [87, 57], [88, 57], [89, 57], [90, 57], [91, 57], [92, 57], [93, 57], [94, 57], [95, 82], [96, 71], [97, 85], [98, 78], [99, 86], [100, 79], [101, 91], [102, 92], [103, 94], [104, 80], [105, 81], [106, 85], [107, 97], [108, 105], [109, 105], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109]]}, {"function_name": "createDefaultStepPattern", "code": "  private static StepPattern createDefaultStepPattern(\n          Compiler compiler, int opPos, MatchPatternIterator mpi, \n          int analysis, StepPattern tail, StepPattern head)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int stepType = compiler.getOp(opPos);\n    boolean simpleInit = false;\n    int totalNumberWalkers = (analysis & BITS_COUNT);\n    boolean prevIsOneStepDown = true;\n    int firstStepPos = compiler.getFirstChildPos(opPos);\n    \n    int whatToShow = compiler.getWhatToShow(opPos);\n    StepPattern ai = null;\n    int axis, predicateAxis;\n    \n    switch (stepType)\n    {\n    case OpCodes.OP_VARIABLE :\n    case OpCodes.OP_EXTFUNCTION :\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_GROUP :\n      prevIsOneStepDown = false;\n\n      Expression expr;\n\n      switch (stepType)\n      {\n      case OpCodes.OP_VARIABLE :\n      case OpCodes.OP_EXTFUNCTION :\n      case OpCodes.OP_FUNCTION :\n      case OpCodes.OP_GROUP :\n        expr = compiler.compile(opPos);\n        break;\n      default :\n        expr = compiler.compile(opPos + 2);\n      }\n\n      axis = Axis.FILTEREDLIST;\n      predicateAxis = Axis.FILTEREDLIST;\n      ai = new FunctionPattern(expr, axis, predicateAxis);\n      simpleInit = true;\n      break;\n    case OpCodes.FROM_ROOT :\n      whatToShow = DTMFilter.SHOW_DOCUMENT\n                   | DTMFilter.SHOW_DOCUMENT_FRAGMENT;\n\n      axis = Axis.ROOT;\n      predicateAxis = Axis.ROOT;\n      ai = new StepPattern(DTMFilter.SHOW_DOCUMENT | \n                                DTMFilter.SHOW_DOCUMENT_FRAGMENT,\n                                axis, predicateAxis);\n      break;\n    case OpCodes.FROM_ATTRIBUTES :\n      whatToShow = DTMFilter.SHOW_ATTRIBUTE;\n      axis = Axis.PARENT;\n      predicateAxis = Axis.ATTRIBUTE;\n      break;\n    case OpCodes.FROM_NAMESPACE :\n      whatToShow = DTMFilter.SHOW_NAMESPACE;\n      axis = Axis.PARENT;\n      predicateAxis = Axis.NAMESPACE;\n      break;\n    case OpCodes.FROM_ANCESTORS :\n      axis = Axis.DESCENDANT;\n      predicateAxis = Axis.ANCESTOR;\n      break;\n    case OpCodes.FROM_CHILDREN :\n      axis = Axis.PARENT;\n      predicateAxis = Axis.CHILD;\n      break;\n    case OpCodes.FROM_ANCESTORS_OR_SELF :\n      axis = Axis.DESCENDANTORSELF;\n      predicateAxis = Axis.ANCESTORORSELF;\n      break;\n    case OpCodes.FROM_SELF :\n      axis = Axis.SELF;\n      predicateAxis = Axis.SELF;\n      break;\n    case OpCodes.FROM_PARENT :\n      axis = Axis.CHILD;\n      predicateAxis = Axis.PARENT;\n      break;\n    case OpCodes.FROM_PRECEDING_SIBLINGS :\n      axis = Axis.FOLLOWINGSIBLING;\n      predicateAxis = Axis.PRECEDINGSIBLING;\n      break;\n    case OpCodes.FROM_PRECEDING :\n      axis = Axis.FOLLOWING;\n      predicateAxis = Axis.PRECEDING;\n      break;\n    case OpCodes.FROM_FOLLOWING_SIBLINGS :\n      axis = Axis.PRECEDINGSIBLING;\n      predicateAxis = Axis.FOLLOWINGSIBLING;\n      break;\n    case OpCodes.FROM_FOLLOWING :\n      axis = Axis.PRECEDING;\n      predicateAxis = Axis.FOLLOWING;\n      break;\n    case OpCodes.FROM_DESCENDANTS_OR_SELF :\n      axis = Axis.ANCESTORORSELF;\n      predicateAxis = Axis.DESCENDANTORSELF;\n      break;\n    case OpCodes.FROM_DESCENDANTS :\n      axis = Axis.ANCESTOR;\n      predicateAxis = Axis.DESCENDANT;\n      break;\n    default :\n    }\n    if(null == ai)\n    {\n      ai = new StepPattern(whatToShow, compiler.getStepNS(opPos),\n                                compiler.getStepLocalName(opPos),\n                                axis, predicateAxis);\n    }\n   \n    if (false || DEBUG_PATTERN_CREATION)\n    {\n      System.out.print(\"new step: \"+ ai);\n      System.out.print(\", axis: \" + Axis.names[ai.getAxis()]);\n      System.out.print(\", predAxis: \" + Axis.names[ai.getAxis()]);\n      System.out.print(\", what: \");\n      System.out.print(\"    \");\n      ai.debugWhatToShow(ai.getWhatToShow());\n    }\n\n    int argLen = compiler.getFirstPredicateOpPos(opPos);\n\n    ai.setPredicates(compiler.getCompiledPredicates(argLen));\n\n    return ai;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "SWITCH", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [3, 21], [4, 22], [20, 23], [2, 24], [21, 25], [22, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 39], [5, 40], [5, 41], [5, 42], [5, 43], [7, 44], [8, 45], [9, 46], [10, 47], [11, 48], [12, 49], [13, 50], [3, 51], [3, 52], [3, 53], [3, 54], [3, 55], [3, 56], [4, 57], [5, 58], [5, 59], [5, 60], [5, 61], [5, 62], [5, 63], [5, 64], [5, 65], [5, 66], [5, 67], [5, 68], [5, 69], [5, 70], [5, 71], [5, 72], [5, 73], [5, 74], [5, 75], [5, 76], [5, 77], [5, 78], [5, 79], [5, 80], [5, 81], [5, 82], [5, 83], [5, 84], [5, 85], [5, 86], [5, 87], [5, 88], [5, 89], [5, 90], [5, 91], [5, 92], [5, 93], [5, 94], [51, 95], [52, 96], [53, 97], [54, 98], [55, 99], [56, 100], [57, 101], [86, 102], [89, 103], [90, 104], [91, 105], [42, 106], [94, 107], [98, 108], [99, 109], [100, 110], [101, 111], [101, 112], [102, 113], [42, 114], [42, 115], [114, 116], [115, 117], [98, 118], [99, 119], [116, 120], [120, 121], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 3], [22, 4], [23, 20], [24, 2], [25, 21], [26, 22], [27, 5], [28, 5], [29, 5], [30, 5], [31, 5], [32, 5], [33, 5], [34, 5], [35, 5], [36, 5], [37, 5], [38, 5], [39, 5], [40, 5], [41, 5], [42, 5], [43, 5], [44, 7], [45, 8], [46, 9], [47, 10], [48, 11], [49, 12], [50, 13], [51, 3], [52, 3], [53, 3], [54, 3], [55, 3], [56, 3], [57, 4], [58, 5], [59, 5], [60, 5], [61, 5], [62, 5], [63, 5], [64, 5], [65, 5], [66, 5], [67, 5], [68, 5], [69, 5], [70, 5], [71, 5], [72, 5], [73, 5], [74, 5], [75, 5], [76, 5], [77, 5], [78, 5], [79, 5], [80, 5], [81, 5], [82, 5], [83, 5], [84, 5], [85, 5], [86, 5], [87, 5], [88, 5], [89, 5], [90, 5], [91, 5], [92, 5], [93, 5], [94, 5], [95, 51], [96, 52], [97, 53], [98, 54], [99, 55], [100, 56], [101, 57], [102, 86], [103, 89], [104, 90], [105, 91], [106, 42], [107, 94], [108, 98], [109, 99], [110, 100], [111, 101], [112, 101], [113, 102], [114, 42], [115, 42], [116, 114], [117, 115], [118, 98], [119, 99], [120, 116], [121, 120], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121]]}, {"function_name": "analyzePredicate", "code": "  static boolean analyzePredicate(Compiler compiler, int opPos, int stepType)\n          throws javax.xml.transform.TransformerException\n  {\n\n    int argLen;\n\n    switch (stepType)\n    {\n    case OpCodes.OP_VARIABLE :\n    case OpCodes.OP_EXTFUNCTION :\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_GROUP :\n      argLen = compiler.getArgLength(opPos);\n      break;\n    default :\n      argLen = compiler.getArgLengthOfStep(opPos);\n    }\n\n    int pos = compiler.getFirstPredicateOpPos(opPos);\n    int nPredicates = compiler.countPredicates(pos);\n\n    return (nPredicates > 0) ? true : false;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [9, 10], [9, 11], [9, 12], [2, 13], [3, 14], [4, 15], [12, 16], [4, 17], [4, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 9], [11, 9], [12, 9], [13, 2], [14, 3], [15, 4], [16, 12], [17, 4], [18, 4], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "createDefaultWalker", "code": "  private static AxesWalker createDefaultWalker(Compiler compiler, int opPos,\n          WalkingIterator lpi, int analysis)\n  {\n\n    AxesWalker ai = null;\n    int stepType = compiler.getOp(opPos);\n\n    /*\n    System.out.println(\"0: \"+compiler.getOp(opPos));\n    System.out.println(\"1: \"+compiler.getOp(opPos+1));\n    System.out.println(\"2: \"+compiler.getOp(opPos+2));\n    System.out.println(\"3: \"+compiler.getOp(opPos+3));\n    System.out.println(\"4: \"+compiler.getOp(opPos+4));\n    System.out.println(\"5: \"+compiler.getOp(opPos+5));\n    */\n    boolean simpleInit = false;\n    int totalNumberWalkers = (analysis & BITS_COUNT);\n    boolean prevIsOneStepDown = true;\n\n    switch (stepType)\n    {\n    case OpCodes.OP_VARIABLE :\n    case OpCodes.OP_EXTFUNCTION :\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_GROUP :\n      prevIsOneStepDown = false;\n\n      if (DEBUG_WALKER_CREATION)\n        System.out.println(\"new walker:  FilterExprWalker: \" + analysis\n                           + \", \" + compiler.toString());\n\n      ai = new FilterExprWalker(lpi);\n      simpleInit = true;\n      break;\n    case OpCodes.FROM_ROOT :\n      ai = new AxesWalker(lpi, Axis.ROOT);\n      break;\n    case OpCodes.FROM_ANCESTORS :\n      prevIsOneStepDown = false;\n      ai = new ReverseAxesWalker(lpi, Axis.ANCESTOR);\n      break;\n    case OpCodes.FROM_ANCESTORS_OR_SELF :\n      prevIsOneStepDown = false;\n      ai = new ReverseAxesWalker(lpi, Axis.ANCESTORORSELF);\n      break;\n    case OpCodes.FROM_ATTRIBUTES :\n      ai = new AxesWalker(lpi, Axis.ATTRIBUTE);\n      break;\n    case OpCodes.FROM_NAMESPACE :\n      ai = new AxesWalker(lpi, Axis.NAMESPACE);\n      break;\n    case OpCodes.FROM_CHILDREN :\n      ai = new AxesWalker(lpi, Axis.CHILD);\n      break;\n    case OpCodes.FROM_DESCENDANTS :\n      prevIsOneStepDown = false;\n      ai = new AxesWalker(lpi, Axis.DESCENDANT);\n      break;\n    case OpCodes.FROM_DESCENDANTS_OR_SELF :\n      prevIsOneStepDown = false;\n      ai = new AxesWalker(lpi, Axis.DESCENDANTORSELF);\n      break;\n    case OpCodes.FROM_FOLLOWING :\n      prevIsOneStepDown = false;\n      ai = new AxesWalker(lpi, Axis.FOLLOWING);\n      break;\n    case OpCodes.FROM_FOLLOWING_SIBLINGS :\n      prevIsOneStepDown = false;\n      ai = new AxesWalker(lpi, Axis.FOLLOWINGSIBLING);\n      break;\n    case OpCodes.FROM_PRECEDING :\n      prevIsOneStepDown = false;\n      ai = new ReverseAxesWalker(lpi, Axis.PRECEDING);\n      break;\n    case OpCodes.FROM_PRECEDING_SIBLINGS :\n      prevIsOneStepDown = false;\n      ai = new ReverseAxesWalker(lpi, Axis.PRECEDINGSIBLING);\n      break;\n    case OpCodes.FROM_PARENT :\n      prevIsOneStepDown = false;\n      ai = new ReverseAxesWalker(lpi, Axis.PARENT);\n      break;\n    case OpCodes.FROM_SELF :\n      ai = new AxesWalker(lpi, Axis.SELF);\n      break;\n    default :\n    }\n\n    if (simpleInit)\n    {\n      ai.initNodeTest(DTMFilter.SHOW_ALL);\n    }\n    else\n    {\n      int whatToShow = compiler.getWhatToShow(opPos);\n\n      /*\n      System.out.print(\"construct: \");\n      NodeTest.debugWhatToShow(whatToShow);\n      System.out.println(\"or stuff: \"+(whatToShow & (DTMFilter.SHOW_ATTRIBUTE\n                             | DTMFilter.SHOW_ELEMENT\n                             | DTMFilter.SHOW_PROCESSING_INSTRUCTION)));\n      */\n      if ((0 == (whatToShow\n                 & (DTMFilter.SHOW_ATTRIBUTE | DTMFilter.SHOW_NAMESPACE | DTMFilter.SHOW_ELEMENT\n                    | DTMFilter.SHOW_PROCESSING_INSTRUCTION))) || (whatToShow == DTMFilter.SHOW_ALL))\n        ai.initNodeTest(whatToShow);\n      else\n      {\n        ai.initNodeTest(whatToShow, compiler.getStepNS(opPos),\n                        compiler.getStepLocalName(opPos));\n      }\n    }\n\n    return ai;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "VAR_DECL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [2, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [4, 31], [5, 32], [6, 33], [7, 34], [8, 35], [13, 36], [2, 37], [3, 38], [3, 39], [3, 40], [3, 41], [3, 42], [3, 43], [3, 44], [3, 45], [3, 46], [3, 47], [3, 48], [3, 49], [3, 50], [3, 51], [3, 52], [3, 53], [3, 54], [3, 55], [3, 56], [3, 57], [3, 58], [3, 59], [3, 60], [3, 61], [3, 62], [3, 63], [13, 64], [36, 65], [36, 66], [14, 67], [38, 68], [39, 69], [40, 70], [41, 71], [42, 72], [43, 73], [44, 74], [45, 75], [46, 76], [47, 77], [48, 78], [49, 79], [50, 80], [51, 81], [52, 82], [53, 83], [54, 84], [55, 85], [56, 86], [57, 87], [58, 88], [59, 89], [60, 90], [61, 91], [62, 92], [30, 93], [63, 94], [13, 95], [66, 96], [66, 97], [93, 98], [95, 99], [95, 100], [96, 101], [98, 102], [98, 103], [101, 104], [103, 105], [103, 106], [104, 107], [106, 108], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 2], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 3], [27, 3], [28, 3], [29, 3], [30, 3], [31, 4], [32, 5], [33, 6], [34, 7], [35, 8], [36, 13], [37, 2], [38, 3], [39, 3], [40, 3], [41, 3], [42, 3], [43, 3], [44, 3], [45, 3], [46, 3], [47, 3], [48, 3], [49, 3], [50, 3], [51, 3], [52, 3], [53, 3], [54, 3], [55, 3], [56, 3], [57, 3], [58, 3], [59, 3], [60, 3], [61, 3], [62, 3], [63, 3], [64, 13], [65, 36], [66, 36], [67, 14], [68, 38], [69, 39], [70, 40], [71, 41], [72, 42], [73, 43], [74, 44], [75, 45], [76, 46], [77, 47], [78, 48], [79, 49], [80, 50], [81, 51], [82, 52], [83, 53], [84, 54], [85, 55], [86, 56], [87, 57], [88, 58], [89, 59], [90, 60], [91, 61], [92, 62], [93, 30], [94, 63], [95, 13], [96, 66], [97, 66], [98, 93], [99, 95], [100, 95], [101, 96], [102, 98], [103, 98], [104, 101], [105, 103], [106, 103], [107, 104], [108, 106], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108]]}, {"function_name": "getAnalysisString", "code": "  public static String getAnalysisString(int analysis)\n  {\n    StringBuffer buf = new StringBuffer();\n    buf.append(\"count: \"+getStepCount(analysis)+\" \");\n    if((analysis & BIT_NODETEST_ANY) != 0)\n    {\n      buf.append(\"NTANY|\");\n    }\n    if((analysis & BIT_PREDICATE) != 0)\n    {\n      buf.append(\"PRED|\");\n    }\n    if((analysis & BIT_ANCESTOR) != 0)\n    {\n      buf.append(\"ANC|\");\n    }\n    if((analysis & BIT_ANCESTOR_OR_SELF) != 0)\n    {\n      buf.append(\"ANCOS|\");\n    }\n    if((analysis & BIT_ATTRIBUTE) != 0)\n    {\n      buf.append(\"ATTR|\");\n    }\n    if((analysis & BIT_CHILD) != 0)\n    {\n      buf.append(\"CH|\");\n    }\n    if((analysis & BIT_DESCENDANT) != 0)\n    {\n      buf.append(\"DESC|\");\n    }\n    if((analysis & BIT_DESCENDANT_OR_SELF) != 0)\n    {\n      buf.append(\"DESCOS|\");\n    }\n    if((analysis & BIT_FOLLOWING) != 0)\n    {\n      buf.append(\"FOL|\");\n    }\n    if((analysis & BIT_FOLLOWING_SIBLING) != 0)\n    {\n      buf.append(\"FOLS|\");\n    }\n    if((analysis & BIT_NAMESPACE) != 0)\n    {\n      buf.append(\"NS|\");\n    }\n    if((analysis & BIT_PARENT) != 0)\n    {\n      buf.append(\"P|\");\n    }\n    if((analysis & BIT_PRECEDING) != 0)\n    {\n      buf.append(\"PREC|\");\n    }\n    if((analysis & BIT_PRECEDING_SIBLING) != 0)\n    {\n      buf.append(\"PRECS|\");\n    }\n    if((analysis & BIT_SELF) != 0)\n    {\n      buf.append(\".|\");\n    }\n    if((analysis & BIT_FILTER) != 0)\n    {\n      buf.append(\"FLT|\");\n    }\n    if((analysis & BIT_ROOT) != 0)\n    {\n      buf.append(\"R|\");\n    }\n    return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [2, 22], [3, 23], [4, 24], [5, 25], [6, 26], [7, 27], [8, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [14, 34], [15, 35], [16, 36], [17, 37], [18, 38], [0, 39], [22, 40], [22, 41], [23, 42], [23, 43], [24, 44], [24, 45], [25, 46], [25, 47], [26, 48], [26, 49], [27, 50], [27, 51], [28, 52], [28, 53], [29, 54], [29, 55], [30, 56], [30, 57], [31, 58], [31, 59], [32, 60], [32, 61], [33, 62], [33, 63], [34, 64], [34, 65], [35, 66], [35, 67], [36, 68], [36, 69], [37, 70], [37, 71], [38, 72], [38, 73], [39, 74], [19, 75], [2, 76], [3, 77], [4, 78], [5, 79], [6, 80], [7, 81], [8, 82], [9, 83], [10, 84], [11, 85], [12, 86], [13, 87], [14, 88], [15, 89], [16, 90], [17, 91], [18, 92], [74, 93], [74, 94], [76, 95], [77, 96], [78, 97], [79, 98], [80, 99], [81, 100], [82, 101], [83, 102], [84, 103], [85, 104], [86, 105], [87, 106], [88, 107], [89, 108], [90, 109], [91, 110], [92, 111], [94, 112], [94, 113], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 2], [23, 3], [24, 4], [25, 5], [26, 6], [27, 7], [28, 8], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 14], [35, 15], [36, 16], [37, 17], [38, 18], [39, 0], [40, 22], [41, 22], [42, 23], [43, 23], [44, 24], [45, 24], [46, 25], [47, 25], [48, 26], [49, 26], [50, 27], [51, 27], [52, 28], [53, 28], [54, 29], [55, 29], [56, 30], [57, 30], [58, 31], [59, 31], [60, 32], [61, 32], [62, 33], [63, 33], [64, 34], [65, 34], [66, 35], [67, 35], [68, 36], [69, 36], [70, 37], [71, 37], [72, 38], [73, 38], [74, 39], [75, 19], [76, 2], [77, 3], [78, 4], [79, 5], [80, 6], [81, 7], [82, 8], [83, 9], [84, 10], [85, 11], [86, 12], [87, 13], [88, 14], [89, 15], [90, 16], [91, 17], [92, 18], [93, 74], [94, 74], [95, 76], [96, 77], [97, 78], [98, 79], [99, 80], [100, 81], [101, 82], [102, 83], [103, 84], [104, 85], [105, 86], [106, 87], [107, 88], [108, 89], [109, 90], [110, 91], [111, 92], [112, 94], [113, 94], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113]]}, {"function_name": "hasPredicate", "code": "  public static boolean hasPredicate(int analysis)\n  {\n    return (0 != (analysis & BIT_PREDICATE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isWild", "code": "  public static boolean isWild(int analysis)\n  {\n    return (0 != (analysis & BIT_NODETEST_ANY));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "walksAncestors", "code": "  public static boolean walksAncestors(int analysis)\n  {\n    return isSet(analysis, BIT_ANCESTOR | BIT_ANCESTOR_OR_SELF);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "walksAttributes", "code": "  public static boolean walksAttributes(int analysis)\n  {\n    return (0 != (analysis & BIT_ATTRIBUTE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "walksNamespaces", "code": "  public static boolean walksNamespaces(int analysis)\n  {\n    return (0 != (analysis & BIT_NAMESPACE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "walksChildren", "code": "  public static boolean walksChildren(int analysis)\n  {\n    return (0 != (analysis & BIT_CHILD));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "walksDescendants", "code": "  public static boolean walksDescendants(int analysis)\n  {\n    return isSet(analysis, BIT_DESCENDANT | BIT_DESCENDANT_OR_SELF);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "walksSubtree", "code": "  public static boolean walksSubtree(int analysis)\n  {\n    return isSet(analysis, BIT_DESCENDANT | BIT_DESCENDANT_OR_SELF | BIT_CHILD);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "walksSubtreeOnlyMaybeAbsolute", "code": "  public static boolean walksSubtreeOnlyMaybeAbsolute(int analysis)\n  {\n    return walksSubtree(analysis)\n           && !walksExtraNodes(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "walksSubtreeOnly", "code": "  public static boolean walksSubtreeOnly(int analysis)\n  {\n    return walksSubtreeOnlyMaybeAbsolute(analysis) \n           && !isAbsolute(analysis) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "walksFilteredList", "code": "  public static boolean walksFilteredList(int analysis)\n  {\n    return isSet(analysis, BIT_FILTER);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "walksSubtreeOnlyFromRootOrContext", "code": "  public static boolean walksSubtreeOnlyFromRootOrContext(int analysis)\n  {\n    return walksSubtree(analysis)\n           && !walksExtraNodes(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isSet(analysis, BIT_FILTER) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "walksInDocOrder", "code": "  public static boolean walksInDocOrder(int analysis)\n  {\n    return (walksSubtreeOnlyMaybeAbsolute(analysis)\n           || walksExtraNodesOnly(analysis)\n           || walksFollowingOnlyMaybeAbsolute(analysis)) \n           && !isSet(analysis, BIT_FILTER) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "walksFollowingOnlyMaybeAbsolute", "code": "  public static boolean walksFollowingOnlyMaybeAbsolute(int analysis)\n  {\n    return isSet(analysis, BIT_SELF | BIT_FOLLOWING_SIBLING | BIT_FOLLOWING)\n           && !walksSubtree(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "walksUp", "code": "  public static boolean walksUp(int analysis)\n  {\n    return isSet(analysis, BIT_PARENT | BIT_ANCESTOR | BIT_ANCESTOR_OR_SELF);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "walksSideways", "code": "  public static boolean walksSideways(int analysis)\n  {\n    return isSet(analysis, BIT_FOLLOWING | BIT_FOLLOWING_SIBLING | \n                           BIT_PRECEDING | BIT_PRECEDING_SIBLING);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "walksExtraNodes", "code": "  public static boolean walksExtraNodes(int analysis)\n  {\n    return isSet(analysis, BIT_NAMESPACE | BIT_ATTRIBUTE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "walksExtraNodesOnly", "code": "  public static boolean walksExtraNodesOnly(int analysis)\n  {\n    return walksExtraNodes(analysis)\n           && !isSet(analysis, BIT_SELF) \n           && !walksSubtree(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isAbsolute(analysis) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [9, 10], [9, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [10, 9], [11, 9], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "isAbsolute", "code": "  public static boolean isAbsolute(int analysis)\n  {\n    return isSet(analysis, BIT_ROOT | BIT_FILTER);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "walksChildrenOnly", "code": "  public static boolean walksChildrenOnly(int analysis)\n  {\n    return walksChildren(analysis)\n           && !isSet(analysis, BIT_SELF)\n           && !walksExtraNodes(analysis)\n           && !walksDescendants(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && (!isAbsolute(analysis) || isSet(analysis, BIT_ROOT))", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [5, 9], [9, 10], [9, 11], [11, 12], [11, 13], [13, 14], [13, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 5], [10, 9], [11, 9], [12, 11], [13, 11], [14, 13], [15, 13], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "walksChildrenAndExtraAndSelfOnly", "code": "  public static boolean walksChildrenAndExtraAndSelfOnly(int analysis)\n  {\n    return walksChildren(analysis)\n           && !walksDescendants(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && (!isAbsolute(analysis) || isSet(analysis, BIT_ROOT))", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [5, 9], [9, 10], [9, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 5], [10, 9], [11, 9], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "walksDescendantsAndExtraAndSelfOnly", "code": "  public static boolean walksDescendantsAndExtraAndSelfOnly(int analysis)\n  {\n    return !walksChildren(analysis)\n           && walksDescendants(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && (!isAbsolute(analysis) || isSet(analysis, BIT_ROOT))", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [5, 9], [9, 10], [9, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 5], [10, 9], [11, 9], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "walksSelfOnly", "code": "  public static boolean walksSelfOnly(int analysis)\n  {\n    return isSet(analysis, BIT_SELF) \n           && !walksSubtree(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isAbsolute(analysis) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "walksUpOnly", "code": "  public static boolean walksUpOnly(int analysis)\n  {\n    return !walksSubtree(analysis) \n           && walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isAbsolute(analysis) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "walksDownOnly", "code": "  public static boolean walksDownOnly(int analysis)\n  {\n    return walksSubtree(analysis) \n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isAbsolute(analysis) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "walksDownExtraOnly", "code": "  public static boolean walksDownExtraOnly(int analysis)\n  {\n    return walksSubtree(analysis) &&  walksExtraNodes(analysis)\n           && !walksUp(analysis) \n           && !walksSideways(analysis) \n           && !isAbsolute(analysis) ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "canSkipSubtrees", "code": "  public static boolean canSkipSubtrees(int analysis)\n  {\n    return isSet(analysis, BIT_CHILD) | walksSideways(analysis);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "canCrissCross", "code": "  public static boolean canCrissCross(int analysis)\n  {\n    if(walksSelfOnly(analysis))\n      return false;\n    else if(walksDownOnly(analysis) && !canSkipSubtrees(analysis))\n      return false;\n    else if(walksChildrenAndExtraAndSelfOnly(analysis))\n      return false;\n    else if(walksDescendantsAndExtraAndSelfOnly(analysis))\n      return false;\n    else if(walksUpOnly(analysis))\n      return false;\n    else if(walksExtraNodesOnly(analysis))\n      return false;\n    else if(walksSubtree(analysis) \n           && (walksSideways(analysis) \n            || walksUp(analysis) \n            || canSkipSubtrees(analysis)))\n      return true;\n    else\n      return false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "RETURN", "CALL", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [3, 8], [4, 9], [6, 10], [6, 11], [6, 12], [7, 13], [8, 14], [8, 15], [10, 16], [10, 17], [10, 18], [11, 19], [16, 20], [16, 21], [16, 22], [17, 23], [20, 24], [20, 25], [20, 26], [21, 27], [24, 28], [24, 29], [24, 30], [25, 31], [28, 32], [29, 33], [30, 34], [30, 35], [34, 36], [34, 37], [37, 38], [37, 39], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 3], [9, 4], [10, 6], [11, 6], [12, 6], [13, 7], [14, 8], [15, 8], [16, 10], [17, 10], [18, 10], [19, 11], [20, 16], [21, 16], [22, 16], [23, 17], [24, 20], [25, 20], [26, 20], [27, 21], [28, 24], [29, 24], [30, 24], [31, 25], [32, 28], [33, 29], [34, 30], [35, 30], [36, 34], [37, 34], [38, 37], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "isNaturalDocOrder", "code": "  static public boolean isNaturalDocOrder(int analysis)\n  {\n    if(canCrissCross(analysis) || isSet(analysis, BIT_NAMESPACE) ||\n       walksFilteredList(analysis))\n      return false;\n      \n    if(walksInDocOrder(analysis))\n      return true;\n      \n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [6, 10], [8, 11], [9, 12], [9, 13], [13, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 6], [11, 8], [12, 9], [13, 9], [14, 13], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "isNaturalDocOrder", "code": "  private static boolean isNaturalDocOrder(\n          Compiler compiler, int stepOpCodePos, int stepIndex, int analysis)\n            throws javax.xml.transform.TransformerException\n  {\n    if(canCrissCross(analysis))\n      return false;\n      \n    if(isSet(analysis, BIT_NAMESPACE))\n      return false;\n      \n    if(isSet(analysis, BIT_FOLLOWING | BIT_FOLLOWING_SIBLING) && \n       isSet(analysis, BIT_PRECEDING | BIT_PRECEDING_SIBLING))\n      return  false;\n      \n    \n    int stepType;\n    int stepCount = 0;\n    boolean foundWildAttribute = false;\n    \n    int potentialDuplicateMakingStepCount = 0;\n    \n    while (OpCodes.ENDOP != (stepType = compiler.getOp(stepOpCodePos)))\n    {        \n      stepCount++;\n        \n      switch (stepType)\n      {\n      case OpCodes.FROM_ATTRIBUTES :\n      case OpCodes.MATCH_ATTRIBUTE :\n          return false;\n        \n        \n        String localName = compiler.getStepLocalName(stepOpCodePos);\n        if(localName.equals(\"*\"))\n        {\n          foundWildAttribute = true;\n        }\n        break;\n      case OpCodes.FROM_FOLLOWING :\n      case OpCodes.FROM_FOLLOWING_SIBLINGS :\n      case OpCodes.FROM_PRECEDING :\n      case OpCodes.FROM_PRECEDING_SIBLINGS :\n      case OpCodes.FROM_PARENT :\n      case OpCodes.OP_VARIABLE :\n      case OpCodes.OP_EXTFUNCTION :\n      case OpCodes.OP_FUNCTION :\n      case OpCodes.OP_GROUP :\n      case OpCodes.FROM_NAMESPACE :\n      case OpCodes.FROM_ANCESTORS :\n      case OpCodes.FROM_ANCESTORS_OR_SELF :      \n      case OpCodes.MATCH_ANY_ANCESTOR :\n      case OpCodes.MATCH_IMMEDIATE_ANCESTOR :\n      case OpCodes.FROM_DESCENDANTS_OR_SELF :\n      case OpCodes.FROM_DESCENDANTS :\n        if(potentialDuplicateMakingStepCount > 0)\n            return false;\n        potentialDuplicateMakingStepCount++;\n      case OpCodes.FROM_ROOT :\n      case OpCodes.FROM_CHILDREN :\n      case OpCodes.FROM_SELF :\n        if(foundWildAttribute)\n          return false;\n        break;\n      default :\n      }\n\n      int nextStepOpCodePos = compiler.getNextStepPos(stepOpCodePos);\n\n      if (nextStepOpCodePos < 0)\n        break;\n              \n      stepOpCodePos = nextStepOpCodePos;\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "CALL", "IF", "VAR_DECL", "SWITCH", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "IF", "IF", "BREAK_CONTINUE", "IF", "VAR_DECL", "RETURN", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [7, 16], [7, 17], [8, 18], [8, 19], [9, 20], [9, 21], [2, 22], [2, 23], [2, 24], [15, 25], [3, 26], [4, 27], [5, 28], [16, 29], [17, 30], [17, 31], [18, 32], [20, 33], [2, 34], [22, 35], [22, 36], [25, 37], [30, 38], [31, 39], [36, 40], [23, 41], [24, 42], [24, 43], [24, 44], [24, 45], [24, 46], [24, 47], [24, 48], [43, 49], [44, 50], [44, 51], [46, 52], [48, 53], [49, 54], [50, 55], [51, 56], [52, 57], [47, 58], [46, 59], [59, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 7], [17, 7], [18, 8], [19, 8], [20, 9], [21, 9], [22, 2], [23, 2], [24, 2], [25, 15], [26, 3], [27, 4], [28, 5], [29, 16], [30, 17], [31, 17], [32, 18], [33, 20], [34, 2], [35, 22], [36, 22], [37, 25], [38, 30], [39, 31], [40, 36], [41, 23], [42, 24], [43, 24], [44, 24], [45, 24], [46, 24], [47, 24], [48, 24], [49, 43], [50, 44], [51, 44], [52, 46], [53, 48], [54, 49], [55, 50], [56, 51], [57, 52], [58, 47], [59, 46], [60, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "isOneStep", "code": "  public static boolean isOneStep(int analysis)\n  {\n    return (analysis & BITS_COUNT) == 0x00000001;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getStepCount", "code": "  public static int getStepCount(int analysis)\n  {\n    return (analysis & BITS_COUNT);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "poi-2.0-5591", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/PlotGrowthRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.PlotGrowthRecord", "code": "public class PlotGrowthRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1064;\n    private  int        field_1_horizontalScale;\n    private  int        field_2_verticalScale;\n\n\n    public PlotGrowthRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a PlotGrowth record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1064 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public PlotGrowthRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a PlotGrowth record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1064 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public PlotGrowthRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a PlotGrowth record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_horizontalScale        = LittleEndian.getInt(data, pos + 0x0 + offset);\n        field_2_verticalScale          = LittleEndian.getInt(data, pos + 0x4 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PLOTGROWTH]\\n\");\n        buffer.append(\"    .horizontalScale      = \")\n            .append(\"0x\").append(HexDump.toHex(  getHorizontalScale ()))\n            .append(\" (\").append( getHorizontalScale() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .verticalScale        = \")\n            .append(\"0x\").append(HexDump.toHex(  getVerticalScale ()))\n            .append(\" (\").append( getVerticalScale() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/PLOTGROWTH]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_horizontalScale);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_verticalScale);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 4 + 4;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        PlotGrowthRecord rec = new PlotGrowthRecord();\n    \n        rec.field_1_horizontalScale = field_1_horizontalScale;\n        rec.field_2_verticalScale = field_2_verticalScale;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the horizontalScale field for the PlotGrowth record.\n     */\n    public int getHorizontalScale()\n    {\n        return field_1_horizontalScale;\n    }\n\n    /**\n     * Set the horizontalScale field for the PlotGrowth record.\n     */\n    public void setHorizontalScale(int field_1_horizontalScale)\n    {\n        this.field_1_horizontalScale = field_1_horizontalScale;\n    }\n\n    /**\n     * Get the verticalScale field for the PlotGrowth record.\n     */\n    public int getVerticalScale()\n    {\n        return field_2_verticalScale;\n    }\n\n    /**\n     * Set the verticalScale field for the PlotGrowth record.\n     */\n    public void setVerticalScale(int field_2_verticalScale)\n    {\n        this.field_2_verticalScale = field_2_verticalScale;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a PlotGrowth record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_horizontalScale        = LittleEndian.getInt(data, pos + 0x0 + offset);\n        field_2_verticalScale          = LittleEndian.getInt(data, pos + 0x4 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 9], [7, 10], [8, 11], [10, 12], [11, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 1], [10, 7], [11, 8], [12, 10], [13, 11], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PLOTGROWTH]\\n\");\n        buffer.append(\"    .horizontalScale      = \")\n            .append(\"0x\").append(HexDump.toHex(  getHorizontalScale ()))\n            .append(\" (\").append( getHorizontalScale() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .verticalScale        = \")\n            .append(\"0x\").append(HexDump.toHex(  getVerticalScale ()))\n            .append(\" (\").append( getVerticalScale() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/PLOTGROWTH]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [7, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [9, 25], [2, 26], [11, 27], [13, 28], [14, 29], [15, 30], [16, 31], [17, 32], [18, 33], [20, 34], [21, 35], [22, 36], [23, 37], [24, 38], [31, 39], [37, 40], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 7], [19, 8], [20, 8], [21, 8], [22, 8], [23, 8], [24, 8], [25, 9], [26, 2], [27, 11], [28, 13], [29, 14], [30, 15], [31, 16], [32, 17], [33, 18], [34, 20], [35, 21], [36, 22], [37, 23], [38, 24], [39, 31], [40, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_horizontalScale);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_verticalScale);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [8, 12], [9, 13], [2, 14], [10, 15], [11, 16], [8, 17], [12, 18], [13, 19], [15, 20], [16, 21], [17, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 8], [13, 9], [14, 2], [15, 10], [16, 11], [17, 8], [18, 12], [19, 13], [20, 15], [21, 16], [22, 17], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 4 + 4;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        PlotGrowthRecord rec = new PlotGrowthRecord();\n    \n        rec.field_1_horizontalScale = field_1_horizontalScale;\n        rec.field_2_verticalScale = field_2_verticalScale;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getHorizontalScale", "code": "    public int getHorizontalScale()\n    {\n        return field_1_horizontalScale;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHorizontalScale", "code": "    public void setHorizontalScale(int field_1_horizontalScale)\n    {\n        this.field_1_horizontalScale = field_1_horizontalScale;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVerticalScale", "code": "    public int getVerticalScale()\n    {\n        return field_2_verticalScale;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVerticalScale", "code": "    public void setVerticalScale(int field_2_verticalScale)\n    {\n        this.field_2_verticalScale = field_2_verticalScale;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "PlotGrowthRecord", "code": "    public PlotGrowthRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PlotGrowthRecord", "code": "    public PlotGrowthRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "PlotGrowthRecord", "code": "    public PlotGrowthRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.1-4205", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/Parser.java", "language": "java", "name": "bsh.Parser", "code": "public class Parser/*@bgen(jjtree)*/implements ParserTreeConstants, ParserConstants {/*@bgen(jjtree)*/\n  protected JJTParserState jjtree = new JJTParserState();boolean retainComments = false;\n\n        public void setRetainComments( boolean b ) {\n                retainComments = b;\n        }\n\n        void jjtreeOpenNodeScope(Node n) {\n                ((SimpleNode)n).firstToken = getToken(1);\n        }\n\n        void jjtreeCloseNodeScope(Node n) {\n                ((SimpleNode)n).lastToken = getToken(0);\n        }\n\n        /**\n\t\tRe-initialize the input stream and token source.\n\t*/\n        void reInitInput( Reader in ) {\n                ReInit(in);\n        }\n\n        public SimpleNode popNode()\n        {\n                if ( jjtree.nodeArity() > 0)  // number of child nodes \n                        return (SimpleNode)jjtree.popNode();\n                else\n                        return null;\n        }\n\n        /**\n\t\tExplicitly re-initialize just the token reader.\n\t\tThis seems to be necessary to avoid certain looping errors when\n\t\treading bogus input.  See Interpreter.\n\t*/\n        void reInitTokenInput( Reader in ) {\n                jj_input_stream.ReInit( in,\n                        jj_input_stream.getEndLine(),\n                        jj_input_stream.getEndColumn() );\n        }\n\n        public static void main( String [] args )\n                throws IOException, ParseException\n        {\n                boolean print = false;\n                int i=0;\n                if ( args[0].equals(\"-p\") ) {\n                        i++;\n                        print=true;\n                }\n                for(; i< args.length; i++) {\n                        Reader in = new FileReader(args[i]);\n                        Parser parser = new Parser(in);\n                        parser.setRetainComments(true);\n                        while( !parser.Line()/*eof*/ )\n                                if ( print )\n                                        System.out.println( parser.popNode() );\n                }\n        }\n\n  final public boolean Line() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case 0:\n      jj_consume_token(0);\n        Interpreter.debug(\"End of File!\");\n        {if (true) return true;}\n      break;\n    case BOOLEAN:\n    case BREAK:\n    case BYTE:\n    case CHAR:\n    case CONTINUE:\n    case DO:\n    case DOUBLE:\n    case FALSE:\n    case FINAL:\n    case FLOAT:\n    case FOR:\n    case IF:\n    case IMPORT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case RETURN:\n    case SHORT:\n    case SWITCH:\n    case THROW:\n    case TRUE:\n    case TRY:\n    case VOID:\n    case WHILE:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case FORMAL_COMMENT:\n    case IDENTIFIER:\n    case LPAREN:\n    case LBRACE:\n    case SEMICOLON:\n    case BANG:\n    case TILDE:\n    case INCR:\n    case DECR:\n    case PLUS:\n    case MINUS:\n      if (jj_2_1(2147483647)) {\n        Expression();\n        jj_consume_token(SEMICOLON);\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BREAK:\n        case BYTE:\n        case CHAR:\n        case CONTINUE:\n        case DO:\n        case DOUBLE:\n        case FALSE:\n        case FINAL:\n        case FLOAT:\n        case FOR:\n        case IF:\n        case IMPORT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case RETURN:\n        case SHORT:\n        case SWITCH:\n        case THROW:\n        case TRUE:\n        case TRY:\n        case VOID:\n        case WHILE:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case FORMAL_COMMENT:\n        case IDENTIFIER:\n        case LPAREN:\n        case LBRACE:\n        case SEMICOLON:\n        case INCR:\n        case DECR:\n          BlockStatement();\n          break;\n        default:\n          jj_la1[0] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n                {if (true) return false;}\n      break;\n    default:\n      jj_la1[1] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    throw new Error(\"Missing return statement in function\");\n  }\n\n/*****************************************\n * THE JAVA LANGUAGE GRAMMAR STARTS HERE *\n *****************************************/\n  final public void MethodDeclaration() throws ParseException {\n /*@bgen(jjtree) MethodDeclaration */\n  BSHMethodDeclaration jjtn000 = new BSHMethodDeclaration(JJTMETHODDECLARATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_2(2147483647)) {\n        ReturnType();\n        t = jj_consume_token(IDENTIFIER);\n                                    jjtn000.name = t.image;\n        FormalParameters();\n        Block();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          t = jj_consume_token(IDENTIFIER);\n                       jjtn000.name = t.image;\n          FormalParameters();\n          Block();\n          break;\n        default:\n          jj_la1[2] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n      if (jjtc000) {\n        jjtree.clearNodeScope(jjtn000);\n        jjtc000 = false;\n      } else {\n        jjtree.popNode();\n      }\n      if (jjte000 instanceof RuntimeException) {\n        {if (true) throw (RuntimeException)jjte000;}\n      }\n      if (jjte000 instanceof ParseException) {\n        {if (true) throw (ParseException)jjte000;}\n      }\n      {if (true) throw (Error)jjte000;}\n    } finally {\n      if (jjtc000) {\n        jjtree.closeNodeScope(jjtn000, true);\n        jjtreeCloseNodeScope(jjtn000);\n      }\n    }\n  }\n\n  final public void MethodDeclarationLookahead() throws ParseException {\n    if (jj_2_3(2147483647)) {\n      ReturnType();\n      jj_consume_token(IDENTIFIER);\n      FormalParameters();\n      jj_consume_token(LBRACE);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        FormalParameters();\n        jj_consume_token(LBRACE);\n        break;\n      default:\n        jj_la1[3] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void MethodDeclarationTypeLookahead() throws ParseException {\n    ReturnType();\n    jj_consume_token(IDENTIFIER);\n    jj_consume_token(LPAREN);\n  }\n\n  final public void ImportDeclaration() throws ParseException {\n /*@bgen(jjtree) ImportDeclaration */\n    BSHImportDeclaration jjtn000 = new BSHImportDeclaration(JJTIMPORTDECLARATION);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_4(2)) {\n        jj_consume_token(IMPORT);\n        AmbiguousName();\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case DOT:\n          t = jj_consume_token(DOT);\n          jj_consume_token(STAR);\n          break;\n        default:\n          jj_la1[4] = jj_gen;\n          ;\n        }\n        jj_consume_token(SEMICOLON);\n                                                 jjtree.closeNodeScope(jjtn000, true);\n                                                 jjtc000 = false;\n                                                 jjtreeCloseNodeScope(jjtn000);\n    if ( t != null )\n        jjtn000.importPackage = true;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IMPORT:\n          jj_consume_token(IMPORT);\n          jj_consume_token(STAR);\n          jj_consume_token(SEMICOLON);\n                     jjtree.closeNodeScope(jjtn000, true);\n                     jjtc000 = false;\n                     jjtreeCloseNodeScope(jjtn000);\n                jjtn000.superImport = true;\n          break;\n        default:\n          jj_la1[5] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void VariableDeclarator() throws ParseException {\n /*@bgen(jjtree) VariableDeclarator */\n  BSHVariableDeclarator jjtn000 = new BSHVariableDeclarator(JJTVARIABLEDECLARATOR);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ASSIGN:\n        jj_consume_token(ASSIGN);\n        VariableInitializer();\n        break;\n      default:\n        jj_la1[6] = jj_gen;\n        ;\n      }\n                                                 jjtree.closeNodeScope(jjtn000, true);\n                                                 jjtc000 = false;\n                                                 jjtreeCloseNodeScope(jjtn000);\n                                                 jjtn000.name = t.image;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\nCan get rid of this if we ignore postfix array dimensions in declarations.\nI don't like them and I don't want to deal with them right now.\n\nvoid VariableDeclaratorId() #VariableDeclaratorId :\n{ Token t; }\n{\n  t=<IDENTIFIER> { jjtThis.name = t.image; }\n  ( \"[\" \"]\" { jjtThis.addArrayDimension(); } )*\n}\n*/\n  final public void VariableInitializer() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case LBRACE:\n      ArrayInitializer();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n    case INCR:\n    case DECR:\n    case PLUS:\n    case MINUS:\n      Expression();\n      break;\n    default:\n      jj_la1[7] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n  }\n\n  final public void ArrayInitializer() throws ParseException {\n /*@bgen(jjtree) ArrayInitializer */\n  BSHArrayInitializer jjtn000 = new BSHArrayInitializer(JJTARRAYINITIALIZER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case LBRACE:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        VariableInitializer();\n        label_1:\n        while (true) {\n          if (jj_2_5(2)) {\n            ;\n          } else {\n            break label_1;\n          }\n          jj_consume_token(COMMA);\n          VariableInitializer();\n        }\n        break;\n      default:\n        jj_la1[8] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        jj_consume_token(COMMA);\n        break;\n      default:\n        jj_la1[9] = jj_gen;\n        ;\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void FormalParameters() throws ParseException {\n /*@bgen(jjtree) FormalParameters */\n  BSHFormalParameters jjtn000 = new BSHFormalParameters(JJTFORMALPARAMETERS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        FormalParameter();\n        label_2:\n        while (true) {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case COMMA:\n            ;\n            break;\n          default:\n            jj_la1[10] = jj_gen;\n            break label_2;\n          }\n          jj_consume_token(COMMA);\n          FormalParameter();\n        }\n        break;\n      default:\n        jj_la1[11] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\nvoid FormalParameter() #FormalParameter :\n{ Token t; }\n{\n    // added [] to Type for bsh.  Removed [ final ] - is that legal?\n  [ LOOKAHEAD(2) Type() ] t=<IDENTIFIER> { jjtThis.name = t.image; }\n}\n*/\n  final public void FormalParameter() throws ParseException {\n /*@bgen(jjtree) FormalParameter */\n  BSHFormalParameter jjtn000 = new BSHFormalParameter(JJTFORMALPARAMETER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      if (jj_2_6(2)) {\n        Type();\n        t = jj_consume_token(IDENTIFIER);\n                                       jjtree.closeNodeScope(jjtn000, true);\n                                       jjtc000 = false;\n                                       jjtreeCloseNodeScope(jjtn000);\n                                       jjtn000.name = t.image;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          t = jj_consume_token(IDENTIFIER);\n                   jjtree.closeNodeScope(jjtn000, true);\n                   jjtc000 = false;\n                   jjtreeCloseNodeScope(jjtn000);\n                   jjtn000.name = t.image;\n          break;\n        default:\n          jj_la1[12] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tType, name and expression syntax follows.\n*/\n  final public void Type() throws ParseException {\n /*@bgen(jjtree) Type */\n  BSHType jjtn000 = new BSHType(JJTTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n        PrimitiveType();\n        break;\n      case IDENTIFIER:\n        AmbiguousName();\n        break;\n      default:\n        jj_la1[13] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      label_3:\n      while (true) {\n        if (jj_2_7(2)) {\n          ;\n        } else {\n          break label_3;\n        }\n        jj_consume_token(LBRACKET);\n        jj_consume_token(RBRACKET);\n                                 jjtn000.addArrayDimension();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tOriginally called ResultType in the grammar\n*/\n  final public void ReturnType() throws ParseException {\n /*@bgen(jjtree) ReturnType */\n  BSHReturnType jjtn000 = new BSHReturnType(JJTRETURNTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case VOID:\n        jj_consume_token(VOID);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.isVoid = true;\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        Type();\n        break;\n      default:\n        jj_la1[14] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void PrimitiveType() throws ParseException {\n /*@bgen(jjtree) PrimitiveType */\n  BSHPrimitiveType jjtn000 = new BSHPrimitiveType(JJTPRIMITIVETYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n        jj_consume_token(BOOLEAN);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type = Boolean.TYPE;\n        break;\n      case CHAR:\n        jj_consume_token(CHAR);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Character.TYPE;\n        break;\n      case BYTE:\n        jj_consume_token(BYTE);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Byte.TYPE;\n        break;\n      case SHORT:\n        jj_consume_token(SHORT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Short.TYPE;\n        break;\n      case INT:\n        jj_consume_token(INT);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.type =  Integer.TYPE;\n        break;\n      case LONG:\n        jj_consume_token(LONG);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Long.TYPE;\n        break;\n      case FLOAT:\n        jj_consume_token(FLOAT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Float.TYPE;\n        break;\n      case DOUBLE:\n        jj_consume_token(DOUBLE);\n             jjtree.closeNodeScope(jjtn000, true);\n             jjtc000 = false;\n             jjtreeCloseNodeScope(jjtn000);\n             jjtn000.type =  Double.TYPE;\n        break;\n      default:\n        jj_la1[15] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } finally {\n  if (jjtc000) {\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtreeCloseNodeScope(jjtn000);\n  }\n    }\n  }\n\n  final public void AmbiguousName() throws ParseException {\n /*@bgen(jjtree) AmbiguousName */\n    BSHAmbiguousName jjtn000 = new BSHAmbiguousName(JJTAMBIGUOUSNAME);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t;\n    StringBuffer s;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n        s = new StringBuffer(t.image);\n      label_4:\n      while (true) {\n        if (jj_2_8(2)) {\n          ;\n        } else {\n          break label_4;\n        }\n        jj_consume_token(DOT);\n        t = jj_consume_token(IDENTIFIER);\n        s.append(\".\"+t.image);\n      }\n       jjtree.closeNodeScope(jjtn000, true);\n       jjtc000 = false;\n       jjtreeCloseNodeScope(jjtn000);\n        jjtn000.text = s.toString();\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n * Expression syntax follows.\n */\n  final public void Expression() throws ParseException {\n    if (jj_2_9(2147483647)) {\n      Assignment();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ConditionalExpression();\n        break;\n      default:\n        jj_la1[16] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void Assignment() throws ParseException {\n /*@bgen(jjtree) Assignment */\n  BSHAssignment jjtn000 = new BSHAssignment(JJTASSIGNMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);int op ;\n    try {\n      LHSPrimaryExpression();\n      op = AssignmentOperator();\n    jjtn000.operator = op;\n      Expression();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public int AssignmentOperator() throws ParseException {\n  Token t;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case ASSIGN:\n      jj_consume_token(ASSIGN);\n      break;\n    case STARASSIGN:\n      jj_consume_token(STARASSIGN);\n      break;\n    case SLASHASSIGN:\n      jj_consume_token(SLASHASSIGN);\n      break;\n    case MODASSIGN:\n      jj_consume_token(MODASSIGN);\n      break;\n    case PLUSASSIGN:\n      jj_consume_token(PLUSASSIGN);\n      break;\n    case MINUSASSIGN:\n      jj_consume_token(MINUSASSIGN);\n      break;\n    case ANDASSIGN:\n      jj_consume_token(ANDASSIGN);\n      break;\n    case XORASSIGN:\n      jj_consume_token(XORASSIGN);\n      break;\n    case ORASSIGN:\n      jj_consume_token(ORASSIGN);\n      break;\n    case LSHIFTASSIGN:\n      jj_consume_token(LSHIFTASSIGN);\n      break;\n    case LSHIFTASSIGNX:\n      jj_consume_token(LSHIFTASSIGNX);\n      break;\n    case RSIGNEDSHIFTASSIGN:\n      jj_consume_token(RSIGNEDSHIFTASSIGN);\n      break;\n    case RSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RSIGNEDSHIFTASSIGNX);\n      break;\n    case RUNSIGNEDSHIFTASSIGN:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGN);\n      break;\n    case RUNSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGNX);\n      break;\n    default:\n      jj_la1[17] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n        t = getToken(0);\n        {if (true) return t.kind;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public void ConditionalExpression() throws ParseException {\n    ConditionalOrExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case HOOK:\n      jj_consume_token(HOOK);\n      Expression();\n      jj_consume_token(COLON);\n                                                     BSHTernaryExpression jjtn001 = new BSHTernaryExpression(JJTTERNARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n        ConditionalExpression();\n      } catch (Throwable jjte001) {\n                                                     if (jjtc001) {\n                                                       jjtree.clearNodeScope(jjtn001);\n                                                       jjtc001 = false;\n                                                     } else {\n                                                       jjtree.popNode();\n                                                     }\n                                                     if (jjte001 instanceof RuntimeException) {\n                                                       {if (true) throw (RuntimeException)jjte001;}\n                                                     }\n                                                     if (jjte001 instanceof ParseException) {\n                                                       {if (true) throw (ParseException)jjte001;}\n                                                     }\n                                                     {if (true) throw (Error)jjte001;}\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  3);\n                                                       jjtreeCloseNodeScope(jjtn001);\n                                                     }\n      }\n      break;\n    default:\n      jj_la1[18] = jj_gen;\n      ;\n    }\n  }\n\n  final public void ConditionalOrExpression() throws ParseException {\n  Token t=null;\n    ConditionalAndExpression();\n    label_5:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n      case BOOL_ORX:\n        ;\n        break;\n      default:\n        jj_la1[19] = jj_gen;\n        break label_5;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n        t = jj_consume_token(BOOL_OR);\n        break;\n      case BOOL_ORX:\n        t = jj_consume_token(BOOL_ORX);\n        break;\n      default:\n        jj_la1[20] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ConditionalAndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void ConditionalAndExpression() throws ParseException {\n  Token t=null;\n    InclusiveOrExpression();\n    label_6:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n      case BOOL_ANDX:\n        ;\n        break;\n      default:\n        jj_la1[21] = jj_gen;\n        break label_6;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n        t = jj_consume_token(BOOL_AND);\n        break;\n      case BOOL_ANDX:\n        t = jj_consume_token(BOOL_ANDX);\n        break;\n      default:\n        jj_la1[22] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void InclusiveOrExpression() throws ParseException {\n  Token t=null;\n    ExclusiveOrExpression();\n    label_7:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n      case BIT_ORX:\n        ;\n        break;\n      default:\n        jj_la1[23] = jj_gen;\n        break label_7;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n        t = jj_consume_token(BIT_OR);\n        break;\n      case BIT_ORX:\n        t = jj_consume_token(BIT_ORX);\n        break;\n      default:\n        jj_la1[24] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ExclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void ExclusiveOrExpression() throws ParseException {\n  Token t=null;\n    AndExpression();\n    label_8:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case XOR:\n        ;\n        break;\n      default:\n        jj_la1[25] = jj_gen;\n        break label_8;\n      }\n      t = jj_consume_token(XOR);\n      AndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void AndExpression() throws ParseException {\n  Token t=null;\n    EqualityExpression();\n    label_9:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n      case BIT_ANDX:\n        ;\n        break;\n      default:\n        jj_la1[26] = jj_gen;\n        break label_9;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n        t = jj_consume_token(BIT_AND);\n        break;\n      case BIT_ANDX:\n        t = jj_consume_token(BIT_ANDX);\n        break;\n      default:\n        jj_la1[27] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      EqualityExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void EqualityExpression() throws ParseException {\n  Token t = null;\n    InstanceOfExpression();\n    label_10:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n      case NE:\n        ;\n        break;\n      default:\n        jj_la1[28] = jj_gen;\n        break label_10;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n        t = jj_consume_token(EQ);\n        break;\n      case NE:\n        t = jj_consume_token(NE);\n        break;\n      default:\n        jj_la1[29] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InstanceOfExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void InstanceOfExpression() throws ParseException {\n  Token t = null;\n    RelationalExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case INSTANCEOF:\n      t = jj_consume_token(INSTANCEOF);\n      Type();\n                              BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                              boolean jjtc001 = true;\n                              jjtree.openNodeScope(jjtn001);\n                              jjtreeOpenNodeScope(jjtn001);\n      try {\n                              jjtree.closeNodeScope(jjtn001,  2);\n                              jjtc001 = false;\n                              jjtreeCloseNodeScope(jjtn001);\n                              jjtn001.kind = t.kind;\n      } finally {\n                              if (jjtc001) {\n                                jjtree.closeNodeScope(jjtn001,  2);\n                                jjtreeCloseNodeScope(jjtn001);\n                              }\n      }\n      break;\n    default:\n      jj_la1[30] = jj_gen;\n      ;\n    }\n  }\n\n  final public void RelationalExpression() throws ParseException {\n  Token t = null;\n    ShiftExpression();\n    label_11:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case GT:\n      case GTX:\n      case LT:\n      case LTX:\n      case LE:\n      case LEX:\n      case GE:\n      case GEX:\n        ;\n        break;\n      default:\n        jj_la1[31] = jj_gen;\n        break label_11;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LT:\n        t = jj_consume_token(LT);\n        break;\n      case LTX:\n        t = jj_consume_token(LTX);\n        break;\n      case GT:\n        t = jj_consume_token(GT);\n        break;\n      case GTX:\n        t = jj_consume_token(GTX);\n        break;\n      case LE:\n        t = jj_consume_token(LE);\n        break;\n      case LEX:\n        t = jj_consume_token(LEX);\n        break;\n      case GE:\n        t = jj_consume_token(GE);\n        break;\n      case GEX:\n        t = jj_consume_token(GEX);\n        break;\n      default:\n        jj_la1[32] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ShiftExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);\n    }\n      }\n    }\n  }\n\n  final public void ShiftExpression() throws ParseException {\n  Token t = null;\n    AdditiveExpression();\n    label_12:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n      case LSHIFTX:\n      case RSIGNEDSHIFT:\n      case RSIGNEDSHIFTX:\n      case RUNSIGNEDSHIFT:\n      case RUNSIGNEDSHIFTX:\n        ;\n        break;\n      default:\n        jj_la1[33] = jj_gen;\n        break label_12;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n        t = jj_consume_token(LSHIFT);\n        break;\n      case LSHIFTX:\n        t = jj_consume_token(LSHIFTX);\n        break;\n      case RSIGNEDSHIFT:\n        t = jj_consume_token(RSIGNEDSHIFT);\n        break;\n      case RSIGNEDSHIFTX:\n        t = jj_consume_token(RSIGNEDSHIFTX);\n        break;\n      case RUNSIGNEDSHIFT:\n        t = jj_consume_token(RUNSIGNEDSHIFT);\n        break;\n      case RUNSIGNEDSHIFTX:\n        t = jj_consume_token(RUNSIGNEDSHIFTX);\n        break;\n      default:\n        jj_la1[34] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      AdditiveExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);\n    }\n      }\n    }\n  }\n\n  final public void AdditiveExpression() throws ParseException {\n  Token t = null;\n    MultiplicativeExpression();\n    label_13:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n      case MINUS:\n        ;\n        break;\n      default:\n        jj_la1[35] = jj_gen;\n        break label_13;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_la1[36] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      MultiplicativeExpression();\n                                                     BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n                                                     jjtree.closeNodeScope(jjtn001,  2);\n                                                     jjtc001 = false;\n                                                     jjtreeCloseNodeScope(jjtn001);\n                                                     jjtn001.kind = t.kind;\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  2);\n                                                       jjtreeCloseNodeScope(jjtn001);\n                                                     }\n      }\n    }\n  }\n\n  final public void MultiplicativeExpression() throws ParseException {\n  Token t = null;\n    UnaryExpression();\n    label_14:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n      case SLASH:\n      case MOD:\n        ;\n        break;\n      default:\n        jj_la1[37] = jj_gen;\n        break label_14;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n        t = jj_consume_token(STAR);\n        break;\n      case SLASH:\n        t = jj_consume_token(SLASH);\n        break;\n      case MOD:\n        t = jj_consume_token(MOD);\n        break;\n      default:\n        jj_la1[38] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n                      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                      boolean jjtc001 = true;\n                      jjtree.openNodeScope(jjtn001);\n                      jjtreeOpenNodeScope(jjtn001);\n      try {\n                      jjtree.closeNodeScope(jjtn001,  2);\n                      jjtc001 = false;\n                      jjtreeCloseNodeScope(jjtn001);\n                      jjtn001.kind = t.kind;\n      } finally {\n                      if (jjtc001) {\n                        jjtree.closeNodeScope(jjtn001,  2);\n                        jjtreeCloseNodeScope(jjtn001);\n                      }\n      }\n    }\n  }\n\n  final public void UnaryExpression() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case PLUS:\n    case MINUS:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_la1[39] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    case INCR:\n      PreIncrementExpression();\n      break;\n    case DECR:\n      PreDecrementExpression();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n      UnaryExpressionNotPlusMinus();\n      break;\n    default:\n      jj_la1[40] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n  }\n\n  final public void PreIncrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(INCR);\n    LHSPrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n    }\n  }\n\n  final public void PreDecrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(DECR);\n    LHSPrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n    }\n  }\n\n  final public void UnaryExpressionNotPlusMinus() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case BANG:\n    case TILDE:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TILDE:\n        t = jj_consume_token(TILDE);\n        break;\n      case BANG:\n        t = jj_consume_token(BANG);\n        break;\n      default:\n        jj_la1[41] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    default:\n      jj_la1[42] = jj_gen;\n      if (jj_2_10(2147483647)) {\n        CastExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FALSE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case SHORT:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n          PostfixExpression();\n          break;\n        default:\n          jj_la1[43] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    }\n  }\n\n// This production is to determine lookahead only.\n  final public void CastLookahead() throws ParseException {\n    if (jj_2_11(2)) {\n      jj_consume_token(LPAREN);\n      PrimitiveType();\n    } else if (jj_2_12(2147483647)) {\n      jj_consume_token(LPAREN);\n      AmbiguousName();\n      jj_consume_token(LBRACKET);\n      jj_consume_token(RBRACKET);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LPAREN:\n        jj_consume_token(LPAREN);\n        AmbiguousName();\n        jj_consume_token(RPAREN);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case TILDE:\n          jj_consume_token(TILDE);\n          break;\n        case BANG:\n          jj_consume_token(BANG);\n          break;\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          break;\n        case IDENTIFIER:\n          jj_consume_token(IDENTIFIER);\n          break;\n        case NEW:\n          jj_consume_token(NEW);\n          break;\n        case FALSE:\n        case NULL:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n          Literal();\n          break;\n        default:\n          jj_la1[44] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n        break;\n      default:\n        jj_la1[45] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void PostfixExpression() throws ParseException {\n  Token t = null;\n    if (jj_2_13(2147483647)) {\n      LHSPrimaryExpression();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INCR:\n        t = jj_consume_token(INCR);\n        break;\n      case DECR:\n        t = jj_consume_token(DECR);\n        break;\n      default:\n        jj_la1[46] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n                                BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n                                boolean jjtc001 = true;\n                                jjtree.openNodeScope(jjtn001);\n                                jjtreeOpenNodeScope(jjtn001);\n      try {\n                                jjtree.closeNodeScope(jjtn001,  1);\n                                jjtc001 = false;\n                                jjtreeCloseNodeScope(jjtn001);\n                jjtn001.kind = t.kind; jjtn001.postfix = true;\n      } finally {\n                                if (jjtc001) {\n                                  jjtree.closeNodeScope(jjtn001,  1);\n                                  jjtreeCloseNodeScope(jjtn001);\n                                }\n      }\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n        PrimaryExpression();\n        break;\n      default:\n        jj_la1[47] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void CastExpression() throws ParseException {\n /*@bgen(jjtree) CastExpression */\n  BSHCastExpression jjtn000 = new BSHCastExpression(JJTCASTEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_14(2147483647)) {\n        jj_consume_token(LPAREN);\n        Type();\n        jj_consume_token(RPAREN);\n        UnaryExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          Type();\n          jj_consume_token(RPAREN);\n          UnaryExpressionNotPlusMinus();\n          break;\n        default:\n          jj_la1[48] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void PrimaryExpression() throws ParseException {\n                                               /*@bgen(jjtree) PrimaryExpression */\n  BSHPrimaryExpression jjtn000 = new BSHPrimaryExpression(JJTPRIMARYEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      PrimaryPrefix();\n      label_15:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACE:\n        case LBRACKET:\n        case DOT:\n          ;\n          break;\n        default:\n          jj_la1[49] = jj_gen;\n          break label_15;\n        }\n        PrimarySuffix();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void MethodInvocation() throws ParseException {\n                                             /*@bgen(jjtree) MethodInvocation */\n  BSHMethodInvocation jjtn000 = new BSHMethodInvocation(JJTMETHODINVOCATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      AmbiguousName();\n      Arguments();\n    } catch (Throwable jjte000) {\n     if (jjtc000) {\n       jjtree.clearNodeScope(jjtn000);\n       jjtc000 = false;\n     } else {\n       jjtree.popNode();\n     }\n     if (jjte000 instanceof RuntimeException) {\n       {if (true) throw (RuntimeException)jjte000;}\n     }\n     if (jjte000 instanceof ParseException) {\n       {if (true) throw (ParseException)jjte000;}\n     }\n     {if (true) throw (Error)jjte000;}\n    } finally {\n     if (jjtc000) {\n       jjtree.closeNodeScope(jjtn000, true);\n       jjtreeCloseNodeScope(jjtn000);\n     }\n    }\n  }\n\n  final public void PrimaryPrefix() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case FALSE:\n    case NULL:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n      Literal();\n      break;\n    case LPAREN:\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      break;\n    case NEW:\n      AllocationExpression();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case SHORT:\n    case IDENTIFIER:\n      if (jj_2_16(2147483647)) {\n        MethodInvocation();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case SHORT:\n        case IDENTIFIER:\n          if (jj_2_15(2147483647)) {\n            Type();\n          } else {\n            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n            case IDENTIFIER:\n              AmbiguousName();\n              break;\n            default:\n              jj_la1[50] = jj_gen;\n              jj_consume_token(-1);\n              throw new ParseException();\n            }\n          }\n          break;\n        default:\n          jj_la1[51] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n      break;\n    default:\n      jj_la1[52] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n  }\n\n  final public void PrimarySuffix() throws ParseException {\n /*@bgen(jjtree) PrimarySuffix */\n    BSHPrimarySuffix jjtn000 = new BSHPrimarySuffix(JJTPRIMARYSUFFIX);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_17(2)) {\n        jj_consume_token(DOT);\n        jj_consume_token(CLASS);\n                jjtree.closeNodeScope(jjtn000, true);\n                jjtc000 = false;\n                jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.CLASS;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.INDEX;\n          break;\n        case DOT:\n          jj_consume_token(DOT);\n          t = jj_consume_token(IDENTIFIER);\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LPAREN:\n            Arguments();\n            break;\n          default:\n            jj_la1[53] = jj_gen;\n            ;\n          }\n                                         jjtree.closeNodeScope(jjtn000, true);\n                                         jjtc000 = false;\n                                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.NAME;\n        jjtn000.field = t.image;\n          break;\n        case LBRACE:\n          jj_consume_token(LBRACE);\n          Expression();\n          jj_consume_token(RBRACE);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.PROPERTY;\n          break;\n        default:\n          jj_la1[54] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tBegin LHS part of the grammar --\n\n\tThe reason this stuff is duplicated (e.g. LHSPrimaryPrefix and \n\tPrimaryPrefix) is that the whole grammar splits based on whether we \n\tare preparig to do an assignment or not.  This is an important issue \n\tto revisit in the future.\n*/\n/**\n\tThe method invocation is here to force this to an object type in order \n\tto simplify the suffix processing.  \n*/\n  final public void LHSPrimaryPrefix() throws ParseException {\n    if (jj_2_18(2147483647)) {\n      MethodInvocation();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        AmbiguousName();\n        break;\n      default:\n        jj_la1[55] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void LHSPrimaryExpression() throws ParseException {\n                                                     /*@bgen(jjtree) LHSPrimaryExpression */\n  BSHLHSPrimaryExpression jjtn000 = new BSHLHSPrimaryExpression(JJTLHSPRIMARYEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      LHSPrimaryPrefix();\n      label_16:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACE:\n        case LBRACKET:\n        case DOT:\n          ;\n          break;\n        default:\n          jj_la1[56] = jj_gen;\n          break label_16;\n        }\n        LHSPrimarySuffix();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void LHSPrimarySuffix() throws ParseException {\n /*@bgen(jjtree) LHSPrimarySuffix */\n    BSHLHSPrimarySuffix jjtn000 = new BSHLHSPrimarySuffix(JJTLHSPRIMARYSUFFIX);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t=null, t1, t2 = null;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACKET:\n        jj_consume_token(LBRACKET);\n        Expression();\n        jj_consume_token(RBRACKET);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.INDEX;\n        break;\n      case DOT:\n        jj_consume_token(DOT);\n        t1 = jj_consume_token(IDENTIFIER);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LPAREN:\n          Arguments();\n          jj_consume_token(DOT);\n          t2 = jj_consume_token(IDENTIFIER);\n          break;\n        default:\n          jj_la1[57] = jj_gen;\n          ;\n        }\n                                                                jjtree.closeNodeScope(jjtn000, true);\n                                                                jjtc000 = false;\n                                                                jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.NAME;\n        if ( t2 == null )\n            jjtn000.field = t1.image;\n        else {\n            jjtn000.method = t1.image;\n            jjtn000.field = t2.image;\n        }\n        break;\n      case LBRACE:\n        jj_consume_token(LBRACE);\n        Expression();\n        jj_consume_token(RBRACE);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.PROPERTY;\n        break;\n      default:\n        jj_la1[58] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\t-- End LHS part of the grammar\n*/\n  final public void Literal() throws ParseException {\n /*@bgen(jjtree) Literal */\n    BSHLiteral jjtn000 = new BSHLiteral(JJTLITERAL);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token x;\n    boolean b;\n    String literal;\n    char ch;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INTEGER_LITERAL:\n        x = jj_consume_token(INTEGER_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'l' || ch == 'L')\n    {\n        literal = literal.substring(0,literal.length()-1);\n\n        // This really should be Long.decode, but there isn't one. As a result,\n        // hex and octal literals ending in 'l' or 'L' don't work.\n        jjtn000.value = new Primitive( new Long( literal ) );\n    }\n    else\n        jjtn000.value = new Primitive( Integer.decode( literal ) );\n        break;\n      case FLOATING_POINT_LITERAL:\n        x = jj_consume_token(FLOATING_POINT_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'f' || ch == 'F')\n    {\n        literal = literal.substring(0,literal.length()-1);\n        jjtn000.value = new Primitive( new Float( literal ) );\n    }\n    else\n    {\n        if(ch == 'd' || ch == 'D')\n            literal = literal.substring(0,literal.length()-1);\n\n        jjtn000.value = new Primitive( new Double( literal ) );\n    }\n        break;\n      case CHARACTER_LITERAL:\n        x = jj_consume_token(CHARACTER_LITERAL);\n                            jjtree.closeNodeScope(jjtn000, true);\n                            jjtc000 = false;\n                            jjtreeCloseNodeScope(jjtn000);\n                try {\n                jjtn000.charSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw new ParseException(\"Error parsing character: \"+x.image);}\n                }\n        break;\n      case STRING_LITERAL:\n        x = jj_consume_token(STRING_LITERAL);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n                try {\n                        jjtn000.stringSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw new ParseException(\"Error parsing string: \"+x.image);}\n                }\n        break;\n      case FALSE:\n      case TRUE:\n        b = BooleanLiteral();\n                          jjtree.closeNodeScope(jjtn000, true);\n                          jjtc000 = false;\n                          jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = new Primitive( new Boolean(b) );\n        break;\n      case NULL:\n        NullLiteral();\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.NULL;\n        break;\n      case VOID:\n        VoidLiteral();\n                 jjtree.closeNodeScope(jjtn000, true);\n                 jjtc000 = false;\n                 jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.VOID;\n        break;\n      default:\n        jj_la1[59] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public boolean BooleanLiteral() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case TRUE:\n      jj_consume_token(TRUE);\n           {if (true) return true;}\n      break;\n    case FALSE:\n      jj_consume_token(FALSE);\n            {if (true) return false;}\n      break;\n    default:\n      jj_la1[60] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public void NullLiteral() throws ParseException {\n    jj_consume_token(NULL);\n  }\n\n  final public void VoidLiteral() throws ParseException {\n    jj_consume_token(VOID);\n  }\n\n  final public void Arguments() throws ParseException {\n /*@bgen(jjtree) Arguments */\n  BSHArguments jjtn000 = new BSHArguments(JJTARGUMENTS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ArgumentList();\n        break;\n      default:\n        jj_la1[61] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n// leave these on the stack for Arguments() to handle\n  final public void ArgumentList() throws ParseException {\n    Expression();\n    label_17:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        ;\n        break;\n      default:\n        jj_la1[62] = jj_gen;\n        break label_17;\n      }\n      jj_consume_token(COMMA);\n      Expression();\n    }\n  }\n\n  final public void AllocationExpression() throws ParseException {\n /*@bgen(jjtree) AllocationExpression */\n  BSHAllocationExpression jjtn000 = new BSHAllocationExpression(JJTALLOCATIONEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_20(2)) {\n        jj_consume_token(NEW);\n        PrimitiveType();\n        ArrayDimensions();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case NEW:\n          jj_consume_token(NEW);\n          AmbiguousName();\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LBRACKET:\n            ArrayDimensions();\n            break;\n          case LPAREN:\n            Arguments();\n            if (jj_2_19(2)) {\n              Block();\n            } else {\n              ;\n            }\n            break;\n          default:\n            jj_la1[63] = jj_gen;\n            jj_consume_token(-1);\n            throw new ParseException();\n          }\n          break;\n        default:\n          jj_la1[64] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ArrayDimensions() throws ParseException {\n /*@bgen(jjtree) ArrayDimensions */\n  BSHArrayDimensions jjtn000 = new BSHArrayDimensions(JJTARRAYDIMENSIONS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_22(2)) {\n        label_18:\n        while (true) {\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                                        jjtn000.addArrayDimension();\n          if (jj_2_21(2)) {\n            ;\n          } else {\n            break label_18;\n          }\n        }\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          label_19:\n          while (true) {\n            jj_consume_token(LBRACKET);\n            jj_consume_token(RBRACKET);\n              jjtn000.addArrayDimension();\n            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n            case LBRACKET:\n              ;\n              break;\n            default:\n              jj_la1[65] = jj_gen;\n              break label_19;\n            }\n          }\n          ArrayInitializer();\n          break;\n        default:\n          jj_la1[66] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n * Statement syntax follows.\n */\n  final public void Statement() throws ParseException {\n    if (jj_2_23(2)) {\n      LabeledStatement();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACE:\n        Block();\n        break;\n      case SEMICOLON:\n        EmptyStatement();\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        StatementExpression();\n        jj_consume_token(SEMICOLON);\n        break;\n      case SWITCH:\n        SwitchStatement();\n        break;\n      case IF:\n        IfStatement();\n        break;\n      case WHILE:\n        WhileStatement();\n        break;\n      case DO:\n        DoStatement();\n        break;\n      case FOR:\n        ForStatement();\n        break;\n      case BREAK:\n        BreakStatement();\n        break;\n      case CONTINUE:\n        ContinueStatement();\n        break;\n      case RETURN:\n        ReturnStatement();\n        break;\n      case THROW:\n        ThrowStatement();\n        break;\n      case TRY:\n        TryStatement();\n        break;\n      default:\n        jj_la1[67] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void LabeledStatement() throws ParseException {\n    jj_consume_token(IDENTIFIER);\n    jj_consume_token(COLON);\n    Statement();\n  }\n\n  final public void Block() throws ParseException {\n /*@bgen(jjtree) Block */\n  BSHBlock jjtn000 = new BSHBlock(JJTBLOCK);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      label_20:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BREAK:\n        case BYTE:\n        case CHAR:\n        case CONTINUE:\n        case DO:\n        case DOUBLE:\n        case FALSE:\n        case FINAL:\n        case FLOAT:\n        case FOR:\n        case IF:\n        case IMPORT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case RETURN:\n        case SHORT:\n        case SWITCH:\n        case THROW:\n        case TRUE:\n        case TRY:\n        case VOID:\n        case WHILE:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case FORMAL_COMMENT:\n        case IDENTIFIER:\n        case LPAREN:\n        case LBRACE:\n        case SEMICOLON:\n        case INCR:\n        case DECR:\n          ;\n          break;\n        default:\n          jj_la1[68] = jj_gen;\n          break label_20;\n        }\n        BlockStatement();\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void BlockStatement() throws ParseException {\n    if (jj_2_24(2147483647)) {\n      MethodDeclaration();\n    } else if (jj_2_25(2147483647)) {\n      TypedVariableDeclaration();\n      jj_consume_token(SEMICOLON);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BREAK:\n      case BYTE:\n      case CHAR:\n      case CONTINUE:\n      case DO:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case FOR:\n      case IF:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case RETURN:\n      case SHORT:\n      case SWITCH:\n      case THROW:\n      case TRUE:\n      case TRY:\n      case VOID:\n      case WHILE:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case LBRACE:\n      case SEMICOLON:\n      case INCR:\n      case DECR:\n        Statement();\n        break;\n      case IMPORT:\n        ImportDeclaration();\n        break;\n      case FORMAL_COMMENT:\n        FormalComment();\n        break;\n      default:\n        jj_la1[69] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void FormalComment() throws ParseException {\n /*@bgen(jjtree) #FormalComment( retainComments) */\n        BSHFormalComment jjtn000 = new BSHFormalComment(JJTFORMALCOMMENT);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      t = jj_consume_token(FORMAL_COMMENT);\n                              jjtree.closeNodeScope(jjtn000,  retainComments);\n                              jjtc000 = false;\n                              jjtreeCloseNodeScope(jjtn000);\n                jjtn000.text=t.image;\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000,  retainComments);\n            jjtreeCloseNodeScope(jjtn000);\n          }\n    }\n  }\n\n  final public void EmptyStatement() throws ParseException {\n    jj_consume_token(SEMICOLON);\n  }\n\n  final public void StatementExpression() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case INCR:\n      PreIncrementExpression();\n      break;\n    case DECR:\n      PreDecrementExpression();\n      break;\n    default:\n      jj_la1[70] = jj_gen;\n      if (jj_2_26(2147483647)) {\n        Assignment();\n\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FALSE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case SHORT:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n          PostfixExpression();\n          break;\n        default:\n          jj_la1[71] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    }\n  }\n\n  final public void SwitchStatement() throws ParseException {\n /*@bgen(jjtree) SwitchStatement */\n  BSHSwitchStatement jjtn000 = new BSHSwitchStatement(JJTSWITCHSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(SWITCH);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(LBRACE);\n      label_21:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CASE:\n        case _DEFAULT:\n          ;\n          break;\n        default:\n          jj_la1[72] = jj_gen;\n          break label_21;\n        }\n        SwitchLabel();\n        label_22:\n        while (true) {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case BOOLEAN:\n          case BREAK:\n          case BYTE:\n          case CHAR:\n          case CONTINUE:\n          case DO:\n          case DOUBLE:\n          case FALSE:\n          case FINAL:\n          case FLOAT:\n          case FOR:\n          case IF:\n          case IMPORT:\n          case INT:\n          case LONG:\n          case NEW:\n          case NULL:\n          case RETURN:\n          case SHORT:\n          case SWITCH:\n          case THROW:\n          case TRUE:\n          case TRY:\n          case VOID:\n          case WHILE:\n          case INTEGER_LITERAL:\n          case FLOATING_POINT_LITERAL:\n          case CHARACTER_LITERAL:\n          case STRING_LITERAL:\n          case FORMAL_COMMENT:\n          case IDENTIFIER:\n          case LPAREN:\n          case LBRACE:\n          case SEMICOLON:\n          case INCR:\n          case DECR:\n            ;\n            break;\n          default:\n            jj_la1[73] = jj_gen;\n            break label_22;\n          }\n          BlockStatement();\n        }\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void SwitchLabel() throws ParseException {\n /*@bgen(jjtree) SwitchLabel */\n  BSHSwitchLabel jjtn000 = new BSHSwitchLabel(JJTSWITCHLABEL);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CASE:\n        jj_consume_token(CASE);\n        Expression();\n        jj_consume_token(COLON);\n        break;\n      case _DEFAULT:\n        jj_consume_token(_DEFAULT);\n        jj_consume_token(COLON);\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n                  jjtn000.isDefault = true;\n        break;\n      default:\n        jj_la1[74] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void IfStatement() throws ParseException {\n /*@bgen(jjtree) IfStatement */\n  BSHIfStatement jjtn000 = new BSHIfStatement(JJTIFSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(IF);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ELSE:\n        jj_consume_token(ELSE);\n        Statement();\n        break;\n      default:\n        jj_la1[75] = jj_gen;\n        ;\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void WhileStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tDo statement is just a While statement with a special hook to execute\n\tat least once.\n*/\n  final public void DoStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(DO);\n      Statement();\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(SEMICOLON);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.isDoStatement=true;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ForStatement() throws ParseException {\n /*@bgen(jjtree) ForStatement */\n  BSHForStatement jjtn000 = new BSHForStatement(JJTFORSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(FOR);\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FINAL:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        ForInit();\n                          jjtn000.hasForInit=true;\n        break;\n      default:\n        jj_la1[76] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n                         jjtn000.hasExpression=true;\n        break;\n      default:\n        jj_la1[77] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        ForUpdate();\n                        jjtn000.hasForUpdate=true;\n        break;\n      default:\n        jj_la1[78] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ForInit() throws ParseException {\n  Token t = null;\n    if (jj_2_27(2147483647)) {\n      TypedVariableDeclaration();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        StatementExpressionList();\n        break;\n      default:\n        jj_la1[79] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n/**\n\tDeclared a typed variable.\n\tUntyped variables are not declared per-se but are handled by the part\n\tof the grammar that deals with assignments.\n*/\n  final public void TypedVariableDeclaration() throws ParseException {\n /*@bgen(jjtree) TypedVariableDeclaration */\n        BSHTypedVariableDeclaration jjtn000 = new BSHTypedVariableDeclaration(JJTTYPEDVARIABLEDECLARATION);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FINAL:\n        t = jj_consume_token(FINAL);\n        break;\n      default:\n        jj_la1[80] = jj_gen;\n        ;\n      }\n      Type();\n      VariableDeclarator();\n      label_23:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          jj_la1[81] = jj_gen;\n          break label_23;\n        }\n        jj_consume_token(COMMA);\n        VariableDeclarator();\n      }\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n        jjtn000.isFinal = (t!=null);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void StatementExpressionList() throws ParseException {\n /*@bgen(jjtree) StatementExpressionList */\n  BSHStatementExpressionList jjtn000 = new BSHStatementExpressionList(JJTSTATEMENTEXPRESSIONLIST);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      StatementExpression();\n      label_24:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          jj_la1[82] = jj_gen;\n          break label_24;\n        }\n        jj_consume_token(COMMA);\n        StatementExpression();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ForUpdate() throws ParseException {\n    StatementExpressionList();\n  }\n\n  final public void BreakStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(BREAK);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        jj_la1[83] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                 jjtree.closeNodeScope(jjtn000, true);\n                                 jjtc000 = false;\n                                 jjtreeCloseNodeScope(jjtn000);\n                                 jjtn000.kind = BREAK;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ContinueStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(CONTINUE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        jj_la1[84] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                    jjtree.closeNodeScope(jjtn000, true);\n                                    jjtc000 = false;\n                                    jjtreeCloseNodeScope(jjtn000);\n                                    jjtn000.kind = CONTINUE;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ReturnStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(RETURN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n        break;\n      default:\n        jj_la1[85] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                  jjtree.closeNodeScope(jjtn000, true);\n                                  jjtc000 = false;\n                                  jjtreeCloseNodeScope(jjtn000);\n                                  jjtn000.kind = RETURN;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ThrowStatement() throws ParseException {\n /*@bgen(jjtree) ThrowStatement */\n  BSHThrowStatement jjtn000 = new BSHThrowStatement(JJTTHROWSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(THROW);\n      Expression();\n      jj_consume_token(SEMICOLON);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void TryStatement() throws ParseException {\n /*@bgen(jjtree) TryStatement */\n  BSHTryStatement jjtn000 = new BSHTryStatement(JJTTRYSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(TRY);\n      Block();\n      label_25:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CATCH:\n          ;\n          break;\n        default:\n          jj_la1[86] = jj_gen;\n          break label_25;\n        }\n        jj_consume_token(CATCH);\n        jj_consume_token(LPAREN);\n        FormalParameter();\n        jj_consume_token(RPAREN);\n        Block();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FINALLY:\n        jj_consume_token(FINALLY);\n        Block();\n        break;\n      default:\n        jj_la1[87] = jj_gen;\n        ;\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final private boolean jj_2_1(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_1();\n    jj_save(0, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_2(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_2();\n    jj_save(1, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_3(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_3();\n    jj_save(2, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_4(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_4();\n    jj_save(3, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_5(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_5();\n    jj_save(4, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_6(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_6();\n    jj_save(5, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_7(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_7();\n    jj_save(6, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_8(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_8();\n    jj_save(7, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_9(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_9();\n    jj_save(8, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_10(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_10();\n    jj_save(9, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_11(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_11();\n    jj_save(10, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_12(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_12();\n    jj_save(11, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_13(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_13();\n    jj_save(12, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_14(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_14();\n    jj_save(13, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_15(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_15();\n    jj_save(14, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_16(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_16();\n    jj_save(15, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_17(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_17();\n    jj_save(16, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_18(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_18();\n    jj_save(17, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_19(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_19();\n    jj_save(18, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_20(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_20();\n    jj_save(19, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_21(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_21();\n    jj_save(20, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_22(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_22();\n    jj_save(21, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_23(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_23();\n    jj_save(22, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_24(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_24();\n    jj_save(23, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_25(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_25();\n    jj_save(24, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_26(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_26();\n    jj_save(25, xla);\n    return retval;\n  }\n\n  final private boolean jj_2_27(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_27();\n    jj_save(26, xla);\n    return retval;\n  }\n\n  final private boolean jj_3R_33() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_11()) {\n    jj_scanpos = xsp;\n    if (jj_3R_68()) {\n    jj_scanpos = xsp;\n    if (jj_3R_69()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_11() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_284() {\n    if (jj_scan_token(BANG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_264() {\n    if (jj_scan_token(MOD)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_279() {\n    if (jj_3R_207()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_278() {\n    if (jj_3R_285()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_283() {\n    if (jj_scan_token(TILDE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_271() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_277()) {\n    jj_scanpos = xsp;\n    if (jj_3R_278()) {\n    jj_scanpos = xsp;\n    if (jj_3R_279()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_277() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_283()) {\n    jj_scanpos = xsp;\n    if (jj_3R_284()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_244()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_263() {\n    if (jj_scan_token(SLASH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_239() {\n    if (jj_scan_token(RSIGNEDSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_206() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_262() {\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_205() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_245() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_262()) {\n    jj_scanpos = xsp;\n    if (jj_3R_263()) {\n    jj_scanpos = xsp;\n    if (jj_3R_264()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_244()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_238() {\n    if (jj_scan_token(RSIGNEDSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_270() {\n    if (jj_scan_token(MINUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_231() {\n    if (jj_scan_token(GEX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_261() {\n    if (jj_3R_271()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_260() {\n    if (jj_3R_206()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_259() {\n    if (jj_3R_205()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_227() {\n    if (jj_scan_token(GTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_269() {\n    if (jj_scan_token(PLUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_244() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_258()) {\n    jj_scanpos = xsp;\n    if (jj_3R_259()) {\n    jj_scanpos = xsp;\n    if (jj_3R_260()) {\n    jj_scanpos = xsp;\n    if (jj_3R_261()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_258() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_269()) {\n    jj_scanpos = xsp;\n    if (jj_3R_270()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_244()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_247() {\n    if (jj_scan_token(MINUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_230() {\n    if (jj_scan_token(GE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_234() {\n    if (jj_3R_244()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_245()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_241() {\n    if (jj_scan_token(RUNSIGNEDSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_226() {\n    if (jj_scan_token(GT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_237() {\n    if (jj_scan_token(LSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_246() {\n    if (jj_scan_token(PLUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_235() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_246()) {\n    jj_scanpos = xsp;\n    if (jj_3R_247()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_234()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_219() {\n    if (jj_scan_token(NE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_222() {\n    if (jj_3R_234()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_235()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_229() {\n    if (jj_scan_token(LEX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_240() {\n    if (jj_scan_token(RUNSIGNEDSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_225() {\n    if (jj_scan_token(LTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_236() {\n    if (jj_scan_token(LSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_223() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_236()) {\n    jj_scanpos = xsp;\n    if (jj_3R_237()) {\n    jj_scanpos = xsp;\n    if (jj_3R_238()) {\n    jj_scanpos = xsp;\n    if (jj_3R_239()) {\n    jj_scanpos = xsp;\n    if (jj_3R_240()) {\n    jj_scanpos = xsp;\n    if (jj_3R_241()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_222()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_218() {\n    if (jj_scan_token(EQ)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_211() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_218()) {\n    jj_scanpos = xsp;\n    if (jj_3R_219()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_210()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_220() {\n    if (jj_3R_222()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_223()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_228() {\n    if (jj_scan_token(LE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_224() {\n    if (jj_scan_token(LT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_221() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_224()) {\n    jj_scanpos = xsp;\n    if (jj_3R_225()) {\n    jj_scanpos = xsp;\n    if (jj_3R_226()) {\n    jj_scanpos = xsp;\n    if (jj_3R_227()) {\n    jj_scanpos = xsp;\n    if (jj_3R_228()) {\n    jj_scanpos = xsp;\n    if (jj_3R_229()) {\n    jj_scanpos = xsp;\n    if (jj_3R_230()) {\n    jj_scanpos = xsp;\n    if (jj_3R_231()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_220()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_216() {\n    if (jj_3R_220()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_221()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_217() {\n    if (jj_scan_token(INSTANCEOF)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_210() {\n    if (jj_3R_216()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_217()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_213() {\n    if (jj_scan_token(BIT_ANDX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_195() {\n    if (jj_scan_token(XOR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_194()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_203() {\n    if (jj_3R_210()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_211()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_61() {\n    if (jj_scan_token(ORASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_212() {\n    if (jj_scan_token(BIT_AND)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_204() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_212()) {\n    jj_scanpos = xsp;\n    if (jj_3R_213()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_203()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_60() {\n    if (jj_scan_token(XORASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_194() {\n    if (jj_3R_203()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_204()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_197() {\n    if (jj_scan_token(BIT_ORX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_59() {\n    if (jj_scan_token(ANDASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_175() {\n    if (jj_3R_194()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_195()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_65() {\n    if (jj_scan_token(RSIGNEDSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_178() {\n    if (jj_scan_token(BOOL_ANDX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_196() {\n    if (jj_scan_token(BIT_OR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_107() {\n    if (jj_scan_token(HOOK)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_85()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_176() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_196()) {\n    jj_scanpos = xsp;\n    if (jj_3R_197()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_175()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_58() {\n    if (jj_scan_token(MINUSASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_64() {\n    if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_147() {\n    if (jj_3R_175()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_176()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_150() {\n    if (jj_scan_token(BOOL_ORX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_177() {\n    if (jj_scan_token(BOOL_AND)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_57() {\n    if (jj_scan_token(PLUSASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_148() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_177()) {\n    jj_scanpos = xsp;\n    if (jj_3R_178()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_147()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_125() {\n    if (jj_3R_147()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_148()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_56() {\n    if (jj_scan_token(MODASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_149() {\n    if (jj_scan_token(BOOL_OR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_126() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_149()) {\n    jj_scanpos = xsp;\n    if (jj_3R_150()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_125()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_106() {\n    if (jj_3R_125()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_126()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_55() {\n    if (jj_scan_token(SLASHASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_67() {\n    if (jj_scan_token(RUNSIGNEDSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_63() {\n    if (jj_scan_token(LSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_85() {\n    if (jj_3R_106()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_107()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_54() {\n    if (jj_scan_token(STARASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_66() {\n    if (jj_scan_token(RUNSIGNEDSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_62() {\n    if (jj_scan_token(LSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_53() {\n    if (jj_scan_token(ASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_32() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_53()) {\n    jj_scanpos = xsp;\n    if (jj_3R_54()) {\n    jj_scanpos = xsp;\n    if (jj_3R_55()) {\n    jj_scanpos = xsp;\n    if (jj_3R_56()) {\n    jj_scanpos = xsp;\n    if (jj_3R_57()) {\n    jj_scanpos = xsp;\n    if (jj_3R_58()) {\n    jj_scanpos = xsp;\n    if (jj_3R_59()) {\n    jj_scanpos = xsp;\n    if (jj_3R_60()) {\n    jj_scanpos = xsp;\n    if (jj_3R_61()) {\n    jj_scanpos = xsp;\n    if (jj_3R_62()) {\n    jj_scanpos = xsp;\n    if (jj_3R_63()) {\n    jj_scanpos = xsp;\n    if (jj_3R_64()) {\n    jj_scanpos = xsp;\n    if (jj_3R_65()) {\n    jj_scanpos = xsp;\n    if (jj_3R_66()) {\n    jj_scanpos = xsp;\n    if (jj_3R_67()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_9() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_84() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_45() {\n    if (jj_3R_85()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_26() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_44()) {\n    jj_scanpos = xsp;\n    if (jj_3R_45()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_44() {\n    if (jj_3R_84()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_8() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_28() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_8()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_77() {\n    if (jj_scan_token(DOUBLE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_209() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_76() {\n    if (jj_scan_token(FLOAT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_75() {\n    if (jj_scan_token(LONG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_74() {\n    if (jj_scan_token(INT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_73() {\n    if (jj_scan_token(SHORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_50() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_72() {\n    if (jj_scan_token(BYTE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_71() {\n    if (jj_scan_token(CHAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_70() {\n    if (jj_scan_token(BOOLEAN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_34() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_70()) {\n    jj_scanpos = xsp;\n    if (jj_3R_71()) {\n    jj_scanpos = xsp;\n    if (jj_3R_72()) {\n    jj_scanpos = xsp;\n    if (jj_3R_73()) {\n    jj_scanpos = xsp;\n    if (jj_3R_74()) {\n    jj_scanpos = xsp;\n    if (jj_3R_75()) {\n    jj_scanpos = xsp;\n    if (jj_3R_76()) {\n    jj_scanpos = xsp;\n    if (jj_3R_77()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_87() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_86() {\n    if (jj_scan_token(VOID)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_46() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_86()) {\n    jj_scanpos = xsp;\n    if (jj_3R_87()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_7() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_49() {\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_30() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_49()) {\n    jj_scanpos = xsp;\n    if (jj_3R_50()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_7()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_142() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_141()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_171() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_6() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_141() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_6()) {\n    jj_scanpos = xsp;\n    if (jj_3R_171()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_257() {\n    if (jj_scan_token(FINALLY)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_256() {\n    if (jj_scan_token(CATCH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_141()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_5() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_192() {\n    if (jj_scan_token(TRY)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_256()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    xsp = jj_scanpos;\n    if (jj_3R_257()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_118() {\n    if (jj_3R_141()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_142()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_255() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_100() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_118()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_208() {\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_5()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_254() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_191() {\n    if (jj_scan_token(THROW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_233() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_232()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_88() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_208()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_209()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_190() {\n    if (jj_scan_token(RETURN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_255()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_282() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_182()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_253() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_48() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_189() {\n    if (jj_scan_token(CONTINUE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_254()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_29() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_47()) {\n    jj_scanpos = xsp;\n    if (jj_3R_48()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_47() {\n    if (jj_3R_88()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_242() {\n    if (jj_scan_token(ASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_243() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_188() {\n    if (jj_scan_token(BREAK)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_253()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_268() {\n    if (jj_3R_276()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_276() {\n    if (jj_3R_182()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_282()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_232() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_242()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_156() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_170() {\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_137() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_156()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_232()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_233()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_43() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_27() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_43()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_139() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_4()) {\n    jj_scanpos = xsp;\n    if (jj_3R_170()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_4() {\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_243()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_249() {\n    if (jj_scan_token(ELSE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_3() {\n    if (jj_3R_27()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_27() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_275() {\n    if (jj_3R_276()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_250() {\n    if (jj_3R_267()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_252() {\n    if (jj_3R_268()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_267() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_274()) {\n    jj_scanpos = xsp;\n    if (jj_3R_275()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_274() {\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_251() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_81() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_80() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_40() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_80()) {\n    jj_scanpos = xsp;\n    if (jj_3R_81()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_2() {\n    if (jj_3R_27()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_187() {\n    if (jj_scan_token(FOR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_250()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_251()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_252()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_155() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_154() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_186() {\n    if (jj_scan_token(DO)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_136() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_154()) {\n    jj_scanpos = xsp;\n    if (jj_3R_155()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_1() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_185() {\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_184() {\n    if (jj_scan_token(IF)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_249()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_266() {\n    if (jj_3R_99()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_273() {\n    if (jj_scan_token(_DEFAULT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_265() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_272()) {\n    jj_scanpos = xsp;\n    if (jj_3R_273()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_272() {\n    if (jj_scan_token(CASE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_248() {\n    if (jj_3R_265()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_266()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3_26() {\n    if (jj_3R_42()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_183() {\n    if (jj_scan_token(SWITCH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_248()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_201() {\n    if (jj_3R_207()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_200() {\n    if (jj_3R_84()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_199() {\n    if (jj_3R_206()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_182() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_198()) {\n    jj_scanpos = xsp;\n    if (jj_3R_199()) {\n    jj_scanpos = xsp;\n    if (jj_3R_200()) {\n    jj_scanpos = xsp;\n    if (jj_3R_201()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_198() {\n    if (jj_3R_205()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_181() {\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_140() {\n    if (jj_scan_token(FORMAL_COMMENT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_41() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_117() {\n    if (jj_3R_140()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_25() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_41()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_116() {\n    if (jj_3R_139()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_24() {\n    if (jj_3R_40()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_115() {\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_114() {\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_113() {\n    if (jj_3R_136()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_99() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_113()) {\n    jj_scanpos = xsp;\n    if (jj_3R_114()) {\n    jj_scanpos = xsp;\n    if (jj_3R_115()) {\n    jj_scanpos = xsp;\n    if (jj_3R_116()) {\n    jj_scanpos = xsp;\n    if (jj_3R_117()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_79() {\n    if (jj_3R_99()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_38() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_79()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_39() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_169() {\n    if (jj_3R_192()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_168() {\n    if (jj_3R_191()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_167() {\n    if (jj_3R_190()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_166() {\n    if (jj_3R_189()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_165() {\n    if (jj_3R_188()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_164() {\n    if (jj_3R_187()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_163() {\n    if (jj_3R_186()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_162() {\n    if (jj_3R_185()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_161() {\n    if (jj_3R_184()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_160() {\n    if (jj_3R_183()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_19() {\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_159() {\n    if (jj_3R_182()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_158() {\n    if (jj_3R_181()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_157() {\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_138() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_23()) {\n    jj_scanpos = xsp;\n    if (jj_3R_157()) {\n    jj_scanpos = xsp;\n    if (jj_3R_158()) {\n    jj_scanpos = xsp;\n    if (jj_3R_159()) {\n    jj_scanpos = xsp;\n    if (jj_3R_160()) {\n    jj_scanpos = xsp;\n    if (jj_3R_161()) {\n    jj_scanpos = xsp;\n    if (jj_3R_162()) {\n    jj_scanpos = xsp;\n    if (jj_3R_163()) {\n    jj_scanpos = xsp;\n    if (jj_3R_164()) {\n    jj_scanpos = xsp;\n    if (jj_3R_165()) {\n    jj_scanpos = xsp;\n    if (jj_3R_166()) {\n    jj_scanpos = xsp;\n    if (jj_3R_167()) {\n    jj_scanpos = xsp;\n    if (jj_3R_168()) {\n    jj_scanpos = xsp;\n    if (jj_3R_169()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_23() {\n    if (jj_3R_39()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_174() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_19()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_202() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_173() {\n    if (jj_3R_172()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_193() {\n    Token xsp;\n    if (jj_3R_202()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_202()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_3R_88()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_21() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_22() {\n    Token xsp;\n    if (jj_3_21()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_21()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_172() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_22()) {\n    jj_scanpos = xsp;\n    if (jj_3R_193()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_143() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_173()) {\n    jj_scanpos = xsp;\n    if (jj_3R_174()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_119() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_20()) {\n    jj_scanpos = xsp;\n    if (jj_3R_143()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_20() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_172()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_135() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_112() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_135()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_98() {\n    if (jj_3R_112()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_78() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_98()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_153() {\n    if (jj_scan_token(VOID)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_152() {\n    if (jj_scan_token(NULL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_180() {\n    if (jj_scan_token(FALSE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_151() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_179()) {\n    jj_scanpos = xsp;\n    if (jj_3R_180()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_179() {\n    if (jj_scan_token(TRUE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_134() {\n    if (jj_3R_153()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_133() {\n    if (jj_3R_152()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_132() {\n    if (jj_3R_151()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_131() {\n    if (jj_scan_token(STRING_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_130() {\n    if (jj_scan_token(CHARACTER_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_129() {\n    if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_128() {\n    if (jj_scan_token(INTEGER_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_111() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_128()) {\n    jj_scanpos = xsp;\n    if (jj_3R_129()) {\n    jj_scanpos = xsp;\n    if (jj_3R_130()) {\n    jj_scanpos = xsp;\n    if (jj_3R_131()) {\n    jj_scanpos = xsp;\n    if (jj_3R_132()) {\n    jj_scanpos = xsp;\n    if (jj_3R_133()) {\n    jj_scanpos = xsp;\n    if (jj_3R_134()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_127() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_110() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_52() {\n    if (jj_3R_91()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_109() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_127()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_108() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_91() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_108()) {\n    jj_scanpos = xsp;\n    if (jj_3R_109()) {\n    jj_scanpos = xsp;\n    if (jj_3R_110()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_18() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_31() {\n    if (jj_3R_51()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_52()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_90() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_89() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_51() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_89()) {\n    jj_scanpos = xsp;\n    if (jj_3R_90()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_146() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_97() {\n    if (jj_3R_111()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_124() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_96() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_123() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_146()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_122() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_105() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_17()) {\n    jj_scanpos = xsp;\n    if (jj_3R_122()) {\n    jj_scanpos = xsp;\n    if (jj_3R_123()) {\n    jj_scanpos = xsp;\n    if (jj_3R_124()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_17() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(CLASS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_15() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(CLASS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_145() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_16() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_144() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_121() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_144()) {\n    jj_scanpos = xsp;\n    if (jj_3R_145()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_120() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_36() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_95() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_83() {\n    if (jj_3R_105()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_104() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_120()) {\n    jj_scanpos = xsp;\n    if (jj_3R_121()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_35() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_103() {\n    if (jj_3R_119()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_102() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_94() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_101() {\n    if (jj_3R_111()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_82() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_101()) {\n    jj_scanpos = xsp;\n    if (jj_3R_102()) {\n    jj_scanpos = xsp;\n    if (jj_3R_103()) {\n    jj_scanpos = xsp;\n    if (jj_3R_104()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_93() {\n    if (jj_scan_token(BANG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_37() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_14() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_281() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_92() {\n    if (jj_scan_token(TILDE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_42() {\n    if (jj_3R_82()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_83()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_287() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_271()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_286() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_244()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_280() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_13() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_35()) {\n    jj_scanpos = xsp;\n    if (jj_3R_36()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_285() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_286()) {\n    jj_scanpos = xsp;\n    if (jj_3R_287()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_215() {\n    if (jj_3R_42()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_12() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_207() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_214()) {\n    jj_scanpos = xsp;\n    if (jj_3R_215()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_214() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_280()) {\n    jj_scanpos = xsp;\n    if (jj_3R_281()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_69() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_92()) {\n    jj_scanpos = xsp;\n    if (jj_3R_93()) {\n    jj_scanpos = xsp;\n    if (jj_3R_94()) {\n    jj_scanpos = xsp;\n    if (jj_3R_95()) {\n    jj_scanpos = xsp;\n    if (jj_3R_96()) {\n    jj_scanpos = xsp;\n    if (jj_3R_97()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3_10() {\n    if (jj_3R_33()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  final private boolean jj_3R_68() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;\n  }\n\n  public ParserTokenManager token_source;\n  ASCII_UCodeESC_CharStream jj_input_stream;\n  public Token token, jj_nt;\n  private int jj_ntk;\n  private Token jj_scanpos, jj_lastpos;\n  private int jj_la;\n  public boolean lookingAhead = false;\n  private boolean jj_semLA;\n  private int jj_gen;\n  final private int[] jj_la1 = new int[88];\n  final private int[] jj_la1_0 = {0x6db52c00,0x6db52c01,0x0,0x0,0x0,0x40000000,0x0,0x4a12400,0x4a12400,0x0,0x0,0x4212400,0x0,0x4212400,0x4212400,0x4212400,0x4a12400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x80000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4a12400,0x0,0x0,0x4a12400,0x800000,0x0,0x0,0x4a12400,0x0,0x0,0x0,0x4212400,0x4a12400,0x0,0x0,0x0,0x0,0x0,0x0,0x800000,0x800000,0x4a12400,0x0,0x0,0x0,0x0,0x0,0x2cb52c00,0x6db52c00,0x6cb52c00,0x0,0x4a12400,0x84000,0x6db52c00,0x84000,0x400000,0x5a12400,0x4a12400,0x4a12400,0x4a12400,0x1000000,0x0,0x0,0x0,0x0,0x4a12400,0x8000,0x2000000,};\n  final private int[] jj_la1_1 = {0xa7a3fb1d,0xa7a3fb1d,0x4000000,0x4000000,0x0,0x0,0x0,0xa5a2a21d,0xa5a2a21d,0x0,0x0,0x4000205,0x4000000,0x4000205,0x4008205,0x205,0x25a2a21d,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x25a2a21d,0x0,0x0,0x25a2a21d,0x25a2a018,0x20000000,0x0,0x25a2a21d,0x20000000,0x80000000,0x4000000,0x4000205,0x25a2a21d,0x20000000,0x80000000,0x4000000,0x80000000,0x20000000,0x80000000,0x1a2a010,0x2000,0x25a2a21d,0x0,0x20000000,0x8,0x0,0x0,0xa5a3fb1d,0xa7a3fb1d,0xa7a3fb1d,0x0,0x25a2a21d,0x0,0xa7a3fb1d,0x0,0x0,0x25a2a21d,0x25a2a21d,0x25a2a21d,0x25a2a21d,0x0,0x0,0x0,0x4000000,0x4000000,0x25a2a21d,0x0,0x0,};\n  final private int[] jj_la1_2 = {0x6000008,0x1e001808,0x0,0x0,0x20,0x0,0x40,0x1e001800,0x1e001800,0x10,0x10,0x0,0x0,0x0,0x0,0x0,0x1e001800,0x40,0x2000,0x600000,0x600000,0x1800000,0x1800000,0x0,0x0,0x0,0x80000000,0x80000000,0x108000,0x108000,0x0,0xf0780,0xf0780,0x0,0x0,0x18000000,0x18000000,0x60000000,0x60000000,0x18000000,0x1e001800,0x1800,0x1800,0x0,0x1800,0x0,0x6000000,0x0,0x0,0x22,0x0,0x0,0x0,0x0,0x22,0x0,0x22,0x0,0x22,0x0,0x0,0x1e001800,0x10,0x2,0x0,0x2,0x2,0x6000008,0x6000008,0x6000008,0x6000000,0x0,0x0,0x6000008,0x0,0x0,0x6000000,0x1e001800,0x6000000,0x6000000,0x0,0x10,0x10,0x0,0x0,0x1e001800,0x0,0x0,};\n  final private int[] jj_la1_3 = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x7faf800,0x0,0x0,0x0,0x0,0x0,0x6,0x6,0x8,0x1,0x1,0x0,0x0,0x0,0x0,0x0,0x7e0,0x7e0,0x0,0x0,0x10,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,};\n  final private JJCalls[] jj_2_rtns = new JJCalls[27];\n  private boolean jj_rescan = false;\n  private int jj_gc = 0;\n\n  public Parser(java.io.InputStream stream) {\n    jj_input_stream = new ASCII_UCodeESC_CharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public void ReInit(java.io.InputStream stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public Parser(java.io.Reader stream) {\n    jj_input_stream = new ASCII_UCodeESC_CharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public void ReInit(java.io.Reader stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public Parser(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public void ReInit(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  final private Token jj_consume_token(int kind) throws ParseException {\n    Token oldToken;\n    if ((oldToken = token).next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    if (token.kind == kind) {\n      jj_gen++;\n      if (++jj_gc > 100) {\n        jj_gc = 0;\n        for (int i = 0; i < jj_2_rtns.length; i++) {\n          JJCalls c = jj_2_rtns[i];\n          while (c != null) {\n            if (c.gen < jj_gen) c.first = null;\n            c = c.next;\n          }\n        }\n      }\n      return token;\n    }\n    token = oldToken;\n    jj_kind = kind;\n    throw generateParseException();\n  }\n\n  final private boolean jj_scan_token(int kind) {\n    if (jj_scanpos == jj_lastpos) {\n      jj_la--;\n      if (jj_scanpos.next == null) {\n        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();\n      } else {\n        jj_lastpos = jj_scanpos = jj_scanpos.next;\n      }\n    } else {\n      jj_scanpos = jj_scanpos.next;\n    }\n    if (jj_rescan) {\n      int i = 0; Token tok = token;\n      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }\n      if (tok != null) jj_add_error_token(kind, i);\n    }\n    return (jj_scanpos.kind != kind);\n  }\n\n  final public Token getNextToken() {\n    if (token.next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    jj_gen++;\n    return token;\n  }\n\n  final public Token getToken(int index) {\n    Token t = lookingAhead ? jj_scanpos : token;\n    for (int i = 0; i < index; i++) {\n      if (t.next != null) t = t.next;\n      else t = t.next = token_source.getNextToken();\n    }\n    return t;\n  }\n\n  final private int jj_ntk() {\n    if ((jj_nt=token.next) == null)\n      return (jj_ntk = (token.next=token_source.getNextToken()).kind);\n    else\n      return (jj_ntk = jj_nt.kind);\n  }\n\n  private java.util.Vector jj_expentries = new java.util.Vector();\n  private int[] jj_expentry;\n  private int jj_kind = -1;\n  private int[] jj_lasttokens = new int[100];\n  private int jj_endpos;\n\n  private void jj_add_error_token(int kind, int pos) {\n    if (pos >= 100) return;\n    if (pos == jj_endpos + 1) {\n      jj_lasttokens[jj_endpos++] = kind;\n    } else if (jj_endpos != 0) {\n      jj_expentry = new int[jj_endpos];\n      for (int i = 0; i < jj_endpos; i++) {\n        jj_expentry[i] = jj_lasttokens[i];\n      }\n      boolean exists = false;\n      for (java.util.Enumeration enum1 = jj_expentries.elements(); enum1.hasMoreElements();) {\n        int[] oldentry = (int[])(enum1.nextElement());\n        if (oldentry.length == jj_expentry.length) {\n          exists = true;\n          for (int i = 0; i < jj_expentry.length; i++) {\n            if (oldentry[i] != jj_expentry[i]) {\n              exists = false;\n              break;\n            }\n          }\n          if (exists) break;\n        }\n      }\n      if (!exists) jj_expentries.addElement(jj_expentry);\n      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;\n    }\n  }\n\n  final public ParseException generateParseException() {\n    jj_expentries.removeAllElements();\n    boolean[] la1tokens = new boolean[123];\n    for (int i = 0; i < 123; i++) {\n      la1tokens[i] = false;\n    }\n    if (jj_kind >= 0) {\n      la1tokens[jj_kind] = true;\n      jj_kind = -1;\n    }\n    for (int i = 0; i < 88; i++) {\n      if (jj_la1[i] == jj_gen) {\n        for (int j = 0; j < 32; j++) {\n          if ((jj_la1_0[i] & (1<<j)) != 0) {\n            la1tokens[j] = true;\n          }\n          if ((jj_la1_1[i] & (1<<j)) != 0) {\n            la1tokens[32+j] = true;\n          }\n          if ((jj_la1_2[i] & (1<<j)) != 0) {\n            la1tokens[64+j] = true;\n          }\n          if ((jj_la1_3[i] & (1<<j)) != 0) {\n            la1tokens[96+j] = true;\n          }\n        }\n      }\n    }\n    for (int i = 0; i < 123; i++) {\n      if (la1tokens[i]) {\n        jj_expentry = new int[1];\n        jj_expentry[0] = i;\n        jj_expentries.addElement(jj_expentry);\n      }\n    }\n    jj_endpos = 0;\n    jj_rescan_token();\n    jj_add_error_token(0, 0);\n    int[][] exptokseq = new int[jj_expentries.size()][];\n    for (int i = 0; i < jj_expentries.size(); i++) {\n      exptokseq[i] = (int[])jj_expentries.elementAt(i);\n    }\n    return new ParseException(token, exptokseq, tokenImage);\n  }\n\n  final public void enable_tracing() {\n  }\n\n  final public void disable_tracing() {\n  }\n\n  final private void jj_rescan_token() {\n    jj_rescan = true;\n    for (int i = 0; i < 27; i++) {\n      JJCalls p = jj_2_rtns[i];\n      do {\n        if (p.gen > jj_gen) {\n          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;\n          switch (i) {\n            case 0: jj_3_1(); break;\n            case 1: jj_3_2(); break;\n            case 2: jj_3_3(); break;\n            case 3: jj_3_4(); break;\n            case 4: jj_3_5(); break;\n            case 5: jj_3_6(); break;\n            case 6: jj_3_7(); break;\n            case 7: jj_3_8(); break;\n            case 8: jj_3_9(); break;\n            case 9: jj_3_10(); break;\n            case 10: jj_3_11(); break;\n            case 11: jj_3_12(); break;\n            case 12: jj_3_13(); break;\n            case 13: jj_3_14(); break;\n            case 14: jj_3_15(); break;\n            case 15: jj_3_16(); break;\n            case 16: jj_3_17(); break;\n            case 17: jj_3_18(); break;\n            case 18: jj_3_19(); break;\n            case 19: jj_3_20(); break;\n            case 20: jj_3_21(); break;\n            case 21: jj_3_22(); break;\n            case 22: jj_3_23(); break;\n            case 23: jj_3_24(); break;\n            case 24: jj_3_25(); break;\n            case 25: jj_3_26(); break;\n            case 26: jj_3_27(); break;\n          }\n        }\n        p = p.next;\n      } while (p != null);\n    }\n    jj_rescan = false;\n  }\n\n  final private void jj_save(int index, int xla) {\n    JJCalls p = jj_2_rtns[index];\n    while (p.gen > jj_gen) {\n      if (p.next == null) { p = p.next = new JJCalls(); break; }\n      p = p.next;\n    }\n    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;\n  }\n\n  static final class JJCalls {\n    int gen;\n    Token first;\n    int arg;\n    JJCalls next;", "functions": [{"function_name": "setRetainComments", "code": "        public void setRetainComments( boolean b ) {\n                retainComments = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "jjtreeOpenNodeScope", "code": "        void jjtreeOpenNodeScope(Node n) {\n                ((SimpleNode)n).firstToken = getToken(1);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "jjtreeCloseNodeScope", "code": "        void jjtreeCloseNodeScope(Node n) {\n                ((SimpleNode)n).lastToken = getToken(0);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "reInitInput", "code": "        void reInitInput( Reader in ) {\n                ReInit(in);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popNode", "code": "        public SimpleNode popNode()\n        {\n                if ( jjtree.nodeArity() > 0)  // number of child nodes \n                        return (SimpleNode)jjtree.popNode();\n                else\n                        return null;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [4, 6], [4, 7], [3, 8], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 4], [7, 4], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "reInitTokenInput", "code": "        void reInitTokenInput( Reader in ) {\n                jj_input_stream.ReInit( in,\n                        jj_input_stream.getEndLine(),\n                        jj_input_stream.getEndColumn() );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "main", "code": "        public static void main( String [] args )\n                throws IOException, ParseException\n        {\n                boolean print = false;\n                int i=0;\n                if ( args[0].equals(\"-p\") ) {\n                        i++;\n                        print=true;\n                }\n                for(; i< args.length; i++) {\n                        Reader in = new FileReader(args[i]);\n                        Parser parser = new Parser(in);\n                        parser.setRetainComments(true);\n                        while( !parser.Line()/*eof*/ )\n                                if ( print )\n                                        System.out.println( parser.popNode() );", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [3, 11], [4, 12], [7, 13], [7, 14], [1, 15], [2, 16], [10, 17], [2, 18], [15, 19], [8, 20], [9, 21], [16, 22], [13, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 3], [12, 4], [13, 7], [14, 7], [15, 1], [16, 2], [17, 10], [18, 2], [19, 15], [20, 8], [21, 9], [22, 16], [23, 13], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "Line", "code": "  final public boolean Line() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case 0:\n      jj_consume_token(0);\n        Interpreter.debug(\"End of File!\");\n        {if (true) return true;}\n      break;\n    case BOOLEAN:\n    case BREAK:\n    case BYTE:\n    case CHAR:\n    case CONTINUE:\n    case DO:\n    case DOUBLE:\n    case FALSE:\n    case FINAL:\n    case FLOAT:\n    case FOR:\n    case IF:\n    case IMPORT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case RETURN:\n    case SHORT:\n    case SWITCH:\n    case THROW:\n    case TRUE:\n    case TRY:\n    case VOID:\n    case WHILE:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case FORMAL_COMMENT:\n    case IDENTIFIER:\n    case LPAREN:\n    case LBRACE:\n    case SEMICOLON:\n    case BANG:\n    case TILDE:\n    case INCR:\n    case DECR:\n    case PLUS:\n    case MINUS:\n      if (jj_2_1(2147483647)) {\n        Expression();\n        jj_consume_token(SEMICOLON);\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BREAK:\n        case BYTE:\n        case CHAR:\n        case CONTINUE:\n        case DO:\n        case DOUBLE:\n        case FALSE:\n        case FINAL:\n        case FLOAT:\n        case FOR:\n        case IF:\n        case IMPORT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case RETURN:\n        case SHORT:\n        case SWITCH:\n        case THROW:\n        case TRUE:\n        case TRY:\n        case VOID:\n        case WHILE:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case FORMAL_COMMENT:\n        case IDENTIFIER:\n        case LPAREN:\n        case LBRACE:\n        case SEMICOLON:\n        case INCR:\n        case DECR:\n          BlockStatement();\n          break;\n        default:\n          jj_la1[0] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n                {if (true) return false;}\n      break;\n    default:\n      jj_la1[1] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "IF", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [4, 11], [4, 12], [6, 13], [2, 14], [2, 15], [2, 16], [8, 17], [2, 18], [2, 19], [2, 20], [12, 21], [14, 22], [16, 23], [16, 24], [8, 25], [17, 26], [18, 27], [18, 28], [19, 29], [20, 30], [23, 31], [25, 32], [8, 33], [8, 34], [27, 35], [15, 36], [25, 37], [25, 38], [32, 39], [32, 40], [37, 41], [25, 42], [25, 43], [25, 44], [40, 45], [42, 46], [43, 47], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 4], [12, 4], [13, 6], [14, 2], [15, 2], [16, 2], [17, 8], [18, 2], [19, 2], [20, 2], [21, 12], [22, 14], [23, 16], [24, 16], [25, 8], [26, 17], [27, 18], [28, 18], [29, 19], [30, 20], [31, 23], [32, 25], [33, 8], [34, 8], [35, 27], [36, 15], [37, 25], [38, 25], [39, 32], [40, 32], [41, 37], [42, 25], [43, 25], [44, 25], [45, 40], [46, 42], [47, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "MethodDeclaration", "code": "  final public void MethodDeclaration() throws ParseException {\n /*@bgen(jjtree) MethodDeclaration */\n  BSHMethodDeclaration jjtn000 = new BSHMethodDeclaration(JJTMETHODDECLARATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_2(2147483647)) {\n        ReturnType();\n        t = jj_consume_token(IDENTIFIER);\n                                    jjtn000.name = t.image;\n        FormalParameters();\n        Block();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          t = jj_consume_token(IDENTIFIER);\n                       jjtn000.name = t.image;\n          FormalParameters();\n          Block();\n          break;\n        default:\n          jj_la1[2] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n      if (jjtc000) {\n        jjtree.clearNodeScope(jjtn000);\n        jjtc000 = false;\n      } else {\n        jjtree.popNode();\n      }\n      if (jjte000 instanceof RuntimeException) {\n        {if (true) throw (RuntimeException)jjte000;}\n      }\n      if (jjte000 instanceof ParseException) {\n        {if (true) throw (ParseException)jjte000;}\n      }\n      {if (true) throw (Error)jjte000;}\n    } finally {\n      if (jjtc000) {\n        jjtree.closeNodeScope(jjtn000, true);\n        jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [2, 14], [3, 15], [4, 16], [6, 17], [10, 18], [11, 19], [7, 20], [13, 21], [5, 22], [5, 23], [17, 24], [17, 25], [20, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [23, 32], [10, 33], [11, 34], [12, 35], [12, 36], [12, 37], [20, 38], [20, 39], [26, 40], [26, 41], [30, 42], [33, 43], [33, 44], [34, 45], [34, 46], [36, 47], [38, 48], [20, 49], [20, 50], [20, 51], [20, 52], [20, 53], [20, 54], [41, 55], [49, 56], [54, 57], [50, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 2], [15, 3], [16, 4], [17, 6], [18, 10], [19, 11], [20, 7], [21, 13], [22, 5], [23, 5], [24, 17], [25, 17], [26, 20], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 23], [33, 10], [34, 11], [35, 12], [36, 12], [37, 12], [38, 20], [39, 20], [40, 26], [41, 26], [42, 30], [43, 33], [44, 33], [45, 34], [46, 34], [47, 36], [48, 38], [49, 20], [50, 20], [51, 20], [52, 20], [53, 20], [54, 20], [55, 41], [56, 49], [57, 54], [58, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "MethodDeclarationLookahead", "code": "  final public void MethodDeclarationLookahead() throws ParseException {\n    if (jj_2_3(2147483647)) {\n      ReturnType();\n      jj_consume_token(IDENTIFIER);\n      FormalParameters();\n      jj_consume_token(LBRACE);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        FormalParameters();\n        jj_consume_token(LBRACE);\n        break;\n      default:\n        jj_la1[3] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [5, 12], [5, 13], [10, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [13, 20], [15, 21], [16, 22], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 5], [13, 5], [14, 10], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 13], [21, 15], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "MethodDeclarationTypeLookahead", "code": "  final public void MethodDeclarationTypeLookahead() throws ParseException {\n    ReturnType();\n    jj_consume_token(IDENTIFIER);\n    jj_consume_token(LPAREN);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ImportDeclaration", "code": "  final public void ImportDeclaration() throws ParseException {\n /*@bgen(jjtree) ImportDeclaration */\n    BSHImportDeclaration jjtn000 = new BSHImportDeclaration(JJTIMPORTDECLARATION);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_4(2)) {\n        jj_consume_token(IMPORT);\n        AmbiguousName();\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case DOT:\n          t = jj_consume_token(DOT);\n          jj_consume_token(STAR);\n          break;\n        default:\n          jj_la1[4] = jj_gen;\n          ;\n        }\n        jj_consume_token(SEMICOLON);\n                                                 jjtree.closeNodeScope(jjtn000, true);\n                                                 jjtc000 = false;\n                                                 jjtreeCloseNodeScope(jjtn000);\n    if ( t != null )\n        jjtn000.importPackage = true;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IMPORT:\n          jj_consume_token(IMPORT);\n          jj_consume_token(STAR);\n          jj_consume_token(SEMICOLON);\n                     jjtree.closeNodeScope(jjtn000, true);\n                     jjtc000 = false;\n                     jjtreeCloseNodeScope(jjtn000);\n                jjtn000.superImport = true;\n          break;\n        default:\n          jj_la1[5] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "IF", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [2, 14], [3, 15], [4, 16], [6, 17], [10, 18], [11, 19], [7, 20], [7, 21], [7, 22], [13, 23], [5, 24], [5, 25], [17, 26], [17, 27], [20, 28], [21, 29], [7, 30], [7, 31], [7, 32], [7, 33], [22, 34], [7, 35], [7, 36], [25, 37], [10, 38], [11, 39], [12, 40], [12, 41], [12, 42], [20, 43], [20, 44], [28, 45], [28, 46], [21, 47], [29, 48], [31, 49], [32, 50], [22, 51], [34, 52], [34, 53], [38, 54], [38, 55], [39, 56], [39, 57], [41, 58], [43, 59], [20, 60], [20, 61], [20, 62], [20, 63], [20, 64], [20, 65], [20, 66], [20, 67], [20, 68], [46, 69], [47, 70], [22, 71], [22, 72], [22, 73], [53, 74], [60, 75], [62, 76], [64, 77], [65, 78], [73, 79], [61, 80], [71, 81], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 2], [15, 3], [16, 4], [17, 6], [18, 10], [19, 11], [20, 7], [21, 7], [22, 7], [23, 13], [24, 5], [25, 5], [26, 17], [27, 17], [28, 20], [29, 21], [30, 7], [31, 7], [32, 7], [33, 7], [34, 22], [35, 7], [36, 7], [37, 25], [38, 10], [39, 11], [40, 12], [41, 12], [42, 12], [43, 20], [44, 20], [45, 28], [46, 28], [47, 21], [48, 29], [49, 31], [50, 32], [51, 22], [52, 34], [53, 34], [54, 38], [55, 38], [56, 39], [57, 39], [58, 41], [59, 43], [60, 20], [61, 20], [62, 20], [63, 20], [64, 20], [65, 20], [66, 20], [67, 20], [68, 20], [69, 46], [70, 47], [71, 22], [72, 22], [73, 22], [74, 53], [75, 60], [76, 62], [77, 64], [78, 65], [79, 73], [80, 61], [81, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81]]}, {"function_name": "VariableDeclarator", "code": "  final public void VariableDeclarator() throws ParseException {\n /*@bgen(jjtree) VariableDeclarator */\n  BSHVariableDeclarator jjtn000 = new BSHVariableDeclarator(JJTVARIABLEDECLARATOR);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ASSIGN:\n        jj_consume_token(ASSIGN);\n        VariableInitializer();\n        break;\n      default:\n        jj_la1[6] = jj_gen;\n        ;\n      }\n                                                 jjtree.closeNodeScope(jjtn000, true);\n                                                 jjtc000 = false;\n                                                 jjtreeCloseNodeScope(jjtn000);\n                                                 jjtn000.name = t.image;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [1, 13], [1, 14], [1, 15], [1, 16], [7, 17], [1, 18], [3, 19], [4, 20], [6, 21], [10, 22], [11, 23], [15, 24], [16, 25], [7, 26], [17, 27], [17, 28], [18, 29], [5, 30], [5, 31], [21, 32], [21, 33], [7, 34], [7, 35], [7, 36], [28, 37], [31, 38], [10, 39], [11, 40], [12, 41], [12, 42], [12, 43], [39, 44], [39, 45], [40, 46], [40, 47], [42, 48], [34, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 1], [14, 1], [15, 1], [16, 1], [17, 7], [18, 1], [19, 3], [20, 4], [21, 6], [22, 10], [23, 11], [24, 15], [25, 16], [26, 7], [27, 17], [28, 17], [29, 18], [30, 5], [31, 5], [32, 21], [33, 21], [34, 7], [35, 7], [36, 7], [37, 28], [38, 31], [39, 10], [40, 11], [41, 12], [42, 12], [43, 12], [44, 39], [45, 39], [46, 40], [47, 40], [48, 42], [49, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "VariableInitializer", "code": "  final public void VariableInitializer() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case LBRACE:\n      ArrayInitializer();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n    case INCR:\n    case DECR:\n    case PLUS:\n    case MINUS:\n      Expression();\n      break;\n    default:\n      jj_la1[7] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [2, 7], [3, 8], [1, 9], [1, 10], [1, 11], [1, 12], [7, 13], [9, 14], [10, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 2], [8, 3], [9, 1], [10, 1], [11, 1], [12, 1], [13, 7], [14, 9], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "ArrayInitializer", "code": "  final public void ArrayInitializer() throws ParseException {\n /*@bgen(jjtree) ArrayInitializer */\n  BSHArrayInitializer jjtn000 = new BSHArrayInitializer(JJTARRAYINITIALIZER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case LBRACE:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        VariableInitializer();\n        label_1:\n        while (true) {\n          if (jj_2_5(2)) {\n            ;\n          } else {\n            break label_1;\n          }\n          jj_consume_token(COMMA);\n          VariableInitializer();\n        }\n        break;\n      default:\n        jj_la1[8] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        jj_consume_token(COMMA);\n        break;\n      default:\n        jj_la1[9] = jj_gen;\n        ;\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "COND_EXPR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "LOOP", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [5, 10], [5, 11], [5, 12], [1, 13], [6, 14], [7, 15], [1, 16], [2, 17], [3, 18], [5, 19], [10, 20], [11, 21], [6, 22], [14, 23], [14, 24], [7, 25], [7, 26], [15, 27], [15, 28], [4, 29], [4, 30], [19, 31], [19, 32], [6, 33], [6, 34], [24, 35], [7, 36], [26, 37], [7, 38], [28, 39], [30, 40], [10, 41], [11, 42], [12, 43], [12, 44], [12, 45], [26, 46], [41, 47], [41, 48], [42, 49], [42, 50], [44, 51], [26, 52], [26, 53], [46, 54], [33, 55], [36, 56], [46, 57], [54, 58], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 5], [11, 5], [12, 5], [13, 1], [14, 6], [15, 7], [16, 1], [17, 2], [18, 3], [19, 5], [20, 10], [21, 11], [22, 6], [23, 14], [24, 14], [25, 7], [26, 7], [27, 15], [28, 15], [29, 4], [30, 4], [31, 19], [32, 19], [33, 6], [34, 6], [35, 24], [36, 7], [37, 26], [38, 7], [39, 28], [40, 30], [41, 10], [42, 11], [43, 12], [44, 12], [45, 12], [46, 26], [47, 41], [48, 41], [49, 42], [50, 42], [51, 44], [52, 26], [53, 26], [54, 46], [55, 33], [56, 36], [57, 46], [58, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "FormalParameters", "code": "  final public void FormalParameters() throws ParseException {\n /*@bgen(jjtree) FormalParameters */\n  BSHFormalParameters jjtn000 = new BSHFormalParameters(JJTFORMALPARAMETERS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        FormalParameter();\n        label_2:\n        while (true) {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case COMMA:\n            ;\n            break;\n          default:\n            jj_la1[10] = jj_gen;\n            break label_2;\n          }\n          jj_consume_token(COMMA);\n          FormalParameter();\n        }\n        break;\n      default:\n        jj_la1[11] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LOOP", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "SWITCH", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [2, 15], [3, 16], [5, 17], [9, 18], [10, 19], [6, 20], [6, 21], [13, 22], [13, 23], [4, 24], [4, 25], [17, 26], [17, 27], [6, 28], [21, 29], [6, 30], [23, 31], [25, 32], [9, 33], [10, 34], [11, 35], [11, 36], [11, 37], [21, 38], [33, 39], [33, 40], [34, 41], [34, 42], [36, 43], [21, 44], [21, 45], [38, 46], [28, 47], [38, 48], [38, 49], [46, 50], [46, 51], [38, 52], [51, 53], [52, 54], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 2], [16, 3], [17, 5], [18, 9], [19, 10], [20, 6], [21, 6], [22, 13], [23, 13], [24, 4], [25, 4], [26, 17], [27, 17], [28, 6], [29, 21], [30, 6], [31, 23], [32, 25], [33, 9], [34, 10], [35, 11], [36, 11], [37, 11], [38, 21], [39, 33], [40, 33], [41, 34], [42, 34], [43, 36], [44, 21], [45, 21], [46, 38], [47, 28], [48, 38], [49, 38], [50, 46], [51, 46], [52, 38], [53, 51], [54, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "FormalParameter", "code": "  final public void FormalParameter() throws ParseException {\n /*@bgen(jjtree) FormalParameter */\n  BSHFormalParameter jjtn000 = new BSHFormalParameter(JJTFORMALPARAMETER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      if (jj_2_6(2)) {\n        Type();\n        t = jj_consume_token(IDENTIFIER);\n                                       jjtree.closeNodeScope(jjtn000, true);\n                                       jjtc000 = false;\n                                       jjtreeCloseNodeScope(jjtn000);\n                                       jjtn000.name = t.image;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          t = jj_consume_token(IDENTIFIER);\n                   jjtree.closeNodeScope(jjtn000, true);\n                   jjtc000 = false;\n                   jjtreeCloseNodeScope(jjtn000);\n                   jjtn000.name = t.image;\n          break;\n        default:\n          jj_la1[12] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [3, 14], [4, 15], [6, 16], [10, 17], [11, 18], [7, 19], [13, 20], [5, 21], [5, 22], [16, 23], [16, 24], [19, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [22, 32], [10, 33], [11, 34], [12, 35], [12, 36], [12, 37], [19, 38], [19, 39], [25, 40], [25, 41], [28, 42], [29, 43], [30, 44], [33, 45], [33, 46], [34, 47], [34, 48], [36, 49], [38, 50], [19, 51], [19, 52], [19, 53], [19, 54], [19, 55], [19, 56], [19, 57], [41, 58], [51, 59], [55, 60], [56, 61], [57, 62], [52, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 3], [15, 4], [16, 6], [17, 10], [18, 11], [19, 7], [20, 13], [21, 5], [22, 5], [23, 16], [24, 16], [25, 19], [26, 7], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 22], [33, 10], [34, 11], [35, 12], [36, 12], [37, 12], [38, 19], [39, 19], [40, 25], [41, 25], [42, 28], [43, 29], [44, 30], [45, 33], [46, 33], [47, 34], [48, 34], [49, 36], [50, 38], [51, 19], [52, 19], [53, 19], [54, 19], [55, 19], [56, 19], [57, 19], [58, 41], [59, 51], [60, 55], [61, 56], [62, 57], [63, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "Type", "code": "  final public void Type() throws ParseException {\n /*@bgen(jjtree) Type */\n  BSHType jjtn000 = new BSHType(JJTTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n        PrimitiveType();\n        break;\n      case IDENTIFIER:\n        AmbiguousName();\n        break;\n      default:\n        jj_la1[13] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      label_3:\n      while (true) {\n        if (jj_2_7(2)) {\n          ;\n        } else {\n          break label_3;\n        }\n        jj_consume_token(LBRACKET);\n        jj_consume_token(RBRACKET);\n                                 jjtn000.addArrayDimension();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [5, 10], [5, 11], [5, 12], [6, 13], [7, 14], [2, 15], [3, 16], [5, 17], [10, 18], [11, 19], [6, 20], [7, 21], [7, 22], [7, 23], [14, 24], [14, 25], [4, 26], [4, 27], [17, 28], [17, 29], [6, 30], [6, 31], [6, 32], [20, 33], [21, 34], [7, 35], [7, 36], [7, 37], [7, 38], [25, 39], [27, 40], [10, 41], [11, 42], [12, 43], [12, 44], [12, 45], [20, 46], [33, 47], [35, 48], [41, 49], [41, 50], [42, 51], [42, 52], [44, 53], [36, 54], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 5], [11, 5], [12, 5], [13, 6], [14, 7], [15, 2], [16, 3], [17, 5], [18, 10], [19, 11], [20, 6], [21, 7], [22, 7], [23, 7], [24, 14], [25, 14], [26, 4], [27, 4], [28, 17], [29, 17], [30, 6], [31, 6], [32, 6], [33, 20], [34, 21], [35, 7], [36, 7], [37, 7], [38, 7], [39, 25], [40, 27], [41, 10], [42, 11], [43, 12], [44, 12], [45, 12], [46, 20], [47, 33], [48, 35], [49, 41], [50, 41], [51, 42], [52, 42], [53, 44], [54, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "ReturnType", "code": "  final public void ReturnType() throws ParseException {\n /*@bgen(jjtree) ReturnType */\n  BSHReturnType jjtn000 = new BSHReturnType(JJTRETURNTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case VOID:\n        jj_consume_token(VOID);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.isVoid = true;\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        Type();\n        break;\n      default:\n        jj_la1[14] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [6, 19], [6, 20], [12, 21], [12, 22], [4, 23], [4, 24], [15, 25], [15, 26], [18, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 35], [22, 36], [24, 37], [9, 38], [10, 39], [11, 40], [11, 41], [11, 42], [28, 43], [31, 44], [33, 45], [34, 46], [38, 47], [38, 48], [39, 49], [39, 50], [41, 51], [29, 52], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 6], [20, 6], [21, 12], [22, 12], [23, 4], [24, 4], [25, 15], [26, 15], [27, 18], [28, 6], [29, 6], [30, 6], [31, 6], [32, 6], [33, 6], [34, 6], [35, 6], [36, 22], [37, 24], [38, 9], [39, 10], [40, 11], [41, 11], [42, 11], [43, 28], [44, 31], [45, 33], [46, 34], [47, 38], [48, 38], [49, 39], [50, 39], [51, 41], [52, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "PrimitiveType", "code": "  final public void PrimitiveType() throws ParseException {\n /*@bgen(jjtree) PrimitiveType */\n  BSHPrimitiveType jjtn000 = new BSHPrimitiveType(JJTPRIMITIVETYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n        jj_consume_token(BOOLEAN);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type = Boolean.TYPE;\n        break;\n      case CHAR:\n        jj_consume_token(CHAR);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Character.TYPE;\n        break;\n      case BYTE:\n        jj_consume_token(BYTE);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Byte.TYPE;\n        break;\n      case SHORT:\n        jj_consume_token(SHORT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Short.TYPE;\n        break;\n      case INT:\n        jj_consume_token(INT);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.type =  Integer.TYPE;\n        break;\n      case LONG:\n        jj_consume_token(LONG);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Long.TYPE;\n        break;\n      case FLOAT:\n        jj_consume_token(FLOAT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Float.TYPE;\n        break;\n      case DOUBLE:\n        jj_consume_token(DOUBLE);\n             jjtree.closeNodeScope(jjtn000, true);\n             jjtc000 = false;\n             jjtreeCloseNodeScope(jjtn000);\n             jjtn000.type =  Double.TYPE;\n        break;\n      default:\n        jj_la1[15] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } finally {\n  if (jjtc000) {\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "SWITCH", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [2, 9], [3, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [8, 20], [8, 21], [4, 22], [4, 23], [11, 24], [5, 25], [5, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 39], [5, 40], [5, 41], [5, 42], [5, 43], [5, 44], [5, 45], [5, 46], [5, 47], [5, 48], [5, 49], [5, 50], [5, 51], [5, 52], [5, 53], [5, 54], [5, 55], [5, 56], [5, 57], [5, 58], [5, 59], [5, 60], [5, 61], [5, 62], [5, 63], [5, 64], [5, 65], [5, 66], [21, 67], [23, 68], [25, 69], [29, 70], [30, 71], [34, 72], [35, 73], [39, 74], [40, 75], [44, 76], [45, 77], [49, 78], [50, 79], [54, 80], [55, 81], [59, 82], [60, 83], [64, 84], [65, 85], [26, 86], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 2], [10, 3], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 8], [21, 8], [22, 4], [23, 4], [24, 11], [25, 5], [26, 5], [27, 5], [28, 5], [29, 5], [30, 5], [31, 5], [32, 5], [33, 5], [34, 5], [35, 5], [36, 5], [37, 5], [38, 5], [39, 5], [40, 5], [41, 5], [42, 5], [43, 5], [44, 5], [45, 5], [46, 5], [47, 5], [48, 5], [49, 5], [50, 5], [51, 5], [52, 5], [53, 5], [54, 5], [55, 5], [56, 5], [57, 5], [58, 5], [59, 5], [60, 5], [61, 5], [62, 5], [63, 5], [64, 5], [65, 5], [66, 5], [67, 21], [68, 23], [69, 25], [70, 29], [71, 30], [72, 34], [73, 35], [74, 39], [75, 40], [76, 44], [77, 45], [78, 49], [79, 50], [80, 54], [81, 55], [82, 59], [83, 60], [84, 64], [85, 65], [86, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "AmbiguousName", "code": "  final public void AmbiguousName() throws ParseException {\n /*@bgen(jjtree) AmbiguousName */\n    BSHAmbiguousName jjtn000 = new BSHAmbiguousName(JJTAMBIGUOUSNAME);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t;\n    StringBuffer s;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n        s = new StringBuffer(t.image);\n      label_4:\n      while (true) {\n        if (jj_2_8(2)) {\n          ;\n        } else {\n          break label_4;\n        }\n        jj_consume_token(DOT);\n        t = jj_consume_token(IDENTIFIER);\n        s.append(\".\"+t.image);\n      }\n       jjtree.closeNodeScope(jjtn000, true);\n       jjtc000 = false;\n       jjtreeCloseNodeScope(jjtn000);\n        jjtn000.text = s.toString();\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [7, 14], [1, 15], [1, 16], [4, 17], [5, 18], [10, 19], [12, 20], [13, 21], [7, 22], [15, 23], [16, 24], [6, 25], [6, 26], [7, 27], [7, 28], [7, 29], [22, 30], [26, 31], [27, 32], [28, 33], [22, 34], [30, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 7], [15, 1], [16, 1], [17, 4], [18, 5], [19, 10], [20, 12], [21, 13], [22, 7], [23, 15], [24, 16], [25, 6], [26, 6], [27, 7], [28, 7], [29, 7], [30, 22], [31, 26], [32, 27], [33, 28], [34, 22], [35, 30], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "Expression", "code": "  final public void Expression() throws ParseException {\n    if (jj_2_9(2147483647)) {\n      Assignment();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ConditionalExpression();\n        break;\n      default:\n        jj_la1[16] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [3, 7], [3, 8], [5, 9], [5, 10], [7, 11], [3, 12], [3, 13], [3, 14], [10, 15], [12, 16], [13, 17], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 3], [8, 3], [9, 5], [10, 5], [11, 7], [12, 3], [13, 3], [14, 3], [15, 10], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "Assignment", "code": "  final public void Assignment() throws ParseException {\n /*@bgen(jjtree) Assignment */\n  BSHAssignment jjtn000 = new BSHAssignment(JJTASSIGNMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);int op ;\n    try {\n      LHSPrimaryExpression();\n      op = AssignmentOperator();\n    jjtn000.operator = op;\n      Expression();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [0, 7], [0, 8], [6, 9], [6, 10], [6, 11], [1, 12], [1, 13], [1, 14], [1, 15], [3, 16], [4, 17], [6, 18], [9, 19], [10, 20], [14, 21], [5, 22], [5, 23], [18, 24], [18, 25], [23, 26], [9, 27], [10, 28], [11, 29], [11, 30], [11, 31], [27, 32], [27, 33], [28, 34], [28, 35], [30, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 0], [8, 0], [9, 6], [10, 6], [11, 6], [12, 1], [13, 1], [14, 1], [15, 1], [16, 3], [17, 4], [18, 6], [19, 9], [20, 10], [21, 14], [22, 5], [23, 5], [24, 18], [25, 18], [26, 23], [27, 9], [28, 10], [29, 11], [30, 11], [31, 11], [32, 27], [33, 27], [34, 28], [35, 28], [36, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "AssignmentOperator", "code": "  final public int AssignmentOperator() throws ParseException {\n  Token t;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case ASSIGN:\n      jj_consume_token(ASSIGN);\n      break;\n    case STARASSIGN:\n      jj_consume_token(STARASSIGN);\n      break;\n    case SLASHASSIGN:\n      jj_consume_token(SLASHASSIGN);\n      break;\n    case MODASSIGN:\n      jj_consume_token(MODASSIGN);\n      break;\n    case PLUSASSIGN:\n      jj_consume_token(PLUSASSIGN);\n      break;\n    case MINUSASSIGN:\n      jj_consume_token(MINUSASSIGN);\n      break;\n    case ANDASSIGN:\n      jj_consume_token(ANDASSIGN);\n      break;\n    case XORASSIGN:\n      jj_consume_token(XORASSIGN);\n      break;\n    case ORASSIGN:\n      jj_consume_token(ORASSIGN);\n      break;\n    case LSHIFTASSIGN:\n      jj_consume_token(LSHIFTASSIGN);\n      break;\n    case LSHIFTASSIGNX:\n      jj_consume_token(LSHIFTASSIGNX);\n      break;\n    case RSIGNEDSHIFTASSIGN:\n      jj_consume_token(RSIGNEDSHIFTASSIGN);\n      break;\n    case RSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RSIGNEDSHIFTASSIGNX);\n      break;\n    case RUNSIGNEDSHIFTASSIGN:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGN);\n      break;\n    case RUNSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGNX);\n      break;\n    default:\n      jj_la1[17] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n        t = getToken(0);\n        {if (true) return t.kind;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "VAR_DECL", "CALL", "IF", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [4, 8], [5, 9], [5, 10], [6, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [7, 28], [7, 29], [11, 30], [12, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [29, 49], [32, 50], [33, 51], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 4], [9, 5], [10, 5], [11, 6], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 7], [29, 7], [30, 11], [31, 12], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 29], [50, 32], [51, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "ConditionalExpression", "code": "  final public void ConditionalExpression() throws ParseException {\n    ConditionalOrExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case HOOK:\n      jj_consume_token(HOOK);\n      Expression();\n      jj_consume_token(COLON);\n                                                     BSHTernaryExpression jjtn001 = new BSHTernaryExpression(JJTTERNARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n        ConditionalExpression();\n      } catch (Throwable jjte001) {\n                                                     if (jjtc001) {\n                                                       jjtree.clearNodeScope(jjtn001);\n                                                       jjtc001 = false;\n                                                     } else {\n                                                       jjtree.popNode();\n                                                     }\n                                                     if (jjte001 instanceof RuntimeException) {\n                                                       {if (true) throw (RuntimeException)jjte001;}\n                                                     }\n                                                     if (jjte001 instanceof ParseException) {\n                                                       {if (true) throw (ParseException)jjte001;}\n                                                     }\n                                                     {if (true) throw (Error)jjte001;}\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  3);\n                                                       jjtreeCloseNodeScope(jjtn001);\n                                                     }\n      }\n      break;\n    default:\n      jj_la1[18] = jj_gen;\n      ;", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "CALL", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "IF", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [2, 9], [1, 10], [5, 11], [5, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [9, 18], [12, 19], [12, 20], [12, 21], [5, 22], [6, 23], [7, 24], [12, 25], [19, 26], [20, 27], [10, 28], [11, 29], [11, 30], [25, 31], [25, 32], [30, 33], [19, 34], [20, 35], [21, 36], [21, 37], [21, 38], [34, 39], [34, 40], [35, 41], [35, 42], [37, 43], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 2], [10, 1], [11, 5], [12, 5], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 9], [19, 12], [20, 12], [21, 12], [22, 5], [23, 6], [24, 7], [25, 12], [26, 19], [27, 20], [28, 10], [29, 11], [30, 11], [31, 25], [32, 25], [33, 30], [34, 19], [35, 20], [36, 21], [37, 21], [38, 21], [39, 34], [40, 34], [41, 35], [42, 35], [43, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "ConditionalOrExpression", "code": "  final public void ConditionalOrExpression() throws ParseException {\n  Token t=null;\n    ConditionalAndExpression();\n    label_5:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n      case BOOL_ORX:\n        ;\n        break;\n      default:\n        jj_la1[19] = jj_gen;\n        break label_5;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n        t = jj_consume_token(BOOL_OR);\n        break;\n      case BOOL_ORX:\n        t = jj_consume_token(BOOL_ORX);\n        break;\n      default:\n        jj_la1[20] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ConditionalAndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "ConditionalAndExpression", "code": "  final public void ConditionalAndExpression() throws ParseException {\n  Token t=null;\n    InclusiveOrExpression();\n    label_6:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n      case BOOL_ANDX:\n        ;\n        break;\n      default:\n        jj_la1[21] = jj_gen;\n        break label_6;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n        t = jj_consume_token(BOOL_AND);\n        break;\n      case BOOL_ANDX:\n        t = jj_consume_token(BOOL_ANDX);\n        break;\n      default:\n        jj_la1[22] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "InclusiveOrExpression", "code": "  final public void InclusiveOrExpression() throws ParseException {\n  Token t=null;\n    ExclusiveOrExpression();\n    label_7:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n      case BIT_ORX:\n        ;\n        break;\n      default:\n        jj_la1[23] = jj_gen;\n        break label_7;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n        t = jj_consume_token(BIT_OR);\n        break;\n      case BIT_ORX:\n        t = jj_consume_token(BIT_ORX);\n        break;\n      default:\n        jj_la1[24] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ExclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "ExclusiveOrExpression", "code": "  final public void ExclusiveOrExpression() throws ParseException {\n  Token t=null;\n    AndExpression();\n    label_8:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case XOR:\n        ;\n        break;\n      default:\n        jj_la1[25] = jj_gen;\n        break label_8;\n      }\n      t = jj_consume_token(XOR);\n      AndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "ASSIGN", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [8, 15], [5, 16], [5, 17], [5, 18], [5, 19], [6, 20], [7, 21], [14, 22], [8, 23], [8, 24], [15, 25], [15, 26], [18, 27], [19, 28], [8, 29], [26, 30], [10, 31], [10, 32], [32, 33], [29, 34], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 8], [16, 5], [17, 5], [18, 5], [19, 5], [20, 6], [21, 7], [22, 14], [23, 8], [24, 8], [25, 15], [26, 15], [27, 18], [28, 19], [29, 8], [30, 26], [31, 10], [32, 10], [33, 32], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "AndExpression", "code": "  final public void AndExpression() throws ParseException {\n  Token t=null;\n    EqualityExpression();\n    label_9:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n      case BIT_ANDX:\n        ;\n        break;\n      default:\n        jj_la1[26] = jj_gen;\n        break label_9;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n        t = jj_consume_token(BIT_AND);\n        break;\n      case BIT_ANDX:\n        t = jj_consume_token(BIT_ANDX);\n        break;\n      default:\n        jj_la1[27] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      EqualityExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "EqualityExpression", "code": "  final public void EqualityExpression() throws ParseException {\n  Token t = null;\n    InstanceOfExpression();\n    label_10:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n      case NE:\n        ;\n        break;\n      default:\n        jj_la1[28] = jj_gen;\n        break label_10;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n        t = jj_consume_token(EQ);\n        break;\n      case NE:\n        t = jj_consume_token(NE);\n        break;\n      default:\n        jj_la1[29] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InstanceOfExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "InstanceOfExpression", "code": "  final public void InstanceOfExpression() throws ParseException {\n  Token t = null;\n    RelationalExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case INSTANCEOF:\n      t = jj_consume_token(INSTANCEOF);\n      Type();\n                              BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                              boolean jjtc001 = true;\n                              jjtree.openNodeScope(jjtn001);\n                              jjtreeOpenNodeScope(jjtn001);\n      try {\n                              jjtree.closeNodeScope(jjtn001,  2);\n                              jjtc001 = false;\n                              jjtreeCloseNodeScope(jjtn001);\n                              jjtn001.kind = t.kind;\n      } finally {\n                              if (jjtc001) {\n                                jjtree.closeNodeScope(jjtn001,  2);\n                                jjtreeCloseNodeScope(jjtn001);\n                              }\n      }\n      break;\n    default:\n      jj_la1[30] = jj_gen;\n      ;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "COND_EXPR", "CALL", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [3, 10], [2, 11], [1, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [10, 18], [6, 19], [6, 20], [6, 21], [6, 22], [7, 23], [8, 24], [17, 25], [21, 26], [22, 27], [12, 28], [13, 29], [13, 30], [30, 31], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 3], [11, 2], [12, 1], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 10], [19, 6], [20, 6], [21, 6], [22, 6], [23, 7], [24, 8], [25, 17], [26, 21], [27, 22], [28, 12], [29, 13], [30, 13], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "RelationalExpression", "code": "  final public void RelationalExpression() throws ParseException {\n  Token t = null;\n    ShiftExpression();\n    label_11:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case GT:\n      case GTX:\n      case LT:\n      case LTX:\n      case LE:\n      case LEX:\n      case GE:\n      case GEX:\n        ;\n        break;\n      default:\n        jj_la1[31] = jj_gen;\n        break label_11;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LT:\n        t = jj_consume_token(LT);\n        break;\n      case LTX:\n        t = jj_consume_token(LTX);\n        break;\n      case GT:\n        t = jj_consume_token(GT);\n        break;\n      case GTX:\n        t = jj_consume_token(GTX);\n        break;\n      case LE:\n        t = jj_consume_token(LE);\n        break;\n      case LEX:\n        t = jj_consume_token(LEX);\n        break;\n      case GE:\n        t = jj_consume_token(GE);\n        break;\n      case GEX:\n        t = jj_consume_token(GEX);\n        break;\n      default:\n        jj_la1[32] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ShiftExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 30], [8, 31], [15, 32], [15, 33], [9, 34], [9, 35], [16, 36], [16, 37], [19, 38], [20, 39], [23, 40], [8, 41], [8, 42], [8, 43], [8, 44], [8, 45], [8, 46], [8, 47], [8, 48], [8, 49], [8, 50], [33, 51], [9, 52], [37, 53], [11, 54], [11, 55], [41, 56], [43, 57], [44, 58], [45, 59], [46, 60], [47, 61], [48, 62], [49, 63], [50, 64], [55, 65], [42, 66], [52, 67], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 8], [31, 8], [32, 15], [33, 15], [34, 9], [35, 9], [36, 16], [37, 16], [38, 19], [39, 20], [40, 23], [41, 8], [42, 8], [43, 8], [44, 8], [45, 8], [46, 8], [47, 8], [48, 8], [49, 8], [50, 8], [51, 33], [52, 9], [53, 37], [54, 11], [55, 11], [56, 41], [57, 43], [58, 44], [59, 45], [60, 46], [61, 47], [62, 48], [63, 49], [64, 50], [65, 55], [66, 42], [67, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "ShiftExpression", "code": "  final public void ShiftExpression() throws ParseException {\n  Token t = null;\n    AdditiveExpression();\n    label_12:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n      case LSHIFTX:\n      case RSIGNEDSHIFT:\n      case RSIGNEDSHIFTX:\n      case RUNSIGNEDSHIFT:\n      case RUNSIGNEDSHIFTX:\n        ;\n        break;\n      default:\n        jj_la1[33] = jj_gen;\n        break label_12;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n        t = jj_consume_token(LSHIFT);\n        break;\n      case LSHIFTX:\n        t = jj_consume_token(LSHIFTX);\n        break;\n      case RSIGNEDSHIFT:\n        t = jj_consume_token(RSIGNEDSHIFT);\n        break;\n      case RSIGNEDSHIFTX:\n        t = jj_consume_token(RSIGNEDSHIFTX);\n        break;\n      case RUNSIGNEDSHIFT:\n        t = jj_consume_token(RUNSIGNEDSHIFT);\n        break;\n      case RUNSIGNEDSHIFTX:\n        t = jj_consume_token(RUNSIGNEDSHIFTX);\n        break;\n      default:\n        jj_la1[34] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      AdditiveExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [15, 30], [15, 31], [9, 32], [9, 33], [16, 34], [16, 35], [19, 36], [20, 37], [23, 38], [8, 39], [8, 40], [8, 41], [8, 42], [8, 43], [8, 44], [8, 45], [8, 46], [31, 47], [9, 48], [35, 49], [11, 50], [11, 51], [39, 52], [41, 53], [42, 54], [43, 55], [44, 56], [45, 57], [46, 58], [51, 59], [40, 60], [48, 61], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 15], [31, 15], [32, 9], [33, 9], [34, 16], [35, 16], [36, 19], [37, 20], [38, 23], [39, 8], [40, 8], [41, 8], [42, 8], [43, 8], [44, 8], [45, 8], [46, 8], [47, 31], [48, 9], [49, 35], [50, 11], [51, 11], [52, 39], [53, 41], [54, 42], [55, 43], [56, 44], [57, 45], [58, 46], [59, 51], [60, 40], [61, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "AdditiveExpression", "code": "  final public void AdditiveExpression() throws ParseException {\n  Token t = null;\n    MultiplicativeExpression();\n    label_13:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n      case MINUS:\n        ;\n        break;\n      default:\n        jj_la1[35] = jj_gen;\n        break label_13;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_la1[36] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      MultiplicativeExpression();\n                                                     BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n                                                     jjtree.closeNodeScope(jjtn001,  2);\n                                                     jjtc001 = false;\n                                                     jjtreeCloseNodeScope(jjtn001);\n                                                     jjtn001.kind = t.kind;\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  2);\n                                                       jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [8, 38], [27, 39], [9, 40], [31, 41], [11, 42], [11, 43], [35, 44], [37, 45], [38, 46], [43, 47], [36, 48], [40, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 8], [39, 27], [40, 9], [41, 31], [42, 11], [43, 11], [44, 35], [45, 37], [46, 38], [47, 43], [48, 36], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "MultiplicativeExpression", "code": "  final public void MultiplicativeExpression() throws ParseException {\n  Token t = null;\n    UnaryExpression();\n    label_14:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n      case SLASH:\n      case MOD:\n        ;\n        break;\n      default:\n        jj_la1[37] = jj_gen;\n        break label_14;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n        t = jj_consume_token(STAR);\n        break;\n      case SLASH:\n        t = jj_consume_token(SLASH);\n        break;\n      case MOD:\n        t = jj_consume_token(MOD);\n        break;\n      default:\n        jj_la1[38] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n                      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                      boolean jjtc001 = true;\n                      jjtree.openNodeScope(jjtn001);\n                      jjtreeOpenNodeScope(jjtn001);\n      try {\n                      jjtree.closeNodeScope(jjtn001,  2);\n                      jjtc001 = false;\n                      jjtreeCloseNodeScope(jjtn001);\n                      jjtn001.kind = t.kind;\n      } finally {\n                      if (jjtc001) {\n                        jjtree.closeNodeScope(jjtn001,  2);\n                        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [8, 26], [15, 27], [15, 28], [9, 29], [9, 30], [16, 31], [16, 32], [19, 33], [20, 34], [23, 35], [8, 36], [8, 37], [8, 38], [8, 39], [8, 40], [28, 41], [9, 42], [32, 43], [11, 44], [11, 45], [36, 46], [38, 47], [39, 48], [40, 49], [45, 50], [37, 51], [42, 52], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 8], [27, 15], [28, 15], [29, 9], [30, 9], [31, 16], [32, 16], [33, 19], [34, 20], [35, 23], [36, 8], [37, 8], [38, 8], [39, 8], [40, 8], [41, 28], [42, 9], [43, 32], [44, 11], [45, 11], [46, 36], [47, 38], [48, 39], [49, 40], [50, 45], [51, 37], [52, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "UnaryExpression", "code": "  final public void UnaryExpression() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case PLUS:\n    case MINUS:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_la1[39] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    case INCR:\n      PreIncrementExpression();\n      break;\n    case DECR:\n      PreDecrementExpression();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n      UnaryExpressionNotPlusMinus();\n      break;\n    default:\n      jj_la1[40] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "COND_EXPR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [3, 13], [3, 14], [2, 15], [4, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [9, 22], [1, 23], [1, 24], [1, 25], [12, 26], [14, 27], [17, 28], [9, 29], [9, 30], [9, 31], [9, 32], [10, 33], [11, 34], [12, 35], [12, 36], [12, 37], [26, 38], [26, 39], [31, 40], [32, 41], [35, 42], [12, 43], [12, 44], [12, 45], [12, 46], [39, 47], [18, 48], [22, 49], [22, 50], [43, 51], [45, 52], [46, 53], [50, 54], [44, 55], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 3], [14, 3], [15, 2], [16, 4], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 9], [23, 1], [24, 1], [25, 1], [26, 12], [27, 14], [28, 17], [29, 9], [30, 9], [31, 9], [32, 9], [33, 10], [34, 11], [35, 12], [36, 12], [37, 12], [38, 26], [39, 26], [40, 31], [41, 32], [42, 35], [43, 12], [44, 12], [45, 12], [46, 12], [47, 39], [48, 18], [49, 22], [50, 22], [51, 43], [52, 45], [53, 46], [54, 50], [55, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "PreIncrementExpression", "code": "  final public void PreIncrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(INCR);\n    LHSPrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [9, 16], [4, 17], [12, 18], [13, 19], [5, 20], [5, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 9], [17, 4], [18, 12], [19, 13], [20, 5], [21, 5], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "PreDecrementExpression", "code": "  final public void PreDecrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(DECR);\n    LHSPrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [9, 16], [4, 17], [12, 18], [13, 19], [5, 20], [5, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 9], [17, 4], [18, 12], [19, 13], [20, 5], [21, 5], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "UnaryExpressionNotPlusMinus", "code": "  final public void UnaryExpressionNotPlusMinus() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case BANG:\n    case TILDE:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TILDE:\n        t = jj_consume_token(TILDE);\n        break;\n      case BANG:\n        t = jj_consume_token(BANG);\n        break;\n      default:\n        jj_la1[41] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    default:\n      jj_la1[42] = jj_gen;\n      if (jj_2_10(2147483647)) {\n        CastExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FALSE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case SHORT:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n          PostfixExpression();\n          break;\n        default:\n          jj_la1[43] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "COND_EXPR", "IF", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [2, 12], [4, 13], [1, 14], [6, 15], [1, 16], [1, 17], [1, 18], [9, 19], [11, 20], [4, 21], [13, 22], [6, 23], [6, 24], [6, 25], [6, 26], [7, 27], [8, 28], [9, 29], [9, 30], [9, 31], [19, 32], [19, 33], [21, 34], [4, 35], [25, 36], [26, 37], [29, 38], [9, 39], [9, 40], [9, 41], [9, 42], [33, 43], [21, 44], [21, 45], [34, 46], [34, 47], [14, 48], [15, 49], [15, 50], [39, 51], [41, 52], [42, 53], [44, 54], [21, 55], [21, 56], [21, 57], [47, 58], [50, 59], [55, 60], [40, 61], [56, 62], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 2], [13, 4], [14, 1], [15, 6], [16, 1], [17, 1], [18, 1], [19, 9], [20, 11], [21, 4], [22, 13], [23, 6], [24, 6], [25, 6], [26, 6], [27, 7], [28, 8], [29, 9], [30, 9], [31, 9], [32, 19], [33, 19], [34, 21], [35, 4], [36, 25], [37, 26], [38, 29], [39, 9], [40, 9], [41, 9], [42, 9], [43, 33], [44, 21], [45, 21], [46, 34], [47, 34], [48, 14], [49, 15], [50, 15], [51, 39], [52, 41], [53, 42], [54, 44], [55, 21], [56, 21], [57, 21], [58, 47], [59, 50], [60, 55], [61, 40], [62, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "CastLookahead", "code": "  final public void CastLookahead() throws ParseException {\n    if (jj_2_11(2)) {\n      jj_consume_token(LPAREN);\n      PrimitiveType();\n    } else if (jj_2_12(2147483647)) {\n      jj_consume_token(LPAREN);\n      AmbiguousName();\n      jj_consume_token(LBRACKET);\n      jj_consume_token(RBRACKET);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LPAREN:\n        jj_consume_token(LPAREN);\n        AmbiguousName();\n        jj_consume_token(RPAREN);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case TILDE:\n          jj_consume_token(TILDE);\n          break;\n        case BANG:\n          jj_consume_token(BANG);\n          break;\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          break;\n        case IDENTIFIER:\n          jj_consume_token(IDENTIFIER);\n          break;\n        case NEW:\n          jj_consume_token(NEW);\n          break;\n        case FALSE:\n        case NULL:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n          Literal();\n          break;\n        default:\n          jj_la1[44] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n        break;\n      default:\n        jj_la1[45] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [2, 6], [4, 7], [1, 8], [1, 9], [6, 10], [2, 11], [2, 12], [2, 13], [2, 14], [6, 15], [6, 16], [6, 17], [10, 18], [10, 19], [15, 20], [6, 21], [6, 22], [17, 23], [6, 24], [6, 25], [6, 26], [19, 27], [21, 28], [17, 29], [17, 30], [17, 31], [17, 32], [17, 33], [17, 34], [17, 35], [23, 36], [23, 37], [29, 38], [17, 39], [17, 40], [17, 41], [17, 42], [17, 43], [17, 44], [17, 45], [17, 46], [37, 47], [22, 48], [39, 49], [40, 50], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 2], [7, 4], [8, 1], [9, 1], [10, 6], [11, 2], [12, 2], [13, 2], [14, 2], [15, 6], [16, 6], [17, 6], [18, 10], [19, 10], [20, 15], [21, 6], [22, 6], [23, 17], [24, 6], [25, 6], [26, 6], [27, 19], [28, 21], [29, 17], [30, 17], [31, 17], [32, 17], [33, 17], [34, 17], [35, 17], [36, 23], [37, 23], [38, 29], [39, 17], [40, 17], [41, 17], [42, 17], [43, 17], [44, 17], [45, 17], [46, 17], [47, 37], [48, 22], [49, 39], [50, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "PostfixExpression", "code": "  final public void PostfixExpression() throws ParseException {\n  Token t = null;\n    if (jj_2_13(2147483647)) {\n      LHSPrimaryExpression();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INCR:\n        t = jj_consume_token(INCR);\n        break;\n      case DECR:\n        t = jj_consume_token(DECR);\n        break;\n      default:\n        jj_la1[46] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n                                BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n                                boolean jjtc001 = true;\n                                jjtree.openNodeScope(jjtn001);\n                                jjtreeOpenNodeScope(jjtn001);\n      try {\n                                jjtree.closeNodeScope(jjtn001,  1);\n                                jjtc001 = false;\n                                jjtreeCloseNodeScope(jjtn001);\n                jjtn001.kind = t.kind; jjtn001.postfix = true;\n      } finally {\n                                if (jjtc001) {\n                                  jjtree.closeNodeScope(jjtn001,  1);\n                                  jjtreeCloseNodeScope(jjtn001);\n                                }\n      }\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n        PrimaryExpression();\n        break;\n      default:\n        jj_la1[47] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "SWITCH", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "IF", "CALL", "CALL", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [2, 10], [4, 11], [5, 12], [1, 13], [1, 14], [8, 15], [1, 16], [4, 17], [4, 18], [11, 19], [11, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [6, 26], [7, 27], [8, 28], [8, 29], [8, 30], [15, 31], [15, 32], [17, 33], [4, 34], [4, 35], [4, 36], [20, 37], [21, 38], [24, 39], [25, 40], [28, 41], [8, 42], [8, 43], [8, 44], [8, 45], [32, 46], [34, 47], [12, 48], [12, 49], [42, 50], [44, 51], [45, 52], [49, 53], [35, 54], [43, 55], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 2], [11, 4], [12, 5], [13, 1], [14, 1], [15, 8], [16, 1], [17, 4], [18, 4], [19, 11], [20, 11], [21, 5], [22, 5], [23, 5], [24, 5], [25, 5], [26, 6], [27, 7], [28, 8], [29, 8], [30, 8], [31, 15], [32, 15], [33, 17], [34, 4], [35, 4], [36, 4], [37, 20], [38, 21], [39, 24], [40, 25], [41, 28], [42, 8], [43, 8], [44, 8], [45, 8], [46, 32], [47, 34], [48, 12], [49, 12], [50, 42], [51, 44], [52, 45], [53, 49], [54, 35], [55, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "CastExpression", "code": "  final public void CastExpression() throws ParseException {\n /*@bgen(jjtree) CastExpression */\n  BSHCastExpression jjtn000 = new BSHCastExpression(JJTCASTEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_14(2147483647)) {\n        jj_consume_token(LPAREN);\n        Type();\n        jj_consume_token(RPAREN);\n        UnaryExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          Type();\n          jj_consume_token(RPAREN);\n          UnaryExpressionNotPlusMinus();\n          break;\n        default:\n          jj_la1[48] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [12, 19], [4, 20], [4, 21], [15, 22], [15, 23], [18, 24], [6, 25], [6, 26], [6, 27], [6, 28], [21, 29], [9, 30], [10, 31], [11, 32], [11, 33], [11, 34], [18, 35], [18, 36], [24, 37], [24, 38], [30, 39], [30, 40], [31, 41], [31, 42], [33, 43], [35, 44], [18, 45], [18, 46], [18, 47], [18, 48], [18, 49], [18, 50], [38, 51], [45, 52], [46, 53], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 12], [20, 4], [21, 4], [22, 15], [23, 15], [24, 18], [25, 6], [26, 6], [27, 6], [28, 6], [29, 21], [30, 9], [31, 10], [32, 11], [33, 11], [34, 11], [35, 18], [36, 18], [37, 24], [38, 24], [39, 30], [40, 30], [41, 31], [42, 31], [43, 33], [44, 35], [45, 18], [46, 18], [47, 18], [48, 18], [49, 18], [50, 18], [51, 38], [52, 45], [53, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "PrimaryExpression", "code": "  final public void PrimaryExpression() throws ParseException {\n                                               /*@bgen(jjtree) PrimaryExpression */\n  BSHPrimaryExpression jjtn000 = new BSHPrimaryExpression(JJTPRIMARYEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      PrimaryPrefix();\n      label_15:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACE:\n        case LBRACKET:\n        case DOT:\n          ;\n          break;\n        default:\n          jj_la1[49] = jj_gen;\n          break label_15;\n        }\n        PrimarySuffix();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [2, 14], [3, 15], [5, 16], [9, 17], [10, 18], [6, 19], [4, 20], [4, 21], [16, 22], [16, 23], [6, 24], [19, 25], [21, 26], [9, 27], [10, 28], [11, 29], [11, 30], [11, 31], [19, 32], [19, 33], [25, 34], [25, 35], [27, 36], [27, 37], [28, 38], [28, 39], [30, 40], [19, 41], [35, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 2], [15, 3], [16, 5], [17, 9], [18, 10], [19, 6], [20, 4], [21, 4], [22, 16], [23, 16], [24, 6], [25, 19], [26, 21], [27, 9], [28, 10], [29, 11], [30, 11], [31, 11], [32, 19], [33, 19], [34, 25], [35, 25], [36, 27], [37, 27], [38, 28], [39, 28], [40, 30], [41, 19], [42, 35], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "MethodInvocation", "code": "  final public void MethodInvocation() throws ParseException {\n                                             /*@bgen(jjtree) MethodInvocation */\n  BSHMethodInvocation jjtn000 = new BSHMethodInvocation(JJTMETHODINVOCATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      AmbiguousName();\n      Arguments();\n    } catch (Throwable jjte000) {\n     if (jjtc000) {\n       jjtree.clearNodeScope(jjtn000);\n       jjtc000 = false;\n     } else {\n       jjtree.popNode();\n     }\n     if (jjte000 instanceof RuntimeException) {\n       {if (true) throw (RuntimeException)jjte000;}\n     }\n     if (jjte000 instanceof ParseException) {\n       {if (true) throw (ParseException)jjte000;}\n     }\n     {if (true) throw (Error)jjte000;}\n    } finally {\n     if (jjtc000) {\n       jjtree.closeNodeScope(jjtn000, true);\n       jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [2, 13], [3, 14], [5, 15], [8, 16], [9, 17], [4, 18], [4, 19], [15, 20], [15, 21], [19, 22], [8, 23], [9, 24], [10, 25], [10, 26], [10, 27], [23, 28], [23, 29], [24, 30], [24, 31], [26, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 2], [14, 3], [15, 5], [16, 8], [17, 9], [18, 4], [19, 4], [20, 15], [21, 15], [22, 19], [23, 8], [24, 9], [25, 10], [26, 10], [27, 10], [28, 23], [29, 23], [30, 24], [31, 24], [32, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "PrimaryPrefix", "code": "  final public void PrimaryPrefix() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case FALSE:\n    case NULL:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n      Literal();\n      break;\n    case LPAREN:\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      break;\n    case NEW:\n      AllocationExpression();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case SHORT:\n    case IDENTIFIER:\n      if (jj_2_16(2147483647)) {\n        MethodInvocation();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case SHORT:\n        case IDENTIFIER:\n          if (jj_2_15(2147483647)) {\n            Type();\n          } else {\n            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n            case IDENTIFIER:\n              AmbiguousName();\n              break;\n            default:\n              jj_la1[50] = jj_gen;\n              jj_consume_token(-1);\n              throw new ParseException();\n            }\n          }\n          break;\n        default:\n          jj_la1[51] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n      break;\n    default:\n      jj_la1[52] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [2, 10], [3, 11], [1, 12], [1, 13], [5, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [10, 20], [12, 21], [5, 22], [14, 23], [22, 24], [5, 25], [13, 26], [22, 27], [22, 28], [22, 29], [24, 30], [24, 31], [27, 32], [22, 33], [22, 34], [29, 35], [31, 36], [33, 37], [29, 38], [35, 39], [38, 40], [29, 41], [34, 42], [38, 43], [38, 44], [40, 45], [40, 46], [43, 47], [38, 48], [38, 49], [38, 50], [46, 51], [48, 52], [49, 53], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 2], [11, 3], [12, 1], [13, 1], [14, 5], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 10], [21, 12], [22, 5], [23, 14], [24, 22], [25, 5], [26, 13], [27, 22], [28, 22], [29, 22], [30, 24], [31, 24], [32, 27], [33, 22], [34, 22], [35, 29], [36, 31], [37, 33], [38, 29], [39, 35], [40, 38], [41, 29], [42, 34], [43, 38], [44, 38], [45, 40], [46, 40], [47, 43], [48, 38], [49, 38], [50, 38], [51, 46], [52, 48], [53, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "PrimarySuffix", "code": "  final public void PrimarySuffix() throws ParseException {\n /*@bgen(jjtree) PrimarySuffix */\n    BSHPrimarySuffix jjtn000 = new BSHPrimarySuffix(JJTPRIMARYSUFFIX);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_17(2)) {\n        jj_consume_token(DOT);\n        jj_consume_token(CLASS);\n                jjtree.closeNodeScope(jjtn000, true);\n                jjtc000 = false;\n                jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.CLASS;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.INDEX;\n          break;\n        case DOT:\n          jj_consume_token(DOT);\n          t = jj_consume_token(IDENTIFIER);\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LPAREN:\n            Arguments();\n            break;\n          default:\n            jj_la1[53] = jj_gen;\n            ;\n          }\n                                         jjtree.closeNodeScope(jjtn000, true);\n                                         jjtc000 = false;\n                                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.NAME;\n        jjtn000.field = t.image;\n          break;\n        case LBRACE:\n          jj_consume_token(LBRACE);\n          Expression();\n          jj_consume_token(RBRACE);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.PROPERTY;\n          break;\n        default:\n          jj_la1[54] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "SWITCH", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [2, 14], [3, 15], [4, 16], [6, 17], [10, 18], [11, 19], [7, 20], [13, 21], [5, 22], [5, 23], [17, 24], [17, 25], [20, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [23, 33], [10, 34], [11, 35], [12, 36], [12, 37], [12, 38], [20, 39], [20, 40], [20, 41], [20, 42], [20, 43], [26, 44], [26, 45], [29, 46], [30, 47], [34, 48], [34, 49], [35, 50], [35, 51], [37, 52], [39, 53], [20, 54], [20, 55], [20, 56], [20, 57], [20, 58], [20, 59], [20, 60], [20, 61], [20, 62], [20, 63], [20, 64], [20, 65], [20, 66], [20, 67], [42, 68], [20, 69], [20, 70], [20, 71], [20, 72], [20, 73], [20, 74], [20, 75], [20, 76], [20, 77], [45, 78], [54, 79], [58, 80], [59, 81], [66, 82], [67, 83], [42, 84], [68, 85], [68, 86], [69, 87], [73, 88], [74, 89], [42, 90], [42, 91], [86, 92], [55, 93], [90, 94], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 2], [15, 3], [16, 4], [17, 6], [18, 10], [19, 11], [20, 7], [21, 13], [22, 5], [23, 5], [24, 17], [25, 17], [26, 20], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 7], [33, 23], [34, 10], [35, 11], [36, 12], [37, 12], [38, 12], [39, 20], [40, 20], [41, 20], [42, 20], [43, 20], [44, 26], [45, 26], [46, 29], [47, 30], [48, 34], [49, 34], [50, 35], [51, 35], [52, 37], [53, 39], [54, 20], [55, 20], [56, 20], [57, 20], [58, 20], [59, 20], [60, 20], [61, 20], [62, 20], [63, 20], [64, 20], [65, 20], [66, 20], [67, 20], [68, 42], [69, 20], [70, 20], [71, 20], [72, 20], [73, 20], [74, 20], [75, 20], [76, 20], [77, 20], [78, 45], [79, 54], [80, 58], [81, 59], [82, 66], [83, 67], [84, 42], [85, 68], [86, 68], [87, 69], [88, 73], [89, 74], [90, 42], [91, 42], [92, 86], [93, 55], [94, 90], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "LHSPrimaryPrefix", "code": "  final public void LHSPrimaryPrefix() throws ParseException {\n    if (jj_2_18(2147483647)) {\n      MethodInvocation();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        AmbiguousName();\n        break;\n      default:\n        jj_la1[55] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [3, 7], [3, 8], [5, 9], [5, 10], [7, 11], [3, 12], [3, 13], [3, 14], [10, 15], [12, 16], [13, 17], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 3], [8, 3], [9, 5], [10, 5], [11, 7], [12, 3], [13, 3], [14, 3], [15, 10], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "LHSPrimaryExpression", "code": "  final public void LHSPrimaryExpression() throws ParseException {\n                                                     /*@bgen(jjtree) LHSPrimaryExpression */\n  BSHLHSPrimaryExpression jjtn000 = new BSHLHSPrimaryExpression(JJTLHSPRIMARYEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      LHSPrimaryPrefix();\n      label_16:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACE:\n        case LBRACKET:\n        case DOT:\n          ;\n          break;\n        default:\n          jj_la1[56] = jj_gen;\n          break label_16;\n        }\n        LHSPrimarySuffix();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [2, 14], [3, 15], [5, 16], [9, 17], [10, 18], [6, 19], [4, 20], [4, 21], [16, 22], [16, 23], [6, 24], [19, 25], [21, 26], [9, 27], [10, 28], [11, 29], [11, 30], [11, 31], [19, 32], [19, 33], [25, 34], [25, 35], [27, 36], [27, 37], [28, 38], [28, 39], [30, 40], [19, 41], [35, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 2], [15, 3], [16, 5], [17, 9], [18, 10], [19, 6], [20, 4], [21, 4], [22, 16], [23, 16], [24, 6], [25, 19], [26, 21], [27, 9], [28, 10], [29, 11], [30, 11], [31, 11], [32, 19], [33, 19], [34, 25], [35, 25], [36, 27], [37, 27], [38, 28], [39, 28], [40, 30], [41, 19], [42, 35], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "LHSPrimarySuffix", "code": "  final public void LHSPrimarySuffix() throws ParseException {\n /*@bgen(jjtree) LHSPrimarySuffix */\n    BSHLHSPrimarySuffix jjtn000 = new BSHLHSPrimarySuffix(JJTLHSPRIMARYSUFFIX);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t=null, t1, t2 = null;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACKET:\n        jj_consume_token(LBRACKET);\n        Expression();\n        jj_consume_token(RBRACKET);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.INDEX;\n        break;\n      case DOT:\n        jj_consume_token(DOT);\n        t1 = jj_consume_token(IDENTIFIER);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LPAREN:\n          Arguments();\n          jj_consume_token(DOT);\n          t2 = jj_consume_token(IDENTIFIER);\n          break;\n        default:\n          jj_la1[57] = jj_gen;\n          ;\n        }\n                                                                jjtree.closeNodeScope(jjtn000, true);\n                                                                jjtc000 = false;\n                                                                jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.NAME;\n        if ( t2 == null )\n            jjtn000.field = t1.image;\n        else {\n            jjtn000.method = t1.image;\n            jjtn000.field = t2.image;\n        }\n        break;\n      case LBRACE:\n        jj_consume_token(LBRACE);\n        Expression();\n        jj_consume_token(RBRACE);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHLHSPrimarySuffix.PROPERTY;\n        break;\n      default:\n        jj_la1[58] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "SWITCH", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [2, 14], [2, 15], [3, 16], [4, 17], [6, 18], [10, 19], [11, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [7, 26], [13, 27], [13, 28], [5, 29], [5, 30], [18, 31], [18, 32], [21, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [7, 39], [7, 40], [7, 41], [7, 42], [24, 43], [7, 44], [7, 45], [7, 46], [7, 47], [25, 48], [7, 49], [7, 50], [7, 51], [7, 52], [7, 53], [7, 54], [7, 55], [7, 56], [7, 57], [28, 58], [30, 59], [10, 60], [11, 61], [12, 62], [12, 63], [12, 64], [34, 65], [38, 66], [39, 67], [24, 68], [43, 69], [46, 70], [47, 71], [25, 72], [48, 73], [48, 74], [49, 75], [53, 76], [54, 77], [60, 78], [60, 79], [61, 80], [61, 81], [63, 82], [24, 83], [24, 84], [25, 85], [25, 86], [25, 87], [25, 88], [74, 89], [35, 90], [86, 91], [85, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 2], [15, 2], [16, 3], [17, 4], [18, 6], [19, 10], [20, 11], [21, 7], [22, 7], [23, 7], [24, 7], [25, 7], [26, 7], [27, 13], [28, 13], [29, 5], [30, 5], [31, 18], [32, 18], [33, 21], [34, 7], [35, 7], [36, 7], [37, 7], [38, 7], [39, 7], [40, 7], [41, 7], [42, 7], [43, 24], [44, 7], [45, 7], [46, 7], [47, 7], [48, 25], [49, 7], [50, 7], [51, 7], [52, 7], [53, 7], [54, 7], [55, 7], [56, 7], [57, 7], [58, 28], [59, 30], [60, 10], [61, 11], [62, 12], [63, 12], [64, 12], [65, 34], [66, 38], [67, 39], [68, 24], [69, 43], [70, 46], [71, 47], [72, 25], [73, 48], [74, 48], [75, 49], [76, 53], [77, 54], [78, 60], [79, 60], [80, 61], [81, 61], [82, 63], [83, 24], [84, 24], [85, 25], [86, 25], [87, 25], [88, 25], [89, 74], [90, 35], [91, 86], [92, 85], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "Literal", "code": "  final public void Literal() throws ParseException {\n /*@bgen(jjtree) Literal */\n    BSHLiteral jjtn000 = new BSHLiteral(JJTLITERAL);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token x;\n    boolean b;\n    String literal;\n    char ch;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INTEGER_LITERAL:\n        x = jj_consume_token(INTEGER_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'l' || ch == 'L')\n    {\n        literal = literal.substring(0,literal.length()-1);\n\n        // This really should be Long.decode, but there isn't one. As a result,\n        // hex and octal literals ending in 'l' or 'L' don't work.\n        jjtn000.value = new Primitive( new Long( literal ) );\n    }\n    else\n        jjtn000.value = new Primitive( Integer.decode( literal ) );\n        break;\n      case FLOATING_POINT_LITERAL:\n        x = jj_consume_token(FLOATING_POINT_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'f' || ch == 'F')\n    {\n        literal = literal.substring(0,literal.length()-1);\n        jjtn000.value = new Primitive( new Float( literal ) );\n    }\n    else\n    {\n        if(ch == 'd' || ch == 'D')\n            literal = literal.substring(0,literal.length()-1);\n\n        jjtn000.value = new Primitive( new Double( literal ) );\n    }\n        break;\n      case CHARACTER_LITERAL:\n        x = jj_consume_token(CHARACTER_LITERAL);\n                            jjtree.closeNodeScope(jjtn000, true);\n                            jjtc000 = false;\n                            jjtreeCloseNodeScope(jjtn000);\n                try {\n                jjtn000.charSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw new ParseException(\"Error parsing character: \"+x.image);}\n                }\n        break;\n      case STRING_LITERAL:\n        x = jj_consume_token(STRING_LITERAL);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n                try {\n                        jjtn000.stringSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw new ParseException(\"Error parsing string: \"+x.image);}\n                }\n        break;\n      case FALSE:\n      case TRUE:\n        b = BooleanLiteral();\n                          jjtree.closeNodeScope(jjtn000, true);\n                          jjtc000 = false;\n                          jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = new Primitive( new Boolean(b) );\n        break;\n      case NULL:\n        NullLiteral();\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.NULL;\n        break;\n      case VOID:\n        VoidLiteral();\n                 jjtree.closeNodeScope(jjtn000, true);\n                 jjtc000 = false;\n                 jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.VOID;\n        break;\n      default:\n        jj_la1[59] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "TRY", "BREAK_CONTINUE", "TRY", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CATCH", "CALL", "ASSIGN", "CALL", "ASSIGN", "CATCH", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [0, 11], [0, 12], [9, 13], [9, 14], [9, 15], [10, 16], [6, 17], [7, 18], [9, 19], [13, 20], [14, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [10, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [16, 34], [16, 35], [8, 36], [8, 37], [19, 38], [19, 39], [22, 40], [10, 41], [10, 42], [10, 43], [10, 44], [10, 45], [10, 46], [10, 47], [10, 48], [10, 49], [10, 50], [10, 51], [10, 52], [10, 53], [10, 54], [10, 55], [10, 56], [10, 57], [27, 58], [10, 59], [10, 60], [10, 61], [10, 62], [29, 63], [10, 64], [10, 65], [10, 66], [10, 67], [31, 68], [10, 69], [10, 70], [10, 71], [10, 72], [10, 73], [10, 74], [33, 75], [10, 76], [10, 77], [10, 78], [10, 79], [10, 80], [10, 81], [35, 82], [37, 83], [13, 84], [14, 85], [15, 86], [15, 87], [15, 88], [41, 89], [45, 90], [46, 91], [50, 92], [51, 93], [53, 94], [55, 95], [56, 96], [57, 97], [27, 98], [60, 99], [61, 100], [62, 101], [29, 102], [65, 103], [66, 104], [67, 105], [31, 106], [68, 107], [68, 108], [69, 109], [72, 110], [73, 111], [74, 112], [33, 113], [75, 114], [75, 115], [76, 116], [79, 117], [80, 118], [81, 119], [84, 120], [84, 121], [85, 122], [85, 123], [87, 124], [94, 125], [58, 126], [98, 127], [63, 128], [102, 129], [31, 130], [106, 131], [31, 132], [31, 133], [107, 134], [108, 135], [109, 136], [113, 137], [33, 138], [33, 139], [114, 140], [115, 141], [116, 142], [42, 143], [126, 144], [126, 145], [127, 146], [127, 147], [128, 148], [128, 149], [129, 150], [129, 151], [130, 152], [106, 153], [131, 154], [131, 155], [132, 156], [133, 157], [136, 158], [136, 159], [137, 160], [138, 161], [139, 162], [142, 163], [142, 164], [144, 165], [146, 166], [146, 167], [148, 168], [150, 169], [150, 170], [152, 171], [153, 172], [154, 173], [155, 174], [156, 175], [157, 176], [157, 177], [161, 178], [162, 179], [162, 180], [165, 181], [168, 182], [172, 183], [172, 184], [176, 185], [176, 186], [179, 187], [179, 188], [181, 189], [182, 190], [183, 191], [183, 192], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 0], [12, 0], [13, 9], [14, 9], [15, 9], [16, 10], [17, 6], [18, 7], [19, 9], [20, 13], [21, 14], [22, 10], [23, 10], [24, 10], [25, 10], [26, 10], [27, 10], [28, 10], [29, 10], [30, 10], [31, 10], [32, 10], [33, 10], [34, 16], [35, 16], [36, 8], [37, 8], [38, 19], [39, 19], [40, 22], [41, 10], [42, 10], [43, 10], [44, 10], [45, 10], [46, 10], [47, 10], [48, 10], [49, 10], [50, 10], [51, 10], [52, 10], [53, 10], [54, 10], [55, 10], [56, 10], [57, 10], [58, 27], [59, 10], [60, 10], [61, 10], [62, 10], [63, 29], [64, 10], [65, 10], [66, 10], [67, 10], [68, 31], [69, 10], [70, 10], [71, 10], [72, 10], [73, 10], [74, 10], [75, 33], [76, 10], [77, 10], [78, 10], [79, 10], [80, 10], [81, 10], [82, 35], [83, 37], [84, 13], [85, 14], [86, 15], [87, 15], [88, 15], [89, 41], [90, 45], [91, 46], [92, 50], [93, 51], [94, 53], [95, 55], [96, 56], [97, 57], [98, 27], [99, 60], [100, 61], [101, 62], [102, 29], [103, 65], [104, 66], [105, 67], [106, 31], [107, 68], [108, 68], [109, 69], [110, 72], [111, 73], [112, 74], [113, 33], [114, 75], [115, 75], [116, 76], [117, 79], [118, 80], [119, 81], [120, 84], [121, 84], [122, 85], [123, 85], [124, 87], [125, 94], [126, 58], [127, 98], [128, 63], [129, 102], [130, 31], [131, 106], [132, 31], [133, 31], [134, 107], [135, 108], [136, 109], [137, 113], [138, 33], [139, 33], [140, 114], [141, 115], [142, 116], [143, 42], [144, 126], [145, 126], [146, 127], [147, 127], [148, 128], [149, 128], [150, 129], [151, 129], [152, 130], [153, 106], [154, 131], [155, 131], [156, 132], [157, 133], [158, 136], [159, 136], [160, 137], [161, 138], [162, 139], [163, 142], [164, 142], [165, 144], [166, 146], [167, 146], [168, 148], [169, 150], [170, 150], [171, 152], [172, 153], [173, 154], [174, 155], [175, 156], [176, 157], [177, 157], [178, 161], [179, 162], [180, 162], [181, 165], [182, 168], [183, 172], [184, 172], [185, 176], [186, 176], [187, 179], [188, 179], [189, 181], [190, 182], [191, 183], [192, 183], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192]]}, {"function_name": "BooleanLiteral", "code": "  final public boolean BooleanLiteral() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case TRUE:\n      jj_consume_token(TRUE);\n           {if (true) return true;}\n      break;\n    case FALSE:\n      jj_consume_token(FALSE);\n            {if (true) return false;}\n      break;\n    default:\n      jj_la1[60] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [4, 9], [4, 10], [6, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [10, 18], [12, 19], [14, 20], [14, 21], [16, 22], [16, 23], [20, 24], [22, 25], [13, 26], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 4], [10, 4], [11, 6], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 10], [19, 12], [20, 14], [21, 14], [22, 16], [23, 16], [24, 20], [25, 22], [26, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "NullLiteral", "code": "  final public void NullLiteral() throws ParseException {\n    jj_consume_token(NULL);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "VoidLiteral", "code": "  final public void VoidLiteral() throws ParseException {\n    jj_consume_token(VOID);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Arguments", "code": "  final public void Arguments() throws ParseException {\n /*@bgen(jjtree) Arguments */\n  BSHArguments jjtn000 = new BSHArguments(JJTARGUMENTS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ArgumentList();\n        break;\n      default:\n        jj_la1[61] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [2, 15], [3, 16], [5, 17], [9, 18], [10, 19], [6, 20], [13, 21], [13, 22], [4, 23], [4, 24], [17, 25], [17, 26], [6, 27], [6, 28], [22, 29], [24, 30], [9, 31], [10, 32], [11, 33], [11, 34], [11, 35], [31, 36], [31, 37], [32, 38], [32, 39], [34, 40], [27, 41], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 2], [16, 3], [17, 5], [18, 9], [19, 10], [20, 6], [21, 13], [22, 13], [23, 4], [24, 4], [25, 17], [26, 17], [27, 6], [28, 6], [29, 22], [30, 24], [31, 9], [32, 10], [33, 11], [34, 11], [35, 11], [36, 31], [37, 31], [38, 32], [39, 32], [40, 34], [41, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "ArgumentList", "code": "  final public void ArgumentList() throws ParseException {\n    Expression();\n    label_17:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        ;\n        break;\n      default:\n        jj_la1[62] = jj_gen;\n        break label_17;\n      }\n      jj_consume_token(COMMA);\n      Expression();", "ast_nodes": ["FUNC_DECL", "LOOP", "LITERAL_ANCHOR", "CALL", "SWITCH", "CALL", "CALL", "COND_EXPR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [7, 10], [7, 11], [4, 12], [11, 13], [12, 14], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 7], [11, 7], [12, 4], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "AllocationExpression", "code": "  final public void AllocationExpression() throws ParseException {\n /*@bgen(jjtree) AllocationExpression */\n  BSHAllocationExpression jjtn000 = new BSHAllocationExpression(JJTALLOCATIONEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_20(2)) {\n        jj_consume_token(NEW);\n        PrimitiveType();\n        ArrayDimensions();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case NEW:\n          jj_consume_token(NEW);\n          AmbiguousName();\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LBRACKET:\n            ArrayDimensions();\n            break;\n          case LPAREN:\n            Arguments();\n            if (jj_2_19(2)) {\n              Block();\n            } else {\n              ;\n            }\n            break;\n          default:\n            jj_la1[63] = jj_gen;\n            jj_consume_token(-1);\n            throw new ParseException();\n          }\n          break;\n        default:\n          jj_la1[64] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [12, 19], [4, 20], [4, 21], [15, 22], [15, 23], [18, 24], [6, 25], [6, 26], [6, 27], [21, 28], [9, 29], [10, 30], [11, 31], [11, 32], [11, 33], [18, 34], [18, 35], [18, 36], [24, 37], [24, 38], [29, 39], [29, 40], [30, 41], [30, 42], [32, 43], [34, 44], [18, 45], [18, 46], [36, 47], [18, 48], [18, 49], [38, 50], [45, 51], [36, 52], [36, 53], [36, 54], [36, 55], [47, 56], [47, 57], [52, 58], [36, 59], [36, 60], [54, 61], [36, 62], [36, 63], [57, 64], [46, 65], [59, 66], [61, 67], [54, 68], [60, 69], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 12], [20, 4], [21, 4], [22, 15], [23, 15], [24, 18], [25, 6], [26, 6], [27, 6], [28, 21], [29, 9], [30, 10], [31, 11], [32, 11], [33, 11], [34, 18], [35, 18], [36, 18], [37, 24], [38, 24], [39, 29], [40, 29], [41, 30], [42, 30], [43, 32], [44, 34], [45, 18], [46, 18], [47, 36], [48, 18], [49, 18], [50, 38], [51, 45], [52, 36], [53, 36], [54, 36], [55, 36], [56, 47], [57, 47], [58, 52], [59, 36], [60, 36], [61, 54], [62, 36], [63, 36], [64, 57], [65, 46], [66, 59], [67, 61], [68, 54], [69, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "ArrayDimensions", "code": "  final public void ArrayDimensions() throws ParseException {\n /*@bgen(jjtree) ArrayDimensions */\n  BSHArrayDimensions jjtn000 = new BSHArrayDimensions(JJTARRAYDIMENSIONS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_22(2)) {\n        label_18:\n        while (true) {\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                                        jjtn000.addArrayDimension();\n          if (jj_2_21(2)) {\n            ;\n          } else {\n            break label_18;\n          }\n        }\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          label_19:\n          while (true) {\n            jj_consume_token(LBRACKET);\n            jj_consume_token(RBRACKET);\n              jjtn000.addArrayDimension();\n            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n            case LBRACKET:\n              ;\n              break;\n            default:\n              jj_la1[65] = jj_gen;\n              break label_19;\n            }\n          }\n          ArrayInitializer();\n          break;\n        default:\n          jj_la1[66] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "LOOP", "CALL", "BINARY_OP", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "BREAK_CONTINUE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [6, 19], [12, 20], [4, 21], [4, 22], [15, 23], [15, 24], [18, 25], [19, 26], [22, 27], [9, 28], [10, 29], [11, 30], [11, 31], [11, 32], [18, 33], [18, 34], [18, 35], [25, 36], [25, 37], [19, 38], [28, 39], [28, 40], [29, 41], [29, 42], [31, 43], [33, 44], [18, 45], [18, 46], [18, 47], [35, 48], [37, 49], [38, 50], [19, 51], [19, 52], [19, 53], [19, 54], [45, 55], [35, 56], [38, 57], [50, 58], [56, 59], [35, 60], [35, 61], [35, 62], [46, 63], [56, 64], [56, 65], [59, 66], [59, 67], [56, 68], [67, 69], [68, 70], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 6], [20, 12], [21, 4], [22, 4], [23, 15], [24, 15], [25, 18], [26, 19], [27, 22], [28, 9], [29, 10], [30, 11], [31, 11], [32, 11], [33, 18], [34, 18], [35, 18], [36, 25], [37, 25], [38, 19], [39, 28], [40, 28], [41, 29], [42, 29], [43, 31], [44, 33], [45, 18], [46, 18], [47, 18], [48, 35], [49, 37], [50, 38], [51, 19], [52, 19], [53, 19], [54, 19], [55, 45], [56, 35], [57, 38], [58, 50], [59, 56], [60, 35], [61, 35], [62, 35], [63, 46], [64, 56], [65, 56], [66, 59], [67, 59], [68, 56], [69, 67], [70, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "Statement", "code": "  final public void Statement() throws ParseException {\n    if (jj_2_23(2)) {\n      LabeledStatement();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACE:\n        Block();\n        break;\n      case SEMICOLON:\n        EmptyStatement();\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        StatementExpression();\n        jj_consume_token(SEMICOLON);\n        break;\n      case SWITCH:\n        SwitchStatement();\n        break;\n      case IF:\n        IfStatement();\n        break;\n      case WHILE:\n        WhileStatement();\n        break;\n      case DO:\n        DoStatement();\n        break;\n      case FOR:\n        ForStatement();\n        break;\n      case BREAK:\n        BreakStatement();\n        break;\n      case CONTINUE:\n        ContinueStatement();\n        break;\n      case RETURN:\n        ReturnStatement();\n        break;\n      case THROW:\n        ThrowStatement();\n        break;\n      case TRY:\n        TryStatement();\n        break;\n      default:\n        jj_la1[67] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [5, 21], [5, 22], [7, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [22, 40], [24, 41], [25, 42], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 3], [8, 3], [9, 3], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 5], [22, 5], [23, 7], [24, 3], [25, 3], [26, 3], [27, 3], [28, 3], [29, 3], [30, 3], [31, 3], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 22], [41, 24], [42, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "LabeledStatement", "code": "  final public void LabeledStatement() throws ParseException {\n    jj_consume_token(IDENTIFIER);\n    jj_consume_token(COLON);\n    Statement();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Block", "code": "  final public void Block() throws ParseException {\n /*@bgen(jjtree) Block */\n  BSHBlock jjtn000 = new BSHBlock(JJTBLOCK);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      label_20:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BREAK:\n        case BYTE:\n        case CHAR:\n        case CONTINUE:\n        case DO:\n        case DOUBLE:\n        case FALSE:\n        case FINAL:\n        case FLOAT:\n        case FOR:\n        case IF:\n        case IMPORT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case RETURN:\n        case SHORT:\n        case SWITCH:\n        case THROW:\n        case TRUE:\n        case TRY:\n        case VOID:\n        case WHILE:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case FORMAL_COMMENT:\n        case IDENTIFIER:\n        case LPAREN:\n        case LBRACE:\n        case SEMICOLON:\n        case INCR:\n        case DECR:\n          ;\n          break;\n        default:\n          jj_la1[68] = jj_gen;\n          break label_20;\n        }\n        BlockStatement();\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [2, 15], [3, 16], [5, 17], [9, 18], [10, 19], [6, 20], [4, 21], [4, 22], [17, 23], [17, 24], [6, 25], [20, 26], [22, 27], [9, 28], [10, 29], [11, 30], [11, 31], [11, 32], [20, 33], [20, 34], [26, 35], [26, 36], [28, 37], [28, 38], [29, 39], [29, 40], [31, 41], [20, 42], [36, 43], [42, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 2], [16, 3], [17, 5], [18, 9], [19, 10], [20, 6], [21, 4], [22, 4], [23, 17], [24, 17], [25, 6], [26, 20], [27, 22], [28, 9], [29, 10], [30, 11], [31, 11], [32, 11], [33, 20], [34, 20], [35, 26], [36, 26], [37, 28], [38, 28], [39, 29], [40, 29], [41, 31], [42, 20], [43, 36], [44, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "BlockStatement", "code": "  final public void BlockStatement() throws ParseException {\n    if (jj_2_24(2147483647)) {\n      MethodDeclaration();\n    } else if (jj_2_25(2147483647)) {\n      TypedVariableDeclaration();\n      jj_consume_token(SEMICOLON);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BREAK:\n      case BYTE:\n      case CHAR:\n      case CONTINUE:\n      case DO:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case FOR:\n      case IF:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case RETURN:\n      case SHORT:\n      case SWITCH:\n      case THROW:\n      case TRUE:\n      case TRY:\n      case VOID:\n      case WHILE:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case LBRACE:\n      case SEMICOLON:\n      case INCR:\n      case DECR:\n        Statement();\n        break;\n      case IMPORT:\n        ImportDeclaration();\n        break;\n      case FORMAL_COMMENT:\n        FormalComment();\n        break;\n      default:\n        jj_la1[69] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [2, 6], [4, 7], [1, 8], [6, 9], [2, 10], [2, 11], [6, 12], [6, 13], [6, 14], [6, 15], [9, 16], [9, 17], [12, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [17, 24], [19, 25], [20, 26], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 2], [7, 4], [8, 1], [9, 6], [10, 2], [11, 2], [12, 6], [13, 6], [14, 6], [15, 6], [16, 9], [17, 9], [18, 12], [19, 6], [20, 6], [21, 6], [22, 6], [23, 6], [24, 17], [25, 19], [26, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "FormalComment", "code": "  final public void FormalComment() throws ParseException {\n /*@bgen(jjtree) #FormalComment( retainComments) */\n        BSHFormalComment jjtn000 = new BSHFormalComment(JJTFORMALCOMMENT);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      t = jj_consume_token(FORMAL_COMMENT);\n                              jjtree.closeNodeScope(jjtn000,  retainComments);\n                              jjtc000 = false;\n                              jjtreeCloseNodeScope(jjtn000);\n                jjtn000.text=t.image;\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000,  retainComments);\n            jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [3, 13], [4, 14], [10, 15], [12, 16], [5, 17], [5, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 3], [14, 4], [15, 10], [16, 12], [17, 5], [18, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "EmptyStatement", "code": "  final public void EmptyStatement() throws ParseException {\n    jj_consume_token(SEMICOLON);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "StatementExpression", "code": "  final public void StatementExpression() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case INCR:\n      PreIncrementExpression();\n      break;\n    case DECR:\n      PreDecrementExpression();\n      break;\n    default:\n      jj_la1[70] = jj_gen;\n      if (jj_2_26(2147483647)) {\n        Assignment();\n\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FALSE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case SHORT:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n          PostfixExpression();\n          break;\n        default:\n          jj_la1[71] = jj_gen;\n          jj_consume_token(-1);\n          throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [2, 7], [3, 8], [1, 9], [1, 10], [1, 11], [7, 12], [3, 13], [8, 14], [13, 15], [3, 16], [13, 17], [13, 18], [15, 19], [15, 20], [9, 21], [17, 22], [13, 23], [13, 24], [13, 25], [20, 26], [23, 27], [24, 28], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 2], [8, 3], [9, 1], [10, 1], [11, 1], [12, 7], [13, 3], [14, 8], [15, 13], [16, 3], [17, 13], [18, 13], [19, 15], [20, 15], [21, 9], [22, 17], [23, 13], [24, 13], [25, 13], [26, 20], [27, 23], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "SwitchStatement", "code": "  final public void SwitchStatement() throws ParseException {\n /*@bgen(jjtree) SwitchStatement */\n  BSHSwitchStatement jjtn000 = new BSHSwitchStatement(JJTSWITCHSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(SWITCH);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(LBRACE);\n      label_21:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CASE:\n        case _DEFAULT:\n          ;\n          break;\n        default:\n          jj_la1[72] = jj_gen;\n          break label_21;\n        }\n        SwitchLabel();\n        label_22:\n        while (true) {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case BOOLEAN:\n          case BREAK:\n          case BYTE:\n          case CHAR:\n          case CONTINUE:\n          case DO:\n          case DOUBLE:\n          case FALSE:\n          case FINAL:\n          case FLOAT:\n          case FOR:\n          case IF:\n          case IMPORT:\n          case INT:\n          case LONG:\n          case NEW:\n          case NULL:\n          case RETURN:\n          case SHORT:\n          case SWITCH:\n          case THROW:\n          case TRUE:\n          case TRY:\n          case VOID:\n          case WHILE:\n          case INTEGER_LITERAL:\n          case FLOATING_POINT_LITERAL:\n          case CHARACTER_LITERAL:\n          case STRING_LITERAL:\n          case FORMAL_COMMENT:\n          case IDENTIFIER:\n          case LPAREN:\n          case LBRACE:\n          case SEMICOLON:\n          case INCR:\n          case DECR:\n            ;\n            break;\n          default:\n            jj_la1[73] = jj_gen;\n            break label_22;\n          }\n          BlockStatement();\n        }\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LOOP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "SWITCH", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [2, 19], [3, 20], [5, 21], [9, 22], [10, 23], [6, 24], [6, 25], [4, 26], [4, 27], [21, 28], [21, 29], [24, 30], [6, 31], [25, 32], [27, 33], [9, 34], [10, 35], [11, 36], [11, 37], [11, 38], [24, 39], [25, 40], [25, 41], [32, 42], [32, 43], [34, 44], [34, 45], [35, 46], [35, 47], [37, 48], [24, 49], [39, 50], [25, 51], [43, 52], [39, 53], [39, 54], [50, 55], [50, 56], [39, 57], [56, 58], [51, 59], [57, 60], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 2], [20, 3], [21, 5], [22, 9], [23, 10], [24, 6], [25, 6], [26, 4], [27, 4], [28, 21], [29, 21], [30, 24], [31, 6], [32, 25], [33, 27], [34, 9], [35, 10], [36, 11], [37, 11], [38, 11], [39, 24], [40, 25], [41, 25], [42, 32], [43, 32], [44, 34], [45, 34], [46, 35], [47, 35], [48, 37], [49, 24], [50, 39], [51, 25], [52, 43], [53, 39], [54, 39], [55, 50], [56, 50], [57, 39], [58, 56], [59, 51], [60, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "SwitchLabel", "code": "  final public void SwitchLabel() throws ParseException {\n /*@bgen(jjtree) SwitchLabel */\n  BSHSwitchLabel jjtn000 = new BSHSwitchLabel(JJTSWITCHLABEL);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CASE:\n        jj_consume_token(CASE);\n        Expression();\n        jj_consume_token(COLON);\n        break;\n      case _DEFAULT:\n        jj_consume_token(_DEFAULT);\n        jj_consume_token(COLON);\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n                  jjtn000.isDefault = true;\n        break;\n      default:\n        jj_la1[74] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [6, 19], [6, 20], [12, 21], [12, 22], [4, 23], [4, 24], [15, 25], [15, 26], [18, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 35], [6, 36], [6, 37], [6, 38], [22, 39], [24, 40], [9, 41], [10, 42], [11, 43], [11, 44], [11, 45], [28, 46], [30, 47], [32, 48], [33, 49], [41, 50], [41, 51], [42, 52], [42, 53], [44, 54], [29, 55], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 6], [20, 6], [21, 12], [22, 12], [23, 4], [24, 4], [25, 15], [26, 15], [27, 18], [28, 6], [29, 6], [30, 6], [31, 6], [32, 6], [33, 6], [34, 6], [35, 6], [36, 6], [37, 6], [38, 6], [39, 22], [40, 24], [41, 9], [42, 10], [43, 11], [44, 11], [45, 11], [46, 28], [47, 30], [48, 32], [49, 33], [50, 41], [51, 41], [52, 42], [53, 42], [54, 44], [55, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "IfStatement", "code": "  final public void IfStatement() throws ParseException {\n /*@bgen(jjtree) IfStatement */\n  BSHIfStatement jjtn000 = new BSHIfStatement(JJTIFSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(IF);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ELSE:\n        jj_consume_token(ELSE);\n        Statement();\n        break;\n      default:\n        jj_la1[75] = jj_gen;\n        ;\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [3, 19], [5, 20], [9, 21], [10, 22], [6, 23], [12, 24], [12, 25], [4, 26], [4, 27], [20, 28], [20, 29], [6, 30], [6, 31], [6, 32], [25, 33], [27, 34], [9, 35], [10, 36], [11, 37], [11, 38], [11, 39], [35, 40], [35, 41], [36, 42], [36, 43], [38, 44], [30, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 3], [20, 5], [21, 9], [22, 10], [23, 6], [24, 12], [25, 12], [26, 4], [27, 4], [28, 20], [29, 20], [30, 6], [31, 6], [32, 6], [33, 25], [34, 27], [35, 9], [36, 10], [37, 11], [38, 11], [39, 11], [40, 35], [41, 35], [42, 36], [43, 36], [44, 38], [45, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "WhileStatement", "code": "  final public void WhileStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [2, 16], [3, 17], [5, 18], [8, 19], [9, 20], [4, 21], [4, 22], [18, 23], [18, 24], [22, 25], [8, 26], [9, 27], [10, 28], [10, 29], [10, 30], [26, 31], [26, 32], [27, 33], [27, 34], [29, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 2], [17, 3], [18, 5], [19, 8], [20, 9], [21, 4], [22, 4], [23, 18], [24, 18], [25, 22], [26, 8], [27, 9], [28, 10], [29, 10], [30, 10], [31, 26], [32, 26], [33, 27], [34, 27], [35, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "DoStatement", "code": "  final public void DoStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(DO);\n      Statement();\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(SEMICOLON);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.isDoStatement=true;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [2, 22], [3, 23], [5, 24], [8, 25], [9, 26], [11, 27], [13, 28], [14, 29], [4, 30], [4, 31], [24, 32], [24, 33], [31, 34], [8, 35], [9, 36], [10, 37], [10, 38], [10, 39], [35, 40], [35, 41], [36, 42], [36, 43], [38, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 2], [23, 3], [24, 5], [25, 8], [26, 9], [27, 11], [28, 13], [29, 14], [30, 4], [31, 4], [32, 24], [33, 24], [34, 31], [35, 8], [36, 9], [37, 10], [38, 10], [39, 10], [40, 35], [41, 35], [42, 36], [43, 36], [44, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "ForStatement", "code": "  final public void ForStatement() throws ParseException {\n /*@bgen(jjtree) ForStatement */\n  BSHForStatement jjtn000 = new BSHForStatement(JJTFORSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(FOR);\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FINAL:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        ForInit();\n                          jjtn000.hasForInit=true;\n        break;\n      default:\n        jj_la1[76] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n                         jjtn000.hasExpression=true;\n        break;\n      default:\n        jj_la1[77] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        ForUpdate();\n                        jjtn000.hasForUpdate=true;\n        break;\n      default:\n        jj_la1[78] = jj_gen;\n        ;\n      }\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "SWITCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [0, 9], [0, 10], [5, 11], [5, 12], [5, 13], [1, 14], [1, 15], [6, 16], [1, 17], [7, 18], [1, 19], [8, 20], [1, 21], [1, 22], [2, 23], [3, 24], [5, 25], [11, 26], [12, 27], [6, 28], [16, 29], [16, 30], [7, 31], [18, 32], [18, 33], [8, 34], [20, 35], [20, 36], [4, 37], [4, 38], [25, 39], [25, 40], [6, 41], [6, 42], [6, 43], [30, 44], [7, 45], [7, 46], [7, 47], [33, 48], [8, 49], [8, 50], [8, 51], [36, 52], [38, 53], [11, 54], [12, 55], [13, 56], [13, 57], [13, 58], [42, 59], [46, 60], [50, 61], [54, 62], [54, 63], [55, 64], [55, 65], [57, 66], [41, 67], [45, 68], [49, 69], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 0], [10, 0], [11, 5], [12, 5], [13, 5], [14, 1], [15, 1], [16, 6], [17, 1], [18, 7], [19, 1], [20, 8], [21, 1], [22, 1], [23, 2], [24, 3], [25, 5], [26, 11], [27, 12], [28, 6], [29, 16], [30, 16], [31, 7], [32, 18], [33, 18], [34, 8], [35, 20], [36, 20], [37, 4], [38, 4], [39, 25], [40, 25], [41, 6], [42, 6], [43, 6], [44, 30], [45, 7], [46, 7], [47, 7], [48, 33], [49, 8], [50, 8], [51, 8], [52, 36], [53, 38], [54, 11], [55, 12], [56, 13], [57, 13], [58, 13], [59, 42], [60, 46], [61, 50], [62, 54], [63, 54], [64, 55], [65, 55], [66, 57], [67, 41], [68, 45], [69, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "ForInit", "code": "  final public void ForInit() throws ParseException {\n  Token t = null;\n    if (jj_2_27(2147483647)) {\n      TypedVariableDeclaration();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case INCR:\n      case DECR:\n        StatementExpressionList();\n        break;\n      default:\n        jj_la1[79] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [4, 7], [1, 8], [4, 9], [4, 10], [7, 11], [7, 12], [9, 13], [4, 14], [4, 15], [4, 16], [12, 17], [14, 18], [15, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 4], [8, 1], [9, 4], [10, 4], [11, 7], [12, 7], [13, 9], [14, 4], [15, 4], [16, 4], [17, 12], [18, 14], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "TypedVariableDeclaration", "code": "  final public void TypedVariableDeclaration() throws ParseException {\n /*@bgen(jjtree) TypedVariableDeclaration */\n        BSHTypedVariableDeclaration jjtn000 = new BSHTypedVariableDeclaration(JJTTYPEDVARIABLEDECLARATION);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FINAL:\n        t = jj_consume_token(FINAL);\n        break;\n      default:\n        jj_la1[80] = jj_gen;\n        ;\n      }\n      Type();\n      VariableDeclarator();\n      label_23:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          jj_la1[81] = jj_gen;\n          break label_23;\n        }\n        jj_consume_token(COMMA);\n        VariableDeclarator();\n      }\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n        jjtn000.isFinal = (t!=null);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [0, 9], [0, 10], [6, 11], [6, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [7, 18], [1, 19], [1, 20], [8, 21], [2, 22], [3, 23], [4, 24], [6, 25], [11, 26], [12, 27], [14, 28], [16, 29], [17, 30], [7, 31], [8, 32], [21, 33], [21, 34], [5, 35], [5, 36], [25, 37], [25, 38], [28, 39], [7, 40], [7, 41], [31, 42], [8, 43], [8, 44], [34, 45], [36, 46], [11, 47], [12, 48], [13, 49], [13, 50], [13, 51], [31, 52], [31, 53], [42, 54], [42, 55], [44, 56], [47, 57], [47, 58], [48, 59], [48, 60], [50, 61], [31, 62], [55, 63], [43, 64], [62, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 0], [10, 0], [11, 6], [12, 6], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 7], [19, 1], [20, 1], [21, 8], [22, 2], [23, 3], [24, 4], [25, 6], [26, 11], [27, 12], [28, 14], [29, 16], [30, 17], [31, 7], [32, 8], [33, 21], [34, 21], [35, 5], [36, 5], [37, 25], [38, 25], [39, 28], [40, 7], [41, 7], [42, 31], [43, 8], [44, 8], [45, 34], [46, 36], [47, 11], [48, 12], [49, 13], [50, 13], [51, 13], [52, 31], [53, 31], [54, 42], [55, 42], [56, 44], [57, 47], [58, 47], [59, 48], [60, 48], [61, 50], [62, 31], [63, 55], [64, 43], [65, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "StatementExpressionList", "code": "  final public void StatementExpressionList() throws ParseException {\n /*@bgen(jjtree) StatementExpressionList */\n  BSHStatementExpressionList jjtn000 = new BSHStatementExpressionList(JJTSTATEMENTEXPRESSIONLIST);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      StatementExpression();\n      label_24:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          jj_la1[82] = jj_gen;\n          break label_24;\n        }\n        jj_consume_token(COMMA);\n        StatementExpression();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [2, 14], [3, 15], [5, 16], [9, 17], [10, 18], [6, 19], [4, 20], [4, 21], [16, 22], [16, 23], [6, 24], [6, 25], [19, 26], [21, 27], [9, 28], [10, 29], [11, 30], [11, 31], [11, 32], [19, 33], [19, 34], [26, 35], [26, 36], [28, 37], [28, 38], [29, 39], [29, 40], [31, 41], [19, 42], [36, 43], [42, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 2], [15, 3], [16, 5], [17, 9], [18, 10], [19, 6], [20, 4], [21, 4], [22, 16], [23, 16], [24, 6], [25, 6], [26, 19], [27, 21], [28, 9], [29, 10], [30, 11], [31, 11], [32, 11], [33, 19], [34, 19], [35, 26], [36, 26], [37, 28], [38, 28], [39, 29], [40, 29], [41, 31], [42, 19], [43, 36], [44, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "ForUpdate", "code": "  final public void ForUpdate() throws ParseException {\n    StatementExpressionList();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BreakStatement", "code": "  final public void BreakStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(BREAK);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        jj_la1[83] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                 jjtree.closeNodeScope(jjtn000, true);\n                                 jjtc000 = false;\n                                 jjtreeCloseNodeScope(jjtn000);\n                                 jjtn000.kind = BREAK;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "SWITCH", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [1, 14], [2, 15], [3, 16], [10, 17], [11, 18], [5, 19], [13, 20], [13, 21], [4, 22], [4, 23], [5, 24], [5, 25], [21, 26], [23, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 1], [15, 2], [16, 3], [17, 10], [18, 11], [19, 5], [20, 13], [21, 13], [22, 4], [23, 4], [24, 5], [25, 5], [26, 21], [27, 23], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "ContinueStatement", "code": "  final public void ContinueStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(CONTINUE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        jj_la1[84] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                    jjtree.closeNodeScope(jjtn000, true);\n                                    jjtc000 = false;\n                                    jjtreeCloseNodeScope(jjtn000);\n                                    jjtn000.kind = CONTINUE;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "SWITCH", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [1, 14], [2, 15], [3, 16], [10, 17], [11, 18], [5, 19], [13, 20], [13, 21], [4, 22], [4, 23], [5, 24], [5, 25], [21, 26], [23, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 1], [15, 2], [16, 3], [17, 10], [18, 11], [19, 5], [20, 13], [21, 13], [22, 4], [23, 4], [24, 5], [25, 5], [26, 21], [27, 23], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "ReturnStatement", "code": "  final public void ReturnStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(RETURN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n        break;\n      default:\n        jj_la1[85] = jj_gen;\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                  jjtree.closeNodeScope(jjtn000, true);\n                                  jjtc000 = false;\n                                  jjtreeCloseNodeScope(jjtn000);\n                                  jjtn000.kind = RETURN;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [6, 17], [1, 18], [2, 19], [3, 20], [5, 21], [9, 22], [10, 23], [14, 24], [15, 25], [6, 26], [17, 27], [17, 28], [4, 29], [4, 30], [21, 31], [21, 32], [6, 33], [6, 34], [28, 35], [30, 36], [9, 37], [10, 38], [11, 39], [11, 40], [11, 41], [37, 42], [37, 43], [38, 44], [38, 45], [40, 46], [33, 47], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 6], [18, 1], [19, 2], [20, 3], [21, 5], [22, 9], [23, 10], [24, 14], [25, 15], [26, 6], [27, 17], [28, 17], [29, 4], [30, 4], [31, 21], [32, 21], [33, 6], [34, 6], [35, 28], [36, 30], [37, 9], [38, 10], [39, 11], [40, 11], [41, 11], [42, 37], [43, 37], [44, 38], [45, 38], [46, 40], [47, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "ThrowStatement", "code": "  final public void ThrowStatement() throws ParseException {\n /*@bgen(jjtree) ThrowStatement */\n  BSHThrowStatement jjtn000 = new BSHThrowStatement(JJTTHROWSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(THROW);\n      Expression();\n      jj_consume_token(SEMICOLON);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [5, 16], [8, 17], [9, 18], [4, 19], [4, 20], [16, 21], [16, 22], [20, 23], [8, 24], [9, 25], [10, 26], [10, 27], [10, 28], [24, 29], [24, 30], [25, 31], [25, 32], [27, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 5], [17, 8], [18, 9], [19, 4], [20, 4], [21, 16], [22, 16], [23, 20], [24, 8], [25, 9], [26, 10], [27, 10], [28, 10], [29, 24], [30, 24], [31, 25], [32, 25], [33, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "TryStatement", "code": "  final public void TryStatement() throws ParseException {\n /*@bgen(jjtree) TryStatement */\n  BSHTryStatement jjtn000 = new BSHTryStatement(JJTTRYSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(TRY);\n      Block();\n      label_25:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CATCH:\n          ;\n          break;\n        default:\n          jj_la1[86] = jj_gen;\n          break label_25;\n        }\n        jj_consume_token(CATCH);\n        jj_consume_token(LPAREN);\n        FormalParameter();\n        jj_consume_token(RPAREN);\n        Block();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FINALLY:\n        jj_consume_token(FINALLY);\n        Block();\n        break;\n      default:\n        jj_la1[87] = jj_gen;\n        ;\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [5, 10], [5, 11], [5, 12], [6, 13], [7, 14], [1, 15], [1, 16], [2, 17], [3, 18], [5, 19], [10, 20], [11, 21], [6, 22], [13, 23], [13, 24], [7, 25], [4, 26], [4, 27], [19, 28], [19, 29], [6, 30], [6, 31], [6, 32], [24, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [25, 39], [27, 40], [10, 41], [11, 42], [12, 43], [12, 44], [12, 45], [25, 46], [25, 47], [39, 48], [39, 49], [41, 50], [41, 51], [42, 52], [42, 53], [44, 54], [25, 55], [49, 56], [30, 57], [55, 58], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 5], [11, 5], [12, 5], [13, 6], [14, 7], [15, 1], [16, 1], [17, 2], [18, 3], [19, 5], [20, 10], [21, 11], [22, 6], [23, 13], [24, 13], [25, 7], [26, 4], [27, 4], [28, 19], [29, 19], [30, 6], [31, 6], [32, 6], [33, 24], [34, 7], [35, 7], [36, 7], [37, 7], [38, 7], [39, 25], [40, 27], [41, 10], [42, 11], [43, 12], [44, 12], [45, 12], [46, 25], [47, 25], [48, 39], [49, 39], [50, 41], [51, 41], [52, 42], [53, 42], [54, 44], [55, 25], [56, 49], [57, 30], [58, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "jj_2_1", "code": "  final private boolean jj_2_1(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_1();\n    jj_save(0, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_2", "code": "  final private boolean jj_2_2(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_2();\n    jj_save(1, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_3", "code": "  final private boolean jj_2_3(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_3();\n    jj_save(2, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_4", "code": "  final private boolean jj_2_4(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_4();\n    jj_save(3, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_5", "code": "  final private boolean jj_2_5(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_5();\n    jj_save(4, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_6", "code": "  final private boolean jj_2_6(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_6();\n    jj_save(5, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_7", "code": "  final private boolean jj_2_7(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_7();\n    jj_save(6, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_8", "code": "  final private boolean jj_2_8(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_8();\n    jj_save(7, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_9", "code": "  final private boolean jj_2_9(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_9();\n    jj_save(8, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_10", "code": "  final private boolean jj_2_10(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_10();\n    jj_save(9, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_11", "code": "  final private boolean jj_2_11(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_11();\n    jj_save(10, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_12", "code": "  final private boolean jj_2_12(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_12();\n    jj_save(11, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_13", "code": "  final private boolean jj_2_13(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_13();\n    jj_save(12, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_14", "code": "  final private boolean jj_2_14(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_14();\n    jj_save(13, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_15", "code": "  final private boolean jj_2_15(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_15();\n    jj_save(14, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_16", "code": "  final private boolean jj_2_16(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_16();\n    jj_save(15, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_17", "code": "  final private boolean jj_2_17(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_17();\n    jj_save(16, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_18", "code": "  final private boolean jj_2_18(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_18();\n    jj_save(17, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_19", "code": "  final private boolean jj_2_19(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_19();\n    jj_save(18, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_20", "code": "  final private boolean jj_2_20(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_20();\n    jj_save(19, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_21", "code": "  final private boolean jj_2_21(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_21();\n    jj_save(20, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_22", "code": "  final private boolean jj_2_22(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_22();\n    jj_save(21, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_23", "code": "  final private boolean jj_2_23(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_23();\n    jj_save(22, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_24", "code": "  final private boolean jj_2_24(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_24();\n    jj_save(23, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_25", "code": "  final private boolean jj_2_25(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_25();\n    jj_save(24, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_26", "code": "  final private boolean jj_2_26(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_26();\n    jj_save(25, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_2_27", "code": "  final private boolean jj_2_27(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    boolean retval = !jj_3_27();\n    jj_save(26, xla);\n    return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "jj_3R_33", "code": "  final private boolean jj_3R_33() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_11()) {\n    jj_scanpos = xsp;\n    if (jj_3R_68()) {\n    jj_scanpos = xsp;\n    if (jj_3R_69()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [10, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [21, 27], [21, 28], [10, 29], [24, 30], [25, 31], [26, 32], [26, 33], [27, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 10], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 21], [28, 21], [29, 10], [30, 24], [31, 25], [32, 26], [33, 26], [34, 27], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3_11", "code": "  final private boolean jj_3_11() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_284", "code": "  final private boolean jj_3R_284() {\n    if (jj_scan_token(BANG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_264", "code": "  final private boolean jj_3R_264() {\n    if (jj_scan_token(MOD)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_279", "code": "  final private boolean jj_3R_279() {\n    if (jj_3R_207()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_278", "code": "  final private boolean jj_3R_278() {\n    if (jj_3R_285()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_283", "code": "  final private boolean jj_3R_283() {\n    if (jj_scan_token(TILDE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_271", "code": "  final private boolean jj_3R_271() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_277()) {\n    jj_scanpos = xsp;\n    if (jj_3R_278()) {\n    jj_scanpos = xsp;\n    if (jj_3R_279()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [10, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [21, 27], [21, 28], [10, 29], [24, 30], [25, 31], [26, 32], [26, 33], [27, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 10], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 21], [28, 21], [29, 10], [30, 24], [31, 25], [32, 26], [33, 26], [34, 27], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_277", "code": "  final private boolean jj_3R_277() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_283()) {\n    jj_scanpos = xsp;\n    if (jj_3R_284()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_244()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_263", "code": "  final private boolean jj_3R_263() {\n    if (jj_scan_token(SLASH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_239", "code": "  final private boolean jj_3R_239() {\n    if (jj_scan_token(RSIGNEDSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_206", "code": "  final private boolean jj_3R_206() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_262", "code": "  final private boolean jj_3R_262() {\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_205", "code": "  final private boolean jj_3R_205() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_245", "code": "  final private boolean jj_3R_245() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_262()) {\n    jj_scanpos = xsp;\n    if (jj_3R_263()) {\n    jj_scanpos = xsp;\n    if (jj_3R_264()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_244()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [16, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [4, 27], [24, 28], [25, 29], [25, 30], [20, 31], [20, 32], [29, 33], [30, 34], [30, 35], [31, 36], [31, 37], [32, 38], [32, 39], [20, 40], [35, 41], [36, 42], [37, 43], [37, 44], [38, 45], [44, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 16], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 4], [28, 24], [29, 25], [30, 25], [31, 20], [32, 20], [33, 29], [34, 30], [35, 30], [36, 31], [37, 31], [38, 32], [39, 32], [40, 20], [41, 35], [42, 36], [43, 37], [44, 37], [45, 38], [46, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_238", "code": "  final private boolean jj_3R_238() {\n    if (jj_scan_token(RSIGNEDSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_270", "code": "  final private boolean jj_3R_270() {\n    if (jj_scan_token(MINUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_231", "code": "  final private boolean jj_3R_231() {\n    if (jj_scan_token(GEX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_261", "code": "  final private boolean jj_3R_261() {\n    if (jj_3R_271()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_260", "code": "  final private boolean jj_3R_260() {\n    if (jj_3R_206()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_259", "code": "  final private boolean jj_3R_259() {\n    if (jj_3R_205()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_227", "code": "  final private boolean jj_3R_227() {\n    if (jj_scan_token(GTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_269", "code": "  final private boolean jj_3R_269() {\n    if (jj_scan_token(PLUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_244", "code": "  final private boolean jj_3R_244() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_258()) {\n    jj_scanpos = xsp;\n    if (jj_3R_259()) {\n    jj_scanpos = xsp;\n    if (jj_3R_260()) {\n    jj_scanpos = xsp;\n    if (jj_3R_261()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [20, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [31, 37], [31, 38], [20, 39], [34, 40], [35, 41], [36, 42], [36, 43], [37, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 20], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 31], [38, 31], [39, 20], [40, 34], [41, 35], [42, 36], [43, 36], [44, 37], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jj_3R_258", "code": "  final private boolean jj_3R_258() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_269()) {\n    jj_scanpos = xsp;\n    if (jj_3R_270()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_244()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_247", "code": "  final private boolean jj_3R_247() {\n    if (jj_scan_token(MINUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_230", "code": "  final private boolean jj_3R_230() {\n    if (jj_scan_token(GE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_234", "code": "  final private boolean jj_3R_234() {\n    if (jj_3R_244()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_245()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_241", "code": "  final private boolean jj_3R_241() {\n    if (jj_scan_token(RUNSIGNEDSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_226", "code": "  final private boolean jj_3R_226() {\n    if (jj_scan_token(GT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_237", "code": "  final private boolean jj_3R_237() {\n    if (jj_scan_token(LSHIFTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_246", "code": "  final private boolean jj_3R_246() {\n    if (jj_scan_token(PLUS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_235", "code": "  final private boolean jj_3R_235() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_246()) {\n    jj_scanpos = xsp;\n    if (jj_3R_247()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_234()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_219", "code": "  final private boolean jj_3R_219() {\n    if (jj_scan_token(NE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_222", "code": "  final private boolean jj_3R_222() {\n    if (jj_3R_234()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_235()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_229", "code": "  final private boolean jj_3R_229() {\n    if (jj_scan_token(LEX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_240", "code": "  final private boolean jj_3R_240() {\n    if (jj_scan_token(RUNSIGNEDSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_225", "code": "  final private boolean jj_3R_225() {\n    if (jj_scan_token(LTX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_236", "code": "  final private boolean jj_3R_236() {\n    if (jj_scan_token(LSHIFT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_223", "code": "  final private boolean jj_3R_223() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_236()) {\n    jj_scanpos = xsp;\n    if (jj_3R_237()) {\n    jj_scanpos = xsp;\n    if (jj_3R_238()) {\n    jj_scanpos = xsp;\n    if (jj_3R_239()) {\n    jj_scanpos = xsp;\n    if (jj_3R_240()) {\n    jj_scanpos = xsp;\n    if (jj_3R_241()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_222()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [16, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [4, 27], [24, 28], [25, 29], [25, 30], [20, 31], [29, 32], [30, 33], [30, 34], [31, 35], [31, 36], [20, 37], [34, 38], [35, 39], [35, 40], [31, 41], [39, 42], [40, 43], [40, 44], [41, 45], [41, 46], [31, 47], [44, 48], [45, 49], [45, 50], [41, 51], [49, 52], [50, 53], [50, 54], [51, 55], [51, 56], [41, 57], [54, 58], [55, 59], [55, 60], [51, 61], [51, 62], [59, 63], [60, 64], [60, 65], [61, 66], [61, 67], [62, 68], [62, 69], [51, 70], [65, 71], [66, 72], [67, 73], [67, 74], [68, 75], [74, 76], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 16], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 4], [28, 24], [29, 25], [30, 25], [31, 20], [32, 29], [33, 30], [34, 30], [35, 31], [36, 31], [37, 20], [38, 34], [39, 35], [40, 35], [41, 31], [42, 39], [43, 40], [44, 40], [45, 41], [46, 41], [47, 31], [48, 44], [49, 45], [50, 45], [51, 41], [52, 49], [53, 50], [54, 50], [55, 51], [56, 51], [57, 41], [58, 54], [59, 55], [60, 55], [61, 51], [62, 51], [63, 59], [64, 60], [65, 60], [66, 61], [67, 61], [68, 62], [69, 62], [70, 51], [71, 65], [72, 66], [73, 67], [74, 67], [75, 68], [76, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76]]}, {"function_name": "jj_3R_218", "code": "  final private boolean jj_3R_218() {\n    if (jj_scan_token(EQ)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_211", "code": "  final private boolean jj_3R_211() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_218()) {\n    jj_scanpos = xsp;\n    if (jj_3R_219()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_210()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_220", "code": "  final private boolean jj_3R_220() {\n    if (jj_3R_222()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_223()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_228", "code": "  final private boolean jj_3R_228() {\n    if (jj_scan_token(LE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_224", "code": "  final private boolean jj_3R_224() {\n    if (jj_scan_token(LT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_221", "code": "  final private boolean jj_3R_221() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_224()) {\n    jj_scanpos = xsp;\n    if (jj_3R_225()) {\n    jj_scanpos = xsp;\n    if (jj_3R_226()) {\n    jj_scanpos = xsp;\n    if (jj_3R_227()) {\n    jj_scanpos = xsp;\n    if (jj_3R_228()) {\n    jj_scanpos = xsp;\n    if (jj_3R_229()) {\n    jj_scanpos = xsp;\n    if (jj_3R_230()) {\n    jj_scanpos = xsp;\n    if (jj_3R_231()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_220()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [16, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [4, 27], [24, 28], [25, 29], [25, 30], [20, 31], [29, 32], [30, 33], [30, 34], [31, 35], [31, 36], [20, 37], [34, 38], [35, 39], [35, 40], [31, 41], [39, 42], [40, 43], [40, 44], [41, 45], [41, 46], [31, 47], [44, 48], [45, 49], [45, 50], [41, 51], [49, 52], [50, 53], [50, 54], [51, 55], [51, 56], [41, 57], [54, 58], [55, 59], [55, 60], [51, 61], [59, 62], [60, 63], [60, 64], [61, 65], [61, 66], [51, 67], [64, 68], [65, 69], [65, 70], [61, 71], [69, 72], [70, 73], [70, 74], [71, 75], [71, 76], [61, 77], [74, 78], [75, 79], [75, 80], [71, 81], [71, 82], [79, 83], [80, 84], [80, 85], [81, 86], [81, 87], [82, 88], [82, 89], [71, 90], [85, 91], [86, 92], [87, 93], [87, 94], [88, 95], [94, 96], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 16], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 4], [28, 24], [29, 25], [30, 25], [31, 20], [32, 29], [33, 30], [34, 30], [35, 31], [36, 31], [37, 20], [38, 34], [39, 35], [40, 35], [41, 31], [42, 39], [43, 40], [44, 40], [45, 41], [46, 41], [47, 31], [48, 44], [49, 45], [50, 45], [51, 41], [52, 49], [53, 50], [54, 50], [55, 51], [56, 51], [57, 41], [58, 54], [59, 55], [60, 55], [61, 51], [62, 59], [63, 60], [64, 60], [65, 61], [66, 61], [67, 51], [68, 64], [69, 65], [70, 65], [71, 61], [72, 69], [73, 70], [74, 70], [75, 71], [76, 71], [77, 61], [78, 74], [79, 75], [80, 75], [81, 71], [82, 71], [83, 79], [84, 80], [85, 80], [86, 81], [87, 81], [88, 82], [89, 82], [90, 71], [91, 85], [92, 86], [93, 87], [94, 87], [95, 88], [96, 94], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96]]}, {"function_name": "jj_3R_216", "code": "  final private boolean jj_3R_216() {\n    if (jj_3R_220()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_221()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_217", "code": "  final private boolean jj_3R_217() {\n    if (jj_scan_token(INSTANCEOF)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_210", "code": "  final private boolean jj_3R_210() {\n    if (jj_3R_216()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_217()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [10, 17], [11, 18], [11, 19], [12, 20], [14, 21], [15, 22], [15, 23], [19, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 10], [18, 11], [19, 11], [20, 12], [21, 14], [22, 15], [23, 15], [24, 19], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_213", "code": "  final private boolean jj_3R_213() {\n    if (jj_scan_token(BIT_ANDX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_195", "code": "  final private boolean jj_3R_195() {\n    if (jj_scan_token(XOR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_194()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_203", "code": "  final private boolean jj_3R_203() {\n    if (jj_3R_210()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_211()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_61", "code": "  final private boolean jj_3R_61() {\n    if (jj_scan_token(ORASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_212", "code": "  final private boolean jj_3R_212() {\n    if (jj_scan_token(BIT_AND)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_204", "code": "  final private boolean jj_3R_204() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_212()) {\n    jj_scanpos = xsp;\n    if (jj_3R_213()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_203()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_60", "code": "  final private boolean jj_3R_60() {\n    if (jj_scan_token(XORASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_194", "code": "  final private boolean jj_3R_194() {\n    if (jj_3R_203()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_204()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_197", "code": "  final private boolean jj_3R_197() {\n    if (jj_scan_token(BIT_ORX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_59", "code": "  final private boolean jj_3R_59() {\n    if (jj_scan_token(ANDASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_175", "code": "  final private boolean jj_3R_175() {\n    if (jj_3R_194()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_195()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_65", "code": "  final private boolean jj_3R_65() {\n    if (jj_scan_token(RSIGNEDSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_178", "code": "  final private boolean jj_3R_178() {\n    if (jj_scan_token(BOOL_ANDX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_196", "code": "  final private boolean jj_3R_196() {\n    if (jj_scan_token(BIT_OR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_107", "code": "  final private boolean jj_3R_107() {\n    if (jj_scan_token(HOOK)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_85()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_176", "code": "  final private boolean jj_3R_176() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_196()) {\n    jj_scanpos = xsp;\n    if (jj_3R_197()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_175()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_58", "code": "  final private boolean jj_3R_58() {\n    if (jj_scan_token(MINUSASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_64", "code": "  final private boolean jj_3R_64() {\n    if (jj_scan_token(RSIGNEDSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_147", "code": "  final private boolean jj_3R_147() {\n    if (jj_3R_175()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_176()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_150", "code": "  final private boolean jj_3R_150() {\n    if (jj_scan_token(BOOL_ORX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_177", "code": "  final private boolean jj_3R_177() {\n    if (jj_scan_token(BOOL_AND)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_57", "code": "  final private boolean jj_3R_57() {\n    if (jj_scan_token(PLUSASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_148", "code": "  final private boolean jj_3R_148() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_177()) {\n    jj_scanpos = xsp;\n    if (jj_3R_178()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_147()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_125", "code": "  final private boolean jj_3R_125() {\n    if (jj_3R_147()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_148()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_56", "code": "  final private boolean jj_3R_56() {\n    if (jj_scan_token(MODASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_149", "code": "  final private boolean jj_3R_149() {\n    if (jj_scan_token(BOOL_OR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_126", "code": "  final private boolean jj_3R_126() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_149()) {\n    jj_scanpos = xsp;\n    if (jj_3R_150()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_125()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [0, 13], [7, 14], [8, 15], [8, 16], [9, 17], [11, 18], [11, 19], [4, 20], [4, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [4, 30], [25, 31], [26, 32], [27, 33], [27, 34], [28, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 0], [14, 7], [15, 8], [16, 8], [17, 9], [18, 11], [19, 11], [20, 4], [21, 4], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 4], [31, 25], [32, 26], [33, 27], [34, 27], [35, 28], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_106", "code": "  final private boolean jj_3R_106() {\n    if (jj_3R_125()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_126()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_55", "code": "  final private boolean jj_3R_55() {\n    if (jj_scan_token(SLASHASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_67", "code": "  final private boolean jj_3R_67() {\n    if (jj_scan_token(RUNSIGNEDSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_63", "code": "  final private boolean jj_3R_63() {\n    if (jj_scan_token(LSHIFTASSIGNX)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_85", "code": "  final private boolean jj_3R_85() {\n    if (jj_3R_106()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_107()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [10, 17], [11, 18], [11, 19], [12, 20], [14, 21], [15, 22], [15, 23], [19, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 10], [18, 11], [19, 11], [20, 12], [21, 14], [22, 15], [23, 15], [24, 19], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_54", "code": "  final private boolean jj_3R_54() {\n    if (jj_scan_token(STARASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_66", "code": "  final private boolean jj_3R_66() {\n    if (jj_scan_token(RUNSIGNEDSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_62", "code": "  final private boolean jj_3R_62() {\n    if (jj_scan_token(LSHIFTASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_53", "code": "  final private boolean jj_3R_53() {\n    if (jj_scan_token(ASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_32", "code": "  final private boolean jj_3R_32() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_53()) {\n    jj_scanpos = xsp;\n    if (jj_3R_54()) {\n    jj_scanpos = xsp;\n    if (jj_3R_55()) {\n    jj_scanpos = xsp;\n    if (jj_3R_56()) {\n    jj_scanpos = xsp;\n    if (jj_3R_57()) {\n    jj_scanpos = xsp;\n    if (jj_3R_58()) {\n    jj_scanpos = xsp;\n    if (jj_3R_59()) {\n    jj_scanpos = xsp;\n    if (jj_3R_60()) {\n    jj_scanpos = xsp;\n    if (jj_3R_61()) {\n    jj_scanpos = xsp;\n    if (jj_3R_62()) {\n    jj_scanpos = xsp;\n    if (jj_3R_63()) {\n    jj_scanpos = xsp;\n    if (jj_3R_64()) {\n    jj_scanpos = xsp;\n    if (jj_3R_65()) {\n    jj_scanpos = xsp;\n    if (jj_3R_66()) {\n    jj_scanpos = xsp;\n    if (jj_3R_67()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [28, 31], [29, 32], [29, 33], [30, 34], [30, 35], [20, 36], [33, 37], [34, 38], [34, 39], [30, 40], [38, 41], [39, 42], [39, 43], [40, 44], [40, 45], [30, 46], [43, 47], [44, 48], [44, 49], [40, 50], [48, 51], [49, 52], [49, 53], [50, 54], [50, 55], [40, 56], [53, 57], [54, 58], [54, 59], [50, 60], [58, 61], [59, 62], [59, 63], [60, 64], [60, 65], [50, 66], [63, 67], [64, 68], [64, 69], [60, 70], [68, 71], [69, 72], [69, 73], [70, 74], [70, 75], [60, 76], [73, 77], [74, 78], [74, 79], [70, 80], [78, 81], [79, 82], [79, 83], [80, 84], [80, 85], [70, 86], [83, 87], [84, 88], [84, 89], [80, 90], [88, 91], [89, 92], [89, 93], [90, 94], [90, 95], [80, 96], [93, 97], [94, 98], [94, 99], [90, 100], [98, 101], [99, 102], [99, 103], [100, 104], [100, 105], [90, 106], [103, 107], [104, 108], [104, 109], [100, 110], [108, 111], [109, 112], [109, 113], [110, 114], [110, 115], [100, 116], [113, 117], [114, 118], [114, 119], [110, 120], [118, 121], [119, 122], [119, 123], [120, 124], [120, 125], [110, 126], [123, 127], [124, 128], [124, 129], [120, 130], [128, 131], [129, 132], [129, 133], [130, 134], [130, 135], [120, 136], [133, 137], [134, 138], [134, 139], [130, 140], [130, 141], [138, 142], [139, 143], [139, 144], [140, 145], [140, 146], [141, 147], [141, 148], [130, 149], [144, 150], [145, 151], [146, 152], [146, 153], [147, 154], [153, 155], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 28], [32, 29], [33, 29], [34, 30], [35, 30], [36, 20], [37, 33], [38, 34], [39, 34], [40, 30], [41, 38], [42, 39], [43, 39], [44, 40], [45, 40], [46, 30], [47, 43], [48, 44], [49, 44], [50, 40], [51, 48], [52, 49], [53, 49], [54, 50], [55, 50], [56, 40], [57, 53], [58, 54], [59, 54], [60, 50], [61, 58], [62, 59], [63, 59], [64, 60], [65, 60], [66, 50], [67, 63], [68, 64], [69, 64], [70, 60], [71, 68], [72, 69], [73, 69], [74, 70], [75, 70], [76, 60], [77, 73], [78, 74], [79, 74], [80, 70], [81, 78], [82, 79], [83, 79], [84, 80], [85, 80], [86, 70], [87, 83], [88, 84], [89, 84], [90, 80], [91, 88], [92, 89], [93, 89], [94, 90], [95, 90], [96, 80], [97, 93], [98, 94], [99, 94], [100, 90], [101, 98], [102, 99], [103, 99], [104, 100], [105, 100], [106, 90], [107, 103], [108, 104], [109, 104], [110, 100], [111, 108], [112, 109], [113, 109], [114, 110], [115, 110], [116, 100], [117, 113], [118, 114], [119, 114], [120, 110], [121, 118], [122, 119], [123, 119], [124, 120], [125, 120], [126, 110], [127, 123], [128, 124], [129, 124], [130, 120], [131, 128], [132, 129], [133, 129], [134, 130], [135, 130], [136, 120], [137, 133], [138, 134], [139, 134], [140, 130], [141, 130], [142, 138], [143, 139], [144, 139], [145, 140], [146, 140], [147, 141], [148, 141], [149, 130], [150, 144], [151, 145], [152, 146], [153, 146], [154, 147], [155, 153], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155]]}, {"function_name": "jj_3_9", "code": "  final private boolean jj_3_9() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_84", "code": "  final private boolean jj_3R_84() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_45", "code": "  final private boolean jj_3R_45() {\n    if (jj_3R_85()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_26", "code": "  final private boolean jj_3R_26() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_44()) {\n    jj_scanpos = xsp;\n    if (jj_3R_45()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_44", "code": "  final private boolean jj_3R_44() {\n    if (jj_3R_84()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_8", "code": "  final private boolean jj_3_8() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_28", "code": "  final private boolean jj_3R_28() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_8()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_77", "code": "  final private boolean jj_3R_77() {\n    if (jj_scan_token(DOUBLE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_209", "code": "  final private boolean jj_3R_209() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_76", "code": "  final private boolean jj_3R_76() {\n    if (jj_scan_token(FLOAT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_75", "code": "  final private boolean jj_3R_75() {\n    if (jj_scan_token(LONG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_74", "code": "  final private boolean jj_3R_74() {\n    if (jj_scan_token(INT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_73", "code": "  final private boolean jj_3R_73() {\n    if (jj_scan_token(SHORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_50", "code": "  final private boolean jj_3R_50() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_72", "code": "  final private boolean jj_3R_72() {\n    if (jj_scan_token(BYTE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_71", "code": "  final private boolean jj_3R_71() {\n    if (jj_scan_token(CHAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_70", "code": "  final private boolean jj_3R_70() {\n    if (jj_scan_token(BOOLEAN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_34", "code": "  final private boolean jj_3R_34() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_70()) {\n    jj_scanpos = xsp;\n    if (jj_3R_71()) {\n    jj_scanpos = xsp;\n    if (jj_3R_72()) {\n    jj_scanpos = xsp;\n    if (jj_3R_73()) {\n    jj_scanpos = xsp;\n    if (jj_3R_74()) {\n    jj_scanpos = xsp;\n    if (jj_3R_75()) {\n    jj_scanpos = xsp;\n    if (jj_3R_76()) {\n    jj_scanpos = xsp;\n    if (jj_3R_77()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [28, 31], [29, 32], [29, 33], [30, 34], [30, 35], [20, 36], [33, 37], [34, 38], [34, 39], [30, 40], [38, 41], [39, 42], [39, 43], [40, 44], [40, 45], [30, 46], [43, 47], [44, 48], [44, 49], [40, 50], [48, 51], [49, 52], [49, 53], [50, 54], [50, 55], [40, 56], [53, 57], [54, 58], [54, 59], [50, 60], [58, 61], [59, 62], [59, 63], [60, 64], [60, 65], [50, 66], [63, 67], [64, 68], [64, 69], [60, 70], [60, 71], [68, 72], [69, 73], [69, 74], [70, 75], [70, 76], [71, 77], [71, 78], [60, 79], [74, 80], [75, 81], [76, 82], [76, 83], [77, 84], [83, 85], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 28], [32, 29], [33, 29], [34, 30], [35, 30], [36, 20], [37, 33], [38, 34], [39, 34], [40, 30], [41, 38], [42, 39], [43, 39], [44, 40], [45, 40], [46, 30], [47, 43], [48, 44], [49, 44], [50, 40], [51, 48], [52, 49], [53, 49], [54, 50], [55, 50], [56, 40], [57, 53], [58, 54], [59, 54], [60, 50], [61, 58], [62, 59], [63, 59], [64, 60], [65, 60], [66, 50], [67, 63], [68, 64], [69, 64], [70, 60], [71, 60], [72, 68], [73, 69], [74, 69], [75, 70], [76, 70], [77, 71], [78, 71], [79, 60], [80, 74], [81, 75], [82, 76], [83, 76], [84, 77], [85, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "jj_3R_87", "code": "  final private boolean jj_3R_87() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_86", "code": "  final private boolean jj_3R_86() {\n    if (jj_scan_token(VOID)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_46", "code": "  final private boolean jj_3R_46() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_86()) {\n    jj_scanpos = xsp;\n    if (jj_3R_87()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3_7", "code": "  final private boolean jj_3_7() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_49", "code": "  final private boolean jj_3R_49() {\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_30", "code": "  final private boolean jj_3R_30() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_49()) {\n    jj_scanpos = xsp;\n    if (jj_3R_50()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_7()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "IF", "IF", "RETURN", "BINARY_OP", "IF", "IF", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [0, 9], [2, 10], [2, 11], [7, 12], [7, 13], [3, 14], [3, 15], [10, 16], [10, 17], [11, 18], [2, 19], [12, 20], [13, 21], [13, 22], [14, 23], [14, 24], [15, 25], [15, 26], [3, 27], [16, 28], [17, 29], [17, 30], [11, 31], [22, 32], [23, 33], [24, 34], [24, 35], [25, 36], [30, 37], [11, 38], [35, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 0], [10, 2], [11, 2], [12, 7], [13, 7], [14, 3], [15, 3], [16, 10], [17, 10], [18, 11], [19, 2], [20, 12], [21, 13], [22, 13], [23, 14], [24, 14], [25, 15], [26, 15], [27, 3], [28, 16], [29, 17], [30, 17], [31, 11], [32, 22], [33, 23], [34, 24], [35, 24], [36, 25], [37, 30], [38, 11], [39, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "jj_3R_142", "code": "  final private boolean jj_3R_142() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_141()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_171", "code": "  final private boolean jj_3R_171() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_6", "code": "  final private boolean jj_3_6() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_141", "code": "  final private boolean jj_3R_141() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_6()) {\n    jj_scanpos = xsp;\n    if (jj_3R_171()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_257", "code": "  final private boolean jj_3R_257() {\n    if (jj_scan_token(FINALLY)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_256", "code": "  final private boolean jj_3R_256() {\n    if (jj_scan_token(CATCH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_141()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [3, 15], [3, 16], [4, 17], [4, 18], [5, 19], [5, 20], [6, 21], [6, 22], [7, 23], [7, 24], [8, 25], [8, 26], [9, 27], [9, 28], [10, 29], [10, 30], [11, 31], [11, 32], [13, 33], [14, 34], [14, 35], [15, 36], [17, 37], [18, 38], [18, 39], [19, 40], [21, 41], [22, 42], [22, 43], [23, 44], [25, 45], [26, 46], [26, 47], [27, 48], [29, 49], [30, 50], [30, 51], [31, 52], [35, 53], [39, 54], [43, 55], [47, 56], [51, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 3], [16, 3], [17, 4], [18, 4], [19, 5], [20, 5], [21, 6], [22, 6], [23, 7], [24, 7], [25, 8], [26, 8], [27, 9], [28, 9], [29, 10], [30, 10], [31, 11], [32, 11], [33, 13], [34, 14], [35, 14], [36, 15], [37, 17], [38, 18], [39, 18], [40, 19], [41, 21], [42, 22], [43, 22], [44, 23], [45, 25], [46, 26], [47, 26], [48, 27], [49, 29], [50, 30], [51, 30], [52, 31], [53, 35], [54, 39], [55, 43], [56, 47], [57, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "jj_3_5", "code": "  final private boolean jj_3_5() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_192", "code": "  final private boolean jj_3R_192() {\n    if (jj_scan_token(TRY)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_256()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    xsp = jj_scanpos;\n    if (jj_3R_257()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [0, 12], [3, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [7, 19], [8, 20], [8, 21], [10, 22], [10, 23], [2, 24], [3, 25], [3, 26], [14, 27], [15, 28], [15, 29], [16, 30], [18, 31], [19, 32], [19, 33], [20, 34], [22, 35], [23, 36], [23, 37], [25, 38], [25, 39], [26, 40], [3, 41], [29, 42], [33, 43], [37, 44], [38, 45], [39, 46], [39, 47], [26, 48], [47, 49], [26, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 0], [13, 3], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 7], [20, 8], [21, 8], [22, 10], [23, 10], [24, 2], [25, 3], [26, 3], [27, 14], [28, 15], [29, 15], [30, 16], [31, 18], [32, 19], [33, 19], [34, 20], [35, 22], [36, 23], [37, 23], [38, 25], [39, 25], [40, 26], [41, 3], [42, 29], [43, 33], [44, 37], [45, 38], [46, 39], [47, 39], [48, 26], [49, 47], [50, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "jj_3R_118", "code": "  final private boolean jj_3R_118() {\n    if (jj_3R_141()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_142()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_255", "code": "  final private boolean jj_3R_255() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_100", "code": "  final private boolean jj_3R_100() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_118()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [0, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [22, 31], [24, 32], [25, 33], [25, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 0], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 22], [32, 24], [33, 25], [34, 25], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_208", "code": "  final private boolean jj_3R_208() {\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_5()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_254", "code": "  final private boolean jj_3R_254() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_191", "code": "  final private boolean jj_3R_191() {\n    if (jj_scan_token(THROW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_233", "code": "  final private boolean jj_3R_233() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_232()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_88", "code": "  final private boolean jj_3R_88() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_208()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_209()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [3, 12], [3, 13], [4, 14], [4, 15], [0, 16], [5, 17], [5, 18], [0, 19], [7, 20], [7, 21], [8, 22], [8, 23], [10, 24], [11, 25], [11, 26], [12, 27], [14, 28], [14, 29], [4, 30], [17, 31], [17, 32], [5, 33], [20, 34], [21, 35], [21, 36], [22, 37], [26, 38], [28, 39], [29, 40], [29, 41], [31, 42], [32, 43], [32, 44], [36, 45], [41, 46], [44, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 3], [13, 3], [14, 4], [15, 4], [16, 0], [17, 5], [18, 5], [19, 0], [20, 7], [21, 7], [22, 8], [23, 8], [24, 10], [25, 11], [26, 11], [27, 12], [28, 14], [29, 14], [30, 4], [31, 17], [32, 17], [33, 5], [34, 20], [35, 21], [36, 21], [37, 22], [38, 26], [39, 28], [40, 29], [41, 29], [42, 31], [43, 32], [44, 32], [45, 36], [46, 41], [47, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "jj_3R_190", "code": "  final private boolean jj_3R_190() {\n    if (jj_scan_token(RETURN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_255()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [0, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [22, 31], [24, 32], [25, 33], [25, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 0], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 22], [32, 24], [33, 25], [34, 25], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_282", "code": "  final private boolean jj_3R_282() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_182()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_253", "code": "  final private boolean jj_3R_253() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_48", "code": "  final private boolean jj_3R_48() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_189", "code": "  final private boolean jj_3R_189() {\n    if (jj_scan_token(CONTINUE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_254()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [0, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [22, 31], [24, 32], [25, 33], [25, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 0], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 22], [32, 24], [33, 25], [34, 25], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_29", "code": "  final private boolean jj_3R_29() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_47()) {\n    jj_scanpos = xsp;\n    if (jj_3R_48()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_47", "code": "  final private boolean jj_3R_47() {\n    if (jj_3R_88()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_242", "code": "  final private boolean jj_3R_242() {\n    if (jj_scan_token(ASSIGN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_29()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_243", "code": "  final private boolean jj_3R_243() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_188", "code": "  final private boolean jj_3R_188() {\n    if (jj_scan_token(BREAK)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_253()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [0, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [22, 31], [24, 32], [25, 33], [25, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 0], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 22], [32, 24], [33, 25], [34, 25], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_268", "code": "  final private boolean jj_3R_268() {\n    if (jj_3R_276()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_276", "code": "  final private boolean jj_3R_276() {\n    if (jj_3R_182()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_282()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_232", "code": "  final private boolean jj_3R_232() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_242()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [10, 17], [11, 18], [11, 19], [12, 20], [14, 21], [15, 22], [15, 23], [19, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 10], [18, 11], [19, 11], [20, 12], [21, 14], [22, 15], [23, 15], [24, 19], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_156", "code": "  final private boolean jj_3R_156() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_170", "code": "  final private boolean jj_3R_170() {\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(STAR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_137", "code": "  final private boolean jj_3R_137() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_156()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_232()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_233()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [0, 21], [2, 22], [2, 23], [11, 24], [12, 25], [12, 26], [13, 27], [15, 28], [16, 29], [16, 30], [17, 31], [19, 32], [19, 33], [7, 34], [22, 35], [22, 36], [23, 37], [2, 38], [26, 39], [30, 40], [32, 41], [33, 42], [33, 43], [35, 44], [36, 45], [36, 46], [23, 47], [43, 48], [46, 49], [23, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 0], [22, 2], [23, 2], [24, 11], [25, 12], [26, 12], [27, 13], [28, 15], [29, 16], [30, 16], [31, 17], [32, 19], [33, 19], [34, 7], [35, 22], [36, 22], [37, 23], [38, 2], [39, 26], [40, 30], [41, 32], [42, 33], [43, 33], [44, 35], [45, 36], [46, 36], [47, 23], [48, 43], [49, 46], [50, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "jj_3R_43", "code": "  final private boolean jj_3R_43() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_27", "code": "  final private boolean jj_3_27() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_43()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [0, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [14, 25], [14, 26], [15, 27], [17, 28], [17, 29], [6, 30], [22, 31], [26, 32], [28, 33], [29, 34], [29, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 0], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 14], [26, 14], [27, 15], [28, 17], [29, 17], [30, 6], [31, 22], [32, 26], [33, 28], [34, 29], [35, 29], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_139", "code": "  final private boolean jj_3R_139() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_4()) {\n    jj_scanpos = xsp;\n    if (jj_3R_170()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3_4", "code": "  final private boolean jj_3_4() {\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_243()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [0, 17], [6, 18], [6, 19], [7, 20], [7, 21], [8, 22], [8, 23], [9, 24], [9, 25], [11, 26], [12, 27], [12, 28], [13, 29], [15, 30], [15, 31], [4, 32], [18, 33], [19, 34], [19, 35], [20, 36], [22, 37], [23, 38], [23, 39], [24, 40], [28, 41], [30, 42], [31, 43], [31, 44], [35, 45], [39, 46], [44, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 0], [18, 6], [19, 6], [20, 7], [21, 7], [22, 8], [23, 8], [24, 9], [25, 9], [26, 11], [27, 12], [28, 12], [29, 13], [30, 15], [31, 15], [32, 4], [33, 18], [34, 19], [35, 19], [36, 20], [37, 22], [38, 23], [39, 23], [40, 24], [41, 28], [42, 30], [43, 31], [44, 31], [45, 35], [46, 39], [47, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "jj_3R_249", "code": "  final private boolean jj_3R_249() {\n    if (jj_scan_token(ELSE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3_3", "code": "  final private boolean jj_3_3() {\n    if (jj_3R_27()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_27", "code": "  final private boolean jj_3R_27() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_275", "code": "  final private boolean jj_3R_275() {\n    if (jj_3R_276()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_250", "code": "  final private boolean jj_3R_250() {\n    if (jj_3R_267()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_252", "code": "  final private boolean jj_3R_252() {\n    if (jj_3R_268()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_267", "code": "  final private boolean jj_3R_267() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_274()) {\n    jj_scanpos = xsp;\n    if (jj_3R_275()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_274", "code": "  final private boolean jj_3R_274() {\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_251", "code": "  final private boolean jj_3R_251() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_81", "code": "  final private boolean jj_3R_81() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_80", "code": "  final private boolean jj_3R_80() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_40", "code": "  final private boolean jj_3R_40() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_80()) {\n    jj_scanpos = xsp;\n    if (jj_3R_81()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3_2", "code": "  final private boolean jj_3_2() {\n    if (jj_3R_27()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_187", "code": "  final private boolean jj_3R_187() {\n    if (jj_scan_token(FOR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_250()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_251()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    xsp = jj_scanpos;\n    if (jj_3R_252()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [2, 19], [2, 20], [3, 21], [3, 22], [4, 23], [4, 24], [5, 25], [5, 26], [6, 27], [6, 28], [0, 29], [7, 30], [7, 31], [8, 32], [8, 33], [9, 34], [9, 35], [0, 36], [10, 37], [10, 38], [11, 39], [11, 40], [12, 41], [12, 42], [0, 43], [14, 44], [14, 45], [15, 46], [15, 47], [16, 48], [16, 49], [17, 50], [17, 51], [19, 52], [20, 53], [20, 54], [21, 55], [23, 56], [24, 57], [24, 58], [25, 59], [27, 60], [27, 61], [6, 62], [30, 63], [31, 64], [31, 65], [32, 66], [34, 67], [34, 68], [9, 69], [37, 70], [38, 71], [38, 72], [39, 73], [41, 74], [41, 75], [12, 76], [44, 77], [45, 78], [45, 79], [46, 80], [48, 81], [49, 82], [49, 83], [50, 84], [54, 85], [58, 86], [60, 87], [61, 88], [61, 89], [65, 90], [67, 91], [68, 92], [68, 93], [72, 94], [74, 95], [75, 96], [75, 97], [79, 98], [83, 99], [89, 100], [93, 101], [97, 102], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 2], [20, 2], [21, 3], [22, 3], [23, 4], [24, 4], [25, 5], [26, 5], [27, 6], [28, 6], [29, 0], [30, 7], [31, 7], [32, 8], [33, 8], [34, 9], [35, 9], [36, 0], [37, 10], [38, 10], [39, 11], [40, 11], [41, 12], [42, 12], [43, 0], [44, 14], [45, 14], [46, 15], [47, 15], [48, 16], [49, 16], [50, 17], [51, 17], [52, 19], [53, 20], [54, 20], [55, 21], [56, 23], [57, 24], [58, 24], [59, 25], [60, 27], [61, 27], [62, 6], [63, 30], [64, 31], [65, 31], [66, 32], [67, 34], [68, 34], [69, 9], [70, 37], [71, 38], [72, 38], [73, 39], [74, 41], [75, 41], [76, 12], [77, 44], [78, 45], [79, 45], [80, 46], [81, 48], [82, 49], [83, 49], [84, 50], [85, 54], [86, 58], [87, 60], [88, 61], [89, 61], [90, 65], [91, 67], [92, 68], [93, 68], [94, 72], [95, 74], [96, 75], [97, 75], [98, 79], [99, 83], [100, 89], [101, 93], [102, 97], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102]]}, {"function_name": "jj_3R_155", "code": "  final private boolean jj_3R_155() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_154", "code": "  final private boolean jj_3R_154() {\n    if (jj_3R_46()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_100()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_186", "code": "  final private boolean jj_3R_186() {\n    if (jj_scan_token(DO)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [2, 18], [3, 19], [3, 20], [4, 21], [4, 22], [5, 23], [5, 24], [6, 25], [6, 26], [7, 27], [7, 28], [8, 29], [8, 30], [9, 31], [9, 32], [10, 33], [10, 34], [11, 35], [11, 36], [12, 37], [12, 38], [13, 39], [13, 40], [14, 41], [14, 42], [15, 43], [15, 44], [17, 45], [18, 46], [18, 47], [19, 48], [21, 49], [22, 50], [22, 51], [23, 52], [25, 53], [26, 54], [26, 55], [27, 56], [29, 57], [30, 58], [30, 59], [31, 60], [33, 61], [34, 62], [34, 63], [35, 64], [37, 65], [38, 66], [38, 67], [39, 68], [41, 69], [42, 70], [42, 71], [43, 72], [47, 73], [51, 74], [55, 75], [59, 76], [63, 77], [67, 78], [71, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 2], [19, 3], [20, 3], [21, 4], [22, 4], [23, 5], [24, 5], [25, 6], [26, 6], [27, 7], [28, 7], [29, 8], [30, 8], [31, 9], [32, 9], [33, 10], [34, 10], [35, 11], [36, 11], [37, 12], [38, 12], [39, 13], [40, 13], [41, 14], [42, 14], [43, 15], [44, 15], [45, 17], [46, 18], [47, 18], [48, 19], [49, 21], [50, 22], [51, 22], [52, 23], [53, 25], [54, 26], [55, 26], [56, 27], [57, 29], [58, 30], [59, 30], [60, 31], [61, 33], [62, 34], [63, 34], [64, 35], [65, 37], [66, 38], [67, 38], [68, 39], [69, 41], [70, 42], [71, 42], [72, 43], [73, 47], [74, 51], [75, 55], [76, 59], [77, 63], [78, 67], [79, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "jj_3R_136", "code": "  final private boolean jj_3R_136() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_154()) {\n    jj_scanpos = xsp;\n    if (jj_3R_155()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3_1", "code": "  final private boolean jj_3_1() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_185", "code": "  final private boolean jj_3R_185() {\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [3, 15], [3, 16], [4, 17], [4, 18], [5, 19], [5, 20], [6, 21], [6, 22], [7, 23], [7, 24], [8, 25], [8, 26], [9, 27], [9, 28], [10, 29], [10, 30], [11, 31], [11, 32], [13, 33], [14, 34], [14, 35], [15, 36], [17, 37], [18, 38], [18, 39], [19, 40], [21, 41], [22, 42], [22, 43], [23, 44], [25, 45], [26, 46], [26, 47], [27, 48], [29, 49], [30, 50], [30, 51], [31, 52], [35, 53], [39, 54], [43, 55], [47, 56], [51, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 3], [16, 3], [17, 4], [18, 4], [19, 5], [20, 5], [21, 6], [22, 6], [23, 7], [24, 7], [25, 8], [26, 8], [27, 9], [28, 9], [29, 10], [30, 10], [31, 11], [32, 11], [33, 13], [34, 14], [35, 14], [36, 15], [37, 17], [38, 18], [39, 18], [40, 19], [41, 21], [42, 22], [43, 22], [44, 23], [45, 25], [46, 26], [47, 26], [48, 27], [49, 29], [50, 30], [51, 30], [52, 31], [53, 35], [54, 39], [55, 43], [56, 47], [57, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "jj_3R_184", "code": "  final private boolean jj_3R_184() {\n    if (jj_scan_token(IF)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_249()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [2, 16], [0, 17], [4, 18], [4, 19], [5, 20], [5, 21], [6, 22], [6, 23], [7, 24], [7, 25], [8, 26], [8, 27], [9, 28], [9, 29], [10, 30], [10, 31], [11, 32], [11, 33], [12, 34], [12, 35], [13, 36], [13, 37], [15, 38], [15, 39], [2, 40], [18, 41], [19, 42], [19, 43], [20, 44], [22, 45], [23, 46], [23, 47], [24, 48], [26, 49], [27, 50], [27, 51], [28, 52], [30, 53], [31, 54], [31, 55], [32, 56], [34, 57], [35, 58], [35, 59], [36, 60], [38, 61], [39, 62], [39, 63], [43, 64], [47, 65], [51, 66], [55, 67], [59, 68], [63, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 2], [17, 0], [18, 4], [19, 4], [20, 5], [21, 5], [22, 6], [23, 6], [24, 7], [25, 7], [26, 8], [27, 8], [28, 9], [29, 9], [30, 10], [31, 10], [32, 11], [33, 11], [34, 12], [35, 12], [36, 13], [37, 13], [38, 15], [39, 15], [40, 2], [41, 18], [42, 19], [43, 19], [44, 20], [45, 22], [46, 23], [47, 23], [48, 24], [49, 26], [50, 27], [51, 27], [52, 28], [53, 30], [54, 31], [55, 31], [56, 32], [57, 34], [58, 35], [59, 35], [60, 36], [61, 38], [62, 39], [63, 39], [64, 43], [65, 47], [66, 51], [67, 55], [68, 59], [69, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "jj_3R_266", "code": "  final private boolean jj_3R_266() {\n    if (jj_3R_99()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_273", "code": "  final private boolean jj_3R_273() {\n    if (jj_scan_token(_DEFAULT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_265", "code": "  final private boolean jj_3R_265() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_272()) {\n    jj_scanpos = xsp;\n    if (jj_3R_273()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_272", "code": "  final private boolean jj_3R_272() {\n    if (jj_scan_token(CASE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_248", "code": "  final private boolean jj_3R_248() {\n    if (jj_3R_265()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_266()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3_26", "code": "  final private boolean jj_3_26() {\n    if (jj_3R_42()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_32()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_183", "code": "  final private boolean jj_3R_183() {\n    if (jj_scan_token(SWITCH)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_248()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [2, 18], [3, 19], [3, 20], [4, 21], [6, 22], [6, 23], [7, 24], [7, 25], [8, 26], [8, 27], [9, 28], [9, 29], [10, 30], [10, 31], [11, 32], [11, 33], [12, 34], [12, 35], [13, 36], [13, 37], [14, 38], [14, 39], [15, 40], [15, 41], [17, 42], [18, 43], [18, 44], [19, 45], [4, 46], [4, 47], [22, 48], [23, 49], [23, 50], [24, 51], [26, 52], [27, 53], [27, 54], [28, 55], [30, 56], [31, 57], [31, 58], [32, 59], [34, 60], [35, 61], [35, 62], [36, 63], [38, 64], [39, 65], [39, 66], [40, 67], [44, 68], [46, 69], [46, 70], [47, 71], [4, 72], [50, 73], [54, 74], [58, 75], [62, 76], [66, 77], [69, 78], [70, 79], [70, 80], [47, 81], [80, 82], [47, 83], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 2], [19, 3], [20, 3], [21, 4], [22, 6], [23, 6], [24, 7], [25, 7], [26, 8], [27, 8], [28, 9], [29, 9], [30, 10], [31, 10], [32, 11], [33, 11], [34, 12], [35, 12], [36, 13], [37, 13], [38, 14], [39, 14], [40, 15], [41, 15], [42, 17], [43, 18], [44, 18], [45, 19], [46, 4], [47, 4], [48, 22], [49, 23], [50, 23], [51, 24], [52, 26], [53, 27], [54, 27], [55, 28], [56, 30], [57, 31], [58, 31], [59, 32], [60, 34], [61, 35], [62, 35], [63, 36], [64, 38], [65, 39], [66, 39], [67, 40], [68, 44], [69, 46], [70, 46], [71, 47], [72, 4], [73, 50], [74, 54], [75, 58], [76, 62], [77, 66], [78, 69], [79, 70], [80, 70], [81, 47], [82, 80], [83, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83]]}, {"function_name": "jj_3R_201", "code": "  final private boolean jj_3R_201() {\n    if (jj_3R_207()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_200", "code": "  final private boolean jj_3R_200() {\n    if (jj_3R_84()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_199", "code": "  final private boolean jj_3R_199() {\n    if (jj_3R_206()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_182", "code": "  final private boolean jj_3R_182() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_198()) {\n    jj_scanpos = xsp;\n    if (jj_3R_199()) {\n    jj_scanpos = xsp;\n    if (jj_3R_200()) {\n    jj_scanpos = xsp;\n    if (jj_3R_201()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [20, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [31, 37], [31, 38], [20, 39], [34, 40], [35, 41], [36, 42], [36, 43], [37, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 20], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 31], [38, 31], [39, 20], [40, 34], [41, 35], [42, 36], [43, 36], [44, 37], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jj_3R_198", "code": "  final private boolean jj_3R_198() {\n    if (jj_3R_205()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_181", "code": "  final private boolean jj_3R_181() {\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_140", "code": "  final private boolean jj_3R_140() {\n    if (jj_scan_token(FORMAL_COMMENT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_41", "code": "  final private boolean jj_3R_41() {\n    if (jj_scan_token(FINAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_117", "code": "  final private boolean jj_3R_117() {\n    if (jj_3R_140()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_25", "code": "  final private boolean jj_3_25() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_41()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [0, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [14, 25], [14, 26], [15, 27], [17, 28], [17, 29], [6, 30], [22, 31], [26, 32], [28, 33], [29, 34], [29, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 0], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 14], [26, 14], [27, 15], [28, 17], [29, 17], [30, 6], [31, 22], [32, 26], [33, 28], [34, 29], [35, 29], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_116", "code": "  final private boolean jj_3R_116() {\n    if (jj_3R_139()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_24", "code": "  final private boolean jj_3_24() {\n    if (jj_3R_40()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_115", "code": "  final private boolean jj_3R_115() {\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_114", "code": "  final private boolean jj_3R_114() {\n    if (jj_3R_137()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_113", "code": "  final private boolean jj_3R_113() {\n    if (jj_3R_136()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_99", "code": "  final private boolean jj_3R_99() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_113()) {\n    jj_scanpos = xsp;\n    if (jj_3R_114()) {\n    jj_scanpos = xsp;\n    if (jj_3R_115()) {\n    jj_scanpos = xsp;\n    if (jj_3R_116()) {\n    jj_scanpos = xsp;\n    if (jj_3R_117()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [28, 31], [29, 32], [29, 33], [30, 34], [30, 35], [20, 36], [33, 37], [34, 38], [34, 39], [30, 40], [30, 41], [38, 42], [39, 43], [39, 44], [40, 45], [40, 46], [41, 47], [41, 48], [30, 49], [44, 50], [45, 51], [46, 52], [46, 53], [47, 54], [53, 55], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 28], [32, 29], [33, 29], [34, 30], [35, 30], [36, 20], [37, 33], [38, 34], [39, 34], [40, 30], [41, 30], [42, 38], [43, 39], [44, 39], [45, 40], [46, 40], [47, 41], [48, 41], [49, 30], [50, 44], [51, 45], [52, 46], [53, 46], [54, 47], [55, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "jj_3R_79", "code": "  final private boolean jj_3R_79() {\n    if (jj_3R_99()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_38", "code": "  final private boolean jj_3R_38() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_79()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [6, 14], [6, 15], [7, 16], [7, 17], [9, 18], [10, 19], [10, 20], [11, 21], [4, 22], [4, 23], [14, 24], [15, 25], [15, 26], [16, 27], [20, 28], [22, 29], [22, 30], [23, 31], [4, 32], [26, 33], [29, 34], [30, 35], [30, 36], [23, 37], [36, 38], [23, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 6], [15, 6], [16, 7], [17, 7], [18, 9], [19, 10], [20, 10], [21, 11], [22, 4], [23, 4], [24, 14], [25, 15], [26, 15], [27, 16], [28, 20], [29, 22], [30, 22], [31, 23], [32, 4], [33, 26], [34, 29], [35, 30], [36, 30], [37, 23], [38, 36], [39, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "jj_3R_39", "code": "  final private boolean jj_3R_39() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_138()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_169", "code": "  final private boolean jj_3R_169() {\n    if (jj_3R_192()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_168", "code": "  final private boolean jj_3R_168() {\n    if (jj_3R_191()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_167", "code": "  final private boolean jj_3R_167() {\n    if (jj_3R_190()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_166", "code": "  final private boolean jj_3R_166() {\n    if (jj_3R_189()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_165", "code": "  final private boolean jj_3R_165() {\n    if (jj_3R_188()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_164", "code": "  final private boolean jj_3R_164() {\n    if (jj_3R_187()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_163", "code": "  final private boolean jj_3R_163() {\n    if (jj_3R_186()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_162", "code": "  final private boolean jj_3R_162() {\n    if (jj_3R_185()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_161", "code": "  final private boolean jj_3R_161() {\n    if (jj_3R_184()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_160", "code": "  final private boolean jj_3R_160() {\n    if (jj_3R_183()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_19", "code": "  final private boolean jj_3_19() {\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_159", "code": "  final private boolean jj_3R_159() {\n    if (jj_3R_182()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(SEMICOLON)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_158", "code": "  final private boolean jj_3R_158() {\n    if (jj_3R_181()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_157", "code": "  final private boolean jj_3R_157() {\n    if (jj_3R_38()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_138", "code": "  final private boolean jj_3R_138() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_23()) {\n    jj_scanpos = xsp;\n    if (jj_3R_157()) {\n    jj_scanpos = xsp;\n    if (jj_3R_158()) {\n    jj_scanpos = xsp;\n    if (jj_3R_159()) {\n    jj_scanpos = xsp;\n    if (jj_3R_160()) {\n    jj_scanpos = xsp;\n    if (jj_3R_161()) {\n    jj_scanpos = xsp;\n    if (jj_3R_162()) {\n    jj_scanpos = xsp;\n    if (jj_3R_163()) {\n    jj_scanpos = xsp;\n    if (jj_3R_164()) {\n    jj_scanpos = xsp;\n    if (jj_3R_165()) {\n    jj_scanpos = xsp;\n    if (jj_3R_166()) {\n    jj_scanpos = xsp;\n    if (jj_3R_167()) {\n    jj_scanpos = xsp;\n    if (jj_3R_168()) {\n    jj_scanpos = xsp;\n    if (jj_3R_169()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [28, 31], [29, 32], [29, 33], [30, 34], [30, 35], [20, 36], [33, 37], [34, 38], [34, 39], [30, 40], [38, 41], [39, 42], [39, 43], [40, 44], [40, 45], [30, 46], [43, 47], [44, 48], [44, 49], [40, 50], [48, 51], [49, 52], [49, 53], [50, 54], [50, 55], [40, 56], [53, 57], [54, 58], [54, 59], [50, 60], [58, 61], [59, 62], [59, 63], [60, 64], [60, 65], [50, 66], [63, 67], [64, 68], [64, 69], [60, 70], [68, 71], [69, 72], [69, 73], [70, 74], [70, 75], [60, 76], [73, 77], [74, 78], [74, 79], [70, 80], [78, 81], [79, 82], [79, 83], [80, 84], [80, 85], [70, 86], [83, 87], [84, 88], [84, 89], [80, 90], [88, 91], [89, 92], [89, 93], [90, 94], [90, 95], [80, 96], [93, 97], [94, 98], [94, 99], [90, 100], [98, 101], [99, 102], [99, 103], [100, 104], [100, 105], [90, 106], [103, 107], [104, 108], [104, 109], [100, 110], [108, 111], [109, 112], [109, 113], [110, 114], [110, 115], [100, 116], [113, 117], [114, 118], [114, 119], [110, 120], [118, 121], [119, 122], [119, 123], [120, 124], [120, 125], [110, 126], [123, 127], [124, 128], [124, 129], [120, 130], [120, 131], [128, 132], [129, 133], [129, 134], [130, 135], [130, 136], [131, 137], [131, 138], [120, 139], [134, 140], [135, 141], [136, 142], [136, 143], [137, 144], [143, 145], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 28], [32, 29], [33, 29], [34, 30], [35, 30], [36, 20], [37, 33], [38, 34], [39, 34], [40, 30], [41, 38], [42, 39], [43, 39], [44, 40], [45, 40], [46, 30], [47, 43], [48, 44], [49, 44], [50, 40], [51, 48], [52, 49], [53, 49], [54, 50], [55, 50], [56, 40], [57, 53], [58, 54], [59, 54], [60, 50], [61, 58], [62, 59], [63, 59], [64, 60], [65, 60], [66, 50], [67, 63], [68, 64], [69, 64], [70, 60], [71, 68], [72, 69], [73, 69], [74, 70], [75, 70], [76, 60], [77, 73], [78, 74], [79, 74], [80, 70], [81, 78], [82, 79], [83, 79], [84, 80], [85, 80], [86, 70], [87, 83], [88, 84], [89, 84], [90, 80], [91, 88], [92, 89], [93, 89], [94, 90], [95, 90], [96, 80], [97, 93], [98, 94], [99, 94], [100, 90], [101, 98], [102, 99], [103, 99], [104, 100], [105, 100], [106, 90], [107, 103], [108, 104], [109, 104], [110, 100], [111, 108], [112, 109], [113, 109], [114, 110], [115, 110], [116, 100], [117, 113], [118, 114], [119, 114], [120, 110], [121, 118], [122, 119], [123, 119], [124, 120], [125, 120], [126, 110], [127, 123], [128, 124], [129, 124], [130, 120], [131, 120], [132, 128], [133, 129], [134, 129], [135, 130], [136, 130], [137, 131], [138, 131], [139, 120], [140, 134], [141, 135], [142, 136], [143, 136], [144, 137], [145, 143], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145]]}, {"function_name": "jj_3_23", "code": "  final private boolean jj_3_23() {\n    if (jj_3R_39()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_174", "code": "  final private boolean jj_3R_174() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_19()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [10, 17], [11, 18], [11, 19], [12, 20], [14, 21], [15, 22], [15, 23], [19, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 10], [18, 11], [19, 11], [20, 12], [21, 14], [22, 15], [23, 15], [24, 19], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_202", "code": "  final private boolean jj_3R_202() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_173", "code": "  final private boolean jj_3R_173() {\n    if (jj_3R_172()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_193", "code": "  final private boolean jj_3R_193() {\n    Token xsp;\n    if (jj_3R_202()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_202()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    if (jj_3R_88()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [9, 18], [10, 19], [10, 20], [11, 21], [4, 22], [4, 23], [14, 24], [15, 25], [15, 26], [16, 27], [20, 28], [22, 29], [22, 30], [23, 31], [4, 32], [26, 33], [29, 34], [30, 35], [30, 36], [23, 37], [36, 38], [23, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 9], [19, 10], [20, 10], [21, 11], [22, 4], [23, 4], [24, 14], [25, 15], [26, 15], [27, 16], [28, 20], [29, 22], [30, 22], [31, 23], [32, 4], [33, 26], [34, 29], [35, 30], [36, 30], [37, 23], [38, 36], [39, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "jj_3_21", "code": "  final private boolean jj_3_21() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3_22", "code": "  final private boolean jj_3_22() {\n    Token xsp;\n    if (jj_3_21()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_21()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_172", "code": "  final private boolean jj_3R_172() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_22()) {\n    jj_scanpos = xsp;\n    if (jj_3R_193()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_143", "code": "  final private boolean jj_3R_143() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_173()) {\n    jj_scanpos = xsp;\n    if (jj_3R_174()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [0, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [9, 21], [2, 22], [2, 23], [12, 24], [13, 25], [13, 26], [14, 27], [16, 28], [17, 29], [17, 30], [18, 31], [20, 32], [21, 33], [21, 34], [22, 35], [22, 36], [23, 37], [23, 38], [2, 39], [26, 40], [30, 41], [34, 42], [35, 43], [36, 44], [36, 45], [37, 46], [45, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 0], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 9], [22, 2], [23, 2], [24, 12], [25, 13], [26, 13], [27, 14], [28, 16], [29, 17], [30, 17], [31, 18], [32, 20], [33, 21], [34, 21], [35, 22], [36, 22], [37, 23], [38, 23], [39, 2], [40, 26], [41, 30], [42, 34], [43, 35], [44, 36], [45, 36], [46, 37], [47, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "jj_3R_119", "code": "  final private boolean jj_3R_119() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_20()) {\n    jj_scanpos = xsp;\n    if (jj_3R_143()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3_20", "code": "  final private boolean jj_3_20() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_172()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_135", "code": "  final private boolean jj_3R_135() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_112", "code": "  final private boolean jj_3R_112() {\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_135()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_98", "code": "  final private boolean jj_3R_98() {\n    if (jj_3R_112()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_78", "code": "  final private boolean jj_3R_78() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_98()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [0, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [10, 21], [10, 22], [11, 23], [13, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [22, 31], [24, 32], [25, 33], [25, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 0], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 10], [22, 10], [23, 11], [24, 13], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 22], [32, 24], [33, 25], [34, 25], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_153", "code": "  final private boolean jj_3R_153() {\n    if (jj_scan_token(VOID)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_152", "code": "  final private boolean jj_3R_152() {\n    if (jj_scan_token(NULL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_180", "code": "  final private boolean jj_3R_180() {\n    if (jj_scan_token(FALSE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_151", "code": "  final private boolean jj_3R_151() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_179()) {\n    jj_scanpos = xsp;\n    if (jj_3R_180()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_179", "code": "  final private boolean jj_3R_179() {\n    if (jj_scan_token(TRUE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_134", "code": "  final private boolean jj_3R_134() {\n    if (jj_3R_153()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_133", "code": "  final private boolean jj_3R_133() {\n    if (jj_3R_152()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_132", "code": "  final private boolean jj_3R_132() {\n    if (jj_3R_151()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_131", "code": "  final private boolean jj_3R_131() {\n    if (jj_scan_token(STRING_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_130", "code": "  final private boolean jj_3R_130() {\n    if (jj_scan_token(CHARACTER_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_129", "code": "  final private boolean jj_3R_129() {\n    if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_128", "code": "  final private boolean jj_3R_128() {\n    if (jj_scan_token(INTEGER_LITERAL)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_111", "code": "  final private boolean jj_3R_111() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_128()) {\n    jj_scanpos = xsp;\n    if (jj_3R_129()) {\n    jj_scanpos = xsp;\n    if (jj_3R_130()) {\n    jj_scanpos = xsp;\n    if (jj_3R_131()) {\n    jj_scanpos = xsp;\n    if (jj_3R_132()) {\n    jj_scanpos = xsp;\n    if (jj_3R_133()) {\n    jj_scanpos = xsp;\n    if (jj_3R_134()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [28, 31], [29, 32], [29, 33], [30, 34], [30, 35], [20, 36], [33, 37], [34, 38], [34, 39], [30, 40], [38, 41], [39, 42], [39, 43], [40, 44], [40, 45], [30, 46], [43, 47], [44, 48], [44, 49], [40, 50], [48, 51], [49, 52], [49, 53], [50, 54], [50, 55], [40, 56], [53, 57], [54, 58], [54, 59], [50, 60], [50, 61], [58, 62], [59, 63], [59, 64], [60, 65], [60, 66], [61, 67], [61, 68], [50, 69], [64, 70], [65, 71], [66, 72], [66, 73], [67, 74], [73, 75], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 28], [32, 29], [33, 29], [34, 30], [35, 30], [36, 20], [37, 33], [38, 34], [39, 34], [40, 30], [41, 38], [42, 39], [43, 39], [44, 40], [45, 40], [46, 30], [47, 43], [48, 44], [49, 44], [50, 40], [51, 48], [52, 49], [53, 49], [54, 50], [55, 50], [56, 40], [57, 53], [58, 54], [59, 54], [60, 50], [61, 50], [62, 58], [63, 59], [64, 59], [65, 60], [66, 60], [67, 61], [68, 61], [69, 50], [70, 64], [71, 65], [72, 66], [73, 66], [74, 67], [75, 73], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "jj_3R_127", "code": "  final private boolean jj_3R_127() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_110", "code": "  final private boolean jj_3R_110() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_52", "code": "  final private boolean jj_3R_52() {\n    if (jj_3R_91()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_109", "code": "  final private boolean jj_3R_109() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_127()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [0, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [9, 21], [2, 22], [12, 23], [13, 24], [13, 25], [14, 26], [16, 27], [17, 28], [17, 29], [18, 30], [20, 31], [21, 32], [21, 33], [25, 34], [29, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 0], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 9], [22, 2], [23, 12], [24, 13], [25, 13], [26, 14], [27, 16], [28, 17], [29, 17], [30, 18], [31, 20], [32, 21], [33, 21], [34, 25], [35, 29], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_108", "code": "  final private boolean jj_3R_108() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_91", "code": "  final private boolean jj_3R_91() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_108()) {\n    jj_scanpos = xsp;\n    if (jj_3R_109()) {\n    jj_scanpos = xsp;\n    if (jj_3R_110()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [10, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [21, 27], [21, 28], [10, 29], [24, 30], [25, 31], [26, 32], [26, 33], [27, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 10], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 21], [28, 21], [29, 10], [30, 24], [31, 25], [32, 26], [33, 26], [34, 27], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3_18", "code": "  final private boolean jj_3_18() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_31", "code": "  final private boolean jj_3R_31() {\n    if (jj_3R_51()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_52()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_90", "code": "  final private boolean jj_3R_90() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_89", "code": "  final private boolean jj_3R_89() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_51", "code": "  final private boolean jj_3R_51() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_89()) {\n    jj_scanpos = xsp;\n    if (jj_3R_90()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_146", "code": "  final private boolean jj_3R_146() {\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_97", "code": "  final private boolean jj_3R_97() {\n    if (jj_3R_111()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_124", "code": "  final private boolean jj_3R_124() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_96", "code": "  final private boolean jj_3R_96() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_123", "code": "  final private boolean jj_3R_123() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_146()) jj_scanpos = xsp;\n    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [0, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [7, 19], [9, 20], [9, 21], [2, 22], [12, 23], [13, 24], [13, 25], [14, 26], [16, 27], [17, 28], [17, 29], [18, 30], [20, 31], [21, 32], [21, 33], [25, 34], [29, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 0], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 7], [20, 9], [21, 9], [22, 2], [23, 12], [24, 13], [25, 13], [26, 14], [27, 16], [28, 17], [29, 17], [30, 18], [31, 20], [32, 21], [33, 21], [34, 25], [35, 29], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_122", "code": "  final private boolean jj_3R_122() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_105", "code": "  final private boolean jj_3R_105() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_17()) {\n    jj_scanpos = xsp;\n    if (jj_3R_122()) {\n    jj_scanpos = xsp;\n    if (jj_3R_123()) {\n    jj_scanpos = xsp;\n    if (jj_3R_124()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [20, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [31, 37], [31, 38], [20, 39], [34, 40], [35, 41], [36, 42], [36, 43], [37, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 20], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 31], [38, 31], [39, 20], [40, 34], [41, 35], [42, 36], [43, 36], [44, 37], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jj_3_17", "code": "  final private boolean jj_3_17() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(CLASS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3_15", "code": "  final private boolean jj_3_15() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(DOT)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(CLASS)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_145", "code": "  final private boolean jj_3R_145() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_16", "code": "  final private boolean jj_3_16() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_144", "code": "  final private boolean jj_3R_144() {\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_121", "code": "  final private boolean jj_3R_121() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_144()) {\n    jj_scanpos = xsp;\n    if (jj_3R_145()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_120", "code": "  final private boolean jj_3R_120() {\n    if (jj_3R_37()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_36", "code": "  final private boolean jj_3R_36() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_95", "code": "  final private boolean jj_3R_95() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_83", "code": "  final private boolean jj_3R_83() {\n    if (jj_3R_105()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_104", "code": "  final private boolean jj_3R_104() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_120()) {\n    jj_scanpos = xsp;\n    if (jj_3R_121()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_35", "code": "  final private boolean jj_3R_35() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_103", "code": "  final private boolean jj_3R_103() {\n    if (jj_3R_119()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_102", "code": "  final private boolean jj_3R_102() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_26()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_94", "code": "  final private boolean jj_3R_94() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_101", "code": "  final private boolean jj_3R_101() {\n    if (jj_3R_111()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_82", "code": "  final private boolean jj_3R_82() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_101()) {\n    jj_scanpos = xsp;\n    if (jj_3R_102()) {\n    jj_scanpos = xsp;\n    if (jj_3R_103()) {\n    jj_scanpos = xsp;\n    if (jj_3R_104()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [8, 11], [9, 12], [9, 13], [10, 14], [10, 15], [2, 16], [13, 17], [14, 18], [14, 19], [10, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [10, 26], [23, 27], [24, 28], [24, 29], [20, 30], [20, 31], [28, 32], [29, 33], [29, 34], [30, 35], [30, 36], [31, 37], [31, 38], [20, 39], [34, 40], [35, 41], [36, 42], [36, 43], [37, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 8], [12, 9], [13, 9], [14, 10], [15, 10], [16, 2], [17, 13], [18, 14], [19, 14], [20, 10], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 10], [27, 23], [28, 24], [29, 24], [30, 20], [31, 20], [32, 28], [33, 29], [34, 29], [35, 30], [36, 30], [37, 31], [38, 31], [39, 20], [40, 34], [41, 35], [42, 36], [43, 36], [44, 37], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jj_3R_93", "code": "  final private boolean jj_3R_93() {\n    if (jj_scan_token(BANG)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_37", "code": "  final private boolean jj_3R_37() {\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_78()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3_14", "code": "  final private boolean jj_3_14() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_34()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [8, 16], [8, 17], [9, 18], [11, 19], [12, 20], [12, 21], [13, 22], [17, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 8], [17, 8], [18, 9], [19, 11], [20, 12], [21, 12], [22, 13], [23, 17], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_281", "code": "  final private boolean jj_3R_281() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_92", "code": "  final private boolean jj_3R_92() {\n    if (jj_scan_token(TILDE)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_42", "code": "  final private boolean jj_3R_42() {\n    if (jj_3R_82()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_83()) { jj_scanpos = xsp; break; }\n      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [8, 14], [9, 15], [9, 16], [10, 17], [12, 18], [12, 19], [13, 20], [2, 21], [16, 22], [18, 23], [19, 24], [19, 25], [13, 26], [25, 27], [13, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 8], [15, 9], [16, 9], [17, 10], [18, 12], [19, 12], [20, 13], [21, 2], [22, 16], [23, 18], [24, 19], [25, 19], [26, 13], [27, 25], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "jj_3R_287", "code": "  final private boolean jj_3R_287() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_271()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_286", "code": "  final private boolean jj_3R_286() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_30()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_244()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jj_3R_280", "code": "  final private boolean jj_3R_280() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_13", "code": "  final private boolean jj_3_13() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_35()) {\n    jj_scanpos = xsp;\n    if (jj_3R_36()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [2, 17], [10, 18], [11, 19], [11, 20], [12, 21], [14, 22], [15, 23], [15, 24], [16, 25], [16, 26], [17, 27], [17, 28], [2, 29], [20, 30], [24, 31], [25, 32], [26, 33], [26, 34], [27, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 2], [18, 10], [19, 11], [20, 11], [21, 12], [22, 14], [23, 15], [24, 15], [25, 16], [26, 16], [27, 17], [28, 17], [29, 2], [30, 20], [31, 24], [32, 25], [33, 26], [34, 26], [35, 27], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_285", "code": "  final private boolean jj_3R_285() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_286()) {\n    jj_scanpos = xsp;\n    if (jj_3R_287()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_215", "code": "  final private boolean jj_3R_215() {\n    if (jj_3R_42()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3_12", "code": "  final private boolean jj_3_12() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [6, 18], [7, 19], [7, 20], [9, 21], [10, 22], [10, 23], [11, 24], [13, 25], [14, 26], [14, 27], [15, 28], [17, 29], [18, 30], [18, 31], [19, 32], [23, 33], [27, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 6], [19, 7], [20, 7], [21, 9], [22, 10], [23, 10], [24, 11], [25, 13], [26, 14], [27, 14], [28, 15], [29, 17], [30, 18], [31, 18], [32, 19], [33, 23], [34, 27], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "jj_3R_207", "code": "  final private boolean jj_3R_207() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_214()) {\n    jj_scanpos = xsp;\n    if (jj_3R_215()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [5, 8], [5, 9], [2, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [11, 17], [11, 18], [2, 19], [14, 20], [15, 21], [16, 22], [16, 23], [17, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 5], [9, 5], [10, 2], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 11], [18, 11], [19, 2], [20, 14], [21, 15], [22, 16], [23, 16], [24, 17], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "jj_3R_214", "code": "  final private boolean jj_3R_214() {\n    if (jj_3R_31()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_280()) {\n    jj_scanpos = xsp;\n    if (jj_3R_281()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [7, 14], [7, 15], [2, 16], [2, 17], [10, 18], [11, 19], [11, 20], [12, 21], [14, 22], [15, 23], [15, 24], [16, 25], [16, 26], [17, 27], [17, 28], [2, 29], [20, 30], [24, 31], [25, 32], [26, 33], [26, 34], [27, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 7], [15, 7], [16, 2], [17, 2], [18, 10], [19, 11], [20, 11], [21, 12], [22, 14], [23, 15], [24, 15], [25, 16], [26, 16], [27, 17], [28, 17], [29, 2], [30, 20], [31, 24], [32, 25], [33, 26], [34, 26], [35, 27], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_3R_69", "code": "  final private boolean jj_3R_69() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_92()) {\n    jj_scanpos = xsp;\n    if (jj_3R_93()) {\n    jj_scanpos = xsp;\n    if (jj_3R_94()) {\n    jj_scanpos = xsp;\n    if (jj_3R_95()) {\n    jj_scanpos = xsp;\n    if (jj_3R_96()) {\n    jj_scanpos = xsp;\n    if (jj_3R_97()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [0, 13], [4, 14], [4, 15], [5, 16], [5, 17], [6, 18], [6, 19], [7, 20], [7, 21], [8, 22], [8, 23], [9, 24], [9, 25], [11, 26], [11, 27], [2, 28], [14, 29], [15, 30], [15, 31], [16, 32], [18, 33], [19, 34], [19, 35], [20, 36], [22, 37], [23, 38], [23, 39], [24, 40], [26, 41], [27, 42], [27, 43], [28, 44], [28, 45], [2, 46], [31, 47], [35, 48], [39, 49], [43, 50], [44, 51], [44, 52], [28, 53], [51, 54], [52, 55], [52, 56], [53, 57], [53, 58], [28, 59], [56, 60], [57, 61], [57, 62], [53, 63], [61, 64], [62, 65], [62, 66], [63, 67], [63, 68], [53, 69], [66, 70], [67, 71], [67, 72], [63, 73], [71, 74], [72, 75], [72, 76], [73, 77], [73, 78], [63, 79], [76, 80], [77, 81], [77, 82], [73, 83], [73, 84], [81, 85], [82, 86], [82, 87], [83, 88], [83, 89], [84, 90], [84, 91], [73, 92], [87, 93], [88, 94], [89, 95], [89, 96], [90, 97], [96, 98], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 0], [14, 4], [15, 4], [16, 5], [17, 5], [18, 6], [19, 6], [20, 7], [21, 7], [22, 8], [23, 8], [24, 9], [25, 9], [26, 11], [27, 11], [28, 2], [29, 14], [30, 15], [31, 15], [32, 16], [33, 18], [34, 19], [35, 19], [36, 20], [37, 22], [38, 23], [39, 23], [40, 24], [41, 26], [42, 27], [43, 27], [44, 28], [45, 28], [46, 2], [47, 31], [48, 35], [49, 39], [50, 43], [51, 44], [52, 44], [53, 28], [54, 51], [55, 52], [56, 52], [57, 53], [58, 53], [59, 28], [60, 56], [61, 57], [62, 57], [63, 53], [64, 61], [65, 62], [66, 62], [67, 63], [68, 63], [69, 53], [70, 66], [71, 67], [72, 67], [73, 63], [74, 71], [75, 72], [76, 72], [77, 73], [78, 73], [79, 63], [80, 76], [81, 77], [82, 77], [83, 73], [84, 73], [85, 81], [86, 82], [87, 82], [88, 83], [89, 83], [90, 84], [91, 84], [92, 73], [93, 87], [94, 88], [95, 89], [96, 89], [97, 90], [98, 96], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98]]}, {"function_name": "jj_3_10", "code": "  final private boolean jj_3_10() {\n    if (jj_3R_33()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [6, 10], [6, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 6], [11, 6], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "jj_3R_68", "code": "  final private boolean jj_3R_68() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_3R_28()) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    if (jj_scan_token(RBRACKET)) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [12, 28], [12, 29], [13, 30], [15, 31], [16, 32], [16, 33], [17, 34], [19, 35], [20, 36], [20, 37], [21, 38], [23, 39], [24, 40], [24, 41], [25, 42], [29, 43], [33, 44], [37, 45], [41, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 12], [29, 12], [30, 13], [31, 15], [32, 16], [33, 16], [34, 17], [35, 19], [36, 20], [37, 20], [38, 21], [39, 23], [40, 24], [41, 24], [42, 25], [43, 29], [44, 33], [45, 37], [46, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.InputStream stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [5, 14], [6, 15], [8, 16], [9, 17], [11, 18], [11, 19], [12, 20], [1, 21], [13, 22], [2, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 5], [15, 6], [16, 8], [17, 9], [18, 11], [19, 11], [20, 12], [21, 1], [22, 13], [23, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.Reader stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [5, 14], [6, 15], [8, 16], [9, 17], [11, 18], [11, 19], [12, 20], [1, 21], [13, 22], [2, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 5], [15, 6], [16, 8], [17, 9], [18, 11], [19, 11], [20, 12], [21, 1], [22, 13], [23, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "ReInit", "code": "  public void ReInit(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [5, 13], [6, 14], [8, 15], [9, 16], [11, 17], [1, 18], [12, 19], [2, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 5], [14, 6], [15, 8], [16, 9], [17, 11], [18, 1], [19, 12], [20, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "jj_consume_token", "code": "  final private Token jj_consume_token(int kind) throws ParseException {\n    Token oldToken;\n    if ((oldToken = token).next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    if (token.kind == kind) {\n      jj_gen++;\n      if (++jj_gc > 100) {\n        jj_gc = 0;\n        for (int i = 0; i < jj_2_rtns.length; i++) {\n          JJCalls c = jj_2_rtns[i];\n          while (c != null) {\n            if (c.gen < jj_gen) c.first = null;\n            c = c.next;\n          }\n        }\n      }\n      return token;\n    }\n    token = oldToken;\n    jj_kind = kind;\n    throw generateParseException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [0, 10], [3, 11], [2, 12], [2, 13], [10, 14], [3, 15], [3, 16], [11, 17], [11, 18], [13, 19], [15, 20], [13, 21], [19, 22], [20, 23], [21, 24], [13, 25], [21, 26], [21, 27], [25, 28], [26, 29], [21, 30], [26, 31], [29, 32], [26, 33], [31, 34], [31, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 0], [11, 3], [12, 2], [13, 2], [14, 10], [15, 3], [16, 3], [17, 11], [18, 11], [19, 13], [20, 15], [21, 13], [22, 19], [23, 20], [24, 21], [25, 13], [26, 21], [27, 21], [28, 25], [29, 26], [30, 21], [31, 26], [32, 29], [33, 26], [34, 31], [35, 31], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_scan_token", "code": "  final private boolean jj_scan_token(int kind) {\n    if (jj_scanpos == jj_lastpos) {\n      jj_la--;\n      if (jj_scanpos.next == null) {\n        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();\n      } else {\n        jj_lastpos = jj_scanpos = jj_scanpos.next;\n      }\n    } else {\n      jj_scanpos = jj_scanpos.next;\n    }\n    if (jj_rescan) {\n      int i = 0; Token tok = token;\n      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }\n      if (tok != null) jj_add_error_token(kind, i);\n    }\n    return (jj_scanpos.kind != kind);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [2, 8], [2, 9], [2, 10], [3, 11], [7, 12], [8, 13], [3, 14], [11, 15], [7, 16], [12, 17], [13, 18], [13, 19], [10, 20], [15, 21], [8, 22], [19, 23], [11, 24], [11, 25], [24, 26], [25, 27], [27, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [8, 2], [9, 2], [10, 2], [11, 3], [12, 7], [13, 8], [14, 3], [15, 11], [16, 7], [17, 12], [18, 13], [19, 13], [20, 10], [21, 15], [22, 8], [23, 19], [24, 11], [25, 11], [26, 24], [27, 25], [28, 27], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getNextToken", "code": "  final public Token getNextToken() {\n    if (token.next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    jj_gen++;\n    return token;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [2, 7], [4, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 2], [8, 4], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getToken", "code": "  final public Token getToken(int index) {\n    Token t = lookingAhead ? jj_scanpos : token;\n    for (int i = 0; i < index; i++) {\n      if (t.next != null) t = t.next;\n      else t = t.next = token_source.getNextToken();\n    }\n    return t;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [2, 9], [6, 10], [6, 11], [8, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 2], [10, 6], [11, 6], [12, 8], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_ntk", "code": "  final private int jj_ntk() {\n    if ((jj_nt=token.next) == null)\n      return (jj_ntk = (token.next=token_source.getNextToken()).kind);\n    else\n      return (jj_ntk = jj_nt.kind);", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [4, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 4], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_add_error_token", "code": "  private void jj_add_error_token(int kind, int pos) {\n    if (pos >= 100) return;\n    if (pos == jj_endpos + 1) {\n      jj_lasttokens[jj_endpos++] = kind;\n    } else if (jj_endpos != 0) {\n      jj_expentry = new int[jj_endpos];\n      for (int i = 0; i < jj_endpos; i++) {\n        jj_expentry[i] = jj_lasttokens[i];\n      }\n      boolean exists = false;\n      for (java.util.Enumeration enum1 = jj_expentries.elements(); enum1.hasMoreElements();) {\n        int[] oldentry = (int[])(enum1.nextElement());\n        if (oldentry.length == jj_expentry.length) {\n          exists = true;\n          for (int i = 0; i < jj_expentry.length; i++) {\n            if (oldentry[i] != jj_expentry[i]) {\n              exists = false;\n              break;\n            }\n          }\n          if (exists) break;\n        }\n      }\n      if (!exists) jj_expentries.addElement(jj_expentry);\n      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LOOP", "VAR_DECL", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LOOP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [5, 9], [6, 10], [8, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [9, 17], [1, 18], [10, 19], [12, 20], [14, 21], [16, 22], [5, 23], [12, 24], [20, 25], [13, 26], [14, 27], [14, 28], [15, 29], [27, 30], [14, 31], [16, 32], [16, 33], [27, 34], [27, 35], [24, 36], [34, 37], [35, 38], [27, 39], [28, 40], [36, 41], [36, 42], [35, 43], [39, 44], [43, 45], [35, 46], [43, 47], [43, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 5], [10, 6], [11, 8], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 9], [18, 1], [19, 10], [20, 12], [21, 14], [22, 16], [23, 5], [24, 12], [25, 20], [26, 13], [27, 14], [28, 14], [29, 15], [30, 27], [31, 14], [32, 16], [33, 16], [34, 27], [35, 27], [36, 24], [37, 34], [38, 35], [39, 27], [40, 28], [41, 36], [42, 36], [43, 35], [44, 39], [45, 43], [46, 35], [47, 43], [48, 43], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "generateParseException", "code": "  final public ParseException generateParseException() {\n    jj_expentries.removeAllElements();\n    boolean[] la1tokens = new boolean[123];\n    for (int i = 0; i < 123; i++) {\n      la1tokens[i] = false;\n    }\n    if (jj_kind >= 0) {\n      la1tokens[jj_kind] = true;\n      jj_kind = -1;\n    }\n    for (int i = 0; i < 88; i++) {\n      if (jj_la1[i] == jj_gen) {\n        for (int j = 0; j < 32; j++) {\n          if ((jj_la1_0[i] & (1<<j)) != 0) {\n            la1tokens[j] = true;\n          }\n          if ((jj_la1_1[i] & (1<<j)) != 0) {\n            la1tokens[32+j] = true;\n          }\n          if ((jj_la1_2[i] & (1<<j)) != 0) {\n            la1tokens[64+j] = true;\n          }\n          if ((jj_la1_3[i] & (1<<j)) != 0) {\n            la1tokens[96+j] = true;\n          }\n        }\n      }\n    }\n    for (int i = 0; i < 123; i++) {\n      if (la1tokens[i]) {\n        jj_expentry = new int[1];\n        jj_expentry[0] = i;\n        jj_expentries.addElement(jj_expentry);\n      }\n    }\n    jj_endpos = 0;\n    jj_rescan_token();\n    jj_add_error_token(0, 0);\n    int[][] exptokseq = new int[jj_expentries.size()][];\n    for (int i = 0; i < jj_expentries.size(); i++) {\n      exptokseq[i] = (int[])jj_expentries.elementAt(i);\n    }\n    return new ParseException(token, exptokseq, tokenImage);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "LOOP", "IF", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [0, 12], [0, 13], [4, 14], [5, 15], [6, 16], [7, 17], [0, 18], [10, 19], [11, 20], [11, 21], [13, 22], [4, 23], [14, 24], [5, 25], [15, 26], [16, 27], [17, 28], [2, 29], [2, 30], [3, 31], [4, 32], [25, 33], [5, 34], [6, 35], [6, 36], [7, 37], [7, 38], [8, 39], [25, 40], [35, 41], [36, 42], [37, 43], [29, 44], [23, 45], [23, 46], [23, 47], [40, 48], [40, 49], [40, 50], [40, 51], [40, 52], [48, 53], [47, 54], [49, 55], [50, 56], [51, 57], [52, 58], [40, 59], [46, 60], [55, 61], [55, 62], [56, 63], [56, 64], [57, 65], [57, 66], [58, 67], [58, 68], [49, 69], [62, 70], [50, 71], [64, 72], [51, 73], [66, 74], [52, 75], [68, 76], [69, 77], [70, 78], [71, 79], [72, 80], [73, 81], [74, 82], [75, 83], [76, 84], [69, 85], [71, 86], [73, 87], [85, 88], [86, 89], [87, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 0], [13, 0], [14, 4], [15, 5], [16, 6], [17, 7], [18, 0], [19, 10], [20, 11], [21, 11], [22, 13], [23, 4], [24, 14], [25, 5], [26, 15], [27, 16], [28, 17], [29, 2], [30, 2], [31, 3], [32, 4], [33, 25], [34, 5], [35, 6], [36, 6], [37, 7], [38, 7], [39, 8], [40, 25], [41, 35], [42, 36], [43, 37], [44, 29], [45, 23], [46, 23], [47, 23], [48, 40], [49, 40], [50, 40], [51, 40], [52, 40], [53, 48], [54, 47], [55, 49], [56, 50], [57, 51], [58, 52], [59, 40], [60, 46], [61, 55], [62, 55], [63, 56], [64, 56], [65, 57], [66, 57], [67, 58], [68, 58], [69, 49], [70, 62], [71, 50], [72, 64], [73, 51], [74, 66], [75, 52], [76, 68], [77, 69], [78, 70], [79, 71], [80, 72], [81, 73], [82, 74], [83, 75], [84, 76], [85, 69], [86, 71], [87, 73], [88, 85], [89, 86], [90, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "enable_tracing", "code": "  final public void enable_tracing() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "disable_tracing", "code": "  final public void disable_tracing() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "jj_rescan_token", "code": "  final private void jj_rescan_token() {\n    jj_rescan = true;\n    for (int i = 0; i < 27; i++) {\n      JJCalls p = jj_2_rtns[i];\n      do {\n        if (p.gen > jj_gen) {\n          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;\n          switch (i) {\n            case 0: jj_3_1(); break;\n            case 1: jj_3_2(); break;\n            case 2: jj_3_3(); break;\n            case 3: jj_3_4(); break;\n            case 4: jj_3_5(); break;\n            case 5: jj_3_6(); break;\n            case 6: jj_3_7(); break;\n            case 7: jj_3_8(); break;\n            case 8: jj_3_9(); break;\n            case 9: jj_3_10(); break;\n            case 10: jj_3_11(); break;\n            case 11: jj_3_12(); break;\n            case 12: jj_3_13(); break;\n            case 13: jj_3_14(); break;\n            case 14: jj_3_15(); break;\n            case 15: jj_3_16(); break;\n            case 16: jj_3_17(); break;\n            case 17: jj_3_18(); break;\n            case 18: jj_3_19(); break;\n            case 19: jj_3_20(); break;\n            case 20: jj_3_21(); break;\n            case 21: jj_3_22(); break;\n            case 22: jj_3_23(); break;\n            case 23: jj_3_24(); break;\n            case 24: jj_3_25(); break;\n            case 25: jj_3_26(); break;\n            case 26: jj_3_27(); break;\n          }\n        }\n        p = p.next;\n      } while (p != null);\n    }\n    jj_rescan = false;", "ast_nodes": ["FUNC_DECL", "LOOP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "SWITCH", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 6], [1, 7], [3, 8], [4, 9], [6, 10], [1, 11], [6, 12], [10, 13], [6, 14], [12, 15], [12, 16], [12, 17], [12, 18], [16, 19], [16, 20], [16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [16, 29], [16, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [16, 36], [16, 37], [16, 38], [16, 39], [16, 40], [16, 41], [16, 42], [16, 43], [16, 44], [16, 45], [16, 46], [16, 47], [16, 48], [16, 49], [16, 50], [16, 51], [16, 52], [16, 53], [16, 54], [16, 55], [16, 56], [16, 57], [16, 58], [16, 59], [16, 60], [16, 61], [16, 62], [16, 63], [16, 64], [16, 65], [16, 66], [16, 67], [16, 68], [16, 69], [16, 70], [16, 71], [16, 72], [17, 73], [16, 74], [16, 75], [16, 76], [16, 77], [16, 78], [16, 79], [16, 80], [16, 81], [16, 82], [16, 83], [16, 84], [16, 85], [16, 86], [16, 87], [16, 88], [16, 89], [16, 90], [16, 91], [16, 92], [16, 93], [16, 94], [16, 95], [16, 96], [16, 97], [16, 98], [16, 99], [16, 100], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 1], [7, 1], [8, 3], [9, 4], [10, 6], [11, 1], [12, 6], [13, 10], [14, 6], [15, 12], [16, 12], [17, 12], [18, 12], [19, 16], [20, 16], [21, 16], [22, 16], [23, 16], [24, 16], [25, 16], [26, 16], [27, 16], [28, 16], [29, 16], [30, 16], [31, 16], [32, 16], [33, 16], [34, 16], [35, 16], [36, 16], [37, 16], [38, 16], [39, 16], [40, 16], [41, 16], [42, 16], [43, 16], [44, 16], [45, 16], [46, 16], [47, 16], [48, 16], [49, 16], [50, 16], [51, 16], [52, 16], [53, 16], [54, 16], [55, 16], [56, 16], [57, 16], [58, 16], [59, 16], [60, 16], [61, 16], [62, 16], [63, 16], [64, 16], [65, 16], [66, 16], [67, 16], [68, 16], [69, 16], [70, 16], [71, 16], [72, 16], [73, 17], [74, 16], [75, 16], [76, 16], [77, 16], [78, 16], [79, 16], [80, 16], [81, 16], [82, 16], [83, 16], [84, 16], [85, 16], [86, 16], [87, 16], [88, 16], [89, 16], [90, 16], [91, 16], [92, 16], [93, 16], [94, 16], [95, 16], [96, 16], [97, 16], [98, 16], [99, 16], [100, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100]]}, {"function_name": "jj_save", "code": "  final private void jj_save(int index, int xla) {\n    JJCalls p = jj_2_rtns[index];\n    while (p.gen > jj_gen) {\n      if (p.next == null) { p = p.next = new JJCalls(); break; }\n      p = p.next;\n    }\n    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [7, 9], [1, 10], [9, 11], [1, 12], [10, 13], [10, 14], [13, 15], [10, 16], [16, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 7], [10, 1], [11, 9], [12, 1], [13, 10], [14, 10], [15, 13], [16, 10], [17, 16], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "Parser", "code": "  public Parser(java.io.InputStream stream) {\n    jj_input_stream = new ASCII_UCodeESC_CharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [5, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [1, 20], [12, 21], [2, 22], [18, 23], [18, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 5], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 1], [21, 12], [22, 2], [23, 18], [24, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "Parser", "code": "  public Parser(java.io.Reader stream) {\n    jj_input_stream = new ASCII_UCodeESC_CharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [5, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [1, 20], [12, 21], [2, 22], [18, 23], [18, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 5], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 1], [21, 12], [22, 2], [23, 18], [24, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "Parser", "code": "  public Parser(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 88; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [10, 16], [1, 17], [11, 18], [2, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [16, 10], [17, 1], [18, 11], [19, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 0}
{"sample_id": "ivy-2.0-3502", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/event/retrieve/RetrieveEvent.java", "language": "java", "name": "org.apache.ivy.core.event.retrieve.RetrieveEvent", "code": "public class RetrieveEvent extends IvyEvent {\n    private ModuleRevisionId mrid;\n    private RetrieveOptions options;\n\n    protected RetrieveEvent(String name, ModuleRevisionId mrid, \n            String[] confs, RetrieveOptions options) {\n        super(name);\n        this.mrid = mrid;\n        addMridAttributes(mrid);\n        addConfsAttribute(confs);\n        addAttribute(\"symlink\", String.valueOf(options.isMakeSymlinks()));\n        addAttribute(\"sync\", String.valueOf(options.isSync()));\n        this.options = options;\n    }\n\n    public ModuleRevisionId getModuleRevisionId() {\n        return mrid;\n    }\n    \n    public RetrieveOptions getOptions() {\n        return options;", "functions": [{"function_name": "getModuleRevisionId", "code": "    public ModuleRevisionId getModuleRevisionId() {\n        return mrid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOptions", "code": "    public RetrieveOptions getOptions() {\n        return options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RetrieveEvent", "code": "    protected RetrieveEvent(String name, ModuleRevisionId mrid, \n            String[] confs, RetrieveOptions options) {\n        super(name);\n        this.mrid = mrid;\n        addMridAttributes(mrid);\n        addConfsAttribute(confs);\n        addAttribute(\"symlink\", String.valueOf(options.isMakeSymlinks()));\n        addAttribute(\"sync\", String.valueOf(options.isSync()));\n        this.options = options;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [6, 12], [7, 13], [7, 14], [11, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 6], [13, 7], [14, 7], [15, 11], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "xalan-2.7-8009", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/CachedNodeListIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.CachedNodeListIterator", "code": "public final class CachedNodeListIterator extends DTMAxisIteratorBase {\n\n    /**\n     * Source for this iterator.\n     */\n    private DTMAxisIterator _source;\n    private IntegerArray _nodes = new IntegerArray();\n    private int _numCachedNodes = 0;\n    private int _index = 0;\n    private boolean _isEnded = false;\n\n    public CachedNodeListIterator(DTMAxisIterator source) {\n\t_source = source;\n    }\n\n    public void setRestartable(boolean isRestartable) {\n    }\n\n    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _startNode = node;\n\t    _source.setStartNode(node);\n\t    resetPosition();\n\t    \n\t    _isRestartable = false;\n\t}\n\treturn this;\n    }\n\n    public int next() {\n        return getNode(_index++);\n    }\n    \n    public int getPosition() {\n    \treturn _index == 0 ? 1 : _index;\n    }\n    \n    public int getNodeByPosition(int pos) {\n    \treturn getNode(pos);\n    }\n        \n    public int getNode(int index) {\n        if (index < _numCachedNodes) {\n            return _nodes.at(index);\n        }\n        else if (!_isEnded){\n            int node = _source.next();\n            if (node != END) {\n            \t_nodes.add(node);\n            \t_numCachedNodes++;\n            }\n            else {\n            \t_isEnded = true;\n            }\n            return node;\n        }\n        else\n            return END;\n    }\n\n    public DTMAxisIterator cloneIterator() {\n\tClonedNodeListIterator clone = new ClonedNodeListIterator(this);\n\treturn clone;\n    }\n\n    public DTMAxisIterator reset() {\n    \t_index = 0;\n    \treturn this;\n    }\n    \n    public void setMark() {\n\t_source.setMark();\n    }\n\n    public void gotoMark() {\n\t_source.gotoMark();", "functions": [{"function_name": "setRestartable", "code": "    public void setRestartable(boolean isRestartable) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _startNode = node;\n\t    _source.setStartNode(node);\n\t    resetPosition();\n\t    \n\t    _isRestartable = false;\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "next", "code": "    public int next() {\n        return getNode(_index++);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPosition", "code": "    public int getPosition() {\n    \treturn _index == 0 ? 1 : _index;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getNodeByPosition", "code": "    public int getNodeByPosition(int pos) {\n    \treturn getNode(pos);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNode", "code": "    public int getNode(int index) {\n        if (index < _numCachedNodes) {\n            return _nodes.at(index);\n        }\n        else if (!_isEnded){\n            int node = _source.next();\n            if (node != END) {\n            \t_nodes.add(node);\n            \t_numCachedNodes++;\n            }\n            else {\n            \t_isEnded = true;\n            }\n            return node;\n        }\n        else\n            return END;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "RETURN", "RETURN", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [3, 7], [3, 8], [3, 9], [6, 10], [8, 11], [9, 12], [8, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 3], [8, 3], [9, 3], [10, 6], [11, 8], [12, 9], [13, 8], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "cloneIterator", "code": "    public DTMAxisIterator cloneIterator() {\n\tClonedNodeListIterator clone = new ClonedNodeListIterator(this);\n\treturn clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n    \t_index = 0;\n    \treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_source.setMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_source.gotoMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "CachedNodeListIterator", "code": "    public CachedNodeListIterator(DTMAxisIterator source) {\n\t_source = source;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7599", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/functions/Function3Args.java", "language": "java", "name": "org.apache.xpath.functions.Function3Args", "code": "public class Function3Args extends Function2Args\n{\n\n  /** The third argument passed to the function (at index 2).\n   *  @serial  */\n  Expression m_arg2;\n\n  /**\n   * Return the third argument passed to the function (at index 2).\n   *\n   * @return An expression that represents the third argument passed to the \n   *         function.\n   */\n  public Expression getArg2()\n  {\n    return m_arg2;\n  }\n  \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n    if(null != m_arg2)\n      m_arg2.fixupVariables(vars, globalsSize);\n  }\n\n  /**\n   * Set an argument expression for a function.  This method is called by the \n   * XPath compiler.\n   *\n   * @param arg non-null expression that represents the argument.\n   * @param argNum The argument number index.\n   *\n   * @throws WrongNumberArgsException If the argNum parameter is greater than 2.\n   */\n  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n\n    if (argNum < 2)\n      super.setArg(arg, argNum);\n    else if (2 == argNum)\n    {\n      m_arg2 = arg;\n      arg.exprSetParent(this);\n    }\n    else\n\t\t  reportWrongNumberArgs();\n  }\n\n  /**\n   * Check that the number of arguments passed to this function is correct. \n   *\n   *\n   * @param argNum The number of arguments that is being passed to the function.\n   *\n   * @throws WrongNumberArgsException\n   */\n  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum != 3)\n      reportWrongNumberArgs();\n  }\n\n  /**\n   * Constructs and throws a WrongNumberArgException with the appropriate\n   * message for this function object.\n   *\n   * @throws WrongNumberArgsException\n   */\n  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n      throw new WrongNumberArgsException(XSLMessages.createXPATHMessage(\"three\", null));\n  }\n  \n  /**\n   * Tell if this expression or it's subexpressions can traverse outside \n   * the current subtree.\n   * \n   * @return true if traversal outside the context node's subtree can occur.\n   */\n   public boolean canTraverseOutsideSubtree()\n   {\n    return super.canTraverseOutsideSubtree() \n    ? true : m_arg2.canTraverseOutsideSubtree();\n   }\n   \n  class Arg2Owner implements ExpressionOwner\n  {\n    /**\n     * @see ExpressionOwner#getExpression()\n     */\n    public Expression getExpression()\n    {\n      return m_arg2;\n    }\n\n\n    /**\n     * @see ExpressionOwner#setExpression(Expression)\n     */\n    public void setExpression(Expression exp)\n    {\n    \texp.exprSetParent(Function3Args.this);\n    \tm_arg2 = exp;\n    }\n  }\n\n   \n  /**\n   * @see XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callArgVisitors(XPathVisitor visitor)\n  {\n  \tsuper.callArgVisitors(visitor);\n  \tif(null != m_arg2)\n  \t\tm_arg2.callVisitors(new Arg2Owner(), visitor);\n  }\n\n  /**\n   * @see Expression#deepEquals(Expression)\n   */\n  public boolean deepEquals(Expression expr)\n  {\n  \tif(!super.deepEquals(expr))\n  \t\treturn false;\n  \t\t\n  \tif(null != m_arg2)\n  \t{\n  \t\tif(null == ((Function3Args)expr).m_arg2)\n  \t\t\treturn false;\n\n  \t\tif(!m_arg2.deepEquals(((Function3Args)expr).m_arg2))\n  \t\t\treturn false;\n  \t}\n  \telse if (null != ((Function3Args)expr).m_arg2)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "functions": [{"function_name": "getArg2", "code": "  public Expression getArg2()\n  {\n    return m_arg2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n    if(null != m_arg2)\n      m_arg2.fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setArg", "code": "  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n\n    if (argNum < 2)\n      super.setArg(arg, argNum);\n    else if (2 == argNum)\n    {\n      m_arg2 = arg;\n      arg.exprSetParent(this);\n    }\n    else\n\t\t  reportWrongNumberArgs();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [4, 8], [6, 9], [4, 10], [4, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 4], [9, 6], [10, 4], [11, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "checkNumberArgs", "code": "  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if (argNum != 3)\n      reportWrongNumberArgs();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "reportWrongNumberArgs", "code": "  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n      throw new WrongNumberArgsException(XSLMessages.createXPATHMessage(\"three\", null));", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "canTraverseOutsideSubtree", "code": "   public boolean canTraverseOutsideSubtree()\n   {\n    return super.canTraverseOutsideSubtree() \n    ? true : m_arg2.canTraverseOutsideSubtree();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "callArgVisitors", "code": "  public void callArgVisitors(XPathVisitor visitor)\n  {\n  \tsuper.callArgVisitors(visitor);\n  \tif(null != m_arg2)\n  \t\tm_arg2.callVisitors(new Arg2Owner(), visitor);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "deepEquals", "code": "  public boolean deepEquals(Expression expr)\n  {\n  \tif(!super.deepEquals(expr))\n  \t\treturn false;\n  \t\t\n  \tif(null != m_arg2)\n  \t{\n  \t\tif(null == ((Function3Args)expr).m_arg2)\n  \t\t\treturn false;\n\n  \t\tif(!m_arg2.deepEquals(((Function3Args)expr).m_arg2))\n  \t\t\treturn false;\n  \t}\n  \telse if (null != ((Function3Args)expr).m_arg2)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [6, 9], [6, 10], [2, 11], [2, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [11, 18], [12, 19], [12, 20], [17, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 6], [10, 6], [11, 2], [12, 2], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 11], [19, 12], [20, 12], [21, 17], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}], "label": 1}
{"sample_id": "jedit-4.3-4867", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/buffer/BufferChangeListener.java", "language": "java", "name": "org.gjt.sp.jedit.buffer.BufferChangeListener", "code": "public interface BufferChangeListener\n{\n\t//{{{ foldLevelChanged() method\n\t/**\n\t * Called when line fold levels change.\n\t * @param buffer The buffer in question\n\t * @param startLine The start line number\n\t * @param endLine The end line number\n\t * @since jEdit 4.0pre1\n\t */\n\tvoid foldLevelChanged(Buffer buffer, int startLine, int endLine);\n\t//}}}\n\n\t//{{{ contentInserted() method\n\t/**\n\t * Called when text is inserted into the buffer.\n\t * @param buffer The buffer in question\n\t * @param startLine The first line\n\t * @param offset The start offset, from the beginning of the buffer\n\t * @param numLines The number of lines inserted\n\t * @param length The number of characters inserted\n\t * @since jEdit 4.0pre1\n\t */\n\tvoid contentInserted(Buffer buffer, int startLine, int offset,\n\t\tint numLines, int length);\n\t//}}}\n\n\t//{{{ contentRemoved() method\n\t/**\n\t * Called when text is removed from the buffer.\n\t * @param buffer The buffer in question\n\t * @param startLine The first line\n\t * @param offset The start offset, from the beginning of the buffer\n\t * @param numLines The number of lines removed\n\t * @param length The number of characters removed\n\t * @since jEdit 4.0pre1\n\t */\n\tvoid contentRemoved(Buffer buffer, int startLine, int offset,\n\t\tint numLines, int length);\n\t//}}}\n\n\t//{{{ preContentRemoved() method\n\t/**\n\t * Called when text is about to be removed from the buffer, but is\n\t * still present.\n\t * @param buffer The buffer in question\n\t * @param startLine The first line\n\t * @param offset The start offset, from the beginning of the buffer\n\t * @param numLines The number of lines to be removed\n\t * @param length The number of characters to be removed\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void preContentRemoved(Buffer buffer, int startLine, int offset,\n\t\tint numLines, int length);\n\t//}}}\n\n\t//{{{ transactionComplete() method\n\t/**\n\t * Called after an undo or compound edit has finished. The text area\n\t * uses this event to queue up and collapse cleanup operations so they\n\t * are only run once during a long transaction (such as a \"Replace All\"\n\t * operation.)\n\t *\n\t * @param buffer The buffer in question\n\t * @since jEdit 4.0pre6\n\t */\n\tvoid transactionComplete(Buffer buffer);\n\t//}}}\n\n\t//{{{ foldHandlerChanged() method\n\t/**\n\t * Called to notify the text area that folds need to be collapsed if\n\t * the \"collapseFolds\" property is set. This method is called after the\n\t * buffer has been loaded, and also if the user changes the fold\n\t * handler.\n\t *\n\t * @param buffer The buffer in question\n\t * @since jEdit 4.2pre2\n\t */\n\tvoid foldHandlerChanged(Buffer buffer);\n\t//}}}\n\n\t//{{{ foldHandlerChanged() method\n\t/**\n\t * Called to notify the text area that the buffer has been reloaded.\n\t *\n\t * @param buffer The buffer in question\n\t * @since jEdit 4.3pre1\n\t */\n\tvoid bufferLoaded(Buffer buffer);\n\t//}}}\n\t\n\t//{{{ Compatibility with older jEdit plugins\n\tpublic class Adapter implements BufferListener\n\t{\n\t\tprivate BufferChangeListener delegate;\n\n\t\t//{{{ Adapter constructor\n\t\tpublic Adapter(BufferChangeListener delegate)\n\t\t{\n\t\t\tthis.delegate = delegate;\n\t\t} //}}}\n\t\n\t\t//{{{ getDelegate() method\n\t\tpublic BufferChangeListener getDelegate()\n\t\t{\n\t\t\treturn delegate;\n\t\t} //}}}\n\n\t\t//{{{ foldLevelChanged() method\n\t\t/**\n\t\t * Called when line fold levels change.\n\t\t * @param buffer The buffer in question\n\t\t * @param startLine The start line number\n\t\t * @param endLine The end line number\n\t\t * @since jEdit 4.3pre3\n\t\t */\n\t\tpublic void foldLevelChanged(JEditBuffer buffer, int startLine, int endLine)\n\t\t{\n\t\t\tdelegate.foldLevelChanged((Buffer)buffer,startLine,endLine);\n\t\t} //}}}\n\t\n\t\t//{{{ contentInserted() method\n\t\t/**\n\t\t * Called when text is inserted into the buffer.\n\t\t * @param buffer The buffer in question\n\t\t * @param startLine The first line\n\t\t * @param offset The start offset, from the beginning of the buffer\n\t\t * @param numLines The number of lines inserted\n\t\t * @param length The number of characters inserted\n\t\t * @since jEdit 4.3pre3\n\t\t */\n\t\tpublic void contentInserted(JEditBuffer buffer, int startLine, int offset,\n\t\t\tint numLines, int length)\n\t\t{\n\t\t\tdelegate.contentInserted((Buffer)buffer,startLine,offset,numLines,length);\n\t\t} //}}}\n\t\n\t\t//{{{ contentRemoved() method\n\t\t/**\n\t\t * Called when text is removed from the buffer.\n\t\t * @param buffer The buffer in question\n\t\t * @param startLine The first line\n\t\t * @param offset The start offset, from the beginning of the buffer\n\t\t * @param numLines The number of lines removed\n\t\t * @param length The number of characters removed\n\t\t * @since jEdit 4.3pre3\n\t\t */\n\t\tpublic void contentRemoved(JEditBuffer buffer, int startLine, int offset,\n\t\t\tint numLines, int length)\n\t\t{\n\t\t\tdelegate.contentRemoved((Buffer)buffer,startLine,offset,numLines,length);\n\t\t} //}}}\n\n\t\t/**\n\t\t * Called when text is about to be inserted in the buffer.\n\t\t *\n\t\t * @param buffer    The buffer in question\n\t\t * @param startLine The first line\n\t\t * @param offset    The start offset, from the beginning of the buffer\n\t\t * @param numLines  The number of lines inserted\n\t\t * @param length    The number of characters inserted\n\t\t * @since jEdit 4.3pre11\n\t\t */\n\t\tpublic void preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)\n\t\t{\n\t\t}\n\n\t\t//{{{ preContentRemoved() method\n\t\t/**\n\t\t * Called when text is about to be removed from the buffer, but is\n\t\t * still present.\n\t\t * @param buffer The buffer in question\n\t\t * @param startLine The first line\n\t\t * @param offset The start offset, from the beginning of the buffer\n\t\t * @param numLines The number of lines to be removed\n\t\t * @param length The number of characters to be removed\n\t\t * @since jEdit 4.3pre3\n\t\t */\n\t\tpublic void preContentRemoved(JEditBuffer buffer, int startLine, int offset,\n\t\t\tint numLines, int length)\n\t\t{\n\t\t\tdelegate.preContentRemoved((Buffer)buffer,startLine,offset,numLines,length);\n\t\t} //}}}\n\t\n\t\t//{{{ transactionComplete() method\n\t\t/**\n\t\t * Called after an undo or compound edit has finished. The text area\n\t\t * uses this event to queue up and collapse cleanup operations so they\n\t\t * are only run once during a long transaction (such as a \"Replace All\"\n\t\t * operation.)\n\t\t *\n\t\t * @param buffer The buffer in question\n\t\t * @since jEdit 4.3pre3\n\t\t */\n\t\tpublic void transactionComplete(JEditBuffer buffer)\n\t\t{\n\t\t\tdelegate.transactionComplete((Buffer)buffer);\n\t\t} //}}}\n\t\n\t\t//{{{ foldHandlerChanged() method\n\t\t/**\n\t\t * Called to notify the text area that folds need to be collapsed if\n\t\t * the \"collapseFolds\" property is set. This method is called after the\n\t\t * buffer has been loaded, and also if the user changes the fold\n\t\t * handler.\n\t\t *\n\t\t * @param buffer The buffer in question\n\t\t * @since jEdit 4.3pre3\n\t\t */\n\t\tpublic void foldHandlerChanged(JEditBuffer buffer)\n\t\t{\n\t\t\tdelegate.foldHandlerChanged((Buffer)buffer);\n\t\t} //}}}\n\t\n\t\t//{{{ foldHandlerChanged() method\n\t\t/**\n\t\t * Called to notify the text area that the buffer has been reloaded.\n\t\t *\n\t\t * @param buffer The buffer in question\n\t\t * @since jEdit 4.3pre3\n\t\t */\n\t\tpublic void bufferLoaded(JEditBuffer buffer)\n\t\t{\n\t\t\tdelegate.bufferLoaded((Buffer)buffer);", "functions": [{"function_name": "foldLevelChanged", "code": "\tvoid foldLevelChanged(Buffer buffer, int startLine, int endLine);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "contentInserted", "code": "\tvoid contentInserted(Buffer buffer, int startLine, int offset,\n\t\tint numLines, int length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "contentRemoved", "code": "\tvoid contentRemoved(Buffer buffer, int startLine, int offset,\n\t\tint numLines, int length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "preContentRemoved", "code": "\tpublic void preContentRemoved(Buffer buffer, int startLine, int offset,\n\t\tint numLines, int length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "transactionComplete", "code": "\tvoid transactionComplete(Buffer buffer);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "foldHandlerChanged", "code": "\tvoid foldHandlerChanged(Buffer buffer);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "bufferLoaded", "code": "\tvoid bufferLoaded(Buffer buffer);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8508", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/transformer/MsgMgr.java", "language": "java", "name": "org.apache.xalan.transformer.MsgMgr", "code": "public class MsgMgr\n{\n\n  /**\n   * Create a message manager object.\n   *\n   * @param transformer non transformer instance\n   */\n  public MsgMgr(TransformerImpl transformer)\n  {\n    m_transformer = transformer;\n  }\n\n  /** Transformer instance          */\n  private TransformerImpl m_transformer;\n\n  /**\n   * Warn the user of a problem.\n   * This is public for access by extensions.\n   *\n   * @param msg The message text to issue\n   * @param terminate Flag indicating whether to terminate this process\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   */\n  public void message(SourceLocator srcLctr, String msg, boolean terminate) throws TransformerException\n  {\n\n    ErrorListener errHandler = m_transformer.getErrorListener();\n\n    if (null != errHandler)\n    {\n      errHandler.warning(new TransformerException(msg, srcLctr));\n    }\n    else\n    {\n      if (terminate)\n        throw new TransformerException(msg, srcLctr);\n      else\n        System.out.println(msg);\n    }\n  }\n\n  /**\n   * Warn the user of a problem.\n   *\n   * @param msg Message text to issue\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   * @xsl.usage internal\n   */\n  public void warn(SourceLocator srcLctr, String msg) throws TransformerException\n  {\n    warn(srcLctr, null, null, msg, null);\n  }\n\n  /**\n   * Warn the user of a problem.\n   *\n   * @param msg Message text to issue\n   * @param args Arguments to pass to the message\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   * @xsl.usage internal\n   */\n  public void warn(SourceLocator srcLctr, String msg, Object[] args) throws TransformerException\n  {\n    warn(srcLctr, null, null, msg, args);\n  }\n\n  /**\n   * Warn the user of a problem.\n   *\n   * \n   * @param styleNode Stylesheet node\n   * @param sourceNode Source tree node\n   * @param msg Message text to issue\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   * @xsl.usage internal\n   */\n  public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg)\n          throws TransformerException\n  {\n    warn(srcLctr, styleNode, sourceNode, msg, null);\n  }\n\n  /**\n   * Warn the user of a problem.\n   *\n   * @param styleNode Stylesheet node\n   * @param sourceNode Source tree node\n   * @param msg Message text to issue\n   * @param args Arguments to pass to the message\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   * @xsl.usage internal\n   */\n  public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg, Object args[])\n          throws TransformerException\n  {\n\n    String formattedMsg = XSLMessages.createWarning(msg, args);\n    ErrorListener errHandler = m_transformer.getErrorListener();\n\n    if (null != errHandler)\n      errHandler.warning(new TransformerException(formattedMsg, srcLctr));\n    else\n      System.out.println(formattedMsg);\n  }\n\n  /* This method is not properly i18nized. We need to use the following method\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg Message text to issue\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   *\n  public void error(SourceLocator srcLctr, String msg) throws TransformerException\n  {\n\n    ErrorListener errHandler = m_transformer.getErrorListener();\n\n    if (null != errHandler)\n      errHandler.fatalError(new TransformerException(msg, srcLctr));\n    else\n      throw new TransformerException(msg, srcLctr);\n  }\n\n * @xsl.usage internal\n */\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg Message text to issue\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   * @xsl.usage internal\n   */\n  public void error(SourceLocator srcLctr, String msg) throws TransformerException\n  {\n    error(srcLctr, null, null, msg, null);\n  }\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg Message text to issue\n   * @param args Arguments to be passed to the message \n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   * @xsl.usage internal\n   */\n  public void error(SourceLocator srcLctr, String msg, Object[] args) throws TransformerException\n  {\n    error(srcLctr, null, null, msg, args);\n  }\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg Message text to issue\n   * @param e Exception to throw\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   * @xsl.usage internal\n   */\n  public void error(SourceLocator srcLctr, String msg, Exception e) throws TransformerException\n  {\n    error(srcLctr, msg, null, e);\n  }\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg Message text to issue\n   * @param args Arguments to use in message\n   * @param e Exception to throw\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   * @xsl.usage internal\n   */\n  public void error(SourceLocator srcLctr, String msg, Object args[], Exception e) throws TransformerException\n  {\n\n    String formattedMsg = XSLMessages.createMessage(msg, args);\n\n    ErrorListener errHandler = m_transformer.getErrorListener();\n\n    if (null != errHandler)\n      errHandler.fatalError(new TransformerException(formattedMsg, srcLctr));\n    else\n      throw new TransformerException(formattedMsg, srcLctr);\n  }\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param styleNode Stylesheet node\n   * @param sourceNode Source tree node\n   * @param msg Message text to issue\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   * @xsl.usage internal\n   */\n  public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg)\n          throws TransformerException\n  {\n    error(srcLctr, styleNode, sourceNode, msg, null);\n  }\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param styleNode Stylesheet node\n   * @param sourceNode Source tree node\n   * @param msg Message text to issue\n   * @param args Arguments to use in message\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws TransformerException\n   * @xsl.usage internal\n   */\n  public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg, Object args[])\n          throws TransformerException\n  {\n\n    String formattedMsg = XSLMessages.createMessage(msg, args);\n\n    ErrorListener errHandler = m_transformer.getErrorListener();\n\n    if (null != errHandler)\n      errHandler.fatalError(new TransformerException(formattedMsg, srcLctr));\n    else\n      throw new TransformerException(formattedMsg, srcLctr);", "functions": [{"function_name": "message", "code": "  public void message(SourceLocator srcLctr, String msg, boolean terminate) throws TransformerException\n  {\n\n    ErrorListener errHandler = m_transformer.getErrorListener();\n\n    if (null != errHandler)\n    {\n      errHandler.warning(new TransformerException(msg, srcLctr));\n    }\n    else\n    {\n      if (terminate)\n        throw new TransformerException(msg, srcLctr);\n      else\n        System.out.println(msg);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [2, 9], [7, 10], [1, 11], [7, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 2], [10, 7], [11, 1], [12, 7], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "warn", "code": "  public void warn(SourceLocator srcLctr, String msg) throws TransformerException\n  {\n    warn(srcLctr, null, null, msg, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "warn", "code": "  public void warn(SourceLocator srcLctr, String msg, Object[] args) throws TransformerException\n  {\n    warn(srcLctr, null, null, msg, args);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "warn", "code": "  public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg)\n          throws TransformerException\n  {\n    warn(srcLctr, styleNode, sourceNode, msg, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "warn", "code": "  public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg, Object args[])\n          throws TransformerException\n  {\n\n    String formattedMsg = XSLMessages.createWarning(msg, args);\n    ErrorListener errHandler = m_transformer.getErrorListener();\n\n    if (null != errHandler)\n      errHandler.warning(new TransformerException(formattedMsg, srcLctr));\n    else\n      System.out.println(formattedMsg);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [9, 12], [2, 13], [3, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 9], [13, 2], [14, 3], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "error", "code": "  public void error(SourceLocator srcLctr, String msg) throws TransformerException\n  {\n    error(srcLctr, null, null, msg, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "error", "code": "  public void error(SourceLocator srcLctr, String msg, Object[] args) throws TransformerException\n  {\n    error(srcLctr, null, null, msg, args);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "error", "code": "  public void error(SourceLocator srcLctr, String msg, Exception e) throws TransformerException\n  {\n    error(srcLctr, msg, null, e);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "error", "code": "  public void error(SourceLocator srcLctr, String msg, Object args[], Exception e) throws TransformerException\n  {\n\n    String formattedMsg = XSLMessages.createMessage(msg, args);\n\n    ErrorListener errHandler = m_transformer.getErrorListener();\n\n    if (null != errHandler)\n      errHandler.fatalError(new TransformerException(formattedMsg, srcLctr));\n    else\n      throw new TransformerException(formattedMsg, srcLctr);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [1, 11], [9, 12], [2, 13], [3, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 1], [12, 9], [13, 2], [14, 3], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "error", "code": "  public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg)\n          throws TransformerException\n  {\n    error(srcLctr, styleNode, sourceNode, msg, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "error", "code": "  public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg, Object args[])\n          throws TransformerException\n  {\n\n    String formattedMsg = XSLMessages.createMessage(msg, args);\n\n    ErrorListener errHandler = m_transformer.getErrorListener();\n\n    if (null != errHandler)\n      errHandler.fatalError(new TransformerException(formattedMsg, srcLctr));\n    else\n      throw new TransformerException(formattedMsg, srcLctr);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [9, 11], [1, 12], [10, 13], [2, 14], [3, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 9], [12, 1], [13, 10], [14, 2], [15, 3], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "MsgMgr", "code": "  public MsgMgr(TransformerImpl transformer)\n  {\n    m_transformer = transformer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-2.5-5859", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/formula/OperationPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.OperationPtg", "code": "public abstract class OperationPtg extends Ptg\n{\n    public final static int TYPE_UNARY    = 0;\n    public final static int TYPE_BINARY   = 1;\n    public final static int TYPE_FUNCTION = 2;\n\n    public abstract int getType();\n    \n    /**\n     *  returns a string representation of the operations\n     *  the length of the input array should equal the number returned by \n     *  @see #getNumberOfOperands\n     *  \n     */\n    public abstract String toFormulaString(String[] operands);\n    \n    /**\n     * The number of operands expected by the operations\n     */\n    public abstract int getNumberOfOperands();\n    \n    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "functions": [{"function_name": "getType", "code": "    public abstract int getType();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "toFormulaString", "code": "    public abstract String toFormulaString(String[] operands);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfOperands", "code": "    public abstract int getNumberOfOperands();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.4-191", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/Main.java", "language": "java", "name": "org.apache.tools.ant.Main", "code": "public class Main {\n\n    /** The default build file name */\n    public static final String DEFAULT_BUILD_FILENAME = \"build.xml\";\n\n    /** Our current message output status. Follows Project.MSG_XXX */\n    private int msgOutputLevel = Project.MSG_INFO;\n\n    /** File that we are using for configuration */\n    private File buildFile; /** null */\n\n    /** Stream that we are using for logging */\n    private PrintStream out = System.out;\n\n    /** Stream that we are using for logging error messages */\n    private PrintStream err = System.err;\n\n    /** The build targets */\n    private Vector targets = new Vector(5);\n\n    /** Set of properties that can be used by tasks */\n    private Properties definedProps = new Properties();\n\n    /** Names of classes to add as listeners to project */\n    private Vector listeners = new Vector(5);\n\n    /**\n     * The Ant logger class. There may be only one logger. It will have the\n     * right to use the 'out' PrintStream. The class must implements the BuildLogger\n     * interface\n     */\n    private String loggerClassname = null;\n\n    /**\n     * Indicates whether output to the log is to be unadorned.\n     */\n    private boolean emacsMode = false;\n\n    /**\n     * Indicates if this ant should be run.\n     */\n    private boolean readyToRun = false;\n\n    /**\n     * Indicates we should only parse and display the project help information\n     */\n    private boolean projectHelp = false;\n\n    /**\n     * Prints the message of the Throwable if it's not null.\n     */\n    private static void printMessage(Throwable t) {\n        String message = t.getMessage();\n        if (message != null) {\n            System.err.println(message);\n        }\n    }\n\n    /**\n     * Entry point allowing for more options from other front ends\n     */\n    public static void start(String[] args, Properties additionalUserProperties,\n                             ClassLoader coreLoader) {\n        Main m = null;\n\n        try {\n            m = new Main(args);\n        } catch(Throwable exc) {\n            printMessage(exc);\n            System.exit(1);\n        }\n\n        if (additionalUserProperties != null) {\n            for (Enumeration e = additionalUserProperties.keys(); e.hasMoreElements(); ) {\n                String key = (String) e.nextElement();\n                String property = additionalUserProperties.getProperty(key);\n                m.definedProps.put(key, property);\n            }\n        }\n        \n        try {\n            m.runBuild(coreLoader);\n            System.exit(0);\n        } catch (BuildException be) {\n            if (m.err != System.err) {\n                printMessage(be);\n            }\n            System.exit(1);\n        } catch(Throwable exc) {\n            printMessage(exc);\n            System.exit(1);\n        }\n    }\n                                 \n    \n    \n    /**\n     * Command line entry point. This method kicks off the building\n     * of a project object and executes a build using either a given\n     * target or the default target.\n     *\n     * @param args Command line args.\n     */\n    public static void main(String[] args) {\n        start(args, null, null);\n    }\n\n    protected Main(String[] args) throws BuildException {\n\n        String searchForThis = null;\n\n\n        for (int i = 0; i < args.length; i++) {\n            String arg = args[i];\n\n            if (arg.equals(\"-help\")) {\n                printUsage();\n                return;\n            } else if (arg.equals(\"-version\")) {\n                printVersion();\n                return;\n            } else if (arg.equals(\"-quiet\") || arg.equals(\"-q\")) {\n                msgOutputLevel = Project.MSG_WARN;\n            } else if (arg.equals(\"-verbose\") || arg.equals(\"-v\")) {\n                printVersion();\n                msgOutputLevel = Project.MSG_VERBOSE;\n            } else if (arg.equals(\"-debug\")) {\n                printVersion();\n                msgOutputLevel = Project.MSG_DEBUG;\n            } else if (arg.equals(\"-logfile\") || arg.equals(\"-l\")) {\n                try {\n                    File logFile = new File(args[i+1]);\n                    i++;\n                    out = new PrintStream(new FileOutputStream(logFile));\n                    err = out;\n                    System.setOut(out);\n                    System.setErr(out);\n                } catch (IOException ioe) {\n                    String msg = \"Cannot write on the specified log file. \" +\n                        \"Make sure the path exists and you have write permissions.\";\n                    System.out.println(msg);\n                    return;\n                } catch (ArrayIndexOutOfBoundsException aioobe) {\n                    String msg = \"You must specify a log file when \" +\n                        \"using the -log argument\";\n                    System.out.println(msg);\n                    return;\n                }\n            } else if (arg.equals(\"-buildfile\") || arg.equals(\"-file\") || arg.equals(\"-f\")) {\n                try {\n                    buildFile = new File(args[i+1]);\n                    i++;\n                } catch (ArrayIndexOutOfBoundsException aioobe) {\n                    String msg = \"You must specify a buildfile when \" +\n                        \"using the -buildfile argument\";\n                    System.out.println(msg);\n                    return;\n                }\n            } else if (arg.equals(\"-listener\")) {\n                try {\n                    listeners.addElement(args[i+1]);\n                    i++;\n                } catch (ArrayIndexOutOfBoundsException aioobe) {\n                    String msg = \"You must specify a classname when \" +\n                        \"using the -listener argument\";\n                    System.out.println(msg);\n                    return;\n                }\n            } else if (arg.startsWith(\"-D\")) {\n\n                /* Interestingly enough, we get to here when a user\n                 * uses -Dname=value. However, in some cases, the JDK\n                 * goes ahead * and parses this out to args\n                 *   {\"-Dname\", \"value\"}\n                 * so instead of parsing on \"=\", we just make the \"-D\"\n                 * characters go away and skip one argument forward.\n                 *\n                 * I don't know how to predict when the JDK is going\n                 * to help or not, so we simply look for the equals sign.\n                 */\n\n                String name = arg.substring(2, arg.length());\n                String value = null;\n                int posEq = name.indexOf(\"=\");\n                if (posEq > 0) {\n                    value = name.substring(posEq+1);\n                    name = name.substring(0, posEq);\n                } else if (i < args.length-1)\n                    value = args[++i];\n\n                definedProps.put(name, value);\n            } else if (arg.equals(\"-logger\")) {\n                if (loggerClassname != null) {\n                    System.out.println(\"Only one logger class may be specified.\");\n                    return;\n                }\n                try {\n                    loggerClassname = args[++i];\n                } \n                catch (ArrayIndexOutOfBoundsException aioobe) {\n                    System.out.println(\"You must specify a classname when \" +\n                                       \"using the -logger argument\");\n                    return;\n                }\n            } else if (arg.equals(\"-emacs\")) {\n                emacsMode = true;\n            } else if (arg.equals(\"-projecthelp\")) {\n                projectHelp = true;\n            } else if (arg.equals(\"-find\")) {\n                if (i < args.length-1) {\n                    searchForThis = args[++i];\n                } else {\n                    searchForThis = DEFAULT_BUILD_FILENAME;\n                }\n            } else if (arg.startsWith(\"-\")) {\n                String msg = \"Unknown argument: \" + arg;\n                System.out.println(msg);\n                printUsage();\n                return;\n            } else {\n                targets.addElement(arg);\n            }\n\n        }\n\n        if (buildFile == null) {\n            if (searchForThis != null) {\n                buildFile = findBuildFile(System.getProperty(\"user.dir\"), \n                                          searchForThis);\n            } else {\n                buildFile = new File(DEFAULT_BUILD_FILENAME);\n            }\n        }\n\n        if (!buildFile.exists()) {\n            System.out.println(\"Buildfile: \" + buildFile + \" does not exist!\");\n            throw new BuildException(\"Build failed\");\n        }\n\n\n        if (buildFile.isDirectory()) {\n            System.out.println(\"What? Buildfile: \" + buildFile + \" is a dir!\");\n            throw new BuildException(\"Build failed\");\n        }\n\n        readyToRun = true;\n    }\n\n    /**\n     * Helper to get the parent file for a given file.\n     *\n     * <P>Added to simulate File.getParentFile() from JDK 1.2.\n     *\n     * @param file   File\n     * @return       Parent file or null if none\n     */\n    private File getParentFile(File file) {\n        String filename = file.getAbsolutePath();\n        file = new File(filename);\n        filename = file.getParent();\n\n        if (filename != null && msgOutputLevel >= Project.MSG_VERBOSE) {\n            System.out.println(\"Searching in \"+filename);\n        }\n\n        return (filename == null) ? null : new File(filename);\n    }\n\n    /**\n     * Search parent directories for the build file.\n     *\n     * <P>Takes the given target as a suffix to append to each\n     *    parent directory in seach of a build file.  Once the\n     *    root of the file-system has been reached an exception\n     *    is thrown.\n     *\n     * @param suffix    Suffix filename to look for in parents.\n     * @return          A handle to the build file\n     *\n     * @exception BuildException    Failed to locate a build file\n     */\n    private File findBuildFile(String start, String suffix) throws BuildException {\n        if (msgOutputLevel >= Project.MSG_INFO) {\n            System.out.println(\"Searching for \" + suffix + \" ...\");\n        }\n\n        File parent = new File(new File(start).getAbsolutePath());\n        File file = new File(parent, suffix);\n        \n        while (!file.exists()) {\n            parent = getParentFile(parent);\n            \n            if (parent == null) {\n                throw new BuildException(\"Could not locate a build file!\");\n            }\n            \n            file = new File(parent, suffix);\n        }\n        \n        return file;\n    }\n\n    /**\n     * Executes the build.\n     */\n    private void runBuild(ClassLoader coreLoader) throws BuildException {\n\n        if (!readyToRun) {\n            return;\n        }\n\n\n        if (msgOutputLevel >= Project.MSG_INFO) {\n            System.out.println(\"Buildfile: \" + buildFile);\n        }\n\n        final Project project = new Project();\n        project.setCoreLoader(coreLoader);\n        \n        Throwable error = null;\n\n        try {\n            addBuildListeners(project);\n\n            PrintStream err = System.err;\n            PrintStream out = System.out;\n            SecurityManager oldsm = System.getSecurityManager();\n\n            try {\n                System.setOut(new PrintStream(new DemuxOutputStream(project, false)));\n                System.setErr(new PrintStream(new DemuxOutputStream(project, true)));\n                project.fireBuildStarted();\n                project.init();\n                project.setUserProperty(\"ant.version\", getAntVersion());\n\n                Enumeration e = definedProps.keys();\n                while (e.hasMoreElements()) {\n                    String arg = (String)e.nextElement();\n                    String value = (String)definedProps.get(arg);\n                    project.setUserProperty(arg, value);\n                }\n                \n                project.setUserProperty(\"ant.file\" , buildFile.getAbsolutePath() );\n                \n                String noParserMessage = '';\n                try {\n                    Class.forName(\"javax.xml.parsers.SAXParserFactory\");\n                    ProjectHelper.configureProject(project, buildFile);\n                } catch (NoClassDefFoundError ncdfe) {\n                    throw new BuildException(noParserMessage, ncdfe);\n                } catch (ClassNotFoundException cnfe) {\n                    throw new BuildException(noParserMessage, cnfe);\n                } catch (NullPointerException npe) {\n                    throw new BuildException(noParserMessage, npe);\n                }\n                \n                if (targets.size() == 0) {\n                    targets.addElement(project.getDefaultTarget());\n                }\n                \n                if (!projectHelp) {\n                    project.executeTargets(targets);\n                }\n            }\n            finally {\n                System.setOut(out);\n                System.setErr(err);\n            }\n            if (projectHelp) {\n                printDescription(project);\n                printTargets(project);\n            }\n        }\n        catch(RuntimeException exc) {\n            error = exc;\n            throw exc;\n        }\n        catch(Error err) {\n            error = err;\n            throw err;\n        }\n        finally {\n            project.fireBuildFinished(error);\n        }\n    }\n\n    protected void addBuildListeners(Project project) {\n\n        project.addBuildListener(createLogger());\n\n        for (int i = 0; i < listeners.size(); i++) {\n            String className = (String) listeners.elementAt(i);\n            try {\n                BuildListener listener =\n                    (BuildListener) Class.forName(className).newInstance();\n                project.addBuildListener(listener);\n            }\n            catch(Throwable exc) {\n                throw new BuildException(\"Unable to instantiate listener \" + className, exc);\n            }\n        }\n    }\n\n    /**\n     *  Creates the default build logger for sending build events to the ant log.\n     */\n    private BuildLogger createLogger() {\n        BuildLogger logger = null;\n        if (loggerClassname != null) {\n            try {\n                logger = (BuildLogger)(Class.forName(loggerClassname).newInstance());\n            }\n            catch (ClassCastException e) {\n                System.err.println(\"The specified logger class \" + loggerClassname +\n                                         \" does not implement the BuildLogger interface\");\n                throw new RuntimeException();\n            }\n            catch (Exception e) {\n                System.err.println(\"Unable to instantiate specified logger class \" +\n                                           loggerClassname + \" : \" + e.getClass().getName());\n                throw new RuntimeException();\n            }\n        }\n        else {\n            logger = new DefaultLogger();\n        }\n\n        logger.setMessageOutputLevel(msgOutputLevel);\n        logger.setOutputPrintStream(out);\n        logger.setErrorPrintStream(err);\n        logger.setEmacsMode(emacsMode);\n\n        return logger;\n    }\n\n    /**\n     * Prints the usage of how to use this class to System.out\n     */\n    private static void printUsage() {\n        String lSep = System.getProperty(\"line.separator\");\n        StringBuffer msg = new StringBuffer();\n        msg.append(\"ant [options] [target [target2 [target3] ...]]\" + lSep);\n        msg.append(\"Options: \" + lSep);\n        msg.append(\"  -help                  print this message\" + lSep);\n        msg.append(\"  -projecthelp           print project help information\" + lSep);\n        msg.append(\"  -version               print the version information and exit\" + lSep);\n        msg.append(\"  -quiet                 be extra quiet\" + lSep);\n        msg.append(\"  -verbose               be extra verbose\" + lSep);\n        msg.append(\"  -debug                 print debugging information\" + lSep);\n        msg.append(\"  -emacs                 produce logging information without adornments\" + lSep);\n        msg.append(\"  -logfile <file>        use given file for log\" + lSep);\n        msg.append(\"  -logger <classname>    the class which is to perform logging\" + lSep);\n        msg.append(\"  -listener <classname>  add an instance of class as a project listener\" + lSep);\n        msg.append(\"  -buildfile <file>      use given buildfile\" + lSep);\n        msg.append(\"  -D<property>=<value>   use value for given property\" + lSep);\n        msg.append(\"  -find <file>           search for buildfile towards the root of the\" + lSep);\n        msg.append(\"                         filesystem and use it\" + lSep);\n        System.out.println(msg.toString());\n    }\n\n    private static void printVersion() throws BuildException {\n        System.out.println(getAntVersion());\n    }\n\n    private static String antVersion = null;\n\n    public synchronized static String getAntVersion() throws BuildException {\n        if (antVersion == null) {\n            try {\n                Properties props = new Properties();\n                InputStream in =\n                    Main.class.getResourceAsStream(\"/org/apache/tools/ant/version.txt\");\n                props.load(in);\n                in.close();\n                \n                String lSep = System.getProperty(\"line.separator\");\n                StringBuffer msg = new StringBuffer();\n                msg.append(\"Ant version \");\n                msg.append(props.getProperty(\"VERSION\"));\n                msg.append(\" compiled on \");\n                msg.append(props.getProperty(\"DATE\"));\n                antVersion = msg.toString();\n            } catch (IOException ioe) {\n                throw new BuildException(\"Could not load the version information:\"\n                                         + ioe.getMessage());\n            } catch (NullPointerException npe) {\n                throw new BuildException(\"Could not load the version information.\");\n            }\n        }\n        return antVersion;\n    }\n\n     /**\n      * Print the project description, if any\n      */\n    private static void printDescription(Project project) {\n       if (project.getDescription() != null) {\n          System.out.println(project.getDescription());\n       }\n    }\n\n    /**\n     * Print out a list of all targets in the current buildfile\n     */\n    private static void printTargets(Project project) {\n        int maxLength = 0;\n        Enumeration ptargets = project.getTargets().elements();\n        String targetName;\n        String targetDescription;\n        Target currentTarget;\n        Vector topNames = new Vector();\n        Vector topDescriptions = new Vector();\n        Vector subNames = new Vector();\n\n        while (ptargets.hasMoreElements()) {\n            currentTarget = (Target)ptargets.nextElement();\n            targetName = currentTarget.getName();\n            targetDescription = currentTarget.getDescription();\n            if (targetDescription == null) {\n                int pos = findTargetPosition(subNames, targetName);\n                subNames.insertElementAt(targetName, pos);\n            } else {\n                int pos = findTargetPosition(topNames, targetName);\n                topNames.insertElementAt(targetName, pos);\n                topDescriptions.insertElementAt(targetDescription, pos);\n                if (targetName.length() > maxLength) {\n                    maxLength = targetName.length();\n                }\n            }\n        }\n\n        String defaultTarget = project.getDefaultTarget();\n            Vector defaultName = new Vector();\n            Vector defaultDesc = null;\n            defaultName.addElement(defaultTarget);\n\n            int indexOfDefDesc = topNames.indexOf(defaultTarget);\n            if (indexOfDefDesc >= 0) {\n                defaultDesc = new Vector();\n                defaultDesc.addElement(topDescriptions.elementAt(indexOfDefDesc));\n            }\n            printTargets(defaultName, defaultDesc, \"Default target:\", maxLength);\n\n        \n\n        printTargets(topNames, topDescriptions, \"Main targets:\", maxLength);\n        printTargets(subNames, null, \"Subtargets:\", 0);\n    }\n\n    /**\n     * Search for the insert position to keep names a sorted list of Strings\n     */\n    private static int findTargetPosition(Vector names, String name) {\n        int res = names.size();\n        for (int i=0; i<names.size() && res == names.size(); i++) {\n            if (name.compareTo((String)names.elementAt(i)) < 0) {\n                res = i;\n            }\n        }\n        return res;\n    }\n\n    /**\n     * Output a formatted list of target names with an optional description\n     */\n    private static void printTargets(Vector names, Vector descriptions, String heading, int maxlen) {\n        String lSep = System.getProperty(\"line.separator\");\n        String spaces = \"    \";\n        while (spaces.length()<maxlen) {\n            spaces += spaces;\n        }\n        StringBuffer msg = new StringBuffer();\n        msg.append(heading + lSep + lSep);\n        for (int i=0; i<names.size(); i++) {\n            msg.append(\" \");\n            msg.append(names.elementAt(i));\n            if (descriptions != null) {\n                msg.append(spaces.substring(0, maxlen - ((String)names.elementAt(i)).length() + 2));\n                msg.append(descriptions.elementAt(i));\n            }\n            msg.append(lSep);\n        }\n        System.out.println(msg.toString());", "functions": [{"function_name": "printMessage", "code": "    private static void printMessage(Throwable t) {\n        String message = t.getMessage();\n        if (message != null) {\n            System.err.println(message);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "start", "code": "    public static void start(String[] args, Properties additionalUserProperties,\n                             ClassLoader coreLoader) {\n        Main m = null;\n\n        try {\n            m = new Main(args);\n        } catch(Throwable exc) {\n            printMessage(exc);\n            System.exit(1);\n        }\n\n        if (additionalUserProperties != null) {\n            for (Enumeration e = additionalUserProperties.keys(); e.hasMoreElements(); ) {\n                String key = (String) e.nextElement();\n                String property = additionalUserProperties.getProperty(key);\n                m.definedProps.put(key, property);\n            }\n        }\n        \n        try {\n            m.runBuild(coreLoader);\n            System.exit(0);\n        } catch (BuildException be) {\n            if (m.err != System.err) {\n                printMessage(be);\n            }\n            System.exit(1);\n        } catch(Throwable exc) {\n            printMessage(exc);\n            System.exit(1);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "BINARY_OP", "CATCH", "IF", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [2, 10], [3, 11], [9, 12], [1, 13], [1, 14], [2, 15], [10, 16], [3, 17], [4, 18], [8, 19], [8, 20], [9, 21], [12, 22], [13, 23], [15, 24], [11, 25], [11, 26], [17, 27], [19, 28], [21, 29], [15, 30], [15, 31], [25, 32], [12, 33], [15, 34], [15, 35], [30, 36], [31, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 2], [11, 3], [12, 9], [13, 1], [14, 1], [15, 2], [16, 10], [17, 3], [18, 4], [19, 8], [20, 8], [21, 9], [22, 12], [23, 13], [24, 15], [25, 11], [26, 11], [27, 17], [28, 19], [29, 21], [30, 15], [31, 15], [32, 25], [33, 12], [34, 15], [35, 15], [36, 30], [37, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "main", "code": "    public static void main(String[] args) {\n        start(args, null, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getParentFile", "code": "    private File getParentFile(File file) {\n        String filename = file.getAbsolutePath();\n        file = new File(filename);\n        filename = file.getParent();\n\n        if (filename != null && msgOutputLevel >= Project.MSG_VERBOSE) {\n            System.out.println(\"Searching in \"+filename);\n        }\n\n        return (filename == null) ? null : new File(filename);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "COND_EXPR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [6, 13], [7, 14], [8, 15], [3, 16], [11, 17], [2, 18], [13, 19], [18, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 6], [14, 7], [15, 8], [16, 3], [17, 11], [18, 2], [19, 13], [20, 18], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "findBuildFile", "code": "    private File findBuildFile(String start, String suffix) throws BuildException {\n        if (msgOutputLevel >= Project.MSG_INFO) {\n            System.out.println(\"Searching for \" + suffix + \" ...\");\n        }\n\n        File parent = new File(new File(start).getAbsolutePath());\n        File file = new File(parent, suffix);\n        \n        while (!file.exists()) {\n            parent = getParentFile(parent);\n            \n            if (parent == null) {\n                throw new BuildException(\"Could not locate a build file!\");\n            }\n            \n            file = new File(parent, suffix);\n        }\n        \n        return file;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [5, 9], [2, 10], [3, 11], [4, 12], [2, 13], [10, 14], [2, 15], [12, 16], [5, 17], [13, 18], [10, 19], [14, 20], [15, 21], [16, 22], [17, 23], [19, 24], [23, 25], [23, 26], [24, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 5], [10, 2], [11, 3], [12, 4], [13, 2], [14, 10], [15, 2], [16, 12], [17, 5], [18, 13], [19, 10], [20, 14], [21, 15], [22, 16], [23, 17], [24, 19], [25, 23], [26, 23], [27, 24], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "runBuild", "code": "    private void runBuild(ClassLoader coreLoader) throws BuildException {\n\n        if (!readyToRun) {\n            return;\n        }\n\n\n        if (msgOutputLevel >= Project.MSG_INFO) {\n            System.out.println(\"Buildfile: \" + buildFile);\n        }\n\n        final Project project = new Project();\n        project.setCoreLoader(coreLoader);\n        \n        Throwable error = null;\n\n        try {\n            addBuildListeners(project);\n\n            PrintStream err = System.err;\n            PrintStream out = System.out;\n            SecurityManager oldsm = System.getSecurityManager();\n\n            try {\n                System.setOut(new PrintStream(new DemuxOutputStream(project, false)));\n                System.setErr(new PrintStream(new DemuxOutputStream(project, true)));\n                project.fireBuildStarted();\n                project.init();\n                project.setUserProperty(\"ant.version\", getAntVersion());\n\n                Enumeration e = definedProps.keys();\n                while (e.hasMoreElements()) {\n                    String arg = (String)e.nextElement();\n                    String value = (String)definedProps.get(arg);\n                    project.setUserProperty(arg, value);\n                }\n                \n                project.setUserProperty(\"ant.file\" , buildFile.getAbsolutePath() );\n                \n                String noParserMessage = '';\n                try {\n                    Class.forName(\"javax.xml.parsers.SAXParserFactory\");\n                    ProjectHelper.configureProject(project, buildFile);\n                } catch (NoClassDefFoundError ncdfe) {\n                    throw new BuildException(noParserMessage, ncdfe);\n                } catch (ClassNotFoundException cnfe) {\n                    throw new BuildException(noParserMessage, cnfe);\n                } catch (NullPointerException npe) {\n                    throw new BuildException(noParserMessage, npe);\n                }\n                \n                if (targets.size() == 0) {\n                    targets.addElement(project.getDefaultTarget());\n                }\n                \n                if (!projectHelp) {\n                    project.executeTargets(targets);\n                }\n            }\n            finally {\n                System.setOut(out);\n                System.setErr(err);\n            }\n            if (projectHelp) {\n                printDescription(project);\n                printTargets(project);\n            }\n        }\n        catch(RuntimeException exc) {\n            error = exc;\n            throw exc;\n        }\n        catch(Error err) {\n            error = err;\n            throw err;\n        }\n        finally {\n            project.fireBuildFinished(error);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "CATCH", "CATCH", "IF", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "THROW_RAISE", "IF", "IF", "TRY", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CATCH", "CATCH", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [0, 14], [4, 15], [1, 16], [7, 17], [8, 18], [10, 19], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [1, 25], [2, 26], [3, 27], [5, 28], [7, 29], [8, 30], [10, 31], [10, 32], [20, 33], [21, 34], [21, 35], [21, 36], [10, 37], [23, 38], [10, 39], [10, 40], [10, 41], [10, 42], [10, 43], [11, 44], [4, 45], [9, 46], [9, 47], [33, 48], [33, 49], [34, 50], [35, 51], [36, 52], [21, 53], [21, 54], [22, 55], [37, 56], [37, 57], [23, 58], [23, 59], [24, 60], [39, 61], [39, 62], [42, 63], [43, 64], [45, 65], [19, 66], [20, 67], [50, 68], [51, 69], [52, 70], [54, 71], [23, 72], [63, 73], [64, 74], [65, 75], [67, 76], [73, 77], [74, 78], [58, 79], [59, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 0], [15, 4], [16, 1], [17, 7], [18, 8], [19, 10], [20, 10], [21, 10], [22, 10], [23, 10], [24, 10], [25, 1], [26, 2], [27, 3], [28, 5], [29, 7], [30, 8], [31, 10], [32, 10], [33, 20], [34, 21], [35, 21], [36, 21], [37, 10], [38, 23], [39, 10], [40, 10], [41, 10], [42, 10], [43, 10], [44, 11], [45, 4], [46, 9], [47, 9], [48, 33], [49, 33], [50, 34], [51, 35], [52, 36], [53, 21], [54, 21], [55, 22], [56, 37], [57, 37], [58, 23], [59, 23], [60, 24], [61, 39], [62, 39], [63, 42], [64, 43], [65, 45], [66, 19], [67, 20], [68, 50], [69, 51], [70, 52], [71, 54], [72, 23], [73, 63], [74, 64], [75, 65], [76, 67], [77, 73], [78, 74], [79, 58], [80, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "addBuildListeners", "code": "    protected void addBuildListeners(Project project) {\n\n        project.addBuildListener(createLogger());\n\n        for (int i = 0; i < listeners.size(); i++) {\n            String className = (String) listeners.elementAt(i);\n            try {\n                BuildListener listener =\n                    (BuildListener) Class.forName(className).newInstance();\n                project.addBuildListener(listener);\n            }\n            catch(Throwable exc) {\n                throw new BuildException(\"Unable to instantiate listener \" + className, exc);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "CALL", "TRY", "VAR_DECL", "CALL", "CALL", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [3, 7], [4, 8], [5, 9], [5, 10], [1, 11], [9, 12], [5, 13], [12, 14], [6, 15], [14, 16], [10, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 3], [8, 4], [9, 5], [10, 5], [11, 1], [12, 9], [13, 5], [14, 12], [15, 6], [16, 14], [17, 10], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "createLogger", "code": "    private BuildLogger createLogger() {\n        BuildLogger logger = null;\n        if (loggerClassname != null) {\n            try {\n                logger = (BuildLogger)(Class.forName(loggerClassname).newInstance());\n            }\n            catch (ClassCastException e) {\n                System.err.println(\"The specified logger class \" + loggerClassname +\n                                         \" does not implement the BuildLogger interface\");\n                throw new RuntimeException();\n            }\n            catch (Exception e) {\n                System.err.println(\"Unable to instantiate specified logger class \" +\n                                           loggerClassname + \" : \" + e.getClass().getName());\n                throw new RuntimeException();\n            }\n        }\n        else {\n            logger = new DefaultLogger();\n        }\n\n        logger.setMessageOutputLevel(msgOutputLevel);\n        logger.setOutputPrintStream(out);\n        logger.setErrorPrintStream(err);\n        logger.setEmacsMode(emacsMode);\n\n        return logger;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "CATCH", "CALL", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [8, 10], [3, 11], [2, 12], [9, 13], [9, 14], [12, 15], [13, 16], [14, 17], [9, 18], [16, 19], [13, 20], [17, 21], [14, 22], [20, 23], [22, 24], [18, 25], [23, 26], [23, 27], [24, 28], [24, 29], [26, 30], [27, 31], [27, 32], [29, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 8], [11, 3], [12, 2], [13, 9], [14, 9], [15, 12], [16, 13], [17, 14], [18, 9], [19, 16], [20, 13], [21, 17], [22, 14], [23, 20], [24, 22], [25, 18], [26, 23], [27, 23], [28, 24], [29, 24], [30, 26], [31, 27], [32, 27], [33, 29], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "printUsage", "code": "    private static void printUsage() {\n        String lSep = System.getProperty(\"line.separator\");\n        StringBuffer msg = new StringBuffer();\n        msg.append(\"ant [options] [target [target2 [target3] ...]]\" + lSep);\n        msg.append(\"Options: \" + lSep);\n        msg.append(\"  -help                  print this message\" + lSep);\n        msg.append(\"  -projecthelp           print project help information\" + lSep);\n        msg.append(\"  -version               print the version information and exit\" + lSep);\n        msg.append(\"  -quiet                 be extra quiet\" + lSep);\n        msg.append(\"  -verbose               be extra verbose\" + lSep);\n        msg.append(\"  -debug                 print debugging information\" + lSep);\n        msg.append(\"  -emacs                 produce logging information without adornments\" + lSep);\n        msg.append(\"  -logfile <file>        use given file for log\" + lSep);\n        msg.append(\"  -logger <classname>    the class which is to perform logging\" + lSep);\n        msg.append(\"  -listener <classname>  add an instance of class as a project listener\" + lSep);\n        msg.append(\"  -buildfile <file>      use given buildfile\" + lSep);\n        msg.append(\"  -D<property>=<value>   use value for given property\" + lSep);\n        msg.append(\"  -find <file>           search for buildfile towards the root of the\" + lSep);\n        msg.append(\"                         filesystem and use it\" + lSep);\n        System.out.println(msg.toString());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [3, 20], [4, 21], [5, 22], [6, 23], [7, 24], [8, 25], [9, 26], [10, 27], [11, 28], [12, 29], [13, 30], [14, 31], [15, 32], [16, 33], [17, 34], [18, 35], [19, 36], [1, 37], [2, 38], [21, 39], [22, 40], [23, 41], [24, 42], [25, 43], [26, 44], [27, 45], [28, 46], [29, 47], [30, 48], [31, 49], [32, 50], [33, 51], [34, 52], [35, 53], [36, 54], [38, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 3], [21, 4], [22, 5], [23, 6], [24, 7], [25, 8], [26, 9], [27, 10], [28, 11], [29, 12], [30, 13], [31, 14], [32, 15], [33, 16], [34, 17], [35, 18], [36, 19], [37, 1], [38, 2], [39, 21], [40, 22], [41, 23], [42, 24], [43, 25], [44, 26], [45, 27], [46, 28], [47, 29], [48, 30], [49, 31], [50, 32], [51, 33], [52, 34], [53, 35], [54, 36], [55, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "printVersion", "code": "    private static void printVersion() throws BuildException {\n        System.out.println(getAntVersion());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAntVersion", "code": "    public synchronized static String getAntVersion() throws BuildException {\n        if (antVersion == null) {\n            try {\n                Properties props = new Properties();\n                InputStream in =\n                    Main.class.getResourceAsStream(\"/org/apache/tools/ant/version.txt\");\n                props.load(in);\n                in.close();\n                \n                String lSep = System.getProperty(\"line.separator\");\n                StringBuffer msg = new StringBuffer();\n                msg.append(\"Ant version \");\n                msg.append(props.getProperty(\"VERSION\"));\n                msg.append(\" compiled on \");\n                msg.append(props.getProperty(\"DATE\"));\n                antVersion = msg.toString();\n            } catch (IOException ioe) {\n                throw new BuildException(\"Could not load the version information:\"\n                                         + ioe.getMessage());\n            } catch (NullPointerException npe) {\n                throw new BuildException(\"Could not load the version information.\");\n            }\n        }\n        return antVersion;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [6, 12], [7, 13], [4, 14], [4, 15], [4, 16], [4, 17], [4, 18], [4, 19], [4, 20], [12, 21], [13, 22], [14, 23], [15, 24], [16, 25], [17, 26], [18, 27], [8, 28], [9, 29], [10, 30], [11, 31], [21, 32], [22, 33], [24, 34], [26, 35], [29, 36], [30, 37], [33, 38], [33, 39], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 4], [9, 4], [10, 4], [11, 4], [12, 6], [13, 7], [14, 4], [15, 4], [16, 4], [17, 4], [18, 4], [19, 4], [20, 4], [21, 12], [22, 13], [23, 14], [24, 15], [25, 16], [26, 17], [27, 18], [28, 8], [29, 9], [30, 10], [31, 11], [32, 21], [33, 22], [34, 24], [35, 26], [36, 29], [37, 30], [38, 33], [39, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "printDescription", "code": "    private static void printDescription(Project project) {\n       if (project.getDescription() != null) {\n          System.out.println(project.getDescription());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "printTargets", "code": "    private static void printTargets(Project project) {\n        int maxLength = 0;\n        Enumeration ptargets = project.getTargets().elements();\n        String targetName;\n        String targetDescription;\n        Target currentTarget;\n        Vector topNames = new Vector();\n        Vector topDescriptions = new Vector();\n        Vector subNames = new Vector();\n\n        while (ptargets.hasMoreElements()) {\n            currentTarget = (Target)ptargets.nextElement();\n            targetName = currentTarget.getName();\n            targetDescription = currentTarget.getDescription();\n            if (targetDescription == null) {\n                int pos = findTargetPosition(subNames, targetName);\n                subNames.insertElementAt(targetName, pos);\n            } else {\n                int pos = findTargetPosition(topNames, targetName);\n                topNames.insertElementAt(targetName, pos);\n                topDescriptions.insertElementAt(targetDescription, pos);\n                if (targetName.length() > maxLength) {\n                    maxLength = targetName.length();\n                }\n            }\n        }\n\n        String defaultTarget = project.getDefaultTarget();\n            Vector defaultName = new Vector();\n            Vector defaultDesc = null;\n            defaultName.addElement(defaultTarget);\n\n            int indexOfDefDesc = topNames.indexOf(defaultTarget);\n            if (indexOfDefDesc >= 0) {\n                defaultDesc = new Vector();\n                defaultDesc.addElement(topDescriptions.elementAt(indexOfDefDesc));\n            }\n            printTargets(defaultName, defaultDesc, \"Default target:\", maxLength);\n\n        \n\n        printTargets(topNames, topDescriptions, \"Main targets:\", maxLength);\n        printTargets(subNames, null, \"Subtargets:\", 0);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 19], [0, 20], [6, 21], [16, 22], [16, 23], [16, 24], [17, 25], [18, 26], [19, 27], [2, 28], [3, 29], [4, 30], [5, 31], [6, 32], [7, 33], [8, 34], [9, 35], [13, 36], [14, 37], [1, 38], [1, 39], [32, 40], [6, 41], [6, 42], [6, 43], [36, 44], [38, 45], [39, 46], [32, 47], [32, 48], [32, 49], [40, 50], [41, 51], [42, 52], [47, 53], [32, 54], [32, 55], [32, 56], [43, 57], [53, 58], [48, 59], [49, 60], [47, 61], [61, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 1], [20, 0], [21, 6], [22, 16], [23, 16], [24, 16], [25, 17], [26, 18], [27, 19], [28, 2], [29, 3], [30, 4], [31, 5], [32, 6], [33, 7], [34, 8], [35, 9], [36, 13], [37, 14], [38, 1], [39, 1], [40, 32], [41, 6], [42, 6], [43, 6], [44, 36], [45, 38], [46, 39], [47, 32], [48, 32], [49, 32], [50, 40], [51, 41], [52, 42], [53, 47], [54, 32], [55, 32], [56, 32], [57, 43], [58, 53], [59, 48], [60, 49], [61, 47], [62, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "findTargetPosition", "code": "    private static int findTargetPosition(Vector names, String name) {\n        int res = names.size();\n        for (int i=0; i<names.size() && res == names.size(); i++) {\n            if (name.compareTo((String)names.elementAt(i)) < 0) {\n                res = i;\n            }\n        }\n        return res;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [6, 9], [3, 10], [7, 11], [8, 12], [9, 13], [2, 14], [11, 15], [11, 16], [7, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 6], [10, 3], [11, 7], [12, 8], [13, 9], [14, 2], [15, 11], [16, 11], [17, 7], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "printTargets", "code": "    private static void printTargets(Vector names, Vector descriptions, String heading, int maxlen) {\n        String lSep = System.getProperty(\"line.separator\");\n        String spaces = \"    \";\n        while (spaces.length()<maxlen) {\n            spaces += spaces;\n        }\n        StringBuffer msg = new StringBuffer();\n        msg.append(heading + lSep + lSep);\n        for (int i=0; i<names.size(); i++) {\n            msg.append(\" \");\n            msg.append(names.elementAt(i));\n            if (descriptions != null) {\n                msg.append(spaces.substring(0, maxlen - ((String)names.elementAt(i)).length() + 2));\n                msg.append(descriptions.elementAt(i));\n            }\n            msg.append(lSep);\n        }\n        System.out.println(msg.toString());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [3, 13], [10, 14], [1, 15], [11, 16], [12, 17], [2, 18], [13, 19], [4, 20], [5, 21], [1, 22], [15, 23], [1, 24], [1, 25], [1, 26], [17, 27], [3, 28], [21, 29], [23, 30], [24, 31], [25, 32], [15, 33], [15, 34], [33, 35], [34, 36], [36, 37], [36, 38], [37, 39], [37, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 3], [14, 10], [15, 1], [16, 11], [17, 12], [18, 2], [19, 13], [20, 4], [21, 5], [22, 1], [23, 15], [24, 1], [25, 1], [26, 1], [27, 17], [28, 3], [29, 21], [30, 23], [31, 24], [32, 25], [33, 15], [34, 15], [35, 33], [36, 34], [37, 36], [38, 36], [39, 37], [40, 37], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "Main", "code": "    protected Main(String[] args) throws BuildException {\n\n        String searchForThis = null;\n\n\n        for (int i = 0; i < args.length; i++) {\n            String arg = args[i];\n\n            if (arg.equals(\"-help\")) {\n                printUsage();\n                return;\n            } else if (arg.equals(\"-version\")) {\n                printVersion();\n                return;\n            } else if (arg.equals(\"-quiet\") || arg.equals(\"-q\")) {\n                msgOutputLevel = Project.MSG_WARN;\n            } else if (arg.equals(\"-verbose\") || arg.equals(\"-v\")) {\n                printVersion();\n                msgOutputLevel = Project.MSG_VERBOSE;\n            } else if (arg.equals(\"-debug\")) {\n                printVersion();\n                msgOutputLevel = Project.MSG_DEBUG;\n            } else if (arg.equals(\"-logfile\") || arg.equals(\"-l\")) {\n                try {\n                    File logFile = new File(args[i+1]);\n                    i++;\n                    out = new PrintStream(new FileOutputStream(logFile));\n                    err = out;\n                    System.setOut(out);\n                    System.setErr(out);\n                } catch (IOException ioe) {\n                    String msg = \"Cannot write on the specified log file. \" +\n                        \"Make sure the path exists and you have write permissions.\";\n                    System.out.println(msg);\n                    return;\n                } catch (ArrayIndexOutOfBoundsException aioobe) {\n                    String msg = \"You must specify a log file when \" +\n                        \"using the -log argument\";\n                    System.out.println(msg);\n                    return;\n                }\n            } else if (arg.equals(\"-buildfile\") || arg.equals(\"-file\") || arg.equals(\"-f\")) {\n                try {\n                    buildFile = new File(args[i+1]);\n                    i++;\n                } catch (ArrayIndexOutOfBoundsException aioobe) {\n                    String msg = \"You must specify a buildfile when \" +\n                        \"using the -buildfile argument\";\n                    System.out.println(msg);\n                    return;\n                }\n            } else if (arg.equals(\"-listener\")) {\n                try {\n                    listeners.addElement(args[i+1]);\n                    i++;\n                } catch (ArrayIndexOutOfBoundsException aioobe) {\n                    String msg = \"You must specify a classname when \" +\n                        \"using the -listener argument\";\n                    System.out.println(msg);\n                    return;\n                }\n            } else if (arg.startsWith(\"-D\")) {\n\n                /* Interestingly enough, we get to here when a user\n                 * uses -Dname=value. However, in some cases, the JDK\n                 * goes ahead * and parses this out to args\n                 *   {\"-Dname\", \"value\"}\n                 * so instead of parsing on \"=\", we just make the \"-D\"\n                 * characters go away and skip one argument forward.\n                 *\n                 * I don't know how to predict when the JDK is going\n                 * to help or not, so we simply look for the equals sign.\n                 */\n\n                String name = arg.substring(2, arg.length());\n                String value = null;\n                int posEq = name.indexOf(\"=\");\n                if (posEq > 0) {\n                    value = name.substring(posEq+1);\n                    name = name.substring(0, posEq);\n                } else if (i < args.length-1)\n                    value = args[++i];\n\n                definedProps.put(name, value);\n            } else if (arg.equals(\"-logger\")) {\n                if (loggerClassname != null) {\n                    System.out.println(\"Only one logger class may be specified.\");\n                    return;\n                }\n                try {\n                    loggerClassname = args[++i];\n                } \n                catch (ArrayIndexOutOfBoundsException aioobe) {\n                    System.out.println(\"You must specify a classname when \" +\n                                       \"using the -logger argument\");\n                    return;\n                }\n            } else if (arg.equals(\"-emacs\")) {\n                emacsMode = true;\n            } else if (arg.equals(\"-projecthelp\")) {\n                projectHelp = true;\n            } else if (arg.equals(\"-find\")) {\n                if (i < args.length-1) {\n                    searchForThis = args[++i];\n                } else {\n                    searchForThis = DEFAULT_BUILD_FILENAME;\n                }\n            } else if (arg.startsWith(\"-\")) {\n                String msg = \"Unknown argument: \" + arg;\n                System.out.println(msg);\n                printUsage();\n                return;\n            } else {\n                targets.addElement(arg);\n            }\n\n        }\n\n        if (buildFile == null) {\n            if (searchForThis != null) {\n                buildFile = findBuildFile(System.getProperty(\"user.dir\"), \n                                          searchForThis);\n            } else {\n                buildFile = new File(DEFAULT_BUILD_FILENAME);\n            }\n        }\n\n        if (!buildFile.exists()) {\n            System.out.println(\"Buildfile: \" + buildFile + \" does not exist!\");\n            throw new BuildException(\"Build failed\");\n        }\n\n\n        if (buildFile.isDirectory()) {\n            System.out.println(\"What? Buildfile: \" + buildFile + \" is a dir!\");\n            throw new BuildException(\"Build failed\");\n        }\n\n        readyToRun = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "TRY", "CALL", "CALL", "ASSIGN", "CALL", "IF", "CALL", "TRY", "CALL", "BINARY_OP", "CATCH", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "TRY", "LITERAL_ANCHOR", "CATCH", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "ASSIGN", "ASSIGN", "IF", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CATCH", "RETURN", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "TRY", "IF", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CATCH", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [4, 11], [7, 12], [1, 13], [2, 14], [3, 15], [10, 16], [4, 17], [4, 18], [5, 19], [13, 20], [1, 21], [14, 22], [2, 23], [15, 24], [17, 25], [17, 26], [4, 27], [20, 28], [21, 29], [22, 30], [23, 31], [24, 32], [25, 33], [25, 34], [17, 35], [26, 36], [29, 37], [29, 38], [31, 39], [31, 40], [15, 41], [15, 42], [33, 43], [33, 44], [25, 45], [34, 46], [17, 47], [38, 48], [40, 49], [41, 50], [42, 51], [43, 52], [43, 53], [44, 54], [44, 55], [25, 56], [51, 57], [52, 58], [52, 59], [53, 60], [53, 61], [33, 62], [54, 63], [55, 64], [57, 65], [58, 66], [58, 67], [59, 68], [43, 69], [43, 70], [60, 71], [61, 72], [66, 73], [66, 74], [58, 75], [67, 76], [67, 77], [52, 78], [52, 79], [73, 80], [73, 81], [66, 82], [74, 83], [74, 84], [75, 85], [75, 86], [75, 87], [76, 88], [77, 89], [80, 90], [80, 91], [73, 92], [81, 93], [82, 94], [83, 95], [84, 96], [84, 97], [85, 98], [85, 99], [86, 100], [86, 101], [75, 102], [75, 103], [75, 104], [75, 105], [90, 106], [90, 107], [80, 108], [80, 109], [80, 110], [80, 111], [91, 112], [92, 113], [94, 114], [94, 115], [82, 116], [96, 117], [97, 118], [85, 119], [86, 120], [105, 121], [87, 122], [106, 123], [106, 124], [90, 125], [90, 126], [107, 127], [80, 128], [108, 129], [108, 130], [113, 131], [113, 132], [92, 133], [94, 134], [116, 135], [99, 136], [101, 137], [121, 138], [123, 139], [123, 140], [124, 141], [125, 142], [126, 143], [129, 144], [130, 145], [109, 146], [110, 147], [111, 148], [113, 149], [115, 150], [136, 151], [136, 152], [137, 153], [137, 154], [139, 155], [139, 156], [140, 157], [106, 158], [142, 159], [125, 160], [126, 161], [143, 162], [129, 163], [144, 164], [108, 165], [108, 166], [146, 167], [148, 168], [148, 169], [132, 170], [150, 171], [150, 172], [122, 173], [155, 174], [139, 175], [156, 176], [123, 177], [158, 178], [142, 179], [126, 180], [164, 181], [165, 182], [166, 183], [170, 184], [170, 185], [133, 186], [135, 187], [173, 188], [155, 189], [155, 190], [174, 191], [175, 192], [177, 193], [179, 194], [180, 195], [182, 196], [183, 197], [186, 198], [187, 199], [155, 200], [155, 201], [155, 202], [192, 203], [194, 204], [194, 205], [197, 206], [190, 207], [175, 208], [175, 209], [203, 210], [207, 211], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 4], [12, 7], [13, 1], [14, 2], [15, 3], [16, 10], [17, 4], [18, 4], [19, 5], [20, 13], [21, 1], [22, 14], [23, 2], [24, 15], [25, 17], [26, 17], [27, 4], [28, 20], [29, 21], [30, 22], [31, 23], [32, 24], [33, 25], [34, 25], [35, 17], [36, 26], [37, 29], [38, 29], [39, 31], [40, 31], [41, 15], [42, 15], [43, 33], [44, 33], [45, 25], [46, 34], [47, 17], [48, 38], [49, 40], [50, 41], [51, 42], [52, 43], [53, 43], [54, 44], [55, 44], [56, 25], [57, 51], [58, 52], [59, 52], [60, 53], [61, 53], [62, 33], [63, 54], [64, 55], [65, 57], [66, 58], [67, 58], [68, 59], [69, 43], [70, 43], [71, 60], [72, 61], [73, 66], [74, 66], [75, 58], [76, 67], [77, 67], [78, 52], [79, 52], [80, 73], [81, 73], [82, 66], [83, 74], [84, 74], [85, 75], [86, 75], [87, 75], [88, 76], [89, 77], [90, 80], [91, 80], [92, 73], [93, 81], [94, 82], [95, 83], [96, 84], [97, 84], [98, 85], [99, 85], [100, 86], [101, 86], [102, 75], [103, 75], [104, 75], [105, 75], [106, 90], [107, 90], [108, 80], [109, 80], [110, 80], [111, 80], [112, 91], [113, 92], [114, 94], [115, 94], [116, 82], [117, 96], [118, 97], [119, 85], [120, 86], [121, 105], [122, 87], [123, 106], [124, 106], [125, 90], [126, 90], [127, 107], [128, 80], [129, 108], [130, 108], [131, 113], [132, 113], [133, 92], [134, 94], [135, 116], [136, 99], [137, 101], [138, 121], [139, 123], [140, 123], [141, 124], [142, 125], [143, 126], [144, 129], [145, 130], [146, 109], [147, 110], [148, 111], [149, 113], [150, 115], [151, 136], [152, 136], [153, 137], [154, 137], [155, 139], [156, 139], [157, 140], [158, 106], [159, 142], [160, 125], [161, 126], [162, 143], [163, 129], [164, 144], [165, 108], [166, 108], [167, 146], [168, 148], [169, 148], [170, 132], [171, 150], [172, 150], [173, 122], [174, 155], [175, 139], [176, 156], [177, 123], [178, 158], [179, 142], [180, 126], [181, 164], [182, 165], [183, 166], [184, 170], [185, 170], [186, 133], [187, 135], [188, 173], [189, 155], [190, 155], [191, 174], [192, 175], [193, 177], [194, 179], [195, 180], [196, 182], [197, 183], [198, 186], [199, 187], [200, 155], [201, 155], [202, 155], [203, 192], [204, 194], [205, 194], [206, 197], [207, 190], [208, 175], [209, 175], [210, 203], [211, 207], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211]]}], "label": 0}
{"sample_id": "ant-1.4-145", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/util/regexp/RegexpMatcher.java", "language": "java", "name": "org.apache.tools.ant.util.regexp.RegexpMatcher", "code": "public interface RegexpMatcher {\n\n    /**\n     * Set the regexp pattern from the String description.\n     */\n    public void setPattern(String pattern) throws BuildException;\n\n    /**\n     * Get a String representation of the regexp pattern\n     */\n    public String getPattern();\n\n    /**\n     * Does the given argument match the pattern?\n     */\n    public boolean matches(String argument);\n\n    /**\n     * Returns a Vector of matched groups found in the argument.\n     *\n     * <p>Group 0 will be the full match, the rest are the\n     * parenthesized subexpressions</p>.\n     */\n    public Vector getGroups(String argument);", "functions": [{"function_name": "setPattern", "code": "    public void setPattern(String pattern) throws BuildException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPattern", "code": "    public String getPattern();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "matches", "code": "    public boolean matches(String argument);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getGroups", "code": "    public Vector getGroups(String argument);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.2-4357", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "bsh/Parser.java", "language": "java", "name": "bsh.Parser", "code": "public class Parser/*@bgen(jjtree)*/implements ParserTreeConstants, ParserConstants {/*@bgen(jjtree)*/\n  protected JJTParserState jjtree = new JJTParserState();boolean retainComments = false;\n\n        public void setRetainComments( boolean b ) {\n                retainComments = b;\n        }\n\n        void jjtreeOpenNodeScope(Node n) {\n                ((SimpleNode)n).firstToken = getToken(1);\n        }\n\n        void jjtreeCloseNodeScope(Node n) {\n                ((SimpleNode)n).lastToken = getToken(0);\n        }\n\n        /**\n\t\tRe-initialize the input stream and token source.\n\t*/\n        void reInitInput( Reader in ) {\n                ReInit(in);\n        }\n\n        public SimpleNode popNode()\n        {\n                if ( jjtree.nodeArity() > 0)  // number of child nodes \n                        return (SimpleNode)jjtree.popNode();\n                else\n                        return null;\n        }\n\n        /**\n\t\tExplicitly re-initialize just the token reader.\n\t\tThis seems to be necessary to avoid certain looping errors when\n\t\treading bogus input.  See Interpreter.\n\t*/\n        void reInitTokenInput( Reader in ) {\n                jj_input_stream.ReInit( in,\n                        jj_input_stream.getEndLine(),\n                        jj_input_stream.getEndColumn() );\n        }\n\n        public static void main( String [] args )\n                throws IOException, ParseException\n        {\n                boolean print = false;\n                int i=0;\n                if ( args[0].equals(\"-p\") ) {\n                        i++;\n                        print=true;\n                }\n                for(; i< args.length; i++) {\n                        Reader in = new FileReader(args[i]);\n                        Parser parser = new Parser(in);\n                        parser.setRetainComments(true);\n                        while( !parser.Line()/*eof*/ )\n                                if ( print )\n                                        System.out.println( parser.popNode() );\n                }\n        }\n\n        /**\n\t\tLookahead for the enhanced for statement.  \n\t\tExpect \"for\" \"(\" and then see whether we hit \":\" or a \";\" first.\n\t*/\n        boolean isRegularForStatement()\n        {\n                int curTok = 1;\n                Token tok;\n                tok = getToken(curTok++);\n                if ( tok.kind != FOR ) return false;\n                tok = getToken(curTok++);\n                if ( tok.kind != LPAREN ) return false;\n                while (true)\n                {\n                        tok = getToken(curTok++);\n                        switch (tok.kind) {\n                                case COLON:\n                                        return false;\n                                case SEMICOLON:\n                                        return true;\n                                case EOF:\n                                        return false;\n                        }\n                }\n        }\n\n        /**\n\t\tGenerate a ParseException with the specified message, pointing to the\n\t\tcurrent token.\n\t\tThe auto-generated Parser.generateParseException() method does not\n\t\tprovide line number info, therefore we do this.\n\t*/\n        ParseException createParseException( String message )\n        {\n                Token errortok = token;\n                int line = errortok.beginLine, column = errortok.beginColumn;\n                String mess = (errortok.kind == 0) ? tokenImage[0] : errortok.image;\n                return new ParseException( \"Parse error at line \" + line\n                        + \", column \" + column + \" : \" + message );\n        }\n\n/*\n\tThanks to Sreenivasa Viswanadha for suggesting how to get rid of expensive\n\tlookahead here.\n*/\n  final public boolean Line() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case 0:\n      jj_consume_token(0);\n        Interpreter.debug(\"End of File!\");\n        {if (true) return true;}\n      break;\n    default:\n      if (jj_2_1(1)) {\n        BlockStatement();\n        {if (true) return false;}\n      } else {\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n    throw new Error(\"Missing return statement in function\");\n  }\n\n/*****************************************\n * THE JAVA LANGUAGE GRAMMAR STARTS HERE *\n *****************************************/\n\n/*\n\tGather modifiers for a class, method, or field.\n\tI lookahead is true then we are being called as part of a lookahead and we\n\tshould not enforce any rules.  Otherwise we validate based on context\n\t(field, method, class)\n*/\n  final public Modifiers Modifiers(int context, boolean lookahead) throws ParseException {\n        Modifiers mods = null;\n    label_1:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ABSTRACT:\n      case FINAL:\n      case NATIVE:\n      case PRIVATE:\n      case PROTECTED:\n      case PUBLIC:\n      case STATIC:\n      case STRICTFP:\n      case SYNCHRONIZED:\n      case TRANSIENT:\n      case VOLATILE:\n        ;\n        break;\n      default:\n        break label_1;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PRIVATE:\n        jj_consume_token(PRIVATE);\n        break;\n      case PROTECTED:\n        jj_consume_token(PROTECTED);\n        break;\n      case PUBLIC:\n        jj_consume_token(PUBLIC);\n        break;\n      case SYNCHRONIZED:\n        jj_consume_token(SYNCHRONIZED);\n        break;\n      case FINAL:\n        jj_consume_token(FINAL);\n        break;\n      case NATIVE:\n        jj_consume_token(NATIVE);\n        break;\n      case TRANSIENT:\n        jj_consume_token(TRANSIENT);\n        break;\n      case VOLATILE:\n        jj_consume_token(VOLATILE);\n        break;\n      case ABSTRACT:\n        jj_consume_token(ABSTRACT);\n        break;\n      case STATIC:\n        jj_consume_token(STATIC);\n        break;\n      case STRICTFP:\n        jj_consume_token(STRICTFP);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n                if ( !lookahead )\n                        try {\n                                if ( mods == null ) mods = new Modifiers();\n                                mods.addModifier( context, getToken(0).image );\n                        } catch ( IllegalStateException e ) {\n                                {if (true) throw createParseException( e.getMessage() );}\n                        }\n    }\n        {if (true) return mods;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n/**\n*/\n  final public void ClassDeclaration() throws ParseException {\n /*@bgen(jjtree) ClassDeclaration */\n        BSHClassDeclaration jjtn000 = new BSHClassDeclaration(JJTCLASSDECLARATION);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Modifiers mods;\n        Token name;\n        int numInterfaces;\n    try {\n      mods = Modifiers(Modifiers.CLASS, false);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CLASS:\n        jj_consume_token(CLASS);\n        break;\n      case INTERFACE:\n        jj_consume_token(INTERFACE);\n                                  jjtn000.isInterface=true;\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      name = jj_consume_token(IDENTIFIER);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EXTENDS:\n        jj_consume_token(EXTENDS);\n        AmbiguousName();\n                                      jjtn000.extend = true;\n        break;\n      default:\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IMPLEMENTS:\n        jj_consume_token(IMPLEMENTS);\n        numInterfaces = NameList();\n                  jjtn000.numInterfaces=numInterfaces;\n        break;\n      default:\n        ;\n      }\n      Block();\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n                jjtn000.modifiers = mods;\n                jjtn000.name = name.image;\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);\n          }\n    }\n  }\n\n  final public void MethodDeclaration() throws ParseException {\n /*@bgen(jjtree) MethodDeclaration */\n        BSHMethodDeclaration jjtn000 = new BSHMethodDeclaration(JJTMETHODDECLARATION);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t = null;\n        Modifiers mods;\n        int count;\n    try {\n      mods = Modifiers(Modifiers.METHOD, false);\n                                                      jjtn000.modifiers = mods;\n      if (jj_2_2(2147483647)) {\n        t = jj_consume_token(IDENTIFIER);\n                           jjtn000.name = t.image;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case SHORT:\n        case VOID:\n        case IDENTIFIER:\n          ReturnType();\n          t = jj_consume_token(IDENTIFIER);\n                           jjtn000.name = t.image;\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n      FormalParameters();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case THROWS:\n        jj_consume_token(THROWS);\n        count = NameList();\n                                      jjtn000.numThrows=count;\n        break;\n      default:\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACE:\n        Block();\n        break;\n      case SEMICOLON:\n        jj_consume_token(SEMICOLON);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);\n          }\n    }\n  }\n\n  final public void PackageDeclaration() throws ParseException {\n /*@bgen(jjtree) PackageDeclaration */\n  BSHPackageDeclaration jjtn000 = new BSHPackageDeclaration(JJTPACKAGEDECLARATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(PACKAGE);\n      AmbiguousName();\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);\n          }\n    }\n  }\n\n  final public void ImportDeclaration() throws ParseException {\n /*@bgen(jjtree) ImportDeclaration */\n    BSHImportDeclaration jjtn000 = new BSHImportDeclaration(JJTIMPORTDECLARATION);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token s = null;\n        Token t = null;\n    try {\n      if (jj_2_3(3)) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case STATIC:\n          s = jj_consume_token(STATIC);\n          break;\n        default:\n          ;\n        }\n        jj_consume_token(IMPORT);\n        AmbiguousName();\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case DOT:\n          t = jj_consume_token(DOT);\n          jj_consume_token(STAR);\n          break;\n        default:\n          ;\n        }\n        jj_consume_token(SEMICOLON);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n                if ( s != null ) jjtn000.staticImport = true;\n                if ( t != null ) jjtn000.importPackage = true;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IMPORT:\n          jj_consume_token(IMPORT);\n          jj_consume_token(STAR);\n          jj_consume_token(SEMICOLON);\n                     jjtree.closeNodeScope(jjtn000, true);\n                     jjtc000 = false;\n                     jjtreeCloseNodeScope(jjtn000);\n                jjtn000.superImport = true;\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void VariableDeclarator() throws ParseException {\n /*@bgen(jjtree) VariableDeclarator */\n        BSHVariableDeclarator jjtn000 = new BSHVariableDeclarator(JJTVARIABLEDECLARATOR);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ASSIGN:\n        jj_consume_token(ASSIGN);\n        VariableInitializer();\n        break;\n      default:\n        ;\n      }\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n                jjtn000.name = t.image;\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);\n          }\n    }\n  }\n\n/*\nthis originally handled postfix array dimensions...\n\nvoid VariableDeclaratorId() #VariableDeclaratorId :\n{ Token t; }\n{\n  t=<IDENTIFIER> { jjtThis.name = t.image; }\n  ( \"[\" \"]\" { jjtThis.addUndefinedDimension(); } )*\n}\n*/\n  final public void VariableInitializer() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case LBRACE:\n      ArrayInitializer();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n    case INCR:\n    case DECR:\n    case PLUS:\n    case MINUS:\n      Expression();\n      break;\n    default:\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n  }\n\n  final public void ArrayInitializer() throws ParseException {\n /*@bgen(jjtree) ArrayInitializer */\n  BSHArrayInitializer jjtn000 = new BSHArrayInitializer(JJTARRAYINITIALIZER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case LBRACE:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        VariableInitializer();\n        label_2:\n        while (true) {\n          if (jj_2_4(2)) {\n            ;\n          } else {\n            break label_2;\n          }\n          jj_consume_token(COMMA);\n          VariableInitializer();\n        }\n        break;\n      default:\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        jj_consume_token(COMMA);\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void FormalParameters() throws ParseException {\n /*@bgen(jjtree) FormalParameters */\n  BSHFormalParameters jjtn000 = new BSHFormalParameters(JJTFORMALPARAMETERS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        FormalParameter();\n        label_3:\n        while (true) {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case COMMA:\n            ;\n            break;\n          default:\n            break label_3;\n          }\n          jj_consume_token(COMMA);\n          FormalParameter();\n        }\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void FormalParameter() throws ParseException {\n /*@bgen(jjtree) FormalParameter */\n  BSHFormalParameter jjtn000 = new BSHFormalParameter(JJTFORMALPARAMETER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      if (jj_2_5(2)) {\n        Type();\n        t = jj_consume_token(IDENTIFIER);\n                                       jjtree.closeNodeScope(jjtn000, true);\n                                       jjtc000 = false;\n                                       jjtreeCloseNodeScope(jjtn000);\n                                       jjtn000.name = t.image;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          t = jj_consume_token(IDENTIFIER);\n                   jjtree.closeNodeScope(jjtn000, true);\n                   jjtc000 = false;\n                   jjtreeCloseNodeScope(jjtn000);\n                   jjtn000.name = t.image;\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tType, name and expression syntax follows.\n*/\n  final public void Type() throws ParseException {\n /*@bgen(jjtree) Type */\n  BSHType jjtn000 = new BSHType(JJTTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n        PrimitiveType();\n        break;\n      case IDENTIFIER:\n        AmbiguousName();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      label_4:\n      while (true) {\n        if (jj_2_6(2)) {\n          ;\n        } else {\n          break label_4;\n        }\n        jj_consume_token(LBRACKET);\n        jj_consume_token(RBRACKET);\n                                 jjtn000.addArrayDimension();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tOriginally called ResultType in the grammar\n*/\n  final public void ReturnType() throws ParseException {\n /*@bgen(jjtree) ReturnType */\n  BSHReturnType jjtn000 = new BSHReturnType(JJTRETURNTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case VOID:\n        jj_consume_token(VOID);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.isVoid = true;\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        Type();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void PrimitiveType() throws ParseException {\n /*@bgen(jjtree) PrimitiveType */\n  BSHPrimitiveType jjtn000 = new BSHPrimitiveType(JJTPRIMITIVETYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n        jj_consume_token(BOOLEAN);\n              jjtree.closeNodeScope(jjtn000, true);\n              jjtc000 = false;\n              jjtreeCloseNodeScope(jjtn000);\n              jjtn000.type = Boolean.TYPE;\n        break;\n      case CHAR:\n        jj_consume_token(CHAR);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Character.TYPE;\n        break;\n      case BYTE:\n        jj_consume_token(BYTE);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Byte.TYPE;\n        break;\n      case SHORT:\n        jj_consume_token(SHORT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Short.TYPE;\n        break;\n      case INT:\n        jj_consume_token(INT);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.type =  Integer.TYPE;\n        break;\n      case LONG:\n        jj_consume_token(LONG);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Long.TYPE;\n        break;\n      case FLOAT:\n        jj_consume_token(FLOAT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Float.TYPE;\n        break;\n      case DOUBLE:\n        jj_consume_token(DOUBLE);\n             jjtree.closeNodeScope(jjtn000, true);\n             jjtc000 = false;\n             jjtreeCloseNodeScope(jjtn000);\n             jjtn000.type =  Double.TYPE;\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void AmbiguousName() throws ParseException {\n /*@bgen(jjtree) AmbiguousName */\n    BSHAmbiguousName jjtn000 = new BSHAmbiguousName(JJTAMBIGUOUSNAME);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t;\n    StringBuffer s;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n        s = new StringBuffer(t.image);\n      label_5:\n      while (true) {\n        if (jj_2_7(2)) {\n          ;\n        } else {\n          break label_5;\n        }\n        jj_consume_token(DOT);\n        t = jj_consume_token(IDENTIFIER);\n                                        s.append(\".\"+t.image);\n      }\n                                                                      jjtree.closeNodeScope(jjtn000, true);\n                                                                      jjtc000 = false;\n                                                                      jjtreeCloseNodeScope(jjtn000);\n        jjtn000.text = s.toString();\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public int NameList() throws ParseException {\n  int count = 0;\n    AmbiguousName();\n                    ++count;\n    label_6:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        ;\n        break;\n      default:\n        break label_6;\n      }\n      jj_consume_token(COMMA);\n      AmbiguousName();\n                                                       ++count;\n    }\n    {if (true) return count;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n/*\n * Expression syntax follows.\n */\n  final public void Expression() throws ParseException {\n    if (jj_2_8(2147483647)) {\n      Assignment();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ConditionalExpression();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void Assignment() throws ParseException {\n /*@bgen(jjtree) Assignment */\n  BSHAssignment jjtn000 = new BSHAssignment(JJTASSIGNMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);int op ;\n    try {\n      PrimaryExpression();\n      op = AssignmentOperator();\n                                    jjtn000.operator = op;\n      Expression();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public int AssignmentOperator() throws ParseException {\n  Token t;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case ASSIGN:\n      jj_consume_token(ASSIGN);\n      break;\n    case STARASSIGN:\n      jj_consume_token(STARASSIGN);\n      break;\n    case SLASHASSIGN:\n      jj_consume_token(SLASHASSIGN);\n      break;\n    case MODASSIGN:\n      jj_consume_token(MODASSIGN);\n      break;\n    case PLUSASSIGN:\n      jj_consume_token(PLUSASSIGN);\n      break;\n    case MINUSASSIGN:\n      jj_consume_token(MINUSASSIGN);\n      break;\n    case ANDASSIGN:\n      jj_consume_token(ANDASSIGN);\n      break;\n    case XORASSIGN:\n      jj_consume_token(XORASSIGN);\n      break;\n    case ORASSIGN:\n      jj_consume_token(ORASSIGN);\n      break;\n    case LSHIFTASSIGN:\n      jj_consume_token(LSHIFTASSIGN);\n      break;\n    case LSHIFTASSIGNX:\n      jj_consume_token(LSHIFTASSIGNX);\n      break;\n    case RSIGNEDSHIFTASSIGN:\n      jj_consume_token(RSIGNEDSHIFTASSIGN);\n      break;\n    case RSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RSIGNEDSHIFTASSIGNX);\n      break;\n    case RUNSIGNEDSHIFTASSIGN:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGN);\n      break;\n    case RUNSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGNX);\n      break;\n    default:\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n        t = getToken(0);\n        {if (true) return t.kind;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public void ConditionalExpression() throws ParseException {\n    ConditionalOrExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case HOOK:\n      jj_consume_token(HOOK);\n      Expression();\n      jj_consume_token(COLON);\n                                                     BSHTernaryExpression jjtn001 = new BSHTernaryExpression(JJTTERNARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n        ConditionalExpression();\n      } catch (Throwable jjte001) {\n                                                     if (jjtc001) {\n                                                       jjtree.clearNodeScope(jjtn001);\n                                                       jjtc001 = false;\n                                                     } else {\n                                                       jjtree.popNode();\n                                                     }\n                                                     if (jjte001 instanceof RuntimeException) {\n                                                       {if (true) throw (RuntimeException)jjte001;}\n                                                     }\n                                                     if (jjte001 instanceof ParseException) {\n                                                       {if (true) throw (ParseException)jjte001;}\n                                                     }\n                                                     {if (true) throw (Error)jjte001;}\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  3);\n                                                       jjtreeCloseNodeScope(jjtn001);\n                                                     }\n      }\n      break;\n    default:\n      ;\n    }\n  }\n\n  final public void ConditionalOrExpression() throws ParseException {\n  Token t=null;\n    ConditionalAndExpression();\n    label_7:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n      case BOOL_ORX:\n        ;\n        break;\n      default:\n        break label_7;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n        t = jj_consume_token(BOOL_OR);\n        break;\n      case BOOL_ORX:\n        t = jj_consume_token(BOOL_ORX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ConditionalAndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void ConditionalAndExpression() throws ParseException {\n  Token t=null;\n    InclusiveOrExpression();\n    label_8:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n      case BOOL_ANDX:\n        ;\n        break;\n      default:\n        break label_8;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n        t = jj_consume_token(BOOL_AND);\n        break;\n      case BOOL_ANDX:\n        t = jj_consume_token(BOOL_ANDX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void InclusiveOrExpression() throws ParseException {\n  Token t=null;\n    ExclusiveOrExpression();\n    label_9:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n      case BIT_ORX:\n        ;\n        break;\n      default:\n        break label_9;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n        t = jj_consume_token(BIT_OR);\n        break;\n      case BIT_ORX:\n        t = jj_consume_token(BIT_ORX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ExclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void ExclusiveOrExpression() throws ParseException {\n  Token t=null;\n    AndExpression();\n    label_10:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case XOR:\n        ;\n        break;\n      default:\n        break label_10;\n      }\n      t = jj_consume_token(XOR);\n      AndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void AndExpression() throws ParseException {\n  Token t=null;\n    EqualityExpression();\n    label_11:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n      case BIT_ANDX:\n        ;\n        break;\n      default:\n        break label_11;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n        t = jj_consume_token(BIT_AND);\n        break;\n      case BIT_ANDX:\n        t = jj_consume_token(BIT_ANDX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      EqualityExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void EqualityExpression() throws ParseException {\n  Token t = null;\n    InstanceOfExpression();\n    label_12:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n      case NE:\n        ;\n        break;\n      default:\n        break label_12;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n        t = jj_consume_token(EQ);\n        break;\n      case NE:\n        t = jj_consume_token(NE);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InstanceOfExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n    }\n  }\n\n  final public void InstanceOfExpression() throws ParseException {\n  Token t = null;\n    RelationalExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case INSTANCEOF:\n      t = jj_consume_token(INSTANCEOF);\n      Type();\n                              BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                              boolean jjtc001 = true;\n                              jjtree.openNodeScope(jjtn001);\n                              jjtreeOpenNodeScope(jjtn001);\n      try {\n                              jjtree.closeNodeScope(jjtn001,  2);\n                              jjtc001 = false;\n                              jjtreeCloseNodeScope(jjtn001);\n                              jjtn001.kind = t.kind;\n      } finally {\n                              if (jjtc001) {\n                                jjtree.closeNodeScope(jjtn001,  2);\n                                jjtreeCloseNodeScope(jjtn001);\n                              }\n      }\n      break;\n    default:\n      ;\n    }\n  }\n\n  final public void RelationalExpression() throws ParseException {\n  Token t = null;\n    ShiftExpression();\n    label_13:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case GT:\n      case GTX:\n      case LT:\n      case LTX:\n      case LE:\n      case LEX:\n      case GE:\n      case GEX:\n        ;\n        break;\n      default:\n        break label_13;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LT:\n        t = jj_consume_token(LT);\n        break;\n      case LTX:\n        t = jj_consume_token(LTX);\n        break;\n      case GT:\n        t = jj_consume_token(GT);\n        break;\n      case GTX:\n        t = jj_consume_token(GTX);\n        break;\n      case LE:\n        t = jj_consume_token(LE);\n        break;\n      case LEX:\n        t = jj_consume_token(LEX);\n        break;\n      case GE:\n        t = jj_consume_token(GE);\n        break;\n      case GEX:\n        t = jj_consume_token(GEX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ShiftExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);\n    }\n      }\n    }\n  }\n\n  final public void ShiftExpression() throws ParseException {\n  Token t = null;\n    AdditiveExpression();\n    label_14:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n      case LSHIFTX:\n      case RSIGNEDSHIFT:\n      case RSIGNEDSHIFTX:\n      case RUNSIGNEDSHIFT:\n      case RUNSIGNEDSHIFTX:\n        ;\n        break;\n      default:\n        break label_14;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n        t = jj_consume_token(LSHIFT);\n        break;\n      case LSHIFTX:\n        t = jj_consume_token(LSHIFTX);\n        break;\n      case RSIGNEDSHIFT:\n        t = jj_consume_token(RSIGNEDSHIFT);\n        break;\n      case RSIGNEDSHIFTX:\n        t = jj_consume_token(RSIGNEDSHIFTX);\n        break;\n      case RUNSIGNEDSHIFT:\n        t = jj_consume_token(RUNSIGNEDSHIFT);\n        break;\n      case RUNSIGNEDSHIFTX:\n        t = jj_consume_token(RUNSIGNEDSHIFTX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      AdditiveExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);\n    }\n      }\n    }\n  }\n\n  final public void AdditiveExpression() throws ParseException {\n  Token t = null;\n    MultiplicativeExpression();\n    label_15:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n      case MINUS:\n        ;\n        break;\n      default:\n        break label_15;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      MultiplicativeExpression();\n                                                     BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n                                                     jjtree.closeNodeScope(jjtn001,  2);\n                                                     jjtc001 = false;\n                                                     jjtreeCloseNodeScope(jjtn001);\n                                                     jjtn001.kind = t.kind;\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  2);\n                                                       jjtreeCloseNodeScope(jjtn001);\n                                                     }\n      }\n    }\n  }\n\n  final public void MultiplicativeExpression() throws ParseException {\n  Token t = null;\n    UnaryExpression();\n    label_16:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n      case SLASH:\n      case MOD:\n        ;\n        break;\n      default:\n        break label_16;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n        t = jj_consume_token(STAR);\n        break;\n      case SLASH:\n        t = jj_consume_token(SLASH);\n        break;\n      case MOD:\n        t = jj_consume_token(MOD);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n                      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                      boolean jjtc001 = true;\n                      jjtree.openNodeScope(jjtn001);\n                      jjtreeOpenNodeScope(jjtn001);\n      try {\n                      jjtree.closeNodeScope(jjtn001,  2);\n                      jjtc001 = false;\n                      jjtreeCloseNodeScope(jjtn001);\n                      jjtn001.kind = t.kind;\n      } finally {\n                      if (jjtc001) {\n                        jjtree.closeNodeScope(jjtn001,  2);\n                        jjtreeCloseNodeScope(jjtn001);\n                      }\n      }\n    }\n  }\n\n  final public void UnaryExpression() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case PLUS:\n    case MINUS:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    case INCR:\n      PreIncrementExpression();\n      break;\n    case DECR:\n      PreDecrementExpression();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n      UnaryExpressionNotPlusMinus();\n      break;\n    default:\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n  }\n\n  final public void PreIncrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(INCR);\n    PrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n    }\n  }\n\n  final public void PreDecrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(DECR);\n    PrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n    }\n  }\n\n  final public void UnaryExpressionNotPlusMinus() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case BANG:\n    case TILDE:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TILDE:\n        t = jj_consume_token(TILDE);\n        break;\n      case BANG:\n        t = jj_consume_token(BANG);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    default:\n      if (jj_2_9(2147483647)) {\n        CastExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FALSE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case SHORT:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n          PostfixExpression();\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    }\n  }\n\n// This production is to determine lookahead only.\n  final public void CastLookahead() throws ParseException {\n    if (jj_2_10(2)) {\n      jj_consume_token(LPAREN);\n      PrimitiveType();\n    } else if (jj_2_11(2147483647)) {\n      jj_consume_token(LPAREN);\n      AmbiguousName();\n      jj_consume_token(LBRACKET);\n      jj_consume_token(RBRACKET);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LPAREN:\n        jj_consume_token(LPAREN);\n        AmbiguousName();\n        jj_consume_token(RPAREN);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case TILDE:\n          jj_consume_token(TILDE);\n          break;\n        case BANG:\n          jj_consume_token(BANG);\n          break;\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          break;\n        case IDENTIFIER:\n          jj_consume_token(IDENTIFIER);\n          break;\n        case NEW:\n          jj_consume_token(NEW);\n          break;\n        case FALSE:\n        case NULL:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n          Literal();\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void PostfixExpression() throws ParseException {\n  Token t = null;\n    if (jj_2_12(2147483647)) {\n      PrimaryExpression();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INCR:\n        t = jj_consume_token(INCR);\n        break;\n      case DECR:\n        t = jj_consume_token(DECR);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n                                BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n                                boolean jjtc001 = true;\n                                jjtree.openNodeScope(jjtn001);\n                                jjtreeOpenNodeScope(jjtn001);\n      try {\n                                jjtree.closeNodeScope(jjtn001,  1);\n                                jjtc001 = false;\n                                jjtreeCloseNodeScope(jjtn001);\n                jjtn001.kind = t.kind; jjtn001.postfix = true;\n      } finally {\n                                if (jjtc001) {\n                                  jjtree.closeNodeScope(jjtn001,  1);\n                                  jjtreeCloseNodeScope(jjtn001);\n                                }\n      }\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n        PrimaryExpression();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void CastExpression() throws ParseException {\n /*@bgen(jjtree) CastExpression */\n  BSHCastExpression jjtn000 = new BSHCastExpression(JJTCASTEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_13(2147483647)) {\n        jj_consume_token(LPAREN);\n        Type();\n        jj_consume_token(RPAREN);\n        UnaryExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          Type();\n          jj_consume_token(RPAREN);\n          UnaryExpressionNotPlusMinus();\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void PrimaryExpression() throws ParseException {\n                                               /*@bgen(jjtree) PrimaryExpression */\n  BSHPrimaryExpression jjtn000 = new BSHPrimaryExpression(JJTPRIMARYEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      PrimaryPrefix();\n      label_17:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACE:\n        case LBRACKET:\n        case DOT:\n          ;\n          break;\n        default:\n          break label_17;\n        }\n        PrimarySuffix();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void MethodInvocation() throws ParseException {\n                                             /*@bgen(jjtree) MethodInvocation */\n  BSHMethodInvocation jjtn000 = new BSHMethodInvocation(JJTMETHODINVOCATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      AmbiguousName();\n      Arguments();\n    } catch (Throwable jjte000) {\n     if (jjtc000) {\n       jjtree.clearNodeScope(jjtn000);\n       jjtc000 = false;\n     } else {\n       jjtree.popNode();\n     }\n     if (jjte000 instanceof RuntimeException) {\n       {if (true) throw (RuntimeException)jjte000;}\n     }\n     if (jjte000 instanceof ParseException) {\n       {if (true) throw (ParseException)jjte000;}\n     }\n     {if (true) throw (Error)jjte000;}\n    } finally {\n     if (jjtc000) {\n       jjtree.closeNodeScope(jjtn000, true);\n       jjtreeCloseNodeScope(jjtn000);\n     }\n    }\n  }\n\n  final public void PrimaryPrefix() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case FALSE:\n    case NULL:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n      Literal();\n      break;\n    case LPAREN:\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      break;\n    case NEW:\n      AllocationExpression();\n      break;\n    default:\n      if (jj_2_14(2147483647)) {\n        MethodInvocation();\n      } else if (jj_2_15(2147483647)) {\n        Type();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          AmbiguousName();\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    }\n  }\n\n  final public void PrimarySuffix() throws ParseException {\n /*@bgen(jjtree) PrimarySuffix */\n    BSHPrimarySuffix jjtn000 = new BSHPrimarySuffix(JJTPRIMARYSUFFIX);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_16(2)) {\n        jj_consume_token(DOT);\n        jj_consume_token(CLASS);\n                jjtree.closeNodeScope(jjtn000, true);\n                jjtc000 = false;\n                jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.CLASS;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.INDEX;\n          break;\n        case DOT:\n          jj_consume_token(DOT);\n          t = jj_consume_token(IDENTIFIER);\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LPAREN:\n            Arguments();\n            break;\n          default:\n            ;\n          }\n                                         jjtree.closeNodeScope(jjtn000, true);\n                                         jjtc000 = false;\n                                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.NAME;\n        jjtn000.field = t.image;\n          break;\n        case LBRACE:\n          jj_consume_token(LBRACE);\n          Expression();\n          jj_consume_token(RBRACE);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.PROPERTY;\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void Literal() throws ParseException {\n /*@bgen(jjtree) Literal */\n    BSHLiteral jjtn000 = new BSHLiteral(JJTLITERAL);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token x;\n    boolean b;\n    String literal;\n    char ch;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INTEGER_LITERAL:\n        x = jj_consume_token(INTEGER_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'l' || ch == 'L')\n    {\n        literal = literal.substring(0,literal.length()-1);\n\n        // This really should be Long.decode, but there isn't one. As a result,\n        // hex and octal literals ending in 'l' or 'L' don't work.\n        jjtn000.value = new Primitive( new Long( literal ).longValue() );\n    }\n    else\n                try {\n                jjtn000.value = new Primitive(\n                                Integer.decode( literal ).intValue() );\n                } catch ( NumberFormatException e ) {\n                        {if (true) throw createParseException(\n                                \"Error or number too big for integer type: \"+ literal );}\n                }\n        break;\n      case FLOATING_POINT_LITERAL:\n        x = jj_consume_token(FLOATING_POINT_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'f' || ch == 'F')\n    {\n        literal = literal.substring(0,literal.length()-1);\n        jjtn000.value = new Primitive( new Float( literal ).floatValue() );\n    }\n    else\n    {\n        if(ch == 'd' || ch == 'D')\n            literal = literal.substring(0,literal.length()-1);\n\n        jjtn000.value = new Primitive( new Double( literal ).doubleValue() );\n    }\n        break;\n      case CHARACTER_LITERAL:\n        x = jj_consume_token(CHARACTER_LITERAL);\n                            jjtree.closeNodeScope(jjtn000, true);\n                            jjtc000 = false;\n                            jjtreeCloseNodeScope(jjtn000);\n                try {\n                jjtn000.charSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw createParseException(\"Error parsing character: \"+x.image);}\n                }\n        break;\n      case STRING_LITERAL:\n        x = jj_consume_token(STRING_LITERAL);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n                try {\n                        jjtn000.stringSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw createParseException(\"Error parsing string: \"+x.image);}\n                }\n        break;\n      case FALSE:\n      case TRUE:\n        b = BooleanLiteral();\n                          jjtree.closeNodeScope(jjtn000, true);\n                          jjtc000 = false;\n                          jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = new Primitive( b );\n        break;\n      case NULL:\n        NullLiteral();\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.NULL;\n        break;\n      case VOID:\n        VoidLiteral();\n                 jjtree.closeNodeScope(jjtn000, true);\n                 jjtc000 = false;\n                 jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.VOID;\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public boolean BooleanLiteral() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case TRUE:\n      jj_consume_token(TRUE);\n           {if (true) return true;}\n      break;\n    case FALSE:\n      jj_consume_token(FALSE);\n            {if (true) return false;}\n      break;\n    default:\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public void NullLiteral() throws ParseException {\n    jj_consume_token(NULL);\n  }\n\n  final public void VoidLiteral() throws ParseException {\n    jj_consume_token(VOID);\n  }\n\n  final public void Arguments() throws ParseException {\n /*@bgen(jjtree) Arguments */\n  BSHArguments jjtn000 = new BSHArguments(JJTARGUMENTS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ArgumentList();\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n// leave these on the stack for Arguments() to handle\n  final public void ArgumentList() throws ParseException {\n    Expression();\n    label_18:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        ;\n        break;\n      default:\n        break label_18;\n      }\n      jj_consume_token(COMMA);\n      Expression();\n    }\n  }\n\n  final public void AllocationExpression() throws ParseException {\n /*@bgen(jjtree) AllocationExpression */\n  BSHAllocationExpression jjtn000 = new BSHAllocationExpression(JJTALLOCATIONEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_18(2)) {\n        jj_consume_token(NEW);\n        PrimitiveType();\n        ArrayDimensions();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case NEW:\n          jj_consume_token(NEW);\n          AmbiguousName();\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LBRACKET:\n            ArrayDimensions();\n            break;\n          case LPAREN:\n            Arguments();\n            if (jj_2_17(2)) {\n              Block();\n            } else {\n              ;\n            }\n            break;\n          default:\n            jj_consume_token(-1);\n            throw new ParseException();\n          }\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ArrayDimensions() throws ParseException {\n /*@bgen(jjtree) ArrayDimensions */\n  BSHArrayDimensions jjtn000 = new BSHArrayDimensions(JJTARRAYDIMENSIONS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_21(2)) {\n        label_19:\n        while (true) {\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                                        jjtn000.addDefinedDimension();\n          if (jj_2_19(2)) {\n            ;\n          } else {\n            break label_19;\n          }\n        }\n        label_20:\n        while (true) {\n          if (jj_2_20(2)) {\n            ;\n          } else {\n            break label_20;\n          }\n          jj_consume_token(LBRACKET);\n          jj_consume_token(RBRACKET);\n                           jjtn000.addUndefinedDimension();\n        }\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          label_21:\n          while (true) {\n            jj_consume_token(LBRACKET);\n            jj_consume_token(RBRACKET);\n              jjtn000.addUndefinedDimension();\n            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n            case LBRACKET:\n              ;\n              break;\n            default:\n              break label_21;\n            }\n          }\n          ArrayInitializer();\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n * Statement syntax follows.\n */\n  final public void Statement() throws ParseException {\n    if (jj_2_22(2)) {\n      LabeledStatement();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACE:\n        Block();\n        break;\n      case SEMICOLON:\n        EmptyStatement();\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        StatementExpression();\n        jj_consume_token(SEMICOLON);\n        break;\n      case SWITCH:\n        SwitchStatement();\n        break;\n      case IF:\n        IfStatement();\n        break;\n      case WHILE:\n        WhileStatement();\n        break;\n      case DO:\n        DoStatement();\n        break;\n      default:\n        if (isRegularForStatement()) {\n          ForStatement();\n        } else {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case FOR:\n            EnhancedForStatement();\n            break;\n          case BREAK:\n            BreakStatement();\n            break;\n          case CONTINUE:\n            ContinueStatement();\n            break;\n          case RETURN:\n            ReturnStatement();\n            break;\n          case SYNCHRONIZED:\n            SynchronizedStatement();\n            break;\n          case THROW:\n            ThrowStatement();\n            break;\n          case TRY:\n            TryStatement();\n            break;\n          default:\n            jj_consume_token(-1);\n            throw new ParseException();\n          }\n        }\n      }\n    }\n  }\n\n  final public void LabeledStatement() throws ParseException {\n    jj_consume_token(IDENTIFIER);\n    jj_consume_token(COLON);\n    Statement();\n  }\n\n  final public void Block() throws ParseException {\n /*@bgen(jjtree) Block */\n  BSHBlock jjtn000 = new BSHBlock(JJTBLOCK);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      label_22:\n      while (true) {\n        if (jj_2_23(1)) {\n          ;\n        } else {\n          break label_22;\n        }\n        BlockStatement();\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void BlockStatement() throws ParseException {\n    if (jj_2_24(2147483647)) {\n      ClassDeclaration();\n    } else if (jj_2_25(2147483647)) {\n      MethodDeclaration();\n    } else if (jj_2_26(2147483647)) {\n      MethodDeclaration();\n    } else if (jj_2_27(2147483647)) {\n      TypedVariableDeclaration();\n      jj_consume_token(SEMICOLON);\n    } else if (jj_2_28(1)) {\n      Statement();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IMPORT:\n      case STATIC:\n        ImportDeclaration();\n        break;\n      case PACKAGE:\n        PackageDeclaration();\n        break;\n      case FORMAL_COMMENT:\n        FormalComment();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n  final public void FormalComment() throws ParseException {\n /*@bgen(jjtree) #FormalComment( retainComments) */\n        BSHFormalComment jjtn000 = new BSHFormalComment(JJTFORMALCOMMENT);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      t = jj_consume_token(FORMAL_COMMENT);\n                              jjtree.closeNodeScope(jjtn000,  retainComments);\n                              jjtc000 = false;\n                              jjtreeCloseNodeScope(jjtn000);\n                jjtn000.text=t.image;\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000,  retainComments);\n            jjtreeCloseNodeScope(jjtn000);\n          }\n    }\n  }\n\n  final public void EmptyStatement() throws ParseException {\n    jj_consume_token(SEMICOLON);\n  }\n\n  final public void StatementExpression() throws ParseException {\n    Expression();\n  }\n\n  final public void SwitchStatement() throws ParseException {\n /*@bgen(jjtree) SwitchStatement */\n  BSHSwitchStatement jjtn000 = new BSHSwitchStatement(JJTSWITCHSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(SWITCH);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(LBRACE);\n      label_23:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CASE:\n        case _DEFAULT:\n          ;\n          break;\n        default:\n          break label_23;\n        }\n        SwitchLabel();\n        label_24:\n        while (true) {\n          if (jj_2_29(1)) {\n            ;\n          } else {\n            break label_24;\n          }\n          BlockStatement();\n        }\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void SwitchLabel() throws ParseException {\n /*@bgen(jjtree) SwitchLabel */\n  BSHSwitchLabel jjtn000 = new BSHSwitchLabel(JJTSWITCHLABEL);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CASE:\n        jj_consume_token(CASE);\n        Expression();\n        jj_consume_token(COLON);\n        break;\n      case _DEFAULT:\n        jj_consume_token(_DEFAULT);\n        jj_consume_token(COLON);\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n                  jjtn000.isDefault = true;\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void IfStatement() throws ParseException {\n /*@bgen(jjtree) IfStatement */\n  BSHIfStatement jjtn000 = new BSHIfStatement(JJTIFSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(IF);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ELSE:\n        jj_consume_token(ELSE);\n        Statement();\n        break;\n      default:\n        ;\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void WhileStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tDo statement is just a While statement with a special hook to execute\n\tat least once.\n*/\n  final public void DoStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(DO);\n      Statement();\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(SEMICOLON);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.isDoStatement=true;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ForStatement() throws ParseException {\n /*@bgen(jjtree) ForStatement */\n  BSHForStatement jjtn000 = new BSHForStatement(JJTFORSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      jj_consume_token(FOR);\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ABSTRACT:\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FINAL:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NATIVE:\n      case NEW:\n      case NULL:\n      case PRIVATE:\n      case PROTECTED:\n      case PUBLIC:\n      case SHORT:\n      case STATIC:\n      case STRICTFP:\n      case SYNCHRONIZED:\n      case TRANSIENT:\n      case TRUE:\n      case VOID:\n      case VOLATILE:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ForInit();\n                          jjtn000.hasForInit=true;\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n                         jjtn000.hasExpression=true;\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ForUpdate();\n                        jjtn000.hasForUpdate=true;\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n/*\n\tThe new JDK1.5 enhanced for statement.\n\te.g. for( int a : arrayOfInts ) { }\n\tWe also support loose typing of the iterator var for BeanShell\n\te.g. for( a : arrayOfInts ) { }\n*/\n  final public void EnhancedForStatement() throws ParseException {\n /*@bgen(jjtree) EnhancedForStatement */\n  BSHEnhancedForStatement jjtn000 = new BSHEnhancedForStatement(JJTENHANCEDFORSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_30(4)) {\n        jj_consume_token(FOR);\n        jj_consume_token(LPAREN);\n        t = jj_consume_token(IDENTIFIER);\n        jj_consume_token(COLON);\n        Expression();\n        jj_consume_token(RPAREN);\n        Statement();\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n                  jjtn000.varName = t.image;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case FOR:\n          jj_consume_token(FOR);\n          jj_consume_token(LPAREN);\n          Type();\n          t = jj_consume_token(IDENTIFIER);\n          jj_consume_token(COLON);\n          Expression();\n          jj_consume_token(RPAREN);\n          Statement();\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n                  jjtn000.varName = t.image;\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ForInit() throws ParseException {\n  Token t = null;\n    if (jj_2_31(2147483647)) {\n      TypedVariableDeclaration();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        StatementExpressionList();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n  }\n\n/**\n\tDeclared a typed variable.\n\tUntyped variables are not declared per-se but are handled by the part\n\tof the grammar that deals with assignments.\n*/\n  final public void TypedVariableDeclaration() throws ParseException {\n /*@bgen(jjtree) TypedVariableDeclaration */\n        BSHTypedVariableDeclaration jjtn000 = new BSHTypedVariableDeclaration(JJTTYPEDVARIABLEDECLARATION);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t = null;\n        Modifiers mods;\n    try {\n      mods = Modifiers(Modifiers.FIELD, false);\n      Type();\n      VariableDeclarator();\n      label_25:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          break label_25;\n        }\n        jj_consume_token(COMMA);\n        VariableDeclarator();\n      }\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n        jjtn000.modifiers = mods;\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);\n          }\n    }\n  }\n\n  final public void StatementExpressionList() throws ParseException {\n /*@bgen(jjtree) StatementExpressionList */\n  BSHStatementExpressionList jjtn000 = new BSHStatementExpressionList(JJTSTATEMENTEXPRESSIONLIST);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      StatementExpression();\n      label_26:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          break label_26;\n        }\n        jj_consume_token(COMMA);\n        StatementExpression();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ForUpdate() throws ParseException {\n    StatementExpressionList();\n  }\n\n  final public void BreakStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(BREAK);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                 jjtree.closeNodeScope(jjtn000, true);\n                                 jjtc000 = false;\n                                 jjtreeCloseNodeScope(jjtn000);\n                                 jjtn000.kind = BREAK;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ContinueStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(CONTINUE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                    jjtree.closeNodeScope(jjtn000, true);\n                                    jjtc000 = false;\n                                    jjtreeCloseNodeScope(jjtn000);\n                                    jjtn000.kind = CONTINUE;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ReturnStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(RETURN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                  jjtree.closeNodeScope(jjtn000, true);\n                                  jjtc000 = false;\n                                  jjtreeCloseNodeScope(jjtn000);\n                                  jjtn000.kind = RETURN;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void SynchronizedStatement() throws ParseException {\n /*@bgen(jjtree) Block */\n  BSHBlock jjtn000 = new BSHBlock(JJTBLOCK);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(SYNCHRONIZED);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Block();\n                                                jjtree.closeNodeScope(jjtn000, true);\n                                                jjtc000 = false;\n                                                jjtreeCloseNodeScope(jjtn000);\n                jjtn000.isSynchronized=true;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void ThrowStatement() throws ParseException {\n /*@bgen(jjtree) ThrowStatement */\n  BSHThrowStatement jjtn000 = new BSHThrowStatement(JJTTHROWSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(THROW);\n      Expression();\n      jj_consume_token(SEMICOLON);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);\n    }\n    }\n  }\n\n  final public void TryStatement() throws ParseException {\n /*@bgen(jjtree) TryStatement */\n  BSHTryStatement jjtn000 = new BSHTryStatement(JJTTRYSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);boolean closed = false;\n    try {\n      jj_consume_token(TRY);\n      Block();\n      label_27:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CATCH:\n          ;\n          break;\n        default:\n          break label_27;\n        }\n        jj_consume_token(CATCH);\n        jj_consume_token(LPAREN);\n        FormalParameter();\n        jj_consume_token(RPAREN);\n        Block();\n                                                      closed = true;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FINALLY:\n        jj_consume_token(FINALLY);\n        Block();\n                              closed = true;\n        break;\n      default:\n        ;\n      }\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n                if ( !closed ) {if (true) throw generateParseException();}\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);\n          }\n    }\n  }\n\n  final private boolean jj_2_1(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_1(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_2(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_2(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_3(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_3(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_4(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_4(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_5(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_5(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_6(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_6(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_7(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_7(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_8(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_8(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_9(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_9(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_10(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_10(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_11(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_11(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_12(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_12(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_13(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_13(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_14(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_14(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_15(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_15(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_16(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_16(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_17(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_17(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_18(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_18(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_19(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_19(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_20(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_20(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_21(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_21(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_22(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_22(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_23(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_23(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_24(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_24(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_25(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_25(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_26(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_26(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_27(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_27(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_28(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_28(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_29(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_29(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_30(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_30(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_2_31(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_31(); }\n    catch(LookaheadSuccess ls) { } return true;\n  }\n\n  final private boolean jj_3R_46() {\n    if (jj_3R_91()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_28() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_46()) {\n    jj_scanpos = xsp;\n    if (jj_3R_47()) {\n    jj_scanpos = xsp;\n    if (jj_3R_48()) {\n    jj_scanpos = xsp;\n    if (jj_3R_49()) {\n    jj_scanpos = xsp;\n    if (jj_3_28()) {\n    jj_scanpos = xsp;\n    if (jj_3R_50()) {\n    jj_scanpos = xsp;\n    if (jj_3R_51()) {\n    jj_scanpos = xsp;\n    if (jj_3R_52()) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3_23() {\n    if (jj_3R_28()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_161() {\n    if (jj_3R_164()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_169()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_38() {\n    if (jj_scan_token(LBRACE)) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_23()) { jj_scanpos = xsp; break; }\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_158() {\n    if (jj_3R_161()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_167()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_40() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_3R_45()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_156() {\n    if (jj_scan_token(HOOK)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_3R_108()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_165() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(108)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(109)) return true;\n    }\n    if (jj_3R_158()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_153() {\n    if (jj_3R_158()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_165()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_90() {\n    if (jj_3R_124()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_89() {\n    if (jj_3R_123()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_88() {\n    if (jj_3R_122()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_162() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(98)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(99)) return true;\n    }\n    if (jj_3R_153()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_87() {\n    if (jj_3R_121()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_148() {\n    if (jj_3R_153()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_162()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_86() {\n    if (jj_3R_120()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_85() {\n    if (jj_3R_119()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_84() {\n    if (jj_3R_118()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_159() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(96)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(97)) return true;\n    }\n    if (jj_3R_148()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_83() {\n    if (jj_3R_117()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_135() {\n    if (jj_3R_148()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_159()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_82() {\n    if (jj_3R_116()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_81() {\n    if (jj_3R_115()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_80() {\n    if (jj_3R_114()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_108() {\n    if (jj_3R_135()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_156()) jj_scanpos = xsp;\n    return false;\n  }\n\n  final private boolean jj_3R_79() {\n    if (jj_3R_113()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_78() {\n    if (jj_3R_112()) return true;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3_17() {\n    if (jj_3R_38()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_77() {\n    if (jj_3R_38()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_45() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_22()) {\n    jj_scanpos = xsp;\n    if (jj_3R_77()) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(78)) {\n    jj_scanpos = xsp;\n    if (jj_3R_78()) {\n    jj_scanpos = xsp;\n    if (jj_3R_79()) {\n    jj_scanpos = xsp;\n    if (jj_3R_80()) {\n    jj_scanpos = xsp;\n    if (jj_3R_81()) {\n    jj_scanpos = xsp;\n    if (jj_3R_82()) {\n    jj_scanpos = xsp;\n    lookingAhead = true;\n    jj_semLA = isRegularForStatement();\n    lookingAhead = false;\n    if (!jj_semLA || jj_3R_83()) {\n    jj_scanpos = xsp;\n    if (jj_3R_84()) {\n    jj_scanpos = xsp;\n    if (jj_3R_85()) {\n    jj_scanpos = xsp;\n    if (jj_3R_86()) {\n    jj_scanpos = xsp;\n    if (jj_3R_87()) {\n    jj_scanpos = xsp;\n    if (jj_3R_88()) {\n    jj_scanpos = xsp;\n    if (jj_3R_89()) {\n    jj_scanpos = xsp;\n    if (jj_3R_90()) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3_22() {\n    if (jj_3R_40()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_34() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(81)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(120)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(121)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(127)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(118)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(119)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(122)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(126)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(124)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(128)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(129)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(130)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(131)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(132)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(133)) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_111() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_29()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_160() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_152() {\n    if (jj_3R_69()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_17()) jj_scanpos = xsp;\n    return false;\n  }\n\n  final private boolean jj_3R_157() {\n    Token xsp;\n    if (jj_3R_160()) return true;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_160()) { jj_scanpos = xsp; break; }\n    }\n    if (jj_3R_97()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_8() {\n    if (jj_3R_33()) return true;\n    if (jj_3R_34()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_20() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_151() {\n    if (jj_3R_150()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_19() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_107() {\n    if (jj_3R_33()) return true;\n    if (jj_3R_34()) return true;\n    if (jj_3R_39()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_21() {\n    Token xsp;\n    if (jj_3_19()) return true;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_19()) { jj_scanpos = xsp; break; }\n    }\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_20()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_150() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_21()) {\n    jj_scanpos = xsp;\n    if (jj_3R_157()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_71() {\n    if (jj_3R_108()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_39() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_70()) {\n    jj_scanpos = xsp;\n    if (jj_3R_71()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_70() {\n    if (jj_3R_107()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_145() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_3R_29()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_151()) {\n    jj_scanpos = xsp;\n    if (jj_3R_152()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3_18() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_3R_36()) return true;\n    if (jj_3R_150()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_130() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_18()) {\n    jj_scanpos = xsp;\n    if (jj_3R_145()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_147() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_39()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_76() {\n    if (jj_3R_29()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_111()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_134() {\n    if (jj_3R_39()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_147()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_106() {\n    if (jj_3R_134()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_7() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_69() {\n    if (jj_scan_token(LPAREN)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_106()) jj_scanpos = xsp;\n    if (jj_scan_token(RPAREN)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_29() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_7()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_68() {\n    if (jj_scan_token(DOUBLE)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_67() {\n    if (jj_scan_token(FLOAT)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_155() {\n    if (jj_scan_token(FALSE)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_66() {\n    if (jj_scan_token(LONG)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_65() {\n    if (jj_scan_token(INT)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_154() {\n    if (jj_scan_token(TRUE)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_149() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_154()) {\n    jj_scanpos = xsp;\n    if (jj_3R_155()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_64() {\n    if (jj_scan_token(SHORT)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_56() {\n    if (jj_3R_29()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_63() {\n    if (jj_scan_token(BYTE)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_62() {\n    if (jj_scan_token(CHAR)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_61() {\n    if (jj_scan_token(BOOLEAN)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_36() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_61()) {\n    jj_scanpos = xsp;\n    if (jj_3R_62()) {\n    jj_scanpos = xsp;\n    if (jj_3R_63()) {\n    jj_scanpos = xsp;\n    if (jj_3R_64()) {\n    jj_scanpos = xsp;\n    if (jj_3R_65()) {\n    jj_scanpos = xsp;\n    if (jj_3R_66()) {\n    jj_scanpos = xsp;\n    if (jj_3R_67()) {\n    jj_scanpos = xsp;\n    if (jj_3R_68()) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_144() {\n    if (jj_scan_token(57)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_74() {\n    if (jj_3R_32()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_42() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_73()) {\n    jj_scanpos = xsp;\n    if (jj_3R_74()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_73() {\n    if (jj_scan_token(VOID)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_143() {\n    if (jj_scan_token(41)) return true;\n    return false;\n  }\n\n  final private boolean jj_3_6() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_142() {\n    if (jj_3R_149()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_55() {\n    if (jj_3R_36()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_110() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_109()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_141() {\n    if (jj_scan_token(STRING_LITERAL)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_32() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_55()) {\n    jj_scanpos = xsp;\n    if (jj_3R_56()) return true;\n    }\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_6()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_140() {\n    if (jj_scan_token(CHARACTER_LITERAL)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_190() {\n    if (jj_scan_token(FINALLY)) return true;\n    if (jj_3R_38()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_4() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_31()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_189() {\n    if (jj_scan_token(CATCH)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_109()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_38()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_136() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;\n  }\n\n  final private boolean jj_3_5() {\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_75() {\n    if (jj_3R_109()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_110()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_109() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_5()) {\n    jj_scanpos = xsp;\n    if (jj_3R_136()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_124() {\n    if (jj_scan_token(TRY)) return true;\n    if (jj_3R_38()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_189()) { jj_scanpos = xsp; break; }\n    }\n    xsp = jj_scanpos;\n    if (jj_3R_190()) jj_scanpos = xsp;\n    return false;\n  }\n\n  final private boolean jj_3R_43() {\n    if (jj_scan_token(LPAREN)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_75()) jj_scanpos = xsp;\n    if (jj_scan_token(RPAREN)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_163() {\n    if (jj_3R_31()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_4()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_139() {\n    if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_97() {\n    if (jj_scan_token(LBRACE)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_163()) jj_scanpos = xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(79)) jj_scanpos = xsp;\n    if (jj_scan_token(RBRACE)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_30() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_scan_token(STAR)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_123() {\n    if (jj_scan_token(THROW)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_180() {\n    if (jj_scan_token(ASSIGN)) return true;\n    if (jj_3R_31()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_54() {\n    if (jj_3R_39()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_188() {\n    if (jj_3R_39()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_53() {\n    if (jj_3R_97()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_31() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_53()) {\n    jj_scanpos = xsp;\n    if (jj_3R_54()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_122() {\n    if (jj_scan_token(SYNCHRONIZED)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_38()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_177() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_176()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_210() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_112()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_121() {\n    if (jj_scan_token(RETURN)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_188()) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_129() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_138()) {\n    jj_scanpos = xsp;\n    if (jj_3R_139()) {\n    jj_scanpos = xsp;\n    if (jj_3R_140()) {\n    jj_scanpos = xsp;\n    if (jj_3R_141()) {\n    jj_scanpos = xsp;\n    if (jj_3R_142()) {\n    jj_scanpos = xsp;\n    if (jj_3R_143()) {\n    jj_scanpos = xsp;\n    if (jj_3R_144()) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_138() {\n    if (jj_scan_token(INTEGER_LITERAL)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_146() {\n    if (jj_3R_69()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_176() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_180()) jj_scanpos = xsp;\n    return false;\n  }\n\n  final private boolean jj_3R_105() {\n    if (jj_3R_129()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_120() {\n    if (jj_scan_token(CONTINUE)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(69)) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_119() {\n    if (jj_scan_token(BREAK)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(69)) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_195() {\n    if (jj_3R_205()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_128() {\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_scan_token(STAR)) return true;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_133() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RBRACE)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_205() {\n    if (jj_3R_112()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_210()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_132() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_146()) jj_scanpos = xsp;\n    return false;\n  }\n\n  final private boolean jj_3_3() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(48)) jj_scanpos = xsp;\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_3R_29()) return true;\n    xsp = jj_scanpos;\n    if (jj_3R_30()) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_94() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_3()) {\n    jj_scanpos = xsp;\n    if (jj_3R_128()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_93() {\n    if (jj_3R_41()) return true;\n    if (jj_3R_32()) return true;\n    if (jj_3R_176()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_177()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_131() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_95() {\n    if (jj_scan_token(PACKAGE)) return true;\n    if (jj_3R_29()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_2() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_175() {\n    if (jj_3R_38()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_16() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_scan_token(CLASS)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_104() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_16()) {\n    jj_scanpos = xsp;\n    if (jj_3R_131()) {\n    jj_scanpos = xsp;\n    if (jj_3R_132()) {\n    jj_scanpos = xsp;\n    if (jj_3R_133()) return true;\n    }\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_174() {\n    if (jj_scan_token(THROWS)) return true;\n    if (jj_3R_76()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_15() {\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(DOT)) return true;\n    if (jj_scan_token(CLASS)) return true;\n    return false;\n  }\n\n  final private boolean jj_3_31() {\n    if (jj_3R_41()) return true;\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;\n  }\n\n  final private boolean jj_3_14() {\n    if (jj_3R_37()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_126() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_127() {\n    if (jj_3R_42()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_92() {\n    if (jj_3R_41()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_126()) {\n    jj_scanpos = xsp;\n    if (jj_3R_127()) return true;\n    }\n    if (jj_3R_43()) return true;\n    xsp = jj_scanpos;\n    if (jj_3R_174()) jj_scanpos = xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_175()) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(78)) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_204() {\n    if (jj_3R_205()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_103() {\n    if (jj_3R_29()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_203() {\n    if (jj_3R_93()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_194() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_203()) {\n    jj_scanpos = xsp;\n    if (jj_3R_204()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_102() {\n    if (jj_3R_32()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_58() {\n    if (jj_3R_104()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_125() {\n    if (jj_scan_token(INTERFACE)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_101() {\n    if (jj_3R_37()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_100() {\n    if (jj_3R_130()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_99() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_137() {\n    if (jj_scan_token(FOR)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_45()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_184() {\n    if (jj_scan_token(ELSE)) return true;\n    if (jj_3R_45()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_173() {\n    if (jj_scan_token(IMPLEMENTS)) return true;\n    if (jj_3R_76()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_57() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_98()) {\n    jj_scanpos = xsp;\n    if (jj_3R_99()) {\n    jj_scanpos = xsp;\n    if (jj_3R_100()) {\n    jj_scanpos = xsp;\n    if (jj_3R_101()) {\n    jj_scanpos = xsp;\n    if (jj_3R_102()) {\n    jj_scanpos = xsp;\n    if (jj_3R_103()) return true;\n    }\n    }\n    }\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_98() {\n    if (jj_3R_129()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_172() {\n    if (jj_scan_token(EXTENDS)) return true;\n    if (jj_3R_29()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_30() {\n    if (jj_scan_token(FOR)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_45()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_118() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_30()) {\n    jj_scanpos = xsp;\n    if (jj_3R_137()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_37() {\n    if (jj_3R_29()) return true;\n    if (jj_3R_69()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_185() {\n    if (jj_3R_194()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_91() {\n    if (jj_3R_41()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(13)) {\n    jj_scanpos = xsp;\n    if (jj_3R_125()) return true;\n    }\n    if (jj_scan_token(IDENTIFIER)) return true;\n    xsp = jj_scanpos;\n    if (jj_3R_172()) jj_scanpos = xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_173()) jj_scanpos = xsp;\n    if (jj_3R_38()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_13() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_36()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_187() {\n    if (jj_3R_195()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_186() {\n    if (jj_3R_39()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_33() {\n    if (jj_3R_57()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_58()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_217() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_208()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_216() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_191()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_117() {\n    if (jj_scan_token(FOR)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_185()) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    xsp = jj_scanpos;\n    if (jj_3R_186()) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    xsp = jj_scanpos;\n    if (jj_3R_187()) jj_scanpos = xsp;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_45()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_214() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_216()) {\n    jj_scanpos = xsp;\n    if (jj_3R_217()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3_12() {\n    if (jj_3R_33()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(100)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(101)) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_219() {\n    if (jj_3R_33()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_116() {\n    if (jj_scan_token(DO)) return true;\n    if (jj_3R_45()) return true;\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3_11() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_29()) return true;\n    if (jj_scan_token(LBRACKET)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_218() {\n    if (jj_3R_33()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(100)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(101)) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_215() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_218()) {\n    jj_scanpos = xsp;\n    if (jj_3R_219()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_72() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(43)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(44)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(45)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(51)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(27)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(39)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(52)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(58)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(10)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(48)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(49)) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_115() {\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_45()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_60() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_29()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(87)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(86)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(72)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(69)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(40)) {\n    jj_scanpos = xsp;\n    if (jj_3R_105()) return true;\n    }\n    }\n    }\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_59() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_29()) return true;\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;\n  }\n\n  final private boolean jj_3_9() {\n    if (jj_3R_35()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_29() {\n    if (jj_3R_28()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_114() {\n    if (jj_scan_token(IF)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_45()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_184()) jj_scanpos = xsp;\n    return false;\n  }\n\n  final private boolean jj_3R_41() {\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_72()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_35() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_10()) {\n    jj_scanpos = xsp;\n    if (jj_3R_59()) {\n    jj_scanpos = xsp;\n    if (jj_3R_60()) return true;\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3_10() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_36()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_213() {\n    if (jj_3R_215()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_212() {\n    if (jj_3R_214()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_202() {\n    if (jj_scan_token(_DEFAULT)) return true;\n    if (jj_scan_token(COLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_211() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(87)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(86)) return true;\n    }\n    if (jj_3R_191()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_208() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_211()) {\n    jj_scanpos = xsp;\n    if (jj_3R_212()) {\n    jj_scanpos = xsp;\n    if (jj_3R_213()) return true;\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_201() {\n    if (jj_scan_token(CASE)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(COLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_193() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_201()) {\n    jj_scanpos = xsp;\n    if (jj_3R_202()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_183() {\n    if (jj_3R_193()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_29()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_207() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_3R_33()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_1() {\n    if (jj_3R_28()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_113() {\n    if (jj_scan_token(SWITCH)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_scan_token(LBRACE)) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_183()) { jj_scanpos = xsp; break; }\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_209() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(104)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(105)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(111)) return true;\n    }\n    }\n    if (jj_3R_191()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_206() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_3R_33()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_199() {\n    if (jj_3R_208()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_198() {\n    if (jj_3R_207()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_197() {\n    if (jj_3R_206()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_196() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(102)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(103)) return true;\n    }\n    if (jj_3R_191()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_191() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_196()) {\n    jj_scanpos = xsp;\n    if (jj_3R_197()) {\n    jj_scanpos = xsp;\n    if (jj_3R_198()) {\n    jj_scanpos = xsp;\n    if (jj_3R_199()) return true;\n    }\n    }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_44() {\n    if (jj_scan_token(THROWS)) return true;\n    if (jj_3R_76()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_112() {\n    if (jj_3R_39()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_181() {\n    if (jj_3R_191()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_209()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_200() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(102)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(103)) return true;\n    }\n    if (jj_3R_181()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_178() {\n    if (jj_3R_181()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_200()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_96() {\n    if (jj_scan_token(FORMAL_COMMENT)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_192() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(112)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(113)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(114)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(115)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(116)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(117)) return true;\n    }\n    }\n    }\n    }\n    }\n    if (jj_3R_178()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_171() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(90)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(95)) return true;\n    }\n    if (jj_3R_166()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_170() {\n    if (jj_3R_178()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_192()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_52() {\n    if (jj_3R_96()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_182() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(84)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(85)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(82)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(83)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(91)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(92)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(93)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(94)) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    if (jj_3R_170()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_27() {\n    if (jj_3R_41()) return true;\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_51() {\n    if (jj_3R_95()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_168() {\n    if (jj_3R_170()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_182()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_50() {\n    if (jj_3R_94()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_26() {\n    if (jj_3R_41()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_3R_43()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_44()) jj_scanpos = xsp;\n    if (jj_scan_token(LBRACE)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_179() {\n    if (jj_scan_token(INSTANCEOF)) return true;\n    if (jj_3R_32()) return true;\n    return false;\n  }\n\n  final private boolean jj_3_28() {\n    if (jj_3R_45()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_166() {\n    if (jj_3R_168()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_179()) jj_scanpos = xsp;\n    return false;\n  }\n\n  final private boolean jj_3_25() {\n    if (jj_3R_41()) return true;\n    if (jj_3R_42()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_49() {\n    if (jj_3R_93()) return true;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3_24() {\n    if (jj_3R_41()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(13)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(37)) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_167() {\n    if (jj_scan_token(XOR)) return true;\n    if (jj_3R_161()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_48() {\n    if (jj_3R_92()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_164() {\n    if (jj_3R_166()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_171()) { jj_scanpos = xsp; break; }\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_47() {\n    if (jj_3R_92()) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_169() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(106)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(107)) return true;\n    }\n    if (jj_3R_164()) return true;\n    return false;\n  }\n\n  public ParserTokenManager token_source;\n  JavaCharStream jj_input_stream;\n  public Token token, jj_nt;\n  private int jj_ntk;\n  private Token jj_scanpos, jj_lastpos;\n  private int jj_la;\n  public boolean lookingAhead = false;\n  private boolean jj_semLA;\n\n  public Parser(java.io.InputStream stream) {\n    jj_input_stream = new JavaCharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n  }\n\n  public void ReInit(java.io.InputStream stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n  }\n\n  public Parser(java.io.Reader stream) {\n    jj_input_stream = new JavaCharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n  }\n\n  public void ReInit(java.io.Reader stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n  }\n\n  public Parser(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n  }\n\n  public void ReInit(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();\n  }\n\n  final private Token jj_consume_token(int kind) throws ParseException {\n    Token oldToken;\n    if ((oldToken = token).next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    if (token.kind == kind) {\n      return token;\n    }\n    token = oldToken;\n    throw generateParseException();\n  }\n\n  static private final class LookaheadSuccess extends java.lang.Error { }\n  final private LookaheadSuccess jj_ls = new LookaheadSuccess();\n  final private boolean jj_scan_token(int kind) {\n    if (jj_scanpos == jj_lastpos) {\n      jj_la--;\n      if (jj_scanpos.next == null) {\n        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();\n      } else {\n        jj_lastpos = jj_scanpos = jj_scanpos.next;\n      }\n    } else {\n      jj_scanpos = jj_scanpos.next;\n    }\n    if (jj_scanpos.kind != kind) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;\n    return false;\n  }\n\n  final public Token getNextToken() {\n    if (token.next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    return token;\n  }\n\n  final public Token getToken(int index) {\n    Token t = lookingAhead ? jj_scanpos : token;\n    for (int i = 0; i < index; i++) {\n      if (t.next != null) t = t.next;\n      else t = t.next = token_source.getNextToken();\n    }\n    return t;\n  }\n\n  final private int jj_ntk() {\n    if ((jj_nt=token.next) == null)\n      return (jj_ntk = (token.next=token_source.getNextToken()).kind);\n    else\n      return (jj_ntk = jj_nt.kind);\n  }\n\n  public ParseException generateParseException() {\n    Token errortok = token.next;\n    int line = errortok.beginLine, column = errortok.beginColumn;\n    String mess = (errortok.kind == 0) ? tokenImage[0] : errortok.image;\n    return new ParseException(\"Parse error at line \" + line + \", column \" + column + \".  Encountered: \" + mess);\n  }\n\n  final public void enable_tracing() {\n  }\n\n  final public void disable_tracing() {", "functions": [{"function_name": "setRetainComments", "code": "        public void setRetainComments( boolean b ) {\n                retainComments = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "jjtreeOpenNodeScope", "code": "        void jjtreeOpenNodeScope(Node n) {\n                ((SimpleNode)n).firstToken = getToken(1);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "jjtreeCloseNodeScope", "code": "        void jjtreeCloseNodeScope(Node n) {\n                ((SimpleNode)n).lastToken = getToken(0);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "reInitInput", "code": "        void reInitInput( Reader in ) {\n                ReInit(in);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popNode", "code": "        public SimpleNode popNode()\n        {\n                if ( jjtree.nodeArity() > 0)  // number of child nodes \n                        return (SimpleNode)jjtree.popNode();\n                else\n                        return null;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [4, 6], [4, 7], [3, 8], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 4], [7, 4], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "reInitTokenInput", "code": "        void reInitTokenInput( Reader in ) {\n                jj_input_stream.ReInit( in,\n                        jj_input_stream.getEndLine(),\n                        jj_input_stream.getEndColumn() );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "main", "code": "        public static void main( String [] args )\n                throws IOException, ParseException\n        {\n                boolean print = false;\n                int i=0;\n                if ( args[0].equals(\"-p\") ) {\n                        i++;\n                        print=true;\n                }\n                for(; i< args.length; i++) {\n                        Reader in = new FileReader(args[i]);\n                        Parser parser = new Parser(in);\n                        parser.setRetainComments(true);\n                        while( !parser.Line()/*eof*/ )\n                                if ( print )\n                                        System.out.println( parser.popNode() );", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [3, 11], [4, 12], [7, 13], [7, 14], [1, 15], [2, 16], [10, 17], [2, 18], [15, 19], [8, 20], [9, 21], [16, 22], [13, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 3], [12, 4], [13, 7], [14, 7], [15, 1], [16, 2], [17, 10], [18, 2], [19, 15], [20, 8], [21, 9], [22, 16], [23, 13], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "isRegularForStatement", "code": "        boolean isRegularForStatement()\n        {\n                int curTok = 1;\n                Token tok;\n                tok = getToken(curTok++);\n                if ( tok.kind != FOR ) return false;\n                tok = getToken(curTok++);\n                if ( tok.kind != LPAREN ) return false;\n                while (true)\n                {\n                        tok = getToken(curTok++);\n                        switch (tok.kind) {\n                                case COLON:\n                                        return false;\n                                case SEMICOLON:\n                                        return true;\n                                case EOF:\n                                        return false;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "SWITCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [0, 9], [3, 10], [3, 11], [0, 12], [1, 13], [7, 14], [9, 15], [10, 16], [12, 17], [5, 18], [1, 19], [13, 20], [13, 21], [13, 22], [19, 23], [20, 24], [21, 25], [22, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 0], [10, 3], [11, 3], [12, 0], [13, 1], [14, 7], [15, 9], [16, 10], [17, 12], [18, 5], [19, 1], [20, 13], [21, 13], [22, 13], [23, 19], [24, 20], [25, 21], [26, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "createParseException", "code": "        ParseException createParseException( String message )\n        {\n                Token errortok = token;\n                int line = errortok.beginLine, column = errortok.beginColumn;\n                String mess = (errortok.kind == 0) ? tokenImage[0] : errortok.image;\n                return new ParseException( \"Parse error at line \" + line\n                        + \", column \" + column + \" : \" + message );", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [2, 8], [7, 9], [8, 10], [9, 11], [9, 12], [10, 13], [12, 14], [8, 15], [14, 16], [14, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 2], [9, 7], [10, 8], [11, 9], [12, 9], [13, 10], [14, 12], [15, 8], [16, 14], [17, 14], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "Line", "code": "  final public boolean Line() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case 0:\n      jj_consume_token(0);\n        Interpreter.debug(\"End of File!\");\n        {if (true) return true;}\n      break;\n    default:\n      if (jj_2_1(1)) {\n        BlockStatement();\n        {if (true) return false;}\n      } else {\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    }\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [4, 9], [4, 10], [6, 11], [2, 12], [2, 13], [2, 14], [10, 15], [6, 16], [11, 17], [12, 18], [12, 19], [13, 20], [14, 21], [16, 22], [6, 23], [6, 24], [6, 25], [18, 26], [23, 27], [24, 28], [24, 29], [28, 30], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 4], [10, 4], [11, 6], [12, 2], [13, 2], [14, 2], [15, 10], [16, 6], [17, 11], [18, 12], [19, 12], [20, 13], [21, 14], [22, 16], [23, 6], [24, 6], [25, 6], [26, 18], [27, 23], [28, 24], [29, 24], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "Modifiers", "code": "  final public Modifiers Modifiers(int context, boolean lookahead) throws ParseException {\n        Modifiers mods = null;\n    label_1:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ABSTRACT:\n      case FINAL:\n      case NATIVE:\n      case PRIVATE:\n      case PROTECTED:\n      case PUBLIC:\n      case STATIC:\n      case STRICTFP:\n      case SYNCHRONIZED:\n      case TRANSIENT:\n      case VOLATILE:\n        ;\n        break;\n      default:\n        break label_1;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PRIVATE:\n        jj_consume_token(PRIVATE);\n        break;\n      case PROTECTED:\n        jj_consume_token(PROTECTED);\n        break;\n      case PUBLIC:\n        jj_consume_token(PUBLIC);\n        break;\n      case SYNCHRONIZED:\n        jj_consume_token(SYNCHRONIZED);\n        break;\n      case FINAL:\n        jj_consume_token(FINAL);\n        break;\n      case NATIVE:\n        jj_consume_token(NATIVE);\n        break;\n      case TRANSIENT:\n        jj_consume_token(TRANSIENT);\n        break;\n      case VOLATILE:\n        jj_consume_token(VOLATILE);\n        break;\n      case ABSTRACT:\n        jj_consume_token(ABSTRACT);\n        break;\n      case STATIC:\n        jj_consume_token(STATIC);\n        break;\n      case STRICTFP:\n        jj_consume_token(STRICTFP);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n                if ( !lookahead )\n                        try {\n                                if ( mods == null ) mods = new Modifiers();\n                                mods.addModifier( context, getToken(0).image );\n                        } catch ( IllegalStateException e ) {\n                                {if (true) throw createParseException( e.getMessage() );}\n                        }\n    }\n        {if (true) return mods;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "IF", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "TRY", "COND_EXPR", "COND_EXPR", "CATCH", "IF", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [6, 9], [7, 10], [7, 11], [2, 12], [2, 13], [2, 14], [3, 15], [12, 16], [13, 17], [14, 18], [16, 19], [16, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 29], [13, 30], [13, 31], [13, 32], [17, 33], [17, 34], [14, 35], [14, 36], [18, 37], [18, 38], [16, 39], [20, 40], [21, 41], [13, 42], [13, 43], [13, 44], [13, 45], [13, 46], [13, 47], [13, 48], [13, 49], [13, 50], [13, 51], [13, 52], [13, 53], [34, 54], [38, 55], [19, 56], [39, 57], [20, 58], [40, 59], [42, 60], [56, 61], [56, 62], [57, 63], [58, 64], [61, 65], [65, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 6], [10, 7], [11, 7], [12, 2], [13, 2], [14, 2], [15, 3], [16, 12], [17, 13], [18, 14], [19, 16], [20, 16], [21, 13], [22, 13], [23, 13], [24, 13], [25, 13], [26, 13], [27, 13], [28, 13], [29, 13], [30, 13], [31, 13], [32, 13], [33, 17], [34, 17], [35, 14], [36, 14], [37, 18], [38, 18], [39, 16], [40, 20], [41, 21], [42, 13], [43, 13], [44, 13], [45, 13], [46, 13], [47, 13], [48, 13], [49, 13], [50, 13], [51, 13], [52, 13], [53, 13], [54, 34], [55, 38], [56, 19], [57, 39], [58, 20], [59, 40], [60, 42], [61, 56], [62, 56], [63, 57], [64, 58], [65, 61], [66, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "ClassDeclaration", "code": "  final public void ClassDeclaration() throws ParseException {\n /*@bgen(jjtree) ClassDeclaration */\n        BSHClassDeclaration jjtn000 = new BSHClassDeclaration(JJTCLASSDECLARATION);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Modifiers mods;\n        Token name;\n        int numInterfaces;\n    try {\n      mods = Modifiers(Modifiers.CLASS, false);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CLASS:\n        jj_consume_token(CLASS);\n        break;\n      case INTERFACE:\n        jj_consume_token(INTERFACE);\n                                  jjtn000.isInterface=true;\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      name = jj_consume_token(IDENTIFIER);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EXTENDS:\n        jj_consume_token(EXTENDS);\n        AmbiguousName();\n                                      jjtn000.extend = true;\n        break;\n      default:\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IMPLEMENTS:\n        jj_consume_token(IMPLEMENTS);\n        numInterfaces = NameList();\n                  jjtn000.numInterfaces=numInterfaces;\n        break;\n      default:\n        ;\n      }\n      Block();\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n                jjtn000.modifiers = mods;\n                jjtn000.name = name.image;\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "SWITCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [0, 12], [0, 13], [8, 14], [8, 15], [8, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [9, 23], [10, 24], [1, 25], [11, 26], [1, 27], [5, 28], [6, 29], [8, 30], [14, 31], [15, 32], [20, 33], [21, 34], [9, 35], [23, 36], [23, 37], [10, 38], [24, 39], [24, 40], [25, 41], [11, 42], [11, 43], [11, 44], [26, 45], [26, 46], [27, 47], [7, 48], [7, 49], [30, 50], [30, 51], [9, 52], [9, 53], [9, 54], [37, 55], [10, 56], [10, 57], [10, 58], [40, 59], [42, 60], [11, 61], [11, 62], [11, 63], [11, 64], [46, 65], [47, 66], [49, 67], [14, 68], [15, 69], [16, 70], [16, 71], [16, 72], [53, 73], [56, 74], [61, 75], [62, 76], [68, 77], [68, 78], [69, 79], [69, 80], [71, 81], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 0], [13, 0], [14, 8], [15, 8], [16, 8], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 9], [24, 10], [25, 1], [26, 11], [27, 1], [28, 5], [29, 6], [30, 8], [31, 14], [32, 15], [33, 20], [34, 21], [35, 9], [36, 23], [37, 23], [38, 10], [39, 24], [40, 24], [41, 25], [42, 11], [43, 11], [44, 11], [45, 26], [46, 26], [47, 27], [48, 7], [49, 7], [50, 30], [51, 30], [52, 9], [53, 9], [54, 9], [55, 37], [56, 10], [57, 10], [58, 10], [59, 40], [60, 42], [61, 11], [62, 11], [63, 11], [64, 11], [65, 46], [66, 47], [67, 49], [68, 14], [69, 15], [70, 16], [71, 16], [72, 16], [73, 53], [74, 56], [75, 61], [76, 62], [77, 68], [78, 68], [79, 69], [80, 69], [81, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81]]}, {"function_name": "MethodDeclaration", "code": "  final public void MethodDeclaration() throws ParseException {\n /*@bgen(jjtree) MethodDeclaration */\n        BSHMethodDeclaration jjtn000 = new BSHMethodDeclaration(JJTMETHODDECLARATION);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t = null;\n        Modifiers mods;\n        int count;\n    try {\n      mods = Modifiers(Modifiers.METHOD, false);\n                                                      jjtn000.modifiers = mods;\n      if (jj_2_2(2147483647)) {\n        t = jj_consume_token(IDENTIFIER);\n                           jjtn000.name = t.image;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case SHORT:\n        case VOID:\n        case IDENTIFIER:\n          ReturnType();\n          t = jj_consume_token(IDENTIFIER);\n                           jjtn000.name = t.image;\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n      FormalParameters();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case THROWS:\n        jj_consume_token(THROWS);\n        count = NameList();\n                                      jjtn000.numThrows=count;\n        break;\n      default:\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACE:\n        Block();\n        break;\n      case SEMICOLON:\n        jj_consume_token(SEMICOLON);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "SWITCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [0, 12], [0, 13], [8, 14], [8, 15], [8, 16], [9, 17], [10, 18], [1, 19], [11, 20], [1, 21], [1, 22], [4, 23], [5, 24], [6, 25], [8, 26], [14, 27], [15, 28], [9, 29], [9, 30], [9, 31], [17, 32], [17, 33], [10, 34], [18, 35], [18, 36], [11, 37], [20, 38], [22, 39], [7, 40], [7, 41], [26, 42], [26, 43], [29, 44], [9, 45], [9, 46], [9, 47], [33, 48], [10, 49], [10, 50], [10, 51], [36, 52], [37, 53], [11, 54], [11, 55], [39, 56], [41, 57], [14, 58], [15, 59], [16, 60], [16, 61], [16, 62], [45, 63], [50, 64], [37, 65], [37, 66], [53, 67], [53, 68], [55, 69], [58, 70], [58, 71], [59, 72], [59, 73], [61, 74], [65, 75], [37, 76], [37, 77], [37, 78], [37, 79], [68, 80], [76, 81], [78, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 0], [13, 0], [14, 8], [15, 8], [16, 8], [17, 9], [18, 10], [19, 1], [20, 11], [21, 1], [22, 1], [23, 4], [24, 5], [25, 6], [26, 8], [27, 14], [28, 15], [29, 9], [30, 9], [31, 9], [32, 17], [33, 17], [34, 10], [35, 18], [36, 18], [37, 11], [38, 20], [39, 22], [40, 7], [41, 7], [42, 26], [43, 26], [44, 29], [45, 9], [46, 9], [47, 9], [48, 33], [49, 10], [50, 10], [51, 10], [52, 36], [53, 37], [54, 11], [55, 11], [56, 39], [57, 41], [58, 14], [59, 15], [60, 16], [61, 16], [62, 16], [63, 45], [64, 50], [65, 37], [66, 37], [67, 53], [68, 53], [69, 55], [70, 58], [71, 58], [72, 59], [73, 59], [74, 61], [75, 65], [76, 37], [77, 37], [78, 37], [79, 37], [80, 68], [81, 76], [82, 78], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "PackageDeclaration", "code": "  final public void PackageDeclaration() throws ParseException {\n /*@bgen(jjtree) PackageDeclaration */\n  BSHPackageDeclaration jjtn000 = new BSHPackageDeclaration(JJTPACKAGEDECLARATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(PACKAGE);\n      AmbiguousName();\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [2, 13], [3, 14], [5, 15], [8, 16], [9, 17], [4, 18], [4, 19], [15, 20], [15, 21], [19, 22], [8, 23], [9, 24], [10, 25], [10, 26], [10, 27], [23, 28], [23, 29], [24, 30], [24, 31], [26, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 2], [14, 3], [15, 5], [16, 8], [17, 9], [18, 4], [19, 4], [20, 15], [21, 15], [22, 19], [23, 8], [24, 9], [25, 10], [26, 10], [27, 10], [28, 23], [29, 23], [30, 24], [31, 24], [32, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "ImportDeclaration", "code": "  final public void ImportDeclaration() throws ParseException {\n /*@bgen(jjtree) ImportDeclaration */\n    BSHImportDeclaration jjtn000 = new BSHImportDeclaration(JJTIMPORTDECLARATION);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token s = null;\n        Token t = null;\n    try {\n      if (jj_2_3(3)) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case STATIC:\n          s = jj_consume_token(STATIC);\n          break;\n        default:\n          ;\n        }\n        jj_consume_token(IMPORT);\n        AmbiguousName();\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case DOT:\n          t = jj_consume_token(DOT);\n          jj_consume_token(STAR);\n          break;\n        default:\n          ;\n        }\n        jj_consume_token(SEMICOLON);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n                if ( s != null ) jjtn000.staticImport = true;\n                if ( t != null ) jjtn000.importPackage = true;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IMPORT:\n          jj_consume_token(IMPORT);\n          jj_consume_token(STAR);\n          jj_consume_token(SEMICOLON);\n                     jjtree.closeNodeScope(jjtn000, true);\n                     jjtc000 = false;\n                     jjtreeCloseNodeScope(jjtn000);\n                jjtn000.superImport = true;\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "IF", "IF", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [0, 9], [0, 10], [7, 11], [7, 12], [7, 13], [8, 14], [2, 15], [3, 16], [4, 17], [5, 18], [7, 19], [11, 20], [12, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [14, 27], [6, 28], [6, 29], [19, 30], [19, 31], [22, 32], [23, 33], [24, 34], [8, 35], [8, 36], [8, 37], [8, 38], [25, 39], [8, 40], [8, 41], [26, 42], [29, 43], [11, 44], [12, 45], [13, 46], [13, 47], [13, 48], [22, 49], [22, 50], [32, 51], [32, 52], [23, 53], [33, 54], [24, 55], [34, 56], [36, 57], [37, 58], [25, 59], [39, 60], [39, 61], [26, 62], [42, 63], [42, 64], [44, 65], [44, 66], [45, 67], [45, 68], [47, 69], [49, 70], [22, 71], [22, 72], [22, 73], [22, 74], [22, 75], [22, 76], [22, 77], [22, 78], [52, 79], [53, 80], [55, 81], [25, 82], [25, 83], [61, 84], [26, 85], [64, 86], [71, 87], [72, 88], [74, 89], [75, 90], [83, 91], [85, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 0], [10, 0], [11, 7], [12, 7], [13, 7], [14, 8], [15, 2], [16, 3], [17, 4], [18, 5], [19, 7], [20, 11], [21, 12], [22, 8], [23, 8], [24, 8], [25, 8], [26, 8], [27, 14], [28, 6], [29, 6], [30, 19], [31, 19], [32, 22], [33, 23], [34, 24], [35, 8], [36, 8], [37, 8], [38, 8], [39, 25], [40, 8], [41, 8], [42, 26], [43, 29], [44, 11], [45, 12], [46, 13], [47, 13], [48, 13], [49, 22], [50, 22], [51, 32], [52, 32], [53, 23], [54, 33], [55, 24], [56, 34], [57, 36], [58, 37], [59, 25], [60, 39], [61, 39], [62, 26], [63, 42], [64, 42], [65, 44], [66, 44], [67, 45], [68, 45], [69, 47], [70, 49], [71, 22], [72, 22], [73, 22], [74, 22], [75, 22], [76, 22], [77, 22], [78, 22], [79, 52], [80, 53], [81, 55], [82, 25], [83, 25], [84, 61], [85, 26], [86, 64], [87, 71], [88, 72], [89, 74], [90, 75], [91, 83], [92, 85], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "VariableDeclarator", "code": "  final public void VariableDeclarator() throws ParseException {\n /*@bgen(jjtree) VariableDeclarator */\n        BSHVariableDeclarator jjtn000 = new BSHVariableDeclarator(JJTVARIABLEDECLARATOR);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ASSIGN:\n        jj_consume_token(ASSIGN);\n        VariableInitializer();\n        break;\n      default:\n        ;\n      }\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n                jjtn000.name = t.image;\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [1, 13], [1, 14], [1, 15], [1, 16], [7, 17], [1, 18], [3, 19], [4, 20], [6, 21], [10, 22], [11, 23], [15, 24], [16, 25], [7, 26], [17, 27], [17, 28], [18, 29], [5, 30], [5, 31], [21, 32], [21, 33], [7, 34], [7, 35], [28, 36], [31, 37], [10, 38], [11, 39], [12, 40], [12, 41], [12, 42], [38, 43], [38, 44], [39, 45], [39, 46], [41, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 1], [14, 1], [15, 1], [16, 1], [17, 7], [18, 1], [19, 3], [20, 4], [21, 6], [22, 10], [23, 11], [24, 15], [25, 16], [26, 7], [27, 17], [28, 17], [29, 18], [30, 5], [31, 5], [32, 21], [33, 21], [34, 7], [35, 7], [36, 28], [37, 31], [38, 10], [39, 11], [40, 12], [41, 12], [42, 12], [43, 38], [44, 38], [45, 39], [46, 39], [47, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "VariableInitializer", "code": "  final public void VariableInitializer() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case LBRACE:\n      ArrayInitializer();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n    case INCR:\n    case DECR:\n    case PLUS:\n    case MINUS:\n      Expression();\n      break;\n    default:\n      jj_consume_token(-1);\n      throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [2, 7], [3, 8], [1, 9], [1, 10], [1, 11], [7, 12], [9, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 2], [8, 3], [9, 1], [10, 1], [11, 1], [12, 7], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "ArrayInitializer", "code": "  final public void ArrayInitializer() throws ParseException {\n /*@bgen(jjtree) ArrayInitializer */\n  BSHArrayInitializer jjtn000 = new BSHArrayInitializer(JJTARRAYINITIALIZER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case LBRACE:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        VariableInitializer();\n        label_2:\n        while (true) {\n          if (jj_2_4(2)) {\n            ;\n          } else {\n            break label_2;\n          }\n          jj_consume_token(COMMA);\n          VariableInitializer();\n        }\n        break;\n      default:\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        jj_consume_token(COMMA);\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "COND_EXPR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "LOOP", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [5, 10], [5, 11], [5, 12], [1, 13], [6, 14], [7, 15], [1, 16], [2, 17], [3, 18], [5, 19], [10, 20], [11, 21], [6, 22], [14, 23], [14, 24], [7, 25], [7, 26], [15, 27], [15, 28], [4, 29], [4, 30], [19, 31], [19, 32], [6, 33], [24, 34], [26, 35], [7, 36], [28, 37], [30, 38], [10, 39], [11, 40], [12, 41], [12, 42], [12, 43], [26, 44], [39, 45], [39, 46], [40, 47], [40, 48], [42, 49], [26, 50], [26, 51], [44, 52], [44, 53], [52, 54], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 5], [11, 5], [12, 5], [13, 1], [14, 6], [15, 7], [16, 1], [17, 2], [18, 3], [19, 5], [20, 10], [21, 11], [22, 6], [23, 14], [24, 14], [25, 7], [26, 7], [27, 15], [28, 15], [29, 4], [30, 4], [31, 19], [32, 19], [33, 6], [34, 24], [35, 26], [36, 7], [37, 28], [38, 30], [39, 10], [40, 11], [41, 12], [42, 12], [43, 12], [44, 26], [45, 39], [46, 39], [47, 40], [48, 40], [49, 42], [50, 26], [51, 26], [52, 44], [53, 44], [54, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "FormalParameters", "code": "  final public void FormalParameters() throws ParseException {\n /*@bgen(jjtree) FormalParameters */\n  BSHFormalParameters jjtn000 = new BSHFormalParameters(JJTFORMALPARAMETERS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        FormalParameter();\n        label_3:\n        while (true) {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case COMMA:\n            ;\n            break;\n          default:\n            break label_3;\n          }\n          jj_consume_token(COMMA);\n          FormalParameter();\n        }\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LOOP", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "SWITCH", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [2, 15], [3, 16], [5, 17], [9, 18], [10, 19], [6, 20], [6, 21], [13, 22], [13, 23], [4, 24], [4, 25], [17, 26], [17, 27], [21, 28], [6, 29], [23, 30], [25, 31], [9, 32], [10, 33], [11, 34], [11, 35], [11, 36], [21, 37], [32, 38], [32, 39], [33, 40], [33, 41], [35, 42], [21, 43], [21, 44], [37, 45], [37, 46], [37, 47], [45, 48], [45, 49], [49, 50], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 2], [16, 3], [17, 5], [18, 9], [19, 10], [20, 6], [21, 6], [22, 13], [23, 13], [24, 4], [25, 4], [26, 17], [27, 17], [28, 21], [29, 6], [30, 23], [31, 25], [32, 9], [33, 10], [34, 11], [35, 11], [36, 11], [37, 21], [38, 32], [39, 32], [40, 33], [41, 33], [42, 35], [43, 21], [44, 21], [45, 37], [46, 37], [47, 37], [48, 45], [49, 45], [50, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "FormalParameter", "code": "  final public void FormalParameter() throws ParseException {\n /*@bgen(jjtree) FormalParameter */\n  BSHFormalParameter jjtn000 = new BSHFormalParameter(JJTFORMALPARAMETER);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      if (jj_2_5(2)) {\n        Type();\n        t = jj_consume_token(IDENTIFIER);\n                                       jjtree.closeNodeScope(jjtn000, true);\n                                       jjtc000 = false;\n                                       jjtreeCloseNodeScope(jjtn000);\n                                       jjtn000.name = t.image;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          t = jj_consume_token(IDENTIFIER);\n                   jjtree.closeNodeScope(jjtn000, true);\n                   jjtc000 = false;\n                   jjtreeCloseNodeScope(jjtn000);\n                   jjtn000.name = t.image;\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [3, 14], [4, 15], [6, 16], [10, 17], [11, 18], [7, 19], [13, 20], [5, 21], [5, 22], [16, 23], [16, 24], [19, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [22, 32], [10, 33], [11, 34], [12, 35], [12, 36], [12, 37], [19, 38], [19, 39], [25, 40], [25, 41], [28, 42], [29, 43], [30, 44], [33, 45], [33, 46], [34, 47], [34, 48], [36, 49], [38, 50], [19, 51], [19, 52], [19, 53], [19, 54], [19, 55], [19, 56], [41, 57], [51, 58], [54, 59], [55, 60], [56, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 3], [15, 4], [16, 6], [17, 10], [18, 11], [19, 7], [20, 13], [21, 5], [22, 5], [23, 16], [24, 16], [25, 19], [26, 7], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 22], [33, 10], [34, 11], [35, 12], [36, 12], [37, 12], [38, 19], [39, 19], [40, 25], [41, 25], [42, 28], [43, 29], [44, 30], [45, 33], [46, 33], [47, 34], [48, 34], [49, 36], [50, 38], [51, 19], [52, 19], [53, 19], [54, 19], [55, 19], [56, 19], [57, 41], [58, 51], [59, 54], [60, 55], [61, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "Type", "code": "  final public void Type() throws ParseException {\n /*@bgen(jjtree) Type */\n  BSHType jjtn000 = new BSHType(JJTTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n        PrimitiveType();\n        break;\n      case IDENTIFIER:\n        AmbiguousName();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      label_4:\n      while (true) {\n        if (jj_2_6(2)) {\n          ;\n        } else {\n          break label_4;\n        }\n        jj_consume_token(LBRACKET);\n        jj_consume_token(RBRACKET);\n                                 jjtn000.addArrayDimension();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [5, 10], [5, 11], [5, 12], [6, 13], [7, 14], [2, 15], [3, 16], [5, 17], [10, 18], [11, 19], [6, 20], [7, 21], [7, 22], [7, 23], [14, 24], [14, 25], [4, 26], [4, 27], [17, 28], [17, 29], [6, 30], [6, 31], [6, 32], [20, 33], [21, 34], [7, 35], [7, 36], [7, 37], [25, 38], [27, 39], [10, 40], [11, 41], [12, 42], [12, 43], [12, 44], [20, 45], [33, 46], [35, 47], [40, 48], [40, 49], [41, 50], [41, 51], [43, 52], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 5], [11, 5], [12, 5], [13, 6], [14, 7], [15, 2], [16, 3], [17, 5], [18, 10], [19, 11], [20, 6], [21, 7], [22, 7], [23, 7], [24, 14], [25, 14], [26, 4], [27, 4], [28, 17], [29, 17], [30, 6], [31, 6], [32, 6], [33, 20], [34, 21], [35, 7], [36, 7], [37, 7], [38, 25], [39, 27], [40, 10], [41, 11], [42, 12], [43, 12], [44, 12], [45, 20], [46, 33], [47, 35], [48, 40], [49, 40], [50, 41], [51, 41], [52, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "ReturnType", "code": "  final public void ReturnType() throws ParseException {\n /*@bgen(jjtree) ReturnType */\n  BSHReturnType jjtn000 = new BSHReturnType(JJTRETURNTYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case VOID:\n        jj_consume_token(VOID);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.isVoid = true;\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case SHORT:\n      case IDENTIFIER:\n        Type();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [6, 19], [6, 20], [12, 21], [12, 22], [4, 23], [4, 24], [15, 25], [15, 26], [18, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [22, 35], [24, 36], [9, 37], [10, 38], [11, 39], [11, 40], [11, 41], [28, 42], [30, 43], [32, 44], [33, 45], [37, 46], [37, 47], [38, 48], [38, 49], [40, 50], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 6], [20, 6], [21, 12], [22, 12], [23, 4], [24, 4], [25, 15], [26, 15], [27, 18], [28, 6], [29, 6], [30, 6], [31, 6], [32, 6], [33, 6], [34, 6], [35, 22], [36, 24], [37, 9], [38, 10], [39, 11], [40, 11], [41, 11], [42, 28], [43, 30], [44, 32], [45, 33], [46, 37], [47, 37], [48, 38], [49, 38], [50, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "PrimitiveType", "code": "  final public void PrimitiveType() throws ParseException {\n /*@bgen(jjtree) PrimitiveType */\n  BSHPrimitiveType jjtn000 = new BSHPrimitiveType(JJTPRIMITIVETYPE);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n        jj_consume_token(BOOLEAN);\n              jjtree.closeNodeScope(jjtn000, true);\n              jjtc000 = false;\n              jjtreeCloseNodeScope(jjtn000);\n              jjtn000.type = Boolean.TYPE;\n        break;\n      case CHAR:\n        jj_consume_token(CHAR);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Character.TYPE;\n        break;\n      case BYTE:\n        jj_consume_token(BYTE);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Byte.TYPE;\n        break;\n      case SHORT:\n        jj_consume_token(SHORT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Short.TYPE;\n        break;\n      case INT:\n        jj_consume_token(INT);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.type =  Integer.TYPE;\n        break;\n      case LONG:\n        jj_consume_token(LONG);\n           jjtree.closeNodeScope(jjtn000, true);\n           jjtc000 = false;\n           jjtreeCloseNodeScope(jjtn000);\n           jjtn000.type =  Long.TYPE;\n        break;\n      case FLOAT:\n        jj_consume_token(FLOAT);\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtc000 = false;\n            jjtreeCloseNodeScope(jjtn000);\n            jjtn000.type =  Float.TYPE;\n        break;\n      case DOUBLE:\n        jj_consume_token(DOUBLE);\n             jjtree.closeNodeScope(jjtn000, true);\n             jjtc000 = false;\n             jjtreeCloseNodeScope(jjtn000);\n             jjtn000.type =  Double.TYPE;\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "SWITCH", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [2, 9], [3, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [8, 20], [8, 21], [4, 22], [4, 23], [11, 24], [5, 25], [5, 26], [5, 27], [5, 28], [5, 29], [5, 30], [5, 31], [5, 32], [5, 33], [5, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 39], [5, 40], [5, 41], [5, 42], [5, 43], [5, 44], [5, 45], [5, 46], [5, 47], [5, 48], [5, 49], [5, 50], [5, 51], [5, 52], [5, 53], [5, 54], [5, 55], [5, 56], [5, 57], [5, 58], [5, 59], [5, 60], [5, 61], [5, 62], [5, 63], [5, 64], [5, 65], [21, 66], [23, 67], [25, 68], [28, 69], [29, 70], [33, 71], [34, 72], [38, 73], [39, 74], [43, 75], [44, 76], [48, 77], [49, 78], [53, 79], [54, 80], [58, 81], [59, 82], [63, 83], [64, 84], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 2], [10, 3], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 8], [21, 8], [22, 4], [23, 4], [24, 11], [25, 5], [26, 5], [27, 5], [28, 5], [29, 5], [30, 5], [31, 5], [32, 5], [33, 5], [34, 5], [35, 5], [36, 5], [37, 5], [38, 5], [39, 5], [40, 5], [41, 5], [42, 5], [43, 5], [44, 5], [45, 5], [46, 5], [47, 5], [48, 5], [49, 5], [50, 5], [51, 5], [52, 5], [53, 5], [54, 5], [55, 5], [56, 5], [57, 5], [58, 5], [59, 5], [60, 5], [61, 5], [62, 5], [63, 5], [64, 5], [65, 5], [66, 21], [67, 23], [68, 25], [69, 28], [70, 29], [71, 33], [72, 34], [73, 38], [74, 39], [75, 43], [76, 44], [77, 48], [78, 49], [79, 53], [80, 54], [81, 58], [82, 59], [83, 63], [84, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "AmbiguousName", "code": "  final public void AmbiguousName() throws ParseException {\n /*@bgen(jjtree) AmbiguousName */\n    BSHAmbiguousName jjtn000 = new BSHAmbiguousName(JJTAMBIGUOUSNAME);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t;\n    StringBuffer s;\n    try {\n      t = jj_consume_token(IDENTIFIER);\n        s = new StringBuffer(t.image);\n      label_5:\n      while (true) {\n        if (jj_2_7(2)) {\n          ;\n        } else {\n          break label_5;\n        }\n        jj_consume_token(DOT);\n        t = jj_consume_token(IDENTIFIER);\n                                        s.append(\".\"+t.image);\n      }\n                                                                      jjtree.closeNodeScope(jjtn000, true);\n                                                                      jjtc000 = false;\n                                                                      jjtreeCloseNodeScope(jjtn000);\n        jjtn000.text = s.toString();\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [7, 14], [1, 15], [1, 16], [4, 17], [5, 18], [10, 19], [12, 20], [13, 21], [7, 22], [15, 23], [16, 24], [6, 25], [6, 26], [7, 27], [7, 28], [7, 29], [22, 30], [26, 31], [27, 32], [28, 33], [22, 34], [30, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 7], [15, 1], [16, 1], [17, 4], [18, 5], [19, 10], [20, 12], [21, 13], [22, 7], [23, 15], [24, 16], [25, 6], [26, 6], [27, 7], [28, 7], [29, 7], [30, 22], [31, 26], [32, 27], [33, 28], [34, 22], [35, 30], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "NameList", "code": "  final public int NameList() throws ParseException {\n  int count = 0;\n    AmbiguousName();\n                    ++count;\n    label_6:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        ;\n        break;\n      default:\n        break label_6;\n      }\n      jj_consume_token(COMMA);\n      AmbiguousName();\n                                                       ++count;\n    }\n    {if (true) return count;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "LOOP", "VAR_DECL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [4, 8], [5, 9], [5, 10], [2, 11], [3, 12], [2, 13], [2, 14], [11, 15], [11, 16], [11, 17], [15, 18], [15, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 4], [9, 5], [10, 5], [11, 2], [12, 3], [13, 2], [14, 2], [15, 11], [16, 11], [17, 11], [18, 15], [19, 15], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "Expression", "code": "  final public void Expression() throws ParseException {\n    if (jj_2_8(2147483647)) {\n      Assignment();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ConditionalExpression();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [3, 7], [3, 8], [5, 9], [5, 10], [7, 11], [3, 12], [3, 13], [10, 14], [12, 15], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 3], [8, 3], [9, 5], [10, 5], [11, 7], [12, 3], [13, 3], [14, 10], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "Assignment", "code": "  final public void Assignment() throws ParseException {\n /*@bgen(jjtree) Assignment */\n  BSHAssignment jjtn000 = new BSHAssignment(JJTASSIGNMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);int op ;\n    try {\n      PrimaryExpression();\n      op = AssignmentOperator();\n                                    jjtn000.operator = op;\n      Expression();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [0, 7], [0, 8], [6, 9], [6, 10], [6, 11], [1, 12], [1, 13], [1, 14], [1, 15], [3, 16], [4, 17], [6, 18], [9, 19], [10, 20], [14, 21], [5, 22], [5, 23], [18, 24], [18, 25], [23, 26], [9, 27], [10, 28], [11, 29], [11, 30], [11, 31], [27, 32], [27, 33], [28, 34], [28, 35], [30, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 0], [8, 0], [9, 6], [10, 6], [11, 6], [12, 1], [13, 1], [14, 1], [15, 1], [16, 3], [17, 4], [18, 6], [19, 9], [20, 10], [21, 14], [22, 5], [23, 5], [24, 18], [25, 18], [26, 23], [27, 9], [28, 10], [29, 11], [30, 11], [31, 11], [32, 27], [33, 27], [34, 28], [35, 28], [36, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "AssignmentOperator", "code": "  final public int AssignmentOperator() throws ParseException {\n  Token t;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case ASSIGN:\n      jj_consume_token(ASSIGN);\n      break;\n    case STARASSIGN:\n      jj_consume_token(STARASSIGN);\n      break;\n    case SLASHASSIGN:\n      jj_consume_token(SLASHASSIGN);\n      break;\n    case MODASSIGN:\n      jj_consume_token(MODASSIGN);\n      break;\n    case PLUSASSIGN:\n      jj_consume_token(PLUSASSIGN);\n      break;\n    case MINUSASSIGN:\n      jj_consume_token(MINUSASSIGN);\n      break;\n    case ANDASSIGN:\n      jj_consume_token(ANDASSIGN);\n      break;\n    case XORASSIGN:\n      jj_consume_token(XORASSIGN);\n      break;\n    case ORASSIGN:\n      jj_consume_token(ORASSIGN);\n      break;\n    case LSHIFTASSIGN:\n      jj_consume_token(LSHIFTASSIGN);\n      break;\n    case LSHIFTASSIGNX:\n      jj_consume_token(LSHIFTASSIGNX);\n      break;\n    case RSIGNEDSHIFTASSIGN:\n      jj_consume_token(RSIGNEDSHIFTASSIGN);\n      break;\n    case RSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RSIGNEDSHIFTASSIGNX);\n      break;\n    case RUNSIGNEDSHIFTASSIGN:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGN);\n      break;\n    case RUNSIGNEDSHIFTASSIGNX:\n      jj_consume_token(RUNSIGNEDSHIFTASSIGNX);\n      break;\n    default:\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n        t = getToken(0);\n        {if (true) return t.kind;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "VAR_DECL", "CALL", "IF", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [4, 8], [5, 9], [5, 10], [6, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [7, 28], [7, 29], [11, 30], [12, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [29, 48], [32, 49], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 4], [9, 5], [10, 5], [11, 6], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 7], [29, 7], [30, 11], [31, 12], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 29], [49, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "ConditionalExpression", "code": "  final public void ConditionalExpression() throws ParseException {\n    ConditionalOrExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case HOOK:\n      jj_consume_token(HOOK);\n      Expression();\n      jj_consume_token(COLON);\n                                                     BSHTernaryExpression jjtn001 = new BSHTernaryExpression(JJTTERNARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n        ConditionalExpression();\n      } catch (Throwable jjte001) {\n                                                     if (jjtc001) {\n                                                       jjtree.clearNodeScope(jjtn001);\n                                                       jjtc001 = false;\n                                                     } else {\n                                                       jjtree.popNode();\n                                                     }\n                                                     if (jjte001 instanceof RuntimeException) {\n                                                       {if (true) throw (RuntimeException)jjte001;}\n                                                     }\n                                                     if (jjte001 instanceof ParseException) {\n                                                       {if (true) throw (ParseException)jjte001;}\n                                                     }\n                                                     {if (true) throw (Error)jjte001;}\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  3);\n                                                       jjtreeCloseNodeScope(jjtn001);\n                                                     }\n      }\n      break;\n    default:\n      ;", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "CALL", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "IF", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [2, 9], [5, 10], [5, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [9, 17], [11, 18], [11, 19], [11, 20], [5, 21], [6, 22], [7, 23], [11, 24], [18, 25], [19, 26], [10, 27], [10, 28], [24, 29], [24, 30], [28, 31], [18, 32], [19, 33], [20, 34], [20, 35], [20, 36], [32, 37], [32, 38], [33, 39], [33, 40], [35, 41], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 2], [10, 5], [11, 5], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 9], [18, 11], [19, 11], [20, 11], [21, 5], [22, 6], [23, 7], [24, 11], [25, 18], [26, 19], [27, 10], [28, 10], [29, 24], [30, 24], [31, 28], [32, 18], [33, 19], [34, 20], [35, 20], [36, 20], [37, 32], [38, 32], [39, 33], [40, 33], [41, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "ConditionalOrExpression", "code": "  final public void ConditionalOrExpression() throws ParseException {\n  Token t=null;\n    ConditionalAndExpression();\n    label_7:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n      case BOOL_ORX:\n        ;\n        break;\n      default:\n        break label_7;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_OR:\n        t = jj_consume_token(BOOL_OR);\n        break;\n      case BOOL_ORX:\n        t = jj_consume_token(BOOL_ORX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ConditionalAndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [27, 38], [31, 39], [11, 40], [11, 41], [35, 42], [36, 43], [37, 44], [41, 45], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 27], [39, 31], [40, 11], [41, 11], [42, 35], [43, 36], [44, 37], [45, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "ConditionalAndExpression", "code": "  final public void ConditionalAndExpression() throws ParseException {\n  Token t=null;\n    InclusiveOrExpression();\n    label_8:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n      case BOOL_ANDX:\n        ;\n        break;\n      default:\n        break label_8;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOL_AND:\n        t = jj_consume_token(BOOL_AND);\n        break;\n      case BOOL_ANDX:\n        t = jj_consume_token(BOOL_ANDX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [27, 38], [31, 39], [11, 40], [11, 41], [35, 42], [36, 43], [37, 44], [41, 45], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 27], [39, 31], [40, 11], [41, 11], [42, 35], [43, 36], [44, 37], [45, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "InclusiveOrExpression", "code": "  final public void InclusiveOrExpression() throws ParseException {\n  Token t=null;\n    ExclusiveOrExpression();\n    label_9:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n      case BIT_ORX:\n        ;\n        break;\n      default:\n        break label_9;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_OR:\n        t = jj_consume_token(BIT_OR);\n        break;\n      case BIT_ORX:\n        t = jj_consume_token(BIT_ORX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ExclusiveOrExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [27, 38], [31, 39], [11, 40], [11, 41], [35, 42], [36, 43], [37, 44], [41, 45], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 27], [39, 31], [40, 11], [41, 11], [42, 35], [43, 36], [44, 37], [45, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "ExclusiveOrExpression", "code": "  final public void ExclusiveOrExpression() throws ParseException {\n  Token t=null;\n    AndExpression();\n    label_10:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case XOR:\n        ;\n        break;\n      default:\n        break label_10;\n      }\n      t = jj_consume_token(XOR);\n      AndExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "ASSIGN", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [8, 15], [5, 16], [5, 17], [5, 18], [5, 19], [6, 20], [7, 21], [14, 22], [8, 23], [8, 24], [15, 25], [15, 26], [18, 27], [19, 28], [26, 29], [10, 30], [10, 31], [31, 32], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 8], [16, 5], [17, 5], [18, 5], [19, 5], [20, 6], [21, 7], [22, 14], [23, 8], [24, 8], [25, 15], [26, 15], [27, 18], [28, 19], [29, 26], [30, 10], [31, 10], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "AndExpression", "code": "  final public void AndExpression() throws ParseException {\n  Token t=null;\n    EqualityExpression();\n    label_11:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n      case BIT_ANDX:\n        ;\n        break;\n      default:\n        break label_11;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BIT_AND:\n        t = jj_consume_token(BIT_AND);\n        break;\n      case BIT_ANDX:\n        t = jj_consume_token(BIT_ANDX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      EqualityExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [27, 38], [31, 39], [11, 40], [11, 41], [35, 42], [36, 43], [37, 44], [41, 45], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 27], [39, 31], [40, 11], [41, 11], [42, 35], [43, 36], [44, 37], [45, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "EqualityExpression", "code": "  final public void EqualityExpression() throws ParseException {\n  Token t = null;\n    InstanceOfExpression();\n    label_12:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n      case NE:\n        ;\n        break;\n      default:\n        break label_12;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case EQ:\n        t = jj_consume_token(EQ);\n        break;\n      case NE:\n        t = jj_consume_token(NE);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      InstanceOfExpression();\n      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  2);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [27, 38], [31, 39], [11, 40], [11, 41], [35, 42], [36, 43], [37, 44], [41, 45], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 27], [39, 31], [40, 11], [41, 11], [42, 35], [43, 36], [44, 37], [45, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "InstanceOfExpression", "code": "  final public void InstanceOfExpression() throws ParseException {\n  Token t = null;\n    RelationalExpression();\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case INSTANCEOF:\n      t = jj_consume_token(INSTANCEOF);\n      Type();\n                              BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                              boolean jjtc001 = true;\n                              jjtree.openNodeScope(jjtn001);\n                              jjtreeOpenNodeScope(jjtn001);\n      try {\n                              jjtree.closeNodeScope(jjtn001,  2);\n                              jjtc001 = false;\n                              jjtreeCloseNodeScope(jjtn001);\n                              jjtn001.kind = t.kind;\n      } finally {\n                              if (jjtc001) {\n                                jjtree.closeNodeScope(jjtn001,  2);\n                                jjtreeCloseNodeScope(jjtn001);\n                              }\n      }\n      break;\n    default:\n      ;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "COND_EXPR", "CALL", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [3, 10], [2, 11], [6, 12], [1, 13], [1, 14], [1, 15], [1, 16], [10, 17], [6, 18], [6, 19], [6, 20], [6, 21], [7, 22], [8, 23], [16, 24], [20, 25], [21, 26], [12, 27], [12, 28], [28, 29], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 3], [11, 2], [12, 6], [13, 1], [14, 1], [15, 1], [16, 1], [17, 10], [18, 6], [19, 6], [20, 6], [21, 6], [22, 7], [23, 8], [24, 16], [25, 20], [26, 21], [27, 12], [28, 12], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "RelationalExpression", "code": "  final public void RelationalExpression() throws ParseException {\n  Token t = null;\n    ShiftExpression();\n    label_13:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case GT:\n      case GTX:\n      case LT:\n      case LTX:\n      case LE:\n      case LEX:\n      case GE:\n      case GEX:\n        ;\n        break;\n      default:\n        break label_13;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LT:\n        t = jj_consume_token(LT);\n        break;\n      case LTX:\n        t = jj_consume_token(LTX);\n        break;\n      case GT:\n        t = jj_consume_token(GT);\n        break;\n      case GTX:\n        t = jj_consume_token(GTX);\n        break;\n      case LE:\n        t = jj_consume_token(LE);\n        break;\n      case LEX:\n        t = jj_consume_token(LEX);\n        break;\n      case GE:\n        t = jj_consume_token(GE);\n        break;\n      case GEX:\n        t = jj_consume_token(GEX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      ShiftExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 30], [8, 31], [15, 32], [15, 33], [9, 34], [9, 35], [16, 36], [16, 37], [19, 38], [20, 39], [23, 40], [8, 41], [8, 42], [8, 43], [8, 44], [8, 45], [8, 46], [8, 47], [8, 48], [8, 49], [33, 50], [37, 51], [11, 52], [11, 53], [41, 54], [42, 55], [43, 56], [44, 57], [45, 58], [46, 59], [47, 60], [48, 61], [49, 62], [53, 63], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 8], [31, 8], [32, 15], [33, 15], [34, 9], [35, 9], [36, 16], [37, 16], [38, 19], [39, 20], [40, 23], [41, 8], [42, 8], [43, 8], [44, 8], [45, 8], [46, 8], [47, 8], [48, 8], [49, 8], [50, 33], [51, 37], [52, 11], [53, 11], [54, 41], [55, 42], [56, 43], [57, 44], [58, 45], [59, 46], [60, 47], [61, 48], [62, 49], [63, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "ShiftExpression", "code": "  final public void ShiftExpression() throws ParseException {\n  Token t = null;\n    AdditiveExpression();\n    label_14:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n      case LSHIFTX:\n      case RSIGNEDSHIFT:\n      case RSIGNEDSHIFTX:\n      case RUNSIGNEDSHIFT:\n      case RUNSIGNEDSHIFTX:\n        ;\n        break;\n      default:\n        break label_14;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LSHIFT:\n        t = jj_consume_token(LSHIFT);\n        break;\n      case LSHIFTX:\n        t = jj_consume_token(LSHIFTX);\n        break;\n      case RSIGNEDSHIFT:\n        t = jj_consume_token(RSIGNEDSHIFT);\n        break;\n      case RSIGNEDSHIFTX:\n        t = jj_consume_token(RSIGNEDSHIFTX);\n        break;\n      case RUNSIGNEDSHIFT:\n        t = jj_consume_token(RUNSIGNEDSHIFT);\n        break;\n      case RUNSIGNEDSHIFTX:\n        t = jj_consume_token(RUNSIGNEDSHIFTX);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      AdditiveExpression();\n    BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n    boolean jjtc001 = true;\n    jjtree.openNodeScope(jjtn001);\n    jjtreeOpenNodeScope(jjtn001);\n      try {\n    jjtree.closeNodeScope(jjtn001,  2);\n    jjtc001 = false;\n    jjtreeCloseNodeScope(jjtn001);\n    jjtn001.kind = t.kind;\n      } finally {\n    if (jjtc001) {\n      jjtree.closeNodeScope(jjtn001,  2);\n      jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [15, 30], [15, 31], [9, 32], [9, 33], [16, 34], [16, 35], [19, 36], [20, 37], [23, 38], [8, 39], [8, 40], [8, 41], [8, 42], [8, 43], [8, 44], [8, 45], [31, 46], [35, 47], [11, 48], [11, 49], [39, 50], [40, 51], [41, 52], [42, 53], [43, 54], [44, 55], [45, 56], [49, 57], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 15], [31, 15], [32, 9], [33, 9], [34, 16], [35, 16], [36, 19], [37, 20], [38, 23], [39, 8], [40, 8], [41, 8], [42, 8], [43, 8], [44, 8], [45, 8], [46, 31], [47, 35], [48, 11], [49, 11], [50, 39], [51, 40], [52, 41], [53, 42], [54, 43], [55, 44], [56, 45], [57, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "AdditiveExpression", "code": "  final public void AdditiveExpression() throws ParseException {\n  Token t = null;\n    MultiplicativeExpression();\n    label_15:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n      case MINUS:\n        ;\n        break;\n      default:\n        break label_15;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      MultiplicativeExpression();\n                                                     BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                                                     boolean jjtc001 = true;\n                                                     jjtree.openNodeScope(jjtn001);\n                                                     jjtreeOpenNodeScope(jjtn001);\n      try {\n                                                     jjtree.closeNodeScope(jjtn001,  2);\n                                                     jjtc001 = false;\n                                                     jjtreeCloseNodeScope(jjtn001);\n                                                     jjtn001.kind = t.kind;\n      } finally {\n                                                     if (jjtc001) {\n                                                       jjtree.closeNodeScope(jjtn001,  2);\n                                                       jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [15, 26], [15, 27], [9, 28], [9, 29], [16, 30], [16, 31], [19, 32], [20, 33], [23, 34], [8, 35], [8, 36], [8, 37], [27, 38], [31, 39], [11, 40], [11, 41], [35, 42], [36, 43], [37, 44], [41, 45], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 15], [27, 15], [28, 9], [29, 9], [30, 16], [31, 16], [32, 19], [33, 20], [34, 23], [35, 8], [36, 8], [37, 8], [38, 27], [39, 31], [40, 11], [41, 11], [42, 35], [43, 36], [44, 37], [45, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "MultiplicativeExpression", "code": "  final public void MultiplicativeExpression() throws ParseException {\n  Token t = null;\n    UnaryExpression();\n    label_16:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n      case SLASH:\n      case MOD:\n        ;\n        break;\n      default:\n        break label_16;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case STAR:\n        t = jj_consume_token(STAR);\n        break;\n      case SLASH:\n        t = jj_consume_token(SLASH);\n        break;\n      case MOD:\n        t = jj_consume_token(MOD);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n                      BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);\n                      boolean jjtc001 = true;\n                      jjtree.openNodeScope(jjtn001);\n                      jjtreeOpenNodeScope(jjtn001);\n      try {\n                      jjtree.closeNodeScope(jjtn001,  2);\n                      jjtc001 = false;\n                      jjtreeCloseNodeScope(jjtn001);\n                      jjtn001.kind = t.kind;\n      } finally {\n                      if (jjtc001) {\n                        jjtree.closeNodeScope(jjtn001,  2);\n                        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "SWITCH", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [5, 17], [5, 18], [5, 19], [5, 20], [6, 21], [7, 22], [8, 23], [8, 24], [8, 25], [8, 26], [15, 27], [15, 28], [9, 29], [9, 30], [16, 31], [16, 32], [19, 33], [20, 34], [23, 35], [8, 36], [8, 37], [8, 38], [8, 39], [28, 40], [32, 41], [11, 42], [11, 43], [36, 44], [37, 45], [38, 46], [39, 47], [43, 48], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 5], [18, 5], [19, 5], [20, 5], [21, 6], [22, 7], [23, 8], [24, 8], [25, 8], [26, 8], [27, 15], [28, 15], [29, 9], [30, 9], [31, 16], [32, 16], [33, 19], [34, 20], [35, 23], [36, 8], [37, 8], [38, 8], [39, 8], [40, 28], [41, 32], [42, 11], [43, 11], [44, 36], [45, 37], [46, 38], [47, 39], [48, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "UnaryExpression", "code": "  final public void UnaryExpression() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case PLUS:\n    case MINUS:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        t = jj_consume_token(PLUS);\n        break;\n      case MINUS:\n        t = jj_consume_token(MINUS);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    case INCR:\n      PreIncrementExpression();\n      break;\n    case DECR:\n      PreDecrementExpression();\n      break;\n    case BOOLEAN:\n    case BYTE:\n    case CHAR:\n    case DOUBLE:\n    case FALSE:\n    case FLOAT:\n    case INT:\n    case LONG:\n    case NEW:\n    case NULL:\n    case SHORT:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n    case IDENTIFIER:\n    case LPAREN:\n    case BANG:\n    case TILDE:\n      UnaryExpressionNotPlusMinus();\n      break;\n    default:\n      jj_consume_token(-1);\n      throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "COND_EXPR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [3, 13], [3, 14], [2, 15], [4, 16], [1, 17], [1, 18], [1, 19], [1, 20], [9, 21], [1, 22], [1, 23], [1, 24], [12, 25], [14, 26], [17, 27], [9, 28], [9, 29], [9, 30], [9, 31], [10, 32], [11, 33], [12, 34], [12, 35], [12, 36], [25, 37], [25, 38], [30, 39], [31, 40], [34, 41], [12, 42], [12, 43], [12, 44], [38, 45], [21, 46], [21, 47], [42, 48], [43, 49], [44, 50], [47, 51], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 3], [14, 3], [15, 2], [16, 4], [17, 1], [18, 1], [19, 1], [20, 1], [21, 9], [22, 1], [23, 1], [24, 1], [25, 12], [26, 14], [27, 17], [28, 9], [29, 9], [30, 9], [31, 9], [32, 10], [33, 11], [34, 12], [35, 12], [36, 12], [37, 25], [38, 25], [39, 30], [40, 31], [41, 34], [42, 12], [43, 12], [44, 12], [45, 38], [46, 21], [47, 21], [48, 42], [49, 43], [50, 44], [51, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "PreIncrementExpression", "code": "  final public void PreIncrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(INCR);\n    PrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [9, 16], [4, 17], [12, 18], [13, 19], [5, 20], [5, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 9], [17, 4], [18, 12], [19, 13], [20, 5], [21, 5], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "PreDecrementExpression", "code": "  final public void PreDecrementExpression() throws ParseException {\n  Token t = null;\n    t = jj_consume_token(DECR);\n    PrimaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n    try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n    } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [9, 16], [4, 17], [12, 18], [13, 19], [5, 20], [5, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 9], [17, 4], [18, 12], [19, 13], [20, 5], [21, 5], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "UnaryExpressionNotPlusMinus", "code": "  final public void UnaryExpressionNotPlusMinus() throws ParseException {\n  Token t = null;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case BANG:\n    case TILDE:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TILDE:\n        t = jj_consume_token(TILDE);\n        break;\n      case BANG:\n        t = jj_consume_token(BANG);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      UnaryExpression();\n      BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n      boolean jjtc001 = true;\n      jjtree.openNodeScope(jjtn001);\n      jjtreeOpenNodeScope(jjtn001);\n      try {\n      jjtree.closeNodeScope(jjtn001,  1);\n      jjtc001 = false;\n      jjtreeCloseNodeScope(jjtn001);\n      jjtn001.kind = t.kind;\n      } finally {\n      if (jjtc001) {\n        jjtree.closeNodeScope(jjtn001,  1);\n        jjtreeCloseNodeScope(jjtn001);\n      }\n      }\n      break;\n    default:\n      if (jj_2_9(2147483647)) {\n        CastExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case BOOLEAN:\n        case BYTE:\n        case CHAR:\n        case DOUBLE:\n        case FALSE:\n        case FLOAT:\n        case INT:\n        case LONG:\n        case NEW:\n        case NULL:\n        case SHORT:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n        case IDENTIFIER:\n        case LPAREN:\n          PostfixExpression();\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "COND_EXPR", "IF", "BREAK_CONTINUE", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [2, 12], [4, 13], [6, 14], [1, 15], [1, 16], [1, 17], [9, 18], [11, 19], [4, 20], [13, 21], [6, 22], [6, 23], [6, 24], [6, 25], [7, 26], [8, 27], [9, 28], [9, 29], [9, 30], [18, 31], [18, 32], [20, 33], [4, 34], [24, 35], [25, 36], [28, 37], [9, 38], [9, 39], [9, 40], [32, 41], [20, 42], [20, 43], [33, 44], [33, 45], [14, 46], [14, 47], [38, 48], [39, 49], [40, 50], [42, 51], [20, 52], [20, 53], [45, 54], [47, 55], [52, 56], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 2], [13, 4], [14, 6], [15, 1], [16, 1], [17, 1], [18, 9], [19, 11], [20, 4], [21, 13], [22, 6], [23, 6], [24, 6], [25, 6], [26, 7], [27, 8], [28, 9], [29, 9], [30, 9], [31, 18], [32, 18], [33, 20], [34, 4], [35, 24], [36, 25], [37, 28], [38, 9], [39, 9], [40, 9], [41, 32], [42, 20], [43, 20], [44, 33], [45, 33], [46, 14], [47, 14], [48, 38], [49, 39], [50, 40], [51, 42], [52, 20], [53, 20], [54, 45], [55, 47], [56, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "CastLookahead", "code": "  final public void CastLookahead() throws ParseException {\n    if (jj_2_10(2)) {\n      jj_consume_token(LPAREN);\n      PrimitiveType();\n    } else if (jj_2_11(2147483647)) {\n      jj_consume_token(LPAREN);\n      AmbiguousName();\n      jj_consume_token(LBRACKET);\n      jj_consume_token(RBRACKET);\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LPAREN:\n        jj_consume_token(LPAREN);\n        AmbiguousName();\n        jj_consume_token(RPAREN);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case TILDE:\n          jj_consume_token(TILDE);\n          break;\n        case BANG:\n          jj_consume_token(BANG);\n          break;\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          break;\n        case IDENTIFIER:\n          jj_consume_token(IDENTIFIER);\n          break;\n        case NEW:\n          jj_consume_token(NEW);\n          break;\n        case FALSE:\n        case NULL:\n        case TRUE:\n        case VOID:\n        case INTEGER_LITERAL:\n        case FLOATING_POINT_LITERAL:\n        case CHARACTER_LITERAL:\n        case STRING_LITERAL:\n          Literal();\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [2, 6], [4, 7], [1, 8], [1, 9], [6, 10], [2, 11], [2, 12], [2, 13], [2, 14], [6, 15], [6, 16], [6, 17], [10, 18], [10, 19], [15, 20], [6, 21], [17, 22], [6, 23], [6, 24], [6, 25], [19, 26], [21, 27], [17, 28], [17, 29], [17, 30], [17, 31], [17, 32], [17, 33], [17, 34], [22, 35], [22, 36], [28, 37], [17, 38], [17, 39], [17, 40], [17, 41], [17, 42], [17, 43], [17, 44], [36, 45], [38, 46], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 2], [7, 4], [8, 1], [9, 1], [10, 6], [11, 2], [12, 2], [13, 2], [14, 2], [15, 6], [16, 6], [17, 6], [18, 10], [19, 10], [20, 15], [21, 6], [22, 17], [23, 6], [24, 6], [25, 6], [26, 19], [27, 21], [28, 17], [29, 17], [30, 17], [31, 17], [32, 17], [33, 17], [34, 17], [35, 22], [36, 22], [37, 28], [38, 17], [39, 17], [40, 17], [41, 17], [42, 17], [43, 17], [44, 17], [45, 36], [46, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "PostfixExpression", "code": "  final public void PostfixExpression() throws ParseException {\n  Token t = null;\n    if (jj_2_12(2147483647)) {\n      PrimaryExpression();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INCR:\n        t = jj_consume_token(INCR);\n        break;\n      case DECR:\n        t = jj_consume_token(DECR);\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n                                BSHUnaryExpression jjtn001 = new BSHUnaryExpression(JJTUNARYEXPRESSION);\n                                boolean jjtc001 = true;\n                                jjtree.openNodeScope(jjtn001);\n                                jjtreeOpenNodeScope(jjtn001);\n      try {\n                                jjtree.closeNodeScope(jjtn001,  1);\n                                jjtc001 = false;\n                                jjtreeCloseNodeScope(jjtn001);\n                jjtn001.kind = t.kind; jjtn001.postfix = true;\n      } finally {\n                                if (jjtc001) {\n                                  jjtree.closeNodeScope(jjtn001,  1);\n                                  jjtreeCloseNodeScope(jjtn001);\n                                }\n      }\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n        PrimaryExpression();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "SWITCH", "TRY", "VAR_DECL", "VAR_DECL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "IF", "CALL", "CALL", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [2, 10], [4, 11], [5, 12], [1, 13], [1, 14], [8, 15], [1, 16], [4, 17], [4, 18], [11, 19], [11, 20], [5, 21], [5, 22], [5, 23], [5, 24], [5, 25], [6, 26], [7, 27], [8, 28], [8, 29], [8, 30], [15, 31], [15, 32], [17, 33], [4, 34], [4, 35], [20, 36], [21, 37], [24, 38], [25, 39], [28, 40], [8, 41], [8, 42], [8, 43], [32, 44], [34, 45], [12, 46], [12, 47], [41, 48], [42, 49], [43, 50], [47, 51], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 2], [11, 4], [12, 5], [13, 1], [14, 1], [15, 8], [16, 1], [17, 4], [18, 4], [19, 11], [20, 11], [21, 5], [22, 5], [23, 5], [24, 5], [25, 5], [26, 6], [27, 7], [28, 8], [29, 8], [30, 8], [31, 15], [32, 15], [33, 17], [34, 4], [35, 4], [36, 20], [37, 21], [38, 24], [39, 25], [40, 28], [41, 8], [42, 8], [43, 8], [44, 32], [45, 34], [46, 12], [47, 12], [48, 41], [49, 42], [50, 43], [51, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "CastExpression", "code": "  final public void CastExpression() throws ParseException {\n /*@bgen(jjtree) CastExpression */\n  BSHCastExpression jjtn000 = new BSHCastExpression(JJTCASTEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_13(2147483647)) {\n        jj_consume_token(LPAREN);\n        Type();\n        jj_consume_token(RPAREN);\n        UnaryExpression();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LPAREN:\n          jj_consume_token(LPAREN);\n          Type();\n          jj_consume_token(RPAREN);\n          UnaryExpressionNotPlusMinus();\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [12, 19], [4, 20], [4, 21], [15, 22], [15, 23], [18, 24], [6, 25], [6, 26], [6, 27], [6, 28], [21, 29], [9, 30], [10, 31], [11, 32], [11, 33], [11, 34], [18, 35], [18, 36], [24, 37], [24, 38], [30, 39], [30, 40], [31, 41], [31, 42], [33, 43], [35, 44], [18, 45], [18, 46], [18, 47], [18, 48], [18, 49], [38, 50], [45, 51], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 12], [20, 4], [21, 4], [22, 15], [23, 15], [24, 18], [25, 6], [26, 6], [27, 6], [28, 6], [29, 21], [30, 9], [31, 10], [32, 11], [33, 11], [34, 11], [35, 18], [36, 18], [37, 24], [38, 24], [39, 30], [40, 30], [41, 31], [42, 31], [43, 33], [44, 35], [45, 18], [46, 18], [47, 18], [48, 18], [49, 18], [50, 38], [51, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "PrimaryExpression", "code": "  final public void PrimaryExpression() throws ParseException {\n                                               /*@bgen(jjtree) PrimaryExpression */\n  BSHPrimaryExpression jjtn000 = new BSHPrimaryExpression(JJTPRIMARYEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      PrimaryPrefix();\n      label_17:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACE:\n        case LBRACKET:\n        case DOT:\n          ;\n          break;\n        default:\n          break label_17;\n        }\n        PrimarySuffix();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [2, 14], [3, 15], [5, 16], [9, 17], [10, 18], [6, 19], [4, 20], [4, 21], [16, 22], [16, 23], [6, 24], [19, 25], [21, 26], [9, 27], [10, 28], [11, 29], [11, 30], [11, 31], [19, 32], [19, 33], [25, 34], [25, 35], [27, 36], [27, 37], [28, 38], [28, 39], [30, 40], [35, 41], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 2], [15, 3], [16, 5], [17, 9], [18, 10], [19, 6], [20, 4], [21, 4], [22, 16], [23, 16], [24, 6], [25, 19], [26, 21], [27, 9], [28, 10], [29, 11], [30, 11], [31, 11], [32, 19], [33, 19], [34, 25], [35, 25], [36, 27], [37, 27], [38, 28], [39, 28], [40, 30], [41, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "MethodInvocation", "code": "  final public void MethodInvocation() throws ParseException {\n                                             /*@bgen(jjtree) MethodInvocation */\n  BSHMethodInvocation jjtn000 = new BSHMethodInvocation(JJTMETHODINVOCATION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      AmbiguousName();\n      Arguments();\n    } catch (Throwable jjte000) {\n     if (jjtc000) {\n       jjtree.clearNodeScope(jjtn000);\n       jjtc000 = false;\n     } else {\n       jjtree.popNode();\n     }\n     if (jjte000 instanceof RuntimeException) {\n       {if (true) throw (RuntimeException)jjte000;}\n     }\n     if (jjte000 instanceof ParseException) {\n       {if (true) throw (ParseException)jjte000;}\n     }\n     {if (true) throw (Error)jjte000;}\n    } finally {\n     if (jjtc000) {\n       jjtree.closeNodeScope(jjtn000, true);\n       jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [2, 13], [3, 14], [5, 15], [8, 16], [9, 17], [4, 18], [4, 19], [15, 20], [15, 21], [19, 22], [8, 23], [9, 24], [10, 25], [10, 26], [10, 27], [23, 28], [23, 29], [24, 30], [24, 31], [26, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 2], [14, 3], [15, 5], [16, 8], [17, 9], [18, 4], [19, 4], [20, 15], [21, 15], [22, 19], [23, 8], [24, 9], [25, 10], [26, 10], [27, 10], [28, 23], [29, 23], [30, 24], [31, 24], [32, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "PrimaryPrefix", "code": "  final public void PrimaryPrefix() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case FALSE:\n    case NULL:\n    case TRUE:\n    case VOID:\n    case INTEGER_LITERAL:\n    case FLOATING_POINT_LITERAL:\n    case CHARACTER_LITERAL:\n    case STRING_LITERAL:\n      Literal();\n      break;\n    case LPAREN:\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      break;\n    case NEW:\n      AllocationExpression();\n      break;\n    default:\n      if (jj_2_14(2147483647)) {\n        MethodInvocation();\n      } else if (jj_2_15(2147483647)) {\n        Type();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case IDENTIFIER:\n          AmbiguousName();\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();", "ast_nodes": ["FUNC_DECL", "SWITCH", "COND_EXPR", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [8, 16], [9, 17], [10, 18], [9, 19], [17, 20], [3, 21], [19, 22], [9, 23], [19, 24], [19, 25], [22, 26], [22, 27], [24, 28], [19, 29], [19, 30], [27, 31], [29, 32], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 8], [17, 9], [18, 10], [19, 9], [20, 17], [21, 3], [22, 19], [23, 9], [24, 19], [25, 19], [26, 22], [27, 22], [28, 24], [29, 19], [30, 19], [31, 27], [32, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "PrimarySuffix", "code": "  final public void PrimarySuffix() throws ParseException {\n /*@bgen(jjtree) PrimarySuffix */\n    BSHPrimarySuffix jjtn000 = new BSHPrimarySuffix(JJTPRIMARYSUFFIX);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_16(2)) {\n        jj_consume_token(DOT);\n        jj_consume_token(CLASS);\n                jjtree.closeNodeScope(jjtn000, true);\n                jjtc000 = false;\n                jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.CLASS;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.INDEX;\n          break;\n        case DOT:\n          jj_consume_token(DOT);\n          t = jj_consume_token(IDENTIFIER);\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LPAREN:\n            Arguments();\n            break;\n          default:\n            ;\n          }\n                                         jjtree.closeNodeScope(jjtn000, true);\n                                         jjtc000 = false;\n                                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.NAME;\n        jjtn000.field = t.image;\n          break;\n        case LBRACE:\n          jj_consume_token(LBRACE);\n          Expression();\n          jj_consume_token(RBRACE);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n        jjtn000.operation = BSHPrimarySuffix.PROPERTY;\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "SWITCH", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [2, 14], [3, 15], [4, 16], [6, 17], [10, 18], [11, 19], [7, 20], [13, 21], [5, 22], [5, 23], [17, 24], [17, 25], [20, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [23, 33], [10, 34], [11, 35], [12, 36], [12, 37], [12, 38], [20, 39], [20, 40], [20, 41], [20, 42], [20, 43], [26, 44], [26, 45], [29, 46], [30, 47], [34, 48], [34, 49], [35, 50], [35, 51], [37, 52], [39, 53], [20, 54], [20, 55], [20, 56], [20, 57], [20, 58], [20, 59], [20, 60], [20, 61], [20, 62], [20, 63], [20, 64], [20, 65], [20, 66], [42, 67], [20, 68], [20, 69], [20, 70], [20, 71], [20, 72], [20, 73], [20, 74], [20, 75], [20, 76], [45, 77], [54, 78], [57, 79], [58, 80], [65, 81], [66, 82], [42, 83], [67, 84], [67, 85], [68, 86], [72, 87], [73, 88], [42, 89], [85, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 2], [15, 3], [16, 4], [17, 6], [18, 10], [19, 11], [20, 7], [21, 13], [22, 5], [23, 5], [24, 17], [25, 17], [26, 20], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 7], [33, 23], [34, 10], [35, 11], [36, 12], [37, 12], [38, 12], [39, 20], [40, 20], [41, 20], [42, 20], [43, 20], [44, 26], [45, 26], [46, 29], [47, 30], [48, 34], [49, 34], [50, 35], [51, 35], [52, 37], [53, 39], [54, 20], [55, 20], [56, 20], [57, 20], [58, 20], [59, 20], [60, 20], [61, 20], [62, 20], [63, 20], [64, 20], [65, 20], [66, 20], [67, 42], [68, 20], [69, 20], [70, 20], [71, 20], [72, 20], [73, 20], [74, 20], [75, 20], [76, 20], [77, 45], [78, 54], [79, 57], [80, 58], [81, 65], [82, 66], [83, 42], [84, 67], [85, 67], [86, 68], [87, 72], [88, 73], [89, 42], [90, 85], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "Literal", "code": "  final public void Literal() throws ParseException {\n /*@bgen(jjtree) Literal */\n    BSHLiteral jjtn000 = new BSHLiteral(JJTLITERAL);\n    boolean jjtc000 = true;\n    jjtree.openNodeScope(jjtn000);\n    jjtreeOpenNodeScope(jjtn000);Token x;\n    boolean b;\n    String literal;\n    char ch;\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case INTEGER_LITERAL:\n        x = jj_consume_token(INTEGER_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'l' || ch == 'L')\n    {\n        literal = literal.substring(0,literal.length()-1);\n\n        // This really should be Long.decode, but there isn't one. As a result,\n        // hex and octal literals ending in 'l' or 'L' don't work.\n        jjtn000.value = new Primitive( new Long( literal ).longValue() );\n    }\n    else\n                try {\n                jjtn000.value = new Primitive(\n                                Integer.decode( literal ).intValue() );\n                } catch ( NumberFormatException e ) {\n                        {if (true) throw createParseException(\n                                \"Error or number too big for integer type: \"+ literal );}\n                }\n        break;\n      case FLOATING_POINT_LITERAL:\n        x = jj_consume_token(FLOATING_POINT_LITERAL);\n    jjtree.closeNodeScope(jjtn000, true);\n    jjtc000 = false;\n    jjtreeCloseNodeScope(jjtn000);\n    literal = x.image;\n    ch = literal.charAt(literal.length()-1);\n    if(ch == 'f' || ch == 'F')\n    {\n        literal = literal.substring(0,literal.length()-1);\n        jjtn000.value = new Primitive( new Float( literal ).floatValue() );\n    }\n    else\n    {\n        if(ch == 'd' || ch == 'D')\n            literal = literal.substring(0,literal.length()-1);\n\n        jjtn000.value = new Primitive( new Double( literal ).doubleValue() );\n    }\n        break;\n      case CHARACTER_LITERAL:\n        x = jj_consume_token(CHARACTER_LITERAL);\n                            jjtree.closeNodeScope(jjtn000, true);\n                            jjtc000 = false;\n                            jjtreeCloseNodeScope(jjtn000);\n                try {\n                jjtn000.charSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw createParseException(\"Error parsing character: \"+x.image);}\n                }\n        break;\n      case STRING_LITERAL:\n        x = jj_consume_token(STRING_LITERAL);\n                         jjtree.closeNodeScope(jjtn000, true);\n                         jjtc000 = false;\n                         jjtreeCloseNodeScope(jjtn000);\n                try {\n                        jjtn000.stringSetup( x.image.substring(1, x.image.length() - 1) );\n                } catch ( Exception e ) {\n                        {if (true) throw createParseException(\"Error parsing string: \"+x.image);}\n                }\n        break;\n      case FALSE:\n      case TRUE:\n        b = BooleanLiteral();\n                          jjtree.closeNodeScope(jjtn000, true);\n                          jjtc000 = false;\n                          jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = new Primitive( b );\n        break;\n      case NULL:\n        NullLiteral();\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.NULL;\n        break;\n      case VOID:\n        VoidLiteral();\n                 jjtree.closeNodeScope(jjtn000, true);\n                 jjtc000 = false;\n                 jjtreeCloseNodeScope(jjtn000);\n    jjtn000.value = Primitive.VOID;\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "TRY", "BREAK_CONTINUE", "TRY", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CATCH", "CALL", "ASSIGN", "CALL", "ASSIGN", "CATCH", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "TRY", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "IF", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [0, 11], [0, 12], [9, 13], [9, 14], [9, 15], [10, 16], [6, 17], [7, 18], [9, 19], [13, 20], [14, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [10, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [16, 34], [16, 35], [8, 36], [8, 37], [19, 38], [19, 39], [22, 40], [10, 41], [10, 42], [10, 43], [10, 44], [10, 45], [10, 46], [10, 47], [10, 48], [10, 49], [10, 50], [10, 51], [10, 52], [10, 53], [10, 54], [10, 55], [10, 56], [27, 57], [10, 58], [10, 59], [10, 60], [10, 61], [29, 62], [10, 63], [10, 64], [10, 65], [10, 66], [31, 67], [10, 68], [10, 69], [10, 70], [10, 71], [10, 72], [10, 73], [33, 74], [33, 75], [10, 76], [10, 77], [10, 78], [10, 79], [10, 80], [10, 81], [35, 82], [37, 83], [13, 84], [14, 85], [15, 86], [15, 87], [15, 88], [41, 89], [44, 90], [45, 91], [49, 92], [50, 93], [52, 94], [54, 95], [55, 96], [56, 97], [27, 98], [59, 99], [60, 100], [61, 101], [29, 102], [64, 103], [65, 104], [66, 105], [31, 106], [67, 107], [67, 108], [68, 109], [71, 110], [72, 111], [73, 112], [74, 113], [75, 114], [75, 115], [76, 116], [79, 117], [80, 118], [81, 119], [84, 120], [84, 121], [85, 122], [85, 123], [87, 124], [57, 125], [98, 126], [62, 127], [102, 128], [31, 129], [106, 130], [31, 131], [31, 132], [107, 133], [108, 134], [109, 135], [74, 136], [33, 137], [33, 138], [114, 139], [115, 140], [116, 141], [125, 142], [125, 143], [126, 144], [126, 145], [127, 146], [127, 147], [128, 148], [128, 149], [129, 150], [106, 151], [130, 152], [130, 153], [131, 154], [132, 155], [135, 156], [135, 157], [113, 158], [136, 159], [137, 160], [138, 161], [141, 162], [141, 163], [142, 164], [144, 165], [144, 166], [146, 167], [148, 168], [148, 169], [150, 170], [151, 171], [152, 172], [153, 173], [154, 174], [155, 175], [155, 176], [158, 177], [158, 178], [159, 179], [160, 180], [161, 181], [161, 182], [164, 183], [167, 184], [170, 185], [171, 186], [171, 187], [174, 188], [175, 189], [175, 190], [177, 191], [179, 192], [180, 193], [181, 194], [181, 195], [183, 196], [184, 197], [186, 198], [186, 199], [191, 200], [200, 201], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 0], [12, 0], [13, 9], [14, 9], [15, 9], [16, 10], [17, 6], [18, 7], [19, 9], [20, 13], [21, 14], [22, 10], [23, 10], [24, 10], [25, 10], [26, 10], [27, 10], [28, 10], [29, 10], [30, 10], [31, 10], [32, 10], [33, 10], [34, 16], [35, 16], [36, 8], [37, 8], [38, 19], [39, 19], [40, 22], [41, 10], [42, 10], [43, 10], [44, 10], [45, 10], [46, 10], [47, 10], [48, 10], [49, 10], [50, 10], [51, 10], [52, 10], [53, 10], [54, 10], [55, 10], [56, 10], [57, 27], [58, 10], [59, 10], [60, 10], [61, 10], [62, 29], [63, 10], [64, 10], [65, 10], [66, 10], [67, 31], [68, 10], [69, 10], [70, 10], [71, 10], [72, 10], [73, 10], [74, 33], [75, 33], [76, 10], [77, 10], [78, 10], [79, 10], [80, 10], [81, 10], [82, 35], [83, 37], [84, 13], [85, 14], [86, 15], [87, 15], [88, 15], [89, 41], [90, 44], [91, 45], [92, 49], [93, 50], [94, 52], [95, 54], [96, 55], [97, 56], [98, 27], [99, 59], [100, 60], [101, 61], [102, 29], [103, 64], [104, 65], [105, 66], [106, 31], [107, 67], [108, 67], [109, 68], [110, 71], [111, 72], [112, 73], [113, 74], [114, 75], [115, 75], [116, 76], [117, 79], [118, 80], [119, 81], [120, 84], [121, 84], [122, 85], [123, 85], [124, 87], [125, 57], [126, 98], [127, 62], [128, 102], [129, 31], [130, 106], [131, 31], [132, 31], [133, 107], [134, 108], [135, 109], [136, 74], [137, 33], [138, 33], [139, 114], [140, 115], [141, 116], [142, 125], [143, 125], [144, 126], [145, 126], [146, 127], [147, 127], [148, 128], [149, 128], [150, 129], [151, 106], [152, 130], [153, 130], [154, 131], [155, 132], [156, 135], [157, 135], [158, 113], [159, 136], [160, 137], [161, 138], [162, 141], [163, 141], [164, 142], [165, 144], [166, 144], [167, 146], [168, 148], [169, 148], [170, 150], [171, 151], [172, 152], [173, 153], [174, 154], [175, 155], [176, 155], [177, 158], [178, 158], [179, 159], [180, 160], [181, 161], [182, 161], [183, 164], [184, 167], [185, 170], [186, 171], [187, 171], [188, 174], [189, 175], [190, 175], [191, 177], [192, 179], [193, 180], [194, 181], [195, 181], [196, 183], [197, 184], [198, 186], [199, 186], [200, 191], [201, 200], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201]]}, {"function_name": "BooleanLiteral", "code": "  final public boolean BooleanLiteral() throws ParseException {\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case TRUE:\n      jj_consume_token(TRUE);\n           {if (true) return true;}\n      break;\n    case FALSE:\n      jj_consume_token(FALSE);\n            {if (true) return false;}\n      break;\n    default:\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [2, 6], [2, 7], [2, 8], [4, 9], [4, 10], [6, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [10, 17], [12, 18], [13, 19], [13, 20], [15, 21], [15, 22], [19, 23], [21, 24], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 2], [7, 2], [8, 2], [9, 4], [10, 4], [11, 6], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 10], [18, 12], [19, 13], [20, 13], [21, 15], [22, 15], [23, 19], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "NullLiteral", "code": "  final public void NullLiteral() throws ParseException {\n    jj_consume_token(NULL);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "VoidLiteral", "code": "  final public void VoidLiteral() throws ParseException {\n    jj_consume_token(VOID);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Arguments", "code": "  final public void Arguments() throws ParseException {\n /*@bgen(jjtree) Arguments */\n  BSHArguments jjtn000 = new BSHArguments(JJTARGUMENTS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ArgumentList();\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(RPAREN);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [2, 15], [3, 16], [5, 17], [9, 18], [10, 19], [6, 20], [13, 21], [13, 22], [4, 23], [4, 24], [17, 25], [17, 26], [6, 27], [22, 28], [24, 29], [9, 30], [10, 31], [11, 32], [11, 33], [11, 34], [30, 35], [30, 36], [31, 37], [31, 38], [33, 39], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 2], [16, 3], [17, 5], [18, 9], [19, 10], [20, 6], [21, 13], [22, 13], [23, 4], [24, 4], [25, 17], [26, 17], [27, 6], [28, 22], [29, 24], [30, 9], [31, 10], [32, 11], [33, 11], [34, 11], [35, 30], [36, 30], [37, 31], [38, 31], [39, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "ArgumentList", "code": "  final public void ArgumentList() throws ParseException {\n    Expression();\n    label_18:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case COMMA:\n        ;\n        break;\n      default:\n        break label_18;\n      }\n      jj_consume_token(COMMA);\n      Expression();", "ast_nodes": ["FUNC_DECL", "LOOP", "LITERAL_ANCHOR", "CALL", "SWITCH", "CALL", "CALL", "COND_EXPR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [7, 10], [7, 11], [11, 12], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 7], [11, 7], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "AllocationExpression", "code": "  final public void AllocationExpression() throws ParseException {\n /*@bgen(jjtree) AllocationExpression */\n  BSHAllocationExpression jjtn000 = new BSHAllocationExpression(JJTALLOCATIONEXPRESSION);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_18(2)) {\n        jj_consume_token(NEW);\n        PrimitiveType();\n        ArrayDimensions();\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case NEW:\n          jj_consume_token(NEW);\n          AmbiguousName();\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case LBRACKET:\n            ArrayDimensions();\n            break;\n          case LPAREN:\n            Arguments();\n            if (jj_2_17(2)) {\n              Block();\n            } else {\n              ;\n            }\n            break;\n          default:\n            jj_consume_token(-1);\n            throw new ParseException();\n          }\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [12, 19], [4, 20], [4, 21], [15, 22], [15, 23], [18, 24], [6, 25], [6, 26], [6, 27], [21, 28], [9, 29], [10, 30], [11, 31], [11, 32], [11, 33], [18, 34], [18, 35], [18, 36], [24, 37], [24, 38], [29, 39], [29, 40], [30, 41], [30, 42], [32, 43], [34, 44], [18, 45], [36, 46], [18, 47], [18, 48], [38, 49], [45, 50], [36, 51], [36, 52], [36, 53], [36, 54], [46, 55], [46, 56], [51, 57], [36, 58], [53, 59], [36, 60], [36, 61], [56, 62], [58, 63], [59, 64], [53, 65], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 12], [20, 4], [21, 4], [22, 15], [23, 15], [24, 18], [25, 6], [26, 6], [27, 6], [28, 21], [29, 9], [30, 10], [31, 11], [32, 11], [33, 11], [34, 18], [35, 18], [36, 18], [37, 24], [38, 24], [39, 29], [40, 29], [41, 30], [42, 30], [43, 32], [44, 34], [45, 18], [46, 36], [47, 18], [48, 18], [49, 38], [50, 45], [51, 36], [52, 36], [53, 36], [54, 36], [55, 46], [56, 46], [57, 51], [58, 36], [59, 53], [60, 36], [61, 36], [62, 56], [63, 58], [64, 59], [65, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "ArrayDimensions", "code": "  final public void ArrayDimensions() throws ParseException {\n /*@bgen(jjtree) ArrayDimensions */\n  BSHArrayDimensions jjtn000 = new BSHArrayDimensions(JJTARRAYDIMENSIONS);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      if (jj_2_21(2)) {\n        label_19:\n        while (true) {\n          jj_consume_token(LBRACKET);\n          Expression();\n          jj_consume_token(RBRACKET);\n                                        jjtn000.addDefinedDimension();\n          if (jj_2_19(2)) {\n            ;\n          } else {\n            break label_19;\n          }\n        }\n        label_20:\n        while (true) {\n          if (jj_2_20(2)) {\n            ;\n          } else {\n            break label_20;\n          }\n          jj_consume_token(LBRACKET);\n          jj_consume_token(RBRACKET);\n                           jjtn000.addUndefinedDimension();\n        }\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case LBRACKET:\n          label_21:\n          while (true) {\n            jj_consume_token(LBRACKET);\n            jj_consume_token(RBRACKET);\n              jjtn000.addUndefinedDimension();\n            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n            case LBRACKET:\n              ;\n              break;\n            default:\n              break label_21;\n            }\n          }\n          ArrayInitializer();\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LOOP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "LOOP", "CALL", "BINARY_OP", "IF", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [6, 19], [6, 20], [12, 21], [4, 22], [4, 23], [15, 24], [15, 25], [18, 26], [19, 27], [20, 28], [23, 29], [9, 30], [10, 31], [11, 32], [11, 33], [11, 34], [18, 35], [18, 36], [18, 37], [26, 38], [26, 39], [19, 40], [20, 41], [30, 42], [30, 43], [31, 44], [31, 45], [33, 46], [35, 47], [18, 48], [18, 49], [37, 50], [39, 51], [19, 52], [19, 53], [19, 54], [40, 55], [41, 56], [20, 57], [20, 58], [20, 59], [20, 60], [48, 61], [37, 62], [40, 63], [55, 64], [41, 65], [56, 66], [62, 67], [37, 68], [37, 69], [37, 70], [62, 71], [62, 72], [67, 73], [67, 74], [74, 75], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 6], [20, 6], [21, 12], [22, 4], [23, 4], [24, 15], [25, 15], [26, 18], [27, 19], [28, 20], [29, 23], [30, 9], [31, 10], [32, 11], [33, 11], [34, 11], [35, 18], [36, 18], [37, 18], [38, 26], [39, 26], [40, 19], [41, 20], [42, 30], [43, 30], [44, 31], [45, 31], [46, 33], [47, 35], [48, 18], [49, 18], [50, 37], [51, 39], [52, 19], [53, 19], [54, 19], [55, 40], [56, 41], [57, 20], [58, 20], [59, 20], [60, 20], [61, 48], [62, 37], [63, 40], [64, 55], [65, 41], [66, 56], [67, 62], [68, 37], [69, 37], [70, 37], [71, 62], [72, 62], [73, 67], [74, 67], [75, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "Statement", "code": "  final public void Statement() throws ParseException {\n    if (jj_2_22(2)) {\n      LabeledStatement();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case LBRACE:\n        Block();\n        break;\n      case SEMICOLON:\n        EmptyStatement();\n        break;\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        StatementExpression();\n        jj_consume_token(SEMICOLON);\n        break;\n      case SWITCH:\n        SwitchStatement();\n        break;\n      case IF:\n        IfStatement();\n        break;\n      case WHILE:\n        WhileStatement();\n        break;\n      case DO:\n        DoStatement();\n        break;\n      default:\n        if (isRegularForStatement()) {\n          ForStatement();\n        } else {\n          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n          case FOR:\n            EnhancedForStatement();\n            break;\n          case BREAK:\n            BreakStatement();\n            break;\n          case CONTINUE:\n            ContinueStatement();\n            break;\n          case RETURN:\n            ReturnStatement();\n            break;\n          case SYNCHRONIZED:\n            SynchronizedStatement();\n            break;\n          case THROW:\n            ThrowStatement();\n            break;\n          case TRY:\n            TryStatement();\n            break;\n          default:\n            jj_consume_token(-1);\n            throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "SWITCH", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "SWITCH", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [5, 15], [5, 16], [7, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [16, 26], [7, 27], [27, 28], [7, 29], [27, 30], [27, 31], [27, 32], [27, 33], [27, 34], [27, 35], [27, 36], [27, 37], [28, 38], [28, 39], [30, 40], [27, 41], [27, 42], [27, 43], [27, 44], [27, 45], [27, 46], [27, 47], [27, 48], [39, 49], [41, 50], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 3], [8, 3], [9, 3], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 5], [16, 5], [17, 7], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 16], [27, 7], [28, 27], [29, 7], [30, 27], [31, 27], [32, 27], [33, 27], [34, 27], [35, 27], [36, 27], [37, 27], [38, 28], [39, 28], [40, 30], [41, 27], [42, 27], [43, 27], [44, 27], [45, 27], [46, 27], [47, 27], [48, 27], [49, 39], [50, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "LabeledStatement", "code": "  final public void LabeledStatement() throws ParseException {\n    jj_consume_token(IDENTIFIER);\n    jj_consume_token(COLON);\n    Statement();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Block", "code": "  final public void Block() throws ParseException {\n /*@bgen(jjtree) Block */\n  BSHBlock jjtn000 = new BSHBlock(JJTBLOCK);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(LBRACE);\n      label_22:\n      while (true) {\n        if (jj_2_23(1)) {\n          ;\n        } else {\n          break label_22;\n        }\n        BlockStatement();\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [2, 15], [3, 16], [5, 17], [9, 18], [10, 19], [6, 20], [4, 21], [4, 22], [17, 23], [17, 24], [6, 25], [20, 26], [22, 27], [9, 28], [10, 29], [11, 30], [11, 31], [11, 32], [20, 33], [26, 34], [28, 35], [28, 36], [29, 37], [29, 38], [31, 39], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 2], [16, 3], [17, 5], [18, 9], [19, 10], [20, 6], [21, 4], [22, 4], [23, 17], [24, 17], [25, 6], [26, 20], [27, 22], [28, 9], [29, 10], [30, 11], [31, 11], [32, 11], [33, 20], [34, 26], [35, 28], [36, 28], [37, 29], [38, 29], [39, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "BlockStatement", "code": "  final public void BlockStatement() throws ParseException {\n    if (jj_2_24(2147483647)) {\n      ClassDeclaration();\n    } else if (jj_2_25(2147483647)) {\n      MethodDeclaration();\n    } else if (jj_2_26(2147483647)) {\n      MethodDeclaration();\n    } else if (jj_2_27(2147483647)) {\n      TypedVariableDeclaration();\n      jj_consume_token(SEMICOLON);\n    } else if (jj_2_28(1)) {\n      Statement();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IMPORT:\n      case STATIC:\n        ImportDeclaration();\n        break;\n      case PACKAGE:\n        PackageDeclaration();\n        break;\n      case FORMAL_COMMENT:\n        FormalComment();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [3, 6], [4, 7], [4, 8], [5, 9], [1, 10], [7, 11], [7, 12], [8, 13], [2, 14], [11, 15], [12, 16], [4, 17], [11, 18], [15, 19], [7, 20], [7, 21], [18, 22], [11, 23], [18, 24], [18, 25], [18, 26], [18, 27], [22, 28], [22, 29], [24, 30], [18, 31], [18, 32], [18, 33], [18, 34], [29, 35], [31, 36], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 3], [7, 4], [8, 4], [9, 5], [10, 1], [11, 7], [12, 7], [13, 8], [14, 2], [15, 11], [16, 12], [17, 4], [18, 11], [19, 15], [20, 7], [21, 7], [22, 18], [23, 11], [24, 18], [25, 18], [26, 18], [27, 18], [28, 22], [29, 22], [30, 24], [31, 18], [32, 18], [33, 18], [34, 18], [35, 29], [36, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "FormalComment", "code": "  final public void FormalComment() throws ParseException {\n /*@bgen(jjtree) #FormalComment( retainComments) */\n        BSHFormalComment jjtn000 = new BSHFormalComment(JJTFORMALCOMMENT);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t;\n    try {\n      t = jj_consume_token(FORMAL_COMMENT);\n                              jjtree.closeNodeScope(jjtn000,  retainComments);\n                              jjtc000 = false;\n                              jjtreeCloseNodeScope(jjtn000);\n                jjtn000.text=t.image;\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000,  retainComments);\n            jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [3, 13], [4, 14], [10, 15], [12, 16], [5, 17], [5, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 3], [14, 4], [15, 10], [16, 12], [17, 5], [18, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "EmptyStatement", "code": "  final public void EmptyStatement() throws ParseException {\n    jj_consume_token(SEMICOLON);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "StatementExpression", "code": "  final public void StatementExpression() throws ParseException {\n    Expression();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SwitchStatement", "code": "  final public void SwitchStatement() throws ParseException {\n /*@bgen(jjtree) SwitchStatement */\n  BSHSwitchStatement jjtn000 = new BSHSwitchStatement(JJTSWITCHSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(SWITCH);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(LBRACE);\n      label_23:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CASE:\n        case _DEFAULT:\n          ;\n          break;\n        default:\n          break label_23;\n        }\n        SwitchLabel();\n        label_24:\n        while (true) {\n          if (jj_2_29(1)) {\n            ;\n          } else {\n            break label_24;\n          }\n          BlockStatement();\n        }\n      }\n      jj_consume_token(RBRACE);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LOOP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [6, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [2, 19], [3, 20], [5, 21], [9, 22], [10, 23], [6, 24], [6, 25], [4, 26], [4, 27], [21, 28], [21, 29], [24, 30], [6, 31], [25, 32], [27, 33], [9, 34], [10, 35], [11, 36], [11, 37], [11, 38], [24, 39], [25, 40], [25, 41], [32, 42], [32, 43], [34, 44], [34, 45], [35, 46], [35, 47], [37, 48], [24, 49], [39, 50], [43, 51], [39, 52], [50, 53], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 6], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 2], [20, 3], [21, 5], [22, 9], [23, 10], [24, 6], [25, 6], [26, 4], [27, 4], [28, 21], [29, 21], [30, 24], [31, 6], [32, 25], [33, 27], [34, 9], [35, 10], [36, 11], [37, 11], [38, 11], [39, 24], [40, 25], [41, 25], [42, 32], [43, 32], [44, 34], [45, 34], [46, 35], [47, 35], [48, 37], [49, 24], [50, 39], [51, 43], [52, 39], [53, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "SwitchLabel", "code": "  final public void SwitchLabel() throws ParseException {\n /*@bgen(jjtree) SwitchLabel */\n  BSHSwitchLabel jjtn000 = new BSHSwitchLabel(JJTSWITCHLABEL);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CASE:\n        jj_consume_token(CASE);\n        Expression();\n        jj_consume_token(COLON);\n        break;\n      case _DEFAULT:\n        jj_consume_token(_DEFAULT);\n        jj_consume_token(COLON);\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n                  jjtn000.isDefault = true;\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [2, 13], [3, 14], [5, 15], [9, 16], [10, 17], [6, 18], [6, 19], [6, 20], [12, 21], [12, 22], [4, 23], [4, 24], [15, 25], [15, 26], [18, 27], [6, 28], [6, 29], [6, 30], [6, 31], [6, 32], [6, 33], [6, 34], [6, 35], [6, 36], [6, 37], [22, 38], [24, 39], [9, 40], [10, 41], [11, 42], [11, 43], [11, 44], [28, 45], [29, 46], [31, 47], [32, 48], [40, 49], [40, 50], [41, 51], [41, 52], [43, 53], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 2], [14, 3], [15, 5], [16, 9], [17, 10], [18, 6], [19, 6], [20, 6], [21, 12], [22, 12], [23, 4], [24, 4], [25, 15], [26, 15], [27, 18], [28, 6], [29, 6], [30, 6], [31, 6], [32, 6], [33, 6], [34, 6], [35, 6], [36, 6], [37, 6], [38, 22], [39, 24], [40, 9], [41, 10], [42, 11], [43, 11], [44, 11], [45, 28], [46, 29], [47, 31], [48, 32], [49, 40], [50, 40], [51, 41], [52, 41], [53, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "IfStatement", "code": "  final public void IfStatement() throws ParseException {\n /*@bgen(jjtree) IfStatement */\n  BSHIfStatement jjtn000 = new BSHIfStatement(JJTIFSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(IF);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ELSE:\n        jj_consume_token(ELSE);\n        Statement();\n        break;\n      default:\n        ;\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [2, 18], [3, 19], [5, 20], [9, 21], [10, 22], [6, 23], [12, 24], [12, 25], [4, 26], [4, 27], [20, 28], [20, 29], [6, 30], [6, 31], [25, 32], [27, 33], [9, 34], [10, 35], [11, 36], [11, 37], [11, 38], [34, 39], [34, 40], [35, 41], [35, 42], [37, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 2], [19, 3], [20, 5], [21, 9], [22, 10], [23, 6], [24, 12], [25, 12], [26, 4], [27, 4], [28, 20], [29, 20], [30, 6], [31, 6], [32, 25], [33, 27], [34, 9], [35, 10], [36, 11], [37, 11], [38, 11], [39, 34], [40, 34], [41, 35], [42, 35], [43, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "WhileStatement", "code": "  final public void WhileStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [2, 16], [3, 17], [5, 18], [8, 19], [9, 20], [4, 21], [4, 22], [18, 23], [18, 24], [22, 25], [8, 26], [9, 27], [10, 28], [10, 29], [10, 30], [26, 31], [26, 32], [27, 33], [27, 34], [29, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 2], [17, 3], [18, 5], [19, 8], [20, 9], [21, 4], [22, 4], [23, 18], [24, 18], [25, 22], [26, 8], [27, 9], [28, 10], [29, 10], [30, 10], [31, 26], [32, 26], [33, 27], [34, 27], [35, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "DoStatement", "code": "  final public void DoStatement() throws ParseException {\n /*@bgen(jjtree) WhileStatement */\n  BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(DO);\n      Statement();\n      jj_consume_token(WHILE);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      jj_consume_token(SEMICOLON);\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n          jjtn000.isDoStatement=true;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [2, 22], [3, 23], [5, 24], [8, 25], [9, 26], [11, 27], [13, 28], [14, 29], [4, 30], [4, 31], [24, 32], [24, 33], [31, 34], [8, 35], [9, 36], [10, 37], [10, 38], [10, 39], [35, 40], [35, 41], [36, 42], [36, 43], [38, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 2], [23, 3], [24, 5], [25, 8], [26, 9], [27, 11], [28, 13], [29, 14], [30, 4], [31, 4], [32, 24], [33, 24], [34, 31], [35, 8], [36, 9], [37, 10], [38, 10], [39, 10], [40, 35], [41, 35], [42, 36], [43, 36], [44, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "ForStatement", "code": "  final public void ForStatement() throws ParseException {\n /*@bgen(jjtree) ForStatement */\n  BSHForStatement jjtn000 = new BSHForStatement(JJTFORSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      jj_consume_token(FOR);\n      jj_consume_token(LPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case ABSTRACT:\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FINAL:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NATIVE:\n      case NEW:\n      case NULL:\n      case PRIVATE:\n      case PROTECTED:\n      case PUBLIC:\n      case SHORT:\n      case STATIC:\n      case STRICTFP:\n      case SYNCHRONIZED:\n      case TRANSIENT:\n      case TRUE:\n      case VOID:\n      case VOLATILE:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ForInit();\n                          jjtn000.hasForInit=true;\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n                         jjtn000.hasExpression=true;\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        ForUpdate();\n                        jjtn000.hasForUpdate=true;\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(RPAREN);\n      Statement();\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "SWITCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [0, 10], [0, 11], [6, 12], [6, 13], [6, 14], [1, 15], [1, 16], [7, 17], [1, 18], [8, 19], [1, 20], [9, 21], [1, 22], [1, 23], [2, 24], [3, 25], [4, 26], [6, 27], [12, 28], [13, 29], [7, 30], [17, 31], [17, 32], [8, 33], [19, 34], [19, 35], [9, 36], [21, 37], [21, 38], [5, 39], [5, 40], [27, 41], [27, 42], [7, 43], [7, 44], [32, 45], [8, 46], [8, 47], [35, 48], [9, 49], [9, 50], [38, 51], [40, 52], [12, 53], [13, 54], [14, 55], [14, 56], [14, 57], [43, 58], [46, 59], [49, 60], [53, 61], [53, 62], [54, 63], [54, 64], [56, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 0], [11, 0], [12, 6], [13, 6], [14, 6], [15, 1], [16, 1], [17, 7], [18, 1], [19, 8], [20, 1], [21, 9], [22, 1], [23, 1], [24, 2], [25, 3], [26, 4], [27, 6], [28, 12], [29, 13], [30, 7], [31, 17], [32, 17], [33, 8], [34, 19], [35, 19], [36, 9], [37, 21], [38, 21], [39, 5], [40, 5], [41, 27], [42, 27], [43, 7], [44, 7], [45, 32], [46, 8], [47, 8], [48, 35], [49, 9], [50, 9], [51, 38], [52, 40], [53, 12], [54, 13], [55, 14], [56, 14], [57, 14], [58, 43], [59, 46], [60, 49], [61, 53], [62, 53], [63, 54], [64, 54], [65, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "EnhancedForStatement", "code": "  final public void EnhancedForStatement() throws ParseException {\n /*@bgen(jjtree) EnhancedForStatement */\n  BSHEnhancedForStatement jjtn000 = new BSHEnhancedForStatement(JJTENHANCEDFORSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);Token t = null;\n    try {\n      if (jj_2_30(4)) {\n        jj_consume_token(FOR);\n        jj_consume_token(LPAREN);\n        t = jj_consume_token(IDENTIFIER);\n        jj_consume_token(COLON);\n        Expression();\n        jj_consume_token(RPAREN);\n        Statement();\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n                  jjtn000.varName = t.image;\n      } else {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case FOR:\n          jj_consume_token(FOR);\n          jj_consume_token(LPAREN);\n          Type();\n          t = jj_consume_token(IDENTIFIER);\n          jj_consume_token(COLON);\n          Expression();\n          jj_consume_token(RPAREN);\n          Statement();\n                  jjtree.closeNodeScope(jjtn000, true);\n                  jjtc000 = false;\n                  jjtreeCloseNodeScope(jjtn000);\n                  jjtn000.varName = t.image;\n          break;\n        default:\n          jj_consume_token(-1);\n          throw new ParseException();\n        }\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [6, 11], [6, 12], [7, 13], [2, 14], [3, 15], [4, 16], [6, 17], [10, 18], [11, 19], [7, 20], [13, 21], [5, 22], [5, 23], [17, 24], [17, 25], [20, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [23, 38], [10, 39], [11, 40], [12, 41], [12, 42], [12, 43], [20, 44], [20, 45], [26, 46], [26, 47], [29, 48], [30, 49], [35, 50], [39, 51], [39, 52], [40, 53], [40, 54], [42, 55], [44, 56], [20, 57], [20, 58], [20, 59], [20, 60], [20, 61], [20, 62], [20, 63], [20, 64], [20, 65], [20, 66], [20, 67], [20, 68], [20, 69], [47, 70], [57, 71], [60, 72], [61, 73], [66, 74], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 6], [12, 6], [13, 7], [14, 2], [15, 3], [16, 4], [17, 6], [18, 10], [19, 11], [20, 7], [21, 13], [22, 5], [23, 5], [24, 17], [25, 17], [26, 20], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 7], [33, 7], [34, 7], [35, 7], [36, 7], [37, 7], [38, 23], [39, 10], [40, 11], [41, 12], [42, 12], [43, 12], [44, 20], [45, 20], [46, 26], [47, 26], [48, 29], [49, 30], [50, 35], [51, 39], [52, 39], [53, 40], [54, 40], [55, 42], [56, 44], [57, 20], [58, 20], [59, 20], [60, 20], [61, 20], [62, 20], [63, 20], [64, 20], [65, 20], [66, 20], [67, 20], [68, 20], [69, 20], [70, 47], [71, 57], [72, 60], [73, 61], [74, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74]]}, {"function_name": "ForInit", "code": "  final public void ForInit() throws ParseException {\n  Token t = null;\n    if (jj_2_31(2147483647)) {\n      TypedVariableDeclaration();\n    } else {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        StatementExpressionList();\n        break;\n      default:\n        jj_consume_token(-1);\n        throw new ParseException();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [4, 7], [1, 8], [4, 9], [4, 10], [7, 11], [7, 12], [9, 13], [4, 14], [4, 15], [12, 16], [14, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 4], [8, 1], [9, 4], [10, 4], [11, 7], [12, 7], [13, 9], [14, 4], [15, 4], [16, 12], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "TypedVariableDeclaration", "code": "  final public void TypedVariableDeclaration() throws ParseException {\n /*@bgen(jjtree) TypedVariableDeclaration */\n        BSHTypedVariableDeclaration jjtn000 = new BSHTypedVariableDeclaration(JJTTYPEDVARIABLEDECLARATION);\n        boolean jjtc000 = true;\n        jjtree.openNodeScope(jjtn000);\n        jjtreeOpenNodeScope(jjtn000);Token t = null;\n        Modifiers mods;\n    try {\n      mods = Modifiers(Modifiers.FIELD, false);\n      Type();\n      VariableDeclarator();\n      label_25:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          break label_25;\n        }\n        jj_consume_token(COMMA);\n        VariableDeclarator();\n      }\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n        jjtn000.modifiers = mods;\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "SWITCH", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [0, 9], [0, 10], [7, 11], [7, 12], [7, 13], [1, 14], [1, 15], [1, 16], [1, 17], [8, 18], [1, 19], [1, 20], [1, 21], [3, 22], [4, 23], [5, 24], [7, 25], [11, 26], [12, 27], [16, 28], [17, 29], [8, 30], [21, 31], [6, 32], [6, 33], [25, 34], [25, 35], [8, 36], [8, 37], [30, 38], [31, 39], [33, 40], [11, 41], [12, 42], [13, 43], [13, 44], [13, 45], [30, 46], [30, 47], [38, 48], [38, 49], [41, 50], [41, 51], [42, 52], [42, 53], [44, 54], [49, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 0], [10, 0], [11, 7], [12, 7], [13, 7], [14, 1], [15, 1], [16, 1], [17, 1], [18, 8], [19, 1], [20, 1], [21, 1], [22, 3], [23, 4], [24, 5], [25, 7], [26, 11], [27, 12], [28, 16], [29, 17], [30, 8], [31, 21], [32, 6], [33, 6], [34, 25], [35, 25], [36, 8], [37, 8], [38, 30], [39, 31], [40, 33], [41, 11], [42, 12], [43, 13], [44, 13], [45, 13], [46, 30], [47, 30], [48, 38], [49, 38], [50, 41], [51, 41], [52, 42], [53, 42], [54, 44], [55, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "StatementExpressionList", "code": "  final public void StatementExpressionList() throws ParseException {\n /*@bgen(jjtree) StatementExpressionList */\n  BSHStatementExpressionList jjtn000 = new BSHStatementExpressionList(JJTSTATEMENTEXPRESSIONLIST);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      StatementExpression();\n      label_26:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case COMMA:\n          ;\n          break;\n        default:\n          break label_26;\n        }\n        jj_consume_token(COMMA);\n        StatementExpression();\n      }\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [6, 12], [1, 13], [2, 14], [3, 15], [5, 16], [9, 17], [10, 18], [6, 19], [4, 20], [4, 21], [16, 22], [16, 23], [6, 24], [6, 25], [19, 26], [21, 27], [9, 28], [10, 29], [11, 30], [11, 31], [11, 32], [19, 33], [19, 34], [26, 35], [26, 36], [28, 37], [28, 38], [29, 39], [29, 40], [31, 41], [36, 42], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 6], [13, 1], [14, 2], [15, 3], [16, 5], [17, 9], [18, 10], [19, 6], [20, 4], [21, 4], [22, 16], [23, 16], [24, 6], [25, 6], [26, 19], [27, 21], [28, 9], [29, 10], [30, 11], [31, 11], [32, 11], [33, 19], [34, 19], [35, 26], [36, 26], [37, 28], [38, 28], [39, 29], [40, 29], [41, 31], [42, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "ForUpdate", "code": "  final public void ForUpdate() throws ParseException {\n    StatementExpressionList();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BreakStatement", "code": "  final public void BreakStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(BREAK);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                 jjtree.closeNodeScope(jjtn000, true);\n                                 jjtc000 = false;\n                                 jjtreeCloseNodeScope(jjtn000);\n                                 jjtn000.kind = BREAK;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "SWITCH", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [1, 14], [2, 15], [3, 16], [10, 17], [11, 18], [5, 19], [13, 20], [13, 21], [4, 22], [4, 23], [5, 24], [21, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 1], [15, 2], [16, 3], [17, 10], [18, 11], [19, 5], [20, 13], [21, 13], [22, 4], [23, 4], [24, 5], [25, 21], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "ContinueStatement", "code": "  final public void ContinueStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(CONTINUE);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case IDENTIFIER:\n        jj_consume_token(IDENTIFIER);\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                    jjtree.closeNodeScope(jjtn000, true);\n                                    jjtc000 = false;\n                                    jjtreeCloseNodeScope(jjtn000);\n                                    jjtn000.kind = CONTINUE;\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "SWITCH", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [1, 14], [2, 15], [3, 16], [10, 17], [11, 18], [5, 19], [13, 20], [13, 21], [4, 22], [4, 23], [5, 24], [21, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 1], [15, 2], [16, 3], [17, 10], [18, 11], [19, 5], [20, 13], [21, 13], [22, 4], [23, 4], [24, 5], [25, 21], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "ReturnStatement", "code": "  final public void ReturnStatement() throws ParseException {\n /*@bgen(jjtree) ReturnStatement */\n  BSHReturnStatement jjtn000 = new BSHReturnStatement(JJTRETURNSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(RETURN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case BOOLEAN:\n      case BYTE:\n      case CHAR:\n      case DOUBLE:\n      case FALSE:\n      case FLOAT:\n      case INT:\n      case LONG:\n      case NEW:\n      case NULL:\n      case SHORT:\n      case TRUE:\n      case VOID:\n      case INTEGER_LITERAL:\n      case FLOATING_POINT_LITERAL:\n      case CHARACTER_LITERAL:\n      case STRING_LITERAL:\n      case IDENTIFIER:\n      case LPAREN:\n      case BANG:\n      case TILDE:\n      case INCR:\n      case DECR:\n      case PLUS:\n      case MINUS:\n        Expression();\n        break;\n      default:\n        ;\n      }\n      jj_consume_token(SEMICOLON);\n                                  jjtree.closeNodeScope(jjtn000, true);\n                                  jjtc000 = false;\n                                  jjtreeCloseNodeScope(jjtn000);\n                                  jjtn000.kind = RETURN;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "SWITCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [5, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [6, 17], [1, 18], [2, 19], [3, 20], [5, 21], [9, 22], [10, 23], [14, 24], [15, 25], [6, 26], [17, 27], [17, 28], [4, 29], [4, 30], [21, 31], [21, 32], [6, 33], [28, 34], [30, 35], [9, 36], [10, 37], [11, 38], [11, 39], [11, 40], [36, 41], [36, 42], [37, 43], [37, 44], [39, 45], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 5], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 6], [18, 1], [19, 2], [20, 3], [21, 5], [22, 9], [23, 10], [24, 14], [25, 15], [26, 6], [27, 17], [28, 17], [29, 4], [30, 4], [31, 21], [32, 21], [33, 6], [34, 28], [35, 30], [36, 9], [37, 10], [38, 11], [39, 11], [40, 11], [41, 36], [42, 36], [43, 37], [44, 37], [45, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "SynchronizedStatement", "code": "  final public void SynchronizedStatement() throws ParseException {\n /*@bgen(jjtree) Block */\n  BSHBlock jjtn000 = new BSHBlock(JJTBLOCK);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(SYNCHRONIZED);\n      jj_consume_token(LPAREN);\n      Expression();\n      jj_consume_token(RPAREN);\n      Block();\n                                                jjtree.closeNodeScope(jjtn000, true);\n                                                jjtc000 = false;\n                                                jjtreeCloseNodeScope(jjtn000);\n                jjtn000.isSynchronized=true;\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [2, 20], [3, 21], [5, 22], [8, 23], [9, 24], [11, 25], [13, 26], [14, 27], [4, 28], [4, 29], [22, 30], [22, 31], [29, 32], [8, 33], [9, 34], [10, 35], [10, 36], [10, 37], [33, 38], [33, 39], [34, 40], [34, 41], [36, 42], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 2], [21, 3], [22, 5], [23, 8], [24, 9], [25, 11], [26, 13], [27, 14], [28, 4], [29, 4], [30, 22], [31, 22], [32, 29], [33, 8], [34, 9], [35, 10], [36, 10], [37, 10], [38, 33], [39, 33], [40, 34], [41, 34], [42, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "ThrowStatement", "code": "  final public void ThrowStatement() throws ParseException {\n /*@bgen(jjtree) ThrowStatement */\n  BSHThrowStatement jjtn000 = new BSHThrowStatement(JJTTHROWSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);\n    try {\n      jj_consume_token(THROW);\n      Expression();\n      jj_consume_token(SEMICOLON);\n    } catch (Throwable jjte000) {\n    if (jjtc000) {\n      jjtree.clearNodeScope(jjtn000);\n      jjtc000 = false;\n    } else {\n      jjtree.popNode();\n    }\n    if (jjte000 instanceof RuntimeException) {\n      {if (true) throw (RuntimeException)jjte000;}\n    }\n    if (jjte000 instanceof ParseException) {\n      {if (true) throw (ParseException)jjte000;}\n    }\n    {if (true) throw (Error)jjte000;}\n    } finally {\n    if (jjtc000) {\n      jjtree.closeNodeScope(jjtn000, true);\n      jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CALL", "CALL", "IF", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [5, 16], [8, 17], [9, 18], [4, 19], [4, 20], [16, 21], [16, 22], [20, 23], [8, 24], [9, 25], [10, 26], [10, 27], [10, 28], [24, 29], [24, 30], [25, 31], [25, 32], [27, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 5], [17, 8], [18, 9], [19, 4], [20, 4], [21, 16], [22, 16], [23, 20], [24, 8], [25, 9], [26, 10], [27, 10], [28, 10], [29, 24], [30, 24], [31, 25], [32, 25], [33, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "TryStatement", "code": "  final public void TryStatement() throws ParseException {\n /*@bgen(jjtree) TryStatement */\n  BSHTryStatement jjtn000 = new BSHTryStatement(JJTTRYSTATEMENT);\n  boolean jjtc000 = true;\n  jjtree.openNodeScope(jjtn000);\n  jjtreeOpenNodeScope(jjtn000);boolean closed = false;\n    try {\n      jj_consume_token(TRY);\n      Block();\n      label_27:\n      while (true) {\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case CATCH:\n          ;\n          break;\n        default:\n          break label_27;\n        }\n        jj_consume_token(CATCH);\n        jj_consume_token(LPAREN);\n        FormalParameter();\n        jj_consume_token(RPAREN);\n        Block();\n                                                      closed = true;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FINALLY:\n        jj_consume_token(FINALLY);\n        Block();\n                              closed = true;\n        break;\n      default:\n        ;\n      }\n          jjtree.closeNodeScope(jjtn000, true);\n          jjtc000 = false;\n          jjtreeCloseNodeScope(jjtn000);\n                if ( !closed ) {if (true) throw generateParseException();}\n    } catch (Throwable jjte000) {\n          if (jjtc000) {\n            jjtree.clearNodeScope(jjtn000);\n            jjtc000 = false;\n          } else {\n            jjtree.popNode();\n          }\n          if (jjte000 instanceof RuntimeException) {\n            {if (true) throw (RuntimeException)jjte000;}\n          }\n          if (jjte000 instanceof ParseException) {\n            {if (true) throw (ParseException)jjte000;}\n          }\n          {if (true) throw (Error)jjte000;}\n    } finally {\n          if (jjtc000) {\n            jjtree.closeNodeScope(jjtn000, true);\n            jjtreeCloseNodeScope(jjtn000);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "SWITCH", "LOOP", "CALL", "CALL", "IF", "IF", "IF", "CALL", "ASSIGN", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "SWITCH", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [0, 10], [0, 11], [6, 12], [6, 13], [6, 14], [1, 15], [1, 16], [1, 17], [8, 18], [9, 19], [1, 20], [1, 21], [2, 22], [3, 23], [4, 24], [6, 25], [12, 26], [13, 27], [7, 28], [16, 29], [17, 30], [8, 31], [18, 32], [18, 33], [9, 34], [5, 35], [5, 36], [25, 37], [25, 38], [28, 39], [28, 40], [8, 41], [8, 42], [8, 43], [33, 44], [9, 45], [9, 46], [9, 47], [9, 48], [9, 49], [9, 50], [34, 51], [36, 52], [12, 53], [13, 54], [14, 55], [14, 56], [14, 57], [39, 58], [41, 59], [45, 60], [34, 61], [34, 62], [51, 63], [51, 64], [53, 65], [53, 66], [54, 67], [54, 68], [56, 69], [64, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 0], [11, 0], [12, 6], [13, 6], [14, 6], [15, 1], [16, 1], [17, 1], [18, 8], [19, 9], [20, 1], [21, 1], [22, 2], [23, 3], [24, 4], [25, 6], [26, 12], [27, 13], [28, 7], [29, 16], [30, 17], [31, 8], [32, 18], [33, 18], [34, 9], [35, 5], [36, 5], [37, 25], [38, 25], [39, 28], [40, 28], [41, 8], [42, 8], [43, 8], [44, 33], [45, 9], [46, 9], [47, 9], [48, 9], [49, 9], [50, 9], [51, 34], [52, 36], [53, 12], [54, 13], [55, 14], [56, 14], [57, 14], [58, 39], [59, 41], [60, 45], [61, 34], [62, 34], [63, 51], [64, 51], [65, 53], [66, 53], [67, 54], [68, 54], [69, 56], [70, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "jj_2_1", "code": "  final private boolean jj_2_1(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_1(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_2", "code": "  final private boolean jj_2_2(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_2(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_3", "code": "  final private boolean jj_2_3(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_3(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_4", "code": "  final private boolean jj_2_4(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_4(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_5", "code": "  final private boolean jj_2_5(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_5(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_6", "code": "  final private boolean jj_2_6(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_6(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_7", "code": "  final private boolean jj_2_7(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_7(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_8", "code": "  final private boolean jj_2_8(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_8(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_9", "code": "  final private boolean jj_2_9(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_9(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_10", "code": "  final private boolean jj_2_10(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_10(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_11", "code": "  final private boolean jj_2_11(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_11(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_12", "code": "  final private boolean jj_2_12(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_12(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_13", "code": "  final private boolean jj_2_13(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_13(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_14", "code": "  final private boolean jj_2_14(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_14(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_15", "code": "  final private boolean jj_2_15(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_15(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_16", "code": "  final private boolean jj_2_16(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_16(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_17", "code": "  final private boolean jj_2_17(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_17(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_18", "code": "  final private boolean jj_2_18(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_18(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_19", "code": "  final private boolean jj_2_19(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_19(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_20", "code": "  final private boolean jj_2_20(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_20(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_21", "code": "  final private boolean jj_2_21(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_21(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_22", "code": "  final private boolean jj_2_22(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_22(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_23", "code": "  final private boolean jj_2_23(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_23(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_24", "code": "  final private boolean jj_2_24(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_24(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_25", "code": "  final private boolean jj_2_25(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_25(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_26", "code": "  final private boolean jj_2_26(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_26(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_27", "code": "  final private boolean jj_2_27(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_27(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_28", "code": "  final private boolean jj_2_28(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_28(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_29", "code": "  final private boolean jj_2_29(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_29(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_30", "code": "  final private boolean jj_2_30(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_30(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_2_31", "code": "  final private boolean jj_2_31(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_31(); }\n    catch(LookaheadSuccess ls) { } return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [0, 7], [0, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 0], [8, 0], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_46", "code": "  final private boolean jj_3R_46() {\n    if (jj_3R_91()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_28", "code": "  final private boolean jj_3R_28() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_46()) {\n    jj_scanpos = xsp;\n    if (jj_3R_47()) {\n    jj_scanpos = xsp;\n    if (jj_3R_48()) {\n    jj_scanpos = xsp;\n    if (jj_3R_49()) {\n    jj_scanpos = xsp;\n    if (jj_3_28()) {\n    jj_scanpos = xsp;\n    if (jj_3R_50()) {\n    jj_scanpos = xsp;\n    if (jj_3R_51()) {\n    jj_scanpos = xsp;\n    if (jj_3R_52()) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [2, 9], [7, 10], [10, 11], [7, 12], [10, 13], [13, 14], [10, 15], [13, 16], [16, 17], [13, 18], [16, 19], [19, 20], [16, 21], [19, 22], [22, 23], [19, 24], [22, 25], [25, 26], [25, 27], [22, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 2], [10, 7], [11, 10], [12, 7], [13, 10], [14, 13], [15, 10], [16, 13], [17, 16], [18, 13], [19, 16], [20, 19], [21, 16], [22, 19], [23, 22], [24, 19], [25, 22], [26, 25], [27, 25], [28, 22], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "jj_3_23", "code": "  final private boolean jj_3_23() {\n    if (jj_3R_28()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_161", "code": "  final private boolean jj_3R_161() {\n    if (jj_3R_164()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_169()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_38", "code": "  final private boolean jj_3R_38() {\n    if (jj_scan_token(LBRACE)) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_23()) { jj_scanpos = xsp; break; }\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [5, 10], [5, 11], [7, 12], [3, 13], [10, 14], [13, 15], [3, 16], [13, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 5], [11, 5], [12, 7], [13, 3], [14, 10], [15, 13], [16, 3], [17, 13], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jj_3R_158", "code": "  final private boolean jj_3R_158() {\n    if (jj_3R_161()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_167()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_40", "code": "  final private boolean jj_3R_40() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_3R_45()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_156", "code": "  final private boolean jj_3R_156() {\n    if (jj_scan_token(HOOK)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_3R_108()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [9, 16], [11, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 9], [17, 11], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jj_3R_165", "code": "  final private boolean jj_3R_165() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(108)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(109)) return true;\n    }\n    if (jj_3R_158()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [11, 14], [3, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 11], [15, 3], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_153", "code": "  final private boolean jj_3R_153() {\n    if (jj_3R_158()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_165()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_90", "code": "  final private boolean jj_3R_90() {\n    if (jj_3R_124()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_89", "code": "  final private boolean jj_3R_89() {\n    if (jj_3R_123()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_88", "code": "  final private boolean jj_3R_88() {\n    if (jj_3R_122()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_162", "code": "  final private boolean jj_3R_162() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(98)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(99)) return true;\n    }\n    if (jj_3R_153()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [11, 14], [3, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 11], [15, 3], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_87", "code": "  final private boolean jj_3R_87() {\n    if (jj_3R_121()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_148", "code": "  final private boolean jj_3R_148() {\n    if (jj_3R_153()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_162()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_86", "code": "  final private boolean jj_3R_86() {\n    if (jj_3R_120()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_85", "code": "  final private boolean jj_3R_85() {\n    if (jj_3R_119()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_84", "code": "  final private boolean jj_3R_84() {\n    if (jj_3R_118()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_159", "code": "  final private boolean jj_3R_159() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(96)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(97)) return true;\n    }\n    if (jj_3R_148()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [11, 14], [3, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 11], [15, 3], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_83", "code": "  final private boolean jj_3R_83() {\n    if (jj_3R_117()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_135", "code": "  final private boolean jj_3R_135() {\n    if (jj_3R_148()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_159()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_82", "code": "  final private boolean jj_3R_82() {\n    if (jj_3R_116()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_81", "code": "  final private boolean jj_3R_81() {\n    if (jj_3R_115()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_80", "code": "  final private boolean jj_3R_80() {\n    if (jj_3R_114()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_108", "code": "  final private boolean jj_3R_108() {\n    if (jj_3R_135()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_156()) jj_scanpos = xsp;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [4, 8], [4, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 4], [9, 4], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_79", "code": "  final private boolean jj_3R_79() {\n    if (jj_3R_113()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_78", "code": "  final private boolean jj_3R_78() {\n    if (jj_3R_112()) return true;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3_17", "code": "  final private boolean jj_3_17() {\n    if (jj_3R_38()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_77", "code": "  final private boolean jj_3R_77() {\n    if (jj_3R_38()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_45", "code": "  final private boolean jj_3R_45() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_22()) {\n    jj_scanpos = xsp;\n    if (jj_3R_77()) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(78)) {\n    jj_scanpos = xsp;\n    if (jj_3R_78()) {\n    jj_scanpos = xsp;\n    if (jj_3R_79()) {\n    jj_scanpos = xsp;\n    if (jj_3R_80()) {\n    jj_scanpos = xsp;\n    if (jj_3R_81()) {\n    jj_scanpos = xsp;\n    if (jj_3R_82()) {\n    jj_scanpos = xsp;\n    lookingAhead = true;\n    jj_semLA = isRegularForStatement();\n    lookingAhead = false;\n    if (!jj_semLA || jj_3R_83()) {\n    jj_scanpos = xsp;\n    if (jj_3R_84()) {\n    jj_scanpos = xsp;\n    if (jj_3R_85()) {\n    jj_scanpos = xsp;\n    if (jj_3R_86()) {\n    jj_scanpos = xsp;\n    if (jj_3R_87()) {\n    jj_scanpos = xsp;\n    if (jj_3R_88()) {\n    jj_scanpos = xsp;\n    if (jj_3R_89()) {\n    jj_scanpos = xsp;\n    if (jj_3R_90()) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [2, 9], [7, 10], [10, 11], [7, 12], [10, 13], [11, 14], [13, 15], [10, 16], [13, 17], [17, 18], [13, 19], [17, 20], [20, 21], [17, 22], [20, 23], [23, 24], [20, 25], [23, 26], [26, 27], [23, 28], [26, 29], [29, 30], [26, 31], [26, 32], [26, 33], [26, 34], [29, 35], [30, 36], [31, 37], [32, 38], [33, 39], [35, 40], [29, 41], [35, 42], [42, 43], [35, 44], [42, 45], [45, 46], [42, 47], [45, 48], [48, 49], [45, 50], [48, 51], [51, 52], [48, 53], [51, 54], [54, 55], [51, 56], [54, 57], [57, 58], [57, 59], [54, 60], [58, 61], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 2], [10, 7], [11, 10], [12, 7], [13, 10], [14, 11], [15, 13], [16, 10], [17, 13], [18, 17], [19, 13], [20, 17], [21, 20], [22, 17], [23, 20], [24, 23], [25, 20], [26, 23], [27, 26], [28, 23], [29, 26], [30, 29], [31, 26], [32, 26], [33, 26], [34, 26], [35, 29], [36, 30], [37, 31], [38, 32], [39, 33], [40, 35], [41, 29], [42, 35], [43, 42], [44, 35], [45, 42], [46, 45], [47, 42], [48, 45], [49, 48], [50, 45], [51, 48], [52, 51], [53, 48], [54, 51], [55, 54], [56, 51], [57, 54], [58, 57], [59, 57], [60, 54], [61, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "jj_3_22", "code": "  final private boolean jj_3_22() {\n    if (jj_3R_40()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_34", "code": "  final private boolean jj_3R_34() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(81)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(120)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(121)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(127)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(118)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(119)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(122)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(126)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(124)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(128)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(129)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(130)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(131)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(132)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(133)) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [5, 8], [7, 9], [2, 10], [7, 11], [9, 12], [11, 13], [7, 14], [11, 15], [13, 16], [15, 17], [11, 18], [15, 19], [17, 20], [19, 21], [15, 22], [19, 23], [21, 24], [23, 25], [19, 26], [23, 27], [25, 28], [27, 29], [23, 30], [27, 31], [29, 32], [31, 33], [27, 34], [31, 35], [33, 36], [35, 37], [31, 38], [35, 39], [37, 40], [39, 41], [35, 42], [39, 43], [41, 44], [43, 45], [39, 46], [43, 47], [45, 48], [47, 49], [43, 50], [47, 51], [49, 52], [51, 53], [47, 54], [51, 55], [53, 56], [55, 57], [51, 58], [55, 59], [57, 60], [59, 61], [59, 62], [55, 63], [61, 64], [62, 65], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 5], [9, 7], [10, 2], [11, 7], [12, 9], [13, 11], [14, 7], [15, 11], [16, 13], [17, 15], [18, 11], [19, 15], [20, 17], [21, 19], [22, 15], [23, 19], [24, 21], [25, 23], [26, 19], [27, 23], [28, 25], [29, 27], [30, 23], [31, 27], [32, 29], [33, 31], [34, 27], [35, 31], [36, 33], [37, 35], [38, 31], [39, 35], [40, 37], [41, 39], [42, 35], [43, 39], [44, 41], [45, 43], [46, 39], [47, 43], [48, 45], [49, 47], [50, 43], [51, 47], [52, 49], [53, 51], [54, 47], [55, 51], [56, 53], [57, 55], [58, 51], [59, 55], [60, 57], [61, 59], [62, 59], [63, 55], [64, 61], [65, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "jj_3R_111", "code": "  final private boolean jj_3R_111() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_29()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_160", "code": "  final private boolean jj_3R_160() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_152", "code": "  final private boolean jj_3R_152() {\n    if (jj_3R_69()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_17()) jj_scanpos = xsp;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [4, 8], [4, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 4], [9, 4], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_157", "code": "  final private boolean jj_3R_157() {\n    Token xsp;\n    if (jj_3R_160()) return true;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_160()) { jj_scanpos = xsp; break; }\n    }\n    if (jj_3R_97()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [4, 10], [4, 11], [7, 12], [3, 13], [10, 14], [13, 15], [3, 16], [13, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 4], [11, 4], [12, 7], [13, 3], [14, 10], [15, 13], [16, 3], [17, 13], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jj_3_8", "code": "  final private boolean jj_3_8() {\n    if (jj_3R_33()) return true;\n    if (jj_3R_34()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3_20", "code": "  final private boolean jj_3_20() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_151", "code": "  final private boolean jj_3R_151() {\n    if (jj_3R_150()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3_19", "code": "  final private boolean jj_3_19() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_107", "code": "  final private boolean jj_3R_107() {\n    if (jj_3R_33()) return true;\n    if (jj_3R_34()) return true;\n    if (jj_3R_39()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3_21", "code": "  final private boolean jj_3_21() {\n    Token xsp;\n    if (jj_3_19()) return true;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_19()) { jj_scanpos = xsp; break; }\n    }\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_20()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "BREAK_CONTINUE", "BREAK_CONTINUE", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [4, 10], [2, 11], [3, 12], [9, 13], [11, 14], [2, 15], [12, 16], [3, 17], [11, 18], [12, 19], [11, 20], [12, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 4], [11, 2], [12, 3], [13, 9], [14, 11], [15, 2], [16, 12], [17, 3], [18, 11], [19, 12], [20, 11], [21, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "jj_3R_150", "code": "  final private boolean jj_3R_150() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_21()) {\n    jj_scanpos = xsp;\n    if (jj_3R_157()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_71", "code": "  final private boolean jj_3R_71() {\n    if (jj_3R_108()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_39", "code": "  final private boolean jj_3R_39() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_70()) {\n    jj_scanpos = xsp;\n    if (jj_3R_71()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_70", "code": "  final private boolean jj_3R_70() {\n    if (jj_3R_107()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_145", "code": "  final private boolean jj_3R_145() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_3R_29()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_151()) {\n    jj_scanpos = xsp;\n    if (jj_3R_152()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [4, 9], [4, 10], [5, 11], [5, 12], [2, 13], [9, 14], [11, 15], [13, 16], [13, 17], [2, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 4], [10, 4], [11, 5], [12, 5], [13, 2], [14, 9], [15, 11], [16, 13], [17, 13], [18, 2], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "jj_3_18", "code": "  final private boolean jj_3_18() {\n    if (jj_scan_token(NEW)) return true;\n    if (jj_3R_36()) return true;\n    if (jj_3R_150()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_130", "code": "  final private boolean jj_3R_130() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_18()) {\n    jj_scanpos = xsp;\n    if (jj_3R_145()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_147", "code": "  final private boolean jj_3R_147() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_39()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_76", "code": "  final private boolean jj_3R_76() {\n    if (jj_3R_29()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_111()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_134", "code": "  final private boolean jj_3R_134() {\n    if (jj_3R_39()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_147()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_106", "code": "  final private boolean jj_3R_106() {\n    if (jj_3R_134()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3_7", "code": "  final private boolean jj_3_7() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_69", "code": "  final private boolean jj_3R_69() {\n    if (jj_scan_token(LPAREN)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_106()) jj_scanpos = xsp;\n    if (jj_scan_token(RPAREN)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [0, 10], [5, 11], [5, 12], [7, 13], [3, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 0], [11, 5], [12, 5], [13, 7], [14, 3], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "jj_3R_29", "code": "  final private boolean jj_3R_29() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_7()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_68", "code": "  final private boolean jj_3R_68() {\n    if (jj_scan_token(DOUBLE)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_67", "code": "  final private boolean jj_3R_67() {\n    if (jj_scan_token(FLOAT)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_155", "code": "  final private boolean jj_3R_155() {\n    if (jj_scan_token(FALSE)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_66", "code": "  final private boolean jj_3R_66() {\n    if (jj_scan_token(LONG)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_65", "code": "  final private boolean jj_3R_65() {\n    if (jj_scan_token(INT)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_154", "code": "  final private boolean jj_3R_154() {\n    if (jj_scan_token(TRUE)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_149", "code": "  final private boolean jj_3R_149() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_154()) {\n    jj_scanpos = xsp;\n    if (jj_3R_155()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_64", "code": "  final private boolean jj_3R_64() {\n    if (jj_scan_token(SHORT)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_56", "code": "  final private boolean jj_3R_56() {\n    if (jj_3R_29()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_63", "code": "  final private boolean jj_3R_63() {\n    if (jj_scan_token(BYTE)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_62", "code": "  final private boolean jj_3R_62() {\n    if (jj_scan_token(CHAR)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_61", "code": "  final private boolean jj_3R_61() {\n    if (jj_scan_token(BOOLEAN)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_36", "code": "  final private boolean jj_3R_36() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_61()) {\n    jj_scanpos = xsp;\n    if (jj_3R_62()) {\n    jj_scanpos = xsp;\n    if (jj_3R_63()) {\n    jj_scanpos = xsp;\n    if (jj_3R_64()) {\n    jj_scanpos = xsp;\n    if (jj_3R_65()) {\n    jj_scanpos = xsp;\n    if (jj_3R_66()) {\n    jj_scanpos = xsp;\n    if (jj_3R_67()) {\n    jj_scanpos = xsp;\n    if (jj_3R_68()) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [2, 9], [7, 10], [10, 11], [7, 12], [10, 13], [13, 14], [10, 15], [13, 16], [16, 17], [13, 18], [16, 19], [19, 20], [16, 21], [19, 22], [22, 23], [19, 24], [22, 25], [25, 26], [25, 27], [22, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 2], [10, 7], [11, 10], [12, 7], [13, 10], [14, 13], [15, 10], [16, 13], [17, 16], [18, 13], [19, 16], [20, 19], [21, 16], [22, 19], [23, 22], [24, 19], [25, 22], [26, 25], [27, 25], [28, 22], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "jj_3R_144", "code": "  final private boolean jj_3R_144() {\n    if (jj_scan_token(57)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jj_3R_74", "code": "  final private boolean jj_3R_74() {\n    if (jj_3R_32()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_42", "code": "  final private boolean jj_3R_42() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_73()) {\n    jj_scanpos = xsp;\n    if (jj_3R_74()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_73", "code": "  final private boolean jj_3R_73() {\n    if (jj_scan_token(VOID)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_143", "code": "  final private boolean jj_3R_143() {\n    if (jj_scan_token(41)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jj_3_6", "code": "  final private boolean jj_3_6() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_142", "code": "  final private boolean jj_3R_142() {\n    if (jj_3R_149()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_55", "code": "  final private boolean jj_3R_55() {\n    if (jj_3R_36()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_110", "code": "  final private boolean jj_3R_110() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_109()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_141", "code": "  final private boolean jj_3R_141() {\n    if (jj_scan_token(STRING_LITERAL)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_32", "code": "  final private boolean jj_3R_32() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_55()) {\n    jj_scanpos = xsp;\n    if (jj_3R_56()) return true;\n    }\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_6()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "IF", "CALL", "ASSIGN", "RETURN", "CALL", "ASSIGN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [0, 8], [2, 9], [3, 10], [9, 11], [2, 12], [10, 13], [10, 14], [3, 15], [9, 16], [13, 17], [9, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 0], [9, 2], [10, 3], [11, 9], [12, 2], [13, 10], [14, 10], [15, 3], [16, 9], [17, 13], [18, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jj_3R_140", "code": "  final private boolean jj_3R_140() {\n    if (jj_scan_token(CHARACTER_LITERAL)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_190", "code": "  final private boolean jj_3R_190() {\n    if (jj_scan_token(FINALLY)) return true;\n    if (jj_3R_38()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3_4", "code": "  final private boolean jj_3_4() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_31()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_189", "code": "  final private boolean jj_3R_189() {\n    if (jj_scan_token(CATCH)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_109()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_38()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [3, 10], [3, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [8, 18], [10, 19], [12, 20], [14, 21], [16, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 3], [11, 3], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 8], [19, 10], [20, 12], [21, 14], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "jj_3R_136", "code": "  final private boolean jj_3R_136() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3_5", "code": "  final private boolean jj_3_5() {\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_75", "code": "  final private boolean jj_3R_75() {\n    if (jj_3R_109()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_110()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_109", "code": "  final private boolean jj_3R_109() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_5()) {\n    jj_scanpos = xsp;\n    if (jj_3R_136()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_124", "code": "  final private boolean jj_3R_124() {\n    if (jj_scan_token(TRY)) return true;\n    if (jj_3R_38()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_189()) { jj_scanpos = xsp; break; }\n    }\n    xsp = jj_scanpos;\n    if (jj_3R_190()) jj_scanpos = xsp;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [3, 10], [5, 11], [5, 12], [6, 13], [6, 14], [2, 15], [3, 16], [11, 17], [13, 18], [16, 19], [3, 20], [16, 21], [16, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 3], [11, 5], [12, 5], [13, 6], [14, 6], [15, 2], [16, 3], [17, 11], [18, 13], [19, 16], [20, 3], [21, 16], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "jj_3R_43", "code": "  final private boolean jj_3R_43() {\n    if (jj_scan_token(LPAREN)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_75()) jj_scanpos = xsp;\n    if (jj_scan_token(RPAREN)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [0, 10], [5, 11], [5, 12], [7, 13], [3, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 0], [11, 5], [12, 5], [13, 7], [14, 3], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "jj_3R_163", "code": "  final private boolean jj_3R_163() {\n    if (jj_3R_31()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_4()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_139", "code": "  final private boolean jj_3R_139() {\n    if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_97", "code": "  final private boolean jj_3R_97() {\n    if (jj_scan_token(LBRACE)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_163()) jj_scanpos = xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(79)) jj_scanpos = xsp;\n    if (jj_scan_token(RBRACE)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [3, 10], [0, 11], [4, 12], [0, 13], [6, 14], [6, 15], [8, 16], [3, 17], [10, 18], [4, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 3], [11, 0], [12, 4], [13, 0], [14, 6], [15, 6], [16, 8], [17, 3], [18, 10], [19, 4], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "jj_3R_30", "code": "  final private boolean jj_3R_30() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_scan_token(STAR)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_123", "code": "  final private boolean jj_3R_123() {\n    if (jj_scan_token(THROW)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_180", "code": "  final private boolean jj_3R_180() {\n    if (jj_scan_token(ASSIGN)) return true;\n    if (jj_3R_31()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_54", "code": "  final private boolean jj_3R_54() {\n    if (jj_3R_39()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_188", "code": "  final private boolean jj_3R_188() {\n    if (jj_3R_39()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_53", "code": "  final private boolean jj_3R_53() {\n    if (jj_3R_97()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_31", "code": "  final private boolean jj_3R_31() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_53()) {\n    jj_scanpos = xsp;\n    if (jj_3R_54()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_122", "code": "  final private boolean jj_3R_122() {\n    if (jj_scan_token(SYNCHRONIZED)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_38()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [3, 10], [3, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [8, 18], [10, 19], [12, 20], [14, 21], [16, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 3], [11, 3], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 8], [19, 10], [20, 12], [21, 14], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "jj_3R_177", "code": "  final private boolean jj_3R_177() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_176()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_210", "code": "  final private boolean jj_3R_210() {\n    if (jj_scan_token(COMMA)) return true;\n    if (jj_3R_112()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_121", "code": "  final private boolean jj_3R_121() {\n    if (jj_scan_token(RETURN)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_188()) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [0, 10], [5, 11], [5, 12], [7, 13], [3, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 0], [11, 5], [12, 5], [13, 7], [14, 3], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "jj_3R_129", "code": "  final private boolean jj_3R_129() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_138()) {\n    jj_scanpos = xsp;\n    if (jj_3R_139()) {\n    jj_scanpos = xsp;\n    if (jj_3R_140()) {\n    jj_scanpos = xsp;\n    if (jj_3R_141()) {\n    jj_scanpos = xsp;\n    if (jj_3R_142()) {\n    jj_scanpos = xsp;\n    if (jj_3R_143()) {\n    jj_scanpos = xsp;\n    if (jj_3R_144()) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [2, 9], [7, 10], [10, 11], [7, 12], [10, 13], [13, 14], [10, 15], [13, 16], [16, 17], [13, 18], [16, 19], [19, 20], [16, 21], [19, 22], [22, 23], [22, 24], [19, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 2], [10, 7], [11, 10], [12, 7], [13, 10], [14, 13], [15, 10], [16, 13], [17, 16], [18, 13], [19, 16], [20, 19], [21, 16], [22, 19], [23, 22], [24, 22], [25, 19], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "jj_3R_138", "code": "  final private boolean jj_3R_138() {\n    if (jj_scan_token(INTEGER_LITERAL)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_146", "code": "  final private boolean jj_3R_146() {\n    if (jj_3R_69()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_176", "code": "  final private boolean jj_3R_176() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_180()) jj_scanpos = xsp;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [4, 8], [4, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 4], [9, 4], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_105", "code": "  final private boolean jj_3R_105() {\n    if (jj_3R_129()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_120", "code": "  final private boolean jj_3R_120() {\n    if (jj_scan_token(CONTINUE)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(69)) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [0, 10], [5, 11], [5, 12], [7, 13], [3, 14], [9, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 0], [11, 5], [12, 5], [13, 7], [14, 3], [15, 9], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jj_3R_119", "code": "  final private boolean jj_3R_119() {\n    if (jj_scan_token(BREAK)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(69)) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [0, 10], [5, 11], [5, 12], [7, 13], [3, 14], [9, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 0], [11, 5], [12, 5], [13, 7], [14, 3], [15, 9], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jj_3R_195", "code": "  final private boolean jj_3R_195() {\n    if (jj_3R_205()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_128", "code": "  final private boolean jj_3R_128() {\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_scan_token(STAR)) return true;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_133", "code": "  final private boolean jj_3R_133() {\n    if (jj_scan_token(LBRACE)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RBRACE)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_205", "code": "  final private boolean jj_3R_205() {\n    if (jj_3R_112()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_210()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_132", "code": "  final private boolean jj_3R_132() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_146()) jj_scanpos = xsp;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [4, 9], [4, 10], [5, 11], [5, 12], [2, 13], [9, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 4], [10, 4], [11, 5], [12, 5], [13, 2], [14, 9], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "jj_3_3", "code": "  final private boolean jj_3_3() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(48)) jj_scanpos = xsp;\n    if (jj_scan_token(IMPORT)) return true;\n    if (jj_3R_29()) return true;\n    xsp = jj_scanpos;\n    if (jj_3R_30()) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [0, 12], [4, 13], [4, 14], [5, 15], [5, 16], [6, 17], [0, 18], [9, 19], [3, 20], [13, 21], [15, 22], [6, 23], [17, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 0], [13, 4], [14, 4], [15, 5], [16, 5], [17, 6], [18, 0], [19, 9], [20, 3], [21, 13], [22, 15], [23, 6], [24, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_3R_94", "code": "  final private boolean jj_3R_94() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_3()) {\n    jj_scanpos = xsp;\n    if (jj_3R_128()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_93", "code": "  final private boolean jj_3R_93() {\n    if (jj_3R_41()) return true;\n    if (jj_3R_32()) return true;\n    if (jj_3R_176()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_177()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [4, 10], [5, 11], [5, 12], [6, 13], [6, 14], [2, 15], [9, 16], [11, 17], [13, 18], [15, 19], [2, 20], [15, 21], [15, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 4], [11, 5], [12, 5], [13, 6], [14, 6], [15, 2], [16, 9], [17, 11], [18, 13], [19, 15], [20, 2], [21, 15], [22, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "jj_3R_131", "code": "  final private boolean jj_3R_131() {\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_95", "code": "  final private boolean jj_3R_95() {\n    if (jj_scan_token(PACKAGE)) return true;\n    if (jj_3R_29()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3_2", "code": "  final private boolean jj_3_2() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_175", "code": "  final private boolean jj_3R_175() {\n    if (jj_3R_38()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3_16", "code": "  final private boolean jj_3_16() {\n    if (jj_scan_token(DOT)) return true;\n    if (jj_scan_token(CLASS)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_104", "code": "  final private boolean jj_3R_104() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_16()) {\n    jj_scanpos = xsp;\n    if (jj_3R_131()) {\n    jj_scanpos = xsp;\n    if (jj_3R_132()) {\n    jj_scanpos = xsp;\n    if (jj_3R_133()) return true;\n    }\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [2, 9], [7, 10], [10, 11], [7, 12], [10, 13], [13, 14], [13, 15], [10, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 2], [10, 7], [11, 10], [12, 7], [13, 10], [14, 13], [15, 13], [16, 10], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_174", "code": "  final private boolean jj_3R_174() {\n    if (jj_scan_token(THROWS)) return true;\n    if (jj_3R_76()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3_15", "code": "  final private boolean jj_3_15() {\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(DOT)) return true;\n    if (jj_scan_token(CLASS)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3_31", "code": "  final private boolean jj_3_31() {\n    if (jj_3R_41()) return true;\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3_14", "code": "  final private boolean jj_3_14() {\n    if (jj_3R_37()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_126", "code": "  final private boolean jj_3R_126() {\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_127", "code": "  final private boolean jj_3R_127() {\n    if (jj_3R_42()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_92", "code": "  final private boolean jj_3R_92() {\n    if (jj_3R_41()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_126()) {\n    jj_scanpos = xsp;\n    if (jj_3R_127()) return true;\n    }\n    if (jj_3R_43()) return true;\n    xsp = jj_scanpos;\n    if (jj_3R_174()) jj_scanpos = xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_175()) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(78)) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "IF", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [0, 10], [3, 11], [0, 12], [4, 13], [4, 14], [5, 15], [0, 16], [7, 17], [7, 18], [2, 19], [3, 20], [13, 21], [5, 22], [17, 23], [19, 24], [19, 25], [2, 26], [22, 27], [22, 28], [5, 29], [24, 30], [25, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 0], [11, 3], [12, 0], [13, 4], [14, 4], [15, 5], [16, 0], [17, 7], [18, 7], [19, 2], [20, 3], [21, 13], [22, 5], [23, 17], [24, 19], [25, 19], [26, 2], [27, 22], [28, 22], [29, 5], [30, 24], [31, 25], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "jj_3R_204", "code": "  final private boolean jj_3R_204() {\n    if (jj_3R_205()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_103", "code": "  final private boolean jj_3R_103() {\n    if (jj_3R_29()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_203", "code": "  final private boolean jj_3R_203() {\n    if (jj_3R_93()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_194", "code": "  final private boolean jj_3R_194() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_203()) {\n    jj_scanpos = xsp;\n    if (jj_3R_204()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_102", "code": "  final private boolean jj_3R_102() {\n    if (jj_3R_32()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_58", "code": "  final private boolean jj_3R_58() {\n    if (jj_3R_104()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_125", "code": "  final private boolean jj_3R_125() {\n    if (jj_scan_token(INTERFACE)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_101", "code": "  final private boolean jj_3R_101() {\n    if (jj_3R_37()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_100", "code": "  final private boolean jj_3R_100() {\n    if (jj_3R_130()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_99", "code": "  final private boolean jj_3R_99() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_137", "code": "  final private boolean jj_3R_137() {\n    if (jj_scan_token(FOR)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_45()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [4, 16], [5, 17], [5, 18], [6, 19], [6, 20], [7, 21], [7, 22], [8, 23], [8, 24], [9, 25], [9, 26], [11, 27], [13, 28], [15, 29], [17, 30], [19, 31], [21, 32], [23, 33], [25, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 4], [17, 5], [18, 5], [19, 6], [20, 6], [21, 7], [22, 7], [23, 8], [24, 8], [25, 9], [26, 9], [27, 11], [28, 13], [29, 15], [30, 17], [31, 19], [32, 21], [33, 23], [34, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "jj_3R_184", "code": "  final private boolean jj_3R_184() {\n    if (jj_scan_token(ELSE)) return true;\n    if (jj_3R_45()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_173", "code": "  final private boolean jj_3R_173() {\n    if (jj_scan_token(IMPLEMENTS)) return true;\n    if (jj_3R_76()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_57", "code": "  final private boolean jj_3R_57() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_98()) {\n    jj_scanpos = xsp;\n    if (jj_3R_99()) {\n    jj_scanpos = xsp;\n    if (jj_3R_100()) {\n    jj_scanpos = xsp;\n    if (jj_3R_101()) {\n    jj_scanpos = xsp;\n    if (jj_3R_102()) {\n    jj_scanpos = xsp;\n    if (jj_3R_103()) return true;\n    }\n    }\n    }\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [2, 9], [7, 10], [10, 11], [7, 12], [10, 13], [13, 14], [10, 15], [13, 16], [16, 17], [13, 18], [16, 19], [19, 20], [19, 21], [16, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 2], [10, 7], [11, 10], [12, 7], [13, 10], [14, 13], [15, 10], [16, 13], [17, 16], [18, 13], [19, 16], [20, 19], [21, 19], [22, 16], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "jj_3R_98", "code": "  final private boolean jj_3R_98() {\n    if (jj_3R_129()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_172", "code": "  final private boolean jj_3R_172() {\n    if (jj_scan_token(EXTENDS)) return true;\n    if (jj_3R_29()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3_30", "code": "  final private boolean jj_3_30() {\n    if (jj_scan_token(FOR)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_scan_token(COLON)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_45()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [3, 12], [3, 13], [4, 14], [4, 15], [5, 16], [5, 17], [6, 18], [6, 19], [7, 20], [7, 21], [8, 22], [8, 23], [10, 24], [12, 25], [14, 26], [16, 27], [18, 28], [20, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 3], [13, 3], [14, 4], [15, 4], [16, 5], [17, 5], [18, 6], [19, 6], [20, 7], [21, 7], [22, 8], [23, 8], [24, 10], [25, 12], [26, 14], [27, 16], [28, 18], [29, 20], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "jj_3R_118", "code": "  final private boolean jj_3R_118() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_30()) {\n    jj_scanpos = xsp;\n    if (jj_3R_137()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_37", "code": "  final private boolean jj_3R_37() {\n    if (jj_3R_29()) return true;\n    if (jj_3R_69()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_185", "code": "  final private boolean jj_3R_185() {\n    if (jj_3R_194()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_91", "code": "  final private boolean jj_3R_91() {\n    if (jj_3R_41()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(13)) {\n    jj_scanpos = xsp;\n    if (jj_3R_125()) return true;\n    }\n    if (jj_scan_token(IDENTIFIER)) return true;\n    xsp = jj_scanpos;\n    if (jj_3R_172()) jj_scanpos = xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_173()) jj_scanpos = xsp;\n    if (jj_3R_38()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [3, 12], [0, 13], [4, 14], [0, 15], [5, 16], [5, 17], [6, 18], [0, 19], [8, 20], [8, 21], [10, 22], [3, 23], [4, 24], [16, 25], [6, 26], [18, 27], [20, 28], [26, 29], [26, 30], [6, 31], [29, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 3], [13, 0], [14, 4], [15, 0], [16, 5], [17, 5], [18, 6], [19, 0], [20, 8], [21, 8], [22, 10], [23, 3], [24, 4], [25, 16], [26, 6], [27, 18], [28, 20], [29, 26], [30, 26], [31, 6], [32, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "jj_3_13", "code": "  final private boolean jj_3_13() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_36()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_187", "code": "  final private boolean jj_3R_187() {\n    if (jj_3R_195()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_186", "code": "  final private boolean jj_3R_186() {\n    if (jj_3R_39()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_33", "code": "  final private boolean jj_3R_33() {\n    if (jj_3R_57()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_58()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_217", "code": "  final private boolean jj_3R_217() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_208()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [9, 16], [11, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 9], [17, 11], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jj_3R_216", "code": "  final private boolean jj_3R_216() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_191()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [9, 16], [11, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 9], [17, 11], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jj_3R_117", "code": "  final private boolean jj_3R_117() {\n    if (jj_scan_token(FOR)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_185()) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    xsp = jj_scanpos;\n    if (jj_3R_186()) jj_scanpos = xsp;\n    if (jj_scan_token(SEMICOLON)) return true;\n    xsp = jj_scanpos;\n    if (jj_3R_187()) jj_scanpos = xsp;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_45()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [3, 15], [3, 16], [4, 17], [0, 18], [5, 19], [5, 20], [6, 21], [0, 22], [7, 23], [7, 24], [8, 25], [0, 26], [10, 27], [10, 28], [11, 29], [11, 30], [13, 31], [15, 32], [4, 33], [19, 34], [6, 35], [23, 36], [8, 37], [27, 38], [29, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 3], [16, 3], [17, 4], [18, 0], [19, 5], [20, 5], [21, 6], [22, 0], [23, 7], [24, 7], [25, 8], [26, 0], [27, 10], [28, 10], [29, 11], [30, 11], [31, 13], [32, 15], [33, 4], [34, 19], [35, 6], [36, 23], [37, 8], [38, 27], [39, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "jj_3R_214", "code": "  final private boolean jj_3R_214() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_216()) {\n    jj_scanpos = xsp;\n    if (jj_3R_217()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3_12", "code": "  final private boolean jj_3_12() {\n    if (jj_3R_33()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(100)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(101)) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [4, 8], [4, 9], [2, 10], [6, 11], [8, 12], [10, 13], [10, 14], [2, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 4], [9, 4], [10, 2], [11, 6], [12, 8], [13, 10], [14, 10], [15, 2], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_219", "code": "  final private boolean jj_3R_219() {\n    if (jj_3R_33()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_116", "code": "  final private boolean jj_3R_116() {\n    if (jj_scan_token(DO)) return true;\n    if (jj_3R_45()) return true;\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [3, 12], [3, 13], [4, 14], [4, 15], [5, 16], [5, 17], [6, 18], [6, 19], [7, 20], [7, 21], [8, 22], [8, 23], [10, 24], [12, 25], [14, 26], [16, 27], [18, 28], [20, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 3], [13, 3], [14, 4], [15, 4], [16, 5], [17, 5], [18, 6], [19, 6], [20, 7], [21, 7], [22, 8], [23, 8], [24, 10], [25, 12], [26, 14], [27, 16], [28, 18], [29, 20], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "jj_3_11", "code": "  final private boolean jj_3_11() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_29()) return true;\n    if (jj_scan_token(LBRACKET)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_218", "code": "  final private boolean jj_3R_218() {\n    if (jj_3R_33()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(100)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(101)) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [4, 8], [4, 9], [2, 10], [6, 11], [8, 12], [10, 13], [10, 14], [2, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 4], [9, 4], [10, 2], [11, 6], [12, 8], [13, 10], [14, 10], [15, 2], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_215", "code": "  final private boolean jj_3R_215() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_218()) {\n    jj_scanpos = xsp;\n    if (jj_3R_219()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_72", "code": "  final private boolean jj_3R_72() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(43)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(44)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(45)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(51)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(27)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(39)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(52)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(58)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(10)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(48)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(49)) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [5, 8], [7, 9], [2, 10], [7, 11], [9, 12], [11, 13], [7, 14], [11, 15], [13, 16], [15, 17], [11, 18], [15, 19], [17, 20], [19, 21], [15, 22], [19, 23], [21, 24], [23, 25], [19, 26], [23, 27], [25, 28], [27, 29], [23, 30], [27, 31], [29, 32], [31, 33], [27, 34], [31, 35], [33, 36], [35, 37], [31, 38], [35, 39], [37, 40], [39, 41], [35, 42], [39, 43], [41, 44], [43, 45], [43, 46], [39, 47], [45, 48], [46, 49], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 5], [9, 7], [10, 2], [11, 7], [12, 9], [13, 11], [14, 7], [15, 11], [16, 13], [17, 15], [18, 11], [19, 15], [20, 17], [21, 19], [22, 15], [23, 19], [24, 21], [25, 23], [26, 19], [27, 23], [28, 25], [29, 27], [30, 23], [31, 27], [32, 29], [33, 31], [34, 27], [35, 31], [36, 33], [37, 35], [38, 31], [39, 35], [40, 37], [41, 39], [42, 35], [43, 39], [44, 41], [45, 43], [46, 43], [47, 39], [48, 45], [49, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "jj_3R_115", "code": "  final private boolean jj_3R_115() {\n    if (jj_scan_token(WHILE)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_45()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [3, 10], [3, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [8, 18], [10, 19], [12, 20], [14, 21], [16, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 3], [11, 3], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 8], [19, 10], [20, 12], [21, 14], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "jj_3R_60", "code": "  final private boolean jj_3R_60() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_29()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(87)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(86)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(72)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(69)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(40)) {\n    jj_scanpos = xsp;\n    if (jj_3R_105()) return true;\n    }\n    }\n    }\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [6, 14], [6, 15], [2, 16], [8, 17], [10, 18], [12, 19], [14, 20], [16, 21], [2, 22], [16, 23], [21, 24], [23, 25], [16, 26], [23, 27], [25, 28], [27, 29], [23, 30], [27, 31], [29, 32], [31, 33], [27, 34], [31, 35], [33, 36], [35, 37], [35, 38], [31, 39], [37, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 6], [15, 6], [16, 2], [17, 8], [18, 10], [19, 12], [20, 14], [21, 16], [22, 2], [23, 16], [24, 21], [25, 23], [26, 16], [27, 23], [28, 25], [29, 27], [30, 23], [31, 27], [32, 29], [33, 31], [34, 27], [35, 31], [36, 33], [37, 35], [38, 35], [39, 31], [40, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "jj_3R_59", "code": "  final private boolean jj_3R_59() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_29()) return true;\n    if (jj_scan_token(LBRACKET)) return true;\n    if (jj_scan_token(RBRACKET)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [9, 16], [11, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 9], [17, 11], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jj_3_9", "code": "  final private boolean jj_3_9() {\n    if (jj_3R_35()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3_29", "code": "  final private boolean jj_3_29() {\n    if (jj_3R_28()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_114", "code": "  final private boolean jj_3R_114() {\n    if (jj_scan_token(IF)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_3R_45()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_184()) jj_scanpos = xsp;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [4, 12], [4, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [7, 19], [8, 20], [8, 21], [2, 22], [12, 23], [14, 24], [16, 25], [18, 26], [20, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 4], [13, 4], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 7], [20, 8], [21, 8], [22, 2], [23, 12], [24, 14], [25, 16], [26, 18], [27, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "jj_3R_41", "code": "  final private boolean jj_3R_41() {\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_72()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [2, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 2], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_35", "code": "  final private boolean jj_3R_35() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3_10()) {\n    jj_scanpos = xsp;\n    if (jj_3R_59()) {\n    jj_scanpos = xsp;\n    if (jj_3R_60()) return true;\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [2, 9], [7, 10], [10, 11], [10, 12], [7, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 2], [10, 7], [11, 10], [12, 10], [13, 7], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3_10", "code": "  final private boolean jj_3_10() {\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_36()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_213", "code": "  final private boolean jj_3R_213() {\n    if (jj_3R_215()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_212", "code": "  final private boolean jj_3R_212() {\n    if (jj_3R_214()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_202", "code": "  final private boolean jj_3R_202() {\n    if (jj_scan_token(_DEFAULT)) return true;\n    if (jj_scan_token(COLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_211", "code": "  final private boolean jj_3R_211() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(87)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(86)) return true;\n    }\n    if (jj_3R_191()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [11, 14], [3, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 11], [15, 3], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_208", "code": "  final private boolean jj_3R_208() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_211()) {\n    jj_scanpos = xsp;\n    if (jj_3R_212()) {\n    jj_scanpos = xsp;\n    if (jj_3R_213()) return true;\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [2, 9], [7, 10], [10, 11], [10, 12], [7, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 2], [10, 7], [11, 10], [12, 10], [13, 7], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_201", "code": "  final private boolean jj_3R_201() {\n    if (jj_scan_token(CASE)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(COLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_193", "code": "  final private boolean jj_3R_193() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_201()) {\n    jj_scanpos = xsp;\n    if (jj_3R_202()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_183", "code": "  final private boolean jj_3R_183() {\n    if (jj_3R_193()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3_29()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_207", "code": "  final private boolean jj_3R_207() {\n    if (jj_scan_token(DECR)) return true;\n    if (jj_3R_33()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3_1", "code": "  final private boolean jj_3_1() {\n    if (jj_3R_28()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_113", "code": "  final private boolean jj_3R_113() {\n    if (jj_scan_token(SWITCH)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    if (jj_3R_39()) return true;\n    if (jj_scan_token(RPAREN)) return true;\n    if (jj_scan_token(LBRACE)) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_183()) { jj_scanpos = xsp; break; }\n    }\n    if (jj_scan_token(RBRACE)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [3, 13], [5, 14], [5, 15], [6, 16], [6, 17], [7, 18], [7, 19], [8, 20], [8, 21], [9, 22], [9, 23], [11, 24], [3, 25], [14, 26], [16, 27], [18, 28], [20, 29], [22, 30], [25, 31], [3, 32], [25, 33], [25, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 3], [14, 5], [15, 5], [16, 6], [17, 6], [18, 7], [19, 7], [20, 8], [21, 8], [22, 9], [23, 9], [24, 11], [25, 3], [26, 14], [27, 16], [28, 18], [29, 20], [30, 22], [31, 25], [32, 3], [33, 25], [34, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "jj_3R_209", "code": "  final private boolean jj_3R_209() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(104)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(105)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(111)) return true;\n    }\n    }\n    if (jj_3R_191()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [3, 14], [11, 15], [13, 16], [15, 17], [15, 18], [11, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 3], [15, 11], [16, 13], [17, 15], [18, 15], [19, 11], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "jj_3R_206", "code": "  final private boolean jj_3R_206() {\n    if (jj_scan_token(INCR)) return true;\n    if (jj_3R_33()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_199", "code": "  final private boolean jj_3R_199() {\n    if (jj_3R_208()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_198", "code": "  final private boolean jj_3R_198() {\n    if (jj_3R_207()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_197", "code": "  final private boolean jj_3R_197() {\n    if (jj_3R_206()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_196", "code": "  final private boolean jj_3R_196() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(102)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(103)) return true;\n    }\n    if (jj_3R_191()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [11, 14], [3, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 11], [15, 3], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_191", "code": "  final private boolean jj_3R_191() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_196()) {\n    jj_scanpos = xsp;\n    if (jj_3R_197()) {\n    jj_scanpos = xsp;\n    if (jj_3R_198()) {\n    jj_scanpos = xsp;\n    if (jj_3R_199()) return true;\n    }\n    }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [2, 9], [7, 10], [10, 11], [7, 12], [10, 13], [13, 14], [13, 15], [10, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 2], [10, 7], [11, 10], [12, 7], [13, 10], [14, 13], [15, 13], [16, 10], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_44", "code": "  final private boolean jj_3R_44() {\n    if (jj_scan_token(THROWS)) return true;\n    if (jj_3R_76()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_112", "code": "  final private boolean jj_3R_112() {\n    if (jj_3R_39()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_181", "code": "  final private boolean jj_3R_181() {\n    if (jj_3R_191()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_209()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_200", "code": "  final private boolean jj_3R_200() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(102)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(103)) return true;\n    }\n    if (jj_3R_181()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [11, 14], [3, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 11], [15, 3], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_178", "code": "  final private boolean jj_3R_178() {\n    if (jj_3R_181()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_200()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_96", "code": "  final private boolean jj_3R_96() {\n    if (jj_scan_token(FORMAL_COMMENT)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_192", "code": "  final private boolean jj_3R_192() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(112)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(113)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(114)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(115)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(116)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(117)) return true;\n    }\n    }\n    }\n    }\n    }\n    if (jj_3R_178()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [3, 14], [11, 15], [13, 16], [15, 17], [11, 18], [15, 19], [17, 20], [19, 21], [15, 22], [19, 23], [21, 24], [23, 25], [19, 26], [23, 27], [25, 28], [27, 29], [27, 30], [23, 31], [29, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 3], [15, 11], [16, 13], [17, 15], [18, 11], [19, 15], [20, 17], [21, 19], [22, 15], [23, 19], [24, 21], [25, 23], [26, 19], [27, 23], [28, 25], [29, 27], [30, 27], [31, 23], [32, 29], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "jj_3R_171", "code": "  final private boolean jj_3R_171() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(90)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(95)) return true;\n    }\n    if (jj_3R_166()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [11, 14], [3, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 11], [15, 3], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_170", "code": "  final private boolean jj_3R_170() {\n    if (jj_3R_178()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_192()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_52", "code": "  final private boolean jj_3R_52() {\n    if (jj_3R_96()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_182", "code": "  final private boolean jj_3R_182() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(84)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(85)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(82)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(83)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(91)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(92)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(93)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(94)) return true;\n    }\n    }\n    }\n    }\n    }\n    }\n    }\n    if (jj_3R_170()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [3, 14], [11, 15], [13, 16], [15, 17], [11, 18], [15, 19], [17, 20], [19, 21], [15, 22], [19, 23], [21, 24], [23, 25], [19, 26], [23, 27], [25, 28], [27, 29], [23, 30], [27, 31], [29, 32], [31, 33], [27, 34], [31, 35], [33, 36], [35, 37], [35, 38], [31, 39], [37, 40], [38, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 3], [15, 11], [16, 13], [17, 15], [18, 11], [19, 15], [20, 17], [21, 19], [22, 15], [23, 19], [24, 21], [25, 23], [26, 19], [27, 23], [28, 25], [29, 27], [30, 23], [31, 27], [32, 29], [33, 31], [34, 27], [35, 31], [36, 33], [37, 35], [38, 35], [39, 31], [40, 37], [41, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "jj_3_27", "code": "  final private boolean jj_3_27() {\n    if (jj_3R_41()) return true;\n    if (jj_3R_32()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [3, 9], [4, 10], [4, 11], [6, 12], [8, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 3], [10, 4], [11, 4], [12, 6], [13, 8], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_51", "code": "  final private boolean jj_3R_51() {\n    if (jj_3R_95()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_168", "code": "  final private boolean jj_3R_168() {\n    if (jj_3R_170()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_182()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_50", "code": "  final private boolean jj_3R_50() {\n    if (jj_3R_94()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3_26", "code": "  final private boolean jj_3_26() {\n    if (jj_3R_41()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_3R_43()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_44()) jj_scanpos = xsp;\n    if (jj_scan_token(LBRACE)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [3, 11], [0, 12], [5, 13], [5, 14], [6, 15], [6, 16], [7, 17], [7, 18], [9, 19], [3, 20], [13, 21], [15, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 3], [12, 0], [13, 5], [14, 5], [15, 6], [16, 6], [17, 7], [18, 7], [19, 9], [20, 3], [21, 13], [22, 15], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "jj_3R_179", "code": "  final private boolean jj_3R_179() {\n    if (jj_scan_token(INSTANCEOF)) return true;\n    if (jj_3R_32()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3_28", "code": "  final private boolean jj_3_28() {\n    if (jj_3R_45()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_166", "code": "  final private boolean jj_3R_166() {\n    if (jj_3R_168()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_179()) jj_scanpos = xsp;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [4, 8], [4, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 4], [9, 4], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3_25", "code": "  final private boolean jj_3_25() {\n    if (jj_3R_41()) return true;\n    if (jj_3R_42()) return true;\n    if (jj_scan_token(IDENTIFIER)) return true;\n    if (jj_scan_token(LPAREN)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [7, 15], [9, 16], [11, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 7], [16, 9], [17, 11], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jj_3R_49", "code": "  final private boolean jj_3R_49() {\n    if (jj_3R_93()) return true;\n    if (jj_scan_token(SEMICOLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3_24", "code": "  final private boolean jj_3_24() {\n    if (jj_3R_41()) return true;\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(13)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(37)) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [4, 8], [4, 9], [2, 10], [6, 11], [8, 12], [10, 13], [10, 14], [2, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 4], [9, 4], [10, 2], [11, 6], [12, 8], [13, 10], [14, 10], [15, 2], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jj_3R_167", "code": "  final private boolean jj_3R_167() {\n    if (jj_scan_token(XOR)) return true;\n    if (jj_3R_161()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_48", "code": "  final private boolean jj_3R_48() {\n    if (jj_3R_92()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_164", "code": "  final private boolean jj_3R_164() {\n    if (jj_3R_166()) return true;\n    Token xsp;\n    while (true) {\n      xsp = jj_scanpos;\n      if (jj_3R_171()) { jj_scanpos = xsp; break; }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [4, 8], [2, 9], [7, 10], [9, 11], [2, 12], [9, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 4], [9, 2], [10, 7], [11, 9], [12, 2], [13, 9], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_3R_47", "code": "  final private boolean jj_3R_47() {\n    if (jj_3R_92()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jj_3R_169", "code": "  final private boolean jj_3R_169() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_scan_token(106)) {\n    jj_scanpos = xsp;\n    if (jj_scan_token(107)) return true;\n    }\n    if (jj_3R_164()) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [0, 9], [6, 10], [3, 11], [8, 12], [11, 13], [11, 14], [3, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 0], [10, 6], [11, 3], [12, 8], [13, 11], [14, 11], [15, 3], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.InputStream stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "ReInit", "code": "  public void ReInit(java.io.Reader stream) {\n    jj_input_stream.ReInit(stream, 1, 1);\n    token_source.ReInit(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "ReInit", "code": "  public void ReInit(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jjtree.reset();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jj_consume_token", "code": "  final private Token jj_consume_token(int kind) throws ParseException {\n    Token oldToken;\n    if ((oldToken = token).next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    if (token.kind == kind) {\n      return token;\n    }\n    token = oldToken;\n    throw generateParseException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [0, 9], [3, 10], [2, 11], [9, 12], [3, 13], [3, 14], [10, 15], [10, 16], [13, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 0], [10, 3], [11, 2], [12, 9], [13, 3], [14, 3], [15, 10], [16, 10], [17, 13], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jj_scan_token", "code": "  final private boolean jj_scan_token(int kind) {\n    if (jj_scanpos == jj_lastpos) {\n      jj_la--;\n      if (jj_scanpos.next == null) {\n        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();\n      } else {\n        jj_lastpos = jj_scanpos = jj_scanpos.next;\n      }\n    } else {\n      jj_scanpos = jj_scanpos.next;\n    }\n    if (jj_scanpos.kind != kind) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [8, 12], [8, 13], [9, 14], [4, 15], [13, 16], [4, 17], [15, 18], [18, 19], [15, 20], [15, 21], [20, 22], [21, 23], [23, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 8], [13, 8], [14, 9], [15, 4], [16, 13], [17, 4], [18, 15], [19, 18], [20, 15], [21, 15], [22, 20], [23, 21], [24, 23], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getNextToken", "code": "  final public Token getNextToken() {\n    if (token.next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    return token;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [2, 7], [4, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 2], [8, 4], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getToken", "code": "  final public Token getToken(int index) {\n    Token t = lookingAhead ? jj_scanpos : token;\n    for (int i = 0; i < index; i++) {\n      if (t.next != null) t = t.next;\n      else t = t.next = token_source.getNextToken();\n    }\n    return t;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [2, 9], [6, 10], [6, 11], [8, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 2], [10, 6], [11, 6], [12, 8], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_ntk", "code": "  final private int jj_ntk() {\n    if ((jj_nt=token.next) == null)\n      return (jj_ntk = (token.next=token_source.getNextToken()).kind);\n    else\n      return (jj_ntk = jj_nt.kind);", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [4, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 4], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "generateParseException", "code": "  public ParseException generateParseException() {\n    Token errortok = token.next;\n    int line = errortok.beginLine, column = errortok.beginColumn;\n    String mess = (errortok.kind == 0) ? tokenImage[0] : errortok.image;\n    return new ParseException(\"Parse error at line \" + line + \", column \" + column + \".  Encountered: \" + mess);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [6, 8], [7, 9], [8, 10], [8, 11], [9, 12], [11, 13], [7, 14], [13, 15], [13, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 6], [9, 7], [10, 8], [11, 8], [12, 9], [13, 11], [14, 7], [15, 13], [16, 13], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "enable_tracing", "code": "  final public void enable_tracing() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "disable_tracing", "code": "  final public void disable_tracing() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Parser", "code": "  public Parser(java.io.InputStream stream) {\n    jj_input_stream = new JavaCharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "Parser", "code": "  public Parser(java.io.Reader stream) {\n    jj_input_stream = new JavaCharStream(stream, 1, 1);\n    token_source = new ParserTokenManager(jj_input_stream);\n    token = new Token();\n    jj_ntk = -1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "Parser", "code": "  public Parser(ParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-1.5-5336", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hpsf/SpecialPropertySet.java", "language": "java", "name": "org.apache.poi.hpsf.SpecialPropertySet", "code": "public abstract class SpecialPropertySet extends PropertySet\n{\n\n    private PropertySet delegate;\n\n\n\n    public SpecialPropertySet(PropertySet ps)\n    {\n        delegate = ps;\n    }\n\n\n\n    public Word getByteOrder()\n    {\n        return delegate.getByteOrder();\n    }\n\n\n\n    public Word getFormat()\n    {\n        return delegate.getFormat();\n    }\n\n\n\n    public DWord getOSVersion()\n    {\n        return delegate.getOSVersion();\n    }\n\n\n\n    public ClassID getClassID()\n    {\n        return delegate.getClassID();\n    }\n\n\n\n    public int getSectionCount()\n    {\n        return delegate.getSectionCount();\n    }\n\n\n\n    public List getSections()\n    {\n        return delegate.getSections();\n    }\n\n\n\n    public boolean isSummaryInformation()\n    {\n        return delegate.isSummaryInformation();\n    }\n\n\n\n    public boolean isDocumentSummaryInformation()\n    {\n        return delegate.isDocumentSummaryInformation();\n    }\n\n\n\n    public Section getSingleSection()\n    {\n        return delegate.getSingleSection();", "functions": [{"function_name": "getByteOrder", "code": "    public Word getByteOrder()\n    {\n        return delegate.getByteOrder();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFormat", "code": "    public Word getFormat()\n    {\n        return delegate.getFormat();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOSVersion", "code": "    public DWord getOSVersion()\n    {\n        return delegate.getOSVersion();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getClassID", "code": "    public ClassID getClassID()\n    {\n        return delegate.getClassID();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSectionCount", "code": "    public int getSectionCount()\n    {\n        return delegate.getSectionCount();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSections", "code": "    public List getSections()\n    {\n        return delegate.getSections();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSummaryInformation", "code": "    public boolean isSummaryInformation()\n    {\n        return delegate.isSummaryInformation();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDocumentSummaryInformation", "code": "    public boolean isDocumentSummaryInformation()\n    {\n        return delegate.isDocumentSummaryInformation();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSingleSection", "code": "    public Section getSingleSection()\n    {\n        return delegate.getSingleSection();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SpecialPropertySet", "code": "    public SpecialPropertySet(PropertySet ps)\n    {\n        delegate = ps;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ivy-2.0-3481", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/resolve/ResolveEngineSettings.java", "language": "java", "name": "org.apache.ivy.core.resolve.ResolveEngineSettings", "code": "public interface ResolveEngineSettings extends ResolverSettings {\n\n    void setDictatorResolver(DependencyResolver dictatorResolver);\n\n    boolean debugConflictResolution();\n\n    ReportOutputter[] getReportOutputters();\n\n    String getResolverName(ModuleRevisionId mid);\n\n    boolean logNotConvertedExclusionRule();\n\n    ConflictManager getConflictManager(ModuleId mid);\n\n    boolean logModuleWhenFound();\n\n    boolean logResolvedRevision();", "functions": [{"function_name": "setDictatorResolver", "code": "    void setDictatorResolver(DependencyResolver dictatorResolver);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "debugConflictResolution", "code": "    boolean debugConflictResolution();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getReportOutputters", "code": "    ReportOutputter[] getReportOutputters();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getResolverName", "code": "    String getResolverName(ModuleRevisionId mid);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "logNotConvertedExclusionRule", "code": "    boolean logNotConvertedExclusionRule();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getConflictManager", "code": "    ConflictManager getConflictManager(ModuleId mid);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "logModuleWhenFound", "code": "    boolean logModuleWhenFound();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "logResolvedRevision", "code": "    boolean logResolvedRevision();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.4-2186", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/mina/MinaProducer.java", "language": "java", "name": "org.apache.camel.component.mina.MinaProducer", "code": "public class MinaProducer extends DefaultProducer {\n    private static final transient Log LOG = LogFactory.getLog(MinaProducer.class);\n    private IoSession session;\n    private MinaEndpoint endpoint;\n    private CountDownLatch latch;\n    private boolean lazySessionCreation;\n    private long timeout;\n    private IoConnector connector;\n    private boolean sync;\n\n    @SuppressWarnings({\"unchecked\"})\n    public MinaProducer(MinaEndpoint endpoint) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        this.lazySessionCreation = this.endpoint.isLazySessionCreation();\n        this.timeout = this.endpoint.getTimeout();\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        if (session == null && !lazySessionCreation) {\n            throw new IllegalStateException(\"Not started yet!\");\n        }\n        if (session == null || !session.isConnected()) {\n            openConnection();\n        }\n\n        Object body = MinaPayloadHelper.getIn(endpoint, exchange);\n        if (body == null) {\n            LOG.warn(\"No payload to send for exchange: \" + exchange);\n        }\n\n        sync = ExchangeHelper.isOutCapable(exchange);\n        if (sync) {\n            latch = new CountDownLatch(1);\n        }\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Writing body: \" + body);\n        }\n        MinaHelper.writeBody(session, body, exchange);\n\n        if (sync) {\n            LOG.debug(\"Waiting for response\");\n            latch.await(timeout, TimeUnit.MILLISECONDS);\n            if (latch.getCount() == 1) {\n                throw new ExchangeTimedOutException(exchange, timeout);\n            }\n\n            ResponseHandler handler = (ResponseHandler) session.getHandler();\n            if (handler.getCause() != null) {\n                throw new CamelException(\"Response Handler had an exception\", handler.getCause());\n            } else {\n                MinaPayloadHelper.setOut(exchange, handler.getMessage());\n            }\n        }\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        if (!lazySessionCreation) {\n            openConnection();\n        }\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Stopping connector: \" + connector + \" at address: \" + endpoint.getAddress());\n        }\n\n        if (connector instanceof SocketConnector) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Setting SocketConnector WorkerTimeout=0 to force MINA stopping its resources faster\");\n            }\n            ((SocketConnector) connector).setWorkerTimeout(0);\n        }\n\n        if (session != null) {\n            session.close();\n        }\n        \n        super.doStop();\n    }\n\n    private void openConnection() {\n        SocketAddress address = endpoint.getAddress();\n        connector = endpoint.getConnector();\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Creating connector to address: \" + address + \" using connector: \" + connector + \" timeout: \" + timeout + \" millis.\");\n        }\n        IoHandler ioHandler = new ResponseHandler(endpoint);\n        ConnectFuture future = connector.connect(address, ioHandler, endpoint.getConnectorConfig());\n        future.join();\n        session = future.getSession();\n    }\n\n    /**\n     * Handles response from session writes\n     *\n     * @author <a href=\"mailto:karajdaar@gmail.com\">nsandhu</a>\n     */\n    private final class ResponseHandler extends IoHandlerAdapter {\n        private MinaEndpoint endpoint;\n        private Object message;\n        private Throwable cause;\n\n        private ResponseHandler(MinaEndpoint endpoint) {\n            this.endpoint = endpoint;\n        }\n\n        @Override\n        public void messageReceived(IoSession ioSession, Object message) throws Exception {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Message received: \" + message);\n            }\n            cause = null;\n            this.message = message;\n            countDown();\n        }\n\n        protected void countDown() {\n            CountDownLatch downLatch = latch;\n            if (downLatch != null) {\n                downLatch.countDown();\n            }\n        }\n\n        @Override\n        public void sessionClosed(IoSession session) throws Exception {\n            if (sync && message == null) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Session closed but no message received from address: \" + this.endpoint.getAddress());\n                }\n                countDown();\n            }\n        }\n\n        @Override\n        public void exceptionCaught(IoSession ioSession, Throwable cause) {\n            LOG.error(\"Exception on receiving message from address: \" + this.endpoint.getAddress()\n                    + \" using connector: \" + this.endpoint.getConnector(), cause);\n            this.message = null;\n            this.cause = cause;\n            if (ioSession != null) {\n                ioSession.close();\n            }\n        }\n\n        public Throwable getCause() {\n            return this.cause;\n        }\n\n        public Object getMessage() {\n            return this.message;", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        if (session == null && !lazySessionCreation) {\n            throw new IllegalStateException(\"Not started yet!\");\n        }\n        if (session == null || !session.isConnected()) {\n            openConnection();\n        }\n\n        Object body = MinaPayloadHelper.getIn(endpoint, exchange);\n        if (body == null) {\n            LOG.warn(\"No payload to send for exchange: \" + exchange);\n        }\n\n        sync = ExchangeHelper.isOutCapable(exchange);\n        if (sync) {\n            latch = new CountDownLatch(1);\n        }\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Writing body: \" + body);\n        }\n        MinaHelper.writeBody(session, body, exchange);\n\n        if (sync) {\n            LOG.debug(\"Waiting for response\");\n            latch.await(timeout, TimeUnit.MILLISECONDS);\n            if (latch.getCount() == 1) {\n                throw new ExchangeTimedOutException(exchange, timeout);\n            }\n\n            ResponseHandler handler = (ResponseHandler) session.getHandler();\n            if (handler.getCause() != null) {\n                throw new CamelException(\"Response Handler had an exception\", handler.getCause());\n            } else {\n                MinaPayloadHelper.setOut(exchange, handler.getMessage());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [4, 12], [6, 13], [7, 14], [1, 15], [1, 16], [1, 17], [11, 18], [12, 19], [5, 20], [13, 21], [13, 22], [7, 23], [14, 24], [15, 25], [17, 26], [1, 27], [1, 28], [2, 29], [3, 30], [4, 31], [6, 32], [22, 33], [23, 34], [24, 35], [15, 36], [25, 37], [25, 38], [17, 39], [26, 40], [26, 41], [28, 42], [29, 43], [30, 44], [31, 45], [34, 46], [15, 47], [36, 48], [16, 49], [39, 50], [43, 51], [44, 52], [45, 53], [47, 54], [48, 55], [48, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 4], [13, 6], [14, 7], [15, 1], [16, 1], [17, 1], [18, 11], [19, 12], [20, 5], [21, 13], [22, 13], [23, 7], [24, 14], [25, 15], [26, 17], [27, 1], [28, 1], [29, 2], [30, 3], [31, 4], [32, 6], [33, 22], [34, 23], [35, 24], [36, 15], [37, 25], [38, 25], [39, 17], [40, 26], [41, 26], [42, 28], [43, 29], [44, 30], [45, 31], [46, 34], [47, 15], [48, 36], [49, 16], [50, 39], [51, 43], [52, 44], [53, 45], [54, 47], [55, 48], [56, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        if (!lazySessionCreation) {\n            openConnection();", "ast_nodes": ["FUNC_DECL", "IF", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Stopping connector: \" + connector + \" at address: \" + endpoint.getAddress());\n        }\n\n        if (connector instanceof SocketConnector) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Setting SocketConnector WorkerTimeout=0 to force MINA stopping its resources faster\");\n            }\n            ((SocketConnector) connector).setWorkerTimeout(0);\n        }\n\n        if (session != null) {\n            session.close();\n        }\n        \n        super.doStop();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [2, 8], [1, 9], [8, 10], [3, 11], [11, 12], [8, 13], [12, 14], [12, 15], [13, 16], [15, 17], [15, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 4], [8, 2], [9, 1], [10, 8], [11, 3], [12, 11], [13, 8], [14, 12], [15, 12], [16, 13], [17, 15], [18, 15], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "openConnection", "code": "    private void openConnection() {\n        SocketAddress address = endpoint.getAddress();\n        connector = endpoint.getConnector();\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Creating connector to address: \" + address + \" using connector: \" + connector + \" timeout: \" + timeout + \" millis.\");\n        }\n        IoHandler ioHandler = new ResponseHandler(endpoint);\n        ConnectFuture future = connector.connect(address, ioHandler, endpoint.getConnectorConfig());\n        future.join();\n        session = future.getSession();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [0, 8], [5, 9], [1, 10], [2, 11], [8, 12], [4, 13], [10, 14], [3, 15], [15, 16], [16, 17], [16, 18], [18, 19], [19, 20], [19, 21], [21, 22], [22, 23], [22, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 0], [9, 5], [10, 1], [11, 2], [12, 8], [13, 4], [14, 10], [15, 3], [16, 15], [17, 16], [18, 16], [19, 18], [20, 19], [21, 19], [22, 21], [23, 22], [24, 22], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "MinaProducer", "code": "    @SuppressWarnings({\"unchecked\"})\n    public MinaProducer(MinaEndpoint endpoint) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        this.lazySessionCreation = this.endpoint.isLazySessionCreation();\n        this.timeout = this.endpoint.getTimeout();", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "xalan-2.4-6759", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/util/NodeSetType.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.NodeSetType", "code": "public final class NodeSetType extends Type {\n    protected NodeSetType() {}\n\n    public String toString() {\n\treturn \"node-set\";\n    }\n\n    public boolean identicalTo(Type other) {\n\treturn this == other;\n    }\n\n    public String toSignature() {\n\treturn NODE_ITERATOR_SIG;\n    }\n\n    public org.apache.bcel.generic.Type toJCType() {\n\treturn new org.apache.bcel.generic.ObjectType(NODE_ITERATOR);\n    }\n\n    /**\n     * Translates a node-set into an object of internal type\n     * <code>type</code>. The translation to int is undefined\n     * since node-sets are always converted to\n     * reals in arithmetic expressions.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse if (type == Type.Boolean) {\n\t    translateTo(classGen, methodGen, (BooleanType) type);\n\t}\n\telse if (type == Type.Real) {\n\t    translateTo(classGen, methodGen, (RealType) type);\n\t}\n\telse if (type == Type.Node) {\n\t    translateTo(classGen, methodGen, (NodeType) type);\n\t}\n\telse if (type == Type.Reference) {\n\t    translateTo(classGen, methodGen, (ReferenceType) type);\n\t}\n\telse if (type == Type.Object) {\n\t    translateTo(classGen, methodGen, (ObjectType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n\n    /**\n     * Translates an external Java Class into an internal type.\n     * Expects the Java object on the stack, pushes the internal type\n     */\n    public void translateFrom(ClassGenerator classGen, \n\tMethodGenerator methodGen, Class clazz) \n    {\n\t\t\n  \tInstructionList il = methodGen.getInstructionList();\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tif (clazz.getName().equals(\"org.w3c.dom.NodeList\")) {\n\t   final int convert = cpg.addMethodref(BASIS_LIBRARY_CLASS,\n\t\t\t\t\t\"nodeList2Iterator\",\n\t\t\t\t\t\"(\"\t\t\n\t\t\t\t\t + \"Lorg/w3c/dom/NodeList;\"\n\t\t\t\t\t + TRANSLET_INTF_SIG \n\t\t\t\t\t + DOM_INTF_SIG \n\t\t\t\t\t + \")\" + NODE_ITERATOR_SIG );\n\t   il.append(new INVOKESTATIC(convert));\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\ttoString(), clazz.getName());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t} \n    }\n\n\n    /**\n     * Translates a node-set into a synthesized boolean.\n     * The boolean value of a node-set is \"true\" if non-empty\n     * and \"false\" otherwise. Notice that the \n     * function getFirstNode() is called in translateToDesynthesized().\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    BooleanType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tFlowList falsel = translateToDesynthesized(classGen, methodGen, type);\n\til.append(ICONST_1);\n\tfinal BranchHandle truec = il.append(new GOTO(null));\n\tfalsel.backPatch(il.append(ICONST_0));\n\ttruec.setTarget(il.append(NOP));\n    }\n\n    /**\n     * Translates a node-set into a string. The string value of a node-set is\n     * value of its first element.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tgetFirstNode(classGen, methodGen);\n\til.append(DUP);\n\tfinal BranchHandle falsec = il.append(new IFEQ(null));\n\tType.Node.translateTo(classGen, methodGen, type);\n\tfinal BranchHandle truec = il.append(new GOTO(null));\n\tfalsec.setTarget(il.append(POP));\n\til.append(new PUSH(classGen.getConstantPool(), \"\"));\n\ttruec.setTarget(il.append(NOP));\n    }\n\n    /**\n     * Expects a node-set on the stack and pushes a real.\n     * First the node-set is converted to string, and from string to real.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    RealType type) {\n\ttranslateTo(classGen, methodGen, Type.String);\n\tType.String.translateTo(classGen, methodGen, Type.Real);\t\n    }\n\n    /**\n     * Expects a node-set on the stack and pushes a node.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    NodeType type) {\n\tgetFirstNode(classGen, methodGen);\n    }\n\n    /**\n     * Subsume node-set into ObjectType.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ObjectType type) {\n\t    methodGen.getInstructionList().append(NOP);\t\n    }\n\n    /**\n     * Translates a node-set into a non-synthesized boolean. It does not \n     * push a 0 or a 1 but instead returns branchhandle list to be appended \n     * to the false list.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateToDesynthesized\n     */\n    public FlowList translateToDesynthesized(ClassGenerator classGen, \n\t\t\t\t\t     MethodGenerator methodGen, \n\t\t\t\t\t     BooleanType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tgetFirstNode(classGen, methodGen);\n\treturn new FlowList(il.append(new IFEQ(null)));\n    }\n\n    /**\n     * Expects a node-set on the stack and pushes a boxed node-set.\n     * Node sets are already boxed so the translation is just a NOP.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ReferenceType type) {\n\tmethodGen.getInstructionList().append(NOP);\n    }\n\n    /**\n     * Translates a node-set into the Java type denoted by <code>clazz</code>. \n     * Expects a node-set on the stack and pushes an object of the appropriate\n     * type after coercion.\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Class clazz) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal String className = clazz.getName();\n\n\til.append(methodGen.loadDOM());\n\til.append(SWAP);\n\n\tif (className.equals(\"org.w3c.dom.Node\")) {\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE,\n\t\t\t\t\t\t  MAKE_NODE_SIG2);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse if (className.equals(\"org.w3c.dom.NodeList\")) {\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE_LIST,\n\t\t\t\t\t\t  MAKE_NODE_LIST_SIG2);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse if (className.equals(\"int\")) {\n\t    int next = cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t\t  \"next\", \"()I\");\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  GET_NODE_VALUE,\n\t\t\t\t\t\t  \"(I)\"+STRING_SIG);\n\t    int str = cpg.addMethodref(BASIS_LIBRARY_CLASS,\n\t\t\t\t\tSTRING_TO_INT,\n\t\t\t\t\tSTRING_TO_INT_SIG);\n\n\t    il.append(new INVOKEINTERFACE(next, 1));\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t    il.append(new INVOKESTATIC(str));\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), className);\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n    \n    /**\n     * Some type conversions require gettting the first node from the node-set.\n     * This function is defined to avoid code repetition.\n     */\n    private void getFirstNode(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new INVOKEINTERFACE(cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t\t\t\tNEXT,\n\t\t\t\t\t\t\t\tNEXT_SIG), 1));\n    }\n\n    /**\n     * Translates an object of this type to its boxed representation.\n     */ \n    public void translateBox(ClassGenerator classGen,\n\t\t\t     MethodGenerator methodGen) {\n\ttranslateTo(classGen, methodGen, Type.Reference);\n    }\n\n    /**\n     * Translates an object of this type to its unboxed representation.\n     */ \n    public void translateUnBox(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tmethodGen.getInstructionList().append(NOP);\n    }\n\n    /**\n     * Returns the class name of an internal type's external representation.\n     */\n    public String getClassName() {\n\treturn(NODE_ITERATOR);\n    }\n\n\n    public Instruction LOAD(int slot) {\n\treturn new ALOAD(slot);\n    }\n\t\n    public Instruction STORE(int slot) {\n\treturn new ASTORE(slot);", "functions": [{"function_name": "toString", "code": "    public String toString() {\n\treturn \"node-set\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "identicalTo", "code": "    public boolean identicalTo(Type other) {\n\treturn this == other;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toSignature", "code": "    public String toSignature() {\n\treturn NODE_ITERATOR_SIG;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toJCType", "code": "    public org.apache.bcel.generic.Type toJCType() {\n\treturn new org.apache.bcel.generic.ObjectType(NODE_ITERATOR);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse if (type == Type.Boolean) {\n\t    translateTo(classGen, methodGen, (BooleanType) type);\n\t}\n\telse if (type == Type.Real) {\n\t    translateTo(classGen, methodGen, (RealType) type);\n\t}\n\telse if (type == Type.Node) {\n\t    translateTo(classGen, methodGen, (NodeType) type);\n\t}\n\telse if (type == Type.Reference) {\n\t    translateTo(classGen, methodGen, (ReferenceType) type);\n\t}\n\telse if (type == Type.Object) {\n\t    translateTo(classGen, methodGen, (ObjectType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [7, 9], [7, 10], [1, 11], [9, 12], [9, 13], [5, 14], [12, 15], [12, 16], [7, 17], [15, 18], [9, 19], [15, 20], [12, 21], [15, 22], [15, 23], [22, 24], [20, 25], [25, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 7], [10, 7], [11, 1], [12, 9], [13, 9], [14, 5], [15, 12], [16, 12], [17, 7], [18, 15], [19, 9], [20, 15], [21, 12], [22, 15], [23, 15], [24, 22], [25, 20], [26, 25], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "translateFrom", "code": "    public void translateFrom(ClassGenerator classGen, \n\tMethodGenerator methodGen, Class clazz) \n    {\n\t\t\n  \tInstructionList il = methodGen.getInstructionList();\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tif (clazz.getName().equals(\"org.w3c.dom.NodeList\")) {\n\t   final int convert = cpg.addMethodref(BASIS_LIBRARY_CLASS,\n\t\t\t\t\t\"nodeList2Iterator\",\n\t\t\t\t\t\"(\"\t\t\n\t\t\t\t\t + \"Lorg/w3c/dom/NodeList;\"\n\t\t\t\t\t + TRANSLET_INTF_SIG \n\t\t\t\t\t + DOM_INTF_SIG \n\t\t\t\t\t + \")\" + NODE_ITERATOR_SIG );\n\t   il.append(new INVOKESTATIC(convert));\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\ttoString(), clazz.getName());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [2, 11], [3, 12], [1, 13], [1, 14], [10, 15], [13, 16], [8, 17], [14, 18], [9, 19], [17, 20], [17, 21], [19, 22], [19, 23], [22, 24], [24, 25], [24, 26], [26, 27], [27, 28], [28, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 2], [12, 3], [13, 1], [14, 1], [15, 10], [16, 13], [17, 8], [18, 14], [19, 9], [20, 17], [21, 17], [22, 19], [23, 19], [24, 22], [25, 24], [26, 24], [27, 26], [28, 27], [29, 28], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    BooleanType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tFlowList falsel = translateToDesynthesized(classGen, methodGen, type);\n\til.append(ICONST_1);\n\tfinal BranchHandle truec = il.append(new GOTO(null));\n\tfalsel.backPatch(il.append(ICONST_0));\n\ttruec.setTarget(il.append(NOP));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [8, 11], [1, 12], [2, 13], [3, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 8], [12, 1], [13, 2], [14, 3], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tgetFirstNode(classGen, methodGen);\n\til.append(DUP);\n\tfinal BranchHandle falsec = il.append(new IFEQ(null));\n\tType.Node.translateTo(classGen, methodGen, type);\n\tfinal BranchHandle truec = il.append(new GOTO(null));\n\tfalsec.setTarget(il.append(POP));\n\til.append(new PUSH(classGen.getConstantPool(), \"\"));\n\ttruec.setTarget(il.append(NOP));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [7, 13], [8, 14], [9, 15], [1, 16], [2, 17], [3, 18], [14, 19], [14, 20], [16, 21], [17, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 7], [14, 8], [15, 9], [16, 1], [17, 2], [18, 3], [19, 14], [20, 14], [21, 16], [22, 17], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    RealType type) {\n\ttranslateTo(classGen, methodGen, Type.String);\n\tType.String.translateTo(classGen, methodGen, Type.Real);\t", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    NodeType type) {\n\tgetFirstNode(classGen, methodGen);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ObjectType type) {\n\t    methodGen.getInstructionList().append(NOP);\t", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translateToDesynthesized", "code": "    public FlowList translateToDesynthesized(ClassGenerator classGen, \n\t\t\t\t\t     MethodGenerator methodGen, \n\t\t\t\t\t     BooleanType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tgetFirstNode(classGen, methodGen);\n\treturn new FlowList(il.append(new IFEQ(null)));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [6, 8], [2, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 6], [9, 2], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ReferenceType type) {\n\tmethodGen.getInstructionList().append(NOP);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Class clazz) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal String className = clazz.getName();\n\n\til.append(methodGen.loadDOM());\n\til.append(SWAP);\n\n\tif (className.equals(\"org.w3c.dom.Node\")) {\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE,\n\t\t\t\t\t\t  MAKE_NODE_SIG2);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse if (className.equals(\"org.w3c.dom.NodeList\")) {\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE_LIST,\n\t\t\t\t\t\t  MAKE_NODE_LIST_SIG2);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse if (className.equals(\"int\")) {\n\t    int next = cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t\t  \"next\", \"()I\");\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  GET_NODE_VALUE,\n\t\t\t\t\t\t  \"(I)\"+STRING_SIG);\n\t    int str = cpg.addMethodref(BASIS_LIBRARY_CLASS,\n\t\t\t\t\tSTRING_TO_INT,\n\t\t\t\t\tSTRING_TO_INT_SIG);\n\n\t    il.append(new INVOKEINTERFACE(next, 1));\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t    il.append(new INVOKESTATIC(str));\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), className);\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "CALL", "CALL", "CALL", "IF", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [0, 10], [0, 11], [8, 12], [8, 13], [1, 14], [9, 15], [11, 16], [2, 17], [3, 18], [4, 19], [12, 20], [8, 21], [13, 22], [1, 23], [12, 24], [12, 25], [12, 26], [12, 27], [20, 28], [8, 29], [23, 30], [14, 31], [12, 32], [12, 33], [12, 34], [12, 35], [29, 36], [21, 37], [30, 38], [32, 39], [24, 40], [33, 41], [34, 42], [35, 43], [25, 44], [26, 45], [27, 46], [36, 47], [40, 48], [42, 49], [43, 50], [45, 51], [46, 52], [46, 53], [51, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 0], [11, 0], [12, 8], [13, 8], [14, 1], [15, 9], [16, 11], [17, 2], [18, 3], [19, 4], [20, 12], [21, 8], [22, 13], [23, 1], [24, 12], [25, 12], [26, 12], [27, 12], [28, 20], [29, 8], [30, 23], [31, 14], [32, 12], [33, 12], [34, 12], [35, 12], [36, 29], [37, 21], [38, 30], [39, 32], [40, 24], [41, 33], [42, 34], [43, 35], [44, 25], [45, 26], [46, 27], [47, 36], [48, 40], [49, 42], [50, 43], [51, 45], [52, 46], [53, 46], [54, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "getFirstNode", "code": "    private void getFirstNode(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new INVOKEINTERFACE(cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t\t\t\tNEXT,\n\t\t\t\t\t\t\t\tNEXT_SIG), 1));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [2, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 2], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "translateBox", "code": "    public void translateBox(ClassGenerator classGen,\n\t\t\t     MethodGenerator methodGen) {\n\ttranslateTo(classGen, methodGen, Type.Reference);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translateUnBox", "code": "    public void translateUnBox(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tmethodGen.getInstructionList().append(NOP);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getClassName", "code": "    public String getClassName() {\n\treturn(NODE_ITERATOR);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "LOAD", "code": "    public Instruction LOAD(int slot) {\n\treturn new ALOAD(slot);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "STORE", "code": "    public Instruction STORE(int slot) {\n\treturn new ASTORE(slot);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "NodeSetType", "code": "    protected NodeSetType() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.6-7690", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/dom/SecuritySupport12.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.SecuritySupport12", "code": "class SecuritySupport12 extends SecuritySupport {\n\n    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;\n            }\n        });\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;\n                }\n            });\n    }\n\n    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;\n                }\n            });\n    }\n\n    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);\n                }\n            });\n    }\n\n    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();\n        }\n    }\n\n    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;\n                }\n            });\n    }\n    \n    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());\n                }\n            })).booleanValue();\n    }\n    \n    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "functions": [{"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "COND_EXPR", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [7, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 7], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [8, 10], [10, 11], [8, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 8], [11, 10], [12, 8], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLastModified", "code": "    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "camel-1.6-2707", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/builder/ValueBuilder.java", "language": "java", "name": "org.apache.camel.builder.ValueBuilder", "code": "public class ValueBuilder<E extends Exchange> implements Expression<E> {\n    private Expression<E> expression;\n\n    public ValueBuilder(Expression<E> expression) {\n        this.expression = expression;\n    }\n\n    public Object evaluate(E exchange) {\n        return expression.evaluate(exchange);\n    }\n\n    public Expression<E> getExpression() {\n        return expression;\n    }\n\n    @Override\n    public String toString() {\n        return expression.toString();\n    }\n\n\n    public Predicate<E> isNotEqualTo(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isNotEqualTo(expression, right));\n    }\n\n    public Predicate<E> isEqualTo(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isEqualTo(expression, right));\n    }\n\n    public Predicate<E> isLessThan(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isLessThan(expression, right));\n    }\n\n    public Predicate<E> isLessThanOrEqualTo(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isLessThanOrEqualTo(expression, right));\n    }\n\n    public Predicate<E> isGreaterThan(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isGreaterThan(expression, right));\n    }\n\n    public Predicate<E> isGreaterThanOrEqualTo(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isGreaterThanOrEqualTo(expression, right));\n    }\n\n    public Predicate<E> isInstanceOf(Class type) {\n        return onNewPredicate(PredicateBuilder.isInstanceOf(expression, type));\n    }\n\n    /**\n     * @deprecated use {@link #regex(String)}. Will be removed in Camel 2.0\n     */\n    public Predicate<E> matchesRegex(String regex) {\n        return onNewPredicate(PredicateBuilder.regex(expression, regex));\n    }\n\n    public Predicate<E> isNull() {\n        return onNewPredicate(PredicateBuilder.isNull(expression));\n    }\n\n    public Predicate<E> isNotNull() {\n        return onNewPredicate(PredicateBuilder.isNotNull(expression));\n    }\n\n    /**\n     * Create a predicate that the left hand expression contains the value of\n     * the right hand expression\n     * \n     * @param value the element which is compared to be contained within this\n     *                expression\n     * @return a predicate which evaluates to true if the given value expression\n     *         is contained within this expression value\n     */\n    public Predicate<E> contains(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.contains(expression, right));\n    }\n\n    /**\n     * Creates a predicate which is true if this expression matches the given\n     * regular expression\n     * \n     * @param regex the regular expression to match\n     * @return a predicate which evaluates to true if the expression matches the\n     *         regex\n     */\n    public Predicate<E> regex(String regex) {\n        return onNewPredicate(PredicateBuilder.regex(expression, regex));\n    }\n\n\n    public ValueBuilder<E> tokenize() {\n        return tokenize(\"\\n\");\n    }\n\n    public ValueBuilder<E> tokenize(String token) {\n        Expression<E> newExp = ExpressionBuilder.tokenizeExpression(expression, token);\n        return new ValueBuilder<E>(newExp);\n    }\n\n    /**\n     * Tokenizes the string conversion of this expression using the given\n     * regular expression\n     */\n    public ValueBuilder<E> regexTokenize(String regex) {\n        Expression<E> newExp = ExpressionBuilder.regexTokenize(expression, regex);\n        return new ValueBuilder<E>(newExp);\n    }\n\n    /**\n     * Replaces all occurrencies of the regular expression with the given\n     * replacement\n     */\n    public ValueBuilder<E> regexReplaceAll(String regex, String replacement) {\n        Expression<E> newExp = ExpressionBuilder.regexReplaceAll(expression, regex, replacement);\n        return new ValueBuilder<E>(newExp);\n    }\n\n    /**\n     * Replaces all occurrencies of the regular expression with the given\n     * replacement\n     */\n    public ValueBuilder<E> regexReplaceAll(String regex, Expression<E> replacement) {\n        Expression<E> newExp = ExpressionBuilder.regexReplaceAll(expression, regex, replacement);\n        return new ValueBuilder<E>(newExp);\n    }\n\n    /**\n     * Converts the current value to the given type using the registered type\n     * converters\n     * \n     * @param type the type to convert the value to\n     * @return the current builder\n     */\n    public ValueBuilder<E> convertTo(Class type) {\n        Expression<E> newExp = ExpressionBuilder.convertTo(expression, type);\n        return new ValueBuilder<E>(newExp);\n    }\n\n    /**\n     * Converts the current value a String using the registered type converters\n     * \n     * @return the current builder\n     */\n    public ValueBuilder<E> convertToString() {\n        return convertTo(String.class);\n    }\n\n    /**\n     * Appends the string evaluation of this expression with the given value\n     * \n     * @param value the value or expression to append\n     * @return the current builder\n     */\n    public ValueBuilder<E> append(Object value) {\n        return new ValueBuilder<E>(ExpressionBuilder.append(expression, asExpression(value)));\n    }\n\n\n    /**\n     * A strategy method to allow derived classes to deal with the newly created\n     * predicate in different ways\n     */\n    protected Predicate<E> onNewPredicate(Predicate<E> predicate) {\n        return predicate;\n    }\n\n    protected Expression<E> asExpression(Object value) {\n        if (value instanceof Expression) {\n            return (Expression<E>)value;\n        } else {\n            return ExpressionBuilder.constantExpression(value);", "functions": [{"function_name": "evaluate", "code": "    public Object evaluate(E exchange) {\n        return expression.evaluate(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getExpression", "code": "    public Expression<E> getExpression() {\n        return expression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return expression.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNotEqualTo", "code": "    public Predicate<E> isNotEqualTo(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isNotEqualTo(expression, right));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isEqualTo", "code": "    public Predicate<E> isEqualTo(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isEqualTo(expression, right));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isLessThan", "code": "    public Predicate<E> isLessThan(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isLessThan(expression, right));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isLessThanOrEqualTo", "code": "    public Predicate<E> isLessThanOrEqualTo(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isLessThanOrEqualTo(expression, right));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isGreaterThan", "code": "    public Predicate<E> isGreaterThan(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isGreaterThan(expression, right));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isGreaterThanOrEqualTo", "code": "    public Predicate<E> isGreaterThanOrEqualTo(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.isGreaterThanOrEqualTo(expression, right));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isInstanceOf", "code": "    public Predicate<E> isInstanceOf(Class type) {\n        return onNewPredicate(PredicateBuilder.isInstanceOf(expression, type));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "matchesRegex", "code": "    public Predicate<E> matchesRegex(String regex) {\n        return onNewPredicate(PredicateBuilder.regex(expression, regex));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isNull", "code": "    public Predicate<E> isNull() {\n        return onNewPredicate(PredicateBuilder.isNull(expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isNotNull", "code": "    public Predicate<E> isNotNull() {\n        return onNewPredicate(PredicateBuilder.isNotNull(expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "contains", "code": "    public Predicate<E> contains(Object value) {\n        Expression<E> right = asExpression(value);\n        return onNewPredicate(PredicateBuilder.contains(expression, right));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "regex", "code": "    public Predicate<E> regex(String regex) {\n        return onNewPredicate(PredicateBuilder.regex(expression, regex));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "tokenize", "code": "    public ValueBuilder<E> tokenize() {\n        return tokenize(\"\\n\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "tokenize", "code": "    public ValueBuilder<E> tokenize(String token) {\n        Expression<E> newExp = ExpressionBuilder.tokenizeExpression(expression, token);\n        return new ValueBuilder<E>(newExp);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "regexTokenize", "code": "    public ValueBuilder<E> regexTokenize(String regex) {\n        Expression<E> newExp = ExpressionBuilder.regexTokenize(expression, regex);\n        return new ValueBuilder<E>(newExp);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "regexReplaceAll", "code": "    public ValueBuilder<E> regexReplaceAll(String regex, String replacement) {\n        Expression<E> newExp = ExpressionBuilder.regexReplaceAll(expression, regex, replacement);\n        return new ValueBuilder<E>(newExp);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "regexReplaceAll", "code": "    public ValueBuilder<E> regexReplaceAll(String regex, Expression<E> replacement) {\n        Expression<E> newExp = ExpressionBuilder.regexReplaceAll(expression, regex, replacement);\n        return new ValueBuilder<E>(newExp);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "convertTo", "code": "    public ValueBuilder<E> convertTo(Class type) {\n        Expression<E> newExp = ExpressionBuilder.convertTo(expression, type);\n        return new ValueBuilder<E>(newExp);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "convertToString", "code": "    public ValueBuilder<E> convertToString() {\n        return convertTo(String.class);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "append", "code": "    public ValueBuilder<E> append(Object value) {\n        return new ValueBuilder<E>(ExpressionBuilder.append(expression, asExpression(value)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "onNewPredicate", "code": "    protected Predicate<E> onNewPredicate(Predicate<E> predicate) {\n        return predicate;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "asExpression", "code": "    protected Expression<E> asExpression(Object value) {\n        if (value instanceof Expression) {\n            return (Expression<E>)value;\n        } else {\n            return ExpressionBuilder.constantExpression(value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "ValueBuilder", "code": "    public ValueBuilder(Expression<E> expression) {\n        this.expression = expression;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.5-313", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.cvslib.ChangeLogParser", "code": "class ChangeLogParser {\n    private static final int GET_FILE = 1;\n    private static final int GET_DATE = 2;\n    private static final int GET_COMMENT = 3;\n    private static final int GET_REVISION = 4;\n    private static final int GET_PREVIOUS_REV = 5;\n\n    /** input format for dates read in from cvs log */\n    private static final SimpleDateFormat c_inputDate\n        = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n    static {\n        TimeZone utc = TimeZone.getTimeZone(\"UTC\");\n        c_inputDate.setTimeZone(utc);\n    }\n\n    private String m_file;\n    private String m_date;\n    private String m_author;\n    private String m_comment;\n    private String m_revision;\n    private String m_previousRevision;\n\n    private int m_status = GET_FILE;\n\n    /** rcs entries */\n    private final Hashtable m_entries = new Hashtable();\n\n    /**\n     * Get a list of rcs entrys as an array.\n     *\n     * @return a list of rcs entrys as an array\n     */\n    CVSEntry[] getEntrySetAsArray() {\n        final CVSEntry[] array = new CVSEntry[ m_entries.size() ];\n        Enumeration enum1 = m_entries.elements();\n        int i = 0;\n        while (enum1.hasMoreElements()) {\n            array[i++] = (CVSEntry) enum1.nextElement();\n        }\n        return array;\n    }\n\n    /**\n     * Receive notification about the process writing\n     * to standard output.\n     */\n    public void stdout(final String line) {\n        switch(m_status) {\n            case GET_FILE:\n                reset();\n                processFile(line);\n                break;\n            case GET_REVISION:\n                processRevision(line);\n                break;\n\n            case GET_DATE:\n                processDate(line);\n                break;\n\n            case GET_COMMENT:\n                processComment(line);\n                break;\n\n            case GET_PREVIOUS_REV:\n                processGetPreviousRevision(line);\n                break;\n        }\n    }\n\n    /**\n     * Process a line while in \"GET_COMMENT\" state.\n     *\n     * @param line the line\n     */\n    private void processComment(final String line) {\n        final String lineSeparator = System.getProperty(\"line.separator\");\n        if (line.startsWith(\"======\")) {\n            final int end;\n            m_comment = m_comment.substring(0, end);\n            saveEntry();\n            m_status = GET_FILE;\n        } else if (line.startsWith(\"----------------------------\")) {\n            final int end;\n            m_comment = m_comment.substring(0, end);\n            m_status = GET_PREVIOUS_REV;\n        } else {\n            m_comment += line + lineSeparator;\n        }\n    }\n\n    /**\n     * Process a line while in \"GET_FILE\" state.\n     *\n     * @param line the line\n     */\n    private void processFile(final String line) {\n        if (line.startsWith(\"Working file:\")) {\n            m_file = line.substring(14, line.length());\n            m_status = GET_REVISION;\n        }\n    }\n\n    /**\n     * Process a line while in \"REVISION\" state.\n     *\n     * @param line the line\n     */\n    private void processRevision(final String line) {\n        if (line.startsWith(\"revision\")) {\n            m_revision = line.substring(9);\n            m_status = GET_DATE;\n        } else if (line.startsWith(\"======\")) {\n            m_status = GET_FILE;\n        }\n    }\n\n    /**\n     * Process a line while in \"DATE\" state.\n     *\n     * @param line the line\n     */\n    private void processDate(final String line) {\n        if (line.startsWith(\"date:\")) {\n            m_date = line.substring(6, 25);\n            String lineData = line.substring(line.indexOf(\";\") + 1);\n            m_author = lineData.substring(10, lineData.indexOf(\";\"));\n\n            m_status = GET_COMMENT;\n\n            m_comment = \"\";\n        }\n    }\n\n    /**\n     * Process a line while in \"GET_PREVIOUS_REVISION\" state.\n     *\n     * @param line the line\n     */\n    private void processGetPreviousRevision(final String line) {\n        if (!line.startsWith(\"revision\")) {\n            throw new IllegalStateException(\"Unexpected line from CVS: \"\n                + line);\n        }\n        m_previousRevision = line.substring(9);\n\n        saveEntry();\n\n        m_revision = m_previousRevision;\n        m_status = GET_DATE;\n    }\n\n    /**\n     * Utility method that saves the current entry.\n     */\n    private void saveEntry() {\n        final String entryKey = m_date + m_author + m_comment;\n        CVSEntry entry;\n        if (!m_entries.containsKey(entryKey)) {\n            entry = new CVSEntry(parseDate(m_date), m_author, m_comment);\n            m_entries.put(entryKey, entry);\n        } else {\n            entry = (CVSEntry) m_entries.get(entryKey);\n        }\n\n        entry.addFile(m_file, m_revision, m_previousRevision);\n    }\n\n    /**\n     * Parse date out from expected format.\n     *\n     * @param date the string holding dat\n     * @return the date object or null if unknown date format\n     */\n    private Date parseDate(final String date) {\n        try {\n            return c_inputDate.parse(date);\n        } catch (ParseException e) {\n            return null;\n        }\n    }\n    \n    /**\n     * reset all internal attributes except status.\n     */\n    private void reset(){\n        m_file = null;\n        m_date = null;\n        m_author = null;\n        m_comment = null;\n        m_revision = null;\n        m_previousRevision = null;", "functions": [{"function_name": "getEntrySetAsArray", "code": "    CVSEntry[] getEntrySetAsArray() {\n        final CVSEntry[] array = new CVSEntry[ m_entries.size() ];\n        Enumeration enum1 = m_entries.elements();\n        int i = 0;\n        while (enum1.hasMoreElements()) {\n            array[i++] = (CVSEntry) enum1.nextElement();\n        }\n        return array;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [2, 9], [5, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 2], [10, 5], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "stdout", "code": "    public void stdout(final String line) {\n        switch(m_status) {\n            case GET_FILE:\n                reset();\n                processFile(line);\n                break;\n            case GET_REVISION:\n                processRevision(line);\n                break;\n\n            case GET_DATE:\n                processDate(line);\n                break;\n\n            case GET_COMMENT:\n                processComment(line);\n                break;\n\n            case GET_PREVIOUS_REV:\n                processGetPreviousRevision(line);\n                break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "processComment", "code": "    private void processComment(final String line) {\n        final String lineSeparator = System.getProperty(\"line.separator\");\n        if (line.startsWith(\"======\")) {\n            final int end;\n            m_comment = m_comment.substring(0, end);\n            saveEntry();\n            m_status = GET_FILE;\n        } else if (line.startsWith(\"----------------------------\")) {\n            final int end;\n            m_comment = m_comment.substring(0, end);\n            m_status = GET_PREVIOUS_REV;\n        } else {\n            m_comment += line + lineSeparator;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [2, 9], [4, 10], [6, 11], [1, 12], [1, 13], [1, 14], [9, 15], [4, 16], [4, 17], [4, 18], [14, 19], [16, 20], [18, 21], [19, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 2], [10, 4], [11, 6], [12, 1], [13, 1], [14, 1], [15, 9], [16, 4], [17, 4], [18, 4], [19, 14], [20, 16], [21, 18], [22, 19], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "processFile", "code": "    private void processFile(final String line) {\n        if (line.startsWith(\"Working file:\")) {\n            m_file = line.substring(14, line.length());\n            m_status = GET_REVISION;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [6, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 6], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "processRevision", "code": "    private void processRevision(final String line) {\n        if (line.startsWith(\"revision\")) {\n            m_revision = line.substring(9);\n            m_status = GET_DATE;\n        } else if (line.startsWith(\"======\")) {\n            m_status = GET_FILE;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 8], [1, 9], [3, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 1], [9, 1], [10, 3], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "processDate", "code": "    private void processDate(final String line) {\n        if (line.startsWith(\"date:\")) {\n            m_date = line.substring(6, 25);\n            String lineData = line.substring(line.indexOf(\";\") + 1);\n            m_author = lineData.substring(10, lineData.indexOf(\";\"));\n\n            m_status = GET_COMMENT;\n\n            m_comment = \"\";", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [8, 11], [4, 12], [9, 13], [11, 14], [11, 15], [12, 16], [13, 17], [13, 18], [14, 19], [16, 20], [16, 21], [21, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 8], [12, 4], [13, 9], [14, 11], [15, 11], [16, 12], [17, 13], [18, 13], [19, 14], [20, 16], [21, 16], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "processGetPreviousRevision", "code": "    private void processGetPreviousRevision(final String line) {\n        if (!line.startsWith(\"revision\")) {\n            throw new IllegalStateException(\"Unexpected line from CVS: \"\n                + line);\n        }\n        m_previousRevision = line.substring(9);\n\n        saveEntry();\n\n        m_revision = m_previousRevision;\n        m_status = GET_DATE;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [6, 8], [1, 9], [7, 10], [8, 11], [9, 12], [12, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 6], [9, 1], [10, 7], [11, 8], [12, 9], [13, 12], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "saveEntry", "code": "    private void saveEntry() {\n        final String entryKey = m_date + m_author + m_comment;\n        CVSEntry entry;\n        if (!m_entries.containsKey(entryKey)) {\n            entry = new CVSEntry(parseDate(m_date), m_author, m_comment);\n            m_entries.put(entryKey, entry);\n        } else {\n            entry = (CVSEntry) m_entries.get(entryKey);\n        }\n\n        entry.addFile(m_file, m_revision, m_previousRevision);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [1, 8], [1, 9], [6, 10], [9, 11], [7, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 1], [9, 1], [10, 6], [11, 9], [12, 7], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "parseDate", "code": "    private Date parseDate(final String date) {\n        try {\n            return c_inputDate.parse(date);\n        } catch (ParseException e) {\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "reset", "code": "    private void reset(){\n        m_file = null;\n        m_date = null;\n        m_author = null;\n        m_comment = null;\n        m_revision = null;\n        m_previousRevision = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "jedit-4.1-4099", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/search/CurrentBufferSet.java", "language": "java", "name": "org.gjt.sp.jedit.search.CurrentBufferSet", "code": "public class CurrentBufferSet implements SearchFileSet\n{\n\t//{{{ getFirstFile() method\n\tpublic String getFirstFile(View view)\n\t{\n\t\treturn view.getBuffer().getPath();\n\t} //}}}\n\n\t//{{{ getNextFile() method\n\tpublic String getNextFile(View view, String file)\n\t{\n\t\tif(file == null)\n\t\t\treturn view.getBuffer().getPath();\n\t\telse\n\t\t\treturn null;\n\t} //}}}\n\n\t//{{{ getFiles() method\n\tpublic String[] getFiles(View view)\n\t{\n\t\treturn new String[] { view.getBuffer().getPath() };\n\t} //}}}\n\n\t//{{{ getFileCount() method\n\tpublic int getFileCount(View view)\n\t{\n\t\treturn 1;\n\t} //}}}\n\n\t//{{{ getCode() method\n\tpublic String getCode()\n\t{\n\t\treturn \"new CurrentBufferSet()\";", "functions": [{"function_name": "getFirstFile", "code": "\tpublic String getFirstFile(View view)\n\t{\n\t\treturn view.getBuffer().getPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNextFile", "code": "\tpublic String getNextFile(View view, String file)\n\t{\n\t\tif(file == null)\n\t\t\treturn view.getBuffer().getPath();\n\t\telse\n\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getFiles", "code": "\tpublic String[] getFiles(View view)\n\t{\n\t\treturn new String[] { view.getBuffer().getPath() };", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFileCount", "code": "\tpublic int getFileCount(View view)\n\t{\n\t\treturn 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCode", "code": "\tpublic String getCode()\n\t{\n\t\treturn \"new CurrentBufferSet()\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1052", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskMirror.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskMirror", "code": "public interface JUnitTaskMirror {\n\n    /**\n     * Add the formatter to be called when the jvm exits before\n     * the test suite finishs.\n     * @param test the test.\n     * @param formatter the fomatter to use.\n     * @param out the output stream to use.\n     * @param message the message to write out.\n     * @param testCase the name of the test.\n     */\n    void addVmExit(JUnitTest test, JUnitResultFormatterMirror formatter,\n            OutputStream out, String message, String testCase);\n\n    /**\n     * Create a new test runner for a test.\n     * @param test the test to run.\n     * @param haltOnError if true halt the tests if an error occurs.\n     * @param filterTrace if true filter the stack traces.\n     * @param haltOnFailure if true halt the test if a failure occurs.\n     * @param showOutput    if true show output.\n     * @param logTestListenerEvents if true log test listener events.\n     * @param classLoader      the classloader to use to create the runner.\n     * @return the test runner.\n     */\n    JUnitTestRunnerMirror newJUnitTestRunner(JUnitTest test, boolean haltOnError,\n            boolean filterTrace, boolean haltOnFailure, boolean showOutput,\n            boolean logTestListenerEvents, AntClassLoader classLoader);\n\n    /**\n     * Create a summary result formatter.\n     * @return the created formatter.\n     */\n    SummaryJUnitResultFormatterMirror newSummaryJUnitResultFormatter();\n\n\n    /** The interface that JUnitResultFormatter extends. */\n    public interface JUnitResultFormatterMirror {\n        /**\n         * Set the output stream.\n         * @param outputStream the stream to use.\n         */\n        void setOutput(OutputStream outputStream);\n    }\n\n    /** The interface that SummaryJUnitResultFormatter extends. */\n    public interface SummaryJUnitResultFormatterMirror\n        extends JUnitResultFormatterMirror {\n\n        /**\n         * Set where standard out and standard error should be included.\n         * @param value if true include the outputs in the summary.\n         */\n        void setWithOutAndErr(boolean value);\n    }\n\n    /** Interface that test runners implement. */\n    public interface JUnitTestRunnerMirror {\n\n        /**\n         * Used in formatter arguments as a placeholder for the basename\n         * of the output file (which gets replaced by a test specific\n         * output file name later).\n         *\n         * @since Ant 1.6.3\n         */\n        String IGNORED_FILE_NAME = \"IGNORETHIS\";\n\n        /**\n         * No problems with this test.\n         */\n        int SUCCESS = 0;\n\n        /**\n         * Some tests failed.\n         */\n        int FAILURES = 1;\n\n        /**\n         * An error occurred.\n         */\n        int ERRORS = 2;\n\n        /**\n         * Permissions for the test run.\n         * @param perm the permissions to use.\n         */\n        void setPermissions(Permissions perm);\n\n        /** Run the test. */\n        void run();\n\n        /**\n         * Add a formatter to the test.\n         * @param formatter the formatter to use.\n         */\n        void addFormatter(JUnitResultFormatterMirror formatter);\n\n        /**\n         * Returns what System.exit() would return in the standalone version.\n         *\n         * @return 2 if errors occurred, 1 if tests failed else 0.\n         */\n        int getRetCode();\n\n        /**\n         * Handle output sent to System.err.\n         *\n         * @param output coming from System.err\n         */\n        void handleErrorFlush(String output);\n\n        /**\n         * Handle output sent to System.err.\n         *\n         * @param output output for System.err\n         */\n        void handleErrorOutput(String output);\n\n        /**\n         * Handle output sent to System.out.\n         *\n         * @param output output for System.out.\n         */\n        void handleOutput(String output);\n\n        /**\n         * Handle an input request.\n         *\n         * @param buffer the buffer into which data is to be read.\n         * @param offset the offset into the buffer at which data is stored.\n         * @param length the amount of data to read.\n         *\n         * @return the number of bytes read.\n         *\n         * @exception IOException if the data cannot be read.\n         */\n        int handleInput(byte[] buffer, int offset, int length) throws IOException;\n\n        /**\n         * Handle output sent to System.out.\n         *\n         * @param output output for System.out.\n         */\n       void handleFlush(String output);", "functions": [{"function_name": "addVmExit", "code": "    void addVmExit(JUnitTest test, JUnitResultFormatterMirror formatter,\n            OutputStream out, String message, String testCase);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "newJUnitTestRunner", "code": "    JUnitTestRunnerMirror newJUnitTestRunner(JUnitTest test, boolean haltOnError,\n            boolean filterTrace, boolean haltOnFailure, boolean showOutput,\n            boolean logTestListenerEvents, AntClassLoader classLoader);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "newSummaryJUnitResultFormatter", "code": "    SummaryJUnitResultFormatterMirror newSummaryJUnitResultFormatter();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.2-1849", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/file/FileMessage.java", "language": "java", "name": "org.apache.camel.component.file.FileMessage", "code": "public class FileMessage extends DefaultMessage {\n    private File file;\n\n    public FileMessage() {\n        this(new File(\".\"));\n    }\n\n    public FileMessage(File file) {\n        this.file = file;\n    }\n\n    @Override\n    public String toString() {\n        return \"FileMessage: \" + file;\n    }\n\n    @Override\n    public FileExchange getExchange() {\n        return (FileExchange)super.getExchange();\n    }\n\n    public File getFile() {\n        return file;\n    }\n\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    @Override\n    public FileMessage newInstance() {\n        return new FileMessage();\n    }\n\n    @Override\n    protected Object createBody() {\n        return file;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"FileMessage: \" + file;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getExchange", "code": "    @Override\n    public FileExchange getExchange() {\n        return (FileExchange)super.getExchange();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFile", "code": "    public File getFile() {\n        return file;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "newInstance", "code": "    @Override\n    public FileMessage newInstance() {\n        return new FileMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createBody", "code": "    @Override\n    protected Object createBody() {\n        return file;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FileMessage", "code": "    public FileMessage() {\n        this(new File(\".\"));", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FileMessage", "code": "    public FileMessage(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.7-8268", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/runtime/SecuritySupport12.java", "language": "java", "name": "org.apache.xalan.xsltc.runtime.SecuritySupport12", "code": "class SecuritySupport12 extends SecuritySupport {\n\n    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;\n            }\n        });\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;\n                }\n            });\n    }\n\n    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;\n                }\n            });\n    }\n\n    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);\n                }\n            });\n    }\n\n    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();\n        }\n    }\n\n    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;\n                }\n            });\n    }\n    \n    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());\n                }\n            })).booleanValue();\n    }\n    \n    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "functions": [{"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "COND_EXPR", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [7, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 7], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [8, 10], [10, 11], [8, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 8], [11, 10], [12, 8], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLastModified", "code": "    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "camel-1.2-1623", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/commons/logging/impl/NoOpLog.java", "language": "java", "name": "org.apache.commons.logging.impl.NoOpLog", "code": "public class NoOpLog implements Log, Serializable {\n\n    /** Serializable version identifier. */\n    private static final long serialVersionUID = 561423906191706148L;\n\n    /** Convenience constructor */\n    public NoOpLog() { }\n    /** Base constructor */\n    public NoOpLog(String name) { }\n    /** Do nothing */\n    public void trace(Object message) { }\n    /** Do nothing */\n    public void trace(Object message, Throwable t) { }\n    /** Do nothing */\n    public void debug(Object message) { }\n    /** Do nothing */\n    public void debug(Object message, Throwable t) { }\n    /** Do nothing */\n    public void info(Object message) { }\n    /** Do nothing */\n    public void info(Object message, Throwable t) { }\n    /** Do nothing */\n    public void warn(Object message) { }\n    /** Do nothing */\n    public void warn(Object message, Throwable t) { }\n    /** Do nothing */\n    public void error(Object message) { }\n    /** Do nothing */\n    public void error(Object message, Throwable t) { }\n    /** Do nothing */\n    public void fatal(Object message) { }\n    /** Do nothing */\n    public void fatal(Object message, Throwable t) { }\n\n    /**\n     * Debug is never enabled.\n     *\n     * @return false\n     */\n    public final boolean isDebugEnabled() { return false; }\n\n    /**\n     * Error is never enabled.\n     *\n     * @return false\n     */\n    public final boolean isErrorEnabled() { return false; }\n\n    /**\n     * Fatal is never enabled.\n     *\n     * @return false\n     */\n    public final boolean isFatalEnabled() { return false; }\n\n    /**\n     * Info is never enabled.\n     *\n     * @return false\n     */\n    public final boolean isInfoEnabled() { return false; }\n\n    /**\n     * Trace is never enabled.\n     *\n     * @return false\n     */\n    public final boolean isTraceEnabled() { return false; }\n\n    /**\n     * Warn is never enabled.\n     *\n     * @return false\n     */\n    public final boolean isWarnEnabled() { return false; }", "functions": [{"function_name": "trace", "code": "    public void trace(Object message) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "trace", "code": "    public void trace(Object message, Throwable t) { }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "debug", "code": "    public void debug(Object message) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "debug", "code": "    public void debug(Object message, Throwable t) { }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "info", "code": "    public void info(Object message) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "info", "code": "    public void info(Object message, Throwable t) { }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "warn", "code": "    public void warn(Object message) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "warn", "code": "    public void warn(Object message, Throwable t) { }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "error", "code": "    public void error(Object message) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "error", "code": "    public void error(Object message, Throwable t) { }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "fatal", "code": "    public void fatal(Object message) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fatal", "code": "    public void fatal(Object message, Throwable t) { }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDebugEnabled", "code": "    public final boolean isDebugEnabled() { return false; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isErrorEnabled", "code": "    public final boolean isErrorEnabled() { return false; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFatalEnabled", "code": "    public final boolean isFatalEnabled() { return false; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isInfoEnabled", "code": "    public final boolean isInfoEnabled() { return false; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isTraceEnabled", "code": "    public final boolean isTraceEnabled() { return false; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isWarnEnabled", "code": "    public final boolean isWarnEnabled() { return false; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "NoOpLog", "code": "    public NoOpLog() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NoOpLog", "code": "    public NoOpLog(String name) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.2-4365", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/browser/BrowserIORequest.java", "language": "java", "name": "org.gjt.sp.jedit.browser.BrowserIORequest", "code": "class BrowserIORequest extends WorkRequest\n{\n\t//{{{ Request types\n\t/**\n\t * Directory listing I/O request.\n\t */\n\tpublic static final int LIST_DIRECTORY = 0;\n\n\t/**\n\t * Delete file I/O request.\n\t */\n\tpublic static final int DELETE = 1;\n\n\t/**\n\t * Rename file I/O request.\n\t */\n\tpublic static final int RENAME = 2;\n\n\t/**\n\t * Make directory I/O request.\n\t */\n\tpublic static final int MKDIR = 3;\n\t//}}}\n\n\t//{{{ BrowserIORequest constructor\n\t/**\n\t * Creates a new browser I/O request.\n\t * @param type The request type\n\t * @param browser The VFS browser instance\n\t * @param path1 The first path name to operate on\n\t * @param path2 The second path name to operate on\n\t * @param loadInfo A two-element array filled out by the request;\n\t * element 1 is the canonical path, element 2 is the file list.\n\t */\n\tBrowserIORequest(int type, VFSBrowser browser,\n\t\tObject session, VFS vfs, String path1, String path2,\n\t\tObject[] loadInfo)\n\t{\n\t\tthis.type = type;\n\t\tthis.browser = browser;\n\t\tthis.session = session;\n\t\tthis.vfs = vfs;\n\t\tthis.path1 = path1;\n\t\tthis.path2 = path2;\n\t\tthis.loadInfo = loadInfo;\n\t} //}}}\n\n\t//{{{ run() method\n\tpublic void run()\n\t{\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\tlistDirectory();\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\tdelete();\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\trename();\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\tmkdir();\n\t\t\tbreak;\n\t\t}\n\t} //}}}\n\n\t//{{{ toString() method\n\tpublic String toString()\n\t{\n\t\tString typeString;\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\ttypeString = \"LIST_DIRECTORY\";\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\ttypeString = \"DELETE\";\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\ttypeString = \"RENAME\";\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\ttypeString = \"MKDIR\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttypeString = \"UNKNOWN!!!\";\n\t\t\tbreak;\n\t\t}\n\n\t\treturn getClass().getName() + \"[type=\" + typeString\n\t\t\t+ \",vfs=\" + vfs + \",path1=\" + path1\n\t\t\t+ \",path2=\" + path2 + \"]\";\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate int type;\n\tprivate VFSBrowser browser;\n\tprivate Object session;\n\tprivate VFS vfs;\n\tprivate String path1;\n\tprivate String path2;\n\tprivate Object[] loadInfo;\n\t//}}}\n\n\t//{{{ listDirectory() method\n\tprivate void listDirectory()\n\t{\n\t\tVFS.DirectoryEntry[] directory = null;\n\n\t\tString[] args = { path1 };\n\t\tsetStatus(jEdit.getProperty(\"vfs.status.listing-directory\",args));\n\n\t\tString canonPath = path1;\n\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\n\t\t\tcanonPath = vfs._canonPath(session,path1,browser);\n\t\t\tdirectory = vfs._listDirectory(session,canonPath,browser);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tsetAbortable(false);\n\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\tString[] pp = { io.toString() };\n\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\n\t\tsetAbortable(false);\n\n\t\tloadInfo[0] = canonPath;\n\t\tloadInfo[1] = directory;\n\t} //}}}\n\n\t//{{{ delete() method\n\tprivate void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.deleting\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\n\t\t\t\tif(!vfs._delete(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.delete-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ rename() method\n\tprivate void rename()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1, path2 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.renaming\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\t\t\t\tpath2 = vfs._canonPath(session,path2,browser);\n\n\t\t\t\tVFS.DirectoryEntry file = vfs._getDirectoryEntry(\n\t\t\t\t\tsession,path2,browser);\n\t\t\t\tif(file != null)\n\t\t\t\t{\n\t\t\t\t\tif((OperatingSystem.isDOSDerived()\n\t\t\t\t\t\t|| OperatingSystem.isMacOS())\n\t\t\t\t\t\t&& path1.equalsIgnoreCase(path2))\n\t\t\t\t\t{\n\t\t\t\t\t\t// allow user to change name\n\t\t\t\t\t\t// case\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tVFSManager.error(browser,path1,\n\t\t\t\t\t\t\t\"ioerror.rename-exists\",\n\t\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(!vfs._rename(session,path1,path2,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.rename-error\",\n\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ mkdir() method\n\tprivate void mkdir()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.mkdir\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\t\t\t\tif(!vfs._mkdir(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.mkdir-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\targs[0] = io.toString();\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] args = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);", "functions": [{"function_name": "run", "code": "\tpublic void run()\n\t{\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\tlistDirectory();\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\tdelete();\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\trename();\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\tmkdir();\n\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "SWITCH", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\tString typeString;\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\ttypeString = \"LIST_DIRECTORY\";\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\ttypeString = \"DELETE\";\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\ttypeString = \"RENAME\";\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\ttypeString = \"MKDIR\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttypeString = \"UNKNOWN!!!\";\n\t\t\tbreak;\n\t\t}\n\n\t\treturn getClass().getName() + \"[type=\" + typeString\n\t\t\t+ \",vfs=\" + vfs + \",path1=\" + path1\n\t\t\t+ \",path2=\" + path2 + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [12, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [19, 25], [25, 26], [25, 27], [27, 28], [28, 29], [28, 30], [30, 31], [31, 32], [31, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 12], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 19], [26, 25], [27, 25], [28, 27], [29, 28], [30, 28], [31, 30], [32, 31], [33, 31], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "listDirectory", "code": "\tprivate void listDirectory()\n\t{\n\t\tVFS.DirectoryEntry[] directory = null;\n\n\t\tString[] args = { path1 };\n\t\tsetStatus(jEdit.getProperty(\"vfs.status.listing-directory\",args));\n\n\t\tString canonPath = path1;\n\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\n\t\t\tcanonPath = vfs._canonPath(session,path1,browser);\n\t\t\tdirectory = vfs._listDirectory(session,canonPath,browser);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tsetAbortable(false);\n\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\tString[] pp = { io.toString() };\n\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\n\t\tsetAbortable(false);\n\n\t\tloadInfo[0] = canonPath;\n\t\tloadInfo[1] = directory;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "TRY", "CATCH", "CATCH", "CALL", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [0, 11], [7, 12], [8, 13], [10, 14], [1, 15], [1, 16], [1, 17], [11, 18], [4, 19], [13, 20], [8, 21], [10, 22], [10, 23], [10, 24], [15, 25], [16, 26], [17, 27], [18, 28], [5, 29], [6, 30], [13, 31], [13, 32], [13, 33], [22, 34], [24, 35], [31, 36], [33, 37], [14, 38], [20, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 0], [12, 7], [13, 8], [14, 10], [15, 1], [16, 1], [17, 1], [18, 11], [19, 4], [20, 13], [21, 8], [22, 10], [23, 10], [24, 10], [25, 15], [26, 16], [27, 17], [28, 18], [29, 5], [30, 6], [31, 13], [32, 13], [33, 13], [34, 22], [35, 24], [36, 31], [37, 33], [38, 14], [39, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "delete", "code": "\tprivate void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.deleting\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\n\t\t\t\tif(!vfs._delete(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.delete-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "CATCH", "TRY", "VAR_DECL", "CATCH", "CATCH", "IF", "CALL", "CALL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [4, 8], [1, 9], [1, 10], [6, 11], [2, 12], [7, 13], [8, 14], [4, 15], [9, 16], [10, 17], [6, 18], [6, 19], [6, 20], [7, 21], [7, 22], [7, 23], [8, 24], [15, 25], [16, 26], [18, 27], [20, 28], [21, 29], [23, 30], [24, 31], [24, 32], [11, 33], [13, 34], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 4], [9, 1], [10, 1], [11, 6], [12, 2], [13, 7], [14, 8], [15, 4], [16, 9], [17, 10], [18, 6], [19, 6], [20, 6], [21, 7], [22, 7], [23, 7], [24, 8], [25, 15], [26, 16], [27, 18], [28, 20], [29, 21], [30, 23], [31, 24], [32, 24], [33, 11], [34, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "rename", "code": "\tprivate void rename()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1, path2 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.renaming\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\t\t\t\tpath2 = vfs._canonPath(session,path2,browser);\n\n\t\t\t\tVFS.DirectoryEntry file = vfs._getDirectoryEntry(\n\t\t\t\t\tsession,path2,browser);\n\t\t\t\tif(file != null)\n\t\t\t\t{\n\t\t\t\t\tif((OperatingSystem.isDOSDerived()\n\t\t\t\t\t\t|| OperatingSystem.isMacOS())\n\t\t\t\t\t\t&& path1.equalsIgnoreCase(path2))\n\t\t\t\t\t{\n\t\t\t\t\t\t// allow user to change name\n\t\t\t\t\t\t// case\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tVFSManager.error(browser,path1,\n\t\t\t\t\t\t\t\"ioerror.rename-exists\",\n\t\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(!vfs._rename(session,path1,path2,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.rename-error\",\n\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "CATCH", "TRY", "VAR_DECL", "CATCH", "CATCH", "IF", "IF", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [4, 8], [4, 9], [4, 10], [1, 11], [1, 12], [6, 13], [2, 14], [7, 15], [8, 16], [9, 17], [4, 18], [4, 19], [11, 20], [12, 21], [6, 22], [6, 23], [6, 24], [7, 25], [7, 26], [7, 27], [8, 28], [9, 29], [17, 30], [10, 31], [18, 32], [19, 33], [20, 34], [22, 35], [24, 36], [25, 37], [27, 38], [28, 39], [29, 40], [13, 41], [15, 42], [29, 43], [40, 44], [40, 45], [29, 46], [45, 47], [45, 48], [46, 49], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 4], [9, 4], [10, 4], [11, 1], [12, 1], [13, 6], [14, 2], [15, 7], [16, 8], [17, 9], [18, 4], [19, 4], [20, 11], [21, 12], [22, 6], [23, 6], [24, 6], [25, 7], [26, 7], [27, 7], [28, 8], [29, 9], [30, 17], [31, 10], [32, 18], [33, 19], [34, 20], [35, 22], [36, 24], [37, 25], [38, 27], [39, 28], [40, 29], [41, 13], [42, 15], [43, 29], [44, 40], [45, 40], [46, 29], [47, 45], [48, 45], [49, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "mkdir", "code": "\tprivate void mkdir()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.mkdir\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\t\t\t\tif(!vfs._mkdir(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.mkdir-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\targs[0] = io.toString();\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\t\tString[] args = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "CATCH", "TRY", "VAR_DECL", "CATCH", "CATCH", "IF", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [4, 8], [1, 9], [1, 10], [6, 11], [2, 12], [8, 13], [4, 14], [9, 15], [10, 16], [6, 17], [6, 18], [6, 19], [7, 20], [7, 21], [7, 22], [7, 23], [8, 24], [14, 25], [15, 26], [17, 27], [19, 28], [20, 29], [21, 30], [23, 31], [24, 32], [24, 33], [11, 34], [21, 35], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 4], [9, 1], [10, 1], [11, 6], [12, 2], [13, 8], [14, 4], [15, 9], [16, 10], [17, 6], [18, 6], [19, 6], [20, 7], [21, 7], [22, 7], [23, 7], [24, 8], [25, 14], [26, 15], [27, 17], [28, 19], [29, 20], [30, 21], [31, 23], [32, 24], [33, 24], [34, 11], [35, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "BrowserIORequest", "code": "\tBrowserIORequest(int type, VFSBrowser browser,\n\t\tObject session, VFS vfs, String path1, String path2,\n\t\tObject[] loadInfo)\n\t{\n\t\tthis.type = type;\n\t\tthis.browser = browser;\n\t\tthis.session = session;\n\t\tthis.vfs = vfs;\n\t\tthis.path1 = path1;\n\t\tthis.path2 = path2;\n\t\tthis.loadInfo = loadInfo;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "poi-3.0-6097", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/util/BitField.java", "language": "java", "name": "org.apache.poi.util.BitField", "code": "public class BitField\n{\n    private final int _mask;\n    private final int _shift_count;\n\n    /**\n     * Create a BitField instance\n     *\n     * @param mask the mask specifying which bits apply to this\n     *             BitField. Bits that are set in this mask are the\n     *             bits that this BitField operates on\n     */\n\n    public BitField(final int mask)\n    {\n        _mask = mask;\n        int count       = 0;\n        int bit_pattern = mask;\n\n        if (bit_pattern != 0)\n        {\n            while ((bit_pattern & 1) == 0)\n            {\n                count++;\n                bit_pattern >>= 1;\n            }\n        }\n        _shift_count = count;\n    }\n\n    /**\n     * Obtain the value for the specified BitField, appropriately\n     * shifted right. Many users of a BitField will want to treat the\n     * specified bits as an int value, and will not want to be aware\n     * that the value is stored as a BitField (and so shifted left so\n     * many bits)\n     *\n     * @param holder the int data containing the bits we're interested\n     *               in\n     *\n     * @return the selected bits, shifted right appropriately\n     */\n\n    public int getValue(final int holder)\n    {\n        return getRawValue(holder) >> _shift_count;\n    }\n\n    /**\n     * Obtain the value for the specified BitField, appropriately\n     * shifted right, as a short. Many users of a BitField will want\n     * to treat the specified bits as an int value, and will not want\n     * to be aware that the value is stored as a BitField (and so\n     * shifted left so many bits)\n     *\n     * @param holder the short data containing the bits we're\n     *               interested in\n     *\n     * @return the selected bits, shifted right appropriately\n     */\n\n    public short getShortValue(final short holder)\n    {\n        return ( short ) getValue(holder);\n    }\n\n    /**\n     * Obtain the value for the specified BitField, unshifted\n     *\n     * @param holder the int data containing the bits we're interested\n     *               in\n     *\n     * @return the selected bits\n     */\n\n    public int getRawValue(final int holder)\n    {\n        return (holder & _mask);\n    }\n\n    /**\n     * Obtain the value for the specified BitField, unshifted\n     *\n     * @param holder the short data containing the bits we're\n     *               interested in\n     *\n     * @return the selected bits\n     */\n\n    public short getShortRawValue(final short holder)\n    {\n        return ( short ) getRawValue(holder);\n    }\n\n    /**\n     * Is the field set or not? This is most commonly used for a\n     * single-bit field, which is often used to represent a boolean\n     * value; the results of using it for a multi-bit field is to\n     * determine whether *any* of its bits are set\n     *\n     * @param holder the int data containing the bits we're interested\n     *               in\n     *\n     * @return true if any of the bits are set, else false\n     */\n\n    public boolean isSet(final int holder)\n    {\n        return (holder & _mask) != 0;\n    }\n\n    /**\n     * Are all of the bits set or not? This is a stricter test than\n     * isSet, in that all of the bits in a multi-bit set must be set\n     * for this method to return true\n     *\n     * @param holder the int data containing the bits we're interested\n     *               in\n     *\n     * @return true if all of the bits are set, else false\n     */\n\n    public boolean isAllSet(final int holder)\n    {\n        return (holder & _mask) == _mask;\n    }\n\n    /**\n     * Replace the bits with new values.\n     *\n     * @param holder the int data containint the bits we're interested\n     *               in\n     * @param value the new value for the specified bits\n     *\n     * @return the value of holder with the bits from the value\n     *         parameter replacing the old bits\n     */\n\n    public int setValue(final int holder, final int value)\n    {\n        return (holder & ~_mask) | ((value << _shift_count) & _mask);\n    }\n\n    /**\n     * Replace the bits with new values.\n     *\n     * @param holder the short data containing the bits we're\n     *               interested in\n     * @param value the new value for the specified bits\n     *\n     * @return the value of holder with the bits from the value\n     *         parameter replacing the old bits\n     */\n\n    public short setShortValue(final short holder, final short value)\n    {\n        return ( short ) setValue(holder, value);\n    }\n\n    /**\n     * Clear the bits.\n     *\n     * @param holder the int data containing the bits we're interested\n     *               in\n     *\n     * @return the value of holder with the specified bits cleared\n     *         (set to 0)\n     */\n\n    public int clear(final int holder)\n    {\n        return holder & ~_mask;\n    }\n\n    /**\n     * Clear the bits.\n     *\n     * @param holder the short data containing the bits we're\n     *               interested in\n     *\n     * @return the value of holder with the specified bits cleared\n     *         (set to 0)\n     */\n\n    public short clearShort(final short holder)\n    {\n        return ( short ) clear(holder);\n    }\n\n    /**\n     * Clear the bits.\n     *\n     * @param holder the byte data containing the bits we're\n     *               interested in\n     *\n     * @return the value of holder with the specified bits cleared\n     *         (set to 0)\n     */\n\n    public byte clearByte(final byte holder)\n    {\n        return ( byte ) clear(holder);\n    }\n\n    /**\n     * Set the bits.\n     *\n     * @param holder the int data containing the bits we're interested\n     *               in\n     *\n     * @return the value of holder with the specified bits set to 1\n     */\n\n    public int set(final int holder)\n    {\n        return holder | _mask;\n    }\n\n    /**\n     * Set the bits.\n     *\n     * @param holder the short data containing the bits we're\n     *               interested in\n     *\n     * @return the value of holder with the specified bits set to 1\n     */\n\n    public short setShort(final short holder)\n    {\n        return ( short ) set(holder);\n    }\n\n    /**\n     * Set the bits.\n     *\n     * @param holder the byte data containing the bits we're\n     *               interested in\n     *\n     * @return the value of holder with the specified bits set to 1\n     */\n\n    public byte setByte(final byte holder)\n    {\n        return ( byte ) set(holder);\n    }\n\n    /**\n     * Set a boolean BitField\n     *\n     * @param holder the int data containing the bits we're interested\n     *               in\n     * @param flag indicating whether to set or clear the bits\n     *\n     * @return the value of holder with the specified bits set or\n     *         cleared\n     */\n\n    public int setBoolean(final int holder, final boolean flag)\n    {\n        return flag ? set(holder)\n                    : clear(holder);\n    }\n\n    /**\n     * Set a boolean BitField\n     *\n     * @param holder the short data containing the bits we're\n     *               interested in\n     * @param flag indicating whether to set or clear the bits\n     *\n     * @return the value of holder with the specified bits set or\n     *         cleared\n     */\n\n    public short setShortBoolean(final short holder, final boolean flag)\n    {\n        return flag ? setShort(holder)\n                    : clearShort(holder);\n    }\n\n    /**\n     * Set a boolean BitField\n     *\n     * @param holder the byte data containing the bits we're\n     *               interested in\n     * @param flag indicating whether to set or clear the bits\n     *\n     * @return the value of holder with the specified bits set or\n     *         cleared\n     */\n\n    public byte setByteBoolean(final byte holder, final boolean flag)\n    {\n        return flag ? setByte(holder)\n                    : clearByte(holder);", "functions": [{"function_name": "getValue", "code": "    public int getValue(final int holder)\n    {\n        return getRawValue(holder) >> _shift_count;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getShortValue", "code": "    public short getShortValue(final short holder)\n    {\n        return ( short ) getValue(holder);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRawValue", "code": "    public int getRawValue(final int holder)\n    {\n        return (holder & _mask);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getShortRawValue", "code": "    public short getShortRawValue(final short holder)\n    {\n        return ( short ) getRawValue(holder);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isSet", "code": "    public boolean isSet(final int holder)\n    {\n        return (holder & _mask) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isAllSet", "code": "    public boolean isAllSet(final int holder)\n    {\n        return (holder & _mask) == _mask;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setValue", "code": "    public int setValue(final int holder, final int value)\n    {\n        return (holder & ~_mask) | ((value << _shift_count) & _mask);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setShortValue", "code": "    public short setShortValue(final short holder, final short value)\n    {\n        return ( short ) setValue(holder, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "clear", "code": "    public int clear(final int holder)\n    {\n        return holder & ~_mask;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "clearShort", "code": "    public short clearShort(final short holder)\n    {\n        return ( short ) clear(holder);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "clearByte", "code": "    public byte clearByte(final byte holder)\n    {\n        return ( byte ) clear(holder);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "set", "code": "    public int set(final int holder)\n    {\n        return holder | _mask;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setShort", "code": "    public short setShort(final short holder)\n    {\n        return ( short ) set(holder);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setByte", "code": "    public byte setByte(final byte holder)\n    {\n        return ( byte ) set(holder);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBoolean", "code": "    public int setBoolean(final int holder, final boolean flag)\n    {\n        return flag ? set(holder)\n                    : clear(holder);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setShortBoolean", "code": "    public short setShortBoolean(final short holder, final boolean flag)\n    {\n        return flag ? setShort(holder)\n                    : clearShort(holder);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setByteBoolean", "code": "    public byte setByteBoolean(final byte holder, final boolean flag)\n    {\n        return flag ? setByte(holder)\n                    : clearByte(holder);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "BitField", "code": "    public BitField(final int mask)\n    {\n        _mask = mask;\n        int count       = 0;\n        int bit_pattern = mask;\n\n        if (bit_pattern != 0)\n        {\n            while ((bit_pattern & 1) == 0)\n            {\n                count++;\n                bit_pattern >>= 1;\n            }\n        }\n        _shift_count = count;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [1, 8], [6, 9], [3, 10], [8, 11], [11, 12], [11, 13], [8, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 1], [9, 6], [10, 3], [11, 8], [12, 11], [13, 11], [14, 8], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "xalan-2.6-7714", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/AlternativePattern.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.AlternativePattern", "code": "final class AlternativePattern extends Pattern {\n    private final Pattern _left;\n    private final Pattern _right;\n\t\t\n    /**\n     * Construct an alternative pattern. The method <code>setParent</code>\n     * should not be called in this case.\n     */\n    public AlternativePattern(Pattern left, Pattern right) {\n\t_left = left;\n\t_right = right;\n    }\n\t\t\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_left.setParser(parser);\n\t_right.setParser(parser);\n    }\n    \n    public Pattern getLeft() {\n\treturn _left;\n    }\n\n    public Pattern getRight() {\n\treturn _right;\n    }\n\n    /**\n     * The type of an '|' is not really defined, hence null is returned.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_left.typeCheck(stable);\n\t_right.typeCheck(stable);\n\treturn null;\n    }\n\n    public double getPriority() {\n\tdouble left = _left.getPriority();\n\tdouble right = _right.getPriority();\n\t\n\tif (left < right)\n\t    return(left);\n\telse\n\t    return(right);\n    }\n\n    public String toString() {\n\treturn \"alternative(\" + _left + \", \" + _right + ')';\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\t_left.translate(classGen, methodGen);\n\tfinal InstructionHandle gotot = il.append(new GOTO(null));\n\til.append(methodGen.loadContextNode());\n\t_right.translate(classGen, methodGen);\n\n\t_left._trueList.backPatch(gotot);\n\t_left._falseList.backPatch(gotot.getNext());\n\n\t_trueList.append(_right._trueList.add(gotot));\n\t_falseList.append(_right._falseList);", "functions": [{"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_left.setParser(parser);\n\t_right.setParser(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLeft", "code": "    public Pattern getLeft() {\n\treturn _left;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRight", "code": "    public Pattern getRight() {\n\treturn _right;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_left.typeCheck(stable);\n\t_right.typeCheck(stable);\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getPriority", "code": "    public double getPriority() {\n\tdouble left = _left.getPriority();\n\tdouble right = _right.getPriority();\n\t\n\tif (left < right)\n\t    return(left);\n\telse\n\t    return(right);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"alternative(\" + _left + \", \" + _right + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\t_left.translate(classGen, methodGen);\n\tfinal InstructionHandle gotot = il.append(new GOTO(null));\n\til.append(methodGen.loadContextNode());\n\t_right.translate(classGen, methodGen);\n\n\t_left._trueList.backPatch(gotot);\n\t_left._falseList.backPatch(gotot.getNext());\n\n\t_trueList.append(_right._trueList.add(gotot));\n\t_falseList.append(_right._falseList);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [6, 12], [7, 13], [10, 14], [1, 15], [2, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 6], [13, 7], [14, 10], [15, 1], [16, 2], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "AlternativePattern", "code": "    public AlternativePattern(Pattern left, Pattern right) {\n\t_left = left;\n\t_right = right;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.0-3836", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/browser/BrowserIORequest.java", "language": "java", "name": "org.gjt.sp.jedit.browser.BrowserIORequest", "code": "public class BrowserIORequest extends WorkRequest\n{\n\t//{{{ Request types\n\t/**\n\t * Directory listing I/O request.\n\t */\n\tpublic static final int LIST_DIRECTORY = 0;\n\n\t/**\n\t * Delete file I/O request.\n\t */\n\tpublic static final int DELETE = 1;\n\n\t/**\n\t * Rename file I/O request.\n\t */\n\tpublic static final int RENAME = 2;\n\n\t/**\n\t * Make directory I/O request.\n\t */\n\tpublic static final int MKDIR = 3;\n\t//}}}\n\n\t//{{{ BrowserIORequest constructor\n\t/**\n\t * Creates a new browser I/O request.\n\t * @param type The request type\n\t * @param browser The VFS browser instance\n\t * @param path1 The first path name to operate on\n\t * @param path2 The second path name to operate on\n\t * @param node Only used for type == LIST_DIRECTORY\n\t */\n\tpublic BrowserIORequest(int type, VFSBrowser browser,\n\t\tObject session, VFS vfs, String path1, String path2,\n\t\tDefaultMutableTreeNode node)\n\t{\n\t\tthis.type = type;\n\t\tthis.browser = browser;\n\t\tthis.session = session;\n\t\tthis.vfs = vfs;\n\t\tthis.path1 = path1;\n\t\tthis.path2 = path2;\n\t\tthis.node = node;\n\t} //}}}\n\n\t//{{{ run() method\n\tpublic void run()\n\t{\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\tlistDirectory();\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\tdelete();\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\trename();\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\tmkdir();\n\t\t\tbreak;\n\t\t}\n\n\t\tif(type != LIST_DIRECTORY)\n\t\t\tbrowser.endRequest();\n\t} //}}}\n\n\t//{{{ toString() method\n\tpublic String toString()\n\t{\n\t\tString typeString;\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\ttypeString = \"LIST_DIRECTORY\";\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\ttypeString = \"DELETE\";\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\ttypeString = \"RENAME\";\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\ttypeString = \"MKDIR\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttypeString = \"UNKNOWN!!!\";\n\t\t\tbreak;\n\t\t}\n\n\t\treturn getClass().getName() + \"[type=\" + typeString\n\t\t\t+ \",vfs=\" + vfs + \",path1=\" + path1\n\t\t\t+ \",path2=\" + path2 + \"]\";\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate int type;\n\tprivate VFSBrowser browser;\n\tprivate Object session;\n\tprivate VFS vfs;\n\tprivate String path1;\n\tprivate String path2;\n\tprivate DefaultMutableTreeNode node;\n\t//}}}\n\n\t//{{{ listDirectory() method\n\tprivate void listDirectory()\n\t{\n\t\tVFS.DirectoryEntry[] directory = null;\n\t\tString[] args = { path1 };\n\t\tsetStatus(jEdit.getProperty(\"vfs.status.listing-directory\",args));\n\n\t\tString canonPath = null;\n\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\n\t\t\tcanonPath = vfs._canonPath(session,path1,browser);\n\n\t\t\tdirectory = vfs._listDirectory(session,canonPath,browser);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tsetAbortable(false);\n\t\t\tString[] pp = { io.toString() };\n\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\n\t\tsetAbortable(false);\n\t\tbrowser.directoryLoaded(node,canonPath,directory);\n\t} //}}}\n\n\t//{{{ delete() method\n\tprivate void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.deleting\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\n\t\t\t\tif(!vfs._delete(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.delete-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ rename() method\n\tprivate void rename()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1, path2 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.renaming\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\t\t\t\tpath2 = vfs._canonPath(session,path2,browser);\n\n\t\t\t\tVFS.DirectoryEntry file = vfs._getDirectoryEntry(\n\t\t\t\t\tsession,path2,browser);\n\t\t\t\tif(file != null)\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.rename-exists\",\n\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!vfs._rename(session,path1,path2,browser))\n\t\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.rename-error\",\n\t\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ mkdir() method\n\tprivate void mkdir()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.mkdir\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\t\t\t\tif(!vfs._mkdir(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.mkdir-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\targs[0] = io.toString();\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tString[] args = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);", "functions": [{"function_name": "run", "code": "\tpublic void run()\n\t{\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\tlistDirectory();\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\tdelete();\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\trename();\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\tmkdir();\n\t\t\tbreak;\n\t\t}\n\n\t\tif(type != LIST_DIRECTORY)\n\t\t\tbrowser.endRequest();", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\tString typeString;\n\t\tswitch(type)\n\t\t{\n\t\tcase LIST_DIRECTORY:\n\t\t\ttypeString = \"LIST_DIRECTORY\";\n\t\t\tbreak;\n\t\tcase DELETE:\n\t\t\ttypeString = \"DELETE\";\n\t\t\tbreak;\n\t\tcase RENAME:\n\t\t\ttypeString = \"RENAME\";\n\t\t\tbreak;\n\t\tcase MKDIR:\n\t\t\ttypeString = \"MKDIR\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttypeString = \"UNKNOWN!!!\";\n\t\t\tbreak;\n\t\t}\n\n\t\treturn getClass().getName() + \"[type=\" + typeString\n\t\t\t+ \",vfs=\" + vfs + \",path1=\" + path1\n\t\t\t+ \",path2=\" + path2 + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [12, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [19, 25], [25, 26], [25, 27], [27, 28], [28, 29], [28, 30], [30, 31], [31, 32], [31, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 12], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 19], [26, 25], [27, 25], [28, 27], [29, 28], [30, 28], [31, 30], [32, 31], [33, 31], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "listDirectory", "code": "\tprivate void listDirectory()\n\t{\n\t\tVFS.DirectoryEntry[] directory = null;\n\t\tString[] args = { path1 };\n\t\tsetStatus(jEdit.getProperty(\"vfs.status.listing-directory\",args));\n\n\t\tString canonPath = null;\n\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\n\t\t\tcanonPath = vfs._canonPath(session,path1,browser);\n\n\t\t\tdirectory = vfs._listDirectory(session,canonPath,browser);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tsetAbortable(false);\n\t\t\tString[] pp = { io.toString() };\n\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tsetAbortable(false);\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\n\t\tsetAbortable(false);\n\t\tbrowser.directoryLoaded(node,canonPath,directory);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "TRY", "CATCH", "CATCH", "CALL", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [0, 10], [6, 11], [7, 12], [9, 13], [1, 14], [1, 15], [1, 16], [2, 17], [10, 18], [4, 19], [12, 20], [7, 21], [9, 22], [9, 23], [14, 24], [15, 25], [16, 26], [18, 27], [12, 28], [12, 29], [22, 30], [23, 31], [28, 32], [29, 33], [13, 34], [20, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 0], [11, 6], [12, 7], [13, 9], [14, 1], [15, 1], [16, 1], [17, 2], [18, 10], [19, 4], [20, 12], [21, 7], [22, 9], [23, 9], [24, 14], [25, 15], [26, 16], [27, 18], [28, 12], [29, 12], [30, 22], [31, 23], [32, 28], [33, 29], [34, 13], [35, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "delete", "code": "\tprivate void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.deleting\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\n\t\t\t\tif(!vfs._delete(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.delete-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "CATCH", "TRY", "VAR_DECL", "CATCH", "CATCH", "IF", "CALL", "CALL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [4, 8], [1, 9], [1, 10], [6, 11], [2, 12], [7, 13], [8, 14], [4, 15], [9, 16], [10, 17], [6, 18], [7, 19], [8, 20], [15, 21], [16, 22], [18, 23], [19, 24], [20, 25], [20, 26], [11, 27], [13, 28], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 4], [9, 1], [10, 1], [11, 6], [12, 2], [13, 7], [14, 8], [15, 4], [16, 9], [17, 10], [18, 6], [19, 7], [20, 8], [21, 15], [22, 16], [23, 18], [24, 19], [25, 20], [26, 20], [27, 11], [28, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "rename", "code": "\tprivate void rename()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1, path2 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.renaming\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\t\t\t\tpath2 = vfs._canonPath(session,path2,browser);\n\n\t\t\t\tVFS.DirectoryEntry file = vfs._getDirectoryEntry(\n\t\t\t\t\tsession,path2,browser);\n\t\t\t\tif(file != null)\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.rename-exists\",\n\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(!vfs._rename(session,path1,path2,browser))\n\t\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.rename-error\",\n\t\t\t\t\t\t\tnew String[] { path2 });\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tString[] pp = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror.directory-error\",pp);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "CATCH", "TRY", "VAR_DECL", "CATCH", "CATCH", "IF", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [4, 8], [4, 9], [1, 10], [1, 11], [6, 12], [2, 13], [7, 14], [8, 15], [4, 16], [4, 17], [10, 18], [11, 19], [6, 20], [7, 21], [8, 22], [8, 23], [15, 24], [9, 25], [16, 26], [17, 27], [18, 28], [20, 29], [21, 30], [22, 31], [23, 32], [12, 33], [14, 34], [22, 35], [35, 36], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 4], [9, 4], [10, 1], [11, 1], [12, 6], [13, 2], [14, 7], [15, 8], [16, 4], [17, 4], [18, 10], [19, 11], [20, 6], [21, 7], [22, 8], [23, 8], [24, 15], [25, 9], [26, 16], [27, 17], [28, 18], [29, 20], [30, 21], [31, 22], [32, 23], [33, 12], [34, 14], [35, 22], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "mkdir", "code": "\tprivate void mkdir()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsetAbortable(true);\n\t\t\tString[] args = { path1 };\n\t\t\tsetStatus(jEdit.getProperty(\"vfs.status.mkdir\",args));\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpath1 = vfs._canonPath(session,path1,browser);\n\n\t\t\t\tif(!vfs._mkdir(session,path1,browser))\n\t\t\t\t\tVFSManager.error(browser,path1,\"ioerror.mkdir-error\",null);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\targs[0] = io.toString();\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);\n\t\t\t}\n\t\t}\n\t\tcatch(WorkThread.Abort a)\n\t\t{\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvfs._endVFSSession(session,browser);\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\tString[] args = { io.toString() };\n\t\t\t\tVFSManager.error(browser,path1,\"ioerror\",args);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "CATCH", "TRY", "VAR_DECL", "CATCH", "CATCH", "IF", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [4, 8], [1, 9], [1, 10], [6, 11], [2, 12], [8, 13], [4, 14], [9, 15], [10, 16], [6, 17], [7, 18], [7, 19], [8, 20], [14, 21], [15, 22], [17, 23], [18, 24], [19, 25], [20, 26], [20, 27], [11, 28], [19, 29], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 4], [9, 1], [10, 1], [11, 6], [12, 2], [13, 8], [14, 4], [15, 9], [16, 10], [17, 6], [18, 7], [19, 7], [20, 8], [21, 14], [22, 15], [23, 17], [24, 18], [25, 19], [26, 20], [27, 20], [28, 11], [29, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "BrowserIORequest", "code": "\tpublic BrowserIORequest(int type, VFSBrowser browser,\n\t\tObject session, VFS vfs, String path1, String path2,\n\t\tDefaultMutableTreeNode node)\n\t{\n\t\tthis.type = type;\n\t\tthis.browser = browser;\n\t\tthis.session = session;\n\t\tthis.vfs = vfs;\n\t\tthis.path1 = path1;\n\t\tthis.path2 = path2;\n\t\tthis.node = node;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "camel-1.0-1517", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/builder/RouteBuilder.java", "language": "java", "name": "org.apache.camel.builder.RouteBuilder", "code": "public abstract class RouteBuilder extends BuilderSupport {\n    private List<FromBuilder> fromBuilders = new ArrayList<FromBuilder>();\n    private AtomicBoolean initalized = new AtomicBoolean(false);\n    private List<Route> routes = new ArrayList<Route>();\n\n    protected RouteBuilder() {\n        this(null);\n    }\n\n    protected RouteBuilder(CamelContext context) {\n        super(context);\n    }\n\n    /**\n     * Called on initialization to to build the required destinationBuilders\n     */\n    public abstract void configure() throws Exception;\n\n    @Fluent\n    public FromBuilder from( @FluentArg(\"uri\") String uri) {\n    \tif( uri == null ) {\n    \t\tthrow new IllegalArgumentException(\"uri parameter cannot be null\");\n    \t}\n    \tEndpoint endpoint = endpoint(uri);\n    \tif( endpoint == null ) {\n    \t\tthrow new IllegalArgumentException(\"uri '\"+uri+\"' could not be resolved.\");\n    \t}\n        return from(endpoint);\n    }\n\n    @Fluent\n    public FromBuilder from( @FluentArg(\"ref\") Endpoint endpoint) {\n        FromBuilder answer = new FromBuilder(this, endpoint);\n        addFromBuilder(answer);\n        return answer;\n    }\n\n    /**\n     * Installs the given error handler builder\n     *\n     * @param errorHandlerBuilder the error handler to be used by default for all child routes\n     * @return the current builder with the error handler configured\n     */\n    public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder) {\n        setErrorHandlerBuilder(errorHandlerBuilder);\n        return this;\n    }\n\n    /**\n     * Configures whether or not the error handler is inherited by every processing node (or just the top most one)\n     *\n     * @param value the flag as to whether error handlers should be inherited or not\n     * @return the current builder\n     */\n    public RouteBuilder inheritErrorHandler(boolean value) {\n        setInheritErrorHandler(value);\n        return this;\n    }\n\n    public CamelContext getContext() {\n        CamelContext context = super.getContext();\n        if (context == null) {\n            context = createContainer();\n            setContext(context);\n        }\n        return context;\n    }\n\n    /**\n     * Returns the routing map from inbound endpoints to processors\n     */\n    public List<Route> getRouteList() throws Exception {\n        checkInitialized();\n        return routes;\n    }\n\n    /**\n     * Returns the builders which have been created\n     */\n    public List<FromBuilder> getFromBuilders() throws Exception {\n        checkInitialized();\n        return fromBuilders;\n    }\n\n    public void addFromBuilder(FromBuilder answer) {\n        fromBuilders.add(answer);\n    }\n\n    protected void checkInitialized() throws Exception {\n        if (initalized.compareAndSet(false, true)) {\n            configure();\n            populateRoutes(routes);\n        }\n    }\n\n    protected void populateRoutes(List<Route> routes) throws Exception {\n        for (FromBuilder builder : fromBuilders) {\n            Route route = builder.createRoute();\n            routes.add(route);\n        }\n    }\n\n    /**\n     * Factory method\n     */\n    protected CamelContext createContainer() {\n        return new DefaultCamelContext();", "functions": [{"function_name": "configure", "code": "    public abstract void configure() throws Exception;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "from", "code": "    @Fluent\n    public FromBuilder from( @FluentArg(\"uri\") String uri) {\n    \tif( uri == null ) {\n    \t\tthrow new IllegalArgumentException(\"uri parameter cannot be null\");\n    \t}\n    \tEndpoint endpoint = endpoint(uri);\n    \tif( endpoint == null ) {\n    \t\tthrow new IllegalArgumentException(\"uri '\"+uri+\"' could not be resolved.\");\n    \t}\n        return from(endpoint);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [5, 9], [2, 10], [7, 11], [3, 12], [4, 13], [8, 14], [10, 15], [13, 16], [15, 17], [16, 18], [17, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 5], [10, 2], [11, 7], [12, 3], [13, 4], [14, 8], [15, 10], [16, 13], [17, 15], [18, 16], [19, 17], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "from", "code": "    @Fluent\n    public FromBuilder from( @FluentArg(\"ref\") Endpoint endpoint) {\n        FromBuilder answer = new FromBuilder(this, endpoint);\n        addFromBuilder(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "errorHandler", "code": "    public RouteBuilder errorHandler(ErrorHandlerBuilder errorHandlerBuilder) {\n        setErrorHandlerBuilder(errorHandlerBuilder);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "inheritErrorHandler", "code": "    public RouteBuilder inheritErrorHandler(boolean value) {\n        setInheritErrorHandler(value);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getContext", "code": "    public CamelContext getContext() {\n        CamelContext context = super.getContext();\n        if (context == null) {\n            context = createContainer();\n            setContext(context);\n        }\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getRouteList", "code": "    public List<Route> getRouteList() throws Exception {\n        checkInitialized();\n        return routes;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFromBuilders", "code": "    public List<FromBuilder> getFromBuilders() throws Exception {\n        checkInitialized();\n        return fromBuilders;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFromBuilder", "code": "    public void addFromBuilder(FromBuilder answer) {\n        fromBuilders.add(answer);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "checkInitialized", "code": "    protected void checkInitialized() throws Exception {\n        if (initalized.compareAndSet(false, true)) {\n            configure();\n            populateRoutes(routes);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 5], [1, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "populateRoutes", "code": "    protected void populateRoutes(List<Route> routes) throws Exception {\n        for (FromBuilder builder : fromBuilders) {\n            Route route = builder.createRoute();\n            routes.add(route);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createContainer", "code": "    protected CamelContext createContainer() {\n        return new DefaultCamelContext();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RouteBuilder", "code": "    protected RouteBuilder() {\n        this(null);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RouteBuilder", "code": "    protected RouteBuilder(CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8061", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/processor/StylesheetHandler.java", "language": "java", "name": "org.apache.xalan.processor.StylesheetHandler", "code": "public class StylesheetHandler extends DefaultHandler\n        implements TemplatesHandler, PrefixResolver, NodeConsumer\n{\n\n\n  /**\n   * The function table of XPath and XSLT;\n   */\n  private FunctionTable m_funcTable = new FunctionTable();\n  \n  /**\n   * The flag for the setting of the optimize feature;\n   */\n  private boolean m_optimize = true;\n  \n  /**\n   * The flag for the setting of the incremental feature;\n   */\n  private boolean m_incremental = false;\n  \n  /**\n   * The flag for the setting of the source_location feature;\n   */\n  private boolean m_source_location = false;\n  \n  /**\n   * Create a StylesheetHandler object, creating a root stylesheet\n   * as the target.\n   *\n   * @param processor non-null reference to the transformer factory that owns this handler.\n   *\n   * @throws TransformerConfigurationException if a StylesheetRoot\n   * can not be constructed for some reason.\n   */\n  public StylesheetHandler(TransformerFactoryImpl processor)\n          throws TransformerConfigurationException\n  {\n    Class func = org.apache.xalan.templates.FuncDocument.class;\n    m_funcTable.installFunction(\"document\", func);\n\n    func = org.apache.xalan.templates.FuncFormatNumb.class;\n\n    m_funcTable.installFunction(\"format-number\", func);\n\n    m_optimize =((Boolean) processor.getAttribute(\n            TransformerFactoryImpl.FEATURE_OPTIMIZE)).booleanValue();\n    m_incremental = ((Boolean) processor.getAttribute(\n            TransformerFactoryImpl.FEATURE_INCREMENTAL)).booleanValue();\n    m_source_location = ((Boolean) processor.getAttribute(\n            TransformerFactoryImpl.FEATURE_SOURCE_LOCATION)).booleanValue();\n    init(processor);\n    \n  }\n\n  /**\n   * Do common initialization.\n   *\n   * @param processor non-null reference to the transformer factory that owns this handler.\n   */\n  void init(TransformerFactoryImpl processor)\n  {\n    m_stylesheetProcessor = processor;\n\n    m_processors.push(m_schema.getElementProcessor());\n    this.pushNewNamespaceSupport();\n\n  }\n\n  /**\n   * Process an expression string into an XPath.\n   * Must be public for access by the AVT class.\n   *\n   * @param str A non-null reference to a valid or invalid XPath expression string.\n   *\n   * @return A non-null reference to an XPath object that represents the string argument.\n   *\n   * @throws javax.xml.transform.TransformerException if the expression can not be processed.\n   */\n  public XPath createXPath(String str, ElemTemplateElement owningTemplate)\n          throws javax.xml.transform.TransformerException\n  {\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    XPath xpath = new XPath(str, owningTemplate, this, XPath.SELECT, handler, \n            m_funcTable);\n    xpath.callVisitors(xpath, new ExpressionVisitor(getStylesheetRoot()));\n    return xpath;\n  }\n\n  /**\n   * Process an expression string into an XPath.\n   *\n   * @param str A non-null reference to a valid or invalid match pattern string.\n   *\n   * @return A non-null reference to an XPath object that represents the string argument.\n   *\n   * @throws javax.xml.transform.TransformerException if the pattern can not be processed.\n   */\n  XPath createMatchPatternXPath(String str, ElemTemplateElement owningTemplate)\n          throws javax.xml.transform.TransformerException\n  {\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    XPath xpath = new XPath(str, owningTemplate, this, XPath.MATCH, handler, \n        m_funcTable);\n    xpath.callVisitors(xpath, new ExpressionVisitor(getStylesheetRoot()));\n    return xpath;    \n  }\n\n  /**\n   * Given a namespace, get the corrisponding prefix from the current\n   * namespace support context.\n   *\n   * @param prefix The prefix to look up, which may be an empty string (\"\") for the default Namespace.\n   *\n   * @return The associated Namespace URI, or null if the prefix\n   *         is undeclared in this context.\n   */\n  public String getNamespaceForPrefix(String prefix)\n  {\n    return this.getNamespaceSupport().getURI(prefix);\n  }\n\n  /**\n   * Given a namespace, get the corrisponding prefix.  This is here only\n   * to support the {@link org.apache.xml.utils.PrefixResolver} interface,\n   * and will throw an error if invoked on this object.\n   *\n   * @param prefix The prefix to look up, which may be an empty string (\"\") for the default Namespace.\n   * @param context The node context from which to look up the URI.\n   *\n   * @return The associated Namespace URI, or null if the prefix\n   *         is undeclared in this context.\n   */\n  public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context)\n  {\n\n    assertion(true, \"can't process a context node in StylesheetHandler!\");\n\n    return null;\n  }\n\n  /**\n   * Utility function to see if the stack contains the given URL.\n   *\n   * @param stack non-null reference to a Stack.\n   * @param url URL string on which an equality test will be performed.\n   *\n   * @return true if the stack contains the url argument.\n   */\n  private boolean stackContains(Stack stack, String url)\n  {\n\n    int n = stack.size();\n    boolean contains = false;\n\n    for (int i = 0; i < n; i++)\n    {\n      String url2 = (String) stack.elementAt(i);\n\n      if (url2.equals(url))\n      {\n        contains = true;\n\n        break;\n      }\n    }\n\n    return contains;\n  }\n\n\n  /**\n   * When this object is used as a ContentHandler or ContentHandler, it will\n   * create a Templates object, which the caller can get once\n   * the SAX events have been completed.\n   * @return The stylesheet object that was created during\n   * the SAX event process, or null if no stylesheet has\n   * been created.\n   * \n   * Author <a href=\"mailto:scott_boag@lotus.com\">Scott Boag</a>\n   *\n   *\n   */\n  public Templates getTemplates()\n  {\n    return getStylesheetRoot();\n  }\n\n  /**\n   * Set the base ID (URL or system ID) for the stylesheet\n   * created by this builder.  This must be set in order to\n   * resolve relative URLs in the stylesheet.\n   *\n   * @param baseID Base URL for this stylesheet.\n   */\n  public void setSystemId(String baseID)\n  {\n    pushBaseIndentifier(baseID);\n  }\n\n  /**\n   * Get the base ID (URI or system ID) from where relative\n   * URLs will be resolved.\n   *\n   * @return The systemID that was set with {@link #setSystemId}.\n   */\n  public String getSystemId()\n  {\n    return this.getBaseIdentifier();\n  }\n\n\n  /**\n   * Resolve an external entity.\n   *\n   * @param publicId The public identifer, or null if none is\n   *                 available.\n   * @param systemId The system identifier provided in the XML\n   *                 document.\n   * @return The new input source, or null to require the\n   *         default behaviour.\n   *\n   * @throws org.xml.sax.SAXException if the entity can not be resolved.\n   */\n  public InputSource resolveEntity(String publicId, String systemId)\n          throws org.xml.sax.SAXException\n  {\n    return getCurrentProcessor().resolveEntity(this, publicId, systemId);\n  }\n\n\n  /**\n   * Receive notification of a notation declaration.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass if they wish to keep track of the notations\n   * declared in a document.</p>\n   *\n   * @param name The notation name.\n   * @param publicId The notation public identifier, or null if not\n   *                 available.\n   * @param systemId The notation system identifier.\n   * @see org.xml.sax.DTDHandler#notationDecl\n   */\n  public void notationDecl(String name, String publicId, String systemId)\n  {\n    getCurrentProcessor().notationDecl(this, name, publicId, systemId);\n  }\n\n  /**\n   * Receive notification of an unparsed entity declaration.\n   *\n   * @param name The entity name.\n   * @param publicId The entity public identifier, or null if not\n   *                 available.\n   * @param systemId The entity system identifier.\n   * @param notationName The name of the associated notation.\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void unparsedEntityDecl(String name, String publicId,\n                                 String systemId, String notationName)\n  {\n    getCurrentProcessor().unparsedEntityDecl(this, name, publicId, systemId,\n                                             notationName);\n  }\n\n  /**\n   * Given a namespace URI, and a local name or a node type, get the processor\n   * for the element, or return null if not allowed.\n   *\n   * @param uri The Namespace URI, or an empty string.\n   * @param localName The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   *\n   * @return A non-null reference to a element processor.\n   *\n   * @throws org.xml.sax.SAXException if the element is not allowed in the\n   * found position in the stylesheet.\n   */\n  XSLTElementProcessor getProcessorFor(\n          String uri, String localName, String rawName)\n            throws org.xml.sax.SAXException\n  {\n\n    XSLTElementProcessor currentProcessor = getCurrentProcessor();\n    XSLTElementDef def = currentProcessor.getElemDef();\n    XSLTElementProcessor elemProcessor = def.getProcessorFor(uri, localName);\n\n    if (null == elemProcessor\n            && !(currentProcessor instanceof ProcessorStylesheetDoc)\n            && ((null == getStylesheet()\n                || Double.valueOf(getStylesheet().getVersion()).doubleValue()\n                   > Constants.XSLTVERSUPPORTED) \n                ||(!uri.equals(Constants.S_XSLNAMESPACEURL) &&\n                            currentProcessor instanceof ProcessorStylesheetElement)\n                || getElemVersion() > Constants.XSLTVERSUPPORTED\n        ))\n    {\n      elemProcessor = def.getProcessorForUnknown(uri, localName);\n    }\n\n    if (null == elemProcessor)\n            \n                \n    return elemProcessor;\n  }\n\n\n  /**\n   * Receive a Locator object for document events.\n   * This is called by the parser to push a locator for the\n   * stylesheet being parsed. The stack needs to be popped\n   * after the stylesheet has been parsed. We pop in\n   * popStylesheet.\n   *\n   * @param locator A locator for all SAX document events.\n   * @see org.xml.sax.ContentHandler#setDocumentLocator\n   * @see org.xml.sax.Locator\n   */\n  public void setDocumentLocator(Locator locator)\n  {\n\n    m_stylesheetLocatorStack.push(new SAXSourceLocator(locator));\n  }\n\n  /**\n   * The level of the stylesheet we are at.\n   */\n  private int m_stylesheetLevel = -1;\n\n  /**\n   * Receive notification of the beginning of the document.\n   *\n   * @see org.xml.sax.ContentHandler#startDocument\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void startDocument() throws org.xml.sax.SAXException\n  {\n    m_stylesheetLevel++;\n    pushSpaceHandling(false);\n  }\n\n  /** m_parsingComplete becomes true when the top-level stylesheet and all\n   * its included/imported stylesheets have been been fully parsed, as an\n   * indication that composition/optimization/compilation can begin.\n   * @see isStylesheetParsingComplete  */\n  private boolean m_parsingComplete = false;\n\n  /**\n   * Test whether the _last_ endDocument() has been processed.\n   * This is needed as guidance for stylesheet optimization\n   * and compilation engines, which generally don't want to start\n   * until all included and imported stylesheets have been fully\n   * parsed.\n   *\n   * @return true iff the complete stylesheet tree has been built.\n   */\n  public boolean isStylesheetParsingComplete()\n  {\n    return m_parsingComplete;\n  }\n\n  /**\n   * Receive notification of the end of the document.\n   *\n   * @see org.xml.sax.ContentHandler#endDocument\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void endDocument() throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      if (null != getStylesheetRoot())\n      {\n        if (0 == m_stylesheetLevel)\n          getStylesheetRoot().recompose();        \n      }\n      else{}\n\n      XSLTElementProcessor elemProcessor = getCurrentProcessor();\n\n      if (null != elemProcessor)\n        elemProcessor.startNonText(this);\n\n      m_stylesheetLevel--;\t\t\t\n      \n      popSpaceHandling();\n\n      m_parsingComplete = (m_stylesheetLevel < 0);\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n  \n  private java.util.Vector m_prefixMappings = new java.util.Vector();\n\n  /**\n   * Receive notification of the start of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each element (such as allocating a new tree node or writing\n   * output to a file).</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @param uri The Namespace URI mapped to the prefix.\n   * @see org.xml.sax.ContentHandler#startPrefixMapping\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void startPrefixMapping(String prefix, String uri)\n          throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of the end of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each element (such as allocating a new tree node or writing\n   * output to a file).</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @see org.xml.sax.ContentHandler#endPrefixMapping\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void endPrefixMapping(String prefix) throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Flush the characters buffer.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  private void flushCharacters() throws org.xml.sax.SAXException\n  {\n\n    XSLTElementProcessor elemProcessor = getCurrentProcessor();\n\n    if (null != elemProcessor)\n      elemProcessor.startNonText(this);\n  }\n\n  /**\n   * Receive notification of the start of an element.\n   *\n   * @param uri The Namespace URI, or an empty string.\n   * @param localName The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param attributes The specified or defaulted attributes.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void startElement(\n          String uri, String localName, String rawName, Attributes attributes)\n            throws org.xml.sax.SAXException\n  {\n    NamespaceSupport nssupport = this.getNamespaceSupport();\n    nssupport.pushContext();\n    \n    int n = m_prefixMappings.size();\n\n    for (int i = 0; i < n; i++) \n    {\n      String prefix = (String)m_prefixMappings.elementAt(i++);\n      String nsURI = (String)m_prefixMappings.elementAt(i);\n      nssupport.declarePrefix(prefix, nsURI);\n    }\n\n    m_elementID++;\n\n\n    checkForFragmentID(attributes);\n\n    if (!m_shouldProcess)\n      return;\n\n    flushCharacters();\n    \n    pushSpaceHandling(attributes);\n\n    XSLTElementProcessor elemProcessor = getProcessorFor(uri, localName,\n                                           rawName);\n\n    if(true){\n      this.pushProcessor(elemProcessor);\n      elemProcessor.startElement(this, uri, localName, rawName, attributes);\n    }\n    else\n    {\n      m_shouldProcess = false;\n      popSpaceHandling();\n    }\n                \n  }\n\n  /**\n   * Receive notification of the end of an element.\n   *\n   * @param uri The Namespace URI, or an empty string.\n   * @param localName The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @see org.xml.sax.ContentHandler#endElement\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void endElement(String uri, String localName, String rawName)\n          throws org.xml.sax.SAXException\n  {\n\n    m_elementID--;\n\n    if (!m_shouldProcess)\n      return;\n\n    if ((m_elementID + 1) == m_fragmentID)\n      m_shouldProcess = false;\n\n    flushCharacters();\n    \n    popSpaceHandling();\n\n    XSLTElementProcessor p = getCurrentProcessor();\n\n    p.endElement(this, uri, localName, rawName);\n    this.popProcessor();\n    this.getNamespaceSupport().popContext();\n  }\n\n  /**\n   * Receive notification of character data inside an element.\n   *\n   * @param ch The characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @see org.xml.sax.ContentHandler#characters\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void characters(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    XSLTElementProcessor elemProcessor = getCurrentProcessor();\n    XSLTElementDef def = elemProcessor.getElemDef();\n\n    if (def.getType() != XSLTElementDef.T_PCDATA)\n      elemProcessor = def.getProcessorFor(null, \"text()\");\n\n    if (null == elemProcessor)\n    {\n\n      if (!XMLCharacterRecognizer.isWhiteSpace(ch, start, length)){}\n       \n    }\n    else\n      elemProcessor.characters(this, ch, start, length);\n  }\n\n  /**\n   * Receive notification of ignorable whitespace in element content.\n   *\n   * @param ch The whitespace characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @see org.xml.sax.ContentHandler#ignorableWhitespace\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void ignorableWhitespace(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    getCurrentProcessor().ignorableWhitespace(this, ch, start, length);\n  }\n\n  /**\n   * Receive notification of a processing instruction.\n   *\n   * <p>The Parser will invoke this method once for each processing\n   * instruction found: note that processing instructions may occur\n   * before or after the main document element.</p>\n   *\n   * <p>A SAX parser should never report an XML declaration (XML 1.0,\n   * section 2.8) or a text declaration (XML 1.0, section 4.3.1)\n   * using this method.</p>\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param target The processing instruction target.\n   * @param data The processing instruction data, or null if\n   *             none is supplied.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void processingInstruction(String target, String data)\n          throws org.xml.sax.SAXException\n  {\n    if (!m_shouldProcess)\n      return;\n\n    \n    String prefix=\"\",ns=\"\", localName=target;\n    int colon=target.indexOf(':');\n    if(colon>=0)\n    {\n      ns=getNamespaceForPrefix(prefix=target.substring(0,colon));\n      localName=target.substring(colon+1);\n    }\n\n    try\n    {\n      if(\n        \"xalan-doc-cache-off\".equals(target) ||\n        \"xalan:doc-cache-off\".equals(target) ||\n\t   (\"doc-cache-off\".equals(localName) &&\n\t    ns.equals(\"org.apache.xalan.xslt.extensions.Redirect\") )\n\t )\n      {\n\tif(!(m_elems.peek() instanceof ElemForEach))\n          throw new TransformerException\n\t    (\"xalan:doc-cache-off not allowed here!\", \n\t     getLocator());\n        ElemForEach elem = (ElemForEach)m_elems.peek();\n\n        elem.m_doc_cache_off = true;\n\n      }\n    }\n    catch(Exception e)\n    {\n    }\n\n\n    flushCharacters();\n    getCurrentProcessor().processingInstruction(this, target, data);\n  }\n\n  /**\n   * Receive notification of a skipped entity.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param name The name of the skipped entity.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void skippedEntity(String name) throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    getCurrentProcessor().skippedEntity(this, name);\n  }\n\n  /**\n   * Warn the user of an problem.\n   *\n   * @param msg An key into the {@link org.apache.xalan.res.XSLTErrorResources}\n   * table, that is one of the WG_ prefixed definitions.\n   * @param args An array of arguments for the given warning.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#warning}\n   * method chooses to flag this condition as an error.\n   * @xsl.usage internal\n   */\n  public void warn(String msg, Object args[]) throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = XSLMessages.createWarning(msg, args);\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      if (null != handler)\n        handler.warning(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * Assert that a condition is true.  If it is not true, throw an error.\n   *\n   * @param condition false if an error should not be thrown, otherwise true.\n   * @param msg Error message to be passed to the RuntimeException as an\n   * argument.\n   * @throws RuntimeException if the condition is not true.\n   * @xsl.usage internal\n   */\n  private void assertion(boolean condition, String msg) throws RuntimeException\n  {\n    if (!condition)\n      throw new RuntimeException(msg);\n  }\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg An error message.\n   * @param e An error which the SAXException should wrap.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#error}\n   * method chooses to flag this condition as an error.\n   * @xsl.usage internal\n   */\n  protected void error(String msg, Exception e)\n          throws org.xml.sax.SAXException\n  {\n\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    TransformerException pe;\n\n    if (!(e instanceof TransformerException))\n    {\n      pe = (null == e)\n           ? new TransformerException(msg, locator)\n           : new TransformerException(msg, locator, e);\n    }\n    else\n      pe = (TransformerException) e;\n\n    if (null != handler)\n    {\n      try\n      {\n        handler.error(pe);\n      }\n      catch (TransformerException te)\n      {\n        throw new org.xml.sax.SAXException(te);\n      }\n    }\n    else\n      throw new org.xml.sax.SAXException(pe);\n  }\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg A key into the {@link org.apache.xalan.res.XSLTErrorResources}\n   * table, that is one of the WG_ prefixed definitions.\n   * @param args An array of arguments for the given warning.\n   * @param e An error which the SAXException should wrap.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#error}\n   * method chooses to flag this condition as an error.\n   * @xsl.usage internal\n   */\n  protected void error(String msg, Object args[], Exception e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = XSLMessages.createMessage(msg, args);\n\n    error(formattedMsg, e);\n  }\n\n  /**\n   * Receive notification of a XSLT processing warning.\n   *\n   * @param e The warning information encoded as an exception.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#warning}\n   * method chooses to flag this condition as an error.\n   */\n  public void warning(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.warning(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * Receive notification of a recoverable XSLT processing error.\n   *\n   * @param e The error information encoded as an exception.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#error}\n   * method chooses to flag this condition as an error.\n   */\n  public void error(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.error(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * Report a fatal XSLT processing error.\n   *\n   * @param e The error information encoded as an exception.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#fatalError}\n   * method chooses to flag this condition as an error.\n   */\n  public void fatalError(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.fatalError(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * If we have a URL to a XML fragment, this is set\n   * to false until the ID is found.\n   * (warning: I worry that this should be in a stack).\n   */\n  private boolean m_shouldProcess = true;\n\n  /**\n   * If we have a URL to a XML fragment, the value is stored\n   * in this string, and the m_shouldProcess flag is set to\n   * false until we match an ID with this string.\n   * (warning: I worry that this should be in a stack).\n   */\n  private String m_fragmentIDString;\n\n  /**\n   * Keep track of the elementID, so we can tell when\n   * is has completed.  This isn't a real ID, but rather\n   * a nesting level.  However, it's good enough for\n   * our purposes.\n   * (warning: I worry that this should be in a stack).\n   */\n  private int m_elementID = 0;\n\n  /**\n   * The ID of the fragment that has been found\n   * (warning: I worry that this should be in a stack).\n   */\n  private int m_fragmentID = 0;\n\n  /**\n   * Check to see if an ID attribute matched the #id, called\n   * from startElement.\n   *\n   * @param attributes The specified or defaulted attributes.\n   */\n  private void checkForFragmentID(Attributes attributes)\n  {\n\n    if (!m_shouldProcess)\n    {\n      if ((null != attributes) && (null != m_fragmentIDString))\n      {\n        int n = attributes.getLength();\n\n        for (int i = 0; i < n; i++)\n        {\n          String name = attributes.getQName(i);\n\n          if (name.equals(Constants.ATTRNAME_ID))\n          {\n            String val = attributes.getValue(i);\n\n            if (val.equalsIgnoreCase(m_fragmentIDString))\n            {\n              m_shouldProcess = true;\n              m_fragmentID = m_elementID;\n            }\n          }\n        }\n      }\n    }\n  }\n\n  /**\n   *  The XSLT TransformerFactory for needed services.\n   */\n  private TransformerFactoryImpl m_stylesheetProcessor;\n\n  /**\n   * Get the XSLT TransformerFactoryImpl for needed services.\n   * TODO: This method should be renamed.\n   *\n   * @return The TransformerFactoryImpl that owns this handler.\n   */\n  public TransformerFactoryImpl getStylesheetProcessor()\n  {\n    return m_stylesheetProcessor;\n  }\n\n  /**\n   * If getStylesheetType returns this value, the current stylesheet\n   *  is a root stylesheet.\n   * @xsl.usage internal\n   */\n  public static final int STYPE_ROOT = 1;\n\n  /**\n   * If getStylesheetType returns this value, the current stylesheet\n   *  is an included stylesheet.\n   * @xsl.usage internal\n   */\n  public static final int STYPE_INCLUDE = 2;\n\n  /**\n   * If getStylesheetType returns this value, the current stylesheet\n   *  is an imported stylesheet.\n   * @xsl.usage internal\n   */\n  public static final int STYPE_IMPORT = 3;\n\n  /** The current stylesheet type. */\n  private int m_stylesheetType = STYPE_ROOT;\n\n  /**\n   * Get the type of stylesheet that should be built\n   * or is being processed.\n   *\n   * @return one of STYPE_ROOT, STYPE_INCLUDE, or STYPE_IMPORT.\n   */\n  int getStylesheetType()\n  {\n    return m_stylesheetType;\n  }\n\n  /**\n   * Set the type of stylesheet that should be built\n   * or is being processed.\n   *\n   * @param type Must be one of STYPE_ROOT, STYPE_INCLUDE, or STYPE_IMPORT.\n   */\n  void setStylesheetType(int type)\n  {\n    m_stylesheetType = type;\n  }\n\n  /**\n   * The stack of stylesheets being processed.\n   */\n  private Stack m_stylesheets = new Stack();\n\n  /**\n   * Return the stylesheet that this handler is constructing.\n   *\n   * @return The current stylesheet that is on top of the stylesheets stack,\n   *  or null if no stylesheet is on the stylesheets stack.\n   */\n  Stylesheet getStylesheet()\n  {\n    return (m_stylesheets.size() == 0)\n           ? null : (Stylesheet) m_stylesheets.peek();\n  }\n\n  /**\n   * Return the last stylesheet that was popped off the stylesheets stack.\n   *\n   * @return The last popped stylesheet, or null.\n   */\n  Stylesheet getLastPoppedStylesheet()\n  {\n    return m_lastPoppedStylesheet;\n  }\n\n  /**\n   * Return the stylesheet root that this handler is constructing.\n   *\n   * @return The root stylesheet of the stylesheets tree.\n   */\n  public StylesheetRoot getStylesheetRoot()\n  {\n    if (m_stylesheetRoot != null){\n        m_stylesheetRoot.setOptimizer(m_optimize);\n        m_stylesheetRoot.setIncremental(m_incremental);\n        m_stylesheetRoot.setSource_location(m_source_location);  \t\t\n    }\n    return m_stylesheetRoot;\n  }\n\n  /** The root stylesheet of the stylesheets tree. */\n  StylesheetRoot m_stylesheetRoot;\n        \n        /** The last stylesheet that was popped off the stylesheets stack. */\n  Stylesheet m_lastPoppedStylesheet;\n\n  /**\n   * Push the current stylesheet being constructed. If no other stylesheets\n   * have been pushed onto the stack, assume the argument is a stylesheet\n   * root, and also set the stylesheet root member.\n   *\n   * @param s non-null reference to a stylesheet.\n   */\n  public void pushStylesheet(Stylesheet s)\n  {\n\n    if (m_stylesheets.size() == 0)\n      m_stylesheetRoot = (StylesheetRoot) s;\n\n    m_stylesheets.push(s);\n  }\n\n  /**\n   * Pop the last stylesheet pushed, and return the stylesheet that this\n   * handler is constructing, and set the last popped stylesheet member.\n   * Also pop the stylesheet locator stack.\n   *\n   * @return The stylesheet popped off the stack, or the last popped stylesheet.\n   */\n  Stylesheet popStylesheet()\n  {\n\n    if (!m_stylesheetLocatorStack.isEmpty())\n      m_stylesheetLocatorStack.pop();\n\n    if (!m_stylesheets.isEmpty())\n      m_lastPoppedStylesheet = (Stylesheet) m_stylesheets.pop();\n\n    return m_lastPoppedStylesheet;\n  }\n\n  /**\n   * The stack of current processors.\n   */\n  private Stack m_processors = new Stack();\n\n  /**\n   * Get the current XSLTElementProcessor at the top of the stack.\n   *\n   * @return Valid XSLTElementProcessor, which should never be null.\n   */\n  XSLTElementProcessor getCurrentProcessor()\n  {\n    return (XSLTElementProcessor) m_processors.peek();\n  }\n\n  /**\n   * Push the current XSLTElementProcessor onto the top of the stack.\n   *\n   * @param processor non-null reference to the current element processor.\n   */\n  void pushProcessor(XSLTElementProcessor processor)\n  {\n    m_processors.push(processor);\n  }\n\n  /**\n   * Pop the current XSLTElementProcessor from the top of the stack.\n   * @return the XSLTElementProcessor which was popped.\n   */\n  XSLTElementProcessor popProcessor()\n  {\n    return (XSLTElementProcessor) m_processors.pop();\n  }\n\n  /**\n   * The root of the XSLT Schema, which tells us how to\n   * transition content handlers, create elements, etc.\n   * For the moment at least, this can't be static, since\n   * the processors store state.\n   */\n  private XSLTSchema m_schema = new XSLTSchema();\n\n  /**\n   * Get the root of the XSLT Schema, which tells us how to\n   * transition content handlers, create elements, etc.\n   *\n   * @return The root XSLT Schema, which should never be null.\n   * @xsl.usage internal\n   */\n  public XSLTSchema getSchema()\n  {\n    return m_schema;\n  }\n\n  /**\n   * The stack of elements, pushed and popped as events occur.\n   */\n  private Stack m_elems = new Stack();\n\n  /**\n   * Get the current ElemTemplateElement at the top of the stack.\n   * @return Valid ElemTemplateElement, which may be null.\n   */\n  ElemTemplateElement getElemTemplateElement()\n  {\n\n    try\n    {\n      return (ElemTemplateElement) m_elems.peek();\n    }\n    catch (java.util.EmptyStackException ese)\n    {\n      return null;\n    }\n  }  \n\n  /** An increasing number that is used to indicate the order in which this element\n   *  was encountered during the parse of the XSLT tree.\n   */\n  private int m_docOrderCount = 0;\n\n  /**\n   * Returns the next m_docOrderCount number and increments the number for future use.\n   */\n  int nextUid()\n  {\n    return m_docOrderCount++;\n  }\n\n  /**\n   * Push the current XSLTElementProcessor to the top of the stack.  As a\n   * side-effect, set the document order index (simply because this is a\n   * convenient place to set it).\n   *\n   * @param elem Should be a non-null reference to the intended current\n   * template element.\n   */\n  void pushElemTemplateElement(ElemTemplateElement elem)\n  {\n\n    if (elem.getUid() == -1)\n      elem.setUid(nextUid());\n\n    m_elems.push(elem);\n  }\n\n  /**\n   * Get the current XSLTElementProcessor from the top of the stack.\n   * @return the ElemTemplateElement which was popped.\n   */\n  ElemTemplateElement popElemTemplateElement()\n  {\n    return (ElemTemplateElement) m_elems.pop();\n  }\n\n  /**\n   * This will act as a stack to keep track of the\n   * current include base.\n   */\n  Stack m_baseIdentifiers = new Stack();\n\n  /**\n   * Push a base identifier onto the base URI stack.\n   *\n   * @param baseID The current base identifier for this position in the\n   * stylesheet, which may be a fragment identifier, or which may be null.\n   * Section 3.2 Base URI of XSLT specification.</a>\n   */\n  void pushBaseIndentifier(String baseID)\n  {\n\n    if (null != baseID)\n    {\n      int posOfHash = baseID.indexOf('#');\n\n      if (posOfHash > -1)\n      {\n        m_fragmentIDString = baseID.substring(posOfHash + 1);\n        m_shouldProcess = false;\n      }\n      else\n        m_shouldProcess = true;\n    }\n    else\n      m_shouldProcess = true;\n\n    m_baseIdentifiers.push(baseID);\n  }\n\n  /**\n   * Pop a base URI from the stack.\n   * @return baseIdentifier.\n   */\n  String popBaseIndentifier()\n  {\n    return (String) m_baseIdentifiers.pop();\n  }\n\n  /**\n   * Return the base identifier.\n   *\n   * @return The base identifier of the current stylesheet.\n   */\n  public String getBaseIdentifier()\n  {\n\n    String base = (String) (m_baseIdentifiers.isEmpty()\n                            ? null : m_baseIdentifiers.peek());\n\n    if (null == base)\n    {\n      SourceLocator locator = getLocator();\n\n      base = (null == locator) ? \"\" : locator.getSystemId();\n    }\n\n    return base;\n  }\n\n  /**\n   * The top of this stack should contain the currently processed\n   * stylesheet SAX locator object.\n   */\n  private Stack m_stylesheetLocatorStack = new Stack();\n\n  /**\n   * Get the current stylesheet Locator object.\n   *\n   * @return non-null reference to the current locator object.\n   */\n  public SAXSourceLocator getLocator()\n  {\n\n    if (m_stylesheetLocatorStack.isEmpty())\n    {\n      SAXSourceLocator locator = new SAXSourceLocator();\n\n      locator.setSystemId(this.getStylesheetProcessor().getDOMsystemID());\n\n      return locator;\n\n    }\n\n    return ((SAXSourceLocator) m_stylesheetLocatorStack.peek());\n  }\n\n  /**\n   * A stack of URL hrefs for imported stylesheets.  This is\n   * used to diagnose circular imports.\n   */\n  private Stack m_importStack = new Stack();\n\n  /**\n   * Push an import href onto the stylesheet stack.\n   *\n   * @param hrefUrl non-null reference to the URL for the current imported\n   * stylesheet.\n   */\n  void pushImportURL(String hrefUrl)\n  {\n    m_importStack.push(hrefUrl);\n  }\n\n  /**\n   * See if the imported stylesheet stack already contains\n   * the given URL.  Used to test for recursive imports.\n   *\n   * @param hrefUrl non-null reference to a URL string.\n   *\n   * @return true if the URL is on the import stack.\n   */\n  boolean importStackContains(String hrefUrl)\n  {\n    return stackContains(m_importStack, hrefUrl);\n  }\n\n  /**\n   * Pop an import href from the stylesheet stack.\n   *\n   * @return non-null reference to the import URL that was popped.\n   */\n  String popImportURL()\n  {\n    return (String) m_importStack.pop();\n  }\n\n  /**\n   * If this is set to true, we've already warned about using the\n   * older XSLT namespace URL.\n   */\n  private boolean warnedAboutOldXSLTNamespace = false;\n\n  /** Stack of NamespaceSupport objects. */\n  Stack m_nsSupportStack = new Stack();\n\n  /**\n   * Push a new NamespaceSupport instance.\n   */\n  void pushNewNamespaceSupport()\n  {\n    m_nsSupportStack.push(new NamespaceSupport2());\n  }\n\n  /**\n   * Pop the current NamespaceSupport object.\n   *\n   */\n  void popNamespaceSupport()\n  {\n    m_nsSupportStack.pop();\n  }\n\n  /**\n   * Get the current NamespaceSupport object.\n   *\n   * @return a non-null reference to the current NamespaceSupport object,\n   * which is the top of the namespace support stack.\n   */\n  NamespaceSupport getNamespaceSupport()\n  {\n    return (NamespaceSupport) m_nsSupportStack.peek();\n  }\n\n  /**\n   * The originating node if the current stylesheet is being created\n   *  from a DOM.\n   *  @see org.apache.xml.utils.NodeConsumer\n   */\n  private Node m_originatingNode;\n\n  /**\n   * Set the node that is originating the SAX event.\n   *\n   * @param n Reference to node that originated the current event.\n   * @see org.apache.xml.utils.NodeConsumer\n   */\n  public void setOriginatingNode(Node n)\n  {\n    m_originatingNode = n;\n  }\n\n  /**\n   * Set the node that is originating the SAX event.\n   *\n   * @return Reference to node that originated the current event.\n   * @see org.apache.xml.utils.NodeConsumer\n   */\n  public Node getOriginatingNode()\n  {\n    return m_originatingNode;\n  }\n  \n  /**\n   * Stack of booleans that are pushed and popped in start/endElement depending \n   * on the value of xml:space=default/preserve.\n   */\n  private BoolStack m_spacePreserveStack = new BoolStack();\n  \n  /**\n   * Return boolean value from the spacePreserve stack depending on the value \n   * of xml:space=default/preserve.\n   * \n   * @return true if space should be preserved, false otherwise.\n   */\n  boolean isSpacePreserve()\n  {\n    return m_spacePreserveStack.peek();\n  }\n  \n  /**\n   * Pop boolean value from the spacePreserve stack.\n   */\n  void popSpaceHandling()\n  {\n    m_spacePreserveStack.pop();\n  }\n  \n  /**\n   * Push boolean value on to the spacePreserve stack.\n   * \n   * @param b true if space should be preserved, false otherwise.\n   */\n  void pushSpaceHandling(boolean b)\n    throws org.xml.sax.SAXParseException\n  {\n    m_spacePreserveStack.push(b);\n  }\n  \n  /**\n   * Push boolean value on to the spacePreserve stack depending on the value \n   * of xml:space=default/preserve.\n   * \n   * @param attrs list of attributes that were passed to startElement.\n   */\n  void pushSpaceHandling(Attributes attrs)\n    throws org.xml.sax.SAXParseException\n  {    \n    String value = attrs.getValue(\"xml:space\");\n    if(null == value)\n    {\n      m_spacePreserveStack.push(m_spacePreserveStack.peekOrFalse());\n    }\n    else if(value.equals(\"preserve\"))\n    {\n      m_spacePreserveStack.push(true);\n    }\n    else if(value.equals(\"default\"))\n    {\n      m_spacePreserveStack.push(false);\n    }\n    else\n    {\n      SAXSourceLocator locator = getLocator();\n      ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n  \n      try\n      {\n      }\n      catch (TransformerException te)\n      {\n        throw new org.xml.sax.SAXParseException(te.getMessage(), locator, te);\n      }\n      m_spacePreserveStack.push(m_spacePreserveStack.peek());\n    }\n  }\n  \n  private double getElemVersion()\n  {\n    ElemTemplateElement elem = getElemTemplateElement();\n    double version = -1; \n    while ((version == -1 || version == Constants.XSLTVERSUPPORTED) && elem != null)\n    {\n      try{\n      version = Double.valueOf(elem.getXmlVersion()).doubleValue();\n      }\n      catch (Exception ex)\n      {\n        version = -1;\n      }\n      elem = elem.getParentElem();\n      }\n    return (version == -1)? Constants.XSLTVERSUPPORTED : version;\n  }\n    /**\n     * @see PrefixResolver#handlesNullPrefixes()\n     */\n    public boolean handlesNullPrefixes() {\n        return false;\n    }\n\n    /**\n     * @return Optimization flag\n     */\n    public boolean getOptimize() {\n        return m_optimize;\n    }\n\n    /**\n     * @return Incremental flag\n     */\n    public boolean getIncremental() {\n        return m_incremental;\n    }\n\n    /**\n     * @return Source Location flag\n     */\n    public boolean getSource_location() {\n        return m_source_location;", "functions": [{"function_name": "init", "code": "  void init(TransformerFactoryImpl processor)\n  {\n    m_stylesheetProcessor = processor;\n\n    m_processors.push(m_schema.getElementProcessor());\n    this.pushNewNamespaceSupport();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createXPath", "code": "  public XPath createXPath(String str, ElemTemplateElement owningTemplate)\n          throws javax.xml.transform.TransformerException\n  {\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    XPath xpath = new XPath(str, owningTemplate, this, XPath.SELECT, handler, \n            m_funcTable);\n    xpath.callVisitors(xpath, new ExpressionVisitor(getStylesheetRoot()));\n    return xpath;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [2, 8], [3, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 2], [9, 3], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createMatchPatternXPath", "code": "  XPath createMatchPatternXPath(String str, ElemTemplateElement owningTemplate)\n          throws javax.xml.transform.TransformerException\n  {\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    XPath xpath = new XPath(str, owningTemplate, this, XPath.MATCH, handler, \n        m_funcTable);\n    xpath.callVisitors(xpath, new ExpressionVisitor(getStylesheetRoot()));\n    return xpath;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [2, 8], [3, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 2], [9, 3], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNamespaceForPrefix", "code": "  public String getNamespaceForPrefix(String prefix)\n  {\n    return this.getNamespaceSupport().getURI(prefix);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNamespaceForPrefix", "code": "  public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context)\n  {\n\n    assertion(true, \"can't process a context node in StylesheetHandler!\");\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "stackContains", "code": "  private boolean stackContains(Stack stack, String url)\n  {\n\n    int n = stack.size();\n    boolean contains = false;\n\n    for (int i = 0; i < n; i++)\n    {\n      String url2 = (String) stack.elementAt(i);\n\n      if (url2.equals(url))\n      {\n        contains = true;\n\n        break;\n      }\n    }\n\n    return contains;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [3, 10], [4, 11], [8, 12], [2, 13], [8, 14], [8, 15], [9, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 3], [11, 4], [12, 8], [13, 2], [14, 8], [15, 8], [16, 9], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getTemplates", "code": "  public Templates getTemplates()\n  {\n    return getStylesheetRoot();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSystemId", "code": "  public void setSystemId(String baseID)\n  {\n    pushBaseIndentifier(baseID);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemId", "code": "  public String getSystemId()\n  {\n    return this.getBaseIdentifier();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "resolveEntity", "code": "  public InputSource resolveEntity(String publicId, String systemId)\n          throws org.xml.sax.SAXException\n  {\n    return getCurrentProcessor().resolveEntity(this, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "notationDecl", "code": "  public void notationDecl(String name, String publicId, String systemId)\n  {\n    getCurrentProcessor().notationDecl(this, name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "unparsedEntityDecl", "code": "  public void unparsedEntityDecl(String name, String publicId,\n                                 String systemId, String notationName)\n  {\n    getCurrentProcessor().unparsedEntityDecl(this, name, publicId, systemId,\n                                             notationName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getProcessorFor", "code": "  XSLTElementProcessor getProcessorFor(\n          String uri, String localName, String rawName)\n            throws org.xml.sax.SAXException\n  {\n\n    XSLTElementProcessor currentProcessor = getCurrentProcessor();\n    XSLTElementDef def = currentProcessor.getElemDef();\n    XSLTElementProcessor elemProcessor = def.getProcessorFor(uri, localName);\n\n    if (null == elemProcessor\n            && !(currentProcessor instanceof ProcessorStylesheetDoc)\n            && ((null == getStylesheet()\n                || Double.valueOf(getStylesheet().getVersion()).doubleValue()\n                   > Constants.XSLTVERSUPPORTED) \n                ||(!uri.equals(Constants.S_XSLNAMESPACEURL) &&\n                            currentProcessor instanceof ProcessorStylesheetElement)\n                || getElemVersion() > Constants.XSLTVERSUPPORTED\n        ))\n    {\n      elemProcessor = def.getProcessorForUnknown(uri, localName);\n    }\n\n    if (null == elemProcessor)\n            \n                \n    return elemProcessor;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [2, 11], [10, 12], [11, 13], [11, 14], [3, 15], [4, 16], [5, 17], [2, 18], [13, 19], [13, 20], [14, 21], [14, 22], [18, 23], [19, 24], [20, 25], [20, 26], [22, 27], [25, 28], [25, 29], [26, 30], [26, 31], [30, 32], [31, 33], [31, 34], [32, 35], [32, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 2], [12, 10], [13, 11], [14, 11], [15, 3], [16, 4], [17, 5], [18, 2], [19, 13], [20, 13], [21, 14], [22, 14], [23, 18], [24, 19], [25, 20], [26, 20], [27, 22], [28, 25], [29, 25], [30, 26], [31, 26], [32, 30], [33, 31], [34, 31], [35, 32], [36, 32], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator)\n  {\n\n    m_stylesheetLocatorStack.push(new SAXSourceLocator(locator));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startDocument", "code": "  public void startDocument() throws org.xml.sax.SAXException\n  {\n    m_stylesheetLevel++;\n    pushSpaceHandling(false);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isStylesheetParsingComplete", "code": "  public boolean isStylesheetParsingComplete()\n  {\n    return m_parsingComplete;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endDocument", "code": "  public void endDocument() throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      if (null != getStylesheetRoot())\n      {\n        if (0 == m_stylesheetLevel)\n          getStylesheetRoot().recompose();        \n      }\n      else{}\n\n      XSLTElementProcessor elemProcessor = getCurrentProcessor();\n\n      if (null != elemProcessor)\n        elemProcessor.startNonText(this);\n\n      m_stylesheetLevel--;\t\t\t\n      \n      popSpaceHandling();\n\n      m_parsingComplete = (m_stylesheetLevel < 0);\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "VAR_DECL", "IF", "THROW_RAISE", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [1, 7], [1, 8], [3, 9], [5, 10], [6, 11], [7, 12], [3, 13], [9, 14], [4, 15], [5, 16], [10, 17], [10, 18], [12, 19], [16, 20], [16, 21], [20, 22], [21, 23], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 1], [8, 1], [9, 3], [10, 5], [11, 6], [12, 7], [13, 3], [14, 9], [15, 4], [16, 5], [17, 10], [18, 10], [19, 12], [20, 16], [21, 16], [22, 20], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(String prefix, String uri)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(String prefix) throws org.xml.sax.SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "flushCharacters", "code": "  private void flushCharacters() throws org.xml.sax.SAXException\n  {\n\n    XSLTElementProcessor elemProcessor = getCurrentProcessor();\n\n    if (null != elemProcessor)\n      elemProcessor.startNonText(this);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "startElement", "code": "  public void startElement(\n          String uri, String localName, String rawName, Attributes attributes)\n            throws org.xml.sax.SAXException\n  {\n    NamespaceSupport nssupport = this.getNamespaceSupport();\n    nssupport.pushContext();\n    \n    int n = m_prefixMappings.size();\n\n    for (int i = 0; i < n; i++) \n    {\n      String prefix = (String)m_prefixMappings.elementAt(i++);\n      String nsURI = (String)m_prefixMappings.elementAt(i);\n      nssupport.declarePrefix(prefix, nsURI);\n    }\n\n    m_elementID++;\n\n\n    checkForFragmentID(attributes);\n\n    if (!m_shouldProcess)\n      return;\n\n    flushCharacters();\n    \n    pushSpaceHandling(attributes);\n\n    XSLTElementProcessor elemProcessor = getProcessorFor(uri, localName,\n                                           rawName);\n\n    if(true){\n      this.pushProcessor(elemProcessor);\n      elemProcessor.startElement(this, uri, localName, rawName, attributes);\n    }\n    else\n    {\n      m_shouldProcess = false;\n      popSpaceHandling();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [0, 13], [3, 14], [0, 15], [4, 16], [0, 17], [2, 18], [4, 19], [4, 20], [5, 21], [1, 22], [1, 23], [1, 24], [4, 25], [4, 26], [6, 27], [23, 28], [1, 29], [19, 30], [20, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 0], [14, 3], [15, 0], [16, 4], [17, 0], [18, 2], [19, 4], [20, 4], [21, 5], [22, 1], [23, 1], [24, 1], [25, 4], [26, 4], [27, 6], [28, 23], [29, 1], [30, 19], [31, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "endElement", "code": "  public void endElement(String uri, String localName, String rawName)\n          throws org.xml.sax.SAXException\n  {\n\n    m_elementID--;\n\n    if (!m_shouldProcess)\n      return;\n\n    if ((m_elementID + 1) == m_fragmentID)\n      m_shouldProcess = false;\n\n    flushCharacters();\n    \n    popSpaceHandling();\n\n    XSLTElementProcessor p = getCurrentProcessor();\n\n    p.endElement(this, uri, localName, rawName);\n    this.popProcessor();\n    this.getNamespaceSupport().popContext();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [0, 12], [0, 13], [0, 14], [1, 15], [2, 16], [10, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 0], [13, 0], [14, 0], [15, 1], [16, 2], [17, 10], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "characters", "code": "  public void characters(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    XSLTElementProcessor elemProcessor = getCurrentProcessor();\n    XSLTElementDef def = elemProcessor.getElemDef();\n\n    if (def.getType() != XSLTElementDef.T_PCDATA)\n      elemProcessor = def.getProcessorFor(null, \"text()\");\n\n    if (null == elemProcessor)\n    {\n\n      if (!XMLCharacterRecognizer.isWhiteSpace(ch, start, length)){}\n       \n    }\n    else\n      elemProcessor.characters(this, ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [9, 14], [2, 15], [10, 16], [3, 17], [4, 18], [13, 19], [15, 20], [20, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 9], [15, 2], [16, 10], [17, 3], [18, 4], [19, 13], [20, 15], [21, 20], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    getCurrentProcessor().ignorableWhitespace(this, ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(String target, String data)\n          throws org.xml.sax.SAXException\n  {\n    if (!m_shouldProcess)\n      return;\n\n    \n    String prefix=\"\",ns=\"\", localName=target;\n    int colon=target.indexOf(':');\n    if(colon>=0)\n    {\n      ns=getNamespaceForPrefix(prefix=target.substring(0,colon));\n      localName=target.substring(colon+1);\n    }\n\n    try\n    {\n      if(\n        \"xalan-doc-cache-off\".equals(target) ||\n        \"xalan:doc-cache-off\".equals(target) ||\n\t   (\"doc-cache-off\".equals(localName) &&\n\t    ns.equals(\"org.apache.xalan.xslt.extensions.Redirect\") )\n\t )\n      {\n\tif(!(m_elems.peek() instanceof ElemForEach))\n          throw new TransformerException\n\t    (\"xalan:doc-cache-off not allowed here!\", \n\t     getLocator());\n        ElemForEach elem = (ElemForEach)m_elems.peek();\n\n        elem.m_doc_cache_off = true;\n\n      }\n    }\n    catch(Exception e)\n    {\n    }\n\n\n    flushCharacters();\n    getCurrentProcessor().processingInstruction(this, target, data);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CATCH", "IF", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [2, 12], [5, 13], [8, 14], [11, 15], [12, 16], [3, 17], [4, 18], [4, 19], [11, 20], [11, 21], [15, 22], [15, 23], [2, 24], [2, 25], [17, 26], [11, 27], [21, 28], [21, 29], [22, 30], [22, 31], [23, 32], [23, 33], [24, 34], [25, 35], [27, 36], [28, 37], [29, 38], [30, 39], [31, 40], [32, 41], [33, 42], [34, 43], [35, 44], [20, 45], [37, 46], [37, 47], [43, 48], [44, 49], [49, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 2], [13, 5], [14, 8], [15, 11], [16, 12], [17, 3], [18, 4], [19, 4], [20, 11], [21, 11], [22, 15], [23, 15], [24, 2], [25, 2], [26, 17], [27, 11], [28, 21], [29, 21], [30, 22], [31, 22], [32, 23], [33, 23], [34, 24], [35, 25], [36, 27], [37, 28], [38, 29], [39, 30], [40, 31], [41, 32], [42, 33], [43, 34], [44, 35], [45, 20], [46, 37], [47, 37], [48, 43], [49, 44], [50, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(String name) throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    getCurrentProcessor().skippedEntity(this, name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "warn", "code": "  public void warn(String msg, Object args[]) throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = XSLMessages.createWarning(msg, args);\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      if (null != handler)\n        handler.warning(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [2, 11], [3, 12], [4, 13], [9, 14], [8, 15], [10, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 2], [12, 3], [13, 4], [14, 9], [15, 8], [16, 10], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "assertion", "code": "  private void assertion(boolean condition, String msg) throws RuntimeException\n  {\n    if (!condition)\n      throw new RuntimeException(msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "error", "code": "  protected void error(String msg, Exception e)\n          throws org.xml.sax.SAXException\n  {\n\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    TransformerException pe;\n\n    if (!(e instanceof TransformerException))\n    {\n      pe = (null == e)\n           ? new TransformerException(msg, locator)\n           : new TransformerException(msg, locator, e);\n    }\n    else\n      pe = (TransformerException) e;\n\n    if (null != handler)\n    {\n      try\n      {\n        handler.error(pe);\n      }\n      catch (TransformerException te)\n      {\n        throw new org.xml.sax.SAXException(te);\n      }\n    }\n    else\n      throw new org.xml.sax.SAXException(pe);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "TRY", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CATCH", "ASSIGN", "THROW_RAISE", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [2, 10], [8, 11], [1, 12], [9, 13], [2, 14], [4, 15], [5, 16], [12, 17], [2, 18], [17, 19], [12, 20], [18, 21], [19, 22], [21, 23], [21, 24], [21, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 2], [11, 8], [12, 1], [13, 9], [14, 2], [15, 4], [16, 5], [17, 12], [18, 2], [19, 17], [20, 12], [21, 18], [22, 19], [23, 21], [24, 21], [25, 21], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "error", "code": "  protected void error(String msg, Object args[], Exception e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = XSLMessages.createMessage(msg, args);\n\n    error(formattedMsg, e);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "warning", "code": "  public void warning(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.warning(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [2, 9], [3, 10], [4, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 2], [10, 3], [11, 4], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "error", "code": "  public void error(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.error(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [2, 9], [3, 10], [4, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 2], [10, 3], [11, 4], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "fatalError", "code": "  public void fatalError(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.fatalError(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [2, 9], [3, 10], [4, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 2], [10, 3], [11, 4], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "checkForFragmentID", "code": "  private void checkForFragmentID(Attributes attributes)\n  {\n\n    if (!m_shouldProcess)\n    {\n      if ((null != attributes) && (null != m_fragmentIDString))\n      {\n        int n = attributes.getLength();\n\n        for (int i = 0; i < n; i++)\n        {\n          String name = attributes.getQName(i);\n\n          if (name.equals(Constants.ATTRNAME_ID))\n          {\n            String val = attributes.getValue(i);\n\n            if (val.equalsIgnoreCase(m_fragmentIDString))\n            {\n              m_shouldProcess = true;\n              m_fragmentID = m_elementID;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [4, 7], [4, 8], [5, 9], [7, 10], [8, 11], [5, 12], [5, 13], [6, 14], [12, 15], [5, 16], [12, 17], [12, 18], [13, 19], [17, 20], [18, 21], [17, 22], [17, 23], [23, 24], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 4], [8, 4], [9, 5], [10, 7], [11, 8], [12, 5], [13, 5], [14, 6], [15, 12], [16, 5], [17, 12], [18, 12], [19, 13], [20, 17], [21, 18], [22, 17], [23, 17], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getStylesheetProcessor", "code": "  public TransformerFactoryImpl getStylesheetProcessor()\n  {\n    return m_stylesheetProcessor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStylesheetType", "code": "  int getStylesheetType()\n  {\n    return m_stylesheetType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStylesheetType", "code": "  void setStylesheetType(int type)\n  {\n    m_stylesheetType = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheet", "code": "  Stylesheet getStylesheet()\n  {\n    return (m_stylesheets.size() == 0)\n           ? null : (Stylesheet) m_stylesheets.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [4, 6], [4, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getLastPoppedStylesheet", "code": "  Stylesheet getLastPoppedStylesheet()\n  {\n    return m_lastPoppedStylesheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStylesheetRoot", "code": "  public StylesheetRoot getStylesheetRoot()\n  {\n    if (m_stylesheetRoot != null){\n        m_stylesheetRoot.setOptimizer(m_optimize);\n        m_stylesheetRoot.setIncremental(m_incremental);\n        m_stylesheetRoot.setSource_location(m_source_location);  \t\t\n    }\n    return m_stylesheetRoot;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [2, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "pushStylesheet", "code": "  public void pushStylesheet(Stylesheet s)\n  {\n\n    if (m_stylesheets.size() == 0)\n      m_stylesheetRoot = (StylesheetRoot) s;\n\n    m_stylesheets.push(s);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "popStylesheet", "code": "  Stylesheet popStylesheet()\n  {\n\n    if (!m_stylesheetLocatorStack.isEmpty())\n      m_stylesheetLocatorStack.pop();\n\n    if (!m_stylesheets.isEmpty())\n      m_lastPoppedStylesheet = (Stylesheet) m_stylesheets.pop();\n\n    return m_lastPoppedStylesheet;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [3, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 3], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getCurrentProcessor", "code": "  XSLTElementProcessor getCurrentProcessor()\n  {\n    return (XSLTElementProcessor) m_processors.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "pushProcessor", "code": "  void pushProcessor(XSLTElementProcessor processor)\n  {\n    m_processors.push(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popProcessor", "code": "  XSLTElementProcessor popProcessor()\n  {\n    return (XSLTElementProcessor) m_processors.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSchema", "code": "  public XSLTSchema getSchema()\n  {\n    return m_schema;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getElemTemplateElement", "code": "  ElemTemplateElement getElemTemplateElement()\n  {\n\n    try\n    {\n      return (ElemTemplateElement) m_elems.peek();\n    }\n    catch (java.util.EmptyStackException ese)\n    {\n      return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [3, 6], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "nextUid", "code": "  int nextUid()\n  {\n    return m_docOrderCount++;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "pushElemTemplateElement", "code": "  void pushElemTemplateElement(ElemTemplateElement elem)\n  {\n\n    if (elem.getUid() == -1)\n      elem.setUid(nextUid());\n\n    m_elems.push(elem);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "popElemTemplateElement", "code": "  ElemTemplateElement popElemTemplateElement()\n  {\n    return (ElemTemplateElement) m_elems.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "pushBaseIndentifier", "code": "  void pushBaseIndentifier(String baseID)\n  {\n\n    if (null != baseID)\n    {\n      int posOfHash = baseID.indexOf('#');\n\n      if (posOfHash > -1)\n      {\n        m_fragmentIDString = baseID.substring(posOfHash + 1);\n        m_shouldProcess = false;\n      }\n      else\n        m_shouldProcess = true;\n    }\n    else\n      m_shouldProcess = true;\n\n    m_baseIdentifiers.push(baseID);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [6, 11], [10, 12], [7, 13], [11, 14], [6, 15], [6, 16], [13, 17], [15, 18], [16, 19], [19, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 6], [12, 10], [13, 7], [14, 11], [15, 6], [16, 6], [17, 13], [18, 15], [19, 16], [20, 19], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "popBaseIndentifier", "code": "  String popBaseIndentifier()\n  {\n    return (String) m_baseIdentifiers.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBaseIdentifier", "code": "  public String getBaseIdentifier()\n  {\n\n    String base = (String) (m_baseIdentifiers.isEmpty()\n                            ? null : m_baseIdentifiers.peek());\n\n    if (null == base)\n    {\n      SourceLocator locator = getLocator();\n\n      base = (null == locator) ? \"\" : locator.getSystemId();\n    }\n\n    return base;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [2, 7], [3, 8], [7, 9], [5, 10], [8, 11], [8, 12], [8, 13], [9, 14], [9, 15], [9, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 2], [8, 3], [9, 7], [10, 5], [11, 8], [12, 8], [13, 8], [14, 9], [15, 9], [16, 9], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getLocator", "code": "  public SAXSourceLocator getLocator()\n  {\n\n    if (m_stylesheetLocatorStack.isEmpty())\n    {\n      SAXSourceLocator locator = new SAXSourceLocator();\n\n      locator.setSystemId(this.getStylesheetProcessor().getDOMsystemID());\n\n      return locator;\n\n    }\n\n    return ((SAXSourceLocator) m_stylesheetLocatorStack.peek());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 2], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "pushImportURL", "code": "  void pushImportURL(String hrefUrl)\n  {\n    m_importStack.push(hrefUrl);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "importStackContains", "code": "  boolean importStackContains(String hrefUrl)\n  {\n    return stackContains(m_importStack, hrefUrl);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "popImportURL", "code": "  String popImportURL()\n  {\n    return (String) m_importStack.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "pushNewNamespaceSupport", "code": "  void pushNewNamespaceSupport()\n  {\n    m_nsSupportStack.push(new NamespaceSupport2());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popNamespaceSupport", "code": "  void popNamespaceSupport()\n  {\n    m_nsSupportStack.pop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespaceSupport", "code": "  NamespaceSupport getNamespaceSupport()\n  {\n    return (NamespaceSupport) m_nsSupportStack.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOriginatingNode", "code": "  public void setOriginatingNode(Node n)\n  {\n    m_originatingNode = n;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOriginatingNode", "code": "  public Node getOriginatingNode()\n  {\n    return m_originatingNode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSpacePreserve", "code": "  boolean isSpacePreserve()\n  {\n    return m_spacePreserveStack.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popSpaceHandling", "code": "  void popSpaceHandling()\n  {\n    m_spacePreserveStack.pop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "pushSpaceHandling", "code": "  void pushSpaceHandling(boolean b)\n    throws org.xml.sax.SAXParseException\n  {\n    m_spacePreserveStack.push(b);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "pushSpaceHandling", "code": "  void pushSpaceHandling(Attributes attrs)\n    throws org.xml.sax.SAXParseException\n  {    \n    String value = attrs.getValue(\"xml:space\");\n    if(null == value)\n    {\n      m_spacePreserveStack.push(m_spacePreserveStack.peekOrFalse());\n    }\n    else if(value.equals(\"preserve\"))\n    {\n      m_spacePreserveStack.push(true);\n    }\n    else if(value.equals(\"default\"))\n    {\n      m_spacePreserveStack.push(false);\n    }\n    else\n    {\n      SAXSourceLocator locator = getLocator();\n      ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n  \n      try\n      {\n      }\n      catch (TransformerException te)\n      {\n        throw new org.xml.sax.SAXParseException(te.getMessage(), locator, te);\n      }\n      m_spacePreserveStack.push(m_spacePreserveStack.peek());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [5, 8], [2, 9], [6, 10], [7, 11], [1, 12], [9, 13], [6, 14], [6, 15], [6, 16], [10, 17], [4, 18], [12, 19], [6, 20], [14, 21], [6, 22], [18, 23], [20, 24], [21, 25], [15, 26], [16, 27], [22, 28], [25, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 5], [9, 2], [10, 6], [11, 7], [12, 1], [13, 9], [14, 6], [15, 6], [16, 6], [17, 10], [18, 4], [19, 12], [20, 6], [21, 14], [22, 6], [23, 18], [24, 20], [25, 21], [26, 15], [27, 16], [28, 22], [29, 25], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getElemVersion", "code": "  private double getElemVersion()\n  {\n    ElemTemplateElement elem = getElemTemplateElement();\n    double version = -1; \n    while ((version == -1 || version == Constants.XSLTVERSUPPORTED) && elem != null)\n    {\n      try{\n      version = Double.valueOf(elem.getXmlVersion()).doubleValue();\n      }\n      catch (Exception ex)\n      {\n        version = -1;\n      }\n      elem = elem.getParentElem();\n      }\n    return (version == -1)? Constants.XSLTVERSUPPORTED : version;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "COND_EXPR", "BINARY_OP", "BINARY_OP", "TRY", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [6, 9], [6, 10], [3, 11], [4, 12], [7, 13], [2, 14], [8, 15], [9, 16], [10, 17], [10, 18], [14, 19], [8, 20], [18, 21], [15, 22], [20, 23], [22, 24], [23, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 6], [10, 6], [11, 3], [12, 4], [13, 7], [14, 2], [15, 8], [16, 9], [17, 10], [18, 10], [19, 14], [20, 8], [21, 18], [22, 15], [23, 20], [24, 22], [25, 23], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "handlesNullPrefixes", "code": "    public boolean handlesNullPrefixes() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptimize", "code": "    public boolean getOptimize() {\n        return m_optimize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIncremental", "code": "    public boolean getIncremental() {\n        return m_incremental;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSource_location", "code": "    public boolean getSource_location() {\n        return m_source_location;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "StylesheetHandler", "code": "  public StylesheetHandler(TransformerFactoryImpl processor)\n          throws TransformerConfigurationException\n  {\n    Class func = org.apache.xalan.templates.FuncDocument.class;\n    m_funcTable.installFunction(\"document\", func);\n\n    func = org.apache.xalan.templates.FuncFormatNumb.class;\n\n    m_funcTable.installFunction(\"format-number\", func);\n\n    m_optimize =((Boolean) processor.getAttribute(\n            TransformerFactoryImpl.FEATURE_OPTIMIZE)).booleanValue();\n    m_incremental = ((Boolean) processor.getAttribute(\n            TransformerFactoryImpl.FEATURE_INCREMENTAL)).booleanValue();\n    m_source_location = ((Boolean) processor.getAttribute(\n            TransformerFactoryImpl.FEATURE_SOURCE_LOCATION)).booleanValue();\n    init(processor);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [9, 11], [4, 12], [5, 13], [6, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 9], [12, 4], [13, 5], [14, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "ant-1.4-201", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/Jar.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Jar", "code": "public class Jar extends Zip {\n\n    private File manifestFile;\n    private Manifest manifest;\n    private Manifest execManifest;  \n    \n    /** true if a manifest has been specified in the task */\n    private boolean buildFileManifest = false;\n    \n    public Jar() {\n        super();\n        archiveType = \"jar\";\n        emptyBehavior = \"create\";\n        setEncoding(\"UTF8\");\n    }\n\n    public void setJarfile(File jarFile) {\n        super.setZipfile(jarFile);\n    }\n\n    public void addConfiguredManifest(Manifest newManifest) throws ManifestException {\n        if (manifest == null) {\n            manifest = getDefaultManifest();\n        }\n        manifest.merge(newManifest);\n        buildFileManifest = true;\n    }\n    \n    public void setManifest(File manifestFile) {\n        if (!manifestFile.exists()) {\n            throw new BuildException(\"Manifest file: \" + manifestFile + \" does not exist.\", \n                                     getLocation());\n        }\n\n        this.manifestFile = manifestFile;\n        \n        InputStream is = null;\n        try {\n            is = new FileInputStream(manifestFile);\n            Manifest newManifest = new Manifest(is);\n            if (manifest == null) {\n                manifest = getDefaultManifest();\n            }\n            manifest.merge(newManifest);\n        }\n        catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest: \" + manifestFile, e, getLocation());\n        }\n        catch (IOException e) {\n            throw new BuildException(\"Unable to read manifest file: \" + manifestFile, e);\n        }\n        finally {\n            if (is != null) {\n                try {\n                    is.close();\n                }\n                catch (IOException e) {\n                }\n            }\n        }\n    }\n\n    public void addMetainf(ZipFileSet fs) {\n        fs.setPrefix(\"META-INF/\");\n        super.addFileset(fs);\n    }\n\n    protected void initZipOutputStream(ZipOutputStream zOut)\n        throws IOException, BuildException\n    {\n        try {\n            execManifest = getDefaultManifest();\n\n            if (manifest != null) {\n                execManifest.merge(manifest);\n            }\n            for (Enumeration e = execManifest.getWarnings(); e.hasMoreElements(); ) {\n                log(\"Manifest warning: \" + (String)e.nextElement(), Project.MSG_WARN);\n            }\n        \n            zipDir(null, zOut, \"META-INF/\");\n            ByteArrayOutputStream baos = new ByteArrayOutputStream();\n            PrintWriter writer = new PrintWriter(baos);\n            execManifest.write(writer);\n            writer.flush();\n        \n            ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());\n            super.zipFile(bais, zOut, \"META-INF/MANIFEST.MF\", System.currentTimeMillis());\n            super.initZipOutputStream(zOut);\n        }\n        catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest\", e, getLocation());\n        }\n    }\n        \n    private Manifest getDefaultManifest() {\n        try {\n            String s = \"/org/apache/tools/ant/defaultManifest.mf\";\n            InputStream in = this.getClass().getResourceAsStream(s);\n            if (in == null) {\n                throw new BuildException(\"Could not find default manifest: \" + s);\n            }\n            return new Manifest(in);\n        }\n        catch (ManifestException e) {\n            throw new BuildException(\"Default manifest is invalid !!\");\n        }\n        catch (IOException e) {\n            throw new BuildException(\"Unable to read default manifest\", e);\n        }\n    }   \n    \n    /**\n     * Handle situation when we encounter a manifest file\n     *\n     * If we haven't been given one, we use this one.\n     *\n     * If we have, we merge the manifest in, provided it is a new file\n     * and not the old one from the JAR we are updating\n     */\n    private void zipManifestEntry(InputStream is) throws IOException {\n        try {\n            if (execManifest == null) {\n                execManifest = new Manifest(is);\n            }\n            else if (isAddingNewFiles()) {\n                execManifest.merge(new Manifest(is));\n            }\n        }\n        catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest\", e, getLocation());\n        }\n    }\n    \n    protected void zipFile(File file, ZipOutputStream zOut, String vPath)\n        throws IOException\n    {\n        if (vPath.equalsIgnoreCase(\"META-INF/MANIFEST.MF\"))  {\n            log(\"Warning: selected \"+archiveType+\" files include a META-INF/MANIFEST.MF which will be ignored \" +\n                \"(please use manifest attribute to \"+archiveType+\" task)\", Project.MSG_WARN);\n        } else {\n            super.zipFile(file, zOut, vPath);\n        }\n\n    }\n\n    protected void zipFile(InputStream is, ZipOutputStream zOut, String vPath, long lastModified)\n        throws IOException\n    {\n        if (vPath.equalsIgnoreCase(\"META-INF/MANIFEST.MF\"))  {\n            try {\n                zipManifestEntry(is);\n            }\n            catch (IOException e) {\n                throw new BuildException(\"Unable to read manifest file: \", e);\n            }\n        } else {\n            super.zipFile(is, zOut, vPath, lastModified);\n        }\n    }\n\n    /**\n     * Check whether the archive is up-to-date; \n     * @param scanners list of prepared scanners containing files to archive\n     * @param zipFile intended archive file (may or may not exist)\n     * @return true if nothing need be done (may have done something already); false if\n     *         archive creation should proceed\n     * @exception BuildException if it likes\n     */\n    protected boolean isUpToDate(FileScanner[] scanners, File zipFile) throws BuildException {\n        if (buildFileManifest || manifestFile == null) {\n            java.util.zip.ZipFile theZipFile = null;\n            try {\n                theZipFile = new java.util.zip.ZipFile(zipFile);\n                java.util.zip.ZipEntry entry = theZipFile.getEntry(\"META-INF/MANIFEST.MF\");\n                if (entry == null) {\n                    log(\"Updating jar since the current jar has no manifest\", Project.MSG_VERBOSE);\n                    return false;\n                }\n                Manifest currentManifest = new Manifest(theZipFile.getInputStream(entry));\n                if (manifest == null) {\n                    manifest = getDefaultManifest();\n                }\n                if (!currentManifest.equals(manifest)) {\n                    log(\"Updating jar since jar manifest has changed\", Project.MSG_VERBOSE);\n                    return false;\n                }\n            }\n            catch (Exception e) {\n                log(\"Updating jar since cannot read current jar manifest: \" + e.getClass().getName() + e.getMessage(), \n                    Project.MSG_VERBOSE);\n                return false;\n            }\n            finally {\n                if (theZipFile != null) {\n                    try {\n                        theZipFile.close();\n                    }\n                    catch (IOException e) {\n                    }\n                }\n            }\n        }\n        else if (manifestFile.lastModified() > zipFile.lastModified()) {\n            return false;\n        }\n        return super.isUpToDate(scanners, zipFile);\n    }\n        \n    protected boolean createEmptyZip(File zipFile) {\n        return false;\n    }\n    \n    /**\n     * Make sure we don't think we already have a MANIFEST next time this task\n     * gets executed.\n     */\n    protected void cleanUp() {\n        super.cleanUp();", "functions": [{"function_name": "setJarfile", "code": "    public void setJarfile(File jarFile) {\n        super.setZipfile(jarFile);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addConfiguredManifest", "code": "    public void addConfiguredManifest(Manifest newManifest) throws ManifestException {\n        if (manifest == null) {\n            manifest = getDefaultManifest();\n        }\n        manifest.merge(newManifest);\n        buildFileManifest = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setManifest", "code": "    public void setManifest(File manifestFile) {\n        if (!manifestFile.exists()) {\n            throw new BuildException(\"Manifest file: \" + manifestFile + \" does not exist.\", \n                                     getLocation());\n        }\n\n        this.manifestFile = manifestFile;\n        \n        InputStream is = null;\n        try {\n            is = new FileInputStream(manifestFile);\n            Manifest newManifest = new Manifest(is);\n            if (manifest == null) {\n                manifest = getDefaultManifest();\n            }\n            manifest.merge(newManifest);\n        }\n        catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest: \" + manifestFile, e, getLocation());\n        }\n        catch (IOException e) {\n            throw new BuildException(\"Unable to read manifest file: \" + manifestFile, e);\n        }\n        finally {\n            if (is != null) {\n                try {\n                    is.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "IF", "CATCH", "CATCH", "IF", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [0, 10], [3, 11], [5, 12], [6, 13], [7, 14], [1, 15], [8, 16], [1, 17], [2, 18], [3, 19], [5, 20], [12, 21], [13, 22], [14, 23], [7, 24], [16, 25], [9, 26], [17, 27], [19, 28], [20, 29], [22, 30], [23, 31], [23, 32], [24, 33], [8, 34], [28, 35], [28, 36], [20, 37], [30, 38], [32, 39], [33, 40], [33, 41], [34, 42], [36, 43], [36, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 0], [11, 3], [12, 5], [13, 6], [14, 7], [15, 1], [16, 8], [17, 1], [18, 2], [19, 3], [20, 5], [21, 12], [22, 13], [23, 14], [24, 7], [25, 16], [26, 9], [27, 17], [28, 19], [29, 20], [30, 22], [31, 23], [32, 23], [33, 24], [34, 8], [35, 28], [36, 28], [37, 20], [38, 30], [39, 32], [40, 33], [41, 33], [42, 34], [43, 36], [44, 36], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "addMetainf", "code": "    public void addMetainf(ZipFileSet fs) {\n        fs.setPrefix(\"META-INF/\");\n        super.addFileset(fs);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "initZipOutputStream", "code": "    protected void initZipOutputStream(ZipOutputStream zOut)\n        throws IOException, BuildException\n    {\n        try {\n            execManifest = getDefaultManifest();\n\n            if (manifest != null) {\n                execManifest.merge(manifest);\n            }\n            for (Enumeration e = execManifest.getWarnings(); e.hasMoreElements(); ) {\n                log(\"Manifest warning: \" + (String)e.nextElement(), Project.MSG_WARN);\n            }\n        \n            zipDir(null, zOut, \"META-INF/\");\n            ByteArrayOutputStream baos = new ByteArrayOutputStream();\n            PrintWriter writer = new PrintWriter(baos);\n            execManifest.write(writer);\n            writer.flush();\n        \n            ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());\n            super.zipFile(bais, zOut, \"META-INF/MANIFEST.MF\", System.currentTimeMillis());\n            super.initZipOutputStream(zOut);\n        }\n        catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest\", e, getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "IF", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [1, 10], [1, 11], [1, 12], [7, 13], [8, 14], [1, 15], [9, 16], [3, 17], [1, 18], [1, 19], [4, 20], [5, 21], [6, 22], [12, 23], [12, 24], [14, 25], [15, 26], [16, 27], [16, 28], [17, 29], [20, 30], [7, 31], [7, 32], [8, 33], [29, 34], [29, 35], [31, 36], [36, 37], [36, 38], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 1], [11, 1], [12, 1], [13, 7], [14, 8], [15, 1], [16, 9], [17, 3], [18, 1], [19, 1], [20, 4], [21, 5], [22, 6], [23, 12], [24, 12], [25, 14], [26, 15], [27, 16], [28, 16], [29, 17], [30, 20], [31, 7], [32, 7], [33, 8], [34, 29], [35, 29], [36, 31], [37, 36], [38, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "getDefaultManifest", "code": "    private Manifest getDefaultManifest() {\n        try {\n            String s = \"/org/apache/tools/ant/defaultManifest.mf\";\n            InputStream in = this.getClass().getResourceAsStream(s);\n            if (in == null) {\n                throw new BuildException(\"Could not find default manifest: \" + s);\n            }\n            return new Manifest(in);\n        }\n        catch (ManifestException e) {\n            throw new BuildException(\"Default manifest is invalid !!\");\n        }\n        catch (IOException e) {\n            throw new BuildException(\"Unable to read default manifest\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CATCH", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [8, 12], [9, 13], [5, 14], [11, 15], [7, 16], [12, 17], [13, 18], [14, 19], [6, 20], [6, 21], [19, 22], [22, 23], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 8], [13, 9], [14, 5], [15, 11], [16, 7], [17, 12], [18, 13], [19, 14], [20, 6], [21, 6], [22, 19], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "zipManifestEntry", "code": "    private void zipManifestEntry(InputStream is) throws IOException {\n        try {\n            if (execManifest == null) {\n                execManifest = new Manifest(is);\n            }\n            else if (isAddingNewFiles()) {\n                execManifest.merge(new Manifest(is));\n            }\n        }\n        catch (ManifestException e) {\n            log(\"Manifest is invalid: \" + e.getMessage(), Project.MSG_ERR);\n            throw new BuildException(\"Invalid Manifest\", e, getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "THROW_RAISE", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [5, 8], [3, 9], [6, 10], [7, 11], [8, 12], [8, 13], [9, 14], [4, 15], [14, 16], [14, 17], [6, 18], [15, 19], [18, 20], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 5], [9, 3], [10, 6], [11, 7], [12, 8], [13, 8], [14, 9], [15, 4], [16, 14], [17, 14], [18, 6], [19, 15], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "zipFile", "code": "    protected void zipFile(File file, ZipOutputStream zOut, String vPath)\n        throws IOException\n    {\n        if (vPath.equalsIgnoreCase(\"META-INF/MANIFEST.MF\"))  {\n            log(\"Warning: selected \"+archiveType+\" files include a META-INF/MANIFEST.MF which will be ignored \" +\n                \"(please use manifest attribute to \"+archiveType+\" task)\", Project.MSG_WARN);\n        } else {\n            super.zipFile(file, zOut, vPath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [7, 8], [8, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 7], [9, 8], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "zipFile", "code": "    protected void zipFile(InputStream is, ZipOutputStream zOut, String vPath, long lastModified)\n        throws IOException\n    {\n        if (vPath.equalsIgnoreCase(\"META-INF/MANIFEST.MF\"))  {\n            try {\n                zipManifestEntry(is);\n            }\n            catch (IOException e) {\n                throw new BuildException(\"Unable to read manifest file: \", e);\n            }\n        } else {\n            super.zipFile(is, zOut, vPath, lastModified);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "TRY", "LITERAL_ANCHOR", "CATCH", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [7, 9], [9, 10], [7, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 7], [10, 9], [11, 7], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "isUpToDate", "code": "    protected boolean isUpToDate(FileScanner[] scanners, File zipFile) throws BuildException {\n        if (buildFileManifest || manifestFile == null) {\n            java.util.zip.ZipFile theZipFile = null;\n            try {\n                theZipFile = new java.util.zip.ZipFile(zipFile);\n                java.util.zip.ZipEntry entry = theZipFile.getEntry(\"META-INF/MANIFEST.MF\");\n                if (entry == null) {\n                    log(\"Updating jar since the current jar has no manifest\", Project.MSG_VERBOSE);\n                    return false;\n                }\n                Manifest currentManifest = new Manifest(theZipFile.getInputStream(entry));\n                if (manifest == null) {\n                    manifest = getDefaultManifest();\n                }\n                if (!currentManifest.equals(manifest)) {\n                    log(\"Updating jar since jar manifest has changed\", Project.MSG_VERBOSE);\n                    return false;\n                }\n            }\n            catch (Exception e) {\n                log(\"Updating jar since cannot read current jar manifest: \" + e.getClass().getName() + e.getMessage(), \n                    Project.MSG_VERBOSE);\n                return false;\n            }\n            finally {\n                if (theZipFile != null) {\n                    try {\n                        theZipFile.close();\n                    }\n                    catch (IOException e) {\n                    }\n                }\n            }\n        }\n        else if (manifestFile.lastModified() > zipFile.lastModified()) {\n            return false;\n        }\n        return super.isUpToDate(scanners, zipFile);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "TRY", "VAR_DECL", "BINARY_OP", "RETURN", "CALL", "CALL", "IF", "CATCH", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [2, 8], [2, 9], [6, 10], [5, 11], [7, 12], [7, 13], [8, 14], [8, 15], [8, 16], [8, 17], [8, 18], [8, 19], [8, 20], [10, 21], [11, 22], [14, 23], [15, 24], [16, 25], [17, 26], [19, 27], [8, 28], [9, 29], [14, 30], [23, 31], [24, 32], [15, 33], [16, 34], [26, 35], [18, 36], [19, 37], [27, 38], [20, 39], [28, 40], [30, 41], [33, 42], [34, 43], [16, 44], [17, 45], [36, 46], [37, 47], [19, 48], [39, 49], [30, 50], [42, 51], [42, 52], [44, 53], [45, 54], [48, 55], [52, 56], [52, 57], [56, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 2], [9, 2], [10, 6], [11, 5], [12, 7], [13, 7], [14, 8], [15, 8], [16, 8], [17, 8], [18, 8], [19, 8], [20, 8], [21, 10], [22, 11], [23, 14], [24, 15], [25, 16], [26, 17], [27, 19], [28, 8], [29, 9], [30, 14], [31, 23], [32, 24], [33, 15], [34, 16], [35, 26], [36, 18], [37, 19], [38, 27], [39, 20], [40, 28], [41, 30], [42, 33], [43, 34], [44, 16], [45, 17], [46, 36], [47, 37], [48, 19], [49, 39], [50, 30], [51, 42], [52, 42], [53, 44], [54, 45], [55, 48], [56, 52], [57, 52], [58, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "createEmptyZip", "code": "    protected boolean createEmptyZip(File zipFile) {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "cleanUp", "code": "    protected void cleanUp() {\n        super.cleanUp();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Jar", "code": "    public Jar() {\n        super();\n        archiveType = \"jar\";\n        emptyBehavior = \"create\";\n        setEncoding(\"UTF8\");", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-1.5-5291", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hpsf/HPSFRuntimeException.java", "language": "java", "name": "org.apache.poi.hpsf.HPSFRuntimeException", "code": "public class HPSFRuntimeException extends RuntimeException\n{\n\n    private Throwable reason;\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException}.</p>\n     */\n    public HPSFRuntimeException()\n    {\n        super();\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException} with a message\n     * string.</p>\n     */\n    public HPSFRuntimeException(final String msg)\n    {\n        super(msg);\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException} with a reason.</p>\n     */\n    public HPSFRuntimeException(final Throwable reason)\n    {\n        super();\n        this.reason = reason;\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException} with a message string\n     * and a reason.</p>\n     */\n    public HPSFRuntimeException(final String msg, final Throwable reason)\n    {\n        super(msg);\n        this.reason = reason;\n    }\n\n\n\n    /**\n     * <p>Returns the {@link Throwable} that caused this exception to\n     * be thrown or <code>null</code> if there was no such {@link\n     * Throwable}.</p>\n     */\n    public Throwable getReason()\n    {\n        return reason;", "functions": [{"function_name": "getReason", "code": "    public Throwable getReason()\n    {\n        return reason;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException()\n    {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException(final String msg)\n    {\n        super(msg);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException(final Throwable reason)\n    {\n        super();\n        this.reason = reason;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException(final String msg, final Throwable reason)\n    {\n        super(msg);\n        this.reason = reason;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "ant-1.7-1232", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/extension/ExtensionUtil.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.extension.ExtensionUtil", "code": "public final class ExtensionUtil {\n    /**\n     * Class is not meant to be instantiated.\n     */\n    private ExtensionUtil() {\n    }\n\n    /**\n     * Convert a list of extensionAdapter objects to extensions.\n     *\n     * @param adapters the list of ExtensionAdapterss to add to convert\n     * @throws BuildException if an error occurs\n     */\n    static ArrayList toExtensions(final List adapters)\n        throws BuildException {\n        final ArrayList results = new ArrayList();\n\n        final int size = adapters.size();\n        for (int i = 0; i < size; i++) {\n            final ExtensionAdapter adapter =\n                (ExtensionAdapter) adapters.get(i);\n            final Extension extension = adapter.toExtension();\n            results.add(extension);\n        }\n\n        return results;\n    }\n\n    /**\n     * Generate a list of extensions from a specified fileset.\n     *\n     * @param libraries the list to add extensions to\n     * @param fileset the filesets containing librarys\n     * @throws BuildException if an error occurs\n     */\n    static void extractExtensions(final Project project,\n                                   final List libraries,\n                                   final List fileset)\n        throws BuildException {\n        if (!fileset.isEmpty()) {\n            final Extension[] extensions = getExtensions(project,\n                                                          fileset);\n            for (int i = 0; i < extensions.length; i++) {\n                libraries.add(extensions[ i ]);\n            }\n        }\n    }\n\n    /**\n     * Retrieve extensions from the specified libraries.\n     *\n     * @param libraries the filesets for libraries\n     * @return the extensions contained in libraries\n     * @throws BuildException if failing to scan libraries\n     */\n    private static Extension[] getExtensions(final Project project,\n                                              final List libraries)\n        throws BuildException {\n        final ArrayList extensions = new ArrayList();\n        final Iterator iterator = libraries.iterator();\n        while (iterator.hasNext()) {\n            final FileSet fileSet = (FileSet) iterator.next();\n\n            boolean includeImpl = true;\n            boolean includeURL = true;\n\n            if (fileSet instanceof LibFileSet) {\n                LibFileSet libFileSet = (LibFileSet) fileSet;\n                includeImpl = libFileSet.isIncludeImpl();\n                includeURL = libFileSet.isIncludeURL();\n            }\n\n            final DirectoryScanner scanner = fileSet.getDirectoryScanner(project);\n            final File basedir = scanner.getBasedir();\n            final String[] files = scanner.getIncludedFiles();\n            for (int i = 0; i < files.length; i++) {\n                final File file = new File(basedir, files[ i ]);\n                loadExtensions(file, extensions, includeImpl, includeURL);\n            }\n        }\n        return (Extension[]) extensions.toArray(new Extension[extensions.size()]);\n    }\n\n    /**\n     * Load list of available extensions from specified file.\n     *\n     * @param file the file\n     * @param extensionList the list to add available extensions to\n     * @throws BuildException if there is an error\n     */\n    private static void loadExtensions(final File file,\n                                        final List extensionList,\n                                        final boolean includeImpl,\n                                        final boolean includeURL)\n        throws BuildException {\n        try {\n            final JarFile jarFile = new JarFile(file);\n            final Extension[] extensions =\n                Extension.getAvailable(jarFile.getManifest());\n            for (int i = 0; i < extensions.length; i++) {\n                final Extension extension = extensions[ i ];\n                addExtension(extensionList, extension, includeImpl, includeURL);\n            }\n        } catch (final Exception e) {\n            throw new BuildException(e.getMessage(), e);\n        }\n    }\n\n    /**\n     * Add extension to list.\n     * If extension should not have implementation details but\n     * does strip them. If extension should not have url but does\n     * then strip it.\n     *\n     * @param extensionList the list of extensions to add to\n     * @param originalExtension the extension\n     * @param includeImpl false to exclude implementation details\n     * @param includeURL false to exclude implementation URL\n     */\n    private static void addExtension(final List extensionList,\n                                      final Extension originalExtension,\n                                      final boolean includeImpl,\n                                      final boolean includeURL) {\n        Extension extension = originalExtension;\n        if (!includeURL\n            && null != extension.getImplementationURL()) {\n            extension =\n                new Extension(extension.getExtensionName(),\n                               extension.getSpecificationVersion().toString(),\n                               extension.getSpecificationVendor(),\n                               extension.getImplementationVersion().toString(),\n                               extension.getImplementationVendor(),\n                               extension.getImplementationVendorID(),\n                               null);\n        }\n\n        final boolean hasImplAttributes =\n            null != extension.getImplementationURL()\n            || null != extension.getImplementationVersion()\n            || null != extension.getImplementationVendorID()\n            || null != extension.getImplementationVendor();\n\n        if (!includeImpl && hasImplAttributes) {\n            extension =\n                new Extension(extension.getExtensionName(),\n                               extension.getSpecificationVersion().toString(),\n                               extension.getSpecificationVendor(),\n                               null,\n                               null,\n                               null,\n                               extension.getImplementationURL());\n        }\n\n        extensionList.add(extension);\n    }\n\n    /**\n     * Retrieve manifest for specified file.\n     *\n     * @param file the file\n     * @return the manifest\n     * @throws BuildException if errror occurs (file doesn't exist,\n     *         file not a jar, manifest doesn't exist in file)\n     */\n    static Manifest getManifest(final File file)\n        throws BuildException {\n        try {\n            final JarFile jarFile = new JarFile(file);\n            Manifest m = jarFile.getManifest();\n            if (m == null) {\n                throw new BuildException(file + \" doesn't have a MANIFEST\");\n            }\n            return m;\n        } catch (final IOException ioe) {\n            throw new BuildException(ioe.getMessage(), ioe);", "functions": [{"function_name": "toExtensions", "code": "    static ArrayList toExtensions(final List adapters)\n        throws BuildException {\n        final ArrayList results = new ArrayList();\n\n        final int size = adapters.size();\n        for (int i = 0; i < size; i++) {\n            final ExtensionAdapter adapter =\n                (ExtensionAdapter) adapters.get(i);\n            final Extension extension = adapter.toExtension();\n            results.add(extension);\n        }\n\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [3, 9], [4, 10], [2, 11], [2, 12], [7, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 3], [10, 4], [11, 2], [12, 2], [13, 7], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "extractExtensions", "code": "    static void extractExtensions(final Project project,\n                                   final List libraries,\n                                   final List fileset)\n        throws BuildException {\n        if (!fileset.isEmpty()) {\n            final Extension[] extensions = getExtensions(project,\n                                                          fileset);\n            for (int i = 0; i < extensions.length; i++) {\n                libraries.add(extensions[ i ]);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [6, 8], [7, 9], [6, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 6], [9, 7], [10, 6], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getExtensions", "code": "    private static Extension[] getExtensions(final Project project,\n                                              final List libraries)\n        throws BuildException {\n        final ArrayList extensions = new ArrayList();\n        final Iterator iterator = libraries.iterator();\n        while (iterator.hasNext()) {\n            final FileSet fileSet = (FileSet) iterator.next();\n\n            boolean includeImpl = true;\n            boolean includeURL = true;\n\n            if (fileSet instanceof LibFileSet) {\n                LibFileSet libFileSet = (LibFileSet) fileSet;\n                includeImpl = libFileSet.isIncludeImpl();\n                includeURL = libFileSet.isIncludeURL();\n            }\n\n            final DirectoryScanner scanner = fileSet.getDirectoryScanner(project);\n            final File basedir = scanner.getBasedir();\n            final String[] files = scanner.getIncludedFiles();\n            for (int i = 0; i < files.length; i++) {\n                final File file = new File(basedir, files[ i ]);\n                loadExtensions(file, extensions, includeImpl, includeURL);\n            }\n        }\n        return (Extension[]) extensions.toArray(new Extension[extensions.size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [3, 17], [4, 18], [9, 19], [13, 20], [8, 21], [9, 22], [10, 23], [11, 24], [12, 25], [13, 26], [14, 27], [15, 28], [9, 29], [9, 30], [13, 31], [13, 32], [16, 33], [22, 34], [31, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 3], [18, 4], [19, 9], [20, 13], [21, 8], [22, 9], [23, 10], [24, 11], [25, 12], [26, 13], [27, 14], [28, 15], [29, 9], [30, 9], [31, 13], [32, 13], [33, 16], [34, 22], [35, 31], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "loadExtensions", "code": "    private static void loadExtensions(final File file,\n                                        final List extensionList,\n                                        final boolean includeImpl,\n                                        final boolean includeURL)\n        throws BuildException {\n        try {\n            final JarFile jarFile = new JarFile(file);\n            final Extension[] extensions =\n                Extension.getAvailable(jarFile.getManifest());\n            for (int i = 0; i < extensions.length; i++) {\n                final Extension extension = extensions[ i ];\n                addExtension(extensionList, extension, includeImpl, includeURL);\n            }\n        } catch (final Exception e) {\n            throw new BuildException(e.getMessage(), e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [7, 11], [10, 12], [7, 13], [8, 14], [9, 15], [12, 16], [7, 17], [7, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 7], [12, 10], [13, 7], [14, 8], [15, 9], [16, 12], [17, 7], [18, 7], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "addExtension", "code": "    private static void addExtension(final List extensionList,\n                                      final Extension originalExtension,\n                                      final boolean includeImpl,\n                                      final boolean includeURL) {\n        Extension extension = originalExtension;\n        if (!includeURL\n            && null != extension.getImplementationURL()) {\n            extension =\n                new Extension(extension.getExtensionName(),\n                               extension.getSpecificationVersion().toString(),\n                               extension.getSpecificationVendor(),\n                               extension.getImplementationVersion().toString(),\n                               extension.getImplementationVendor(),\n                               extension.getImplementationVendorID(),\n                               null);\n        }\n\n        final boolean hasImplAttributes =\n            null != extension.getImplementationURL()\n            || null != extension.getImplementationVersion()\n            || null != extension.getImplementationVendorID()\n            || null != extension.getImplementationVendor();\n\n        if (!includeImpl && hasImplAttributes) {\n            extension =\n                new Extension(extension.getExtensionName(),\n                               extension.getSpecificationVersion().toString(),\n                               extension.getSpecificationVendor(),\n                               null,\n                               null,\n                               null,\n                               extension.getImplementationURL());\n        }\n\n        extensionList.add(extension);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [2, 12], [11, 13], [1, 14], [12, 15], [12, 16], [3, 17], [13, 18], [13, 19], [14, 20], [15, 21], [15, 22], [16, 23], [16, 24], [17, 25], [20, 26], [20, 27], [20, 28], [20, 29], [20, 30], [20, 31], [20, 32], [23, 33], [23, 34], [24, 35], [24, 36], [25, 37], [25, 38], [25, 39], [25, 40], [25, 41], [25, 42], [25, 43], [31, 44], [35, 45], [35, 46], [36, 47], [36, 48], [40, 49], [42, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 2], [13, 11], [14, 1], [15, 12], [16, 12], [17, 3], [18, 13], [19, 13], [20, 14], [21, 15], [22, 15], [23, 16], [24, 16], [25, 17], [26, 20], [27, 20], [28, 20], [29, 20], [30, 20], [31, 20], [32, 20], [33, 23], [34, 23], [35, 24], [36, 24], [37, 25], [38, 25], [39, 25], [40, 25], [41, 25], [42, 25], [43, 25], [44, 31], [45, 35], [46, 35], [47, 36], [48, 36], [49, 40], [50, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "getManifest", "code": "    static Manifest getManifest(final File file)\n        throws BuildException {\n        try {\n            final JarFile jarFile = new JarFile(file);\n            Manifest m = jarFile.getManifest();\n            if (m == null) {\n                throw new BuildException(file + \" doesn't have a MANIFEST\");\n            }\n            return m;\n        } catch (final IOException ioe) {\n            throw new BuildException(ioe.getMessage(), ioe);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [5, 9], [8, 10], [5, 11], [9, 12], [6, 13], [7, 14], [10, 15], [11, 16], [16, 17], [17, 18], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 5], [10, 8], [11, 5], [12, 9], [13, 6], [14, 7], [15, 10], [16, 11], [17, 16], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "ExtensionUtil", "code": "    private ExtensionUtil() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-3.0-6073", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/AddPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.AddPtg", "code": "public class AddPtg\n    extends OperationPtg\n{\n    public final static int  SIZE = 1;\n    public final static byte sid  = 0x03;\n    \n    private final static String ADD = \"+\";\n\n    /** Creates new AddPtg */\n\n    public AddPtg()\n    {\n    }\n\n    public AddPtg(RecordInputStream in)\n    {\n\n    }\n    \n   \n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public int getType()\n    {\n        return TYPE_BINARY;\n    }\n\n    public int getNumberOfOperands()\n    {\n        return 2;\n    }\n    \n    /** Implementation of method from Ptg */\n    public String toFormulaString(Workbook book)\n    {\n        return \"+\";\n    }\n       \n   /** implementation of method from OperationsPtg*/  \n    public String toFormulaString(String[] operands) {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(operands[ 0 ]);\n        buffer.append(ADD);\n        buffer.append(operands[ 1 ]);\n        return buffer.toString();\n    }\n    \n    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}\n           \n    public Object clone() {\n      return new AddPtg();", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return TYPE_BINARY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfOperands", "code": "    public int getNumberOfOperands()\n    {\n        return 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \"+\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(String[] operands) {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(operands[ 0 ]);\n        buffer.append(ADD);\n        buffer.append(operands[ 1 ]);\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [2, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 2], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      return new AddPtg();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AddPtg", "code": "    public AddPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AddPtg", "code": "    public AddPtg(RecordInputStream in)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-3161", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/rmi/RmiComponent.java", "language": "java", "name": "org.apache.camel.component.rmi.RmiComponent", "code": "public class RmiComponent extends DefaultComponent<BeanExchange> {\n\n    public RmiComponent() {\n    }\n\n    public RmiComponent(CamelContext context) {\n        super(context);\n    }\n\n    @Override\n    protected Endpoint<BeanExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        return new RmiEndpoint(uri, this);", "functions": [{"function_name": "createEndpoint", "code": "    @Override\n    protected Endpoint<BeanExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        return new RmiEndpoint(uri, this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "RmiComponent", "code": "    public RmiComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "RmiComponent", "code": "    public RmiComponent(CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.6-7904", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/templates/XUnresolvedVariable.java", "language": "java", "name": "org.apache.xalan.templates.XUnresolvedVariable", "code": "public class XUnresolvedVariable extends XObject\n{  \n  /** The node context for execution. */\n  transient private int m_context;\n  \n  /** The transformer context for execution. */\n  transient private TransformerImpl m_transformer;\n  \n  /** An index to the point in the variable stack where we should\n   * begin variable searches for evaluation of expressions.\n   * This is -1 if m_isTopLevel is false. \n   **/\n  transient private int m_varStackPos = -1;\n\n  /** An index into the variable stack where the variable context \n   * ends, i.e. at the point we should terminate the search. \n   **/\n  transient private int m_varStackContext;\n  \n  /** true if this variable or parameter is a global.\n   *  @serial */\n  private boolean m_isGlobal;\n  \n  /** true if this variable or parameter is not currently being evaluated. */\n  transient private boolean m_doneEval = true;\n  \n  /**\n   * Create an XUnresolvedVariable, that may be executed at a later time.\n   * This is primarily used so that forward referencing works with \n   * global variables.  An XUnresolvedVariable is initially pushed \n   * into the global variable stack, and then replaced with the real \n   * thing when it is accessed.\n   *\n   * @param obj Must be a non-null reference to an ElemVariable.\n   * @param sourceNode The node context for execution.\n   * @param transformer The transformer execution context.\n   * @param varStackPos An index to the point in the variable stack where we should\n   * begin variable searches for evaluation of expressions.\n   * @param varStackContext An index into the variable stack where the variable context \n   * ends, i.e. at the point we should terminate the search.\n   * @param isGlobal true if this is a global variable.\n   */\n  public XUnresolvedVariable(ElemVariable obj, int sourceNode, \n                             TransformerImpl transformer,\n                             int varStackPos, int varStackContext,\n                             boolean isGlobal)\n  {\n    super(obj);\n    m_context = sourceNode;\n    m_transformer = transformer;\n    \n    m_varStackPos = varStackPos;\n    \n    m_varStackContext = varStackContext;\n    \n    m_isGlobal = isGlobal;\n  }\n    \n  /**\n   * For support of literal objects in xpaths.\n   *\n   * @param xctxt The XPath execution context.\n   *\n   * @return This object.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n    if (!m_doneEval) \n    {\n      this.m_transformer.getMsgMgr().error      \n        (xctxt.getSAXLocator(), XSLTErrorResources.ER_REFERENCING_ITSELF, \n          new Object[]{((ElemVariable)this.object()).getName().getLocalName()}); \n    }\n    VariableStack vars = xctxt.getVarStack();\n    \n    int currentFrame = vars.getStackFrame();\n   \n\n    ElemVariable velem = (ElemVariable)m_obj;\n    try\n    {\n      m_doneEval = false;\n      if(-1 != velem.m_frameSize)\n      \tvars.link(velem.m_frameSize);\n      XObject var = velem.getValue(m_transformer, m_context);\n      m_doneEval = true;\n      return var;\n    }\n    finally\n    {\n      \n      if(-1 != velem.m_frameSize)\n\t  \tvars.unlink(currentFrame);\n    }\n  }\n  \n  /**\n   * Set an index to the point in the variable stack where we should\n   * begin variable searches for evaluation of expressions.\n   * This is -1 if m_isTopLevel is false. \n   * \n   * @param top A valid value that specifies where in the variable \n   * stack the search should begin.\n   */\n  public void setVarStackPos(int top)\n  {\n    m_varStackPos = top;\n  }\n\n  /**\n   * Set an index into the variable stack where the variable context \n   * ends, i.e. at the point we should terminate the search.\n   * \n   * @param The point at which the search should terminate, normally \n   * zero for global variables.\n   */\n  public void setVarStackContext(int bottom)\n  {\n    m_varStackContext = bottom;\n  }\n  \n  /**\n   * Tell what kind of class this is.\n   *\n   * @return CLASS_UNRESOLVEDVARIABLE\n   */\n  public int getType()\n  {\n    return CLASS_UNRESOLVEDVARIABLE;\n  }\n  \n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return An informational string.\n   */\n  public String getTypeString()\n  {\n    return \"XUnresolvedVariable (\" + object().getClass().getName() + \")\";", "functions": [{"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n    if (!m_doneEval) \n    {\n      this.m_transformer.getMsgMgr().error      \n        (xctxt.getSAXLocator(), XSLTErrorResources.ER_REFERENCING_ITSELF, \n          new Object[]{((ElemVariable)this.object()).getName().getLocalName()}); \n    }\n    VariableStack vars = xctxt.getVarStack();\n    \n    int currentFrame = vars.getStackFrame();\n   \n\n    ElemVariable velem = (ElemVariable)m_obj;\n    try\n    {\n      m_doneEval = false;\n      if(-1 != velem.m_frameSize)\n      \tvars.link(velem.m_frameSize);\n      XObject var = velem.getValue(m_transformer, m_context);\n      m_doneEval = true;\n      return var;\n    }\n    finally\n    {\n      \n      if(-1 != velem.m_frameSize)\n\t  \tvars.unlink(currentFrame);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "IF", "RETURN", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [1, 12], [10, 13], [1, 14], [3, 15], [4, 16], [7, 17], [11, 18], [12, 19], [9, 20], [10, 21], [13, 22], [14, 23], [5, 24], [5, 25], [24, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 1], [13, 10], [14, 1], [15, 3], [16, 4], [17, 7], [18, 11], [19, 12], [20, 9], [21, 10], [22, 13], [23, 14], [24, 5], [25, 5], [26, 24], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "setVarStackPos", "code": "  public void setVarStackPos(int top)\n  {\n    m_varStackPos = top;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVarStackContext", "code": "  public void setVarStackContext(int bottom)\n  {\n    m_varStackContext = bottom;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_UNRESOLVEDVARIABLE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"XUnresolvedVariable (\" + object().getClass().getName() + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "XUnresolvedVariable", "code": "  public XUnresolvedVariable(ElemVariable obj, int sourceNode, \n                             TransformerImpl transformer,\n                             int varStackPos, int varStackContext,\n                             boolean isGlobal)\n  {\n    super(obj);\n    m_context = sourceNode;\n    m_transformer = transformer;\n    \n    m_varStackPos = varStackPos;\n    \n    m_varStackContext = varStackContext;\n    \n    m_isGlobal = isGlobal;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 1}
{"sample_id": "poi-2.5-5727", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/poifs/storage/RawDataBlock.java", "language": "java", "name": "org.apache.poi.poifs.storage.RawDataBlock", "code": "public class RawDataBlock\n    implements ListManagedBlock\n{\n    private byte[]  _data;\n    private boolean _eof;\n\n    /**\n     * Constructor RawDataBlock\n     *\n     * @param stream the InputStream from which the data will be read\n     *\n     * @exception IOException on I/O errors, and if an insufficient\n     *            amount of data is read\n     */\n\n    public RawDataBlock(final InputStream stream)\n        throws IOException\n    {\n        _data = new byte[ POIFSConstants.BIG_BLOCK_SIZE ];\n        int count = IOUtils.readFully(stream, _data);\n\n        if (count == -1)\n        {\n            _eof = true;\n        }\n        else if (count != POIFSConstants.BIG_BLOCK_SIZE)\n        {\n            String type = \" byte\" + ((count == 1) ? (\"\")\n                                                  : (\"s\"));\n\n            throw new IOException(\"Unable to read entire block; \" + count\n                                  + type + \" read; expected \"\n                                  + POIFSConstants.BIG_BLOCK_SIZE + \" bytes\");\n        }\n        else\n        {\n            _eof = false;\n        }\n    }\n\n    /**\n     * When we read the data, did we hit end of file?\n     *\n     * @return true if no data was read because we were at the end of\n     *         the file, else false\n     *\n     * @exception IOException\n     */\n\n    public boolean eof()\n        throws IOException\n    {\n        return _eof;\n    }\n\n    /* ********** START implementation of ListManagedBlock ********** */\n\n    /**\n     * Get the data from the block\n     *\n     * @return the block's data as a byte array\n     *\n     * @exception IOException if there is no data\n     */\n\n    public byte [] getData()\n        throws IOException\n    {\n        if (eof())\n        {\n            throw new IOException(\"Cannot return empty data\");\n        }\n        return _data;", "functions": [{"function_name": "eof", "code": "    public boolean eof()\n        throws IOException\n    {\n        return _eof;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getData", "code": "    public byte [] getData()\n        throws IOException\n    {\n        if (eof())\n        {\n            throw new IOException(\"Cannot return empty data\");\n        }\n        return _data;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "RawDataBlock", "code": "    public RawDataBlock(final InputStream stream)\n        throws IOException\n    {\n        _data = new byte[ POIFSConstants.BIG_BLOCK_SIZE ];\n        int count = IOUtils.readFully(stream, _data);\n\n        if (count == -1)\n        {\n            _eof = true;\n        }\n        else if (count != POIFSConstants.BIG_BLOCK_SIZE)\n        {\n            String type = \" byte\" + ((count == 1) ? (\"\")\n                                                  : (\"s\"));\n\n            throw new IOException(\"Unable to read entire block; \" + count\n                                  + type + \" read; expected \"\n                                  + POIFSConstants.BIG_BLOCK_SIZE + \" bytes\");\n        }\n        else\n        {\n            _eof = false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [5, 8], [2, 9], [4, 10], [4, 11], [1, 12], [4, 13], [10, 14], [12, 15], [13, 16], [14, 17], [11, 18], [17, 19], [17, 20], [18, 21], [18, 22], [20, 23], [21, 24], [21, 25], [21, 26], [23, 27], [23, 28], [26, 29], [28, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 5], [9, 2], [10, 4], [11, 4], [12, 1], [13, 4], [14, 10], [15, 12], [16, 13], [17, 14], [18, 11], [19, 17], [20, 17], [21, 18], [22, 18], [23, 20], [24, 21], [25, 21], [26, 21], [27, 23], [28, 23], [29, 26], [30, 28], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}], "label": 1}
{"sample_id": "jedit-3.2-3735", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/gui/EnhancedCheckBoxMenuItem.java", "language": "java", "name": "org.gjt.sp.jedit.gui.EnhancedCheckBoxMenuItem", "code": "public class EnhancedCheckBoxMenuItem extends JCheckBoxMenuItem\n{\n\tpublic EnhancedCheckBoxMenuItem(String label, EditAction action)\n\t{\n\t\tsuper(label);\n\t\tthis.action = action;\n\n\t\tif(action != null)\n\t\t{\n\t\t\tsetEnabled(true);\n\t\t\taddActionListener(new EditAction.Wrapper(action));\n\t\t\tshortcutProp1 = action.getName() + \".shortcut\";\n\t\t\tshortcutProp2 = action.getName() + \".shortcut2\";\n\t\t}\n\t\telse\n\t\t\tsetEnabled(false);\n\n\t\tsetModel(new Model());\n\t}\n\n\tpublic Dimension getPreferredSize()\n\t{\n\t\tDimension d = super.getPreferredSize();\n\n\t\tString shortcut = getShortcut();\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\td.width += (getFontMetrics(acceleratorFont)\n\t\t\t\t.stringWidth(shortcut) + 10);\n\t\t}\n\t\treturn d;\n\t}\n\n\tpublic void paint(Graphics g)\n\t{\n\t\tsuper.paint(g);\n\n\t\tString shortcut = getShortcut();\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\tg.setFont(acceleratorFont);\n\t\t\tg.setColor(getModel().isArmed() ?\n\t\t\t\tacceleratorSelectionForeground :\n\t\t\t\tacceleratorForeground);\n\t\t\tFontMetrics fm = g.getFontMetrics();\n\t\t\tInsets insets = getInsets();\n\t\t\tg.drawString(shortcut,getWidth() - (fm.stringWidth(\n\t\t\t\tshortcut) + insets.right + insets.left),\n\t\t\t\tgetFont().getSize() + (insets.top - 1)\n\t\t\t\t/* XXX magic number */);\n\t\t}\n\t}\n\n\tpublic String getActionCommand()\n\t{\n\t\treturn getModel().getActionCommand();\n\t}\n\n\t// private members\n\tprivate String shortcutProp1;\n\tprivate String shortcutProp2;\n\tprivate EditAction action;\n\tprivate static Font acceleratorFont;\n\tprivate static Color acceleratorForeground;\n\tprivate static Color acceleratorSelectionForeground;\n\n\tprivate String getShortcut()\n\t{\n\t\tif(action == null)\n\t\t\treturn null;\n\t\telse\n\t\t{\n\t\t\tString shortcut1 = jEdit.getProperty(shortcutProp1);\n\t\t\tString shortcut2 = jEdit.getProperty(shortcutProp2);\n\n\t\t\tif(shortcut1 == null || shortcut1.length() == 0)\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn shortcut1;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut1 + \" or \" + shortcut2;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic\n\t{\n\t\tacceleratorFont = UIManager.getFont(\"MenuItem.acceleratorFont\");\n\t\tacceleratorFont = new Font(\"Monospaced\",\n\t\t\tacceleratorFont.getStyle(),\n\t\t\tacceleratorFont.getSize());\n\t\tacceleratorForeground = UIManager\n\t\t\t.getColor(\"MenuItem.acceleratorForeground\");\n\t\tacceleratorSelectionForeground = UIManager\n\t\t\t.getColor(\"MenuItem.acceleratorSelectionForeground\");\n\t}\n\n\tclass Model extends DefaultButtonModel\n\t{\n\t\tpublic boolean isSelected()\n\t\t{\n\t\t\tif(!isShowing())\n\t\t\t\treturn false;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn action.isSelected(EditAction.getView(\n\t\t\t\t\tEnhancedCheckBoxMenuItem.this));\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,t);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic void setSelected(boolean b) {}", "functions": [{"function_name": "getPreferredSize", "code": "\tpublic Dimension getPreferredSize()\n\t{\n\t\tDimension d = super.getPreferredSize();\n\n\t\tString shortcut = getShortcut();\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\td.width += (getFontMetrics(acceleratorFont)\n\t\t\t\t.stringWidth(shortcut) + 10);\n\t\t}\n\t\treturn d;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "paint", "code": "\tpublic void paint(Graphics g)\n\t{\n\t\tsuper.paint(g);\n\n\t\tString shortcut = getShortcut();\n\n\t\tif(shortcut != null)\n\t\t{\n\t\t\tg.setFont(acceleratorFont);\n\t\t\tg.setColor(getModel().isArmed() ?\n\t\t\t\tacceleratorSelectionForeground :\n\t\t\t\tacceleratorForeground);\n\t\t\tFontMetrics fm = g.getFontMetrics();\n\t\t\tInsets insets = getInsets();\n\t\t\tg.drawString(shortcut,getWidth() - (fm.stringWidth(\n\t\t\t\tshortcut) + insets.right + insets.left),\n\t\t\t\tgetFont().getSize() + (insets.top - 1)", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [1, 9], [1, 10], [1, 11], [9, 12], [9, 13], [5, 14], [6, 15], [10, 16], [12, 17], [12, 18], [13, 19], [13, 20], [16, 21], [17, 22], [18, 23], [19, 24], [21, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 1], [10, 1], [11, 1], [12, 9], [13, 9], [14, 5], [15, 6], [16, 10], [17, 12], [18, 12], [19, 13], [20, 13], [21, 16], [22, 17], [23, 18], [24, 19], [25, 21], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getActionCommand", "code": "\tpublic String getActionCommand()\n\t{\n\t\treturn getModel().getActionCommand();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getShortcut", "code": "\tprivate String getShortcut()\n\t{\n\t\tif(action == null)\n\t\t\treturn null;\n\t\telse\n\t\t{\n\t\t\tString shortcut1 = jEdit.getProperty(shortcutProp1);\n\t\t\tString shortcut2 = jEdit.getProperty(shortcutProp2);\n\n\t\t\tif(shortcut1 == null || shortcut1.length() == 0)\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn shortcut1;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut1 + \" or \" + shortcut2;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [4, 9], [4, 10], [4, 11], [9, 12], [9, 13], [5, 14], [6, 15], [10, 16], [10, 17], [10, 18], [11, 19], [11, 20], [11, 21], [12, 22], [12, 23], [13, 24], [16, 25], [18, 26], [18, 27], [20, 28], [21, 29], [21, 30], [25, 31], [26, 32], [26, 33], [27, 34], [29, 35], [29, 36], [30, 37], [31, 38], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 4], [10, 4], [11, 4], [12, 9], [13, 9], [14, 5], [15, 6], [16, 10], [17, 10], [18, 10], [19, 11], [20, 11], [21, 11], [22, 12], [23, 12], [24, 13], [25, 16], [26, 18], [27, 18], [28, 20], [29, 21], [30, 21], [31, 25], [32, 26], [33, 26], [34, 27], [35, 29], [36, 29], [37, 30], [38, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "EnhancedCheckBoxMenuItem", "code": "\tpublic EnhancedCheckBoxMenuItem(String label, EditAction action)\n\t{\n\t\tsuper(label);\n\t\tthis.action = action;\n\n\t\tif(action != null)\n\t\t{\n\t\t\tsetEnabled(true);\n\t\t\taddActionListener(new EditAction.Wrapper(action));\n\t\t\tshortcutProp1 = action.getName() + \".shortcut\";\n\t\t\tshortcutProp2 = action.getName() + \".shortcut2\";\n\t\t}\n\t\telse\n\t\t\tsetEnabled(false);\n\n\t\tsetModel(new Model());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [4, 7], [1, 8], [5, 9], [8, 10], [1, 11], [1, 12], [1, 13], [1, 14], [11, 15], [12, 16], [13, 17], [14, 18], [15, 19], [15, 20], [16, 21], [16, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 4], [8, 1], [9, 5], [10, 8], [11, 1], [12, 1], [13, 1], [14, 1], [15, 11], [16, 12], [17, 13], [18, 14], [19, 15], [20, 15], [21, 16], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}], "label": 1}
{"sample_id": "xalan-2.4-6708", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xpath/functions/FunctionMultiArgs.java", "language": "java", "name": "org.apache.xpath.functions.FunctionMultiArgs", "code": "public class FunctionMultiArgs extends Function3Args\n{\n\n  /** Argument expressions that are at index 3 or greater.\n   *  @serial */\n  Expression[] m_args;\n\n  /**\n   * Set an argument expression for a function.  This method is called by the\n   * XPath compiler.\n   *\n   * @param arg non-null expression that represents the argument.\n   * @param argNum The argument number index.\n   *\n   * @throws WrongNumberArgsException If a derived class determines that the\n   * number of arguments is incorrect.\n   */\n  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n\n    if (argNum < 3)\n      super.setArg(arg, argNum);\n    else\n    {\n      if (null == m_args)\n      {\n        m_args = new Expression[1];\n        m_args[0] = arg;\n      }\n      else\n      {\n\n        Expression[] args = new Expression[m_args.length + 1];\n\n        System.arraycopy(m_args, 0, args, 0, m_args.length);\n\n        args[m_args.length] = arg;\n        m_args = args;\n      }\n      arg.exprSetParent(this);\n    }\n  }\n  \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n    if(null != m_args)\n    {\n      for (int i = 0; i < m_args.length; i++) \n      {\n        m_args[i].fixupVariables(vars, globalsSize);\n      }\n    }\n  }\n\n  /**\n   * Check that the number of arguments passed to this function is correct.\n   *\n   *\n   * @param argNum The number of arguments that is being passed to the function.\n   *\n   * @throws WrongNumberArgsException\n   */\n  public void checkNumberArgs(int argNum) throws WrongNumberArgsException{}\n\n  /**\n   * Constructs and throws a WrongNumberArgException with the appropriate\n   * message for this function object.  This class supports an arbitrary\n   * number of arguments, so this method must never be called.\n   *\n   * @throws WrongNumberArgsException\n   */\n  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n    String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ \"Programmer's assertion:  the method FunctionMultiArgs.reportWrongNumberArgs() should never be called.\" });\n\n    throw new RuntimeException(fMsg);\n  }\n\n  /**\n   * Tell if this expression or it's subexpressions can traverse outside\n   * the current subtree.\n   *\n   * @return true if traversal outside the context node's subtree can occur.\n   */\n  public boolean canTraverseOutsideSubtree()\n  {\n\n    if (super.canTraverseOutsideSubtree())\n      return true;\n    else\n    {\n      int n = m_args.length;\n\n      for (int i = 0; i < n; i++)\n      {\n        if (m_args[i].canTraverseOutsideSubtree())\n          return true;\n      }\n\n      return false;\n    }\n  }\n  \n  class ArgMultiOwner implements ExpressionOwner\n  {\n  \tint m_argIndex;\n  \t\n  \tArgMultiOwner(int index)\n  \t{\n  \t\tm_argIndex = index;\n  \t}\n  \t\n    /**\n     * @see ExpressionOwner#getExpression()\n     */\n    public Expression getExpression()\n    {\n      return m_args[m_argIndex];\n    }\n\n\n    /**\n     * @see ExpressionOwner#setExpression(Expression)\n     */\n    public void setExpression(Expression exp)\n    {\n    \texp.exprSetParent(FunctionMultiArgs.this);\n    \tm_args[m_argIndex] = exp;\n    }\n  }\n\n   \n    /**\n     * @see XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n     */\n    public void callArgVisitors(XPathVisitor visitor)\n    {\n      super.callArgVisitors(visitor);\n      if (null != m_args)\n      {\n        int n = m_args.length;\n        for (int i = 0; i < n; i++)\n        {\n          m_args[i].callVisitors(new ArgMultiOwner(i), visitor);\n        }\n      }\n    }\n    \n    /**\n     * @see Expression#deepEquals(Expression)\n     */\n    public boolean deepEquals(Expression expr)\n    {\n      if (!super.deepEquals(expr))\n            return false;\n\n      FunctionMultiArgs fma = (FunctionMultiArgs) expr;\n      if (null != m_args)\n      {\n        int n = m_args.length;\n        if ((null == fma) || (fma.m_args.length != n))\n              return false;\n\n        for (int i = 0; i < n; i++)\n        {\n          if (!m_args[i].deepEquals(fma.m_args[i]))\n                return false;\n        }\n\n      }\n      else if (null != fma.m_args)\n      {\n          return false;\n      }\n\n      return true;", "functions": [{"function_name": "setArg", "code": "  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n\n    if (argNum < 3)\n      super.setArg(arg, argNum);\n    else\n    {\n      if (null == m_args)\n      {\n        m_args = new Expression[1];\n        m_args[0] = arg;\n      }\n      else\n      {\n\n        Expression[] args = new Expression[m_args.length + 1];\n\n        System.arraycopy(m_args, 0, args, 0, m_args.length);\n\n        args[m_args.length] = arg;\n        m_args = args;\n      }\n      arg.exprSetParent(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [5, 9], [8, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [13, 16], [13, 17], [9, 18], [15, 19], [18, 20], [14, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 5], [10, 8], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 13], [17, 13], [18, 9], [19, 15], [20, 18], [21, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n    if(null != m_args)\n    {\n      for (int i = 0; i < m_args.length; i++) \n      {\n        m_args[i].fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "checkNumberArgs", "code": "  public void checkNumberArgs(int argNum) throws WrongNumberArgsException{}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reportWrongNumberArgs", "code": "  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n    String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ \"Programmer's assertion:  the method FunctionMultiArgs.reportWrongNumberArgs() should never be called.\" });\n\n    throw new RuntimeException(fMsg);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "canTraverseOutsideSubtree", "code": "  public boolean canTraverseOutsideSubtree()\n  {\n\n    if (super.canTraverseOutsideSubtree())\n      return true;\n    else\n    {\n      int n = m_args.length;\n\n      for (int i = 0; i < n; i++)\n      {\n        if (m_args[i].canTraverseOutsideSubtree())\n          return true;\n      }\n\n      return false;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [4, 8], [4, 9], [9, 10], [4, 11], [10, 12], [9, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 4], [9, 4], [10, 9], [11, 4], [12, 10], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "callArgVisitors", "code": "    public void callArgVisitors(XPathVisitor visitor)\n    {\n      super.callArgVisitors(visitor);\n      if (null != m_args)\n      {\n        int n = m_args.length;\n        for (int i = 0; i < n; i++)\n        {\n          m_args[i].callVisitors(new ArgMultiOwner(i), visitor);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [4, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 4], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "deepEquals", "code": "    public boolean deepEquals(Expression expr)\n    {\n      if (!super.deepEquals(expr))\n            return false;\n\n      FunctionMultiArgs fma = (FunctionMultiArgs) expr;\n      if (null != m_args)\n      {\n        int n = m_args.length;\n        if ((null == fma) || (fma.m_args.length != n))\n              return false;\n\n        for (int i = 0; i < n; i++)\n        {\n          if (!m_args[i].deepEquals(fma.m_args[i]))\n                return false;\n        }\n\n      }\n      else if (null != fma.m_args)\n      {\n          return false;\n      }\n\n      return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [7, 10], [2, 11], [2, 12], [2, 13], [8, 14], [9, 15], [7, 16], [10, 17], [11, 18], [12, 19], [12, 20], [16, 21], [11, 22], [19, 23], [20, 24], [20, 25], [22, 26], [11, 27], [25, 28], [26, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 7], [11, 2], [12, 2], [13, 2], [14, 8], [15, 9], [16, 7], [17, 10], [18, 11], [19, 12], [20, 12], [21, 16], [22, 11], [23, 19], [24, 20], [25, 20], [26, 22], [27, 11], [28, 25], [29, 26], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}], "label": 1}
{"sample_id": "camel-1.4-2070", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/file/FileEndpoint.java", "language": "java", "name": "org.apache.camel.component.file.FileEndpoint", "code": "public class FileEndpoint extends ScheduledPollEndpoint<FileExchange> {\n    private static final transient Log LOG = LogFactory.getLog(FileEndpoint.class);\n    private static final String DEFAULT_STRATEGYFACTORY_CLASS =\n        \"org.apache.camel.component.file.strategy.FileProcessStrategyFactory\";\n\n    private File file;\n    private FileProcessStrategy fileProcessStrategy;\n    private boolean autoCreate = true;\n    private boolean lock = true;\n    private boolean delete;\n    private boolean noop;\n    private boolean append = true;\n    private String moveNamePrefix;\n    private String moveNamePostfix;\n    private String[] excludedNamePrefixes = {\".\"};\n    private String[] excludedNamePostfixes = {FileProcessStrategySupport.DEFAULT_LOCK_FILE_POSTFIX};\n    private int bufferSize = 128 * 1024;\n    private boolean ignoreFileNameHeader;\n\n    protected FileEndpoint(File file, String endpointUri, FileComponent component) {\n        super(endpointUri, component);\n        this.file = file;\n    }\n\n    public FileEndpoint(String endpointUri, File file) {\n        super(endpointUri);\n        this.file = file;\n    }\n\n    public FileEndpoint(File file) {\n        this.file = file;\n    }\n\n    public FileEndpoint() {\n    }\n\n    public Producer<FileExchange> createProducer() throws Exception {\n        Producer<FileExchange> result = new FileProducer(this);\n        return result;\n    }\n\n    public Consumer<FileExchange> createConsumer(Processor processor) throws Exception {\n        Consumer<FileExchange> result = new FileConsumer(this, processor);\n        configureConsumer(result);\n        return result;\n    }\n\n    /**\n     * Create a new exchange for communicating with this endpoint\n     *\n     * @param file  the file\n     * @return the created exchange\n     */\n    public FileExchange createExchange(File file) {\n        return new FileExchange(getCamelContext(), getExchangePattern(), file);\n    }\n\n    @Override\n    public FileExchange createExchange() {\n        return createExchange(getFile());\n    }\n\n    @Override\n    public FileExchange createExchange(ExchangePattern pattern) {\n        return new FileExchange(getCamelContext(), pattern, file);\n    }\n\n\n    /**\n     * Return the file name that will be auto-generated for the given message if none is provided\n     */\n    public String getGeneratedFileName(Message message) {\n        return getFileFriendlyMessageId(message.getMessageId());\n    }\n\n    /**\n     * Configures the given message with the file which sets the body to the file object\n     * and sets the {@link FileComponent#HEADER_FILE_NAME} header.\n     */\n    public void configureMessage(File file, Message message) {\n        message.setBody(file);\n        String relativePath = file.getPath().substring(getFile().getPath().length());\n        if (relativePath.startsWith(File.separator) || relativePath.startsWith(\"/\")) {\n            relativePath = relativePath.substring(1);\n        }\n        message.setHeader(FileComponent.HEADER_FILE_NAME, relativePath);\n    }\n\n    public File getFile() {\n        ObjectHelper.notNull(file, \"file\");\n        if (autoCreate && !file.exists()) {\n            file.mkdirs();\n        }\n        return file;\n    }\n\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public boolean isAutoCreate() {\n        return this.autoCreate;\n    }\n\n    public void setAutoCreate(boolean autoCreate) {\n        this.autoCreate = autoCreate;\n    }\n\n    public FileProcessStrategy getFileStrategy() {\n        if (fileProcessStrategy == null) {\n            fileProcessStrategy = createFileStrategy();\n            LOG.debug(\"Using file process strategy: \" + fileProcessStrategy);\n        }\n        return fileProcessStrategy;\n    }\n\n    /**\n     * Sets the strategy to be used when the file has been processed such as\n     * deleting or renaming it etc.\n     *\n     * @param fileProcessStrategy the new strategy to use\n     */\n    public void setFileStrategy(FileProcessStrategy fileProcessStrategy) {\n        this.fileProcessStrategy = fileProcessStrategy;\n    }\n\n    public boolean isDelete() {\n        return delete;\n    }\n\n    public void setDelete(boolean delete) {\n        this.delete = delete;\n    }\n\n    public boolean isLock() {\n        return lock;\n    }\n\n    public void setLock(boolean lock) {\n        this.lock = lock;\n    }\n\n    public String getMoveNamePostfix() {\n        return moveNamePostfix;\n    }\n\n    /**\n     * Sets the name postfix appended to moved files. For example to rename all\n     * the files from <tt>*</tt> to <tt>*.done</tt> set this value to <tt>.done</tt>\n     */\n    public void setMoveNamePostfix(String moveNamePostfix) {\n        this.moveNamePostfix = moveNamePostfix;\n    }\n\n    public String getMoveNamePrefix() {\n        return moveNamePrefix;\n    }\n\n    /**\n     * Sets the name prefix appended to moved files. For example to move\n     * processed files into a hidden directory called <tt>.camel</tt> set this value to\n     * <tt>.camel/</tt>\n     */\n    public void setMoveNamePrefix(String moveNamePrefix) {\n        this.moveNamePrefix = moveNamePrefix;\n    }\n\n    public String[] getExcludedNamePrefixes() {\n        return excludedNamePrefixes;\n    }\n\n    /**\n     * Sets the excluded file name prefixes, such as <tt>\".\"</tt> for hidden files which\n     * are excluded by default\n     */\n    public void setExcludedNamePrefixes(String[] excludedNamePrefixes) {\n        this.excludedNamePrefixes = excludedNamePrefixes;\n    }\n\n    public String[] getExcludedNamePostfixes() {\n        return excludedNamePostfixes;\n    }\n\n    /**\n     * Sets the excluded file name postfixes, such as {@link FileProcessStrategySupport#DEFAULT_LOCK_FILE_POSTFIX}\n     * to ignore lock files by default.\n     */\n    public void setExcludedNamePostfixes(String[] excludedNamePostfixes) {\n        this.excludedNamePostfixes = excludedNamePostfixes;\n    }\n\n    public boolean isNoop() {\n        return noop;\n    }\n\n    /**\n     * If set to true then the default {@link FileProcessStrategy} will be to use the\n     * {@link org.apache.camel.component.file.strategy.NoOpFileProcessStrategy NoOpFileProcessStrategy}\n     * to not move or copy processed files\n     */\n    public void setNoop(boolean noop) {\n        this.noop = noop;\n    }\n\n    public boolean isAppend() {\n        return append;\n    }\n\n    /**\n     * When writing do we append to the end of the file, or replace it?\n     * The default is to append\n     */\n    public void setAppend(boolean append) {\n        this.append = append;\n    }\n\n    public int getBufferSize() {\n        return bufferSize;\n    }\n\n    /**\n     * Sets the buffer size used to read/write files\n     */\n    public void setBufferSize(int bufferSize) {\n        this.bufferSize = bufferSize;\n    }\n\n    public boolean isIgnoreFileNameHeader() {\n        return ignoreFileNameHeader;\n    }\n\n    /**\n     * If this flag is enabled then producers will ignore the {@link FileComponent#HEADER_FILE_NAME}\n     * header and generate a new dynamic file\n     */\n    public void setIgnoreFileNameHeader(boolean ignoreFileNameHeader) {\n        this.ignoreFileNameHeader = ignoreFileNameHeader;\n    }\n\n    /**\n     * A strategy method to lazily create the file strategy\n     */\n    protected FileProcessStrategy createFileStrategy() {\n        Class<?> factory = null;\n        try {\n            FactoryFinder finder = new FactoryFinder(\"META-INF/services/org/apache/camel/component/\");\n            factory = finder.findClass(\"file\", \"strategy.factory.\");\n        } catch (ClassNotFoundException e) {\n            LOG.debug(\"'strategy.factory.class' not found\", e);\n        } catch (IOException e) {\n            LOG.debug(\"No strategy factory defined in 'META-INF/services/org/apache/camel/component/file'\", e);\n        }\n\n        if (factory == null) {\n            factory = ObjectHelper.loadClass(DEFAULT_STRATEGYFACTORY_CLASS);\n            if (factory == null) {\n                throw new TypeNotPresentException(\"FileProcessStrategyFactory class not found\", null);\n            }\n        }\n\n        try {\n            Method factoryMethod = factory.getMethod(\"createFileProcessStrategy\", Properties.class);\n            return (FileProcessStrategy) ObjectHelper.invokeMethod(factoryMethod, null, getParamsAsProperties());\n        } catch (NoSuchMethodException e) {\n            throw new TypeNotPresentException(factory.getSimpleName()\n                + \".createFileProcessStrategy(Properties params) method not found\", e);\n        }\n    }\n\n    protected Properties getParamsAsProperties() {\n        Properties params = new Properties();\n        if (isNoop()) {\n            params.setProperty(\"noop\", Boolean.toString(true));\n        }\n        if (isDelete()) {\n            params.setProperty(\"delete\", Boolean.toString(true));\n        }\n        if (isAppend()) {\n            params.setProperty(\"append\", Boolean.toString(true));\n        }\n        if (isLock()) {\n            params.setProperty(\"lock\", Boolean.toString(true));\n        }\n        if (moveNamePrefix != null) {\n            params.setProperty(\"moveNamePrefix\", moveNamePrefix);\n        }\n        if (moveNamePostfix != null) {\n            params.setProperty(\"moveNamePostfix\", moveNamePostfix);\n        }\n        return params;\n    }\n\n    @Override\n    protected String createEndpointUri() {\n    }\n    \n    protected  String getFileFriendlyMessageId(String id) {\n        return UuidGenerator.generateSanitizedId(id);", "functions": [{"function_name": "createProducer", "code": "    public Producer<FileExchange> createProducer() throws Exception {\n        Producer<FileExchange> result = new FileProducer(this);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createConsumer", "code": "    public Consumer<FileExchange> createConsumer(Processor processor) throws Exception {\n        Consumer<FileExchange> result = new FileConsumer(this, processor);\n        configureConsumer(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createExchange", "code": "    public FileExchange createExchange(File file) {\n        return new FileExchange(getCamelContext(), getExchangePattern(), file);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createExchange", "code": "    @Override\n    public FileExchange createExchange() {\n        return createExchange(getFile());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createExchange", "code": "    @Override\n    public FileExchange createExchange(ExchangePattern pattern) {\n        return new FileExchange(getCamelContext(), pattern, file);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getGeneratedFileName", "code": "    public String getGeneratedFileName(Message message) {\n        return getFileFriendlyMessageId(message.getMessageId());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "configureMessage", "code": "    public void configureMessage(File file, Message message) {\n        message.setBody(file);\n        String relativePath = file.getPath().substring(getFile().getPath().length());\n        if (relativePath.startsWith(File.separator) || relativePath.startsWith(\"/\")) {\n            relativePath = relativePath.substring(1);\n        }\n        message.setHeader(FileComponent.HEADER_FILE_NAME, relativePath);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [6, 8], [6, 9], [2, 10], [1, 11], [8, 12], [10, 13], [11, 14], [13, 15], [14, 16], [15, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 6], [9, 6], [10, 2], [11, 1], [12, 8], [13, 10], [14, 11], [15, 13], [16, 14], [17, 15], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getFile", "code": "    public File getFile() {\n        ObjectHelper.notNull(file, \"file\");\n        if (autoCreate && !file.exists()) {\n            file.mkdirs();\n        }\n        return file;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [0, 4], [3, 5], [4, 6], [2, 7], [1, 0], [2, 0], [3, 2], [4, 0], [5, 3], [6, 4], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAutoCreate", "code": "    public boolean isAutoCreate() {\n        return this.autoCreate;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoCreate", "code": "    public void setAutoCreate(boolean autoCreate) {\n        this.autoCreate = autoCreate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFileStrategy", "code": "    public FileProcessStrategy getFileStrategy() {\n        if (fileProcessStrategy == null) {\n            fileProcessStrategy = createFileStrategy();\n            LOG.debug(\"Using file process strategy: \" + fileProcessStrategy);\n        }\n        return fileProcessStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setFileStrategy", "code": "    public void setFileStrategy(FileProcessStrategy fileProcessStrategy) {\n        this.fileProcessStrategy = fileProcessStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDelete", "code": "    public boolean isDelete() {\n        return delete;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDelete", "code": "    public void setDelete(boolean delete) {\n        this.delete = delete;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isLock", "code": "    public boolean isLock() {\n        return lock;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLock", "code": "    public void setLock(boolean lock) {\n        this.lock = lock;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMoveNamePostfix", "code": "    public String getMoveNamePostfix() {\n        return moveNamePostfix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMoveNamePostfix", "code": "    public void setMoveNamePostfix(String moveNamePostfix) {\n        this.moveNamePostfix = moveNamePostfix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMoveNamePrefix", "code": "    public String getMoveNamePrefix() {\n        return moveNamePrefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMoveNamePrefix", "code": "    public void setMoveNamePrefix(String moveNamePrefix) {\n        this.moveNamePrefix = moveNamePrefix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExcludedNamePrefixes", "code": "    public String[] getExcludedNamePrefixes() {\n        return excludedNamePrefixes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExcludedNamePrefixes", "code": "    public void setExcludedNamePrefixes(String[] excludedNamePrefixes) {\n        this.excludedNamePrefixes = excludedNamePrefixes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExcludedNamePostfixes", "code": "    public String[] getExcludedNamePostfixes() {\n        return excludedNamePostfixes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExcludedNamePostfixes", "code": "    public void setExcludedNamePostfixes(String[] excludedNamePostfixes) {\n        this.excludedNamePostfixes = excludedNamePostfixes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNoop", "code": "    public boolean isNoop() {\n        return noop;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNoop", "code": "    public void setNoop(boolean noop) {\n        this.noop = noop;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAppend", "code": "    public boolean isAppend() {\n        return append;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAppend", "code": "    public void setAppend(boolean append) {\n        this.append = append;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBufferSize", "code": "    public int getBufferSize() {\n        return bufferSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBufferSize", "code": "    public void setBufferSize(int bufferSize) {\n        this.bufferSize = bufferSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isIgnoreFileNameHeader", "code": "    public boolean isIgnoreFileNameHeader() {\n        return ignoreFileNameHeader;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreFileNameHeader", "code": "    public void setIgnoreFileNameHeader(boolean ignoreFileNameHeader) {\n        this.ignoreFileNameHeader = ignoreFileNameHeader;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createFileStrategy", "code": "    protected FileProcessStrategy createFileStrategy() {\n        Class<?> factory = null;\n        try {\n            FactoryFinder finder = new FactoryFinder(\"META-INF/services/org/apache/camel/component/\");\n            factory = finder.findClass(\"file\", \"strategy.factory.\");\n        } catch (ClassNotFoundException e) {\n            LOG.debug(\"'strategy.factory.class' not found\", e);\n        } catch (IOException e) {\n            LOG.debug(\"No strategy factory defined in 'META-INF/services/org/apache/camel/component/file'\", e);\n        }\n\n        if (factory == null) {\n            factory = ObjectHelper.loadClass(DEFAULT_STRATEGYFACTORY_CLASS);\n            if (factory == null) {\n                throw new TypeNotPresentException(\"FileProcessStrategyFactory class not found\", null);\n            }\n        }\n\n        try {\n            Method factoryMethod = factory.getMethod(\"createFileProcessStrategy\", Properties.class);\n            return (FileProcessStrategy) ObjectHelper.invokeMethod(factoryMethod, null, getParamsAsProperties());\n        } catch (NoSuchMethodException e) {\n            throw new TypeNotPresentException(factory.getSimpleName()\n                + \".createFileProcessStrategy(Properties params) method not found\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "TRY", "VAR_DECL", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "CATCH", "CATCH", "VAR_DECL", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [3, 10], [3, 11], [5, 12], [2, 13], [8, 14], [3, 15], [4, 16], [12, 17], [6, 18], [7, 19], [13, 20], [2, 21], [9, 22], [10, 23], [15, 24], [11, 25], [17, 26], [18, 27], [18, 28], [19, 29], [13, 30], [20, 31], [21, 32], [22, 33], [23, 34], [24, 35], [24, 36], [25, 37], [26, 38], [26, 39], [30, 40], [40, 41], [40, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 3], [11, 3], [12, 5], [13, 2], [14, 8], [15, 3], [16, 4], [17, 12], [18, 6], [19, 7], [20, 13], [21, 2], [22, 9], [23, 10], [24, 15], [25, 11], [26, 17], [27, 18], [28, 18], [29, 19], [30, 13], [31, 20], [32, 21], [33, 22], [34, 23], [35, 24], [36, 24], [37, 25], [38, 26], [39, 26], [40, 30], [41, 40], [42, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getParamsAsProperties", "code": "    protected Properties getParamsAsProperties() {\n        Properties params = new Properties();\n        if (isNoop()) {\n            params.setProperty(\"noop\", Boolean.toString(true));\n        }\n        if (isDelete()) {\n            params.setProperty(\"delete\", Boolean.toString(true));\n        }\n        if (isAppend()) {\n            params.setProperty(\"append\", Boolean.toString(true));\n        }\n        if (isLock()) {\n            params.setProperty(\"lock\", Boolean.toString(true));\n        }\n        if (moveNamePrefix != null) {\n            params.setProperty(\"moveNamePrefix\", moveNamePrefix);\n        }\n        if (moveNamePostfix != null) {\n            params.setProperty(\"moveNamePostfix\", moveNamePostfix);\n        }\n        return params;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [5, 12], [6, 13], [7, 14], [9, 15], [10, 16], [8, 17], [2, 18], [3, 19], [4, 20], [5, 21], [6, 22], [7, 23], [18, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [22, 30], [22, 31], [23, 32], [23, 33], [26, 34], [28, 35], [30, 36], [32, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 5], [13, 6], [14, 7], [15, 9], [16, 10], [17, 8], [18, 2], [19, 3], [20, 4], [21, 5], [22, 6], [23, 7], [24, 18], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 22], [31, 22], [32, 23], [33, 23], [34, 26], [35, 28], [36, 30], [37, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "createEndpointUri", "code": "    @Override\n    protected String createEndpointUri() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getFileFriendlyMessageId", "code": "    protected  String getFileFriendlyMessageId(String id) {\n        return UuidGenerator.generateSanitizedId(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FileEndpoint", "code": "    protected FileEndpoint(File file, String endpointUri, FileComponent component) {\n        super(endpointUri, component);\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "FileEndpoint", "code": "    public FileEndpoint(String endpointUri, File file) {\n        super(endpointUri);\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FileEndpoint", "code": "    public FileEndpoint(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FileEndpoint", "code": "    public FileEndpoint() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "jedit-3.2-3638", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/search/SearchFileSet.java", "language": "java", "name": "org.gjt.sp.jedit.search.SearchFileSet", "code": "public interface SearchFileSet\n{\n\t/**\n\t * Returns the first buffer to search.\n\t * @param view The view performing the search\n\t */\n\tBuffer getFirstBuffer(View view);\n\n\t/**\n\t * Returns the next buffer to search.\n\t * @param view The view performing the search\n\t * @param buffer The last buffer searched\n\t */\n\tBuffer getNextBuffer(View view, Buffer buffer);\n\n\t/**\n\t * Called if the specified buffer was found to have a match.\n\t * @param buffer The buffer\n\t */\n\tvoid matchFound(Buffer buffer);\n\n\t/**\n\t * Returns the number of buffers in this file set.\n\t */\n\tint getBufferCount();\n\n\t/**\n\t * Returns the BeanShell code that will recreate this file set.\n\t * @since jEdit 2.7pre3\n\t */\n\tString getCode();", "functions": [{"function_name": "getFirstBuffer", "code": "\tBuffer getFirstBuffer(View view);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNextBuffer", "code": "\tBuffer getNextBuffer(View view, Buffer buffer);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "matchFound", "code": "\tvoid matchFound(Buffer buffer);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBufferCount", "code": "\tint getBufferCount();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getCode", "code": "\tString getCode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.6-7597", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/AttributeSet.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.AttributeSet", "code": "final class AttributeSet extends TopLevelElement {\n\n    private static final String AttributeSetPrefix = \"$as$\";\n    \n    private QName            _name;\n    private UseAttributeSets _useSets;\n    private AttributeSet     _mergeSet;\n    private String           _method;\n    private boolean          _ignore = false;\n    \n    /**\n     * Returns the QName of this attribute set\n     */\n    public QName getName() {\n\treturn _name;\n    }\n\n    /**\n     * Returns the method name of this attribute set. This method name is\n     * generated by the compiler (XSLTC)\n     */\n    public String getMethodName() {\n\treturn _method;\n    }\n\n    /**\n     * Call this method to prevent a method for being compiled for this set.\n     * This is used in case several <xsl:attribute-set...> elements constitute\n     * a single set (with one name). The last element will merge itself with\n     * any previous set(s) with the same name and disable the other set(s).\n     */\n    public void ignore() {\n\t_ignore = true;\n    }\n\n    /**\n     * Parse the contents of this attribute set. Recognised attributes are\n     * \"name\" (required) and \"use-attribute-sets\" (optional).\n     */\n    public void parseContents(Parser parser) {\n\t\n        final String name = getAttribute(\"name\");\n        \n        if (!XMLChar.isValidQName(name)) {\n            ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this);\n            parser.reportError(Constants.ERROR, err);           \n        }        \n        _name = parser.getQNameIgnoreDefaultNs(name);\n\tif ((_name == null) || (_name.equals(EMPTYSTRING))) {\n\t    ErrorMsg msg = new ErrorMsg(ErrorMsg.UNNAMED_ATTRIBSET_ERR, this);\n\t    parser.reportError(Constants.ERROR, msg);\n\t}\n\n\tfinal String useSets = getAttribute(\"use-attribute-sets\");\n\tif (useSets.length() > 0) {\n            if (!Util.isValidQNames(useSets)) {\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, useSets, this);\n                parser.reportError(Constants.ERROR, err);\t\n            }\t\t\n\t    _useSets = new UseAttributeSets(useSets, parser);\n\t}\n\n\tfinal Vector contents = getContents();\n\tfinal int count = contents.size();\n\tfor (int i=0; i<count; i++) {\n\t    SyntaxTreeNode child = (SyntaxTreeNode)contents.elementAt(i);\n\t    if (child instanceof XslAttribute) {\n\t\tparser.getSymbolTable().setCurrentNode(child);\n\t\tchild.parseContents(parser);\n\t    }\n\t    else if (child instanceof Text) {\n\t    }\n\t    else {\n\t\tErrorMsg msg = new ErrorMsg(ErrorMsg.ILLEGAL_CHILD_ERR, this);\n\t\tparser.reportError(Constants.ERROR, msg);\n\t    }\n\t}\n\n\tparser.getSymbolTable().setCurrentNode(this);\n    }\n\n    /**\n     * Type check the contents of this element\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\n\tif (_ignore) return (Type.Void);\n\n\t_mergeSet = stable.addAttributeSet(this);\n\n\t_method = AttributeSetPrefix + getXSLTC().nextAttributeSetSerial();\n\n\tif (_useSets != null) _useSets.typeCheck(stable);\n\ttypeCheckContents(stable);\n\treturn Type.Void;\n    }\n\n    /**\n     * Compile a method that outputs the attributes in this set\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tif (_ignore) return;\n\n\tmethodGen = new AttributeSetMethodGenerator(_method, classGen);\n\n        if (_mergeSet != null) {\n            final ConstantPoolGen cpg = classGen.getConstantPool();\n            final InstructionList il = methodGen.getInstructionList();\n            final String methodName = _mergeSet.getMethodName();\n\n            il.append(classGen.loadTranslet());\n            il.append(methodGen.loadDOM());\n            il.append(methodGen.loadIterator());\n            il.append(methodGen.loadHandler());\n            final int method = cpg.addMethodref(classGen.getClassName(),\n                                                methodName, ATTR_SET_SIG);\n            il.append(new INVOKESPECIAL(method));\n        }\n\n\tif (_useSets != null) _useSets.translate(classGen, methodGen);\n\n\tfinal Enumeration attributes = elements();\n\twhile (attributes.hasMoreElements()) {\n\t    SyntaxTreeNode element = (SyntaxTreeNode)attributes.nextElement();\n\t    if (element instanceof XslAttribute) {\n\t\tfinal XslAttribute attribute = (XslAttribute)element;\n\t\tattribute.translate(classGen, methodGen);\n\t    }\n\t}\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(RETURN);\n\t\n\tmethodGen.stripAttributes(true);\n\tmethodGen.setMaxLocals();\n\tmethodGen.setMaxStack();\n\tmethodGen.removeNOPs();\n\tclassGen.addMethod(methodGen.getMethod());\n    }\n\n    public String toString() {\n\tStringBuffer buf = new StringBuffer(\"attribute-set: \");\n\tfinal Enumeration attributes = elements();\n\twhile (attributes.hasMoreElements()) {\n\t    final XslAttribute attribute =\n\t\t(XslAttribute)attributes.nextElement();\n\t    buf.append(attribute);\n\t}\n\treturn(buf.toString());", "functions": [{"function_name": "getName", "code": "    public QName getName() {\n\treturn _name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMethodName", "code": "    public String getMethodName() {\n\treturn _method;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ignore", "code": "    public void ignore() {\n\t_ignore = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\t\n        final String name = getAttribute(\"name\");\n        \n        if (!XMLChar.isValidQName(name)) {\n            ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this);\n            parser.reportError(Constants.ERROR, err);           \n        }        \n        _name = parser.getQNameIgnoreDefaultNs(name);\n\tif ((_name == null) || (_name.equals(EMPTYSTRING))) {\n\t    ErrorMsg msg = new ErrorMsg(ErrorMsg.UNNAMED_ATTRIBSET_ERR, this);\n\t    parser.reportError(Constants.ERROR, msg);\n\t}\n\n\tfinal String useSets = getAttribute(\"use-attribute-sets\");\n\tif (useSets.length() > 0) {\n            if (!Util.isValidQNames(useSets)) {\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, useSets, this);\n                parser.reportError(Constants.ERROR, err);\t\n            }\t\t\n\t    _useSets = new UseAttributeSets(useSets, parser);\n\t}\n\n\tfinal Vector contents = getContents();\n\tfinal int count = contents.size();\n\tfor (int i=0; i<count; i++) {\n\t    SyntaxTreeNode child = (SyntaxTreeNode)contents.elementAt(i);\n\t    if (child instanceof XslAttribute) {\n\t\tparser.getSymbolTable().setCurrentNode(child);\n\t\tchild.parseContents(parser);\n\t    }\n\t    else if (child instanceof Text) {\n\t    }\n\t    else {\n\t\tErrorMsg msg = new ErrorMsg(ErrorMsg.ILLEGAL_CHILD_ERR, this);\n\t\tparser.reportError(Constants.ERROR, msg);\n\t    }\n\t}\n\n\tparser.getSymbolTable().setCurrentNode(this);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [4, 12], [6, 13], [0, 14], [7, 15], [10, 16], [1, 17], [1, 18], [2, 19], [3, 20], [4, 21], [12, 22], [12, 23], [5, 24], [6, 25], [13, 26], [13, 27], [14, 28], [7, 29], [8, 30], [17, 31], [17, 32], [1, 33], [4, 34], [21, 35], [24, 36], [6, 37], [27, 38], [7, 39], [30, 40], [31, 41], [34, 42], [21, 43], [25, 44], [29, 45], [31, 46], [17, 47], [17, 48], [18, 49], [21, 50], [31, 51], [48, 52], [43, 53], [46, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 4], [13, 6], [14, 0], [15, 7], [16, 10], [17, 1], [18, 1], [19, 2], [20, 3], [21, 4], [22, 12], [23, 12], [24, 5], [25, 6], [26, 13], [27, 13], [28, 14], [29, 7], [30, 8], [31, 17], [32, 17], [33, 1], [34, 4], [35, 21], [36, 24], [37, 6], [38, 27], [39, 7], [40, 30], [41, 31], [42, 34], [43, 21], [44, 25], [45, 29], [46, 31], [47, 17], [48, 17], [49, 18], [50, 21], [51, 31], [52, 48], [53, 43], [54, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\n\tif (_ignore) return (Type.Void);\n\n\t_mergeSet = stable.addAttributeSet(this);\n\n\t_method = AttributeSetPrefix + getXSLTC().nextAttributeSetSerial();\n\n\tif (_useSets != null) _useSets.typeCheck(stable);\n\ttypeCheckContents(stable);\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [0, 8], [3, 9], [2, 10], [6, 11], [7, 12], [8, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 0], [9, 3], [10, 2], [11, 6], [12, 7], [13, 8], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tif (_ignore) return;\n\n\tmethodGen = new AttributeSetMethodGenerator(_method, classGen);\n\n        if (_mergeSet != null) {\n            final ConstantPoolGen cpg = classGen.getConstantPool();\n            final InstructionList il = methodGen.getInstructionList();\n            final String methodName = _mergeSet.getMethodName();\n\n            il.append(classGen.loadTranslet());\n            il.append(methodGen.loadDOM());\n            il.append(methodGen.loadIterator());\n            il.append(methodGen.loadHandler());\n            final int method = cpg.addMethodref(classGen.getClassName(),\n                                                methodName, ATTR_SET_SIG);\n            il.append(new INVOKESPECIAL(method));\n        }\n\n\tif (_useSets != null) _useSets.translate(classGen, methodGen);\n\n\tfinal Enumeration attributes = elements();\n\twhile (attributes.hasMoreElements()) {\n\t    SyntaxTreeNode element = (SyntaxTreeNode)attributes.nextElement();\n\t    if (element instanceof XslAttribute) {\n\t\tfinal XslAttribute attribute = (XslAttribute)element;\n\t\tattribute.translate(classGen, methodGen);\n\t    }\n\t}\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(RETURN);\n\t\n\tmethodGen.stripAttributes(true);\n\tmethodGen.setMaxLocals();\n\tmethodGen.setMaxStack();\n\tmethodGen.removeNOPs();\n\tclassGen.addMethod(methodGen.getMethod());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [4, 16], [5, 17], [0, 18], [6, 19], [9, 20], [13, 21], [1, 22], [2, 23], [2, 24], [3, 25], [4, 26], [16, 27], [5, 28], [5, 29], [5, 30], [5, 31], [17, 32], [18, 33], [23, 34], [5, 35], [5, 36], [5, 37], [5, 38], [5, 39], [23, 40], [35, 41], [28, 42], [36, 43], [37, 44], [38, 45], [39, 46], [29, 47], [30, 48], [31, 49], [23, 50], [24, 51], [42, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 4], [17, 5], [18, 0], [19, 6], [20, 9], [21, 13], [22, 1], [23, 2], [24, 2], [25, 3], [26, 4], [27, 16], [28, 5], [29, 5], [30, 5], [31, 5], [32, 17], [33, 18], [34, 23], [35, 5], [36, 5], [37, 5], [38, 5], [39, 5], [40, 23], [41, 35], [42, 28], [43, 36], [44, 37], [45, 38], [46, 39], [47, 29], [48, 30], [49, 31], [50, 23], [51, 24], [52, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "toString", "code": "    public String toString() {\n\tStringBuffer buf = new StringBuffer(\"attribute-set: \");\n\tfinal Enumeration attributes = elements();\n\twhile (attributes.hasMoreElements()) {\n\t    final XslAttribute attribute =\n\t\t(XslAttribute)attributes.nextElement();\n\t    buf.append(attribute);\n\t}\n\treturn(buf.toString());", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [4, 9], [2, 10], [9, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 4], [10, 2], [11, 9], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 1}
{"sample_id": "ant-1.5-334", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/RecorderEntry.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.RecorderEntry", "code": "public class RecorderEntry implements BuildLogger {\n\n\n    /** The name of the file associated with this recorder entry.  */\n    private String filename = null;\n    /** The state of the recorder (recorder on or off).  */\n    private boolean record = true;\n    /** The current verbosity level to record at.  */\n    private int loglevel = Project.MSG_INFO;\n    /** The output PrintStream to record to.  */\n    private PrintStream out = null;\n    /** The start time of the last know target.  */\n    private long targetStartTime = 0l;\n    /** Strip task banners if true.  */\n    private boolean emacsMode = false;\n\n\n    /**\n     * @param name The name of this recorder (used as the filename).\n     */\n    protected RecorderEntry(String name) {\n        filename = name;\n    }\n\n\n    /**\n     * @return the name of the file the output is sent to.\n     */\n    public String getFilename() {\n        return filename;\n    }\n\n\n    /**\n     * Turns off or on this recorder.\n     *\n     * @param state true for on, false for off, null for no change.\n     */\n    public void setRecordState(Boolean state) {\n        if (state != null) {\n            record = state.booleanValue();\n        }\n    }\n\n\n    public void buildStarted(BuildEvent event) {\n        log(\"> BUILD STARTED\", Project.MSG_DEBUG);\n    }\n\n\n    public void buildFinished(BuildEvent event) {\n        log(\"< BUILD FINISHED\", Project.MSG_DEBUG);\n\n        Throwable error = event.getException();\n\n        if (error == null) {\n            out.println(StringUtils.LINE_SEP + \"BUILD SUCCESSFUL\");\n        } else {\n            out.println(StringUtils.LINE_SEP + \"BUILD FAILED\"\n                 + StringUtils.LINE_SEP);\n            error.printStackTrace(out);\n        }\n        out.flush();\n        out.close();\n    }\n\n\n    public void targetStarted(BuildEvent event) {\n        log(\">> TARGET STARTED -- \" + event.getTarget(), Project.MSG_DEBUG);\n        log(StringUtils.LINE_SEP + event.getTarget().getName() + \":\",\n            Project.MSG_INFO);\n        targetStartTime = System.currentTimeMillis();\n    }\n\n\n    public void targetFinished(BuildEvent event) {\n        log(\"<< TARGET FINISHED -- \" + event.getTarget(), Project.MSG_DEBUG);\n\n        String time = formatTime(System.currentTimeMillis() - targetStartTime);\n\n        log(event.getTarget() + \":  duration \" + time, Project.MSG_VERBOSE);\n        out.flush();\n    }\n\n\n    public void taskStarted(BuildEvent event) {\n        log(\">>> TASK STARTED -- \" + event.getTask(), Project.MSG_DEBUG);\n    }\n\n\n    public void taskFinished(BuildEvent event) {\n        log(\"<<< TASK FINISHED -- \" + event.getTask(), Project.MSG_DEBUG);\n        out.flush();\n    }\n\n\n    public void messageLogged(BuildEvent event) {\n        log(\"--- MESSAGE LOGGED\", Project.MSG_DEBUG);\n\n        StringBuffer buf = new StringBuffer();\n\n        if (event.getTask() != null) {\n            String name = event.getTask().getTaskName();\n\n            if (!emacsMode) {\n                String label = \"[\" + name + \"] \";\n                int size = DefaultLogger.LEFT_COLUMN_SIZE - label.length();\n\n                for (int i = 0; i < size; i++) {\n                    buf.append(\" \");\n\t\t\t\t}\n                buf.append(label);\n\t\t\t}\n        }\n\t\tbuf.append(event.getMessage());\n\n        log(buf.toString(), event.getPriority());\n    }\n\n\n    /**\n     * The thing that actually sends the information to the output.\n     *\n     * @param mesg The message to log.\n     * @param level The verbosity level of the message.\n     */\n    private void log(String mesg, int level) {\n        if (record && (level <= loglevel)) {\n            out.println(mesg);\n        }\n    }\n\n\n    public void setMessageOutputLevel(int level) {\n        if (level >= Project.MSG_ERR && level <= Project.MSG_DEBUG) {\n            loglevel = level;\n        }\n    }\n\n\n    public void setOutputPrintStream(PrintStream output) {\n        out = output;\n    }\n\n\n    public void setEmacsMode(boolean emacsMode) {\n        this.emacsMode = emacsMode;\n    }\n\n\n    public void setErrorPrintStream(PrintStream err) {\n        out = err;\n    }\n\n\n    private static String formatTime(long millis) {\n        long seconds = millis / 1000;\n        long minutes = seconds / 60;\n\n\n        if (minutes > 0) {\n            return Long.toString(minutes) + \" minute\"\n                 + (minutes == 1 ? \" \" : \"s \")\n                 + Long.toString(seconds % 60) + \" second\"\n                 + (seconds % 60 == 1 ? \"\" : \"s\");\n        } else {\n            return Long.toString(seconds) + \" second\"\n                 + (seconds % 60 == 1 ? \"\" : \"s\");", "functions": [{"function_name": "getFilename", "code": "    public String getFilename() {\n        return filename;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRecordState", "code": "    public void setRecordState(Boolean state) {\n        if (state != null) {\n            record = state.booleanValue();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {\n        log(\"> BUILD STARTED\", Project.MSG_DEBUG);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        log(\"< BUILD FINISHED\", Project.MSG_DEBUG);\n\n        Throwable error = event.getException();\n\n        if (error == null) {\n            out.println(StringUtils.LINE_SEP + \"BUILD SUCCESSFUL\");\n        } else {\n            out.println(StringUtils.LINE_SEP + \"BUILD FAILED\"\n                 + StringUtils.LINE_SEP);\n            error.printStackTrace(out);\n        }\n        out.flush();\n        out.close();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [6, 8], [2, 9], [7, 10], [1, 11], [1, 12], [1, 13], [12, 14], [13, 15], [14, 16], [15, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 6], [9, 2], [10, 7], [11, 1], [12, 1], [13, 1], [14, 12], [15, 13], [16, 14], [17, 15], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {\n        log(\">> TARGET STARTED -- \" + event.getTarget(), Project.MSG_DEBUG);\n        log(StringUtils.LINE_SEP + event.getTarget().getName() + \":\",\n            Project.MSG_INFO);\n        targetStartTime = System.currentTimeMillis();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [7, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [11, 7], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {\n        log(\"<< TARGET FINISHED -- \" + event.getTarget(), Project.MSG_DEBUG);\n\n        String time = formatTime(System.currentTimeMillis() - targetStartTime);\n\n        log(event.getTarget() + \":  duration \" + time, Project.MSG_VERBOSE);\n        out.flush();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 7], [5, 8], [6, 9], [7, 10], [8, 11], [8, 12], [9, 13], [9, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 1], [8, 5], [9, 6], [10, 7], [11, 8], [12, 8], [13, 9], [14, 9], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {\n        log(\">>> TASK STARTED -- \" + event.getTask(), Project.MSG_DEBUG);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {\n        log(\"<<< TASK FINISHED -- \" + event.getTask(), Project.MSG_DEBUG);\n        out.flush();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {\n        log(\"--- MESSAGE LOGGED\", Project.MSG_DEBUG);\n\n        StringBuffer buf = new StringBuffer();\n\n        if (event.getTask() != null) {\n            String name = event.getTask().getTaskName();\n\n            if (!emacsMode) {\n                String label = \"[\" + name + \"] \";\n                int size = DefaultLogger.LEFT_COLUMN_SIZE - label.length();\n\n                for (int i = 0; i < size; i++) {\n                    buf.append(\" \");\n\t\t\t\t}\n                buf.append(label);\n\t\t\t}\n        }\n\t\tbuf.append(event.getMessage());\n\n        log(buf.toString(), event.getPriority());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [4, 8], [4, 9], [5, 10], [1, 11], [1, 12], [6, 13], [6, 14], [2, 15], [7, 16], [11, 17], [11, 18], [11, 19], [12, 20], [11, 21], [17, 22], [20, 23], [18, 24], [19, 25], [17, 26], [17, 27], [24, 28], [25, 29], [25, 30], [26, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 4], [9, 4], [10, 5], [11, 1], [12, 1], [13, 6], [14, 6], [15, 2], [16, 7], [17, 11], [18, 11], [19, 11], [20, 12], [21, 11], [22, 17], [23, 20], [24, 18], [25, 19], [26, 17], [27, 17], [28, 24], [29, 25], [30, 25], [31, 26], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "log", "code": "    private void log(String mesg, int level) {\n        if (record && (level <= loglevel)) {\n            out.println(mesg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setMessageOutputLevel", "code": "    public void setMessageOutputLevel(int level) {\n        if (level >= Project.MSG_ERR && level <= Project.MSG_DEBUG) {\n            loglevel = level;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOutputPrintStream", "code": "    public void setOutputPrintStream(PrintStream output) {\n        out = output;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setEmacsMode", "code": "    public void setEmacsMode(boolean emacsMode) {\n        this.emacsMode = emacsMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorPrintStream", "code": "    public void setErrorPrintStream(PrintStream err) {\n        out = err;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "formatTime", "code": "    private static String formatTime(long millis) {\n        long seconds = millis / 1000;\n        long minutes = seconds / 60;\n\n\n        if (minutes > 0) {\n            return Long.toString(minutes) + \" minute\"\n                 + (minutes == 1 ? \" \" : \"s \")\n                 + Long.toString(seconds % 60) + \" second\"\n                 + (seconds % 60 == 1 ? \"\" : \"s\");\n        } else {\n            return Long.toString(seconds) + \" second\"\n                 + (seconds % 60 == 1 ? \"\" : \"s\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [3, 10], [6, 11], [7, 12], [9, 13], [10, 14], [11, 15], [11, 16], [12, 17], [12, 18], [15, 19], [15, 20], [15, 21], [16, 22], [16, 23], [17, 24], [17, 25], [17, 26], [18, 27], [18, 28], [21, 29], [21, 30], [26, 31], [26, 32], [28, 33], [28, 34], [30, 35], [32, 36], [33, 37], [34, 38], [34, 39], [37, 40], [38, 41], [38, 42], [38, 43], [39, 44], [39, 45], [43, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 3], [11, 6], [12, 7], [13, 9], [14, 10], [15, 11], [16, 11], [17, 12], [18, 12], [19, 15], [20, 15], [21, 15], [22, 16], [23, 16], [24, 17], [25, 17], [26, 17], [27, 18], [28, 18], [29, 21], [30, 21], [31, 26], [32, 26], [33, 28], [34, 28], [35, 30], [36, 32], [37, 33], [38, 34], [39, 34], [40, 37], [41, 38], [42, 38], [43, 38], [44, 39], [45, 39], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "RecorderEntry", "code": "    protected RecorderEntry(String name) {\n        filename = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-3239", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/bean/ProxyHelper.java", "language": "java", "name": "org.apache.camel.component.bean.ProxyHelper", "code": "public final class ProxyHelper {\n\n    /**\n     * Utility classes should not have a public constructor.\n     */\n    private ProxyHelper() {\n    }\n\n\n    /**\n     * Creates a Proxy which sends PojoExchange to the endpoint.\n     */\n    @SuppressWarnings(\"unchecked\")\n    public static Object createProxyObject(Endpoint endpoint, Producer producer, ClassLoader classLoader, Class[] interfaces, MethodInfoCache methodCache) {\n        return Proxy.newProxyInstance(classLoader, interfaces.clone(), new CamelInvocationHandler(endpoint, producer, methodCache));\n    }\n\n\n    /**\n     * Creates a Proxy which sends PojoExchange to the endpoint.\n     *\n     * @throws Exception\n     */\n    @SuppressWarnings(\"unchecked\")\n    public static <T> T createProxy(Endpoint endpoint, ClassLoader cl, Class[] interfaces, MethodInfoCache methodCache) throws Exception {\n        return (T) createProxyObject(endpoint, endpoint.createProducer(), cl, interfaces, methodCache);\n    }\n\n    /**\n     * Creates a Proxy which sends PojoExchange to the endpoint.\n     *\n     * @throws Exception\n     */\n    @SuppressWarnings(\"unchecked\")\n    public static <T> T createProxy(Endpoint endpoint, ClassLoader cl, Class<T>... interfaceClasses) throws Exception {\n        return (T) createProxy(endpoint, cl, interfaceClasses, createMethodInfoCache(endpoint));\n    }\n\n\n    /**\n     * Creates a Proxy which sends PojoExchange to the endpoint.\n     *\n     * @throws Exception\n     */\n    @SuppressWarnings(\"unchecked\")\n    public static <T> T createProxy(Endpoint endpoint, Class<T>... interfaceClasses) throws Exception {\n        return (T) createProxy(endpoint, getClassLoader(interfaceClasses), interfaceClasses);\n    }\n\n    /**\n     * Creates a Proxy which sends PojoExchange to the endpoint.\n     *\n     * @throws Exception\n     */\n    @SuppressWarnings(\"unchecked\")\n    public static <T> T createProxy(Endpoint endpoint, Producer producer, Class<T>... interfaceClasses) throws Exception {\n        return (T) createProxyObject(endpoint, producer, getClassLoader(interfaceClasses), interfaceClasses, createMethodInfoCache(endpoint));\n    }\n\n\n    /**\n     * Returns the class loader of the first interface or throws {@link IllegalArgumentException} if there are no interfaces specified\n     *\n     * @return the class loader\n     */\n    protected static ClassLoader getClassLoader(Class... interfaces) {\n        if (interfaces == null || interfaces.length < 1) {\n            throw new IllegalArgumentException(\"You must provide at least 1 interface class.\");\n        }\n        return interfaces[0].getClassLoader();\n    }\n\n\n    protected static MethodInfoCache createMethodInfoCache(Endpoint endpoint) {\n        return new MethodInfoCache(endpoint.getCamelContext());", "functions": [{"function_name": "createProxyObject", "code": "    @SuppressWarnings(\"unchecked\")\n    public static Object createProxyObject(Endpoint endpoint, Producer producer, ClassLoader classLoader, Class[] interfaces, MethodInfoCache methodCache) {\n        return Proxy.newProxyInstance(classLoader, interfaces.clone(), new CamelInvocationHandler(endpoint, producer, methodCache));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createProxy", "code": "    @SuppressWarnings(\"unchecked\")\n    public static <T> T createProxy(Endpoint endpoint, ClassLoader cl, Class[] interfaces, MethodInfoCache methodCache) throws Exception {\n        return (T) createProxyObject(endpoint, endpoint.createProducer(), cl, interfaces, methodCache);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "createProxy", "code": "    @SuppressWarnings(\"unchecked\")\n    public static <T> T createProxy(Endpoint endpoint, ClassLoader cl, Class<T>... interfaceClasses) throws Exception {\n        return (T) createProxy(endpoint, cl, interfaceClasses, createMethodInfoCache(endpoint));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createProxy", "code": "    @SuppressWarnings(\"unchecked\")\n    public static <T> T createProxy(Endpoint endpoint, Class<T>... interfaceClasses) throws Exception {\n        return (T) createProxy(endpoint, getClassLoader(interfaceClasses), interfaceClasses);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createProxy", "code": "    @SuppressWarnings(\"unchecked\")\n    public static <T> T createProxy(Endpoint endpoint, Producer producer, Class<T>... interfaceClasses) throws Exception {\n        return (T) createProxyObject(endpoint, producer, getClassLoader(interfaceClasses), interfaceClasses, createMethodInfoCache(endpoint));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getClassLoader", "code": "    protected static ClassLoader getClassLoader(Class... interfaces) {\n        if (interfaces == null || interfaces.length < 1) {\n            throw new IllegalArgumentException(\"You must provide at least 1 interface class.\");\n        }\n        return interfaces[0].getClassLoader();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [2, 6], [4, 7], [4, 8], [1, 9], [6, 10], [7, 11], [8, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 2], [7, 4], [8, 4], [9, 1], [10, 6], [11, 7], [12, 8], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createMethodInfoCache", "code": "    protected static MethodInfoCache createMethodInfoCache(Endpoint endpoint) {\n        return new MethodInfoCache(endpoint.getCamelContext());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ProxyHelper", "code": "    private ProxyHelper() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.6-692", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/Sync.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Sync", "code": "public class Sync extends Task {\n\n    private MyCopy _copy;\n\n    public void init()\n        throws BuildException {\n        _copy = new MyCopy();\n        configureTask(_copy);\n\n        _copy.setFiltering(false);\n        _copy.setIncludeEmptyDirs(false);\n        _copy.setPreserveLastModified(true);\n    }\n\n    private void configureTask(Task helper) {\n        helper.setProject(getProject());\n        helper.setTaskName(getTaskName());\n        helper.setOwningTarget(getOwningTarget());\n        helper.init();\n    }\n\n    public void execute()\n        throws BuildException {\n        File toDir = _copy.getToDir();\n\n        Hashtable allFiles = _copy._dest2src;\n\n        boolean noRemovalNecessary = !toDir.exists() || toDir.list().length < 1;\n\n        log(\"PASS#1: Copying files to \" + toDir, Project.MSG_DEBUG);\n        _copy.execute();\n\n        if (noRemovalNecessary) {\n            log(\"NO removing necessary in \" + toDir, Project.MSG_DEBUG);\n        }\n\n        log(\"PASS#2: Removing orphan files from \" + toDir, Project.MSG_DEBUG);\n        int[] removedFileCount = removeOrphanFiles(allFiles, toDir);\n        logRemovedCount(removedFileCount[0], \"dangling director\", \"y\", \"ies\");\n        logRemovedCount(removedFileCount[1], \"dangling file\", \"\", \"s\");\n\n        if (!_copy.getIncludeEmptyDirs()) {\n            log(\"PASS#3: Removing empty directories from \" + toDir,\n                Project.MSG_DEBUG);\n            int removedDirCount = removeEmptyDirectories(toDir, false);\n            logRemovedCount(removedDirCount, \"empty director\", \"y\", \"ies\");\n        }\n    }\n\n    private void logRemovedCount(int count, String prefix,\n                                 String singularSuffix, String pluralSuffix) {\n        File toDir = _copy.getToDir();\n\n        String what = (prefix == null) ? \"\" : prefix;\n        what += (count < 2) ? singularSuffix : pluralSuffix;\n\n        if (count > 0) {\n            log(\"Removed \" + count + \" \" + what + \" from \" + toDir,\n                Project.MSG_INFO);\n        } else {\n            log(\"NO \" + what + \" to remove from \" + toDir,\n                Project.MSG_VERBOSE);\n        }\n    }\n\n    /**\n     * Removes all files and folders not found as keys of a table\n     * (used as a set!).\n     *\n     * <p>If the provided file is a directory, it is recursively\n     * scanned for orphaned files which will be removed as well.</p>\n     *\n     * <p>If the directory is an orphan, it will also be removed.</p>\n     *\n     * @param  nonOrphans the table of all non-orphan <code>File</code>s.\n     * @param  file the initial file or directory to scan or test.\n     * @return the number of orphaned files and directories actually removed.\n     * Position 0 of the array is the number of orphaned directories.\n     * Position 1 of the array is the number or orphaned files.\n     * Position 2 is meaningless.\n     */\n    private int[] removeOrphanFiles(Hashtable nonOrphans, File file) {\n        int[] removedCount = new int[] {0, 0, 0};\n        if (file.isDirectory()) {\n            File[] children = file.listFiles();\n            for (int i = 0; i < children.length; ++i) {\n                int[] temp = removeOrphanFiles(nonOrphans, children[i]);\n                removedCount[0] += temp[0];\n                removedCount[1] += temp[1];\n                removedCount[2] += temp[2];\n            }\n\n            if (nonOrphans.get(file) == null && removedCount[2] == 0) {\n                log(\"Removing orphan directory: \" + file, Project.MSG_DEBUG);\n                file.delete();\n                ++removedCount[0];\n            } else {\n                /*\n                  Contrary to what is said above, position 2 is not\n                  meaningless inside the recursion.\n                  Position 2 is used to carry information back up the\n                  recursion about whether or not a directory contains\n                  a directory or file at any depth that is not an\n                  orphan\n                  This has to be done, because if you have the\n                  following directory structure: c:\\src\\a\\file and\n                  your mapper src files were constructed like so:\n                  <include name=\"**\\a\\**\\*\"/>\n                  The folder 'a' will not be in the hashtable of\n                  nonorphans.  So, before deleting it as an orphan, we\n                  have to know whether or not any of its children at\n                  any level are orphans.\n                  If no, then this folder is also an orphan, and may\n                  be deleted.  I do this by changing position 2 to a\n                  '1'.\n                */\n                removedCount[2] = 1;\n            }\n\n        } else {\n            if (nonOrphans.get(file) == null) {\n                log(\"Removing orphan file: \" + file, Project.MSG_DEBUG);\n                file.delete();\n                ++removedCount[1];\n            } else {\n                removedCount[2] = 1;\n            }\n        }\n        return removedCount;\n    }\n\n    /**\n     * Removes all empty directories from a directory.\n     *\n     * <p><em>Note that a directory that contains only empty\n     * directories, directly or not, will be removed!</em></p>\n     *\n     * <p>Recurses depth-first to find the leaf directories\n     * which are empty and removes them, then unwinds the\n     * recursion stack, removing directories which have\n     * become empty themselves, etc...</p>\n     *\n     * @param  dir the root directory to scan for empty directories.\n     * @param  removeIfEmpty whether to remove the root directory\n     *         itself if it becomes empty.\n     * @return the number of empty directories actually removed.\n     */\n    private int removeEmptyDirectories(File dir, boolean removeIfEmpty) {\n        int removedCount = 0;\n        if (dir.isDirectory()) {\n            File[] children = dir.listFiles();\n            for (int i = 0; i < children.length; ++i) {\n                File file = children[i];\n                if (file.isDirectory()) {\n                    removedCount += removeEmptyDirectories(file, true);\n                }\n            }\n            if (children.length > 0) {\n                children = dir.listFiles();\n            }\n            if (children.length < 1 && removeIfEmpty) {\n                log(\"Removing empty directory: \" + dir, Project.MSG_DEBUG);\n                dir.delete();\n                ++removedCount;\n            }\n        }\n        return removedCount;\n    }\n\n\n\n    /**\n     * Sets the destination directory.\n     */\n    public void setTodir(File destDir) {\n        _copy.setTodir(destDir);\n    }\n\n    /**\n     * Used to force listing of all names of copied files.\n     */\n    public void setVerbose(boolean verbose) {\n        _copy.setVerbose(verbose);\n    }\n\n    /**\n     * Overwrite any existing destination file(s).\n     */\n    public void setOverwrite(boolean overwrite) {\n        _copy.setOverwrite(overwrite);\n    }\n\n    /**\n     * Used to copy empty directories.\n     */\n    public void setIncludeEmptyDirs(boolean includeEmpty) {\n        _copy.setIncludeEmptyDirs(includeEmpty);\n    }\n\n    /**\n     * If false, note errors to the output but keep going.\n     * @param failonerror true or false\n     */\n    public void setFailOnError(boolean failonerror) {\n        _copy.setFailOnError(failonerror);\n    }\n\n    /**\n     * Adds a set of files to copy.\n     */\n    public void addFileset(FileSet set) {\n        _copy.addFileset(set);\n    }\n\n    /**\n     * The number of milliseconds leeway to give before deciding a\n     * target is out of date.\n     *\n     * <p>Default is 0 milliseconds, or 2 seconds on DOS systems.</p>\n     *\n     * @since Ant 1.6.2\n     */\n    public void setGranularity(long granularity) {\n        _copy.setGranularity(granularity);\n    }\n\n    /**\n     * Subclass Copy in order to access it's file/dir maps.\n     */\n    public static class MyCopy extends Copy {\n\n        private Hashtable _dest2src = new Hashtable();\n\n        public MyCopy() {\n        }\n\n        protected void buildMap(File fromDir, File toDir, String[] names,\n                                FileNameMapper mapper, Hashtable map) {\n            assertTrue(\"No mapper\", mapper instanceof IdentityMapper);\n\n            super.buildMap(fromDir, toDir, names, mapper, map);\n\n            for (int i = 0; i < names.length; ++i) {\n                String name = names[i];\n                File dest = new File(toDir, name);\n                _dest2src.put(dest, fromDir);\n            }\n        }\n\n        public File getToDir() {\n            return destDir;\n        }\n\n        public boolean getIncludeEmptyDirs() {\n            return includeEmpty;\n        }\n\n    }\n\n    /**\n     * Pseudo-assert method.\n     */\n    private static void assertTrue(String message, boolean condition) {\n        if (!condition) {\n            throw new BuildException(\"Assertion Error: \" + message);", "functions": [{"function_name": "init", "code": "    public void init()\n        throws BuildException {\n        _copy = new MyCopy();\n        configureTask(_copy);\n\n        _copy.setFiltering(false);\n        _copy.setIncludeEmptyDirs(false);\n        _copy.setPreserveLastModified(true);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "configureTask", "code": "    private void configureTask(Task helper) {\n        helper.setProject(getProject());\n        helper.setTaskName(getTaskName());\n        helper.setOwningTarget(getOwningTarget());\n        helper.init();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "execute", "code": "    public void execute()\n        throws BuildException {\n        File toDir = _copy.getToDir();\n\n        Hashtable allFiles = _copy._dest2src;\n\n        boolean noRemovalNecessary = !toDir.exists() || toDir.list().length < 1;\n\n        log(\"PASS#1: Copying files to \" + toDir, Project.MSG_DEBUG);\n        _copy.execute();\n\n        if (noRemovalNecessary) {\n            log(\"NO removing necessary in \" + toDir, Project.MSG_DEBUG);\n        }\n\n        log(\"PASS#2: Removing orphan files from \" + toDir, Project.MSG_DEBUG);\n        int[] removedFileCount = removeOrphanFiles(allFiles, toDir);\n        logRemovedCount(removedFileCount[0], \"dangling director\", \"y\", \"ies\");\n        logRemovedCount(removedFileCount[1], \"dangling file\", \"\", \"s\");\n\n        if (!_copy.getIncludeEmptyDirs()) {\n            log(\"PASS#3: Removing empty directories from \" + toDir,\n                Project.MSG_DEBUG);\n            int removedDirCount = removeEmptyDirectories(toDir, false);\n            logRemovedCount(removedDirCount, \"empty director\", \"y\", \"ies\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [8, 14], [8, 15], [8, 16], [9, 17], [9, 18], [9, 19], [2, 20], [10, 21], [12, 22], [4, 23], [6, 24], [1, 25], [1, 26], [21, 27], [3, 28], [22, 29], [23, 30], [23, 31], [25, 32], [25, 33], [25, 34], [13, 35], [26, 36], [8, 37], [9, 38], [28, 39], [30, 40], [30, 41], [35, 42], [36, 43], [39, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 8], [15, 8], [16, 8], [17, 9], [18, 9], [19, 9], [20, 2], [21, 10], [22, 12], [23, 4], [24, 6], [25, 1], [26, 1], [27, 21], [28, 3], [29, 22], [30, 23], [31, 23], [32, 25], [33, 25], [34, 25], [35, 13], [36, 26], [37, 8], [38, 9], [39, 28], [40, 30], [41, 30], [42, 35], [43, 36], [44, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "logRemovedCount", "code": "    private void logRemovedCount(int count, String prefix,\n                                 String singularSuffix, String pluralSuffix) {\n        File toDir = _copy.getToDir();\n\n        String what = (prefix == null) ? \"\" : prefix;\n        what += (count < 2) ? singularSuffix : pluralSuffix;\n\n        if (count > 0) {\n            log(\"Removed \" + count + \" \" + what + \" from \" + toDir,\n                Project.MSG_INFO);\n        } else {\n            log(\"NO \" + what + \" to remove from \" + toDir,\n                Project.MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [8, 10], [9, 11], [2, 12], [3, 13], [1, 14], [1, 15], [11, 16], [12, 17], [12, 18], [14, 19], [15, 20], [16, 21], [18, 22], [19, 23], [20, 24], [23, 25], [23, 26], [24, 27], [24, 28], [26, 29], [28, 30], [30, 31], [30, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 8], [11, 9], [12, 2], [13, 3], [14, 1], [15, 1], [16, 11], [17, 12], [18, 12], [19, 14], [20, 15], [21, 16], [22, 18], [23, 19], [24, 20], [25, 23], [26, 23], [27, 24], [28, 24], [29, 26], [30, 28], [31, 30], [32, 30], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "removeOrphanFiles", "code": "    private int[] removeOrphanFiles(Hashtable nonOrphans, File file) {\n        int[] removedCount = new int[] {0, 0, 0};\n        if (file.isDirectory()) {\n            File[] children = file.listFiles();\n            for (int i = 0; i < children.length; ++i) {\n                int[] temp = removeOrphanFiles(nonOrphans, children[i]);\n                removedCount[0] += temp[0];\n                removedCount[1] += temp[1];\n                removedCount[2] += temp[2];\n            }\n\n            if (nonOrphans.get(file) == null && removedCount[2] == 0) {\n                log(\"Removing orphan directory: \" + file, Project.MSG_DEBUG);\n                file.delete();\n                ++removedCount[0];\n            } else {\n                /*\n                  Contrary to what is said above, position 2 is not\n                  meaningless inside the recursion.\n                  Position 2 is used to carry information back up the\n                  recursion about whether or not a directory contains\n                  a directory or file at any depth that is not an\n                  orphan\n                  This has to be done, because if you have the\n                  following directory structure: c:\\src\\a\\file and\n                  your mapper src files were constructed like so:\n                  <include name=\"**\\a\\**\\*\"/>\n                  The folder 'a' will not be in the hashtable of\n                  nonorphans.  So, before deleting it as an orphan, we\n                  have to know whether or not any of its children at\n                  any level are orphans.\n                  If no, then this folder is also an orphan, and may\n                  be deleted.  I do this by changing position 2 to a\n                  '1'.\n                */\n                removedCount[2] = 1;\n            }\n\n        } else {\n            if (nonOrphans.get(file) == null) {\n                log(\"Removing orphan file: \" + file, Project.MSG_DEBUG);\n                file.delete();\n                ++removedCount[1];\n            } else {\n                removedCount[2] = 1;\n            }\n        }\n        return removedCount;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [8, 12], [9, 13], [11, 14], [11, 15], [12, 16], [12, 17], [9, 18], [10, 19], [3, 20], [3, 21], [3, 22], [7, 23], [7, 24], [7, 25], [8, 26], [8, 27], [8, 28], [16, 29], [17, 30], [17, 31], [9, 32], [9, 33], [9, 34], [9, 35], [23, 36], [25, 37], [26, 38], [28, 39], [18, 40], [7, 41], [37, 42], [8, 43], [39, 44], [16, 45], [23, 46], [26, 47], [32, 48], [32, 49], [33, 50], [33, 51], [34, 52], [34, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 8], [13, 9], [14, 11], [15, 11], [16, 12], [17, 12], [18, 9], [19, 10], [20, 3], [21, 3], [22, 3], [23, 7], [24, 7], [25, 7], [26, 8], [27, 8], [28, 8], [29, 16], [30, 17], [31, 17], [32, 9], [33, 9], [34, 9], [35, 9], [36, 23], [37, 25], [38, 26], [39, 28], [40, 18], [41, 7], [42, 37], [43, 8], [44, 39], [45, 16], [46, 23], [47, 26], [48, 32], [49, 32], [50, 33], [51, 33], [52, 34], [53, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "removeEmptyDirectories", "code": "    private int removeEmptyDirectories(File dir, boolean removeIfEmpty) {\n        int removedCount = 0;\n        if (dir.isDirectory()) {\n            File[] children = dir.listFiles();\n            for (int i = 0; i < children.length; ++i) {\n                File file = children[i];\n                if (file.isDirectory()) {\n                    removedCount += removeEmptyDirectories(file, true);\n                }\n            }\n            if (children.length > 0) {\n                children = dir.listFiles();\n            }\n            if (children.length < 1 && removeIfEmpty) {\n                log(\"Removing empty directory: \" + dir, Project.MSG_DEBUG);\n                dir.delete();\n                ++removedCount;\n            }\n        }\n        return removedCount;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [3, 11], [7, 12], [8, 13], [9, 14], [12, 15], [13, 16], [9, 17], [9, 18], [10, 19], [7, 20], [7, 21], [15, 22], [8, 23], [17, 24], [9, 25], [21, 26], [23, 27], [26, 28], [17, 29], [29, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 3], [12, 7], [13, 8], [14, 9], [15, 12], [16, 13], [17, 9], [18, 9], [19, 10], [20, 7], [21, 7], [22, 15], [23, 8], [24, 17], [25, 9], [26, 21], [27, 23], [28, 26], [29, 17], [30, 29], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "setTodir", "code": "    public void setTodir(File destDir) {\n        _copy.setTodir(destDir);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVerbose", "code": "    public void setVerbose(boolean verbose) {\n        _copy.setVerbose(verbose);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOverwrite", "code": "    public void setOverwrite(boolean overwrite) {\n        _copy.setOverwrite(overwrite);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIncludeEmptyDirs", "code": "    public void setIncludeEmptyDirs(boolean includeEmpty) {\n        _copy.setIncludeEmptyDirs(includeEmpty);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFailOnError", "code": "    public void setFailOnError(boolean failonerror) {\n        _copy.setFailOnError(failonerror);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        _copy.addFileset(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setGranularity", "code": "    public void setGranularity(long granularity) {\n        _copy.setGranularity(granularity);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "assertTrue", "code": "    private static void assertTrue(String message, boolean condition) {\n        if (!condition) {\n            throw new BuildException(\"Assertion Error: \" + message);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "ant-1.7-781", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/LogStreamHandler.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.LogStreamHandler", "code": "public class LogStreamHandler extends PumpStreamHandler {\n\n    /**\n     * Creates log stream handler\n     *\n     * @param task the task for whom to log\n     * @param outlevel the loglevel used to log standard output\n     * @param errlevel the loglevel used to log standard error\n     */\n    public LogStreamHandler(Task task, int outlevel, int errlevel) {\n        this((ProjectComponent) task, outlevel, errlevel);\n    }\n\n    /**\n     * Creates log stream handler\n     *\n     * @param pc the project component for whom to log\n     * @param outlevel the loglevel used to log standard output\n     * @param errlevel the loglevel used to log standard error\n     */\n    public LogStreamHandler(ProjectComponent pc, int outlevel, int errlevel) {\n        super(new LogOutputStream(pc, outlevel),\n              new LogOutputStream(pc, errlevel));\n    }\n\n    /**\n     * Stop the log stream handler.\n     */\n    public void stop() {\n        super.stop();\n        try {\n            getErr().close();\n            getOut().close();\n        } catch (IOException e) {\n            throw new BuildException(e);", "functions": [{"function_name": "stop", "code": "    public void stop() {\n        super.stop();\n        try {\n            getErr().close();\n            getOut().close();\n        } catch (IOException e) {\n            throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "LogStreamHandler", "code": "    public LogStreamHandler(Task task, int outlevel, int errlevel) {\n        this((ProjectComponent) task, outlevel, errlevel);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LogStreamHandler", "code": "    public LogStreamHandler(ProjectComponent pc, int outlevel, int errlevel) {\n        super(new LogOutputStream(pc, outlevel),\n              new LogOutputStream(pc, errlevel));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.6-7755", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/compiler/FuncLoader.java", "language": "java", "name": "org.apache.xpath.compiler.FuncLoader", "code": "public class FuncLoader\n{\n\n  /** The function ID, which may correspond to one of the FUNC_XXX values \n   *  found in {@link org.apache.xpath.compiler.FunctionTable}, but may \n   *  be a value installed by an external module.  */\n  private int m_funcID;\n\n  /** The class name of the function.  Must not be null.   */\n  private String m_funcName;\n\n  /**\n   * Get the local class name of the function class.  If function name does \n   * not have a '.' in it, it is assumed to be relative to \n   * 'org.apache.xpath.functions'.\n   *\n   * @return The class name of the {org.apache.xpath.functions.Function} class.\n   */\n  public String getName()\n  {\n    return m_funcName;\n  }\n\n  /**\n   * Construct a function loader\n   *\n   * @param funcName The class name of the {org.apache.xpath.functions.Function} \n   *             class, which, if it does not have a '.' in it, is assumed to \n   *             be relative to 'org.apache.xpath.functions'. \n   * @param funcID  The function ID, which may correspond to one of the FUNC_XXX \n   *    values found in {@link org.apache.xpath.compiler.FunctionTable}, but may \n   *    be a value installed by an external module. \n   */\n  public FuncLoader(String funcName, int funcID)\n  {\n\n    super();\n\n    m_funcID = funcID;\n    m_funcName = funcName;\n  }\n\n  /**\n   * Get a Function instance that this instance is liaisoning for.\n   *\n   * @return non-null reference to Function derivative.\n   *\n   * @throws javax.xml.transform.TransformerException if ClassNotFoundException, \n   *    IllegalAccessException, or InstantiationException is thrown.\n   */\n  public Function getFunction() throws TransformerException\n  {\n    try\n    {\n      String className = m_funcName;\n      if (className.indexOf(\".\") < 0) {\n        className = \"org.apache.xpath.functions.\" + className;\n      }\n\n      return (Function) ObjectFactory.newInstance(\n        className, ObjectFactory.findClassLoader(), true);\n    }\n    catch (ObjectFactory.ConfigurationError e)\n    {\n      throw new TransformerException(e.getException());", "functions": [{"function_name": "getName", "code": "  public String getName()\n  {\n    return m_funcName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFunction", "code": "  public Function getFunction() throws TransformerException\n  {\n    try\n    {\n      String className = m_funcName;\n      if (className.indexOf(\".\") < 0) {\n        className = \"org.apache.xpath.functions.\" + className;\n      }\n\n      return (Function) ObjectFactory.newInstance(\n        className, ObjectFactory.findClassLoader(), true);\n    }\n    catch (ObjectFactory.ConfigurationError e)\n    {\n      throw new TransformerException(e.getException());", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "IF", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [6, 8], [3, 9], [7, 10], [7, 11], [8, 12], [9, 13], [9, 14], [4, 15], [11, 16], [15, 17], [17, 18], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 6], [9, 3], [10, 7], [11, 7], [12, 8], [13, 9], [14, 9], [15, 4], [16, 11], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "FuncLoader", "code": "  public FuncLoader(String funcName, int funcID)\n  {\n\n    super();\n\n    m_funcID = funcID;\n    m_funcName = funcName;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.5-7193", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/functions/FuncExtFunction.java", "language": "java", "name": "org.apache.xpath.functions.FuncExtFunction", "code": "public class FuncExtFunction extends Function\n{\n\n  /**\n   * The namespace for the extension function, which should not normally\n   *  be null or empty.\n   *  @serial    \n   */\n  String m_namespace;\n\n  /**\n   * The local name of the extension.\n   *  @serial   \n   */\n  String m_extensionName;\n\n  /**\n   * Unique method key, which is passed to ExtensionsTable#extFunction in\n   *  order to allow caching of the method.\n   *  @serial \n   */\n  Object m_methodKey;\n\n  /**\n   * Array of static expressions which represent the parameters to the\n   *  function.\n   *  @serial   \n   */\n  Vector m_argVec = new Vector();\n\n  /**\n   * This function is used to fixup variables from QNames to stack frame\n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list\n   * should be searched backwards for the first qualified name that\n   * corresponds to the variable reference qname.  The position of the\n   * QName in the vector from the start of the vector will be its position\n   * in the stack frame (but variables above the globalsTop value will need\n   * to be offset to the current stack frame).\n   * NEEDSDOC @param globalsSize\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n\n    if (null != m_argVec)\n    {\n      int nArgs = m_argVec.size();\n\n      for (int i = 0; i < nArgs; i++)\n      {\n        Expression arg = (Expression) m_argVec.elementAt(i);\n\n        arg.fixupVariables(vars, globalsSize);\n      }\n    }\n  }\n  \n  /**\n   * Return the namespace of the extension function.\n   *\n   * @return The namespace of the extension function.\n   */\n  public String getNamespace()\n  {\n    return m_namespace;\n  }\n  \n  /**\n   * Return the name of the extension function.\n   *\n   * @return The name of the extension function.\n   */\n  public String getFunctionName()\n  {\n    return m_extensionName;\n  }\n  \n  /**\n   * Return the method key of the extension function.\n   *\n   * @return The method key of the extension function.\n   */\n  public Object getMethodKey()\n  {\n    return m_methodKey;\n  }\n\n  /** \n   * Return the nth argument passed to the extension function.\n   * \n   * @param n The argument number index.\n   * @return The Expression object at the given index.\n   */    \n  public Expression getArg(int n) {\n    if (n >= 0 && n < m_argVec.size())\n      return (Expression) m_argVec.elementAt(n);\n    else\n      return null;\n  }\n\n  /**\n   * Return the number of arguments that were passed\n   * into this extension function.\n   *\n   * @return The number of arguments.\n   */    \n  public int getArgCount() {\n    return m_argVec.size();\n  }\n\n  /**\n   * Create a new FuncExtFunction based on the qualified name of the extension,\n   * and a unique method key.\n   *\n   * @param namespace The namespace for the extension function, which should\n   *                  not normally be null or empty.\n   * @param extensionName The local name of the extension.\n   * @param methodKey Unique method key, which is passed to\n   *                  ExtensionsTable#extFunction in order to allow caching\n   *                  of the method.\n   */\n  public FuncExtFunction(java.lang.String namespace,\n                         java.lang.String extensionName, Object methodKey)\n  {\n    m_namespace = namespace;\n    m_extensionName = extensionName;\n    m_methodKey = methodKey;\n  }\n\n  /**\n   * Execute the function.  The function must return\n   * a valid object.\n   * @param xctxt The current execution context.\n   * @return A valid XObject.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n\n    XObject result;\n    Vector argVec = new Vector();\n    int nArgs = m_argVec.size();\n\n    for (int i = 0; i < nArgs; i++)\n    {\n      Expression arg = (Expression) m_argVec.elementAt(i);\n      \n      XObject xobj = arg.execute(xctxt);\n\n      argVec.addElement(xobj);\n    }\n    ExtensionsProvider extProvider = (ExtensionsProvider)xctxt.getOwnerObject();\n    Object val = extProvider.extFunction(this, argVec);\n\n    if (null != val)\n    {\n      result = XObject.create(val, xctxt);\n    }\n    else\n    {\n      result = new XNull();\n    }\n\n    return result;\n  }\n\n  /**\n   * Set an argument expression for a function.  This method is called by the\n   * XPath compiler.\n   *\n   * @param arg non-null expression that represents the argument.\n   * @param argNum The argument number index.\n   *\n   * @throws WrongNumberArgsException If the argNum parameter is beyond what\n   * is specified for this function.\n   */\n  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n    m_argVec.addElement(arg);\n  }\n\n  /**\n   * Check that the number of arguments passed to this function is correct.\n   *\n   *\n   * @param argNum The number of arguments that is being passed to the function.\n   *\n   * @throws WrongNumberArgsException\n   */\n  public void checkNumberArgs(int argNum) throws WrongNumberArgsException{}\n\n\n  class ArgExtOwner implements ExpressionOwner\n  {\n  \n    Expression m_exp;\n  \t\n  \tArgExtOwner(Expression exp)\n  \t{\n  \t\tm_exp = exp;\n  \t}\n  \t\n    /**\n     * @see ExpressionOwner#getExpression()\n     */\n    public Expression getExpression()\n    {\n      return m_exp;\n    }\n\n\n    /**\n     * @see ExpressionOwner#setExpression(Expression)\n     */\n    public void setExpression(Expression exp)\n    {\n    \texp.exprSetParent(FuncExtFunction.this);\n    \tm_exp = exp;\n    }\n  }\n  \n  \n  /**\n   * Call the visitors for the function arguments.\n   */\n  public void callArgVisitors(XPathVisitor visitor)\n  {\n      for (int i = 0; i < m_argVec.size(); i++)\n      {\n         Expression exp = (Expression)m_argVec.elementAt(i);\n         exp.callVisitors(new ArgExtOwner(exp), visitor);\n      }\n    \n  }\n\n  /**\n   * Set the parent node.\n   * For an extension function, we also need to set the parent\n   * node for all argument expressions.\n   * \n   * @param n The parent node\n   */\n  public void exprSetParent(ExpressionNode n) \n  {\n\t\n    super.exprSetParent(n);\n      \n    int nArgs = m_argVec.size();\n\n    for (int i = 0; i < nArgs; i++)\n    {\n      Expression arg = (Expression) m_argVec.elementAt(i);\n\n      arg.exprSetParent(n);\n    }\t\t\n  }\n\n  /**\n   * Constructs and throws a WrongNumberArgException with the appropriate\n   * message for this function object.  This class supports an arbitrary\n   * number of arguments, so this method must never be called.\n   *\n   * @throws WrongNumberArgsException\n   */\n  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n    String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ \"Programmer's assertion:  the method FunctionMultiArgs.reportWrongNumberArgs() should never be called.\" });\n\n    throw new RuntimeException(fMsg);", "functions": [{"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n\n    if (null != m_argVec)\n    {\n      int nArgs = m_argVec.size();\n\n      for (int i = 0; i < nArgs; i++)\n      {\n        Expression arg = (Expression) m_argVec.elementAt(i);\n\n        arg.fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [5, 9], [6, 10], [5, 11], [5, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 5], [10, 6], [11, 5], [12, 5], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getNamespace", "code": "  public String getNamespace()\n  {\n    return m_namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFunctionName", "code": "  public String getFunctionName()\n  {\n    return m_extensionName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMethodKey", "code": "  public Object getMethodKey()\n  {\n    return m_methodKey;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getArg", "code": "  public Expression getArg(int n) {\n    if (n >= 0 && n < m_argVec.size())\n      return (Expression) m_argVec.elementAt(n);\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [5, 8], [4, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 5], [9, 4], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getArgCount", "code": "  public int getArgCount() {\n    return m_argVec.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n\n    XObject result;\n    Vector argVec = new Vector();\n    int nArgs = m_argVec.size();\n\n    for (int i = 0; i < nArgs; i++)\n    {\n      Expression arg = (Expression) m_argVec.elementAt(i);\n      \n      XObject xobj = arg.execute(xctxt);\n\n      argVec.addElement(xobj);\n    }\n    ExtensionsProvider extProvider = (ExtensionsProvider)xctxt.getOwnerObject();\n    Object val = extProvider.extFunction(this, argVec);\n\n    if (null != val)\n    {\n      result = XObject.create(val, xctxt);\n    }\n    else\n    {\n      result = new XNull();\n    }\n\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [5, 11], [10, 12], [3, 13], [5, 14], [5, 15], [6, 16], [7, 17], [2, 18], [2, 19], [4, 20], [5, 21], [5, 22], [18, 23], [19, 24], [14, 25], [15, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 5], [12, 10], [13, 3], [14, 5], [15, 5], [16, 6], [17, 7], [18, 2], [19, 2], [20, 4], [21, 5], [22, 5], [23, 18], [24, 19], [25, 14], [26, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "setArg", "code": "  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n    m_argVec.addElement(arg);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "checkNumberArgs", "code": "  public void checkNumberArgs(int argNum) throws WrongNumberArgsException{}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "callArgVisitors", "code": "  public void callArgVisitors(XPathVisitor visitor)\n  {\n      for (int i = 0; i < m_argVec.size(); i++)\n      {\n         Expression exp = (Expression)m_argVec.elementAt(i);\n         exp.callVisitors(new ArgExtOwner(exp), visitor);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [6, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 6], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "exprSetParent", "code": "  public void exprSetParent(ExpressionNode n) \n  {\n\t\n    super.exprSetParent(n);\n      \n    int nArgs = m_argVec.size();\n\n    for (int i = 0; i < nArgs; i++)\n    {\n      Expression arg = (Expression) m_argVec.elementAt(i);\n\n      arg.exprSetParent(n);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [1, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 1], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "reportWrongNumberArgs", "code": "  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n    String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ \"Programmer's assertion:  the method FunctionMultiArgs.reportWrongNumberArgs() should never be called.\" });\n\n    throw new RuntimeException(fMsg);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "FuncExtFunction", "code": "  public FuncExtFunction(java.lang.String namespace,\n                         java.lang.String extensionName, Object methodKey)\n  {\n    m_namespace = namespace;\n    m_extensionName = extensionName;\n    m_methodKey = methodKey;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "camel-1.6-2839", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/file/strategy/RenameFileProcessStrategy.java", "language": "java", "name": "org.apache.camel.component.file.strategy.RenameFileProcessStrategy", "code": "public class RenameFileProcessStrategy extends FileProcessStrategySupport {\n    private static final transient Log LOG = LogFactory.getLog(RenameFileProcessStrategy.class);\n    private FileRenamer beginRenamer;\n    private FileRenamer commitRenamer;\n\n    public RenameFileProcessStrategy() {\n        this(true);\n    }\n\n    public RenameFileProcessStrategy(boolean lock) {\n        this(lock, \".camel/\", \"\");\n    }\n\n    public RenameFileProcessStrategy(boolean lock, String namePrefix, String namePostfix) {\n        this(lock, new DefaultFileRenamer(namePrefix, namePostfix), null);\n    }\n\n    public RenameFileProcessStrategy(boolean lock, String namePrefix, String namePostfix, String preNamePrefix, String preNamePostfix) {\n        this(lock, new DefaultFileRenamer(namePrefix, namePostfix), new DefaultFileRenamer(preNamePrefix, preNamePostfix));\n    }\n\n    public RenameFileProcessStrategy(boolean lock, FileRenamer commitRenamer, FileRenamer beginRenamer) {\n        super(lock);\n        this.commitRenamer = commitRenamer;\n        this.beginRenamer = beginRenamer;\n    }\n\n    @Override\n    public boolean begin(FileEndpoint endpoint, FileExchange exchange, File file) throws Exception {\n        boolean answer = super.begin(endpoint, exchange, file);\n\n        if (beginRenamer != null) {\n            File newName = beginRenamer.renameFile(exchange, file);\n            File to = renameFile(file, newName);\n            exchange.setFile(to);\n        }\n\n        return answer;\n    }\n\n    @Override\n    public void commit(FileEndpoint endpoint, FileExchange exchange, File file) throws Exception {\n        File newName = commitRenamer.renameFile(exchange, file);\n        renameFile(file, newName);\n\n        super.commit(endpoint, exchange, file);\n    }\n\n    private static File renameFile(File from, File to) throws IOException {\n        if (to.exists()) {\n            to.delete();\n        }\n\n        File parent = to.getParentFile();\n        if (!parent.exists()) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Creating directory: \" + parent);\n            }\n            boolean mkdir = parent.mkdirs();\n            if (!mkdir) {\n                throw new IOException(\"Can not create directory: \" + parent);\n            }\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Renaming file: \" + from + \" to: \" + to);\n        }\n        boolean renamed = from.renameTo(to);\n        if (!renamed) {\n            throw new IOException(\"Can not rename file from: \" + from + \" to: \" + to);\n        }\n\n        return to;\n    }\n\n    public FileRenamer getBeginRenamer() {\n        return beginRenamer;\n    }\n\n    public void setBeginRenamer(FileRenamer beginRenamer) {\n        this.beginRenamer = beginRenamer;\n    }\n\n    public FileRenamer getCommitRenamer() {\n        return commitRenamer;\n    }\n\n    public void setCommitRenamer(FileRenamer commitRenamer) {\n        this.commitRenamer = commitRenamer;", "functions": [{"function_name": "begin", "code": "    @Override\n    public boolean begin(FileEndpoint endpoint, FileExchange exchange, File file) throws Exception {\n        boolean answer = super.begin(endpoint, exchange, file);\n\n        if (beginRenamer != null) {\n            File newName = beginRenamer.renameFile(exchange, file);\n            File to = renameFile(file, newName);\n            exchange.setFile(to);\n        }\n\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [2, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 2], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "commit", "code": "    @Override\n    public void commit(FileEndpoint endpoint, FileExchange exchange, File file) throws Exception {\n        File newName = commitRenamer.renameFile(exchange, file);\n        renameFile(file, newName);\n\n        super.commit(endpoint, exchange, file);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "renameFile", "code": "    private static File renameFile(File from, File to) throws IOException {\n        if (to.exists()) {\n            to.delete();\n        }\n\n        File parent = to.getParentFile();\n        if (!parent.exists()) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Creating directory: \" + parent);\n            }\n            boolean mkdir = parent.mkdirs();\n            if (!mkdir) {\n                throw new IOException(\"Can not create directory: \" + parent);\n            }\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Renaming file: \" + from + \" to: \" + to);\n        }\n        boolean renamed = from.renameTo(to);\n        if (!renamed) {\n            throw new IOException(\"Can not rename file from: \" + from + \" to: \" + to);\n        }\n\n        return to;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "IF", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [7, 12], [2, 13], [3, 14], [5, 15], [5, 16], [5, 17], [6, 18], [13, 19], [4, 20], [17, 21], [7, 22], [19, 23], [20, 24], [15, 25], [16, 26], [23, 27], [24, 28], [25, 29], [17, 30], [27, 31], [27, 32], [28, 33], [28, 34], [29, 35], [30, 36], [32, 37], [34, 38], [35, 39], [36, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 7], [13, 2], [14, 3], [15, 5], [16, 5], [17, 5], [18, 6], [19, 13], [20, 4], [21, 17], [22, 7], [23, 19], [24, 20], [25, 15], [26, 16], [27, 23], [28, 24], [29, 25], [30, 17], [31, 27], [32, 27], [33, 28], [34, 28], [35, 29], [36, 30], [37, 32], [38, 34], [39, 35], [40, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "getBeginRenamer", "code": "    public FileRenamer getBeginRenamer() {\n        return beginRenamer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBeginRenamer", "code": "    public void setBeginRenamer(FileRenamer beginRenamer) {\n        this.beginRenamer = beginRenamer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCommitRenamer", "code": "    public FileRenamer getCommitRenamer() {\n        return commitRenamer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCommitRenamer", "code": "    public void setCommitRenamer(FileRenamer commitRenamer) {\n        this.commitRenamer = commitRenamer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RenameFileProcessStrategy", "code": "    public RenameFileProcessStrategy() {\n        this(true);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RenameFileProcessStrategy", "code": "    public RenameFileProcessStrategy(boolean lock) {\n        this(lock, \".camel/\", \"\");", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RenameFileProcessStrategy", "code": "    public RenameFileProcessStrategy(boolean lock, String namePrefix, String namePostfix) {\n        this(lock, new DefaultFileRenamer(namePrefix, namePostfix), null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "RenameFileProcessStrategy", "code": "    public RenameFileProcessStrategy(boolean lock, String namePrefix, String namePostfix, String preNamePrefix, String preNamePostfix) {\n        this(lock, new DefaultFileRenamer(namePrefix, namePostfix), new DefaultFileRenamer(preNamePrefix, preNamePostfix));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "RenameFileProcessStrategy", "code": "    public RenameFileProcessStrategy(boolean lock, FileRenamer commitRenamer, FileRenamer beginRenamer) {\n        super(lock);\n        this.commitRenamer = commitRenamer;\n        this.beginRenamer = beginRenamer;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.6-7953", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/trax/TemplatesImpl.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.TemplatesImpl", "code": "public final class TemplatesImpl implements Templates, Serializable {\n\n    /**\n     * Name of the superclass of all translets. This is needed to\n     * determine which, among all classes comprising a translet, \n     * is the main one.\n     */\n    private static String ABSTRACT_TRANSLET \n\t= \"org.apache.xalan.xsltc.runtime.AbstractTranslet\";\n\n    /**\n     * Name of the main class or default name if unknown.\n     */\n    private String _name = null;\n\n    /**\n     * Contains the actual class definition for the translet class and\n     * any auxiliary classes.\n     */\n    private byte[][] _bytecodes = null;\n    \n    /**\n     * Contains the translet class definition(s). These are created when \n     * this Templates is created or when it is read back from disk.\n     */\n    private Class[] _class = null;\n\n    /**\n     * The index of the main translet class in the arrays _class[] and\n     * _bytecodes.\n     */\n    private int _transletIndex = -1;\n    \n    /**\n     * Contains the list of auxiliary class definitions.\n     */\n    private Hashtable _auxClasses = null;\n    \n    /**\n     * Output properties of this translet.\n     */\n    private Properties _outputProperties; \n\n    /**\n     * Number of spaces to add for output indentation.\n     */\n    private int _indentNumber;\n\n    /**\n     * This URIResolver is passed to all Transformers.\n     * Declaring it transient to fix bug 22438 \n     */\n    private transient URIResolver _uriResolver = null;\n\n    /**\n     * Cache the DTM for the stylesheet in a thread local variable,\n     * which is used by the document('') function.\n     * Use ThreadLocal because a DTM cannot be shared between\n     * multiple threads. \n     * Declaring it transient to fix bug 22438 \n     */\n    private transient ThreadLocal _sdom = new ThreadLocal();\n    \n    /**\n     * A reference to the transformer factory that this templates\n     * object belongs to.\n     */\n    private transient TransformerFactoryImpl _tfactory = null;\n\n    static final class TransletClassLoader extends ClassLoader {\n\tTransletClassLoader(ClassLoader parent) {\n\t    super(parent);\n\t}\n\n        /**\n         * Access to final protected superclass member from outer class.\n         */\n\tClass defineClass(final byte[] b) {\n            return defineClass(null, b, 0, b.length);\n\t}\n    }\n\n\n    /**\n     * Create an XSLTC template object from the bytecodes.\n     * The bytecodes for the translet and auxiliary classes, plus the name of\n     * the main translet class, must be supplied.\n     */\n    protected TemplatesImpl(byte[][] bytecodes, String transletName,\n\tProperties outputProperties, int indentNumber,\n\tTransformerFactoryImpl tfactory) \n    {\n\t_bytecodes = bytecodes;\n\t_name      = transletName;\n\t_outputProperties = outputProperties;\n\t_indentNumber = indentNumber;\n\t_tfactory = tfactory;\n    }\n    \n    /**\n     * Create an XSLTC template object from the translet class definition(s).\n     */\n    protected TemplatesImpl(Class[] transletClasses, String transletName,\n\tProperties outputProperties, int indentNumber,\n\tTransformerFactoryImpl tfactory) \n    {\n\t_class     = transletClasses;\n\t_name      = transletName;\n\t_transletIndex = 0;\n\t_outputProperties = outputProperties;\n\t_indentNumber = indentNumber;\n\t_tfactory = tfactory;\n    }\n    \n\n    /**\n     * Need for de-serialization, see readObject().\n     */\n    public TemplatesImpl() { }\n\n    /**\n     *  Overrides the default readObject implementation since we decided\n     *  it would be cleaner not to serialize the entire tranformer\n     *  factory.  [ ref bugzilla 12317 ]\n     *  We need to check if the user defined class for URIResolver also\n     *  implemented Serializable\n     *  if yes then we need to deserialize the URIResolver\n     *  Fix for bugzilla bug 22438\n     */\n    private void  readObject(ObjectInputStream is) \n      throws IOException, ClassNotFoundException \n    {\n\tis.defaultReadObject();\n        if (is.readBoolean()) {\n            _uriResolver = (URIResolver) is.readObject();\n        }\n\n\t_tfactory = new TransformerFactoryImpl();\n    } \n\n\n    /**\n     *  This is to fix bugzilla bug 22438\n     *  If the user defined class implements URIResolver and Serializable\n     *  then we want it to get serialized\n     */\n    private void writeObject(ObjectOutputStream os)\n        throws IOException, ClassNotFoundException {\n        os.defaultWriteObject();\n        if (_uriResolver instanceof Serializable) {\n            os.writeBoolean(true);\n            os.writeObject((Serializable) _uriResolver);\n        }\n        else {\n            os.writeBoolean(false);\n        }\n    }\n\n\n     /**\n     * Store URIResolver needed for Transformers.\n     */\n    public synchronized void setURIResolver(URIResolver resolver) {\n\t_uriResolver = resolver;\n    }\n\n    /**\n     * The TransformerFactory must pass us the translet bytecodes using this\n     * method before we can create any translet instances\n     */\n    protected synchronized void setTransletBytecodes(byte[][] bytecodes) {\n\t_bytecodes = bytecodes;\n    }\n\n    /**\n     * Returns the translet bytecodes stored in this template\n     */\n    public synchronized byte[][] getTransletBytecodes() {\n\treturn _bytecodes;\n    }\n\n    /**\n     * Returns the translet bytecodes stored in this template\n     */\n    public synchronized Class[] getTransletClasses() {\n\ttry {\n\t    if (_class == null) defineTransletClasses();\n\t}\n\tcatch (TransformerConfigurationException e) {\n\t}\n\treturn _class;\n    }\n\n    /**\n     * Returns the index of the main class in array of bytecodes\n     */\n    public synchronized int getTransletIndex() {\n\ttry {\n\t    if (_class == null) defineTransletClasses();\n\t}\n\tcatch (TransformerConfigurationException e) {\n\t}\n\treturn _transletIndex;\n    }\n\n    /**\n     * The TransformerFactory should call this method to set the translet name\n     */\n    protected synchronized void setTransletName(String name) {\n\t_name = name;\n    }\n\n    /**\n     * Returns the name of the main translet class stored in this template\n     */\n    protected synchronized String getTransletName() {\n\treturn _name;\n    }\n\n    /**\n     * Defines the translet class and auxiliary classes.\n     * Returns a reference to the Class object that defines the main class\n     */\n    private void defineTransletClasses()\n\tthrows TransformerConfigurationException {\n\n\tif (_bytecodes == null) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.NO_TRANSLET_CLASS_ERR);\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n\n        TransletClassLoader loader = (TransletClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new TransletClassLoader(ObjectFactory.findClassLoader());\n                }\n            });\n\n\ttry {\n\t    final int classCount = _bytecodes.length;\n\t    _class = new Class[classCount];\n\n\t    if (classCount > 1) {\n\t        _auxClasses = new Hashtable();\n\t    }\n\n\t    for (int i = 0; i < classCount; i++) {\n\t\t_class[i] = loader.defineClass(_bytecodes[i]);\n\t\tfinal Class superClass = _class[i].getSuperclass();\n\n\t\tif (superClass.getName().equals(ABSTRACT_TRANSLET)) {\n\t\t    _transletIndex = i;\n\t\t}\n\t\telse {\n\t\t    _auxClasses.put(_class[i].getName(), _class[i]);\n\t\t}\n\t    }\n\n\t    if (_transletIndex < 0) {\n\t\tErrorMsg err= new ErrorMsg(ErrorMsg.NO_MAIN_TRANSLET_ERR, _name);\n\t\tthrow new TransformerConfigurationException(err.toString());\n\t    }\n\t}\n\tcatch (ClassFormatError e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.TRANSLET_CLASS_ERR, _name);\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n\tcatch (LinkageError e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.TRANSLET_OBJECT_ERR, _name);\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n    }\n\n    /**\n     * This method generates an instance of the translet class that is\n     * wrapped inside this Template. The translet instance will later\n     * be wrapped inside a Transformer object.\n     */\n    private Translet getTransletInstance()\n\tthrows TransformerConfigurationException {\n\ttry {\n\t    if (_name == null) return null;\n\n\t    if (_class == null) defineTransletClasses();\n\n\t    AbstractTranslet translet = (AbstractTranslet) _class[_transletIndex].newInstance();\n            translet.postInitialization();\n\t    translet.setTemplates(this);\n\t    if (_auxClasses != null) {\n\t        translet.setAuxiliaryClasses(_auxClasses);\n\t    }\n\t    \n\t    return translet;\n\t}\n\tcatch (InstantiationException e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.TRANSLET_OBJECT_ERR, _name);\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n\tcatch (IllegalAccessException e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.TRANSLET_OBJECT_ERR, _name);\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n    }\n\n    /**\n     * Implements JAXP's Templates.newTransformer()\n     *\n     * @throws TransformerConfigurationException\n     */\n    public synchronized Transformer newTransformer()\n\tthrows TransformerConfigurationException \n    {\n\tTransformerImpl transformer;\n\n\ttransformer = new TransformerImpl(getTransletInstance(), _outputProperties,\n\t    _indentNumber, _tfactory);\n\t\n\tif (_uriResolver != null) {\n\t    transformer.setURIResolver(_uriResolver);\n\t}\n\treturn transformer;\n    }\n\n    /**\n     * Implements JAXP's Templates.getOutputProperties(). We need to \n     * instanciate a translet to get the output settings, so\n     * we might as well just instanciate a Transformer and use its\n     * implementation of this method.\n     */\n    public synchronized Properties getOutputProperties() { \n\ttry {\n\t    return newTransformer().getOutputProperties();\n\t}\n\tcatch (TransformerConfigurationException e) {\n\t    return null;\n\t}\n    }\n\n    /**\n     * Return the thread local copy of the stylesheet DOM.\n     */\n    public DOM getStylesheetDOM() {\n    \treturn (DOM)_sdom.get();\n    }\n    \n    /**\n     * Set the thread local copy of the stylesheet DOM.\n     */\n    public void setStylesheetDOM(DOM sdom) {\n    \t_sdom.set(sdom);", "functions": [{"function_name": "readObject", "code": "    private void  readObject(ObjectInputStream is) \n      throws IOException, ClassNotFoundException \n    {\n\tis.defaultReadObject();\n        if (is.readBoolean()) {\n            _uriResolver = (URIResolver) is.readObject();\n        }\n\n\t_tfactory = new TransformerFactoryImpl();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "writeObject", "code": "    private void writeObject(ObjectOutputStream os)\n        throws IOException, ClassNotFoundException {\n        os.defaultWriteObject();\n        if (_uriResolver instanceof Serializable) {\n            os.writeBoolean(true);\n            os.writeObject((Serializable) _uriResolver);\n        }\n        else {\n            os.writeBoolean(false);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setURIResolver", "code": "    public synchronized void setURIResolver(URIResolver resolver) {\n\t_uriResolver = resolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTransletBytecodes", "code": "    protected synchronized void setTransletBytecodes(byte[][] bytecodes) {\n\t_bytecodes = bytecodes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTransletBytecodes", "code": "    public synchronized byte[][] getTransletBytecodes() {\n\treturn _bytecodes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTransletClasses", "code": "    public synchronized Class[] getTransletClasses() {\n\ttry {\n\t    if (_class == null) defineTransletClasses();\n\t}\n\tcatch (TransformerConfigurationException e) {\n\t}\n\treturn _class;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "CATCH", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getTransletIndex", "code": "    public synchronized int getTransletIndex() {\n\ttry {\n\t    if (_class == null) defineTransletClasses();\n\t}\n\tcatch (TransformerConfigurationException e) {\n\t}\n\treturn _transletIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "CATCH", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setTransletName", "code": "    protected synchronized void setTransletName(String name) {\n\t_name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTransletName", "code": "    protected synchronized String getTransletName() {\n\treturn _name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "defineTransletClasses", "code": "    private void defineTransletClasses()\n\tthrows TransformerConfigurationException {\n\n\tif (_bytecodes == null) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.NO_TRANSLET_CLASS_ERR);\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n\n        TransletClassLoader loader = (TransletClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new TransletClassLoader(ObjectFactory.findClassLoader());\n                }\n            });\n\n\ttry {\n\t    final int classCount = _bytecodes.length;\n\t    _class = new Class[classCount];\n\n\t    if (classCount > 1) {\n\t        _auxClasses = new Hashtable();\n\t    }\n\n\t    for (int i = 0; i < classCount; i++) {\n\t\t_class[i] = loader.defineClass(_bytecodes[i]);\n\t\tfinal Class superClass = _class[i].getSuperclass();\n\n\t\tif (superClass.getName().equals(ABSTRACT_TRANSLET)) {\n\t\t    _transletIndex = i;\n\t\t}\n\t\telse {\n\t\t    _auxClasses.put(_class[i].getName(), _class[i]);\n\t\t}\n\t    }\n\n\t    if (_transletIndex < 0) {\n\t\tErrorMsg err= new ErrorMsg(ErrorMsg.NO_MAIN_TRANSLET_ERR, _name);\n\t\tthrow new TransformerConfigurationException(err.toString());\n\t    }\n\t}\n\tcatch (ClassFormatError e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.TRANSLET_CLASS_ERR, _name);\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n\tcatch (LinkageError e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.TRANSLET_OBJECT_ERR, _name);\n\t    throw new TransformerConfigurationException(err.toString());", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "CATCH", "CATCH", "IF", "LOOP", "IF", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL", "ASSIGN", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [4, 11], [4, 12], [5, 13], [5, 14], [6, 15], [7, 16], [8, 17], [1, 18], [3, 19], [3, 20], [10, 21], [11, 22], [13, 23], [6, 24], [6, 25], [15, 26], [7, 27], [7, 28], [17, 29], [2, 30], [19, 31], [22, 32], [12, 33], [23, 34], [14, 35], [24, 36], [27, 37], [7, 38], [7, 39], [8, 40], [30, 41], [31, 42], [20, 43], [36, 44], [25, 45], [37, 46], [38, 47], [40, 48], [41, 49], [27, 50], [27, 51], [28, 52], [49, 53], [53, 54], [50, 55], [54, 56], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 4], [12, 4], [13, 5], [14, 5], [15, 6], [16, 7], [17, 8], [18, 1], [19, 3], [20, 3], [21, 10], [22, 11], [23, 13], [24, 6], [25, 6], [26, 15], [27, 7], [28, 7], [29, 17], [30, 2], [31, 19], [32, 22], [33, 12], [34, 23], [35, 14], [36, 24], [37, 27], [38, 7], [39, 7], [40, 8], [41, 30], [42, 31], [43, 20], [44, 36], [45, 25], [46, 37], [47, 38], [48, 40], [49, 41], [50, 27], [51, 27], [52, 28], [53, 49], [54, 53], [55, 50], [56, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "getTransletInstance", "code": "    private Translet getTransletInstance()\n\tthrows TransformerConfigurationException {\n\ttry {\n\t    if (_name == null) return null;\n\n\t    if (_class == null) defineTransletClasses();\n\n\t    AbstractTranslet translet = (AbstractTranslet) _class[_transletIndex].newInstance();\n            translet.postInitialization();\n\t    translet.setTemplates(this);\n\t    if (_auxClasses != null) {\n\t        translet.setAuxiliaryClasses(_auxClasses);\n\t    }\n\t    \n\t    return translet;\n\t}\n\tcatch (InstantiationException e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.TRANSLET_OBJECT_ERR, _name);\n\t    throw new TransformerConfigurationException(err.toString());\n\t}\n\tcatch (IllegalAccessException e) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.TRANSLET_OBJECT_ERR, _name);\n\t    throw new TransformerConfigurationException(err.toString());", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CATCH", "RETURN", "IF", "VAR_DECL", "IF", "IF", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [2, 10], [3, 11], [3, 12], [5, 13], [1, 14], [1, 15], [7, 16], [8, 17], [8, 18], [9, 19], [11, 20], [13, 21], [7, 22], [16, 23], [17, 24], [18, 25], [19, 26], [10, 27], [20, 28], [12, 29], [5, 30], [6, 31], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 2], [11, 3], [12, 3], [13, 5], [14, 1], [15, 1], [16, 7], [17, 8], [18, 8], [19, 9], [20, 11], [21, 13], [22, 7], [23, 16], [24, 17], [25, 18], [26, 19], [27, 10], [28, 20], [29, 12], [30, 5], [31, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "newTransformer", "code": "    public synchronized Transformer newTransformer()\n\tthrows TransformerConfigurationException \n    {\n\tTransformerImpl transformer;\n\n\ttransformer = new TransformerImpl(getTransletInstance(), _outputProperties,\n\t    _indentNumber, _tfactory);\n\t\n\tif (_uriResolver != null) {\n\t    transformer.setURIResolver(_uriResolver);\n\t}\n\treturn transformer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [4, 6], [5, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 4], [7, 5], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getOutputProperties", "code": "    public synchronized Properties getOutputProperties() { \n\ttry {\n\t    return newTransformer().getOutputProperties();\n\t}\n\tcatch (TransformerConfigurationException e) {\n\t    return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getStylesheetDOM", "code": "    public DOM getStylesheetDOM() {\n    \treturn (DOM)_sdom.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStylesheetDOM", "code": "    public void setStylesheetDOM(DOM sdom) {\n    \t_sdom.set(sdom);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TemplatesImpl", "code": "    protected TemplatesImpl(byte[][] bytecodes, String transletName,\n\tProperties outputProperties, int indentNumber,\n\tTransformerFactoryImpl tfactory) \n    {\n\t_bytecodes = bytecodes;\n\t_name      = transletName;\n\t_outputProperties = outputProperties;\n\t_indentNumber = indentNumber;\n\t_tfactory = tfactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "TemplatesImpl", "code": "    protected TemplatesImpl(Class[] transletClasses, String transletName,\n\tProperties outputProperties, int indentNumber,\n\tTransformerFactoryImpl tfactory) \n    {\n\t_class     = transletClasses;\n\t_name      = transletName;\n\t_transletIndex = 0;\n\t_outputProperties = outputProperties;\n\t_indentNumber = indentNumber;\n\t_tfactory = tfactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "TemplatesImpl", "code": "    public TemplatesImpl() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "log4j-1.1-4913", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/performance/ListVsVector.java", "language": "java", "name": "org.apache.log4j.performance.ListVsVector", "code": "public class ListVsVector {\n\n  static int RUN_LENGTH = 1000000;\n  static Vector v = new Vector();\n  static Chain head;\n  static String tmp;\n\n  static\n  public \n  void main(String[] args) {\n\n    v.addElement(\"aaa\");\n    v.addElement(\"bbb\");\n    v.addElement(\"ccc\");\n    v.addElement(\"ddd\");\n    v.addElement(\"eee\");\n    \n    Chain c = new Chain(\"aaa\");\n    head = c;\n    c.next = new Chain(\"bbb\"); c = c.next;\n    c.next = new Chain(\"ccc\"); c = c.next;\n    c.next = new Chain(\"ddd\"); c = c.next;\n    c.next = new Chain(\"eee\");\n    double t;\n    t = loopChain();\n    System.out.println(\"Looping thourgh the chain took \" + t);\n\n    t = loopVector();\n    System.out.println(\"Looping thourgh the vector took \" + t);\n\n  }\n\n  static\n  double loopChain() {\n    long before = System.currentTimeMillis();\n    Chain c;\n    for(int i = 0; i < RUN_LENGTH; i++) {\n      c = head;\n      while(c != null) {\n\ttmp = c.s;\n\tc = c.next;\n      }\n    }\n    return (System.currentTimeMillis() - before)*1000.0/RUN_LENGTH;    \n  }\n\n  static\n  double loopVector() {\n    long before = System.currentTimeMillis();\n    int size = v.size();\n    for(int i = 0; i < RUN_LENGTH; i++) {\n      for(int j = 0; j < size; j++)\n\ttmp = (String) v.elementAt(j);\n    }\n    return (System.currentTimeMillis() - before)*1000.0/RUN_LENGTH;    \n  }\n\n  static class Chain {\n    public String s;\n    public Chain next;\n\n    Chain(String s) {\n      this.s = s;\n    }\n    \n    void setNext(Chain c) {\n      next = c;", "functions": [{"function_name": "main", "code": "  void main(String[] args) {\n\n    v.addElement(\"aaa\");\n    v.addElement(\"bbb\");\n    v.addElement(\"ccc\");\n    v.addElement(\"ddd\");\n    v.addElement(\"eee\");\n    \n    Chain c = new Chain(\"aaa\");\n    head = c;\n    c.next = new Chain(\"bbb\"); c = c.next;\n    c.next = new Chain(\"ccc\"); c = c.next;\n    c.next = new Chain(\"ddd\"); c = c.next;\n    c.next = new Chain(\"eee\");\n    double t;\n    t = loopChain();\n    System.out.println(\"Looping thourgh the chain took \" + t);\n\n    t = loopVector();\n    System.out.println(\"Looping thourgh the vector took \" + t);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [4, 21], [5, 22], [6, 23], [7, 24], [8, 25], [10, 26], [12, 27], [14, 28], [2, 29], [16, 30], [17, 31], [18, 32], [19, 33], [20, 34], [21, 35], [23, 36], [25, 37], [26, 38], [27, 39], [28, 40], [29, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 4], [22, 5], [23, 6], [24, 7], [25, 8], [26, 10], [27, 12], [28, 14], [29, 2], [30, 16], [31, 17], [32, 18], [33, 19], [34, 20], [35, 21], [36, 23], [37, 25], [38, 26], [39, 27], [40, 28], [41, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "loopChain", "code": "  double loopChain() {\n    long before = System.currentTimeMillis();\n    Chain c;\n    for(int i = 0; i < RUN_LENGTH; i++) {\n      c = head;\n      while(c != null) {\n\ttmp = c.s;\n\tc = c.next;\n      }\n    }\n    return (System.currentTimeMillis() - before)*1000.0/RUN_LENGTH;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LOOP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [4, 9], [7, 10], [7, 11], [8, 12], [2, 13], [2, 14], [11, 15], [12, 16], [8, 17], [8, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 4], [10, 7], [11, 7], [12, 8], [13, 2], [14, 2], [15, 11], [16, 12], [17, 8], [18, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "loopVector", "code": "  double loopVector() {\n    long before = System.currentTimeMillis();\n    int size = v.size();\n    for(int i = 0; i < RUN_LENGTH; i++) {\n      for(int j = 0; j < size; j++)\n\ttmp = (String) v.elementAt(j);\n    }\n    return (System.currentTimeMillis() - before)*1000.0/RUN_LENGTH;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LOOP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [3, 9], [4, 10], [7, 11], [7, 12], [8, 13], [2, 14], [12, 15], [8, 16], [8, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 3], [10, 4], [11, 7], [12, 7], [13, 8], [14, 2], [15, 12], [16, 8], [17, 8], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}], "label": 0}
{"sample_id": "log4j-1.2-4972", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/net/JMSSink.java", "language": "java", "name": "org.apache.log4j.net.JMSSink", "code": "public class JMSSink implements javax.jms.MessageListener {\n\n  static Logger logger = Logger.getLogger(JMSSink.class);\n\n  static public void main(String[] args) throws Exception {\n    if(args.length != 5) {\n      usage(\"Wrong number of arguments.\");\n    }\n    \n    String tcfBindingName = args[0];\n    String topicBindingName = args[1];\n    String username = args[2];\n    String password = args[3];\n    \n    \n    String configFile = args[4];\n\n    if(configFile.endsWith(\".xml\")) {\n      DOMConfigurator.configure(configFile);\n    } else {\n      PropertyConfigurator.configure(configFile);\n    }\n    \n    new JMSSink(tcfBindingName, topicBindingName, username, password);\n\n    BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n    // Loop until the word \"exit\" is typed\n    System.out.println(\"Type \\\"exit\\\" to quit JMSSink.\");\n    while(true){\n      String s = stdin.readLine( );\n      if (s.equalsIgnoreCase(\"exit\")) {\n\tSystem.out.println(\"Exiting. Kill the application if it does not exit \"\n\t\t\t   + \"due to daemon threads.\");\n\treturn; \n      }\n    } \n  }\n\n  public JMSSink( String tcfBindingName, String topicBindingName, String username,\n\t\t  String password) {\n    \n    try {\n      Context ctx = new InitialContext();\n      TopicConnectionFactory topicConnectionFactory;\n      topicConnectionFactory = (TopicConnectionFactory) lookup(ctx,\n                                                               tcfBindingName);\n\n      TopicConnection topicConnection =\n\t                        topicConnectionFactory.createTopicConnection(username,\n\t\t\t\t\t\t\t\t\t     password);\n      topicConnection.start();\n\n      TopicSession topicSession = topicConnection.createTopicSession(false,\n                                                       Session.AUTO_ACKNOWLEDGE);\n\n      Topic topic = (Topic)ctx.lookup(topicBindingName);\n\n      TopicSubscriber topicSubscriber = topicSession.createSubscriber(topic);\n    \n      topicSubscriber.setMessageListener(this);\n\n    } catch(JMSException e) {\n      logger.error(\"Could not read JMS message.\", e);\n    } catch(NamingException e) {\n      logger.error(\"Could not read JMS message.\", e);\n    } catch(RuntimeException e) {\n      logger.error(\"Could not read JMS message.\", e);\n    }\n  }\n\n  public void onMessage(javax.jms.Message message) {\n    LoggingEvent event;\n    Logger remoteLogger;\n\n    try {\n      if(message instanceof  ObjectMessage) {\n\tObjectMessage objectMessage = (ObjectMessage) message;\n\tevent = (LoggingEvent) objectMessage.getObject();\n\tremoteLogger = Logger.getLogger(event.getLoggerName());\n\tremoteLogger.callAppenders(event);\n      } else {\n\tlogger.warn(\"Received message is of type \"+message.getJMSType()\n\t\t    +\", was expecting ObjectMessage.\");\n      }      \n    } catch(JMSException jmse) {\n      logger.error(\"Exception thrown while processing incoming message.\", \n\t\t   jmse);\n    }\n  }\n\n\n  protected static Object lookup(Context ctx, String name) throws NamingException {\n    try {\n      return ctx.lookup(name);\n    } catch(NameNotFoundException e) {\n      logger.error(\"Could not find name [\"+name+\"].\");\n      throw e;\n    }\n  }\n\n  static void usage(String msg) {\n    System.err.println(msg);\n    System.err.println(\"Usage: java \" + JMSSink.class.getName()\n            + \" TopicConnectionFactoryBindingName TopicBindingName username password configFile\");\n    System.exit(1);", "functions": [{"function_name": "main", "code": "  static public void main(String[] args) throws Exception {\n    if(args.length != 5) {\n      usage(\"Wrong number of arguments.\");\n    }\n    \n    String tcfBindingName = args[0];\n    String topicBindingName = args[1];\n    String username = args[2];\n    String password = args[3];\n    \n    \n    String configFile = args[4];\n\n    if(configFile.endsWith(\".xml\")) {\n      DOMConfigurator.configure(configFile);\n    } else {\n      PropertyConfigurator.configure(configFile);\n    }\n    \n    new JMSSink(tcfBindingName, topicBindingName, username, password);\n\n    BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n    // Loop until the word \"exit\" is typed\n    System.out.println(\"Type \\\"exit\\\" to quit JMSSink.\");\n    while(true){\n      String s = stdin.readLine( );\n      if (s.equalsIgnoreCase(\"exit\")) {\n\tSystem.out.println(\"Exiting. Kill the application if it does not exit \"\n\t\t\t   + \"due to daemon threads.\");\n\treturn; ", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [0, 13], [3, 14], [9, 15], [1, 16], [1, 17], [12, 18], [2, 19], [14, 20], [15, 21], [16, 22], [19, 23], [3, 24], [3, 25], [9, 26], [16, 27], [22, 28], [17, 29], [4, 30], [5, 31], [6, 32], [7, 33], [8, 34], [26, 35], [16, 36], [36, 37], [37, 38], [37, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 0], [14, 3], [15, 9], [16, 1], [17, 1], [18, 12], [19, 2], [20, 14], [21, 15], [22, 16], [23, 19], [24, 3], [25, 3], [26, 9], [27, 16], [28, 22], [29, 17], [30, 4], [31, 5], [32, 6], [33, 7], [34, 8], [35, 26], [36, 16], [37, 36], [38, 37], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "onMessage", "code": "  public void onMessage(javax.jms.Message message) {\n    LoggingEvent event;\n    Logger remoteLogger;\n\n    try {\n      if(message instanceof  ObjectMessage) {\n\tObjectMessage objectMessage = (ObjectMessage) message;\n\tevent = (LoggingEvent) objectMessage.getObject();\n\tremoteLogger = Logger.getLogger(event.getLoggerName());\n\tremoteLogger.callAppenders(event);\n      } else {\n\tlogger.warn(\"Received message is of type \"+message.getJMSType()\n\t\t    +\", was expecting ObjectMessage.\");\n      }      \n    } catch(JMSException jmse) {\n      logger.error(\"Exception thrown while processing incoming message.\", \n\t\t   jmse);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "IF", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [5, 8], [6, 9], [8, 10], [6, 11], [6, 12], [6, 13], [6, 14], [11, 15], [13, 16], [15, 17], [15, 18], [16, 19], [14, 20], [18, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [8, 5], [9, 6], [10, 8], [11, 6], [12, 6], [13, 6], [14, 6], [15, 11], [16, 13], [17, 15], [18, 15], [19, 16], [20, 14], [21, 18], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "lookup", "code": "  protected static Object lookup(Context ctx, String name) throws NamingException {\n    try {\n      return ctx.lookup(name);\n    } catch(NameNotFoundException e) {\n      logger.error(\"Could not find name [\"+name+\"].\");\n      throw e;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [4, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 4], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "usage", "code": "  static void usage(String msg) {\n    System.err.println(msg);\n    System.err.println(\"Usage: java \" + JMSSink.class.getName()\n            + \" TopicConnectionFactoryBindingName TopicBindingName username password configFile\");\n    System.exit(1);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "JMSSink", "code": "  public JMSSink( String tcfBindingName, String topicBindingName, String username,\n\t\t  String password) {\n    \n    try {\n      Context ctx = new InitialContext();\n      TopicConnectionFactory topicConnectionFactory;\n      topicConnectionFactory = (TopicConnectionFactory) lookup(ctx,\n                                                               tcfBindingName);\n\n      TopicConnection topicConnection =\n\t                        topicConnectionFactory.createTopicConnection(username,\n\t\t\t\t\t\t\t\t\t     password);\n      topicConnection.start();\n\n      TopicSession topicSession = topicConnection.createTopicSession(false,\n                                                       Session.AUTO_ACKNOWLEDGE);\n\n      Topic topic = (Topic)ctx.lookup(topicBindingName);\n\n      TopicSubscriber topicSubscriber = topicSession.createSubscriber(topic);\n    \n      topicSubscriber.setMessageListener(this);\n\n    } catch(JMSException e) {\n      logger.error(\"Could not read JMS message.\", e);\n    } catch(NamingException e) {\n      logger.error(\"Could not read JMS message.\", e);\n    } catch(RuntimeException e) {\n      logger.error(\"Could not read JMS message.\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [6, 18], [7, 19], [8, 20], [9, 21], [11, 22], [12, 23], [14, 24], [18, 25], [19, 26], [20, 27], [10, 28], [22, 29], [17, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 6], [19, 7], [20, 8], [21, 9], [22, 11], [23, 12], [24, 14], [25, 18], [26, 19], [27, 20], [28, 10], [29, 22], [30, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}], "label": 1}
{"sample_id": "jedit-4.0-3789", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/browser/FileCellRenderer.java", "language": "java", "name": "org.gjt.sp.jedit.browser.FileCellRenderer", "code": "public class FileCellRenderer extends DefaultTreeCellRenderer\n{\n\tpublic static Icon fileIcon = GUIUtilities.loadIcon(\"file.gif\");\n\tpublic static Icon dirIcon = GUIUtilities.loadIcon(\"closed_folder.gif\");\n\tpublic static Icon openDirIcon = GUIUtilities.loadIcon(\"open_folder.gif\");\n\tpublic static Icon filesystemIcon = GUIUtilities.loadIcon(\"drive.gif\");\n\tpublic static Icon loadingIcon = GUIUtilities.loadIcon(\"drive.gif\");\n\n\t//{{{ FileCellRenderer constructor\n\tpublic FileCellRenderer()\n\t{\n\t\tplainFont = UIManager.getFont(\"Tree.font\");\n\t\tboldFont = plainFont.deriveFont(Font.BOLD);\n\t\tsetBorder(new EmptyBorder(1,0,1,0));\n\t} //}}}\n\n\t//{{{ getTreeCellRendererComponent() method\n\tpublic Component getTreeCellRendererComponent(JTree tree, Object value,\n\t\tboolean sel, boolean expanded, boolean leaf, int row,\n\t\tboolean focus)\n\t{\n\t\tsuper.getTreeCellRendererComponent(tree,value,sel,expanded,\n\t\t\tleaf,row,focus);\n\n\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)value;\n\t\tObject userObject = treeNode.getUserObject();\n\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t{\n\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)userObject;\n\n\t\t\tunderlined = (jEdit.getBuffer(file.path) != null);\n\n\t\t\tsetIcon(showIcons\n\t\t\t\t? getIconForFile(file,expanded)\n\t\t\t\t: null);\n\t\t\tsetFont(file.type == VFS.DirectoryEntry.FILE\n\t\t\t\t? plainFont : boldFont);\n\t\t\tsetText(file.name);\n\n\t\t\tif(!sel)\n\t\t\t{\n\t\t\t\tColor color = file.getColor();\n\n\t\t\t\tsetForeground(color == null\n\t\t\t\t\t? UIManager.getColor(\"Tree.foreground\")\n\t\t\t\t\t: color);\n\t\t\t}\n\t\t}\n\t\telse if(userObject instanceof BrowserView.LoadingPlaceholder)\n\t\t{\n\t\t\tsetIcon(showIcons ? loadingIcon : null);\n\t\t\tsetFont(plainFont);\n\t\t\tsetText(jEdit.getProperty(\"vfs.browser.tree.loading\"));\n\t\t\tunderlined = false;\n\t\t}\n\t\telse if(userObject instanceof String)\n\t\t{\n\t\t\tsetIcon(showIcons ? dirIcon : null);\n\t\t\tsetFont(boldFont);\n\t\t\tsetText((String)userObject);\n\t\t\tunderlined = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// userObject is null?\n\t\t\tsetIcon(null);\n\t\t\tsetText(null);\n\t\t}\n\n\t\treturn this;\n\t} //}}}\n\n\t//{{{ paintComponent() method\n\tpublic void paintComponent(Graphics g)\n\t{\n\t\tif(underlined)\n\t\t{\n\t\t\tFont font = getFont();\n\n\t\t\tFontMetrics fm = getFontMetrics(getFont());\n\t\t\tint x = (getIcon() == null ? 0\n\t\t\t\t: getIcon().getIconWidth()\n\t\t\t\t+ getIconTextGap());\n\t\t\tg.setColor(getForeground());\n\t\t\tg.drawLine(x,fm.getAscent() + 2,\n\t\t\t\tx + fm.stringWidth(getText()),\n\t\t\t\tfm.getAscent() + 2);\n\t\t}\n\n\t\tsuper.paintComponent(g);\n\t} //}}}\n\n\t//{{{ Package-private members\n\tboolean showIcons;\n\n\t//{{{ propertiesChanged() method\n\tvoid propertiesChanged()\n\t{\n\t\tshowIcons = jEdit.getBooleanProperty(\"vfs.browser.showIcons\");\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance members\n\tprivate Font plainFont;\n\tprivate Font boldFont;\n\n\tprivate boolean underlined;\n\t//}}}\n\n\t//{{{ getIconForFile() method\n\tprivate Icon getIconForFile(VFS.DirectoryEntry file, boolean expanded)\n\t{\n\t\tif(file.type == VFS.DirectoryEntry.DIRECTORY)\n\t\t\treturn (expanded ? openDirIcon : dirIcon);\n\t\telse if(file.type == VFS.DirectoryEntry.FILESYSTEM)\n\t\t\treturn filesystemIcon;\n\t\telse\n\t\t\treturn fileIcon;", "functions": [{"function_name": "getTreeCellRendererComponent", "code": "\tpublic Component getTreeCellRendererComponent(JTree tree, Object value,\n\t\tboolean sel, boolean expanded, boolean leaf, int row,\n\t\tboolean focus)\n\t{\n\t\tsuper.getTreeCellRendererComponent(tree,value,sel,expanded,\n\t\t\tleaf,row,focus);\n\n\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)value;\n\t\tObject userObject = treeNode.getUserObject();\n\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t{\n\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)userObject;\n\n\t\t\tunderlined = (jEdit.getBuffer(file.path) != null);\n\n\t\t\tsetIcon(showIcons\n\t\t\t\t? getIconForFile(file,expanded)\n\t\t\t\t: null);\n\t\t\tsetFont(file.type == VFS.DirectoryEntry.FILE\n\t\t\t\t? plainFont : boldFont);\n\t\t\tsetText(file.name);\n\n\t\t\tif(!sel)\n\t\t\t{\n\t\t\t\tColor color = file.getColor();\n\n\t\t\t\tsetForeground(color == null\n\t\t\t\t\t? UIManager.getColor(\"Tree.foreground\")\n\t\t\t\t\t: color);\n\t\t\t}\n\t\t}\n\t\telse if(userObject instanceof BrowserView.LoadingPlaceholder)\n\t\t{\n\t\t\tsetIcon(showIcons ? loadingIcon : null);\n\t\t\tsetFont(plainFont);\n\t\t\tsetText(jEdit.getProperty(\"vfs.browser.tree.loading\"));\n\t\t\tunderlined = false;\n\t\t}\n\t\telse if(userObject instanceof String)\n\t\t{\n\t\t\tsetIcon(showIcons ? dirIcon : null);\n\t\t\tsetFont(boldFont);\n\t\t\tsetText((String)userObject);\n\t\t\tunderlined = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// userObject is null?\n\t\t\tsetIcon(null);\n\t\t\tsetText(null);\n\t\t}\n\n\t\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "VAR_DECL", "COND_EXPR", "COND_EXPR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [2, 13], [12, 14], [12, 15], [2, 16], [2, 17], [3, 18], [14, 19], [2, 20], [2, 21], [2, 22], [2, 23], [12, 24], [12, 25], [12, 26], [12, 27], [16, 28], [21, 29], [22, 30], [23, 31], [14, 32], [14, 33], [14, 34], [14, 35], [14, 36], [14, 37], [24, 38], [25, 39], [27, 40], [16, 41], [29, 42], [30, 43], [30, 44], [31, 45], [31, 46], [32, 47], [33, 48], [34, 49], [37, 50], [39, 51], [40, 52], [41, 53], [28, 54], [50, 55], [53, 56], [53, 57], [56, 58], [57, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 2], [14, 12], [15, 12], [16, 2], [17, 2], [18, 3], [19, 14], [20, 2], [21, 2], [22, 2], [23, 2], [24, 12], [25, 12], [26, 12], [27, 12], [28, 16], [29, 21], [30, 22], [31, 23], [32, 14], [33, 14], [34, 14], [35, 14], [36, 14], [37, 14], [38, 24], [39, 25], [40, 27], [41, 16], [42, 29], [43, 30], [44, 30], [45, 31], [46, 31], [47, 32], [48, 33], [49, 34], [50, 37], [51, 39], [52, 40], [53, 41], [54, 28], [55, 50], [56, 53], [57, 53], [58, 56], [59, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "paintComponent", "code": "\tpublic void paintComponent(Graphics g)\n\t{\n\t\tif(underlined)\n\t\t{\n\t\t\tFont font = getFont();\n\n\t\t\tFontMetrics fm = getFontMetrics(getFont());\n\t\t\tint x = (getIcon() == null ? 0\n\t\t\t\t: getIcon().getIconWidth()\n\t\t\t\t+ getIconTextGap());\n\t\t\tg.setColor(getForeground());\n\t\t\tg.drawLine(x,fm.getAscent() + 2,\n\t\t\t\tx + fm.stringWidth(getText()),\n\t\t\t\tfm.getAscent() + 2);\n\t\t}\n\n\t\tsuper.paintComponent(g);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [6, 8], [6, 9], [6, 10], [7, 11], [3, 12], [4, 13], [5, 14], [8, 15], [8, 16], [9, 17], [10, 18], [10, 19], [12, 20], [12, 21], [12, 22], [13, 23], [17, 24], [20, 25], [20, 26], [22, 27], [22, 28], [26, 29], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 6], [9, 6], [10, 6], [11, 7], [12, 3], [13, 4], [14, 5], [15, 8], [16, 8], [17, 9], [18, 10], [19, 10], [20, 12], [21, 12], [22, 12], [23, 13], [24, 17], [25, 20], [26, 20], [27, 22], [28, 22], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "propertiesChanged", "code": "\tvoid propertiesChanged()\n\t{\n\t\tshowIcons = jEdit.getBooleanProperty(\"vfs.browser.showIcons\");", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getIconForFile", "code": "\tprivate Icon getIconForFile(VFS.DirectoryEntry file, boolean expanded)\n\t{\n\t\tif(file.type == VFS.DirectoryEntry.DIRECTORY)\n\t\t\treturn (expanded ? openDirIcon : dirIcon);\n\t\telse if(file.type == VFS.DirectoryEntry.FILESYSTEM)\n\t\t\treturn filesystemIcon;\n\t\telse\n\t\t\treturn fileIcon;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "COND_EXPR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "FileCellRenderer", "code": "\tpublic FileCellRenderer()\n\t{\n\t\tplainFont = UIManager.getFont(\"Tree.font\");\n\t\tboldFont = plainFont.deriveFont(Font.BOLD);\n\t\tsetBorder(new EmptyBorder(1,0,1,0));", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [4, 8], [4, 9], [4, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 4], [8, 4], [9, 4], [10, 4], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "xalan-2.5-7204", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/objects/XRTreeFrag.java", "language": "java", "name": "org.apache.xpath.objects.XRTreeFrag", "code": "public class XRTreeFrag extends XObject implements Cloneable\n{\n  DTM m_dtm;\n  int m_dtmRoot;\n  XPathContext m_xctxt;\n  boolean m_allowRelease = false;\n\n  \n  /**\n   * Create an XRTreeFrag Object.\n   *\n   * @param frag Document fragment this will wrap\n   */\n  public XRTreeFrag(int root, XPathContext xctxt, ExpressionNode parent)\n  {\n    super(null);\n    \n    exprSetParent(parent);\n    m_dtmRoot = root;\n    m_xctxt = xctxt;\n    m_dtm = xctxt.getDTM(root);\n  }\n  \n  /**\n   * Create an XRTreeFrag Object.\n   *\n   * @param frag Document fragment this will wrap\n   */\n  public XRTreeFrag(int root, XPathContext xctxt)\n  {\n    super(null);\n    \n    m_dtmRoot = root;\n    m_xctxt = xctxt;\n    m_dtm = xctxt.getDTM(root);\n  }\n\n  \n  /**\n   * Return a java object that's closest to the representation\n   * that should be handed to an extension.\n   *\n   * @return The object that this class wraps\n   */\n  public Object object()\n  {\n    if (m_xctxt != null)\n      return new org.apache.xml.dtm.ref.DTMNodeIterator((DTMIterator)(new org.apache.xpath.NodeSetDTM(m_dtmRoot, m_xctxt.getDTMManager())));\n    else\n      return super.object();\n  }\n  \n  /**\n   * Create an XRTreeFrag Object.\n   *\n   * @param frag Document fragment this will wrap\n   */\n  public XRTreeFrag(Expression expr)\n  {\n    super(expr);\n  }\n  \n  /**\n   * Release any resources this object may have by calling destruct().\n   * %ISSUE% This release will occur asynchronously. Resources it manipulates\n   * MUST be thread-safe!\n   *\n   * @throws Throwable\n   */\n  protected void finalize() throws Throwable\n  {\n    try\n    {\n      destruct();\n    }\n    finally\n    {\n    }\n  }\n  \n  /**\n   * Specify if it's OK for detach to release the iterator for reuse.\n   * \n   * @param allowRelease true if it is OK for detach to release this iterator \n   * for pooling.\n   */\n  public void allowDetachToRelease(boolean allowRelease)\n  {\n    m_allowRelease = allowRelease;\n  }\n\n  /**\n   * Detaches the <code>DTMIterator</code> from the set which it iterated\n   * over, releasing any computational resources and placing the iterator\n   * in the INVALID state. After <code>detach</code> has been invoked,\n   * calls to <code>nextNode</code> or <code>previousNode</code> will\n   * raise a runtime exception.\n   * \n   * In general, detach should only be called once on the object.\n   */\n  public void detach()\n  {\n    if(m_allowRelease)\n    {\n      int ident = m_xctxt.getDTMIdentity(m_dtm);\n      DTM foundDTM = m_xctxt.getDTM(ident);      \n      if(foundDTM == m_dtm)\n      {\n        m_xctxt.release(m_dtm, true);\n        m_dtm = null;\n        m_xctxt = null;\n      }\n      m_obj = null;\n    }\n  }\n  \n  /**\n   * Forces the object to release it's resources.  This is more harsh than \n   * detach().  You can call destruct as many times as you want.\n   */\n  public void destruct()\n  {\n    if(null != m_dtm)\n    {\n      int ident = m_xctxt.getDTMIdentity(m_dtm);\n      DTM foundDTM = m_xctxt.getDTM(ident);      \n      if(foundDTM == m_dtm)\n      {\n        m_xctxt.release(m_dtm, true);\n        m_dtm = null;\n        m_xctxt = null;\n      }\n    }\n    m_obj = null;\n }\n\n  /**\n   * Tell what kind of class this is.\n   *\n   * @return type CLASS_RTREEFRAG \n   */\n  public int getType()\n  {\n    return CLASS_RTREEFRAG;\n  }\n\n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return type string \"#RTREEFRAG\"\n   */\n  public String getTypeString()\n  {\n    return \"#RTREEFRAG\";\n  }\n\n  /**\n   * Cast result object to a number.\n   *\n   * @return The result tree fragment as a number or NaN\n   */\n  public double num()\n    throws javax.xml.transform.TransformerException\n  {\n\n    XMLString s = xstr();\n\n    return s.toDouble();\n  }\n\n  /**\n   * Cast result object to a boolean.  This always returns true for a RTreeFrag\n   * because it is treated like a node-set with a single root node.\n   *\n   * @return true\n   */\n  public boolean bool()\n  {\n    return true;\n  }\n  \n  private XMLString m_xmlStr = null;\n  \n  /**\n   * Cast result object to an XMLString.\n   *\n   * @return The document fragment node data or the empty string. \n   */\n  public XMLString xstr()\n  {\n    if(null == m_xmlStr)\n      m_xmlStr = m_dtm.getStringValue(m_dtmRoot);\n    \n    return m_xmlStr;\n  }\n  \n  /**\n   * Cast result object to a string.\n   *\n   * @return The string this wraps or the empty string if null\n   */\n  public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)\n  {\n    XString xstring = (XString)xstr();\n    xstring.appendToFsb(fsb);\n  }\n\n\n  /**\n   * Cast result object to a string.\n   *\n   * @return The document fragment node data or the empty string. \n   */\n  public String str()\n  {\n    String str = m_dtm.getStringValue(m_dtmRoot).toString();\n\n    return (null == str) ? \"\" : str;\n  }\n\n  /**\n   * Cast result object to a result tree fragment.\n   *\n   * @return The document fragment this wraps\n   */\n  public int rtf()\n  {\n    return m_dtmRoot;\n  }\n\n  /**\n   * Cast result object to a DTMIterator.\n   * dml - modified to return an RTFIterator for\n   * benefit of EXSLT object-type function in \n   * {@link org.apache.xalan.lib.ExsltCommon}.\n   * @return The document fragment as a DTMIterator\n   */\n  public DTMIterator asNodeIterator()\n  {\n    return new RTFIterator(m_dtmRoot, m_xctxt.getDTMManager());\n  }\n\n  /**\n   * Cast result object to a nodelist. (special function).\n   *\n   * @return The document fragment as a nodelist\n   */\n  public NodeList convertToNodeset()\n  {\n\n    if (m_obj instanceof NodeList)\n      return (NodeList) m_obj;\n    else\n      return new org.apache.xml.dtm.ref.DTMNodeList(asNodeIterator());\n  }\n\n  /**\n   * Tell if two objects are functionally equal.\n   *\n   * @param obj2 Object to compare this to\n   *\n   * @return True if the two objects are equal\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean equals(XObject obj2)\n  {\n\n    try\n    {\n      if (XObject.CLASS_NODESET == obj2.getType())\n      {\n  \n        return obj2.equals(this);\n      }\n      else if (XObject.CLASS_BOOLEAN == obj2.getType())\n      {\n        return bool() == obj2.bool();\n      }\n      else if (XObject.CLASS_NUMBER == obj2.getType())\n      {\n        return num() == obj2.num();\n      }\n      else if (XObject.CLASS_NODESET == obj2.getType())\n      {\n        return xstr().equals(obj2.xstr());\n      }\n      else if (XObject.CLASS_STRING == obj2.getType())\n      {\n        return xstr().equals(obj2.xstr());\n      }\n      else if (XObject.CLASS_RTREEFRAG == obj2.getType())\n      {\n  \n        return xstr().equals(obj2.xstr());\n      }\n      else\n      {\n        return super.equals(obj2);\n      }\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);", "functions": [{"function_name": "object", "code": "  public Object object()\n  {\n    if (m_xctxt != null)\n      return new org.apache.xml.dtm.ref.DTMNodeIterator((DTMIterator)(new org.apache.xpath.NodeSetDTM(m_dtmRoot, m_xctxt.getDTMManager())));\n    else\n      return super.object();", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "finalize", "code": "  protected void finalize() throws Throwable\n  {\n    try\n    {\n      destruct();", "ast_nodes": ["FUNC_DECL", "TRY", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "allowDetachToRelease", "code": "  public void allowDetachToRelease(boolean allowRelease)\n  {\n    m_allowRelease = allowRelease;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "detach", "code": "  public void detach()\n  {\n    if(m_allowRelease)\n    {\n      int ident = m_xctxt.getDTMIdentity(m_dtm);\n      DTM foundDTM = m_xctxt.getDTM(ident);      \n      if(foundDTM == m_dtm)\n      {\n        m_xctxt.release(m_dtm, true);\n        m_dtm = null;\n        m_xctxt = null;\n      }\n      m_obj = null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [5, 7], [3, 8], [4, 9], [2, 10], [2, 11], [2, 12], [10, 13], [11, 14], [12, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 5], [8, 3], [9, 4], [10, 2], [11, 2], [12, 2], [13, 10], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "destruct", "code": "  public void destruct()\n  {\n    if(null != m_dtm)\n    {\n      int ident = m_xctxt.getDTMIdentity(m_dtm);\n      DTM foundDTM = m_xctxt.getDTM(ident);      \n      if(foundDTM == m_dtm)\n      {\n        m_xctxt.release(m_dtm, true);\n        m_dtm = null;\n        m_xctxt = null;\n      }\n    }\n    m_obj = null;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [1, 7], [3, 8], [5, 9], [6, 10], [7, 11], [5, 12], [5, 13], [5, 14], [12, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 1], [8, 3], [9, 5], [10, 6], [11, 7], [12, 5], [13, 5], [14, 5], [15, 12], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_RTREEFRAG;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"#RTREEFRAG\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "num", "code": "  public double num()\n    throws javax.xml.transform.TransformerException\n  {\n\n    XMLString s = xstr();\n\n    return s.toDouble();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "bool", "code": "  public boolean bool()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "xstr", "code": "  public XMLString xstr()\n  {\n    if(null == m_xmlStr)\n      m_xmlStr = m_dtm.getStringValue(m_dtmRoot);\n    \n    return m_xmlStr;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "appendToFsb", "code": "  public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)\n  {\n    XString xstring = (XString)xstr();\n    xstring.appendToFsb(fsb);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "str", "code": "  public String str()\n  {\n    String str = m_dtm.getStringValue(m_dtmRoot).toString();\n\n    return (null == str) ? \"\" : str;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "rtf", "code": "  public int rtf()\n  {\n    return m_dtmRoot;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "asNodeIterator", "code": "  public DTMIterator asNodeIterator()\n  {\n    return new RTFIterator(m_dtmRoot, m_xctxt.getDTMManager());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "convertToNodeset", "code": "  public NodeList convertToNodeset()\n  {\n\n    if (m_obj instanceof NodeList)\n      return (NodeList) m_obj;\n    else\n      return new org.apache.xml.dtm.ref.DTMNodeList(asNodeIterator());", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "equals", "code": "  public boolean equals(XObject obj2)\n  {\n\n    try\n    {\n      if (XObject.CLASS_NODESET == obj2.getType())\n      {\n  \n        return obj2.equals(this);\n      }\n      else if (XObject.CLASS_BOOLEAN == obj2.getType())\n      {\n        return bool() == obj2.bool();\n      }\n      else if (XObject.CLASS_NUMBER == obj2.getType())\n      {\n        return num() == obj2.num();\n      }\n      else if (XObject.CLASS_NODESET == obj2.getType())\n      {\n        return xstr().equals(obj2.xstr());\n      }\n      else if (XObject.CLASS_STRING == obj2.getType())\n      {\n        return xstr().equals(obj2.xstr());\n      }\n      else if (XObject.CLASS_RTREEFRAG == obj2.getType())\n      {\n  \n        return xstr().equals(obj2.xstr());\n      }\n      else\n      {\n        return super.equals(obj2);\n      }\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "THROW_RAISE", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "RETURN", "CALL", "IF", "BINARY_OP", "RETURN", "CALL", "CALL", "IF", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [6, 10], [4, 11], [7, 12], [9, 13], [9, 14], [6, 15], [10, 16], [11, 17], [13, 18], [13, 19], [9, 20], [14, 21], [15, 22], [18, 23], [18, 24], [13, 25], [19, 26], [20, 27], [22, 28], [22, 29], [23, 30], [18, 31], [24, 32], [25, 33], [27, 34], [27, 35], [23, 36], [23, 37], [30, 38], [31, 39], [33, 40], [37, 41], [39, 42], [40, 43], [41, 44], [42, 45], [44, 46], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 6], [11, 4], [12, 7], [13, 9], [14, 9], [15, 6], [16, 10], [17, 11], [18, 13], [19, 13], [20, 9], [21, 14], [22, 15], [23, 18], [24, 18], [25, 13], [26, 19], [27, 20], [28, 22], [29, 22], [30, 23], [31, 18], [32, 24], [33, 25], [34, 27], [35, 27], [36, 23], [37, 23], [38, 30], [39, 31], [40, 33], [41, 37], [42, 39], [43, 40], [44, 41], [45, 42], [46, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "XRTreeFrag", "code": "  public XRTreeFrag(int root, XPathContext xctxt, ExpressionNode parent)\n  {\n    super(null);\n    \n    exprSetParent(parent);\n    m_dtmRoot = root;\n    m_xctxt = xctxt;\n    m_dtm = xctxt.getDTM(root);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "XRTreeFrag", "code": "  public XRTreeFrag(int root, XPathContext xctxt)\n  {\n    super(null);\n    \n    m_dtmRoot = root;\n    m_xctxt = xctxt;\n    m_dtm = xctxt.getDTM(root);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "XRTreeFrag", "code": "  public XRTreeFrag(Expression expr)\n  {\n    super(expr);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.5-6998", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/Version.java", "language": "java", "name": "org.apache.xalan.Version", "code": "public class Version\n{\n\n  /**\n   * Get the basic version string for the current Xalan release.\n   * Version String formatted like \n   * <CODE>\"<B>Xalan</B> <B>Java</B> v.r[.dd| <B>D</B>nn]\"</CODE>.\n   *\n   * Futurework: have this read version info from jar manifest.\n   *\n   * @return String denoting our current version\n   */\n  public static String getVersion()\n  {\n    return getProduct()+\" \"+getImplementationLanguage()+\" \"\n           +getMajorVersionNum()+\".\"+getReleaseVersionNum()+\".\"\n           +( (getDevelopmentVersionNum() > 0) ? \n               (\"D\"+getDevelopmentVersionNum()) : (\"\"+getMaintenanceVersionNum()));\n  }\n\n  /**\n   * Print the processor version to the command line.\n   *\n   * @param argv command line arguments, unused.\n   */\n  public static void main(String argv[])\n  {\n    System.out.println(getVersion());\n  }\n\n  /**\n   * Name of product: Xalan.\n   */\n  public static String getProduct()\n  {\n    return \"Xalan\";\n  }\n\n  /**\n   * Implementation Language: Java.\n   */\n  public static String getImplementationLanguage()\n  {\n    return \"Java\";\n  }\n\n  /**\n   * Major version number.\n   * Version number. This changes only when there is a\n   *          significant, externally apparent enhancement from\n   *          the previous release. 'n' represents the n'th\n   *          version.\n   *\n   *          Clients should carefully consider the implications\n   *          of new versions as external interfaces and behaviour\n   *          may have changed.\n   */\n  public static int getMajorVersionNum()\n  {\n    return org.apache.xalan.processor.XSLProcessorVersion.VERSION;\n    \n  }\n\n  /**\n   * Release Number.\n   * Release number. This changes when:\n   *            -  a new set of functionality is to be added, eg,\n   *               implementation of a new W3C specification.\n   *            -  API or behaviour change.\n   *            -  its designated as a reference release.\n   */\n  public static int getReleaseVersionNum()\n  {\n    return org.apache.xalan.processor.XSLProcessorVersion.RELEASE;\n  }\n\n  /**\n   * Maintenance Drop Number.\n   * Optional identifier used to designate maintenance\n   *          drop applied to a specific release and contains\n   *          fixes for defects reported. It maintains compatibility\n   *          with the release and contains no API changes.\n   *          When missing, it designates the final and complete\n   *          development drop for a release.\n   */\n  public static int getMaintenanceVersionNum()\n  {\n    return org.apache.xalan.processor.XSLProcessorVersion.MAINTENANCE;\n  }\n\n  /**\n   * Development Drop Number.\n   * Optional identifier designates development drop of\n   *          a specific release. D01 is the first development drop\n   *          of a new release.\n   *\n   *          Development drops are works in progress towards a\n   *          compeleted, final release. A specific development drop\n   *          may not completely implement all aspects of a new\n   *          feature, which may take several development drops to\n   *          complete. At the point of the final drop for the\n   *          release, the D suffix will be omitted.\n   *\n   *          Each 'D' drops can contain functional enhancements as\n   *          well as defect fixes. 'D' drops may not be as stable as\n   *          the final releases.\n   */\n  public static int getDevelopmentVersionNum()\n  {\n    return org.apache.xalan.processor.XSLProcessorVersion.DEVELOPMENT;", "functions": [{"function_name": "getVersion", "code": "  public static String getVersion()\n  {\n    return getProduct()+\" \"+getImplementationLanguage()+\" \"\n           +getMajorVersionNum()+\".\"+getReleaseVersionNum()+\".\"\n           +( (getDevelopmentVersionNum() > 0) ? \n               (\"D\"+getDevelopmentVersionNum()) : (\"\"+getMaintenanceVersionNum()));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [3, 7], [4, 8], [4, 9], [5, 10], [5, 11], [6, 12], [6, 13], [7, 14], [7, 15], [9, 16], [9, 17], [17, 18], [17, 19], [19, 20], [19, 21], [21, 22], [21, 23], [23, 24], [23, 25], [25, 26], [25, 27], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 3], [8, 4], [9, 4], [10, 5], [11, 5], [12, 6], [13, 6], [14, 7], [15, 7], [16, 9], [17, 9], [18, 17], [19, 17], [20, 19], [21, 19], [22, 21], [23, 21], [24, 23], [25, 23], [26, 25], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "main", "code": "  public static void main(String argv[])\n  {\n    System.out.println(getVersion());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getProduct", "code": "  public static String getProduct()\n  {\n    return \"Xalan\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getImplementationLanguage", "code": "  public static String getImplementationLanguage()\n  {\n    return \"Java\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMajorVersionNum", "code": "  public static int getMajorVersionNum()\n  {\n    return org.apache.xalan.processor.XSLProcessorVersion.VERSION;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getReleaseVersionNum", "code": "  public static int getReleaseVersionNum()\n  {\n    return org.apache.xalan.processor.XSLProcessorVersion.RELEASE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMaintenanceVersionNum", "code": "  public static int getMaintenanceVersionNum()\n  {\n    return org.apache.xalan.processor.XSLProcessorVersion.MAINTENANCE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDevelopmentVersionNum", "code": "  public static int getDevelopmentVersionNum()\n  {\n    return org.apache.xalan.processor.XSLProcessorVersion.DEVELOPMENT;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "poi-2.5-5910", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/GroupMarkerSubRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.GroupMarkerSubRecord", "code": "public class GroupMarkerSubRecord\n    extends SubRecord\n{\n    public final static short      sid                             = 0x06;\n\n\n    public GroupMarkerSubRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a group marker record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x00 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public GroupMarkerSubRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a group marker record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x00 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public GroupMarkerSubRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Group Marker record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        reserved = new byte[size];\n        System.arraycopy(data, offset, reserved, 0, size);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        String nl = System.getProperty(\"line.separator\");\n        buffer.append(\"[ftGmo]\" + nl);\n        buffer.append(\"  reserved = \").append(HexDump.toHex(reserved)).append(nl);\n        buffer.append(\"[/ftGmo]\" + nl);\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n        System.arraycopy(reserved, 0, data, offset + 4, getRecordSize() - 4);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4 + reserved.length;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n        GroupMarkerSubRecord rec = new GroupMarkerSubRecord();\n        rec.reserved = new byte[reserved.length];\n        for ( int i = 0; i < reserved.length; i++ )\n            rec.reserved[i] = reserved[i];\n        return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Group Marker record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        reserved = new byte[size];\n        System.arraycopy(data, offset, reserved, 0, size);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        String nl = System.getProperty(\"line.separator\");\n        buffer.append(\"[ftGmo]\" + nl);\n        buffer.append(\"  reserved = \").append(HexDump.toHex(reserved)).append(nl);\n        buffer.append(\"[/ftGmo]\" + nl);\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [6, 10], [6, 11], [7, 12], [2, 13], [3, 14], [8, 15], [11, 16], [12, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 6], [11, 6], [12, 7], [13, 2], [14, 3], [15, 8], [16, 11], [17, 12], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n        System.arraycopy(reserved, 0, data, offset + 4, getRecordSize() - 4);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [5, 10], [6, 11], [7, 12], [8, 13], [8, 14], [9, 15], [6, 16], [11, 17], [12, 18], [16, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 5], [11, 6], [12, 7], [13, 8], [14, 8], [15, 9], [16, 6], [17, 11], [18, 12], [19, 16], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4 + reserved.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        GroupMarkerSubRecord rec = new GroupMarkerSubRecord();\n        rec.reserved = new byte[reserved.length];\n        for ( int i = 0; i < reserved.length; i++ )\n            rec.reserved[i] = reserved[i];\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [2, 6], [3, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 2], [7, 3], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "GroupMarkerSubRecord", "code": "    public GroupMarkerSubRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "GroupMarkerSubRecord", "code": "    public GroupMarkerSubRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "GroupMarkerSubRecord", "code": "    public GroupMarkerSubRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-2.0-5442", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/DefaultRowHeightRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DefaultRowHeightRecord", "code": "public class DefaultRowHeightRecord\n    extends Record\n{\n    public final static short sid = 0x225;\n    private short             field_1_option_flags;\n    private short             field_2_row_height;\n\n    public DefaultRowHeightRecord()\n    {\n    }\n\n    /**\n     * Constructs a DefaultRowHeight record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x225 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public DefaultRowHeightRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a DefaultRowHeight record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x225 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the records data\n     */\n\n    public DefaultRowHeightRecord(short id, short size, byte [] data,\n                                  int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A DefaultRowHeight RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_option_flags = LittleEndian.getShort(data, 0 + offset);\n        field_2_row_height   = LittleEndian.getShort(data, 2 + offset);\n    }\n\n    /**\n     * set the (currently unimportant to HSSF) option flags\n     * @param flags the bitmask to set\n     */\n\n    public void setOptionFlags(short flags)\n    {\n        field_1_option_flags = flags;\n    }\n\n    /**\n     * set the default row height\n     * @param height    for undefined rows/rows w/undefined height\n     */\n\n    public void setRowHeight(short height)\n    {\n        field_2_row_height = height;\n    }\n\n    /**\n     * get the (currently unimportant to HSSF) option flags\n     * @return flags - the current bitmask\n     */\n\n    public short getOptionFlags()\n    {\n        return field_1_option_flags;\n    }\n\n    /**\n     * get the default row height\n     * @return rowheight for undefined rows/rows w/undefined height\n     */\n\n    public short getRowHeight()\n    {\n        return field_2_row_height;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DEFAULTROWHEIGHT]\\n\");\n        buffer.append(\"    .optionflags    = \")\n            .append(Integer.toHexString(getOptionFlags())).append(\"\\n\");\n        buffer.append(\"    .rowheight      = \")\n            .append(Integer.toHexString(getRowHeight())).append(\"\\n\");\n        buffer.append(\"[/DEFAULTROWHEIGHT]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x4);\n        LittleEndian.putShort(data, 4 + offset, getOptionFlags());\n        LittleEndian.putShort(data, 6 + offset, getRowHeight());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 8;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      DefaultRowHeightRecord rec = new DefaultRowHeightRecord();\n      rec.field_1_option_flags = field_1_option_flags;\n      rec.field_2_row_height = field_2_row_height;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A DefaultRowHeight RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_option_flags = LittleEndian.getShort(data, 0 + offset);\n        field_2_row_height   = LittleEndian.getShort(data, 2 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [6, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 6], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setOptionFlags", "code": "    public void setOptionFlags(short flags)\n    {\n        field_1_option_flags = flags;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRowHeight", "code": "    public void setRowHeight(short height)\n    {\n        field_2_row_height = height;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptionFlags", "code": "    public short getOptionFlags()\n    {\n        return field_1_option_flags;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRowHeight", "code": "    public short getRowHeight()\n    {\n        return field_2_row_height;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DEFAULTROWHEIGHT]\\n\");\n        buffer.append(\"    .optionflags    = \")\n            .append(Integer.toHexString(getOptionFlags())).append(\"\\n\");\n        buffer.append(\"    .rowheight      = \")\n            .append(Integer.toHexString(getRowHeight())).append(\"\\n\");\n        buffer.append(\"[/DEFAULTROWHEIGHT]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [5, 10], [5, 11], [6, 12], [6, 13], [6, 14], [7, 15], [2, 16], [10, 17], [11, 18], [13, 19], [14, 20], [18, 21], [20, 22], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 5], [11, 5], [12, 6], [13, 6], [14, 6], [15, 7], [16, 2], [17, 10], [18, 11], [19, 13], [20, 14], [21, 18], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x4);\n        LittleEndian.putShort(data, 4 + offset, getOptionFlags());\n        LittleEndian.putShort(data, 6 + offset, getRowHeight());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [5, 10], [6, 11], [6, 12], [7, 13], [8, 14], [10, 15], [12, 16], [7, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 5], [11, 6], [12, 6], [13, 7], [14, 8], [15, 10], [16, 12], [17, 7], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 8;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      DefaultRowHeightRecord rec = new DefaultRowHeightRecord();\n      rec.field_1_option_flags = field_1_option_flags;\n      rec.field_2_row_height = field_2_row_height;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DefaultRowHeightRecord", "code": "    public DefaultRowHeightRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DefaultRowHeightRecord", "code": "    public DefaultRowHeightRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DefaultRowHeightRecord", "code": "    public DefaultRowHeightRecord(short id, short size, byte [] data,\n                                  int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.4-6444", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/trax/TransformerHandlerImpl.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.TransformerHandlerImpl", "code": "public class TransformerHandlerImpl implements TransformerHandler, DeclHandler {\n\n    private TransformerImpl  _transformer;\n    private AbstractTranslet _translet = null;\n    private String           _systemId;\n    private DOMImpl          _dom = null;\n    private ContentHandler   _handler = null;\n    private LexicalHandler   _lexHandler = null;\n    private DTDMonitor       _dtd = null;\n    private Result           _result = null;\n\n\n    /**\n     * A flag indicating whether this transformer handler implements the \n     * identity transform.\n     */\n    private boolean _isIdentity = false;\n\n    /**\n     * Cosntructor - pass in reference to a TransformerImpl object\n     */\n    protected TransformerHandlerImpl(TransformerImpl transformer) {\n\t_transformer = transformer;\n\n\tif (transformer.isIdentity()) {\n\t    _handler = new DefaultHandler();\n\t    _isIdentity = true;\n\t}\n\telse {\n\t    _translet = _transformer.getTranslet();\n\n\t    _dom = new DOMImpl();\n\t    _handler = _dom.getBuilder();\n\t    _lexHandler = (LexicalHandler) _handler;\n\n\t    _dtd = new DTDMonitor();\n\t}\n    }\n\n    /**\n     * Implements javax.xml.transform.sax.TransformerHandler.getSystemId()\n     * Get the base ID (URI or system ID) from where relative URLs will be\n     * resolved.\n     * @return The systemID that was set with setSystemId(String id)\n     */\n    public String getSystemId() {\n\treturn _systemId;\n    }\n\n    /**\n     * Implements javax.xml.transform.sax.TransformerHandler.setSystemId()\n     * Get the base ID (URI or system ID) from where relative URLs will be\n     * resolved.\n     * @param id Base URI for this stylesheet\n     */\n    public void setSystemId(String id) {\n\t_systemId = id;\n    }\n\n    /**\n     * Implements javax.xml.transform.sax.TransformerHandler.getTransformer()\n     * Get the Transformer associated with this handler, which is needed in\n     * order to set parameters and output properties.\n     * @return The Transformer object\n     */\n    public Transformer getTransformer() {\n\treturn _transformer;\n    }\n\n    /**\n     * Implements javax.xml.transform.sax.TransformerHandler.setResult()\n     * Enables the user of the TransformerHandler to set the to set the Result\n     * for the transformation.\n     * @param result A Result instance, should not be null\n     * @throws IllegalArgumentException if result is invalid for some reason\n     */\n    public void setResult(Result result) throws IllegalArgumentException {\n\t_result = result;\n\n\tif (_isIdentity) {\n\t    try {\n\t\tTransletOutputHandler outputHandler =\n\t\t    _transformer.getOutputHandler(result);\n\t\t_transformer.transferOutputProperties(outputHandler);\n\n\t\t_handler = new SAX2TO(outputHandler);\n\t\t_lexHandler = (LexicalHandler) _handler;\n\t    }\n\t    catch (TransformerException e) {\n\t\t_result = null;\n\t    }\n\t}\n\telse if (_done) {\n\t    try {\n\t\t_transformer.setDOM(_dom);\n\t\t_transformer.transform(null, _result);\n\t    }\n\t    catch (TransformerException e) {\n\t\tthrow new IllegalArgumentException(e.getMessage());\n\t    }\n\t}\n    }\n\n    /**\n     * Implements org.xml.sax.ContentHandler.characters()\n     * Receive notification of character data.\n     */\n    public void characters(char[] ch, int start, int length) \n\tthrows SAXException \n    {\n\t_handler.characters(ch, start, length);\n    }\n\n    /**\n     * Implements org.xml.sax.ContentHandler.startDocument()\n     * Receive notification of the beginning of a document.\n     */\n    public void startDocument() throws SAXException {\n\tif (_result == null) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_SET_RESULT_ERR);\n\t    throw new SAXException(err.toString());\n\t}\n\n\tif (!_isIdentity) {\n\t    _dom.setDocumentURI(_systemId);\n\t}\n\n\t_handler.startDocument();\n    }\n\n    /**\n     * Implements org.xml.sax.ContentHandler.endDocument()\n     * Receive notification of the end of a document.\n     */\n    public void endDocument() throws SAXException {\n\t_handler.endDocument();\n\n\tif (!_isIdentity) {\n\t    if (_result != null) {\n\t\ttry {\n\t\t    _transformer.setDOM(_dom);\n\t\t    _transformer.transform(null, _result);\n\t\t}\n\t\tcatch (TransformerException e) {\n\t\t    throw new SAXException(e);\n\t\t}\n\t    }\n\t    _done = true;\n\n\t    _transformer.setDOM(_dom);\n\t}\n    }\n\t\n    /**\n     * Implements org.xml.sax.ContentHandler.startElement()\n     * Receive notification of the beginning of an element.\n     */\n    public void startElement(String uri, String localName,\n\t\t\t     String qname, Attributes attributes)\n\tthrows SAXException \n    {\n\t_handler.startElement(uri, localName, qname, attributes);\n    }\n\t\n    /**\n     * Implements org.xml.sax.ContentHandler.endElement()\n     * Receive notification of the end of an element.\n     */\n    public void endElement(String namespaceURI, String localName, String qname)\n\tthrows SAXException \n    {\n\t_handler.endElement(namespaceURI, localName, qname);\n    }\n\n    /**\n     * Implements org.xml.sax.ContentHandler.processingInstruction()\n     * Receive notification of a processing instruction.\n     */\n    public void processingInstruction(String target, String data)\n\tthrows SAXException \n    {\n\t_handler.processingInstruction(target, data);\n    }\n\n    /**\n     * Implements org.xml.sax.ext.LexicalHandler.startCDATA()\n     */\n    public void startCDATA() throws SAXException { \n\tif (_lexHandler != null) {\n\t    _lexHandler.startCDATA();\n\t}\n    }\n\n    /**\n     * Implements org.xml.sax.ext.LexicalHandler.endCDATA()\n     */\n    public void endCDATA() throws SAXException { \n\tif (_lexHandler != null) {\n\t    _lexHandler.endCDATA();\n\t}\n    }\n\n    /**\n     * Implements org.xml.sax.ext.LexicalHandler.comment()\n     * Receieve notification of a comment\n     */\n    public void comment(char[] ch, int start, int length) \n\tthrows SAXException \n    { \n\tif (_lexHandler != null) {\n\t    _lexHandler.comment(ch, start, length);\n\t}\n    }\n\n    /**\n     * Implements org.xml.sax.ContentHandler.ignorableWhitespace()\n     * Receive notification of ignorable whitespace in element\n     * content. Similar to characters(char[], int, int).\n     */\n    public void ignorableWhitespace(char[] ch, int start, int length)\n\tthrows SAXException \n    {\n\t_handler.ignorableWhitespace(ch, start, length);\n    }\n\n    /**\n     * Implements org.xml.sax.ContentHandler.setDocumentLocator()\n     * Receive an object for locating the origin of SAX document events. \n     */\n    public void setDocumentLocator(Locator locator) {\n\t_handler.setDocumentLocator(locator);\n    }\n\n    /**\n     * Implements org.xml.sax.ContentHandler.skippedEntity()\n     * Receive notification of a skipped entity.\n     */\n    public void skippedEntity(String name) throws SAXException {\n\t_handler.skippedEntity(name);\n    }\n\n    /**\n     * Implements org.xml.sax.ContentHandler.startPrefixMapping()\n     * Begin the scope of a prefix-URI Namespace mapping.\n     */\n    public void startPrefixMapping(String prefix, String uri) \n\tthrows SAXException {\n\t_handler.startPrefixMapping(prefix, uri);\n    }\n\n    /**\n     * Implements org.xml.sax.ContentHandler.endPrefixMapping()\n     * End the scope of a prefix-URI Namespace mapping.\n     */\n    public void endPrefixMapping(String prefix) throws SAXException {\n\t_handler.endPrefixMapping(prefix);\n    }\n\n    /**\n     * Implements org.xml.sax.ext.LexicalHandler.startDTD()\n     */\n    public void startDTD(String name, String publicId, String systemId) \n\tthrows SAXException\n    { \n\tif (_lexHandler != null) {\n\t    _lexHandler.startDTD(name, publicId, systemId);\n\t}\n    }\n\n    /**\n     * Implements org.xml.sax.ext.LexicalHandler.endDTD()\n     */\n    public void endDTD() throws SAXException {\n\tif (_lexHandler != null) {\n\t    _lexHandler.endDTD();\n\t}\n    }\n\n    /**\n     * Implements org.xml.sax.ext.LexicalHandler.startEntity()\n     */\n    public void startEntity(String name) throws SAXException { \n\tif (_lexHandler != null) {\n\t    _lexHandler.startEntity(name);\n\t}\n    }\n\n    /**\n     * Implements org.xml.sax.ext.LexicalHandler.endEntity()\n     */\n    public void endEntity(String name) throws SAXException { \n\tif (_lexHandler != null) {\n\t    _lexHandler.endEntity(name);\n\t}\n    }\n\n    /**\n     * Implements org.xml.sax.DTDHandler.unparsedEntityDecl()\n     */\n    public void unparsedEntityDecl(String name, String publicId, \n\tString systemId, String notationName) throws SAXException \n    {\n\t_dtd.unparsedEntityDecl(name, publicId, systemId, notationName);\n    }\n\n    /**\n     * Implements org.xml.sax.DTDHandler.notationDecl()\n     */\n    public void notationDecl(String name, String publicId, String systemId) \n\tthrows SAXException\n    {\n\t_dtd.notationDecl(name, publicId, systemId);\n    }\n\n    /**\n     * Implements org.xml.sax.ext.DeclHandler.attributeDecl()\n     */\n    public void attributeDecl(String eName, String aName, String type, \n\tString valueDefault, String value) throws SAXException \n    {\n\t_dtd.attributeDecl(eName, aName, type, valueDefault, value);\n    }\n\n    /**\n     * Implements org.xml.sax.ext.DeclHandler.elementDecl()\n     */\n    public void elementDecl(String name, String model) \n\tthrows SAXException\n    {\n\t_dtd.elementDecl(name, model);\n    }\n\n    /**\n     * Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()\n     */\n    public void externalEntityDecl(String name, String publicId, String systemId) \n\tthrows SAXException\n    {\n\t_dtd.externalEntityDecl(name, publicId, systemId);\n    }\n\n    /**\n     * Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()\n     */\n    public void internalEntityDecl(String name, String value) \n\tthrows SAXException\n    {\n\t_dtd.internalEntityDecl(name, value);", "functions": [{"function_name": "getSystemId", "code": "    public String getSystemId() {\n\treturn _systemId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSystemId", "code": "    public void setSystemId(String id) {\n\t_systemId = id;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTransformer", "code": "    public Transformer getTransformer() {\n\treturn _transformer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResult", "code": "    public void setResult(Result result) throws IllegalArgumentException {\n\t_result = result;\n\n\tif (_isIdentity) {\n\t    try {\n\t\tTransletOutputHandler outputHandler =\n\t\t    _transformer.getOutputHandler(result);\n\t\t_transformer.transferOutputProperties(outputHandler);\n\n\t\t_handler = new SAX2TO(outputHandler);\n\t\t_lexHandler = (LexicalHandler) _handler;\n\t    }\n\t    catch (TransformerException e) {\n\t\t_result = null;\n\t    }\n\t}\n\telse if (_done) {\n\t    try {\n\t\t_transformer.setDOM(_dom);\n\t\t_transformer.transform(null, _result);\n\t    }\n\t    catch (TransformerException e) {\n\t\tthrow new IllegalArgumentException(e.getMessage());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "ASSIGN", "TRY", "TRY", "CATCH", "VAR_DECL", "CATCH", "ASSIGN", "ASSIGN", "CALL", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [5, 7], [5, 8], [6, 9], [5, 10], [5, 11], [5, 12], [9, 13], [6, 14], [6, 15], [7, 16], [11, 17], [8, 18], [13, 19], [14, 20], [16, 21], [19, 22], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 5], [8, 5], [9, 6], [10, 5], [11, 5], [12, 5], [13, 9], [14, 6], [15, 6], [16, 7], [17, 11], [18, 8], [19, 13], [20, 14], [21, 16], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "characters", "code": "    public void characters(char[] ch, int start, int length) \n\tthrows SAXException \n    {\n\t_handler.characters(ch, start, length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startDocument", "code": "    public void startDocument() throws SAXException {\n\tif (_result == null) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_SET_RESULT_ERR);\n\t    throw new SAXException(err.toString());\n\t}\n\n\tif (!_isIdentity) {\n\t    _dom.setDocumentURI(_systemId);\n\t}\n\n\t_handler.startDocument();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [1, 8], [5, 9], [9, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 1], [9, 5], [10, 9], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "endDocument", "code": "    public void endDocument() throws SAXException {\n\t_handler.endDocument();\n\n\tif (!_isIdentity) {\n\t    if (_result != null) {\n\t\ttry {\n\t\t    _transformer.setDOM(_dom);\n\t\t    _transformer.transform(null, _result);\n\t\t}\n\t\tcatch (TransformerException e) {\n\t\t    throw new SAXException(e);\n\t\t}\n\t    }\n\t    _done = true;\n\n\t    _transformer.setDOM(_dom);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "IF", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [3, 8], [6, 9], [8, 10], [10, 11], [8, 12], [8, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 3], [9, 6], [10, 8], [11, 10], [12, 8], [13, 8], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "startElement", "code": "    public void startElement(String uri, String localName,\n\t\t\t     String qname, Attributes attributes)\n\tthrows SAXException \n    {\n\t_handler.startElement(uri, localName, qname, attributes);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endElement", "code": "    public void endElement(String namespaceURI, String localName, String qname)\n\tthrows SAXException \n    {\n\t_handler.endElement(namespaceURI, localName, qname);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processingInstruction", "code": "    public void processingInstruction(String target, String data)\n\tthrows SAXException \n    {\n\t_handler.processingInstruction(target, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startCDATA", "code": "    public void startCDATA() throws SAXException { \n\tif (_lexHandler != null) {\n\t    _lexHandler.startCDATA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "endCDATA", "code": "    public void endCDATA() throws SAXException { \n\tif (_lexHandler != null) {\n\t    _lexHandler.endCDATA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "comment", "code": "    public void comment(char[] ch, int start, int length) \n\tthrows SAXException \n    { \n\tif (_lexHandler != null) {\n\t    _lexHandler.comment(ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ignorableWhitespace", "code": "    public void ignorableWhitespace(char[] ch, int start, int length)\n\tthrows SAXException \n    {\n\t_handler.ignorableWhitespace(ch, start, length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDocumentLocator", "code": "    public void setDocumentLocator(Locator locator) {\n\t_handler.setDocumentLocator(locator);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "skippedEntity", "code": "    public void skippedEntity(String name) throws SAXException {\n\t_handler.skippedEntity(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startPrefixMapping", "code": "    public void startPrefixMapping(String prefix, String uri) \n\tthrows SAXException {\n\t_handler.startPrefixMapping(prefix, uri);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "endPrefixMapping", "code": "    public void endPrefixMapping(String prefix) throws SAXException {\n\t_handler.endPrefixMapping(prefix);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startDTD", "code": "    public void startDTD(String name, String publicId, String systemId) \n\tthrows SAXException\n    { \n\tif (_lexHandler != null) {\n\t    _lexHandler.startDTD(name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "endDTD", "code": "    public void endDTD() throws SAXException {\n\tif (_lexHandler != null) {\n\t    _lexHandler.endDTD();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startEntity", "code": "    public void startEntity(String name) throws SAXException { \n\tif (_lexHandler != null) {\n\t    _lexHandler.startEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endEntity", "code": "    public void endEntity(String name) throws SAXException { \n\tif (_lexHandler != null) {\n\t    _lexHandler.endEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "unparsedEntityDecl", "code": "    public void unparsedEntityDecl(String name, String publicId, \n\tString systemId, String notationName) throws SAXException \n    {\n\t_dtd.unparsedEntityDecl(name, publicId, systemId, notationName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "notationDecl", "code": "    public void notationDecl(String name, String publicId, String systemId) \n\tthrows SAXException\n    {\n\t_dtd.notationDecl(name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "attributeDecl", "code": "    public void attributeDecl(String eName, String aName, String type, \n\tString valueDefault, String value) throws SAXException \n    {\n\t_dtd.attributeDecl(eName, aName, type, valueDefault, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "elementDecl", "code": "    public void elementDecl(String name, String model) \n\tthrows SAXException\n    {\n\t_dtd.elementDecl(name, model);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "externalEntityDecl", "code": "    public void externalEntityDecl(String name, String publicId, String systemId) \n\tthrows SAXException\n    {\n\t_dtd.externalEntityDecl(name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "internalEntityDecl", "code": "    public void internalEntityDecl(String name, String value) \n\tthrows SAXException\n    {\n\t_dtd.internalEntityDecl(name, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "TransformerHandlerImpl", "code": "    protected TransformerHandlerImpl(TransformerImpl transformer) {\n\t_transformer = transformer;\n\n\tif (transformer.isIdentity()) {\n\t    _handler = new DefaultHandler();\n\t    _isIdentity = true;\n\t}\n\telse {\n\t    _translet = _transformer.getTranslet();\n\n\t    _dom = new DOMImpl();\n\t    _handler = _dom.getBuilder();\n\t    _lexHandler = (LexicalHandler) _handler;\n\n\t    _dtd = new DTDMonitor();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [5, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 5], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 0}
{"sample_id": "ivy-2.0-3489", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/report/MetadataArtifactDownloadReport.java", "language": "java", "name": "org.apache.ivy.core.report.MetadataArtifactDownloadReport", "code": "public class MetadataArtifactDownloadReport extends ArtifactDownloadReport {\n    private boolean isSearched;\n    \n    private File originalLocalFile;\n\n    public MetadataArtifactDownloadReport(Artifact artifact) {\n        super(artifact);\n    }\n\n    /**\n     * Returns <code>true</code> if the resolution of this metadata artifact required at least one\n     * access to the repository, or <code>false</code> if only provisioned data was used.\n     * \n     * @return <code>true</code> if the resolution of this metadata artifact required at least one\n     *         access to the repository\n     */\n    public boolean isSearched() {\n        return isSearched;\n    }\n\n    public void setSearched(boolean isSearched) {\n        this.isSearched = isSearched;\n    }\n\n    /**\n     * Returns the location on the local filesystem where the original metadata artifact is\n     * provisioned, or <code>null</code> if the provisioning failed.\n     * \n     * @return the location on the local filesystem where the original metadata artifact is\n     *         provisioned.\n     */\n    public File getOriginalLocalFile() {\n        return originalLocalFile;\n    }\n\n    public void setOriginalLocalFile(File originalLocalFile) {\n        this.originalLocalFile = originalLocalFile;", "functions": [{"function_name": "isSearched", "code": "    public boolean isSearched() {\n        return isSearched;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSearched", "code": "    public void setSearched(boolean isSearched) {\n        this.isSearched = isSearched;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOriginalLocalFile", "code": "    public File getOriginalLocalFile() {\n        return originalLocalFile;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOriginalLocalFile", "code": "    public void setOriginalLocalFile(File originalLocalFile) {\n        this.originalLocalFile = originalLocalFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MetadataArtifactDownloadReport", "code": "    public MetadataArtifactDownloadReport(Artifact artifact) {\n        super(artifact);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.1-4151", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/syntax/SyntaxStyle.java", "language": "java", "name": "org.gjt.sp.jedit.syntax.SyntaxStyle", "code": "public class SyntaxStyle\n{\n\t/**\n\t * Creates a new SyntaxStyle.\n\t * @param fgColor The text color\n\t * @param bgColor The background color\n\t * @param font The text font\n\t */\n\tpublic SyntaxStyle(Color fgColor, Color bgColor, Font font)\n\t{\n\t\tthis.fgColor = fgColor;\n\t\tthis.bgColor = bgColor;\n\t\tthis.font = font;\n\t}\n\n\t/**\n\t * Returns the text color.\n\t */\n\tpublic Color getForegroundColor()\n\t{\n\t\treturn fgColor;\n\t}\n\n\t/**\n\t * Returns the background color.\n\t */\n\tpublic Color getBackgroundColor()\n\t{\n\t\treturn bgColor;\n\t}\n\n\t/**\n\t * Returns the style font.\n\t */\n\tpublic Font getFont()\n\t{\n\t\treturn font;\n\t}\n\n\t// private members\n\tprivate Color fgColor;\n\tprivate Color bgColor;\n\tprivate Font font;", "functions": [{"function_name": "getForegroundColor", "code": "\tpublic Color getForegroundColor()\n\t{\n\t\treturn fgColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBackgroundColor", "code": "\tpublic Color getBackgroundColor()\n\t{\n\t\treturn bgColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFont", "code": "\tpublic Font getFont()\n\t{\n\t\treturn font;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SyntaxStyle", "code": "\tpublic SyntaxStyle(Color fgColor, Color bgColor, Font font)\n\t{\n\t\tthis.fgColor = fgColor;\n\t\tthis.bgColor = bgColor;\n\t\tthis.font = font;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "ant-1.7-968", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/clearcase/ClearCase.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.clearcase.ClearCase", "code": "public abstract class ClearCase extends Task {\n    private String mClearToolDir = \"\";\n    private String mviewPath = null;\n    private String mobjSelect = null;\n    private static int pcnt = 0;\n    private boolean mFailonerr = true;\n    /**\n     * Set the directory where the cleartool executable is located.\n     *\n     * @param dir the directory containing the cleartool executable\n     */\n    public final void setClearToolDir(String dir) {\n        mClearToolDir = FileUtils.translatePath(dir);\n    }\n\n    /**\n     * Builds and returns the command string to execute cleartool\n     *\n     * @return String containing path to the executable\n     */\n    protected final String getClearToolCommand() {\n        String toReturn = mClearToolDir;\n        if (!toReturn.equals(\"\") && !toReturn.endsWith(\"/\")) {\n            toReturn += \"/\";\n        }\n\n        toReturn += CLEARTOOL_EXE;\n\n        return toReturn;\n    }\n\n    /**\n     * Set the path to the item in a ClearCase view to operate on.\n     *\n     * @param viewPath Path to the view directory or file\n     */\n    public final void setViewPath(String viewPath) {\n        mviewPath = viewPath;\n    }\n\n    /**\n     * Get the path to the item in a clearcase view\n     *\n     * @return mviewPath\n     */\n    public String getViewPath() {\n        return mviewPath;\n    }\n\n    /**\n     * Get the basename path of the item in a clearcase view\n     *\n     * @return basename\n     */\n    public String getViewPathBasename() {\n        return (new File(mviewPath)).getName();\n    }\n\n    /**\n     * Set the object to operate on.\n     *\n     * @param objSelect object to operate on\n     */\n    public final void setObjSelect(String objSelect) {\n        mobjSelect = objSelect;\n    }\n\n    /**\n     * Get the object to operate on\n     *\n     * @return mobjSelect\n     */\n    public String getObjSelect() {\n        return mobjSelect;\n    }\n\n    /**\n     * Execute the given command are return success or failure\n     * @param cmd command line to execute\n     * @return the exit status of the subprocess or <code>INVALID</code>\n     */\n    protected int run(Commandline cmd) {\n        try {\n            Project aProj = getProject();\n            Execute exe\n                = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));\n            exe.setAntRun(aProj);\n            exe.setWorkingDirectory(aProj.getBaseDir());\n            exe.setCommandline(cmd.getCommandline());\n            return exe.execute();\n        } catch (java.io.IOException e) {\n            throw new BuildException(e, getLocation());\n        }\n    }\n\n    /**\n     * Execute the given command, and return it's output\n     * @param cmdline command line to execute\n     * @return output of the command line\n     */\n    protected String runS(Commandline cmdline) {\n        String   outV  = \"opts.cc.runS.output\" + pcnt++;\n        ExecTask exe   = new ExecTask(this);\n        Commandline.Argument arg = exe.createArg();\n\n        exe.setExecutable(cmdline.getExecutable());\n        arg.setLine(Commandline.toString(cmdline.getArguments()));\n        exe.setOutputproperty(outV);\n        exe.execute();\n\n        return getProject().getProperty(outV);\n    }\n    /**\n     * If true, command will throw an exception on failure.\n     *\n     * @param failonerr the status to set the flag to\n     * @since ant 1.6.1\n     */\n    public void setFailOnErr(boolean failonerr) {\n        mFailonerr = failonerr;\n    }\n\n    /**\n     * Get failonerr flag status\n     *\n     * @return boolean containing status of failonerr flag\n     * @since ant 1.6.1\n     */\n    public boolean getFailOnErr() {\n        return mFailonerr;\n    }\n\n    /**\n     * Constant for the thing to execute\n     */\n    private static final String CLEARTOOL_EXE = \"cleartool\";\n    /**\n     * The 'Update' command\n     */\n    public static final String COMMAND_UPDATE = \"update\";\n    /**\n     * The 'Checkout' command\n     */\n    public static final String COMMAND_CHECKOUT = \"checkout\";\n    /**\n     * The 'Checkin' command\n     */\n    public static final String COMMAND_CHECKIN = \"checkin\";\n    /**\n     * The 'UndoCheckout' command\n     */\n    public static final String COMMAND_UNCHECKOUT = \"uncheckout\";\n    /**\n     * The 'Lock' command\n     */\n    public static final String COMMAND_LOCK = \"lock\";\n    /**\n     * The 'Unlock' command\n     */\n    public static final String COMMAND_UNLOCK = \"unlock\";\n    /**\n     * The 'Mkbl' command\n     */\n    public static final String COMMAND_MKBL = \"mkbl\";\n    /**\n     * The 'Mklabel' command\n     */\n    public static final String COMMAND_MKLABEL = \"mklabel\";\n    /**\n     * The 'Mklbtype' command\n     */\n    public static final String COMMAND_MKLBTYPE = \"mklbtype\";\n    /**\n     * The 'Rmtype' command\n     */\n    public static final String COMMAND_RMTYPE = \"rmtype\";\n    /**\n     * The 'LsCheckout' command\n     */\n    public static final String COMMAND_LSCO = \"lsco\";\n    /**\n     * The 'Mkelem' command\n     */\n    public static final String COMMAND_MKELEM = \"mkelem\";\n    /**\n     * The 'Mkattr' command\n     */\n    public static final String COMMAND_MKATTR = \"mkattr\";\n    /**\n     * The 'Mkdir' command\n     */\n    public static final String COMMAND_MKDIR = \"mkdir\";", "functions": [{"function_name": "setClearToolDir", "code": "    public final void setClearToolDir(String dir) {\n        mClearToolDir = FileUtils.translatePath(dir);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getClearToolCommand", "code": "    protected final String getClearToolCommand() {\n        String toReturn = mClearToolDir;\n        if (!toReturn.equals(\"\") && !toReturn.endsWith(\"/\")) {\n            toReturn += \"/\";\n        }\n\n        toReturn += CLEARTOOL_EXE;\n\n        return toReturn;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [5, 7], [2, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 5], [8, 2], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setViewPath", "code": "    public final void setViewPath(String viewPath) {\n        mviewPath = viewPath;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getViewPath", "code": "    public String getViewPath() {\n        return mviewPath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getViewPathBasename", "code": "    public String getViewPathBasename() {\n        return (new File(mviewPath)).getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setObjSelect", "code": "    public final void setObjSelect(String objSelect) {\n        mobjSelect = objSelect;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getObjSelect", "code": "    public String getObjSelect() {\n        return mobjSelect;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "run", "code": "    protected int run(Commandline cmd) {\n        try {\n            Project aProj = getProject();\n            Execute exe\n                = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));\n            exe.setAntRun(aProj);\n            exe.setWorkingDirectory(aProj.getBaseDir());\n            exe.setCommandline(cmd.getCommandline());\n            return exe.execute();\n        } catch (java.io.IOException e) {\n            throw new BuildException(e, getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [1, 9], [1, 10], [1, 11], [7, 12], [9, 13], [10, 14], [5, 15], [6, 16], [12, 17], [15, 18], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 1], [10, 1], [11, 1], [12, 7], [13, 9], [14, 10], [15, 5], [16, 6], [17, 12], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "runS", "code": "    protected String runS(Commandline cmdline) {\n        String   outV  = \"opts.cc.runS.output\" + pcnt++;\n        ExecTask exe   = new ExecTask(this);\n        Commandline.Argument arg = exe.createArg();\n\n        exe.setExecutable(cmdline.getExecutable());\n        arg.setLine(Commandline.toString(cmdline.getArguments()));\n        exe.setOutputproperty(outV);\n        exe.execute();\n\n        return getProject().getProperty(outV);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [6, 11], [9, 12], [10, 13], [2, 14], [3, 15], [4, 16], [12, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 6], [12, 9], [13, 10], [14, 2], [15, 3], [16, 4], [17, 12], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setFailOnErr", "code": "    public void setFailOnErr(boolean failonerr) {\n        mFailonerr = failonerr;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFailOnErr", "code": "    public boolean getFailOnErr() {\n        return mFailonerr;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-817", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/ArchiveFileSet.java", "language": "java", "name": "org.apache.tools.ant.types.ArchiveFileSet", "code": "public abstract class ArchiveFileSet extends FileSet {\n\n    private static final int BASE_OCTAL = 8;\n\n    /**\n     * Default value for the dirmode attribute.\n     *\n     * @since Ant 1.5.2\n     */\n    public static final int DEFAULT_DIR_MODE =\n        UnixStat.DIR_FLAG | UnixStat.DEFAULT_DIR_PERM;\n\n    /**\n     * Default value for the filemode attribute.\n     *\n     * @since Ant 1.5.2\n     */\n    public static final int DEFAULT_FILE_MODE =\n        UnixStat.FILE_FLAG | UnixStat.DEFAULT_FILE_PERM;\n\n    private Resource src          = null;\n    private String prefix         = \"\";\n    private String fullpath       = \"\";\n    private boolean hasDir        = false;\n    private int fileMode          = DEFAULT_FILE_MODE;\n    private int dirMode           = DEFAULT_DIR_MODE;\n\n    private boolean fileModeHasBeenSet = false;\n    private boolean dirModeHasBeenSet  = false;\n\n    /** Constructor for ArchiveFileSet */\n    public ArchiveFileSet() {\n        super();\n    }\n\n    /**\n     * Constructor using a fileset arguement.\n     * @param fileset the fileset to use\n     */\n    protected ArchiveFileSet(FileSet fileset) {\n        super(fileset);\n    }\n\n    /**\n     * Constructor using a archive fileset arguement.\n     * @param fileset the archivefileset to use\n     */\n    protected ArchiveFileSet(ArchiveFileSet fileset) {\n        super(fileset);\n        src = fileset.src;\n        prefix = fileset.prefix;\n        fullpath = fileset.fullpath;\n        hasDir = fileset.hasDir;\n        fileMode = fileset.fileMode;\n        dirMode = fileset.dirMode;\n        fileModeHasBeenSet = fileset.fileModeHasBeenSet;\n        dirModeHasBeenSet = fileset.dirModeHasBeenSet;\n    }\n\n    /**\n     * Set the directory for the fileset.\n     * @param dir the directory for the fileset\n     * @throws BuildException on error\n     */\n    public void setDir(File dir) throws BuildException {\n        checkAttributesAllowed();\n        if (src != null) {\n            throw new BuildException(\"Cannot set both dir and src attributes\");\n        }\n        super.setDir(dir);\n        hasDir = true;\n    }\n\n    /**\n     * Set the source Archive file for the archivefileset.  Prevents both\n     * \"dir\" and \"src\" from being specified.\n     * @param a the archive as a single element Resource collection.\n     */\n    public void addConfigured(ResourceCollection a) {\n        checkChildrenAllowed();\n        if (a.size() != 1) {\n            throw new BuildException(\"only single argument resource collections\"\n                                     + \" are supported as archives\");\n        }\n        setSrcResource((Resource) a.iterator().next());\n    }\n\n    /**\n     * Set the source Archive file for the archivefileset.  Prevents both\n     * \"dir\" and \"src\" from being specified.\n     *\n     * @param srcFile The archive from which to extract entries.\n     */\n    public void setSrc(File srcFile) {\n        setSrcResource(new FileResource(srcFile));\n    }\n\n    /**\n     * Set the source Archive file for the archivefileset.  Prevents both\n     * \"dir\" and \"src\" from being specified.\n     *\n     * @param src The archive from which to extract entries.\n     */\n    public void setSrcResource(Resource src) {\n        checkArchiveAttributesAllowed();\n        if (hasDir) {\n            throw new BuildException(\"Cannot set both dir and src attributes\");\n        }\n        this.src = src;\n    }\n\n    /**\n     * Get the archive from which entries will be extracted.\n     * @param p the project to use\n     * @return the source file\n     */\n    public File getSrc(Project p) {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(p)).getSrc(p);\n        }\n        return getSrc();\n    }\n\n    /**\n     * Get the archive file from which entries will be extracted.\n     * @return the archive in case the archive is a file, null otherwise.\n     */\n    public File getSrc() {\n        if (src instanceof FileResource) {\n            return ((FileResource) src).getFile();\n        }\n        return null;\n    }\n\n    /**\n     * Prepend this prefix to the path for each archive entry.\n     * Prevents both prefix and fullpath from being specified\n     *\n     * @param prefix The prefix to prepend to entries in the archive file.\n     */\n    public void setPrefix(String prefix) {\n        checkArchiveAttributesAllowed();\n        if (!\"\".equals(prefix) && !\"\".equals(fullpath)) {\n            throw new BuildException(\"Cannot set both fullpath and prefix attributes\");\n        }\n        this.prefix = prefix;\n    }\n\n    /**\n     * Return the prefix prepended to entries in the archive file.\n     * @param p the project to use\n     * @return the prefix\n     */\n    public String getPrefix(Project p) {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(p)).getPrefix(p);\n        }\n        return prefix;\n    }\n\n    /**\n     * Set the full pathname of the single entry in this fileset.\n     * Prevents both prefix and fullpath from being specified\n     *\n     * @param fullpath the full pathname of the single entry in this fileset.\n     */\n    public void setFullpath(String fullpath) {\n        checkArchiveAttributesAllowed();\n        if (!\"\".equals(prefix) && !\"\".equals(fullpath)) {\n            throw new BuildException(\"Cannot set both fullpath and prefix attributes\");\n        }\n        this.fullpath = fullpath;\n    }\n\n    /**\n     * Return the full pathname of the single entry in this fileset.\n     * @param p the project to use\n     * @return the full path\n     */\n    public String getFullpath(Project p) {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(p)).getFullpath(p);\n        }\n        return fullpath;\n    }\n\n    /**\n     * Creates a scanner for this type of archive.\n     * @return the scanner.\n     */\n    protected abstract ArchiveScanner newArchiveScanner();\n\n    /**\n     * Return the DirectoryScanner associated with this FileSet.\n     * If the ArchiveFileSet defines a source Archive file, then an ArchiveScanner\n     * is returned instead.\n     * @param p the project to use\n     * @return a directory scanner\n     */\n    public DirectoryScanner getDirectoryScanner(Project p) {\n        if (isReference()) {\n            return getRef(p).getDirectoryScanner(p);\n        }\n        if (src == null) {\n            return super.getDirectoryScanner(p);\n        }\n        if (!src.isExists()) {\n            throw new BuildException(\n                \"the archive \" + src.getName() + \" doesn't exist\");\n        }\n        if (src.isDirectory()) {\n            throw new BuildException(\"the archive \" + src.getName()\n                                     + \" can't be a directory\");\n        }\n        ArchiveScanner as = newArchiveScanner();\n        as.setSrc(src);\n        super.setDir(p.getBaseDir());\n        setupDirectoryScanner(as, p);\n        as.init();\n        return as;\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return Iterator of Resources.\n     * @since Ant 1.7\n     */\n    public Iterator iterator() {\n        if (isReference()) {\n            return ((ResourceCollection) (getRef(getProject()))).iterator();\n        }\n        if (src == null) {\n            return super.iterator();\n        }\n        ArchiveScanner as = (ArchiveScanner) getDirectoryScanner(getProject());\n        return as.getResourceFiles();\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return size of the collection as int.\n     * @since Ant 1.7\n     */\n    public int size() {\n        if (isReference()) {\n            return ((ResourceCollection) (getRef(getProject()))).size();\n        }\n        if (src == null) {\n            return super.size();\n        }\n        ArchiveScanner as = (ArchiveScanner) getDirectoryScanner(getProject());\n        return as.getIncludedFilesCount();\n    }\n\n    /**\n     * Indicate whether this ResourceCollection is composed entirely of\n     * Resources accessible via local filesystem conventions.  If true,\n     * all Resources returned from this ResourceCollection should be\n     * instances of FileResource.\n     * @return whether this is a filesystem-only resource collection.\n     * @since Ant 1.7\n     */\n    public boolean isFilesystemOnly() {\n        return src == null;\n    }\n\n    /**\n     * A 3 digit octal string, specify the user, group and\n     * other modes in the standard Unix fashion;\n     * optional, default=0644\n     * @param octalString a <code>String</code> value\n     */\n    public void setFileMode(String octalString) {\n        checkArchiveAttributesAllowed();\n        integerSetFileMode(Integer.parseInt(octalString, BASE_OCTAL));\n    }\n\n    /**\n     * specify the user, group and\n     * other modes in the standard Unix fashion;\n     * optional, default=0644\n     *\n     * <p>We use the strange name so this method doesn't appear in\n     * IntrospectionHelpers list of attribute setters.</p>\n     * @param mode a <code>int</code> value\n     * @since Ant 1.7\n     */\n    public void integerSetFileMode(int mode) {\n        fileModeHasBeenSet = true;\n        this.fileMode = UnixStat.FILE_FLAG | mode;\n    }\n\n    /**\n     * Get the mode of the archive fileset\n     * @param p the project to use\n     * @return the mode\n     */\n    public int getFileMode(Project p) {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(p)).getFileMode(p);\n        }\n        return fileMode;\n    }\n\n    /**\n     * Whether the user has specified the mode explicitly.\n     * @return true if it has been set\n     */\n    public boolean hasFileModeBeenSet() {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(getProject())).hasFileModeBeenSet();\n        }\n        return fileModeHasBeenSet;\n    }\n\n    /**\n     * A 3 digit octal string, specify the user, group and\n     * other modes in the standard Unix fashion;\n     * optional, default=0755\n     * @param octalString a <code>String</code> value\n     */\n    public void setDirMode(String octalString) {\n        checkArchiveAttributesAllowed();\n        integerSetDirMode(Integer.parseInt(octalString, BASE_OCTAL));\n    }\n\n    /**\n     * specify the user, group and\n     * other modes in the standard Unix fashion;\n     * optional, default=0755\n     * <p>We use the strange name so this method doesn't appear in\n     * IntrospectionHelpers list of attribute setters.</p>\n     * @param mode a <code>int</code> value\n     * @since Ant 1.7\n     */\n    public void integerSetDirMode(int mode) {\n        dirModeHasBeenSet = true;\n        this.dirMode = UnixStat.DIR_FLAG | mode;\n    }\n\n    /**\n     * Get the dir mode of the archive fileset\n     * @param p the project to use\n     * @return the mode\n     */\n    public int getDirMode(Project p) {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(p)).getDirMode(p);\n        }\n        return dirMode;\n    }\n\n    /**\n     * Whether the user has specified the mode explicitly.\n     *\n     * @return true if it has been set\n     */\n    public boolean hasDirModeBeenSet() {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(getProject())).hasDirModeBeenSet();\n        }\n        return dirModeHasBeenSet;\n    }\n\n    /**\n     * A ArchiveFileset accepts another ArchiveFileSet or a FileSet as reference\n     * FileSets are often used by the war task for the lib attribute\n     * @param zfs the project to use\n     */\n    protected void configureFileSet(ArchiveFileSet zfs) {\n        zfs.setPrefix(prefix);\n        zfs.setFullpath(fullpath);\n        zfs.fileModeHasBeenSet = fileModeHasBeenSet;\n        zfs.fileMode = fileMode;\n        zfs.dirModeHasBeenSet = dirModeHasBeenSet;\n        zfs.dirMode = dirMode;\n    }\n\n    /**\n     * Return a ArchiveFileSet that has the same properties\n     * as this one.\n     * @return the cloned archiveFileSet\n     * @since Ant 1.6\n     */\n    public Object clone() {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(getProject())).clone();\n        }\n        return super.clone();\n    }\n\n    /**\n     * For file-based archivefilesets, return the same as for normal filesets;\n     * else just return the path of the zip.\n     * @return for file based archivefilesets, included files as a list\n     * of semicolon-separated filenames. else just the name of the zip.\n     */\n    public String toString() {\n        if (hasDir && getProject() != null) {\n            return super.toString();\n        }\n        return src == null ? null : src.getName();\n    }\n\n    /**\n     * Return the prefix prepended to entries in the archive file.\n     * @return the prefix.\n     * @deprecated since 1.7.\n     */\n    public String getPrefix() {\n        return prefix;\n    }\n\n    /**\n     * Return the full pathname of the single entryZ in this fileset.\n     * @return the full pathname.\n     * @deprecated since 1.7.\n     */\n    public String getFullpath() {\n        return fullpath;\n    }\n\n    /**\n     * @return the file mode.\n     * @deprecated since 1.7.\n     */\n    public int getFileMode() {\n        return fileMode;\n    }\n\n    /**\n     * @return the dir mode.\n     * @deprecated since 1.7.\n     */\n    public int getDirMode() {\n        return dirMode;\n    }\n\n    /**\n     * A check attributes for archiveFileSet.\n     * If there is a reference, and\n     * it is a ArchiveFileSet, the archive fileset attributes\n     * cannot be used.\n     * (Note, we can only see if the reference is an archive\n     * fileset if the project has been set).\n     */\n    private void checkArchiveAttributesAllowed() {\n        if (getProject() == null\n            || (isReference()\n                && (getRefid().getReferencedObject(\n                        getProject())\n                    instanceof ArchiveFileSet))) {\n            checkAttributesAllowed();", "functions": [{"function_name": "setDir", "code": "    public void setDir(File dir) throws BuildException {\n        checkAttributesAllowed();\n        if (src != null) {\n            throw new BuildException(\"Cannot set both dir and src attributes\");\n        }\n        super.setDir(dir);\n        hasDir = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [1, 7], [4, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 1], [8, 4], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addConfigured", "code": "    public void addConfigured(ResourceCollection a) {\n        checkChildrenAllowed();\n        if (a.size() != 1) {\n            throw new BuildException(\"only single argument resource collections\"\n                                     + \" are supported as archives\");\n        }\n        setSrcResource((Resource) a.iterator().next());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [4, 8], [3, 9], [6, 10], [9, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 4], [9, 3], [10, 6], [11, 9], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setSrc", "code": "    public void setSrc(File srcFile) {\n        setSrcResource(new FileResource(srcFile));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSrcResource", "code": "    public void setSrcResource(Resource src) {\n        checkArchiveAttributesAllowed();\n        if (hasDir) {\n            throw new BuildException(\"Cannot set both dir and src attributes\");\n        }\n        this.src = src;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSrc", "code": "    public File getSrc(Project p) {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(p)).getSrc(p);\n        }\n        return getSrc();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSrc", "code": "    public File getSrc() {\n        if (src instanceof FileResource) {\n            return ((FileResource) src).getFile();\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setPrefix", "code": "    public void setPrefix(String prefix) {\n        checkArchiveAttributesAllowed();\n        if (!\"\".equals(prefix) && !\"\".equals(fullpath)) {\n            throw new BuildException(\"Cannot set both fullpath and prefix attributes\");\n        }\n        this.prefix = prefix;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [4, 8], [6, 9], [7, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 4], [9, 6], [10, 7], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getPrefix", "code": "    public String getPrefix(Project p) {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(p)).getPrefix(p);\n        }\n        return prefix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setFullpath", "code": "    public void setFullpath(String fullpath) {\n        checkArchiveAttributesAllowed();\n        if (!\"\".equals(prefix) && !\"\".equals(fullpath)) {\n            throw new BuildException(\"Cannot set both fullpath and prefix attributes\");\n        }\n        this.fullpath = fullpath;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [4, 8], [6, 9], [7, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 4], [9, 6], [10, 7], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getFullpath", "code": "    public String getFullpath(Project p) {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(p)).getFullpath(p);\n        }\n        return fullpath;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "newArchiveScanner", "code": "    protected abstract ArchiveScanner newArchiveScanner();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDirectoryScanner", "code": "    public DirectoryScanner getDirectoryScanner(Project p) {\n        if (isReference()) {\n            return getRef(p).getDirectoryScanner(p);\n        }\n        if (src == null) {\n            return super.getDirectoryScanner(p);\n        }\n        if (!src.isExists()) {\n            throw new BuildException(\n                \"the archive \" + src.getName() + \" doesn't exist\");\n        }\n        if (src.isDirectory()) {\n            throw new BuildException(\"the archive \" + src.getName()\n                                     + \" can't be a directory\");\n        }\n        ArchiveScanner as = newArchiveScanner();\n        as.setSrc(src);\n        super.setDir(p.getBaseDir());\n        setupDirectoryScanner(as, p);\n        as.init();\n        return as;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "IF", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [4, 12], [5, 13], [6, 14], [0, 15], [2, 16], [3, 17], [4, 18], [5, 19], [13, 20], [6, 21], [17, 22], [18, 23], [21, 24], [22, 25], [23, 26], [24, 27], [25, 28], [25, 29], [26, 30], [26, 31], [29, 32], [29, 33], [31, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 4], [13, 5], [14, 6], [15, 0], [16, 2], [17, 3], [18, 4], [19, 5], [20, 13], [21, 6], [22, 17], [23, 18], [24, 21], [25, 22], [26, 23], [27, 24], [28, 25], [29, 25], [30, 26], [31, 26], [32, 29], [33, 29], [34, 31], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "iterator", "code": "    public Iterator iterator() {\n        if (isReference()) {\n            return ((ResourceCollection) (getRef(getProject()))).iterator();\n        }\n        if (src == null) {\n            return super.iterator();\n        }\n        ArchiveScanner as = (ArchiveScanner) getDirectoryScanner(getProject());\n        return as.getResourceFiles();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [3, 8], [6, 9], [4, 10], [2, 11], [11, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 3], [9, 6], [10, 4], [11, 2], [12, 11], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "size", "code": "    public int size() {\n        if (isReference()) {\n            return ((ResourceCollection) (getRef(getProject()))).size();\n        }\n        if (src == null) {\n            return super.size();\n        }\n        ArchiveScanner as = (ArchiveScanner) getDirectoryScanner(getProject());\n        return as.getIncludedFilesCount();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [3, 8], [6, 9], [4, 10], [2, 11], [11, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 3], [9, 6], [10, 4], [11, 2], [12, 11], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isFilesystemOnly", "code": "    public boolean isFilesystemOnly() {\n        return src == null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFileMode", "code": "    public void setFileMode(String octalString) {\n        checkArchiveAttributesAllowed();\n        integerSetFileMode(Integer.parseInt(octalString, BASE_OCTAL));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "integerSetFileMode", "code": "    public void integerSetFileMode(int mode) {\n        fileModeHasBeenSet = true;\n        this.fileMode = UnixStat.FILE_FLAG | mode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getFileMode", "code": "    public int getFileMode(Project p) {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(p)).getFileMode(p);\n        }\n        return fileMode;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "hasFileModeBeenSet", "code": "    public boolean hasFileModeBeenSet() {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(getProject())).hasFileModeBeenSet();\n        }\n        return fileModeHasBeenSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setDirMode", "code": "    public void setDirMode(String octalString) {\n        checkArchiveAttributesAllowed();\n        integerSetDirMode(Integer.parseInt(octalString, BASE_OCTAL));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "integerSetDirMode", "code": "    public void integerSetDirMode(int mode) {\n        dirModeHasBeenSet = true;\n        this.dirMode = UnixStat.DIR_FLAG | mode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDirMode", "code": "    public int getDirMode(Project p) {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(p)).getDirMode(p);\n        }\n        return dirMode;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "hasDirModeBeenSet", "code": "    public boolean hasDirModeBeenSet() {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(getProject())).hasDirModeBeenSet();\n        }\n        return dirModeHasBeenSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "configureFileSet", "code": "    protected void configureFileSet(ArchiveFileSet zfs) {\n        zfs.setPrefix(prefix);\n        zfs.setFullpath(fullpath);\n        zfs.fileModeHasBeenSet = fileModeHasBeenSet;\n        zfs.fileMode = fileMode;\n        zfs.dirModeHasBeenSet = dirModeHasBeenSet;\n        zfs.dirMode = dirMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "clone", "code": "    public Object clone() {\n        if (isReference()) {\n            return ((ArchiveFileSet) getRef(getProject())).clone();\n        }\n        return super.clone();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "toString", "code": "    public String toString() {\n        if (hasDir && getProject() != null) {\n            return super.toString();\n        }\n        return src == null ? null : src.getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [3, 7], [2, 8], [4, 9], [7, 10], [9, 11], [9, 12], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 3], [8, 2], [9, 4], [10, 7], [11, 9], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getPrefix", "code": "    public String getPrefix() {\n        return prefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFullpath", "code": "    public String getFullpath() {\n        return fullpath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFileMode", "code": "    public int getFileMode() {\n        return fileMode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDirMode", "code": "    public int getDirMode() {\n        return dirMode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "checkArchiveAttributesAllowed", "code": "    private void checkArchiveAttributesAllowed() {\n        if (getProject() == null\n            || (isReference()\n                && (getRefid().getReferencedObject(\n                        getProject())\n                    instanceof ArchiveFileSet))) {\n            checkAttributesAllowed();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 5], [3, 6], [3, 7], [4, 8], [4, 9], [6, 10], [10, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 2], [5, 1], [6, 3], [7, 3], [8, 4], [9, 4], [10, 6], [11, 10], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "ArchiveFileSet", "code": "    public ArchiveFileSet() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ArchiveFileSet", "code": "    protected ArchiveFileSet(FileSet fileset) {\n        super(fileset);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ArchiveFileSet", "code": "    protected ArchiveFileSet(ArchiveFileSet fileset) {\n        super(fileset);\n        src = fileset.src;\n        prefix = fileset.prefix;\n        fullpath = fileset.fullpath;\n        hasDir = fileset.hasDir;\n        fileMode = fileset.fileMode;\n        dirMode = fileset.dirMode;\n        fileModeHasBeenSet = fileset.fileModeHasBeenSet;\n        dirModeHasBeenSet = fileset.dirModeHasBeenSet;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 1}
{"sample_id": "camel-1.2-1733", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/cxf/CxfMessage.java", "language": "java", "name": "org.apache.camel.component.cxf.CxfMessage", "code": "public class CxfMessage extends DefaultMessage {\n    private Message cxfMessage;\n\n    public CxfMessage() {\n        this(new MessageImpl());\n    }\n\n    public CxfMessage(Message cxfMessage) {\n        if (cxfMessage == null) {\n            this.cxfMessage = new MessageImpl();\n        }\n        this.cxfMessage = cxfMessage;\n    }\n\n    @Override\n    public String toString() {\n        if (cxfMessage != null) {\n            return \"CxfMessage: \" + cxfMessage;\n        } else {\n            return \"CxfMessage: \" + getBody();\n        }\n    }\n\n    @Override\n    public CxfExchange getExchange() {\n        return (CxfExchange)super.getExchange();\n    }\n\n    /**\n     * Returns the underlying CXF message\n     * \n     * @return the CXF message\n     */\n    public Message getMessage() {\n        return cxfMessage;\n    }\n\n    public void setMessage(Message cxfMessage) {\n        this.cxfMessage = cxfMessage;\n    }\n\n    public Object getHeader(String name) {\n        return cxfMessage.get(name);\n    }\n\n    @Override\n    public void setHeader(String name, Object value) {\n        cxfMessage.put(name, value);\n    }\n\n    @Override\n    public Map<String, Object> getHeaders() {\n        return cxfMessage;\n    }\n\n    @Override\n    public CxfMessage newInstance() {\n        return new CxfMessage();\n    }\n\n    @Override\n    protected Object createBody() {\n        return getExchange().getBinding().extractBodyFromCxf(getExchange(), cxfMessage);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        if (cxfMessage != null) {\n            return \"CxfMessage: \" + cxfMessage;\n        } else {\n            return \"CxfMessage: \" + getBody();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getExchange", "code": "    @Override\n    public CxfExchange getExchange() {\n        return (CxfExchange)super.getExchange();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMessage", "code": "    public Message getMessage() {\n        return cxfMessage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessage", "code": "    public void setMessage(Message cxfMessage) {\n        this.cxfMessage = cxfMessage;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeader", "code": "    public Object getHeader(String name) {\n        return cxfMessage.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setHeader", "code": "    @Override\n    public void setHeader(String name, Object value) {\n        cxfMessage.put(name, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getHeaders", "code": "    @Override\n    public Map<String, Object> getHeaders() {\n        return cxfMessage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "newInstance", "code": "    @Override\n    public CxfMessage newInstance() {\n        return new CxfMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createBody", "code": "    @Override\n    protected Object createBody() {\n        return getExchange().getBinding().extractBodyFromCxf(getExchange(), cxfMessage);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "CxfMessage", "code": "    public CxfMessage() {\n        this(new MessageImpl());", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "CxfMessage", "code": "    public CxfMessage(Message cxfMessage) {\n        if (cxfMessage == null) {\n            this.cxfMessage = new MessageImpl();\n        }\n        this.cxfMessage = cxfMessage;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "camel-1.2-1938", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/validation/DefaultValidationErrorHandler.java", "language": "java", "name": "org.apache.camel.processor.validation.DefaultValidationErrorHandler", "code": "public class DefaultValidationErrorHandler implements ValidatorErrorHandler {\n    private static final transient Log log = LogFactory.getLog(DefaultValidationErrorHandler.class);\n    private List<SAXParseException> warnings = new ArrayList<SAXParseException>();\n    private List<SAXParseException> errors = new ArrayList<SAXParseException>();\n    private List<SAXParseException> fatalErrors = new ArrayList<SAXParseException>();\n\n    public void warning(SAXParseException e) throws SAXException {\n        if (log.isDebugEnabled()) {\n            log.debug(\"warning: \" + e, e);\n        }\n        warnings.add(e);\n    }\n\n    public void error(SAXParseException e) throws SAXException {\n        if (log.isDebugEnabled()) {\n            log.debug(\"error: \" + e, e);\n        }\n        errors.add(e);\n    }\n\n    public void fatalError(SAXParseException e) throws SAXException {\n        if (log.isDebugEnabled()) {\n            log.debug(\"fatalError: \" + e, e);\n        }\n        fatalErrors.add(e);\n    }\n\n    public void reset() {\n    }\n\n    public boolean isValid() {\n        return errors.isEmpty() && fatalErrors.isEmpty();\n    }\n\n    public void handleErrors(Exchange exchange, Schema schema, DOMResult result) throws ValidationException {\n        if (!isValid()) {\n            throw new SchemaValidationException(exchange, schema, fatalErrors, errors, warnings);\n        }\n    }\n\n    public void handleErrors(Exchange exchange, Object schema) throws ValidationException {\n        if (!isValid()) {\n            throw new SchemaValidationException(exchange, schema, fatalErrors, errors, warnings);", "functions": [{"function_name": "warning", "code": "    public void warning(SAXParseException e) throws SAXException {\n        if (log.isDebugEnabled()) {\n            log.debug(\"warning: \" + e, e);\n        }\n        warnings.add(e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "error", "code": "    public void error(SAXParseException e) throws SAXException {\n        if (log.isDebugEnabled()) {\n            log.debug(\"error: \" + e, e);\n        }\n        errors.add(e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "fatalError", "code": "    public void fatalError(SAXParseException e) throws SAXException {\n        if (log.isDebugEnabled()) {\n            log.debug(\"fatalError: \" + e, e);\n        }\n        fatalErrors.add(e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "reset", "code": "    public void reset() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isValid", "code": "    public boolean isValid() {\n        return errors.isEmpty() && fatalErrors.isEmpty();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "handleErrors", "code": "    public void handleErrors(Exchange exchange, Schema schema, DOMResult result) throws ValidationException {\n        if (!isValid()) {\n            throw new SchemaValidationException(exchange, schema, fatalErrors, errors, warnings);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "handleErrors", "code": "    public void handleErrors(Exchange exchange, Object schema) throws ValidationException {\n        if (!isValid()) {\n            throw new SchemaValidationException(exchange, schema, fatalErrors, errors, warnings);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-2.0-5391", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/poifs/storage/SmallBlockTableWriter.java", "language": "java", "name": "org.apache.poi.poifs.storage.SmallBlockTableWriter", "code": "public class SmallBlockTableWriter\n    implements BlockWritable, BATManaged\n{\n    private BlockAllocationTableWriter _sbat;\n    private List                       _small_blocks;\n    private int                        _big_block_count;\n    private RootProperty               _root;\n\n    /**\n     * Creates new SmallBlockTable\n     *\n     * @param documents a List of POIFSDocument instances\n     * @param root the Filesystem's root property\n     */\n\n    public SmallBlockTableWriter(final List documents,\n                                 final RootProperty root)\n    {\n        _sbat         = new BlockAllocationTableWriter();\n        _small_blocks = new ArrayList();\n        _root         = root;\n        Iterator iter = documents.iterator();\n\n        while (iter.hasNext())\n        {\n            POIFSDocument   doc    = ( POIFSDocument ) iter.next();\n            BlockWritable[] blocks = doc.getSmallBlocks();\n\n            if (blocks.length != 0)\n            {\n                doc.setStartBlock(_sbat.allocateSpace(blocks.length));\n                for (int j = 0; j < blocks.length; j++)\n                {\n                    _small_blocks.add(blocks[ j ]);\n                }\n            }\n        }\n        _sbat.simpleCreateBlocks();\n        _root.setSize(_small_blocks.size());\n        _big_block_count = SmallDocumentBlock.fill(_small_blocks);\n    }\n\n    /**\n     * Get the number of SBAT blocks\n     *\n     * @return number of SBAT big blocks\n     */\n    \n    public int getSBATBlockCount()\n    {\n\treturn (_big_block_count + 15) / 16;\n    }\n\n    /**\n     * Get the SBAT\n     *\n     * @return the Small Block Allocation Table\n     */\n\n    public BlockAllocationTableWriter getSBAT()\n    {\n        return _sbat;\n    }\n\n    /* ********** START implementation of BATManaged ********** */\n\n    /**\n     * Return the number of BigBlock's this instance uses\n     *\n     * @return count of BigBlock instances\n     */\n\n    public int countBlocks()\n    {\n        return _big_block_count;\n    }\n\n    /**\n     * Set the start block for this instance\n     *\n     * @param index index into the array of BigBlock instances making\n     *              up the the filesystem\n     *\n     * @param start_block\n     */\n\n    public void setStartBlock(int start_block)\n    {\n        _root.setStartBlock(start_block);\n    }\n\n    /* **********  END  implementation of BATManaged ********** */\n    /* ********** START implementation of BlockWritable ********** */\n\n    /**\n     * Write the storage to an OutputStream\n     *\n     * @param stream the OutputStream to which the stored data should\n     *               be written\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream\n     */\n\n    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        Iterator iter = _small_blocks.iterator();\n\n        while (iter.hasNext())\n        {\n            (( BlockWritable ) iter.next()).writeBlocks(stream);", "functions": [{"function_name": "getSBATBlockCount", "code": "    public int getSBATBlockCount()\n    {\n\treturn (_big_block_count + 15) / 16;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSBAT", "code": "    public BlockAllocationTableWriter getSBAT()\n    {\n        return _sbat;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "countBlocks", "code": "    public int countBlocks()\n    {\n        return _big_block_count;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStartBlock", "code": "    public void setStartBlock(int start_block)\n    {\n        _root.setStartBlock(start_block);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "writeBlocks", "code": "    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        Iterator iter = _small_blocks.iterator();\n\n        while (iter.hasNext())\n        {\n            (( BlockWritable ) iter.next()).writeBlocks(stream);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "SmallBlockTableWriter", "code": "    public SmallBlockTableWriter(final List documents,\n                                 final RootProperty root)\n    {\n        _sbat         = new BlockAllocationTableWriter();\n        _small_blocks = new ArrayList();\n        _root         = root;\n        Iterator iter = documents.iterator();\n\n        while (iter.hasNext())\n        {\n            POIFSDocument   doc    = ( POIFSDocument ) iter.next();\n            BlockWritable[] blocks = doc.getSmallBlocks();\n\n            if (blocks.length != 0)\n            {\n                doc.setStartBlock(_sbat.allocateSpace(blocks.length));\n                for (int j = 0; j < blocks.length; j++)\n                {\n                    _small_blocks.add(blocks[ j ]);\n                }\n            }\n        }\n        _sbat.simpleCreateBlocks();\n        _root.setSize(_small_blocks.size());\n        _big_block_count = SmallDocumentBlock.fill(_small_blocks);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [5, 12], [6, 13], [1, 14], [1, 15], [1, 16], [2, 17], [10, 18], [11, 19], [14, 20], [14, 21], [20, 22], [15, 23], [21, 24], [14, 25], [16, 26], [25, 27], [21, 28], [21, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 5], [13, 6], [14, 1], [15, 1], [16, 1], [17, 2], [18, 10], [19, 11], [20, 14], [21, 14], [22, 20], [23, 15], [24, 21], [25, 14], [26, 16], [27, 25], [28, 21], [29, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}], "label": 1}
{"sample_id": "poi-3.0-5981", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/eventusermodel/HSSFUserException.java", "language": "java", "name": "org.apache.poi.hssf.eventusermodel.HSSFUserException", "code": "public class HSSFUserException extends Exception\n{\n\n    private Throwable reason;\n\n\n\n    /**\n     * <p>Creates a new {@link HSSFUserException}.</p>\n     */\n    public HSSFUserException()\n    {\n        super();\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HSSFUserException} with a message\n     * string.</p>\n     */\n    public HSSFUserException(final String msg)\n    {\n        super(msg);\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HSSFUserException} with a reason.</p>\n     */\n    public HSSFUserException(final Throwable reason)\n    {\n        super();\n        this.reason = reason;\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HSSFUserException} with a message string\n     * and a reason.</p>\n     */\n    public HSSFUserException(final String msg, final Throwable reason)\n    {\n        super(msg);\n        this.reason = reason;\n    }\n\n\n\n    /**\n     * <p>Returns the {@link Throwable} that caused this exception to\n     * be thrown or <code>null</code> if there was no such {@link\n     * Throwable}.</p>\n     */\n    public Throwable getReason()\n    {\n        return reason;", "functions": [{"function_name": "getReason", "code": "    public Throwable getReason()\n    {\n        return reason;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HSSFUserException", "code": "    public HSSFUserException()\n    {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "HSSFUserException", "code": "    public HSSFUserException(final String msg)\n    {\n        super(msg);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HSSFUserException", "code": "    public HSSFUserException(final Throwable reason)\n    {\n        super();\n        this.reason = reason;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFUserException", "code": "    public HSSFUserException(final String msg, final Throwable reason)\n    {\n        super(msg);\n        this.reason = reason;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.6-3061", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/language/SimpleExpression.java", "language": "java", "name": "org.apache.camel.model.language.SimpleExpression", "code": "@XmlRootElement(name = \"simple\")\npublic class SimpleExpression extends ExpressionType {\n    public SimpleExpression() {\n    }\n\n    public SimpleExpression(String expression) {\n        super(expression);\n    }\n\n    public String getLanguage() {\n        return \"simple\";", "functions": [{"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return \"simple\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SimpleExpression", "code": "    public SimpleExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SimpleExpression", "code": "    public SimpleExpression(String expression) {\n        super(expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.4-223", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/LogOutputStream.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.LogOutputStream", "code": "public class LogOutputStream extends OutputStream {\n\n    private ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n    private boolean skip = false;\n\n    private Task task;\n    private int level = Project.MSG_INFO;\n\n    /**\n     * Creates a new instance of this class.\n     *\n     * @param task the task for whom to log\n     * @param level loglevel used to log data written to this stream.\n     */\n    public LogOutputStream(Task task, int level) {\n        this.task = task;\n        this.level = level;\n    }\n\n\n    /**\n     * Write the data to the buffer and flush the buffer, if a line\n     * separator is detected.\n     *\n     * @param cc data to log (byte).\n     */\n    public void write(int cc) throws IOException {\n        final byte c = (byte)cc;\n        if ((c == '\\n') || (c == '\\r')) {\n            if (!skip) processBuffer();\n        } else buffer.write(cc);\n        skip = (c == '\\r');\n    }\n\n\n    /**\n     * Converts the buffer to a string and sends it to <code>processLine</code>\n     */\n    protected void processBuffer() {\n        processLine(buffer.toString());\n        buffer.reset();\n    }\n\n    /**\n     * Logs a line to the log system of ant.\n     *\n     * @param line the line to log.\n     */\n    protected void processLine(String line) {\n        processLine(line, level);\n    }\n\n    /**\n     * Logs a line to the log system of ant.\n     *\n     * @param line the line to log.\n     */\n    protected void processLine(String line, int level) {\n        task.log(line, level);\n    }\n\n\n    /**\n     * Writes all remaining\n     */\n    public void close() throws IOException {\n        if (buffer.size() > 0) processBuffer();\n        super.close();\n    }\n\n    public int getMessageLevel() {\n        return level;", "functions": [{"function_name": "write", "code": "    public void write(int cc) throws IOException {\n        final byte c = (byte)cc;\n        if ((c == '\\n') || (c == '\\r')) {\n            if (!skip) processBuffer();\n        } else buffer.write(cc);\n        skip = (c == '\\r');", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [1, 8], [5, 9], [5, 10], [6, 11], [9, 12], [10, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 1], [9, 5], [10, 5], [11, 6], [12, 9], [13, 10], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "processBuffer", "code": "    protected void processBuffer() {\n        processLine(buffer.toString());\n        buffer.reset();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "processLine", "code": "    protected void processLine(String line) {\n        processLine(line, level);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "processLine", "code": "    protected void processLine(String line, int level) {\n        task.log(line, level);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "close", "code": "    public void close() throws IOException {\n        if (buffer.size() > 0) processBuffer();\n        super.close();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMessageLevel", "code": "    public int getMessageLevel() {\n        return level;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "LogOutputStream", "code": "    public LogOutputStream(Task task, int level) {\n        this.task = task;\n        this.level = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.5-7001", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/PrefixResolver.java", "language": "java", "name": "org.apache.xml.utils.PrefixResolver", "code": "public interface PrefixResolver\n{\n\n  /**\n   * Given a namespace, get the corrisponding prefix.  This assumes that\n   * the PrefixResolver holds its own namespace context, or is a namespace\n   * context itself.\n   *\n   * @param prefix The prefix to look up, which may be an empty string (\"\") for the default Namespace.\n   *\n   * @return The associated Namespace URI, or null if the prefix\n   *         is undeclared in this context.\n   */\n  String getNamespaceForPrefix(String prefix);\n\n  /**\n   * Given a namespace, get the corresponding prefix, based on the context node.\n   *\n   * @param prefix The prefix to look up, which may be an empty string (\"\") for the default Namespace.\n   * @param context The node context from which to look up the URI.\n   *\n   * @return The associated Namespace URI as a string, or null if the prefix\n   *         is undeclared in this context.\n   */\n  String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context);\n\n  /**\n   * Return the base identifier.\n   *\n   * @return The base identifier from where relative URIs should be absolutized, or null \n   * if the base ID is unknown.\n   * <p>\n   * CAVEAT: Note that the base URI in an XML document may vary with where\n   * you are in the document, if part of the doc's contents were brought in\n   * via an external entity reference or if mechanisms such as xml:base have\n   * been used. Unless this PrefixResolver is bound to a specific portion of\n   * the document, or has been kept up to date via some other mechanism, it\n   * may not accurately reflect that context information.\n   */\n  public String getBaseIdentifier();\n  \n  public boolean handlesNullPrefixes();", "functions": [{"function_name": "getNamespaceForPrefix", "code": "  String getNamespaceForPrefix(String prefix);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespaceForPrefix", "code": "  String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBaseIdentifier", "code": "  public String getBaseIdentifier();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "handlesNullPrefixes", "code": "  public boolean handlesNullPrefixes();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.4-2414", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/jms/requestor/MessageSelectorProvider.java", "language": "java", "name": "org.apache.camel.component.jms.requestor.MessageSelectorProvider", "code": "public class MessageSelectorProvider {\n    protected Map<String, String> correlationIds;\n    protected boolean dirty = true;\n    protected StringBuilder expression;\n\n    public MessageSelectorProvider() {\n        correlationIds = new HashMap<String, String>();\n    }\n\n    public synchronized void addCorrelationID(String id) {\n        correlationIds.put(id, id);\n        dirty = true;\n    }\n\n    public synchronized void removeCorrelationID(String id) {\n        correlationIds.remove(id);\n        dirty = true;\n    }\n\n    public synchronized String get() {\n        if (!dirty) {\n            return expression.toString();\n        }\n        expression = new StringBuilder(\"JMSCorrelationID='\");\n        boolean first = true;\n        for (Map.Entry<String, String> entry : correlationIds.entrySet()) {\n            if (!first) {\n                expression.append(\" OR JMSCorrelationID='\");\n            }\n            expression.append(entry.getValue()).append(\"'\");\n            if (first) {\n                first = false;\n            }\n        }\n        dirty = false;\n        return expression.toString();", "functions": [{"function_name": "addCorrelationID", "code": "    public synchronized void addCorrelationID(String id) {\n        correlationIds.put(id, id);\n        dirty = true;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeCorrelationID", "code": "    public synchronized void removeCorrelationID(String id) {\n        correlationIds.remove(id);\n        dirty = true;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "get", "code": "    public synchronized String get() {\n        if (!dirty) {\n            return expression.toString();\n        }\n        expression = new StringBuilder(\"JMSCorrelationID='\");\n        boolean first = true;\n        for (Map.Entry<String, String> entry : correlationIds.entrySet()) {\n            if (!first) {\n                expression.append(\" OR JMSCorrelationID='\");\n            }\n            expression.append(entry.getValue()).append(\"'\");\n            if (first) {\n                first = false;\n            }\n        }\n        dirty = false;\n        return expression.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [6, 8], [2, 9], [2, 10], [2, 11], [3, 12], [7, 13], [4, 14], [2, 15], [13, 16], [14, 17], [15, 18], [15, 19], [9, 20], [19, 21], [10, 22], [20, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 6], [9, 2], [10, 2], [11, 2], [12, 3], [13, 7], [14, 4], [15, 2], [16, 13], [17, 14], [18, 15], [19, 15], [20, 9], [21, 19], [22, 10], [23, 20], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "MessageSelectorProvider", "code": "    public MessageSelectorProvider() {\n        correlationIds = new HashMap<String, String>();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.2-1805", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/InterceptType.java", "language": "java", "name": "org.apache.camel.model.InterceptType", "code": "@XmlRootElement(name = \"intercept\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class InterceptType extends OutputType<ProcessorType> {\n\n    @Override\n    public String toString() {\n        return \"Intercept[\" + getOutputs() + \"]\";\n    }\n\n    public void addRoutes(RouteContext routeContext, Collection<Route> routes) throws Exception {\n        Interceptor interceptor = new Interceptor();\n        routeContext.intercept(interceptor);\n\n        final Processor interceptRoute = routeContext.createProcessor(this);\n        interceptor.setInterceptorLogic(interceptRoute);\n    }\n\n    /**\n     * Applies this interceptor only if the given predicate is true\n     */\n    public OtherwiseType when(Predicate predicate) {\n        return choice().when(PredicateBuilder.not(predicate)).proceed().otherwise();", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Intercept[\" + getOutputs() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addRoutes", "code": "    public void addRoutes(RouteContext routeContext, Collection<Route> routes) throws Exception {\n        Interceptor interceptor = new Interceptor();\n        routeContext.intercept(interceptor);\n\n        final Processor interceptRoute = routeContext.createProcessor(this);\n        interceptor.setInterceptorLogic(interceptRoute);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "when", "code": "    public OtherwiseType when(Predicate predicate) {\n        return choice().when(PredicateBuilder.not(predicate)).proceed().otherwise();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "camel-1.6-2733", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/http/HttpBinding.java", "language": "java", "name": "org.apache.camel.component.http.HttpBinding", "code": "public interface HttpBinding {\n\n    /**\n     * Startegy to read the given request and bindings it to the given message.\n     *\n     * @param request  the request\n     * @param message  the message to populate with data from request\n     */\n    void readRequest(HttpServletRequest request, HttpMessage message);\n\n    /**\n     * Parses the body from a {@link org.apache.camel.component.http.HttpMessage}\n     *\n     * @return the parsed body returned as either a {@link java.io.InputStream} or a {@link java.io.Reader}\n     * depending on the {@link #setUseReaderForPayload(boolean)} property.\n     * @throws java.io.IOException can be thrown\n     */\n    Object parseBody(HttpMessage httpMessage) throws IOException;\n\n    /**\n     * Writes the exchange to the servlet response.\n     * <p/>\n     * Default implementation will delegate to the following methods depending on the status of the exchange\n     * <ul>\n     *   <li>doWriteResponse - processing returns a OUT message </li>\n     *   <li>doWriteFaultResponse - processing returns a fault message</li>\n     *   <li>doWriteResponse - processing returns an exception and status code 500</li>\n     * </ul>\n     *\n     * @param exchange the exchange\n     * @param response the http response\n     * @throws java.io.IOException can be thrown from http response\n     */\n    void writeResponse(HttpExchange exchange, HttpServletResponse response) throws IOException;\n\n    /**\n     * Strategy method that writes the response to the http response stream when an exception occuerd\n     *\n     * @param exception  the exception occured\n     * @param response   the http response\n     * @throws java.io.IOException can be thrown from http response\n     */\n    void doWriteExceptionResponse(Throwable exception, HttpServletResponse response) throws IOException;\n\n    /**\n     * Strategy method that writes the response to the http response stream for a fault message\n     *\n     * @param message  the fault message\n     * @param response   the http response\n     * @throws java.io.IOException can be thrown from http response\n     */\n    void doWriteFaultResponse(Message message, HttpServletResponse response) throws IOException;\n\n    /**\n     * Strategy method that writes the response to the http response stream for an OUT message\n     *\n     * @param message  the OUT message\n     * @param response   the http response\n     * @throws java.io.IOException can be thrown from http response\n     */\n    void doWriteResponse(Message message, HttpServletResponse response) throws IOException;\n\n    boolean isUseReaderForPayload();\n\n    /**\n     * Should the {@link javax.servlet.http.HttpServletRequest#getReader()} be exposed as the payload of input messages in the Camel\n     * {@link org.apache.camel.Message#getBody()} or not. If false then the {@link javax.servlet.http.HttpServletRequest#getInputStream()} will be exposed.\n     */\n    void setUseReaderForPayload(boolean useReaderForPayload);\n\n    HeaderFilterStrategy getHeaderFilterStrategy();\n\n    /**\n     * Sets the header filter stratety to use.\n     * <p/>\n     * Will default use {@link org.apache.camel.component.http.HttpHeaderFilterStrategy}\n     */\n    void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy);", "functions": [{"function_name": "readRequest", "code": "    void readRequest(HttpServletRequest request, HttpMessage message);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseBody", "code": "    Object parseBody(HttpMessage httpMessage) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "writeResponse", "code": "    void writeResponse(HttpExchange exchange, HttpServletResponse response) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doWriteExceptionResponse", "code": "    void doWriteExceptionResponse(Throwable exception, HttpServletResponse response) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doWriteFaultResponse", "code": "    void doWriteFaultResponse(Message message, HttpServletResponse response) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doWriteResponse", "code": "    void doWriteResponse(Message message, HttpServletResponse response) throws IOException;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isUseReaderForPayload", "code": "    boolean isUseReaderForPayload();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setUseReaderForPayload", "code": "    void setUseReaderForPayload(boolean useReaderForPayload);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHeaderFilterStrategy", "code": "    HeaderFilterStrategy getHeaderFilterStrategy();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setHeaderFilterStrategy", "code": "    void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.2-1876", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/impl/ProcessorEndpoint.java", "language": "java", "name": "org.apache.camel.impl.ProcessorEndpoint", "code": "public class ProcessorEndpoint extends DefaultPollingEndpoint<Exchange> {\n    private final Processor processor;\n\n    public ProcessorEndpoint(String endpointUri, CamelContext context, Processor processor) {\n        super(endpointUri, context);\n        this.processor = processor;\n    }\n\n    public ProcessorEndpoint(String endpointUri, Component component, Processor processor) {\n        super(endpointUri, component);\n        this.processor = processor;\n    }\n\n\n    public Producer<Exchange> createProducer() throws Exception {\n        return new DefaultProducer<Exchange>(this) {\n            public void process(Exchange exchange) throws Exception {\n                onExchange(exchange);\n            }\n        };\n    }\n\n    @Override\n    public PollingConsumer<Exchange> createPollingConsumer() throws Exception {\n        return new ProcessorPollingConsumer(this, getProcessor());\n    }\n\n    public Processor getProcessor() {\n        if (processor == null) {\n            return new Processor() {\n                public void process(Exchange exchange) throws Exception {\n                    onExchange(exchange);\n                }\n            };\n        }\n        return processor;\n    }\n\n    protected void onExchange(Exchange exchange) throws Exception {\n        processor.process(exchange);\n    }\n\n    public boolean isSingleton() {\n        return true;", "functions": [{"function_name": "createProducer", "code": "    public Producer<Exchange> createProducer() throws Exception {\n        return new DefaultProducer<Exchange>(this) {\n            public void process(Exchange exchange) throws Exception {\n                onExchange(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createPollingConsumer", "code": "    @Override\n    public PollingConsumer<Exchange> createPollingConsumer() throws Exception {\n        return new ProcessorPollingConsumer(this, getProcessor());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getProcessor", "code": "    public Processor getProcessor() {\n        if (processor == null) {\n            return new Processor() {\n                public void process(Exchange exchange) throws Exception {\n                    onExchange(exchange);\n                }\n            };\n        }\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "onExchange", "code": "    protected void onExchange(Exchange exchange) throws Exception {\n        processor.process(exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ProcessorEndpoint", "code": "    public ProcessorEndpoint(String endpointUri, CamelContext context, Processor processor) {\n        super(endpointUri, context);\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ProcessorEndpoint", "code": "    public ProcessorEndpoint(String endpointUri, Component component, Processor processor) {\n        super(endpointUri, component);\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "log4j-1.2-5064", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/CategoryKey.java", "language": "java", "name": "org.apache.log4j.CategoryKey", "code": "class CategoryKey {\n\n  String   name;  \n  int hashCache;\n\n  CategoryKey(String name) {\n    this.name = name;\n    hashCache = name.hashCode();\n  }\n\n  final\n  public  \n  int hashCode() {\n    return hashCache;\n  }\n\n  final\n  public\n  boolean equals(Object rArg) {\n    if(this == rArg)\n      return true;\n    \n    if(rArg != null && CategoryKey.class == rArg.getClass()) \n      return  name.equals(((CategoryKey)rArg ).name);\n    else \n      return false;", "functions": [{"function_name": "hashCode", "code": "  int hashCode() {\n    return hashCache;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "equals", "code": "  boolean equals(Object rArg) {\n    if(this == rArg)\n      return true;\n    \n    if(rArg != null && CategoryKey.class == rArg.getClass()) \n      return  name.equals(((CategoryKey)rArg ).name);\n    else \n      return false;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [4, 9], [5, 10], [6, 11], [6, 12], [7, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 4], [10, 5], [11, 6], [12, 6], [13, 7], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "CategoryKey", "code": "  CategoryKey(String name) {\n    this.name = name;\n    hashCache = name.hashCode();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.6-2795", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/Exchange.java", "language": "java", "name": "org.apache.camel.Exchange", "code": "public interface Exchange {\n\n    String CHARSET_NAME = \"org.apache.camel.Exchange.CharsetName\";\n\n    String AGGREGATED_COUNT = \"org.apache.camel.Exchange.AggregatedCount\";\n\n    String EXCEPTION_HANDLED_PROPERTY = \"CamelExceptionHandled\";\n\n    /**\n     * Returns the {@link ExchangePattern} (MEP) of this exchange.\n     *\n     * @return the message exchange pattern of this exchange\n     */\n    ExchangePattern getPattern();\n\n    /**\n     * Allows the {@link ExchangePattern} (MEP) of this exchange to be customized.\n     *\n     * This typically won't be required as an exchange can be created with a specific MEP\n     * by calling {@link Endpoint#createExchange(ExchangePattern)} but it is here just in case\n     * it is needed.\n     *\n     * @param pattern  the pattern \n     */\n    void setPattern(ExchangePattern pattern);\n\n    /**\n     * Returns a property associated with this exchange by name\n     *\n     * @param name the name of the property\n     * @return the value of the given header or null if there is no property for\n     *         the given name\n     */\n    Object getProperty(String name);\n\n    /**\n     * Returns a property associated with this exchange by name and specifying\n     * the type required\n     *\n     * @param name the name of the property\n     * @param type the type of the property\n     * @return the value of the given header or null if there is no property for\n     *         the given name or null if it cannot be converted to the given\n     *         type\n     */\n    <T> T getProperty(String name, Class<T> type);\n\n    /**\n     * Sets a property on the exchange\n     *\n     * @param name  of the property\n     * @param value to associate with the name\n     */\n    void setProperty(String name, Object value);\n\n    /**\n     * Removes the given property on the exchange\n     *\n     * @param name of the property\n     * @return the old value of the property\n     */\n    Object removeProperty(String name);\n\n    /**\n     * Returns all of the properties associated with the exchange\n     *\n     * @return all the headers in a Map\n     */\n    Map<String, Object> getProperties();\n\n    /**\n     * Returns the inbound request message\n     *\n     * @return the message\n     */\n    Message getIn();\n\n    /**\n     * Sets the inbound message instance\n     *\n     * @param in the inbound message\n     */\n    void setIn(Message in);\n\n    /**\n     * Returns the outbound message, lazily creating one if one has not already\n     * been associated with this exchange. If you want to inspect this property\n     * but not force lazy creation then invoke the {@link #getOut(boolean)}\n     * method passing in <tt>false</tt>\n     *\n     * @return the response\n     */\n    Message getOut();\n\n    /**\n     * Returns the outbound message; optionally lazily creating one if one has\n     * not been associated with this exchange\n     *\n     * @param lazyCreate <tt>true</tt> will lazy create the out message\n     * @return the response\n     */\n    Message getOut(boolean lazyCreate);\n\n    /**\n     * Sets the outbound message\n     *\n     * @param out the outbound message\n     */\n    void setOut(Message out);\n\n    /**\n     * Returns the fault message\n     *\n     * @return the fault\n     */\n    Message getFault();\n\n    /**\n     * Returns the fault message; optionally lazily creating one if one has\n     * not been associated with this exchange\n     *\n     * @param lazyCreate <tt>true</tt> will lazy create the fault message\n     * @return the fault\n     */\n    Message getFault(boolean lazyCreate);\n\n    /**\n     * Returns the exception associated with this exchange\n     *\n     * @return the exception (or null if no faults)\n     */\n    Throwable getException();\n\n    /**\n     * Sets the exception associated with this exchange\n     *\n     * @param e  the caused exception\n     */\n    void setException(Throwable e);\n\n    /**\n     * Returns true if this exchange failed due to either an exception or fault\n     *\n     * @return true if this exchange failed due to either an exception or fault\n     * @see Exchange#getException()\n     * @see Exchange#getFault()\n     */\n    boolean isFailed();\n\n    /**\n     * Returns true if this exchange is transacted\n     */\n    boolean isTransacted();\n\n    /**\n     * Returns the container so that a processor can resolve endpoints from URIs\n     *\n     * @return the container which owns this exchange\n     */\n    CamelContext getContext();\n\n    /**\n     * Creates a new exchange instance with empty messages, headers and properties\n     */\n    Exchange newInstance();\n\n    /**\n     * Creates a copy of the current message exchange so that it can be\n     * forwarded to another destination\n     */\n    Exchange copy();\n\n    /**\n     * Copies the data into this exchange from the given exchange\n     *\n     * @param source is the source from which headers and messages will be copied\n     */\n    void copyFrom(Exchange source);\n\n    /**\n     * Returns the unit of work that this exchange belongs to; which may map to\n     * zero, one or more physical transactions\n     */\n    UnitOfWork getUnitOfWork();\n\n    /**\n     * Sets the unit of work that this exchange belongs to; which may map to\n     * zero, one or more physical transactions\n     */\n    void setUnitOfWork(UnitOfWork unitOfWork);\n\n    /**\n     * Returns the exchange id (unique)\n     */\n    String getExchangeId();\n\n    /**\n     * Set the exchange id\n     */\n    void setExchangeId(String id);", "functions": [{"function_name": "getPattern", "code": "    ExchangePattern getPattern();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setPattern", "code": "    void setPattern(ExchangePattern pattern);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProperty", "code": "    Object getProperty(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProperty", "code": "    <T> T getProperty(String name, Class<T> type);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperty", "code": "    void setProperty(String name, Object value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeProperty", "code": "    Object removeProperty(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProperties", "code": "    Map<String, Object> getProperties();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIn", "code": "    Message getIn();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setIn", "code": "    void setIn(Message in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOut", "code": "    Message getOut();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getOut", "code": "    Message getOut(boolean lazyCreate);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOut", "code": "    void setOut(Message out);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFault", "code": "    Message getFault();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getFault", "code": "    Message getFault(boolean lazyCreate);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getException", "code": "    Throwable getException();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setException", "code": "    void setException(Throwable e);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isFailed", "code": "    boolean isFailed();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isTransacted", "code": "    boolean isTransacted();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getContext", "code": "    CamelContext getContext();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "newInstance", "code": "    Exchange newInstance();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "copy", "code": "    Exchange copy();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "copyFrom", "code": "    void copyFrom(Exchange source);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getUnitOfWork", "code": "    UnitOfWork getUnitOfWork();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setUnitOfWork", "code": "    void setUnitOfWork(UnitOfWork unitOfWork);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExchangeId", "code": "    String getExchangeId();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setExchangeId", "code": "    void setExchangeId(String id);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "jedit-4.1-4086", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/MacrosMenu.java", "language": "java", "name": "org.gjt.sp.jedit.gui.MacrosMenu", "code": "public class MacrosMenu extends EnhancedMenu implements EBComponent\n{\n\tpublic MacrosMenu()\n\t{\n\t\tsuper(\"macros\");\n\t\tupdateMacrosMenu();\n\t}\n\n\tpublic void addNotify()\n\t{\n\t\tsuper.addNotify();\n\t\tEditBus.addToBus(this);\n\t}\n\n\tpublic void removeNotify()\n\t{\n\t\tsuper.removeNotify();\n\t\tEditBus.removeFromBus(this);\n\t}\n\n\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof MacrosChanged)\n\t\t\tupdateMacrosMenu();\n\t}\n\n\tpublic void init()\n\t{\n\t\tsuper.init();\n\t\tupdateMacrosMenu();\n\t}\n\n\tprivate void updateMacrosMenu()\n\t{\n\t\tif(!initialized)\n\t\t\treturn;\n\n\t\t// Because the macros menu contains normal items as\n\t\t// well as dynamically-generated stuff, we are careful\n\t\t// to only remove the dynamic crap here...\n\t\tfor(int i = getMenuComponentCount() - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(getMenuComponent(i) instanceof JSeparator)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tremove(i);\n\t\t}\n\n\t\tint count = getMenuComponentCount();\n\n\t\tVector macroVector = Macros.getMacroHierarchy();\n\t\tcreateMacrosMenu(this,macroVector,0);\n\n\t\tif(count == getMenuComponentCount())\n\t\t\tadd(GUIUtilities.loadMenuItem(\"no-macros\"));\n\t}\n\n\tprivate void createMacrosMenu(JMenu menu, Vector vector, int start)\n\t{\n\t\tVector menuItems = new Vector();\n\n\t\tfor(int i = start; i < vector.size(); i++)\n\t\t{\n\t\t\tObject obj = vector.elementAt(i);\n\t\t\tif(obj instanceof Macros.Macro)\n\t\t\t{\n\t\t\t\tMacros.Macro macro = (Macros.Macro)obj;\n\t\t\t\tmenuItems.add(new EnhancedMenuItem(macro.getLabel(),macro));\n\t\t\t}\n\t\t\telse if(obj instanceof Vector)\n\t\t\t{\n\t\t\t\tVector subvector = (Vector)obj;\n\t\t\t\tString name = (String)subvector.elementAt(0);\n\t\t\t\tJMenu submenu = new JMenu(name);\n\t\t\t\tcreateMacrosMenu(submenu,subvector,1);\n\t\t\t\tif(submenu.getMenuComponentCount() != 0)\n\t\t\t\t\tmenuItems.add(submenu);\n\t\t\t}\n\t\t}\n\n\t\tCollections.sort(menuItems,new MiscUtilities.MenuItemCompare());\n\t\tfor(int i = 0; i < menuItems.size(); i++)\n\t\t{\n\t\t\tmenu.add((JMenuItem)menuItems.get(i));", "functions": [{"function_name": "addNotify", "code": "\tpublic void addNotify()\n\t{\n\t\tsuper.addNotify();\n\t\tEditBus.addToBus(this);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "removeNotify", "code": "\tpublic void removeNotify()\n\t{\n\t\tsuper.removeNotify();\n\t\tEditBus.removeFromBus(this);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "handleMessage", "code": "\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof MacrosChanged)\n\t\t\tupdateMacrosMenu();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "init", "code": "\tpublic void init()\n\t{\n\t\tsuper.init();\n\t\tupdateMacrosMenu();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "updateMacrosMenu", "code": "\tprivate void updateMacrosMenu()\n\t{\n\t\tif(!initialized)\n\t\t\treturn;\n\n\t\t// Because the macros menu contains normal items as\n\t\t// well as dynamically-generated stuff, we are careful\n\t\t// to only remove the dynamic crap here...\n\t\tfor(int i = getMenuComponentCount() - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(getMenuComponent(i) instanceof JSeparator)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tremove(i);\n\t\t}\n\n\t\tint count = getMenuComponentCount();\n\n\t\tVector macroVector = Macros.getMacroHierarchy();\n\t\tcreateMacrosMenu(this,macroVector,0);\n\n\t\tif(count == getMenuComponentCount())\n\t\t\tadd(GUIUtilities.loadMenuItem(\"no-macros\"));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [4, 8], [5, 9], [1, 10], [6, 11], [7, 12], [2, 13], [3, 14], [4, 15], [8, 16], [10, 17], [15, 18], [15, 19], [4, 20], [17, 21], [15, 22], [19, 23], [20, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 4], [9, 5], [10, 1], [11, 6], [12, 7], [13, 2], [14, 3], [15, 4], [16, 8], [17, 10], [18, 15], [19, 15], [20, 4], [21, 17], [22, 15], [23, 19], [24, 20], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "createMacrosMenu", "code": "\tprivate void createMacrosMenu(JMenu menu, Vector vector, int start)\n\t{\n\t\tVector menuItems = new Vector();\n\n\t\tfor(int i = start; i < vector.size(); i++)\n\t\t{\n\t\t\tObject obj = vector.elementAt(i);\n\t\t\tif(obj instanceof Macros.Macro)\n\t\t\t{\n\t\t\t\tMacros.Macro macro = (Macros.Macro)obj;\n\t\t\t\tmenuItems.add(new EnhancedMenuItem(macro.getLabel(),macro));\n\t\t\t}\n\t\t\telse if(obj instanceof Vector)\n\t\t\t{\n\t\t\t\tVector subvector = (Vector)obj;\n\t\t\t\tString name = (String)subvector.elementAt(0);\n\t\t\t\tJMenu submenu = new JMenu(name);\n\t\t\t\tcreateMacrosMenu(submenu,subvector,1);\n\t\t\t\tif(submenu.getMenuComponentCount() != 0)\n\t\t\t\t\tmenuItems.add(submenu);\n\t\t\t}\n\t\t}\n\n\t\tCollections.sort(menuItems,new MiscUtilities.MenuItemCompare());\n\t\tfor(int i = 0; i < menuItems.size(); i++)\n\t\t{\n\t\t\tmenu.add((JMenuItem)menuItems.get(i));", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [7, 10], [8, 11], [2, 12], [2, 13], [9, 14], [3, 15], [1, 16], [1, 17], [12, 18], [12, 19], [18, 20], [12, 21], [13, 22], [16, 23], [18, 24], [18, 25], [18, 26], [18, 27], [12, 28], [24, 29], [18, 30], [28, 31], [24, 32], [29, 33], [29, 34], [30, 35], [25, 36], [31, 37], [26, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 7], [11, 8], [12, 2], [13, 2], [14, 9], [15, 3], [16, 1], [17, 1], [18, 12], [19, 12], [20, 18], [21, 12], [22, 13], [23, 16], [24, 18], [25, 18], [26, 18], [27, 18], [28, 12], [29, 24], [30, 18], [31, 28], [32, 24], [33, 29], [34, 29], [35, 30], [36, 25], [37, 31], [38, 26], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "MacrosMenu", "code": "\tpublic MacrosMenu()\n\t{\n\t\tsuper(\"macros\");\n\t\tupdateMacrosMenu();", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-3.2-3608", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "gnu/regexp/RETokenEnd.java", "language": "java", "name": "gnu.regexp.RETokenEnd", "code": "final class RETokenEnd extends REToken {\n    /**\n     * Indicates whether this token should match on a line break.\n     */\n  private String newline;\n\n  RETokenEnd(int subIndex,String newline) { \n    super(subIndex);\n    this.newline = newline;\n  }\n\n    boolean match(CharIndexed input, REMatch mymatch) {\n\tchar ch = input.charAt(mymatch.index);\n\tif (ch == CharIndexed.OUT_OF_BOUNDS)\n\t    return ((mymatch.eflags & RE.REG_NOTEOL)>0) ? \n\t\tfalse : next(input, mymatch);\n\tif (newline != null) {\n\t    char z;\n\t    int i = 0; // position in newline\n\t    do {\n\t\tz = newline.charAt(i);\n\t\tif (ch != z) return false;\n\t\t++i;\n\t\tch = input.charAt(mymatch.index + i);\n\t    } while (i < newline.length());\n\t    \n\t    return next(input, mymatch);\n\t}\n\treturn false;\n    }\n\n  void dump(StringBuffer os) {\n    os.append('$');", "functions": [{"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\tchar ch = input.charAt(mymatch.index);\n\tif (ch == CharIndexed.OUT_OF_BOUNDS)\n\t    return ((mymatch.eflags & RE.REG_NOTEOL)>0) ? \n\t\tfalse : next(input, mymatch);\n\tif (newline != null) {\n\t    char z;\n\t    int i = 0; // position in newline\n\t    do {\n\t\tz = newline.charAt(i);\n\t\tif (ch != z) return false;\n\t\t++i;\n\t\tch = input.charAt(mymatch.index + i);\n\t    } while (i < newline.length());\n\t    \n\t    return next(input, mymatch);\n\t}\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [3, 10], [2, 11], [2, 12], [2, 13], [2, 14], [8, 15], [9, 16], [4, 17], [11, 18], [12, 19], [16, 20], [16, 21], [16, 22], [12, 23], [19, 24], [13, 25], [22, 26], [22, 27], [12, 28], [23, 29], [23, 30], [12, 31], [28, 32], [29, 33], [31, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 3], [11, 2], [12, 2], [13, 2], [14, 2], [15, 8], [16, 9], [17, 4], [18, 11], [19, 12], [20, 16], [21, 16], [22, 16], [23, 12], [24, 19], [25, 13], [26, 22], [27, 22], [28, 12], [29, 23], [30, 23], [31, 12], [32, 28], [33, 29], [34, 31], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "dump", "code": "  void dump(StringBuffer os) {\n    os.append('$');", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RETokenEnd", "code": "  RETokenEnd(int subIndex,String newline) { \n    super(subIndex);\n    this.newline = newline;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.4-6788", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/processor/ProcessorCharacters.java", "language": "java", "name": "org.apache.xalan.processor.ProcessorCharacters", "code": "public class ProcessorCharacters extends XSLTElementProcessor\n{\n\n  /**\n   * Receive notification of the start of the non-text event.  This\n   * is sent to the current processor when any non-text event occurs.\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   */\n  public void startNonText(StylesheetHandler handler) throws org.xml.sax.SAXException\n  {\n    if (this == handler.getCurrentProcessor())\n    {\n      handler.popProcessor();\n    }\n\n    int nChars = m_accumulator.length();\n\n    if ((nChars > 0)\n            && ((null != m_xslTextElement)\n                ||!XMLCharacterRecognizer.isWhiteSpace(m_accumulator)) \n                || handler.isSpacePreserve())\n    {\n      ElemTextLiteral elem = new ElemTextLiteral();\n\n      elem.setDOMBackPointer(m_firstBackPointer);\n      elem.setLocaterInfo(handler.getLocator());\n      try\n      {\n        elem.setPrefixes(handler.getNamespaceSupport());\n      }\n      catch(TransformerException te)\n      {\n        throw new org.xml.sax.SAXException(te);\n      }\n\n      boolean doe = (null != m_xslTextElement)\n                    ? m_xslTextElement.getDisableOutputEscaping() : false;\n\n      elem.setDisableOutputEscaping(doe);\n      elem.setPreserveSpace(true);\n\n      char[] chars = new char[nChars];\n\n      m_accumulator.getChars(0, nChars, chars, 0);\n      elem.setChars(chars);\n\n      ElemTemplateElement parent = handler.getElemTemplateElement();\n\n      parent.appendChild(elem);\n    }\n\n    m_accumulator.setLength(0);\n    m_firstBackPointer = null;\n  }\n  \n  protected Node m_firstBackPointer = null;\n\n  /**\n   * Receive notification of character data inside an element.\n   *\n   *\n   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.\n   * @param ch The characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#characters\n   */\n  public void characters(\n          StylesheetHandler handler, char ch[], int start, int length)\n            throws org.xml.sax.SAXException\n  {\n\n    m_accumulator.append(ch, start, length);\n    \n    if(null == m_firstBackPointer)\n      m_firstBackPointer = handler.getOriginatingNode();\n\n    if (this != handler.getCurrentProcessor())\n      handler.pushProcessor(this);\n  }\n\n  /**\n   * Receive notification of the end of an element.\n   *\n   * @param handler The calling StylesheetHandler/TemplatesBuilder.\n   * @param uri The Namespace URI, or the empty string if the\n   *        element has no Namespace URI or if Namespace\n   *        processing is not being performed.\n   * @param localName The local name (without prefix), or the\n   *        empty string if Namespace processing is not being\n   *        performed.\n   * @param rawName The raw XML 1.0 name (with prefix), or the\n   *        empty string if raw names are not available.\n   * @param atts The attributes attached to the element.  If\n   *        there are no attributes, it shall be an empty\n   *        Attributes object.\n   * @see org.apache.xalan.processor.StylesheetHandler#startElement\n   * @see org.apache.xalan.processor.StylesheetHandler#endElement\n   * @see org.xml.sax.ContentHandler#startElement\n   * @see org.xml.sax.ContentHandler#endElement\n   * @see org.xml.sax.Attributes\n   */\n  public void endElement(\n          StylesheetHandler handler, String uri, String localName, String rawName)\n            throws org.xml.sax.SAXException\n  {\n\n    startNonText(handler);\n    handler.getCurrentProcessor().endElement(handler, uri, localName,\n                                             rawName);\n    handler.popProcessor();\n  }\n\n  /**\n   * Accumulate characters, until a non-whitespace event has\n   * occured.\n   */\n  private StringBuffer m_accumulator = new StringBuffer();\n\n  /**\n   * The xsl:text processor will call this to set a\n   * preserve space state.\n   */\n  private ElemText m_xslTextElement;\n\n  /**\n   * Set the current setXslTextElement. The xsl:text \n   * processor will call this to set a preserve space state.\n   *\n   * @param xslTextElement The current xslTextElement that \n   *                       is preserving state, or null.\n   */\n  void setXslTextElement(ElemText xslTextElement)\n  {\n    m_xslTextElement = xslTextElement;", "functions": [{"function_name": "startNonText", "code": "  public void startNonText(StylesheetHandler handler) throws org.xml.sax.SAXException\n  {\n    if (this == handler.getCurrentProcessor())\n    {\n      handler.popProcessor();\n    }\n\n    int nChars = m_accumulator.length();\n\n    if ((nChars > 0)\n            && ((null != m_xslTextElement)\n                ||!XMLCharacterRecognizer.isWhiteSpace(m_accumulator)) \n                || handler.isSpacePreserve())\n    {\n      ElemTextLiteral elem = new ElemTextLiteral();\n\n      elem.setDOMBackPointer(m_firstBackPointer);\n      elem.setLocaterInfo(handler.getLocator());\n      try\n      {\n        elem.setPrefixes(handler.getNamespaceSupport());\n      }\n      catch(TransformerException te)\n      {\n        throw new org.xml.sax.SAXException(te);\n      }\n\n      boolean doe = (null != m_xslTextElement)\n                    ? m_xslTextElement.getDisableOutputEscaping() : false;\n\n      elem.setDisableOutputEscaping(doe);\n      elem.setPreserveSpace(true);\n\n      char[] chars = new char[nChars];\n\n      m_accumulator.getChars(0, nChars, chars, 0);\n      elem.setChars(chars);\n\n      ElemTemplateElement parent = handler.getElemTemplateElement();\n\n      parent.appendChild(elem);\n    }\n\n    m_accumulator.setLength(0);\n    m_firstBackPointer = null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [5, 9], [6, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [7, 16], [7, 17], [2, 18], [8, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [14, 25], [1, 26], [1, 27], [17, 28], [17, 29], [3, 30], [11, 31], [22, 32], [22, 33], [23, 34], [13, 35], [25, 36], [14, 37], [26, 38], [15, 39], [28, 40], [28, 41], [29, 42], [35, 43], [35, 44], [35, 45], [36, 46], [37, 47], [41, 48], [45, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 5], [10, 6], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 7], [17, 7], [18, 2], [19, 8], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 14], [26, 1], [27, 1], [28, 17], [29, 17], [30, 3], [31, 11], [32, 22], [33, 22], [34, 23], [35, 13], [36, 25], [37, 14], [38, 26], [39, 15], [40, 28], [41, 28], [42, 29], [43, 35], [44, 35], [45, 35], [46, 36], [47, 37], [48, 41], [49, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "characters", "code": "  public void characters(\n          StylesheetHandler handler, char ch[], int start, int length)\n            throws org.xml.sax.SAXException\n  {\n\n    m_accumulator.append(ch, start, length);\n    \n    if(null == m_firstBackPointer)\n      m_firstBackPointer = handler.getOriginatingNode();\n\n    if (this != handler.getCurrentProcessor())\n      handler.pushProcessor(this);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [1, 10], [7, 11], [2, 12], [8, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 1], [11, 7], [12, 2], [13, 8], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "endElement", "code": "  public void endElement(\n          StylesheetHandler handler, String uri, String localName, String rawName)\n            throws org.xml.sax.SAXException\n  {\n\n    startNonText(handler);\n    handler.getCurrentProcessor().endElement(handler, uri, localName,\n                                             rawName);\n    handler.popProcessor();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setXslTextElement", "code": "  void setXslTextElement(ElemText xslTextElement)\n  {\n    m_xslTextElement = xslTextElement;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6719", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/util/FilterGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.FilterGenerator", "code": "public final class FilterGenerator extends ClassGenerator {\n    private final Instruction _aloadTranslet;\n\n    public FilterGenerator(String className, String superClassName,\n\t\t\t   String fileName,\n\t\t\t   int accessFlags, String[] interfaces,\n\t\t\t   Stylesheet stylesheet) {\n\tsuper(className, superClassName, fileName,\n\t      accessFlags, interfaces, stylesheet);\n\t\n\t_aloadTranslet = new ALOAD(TRANSLET_INDEX);\n    }\n\n    /**\n     * The index of the translet pointer within the execution of\n     * the test method.\n     */\n    public final Instruction loadTranslet() {\n\treturn _aloadTranslet;\n    }\n    \n    /**\n     * Returns <tt>true</tt> since this class is external to the\n     * translet.\n     */\n    public boolean isExternal() {\n\treturn true;", "functions": [{"function_name": "loadTranslet", "code": "    public final Instruction loadTranslet() {\n\treturn _aloadTranslet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isExternal", "code": "    public boolean isExternal() {\n\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FilterGenerator", "code": "    public FilterGenerator(String className, String superClassName,\n\t\t\t   String fileName,\n\t\t\t   int accessFlags, String[] interfaces,\n\t\t\t   Stylesheet stylesheet) {\n\tsuper(className, superClassName, fileName,\n\t      accessFlags, interfaces, stylesheet);\n\t\n\t_aloadTranslet = new ALOAD(TRANSLET_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.7-8413", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/util/TypeCheckError.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.TypeCheckError", "code": "public class TypeCheckError extends Exception {\n    static final long serialVersionUID = 3246224233917854640L;\n    ErrorMsg _error = null;\n    SyntaxTreeNode _node = null;\n\t\n    public TypeCheckError(SyntaxTreeNode node) {\n\tsuper();\n\t_node = node;\n    }\n\n    public TypeCheckError(ErrorMsg error) {\n\tsuper();\n\t_error = error;\n    }\n\t\n    public TypeCheckError(String code, Object param) {\n\tsuper();\n\t_error = new ErrorMsg(code, param);\n    }\n\n    public TypeCheckError(String code, Object param1, Object param2) {\n\tsuper();\n\t_error = new ErrorMsg(code, param1, param2);\n    }\n\n    public ErrorMsg getErrorMsg() {\n        return _error;\n    }\n\n    public String getMessage() {\n        return toString();\n    }\n\n    public String toString() {\n\tString result;\n\n\tif (_error == null) {\n            if (_node != null) {\n                _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_ERR,\n                                      _node.toString());\n\t    } else {\n\t        _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_UNK_LOC_ERR);\n\t    }\n        }\n\n\treturn _error.toString();", "functions": [{"function_name": "getErrorMsg", "code": "    public ErrorMsg getErrorMsg() {\n        return _error;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMessage", "code": "    public String getMessage() {\n        return toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n\tString result;\n\n\tif (_error == null) {\n            if (_node != null) {\n                _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_ERR,\n                                      _node.toString());\n\t    } else {\n\t        _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_UNK_LOC_ERR);\n\t    }\n        }\n\n\treturn _error.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [8, 9], [6, 10], [6, 11], [10, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 8], [10, 6], [11, 6], [12, 10], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(SyntaxTreeNode node) {\n\tsuper();\n\t_node = node;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(ErrorMsg error) {\n\tsuper();\n\t_error = error;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(String code, Object param) {\n\tsuper();\n\t_error = new ErrorMsg(code, param);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(String code, Object param1, Object param2) {\n\tsuper();\n\t_error = new ErrorMsg(code, param1, param2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "xalan-2.7-8247", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/MatchingIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.MatchingIterator", "code": "public final class MatchingIterator extends DTMAxisIteratorBase {\n\n    /**\n     * A reference to a source iterator.\n     */\n    private DTMAxisIterator _source;\n\n    /**\n     * The node to match.\n     */\n    private final int _match;\n\n    public MatchingIterator(int match, DTMAxisIterator source) {\n\t_source = source;\n\t_match = match;\n    }\n\n\n    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);\n    }\n\n    public DTMAxisIterator cloneIterator() {\n\n\ttry {\n\t    final MatchingIterator clone = (MatchingIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;\n\t}\n    }\n    \n    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(node);\n\n\t    _position = 1;\n\t    while ((node = _source.next()) != END && node != _match) {\n\t\t_position++;\n\t    }\n\t}\n\treturn this;\n    }\n\n    public DTMAxisIterator reset() {\n\t_source.reset();\n\treturn resetPosition();\n    }\n    \n    public int next() {\n\treturn _source.next();\n    }\n\t\n    public int getLast() {\n        if (_last == -1) {\n            _last = _source.getLast();\n        }\n        return _last;\n    }\n\n    public int getPosition() {\n\treturn _position;\n    }\n\n    public void setMark() {\n\t_source.setMark();\n    }\n\n    public void gotoMark() {\n\t_source.gotoMark();", "functions": [{"function_name": "setRestartable", "code": "    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "cloneIterator", "code": "    public DTMAxisIterator cloneIterator() {\n\n\ttry {\n\t    final MatchingIterator clone = (MatchingIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "RETURN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [5, 9], [2, 10], [7, 11], [8, 12], [10, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 5], [10, 2], [11, 7], [12, 8], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(node);\n\n\t    _position = 1;\n\t    while ((node = _source.next()) != END && node != _match) {\n\t\t_position++;\n\t    }\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LOOP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [5, 8], [5, 9], [6, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 5], [9, 5], [10, 6], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n\t_source.reset();\n\treturn resetPosition();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "next", "code": "    public int next() {\n\treturn _source.next();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLast", "code": "    public int getLast() {\n        if (_last == -1) {\n            _last = _source.getLast();\n        }\n        return _last;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getPosition", "code": "    public int getPosition() {\n\treturn _position;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_source.setMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_source.gotoMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "MatchingIterator", "code": "    public MatchingIterator(int match, DTMAxisIterator source) {\n\t_source = source;\n\t_match = match;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.5-7231", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/CopyOf.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.CopyOf", "code": "final class CopyOf extends Instruction {\n    private Expression _select;\n\t\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"CopyOf\");\n\tindent(indent + IndentIncrement);\n\tUtil.println(\"select \" + _select.toString());\n    }\n\n    public void parseContents(Parser parser) {\n\t_select = parser.parseExpression(this, \"select\", null);\n        if (_select.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"select\");\n\t    return;\n        }\n    }\n\t\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type tselect = _select.typeCheck(stable);\n\tif (tselect instanceof NodeType ||\n\t    tselect instanceof NodeSetType ||\n\t    tselect instanceof ReferenceType ||\n\t    tselect instanceof ResultTreeType) {\n\t}\n\telse {\n\t    _select = new CastExpr(_select, Type.String);\n\t}\n\treturn Type.Void;\n    }\n\t\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Type tselect = _select.getType();\n\n\tfinal String CPY1_SIG = \"(\"+NODE_ITERATOR_SIG+TRANSLET_OUTPUT_SIG+\")V\";\n\tfinal int cpy1 = cpg.addInterfaceMethodref(DOM_INTF, \"copy\", CPY1_SIG);\n\n\tfinal String CPY2_SIG = \"(\"+NODE_SIG+TRANSLET_OUTPUT_SIG+\")V\";\n\tfinal int cpy2 = cpg.addInterfaceMethodref(DOM_INTF, \"copy\", CPY2_SIG);\n\t\n\tfinal String getDoc_SIG = \"()\"+NODE_SIG;\n\tfinal int getDoc = cpg.addInterfaceMethodref(DOM_INTF, \"getDocument\", getDoc_SIG);\n\n\n\tif (tselect instanceof NodeSetType) {\n\t    il.append(methodGen.loadDOM());\n\n\t    _select.translate(classGen, methodGen);\t\n\t    _select.startResetIterator(classGen, methodGen);\n\n\t    il.append(methodGen.loadHandler());\n\t    il.append(new INVOKEINTERFACE(cpy1, 3));\n\t}\n\telse if (tselect instanceof NodeType) {\n\t    il.append(methodGen.loadDOM());\n\t    _select.translate(classGen, methodGen);\t\n\t    il.append(methodGen.loadHandler());\n\t    il.append(new INVOKEINTERFACE(cpy2, 3));\n\t}\n\telse if (tselect instanceof ResultTreeType) {\n\t    _select.translate(classGen, methodGen);\t\n\t    il.append(methodGen.loadHandler());\n\t    il.append(new INVOKEINTERFACE(cpy2, 3));\n\t}\n\telse if (tselect instanceof ReferenceType) {\n\t    _select.translate(classGen, methodGen);\n\t    il.append(methodGen.loadHandler());\n\t    il.append(methodGen.loadCurrentNode());\n\t    il.append(methodGen.loadDOM());\n\t    final int copy = cpg.addMethodref(BASIS_LIBRARY_CLASS, \"copy\",\n\t\t\t\t\t      \"(\" \n\t\t\t\t\t      + OBJECT_SIG  \n\t\t\t\t\t      + TRANSLET_OUTPUT_SIG \n\t\t\t\t\t      + NODE_SIG\n\t\t\t\t\t      + DOM_INTF_SIG\n\t\t\t\t\t      + \")V\");\n\t    il.append(new INVOKESTATIC(copy));\n\t}\n\telse {\n\t    il.append(classGen.loadTranslet());\n\t    _select.translate(classGen, methodGen);\n\t    il.append(methodGen.loadHandler());\n\t    il.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t\t CHARACTERSW,\n\t\t\t\t\t\t\t CHARACTERSW_SIG)));", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"CopyOf\");\n\tindent(indent + IndentIncrement);\n\tUtil.println(\"select \" + _select.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\t_select = parser.parseExpression(this, \"select\", null);\n        if (_select.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"select\");\n\t    return;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [4, 6], [1, 7], [6, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 4], [7, 1], [8, 6], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type tselect = _select.typeCheck(stable);\n\tif (tselect instanceof NodeType ||\n\t    tselect instanceof NodeSetType ||\n\t    tselect instanceof ReferenceType ||\n\t    tselect instanceof ResultTreeType) {\n\t}\n\telse {\n\t    _select = new CastExpr(_select, Type.String);\n\t}\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [5, 7], [3, 8], [2, 9], [7, 10], [7, 11], [9, 12], [11, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 5], [8, 3], [9, 2], [10, 7], [11, 7], [12, 9], [13, 11], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Type tselect = _select.getType();\n\n\tfinal String CPY1_SIG = \"(\"+NODE_ITERATOR_SIG+TRANSLET_OUTPUT_SIG+\")V\";\n\tfinal int cpy1 = cpg.addInterfaceMethodref(DOM_INTF, \"copy\", CPY1_SIG);\n\n\tfinal String CPY2_SIG = \"(\"+NODE_SIG+TRANSLET_OUTPUT_SIG+\")V\";\n\tfinal int cpy2 = cpg.addInterfaceMethodref(DOM_INTF, \"copy\", CPY2_SIG);\n\t\n\tfinal String getDoc_SIG = \"()\"+NODE_SIG;\n\tfinal int getDoc = cpg.addInterfaceMethodref(DOM_INTF, \"getDocument\", getDoc_SIG);\n\n\n\tif (tselect instanceof NodeSetType) {\n\t    il.append(methodGen.loadDOM());\n\n\t    _select.translate(classGen, methodGen);\t\n\t    _select.startResetIterator(classGen, methodGen);\n\n\t    il.append(methodGen.loadHandler());\n\t    il.append(new INVOKEINTERFACE(cpy1, 3));\n\t}\n\telse if (tselect instanceof NodeType) {\n\t    il.append(methodGen.loadDOM());\n\t    _select.translate(classGen, methodGen);\t\n\t    il.append(methodGen.loadHandler());\n\t    il.append(new INVOKEINTERFACE(cpy2, 3));\n\t}\n\telse if (tselect instanceof ResultTreeType) {\n\t    _select.translate(classGen, methodGen);\t\n\t    il.append(methodGen.loadHandler());\n\t    il.append(new INVOKEINTERFACE(cpy2, 3));\n\t}\n\telse if (tselect instanceof ReferenceType) {\n\t    _select.translate(classGen, methodGen);\n\t    il.append(methodGen.loadHandler());\n\t    il.append(methodGen.loadCurrentNode());\n\t    il.append(methodGen.loadDOM());\n\t    final int copy = cpg.addMethodref(BASIS_LIBRARY_CLASS, \"copy\",\n\t\t\t\t\t      \"(\" \n\t\t\t\t\t      + OBJECT_SIG  \n\t\t\t\t\t      + TRANSLET_OUTPUT_SIG \n\t\t\t\t\t      + NODE_SIG\n\t\t\t\t\t      + DOM_INTF_SIG\n\t\t\t\t\t      + \")V\");\n\t    il.append(new INVOKESTATIC(copy));\n\t}\n\telse {\n\t    il.append(classGen.loadTranslet());\n\t    _select.translate(classGen, methodGen);\n\t    il.append(methodGen.loadHandler());\n\t    il.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t\t CHARACTERSW,\n\t\t\t\t\t\t\t CHARACTERSW_SIG)));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [1, 14], [13, 15], [13, 16], [2, 17], [3, 18], [4, 19], [5, 20], [6, 21], [7, 22], [8, 23], [9, 24], [10, 25], [15, 26], [15, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [17, 33], [18, 34], [19, 35], [20, 36], [20, 37], [21, 38], [22, 39], [22, 40], [26, 41], [13, 42], [13, 43], [13, 44], [13, 45], [28, 46], [29, 47], [32, 48], [37, 49], [40, 50], [26, 51], [15, 52], [15, 53], [15, 54], [42, 55], [43, 56], [45, 57], [46, 58], [49, 59], [50, 60], [26, 61], [26, 62], [26, 63], [26, 64], [26, 65], [26, 66], [26, 67], [26, 68], [26, 69], [52, 70], [53, 71], [55, 72], [61, 73], [62, 74], [64, 75], [65, 76], [51, 77], [66, 78], [67, 79], [68, 80], [70, 81], [73, 82], [77, 83], [77, 84], [83, 85], [83, 86], [86, 87], [87, 88], [88, 89], [89, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 1], [15, 13], [16, 13], [17, 2], [18, 3], [19, 4], [20, 5], [21, 6], [22, 7], [23, 8], [24, 9], [25, 10], [26, 15], [27, 15], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 17], [34, 18], [35, 19], [36, 20], [37, 20], [38, 21], [39, 22], [40, 22], [41, 26], [42, 13], [43, 13], [44, 13], [45, 13], [46, 28], [47, 29], [48, 32], [49, 37], [50, 40], [51, 26], [52, 15], [53, 15], [54, 15], [55, 42], [56, 43], [57, 45], [58, 46], [59, 49], [60, 50], [61, 26], [62, 26], [63, 26], [64, 26], [65, 26], [66, 26], [67, 26], [68, 26], [69, 26], [70, 52], [71, 53], [72, 55], [73, 61], [74, 62], [75, 64], [76, 65], [77, 51], [78, 66], [79, 67], [80, 68], [81, 70], [82, 73], [83, 77], [84, 77], [85, 83], [86, 83], [87, 86], [88, 87], [89, 88], [90, 89], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}], "label": 0}
{"sample_id": "xalan-2.6-7550", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/templates/NamespaceAlias.java", "language": "java", "name": "org.apache.xalan.templates.NamespaceAlias", "code": "public class NamespaceAlias extends ElemTemplateElement\n{\n  \n  /**\n   * Constructor NamespaceAlias\n   * \n   * @param docOrderNumber The document order number\n   *\n   */\n  public NamespaceAlias(int docOrderNumber)\n  {\n    super();\n    m_docOrderNumber = docOrderNumber;\n  }\n\n  /**\n   * The \"stylesheet-prefix\" attribute.\n   * @serial\n   */\n  private String m_StylesheetPrefix;\n\n  /**\n   * Set the \"stylesheet-prefix\" attribute.\n   *\n   * @param v non-null prefix value.\n   */\n  public void setStylesheetPrefix(String v)\n  {\n    m_StylesheetPrefix = v;\n  }\n\n  /**\n   * Get the \"stylesheet-prefix\" attribute.\n   *\n   * @return non-null prefix value.\n   */\n  public String getStylesheetPrefix()\n  {\n    return m_StylesheetPrefix;\n  }\n  \n  /**\n   * The namespace in the stylesheet space.\n   * @serial\n   */\n  private String m_StylesheetNamespace;\n\n  /**\n   * Set the value for the stylesheet namespace.\n   *\n   * @param v non-null prefix value.\n   */\n  public void setStylesheetNamespace(String v)\n  {\n    m_StylesheetNamespace = v;\n  }\n\n  /**\n   * Get the value for the stylesheet namespace.\n   *\n   * @return non-null prefix value.\n   */\n  public String getStylesheetNamespace()\n  {\n    return m_StylesheetNamespace;\n  }\n\n  /**\n   * The \"result-prefix\" attribute.\n   * @serial\n   */\n  private String m_ResultPrefix;\n\n  /**\n   * Set the \"result-prefix\" attribute.\n   *\n   * @param v non-null prefix value.\n   */\n  public void setResultPrefix(String v)\n  {\n    m_ResultPrefix = v;\n  }\n\n  /**\n   * Get the \"result-prefix\" attribute.\n   *\n   * @return non-null prefix value.\n   */\n  public String getResultPrefix()\n  {\n    return m_ResultPrefix;\n  }\n  \n  /**\n   * The result namespace.\n   * @serial\n   */\n  private String m_ResultNamespace;\n\n  /**\n   * Set the result namespace.\n   *\n   * @param v non-null namespace value\n   */\n  public void setResultNamespace(String v)\n  {\n    m_ResultNamespace = v;\n  }\n\n  /**\n   * Get the result namespace value.\n   *\n   * @return non-null namespace value.\n   */\n  public String getResultNamespace()\n  {\n    return m_ResultNamespace;\n  }\n\n  /**\n   * This function is called to recompose() all of the namespace alias properties elements.\n   * \n   * @param root The owning root stylesheet\n   */\n  public void recompose(StylesheetRoot root)\n  {\n    root.recomposeNamespaceAliases(this);", "functions": [{"function_name": "setStylesheetPrefix", "code": "  public void setStylesheetPrefix(String v)\n  {\n    m_StylesheetPrefix = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheetPrefix", "code": "  public String getStylesheetPrefix()\n  {\n    return m_StylesheetPrefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStylesheetNamespace", "code": "  public void setStylesheetNamespace(String v)\n  {\n    m_StylesheetNamespace = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheetNamespace", "code": "  public String getStylesheetNamespace()\n  {\n    return m_StylesheetNamespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResultPrefix", "code": "  public void setResultPrefix(String v)\n  {\n    m_ResultPrefix = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResultPrefix", "code": "  public String getResultPrefix()\n  {\n    return m_ResultPrefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResultNamespace", "code": "  public void setResultNamespace(String v)\n  {\n    m_ResultNamespace = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResultNamespace", "code": "  public String getResultNamespace()\n  {\n    return m_ResultNamespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "recompose", "code": "  public void recompose(StylesheetRoot root)\n  {\n    root.recomposeNamespaceAliases(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "NamespaceAlias", "code": "  public NamespaceAlias(int docOrderNumber)\n  {\n    super();\n    m_docOrderNumber = docOrderNumber;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.3-4520", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/buffer/FoldHandler.java", "language": "java", "name": "org.gjt.sp.jedit.buffer.FoldHandler", "code": "public abstract class FoldHandler\n{\n\t/**\n\t * The service type. See {@link org.gjt.sp.jedit.ServiceManager}.\n\t * @since jEdit 4.2pre1\n\t * @deprecated use {@link org.gjt.sp.jedit.ServiceManager.ServiceFoldHandlerProvider}\n\t */\n\t@Deprecated\n\tpublic static final String SERVICE = \"org.gjt.sp.jedit.buffer.FoldHandler\";\n\n\t/** The FoldHandlerProvider. */\n\tpublic static FoldHandlerProvider foldHandlerProvider;\n\n\t//{{{ getName() method\n\t/**\n\t * Returns the internal name of this FoldHandler\n\t * @return The internal name of this FoldHandler\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t}\n\t//}}}\n\n\t//{{{ getFoldLevel() method\n\t/**\n\t * Returns the fold level of the specified line.\n\t * @param buffer The buffer in question\n\t * @param lineIndex The line index\n\t * @param seg A segment the fold handler can use to obtain any\n\t * text from the buffer, if necessary\n\t * @return The fold level of the specified line\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic abstract int getFoldLevel(JEditBuffer buffer, int lineIndex, Segment seg);\n\t//}}}\n\n\t//{{{ getPrecedingFoldLevels() method\n\t/**\n\t * Returns the fold levels of the lines preceding the specified line,\n\t * which depend on the specified line.\n\t * @param buffer The buffer in question\n\t * @param lineIndex The line index\n\t * @param seg A segment the fold handler can use to obtain any\n\t * @param lineFoldLevel The fold level of the specified line\n\t * @return The fold levels of the preceding lines, in decreasing line\n\t * number order (i.e. bottomost line first).\n\t * @since jEdit 4.3pre18\n\t */\n\tpublic List<Integer> getPrecedingFoldLevels(JEditBuffer buffer,\n\t\tint lineIndex, Segment seg, int lineFoldLevel)\n\t{\n\t\treturn null;\n\t}\n\t//}}}\n\n\t//{{{ equals() method\n\t/**\n\t * Returns if the specified fold handler is equal to this one.\n\t * @param o The object\n\t */\n\tpublic boolean equals(Object o)\n\t{\n\t\t// Default implementation... subclasses can extend this.\n\t\tif(o == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn getClass() == o.getClass();\n\t} //}}}\n\n\t//{{{ hashCode() method\n\tpublic int hashCode()\n\t{\n\t\treturn getClass().hashCode();\n\t} //}}}\n\n\t//{{{ getFoldHandler() method\n\t/**\n\t * Returns the fold handler with the specified name, or null if\n\t * there is no registered handler with that name.\n\t * @param name The name of the desired fold handler\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic static FoldHandler getFoldHandler(String name)\n\t{\n\t\treturn foldHandlerProvider.getFoldHandler(name);\n\t}\n\t//}}}\n\n\t//{{{ getFoldModes() method\n\t/**\n\t * Returns an array containing the names of all registered fold\n\t * handlers.\n\t *\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic static String[] getFoldModes()\n\t{\n\t\treturn foldHandlerProvider.getFoldModes();\n\t}\n\t//}}}\n\n\t//{{{ FoldHandler() constructor\n\tprotected FoldHandler(String name)\n\t{\n\t\tthis.name = name;\n\t}\n\t//}}}\n\n\t//{{{ toString() method\n\tpublic String toString()\n\t{\n\t\treturn name;\n\t} //}}}\n\n\tprivate String name;", "functions": [{"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFoldLevel", "code": "\tpublic abstract int getFoldLevel(JEditBuffer buffer, int lineIndex, Segment seg);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPrecedingFoldLevels", "code": "\tpublic List<Integer> getPrecedingFoldLevels(JEditBuffer buffer,\n\t\tint lineIndex, Segment seg, int lineFoldLevel)\n\t{\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "equals", "code": "\tpublic boolean equals(Object o)\n\t{\n\t\t// Default implementation... subclasses can extend this.\n\t\tif(o == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn getClass() == o.getClass();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "hashCode", "code": "\tpublic int hashCode()\n\t{\n\t\treturn getClass().hashCode();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFoldHandler", "code": "\tpublic static FoldHandler getFoldHandler(String name)\n\t{\n\t\treturn foldHandlerProvider.getFoldHandler(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFoldModes", "code": "\tpublic static String[] getFoldModes()\n\t{\n\t\treturn foldHandlerProvider.getFoldModes();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FoldHandler", "code": "\tprotected FoldHandler(String name)\n\t{\n\t\tthis.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-3.2-3722", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/msg/ViewUpdate.java", "language": "java", "name": "org.gjt.sp.jedit.msg.ViewUpdate", "code": "public class ViewUpdate extends EBMessage.NonVetoable\n{\n\t/**\n\t * View created.\n\t */\n\tpublic static final Object CREATED = \"CREATED\";\n\n\t/**\n\t * View closed.\n\t */\n\tpublic static final Object CLOSED = \"CLOSED\";\n\n\t/**\n\t * Creates a new view update message.\n\t * @param view The view\n\t * @param what What happened\n\t */\n\tpublic ViewUpdate(View view, Object what)\n\t{\n\t\tsuper(view);\n\n\t\tif(what == null)\n\t\t\tthrow new NullPointerException(\"What must be non-null\");\n\n\t\tthis.what = what;\n\t}\n\n\t/**\n\t * Returns what caused this view update.\n\t */\n\tpublic Object getWhat()\n\t{\n\t\treturn what;\n\t}\n\n\t/**\n\t * Returns the view involved.\n\t */\n\tpublic View getView()\n\t{\n\t\treturn (View)getSource();\n\t}\n\n\tpublic String paramString()\n\t{\n\t\treturn super.paramString() + \",what=\" + what;\n\t}\n\n\t// private members\n\tprivate Object what;", "functions": [{"function_name": "getWhat", "code": "\tpublic Object getWhat()\n\t{\n\t\treturn what;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getView", "code": "\tpublic View getView()\n\t{\n\t\treturn (View)getSource();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "paramString", "code": "\tpublic String paramString()\n\t{\n\t\treturn super.paramString() + \",what=\" + what;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ViewUpdate", "code": "\tpublic ViewUpdate(View view, Object what)\n\t{\n\t\tsuper(view);\n\n\t\tif(what == null)\n\t\t\tthrow new NullPointerException(\"What must be non-null\");\n\n\t\tthis.what = what;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "xalan-2.5-7285", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/templates/AVTPartXPath.java", "language": "java", "name": "org.apache.xalan.templates.AVTPartXPath", "code": "public class AVTPartXPath extends AVTPart\n{\n\n  /**\n   * The XPath object contained in this part.\n   * @serial\n   */\n  private XPath m_xpath;\n  \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_xpath.fixupVariables(vars, globalsSize);\n  }\n  \n  /**\n   * Tell if this expression or it's subexpressions can traverse outside \n   * the current subtree.\n   * \n   * @return true if traversal outside the context node's subtree can occur.\n   */\n   public boolean canTraverseOutsideSubtree()\n   {\n    return m_xpath.getExpression().canTraverseOutsideSubtree();\n   }\n\n  /**\n   * Construct a simple AVT part.\n   *\n   * @param xpath Xpath section of AVT \n   */\n  public AVTPartXPath(XPath xpath)\n  {\n    m_xpath = xpath;\n  }\n\n  /**\n   * Construct a simple AVT part.\n   * \n   * @param val A pure string section of an AVT.\n   * @param nsNode An object which can be used to determine the\n   * Namespace Name (URI) for any Namespace prefix used in the XPath. \n   * Usually this is based on the context where the XPath was specified,\n   * such as a node within a Stylesheet.\n   * @param xpathProcessor XPath parser\n   * @param factory XPath factory\n   * @param liaison An XPathContext object, providing infomation specific\n   * to this invocation and this thread. Maintains SAX output state, \n   * variables, error handler and so on, so the transformation/XPath \n   * object itself can be simultaneously invoked from multiple threads.\n   *\n   * @throws javax.xml.transform.TransformerException\n   * TODO: Fix or remove this unused c'tor.\n   */\n  public AVTPartXPath(\n          String val, org.apache.xml.utils.PrefixResolver nsNode, \n          XPathParser xpathProcessor, XPathFactory factory, \n          XPathContext liaison)\n            throws javax.xml.transform.TransformerException\n  {\n    m_xpath = new XPath(val, null, nsNode, XPath.SELECT, liaison.getErrorListener());\n  }\n\n  /**\n   * Get the AVT part as the original string.\n   *\n   * @return the AVT part as the original string.\n   */\n  public String getSimpleString()\n  {\n    return \"{\" + m_xpath.getPatternString() + \"}\";\n  }\n\n  /**\n   * Write the value into the buffer.\n   *\n   * @param xctxt An XPathContext object, providing infomation specific\n   * to this invocation and this thread. Maintains SAX state, variables, \n   * error handler and  so on, so the transformation/XPath object itself\n   * can be simultaneously invoked from multiple threads.\n   * @param buf Buffer to write into.\n   * @param context The current source tree context.\n   * @param nsNode The current namespace context (stylesheet tree context).\n   * @param NodeList The current Context Node List.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public void evaluate(\n          XPathContext xctxt, FastStringBuffer buf, int context, org.apache.xml.utils.PrefixResolver nsNode)\n            throws javax.xml.transform.TransformerException\n  {\n\n    XObject xobj = m_xpath.execute(xctxt, context, nsNode);\n\n    if (null != xobj)\n    {\n      xobj.appendToFsb(buf);\n    }\n  }\n  \n  /**\n   * @see XSLTVisitable#callVisitors(XSLTVisitor)\n   */\n  public void callVisitors(XSLTVisitor visitor)\n  {\n  \tm_xpath.getExpression().callVisitors(m_xpath, visitor);", "functions": [{"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_xpath.fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "canTraverseOutsideSubtree", "code": "   public boolean canTraverseOutsideSubtree()\n   {\n    return m_xpath.getExpression().canTraverseOutsideSubtree();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSimpleString", "code": "  public String getSimpleString()\n  {\n    return \"{\" + m_xpath.getPatternString() + \"}\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "evaluate", "code": "  public void evaluate(\n          XPathContext xctxt, FastStringBuffer buf, int context, org.apache.xml.utils.PrefixResolver nsNode)\n            throws javax.xml.transform.TransformerException\n  {\n\n    XObject xobj = m_xpath.execute(xctxt, context, nsNode);\n\n    if (null != xobj)\n    {\n      xobj.appendToFsb(buf);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [2, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 2], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(XSLTVisitor visitor)\n  {\n  \tm_xpath.getExpression().callVisitors(m_xpath, visitor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AVTPartXPath", "code": "  public AVTPartXPath(XPath xpath)\n  {\n    m_xpath = xpath;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AVTPartXPath", "code": "  public AVTPartXPath(\n          String val, org.apache.xml.utils.PrefixResolver nsNode, \n          XPathParser xpathProcessor, XPathFactory factory, \n          XPathContext liaison)\n            throws javax.xml.transform.TransformerException\n  {\n    m_xpath = new XPath(val, null, nsNode, XPath.SELECT, liaison.getErrorListener());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 1}
{"sample_id": "camel-1.6-2794", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/InvalidHeaderTypeException.java", "language": "java", "name": "org.apache.camel.InvalidHeaderTypeException", "code": "@Deprecated\npublic class InvalidHeaderTypeException extends RuntimeCamelException {\n\n    private static final long serialVersionUID = -8417806626073055262L;\n    private final Object headerValue;\n\n    public InvalidHeaderTypeException(Throwable cause, Object headerValue) {\n        super(cause.getMessage() + \" headerValue is: \" + headerValue + \" of type: \" + typeName(headerValue),\n              cause);\n        this.headerValue = headerValue;\n    }\n\n    public InvalidHeaderTypeException(String message, Object headerValue) {\n        super(message);\n        this.headerValue = headerValue;\n    }\n\n    /**\n     * Returns the actual header value\n     */\n    public Object getHeaderValue() {\n        return headerValue;\n    }\n\n    protected static String typeName(Object headerValue) {\n        return (headerValue != null) ? headerValue.getClass().getName() : \"null\";", "functions": [{"function_name": "getHeaderValue", "code": "    public Object getHeaderValue() {\n        return headerValue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "typeName", "code": "    protected static String typeName(Object headerValue) {\n        return (headerValue != null) ? headerValue.getClass().getName() : \"null\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "InvalidHeaderTypeException", "code": "    public InvalidHeaderTypeException(Throwable cause, Object headerValue) {\n        super(cause.getMessage() + \" headerValue is: \" + headerValue + \" of type: \" + typeName(headerValue),\n              cause);\n        this.headerValue = headerValue;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "InvalidHeaderTypeException", "code": "    public InvalidHeaderTypeException(String message, Object headerValue) {\n        super(message);\n        this.headerValue = headerValue;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.6-2717", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/impl/converter/InstanceMethodTypeConverter.java", "language": "java", "name": "org.apache.camel.impl.converter.InstanceMethodTypeConverter", "code": "public class InstanceMethodTypeConverter implements TypeConverter {\n    private final CachingInjector injector;\n    private final Method method;\n    private final boolean useExchange;\n\n    public InstanceMethodTypeConverter(CachingInjector injector, Method method) {\n        this.injector = injector;\n        this.method = method;\n        this.useExchange = method.getParameterTypes().length == 2;\n    }\n\n    @Override\n    public String toString() {\n        return \"InstanceMethodTypeConverter: \" + method;\n    }\n\n    public <T> T convertTo(Class<T> type, Object value) {\n        return convertTo(type, null, value);\n    }\n\n    public <T> T convertTo(Class<T> type, Exchange exchange, Object value) {\n        Object instance = injector.newInstance();\n        if (instance == null) {\n            throw new RuntimeCamelException(\"Could not instantiate an instance of: \" + type.getName());\n        }\n        return useExchange\n            ? (T)ObjectHelper.invokeMethod(method, instance, value, exchange) : (T)ObjectHelper\n                .invokeMethod(method, instance, value);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"InstanceMethodTypeConverter: \" + method;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "convertTo", "code": "    public <T> T convertTo(Class<T> type, Object value) {\n        return convertTo(type, null, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "convertTo", "code": "    public <T> T convertTo(Class<T> type, Exchange exchange, Object value) {\n        Object instance = injector.newInstance();\n        if (instance == null) {\n            throw new RuntimeCamelException(\"Could not instantiate an instance of: \" + type.getName());\n        }\n        return useExchange\n            ? (T)ObjectHelper.invokeMethod(method, instance, value, exchange) : (T)ObjectHelper\n                .invokeMethod(method, instance, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [8, 10], [3, 11], [7, 12], [7, 13], [9, 14], [14, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 8], [11, 3], [12, 7], [13, 7], [14, 9], [15, 14], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "InstanceMethodTypeConverter", "code": "    public InstanceMethodTypeConverter(CachingInjector injector, Method method) {\n        this.injector = injector;\n        this.method = method;\n        this.useExchange = method.getParameterTypes().length == 2;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "jedit-4.0-3857", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/gui/InputHandler.java", "language": "java", "name": "org.gjt.sp.jedit.gui.InputHandler", "code": "public abstract class InputHandler extends KeyAdapter\n{\n\t//{{{ InputHandler constructor\n\t/**\n\t * Creates a new input handler.\n\t * @param view The view\n\t */\n\tpublic InputHandler(View view)\n\t{\n\t\tthis.view = view;\n\t} //}}}\n\n\t//{{{ processKeyEvent() method\n\t/**\n\t * Utility method, calls one of <code>keyPressed()</code>,\n\t * <code>keyReleased()</code>, or <code>keyTyped()</code>.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic void processKeyEvent(KeyEvent evt)\n\t{\n\t\tswitch(evt.getID())\n\t\t{\n\t\tcase KeyEvent.KEY_TYPED:\n\t\t\tkeyTyped(evt);\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_PRESSED:\n\t\t\tkeyPressed(evt);\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_RELEASED:\n\t\t\tkeyReleased(evt);\n\t\t\tbreak;\n\t\t}\n\t} //}}}\n\n\t//{{{ addKeyBinding() method\n\t/**\n\t * Adds a key binding to this input handler.\n\t * @param keyBinding The key binding (the format of this is\n\t * input-handler specific)\n\t * @param action The action\n\t */\n\tpublic abstract void addKeyBinding(String keyBinding, EditAction action);\n\t//}}}\n\n\t//{{{ removeKeyBinding() method\n\t/**\n\t * Removes a key binding from this input handler.\n\t * @param keyBinding The key binding\n\t */\n\tpublic abstract void removeKeyBinding(String keyBinding);\n\t//}}}\n\n\t//{{{ removeAllKeyBindings() method\n\t/**\n\t * Removes all key bindings from this input handler.\n\t */\n\tpublic abstract void removeAllKeyBindings();\n\t//}}}\n\n\t//{{{ isPrefixActive() method\n\t/**\n\t * Returns if a prefix key has been pressed.\n\t */\n\tpublic boolean isPrefixActive()\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ isRepeatEnabled() method\n\t/**\n\t * Returns if repeating is enabled. When repeating is enabled,\n\t * actions will be executed multiple times. This is usually\n\t * invoked with a special key stroke in the input handler.\n\t */\n\tpublic boolean isRepeatEnabled()\n\t{\n\t\treturn repeat;\n\t} //}}}\n\n\t//{{{ setRepeatEnabled() method\n\t/**\n\t * Enables repeating. When repeating is enabled, actions will be\n\t * executed multiple times. Once repeating is enabled, the input\n\t * handler should read a number from the keyboard.\n\t */\n\tpublic void setRepeatEnabled(boolean repeat)\n\t{\n\t\tboolean oldRepeat = this.repeat;\n\t\tthis.repeat = repeat;\n\t\trepeatCount = 0;\n\t\tif(oldRepeat != repeat)\n\t\t\tview.getStatus().setMessage(null);\n\t} //}}}\n\n\t//{{{ getRepeatCount() method\n\t/**\n\t * Returns the number of times the next action will be repeated.\n\t */\n\tpublic int getRepeatCount()\n\t{\n\t\treturn (repeat && repeatCount > 0 ? repeatCount : 1);\n\t} //}}}\n\n\t//{{{ setRepeatCount() method\n\t/**\n\t * Sets the number of times the next action will be repeated.\n\t * @param repeatCount The repeat count\n\t */\n\tpublic void setRepeatCount(int repeatCount)\n\t{\n\t\tboolean oldRepeat = this.repeat;\n\t\trepeat = true;\n\t\tthis.repeatCount = repeatCount;\n\t\tif(oldRepeat != repeat)\n\t\t\tview.getStatus().setMessage(null);\n\t} //}}}\n\n\t//{{{ getLastAction() method\n\t/**\n\t * Returns the last executed action.\n\t * @since jEdit 2.5pre5\n\t */\n\tpublic EditAction getLastAction()\n\t{\n\t\treturn lastAction;\n\t} //}}}\n\n\t//{{{ getLastActionCount() method\n\t/**\n\t * Returns the number of times the last action was executed.\n\t * @since jEdit 2.5pre5\n\t */\n\tpublic int getLastActionCount()\n\t{\n\t\treturn lastActionCount;\n\t} //}}}\n\n\t//{{{ readNextChar() method\n\t/**\n\t * Invokes the specified BeanShell code, replacing __char__ in the\n\t * code with the next input character.\n\t * @param msg The prompt to display in the status bar\n\t * @param code The code\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic void readNextChar(String msg, String code)\n\t{\n\t\tview.getStatus().setMessage(msg);\n\t\treadNextChar = code;\n\t} //}}}\n\n\t//{{{ readNextChar() method\n\t/**\n\t * @deprecated Use the other form of this method instead\n\t */\n\tpublic void readNextChar(String code)\n\t{\n\t\treadNextChar = code;\n\t} //}}}\n\n\t//{{{ resetLastActionCount() method\n\t/**\n\t * Resets the last action count. This should be called when an\n\t * editing operation that is not an action is invoked, for example\n\t * a mouse click.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic void resetLastActionCount()\n\t{\n\t\tlastAction = null;\n\t\tlastActionCount = 0;\n\t} //}}}\n\n\t//{{{ invokeAction() method\n\t/**\n\t * Invokes the specified action, repeating and recording it as\n\t * necessary.\n\t * @param action The action\n\t * @param source The event source\n\t */\n\tpublic void invokeAction(EditAction action)\n\t{\n\t\tBuffer buffer = view.getBuffer();\n\n\t\t/* if(buffer.insideCompoundEdit())\n\t\t\tbuffer.endCompoundEdit(); */\n\n\t\t// remember the last executed action\n\t\tif(lastAction == action)\n\t\t\tlastActionCount++;\n\t\telse\n\t\t{\n\t\t\tlastAction = action;\n\t\t\tlastActionCount = 1;\n\t\t}\n\n\t\t// remember old values, in case action changes them\n\t\tboolean _repeat = repeat;\n\t\tint _repeatCount = getRepeatCount();\n\n\t\t// execute the action\n\t\tif(action.noRepeat() || _repeatCount == 1)\n\t\t\taction.invoke(view);\n\t\telse\n\t\t{\n\t\t\t// stop people doing dumb stuff like C+ENTER 100 C+n\n\t\t\tif(_repeatCount > REPEAT_COUNT_THRESHOLD)\n\t\t\t{\n\t\t\t\tString label = action.getLabel();\n\t\t\t\tif(label == null)\n\t\t\t\t\tlabel = action.getName();\n\t\t\t\telse\n\t\t\t\t\tlabel = GUIUtilities.prettifyMenuLabel(label);\n\n\t\t\t\tObject[] pp = { label, new Integer(_repeatCount) };\n\n\t\t\t\tif(GUIUtilities.confirm(view,\"large-repeat-count\",pp,\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE,\n\t\t\t\t\tJOptionPane.YES_NO_OPTION)\n\t\t\t\t\t!= JOptionPane.YES_OPTION)\n\t\t\t\t{\n\t\t\t\t\trepeat = false;\n\t\t\t\t\trepeatCount = 0;\n\t\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t\tfor(int i = 0; i < _repeatCount; i++)\n\t\t\t\t\taction.invoke(view);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\tif(recorder != null && !action.noRecord())\n\t\t\trecorder.record(_repeatCount,action.getCode());\n\n\t\t// If repeat was true originally, clear it\n\t\t// Otherwise it might have been set by the action, etc\n\t\tif(_repeat)\n\t\t{\n\t\t\t// first of all, if this action set a\n\t\t\t// readNextChar, do not clear the repeat\n\t\t\tif(readNextChar != null)\n\t\t\t\treturn;\n\n\t\t\trepeat = false;\n\t\t\trepeatCount = 0;\n\t\t\tview.getStatus().setMessage(null);\n\t\t}\n\t} //}}}\n\n\t//{{{ Protected members\n\tprivate static final int REPEAT_COUNT_THRESHOLD = 20;\n\n\t//{{{ Instance variables\n\tprotected View view;\n\tprotected boolean repeat;\n\tprotected int repeatCount;\n\n\tprotected EditAction lastAction;\n\tprotected int lastActionCount;\n\n\tprotected String readNextChar;\n\t//}}}\n\n\t//{{{ userInput() method\n\tprotected void userInput(char ch)\n\t{\n\t\tlastAction = null;\n\n\t\tif(readNextChar != null)\n\t\t\tinvokeReadNextChar(ch);\n\t\telse\n\t\t{\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\t\tBuffer buffer = view.getBuffer();\n\t\t\t/* if(!buffer.insideCompoundEdit())\n\t\t\t\tbuffer.beginCompoundEdit(); */\n\n\t\t\tint _repeatCount = getRepeatCount();\n\t\t\tif(_repeatCount == 1)\n\t\t\t\ttextArea.userInput(ch);\n\t\t\telse\n\t\t\t{\n\t\t\t\t// stop people doing dumb stuff like C+ENTER 100 C+n\n\t\t\t\tif(_repeatCount > REPEAT_COUNT_THRESHOLD)\n\t\t\t\t{\n\t\t\t\t\tObject[] pp = { String.valueOf(ch),\n\t\t\t\t\t\tnew Integer(_repeatCount) };\n\n\t\t\t\t\tif(GUIUtilities.confirm(view,\n\t\t\t\t\t\t\"large-repeat-count.user-input\",pp,\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE,\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION)\n\t\t\t\t\t\t!= JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\trepeat = false;\n\t\t\t\t\t\trepeatCount = 0;\n\t\t\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int i = 0; i < _repeatCount; i++)\n\t\t\t\t\ttextArea.userInput(ch);\n\t\t\t}\n\n\t\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(_repeatCount,ch);\n\t\t}\n\n\t\tsetRepeatEnabled(false);\n\t} //}}}\n\n\t//{{{ invokeReadNextChar() method\n\tprotected void invokeReadNextChar(char ch)\n\t{\n\t\tBuffer buffer = view.getBuffer();\n\n\t\t/* if(buffer.insideCompoundEdit())\n\t\t\tbuffer.endCompoundEdit(); */\n\n\t\tString charStr = MiscUtilities.charsToEscapes(String.valueOf(ch));\n\n\t\t// this might be a bit slow if __char__ occurs a lot\n\t\tint index;\n\t\twhile((index = readNextChar.indexOf(\"__char__\")) != -1)\n\t\t{\n\t\t\treadNextChar = readNextChar.substring(0,index)\n\t\t\t\t+ '\\'' + charStr + '\\''\n\t\t\t\t+ readNextChar.substring(index + 8);\n\t\t}\n\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(getRepeatCount(),readNextChar);\n\n\t\tif(getRepeatCount() != 1)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t\tBeanShell.eval(view,BeanShell.getNameSpace(),\n\t\t\t\t\t\"for(int i = 1; i < \"\n\t\t\t\t\t+ getRepeatCount() + \"; i++)\\n{\\n\"\n\t\t\t\t\t+ readNextChar + \"\\n}\");\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tBeanShell.eval(view,BeanShell.getNameSpace(),readNextChar);\n\n\t\treadNextChar = null;\n\n\t\tview.getStatus().setMessage(null);", "functions": [{"function_name": "processKeyEvent", "code": "\tpublic void processKeyEvent(KeyEvent evt)\n\t{\n\t\tswitch(evt.getID())\n\t\t{\n\t\tcase KeyEvent.KEY_TYPED:\n\t\t\tkeyTyped(evt);\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_PRESSED:\n\t\t\tkeyPressed(evt);\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_RELEASED:\n\t\t\tkeyReleased(evt);\n\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "addKeyBinding", "code": "\tpublic abstract void addKeyBinding(String keyBinding, EditAction action);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeKeyBinding", "code": "\tpublic abstract void removeKeyBinding(String keyBinding);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "removeAllKeyBindings", "code": "\tpublic abstract void removeAllKeyBindings();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isPrefixActive", "code": "\tpublic boolean isPrefixActive()\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isRepeatEnabled", "code": "\tpublic boolean isRepeatEnabled()\n\t{\n\t\treturn repeat;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRepeatEnabled", "code": "\tpublic void setRepeatEnabled(boolean repeat)\n\t{\n\t\tboolean oldRepeat = this.repeat;\n\t\tthis.repeat = repeat;\n\t\trepeatCount = 0;\n\t\tif(oldRepeat != repeat)\n\t\t\tview.getStatus().setMessage(null);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [5, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 5], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getRepeatCount", "code": "\tpublic int getRepeatCount()\n\t{\n\t\treturn (repeat && repeatCount > 0 ? repeatCount : 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setRepeatCount", "code": "\tpublic void setRepeatCount(int repeatCount)\n\t{\n\t\tboolean oldRepeat = this.repeat;\n\t\trepeat = true;\n\t\tthis.repeatCount = repeatCount;\n\t\tif(oldRepeat != repeat)\n\t\t\tview.getStatus().setMessage(null);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [6, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 6], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getLastAction", "code": "\tpublic EditAction getLastAction()\n\t{\n\t\treturn lastAction;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastActionCount", "code": "\tpublic int getLastActionCount()\n\t{\n\t\treturn lastActionCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "readNextChar", "code": "\tpublic void readNextChar(String msg, String code)\n\t{\n\t\tview.getStatus().setMessage(msg);\n\t\treadNextChar = code;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "readNextChar", "code": "\tpublic void readNextChar(String code)\n\t{\n\t\treadNextChar = code;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "resetLastActionCount", "code": "\tpublic void resetLastActionCount()\n\t{\n\t\tlastAction = null;\n\t\tlastActionCount = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "invokeAction", "code": "\tpublic void invokeAction(EditAction action)\n\t{\n\t\tBuffer buffer = view.getBuffer();\n\n\t\t/* if(buffer.insideCompoundEdit())\n\t\t\tbuffer.endCompoundEdit(); */\n\n\t\t// remember the last executed action\n\t\tif(lastAction == action)\n\t\t\tlastActionCount++;\n\t\telse\n\t\t{\n\t\t\tlastAction = action;\n\t\t\tlastActionCount = 1;\n\t\t}\n\n\t\t// remember old values, in case action changes them\n\t\tboolean _repeat = repeat;\n\t\tint _repeatCount = getRepeatCount();\n\n\t\t// execute the action\n\t\tif(action.noRepeat() || _repeatCount == 1)\n\t\t\taction.invoke(view);\n\t\telse\n\t\t{\n\t\t\t// stop people doing dumb stuff like C+ENTER 100 C+n\n\t\t\tif(_repeatCount > REPEAT_COUNT_THRESHOLD)\n\t\t\t{\n\t\t\t\tString label = action.getLabel();\n\t\t\t\tif(label == null)\n\t\t\t\t\tlabel = action.getName();\n\t\t\t\telse\n\t\t\t\t\tlabel = GUIUtilities.prettifyMenuLabel(label);\n\n\t\t\t\tObject[] pp = { label, new Integer(_repeatCount) };\n\n\t\t\t\tif(GUIUtilities.confirm(view,\"large-repeat-count\",pp,\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE,\n\t\t\t\t\tJOptionPane.YES_NO_OPTION)\n\t\t\t\t\t!= JOptionPane.YES_OPTION)\n\t\t\t\t{\n\t\t\t\t\trepeat = false;\n\t\t\t\t\trepeatCount = 0;\n\t\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t\tfor(int i = 0; i < _repeatCount; i++)\n\t\t\t\t\taction.invoke(view);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\tif(recorder != null && !action.noRecord())\n\t\t\trecorder.record(_repeatCount,action.getCode());\n\n\t\t// If repeat was true originally, clear it\n\t\t// Otherwise it might have been set by the action, etc\n\t\tif(_repeat)\n\t\t{\n\t\t\t// first of all, if this action set a\n\t\t\t// readNextChar, do not clear the repeat\n\t\t\tif(readNextChar != null)\n\t\t\t\treturn;\n\n\t\t\trepeat = false;\n\t\t\trepeatCount = 0;\n\t\t\tview.getStatus().setMessage(null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "TRY", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [4, 11], [7, 12], [1, 13], [2, 14], [10, 15], [10, 16], [3, 17], [4, 18], [4, 19], [4, 20], [11, 21], [11, 22], [5, 23], [8, 24], [1, 25], [1, 26], [1, 27], [13, 28], [13, 29], [14, 30], [16, 31], [18, 32], [19, 33], [21, 34], [7, 35], [7, 36], [25, 37], [26, 38], [27, 39], [29, 40], [18, 41], [32, 42], [18, 43], [19, 44], [19, 45], [19, 46], [19, 47], [35, 48], [37, 49], [32, 50], [44, 51], [46, 52], [32, 53], [44, 54], [51, 55], [46, 56], [46, 57], [52, 58], [47, 59], [44, 60], [44, 61], [44, 62], [55, 63], [45, 64], [56, 65], [57, 66], [60, 67], [61, 68], [62, 69], [67, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 4], [12, 7], [13, 1], [14, 2], [15, 10], [16, 10], [17, 3], [18, 4], [19, 4], [20, 4], [21, 11], [22, 11], [23, 5], [24, 8], [25, 1], [26, 1], [27, 1], [28, 13], [29, 13], [30, 14], [31, 16], [32, 18], [33, 19], [34, 21], [35, 7], [36, 7], [37, 25], [38, 26], [39, 27], [40, 29], [41, 18], [42, 32], [43, 18], [44, 19], [45, 19], [46, 19], [47, 19], [48, 35], [49, 37], [50, 32], [51, 44], [52, 46], [53, 32], [54, 44], [55, 51], [56, 46], [57, 46], [58, 52], [59, 47], [60, 44], [61, 44], [62, 44], [63, 55], [64, 45], [65, 56], [66, 57], [67, 60], [68, 61], [69, 62], [70, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "userInput", "code": "\tprotected void userInput(char ch)\n\t{\n\t\tlastAction = null;\n\n\t\tif(readNextChar != null)\n\t\t\tinvokeReadNextChar(ch);\n\t\telse\n\t\t{\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\t\tBuffer buffer = view.getBuffer();\n\t\t\t/* if(!buffer.insideCompoundEdit())\n\t\t\t\tbuffer.beginCompoundEdit(); */\n\n\t\t\tint _repeatCount = getRepeatCount();\n\t\t\tif(_repeatCount == 1)\n\t\t\t\ttextArea.userInput(ch);\n\t\t\telse\n\t\t\t{\n\t\t\t\t// stop people doing dumb stuff like C+ENTER 100 C+n\n\t\t\t\tif(_repeatCount > REPEAT_COUNT_THRESHOLD)\n\t\t\t\t{\n\t\t\t\t\tObject[] pp = { String.valueOf(ch),\n\t\t\t\t\t\tnew Integer(_repeatCount) };\n\n\t\t\t\t\tif(GUIUtilities.confirm(view,\n\t\t\t\t\t\t\"large-repeat-count.user-input\",pp,\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE,\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION)\n\t\t\t\t\t\t!= JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\trepeat = false;\n\t\t\t\t\t\trepeatCount = 0;\n\t\t\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int i = 0; i < _repeatCount; i++)\n\t\t\t\t\ttextArea.userInput(ch);\n\t\t\t}\n\n\t\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(_repeatCount,ch);\n\t\t}\n\n\t\tsetRepeatEnabled(false);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LOOP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [4, 14], [5, 15], [7, 16], [9, 17], [7, 18], [16, 19], [8, 20], [9, 21], [9, 22], [9, 23], [17, 24], [10, 25], [11, 26], [12, 27], [21, 28], [22, 29], [21, 30], [22, 31], [22, 32], [21, 33], [31, 34], [31, 35], [34, 36], [31, 37], [31, 38], [31, 39], [36, 40], [32, 41], [32, 42], [37, 43], [38, 44], [39, 45], [43, 46], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 4], [15, 5], [16, 7], [17, 9], [18, 7], [19, 16], [20, 8], [21, 9], [22, 9], [23, 9], [24, 17], [25, 10], [26, 11], [27, 12], [28, 21], [29, 22], [30, 21], [31, 22], [32, 22], [33, 21], [34, 31], [35, 31], [36, 34], [37, 31], [38, 31], [39, 31], [40, 36], [41, 32], [42, 32], [43, 37], [44, 38], [45, 39], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "invokeReadNextChar", "code": "\tprotected void invokeReadNextChar(char ch)\n\t{\n\t\tBuffer buffer = view.getBuffer();\n\n\t\t/* if(buffer.insideCompoundEdit())\n\t\t\tbuffer.endCompoundEdit(); */\n\n\t\tString charStr = MiscUtilities.charsToEscapes(String.valueOf(ch));\n\n\t\t// this might be a bit slow if __char__ occurs a lot\n\t\tint index;\n\t\twhile((index = readNextChar.indexOf(\"__char__\")) != -1)\n\t\t{\n\t\t\treadNextChar = readNextChar.substring(0,index)\n\t\t\t\t+ '\\'' + charStr + '\\''\n\t\t\t\t+ readNextChar.substring(index + 8);\n\t\t}\n\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(getRepeatCount(),readNextChar);\n\n\t\tif(getRepeatCount() != 1)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t\tBeanShell.eval(view,BeanShell.getNameSpace(),\n\t\t\t\t\t\"for(int i = 1; i < \"\n\t\t\t\t\t+ getRepeatCount() + \"; i++)\\n{\\n\"\n\t\t\t\t\t+ readNextChar + \"\\n}\");\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tBeanShell.eval(view,BeanShell.getNameSpace(),readNextChar);\n\n\t\treadNextChar = null;\n\n\t\tview.getStatus().setMessage(null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [4, 13], [9, 14], [10, 15], [1, 16], [1, 17], [11, 18], [11, 19], [2, 20], [12, 21], [3, 22], [13, 23], [13, 24], [6, 25], [7, 26], [14, 27], [16, 28], [20, 29], [4, 30], [24, 31], [25, 32], [17, 33], [17, 34], [17, 35], [30, 36], [31, 37], [34, 38], [34, 39], [36, 40], [36, 41], [38, 42], [38, 43], [40, 44], [41, 45], [41, 46], [43, 47], [44, 48], [46, 49], [47, 50], [47, 51], [49, 52], [49, 53], [51, 54], [51, 55], [53, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 4], [14, 9], [15, 10], [16, 1], [17, 1], [18, 11], [19, 11], [20, 2], [21, 12], [22, 3], [23, 13], [24, 13], [25, 6], [26, 7], [27, 14], [28, 16], [29, 20], [30, 4], [31, 24], [32, 25], [33, 17], [34, 17], [35, 17], [36, 30], [37, 31], [38, 34], [39, 34], [40, 36], [41, 36], [42, 38], [43, 38], [44, 40], [45, 41], [46, 41], [47, 43], [48, 44], [49, 46], [50, 47], [51, 47], [52, 49], [53, 49], [54, 51], [55, 51], [56, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "InputHandler", "code": "\tpublic InputHandler(View view)\n\t{\n\t\tthis.view = view;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "log4j-1.2-5013", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/lf5/viewer/categoryexplorer/CategoryNode.java", "language": "java", "name": "org.apache.log4j.lf5.viewer.categoryexplorer.CategoryNode", "code": "public class CategoryNode extends DefaultMutableTreeNode {\n  private static final long serialVersionUID = 5958994817693177319L;\n  //--------------------------------------------------------------------------\n  //   Constants:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Protected Variables:\n  //--------------------------------------------------------------------------\n  protected boolean _selected = true;\n  protected int _numberOfContainedRecords = 0;\n  protected int _numberOfRecordsFromChildren = 0;\n  protected boolean _hasFatalChildren = false;\n  protected boolean _hasFatalRecords = false;\n\n  //--------------------------------------------------------------------------\n  //   Private Variables:\n  //--------------------------------------------------------------------------\n\n  //--------------------------------------------------------------------------\n  //   Constructors:\n  //--------------------------------------------------------------------------\n\n  /**\n   *\n   */\n  public CategoryNode(String title) {\n    setUserObject(title);\n  }\n\n  //--------------------------------------------------------------------------\n  //   Public Methods:\n  //--------------------------------------------------------------------------\n  public String getTitle() {\n    return (String) getUserObject();\n  }\n\n  public void setSelected(boolean s) {\n    if (s != _selected) {\n      _selected = s;\n    }\n  }\n\n  public boolean isSelected() {\n    return _selected;\n  }\n\n  /**\n   * @deprecated\n   */\n  public void setAllDescendantsSelected() {\n    Enumeration children = children();\n    while (children.hasMoreElements()) {\n      CategoryNode node = (CategoryNode) children.nextElement();\n      node.setSelected(true);\n      node.setAllDescendantsSelected();\n    }\n  }\n\n  /**\n   * @deprecated\n   */\n  public void setAllDescendantsDeSelected() {\n    Enumeration children = children();\n    while (children.hasMoreElements()) {\n      CategoryNode node = (CategoryNode) children.nextElement();\n      node.setSelected(false);\n      node.setAllDescendantsDeSelected();\n    }\n  }\n\n  public String toString() {\n    return (getTitle());\n  }\n\n  public boolean equals(Object obj) {\n    if (obj instanceof CategoryNode) {\n      CategoryNode node = (CategoryNode) obj;\n      String tit1 = getTitle().toLowerCase();\n      String tit2 = node.getTitle().toLowerCase();\n\n      if (tit1.equals(tit2)) {\n        return (true);\n      }\n    }\n    return (false);\n  }\n\n  public int hashCode() {\n    return (getTitle().hashCode());\n  }\n\n  public void addRecord() {\n    _numberOfContainedRecords++;\n    addRecordToParent();\n  }\n\n  public int getNumberOfContainedRecords() {\n    return _numberOfContainedRecords;\n  }\n\n  public void resetNumberOfContainedRecords() {\n    _numberOfContainedRecords = 0;\n    _numberOfRecordsFromChildren = 0;\n    _hasFatalRecords = false;\n    _hasFatalChildren = false;\n  }\n\n  public boolean hasFatalRecords() {\n    return _hasFatalRecords;\n  }\n\n  public boolean hasFatalChildren() {\n    return _hasFatalChildren;\n  }\n\n  public void setHasFatalRecords(boolean flag) {\n    _hasFatalRecords = flag;\n  }\n\n  public void setHasFatalChildren(boolean flag) {\n    _hasFatalChildren = flag;\n  }\n\n  //--------------------------------------------------------------------------\n  //   Protected Methods:\n  //--------------------------------------------------------------------------\n\n  protected int getTotalNumberOfRecords() {\n    return getNumberOfRecordsFromChildren() + getNumberOfContainedRecords();\n  }\n\n  /**\n   * Passes up the addition from child to parent\n   */\n  protected void addRecordFromChild() {\n    _numberOfRecordsFromChildren++;\n    addRecordToParent();\n  }\n\n  protected int getNumberOfRecordsFromChildren() {\n    return _numberOfRecordsFromChildren;\n  }\n\n  protected void addRecordToParent() {\n    TreeNode parent = getParent();\n    if (parent == null) {\n      return;\n    }\n    ((CategoryNode) parent).addRecordFromChild();", "functions": [{"function_name": "getTitle", "code": "  public String getTitle() {\n    return (String) getUserObject();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSelected", "code": "  public void setSelected(boolean s) {\n    if (s != _selected) {\n      _selected = s;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isSelected", "code": "  public boolean isSelected() {\n    return _selected;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAllDescendantsSelected", "code": "  public void setAllDescendantsSelected() {\n    Enumeration children = children();\n    while (children.hasMoreElements()) {\n      CategoryNode node = (CategoryNode) children.nextElement();\n      node.setSelected(true);\n      node.setAllDescendantsSelected();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [1, 6], [1, 7], [7, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 1], [7, 1], [8, 7], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setAllDescendantsDeSelected", "code": "  public void setAllDescendantsDeSelected() {\n    Enumeration children = children();\n    while (children.hasMoreElements()) {\n      CategoryNode node = (CategoryNode) children.nextElement();\n      node.setSelected(false);\n      node.setAllDescendantsDeSelected();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [1, 6], [1, 7], [7, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 1], [7, 1], [8, 7], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "toString", "code": "  public String toString() {\n    return (getTitle());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "equals", "code": "  public boolean equals(Object obj) {\n    if (obj instanceof CategoryNode) {\n      CategoryNode node = (CategoryNode) obj;\n      String tit1 = getTitle().toLowerCase();\n      String tit2 = node.getTitle().toLowerCase();\n\n      if (tit1.equals(tit2)) {\n        return (true);\n      }\n    }\n    return (false);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [6, 11], [7, 12], [8, 13], [11, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 6], [12, 7], [13, 8], [14, 11], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "hashCode", "code": "  public int hashCode() {\n    return (getTitle().hashCode());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addRecord", "code": "  public void addRecord() {\n    _numberOfContainedRecords++;\n    addRecordToParent();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfContainedRecords", "code": "  public int getNumberOfContainedRecords() {\n    return _numberOfContainedRecords;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "resetNumberOfContainedRecords", "code": "  public void resetNumberOfContainedRecords() {\n    _numberOfContainedRecords = 0;\n    _numberOfRecordsFromChildren = 0;\n    _hasFatalRecords = false;\n    _hasFatalChildren = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "hasFatalRecords", "code": "  public boolean hasFatalRecords() {\n    return _hasFatalRecords;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hasFatalChildren", "code": "  public boolean hasFatalChildren() {\n    return _hasFatalChildren;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHasFatalRecords", "code": "  public void setHasFatalRecords(boolean flag) {\n    _hasFatalRecords = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHasFatalChildren", "code": "  public void setHasFatalChildren(boolean flag) {\n    _hasFatalChildren = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTotalNumberOfRecords", "code": "  protected int getTotalNumberOfRecords() {\n    return getNumberOfRecordsFromChildren() + getNumberOfContainedRecords();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addRecordFromChild", "code": "  protected void addRecordFromChild() {\n    _numberOfRecordsFromChildren++;\n    addRecordToParent();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfRecordsFromChildren", "code": "  protected int getNumberOfRecordsFromChildren() {\n    return _numberOfRecordsFromChildren;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addRecordToParent", "code": "  protected void addRecordToParent() {\n    TreeNode parent = getParent();\n    if (parent == null) {\n      return;\n    }\n    ((CategoryNode) parent).addRecordFromChild();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "CategoryNode", "code": "  public CategoryNode(String title) {\n    setUserObject(title);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7752", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/SecuritySupport.java", "language": "java", "name": "org.apache.xml.dtm.ref.SecuritySupport", "code": "class SecuritySupport {\n\n    /*\n     * Make this of type Object so that the verifier won't try to\n     * prove its type, thus possibly trying to load the SecuritySupport12\n     * class.\n     */\n    private static final Object securitySupport;\n\n    static {\n\tSecuritySupport ss = null;\n\ttry {\n\t    Class c = Class.forName(\"java.security.AccessController\");\n\t    /*\n\t    c = Class.forName(\"javax.mail.SecuritySupport12\");\n\t    Constructor cons = c.getConstructor(new Class[] { });\n\t    ss = (SecuritySupport)cons.newInstance(new Object[] { });\n\t    */\n\t    /*\n\t     * Unfortunately, we can't load the class using reflection\n\t     * because the class is package private.  And the class has\n\t     * to be package private so the APIs aren't exposed to other\n\t     * code that could use them to circumvent security.  Thus,\n\t     * we accept the risk that the direct reference might fail\n\t     * on some JDK 1.1 JVMs, even though we would never execute\n\t     * this code in such a case.  Sigh...\n\t     */\n\t    ss = new SecuritySupport12();\n\t} catch (Exception ex) {\n\t} finally {\n\t    if (ss == null)\n\t\tss = new SecuritySupport();\n\t    securitySupport = ss;\n\t}\n    }\n\n    /**\n     * Return an appropriate instance of this class, depending on whether\n     * we're on a JDK 1.1 or J2SE 1.2 (or later) system.\n     */\n    static SecuritySupport getInstance() {\n\treturn (SecuritySupport)securitySupport;\n    }\n\n    ClassLoader getContextClassLoader() {\n\treturn null;\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return null;\n    }\n\n    ClassLoader getParentClassLoader(ClassLoader cl) {\n        return null;\n    }\n\n    String getSystemProperty(String propName) {\n        return System.getProperty(propName);\n    }\n\n    FileInputStream getFileInputStream(File file)\n        throws FileNotFoundException\n    {\n        return new FileInputStream(file);\n    }\n\n    InputStream getResourceAsStream(ClassLoader cl, String name) {\n        InputStream ris;\n        if (cl == null) {\n            ris = ClassLoader.getSystemResourceAsStream(name);\n        } else {\n            ris = cl.getResourceAsStream(name);\n        }\n        return ris;\n    }\n    \n    boolean getFileExists(File f) {\n        return f.exists();\n    }\n    \n    long getLastModified(File f) {\n        return f.lastModified();", "functions": [{"function_name": "getInstance", "code": "    static SecuritySupport getInstance() {\n\treturn (SecuritySupport)securitySupport;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(ClassLoader cl) {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(String propName) {\n        return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(File file)\n        throws FileNotFoundException\n    {\n        return new FileInputStream(file);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(ClassLoader cl, String name) {\n        InputStream ris;\n        if (cl == null) {\n            ris = ClassLoader.getSystemResourceAsStream(name);\n        } else {\n            ris = cl.getResourceAsStream(name);\n        }\n        return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [2, 8], [2, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 2], [9, 2], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(File f) {\n        return f.exists();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLastModified", "code": "    long getLastModified(File f) {\n        return f.lastModified();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "log4j-1.1-4900", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/helpers/BoundedFIFO.java", "language": "java", "name": "org.apache.log4j.helpers.BoundedFIFO", "code": "public class BoundedFIFO {\n  \n  LoggingEvent[] buf;\n  int numElements = 0;\n  int first = 0;\n  int next = 0;\n  int maxSize;\n\n  /**\n     Instantiate a new BoundedFIFO with a maximum size passed as argument.\n   */\n  public\n  BoundedFIFO(int maxSize) {\n   if(maxSize < 1) {\n      throw new IllegalArgumentException(\"The maxSize argument (\"+maxSize+\n\t\t\t    \") is not a positive integer.\");\n    }\n    this.maxSize = maxSize;\n    buf = new LoggingEvent[maxSize];\n  }\n  \n  /**\n     Get the first element in the buffer. Returns <code>null</code> if\n     there are no elements in the buffer.  */\n  public\n  LoggingEvent get() {\n    if(numElements == 0) \n      return null;\n    \n    LoggingEvent r = buf[first];\n    if(++first == maxSize) {\n\tfirst = 0;\n    }\n    numElements--;    \n    return r;    \n  }\n\n  /**\n     Place a {@link LoggingEvent} in the buffer. If the buffer is full\n     then the event is <b>silently dropped</b>. It is the caller's\n     responsability to make sure that the buffer has free space.  */\n  public \n  void put(LoggingEvent o) {\n    if(numElements != maxSize) {      \n      buf[next] = o;    \n      if(++next == maxSize) {\n\tnext = 0;\n      }\n      numElements++;\n    }\n  }\n\n  /**\n     Get the maximum size of the buffer.\n   */\n  public \n  int getMaxSize() {\n    return maxSize;\n  }\n\n  /**\n     Return <code>true</code> if the buffer is full, i.e. of the\n     number of elements in the buffer equals the buffer size. */\n  public \n  boolean isFull() {\n    return numElements == maxSize;\n  }\n\n  /**\n     Get the number of elements in the buffer. This number is\n     guaranteed to be in the range 0 to <code>maxSize</code>\n     (inclusive).\n  */\n  public\n  int length() {\n    return numElements;\n  } \n\n\n  int min(int a, int b) {\n    return a < b ? a : b;\n  }\n\n\n  /**\n     Resize the buffer to a new size. If the new size is smaller than\n     the old size events might be lost.\n     \n     @since 1.1\n   */\n  synchronized\n  public \n  void resize(int newSize) {\n    if(newSize == maxSize) \n      return;\n\n\n   LoggingEvent[] tmp = new LoggingEvent[newSize];\n\n   // we should not copy beyond the buf array\n   int len1 = maxSize - first;\n\n   // we should not copy beyond the tmp array\n   len1 = min(len1, newSize);\n\n   // er.. how much do we actually need to copy?\n   // We should not copy more than the actual number of elements.\n   len1 = min(len1, numElements);\n\n   // Copy from buf starting a first, to tmp, starting at position 0, len1 elements.\n   System.arraycopy(buf, first, tmp, 0, len1);\n   \n   // Are there any uncopied elements and is there still space in the new array?\n   int len2 = 0;\n   if((len1 < numElements) && (len1 < newSize)) {\n     len2 = numElements - len1;\n     len2 = min(len2, newSize - len1);\n     System.arraycopy(buf, 0, tmp, len1, len2);\n   }\n   \n   this.buf = tmp;\n   this.maxSize = newSize;    \n   this.first=0;   \n   this.numElements = len1+len2;\n   this.next = this.numElements;\n   if(this.next == this.maxSize) // this should never happen, but again, it just might.\n     this.next = 0;\n  }\n\n  \n  /**\n     Returns <code>true</code> if there is just one element in the\n     buffer. In other words, if there were no elements before the last\n     {@link #put} operation completed.  */\n  public\n  boolean wasEmpty() {\n    return numElements == 1;\n  }\n\n  /**\n      Returns <code>true</code> if the number of elements in the\n      buffer plus 1 equals the maximum buffer size, returns\n      <code>false</code> otherwise. */\n  public\n  boolean wasFull() {\n    return (numElements+1 == maxSize);", "functions": [{"function_name": "get", "code": "  LoggingEvent get() {\n    if(numElements == 0) \n      return null;\n    \n    LoggingEvent r = buf[first];\n    if(++first == maxSize) {\n\tfirst = 0;\n    }\n    numElements--;    \n    return r;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [4, 7], [6, 8], [7, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [7, 4], [8, 6], [9, 7], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "put", "code": "  void put(LoggingEvent o) {\n    if(numElements != maxSize) {      \n      buf[next] = o;    \n      if(++next == maxSize) {\n\tnext = 0;\n      }\n      numElements++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 1], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getMaxSize", "code": "  int getMaxSize() {\n    return maxSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isFull", "code": "  boolean isFull() {\n    return numElements == maxSize;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "length", "code": "  int length() {\n    return numElements;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "min", "code": "  int min(int a, int b) {\n    return a < b ? a : b;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resize", "code": "  void resize(int newSize) {\n    if(newSize == maxSize) \n      return;\n\n\n   LoggingEvent[] tmp = new LoggingEvent[newSize];\n\n   // we should not copy beyond the buf array\n   int len1 = maxSize - first;\n\n   // we should not copy beyond the tmp array\n   len1 = min(len1, newSize);\n\n   // er.. how much do we actually need to copy?\n   // We should not copy more than the actual number of elements.\n   len1 = min(len1, numElements);\n\n   // Copy from buf starting a first, to tmp, starting at position 0, len1 elements.\n   System.arraycopy(buf, first, tmp, 0, len1);\n   \n   // Are there any uncopied elements and is there still space in the new array?\n   int len2 = 0;\n   if((len1 < numElements) && (len1 < newSize)) {\n     len2 = numElements - len1;\n     len2 = min(len2, newSize - len1);\n     System.arraycopy(buf, 0, tmp, len1, len2);\n   }\n   \n   this.buf = tmp;\n   this.maxSize = newSize;    \n   this.first=0;   \n   this.numElements = len1+len2;\n   this.next = this.numElements;\n   if(this.next == this.maxSize) // this should never happen, but again, it just might.\n     this.next = 0;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [0, 15], [0, 16], [0, 17], [6, 18], [6, 19], [1, 20], [10, 21], [11, 22], [14, 23], [14, 24], [3, 25], [15, 26], [16, 27], [17, 28], [4, 29], [20, 30], [2, 31], [2, 32], [2, 33], [31, 34], [32, 35], [33, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 0], [16, 0], [17, 0], [18, 6], [19, 6], [20, 1], [21, 10], [22, 11], [23, 14], [24, 14], [25, 3], [26, 15], [27, 16], [28, 17], [29, 4], [30, 20], [31, 2], [32, 2], [33, 2], [34, 31], [35, 32], [36, 33], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "wasEmpty", "code": "  boolean wasEmpty() {\n    return numElements == 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "wasFull", "code": "  boolean wasFull() {\n    return (numElements+1 == maxSize);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "BoundedFIFO", "code": "  BoundedFIFO(int maxSize) {\n   if(maxSize < 1) {\n      throw new IllegalArgumentException(\"The maxSize argument (\"+maxSize+\n\t\t\t    \") is not a positive integer.\");\n    }\n    this.maxSize = maxSize;\n    buf = new LoggingEvent[maxSize];", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "xalan-2.6-7869", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/dom/SortSettings.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.SortSettings", "code": "final class SortSettings {\n    /**\n     * A reference to the translet object for the transformation.\n     */\n    private AbstractTranslet _translet;\n\n    /**\n     * The sort order (ascending or descending) for each level of\n     * <code>xsl:sort</code>\n     */\n    private int[] _sortOrders;\n\n    /**\n     * The type of comparison (text or number) for each level of\n     * <code>xsl:sort</code>\n     */\n    private int[] _types;\n\n    /**\n     * The Locale for each level of <code>xsl:sort</code>, based on any lang\n     * attribute or the default Locale.\n     */\n    private Locale[] _locales;\n\n    /**\n     * The Collator object in effect for each level of <code>xsl:sort</code>\n     */\n    private Collator[] _collators;\n\n    /**\n     * Case ordering for each level of <code>xsl:sort</code>.\n     */\n    private String[] _caseOrders;\n\n    /**\n     * Create an instance of <code>SortSettings</code>.\n     * @param translet {@link org.apache.xalan.xsltc.runtime.AbstractTranslet}\n     *                 object for the transformation\n     * @param sortOrders an array specifying the sort order for each sort level\n     * @param types an array specifying the type of comparison for each sort\n     *              level (text or number)\n     * @param locales an array specifying the Locale for each sort level\n     * @param collators an array specifying the Collation in effect for each\n     *                  sort level\n     * @param caseOrders an array specifying whether upper-case, lower-case\n     *                   or neither is to take precedence for each sort level.\n     *                   The value of each element is equal to one of\n     *                   <code>\"upper-first\", \"lower-first\", or \"\"</code>.\n     */\n    SortSettings(AbstractTranslet translet, int[] sortOrders, int[] types,\n                 Locale[] locales, Collator[] collators, String[] caseOrders) {\n        _translet = translet;\n        _sortOrders = sortOrders;\n        _types = types;\n        _locales = locales;\n        _collators = collators;\n        _caseOrders = caseOrders;\n    }\n\n    /**\n     * @return A reference to the translet object for the transformation.\n     */\n    AbstractTranslet getTranslet() {\n        return _translet;\n    }\n\n    /**\n     * @return An array containing the sort order (ascending or descending)\n     *         for each level of <code>xsl:sort</code>\n     */\n    int[] getSortOrders() {\n        return _sortOrders;\n    }\n\n    /**\n     * @return An array containing the type of comparison (text or number)\n     *         to perform for each level of <code>xsl:sort</code>\n     */\n    int[] getTypes() {\n        return _types;\n    }\n\n    /**\n     * @return An array containing the Locale object in effect for each level\n     *         of <code>xsl:sort</code>\n     */\n    Locale[] getLocales() {\n        return _locales;\n    }\n\n    /**\n     * @return An array containing the Collator object in effect for each level\n     *         of <code>xsl:sort</code>\n     */\n    Collator[] getCollators() {\n        return _collators;\n    }\n\n    /**\n     * @return An array specifying the case ordering for each level of\n     *         <code>xsl:sort</code>.\n     */\n    String[] getCaseOrders() {\n        return _caseOrders;", "functions": [{"function_name": "getTranslet", "code": "    AbstractTranslet getTranslet() {\n        return _translet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSortOrders", "code": "    int[] getSortOrders() {\n        return _sortOrders;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypes", "code": "    int[] getTypes() {\n        return _types;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocales", "code": "    Locale[] getLocales() {\n        return _locales;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCollators", "code": "    Collator[] getCollators() {\n        return _collators;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCaseOrders", "code": "    String[] getCaseOrders() {\n        return _caseOrders;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SortSettings", "code": "    SortSettings(AbstractTranslet translet, int[] sortOrders, int[] types,\n                 Locale[] locales, Collator[] collators, String[] caseOrders) {\n        _translet = translet;\n        _sortOrders = sortOrders;\n        _types = types;\n        _locales = locales;\n        _collators = collators;\n        _caseOrders = caseOrders;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "poi-1.5-5322", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/formula/MultiplyPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.MultiplyPtg", "code": "public class MultiplyPtg\n    extends Ptg\n    implements OperationPtg\n{\n    public final static int  SIZE = 1;\n    public final static byte sid  = 0x05;\n\n    /** Creates new AddPtg */\n\n    public MultiplyPtg()\n    {\n    }\n\n    public MultiplyPtg(byte [] data, int offset)\n    {\n\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public int getType()\n    {\n        return TYPE_BINARY;\n    }\n\n    public int getNumberOfOperands()\n    {\n        return 2;\n    }\n\n    public String toFormulaString()\n    {\n        return \"*\";\n    }\n\n    public String toFormulaString(Ptg [] operands)\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(operands[ 0 ].toFormulaString());\n        buffer.append(\"*\");\n        buffer.append(operands[ 1 ].toFormulaString());\n        return buffer.toString();", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return TYPE_BINARY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfOperands", "code": "    public int getNumberOfOperands()\n    {\n        return 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString()\n    {\n        return \"*\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Ptg [] operands)\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(operands[ 0 ].toFormulaString());\n        buffer.append(\"*\");\n        buffer.append(operands[ 1 ].toFormulaString());\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [6, 8], [2, 9], [5, 10], [7, 11], [5, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 6], [9, 2], [10, 5], [11, 7], [12, 5], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "MultiplyPtg", "code": "    public MultiplyPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "MultiplyPtg", "code": "    public MultiplyPtg(byte [] data, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.5-7318", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/transformer/NumeratorFormatter.java", "language": "java", "name": "org.apache.xalan.transformer.NumeratorFormatter", "code": "class NumeratorFormatter\n{\n\n  /** The owning xsl:number element.          */\n  protected Element m_xslNumberElement;\n\n  /** An instance of a Tokenizer          */\n  NumberFormatStringTokenizer m_formatTokenizer;\n\n  /** Locale we need to format in          */\n  Locale m_locale;\n\n  /** An instance of a NumberFormat         */\n  java.text.NumberFormat m_formatter;\n\n  /** An instance of a transformer          */\n  TransformerImpl m_processor;\n\n  /**\n   * Table to help in converting decimals to roman numerals.\n   * @see org.apache.xalan.transformer.DecimalToRoman\n   */\n  private final static DecimalToRoman m_romanConvertTable[] = {\n    new DecimalToRoman(1000, \"M\", 900, \"CM\"),\n    new DecimalToRoman(500, \"D\", 400, \"CD\"),\n    new DecimalToRoman(100L, \"C\", 90L, \"XC\"),\n    new DecimalToRoman(50L, \"L\", 40L, \"XL\"),\n    new DecimalToRoman(10L, \"X\", 9L, \"IX\"),\n    new DecimalToRoman(5L, \"V\", 4L, \"IV\"),\n    new DecimalToRoman(1L, \"I\", 1L, \"I\") };\n\n \n  /**\n   * Construct a NumeratorFormatter using an element\n   * that contains XSL number conversion attributes -\n   * format, letter-value, xml:lang, digit-group-sep,\n   * n-digits-per-group, and sequence-src.\n   *\n   * @param xslNumberElement The given xsl:number element\n   * @param processor a non-null transformer instance\n   */\n  NumeratorFormatter(Element xslNumberElement, TransformerImpl processor)\n  {\n    m_xslNumberElement = xslNumberElement;\n    m_processor = processor;\n  }\n  /**\n   * Convert a long integer into alphabetic counting, in other words\n   * count using the sequence A B C ... Z AA AB AC.... etc.\n   * \n   * @param val Value to convert -- must be greater than zero.\n   * @param table a table containing one character for each digit in the radix\n   * @return String representing alpha count of number.\n   * @see org.apache.xalan.transformer.DecimalToRoman\n   *\n   * Note that the radix of the conversion is inferred from the size\n   * of the table.\n   */\n  protected String int2alphaCount(int val, char[] table)\n  {\n\n    int radix = table.length;\n\n    char buf[] = new char[100];\n\n\n\n    int correction = 0;\n\n    do\n    {\n\n      correction =\n        ((lookupIndex == 0) || (correction != 0 && lookupIndex == radix - 1))\n        ? (radix - 1) : 0;\n\n      lookupIndex = (val + correction) % radix;\n\n      val = (val / radix);\n\n      if (lookupIndex == 0 && val == 0)\n        break;\n\n      buf[charPos--] = table[lookupIndex];\n    }\n    while (val > 0);\n\n    return new String(buf, charPos + 1, (buf.length - charPos - 1));\n  }\n\n  /**\n   * Convert a long integer into roman numerals.\n   * @param val Value to convert.\n   * @param prefixesAreOK true_ to enable prefix notation (e.g. 4 = \"IV\"),\n   * false_ to disable prefix notation (e.g. 4 = \"IIII\").\n   * @return Roman numeral string.\n   * @see DecimalToRoman\n   * @see m_romanConvertTable\n   */\n  String long2roman(long val, boolean prefixesAreOK)\n  {\n\n    if (val <= 0)\n    {\n      return \"#E(\" + val + \")\";\n    }\n\n    String roman = \"\";\n    int place = 0;\n\n    if (val <= 3999L)\n    {\n      do\n      {\n        while (val >= m_romanConvertTable[place].m_postValue)\n        {\n          roman += m_romanConvertTable[place].m_postLetter;\n          val -= m_romanConvertTable[place].m_postValue;\n        }\n\n        if (prefixesAreOK)\n        {\n          if (val >= m_romanConvertTable[place].m_preValue)\n          {\n            roman += m_romanConvertTable[place].m_preLetter;\n            val -= m_romanConvertTable[place].m_preValue;\n          }\n        }\n\n        place++;\n      }\n      while (val > 0);\n    }\n    else\n    {\n      roman = \"#error\";\n    }\n\n    return roman;\n  }\n  /**\n   * This class returns tokens using non-alphanumberic\n   * characters as delimiters.\n   */\n  class NumberFormatStringTokenizer\n  {\n\n    /** Field holding the current position in the string      */\n    private int currentPosition;\n\n    /** The total length of the string          */\n    private int maxPosition;\n\n    /** The string to tokenize          */\n    private String str;\n\n    /**\n     * Construct a NumberFormatStringTokenizer.\n     *\n     * @param str The string to tokenize\n     */\n    NumberFormatStringTokenizer(String str)\n    {\n      this.str = str;\n      maxPosition = str.length();\n    }\n    \n    /**\n     * Reset tokenizer so that nextToken() starts from the beginning. \n     *\n     */\n    void reset()\n    {\n      currentPosition = 0;\n    }\n\n    /**\n     * Returns the next token from this string tokenizer.\n     *\n     * @return     the next token from this string tokenizer.\n     * @throws  NoSuchElementException  if there are no more tokens in this\n     *               tokenizer's string.\n     */\n    String nextToken()\n    {\n\n      if (currentPosition >= maxPosition)\n      {\n        throw new NoSuchElementException();\n      }\n\n      int start = currentPosition;\n\n      while ((currentPosition < maxPosition)\n             && Character.isLetterOrDigit(str.charAt(currentPosition)))\n      {\n        currentPosition++;\n      }\n\n      if ((start == currentPosition)\n              && (!Character.isLetterOrDigit(str.charAt(currentPosition))))\n      {\n        currentPosition++;\n      }\n\n      return str.substring(start, currentPosition);\n    }\n\n    /**\n     * Tells if <code>nextToken</code> will throw an exception      * if it is called.\n     *\n     * @return true if <code>nextToken</code> can be called      * without throwing an exception.\n     */\n    boolean hasMoreTokens()\n    {\n      return (currentPosition >= maxPosition) ? false : true;\n    }\n\n    /**\n     * Calculates the number of times that this tokenizer's\n     * <code>nextToken</code> method can be called before it generates an\n     * exception.\n     *\n     * @return  the number of tokens remaining in the string using the current\n     *          delimiter set.\n     * @see     java.util.StringTokenizer#nextToken()\n     */\n    int countTokens()\n    {\n\n      int count = 0;\n      int currpos = currentPosition;\n\n      while (currpos < maxPosition)\n      {\n        int start = currpos;\n\n        while ((currpos < maxPosition)\n               && Character.isLetterOrDigit(str.charAt(currpos)))\n        {\n          currpos++;\n        }\n\n        if ((start == currpos)\n                && (Character.isLetterOrDigit(str.charAt(currpos)) == false))\n        {\n          currpos++;\n        }\n\n        count++;\n      }\n\n      return count;", "functions": [{"function_name": "int2alphaCount", "code": "  protected String int2alphaCount(int val, char[] table)\n  {\n\n    int radix = table.length;\n\n    char buf[] = new char[100];\n\n\n\n    int correction = 0;\n\n    do\n    {\n\n      correction =\n        ((lookupIndex == 0) || (correction != 0 && lookupIndex == radix - 1))\n        ? (radix - 1) : 0;\n\n      lookupIndex = (val + correction) % radix;\n\n      val = (val / radix);\n\n      if (lookupIndex == 0 && val == 0)\n        break;\n\n      buf[charPos--] = table[lookupIndex];\n    }\n    while (val > 0);\n\n    return new String(buf, charPos + 1, (buf.length - charPos - 1));", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [8, 10], [8, 11], [2, 12], [9, 13], [3, 14], [10, 15], [10, 16], [11, 17], [2, 18], [12, 19], [12, 20], [2, 21], [2, 22], [2, 23], [4, 24], [20, 25], [20, 26], [21, 27], [22, 28], [23, 29], [25, 30], [26, 31], [28, 32], [29, 33], [29, 34], [29, 35], [34, 36], [35, 37], [35, 38], [37, 39], [37, 40], [38, 41], [39, 42], [40, 43], [42, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 8], [11, 8], [12, 2], [13, 9], [14, 3], [15, 10], [16, 10], [17, 11], [18, 2], [19, 12], [20, 12], [21, 2], [22, 2], [23, 2], [24, 4], [25, 20], [26, 20], [27, 21], [28, 22], [29, 23], [30, 25], [31, 26], [32, 28], [33, 29], [34, 29], [35, 29], [36, 34], [37, 35], [38, 35], [39, 37], [40, 37], [41, 38], [42, 39], [43, 40], [44, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "long2roman", "code": "  String long2roman(long val, boolean prefixesAreOK)\n  {\n\n    if (val <= 0)\n    {\n      return \"#E(\" + val + \")\";\n    }\n\n    String roman = \"\";\n    int place = 0;\n\n    if (val <= 3999L)\n    {\n      do\n      {\n        while (val >= m_romanConvertTable[place].m_postValue)\n        {\n          roman += m_romanConvertTable[place].m_postLetter;\n          val -= m_romanConvertTable[place].m_postValue;\n        }\n\n        if (prefixesAreOK)\n        {\n          if (val >= m_romanConvertTable[place].m_preValue)\n          {\n            roman += m_romanConvertTable[place].m_preLetter;\n            val -= m_romanConvertTable[place].m_preValue;\n          }\n        }\n\n        place++;\n      }\n      while (val > 0);\n    }\n    else\n    {\n      roman = \"#error\";\n    }\n\n    return roman;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [5, 9], [2, 10], [8, 11], [3, 12], [4, 13], [5, 14], [9, 15], [2, 16], [10, 17], [14, 18], [16, 19], [10, 20], [10, 21], [17, 22], [18, 23], [18, 24], [21, 25], [24, 26], [20, 27], [27, 28], [21, 29], [21, 30], [27, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 5], [10, 2], [11, 8], [12, 3], [13, 4], [14, 5], [15, 9], [16, 2], [17, 10], [18, 14], [19, 16], [20, 10], [21, 10], [22, 17], [23, 18], [24, 18], [25, 21], [26, 24], [27, 20], [28, 27], [29, 21], [30, 21], [31, 27], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "NumeratorFormatter", "code": "  NumeratorFormatter(Element xslNumberElement, TransformerImpl processor)\n  {\n    m_xslNumberElement = xslNumberElement;\n    m_processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.4-2184", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/converter/jaxb/FallbackTypeConverter.java", "language": "java", "name": "org.apache.camel.converter.jaxb.FallbackTypeConverter", "code": "public class FallbackTypeConverter implements TypeConverter, TypeConverterAware {\n    private static final transient Log LOG = LogFactory.getLog(FallbackTypeConverter.class);\n    private TypeConverter parentTypeConverter;\n    private boolean prettyPrint = true;\n\n    public boolean isPrettyPrint() {\n        return prettyPrint;\n    }\n\n    public void setPrettyPrint(boolean prettyPrint) {\n        this.prettyPrint = prettyPrint;\n    }\n\n    public void setTypeConverter(TypeConverter parentTypeConverter) {\n        this.parentTypeConverter = parentTypeConverter;\n    }\n\n    public <T> T convertTo(Class<T> type, Object value) {\n        try {\n            if (isJaxbType(type)) {\n                return unmarshall(type, value);\n            }\n            if (value != null) {\n                if (isJaxbType(value.getClass())) {\n                    return marshall(type, value);\n                }\n            }\n            return null;\n        } catch (JAXBException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    protected <T> boolean isJaxbType(Class<T> type) {\n        XmlRootElement element = type.getAnnotation(XmlRootElement.class);\n        boolean jaxbType = element != null;\n        return jaxbType;\n    }\n\n    /**\n     * Lets try parse via JAXB\n     */\n    protected <T> T unmarshall(Class<T> type, Object value) throws JAXBException {\n        JAXBContext context = createContext(type);\n        Unmarshaller unmarshaller = context.createUnmarshaller();\n\n        if (parentTypeConverter != null) {\n            InputStream inputStream = parentTypeConverter.convertTo(InputStream.class, value);\n            if (inputStream != null) {\n                Object unmarshalled = unmarshaller.unmarshal(inputStream);\n                return type.cast(unmarshalled);\n            }\n            Reader reader = parentTypeConverter.convertTo(Reader.class, value);\n            if (reader != null) {\n                Object unmarshalled = unmarshaller.unmarshal(reader);\n                return type.cast(unmarshalled);\n            }\n            Source source = parentTypeConverter.convertTo(Source.class, value);\n            if (source != null) {\n                Object unmarshalled = unmarshaller.unmarshal(source);\n                return type.cast(unmarshalled);\n            }\n        }\n        if (value instanceof String) {\n            value = new StringReader((String) value);\n        }\n        if (value instanceof InputStream) {\n            Object unmarshalled = unmarshaller.unmarshal((InputStream) value);\n            return type.cast(unmarshalled);\n        }\n        if (value instanceof Reader) {\n            Object unmarshalled = unmarshaller.unmarshal((Reader) value);\n            return type.cast(unmarshalled);\n        }\n        return null;\n    }\n\n    protected <T> T marshall(Class<T> type, Object value) throws JAXBException {\n        if (parentTypeConverter != null) {\n            JAXBContext context = createContext(value.getClass());\n            JAXBSource source = new JAXBSource(context, value);\n            T answer = parentTypeConverter.convertTo(type, source);\n            if (answer == null) {\n                StringWriter buffer = new StringWriter();\n                Marshaller marshaller = context.createMarshaller();\n                marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, isPrettyPrint() ? Boolean.TRUE : Boolean.FALSE);\n                marshaller.marshal(value, buffer);\n                return parentTypeConverter.convertTo(type, buffer.toString());\n            }\n            return answer;\n        }\n\n        return null;\n    }\n\n    protected <T> JAXBContext createContext(Class<T> type) throws JAXBException {\n        JAXBContext context = JAXBContext.newInstance(type);\n        return context;", "functions": [{"function_name": "isPrettyPrint", "code": "    public boolean isPrettyPrint() {\n        return prettyPrint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPrettyPrint", "code": "    public void setPrettyPrint(boolean prettyPrint) {\n        this.prettyPrint = prettyPrint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTypeConverter", "code": "    public void setTypeConverter(TypeConverter parentTypeConverter) {\n        this.parentTypeConverter = parentTypeConverter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "convertTo", "code": "    public <T> T convertTo(Class<T> type, Object value) {\n        try {\n            if (isJaxbType(type)) {\n                return unmarshall(type, value);\n            }\n            if (value != null) {\n                if (isJaxbType(value.getClass())) {\n                    return marshall(type, value);\n                }\n            }\n            return null;\n        } catch (JAXBException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [7, 11], [8, 12], [6, 13], [10, 14], [7, 15], [13, 16], [15, 17], [13, 18], [16, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 7], [12, 8], [13, 6], [14, 10], [15, 7], [16, 13], [17, 15], [18, 13], [19, 16], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "isJaxbType", "code": "    protected <T> boolean isJaxbType(Class<T> type) {\n        XmlRootElement element = type.getAnnotation(XmlRootElement.class);\n        boolean jaxbType = element != null;\n        return jaxbType;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "unmarshall", "code": "    protected <T> T unmarshall(Class<T> type, Object value) throws JAXBException {\n        JAXBContext context = createContext(type);\n        Unmarshaller unmarshaller = context.createUnmarshaller();\n\n        if (parentTypeConverter != null) {\n            InputStream inputStream = parentTypeConverter.convertTo(InputStream.class, value);\n            if (inputStream != null) {\n                Object unmarshalled = unmarshaller.unmarshal(inputStream);\n                return type.cast(unmarshalled);\n            }\n            Reader reader = parentTypeConverter.convertTo(Reader.class, value);\n            if (reader != null) {\n                Object unmarshalled = unmarshaller.unmarshal(reader);\n                return type.cast(unmarshalled);\n            }\n            Source source = parentTypeConverter.convertTo(Source.class, value);\n            if (source != null) {\n                Object unmarshalled = unmarshaller.unmarshal(source);\n                return type.cast(unmarshalled);\n            }\n        }\n        if (value instanceof String) {\n            value = new StringReader((String) value);\n        }\n        if (value instanceof InputStream) {\n            Object unmarshalled = unmarshaller.unmarshal((InputStream) value);\n            return type.cast(unmarshalled);\n        }\n        if (value instanceof Reader) {\n            Object unmarshalled = unmarshaller.unmarshal((Reader) value);\n            return type.cast(unmarshalled);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [4, 13], [5, 14], [2, 15], [2, 16], [3, 17], [3, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [14, 25], [6, 26], [7, 27], [15, 28], [17, 29], [4, 30], [19, 31], [21, 32], [23, 33], [16, 34], [18, 35], [30, 36], [19, 37], [19, 38], [31, 39], [20, 40], [21, 41], [21, 42], [32, 43], [22, 44], [23, 45], [23, 46], [33, 47], [24, 48], [37, 49], [41, 50], [45, 51], [38, 52], [42, 53], [46, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 4], [14, 5], [15, 2], [16, 2], [17, 3], [18, 3], [19, 5], [20, 5], [21, 5], [22, 5], [23, 5], [24, 5], [25, 14], [26, 6], [27, 7], [28, 15], [29, 17], [30, 4], [31, 19], [32, 21], [33, 23], [34, 16], [35, 18], [36, 30], [37, 19], [38, 19], [39, 31], [40, 20], [41, 21], [42, 21], [43, 32], [44, 22], [45, 23], [46, 23], [47, 33], [48, 24], [49, 37], [50, 41], [51, 45], [52, 38], [53, 42], [54, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "marshall", "code": "    protected <T> T marshall(Class<T> type, Object value) throws JAXBException {\n        if (parentTypeConverter != null) {\n            JAXBContext context = createContext(value.getClass());\n            JAXBSource source = new JAXBSource(context, value);\n            T answer = parentTypeConverter.convertTo(type, source);\n            if (answer == null) {\n                StringWriter buffer = new StringWriter();\n                Marshaller marshaller = context.createMarshaller();\n                marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, isPrettyPrint() ? Boolean.TRUE : Boolean.FALSE);\n                marshaller.marshal(value, buffer);\n                return parentTypeConverter.convertTo(type, buffer.toString());\n            }\n            return answer;\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [8, 13], [8, 14], [8, 15], [8, 16], [13, 17], [9, 18], [10, 19], [11, 20], [14, 21], [8, 22], [8, 23], [20, 24], [21, 25], [23, 26], [15, 27], [16, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 8], [14, 8], [15, 8], [16, 8], [17, 13], [18, 9], [19, 10], [20, 11], [21, 14], [22, 8], [23, 8], [24, 20], [25, 21], [26, 23], [27, 15], [28, 16], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "createContext", "code": "    protected <T> JAXBContext createContext(Class<T> type) throws JAXBException {\n        JAXBContext context = JAXBContext.newInstance(type);\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.2-1641", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/spring/remoting/CamelProxyFactoryBean.java", "language": "java", "name": "org.apache.camel.spring.remoting.CamelProxyFactoryBean", "code": "public class CamelProxyFactoryBean extends UrlBasedRemoteAccessor implements FactoryBean, CamelContextAware {\n    private CamelContext camelContext;\n    private Endpoint endpoint;\n    private Object serviceProxy;\n\n    @Override\n    public void afterPropertiesSet() {\n        super.afterPropertiesSet();\n        try {\n            if (endpoint == null) {\n                if (getServiceUrl() == null || camelContext == null) {\n                    throw new IllegalArgumentException(\"If endpoint is not specified, the serviceUrl and camelContext must be specified.\");\n                }\n\n                endpoint = camelContext.getEndpoint(getServiceUrl());\n                if (endpoint == null) {\n                    throw new IllegalArgumentException(\"Could not resolve endpoint: \" + getServiceUrl());\n                }\n            }\n\n            this.serviceProxy = ProxyHelper.createProxy(endpoint, getServiceInterface());\n        } catch (Exception e) {\n            throw new IllegalArgumentException(e);\n        }\n    }\n\n    public Class getServiceInterface() {\n        return super.getServiceInterface();\n    }\n\n    public String getServiceUrl() {\n        return super.getServiceUrl();\n    }\n\n    public Object getObject() throws Exception {\n        return serviceProxy;\n    }\n\n    public Class getObjectType() {\n        return getServiceInterface();\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public Endpoint getEndpoint() {\n        return endpoint;\n    }\n\n    public void setEndpoint(Endpoint endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    public CamelContext getCamelContext() {\n        return camelContext;\n    }\n\n    public void setCamelContext(CamelContext camelContext) {\n        this.camelContext = camelContext;", "functions": [{"function_name": "afterPropertiesSet", "code": "    @Override\n    public void afterPropertiesSet() {\n        super.afterPropertiesSet();\n        try {\n            if (endpoint == null) {\n                if (getServiceUrl() == null || camelContext == null) {\n                    throw new IllegalArgumentException(\"If endpoint is not specified, the serviceUrl and camelContext must be specified.\");\n                }\n\n                endpoint = camelContext.getEndpoint(getServiceUrl());\n                if (endpoint == null) {\n                    throw new IllegalArgumentException(\"Could not resolve endpoint: \" + getServiceUrl());\n                }\n            }\n\n            this.serviceProxy = ProxyHelper.createProxy(endpoint, getServiceInterface());\n        } catch (Exception e) {\n            throw new IllegalArgumentException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "THROW_RAISE", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [3, 6], [4, 7], [5, 8], [3, 9], [3, 10], [6, 11], [8, 12], [9, 13], [3, 14], [10, 15], [9, 16], [13, 17], [14, 18], [10, 19], [15, 20], [15, 21], [16, 22], [18, 23], [19, 24], [20, 25], [21, 26], [21, 27], [22, 28], [24, 29], [28, 30], [28, 31], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 3], [7, 4], [8, 5], [9, 3], [10, 3], [11, 6], [12, 8], [13, 9], [14, 3], [15, 10], [16, 9], [17, 13], [18, 14], [19, 10], [20, 15], [21, 15], [22, 16], [23, 18], [24, 19], [25, 20], [26, 21], [27, 21], [28, 22], [29, 24], [30, 28], [31, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getServiceInterface", "code": "    public Class getServiceInterface() {\n        return super.getServiceInterface();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getServiceUrl", "code": "    public String getServiceUrl() {\n        return super.getServiceUrl();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getObject", "code": "    public Object getObject() throws Exception {\n        return serviceProxy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getObjectType", "code": "    public Class getObjectType() {\n        return getServiceInterface();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndpoint", "code": "    public Endpoint getEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEndpoint", "code": "    public void setEndpoint(Endpoint endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCamelContext", "code": "    public CamelContext getCamelContext() {\n        return camelContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCamelContext", "code": "    public void setCamelContext(CamelContext camelContext) {\n        this.camelContext = camelContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-2745", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/impl/DefaultCamelContext.java", "language": "java", "name": "org.apache.camel.impl.DefaultCamelContext", "code": "public class DefaultCamelContext extends ServiceSupport implements CamelContext, Service {\n    private static final transient Log LOG = LogFactory.getLog(DefaultCamelContext.class);\n    private static final String NAME_PREFIX = \"camel-\";\n    private static int nameSuffix;\n\n    private String name;\n    private final Map<String, Endpoint> endpoints = new HashMap<String, Endpoint>();\n    private final Map<String, Component> components = new HashMap<String, Component>();\n    private List<Route> routes;\n    private List<Service> servicesToClose = new ArrayList<Service>();\n    private TypeConverter typeConverter;\n    private ExchangeConverter exchangeConverter;\n    private Injector injector;\n    private ComponentResolver componentResolver;\n    private boolean autoCreateComponents = true;\n    private LanguageResolver languageResolver = new DefaultLanguageResolver();\n    private Registry registry;\n    private LifecycleStrategy lifecycleStrategy;\n    private List<RouteType> routeDefinitions = new ArrayList<RouteType>();\n    private List<InterceptStrategy> interceptStrategies = new ArrayList<InterceptStrategy>();\n    private Boolean trace;\n    private Long delay;\n    private ErrorHandlerBuilder errorHandlerBuilder;\n    private Map<String, DataFormatType> dataFormats = new HashMap<String, DataFormatType>();\n    private Class<? extends FactoryFinder> factoryFinderClass = FactoryFinder.class;\n\n    public DefaultCamelContext() {\n        name = NAME_PREFIX + ++nameSuffix;\n\n        if (Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {\n            LOG.info(\"JMX is disabled. Using DefaultLifecycleStrategy.\");\n            lifecycleStrategy = new DefaultLifecycleStrategy();\n        } else {\n            try {\n                LOG.info(\"JMX enabled. Using InstrumentationLifecycleStrategy.\");\n                lifecycleStrategy = new InstrumentationLifecycleStrategy();\n            } catch (NoClassDefFoundError e) {\n                LOG.warn(\"Could not find needed classes for JMX lifecycle strategy.\"\n                    + \" Needed class is in spring-context.jar using Spring 2.5 or newer (\"\n                    + \" spring-jmx.jar using Spring 2.0.x).\"\n                    + \" NoClassDefFoundError: \" + e.getMessage());\n            } catch (Exception e) {\n                LOG.warn(\"Could not create JMX lifecycle strategy, caused by: \" + e.getMessage());\n            }\n            if (lifecycleStrategy == null) {\n                LOG.warn(\"Not possible to use JMX lifecycle strategy. Using DefaultLifecycleStrategy instead.\");\n                lifecycleStrategy = new DefaultLifecycleStrategy();\n            }\n        }\n    }\n\n    /**\n     * Creates the {@link CamelContext} using the given JNDI context as the\n     * registry\n     */\n    public DefaultCamelContext(Context jndiContext) {\n        this();\n        setJndiContext(jndiContext);\n    }\n\n    /**\n     * Creates the {@link CamelContext} using the given registry\n     */\n    public DefaultCamelContext(Registry registry) {\n        this();\n        this.registry = registry;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    /**\n     * Sets the name of the this context.\n     */\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public void addComponent(String componentName, final Component component) {\n        if (component == null) {\n            throw new IllegalArgumentException(\"Component cannot be null\");\n        }\n        synchronized (components) {\n            if (components.containsKey(componentName)) {\n                throw new IllegalArgumentException(\"Component previously added: \" + componentName);\n            }\n            component.setCamelContext(this);\n            components.put(componentName, component);\n        }\n    }\n\n    public Component getComponent(String name) {\n        synchronized (components) {\n            Component component = components.get(name);\n            if (component == null && autoCreateComponents) {\n                try {\n                    component = getComponentResolver().resolveComponent(name, this);\n                    if (component != null) {\n                        addComponent(name, component);\n                        if (isStarted()) {\n                            startServices(component);\n                        }\n                    }\n                } catch (Exception e) {\n                    throw new RuntimeCamelException(\"Could not auto create component: \" + name, e);\n                }\n            }\n            return component;\n        }\n    }\n\n    public <T extends Component> T getComponent(String name, Class<T> componentType) {\n        Component component = getComponent(name);\n        if (componentType.isInstance(component)) {\n            return componentType.cast(component);\n        } else {\n            throw new IllegalArgumentException(\"The component is not of type: \" + componentType + \" but is: \"\n                    + component);\n        }\n    }\n\n    public Component removeComponent(String componentName) {\n        synchronized (components) {\n            return components.remove(componentName);\n        }\n    }\n\n    public Component getOrCreateComponent(String componentName, Callable<Component> factory) {\n        synchronized (components) {\n            Component component = components.get(componentName);\n            if (component == null) {\n                try {\n                    component = factory.call();\n                    if (component == null) {\n                        throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n                                + \" component, it returned null.\");\n                    }\n                    components.put(componentName, component);\n                    component.setCamelContext(this);\n                } catch (Exception e) {\n                    throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n                            + \" component\", e);\n                }\n            }\n            return component;\n        }\n    }\n\n\n    public Collection<Endpoint> getEndpoints() {\n        synchronized (endpoints) {\n            return new ArrayList<Endpoint>(endpoints.values());\n        }\n    }\n\n    public Collection<Endpoint> getEndpoints(String uri) {\n        Collection<Endpoint> answer = new ArrayList<Endpoint>();\n        Collection<Endpoint> coll;\n        synchronized (endpoints) {\n            Endpoint ep = endpoints.get(uri);\n            if (ep != null) {\n                answer.add(ep);\n                return answer;\n            }\n            coll = new ArrayList<Endpoint>(endpoints.values());\n        }\n        for (Endpoint ep : coll) {\n            if (!ep.isSingleton() && uri.equals(ep.getEndpointUri())) {\n                answer.add(ep);\n            }\n        }\n        return answer;\n    }\n\n    public Collection<Endpoint> getSingletonEndpoints() {\n        Collection<Endpoint> answer = new ArrayList<Endpoint>();\n        Collection<Endpoint> coll = getEndpoints();\n        for (Endpoint ep : coll) {\n            if (ep.isSingleton()) {\n                answer.add(ep);\n            }\n        }\n        return answer;\n    }\n\n    public Endpoint addEndpoint(String uri, Endpoint endpoint) throws Exception {\n        Endpoint oldEndpoint;\n        synchronized (endpoints) {\n            startServices(endpoint);\n            oldEndpoint = endpoints.remove(uri);\n            endpoints.put(CamelContextHelper.getEndpointKey(uri, endpoint), endpoint);\n            if (oldEndpoint != null) {\n                stopServices(oldEndpoint);\n            }\n        }\n        return oldEndpoint;\n    }\n\n    public Collection<Endpoint> removeEndpoints(String uri) throws Exception {\n        Collection<Endpoint> answer = new ArrayList<Endpoint>();\n        synchronized (endpoints) {\n            Endpoint oldEndpoint = endpoints.remove(uri);\n            if (oldEndpoint != null) {\n                answer.add(oldEndpoint);\n                stopServices(oldEndpoint);\n            } else {\n                for (Map.Entry entry : endpoints.entrySet()) {\n                    oldEndpoint = (Endpoint)entry.getValue();\n                    if (!oldEndpoint.isSingleton() && uri.equals(oldEndpoint.getEndpointUri())) {\n                        answer.add(oldEndpoint);\n                        stopServices(oldEndpoint);\n                        endpoints.remove(entry.getKey());\n                    }\n                }\n            }\n        }\n        return answer;\n    }\n\n    public Endpoint addSingletonEndpoint(String uri, Endpoint endpoint) throws Exception {\n        return addEndpoint(uri, endpoint);\n    }\n\n    public Endpoint removeSingletonEndpoint(String uri) throws Exception {\n        Collection<Endpoint> answer = removeEndpoints(uri);\n        return (Endpoint) (answer.size() > 0 ? answer.toArray()[0] : null);\n    }\n\n    public Endpoint getEndpoint(String uri) {\n        Endpoint<?> answer;\n        synchronized (endpoints) {\n            answer = endpoints.get(uri);\n            if (answer == null) {\n                try {\n\n                    String splitURI[] = ObjectHelper.splitOnCharacter(uri, \":\", 2);\n                    if (splitURI[1] != null) {\n                        String scheme = splitURI[0];\n                        Component<?> component = getComponent(scheme);\n\n                        if (component != null) {\n                            answer = component.createEndpoint(uri);\n\n                            if (answer != null && LOG.isDebugEnabled()) {\n                                LOG.debug(uri + \" converted to endpoint: \" + answer + \" by component: \" + component);\n                            }\n                        }\n                    }\n                    if (answer == null) {\n                        answer = createEndpoint(uri);\n                    }\n\n                    if (answer != null) {\n                        addService(answer);\n\n                        endpoints.put(CamelContextHelper.getEndpointKey(uri, answer), answer);\n                        lifecycleStrategy.onEndpointAdd(answer);\n                    }\n                } catch (Exception e) {\n                    LOG.debug(\"Failed to resolve endpoint \" + uri + \". Reason: \" + e, e);\n                    throw new ResolveEndpointFailedException(uri, e);\n                }\n            }\n        }\n        return answer;\n    }\n\n    public <T extends Endpoint> T getEndpoint(String name, Class<T> endpointType) {\n        Endpoint endpoint = getEndpoint(name);\n        if (endpointType.isInstance(endpoint)) {\n            return endpointType.cast(endpoint);\n        } else {\n            throw new IllegalArgumentException(\"The endpoint is not of type: \" + endpointType + \" but is: \"\n                    + endpoint);\n        }\n    }\n\n    public List<Route> getRoutes() {\n        if (routes == null) {\n            routes = new ArrayList<Route>();\n        }\n        return routes;\n    }\n\n    public void setRoutes(List<Route> routes) {\n        this.routes = routes;\n        throw new UnsupportedOperationException(\"overriding existing routes is not supported yet, use addRoutes instead\");\n    }\n\n    public void addRoutes(Collection<Route> routes) throws Exception {\n        if (this.routes == null) {\n            this.routes = new ArrayList<Route>();\n        }\n\n        if (routes != null) {\n            this.routes.addAll(routes);\n\n            lifecycleStrategy.onRoutesAdd(routes);\n            if (shouldStartRoutes()) {\n                startRoutes(routes);\n            }\n        }\n    }\n\n    public void addRoutes(Routes builder) throws Exception {\n        builder.setContext(this);\n        List<Route> routeList = builder.getRouteList();\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Adding routes from: \" + builder + \" routes: \" + routeList);\n        }\n        addRoutes(routeList);\n    }\n\n    public void addRouteDefinitions(Collection<RouteType> routeDefinitions) throws Exception {\n        this.routeDefinitions.addAll(routeDefinitions);\n        if (shouldStartRoutes()) {\n            startRouteDefinitions(routeDefinitions);\n        }\n\n    }\n\n    /**\n     * Adds a service, starting it so that it will be stopped with this context\n     */\n    public void addService(Object object) throws Exception {\n        if (object instanceof Service) {\n            Service service = (Service) object;\n            getLifecycleStrategy().onServiceAdd(this, service);\n            service.start();\n            servicesToClose.add(service);\n        }\n    }\n\n\n    public Language resolveLanguage(String language) {\n        return getLanguageResolver().resolveLanguage(language, this);\n    }\n\n    public ExchangeConverter getExchangeConverter() {\n        if (exchangeConverter == null) {\n            exchangeConverter = createExchangeConverter();\n        }\n        return exchangeConverter;\n    }\n\n    public void setExchangeConverter(ExchangeConverter exchangeConverter) {\n        this.exchangeConverter = exchangeConverter;\n    }\n\n    public TypeConverter getTypeConverter() {\n        if (typeConverter == null) {\n            typeConverter = createTypeConverter();\n        }\n        return typeConverter;\n    }\n\n    public void setTypeConverter(TypeConverter typeConverter) {\n        this.typeConverter = typeConverter;\n    }\n\n    public Injector getInjector() {\n        if (injector == null) {\n            injector = createInjector();\n        }\n        return injector;\n    }\n\n    public void setInjector(Injector injector) {\n        this.injector = injector;\n    }\n\n    public ComponentResolver getComponentResolver() {\n        if (componentResolver == null) {\n            componentResolver = createComponentResolver();\n        }\n        return componentResolver;\n    }\n\n    public void setComponentResolver(ComponentResolver componentResolver) {\n        this.componentResolver = componentResolver;\n    }\n\n    public LanguageResolver getLanguageResolver() {\n        return languageResolver;\n    }\n\n    public void setLanguageResolver(LanguageResolver languageResolver) {\n        this.languageResolver = languageResolver;\n    }\n\n    public boolean isAutoCreateComponents() {\n        return autoCreateComponents;\n    }\n\n    public void setAutoCreateComponents(boolean autoCreateComponents) {\n        this.autoCreateComponents = autoCreateComponents;\n    }\n\n    public Registry getRegistry() {\n        if (registry == null) {\n            registry = createRegistry();\n        }\n        return registry;\n    }\n\n    /**\n     * Sets the registry to the given JNDI context\n     *\n     * @param jndiContext is the JNDI context to use as the registry\n     *\n     * @see #setRegistry(org.apache.camel.spi.Registry)\n     */\n    public void setJndiContext(Context jndiContext) {\n        setRegistry(new JndiRegistry(jndiContext));\n    }\n\n    public void setRegistry(Registry registry) {\n        this.registry = registry;\n    }\n\n    public LifecycleStrategy getLifecycleStrategy() {\n        return lifecycleStrategy;\n    }\n\n    public void setLifecycleStrategy(LifecycleStrategy lifecycleStrategy) {\n        this.lifecycleStrategy = lifecycleStrategy;\n    }\n\n    public List<RouteType> getRouteDefinitions() {\n        return routeDefinitions;\n    }\n\n    public List<InterceptStrategy> getInterceptStrategies() {\n        return interceptStrategies;\n    }\n\n    public void setInterceptStrategies(List<InterceptStrategy> interceptStrategies) {\n        this.interceptStrategies = interceptStrategies;\n    }\n\n    public void addInterceptStrategy(InterceptStrategy interceptStrategy) {\n        getInterceptStrategies().add(interceptStrategy);\n    }\n\n    /**\n     * Returns true if tracing has been enabled or disabled via the {@link #setTrace(Boolean)} method\n     * or it has not been specified then default to the <b>camel.trace</b> system property\n     */\n    public boolean getTrace() {\n        final Boolean value = getTracing();\n        if (value != null) {\n            return value;\n        } else {\n            return SystemHelper.isSystemProperty(\"camel.trace\");\n        }\n    }\n\n    public Boolean getTracing() {\n        return trace;\n    }\n\n    public void setTrace(Boolean trace) {\n        this.trace = trace;\n    }\n\n    /**\n     * Returns the delay in millis if delaying has been enabled or disabled via the {@link #setDelay(Long)} method\n     * or it has not been specified then default to the <b>camel.delay</b> system property\n     */\n    public long getDelay() {\n        final Long value = getDelaying();\n        if (value != null) {\n            return value;\n        } else {\n            String prop = SystemHelper.getSystemProperty(\"camel.delay\");\n            return prop != null ? Long.getLong(prop) : 0;\n        }\n    }\n\n    public Long getDelaying() {\n        return delay;\n    }\n\n    public void setDelay(Long delay) {\n        this.delay = delay;\n    }\n\n    public <E extends Exchange> ProducerTemplate<E> createProducerTemplate() {\n        return new DefaultProducerTemplate<E>(this);\n    }\n\n    public ErrorHandlerBuilder getErrorHandlerBuilder() {\n        return errorHandlerBuilder;\n    }\n\n    /**\n     * Sets the default error handler builder which is inherited by the routes\n     */\n    public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder) {\n        this.errorHandlerBuilder = errorHandlerBuilder;\n    }\n\n\n    protected void doStart() throws Exception {\n        LOG.info(\"Apache Camel \" + getVersion() + \" (CamelContext:\" + getName() + \") is starting\");\n\n        if (getTrace()) {\n            if (Tracer.getTracer(this) == null) {\n                Tracer tracer = new Tracer();\n                TraceFormatter formatter = this.getRegistry().lookup(\"traceFormatter\", TraceFormatter.class);\n                if (formatter != null) {\n                    tracer.setFormatter(formatter);\n                }\n                addInterceptStrategy(tracer);\n            }\n        }\n\n        if (getDelay() > 0) {\n            if (Delayer.getDelayer(this) == null) {\n                addInterceptStrategy(new Delayer(getDelay()));\n            }\n        }\n\n        lifecycleStrategy.onContextStart(this);\n\n        forceLazyInitialization();\n        if (components != null) {\n            for (Component component : components.values()) {\n                startServices(component);\n            }\n        }\n        startRouteDefinitions(routeDefinitions);\n        startRoutes(routes);\n        \n        LOG.info(\"Apache Camel \" + getVersion() + \" (CamelContext:\" + getName() + \") started\");\n    }\n\n    protected void startRouteDefinitions(Collection<RouteType> list) throws Exception {\n        if (list != null) {\n            Collection<Route> routes = new ArrayList<Route>();\n            for (RouteType route : list) {\n                route.addRoutes(this, routes);\n            }\n            addRoutes(routes);\n        }\n    }\n\n    protected void doStop() throws Exception {\n        stopServices(servicesToClose);\n        if (components != null) {\n            for (Component component : components.values()) {\n                stopServices(component);\n            }\n        }\n    }\n\n    protected void startRoutes(Collection<Route> routeList) throws Exception {\n        if (routeList != null) {\n            for (Route<Exchange> route : routeList) {\n                List<Service> services = route.getServicesForRoute();\n                for (Service service : services) {\n                    addService(service);\n                }\n            }\n        }\n    }\n\n    /**\n     * Lets force some lazy initialization to occur upfront before we start any\n     * components and create routes\n     */\n    protected void forceLazyInitialization() {\n        getExchangeConverter();\n        getInjector();\n        getLanguageResolver();\n        getTypeConverter();\n    }\n\n    /**\n     * Lazily create a default implementation\n     */\n    protected ExchangeConverter createExchangeConverter() {\n        return new DefaultExchangeConverter();\n    }\n\n    /**\n     * Lazily create a default implementation\n     */\n    protected TypeConverter createTypeConverter() {\n        return new DefaultTypeConverter(getInjector());\n    }\n\n    /**\n     * Lazily create a default implementation\n     */\n    protected Injector createInjector() {\n        FactoryFinder finder = createFactoryFinder();\n        try {\n            return (Injector) finder.newInstance(\"Injector\");\n        } catch (NoFactoryAvailableException e) {\n            return new ReflectionInjector();\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e);\n        } catch (IOException e) {\n            throw new RuntimeCamelException(e);\n        } catch (ClassNotFoundException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    /**\n     * Lazily create a default implementation\n     */\n    protected ComponentResolver createComponentResolver() {\n        return new DefaultComponentResolver();\n    }\n\n    /**\n     * Lazily create a default implementation\n     */\n    protected Registry createRegistry() {\n        return new JndiRegistry();\n    }\n\n    /**\n     * A pluggable strategy to allow an endpoint to be created without requiring\n     * a component to be its factory, such as for looking up the URI inside some\n     * {@link Registry}\n     *\n     * @param uri the uri for the endpoint to be created\n     * @return the newly created endpoint or null if it could not be resolved\n     */\n    protected Endpoint createEndpoint(String uri) {\n        Object value = getRegistry().lookup(uri);\n        if (value instanceof Endpoint) {\n            return (Endpoint) value;\n        } else if (value instanceof Processor) {\n            return new ProcessorEndpoint(uri, this, (Processor) value);\n        } else if (value != null) {\n            return convertBeanToEndpoint(uri, value);\n        }\n        return null;\n    }\n\n    /**\n     * Attempt to convert the bean from a {@link Registry} to an endpoint using\n     * some kind of transformation or wrapper\n     *\n     * @param uri  the uri for the endpoint (and name in the registry)\n     * @param bean the bean to be converted to an endpoint, which will be not null\n     * @return a new endpoint\n     */\n    protected Endpoint convertBeanToEndpoint(String uri, Object bean) {\n        throw new IllegalArgumentException(\"uri: \" + uri + \" bean: \" + bean\n                + \" could not be converted to an Endpoint\");\n    }\n\n    /**\n     * Should we start newly added routes?\n     */\n    protected boolean shouldStartRoutes() {\n        return isStarted() && !isStarting();\n    }\n\n    public void setDataFormats(Map<String, DataFormatType> dataFormats) {\n        this.dataFormats = dataFormats;\n    }\n\n    public Map<String, DataFormatType> getDataFormats() {\n        return dataFormats;\n    }\n    \n    public void setFactoryFinderClass(Class<? extends FactoryFinder> finderClass) {\n        factoryFinderClass = finderClass;\n    }\n\n    public FactoryFinder createFactoryFinder() {\n        try {\n            return factoryFinderClass.newInstance();\n        } catch (Exception e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    public FactoryFinder createFactoryFinder(String path) {\n        try {\n            Constructor<? extends FactoryFinder> constructor;\n            constructor = factoryFinderClass.getConstructor(String.class);\n            return constructor.newInstance(path);\n        } catch (Exception e) {\n            throw new RuntimeCamelException(e);", "functions": [{"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addComponent", "code": "    public void addComponent(String componentName, final Component component) {\n        if (component == null) {\n            throw new IllegalArgumentException(\"Component cannot be null\");\n        }\n        synchronized (components) {\n            if (components.containsKey(componentName)) {\n                throw new IllegalArgumentException(\"Component previously added: \" + componentName);\n            }\n            component.setCamelContext(this);\n            components.put(componentName, component);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [4, 8], [1, 9], [5, 10], [4, 11], [9, 12], [11, 13], [12, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 4], [9, 1], [10, 5], [11, 4], [12, 9], [13, 11], [14, 12], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getComponent", "code": "    public Component getComponent(String name) {\n        synchronized (components) {\n            Component component = components.get(name);\n            if (component == null && autoCreateComponents) {\n                try {\n                    component = getComponentResolver().resolveComponent(name, this);\n                    if (component != null) {\n                        addComponent(name, component);\n                        if (isStarted()) {\n                            startServices(component);\n                        }\n                    }\n                } catch (Exception e) {\n                    throw new RuntimeCamelException(\"Could not auto create component: \" + name, e);\n                }\n            }\n            return component;", "ast_nodes": ["FUNC_DECL", "PARAM", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "TRY", "BINARY_OP", "CALL", "CATCH", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [5, 7], [4, 8], [6, 9], [6, 10], [7, 11], [9, 12], [10, 13], [6, 14], [12, 15], [10, 16], [13, 17], [14, 18], [15, 19], [16, 20], [10, 21], [18, 22], [19, 23], [16, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 5], [8, 4], [9, 6], [10, 6], [11, 7], [12, 9], [13, 10], [14, 6], [15, 12], [16, 10], [17, 13], [18, 14], [19, 15], [20, 16], [21, 10], [22, 18], [23, 19], [24, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getComponent", "code": "    public <T extends Component> T getComponent(String name, Class<T> componentType) {\n        Component component = getComponent(name);\n        if (componentType.isInstance(component)) {\n            return componentType.cast(component);\n        } else {\n            throw new IllegalArgumentException(\"The component is not of type: \" + componentType + \" but is: \"\n                    + component);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [6, 9], [7, 10], [9, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 6], [10, 7], [11, 9], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "removeComponent", "code": "    public Component removeComponent(String componentName) {\n        synchronized (components) {\n            return components.remove(componentName);", "ast_nodes": ["FUNC_DECL", "PARAM", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getOrCreateComponent", "code": "    public Component getOrCreateComponent(String componentName, Callable<Component> factory) {\n        synchronized (components) {\n            Component component = components.get(componentName);\n            if (component == null) {\n                try {\n                    component = factory.call();\n                    if (component == null) {\n                        throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n                                + \" component, it returned null.\");\n                    }\n                    components.put(componentName, component);\n                    component.setCamelContext(this);\n                } catch (Exception e) {\n                    throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n                            + \" component\", e);\n                }\n            }\n            return component;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "IF", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [4, 7], [6, 8], [5, 9], [7, 10], [7, 11], [10, 12], [7, 13], [7, 14], [11, 15], [7, 16], [12, 17], [11, 18], [15, 19], [16, 20], [17, 21], [18, 22], [21, 23], [21, 24], [22, 25], [24, 26], [25, 27], [25, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 4], [8, 6], [9, 5], [10, 7], [11, 7], [12, 10], [13, 7], [14, 7], [15, 11], [16, 7], [17, 12], [18, 11], [19, 15], [20, 16], [21, 17], [22, 18], [23, 21], [24, 21], [25, 22], [26, 24], [27, 25], [28, 25], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getEndpoints", "code": "    public Collection<Endpoint> getEndpoints() {\n        synchronized (endpoints) {\n            return new ArrayList<Endpoint>(endpoints.values());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEndpoints", "code": "    public Collection<Endpoint> getEndpoints(String uri) {\n        Collection<Endpoint> answer = new ArrayList<Endpoint>();\n        Collection<Endpoint> coll;\n        synchronized (endpoints) {\n            Endpoint ep = endpoints.get(uri);\n            if (ep != null) {\n                answer.add(ep);\n                return answer;\n            }\n            coll = new ArrayList<Endpoint>(endpoints.values());\n        }\n        for (Endpoint ep : coll) {\n            if (!ep.isSingleton() && uri.equals(ep.getEndpointUri())) {\n                answer.add(ep);\n            }\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "VAR_DECL", "IF", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [6, 10], [4, 11], [8, 12], [9, 13], [6, 14], [10, 15], [7, 16], [12, 17], [12, 18], [13, 19], [6, 20], [8, 21], [17, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 6], [11, 4], [12, 8], [13, 9], [14, 6], [15, 10], [16, 7], [17, 12], [18, 12], [19, 13], [20, 6], [21, 8], [22, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getSingletonEndpoints", "code": "    public Collection<Endpoint> getSingletonEndpoints() {\n        Collection<Endpoint> answer = new ArrayList<Endpoint>();\n        Collection<Endpoint> coll = getEndpoints();\n        for (Endpoint ep : coll) {\n            if (ep.isSingleton()) {\n                answer.add(ep);\n            }\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "addEndpoint", "code": "    public Endpoint addEndpoint(String uri, Endpoint endpoint) throws Exception {\n        Endpoint oldEndpoint;\n        synchronized (endpoints) {\n            startServices(endpoint);\n            oldEndpoint = endpoints.remove(uri);\n            endpoints.put(CamelContextHelper.getEndpointKey(uri, endpoint), endpoint);\n            if (oldEndpoint != null) {\n                stopServices(oldEndpoint);\n            }\n        }\n        return oldEndpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [8, 12], [5, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 8], [13, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "removeEndpoints", "code": "    public Collection<Endpoint> removeEndpoints(String uri) throws Exception {\n        Collection<Endpoint> answer = new ArrayList<Endpoint>();\n        synchronized (endpoints) {\n            Endpoint oldEndpoint = endpoints.remove(uri);\n            if (oldEndpoint != null) {\n                answer.add(oldEndpoint);\n                stopServices(oldEndpoint);\n            } else {\n                for (Map.Entry entry : endpoints.entrySet()) {\n                    oldEndpoint = (Endpoint)entry.getValue();\n                    if (!oldEndpoint.isSingleton() && uri.equals(oldEndpoint.getEndpointUri())) {\n                        answer.add(oldEndpoint);\n                        stopServices(oldEndpoint);\n                        endpoints.remove(entry.getKey());\n                    }\n                }\n            }\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "IF", "VAR_DECL", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [2, 7], [4, 8], [6, 9], [5, 10], [4, 11], [4, 12], [8, 13], [8, 14], [13, 15], [8, 16], [15, 17], [15, 18], [13, 19], [13, 20], [13, 21], [17, 22], [16, 23], [19, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 2], [8, 4], [9, 6], [10, 5], [11, 4], [12, 4], [13, 8], [14, 8], [15, 13], [16, 8], [17, 15], [18, 15], [19, 13], [20, 13], [21, 13], [22, 17], [23, 16], [24, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "addSingletonEndpoint", "code": "    public Endpoint addSingletonEndpoint(String uri, Endpoint endpoint) throws Exception {\n        return addEndpoint(uri, endpoint);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeSingletonEndpoint", "code": "    public Endpoint removeSingletonEndpoint(String uri) throws Exception {\n        Collection<Endpoint> answer = removeEndpoints(uri);\n        return (Endpoint) (answer.size() > 0 ? answer.toArray()[0] : null);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [4, 8], [8, 9], [8, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 4], [9, 8], [10, 8], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getEndpoint", "code": "    public Endpoint getEndpoint(String uri) {\n        Endpoint<?> answer;\n        synchronized (endpoints) {\n            answer = endpoints.get(uri);\n            if (answer == null) {\n                try {\n\n                    String splitURI[] = ObjectHelper.splitOnCharacter(uri, \":\", 2);\n                    if (splitURI[1] != null) {\n                        String scheme = splitURI[0];\n                        Component<?> component = getComponent(scheme);\n\n                        if (component != null) {\n                            answer = component.createEndpoint(uri);\n\n                            if (answer != null && LOG.isDebugEnabled()) {\n                                LOG.debug(uri + \" converted to endpoint: \" + answer + \" by component: \" + component);\n                            }\n                        }\n                    }\n                    if (answer == null) {\n                        answer = createEndpoint(uri);\n                    }\n\n                    if (answer != null) {\n                        addService(answer);\n\n                        endpoints.put(CamelContextHelper.getEndpointKey(uri, answer), answer);\n                        lifecycleStrategy.onEndpointAdd(answer);\n                    }\n                } catch (Exception e) {\n                    LOG.debug(\"Failed to resolve endpoint \" + uri + \". Reason: \" + e, e);\n                    throw new ResolveEndpointFailedException(uri, e);\n                }\n            }\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "ASSIGN", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "IF", "IF", "IF", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [0, 6], [4, 7], [5, 8], [6, 9], [7, 10], [7, 11], [7, 12], [7, 13], [7, 14], [10, 15], [11, 16], [12, 17], [13, 18], [15, 19], [10, 20], [16, 21], [17, 22], [13, 23], [13, 24], [13, 25], [18, 26], [14, 27], [20, 28], [11, 29], [11, 30], [11, 31], [12, 32], [23, 33], [27, 34], [27, 35], [28, 36], [30, 37], [32, 38], [23, 39], [33, 40], [24, 41], [18, 42], [36, 43], [36, 44], [39, 45], [23, 46], [44, 47], [45, 48], [45, 49], [46, 50], [25, 51], [39, 52], [49, 53], [52, 54], [54, 55], [55, 56], [55, 57], [57, 58], [58, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 0], [7, 4], [8, 5], [9, 6], [10, 7], [11, 7], [12, 7], [13, 7], [14, 7], [15, 10], [16, 11], [17, 12], [18, 13], [19, 15], [20, 10], [21, 16], [22, 17], [23, 13], [24, 13], [25, 13], [26, 18], [27, 14], [28, 20], [29, 11], [30, 11], [31, 11], [32, 12], [33, 23], [34, 27], [35, 27], [36, 28], [37, 30], [38, 32], [39, 23], [40, 33], [41, 24], [42, 18], [43, 36], [44, 36], [45, 39], [46, 23], [47, 44], [48, 45], [49, 45], [50, 46], [51, 25], [52, 39], [53, 49], [54, 52], [55, 54], [56, 55], [57, 55], [58, 57], [59, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "getEndpoint", "code": "    public <T extends Endpoint> T getEndpoint(String name, Class<T> endpointType) {\n        Endpoint endpoint = getEndpoint(name);\n        if (endpointType.isInstance(endpoint)) {\n            return endpointType.cast(endpoint);\n        } else {\n            throw new IllegalArgumentException(\"The endpoint is not of type: \" + endpointType + \" but is: \"\n                    + endpoint);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [6, 9], [7, 10], [9, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 6], [10, 7], [11, 9], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getRoutes", "code": "    public List<Route> getRoutes() {\n        if (routes == null) {\n            routes = new ArrayList<Route>();\n        }\n        return routes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setRoutes", "code": "    public void setRoutes(List<Route> routes) {\n        this.routes = routes;\n        throw new UnsupportedOperationException(\"overriding existing routes is not supported yet, use addRoutes instead\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addRoutes", "code": "    public void addRoutes(Collection<Route> routes) throws Exception {\n        if (this.routes == null) {\n            this.routes = new ArrayList<Route>();\n        }\n\n        if (routes != null) {\n            this.routes.addAll(routes);\n\n            lifecycleStrategy.onRoutesAdd(routes);\n            if (shouldStartRoutes()) {\n                startRoutes(routes);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [4, 7], [5, 8], [6, 9], [1, 10], [2, 11], [1, 12], [11, 13], [6, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 4], [8, 5], [9, 6], [10, 1], [11, 2], [12, 1], [13, 11], [14, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addRoutes", "code": "    public void addRoutes(Routes builder) throws Exception {\n        builder.setContext(this);\n        List<Route> routeList = builder.getRouteList();\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Adding routes from: \" + builder + \" routes: \" + routeList);\n        }\n        addRoutes(routeList);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [8, 9], [9, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 8], [10, 9], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "addRouteDefinitions", "code": "    public void addRouteDefinitions(Collection<RouteType> routeDefinitions) throws Exception {\n        this.routeDefinitions.addAll(routeDefinitions);\n        if (shouldStartRoutes()) {\n            startRouteDefinitions(routeDefinitions);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addService", "code": "    public void addService(Object object) throws Exception {\n        if (object instanceof Service) {\n            Service service = (Service) object;\n            getLifecycleStrategy().onServiceAdd(this, service);\n            service.start();\n            servicesToClose.add(service);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "resolveLanguage", "code": "    public Language resolveLanguage(String language) {\n        return getLanguageResolver().resolveLanguage(language, this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getExchangeConverter", "code": "    public ExchangeConverter getExchangeConverter() {\n        if (exchangeConverter == null) {\n            exchangeConverter = createExchangeConverter();\n        }\n        return exchangeConverter;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExchangeConverter", "code": "    public void setExchangeConverter(ExchangeConverter exchangeConverter) {\n        this.exchangeConverter = exchangeConverter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTypeConverter", "code": "    public TypeConverter getTypeConverter() {\n        if (typeConverter == null) {\n            typeConverter = createTypeConverter();\n        }\n        return typeConverter;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setTypeConverter", "code": "    public void setTypeConverter(TypeConverter typeConverter) {\n        this.typeConverter = typeConverter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInjector", "code": "    public Injector getInjector() {\n        if (injector == null) {\n            injector = createInjector();\n        }\n        return injector;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setInjector", "code": "    public void setInjector(Injector injector) {\n        this.injector = injector;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getComponentResolver", "code": "    public ComponentResolver getComponentResolver() {\n        if (componentResolver == null) {\n            componentResolver = createComponentResolver();\n        }\n        return componentResolver;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setComponentResolver", "code": "    public void setComponentResolver(ComponentResolver componentResolver) {\n        this.componentResolver = componentResolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLanguageResolver", "code": "    public LanguageResolver getLanguageResolver() {\n        return languageResolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLanguageResolver", "code": "    public void setLanguageResolver(LanguageResolver languageResolver) {\n        this.languageResolver = languageResolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAutoCreateComponents", "code": "    public boolean isAutoCreateComponents() {\n        return autoCreateComponents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoCreateComponents", "code": "    public void setAutoCreateComponents(boolean autoCreateComponents) {\n        this.autoCreateComponents = autoCreateComponents;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRegistry", "code": "    public Registry getRegistry() {\n        if (registry == null) {\n            registry = createRegistry();\n        }\n        return registry;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setJndiContext", "code": "    public void setJndiContext(Context jndiContext) {\n        setRegistry(new JndiRegistry(jndiContext));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRegistry", "code": "    public void setRegistry(Registry registry) {\n        this.registry = registry;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLifecycleStrategy", "code": "    public LifecycleStrategy getLifecycleStrategy() {\n        return lifecycleStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLifecycleStrategy", "code": "    public void setLifecycleStrategy(LifecycleStrategy lifecycleStrategy) {\n        this.lifecycleStrategy = lifecycleStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRouteDefinitions", "code": "    public List<RouteType> getRouteDefinitions() {\n        return routeDefinitions;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInterceptStrategies", "code": "    public List<InterceptStrategy> getInterceptStrategies() {\n        return interceptStrategies;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInterceptStrategies", "code": "    public void setInterceptStrategies(List<InterceptStrategy> interceptStrategies) {\n        this.interceptStrategies = interceptStrategies;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addInterceptStrategy", "code": "    public void addInterceptStrategy(InterceptStrategy interceptStrategy) {\n        getInterceptStrategies().add(interceptStrategy);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTrace", "code": "    public boolean getTrace() {\n        final Boolean value = getTracing();\n        if (value != null) {\n            return value;\n        } else {\n            return SystemHelper.isSystemProperty(\"camel.trace\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [2, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 2], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getTracing", "code": "    public Boolean getTracing() {\n        return trace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTrace", "code": "    public void setTrace(Boolean trace) {\n        this.trace = trace;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDelay", "code": "    public long getDelay() {\n        final Long value = getDelaying();\n        if (value != null) {\n            return value;\n        } else {\n            String prop = SystemHelper.getSystemProperty(\"camel.delay\");\n            return prop != null ? Long.getLong(prop) : 0;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [2, 8], [4, 9], [9, 10], [9, 11], [9, 12], [5, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 2], [9, 4], [10, 9], [11, 9], [12, 9], [13, 5], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getDelaying", "code": "    public Long getDelaying() {\n        return delay;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDelay", "code": "    public void setDelay(Long delay) {\n        this.delay = delay;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProducerTemplate", "code": "    public <E extends Exchange> ProducerTemplate<E> createProducerTemplate() {\n        return new DefaultProducerTemplate<E>(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandlerBuilder", "code": "    public ErrorHandlerBuilder getErrorHandlerBuilder() {\n        return errorHandlerBuilder;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorHandlerBuilder", "code": "    public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder) {\n        this.errorHandlerBuilder = errorHandlerBuilder;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        LOG.info(\"Apache Camel \" + getVersion() + \" (CamelContext:\" + getName() + \") is starting\");\n\n        if (getTrace()) {\n            if (Tracer.getTracer(this) == null) {\n                Tracer tracer = new Tracer();\n                TraceFormatter formatter = this.getRegistry().lookup(\"traceFormatter\", TraceFormatter.class);\n                if (formatter != null) {\n                    tracer.setFormatter(formatter);\n                }\n                addInterceptStrategy(tracer);\n            }\n        }\n\n        if (getDelay() > 0) {\n            if (Delayer.getDelayer(this) == null) {\n                addInterceptStrategy(new Delayer(getDelay()));\n            }\n        }\n\n        lifecycleStrategy.onContextStart(this);\n\n        forceLazyInitialization();\n        if (components != null) {\n            for (Component component : components.values()) {\n                startServices(component);\n            }\n        }\n        startRouteDefinitions(routeDefinitions);\n        startRoutes(routes);\n        \n        LOG.info(\"Apache Camel \" + getVersion() + \" (CamelContext:\" + getName() + \") started\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [2, 10], [3, 11], [0, 12], [4, 13], [1, 14], [7, 15], [2, 16], [10, 17], [10, 18], [3, 19], [12, 20], [13, 21], [13, 22], [16, 23], [19, 24], [20, 25], [20, 26], [22, 27], [22, 28], [14, 29], [23, 30], [23, 31], [19, 32], [19, 33], [19, 34], [24, 35], [24, 36], [26, 37], [26, 38], [28, 39], [28, 40], [14, 41], [16, 42], [19, 43], [32, 44], [38, 45], [38, 46], [40, 47], [40, 48], [42, 49], [44, 50], [34, 51], [46, 52], [46, 53], [49, 54], [32, 55], [33, 56], [33, 57], [56, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 2], [11, 3], [12, 0], [13, 4], [14, 1], [15, 7], [16, 2], [17, 10], [18, 10], [19, 3], [20, 12], [21, 13], [22, 13], [23, 16], [24, 19], [25, 20], [26, 20], [27, 22], [28, 22], [29, 14], [30, 23], [31, 23], [32, 19], [33, 19], [34, 19], [35, 24], [36, 24], [37, 26], [38, 26], [39, 28], [40, 28], [41, 14], [42, 16], [43, 19], [44, 32], [45, 38], [46, 38], [47, 40], [48, 40], [49, 42], [50, 44], [51, 34], [52, 46], [53, 46], [54, 49], [55, 32], [56, 33], [57, 33], [58, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "startRouteDefinitions", "code": "    protected void startRouteDefinitions(Collection<RouteType> list) throws Exception {\n        if (list != null) {\n            Collection<Route> routes = new ArrayList<Route>();\n            for (RouteType route : list) {\n                route.addRoutes(this, routes);\n            }\n            addRoutes(routes);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 7], [5, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 1], [8, 5], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        stopServices(servicesToClose);\n        if (components != null) {\n            for (Component component : components.values()) {\n                stopServices(component);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "startRoutes", "code": "    protected void startRoutes(Collection<Route> routeList) throws Exception {\n        if (routeList != null) {\n            for (Route<Exchange> route : routeList) {\n                List<Service> services = route.getServicesForRoute();\n                for (Service service : services) {\n                    addService(service);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [7, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 7], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "forceLazyInitialization", "code": "    protected void forceLazyInitialization() {\n        getExchangeConverter();\n        getInjector();\n        getLanguageResolver();\n        getTypeConverter();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createExchangeConverter", "code": "    protected ExchangeConverter createExchangeConverter() {\n        return new DefaultExchangeConverter();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createTypeConverter", "code": "    protected TypeConverter createTypeConverter() {\n        return new DefaultTypeConverter(getInjector());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createInjector", "code": "    protected Injector createInjector() {\n        FactoryFinder finder = createFactoryFinder();\n        try {\n            return (Injector) finder.newInstance(\"Injector\");\n        } catch (NoFactoryAvailableException e) {\n            return new ReflectionInjector();\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e);\n        } catch (IOException e) {\n            throw new RuntimeCamelException(e);\n        } catch (ClassNotFoundException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "CATCH", "CATCH", "CATCH", "CATCH", "CATCH", "RETURN", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [2, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [8, 20], [20, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 2], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 8], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createComponentResolver", "code": "    protected ComponentResolver createComponentResolver() {\n        return new DefaultComponentResolver();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createRegistry", "code": "    protected Registry createRegistry() {\n        return new JndiRegistry();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createEndpoint", "code": "    protected Endpoint createEndpoint(String uri) {\n        Object value = getRegistry().lookup(uri);\n        if (value instanceof Endpoint) {\n            return (Endpoint) value;\n        } else if (value instanceof Processor) {\n            return new ProcessorEndpoint(uri, this, (Processor) value);\n        } else if (value != null) {\n            return convertBeanToEndpoint(uri, value);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [6, 9], [2, 10], [3, 11], [8, 12], [6, 13], [11, 14], [8, 15], [12, 16], [13, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 6], [10, 2], [11, 3], [12, 8], [13, 6], [14, 11], [15, 8], [16, 12], [17, 13], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "convertBeanToEndpoint", "code": "    protected Endpoint convertBeanToEndpoint(String uri, Object bean) {\n        throw new IllegalArgumentException(\"uri: \" + uri + \" bean: \" + bean\n                + \" could not be converted to an Endpoint\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "shouldStartRoutes", "code": "    protected boolean shouldStartRoutes() {\n        return isStarted() && !isStarting();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDataFormats", "code": "    public void setDataFormats(Map<String, DataFormatType> dataFormats) {\n        this.dataFormats = dataFormats;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDataFormats", "code": "    public Map<String, DataFormatType> getDataFormats() {\n        return dataFormats;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFactoryFinderClass", "code": "    public void setFactoryFinderClass(Class<? extends FactoryFinder> finderClass) {\n        factoryFinderClass = finderClass;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createFactoryFinder", "code": "    public FactoryFinder createFactoryFinder() {\n        try {\n            return factoryFinderClass.newInstance();\n        } catch (Exception e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createFactoryFinder", "code": "    public FactoryFinder createFactoryFinder(String path) {\n        try {\n            Constructor<? extends FactoryFinder> constructor;\n            constructor = factoryFinderClass.getConstructor(String.class);\n            return constructor.newInstance(path);\n        } catch (Exception e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [1, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 1], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "DefaultCamelContext", "code": "    public DefaultCamelContext() {\n        name = NAME_PREFIX + ++nameSuffix;\n\n        if (Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {\n            LOG.info(\"JMX is disabled. Using DefaultLifecycleStrategy.\");\n            lifecycleStrategy = new DefaultLifecycleStrategy();\n        } else {\n            try {\n                LOG.info(\"JMX enabled. Using InstrumentationLifecycleStrategy.\");\n                lifecycleStrategy = new InstrumentationLifecycleStrategy();\n            } catch (NoClassDefFoundError e) {\n                LOG.warn(\"Could not find needed classes for JMX lifecycle strategy.\"\n                    + \" Needed class is in spring-context.jar using Spring 2.5 or newer (\"\n                    + \" spring-jmx.jar using Spring 2.0.x).\"\n                    + \" NoClassDefFoundError: \" + e.getMessage());\n            } catch (Exception e) {\n                LOG.warn(\"Could not create JMX lifecycle strategy, caused by: \" + e.getMessage());\n            }\n            if (lifecycleStrategy == null) {\n                LOG.warn(\"Not possible to use JMX lifecycle strategy. Using DefaultLifecycleStrategy instead.\");\n                lifecycleStrategy = new DefaultLifecycleStrategy();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "ASSIGN", "IF", "TRY", "BINARY_OP", "BINARY_OP", "CATCH", "CATCH", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [5, 9], [1, 10], [1, 11], [7, 12], [5, 13], [5, 14], [10, 15], [11, 16], [4, 17], [4, 18], [8, 19], [9, 20], [13, 21], [14, 22], [17, 23], [18, 24], [19, 25], [20, 26], [25, 27], [25, 28], [26, 29], [26, 30], [30, 31], [30, 32], [32, 33], [32, 34], [34, 35], [34, 36], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 5], [10, 1], [11, 1], [12, 7], [13, 5], [14, 5], [15, 10], [16, 11], [17, 4], [18, 4], [19, 8], [20, 9], [21, 13], [22, 14], [23, 17], [24, 18], [25, 19], [26, 20], [27, 25], [28, 25], [29, 26], [30, 26], [31, 30], [32, 30], [33, 32], [34, 32], [35, 34], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "DefaultCamelContext", "code": "    public DefaultCamelContext(Context jndiContext) {\n        this();\n        setJndiContext(jndiContext);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DefaultCamelContext", "code": "    public DefaultCamelContext(Registry registry) {\n        this();\n        this.registry = registry;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-2887", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jms/JmsProducer.java", "language": "java", "name": "org.apache.camel.component.jms.JmsProducer", "code": "public class JmsProducer extends DefaultProducer {\n    private static final transient Log LOG = LogFactory.getLog(JmsProducer.class);\n    RequestorAffinity affinity;\n    private final JmsEndpoint endpoint;\n    private JmsOperations inOnlyTemplate;\n    private JmsOperations inOutTemplate;\n    private UuidGenerator uuidGenerator;\n    private DeferredRequestReplyMap deferredRequestReplyMap;\n    private Requestor requestor;\n    private AtomicBoolean started = new AtomicBoolean(false);\n\n\n    private enum RequestorAffinity {\n        PER_COMPONENT(0),\n        PER_ENDPOINT(1),\n        PER_PRODUCER(2);\n        private int value;\n        private RequestorAffinity(int value) {\n            this.value = value;\n        }\n    };\n\n    public JmsProducer(JmsEndpoint endpoint) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        JmsConfiguration c = endpoint.getConfiguration();\n        affinity = RequestorAffinity.PER_PRODUCER;\n        if (c.getReplyTo() != null) {\n            if (c.getReplyToTempDestinationAffinity().equals(c.REPLYTO_TEMP_DEST_AFFINITY_PER_ENDPOINT)) {\n                affinity = RequestorAffinity.PER_ENDPOINT;\n            } else if (c.getReplyToTempDestinationAffinity().equals(c.REPLYTO_TEMP_DEST_AFFINITY_PER_COMPONENT)) {\n                affinity = RequestorAffinity.PER_COMPONENT;\n            }\n        }\n    }\n\n    public long getRequestTimeout() {\n        return endpoint.getRequestTimeout();\n    }\n\n    protected void doStart() throws Exception {\n        super.doStart();\n    }\n\n    protected void testAndSetRequestor() throws RuntimeCamelException {\n        if (!started.get()) {\n            synchronized (this) {\n                if (started.get()) {\n                    return;\n                }\n                try {\n                    JmsConfiguration c = endpoint.getConfiguration();\n                    if (c.getReplyTo() != null) {\n                        requestor = new PersistentReplyToRequestor(endpoint.getConfiguration(), endpoint\n                            .getExecutorService());\n                        requestor.start();\n                    } else {\n                        if (affinity == RequestorAffinity.PER_PRODUCER) {\n                            requestor = new Requestor(endpoint.getConfiguration(), endpoint\n                                .getExecutorService());\n                            requestor.start();\n                        } else if (affinity == RequestorAffinity.PER_ENDPOINT) {\n                            requestor = endpoint.getRequestor();\n                        } else if (affinity == RequestorAffinity.PER_COMPONENT) {\n                            requestor = ((JmsComponent)endpoint.getComponent()).getRequestor();\n                        }\n                    }\n                } catch (Exception e) {\n                    throw new FailedToCreateProducerException(endpoint, e);\n                }\n                deferredRequestReplyMap = requestor.getDeferredRequestReplyMap(this);\n                started.set(true);\n            }\n        }\n    }\n\n    protected void testAndUnsetRequestor() throws Exception  {\n        if (started.get()) {\n            synchronized (this) {\n                if (!started.get()) {\n                    return;\n                }\n                requestor.removeDeferredRequestReplyMap(this);\n                if (affinity == RequestorAffinity.PER_PRODUCER) {\n                    requestor.stop();\n                }\n                started.set(false);\n            }\n        }\n    }\n\n    protected void doStop() throws Exception {\n        testAndUnsetRequestor();\n        super.doStop();\n    }\n\n    public void process(final Exchange exchange) {\n        final org.apache.camel.Message in = exchange.getIn();\n\n        if (exchange.getPattern().isOutCapable()) {\n\n            testAndSetRequestor();\n\n            final Destination replyTo = requestor.getReplyTo();\n\n            if (replyTo == null) {\n                throw new RuntimeExchangeException(\"Failed to resolve replyTo destination\", exchange);\n            }\n\n            final boolean msgIdAsCorrId = endpoint.getConfiguration().isUseMessageIDAsCorrelationID();\n            String correlationId = in.getHeader(\"JMSCorrelationID\", String.class);\n\n            if (correlationId == null && !msgIdAsCorrId) {\n                in.setHeader(\"JMSCorrelationID\", getUuidGenerator().generateId());\n            }\n\n            final ValueHolder<FutureTask> futureHolder = new ValueHolder<FutureTask>();\n            final DeferredMessageSentCallback callback = msgIdAsCorrId ? deferredRequestReplyMap.createDeferredMessageSentCallback() : null;\n\n            final CamelJmsTemplate template = (CamelJmsTemplate)getInOutTemplate();\n            template.send(endpoint.getDestination(), new MessageCreator() {\n                public Message createMessage(Session session) throws JMSException {\n                    Message message = endpoint.getBinding().makeJmsMessage(exchange, in, session);\n                    message.setJMSReplyTo(replyTo);\n                    requestor.setReplyToSelectorHeader(in, message);\n\n                    FutureTask future = null;\n                    future = (!msgIdAsCorrId)\n                        ? requestor.getReceiveFuture(message.getJMSCorrelationID(), endpoint\n                            .getRequestTimeout()) : requestor.getReceiveFuture(callback);\n\n                    futureHolder.set(future);\n\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(endpoint + \" sending JMS message: \" + message);\n                    }\n                    return message;\n                }\n            }, callback);\n\n            setMessageId(exchange);\n\n            long requestTimeout = endpoint.getConfiguration().getRequestTimeout();\n            try {\n                Message message = null;\n                try {\n                    if (requestTimeout < 0) {\n                        message = (Message)futureHolder.get().get();\n                    } else {\n                        message = (Message)futureHolder.get().get(requestTimeout, TimeUnit.MILLISECONDS);\n                    }\n                } catch (InterruptedException e) {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Future interupted: \" + e, e);\n                    }\n                } catch (TimeoutException e) {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Future timed out: \" + e, e);\n                    }\n                }\n                if (message != null) {\n                    exchange.setOut(new JmsMessage(message, endpoint.getBinding()));\n                    if (correlationId != null) {\n                        message.setJMSCorrelationID(correlationId);\n                        exchange.getOut(false).setHeader(\"JMSCorrelationID\", correlationId);\n                    }\n                } else {\n                    exchange.setException(new ExchangeTimedOutException(exchange, requestTimeout));\n                }\n            } catch (Exception e) {\n                exchange.setException(e);\n            }\n        } else {\n            getInOnlyTemplate().send(endpoint.getDestination(), new MessageCreator() {\n                public Message createMessage(Session session) throws JMSException {\n                    Message message = endpoint.getBinding().makeJmsMessage(exchange, in, session);\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(endpoint + \" sending JMS message: \" + message);\n                    }\n                    return message;\n                }\n            });\n\n            setMessageId(exchange);\n        }\n    }\n\n    protected void setMessageId(Exchange exchange) {\n        if (!(exchange instanceof JmsExchange)) {\n            return;\n        }\n        try {\n            JmsExchange jmsExchange = JmsExchange.class.cast(exchange);\n            JmsMessage out = jmsExchange.getOut(false);\n            if (out != null) {\n                out.setMessageId(out.getJmsMessage().getJMSMessageID());\n            }\n        } catch (JMSException e) {\n            LOG.warn(\"Unable to retrieve JMSMessageID from outgoing JMS Message and \"\n                     + \"set it into Camel's MessageId\", e);\n        }\n    }\n\n    /**\n     * Preserved for backwards compatibility.\n     *\n     * @deprecated\n     * @see #getInOnlyTemplate()\n     */\n    public JmsOperations getTemplate() {\n        return getInOnlyTemplate();\n    }\n\n    public JmsOperations getInOnlyTemplate() {\n        if (inOnlyTemplate == null) {\n            inOnlyTemplate = endpoint.createInOnlyTemplate();\n        }\n        return inOnlyTemplate;\n    }\n\n    public void setInOnlyTemplate(JmsOperations inOnlyTemplate) {\n        this.inOnlyTemplate = inOnlyTemplate;\n    }\n\n    public JmsOperations getInOutTemplate() {\n        if (inOutTemplate == null) {\n            inOutTemplate = endpoint.createInOutTemplate();\n        }\n        return inOutTemplate;\n    }\n\n    public void setInOutTemplate(JmsOperations inOutTemplate) {\n        this.inOutTemplate = inOutTemplate;\n    }\n\n    public UuidGenerator getUuidGenerator() {\n        if (uuidGenerator == null) {\n            uuidGenerator = new UuidGenerator();\n        }\n        return uuidGenerator;\n    }\n\n    public void setUuidGenerator(UuidGenerator uuidGenerator) {\n        this.uuidGenerator = uuidGenerator;", "functions": [{"function_name": "getRequestTimeout", "code": "    public long getRequestTimeout() {\n        return endpoint.getRequestTimeout();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        super.doStart();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "testAndSetRequestor", "code": "    protected void testAndSetRequestor() throws RuntimeCamelException {\n        if (!started.get()) {\n            synchronized (this) {\n                if (started.get()) {\n                    return;\n                }\n                try {\n                    JmsConfiguration c = endpoint.getConfiguration();\n                    if (c.getReplyTo() != null) {\n                        requestor = new PersistentReplyToRequestor(endpoint.getConfiguration(), endpoint\n                            .getExecutorService());\n                        requestor.start();\n                    } else {\n                        if (affinity == RequestorAffinity.PER_PRODUCER) {\n                            requestor = new Requestor(endpoint.getConfiguration(), endpoint\n                                .getExecutorService());\n                            requestor.start();\n                        } else if (affinity == RequestorAffinity.PER_ENDPOINT) {\n                            requestor = endpoint.getRequestor();\n                        } else if (affinity == RequestorAffinity.PER_COMPONENT) {\n                            requestor = ((JmsComponent)endpoint.getComponent()).getRequestor();\n                        }\n                    }\n                } catch (Exception e) {\n                    throw new FailedToCreateProducerException(endpoint, e);\n                }\n                deferredRequestReplyMap = requestor.getDeferredRequestReplyMap(this);\n                started.set(true);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "TRY", "IF", "CALL", "ASSIGN", "CATCH", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [3, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [4, 15], [13, 16], [8, 17], [14, 18], [14, 19], [9, 20], [17, 21], [17, 22], [8, 23], [8, 24], [21, 25], [21, 26], [24, 27], [25, 28], [17, 29], [17, 30], [27, 31], [27, 32], [21, 33], [30, 34], [25, 35], [33, 36], [34, 37], [34, 38], [35, 39], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 3], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 4], [16, 13], [17, 8], [18, 14], [19, 14], [20, 9], [21, 17], [22, 17], [23, 8], [24, 8], [25, 21], [26, 21], [27, 24], [28, 25], [29, 17], [30, 17], [31, 27], [32, 27], [33, 21], [34, 30], [35, 25], [36, 33], [37, 34], [38, 34], [39, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "testAndUnsetRequestor", "code": "    protected void testAndUnsetRequestor() throws Exception  {\n        if (started.get()) {\n            synchronized (this) {\n                if (!started.get()) {\n                    return;\n                }\n                requestor.removeDeferredRequestReplyMap(this);\n                if (affinity == RequestorAffinity.PER_PRODUCER) {\n                    requestor.stop();\n                }\n                started.set(false);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "IF", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 7], [4, 8], [5, 9], [4, 10], [3, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 3], [7, 1], [8, 4], [9, 5], [10, 4], [11, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        testAndUnsetRequestor();\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "process", "code": "    public void process(final Exchange exchange) {\n        final org.apache.camel.Message in = exchange.getIn();\n\n        if (exchange.getPattern().isOutCapable()) {\n\n            testAndSetRequestor();\n\n            final Destination replyTo = requestor.getReplyTo();\n\n            if (replyTo == null) {\n                throw new RuntimeExchangeException(\"Failed to resolve replyTo destination\", exchange);\n            }\n\n            final boolean msgIdAsCorrId = endpoint.getConfiguration().isUseMessageIDAsCorrelationID();\n            String correlationId = in.getHeader(\"JMSCorrelationID\", String.class);\n\n            if (correlationId == null && !msgIdAsCorrId) {\n                in.setHeader(\"JMSCorrelationID\", getUuidGenerator().generateId());\n            }\n\n            final ValueHolder<FutureTask> futureHolder = new ValueHolder<FutureTask>();\n            final DeferredMessageSentCallback callback = msgIdAsCorrId ? deferredRequestReplyMap.createDeferredMessageSentCallback() : null;\n\n            final CamelJmsTemplate template = (CamelJmsTemplate)getInOutTemplate();\n            template.send(endpoint.getDestination(), new MessageCreator() {\n                public Message createMessage(Session session) throws JMSException {\n                    Message message = endpoint.getBinding().makeJmsMessage(exchange, in, session);\n                    message.setJMSReplyTo(replyTo);\n                    requestor.setReplyToSelectorHeader(in, message);\n\n                    FutureTask future = null;\n                    future = (!msgIdAsCorrId)\n                        ? requestor.getReceiveFuture(message.getJMSCorrelationID(), endpoint\n                            .getRequestTimeout()) : requestor.getReceiveFuture(callback);\n\n                    futureHolder.set(future);\n\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(endpoint + \" sending JMS message: \" + message);\n                    }\n                    return message;\n                }\n            }, callback);\n\n            setMessageId(exchange);\n\n            long requestTimeout = endpoint.getConfiguration().getRequestTimeout();\n            try {\n                Message message = null;\n                try {\n                    if (requestTimeout < 0) {\n                        message = (Message)futureHolder.get().get();\n                    } else {\n                        message = (Message)futureHolder.get().get(requestTimeout, TimeUnit.MILLISECONDS);\n                    }\n                } catch (InterruptedException e) {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Future interupted: \" + e, e);\n                    }\n                } catch (TimeoutException e) {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Future timed out: \" + e, e);\n                    }\n                }\n                if (message != null) {\n                    exchange.setOut(new JmsMessage(message, endpoint.getBinding()));\n                    if (correlationId != null) {\n                        message.setJMSCorrelationID(correlationId);\n                        exchange.getOut(false).setHeader(\"JMSCorrelationID\", correlationId);\n                    }\n                } else {\n                    exchange.setException(new ExchangeTimedOutException(exchange, requestTimeout));\n                }\n            } catch (Exception e) {\n                exchange.setException(e);\n            }\n        } else {\n            getInOnlyTemplate().send(endpoint.getDestination(), new MessageCreator() {\n                public Message createMessage(Session session) throws JMSException {\n                    Message message = endpoint.getBinding().makeJmsMessage(exchange, in, session);\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(endpoint + \" sending JMS message: \" + message);\n                    }\n                    return message;\n                }\n            });\n\n            setMessageId(exchange);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CATCH", "IF", "TRY", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CATCH", "CATCH", "IF", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "FUNC_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [4, 15], [2, 16], [1, 17], [1, 18], [5, 19], [5, 20], [5, 21], [5, 22], [1, 23], [1, 24], [10, 25], [13, 26], [1, 27], [18, 28], [20, 29], [21, 30], [21, 31], [21, 32], [6, 33], [24, 34], [24, 35], [8, 36], [9, 37], [25, 38], [11, 39], [12, 40], [13, 41], [26, 42], [14, 43], [28, 44], [28, 45], [19, 46], [20, 47], [29, 48], [30, 49], [31, 50], [32, 51], [22, 52], [33, 53], [34, 54], [7, 55], [36, 56], [36, 57], [10, 58], [38, 59], [39, 60], [40, 61], [41, 62], [44, 63], [20, 64], [47, 65], [20, 66], [49, 67], [50, 68], [51, 69], [54, 70], [54, 71], [54, 72], [54, 73], [54, 74], [58, 75], [58, 76], [62, 77], [63, 78], [63, 79], [63, 80], [63, 81], [64, 82], [65, 83], [66, 84], [32, 85], [32, 86], [71, 87], [54, 88], [54, 89], [54, 90], [54, 91], [75, 92], [79, 93], [47, 94], [47, 95], [84, 96], [49, 97], [50, 98], [89, 99], [72, 100], [73, 101], [80, 102], [94, 103], [94, 104], [97, 105], [98, 106], [85, 107], [86, 108], [71, 109], [99, 110], [99, 111], [101, 112], [79, 113], [102, 114], [104, 115], [105, 116], [106, 117], [107, 118], [108, 119], [109, 120], [111, 121], [111, 122], [113, 123], [120, 124], [123, 125], [124, 126], [125, 127], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 4], [16, 2], [17, 1], [18, 1], [19, 5], [20, 5], [21, 5], [22, 5], [23, 1], [24, 1], [25, 10], [26, 13], [27, 1], [28, 18], [29, 20], [30, 21], [31, 21], [32, 21], [33, 6], [34, 24], [35, 24], [36, 8], [37, 9], [38, 25], [39, 11], [40, 12], [41, 13], [42, 26], [43, 14], [44, 28], [45, 28], [46, 19], [47, 20], [48, 29], [49, 30], [50, 31], [51, 32], [52, 22], [53, 33], [54, 34], [55, 7], [56, 36], [57, 36], [58, 10], [59, 38], [60, 39], [61, 40], [62, 41], [63, 44], [64, 20], [65, 47], [66, 20], [67, 49], [68, 50], [69, 51], [70, 54], [71, 54], [72, 54], [73, 54], [74, 54], [75, 58], [76, 58], [77, 62], [78, 63], [79, 63], [80, 63], [81, 63], [82, 64], [83, 65], [84, 66], [85, 32], [86, 32], [87, 71], [88, 54], [89, 54], [90, 54], [91, 54], [92, 75], [93, 79], [94, 47], [95, 47], [96, 84], [97, 49], [98, 50], [99, 89], [100, 72], [101, 73], [102, 80], [103, 94], [104, 94], [105, 97], [106, 98], [107, 85], [108, 86], [109, 71], [110, 99], [111, 99], [112, 101], [113, 79], [114, 102], [115, 104], [116, 105], [117, 106], [118, 107], [119, 108], [120, 109], [121, 111], [122, 111], [123, 113], [124, 120], [125, 123], [126, 124], [127, 125], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127]]}, {"function_name": "setMessageId", "code": "    protected void setMessageId(Exchange exchange) {\n        if (!(exchange instanceof JmsExchange)) {\n            return;\n        }\n        try {\n            JmsExchange jmsExchange = JmsExchange.class.cast(exchange);\n            JmsMessage out = jmsExchange.getOut(false);\n            if (out != null) {\n                out.setMessageId(out.getJmsMessage().getJMSMessageID());\n            }\n        } catch (JMSException e) {\n            LOG.warn(\"Unable to retrieve JMSMessageID from outgoing JMS Message and \"\n                     + \"set it into Camel's MessageId\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [5, 9], [2, 10], [4, 11], [9, 12], [6, 13], [7, 14], [11, 15], [5, 16], [13, 17], [15, 18], [15, 19], [16, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 5], [10, 2], [11, 4], [12, 9], [13, 6], [14, 7], [15, 11], [16, 5], [17, 13], [18, 15], [19, 15], [20, 16], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getTemplate", "code": "    public JmsOperations getTemplate() {\n        return getInOnlyTemplate();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInOnlyTemplate", "code": "    public JmsOperations getInOnlyTemplate() {\n        if (inOnlyTemplate == null) {\n            inOnlyTemplate = endpoint.createInOnlyTemplate();\n        }\n        return inOnlyTemplate;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setInOnlyTemplate", "code": "    public void setInOnlyTemplate(JmsOperations inOnlyTemplate) {\n        this.inOnlyTemplate = inOnlyTemplate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInOutTemplate", "code": "    public JmsOperations getInOutTemplate() {\n        if (inOutTemplate == null) {\n            inOutTemplate = endpoint.createInOutTemplate();\n        }\n        return inOutTemplate;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setInOutTemplate", "code": "    public void setInOutTemplate(JmsOperations inOutTemplate) {\n        this.inOutTemplate = inOutTemplate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUuidGenerator", "code": "    public UuidGenerator getUuidGenerator() {\n        if (uuidGenerator == null) {\n            uuidGenerator = new UuidGenerator();\n        }\n        return uuidGenerator;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setUuidGenerator", "code": "    public void setUuidGenerator(UuidGenerator uuidGenerator) {\n        this.uuidGenerator = uuidGenerator;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JmsProducer", "code": "    public JmsProducer(JmsEndpoint endpoint) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        JmsConfiguration c = endpoint.getConfiguration();\n        affinity = RequestorAffinity.PER_PRODUCER;\n        if (c.getReplyTo() != null) {\n            if (c.getReplyToTempDestinationAffinity().equals(c.REPLYTO_TEMP_DEST_AFFINITY_PER_ENDPOINT)) {\n                affinity = RequestorAffinity.PER_ENDPOINT;\n            } else if (c.getReplyToTempDestinationAffinity().equals(c.REPLYTO_TEMP_DEST_AFFINITY_PER_COMPONENT)) {\n                affinity = RequestorAffinity.PER_COMPONENT;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [4, 8], [4, 9], [2, 10], [7, 11], [7, 12], [11, 13], [12, 14], [13, 15], [7, 16], [11, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 4], [9, 4], [10, 2], [11, 7], [12, 7], [13, 11], [14, 12], [15, 13], [16, 7], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 0}
{"sample_id": "camel-1.6-2783", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/file/FileConsumer.java", "language": "java", "name": "org.apache.camel.component.file.FileConsumer", "code": "public class FileConsumer extends ScheduledPollConsumer<FileExchange> {\n    private static final transient Log LOG = LogFactory.getLog(FileConsumer.class);\n\n    private FileEndpoint endpoint;\n    private ConcurrentHashMap<File, File> filesBeingProcessed = new ConcurrentHashMap<File, File>();\n    private ConcurrentHashMap<File, Long> fileSizes = new ConcurrentHashMap<File, Long>(new LRUCache(1000));\n    private ConcurrentHashMap<File, Long> noopMap = new ConcurrentHashMap<File, Long>(new LRUCache(1000));\n\n    private long lastPollTime;\n    private int unchangedDelay;\n    private boolean unchangedSize;\n    private boolean generateEmptyExchangeWhenIdle;\n    private boolean alwaysConsume;\n\n    private boolean recursive;\n    private String regexPattern = \"\";\n    private boolean exclusiveReadLock = true;\n\n    public FileConsumer(final FileEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n    }\n\n    protected synchronized void poll() throws Exception {\n        int rc = pollFileOrDirectory(endpoint.getFile(), true);\n\n        if (rc == 0 && generateEmptyExchangeWhenIdle) {\n            final FileExchange exchange = endpoint.createExchange((File)null);\n            getAsyncProcessor().process(exchange, new AsyncCallback() {\n                public void done(boolean sync) {\n                }\n            });\n        }\n\n        lastPollTime = System.currentTimeMillis();\n    }\n\n    /**\n     * Pools the given file or directory for files to process.\n     *\n     * @param fileOrDirectory  file or directory\n     * @param processDir  recursive\n     * @return the number of files processed or being processed async.\n     */\n    protected int pollFileOrDirectory(File fileOrDirectory, boolean processDir) {\n        if (!fileOrDirectory.isDirectory()) {\n            return pollFile(fileOrDirectory);\n        } else if (processDir) {\n            int rc = 0;\n            if (isValidFile(fileOrDirectory)) {\n                if (LOG.isTraceEnabled()) {\n                    LOG.trace(\"Polling directory \" + fileOrDirectory);\n                }\n                File[] files = fileOrDirectory.listFiles();\n                for (File file : files) {\n                }\n            }\n            return rc;\n        } else {\n            if (LOG.isTraceEnabled()) {\n                LOG.trace(\"Skipping directory \" + fileOrDirectory);\n            }\n            return 0;\n        }\n    }\n\n    /**\n     * Polls the given file\n     *\n     * @param target  the file\n     * @return returns 1 if the file was processed, 0 otherwise.\n     */\n    protected int pollFile(final File target) {\n        if (LOG.isTraceEnabled()) {\n            LOG.trace(\"Polling file: \" + target);\n        }\n\n        if (!target.exists()) {\n            return 0;\n        }\n        if (!isValidFile(target)) {\n            return 0;\n        }\n        if (!endpoint.isNoop()) {\n            if (filesBeingProcessed.contains(target)) {\n                return 1;\n            }\n            filesBeingProcessed.put(target, target);\n        }\n\n        final FileProcessStrategy processStrategy = endpoint.getFileStrategy();\n        final FileExchange exchange = endpoint.createExchange(target);\n\n        endpoint.configureMessage(target, exchange.getIn());\n        try {\n            if (exclusiveReadLock) {\n                acquireExclusiveReadLock(target);\n            }\n\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"About to process file: \" + target + \" using exchange: \" + exchange);\n            }\n            if (processStrategy.begin(endpoint, exchange, target)) {\n\n                getAsyncProcessor().process(exchange, new AsyncCallback() {\n                    public void done(boolean sync) {\n                        final File file = exchange.getFile();\n                        boolean failed = exchange.isFailed();\n                        boolean handled = DeadLetterChannel.isFailureHandled(exchange);\n\n                        if (LOG.isDebugEnabled()) {\n                            LOG.debug(\"Done processing file: \" + file + \". Status is: \" + (failed ? \"failed: \" + failed + \", handled by failure processor: \" + handled : \"processed OK\"));\n                        }\n\n                        boolean committed = false;\n                        try {\n                            if (!failed || handled) {\n                                processStrategyCommit(processStrategy, exchange, file, handled);\n                                committed = true;\n                            } else {\n                                handleException(exchange.getException());\n                            }\n                        } finally {\n                            if (!committed) {\n                                processStrategyRollback(processStrategy, exchange, file);\n                            }\n                            filesBeingProcessed.remove(file);\n                        }\n                    }\n                });\n\n            } else {\n                LOG.warn(endpoint + \" can not process file: \" + target);\n            }\n        } catch (Throwable e) {\n            handleException(e);\n        }\n\n        return 1;\n    }\n\n    /**\n     * Acquires exclusive read lock to the given file. Will wait until the lock is granted.\n     * After granting the read lock it is realeased, we just want to make sure that when we start\n     * consuming the file its not currently in progress of being written by third party.\n     */\n    protected void acquireExclusiveReadLock(File file) throws IOException {\n        if (LOG.isTraceEnabled()) {\n            LOG.trace(\"Waiting for exclusive read lock to file: \" + file);\n        }\n\n        FileChannel channel = new RandomAccessFile(file, \"rw\").getChannel();\n        try {\n            FileLock lock = channel.lock();\n            if (LOG.isTraceEnabled()) {\n                LOG.trace(\"Acquired exclusive read lock: \" + lock + \" to file: \" + file);\n            }\n            lock.release();\n        } finally {\n            ObjectHelper.close(channel, \"FileConsumer during acquiring of exclusive read lock\", LOG);\n        }\n    }\n\n    /**\n     * Strategy when the file was processed and a commit should be executed.\n     *\n     * @param processStrategy   the strategy to perform the commit\n     * @param exchange          the exchange\n     * @param file              the file processed\n     * @param failureHandled    is <tt>false</tt> if the exchange was processed succesfully, <tt>true</tt> if\n     * an exception occured during processing but it was handled by the failure processor (usually the\n     * DeadLetterChannel).\n     */\n    protected void processStrategyCommit(FileProcessStrategy processStrategy, FileExchange exchange,\n                                         File file, boolean failureHandled) {\n        try {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Committing file strategy: \" + processStrategy + \" for file: \" + file + (failureHandled ? \" that was handled by the failure processor.\" : \"\"));\n            }\n            processStrategy.commit(endpoint, exchange, file);\n        } catch (Exception e) {\n            LOG.warn(\"Error committing file strategy: \" + processStrategy, e);\n            handleException(e);\n        }\n    }\n\n    /**\n     * Strategy when the file was not processed and a rollback should be executed.\n     *\n     * @param processStrategy   the strategy to perform the commit\n     * @param exchange          the exchange\n     * @param file              the file processed\n     */\n    protected void processStrategyRollback(FileProcessStrategy processStrategy, FileExchange exchange, File file) {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Rolling back file strategy: \" + processStrategy + \" for file: \" + file);\n        }\n        processStrategy.rollback(endpoint, exchange, file);\n    }\n\n    protected boolean isValidFile(File file) {\n        boolean result = false;\n        if (file != null && file.exists()) {\n            if (isMatched(file) && (alwaysConsume || isChanged(file))) {\n                result = true;\n            }\n        }\n        return result;\n    }\n\n    protected boolean isChanged(File file) {\n        if (file == null) {\n            return false;\n        } else if (file.isDirectory()) {\n            return true;\n        } else {\n            boolean lastModifiedCheck = false;\n            long modifiedDuration = 0;\n            if (getUnchangedDelay() > 0) {\n                modifiedDuration = System.currentTimeMillis() - file.lastModified();\n                lastModifiedCheck = modifiedDuration >= getUnchangedDelay();\n            }\n\n            long fileModified = file.lastModified();\n            Long previousModified = noopMap.get(file);\n            noopMap.put(file, fileModified);\n            if (previousModified == null || fileModified > previousModified) {\n                lastModifiedCheck = true;\n            }\n\n            boolean sizeCheck = false;\n            long sizeDifference = 0;\n            if (isUnchangedSize()) {\n                Long value = fileSizes.get(file);\n                if (value == null) {\n                    sizeCheck = true;\n                } else {\n                    sizeCheck = file.length() != value;\n                }\n            }\n\n            boolean answer = lastModifiedCheck || sizeCheck;\n\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"file:\" + file + \" isChanged:\" + answer + \" \" + \"sizeCheck:\" + sizeCheck + \"(\"\n                          + sizeDifference + \") \" + \"lastModifiedCheck:\" + lastModifiedCheck + \"(\"\n                          + modifiedDuration + \")\");\n            }\n\n            if (isUnchangedSize()) {\n                if (answer) {\n                    fileSizes.put(file, file.length());\n                } else {\n                    fileSizes.remove(file);\n                }\n            }\n\n            return answer;\n        }\n    }\n\n    protected boolean isMatched(File file) {\n        String name = file.getName();\n\n        if (name.startsWith(\".\")) {\n            return false;\n        }\n        if (name.endsWith(FileEndpoint.DEFAULT_LOCK_FILE_POSTFIX)) {\n            return false;\n        }\n\n        if (file.isDirectory()) {\n            return true;\n        }\n\n        if (regexPattern != null && regexPattern.length() > 0) {\n            if (!name.matches(regexPattern)) {\n                return false;\n            }\n        }\n\n        if (endpoint.getExcludedNamePrefix() != null) {\n            if (name.startsWith(endpoint.getExcludedNamePrefix())) {\n                return false;\n            }\n        }\n        String[] prefixes = endpoint.getExcludedNamePrefixes();\n        if (prefixes != null) {\n            for (String prefix : prefixes) {\n                if (name.startsWith(prefix)) {\n                    return false;\n                }\n            }\n        }\n        if (endpoint.getExcludedNamePostfix() != null) {\n            if (name.endsWith(endpoint.getExcludedNamePostfix())) {\n                return false;\n            }\n        }\n        String[] postfixes = endpoint.getExcludedNamePostfixes();\n        if (postfixes != null) {\n            for (String postfix : postfixes) {\n                if (name.endsWith(postfix)) {\n                    return false;\n                }\n            }\n        }\n\n        return true;\n    }\n\n    public boolean isRecursive() {\n        return this.recursive;\n    }\n\n    public void setRecursive(boolean recursive) {\n        this.recursive = recursive;\n    }\n\n    public String getRegexPattern() {\n        return this.regexPattern;\n    }\n\n    public void setRegexPattern(String regexPattern) {\n        this.regexPattern = regexPattern;\n    }\n\n    public boolean isGenerateEmptyExchangeWhenIdle() {\n        return generateEmptyExchangeWhenIdle;\n    }\n\n    /**\n     * @deprecated will be removed in Camel 2.0\n     */\n    public void setGenerateEmptyExchangeWhenIdle(boolean generateEmptyExchangeWhenIdle) {\n        this.generateEmptyExchangeWhenIdle = generateEmptyExchangeWhenIdle;\n    }\n\n    public int getUnchangedDelay() {\n        return unchangedDelay;\n    }\n\n    /**\n     * @deprecated will be removed in Camel 2.0\n     */\n    public void setUnchangedDelay(int unchangedDelay) {\n        this.unchangedDelay = unchangedDelay;\n    }\n\n    public boolean isUnchangedSize() {\n        return unchangedSize;\n    }\n\n    /**\n     * @deprecated will be removed in Camel 2.0\n     */\n    public void setUnchangedSize(boolean unchangedSize) {\n        this.unchangedSize = unchangedSize;\n    }\n\n    public boolean isExclusiveReadLock() {\n        return exclusiveReadLock;\n    }\n\n    public void setExclusiveReadLock(boolean exclusiveReadLock) {\n        this.exclusiveReadLock = exclusiveReadLock;\n    }\n\n    public boolean isAlwaysConsume() {\n        return alwaysConsume;\n    }\n\n    /**\n     * @deprecated will be removed in Camel 2.0 (not needed when we get rid of last polltimestamp)\n     */\n    public void setAlwaysConsume(boolean alwaysConsume) {\n        this.alwaysConsume = alwaysConsume;\n    }\n\n    public boolean isTimestamp() {\n        return !alwaysConsume;\n    }\n\n    /**\n     * @deprecated will be removed in Camel 2.0 (not needed when we get rid of last polltimestamp)\n     */\n    public void setTimestamp(boolean timestamp) {\n        this.alwaysConsume = !timestamp;", "functions": [{"function_name": "poll", "code": "    protected synchronized void poll() throws Exception {\n        int rc = pollFileOrDirectory(endpoint.getFile(), true);\n\n        if (rc == 0 && generateEmptyExchangeWhenIdle) {\n            final FileExchange exchange = endpoint.createExchange((File)null);\n            getAsyncProcessor().process(exchange, new AsyncCallback() {\n                public void done(boolean sync) {\n                }\n            });\n        }\n\n        lastPollTime = System.currentTimeMillis();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [4, 7], [2, 8], [1, 9], [7, 10], [8, 11], [8, 12], [9, 13], [6, 14], [13, 15], [15, 16], [14, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 4], [8, 2], [9, 1], [10, 7], [11, 8], [12, 8], [13, 9], [14, 6], [15, 13], [16, 15], [17, 14], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "pollFileOrDirectory", "code": "    protected int pollFileOrDirectory(File fileOrDirectory, boolean processDir) {\n        if (!fileOrDirectory.isDirectory()) {\n            return pollFile(fileOrDirectory);\n        } else if (processDir) {\n            int rc = 0;\n            if (isValidFile(fileOrDirectory)) {\n                if (LOG.isTraceEnabled()) {\n                    LOG.trace(\"Polling directory \" + fileOrDirectory);\n                }\n                File[] files = fileOrDirectory.listFiles();\n                for (File file : files) {\n                }\n            }\n            return rc;\n        } else {\n            if (LOG.isTraceEnabled()) {\n                LOG.trace(\"Skipping directory \" + fileOrDirectory);\n            }\n            return 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "CALL", "RETURN", "RETURN", "IF", "RETURN", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [6, 12], [7, 13], [8, 14], [10, 15], [10, 16], [10, 17], [10, 18], [11, 19], [8, 20], [18, 21], [20, 22], [17, 23], [22, 24], [18, 25], [25, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 4], [11, 4], [12, 6], [13, 7], [14, 8], [15, 10], [16, 10], [17, 10], [18, 10], [19, 11], [20, 8], [21, 18], [22, 20], [23, 17], [24, 22], [25, 18], [26, 25], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "pollFile", "code": "    protected int pollFile(final File target) {\n        if (LOG.isTraceEnabled()) {\n            LOG.trace(\"Polling file: \" + target);\n        }\n\n        if (!target.exists()) {\n            return 0;\n        }\n        if (!isValidFile(target)) {\n            return 0;\n        }\n        if (!endpoint.isNoop()) {\n            if (filesBeingProcessed.contains(target)) {\n                return 1;\n            }\n            filesBeingProcessed.put(target, target);\n        }\n\n        final FileProcessStrategy processStrategy = endpoint.getFileStrategy();\n        final FileExchange exchange = endpoint.createExchange(target);\n\n        endpoint.configureMessage(target, exchange.getIn());\n        try {\n            if (exclusiveReadLock) {\n                acquireExclusiveReadLock(target);\n            }\n\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"About to process file: \" + target + \" using exchange: \" + exchange);\n            }\n            if (processStrategy.begin(endpoint, exchange, target)) {\n\n                getAsyncProcessor().process(exchange, new AsyncCallback() {\n                    public void done(boolean sync) {\n                        final File file = exchange.getFile();\n                        boolean failed = exchange.isFailed();\n                        boolean handled = DeadLetterChannel.isFailureHandled(exchange);\n\n                        if (LOG.isDebugEnabled()) {\n                            LOG.debug(\"Done processing file: \" + file + \". Status is: \" + (failed ? \"failed: \" + failed + \", handled by failure processor: \" + handled : \"processed OK\"));\n                        }\n\n                        boolean committed = false;\n                        try {\n                            if (!failed || handled) {\n                                processStrategyCommit(processStrategy, exchange, file, handled);\n                                committed = true;\n                            } else {\n                                handleException(exchange.getException());\n                            }\n                        } finally {\n                            if (!committed) {\n                                processStrategyRollback(processStrategy, exchange, file);\n                            }\n                            filesBeingProcessed.remove(file);\n                        }\n                    }\n                });\n\n            } else {\n                LOG.warn(endpoint + \" can not process file: \" + target);\n            }\n        } catch (Throwable e) {\n            handleException(e);\n        }\n\n        return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "RETURN", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "FUNC_DECL", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [2, 13], [2, 14], [0, 15], [5, 16], [6, 17], [7, 18], [8, 19], [12, 20], [13, 21], [15, 22], [3, 23], [4, 24], [5, 25], [6, 26], [7, 27], [11, 28], [5, 29], [25, 30], [26, 31], [27, 32], [8, 33], [12, 34], [12, 35], [13, 36], [14, 37], [25, 38], [33, 39], [34, 40], [35, 41], [36, 42], [38, 43], [39, 44], [40, 45], [41, 46], [42, 47], [45, 48], [46, 49], [47, 50], [47, 51], [49, 52], [49, 53], [49, 54], [49, 55], [49, 56], [49, 57], [49, 58], [51, 59], [52, 60], [52, 61], [54, 62], [52, 63], [61, 64], [53, 65], [55, 66], [56, 67], [57, 68], [54, 69], [60, 70], [61, 71], [61, 72], [61, 73], [69, 74], [71, 75], [72, 76], [74, 77], [74, 78], [77, 79], [77, 80], [78, 81], [78, 82], [80, 83], [82, 84], [83, 85], [83, 86], [86, 87], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 2], [14, 2], [15, 0], [16, 5], [17, 6], [18, 7], [19, 8], [20, 12], [21, 13], [22, 15], [23, 3], [24, 4], [25, 5], [26, 6], [27, 7], [28, 11], [29, 5], [30, 25], [31, 26], [32, 27], [33, 8], [34, 12], [35, 12], [36, 13], [37, 14], [38, 25], [39, 33], [40, 34], [41, 35], [42, 36], [43, 38], [44, 39], [45, 40], [46, 41], [47, 42], [48, 45], [49, 46], [50, 47], [51, 47], [52, 49], [53, 49], [54, 49], [55, 49], [56, 49], [57, 49], [58, 49], [59, 51], [60, 52], [61, 52], [62, 54], [63, 52], [64, 61], [65, 53], [66, 55], [67, 56], [68, 57], [69, 54], [70, 60], [71, 61], [72, 61], [73, 61], [74, 69], [75, 71], [76, 72], [77, 74], [78, 74], [79, 77], [80, 77], [81, 78], [82, 78], [83, 80], [84, 82], [85, 83], [86, 83], [87, 86], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}, {"function_name": "acquireExclusiveReadLock", "code": "    protected void acquireExclusiveReadLock(File file) throws IOException {\n        if (LOG.isTraceEnabled()) {\n            LOG.trace(\"Waiting for exclusive read lock to file: \" + file);\n        }\n\n        FileChannel channel = new RandomAccessFile(file, \"rw\").getChannel();\n        try {\n            FileLock lock = channel.lock();\n            if (LOG.isTraceEnabled()) {\n                LOG.trace(\"Acquired exclusive read lock: \" + lock + \" to file: \" + file);\n            }\n            lock.release();\n        } finally {\n            ObjectHelper.close(channel, \"FileConsumer during acquiring of exclusive read lock\", LOG);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [3, 7], [1, 8], [1, 9], [5, 10], [2, 11], [8, 12], [6, 13], [11, 14], [11, 15], [3, 16], [5, 17], [16, 18], [17, 19], [18, 20], [19, 21], [21, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 3], [8, 1], [9, 1], [10, 5], [11, 2], [12, 8], [13, 6], [14, 11], [15, 11], [16, 3], [17, 5], [18, 16], [19, 17], [20, 18], [21, 19], [22, 21], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "processStrategyCommit", "code": "    protected void processStrategyCommit(FileProcessStrategy processStrategy, FileExchange exchange,\n                                         File file, boolean failureHandled) {\n        try {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Committing file strategy: \" + processStrategy + \" for file: \" + file + (failureHandled ? \" that was handled by the failure processor.\" : \"\"));\n            }\n            processStrategy.commit(endpoint, exchange, file);\n        } catch (Exception e) {\n            LOG.warn(\"Error committing file strategy: \" + processStrategy, e);\n            handleException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [7, 9], [6, 10], [6, 11], [11, 12], [7, 13], [12, 14], [13, 15], [15, 16], [15, 17], [16, 18], [16, 19], [17, 20], [20, 21], [20, 22], [22, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 7], [10, 6], [11, 6], [12, 11], [13, 7], [14, 12], [15, 13], [16, 15], [17, 15], [18, 16], [19, 16], [20, 17], [21, 20], [22, 20], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "processStrategyRollback", "code": "    protected void processStrategyRollback(FileProcessStrategy processStrategy, FileExchange exchange, File file) {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Rolling back file strategy: \" + processStrategy + \" for file: \" + file);\n        }\n        processStrategy.rollback(endpoint, exchange, file);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [7, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 7], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "isValidFile", "code": "    protected boolean isValidFile(File file) {\n        boolean result = false;\n        if (file != null && file.exists()) {\n            if (isMatched(file) && (alwaysConsume || isChanged(file))) {\n                result = true;\n            }\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [6, 10], [8, 11], [10, 12], [10, 13], [6, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 6], [11, 8], [12, 10], [13, 10], [14, 6], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isChanged", "code": "    protected boolean isChanged(File file) {\n        if (file == null) {\n            return false;\n        } else if (file.isDirectory()) {\n            return true;\n        } else {\n            boolean lastModifiedCheck = false;\n            long modifiedDuration = 0;\n            if (getUnchangedDelay() > 0) {\n                modifiedDuration = System.currentTimeMillis() - file.lastModified();\n                lastModifiedCheck = modifiedDuration >= getUnchangedDelay();\n            }\n\n            long fileModified = file.lastModified();\n            Long previousModified = noopMap.get(file);\n            noopMap.put(file, fileModified);\n            if (previousModified == null || fileModified > previousModified) {\n                lastModifiedCheck = true;\n            }\n\n            boolean sizeCheck = false;\n            long sizeDifference = 0;\n            if (isUnchangedSize()) {\n                Long value = fileSizes.get(file);\n                if (value == null) {\n                    sizeCheck = true;\n                } else {\n                    sizeCheck = file.length() != value;\n                }\n            }\n\n            boolean answer = lastModifiedCheck || sizeCheck;\n\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"file:\" + file + \" isChanged:\" + answer + \" \" + \"sizeCheck:\" + sizeCheck + \"(\"\n                          + sizeDifference + \") \" + \"lastModifiedCheck:\" + lastModifiedCheck + \"(\"\n                          + modifiedDuration + \")\");\n            }\n\n            if (isUnchangedSize()) {\n                if (answer) {\n                    fileSizes.put(file, file.length());\n                } else {\n                    fileSizes.remove(file);\n                }\n            }\n\n            return answer;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [4, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [6, 22], [9, 23], [10, 24], [12, 25], [15, 26], [3, 27], [18, 28], [21, 29], [9, 30], [11, 31], [12, 32], [12, 33], [13, 34], [14, 35], [26, 36], [26, 37], [16, 38], [17, 39], [28, 40], [28, 41], [19, 42], [20, 43], [10, 44], [32, 45], [15, 46], [37, 47], [18, 48], [18, 49], [44, 50], [45, 51], [33, 52], [46, 53], [48, 54], [49, 55], [30, 56], [30, 57], [50, 58], [50, 59], [32, 60], [32, 61], [54, 62], [55, 63], [55, 64], [57, 65], [59, 66], [60, 67], [61, 68], [66, 69], [66, 70], [67, 71], [70, 72], [72, 73], [72, 74], [74, 75], [74, 76], [76, 77], [77, 78], [77, 79], [79, 80], [80, 81], [80, 82], [82, 83], [82, 84], [84, 85], [85, 86], [85, 87], [87, 88], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 4], [8, 3], [9, 3], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 3], [22, 6], [23, 9], [24, 10], [25, 12], [26, 15], [27, 3], [28, 18], [29, 21], [30, 9], [31, 11], [32, 12], [33, 12], [34, 13], [35, 14], [36, 26], [37, 26], [38, 16], [39, 17], [40, 28], [41, 28], [42, 19], [43, 20], [44, 10], [45, 32], [46, 15], [47, 37], [48, 18], [49, 18], [50, 44], [51, 45], [52, 33], [53, 46], [54, 48], [55, 49], [56, 30], [57, 30], [58, 50], [59, 50], [60, 32], [61, 32], [62, 54], [63, 55], [64, 55], [65, 57], [66, 59], [67, 60], [68, 61], [69, 66], [70, 66], [71, 67], [72, 70], [73, 72], [74, 72], [75, 74], [76, 74], [77, 76], [78, 77], [79, 77], [80, 79], [81, 80], [82, 80], [83, 82], [84, 82], [85, 84], [86, 85], [87, 85], [88, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "isMatched", "code": "    protected boolean isMatched(File file) {\n        String name = file.getName();\n\n        if (name.startsWith(\".\")) {\n            return false;\n        }\n        if (name.endsWith(FileEndpoint.DEFAULT_LOCK_FILE_POSTFIX)) {\n            return false;\n        }\n\n        if (file.isDirectory()) {\n            return true;\n        }\n\n        if (regexPattern != null && regexPattern.length() > 0) {\n            if (!name.matches(regexPattern)) {\n                return false;\n            }\n        }\n\n        if (endpoint.getExcludedNamePrefix() != null) {\n            if (name.startsWith(endpoint.getExcludedNamePrefix())) {\n                return false;\n            }\n        }\n        String[] prefixes = endpoint.getExcludedNamePrefixes();\n        if (prefixes != null) {\n            for (String prefix : prefixes) {\n                if (name.startsWith(prefix)) {\n                    return false;\n                }\n            }\n        }\n        if (endpoint.getExcludedNamePostfix() != null) {\n            if (name.endsWith(endpoint.getExcludedNamePostfix())) {\n                return false;\n            }\n        }\n        String[] postfixes = endpoint.getExcludedNamePostfixes();\n        if (postfixes != null) {\n            for (String postfix : postfixes) {\n                if (name.endsWith(postfix)) {\n                    return false;\n                }\n            }\n        }\n\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "CALL", "IF", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [4, 16], [5, 17], [7, 18], [8, 19], [9, 20], [10, 21], [11, 22], [2, 23], [15, 24], [3, 25], [4, 26], [16, 27], [16, 28], [5, 29], [17, 30], [6, 31], [7, 32], [18, 33], [18, 34], [8, 35], [19, 36], [19, 37], [9, 38], [10, 39], [11, 40], [22, 41], [12, 42], [26, 43], [32, 44], [35, 45], [36, 46], [36, 47], [37, 48], [38, 49], [39, 50], [40, 51], [23, 52], [26, 53], [43, 54], [29, 55], [32, 56], [44, 57], [35, 58], [52, 59], [53, 60], [55, 61], [56, 62], [58, 63], [52, 64], [55, 65], [64, 66], [65, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 4], [17, 5], [18, 7], [19, 8], [20, 9], [21, 10], [22, 11], [23, 2], [24, 15], [25, 3], [26, 4], [27, 16], [28, 16], [29, 5], [30, 17], [31, 6], [32, 7], [33, 18], [34, 18], [35, 8], [36, 19], [37, 19], [38, 9], [39, 10], [40, 11], [41, 22], [42, 12], [43, 26], [44, 32], [45, 35], [46, 36], [47, 36], [48, 37], [49, 38], [50, 39], [51, 40], [52, 23], [53, 26], [54, 43], [55, 29], [56, 32], [57, 44], [58, 35], [59, 52], [60, 53], [61, 55], [62, 56], [63, 58], [64, 52], [65, 55], [66, 64], [67, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "isRecursive", "code": "    public boolean isRecursive() {\n        return this.recursive;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRecursive", "code": "    public void setRecursive(boolean recursive) {\n        this.recursive = recursive;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRegexPattern", "code": "    public String getRegexPattern() {\n        return this.regexPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRegexPattern", "code": "    public void setRegexPattern(String regexPattern) {\n        this.regexPattern = regexPattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isGenerateEmptyExchangeWhenIdle", "code": "    public boolean isGenerateEmptyExchangeWhenIdle() {\n        return generateEmptyExchangeWhenIdle;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setGenerateEmptyExchangeWhenIdle", "code": "    public void setGenerateEmptyExchangeWhenIdle(boolean generateEmptyExchangeWhenIdle) {\n        this.generateEmptyExchangeWhenIdle = generateEmptyExchangeWhenIdle;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUnchangedDelay", "code": "    public int getUnchangedDelay() {\n        return unchangedDelay;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUnchangedDelay", "code": "    public void setUnchangedDelay(int unchangedDelay) {\n        this.unchangedDelay = unchangedDelay;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isUnchangedSize", "code": "    public boolean isUnchangedSize() {\n        return unchangedSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUnchangedSize", "code": "    public void setUnchangedSize(boolean unchangedSize) {\n        this.unchangedSize = unchangedSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isExclusiveReadLock", "code": "    public boolean isExclusiveReadLock() {\n        return exclusiveReadLock;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExclusiveReadLock", "code": "    public void setExclusiveReadLock(boolean exclusiveReadLock) {\n        this.exclusiveReadLock = exclusiveReadLock;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAlwaysConsume", "code": "    public boolean isAlwaysConsume() {\n        return alwaysConsume;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAlwaysConsume", "code": "    public void setAlwaysConsume(boolean alwaysConsume) {\n        this.alwaysConsume = alwaysConsume;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isTimestamp", "code": "    public boolean isTimestamp() {\n        return !alwaysConsume;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimestamp", "code": "    public void setTimestamp(boolean timestamp) {\n        this.alwaysConsume = !timestamp;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FileConsumer", "code": "    public FileConsumer(final FileEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.6-7921", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/extensions/ExtensionNamespaceSupport.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionNamespaceSupport", "code": "public class ExtensionNamespaceSupport\n{\n  String m_namespace = null;\n  String m_handlerClass = null;\n  Class [] m_sig = null;  \n  Object [] m_args = null;\n \n  public ExtensionNamespaceSupport(String namespace, \n                                   String handlerClass, \n                                   Object[] constructorArgs)\n  {\n    m_namespace = namespace;\n    m_handlerClass = handlerClass;\n    m_args = constructorArgs;\n    m_sig = new Class[m_args.length];\n    for (int i = 0; i < m_args.length; i++)\n    {\n      if (m_args[i] != null)\n      {\n        m_sig = null;\n        break;\n      }\n    }\n  }\n  \n  public String getNamespace()\n  {\n    return m_namespace;\n  }\n  \n  /**\n   * Launch the ExtensionHandler that this ExtensionNamespaceSupport object defines.\n   */\n  public ExtensionHandler launch()\n    throws TransformerException\n  {\n    ExtensionHandler handler = null;\n    try\n    {\n      Class cl = ExtensionHandler.getClassForName(m_handlerClass);\n      Constructor con = null;\n      if (m_sig != null)\n        con = cl.getConstructor(m_sig);\n      {\n        Constructor[] cons = cl.getConstructors();\n        for (int i = 0; i < cons.length; i ++)\n        {\n          if (cons[i].getParameterTypes().length == m_args.length)\n          {\n            con = cons[i];\n            break;\n          }\n        }\n      }\n      if (con != null)\n        handler = (ExtensionHandler)con.newInstance(m_args);\n      else\n        throw new TransformerException(\"ExtensionHandler constructor not found\");\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException(e);\n    }\n    return handler;", "functions": [{"function_name": "getNamespace", "code": "  public String getNamespace()\n  {\n    return m_namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "launch", "code": "  public ExtensionHandler launch()\n    throws TransformerException\n  {\n    ExtensionHandler handler = null;\n    try\n    {\n      Class cl = ExtensionHandler.getClassForName(m_handlerClass);\n      Constructor con = null;\n      if (m_sig != null)\n        con = cl.getConstructor(m_sig);\n      {\n        Constructor[] cons = cl.getConstructors();\n        for (int i = 0; i < cons.length; i ++)\n        {\n          if (cons[i].getParameterTypes().length == m_args.length)\n          {\n            con = cons[i];\n            break;\n          }\n        }\n      }\n      if (con != null)\n        handler = (ExtensionHandler)con.newInstance(m_args);\n      else\n        throw new TransformerException(\"ExtensionHandler constructor not found\");\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException(e);\n    }\n    return handler;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "IF", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [6, 14], [3, 15], [9, 16], [10, 17], [5, 18], [11, 19], [12, 20], [6, 21], [14, 22], [7, 23], [8, 24], [17, 25], [12, 26], [13, 27], [21, 28], [18, 29], [26, 30], [12, 31], [26, 32], [26, 33], [30, 34], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 6], [15, 3], [16, 9], [17, 10], [18, 5], [19, 11], [20, 12], [21, 6], [22, 14], [23, 7], [24, 8], [25, 17], [26, 12], [27, 13], [28, 21], [29, 18], [30, 26], [31, 12], [32, 26], [33, 26], [34, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "ExtensionNamespaceSupport", "code": "  public ExtensionNamespaceSupport(String namespace, \n                                   String handlerClass, \n                                   Object[] constructorArgs)\n  {\n    m_namespace = namespace;\n    m_handlerClass = handlerClass;\n    m_args = constructorArgs;\n    m_sig = new Class[m_args.length];\n    for (int i = 0; i < m_args.length; i++)\n    {\n      if (m_args[i] != null)\n      {\n        m_sig = null;\n        break;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [10, 11], [1, 12], [10, 13], [11, 14], [10, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 10], [12, 1], [13, 10], [14, 11], [15, 10], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "poi-2.0-5373", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/formula/ExpPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.ExpPtg", "code": "public class ExpPtg\n    extends Ptg\n{\n    private final static int  SIZE = 5;\n    public final static short sid  = 0x1;\n\t private\tbyte[] existing = null;\n\n    /** Creates new ExpPtg */\n\n    public ExpPtg()\n    {\n    }\n\n    /** Creates new ExpPtg */\n\n    public ExpPtg(byte [] array, int offset)\n    {\n    \texisting = new byte[this.getSize()];\n    \tSystem.arraycopy(array, offset, existing, 0, this.getSize());\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n    \tif (existing != null) {\n\t\t\tSystem.arraycopy(existing, 0, array, offset, existing.length);\n    \t}\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public String toFormulaString(Workbook book)\n    {\n        return \"NO IDEA SHARED FORMULA EXP PTG\";\n    }\n    \n    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}\n    \n    public Object clone() {\n\t\tif (this.existing == null) throw new RuntimeException(\"NO IDEA SHARED FORMULA EXP PTG\"); \n\t\t\n    \treturn new ExpPtg(this.existing, 0);", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n    \tif (existing != null) {\n\t\t\tSystem.arraycopy(existing, 0, array, offset, existing.length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \"NO IDEA SHARED FORMULA EXP PTG\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n\t\tif (this.existing == null) throw new RuntimeException(\"NO IDEA SHARED FORMULA EXP PTG\"); \n\t\t\n    \treturn new ExpPtg(this.existing, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [3, 6], [4, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 3], [7, 4], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ExpPtg", "code": "    public ExpPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ExpPtg", "code": "    public ExpPtg(byte [] array, int offset)\n    {\n    \texisting = new byte[this.getSize()];\n    \tSystem.arraycopy(array, offset, existing, 0, this.getSize());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "jedit-4.3-4785", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/util/SyntaxUtilities.java", "language": "java", "name": "org.gjt.sp.util.SyntaxUtilities", "code": "public class SyntaxUtilities\n{\n\tpublic static IPropertyManager propertyManager;\n\t\n\t\n\t//{{{ getColorHexString() method\n\t/**\n\t * Converts a color object to its hex value. The hex value\n\t * prefixed is with `#', for example `#ff0088'.\n\t * @param c The color object\n\t * @since jEdit 4.3pre13\t \n\t */\n\tpublic static String getColorHexString(Color c)\n\t{\n\t\tString colString = Integer.toHexString(c.getRGB() & 0xffffff);\n\t\treturn \"#000000\".substring(0,7 - colString.length()).concat(colString);\n\t} //}}}\n\t\n\t//{{{ parseColor() method\n\t/**\n\t * @since jEdit 4.3pre13\n\t */\n\tpublic static Color parseColor(String name, Color defaultColor)\n\t{\n\t\tif(name == null || name.length() == 0)\n\t\t\treturn defaultColor;\n\t\telse if(name.charAt(0) == '#')\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Color.decode(name);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn defaultColor;\n\t\t\t}\n\t\t}\n\t\telse if(\"red\".equals(name))\n\t\t\treturn Color.red;\n\t\telse if(\"green\".equals(name))\n\t\t\treturn Color.green;\n\t\telse if(\"blue\".equals(name))\n\t\t\treturn Color.blue;\n\t\telse if(\"yellow\".equals(name))\n\t\t\treturn Color.yellow;\n\t\telse if(\"orange\".equals(name))\n\t\t\treturn Color.orange;\n\t\telse if(\"white\".equals(name))\n\t\t\treturn Color.white;\n\t\telse if(\"lightGray\".equals(name))\n\t\t\treturn Color.lightGray;\n\t\telse if(\"gray\".equals(name))\n\t\t\treturn Color.gray;\n\t\telse if(\"darkGray\".equals(name))\n\t\t\treturn Color.darkGray;\n\t\telse if(\"black\".equals(name))\n\t\t\treturn Color.black;\n\t\telse if(\"cyan\".equals(name))\n\t\t\treturn Color.cyan;\n\t\telse if(\"magenta\".equals(name))\n\t\t\treturn Color.magenta;\n\t\telse if(\"pink\".equals(name))\n\t\t\treturn Color.pink;\n\t\telse\n\t\t\treturn defaultColor;\n\t} //}}}\n\t\n\t//{{{ parseStyle() method\n\t/**\n\t * Converts a style string to a style object.\n\t * @param str The style string\n\t * @param family Style strings only specify font style, not font family\n\t * @param size Style strings only specify font style, not font family\n\t * @param color If false, the styles will be monochrome\n\t * @param defaultFgColor Default foreground color (if not specified in style string)\n\t * @exception IllegalArgumentException if the style is invalid\n\t * @since jEdit 4.3pre17\n\t */\n\tpublic static SyntaxStyle parseStyle(String str, String family, int size,\n\t\tboolean color, Color defaultFgColor)\n\t\tthrows IllegalArgumentException\n\t{\n\t\tColor fgColor = defaultFgColor;\n\t\tColor bgColor = null;\n\t\tboolean italic = false;\n\t\tboolean bold = false;\n\t\tStringTokenizer st = new StringTokenizer(str);\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString s = st.nextToken();\n\t\t\tif(s.startsWith(\"color:\"))\n\t\t\t{\n\t\t\t\tif(color)\n\t\t\t\t\tfgColor = parseColor(s.substring(6), Color.black);\n\t\t\t}\n\t\t\telse if(s.startsWith(\"bgColor:\"))\n\t\t\t{\n\t\t\t\tif(color)\n\t\t\t\t\tbgColor = parseColor(s.substring(8), null);\n\t\t\t}\n\t\t\telse if(s.startsWith(\"style:\"))\n\t\t\t{\n\t\t\t\tfor(int i = 6; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(s.charAt(i) == 'i')\n\t\t\t\t\t\titalic = true;\n\t\t\t\t\telse if(s.charAt(i) == 'b')\n\t\t\t\t\t\tbold = true;\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\t\"Invalid style: \" + s);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"Invalid directive: \" + s);\n\t\t}\n\t\treturn new SyntaxStyle(fgColor,bgColor,\n\t\t\t\tnew Font(family,\n\t\t\t\t\t\t(italic ? Font.ITALIC : 0) | (bold ? Font.BOLD : 0),\n\t\t\t\t\t\tsize));\n\t} //}}}\n\t\t\n\t//{{{ parseStyle() method\n\t/**\n\t * Converts a style string to a style object.\n\t * @param str The style string\n\t * @param family Style strings only specify font style, not font family\n\t * @param size Style strings only specify font style, not font family\n\t * @param color If false, the styles will be monochrome\n\t * @exception IllegalArgumentException if the style is invalid\n\t * @since jEdit 4.3pre13\n\t */\n\tpublic static SyntaxStyle parseStyle(String str, String family, int size,\n\t\tboolean color)\n\t\tthrows IllegalArgumentException\n\t{\n\t\treturn parseStyle(str, family, size, color, Color.black);\n\t} //}}}\n\t\n\t//{{{ loadStyles() methods\n\t/**\n\t * Loads the syntax styles from the properties, giving them the specified\n\t * base font family and size.\n\t * @param family The font family\n\t * @param size The font size\n\t * @since jEdit 4.3pre13\n\t */\n\tpublic static SyntaxStyle[] loadStyles(String family, int size)\n\t{\n\t\treturn loadStyles(family,size,true);\n\t}\n\t\n\t/**\n\t * Loads the syntax styles from the properties, giving them the specified\n\t * base font family and size.\n\t * @param family The font family\n\t * @param size The font size\n\t * @param color If false, the styles will be monochrome\n\t * @since jEdit 4.3pre13\n\t */\n\tpublic static SyntaxStyle[] loadStyles(String family, int size, boolean color)\n\t{\n\t\tSyntaxStyle[] styles = new SyntaxStyle[Token.ID_COUNT];\n\n\t\t// start at 1 not 0 to skip Token.NULL\n\t\tfor(int i = 1; i < styles.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString styleName = \"view.style.\"\n\t\t\t\t\t+ Token.tokenToString((byte)i)\n\t\t\t\t\t.toLowerCase(Locale.ENGLISH);\n\t\t\t\tstyles[i] = parseStyle(\n\t\t\t\t\tpropertyManager.getProperty(styleName),\n\t\t\t\t\tfamily,size,color);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,StandardUtilities.class,e);\n\t\t\t}\n\t\t}\n\n\t\treturn styles;\n\t} //}}}\n\t\n\tprivate SyntaxUtilities(){}", "functions": [{"function_name": "getColorHexString", "code": "\tpublic static String getColorHexString(Color c)\n\t{\n\t\tString colString = Integer.toHexString(c.getRGB() & 0xffffff);\n\t\treturn \"#000000\".substring(0,7 - colString.length()).concat(colString);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [6, 8], [6, 9], [7, 10], [8, 11], [8, 12], [10, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 6], [9, 6], [10, 7], [11, 8], [12, 8], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "parseColor", "code": "\tpublic static Color parseColor(String name, Color defaultColor)\n\t{\n\t\tif(name == null || name.length() == 0)\n\t\t\treturn defaultColor;\n\t\telse if(name.charAt(0) == '#')\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Color.decode(name);\n\t\t\t}\n\t\t\tcatch(NumberFormatException nf)\n\t\t\t{\n\t\t\t\treturn defaultColor;\n\t\t\t}\n\t\t}\n\t\telse if(\"red\".equals(name))\n\t\t\treturn Color.red;\n\t\telse if(\"green\".equals(name))\n\t\t\treturn Color.green;\n\t\telse if(\"blue\".equals(name))\n\t\t\treturn Color.blue;\n\t\telse if(\"yellow\".equals(name))\n\t\t\treturn Color.yellow;\n\t\telse if(\"orange\".equals(name))\n\t\t\treturn Color.orange;\n\t\telse if(\"white\".equals(name))\n\t\t\treturn Color.white;\n\t\telse if(\"lightGray\".equals(name))\n\t\t\treturn Color.lightGray;\n\t\telse if(\"gray\".equals(name))\n\t\t\treturn Color.gray;\n\t\telse if(\"darkGray\".equals(name))\n\t\t\treturn Color.darkGray;\n\t\telse if(\"black\".equals(name))\n\t\t\treturn Color.black;\n\t\telse if(\"cyan\".equals(name))\n\t\t\treturn Color.cyan;\n\t\telse if(\"magenta\".equals(name))\n\t\t\treturn Color.magenta;\n\t\telse if(\"pink\".equals(name))\n\t\t\treturn Color.pink;\n\t\telse\n\t\t\treturn defaultColor;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "RETURN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "CATCH", "RETURN", "LITERAL_ANCHOR", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [6, 9], [6, 10], [7, 11], [7, 12], [7, 13], [4, 14], [8, 15], [8, 16], [9, 17], [9, 18], [10, 19], [11, 20], [11, 21], [11, 22], [13, 23], [14, 24], [14, 25], [16, 26], [20, 27], [20, 28], [20, 29], [22, 30], [24, 31], [25, 32], [27, 33], [27, 34], [27, 35], [29, 36], [33, 37], [33, 38], [33, 39], [35, 40], [37, 41], [37, 42], [37, 43], [39, 44], [41, 45], [41, 46], [41, 47], [43, 48], [45, 49], [45, 50], [45, 51], [47, 52], [49, 53], [49, 54], [49, 55], [51, 56], [53, 57], [53, 58], [53, 59], [55, 60], [57, 61], [57, 62], [57, 63], [59, 64], [61, 65], [61, 66], [61, 67], [63, 68], [65, 69], [65, 70], [65, 71], [67, 72], [71, 73], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 6], [10, 6], [11, 7], [12, 7], [13, 7], [14, 4], [15, 8], [16, 8], [17, 9], [18, 9], [19, 10], [20, 11], [21, 11], [22, 11], [23, 13], [24, 14], [25, 14], [26, 16], [27, 20], [28, 20], [29, 20], [30, 22], [31, 24], [32, 25], [33, 27], [34, 27], [35, 27], [36, 29], [37, 33], [38, 33], [39, 33], [40, 35], [41, 37], [42, 37], [43, 37], [44, 39], [45, 41], [46, 41], [47, 41], [48, 43], [49, 45], [50, 45], [51, 45], [52, 47], [53, 49], [54, 49], [55, 49], [56, 51], [57, 53], [58, 53], [59, 53], [60, 55], [61, 57], [62, 57], [63, 57], [64, 59], [65, 61], [66, 61], [67, 61], [68, 63], [69, 65], [70, 65], [71, 65], [72, 67], [73, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "parseStyle", "code": "\tpublic static SyntaxStyle parseStyle(String str, String family, int size,\n\t\tboolean color, Color defaultFgColor)\n\t\tthrows IllegalArgumentException\n\t{\n\t\tColor fgColor = defaultFgColor;\n\t\tColor bgColor = null;\n\t\tboolean italic = false;\n\t\tboolean bold = false;\n\t\tStringTokenizer st = new StringTokenizer(str);\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString s = st.nextToken();\n\t\t\tif(s.startsWith(\"color:\"))\n\t\t\t{\n\t\t\t\tif(color)\n\t\t\t\t\tfgColor = parseColor(s.substring(6), Color.black);\n\t\t\t}\n\t\t\telse if(s.startsWith(\"bgColor:\"))\n\t\t\t{\n\t\t\t\tif(color)\n\t\t\t\t\tbgColor = parseColor(s.substring(8), null);\n\t\t\t}\n\t\t\telse if(s.startsWith(\"style:\"))\n\t\t\t{\n\t\t\t\tfor(int i = 6; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tif(s.charAt(i) == 'i')\n\t\t\t\t\t\titalic = true;\n\t\t\t\t\telse if(s.charAt(i) == 'b')\n\t\t\t\t\t\tbold = true;\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\t\"Invalid style: \" + s);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"Invalid directive: \" + s);\n\t\t}\n\t\treturn new SyntaxStyle(fgColor,bgColor,\n\t\t\t\tnew Font(family,\n\t\t\t\t\t\t(italic ? Font.ITALIC : 0) | (bold ? Font.BOLD : 0),\n\t\t\t\t\t\tsize));", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "COND_EXPR", "COND_EXPR", "IF", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [13, 15], [2, 16], [2, 17], [3, 18], [4, 19], [5, 20], [6, 21], [15, 22], [16, 23], [16, 24], [22, 25], [22, 26], [23, 27], [23, 28], [16, 29], [24, 30], [17, 31], [25, 32], [26, 33], [27, 34], [27, 35], [23, 36], [28, 37], [34, 38], [27, 39], [35, 40], [29, 41], [38, 42], [39, 43], [36, 44], [41, 45], [42, 46], [39, 47], [43, 48], [44, 49], [45, 50], [47, 51], [47, 52], [39, 53], [49, 54], [49, 55], [50, 56], [51, 57], [51, 58], [47, 59], [52, 60], [52, 61], [55, 62], [57, 63], [51, 64], [58, 65], [58, 66], [59, 67], [63, 68], [64, 69], [68, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 13], [16, 2], [17, 2], [18, 3], [19, 4], [20, 5], [21, 6], [22, 15], [23, 16], [24, 16], [25, 22], [26, 22], [27, 23], [28, 23], [29, 16], [30, 24], [31, 17], [32, 25], [33, 26], [34, 27], [35, 27], [36, 23], [37, 28], [38, 34], [39, 27], [40, 35], [41, 29], [42, 38], [43, 39], [44, 36], [45, 41], [46, 42], [47, 39], [48, 43], [49, 44], [50, 45], [51, 47], [52, 47], [53, 39], [54, 49], [55, 49], [56, 50], [57, 51], [58, 51], [59, 47], [60, 52], [61, 52], [62, 55], [63, 57], [64, 51], [65, 58], [66, 58], [67, 59], [68, 63], [69, 64], [70, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "parseStyle", "code": "\tpublic static SyntaxStyle parseStyle(String str, String family, int size,\n\t\tboolean color)\n\t\tthrows IllegalArgumentException\n\t{\n\t\treturn parseStyle(str, family, size, color, Color.black);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "loadStyles", "code": "\tpublic static SyntaxStyle[] loadStyles(String family, int size)\n\t{\n\t\treturn loadStyles(family,size,true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "loadStyles", "code": "\tpublic static SyntaxStyle[] loadStyles(String family, int size, boolean color)\n\t{\n\t\tSyntaxStyle[] styles = new SyntaxStyle[Token.ID_COUNT];\n\n\t\t// start at 1 not 0 to skip Token.NULL\n\t\tfor(int i = 1; i < styles.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString styleName = \"view.style.\"\n\t\t\t\t\t+ Token.tokenToString((byte)i)\n\t\t\t\t\t.toLowerCase(Locale.ENGLISH);\n\t\t\t\tstyles[i] = parseStyle(\n\t\t\t\t\tpropertyManager.getProperty(styleName),\n\t\t\t\t\tfamily,size,color);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,StandardUtilities.class,e);\n\t\t\t}\n\t\t}\n\n\t\treturn styles;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "TRY", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [8, 9], [8, 10], [2, 11], [8, 12], [9, 13], [12, 14], [10, 15], [14, 16], [15, 17], [15, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 8], [10, 8], [11, 2], [12, 8], [13, 9], [14, 12], [15, 10], [16, 14], [17, 15], [18, 15], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "SyntaxUtilities", "code": "\tprivate SyntaxUtilities(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.3-4649", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/util/IntegerArray.java", "language": "java", "name": "org.gjt.sp.util.IntegerArray", "code": "public class IntegerArray\n{\n\t//{{{ IntegerArray constructor\n\tpublic IntegerArray()\n\t{\n\t\tthis(2000);\n\t} //}}}\n\n\t//{{{ IntegerArray constructor\n\tpublic IntegerArray(int initialSize)\n\t{\n\t\tarray = new int[initialSize];\n\t} //}}}\n\n\t//{{{ add() method\n\tpublic void add(int num)\n\t{\n\t\tif(len >= array.length)\n\t\t{\n\t\t\tint[] arrayN = new int[len * 2];\n\t\t\tSystem.arraycopy(array,0,arrayN,0,len);\n\t\t\tarray = arrayN;\n\t\t}\n\n\t\tarray[len++] = num;\n\t} //}}}\n\n\t//{{{ get() method\n\tpublic final int get(int index)\n\t{\n\t\treturn array[index];\n\t} //}}}\n\n\t//{{{ getSize() method\n\tpublic final int getSize()\n\t{\n\t\treturn len;\n\t} //}}}\n\n\t//{{{ setSize() method\n\tpublic final void setSize(int len)\n\t{\n\t\tthis.len = len;\n\t} //}}}\n\n\t//{{{ clear() method\n\tpublic final void clear()\n\t{\n\t\tlen = 0;\n\t} //}}}\n\n\t//{{{ getArray() method\n\tpublic int[] getArray()\n\t{\n\t\treturn array;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate int[] array;\n\tprivate int len;", "functions": [{"function_name": "add", "code": "\tpublic void add(int num)\n\t{\n\t\tif(len >= array.length)\n\t\t{\n\t\t\tint[] arrayN = new int[len * 2];\n\t\t\tSystem.arraycopy(array,0,arrayN,0,len);\n\t\t\tarray = arrayN;\n\t\t}\n\n\t\tarray[len++] = num;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [7, 8], [7, 9], [5, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 7], [9, 7], [10, 5], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "get", "code": "\tpublic final int get(int index)\n\t{\n\t\treturn array[index];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSize", "code": "\tpublic final int getSize()\n\t{\n\t\treturn len;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSize", "code": "\tpublic final void setSize(int len)\n\t{\n\t\tthis.len = len;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clear", "code": "\tpublic final void clear()\n\t{\n\t\tlen = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getArray", "code": "\tpublic int[] getArray()\n\t{\n\t\treturn array;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "IntegerArray", "code": "\tpublic IntegerArray()\n\t{\n\t\tthis(2000);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "IntegerArray", "code": "\tpublic IntegerArray(int initialSize)\n\t{\n\t\tarray = new int[initialSize];", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.0-5433", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/util/BlockingInputStream.java", "language": "java", "name": "org.apache.poi.util.BlockingInputStream", "code": "public class BlockingInputStream\n      extends InputStream\n{\n      protected InputStream is;\n\n      public BlockingInputStream(InputStream is)\n      {\n          this.is = is;\n      }\n\n      public int available()\n        throws IOException\n      {\n          return is.available();\n      }\n\n      public void close()\n        throws IOException\n      {\n          is.close();\n      }\n\n      public void mark(int readLimit)\n      {\n          is.mark(readLimit);\n      }\n\n      public boolean markSupported()\n      {\n          return is.markSupported();\n      }\n\n      public int read()\n        throws IOException\n      {\n          return is.read();\n      }\n      \n      /**\n       * We had to revert to byte per byte reading to keep\n       * with slow network connections on one hand, without\n       * missing the end-of-file. \n       * This is the only method that does its own thing in this class\n       *    everything else is delegated to aggregated stream. \n       * THIS IS A BLOCKING BLOCK READ!!!\n       */\n      public int read(byte[] bf)\n        throws IOException\n      {\n          \n          int i = 0;\n          int b = 4611;\n          while ( i < bf.length )\n          {\n              b = is.read();\n              if ( b == -1 )\n                  break;\n              bf[i++] = (byte) b;\n          }\n          if ( i == 0 && b == -1 )\n              return -1;\n          return i;\n      }\n\n      public int read(byte[] bf, int s, int l)\n        throws IOException\n      {\n          return is.read(bf, s, l);\n      }\n\n      public void reset()\n        throws IOException\n      {\n          is.reset();\n      }\n\n      public long skip(long n)\n        throws IOException\n      {\n          return is.skip(n);", "functions": [{"function_name": "available", "code": "      public int available()\n        throws IOException\n      {\n          return is.available();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "close", "code": "      public void close()\n        throws IOException\n      {\n          is.close();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "mark", "code": "      public void mark(int readLimit)\n      {\n          is.mark(readLimit);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "markSupported", "code": "      public boolean markSupported()\n      {\n          return is.markSupported();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "read", "code": "      public int read()\n        throws IOException\n      {\n          return is.read();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "read", "code": "      public int read(byte[] bf)\n        throws IOException\n      {\n          \n          int i = 0;\n          int b = 4611;\n          while ( i < bf.length )\n          {\n              b = is.read();\n              if ( b == -1 )\n                  break;\n              bf[i++] = (byte) b;\n          }\n          if ( i == 0 && b == -1 )\n              return -1;\n          return i;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [7, 10], [8, 11], [8, 12], [3, 13], [4, 14], [5, 15], [11, 16], [12, 17], [3, 18], [13, 19], [13, 20], [3, 21], [20, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 7], [11, 8], [12, 8], [13, 3], [14, 4], [15, 5], [16, 11], [17, 12], [18, 3], [19, 13], [20, 13], [21, 3], [22, 20], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "read", "code": "      public int read(byte[] bf, int s, int l)\n        throws IOException\n      {\n          return is.read(bf, s, l);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "reset", "code": "      public void reset()\n        throws IOException\n      {\n          is.reset();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "skip", "code": "      public long skip(long n)\n        throws IOException\n      {\n          return is.skip(n);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BlockingInputStream", "code": "      public BlockingInputStream(InputStream is)\n      {\n          this.is = is;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.2-4369", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/msg/VFSUpdate.java", "language": "java", "name": "org.gjt.sp.jedit.msg.VFSUpdate", "code": "public class VFSUpdate extends EBMessage\n{\n\t/**\n\t * Creates a VFS update message.\n\t * @param path The path in question\n\t */\n\tpublic VFSUpdate(String path)\n\t{\n\t\tsuper(null);\n\n\t\tif(path == null)\n\t\t\tthrow new NullPointerException(\"Path must be non-null\");\n\n\t\tthis.path = path;\n\t}\n\n\t/**\n\t * Returns the path that changed.\n\t */\n\tpublic String getPath()\n\t{\n\t\treturn path;\n\t}\n\n\tpublic String paramString()\n\t{\n\t\treturn \"path=\" + path + \",\" + super.paramString();\n\t}\n\n\t// private members\n\tprivate String path;", "functions": [{"function_name": "getPath", "code": "\tpublic String getPath()\n\t{\n\t\treturn path;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "paramString", "code": "\tpublic String paramString()\n\t{\n\t\treturn \"path=\" + path + \",\" + super.paramString();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "VFSUpdate", "code": "\tpublic VFSUpdate(String path)\n\t{\n\t\tsuper(null);\n\n\t\tif(path == null)\n\t\t\tthrow new NullPointerException(\"Path must be non-null\");\n\n\t\tthis.path = path;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "camel-1.2-1686", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/cxf/CxfSoapProducer.java", "language": "java", "name": "org.apache.camel.component.cxf.CxfSoapProducer", "code": "public class CxfSoapProducer implements Producer, AsyncProcessor {\n\n    private static final Log LOG = LogFactory.getLog(CxfSoapProducer.class);\n\n    private final CxfSoapEndpoint endpoint;\n    private final Producer producer;\n    private final AsyncProcessor processor;\n\n    public CxfSoapProducer(CxfSoapEndpoint endpoint) throws Exception {\n        this.endpoint = endpoint;\n        this.producer = endpoint.getInnerEndpoint().createProducer();\n        this.processor = new AsyncProcessorDecorator(producer,\n                new Processor() {\n                    public void process(Exchange exchange) throws Exception {\n                        processSoapProviderIn(exchange);\n                    }\n                },\n                new Processor() {\n                    public void process(Exchange exchange) throws Exception {\n                        processSoapProviderOut(exchange);\n                    }\n                });\n    }\n\n    public Endpoint getEndpoint() {\n        return producer.getEndpoint();\n    }\n\n    public Exchange createExchange() {\n        return producer.createExchange();\n    }\n\n    public Exchange createExchange(ExchangePattern pattern) {\n        return producer.createExchange(pattern);\n    }\n\n    public Exchange createExchange(Exchange exchange) {\n        return producer.createExchange(exchange);\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        AsyncProcessorHelper.process(this, exchange);\n    }\n\n    public boolean process(Exchange exchange, AsyncCallback callback) {\n        return processor.process(exchange, callback);\n    }\n\n    public void start() throws Exception {\n        producer.start();\n    }\n\n    public void stop() throws Exception {\n        producer.stop();\n    }\n\n    protected void processSoapProviderIn(Exchange exchange) throws Exception {\n        LOG.info(\"processSoapProviderIn: \" + exchange);\n    }\n\n    protected void processSoapProviderOut(Exchange exchange) throws Exception {\n        LOG.info(\"processSoapProviderOut: \" + exchange);", "functions": [{"function_name": "getEndpoint", "code": "    public Endpoint getEndpoint() {\n        return producer.getEndpoint();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExchange", "code": "    public Exchange createExchange() {\n        return producer.createExchange();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExchange", "code": "    public Exchange createExchange(ExchangePattern pattern) {\n        return producer.createExchange(pattern);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createExchange", "code": "    public Exchange createExchange(Exchange exchange) {\n        return producer.createExchange(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        AsyncProcessorHelper.process(this, exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "process", "code": "    public boolean process(Exchange exchange, AsyncCallback callback) {\n        return processor.process(exchange, callback);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "start", "code": "    public void start() throws Exception {\n        producer.start();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "stop", "code": "    public void stop() throws Exception {\n        producer.stop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "processSoapProviderIn", "code": "    protected void processSoapProviderIn(Exchange exchange) throws Exception {\n        LOG.info(\"processSoapProviderIn: \" + exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processSoapProviderOut", "code": "    protected void processSoapProviderOut(Exchange exchange) throws Exception {\n        LOG.info(\"processSoapProviderOut: \" + exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CxfSoapProducer", "code": "    public CxfSoapProducer(CxfSoapEndpoint endpoint) throws Exception {\n        this.endpoint = endpoint;\n        this.producer = endpoint.getInnerEndpoint().createProducer();\n        this.processor = new AsyncProcessorDecorator(producer,\n                new Processor() {\n                    public void process(Exchange exchange) throws Exception {\n                        processSoapProviderIn(exchange);\n                    }\n                },\n                new Processor() {\n                    public void process(Exchange exchange) throws Exception {\n                        processSoapProviderOut(exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [5, 7], [5, 8], [6, 9], [7, 10], [8, 11], [10, 12], [11, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 5], [8, 5], [9, 6], [10, 7], [11, 8], [12, 10], [13, 11], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}], "label": 0}
{"sample_id": "poi-2.5-5872", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/PrintGridlinesRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.PrintGridlinesRecord", "code": "public class PrintGridlinesRecord\n    extends Record\n{\n    public final static short sid = 0x2b;\n    private short             field_1_print_gridlines;\n\n    public PrintGridlinesRecord()\n    {\n    }\n\n    /**\n     * Constructs a PrintGridlines record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x2b or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public PrintGridlinesRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a PrintGridlines record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x2b or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record data\n     */\n\n    public PrintGridlinesRecord(short id, short size, byte [] data,\n                                int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PrintGridlines RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_print_gridlines = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set whether or not to print the gridlines (and make your spreadsheet ugly)\n     *\n     * @param pg  make spreadsheet ugly - Y/N\n     */\n\n    public void setPrintGridlines(boolean pg)\n    {\n        if (pg == true)\n        {\n            field_1_print_gridlines = 1;\n        }\n        else\n        {\n            field_1_print_gridlines = 0;\n        }\n    }\n\n    /**\n     * get whether or not to print the gridlines (and make your spreadsheet ugly)\n     *\n     * @return make spreadsheet ugly - Y/N\n     */\n\n    public boolean getPrintGridlines()\n    {\n        return (field_1_print_gridlines == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PRINTGRIDLINES]\\n\");\n        buffer.append(\"    .printgridlines = \").append(getPrintGridlines())\n            .append(\"\\n\");\n        buffer.append(\"[/PRINTGRIDLINES]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, field_1_print_gridlines);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      PrintGridlinesRecord rec = new PrintGridlinesRecord();\n      rec.field_1_print_gridlines = field_1_print_gridlines;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PrintGridlines RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_print_gridlines = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setPrintGridlines", "code": "    public void setPrintGridlines(boolean pg)\n    {\n        if (pg == true)\n        {\n            field_1_print_gridlines = 1;\n        }\n        else\n        {\n            field_1_print_gridlines = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getPrintGridlines", "code": "    public boolean getPrintGridlines()\n    {\n        return (field_1_print_gridlines == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PRINTGRIDLINES]\\n\");\n        buffer.append(\"    .printgridlines = \").append(getPrintGridlines())\n            .append(\"\\n\");\n        buffer.append(\"[/PRINTGRIDLINES]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, field_1_print_gridlines);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [6, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 6], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      PrintGridlinesRecord rec = new PrintGridlinesRecord();\n      rec.field_1_print_gridlines = field_1_print_gridlines;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "PrintGridlinesRecord", "code": "    public PrintGridlinesRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PrintGridlinesRecord", "code": "    public PrintGridlinesRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "PrintGridlinesRecord", "code": "    public PrintGridlinesRecord(short id, short size, byte [] data,\n                                int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.6-7469", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/ParameterRef.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.ParameterRef", "code": "final class ParameterRef extends VariableRefBase {\n\n    /**\n     * Name of param being referenced.\n     */\n    QName _name = null;\n    \n    public ParameterRef(Param param) {\n\tsuper(param);\n        _name = param._name;\n        \n    }\n\n    public String toString() {\n\treturn \"parameter-ref(\"+_variable.getName()+'/'+_variable.getType()+')';\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n        /*\n         * To fix bug 24518 related to setting parameters of the form\n         * {namespaceuri}localName, which will get mapped to an instance \n         * variable in the class.\n         */\n        final String name = BasisLibrary.mapQNameToJavaName (_name.toString());\n\tfinal String signature = _type.toSignature();\n\n\tif (_variable.isLocal()) {\n\t    if (classGen.isExternal()) {\n\t\tClosure variableClosure = _closure;\n\t\twhile (variableClosure != null) {\n\t\t    if (variableClosure.inInnerClass()) break;\n\t\t    variableClosure = variableClosure.getParentClosure();\n\t\t}\n\t    \n\t\tif (variableClosure != null) {\n\t\t    il.append(ALOAD_0);\n\t\t    il.append(new GETFIELD(\n\t\t\tcpg.addFieldref(variableClosure.getInnerClassName(), \n\t\t\t    name, signature)));\n\t\t}\n\t\telse {\n\t\t    il.append(_variable.loadInstruction());\n\t\t    _variable.removeReference(this);\n\t\t}\n\t    }\n\t    else {\n\t\til.append(_variable.loadInstruction());\n\t\t_variable.removeReference(this);\n\t    }\n\t}\n\telse {\n\t    final String className = classGen.getClassName();\n\t    il.append(classGen.loadTranslet());\n\t    if (classGen.isExternal()) {\n\t\til.append(new CHECKCAST(cpg.addClass(className)));\n\t    }\n\t    il.append(new GETFIELD(cpg.addFieldref(className,name,signature)));\n\t}\n\n\tif (_variable.getType() instanceof NodeSetType) {\n\t    final int clone = cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t\t       \"cloneIterator\",\n\t\t\t\t\t\t       \"()\" + \n\t\t\t\t\t\t\tNODE_ITERATOR_SIG);\n\t    il.append(new INVOKEINTERFACE(clone, 1));", "functions": [{"function_name": "toString", "code": "    public String toString() {\n\treturn \"parameter-ref(\"+_variable.getName()+'/'+_variable.getType()+')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n        /*\n         * To fix bug 24518 related to setting parameters of the form\n         * {namespaceuri}localName, which will get mapped to an instance \n         * variable in the class.\n         */\n        final String name = BasisLibrary.mapQNameToJavaName (_name.toString());\n\tfinal String signature = _type.toSignature();\n\n\tif (_variable.isLocal()) {\n\t    if (classGen.isExternal()) {\n\t\tClosure variableClosure = _closure;\n\t\twhile (variableClosure != null) {\n\t\t    if (variableClosure.inInnerClass()) break;\n\t\t    variableClosure = variableClosure.getParentClosure();\n\t\t}\n\t    \n\t\tif (variableClosure != null) {\n\t\t    il.append(ALOAD_0);\n\t\t    il.append(new GETFIELD(\n\t\t\tcpg.addFieldref(variableClosure.getInnerClassName(), \n\t\t\t    name, signature)));\n\t\t}\n\t\telse {\n\t\t    il.append(_variable.loadInstruction());\n\t\t    _variable.removeReference(this);\n\t\t}\n\t    }\n\t    else {\n\t\til.append(_variable.loadInstruction());\n\t\t_variable.removeReference(this);\n\t    }\n\t}\n\telse {\n\t    final String className = classGen.getClassName();\n\t    il.append(classGen.loadTranslet());\n\t    if (classGen.isExternal()) {\n\t\til.append(new CHECKCAST(cpg.addClass(className)));\n\t    }\n\t    il.append(new GETFIELD(cpg.addFieldref(className,name,signature)));\n\t}\n\n\tif (_variable.getType() instanceof NodeSetType) {\n\t    final int clone = cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t\t       \"cloneIterator\",\n\t\t\t\t\t\t       \"()\" + \n\t\t\t\t\t\t\tNODE_ITERATOR_SIG);\n\t    il.append(new INVOKEINTERFACE(clone, 1));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [1, 11], [9, 12], [2, 13], [2, 14], [2, 15], [3, 16], [4, 17], [5, 18], [6, 19], [1, 20], [2, 21], [13, 22], [2, 23], [15, 24], [17, 25], [20, 26], [11, 27], [21, 28], [23, 29], [14, 30], [15, 31], [15, 32], [15, 33], [26, 34], [27, 35], [27, 36], [28, 37], [13, 38], [15, 39], [15, 40], [31, 41], [32, 42], [35, 43], [38, 44], [40, 45], [41, 46], [32, 47], [42, 48], [44, 49], [31, 50], [31, 51], [31, 52], [31, 53], [32, 54], [47, 55], [47, 56], [51, 57], [52, 58], [54, 59], [58, 60], [60, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 1], [12, 9], [13, 2], [14, 2], [15, 2], [16, 3], [17, 4], [18, 5], [19, 6], [20, 1], [21, 2], [22, 13], [23, 2], [24, 15], [25, 17], [26, 20], [27, 11], [28, 21], [29, 23], [30, 14], [31, 15], [32, 15], [33, 15], [34, 26], [35, 27], [36, 27], [37, 28], [38, 13], [39, 15], [40, 15], [41, 31], [42, 32], [43, 35], [44, 38], [45, 40], [46, 41], [47, 32], [48, 42], [49, 44], [50, 31], [51, 31], [52, 31], [53, 31], [54, 32], [55, 47], [56, 47], [57, 51], [58, 52], [59, 54], [60, 58], [61, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "ParameterRef", "code": "    public ParameterRef(Param param) {\n\tsuper(param);\n        _name = param._name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8112", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/functions/FuncExtFunction.java", "language": "java", "name": "org.apache.xpath.functions.FuncExtFunction", "code": "public class FuncExtFunction extends Function\n{\n    static final long serialVersionUID = 5196115554693708718L;\n\n  /**\n   * The namespace for the extension function, which should not normally\n   *  be null or empty.\n   *  @serial    \n   */\n  String m_namespace;\n\n  /**\n   * The local name of the extension.\n   *  @serial   \n   */\n  String m_extensionName;\n\n  /**\n   * Unique method key, which is passed to ExtensionsTable#extFunction in\n   *  order to allow caching of the method.\n   *  @serial \n   */\n  Object m_methodKey;\n\n  /**\n   * Array of static expressions which represent the parameters to the\n   *  function.\n   *  @serial   \n   */\n  Vector m_argVec = new Vector();\n\n  /**\n   * This function is used to fixup variables from QNames to stack frame\n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list\n   * should be searched backwards for the first qualified name that\n   * corresponds to the variable reference qname.  The position of the\n   * QName in the vector from the start of the vector will be its position\n   * in the stack frame (but variables above the globalsTop value will need\n   * to be offset to the current stack frame).\n   * NEEDSDOC @param globalsSize\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n\n    if (null != m_argVec)\n    {\n      int nArgs = m_argVec.size();\n\n      for (int i = 0; i < nArgs; i++)\n      {\n        Expression arg = (Expression) m_argVec.elementAt(i);\n\n        arg.fixupVariables(vars, globalsSize);\n      }\n    }\n  }\n  \n  /**\n   * Return the namespace of the extension function.\n   *\n   * @return The namespace of the extension function.\n   */\n  public String getNamespace()\n  {\n    return m_namespace;\n  }\n  \n  /**\n   * Return the name of the extension function.\n   *\n   * @return The name of the extension function.\n   */\n  public String getFunctionName()\n  {\n    return m_extensionName;\n  }\n  \n  /**\n   * Return the method key of the extension function.\n   *\n   * @return The method key of the extension function.\n   */\n  public Object getMethodKey()\n  {\n    return m_methodKey;\n  }\n\n  /** \n   * Return the nth argument passed to the extension function.\n   * \n   * @param n The argument number index.\n   * @return The Expression object at the given index.\n   */    \n  public Expression getArg(int n) {\n    if (n >= 0 && n < m_argVec.size())\n      return (Expression) m_argVec.elementAt(n);\n    else\n      return null;\n  }\n\n  /**\n   * Return the number of arguments that were passed\n   * into this extension function.\n   *\n   * @return The number of arguments.\n   */    \n  public int getArgCount() {\n    return m_argVec.size();\n  }\n\n  /**\n   * Create a new FuncExtFunction based on the qualified name of the extension,\n   * and a unique method key.\n   *\n   * @param namespace The namespace for the extension function, which should\n   *                  not normally be null or empty.\n   * @param extensionName The local name of the extension.\n   * @param methodKey Unique method key, which is passed to\n   *                  ExtensionsTable#extFunction in order to allow caching\n   *                  of the method.\n   */\n  public FuncExtFunction(java.lang.String namespace,\n                         java.lang.String extensionName, Object methodKey)\n  {\n    m_namespace = namespace;\n    m_extensionName = extensionName;\n    m_methodKey = methodKey;\n  }\n\n  /**\n   * Execute the function.  The function must return\n   * a valid object.\n   * @param xctxt The current execution context.\n   * @return A valid XObject.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    if (xctxt.isSecureProcessing())\n      throw new javax.xml.transform.TransformerException(\n        XPATHMessages.createXPATHMessage(\n          XPATHErrorResources.ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED,\n          new Object[] {toString()}));\n      \n    XObject result;\n    Vector argVec = new Vector();\n    int nArgs = m_argVec.size();\n\n    for (int i = 0; i < nArgs; i++)\n    {\n      Expression arg = (Expression) m_argVec.elementAt(i);\n      \n      XObject xobj = arg.execute(xctxt);\n      /*\n       * Should cache the arguments for func:function\n       */\n      xobj.allowDetachToRelease(false); \n      argVec.addElement(xobj);\n    }\n    ExtensionsProvider extProvider = (ExtensionsProvider)xctxt.getOwnerObject();\n    Object val = extProvider.extFunction(this, argVec);\n\n    if (null != val)\n    {\n      result = XObject.create(val, xctxt);\n    }\n    else\n    {\n      result = new XNull();\n    }\n\n    return result;\n  }\n\n  /**\n   * Set an argument expression for a function.  This method is called by the\n   * XPath compiler.\n   *\n   * @param arg non-null expression that represents the argument.\n   * @param argNum The argument number index.\n   *\n   * @throws WrongNumberArgsException If the argNum parameter is beyond what\n   * is specified for this function.\n   */\n  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n    m_argVec.addElement(arg);\n    arg.exprSetParent(this);\n  }\n\n  /**\n   * Check that the number of arguments passed to this function is correct.\n   *\n   *\n   * @param argNum The number of arguments that is being passed to the function.\n   *\n   * @throws WrongNumberArgsException\n   */\n  public void checkNumberArgs(int argNum) throws WrongNumberArgsException{}\n\n\n  class ArgExtOwner implements ExpressionOwner\n  {\n  \n    Expression m_exp;\n  \t\n  \tArgExtOwner(Expression exp)\n  \t{\n  \t\tm_exp = exp;\n  \t}\n  \t\n    /**\n     * @see ExpressionOwner#getExpression()\n     */\n    public Expression getExpression()\n    {\n      return m_exp;\n    }\n\n\n    /**\n     * @see ExpressionOwner#setExpression(Expression)\n     */\n    public void setExpression(Expression exp)\n    {\n    \texp.exprSetParent(FuncExtFunction.this);\n    \tm_exp = exp;\n    }\n  }\n  \n  \n  /**\n   * Call the visitors for the function arguments.\n   */\n  public void callArgVisitors(XPathVisitor visitor)\n  {\n      for (int i = 0; i < m_argVec.size(); i++)\n      {\n         Expression exp = (Expression)m_argVec.elementAt(i);\n         exp.callVisitors(new ArgExtOwner(exp), visitor);\n      }\n    \n  }\n\n  /**\n   * Set the parent node.\n   * For an extension function, we also need to set the parent\n   * node for all argument expressions.\n   * \n   * @param n The parent node\n   */\n  public void exprSetParent(ExpressionNode n) \n  {\n\t\n    super.exprSetParent(n);\n      \n    int nArgs = m_argVec.size();\n\n    for (int i = 0; i < nArgs; i++)\n    {\n      Expression arg = (Expression) m_argVec.elementAt(i);\n\n      arg.exprSetParent(n);\n    }\t\t\n  }\n\n  /**\n   * Constructs and throws a WrongNumberArgException with the appropriate\n   * message for this function object.  This class supports an arbitrary\n   * number of arguments, so this method must never be called.\n   *\n   * @throws WrongNumberArgsException\n   */\n  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n    String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ \"Programmer's assertion:  the method FunctionMultiArgs.reportWrongNumberArgs() should never be called.\" });\n\n    throw new RuntimeException(fMsg);\n  }\n  \n  /**\n   * Return the name of the extesion function in string format\n   */\n  public String toString()\n  {\n    if (m_namespace != null && m_namespace.length() > 0)\n      return \"{\" + m_namespace + \"}\" + m_extensionName;\n    else\n      return m_extensionName;", "functions": [{"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n\n    if (null != m_argVec)\n    {\n      int nArgs = m_argVec.size();\n\n      for (int i = 0; i < nArgs; i++)\n      {\n        Expression arg = (Expression) m_argVec.elementAt(i);\n\n        arg.fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [5, 9], [6, 10], [5, 11], [5, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 5], [10, 6], [11, 5], [12, 5], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getNamespace", "code": "  public String getNamespace()\n  {\n    return m_namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFunctionName", "code": "  public String getFunctionName()\n  {\n    return m_extensionName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMethodKey", "code": "  public Object getMethodKey()\n  {\n    return m_methodKey;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getArg", "code": "  public Expression getArg(int n) {\n    if (n >= 0 && n < m_argVec.size())\n      return (Expression) m_argVec.elementAt(n);\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [5, 8], [4, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 5], [9, 4], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getArgCount", "code": "  public int getArgCount() {\n    return m_argVec.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt)\n          throws javax.xml.transform.TransformerException\n  {\n    if (xctxt.isSecureProcessing())\n      throw new javax.xml.transform.TransformerException(\n        XPATHMessages.createXPATHMessage(\n          XPATHErrorResources.ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED,\n          new Object[] {toString()}));\n      \n    XObject result;\n    Vector argVec = new Vector();\n    int nArgs = m_argVec.size();\n\n    for (int i = 0; i < nArgs; i++)\n    {\n      Expression arg = (Expression) m_argVec.elementAt(i);\n      \n      XObject xobj = arg.execute(xctxt);\n      /*\n       * Should cache the arguments for func:function\n       */\n      xobj.allowDetachToRelease(false); \n      argVec.addElement(xobj);\n    }\n    ExtensionsProvider extProvider = (ExtensionsProvider)xctxt.getOwnerObject();\n    Object val = extProvider.extFunction(this, argVec);\n\n    if (null != val)\n    {\n      result = XObject.create(val, xctxt);\n    }\n    else\n    {\n      result = new XNull();\n    }\n\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [5, 12], [9, 13], [9, 14], [11, 15], [3, 16], [5, 17], [5, 18], [6, 19], [7, 20], [13, 21], [2, 22], [2, 23], [4, 24], [5, 25], [5, 26], [5, 27], [21, 28], [22, 29], [23, 30], [26, 31], [17, 32], [18, 33], [28, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 5], [13, 9], [14, 9], [15, 11], [16, 3], [17, 5], [18, 5], [19, 6], [20, 7], [21, 13], [22, 2], [23, 2], [24, 4], [25, 5], [26, 5], [27, 5], [28, 21], [29, 22], [30, 23], [31, 26], [32, 17], [33, 18], [34, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "setArg", "code": "  public void setArg(Expression arg, int argNum)\n          throws WrongNumberArgsException\n  {\n    m_argVec.addElement(arg);\n    arg.exprSetParent(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "checkNumberArgs", "code": "  public void checkNumberArgs(int argNum) throws WrongNumberArgsException{}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "callArgVisitors", "code": "  public void callArgVisitors(XPathVisitor visitor)\n  {\n      for (int i = 0; i < m_argVec.size(); i++)\n      {\n         Expression exp = (Expression)m_argVec.elementAt(i);\n         exp.callVisitors(new ArgExtOwner(exp), visitor);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [6, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 6], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "exprSetParent", "code": "  public void exprSetParent(ExpressionNode n) \n  {\n\t\n    super.exprSetParent(n);\n      \n    int nArgs = m_argVec.size();\n\n    for (int i = 0; i < nArgs; i++)\n    {\n      Expression arg = (Expression) m_argVec.elementAt(i);\n\n      arg.exprSetParent(n);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [1, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 1], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "reportWrongNumberArgs", "code": "  protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n    String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ \"Programmer's assertion:  the method FunctionMultiArgs.reportWrongNumberArgs() should never be called.\" });\n\n    throw new RuntimeException(fMsg);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toString", "code": "  public String toString()\n  {\n    if (m_namespace != null && m_namespace.length() > 0)\n      return \"{\" + m_namespace + \"}\" + m_extensionName;\n    else\n      return m_extensionName;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [6, 10], [7, 11], [8, 12], [8, 13], [13, 14], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 6], [11, 7], [12, 8], [13, 8], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "FuncExtFunction", "code": "  public FuncExtFunction(java.lang.String namespace,\n                         java.lang.String extensionName, Object methodKey)\n  {\n    m_namespace = namespace;\n    m_extensionName = extensionName;\n    m_methodKey = methodKey;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "log4j-1.2-4971", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/DailyRollingFileAppender.java", "language": "java", "name": "org.apache.log4j.DailyRollingFileAppender", "code": "public class DailyRollingFileAppender extends FileAppender {\n\n\n  // The code assumes that the following constants are in a increasing\n  // sequence.\n  static final int TOP_OF_TROUBLE=-1;\n  static final int TOP_OF_MINUTE = 0;\n  static final int TOP_OF_HOUR   = 1;\n  static final int HALF_DAY      = 2;\n  static final int TOP_OF_DAY    = 3;\n  static final int TOP_OF_WEEK   = 4;\n  static final int TOP_OF_MONTH  = 5;\n\n\n  /**\n     The date pattern. By default, the pattern is set to\n     \"'.'yyyy-MM-dd\" meaning daily rollover.\n   */\n  private String datePattern = \"'.'yyyy-MM-dd\";\n\n  /**\n     The log file will be renamed to the value of the\n     scheduledFilename variable when the next interval is entered. For\n     example, if the rollover period is one hour, the log file will be\n     renamed to the value of \"scheduledFilename\" at the beginning of\n     the next hour. \n\n     The precise time when a rollover occurs depends on logging\n     activity. \n  */\n  private String scheduledFilename;\n\n  /**\n     The next time we estimate a rollover should occur. */\n  private long nextCheck = System.currentTimeMillis () - 1;\n\n  Date now = new Date();\n\n  SimpleDateFormat sdf;\n\n  RollingCalendar rc = new RollingCalendar();\n\n  int checkPeriod = TOP_OF_TROUBLE;\n\n  // The gmtTimeZone is used only in computeCheckPeriod() method.\n  static final TimeZone gmtTimeZone = TimeZone.getTimeZone(\"GMT\");\n\n\n  /**\n     The default constructor does nothing. */\n  public DailyRollingFileAppender() {\n  }\n\n  /**\n    Instantiate a <code>DailyRollingFileAppender</code> and open the\n    file designated by <code>filename</code>. The opened filename will\n    become the ouput destination for this appender.\n\n    */\n  public DailyRollingFileAppender (Layout layout, String filename,\n\t\t\t\t   String datePattern) throws IOException {\n    super(layout, filename, true);\n    this.datePattern = datePattern;\n    activateOptions();\n  }\n\n  /**\n     The <b>DatePattern</b> takes a string in the same format as\n     expected by {@link SimpleDateFormat}. This options determines the\n     rollover schedule.\n   */\n  public void setDatePattern(String pattern) {\n    datePattern = pattern;\n  }\n\n  /** Returns the value of the <b>DatePattern</b> option. */\n  public String getDatePattern() {\n    return datePattern;\n  }\n\n  public void activateOptions() {\n    super.activateOptions();\n    if(datePattern != null && fileName != null) {\n      now.setTime(System.currentTimeMillis());\n      sdf = new SimpleDateFormat(datePattern);\n      int type = computeCheckPeriod();\n      printPeriodicity(type);\n      rc.setType(type);\n      File file = new File(fileName);\n      scheduledFilename = fileName+sdf.format(new Date(file.lastModified()));\n\n    } else {\n      LogLog.error(\"Either File or DatePattern options are not set for appender [\"\n\t\t   +name+\"].\");\n    }\n  }\n\n  void printPeriodicity(int type) {\n    switch(type) {\n    case TOP_OF_MINUTE:\n      LogLog.debug(\"Appender [\"+name+\"] to be rolled every minute.\");\n      break;\n    case TOP_OF_HOUR:\n      LogLog.debug(\"Appender [\"+name\n\t\t   +\"] to be rolled on top of every hour.\");\n      break;\n    case HALF_DAY:\n      LogLog.debug(\"Appender [\"+name\n\t\t   +\"] to be rolled at midday and midnight.\");\n      break;\n    case TOP_OF_DAY:\n      LogLog.debug(\"Appender [\"+name\n\t\t   +\"] to be rolled at midnight.\");\n      break;\n    case TOP_OF_WEEK:\n      LogLog.debug(\"Appender [\"+name\n\t\t   +\"] to be rolled at start of week.\");\n      break;\n    case TOP_OF_MONTH:\n      LogLog.debug(\"Appender [\"+name\n\t\t   +\"] to be rolled at start of every month.\");\n      break;\n    default:\n      LogLog.warn(\"Unknown periodicity for appender [\"+name+\"].\");\n    }\n  }\n\n\n  // This method computes the roll over period by looping over the\n  // periods, starting with the shortest, and stopping when the r0 is\n  // different from from r1, where r0 is the epoch formatted according\n  // the datePattern (supplied by the user) and r1 is the\n  // epoch+nextMillis(i) formatted according to datePattern. All date\n  // formatting is done in GMT and not local format because the test\n  // logic is based on comparisons relative to 1970-01-01 00:00:00\n  // GMT (the epoch).\n\n  int computeCheckPeriod() {\n    RollingCalendar rollingCalendar = new RollingCalendar(gmtTimeZone, Locale.getDefault());\n    // set sate to 1970-01-01 00:00:00 GMT\n    Date epoch = new Date(0);\n    if(datePattern != null) {\n      for(int i = TOP_OF_MINUTE; i <= TOP_OF_MONTH; i++) {\n\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(datePattern);\n\tsimpleDateFormat.setTimeZone(gmtTimeZone); // do all date formatting in GMT\n\tString r0 = simpleDateFormat.format(epoch);\n\trollingCalendar.setType(i);\n\tDate next = new Date(rollingCalendar.getNextCheckMillis(epoch));\n\tString r1 =  simpleDateFormat.format(next);\n\t//System.out.println(\"Type = \"+i+\", r0 = \"+r0+\", r1 = \"+r1);\n\tif(r0 != null && r1 != null && !r0.equals(r1)) {\n\t  return i;\n\t}\n      }\n    }\n    return TOP_OF_TROUBLE; // Deliberately head for trouble...\n  }\n\n  /**\n     Rollover the current file to a new file.\n  */\n  void rollOver() throws IOException {\n\n    /* Compute filename, but only if datePattern is specified */\n    if (datePattern == null) {\n      errorHandler.error(\"Missing DatePattern option in rollOver().\");\n      return;\n    }\n\n    String datedFilename = fileName+sdf.format(now);\n    // It is too early to roll over because we are still within the\n    // bounds of the current interval. Rollover will occur once the\n    // next interval is reached.\n    if (scheduledFilename.equals(datedFilename)) {\n      return;\n    }\n\n    // close current file, and rename it to datedFilename\n    this.closeFile();\n\n    File target  = new File(scheduledFilename);\n    if (target.exists()) {\n      target.delete();\n    }\n\n    File file = new File(fileName);\n    boolean result = file.renameTo(target);\n    if(result) {\n      LogLog.debug(fileName +\" -> \"+ scheduledFilename);\n    } else {\n      LogLog.error(\"Failed to rename [\"+fileName+\"] to [\"+scheduledFilename+\"].\");\n    }\n\n    try {\n      // This will also close the file. This is OK since multiple\n      // close operations are safe.\n      this.setFile(fileName, true, this.bufferedIO, this.bufferSize);\n    }\n    catch(IOException e) {\n      errorHandler.error(\"setFile(\"+fileName+\", true) call failed.\");\n    }\n    scheduledFilename = datedFilename;\n  }\n\n  /**\n   * This method differentiates DailyRollingFileAppender from its\n   * super class.\n   *\n   * <p>Before actually logging, this method will check whether it is\n   * time to do a rollover. If it is, it will schedule the next\n   * rollover time and then rollover.\n   * */\n  protected void subAppend(LoggingEvent event) {\n    long n = System.currentTimeMillis();\n    if (n >= nextCheck) {\n      now.setTime(n);\n      nextCheck = rc.getNextCheckMillis(now);\n      try {\n\trollOver();\n      }\n      catch(IOException ioe) {\n          if (ioe instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n\t      LogLog.error(\"rollOver() failed.\", ioe);\n      }\n    }\n    super.subAppend(event);", "functions": [{"function_name": "setDatePattern", "code": "  public void setDatePattern(String pattern) {\n    datePattern = pattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDatePattern", "code": "  public String getDatePattern() {\n    return datePattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "activateOptions", "code": "  public void activateOptions() {\n    super.activateOptions();\n    if(datePattern != null && fileName != null) {\n      now.setTime(System.currentTimeMillis());\n      sdf = new SimpleDateFormat(datePattern);\n      int type = computeCheckPeriod();\n      printPeriodicity(type);\n      rc.setType(type);\n      File file = new File(fileName);\n      scheduledFilename = fileName+sdf.format(new Date(file.lastModified()));\n\n    } else {\n      LogLog.error(\"Either File or DatePattern options are not set for appender [\"\n\t\t   +name+\"].\");", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [6, 14], [7, 15], [8, 16], [3, 17], [4, 18], [11, 19], [12, 20], [15, 21], [15, 22], [16, 23], [22, 24], [23, 25], [25, 26], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 6], [15, 7], [16, 8], [17, 3], [18, 4], [19, 11], [20, 12], [21, 15], [22, 15], [23, 16], [24, 22], [25, 23], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "printPeriodicity", "code": "  void printPeriodicity(int type) {\n    switch(type) {\n    case TOP_OF_MINUTE:\n      LogLog.debug(\"Appender [\"+name+\"] to be rolled every minute.\");\n      break;\n    case TOP_OF_HOUR:\n      LogLog.debug(\"Appender [\"+name\n\t\t   +\"] to be rolled on top of every hour.\");\n      break;\n    case HALF_DAY:\n      LogLog.debug(\"Appender [\"+name\n\t\t   +\"] to be rolled at midday and midnight.\");\n      break;\n    case TOP_OF_DAY:\n      LogLog.debug(\"Appender [\"+name\n\t\t   +\"] to be rolled at midnight.\");\n      break;\n    case TOP_OF_WEEK:\n      LogLog.debug(\"Appender [\"+name\n\t\t   +\"] to be rolled at start of week.\");\n      break;\n    case TOP_OF_MONTH:\n      LogLog.debug(\"Appender [\"+name\n\t\t   +\"] to be rolled at start of every month.\");\n      break;\n    default:\n      LogLog.warn(\"Unknown periodicity for appender [\"+name+\"].\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [16, 24], [17, 25], [17, 26], [18, 27], [18, 28], [19, 29], [19, 30], [20, 31], [20, 32], [21, 33], [21, 34], [22, 35], [22, 36], [24, 37], [26, 38], [28, 39], [30, 40], [32, 41], [34, 42], [36, 43], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 16], [25, 17], [26, 17], [27, 18], [28, 18], [29, 19], [30, 19], [31, 20], [32, 20], [33, 21], [34, 21], [35, 22], [36, 22], [37, 24], [38, 26], [39, 28], [40, 30], [41, 32], [42, 34], [43, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "computeCheckPeriod", "code": "  int computeCheckPeriod() {\n    RollingCalendar rollingCalendar = new RollingCalendar(gmtTimeZone, Locale.getDefault());\n    // set sate to 1970-01-01 00:00:00 GMT\n    Date epoch = new Date(0);\n    if(datePattern != null) {\n      for(int i = TOP_OF_MINUTE; i <= TOP_OF_MONTH; i++) {\n\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(datePattern);\n\tsimpleDateFormat.setTimeZone(gmtTimeZone); // do all date formatting in GMT\n\tString r0 = simpleDateFormat.format(epoch);\n\trollingCalendar.setType(i);\n\tDate next = new Date(rollingCalendar.getNextCheckMillis(epoch));\n\tString r1 =  simpleDateFormat.format(next);\n\t//System.out.println(\"Type = \"+i+\", r0 = \"+r0+\", r1 = \"+r1);\n\tif(r0 != null && r1 != null && !r0.equals(r1)) {\n\t  return i;\n\t}\n      }\n    }\n    return TOP_OF_TROUBLE; // Deliberately head for trouble...", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [4, 9], [6, 10], [8, 11], [9, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [13, 18], [6, 19], [6, 20], [13, 21], [18, 22], [18, 23], [14, 24], [15, 25], [16, 26], [17, 27], [23, 28], [23, 29], [25, 30], [28, 31], [29, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 4], [10, 6], [11, 8], [12, 9], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 13], [19, 6], [20, 6], [21, 13], [22, 18], [23, 18], [24, 14], [25, 15], [26, 16], [27, 17], [28, 23], [29, 23], [30, 25], [31, 28], [32, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "rollOver", "code": "  void rollOver() throws IOException {\n\n    /* Compute filename, but only if datePattern is specified */\n    if (datePattern == null) {\n      errorHandler.error(\"Missing DatePattern option in rollOver().\");\n      return;\n    }\n\n    String datedFilename = fileName+sdf.format(now);\n    // It is too early to roll over because we are still within the\n    // bounds of the current interval. Rollover will occur once the\n    // next interval is reached.\n    if (scheduledFilename.equals(datedFilename)) {\n      return;\n    }\n\n    // close current file, and rename it to datedFilename\n    this.closeFile();\n\n    File target  = new File(scheduledFilename);\n    if (target.exists()) {\n      target.delete();\n    }\n\n    File file = new File(fileName);\n    boolean result = file.renameTo(target);\n    if(result) {\n      LogLog.debug(fileName +\" -> \"+ scheduledFilename);\n    } else {\n      LogLog.error(\"Failed to rename [\"+fileName+\"] to [\"+scheduledFilename+\"].\");\n    }\n\n    try {\n      // This will also close the file. This is OK since multiple\n      // close operations are safe.\n      this.setFile(fileName, true, this.bufferedIO, this.bufferSize);\n    }\n    catch(IOException e) {\n      errorHandler.error(\"setFile(\"+fileName+\", true) call failed.\");\n    }\n    scheduledFilename = datedFilename;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "ASSIGN", "CATCH", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [5, 12], [7, 13], [9, 14], [3, 15], [4, 16], [6, 17], [0, 18], [7, 19], [8, 20], [9, 21], [14, 22], [11, 23], [1, 24], [2, 25], [2, 26], [5, 27], [20, 28], [9, 29], [23, 30], [24, 31], [25, 32], [26, 33], [29, 34], [30, 35], [30, 36], [32, 37], [32, 38], [33, 39], [36, 40], [38, 41], [39, 42], [41, 43], [41, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 5], [13, 7], [14, 9], [15, 3], [16, 4], [17, 6], [18, 0], [19, 7], [20, 8], [21, 9], [22, 14], [23, 11], [24, 1], [25, 2], [26, 2], [27, 5], [28, 20], [29, 9], [30, 23], [31, 24], [32, 25], [33, 26], [34, 29], [35, 30], [36, 30], [37, 32], [38, 32], [39, 33], [40, 36], [41, 38], [42, 39], [43, 41], [44, 41], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "subAppend", "code": "  protected void subAppend(LoggingEvent event) {\n    long n = System.currentTimeMillis();\n    if (n >= nextCheck) {\n      now.setTime(n);\n      nextCheck = rc.getNextCheckMillis(now);\n      try {\n\trollOver();\n      }\n      catch(IOException ioe) {\n          if (ioe instanceof InterruptedIOException) {\n              Thread.currentThread().interrupt();\n          }\n\t      LogLog.error(\"rollOver() failed.\", ioe);\n      }\n    }\n    super.subAppend(event);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "TRY", "CALL", "CATCH", "ASSIGN", "CALL", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [5, 7], [1, 8], [1, 9], [7, 10], [5, 11], [8, 12], [7, 13], [10, 14], [13, 15], [10, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 5], [8, 1], [9, 1], [10, 7], [11, 5], [12, 8], [13, 7], [14, 10], [15, 13], [16, 10], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "DailyRollingFileAppender", "code": "  public DailyRollingFileAppender() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DailyRollingFileAppender", "code": "  public DailyRollingFileAppender (Layout layout, String filename,\n\t\t\t\t   String datePattern) throws IOException {\n    super(layout, filename, true);\n    this.datePattern = datePattern;\n    activateOptions();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "ivy-2.0-3276", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/ant/IvyDeliver.java", "language": "java", "name": "org.apache.ivy.ant.IvyDeliver", "code": "public class IvyDeliver extends IvyTask {\n    private final class DeliverDRResolver extends DefaultPublishingDRResolver {\n        public String resolve(ModuleDescriptor published, String publishedStatus,\n                ModuleRevisionId depMrid, String depStatus) {\n            if (StatusManager.getCurrent().isIntegration(publishedStatus)) {\n                // published status is integration one, nothing to ask\n                return super.resolve(published, publishedStatus, depMrid, depStatus);\n            }\n\n            // we are publishing a delivery (a non integration module)\n\n            if (!StatusManager.getCurrent().isIntegration(depStatus)) {\n                // dependency is already a delivery, nothing to ask\n                return super.resolve(published, publishedStatus, depMrid, depStatus);\n            }\n\n            // the dependency is not a delivery\n\n            String statusProperty = depMrid.getName() + \".\" + depMrid.getRevision() + \".status\";\n            String versionProperty = depMrid.getName() + \".\" + depMrid.getRevision() + \".version\";\n            String deliveredProperty = depMrid.getName() + \".\" + depMrid.getRevision()\n                    + \".delivered\";\n\n            String version = getProject().getProperty(versionProperty);\n            String status = getProject().getProperty(statusProperty);\n            String delivered = getProject().getProperty(deliveredProperty);\n            Message.debug(\"found version = \" + version + \" status=\" + status + \" delivered=\"\n                    + delivered);\n            if (version != null && status != null) {\n                if (\"true\".equals(delivered)) {\n                    // delivery has already been done : just return the value\n                    return version;\n                } else {\n                    deliverDependency(depMrid, version, status, depStatus);\n                    loadDeliveryList();\n                    return version;\n                }\n            }\n\n            /**\n             * By setting these properties: recursive.delivery.status and\n             * recursive.delivery.version, then if the specific status/version is not found, then we\n             * will use the status/version set in these global properties. This will apply to all\n             * artifacts in the system. This patch is meant to be used for recursive deliveries so\n             * that all deliveries will use the global status/version unless a more specific one is\n             * set.\n             */\n            String globalStatusProperty = \"recursive.delivery.status\";\n            String globalVersionProperty = \"recursive.delivery.version\";\n            version = getProject().getProperty(globalVersionProperty);\n            status = getProject().getProperty(globalStatusProperty);\n            if (version != null && status != null) {\n                // found global delivery properties\n                delivered = getProject().getProperty(\n                    \"recursive.\" + depMrid.getName() + \".delivered\");\n                Message.debug(\"found global version = \" + version + \" and global status=\" + status\n                        + \" - delivered = \" + delivered);\n                if (\"true\".equals(delivered)) {\n                    // delivery has already been done : just return the value\n                    return version;\n                } else {\n                    getProject().setProperty(statusProperty, status);\n                    deliverDependency(depMrid, version, status, depStatus);\n                    loadDeliveryList();\n                    return version;\n                }\n            }\n\n            // we must ask the user what version and status he want to have\n            // for the dependency\n            Input input = (Input) getProject().createTask(\"input\");\n            input.setOwningTarget(getOwningTarget());\n            input.init();\n\n            // ask status\n            input.setMessage(depMrid.getName() + \" \" + depMrid.getRevision()\n                    + \": please enter a status: \");\n            input.setValidargs(StatusManager.getCurrent().getDeliveryStatusListString());\n            input.setAddproperty(statusProperty);\n            input.perform();\n            status = getProject().getProperty(statusProperty);\n            appendDeliveryList(statusProperty + \" = \" + status);\n\n            // ask version\n            input.setMessage(depMrid.getName() + \" \" + depMrid.getRevision()\n                    + \": please enter a version: \");\n            input.setValidargs(null);\n            input.setAddproperty(versionProperty);\n            input.perform();\n\n            version = getProject().getProperty(versionProperty);\n            appendDeliveryList(versionProperty + \" = \" + version);\n            deliverDependency(depMrid, version, status, depStatus);\n\n            loadDeliveryList();\n\n            return version;\n        }\n\n        public void deliverDependency(ModuleRevisionId depMrid, String version, String status,\n                String depStatus) {\n            // call deliver target if any\n            if (deliverTarget != null && deliverTarget.trim().length() > 0) {\n\n                CallTarget ct = (CallTarget) getProject().createTask(\"antcall\");\n                ct.setOwningTarget(getOwningTarget());\n                ct.init();\n                ct.setTarget(deliverTarget);\n                ct.setInheritAll(true);\n                ct.setInheritRefs(true);\n                Property param = ct.createParam();\n                param.setName(\"dependency.name\");\n                param.setValue(depMrid.getName());\n                param = ct.createParam();\n                param.setName(\"dependency.published.status\");\n                param.setValue(status);\n                param = ct.createParam();\n                param.setName(\"dependency.published.version\");\n                param.setValue(version);\n                param = ct.createParam();\n                param.setName(\"dependency.version\");\n                param.setValue(depMrid.getRevision());\n                param = ct.createParam();\n                param.setName(\"dependency.status\");\n                param.setValue(depStatus == null ? \"null\" : depStatus);\n\n                ct.perform();\n\n                String deliveredProperty = depMrid.getName() + \".\" + depMrid.getRevision()\n                        + \".delivered\";\n                getProject().setProperty(deliveredProperty, \"true\");\n                appendDeliveryList(deliveredProperty + \" = true\");\n\n                getProject().setProperty(\"recursive.\" + depMrid.getName() + \".delivered\", \"true\");\n                appendDeliveryList(\"recursive.\" + depMrid.getName() + \".delivered\" + \" = true\");\n            }\n        }\n\n    }\n\n    private String organisation;\n\n    private String module;\n\n    private String revision;\n\n    private String pubRevision;\n\n    private String deliverpattern;\n\n    private String status;\n\n    private String pubdate;\n\n    private String deliverTarget;\n\n    private File deliveryList;\n\n    private boolean replacedynamicrev = true;\n\n    private String resolveId;\n\n    private String conf;\n\n    private String pubBranch;\n\n    public void setCache(File cache) {\n        cacheAttributeNotSupported();\n    }\n\n    public String getDeliverpattern() {\n        return deliverpattern;\n    }\n\n    public void setDeliverpattern(String destivypattern) {\n        this.deliverpattern = destivypattern;\n    }\n\n    public String getModule() {\n        return module;\n    }\n\n    public void setModule(String module) {\n        this.module = module;\n    }\n\n    public String getOrganisation() {\n        return organisation;\n    }\n\n    public void setOrganisation(String organisation) {\n        this.organisation = organisation;\n    }\n\n    public String getPubdate() {\n        return pubdate;\n    }\n\n    public void setPubdate(String pubdate) {\n        this.pubdate = pubdate;\n    }\n\n    public String getPubrevision() {\n        return pubRevision;\n    }\n\n    public void setPubrevision(String pubRevision) {\n        this.pubRevision = pubRevision;\n    }\n\n    public String getPubbranch() {\n        return pubBranch;\n    }\n    \n    public void setPubbranch(String pubBranch) {\n        this.pubBranch = pubBranch;\n    }\n\n    public String getRevision() {\n        return revision;\n    }\n\n    public void setRevision(String revision) {\n        this.revision = revision;\n    }\n\n    public String getStatus() {\n        return status;\n    }\n\n    public void setStatus(String status) {\n        this.status = status;\n    }\n\n    public void setDelivertarget(String deliverTarget) {\n        this.deliverTarget = deliverTarget;\n    }\n\n    public void setDeliveryList(File deliveryList) {\n        this.deliveryList = deliveryList;\n    }\n\n    public boolean isReplacedynamicrev() {\n        return replacedynamicrev;\n    }\n\n    public void setReplacedynamicrev(boolean replacedynamicrev) {\n        this.replacedynamicrev = replacedynamicrev;\n    }\n\n    public String getResolveId() {\n        return resolveId;\n    }\n\n    public void setResolveId(String resolveId) {\n        this.resolveId = resolveId;\n    }\n\n    public String getConf() {\n        return conf;\n    }\n\n    public void setConf(String confs) {\n        conf = confs;\n    }\n\n    public void doExecute() throws BuildException {\n        Ivy ivy = getIvyInstance();\n        IvySettings settings = ivy.getSettings();\n\n        organisation = getProperty(organisation, settings, \"ivy.organisation\", resolveId);\n        module = getProperty(module, settings, \"ivy.module\", resolveId);\n        revision = getProperty(revision, settings, \"ivy.revision\", resolveId);\n        pubBranch = getProperty(pubBranch, settings, \"ivy.deliver.branch\");\n        pubRevision = getProperty(pubRevision, settings, \"ivy.deliver.revision\");\n        deliverpattern = getProperty(deliverpattern, settings, \"ivy.deliver.ivy.pattern\");\n        status = getProperty(status, settings, \"ivy.status\");\n        if (deliveryList == null) {\n            String deliveryListPath = getProperty(settings, \"ivy.delivery.list.file\");\n            if (deliveryListPath == null) {\n                deliveryList = new File(System.getProperty(\"java.io.tmpdir\")\n                        + \"/delivery.properties\");\n            } else {\n                deliveryList = getProject().resolveFile(settings.substitute(deliveryListPath));\n            }\n        }\n        if (resolveId == null) {\n            if (organisation == null) {\n                throw new BuildException(\n                        \"no organisation provided for ivy deliver task: \" \n                        + \"It can either be set explicitely via the attribute 'organisation' \" \n                        + \"or via 'ivy.organisation' property or a prior call to <resolve/>\");\n            }\n            if (module == null) {\n                throw new BuildException(\n                        \"no module name provided for ivy deliver task: \" \n                        + \"It can either be set explicitely via the attribute 'module' \" \n                        + \"or via 'ivy.module' property or a prior call to <resolve/>\");\n            }\n        }\n        if (revision == null) {\n            revision = Ivy.getWorkingRevision();\n        }\n        Date pubdate = getPubDate(this.pubdate, new Date());\n        if (pubRevision == null) {\n            if (revision.startsWith(\"working@\")) {\n                pubRevision = Ivy.DATE_FORMAT.format(pubdate);\n            } else {\n                pubRevision = revision;\n            }\n        }\n        if (deliverpattern == null) {\n            throw new BuildException(\n                    \"deliver ivy pattern is missing: either provide it as parameters \"\n                    + \"or through ivy.deliver.ivy.pattern properties\");\n        }\n        if (status == null) {\n            throw new BuildException(\n                    \"no status provided: either provide it as parameter or through \"\n                    + \"the ivy.status.default property\");\n        }\n\n        ModuleRevisionId mrid = null;\n        if (resolveId == null) {\n            mrid = ModuleRevisionId.newInstance(organisation, module, revision);\n        }\n        boolean isLeading = false;\n        try {\n            if (!deliveryList.exists()) {\n                isLeading = true;\n            }\n\n            loadDeliveryList();\n\n            PublishingDependencyRevisionResolver drResolver;\n            if (deliverTarget != null && deliverTarget.trim().length() > 0) {\n                drResolver = new DeliverDRResolver();\n            } else {\n                drResolver = new DefaultPublishingDRResolver();\n            }\n\n            DeliverOptions options = new DeliverOptions(status, pubdate, \n                drResolver, doValidate(settings), replacedynamicrev, splitConfs(conf))\n                .setResolveId(resolveId)\n                .setPubBranch(pubBranch);\n            if (mrid == null) {\n                ivy.deliver(pubRevision, deliverpattern, options);\n            } else {\n                ivy.deliver(mrid, pubRevision, deliverpattern, options);\n            }\n        } catch (Exception e) {\n            throw new BuildException(\"impossible to deliver \" + mrid == null ? resolveId : mrid\n                    + \": \" + e, e);\n        } finally {\n            if (isLeading) {\n                if (deliveryList.exists()) {\n                    deliveryList.delete();\n                }\n            }\n        }\n    }\n\n    private void loadDeliveryList() {\n        Property property = (Property) getProject().createTask(\"property\");\n        property.setOwningTarget(getOwningTarget());\n        property.init();\n        property.setFile(deliveryList);\n        property.perform();\n    }\n\n    private void appendDeliveryList(String msg) {\n        Echo echo = (Echo) getProject().createTask(\"echo\");\n        echo.setOwningTarget(getOwningTarget());\n        echo.init();\n        echo.setFile(deliveryList);\n        echo.setMessage(msg + \"\\n\");\n        echo.setAppend(true);\n        echo.perform();", "functions": [{"function_name": "setCache", "code": "    public void setCache(File cache) {\n        cacheAttributeNotSupported();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDeliverpattern", "code": "    public String getDeliverpattern() {\n        return deliverpattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDeliverpattern", "code": "    public void setDeliverpattern(String destivypattern) {\n        this.deliverpattern = destivypattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getModule", "code": "    public String getModule() {\n        return module;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setModule", "code": "    public void setModule(String module) {\n        this.module = module;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOrganisation", "code": "    public String getOrganisation() {\n        return organisation;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOrganisation", "code": "    public void setOrganisation(String organisation) {\n        this.organisation = organisation;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPubdate", "code": "    public String getPubdate() {\n        return pubdate;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPubdate", "code": "    public void setPubdate(String pubdate) {\n        this.pubdate = pubdate;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPubrevision", "code": "    public String getPubrevision() {\n        return pubRevision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPubrevision", "code": "    public void setPubrevision(String pubRevision) {\n        this.pubRevision = pubRevision;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPubbranch", "code": "    public String getPubbranch() {\n        return pubBranch;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPubbranch", "code": "    public void setPubbranch(String pubBranch) {\n        this.pubBranch = pubBranch;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRevision", "code": "    public String getRevision() {\n        return revision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRevision", "code": "    public void setRevision(String revision) {\n        this.revision = revision;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStatus", "code": "    public String getStatus() {\n        return status;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStatus", "code": "    public void setStatus(String status) {\n        this.status = status;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDelivertarget", "code": "    public void setDelivertarget(String deliverTarget) {\n        this.deliverTarget = deliverTarget;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDeliveryList", "code": "    public void setDeliveryList(File deliveryList) {\n        this.deliveryList = deliveryList;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isReplacedynamicrev", "code": "    public boolean isReplacedynamicrev() {\n        return replacedynamicrev;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplacedynamicrev", "code": "    public void setReplacedynamicrev(boolean replacedynamicrev) {\n        this.replacedynamicrev = replacedynamicrev;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResolveId", "code": "    public String getResolveId() {\n        return resolveId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResolveId", "code": "    public void setResolveId(String resolveId) {\n        this.resolveId = resolveId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConf", "code": "    public String getConf() {\n        return conf;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConf", "code": "    public void setConf(String confs) {\n        conf = confs;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doExecute", "code": "    public void doExecute() throws BuildException {\n        Ivy ivy = getIvyInstance();\n        IvySettings settings = ivy.getSettings();\n\n        organisation = getProperty(organisation, settings, \"ivy.organisation\", resolveId);\n        module = getProperty(module, settings, \"ivy.module\", resolveId);\n        revision = getProperty(revision, settings, \"ivy.revision\", resolveId);\n        pubBranch = getProperty(pubBranch, settings, \"ivy.deliver.branch\");\n        pubRevision = getProperty(pubRevision, settings, \"ivy.deliver.revision\");\n        deliverpattern = getProperty(deliverpattern, settings, \"ivy.deliver.ivy.pattern\");\n        status = getProperty(status, settings, \"ivy.status\");\n        if (deliveryList == null) {\n            String deliveryListPath = getProperty(settings, \"ivy.delivery.list.file\");\n            if (deliveryListPath == null) {\n                deliveryList = new File(System.getProperty(\"java.io.tmpdir\")\n                        + \"/delivery.properties\");\n            } else {\n                deliveryList = getProject().resolveFile(settings.substitute(deliveryListPath));\n            }\n        }\n        if (resolveId == null) {\n            if (organisation == null) {\n                throw new BuildException(\n                        \"no organisation provided for ivy deliver task: \" \n                        + \"It can either be set explicitely via the attribute 'organisation' \" \n                        + \"or via 'ivy.organisation' property or a prior call to <resolve/>\");\n            }\n            if (module == null) {\n                throw new BuildException(\n                        \"no module name provided for ivy deliver task: \" \n                        + \"It can either be set explicitely via the attribute 'module' \" \n                        + \"or via 'ivy.module' property or a prior call to <resolve/>\");\n            }\n        }\n        if (revision == null) {\n            revision = Ivy.getWorkingRevision();\n        }\n        Date pubdate = getPubDate(this.pubdate, new Date());\n        if (pubRevision == null) {\n            if (revision.startsWith(\"working@\")) {\n                pubRevision = Ivy.DATE_FORMAT.format(pubdate);\n            } else {\n                pubRevision = revision;\n            }\n        }\n        if (deliverpattern == null) {\n            throw new BuildException(\n                    \"deliver ivy pattern is missing: either provide it as parameters \"\n                    + \"or through ivy.deliver.ivy.pattern properties\");\n        }\n        if (status == null) {\n            throw new BuildException(\n                    \"no status provided: either provide it as parameter or through \"\n                    + \"the ivy.status.default property\");\n        }\n\n        ModuleRevisionId mrid = null;\n        if (resolveId == null) {\n            mrid = ModuleRevisionId.newInstance(organisation, module, revision);\n        }\n        boolean isLeading = false;\n        try {\n            if (!deliveryList.exists()) {\n                isLeading = true;\n            }\n\n            loadDeliveryList();\n\n            PublishingDependencyRevisionResolver drResolver;\n            if (deliverTarget != null && deliverTarget.trim().length() > 0) {\n                drResolver = new DeliverDRResolver();\n            } else {\n                drResolver = new DefaultPublishingDRResolver();\n            }\n\n            DeliverOptions options = new DeliverOptions(status, pubdate, \n                drResolver, doValidate(settings), replacedynamicrev, splitConfs(conf))\n                .setResolveId(resolveId)\n                .setPubBranch(pubBranch);\n            if (mrid == null) {\n                ivy.deliver(pubRevision, deliverpattern, options);\n            } else {\n                ivy.deliver(mrid, pubRevision, deliverpattern, options);\n            }\n        } catch (Exception e) {\n            throw new BuildException(\"impossible to deliver \" + mrid == null ? resolveId : mrid\n                    + \": \" + e, e);\n        } finally {\n            if (isLeading) {\n                if (deliveryList.exists()) {\n                    deliveryList.delete();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [3, 21], [5, 22], [6, 23], [7, 24], [9, 25], [10, 26], [11, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [15, 35], [16, 36], [18, 37], [1, 38], [20, 39], [2, 40], [21, 41], [4, 42], [5, 43], [22, 44], [6, 45], [23, 46], [7, 47], [24, 48], [8, 49], [25, 50], [10, 51], [10, 52], [26, 53], [11, 54], [11, 55], [27, 56], [28, 57], [29, 58], [30, 59], [31, 60], [32, 61], [33, 62], [34, 63], [12, 64], [13, 65], [14, 66], [35, 67], [36, 68], [17, 69], [37, 70], [37, 71], [3, 72], [43, 73], [45, 74], [47, 75], [49, 76], [9, 77], [51, 78], [52, 79], [54, 80], [57, 81], [58, 82], [59, 83], [60, 84], [61, 85], [62, 86], [63, 87], [66, 88], [67, 89], [16, 90], [16, 91], [69, 92], [69, 93], [69, 94], [69, 95], [18, 96], [18, 97], [70, 98], [70, 99], [71, 100], [20, 101], [72, 102], [73, 103], [74, 104], [75, 105], [77, 106], [51, 107], [78, 108], [52, 109], [79, 110], [80, 111], [55, 112], [89, 113], [89, 114], [96, 115], [97, 116], [99, 117], [101, 118], [103, 119], [103, 120], [104, 121], [104, 122], [47, 123], [47, 124], [107, 125], [109, 126], [54, 127], [54, 128], [112, 129], [66, 130], [113, 131], [114, 132], [114, 133], [124, 134], [125, 135], [126, 136], [127, 137], [128, 138], [131, 139], [133, 140], [135, 141], [135, 142], [136, 143], [136, 144], [137, 145], [138, 146], [142, 147], [142, 148], [144, 149], [144, 150], [145, 151], [146, 152], [146, 153], [153, 154], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 3], [22, 5], [23, 6], [24, 7], [25, 9], [26, 10], [27, 11], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 15], [36, 16], [37, 18], [38, 1], [39, 20], [40, 2], [41, 21], [42, 4], [43, 5], [44, 22], [45, 6], [46, 23], [47, 7], [48, 24], [49, 8], [50, 25], [51, 10], [52, 10], [53, 26], [54, 11], [55, 11], [56, 27], [57, 28], [58, 29], [59, 30], [60, 31], [61, 32], [62, 33], [63, 34], [64, 12], [65, 13], [66, 14], [67, 35], [68, 36], [69, 17], [70, 37], [71, 37], [72, 3], [73, 43], [74, 45], [75, 47], [76, 49], [77, 9], [78, 51], [79, 52], [80, 54], [81, 57], [82, 58], [83, 59], [84, 60], [85, 61], [86, 62], [87, 63], [88, 66], [89, 67], [90, 16], [91, 16], [92, 69], [93, 69], [94, 69], [95, 69], [96, 18], [97, 18], [98, 70], [99, 70], [100, 71], [101, 20], [102, 72], [103, 73], [104, 74], [105, 75], [106, 77], [107, 51], [108, 78], [109, 52], [110, 79], [111, 80], [112, 55], [113, 89], [114, 89], [115, 96], [116, 97], [117, 99], [118, 101], [119, 103], [120, 103], [121, 104], [122, 104], [123, 47], [124, 47], [125, 107], [126, 109], [127, 54], [128, 54], [129, 112], [130, 66], [131, 113], [132, 114], [133, 114], [134, 124], [135, 125], [136, 126], [137, 127], [138, 128], [139, 131], [140, 133], [141, 135], [142, 135], [143, 136], [144, 136], [145, 137], [146, 138], [147, 142], [148, 142], [149, 144], [150, 144], [151, 145], [152, 146], [153, 146], [154, 153], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154]]}, {"function_name": "loadDeliveryList", "code": "    private void loadDeliveryList() {\n        Property property = (Property) getProject().createTask(\"property\");\n        property.setOwningTarget(getOwningTarget());\n        property.init();\n        property.setFile(deliveryList);\n        property.perform();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "appendDeliveryList", "code": "    private void appendDeliveryList(String msg) {\n        Echo echo = (Echo) getProject().createTask(\"echo\");\n        echo.setOwningTarget(getOwningTarget());\n        echo.init();\n        echo.setFile(deliveryList);\n        echo.setMessage(msg + \"\\n\");\n        echo.setAppend(true);\n        echo.perform();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [8, 11], [10, 12], [1, 13], [13, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 8], [12, 10], [13, 1], [14, 13], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}], "label": 0}
{"sample_id": "camel-1.6-3006", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/language/groovy/GroovyLanguage.java", "language": "java", "name": "org.apache.camel.language.groovy.GroovyLanguage", "code": "public class GroovyLanguage implements Language  {\n\n    public static GroovyExpression groovy(String expression) {\n        return new GroovyLanguage().createExpression(expression);\n    }\n\n    public GroovyExpression createPredicate(String expression) {\n        return createExpression(expression);\n    }\n\n    public GroovyExpression createExpression(String expression) {\n        Class<Script> scriptType = parseExpression(expression);\n        return new GroovyExpression(scriptType, expression);\n    }\n\n    protected Class<Script> parseExpression(String expression) {\n        return new GroovyClassLoader().parseClass(expression);", "functions": [{"function_name": "groovy", "code": "    public static GroovyExpression groovy(String expression) {\n        return new GroovyLanguage().createExpression(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createPredicate", "code": "    public GroovyExpression createPredicate(String expression) {\n        return createExpression(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createExpression", "code": "    public GroovyExpression createExpression(String expression) {\n        Class<Script> scriptType = parseExpression(expression);\n        return new GroovyExpression(scriptType, expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "parseExpression", "code": "    protected Class<Script> parseExpression(String expression) {\n        return new GroovyClassLoader().parseClass(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.7-7985", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/DOM2Helper.java", "language": "java", "name": "org.apache.xml.utils.DOM2Helper", "code": "public class DOM2Helper extends DOMHelper\n{\n\n  /**\n   * Construct an instance.\n   */\n  public DOM2Helper(){}\n\n  /**\n   * Check node to see if it was created by a DOM implementation\n   * that this helper is intended to support. This is currently\n   * disabled, and assumes all nodes are acceptable rather than checking\n   * that they implement org.apache.xerces.dom.NodeImpl.\n   *\n   * @param node The node to be tested.\n   *\n   * @throws TransformerException if the node is not one which this\n   * DOM2Helper can support. If we return without throwing the exception,\n   * the node is compatable.\n   * @xsl.usage internal\n   */\n  public void checkNode(Node node) throws TransformerException\n  {\n\n  }\n\n  /**\n   * Returns true if the DOM implementation handled by this helper\n   * supports the SAX ContentHandler interface.\n   *\n   * @return true (since Xerces does).\n   */\n  public boolean supportsSAX()\n  {\n    return true;\n  }\n\n  /** Field m_doc: Document Node for the document this helper is currently\n   * accessing or building\n   * @see #setDocument\n   * @see #getDocument\n   *  */\n  private Document m_doc;\n\n  /**\n   * Specify which document this helper is currently operating on.\n   * \t\n   * @param doc The DOM Document node for this document.\n   * @see #getDocument\n   */\n  public void setDocument(Document doc)\n  {\n    m_doc = doc;\n  }\n\n  /**\n   * Query which document this helper is currently operating on.\n   * \t\n   * @return The DOM Document node for this document.\n   * @see #setDocument\n   */\n  public Document getDocument()\n  {\n    return m_doc;\n  }\n\n  /**\n   * Parse an XML document.\n   *\n   * <p>Right now the Xerces DOMParser class is used.  This needs\n   * fixing, either via jaxp, or via some other, standard method.</p>\n   *\n   * <p>The application can use this method to instruct the SAX parser\n   * to begin parsing an XML document from any valid input\n   * source (a character stream, a byte stream, or a URI).</p>\n   *\n   * <p>Applications may not invoke this method while a parse is in\n   * progress (they should create a new Parser instead for each\n   * additional XML document).  Once a parse is complete, an\n   * application may reuse the same Parser object, possibly with a\n   * different input source.</p>\n   *\n   * @param source The input source for the top-level of the\n   *        XML document.\n   *\n   * @throws TransformerException if any checked exception is thrown.\n   * @xsl.usage internal\n   */\n  public void parse(InputSource source) throws TransformerException\n  {\n\n    try\n    {\n\n      DocumentBuilderFactory builderFactory =\n        DocumentBuilderFactory.newInstance();\n\n      builderFactory.setNamespaceAware(true);\n      builderFactory.setValidating(true);\n\n      DocumentBuilder parser = builderFactory.newDocumentBuilder();\n\n      /*\n      if(m_useDOM2getNamespaceURI)\n      {\n      }\n      else\n      {\n      }\n\n      */\n\n      parser.setErrorHandler(\n        new org.apache.xml.utils.DefaultErrorHandler());\n\n      setDocument(parser.parse(source));\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n    catch (ParserConfigurationException pce)\n    {\n      throw new TransformerException(pce);\n    }\n    catch (IOException ioe)\n    {\n      throw new TransformerException(ioe);\n    }\n\n  }\n\n  /**\n   * Given an XML ID, return the element. This requires assistance from the\n   * DOM and parser, and is meaningful only in the context of a DTD \n   * or schema which declares attributes as being of type ID. This\n   * information may or may not be available in all parsers, may or\n   * may not be available for specific documents, and may or may not\n   * be available when validation is not turned on.\n   *\n   * @param id The ID to search for, as a String.\n   * @param doc The document to search within, as a DOM Document node.\n   * @return DOM Element node with an attribute of type ID whose value\n   * uniquely matches the requested id string, or null if there isn't\n   * such an element or if the DOM can't answer the question for other\n   * reasons.\n   */\n  public Element getElementByID(String id, Document doc)\n  {\n    return doc.getElementById(id);\n  }\n\n  /**\n   * Figure out whether node2 should be considered as being later\n   * in the document than node1, in Document Order as defined\n   * by the XPath model. This may not agree with the ordering defined\n   * by other XML applications.\n   * <p>\n   * There are some cases where ordering isn't defined, and neither are\n   * the results of this function -- though we'll generally return true.\n   * <p>\n   * TODO: Make sure this does the right thing with attribute nodes!!!\n   *\n   * @param node1 DOM Node to perform position comparison on.\n   * @param node2 DOM Node to perform position comparison on .\n   * \n   * @return false if node2 comes before node1, otherwise return true.\n   * You can think of this as \n   * <code>(node1.documentOrderPosition &lt;= node2.documentOrderPosition)</code>.\n   */\n  public static boolean isNodeAfter(Node node1, Node node2)\n  {\n\n    if(node1 instanceof DOMOrder && node2 instanceof DOMOrder)\n    {\n      int index1 = ((DOMOrder) node1).getUid();\n      int index2 = ((DOMOrder) node2).getUid();\n\n      return index1 <= index2;\n    }\n    else\n    {\n\n      return DOMHelper.isNodeAfter(node1, node2);\n    }\n  }\n\n  /**\n   * Get the XPath-model parent of a node.  This version takes advantage\n   * of the DOM Level 2 Attr.ownerElement() method; the base version we\n   * would otherwise inherit is prepared to fall back on exhaustively\n   * walking the document to find an Attr's parent.\n   *\n   * @param node Node to be examined\n   *\n   * @return the DOM parent of the input node, if there is one, or the\n   * ownerElement if the input node is an Attr, or null if the node is\n   * a Document, a DocumentFragment, or an orphan.\n   */\n  public static Node getParentOfNode(Node node)\n  {\n          Node parent=node.getParentNode();\n          if(parent==null && (Node.ATTRIBUTE_NODE == node.getNodeType()) )\n           parent=((Attr) node).getOwnerElement();\n          return parent;\n  }\n\n  /**\n   * Returns the local name of the given node, as defined by the\n   * XML Namespaces specification. This is prepared to handle documents\n   * built using DOM Level 1 methods by falling back upon explicitly\n   * parsing the node name.\n   *\n   * @param n Node to be examined\n   *\n   * @return String containing the local name, or null if the node\n   * was not assigned a Namespace.\n   */\n  public String getLocalNameOfNode(Node n)\n  {\n\n    String name = n.getLocalName();\n\n    return (null == name) ? super.getLocalNameOfNode(n) : name;\n  }\n\n  /**\n   * Returns the Namespace Name (Namespace URI) for the given node.\n   * In a Level 2 DOM, you can ask the node itself. Note, however, that\n   * doing so conflicts with our decision in getLocalNameOfNode not\n   * to trust the that the DOM was indeed created using the Level 2\n   * methods. If Level 1 methods were used, these two functions will\n   * disagree with each other.\n   * <p>\n   * TODO: Reconcile with getLocalNameOfNode.\n   *\n   * @param n Node to be examined\n   *\n   * @return String containing the Namespace URI bound to this DOM node\n   * at the time the Node was created.\n   */\n  public String getNamespaceOfNode(Node n)\n  {\n    return n.getNamespaceURI();", "functions": [{"function_name": "checkNode", "code": "  public void checkNode(Node node) throws TransformerException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "supportsSAX", "code": "  public boolean supportsSAX()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDocument", "code": "  public void setDocument(Document doc)\n  {\n    m_doc = doc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocument", "code": "  public Document getDocument()\n  {\n    return m_doc;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parse", "code": "  public void parse(InputSource source) throws TransformerException\n  {\n\n    try\n    {\n\n      DocumentBuilderFactory builderFactory =\n        DocumentBuilderFactory.newInstance();\n\n      builderFactory.setNamespaceAware(true);\n      builderFactory.setValidating(true);\n\n      DocumentBuilder parser = builderFactory.newDocumentBuilder();\n\n      /*\n      if(m_useDOM2getNamespaceURI)\n      {\n      }\n      else\n      {\n      }\n\n      */\n\n      parser.setErrorHandler(\n        new org.apache.xml.utils.DefaultErrorHandler());\n\n      setDocument(parser.parse(source));\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n    catch (ParserConfigurationException pce)\n    {\n      throw new TransformerException(pce);\n    }\n    catch (IOException ioe)\n    {\n      throw new TransformerException(ioe);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "CATCH", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [4, 9], [5, 10], [1, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [10, 17], [11, 18], [12, 19], [6, 20], [13, 21], [14, 22], [7, 23], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 4], [10, 5], [11, 1], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 10], [18, 11], [19, 12], [20, 6], [21, 13], [22, 14], [23, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getElementByID", "code": "  public Element getElementByID(String id, Document doc)\n  {\n    return doc.getElementById(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isNodeAfter", "code": "  public static boolean isNodeAfter(Node node1, Node node2)\n  {\n\n    if(node1 instanceof DOMOrder && node2 instanceof DOMOrder)\n    {\n      int index1 = ((DOMOrder) node1).getUid();\n      int index2 = ((DOMOrder) node2).getUid();\n\n      return index1 <= index2;\n    }\n    else\n    {\n\n      return DOMHelper.isNodeAfter(node1, node2);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [4, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 4], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getParentOfNode", "code": "  public static Node getParentOfNode(Node node)\n  {\n          Node parent=node.getParentNode();\n          if(parent==null && (Node.ATTRIBUTE_NODE == node.getNodeType()) )\n           parent=((Attr) node).getOwnerElement();\n          return parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getLocalNameOfNode", "code": "  public String getLocalNameOfNode(Node n)\n  {\n\n    String name = n.getLocalName();\n\n    return (null == name) ? super.getLocalNameOfNode(n) : name;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNamespaceOfNode", "code": "  public String getNamespaceOfNode(Node n)\n  {\n    return n.getNamespaceURI();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DOM2Helper", "code": "  public DOM2Helper(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.6-3191", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/file/FileComponent.java", "language": "java", "name": "org.apache.camel.component.file.FileComponent", "code": "public class FileComponent extends DefaultComponent<FileExchange> {\n\n    /**\n     * Header key holding the value: the fixed filename to use for producing files.\n     */\n    public static final String HEADER_FILE_NAME = \"org.apache.camel.file.name\";\n\n    /**\n     * Header key holding the value: absolute filepath for the actual file produced (by file producer).\n     * Value is set automatically by Camel\n     */\n    public static final String HEADER_FILE_NAME_PRODUCED = \"org.apache.camel.file.name.produced\";\n\n    public FileComponent() {\n    }\n\n    public FileComponent(CamelContext context) {\n        super(context);\n    }\n\n    protected Endpoint<FileExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        File file = new File(remaining);\n        FileEndpoint result = new FileEndpoint(file, uri, this);\n        setProperties(result, parameters);\n        return result;", "functions": [{"function_name": "createEndpoint", "code": "    protected Endpoint<FileExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        File file = new File(remaining);\n        FileEndpoint result = new FileEndpoint(file, uri, this);\n        setProperties(result, parameters);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "FileComponent", "code": "    public FileComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FileComponent", "code": "    public FileComponent(CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ant-1.3-23", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/DirectoryScanner.java", "language": "java", "name": "org.apache.tools.ant.DirectoryScanner", "code": "public class DirectoryScanner implements FileScanner {\n\n    /**\n     * Patterns that should be excluded by default.\n     *\n     * @see #addDefaultExcludes()\n     */\n    protected final static String[] DEFAULTEXCLUDES = {\n        \"**/*~\",\n        \"**/#*#\",\n        \"**/%*%\",\n        \"**/CVS\",\n        \"**/CVS/**\",\n        \"**/.cvsignore\"\n    };\n\n    /**\n     * The base directory which should be scanned.\n     */\n    protected File basedir;\n\n    /**\n     * The patterns for the files that should be included.\n     */\n    protected String[] includes;\n\n    /**\n     * The patterns for the files that should be excluded.\n     */\n    protected String[] excludes;\n\n    /**\n     * The files that where found and matched at least one includes, and matched\n     * no excludes.\n     */\n    protected Vector filesIncluded;\n\n    /**\n     * The files that where found and did not match any includes.\n     */\n    protected Vector filesNotIncluded;\n\n    /**\n     * The files that where found and matched at least one includes, and also\n     * matched at least one excludes.\n     */\n    protected Vector filesExcluded;\n\n    /**\n     * The directories that where found and matched at least one includes, and\n     * matched no excludes.\n     */\n    protected Vector dirsIncluded;\n\n    /**\n     * The directories that where found and did not match any includes.\n     */\n    protected Vector dirsNotIncluded;\n\n    /**\n     * The files that where found and matched at least one includes, and also\n     * matched at least one excludes.\n     */\n    protected Vector dirsExcluded;\n\n    /**\n     * Have the Vectors holding our results been built by a slow scan?\n     */\n    protected boolean haveSlowResults = false;\n\n    /**\n     * Constructor.\n     */\n    public DirectoryScanner() {\n    }\n\n\n    /**\n     * Does the path match the start of this pattern up to the first \"**\".\n     +\n     * <p>This is not a general purpose test and should only be used if you\n     * can live with false positives.</p>\n     *\n     * <p><code>pattern=**\\\\a</code> and <code>str=b</code> will yield true.\n     *\n     * @param pattern the (non-null) pattern to match against\n     * @param str     the (non-null) string (path) to match\n     */\n    protected static boolean matchPatternStart(String pattern, String str) {\n        if (str.startsWith(File.separator) !=\n            pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        Vector patDirs = new Vector();\n        StringTokenizer st = new StringTokenizer(pattern,File.separator);\n        while (st.hasMoreTokens()) {\n            patDirs.addElement(st.nextToken());\n        }\n\n        Vector strDirs = new Vector();\n        st = new StringTokenizer(str,File.separator);\n        while (st.hasMoreTokens()) {\n            strDirs.addElement(st.nextToken());\n        }\n\n        int patIdxStart = 0;\n        int patIdxEnd   = patDirs.size()-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strDirs.size()-1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxStart);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxStart))) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n\n        if (strIdxStart > strIdxEnd) {\n            return true;\n        } else if (patIdxStart > patIdxEnd) {\n            return false;\n        } else {\n            return true;\n        }\n    }\n\n    /**\n     * Matches a path against a pattern.\n     *\n     * @param pattern the (non-null) pattern to match against\n     * @param str     the (non-null) string (path) to match\n     *\n     * @return <code>true</code> when the pattern matches against the string.\n     *         <code>false</code> otherwise.\n     */\n    protected static boolean matchPath(String pattern, String str) {\n        if (str.startsWith(File.separator) !=\n            pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        Vector patDirs = new Vector();\n        StringTokenizer st = new StringTokenizer(pattern,File.separator);\n        while (st.hasMoreTokens()) {\n            patDirs.addElement(st.nextToken());\n        }\n\n        Vector strDirs = new Vector();\n        st = new StringTokenizer(str,File.separator);\n        while (st.hasMoreTokens()) {\n            strDirs.addElement(st.nextToken());\n        }\n\n        int patIdxStart = 0;\n        int patIdxEnd   = patDirs.size()-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strDirs.size()-1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxStart);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxStart))) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs.elementAt(i).equals(\"**\")) {\n                    return false;\n                }\n            }\n            return true;\n        } else {\n            if (patIdxStart > patIdxEnd) {\n                return false;\n            }\n        }\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxEnd);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxEnd))) {\n                return false;\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs.elementAt(i).equals(\"**\")) {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart+1; i <= patIdxEnd; i++) {\n                if (patDirs.elementAt(i).equals(\"**\")) {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart+1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp-patIdxStart-1);\n            int strLength = (strIdxEnd-strIdxStart+1);\n            int foundIdx  = -1;\nstrLoop:\n            for (int i = 0; i <= strLength - patLength; i++) {\n                for (int j = 0; j < patLength; j++) {\n                    String subPat = (String)patDirs.elementAt(patIdxStart+j+1);\n                    String subStr = (String)strDirs.elementAt(strIdxStart+i+j);\n                    if (!match(subPat,subStr)) {\n                        continue strLoop;\n                    }\n                }\n\n                foundIdx = strIdxStart+i;\n                break;\n            }\n\n            if (foundIdx == -1) {\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx+patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (!patDirs.elementAt(i).equals(\"**\")) {\n                return false;\n            }\n        }\n\n        return true;\n    }\n\n\n\n    /**\n     * Matches a string against a pattern. The pattern contains two special\n     * characters:\n     * '*' which means zero or more characters,\n     * '?' which means one and only one character.\n     *\n     * @param pattern the (non-null) pattern to match against\n     * @param str     the (non-null) string that must be matched against the\n     *                pattern\n     *\n     * @return <code>true</code> when the string matches against the pattern,\n     *         <code>false</code> otherwise.\n     */\n    protected static boolean match(String pattern, String str) {\n        char[] patArr = pattern.toCharArray();\n        char[] strArr = str.toCharArray();\n        int patIdxStart = 0;\n        int patIdxEnd   = patArr.length-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strArr.length-1;\n        char ch;\n\n        boolean containsStar = false;\n        for (int i = 0; i < patArr.length; i++) {\n            if (patArr[i] == '*') {\n                containsStar = true;\n                break;\n            }\n        }\n\n        if (!containsStar) {\n            if (patIdxEnd != strIdxEnd) {\n            }\n            for (int i = 0; i <= patIdxEnd; i++) {\n                ch = patArr[i];\n                if (ch != '?' && ch != strArr[i]) {\n                }\n            }\n        }\n\n        if (patIdxEnd == 0) {\n        }\n\n        while((ch = patArr[patIdxStart]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?' && ch != strArr[strIdxStart]) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while((ch = patArr[patIdxEnd]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?' && ch != strArr[strIdxEnd]) {\n                return false;\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart+1; i <= patIdxEnd; i++) {\n                if (patArr[i] == '*') {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart+1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp-patIdxStart-1);\n            int strLength = (strIdxEnd-strIdxStart+1);\n            int foundIdx  = -1;\nstrLoop:\n            for (int i = 0; i <= strLength - patLength; i++) {\n                for (int j = 0; j < patLength; j++) {\n                    ch = patArr[patIdxStart+j+1];\n                    if (ch != '?' && ch != strArr[strIdxStart+i+j]) {\n                        continue strLoop;\n                    }\n                }\n\n                foundIdx = strIdxStart+i;\n                break;\n            }\n\n            if (foundIdx == -1) {\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx+patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (patArr[i] != '*') {\n                return false;\n            }\n        }\n        return true;\n    }\n\n\n\n    /**\n     * Sets the basedir for scanning. This is the directory that is scanned\n     * recursively. All '/' and '\\' characters are replaced by\n     * <code>File.separatorChar</code>. So the separator used need not match\n     * <code>File.separatorChar</code>.\n     *\n     * @param basedir the (non-null) basedir for scanning\n     */\n    public void setBasedir(String basedir) {\n        setBasedir(new File(basedir.replace('/',File.separatorChar).replace('\\\\',File.separatorChar)));\n    }\n\n\n\n    /**\n     * Sets the basedir for scanning. This is the directory that is scanned\n     * recursively.\n     *\n     * @param basedir the basedir for scanning\n     */\n    public void setBasedir(File basedir) {\n        this.basedir = basedir;\n    }\n\n\n\n    /**\n     * Gets the basedir that is used for scanning. This is the directory that\n     * is scanned recursively.\n     *\n     * @return the basedir that is used for scanning\n     */\n    public File getBasedir() {\n        return basedir;\n    }\n\n\n\n    /**\n     * Sets the set of include patterns to use. All '/' and '\\' characters are\n     * replaced by <code>File.separatorChar</code>. So the separator used need\n     * not match <code>File.separatorChar</code>.\n     * <p>\n     * When a pattern ends with a '/' or '\\', \"**\" is appended.\n     *\n     * @param includes list of include patterns\n     */\n    public void setIncludes(String[] includes) {\n        if (includes == null) {\n            this.includes = null;\n        } else {\n            this.includes = new String[includes.length];\n            for (int i = 0; i < includes.length; i++) {\n                String pattern;\n                pattern = includes[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n                if (pattern.endsWith(File.separator)) {\n                    pattern += \"**\";\n                }\n                this.includes[i] = pattern;\n            }\n        }\n    }\n\n\n\n    /**\n     * Sets the set of exclude patterns to use. All '/' and '\\' characters are\n     * replaced by <code>File.separatorChar</code>. So the separator used need\n     * not match <code>File.separatorChar</code>.\n     * <p>\n     * When a pattern ends with a '/' or '\\', \"**\" is appended.\n     *\n     * @param excludes list of exclude patterns\n     */\n    public void setExcludes(String[] excludes) {\n        if (excludes == null) {\n            this.excludes = null;\n        } else {\n            this.excludes = new String[excludes.length];\n            for (int i = 0; i < excludes.length; i++) {\n                String pattern;\n                pattern = excludes[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n                if (pattern.endsWith(File.separator)) {\n                    pattern += \"**\";\n                }\n                this.excludes[i] = pattern;\n            }\n        }\n    }\n\n\n\n    /**\n     * Scans the base directory for files that match at least one include\n     * pattern, and don't match any exclude patterns.\n     *\n     * @exception IllegalStateException when basedir was set incorrecly\n     */\n    public void scan() {\n        if (basedir == null) {\n            throw new IllegalStateException(\"No basedir set\");\n        }\n        if (!basedir.exists()) {\n            throw new IllegalStateException(\"basedir does not exist\");\n        }\n        if (!basedir.isDirectory()) {\n            throw new IllegalStateException(\"basedir is not a directory\");\n        }\n\n        if (includes == null) {\n            includes = new String[1];\n            includes[0] = \"**\";\n        }\n        if (excludes == null) {\n            excludes = new String[0];\n        }\n\n        filesIncluded    = new Vector();\n        filesNotIncluded = new Vector();\n        filesExcluded    = new Vector();\n        dirsIncluded     = new Vector();\n        dirsNotIncluded  = new Vector();\n        dirsExcluded     = new Vector();\n\n        scandir(basedir, \"\", true);\n    }\n\n    /**\n     * Toplevel invocation for the scan.\n     *\n     * <p>Returns immediately if a slow scan has already been requested.\n     */\n    protected void slowScan() {\n        if (haveSlowResults) {\n            return;\n        }\n\n        String[] excl = new String[dirsExcluded.size()];\n        dirsExcluded.copyInto(excl);\n\n        String[] notIncl = new String[dirsNotIncluded.size()];\n        dirsNotIncluded.copyInto(notIncl);\n\n        for (int i=0; i<excl.length; i++) {\n            scandir(new File(basedir, excl[i]), excl[i]+File.separator, false);\n        }\n        \n        for (int i=0; i<notIncl.length; i++) {\n            if (!couldHoldIncluded(notIncl[i])) {\n                scandir(new File(basedir, notIncl[i]), \n                        notIncl[i]+File.separator, false);\n            }\n        }\n\n        haveSlowResults  = true;\n    }\n\n\n    /**\n     * Scans the passed dir for files and directories. Found files and\n     * directories are placed in their respective collections, based on the\n     * matching of includes and excludes. When a directory is found, it is\n     * scanned recursively.\n     *\n     * @param dir   the directory to scan\n     * @param vpath the path relative to the basedir (needed to prevent\n     *              problems with an absolute path when using dir)\n     *\n     * @see #filesIncluded\n     * @see #filesNotIncluded\n     * @see #filesExcluded\n     * @see #dirsIncluded\n     * @see #dirsNotIncluded\n     * @see #dirsExcluded\n     */\n    protected void scandir(File dir, String vpath, boolean fast) {\n        String[] newfiles = dir.list();\n\n        if (newfiles == null) {\n            /*\n             * two reasons are mentioned in the API docs for File.list\n             * (1) dir is not a directory. This is impossible as\n             *     we wouldn't get here in this case.\n             * (2) an IO error occurred (why doesn't it throw an exception \n             *     then???)\n             */\n            throw new BuildException(\"IO error scanning directory \"\n                                     + dir.getAbsolutePath());\n        }\n\n        for (int i = 0; i < newfiles.length; i++) {\n            String name = vpath+newfiles[i];\n            File   file = new File(dir,newfiles[i]);\n            if (file.isDirectory()) {\n                if (isIncluded(name)) {\n                    if (!isExcluded(name)) {\n                        dirsIncluded.addElement(name);\n                        if (fast) {\n                            scandir(file, name+File.separator, fast);\n                        }\n                    } else {\n                        dirsExcluded.addElement(name);\n                    }\n                } else {\n                    dirsNotIncluded.addElement(name);\n                    if (fast && couldHoldIncluded(name)) {\n                        scandir(file, name+File.separator, fast);\n                    }\n                }\n                if (!fast) {\n                    scandir(file, name+File.separator, fast);\n                }\n            } else if (file.isFile()) {\n                if (isIncluded(name)) {\n                    if (!isExcluded(name)) {\n                        filesIncluded.addElement(name);\n                    } else {\n                        filesExcluded.addElement(name);\n                    }\n                } else {\n                    filesNotIncluded.addElement(name);\n                }\n            }\n        }\n    }\n\n\n\n    /**\n     * Tests whether a name matches against at least one include pattern.\n     *\n     * @param name the name to match\n     * @return <code>true</code> when the name matches against at least one\n     *         include pattern, <code>false</code> otherwise.\n     */\n    protected boolean isIncluded(String name) {\n        for (int i = 0; i < includes.length; i++) {\n            if (matchPath(includes[i],name)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Tests whether a name matches the start of at least one include pattern.\n     *\n     * @param name the name to match\n     * @return <code>true</code> when the name matches against at least one\n     *         include pattern, <code>false</code> otherwise.\n     */\n    protected boolean couldHoldIncluded(String name) {\n        for (int i = 0; i < includes.length; i++) {\n            if (matchPatternStart(includes[i],name)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Tests whether a name matches against at least one exclude pattern.\n     *\n     * @param name the name to match\n     * @return <code>true</code> when the name matches against at least one\n     *         exclude pattern, <code>false</code> otherwise.\n     */\n    protected boolean isExcluded(String name) {\n        for (int i = 0; i < excludes.length; i++) {\n            if (matchPath(excludes[i],name)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n\n\n    /**\n     * Get the names of the files that matched at least one of the include\n     * patterns, an matched none of the exclude patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the files\n     */\n    public String[] getIncludedFiles() {\n        int count = filesIncluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesIncluded.elementAt(i);\n        }\n        return files;\n    }\n\n\n\n    /**\n     * Get the names of the files that matched at none of the include patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the files\n     */\n    public String[] getNotIncludedFiles() {\n        slowScan();\n        int count = filesNotIncluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesNotIncluded.elementAt(i);\n        }\n        return files;\n    }\n\n\n\n    /**\n     * Get the names of the files that matched at least one of the include\n     * patterns, an matched also at least one of the exclude patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the files\n     */\n    public String[] getExcludedFiles() {\n        slowScan();\n        int count = filesExcluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesExcluded.elementAt(i);\n        }\n        return files;\n    }\n\n\n\n    /**\n     * Get the names of the directories that matched at least one of the include\n     * patterns, an matched none of the exclude patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the directories\n     */\n    public String[] getIncludedDirectories() {\n        int count = dirsIncluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsIncluded.elementAt(i);\n        }\n        return directories;\n    }\n\n\n\n    /**\n     * Get the names of the directories that matched at none of the include\n     * patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the directories\n     */\n    public String[] getNotIncludedDirectories() {\n        slowScan();\n        int count = dirsNotIncluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsNotIncluded.elementAt(i);\n        }\n        return directories;\n    }\n\n\n\n    /**\n     * Get the names of the directories that matched at least one of the include\n     * patterns, an matched also at least one of the exclude patterns.\n     * The names are relative to the basedir.\n     *\n     * @return the names of the directories\n     */\n    public String[] getExcludedDirectories() {\n        slowScan();\n        int count = dirsExcluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsExcluded.elementAt(i);\n        }\n        return directories;\n    }\n\n\n\n    /**\n     * Adds the array with default exclusions to the current exclusions set.\n     *\n     */\n    public void addDefaultExcludes() {\n        int excludesLength = excludes == null ? 0 : excludes.length;\n        String[] newExcludes;\n        newExcludes = new String[excludesLength + DEFAULTEXCLUDES.length];\n        if (excludesLength > 0) {\n            System.arraycopy(excludes,0,newExcludes,0,excludesLength);\n        }\n        for (int i = 0; i < DEFAULTEXCLUDES.length; i++) {\n            newExcludes[i+excludesLength] = DEFAULTEXCLUDES[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n        }\n        excludes = newExcludes;", "functions": [{"function_name": "matchPatternStart", "code": "    protected static boolean matchPatternStart(String pattern, String str) {\n        if (str.startsWith(File.separator) !=\n            pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        Vector patDirs = new Vector();\n        StringTokenizer st = new StringTokenizer(pattern,File.separator);\n        while (st.hasMoreTokens()) {\n            patDirs.addElement(st.nextToken());\n        }\n\n        Vector strDirs = new Vector();\n        st = new StringTokenizer(str,File.separator);\n        while (st.hasMoreTokens()) {\n            strDirs.addElement(st.nextToken());\n        }\n\n        int patIdxStart = 0;\n        int patIdxEnd   = patDirs.size()-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strDirs.size()-1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxStart);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxStart))) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n\n        if (strIdxStart > strIdxEnd) {\n            return true;\n        } else if (patIdxStart > patIdxEnd) {\n            return false;\n        } else {\n            return true;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [1, 16], [2, 17], [7, 18], [0, 19], [9, 20], [12, 21], [15, 22], [1, 23], [2, 24], [2, 25], [2, 26], [17, 27], [17, 28], [3, 29], [4, 30], [5, 31], [6, 32], [19, 33], [8, 34], [10, 35], [11, 36], [12, 37], [21, 38], [21, 39], [15, 40], [15, 41], [23, 42], [24, 43], [25, 44], [29, 45], [29, 46], [31, 47], [31, 48], [7, 49], [9, 50], [37, 51], [40, 52], [41, 53], [24, 54], [25, 55], [44, 56], [49, 57], [50, 58], [54, 59], [43, 60], [26, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 1], [17, 2], [18, 7], [19, 0], [20, 9], [21, 12], [22, 15], [23, 1], [24, 2], [25, 2], [26, 2], [27, 17], [28, 17], [29, 3], [30, 4], [31, 5], [32, 6], [33, 19], [34, 8], [35, 10], [36, 11], [37, 12], [38, 21], [39, 21], [40, 15], [41, 15], [42, 23], [43, 24], [44, 25], [45, 29], [46, 29], [47, 31], [48, 31], [49, 7], [50, 9], [51, 37], [52, 40], [53, 41], [54, 24], [55, 25], [56, 44], [57, 49], [58, 50], [59, 54], [60, 43], [61, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "matchPath", "code": "    protected static boolean matchPath(String pattern, String str) {\n        if (str.startsWith(File.separator) !=\n            pattern.startsWith(File.separator)) {\n            return false;\n        }\n\n        Vector patDirs = new Vector();\n        StringTokenizer st = new StringTokenizer(pattern,File.separator);\n        while (st.hasMoreTokens()) {\n            patDirs.addElement(st.nextToken());\n        }\n\n        Vector strDirs = new Vector();\n        st = new StringTokenizer(str,File.separator);\n        while (st.hasMoreTokens()) {\n            strDirs.addElement(st.nextToken());\n        }\n\n        int patIdxStart = 0;\n        int patIdxEnd   = patDirs.size()-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strDirs.size()-1;\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxStart);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxStart))) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs.elementAt(i).equals(\"**\")) {\n                    return false;\n                }\n            }\n            return true;\n        } else {\n            if (patIdxStart > patIdxEnd) {\n                return false;\n            }\n        }\n\n        while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {\n            String patDir = (String)patDirs.elementAt(patIdxEnd);\n            if (patDir.equals(\"**\")) {\n                break;\n            }\n            if (!match(patDir,(String)strDirs.elementAt(strIdxEnd))) {\n                return false;\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (!patDirs.elementAt(i).equals(\"**\")) {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart+1; i <= patIdxEnd; i++) {\n                if (patDirs.elementAt(i).equals(\"**\")) {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart+1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp-patIdxStart-1);\n            int strLength = (strIdxEnd-strIdxStart+1);\n            int foundIdx  = -1;\nstrLoop:\n            for (int i = 0; i <= strLength - patLength; i++) {\n                for (int j = 0; j < patLength; j++) {\n                    String subPat = (String)patDirs.elementAt(patIdxStart+j+1);\n                    String subStr = (String)strDirs.elementAt(strIdxStart+i+j);\n                    if (!match(subPat,subStr)) {\n                        continue strLoop;\n                    }\n                }\n\n                foundIdx = strIdxStart+i;\n                break;\n            }\n\n            if (foundIdx == -1) {\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx+patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (!patDirs.elementAt(i).equals(\"**\")) {\n                return false;\n            }\n        }\n\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "IF", "LOOP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "RETURN", "LOOP", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN", "IF", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [1, 20], [2, 21], [3, 22], [4, 23], [5, 24], [6, 25], [7, 26], [12, 27], [0, 28], [14, 29], [17, 30], [2, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [22, 40], [22, 41], [4, 42], [4, 43], [5, 44], [5, 45], [5, 46], [24, 47], [24, 48], [6, 49], [6, 50], [6, 51], [7, 52], [7, 53], [7, 54], [26, 55], [26, 56], [8, 57], [9, 58], [10, 59], [11, 60], [28, 61], [13, 62], [15, 63], [16, 64], [17, 65], [30, 66], [30, 67], [31, 68], [3, 69], [3, 70], [32, 71], [33, 72], [37, 73], [38, 74], [42, 75], [43, 76], [44, 77], [45, 78], [49, 79], [50, 80], [51, 81], [52, 82], [53, 83], [57, 84], [57, 85], [59, 86], [59, 87], [12, 88], [14, 89], [65, 90], [31, 91], [68, 92], [69, 93], [32, 94], [71, 95], [33, 96], [33, 97], [72, 98], [34, 99], [35, 100], [36, 101], [37, 102], [73, 103], [38, 104], [39, 105], [43, 106], [44, 107], [45, 108], [78, 109], [49, 110], [51, 111], [52, 112], [53, 113], [83, 114], [88, 115], [89, 116], [91, 117], [92, 118], [94, 119], [33, 120], [97, 121], [33, 122], [100, 123], [100, 124], [101, 125], [101, 126], [103, 127], [104, 128], [38, 129], [106, 130], [107, 131], [77, 132], [46, 133], [110, 134], [111, 135], [112, 136], [82, 137], [54, 138], [120, 139], [97, 140], [97, 141], [97, 142], [104, 143], [128, 144], [129, 145], [106, 146], [130, 147], [111, 148], [135, 149], [140, 150], [97, 151], [104, 152], [144, 153], [146, 154], [147, 155], [148, 156], [149, 157], [140, 158], [141, 159], [142, 160], [159, 161], [160, 162], [161, 163], [162, 164], [162, 165], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 1], [21, 2], [22, 3], [23, 4], [24, 5], [25, 6], [26, 7], [27, 12], [28, 0], [29, 14], [30, 17], [31, 2], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 22], [41, 22], [42, 4], [43, 4], [44, 5], [45, 5], [46, 5], [47, 24], [48, 24], [49, 6], [50, 6], [51, 6], [52, 7], [53, 7], [54, 7], [55, 26], [56, 26], [57, 8], [58, 9], [59, 10], [60, 11], [61, 28], [62, 13], [63, 15], [64, 16], [65, 17], [66, 30], [67, 30], [68, 31], [69, 3], [70, 3], [71, 32], [72, 33], [73, 37], [74, 38], [75, 42], [76, 43], [77, 44], [78, 45], [79, 49], [80, 50], [81, 51], [82, 52], [83, 53], [84, 57], [85, 57], [86, 59], [87, 59], [88, 12], [89, 14], [90, 65], [91, 31], [92, 68], [93, 69], [94, 32], [95, 71], [96, 33], [97, 33], [98, 72], [99, 34], [100, 35], [101, 36], [102, 37], [103, 73], [104, 38], [105, 39], [106, 43], [107, 44], [108, 45], [109, 78], [110, 49], [111, 51], [112, 52], [113, 53], [114, 83], [115, 88], [116, 89], [117, 91], [118, 92], [119, 94], [120, 33], [121, 97], [122, 33], [123, 100], [124, 100], [125, 101], [126, 101], [127, 103], [128, 104], [129, 38], [130, 106], [131, 107], [132, 77], [133, 46], [134, 110], [135, 111], [136, 112], [137, 82], [138, 54], [139, 120], [140, 97], [141, 97], [142, 97], [143, 104], [144, 128], [145, 129], [146, 106], [147, 130], [148, 111], [149, 135], [150, 140], [151, 97], [152, 104], [153, 144], [154, 146], [155, 147], [156, 148], [157, 149], [158, 140], [159, 141], [160, 142], [161, 159], [162, 160], [163, 161], [164, 162], [165, 162], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165]]}, {"function_name": "match", "code": "    protected static boolean match(String pattern, String str) {\n        char[] patArr = pattern.toCharArray();\n        char[] strArr = str.toCharArray();\n        int patIdxStart = 0;\n        int patIdxEnd   = patArr.length-1;\n        int strIdxStart = 0;\n        int strIdxEnd   = strArr.length-1;\n        char ch;\n\n        boolean containsStar = false;\n        for (int i = 0; i < patArr.length; i++) {\n            if (patArr[i] == '*') {\n                containsStar = true;\n                break;\n            }\n        }\n\n        if (!containsStar) {\n            if (patIdxEnd != strIdxEnd) {\n            }\n            for (int i = 0; i <= patIdxEnd; i++) {\n                ch = patArr[i];\n                if (ch != '?' && ch != strArr[i]) {\n                }\n            }\n        }\n\n        if (patIdxEnd == 0) {\n        }\n\n        while((ch = patArr[patIdxStart]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?' && ch != strArr[strIdxStart]) {\n                return false;\n            }\n            patIdxStart++;\n            strIdxStart++;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while((ch = patArr[patIdxEnd]) != '*' && strIdxStart <= strIdxEnd) {\n            if (ch != '?' && ch != strArr[strIdxEnd]) {\n                return false;\n            }\n            patIdxEnd--;\n            strIdxEnd--;\n        }\n        if (strIdxStart > strIdxEnd) {\n            for (int i = patIdxStart; i <= patIdxEnd; i++) {\n                if (patArr[i] != '*') {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        while (patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd) {\n            int patIdxTmp = -1;\n            for (int i = patIdxStart+1; i <= patIdxEnd; i++) {\n                if (patArr[i] == '*') {\n                    patIdxTmp = i;\n                    break;\n                }\n            }\n            if (patIdxTmp == patIdxStart+1) {\n                patIdxStart++;\n                continue;\n            }\n            int patLength = (patIdxTmp-patIdxStart-1);\n            int strLength = (strIdxEnd-strIdxStart+1);\n            int foundIdx  = -1;\nstrLoop:\n            for (int i = 0; i <= strLength - patLength; i++) {\n                for (int j = 0; j < patLength; j++) {\n                    ch = patArr[patIdxStart+j+1];\n                    if (ch != '?' && ch != strArr[strIdxStart+i+j]) {\n                        continue strLoop;\n                    }\n                }\n\n                foundIdx = strIdxStart+i;\n                break;\n            }\n\n            if (foundIdx == -1) {\n                return false;\n            }\n\n            patIdxStart = patIdxTmp;\n            strIdxStart = foundIdx+patLength;\n        }\n\n        for (int i = patIdxStart; i <= patIdxEnd; i++) {\n            if (patArr[i] != '*') {\n                return false;\n            }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "IF", "LOOP", "IF", "LOOP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [2, 22], [3, 23], [4, 24], [5, 25], [6, 26], [7, 27], [8, 28], [10, 29], [2, 30], [3, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [23, 39], [23, 40], [4, 41], [4, 42], [5, 43], [25, 44], [25, 45], [6, 46], [6, 47], [7, 48], [27, 49], [27, 50], [28, 51], [9, 52], [9, 53], [10, 54], [11, 55], [13, 56], [14, 57], [15, 58], [16, 59], [17, 60], [18, 61], [30, 62], [3, 63], [3, 64], [31, 65], [32, 66], [36, 67], [37, 68], [41, 69], [42, 70], [43, 71], [45, 72], [45, 73], [46, 74], [47, 75], [48, 76], [50, 77], [50, 78], [52, 79], [53, 80], [54, 81], [10, 82], [56, 83], [58, 84], [30, 85], [62, 86], [63, 87], [31, 88], [65, 89], [32, 90], [32, 91], [66, 92], [33, 93], [34, 94], [35, 95], [36, 96], [67, 97], [37, 98], [38, 99], [42, 100], [43, 101], [71, 102], [71, 103], [47, 104], [48, 105], [76, 106], [76, 107], [52, 108], [54, 109], [81, 110], [85, 111], [88, 112], [32, 113], [91, 114], [32, 115], [94, 116], [94, 117], [95, 118], [95, 119], [97, 120], [98, 121], [37, 122], [100, 123], [101, 124], [103, 125], [104, 126], [105, 127], [107, 128], [108, 129], [52, 130], [52, 131], [54, 132], [113, 133], [91, 134], [98, 135], [121, 136], [122, 137], [100, 138], [123, 139], [104, 140], [126, 141], [129, 142], [129, 143], [132, 144], [134, 145], [91, 146], [91, 147], [98, 148], [138, 149], [140, 150], [143, 151], [134, 152], [145, 153], [145, 154], [154, 155], [146, 156], [153, 157], [156, 158], [156, 159], [157, 160], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 2], [23, 3], [24, 4], [25, 5], [26, 6], [27, 7], [28, 8], [29, 10], [30, 2], [31, 3], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 23], [40, 23], [41, 4], [42, 4], [43, 5], [44, 25], [45, 25], [46, 6], [47, 6], [48, 7], [49, 27], [50, 27], [51, 28], [52, 9], [53, 9], [54, 10], [55, 11], [56, 13], [57, 14], [58, 15], [59, 16], [60, 17], [61, 18], [62, 30], [63, 3], [64, 3], [65, 31], [66, 32], [67, 36], [68, 37], [69, 41], [70, 42], [71, 43], [72, 45], [73, 45], [74, 46], [75, 47], [76, 48], [77, 50], [78, 50], [79, 52], [80, 53], [81, 54], [82, 10], [83, 56], [84, 58], [85, 30], [86, 62], [87, 63], [88, 31], [89, 65], [90, 32], [91, 32], [92, 66], [93, 33], [94, 34], [95, 35], [96, 36], [97, 67], [98, 37], [99, 38], [100, 42], [101, 43], [102, 71], [103, 71], [104, 47], [105, 48], [106, 76], [107, 76], [108, 52], [109, 54], [110, 81], [111, 85], [112, 88], [113, 32], [114, 91], [115, 32], [116, 94], [117, 94], [118, 95], [119, 95], [120, 97], [121, 98], [122, 37], [123, 100], [124, 101], [125, 103], [126, 104], [127, 105], [128, 107], [129, 108], [130, 52], [131, 52], [132, 54], [133, 113], [134, 91], [135, 98], [136, 121], [137, 122], [138, 100], [139, 123], [140, 104], [141, 126], [142, 129], [143, 129], [144, 132], [145, 134], [146, 91], [147, 91], [148, 98], [149, 138], [150, 140], [151, 143], [152, 134], [153, 145], [154, 145], [155, 154], [156, 146], [157, 153], [158, 156], [159, 156], [160, 157], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160]]}, {"function_name": "setBasedir", "code": "    public void setBasedir(String basedir) {\n        setBasedir(new File(basedir.replace('/',File.separatorChar).replace('\\\\',File.separatorChar)));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setBasedir", "code": "    public void setBasedir(File basedir) {\n        this.basedir = basedir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBasedir", "code": "    public File getBasedir() {\n        return basedir;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIncludes", "code": "    public void setIncludes(String[] includes) {\n        if (includes == null) {\n            this.includes = null;\n        } else {\n            this.includes = new String[includes.length];\n            for (int i = 0; i < includes.length; i++) {\n                String pattern;\n                pattern = includes[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n                if (pattern.endsWith(File.separator)) {\n                    pattern += \"**\";\n                }\n                this.includes[i] = pattern;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [1, 8], [4, 9], [4, 10], [8, 11], [4, 12], [9, 13], [4, 14], [4, 15], [9, 16], [14, 17], [14, 18], [16, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 1], [9, 4], [10, 4], [11, 8], [12, 4], [13, 9], [14, 4], [15, 4], [16, 9], [17, 14], [18, 14], [19, 16], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setExcludes", "code": "    public void setExcludes(String[] excludes) {\n        if (excludes == null) {\n            this.excludes = null;\n        } else {\n            this.excludes = new String[excludes.length];\n            for (int i = 0; i < excludes.length; i++) {\n                String pattern;\n                pattern = excludes[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n                if (pattern.endsWith(File.separator)) {\n                    pattern += \"**\";\n                }\n                this.excludes[i] = pattern;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [1, 8], [4, 9], [4, 10], [8, 11], [4, 12], [9, 13], [4, 14], [4, 15], [9, 16], [14, 17], [14, 18], [16, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 1], [9, 4], [10, 4], [11, 8], [12, 4], [13, 9], [14, 4], [15, 4], [16, 9], [17, 14], [18, 14], [19, 16], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "scan", "code": "    public void scan() {\n        if (basedir == null) {\n            throw new IllegalStateException(\"No basedir set\");\n        }\n        if (!basedir.exists()) {\n            throw new IllegalStateException(\"basedir does not exist\");\n        }\n        if (!basedir.isDirectory()) {\n            throw new IllegalStateException(\"basedir is not a directory\");\n        }\n\n        if (includes == null) {\n            includes = new String[1];\n            includes[0] = \"**\";\n        }\n        if (excludes == null) {\n            excludes = new String[0];\n        }\n\n        filesIncluded    = new Vector();\n        filesNotIncluded = new Vector();\n        filesExcluded    = new Vector();\n        dirsIncluded     = new Vector();\n        dirsNotIncluded  = new Vector();\n        dirsExcluded     = new Vector();\n\n        scandir(basedir, \"\", true);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [3, 15], [4, 16], [5, 17], [6, 18], [6, 19], [7, 20], [8, 21], [9, 22], [10, 23], [11, 24], [12, 25], [13, 26], [14, 27], [3, 28], [4, 29], [5, 30], [17, 31], [1, 32], [2, 33], [2, 34], [28, 35], [29, 36], [30, 37], [33, 38], [35, 39], [36, 40], [37, 41], [32, 42], [34, 43], [33, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 3], [16, 4], [17, 5], [18, 6], [19, 6], [20, 7], [21, 8], [22, 9], [23, 10], [24, 11], [25, 12], [26, 13], [27, 14], [28, 3], [29, 4], [30, 5], [31, 17], [32, 1], [33, 2], [34, 2], [35, 28], [36, 29], [37, 30], [38, 33], [39, 35], [40, 36], [41, 37], [42, 32], [43, 34], [44, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "slowScan", "code": "    protected void slowScan() {\n        if (haveSlowResults) {\n            return;\n        }\n\n        String[] excl = new String[dirsExcluded.size()];\n        dirsExcluded.copyInto(excl);\n\n        String[] notIncl = new String[dirsNotIncluded.size()];\n        dirsNotIncluded.copyInto(notIncl);\n\n        for (int i=0; i<excl.length; i++) {\n            scandir(new File(basedir, excl[i]), excl[i]+File.separator, false);\n        }\n        \n        for (int i=0; i<notIncl.length; i++) {\n            if (!couldHoldIncluded(notIncl[i])) {\n                scandir(new File(basedir, notIncl[i]), \n                        notIncl[i]+File.separator, false);\n            }\n        }\n\n        haveSlowResults  = true;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [0, 10], [6, 11], [1, 12], [5, 13], [12, 14], [1, 15], [2, 16], [2, 17], [3, 18], [4, 19], [16, 20], [16, 21], [16, 22], [12, 23], [23, 24], [23, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 0], [11, 6], [12, 1], [13, 5], [14, 12], [15, 1], [16, 2], [17, 2], [18, 3], [19, 4], [20, 16], [21, 16], [22, 16], [23, 12], [24, 23], [25, 23], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "scandir", "code": "    protected void scandir(File dir, String vpath, boolean fast) {\n        String[] newfiles = dir.list();\n\n        if (newfiles == null) {\n            /*\n             * two reasons are mentioned in the API docs for File.list\n             * (1) dir is not a directory. This is impossible as\n             *     we wouldn't get here in this case.\n             * (2) an IO error occurred (why doesn't it throw an exception \n             *     then???)\n             */\n            throw new BuildException(\"IO error scanning directory \"\n                                     + dir.getAbsolutePath());\n        }\n\n        for (int i = 0; i < newfiles.length; i++) {\n            String name = vpath+newfiles[i];\n            File   file = new File(dir,newfiles[i]);\n            if (file.isDirectory()) {\n                if (isIncluded(name)) {\n                    if (!isExcluded(name)) {\n                        dirsIncluded.addElement(name);\n                        if (fast) {\n                            scandir(file, name+File.separator, fast);\n                        }\n                    } else {\n                        dirsExcluded.addElement(name);\n                    }\n                } else {\n                    dirsNotIncluded.addElement(name);\n                    if (fast && couldHoldIncluded(name)) {\n                        scandir(file, name+File.separator, fast);\n                    }\n                }\n                if (!fast) {\n                    scandir(file, name+File.separator, fast);\n                }\n            } else if (file.isFile()) {\n                if (isIncluded(name)) {\n                    if (!isExcluded(name)) {\n                        filesIncluded.addElement(name);\n                    } else {\n                        filesExcluded.addElement(name);\n                    }\n                } else {\n                    filesNotIncluded.addElement(name);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [1, 10], [1, 11], [2, 12], [8, 13], [3, 14], [9, 15], [9, 16], [1, 17], [12, 18], [15, 19], [9, 20], [9, 21], [10, 22], [11, 23], [18, 24], [15, 25], [21, 26], [24, 27], [24, 28], [25, 29], [21, 30], [21, 31], [25, 32], [20, 33], [30, 34], [21, 35], [31, 36], [25, 37], [32, 38], [33, 39], [34, 40], [31, 41], [30, 42], [31, 43], [31, 44], [32, 45], [32, 46], [42, 47], [41, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 1], [11, 1], [12, 2], [13, 8], [14, 3], [15, 9], [16, 9], [17, 1], [18, 12], [19, 15], [20, 9], [21, 9], [22, 10], [23, 11], [24, 18], [25, 15], [26, 21], [27, 24], [28, 24], [29, 25], [30, 21], [31, 21], [32, 25], [33, 20], [34, 30], [35, 21], [36, 31], [37, 25], [38, 32], [39, 33], [40, 34], [41, 31], [42, 30], [43, 31], [44, 31], [45, 32], [46, 32], [47, 42], [48, 41], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "isIncluded", "code": "    protected boolean isIncluded(String name) {\n        for (int i = 0; i < includes.length; i++) {\n            if (matchPath(includes[i],name)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [2, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 2], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "couldHoldIncluded", "code": "    protected boolean couldHoldIncluded(String name) {\n        for (int i = 0; i < includes.length; i++) {\n            if (matchPatternStart(includes[i],name)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [2, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 2], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isExcluded", "code": "    protected boolean isExcluded(String name) {\n        for (int i = 0; i < excludes.length; i++) {\n            if (matchPath(excludes[i],name)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [2, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 2], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getIncludedFiles", "code": "    public String[] getIncludedFiles() {\n        int count = filesIncluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesIncluded.elementAt(i);\n        }\n        return files;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [2, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [7, 2], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getNotIncludedFiles", "code": "    public String[] getNotIncludedFiles() {\n        slowScan();\n        int count = filesNotIncluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesNotIncluded.elementAt(i);\n        }\n        return files;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [4, 7], [2, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 4], [8, 2], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getExcludedFiles", "code": "    public String[] getExcludedFiles() {\n        slowScan();\n        int count = filesExcluded.size();\n        String[] files = new String[count];\n        for (int i = 0; i < count; i++) {\n            files[i] = (String)filesExcluded.elementAt(i);\n        }\n        return files;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [4, 7], [2, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 4], [8, 2], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getIncludedDirectories", "code": "    public String[] getIncludedDirectories() {\n        int count = dirsIncluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsIncluded.elementAt(i);\n        }\n        return directories;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [2, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [7, 2], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getNotIncludedDirectories", "code": "    public String[] getNotIncludedDirectories() {\n        slowScan();\n        int count = dirsNotIncluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsNotIncluded.elementAt(i);\n        }\n        return directories;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [4, 7], [2, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 4], [8, 2], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getExcludedDirectories", "code": "    public String[] getExcludedDirectories() {\n        slowScan();\n        int count = dirsExcluded.size();\n        String[] directories = new String[count];\n        for (int i = 0; i < count; i++) {\n            directories[i] = (String)dirsExcluded.elementAt(i);\n        }\n        return directories;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [4, 7], [2, 8], [2, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 4], [8, 2], [9, 2], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addDefaultExcludes", "code": "    public void addDefaultExcludes() {\n        int excludesLength = excludes == null ? 0 : excludes.length;\n        String[] newExcludes;\n        newExcludes = new String[excludesLength + DEFAULTEXCLUDES.length];\n        if (excludesLength > 0) {\n            System.arraycopy(excludes,0,newExcludes,0,excludesLength);\n        }\n        for (int i = 0; i < DEFAULTEXCLUDES.length; i++) {\n            newExcludes[i+excludesLength] = DEFAULTEXCLUDES[i].replace('/',File.separatorChar).replace('\\\\',File.separatorChar);\n        }\n        excludes = newExcludes;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [7, 9], [4, 10], [1, 11], [1, 12], [2, 13], [8, 14], [10, 15], [10, 16], [13, 17], [13, 18], [16, 19], [11, 20], [11, 21], [20, 22], [21, 23], [11, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 7], [10, 4], [11, 1], [12, 1], [13, 2], [14, 8], [15, 10], [16, 10], [17, 13], [18, 13], [19, 16], [20, 11], [21, 11], [22, 20], [23, 21], [24, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "DirectoryScanner", "code": "    public DirectoryScanner() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "log4j-1.1-4933", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/config/PropertyGetter.java", "language": "java", "name": "org.apache.log4j.config.PropertyGetter", "code": "public class PropertyGetter {\n  protected static final Object[] NULL_ARG = new Object[] {};\n  protected Object obj;\n  protected PropertyDescriptor[] props;\n  \n  public interface PropertyCallback {\n    void foundProperty(Object obj, String prefix, String name, Object value);\n  }\n  \n  /**\n    Create a new PropertySetter for the specified Object. This is done\n    in prepartion for invoking {@link\n    #getProperties(PropertyGetter.PropertyCallback, String)} one or\n    more times.\n    \n    @param obj the object for which to set properties */\n  public\n  PropertyGetter(Object obj) throws IntrospectionException {\n    BeanInfo bi = Introspector.getBeanInfo(obj.getClass());\n    props = bi.getPropertyDescriptors();\n    this.obj = obj;\n  }\n  \n  public\n  static\n  void getProperties(Object obj, PropertyCallback callback, String prefix) {\n    try {\n      new PropertyGetter(obj).getProperties(callback, prefix);\n    } catch (IntrospectionException ex) {\n      LogLog.error(\"Failed to introspect object \" + obj, ex);\n    }\n  }\n  \n  public\n  void getProperties(PropertyCallback callback, String prefix) {\n    for (int i = 0; i < props.length; i++) {\n        Method getter = props[i].getReadMethod();\n        if (getter == null) continue;\n        if (!isHandledType(getter.getReturnType())) {\n          //System.err.println(\"Ignoring \" + props[i].getName() +\" \" + getter.getReturnType());\n          continue;\n        }\n        String name = props[i].getName();\n        try {\n          Object result = getter.invoke(obj, NULL_ARG);\n          //System.err.println(\"PROP \" + name +\": \" + result);\n          if (result != null) {\n            callback.foundProperty(obj, prefix, name, result);\n          }\n        } catch (Exception ex) {\n          LogLog.warn(\"Failed to get value of property \" + name);\n        }\n    }\n  }\n  \n  protected\n  boolean isHandledType(Class type) {\n    return String.class.isAssignableFrom(type) ||\n           Integer.TYPE.isAssignableFrom(type) ||\n           Long.TYPE.isAssignableFrom(type)    ||\n           Boolean.TYPE.isAssignableFrom(type) ||\n           Priority.class.isAssignableFrom(type);", "functions": [{"function_name": "getProperties", "code": "  void getProperties(Object obj, PropertyCallback callback, String prefix) {\n    try {\n      new PropertyGetter(obj).getProperties(callback, prefix);\n    } catch (IntrospectionException ex) {\n      LogLog.error(\"Failed to introspect object \" + obj, ex);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getProperties", "code": "  void getProperties(PropertyCallback callback, String prefix) {\n    for (int i = 0; i < props.length; i++) {\n        Method getter = props[i].getReadMethod();\n        if (getter == null) continue;\n        if (!isHandledType(getter.getReturnType())) {\n          //System.err.println(\"Ignoring \" + props[i].getName() +\" \" + getter.getReturnType());\n          continue;\n        }\n        String name = props[i].getName();\n        try {\n          Object result = getter.invoke(obj, NULL_ARG);\n          //System.err.println(\"PROP \" + name +\": \" + result);\n          if (result != null) {\n            callback.foundProperty(obj, prefix, name, result);\n          }\n        } catch (Exception ex) {\n          LogLog.warn(\"Failed to get value of property \" + name);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "CATCH", "IF", "VAR_DECL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [5, 11], [5, 12], [7, 13], [8, 14], [8, 15], [1, 16], [11, 17], [7, 18], [13, 19], [15, 20], [10, 21], [17, 22], [12, 23], [6, 24], [9, 25], [21, 26], [11, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 5], [12, 5], [13, 7], [14, 8], [15, 8], [16, 1], [17, 11], [18, 7], [19, 13], [20, 15], [21, 10], [22, 17], [23, 12], [24, 6], [25, 9], [26, 21], [27, 11], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "isHandledType", "code": "  boolean isHandledType(Class type) {\n    return String.class.isAssignableFrom(type) ||\n           Integer.TYPE.isAssignableFrom(type) ||\n           Long.TYPE.isAssignableFrom(type)    ||\n           Boolean.TYPE.isAssignableFrom(type) ||\n           Priority.class.isAssignableFrom(type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "PropertyGetter", "code": "  PropertyGetter(Object obj) throws IntrospectionException {\n    BeanInfo bi = Introspector.getBeanInfo(obj.getClass());\n    props = bi.getPropertyDescriptors();\n    this.obj = obj;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "poi-2.0-5598", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/usermodel/HSSFFont.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFFont", "code": "public class HSSFFont\n{\n\n    /**\n     * Arial font\n     */\n\n    public final static String FONT_ARIAL          = \"Arial\";\n\n    /**\n     * Normal boldness (not bold)\n     */\n\n    public final static short  BOLDWEIGHT_NORMAL   = 0x190;\n\n    /**\n     * Bold boldness (bold)\n     */\n\n    public final static short  BOLDWEIGHT_BOLD     = 0x2bc;\n\n    /**\n     * normal type of black color\n     */\n\n    public final static short  COLOR_NORMAL        = 0x7fff;\n\n    /**\n     * Dark Red color\n     */\n\n    public final static short  COLOR_RED           = 0xa;\n\n    /**\n     * no type offsetting (not super or subscript)\n     */\n\n    public final static short  SS_NONE             = 0;\n\n    /**\n     * superscript\n     */\n\n    public final static short  SS_SUPER            = 1;\n\n    /**\n     * subscript\n     */\n\n    public final static short  SS_SUB              = 2;\n\n    /**\n     * not underlined\n     */\n\n    public final static byte   U_NONE              = 0;\n\n    /**\n     * single (normal) underline\n     */\n\n    public final static byte   U_SINGLE            = 1;\n\n    /**\n     * double underlined\n     */\n\n    public final static byte   U_DOUBLE            = 2;\n\n    /**\n     * accounting style single underline\n     */\n\n    public final static byte   U_SINGLE_ACCOUNTING = 0x21;\n\n    /**\n     * accounting style double underline\n     */\n\n    public final static byte   U_DOUBLE_ACCOUNTING = 0x22;\n    private FontRecord         font;\n    private short              index;\n\n    /** Creates a new instance of HSSFFont */\n\n    protected HSSFFont(short index, FontRecord rec)\n    {\n        font       = rec;\n        this.index = index;\n    }\n\n    /**\n     * set the name for the font (i.e. Arial)\n     * @param String representing the name of the font to use\n     * @see #FONT_ARIAL\n     */\n\n    public void setFontName(String name)\n    {\n        font.setFontName(name);\n        font.setFontNameLength(( byte ) name.length());\n    }\n\n    /**\n     * get the name for the font (i.e. Arial)\n     * @return String representing the name of the font to use\n     * @see #FONT_ARIAL\n     */\n\n    public String getFontName()\n    {\n        return font.getFontName();\n    }\n\n    /**\n     * get the index within the HSSFWorkbook (sequence within the collection of Font objects)\n     * @return unique index number of the underlying record this Font represents (probably you don't care\n     *  unless you're comparing which one is which)\n     */\n\n    public short getIndex()\n    {\n        return index;\n    }\n\n    /**\n     * set the font height in unit's of 1/20th of a point.  Maybe you might want to\n     * use the setFontHeightInPoints which matches to the familiar 10, 12, 14 etc..\n     * @param short - height in 1/20ths of a point\n     * @see #setFontHeightInPoints(short)\n     */\n\n    public void setFontHeight(short height)\n    {\n        font.setFontHeight(height);\n    }\n\n    /**\n     * set the font height\n     * @param short - height in the familiar unit of measure - points\n     * @see #setFontHeight(short)\n     */\n\n    public void setFontHeightInPoints(short height)\n    {\n        font.setFontHeight(( short ) (height * 20));\n    }\n\n    /**\n     * get the font height in unit's of 1/20th of a point.  Maybe you might want to\n     * use the getFontHeightInPoints which matches to the familiar 10, 12, 14 etc..\n     * @return short - height in 1/20ths of a point\n     * @see #getFontHeightInPoints()\n     */\n\n    public short getFontHeight()\n    {\n        return font.getFontHeight();\n    }\n\n    /**\n     * get the font height\n     * @return short - height in the familiar unit of measure - points\n     * @see #getFontHeight()\n     */\n\n    public short getFontHeightInPoints()\n    {\n        return ( short ) (font.getFontHeight() / 20);\n    }\n\n    /**\n     * set whether to use italics or not\n     * @param italics or not\n     */\n\n    public void setItalic(boolean italic)\n    {\n        font.setItalic(italic);\n    }\n\n    /**\n     * get whether to use italics or not\n     * @return italics or not\n     */\n\n    public boolean getItalic()\n    {\n        return font.isItalic();\n    }\n\n    /**\n     * set whether to use a strikeout horizontal line through the text or not\n     * @param strikeout or not\n     */\n\n    public void setStrikeout(boolean strikeout)\n    {\n        font.setStrikeout(strikeout);\n    }\n\n    /**\n     * get whether to use a strikeout horizontal line through the text or not\n     * @return strikeout or not\n     */\n\n    public boolean getStrikeout()\n    {\n        return font.isStruckout();\n    }\n\n    /**\n     * set the color for the font\n     * @param color to use\n     * @see #COLOR_NORMAL\n     * @see #COLOR_RED\n     */\n\n    public void setColor(short color)\n    {\n        font.setColorPaletteIndex(color);\n    }\n\n    /**\n     * get the color for the font\n     * @return color to use\n     * @see #COLOR_NORMAL\n     * @see #COLOR_RED\n     */\n\n    public short getColor()\n    {\n        return font.getColorPaletteIndex();\n    }\n\n    /**\n     * set the boldness to use\n     * @param boldweight\n     * @see #BOLDWEIGHT_NORMAL\n     * @see #BOLDWEIGHT_BOLD\n     */\n\n    public void setBoldweight(short boldweight)\n    {\n        font.setBoldWeight(boldweight);\n    }\n\n    /**\n     * get the boldness to use\n     * @return boldweight\n     * @see #BOLDWEIGHT_NORMAL\n     * @see #BOLDWEIGHT_BOLD\n     */\n\n    public short getBoldweight()\n    {\n        return font.getBoldWeight();\n    }\n\n    /**\n     * set normal,super or subscript.\n     * @param offset type to use (none,super,sub)\n     * @see #SS_NONE\n     * @see #SS_SUPER\n     * @see #SS_SUB\n     */\n\n    public void setTypeOffset(short offset)\n    {\n        font.setSuperSubScript(offset);\n    }\n\n    /**\n     * get normal,super or subscript.\n     * @return offset type to use (none,super,sub)\n     * @see #SS_NONE\n     * @see #SS_SUPER\n     * @see #SS_SUB\n     */\n\n    public short getTypeOffset()\n    {\n        return font.getSuperSubScript();\n    }\n\n    /**\n     * set type of text underlining to use\n     * @param underlining type\n     * @see #U_NONE\n     * @see #U_SINGLE\n     * @see #U_DOUBLE\n     * @see #U_SINGLE_ACCOUNTING\n     * @see #U_DOUBLE_ACCOUNTING\n     */\n\n    public void setUnderline(byte underline)\n    {\n        font.setUnderline(underline);\n    }\n\n    /**\n     * get type of text underlining to use\n     * @return underlining type\n     * @see #U_NONE\n     * @see #U_SINGLE\n     * @see #U_DOUBLE\n     * @see #U_SINGLE_ACCOUNTING\n     * @see #U_DOUBLE_ACCOUNTING\n     */\n\n    public byte getUnderline()\n    {\n        return font.getUnderline();", "functions": [{"function_name": "setFontName", "code": "    public void setFontName(String name)\n    {\n        font.setFontName(name);\n        font.setFontNameLength(( byte ) name.length());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFontName", "code": "    public String getFontName()\n    {\n        return font.getFontName();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIndex", "code": "    public short getIndex()\n    {\n        return index;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFontHeight", "code": "    public void setFontHeight(short height)\n    {\n        font.setFontHeight(height);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFontHeightInPoints", "code": "    public void setFontHeightInPoints(short height)\n    {\n        font.setFontHeight(( short ) (height * 20));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFontHeight", "code": "    public short getFontHeight()\n    {\n        return font.getFontHeight();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFontHeightInPoints", "code": "    public short getFontHeightInPoints()\n    {\n        return ( short ) (font.getFontHeight() / 20);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setItalic", "code": "    public void setItalic(boolean italic)\n    {\n        font.setItalic(italic);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getItalic", "code": "    public boolean getItalic()\n    {\n        return font.isItalic();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStrikeout", "code": "    public void setStrikeout(boolean strikeout)\n    {\n        font.setStrikeout(strikeout);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStrikeout", "code": "    public boolean getStrikeout()\n    {\n        return font.isStruckout();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setColor", "code": "    public void setColor(short color)\n    {\n        font.setColorPaletteIndex(color);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColor", "code": "    public short getColor()\n    {\n        return font.getColorPaletteIndex();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBoldweight", "code": "    public void setBoldweight(short boldweight)\n    {\n        font.setBoldWeight(boldweight);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBoldweight", "code": "    public short getBoldweight()\n    {\n        return font.getBoldWeight();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTypeOffset", "code": "    public void setTypeOffset(short offset)\n    {\n        font.setSuperSubScript(offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTypeOffset", "code": "    public short getTypeOffset()\n    {\n        return font.getSuperSubScript();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUnderline", "code": "    public void setUnderline(byte underline)\n    {\n        font.setUnderline(underline);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUnderline", "code": "    public byte getUnderline()\n    {\n        return font.getUnderline();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFFont", "code": "    protected HSSFFont(short index, FontRecord rec)\n    {\n        font       = rec;\n        this.index = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-4.3-4752", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/syntax/ParserRuleSet.java", "language": "java", "name": "org.gjt.sp.jedit.syntax.ParserRuleSet", "code": "public class ParserRuleSet\n{\n\t//{{{ getStandardRuleSet() method\n\t/**\n\t * Returns a parser rule set that highlights everything with the\n\t * specified token type.\n\t * @param id The token type\n\t */\n\tpublic static ParserRuleSet getStandardRuleSet(byte id)\n\t{\n\t\treturn standard[id];\n\t} //}}}\n\n\t//{{{ ParserRuleSet constructor\n\tpublic ParserRuleSet(String modeName, String setName)\n\t{\n\t\tthis.modeName = modeName;\n\t\tthis.setName = setName;\n\t\truleMap = new HashMap<Character, List<ParserRule>>();\n\t\timports = new ArrayList<ParserRuleSet>();\n\t} //}}}\n\n\t//{{{ getModeName() method\n\tpublic String getModeName()\n\t{\n\t\treturn modeName;\n\t} //}}}\n\n\t//{{{ getSetName() method\n\tpublic String getSetName()\n\t{\n\t\treturn setName;\n\t} //}}}\n\n\t//{{{ getName() method\n\tpublic String getName()\n\t{\n\t\treturn modeName + \"::\" + setName;\n\t} //}}}\n\n\t//{{{ getProperties() method\n\tpublic Hashtable<String, String> getProperties()\n\t{\n\t\treturn props;\n\t} //}}}\n\n\t//{{{ setProperties() method\n\tpublic void setProperties(Hashtable<String, String> props)\n\t{\n\t\tthis.props = props;\n\t\t_noWordSep = null;\n\t} //}}}\n\n\t//{{{ resolveImports() method\n\t/**\n\t * Resolves all rulesets added with {@link #addRuleSet(ParserRuleSet)}.\n\t * @since jEdit 4.2pre3\n\t */\n\tpublic void resolveImports()\n\t{\n\t\tfor (ParserRuleSet ruleset : imports)\n\t\t{\n\t\t\tif (!ruleset.imports.isEmpty())\n\t\t\t{\n\t\t\t\t//prevent infinite recursion\n\t\t\t\truleset.imports.remove(this);\n\t\t\t\truleset.resolveImports();\n\t\t\t}\n\n\t\t\tfor (List<ParserRule> rules : ruleset.ruleMap.values())\n\t\t\t{\n\t\t\t\tfor (ParserRule rule : rules)\n\t\t\t\t{\n\t\t\t\t\taddRule(rule);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (ruleset.keywords != null)\n\t\t\t{\n\t\t\t\tif (keywords == null)\n\t\t\t\t\tkeywords = new KeywordMap(ignoreCase);\n\t\t\t\tkeywords.add(ruleset.keywords);\n\t\t\t}\n\t\t}\n\t\timports.clear();\n\t} //}}}\n\n\t//{{{ addRuleSet() method\n\t/**\n\t * Adds all rules contained in the given ruleset.\n\t * @param ruleset The ruleset\n\t * @since jEdit 4.2pre3\n\t */\n\tpublic void addRuleSet(ParserRuleSet ruleset)\n\t{\n\t\timports.add(ruleset);\n\t} //}}}\n\n\t//{{{ addRule() method\n\tpublic void addRule(ParserRule r)\n\t{\n\t\truleCount++;\n\t\tCharacter[] keys;\n\t\tif (null == r.upHashChars)\n\t\t{\n\t\t\tkeys = new Character[1];\n\t\t\tif ((null == r.upHashChar) || (0 >= r.upHashChar.length()))\n\t\t\t{\n\t\t\t\tkeys[0] = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tkeys[0] = Character.valueOf(r.upHashChar.charAt(0));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tkeys = new Character[r.upHashChars.length];\n\t\t\tint i = 0;\n\t\t\tfor (char upHashChar : r.upHashChars)\n\t\t\t{\n\t\t\t\tkeys[i++] = upHashChar;\n\t\t\t}\n\t\t}\n\t\tfor (Character key : keys)\n\t\t{\n\t\t\tList<ParserRule> rules = ruleMap.get(key);\n\t\t\tif (null == rules)\n\t\t\t{\n\t\t\t\trules = new ArrayList<ParserRule>();\n\t\t\t\truleMap.put(key,rules);\n\t\t\t}\n\t\t\tint ruleAmount = rules.size();\n\t\t\trules.add(r);\n\t\t\t// fill the deprecated ParserRule.next pointer\n\t\t\tif (ruleAmount > 0)\n\t\t\t{\n\t\t\t\trules.get(ruleAmount).next = r;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ getRules() method\n\t/**\n\t* @deprecated As the linking between rules is not anymore done within the rule, use {@link #getRules(Character)} instead\n\t*/\n\t@Deprecated\n\tpublic ParserRule getRules(char ch)\n\t{\n\t\tList<ParserRule> rules = getRules(Character.valueOf(ch));\n\t\treturn rules.get(0);\n\t} //}}}\n\n\t//{{{ getRules() method\n\tpublic List<ParserRule> getRules(Character key)\n\t{\n\t\tList<ParserRule> rulesForNull = ruleMap.get(null);\n\t\tboolean emptyForNull = (rulesForNull == null) || (rulesForNull.size() == 0);\n\t\tCharacter upperKey = null == key ? null : Character.valueOf(Character.toUpperCase(key.charValue()));\n\t\tList<ParserRule> rulesForKey = null == upperKey ? null : ruleMap.get(upperKey);\n\t\tboolean emptyForKey = (rulesForKey == null) || (rulesForKey.size() == 0);\n\t\tif (emptyForNull && emptyForKey)\n\t\t{\n\t\t\treturn Collections.emptyList();\n\t\t}\n\t\telse if (emptyForKey)\n\t\t{\n\t\t\treturn rulesForNull;\n\t\t}\n\t\telse if (emptyForNull)\n\t\t{\n\t\t\treturn rulesForKey;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint size = rulesForNull.size() + rulesForKey.size();\n\t\t\tArrayList<ParserRule> mixed = new ArrayList<ParserRule>(size);\n\t\t\tmixed.addAll(rulesForKey);\n\t\t\tmixed.addAll(rulesForNull);\n\t\t\t// fill the deprecated ParserRule.next pointer\n\t\t\trulesForKey.get(rulesForKey.size() - 1).next = rulesForNull.get(0);\n\t\t\treturn mixed;\n\t\t}\n\t} //}}}\n\n\t//{{{ getRuleCount() method\n\tpublic int getRuleCount()\n\t{\n\t\treturn ruleCount;\n\t} //}}}\n\n\t//{{{ getTerminateChar() method\n\t/**\n\t * Returns the number of chars that can be read before the rule parsing stops.\n\t *\n\t * @return a number of chars or -1 (default value) if there is no limit\n\t */\n\tpublic int getTerminateChar()\n\t{\n\t\treturn terminateChar;\n\t} //}}}\n\n\t//{{{ setTerminateChar() method\n\tpublic void setTerminateChar(int atChar)\n\t{\n\t\tterminateChar = (atChar >= 0) ? atChar : -1;\n\t} //}}}\n\n\t//{{{ getIgnoreCase() method\n\tpublic boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;\n\t} //}}}\n\n\t//{{{ setIgnoreCase() method\n\tpublic void setIgnoreCase(boolean b)\n\t{\n\t\tignoreCase = b;\n\t} //}}}\n\n\t//{{{ getKeywords() method\n\tpublic KeywordMap getKeywords()\n\t{\n\t\treturn keywords;\n\t} //}}}\n\n\t//{{{ setKeywords() method\n\tpublic void setKeywords(KeywordMap km)\n\t{\n\t\tkeywords = km;\n\t\t_noWordSep = null;\n\t} //}}}\n\n\t//{{{ getHighlightDigits() method\n\tpublic boolean getHighlightDigits()\n\t{\n\t\treturn highlightDigits;\n\t} //}}}\n\n\t//{{{ setHighlightDigits() method\n\tpublic void setHighlightDigits(boolean highlightDigits)\n\t{\n\t\tthis.highlightDigits = highlightDigits;\n\t} //}}}\n\n\t//{{{ getDigitRegexp() method\n\tpublic Pattern getDigitRegexp()\n\t{\n\t\treturn digitRE;\n\t} //}}}\n\n\t//{{{ setDigitRegexp() method\n\tpublic void setDigitRegexp(Pattern digitRE)\n\t{\n\t\tthis.digitRE = digitRE;\n\t} //}}}\n\n\t//{{{ getEscapeRule() method\n\tpublic ParserRule getEscapeRule()\n\t{\n\t\treturn escapeRule;\n\t} //}}}\n\n\t//{{{ setEscapeRule() method\n\tpublic void setEscapeRule(ParserRule escapeRule)\n\t{\n\t\tthis.escapeRule = escapeRule;\n\t} //}}}\n\n\t//{{{ getDefault() method\n\tpublic byte getDefault()\n\t{\n\t\treturn defaultToken;\n\t} //}}}\n\n\t//{{{ setDefault() method\n\tpublic void setDefault(byte def)\n\t{\n\t\tdefaultToken = def;\n\t} //}}}\n\n\t//{{{ getNoWordSep() method\n\tpublic String getNoWordSep()\n\t{\n\t\tif(_noWordSep == null)\n\t\t{\n\t\t\t_noWordSep = noWordSep;\n\t\t\tif(noWordSep == null)\n\t\t\t\tnoWordSep = \"\";\n\t\t\tif(keywords != null)\n\t\t\t\tnoWordSep += keywords.getNonAlphaNumericChars();\n\t\t}\n\t\treturn noWordSep;\n\t} //}}}\n\n\t//{{{ setNoWordSep() method\n\tpublic void setNoWordSep(String noWordSep)\n\t{\n\t\tthis.noWordSep = noWordSep;\n\t\t_noWordSep = null;\n\t} //}}}\n\n\t//{{{ isBuiltIn() method\n\t/**\n\t * Returns if this is a built-in ruleset.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic boolean isBuiltIn()\n\t{\n\t\treturn builtIn;\n\t} //}}}\n\n\t//{{{ toString() method\n\t@Override\n\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + '[' + modeName + \"::\" + setName + ']';\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static ParserRuleSet[] standard;\n\n\tstatic\n\t{\n\t\tstandard = new ParserRuleSet[Token.ID_COUNT];\n\t\tfor(byte i = 0; i < Token.ID_COUNT; i++)\n\t\t{\n\t\t\tstandard[i] = new ParserRuleSet(null,null);\n\t\t\tstandard[i].setDefault(i);\n\t\t\tstandard[i].builtIn = true;\n\t\t}\n\t}\n\n\tprivate String modeName, setName;\n\tprivate Hashtable<String, String> props;\n\n\tprivate KeywordMap keywords;\n\n\tprivate int ruleCount;\n\n\tprivate Map<Character, List<ParserRule>> ruleMap;\n\n\tprivate final List<ParserRuleSet> imports;\n\n\t/**\n\t * The number of chars that can be read before the parsing stops.\n\t * &lt;TERMINATE AT_CHAR=\"1\" /&gt;\n\t */\n\tprivate int terminateChar = -1;\n\tprivate boolean ignoreCase = true;\n\tprivate byte defaultToken;\n\tprivate ParserRule escapeRule;\n\n\tprivate boolean highlightDigits;\n\tprivate Pattern digitRE;\n\n\tprivate String _noWordSep;\n\tprivate String noWordSep;\n\n\tprivate boolean builtIn;", "functions": [{"function_name": "getStandardRuleSet", "code": "\tpublic static ParserRuleSet getStandardRuleSet(byte id)\n\t{\n\t\treturn standard[id];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getModeName", "code": "\tpublic String getModeName()\n\t{\n\t\treturn modeName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSetName", "code": "\tpublic String getSetName()\n\t{\n\t\treturn setName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn modeName + \"::\" + setName;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getProperties", "code": "\tpublic Hashtable<String, String> getProperties()\n\t{\n\t\treturn props;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProperties", "code": "\tpublic void setProperties(Hashtable<String, String> props)\n\t{\n\t\tthis.props = props;\n\t\t_noWordSep = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "resolveImports", "code": "\tpublic void resolveImports()\n\t{\n\t\tfor (ParserRuleSet ruleset : imports)\n\t\t{\n\t\t\tif (!ruleset.imports.isEmpty())\n\t\t\t{\n\t\t\t\t//prevent infinite recursion\n\t\t\t\truleset.imports.remove(this);\n\t\t\t\truleset.resolveImports();\n\t\t\t}\n\n\t\t\tfor (List<ParserRule> rules : ruleset.ruleMap.values())\n\t\t\t{\n\t\t\t\tfor (ParserRule rule : rules)\n\t\t\t\t{\n\t\t\t\t\taddRule(rule);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (ruleset.keywords != null)\n\t\t\t{\n\t\t\t\tif (keywords == null)\n\t\t\t\t\tkeywords = new KeywordMap(ignoreCase);\n\t\t\t\tkeywords.add(ruleset.keywords);\n\t\t\t}\n\t\t}\n\t\timports.clear();", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "IF", "LOOP", "IF", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "LOOP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [3, 8], [6, 9], [4, 10], [4, 11], [3, 12], [8, 13], [5, 14], [5, 15], [8, 16], [13, 17], [16, 18], [10, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 3], [9, 6], [10, 4], [11, 4], [12, 3], [13, 8], [14, 5], [15, 5], [16, 8], [17, 13], [18, 16], [19, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "addRuleSet", "code": "\tpublic void addRuleSet(ParserRuleSet ruleset)\n\t{\n\t\timports.add(ruleset);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addRule", "code": "\tpublic void addRule(ParserRule r)\n\t{\n\t\truleCount++;\n\t\tCharacter[] keys;\n\t\tif (null == r.upHashChars)\n\t\t{\n\t\t\tkeys = new Character[1];\n\t\t\tif ((null == r.upHashChar) || (0 >= r.upHashChar.length()))\n\t\t\t{\n\t\t\t\tkeys[0] = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tkeys[0] = Character.valueOf(r.upHashChar.charAt(0));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tkeys = new Character[r.upHashChars.length];\n\t\t\tint i = 0;\n\t\t\tfor (char upHashChar : r.upHashChars)\n\t\t\t{\n\t\t\t\tkeys[i++] = upHashChar;\n\t\t\t}\n\t\t}\n\t\tfor (Character key : keys)\n\t\t{\n\t\t\tList<ParserRule> rules = ruleMap.get(key);\n\t\t\tif (null == rules)\n\t\t\t{\n\t\t\t\trules = new ArrayList<ParserRule>();\n\t\t\t\truleMap.put(key,rules);\n\t\t\t}\n\t\t\tint ruleAmount = rules.size();\n\t\t\trules.add(r);\n\t\t\t// fill the deprecated ParserRule.next pointer\n\t\t\tif (ruleAmount > 0)\n\t\t\t{\n\t\t\t\trules.get(ruleAmount).next = r;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [2, 11], [2, 12], [5, 13], [6, 14], [1, 15], [8, 16], [2, 17], [12, 18], [2, 19], [14, 20], [7, 21], [16, 22], [9, 23], [11, 24], [18, 25], [18, 26], [6, 27], [8, 28], [8, 29], [10, 30], [12, 31], [12, 32], [25, 33], [25, 34], [26, 35], [19, 36], [27, 37], [29, 38], [31, 39], [32, 40], [39, 41], [41, 42], [31, 43], [32, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 2], [12, 2], [13, 5], [14, 6], [15, 1], [16, 8], [17, 2], [18, 12], [19, 2], [20, 14], [21, 7], [22, 16], [23, 9], [24, 11], [25, 18], [26, 18], [27, 6], [28, 8], [29, 8], [30, 10], [31, 12], [32, 12], [33, 25], [34, 25], [35, 26], [36, 19], [37, 27], [38, 29], [39, 31], [40, 32], [41, 39], [42, 41], [43, 31], [44, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "getRules", "code": "\t@Deprecated\n\tpublic ParserRule getRules(char ch)\n\t{\n\t\tList<ParserRule> rules = getRules(Character.valueOf(ch));\n\t\treturn rules.get(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getRules", "code": "\tpublic List<ParserRule> getRules(Character key)\n\t{\n\t\tList<ParserRule> rulesForNull = ruleMap.get(null);\n\t\tboolean emptyForNull = (rulesForNull == null) || (rulesForNull.size() == 0);\n\t\tCharacter upperKey = null == key ? null : Character.valueOf(Character.toUpperCase(key.charValue()));\n\t\tList<ParserRule> rulesForKey = null == upperKey ? null : ruleMap.get(upperKey);\n\t\tboolean emptyForKey = (rulesForKey == null) || (rulesForKey.size() == 0);\n\t\tif (emptyForNull && emptyForKey)\n\t\t{\n\t\t\treturn Collections.emptyList();\n\t\t}\n\t\telse if (emptyForKey)\n\t\t{\n\t\t\treturn rulesForNull;\n\t\t}\n\t\telse if (emptyForNull)\n\t\t{\n\t\t\treturn rulesForKey;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint size = rulesForNull.size() + rulesForKey.size();\n\t\t\tArrayList<ParserRule> mixed = new ArrayList<ParserRule>(size);\n\t\t\tmixed.addAll(rulesForKey);\n\t\t\tmixed.addAll(rulesForNull);\n\t\t\t// fill the deprecated ParserRule.next pointer\n\t\t\trulesForKey.get(rulesForKey.size() - 1).next = rulesForNull.get(0);\n\t\t\treturn mixed;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "COND_EXPR", "COND_EXPR", "BINARY_OP", "CALL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [1, 11], [2, 12], [3, 13], [4, 14], [5, 15], [6, 16], [8, 17], [11, 18], [12, 19], [12, 20], [13, 21], [13, 22], [13, 23], [14, 24], [14, 25], [14, 26], [15, 27], [15, 28], [16, 29], [10, 30], [10, 31], [10, 32], [10, 33], [19, 34], [19, 35], [20, 36], [23, 37], [24, 38], [26, 39], [27, 40], [27, 41], [28, 42], [10, 43], [10, 44], [10, 45], [38, 46], [43, 47], [43, 48], [31, 49], [32, 50], [47, 51], [48, 52], [50, 53], [50, 54], [52, 55], [52, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 1], [12, 2], [13, 3], [14, 4], [15, 5], [16, 6], [17, 8], [18, 11], [19, 12], [20, 12], [21, 13], [22, 13], [23, 13], [24, 14], [25, 14], [26, 14], [27, 15], [28, 15], [29, 16], [30, 10], [31, 10], [32, 10], [33, 10], [34, 19], [35, 19], [36, 20], [37, 23], [38, 24], [39, 26], [40, 27], [41, 27], [42, 28], [43, 10], [44, 10], [45, 10], [46, 38], [47, 43], [48, 43], [49, 31], [50, 32], [51, 47], [52, 48], [53, 50], [54, 50], [55, 52], [56, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "getRuleCount", "code": "\tpublic int getRuleCount()\n\t{\n\t\treturn ruleCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTerminateChar", "code": "\tpublic int getTerminateChar()\n\t{\n\t\treturn terminateChar;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTerminateChar", "code": "\tpublic void setTerminateChar(int atChar)\n\t{\n\t\tterminateChar = (atChar >= 0) ? atChar : -1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getIgnoreCase", "code": "\tpublic boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreCase", "code": "\tpublic void setIgnoreCase(boolean b)\n\t{\n\t\tignoreCase = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getKeywords", "code": "\tpublic KeywordMap getKeywords()\n\t{\n\t\treturn keywords;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setKeywords", "code": "\tpublic void setKeywords(KeywordMap km)\n\t{\n\t\tkeywords = km;\n\t\t_noWordSep = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getHighlightDigits", "code": "\tpublic boolean getHighlightDigits()\n\t{\n\t\treturn highlightDigits;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHighlightDigits", "code": "\tpublic void setHighlightDigits(boolean highlightDigits)\n\t{\n\t\tthis.highlightDigits = highlightDigits;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDigitRegexp", "code": "\tpublic Pattern getDigitRegexp()\n\t{\n\t\treturn digitRE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDigitRegexp", "code": "\tpublic void setDigitRegexp(Pattern digitRE)\n\t{\n\t\tthis.digitRE = digitRE;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEscapeRule", "code": "\tpublic ParserRule getEscapeRule()\n\t{\n\t\treturn escapeRule;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEscapeRule", "code": "\tpublic void setEscapeRule(ParserRule escapeRule)\n\t{\n\t\tthis.escapeRule = escapeRule;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefault", "code": "\tpublic byte getDefault()\n\t{\n\t\treturn defaultToken;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefault", "code": "\tpublic void setDefault(byte def)\n\t{\n\t\tdefaultToken = def;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNoWordSep", "code": "\tpublic String getNoWordSep()\n\t{\n\t\tif(_noWordSep == null)\n\t\t{\n\t\t\t_noWordSep = noWordSep;\n\t\t\tif(noWordSep == null)\n\t\t\t\tnoWordSep = \"\";\n\t\t\tif(keywords != null)\n\t\t\t\tnoWordSep += keywords.getNonAlphaNumericChars();\n\t\t}\n\t\treturn noWordSep;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [4, 7], [5, 8], [2, 9], [4, 10], [7, 11], [5, 12], [8, 13], [10, 14], [12, 15], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 4], [8, 5], [9, 2], [10, 4], [11, 7], [12, 5], [13, 8], [14, 10], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setNoWordSep", "code": "\tpublic void setNoWordSep(String noWordSep)\n\t{\n\t\tthis.noWordSep = noWordSep;\n\t\t_noWordSep = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isBuiltIn", "code": "\tpublic boolean isBuiltIn()\n\t{\n\t\treturn builtIn;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "\t@Override\n\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + '[' + modeName + \"::\" + setName + ']';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "ParserRuleSet", "code": "\tpublic ParserRuleSet(String modeName, String setName)\n\t{\n\t\tthis.modeName = modeName;\n\t\tthis.setName = setName;\n\t\truleMap = new HashMap<Character, List<ParserRule>>();\n\t\timports = new ArrayList<ParserRuleSet>();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.4-6451", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/IntExpr.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.IntExpr", "code": "final class IntExpr extends Expression {\n    private final int _value;\n\n    public IntExpr(int value) {\n        _value = value;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn _type = Type.Int;\n    }\n\n    public String toString() {\n\treturn \"int-expr(\" + _value + ')';\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn _type = Type.Int;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"int-expr(\" + _value + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "IntExpr", "code": "    public IntExpr(int value) {\n        _value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.0-3942", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/gui/ErrorListDialog.java", "language": "java", "name": "org.gjt.sp.jedit.gui.ErrorListDialog", "code": "public class ErrorListDialog extends EnhancedDialog\n{\n\t//{{{ ErrorEntry class\n\tpublic static class ErrorEntry\n\t{\n\t\tString path;\n\t\tString[] messages;\n\n\t\tpublic ErrorEntry(String path, String messageProp, Object[] args)\n\t\t{\n\t\t\tthis.path = path;\n\n\t\t\tString message = jEdit.getProperty(messageProp,args);\n\t\t\tif(message == null)\n\t\t\t\tmessage = \"Undefined property: \" + messageProp;\n\n\t\t\tVector tokenizedMessage = new Vector();\n\t\t\tint lastIndex = -1;\n\t\t\tfor(int i = 0; i < message.length(); i++)\n\t\t\t{\n\t\t\t\tif(message.charAt(i) == '\\n')\n\t\t\t\t{\n\t\t\t\t\ttokenizedMessage.addElement(message.substring(\n\t\t\t\t\t\tlastIndex + 1,i));\n\t\t\t\t\tlastIndex = i;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(lastIndex != message.length())\n\t\t\t{\n\t\t\t\ttokenizedMessage.addElement(message.substring(\n\t\t\t\t\tlastIndex + 1));\n\t\t\t}\n\n\t\t\tmessages = new String[tokenizedMessage.size()];\n\t\t\ttokenizedMessage.copyInto(messages);\n\t\t}\n\t} //}}}\n\n\t//{{{ ErrorListDialog constructor\n\tpublic ErrorListDialog(Frame frame, String title, String caption,\n\t\tVector messages, boolean showPluginMgrButton)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tBox iconBox = new Box(BoxLayout.Y_AXIS);\n\t\ticonBox.add(new JLabel(UIManager.getIcon(\"OptionPane.errorIcon\")));\n\t\ticonBox.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.WEST,iconBox);\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout());\n\n\t\tJLabel label = new JLabel(caption);\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,0));\n\t\tcenterPanel.add(BorderLayout.NORTH,label);\n\n\t\tJList errors = new JList(messages);\n\t\terrors.setCellRenderer(new ErrorListCellRenderer());\n\t\terrors.setVisibleRowCount(Math.min(messages.size(),4));\n\n\t\t// need this bullshit scroll bar policy for the preferred size\n\t\t// hack to work\n\t\tJScrollPane scrollPane = new JScrollPane(errors,\n\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tDimension size = scrollPane.getPreferredSize();\n\t\tsize.width = Math.min(size.width,400);\n\t\tscrollPane.setPreferredSize(size);\n\n\t\tcenterPanel.add(BorderLayout.CENTER,scrollPane);\n\n\t\tcontent.add(BorderLayout.CENTER,centerPanel);\n\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\t\tbuttons.add(Box.createGlue());\n\n\t\tok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(new ActionHandler());\n\n\t\tif(showPluginMgrButton)\n\t\t{\n\t\t\tpluginMgr = new JButton(jEdit.getProperty(\"error-list.plugin-manager\"));\n\t\t\tpluginMgr.addActionListener(new ActionHandler());\n\t\t\tbuttons.add(pluginMgr);\n\t\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\t}\n\n\t\tbuttons.add(ok);\n\n\t\tbuttons.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(frame);\n\t\tshow();\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate JButton ok, pluginMgr;\n\t//}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\t//{{{ actionPerformed() method\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == ok)\n\t\t\t\tdispose();\n\t\t\telse if(evt.getSource() == pluginMgr)\n\t\t\t{\n\t\t\t\tnew org.gjt.sp.jedit.pluginmgr.PluginManager(\n\t\t\t\t\tJOptionPane.getFrameForComponent(\n\t\t\t\t\tErrorListDialog.this));", "functions": [{"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ErrorListDialog", "code": "\tpublic ErrorListDialog(Frame frame, String title, String caption,\n\t\tVector messages, boolean showPluginMgrButton)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tBox iconBox = new Box(BoxLayout.Y_AXIS);\n\t\ticonBox.add(new JLabel(UIManager.getIcon(\"OptionPane.errorIcon\")));\n\t\ticonBox.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.WEST,iconBox);\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout());\n\n\t\tJLabel label = new JLabel(caption);\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,0));\n\t\tcenterPanel.add(BorderLayout.NORTH,label);\n\n\t\tJList errors = new JList(messages);\n\t\terrors.setCellRenderer(new ErrorListCellRenderer());\n\t\terrors.setVisibleRowCount(Math.min(messages.size(),4));\n\n\t\t// need this bullshit scroll bar policy for the preferred size\n\t\t// hack to work\n\t\tJScrollPane scrollPane = new JScrollPane(errors,\n\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tDimension size = scrollPane.getPreferredSize();\n\t\tsize.width = Math.min(size.width,400);\n\t\tscrollPane.setPreferredSize(size);\n\n\t\tcenterPanel.add(BorderLayout.CENTER,scrollPane);\n\n\t\tcontent.add(BorderLayout.CENTER,centerPanel);\n\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\t\tbuttons.add(Box.createGlue());\n\n\t\tok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(new ActionHandler());\n\n\t\tif(showPluginMgrButton)\n\t\t{\n\t\t\tpluginMgr = new JButton(jEdit.getProperty(\"error-list.plugin-manager\"));\n\t\t\tpluginMgr.addActionListener(new ActionHandler());\n\t\t\tbuttons.add(pluginMgr);\n\t\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\t}\n\n\t\tbuttons.add(ok);\n\n\t\tbuttons.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(frame);\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [18, 39], [20, 40], [22, 41], [23, 42], [24, 43], [2, 44], [28, 45], [3, 46], [4, 47], [29, 48], [30, 49], [5, 50], [32, 51], [6, 52], [7, 53], [34, 54], [35, 55], [8, 56], [37, 57], [9, 58], [1, 59], [1, 60], [1, 61], [1, 62], [42, 63], [45, 64], [48, 65], [48, 66], [51, 67], [51, 68], [51, 69], [51, 70], [53, 71], [55, 72], [57, 73], [57, 74], [57, 75], [57, 76], [58, 77], [59, 78], [61, 79], [62, 80], [63, 81], [72, 82], [77, 83], [77, 84], [78, 85], [80, 86], [86, 87], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 18], [40, 20], [41, 22], [42, 23], [43, 24], [44, 2], [45, 28], [46, 3], [47, 4], [48, 29], [49, 30], [50, 5], [51, 32], [52, 6], [53, 7], [54, 34], [55, 35], [56, 8], [57, 37], [58, 9], [59, 1], [60, 1], [61, 1], [62, 1], [63, 42], [64, 45], [65, 48], [66, 48], [67, 51], [68, 51], [69, 51], [70, 51], [71, 53], [72, 55], [73, 57], [74, 57], [75, 57], [76, 57], [77, 58], [78, 59], [79, 61], [80, 62], [81, 63], [82, 72], [83, 77], [84, 77], [85, 78], [86, 80], [87, 86], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}], "label": 0}
{"sample_id": "camel-1.6-2907", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/spring/remoting/SendBeforeInterceptor.java", "language": "java", "name": "org.apache.camel.spring.remoting.SendBeforeInterceptor", "code": "public class SendBeforeInterceptor implements MethodInterceptor, CamelContextAware, InitializingBean, DisposableBean {\n    private String uri;\n    private CamelContext camelContext;\n    private CamelInvocationHandler invocationHandler;\n    private Producer producer;\n\n    public Object invoke(MethodInvocation invocation) throws Throwable {\n        invocationHandler.invoke(invocation.getThis(), invocation.getMethod(), invocation.getArguments());\n        return invocation.proceed();\n    }\n\n    public void afterPropertiesSet() throws Exception {\n        notNull(uri, \"uri\");\n        notNull(camelContext, \"camelContext\");\n\n        Endpoint endpoint = CamelContextHelper.getMandatoryEndpoint(camelContext, uri);\n        producer = endpoint.createProducer();\n        producer.start();\n        invocationHandler = new CamelInvocationHandler(endpoint, producer, new MethodInfoCache(endpoint.getCamelContext()));\n    }\n\n    public void destroy() throws Exception {\n        if (producer != null) {\n            producer.stop();\n        }\n    }\n\n    public void setCamelContext(CamelContext camelContext) {\n        this.camelContext = camelContext;\n    }\n\n    public String getUri() {\n        return uri;\n    }\n\n    public void setUri(String uri) {\n        this.uri = uri;", "functions": [{"function_name": "invoke", "code": "    public Object invoke(MethodInvocation invocation) throws Throwable {\n        invocationHandler.invoke(invocation.getThis(), invocation.getMethod(), invocation.getArguments());\n        return invocation.proceed();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [4, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "afterPropertiesSet", "code": "    public void afterPropertiesSet() throws Exception {\n        notNull(uri, \"uri\");\n        notNull(camelContext, \"camelContext\");\n\n        Endpoint endpoint = CamelContextHelper.getMandatoryEndpoint(camelContext, uri);\n        producer = endpoint.createProducer();\n        producer.start();\n        invocationHandler = new CamelInvocationHandler(endpoint, producer, new MethodInfoCache(endpoint.getCamelContext()));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [1, 9], [5, 10], [6, 11], [7, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 1], [10, 5], [11, 6], [12, 7], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "destroy", "code": "    public void destroy() throws Exception {\n        if (producer != null) {\n            producer.stop();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setCamelContext", "code": "    public void setCamelContext(CamelContext camelContext) {\n        this.camelContext = camelContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUri", "code": "    public String getUri() {\n        return uri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUri", "code": "    public void setUri(String uri) {\n        this.uri = uri;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6628", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/lib/sql/ConnectionPool.java", "language": "java", "name": "org.apache.xalan.lib.sql.ConnectionPool", "code": "public interface ConnectionPool\n{\n\n  /**\n   * Determine if a Connection Pool has been disabled. If a Connection pool\n   * is disabled, then it will only manage connections that are in use.\n   * @return\n   */\n  public boolean isEnabled( );\n\n  /**\n   * The Driver and URL are the only required parmeters.\n   * @param d\n   * @return\n   */\n  public void setDriver( String d );\n\n  /**\n   * @param url\n   * @return\n   */\n  public void setURL( String url );\n\n  /**\n   * Start downsizeing the pool, this usally happens right after the\n   * pool has been marked as Inactive and we are removing connections\n   * that are not currently inuse.\n   * @return\n   */\n  public void freeUnused( );\n\n\n  /**\n   * Provide an indicator to the PoolManager when the Pool can be removed\n   * from the Pool Table.\n   * @return\n   */\n  public boolean hasActiveConnections( );\n\n  /**\n   * The rest of the protocol parameters can eiter be passed in as\n   * just Username and Password or as a property collection. If the\n   * property collection is used, then the sperate username and password\n   * may be ignored, it is up to the wrapper implementation to handle\n   * the situation. If the connection information changes while after the\n   * pool has been established, the wrapper implementation should ignore\n   * the change and throw an error.\n   * @param p\n   * @return\n   */\n  public void setPassword( String p );\n\n  /**\n   * @param u\n   * @return\n   */\n  public void setUser( String u );\n\n\n  /**\n   * Set tne minimum number of connections that are to be maintained in the\n   * pool.\n   * @param n\n   * @return\n   */\n  public void setMinConnections( int n );\n\n  /**\n   * Test to see if the connection info is valid to make a real connection\n   * to the database. This method may cause the pool to be crated and filled\n   * with min connections.\n   * @return\n   */\n  public boolean testConnection( );\n\n  /**\n   * Retrive a database connection from the pool\n   * @return\n   * @throws SQLException\n   */\n  public Connection getConnection( )throws SQLException;\n\n   /**\n   * Return a connection to the pool, the connection may be closed if the\n   * pool is inactive or has exceeded the max number of free connections\n   * @param con\n   * @return\n   * @throws SQLException\n   */\n  public void releaseConnection( Connection con )throws SQLException;\n\n   /**\n   * Provide a mechinism to return a connection to the pool on Error.\n   * A good default behaviour is to close this connection and build\n   * a new one to replace it. Some JDBC impl's won't allow you to\n   * reuse a connection after an error occurs.\n   * @param con\n   * @return\n   * @throws SQLException\n   */\n  public void releaseConnectionOnError( Connection con )throws SQLException;\n\n\n  /**\n   * The Pool can be Enabled and Disabled. Disabling the pool\n   * closes all the outstanding Unused connections and any new\n   * connections will be closed upon release.\n   * @param flag Control the Connection Pool. If it is enabled\n   * then Connections will actuall be held around. If disabled\n   * then all unused connections will be instantly closed and as\n   * connections are released they are closed and removed from the pool.\n   * @return\n   */\n  public void setPoolEnabled( final boolean flag );\n\n  /**\n   * Used to pass in extra configuration options during the\n   * database connect phase.\n   */\n  public void setProtocol(Properties p);", "functions": [{"function_name": "isEnabled", "code": "  public boolean isEnabled( );", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setDriver", "code": "  public void setDriver( String d );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setURL", "code": "  public void setURL( String url );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "freeUnused", "code": "  public void freeUnused( );", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "hasActiveConnections", "code": "  public boolean hasActiveConnections( );", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setPassword", "code": "  public void setPassword( String p );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUser", "code": "  public void setUser( String u );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMinConnections", "code": "  public void setMinConnections( int n );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "testConnection", "code": "  public boolean testConnection( );", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getConnection", "code": "  public Connection getConnection( )throws SQLException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "releaseConnection", "code": "  public void releaseConnection( Connection con )throws SQLException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "releaseConnectionOnError", "code": "  public void releaseConnectionOnError( Connection con )throws SQLException;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPoolEnabled", "code": "  public void setPoolEnabled( final boolean flag );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProtocol", "code": "  public void setProtocol(Properties p);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.2-1953", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/cxf/CamelInvoker.java", "language": "java", "name": "org.apache.camel.component.cxf.CamelInvoker", "code": "public class CamelInvoker implements Invoker  {\n    private static final Logger LOG = Logger.getLogger(CamelInvoker.class.getName());\n    private CxfConsumer cxfConsumer;\n    public CamelInvoker(CxfConsumer consumer) {\n        cxfConsumer = consumer;\n    }\n    /**\n    * This method is called when the incoming message is to\n    * be passed into the camel processor. The return value is the response\n    * from the processor\n    * @param inMessage\n    * @return outMessage\n    */\n    public Message invoke(Message inMessage) {\n        System.out.println(\"invoke the message \" + inMessage);\n        Exchange exchange = inMessage.getExchange();\n                               \n        Map<String, Object> ctxContainer = new HashMap<String, Object>();\n        Map<String, Object> requestCtx = new HashMap<String, Object>();\n        ctxContainer.put(Client.REQUEST_CONTEXT, requestCtx);\n        updateContext(inMessage, requestCtx);\n        CxfEndpoint endpoint = (CxfEndpoint) cxfConsumer.getEndpoint();\n        CxfExchange cxfExchange = endpoint.createExchange(inMessage);\n        try {\n            cxfConsumer.getProcessor().process(cxfExchange);\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n       \n        Message outMessage = getCxfMessage(cxfExchange, exchange);\n               \n        /*ctxContainer = (Map<String, Object>)outMessage.getProperty(CxfMessageAdapter.REQ_RESP_CONTEXT);\n        Map<String, Object> respCtx = (Map<String, Object>)ctxContainer.get(Client.RESPONSE_CONTEXT);\n        updateContext(respCtx, outMessage);*/\n       \n        return outMessage;\n    }\n    \n    public Message getCxfMessage(CxfExchange result, Exchange exchange) {        \n        Message outMessage = null;\n        if (result.isFailed()) {\n            CxfMessage fault = result.getFault();\n            outMessage = exchange.getInFaultMessage();\n            if (outMessage == null) {\n                outMessage = new MessageImpl();\n                exchange.setInFaultMessage(outMessage);\n            }\n            Exception ex = (Exception) fault.getBody();\n            outMessage.setContent(Exception.class, ex);\n        } else {\n            if (LOG.isLoggable(Level.FINEST)) {\n                LOG.finest(\"Payload is a response.\");\n            }\n            outMessage = result.getOutMessage();\n            if (outMessage == null) {\n                Endpoint ep = exchange.get(Endpoint.class);                    \n                outMessage = ep.getBinding().createMessage();\n                exchange.setOutMessage(outMessage);\n            }\n        }\n        \n        return outMessage;\n    }\n    \n    @SuppressWarnings(\"unchecked\")\n    public void updateContext(Map<String, Object> from, Map<String, Object> to) {\n        if (to != null && from != null) {\n            for (Iterator iter = from.entrySet().iterator(); iter.hasNext();) {\n                Map.Entry entry = (Map.Entry) iter.next();\n                String key = (String)entry.getKey();\n\n                if (!(Message.INBOUND_MESSAGE.equals(key)\n                      || Message.REQUESTOR_ROLE.equals(key)\n                      || Message.PROTOCOL_HEADERS.equals(key))) {\n                    to.put(key, entry.getValue());\n                }\n            }\n        }\n    }\n\n    /**\n     * This method is called when the incoming pojo invocation is called\n     * from the service invocation interceptor. The return value is the response\n     * from the processor\n     * @param inMessage\n     * @return outMessage\n     */\n    public Object invoke(Exchange exchange, Object o) {\n        BindingOperationInfo bop = exchange.get(BindingOperationInfo.class);\n        MethodDispatcher md = (MethodDispatcher) \n            exchange.get(Service.class).get(MethodDispatcher.class.getName());\n        Method m = md.getMethod(bop);\n        \n        List<Object> params = null;\n        if (o instanceof List) {\n            params = CastUtils.cast((List<?>)o);\n        } else if (o != null) {\n            params = new MessageContentsList(o);\n        }\n        \n        CxfEndpoint endpoint = (CxfEndpoint) cxfConsumer.getEndpoint();\n        CxfExchange cxfExchange = endpoint.createExchange(exchange.getInMessage());\n        cxfExchange.getIn().setHeader(CxfConstants.OPERATION_NAME, m.getName());\n        cxfExchange.getIn().setBody(params);\n        \n        \n        try {\n            cxfConsumer.getProcessor().process(cxfExchange);\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n        Object[] result;\n        if (cxfExchange.isFailed()) {\n            Exception ex= (Exception)cxfExchange.getFault().getBody();\n            throw new Fault(ex);\n        } else {\n            result = (Object[])cxfExchange.getOut().getBody();\n        }\n        \n        return result;", "functions": [{"function_name": "invoke", "code": "    public Message invoke(Message inMessage) {\n        System.out.println(\"invoke the message \" + inMessage);\n        Exchange exchange = inMessage.getExchange();\n                               \n        Map<String, Object> ctxContainer = new HashMap<String, Object>();\n        Map<String, Object> requestCtx = new HashMap<String, Object>();\n        ctxContainer.put(Client.REQUEST_CONTEXT, requestCtx);\n        updateContext(inMessage, requestCtx);\n        CxfEndpoint endpoint = (CxfEndpoint) cxfConsumer.getEndpoint();\n        CxfExchange cxfExchange = endpoint.createExchange(inMessage);\n        try {\n            cxfConsumer.getProcessor().process(cxfExchange);\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n       \n        Message outMessage = getCxfMessage(cxfExchange, exchange);\n               \n        /*ctxContainer = (Map<String, Object>)outMessage.getProperty(CxfMessageAdapter.REQ_RESP_CONTEXT);\n        Map<String, Object> respCtx = (Map<String, Object>)ctxContainer.get(Client.RESPONSE_CONTEXT);\n        updateContext(respCtx, outMessage);*/\n       \n        return outMessage;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [0, 11], [0, 12], [0, 13], [2, 14], [3, 15], [4, 16], [6, 17], [7, 18], [8, 19], [13, 20], [10, 21], [15, 22], [5, 23], [20, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 0], [12, 0], [13, 0], [14, 2], [15, 3], [16, 4], [17, 6], [18, 7], [19, 8], [20, 13], [21, 10], [22, 15], [23, 5], [24, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getCxfMessage", "code": "    public Message getCxfMessage(CxfExchange result, Exchange exchange) {        \n        Message outMessage = null;\n        if (result.isFailed()) {\n            CxfMessage fault = result.getFault();\n            outMessage = exchange.getInFaultMessage();\n            if (outMessage == null) {\n                outMessage = new MessageImpl();\n                exchange.setInFaultMessage(outMessage);\n            }\n            Exception ex = (Exception) fault.getBody();\n            outMessage.setContent(Exception.class, ex);\n        } else {\n            if (LOG.isLoggable(Level.FINEST)) {\n                LOG.finest(\"Payload is a response.\");\n            }\n            outMessage = result.getOutMessage();\n            if (outMessage == null) {\n                Endpoint ep = exchange.get(Endpoint.class);                    \n                outMessage = ep.getBinding().createMessage();\n                exchange.setOutMessage(outMessage);\n            }\n        }\n        \n        return outMessage;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [3, 12], [7, 13], [2, 14], [8, 15], [2, 16], [10, 17], [2, 18], [7, 19], [13, 20], [14, 21], [17, 22], [18, 23], [11, 24], [7, 25], [7, 26], [8, 27], [9, 28], [10, 29], [10, 30], [26, 31], [19, 32], [27, 33], [30, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 3], [13, 7], [14, 2], [15, 8], [16, 2], [17, 10], [18, 2], [19, 7], [20, 13], [21, 14], [22, 17], [23, 18], [24, 11], [25, 7], [26, 7], [27, 8], [28, 9], [29, 10], [30, 10], [31, 26], [32, 19], [33, 27], [34, 30], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "updateContext", "code": "    @SuppressWarnings(\"unchecked\")\n    public void updateContext(Map<String, Object> from, Map<String, Object> to) {\n        if (to != null && from != null) {\n            for (Iterator iter = from.entrySet().iterator(); iter.hasNext();) {\n                Map.Entry entry = (Map.Entry) iter.next();\n                String key = (String)entry.getKey();\n\n                if (!(Message.INBOUND_MESSAGE.equals(key)\n                      || Message.REQUESTOR_ROLE.equals(key)\n                      || Message.PROTOCOL_HEADERS.equals(key))) {\n                    to.put(key, entry.getValue());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [6, 9], [7, 10], [8, 11], [6, 12], [6, 13], [6, 14], [12, 15], [6, 16], [15, 17], [15, 18], [16, 19], [12, 20], [18, 21], [18, 22], [13, 23], [14, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 6], [10, 7], [11, 8], [12, 6], [13, 6], [14, 6], [15, 12], [16, 6], [17, 15], [18, 15], [19, 16], [20, 12], [21, 18], [22, 18], [23, 13], [24, 14], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "invoke", "code": "    public Object invoke(Exchange exchange, Object o) {\n        BindingOperationInfo bop = exchange.get(BindingOperationInfo.class);\n        MethodDispatcher md = (MethodDispatcher) \n            exchange.get(Service.class).get(MethodDispatcher.class.getName());\n        Method m = md.getMethod(bop);\n        \n        List<Object> params = null;\n        if (o instanceof List) {\n            params = CastUtils.cast((List<?>)o);\n        } else if (o != null) {\n            params = new MessageContentsList(o);\n        }\n        \n        CxfEndpoint endpoint = (CxfEndpoint) cxfConsumer.getEndpoint();\n        CxfExchange cxfExchange = endpoint.createExchange(exchange.getInMessage());\n        cxfExchange.getIn().setHeader(CxfConstants.OPERATION_NAME, m.getName());\n        cxfExchange.getIn().setBody(params);\n        \n        \n        try {\n            cxfConsumer.getProcessor().process(cxfExchange);\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n        Object[] result;\n        if (cxfExchange.isFailed()) {\n            Exception ex= (Exception)cxfExchange.getFault().getBody();\n            throw new Fault(ex);\n        } else {\n            result = (Object[])cxfExchange.getOut().getBody();\n        }\n        \n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CATCH", "CALL", "CALL", "IF", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [4, 15], [0, 16], [0, 17], [7, 18], [7, 19], [2, 20], [2, 21], [4, 22], [16, 23], [17, 24], [5, 25], [18, 26], [8, 27], [9, 28], [11, 29], [2, 30], [20, 31], [15, 32], [22, 33], [24, 34], [25, 35], [6, 36], [26, 37], [7, 38], [10, 39], [18, 40], [38, 41], [39, 42], [30, 43], [21, 44], [40, 45], [42, 46], [43, 47], [44, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 4], [16, 0], [17, 0], [18, 7], [19, 7], [20, 2], [21, 2], [22, 4], [23, 16], [24, 17], [25, 5], [26, 18], [27, 8], [28, 9], [29, 11], [30, 2], [31, 20], [32, 15], [33, 22], [34, 24], [35, 25], [36, 6], [37, 26], [38, 7], [39, 10], [40, 18], [41, 38], [42, 39], [43, 30], [44, 21], [45, 40], [46, 42], [47, 43], [48, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "CamelInvoker", "code": "    public CamelInvoker(CxfConsumer consumer) {\n        cxfConsumer = consumer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.3-4826", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/msg/DockableWindowUpdate.java", "language": "java", "name": "org.gjt.sp.jedit.msg.DockableWindowUpdate", "code": "public class DockableWindowUpdate extends EBMessage\n{\n\t//{{{ Message types\n\t/**\n\t * Properties changed. Fired instead of global\n\t * <code>PropertiesChanged</code> for improved performance.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static final Object PROPERTIES_CHANGED = \"PROPERTIES_CHANGED\";\n\n\t/**\n\t * Dockable activated. This is sent when the dockable is made visible.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static final Object ACTIVATED = \"ACTIVATED\";\n\n\t/**\n\t * Dockable deactivated. This is sent when the dockable is hidden.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static final Object DEACTIVATED = \"DEACTIVATED\";\n\t//}}}\n\n\t//{{{ DockableWindowUpdate constructor\n\t/**\n\t * Creates a new dockable window update message.\n\t * @param wm The dockable window manager\n\t * @param what What happened\n\t * @param dockable The dockable window in question\n\t */\n\tpublic DockableWindowUpdate(DockableWindowManager wm, Object what,\n\t\tString dockable)\n\t{\n\t\tsuper(wm);\n\n\t\tif(what == null)\n\t\t\tthrow new NullPointerException(\"What must be non-null\");\n\n\t\tthis.what = what;\n\t\tthis.dockable = dockable;\n\t} //}}}\n\n\t//{{{ getWhat() method\n\t/**\n\t * Returns what caused this dockable update.\n\t */\n\tpublic Object getWhat()\n\t{\n\t\treturn what;\n\t} //}}}\n\n\t//{{{ getDockable() method\n\t/**\n\t * Returns the dockable in question, or null if the message type is\n\t * <code>PROPERTIES_CHANGED</code>.\n\t */\n\tpublic String getDockable()\n\t{\n\t\treturn dockable;\n\t} //}}}\n\n\t//{{{ paramString() method\n\tpublic String paramString()\n\t{\n\t\treturn \"what=\" + what\n\t\t\t+ \",dockable=\" + dockable\n\t\t\t+ \",\" + super.paramString();\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate Object what;\n\tprivate String dockable;", "functions": [{"function_name": "getWhat", "code": "\tpublic Object getWhat()\n\t{\n\t\treturn what;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDockable", "code": "\tpublic String getDockable()\n\t{\n\t\treturn dockable;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "paramString", "code": "\tpublic String paramString()\n\t{\n\t\treturn \"what=\" + what\n\t\t\t+ \",dockable=\" + dockable\n\t\t\t+ \",\" + super.paramString();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "DockableWindowUpdate", "code": "\tpublic DockableWindowUpdate(DockableWindowManager wm, Object what,\n\t\tString dockable)\n\t{\n\t\tsuper(wm);\n\n\t\tif(what == null)\n\t\t\tthrow new NullPointerException(\"What must be non-null\");\n\n\t\tthis.what = what;\n\t\tthis.dockable = dockable;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "xalan-2.4-6575", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/extensions/XSLProcessorContext.java", "language": "java", "name": "org.apache.xalan.extensions.XSLProcessorContext", "code": "public class XSLProcessorContext\n{\n\n  /**\n   * Create a processor context to be passed to an extension.\n   * (Notice it is a package-only constructor).\n   *\n   * @param transformer non-null transformer instance\n   * @param stylesheetTree The owning stylesheet\n   * @param sourceTree The source document\n   * @param sourceNode The current source node\n   * @param mode the current mode being executed.\n   */\n  public XSLProcessorContext(TransformerImpl transformer,\n                             Stylesheet stylesheetTree)\n  {\n\n    this.transformer = transformer;\n    this.stylesheetTree = stylesheetTree;\n    org.apache.xpath.XPathContext xctxt = transformer.getXPathContext();\n    this.mode = transformer.getMode();\n    this.sourceNode = xctxt.getCurrentNode();\n    this.sourceTree = xctxt.getDTM(this.sourceNode);\n  }\n\n  /** An instance of a transformer          */\n  private TransformerImpl transformer;\n\n  /**\n   * Get the transformer.\n   *\n   * @return the transformer instance for this context\n   */\n  public TransformerImpl getTransformer()\n  {\n    return transformer;\n  }\n\n  /** The owning stylesheet for this context          */\n  private Stylesheet stylesheetTree;\n\n  /**\n   * Get the Stylesheet being executed.\n   *\n   * @return the Stylesheet being executed.\n   */\n  public Stylesheet getStylesheet()\n  {\n    return stylesheetTree;\n  }\n\n  /**  The root of the source tree being executed.        */\n  private org.apache.xml.dtm.DTM sourceTree;\n\n  /**\n   * Get the root of the source tree being executed.\n   *\n   * @return the root of the source tree being executed.\n   */\n  public org.w3c.dom.Node getSourceTree()\n  {\n    return sourceTree.getNode(sourceTree.getDocumentRoot(sourceNode));\n  }\n\n  /** the current context node.          */\n  private int sourceNode;\n\n  /**\n   * Get the current context node.\n   *\n   * @return the current context node.\n   */\n  public org.w3c.dom.Node getContextNode()\n  {\n    return sourceTree.getNode(sourceNode);\n  }\n\n  /** the current mode being executed.         */\n  private QName mode;\n\n  /**\n   * Get the current mode being executed.\n   *\n   * @return the current mode being executed.\n   */\n  public QName getMode()\n  {\n    return mode;\n  }\n\n  /**\n   * Output an object to the result tree by doing the right conversions.\n   * This is public for access by extensions.\n   *\n   *\n   * @param stylesheetTree The owning stylesheet\n   * @param obj the Java object to output. If its of an X<something> type\n   *        then that conversion is done first and then sent out.\n   *\n   * @throws TransformerException\n   * @throws java.io.FileNotFoundException\n   * @throws java.io.IOException\n   * @throws java.net.MalformedURLException\n   */\n  public void outputToResultTree(Stylesheet stylesheetTree, Object obj)\n          throws TransformerException, java.net.MalformedURLException,\n                 java.io.FileNotFoundException, java.io.IOException\n  {\n\n    try\n    {\n      ResultTreeHandler rtreeHandler = transformer.getResultTreeHandler();\n      XPathContext xctxt = transformer.getXPathContext();\n      XObject value;\n\n      if (obj instanceof XObject)\n      {\n        value = (XObject) obj;\n      }\n      else if (obj instanceof String)\n      {\n        value = new XString((String) obj);\n      }\n      else if (obj instanceof Boolean)\n      {\n        value = new XBoolean(((Boolean) obj).booleanValue());\n      }\n      else if (obj instanceof Double)\n      {\n        value = new XNumber(((Double) obj).doubleValue());\n      }\n      else if (obj instanceof DocumentFragment)\n      {\n        int handle = xctxt.getDTMHandleFromNode((DocumentFragment)obj);\n        \n        value = new XRTreeFrag(handle, xctxt);\n      }\n      else if (obj instanceof DTM)\n      {\n        DTM dtm = (DTM)obj;\n        DTMIterator iterator = new DescendantIterator();\n        iterator.setRoot(dtm.getDocument(), xctxt);\n        value = new XNodeSet(iterator);\n      }\n      else if (obj instanceof DTMAxisIterator)\n      {\n        DTMAxisIterator iter = (DTMAxisIterator)obj;\n        DTMIterator iterator = new OneStepIterator(iter, -1);\n        value = new XNodeSet(iterator);\n      }\n      else if (obj instanceof DTMIterator)\n      {\n        value = new XNodeSet((DTMIterator) obj);\n      }\n      else if (obj instanceof NodeIterator)\n      {\n        value = new XNodeSet(new org.apache.xpath.NodeSetDTM(((NodeIterator)obj), xctxt));\n      }\n      else if (obj instanceof org.w3c.dom.Node)\n      {\n        value =\n          new XNodeSet(xctxt.getDTMHandleFromNode((org.w3c.dom.Node) obj),\n                       xctxt.getDTMManager());\n      }\n      else\n      {\n        value = new XString(obj.toString());\n      }\n\n      int type = value.getType();\n      String s;\n\n      switch (type)\n      {\n      case XObject.CLASS_BOOLEAN :\n      case XObject.CLASS_NUMBER :\n      case XObject.CLASS_STRING :\n        s = value.str();\n\n        rtreeHandler.characters(s.toCharArray(), 0, s.length());\n        break;\n\n        DTMIterator nl = value.iter();\n        \n        int pos;\n\n        while (DTM.NULL != (pos = nl.nextNode()))\n        {\n          DTM dtm = nl.getDTM(pos);\n          int top = pos;\n\n          while (DTM.NULL != pos)\n          {\n            rtreeHandler.flushPending();\n            ClonerToResultTree.cloneToResultTree(pos, dtm.getNodeType(pos), \n                                                   dtm, rtreeHandler, true);\n\n            int nextNode = dtm.getFirstChild(pos);\n\n            while (DTM.NULL == nextNode)\n            {\n              if (DTM.ELEMENT_NODE == dtm.getNodeType(pos))\n              {\n                rtreeHandler.endElement(\"\", \"\", dtm.getNodeName(pos));\n              }\n\n              if (top == pos)\n                break;\n\n              nextNode = dtm.getNextSibling(pos);\n\n              if (DTM.NULL == nextNode)\n              {\n                pos = dtm.getParent(pos);\n\n                if (top == pos)\n                {\n                  if (DTM.ELEMENT_NODE == dtm.getNodeType(pos))\n                  {\n                    rtreeHandler.endElement(\"\", \"\", dtm.getNodeName(pos));\n                  }\n\n                  nextNode = DTM.NULL;\n\n                  break;\n                }\n              }\n            }\n\n            pos = nextNode;\n          }\n        }\n        break;\n      case XObject.CLASS_RTREEFRAG :\n        rtreeHandler.outputResultTreeFragment(value,\n                                              transformer.getXPathContext());\n        break;\n      }\n    }\n    catch(org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);", "functions": [{"function_name": "getTransformer", "code": "  public TransformerImpl getTransformer()\n  {\n    return transformer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStylesheet", "code": "  public Stylesheet getStylesheet()\n  {\n    return stylesheetTree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSourceTree", "code": "  public org.w3c.dom.Node getSourceTree()\n  {\n    return sourceTree.getNode(sourceTree.getDocumentRoot(sourceNode));", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getContextNode", "code": "  public org.w3c.dom.Node getContextNode()\n  {\n    return sourceTree.getNode(sourceNode);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMode", "code": "  public QName getMode()\n  {\n    return mode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "outputToResultTree", "code": "  public void outputToResultTree(Stylesheet stylesheetTree, Object obj)\n          throws TransformerException, java.net.MalformedURLException,\n                 java.io.FileNotFoundException, java.io.IOException\n  {\n\n    try\n    {\n      ResultTreeHandler rtreeHandler = transformer.getResultTreeHandler();\n      XPathContext xctxt = transformer.getXPathContext();\n      XObject value;\n\n      if (obj instanceof XObject)\n      {\n        value = (XObject) obj;\n      }\n      else if (obj instanceof String)\n      {\n        value = new XString((String) obj);\n      }\n      else if (obj instanceof Boolean)\n      {\n        value = new XBoolean(((Boolean) obj).booleanValue());\n      }\n      else if (obj instanceof Double)\n      {\n        value = new XNumber(((Double) obj).doubleValue());\n      }\n      else if (obj instanceof DocumentFragment)\n      {\n        int handle = xctxt.getDTMHandleFromNode((DocumentFragment)obj);\n        \n        value = new XRTreeFrag(handle, xctxt);\n      }\n      else if (obj instanceof DTM)\n      {\n        DTM dtm = (DTM)obj;\n        DTMIterator iterator = new DescendantIterator();\n        iterator.setRoot(dtm.getDocument(), xctxt);\n        value = new XNodeSet(iterator);\n      }\n      else if (obj instanceof DTMAxisIterator)\n      {\n        DTMAxisIterator iter = (DTMAxisIterator)obj;\n        DTMIterator iterator = new OneStepIterator(iter, -1);\n        value = new XNodeSet(iterator);\n      }\n      else if (obj instanceof DTMIterator)\n      {\n        value = new XNodeSet((DTMIterator) obj);\n      }\n      else if (obj instanceof NodeIterator)\n      {\n        value = new XNodeSet(new org.apache.xpath.NodeSetDTM(((NodeIterator)obj), xctxt));\n      }\n      else if (obj instanceof org.w3c.dom.Node)\n      {\n        value =\n          new XNodeSet(xctxt.getDTMHandleFromNode((org.w3c.dom.Node) obj),\n                       xctxt.getDTMManager());\n      }\n      else\n      {\n        value = new XString(obj.toString());\n      }\n\n      int type = value.getType();\n      String s;\n\n      switch (type)\n      {\n      case XObject.CLASS_BOOLEAN :\n      case XObject.CLASS_NUMBER :\n      case XObject.CLASS_STRING :\n        s = value.str();\n\n        rtreeHandler.characters(s.toCharArray(), 0, s.length());\n        break;\n\n        DTMIterator nl = value.iter();\n        \n        int pos;\n\n        while (DTM.NULL != (pos = nl.nextNode()))\n        {\n          DTM dtm = nl.getDTM(pos);\n          int top = pos;\n\n          while (DTM.NULL != pos)\n          {\n            rtreeHandler.flushPending();\n            ClonerToResultTree.cloneToResultTree(pos, dtm.getNodeType(pos), \n                                                   dtm, rtreeHandler, true);\n\n            int nextNode = dtm.getFirstChild(pos);\n\n            while (DTM.NULL == nextNode)\n            {\n              if (DTM.ELEMENT_NODE == dtm.getNodeType(pos))\n              {\n                rtreeHandler.endElement(\"\", \"\", dtm.getNodeName(pos));\n              }\n\n              if (top == pos)\n                break;\n\n              nextNode = dtm.getNextSibling(pos);\n\n              if (DTM.NULL == nextNode)\n              {\n                pos = dtm.getParent(pos);\n\n                if (top == pos)\n                {\n                  if (DTM.ELEMENT_NODE == dtm.getNodeType(pos))\n                  {\n                    rtreeHandler.endElement(\"\", \"\", dtm.getNodeName(pos));\n                  }\n\n                  nextNode = DTM.NULL;\n\n                  break;\n                }\n              }\n            }\n\n            pos = nextNode;\n          }\n        }\n        break;\n      case XObject.CLASS_RTREEFRAG :\n        rtreeHandler.outputResultTreeFragment(value,\n                                              transformer.getXPathContext());\n        break;\n      }\n    }\n    catch(org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "SWITCH", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "IF", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LOOP", "VAR_DECL", "VAR_DECL", "BREAK_CONTINUE", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "LOOP", "VAR_DECL", "CALL", "IF", "BINARY_OP", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [4, 12], [8, 13], [8, 14], [12, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [7, 22], [13, 23], [13, 24], [10, 25], [11, 26], [5, 27], [18, 28], [5, 29], [5, 30], [23, 31], [23, 32], [8, 33], [27, 34], [18, 35], [18, 36], [18, 37], [28, 38], [20, 39], [29, 40], [29, 41], [29, 42], [30, 43], [31, 44], [31, 45], [13, 46], [35, 47], [38, 48], [44, 49], [44, 50], [23, 51], [46, 52], [35, 53], [35, 54], [37, 55], [49, 56], [49, 57], [44, 58], [31, 59], [51, 60], [35, 61], [53, 62], [35, 63], [35, 64], [56, 65], [56, 66], [49, 67], [49, 68], [44, 69], [59, 70], [53, 71], [53, 72], [53, 73], [54, 74], [63, 75], [63, 76], [65, 77], [65, 78], [56, 79], [56, 80], [49, 81], [49, 82], [69, 83], [58, 84], [71, 85], [53, 86], [72, 87], [72, 88], [73, 89], [77, 90], [77, 91], [56, 92], [81, 93], [82, 94], [67, 95], [71, 96], [86, 97], [89, 98], [90, 99], [65, 100], [92, 101], [79, 102], [96, 103], [71, 104], [73, 105], [77, 106], [100, 107], [102, 108], [96, 109], [96, 110], [104, 111], [105, 112], [105, 113], [105, 114], [90, 115], [90, 116], [106, 117], [96, 118], [110, 119], [115, 120], [116, 121], [117, 122], [119, 123], [120, 124], [121, 125], [121, 126], [110, 127], [127, 128], [127, 129], [127, 130], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 4], [13, 8], [14, 8], [15, 12], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 5], [22, 7], [23, 13], [24, 13], [25, 10], [26, 11], [27, 5], [28, 18], [29, 5], [30, 5], [31, 23], [32, 23], [33, 8], [34, 27], [35, 18], [36, 18], [37, 18], [38, 28], [39, 20], [40, 29], [41, 29], [42, 29], [43, 30], [44, 31], [45, 31], [46, 13], [47, 35], [48, 38], [49, 44], [50, 44], [51, 23], [52, 46], [53, 35], [54, 35], [55, 37], [56, 49], [57, 49], [58, 44], [59, 31], [60, 51], [61, 35], [62, 53], [63, 35], [64, 35], [65, 56], [66, 56], [67, 49], [68, 49], [69, 44], [70, 59], [71, 53], [72, 53], [73, 53], [74, 54], [75, 63], [76, 63], [77, 65], [78, 65], [79, 56], [80, 56], [81, 49], [82, 49], [83, 69], [84, 58], [85, 71], [86, 53], [87, 72], [88, 72], [89, 73], [90, 77], [91, 77], [92, 56], [93, 81], [94, 82], [95, 67], [96, 71], [97, 86], [98, 89], [99, 90], [100, 65], [101, 92], [102, 79], [103, 96], [104, 71], [105, 73], [106, 77], [107, 100], [108, 102], [109, 96], [110, 96], [111, 104], [112, 105], [113, 105], [114, 105], [115, 90], [116, 90], [117, 106], [118, 96], [119, 110], [120, 115], [121, 116], [122, 117], [123, 119], [124, 120], [125, 121], [126, 121], [127, 110], [128, 127], [129, 127], [130, 127], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130]]}, {"function_name": "XSLProcessorContext", "code": "  public XSLProcessorContext(TransformerImpl transformer,\n                             Stylesheet stylesheetTree)\n  {\n\n    this.transformer = transformer;\n    this.stylesheetTree = stylesheetTree;\n    org.apache.xpath.XPathContext xctxt = transformer.getXPathContext();\n    this.mode = transformer.getMode();\n    this.sourceNode = xctxt.getCurrentNode();\n    this.sourceTree = xctxt.getDTM(this.sourceNode);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [6, 11], [1, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 6], [12, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "camel-1.6-3223", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jpa/JpaTemplateTransactionStrategy.java", "language": "java", "name": "org.apache.camel.component.jpa.JpaTemplateTransactionStrategy", "code": "public class JpaTemplateTransactionStrategy extends ServiceSupport implements TransactionStrategy {\n    private final JpaTemplate jpaTemplate;\n    private final TransactionTemplate transactionTemplate;\n\n    public JpaTemplateTransactionStrategy(JpaTemplate jpaTemplate, TransactionTemplate transactionTemplate) {\n        this.jpaTemplate = jpaTemplate;\n        this.transactionTemplate = transactionTemplate;\n    }\n\n    /**\n     * Creates a new implementation from the given JPA factory\n     */\n    public static JpaTemplateTransactionStrategy newInstance(EntityManagerFactory emf) {\n        JpaTemplate template = new JpaTemplate(emf);\n        return newInstance(emf, template);\n    }\n\n    public static JpaTemplateTransactionStrategy newInstance(EntityManagerFactory emf, JpaTemplate template) {\n        JpaTransactionManager transactionManager = new JpaTransactionManager(emf);\n        transactionManager.afterPropertiesSet();\n\n        TransactionTemplate tranasctionTemplate = new TransactionTemplate(transactionManager);\n        tranasctionTemplate.afterPropertiesSet();\n\n        return new JpaTemplateTransactionStrategy(template, tranasctionTemplate);\n    }\n\n    public Object execute(final JpaCallback callback) {\n        return transactionTemplate.execute(new TransactionCallback() {\n            public Object doInTransaction(TransactionStatus status) {\n                return jpaTemplate.execute(new JpaCallback() {\n                    public Object doInJpa(EntityManager entityManager) throws PersistenceException {\n                        return callback.doInJpa(entityManager);\n                    }\n                });\n            }\n        });\n    }\n\n    protected void doStart() throws Exception {\n    }\n\n    protected void doStop() throws Exception {", "functions": [{"function_name": "newInstance", "code": "    public static JpaTemplateTransactionStrategy newInstance(EntityManagerFactory emf) {\n        JpaTemplate template = new JpaTemplate(emf);\n        return newInstance(emf, template);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "newInstance", "code": "    public static JpaTemplateTransactionStrategy newInstance(EntityManagerFactory emf, JpaTemplate template) {\n        JpaTransactionManager transactionManager = new JpaTransactionManager(emf);\n        transactionManager.afterPropertiesSet();\n\n        TransactionTemplate tranasctionTemplate = new TransactionTemplate(transactionManager);\n        tranasctionTemplate.afterPropertiesSet();\n\n        return new JpaTemplateTransactionStrategy(template, tranasctionTemplate);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [3, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "execute", "code": "    public Object execute(final JpaCallback callback) {\n        return transactionTemplate.execute(new TransactionCallback() {\n            public Object doInTransaction(TransactionStatus status) {\n                return jpaTemplate.execute(new JpaCallback() {\n                    public Object doInJpa(EntityManager entityManager) throws PersistenceException {\n                        return callback.doInJpa(entityManager);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "JpaTemplateTransactionStrategy", "code": "    public JpaTemplateTransactionStrategy(JpaTemplate jpaTemplate, TransactionTemplate transactionTemplate) {\n        this.jpaTemplate = jpaTemplate;\n        this.transactionTemplate = transactionTemplate;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.5-392", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/StreamPumper.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.StreamPumper", "code": "public class StreamPumper implements Runnable {\n\n\n    private static final int SLEEP = 5;\n    private static final int SIZE = 128;\n    private InputStream is;\n    private OutputStream os;\n    private boolean finished;\n\n    /**\n     * Create a new stream pumper.\n     *\n     * @param is input stream to read data from\n     * @param os output stream to write data to.\n     */\n    public StreamPumper(InputStream is, OutputStream os) {\n        this.is = is;\n        this.os = os;\n    }\n\n\n    /**\n     * Copies data from the input stream to the output stream.\n     *\n     * Terminates as soon as the input stream is closed or an error occurs.\n     */\n    public void run() {\n        synchronized (this) {\n            finished = false;\n        }\n\n        final byte[] buf = new byte[SIZE];\n\n        int length;\n        try {\n            while ((length = is.read(buf)) > 0) {\n                os.write(buf, 0, length);\n                try {\n                    Thread.sleep(SLEEP);\n                } catch (InterruptedException e) {}\n            }\n        } catch (Exception e) {\n        } finally {\n            synchronized (this) {\n                finished = true;\n                notify();\n            }\n        }\n    }\n\n    /**\n     * Tells whether the end of the stream has been reached.\n     * @return true is the stream has been exhausted.\n     **/\n    public synchronized boolean isFinished() {\n        return finished;\n    }\n\n    /**\n     * This method blocks until the stream pumper finishes.\n     * @see #isFinished()\n     **/\n    public synchronized void waitFor()\n        throws InterruptedException {\n        while (!isFinished()) {\n            wait();", "functions": [{"function_name": "run", "code": "    public void run() {\n        synchronized (this) {\n            finished = false;\n        }\n\n        final byte[] buf = new byte[SIZE];\n\n        int length;\n        try {\n            while ((length = is.read(buf)) > 0) {\n                os.write(buf, 0, length);\n                try {\n                    Thread.sleep(SLEEP);\n                } catch (InterruptedException e) {}\n            }\n        } catch (Exception e) {\n        } finally {\n            synchronized (this) {\n                finished = true;\n                notify();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "CATCH", "LOOP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "TRY", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [0, 7], [1, 8], [1, 9], [5, 10], [6, 11], [6, 12], [7, 13], [9, 14], [10, 15], [5, 16], [12, 17], [10, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 0], [8, 1], [9, 1], [10, 5], [11, 6], [12, 6], [13, 7], [14, 9], [15, 10], [16, 5], [17, 12], [18, 10], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "isFinished", "code": "    public synchronized boolean isFinished() {\n        return finished;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "waitFor", "code": "    public synchronized void waitFor()\n        throws InterruptedException {\n        while (!isFinished()) {\n            wait();", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "StreamPumper", "code": "    public StreamPumper(InputStream is, OutputStream os) {\n        this.is = is;\n        this.os = os;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.6-747", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/Rmic.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Rmic", "code": "public class Rmic extends MatchingTask {\n\n    private static final String FAIL_MSG\n        = \"Rmic failed; see the compiler error output for details.\";\n\n    private File baseDir;\n    private String classname;\n    private File sourceBase;\n    private String stubVersion;\n    private Path compileClasspath;\n    private Path extDirs;\n    private boolean verify = false;\n    private boolean filtering = false;\n\n    private boolean iiop = false;\n    private String  iiopOpts;\n    private boolean idl  = false;\n    private String  idlOpts;\n    private boolean debug  = false;\n    private boolean includeAntRuntime = true;\n    private boolean includeJavaRuntime = false;\n\n    private Vector compileList = new Vector();\n\n    private ClassLoader loader = null;\n\n    private FileUtils fileUtils = FileUtils.newFileUtils();\n\n    private FacadeTaskHelper facade;\n\n    /**\n     * Constructor for Rmic.\n     */\n    public Rmic() {\n        try {\n            Class.forName(\"kaffe.rmi.rmic.RMIC\");\n            facade = new FacadeTaskHelper(\"kaffe\");\n        } catch (ClassNotFoundException cnfe) {\n            facade = new FacadeTaskHelper(\"sun\");\n        }\n    }\n\n    /**\n     * Sets the location to store the compiled files; required\n     * @param base the location to store the compiled files\n     */\n    public void setBase(File base) {\n        this.baseDir = base;\n    }\n\n    /**\n     * Gets the base directory to output generated class.\n     * @return the location of the compiled files\n     */\n\n    public File getBase() {\n        return this.baseDir;\n    }\n\n    /**\n     * Sets the class to run <code>rmic</code> against;\n     * optional\n     * @param classname the name of the class for rmic to create code for\n     */\n    public void setClassname(String classname) {\n        this.classname = classname;\n    }\n\n    /**\n     * Gets the class name to compile.\n     * @return the name of the class to compile\n     */\n    public String getClassname() {\n        return classname;\n    }\n\n    /**\n     * optional directory to save generated source files to.\n     * @param sourceBase the directory to save source files to.\n     */\n    public void setSourceBase(File sourceBase) {\n        this.sourceBase = sourceBase;\n    }\n\n    /**\n     * Gets the source dirs to find the source java files.\n     * @return sourceBase the directory containing the source files.\n     */\n    public File getSourceBase() {\n        return sourceBase;\n    }\n\n    /**\n     * Specify the JDK version for the generated stub code.\n     * Specify &quot;1.1&quot; to pass the &quot;-v1.1&quot; option to rmic.</td>\n     * @param stubVersion the JDK version\n     */\n    public void setStubVersion(String stubVersion) {\n        this.stubVersion = stubVersion;\n    }\n\n    /**\n     * Gets the JDK version for the generated stub code.\n     * @return stubVersion\n     */\n    public String getStubVersion() {\n        return stubVersion;\n    }\n\n    /**\n     * Sets token filtering [optional], default=false\n     * @param filter turn on token filtering\n     */\n    public void setFiltering(boolean filter) {\n        this.filtering = filter;\n    }\n\n    /**\n     * Gets whether token filtering is set\n     * @return filtering\n     */\n    public boolean getFiltering() {\n        return filtering;\n    }\n\n    /**\n     * Generate debug info (passes -g to rmic);\n     * optional, defaults to false\n     * @param debug turn on debug info\n     */\n    public void setDebug(boolean debug) {\n        this.debug = debug;\n    }\n\n    /**\n     * Gets the debug flag.\n     * @return debug\n     */\n    public boolean getDebug() {\n        return debug;\n    }\n\n    /**\n     * Set the classpath to be used for this compilation.\n     * @param classpath the classpath used for this compilation\n     */\n    public void setClasspath(Path classpath) {\n        if (compileClasspath == null) {\n            compileClasspath = classpath;\n        } else {\n            compileClasspath.append(classpath);\n        }\n    }\n\n    /**\n     * Creates a nested classpath element.\n     * @return classpath\n     */\n    public Path createClasspath() {\n        if (compileClasspath == null) {\n            compileClasspath = new Path(getProject());\n        }\n        return compileClasspath.createPath();\n    }\n\n    /**\n     * Adds to the classpath a reference to\n     * a &lt;path&gt; defined elsewhere.\n     * @param pathRef the reference to add to the classpath\n     */\n    public void setClasspathRef(Reference pathRef) {\n        createClasspath().setRefid(pathRef);\n    }\n\n    /**\n     * Gets the classpath.\n     * @return the classpath\n     */\n    public Path getClasspath() {\n        return compileClasspath;\n    }\n\n    /**\n     * Flag to enable verification so that the classes\n     * found by the directory match are\n     * checked to see if they implement java.rmi.Remote.\n     * optional; This defaults to false if not set.\n     * @param verify turn on verification for classes\n     */\n\n    public void setVerify(boolean verify) {\n        this.verify = verify;\n    }\n\n    /**\n     * Get verify flag.\n     * @return verify\n     */\n    public boolean getVerify() {\n        return verify;\n    }\n\n    /**\n     * Indicates that IIOP compatible stubs should\n     * be generated; optional, defaults to false\n     * if not set.\n     * @param iiop generate IIOP compatible stubs\n     */\n    public void setIiop(boolean iiop) {\n        this.iiop = iiop;\n    }\n\n    /**\n     * Gets iiop flags.\n     * @return iiop\n     */\n    public boolean getIiop() {\n        return iiop;\n    }\n\n    /**\n     * Set additional arguments for iiop\n     * @param iiopOpts additional arguments for iiop\n     */\n    public void setIiopopts(String iiopOpts) {\n        this.iiopOpts = iiopOpts;\n    }\n\n    /**\n     * Gets additional arguments for iiop.\n     * @return iiopOpts\n     */\n    public String getIiopopts() {\n        return iiopOpts;\n    }\n\n    /**\n     * Indicates that IDL output should be\n     * generated.  This defaults to false\n     * if not set.\n     * @param idl generate IDL output\n     */\n    public void setIdl(boolean idl) {\n        this.idl = idl;\n    }\n\n    /**\n     * Gets IDL flags.\n     * @return the idl flag\n     */\n    public boolean getIdl() {\n        return idl;\n    }\n\n    /**\n     * pass additional arguments for IDL compile\n     * @param idlOpts additional IDL arguments\n     */\n    public void setIdlopts(String idlOpts) {\n        this.idlOpts = idlOpts;\n    }\n\n    /**\n     * Gets additional arguments for idl compile.\n     * @return the idl options\n     */\n    public String getIdlopts() {\n        return idlOpts;\n    }\n\n    /**\n     * Gets file list to compile.\n     * @return the list of files to compile.\n     */\n    public Vector getFileList() {\n        return compileList;\n    }\n\n    /**\n     * Sets whether or not to include ant's own classpath in this task's\n     * classpath.\n     * Optional; default is <code>true</code>.\n     * @param include if true include ant's classpath\n     */\n    public void setIncludeantruntime(boolean include) {\n        includeAntRuntime = include;\n    }\n\n    /**\n     * Gets whether or not the ant classpath is to be included in the\n     * task's classpath.\n     * @return true if ant's classpath is to be included\n     */\n    public boolean getIncludeantruntime() {\n        return includeAntRuntime;\n    }\n\n    /**\n     * task's classpath.\n     * Enables or disables including the default run-time\n     * libraries from the executing VM; optional,\n     * defaults to false\n     * @param include if true include default run-time libraries\n     */\n    public void setIncludejavaruntime(boolean include) {\n        includeJavaRuntime = include;\n    }\n\n    /**\n     * Gets whether or not the java runtime should be included in this\n     * task's classpath.\n     * @return true if default run-time libraries are included\n     */\n    public boolean getIncludejavaruntime() {\n        return includeJavaRuntime;\n    }\n\n    /**\n     * Sets the extension directories that will be used during the\n     * compilation; optional.\n     * @param extDirs the extension directories to be used\n     */\n    public void setExtdirs(Path extDirs) {\n        if (this.extDirs == null) {\n            this.extDirs = extDirs;\n        } else {\n            this.extDirs.append(extDirs);\n        }\n    }\n\n    /**\n     * Maybe creates a nested extdirs element.\n     * @return path object to be configured with the extension directories\n     */\n    public Path createExtdirs() {\n        if (extDirs == null) {\n            extDirs = new Path(getProject());\n        }\n        return extDirs.createPath();\n    }\n\n    /**\n     * Gets the extension directories that will be used during the\n     * compilation.\n     * @return the extension directories to be used\n     */\n    public Path getExtdirs() {\n        return extDirs;\n    }\n\n    /**\n     * @return the compile list.\n     */\n    public Vector getCompileList() {\n        return compileList;\n    }\n\n    /**\n     * Sets the compiler implementation to use; optional,\n     * defaults to the value of the <code>build.rmic</code> property,\n     * or failing that, default compiler for the current VM\n     * @param compiler the compiler implemention to use\n     * @since Ant 1.5\n     */\n    public void setCompiler(String compiler) {\n        if (compiler.length() > 0) {\n            facade.setImplementation(compiler);\n        }\n    }\n\n    /**\n     * get the name of the current compiler\n     * @return the name of the compiler\n     * @since Ant 1.5\n     */\n    public String getCompiler() {\n        facade.setMagicValue(getProject().getProperty(\"build.rmic\"));\n        return facade.getImplementation();\n    }\n\n    /**\n     * Adds an implementation specific command line argument.\n     * @return an object to be configured with a command line argument\n     * @since Ant 1.5\n     */\n    public ImplementationSpecificArgument createCompilerArg() {\n        ImplementationSpecificArgument arg =\n            new ImplementationSpecificArgument();\n        facade.addImplementationArgument(arg);\n        return arg;\n    }\n\n    /**\n     * Get the additional implementation specific command line arguments.\n     * @return array of command line arguments, guaranteed to be non-null.\n     * @since Ant 1.5\n     */\n    public String[] getCurrentCompilerArgs() {\n        getCompiler();\n        return facade.getArgs();\n    }\n\n    /**\n     * execute by creating an instance of an implementation\n     * class and getting to do the work\n     */\n    public void execute() throws BuildException {\n        if (baseDir == null) {\n            throw new BuildException(\"base attribute must be set!\", getLocation());\n        }\n        if (!baseDir.exists()) {\n            throw new BuildException(\"base does not exist!\", getLocation());\n        }\n\n        if (verify) {\n            log(\"Verify has been turned on.\", Project.MSG_VERBOSE);\n        }\n\n        RmicAdapter adapter = RmicAdapterFactory.getRmic(getCompiler(), this);\n\n        adapter.setRmic(this);\n\n        Path classpath = adapter.getClasspath();\n        loader = getProject().createClassLoader(classpath);\n\n        try {\n            if (classname == null) {\n                DirectoryScanner ds = this.getDirectoryScanner(baseDir);\n                String[] files = ds.getIncludedFiles();\n                scanDir(baseDir, files, adapter.getMapper());\n            } else {\n                scanDir(baseDir,\n                        new String[] {classname.replace('.',\n                                                        File.separatorChar)\n                                          + \".class\"},\n                        adapter.getMapper());\n            }\n\n            int fileCount = compileList.size();\n            if (fileCount > 0) {\n                log(\"RMI Compiling \" + fileCount\n                    + \" class\" + (fileCount > 1 ? \"es\" : \"\") + \" to \" + baseDir,\n                    Project.MSG_INFO);\n\n                if (!adapter.execute()) {\n                    throw new BuildException(FAIL_MSG, getLocation());\n                }\n            }\n\n            /*\n             * Move the generated source file to the base directory.  If\n             * base directory and sourcebase are the same, the generated\n             * sources are already in place.\n             */\n            if (null != sourceBase && !baseDir.equals(sourceBase)\n                && fileCount > 0) {\n                if (idl) {\n                    log(\"Cannot determine sourcefiles in idl mode, \",\n                        Project.MSG_WARN);\n                    log(\"sourcebase attribute will be ignored.\",\n                        Project.MSG_WARN);\n                } else {\n                    for (int j = 0; j < fileCount; j++) {\n                        moveGeneratedFile(baseDir, sourceBase,\n                                          (String) compileList.elementAt(j),\n                                          adapter);\n                    }\n                }\n            }\n        } finally {\n            compileList.removeAllElements();\n        }\n    }\n\n    /**\n     * Move the generated source file(s) to the base directory\n     *\n     * @throws org.apache.tools.ant.BuildException When error\n     * copying/removing files.\n     */\n    private void moveGeneratedFile (File baseDir, File sourceBaseFile,\n                                    String classname,\n                                    RmicAdapter adapter)\n        throws BuildException {\n\n        String classFileName =\n            classname.replace('.', File.separatorChar) + \".class\";\n        String[] generatedFiles =\n            adapter.getMapper().mapFileName(classFileName);\n\n        for (int i = 0; i < generatedFiles.length; i++) {\n            final String generatedFile = generatedFiles[i];\n            if (!generatedFile.endsWith(\".class\")) {\n                continue;\n            }\n\n            final int pos = generatedFile.length() - \".class\".length();\n            String sourceFileName =\n                generatedFile.substring(0, pos) + \".java\";\n\n            File oldFile = new File(baseDir, sourceFileName);\n            if (!oldFile.exists()) {\n                continue;\n            }\n\n            File newFile = new File(sourceBaseFile, sourceFileName);\n            try {\n                if (filtering) {\n                    fileUtils.copyFile(oldFile, newFile,\n                        new FilterSetCollection(getProject()\n                                                .getGlobalFilterSet()));\n                } else {\n                    fileUtils.copyFile(oldFile, newFile);\n                }\n                oldFile.delete();\n            } catch (IOException ioe) {\n                String msg = \"Failed to copy \" + oldFile + \" to \"\n                    + newFile + \" due to \" + ioe.getMessage();\n                throw new BuildException(msg, ioe, getLocation());\n            }\n        }\n    }\n\n    /**\n     * Scans the directory looking for class files to be compiled.\n     * The result is returned in the class variable compileList.\n     * @param baseDir the base direction\n     * @param files   the list of files to scan\n     * @param mapper  the mapper of files to target files\n     */\n    protected void scanDir(File baseDir, String[] files,\n                           FileNameMapper mapper) {\n\n        String[] newFiles = files;\n        if (idl) {\n            log(\"will leave uptodate test to rmic implementation in idl mode.\",\n                Project.MSG_VERBOSE);\n        } else if (iiop\n                   && iiopOpts != null && iiopOpts.indexOf(\"-always\") > -1) {\n            log(\"no uptodate test as -always option has been specified\",\n                Project.MSG_VERBOSE);\n        } else {\n            SourceFileScanner sfs = new SourceFileScanner(this);\n            newFiles = sfs.restrict(files, baseDir, baseDir, mapper);\n        }\n\n        for (int i = 0; i < newFiles.length; i++) {\n            String classname = newFiles[i].replace(File.separatorChar, '.');\n            classname = classname.substring(0, classname.lastIndexOf(\".class\"));\n            compileList.addElement(classname);\n        }\n    }\n\n    /**\n     * Load named class and test whether it can be rmic'ed\n     * @param classname the name of the class to be tested\n     * @return true if the class can be rmic'ed\n     */\n    public boolean isValidRmiRemote(String classname) {\n        try {\n            Class testClass = loader.loadClass(classname);\n            if (testClass.isInterface() && !iiop && !idl) {\n                return false;\n            }\n            return isValidRmiRemote(testClass);\n        } catch (ClassNotFoundException e) {\n            log(\"Unable to verify class \" + classname\n                + \". It could not be found.\", Project.MSG_WARN);\n        } catch (NoClassDefFoundError e) {\n            log(\"Unable to verify class \" + classname\n                + \". It is not defined.\", Project.MSG_WARN);\n        } catch (Throwable t) {\n            log(\"Unable to verify class \" + classname\n                + \". Loading caused Exception: \"\n                + t.getMessage(), Project.MSG_WARN);\n        }\n        return false;\n    }\n\n    /**\n     * Returns the topmost interface that extends Remote for a given\n     * class - if one exists.\n     * @param testClass the class to be tested\n     * @return the topmost interface that extends Remote, or null if there\n     *         is none.\n     */\n    public Class getRemoteInterface(Class testClass) {\n        if (Remote.class.isAssignableFrom(testClass)) {\n            Class [] interfaces = testClass.getInterfaces();\n            if (interfaces != null) {\n                for (int i = 0; i < interfaces.length; i++) {\n                    if (Remote.class.isAssignableFrom(interfaces[i])) {\n                        return interfaces[i];\n                    }\n                }\n            }\n        }\n        return null;\n    }\n\n    /**\n     * Check to see if the class or (super)interfaces implement\n     * java.rmi.Remote.\n     */\n    private boolean isValidRmiRemote (Class testClass) {\n        return getRemoteInterface(testClass) != null;\n    }\n\n    /**\n     * Classloader for the user-specified classpath.\n     * @return the classloader\n     */\n    public ClassLoader getLoader() {\n        return loader;\n    }\n\n    /**\n     * Adds an \"compiler\" attribute to Commandline$Attribute used to\n     * filter command line attributes based on the current\n     * implementation.\n     */\n    public class ImplementationSpecificArgument extends\n        org.apache.tools.ant.util.facade.ImplementationSpecificArgument {\n\n        /**\n         * Only pass the specified argument if the\n         * chosen compiler implementation matches the\n         * value of this attribute. Legal values are\n         * the same as those in the above list of\n         * valid compilers.)\n         * @param impl the compiler to be used.\n         */\n        public void setCompiler(String impl) {\n            super.setImplementation(impl);", "functions": [{"function_name": "setBase", "code": "    public void setBase(File base) {\n        this.baseDir = base;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBase", "code": "    public File getBase() {\n        return this.baseDir;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setClassname", "code": "    public void setClassname(String classname) {\n        this.classname = classname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getClassname", "code": "    public String getClassname() {\n        return classname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSourceBase", "code": "    public void setSourceBase(File sourceBase) {\n        this.sourceBase = sourceBase;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSourceBase", "code": "    public File getSourceBase() {\n        return sourceBase;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStubVersion", "code": "    public void setStubVersion(String stubVersion) {\n        this.stubVersion = stubVersion;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStubVersion", "code": "    public String getStubVersion() {\n        return stubVersion;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFiltering", "code": "    public void setFiltering(boolean filter) {\n        this.filtering = filter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFiltering", "code": "    public boolean getFiltering() {\n        return filtering;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDebug", "code": "    public void setDebug(boolean debug) {\n        this.debug = debug;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDebug", "code": "    public boolean getDebug() {\n        return debug;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        if (compileClasspath == null) {\n            compileClasspath = classpath;\n        } else {\n            compileClasspath.append(classpath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (compileClasspath == null) {\n            compileClasspath = new Path(getProject());\n        }\n        return compileClasspath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference pathRef) {\n        createClasspath().setRefid(pathRef);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getClasspath", "code": "    public Path getClasspath() {\n        return compileClasspath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVerify", "code": "    public void setVerify(boolean verify) {\n        this.verify = verify;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVerify", "code": "    public boolean getVerify() {\n        return verify;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIiop", "code": "    public void setIiop(boolean iiop) {\n        this.iiop = iiop;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIiop", "code": "    public boolean getIiop() {\n        return iiop;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIiopopts", "code": "    public void setIiopopts(String iiopOpts) {\n        this.iiopOpts = iiopOpts;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIiopopts", "code": "    public String getIiopopts() {\n        return iiopOpts;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIdl", "code": "    public void setIdl(boolean idl) {\n        this.idl = idl;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIdl", "code": "    public boolean getIdl() {\n        return idl;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIdlopts", "code": "    public void setIdlopts(String idlOpts) {\n        this.idlOpts = idlOpts;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIdlopts", "code": "    public String getIdlopts() {\n        return idlOpts;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFileList", "code": "    public Vector getFileList() {\n        return compileList;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIncludeantruntime", "code": "    public void setIncludeantruntime(boolean include) {\n        includeAntRuntime = include;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIncludeantruntime", "code": "    public boolean getIncludeantruntime() {\n        return includeAntRuntime;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIncludejavaruntime", "code": "    public void setIncludejavaruntime(boolean include) {\n        includeJavaRuntime = include;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIncludejavaruntime", "code": "    public boolean getIncludejavaruntime() {\n        return includeJavaRuntime;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExtdirs", "code": "    public void setExtdirs(Path extDirs) {\n        if (this.extDirs == null) {\n            this.extDirs = extDirs;\n        } else {\n            this.extDirs.append(extDirs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createExtdirs", "code": "    public Path createExtdirs() {\n        if (extDirs == null) {\n            extDirs = new Path(getProject());\n        }\n        return extDirs.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExtdirs", "code": "    public Path getExtdirs() {\n        return extDirs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCompileList", "code": "    public Vector getCompileList() {\n        return compileList;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCompiler", "code": "    public void setCompiler(String compiler) {\n        if (compiler.length() > 0) {\n            facade.setImplementation(compiler);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getCompiler", "code": "    public String getCompiler() {\n        facade.setMagicValue(getProject().getProperty(\"build.rmic\"));\n        return facade.getImplementation();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 1], [3, 0], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createCompilerArg", "code": "    public ImplementationSpecificArgument createCompilerArg() {\n        ImplementationSpecificArgument arg =\n            new ImplementationSpecificArgument();\n        facade.addImplementationArgument(arg);\n        return arg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCurrentCompilerArgs", "code": "    public String[] getCurrentCompilerArgs() {\n        getCompiler();\n        return facade.getArgs();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (baseDir == null) {\n            throw new BuildException(\"base attribute must be set!\", getLocation());\n        }\n        if (!baseDir.exists()) {\n            throw new BuildException(\"base does not exist!\", getLocation());\n        }\n\n        if (verify) {\n            log(\"Verify has been turned on.\", Project.MSG_VERBOSE);\n        }\n\n        RmicAdapter adapter = RmicAdapterFactory.getRmic(getCompiler(), this);\n\n        adapter.setRmic(this);\n\n        Path classpath = adapter.getClasspath();\n        loader = getProject().createClassLoader(classpath);\n\n        try {\n            if (classname == null) {\n                DirectoryScanner ds = this.getDirectoryScanner(baseDir);\n                String[] files = ds.getIncludedFiles();\n                scanDir(baseDir, files, adapter.getMapper());\n            } else {\n                scanDir(baseDir,\n                        new String[] {classname.replace('.',\n                                                        File.separatorChar)\n                                          + \".class\"},\n                        adapter.getMapper());\n            }\n\n            int fileCount = compileList.size();\n            if (fileCount > 0) {\n                log(\"RMI Compiling \" + fileCount\n                    + \" class\" + (fileCount > 1 ? \"es\" : \"\") + \" to \" + baseDir,\n                    Project.MSG_INFO);\n\n                if (!adapter.execute()) {\n                    throw new BuildException(FAIL_MSG, getLocation());\n                }\n            }\n\n            /*\n             * Move the generated source file to the base directory.  If\n             * base directory and sourcebase are the same, the generated\n             * sources are already in place.\n             */\n            if (null != sourceBase && !baseDir.equals(sourceBase)\n                && fileCount > 0) {\n                if (idl) {\n                    log(\"Cannot determine sourcefiles in idl mode, \",\n                        Project.MSG_WARN);\n                    log(\"sourcebase attribute will be ignored.\",\n                        Project.MSG_WARN);\n                } else {\n                    for (int j = 0; j < fileCount; j++) {\n                        moveGeneratedFile(baseDir, sourceBase,\n                                          (String) compileList.elementAt(j),\n                                          adapter);\n                    }\n                }\n            }\n        } finally {\n            compileList.removeAllElements();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [0, 11], [0, 12], [5, 13], [6, 14], [1, 15], [7, 16], [8, 17], [10, 18], [11, 19], [2, 20], [3, 21], [5, 22], [6, 23], [14, 24], [7, 25], [16, 26], [16, 27], [8, 28], [17, 29], [9, 30], [10, 31], [10, 32], [18, 33], [19, 34], [21, 35], [4, 36], [22, 37], [23, 38], [26, 39], [27, 40], [27, 41], [28, 42], [8, 43], [10, 44], [10, 45], [36, 46], [37, 47], [37, 48], [38, 49], [38, 50], [25, 51], [41, 52], [28, 53], [43, 54], [44, 55], [45, 56], [31, 57], [51, 58], [25, 59], [25, 60], [53, 61], [54, 62], [32, 63], [59, 64], [60, 65], [61, 66], [62, 67], [62, 68], [44, 69], [51, 70], [51, 71], [68, 72], [68, 73], [69, 74], [69, 75], [72, 76], [72, 77], [72, 78], [73, 79], [73, 80], [75, 81], [70, 82], [78, 83], [80, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 0], [12, 0], [13, 5], [14, 6], [15, 1], [16, 7], [17, 8], [18, 10], [19, 11], [20, 2], [21, 3], [22, 5], [23, 6], [24, 14], [25, 7], [26, 16], [27, 16], [28, 8], [29, 17], [30, 9], [31, 10], [32, 10], [33, 18], [34, 19], [35, 21], [36, 4], [37, 22], [38, 23], [39, 26], [40, 27], [41, 27], [42, 28], [43, 8], [44, 10], [45, 10], [46, 36], [47, 37], [48, 37], [49, 38], [50, 38], [51, 25], [52, 41], [53, 28], [54, 43], [55, 44], [56, 45], [57, 31], [58, 51], [59, 25], [60, 25], [61, 53], [62, 54], [63, 32], [64, 59], [65, 60], [66, 61], [67, 62], [68, 62], [69, 44], [70, 51], [71, 51], [72, 68], [73, 68], [74, 69], [75, 69], [76, 72], [77, 72], [78, 72], [79, 73], [80, 73], [81, 75], [82, 70], [83, 78], [84, 80], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "moveGeneratedFile", "code": "    private void moveGeneratedFile (File baseDir, File sourceBaseFile,\n                                    String classname,\n                                    RmicAdapter adapter)\n        throws BuildException {\n\n        String classFileName =\n            classname.replace('.', File.separatorChar) + \".class\";\n        String[] generatedFiles =\n            adapter.getMapper().mapFileName(classFileName);\n\n        for (int i = 0; i < generatedFiles.length; i++) {\n            final String generatedFile = generatedFiles[i];\n            if (!generatedFile.endsWith(\".class\")) {\n                continue;\n            }\n\n            final int pos = generatedFile.length() - \".class\".length();\n            String sourceFileName =\n                generatedFile.substring(0, pos) + \".java\";\n\n            File oldFile = new File(baseDir, sourceFileName);\n            if (!oldFile.exists()) {\n                continue;\n            }\n\n            File newFile = new File(sourceBaseFile, sourceFileName);\n            try {\n                if (filtering) {\n                    fileUtils.copyFile(oldFile, newFile,\n                        new FilterSetCollection(getProject()\n                                                .getGlobalFilterSet()));\n                } else {\n                    fileUtils.copyFile(oldFile, newFile);\n                }\n                oldFile.delete();\n            } catch (IOException ioe) {\n                String msg = \"Failed to copy \" + oldFile + \" to \"\n                    + newFile + \" due to \" + ioe.getMessage();\n                throw new BuildException(msg, ioe, getLocation());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CATCH", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [2, 17], [3, 18], [9, 19], [9, 20], [11, 21], [15, 22], [1, 23], [17, 24], [18, 25], [18, 26], [19, 27], [19, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [14, 34], [15, 35], [22, 36], [26, 37], [27, 38], [33, 39], [33, 40], [34, 41], [34, 42], [38, 43], [28, 44], [20, 45], [20, 46], [40, 47], [41, 48], [44, 49], [44, 50], [46, 51], [50, 52], [50, 53], [51, 54], [53, 55], [54, 56], [55, 57], [55, 58], [58, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 2], [18, 3], [19, 9], [20, 9], [21, 11], [22, 15], [23, 1], [24, 17], [25, 18], [26, 18], [27, 19], [28, 19], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 14], [35, 15], [36, 22], [37, 26], [38, 27], [39, 33], [40, 33], [41, 34], [42, 34], [43, 38], [44, 28], [45, 20], [46, 20], [47, 40], [48, 41], [49, 44], [50, 44], [51, 46], [52, 50], [53, 50], [54, 51], [55, 53], [56, 54], [57, 55], [58, 55], [59, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "scanDir", "code": "    protected void scanDir(File baseDir, String[] files,\n                           FileNameMapper mapper) {\n\n        String[] newFiles = files;\n        if (idl) {\n            log(\"will leave uptodate test to rmic implementation in idl mode.\",\n                Project.MSG_VERBOSE);\n        } else if (iiop\n                   && iiopOpts != null && iiopOpts.indexOf(\"-always\") > -1) {\n            log(\"no uptodate test as -always option has been specified\",\n                Project.MSG_VERBOSE);\n        } else {\n            SourceFileScanner sfs = new SourceFileScanner(this);\n            newFiles = sfs.restrict(files, baseDir, baseDir, mapper);\n        }\n\n        for (int i = 0; i < newFiles.length; i++) {\n            String classname = newFiles[i].replace(File.separatorChar, '.');\n            classname = classname.substring(0, classname.lastIndexOf(\".class\"));\n            compileList.addElement(classname);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [8, 10], [1, 11], [1, 12], [1, 13], [8, 14], [10, 15], [10, 16], [2, 17], [12, 18], [8, 19], [8, 20], [15, 21], [15, 22], [16, 23], [17, 24], [18, 25], [18, 26], [9, 27], [19, 28], [14, 29], [20, 30], [22, 31], [23, 32], [25, 33], [27, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 8], [11, 1], [12, 1], [13, 1], [14, 8], [15, 10], [16, 10], [17, 2], [18, 12], [19, 8], [20, 8], [21, 15], [22, 15], [23, 16], [24, 17], [25, 18], [26, 18], [27, 9], [28, 19], [29, 14], [30, 20], [31, 22], [32, 23], [33, 25], [34, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "isValidRmiRemote", "code": "    public boolean isValidRmiRemote(String classname) {\n        try {\n            Class testClass = loader.loadClass(classname);\n            if (testClass.isInterface() && !iiop && !idl) {\n                return false;\n            }\n            return isValidRmiRemote(testClass);\n        } catch (ClassNotFoundException e) {\n            log(\"Unable to verify class \" + classname\n                + \". It could not be found.\", Project.MSG_WARN);\n        } catch (NoClassDefFoundError e) {\n            log(\"Unable to verify class \" + classname\n                + \". It is not defined.\", Project.MSG_WARN);\n        } catch (Throwable t) {\n            log(\"Unable to verify class \" + classname\n                + \". Loading caused Exception: \"\n                + t.getMessage(), Project.MSG_WARN);\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "CATCH", "CATCH", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [8, 11], [9, 12], [5, 13], [6, 14], [7, 15], [9, 16], [12, 17], [10, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [25, 30], [25, 31], [27, 32], [29, 33], [31, 34], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 8], [12, 9], [13, 5], [14, 6], [15, 7], [16, 9], [17, 12], [18, 10], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 25], [31, 25], [32, 27], [33, 29], [34, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getRemoteInterface", "code": "    public Class getRemoteInterface(Class testClass) {\n        if (Remote.class.isAssignableFrom(testClass)) {\n            Class [] interfaces = testClass.getInterfaces();\n            if (interfaces != null) {\n                for (int i = 0; i < interfaces.length; i++) {\n                    if (Remote.class.isAssignableFrom(interfaces[i])) {\n                        return interfaces[i];\n                    }\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [6, 9], [8, 10], [7, 11], [9, 12], [9, 13], [13, 14], [9, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 6], [10, 8], [11, 7], [12, 9], [13, 9], [14, 13], [15, 9], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isValidRmiRemote", "code": "    private boolean isValidRmiRemote (Class testClass) {\n        return getRemoteInterface(testClass) != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getLoader", "code": "    public ClassLoader getLoader() {\n        return loader;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Rmic", "code": "    public Rmic() {\n        try {\n            Class.forName(\"kaffe.rmi.rmic.RMIC\");\n            facade = new FacadeTaskHelper(\"kaffe\");\n        } catch (ClassNotFoundException cnfe) {\n            facade = new FacadeTaskHelper(\"sun\");", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [5, 8], [6, 9], [8, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 5], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "camel-1.6-2819", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/ExchangePatternProcessor.java", "language": "java", "name": "org.apache.camel.processor.ExchangePatternProcessor", "code": "public class ExchangePatternProcessor implements AsyncProcessor {\n    private ExchangePattern exchangePattern = ExchangePattern.InOnly;\n    \n    public ExchangePatternProcessor() {\n        \n    }\n    \n    public ExchangePatternProcessor(ExchangePattern ep) {\n        setExchangePattern(ep);\n    }\n    \n    public void setExchangePattern(ExchangePattern ep) {\n        exchangePattern = ep;\n    }\n   \n    public void process(Exchange exchange) throws Exception {\n        exchange.setPattern(exchangePattern);        \n    }\n\n    public boolean process(Exchange exchange, AsyncCallback callback) {\n        exchange.setPattern(exchangePattern);\n        callback.done(true);\n        return true;", "functions": [{"function_name": "setExchangePattern", "code": "    public void setExchangePattern(ExchangePattern ep) {\n        exchangePattern = ep;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        exchange.setPattern(exchangePattern);        ", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "process", "code": "    public boolean process(Exchange exchange, AsyncCallback callback) {\n        exchange.setPattern(exchangePattern);\n        callback.done(true);\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ExchangePatternProcessor", "code": "    public ExchangePatternProcessor() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ExchangePatternProcessor", "code": "    public ExchangePatternProcessor(ExchangePattern ep) {\n        setExchangePattern(ep);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.2-1911", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/xmpp/XmppBinding.java", "language": "java", "name": "org.apache.camel.component.xmpp.XmppBinding", "code": "public class XmppBinding {\n    /**\n     * Populates the given XMPP message from the inbound exchange\n     */\n    public void populateXmppMessage(Message message, Exchange exchange) {\n        message.setBody(exchange.getIn().getBody(String.class));\n\n        Set<Map.Entry<String, Object>> entries = exchange.getIn().getHeaders().entrySet();\n        for (Map.Entry<String, Object> entry : entries) {\n            String name = entry.getKey();\n            Object value = entry.getValue();\n            if (shouldOutputHeader(exchange, name, value)) {\n                message.setProperty(name, value);\n            }\n        }\n        String id = exchange.getExchangeId();\n        if (id != null) {\n            message.setProperty(\"exchangeId\", id);\n        }\n    }\n\n    /**\n     * Extracts the body from the XMPP message\n     *\n     * @param exchange\n     * @param message\n     */\n    public Object extractBodyFromXmpp(XmppExchange exchange, Message message) {\n        return message.getBody();\n    }\n\n    /**\n     * Strategy to allow filtering of headers which are put on the XMPP message\n     */\n    protected boolean shouldOutputHeader(Exchange exchange, String headerName, Object headerValue) {\n        return true;", "functions": [{"function_name": "populateXmppMessage", "code": "    public void populateXmppMessage(Message message, Exchange exchange) {\n        message.setBody(exchange.getIn().getBody(String.class));\n\n        Set<Map.Entry<String, Object>> entries = exchange.getIn().getHeaders().entrySet();\n        for (Map.Entry<String, Object> entry : entries) {\n            String name = entry.getKey();\n            Object value = entry.getValue();\n            if (shouldOutputHeader(exchange, name, value)) {\n                message.setProperty(name, value);\n            }\n        }\n        String id = exchange.getExchangeId();\n        if (id != null) {\n            message.setProperty(\"exchangeId\", id);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [7, 9], [2, 10], [3, 11], [3, 12], [3, 13], [4, 14], [8, 15], [1, 16], [11, 17], [14, 18], [14, 19], [15, 20], [16, 21], [12, 22], [13, 23], [11, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 7], [10, 2], [11, 3], [12, 3], [13, 3], [14, 4], [15, 8], [16, 1], [17, 11], [18, 14], [19, 14], [20, 15], [21, 16], [22, 12], [23, 13], [24, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "extractBodyFromXmpp", "code": "    public Object extractBodyFromXmpp(XmppExchange exchange, Message message) {\n        return message.getBody();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "shouldOutputHeader", "code": "    protected boolean shouldOutputHeader(Exchange exchange, String headerName, Object headerValue) {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-4.1-4116", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "gnu/regexp/RETokenEndSub.java", "language": "java", "name": "gnu.regexp.RETokenEndSub", "code": "final class RETokenEndSub extends REToken {\n    RETokenEndSub(int subIndex) {\n\tsuper(subIndex);\n    }\n    \n    boolean match(CharIndexed input, REMatch mymatch) {\n\tmymatch.end[subIndex] = mymatch.index;\n\treturn next(input, mymatch);\n    }\n    \n    void dump(StringBuffer os) {", "functions": [{"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\tmymatch.end[subIndex] = mymatch.index;\n\treturn next(input, mymatch);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "dump", "code": "    void dump(StringBuffer os) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RETokenEndSub", "code": "    RETokenEndSub(int subIndex) {\n\tsuper(subIndex);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-2.0-5616", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/util/IntList.java", "language": "java", "name": "org.apache.poi.util.IntList", "code": "public class IntList\n{\n    private int[]            _array;\n    private int              _limit;\n    private static final int _default_size = 128;\n\n    /**\n     * create an IntList of default size\n     */\n\n    public IntList()\n    {\n        this(_default_size);\n    }\n\n    /**\n     * create a copy of an existing IntList\n     *\n     * @param list the existing IntList\n     */\n\n    public IntList(final IntList list)\n    {\n        this(list._array.length);\n        System.arraycopy(list._array, 0, _array, 0, _array.length);\n        _limit = list._limit;\n    }\n\n    /**\n     * create an IntList with a predefined initial size\n     *\n     * @param initialCapacity the size for the internal array\n     */\n\n    public IntList(final int initialCapacity)\n    {\n        _array = new int[ initialCapacity ];\n        _limit = 0;\n    }\n\n    /**\n     * add the specfied value at the specified index\n     *\n     * @param index the index where the new value is to be added\n     * @param value the new value\n     *\n     * @exception IndexOutOfBoundsException if the index is out of\n     *            range (index < 0 || index > size()).\n     */\n\n    public void add(final int index, final int value)\n    {\n        if (index > _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        else if (index == _limit)\n        {\n            add(value);\n        }\n        else\n        {\n\n            if (_limit == _array.length)\n            {\n                growArray(_limit * 2);\n            }\n            System.arraycopy(_array, index, _array, index + 1,\n                             _limit - index);\n            _array[ index ] = value;\n            _limit++;\n        }\n    }\n\n    /**\n     * Appends the specified element to the end of this list\n     *\n     * @param value element to be appended to this list.\n     *\n     * @return true (as per the general contract of the Collection.add\n     *         method).\n     */\n\n    public boolean add(final int value)\n    {\n        if (_limit == _array.length)\n        {\n            growArray(_limit * 2);\n        }\n        _array[ _limit++ ] = value;\n        return true;\n    }\n\n    /**\n     * Appends all of the elements in the specified collection to the\n     * end of this list, in the order that they are returned by the\n     * specified collection's iterator.  The behavior of this\n     * operation is unspecified if the specified collection is\n     * modified while the operation is in progress.  (Note that this\n     * will occur if the specified collection is this list, and it's\n     * nonempty.)\n     *\n     * @param c collection whose elements are to be added to this\n     *          list.\n     *\n     * @return true if this list changed as a result of the call.\n     */\n\n    public boolean addAll(final IntList c)\n    {\n        if (c._limit != 0)\n        {\n            if ((_limit + c._limit) > _array.length)\n            {\n                growArray(_limit + c._limit);\n            }\n            System.arraycopy(c._array, 0, _array, _limit, c._limit);\n            _limit += c._limit;\n        }\n        return true;\n    }\n\n    /**\n     * Inserts all of the elements in the specified collection into\n     * this list at the specified position.  Shifts the element\n     * currently at that position (if any) and any subsequent elements\n     * to the right (increases their indices).  The new elements will\n     * appear in this list in the order that they are returned by the\n     * specified collection's iterator.  The behavior of this\n     * operation is unspecified if the specified collection is\n     * modified while the operation is in progress.  (Note that this\n     * will occur if the specified collection is this list, and it's\n     * nonempty.)\n     *\n     * @param index index at which to insert first element from the\n     *              specified collection.\n     * @param c elements to be inserted into this list.\n     *\n     * @return true if this list changed as a result of the call.\n     *\n     * @exception IndexOutOfBoundsException if the index is out of\n     *            range (index < 0 || index > size())\n     */\n\n    public boolean addAll(final int index, final IntList c)\n    {\n        if (index > _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        if (c._limit != 0)\n        {\n            if ((_limit + c._limit) > _array.length)\n            {\n                growArray(_limit + c._limit);\n            }\n\n            System.arraycopy(_array, index, _array, index + c._limit,\n                             _limit - index);\n\n            System.arraycopy(c._array, 0, _array, index, c._limit);\n            _limit += c._limit;\n        }\n        return true;\n    }\n\n    /**\n     * Removes all of the elements from this list.  This list will be\n     * empty after this call returns (unless it throws an exception).\n     */\n\n    public void clear()\n    {\n        _limit = 0;\n    }\n\n    /**\n     * Returns true if this list contains the specified element.  More\n     * formally, returns true if and only if this list contains at\n     * least one element e such that o == e\n     *\n     * @param o element whose presence in this list is to be tested.\n     *\n     * @return true if this list contains the specified element.\n     */\n\n    public boolean contains(final int o)\n    {\n        boolean rval = false;\n\n        for (int j = 0; !rval && (j < _limit); j++)\n        {\n            if (_array[ j ] == o)\n            {\n                rval = true;\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Returns true if this list contains all of the elements of the\n     * specified collection.\n     *\n     * @param c collection to be checked for containment in this list.\n     *\n     * @return true if this list contains all of the elements of the\n     *         specified collection.\n     */\n\n    public boolean containsAll(final IntList c)\n    {\n        boolean rval = true;\n\n        if (this != c)\n        {\n            for (int j = 0; rval && (j < c._limit); j++)\n            {\n                if (!contains(c._array[ j ]))\n                {\n                    rval = false;\n                }\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Compares the specified object with this list for equality.\n     * Returns true if and only if the specified object is also a\n     * list, both lists have the same size, and all corresponding\n     * pairs of elements in the two lists are equal.  (Two elements e1\n     * and e2 are equal if e1 == e2.)  In other words, two lists are\n     * defined to be equal if they contain the same elements in the\n     * same order.  This definition ensures that the equals method\n     * works properly across different implementations of the List\n     * interface.\n     *\n     * @param o the object to be compared for equality with this list.\n     *\n     * @return true if the specified object is equal to this list.\n     */\n\n    public boolean equals(final Object o)\n    {\n        boolean rval = this == o;\n\n        if (!rval && (o != null) && (o.getClass() == this.getClass()))\n        {\n            IntList other = ( IntList ) o;\n\n            if (other._limit == _limit)\n            {\n\n                rval = true;\n                for (int j = 0; rval && (j < _limit); j++)\n                {\n                    rval = _array[ j ] == other._array[ j ];\n                }\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Returns the element at the specified position in this list.\n     *\n     * @param index index of element to return.\n     *\n     * @return the element at the specified position in this list.\n     *\n     * @exception IndexOutOfBoundsException if the index is out of\n     *            range (index < 0 || index >= size()).\n     */\n\n    public int get(final int index)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        return _array[ index ];\n    }\n\n    /**\n     * Returns the hash code value for this list.  The hash code of a\n     * list is defined to be the result of the following calculation:\n     *\n     * <code>\n     * hashCode = 1;\n     * Iterator i = list.iterator();\n     * while (i.hasNext()) {\n     *      Object obj = i.next();\n     *      hashCode = 31*hashCode + (obj==null ? 0 : obj.hashCode());\n     * }\n     * </code>\n     *\n     * This ensures that list1.equals(list2) implies that\n     * list1.hashCode()==list2.hashCode() for any two lists, list1 and\n     * list2, as required by the general contract of Object.hashCode.\n     *\n     * @return the hash code value for this list.\n     */\n\n    public int hashCode()\n    {\n        int hash = 0;\n\n        for (int j = 0; j < _limit; j++)\n        {\n            hash = (31 * hash) + _array[ j ];\n        }\n        return hash;\n    }\n\n    /**\n     * Returns the index in this list of the first occurrence of the\n     * specified element, or -1 if this list does not contain this\n     * element.  More formally, returns the lowest index i such that\n     * (o == get(i)), or -1 if there is no such index.\n     *\n     * @param o element to search for.\n     *\n     * @return the index in this list of the first occurrence of the\n     *         specified element, or -1 if this list does not contain\n     *         this element.\n     */\n\n    public int indexOf(final int o)\n    {\n        int rval = 0;\n\n        for (; rval < _limit; rval++)\n        {\n            if (o == _array[ rval ])\n            {\n                break;\n            }\n        }\n        if (rval == _limit)\n        {\n        }\n        return rval;\n    }\n\n    /**\n     * Returns true if this list contains no elements.\n     *\n     * @return true if this list contains no elements.\n     */\n\n    public boolean isEmpty()\n    {\n        return _limit == 0;\n    }\n\n    /**\n     * Returns the index in this list of the last occurrence of the\n     * specified element, or -1 if this list does not contain this\n     * element.  More formally, returns the highest index i such that\n     * (o == get(i)), or -1 if there is no such index.\n     *\n     * @param o element to search for.\n     *\n     * @return the index in this list of the last occurrence of the\n     *         specified element, or -1 if this list does not contain\n     *         this element.\n     */\n\n    public int lastIndexOf(final int o)\n    {\n        int rval = _limit - 1;\n\n        for (; rval >= 0; rval--)\n        {\n            if (o == _array[ rval ])\n            {\n                break;\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Removes the element at the specified position in this list.\n     * Shifts any subsequent elements to the left (subtracts one from\n     * their indices).  Returns the element that was removed from the\n     * list.\n     *\n     * @param index the index of the element to removed.\n     *\n     * @return the element previously at the specified position.\n     *\n     * @exception IndexOutOfBoundsException if the index is out of\n     *            range (index < 0 || index >= size()).\n     */\n\n    public int remove(final int index)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        int rval = _array[ index ];\n\n        System.arraycopy(_array, index + 1, _array, index, _limit - index);\n        _limit--;\n        return rval;\n    }\n\n    /**\n     * Removes the first occurrence in this list of the specified\n     * element (optional operation).  If this list does not contain\n     * the element, it is unchanged.  More formally, removes the\n     * element with the lowest index i such that (o.equals(get(i)))\n     * (if such an element exists).\n     *\n     * @param o element to be removed from this list, if present.\n     *\n     * @return true if this list contained the specified element.\n     */\n\n    public boolean removeValue(final int o)\n    {\n        boolean rval = false;\n\n        for (int j = 0; !rval && (j < _limit); j++)\n        {\n            if (o == _array[ j ])\n            {\n                System.arraycopy(_array, j + 1, _array, j, _limit - j);\n                _limit--;\n                rval = true;\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Removes from this list all the elements that are contained in\n     * the specified collection\n     *\n     * @param c collection that defines which elements will be removed\n     *          from this list.\n     *\n     * @return true if this list changed as a result of the call.\n     */\n\n    public boolean removeAll(final IntList c)\n    {\n        boolean rval = false;\n\n        for (int j = 0; j < c._limit; j++)\n        {\n            if (removeValue(c._array[ j ]))\n            {\n                rval = true;\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Retains only the elements in this list that are contained in\n     * the specified collection.  In other words, removes from this\n     * list all the elements that are not contained in the specified\n     * collection.\n     *\n     * @param c collection that defines which elements this set will\n     *          retain.\n     *\n     * @return true if this list changed as a result of the call.\n     */\n\n    public boolean retainAll(final IntList c)\n    {\n        boolean rval = false;\n\n        for (int j = 0; j < _limit; )\n        {\n            if (!c.contains(_array[ j ]))\n            {\n                remove(j);\n                rval = true;\n            }\n            else\n            {\n                j++;\n            }\n        }\n        return rval;\n    }\n\n    /**\n     * Replaces the element at the specified position in this list\n     * with the specified element\n     *\n     * @param index index of element to replace.\n     * @param element element to be stored at the specified position.\n     *\n     * @return the element previously at the specified position.\n     *\n     * @exception IndexOutOfBoundsException if the index is out of\n     *            range (index < 0 || index >= size()).\n     */\n\n    public int set(final int index, final int element)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        int rval = _array[ index ];\n\n        _array[ index ] = element;\n        return rval;\n    }\n\n    /**\n     * Returns the number of elements in this list. If this list\n     * contains more than Integer.MAX_VALUE elements, returns\n     * Integer.MAX_VALUE.\n     *\n     * @return the number of elements in this IntList\n     */\n\n    public int size()\n    {\n        return _limit;\n    }\n\n    /**\n     * Returns an array containing all of the elements in this list in\n     * proper sequence.  Obeys the general contract of the\n     * Collection.toArray method.\n     *\n     * @return an array containing all of the elements in this list in\n     *         proper sequence.\n     */\n\n    public int [] toArray()\n    {\n        int[] rval = new int[ _limit ];\n\n        System.arraycopy(_array, 0, rval, 0, _limit);\n        return rval;\n    }\n\n    /**\n     * Returns an array containing all of the elements in this list in\n     * proper sequence.  Obeys the general contract of the\n     * Collection.toArray(Object[]) method.\n     *\n     * @param a the array into which the elements of this list are to\n     *          be stored, if it is big enough; otherwise, a new array\n     *          is allocated for this purpose.\n     *\n     * @return an array containing the elements of this list.\n     */\n\n    public int [] toArray(final int [] a)\n    {\n        int[] rval;\n\n        if (a.length == _limit)\n        {\n            System.arraycopy(_array, 0, a, 0, _limit);\n            rval = a;\n        }\n        else\n        {\n            rval = toArray();\n        }\n        return rval;\n    }\n\n    private void growArray(final int new_size)\n    {\n        int   size      = (new_size == _array.length) ? new_size + 1\n                                                      : new_size;\n        int[] new_array = new int[ size ];\n\n        System.arraycopy(_array, 0, new_array, 0, _limit);\n        _array = new_array;", "functions": [{"function_name": "add", "code": "    public void add(final int index, final int value)\n    {\n        if (index > _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        else if (index == _limit)\n        {\n            add(value);\n        }\n        else\n        {\n\n            if (_limit == _array.length)\n            {\n                growArray(_limit * 2);\n            }\n            System.arraycopy(_array, index, _array, index + 1,\n                             _limit - index);\n            _array[ index ] = value;\n            _limit++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "IF", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [4, 8], [7, 9], [4, 10], [4, 11], [8, 12], [4, 13], [11, 14], [11, 15], [15, 16], [8, 17], [17, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 4], [9, 7], [10, 4], [11, 4], [12, 8], [13, 4], [14, 11], [15, 11], [16, 15], [17, 8], [18, 17], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "add", "code": "    public boolean add(final int value)\n    {\n        if (_limit == _array.length)\n        {\n            growArray(_limit * 2);\n        }\n        _array[ _limit++ ] = value;\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [2, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 2], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "addAll", "code": "    public boolean addAll(final IntList c)\n    {\n        if (c._limit != 0)\n        {\n            if ((_limit + c._limit) > _array.length)\n            {\n                growArray(_limit + c._limit);\n            }\n            System.arraycopy(c._array, 0, _array, _limit, c._limit);\n            _limit += c._limit;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [2, 8], [2, 9], [6, 10], [9, 11], [10, 12], [6, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 2], [9, 2], [10, 6], [11, 9], [12, 10], [13, 6], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addAll", "code": "    public boolean addAll(final int index, final IntList c)\n    {\n        if (index > _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        if (c._limit != 0)\n        {\n            if ((_limit + c._limit) > _array.length)\n            {\n                growArray(_limit + c._limit);\n            }\n\n            System.arraycopy(_array, index, _array, index + c._limit,\n                             _limit - index);\n\n            System.arraycopy(c._array, 0, _array, index, c._limit);\n            _limit += c._limit;\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [7, 10], [3, 11], [2, 12], [2, 13], [2, 14], [9, 15], [11, 16], [13, 17], [14, 18], [14, 19], [15, 20], [9, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 7], [11, 3], [12, 2], [13, 2], [14, 2], [15, 9], [16, 11], [17, 13], [18, 14], [19, 14], [20, 15], [21, 9], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "clear", "code": "    public void clear()\n    {\n        _limit = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "contains", "code": "    public boolean contains(final int o)\n    {\n        boolean rval = false;\n\n        for (int j = 0; !rval && (j < _limit); j++)\n        {\n            if (_array[ j ] == o)\n            {\n                rval = true;\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [2, 10], [6, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 2], [11, 6], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "containsAll", "code": "    public boolean containsAll(final IntList c)\n    {\n        boolean rval = true;\n\n        if (this != c)\n        {\n            for (int j = 0; rval && (j < c._limit); j++)\n            {\n                if (!contains(c._array[ j ]))\n                {\n                    rval = false;\n                }\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [6, 9], [8, 10], [9, 11], [6, 12], [9, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 6], [10, 8], [11, 9], [12, 6], [13, 9], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "equals", "code": "    public boolean equals(final Object o)\n    {\n        boolean rval = this == o;\n\n        if (!rval && (o != null) && (o.getClass() == this.getClass()))\n        {\n            IntList other = ( IntList ) o;\n\n            if (other._limit == _limit)\n            {\n\n                rval = true;\n                for (int j = 0; rval && (j < _limit); j++)\n                {\n                    rval = _array[ j ] == other._array[ j ];\n                }\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LOOP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [3, 10], [6, 11], [8, 12], [9, 13], [6, 14], [8, 15], [13, 16], [14, 17], [6, 18], [17, 19], [18, 20], [14, 21], [14, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 3], [11, 6], [12, 8], [13, 9], [14, 6], [15, 8], [16, 13], [17, 14], [18, 6], [19, 17], [20, 18], [21, 14], [22, 14], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "get", "code": "    public int get(final int index)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        return _array[ index ];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "hashCode", "code": "    public int hashCode()\n    {\n        int hash = 0;\n\n        for (int j = 0; j < _limit; j++)\n        {\n            hash = (31 * hash) + _array[ j ];\n        }\n        return hash;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [2, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 2], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "indexOf", "code": "    public int indexOf(final int o)\n    {\n        int rval = 0;\n\n        for (; rval < _limit; rval++)\n        {\n            if (o == _array[ rval ])\n            {\n                break;\n            }\n        }\n        if (rval == _limit)\n        {\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [3, 8], [4, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 3], [9, 4], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "isEmpty", "code": "    public boolean isEmpty()\n    {\n        return _limit == 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "lastIndexOf", "code": "    public int lastIndexOf(final int o)\n    {\n        int rval = _limit - 1;\n\n        for (; rval >= 0; rval--)\n        {\n            if (o == _array[ rval ])\n            {\n                break;\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [8, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 8], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "remove", "code": "    public int remove(final int index)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        int rval = _array[ index ];\n\n        System.arraycopy(_array, index + 1, _array, index, _limit - index);\n        _limit--;\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [5, 8], [3, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 5], [9, 3], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "removeValue", "code": "    public boolean removeValue(final int o)\n    {\n        boolean rval = false;\n\n        for (int j = 0; !rval && (j < _limit); j++)\n        {\n            if (o == _array[ j ])\n            {\n                System.arraycopy(_array, j + 1, _array, j, _limit - j);\n                _limit--;\n                rval = true;\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [2, 10], [6, 11], [6, 12], [11, 13], [12, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 2], [11, 6], [12, 6], [13, 11], [14, 12], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "removeAll", "code": "    public boolean removeAll(final IntList c)\n    {\n        boolean rval = false;\n\n        for (int j = 0; j < c._limit; j++)\n        {\n            if (removeValue(c._array[ j ]))\n            {\n                rval = true;\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [2, 9], [6, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 2], [10, 6], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "retainAll", "code": "    public boolean retainAll(final IntList c)\n    {\n        boolean rval = false;\n\n        for (int j = 0; j < _limit; )\n        {\n            if (!c.contains(_array[ j ]))\n            {\n                remove(j);\n                rval = true;\n            }\n            else\n            {\n                j++;\n            }\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [2, 9], [6, 10], [6, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 2], [10, 6], [11, 6], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "set", "code": "    public int set(final int index, final int element)\n    {\n        if (index >= _limit)\n        {\n            throw new IndexOutOfBoundsException();\n        }\n        int rval = _array[ index ];\n\n        _array[ index ] = element;\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [3, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 3], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "size", "code": "    public int size()\n    {\n        return _limit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toArray", "code": "    public int [] toArray()\n    {\n        int[] rval = new int[ _limit ];\n\n        System.arraycopy(_array, 0, rval, 0, _limit);\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toArray", "code": "    public int [] toArray(final int [] a)\n    {\n        int[] rval;\n\n        if (a.length == _limit)\n        {\n            System.arraycopy(_array, 0, a, 0, _limit);\n            rval = a;\n        }\n        else\n        {\n            rval = toArray();\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [6, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 6], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "growArray", "code": "    private void growArray(final int new_size)\n    {\n        int   size      = (new_size == _array.length) ? new_size + 1\n                                                      : new_size;\n        int[] new_array = new int[ size ];\n\n        System.arraycopy(_array, 0, new_array, 0, _limit);\n        _array = new_array;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [5, 7], [2, 8], [8, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 5], [8, 2], [9, 8], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "IntList", "code": "    public IntList()\n    {\n        this(_default_size);", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IntList", "code": "    public IntList(final IntList list)\n    {\n        this(list._array.length);\n        System.arraycopy(list._array, 0, _array, 0, _array.length);\n        _limit = list._limit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "IntList", "code": "    public IntList(final int initialCapacity)\n    {\n        _array = new int[ initialCapacity ];\n        _limit = 0;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.2-1909", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/language/GroovyExpression.java", "language": "java", "name": "org.apache.camel.model.language.GroovyExpression", "code": "@XmlRootElement(name = \"groovy\")\npublic class GroovyExpression extends ExpressionType {\n    public GroovyExpression() {\n    }\n\n    public GroovyExpression(String expression) {\n        super(expression);\n    }\n\n    public String getLanguage() {\n        return \"groovy\";", "functions": [{"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return \"groovy\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "GroovyExpression", "code": "    public GroovyExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "GroovyExpression", "code": "    public GroovyExpression(String expression) {\n        super(expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "log4j-1.1-4960", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/RollingFileAppender.java", "language": "java", "name": "org.apache.log4j.RollingFileAppender", "code": "public class RollingFileAppender extends FileAppender {\n  /**\n     A string constant used in naming the option for setting the\n     maximum size of the log file. Current value of this string constant is\n     <b>MaxFileSize</b>.\n     \n     @deprecated Options are now handled using the JavaBeans paradigm.\n     This constant is not longer needed and will be removed in the\n     <em>near</em> term.\n\n   */\n  static final public String MAX_FILE_SIZE_OPTION = \"MaxFileSize\";\n  \n   /**\n     A string constant used in naming the option for setting the the\n     number of backup files to retain. Current value of this string\n     constant is <b>MaxBackupIndex</b>. \n     \n     @deprecated Options are now handled using the JavaBeans paradigm.\n     This constant is not longer needed and will be removed in the\n     <em>near</em> term.\n */\n  static final public String MAX_BACKUP_INDEX_OPTION = \"MaxBackupIndex\";  \n\n  /**\n     The default maximum file size is 10MB. \n  */\n  protected long maxFileSize = 10*1024*1024; \n\n  /**\n     There is one backup file by default.\n   */\n  protected int  maxBackupIndex  = 1;    \n\n  /**\n     The default constructor simply calls its {@link\n     FileAppender#FileAppender parents constructor}.  */\n  public\n  RollingFileAppender() {\n    super();\n  }\n  \n  /**\n    Instantiate a RollingFileAppender and open the file designated by\n    <code>filename</code>. The opened filename will become the ouput\n    destination for this appender.\n\n    <p>If the <code>append</code> parameter is true, the file will be\n    appended to. Otherwise, the file desginated by\n    <code>filename</code> will be truncated before being opened.\n  */\n  public\n  RollingFileAppender(Layout layout, String filename, boolean append)\n                                      throws IOException {\n    super(layout, filename, append);\n  }\n\n  /**\n     Instantiate a FileAppender and open the file designated by\n    <code>filename</code>. The opened filename will become the output\n    destination for this appender.\n\n    <p>The file will be appended to.  */\n  public\n  RollingFileAppender(Layout layout, String filename) throws IOException {\n    super(layout, filename);\n  }\n\n  /**\n     Returns the value of the <b>MaxBackupIndex</b> option.\n   */\n  public\n  int getMaxBackupIndex() {\n    return maxBackupIndex;\n  }\n\n /**\n    Get the maximum size that the output file is allowed to reach\n    before being rolled over to backup files.\n\n    @since 1.1\n */\n  public\n  long getMaximumFileSize() {\n    return maxFileSize;\n  }\n  \n  /**\n     Retuns the option names for this component, namely {@link\n     #MAX_FILE_SIZE_OPTION} and {@link #MAX_BACKUP_INDEX_OPTION} in\n     addition to the options of {@link FileAppender#getOptionStrings}\n\n     \n     @deprecated We now use JavaBeans introspection to configure\n     components. Options strings are no longer needed.\n  */\n  public\n  String[] getOptionStrings() {\n\n    return OptionConverter.concatanateArrays(super.getOptionStrings(),\n\t\t new String[] {MAX_FILE_SIZE_OPTION, MAX_BACKUP_INDEX_OPTION});\n  }\n\n  /**\n     Implements the usual roll over behaviour.\n\n     <p>If <code>MaxBackupIndex</code> is positive, then files\n     {<code>File.1</code>, ..., <code>File.MaxBackupIndex -1</code>}\n     are renamed to {<code>File.2</code>, ..., \n     <code>File.MaxBackupIndex</code>}. Moreover, <code>File</code> is\n     renamed <code>File.1</code> and closed. A new <code>File</code> is\n     created to receive further log output.\n\n     <p>If <code>MaxBackupIndex</code> is equal to zero, then the\n     <code>File</code> is truncated with no backup files created.\n     \n   */\n  public // synchronization not necessary since doAppend is alreasy synched\n  void rollOver() {\n    File target;    \n    File file;\n\n    LogLog.debug(\"rolling over count=\" + ((CountingQuietWriter) qw).getCount());\n    LogLog.debug(\"maxBackupIndex=\"+maxBackupIndex);\n    \n    // If maxBackups <= 0, then there is no file renaming to be done.\n    if(maxBackupIndex > 0) {\n      // Delete the oldest file, to keep Windows happy.\n      file = new File(fileName + '.' + maxBackupIndex);    \n      if (file.exists())\n       file.delete();\n      \n      // Map {(maxBackupIndex - 1), ..., 2, 1} to {maxBackupIndex, ..., 3, 2}\n      for (int i = maxBackupIndex - 1; i >= 1; i--) {\n\tfile = new File(fileName + \".\" + i);\n\tif (file.exists()) {\n\t  target = new File(fileName + '.' + (i + 1));\n\t  LogLog.debug(\"Renaming file \" + file + \" to \" + target);\n\t  file.renameTo(target);\n\t}\n      }\n\n      // Rename fileName to fileName.1\n      target = new File(fileName + \".\" + 1);\n\n      this.closeFile(); // keep windows happy. \n\n      file = new File(fileName);\n      LogLog.debug(\"Renaming file \" + file + \" to \" + target);\n      file.renameTo(target);\n    }\n    \n    try {\n      // This will also close the file. This is OK since multiple\n      // close operations are safe.\n      this.setFile(fileName, false);\n    }\n    catch(IOException e) {\n      LogLog.error(\"setFile(\"+fileName+\", false) call failed.\", e);\n    }\n  }\n\n  public\n  synchronized\n  void setFile(String fileName, boolean append) throws IOException {\n    super.setFile(fileName, append);\n    if(append) {\n      File f = new File(fileName);\n      ((CountingQuietWriter) qw).setCount(f.length());\n    }\n  }\n\n  /**\n     \n     @deprecated Use the setter method for the option directly instead\n     of the generic <code>setOption</code> method. \n\n  */\n  public\n  void setOption(String key, String value) {\n    super.setOption(key, value);    \n    if(key.equalsIgnoreCase(MAX_FILE_SIZE_OPTION)) {\n      maxFileSize = OptionConverter.toFileSize(value, maxFileSize + 1);\n    }\n    else if(key.equalsIgnoreCase(MAX_BACKUP_INDEX_OPTION)) {\n      maxBackupIndex = OptionConverter.toInt(value, maxBackupIndex);\n    }\n  }\n  \n  /**\n     Set the maximum number of backup files to keep around.\n     \n     <p>The <b>MaxBackupIndex</b> option determines how many backup\n     files are kept before the oldest is erased. This option takes\n     a positive integer value. If set to zero, then there will be no\n     backup files and the log file will be truncated when it reaches\n     <code>MaxFileSize</code>.\n   */\n  public\n  void setMaxBackupIndex(int maxBackups) {\n    this.maxBackupIndex = maxBackups;    \n  }\n  \n  /**\n     Set the maximum size that the output file is allowed to reach\n     before being rolled over to backup files.\n\n     @deprecated Use {@link #setMaximumFileSize} instead.\n   */\n  public\n  void setMaxFileSize(long maxFileSize) {\n    this.maxFileSize = maxFileSize;\n  }\n\n  /**\n     Set the maximum size that the output file is allowed to reach\n     before being rolled over to backup files.\n\n     <p>This method is equivalent to {@link #setMaxFileSize} except\n     that it is required for differentiating the setter taking a\n     <code>long</code> argument from the setter taking a\n     <code>String</code> argument by the JavaBeans {@link\n     java.beans.Introspector Introspector}.\n\n     @see #setMaxFileSize(String)\n */\n  public\n  void setMaximumFileSize(long maxFileSize) {\n    this.maxFileSize = maxFileSize;\n  }\n\n\n  /**\n     Set the maximum size that the output file is allowed to reach\n     before being rolled over to backup files.\n     \n     <p>In configuration files, the <b>MaxFileSize</b> option takes an\n     long integer in the range 0 - 2^63. You can specify the value\n     with the suffixes \"KB\", \"MB\" or \"GB\" so that the integer is\n     interpreted being expressed respectively in kilobytes, megabytes\n     or gigabytes. For example, the value \"10KB\" will be interpreted\n     as 10240.\n   */\n  public\n  void setMaxFileSize(String value) {\n    maxFileSize = OptionConverter.toFileSize(value, maxFileSize + 1);\n  }\n\n  protected\n  void setQWForFiles(Writer writer) {\n     this.qw = new CountingQuietWriter(writer, errorHandler);\n  }\n\n  /**\n     This method differentiates RollingFileAppender from its super\n     class.  \n\n     @since 0.9.0\n  */\n  protected\n  void subAppend(LoggingEvent event) {\n    super.subAppend(event);\n    if((fileName != null) &&\n                     ((CountingQuietWriter) qw).getCount() >= maxFileSize) \n      this.rollOver();", "functions": [{"function_name": "getMaxBackupIndex", "code": "  int getMaxBackupIndex() {\n    return maxBackupIndex;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMaximumFileSize", "code": "  long getMaximumFileSize() {\n    return maxFileSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOptionStrings", "code": "  String[] getOptionStrings() {\n\n    return OptionConverter.concatanateArrays(super.getOptionStrings(),\n\t\t new String[] {MAX_FILE_SIZE_OPTION, MAX_BACKUP_INDEX_OPTION});", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "rollOver", "code": "  void rollOver() {\n    File target;    \n    File file;\n\n    LogLog.debug(\"rolling over count=\" + ((CountingQuietWriter) qw).getCount());\n    LogLog.debug(\"maxBackupIndex=\"+maxBackupIndex);\n    \n    // If maxBackups <= 0, then there is no file renaming to be done.\n    if(maxBackupIndex > 0) {\n      // Delete the oldest file, to keep Windows happy.\n      file = new File(fileName + '.' + maxBackupIndex);    \n      if (file.exists())\n       file.delete();\n      \n      // Map {(maxBackupIndex - 1), ..., 2, 1} to {maxBackupIndex, ..., 3, 2}\n      for (int i = maxBackupIndex - 1; i >= 1; i--) {\n\tfile = new File(fileName + \".\" + i);\n\tif (file.exists()) {\n\t  target = new File(fileName + '.' + (i + 1));\n\t  LogLog.debug(\"Renaming file \" + file + \" to \" + target);\n\t  file.renameTo(target);\n\t}\n      }\n\n      // Rename fileName to fileName.1\n      target = new File(fileName + \".\" + 1);\n\n      this.closeFile(); // keep windows happy. \n\n      file = new File(fileName);\n      LogLog.debug(\"Renaming file \" + file + \" to \" + target);\n      file.renameTo(target);\n    }\n    \n    try {\n      // This will also close the file. This is OK since multiple\n      // close operations are safe.\n      this.setFile(fileName, false);\n    }\n    catch(IOException e) {\n      LogLog.error(\"setFile(\"+fileName+\", false) call failed.\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "CATCH", "BINARY_OP", "CALL", "CALL", "LOOP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [0, 8], [2, 9], [2, 10], [6, 11], [7, 12], [8, 13], [5, 14], [1, 15], [2, 16], [2, 17], [2, 18], [2, 19], [9, 20], [10, 21], [2, 22], [12, 23], [13, 24], [14, 25], [15, 26], [17, 27], [18, 28], [2, 29], [19, 30], [9, 31], [20, 32], [10, 33], [22, 34], [25, 35], [25, 36], [27, 37], [30, 38], [31, 39], [9, 40], [9, 41], [34, 42], [36, 43], [37, 44], [37, 45], [38, 46], [38, 47], [40, 48], [41, 49], [42, 50], [45, 51], [47, 52], [31, 53], [31, 54], [31, 55], [48, 56], [50, 57], [54, 58], [55, 59], [56, 60], [58, 61], [59, 62], [60, 63], [61, 64], [61, 65], [62, 66], [62, 67], [65, 68], [66, 69], [67, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 0], [9, 2], [10, 2], [11, 6], [12, 7], [13, 8], [14, 5], [15, 1], [16, 2], [17, 2], [18, 2], [19, 2], [20, 9], [21, 10], [22, 2], [23, 12], [24, 13], [25, 14], [26, 15], [27, 17], [28, 18], [29, 2], [30, 19], [31, 9], [32, 20], [33, 10], [34, 22], [35, 25], [36, 25], [37, 27], [38, 30], [39, 31], [40, 9], [41, 9], [42, 34], [43, 36], [44, 37], [45, 37], [46, 38], [47, 38], [48, 40], [49, 41], [50, 42], [51, 45], [52, 47], [53, 31], [54, 31], [55, 31], [56, 48], [57, 50], [58, 54], [59, 55], [60, 56], [61, 58], [62, 59], [63, 60], [64, 61], [65, 61], [66, 62], [67, 62], [68, 65], [69, 66], [70, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "setFile", "code": "  void setFile(String fileName, boolean append) throws IOException {\n    super.setFile(fileName, append);\n    if(append) {\n      File f = new File(fileName);\n      ((CountingQuietWriter) qw).setCount(f.length());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setOption", "code": "  void setOption(String key, String value) {\n    super.setOption(key, value);    \n    if(key.equalsIgnoreCase(MAX_FILE_SIZE_OPTION)) {\n      maxFileSize = OptionConverter.toFileSize(value, maxFileSize + 1);\n    }\n    else if(key.equalsIgnoreCase(MAX_BACKUP_INDEX_OPTION)) {\n      maxBackupIndex = OptionConverter.toInt(value, maxBackupIndex);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [4, 8], [7, 9], [8, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 4], [9, 7], [10, 8], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setMaxBackupIndex", "code": "  void setMaxBackupIndex(int maxBackups) {\n    this.maxBackupIndex = maxBackups;    ", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMaxFileSize", "code": "  void setMaxFileSize(long maxFileSize) {\n    this.maxFileSize = maxFileSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMaximumFileSize", "code": "  void setMaximumFileSize(long maxFileSize) {\n    this.maxFileSize = maxFileSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMaxFileSize", "code": "  void setMaxFileSize(String value) {\n    maxFileSize = OptionConverter.toFileSize(value, maxFileSize + 1);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setQWForFiles", "code": "  void setQWForFiles(Writer writer) {\n     this.qw = new CountingQuietWriter(writer, errorHandler);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "subAppend", "code": "  void subAppend(LoggingEvent event) {\n    super.subAppend(event);\n    if((fileName != null) &&\n                     ((CountingQuietWriter) qw).getCount() >= maxFileSize) \n      this.rollOver();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "RollingFileAppender", "code": "  RollingFileAppender() {\n    super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "RollingFileAppender", "code": "  RollingFileAppender(Layout layout, String filename, boolean append)\n                                      throws IOException {\n    super(layout, filename, append);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "RollingFileAppender", "code": "  RollingFileAppender(Layout layout, String filename) throws IOException {\n    super(layout, filename);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.7-877", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/selectors/And.java", "language": "java", "name": "org.apache.tools.ant.types.resources.selectors.And", "code": "public class And extends ResourceSelectorContainer implements ResourceSelector {\n\n    /**\n     * Default constructor.\n     */\n    public And() {\n    }\n\n    /**\n     * Convenience constructor.\n     * @param r the ResourceSelector[] to add.\n     */\n    public And(ResourceSelector[] r) {\n        super(r);\n    }\n\n    /**\n     * Return true if this Resource is selected.\n     * @param r the Resource to check.\n     * @return whether the Resource was selected.\n     */\n    public boolean isSelected(Resource r) {\n        for (Iterator i = getSelectors(); i.hasNext();) {\n            if (!((ResourceSelector) i.next()).isSelected(r)) {\n                return false;\n            }\n        }\n        return true;", "functions": [{"function_name": "isSelected", "code": "    public boolean isSelected(Resource r) {\n        for (Iterator i = getSelectors(); i.hasNext();) {\n            if (!((ResourceSelector) i.next()).isSelected(r)) {\n                return false;\n            }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "And", "code": "    public And() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "And", "code": "    public And(ResourceSelector[] r) {\n        super(r);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.4-2087", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/NoTypeConversionAvailableException.java", "language": "java", "name": "org.apache.camel.NoTypeConversionAvailableException", "code": "public class NoTypeConversionAvailableException extends RuntimeCamelException {\n    private final Object value;\n    private final Class type;\n\n    public NoTypeConversionAvailableException(Object value, Class type) {\n        super(\"No type converter available to convert from type: \" + (value != null ? value.getClass() : null)\n              + \" to the required type \" + type.getName() + \" with value \" + value);\n        this.value = value;\n        this.type = type;\n    }\n\n    /**\n     * Returns the value which could not be converted\n     */\n    public Object getValue() {\n        return value;\n    }\n\n    /**\n     * Returns the required <tt>to</tt> type\n     */\n    public Class getType() {\n        return type;\n    }\n\n    /**\n     * Returns the required <tt>from</tt> type.\n     * Returns <tt>null</tt> if the provided value was null.\n     */\n    public Class getFromType() {\n        if (value != null) {\n            return value.getClass();\n        } else {\n            return null;", "functions": [{"function_name": "getValue", "code": "    public Object getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public Class getType() {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFromType", "code": "    public Class getFromType() {\n        if (value != null) {\n            return value.getClass();\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "NoTypeConversionAvailableException", "code": "    public NoTypeConversionAvailableException(Object value, Class type) {\n        super(\"No type converter available to convert from type: \" + (value != null ? value.getClass() : null)\n              + \" to the required type \" + type.getName() + \" with value \" + value);\n        this.value = value;\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [13, 15], [13, 16], [13, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [15, 13], [16, 13], [17, 13], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}], "label": 0}
{"sample_id": "camel-1.2-1955", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/impl/converter/StaticMethodTypeConverter.java", "language": "java", "name": "org.apache.camel.impl.converter.StaticMethodTypeConverter", "code": "public class StaticMethodTypeConverter implements TypeConverter {\n    private final Method method;\n\n    public StaticMethodTypeConverter(Method method) {\n        this.method = method;\n    }\n\n    @Override\n    public String toString() {\n        return \"StaticMethodTypeConverter: \" + method;\n    }\n\n    public <T> T convertTo(Class<T> type, Object value) {\n        return (T) ObjectHelper.invokeMethod(method, null, value);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"StaticMethodTypeConverter: \" + method;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "convertTo", "code": "    public <T> T convertTo(Class<T> type, Object value) {\n        return (T) ObjectHelper.invokeMethod(method, null, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "StaticMethodTypeConverter", "code": "    public StaticMethodTypeConverter(Method method) {\n        this.method = method;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "log4j-1.2-5007", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/jmx/Agent.java", "language": "java", "name": "org.apache.log4j.jmx.Agent", "code": "public class Agent {\n\n    /**\n     * Diagnostic logger.\n     * @deprecated\n     */\n  static Logger log = Logger.getLogger(Agent.class);\n\n    /**\n     * Create new instance.\n     * @deprecated\n     */\n  public Agent() {\n  }\n\n    /**\n     * Creates a new instance of com.sun.jdmk.comm.HtmlAdapterServer\n     * using reflection.\n     *\n     * @since 1.2.16\n     * @return new instance.\n     */\n  private static Object createServer() {\n      Object newInstance = null;\n      try {\n        newInstance = Class.forName(\n                \"com.sun.jdmk.comm.HtmlAdapterServer\").newInstance();\n      } catch (ClassNotFoundException ex) {\n          throw new RuntimeException(ex.toString());\n      } catch (InstantiationException ex) {\n          throw new RuntimeException(ex.toString());\n      } catch (IllegalAccessException ex) {\n          throw new RuntimeException(ex.toString());\n      }\n      return newInstance;\n  }\n\n    /**\n     * Invokes HtmlAdapterServer.start() using reflection.\n     *\n     * @since 1.2.16\n     * @param server instance of com.sun.jdmk.comm.HtmlAdapterServer.\n     */\n  private static void startServer(final Object server) {\n      try {\n          server.getClass().getMethod(\"start\", new Class[0]).\n                  invoke(server, new Object[0]);\n      } catch(InvocationTargetException ex) {\n          Throwable cause = ex.getTargetException();\n          if (cause instanceof RuntimeException) {\n              throw (RuntimeException) cause;\n          } else if (cause != null) {\n              if (cause instanceof InterruptedException\n                      || cause instanceof InterruptedIOException) {\n                  Thread.currentThread().interrupt();\n              }\n              throw new RuntimeException(cause.toString());\n          } else {\n              throw new RuntimeException();\n          }\n      } catch(NoSuchMethodException ex) {\n          throw new RuntimeException(ex.toString());\n      } catch(IllegalAccessException ex) {\n        throw new RuntimeException(ex.toString());\n    }\n  }\n\n\n    /**\n     * Starts instance of HtmlAdapterServer.\n     * @deprecated\n      */\n  public void start() {\n\n    MBeanServer server = MBeanServerFactory.createMBeanServer();\n    Object html = createServer();\n\n    try {\n      log.info(\"Registering HtmlAdaptorServer instance.\");\n      server.registerMBean(html, new ObjectName(\"Adaptor:name=html,port=8082\"));\n      log.info(\"Registering HierarchyDynamicMBean instance.\");\n      HierarchyDynamicMBean hdm = new HierarchyDynamicMBean();\n      server.registerMBean(hdm, new ObjectName(\"log4j:hiearchy=default\"));\n    } catch(JMException e) {\n      log.error(\"Problem while registering MBeans instances.\", e);\n      return;\n    } catch(RuntimeException e) {\n      log.error(\"Problem while registering MBeans instances.\", e);\n      return;\n    }\n    startServer(html);", "functions": [{"function_name": "createServer", "code": "  private static Object createServer() {\n      Object newInstance = null;\n      try {\n        newInstance = Class.forName(\n                \"com.sun.jdmk.comm.HtmlAdapterServer\").newInstance();\n      } catch (ClassNotFoundException ex) {\n          throw new RuntimeException(ex.toString());\n      } catch (InstantiationException ex) {\n          throw new RuntimeException(ex.toString());\n      } catch (IllegalAccessException ex) {\n          throw new RuntimeException(ex.toString());\n      }\n      return newInstance;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "CATCH", "CATCH", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [5, 8], [6, 9], [2, 10], [3, 11], [7, 12], [8, 13], [9, 14], [10, 15], [12, 16], [13, 17], [14, 18], [15, 19], [15, 20], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 5], [9, 6], [10, 2], [11, 3], [12, 7], [13, 8], [14, 9], [15, 10], [16, 12], [17, 13], [18, 14], [19, 15], [20, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "startServer", "code": "  private static void startServer(final Object server) {\n      try {\n          server.getClass().getMethod(\"start\", new Class[0]).\n                  invoke(server, new Object[0]);\n      } catch(InvocationTargetException ex) {\n          Throwable cause = ex.getTargetException();\n          if (cause instanceof RuntimeException) {\n              throw (RuntimeException) cause;\n          } else if (cause != null) {\n              if (cause instanceof InterruptedException\n                      || cause instanceof InterruptedIOException) {\n                  Thread.currentThread().interrupt();\n              }\n              throw new RuntimeException(cause.toString());\n          } else {\n              throw new RuntimeException();\n          }\n      } catch(NoSuchMethodException ex) {\n          throw new RuntimeException(ex.toString());\n      } catch(IllegalAccessException ex) {\n        throw new RuntimeException(ex.toString());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "CATCH", "THROW_RAISE", "THROW_RAISE", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [5, 9], [1, 10], [6, 11], [7, 12], [8, 13], [8, 14], [10, 15], [10, 16], [11, 17], [12, 18], [13, 19], [8, 20], [9, 21], [16, 22], [13, 23], [13, 24], [13, 25], [19, 26], [15, 27], [16, 28], [23, 29], [24, 30], [25, 31], [30, 32], [31, 33], [31, 34], [25, 35], [35, 36], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 5], [10, 1], [11, 6], [12, 7], [13, 8], [14, 8], [15, 10], [16, 10], [17, 11], [18, 12], [19, 13], [20, 8], [21, 9], [22, 16], [23, 13], [24, 13], [25, 13], [26, 19], [27, 15], [28, 16], [29, 23], [30, 24], [31, 25], [32, 30], [33, 31], [34, 31], [35, 25], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "start", "code": "  public void start() {\n\n    MBeanServer server = MBeanServerFactory.createMBeanServer();\n    Object html = createServer();\n\n    try {\n      log.info(\"Registering HtmlAdaptorServer instance.\");\n      server.registerMBean(html, new ObjectName(\"Adaptor:name=html,port=8082\"));\n      log.info(\"Registering HierarchyDynamicMBean instance.\");\n      HierarchyDynamicMBean hdm = new HierarchyDynamicMBean();\n      server.registerMBean(hdm, new ObjectName(\"log4j:hiearchy=default\"));\n    } catch(JMException e) {\n      log.error(\"Problem while registering MBeans instances.\", e);\n      return;\n    } catch(RuntimeException e) {\n      log.error(\"Problem while registering MBeans instances.\", e);\n      return;\n    }\n    startServer(html);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CATCH", "CATCH", "VAR_DECL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [5, 16], [6, 17], [10, 18], [7, 19], [11, 20], [12, 21], [13, 22], [16, 23], [17, 24], [18, 25], [21, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 5], [17, 6], [18, 10], [19, 7], [20, 11], [21, 12], [22, 13], [23, 16], [24, 17], [25, 18], [26, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "Agent", "code": "  public Agent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.6-7656", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/Message.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Message", "code": "final class Message extends Instruction {\n    private boolean _terminate = false;\n\n    public void parseContents(Parser parser) {\n\tString termstr = getAttribute(\"terminate\");\n\tif (termstr != null) {\n            _terminate = termstr.equals(\"yes\");\n\t}\n\tparseChildren(parser);\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\ttypeCheckContents(stable);\n\treturn Type.Void;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(classGen.loadTranslet());\n\n        switch (elementCount()) {\n            case 0:\n                il.append(new PUSH(cpg, \"\"));\n            break;\n            case 1:\n                SyntaxTreeNode child = (SyntaxTreeNode) elementAt(0);\n                if (child instanceof Text) {\n                    il.append(new PUSH(cpg, ((Text) child).getText()));\n                    break;\n                }\n            default:\n                il.append(methodGen.loadHandler());\n\n                il.append(new NEW(cpg.addClass(STREAM_XML_OUTPUT)));\n                il.append(methodGen.storeHandler());\n\n                il.append(new NEW(cpg.addClass(STRING_WRITER)));\n                il.append(DUP);\n                il.append(DUP);\n                il.append(new INVOKESPECIAL(\n                    cpg.addMethodref(STRING_WRITER, \"<init>\", \"()V\")));\n\n                il.append(methodGen.loadHandler());\n                il.append(new INVOKESPECIAL(\n                    cpg.addMethodref(STREAM_XML_OUTPUT, \"<init>\",\n                                     \"()V\")));\n\n                il.append(methodGen.loadHandler());\n                il.append(SWAP);\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(OUTPUT_BASE, \"setWriter\",\n                                     \"(\"+WRITER_SIG+\")V\")));\n\n                il.append(methodGen.loadHandler());\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(OUTPUT_BASE, \"setEncoding\",\n                                     \"(\"+STRING_SIG+\")V\")));\n\n                il.append(methodGen.loadHandler());\n                il.append(ICONST_1);\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(OUTPUT_BASE, \"setOmitXMLDeclaration\",\n                                     \"(Z)V\")));\n\n                il.append(methodGen.loadHandler());\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(OUTPUT_BASE, \"startDocument\",\n                                     \"()V\")));\n\n                translateContents(classGen, methodGen);\n\n                il.append(methodGen.loadHandler());\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(OUTPUT_BASE, \"endDocument\",\n                                     \"()V\")));\n\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(STRING_WRITER, \"toString\",\n                                     \"()\" + STRING_SIG)));\n\n                il.append(SWAP);\n                il.append(methodGen.storeHandler());\n            break;\n        }\n\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t     \"displayMessage\",\n\t\t\t\t\t\t     \"(\"+STRING_SIG+\")V\")));\n\n\tif (_terminate == true) {\n\t    final int einit = cpg.addMethodref(\"java.lang.RuntimeException\",\n\t\t\t\t\t       \"<init>\",\n\t\t\t\t\t       \"(Ljava/lang/String;)V\");\n\t    il.append(new NEW(cpg.addClass(\"java.lang.RuntimeException\")));\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg,\"Termination forced by an \" +\n\t\t\t           \"xsl:message instruction\"));\n\t    il.append(new INVOKESPECIAL(einit));\n\t    il.append(ATHROW);", "functions": [{"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tString termstr = getAttribute(\"terminate\");\n\tif (termstr != null) {\n            _terminate = termstr.equals(\"yes\");\n\t}\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [7, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [9, 7], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\ttypeCheckContents(stable);\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(classGen.loadTranslet());\n\n        switch (elementCount()) {\n            case 0:\n                il.append(new PUSH(cpg, \"\"));\n            break;\n            case 1:\n                SyntaxTreeNode child = (SyntaxTreeNode) elementAt(0);\n                if (child instanceof Text) {\n                    il.append(new PUSH(cpg, ((Text) child).getText()));\n                    break;\n                }\n            default:\n                il.append(methodGen.loadHandler());\n\n                il.append(new NEW(cpg.addClass(STREAM_XML_OUTPUT)));\n                il.append(methodGen.storeHandler());\n\n                il.append(new NEW(cpg.addClass(STRING_WRITER)));\n                il.append(DUP);\n                il.append(DUP);\n                il.append(new INVOKESPECIAL(\n                    cpg.addMethodref(STRING_WRITER, \"<init>\", \"()V\")));\n\n                il.append(methodGen.loadHandler());\n                il.append(new INVOKESPECIAL(\n                    cpg.addMethodref(STREAM_XML_OUTPUT, \"<init>\",\n                                     \"()V\")));\n\n                il.append(methodGen.loadHandler());\n                il.append(SWAP);\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(OUTPUT_BASE, \"setWriter\",\n                                     \"(\"+WRITER_SIG+\")V\")));\n\n                il.append(methodGen.loadHandler());\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(OUTPUT_BASE, \"setEncoding\",\n                                     \"(\"+STRING_SIG+\")V\")));\n\n                il.append(methodGen.loadHandler());\n                il.append(ICONST_1);\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(OUTPUT_BASE, \"setOmitXMLDeclaration\",\n                                     \"(Z)V\")));\n\n                il.append(methodGen.loadHandler());\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(OUTPUT_BASE, \"startDocument\",\n                                     \"()V\")));\n\n                translateContents(classGen, methodGen);\n\n                il.append(methodGen.loadHandler());\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(OUTPUT_BASE, \"endDocument\",\n                                     \"()V\")));\n\n                il.append(new INVOKEVIRTUAL(\n                    cpg.addMethodref(STRING_WRITER, \"toString\",\n                                     \"()\" + STRING_SIG)));\n\n                il.append(SWAP);\n                il.append(methodGen.storeHandler());\n            break;\n        }\n\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t     \"displayMessage\",\n\t\t\t\t\t\t     \"(\"+STRING_SIG+\")V\")));\n\n\tif (_terminate == true) {\n\t    final int einit = cpg.addMethodref(\"java.lang.RuntimeException\",\n\t\t\t\t\t       \"<init>\",\n\t\t\t\t\t       \"(Ljava/lang/String;)V\");\n\t    il.append(new NEW(cpg.addClass(\"java.lang.RuntimeException\")));\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg,\"Termination forced by an \" +\n\t\t\t           \"xsl:message instruction\"));\n\t    il.append(new INVOKESPECIAL(einit));\n\t    il.append(ATHROW);", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [0, 10], [1, 11], [7, 12], [8, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [10, 20], [3, 21], [4, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [13, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [15, 54], [2, 55], [24, 56], [25, 57], [27, 58], [11, 59], [28, 60], [28, 61], [29, 62], [31, 63], [32, 64], [33, 65], [35, 66], [36, 67], [37, 68], [39, 69], [40, 70], [41, 71], [42, 72], [44, 73], [45, 74], [46, 75], [47, 76], [50, 77], [51, 78], [52, 79], [53, 80], [15, 81], [55, 82], [57, 83], [58, 84], [59, 85], [59, 86], [59, 87], [60, 88], [60, 89], [63, 90], [64, 91], [66, 92], [68, 93], [70, 94], [72, 95], [74, 96], [76, 97], [77, 98], [79, 99], [15, 100], [16, 101], [82, 102], [83, 103], [83, 104], [84, 105], [89, 106], [90, 107], [90, 108], [91, 109], [91, 110], [92, 111], [92, 112], [93, 113], [93, 114], [94, 115], [94, 116], [95, 117], [95, 118], [96, 119], [96, 120], [97, 121], [97, 122], [100, 123], [101, 124], [107, 125], [115, 126], [115, 127], [117, 128], [117, 129], [127, 130], [129, 131], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 0], [11, 1], [12, 7], [13, 8], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 10], [21, 3], [22, 4], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 13], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 2], [52, 2], [53, 2], [54, 15], [55, 2], [56, 24], [57, 25], [58, 27], [59, 11], [60, 28], [61, 28], [62, 29], [63, 31], [64, 32], [65, 33], [66, 35], [67, 36], [68, 37], [69, 39], [70, 40], [71, 41], [72, 42], [73, 44], [74, 45], [75, 46], [76, 47], [77, 50], [78, 51], [79, 52], [80, 53], [81, 15], [82, 55], [83, 57], [84, 58], [85, 59], [86, 59], [87, 59], [88, 60], [89, 60], [90, 63], [91, 64], [92, 66], [93, 68], [94, 70], [95, 72], [96, 74], [97, 76], [98, 77], [99, 79], [100, 15], [101, 16], [102, 82], [103, 83], [104, 83], [105, 84], [106, 89], [107, 90], [108, 90], [109, 91], [110, 91], [111, 92], [112, 92], [113, 93], [114, 93], [115, 94], [116, 94], [117, 95], [118, 95], [119, 96], [120, 96], [121, 97], [122, 97], [123, 100], [124, 101], [125, 107], [126, 115], [127, 115], [128, 117], [129, 117], [130, 127], [131, 129], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131]]}], "label": 0}
{"sample_id": "camel-1.2-1898", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/cxf/transport/CamelDestination.java", "language": "java", "name": "org.apache.camel.component.cxf.transport.CamelDestination", "code": "public class CamelDestination extends AbstractDestination implements Configurable {\n    protected static final String BASE_BEAN_NAME_SUFFIX = \".camel-destination-base\";\n    private static final Logger LOG = LogUtils.getL7dLogger(CamelDestination.class);\n    CamelContext camelContext;\n    String camelUri;\n    final ConduitInitiator conduitInitiator;\n    private CamelTransportBase base;\n    private Endpoint endpoint;\n\n    public CamelDestination(CamelContext camelContext, Bus bus, ConduitInitiator ci, EndpointInfo info) throws IOException {\n        super(getTargetReference(info, bus), info);\n        this.camelContext = camelContext;\n\n        base = new CamelTransportBase(camelContext, bus, endpointInfo, true, BASE_BEAN_NAME_SUFFIX);\n\n        conduitInitiator = ci;\n\n        initConfig();\n    }\n\n    protected Logger getLogger() {\n        return LOG;\n    }\n\n    /**\n     * @param inMessage the incoming message\n     * @return the inbuilt backchannel\n     */\n    protected Conduit getInbuiltBackChannel(Message inMessage) {\n        return new BackChannelConduit(EndpointReferenceUtils.getAnonymousEndpointReference(), inMessage);\n    }\n\n    public void activate() {\n        getLogger().log(Level.INFO, \"CamelDestination activate().... \");\n\n        try {\n            getLogger().log(Level.FINE, \"establishing Camel connection\");\n            endpoint = camelContext.getEndpoint(camelUri);\n        } catch (Exception ex) {\n            getLogger().log(Level.SEVERE, \"Camel connect failed with EException : \", ex);\n        }\n    }\n\n    public void deactivate() {\n        base.close();\n    }\n\n    public void shutdown() {\n        getLogger().log(Level.FINE, \"CamelDestination shutdown()\");\n        this.deactivate();\n    }\n\n    protected void incoming(Exchange exchange) {\n        getLogger().log(Level.FINE, \"server received request: \", exchange);\n\n        byte[] bytes = base.unmarshal(exchange);\n\n        MessageImpl inMessage = new MessageImpl();\n        inMessage.setContent(InputStream.class, new ByteArrayInputStream(bytes));\n        base.populateIncomingContext(exchange, inMessage, CamelConstants.CAMEL_SERVER_REQUEST_HEADERS);\n        inMessage.put(CamelConstants.CAMEL_REQUEST_MESSAGE, exchange);\n\n        inMessage.setDestination(this);\n\n        incomingObserver.onMessage(inMessage);\n    }\n\n    public String getBeanName() {\n        return endpointInfo.getName().toString() + \".camel-destination\";\n    }\n\n    private void initConfig() {\n        /*\n         * this.runtimePolicy = endpointInfo.getTraversedExtensor(new\n         * ServerBehaviorPolicyType(), ServerBehaviorPolicyType.class);\n         * this.serverConfig = endpointInfo.getTraversedExtensor(new\n         * ServerConfig(), ServerConfig.class); this.address =\n         * endpointInfo.getTraversedExtensor(new AddressType(),\n         * AddressType.class); this.sessionPool =\n         * endpointInfo.getTraversedExtensor(new SessionPoolType(),\n         * SessionPoolType.class);\n         */\n    }\n\n    protected class ConsumerProcessor implements Processor {\n        public void process(Exchange exchange) {\n            try {\n                incoming(exchange);\n            } catch (Throwable ex) {\n                getLogger().log(Level.WARNING, \"Failed to process incoming message : \", ex);\n            }\n        }\n    }\n\n    protected class BackChannelConduit extends AbstractConduit {\n        protected Message inMessage;\n\n        BackChannelConduit(EndpointReferenceType ref, Message message) {\n            super(ref);\n            inMessage = message;\n        }\n\n        /**\n         * Register a message observer for incoming messages.\n         * \n         * @param observer the observer to notify on receipt of incoming\n         */\n        public void setMessageObserver(MessageObserver observer) {\n        }\n\n        /**\n         * Send an outbound message, assumed to contain all the name-value\n         * mappings of the corresponding input message (if any).\n         * \n         * @param message the message to be sent.\n         */\n        public void prepare(Message message) throws IOException {\n            message.put(CamelConstants.CAMEL_REQUEST_MESSAGE, inMessage.get(CamelConstants.CAMEL_REQUEST_MESSAGE));\n            message.setContent(OutputStream.class, new CamelOutputStream(inMessage));\n        }\n\n        protected Logger getLogger() {\n            return LOG;\n        }\n\n    }\n\n    private class CamelOutputStream extends CachedOutputStream {\n        private Message inMessage;\n        private Producer<Exchange> replyTo;\n        private Producer<Exchange> sender;\n\n        public CamelOutputStream(Message m) {\n            super();\n            inMessage = m;\n        }\n\n        private void commitOutputMessage() throws IOException {\n\n            final String replyToUri = getReplyToDestination(inMessage);\n\n            base.template.send(replyToUri, new Processor() {\n                public void process(Exchange reply) {\n                    base.marshal(currentStream.toString(), replyToUri, reply);\n\n                    setReplyCorrelationID(inMessage, reply);\n\n                    base.setMessageProperties(inMessage, reply);\n\n                    getLogger().log(Level.FINE, \"just server sending reply: \", reply);\n                }\n            });\n        }\n\n        @Override\n        protected void doFlush() throws IOException {\n        }\n\n        @Override\n        protected void doClose() throws IOException {\n            commitOutputMessage();\n        }\n\n        @Override\n        protected void onWrite() throws IOException {\n        }\n    }\n\n    protected String getReplyToDestination(Message inMessage) {\n        if (inMessage.get(CamelConstants.CAMEL_REBASED_REPLY_TO) != null) {\n            return (String)inMessage.get(CamelConstants.CAMEL_REBASED_REPLY_TO);\n        } else {\n            return base.getReplyDestination();\n        }\n    }\n\n    protected void setReplyCorrelationID(Message inMessage, Exchange reply) {\n        Object value = inMessage.get(CamelConstants.CAMEL_CORRELATION_ID);\n        if (value != null) {\n            reply.getIn().setHeader(CamelConstants.CAMEL_CORRELATION_ID, value);", "functions": [{"function_name": "getLogger", "code": "    protected Logger getLogger() {\n        return LOG;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInbuiltBackChannel", "code": "    protected Conduit getInbuiltBackChannel(Message inMessage) {\n        return new BackChannelConduit(EndpointReferenceUtils.getAnonymousEndpointReference(), inMessage);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "activate", "code": "    public void activate() {\n        getLogger().log(Level.INFO, \"CamelDestination activate().... \");\n\n        try {\n            getLogger().log(Level.FINE, \"establishing Camel connection\");\n            endpoint = camelContext.getEndpoint(camelUri);\n        } catch (Exception ex) {\n            getLogger().log(Level.SEVERE, \"Camel connect failed with EException : \", ex);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [3, 6], [2, 7], [4, 8], [5, 9], [6, 10], [7, 11], [9, 12], [11, 13], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 3], [7, 2], [8, 4], [9, 5], [10, 6], [11, 7], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "deactivate", "code": "    public void deactivate() {\n        base.close();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "shutdown", "code": "    public void shutdown() {\n        getLogger().log(Level.FINE, \"CamelDestination shutdown()\");\n        this.deactivate();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "incoming", "code": "    protected void incoming(Exchange exchange) {\n        getLogger().log(Level.FINE, \"server received request: \", exchange);\n\n        byte[] bytes = base.unmarshal(exchange);\n\n        MessageImpl inMessage = new MessageImpl();\n        inMessage.setContent(InputStream.class, new ByteArrayInputStream(bytes));\n        base.populateIncomingContext(exchange, inMessage, CamelConstants.CAMEL_SERVER_REQUEST_HEADERS);\n        inMessage.put(CamelConstants.CAMEL_REQUEST_MESSAGE, exchange);\n\n        inMessage.setDestination(this);\n\n        incomingObserver.onMessage(inMessage);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [8, 10], [1, 11], [2, 12], [9, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 8], [11, 1], [12, 2], [13, 9], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getBeanName", "code": "    public String getBeanName() {\n        return endpointInfo.getName().toString() + \".camel-destination\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "initConfig", "code": "    private void initConfig() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getReplyToDestination", "code": "    protected String getReplyToDestination(Message inMessage) {\n        if (inMessage.get(CamelConstants.CAMEL_REBASED_REPLY_TO) != null) {\n            return (String)inMessage.get(CamelConstants.CAMEL_REBASED_REPLY_TO);\n        } else {\n            return base.getReplyDestination();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setReplyCorrelationID", "code": "    protected void setReplyCorrelationID(Message inMessage, Exchange reply) {\n        Object value = inMessage.get(CamelConstants.CAMEL_CORRELATION_ID);\n        if (value != null) {\n            reply.getIn().setHeader(CamelConstants.CAMEL_CORRELATION_ID, value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "CamelDestination", "code": "    public CamelDestination(CamelContext camelContext, Bus bus, ConduitInitiator ci, EndpointInfo info) throws IOException {\n        super(getTargetReference(info, bus), info);\n        this.camelContext = camelContext;\n\n        base = new CamelTransportBase(camelContext, bus, endpointInfo, true, BASE_BEAN_NAME_SUFFIX);\n\n        conduitInitiator = ci;\n\n        initConfig();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "xalan-2.4-6814", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/utils/Trie.java", "language": "java", "name": "org.apache.xml.utils.Trie", "code": "public class Trie\n{\n\n  /** Size of the m_nextChar array.  */\n  public static final int ALPHA_SIZE = 128;\n\n  /** The root node of the tree.    */\n  Node m_Root;\n\n  /**\n   * Construct the trie.\n   */\n  public Trie()\n  {\n    m_Root = new Node();\n  }\n\n  /**\n   * Put an object into the trie for lookup.\n   *\n   * @param key must be a 7-bit ASCII string\n   * @param value any java object.\n   *\n   * @return The old object that matched key, or null.\n   */\n  public Object put(String key, Object value)\n  {\n\n    final int len = key.length();\n    Node node = m_Root;\n\n    for (int i = 0; i < len; i++)\n    {\n      Node nextNode = node.m_nextChar[Character.toUpperCase(key.charAt(i))];\n\n      if (nextNode != null)\n      {\n        node = nextNode;\n      }\n      else\n      {\n        for (; i < len; i++)\n        {\n          Node newNode = new Node();\n\n          node.m_nextChar[Character.toUpperCase(key.charAt(i))] = newNode;\n          node = newNode;\n        }\n\n        break;\n      }\n    }\n\n    Object ret = node.m_Value;\n\n    node.m_Value = value;\n\n    return ret;\n  }\n\n  /**\n   * Get an object that matches the key.\n   *\n   * @param key must be a 7-bit ASCII string\n   *\n   * @return The object that matches the key, or null.\n   */\n  public Object get(String key)\n  {\n\n    final int len = key.length();\n    Node node = m_Root;\n\n    for (int i = 0; i < len; i++)\n    {\n      try\n      {\n        node = node.m_nextChar[Character.toUpperCase(key.charAt(i))];\n      }\n      catch (ArrayIndexOutOfBoundsException e)\n      {\n\n        node = null;\n      }\n\n      if (node == null)\n        return null;\n    }\n\n    return node.m_Value;\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"internal\"/>\n   * The node representation for the trie.\n   */\n  class Node\n  {\n\n    /**\n     * Constructor, creates a Node[ALPHA_SIZE].\n     */\n    Node()\n    {\n      m_nextChar = new Node[ALPHA_SIZE];\n      m_Value = null;\n    }\n\n    /** The next nodes.   */\n    Node m_nextChar[];\n\n    /** The value.   */\n    Object m_Value;", "functions": [{"function_name": "put", "code": "  public Object put(String key, Object value)\n  {\n\n    final int len = key.length();\n    Node node = m_Root;\n\n    for (int i = 0; i < len; i++)\n    {\n      Node nextNode = node.m_nextChar[Character.toUpperCase(key.charAt(i))];\n\n      if (nextNode != null)\n      {\n        node = nextNode;\n      }\n      else\n      {\n        for (; i < len; i++)\n        {\n          Node newNode = new Node();\n\n          node.m_nextChar[Character.toUpperCase(key.charAt(i))] = newNode;\n          node = newNode;\n        }\n\n        break;\n      }\n    }\n\n    Object ret = node.m_Value;\n\n    node.m_Value = value;\n\n    return ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [3, 10], [3, 11], [5, 12], [10, 13], [3, 14], [10, 15], [10, 16], [13, 17], [16, 18], [10, 19], [16, 20], [11, 21], [16, 22], [16, 23], [21, 24], [20, 25], [23, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 3], [11, 3], [12, 5], [13, 10], [14, 3], [15, 10], [16, 10], [17, 13], [18, 16], [19, 10], [20, 16], [21, 11], [22, 16], [23, 16], [24, 21], [25, 20], [26, 23], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "get", "code": "  public Object get(String key)\n  {\n\n    final int len = key.length();\n    Node node = m_Root;\n\n    for (int i = 0; i < len; i++)\n    {\n      try\n      {\n        node = node.m_nextChar[Character.toUpperCase(key.charAt(i))];\n      }\n      catch (ArrayIndexOutOfBoundsException e)\n      {\n\n        node = null;\n      }\n\n      if (node == null)\n        return null;\n    }\n\n    return node.m_Value;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "TRY", "CALL", "RETURN", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [4, 9], [7, 10], [7, 11], [8, 12], [2, 13], [10, 14], [11, 15], [8, 16], [12, 17], [17, 18], [16, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 4], [10, 7], [11, 7], [12, 8], [13, 2], [14, 10], [15, 11], [16, 8], [17, 12], [18, 17], [19, 16], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "Trie", "code": "  public Trie()\n  {\n    m_Root = new Node();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.6-509", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/Basename.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Basename", "code": "public class Basename extends Task {\n    private File file;\n    private String property;\n    private String suffix;\n\n    /**\n     * file or directory to get base name from\n     * @param file file or directory to get base name from\n     */\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    /**\n    * Property to set base name to.\n     * @param property name of property\n    */\n    public void setProperty(String property) {\n        this.property  = property;\n    }\n\n    /**\n    * Optional suffix to remove from base name.\n     * @param suffix suffix to remove from base name\n    */\n    public void setSuffix(String suffix) {\n        this.suffix = suffix;\n    }\n\n    /**\n     * do the work\n     * @throws BuildException if required attributes are not supplied\n     * property and attribute are required attributes\n     */\n    public void execute() throws BuildException {\n        if (property == null) {\n            throw new BuildException(\"property attribute required\", getLocation());\n        }\n        if (file == null) {\n            throw new BuildException(\"file attribute required\", getLocation());\n        }\n        String value = file.getName();\n        if (suffix != null && value.endsWith(suffix)) {\n            int pos = value.length() - suffix.length();\n            if (pos > 0 && suffix.charAt(0) != '.'\n                && value.charAt(pos - 1) == '.') {\n                pos--;\n            }\n            value = value.substring(0, pos);\n        }\n        getProject().setNewProperty(property, value);", "functions": [{"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperty", "code": "    public void setProperty(String property) {\n        this.property  = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSuffix", "code": "    public void setSuffix(String suffix) {\n        this.suffix = suffix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (property == null) {\n            throw new BuildException(\"property attribute required\", getLocation());\n        }\n        if (file == null) {\n            throw new BuildException(\"file attribute required\", getLocation());\n        }\n        String value = file.getName();\n        if (suffix != null && value.endsWith(suffix)) {\n            int pos = value.length() - suffix.length();\n            if (pos > 0 && suffix.charAt(0) != '.'\n                && value.charAt(pos - 1) == '.') {\n                pos--;\n            }\n            value = value.substring(0, pos);\n        }\n        getProject().setNewProperty(property, value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [5, 9], [1, 10], [1, 11], [6, 12], [6, 13], [2, 14], [3, 15], [7, 16], [4, 17], [8, 18], [1, 19], [10, 20], [13, 21], [15, 22], [17, 23], [19, 24], [20, 25], [20, 26], [11, 27], [22, 28], [22, 29], [23, 30], [23, 31], [24, 32], [25, 33], [25, 34], [26, 35], [26, 36], [27, 37], [27, 38], [34, 39], [35, 40], [35, 41], [36, 42], [39, 43], [41, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 5], [10, 1], [11, 1], [12, 6], [13, 6], [14, 2], [15, 3], [16, 7], [17, 4], [18, 8], [19, 1], [20, 10], [21, 13], [22, 15], [23, 17], [24, 19], [25, 20], [26, 20], [27, 11], [28, 22], [29, 22], [30, 23], [31, 23], [32, 24], [33, 25], [34, 25], [35, 26], [36, 26], [37, 27], [38, 27], [39, 34], [40, 35], [41, 35], [42, 36], [43, 39], [44, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}], "label": 0}
{"sample_id": "ivy-2.0-3280", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/report/XmlReportParser.java", "language": "java", "name": "org.apache.ivy.plugins.report.XmlReportParser", "code": "public class XmlReportParser {\n    private static class SaxXmlReportParser {\n        private final class XmlReportParserHandler extends DefaultHandler {\n            private String organisation;\n\n            private String module;\n\n            private String branch;\n\n            private String revision;\n\n            private int position;\n\n            private Date pubdate;\n\n            private boolean skip;\n\n            private ModuleRevisionId mrid;\n\n            private boolean isDefault;\n\n            private SortedMap revisionsMap = new TreeMap(); // Use a TreeMap to order by\n\n            private List revisionArtifacts = null;\n\n            public void startElement(String uri, String localName, String qName,\n                    Attributes attributes) throws SAXException {\n                if (\"module\".equals(qName)) {\n                    organisation = attributes.getValue(\"organisation\");\n                    module = attributes.getValue(\"name\");\n                } else if (\"revision\".equals(qName)) {\n                    revisionArtifacts = new ArrayList();\n                    branch = attributes.getValue(\"branch\");\n                    revision = attributes.getValue(\"name\");\n                    isDefault = Boolean.valueOf(attributes.getValue(\"default\")).booleanValue();\n                    // retrieve position from file. If no position is found, it may be an old\n                    // report generated with a previous version,\n                    // in which case, we put it at the last position\n                    String pos = attributes.getValue(\"position\");\n                    position = pos == null ? getMaxPos() + 1 : Integer.valueOf(pos).intValue();\n                    if (attributes.getValue(\"error\") != null\n                            || attributes.getValue(\"evicted\") != null) {\n                        skip = true;\n                    } else {\n                        revisionsMap.put(new Integer(position), revisionArtifacts);\n                        mrid = ModuleRevisionId.newInstance(organisation, module, branch,\n                            revision, ExtendableItemHelper.getExtraAttributes(attributes,\n                                \"extra-\"));\n                        mrids.add(mrid);\n                        if (isDefault) {\n                            defaultMrids.add(mrid);\n                        } else {\n                            Artifact metadataArtifact = \n                                DefaultArtifact.newIvyArtifact(mrid, pubdate);\n                            MetadataArtifactDownloadReport madr = \n                                new MetadataArtifactDownloadReport(metadataArtifact);\n                            metadataReports.put(mrid, madr);\n                            realMrids.add(mrid);\n                        }\n                        try {\n                            pubdate = Ivy.DATE_FORMAT.parse(attributes.getValue(\"pubdate\"));\n                            skip = false;\n                        } catch (ParseException e) {\n                            throw new IllegalArgumentException(\"invalid publication date for \"\n                                    + organisation + \" \" + module + \" \" + revision + \": \"\n                                    + attributes.getValue(\"pubdate\"));\n                        }\n                    }\n                } else if (\"metadata-artifact\".equals(qName)) {\n                    if (skip) {\n                        return;\n                    }\n                    MetadataArtifactDownloadReport madr = \n                        (MetadataArtifactDownloadReport) metadataReports.get(mrid);\n                    if (madr != null) {\n                        madr.setDownloadStatus(\n                            DownloadStatus.fromString(attributes.getValue(\"status\")));\n                        madr.setDownloadDetails(attributes.getValue(\"details\"));\n                        madr.setSize(Long.parseLong(attributes.getValue(\"size\")));\n                        madr.setDownloadTimeMillis(Long.parseLong(attributes.getValue(\"time\")));\n                        madr.setSearched(parseBoolean(attributes.getValue(\"searched\")));\n                        if (attributes.getValue(\"location\") != null) {\n                            madr.setLocalFile(new File(attributes.getValue(\"location\")));\n                        }\n                        if (attributes.getValue(\"original-local-location\") != null) {\n                            madr.setOriginalLocalFile(\n                                new File(attributes.getValue(\"original-local-location\")));\n                        }\n                        if (attributes.getValue(\"origin-location\") != null) {\n                            if (ArtifactOrigin.isUnknown(attributes.getValue(\"origin-location\"))) {\n                                madr.setArtifactOrigin(ArtifactOrigin.unkwnown(madr.getArtifact()));\n                            } else {\n                                madr.setArtifactOrigin(\n                                    new ArtifactOrigin(\n                                        madr.getArtifact(),\n                                        parseBoolean(attributes.getValue(\"origin-is-local\")),\n                                        attributes.getValue(\"origin-location\")));\n                            }\n                        }\n                    }\n                } else if (\"artifact\".equals(qName)) {\n                    if (skip) {\n                        return;\n                    }\n                    String status = attributes.getValue(\"status\");\n                    String artifactName = attributes.getValue(\"name\");\n                    String type = attributes.getValue(\"type\");\n                    String ext = attributes.getValue(\"ext\");\n                    Artifact artifact = new DefaultArtifact(mrid, pubdate, artifactName,\n                            type, ext, ExtendableItemHelper.getExtraAttributes(attributes,\n                                \"extra-\"));\n                    ArtifactDownloadReport aReport = new ArtifactDownloadReport(artifact);\n                    aReport.setDownloadStatus(DownloadStatus.fromString(status));\n                    aReport.setDownloadDetails(attributes.getValue(\"details\"));\n                    aReport.setSize(Long.parseLong(attributes.getValue(\"size\")));\n                    aReport.setDownloadTimeMillis(Long.parseLong(attributes.getValue(\"time\")));\n                    if (attributes.getValue(\"location\") != null) {\n                        aReport.setLocalFile(new File(attributes.getValue(\"location\")));\n                    }\n                    revisionArtifacts.add(aReport);\n                } else if (\"origin-location\".equals(qName)) {\n                    if (skip) {\n                        return;\n                    }\n                    ArtifactDownloadReport aReport = (ArtifactDownloadReport) \n                        revisionArtifacts.get(revisionArtifacts.size() - 1);\n                    \n                    if (ArtifactOrigin.isUnknown(attributes.getValue(\"location\"))) {\n                        aReport.setArtifactOrigin(ArtifactOrigin.unkwnown(aReport.getArtifact()));\n                    } else {\n                        aReport.setArtifactOrigin(\n                            new ArtifactOrigin(\n                                aReport.getArtifact(),\n                                parseBoolean(attributes.getValue(\"is-local\")),\n                                attributes.getValue(\"location\")));\n                    }\n                } else if (\"info\".equals(qName)) {\n                    String organisation = attributes.getValue(\"organisation\");\n                    String name = attributes.getValue(\"module\");\n                    String branch = attributes.getValue(\"branch\");\n                    String revision = attributes.getValue(\"revision\");\n                    Map extraAttributes = new HashMap();\n                    for (int i = 0; i < attributes.getLength(); i++) {\n                        String attName = attributes.getQName(i);\n                        if (attName.startsWith(\"extra-\")) {\n                            String extraAttrName = attName.substring(\"extra-\".length());\n                            String extraAttrValue = attributes.getValue(i);\n                            extraAttributes.put(extraAttrName, extraAttrValue);\n                        }\n                    }\n                    mRevisionId = ModuleRevisionId.newInstance(organisation, name, branch,\n                        revision, extraAttributes);\n                }\n            }\n\n            public void endElement(String uri, String localName, String qname)\n                    throws SAXException {\n                if (\"dependencies\".equals(qname)) {\n                    // add the artifacts in the correct order\n                    for (Iterator it = revisionsMap.values().iterator(); it.hasNext();) {\n                        List artifactReports = (List) it.next();\n                        SaxXmlReportParser.this.artifactReports.addAll(artifactReports);\n                        for (Iterator iter = artifactReports.iterator(); iter.hasNext();) {\n                            ArtifactDownloadReport artifactReport \n                                = (ArtifactDownloadReport) iter.next();\n                            if (artifactReport.getDownloadStatus() != DownloadStatus.FAILED) {\n                                artifacts.add(artifactReport.getArtifact());\n                            }\n                        }\n                        \n                    }\n                }\n            }\n\n            private int getMaxPos() {\n                return revisionsMap.isEmpty() ? -1 : ((Integer) revisionsMap.keySet()\n                        .toArray()[revisionsMap.size() - 1]).intValue();\n            }\n        }\n\n        private List/*<ModuleRevisionId>*/ mrids;\n\n        private List/*<ModuleRevisionId>*/ defaultMrids;\n\n        private List/*<ModuleRevisionId>*/ realMrids;\n\n        private List/*<Artifact>*/ artifacts;\n\n        private List/*<ArtifactDownloadReport>*/ artifactReports;\n        \n        private Map/*<ModuleRevisionId,MetadataArtifactDownloadReport>*/ metadataReports;\n\n        private ModuleRevisionId mRevisionId;\n\n        private File report;\n\n        SaxXmlReportParser(File report) {\n            artifacts = new ArrayList();\n            artifactReports = new ArrayList();\n            mrids = new ArrayList();\n            defaultMrids = new ArrayList();\n            realMrids = new ArrayList();\n            metadataReports = new HashMap();\n            this.report = report;\n        }\n\n        public void parse() throws Exception {\n            SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();\n            saxParser.parse(report, new XmlReportParserHandler());\n        }\n        \n        private static boolean parseBoolean(String str) {\n            return (str != null) && str.equalsIgnoreCase(\"true\");\n        }\n\n        public List getArtifacts() {\n            return artifacts;\n        }\n\n        public List getArtifactReports() {\n            return artifactReports;\n        }\n\n        public List getModuleRevisionIds() {\n            return mrids;\n        }\n\n        public List getRealModuleRevisionIds() {\n            return realMrids;\n        }\n\n        public ModuleRevisionId getResolvedModule() {\n            return mRevisionId;\n        }\n\n        public MetadataArtifactDownloadReport getMetadataArtifactReport(ModuleRevisionId id) {\n            return (MetadataArtifactDownloadReport) metadataReports.get(id);\n        }\n    }\n\n    private SaxXmlReportParser parser = null;\n\n    public void parse(File report) throws ParseException {\n        if (!report.exists()) {\n            throw new IllegalStateException(\"Report file '\" + report.getAbsolutePath()\n                    + \"' does not exist.\");\n        }\n\n        parser = new SaxXmlReportParser(report);\n        try {\n            parser.parse();\n        } catch (Exception e) {\n            ParseException pe = new ParseException(\"failed to parse report: \" + report + \": \"\n                    + e.getMessage(), 0);\n            pe.initCause(e);\n            throw pe;\n        }\n    }\n\n    public Artifact[] getArtifacts() {\n        return (Artifact[]) parser.getArtifacts().toArray(\n            new Artifact[parser.getArtifacts().size()]);\n    }\n\n    public ArtifactDownloadReport[] getArtifactReports() {\n        return (ArtifactDownloadReport[]) parser.getArtifactReports().toArray(\n            new ArtifactDownloadReport[parser.getArtifactReports().size()]);\n    }\n\n    public ModuleRevisionId[] getDependencyRevisionIds() {\n        return (ModuleRevisionId[]) parser.getModuleRevisionIds().toArray(\n            new ModuleRevisionId[parser.getModuleRevisionIds().size()]);\n    }\n\n    public ModuleRevisionId[] getRealDependencyRevisionIds() {\n        return (ModuleRevisionId[]) parser.getRealModuleRevisionIds().toArray(\n            new ModuleRevisionId[parser.getRealModuleRevisionIds().size()]);\n    }\n\n    public MetadataArtifactDownloadReport getMetadataArtifactReport(ModuleRevisionId id) {\n        return parser.getMetadataArtifactReport(id);\n    }\n\n    /**\n     * Returns the <tt>ModuleRevisionId</tt> of the resolved module.\n     */\n    public ModuleRevisionId getResolvedModule() {\n        return parser.getResolvedModule();", "functions": [{"function_name": "parse", "code": "    public void parse(File report) throws ParseException {\n        if (!report.exists()) {\n            throw new IllegalStateException(\"Report file '\" + report.getAbsolutePath()\n                    + \"' does not exist.\");\n        }\n\n        parser = new SaxXmlReportParser(report);\n        try {\n            parser.parse();\n        } catch (Exception e) {\n            ParseException pe = new ParseException(\"failed to parse report: \" + report + \": \"\n                    + e.getMessage(), 0);\n            pe.initCause(e);\n            throw pe;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "ASSIGN", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [4, 7], [4, 8], [1, 9], [5, 10], [2, 11], [4, 12], [11, 13], [8, 14], [13, 15], [14, 16], [14, 17], [15, 18], [15, 19], [17, 20], [17, 21], [19, 22], [19, 23], [21, 24], [21, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 4], [8, 4], [9, 1], [10, 5], [11, 2], [12, 4], [13, 11], [14, 8], [15, 13], [16, 14], [17, 14], [18, 15], [19, 15], [20, 17], [21, 17], [22, 19], [23, 19], [24, 21], [25, 21], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getArtifacts", "code": "    public Artifact[] getArtifacts() {\n        return (Artifact[]) parser.getArtifacts().toArray(\n            new Artifact[parser.getArtifacts().size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getArtifactReports", "code": "    public ArtifactDownloadReport[] getArtifactReports() {\n        return (ArtifactDownloadReport[]) parser.getArtifactReports().toArray(\n            new ArtifactDownloadReport[parser.getArtifactReports().size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDependencyRevisionIds", "code": "    public ModuleRevisionId[] getDependencyRevisionIds() {\n        return (ModuleRevisionId[]) parser.getModuleRevisionIds().toArray(\n            new ModuleRevisionId[parser.getModuleRevisionIds().size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getRealDependencyRevisionIds", "code": "    public ModuleRevisionId[] getRealDependencyRevisionIds() {\n        return (ModuleRevisionId[]) parser.getRealModuleRevisionIds().toArray(\n            new ModuleRevisionId[parser.getRealModuleRevisionIds().size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMetadataArtifactReport", "code": "    public MetadataArtifactDownloadReport getMetadataArtifactReport(ModuleRevisionId id) {\n        return parser.getMetadataArtifactReport(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResolvedModule", "code": "    public ModuleRevisionId getResolvedModule() {\n        return parser.getResolvedModule();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.2-4243", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/gui/FloatingWindowContainer.java", "language": "java", "name": "org.gjt.sp.jedit.gui.FloatingWindowContainer", "code": "public class FloatingWindowContainer extends JFrame implements DockableWindowContainer\n{\n\t//{{{ FloatingWindowContainer constructor\n\tpublic FloatingWindowContainer(DockableWindowManager dockableWindowManager,\n\t\tboolean clone)\n\t{\n\t\tthis.dockableWindowManager = dockableWindowManager;\n\t\tthis.clone = clone;\n\t\tsetIconImage(GUIUtilities.getPluginIcon());\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\n\t\tBox caption = new Box(BoxLayout.X_AXIS);\n\t\tcaption.add(menu = new RolloverButton(GUIUtilities\n\t\t\t.loadIcon(\"ToolbarMenu.gif\")));\n\t\tmenu.addMouseListener(new MouseHandler());\n\t\tBox separatorBox = new Box(BoxLayout.Y_AXIS);\n\t\tseparatorBox.add(Box.createVerticalStrut(3));\n\t\tseparatorBox.add(new JSeparator(JSeparator.HORIZONTAL));\n\t\tseparatorBox.add(Box.createVerticalStrut(3));\n\t\tcaption.add(separatorBox);\n\t\tgetContentPane().add(BorderLayout.NORTH,caption);\n\t} //}}}\n\n\t//{{{ register() method\n\tpublic void register(DockableWindowManager.Entry entry)\n\t{\n\t\tthis.entry = entry;\n\t\tsetTitle(entry.title);\n\n\t\tgetContentPane().add(BorderLayout.CENTER,entry.win);\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,entry.factory.name);\n\t\tsetVisible(true);\n\t} //}}}\n\n\t//{{{ remove() method\n\tpublic void remove(DockableWindowManager.Entry entry)\n\t{\n\t\tentry.container = null;\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ unregister() method\n\tpublic void unregister(DockableWindowManager.Entry entry)\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ show() method\n\tpublic void show(final DockableWindowManager.Entry entry)\n\t{\n\t\tif(entry == null)\n\t\t\tdispose();\n\t\telse\n\t\t{\n\t\t\ttoFront();\n\t\t\trequestFocus();\n\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tif(entry.win instanceof DefaultFocusComponent)\n\t\t\t\t\t{\n\t\t\t\t\t\t((DefaultFocusComponent)entry.win)\n\t\t\t\t\t\t\t.focusOnDefaultComponent();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} //}}}\n\n\t//{{{ isVisible() method\n\tpublic boolean isVisible(DockableWindowManager.Entry entry)\n\t{\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ dispose() method\n\tpublic void dispose()\n\t{\n\t\tGUIUtilities.saveGeometry(this,entry.factory.name);\n\t\tentry.container = null;\n\t\tentry.win = null;\n\t\tsuper.dispose();\n\t} //}}}\n\n\t//{{{ getDockableWindowManager() method\n\tpublic DockableWindowManager getDockableWindowManager()\n\t{\n\t\treturn dockableWindowManager;\n\t} //}}}\n\n\t//{{{ getMinimumSize() method\n\tpublic Dimension getMinimumSize()\n\t{\n\t\treturn new Dimension(0,0);\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate DockableWindowManager dockableWindowManager;\n\tprivate boolean clone;\n\tprivate DockableWindowManager.Entry entry;\n\tprivate JButton menu;\n\t//}}}\n\n\t//{{{ MouseHandler class\n\tclass MouseHandler extends MouseAdapter\n\t{\n\t\tJPopupMenu popup;\n\n\t\tpublic void mousePressed(MouseEvent evt)\n\t\t{\n\t\t\tif(popup != null && popup.isVisible())\n\t\t\t\tpopup.setVisible(false);\n\t\t\telse\n\t\t\t{\n\t\t\t\tpopup = dockableWindowManager.createPopupMenu(\n\t\t\t\t\tFloatingWindowContainer.this,\n\t\t\t\t\tentry.factory.name,clone);\n\t\t\t\tGUIUtilities.showPopupMenu(popup,\n\t\t\t\t\tmenu,menu.getX(),menu.getY() + menu.getHeight(),\n\t\t\t\t\tfalse);", "functions": [{"function_name": "register", "code": "\tpublic void register(DockableWindowManager.Entry entry)\n\t{\n\t\tthis.entry = entry;\n\t\tsetTitle(entry.title);\n\n\t\tgetContentPane().add(BorderLayout.CENTER,entry.win);\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,entry.factory.name);\n\t\tsetVisible(true);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "remove", "code": "\tpublic void remove(DockableWindowManager.Entry entry)\n\t{\n\t\tentry.container = null;\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unregister", "code": "\tpublic void unregister(DockableWindowManager.Entry entry)\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "show", "code": "\tpublic void show(final DockableWindowManager.Entry entry)\n\t{\n\t\tif(entry == null)\n\t\t\tdispose();\n\t\telse\n\t\t{\n\t\t\ttoFront();\n\t\t\trequestFocus();\n\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tif(entry.win instanceof DefaultFocusComponent)\n\t\t\t\t\t{\n\t\t\t\t\t\t((DefaultFocusComponent)entry.win)\n\t\t\t\t\t\t\t.focusOnDefaultComponent();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tentry.win.requestDefaultFocus();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "IF", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [6, 9], [9, 10], [10, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 6], [10, 9], [11, 10], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "isVisible", "code": "\tpublic boolean isVisible(DockableWindowManager.Entry entry)\n\t{\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispose", "code": "\tpublic void dispose()\n\t{\n\t\tGUIUtilities.saveGeometry(this,entry.factory.name);\n\t\tentry.container = null;\n\t\tentry.win = null;\n\t\tsuper.dispose();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDockableWindowManager", "code": "\tpublic DockableWindowManager getDockableWindowManager()\n\t{\n\t\treturn dockableWindowManager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMinimumSize", "code": "\tpublic Dimension getMinimumSize()\n\t{\n\t\treturn new Dimension(0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "FloatingWindowContainer", "code": "\tpublic FloatingWindowContainer(DockableWindowManager dockableWindowManager,\n\t\tboolean clone)\n\t{\n\t\tthis.dockableWindowManager = dockableWindowManager;\n\t\tthis.clone = clone;\n\t\tsetIconImage(GUIUtilities.getPluginIcon());\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\n\t\tBox caption = new Box(BoxLayout.X_AXIS);\n\t\tcaption.add(menu = new RolloverButton(GUIUtilities\n\t\t\t.loadIcon(\"ToolbarMenu.gif\")));\n\t\tmenu.addMouseListener(new MouseHandler());\n\t\tBox separatorBox = new Box(BoxLayout.Y_AXIS);\n\t\tseparatorBox.add(Box.createVerticalStrut(3));\n\t\tseparatorBox.add(new JSeparator(JSeparator.HORIZONTAL));\n\t\tseparatorBox.add(Box.createVerticalStrut(3));\n\t\tcaption.add(separatorBox);\n\t\tgetContentPane().add(BorderLayout.NORTH,caption);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [5, 16], [7, 17], [8, 18], [9, 19], [1, 20], [10, 21], [11, 22], [2, 23], [13, 24], [17, 25], [19, 26], [22, 27], [27, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 5], [17, 7], [18, 8], [19, 9], [20, 1], [21, 10], [22, 11], [23, 2], [24, 13], [25, 17], [26, 19], [27, 22], [28, 27], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}], "label": 1}
{"sample_id": "ant-1.6-689", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/NoBannerLogger.java", "language": "java", "name": "org.apache.tools.ant.NoBannerLogger", "code": "public class NoBannerLogger extends DefaultLogger {\n\n    /**\n     * Name of the current target, if it should\n     * be displayed on the next message. This is\n     * set when a target starts building, and reset\n     * to <code>null</code> after the first message for\n     * the target is logged.\n     */\n    protected String targetName;\n\n    /** Sole constructor. */\n    public NoBannerLogger() {\n    }\n\n    /**\n     * Notes the name of the target so it can be logged\n     * if it generates any messages.\n     *\n     * @param event A BuildEvent containing target information.\n     *              Must not be <code>null</code>.\n     */\n    public void targetStarted(BuildEvent event) {\n        targetName = event.getTarget().getName();\n    }\n\n    /**\n     * Resets the current target name to <code>null</code>.\n     *\n     * @param event Ignored in this implementation.\n     */\n    public void targetFinished(BuildEvent event) {\n        targetName = null;\n    }\n\n    /**\n     * Logs a message for a target if it is of an appropriate\n     * priority, also logging the name of the target if this\n     * is the first message which needs to be logged for the\n     * target.\n     *\n     * @param event A BuildEvent containing message information.\n     *              Must not be <code>null</code>.\n     */\n    public void messageLogged(BuildEvent event) {\n\n        if (event.getPriority() > msgOutputLevel\n            || null == event.getMessage()\n            || \"\".equals(event.getMessage().trim())) {\n                return;\n        }\n\n        if (null != targetName) {\n            out.println(StringUtils.LINE_SEP + targetName + \":\");\n            targetName = null;\n        }\n\n        super.messageLogged(event);", "functions": [{"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {\n        targetName = event.getTarget().getName();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {\n        targetName = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {\n\n        if (event.getPriority() > msgOutputLevel\n            || null == event.getMessage()\n            || \"\".equals(event.getMessage().trim())) {\n                return;\n        }\n\n        if (null != targetName) {\n            out.println(StringUtils.LINE_SEP + targetName + \":\");\n            targetName = null;\n        }\n\n        super.messageLogged(event);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [5, 8], [5, 9], [1, 10], [1, 11], [8, 12], [9, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [13, 19], [14, 20], [16, 21], [16, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 5], [9, 5], [10, 1], [11, 1], [12, 8], [13, 9], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 13], [20, 14], [21, 16], [22, 16], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "NoBannerLogger", "code": "    public NoBannerLogger() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "log4j-1.2-4976", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/spi/RootCategory.java", "language": "java", "name": "org.apache.log4j.spi.RootCategory", "code": "final public class RootCategory extends Logger {\n\n  /**\n     The root category names itself as \"root\". However, the root\n     category cannot be retrieved by name.  \n  */\n  public\n  RootCategory(Level level) {\n    super(\"root\");\n    setLevel(level);\n  }\n\n  \n  /**\n     Return the assigned level value without walking the category\n     hierarchy.\n  */\n  final\n  public \n  Level getChainedLevel() {\n    return level;\n  }\n\n  /**\n     Setting a null value to the level of the root category may have catastrophic\n     results. We prevent this here.\n\n     @since 0.8.3 */\n  final  \n  public\n  void setLevel(Level level) {\n    if(level == null) {\n      LogLog.error(\"You have tried to set a null level to root.\",\n\t\t   new Throwable());\n    }\n    else {\n      this.level = level;\n    }\n  }\n\n  final  \n  public\n  void setPriority(Level level) {\n    setLevel(level);", "functions": [{"function_name": "getChainedLevel", "code": "  Level getChainedLevel() {\n    return level;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLevel", "code": "  void setLevel(Level level) {\n    if(level == null) {\n      LogLog.error(\"You have tried to set a null level to root.\",\n\t\t   new Throwable());\n    }\n    else {\n      this.level = level;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setPriority", "code": "  void setPriority(Level level) {\n    setLevel(level);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RootCategory", "code": "  RootCategory(Level level) {\n    super(\"root\");\n    setLevel(level);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "camel-1.6-3194", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/Route.java", "language": "java", "name": "org.apache.camel.Route", "code": "public class Route<E extends Exchange> {\n    public static final String ID_PROPERTY = \"id\";\n    public static final String PARENT_PROPERTY = \"parent\";\n    public static final String GROUP_PROPERTY = \"group\";\n\n    private final Map<String, Object> properties = new HashMap<String, Object>(16);\n    private Endpoint<E> endpoint;\n    private List<Service> services = new ArrayList<Service>();\n\n    public Route(Endpoint<E> endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    public Route(Endpoint<E> endpoint, Service... services) {\n        this(endpoint);\n        for (Service service : services) {\n            addService(service);\n        }\n    }\n\n    @Override\n    public String toString() {\n        return \"Route\";\n    }\n\n    public Endpoint<E> getEndpoint() {\n        return endpoint;\n    }\n\n    public void setEndpoint(Endpoint<E> endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    /**\n     * This property map is used to associate information about\n     * the route.\n     */\n    public Map<String, Object> getProperties() {\n        return properties;\n    }\n\n    public List<Service> getServicesForRoute() throws Exception {\n        List<Service> servicesForRoute = new ArrayList<Service>(getServices());\n        addServices(servicesForRoute);\n        return servicesForRoute;\n    }\n\n    /**\n     * Returns the additional services required for this particular route\n     */\n    public List<Service> getServices() {\n        return services;\n    }\n\n    public void setServices(List<Service> services) {\n        this.services = services;\n    }\n\n    public void addService(Service service) {\n        getServices().add(service);\n    }\n\n    /**\n     * Strategy method to allow derived classes to lazily load services for the route\n     */\n    protected void addServices(List<Service> services) throws Exception {", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Route\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndpoint", "code": "    public Endpoint<E> getEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEndpoint", "code": "    public void setEndpoint(Endpoint<E> endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProperties", "code": "    public Map<String, Object> getProperties() {\n        return properties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getServicesForRoute", "code": "    public List<Service> getServicesForRoute() throws Exception {\n        List<Service> servicesForRoute = new ArrayList<Service>(getServices());\n        addServices(servicesForRoute);\n        return servicesForRoute;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getServices", "code": "    public List<Service> getServices() {\n        return services;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setServices", "code": "    public void setServices(List<Service> services) {\n        this.services = services;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addService", "code": "    public void addService(Service service) {\n        getServices().add(service);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addServices", "code": "    protected void addServices(List<Service> services) throws Exception {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Route", "code": "    public Route(Endpoint<E> endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Route", "code": "    public Route(Endpoint<E> endpoint, Service... services) {\n        this(endpoint);\n        for (Service service : services) {\n            addService(service);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "log4j-1.2-5019", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/TTCCLayout.java", "language": "java", "name": "org.apache.log4j.TTCCLayout", "code": "public class TTCCLayout extends DateLayout {\n\n  // Internal representation of options\n  private boolean threadPrinting    = true;\n  private boolean categoryPrefixing = true;\n  private boolean contextPrinting   = true;\n\n\n  protected final StringBuffer buf = new StringBuffer(256);\n\n\n  /**\n     Instantiate a TTCCLayout object with {@link\n     org.apache.log4j.helpers.RelativeTimeDateFormat} as the date\n     formatter in the local time zone.\n\n     @since 0.7.5 */\n  public TTCCLayout() {\n    this.setDateFormat(RELATIVE_TIME_DATE_FORMAT, null);\n  }\n\n\n  /**\n     Instantiate a TTCCLayout object using the local time zone. The\n     DateFormat used will depend on the <code>dateFormatType</code>.\n\n     <p>This constructor just calls the {@link\n     DateLayout#setDateFormat} method.\n\n     */\n  public TTCCLayout(String dateFormatType) {\n    this.setDateFormat(dateFormatType);\n  }\n\n\n  /**\n     The <b>ThreadPrinting</b> option specifies whether the name of the\n     current thread is part of log output or not. This is true by default.\n   */\n  public\n  void setThreadPrinting(boolean threadPrinting) {\n    this.threadPrinting = threadPrinting;\n  }\n\n  /**\n     Returns value of the <b>ThreadPrinting</b> option.\n   */\n  public\n  boolean getThreadPrinting() {\n    return threadPrinting;\n  }\n\n  /**\n     The <b>CategoryPrefixing</b> option specifies whether {@link Category}\n     name is part of log output or not. This is true by default.\n   */\n  public\n  void setCategoryPrefixing(boolean categoryPrefixing) {\n    this.categoryPrefixing = categoryPrefixing;\n  }\n\n  /**\n     Returns value of the <b>CategoryPrefixing</b> option.\n   */\n  public\n  boolean getCategoryPrefixing() {\n    return categoryPrefixing;\n  }\n\n  /**\n     The <b>ContextPrinting</b> option specifies log output will include\n     the nested context information belonging to the current thread.\n     This is true by default.\n   */\n  public\n  void setContextPrinting(boolean contextPrinting) {\n    this.contextPrinting = contextPrinting;\n  }\n\n  /**\n     Returns value of the <b>ContextPrinting</b> option.\n   */\n  public\n  boolean getContextPrinting() {\n    return contextPrinting;\n  }\n\n  /**\n   In addition to the level of the statement and message, the\n   returned byte array includes time, thread, category and {@link NDC}\n   information.\n\n   <p>Time, thread, category and diagnostic context are printed\n   depending on options.\n\n    @param event The event to format\n\n  */\n  public\n  String format(LoggingEvent event) {\n\n    // Reset buf\n    buf.setLength(0);\n\n    dateFormat(buf, event);\n\n    if(this.threadPrinting) {\n      buf.append('[');\n      buf.append(event.getThreadName());\n      buf.append(\"] \");\n    }\n    buf.append(event.getLevel().toString());\n    buf.append(' ');\n\n    if(this.categoryPrefixing) {\n      buf.append(event.getLoggerName());\n      buf.append(' ');\n    }\n\n    if(this.contextPrinting) {\n       String ndc = event.getNDC();\n\n      if(ndc != null) {\n\tbuf.append(ndc);\n\tbuf.append(' ');\n      }\n    }\n    buf.append(\"- \");\n    buf.append(event.getRenderedMessage());\n    buf.append(LINE_SEP);\n    return buf.toString();\n  }\n\n /**\n     The TTCCLayout does not handle the throwable contained within\n     {@link LoggingEvent LoggingEvents}. Thus, it returns\n     <code>true</code>.\n\n     @since version 0.8.4 */\n  public\n  boolean ignoresThrowable() {\n    return true;", "functions": [{"function_name": "setThreadPrinting", "code": "  void setThreadPrinting(boolean threadPrinting) {\n    this.threadPrinting = threadPrinting;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getThreadPrinting", "code": "  boolean getThreadPrinting() {\n    return threadPrinting;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCategoryPrefixing", "code": "  void setCategoryPrefixing(boolean categoryPrefixing) {\n    this.categoryPrefixing = categoryPrefixing;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCategoryPrefixing", "code": "  boolean getCategoryPrefixing() {\n    return categoryPrefixing;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setContextPrinting", "code": "  void setContextPrinting(boolean contextPrinting) {\n    this.contextPrinting = contextPrinting;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getContextPrinting", "code": "  boolean getContextPrinting() {\n    return contextPrinting;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "format", "code": "  String format(LoggingEvent event) {\n\n    // Reset buf\n    buf.setLength(0);\n\n    dateFormat(buf, event);\n\n    if(this.threadPrinting) {\n      buf.append('[');\n      buf.append(event.getThreadName());\n      buf.append(\"] \");\n    }\n    buf.append(event.getLevel().toString());\n    buf.append(' ');\n\n    if(this.categoryPrefixing) {\n      buf.append(event.getLoggerName());\n      buf.append(' ');\n    }\n\n    if(this.contextPrinting) {\n       String ndc = event.getNDC();\n\n      if(ndc != null) {\n\tbuf.append(ndc);\n\tbuf.append(' ');\n      }\n    }\n    buf.append(\"- \");\n    buf.append(event.getRenderedMessage());\n    buf.append(LINE_SEP);\n    return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [8, 14], [9, 15], [2, 16], [2, 17], [10, 18], [11, 19], [13, 20], [16, 21], [3, 22], [3, 23], [19, 24], [4, 25], [4, 26], [4, 27], [21, 28], [17, 29], [22, 30], [23, 31], [25, 32], [26, 33], [27, 34], [16, 35], [16, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 8], [15, 9], [16, 2], [17, 2], [18, 10], [19, 11], [20, 13], [21, 16], [22, 3], [23, 3], [24, 19], [25, 4], [26, 4], [27, 4], [28, 21], [29, 17], [30, 22], [31, 23], [32, 25], [33, 26], [34, 27], [35, 16], [36, 16], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "ignoresThrowable", "code": "  boolean ignoresThrowable() {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TTCCLayout", "code": "  public TTCCLayout() {\n    this.setDateFormat(RELATIVE_TIME_DATE_FORMAT, null);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TTCCLayout", "code": "  public TTCCLayout(String dateFormatType) {\n    this.setDateFormat(dateFormatType);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-1.5-5169", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/ValueRangeRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.ValueRangeRecord", "code": "public class ValueRangeRecord\n    extends Record\n{\n    public final static short      sid                             = 0x101f;\n    private  double     field_1_minimumAxisValue;\n    private  double     field_2_maximumAxisValue;\n    private  double     field_3_majorIncrement;\n    private  double     field_4_minorIncrement;\n    private  double     field_5_categoryAxisCross;\n    private  short      field_6_options;\n    private BitField   automaticMinimum                           = new BitField(0x1);\n    private BitField   automaticMaximum                           = new BitField(0x2);\n    private BitField   automaticMajor                             = new BitField(0x4);\n    private BitField   automaticMinor                             = new BitField(0x8);\n    private BitField   automaticCategoryCrossing                  = new BitField(0x10);\n    private BitField   logarithmicScale                           = new BitField(0x20);\n    private BitField   valuesInReverse                            = new BitField(0x40);\n    private BitField   crossCategoryAxisAtMaximum                 = new BitField(0x80);\n    private BitField   reserved                                   = new BitField(0x100);\n\n\n    public ValueRangeRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a ValueRange record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x101f or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public ValueRangeRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a ValueRange record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x101f or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public ValueRangeRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a ValueRange record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_minimumAxisValue        = LittleEndian.getDouble(data, 0x0 + offset);\n        field_2_maximumAxisValue        = LittleEndian.getDouble(data, 0x8 + offset);\n        field_3_majorIncrement          = LittleEndian.getDouble(data, 0x10 + offset);\n        field_4_minorIncrement          = LittleEndian.getDouble(data, 0x18 + offset);\n        field_5_categoryAxisCross       = LittleEndian.getDouble(data, 0x20 + offset);\n        field_6_options                 = LittleEndian.getShort(data, 0x28 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[ValueRange]\\n\");\n\n        buffer.append(\"    .minimumAxisValue     = \")\n            .append(\" (\").append(getMinimumAxisValue()).append(\" )\\n\");\n\n        buffer.append(\"    .maximumAxisValue     = \")\n            .append(\" (\").append(getMaximumAxisValue()).append(\" )\\n\");\n\n        buffer.append(\"    .majorIncrement       = \")\n            .append(\" (\").append(getMajorIncrement()).append(\" )\\n\");\n\n        buffer.append(\"    .minorIncrement       = \")\n            .append(\" (\").append(getMinorIncrement()).append(\" )\\n\");\n\n        buffer.append(\"    .categoryAxisCross    = \")\n            .append(\" (\").append(getCategoryAxisCross()).append(\" )\\n\");\n\n        buffer.append(\"    .options              = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getOptions()))\n            .append(\" (\").append(getOptions()).append(\" )\\n\");\n        buffer.append(\"         .automaticMinimum         = \").append(isAutomaticMinimum    ()).append('\\n');\n        buffer.append(\"         .automaticMaximum         = \").append(isAutomaticMaximum    ()).append('\\n');\n        buffer.append(\"         .automaticMajor           = \").append(isAutomaticMajor      ()).append('\\n');\n        buffer.append(\"         .automaticMinor           = \").append(isAutomaticMinor      ()).append('\\n');\n        buffer.append(\"         .automaticCategoryCrossing     = \").append(isAutomaticCategoryCrossing()).append('\\n');\n        buffer.append(\"         .logarithmicScale         = \").append(isLogarithmicScale    ()).append('\\n');\n        buffer.append(\"         .valuesInReverse          = \").append(isValuesInReverse     ()).append('\\n');\n        buffer.append(\"         .crossCategoryAxisAtMaximum     = \").append(isCrossCategoryAxisAtMaximum()).append('\\n');\n        buffer.append(\"         .reserved                 = \").append(isReserved            ()).append('\\n');\n\n        buffer.append(\"[/ValueRange]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putDouble(data, 4 + offset, field_1_minimumAxisValue);\n        LittleEndian.putDouble(data, 12 + offset, field_2_maximumAxisValue);\n        LittleEndian.putDouble(data, 20 + offset, field_3_majorIncrement);\n        LittleEndian.putDouble(data, 28 + offset, field_4_minorIncrement);\n        LittleEndian.putDouble(data, 36 + offset, field_5_categoryAxisCross);\n        LittleEndian.putShort(data, 44 + offset, field_6_options);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4 + 8 + 8 + 8 + 8 + 8 + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n\n    /**\n     * Get the minimum axis value field for the ValueRange record.\n     */\n    public double getMinimumAxisValue()\n    {\n        return field_1_minimumAxisValue;\n    }\n\n    /**\n     * Set the minimum axis value field for the ValueRange record.\n     */\n    public void setMinimumAxisValue(double field_1_minimumAxisValue)\n    {\n        this.field_1_minimumAxisValue = field_1_minimumAxisValue;\n    }\n\n    /**\n     * Get the maximum axis value field for the ValueRange record.\n     */\n    public double getMaximumAxisValue()\n    {\n        return field_2_maximumAxisValue;\n    }\n\n    /**\n     * Set the maximum axis value field for the ValueRange record.\n     */\n    public void setMaximumAxisValue(double field_2_maximumAxisValue)\n    {\n        this.field_2_maximumAxisValue = field_2_maximumAxisValue;\n    }\n\n    /**\n     * Get the major increment field for the ValueRange record.\n     */\n    public double getMajorIncrement()\n    {\n        return field_3_majorIncrement;\n    }\n\n    /**\n     * Set the major increment field for the ValueRange record.\n     */\n    public void setMajorIncrement(double field_3_majorIncrement)\n    {\n        this.field_3_majorIncrement = field_3_majorIncrement;\n    }\n\n    /**\n     * Get the minor increment field for the ValueRange record.\n     */\n    public double getMinorIncrement()\n    {\n        return field_4_minorIncrement;\n    }\n\n    /**\n     * Set the minor increment field for the ValueRange record.\n     */\n    public void setMinorIncrement(double field_4_minorIncrement)\n    {\n        this.field_4_minorIncrement = field_4_minorIncrement;\n    }\n\n    /**\n     * Get the category axis cross field for the ValueRange record.\n     */\n    public double getCategoryAxisCross()\n    {\n        return field_5_categoryAxisCross;\n    }\n\n    /**\n     * Set the category axis cross field for the ValueRange record.\n     */\n    public void setCategoryAxisCross(double field_5_categoryAxisCross)\n    {\n        this.field_5_categoryAxisCross = field_5_categoryAxisCross;\n    }\n\n    /**\n     * Get the options field for the ValueRange record.\n     */\n    public short getOptions()\n    {\n        return field_6_options;\n    }\n\n    /**\n     * Set the options field for the ValueRange record.\n     */\n    public void setOptions(short field_6_options)\n    {\n        this.field_6_options = field_6_options;\n    }\n\n    /**\n     * Sets the automatic minimum field value.\n     * automatic minimum value selected\n     */\n    public void setAutomaticMinimum(boolean value)\n    {\n        field_6_options = automaticMinimum.setShortBoolean(field_6_options, value);\n    }\n\n    /**\n     * automatic minimum value selected\n     * @return  the automatic minimum field value.\n     */\n    public boolean isAutomaticMinimum()\n    {\n        return automaticMinimum.isSet(field_6_options);\n    }\n\n    /**\n     * Sets the automatic maximum field value.\n     * automatic maximum value selected\n     */\n    public void setAutomaticMaximum(boolean value)\n    {\n        field_6_options = automaticMaximum.setShortBoolean(field_6_options, value);\n    }\n\n    /**\n     * automatic maximum value selected\n     * @return  the automatic maximum field value.\n     */\n    public boolean isAutomaticMaximum()\n    {\n        return automaticMaximum.isSet(field_6_options);\n    }\n\n    /**\n     * Sets the automatic major field value.\n     * automatic major unit selected\n     */\n    public void setAutomaticMajor(boolean value)\n    {\n        field_6_options = automaticMajor.setShortBoolean(field_6_options, value);\n    }\n\n    /**\n     * automatic major unit selected\n     * @return  the automatic major field value.\n     */\n    public boolean isAutomaticMajor()\n    {\n        return automaticMajor.isSet(field_6_options);\n    }\n\n    /**\n     * Sets the automatic minor field value.\n     * automatic minor unit selected\n     */\n    public void setAutomaticMinor(boolean value)\n    {\n        field_6_options = automaticMinor.setShortBoolean(field_6_options, value);\n    }\n\n    /**\n     * automatic minor unit selected\n     * @return  the automatic minor field value.\n     */\n    public boolean isAutomaticMinor()\n    {\n        return automaticMinor.isSet(field_6_options);\n    }\n\n    /**\n     * Sets the automatic category crossing field value.\n     * category crossing point is automatically selected\n     */\n    public void setAutomaticCategoryCrossing(boolean value)\n    {\n        field_6_options = automaticCategoryCrossing.setShortBoolean(field_6_options, value);\n    }\n\n    /**\n     * category crossing point is automatically selected\n     * @return  the automatic category crossing field value.\n     */\n    public boolean isAutomaticCategoryCrossing()\n    {\n        return automaticCategoryCrossing.isSet(field_6_options);\n    }\n\n    /**\n     * Sets the logarithmic scale field value.\n     * use logarithmic scale\n     */\n    public void setLogarithmicScale(boolean value)\n    {\n        field_6_options = logarithmicScale.setShortBoolean(field_6_options, value);\n    }\n\n    /**\n     * use logarithmic scale\n     * @return  the logarithmic scale field value.\n     */\n    public boolean isLogarithmicScale()\n    {\n        return logarithmicScale.isSet(field_6_options);\n    }\n\n    /**\n     * Sets the values in reverse field value.\n     * values are reverses in graph\n     */\n    public void setValuesInReverse(boolean value)\n    {\n        field_6_options = valuesInReverse.setShortBoolean(field_6_options, value);\n    }\n\n    /**\n     * values are reverses in graph\n     * @return  the values in reverse field value.\n     */\n    public boolean isValuesInReverse()\n    {\n        return valuesInReverse.isSet(field_6_options);\n    }\n\n    /**\n     * Sets the cross category axis at maximum field value.\n     * category axis to cross at maximum value\n     */\n    public void setCrossCategoryAxisAtMaximum(boolean value)\n    {\n        field_6_options = crossCategoryAxisAtMaximum.setShortBoolean(field_6_options, value);\n    }\n\n    /**\n     * category axis to cross at maximum value\n     * @return  the cross category axis at maximum field value.\n     */\n    public boolean isCrossCategoryAxisAtMaximum()\n    {\n        return crossCategoryAxisAtMaximum.isSet(field_6_options);\n    }\n\n    /**\n     * Sets the reserved field value.\n     * reserved, must equal 1 (excel dev. guide says otherwise)\n     */\n    public void setReserved(boolean value)\n    {\n        field_6_options = reserved.setShortBoolean(field_6_options, value);\n    }\n\n    /**\n     * reserved, must equal 1 (excel dev. guide says otherwise)\n     * @return  the reserved field value.\n     */\n    public boolean isReserved()\n    {\n        return reserved.isSet(field_6_options);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a ValueRange record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_minimumAxisValue        = LittleEndian.getDouble(data, 0x0 + offset);\n        field_2_maximumAxisValue        = LittleEndian.getDouble(data, 0x8 + offset);\n        field_3_majorIncrement          = LittleEndian.getDouble(data, 0x10 + offset);\n        field_4_minorIncrement          = LittleEndian.getDouble(data, 0x18 + offset);\n        field_5_categoryAxisCross       = LittleEndian.getDouble(data, 0x20 + offset);\n        field_6_options                 = LittleEndian.getShort(data, 0x28 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [18, 24], [19, 25], [20, 26], [21, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 18], [25, 19], [26, 20], [27, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[ValueRange]\\n\");\n\n        buffer.append(\"    .minimumAxisValue     = \")\n            .append(\" (\").append(getMinimumAxisValue()).append(\" )\\n\");\n\n        buffer.append(\"    .maximumAxisValue     = \")\n            .append(\" (\").append(getMaximumAxisValue()).append(\" )\\n\");\n\n        buffer.append(\"    .majorIncrement       = \")\n            .append(\" (\").append(getMajorIncrement()).append(\" )\\n\");\n\n        buffer.append(\"    .minorIncrement       = \")\n            .append(\" (\").append(getMinorIncrement()).append(\" )\\n\");\n\n        buffer.append(\"    .categoryAxisCross    = \")\n            .append(\" (\").append(getCategoryAxisCross()).append(\" )\\n\");\n\n        buffer.append(\"    .options              = \")\n            .append(\"0x\")\n            .append(HexDump.toHex((short)getOptions()))\n            .append(\" (\").append(getOptions()).append(\" )\\n\");\n        buffer.append(\"         .automaticMinimum         = \").append(isAutomaticMinimum    ()).append('\\n');\n        buffer.append(\"         .automaticMaximum         = \").append(isAutomaticMaximum    ()).append('\\n');\n        buffer.append(\"         .automaticMajor           = \").append(isAutomaticMajor      ()).append('\\n');\n        buffer.append(\"         .automaticMinor           = \").append(isAutomaticMinor      ()).append('\\n');\n        buffer.append(\"         .automaticCategoryCrossing     = \").append(isAutomaticCategoryCrossing()).append('\\n');\n        buffer.append(\"         .logarithmicScale         = \").append(isLogarithmicScale    ()).append('\\n');\n        buffer.append(\"         .valuesInReverse          = \").append(isValuesInReverse     ()).append('\\n');\n        buffer.append(\"         .crossCategoryAxisAtMaximum     = \").append(isCrossCategoryAxisAtMaximum()).append('\\n');\n        buffer.append(\"         .reserved                 = \").append(isReserved            ()).append('\\n');\n\n        buffer.append(\"[/ValueRange]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [4, 21], [5, 22], [5, 23], [5, 24], [6, 25], [6, 26], [6, 27], [7, 28], [7, 29], [7, 30], [8, 31], [8, 32], [8, 33], [9, 34], [9, 35], [9, 36], [10, 37], [10, 38], [10, 39], [11, 40], [11, 41], [11, 42], [12, 43], [12, 44], [12, 45], [13, 46], [13, 47], [13, 48], [14, 49], [14, 50], [14, 51], [14, 52], [14, 53], [14, 54], [15, 55], [15, 56], [15, 57], [15, 58], [16, 59], [16, 60], [16, 61], [16, 62], [17, 63], [17, 64], [17, 65], [17, 66], [18, 67], [18, 68], [18, 69], [18, 70], [19, 71], [19, 72], [19, 73], [19, 74], [20, 75], [2, 76], [23, 77], [24, 78], [26, 79], [27, 80], [29, 81], [30, 82], [32, 83], [33, 84], [35, 85], [36, 86], [38, 87], [39, 88], [41, 89], [42, 90], [44, 91], [45, 92], [47, 93], [48, 94], [50, 95], [51, 96], [52, 97], [53, 98], [54, 99], [56, 100], [57, 101], [58, 102], [60, 103], [61, 104], [62, 105], [64, 106], [65, 107], [66, 108], [68, 109], [69, 110], [70, 111], [72, 112], [73, 113], [74, 114], [98, 115], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 4], [22, 5], [23, 5], [24, 5], [25, 6], [26, 6], [27, 6], [28, 7], [29, 7], [30, 7], [31, 8], [32, 8], [33, 8], [34, 9], [35, 9], [36, 9], [37, 10], [38, 10], [39, 10], [40, 11], [41, 11], [42, 11], [43, 12], [44, 12], [45, 12], [46, 13], [47, 13], [48, 13], [49, 14], [50, 14], [51, 14], [52, 14], [53, 14], [54, 14], [55, 15], [56, 15], [57, 15], [58, 15], [59, 16], [60, 16], [61, 16], [62, 16], [63, 17], [64, 17], [65, 17], [66, 17], [67, 18], [68, 18], [69, 18], [70, 18], [71, 19], [72, 19], [73, 19], [74, 19], [75, 20], [76, 2], [77, 23], [78, 24], [79, 26], [80, 27], [81, 29], [82, 30], [83, 32], [84, 33], [85, 35], [86, 36], [87, 38], [88, 39], [89, 41], [90, 42], [91, 44], [92, 45], [93, 47], [94, 48], [95, 50], [96, 51], [97, 52], [98, 53], [99, 54], [100, 56], [101, 57], [102, 58], [103, 60], [104, 61], [105, 62], [106, 64], [107, 65], [108, 66], [109, 68], [110, 69], [111, 70], [112, 72], [113, 73], [114, 74], [115, 98], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putDouble(data, 4 + offset, field_1_minimumAxisValue);\n        LittleEndian.putDouble(data, 12 + offset, field_2_maximumAxisValue);\n        LittleEndian.putDouble(data, 20 + offset, field_3_majorIncrement);\n        LittleEndian.putDouble(data, 28 + offset, field_4_minorIncrement);\n        LittleEndian.putDouble(data, 36 + offset, field_5_categoryAxisCross);\n        LittleEndian.putShort(data, 44 + offset, field_6_options);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [5, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [18, 26], [11, 27], [19, 28], [20, 29], [27, 30], [27, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 5], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 18], [27, 11], [28, 19], [29, 20], [30, 27], [31, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4 + 8 + 8 + 8 + 8 + 8 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMinimumAxisValue", "code": "    public double getMinimumAxisValue()\n    {\n        return field_1_minimumAxisValue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMinimumAxisValue", "code": "    public void setMinimumAxisValue(double field_1_minimumAxisValue)\n    {\n        this.field_1_minimumAxisValue = field_1_minimumAxisValue;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaximumAxisValue", "code": "    public double getMaximumAxisValue()\n    {\n        return field_2_maximumAxisValue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMaximumAxisValue", "code": "    public void setMaximumAxisValue(double field_2_maximumAxisValue)\n    {\n        this.field_2_maximumAxisValue = field_2_maximumAxisValue;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMajorIncrement", "code": "    public double getMajorIncrement()\n    {\n        return field_3_majorIncrement;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMajorIncrement", "code": "    public void setMajorIncrement(double field_3_majorIncrement)\n    {\n        this.field_3_majorIncrement = field_3_majorIncrement;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMinorIncrement", "code": "    public double getMinorIncrement()\n    {\n        return field_4_minorIncrement;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMinorIncrement", "code": "    public void setMinorIncrement(double field_4_minorIncrement)\n    {\n        this.field_4_minorIncrement = field_4_minorIncrement;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCategoryAxisCross", "code": "    public double getCategoryAxisCross()\n    {\n        return field_5_categoryAxisCross;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCategoryAxisCross", "code": "    public void setCategoryAxisCross(double field_5_categoryAxisCross)\n    {\n        this.field_5_categoryAxisCross = field_5_categoryAxisCross;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptions", "code": "    public short getOptions()\n    {\n        return field_6_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOptions", "code": "    public void setOptions(short field_6_options)\n    {\n        this.field_6_options = field_6_options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutomaticMinimum", "code": "    public void setAutomaticMinimum(boolean value)\n    {\n        field_6_options = automaticMinimum.setShortBoolean(field_6_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutomaticMinimum", "code": "    public boolean isAutomaticMinimum()\n    {\n        return automaticMinimum.isSet(field_6_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutomaticMaximum", "code": "    public void setAutomaticMaximum(boolean value)\n    {\n        field_6_options = automaticMaximum.setShortBoolean(field_6_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutomaticMaximum", "code": "    public boolean isAutomaticMaximum()\n    {\n        return automaticMaximum.isSet(field_6_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutomaticMajor", "code": "    public void setAutomaticMajor(boolean value)\n    {\n        field_6_options = automaticMajor.setShortBoolean(field_6_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutomaticMajor", "code": "    public boolean isAutomaticMajor()\n    {\n        return automaticMajor.isSet(field_6_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutomaticMinor", "code": "    public void setAutomaticMinor(boolean value)\n    {\n        field_6_options = automaticMinor.setShortBoolean(field_6_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutomaticMinor", "code": "    public boolean isAutomaticMinor()\n    {\n        return automaticMinor.isSet(field_6_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutomaticCategoryCrossing", "code": "    public void setAutomaticCategoryCrossing(boolean value)\n    {\n        field_6_options = automaticCategoryCrossing.setShortBoolean(field_6_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutomaticCategoryCrossing", "code": "    public boolean isAutomaticCategoryCrossing()\n    {\n        return automaticCategoryCrossing.isSet(field_6_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLogarithmicScale", "code": "    public void setLogarithmicScale(boolean value)\n    {\n        field_6_options = logarithmicScale.setShortBoolean(field_6_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isLogarithmicScale", "code": "    public boolean isLogarithmicScale()\n    {\n        return logarithmicScale.isSet(field_6_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValuesInReverse", "code": "    public void setValuesInReverse(boolean value)\n    {\n        field_6_options = valuesInReverse.setShortBoolean(field_6_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isValuesInReverse", "code": "    public boolean isValuesInReverse()\n    {\n        return valuesInReverse.isSet(field_6_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCrossCategoryAxisAtMaximum", "code": "    public void setCrossCategoryAxisAtMaximum(boolean value)\n    {\n        field_6_options = crossCategoryAxisAtMaximum.setShortBoolean(field_6_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isCrossCategoryAxisAtMaximum", "code": "    public boolean isCrossCategoryAxisAtMaximum()\n    {\n        return crossCategoryAxisAtMaximum.isSet(field_6_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setReserved", "code": "    public void setReserved(boolean value)\n    {\n        field_6_options = reserved.setShortBoolean(field_6_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isReserved", "code": "    public boolean isReserved()\n    {\n        return reserved.isSet(field_6_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ValueRangeRecord", "code": "    public ValueRangeRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ValueRangeRecord", "code": "    public ValueRangeRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ValueRangeRecord", "code": "    public ValueRangeRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-2.0-5528", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/util/CellReference.java", "language": "java", "name": "org.apache.poi.hssf.util.CellReference", "code": "public class CellReference {\n\n    /** Creates new CellReference */\n    private int row;\n    private int col;\n    private String sheetName;\n    private boolean rowAbs;\n    private boolean colAbs;\n\n    public CellReference(String cellRef) {\n        String[] parts = separateRefParts(cellRef);\n        sheetName = parts[0];\n        String ref = parts[1];\n        if (ref.charAt(0) == '$') {\n            colAbs=true;\n            ref=ref.substring(1);\n        }\n        col = convertColStringToNum(ref);\n        ref=parts[2];\n        if (ref.charAt(0) == '$') {\n            rowAbs=true;\n            ref=ref.substring(1);\n        }\n        row = Integer.parseInt(ref)-1;\n    }\n\n    public CellReference(int pRow, int pCol) {\n        this(pRow,pCol,false,false);\n    }\n\n    public CellReference(int pRow, int pCol, boolean pAbsRow, boolean pAbsCol) {\n        row=pRow;col=pCol;\n        rowAbs = pAbsRow;\n        colAbs=pAbsCol;\n\n    }\n\n    public int getRow(){return row;}\n    public short getCol(){return (short) col;}\n    public boolean isRowAbsolute(){return rowAbs;}\n    public boolean isColAbsolute(){return colAbs;}\n    public String getSheetName(){return sheetName;}\n\n    /**\n     * takes in a column reference portion of a CellRef and converts it from\n     * ALPHA-26 number format to 0-based base 10.\n     */\n    private int convertColStringToNum(String ref) {\n        int len = ref.length();\n        int retval=0;\n        int pos = 0;\n\n        for (int k = ref.length()-1; k > -1; k--) {\n            char thechar = ref.charAt(k);\n            if ( pos == 0) {\n                retval += (Character.getNumericValue(thechar)-9);\n            } else {\n                retval += (Character.getNumericValue(thechar)-9) * (pos * 26);\n            }\n            pos++;\n        }\n        return retval-1;\n    }\n\n\n    /**\n     * Seperates the row from the columns and returns an array.  Element in\n     * position one is the substring containing the columns still in ALPHA-26\n     * number format.\n     */\n    private String[] separateRefParts(String reference) {\n\n        String retval[] = new String[3];\n\n        int start = reference.indexOf(\"!\");\n        if (start != -1) retval[0] = reference.substring(0, start);\n        start += 1;\n\n        int length = reference.length();\n\n\n        char[] chars = reference.toCharArray();\n        int loc = start;\n        if (chars[loc]=='$') loc++;\n        for (; loc < chars.length; loc++) {\n            if (Character.isDigit(chars[loc]) || chars[loc] == '$') {\n                break;\n            }\n        }\n\n        retval[1] = reference.substring(start,loc);\n        retval[2] = reference.substring(loc);\n        return retval;\n    }\n\n    /**\n     * takes in a 0-based base-10 column and returns a ALPHA-26 representation\n     */\n    private static String convertNumToColString(int col) {\n        String retval = null;\n        int mod = col % 26;\n        int div = col / 26;\n        char small=(char)(mod + 65);\n        char big = (char)(div + 64);\n\n        if (div == 0) {\n            retval = \"\"+small;\n        } else {\n            retval = \"\"+big+\"\"+small;\n        }\n\n        return retval;\n    }\n\n\n    public String toString() {\n        StringBuffer retval = new StringBuffer();\n        retval.append( (colAbs)?\"$\":\"\");\n        retval.append( convertNumToColString(col));\n        retval.append((rowAbs)?\"$\":\"\");\n        retval.append(row+1);\n\n    return retval.toString();", "functions": [{"function_name": "getRow", "code": "    public int getRow(){return row;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCol", "code": "    public short getCol(){return (short) col;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isRowAbsolute", "code": "    public boolean isRowAbsolute(){return rowAbs;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isColAbsolute", "code": "    public boolean isColAbsolute(){return colAbs;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSheetName", "code": "    public String getSheetName(){return sheetName;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "convertColStringToNum", "code": "    private int convertColStringToNum(String ref) {\n        int len = ref.length();\n        int retval=0;\n        int pos = 0;\n\n        for (int k = ref.length()-1; k > -1; k--) {\n            char thechar = ref.charAt(k);\n            if ( pos == 0) {\n                retval += (Character.getNumericValue(thechar)-9);\n            } else {\n                retval += (Character.getNumericValue(thechar)-9) * (pos * 26);\n            }\n            pos++;\n        }\n        return retval-1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [2, 10], [2, 11], [8, 12], [3, 13], [4, 14], [5, 15], [10, 16], [2, 17], [16, 18], [11, 19], [17, 20], [17, 21], [10, 22], [10, 23], [22, 24], [23, 25], [24, 26], [24, 27], [25, 28], [25, 29], [26, 30], [27, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 2], [11, 2], [12, 8], [13, 3], [14, 4], [15, 5], [16, 10], [17, 2], [18, 16], [19, 11], [20, 17], [21, 17], [22, 10], [23, 10], [24, 22], [25, 23], [26, 24], [27, 24], [28, 25], [29, 25], [30, 26], [31, 27], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "separateRefParts", "code": "    private String[] separateRefParts(String reference) {\n\n        String retval[] = new String[3];\n\n        int start = reference.indexOf(\"!\");\n        if (start != -1) retval[0] = reference.substring(0, start);\n        start += 1;\n\n        int length = reference.length();\n\n\n        char[] chars = reference.toCharArray();\n        int loc = start;\n        if (chars[loc]=='$') loc++;\n        for (; loc < chars.length; loc++) {\n            if (Character.isDigit(chars[loc]) || chars[loc] == '$') {\n                break;\n            }\n        }\n\n        retval[1] = reference.substring(start,loc);\n        retval[2] = reference.substring(loc);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [3, 14], [0, 15], [7, 16], [11, 17], [12, 18], [2, 19], [14, 20], [5, 21], [6, 22], [15, 23], [7, 24], [16, 25], [8, 26], [19, 27], [24, 28], [26, 29], [9, 30], [11, 31], [12, 32], [19, 33], [27, 34], [27, 35], [28, 36], [34, 37], [24, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 3], [15, 0], [16, 7], [17, 11], [18, 12], [19, 2], [20, 14], [21, 5], [22, 6], [23, 15], [24, 7], [25, 16], [26, 8], [27, 19], [28, 24], [29, 26], [30, 9], [31, 11], [32, 12], [33, 19], [34, 27], [35, 27], [36, 28], [37, 34], [38, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "convertNumToColString", "code": "    private static String convertNumToColString(int col) {\n        String retval = null;\n        int mod = col % 26;\n        int div = col / 26;\n        char small=(char)(mod + 65);\n        char big = (char)(div + 64);\n\n        if (div == 0) {\n            retval = \"\"+small;\n        } else {\n            retval = \"\"+big+\"\"+small;\n        }\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [9, 10], [5, 11], [6, 12], [7, 13], [2, 14], [2, 15], [3, 16], [4, 17], [11, 18], [12, 19], [14, 20], [15, 21], [16, 22], [17, 23], [20, 24], [21, 25], [24, 26], [24, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 9], [11, 5], [12, 6], [13, 7], [14, 2], [15, 2], [16, 3], [17, 4], [18, 11], [19, 12], [20, 14], [21, 15], [22, 16], [23, 17], [24, 20], [25, 21], [26, 24], [27, 24], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "toString", "code": "    public String toString() {\n        StringBuffer retval = new StringBuffer();\n        retval.append( (colAbs)?\"$\":\"\");\n        retval.append( convertNumToColString(col));\n        retval.append((rowAbs)?\"$\":\"\");\n        retval.append(row+1);\n\n    return retval.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [7, 11], [2, 12], [8, 13], [9, 14], [9, 15], [11, 16], [11, 17], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 7], [12, 2], [13, 8], [14, 9], [15, 9], [16, 11], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "CellReference", "code": "    public CellReference(String cellRef) {\n        String[] parts = separateRefParts(cellRef);\n        sheetName = parts[0];\n        String ref = parts[1];\n        if (ref.charAt(0) == '$') {\n            colAbs=true;\n            ref=ref.substring(1);\n        }\n        col = convertColStringToNum(ref);\n        ref=parts[2];\n        if (ref.charAt(0) == '$') {\n            rowAbs=true;\n            ref=ref.substring(1);\n        }\n        row = Integer.parseInt(ref)-1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [2, 10], [0, 11], [6, 12], [7, 13], [7, 14], [9, 15], [10, 16], [10, 17], [4, 18], [12, 19], [12, 20], [1, 21], [1, 22], [14, 23], [2, 24], [2, 25], [17, 26], [21, 27], [22, 28], [8, 29], [24, 30], [25, 31], [3, 32], [11, 33], [27, 34], [30, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 2], [11, 0], [12, 6], [13, 7], [14, 7], [15, 9], [16, 10], [17, 10], [18, 4], [19, 12], [20, 12], [21, 1], [22, 1], [23, 14], [24, 2], [25, 2], [26, 17], [27, 21], [28, 22], [29, 8], [30, 24], [31, 25], [32, 3], [33, 11], [34, 27], [35, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "CellReference", "code": "    public CellReference(int pRow, int pCol) {\n        this(pRow,pCol,false,false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CellReference", "code": "    public CellReference(int pRow, int pCol, boolean pAbsRow, boolean pAbsCol) {\n        row=pRow;col=pCol;\n        rowAbs = pAbsRow;\n        colAbs=pAbsCol;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "poi-3.0-6105", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hpsf/NoPropertySetStreamException.java", "language": "java", "name": "org.apache.poi.hpsf.NoPropertySetStreamException", "code": "public class NoPropertySetStreamException extends HPSFException\n{\n\n    /**\n     * <p>Constructor</p>\n     */\n    public NoPropertySetStreamException()\n    {\n        super();\n    }\n\n\n\n    /**\n     * <p>Constructor</p>\n     * \n     * @param msg The exception's message string\n     */\n    public NoPropertySetStreamException(final String msg)\n    {\n        super(msg);\n    }\n\n\n\n    /**\n     * <p>Constructor</p>\n     * \n     * @param reason This exception's underlying reason\n     */\n    public NoPropertySetStreamException(final Throwable reason)\n    {\n        super(reason);\n    }\n\n\n\n    /**\n     * <p>Constructor</p>\n     * \n     * @param msg The exception's message string\n     * @param reason This exception's underlying reason\n     */\n    public NoPropertySetStreamException(final String msg,\n                                        final Throwable reason)\n    {\n        super(msg, reason);", "functions": [{"function_name": "NoPropertySetStreamException", "code": "    public NoPropertySetStreamException()\n    {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NoPropertySetStreamException", "code": "    public NoPropertySetStreamException(final String msg)\n    {\n        super(msg);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "NoPropertySetStreamException", "code": "    public NoPropertySetStreamException(final Throwable reason)\n    {\n        super(reason);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "NoPropertySetStreamException", "code": "    public NoPropertySetStreamException(final String msg,\n                                        final Throwable reason)\n    {\n        super(msg, reason);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ivy-2.0-3485", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/util/filter/AndFilter.java", "language": "java", "name": "org.apache.ivy.util.filter.AndFilter", "code": "public class AndFilter implements Filter {\n    private Filter op1;\n\n    private Filter op2;\n\n    public AndFilter(Filter op1, Filter op2) {\n        this.op1 = op1;\n        this.op2 = op2;\n    }\n\n    public Filter getOp1() {\n        return op1;\n    }\n\n    public Filter getOp2() {\n        return op2;\n    }\n\n    public boolean accept(Object o) {\n        return op1.accept(o) && op2.accept(o);", "functions": [{"function_name": "getOp1", "code": "    public Filter getOp1() {\n        return op1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOp2", "code": "    public Filter getOp2() {\n        return op2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "accept", "code": "    public boolean accept(Object o) {\n        return op1.accept(o) && op2.accept(o);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "AndFilter", "code": "    public AndFilter(Filter op1, Filter op2) {\n        this.op1 = op1;\n        this.op2 = op2;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-2930", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/file/remote/FtpOperationFailedException.java", "language": "java", "name": "org.apache.camel.component.file.remote.FtpOperationFailedException", "code": "public class FtpOperationFailedException extends RuntimeCamelException {\n    private final int code;\n    private final String reason;\n\n    public FtpOperationFailedException(int code, String reason) {\n        super(\"Ftp operation failed: \" + reason + \". Code: \" + code);\n        this.code = code;\n        this.reason = reason;\n    }\n\n    public FtpOperationFailedException(int code, String reason, String message) {\n        this(code, reason + \" \" + message);\n    }\n\n    /**\n     * Return the FTP failure code\n     */\n    public int getCode() {\n        return code;\n    }\n\n    /**\n     * Return the FTP failure reason\n     */\n    public String getReason() {\n        return reason;", "functions": [{"function_name": "getCode", "code": "    public int getCode() {\n        return code;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getReason", "code": "    public String getReason() {\n        return reason;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FtpOperationFailedException", "code": "    public FtpOperationFailedException(int code, String reason) {\n        super(\"Ftp operation failed: \" + reason + \". Code: \" + code);\n        this.code = code;\n        this.reason = reason;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "FtpOperationFailedException", "code": "    public FtpOperationFailedException(int code, String reason, String message) {\n        this(code, reason + \" \" + message);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "jedit-4.2-4377", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/View.java", "language": "java", "name": "org.gjt.sp.jedit.View", "code": "public class View extends JFrame implements EBComponent\n{\n\t//{{{ User interface\n\n\t//{{{ ToolBar-related constants\n\n\t//{{{ Groups\n\t/**\n\t * The group of tool bars above the DockableWindowManager\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int TOP_GROUP = 0;\n\n\t/**\n\t * The group of tool bars below the DockableWindowManager\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int BOTTOM_GROUP = 1;\n\tpublic static final int DEFAULT_GROUP = TOP_GROUP;\n\t//}}}\n\n\t//{{{ Layers\n\n\t// Common layers\n\t/**\n\t * The highest possible layer.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int TOP_LAYER = Integer.MAX_VALUE;\n\n\t/**\n\t * The default layer for tool bars with no preference.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int DEFAULT_LAYER = 0;\n\n\t/**\n\t * The lowest possible layer.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int BOTTOM_LAYER = Integer.MIN_VALUE;\n\n\t// Layers for top group\n\t/**\n\t * Above system tool bar layer.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int ABOVE_SYSTEM_BAR_LAYER = 150;\n\n\t/**\n\t * System tool bar layer.\n\t * jEdit uses this for the main tool bar.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int SYSTEM_BAR_LAYER = 100;\n\n\t/**\n\t * Below system tool bar layer.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int BELOW_SYSTEM_BAR_LAYER = 75;\n\n\t/**\n\t * Search bar layer.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int SEARCH_BAR_LAYER = 75;\n\n\t/**\n\t * Below search bar layer.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int BELOW_SEARCH_BAR_LAYER = 50;\n\n\t// Layers for bottom group\n\t/**\n\t * @deprecated Status bar no longer added as a tool bar.\n\t */\n\tpublic static final int ABOVE_ACTION_BAR_LAYER = -50;\n\n\t/**\n\t * Action bar layer.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static final int ACTION_BAR_LAYER = -75;\n\n\t/**\n\t * Status bar layer.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static final int STATUS_BAR_LAYER = -100;\n\n\t/**\n\t * Status bar layer.\n\t * @see #addToolBar(int,int,java.awt.Component)\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static final int BELOW_STATUS_BAR_LAYER = -150;\n\t//}}}\n\n\t//}}}\n\n\t//{{{ getDockableWindowManager() method\n\t/**\n\t * Returns the dockable window manager associated with this view.\n\t * @since jEdit 2.6pre3\n\t */\n\tpublic DockableWindowManager getDockableWindowManager()\n\t{\n\t\treturn dockableWindowManager;\n\t} //}}}\n\n\t//{{{ getToolBar() method\n\t/**\n\t * Returns the view's tool bar.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic Box getToolBar()\n\t{\n\t\treturn toolBar;\n\t} //}}}\n\n\t//{{{ addToolBar() method\n\t/**\n\t * Adds a tool bar to this view.\n\t * @param toolBar The tool bar\n\t */\n\tpublic void addToolBar(Component toolBar)\n\t{\n\t\taddToolBar(DEFAULT_GROUP, DEFAULT_LAYER, toolBar);\n\t} //}}}\n\n\t//{{{ addToolBar() method\n\t/**\n\t * Adds a tool bar to this view.\n\t * @param group The tool bar group to add to\n\t * @param toolBar The tool bar\n\t * @see org.gjt.sp.jedit.gui.ToolBarManager\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic void addToolBar(int group, Component toolBar)\n\t{\n\t\taddToolBar(group, DEFAULT_LAYER, toolBar);\n\t} //}}}\n\n\t//{{{ addToolBar() method\n\t/**\n\t * Adds a tool bar to this view.\n\t * @param group The tool bar group to add to\n\t * @param layer The layer of the group to add to\n\t * @param toolBar The tool bar\n\t * @see org.gjt.sp.jedit.gui.ToolBarManager\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic void addToolBar(int group, int layer, Component toolBar)\n\t{\n\t\ttoolBarManager.addToolBar(group, layer, toolBar);\n\t\tgetRootPane().revalidate();\n\t} //}}}\n\n\t//{{{ removeToolBar() method\n\t/**\n\t * Removes a tool bar from this view.\n\t * @param toolBar The tool bar\n\t */\n\tpublic void removeToolBar(Component toolBar)\n\t{\n\t\ttoolBarManager.removeToolBar(toolBar);\n\t\tgetRootPane().revalidate();\n\t} //}}}\n\n\t//{{{ showWaitCursor() method\n\t/**\n\t * Shows the wait cursor. This method and\n\t * {@link #hideWaitCursor()} are implemented using a reference\n\t * count of requests for wait cursors, so that nested calls work\n\t * correctly; however, you should be careful to use these methods in\n\t * tandem.<p>\n\t *\n\t * To ensure that {@link #hideWaitCursor()} is always called\n\t * after a {@link #showWaitCursor()}, use a\n\t * <code>try</code>/<code>finally</code> block, like this:\n\t * <pre>try\n\t *{\n\t *    view.showWaitCursor();\n\t *    // ...\n\t *}\n\t *finally\n\t *{\n\t *    view.hideWaitCursor();\n\t *}</pre>\n\t */\n\tpublic synchronized void showWaitCursor()\n\t{\n\t\tif(waitCount++ == 0)\n\t\t{\n\t\t\tCursor cursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);\n\t\t\tsetCursor(cursor);\n\t\t\tEditPane[] editPanes = getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\tEditPane editPane = editPanes[i];\n\t\t\t\teditPane.getTextArea().getPainter()\n\t\t\t\t\t.setCursor(cursor);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ hideWaitCursor() method\n\t/**\n\t * Hides the wait cursor.\n\t */\n\tpublic synchronized void hideWaitCursor()\n\t{\n\t\tif(waitCount > 0)\n\t\t\twaitCount--;\n\n\t\tif(waitCount == 0)\n\t\t{\n\t\t\t// still needed even though glass pane\n\t\t\t// has a wait cursor\n\t\t\tCursor cursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);\n\t\t\tsetCursor(cursor);\n\t\t\tcursor = Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR);\n\t\t\tEditPane[] editPanes = getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\tEditPane editPane = editPanes[i];\n\t\t\t\teditPane.getTextArea().getPainter()\n\t\t\t\t\t.setCursor(cursor);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ getSearchBar() method\n\t/**\n\t * Returns the search bar.\n\t * @since jEdit 2.4pre4\n\t */\n\tpublic final SearchBar getSearchBar()\n\t{\n\t\treturn searchBar;\n\t} //}}}\n\n\t//{{{ getActionBar() method\n\t/**\n\t * Returns the action bar.\n\t * @since jEdit 4.2pre3\n\t */\n\tpublic final ActionBar getActionBar()\n\t{\n\t\treturn actionBar;\n\t} //}}}\n\n\t//{{{ getStatus() method\n\t/**\n\t * Returns the status bar. The\n\t * {@link org.gjt.sp.jedit.gui.StatusBar#setMessage(String)} and\n\t * {@link org.gjt.sp.jedit.gui.StatusBar#setMessageAndClear(String)} methods can\n\t * be called on the return value of this method to display status\n\t * information to the user.\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic StatusBar getStatus()\n\t{\n\t\treturn status;\n\t} //}}}\n\n\t//{{{ quickIncrementalSearch() method\n\t/**\n\t * Quick search.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void quickIncrementalSearch(boolean word)\n\t{\n\t\tif(searchBar == null)\n\t\t\tsearchBar = new SearchBar(this,true);\n\t\tif(searchBar.getParent() == null)\n\t\t\taddToolBar(TOP_GROUP,SEARCH_BAR_LAYER,searchBar);\n\n\t\tsearchBar.setHyperSearch(false);\n\n\t\tJEditTextArea textArea = getTextArea();\n\n\t\tif(word)\n\t\t{\n\t\t\tString text = textArea.getSelectedText();\n\t\t\tif(text == null)\n\t\t\t{\n\t\t\t\ttextArea.selectWord();\n\t\t\t\ttext = textArea.getSelectedText();\n\t\t\t}\n\t\t\telse if(text.indexOf('\\n') != -1)\n\t\t\t\ttext = null;\n\n\t\t\tsearchBar.getField().setText(text);\n\t\t}\n\n\t\tsearchBar.getField().requestFocus();\n\t\tsearchBar.getField().selectAll();\n\t} //}}}\n\n\t//{{{ quickHyperSearch() method\n\t/**\n\t * Quick HyperSearch.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void quickHyperSearch(boolean word)\n\t{\n\t\tJEditTextArea textArea = getTextArea();\n\n\t\tif(word)\n\t\t{\n\t\t\tString text = textArea.getSelectedText();\n\t\t\tif(text == null)\n\t\t\t{\n\t\t\t\ttextArea.selectWord();\n\t\t\t\ttext = textArea.getSelectedText();\n\t\t\t}\n\n\t\t\tif(text != null && text.indexOf('\\n') == -1)\n\t\t\t{\n\t\t\t\tHistoryModel.getModel(\"find\").addItem(text);\n\t\t\t\tSearchAndReplace.setSearchString(text);\n\t\t\t\tSearchAndReplace.setSearchFileSet(new CurrentBufferSet());\n\t\t\t\tSearchAndReplace.hyperSearch(this);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif(searchBar == null)\n\t\t\tsearchBar = new SearchBar(this,true);\n\t\tif(searchBar.getParent() == null)\n\t\t\taddToolBar(TOP_GROUP,SEARCH_BAR_LAYER,searchBar);\n\n\t\tsearchBar.setHyperSearch(true);\n\t\tsearchBar.getField().setText(null);\n\t\tsearchBar.getField().requestFocus();\n\t\tsearchBar.getField().selectAll();\n\t} //}}}\n\n\t//{{{ actionBar() method\n\t/**\n\t * Shows the action bar if needed, and sends keyboard focus there.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void actionBar()\n\t{\n\t\tif(actionBar == null)\n\t\t\tactionBar = new ActionBar(this,true);\n\t\tif(actionBar.getParent() == null)\n\t\t\taddToolBar(BOTTOM_GROUP,ACTION_BAR_LAYER,actionBar);\n\n\t\tactionBar.goToActionBar();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Input handling\n\n\t//{{{ getKeyEventInterceptor() method\n\t/**\n\t * Returns the listener that will handle all key events in this\n\t * view, if any.\n\t */\n\tpublic KeyListener getKeyEventInterceptor()\n\t{\n\t\treturn keyEventInterceptor;\n\t} //}}}\n\n\t//{{{ setKeyEventInterceptor() method\n\t/**\n\t * Sets the listener that will handle all key events in this\n\t * view. For example, the complete word command uses this so\n\t * that all key events are passed to the word list popup while\n\t * it is visible.\n\t * @param listener The key event interceptor.\n\t */\n\tpublic void setKeyEventInterceptor(KeyListener listener)\n\t{\n\t\tthis.keyEventInterceptor = listener;\n\t} //}}}\n\n\t//{{{ getInputHandler() method\n\t/**\n\t * Returns the input handler.\n\t */\n\tpublic InputHandler getInputHandler()\n\t{\n\t\treturn inputHandler;\n\t} //}}}\n\n\t//{{{ setInputHandler() method\n\t/**\n\t * Sets the input handler.\n\t * @param inputHandler The new input handler\n\t */\n\tpublic void setInputHandler(InputHandler inputHandler)\n\t{\n\t\tthis.inputHandler = inputHandler;\n\t} //}}}\n\n\t//{{{ getMacroRecorder() method\n\t/**\n\t * Returns the macro recorder.\n\t */\n\tpublic Macros.Recorder getMacroRecorder()\n\t{\n\t\treturn recorder;\n\t} //}}}\n\n\t//{{{ setMacroRecorder() method\n\t/**\n\t * Sets the macro recorder.\n\t * @param recorder The macro recorder\n\t */\n\tpublic void setMacroRecorder(Macros.Recorder recorder)\n\t{\n\t\tthis.recorder = recorder;\n\t} //}}}\n\n\t//{{{ processKeyEvent() method\n\t/**\n\t * Forwards key events directly to the input handler.\n\t * This is slightly faster than using a KeyListener\n\t * because some Swing overhead is avoided.\n\t */\n\tpublic void processKeyEvent(KeyEvent evt)\n\t{\n\t\tprocessKeyEvent(evt,VIEW);\n\t} //}}}\n\n\t//{{{ processKeyEvent() method\n\t/**\n\t * Forwards key events directly to the input handler.\n\t * This is slightly faster than using a KeyListener\n\t * because some Swing overhead is avoided.\n\t */\n\tpublic void processKeyEvent(KeyEvent evt, boolean calledFromTextArea)\n\t{\n\t\tprocessKeyEvent(evt,calledFromTextArea\n\t\t\t? TEXT_AREA\n\t\t\t: VIEW);\n\t} //}}}\n\n\t//{{{ processKeyEvent() method\n\tpublic static final int VIEW = 0;\n\tpublic static final int TEXT_AREA = 1;\n\tpublic static final int ACTION_BAR = 2;\n\t/**\n\t * Forwards key events directly to the input handler.\n\t * This is slightly faster than using a KeyListener\n\t * because some Swing overhead is avoided.\n\t */\n\tpublic void processKeyEvent(KeyEvent evt, int from)\n\t{\n\t\tif(Debug.DUMP_KEY_EVENTS && from != VIEW)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"Key event: \"\n\t\t\t\t+ GrabKeyDialog.toString(evt));\n\t\t}\n\n\t\tif(getTextArea().hasFocus() && from == VIEW)\n\t\t\treturn;\n\n\t\tevt = _preprocessKeyEvent(evt);\n\t\tif(evt == null)\n\t\t\treturn;\n\n\t\tif(Debug.DUMP_KEY_EVENTS && from != VIEW)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"Key event after workaround: \"\n\t\t\t\t+ GrabKeyDialog.toString(evt));\n\t\t}\n\n\t\tswitch(evt.getID())\n\t\t{\n\t\tcase KeyEvent.KEY_TYPED:\n\t\t\tboolean focusOnTextArea = false;\n\t\t\t// if the user pressed eg C+e n n in the\n\t\t\t// search bar we want focus to go back there\n\t\t\t// after the prefix is done\n\t\t\tif(prefixFocusOwner != null)\n\t\t\t{\n\t\t\t\tif(prefixFocusOwner.isShowing())\n\t\t\t\t{\n\t\t\t\t\tprefixFocusOwner.requestFocus();\n\t\t\t\t\tfocusOnTextArea = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyTyped(evt);\n\t\t\telse if(from == ACTION_BAR\n\t\t\t\t|| inputHandler.isPrefixActive()\n\t\t\t\t|| getTextArea().hasFocus())\n\t\t\t{\n\t\t\t\tKeyEventTranslator.Key keyStroke\n\t\t\t\t\t= KeyEventTranslator\n\t\t\t\t\t.translateKeyEvent(evt);\n\t\t\t\tif(keyStroke != null)\n\t\t\t\t{\n\t\t\t\t\tif(Debug.DUMP_KEY_EVENTS\n\t\t\t\t\t\t&& from != VIEW)\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.log(Log.DEBUG,this,\n\t\t\t\t\t\t\t\"Translated: \"\n\t\t\t\t\t\t\t+ keyStroke);\n\t\t\t\t\t}\n\t\t\t\t\tif(inputHandler.handleKey(keyStroke))\n\t\t\t\t\t\tevt.consume();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// we might have been closed as a result of\n\t\t\t// the above\n\t\t\tif(isClosed())\n\t\t\t\treturn;\n\n\t\t\t// this is a weird hack.\n\t\t\t// we don't want C+e a to insert 'a' in the\n\t\t\t// search bar if the search bar has focus...\n\t\t\tif(inputHandler.isPrefixActive())\n\t\t\t{\n\t\t\t\tif(getFocusOwner() instanceof JTextComponent)\n\t\t\t\t{\n\t\t\t\t\tprefixFocusOwner = getFocusOwner();\n\t\t\t\t\tgetTextArea().requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(focusOnTextArea)\n\t\t\t\t{\n\t\t\t\t\tgetTextArea().requestFocus();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprefixFocusOwner = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprefixFocusOwner = null;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_PRESSED:\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyPressed(evt);\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* boolean */ focusOnTextArea = false;\n\t\t\t\tif(prefixFocusOwner != null)\n\t\t\t\t{\n\t\t\t\t\tif(prefixFocusOwner.isShowing())\n\t\t\t\t\t{\n\t\t\t\t\t\tprefixFocusOwner.requestFocus();\n\t\t\t\t\t\tfocusOnTextArea = true;\n\t\t\t\t\t}\n\t\t\t\t\tprefixFocusOwner = null;\n\t\t\t\t}\n\n\t\t\t\tKeyEventTranslator.Key keyStroke\n\t\t\t\t\t= KeyEventTranslator\n\t\t\t\t\t.translateKeyEvent(evt);\n\t\t\t\tif(keyStroke != null)\n\t\t\t\t{\n\t\t\t\t\tif(Debug.DUMP_KEY_EVENTS\n\t\t\t\t\t\t&& from != VIEW)\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.log(Log.DEBUG,this,\n\t\t\t\t\t\t\t\"Translated: \"\n\t\t\t\t\t\t\t+ keyStroke);\n\t\t\t\t\t}\n\t\t\t\t\tif(inputHandler.handleKey(keyStroke))\n\t\t\t\t\t\tevt.consume();\n\t\t\t\t}\n\n\t\t\t\t// we might have been closed as a result of\n\t\t\t\t// the above\n\t\t\t\tif(isClosed())\n\t\t\t\t\treturn;\n\n\t\t\t\t// this is a weird hack.\n\t\t\t\t// we don't want C+e a to insert 'a' in the\n\t\t\t\t// search bar if the search bar has focus...\n\t\t\t\tif(inputHandler.isPrefixActive())\n\t\t\t\t{\n\t\t\t\t\tif(getFocusOwner() instanceof JTextComponent)\n\t\t\t\t\t{\n\t\t\t\t\t\tprefixFocusOwner = getFocusOwner();\n\t\t\t\t\t\tgetTextArea().requestFocus();\n\t\t\t\t\t}\n\t\t\t\t\telse if(focusOnTextArea)\n\t\t\t\t\t{\n\t\t\t\t\t\tgetTextArea().requestFocus();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprefixFocusOwner = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprefixFocusOwner = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_RELEASED:\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyReleased(evt);\n\t\t\tbreak;\n\t\t}\n\n\t\tif(!evt.isConsumed())\n\t\t\tsuper.processKeyEvent(evt);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Buffers, edit panes, split panes\n\n\t//{{{ splitHorizontally() method\n\t/**\n\t * Splits the view horizontally.\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic EditPane splitHorizontally()\n\t{\n\t\treturn split(JSplitPane.VERTICAL_SPLIT);\n\t} //}}}\n\n\t//{{{ splitVertically() method\n\t/**\n\t * Splits the view vertically.\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic EditPane splitVertically()\n\t{\n\t\treturn split(JSplitPane.HORIZONTAL_SPLIT);\n\t} //}}}\n\n\t//{{{ split() method\n\t/**\n\t * Splits the view.\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic EditPane split(int orientation)\n\t{\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\teditPane.saveCaretInfo();\n\t\tEditPane oldEditPane = editPane;\n\t\tsetEditPane(createEditPane(oldEditPane.getBuffer()));\n\t\teditPane.loadCaretInfo();\n\n\t\tJComponent oldParent = (JComponent)oldEditPane.getParent();\n\n\t\tfinal JSplitPane newSplitPane = new JSplitPane(orientation);\n\t\tnewSplitPane.setOneTouchExpandable(true);\n\t\tnewSplitPane.setBorder(null);\n\t\tnewSplitPane.setMinimumSize(new Dimension(0,0));\n\n\t\tint parentSize = (orientation == JSplitPane.VERTICAL_SPLIT\n\t\t\t? oldEditPane.getHeight() : oldEditPane.getWidth());\n\t\tfinal int dividerPosition = (int)((double)(parentSize\n\t\t\t- newSplitPane.getDividerSize()) * 0.5);\n\t\tnewSplitPane.setDividerLocation(dividerPosition);\n\n\t\tif(oldParent instanceof JSplitPane)\n\t\t{\n\t\t\tJSplitPane oldSplitPane = (JSplitPane)oldParent;\n\t\t\tint dividerPos = oldSplitPane.getDividerLocation();\n\n\t\t\tComponent left = oldSplitPane.getLeftComponent();\n\n\t\t\tif(left == oldEditPane)\n\t\t\t\toldSplitPane.setLeftComponent(newSplitPane);\n\t\t\telse\n\t\t\t\toldSplitPane.setRightComponent(newSplitPane);\n\n\t\t\tnewSplitPane.setLeftComponent(oldEditPane);\n\t\t\tnewSplitPane.setRightComponent(editPane);\n\n\t\t\toldSplitPane.setDividerLocation(dividerPos);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.splitPane = newSplitPane;\n\n\t\t\tnewSplitPane.setLeftComponent(oldEditPane);\n\t\t\tnewSplitPane.setRightComponent(editPane);\n\n\t\t\toldParent.add(newSplitPane,0);\n\t\t\toldParent.revalidate();\n\t\t}\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tnewSplitPane.setDividerLocation(dividerPosition);\n\t\t\t}\n\t\t});\n\n\t\teditPane.focusOnTextArea();\n\n\t\treturn editPane;\n\t} //}}}\n\n\t//{{{ unsplit() method\n\t/**\n\t * Unsplits the view.\n\t * @since jEdit 2.3pre2\n\t */\n\tpublic void unsplit()\n\t{\n\t\tif(splitPane != null)\n\t\t{\n\t\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\t\tEditPane[] editPanes = getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\tEditPane _editPane = editPanes[i];\n\t\t\t\tif(editPane != _editPane)\n\t\t\t\t\t_editPane.close();\n\t\t\t}\n\n\t\t\tJComponent parent = (JComponent)splitPane.getParent();\n\n\t\t\tparent.remove(splitPane);\n\t\t\tparent.add(editPane,0);\n\t\t\tparent.revalidate();\n\n\t\t\tsplitPane = null;\n\t\t\tupdateTitle();\n\n\t\t\teditPane.focusOnTextArea();\n\t\t}\n\t\telse\n\t\t\tgetToolkit().beep();\n\t} //}}}\n\n\t//{{{ unsplitCurrent() method\n\t/**\n\t * Removes the current split.\n\t * @since jEdit 2.3pre2\n\t */\n\tpublic void unsplitCurrent()\n\t{\n\t\tif(splitPane != null)\n\t\t{\n\t\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\t\t// find first split pane parenting current edit pane\n\t\t\tComponent comp = editPane;\n\t\t\twhile(!(comp instanceof JSplitPane))\n\t\t\t{\n\t\t\t\tcomp = comp.getParent();\n\t\t\t}\n\n\t\t\t// get rid of any edit pane that is a child\n\t\t\t// of the current edit pane's parent splitter\n\t\t\tEditPane[] editPanes = getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\tEditPane _editPane = editPanes[i];\n\t\t\t\tif(GUIUtilities.isAncestorOf(comp,_editPane)\n\t\t\t\t\t&& _editPane != editPane)\n\t\t\t\t\t_editPane.close();\n\t\t\t}\n\n\t\t\tJComponent parent = (JComponent)comp.getParent();\n\n\t\t\tif(parent instanceof JSplitPane)\n\t\t\t{\n\t\t\t\tJSplitPane parentSplit = (JSplitPane)parent;\n\t\t\t\tint pos = parentSplit.getDividerLocation();\n\t\t\t\tif(parentSplit.getLeftComponent() == comp)\n\t\t\t\t\tparentSplit.setLeftComponent(editPane);\n\t\t\t\telse\n\t\t\t\t\tparentSplit.setRightComponent(editPane);\n\t\t\t\tparentSplit.setDividerLocation(pos);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparent.remove(comp);\n\t\t\t\tparent.add(editPane,0);\n\t\t\t\tsplitPane = null;\n\t\t\t}\n\n\t\t\tparent.revalidate();\n\n\t\t\tupdateTitle();\n\n\t\t\teditPane.focusOnTextArea();\n\t\t}\n\t\telse\n\t\t\tgetToolkit().beep();\n\t} //}}}\n\n\t//{{{ nextTextArea() method\n\t/**\n\t * Moves keyboard focus to the next text area.\n\t * @since jEdit 2.7pre4\n\t */\n\tpublic void nextTextArea()\n\t{\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t{\n\t\t\tif(editPane == editPanes[i])\n\t\t\t{\n\t\t\t\tif(i == editPanes.length - 1)\n\t\t\t\t\teditPanes[0].focusOnTextArea();\n\t\t\t\telse\n\t\t\t\t\teditPanes[i+1].focusOnTextArea();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ prevTextArea() method\n\t/**\n\t * Moves keyboard focus to the previous text area.\n\t * @since jEdit 2.7pre4\n\t */\n\tpublic void prevTextArea()\n\t{\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t{\n\t\t\tif(editPane == editPanes[i])\n\t\t\t{\n\t\t\t\tif(i == 0)\n\t\t\t\t\teditPanes[editPanes.length - 1].focusOnTextArea();\n\t\t\t\telse\n\t\t\t\t\teditPanes[i-1].focusOnTextArea();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ getSplitPane() method\n\t/**\n\t * Returns the top-level split pane, if any.\n\t * @since jEdit 2.3pre2\n\t */\n\tpublic JSplitPane getSplitPane()\n\t{\n\t\treturn splitPane;\n\t} //}}}\n\n\t//{{{ getBuffer() method\n\t/**\n\t * Returns the current edit pane's buffer.\n\t */\n\tpublic Buffer getBuffer()\n\t{\n\t\tif(editPane == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn editPane.getBuffer();\n\t} //}}}\n\n\t//{{{ setBuffer() method\n\t/**\n\t * Sets the current edit pane's buffer.\n\t */\n\tpublic void setBuffer(Buffer buffer)\n\t{\n\t\teditPane.setBuffer(buffer);\n\t} //}}}\n\n\t//{{{ goToBuffer() method\n\t/**\n\t * If this buffer is open in one of the view's edit panes, sets focus\n\t * to that edit pane. Otherwise, opens the buffer in the currently\n\t * active edit pane.\n\t * @param buffer The buffer\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic EditPane goToBuffer(Buffer buffer)\n\t{\n\t\tif(editPane.getBuffer() == buffer)\n\t\t{\n\t\t\teditPane.focusOnTextArea();\n\t\t\treturn editPane;\n\t\t}\n\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t{\n\t\t\tEditPane ep = editPanes[i];\n\t\t\tif(ep.getBuffer() == buffer\n\t\t\t\t/* ignore zero-height splits, etc */\n\t\t\t\t&& ep.getTextArea().getVisibleLines() > 1)\n\t\t\t{\n\t\t\t\tsetEditPane(ep);\n\t\t\t\tep.focusOnTextArea();\n\t\t\t\treturn ep;\n\t\t\t}\n\t\t}\n\t\tsetBuffer(buffer);\n\t\treturn editPane;\n\t} //}}}\n\n\t//{{{ getTextArea() method\n\t/**\n\t * Returns the current edit pane's text area.\n\t */\n\tpublic JEditTextArea getTextArea()\n\t{\n\t\tif(editPane == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn editPane.getTextArea();\n\t} //}}}\n\n\t//{{{ getEditPane() method\n\t/**\n\t * Returns the current edit pane.\n\t * @since jEdit 2.5pre2\n\t */\n\tpublic EditPane getEditPane()\n\t{\n\t\treturn editPane;\n\t} //}}}\n\n\t//{{{ getEditPanes() method\n\t/**\n\t * Returns all edit panes.\n\t * @since jEdit 2.5pre2\n\t */\n\tpublic EditPane[] getEditPanes()\n\t{\n\t\tif(splitPane == null)\n\t\t{\n\t\t\tEditPane[] ep = { editPane };\n\t\t\treturn ep;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVector vec = new Vector();\n\t\t\tgetEditPanes(vec,splitPane);\n\t\t\tEditPane[] ep = new EditPane[vec.size()];\n\t\t\tvec.copyInto(ep);\n\t\t\treturn ep;\n\t\t}\n\t} //}}}\n\n\t//{{{ getViewConfig() method\n\t/**\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic ViewConfig getViewConfig()\n\t{\n\t\tStringBuffer splitConfig = new StringBuffer();\n\t\tif(splitPane != null)\n\t\t\tgetSplitConfig(splitPane,splitConfig);\n\t\telse\n\t\t{\n\t\t\tsplitConfig.append('\"');\n\t\t\tsplitConfig.append(MiscUtilities.charsToEscapes(\n\t\t\t\tgetBuffer().getPath()));\n\t\t\tsplitConfig.append(\"\\\" buffer\");\n\t\t}\n\n\t\tViewConfig config = new ViewConfig();\n\t\tconfig.plainView = isPlainView();\n\t\tconfig.splitConfig = splitConfig.toString();\n\t\tconfig.x = getX();\n\t\tconfig.y = getY();\n\t\tconfig.width = getWidth();\n\t\tconfig.height = getHeight();\n\t\tconfig.extState = GUIUtilities.getExtendedState(this);\n\n\t\tconfig.top = dockableWindowManager.getTopDockingArea().getCurrent();\n\t\tconfig.left = dockableWindowManager.getLeftDockingArea().getCurrent();\n\t\tconfig.bottom = dockableWindowManager.getBottomDockingArea().getCurrent();\n\t\tconfig.right = dockableWindowManager.getRightDockingArea().getCurrent();\n\n\t\tconfig.topPos = dockableWindowManager.getTopDockingArea().getDimension();\n\t\tconfig.leftPos = dockableWindowManager.getLeftDockingArea().getDimension();\n\t\tconfig.bottomPos = dockableWindowManager.getBottomDockingArea().getDimension();\n\t\tconfig.rightPos = dockableWindowManager.getRightDockingArea().getDimension();\n\n\t\treturn config;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ isClosed() method\n\t/**\n\t * Returns true if this view has been closed with\n\t * {@link jEdit#closeView(View)}.\n\t */\n\tpublic boolean isClosed()\n\t{\n\t\treturn closed;\n\t} //}}}\n\n\t//{{{ isPlainView() method\n\t/**\n\t * Returns true if this is an auxilliary view with no dockable windows.\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic boolean isPlainView()\n\t{\n\t\treturn plainView;\n\t} //}}}\n\n\t//{{{ getNext() method\n\t/**\n\t * Returns the next view in the list.\n\t */\n\tpublic View getNext()\n\t{\n\t\treturn next;\n\t} //}}}\n\n\t//{{{ getPrev() method\n\t/**\n\t * Returns the previous view in the list.\n\t */\n\tpublic View getPrev()\n\t{\n\t\treturn prev;\n\t} //}}}\n\n\t//{{{ handleMessage() method\n\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof PropertiesChanged)\n\t\t\tpropertiesChanged();\n\t\telse if(msg instanceof SearchSettingsChanged)\n\t\t{\n\t\t\tif(searchBar != null)\n\t\t\t\tsearchBar.update();\n\t\t}\n\t\telse if(msg instanceof BufferUpdate)\n\t\t\thandleBufferUpdate((BufferUpdate)msg);\n\t\telse if(msg instanceof EditPaneUpdate)\n\t\t\thandleEditPaneUpdate((EditPaneUpdate)msg);\n\t} //}}}\n\n\t//{{{ getMinimumSize() method\n\tpublic Dimension getMinimumSize()\n\t{\n\t\treturn new Dimension(0,0);\n\t} //}}}\n\n\t//{{{ setWaitSocket() method\n\t/**\n\t * This socket is closed when the buffer is closed.\n\t */\n\tpublic void setWaitSocket(Socket waitSocket)\n\t{\n\t\tthis.waitSocket = waitSocket;\n\t} //}}}\n\n\t//{{{ toString() method\n\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[\"\n\t\t\t+ (jEdit.getActiveView() == this\n\t\t\t? \"active\" : \"inactive\")\n\t\t\t+ \"]\";\n\t} //}}}\n\n\t//{{{ Package-private members\n\tView prev;\n\tView next;\n\n\t//{{{ View constructor\n\tView(Buffer buffer, ViewConfig config)\n\t{\n\t\tthis.plainView = config.plainView;\n\n\t\tenableEvents(AWTEvent.KEY_EVENT_MASK);\n\n\t\tsetIconImage(GUIUtilities.getEditorIcon());\n\n\t\tdockableWindowManager = new DockableWindowManager(this,config);\n\n\t\ttopToolBars = new JPanel(new VariableGridLayout(\n\t\t\tVariableGridLayout.FIXED_NUM_COLUMNS,\n\t\t\t1));\n\t\tbottomToolBars = new JPanel(new VariableGridLayout(\n\t\t\tVariableGridLayout.FIXED_NUM_COLUMNS,\n\t\t\t1));\n\n\t\ttoolBarManager = new ToolBarManager(topToolBars, bottomToolBars);\n\n\t\tstatus = new StatusBar(this);\n\n\t\tinputHandler = new DefaultInputHandler(this,(DefaultInputHandler)\n\t\t\tjEdit.getInputHandler());\n\n\t\ttry\n\t\t{\n\t\t\tComponent comp = restoreSplitConfig(buffer,config.splitConfig);\n\t\t\tdockableWindowManager.add(comp,0);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\t// this should never throw an exception.\n\t\t\tthrow new InternalError();\n\t\t}\n\n\t\tgetContentPane().add(BorderLayout.CENTER,dockableWindowManager);\n\n\t\tdockableWindowManager.init();\n\n\t\t// tool bar and status bar gets added in propertiesChanged()\n\t\t// depending in the 'tool bar alternate layout' setting.\n\t\tpropertiesChanged();\n\n\t\tsetDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n\t\taddWindowListener(new WindowHandler());\n\n\t\tEditBus.addToBus(this);\n\n\t\tSearchDialog.preloadSearchDialog(this);\n\t} //}}}\n\n\t//{{{ close() method\n\tvoid close()\n\t{\n\t\tGUIUtilities.saveGeometry(this,plainView ? \"plain-view\" : \"view\");\n\t\tclosed = true;\n\n\t\t// save dockable window geometry, and close 'em\n\t\tdockableWindowManager.close();\n\n\t\tEditBus.removeFromBus(this);\n\t\tdispose();\n\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\teditPanes[i].close();\n\n\t\t// null some variables so that retaining references\n\t\t// to closed views won't hurt as much.\n\t\ttoolBarManager = null;\n\t\ttoolBar = null;\n\t\tsearchBar = null;\n\t\tsplitPane = null;\n\t\tinputHandler = null;\n\t\trecorder = null;\n\n\t\tgetContentPane().removeAll();\n\n\t\t// notify clients with -wait\n\t\tif(waitSocket != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\twaitSocket.getOutputStream().write('\\0');\n\t\t\t\twaitSocket.getOutputStream().flush();\n\t\t\t\twaitSocket.getInputStream().close();\n\t\t\t\twaitSocket.getOutputStream().close();\n\t\t\t\twaitSocket.close();\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n\t\t\t\t//Log.log(Log.ERROR,this,io);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ updateTitle() method\n\t/**\n\t * Updates the title bar.\n\t */\n\tvoid updateTitle()\n\t{\n\t\tVector buffers = new Vector();\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t{\n\t\t\tBuffer buffer = editPanes[i].getBuffer();\n\t\t\tif(buffers.indexOf(buffer) == -1)\n\t\t\t\tbuffers.addElement(buffer);\n\t\t}\n\n\t\tStringBuffer title = new StringBuffer(jEdit.getProperty(\"view.title\"));\n\t\tfor(int i = 0; i < buffers.size(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\ttitle.append(\", \");\n\n\t\t\tBuffer buffer = (Buffer)buffers.elementAt(i);\n\t\t\ttitle.append((showFullPath && !buffer.isNewFile())\n\t\t\t\t? buffer.getPath() : buffer.getName());\n\t\t\tif(buffer.isDirty())\n\t\t\t\ttitle.append(jEdit.getProperty(\"view.title.dirty\"));\n\t\t}\n\t\tsetTitle(title.toString());\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate boolean closed;\n\n\tprivate DockableWindowManager dockableWindowManager;\n\n\tprivate JPanel topToolBars;\n\tprivate JPanel bottomToolBars;\n\tprivate ToolBarManager toolBarManager;\n\n\tprivate Box toolBar;\n\tprivate SearchBar searchBar;\n\tprivate ActionBar actionBar;\n\n\tprivate EditPane editPane;\n\tprivate JSplitPane splitPane;\n\n\tprivate StatusBar status;\n\n\tprivate KeyListener keyEventInterceptor;\n\tprivate InputHandler inputHandler;\n\tprivate Macros.Recorder recorder;\n\tprivate Component prefixFocusOwner;\n\n\tprivate int waitCount;\n\n\tprivate boolean showFullPath;\n\n\tprivate boolean plainView;\n\n\tprivate Socket waitSocket;\n\t//}}}\n\n\t//{{{ getEditPanes() method\n\tprivate void getEditPanes(Vector vec, Component comp)\n\t{\n\t\tif(comp instanceof EditPane)\n\t\t\tvec.addElement(comp);\n\t\telse if(comp instanceof JSplitPane)\n\t\t{\n\t\t\tJSplitPane split = (JSplitPane)comp;\n\t\t\tgetEditPanes(vec,split.getLeftComponent());\n\t\t\tgetEditPanes(vec,split.getRightComponent());\n\t\t}\n\t} //}}}\n\n\t//{{{ getSplitConfig() method\n\t/*\n\t * The split config is recorded in a simple RPN \"language\".\n\t */\n\tprivate void getSplitConfig(JSplitPane splitPane,\n\t\tStringBuffer splitConfig)\n\t{\n\t\tComponent right = splitPane.getRightComponent();\n\t\tif(right instanceof JSplitPane)\n\t\t\tgetSplitConfig((JSplitPane)right,splitConfig);\n\t\telse\n\t\t{\n\t\t\tsplitConfig.append('\"');\n\t\t\tsplitConfig.append(MiscUtilities.charsToEscapes(\n\t\t\t\t((EditPane)right).getBuffer().getPath()));\n\t\t\tsplitConfig.append(\"\\\" buffer\");\n\t\t}\n\n\t\tsplitConfig.append(' ');\n\n\t\tComponent left = splitPane.getLeftComponent();\n\t\tif(left instanceof JSplitPane)\n\t\t\tgetSplitConfig((JSplitPane)left,splitConfig);\n\t\telse\n\t\t{\n\t\t\tsplitConfig.append('\"');\n\t\t\tsplitConfig.append(MiscUtilities.charsToEscapes(\n\t\t\t\t((EditPane)left).getBuffer().getPath()));\n\t\t\tsplitConfig.append(\"\\\" buffer\");\n\t\t}\n\n\t\tsplitConfig.append(' ');\n\t\tsplitConfig.append(splitPane.getDividerLocation());\n\t\tsplitConfig.append(' ');\n\t\tsplitConfig.append(splitPane.getOrientation()\n\t\t\t== JSplitPane.VERTICAL_SPLIT ? \"vertical\" : \"horizontal\");\n\t} //}}}\n\n\t//{{{ restoreSplitConfig() method\n\tprivate Component restoreSplitConfig(Buffer buffer, String splitConfig)\n\t\tthrows IOException\n\t// this is where checked exceptions piss me off. this method only uses\n\t// a StringReader which can never throw an exception...\n\t{\n\t\tif(buffer != null)\n\t\t\treturn (editPane = createEditPane(buffer));\n\t\telse if(splitConfig == null)\n\t\t\treturn (editPane = createEditPane(jEdit.getFirstBuffer()));\n\n\t\tBuffer[] buffers = jEdit.getBuffers();\n\n\t\tStack stack = new Stack();\n\n\t\t// we create a stream tokenizer for parsing a simple\n\t\t// stack-based language\n\t\tStreamTokenizer st = new StreamTokenizer(new StringReader(\n\t\t\tsplitConfig));\n\t\tst.whitespaceChars(0,' ');\n\t\t/* all printable ASCII characters */\n\t\tst.wordChars('#','~');\n\t\tst.commentChar('!');\n\t\tst.quoteChar('\"');\n\t\tst.eolIsSignificant(false);\n\nloop:\t\tfor(;;)\n\t\t{\n\t\t\tswitch(st.nextToken())\n\t\t\t{\n\t\t\tcase StreamTokenizer.TT_EOF:\n\t\t\t\tbreak loop;\n\t\t\tcase StreamTokenizer.TT_WORD:\n\t\t\t\tif(st.sval.equals(\"vertical\") ||\n\t\t\t\t\tst.sval.equals(\"horizontal\"))\n\t\t\t\t{\n\t\t\t\t\tint orientation\n\t\t\t\t\t\t= (st.sval.equals(\"vertical\")\n\t\t\t\t\t\t? JSplitPane.VERTICAL_SPLIT\n\t\t\t\t\t\t: JSplitPane.HORIZONTAL_SPLIT);\n\t\t\t\t\tint divider = ((Integer)stack.pop())\n\t\t\t\t\t\t.intValue();\n\t\t\t\t\tstack.push(splitPane = new JSplitPane(\n\t\t\t\t\t\torientation,\n\t\t\t\t\t\t(Component)stack.pop(),\n\t\t\t\t\t\t(Component)stack.pop()));\n\t\t\t\t\tsplitPane.setOneTouchExpandable(true);\n\t\t\t\t\tsplitPane.setBorder(null);\n\t\t\t\t\tsplitPane.setMinimumSize(\n\t\t\t\t\t\tnew Dimension(0,0));\n\t\t\t\t\tsplitPane.setDividerLocation(divider);\n\t\t\t\t}\n\t\t\t\telse if(st.sval.equals(\"buffer\"))\n\t\t\t\t{\n\t\t\t\t\tObject obj = stack.pop();\n\t\t\t\t\tif(obj instanceof Integer)\n\t\t\t\t\t{\n\t\t\t\t\t\tint index = ((Integer)obj).intValue();\n\t\t\t\t\t\tif(index >= 0 && index < buffers.length)\n\t\t\t\t\t\t\tbuffer = buffers[index];\n\t\t\t\t\t}\n\t\t\t\t\telse if(obj instanceof String)\n\t\t\t\t\t{\n\t\t\t\t\t\tString path = (String)obj;\n\t\t\t\t\t\tbuffer = jEdit.getBuffer(path);\n\t\t\t\t\t}\n\n\t\t\t\t\tif(buffer == null)\n\t\t\t\t\t\tbuffer = jEdit.getFirstBuffer();\n\n\t\t\t\t\tstack.push(editPane = createEditPane(\n\t\t\t\t\t\tbuffer));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase StreamTokenizer.TT_NUMBER:\n\t\t\t\tstack.push(new Integer((int)st.nval));\n\t\t\t\tbreak;\n\t\t\tcase '\"':\n\t\t\t\tstack.push(st.sval);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tupdateGutterBorders();\n\n\t\treturn (Component)stack.peek();\n\t} //}}}\n\n\t//{{{ propertiesChanged() method\n\t/**\n\t * Reloads various settings from the properties.\n\t */\n\tprivate void propertiesChanged()\n\t{\n\t\tsetJMenuBar(GUIUtilities.loadMenuBar(\"view.mbar\"));\n\n\t\tloadToolBars();\n\n\t\tshowFullPath = jEdit.getBooleanProperty(\"view.showFullPath\");\n\t\tupdateTitle();\n\n\t\tstatus.propertiesChanged();\n\n\t\tremoveToolBar(status);\n\t\tgetContentPane().remove(status);\n\n\t\tif(jEdit.getBooleanProperty(\"view.toolbar.alternateLayout\"))\n\t\t{\n\t\t\tgetContentPane().add(BorderLayout.NORTH,topToolBars);\n\t\t\tgetContentPane().add(BorderLayout.SOUTH,bottomToolBars);\n\t\t\tif(!plainView && jEdit.getBooleanProperty(\"view.status.visible\"))\n\t\t\t\taddToolBar(BOTTOM_GROUP,STATUS_BAR_LAYER,status);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdockableWindowManager.add(topToolBars,\n\t\t\t\tDockableWindowManager.DockableLayout\n\t\t\t\t.TOP_TOOLBARS,0);\n\t\t\tdockableWindowManager.add(bottomToolBars,\n\t\t\t\tDockableWindowManager.DockableLayout\n\t\t\t\t.BOTTOM_TOOLBARS,0);\n\t\t\tif(!plainView && jEdit.getBooleanProperty(\"view.status.visible\"))\n\t\t\t\tgetContentPane().add(BorderLayout.SOUTH,status);\n\t\t}\n\n\t\tgetRootPane().revalidate();\n\n\t\t//SwingUtilities.updateComponentTreeUI(getRootPane());\n\t} //}}}\n\n\t//{{{ loadToolBars() method\n\tprivate void loadToolBars()\n\t{\n\t\tif(jEdit.getBooleanProperty(\"view.showToolbar\") && !plainView)\n\t\t{\n\t\t\tif(toolBar != null)\n\t\t\t\ttoolBarManager.removeToolBar(toolBar);\n\n\t\t\ttoolBar = GUIUtilities.loadToolBar(\"view.toolbar\");\n\n\t\t\taddToolBar(TOP_GROUP, SYSTEM_BAR_LAYER, toolBar);\n\t\t}\n\t\telse if(toolBar != null)\n\t\t{\n\t\t\tremoveToolBar(toolBar);\n\t\t\ttoolBar = null;\n\t\t}\n\n\t\tif(searchBar != null)\n\t\t\tremoveToolBar(searchBar);\n\n\t\tif(jEdit.getBooleanProperty(\"view.showSearchbar\") && !plainView)\n\t\t{\n\t\t\tif(searchBar == null)\n\t\t\t\tsearchBar = new SearchBar(this,false);\n\t\t\tsearchBar.propertiesChanged();\n\t\t\taddToolBar(TOP_GROUP,SEARCH_BAR_LAYER,searchBar);\n\t\t}\n\t} //}}}\n\n\t//{{{ createEditPane() method\n\tprivate EditPane createEditPane(Buffer buffer)\n\t{\n\t\tEditPane editPane = new EditPane(this,buffer);\n\t\tJEditTextArea textArea = editPane.getTextArea();\n\t\ttextArea.addFocusListener(new FocusHandler());\n\t\ttextArea.addCaretListener(new CaretHandler());\n\t\ttextArea.addScrollListener(new ScrollHandler());\n\t\tEditBus.send(new EditPaneUpdate(editPane,EditPaneUpdate.CREATED));\n\t\treturn editPane;\n\t} //}}}\n\n\t//{{{ setEditPane() method\n\tprivate void setEditPane(EditPane editPane)\n\t{\n\t\tthis.editPane = editPane;\n\t\tstatus.updateCaretStatus();\n\t\tstatus.updateBufferStatus();\n\t\tstatus.updateMiscStatus();\n\n\t\t// repaint the gutter so that the border color\n\t\t// reflects the focus state\n\t\tupdateGutterBorders();\n\n\t\tEditBus.send(new ViewUpdate(this,ViewUpdate.EDIT_PANE_CHANGED));\n\t} //}}}\n\n\t//{{{ handleBufferUpdate() method\n\tprivate void handleBufferUpdate(BufferUpdate msg)\n\t{\n\t\tBuffer buffer = msg.getBuffer();\n\t\tif(msg.getWhat() == BufferUpdate.DIRTY_CHANGED\n\t\t\t|| msg.getWhat() == BufferUpdate.LOADED)\n\t\t{\n\t\t\tEditPane[] editPanes = getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\tif(editPanes[i].getBuffer() == buffer)\n\t\t\t\t{\n\t\t\t\t\tupdateTitle();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ handleEditPaneUpdate() method\n\tprivate void handleEditPaneUpdate(EditPaneUpdate msg)\n\t{\n\t\tEditPane editPane = msg.getEditPane();\n\t\tif(editPane.getView() == this\n\t\t\t&& msg.getWhat() == EditPaneUpdate.BUFFER_CHANGED\n\t\t\t&& editPane.getBuffer().isLoaded())\n\t\t{\n\t\t\tstatus.updateCaretStatus();\n\t\t\tstatus.updateBufferStatus();\n\t\t\tstatus.updateMiscStatus();\n\t\t}\n\t} //}}}\n\n\t//{{{ updateGutterBorders() method\n\t/**\n\t * Updates the borders of all gutters in this view to reflect the\n\t * currently focused text area.\n\t * @since jEdit 2.6final\n\t */\n\tprivate void updateGutterBorders()\n\t{\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\teditPanes[i].getTextArea().getGutter().updateBorder();\n\t} //}}}\n\n\t//{{{ _preprocessKeyEvent() method\n\tprivate KeyEvent _preprocessKeyEvent(KeyEvent evt)\n\t{\n\t\tif(isClosed())\n\t\t\treturn null;\n\n\t\tif(getFocusOwner() instanceof JComponent)\n\t\t{\n\t\t\tJComponent comp = (JComponent)getFocusOwner();\n\t\t\tInputMap map = comp.getInputMap();\n\t\t\tActionMap am = comp.getActionMap();\n\n\t\t\tif(map != null && am != null && comp.isEnabled())\n\t\t\t{\n\t\t\t\tObject binding = map.get(KeyStroke.getKeyStrokeForEvent(evt));\n\t\t\t\tif(binding != null && am.get(binding) != null)\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(getFocusOwner() instanceof JTextComponent)\n\t\t{\n\t\t\t// fix for the bug where key events in JTextComponents\n\t\t\t// inside views are also handled by the input handler\n\t\t\tif(evt.getID() == KeyEvent.KEY_PRESSED)\n\t\t\t{\n\t\t\t\tswitch(evt.getKeyCode())\n\t\t\t\t{\n\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\tcase KeyEvent.VK_TAB:\n\t\t\t\tcase KeyEvent.VK_BACK_SPACE:\n\t\t\t\tcase KeyEvent.VK_SPACE:\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(evt.isConsumed())\n\t\t\treturn null;\n\n\t\treturn KeyEventWorkaround.processKeyEvent(evt);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ CaretHandler class\n\tclass CaretHandler implements CaretListener\n\t{\n\t\tpublic void caretUpdate(CaretEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == getTextArea())\n\t\t\t\tstatus.updateCaretStatus();\n\t\t}\n\t} //}}}\n\n\t//{{{ FocusHandler class\n\tclass FocusHandler extends FocusAdapter\n\t{\n\t\tpublic void focusGained(FocusEvent evt)\n\t\t{\n\t\t\t// walk up hierarchy, looking for an EditPane\n\t\t\tComponent comp = (Component)evt.getSource();\n\t\t\twhile(!(comp instanceof EditPane))\n\t\t\t{\n\t\t\t\tif(comp == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tcomp = comp.getParent();\n\t\t\t}\n\n\t\t\tif(comp != editPane)\n\t\t\t\tsetEditPane((EditPane)comp);\n\t\t\telse\n\t\t\t\tupdateGutterBorders();\n\t\t}\n\t} //}}}\n\n\t//{{{ ScrollHandler class\n\tclass ScrollHandler implements ScrollListener\n\t{\n\t\tpublic void scrolledVertically(JEditTextArea textArea)\n\t\t{\n\t\t\tif(getTextArea() == textArea)\n\t\t\t\tstatus.updateCaretStatus();\n\t\t}\n\n\t\tpublic void scrolledHorizontally(JEditTextArea textArea) {}\n\t} //}}}\n\n\t//{{{ WindowHandler class\n\tclass WindowHandler extends WindowAdapter\n\t{\n\t\tpublic void windowActivated(WindowEvent evt)\n\t\t{\n\t\t\tjEdit.setActiveView(View.this);\n\n\t\t\t// People have reported hangs with JDK 1.4; might be\n\t\t\t// caused by modal dialogs being displayed from\n\t\t\t// windowActivated()\n\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tjEdit.checkBufferStatus(View.this);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tpublic void windowClosing(WindowEvent evt)\n\t\t{\n\t\t\tjEdit.closeView(View.this);\n\t\t}\n\t} //}}}\n\n\t//{{{ ViewConfig class\n\tpublic static class ViewConfig\n\t{\n\t\tpublic boolean plainView;\n\t\tpublic String splitConfig;\n\t\tpublic int x, y, width, height, extState;\n\n\t\t// dockables\n\t\tpublic String top, left, bottom, right;\n\t\tpublic int topPos, leftPos, bottomPos, rightPos;\n\n\t\tpublic ViewConfig()\n\t\t{\n\t\t}\n\n\t\tpublic ViewConfig(boolean plainView)\n\t\t{\n\t\t\tthis.plainView = plainView;\n\t\t\tString prefix = (plainView ? \"plain-view\" : \"view\");\n\t\t\tx = jEdit.getIntegerProperty(prefix + \".x\",0);\n\t\t\ty = jEdit.getIntegerProperty(prefix + \".y\",0);\n\t\t\twidth = jEdit.getIntegerProperty(prefix + \".width\",0);\n\t\t\theight = jEdit.getIntegerProperty(prefix + \".height\",0);\n\t\t}\n\n\t\tpublic ViewConfig(boolean plainView, String splitConfig,\n\t\t\tint x, int y, int width, int height, int extState)\n\t\t{\n\t\t\tthis.plainView = plainView;\n\t\t\tthis.splitConfig = splitConfig;\n\t\t\tthis.x = x;\n\t\t\tthis.y = y;\n\t\t\tthis.width = width;\n\t\t\tthis.height = height;\n\t\t\tthis.extState = extState;", "functions": [{"function_name": "getDockableWindowManager", "code": "\tpublic DockableWindowManager getDockableWindowManager()\n\t{\n\t\treturn dockableWindowManager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getToolBar", "code": "\tpublic Box getToolBar()\n\t{\n\t\treturn toolBar;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addToolBar", "code": "\tpublic void addToolBar(Component toolBar)\n\t{\n\t\taddToolBar(DEFAULT_GROUP, DEFAULT_LAYER, toolBar);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addToolBar", "code": "\tpublic void addToolBar(int group, Component toolBar)\n\t{\n\t\taddToolBar(group, DEFAULT_LAYER, toolBar);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addToolBar", "code": "\tpublic void addToolBar(int group, int layer, Component toolBar)\n\t{\n\t\ttoolBarManager.addToolBar(group, layer, toolBar);\n\t\tgetRootPane().revalidate();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "removeToolBar", "code": "\tpublic void removeToolBar(Component toolBar)\n\t{\n\t\ttoolBarManager.removeToolBar(toolBar);\n\t\tgetRootPane().revalidate();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "showWaitCursor", "code": "\tpublic synchronized void showWaitCursor()\n\t{\n\t\tif(waitCount++ == 0)\n\t\t{\n\t\t\tCursor cursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);\n\t\t\tsetCursor(cursor);\n\t\t\tEditPane[] editPanes = getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\tEditPane editPane = editPanes[i];\n\t\t\t\teditPane.getTextArea().getPainter()\n\t\t\t\t\t.setCursor(cursor);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [1, 8], [3, 9], [4, 10], [5, 11], [3, 12], [3, 13], [12, 14], [12, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 1], [9, 3], [10, 4], [11, 5], [12, 3], [13, 3], [14, 12], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "hideWaitCursor", "code": "\tpublic synchronized void hideWaitCursor()\n\t{\n\t\tif(waitCount > 0)\n\t\t\twaitCount--;\n\n\t\tif(waitCount == 0)\n\t\t{\n\t\t\t// still needed even though glass pane\n\t\t\t// has a wait cursor\n\t\t\tCursor cursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);\n\t\t\tsetCursor(cursor);\n\t\t\tcursor = Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR);\n\t\t\tEditPane[] editPanes = getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\tEditPane editPane = editPanes[i];\n\t\t\t\teditPane.getTextArea().getPainter()\n\t\t\t\t\t.setCursor(cursor);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [1, 7], [3, 8], [4, 9], [5, 10], [1, 11], [1, 12], [5, 13], [6, 14], [11, 15], [7, 16], [5, 17], [5, 18], [17, 19], [17, 20], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 1], [8, 3], [9, 4], [10, 5], [11, 1], [12, 1], [13, 5], [14, 6], [15, 11], [16, 7], [17, 5], [18, 5], [19, 17], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getSearchBar", "code": "\tpublic final SearchBar getSearchBar()\n\t{\n\t\treturn searchBar;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getActionBar", "code": "\tpublic final ActionBar getActionBar()\n\t{\n\t\treturn actionBar;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStatus", "code": "\tpublic StatusBar getStatus()\n\t{\n\t\treturn status;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "quickIncrementalSearch", "code": "\tpublic void quickIncrementalSearch(boolean word)\n\t{\n\t\tif(searchBar == null)\n\t\t\tsearchBar = new SearchBar(this,true);\n\t\tif(searchBar.getParent() == null)\n\t\t\taddToolBar(TOP_GROUP,SEARCH_BAR_LAYER,searchBar);\n\n\t\tsearchBar.setHyperSearch(false);\n\n\t\tJEditTextArea textArea = getTextArea();\n\n\t\tif(word)\n\t\t{\n\t\t\tString text = textArea.getSelectedText();\n\t\t\tif(text == null)\n\t\t\t{\n\t\t\t\ttextArea.selectWord();\n\t\t\t\ttext = textArea.getSelectedText();\n\t\t\t}\n\t\t\telse if(text.indexOf('\\n') != -1)\n\t\t\t\ttext = null;\n\n\t\t\tsearchBar.getField().setText(text);\n\t\t}\n\n\t\tsearchBar.getField().requestFocus();\n\t\tsearchBar.getField().selectAll();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [4, 10], [6, 11], [7, 12], [1, 13], [1, 14], [2, 15], [8, 16], [3, 17], [9, 18], [9, 19], [4, 20], [10, 21], [1, 22], [13, 23], [13, 24], [20, 25], [22, 26], [23, 27], [24, 28], [14, 29], [25, 30], [23, 31], [27, 32], [27, 33], [13, 34], [13, 35], [31, 36], [33, 37], [34, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 4], [11, 6], [12, 7], [13, 1], [14, 1], [15, 2], [16, 8], [17, 3], [18, 9], [19, 9], [20, 4], [21, 10], [22, 1], [23, 13], [24, 13], [25, 20], [26, 22], [27, 23], [28, 24], [29, 14], [30, 25], [31, 23], [32, 27], [33, 27], [34, 13], [35, 13], [36, 31], [37, 33], [38, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "quickHyperSearch", "code": "\tpublic void quickHyperSearch(boolean word)\n\t{\n\t\tJEditTextArea textArea = getTextArea();\n\n\t\tif(word)\n\t\t{\n\t\t\tString text = textArea.getSelectedText();\n\t\t\tif(text == null)\n\t\t\t{\n\t\t\t\ttextArea.selectWord();\n\t\t\t\ttext = textArea.getSelectedText();\n\t\t\t}\n\n\t\t\tif(text != null && text.indexOf('\\n') == -1)\n\t\t\t{\n\t\t\t\tHistoryModel.getModel(\"find\").addItem(text);\n\t\t\t\tSearchAndReplace.setSearchString(text);\n\t\t\t\tSearchAndReplace.setSearchFileSet(new CurrentBufferSet());\n\t\t\t\tSearchAndReplace.hyperSearch(this);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif(searchBar == null)\n\t\t\tsearchBar = new SearchBar(this,true);\n\t\tif(searchBar.getParent() == null)\n\t\t\taddToolBar(TOP_GROUP,SEARCH_BAR_LAYER,searchBar);\n\n\t\tsearchBar.setHyperSearch(true);\n\t\tsearchBar.getField().setText(null);\n\t\tsearchBar.getField().requestFocus();\n\t\tsearchBar.getField().selectAll();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [6, 12], [7, 13], [8, 14], [9, 15], [1, 16], [10, 17], [10, 18], [2, 19], [11, 20], [3, 21], [3, 22], [3, 23], [4, 24], [14, 25], [19, 26], [21, 27], [22, 28], [26, 29], [21, 30], [27, 31], [27, 32], [28, 33], [23, 34], [21, 35], [21, 36], [21, 37], [21, 38], [31, 39], [31, 40], [32, 41], [22, 42], [22, 43], [36, 44], [38, 45], [38, 46], [40, 47], [42, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 6], [13, 7], [14, 8], [15, 9], [16, 1], [17, 10], [18, 10], [19, 2], [20, 11], [21, 3], [22, 3], [23, 3], [24, 4], [25, 14], [26, 19], [27, 21], [28, 22], [29, 26], [30, 21], [31, 27], [32, 27], [33, 28], [34, 23], [35, 21], [36, 21], [37, 21], [38, 21], [39, 31], [40, 31], [41, 32], [42, 22], [43, 22], [44, 36], [45, 38], [46, 38], [47, 40], [48, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "actionBar", "code": "\tpublic void actionBar()\n\t{\n\t\tif(actionBar == null)\n\t\t\tactionBar = new ActionBar(this,true);\n\t\tif(actionBar.getParent() == null)\n\t\t\taddToolBar(BOTTOM_GROUP,ACTION_BAR_LAYER,actionBar);\n\n\t\tactionBar.goToActionBar();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [4, 7], [4, 8], [2, 9], [5, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 4], [8, 4], [9, 2], [10, 5], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getKeyEventInterceptor", "code": "\tpublic KeyListener getKeyEventInterceptor()\n\t{\n\t\treturn keyEventInterceptor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setKeyEventInterceptor", "code": "\tpublic void setKeyEventInterceptor(KeyListener listener)\n\t{\n\t\tthis.keyEventInterceptor = listener;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInputHandler", "code": "\tpublic InputHandler getInputHandler()\n\t{\n\t\treturn inputHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInputHandler", "code": "\tpublic void setInputHandler(InputHandler inputHandler)\n\t{\n\t\tthis.inputHandler = inputHandler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMacroRecorder", "code": "\tpublic Macros.Recorder getMacroRecorder()\n\t{\n\t\treturn recorder;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMacroRecorder", "code": "\tpublic void setMacroRecorder(Macros.Recorder recorder)\n\t{\n\t\tthis.recorder = recorder;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "processKeyEvent", "code": "\tpublic void processKeyEvent(KeyEvent evt)\n\t{\n\t\tprocessKeyEvent(evt,VIEW);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "processKeyEvent", "code": "\tpublic void processKeyEvent(KeyEvent evt, boolean calledFromTextArea)\n\t{\n\t\tprocessKeyEvent(evt,calledFromTextArea\n\t\t\t? TEXT_AREA\n\t\t\t: VIEW);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "COND_EXPR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processKeyEvent", "code": "\tpublic void processKeyEvent(KeyEvent evt, int from)\n\t{\n\t\tif(Debug.DUMP_KEY_EVENTS && from != VIEW)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"Key event: \"\n\t\t\t\t+ GrabKeyDialog.toString(evt));\n\t\t}\n\n\t\tif(getTextArea().hasFocus() && from == VIEW)\n\t\t\treturn;\n\n\t\tevt = _preprocessKeyEvent(evt);\n\t\tif(evt == null)\n\t\t\treturn;\n\n\t\tif(Debug.DUMP_KEY_EVENTS && from != VIEW)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"Key event after workaround: \"\n\t\t\t\t+ GrabKeyDialog.toString(evt));\n\t\t}\n\n\t\tswitch(evt.getID())\n\t\t{\n\t\tcase KeyEvent.KEY_TYPED:\n\t\t\tboolean focusOnTextArea = false;\n\t\t\t// if the user pressed eg C+e n n in the\n\t\t\t// search bar we want focus to go back there\n\t\t\t// after the prefix is done\n\t\t\tif(prefixFocusOwner != null)\n\t\t\t{\n\t\t\t\tif(prefixFocusOwner.isShowing())\n\t\t\t\t{\n\t\t\t\t\tprefixFocusOwner.requestFocus();\n\t\t\t\t\tfocusOnTextArea = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyTyped(evt);\n\t\t\telse if(from == ACTION_BAR\n\t\t\t\t|| inputHandler.isPrefixActive()\n\t\t\t\t|| getTextArea().hasFocus())\n\t\t\t{\n\t\t\t\tKeyEventTranslator.Key keyStroke\n\t\t\t\t\t= KeyEventTranslator\n\t\t\t\t\t.translateKeyEvent(evt);\n\t\t\t\tif(keyStroke != null)\n\t\t\t\t{\n\t\t\t\t\tif(Debug.DUMP_KEY_EVENTS\n\t\t\t\t\t\t&& from != VIEW)\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.log(Log.DEBUG,this,\n\t\t\t\t\t\t\t\"Translated: \"\n\t\t\t\t\t\t\t+ keyStroke);\n\t\t\t\t\t}\n\t\t\t\t\tif(inputHandler.handleKey(keyStroke))\n\t\t\t\t\t\tevt.consume();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// we might have been closed as a result of\n\t\t\t// the above\n\t\t\tif(isClosed())\n\t\t\t\treturn;\n\n\t\t\t// this is a weird hack.\n\t\t\t// we don't want C+e a to insert 'a' in the\n\t\t\t// search bar if the search bar has focus...\n\t\t\tif(inputHandler.isPrefixActive())\n\t\t\t{\n\t\t\t\tif(getFocusOwner() instanceof JTextComponent)\n\t\t\t\t{\n\t\t\t\t\tprefixFocusOwner = getFocusOwner();\n\t\t\t\t\tgetTextArea().requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(focusOnTextArea)\n\t\t\t\t{\n\t\t\t\t\tgetTextArea().requestFocus();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprefixFocusOwner = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprefixFocusOwner = null;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_PRESSED:\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyPressed(evt);\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* boolean */ focusOnTextArea = false;\n\t\t\t\tif(prefixFocusOwner != null)\n\t\t\t\t{\n\t\t\t\t\tif(prefixFocusOwner.isShowing())\n\t\t\t\t\t{\n\t\t\t\t\t\tprefixFocusOwner.requestFocus();\n\t\t\t\t\t\tfocusOnTextArea = true;\n\t\t\t\t\t}\n\t\t\t\t\tprefixFocusOwner = null;\n\t\t\t\t}\n\n\t\t\t\tKeyEventTranslator.Key keyStroke\n\t\t\t\t\t= KeyEventTranslator\n\t\t\t\t\t.translateKeyEvent(evt);\n\t\t\t\tif(keyStroke != null)\n\t\t\t\t{\n\t\t\t\t\tif(Debug.DUMP_KEY_EVENTS\n\t\t\t\t\t\t&& from != VIEW)\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.log(Log.DEBUG,this,\n\t\t\t\t\t\t\t\"Translated: \"\n\t\t\t\t\t\t\t+ keyStroke);\n\t\t\t\t\t}\n\t\t\t\t\tif(inputHandler.handleKey(keyStroke))\n\t\t\t\t\t\tevt.consume();\n\t\t\t\t}\n\n\t\t\t\t// we might have been closed as a result of\n\t\t\t\t// the above\n\t\t\t\tif(isClosed())\n\t\t\t\t\treturn;\n\n\t\t\t\t// this is a weird hack.\n\t\t\t\t// we don't want C+e a to insert 'a' in the\n\t\t\t\t// search bar if the search bar has focus...\n\t\t\t\tif(inputHandler.isPrefixActive())\n\t\t\t\t{\n\t\t\t\t\tif(getFocusOwner() instanceof JTextComponent)\n\t\t\t\t\t{\n\t\t\t\t\t\tprefixFocusOwner = getFocusOwner();\n\t\t\t\t\t\tgetTextArea().requestFocus();\n\t\t\t\t\t}\n\t\t\t\t\telse if(focusOnTextArea)\n\t\t\t\t\t{\n\t\t\t\t\t\tgetTextArea().requestFocus();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprefixFocusOwner = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprefixFocusOwner = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_RELEASED:\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyReleased(evt);\n\t\t\tbreak;\n\t\t}\n\n\t\tif(!evt.isConsumed())\n\t\t\tsuper.processKeyEvent(evt);", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "IF", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [4, 13], [0, 14], [5, 15], [5, 16], [6, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [11, 28], [13, 29], [14, 30], [16, 31], [16, 32], [17, 33], [19, 34], [21, 35], [23, 36], [24, 37], [24, 38], [25, 39], [25, 40], [26, 41], [3, 42], [32, 43], [6, 44], [19, 45], [34, 46], [21, 47], [21, 48], [21, 49], [21, 50], [21, 51], [21, 52], [35, 53], [23, 54], [39, 55], [25, 56], [40, 57], [26, 58], [41, 59], [27, 60], [42, 61], [44, 62], [47, 63], [48, 64], [48, 65], [49, 66], [51, 67], [21, 68], [23, 69], [54, 70], [54, 71], [39, 72], [39, 73], [55, 74], [55, 75], [58, 76], [61, 77], [61, 78], [62, 79], [62, 80], [47, 81], [49, 82], [49, 83], [66, 84], [50, 85], [51, 86], [67, 87], [68, 88], [69, 89], [71, 90], [72, 91], [74, 92], [75, 93], [75, 94], [47, 95], [81, 96], [81, 97], [82, 98], [83, 99], [51, 100], [86, 101], [54, 102], [54, 103], [72, 104], [72, 105], [91, 106], [73, 107], [58, 108], [58, 109], [95, 110], [97, 111], [82, 112], [99, 113], [100, 114], [70, 115], [70, 116], [102, 117], [103, 118], [104, 119], [105, 120], [108, 121], [81, 122], [81, 123], [83, 124], [86, 125], [86, 126], [115, 127], [116, 128], [104, 129], [120, 130], [96, 131], [96, 132], [122, 133], [123, 134], [124, 135], [125, 136], [105, 137], [131, 138], [132, 139], [135, 140], [137, 141], [141, 142], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 4], [13, 4], [14, 0], [15, 5], [16, 5], [17, 6], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 11], [29, 13], [30, 14], [31, 16], [32, 16], [33, 17], [34, 19], [35, 21], [36, 23], [37, 24], [38, 24], [39, 25], [40, 25], [41, 26], [42, 3], [43, 32], [44, 6], [45, 19], [46, 34], [47, 21], [48, 21], [49, 21], [50, 21], [51, 21], [52, 21], [53, 35], [54, 23], [55, 39], [56, 25], [57, 40], [58, 26], [59, 41], [60, 27], [61, 42], [62, 44], [63, 47], [64, 48], [65, 48], [66, 49], [67, 51], [68, 21], [69, 23], [70, 54], [71, 54], [72, 39], [73, 39], [74, 55], [75, 55], [76, 58], [77, 61], [78, 61], [79, 62], [80, 62], [81, 47], [82, 49], [83, 49], [84, 66], [85, 50], [86, 51], [87, 67], [88, 68], [89, 69], [90, 71], [91, 72], [92, 74], [93, 75], [94, 75], [95, 47], [96, 81], [97, 81], [98, 82], [99, 83], [100, 51], [101, 86], [102, 54], [103, 54], [104, 72], [105, 72], [106, 91], [107, 73], [108, 58], [109, 58], [110, 95], [111, 97], [112, 82], [113, 99], [114, 100], [115, 70], [116, 70], [117, 102], [118, 103], [119, 104], [120, 105], [121, 108], [122, 81], [123, 81], [124, 83], [125, 86], [126, 86], [127, 115], [128, 116], [129, 104], [130, 120], [131, 96], [132, 96], [133, 122], [134, 123], [135, 124], [136, 125], [137, 105], [138, 131], [139, 132], [140, 135], [141, 137], [142, 141], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142]]}, {"function_name": "splitHorizontally", "code": "\tpublic EditPane splitHorizontally()\n\t{\n\t\treturn split(JSplitPane.VERTICAL_SPLIT);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "splitVertically", "code": "\tpublic EditPane splitVertically()\n\t{\n\t\treturn split(JSplitPane.HORIZONTAL_SPLIT);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "split", "code": "\tpublic EditPane split(int orientation)\n\t{\n\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\teditPane.saveCaretInfo();\n\t\tEditPane oldEditPane = editPane;\n\t\tsetEditPane(createEditPane(oldEditPane.getBuffer()));\n\t\teditPane.loadCaretInfo();\n\n\t\tJComponent oldParent = (JComponent)oldEditPane.getParent();\n\n\t\tfinal JSplitPane newSplitPane = new JSplitPane(orientation);\n\t\tnewSplitPane.setOneTouchExpandable(true);\n\t\tnewSplitPane.setBorder(null);\n\t\tnewSplitPane.setMinimumSize(new Dimension(0,0));\n\n\t\tint parentSize = (orientation == JSplitPane.VERTICAL_SPLIT\n\t\t\t? oldEditPane.getHeight() : oldEditPane.getWidth());\n\t\tfinal int dividerPosition = (int)((double)(parentSize\n\t\t\t- newSplitPane.getDividerSize()) * 0.5);\n\t\tnewSplitPane.setDividerLocation(dividerPosition);\n\n\t\tif(oldParent instanceof JSplitPane)\n\t\t{\n\t\t\tJSplitPane oldSplitPane = (JSplitPane)oldParent;\n\t\t\tint dividerPos = oldSplitPane.getDividerLocation();\n\n\t\t\tComponent left = oldSplitPane.getLeftComponent();\n\n\t\t\tif(left == oldEditPane)\n\t\t\t\toldSplitPane.setLeftComponent(newSplitPane);\n\t\t\telse\n\t\t\t\toldSplitPane.setRightComponent(newSplitPane);\n\n\t\t\tnewSplitPane.setLeftComponent(oldEditPane);\n\t\t\tnewSplitPane.setRightComponent(editPane);\n\n\t\t\toldSplitPane.setDividerLocation(dividerPos);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.splitPane = newSplitPane;\n\n\t\t\tnewSplitPane.setLeftComponent(oldEditPane);\n\t\t\tnewSplitPane.setRightComponent(editPane);\n\n\t\t\toldParent.add(newSplitPane,0);\n\t\t\toldParent.revalidate();\n\t\t}\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tnewSplitPane.setDividerLocation(dividerPosition);\n\t\t\t}\n\t\t});\n\n\t\teditPane.focusOnTextArea();\n\n\t\treturn editPane;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [10, 20], [2, 21], [2, 22], [2, 23], [2, 24], [4, 25], [13, 26], [14, 27], [15, 28], [5, 29], [17, 30], [19, 31], [20, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [21, 41], [3, 42], [25, 43], [25, 44], [25, 45], [26, 46], [26, 47], [6, 48], [30, 49], [34, 50], [21, 51], [21, 52], [22, 53], [23, 54], [42, 55], [32, 56], [42, 57], [57, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 10], [21, 2], [22, 2], [23, 2], [24, 2], [25, 4], [26, 13], [27, 14], [28, 15], [29, 5], [30, 17], [31, 19], [32, 20], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 21], [42, 3], [43, 25], [44, 25], [45, 25], [46, 26], [47, 26], [48, 6], [49, 30], [50, 34], [51, 21], [52, 21], [53, 22], [54, 23], [55, 42], [56, 32], [57, 42], [58, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "unsplit", "code": "\tpublic void unsplit()\n\t{\n\t\tif(splitPane != null)\n\t\t{\n\t\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\t\tEditPane[] editPanes = getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\tEditPane _editPane = editPanes[i];\n\t\t\t\tif(editPane != _editPane)\n\t\t\t\t\t_editPane.close();\n\t\t\t}\n\n\t\t\tJComponent parent = (JComponent)splitPane.getParent();\n\n\t\t\tparent.remove(splitPane);\n\t\t\tparent.add(editPane,0);\n\t\t\tparent.revalidate();\n\n\t\t\tsplitPane = null;\n\t\t\tupdateTitle();\n\n\t\t\teditPane.focusOnTextArea();\n\t\t}\n\t\telse\n\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [5, 15], [1, 16], [11, 17], [13, 18], [5, 19], [5, 20], [6, 21], [16, 22], [4, 23], [19, 24], [5, 25], [19, 26], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 5], [16, 1], [17, 11], [18, 13], [19, 5], [20, 5], [21, 6], [22, 16], [23, 4], [24, 19], [25, 5], [26, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "unsplitCurrent", "code": "\tpublic void unsplitCurrent()\n\t{\n\t\tif(splitPane != null)\n\t\t{\n\t\t\tPerspectiveManager.setPerspectiveDirty(true);\n\n\t\t\t// find first split pane parenting current edit pane\n\t\t\tComponent comp = editPane;\n\t\t\twhile(!(comp instanceof JSplitPane))\n\t\t\t{\n\t\t\t\tcomp = comp.getParent();\n\t\t\t}\n\n\t\t\t// get rid of any edit pane that is a child\n\t\t\t// of the current edit pane's parent splitter\n\t\t\tEditPane[] editPanes = getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\tEditPane _editPane = editPanes[i];\n\t\t\t\tif(GUIUtilities.isAncestorOf(comp,_editPane)\n\t\t\t\t\t&& _editPane != editPane)\n\t\t\t\t\t_editPane.close();\n\t\t\t}\n\n\t\t\tJComponent parent = (JComponent)comp.getParent();\n\n\t\t\tif(parent instanceof JSplitPane)\n\t\t\t{\n\t\t\t\tJSplitPane parentSplit = (JSplitPane)parent;\n\t\t\t\tint pos = parentSplit.getDividerLocation();\n\t\t\t\tif(parentSplit.getLeftComponent() == comp)\n\t\t\t\t\tparentSplit.setLeftComponent(editPane);\n\t\t\t\telse\n\t\t\t\t\tparentSplit.setRightComponent(editPane);\n\t\t\t\tparentSplit.setDividerLocation(pos);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparent.remove(comp);\n\t\t\t\tparent.add(editPane,0);\n\t\t\t\tsplitPane = null;\n\t\t\t}\n\n\t\t\tparent.revalidate();\n\n\t\t\tupdateTitle();\n\n\t\t\teditPane.focusOnTextArea();\n\t\t}\n\t\telse\n\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [3, 11], [1, 12], [1, 13], [1, 14], [4, 15], [6, 16], [8, 17], [1, 18], [4, 19], [4, 20], [4, 21], [6, 22], [6, 23], [7, 24], [18, 25], [4, 26], [4, 27], [4, 28], [4, 29], [19, 30], [5, 31], [22, 32], [6, 33], [8, 34], [26, 35], [27, 36], [19, 37], [19, 38], [30, 39], [20, 40], [22, 41], [32, 42], [32, 43], [34, 44], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 3], [12, 1], [13, 1], [14, 1], [15, 4], [16, 6], [17, 8], [18, 1], [19, 4], [20, 4], [21, 4], [22, 6], [23, 6], [24, 7], [25, 18], [26, 4], [27, 4], [28, 4], [29, 4], [30, 19], [31, 5], [32, 22], [33, 6], [34, 8], [35, 26], [36, 27], [37, 19], [38, 19], [39, 30], [40, 20], [41, 22], [42, 32], [43, 32], [44, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "nextTextArea", "code": "\tpublic void nextTextArea()\n\t{\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t{\n\t\t\tif(editPane == editPanes[i])\n\t\t\t{\n\t\t\t\tif(i == editPanes.length - 1)\n\t\t\t\t\teditPanes[0].focusOnTextArea();\n\t\t\t\telse\n\t\t\t\t\teditPanes[i+1].focusOnTextArea();\n\t\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [4, 6], [1, 7], [4, 8], [4, 9], [9, 10], [10, 11], [9, 12], [9, 13], [11, 14], [9, 15], [9, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 4], [7, 1], [8, 4], [9, 4], [10, 9], [11, 10], [12, 9], [13, 9], [14, 11], [15, 9], [16, 9], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "prevTextArea", "code": "\tpublic void prevTextArea()\n\t{\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t{\n\t\t\tif(editPane == editPanes[i])\n\t\t\t{\n\t\t\t\tif(i == 0)\n\t\t\t\t\teditPanes[editPanes.length - 1].focusOnTextArea();\n\t\t\t\telse\n\t\t\t\t\teditPanes[i-1].focusOnTextArea();\n\t\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [4, 6], [1, 7], [4, 8], [4, 9], [9, 10], [10, 11], [9, 12], [9, 13], [9, 14], [9, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 4], [7, 1], [8, 4], [9, 4], [10, 9], [11, 10], [12, 9], [13, 9], [14, 9], [15, 9], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getSplitPane", "code": "\tpublic JSplitPane getSplitPane()\n\t{\n\t\treturn splitPane;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBuffer", "code": "\tpublic Buffer getBuffer()\n\t{\n\t\tif(editPane == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn editPane.getBuffer();", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setBuffer", "code": "\tpublic void setBuffer(Buffer buffer)\n\t{\n\t\teditPane.setBuffer(buffer);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "goToBuffer", "code": "\tpublic EditPane goToBuffer(Buffer buffer)\n\t{\n\t\tif(editPane.getBuffer() == buffer)\n\t\t{\n\t\t\teditPane.focusOnTextArea();\n\t\t\treturn editPane;\n\t\t}\n\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t{\n\t\t\tEditPane ep = editPanes[i];\n\t\t\tif(ep.getBuffer() == buffer\n\t\t\t\t/* ignore zero-height splits, etc */\n\t\t\t\t&& ep.getTextArea().getVisibleLines() > 1)\n\t\t\t{\n\t\t\t\tsetEditPane(ep);\n\t\t\t\tep.focusOnTextArea();\n\t\t\t\treturn ep;\n\t\t\t}\n\t\t}\n\t\tsetBuffer(buffer);\n\t\treturn editPane;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [2, 9], [2, 10], [3, 11], [4, 12], [8, 13], [9, 14], [2, 15], [4, 16], [9, 17], [14, 18], [14, 19], [9, 20], [9, 21], [18, 22], [18, 23], [19, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 2], [10, 2], [11, 3], [12, 4], [13, 8], [14, 9], [15, 2], [16, 4], [17, 9], [18, 14], [19, 14], [20, 9], [21, 9], [22, 18], [23, 18], [24, 19], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getTextArea", "code": "\tpublic JEditTextArea getTextArea()\n\t{\n\t\tif(editPane == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn editPane.getTextArea();", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getEditPane", "code": "\tpublic EditPane getEditPane()\n\t{\n\t\treturn editPane;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEditPanes", "code": "\tpublic EditPane[] getEditPanes()\n\t{\n\t\tif(splitPane == null)\n\t\t{\n\t\t\tEditPane[] ep = { editPane };\n\t\t\treturn ep;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVector vec = new Vector();\n\t\t\tgetEditPanes(vec,splitPane);\n\t\t\tEditPane[] ep = new EditPane[vec.size()];\n\t\t\tvec.copyInto(ep);\n\t\t\treturn ep;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [1, 9], [1, 10], [5, 11], [4, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 1], [10, 1], [11, 5], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getViewConfig", "code": "\tpublic ViewConfig getViewConfig()\n\t{\n\t\tStringBuffer splitConfig = new StringBuffer();\n\t\tif(splitPane != null)\n\t\t\tgetSplitConfig(splitPane,splitConfig);\n\t\telse\n\t\t{\n\t\t\tsplitConfig.append('\"');\n\t\t\tsplitConfig.append(MiscUtilities.charsToEscapes(\n\t\t\t\tgetBuffer().getPath()));\n\t\t\tsplitConfig.append(\"\\\" buffer\");\n\t\t}\n\n\t\tViewConfig config = new ViewConfig();\n\t\tconfig.plainView = isPlainView();\n\t\tconfig.splitConfig = splitConfig.toString();\n\t\tconfig.x = getX();\n\t\tconfig.y = getY();\n\t\tconfig.width = getWidth();\n\t\tconfig.height = getHeight();\n\t\tconfig.extState = GUIUtilities.getExtendedState(this);\n\n\t\tconfig.top = dockableWindowManager.getTopDockingArea().getCurrent();\n\t\tconfig.left = dockableWindowManager.getLeftDockingArea().getCurrent();\n\t\tconfig.bottom = dockableWindowManager.getBottomDockingArea().getCurrent();\n\t\tconfig.right = dockableWindowManager.getRightDockingArea().getCurrent();\n\n\t\tconfig.topPos = dockableWindowManager.getTopDockingArea().getDimension();\n\t\tconfig.leftPos = dockableWindowManager.getLeftDockingArea().getDimension();\n\t\tconfig.bottomPos = dockableWindowManager.getBottomDockingArea().getDimension();\n\t\tconfig.rightPos = dockableWindowManager.getRightDockingArea().getDimension();\n\n\t\treturn config;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [3, 20], [5, 21], [6, 22], [7, 23], [8, 24], [9, 25], [10, 26], [11, 27], [12, 28], [13, 29], [14, 30], [15, 31], [16, 32], [17, 33], [18, 34], [19, 35], [2, 36], [3, 37], [20, 38], [4, 39], [21, 40], [22, 41], [23, 42], [24, 43], [25, 44], [26, 45], [27, 46], [28, 47], [3, 48], [3, 49], [3, 50], [48, 51], [49, 52], [50, 53], [52, 54], [54, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 3], [21, 5], [22, 6], [23, 7], [24, 8], [25, 9], [26, 10], [27, 11], [28, 12], [29, 13], [30, 14], [31, 15], [32, 16], [33, 17], [34, 18], [35, 19], [36, 2], [37, 3], [38, 20], [39, 4], [40, 21], [41, 22], [42, 23], [43, 24], [44, 25], [45, 26], [46, 27], [47, 28], [48, 3], [49, 3], [50, 3], [51, 48], [52, 49], [53, 50], [54, 52], [55, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "isClosed", "code": "\tpublic boolean isClosed()\n\t{\n\t\treturn closed;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isPlainView", "code": "\tpublic boolean isPlainView()\n\t{\n\t\treturn plainView;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNext", "code": "\tpublic View getNext()\n\t{\n\t\treturn next;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPrev", "code": "\tpublic View getPrev()\n\t{\n\t\treturn prev;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "handleMessage", "code": "\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof PropertiesChanged)\n\t\t\tpropertiesChanged();\n\t\telse if(msg instanceof SearchSettingsChanged)\n\t\t{\n\t\t\tif(searchBar != null)\n\t\t\t\tsearchBar.update();\n\t\t}\n\t\telse if(msg instanceof BufferUpdate)\n\t\t\thandleBufferUpdate((BufferUpdate)msg);\n\t\telse if(msg instanceof EditPaneUpdate)\n\t\t\thandleEditPaneUpdate((EditPaneUpdate)msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [5, 8], [5, 9], [3, 10], [8, 11], [5, 12], [10, 13], [8, 14], [10, 15], [13, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 5], [9, 5], [10, 3], [11, 8], [12, 5], [13, 10], [14, 8], [15, 10], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getMinimumSize", "code": "\tpublic Dimension getMinimumSize()\n\t{\n\t\treturn new Dimension(0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setWaitSocket", "code": "\tpublic void setWaitSocket(Socket waitSocket)\n\t{\n\t\tthis.waitSocket = waitSocket;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[\"\n\t\t\t+ (jEdit.getActiveView() == this\n\t\t\t? \"active\" : \"inactive\")\n\t\t\t+ \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [5, 9], [6, 10], [6, 11], [9, 12], [11, 13], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [9, 5], [10, 6], [11, 6], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "close", "code": "\tvoid close()\n\t{\n\t\tGUIUtilities.saveGeometry(this,plainView ? \"plain-view\" : \"view\");\n\t\tclosed = true;\n\n\t\t// save dockable window geometry, and close 'em\n\t\tdockableWindowManager.close();\n\n\t\tEditBus.removeFromBus(this);\n\t\tdispose();\n\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\teditPanes[i].close();\n\n\t\t// null some variables so that retaining references\n\t\t// to closed views won't hurt as much.\n\t\ttoolBarManager = null;\n\t\ttoolBar = null;\n\t\tsearchBar = null;\n\t\tsplitPane = null;\n\t\tinputHandler = null;\n\t\trecorder = null;\n\n\t\tgetContentPane().removeAll();\n\n\t\t// notify clients with -wait\n\t\tif(waitSocket != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\twaitSocket.getOutputStream().write('\\0');\n\t\t\t\twaitSocket.getOutputStream().flush();\n\t\t\t\twaitSocket.getInputStream().close();\n\t\t\t\twaitSocket.getOutputStream().close();\n\t\t\t\twaitSocket.close();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CATCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [4, 19], [5, 20], [6, 21], [7, 22], [8, 23], [9, 24], [10, 25], [11, 26], [3, 27], [16, 28], [17, 29], [18, 30], [2, 31], [2, 32], [29, 33], [29, 34], [18, 35], [18, 36], [18, 37], [18, 38], [18, 39], [36, 40], [37, 41], [38, 42], [39, 43], [43, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 4], [20, 5], [21, 6], [22, 7], [23, 8], [24, 9], [25, 10], [26, 11], [27, 3], [28, 16], [29, 17], [30, 18], [31, 2], [32, 2], [33, 29], [34, 29], [35, 18], [36, 18], [37, 18], [38, 18], [39, 18], [40, 36], [41, 37], [42, 38], [43, 39], [44, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "updateTitle", "code": "\tvoid updateTitle()\n\t{\n\t\tVector buffers = new Vector();\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t{\n\t\t\tBuffer buffer = editPanes[i].getBuffer();\n\t\t\tif(buffers.indexOf(buffer) == -1)\n\t\t\t\tbuffers.addElement(buffer);\n\t\t}\n\n\t\tStringBuffer title = new StringBuffer(jEdit.getProperty(\"view.title\"));\n\t\tfor(int i = 0; i < buffers.size(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\ttitle.append(\", \");\n\n\t\t\tBuffer buffer = (Buffer)buffers.elementAt(i);\n\t\t\ttitle.append((showFullPath && !buffer.isNewFile())\n\t\t\t\t? buffer.getPath() : buffer.getName());\n\t\t\tif(buffer.isDirty())\n\t\t\t\ttitle.append(jEdit.getProperty(\"view.title.dirty\"));\n\t\t}\n\t\tsetTitle(title.toString());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [6, 9], [1, 10], [1, 11], [1, 12], [7, 13], [2, 14], [3, 15], [3, 16], [4, 17], [5, 18], [10, 19], [1, 20], [12, 21], [1, 22], [14, 23], [15, 24], [3, 25], [10, 26], [20, 27], [12, 28], [21, 29], [23, 30], [15, 31], [24, 32], [24, 33], [26, 34], [27, 35], [27, 36], [27, 37], [11, 38], [28, 39], [16, 40], [34, 41], [37, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 6], [10, 1], [11, 1], [12, 1], [13, 7], [14, 2], [15, 3], [16, 3], [17, 4], [18, 5], [19, 10], [20, 1], [21, 12], [22, 1], [23, 14], [24, 15], [25, 3], [26, 10], [27, 20], [28, 12], [29, 21], [30, 23], [31, 15], [32, 24], [33, 24], [34, 26], [35, 27], [36, 27], [37, 27], [38, 11], [39, 28], [40, 16], [41, 34], [42, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getEditPanes", "code": "\tprivate void getEditPanes(Vector vec, Component comp)\n\t{\n\t\tif(comp instanceof EditPane)\n\t\t\tvec.addElement(comp);\n\t\telse if(comp instanceof JSplitPane)\n\t\t{\n\t\t\tJSplitPane split = (JSplitPane)comp;\n\t\t\tgetEditPanes(vec,split.getLeftComponent());\n\t\t\tgetEditPanes(vec,split.getRightComponent());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [4, 8], [4, 9], [4, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 4], [9, 4], [10, 4], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSplitConfig", "code": "\tprivate void getSplitConfig(JSplitPane splitPane,\n\t\tStringBuffer splitConfig)\n\t{\n\t\tComponent right = splitPane.getRightComponent();\n\t\tif(right instanceof JSplitPane)\n\t\t\tgetSplitConfig((JSplitPane)right,splitConfig);\n\t\telse\n\t\t{\n\t\t\tsplitConfig.append('\"');\n\t\t\tsplitConfig.append(MiscUtilities.charsToEscapes(\n\t\t\t\t((EditPane)right).getBuffer().getPath()));\n\t\t\tsplitConfig.append(\"\\\" buffer\");\n\t\t}\n\n\t\tsplitConfig.append(' ');\n\n\t\tComponent left = splitPane.getLeftComponent();\n\t\tif(left instanceof JSplitPane)\n\t\t\tgetSplitConfig((JSplitPane)left,splitConfig);\n\t\telse\n\t\t{\n\t\t\tsplitConfig.append('\"');\n\t\t\tsplitConfig.append(MiscUtilities.charsToEscapes(\n\t\t\t\t((EditPane)left).getBuffer().getPath()));\n\t\t\tsplitConfig.append(\"\\\" buffer\");\n\t\t}\n\n\t\tsplitConfig.append(' ');\n\t\tsplitConfig.append(splitPane.getDividerLocation());\n\t\tsplitConfig.append(' ');\n\t\tsplitConfig.append(splitPane.getOrientation()\n\t\t\t== JSplitPane.VERTICAL_SPLIT ? \"vertical\" : \"horizontal\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [3, 13], [7, 14], [8, 15], [9, 16], [10, 17], [1, 18], [2, 19], [12, 20], [3, 21], [4, 22], [14, 23], [14, 24], [14, 25], [1, 26], [1, 27], [1, 28], [3, 29], [3, 30], [3, 31], [25, 32], [26, 33], [27, 34], [28, 35], [29, 36], [30, 37], [31, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 3], [14, 7], [15, 8], [16, 9], [17, 10], [18, 1], [19, 2], [20, 12], [21, 3], [22, 4], [23, 14], [24, 14], [25, 14], [26, 1], [27, 1], [28, 1], [29, 3], [30, 3], [31, 3], [32, 25], [33, 26], [34, 27], [35, 28], [36, 29], [37, 30], [38, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "restoreSplitConfig", "code": "\tprivate Component restoreSplitConfig(Buffer buffer, String splitConfig)\n\t\tthrows IOException\n\t// this is where checked exceptions piss me off. this method only uses\n\t// a StringReader which can never throw an exception...\n\t{\n\t\tif(buffer != null)\n\t\t\treturn (editPane = createEditPane(buffer));\n\t\telse if(splitConfig == null)\n\t\t\treturn (editPane = createEditPane(jEdit.getFirstBuffer()));\n\n\t\tBuffer[] buffers = jEdit.getBuffers();\n\n\t\tStack stack = new Stack();\n\n\t\t// we create a stream tokenizer for parsing a simple\n\t\t// stack-based language\n\t\tStreamTokenizer st = new StreamTokenizer(new StringReader(\n\t\t\tsplitConfig));\n\t\tst.whitespaceChars(0,' ');\n\t\t/* all printable ASCII characters */\n\t\tst.wordChars('#','~');\n\t\tst.commentChar('!');\n\t\tst.quoteChar('\"');\n\t\tst.eolIsSignificant(false);\n\nloop:\t\tfor(;;)\n\t\t{\n\t\t\tswitch(st.nextToken())\n\t\t\t{\n\t\t\tcase StreamTokenizer.TT_EOF:\n\t\t\t\tbreak loop;\n\t\t\tcase StreamTokenizer.TT_WORD:\n\t\t\t\tif(st.sval.equals(\"vertical\") ||\n\t\t\t\t\tst.sval.equals(\"horizontal\"))\n\t\t\t\t{\n\t\t\t\t\tint orientation\n\t\t\t\t\t\t= (st.sval.equals(\"vertical\")\n\t\t\t\t\t\t? JSplitPane.VERTICAL_SPLIT\n\t\t\t\t\t\t: JSplitPane.HORIZONTAL_SPLIT);\n\t\t\t\t\tint divider = ((Integer)stack.pop())\n\t\t\t\t\t\t.intValue();\n\t\t\t\t\tstack.push(splitPane = new JSplitPane(\n\t\t\t\t\t\torientation,\n\t\t\t\t\t\t(Component)stack.pop(),\n\t\t\t\t\t\t(Component)stack.pop()));\n\t\t\t\t\tsplitPane.setOneTouchExpandable(true);\n\t\t\t\t\tsplitPane.setBorder(null);\n\t\t\t\t\tsplitPane.setMinimumSize(\n\t\t\t\t\t\tnew Dimension(0,0));\n\t\t\t\t\tsplitPane.setDividerLocation(divider);\n\t\t\t\t}\n\t\t\t\telse if(st.sval.equals(\"buffer\"))\n\t\t\t\t{\n\t\t\t\t\tObject obj = stack.pop();\n\t\t\t\t\tif(obj instanceof Integer)\n\t\t\t\t\t{\n\t\t\t\t\t\tint index = ((Integer)obj).intValue();\n\t\t\t\t\t\tif(index >= 0 && index < buffers.length)\n\t\t\t\t\t\t\tbuffer = buffers[index];\n\t\t\t\t\t}\n\t\t\t\t\telse if(obj instanceof String)\n\t\t\t\t\t{\n\t\t\t\t\t\tString path = (String)obj;\n\t\t\t\t\t\tbuffer = jEdit.getBuffer(path);\n\t\t\t\t\t}\n\n\t\t\t\t\tif(buffer == null)\n\t\t\t\t\t\tbuffer = jEdit.getFirstBuffer();\n\n\t\t\t\t\tstack.push(editPane = createEditPane(\n\t\t\t\t\t\tbuffer));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase StreamTokenizer.TT_NUMBER:\n\t\t\t\tstack.push(new Integer((int)st.nval));\n\t\t\t\tbreak;\n\t\t\tcase '\"':\n\t\t\t\tstack.push(st.sval);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tupdateGutterBorders();\n\n\t\treturn (Component)stack.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [6, 15], [6, 16], [6, 17], [1, 18], [2, 19], [10, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [14, 26], [3, 27], [4, 28], [5, 29], [15, 30], [15, 31], [16, 32], [17, 33], [19, 34], [27, 35], [30, 36], [31, 37], [32, 38], [19, 39], [19, 40], [19, 41], [19, 42], [19, 43], [19, 44], [36, 45], [19, 46], [19, 47], [43, 48], [43, 49], [45, 50], [47, 51], [48, 52], [43, 53], [43, 54], [49, 55], [49, 56], [48, 57], [48, 58], [48, 59], [52, 60], [43, 61], [43, 62], [43, 63], [43, 64], [43, 65], [55, 66], [56, 67], [48, 68], [57, 69], [58, 70], [58, 71], [62, 72], [63, 73], [64, 74], [65, 75], [54, 76], [68, 77], [57, 78], [69, 79], [70, 80], [58, 81], [58, 82], [59, 83], [72, 84], [72, 85], [75, 86], [53, 87], [76, 88], [77, 89], [78, 90], [70, 91], [81, 92], [88, 93], [70, 94], [81, 95], [92, 96], [92, 97], [86, 98], [86, 99], [94, 100], [97, 101], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 6], [16, 6], [17, 6], [18, 1], [19, 2], [20, 10], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 14], [27, 3], [28, 4], [29, 5], [30, 15], [31, 15], [32, 16], [33, 17], [34, 19], [35, 27], [36, 30], [37, 31], [38, 32], [39, 19], [40, 19], [41, 19], [42, 19], [43, 19], [44, 19], [45, 36], [46, 19], [47, 19], [48, 43], [49, 43], [50, 45], [51, 47], [52, 48], [53, 43], [54, 43], [55, 49], [56, 49], [57, 48], [58, 48], [59, 48], [60, 52], [61, 43], [62, 43], [63, 43], [64, 43], [65, 43], [66, 55], [67, 56], [68, 48], [69, 57], [70, 58], [71, 58], [72, 62], [73, 63], [74, 64], [75, 65], [76, 54], [77, 68], [78, 57], [79, 69], [80, 70], [81, 58], [82, 58], [83, 59], [84, 72], [85, 72], [86, 75], [87, 53], [88, 76], [89, 77], [90, 78], [91, 70], [92, 81], [93, 88], [94, 70], [95, 81], [96, 92], [97, 92], [98, 86], [99, 86], [100, 94], [101, 97], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101]]}, {"function_name": "propertiesChanged", "code": "\tprivate void propertiesChanged()\n\t{\n\t\tsetJMenuBar(GUIUtilities.loadMenuBar(\"view.mbar\"));\n\n\t\tloadToolBars();\n\n\t\tshowFullPath = jEdit.getBooleanProperty(\"view.showFullPath\");\n\t\tupdateTitle();\n\n\t\tstatus.propertiesChanged();\n\n\t\tremoveToolBar(status);\n\t\tgetContentPane().remove(status);\n\n\t\tif(jEdit.getBooleanProperty(\"view.toolbar.alternateLayout\"))\n\t\t{\n\t\t\tgetContentPane().add(BorderLayout.NORTH,topToolBars);\n\t\t\tgetContentPane().add(BorderLayout.SOUTH,bottomToolBars);\n\t\t\tif(!plainView && jEdit.getBooleanProperty(\"view.status.visible\"))\n\t\t\t\taddToolBar(BOTTOM_GROUP,STATUS_BAR_LAYER,status);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdockableWindowManager.add(topToolBars,\n\t\t\t\tDockableWindowManager.DockableLayout\n\t\t\t\t.TOP_TOOLBARS,0);\n\t\t\tdockableWindowManager.add(bottomToolBars,\n\t\t\t\tDockableWindowManager.DockableLayout\n\t\t\t\t.BOTTOM_TOOLBARS,0);\n\t\t\tif(!plainView && jEdit.getBooleanProperty(\"view.status.visible\"))\n\t\t\t\tgetContentPane().add(BorderLayout.SOUTH,status);\n\t\t}\n\n\t\tgetRootPane().revalidate();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [1, 12], [1, 13], [3, 14], [4, 15], [8, 16], [10, 17], [12, 18], [1, 19], [1, 20], [13, 21], [1, 22], [1, 23], [16, 24], [17, 25], [12, 26], [18, 27], [19, 28], [20, 29], [13, 30], [21, 31], [22, 32], [23, 33], [26, 34], [27, 35], [31, 36], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 1], [13, 1], [14, 3], [15, 4], [16, 8], [17, 10], [18, 12], [19, 1], [20, 1], [21, 13], [22, 1], [23, 1], [24, 16], [25, 17], [26, 12], [27, 18], [28, 19], [29, 20], [30, 13], [31, 21], [32, 22], [33, 23], [34, 26], [35, 27], [36, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "loadToolBars", "code": "\tprivate void loadToolBars()\n\t{\n\t\tif(jEdit.getBooleanProperty(\"view.showToolbar\") && !plainView)\n\t\t{\n\t\t\tif(toolBar != null)\n\t\t\t\ttoolBarManager.removeToolBar(toolBar);\n\n\t\t\ttoolBar = GUIUtilities.loadToolBar(\"view.toolbar\");\n\n\t\t\taddToolBar(TOP_GROUP, SYSTEM_BAR_LAYER, toolBar);\n\t\t}\n\t\telse if(toolBar != null)\n\t\t{\n\t\t\tremoveToolBar(toolBar);\n\t\t\ttoolBar = null;\n\t\t}\n\n\t\tif(searchBar != null)\n\t\t\tremoveToolBar(searchBar);\n\n\t\tif(jEdit.getBooleanProperty(\"view.showSearchbar\") && !plainView)\n\t\t{\n\t\t\tif(searchBar == null)\n\t\t\t\tsearchBar = new SearchBar(this,false);\n\t\t\tsearchBar.propertiesChanged();\n\t\t\taddToolBar(TOP_GROUP,SEARCH_BAR_LAYER,searchBar);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [3, 7], [1, 8], [4, 9], [2, 10], [5, 11], [6, 12], [3, 13], [7, 14], [1, 15], [1, 16], [8, 17], [9, 18], [12, 19], [3, 20], [3, 21], [13, 22], [14, 23], [8, 24], [17, 25], [6, 26], [6, 27], [21, 28], [13, 29], [22, 30], [24, 31], [26, 32], [28, 33], [31, 34], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 3], [8, 1], [9, 4], [10, 2], [11, 5], [12, 6], [13, 3], [14, 7], [15, 1], [16, 1], [17, 8], [18, 9], [19, 12], [20, 3], [21, 3], [22, 13], [23, 14], [24, 8], [25, 17], [26, 6], [27, 6], [28, 21], [29, 13], [30, 22], [31, 24], [32, 26], [33, 28], [34, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "createEditPane", "code": "\tprivate EditPane createEditPane(Buffer buffer)\n\t{\n\t\tEditPane editPane = new EditPane(this,buffer);\n\t\tJEditTextArea textArea = editPane.getTextArea();\n\t\ttextArea.addFocusListener(new FocusHandler());\n\t\ttextArea.addCaretListener(new CaretHandler());\n\t\ttextArea.addScrollListener(new ScrollHandler());\n\t\tEditBus.send(new EditPaneUpdate(editPane,EditPaneUpdate.CREATED));\n\t\treturn editPane;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [2, 13], [3, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 2], [14, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setEditPane", "code": "\tprivate void setEditPane(EditPane editPane)\n\t{\n\t\tthis.editPane = editPane;\n\t\tstatus.updateCaretStatus();\n\t\tstatus.updateBufferStatus();\n\t\tstatus.updateMiscStatus();\n\n\t\t// repaint the gutter so that the border color\n\t\t// reflects the focus state\n\t\tupdateGutterBorders();\n\n\t\tEditBus.send(new ViewUpdate(this,ViewUpdate.EDIT_PANE_CHANGED));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "handleBufferUpdate", "code": "\tprivate void handleBufferUpdate(BufferUpdate msg)\n\t{\n\t\tBuffer buffer = msg.getBuffer();\n\t\tif(msg.getWhat() == BufferUpdate.DIRTY_CHANGED\n\t\t\t|| msg.getWhat() == BufferUpdate.LOADED)\n\t\t{\n\t\t\tEditPane[] editPanes = getEditPanes();\n\t\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\t{\n\t\t\t\tif(editPanes[i].getBuffer() == buffer)\n\t\t\t\t{\n\t\t\t\t\tupdateTitle();\n\t\t\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [2, 9], [5, 10], [7, 11], [8, 12], [5, 13], [6, 14], [13, 15], [5, 16], [13, 17], [13, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 2], [10, 5], [11, 7], [12, 8], [13, 5], [14, 6], [15, 13], [16, 5], [17, 13], [18, 13], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "handleEditPaneUpdate", "code": "\tprivate void handleEditPaneUpdate(EditPaneUpdate msg)\n\t{\n\t\tEditPane editPane = msg.getEditPane();\n\t\tif(editPane.getView() == this\n\t\t\t&& msg.getWhat() == EditPaneUpdate.BUFFER_CHANGED\n\t\t\t&& editPane.getBuffer().isLoaded())\n\t\t{\n\t\t\tstatus.updateCaretStatus();\n\t\t\tstatus.updateBufferStatus();\n\t\t\tstatus.updateMiscStatus();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [1, 8], [1, 9], [1, 10], [5, 11], [6, 12], [6, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 1], [9, 1], [10, 1], [11, 5], [12, 6], [13, 6], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "updateGutterBorders", "code": "\tprivate void updateGutterBorders()\n\t{\n\t\tEditPane[] editPanes = getEditPanes();\n\t\tfor(int i = 0; i < editPanes.length; i++)\n\t\t\teditPanes[i].getTextArea().getGutter().updateBorder();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 1], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "_preprocessKeyEvent", "code": "\tprivate KeyEvent _preprocessKeyEvent(KeyEvent evt)\n\t{\n\t\tif(isClosed())\n\t\t\treturn null;\n\n\t\tif(getFocusOwner() instanceof JComponent)\n\t\t{\n\t\t\tJComponent comp = (JComponent)getFocusOwner();\n\t\t\tInputMap map = comp.getInputMap();\n\t\t\tActionMap am = comp.getActionMap();\n\n\t\t\tif(map != null && am != null && comp.isEnabled())\n\t\t\t{\n\t\t\t\tObject binding = map.get(KeyStroke.getKeyStrokeForEvent(evt));\n\t\t\t\tif(binding != null && am.get(binding) != null)\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(getFocusOwner() instanceof JTextComponent)\n\t\t{\n\t\t\t// fix for the bug where key events in JTextComponents\n\t\t\t// inside views are also handled by the input handler\n\t\t\tif(evt.getID() == KeyEvent.KEY_PRESSED)\n\t\t\t{\n\t\t\t\tswitch(evt.getKeyCode())\n\t\t\t\t{\n\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\tcase KeyEvent.VK_TAB:\n\t\t\t\tcase KeyEvent.VK_BACK_SPACE:\n\t\t\t\tcase KeyEvent.VK_SPACE:\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(evt.isConsumed())\n\t\t\treturn null;\n\n\t\treturn KeyEventWorkaround.processKeyEvent(evt);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "PARAM", "CALL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [3, 10], [4, 11], [5, 12], [5, 13], [8, 14], [3, 15], [10, 16], [4, 17], [4, 18], [4, 19], [4, 20], [11, 21], [12, 22], [15, 23], [17, 24], [15, 25], [23, 26], [17, 27], [17, 28], [24, 29], [24, 30], [18, 31], [19, 32], [25, 33], [27, 34], [30, 35], [30, 36], [20, 37], [25, 38], [27, 39], [34, 40], [34, 41], [28, 42], [35, 43], [36, 44], [38, 45], [39, 46], [40, 47], [40, 48], [41, 49], [42, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 3], [11, 4], [12, 5], [13, 5], [14, 8], [15, 3], [16, 10], [17, 4], [18, 4], [19, 4], [20, 4], [21, 11], [22, 12], [23, 15], [24, 17], [25, 15], [26, 23], [27, 17], [28, 17], [29, 24], [30, 24], [31, 18], [32, 19], [33, 25], [34, 27], [35, 30], [36, 30], [37, 20], [38, 25], [39, 27], [40, 34], [41, 34], [42, 28], [43, 35], [44, 36], [45, 38], [46, 39], [47, 40], [48, 40], [49, 41], [50, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "View", "code": "\tView(Buffer buffer, ViewConfig config)\n\t{\n\t\tthis.plainView = config.plainView;\n\n\t\tenableEvents(AWTEvent.KEY_EVENT_MASK);\n\n\t\tsetIconImage(GUIUtilities.getEditorIcon());\n\n\t\tdockableWindowManager = new DockableWindowManager(this,config);\n\n\t\ttopToolBars = new JPanel(new VariableGridLayout(\n\t\t\tVariableGridLayout.FIXED_NUM_COLUMNS,\n\t\t\t1));\n\t\tbottomToolBars = new JPanel(new VariableGridLayout(\n\t\t\tVariableGridLayout.FIXED_NUM_COLUMNS,\n\t\t\t1));\n\n\t\ttoolBarManager = new ToolBarManager(topToolBars, bottomToolBars);\n\n\t\tstatus = new StatusBar(this);\n\n\t\tinputHandler = new DefaultInputHandler(this,(DefaultInputHandler)\n\t\t\tjEdit.getInputHandler());\n\n\t\ttry\n\t\t{\n\t\t\tComponent comp = restoreSplitConfig(buffer,config.splitConfig);\n\t\t\tdockableWindowManager.add(comp,0);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\t// this should never throw an exception.\n\t\t\tthrow new InternalError();\n\t\t}\n\n\t\tgetContentPane().add(BorderLayout.CENTER,dockableWindowManager);\n\n\t\tdockableWindowManager.init();\n\n\t\t// tool bar and status bar gets added in propertiesChanged()\n\t\t// depending in the 'tool bar alternate layout' setting.\n\t\tpropertiesChanged();\n\n\t\tsetDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n\t\taddWindowListener(new WindowHandler());\n\n\t\tEditBus.addToBus(this);\n\n\t\tSearchDialog.preloadSearchDialog(this);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [6, 22], [10, 23], [11, 24], [1, 25], [13, 26], [14, 27], [15, 28], [16, 29], [17, 30], [18, 31], [19, 32], [24, 33], [25, 34], [12, 35], [29, 36], [30, 37], [26, 38], [36, 39], [37, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 6], [23, 10], [24, 11], [25, 1], [26, 13], [27, 14], [28, 15], [29, 16], [30, 17], [31, 18], [32, 19], [33, 24], [34, 25], [35, 12], [36, 29], [37, 30], [38, 26], [39, 36], [40, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}], "label": 1}
{"sample_id": "xalan-2.7-8315", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/FilterParentPath.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.FilterParentPath", "code": "final class FilterParentPath extends Expression {\n\n    private Expression _filterExpr;\n    private Expression _path;\n    private boolean _hasDescendantAxis = false;\n\n    public FilterParentPath(Expression filterExpr, Expression path) {\n\t(_path = path).setParent(this);\n\t(_filterExpr = filterExpr).setParent(this);\n    }\n\t\t\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_filterExpr.setParser(parser);\n\t_path.setParser(parser);\n    }\n    \n    public String toString() {\n\treturn \"FilterParentPath(\" + _filterExpr + \", \" + _path + ')';\n    }\n\n    public void setDescendantAxis() {\n\t_hasDescendantAxis = true;\n    }\n\n    /**\n     * Type check a FilterParentPath. If the filter is not a node-set add a \n     * cast to node-set only if it is of reference type. This type coercion is\n     * needed for expressions like $x/LINE where $x is a parameter reference.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type ftype = _filterExpr.typeCheck(stable);\n\tif (ftype instanceof NodeSetType == false) {\n\t    if (ftype instanceof ReferenceType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    /*\n\t    else if (ftype instanceof ResultTreeType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    */\n\t    else if (ftype instanceof NodeType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    else {\n\t\tthrow new TypeCheckError(this);\n\t    }\n\t}\n\n\tfinal Type ptype = _path.typeCheck(stable);\n\tif (!(ptype instanceof NodeSetType)) {\n\t    _path = new CastExpr(_path, Type.NodeSet);\n\t}\n\n\treturn _type = Type.NodeSet;\t\n    }\n\t\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int initSI = cpg.addMethodref(STEP_ITERATOR_CLASS,\n\t\t\t\t\t    \"<init>\",\n\t\t\t\t\t    \"(\"\n\t\t\t\t\t    +NODE_ITERATOR_SIG\n\t\t\t\t\t    +NODE_ITERATOR_SIG\n\t\t\t\t\t    +\")V\");\n\n\n\t_filterExpr.translate(classGen, methodGen);\n        LocalVariableGen filterTemp =\n                methodGen.addLocalVariable(\"filter_parent_path_tmp1\",\n                                           Util.getJCRefType(NODE_ITERATOR_SIG),\n                                           il.getEnd(), null);\n        il.append(new ASTORE(filterTemp.getIndex()));\n\n\t_path.translate(classGen, methodGen);\n        LocalVariableGen pathTemp =\n                methodGen.addLocalVariable(\"filter_parent_path_tmp2\",\n                                           Util.getJCRefType(NODE_ITERATOR_SIG),\n                                           il.getEnd(), null);\n        il.append(new ASTORE(pathTemp.getIndex()));\n\n\til.append(new NEW(cpg.addClass(STEP_ITERATOR_CLASS)));\n\til.append(DUP);\n        il.append(new ALOAD(filterTemp.getIndex()));\n        il.append(new ALOAD(pathTemp.getIndex()));\n\n\til.append(new INVOKESPECIAL(initSI));\n\n        if (_hasDescendantAxis) {\n\t    final int incl = cpg.addMethodref(NODE_ITERATOR_BASE,\n\t\t\t\t\t      \"includeSelf\",\n\t\t\t\t\t      \"()\" + NODE_ITERATOR_SIG);\n\t    il.append(new INVOKEVIRTUAL(incl));\n\t}\n\n\tif (!(getParent() instanceof RelativeLocationPath) &&\n\t    !(getParent() instanceof FilterParentPath)) {\n\t    final int order = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\tORDER_ITERATOR,\n\t\t\t\t\t\t\tORDER_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(SWAP);\n\t    il.append(methodGen.loadContextNode());\n\t    il.append(new INVOKEINTERFACE(order, 3));", "functions": [{"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_filterExpr.setParser(parser);\n\t_path.setParser(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"FilterParentPath(\" + _filterExpr + \", \" + _path + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setDescendantAxis", "code": "    public void setDescendantAxis() {\n\t_hasDescendantAxis = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type ftype = _filterExpr.typeCheck(stable);\n\tif (ftype instanceof NodeSetType == false) {\n\t    if (ftype instanceof ReferenceType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    /*\n\t    else if (ftype instanceof ResultTreeType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    */\n\t    else if (ftype instanceof NodeType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    else {\n\t\tthrow new TypeCheckError(this);\n\t    }\n\t}\n\n\tfinal Type ptype = _path.typeCheck(stable);\n\tif (!(ptype instanceof NodeSetType)) {\n\t    _path = new CastExpr(_path, Type.NodeSet);\n\t}\n\n\treturn _type = Type.NodeSet;\t", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [3, 10], [4, 11], [9, 12], [9, 13], [5, 14], [2, 15], [11, 16], [11, 17], [15, 18], [16, 19], [16, 20], [11, 21], [20, 22], [16, 23], [21, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 3], [11, 4], [12, 9], [13, 9], [14, 5], [15, 2], [16, 11], [17, 11], [18, 15], [19, 16], [20, 16], [21, 11], [22, 20], [23, 16], [24, 21], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int initSI = cpg.addMethodref(STEP_ITERATOR_CLASS,\n\t\t\t\t\t    \"<init>\",\n\t\t\t\t\t    \"(\"\n\t\t\t\t\t    +NODE_ITERATOR_SIG\n\t\t\t\t\t    +NODE_ITERATOR_SIG\n\t\t\t\t\t    +\")V\");\n\n\n\t_filterExpr.translate(classGen, methodGen);\n        LocalVariableGen filterTemp =\n                methodGen.addLocalVariable(\"filter_parent_path_tmp1\",\n                                           Util.getJCRefType(NODE_ITERATOR_SIG),\n                                           il.getEnd(), null);\n        il.append(new ASTORE(filterTemp.getIndex()));\n\n\t_path.translate(classGen, methodGen);\n        LocalVariableGen pathTemp =\n                methodGen.addLocalVariable(\"filter_parent_path_tmp2\",\n                                           Util.getJCRefType(NODE_ITERATOR_SIG),\n                                           il.getEnd(), null);\n        il.append(new ASTORE(pathTemp.getIndex()));\n\n\til.append(new NEW(cpg.addClass(STEP_ITERATOR_CLASS)));\n\til.append(DUP);\n        il.append(new ALOAD(filterTemp.getIndex()));\n        il.append(new ALOAD(pathTemp.getIndex()));\n\n\til.append(new INVOKESPECIAL(initSI));\n\n        if (_hasDescendantAxis) {\n\t    final int incl = cpg.addMethodref(NODE_ITERATOR_BASE,\n\t\t\t\t\t      \"includeSelf\",\n\t\t\t\t\t      \"()\" + NODE_ITERATOR_SIG);\n\t    il.append(new INVOKEVIRTUAL(incl));\n\t}\n\n\tif (!(getParent() instanceof RelativeLocationPath) &&\n\t    !(getParent() instanceof FilterParentPath)) {\n\t    final int order = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\tORDER_ITERATOR,\n\t\t\t\t\t\t\tORDER_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(SWAP);\n\t    il.append(methodGen.loadContextNode());\n\t    il.append(new INVOKEINTERFACE(order, 3));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [1, 20], [10, 21], [10, 22], [2, 23], [11, 24], [12, 25], [13, 26], [15, 27], [16, 28], [3, 29], [18, 30], [4, 31], [5, 32], [6, 33], [7, 34], [1, 35], [1, 36], [1, 37], [1, 38], [21, 39], [22, 40], [2, 41], [25, 42], [26, 43], [27, 44], [28, 45], [29, 46], [29, 47], [29, 48], [29, 49], [30, 50], [31, 51], [31, 52], [31, 53], [31, 54], [32, 55], [32, 56], [35, 57], [36, 58], [38, 59], [20, 60], [41, 61], [23, 62], [55, 63], [55, 64], [57, 65], [62, 66], [62, 67], [64, 68], [66, 69], [68, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 1], [21, 10], [22, 10], [23, 2], [24, 11], [25, 12], [26, 13], [27, 15], [28, 16], [29, 3], [30, 18], [31, 4], [32, 5], [33, 6], [34, 7], [35, 1], [36, 1], [37, 1], [38, 1], [39, 21], [40, 22], [41, 2], [42, 25], [43, 26], [44, 27], [45, 28], [46, 29], [47, 29], [48, 29], [49, 29], [50, 30], [51, 31], [52, 31], [53, 31], [54, 31], [55, 32], [56, 32], [57, 35], [58, 36], [59, 38], [60, 20], [61, 41], [62, 23], [63, 55], [64, 55], [65, 57], [66, 62], [67, 62], [68, 64], [69, 66], [70, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "FilterParentPath", "code": "    public FilterParentPath(Expression filterExpr, Expression path) {\n\t(_path = path).setParent(this);\n\t(_filterExpr = filterExpr).setParent(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.5-7109", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/dtm/ref/DTMChildIterNodeList.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMChildIterNodeList", "code": "public class DTMChildIterNodeList extends DTMNodeListBase {\n    private int m_firstChild;\n    private DTM m_parentDTM;\n\n    private DTMChildIterNodeList() {\n    }\n\n    /**\n     * Public constructor: Create a NodeList to support\n     * DTMNodeProxy.getChildren().\n     *\n     * Unfortunately AxisIterators and DTMIterators don't share an API,\n     * so I can't use the existing Axis.CHILD iterator. Rather than\n     * create Yet Another Class, let's set up a special case of this\n     * one.\n     *\n     * @param parentDTM The DTM containing this node\n     * @param parentHandle DTM node-handle integer\n     *\n     */\n    public DTMChildIterNodeList(DTM parentDTM,int parentHandle) {\n        m_parentDTM=parentDTM;\n        m_firstChild=parentDTM.getFirstChild(parentHandle);\n    }\n\n\n\n    /**\n     * Returns the <code>index</code>th item in the collection. If \n     * <code>index</code> is greater than or equal to the number of nodes in \n     * the list, this returns <code>null</code>.\n     * @param indexIndex into the collection.\n     * @return The node at the <code>index</code>th position in the \n     *   <code>NodeList</code>, or <code>null</code> if that is not a valid \n     *   index.\n     */\n    public Node item(int index) {\n        int handle=m_firstChild;\n        while(--index>=0 && handle!=DTM.NULL) {\n            handle=m_parentDTM.getNextSibling(handle);\n        }\n        if (handle == DTM.NULL) {\n            return null;\n        }\n        return m_parentDTM.getNode(handle);\n    }\n\n    /**\n     * The number of nodes in the list. The range of valid child node indices \n     * is 0 to <code>length-1</code> inclusive. \n     */\n    public int getLength() {\n        int count=0;\n        for (int handle=m_firstChild;\n             handle!=DTM.NULL;\n             handle=m_parentDTM.getNextSibling(handle)) {\n            ++count;\n        }\n        return count;", "functions": [{"function_name": "item", "code": "    public Node item(int index) {\n        int handle=m_firstChild;\n        while(--index>=0 && handle!=DTM.NULL) {\n            handle=m_parentDTM.getNextSibling(handle);\n        }\n        if (handle == DTM.NULL) {\n            return null;\n        }\n        return m_parentDTM.getNode(handle);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [8, 10], [8, 11], [9, 12], [3, 13], [11, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 8], [11, 8], [12, 9], [13, 3], [14, 11], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getLength", "code": "    public int getLength() {\n        int count=0;\n        for (int handle=m_firstChild;\n             handle!=DTM.NULL;\n             handle=m_parentDTM.getNextSibling(handle)) {\n            ++count;\n        }\n        return count;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "DTMChildIterNodeList", "code": "    private DTMChildIterNodeList() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DTMChildIterNodeList", "code": "    public DTMChildIterNodeList(DTM parentDTM,int parentHandle) {\n        m_parentDTM=parentDTM;\n        m_firstChild=parentDTM.getFirstChild(parentHandle);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.7-8074", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/res/XSLTErrorResources_ja.java", "language": "java", "name": "org.apache.xalan.res.XSLTErrorResources_ja", "code": "public class XSLTErrorResources_ja extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 201;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 29;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 55;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Static variables\n   */\n  public static final String ER_NO_CURLYBRACE = \"ER_NO_CURLYBRACE\";;\n  public static final String ER_ILLEGAL_ATTRIBUTE = \"ER_ILLEGAL_ATTRIBUTE\";\n  public static final String ER_NULL_SOURCENODE_APPLYIMPORTS = \"ER_NULL_SOURCENODE_APPLYIMPORTS\";\n  public static final String ER_CANNOT_ADD = \"ER_CANNOT_ADD\";\n  public static final String ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES=\"ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES\";\n  public static final String ER_NO_NAME_ATTRIB = \"ER_NO_NAME_ATTRIB\";\n  public static final String ER_TEMPLATE_NOT_FOUND = \"ER_TEMPLATE_NOT_FOUND\";\n  public static final String ER_CANT_RESOLVE_NAME_AVT = \"ER_CANT_RESOLVE_NAME_AVT\";\n  public static final String ER_REQUIRES_ATTRIB = \"ER_REQUIRES_ATTRIB\";\n  public static final String ER_MUST_HAVE_TEST_ATTRIB = \"ER_MUST_HAVE_TEST_ATTRIB\";\n  public static final String ER_BAD_VAL_ON_LEVEL_ATTRIB =\n         \"ER_BAD_VAL_ON_LEVEL_ATTRIB\";\n  public static final String ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =\n         \"ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML\";\n  public static final String ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =\n         \"ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME\";\n  public static final String ER_NEED_MATCH_ATTRIB = \"ER_NEED_MATCH_ATTRIB\";\n  public static final String ER_NEED_NAME_OR_MATCH_ATTRIB =\n         \"ER_NEED_NAME_OR_MATCH_ATTRIB\";\n  public static final String ER_CANT_RESOLVE_NSPREFIX =\n         \"ER_CANT_RESOLVE_NSPREFIX\";\n  public static final String ER_ILLEGAL_VALUE = \"ER_ILLEGAL_VALUE\";\n  public static final String ER_NO_OWNERDOC = \"ER_NO_OWNERDOC\";\n  public static final String ER_ELEMTEMPLATEELEM_ERR =\"ER_ELEMTEMPLATEELEM_ERR\";\n  public static final String ER_NULL_CHILD = \"ER_NULL_CHILD\";\n  public static final String ER_NEED_SELECT_ATTRIB = \"ER_NEED_SELECT_ATTRIB\";\n  public static final String ER_NEED_TEST_ATTRIB = \"ER_NEED_TEST_ATTRIB\";\n  public static final String ER_NEED_NAME_ATTRIB = \"ER_NEED_NAME_ATTRIB\";\n  public static final String ER_NO_CONTEXT_OWNERDOC = \"ER_NO_CONTEXT_OWNERDOC\";\n  public static final String ER_COULD_NOT_CREATE_XML_PROC_LIAISON =\n         \"ER_COULD_NOT_CREATE_XML_PROC_LIAISON\";\n  public static final String ER_PROCESS_NOT_SUCCESSFUL =\n         \"ER_PROCESS_NOT_SUCCESSFUL\";\n  public static final String ER_NOT_SUCCESSFUL = \"ER_NOT_SUCCESSFUL\";\n  public static final String ER_ENCODING_NOT_SUPPORTED =\n         \"ER_ENCODING_NOT_SUPPORTED\";\n  public static final String ER_COULD_NOT_CREATE_TRACELISTENER =\n         \"ER_COULD_NOT_CREATE_TRACELISTENER\";\n  public static final String ER_KEY_REQUIRES_NAME_ATTRIB =\n         \"ER_KEY_REQUIRES_NAME_ATTRIB\";\n  public static final String ER_KEY_REQUIRES_MATCH_ATTRIB =\n         \"ER_KEY_REQUIRES_MATCH_ATTRIB\";\n  public static final String ER_KEY_REQUIRES_USE_ATTRIB =\n         \"ER_KEY_REQUIRES_USE_ATTRIB\";\n  public static final String ER_REQUIRES_ELEMENTS_ATTRIB =\n         \"ER_REQUIRES_ELEMENTS_ATTRIB\";\n  public static final String ER_MISSING_PREFIX_ATTRIB =\n         \"ER_MISSING_PREFIX_ATTRIB\";\n  public static final String ER_BAD_STYLESHEET_URL = \"ER_BAD_STYLESHEET_URL\";\n  public static final String ER_FILE_NOT_FOUND = \"ER_FILE_NOT_FOUND\";\n  public static final String ER_IOEXCEPTION = \"ER_IOEXCEPTION\";\n  public static final String ER_NO_HREF_ATTRIB = \"ER_NO_HREF_ATTRIB\";\n  public static final String ER_STYLESHEET_INCLUDES_ITSELF =\n         \"ER_STYLESHEET_INCLUDES_ITSELF\";\n  public static final String ER_PROCESSINCLUDE_ERROR =\"ER_PROCESSINCLUDE_ERROR\";\n  public static final String ER_MISSING_LANG_ATTRIB = \"ER_MISSING_LANG_ATTRIB\";\n  public static final String ER_MISSING_CONTAINER_ELEMENT_COMPONENT =\n         \"ER_MISSING_CONTAINER_ELEMENT_COMPONENT\";\n  public static final String ER_CAN_ONLY_OUTPUT_TO_ELEMENT =\n         \"ER_CAN_ONLY_OUTPUT_TO_ELEMENT\";\n  public static final String ER_PROCESS_ERROR = \"ER_PROCESS_ERROR\";\n  public static final String ER_UNIMPLNODE_ERROR = \"ER_UNIMPLNODE_ERROR\";\n  public static final String ER_NO_SELECT_EXPRESSION =\"ER_NO_SELECT_EXPRESSION\";\n  public static final String ER_CANNOT_SERIALIZE_XSLPROCESSOR =\n         \"ER_CANNOT_SERIALIZE_XSLPROCESSOR\";\n  public static final String ER_NO_INPUT_STYLESHEET = \"ER_NO_INPUT_STYLESHEET\";\n  public static final String ER_FAILED_PROCESS_STYLESHEET =\n         \"ER_FAILED_PROCESS_STYLESHEET\";\n  public static final String ER_COULDNT_PARSE_DOC = \"ER_COULDNT_PARSE_DOC\";\n  public static final String ER_COULDNT_FIND_FRAGMENT =\n         \"ER_COULDNT_FIND_FRAGMENT\";\n  public static final String ER_NODE_NOT_ELEMENT = \"ER_NODE_NOT_ELEMENT\";\n  public static final String ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB =\n         \"ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB\";\n  public static final String ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB =\n         \"ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB\";\n  public static final String ER_NO_CLONE_OF_DOCUMENT_FRAG =\n         \"ER_NO_CLONE_OF_DOCUMENT_FRAG\";\n  public static final String ER_CANT_CREATE_ITEM = \"ER_CANT_CREATE_ITEM\";\n  public static final String ER_XMLSPACE_ILLEGAL_VALUE =\n         \"ER_XMLSPACE_ILLEGAL_VALUE\";\n  public static final String ER_NO_XSLKEY_DECLARATION =\n         \"ER_NO_XSLKEY_DECLARATION\";\n  public static final String ER_CANT_CREATE_URL = \"ER_CANT_CREATE_URL\";\n  public static final String ER_XSLFUNCTIONS_UNSUPPORTED =\n         \"ER_XSLFUNCTIONS_UNSUPPORTED\";\n  public static final String ER_PROCESSOR_ERROR = \"ER_PROCESSOR_ERROR\";\n  public static final String ER_NOT_ALLOWED_INSIDE_STYLESHEET =\n         \"ER_NOT_ALLOWED_INSIDE_STYLESHEET\";\n  public static final String ER_RESULTNS_NOT_SUPPORTED =\n         \"ER_RESULTNS_NOT_SUPPORTED\";\n  public static final String ER_DEFAULTSPACE_NOT_SUPPORTED =\n         \"ER_DEFAULTSPACE_NOT_SUPPORTED\";\n  public static final String ER_INDENTRESULT_NOT_SUPPORTED =\n         \"ER_INDENTRESULT_NOT_SUPPORTED\";\n  public static final String ER_ILLEGAL_ATTRIB = \"ER_ILLEGAL_ATTRIB\";\n  public static final String ER_UNKNOWN_XSL_ELEM = \"ER_UNKNOWN_XSL_ELEM\";\n  public static final String ER_BAD_XSLSORT_USE = \"ER_BAD_XSLSORT_USE\";\n  public static final String ER_MISPLACED_XSLWHEN = \"ER_MISPLACED_XSLWHEN\";\n  public static final String ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE =\n         \"ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE\";\n  public static final String ER_MISPLACED_XSLOTHERWISE =\n         \"ER_MISPLACED_XSLOTHERWISE\";\n  public static final String ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE =\n         \"ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE\";\n  public static final String ER_NOT_ALLOWED_INSIDE_TEMPLATE =\n         \"ER_NOT_ALLOWED_INSIDE_TEMPLATE\";\n  public static final String ER_UNKNOWN_EXT_NS_PREFIX =\n         \"ER_UNKNOWN_EXT_NS_PREFIX\";\n  public static final String ER_IMPORTS_AS_FIRST_ELEM =\n         \"ER_IMPORTS_AS_FIRST_ELEM\";\n  public static final String ER_IMPORTING_ITSELF = \"ER_IMPORTING_ITSELF\";\n  public static final String ER_XMLSPACE_ILLEGAL_VAL =\"ER_XMLSPACE_ILLEGAL_VAL\";\n  public static final String ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL =\n         \"ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL\";\n  public static final String ER_SAX_EXCEPTION = \"ER_SAX_EXCEPTION\";\n  public static final String ER_XSLT_ERROR = \"ER_XSLT_ERROR\";\n  public static final String ER_CURRENCY_SIGN_ILLEGAL=\n         \"ER_CURRENCY_SIGN_ILLEGAL\";\n  public static final String ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM =\n         \"ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM\";\n  public static final String ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER =\n         \"ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER\";\n  public static final String ER_REDIRECT_COULDNT_GET_FILENAME =\n         \"ER_REDIRECT_COULDNT_GET_FILENAME\";\n  public static final String ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT =\n         \"ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT\";\n  public static final String ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX =\n         \"ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX\";\n  public static final String ER_MISSING_NS_URI = \"ER_MISSING_NS_URI\";\n  public static final String ER_MISSING_ARG_FOR_OPTION =\n         \"ER_MISSING_ARG_FOR_OPTION\";\n  public static final String ER_INVALID_OPTION = \"ER_INVALID_OPTION\";\n  public static final String ER_MALFORMED_FORMAT_STRING =\n         \"ER_MALFORMED_FORMAT_STRING\";\n  public static final String ER_STYLESHEET_REQUIRES_VERSION_ATTRIB =\n         \"ER_STYLESHEET_REQUIRES_VERSION_ATTRIB\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_VALUE =\n         \"ER_ILLEGAL_ATTRIBUTE_VALUE\";\n  public static final String ER_CHOOSE_REQUIRES_WHEN =\"ER_CHOOSE_REQUIRES_WHEN\";\n  public static final String ER_NO_APPLY_IMPORT_IN_FOR_EACH =\n         \"ER_NO_APPLY_IMPORT_IN_FOR_EACH\";\n  public static final String ER_CANT_USE_DTM_FOR_OUTPUT =\n         \"ER_CANT_USE_DTM_FOR_OUTPUT\";\n  public static final String ER_CANT_USE_DTM_FOR_INPUT =\n         \"ER_CANT_USE_DTM_FOR_INPUT\";\n  public static final String ER_CALL_TO_EXT_FAILED = \"ER_CALL_TO_EXT_FAILED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_XSLATTRSET_USED_ITSELF =\n         \"ER_XSLATTRSET_USED_ITSELF\";\n  public static final String ER_CANNOT_MIX_XERCESDOM =\"ER_CANNOT_MIX_XERCESDOM\";\n  public static final String ER_TOO_MANY_LISTENERS = \"ER_TOO_MANY_LISTENERS\";\n  public static final String ER_IN_ELEMTEMPLATEELEM_READOBJECT =\n         \"ER_IN_ELEMTEMPLATEELEM_READOBJECT\";\n  public static final String ER_DUPLICATE_NAMED_TEMPLATE =\n         \"ER_DUPLICATE_NAMED_TEMPLATE\";\n  public static final String ER_INVALID_KEY_CALL = \"ER_INVALID_KEY_CALL\";\n  public static final String ER_REFERENCING_ITSELF = \"ER_REFERENCING_ITSELF\";\n  public static final String ER_ILLEGAL_DOMSOURCE_INPUT =\n         \"ER_ILLEGAL_DOMSOURCE_INPUT\";\n  public static final String ER_CLASS_NOT_FOUND_FOR_OPTION =\n         \"ER_CLASS_NOT_FOUND_FOR_OPTION\";\n  public static final String ER_REQUIRED_ELEM_NOT_FOUND =\n         \"ER_REQUIRED_ELEM_NOT_FOUND\";\n  public static final String ER_INPUT_CANNOT_BE_NULL =\"ER_INPUT_CANNOT_BE_NULL\";\n  public static final String ER_URI_CANNOT_BE_NULL = \"ER_URI_CANNOT_BE_NULL\";\n  public static final String ER_FILE_CANNOT_BE_NULL = \"ER_FILE_CANNOT_BE_NULL\";\n  public static final String ER_SOURCE_CANNOT_BE_NULL =\n         \"ER_SOURCE_CANNOT_BE_NULL\";\n  public static final String ER_CANNOT_INIT_BSFMGR = \"ER_CANNOT_INIT_BSFMGR\";\n  public static final String ER_CANNOT_CMPL_EXTENSN = \"ER_CANNOT_CMPL_EXTENSN\";\n  public static final String ER_CANNOT_CREATE_EXTENSN =\n         \"ER_CANNOT_CREATE_EXTENSN\";\n  public static final String ER_INSTANCE_MTHD_CALL_REQUIRES =\n         \"ER_INSTANCE_MTHD_CALL_REQUIRES\";\n  public static final String ER_INVALID_ELEMENT_NAME =\"ER_INVALID_ELEMENT_NAME\";\n  public static final String ER_ELEMENT_NAME_METHOD_STATIC =\n         \"ER_ELEMENT_NAME_METHOD_STATIC\";\n  public static final String ER_EXTENSION_FUNC_UNKNOWN =\n         \"ER_EXTENSION_FUNC_UNKNOWN\";\n  public static final String ER_MORE_MATCH_CONSTRUCTOR =\n         \"ER_MORE_MATCH_CONSTRUCTOR\";\n  public static final String ER_MORE_MATCH_METHOD = \"ER_MORE_MATCH_METHOD\";\n  public static final String ER_MORE_MATCH_ELEMENT = \"ER_MORE_MATCH_ELEMENT\";\n  public static final String ER_INVALID_CONTEXT_PASSED =\n         \"ER_INVALID_CONTEXT_PASSED\";\n  public static final String ER_POOL_EXISTS = \"ER_POOL_EXISTS\";\n  public static final String ER_NO_DRIVER_NAME = \"ER_NO_DRIVER_NAME\";\n  public static final String ER_NO_URL = \"ER_NO_URL\";\n  public static final String ER_POOL_SIZE_LESSTHAN_ONE =\n         \"ER_POOL_SIZE_LESSTHAN_ONE\";\n  public static final String ER_INVALID_DRIVER = \"ER_INVALID_DRIVER\";\n  public static final String ER_NO_STYLESHEETROOT = \"ER_NO_STYLESHEETROOT\";\n  public static final String ER_ILLEGAL_XMLSPACE_VALUE =\n         \"ER_ILLEGAL_XMLSPACE_VALUE\";\n  public static final String ER_PROCESSFROMNODE_FAILED =\n         \"ER_PROCESSFROMNODE_FAILED\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD =\n         \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO =\n         \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_UNKNOWN_ERROR_CALLING_EXTENSION =\n         \"ER_UNKNOWN_ERROR_CALLING_EXTENSION\";\n  public static final String ER_NO_NAMESPACE_DECL = \"ER_NO_NAMESPACE_DECL\";\n  public static final String ER_ELEM_CONTENT_NOT_ALLOWED =\n         \"ER_ELEM_CONTENT_NOT_ALLOWED\";\n  public static final String ER_STYLESHEET_DIRECTED_TERMINATION =\n         \"ER_STYLESHEET_DIRECTED_TERMINATION\";\n  public static final String ER_ONE_OR_TWO = \"ER_ONE_OR_TWO\";\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE =\n         \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_CANNOT_INIT_DEFAULT_TEMPLATES =\n         \"ER_CANNOT_INIT_DEFAULT_TEMPLATES\";\n  public static final String ER_RESULT_NULL = \"ER_RESULT_NULL\";\n  public static final String ER_RESULT_COULD_NOT_BE_SET =\n         \"ER_RESULT_COULD_NOT_BE_SET\";\n  public static final String ER_NO_OUTPUT_SPECIFIED = \"ER_NO_OUTPUT_SPECIFIED\";\n  public static final String ER_CANNOT_TRANSFORM_TO_RESULT_TYPE =\n         \"ER_CANNOT_TRANSFORM_TO_RESULT_TYPE\";\n  public static final String ER_CANNOT_TRANSFORM_SOURCE_TYPE =\n         \"ER_CANNOT_TRANSFORM_SOURCE_TYPE\";\n  public static final String ER_NULL_CONTENT_HANDLER =\"ER_NULL_CONTENT_HANDLER\";\n  public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n  public static final String ER_CANNOT_CALL_PARSE = \"ER_CANNOT_CALL_PARSE\";\n  public static final String ER_NO_PARENT_FOR_FILTER =\"ER_NO_PARENT_FOR_FILTER\";\n  public static final String ER_NO_STYLESHEET_IN_MEDIA =\n         \"ER_NO_STYLESHEET_IN_MEDIA\";\n  public static final String ER_NO_STYLESHEET_PI = \"ER_NO_STYLESHEET_PI\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_PROPERTY_VALUE_BOOLEAN =\n         \"ER_PROPERTY_VALUE_BOOLEAN\";\n  public static final String ER_COULD_NOT_FIND_EXTERN_SCRIPT =\n         \"ER_COULD_NOT_FIND_EXTERN_SCRIPT\";\n  public static final String ER_RESOURCE_COULD_NOT_FIND =\n         \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_OUTPUT_PROPERTY_NOT_RECOGNIZED =\n         \"ER_OUTPUT_PROPERTY_NOT_RECOGNIZED\";\n  public static final String ER_FAILED_CREATING_ELEMLITRSLT =\n         \"ER_FAILED_CREATING_ELEMLITRSLT\";\n  public static final String ER_VALUE_SHOULD_BE_NUMBER =\n         \"ER_VALUE_SHOULD_BE_NUMBER\";\n  public static final String ER_VALUE_SHOULD_EQUAL = \"ER_VALUE_SHOULD_EQUAL\";\n  public static final String ER_FAILED_CALLING_METHOD =\n         \"ER_FAILED_CALLING_METHOD\";\n  public static final String ER_FAILED_CREATING_ELEMTMPL =\n         \"ER_FAILED_CREATING_ELEMTMPL\";\n  public static final String ER_CHARS_NOT_ALLOWED = \"ER_CHARS_NOT_ALLOWED\";\n  public static final String ER_ATTR_NOT_ALLOWED = \"ER_ATTR_NOT_ALLOWED\";\n  public static final String ER_BAD_VALUE = \"ER_BAD_VALUE\";\n  public static final String ER_ATTRIB_VALUE_NOT_FOUND =\n         \"ER_ATTRIB_VALUE_NOT_FOUND\";\n  public static final String ER_ATTRIB_VALUE_NOT_RECOGNIZED =\n         \"ER_ATTRIB_VALUE_NOT_RECOGNIZED\";\n  public static final String ER_NULL_URI_NAMESPACE = \"ER_NULL_URI_NAMESPACE\";\n  public static final String ER_NUMBER_TOO_BIG = \"ER_NUMBER_TOO_BIG\";\n  public static final String  ER_CANNOT_FIND_SAX1_DRIVER =\n         \"ER_CANNOT_FIND_SAX1_DRIVER\";\n  public static final String  ER_SAX1_DRIVER_NOT_LOADED =\n         \"ER_SAX1_DRIVER_NOT_LOADED\";\n  public static final String  ER_SAX1_DRIVER_NOT_INSTANTIATED =\n         \"ER_SAX1_DRIVER_NOT_INSTANTIATED\" ;\n  public static final String ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER =\n         \"ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER\";\n  public static final String  ER_PARSER_PROPERTY_NOT_SPECIFIED =\n         \"ER_PARSER_PROPERTY_NOT_SPECIFIED\";\n  public static final String  ER_PARSER_ARG_CANNOT_BE_NULL =\n         \"ER_PARSER_ARG_CANNOT_BE_NULL\" ;\n  public static final String  ER_FEATURE = \"ER_FEATURE\";\n  public static final String ER_PROPERTY = \"ER_PROPERTY\" ;\n  public static final String ER_NULL_ENTITY_RESOLVER =\"ER_NULL_ENTITY_RESOLVER\";\n  public static final String  ER_NULL_DTD_HANDLER = \"ER_NULL_DTD_HANDLER\" ;\n  public static final String ER_NO_DRIVER_NAME_SPECIFIED =\n         \"ER_NO_DRIVER_NAME_SPECIFIED\";\n  public static final String ER_NO_URL_SPECIFIED = \"ER_NO_URL_SPECIFIED\";\n  public static final String ER_POOLSIZE_LESS_THAN_ONE =\n         \"ER_POOLSIZE_LESS_THAN_ONE\";\n  public static final String ER_INVALID_DRIVER_NAME = \"ER_INVALID_DRIVER_NAME\";\n  public static final String ER_ERRORLISTENER = \"ER_ERRORLISTENER\";\n  public static final String ER_ASSERT_NO_TEMPLATE_PARENT =\n         \"ER_ASSERT_NO_TEMPLATE_PARENT\";\n  public static final String ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR =\n         \"ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR\";\n  public static final String ER_NOT_ALLOWED_IN_POSITION =\n         \"ER_NOT_ALLOWED_IN_POSITION\";\n  public static final String ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION =\n         \"ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION\";\n  public static final String INVALID_TCHAR = \"INVALID_TCHAR\";\n  public static final String INVALID_QNAME = \"INVALID_QNAME\";\n  public static final String INVALID_ENUM = \"INVALID_ENUM\";\n  public static final String INVALID_NMTOKEN = \"INVALID_NMTOKEN\";\n  public static final String INVALID_NCNAME = \"INVALID_NCNAME\";\n  public static final String INVALID_BOOLEAN = \"INVALID_BOOLEAN\";\n  public static final String INVALID_NUMBER = \"INVALID_NUMBER\";\n  public static final String ER_ARG_LITERAL = \"ER_ARG_LITERAL\";\n  public static final String ER_DUPLICATE_GLOBAL_VAR =\"ER_DUPLICATE_GLOBAL_VAR\";\n  public static final String ER_DUPLICATE_VAR = \"ER_DUPLICATE_VAR\";\n  public static final String ER_TEMPLATE_NAME_MATCH = \"ER_TEMPLATE_NAME_MATCH\";\n  public static final String ER_INVALID_PREFIX = \"ER_INVALID_PREFIX\";\n  public static final String ER_NO_ATTRIB_SET = \"ER_NO_ATTRIB_SET\";\n\n  public static final String WG_FOUND_CURLYBRACE = \"WG_FOUND_CURLYBRACE\";\n  public static final String WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR =\n         \"WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR\";\n  public static final String WG_EXPR_ATTRIB_CHANGED_TO_SELECT =\n         \"WG_EXPR_ATTRIB_CHANGED_TO_SELECT\";\n  public static final String WG_NO_LOCALE_IN_FORMATNUMBER =\n         \"WG_NO_LOCALE_IN_FORMATNUMBER\";\n  public static final String WG_LOCALE_NOT_FOUND = \"WG_LOCALE_NOT_FOUND\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_CANNOT_LOAD_REQUESTED_DOC =\n         \"WG_CANNOT_LOAD_REQUESTED_DOC\";\n  public static final String WG_CANNOT_FIND_COLLATOR =\"WG_CANNOT_FIND_COLLATOR\";\n  public static final String WG_FUNCTIONS_SHOULD_USE_URL =\n         \"WG_FUNCTIONS_SHOULD_USE_URL\";\n  public static final String WG_ENCODING_NOT_SUPPORTED_USING_UTF8 =\n         \"WG_ENCODING_NOT_SUPPORTED_USING_UTF8\";\n  public static final String WG_ENCODING_NOT_SUPPORTED_USING_JAVA =\n         \"WG_ENCODING_NOT_SUPPORTED_USING_JAVA\";\n  public static final String WG_SPECIFICITY_CONFLICTS =\n         \"WG_SPECIFICITY_CONFLICTS\";\n  public static final String WG_PARSING_AND_PREPARING =\n         \"WG_PARSING_AND_PREPARING\";\n  public static final String WG_ATTR_TEMPLATE = \"WG_ATTR_TEMPLATE\";\n  public static final String WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = \"WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESP\";\n  public static final String WG_ATTRIB_NOT_HANDLED = \"WG_ATTRIB_NOT_HANDLED\";\n  public static final String WG_NO_DECIMALFORMAT_DECLARATION =\n         \"WG_NO_DECIMALFORMAT_DECLARATION\";\n  public static final String WG_OLD_XSLT_NS = \"WG_OLD_XSLT_NS\";\n  public static final String WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED =\n         \"WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED\";\n  public static final String WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE =\n         \"WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE\";\n  public static final String WG_ILLEGAL_ATTRIBUTE = \"WG_ILLEGAL_ATTRIBUTE\";\n  public static final String WG_COULD_NOT_RESOLVE_PREFIX =\n         \"WG_COULD_NOT_RESOLVE_PREFIX\";\n  public static final String WG_STYLESHEET_REQUIRES_VERSION_ATTRIB =\n         \"WG_STYLESHEET_REQUIRES_VERSION_ATTRIB\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_NAME =\n         \"WG_ILLEGAL_ATTRIBUTE_NAME\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_VALUE =\n         \"WG_ILLEGAL_ATTRIBUTE_VALUE\";\n  public static final String WG_EMPTY_SECOND_ARG = \"WG_EMPTY_SECOND_ARG\";\n  public static final String WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =\n         \"WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML\";\n  public static final String WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =\n         \"WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_POSITION =\n         \"WG_ILLEGAL_ATTRIBUTE_POSITION\";\n\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /** Get the lookup table for error messages.   \n   *\n   * @return The int to message lookup table.\n   */\n  public Object[][] getContents()\n  {\n    return new Object[][] {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n  {\"ER0000\" , \"{0}\" },\n\n\n  /** ER_NO_CURLYBRACE          */\n\n\n    { ER_NO_CURLYBRACE,\n      \"\\u30a8\\u30e9\\u30fc: \\u5f0f\\u5185\\u3067\\u306f '{' \\u3092\\u4f7f\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE          */\n\n    { ER_ILLEGAL_ATTRIBUTE ,\n     \"{0} \\u306b\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5c5e\\u6027\\u304c\\u3042\\u308a\\u307e\\u3059: {1}\"},\n\n  /** ER_NULL_SOURCENODE_APPLYIMPORTS          */\n\n  {ER_NULL_SOURCENODE_APPLYIMPORTS ,\n      \"xsl:apply-imports \\u5185\\u306e sourceNode \\u304c\\u30cc\\u30eb\\u3067\\u3059!\"},\n\n  /** ER_CANNOT_ADD          */\n\n  {ER_CANNOT_ADD,\n      \"{0} \\u3092 {1} \\u306b\\u8ffd\\u52a0\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n\n  /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES          */\n\n\n    { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES,\n      \"handleApplyTemplatesInstruction \\u5185\\u306e sourceNode \\u304c\\u30cc\\u30eb\\u3067\\u3059!\"},\n\n  /** ER_NO_NAME_ATTRIB          */\n\n\n    { ER_NO_NAME_ATTRIB,\n     \"{0} \\u306b\\u306f name \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_TEMPLATE_NOT_FOUND          */\n\n\n    {ER_TEMPLATE_NOT_FOUND,\n     \"{0} \\u3068\\u3044\\u3046\\u540d\\u524d\\u306e\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_CANT_RESOLVE_NAME_AVT          */\n\n    {ER_CANT_RESOLVE_NAME_AVT,\n      \"xsl:call-template \\u5185\\u306e\\u540d\\u524d AVT \\u3092\\u89e3\\u6c7a\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_REQUIRES_ATTRIB          */\n\n\n    {ER_REQUIRES_ATTRIB,\n     \"{0} \\u306b\\u306f\\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059: {1}\"},\n\n  /** ER_MUST_HAVE_TEST_ATTRIB          */\n\n\n    { ER_MUST_HAVE_TEST_ATTRIB,\n      \"{0} \\u306b\\u306f ''test'' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_BAD_VAL_ON_LEVEL_ATTRIB          */\n\n\n    {ER_BAD_VAL_ON_LEVEL_ATTRIB,\n      \"level \\u5c5e\\u6027\\u3067\\u5024\\u304c\\u9593\\u9055\\u3063\\u3066\\u3044\\u307e\\u3059: {0}\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n\n\n    {ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"\\u51e6\\u7406\\u547d\\u4ee4\\u306e\\u540d\\u524d\\u306f 'xml' \\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n\n\n    { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"\\u51e6\\u7406\\u547d\\u4ee4\\u306e\\u540d\\u524d\\u306f\\u6709\\u52b9\\u306a NCName \\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_NEED_MATCH_ATTRIB          */\n\n\n    { ER_NEED_MATCH_ATTRIB,\n      \"{0} \\u306b\\u30e2\\u30fc\\u30c9\\u304c\\u3042\\u308b\\u5834\\u5408\\u306f\\u3001match \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NEED_NAME_OR_MATCH_ATTRIB          */\n\n\n    { ER_NEED_NAME_OR_MATCH_ATTRIB,\n      \"{0} \\u306b\\u306f name \\u307e\\u305f\\u306f match \\u306e\\u3044\\u305a\\u308c\\u304b\\u306e\\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_CANT_RESOLVE_NSPREFIX          */\n\n\n    {ER_CANT_RESOLVE_NSPREFIX,\n      \"\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u63a5\\u982d\\u90e8\\u3092\\u89e3\\u6c7a\\u3067\\u304d\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_ILLEGAL_VALUE          */\n\n\n    { ER_ILLEGAL_VALUE,\n     \"xml:space \\u306b\\u306f\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024\\u304c\\u3042\\u308a\\u307e\\u3059: {0}\"},\n\n  /** ER_NO_OWNERDOC          */\n\n\n    { ER_NO_OWNERDOC,\n      \"\\u4e0b\\u4f4d\\u30ce\\u30fc\\u30c9\\u306b\\u6240\\u6709\\u8005\\u6587\\u66f8\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n  /** ER_ELEMTEMPLATEELEM_ERR          */\n\n\n    { ER_ELEMTEMPLATEELEM_ERR,\n     \"ElemTemplateElement \\u30a8\\u30e9\\u30fc: {0}\"},\n\n  /** ER_NULL_CHILD          */\n\n\n    { ER_NULL_CHILD,\n     \"\\u30cc\\u30eb\\u306e\\u5b50\\u3092\\u8ffd\\u52a0\\u3057\\u3088\\u3046\\u3068\\u3057\\u3066\\u3044\\u307e\\u3059!\"},\n\n  /** ER_NEED_SELECT_ATTRIB          */\n\n\n    { ER_NEED_SELECT_ATTRIB,\n     \"{0} \\u306b\\u306f select \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NEED_TEST_ATTRIB          */\n\n\n    { ER_NEED_TEST_ATTRIB ,\n      \"xsl:when \\u306b\\u306f 'test' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NEED_NAME_ATTRIB          */\n\n\n    { ER_NEED_NAME_ATTRIB,\n      \"xsl:with-param \\u306b\\u306f 'name' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NO_CONTEXT_OWNERDOC          */\n\n\n    { ER_NO_CONTEXT_OWNERDOC,\n      \"\\u30b3\\u30f3\\u30c6\\u30ad\\u30b9\\u30c8\\u306b\\u6240\\u6709\\u8005\\u6587\\u66f8\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n  /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON          */\n\n\n    {ER_COULD_NOT_CREATE_XML_PROC_LIAISON,\n      \"XML TransformerFactory Liaison \\u3092\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\"},\n\n  /** ER_PROCESS_NOT_SUCCESSFUL          */\n\n\n    {ER_PROCESS_NOT_SUCCESSFUL,\n      \"Xalan: \\u51e6\\u7406\\u306f\\u6210\\u529f\\u3057\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_NOT_SUCCESSFUL          */\n\n\n    { ER_NOT_SUCCESSFUL,\n     \"Xalan: \\u306f\\u6210\\u529f\\u3057\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_ENCODING_NOT_SUPPORTED          */\n\n\n    { ER_ENCODING_NOT_SUPPORTED,\n     \"\\u30a8\\u30f3\\u30b3\\u30fc\\u30c9\\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_COULD_NOT_CREATE_TRACELISTENER          */\n\n\n    {ER_COULD_NOT_CREATE_TRACELISTENER,\n      \"TraceListener \\u3092\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\"},\n\n  /** ER_KEY_REQUIRES_NAME_ATTRIB          */\n\n\n    {ER_KEY_REQUIRES_NAME_ATTRIB,\n      \"xsl:key \\u306b\\u306f 'name' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** ER_KEY_REQUIRES_MATCH_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_MATCH_ATTRIB,\n      \"xsl:key \\u306b\\u306f 'match' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** ER_KEY_REQUIRES_USE_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_USE_ATTRIB,\n      \"xsl:key \\u306b\\u306f 'use' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** ER_REQUIRES_ELEMENTS_ATTRIB          */\n\n\n    { ER_REQUIRES_ELEMENTS_ATTRIB,\n      \"(StylesheetHandler) {0} \\u306b\\u306f ''elements'' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** ER_MISSING_PREFIX_ATTRIB          */\n\n\n    { ER_MISSING_PREFIX_ATTRIB,\n      \"(StylesheetHandler) {0} \\u5c5e\\u6027\\u306e ''prefix'' \\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\"},\n\n  /** ER_BAD_STYLESHEET_URL          */\n\n\n    { ER_BAD_STYLESHEET_URL,\n     \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8 URL \\u304c\\u9593\\u9055\\u3063\\u3066\\u3044\\u307e\\u3059: {0}\"},\n\n  /** ER_FILE_NOT_FOUND          */\n\n\n    { ER_FILE_NOT_FOUND,\n     \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u30fb\\u30d5\\u30a1\\u30a4\\u30eb\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\"},\n\n  /** ER_IOEXCEPTION          */\n\n\n    { ER_IOEXCEPTION,\n      \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u30fb\\u30d5\\u30a1\\u30a4\\u30eb\\u306b\\u3088\\u308b\\u5165\\u51fa\\u529b\\u4f8b\\u5916\\u304c\\u8d77\\u3053\\u308a\\u307e\\u3057\\u305f: {0}\"},\n\n  /** ER_NO_HREF_ATTRIB          */\n\n\n    { ER_NO_HREF_ATTRIB,\n      \"(StylesheetHandler) {0} \\u306e href \\u5c5e\\u6027\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_STYLESHEET_INCLUDES_ITSELF          */\n\n\n    { ER_STYLESHEET_INCLUDES_ITSELF,\n      \"(StylesheetHandler) {0} \\u304c\\u81ea\\u5206\\u81ea\\u8eab\\u3092\\u76f4\\u63a5\\u7684\\u307e\\u305f\\u306f\\u9593\\u63a5\\u7684\\u306b\\u7d44\\u307f\\u8fbc\\u3082\\u3046\\u3068\\u3057\\u3066\\u3044\\u307e\\u3059!\"},\n\n  /** ER_PROCESSINCLUDE_ERROR          */\n\n\n    { ER_PROCESSINCLUDE_ERROR,\n      \"StylesheetHandler.processInclude \\u30a8\\u30e9\\u30fc\\u3001{0}\"},\n\n  /** ER_MISSING_LANG_ATTRIB          */\n\n\n    { ER_MISSING_LANG_ATTRIB,\n      \"(StylesheetHandler) {0} \\u5c5e\\u6027\\u306e ''lang'' \\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\"},\n\n  /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT          */\n\n    { ER_MISSING_CONTAINER_ELEMENT_COMPONENT,\n      \"(StylesheetHandler) {0} \\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u306e\\u5834\\u6240\\u3092\\u9593\\u9055\\u3048\\u305f\\u53ef\\u80fd\\u6027\\u304c\\u3042\\u308a\\u307e\\u3059\\u3002 \\u30b3\\u30f3\\u30c6\\u30ca\\u30fc\\u30fb\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8 ''component'' \\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_CAN_ONLY_OUTPUT_TO_ELEMENT          */\n\n    { ER_CAN_ONLY_OUTPUT_TO_ELEMENT,\n      \"Element\\u3001DocumentFragment\\u3001Document\\u3001\\u307e\\u305f\\u306f PrintWriter \\u3078\\u306e\\u51fa\\u529b\\u3057\\u304b\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_PROCESS_ERROR          */\n\n    { ER_PROCESS_ERROR,\n     \"StylesheetRoot.\\u51e6\\u7406\\u30a8\\u30e9\\u30fc\"},\n\n  /** ER_UNIMPLNODE_ERROR          */\n\n    { ER_UNIMPLNODE_ERROR,\n     \"UnImplNode \\u30a8\\u30e9\\u30fc: {0}\"},\n\n  /** ER_NO_SELECT_EXPRESSION          */\n\n    { ER_NO_SELECT_EXPRESSION,\n      \"\\u30a8\\u30e9\\u30fc! xpath select \\u5f0f (-select) \\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_CANNOT_SERIALIZE_XSLPROCESSOR          */\n\n    { ER_CANNOT_SERIALIZE_XSLPROCESSOR,\n      \"XSLProcessor \\u3092\\u30b7\\u30ea\\u30a2\\u30e9\\u30a4\\u30ba\\u3067\\u304d\\u307e\\u305b\\u3093!\"},\n\n  /** ER_NO_INPUT_STYLESHEET          */\n\n    { ER_NO_INPUT_STYLESHEET,\n      \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u5165\\u529b\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f!\"},\n\n  /** ER_FAILED_PROCESS_STYLESHEET          */\n\n    { ER_FAILED_PROCESS_STYLESHEET,\n      \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u3092\\u51e6\\u7406\\u3059\\u308b\\u3053\\u3068\\u306b\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f!\"},\n\n  /** ER_COULDNT_PARSE_DOC          */\n\n    { ER_COULDNT_PARSE_DOC,\n     \"{0} \\u6587\\u66f8\\u3092\\u69cb\\u6587\\u89e3\\u6790\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f!\"},\n\n  /** ER_COULDNT_FIND_FRAGMENT          */\n\n    { ER_COULDNT_FIND_FRAGMENT,\n     \"\\u30d5\\u30e9\\u30b0\\u30e1\\u30f3\\u30c8\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\"},\n\n  /** ER_NODE_NOT_ELEMENT          */\n\n    { ER_NODE_NOT_ELEMENT,\n      \"\\u30d5\\u30e9\\u30b0\\u30e1\\u30f3\\u30c8 ID \\u306b\\u3088\\u308a\\u6307\\u3055\\u308c\\u3066\\u3044\\u308b\\u30ce\\u30fc\\u30c9\\u304c\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u3067\\u3042\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\"},\n\n  /** ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB,\n      \"for-each \\u306b\\u306f match \\u307e\\u305f\\u306f name \\u306e\\u3044\\u305a\\u308c\\u304b\\u306e\\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB,\n      \"\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u306b\\u306f match \\u307e\\u305f\\u306f name \\u306e\\u3044\\u305a\\u308c\\u304b\\u306e\\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NO_CLONE_OF_DOCUMENT_FRAG          */\n\n    { ER_NO_CLONE_OF_DOCUMENT_FRAG,\n      \"\\u6587\\u66f8\\u30d5\\u30e9\\u30b0\\u30e1\\u30f3\\u30c8\\u306e\\u8907\\u88fd\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n  /** ER_CANT_CREATE_ITEM          */\n\n    { ER_CANT_CREATE_ITEM,\n      \"\\u9805\\u76ee\\u3092\\u7d50\\u679c\\u30c4\\u30ea\\u30fc\\u306b\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VALUE          */\n\n    { ER_XMLSPACE_ILLEGAL_VALUE,\n      \"\\u30bd\\u30fc\\u30b9 XML \\u5185\\u306e xml:space \\u306b\\u306f\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024\\u304c\\u3042\\u308a\\u307e\\u3059: {0}\"},\n\n  /** ER_NO_XSLKEY_DECLARATION          */\n\n    { ER_NO_XSLKEY_DECLARATION,\n      \"{0} \\u306e xsl:key \\u5ba3\\u8a00\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n  /** ER_CANT_CREATE_URL          */\n\n    { ER_CANT_CREATE_URL,\n     \"\\u30a8\\u30e9\\u30fc! {0} \\u306e URL \\u3092\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_XSLFUNCTIONS_UNSUPPORTED          */\n\n    { ER_XSLFUNCTIONS_UNSUPPORTED,\n     \"xsl:functions \\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_PROCESSOR_ERROR          */\n\n    { ER_PROCESSOR_ERROR,\n     \"XSLT TransformerFactory \\u30a8\\u30e9\\u30fc\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_STYLESHEET          */\n\n    { ER_NOT_ALLOWED_INSIDE_STYLESHEET,\n      \"(StylesheetHandler) {0} \\u306f\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u306e\\u5185\\u90e8\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n  /** ER_RESULTNS_NOT_SUPPORTED          */\n\n    { ER_RESULTNS_NOT_SUPPORTED,\n      \"result-ns \\u306f\\u3082\\u3046\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!  \\u4ee3\\u308a\\u306b xsl:output \\u3092\\u4f7f\\u7528\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044\\u3002\"},\n\n  /** ER_DEFAULTSPACE_NOT_SUPPORTED          */\n\n    { ER_DEFAULTSPACE_NOT_SUPPORTED,\n      \"default-space \\u306f\\u3082\\u3046\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!  \\u4ee3\\u308a\\u306b xsl:strip-space \\u307e\\u305f\\u306f xsl:preserve-space \\u3092\\u4f7f\\u7528\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044\\u3002\"},\n\n  /** ER_INDENTRESULT_NOT_SUPPORTED          */\n\n    { ER_INDENTRESULT_NOT_SUPPORTED,\n      \"indent-result \\u306f\\u3082\\u3046\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!  \\u4ee3\\u308a\\u306b xsl:output \\u3092\\u4f7f\\u7528\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044\\u3002\"},\n\n  /** ER_ILLEGAL_ATTRIB          */\n\n    { ER_ILLEGAL_ATTRIB,\n      \"(StylesheetHandler) {0} \\u306b\\u306f\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5c5e\\u6027\\u304c\\u3042\\u308a\\u307e\\u3059: {1}\"},\n\n  /** ER_UNKNOWN_XSL_ELEM          */\n\n    { ER_UNKNOWN_XSL_ELEM,\n     \"\\u4e0d\\u660e\\u306e XSL \\u30a8\\u30ec\\u30e1\\u30f3\\u30c8: {0}\"},\n\n  /** ER_BAD_XSLSORT_USE          */\n\n    { ER_BAD_XSLSORT_USE,\n      \"(StylesheetHandler) xsl:sort \\u306f xsl:apply-templates \\u307e\\u305f\\u306f xsl:for-each \\u3068\\u3057\\u304b\\u4f7f\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_MISPLACED_XSLWHEN          */\n\n    { ER_MISPLACED_XSLWHEN,\n      \"(StylesheetHandler) xsl:when \\u306e\\u5834\\u6240\\u3092\\u8aa4\\u3063\\u3066\\u3044\\u307e\\u3057\\u305f!\"},\n\n  /** ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE,\n      \"(StylesheetHandler) xsl:when \\u304c xsl:choose \\u306b\\u3088\\u308a\\u89aa\\u306b\\u306a\\u3063\\u3066\\u3044\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f!\"},\n\n  /** ER_MISPLACED_XSLOTHERWISE          */\n\n    { ER_MISPLACED_XSLOTHERWISE,\n      \"(StylesheetHandler) xsl:otherwise \\u306e\\u5834\\u6240\\u3092\\u8aa4\\u3063\\u3066\\u3044\\u307e\\u3057\\u305f!\"},\n\n  /** ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE,\n      \"(StylesheetHandler) xsl:otherwise \\u304c xsl:choose \\u306b\\u3088\\u308a\\u89aa\\u306b\\u306a\\u3063\\u3066\\u3044\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f!\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_TEMPLATE          */\n\n    { ER_NOT_ALLOWED_INSIDE_TEMPLATE,\n      \"(StylesheetHandler) {0} \\u306f\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u306e\\u5185\\u90e8\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n  /** ER_UNKNOWN_EXT_NS_PREFIX          */\n\n    { ER_UNKNOWN_EXT_NS_PREFIX,\n      \"(StylesheetHandler) {0} \\u62e1\\u5f35\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u63a5\\u982d\\u90e8 {1} \\u304c\\u4e0d\\u660e\\u3067\\u3059\\u3002\"},\n\n  /** ER_IMPORTS_AS_FIRST_ELEM          */\n\n    { ER_IMPORTS_AS_FIRST_ELEM,\n      \"(StylesheetHandler) \\u30a4\\u30f3\\u30dd\\u30fc\\u30c8\\u306f\\u3001\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u5185\\u306e\\u5148\\u982d\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u3068\\u3057\\u3066\\u306e\\u307f\\u5165\\u308c\\u308b\\u3053\\u3068\\u304c\\u3067\\u304d\\u307e\\u3059!\"},\n\n  /** ER_IMPORTING_ITSELF          */\n\n    { ER_IMPORTING_ITSELF,\n      \"(StylesheetHandler) {0} \\u304c\\u81ea\\u5206\\u81ea\\u8eab\\u3092\\u76f4\\u63a5\\u7684\\u307e\\u305f\\u306f\\u9593\\u63a5\\u7684\\u306b\\u30a4\\u30f3\\u30dd\\u30fc\\u30c8\\u3057\\u3088\\u3046\\u3068\\u3057\\u3066\\u3044\\u307e\\u3059!\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VAL          */\n\n    { ER_XMLSPACE_ILLEGAL_VAL,\n      \"(StylesheetHandler) xml:space \\u306b\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024\\u304c\\u3042\\u308a\\u307e\\u3059: {0}\"},\n\n  /** ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL          */\n\n    { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL,\n      \"processStylesheet \\u306f\\u6210\\u529f\\u3057\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n  /** ER_SAX_EXCEPTION          */\n\n    { ER_SAX_EXCEPTION,\n     \"SAX \\u4f8b\\u5916\"},\n\n  /** ER_FUNCTION_NOT_SUPPORTED          */\n\n\n  /** ER_XSLT_ERROR          */\n\n    { ER_XSLT_ERROR,\n     \"XSLT \\u30a8\\u30e9\\u30fc\"},\n\n  /** ER_CURRENCY_SIGN_ILLEGAL          */\n\n    { ER_CURRENCY_SIGN_ILLEGAL,\n      \"\\u901a\\u8ca8\\u8a18\\u53f7\\u306f\\u66f8\\u5f0f\\u30d1\\u30bf\\u30fc\\u30f3\\u30fb\\u30b9\\u30c8\\u30ea\\u30f3\\u30b0\\u5185\\u3067\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM          */\n\n    { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM,\n      \"\\u6587\\u66f8\\u6a5f\\u80fd\\u306f\\u30b9\\u30bf\\u30a4\\u30eb\\u30fb\\u30b7\\u30fc\\u30c8 DOM \\u3067\\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n  /** ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER          */\n\n    { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER,\n      \"\\u975e\\u63a5\\u982d\\u90e8\\u30ea\\u30be\\u30eb\\u30d0\\u30fc\\u306e\\u63a5\\u982d\\u90e8\\u3092\\u89e3\\u6c7a\\u3067\\u304d\\u307e\\u305b\\u3093!\"},\n\n  /** ER_REDIRECT_COULDNT_GET_FILENAME          */\n\n    { ER_REDIRECT_COULDNT_GET_FILENAME,\n      \"\\u30ea\\u30c0\\u30a4\\u30ec\\u30af\\u30c8\\u62e1\\u5f35: \\u30d5\\u30a1\\u30a4\\u30eb\\u540d\\u3092\\u53d6\\u5f97\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002file \\u307e\\u305f\\u306f select \\u5c5e\\u6027\\u306f\\u6709\\u52b9\\u306a\\u30b9\\u30c8\\u30ea\\u30f3\\u30b0\\u3092\\u623b\\u3055\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT          */\n\n    { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT,\n      \"FormatterListener \\u306f\\u30ea\\u30c0\\u30a4\\u30ec\\u30af\\u30c8\\u62e1\\u5f35\\u5185\\u306b\\u30d3\\u30eb\\u30c9\\u3067\\u304d\\u307e\\u305b\\u3093!\"},\n\n  /** ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX          */\n\n    { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX,\n      \"exclude-result-prefixes \\u5185\\u306e\\u63a5\\u982d\\u90e8\\u304c\\u7121\\u52b9\\u3067\\u3059: {0}\"},\n\n  /** ER_MISSING_NS_URI          */\n\n    { ER_MISSING_NS_URI,\n      \"\\u6307\\u5b9a\\u3055\\u308c\\u305f\\u63a5\\u982d\\u90e8\\u306e\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9 URI \\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_MISSING_ARG_FOR_OPTION          */\n\n    { ER_MISSING_ARG_FOR_OPTION,\n      \"\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3\\u306e\\u5f15\\u304d\\u6570\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_INVALID_OPTION          */\n\n    { ER_INVALID_OPTION,\n     \"\\u7121\\u52b9\\u306a\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3: {0}\"},\n\n  /** ER_MALFORMED_FORMAT_STRING          */\n\n    { ER_MALFORMED_FORMAT_STRING,\n     \"\\u8aa4\\u3063\\u305f\\u5f62\\u5f0f\\u306e\\u66f8\\u5f0f\\u30b9\\u30c8\\u30ea\\u30f3\\u30b0: {0}\"},\n\n  /** ER_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n\n    { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"xsl:stylesheet \\u306b\\u306f 'version' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE_VALUE          */\n\n    { ER_ILLEGAL_ATTRIBUTE_VALUE,\n      \"\\u5c5e\\u6027: {0} \\u306b\\u306f\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n  /** ER_CHOOSE_REQUIRES_WHEN          */\n\n    { ER_CHOOSE_REQUIRES_WHEN,\n     \"xsl:choose \\u306b\\u306f xsl:when \\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NO_APPLY_IMPORT_IN_FOR_EACH          */\n\n    { ER_NO_APPLY_IMPORT_IN_FOR_EACH,\n      \"xsl:apply-imports \\u306f xsl:for-each \\u5185\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_CANT_USE_DTM_FOR_OUTPUT          */\n\n    { ER_CANT_USE_DTM_FOR_OUTPUT,\n      \"DTMLiaison \\u306f\\u51fa\\u529b DOM \\u30ce\\u30fc\\u30c9\\u306b\\u4f7f\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093... \\u4ee3\\u308a\\u306b org.apache.xpath.DOM2Helper \\u3092\\u6e21\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044!\"},\n\n  /** ER_CANT_USE_DTM_FOR_INPUT          */\n\n    { ER_CANT_USE_DTM_FOR_INPUT,\n      \"DTMLiaison \\u306f\\u5165\\u529b DOM \\u30ce\\u30fc\\u30c9\\u306b\\u4f7f\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093... \\u4ee3\\u308a\\u306b org.apache.xpath.DOM2Helper \\u3092\\u6e21\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044!\"},\n\n  /** ER_CALL_TO_EXT_FAILED          */\n\n    { ER_CALL_TO_EXT_FAILED,\n      \"\\u62e1\\u5f35\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u3078\\u306e\\u547c\\u3073\\u51fa\\u3057\\u304c\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f: {0}\"},\n\n  /** ER_PREFIX_MUST_RESOLVE          */\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"\\u63a5\\u982d\\u90e8\\u306f\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u306b\\u89e3\\u6c7a\\u3055\\u308c\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_INVALID_UTF16_SURROGATE          */\n\n    { ER_INVALID_UTF16_SURROGATE,\n      \"\\u7121\\u52b9\\u306a UTF-16 \\u30b5\\u30ed\\u30b2\\u30fc\\u30c8\\u304c\\u691c\\u51fa\\u3055\\u308c\\u307e\\u3057\\u305f: {0} ?\"},\n\n  /** ER_XSLATTRSET_USED_ITSELF          */\n\n    { ER_XSLATTRSET_USED_ITSELF,\n      \"xsl:attribute-set {0} \\u304c\\u81ea\\u8eab\\u3092\\u4f7f\\u7528\\u3057\\u3066\\u3044\\u308b\\u305f\\u3081\\u3001\\u7121\\u9650\\u30eb\\u30fc\\u30d7\\u306e\\u539f\\u56e0\\u3068\\u306a\\u308a\\u307e\\u3059\\u3002\"},\n\n  /** ER_CANNOT_MIX_XERCESDOM          */\n\n    { ER_CANNOT_MIX_XERCESDOM,\n      \"\\u975e Xerces-DOM \\u5165\\u529b\\u3068 Xerces-DOM \\u51fa\\u529b\\u306f\\u6df7\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093!\"},\n\n  /** ER_TOO_MANY_LISTENERS          */\n\n    { ER_TOO_MANY_LISTENERS,\n      \"addTraceListenersToStylesheet - TooManyListenersException\"},\n\n  /** ER_IN_ELEMTEMPLATEELEM_READOBJECT          */\n\n    { ER_IN_ELEMTEMPLATEELEM_READOBJECT,\n      \"ElemTemplateElement.readObject \\u5185: {0}\"},\n\n  /** ER_DUPLICATE_NAMED_TEMPLATE          */\n\n    { ER_DUPLICATE_NAMED_TEMPLATE,\n      \"\\u6b21\\u306e\\u540d\\u524d\\u306e\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u304c\\u8907\\u6570\\u898b\\u3064\\u304b\\u308a\\u307e\\u3057\\u305f: {0}\"},\n\n  /** ER_INVALID_KEY_CALL          */\n\n    { ER_INVALID_KEY_CALL,\n      \"\\u7121\\u52b9\\u306a\\u95a2\\u6570\\u547c\\u3073\\u51fa\\u3057: \\u518d\\u5e30\\u7684 key() \\u547c\\u3073\\u51fa\\u3057\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** Variable is referencing itself          */\n\n    { ER_REFERENCING_ITSELF,\n      \"\\u5909\\u6570 {0} \\u304c\\u76f4\\u63a5\\u7684\\u307e\\u305f\\u306f\\u9593\\u63a5\\u7684\\u306b\\u81ea\\u5206\\u81ea\\u8eab\\u306b\\u53c2\\u7167\\u3065\\u3051\\u3066\\u3044\\u307e\\u3059!\"},\n\n  /** Illegal DOMSource input          */\n\n    { ER_ILLEGAL_DOMSOURCE_INPUT,\n      \"newTemplates \\u306e DOMSource \\u306e\\u5165\\u529b\\u3092\\u30cc\\u30eb\\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093!\"},\n\n        /** Class not found for option         */\n\n    { ER_CLASS_NOT_FOUND_FOR_OPTION,\n        \"\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3 {0} \\u306e\\u30af\\u30e9\\u30b9\\u30fb\\u30d5\\u30a1\\u30a4\\u30eb\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n        /** Required Element not found         */\n\n    { ER_REQUIRED_ELEM_NOT_FOUND,\n        \"\\u5fc5\\u8981\\u306a\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n  /** InputStream cannot be null         */\n\n    { ER_INPUT_CANNOT_BE_NULL,\n        \"InputStream \\u3092\\u30cc\\u30eb\\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** URI cannot be null         */\n\n    { ER_URI_CANNOT_BE_NULL,\n        \"URI \\u3092\\u30cc\\u30eb\\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** File cannot be null         */\n\n    { ER_FILE_CANNOT_BE_NULL,\n        \"\\u30d5\\u30a1\\u30a4\\u30eb\\u3092\\u30cc\\u30eb\\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** InputSource cannot be null         */\n\n    { ER_SOURCE_CANNOT_BE_NULL,\n                \"InputSource \\u3092\\u30cc\\u30eb\\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** Can't overwrite cause         */\n\n\n  /** Could not initialize BSF Manager        */\n\n    { ER_CANNOT_INIT_BSFMGR,\n                \"BSF \\u30de\\u30cd\\u30fc\\u30b8\\u30e3\\u30fc\\u3092\\u521d\\u671f\\u5316\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** Could not compile extension       */\n\n    { ER_CANNOT_CMPL_EXTENSN,\n                \"\\u62e1\\u5f35\\u6a5f\\u80fd\\u3092\\u30b3\\u30f3\\u30d1\\u30a4\\u30eb\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** Could not create extension       */\n\n    { ER_CANNOT_CREATE_EXTENSN,\n      \"\\u539f\\u56e0: {1} \\u306e\\u305f\\u3081\\u306b\\u62e1\\u5f35\\u6a5f\\u80fd: {0} \\u3092\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** Instance method call to method {0} requires an Object instance as first argument       */\n\n    { ER_INSTANCE_MTHD_CALL_REQUIRES,\n      \"\\u30e1\\u30bd\\u30c3\\u30c9 {0} \\u3078\\u306e\\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u30fb\\u30e1\\u30bd\\u30c3\\u30c9\\u547c\\u3073\\u51fa\\u3057\\u306b\\u306f\\u30aa\\u30d6\\u30b8\\u30a7\\u30af\\u30c8\\u30fb\\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u304c\\u6700\\u521d\\u306e\\u5f15\\u304d\\u6570\\u3068\\u3057\\u3066\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** Invalid element name specified       */\n\n    { ER_INVALID_ELEMENT_NAME,\n      \"\\u7121\\u52b9\\u306a\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u540d\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u307e\\u3057\\u305f: {0}\"},\n\n   /** Element name method must be static      */\n\n    { ER_ELEMENT_NAME_METHOD_STATIC,\n      \"\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u540d\\u30e1\\u30bd\\u30c3\\u30c9\\u306f\\u9759\\u7684\\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n   /** Extension function {0} : {1} is unknown      */\n\n    { ER_EXTENSION_FUNC_UNKNOWN,\n             \"\\u62e1\\u5f35\\u6a5f\\u80fd {0} : {1} \\u304c\\u4e0d\\u660e\\u3067\\u3059\\u3002\"},\n\n   /** More than one best match for constructor for       */\n\n    { ER_MORE_MATCH_CONSTRUCTOR,\n             \"{0} \\u306e\\u30b3\\u30f3\\u30b9\\u30c8\\u30e9\\u30af\\u30bf\\u30fc\\u306e\\u6700\\u9069\\u4e00\\u81f4\\u304c\\u8907\\u6570\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n   /** More than one best match for method      */\n\n    { ER_MORE_MATCH_METHOD,\n             \"\\u30e1\\u30bd\\u30c3\\u30c9 {0} \\u306e\\u6700\\u9069\\u4e00\\u81f4\\u304c\\u8907\\u6570\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n   /** More than one best match for element method      */\n\n    { ER_MORE_MATCH_ELEMENT,\n             \"\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u30fb\\u30e1\\u30bd\\u30c3\\u30c9 {0} \\u306e\\u6700\\u9069\\u4e00\\u81f4\\u304c\\u8907\\u6570\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n   /** Invalid context passed to evaluate       */\n\n    { ER_INVALID_CONTEXT_PASSED,\n             \"{0} \\u3092\\u8a55\\u4fa1\\u3059\\u308b\\u305f\\u3081\\u306b\\u6e21\\u3055\\u308c\\u305f\\u30b3\\u30f3\\u30c6\\u30ad\\u30b9\\u30c8\\u304c\\u7121\\u52b9\\u3067\\u3059\\u3002\"},\n\n   /** Pool already exists       */\n\n    { ER_POOL_EXISTS,\n             \"\\u30d7\\u30fc\\u30eb\\u306f\\u3059\\u3067\\u306b\\u5b58\\u5728\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n   /** No driver Name specified      */\n\n    { ER_NO_DRIVER_NAME,\n             \"\\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u540d\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** No URL specified     */\n\n    { ER_NO_URL,\n             \"URL \\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** Pool size is less than one    */\n\n    { ER_POOL_SIZE_LESSTHAN_ONE,\n             \"\\u30d7\\u30fc\\u30eb\\u30fb\\u30b5\\u30a4\\u30ba\\u304c 1 \\u3088\\u308a\\u5c0f\\u3067\\u3059!\"},\n\n   /** Invalid driver name specified    */\n\n    { ER_INVALID_DRIVER,\n             \"\\u7121\\u52b9\\u306a\\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u540d\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u307e\\u3057\\u305f!\"},\n\n   /** Did not find the stylesheet root    */\n\n    { ER_NO_STYLESHEETROOT,\n             \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u306e\\u30eb\\u30fc\\u30c8\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f!\"},\n\n   /** Illegal value for xml:space     */\n\n    { ER_ILLEGAL_XMLSPACE_VALUE,\n         \"xml:space \\u306e\\u5024\\u304c\\u6b63\\u3057\\u304f\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** processFromNode failed     */\n\n    { ER_PROCESSFROMNODE_FAILED,\n         \"processFromNode \\u304c\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f\\u3002\"},\n\n   /** The resource [] could not load:     */\n\n    { ER_RESOURCE_COULD_NOT_LOAD,\n        \"\\u30ea\\u30bd\\u30fc\\u30b9 [ {0} ] \\u3092\\u30ed\\u30fc\\u30c9\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {1} \\n {2} \\t {3}\"},\n\n\n   /** Buffer size <=0     */\n\n    { ER_BUFFER_SIZE_LESSTHAN_ZERO,\n        \"\\u30d0\\u30c3\\u30d5\\u30a1\\u30fc\\u30fb\\u30b5\\u30a4\\u30ba <=0\"},\n\n   /** Unknown error when calling extension    */\n\n    { ER_UNKNOWN_ERROR_CALLING_EXTENSION,\n        \"\\u30a8\\u30af\\u30b9\\u30c6\\u30f3\\u30b7\\u30e7\\u30f3\\u3092\\u547c\\u3073\\u51fa\\u3057\\u6642\\u306b\\u4e0d\\u660e\\u30a8\\u30e9\\u30fc\"},\n\n   /** Prefix {0} does not have a corresponding namespace declaration    */\n\n    { ER_NO_NAMESPACE_DECL,\n        \"\\u63a5\\u982d\\u90e8 {0} \\u306b\\u306f\\u5bfe\\u5fdc\\u3057\\u3066\\u3044\\u308b\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u5ba3\\u8a00\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** Element content not allowed for lang=javaclass   */\n\n    { ER_ELEM_CONTENT_NOT_ALLOWED,\n        \"\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u306e\\u30b3\\u30f3\\u30c6\\u30f3\\u30c4\\u306f lang=javaclass {0} \\u306e\\u5834\\u5408\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** Stylesheet directed termination   */\n\n    { ER_STYLESHEET_DIRECTED_TERMINATION,\n        \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u3067\\u7d42\\u4e86\\u304c\\u6307\\u56f3\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002\"},\n\n   /** 1 or 2   */\n\n    { ER_ONE_OR_TWO,\n        \"1 \\u307e\\u305f\\u306f 2\"},\n\n   /** 2 or 3   */\n\n    { ER_TWO_OR_THREE,\n        \"2 \\u307e\\u305f\\u306f 3\"},\n\n   /** Could not load {0} (check CLASSPATH), now using just the defaults   */\n\n    { ER_COULD_NOT_LOAD_RESOURCE,\n        \"{0} \\u3092\\u30ed\\u30fc\\u30c9\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f (CLASSPATH \\u3092\\u8abf\\u3079\\u3066\\u304f\\u3060\\u3055\\u3044)\\u3002\\u73fe\\u5728\\u306f\\u307e\\u3055\\u306b\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u3092\\u4f7f\\u7528\\u4e2d\\u3067\\u3059\\u3002\"},\n\n   /** Cannot initialize default templates   */\n\n    { ER_CANNOT_INIT_DEFAULT_TEMPLATES,\n        \"\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u30fb\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u3092\\u521d\\u671f\\u5316\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** Result should not be null   */\n\n    { ER_RESULT_NULL,\n        \"\\u7d50\\u679c\\u306f\\u30cc\\u30eb\\u306b\\u306f\\u306a\\u3089\\u306a\\u3044\\u306f\\u305a\\u3067\\u3059\\u3002\"},\n\n   /** Result could not be set   */\n\n    { ER_RESULT_COULD_NOT_BE_SET,\n        \"\\u7d50\\u679c\\u3092\\u8a2d\\u5b9a\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n   /** No output specified   */\n\n    { ER_NO_OUTPUT_SPECIFIED,\n        \"\\u51fa\\u529b\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** Can't transform to a Result of type   */\n\n    { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE,\n        \"\\u30bf\\u30a4\\u30d7 {0} \\u306e\\u7d50\\u679c\\u306b\\u5909\\u63db\\u3067\\u304d\\u307e\\u305b\\u3093\"},\n\n   /** Can't transform to a Source of type   */\n\n    { ER_CANNOT_TRANSFORM_SOURCE_TYPE,\n        \"\\u30bf\\u30a4\\u30d7 {0} \\u306e\\u30bd\\u30fc\\u30b9\\u3092\\u5909\\u63db\\u3067\\u304d\\u307e\\u305b\\u3093\"},\n\n   /** Null content handler  */\n\n    { ER_NULL_CONTENT_HANDLER,\n        \"\\u30cc\\u30eb\\u306e\\u30b3\\u30f3\\u30c6\\u30f3\\u30c4\\u30fb\\u30cf\\u30f3\\u30c9\\u30e9\\u30fc\"},\n\n   /** Null error handler  */\n    { ER_NULL_ERROR_HANDLER,\n        \"\\u30cc\\u30eb\\u306e\\u30a8\\u30e9\\u30fc\\u30fb\\u30cf\\u30f3\\u30c9\\u30e9\\u30fc\"},\n\n   /** parse can not be called if the ContentHandler has not been set */\n\n    { ER_CANNOT_CALL_PARSE,\n        \"ContentHandler \\u304c\\u672a\\u8a2d\\u5b9a\\u306e\\u5834\\u5408\\u306f parse \\u306e\\u547c\\u3073\\u51fa\\u3057\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n   /**  No parent for filter */\n\n    { ER_NO_PARENT_FOR_FILTER,\n        \"\\u30d5\\u30a3\\u30eb\\u30bf\\u30fc\\u306e\\u89aa\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n\n   /**  No stylesheet found in: {0}, media */\n\n    { ER_NO_STYLESHEET_IN_MEDIA,\n         \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u304c {0}\\u3001\\u30e1\\u30c7\\u30a3\\u30a2= {1} \\u306b\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n   /**  No xml-stylesheet PI found in */\n\n    { ER_NO_STYLESHEET_PI,\n         \"XML \\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8 PI \\u304c {0} \\u306b\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n   /**  No default implementation found */\n\n\n   /**  ChunkedIntArray({0}) not currently supported */\n\n\n   /**  Offset bigger than slot */\n\n\n   /**  Coroutine not available, id= */\n\n\n   /**  CoroutineManager recieved co_exit() request */\n\n\n   /**  co_joinCoroutineSet() failed */\n\n\n   /**  Coroutine parameter error () */\n\n\n   /**  UNEXPECTED: Parser doTerminate answers  */\n\n\n   /**  parse may not be called while parsing */\n\n\n   /**  Error: typed iterator for axis  {0} not implemented  */\n\n\n   /**  Error: iterator for axis {0} not implemented  */\n\n\n   /**  Iterator clone not supported  */\n\n\n   /**  Unknown axis traversal type  */\n\n\n   /**  Axis traverser not supported  */\n\n\n   /**  No more DTM IDs are available  */\n\n\n   /**  Not supported  */\n\n    { ER_NOT_SUPPORTED,\n       \"\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093: {0}\"},\n\n   /**  node must be non-null for getDTMHandleFromNode  */\n\n\n   /**  Could not resolve the node to a handle  */\n\n\n   /**  startParse may not be called while parsing */\n\n\n   /**  startParse needs a non-null SAXParser  */\n\n\n   /**  could not initialize parser with */\n\n   /**  Value for property {0} should be a Boolean instance  */\n\n    { ER_PROPERTY_VALUE_BOOLEAN,\n       \"\\u30d7\\u30ed\\u30d1\\u30c6\\u30a3\\u30fc {0} \\u306e\\u5024\\u306f\\u30d6\\u30fc\\u30eb\\u30fb\\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u306b\\u3059\\u308b\\u5fc5\\u8981\\u304c\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n   /**  exception creating new instance for pool  */\n\n\n   /**  Path contains invalid escape sequence  */\n\n\n   /**  Scheme is required!  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  Path contains invalid character:   */\n\n\n   /**  Cannot set scheme from null string  */\n\n\n   /**  The scheme is not conformant. */\n\n\n   /**  Host is not a well formed address  */\n\n\n   /**  Port cannot be set when host is null  */\n\n\n   /**  Invalid port number  */\n\n\n   /**  Fragment can only be set for a generic URI  */\n\n\n   /**  Fragment cannot be set when path is null  */\n\n\n   /**  Fragment contains invalid character  */\n\n\n\n\n   /** Parser is already in use  */\n\n\n   /** Parser is already in use  */\n\n\n   /** Self-causation not permitted  */\n\n\n   /** src attribute not yet supported for  */\n\n    { ER_COULD_NOT_FIND_EXTERN_SCRIPT,\n         \"{0} \\u306e\\u5916\\u90e8\\u30b9\\u30af\\u30ea\\u30d7\\u30c8\\u3078\\u5230\\u9054\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** The resource [] could not be found     */\n\n    { ER_RESOURCE_COULD_NOT_FIND,\n        \"\\u30ea\\u30bd\\u30fc\\u30b9 [ {0} ] \\u306f\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\\n {1}\"},\n\n   /** output property not recognized:  */\n\n    { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED,\n        \"\\u51fa\\u529b\\u30d7\\u30ed\\u30d1\\u30c6\\u30a3\\u30fc\\u306f\\u8a8d\\u8b58\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093: {0}\"},\n\n   /** Userinfo may not be specified if host is not specified   */\n\n\n   /** Port may not be specified if host is not specified   */\n\n\n   /** Query string cannot be specified in path and query string   */\n\n\n   /** Fragment cannot be specified in both the path and fragment   */\n\n\n   /** Cannot initialize URI with empty parameters   */\n\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMLITRSLT,\n        \"ElemLiteralResult \\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u306e\\u4f5c\\u6210\\u304c\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f\\u3002\"},\n\n\n   /** Priority value does not contain a parsable number   */\n\n    { ER_VALUE_SHOULD_BE_NUMBER,\n        \"{0} \\u306e\\u5024\\u306b\\u306f\\u69cb\\u6587\\u89e3\\u6790\\u53ef\\u80fd\\u756a\\u53f7\\u304c\\u542b\\u307e\\u308c\\u3066\\u3044\\u308b\\u306f\\u305a\\u3067\\u3059\\u3002\"},\n\n   /**  Value for {0} should equal 'yes' or 'no'   */\n\n    { ER_VALUE_SHOULD_EQUAL,\n        \"{0} \\u306e\\u5024\\u306f yes \\u307e\\u305f\\u306f no \\u3068\\u7b49\\u3057\\u304f\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n   /**  Failed calling {0} method   */\n\n    { ER_FAILED_CALLING_METHOD,\n        \"{0} \\u30e1\\u30bd\\u30c3\\u30c9\\u306e\\u547c\\u3073\\u51fa\\u3057\\u304c\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f\\u3002\"},\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMTMPL,\n        \"ElemTemplateElement \\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u306e\\u4f5c\\u6210\\u304c\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f\\u3002\"},\n\n   /**  Characters are not allowed at this point in the document   */\n\n    { ER_CHARS_NOT_ALLOWED,\n        \"\\u6587\\u5b57\\u306f\\u6587\\u66f8\\u5185\\u306e\\u3053\\u306e\\u30dd\\u30a4\\u30f3\\u30c8\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /**  attribute is not allowed on the element   */\n    { ER_ATTR_NOT_ALLOWED,\n        \"\\\"{0}\\\" \\u5c5e\\u6027\\u306f {1} \\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n  /**  Method not yet supported    */\n\n\n  /**  Bad value    */\n\n    { ER_BAD_VALUE,\n     \"{0} \\u306e\\u9593\\u9055\\u3063\\u305f\\u5024 {1} \"},\n\n  /**  attribute value not found   */\n\n    { ER_ATTRIB_VALUE_NOT_FOUND,\n     \"{0} \\u5c5e\\u6027\\u5024\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002 \"},\n\n  /**  attribute value not recognized    */\n\n    { ER_ATTRIB_VALUE_NOT_RECOGNIZED,\n     \"{0} \\u5c5e\\u6027\\u5024\\u306f\\u8a8d\\u8b58\\u3055\\u308c\\u307e\\u305b\\u3093\\u3002 \"},\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NULL_URI_NAMESPACE,\n     \"\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u63a5\\u982d\\u90e8\\u3092\\u30cc\\u30eb\\u306e URI \\u3067\\u751f\\u6210\\u3057\\u3088\\u3046\\u3068\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NUMBER_TOO_BIG,\n     \"\\u6700\\u5927 Long \\u6574\\u6570\\u3088\\u308a\\u5927\\u304d\\u3044\\u6570\\u3092\\u30d5\\u30a9\\u30fc\\u30de\\u30c3\\u30c8\\u3057\\u3088\\u3046\\u3068\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n\n\n    { ER_CANNOT_FIND_SAX1_DRIVER,\n     \"SAX1 \\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u30fb\\u30af\\u30e9\\u30b9 {0} \\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n\n    { ER_SAX1_DRIVER_NOT_LOADED,\n     \"SAX1 \\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u30fb\\u30af\\u30e9\\u30b9 {0} \\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u3057\\u305f\\u304c\\u30ed\\u30fc\\u30c9\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n\n    { ER_SAX1_DRIVER_NOT_INSTANTIATED,\n     \"SAX1 \\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u30fb\\u30af\\u30e9\\u30b9 {0} \\u304c\\u30ed\\u30fc\\u30c9\\u3055\\u308c\\u307e\\u3057\\u305f\\u304c\\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u751f\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n\n\n    { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER,\n     \"SAX1 \\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u30fb\\u30af\\u30e9\\u30b9 {0} \\u304c org.xml.sax.Parser \\u3092\\u30a4\\u30f3\\u30d7\\u30ea\\u30e1\\u30f3\\u30c8\\u3057\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n\n    { ER_PARSER_PROPERTY_NOT_SPECIFIED,\n     \"\\u30b7\\u30b9\\u30c6\\u30e0\\u30fb\\u30d7\\u30ed\\u30d1\\u30c6\\u30a3\\u30fc org.xml.sax.parser \\u306f\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n\n    { ER_PARSER_ARG_CANNOT_BE_NULL,\n     \"\\u30d1\\u30fc\\u30b5\\u30fc\\u306e\\u5f15\\u304d\\u6570\\u3092\\u30cc\\u30eb\\u306b\\u3057\\u3066\\u306f\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n\n\n    { ER_FEATURE,\n     \"\\u30d5\\u30a3\\u30fc\\u30c1\\u30e3\\u30fc: {0}\"},\n\n\n\n    { ER_PROPERTY,\n     \"\\u30d7\\u30ed\\u30d1\\u30c6\\u30a3\\u30fc: {0}\"},\n\n\n    { ER_NULL_ENTITY_RESOLVER,\n     \"\\u30cc\\u30eb\\u30fb\\u30a8\\u30f3\\u30c6\\u30a3\\u30c6\\u30a3\\u30fc\\u30fb\\u30ea\\u30be\\u30eb\\u30d0\\u30fc\"},\n\n\n    { ER_NULL_DTD_HANDLER,\n     \"\\u30cc\\u30eb DTD \\u30cf\\u30f3\\u30c9\\u30e9\\u30fc\"},\n\n    { ER_NO_DRIVER_NAME_SPECIFIED,\n     \"\\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u540d\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n\n    { ER_NO_URL_SPECIFIED,\n     \"URL \\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n\n    { ER_POOLSIZE_LESS_THAN_ONE,\n     \"\\u30d7\\u30fc\\u30eb\\u30fb\\u30b5\\u30a4\\u30ba\\u304c 1 \\u3088\\u308a\\u5c0f\\u3067\\u3059!\"},\n\n\n    { ER_INVALID_DRIVER_NAME,\n     \"\\u7121\\u52b9\\u306a\\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u540d\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u307e\\u3057\\u305f!\"},\n\n\n\n    { ER_ERRORLISTENER,\n     \"ErrorListener\"},\n\n\n    { ER_ASSERT_NO_TEMPLATE_PARENT,\n     \"\\u30d7\\u30ed\\u30b0\\u30e9\\u30de\\u30fc\\u306e\\u30a8\\u30e9\\u30fc! expr \\u306b\\u306f ElemTemplateElement \\u89aa\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n\n    { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR,\n     \"RedundentExprEliminator \\u5185\\u306e\\u30d7\\u30ed\\u30b0\\u30e9\\u30de\\u30fc\\u306e\\u30a2\\u30b5\\u30fc\\u30b7\\u30e7\\u30f3: {0}\"},\n\n\n\n    { ER_NOT_ALLOWED_IN_POSITION,\n     \"{0} \\u306f\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u306e\\u3053\\u306e\\u4f4d\\u7f6e\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u307e\\u305b\\u3093!\"},\n\n    { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,\n     \"\\u7a7a\\u767d\\u6587\\u5b57\\u4ee5\\u5916\\u306e\\u30c6\\u30ad\\u30b9\\u30c8\\u306f\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u306e\\u3053\\u306e\\u4f4d\\u7f6e\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u307e\\u305b\\u3093!\"},\n\n    { INVALID_TCHAR,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c CHAR \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002CHAR \\u30bf\\u30a4\\u30d7\\u306e\\u5c5e\\u6027\\u306f 1 \\u6587\\u5b57\\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093!\"},\n\n\n\n\n    { INVALID_QNAME,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c QNAME \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002\"},\n\n\n    { INVALID_ENUM,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c ENUM \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002  \\u6709\\u52b9\\u5024: {2}\\u3002\"},\n\n\n    { INVALID_NMTOKEN,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c NMTOKEN \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002 \"},\n\n\n    { INVALID_NCNAME,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c NCNAME \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002 \"},\n\n\n\n    { INVALID_BOOLEAN,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c boolean \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002 \"},\n\n\n     { INVALID_NUMBER,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c number \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002 \"},\n\n\n\n\n    { ER_ARG_LITERAL,\n     \"\\u30de\\u30c3\\u30c1\\u30f3\\u30b0\\u30fb\\u30d1\\u30bf\\u30fc\\u30f3\\u306e {0} \\u3078\\u306e\\u5f15\\u304d\\u6570\\u306f\\u30ea\\u30c6\\u30e9\\u30eb\\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n\n    { ER_DUPLICATE_GLOBAL_VAR,\n     \"\\u30b0\\u30ed\\u30fc\\u30d0\\u30eb\\u5909\\u6570\\u5ba3\\u8a00\\u304c\\u91cd\\u8907\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n\n\n    { ER_DUPLICATE_VAR,\n     \"\\u5909\\u6570\\u5ba3\\u8a00\\u304c\\u91cd\\u8907\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n\n    { ER_TEMPLATE_NAME_MATCH,\n     \"xsl:template \\u306b\\u306f name \\u307e\\u305f\\u306f match \\u5c5e\\u6027 (\\u3042\\u308b\\u3044\\u306f\\u305d\\u306e\\u4e21\\u65b9) \\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n\n    { ER_INVALID_PREFIX,\n     \"exclude-result-prefixes \\u5185\\u306e\\u63a5\\u982d\\u90e8\\u304c\\u7121\\u52b9\\u3067\\u3059: {0}\"},\n\n\n    { ER_NO_ATTRIB_SET,\n     \"{0} \\u3068\\u3044\\u3046\\u540d\\u524d\\u306e attribute-set \\u304c\\u5b58\\u5728\\u3057\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n\n\n\n\n\n  /** WG_FOUND_CURLYBRACE          */\n    { WG_FOUND_CURLYBRACE,\n      \"'}' \\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u3057\\u305f\\u304c\\u3001\\u30aa\\u30fc\\u30d7\\u30f3\\u3055\\u308c\\u305f\\u5c5e\\u6027\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n  /** WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR          */\n\n    { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,\n      \"\\u8b66\\u544a: count \\u5c5e\\u6027\\u304c xsl:number \\u5185\\u306e\\u4e0a\\u4f4d\\u3068\\u4e00\\u81f4\\u3057\\u307e\\u305b\\u3093! \\u30bf\\u30fc\\u30b2\\u30c3\\u30c8 = {0}\"},\n\n  /** WG_EXPR_ATTRIB_CHANGED_TO_SELECT          */\n\n    { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,\n      \"\\u65e7\\u69cb\\u6587: 'expr' \\u5c5e\\u6027\\u306e\\u540d\\u524d\\u304c 'select' \\u306b\\u5909\\u66f4\\u3055\\u308c\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n  /** WG_NO_LOCALE_IN_FORMATNUMBER          */\n\n    { WG_NO_LOCALE_IN_FORMATNUMBER,\n      \"Xalan \\u306f\\u30d5\\u30a9\\u30fc\\u30de\\u30c3\\u30c8\\u756a\\u53f7\\u95a2\\u6570\\u5185\\u3067\\u307e\\u3060\\u30ed\\u30b1\\u30fc\\u30eb\\u540d\\u3092\\u51e6\\u7406\\u3057\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** WG_LOCALE_NOT_FOUND          */\n\n    { WG_LOCALE_NOT_FOUND,\n      \"\\u8b66\\u544a: xml:lang={0} \\u306e\\u30ed\\u30b1\\u30fc\\u30eb\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** WG_CANNOT_MAKE_URL_FROM          */\n\n    { WG_CANNOT_MAKE_URL_FROM,\n      \"URL \\u3092 {0} \\u304b\\u3089\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** WG_CANNOT_LOAD_REQUESTED_DOC          */\n\n    { WG_CANNOT_LOAD_REQUESTED_DOC,\n      \"\\u8981\\u6c42\\u3055\\u308c\\u305f doc: {0} \\u3092\\u30ed\\u30fc\\u30c9\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** WG_CANNOT_FIND_COLLATOR          */\n    { WG_CANNOT_FIND_COLLATOR,\n      \"<sort xml:lang={0} \\u306e\\u30b3\\u30ec\\u30fc\\u30bf\\u30fc\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** WG_FUNCTIONS_SHOULD_USE_URL          */\n\n    { WG_FUNCTIONS_SHOULD_USE_URL,\n      \"\\u65e7\\u69cb\\u6587: \\u95a2\\u6570\\u547d\\u4ee4\\u3067\\u306f {0} \\u306e URL \\u3092\\u4f7f\\u7528\\u3059\\u308b\\u5fc5\\u8981\\u304c\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_UTF8          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,\n      \"\\u30a8\\u30f3\\u30b3\\u30fc\\u30c9\\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u307e\\u305b\\u3093: {0}\\u3001UTF-8 \\u3092\\u4f7f\\u7528\\u4e2d\\u3002\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_JAVA          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,\n      \"\\u30a8\\u30f3\\u30b3\\u30fc\\u30c9\\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u307e\\u305b\\u3093: {0}\\u3001Java {1} \\u3092\\u4f7f\\u7528\\u4e2d\\u3002\"},\n\n  /** WG_SPECIFICITY_CONFLICTS          */\n\n    { WG_SPECIFICITY_CONFLICTS,\n      \"\\u9650\\u5b9a\\u6027\\u306e\\u77db\\u76fe\\u304c\\u691c\\u51fa\\u3055\\u308c\\u307e\\u3057\\u305f: {0} \\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u5185\\u3067\\u6700\\u5f8c\\u306b\\u691c\\u51fa\\u3055\\u308c\\u305f\\u3082\\u306e\\u304c\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3059\\u3002\"},\n\n  /** WG_PARSING_AND_PREPARING          */\n\n    { WG_PARSING_AND_PREPARING,\n      \"========= {0} \\u3092\\u69cb\\u6587\\u89e3\\u6790\\u4e2d\\u304a\\u3088\\u3073\\u6e96\\u5099\\u4e2d ==========\"},\n\n  /** WG_ATTR_TEMPLATE          */\n\n    { WG_ATTR_TEMPLATE,\n     \"\\u5c5e\\u6027\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8 {0}\"},\n\n  /** WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE          */\n\n    { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,\n      \"xsl:strip-space \\u3068 xsl:preserve-space \\u306e\\u9593\\u306e\\u30de\\u30c3\\u30c1\\u30f3\\u30b0\\u306e\\u77db\\u76fe\"},\n\n  /** WG_ATTRIB_NOT_HANDLED          */\n\n    { WG_ATTRIB_NOT_HANDLED,\n      \"Xalan \\u306f\\u307e\\u3060 {0} \\u5c5e\\u6027\\u3092\\u51e6\\u7406\\u3057\\u307e\\u305b\\u3093!\"},\n\n  /** WG_NO_DECIMALFORMAT_DECLARATION          */\n\n    { WG_NO_DECIMALFORMAT_DECLARATION,\n      \"10 \\u9032\\u6570\\u5f62\\u5f0f\\u306e\\u5ba3\\u8a00\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n  /** WG_OLD_XSLT_NS          */\n\n    { WG_OLD_XSLT_NS,\n     \"XSLT \\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u304c\\u306a\\u3044\\u304b\\u8aa4\\u3063\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n  /** WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED          */\n\n    { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,\n      \"\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u306e xsl:decimal-format \\u5ba3\\u8a00\\u306f 1 \\u3064\\u3057\\u304b\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE          */\n\n    { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,\n      \"xsl:decimal-format \\u540d\\u306f\\u56fa\\u6709\\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002 \\u540d\\u524d \\\"{0}\\\" \\u304c\\u91cd\\u8907\\u3057\\u3066\\u3044\\u307e\\u3057\\u305f\\u3002\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE          */\n\n    { WG_ILLEGAL_ATTRIBUTE,\n      \"{0} \\u306b\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5c5e\\u6027\\u304c\\u3042\\u308a\\u307e\\u3059: {1}\"},\n\n  /** WG_COULD_NOT_RESOLVE_PREFIX          */\n\n    { WG_COULD_NOT_RESOLVE_PREFIX,\n      \"\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u63a5\\u982d\\u90e8\\u3092\\u89e3\\u6c7a\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\\u3002 \\u30ce\\u30fc\\u30c9\\u306f\\u7121\\u8996\\u3055\\u308c\\u307e\\u3059\\u3002\"},\n\n  /** WG_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n    { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"xsl:stylesheet \\u306b\\u306f 'version' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_NAME          */\n\n    { WG_ILLEGAL_ATTRIBUTE_NAME,\n      \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5c5e\\u6027\\u540d: {0}\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_VALUE          */\n    { WG_ILLEGAL_ATTRIBUTE_VALUE,\n      \"\\u5c5e\\u6027 {0}: {1} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u305f\\u5024\\u306f\\u6b63\\u3057\\u304f\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** WG_EMPTY_SECOND_ARG          */\n\n    { WG_EMPTY_SECOND_ARG,\n      \"\\u6587\\u66f8\\u6a5f\\u80fd\\u306e 2 \\u756a\\u76ee\\u306e\\u5f15\\u304d\\u6570\\u304b\\u3089\\u5f97\\u3089\\u308c\\u305f nodeset \\u304c\\u7a7a\\u3067\\u3059\\u3002\\u7a7a\\u306e node-set \\u3092\\u623b\\u3057\\u307e\\u3059\\u3002\"},\n\n\n\n\n  /** WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n    { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"xsl:processing-instruction \\u540d\\u306e 'name' \\u5c5e\\u6027\\u306e\\u5024\\u306f 'xml' \\u3067\\u3042\\u3063\\u3066\\u306f\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n\n  /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n    { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"xsl:processing-instruction \\u306e 'name' \\u5c5e\\u6027\\u306e\\u5024\\u306f\\u6709\\u52b9\\u306a NCName \\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n\n  /** WG_ILLEGAL_ATTRIBUTE_POSITION         */\n    { WG_ILLEGAL_ATTRIBUTE_POSITION,\n      \"\\u4e0b\\u4f4d\\u30ce\\u30fc\\u30c9\\u306e\\u5f8c\\u307e\\u305f\\u306f\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u304c\\u751f\\u6210\\u3055\\u308c\\u308b\\u524d\\u306b\\u5c5e\\u6027 {0} \\u3092\\u8ffd\\u52a0\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\\u5c5e\\u6027\\u306f\\u7121\\u8996\\u3055\\u308c\\u307e\\u3059\\u3002\"},\n\n\n  { \"ui_language\", \"en\"},\n  {  \"help_language\",  \"en\" },\n  {  \"language\",  \"en\" },\n  { \"BAD_CODE\", \"createMessage \\u3078\\u306e\\u30d1\\u30e9\\u30e1\\u30fc\\u30bf\\u30fc\\u304c\\u5883\\u754c\\u5916\\u3067\\u3057\\u305f\\u3002\"},\n  {  \"FORMAT_FAILED\", \"messageFormat \\u547c\\u3073\\u51fa\\u3057\\u4e2d\\u306b\\u4f8b\\u5916\\u304c\\u30b9\\u30ed\\u30fc\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002\"},\n  {  \"version\", \">>>>>>> Xalan \\u30d0\\u30fc\\u30b8\\u30e7\\u30f3 \"},\n  {  \"version2\",  \"<<<<<<<\"},\n  {  \"yes\", \"\\u306f\\u3044\"},\n  { \"line\", \"\\u884c #\"},\n  { \"column\",\"\\u6841 #\"},\n  { \"xsldone\", \"XSLProcessor: \\u5b8c\\u4e86\"},\n\n\n  { \"xslProc_option\", \"Xalan-J \\u30b3\\u30de\\u30f3\\u30c9\\u884c Process \\u30af\\u30e9\\u30b9\\u30fb\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3\"},\n  { \"xslProc_option\", \"Xalan-J \\u30b3\\u30de\\u30f3\\u30c9\\u884c Process \\u30af\\u30e9\\u30b9\\u30fb\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3\\u003a\"},\n  { \"xslProc_invalid_xsltc_option\", \"\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3 {0} \\u306f XSLTC \\u30e2\\u30fc\\u30c9\\u3067\\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n  { \"xslProc_invalid_xalan_option\", \"\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3 {0} \\u306f -XSLTC \\u3068\\u4e00\\u7dd2\\u306b\\u3057\\u304b\\u4f7f\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n  { \"xslProc_no_input\", \"\\u30a8\\u30e9\\u30fc: \\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u304c\\u306a\\u3044\\u304b\\u5165\\u529b xml \\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002 \\u4f7f\\u7528\\u6cd5\\u306e\\u8aac\\u660e\\u306b\\u3064\\u3044\\u3066\\u306f\\u3001\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3\\u306a\\u3057\\u3067\\u3053\\u306e\\u30b3\\u30de\\u30f3\\u30c9\\u3092\\u5b9f\\u884c\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044\\u3002\"},\n  { \"xslProc_common_options\", \"-\\u5171\\u901a\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3-\"},\n  { \"xslProc_xalan_options\", \"-Xalan \\u7528\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3-\"},\n  { \"xslProc_xsltc_options\", \"-XSLTC \\u7528\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3-\"},\n  { \"xslProc_return_to_continue\", \"(\\u7d9a\\u3051\\u308b\\u306b\\u306f <return> \\u3092\\u62bc\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044)\"},\n\n  { \"optionXSLTC\", \"   [-XSLTC (\\u5909\\u63db\\u306b XSLTC \\u3092\\u4f7f\\u7528)]\"},\n  { \"optionIN\", \"   [-IN inputXMLURL]\"},\n  { \"optionXSL\", \"   [-XSL XSLTransformationURL]\"},\n  { \"optionOUT\",  \"   [-OUT outputFileName]\"},\n  { \"optionLXCIN\", \"   [-LXCIN compiledStylesheetFileNameIn]\"},\n  { \"optionLXCOUT\", \"   [-LXCOUT compiledStylesheetFileNameOutOut]\"},\n  { \"optionPARSER\", \"   [-PARSER parser liaison \\u306e\\u5b8c\\u5168\\u4fee\\u98fe\\u30af\\u30e9\\u30b9\\u540d]\"},\n  {  \"optionE\", \"   [-E (\\u30a8\\u30f3\\u30c6\\u30a3\\u30c6\\u30a3\\u30fc ref \\u3092\\u62e1\\u5f35\\u3057\\u306a\\u3044)]\"},\n  {  \"optionV\",  \"   [-E (\\u30a8\\u30f3\\u30c6\\u30a3\\u30c6\\u30a3\\u30fc ref \\u3092\\u62e1\\u5f35\\u3057\\u306a\\u3044)]\"},\n  {  \"optionQC\", \"   [-QC (\\u9759\\u6b62\\u30d1\\u30bf\\u30fc\\u30f3\\u77db\\u76fe\\u8b66\\u544a)]\"},\n  {  \"optionQ\", \"   [-Q  (\\u9759\\u6b62\\u30e2\\u30fc\\u30c9)]\"},\n  {  \"optionLF\", \"[-LF (LF (\\u6539\\u884c) \\u3092\\u51fa\\u529b\\u6642\\u306e\\u307f\\u306b\\u4f7f\\u7528  {\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u306f CR/LF})]\"},\n  {  \"optionCR\", \"[-CR (CR (\\u5fa9\\u5e30) \\u3092\\u51fa\\u529b\\u6642\\u306e\\u307f\\u306b\\u4f7f\\u7528 {\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u306f CR/LF})]\"},\n  { \"optionESCAPE\", \"[-ESCAPE (\\u30a8\\u30b9\\u30b1\\u30fc\\u30d7\\u3059\\u308b\\u6587\\u5b57 {\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u306f <>&\\\"\\'\\\\r\\\\n}]\"},\n  { \"optionINDENT\", \"[-INDENT (\\u5b57\\u4e0b\\u3052\\u3059\\u308b\\u30b9\\u30da\\u30fc\\u30b9\\u3092\\u5236\\u5fa1 {\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u306f 0})]\"},\n  { \"optionTT\", \"   [-TT (\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u3092\\u547c\\u3073\\u51fa\\u3057\\u4e2d\\u306b\\u30c8\\u30ec\\u30fc\\u30b9\\u3002)]\"},\n  { \"optionTG\", \"   [-TG (\\u5404\\u751f\\u6210\\u30a4\\u30d9\\u30f3\\u30c8\\u3092\\u30c8\\u30ec\\u30fc\\u30b9\\u3002)]\"},\n  { \"optionTS\", \"   [-TS (\\u5404\\u9078\\u629e\\u30a4\\u30d9\\u30f3\\u30c8\\u3092\\u30c8\\u30ec\\u30fc\\u30b9\\u3002)]\"},\n  {  \"optionTTC\", \"   [-TTC (\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u306e\\u5b50\\u3092\\u547c\\u3073\\u51fa\\u3057\\u4e2d\\u306b\\u30c8\\u30ec\\u30fc\\u30b9\\u3002)]\"},\n  { \"optionTCLASS\", \"   [-TCLASS (\\u30c8\\u30ec\\u30fc\\u30b9\\u62e1\\u5f35\\u6a5f\\u80fd\\u306e TraceListener \\u30af\\u30e9\\u30b9\\u3002)]\"},\n  { \"optionVALIDATE\", \"   [-VALIDATE (\\u59a5\\u5f53\\u6027\\u691c\\u67fb\\u3092\\u5b9f\\u884c\\u3059\\u308b\\u304b\\u3069\\u3046\\u304b\\u3092\\u8a2d\\u5b9a\\u3002  \\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u3067\\u306f\\u3001\\u59a5\\u5f53\\u6027\\u691c\\u67fb\\u306f\\u30aa\\u30d5\\u3067\\u3059\\u3002)]\"},\n  { \"optionEDUMP\", \"[-EDUMP {optional filename} (\\u30a8\\u30e9\\u30fc\\u6642\\u306b stackdump \\u3092\\u5b9f\\u884c\\u3002)]\"},\n  {  \"optionXML\", \"   [-XML (XML \\u30d5\\u30a9\\u30fc\\u30de\\u30c3\\u30bf\\u30fc\\u3092\\u4f7f\\u7528\\u304a\\u3088\\u3073 XML \\u30d8\\u30c3\\u30c0\\u30fc\\u3092\\u8ffd\\u52a0\\u3002)]\"},\n  {  \"optionTEXT\", \"   [-TEXT (\\u30b7\\u30f3\\u30d7\\u30eb\\u30fb\\u30c6\\u30ad\\u30b9\\u30c8\\u30fb\\u30d5\\u30a9\\u30fc\\u30de\\u30c3\\u30bf\\u30fc\\u3092\\u4f7f\\u7528\\u3002)]\"},\n  {  \"optionHTML\", \"   [-HTML (HTML \\u30d5\\u30a9\\u30fc\\u30de\\u30c3\\u30bf\\u30fc\\u3092\\u4f7f\\u7528\\u3002)]\"},\n  {  \"optionPARAM\", \"   [-PARAM \\u540d\\u524d\\u5f0f (stylesheet \\u30d1\\u30e9\\u30e1\\u30fc\\u30bf\\u30fc\\u3092\\u8a2d\\u5b9a\\u3002)]\"},\n  {  \"noParsermsg1\", \"XSL \\u51e6\\u7406\\u306f\\u6210\\u529f\\u3057\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n  {  \"noParsermsg2\", \"** \\u30d1\\u30fc\\u30b5\\u30fc\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f **\"},\n  { \"noParsermsg3\",  \"\\u30af\\u30e9\\u30b9\\u30d1\\u30b9\\u3092\\u8abf\\u3079\\u3066\\u304f\\u3060\\u3055\\u3044\\u3002\"},\n  { \"noParsermsg4\", \"IBM \\u306e XML Parser for Java \\u304c\\u306a\\u3044\\u5834\\u5408\\u306f\\u3001\\u6b21\\u306e\\u30b5\\u30a4\\u30c8\\u304b\\u3089\\u30c0\\u30a6\\u30f3\\u30ed\\u30fc\\u30c9\\u3067\\u304d\\u307e\\u3059:\"},\n  { \"optionURIRESOLVER\", \"   [-URIRESOLVER \\u7d76\\u5bfe\\u30af\\u30e9\\u30b9\\u540d (URI \\u3092\\u89e3\\u6c7a\\u3059\\u308b\\u305f\\u3081\\u306b\\u4f7f\\u7528\\u3059\\u308b URIResolver)]\"},\n  { \"optionENTITYRESOLVER\",  \"   [-ENTITYRESOLVER \\u7d76\\u5bfe\\u30af\\u30e9\\u30b9\\u540d (\\u30a8\\u30f3\\u30c6\\u30a3\\u30c6\\u30a3\\u30fc\\u3092\\u89e3\\u6c7a\\u3059\\u308b\\u305f\\u3081\\u306b\\u4f7f\\u7528\\u3059\\u308b EntityResolver)]\"},\n  { \"optionCONTENTHANDLER\",  \"   [-CONTENTHANDLER \\u7d76\\u5bfe\\u30af\\u30e9\\u30b9\\u540d (\\u51fa\\u529b\\u3092\\u30b7\\u30ea\\u30a2\\u30e9\\u30a4\\u30ba\\u3059\\u308b\\u305f\\u3081\\u306b\\u4f7f\\u7528\\u3059\\u308b ContentHandler)]\"},\n  {  \"optionLINENUMBERS\",  \"   [-L \\u30bd\\u30fc\\u30b9\\u30fb\\u30c9\\u30ad\\u30e5\\u30e1\\u30f3\\u30c8\\u306e\\u884c\\u756a\\u53f7\\u3092\\u4f7f\\u7528]\"},\n\n\n\n  {  \"optionMEDIA\",  \"   [-MEDIA mediaType (\\u6587\\u66f8\\u3068\\u95a2\\u9023\\u3057\\u305f\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u3092\\u691c\\u7d22\\u3059\\u308b\\u30e1\\u30c7\\u30a3\\u30a2\\u5c5e\\u6027\\u3092\\u4f7f\\u7528\\u3002)]\"},\n  { \"optionDIAG\", \"   [-DIAG (\\u5909\\u63db\\u306b\\u304b\\u304b\\u3063\\u305f\\u5168\\u30df\\u30ea\\u79d2\\u3092\\u5370\\u5237\\u3002)]\"},\n  { \"optionRL\",  \"   [-RL recursionlimit (\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u306e\\u518d\\u5e30\\u306e\\u6df1\\u3055\\u306b\\u3064\\u3044\\u3066\\u306e\\u6570\\u5024\\u9650\\u754c\\u3092\\u4e3b\\u5f35\\u3002)]\"},\n  {   \"optionXO\",  \"   [-XO [transletName] (\\u540d\\u524d\\u3092\\u751f\\u6210\\u5f8c\\u306e translet \\u306b\\u5272\\u308a\\u5f53\\u3066)]\"},\n  {  \"optionXD\", \"   [-XD destinationDirectory (\\u5b9b\\u5148\\u30c7\\u30a3\\u30ec\\u30af\\u30c8\\u30ea\\u30fc\\u3092 translet \\u306b\\u6307\\u5b9a)]\"},\n  {  \"optionXJ\",  \"   [-XJ jarfile (translet \\u30af\\u30e9\\u30b9\\u3092\\u540d\\u524d <jarfile> \\u306e jar \\u30d5\\u30a1\\u30a4\\u30eb\\u306b\\u30d1\\u30c3\\u30b1\\u30fc\\u30b8\\u3057\\u307e\\u3059)]\"},\n  {   \"optionXP\",  \"   [-XP package (\\u30d1\\u30c3\\u30b1\\u30fc\\u30b8\\u540d\\u63a5\\u982d\\u90e8\\u3092\\u3059\\u3079\\u3066\\u306e\\u751f\\u6210\\u5f8c\\u306e translet \\u30af\\u30e9\\u30b9\\u306b\\u6307\\u5b9a\\u3057\\u307e\\u3059)]\"},\n\n  { \"optionXN\",  \"   [-XN (\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u3092\\u30a4\\u30f3\\u30e9\\u30a4\\u30f3\\u3067\\u4f7f\\u7528\\u53ef\\u80fd\\u306b\\u3057\\u307e\\u3059)]\" },\n  { \"optionXX\",  \"   [-XX (\\u8ffd\\u52a0\\u306e\\u30c7\\u30d0\\u30c3\\u30b0\\u30fb\\u30e1\\u30c3\\u30bb\\u30fc\\u30b8\\u51fa\\u529b\\u3092\\u30aa\\u30f3\\u306b\\u3057\\u307e\\u3059)]\"},\n  { \"optionXT\" , \"   [-XT (\\u53ef\\u80fd\\u306a\\u5834\\u5408\\u306f translet \\u3092\\u4f7f\\u7528\\u3057\\u3066\\u5909\\u63db)]\"},\n  { \"diagTiming\",\"--------- {0} \\u306e {1} \\u306b\\u3088\\u308b\\u5909\\u63db\\u306b\\u306f {2} \\u30df\\u30ea\\u79d2\\u304b\\u304b\\u308a\\u307e\\u3057\\u305f\" },\n  { \"recursionTooDeep\",\"\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u306e\\u30cd\\u30b9\\u30c8\\u304c\\u6df1\\u3059\\u304e\\u307e\\u3059\\u3002 \\u30cd\\u30b9\\u30c8 = {0}\\u3001\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8 {1} {2}\" },\n  { \"nameIs\", \"\\u540d\\u524d\\u306f\" },\n  { \"matchPatternIs\", \"\\u30de\\u30c3\\u30c1\\u30f3\\u30b0\\u30fb\\u30d1\\u30bf\\u30fc\\u30f3\\u306f\" }\n\n  };\n  }\n\n\n  /** String for use when a bad error code was encountered.    */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** String for use when formatting of the error string failed.   */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** General error string.   */\n  public static final String ERROR_STRING = \"#error\";\n\n  /** String to prepend to error messages.  */\n  public static final String ERROR_HEADER = \"\\u30a8\\u30e9\\u30fc: \";\n\n  /** String to prepend to warning messages.    */\n  public static final String WARNING_HEADER = \"\\u8b66\\u544a: \";\n\n  /** String to specify the XSLT module.  */\n  public static final String XSL_HEADER = \"XSLT \";\n\n  /** String to specify the XML parser module.  */\n  public static final String XML_HEADER = \"XML \";\n\n  /** I don't think this is used any more.\n   * @deprecated  */\n  public static final String QUERY_HEADER = \"PATTERN \";\n\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XSLTErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XSLTErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XSLTErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"en\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return new Object[][] {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n  {\"ER0000\" , \"{0}\" },\n\n\n  /** ER_NO_CURLYBRACE          */\n\n\n    { ER_NO_CURLYBRACE,\n      \"\\u30a8\\u30e9\\u30fc: \\u5f0f\\u5185\\u3067\\u306f '{' \\u3092\\u4f7f\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE          */\n\n    { ER_ILLEGAL_ATTRIBUTE ,\n     \"{0} \\u306b\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5c5e\\u6027\\u304c\\u3042\\u308a\\u307e\\u3059: {1}\"},\n\n  /** ER_NULL_SOURCENODE_APPLYIMPORTS          */\n\n  {ER_NULL_SOURCENODE_APPLYIMPORTS ,\n      \"xsl:apply-imports \\u5185\\u306e sourceNode \\u304c\\u30cc\\u30eb\\u3067\\u3059!\"},\n\n  /** ER_CANNOT_ADD          */\n\n  {ER_CANNOT_ADD,\n      \"{0} \\u3092 {1} \\u306b\\u8ffd\\u52a0\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n\n  /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES          */\n\n\n    { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES,\n      \"handleApplyTemplatesInstruction \\u5185\\u306e sourceNode \\u304c\\u30cc\\u30eb\\u3067\\u3059!\"},\n\n  /** ER_NO_NAME_ATTRIB          */\n\n\n    { ER_NO_NAME_ATTRIB,\n     \"{0} \\u306b\\u306f name \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_TEMPLATE_NOT_FOUND          */\n\n\n    {ER_TEMPLATE_NOT_FOUND,\n     \"{0} \\u3068\\u3044\\u3046\\u540d\\u524d\\u306e\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_CANT_RESOLVE_NAME_AVT          */\n\n    {ER_CANT_RESOLVE_NAME_AVT,\n      \"xsl:call-template \\u5185\\u306e\\u540d\\u524d AVT \\u3092\\u89e3\\u6c7a\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_REQUIRES_ATTRIB          */\n\n\n    {ER_REQUIRES_ATTRIB,\n     \"{0} \\u306b\\u306f\\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059: {1}\"},\n\n  /** ER_MUST_HAVE_TEST_ATTRIB          */\n\n\n    { ER_MUST_HAVE_TEST_ATTRIB,\n      \"{0} \\u306b\\u306f ''test'' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_BAD_VAL_ON_LEVEL_ATTRIB          */\n\n\n    {ER_BAD_VAL_ON_LEVEL_ATTRIB,\n      \"level \\u5c5e\\u6027\\u3067\\u5024\\u304c\\u9593\\u9055\\u3063\\u3066\\u3044\\u307e\\u3059: {0}\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n\n\n    {ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"\\u51e6\\u7406\\u547d\\u4ee4\\u306e\\u540d\\u524d\\u306f 'xml' \\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n\n\n    { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"\\u51e6\\u7406\\u547d\\u4ee4\\u306e\\u540d\\u524d\\u306f\\u6709\\u52b9\\u306a NCName \\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_NEED_MATCH_ATTRIB          */\n\n\n    { ER_NEED_MATCH_ATTRIB,\n      \"{0} \\u306b\\u30e2\\u30fc\\u30c9\\u304c\\u3042\\u308b\\u5834\\u5408\\u306f\\u3001match \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NEED_NAME_OR_MATCH_ATTRIB          */\n\n\n    { ER_NEED_NAME_OR_MATCH_ATTRIB,\n      \"{0} \\u306b\\u306f name \\u307e\\u305f\\u306f match \\u306e\\u3044\\u305a\\u308c\\u304b\\u306e\\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_CANT_RESOLVE_NSPREFIX          */\n\n\n    {ER_CANT_RESOLVE_NSPREFIX,\n      \"\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u63a5\\u982d\\u90e8\\u3092\\u89e3\\u6c7a\\u3067\\u304d\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_ILLEGAL_VALUE          */\n\n\n    { ER_ILLEGAL_VALUE,\n     \"xml:space \\u306b\\u306f\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024\\u304c\\u3042\\u308a\\u307e\\u3059: {0}\"},\n\n  /** ER_NO_OWNERDOC          */\n\n\n    { ER_NO_OWNERDOC,\n      \"\\u4e0b\\u4f4d\\u30ce\\u30fc\\u30c9\\u306b\\u6240\\u6709\\u8005\\u6587\\u66f8\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n  /** ER_ELEMTEMPLATEELEM_ERR          */\n\n\n    { ER_ELEMTEMPLATEELEM_ERR,\n     \"ElemTemplateElement \\u30a8\\u30e9\\u30fc: {0}\"},\n\n  /** ER_NULL_CHILD          */\n\n\n    { ER_NULL_CHILD,\n     \"\\u30cc\\u30eb\\u306e\\u5b50\\u3092\\u8ffd\\u52a0\\u3057\\u3088\\u3046\\u3068\\u3057\\u3066\\u3044\\u307e\\u3059!\"},\n\n  /** ER_NEED_SELECT_ATTRIB          */\n\n\n    { ER_NEED_SELECT_ATTRIB,\n     \"{0} \\u306b\\u306f select \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NEED_TEST_ATTRIB          */\n\n\n    { ER_NEED_TEST_ATTRIB ,\n      \"xsl:when \\u306b\\u306f 'test' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NEED_NAME_ATTRIB          */\n\n\n    { ER_NEED_NAME_ATTRIB,\n      \"xsl:with-param \\u306b\\u306f 'name' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NO_CONTEXT_OWNERDOC          */\n\n\n    { ER_NO_CONTEXT_OWNERDOC,\n      \"\\u30b3\\u30f3\\u30c6\\u30ad\\u30b9\\u30c8\\u306b\\u6240\\u6709\\u8005\\u6587\\u66f8\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n  /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON          */\n\n\n    {ER_COULD_NOT_CREATE_XML_PROC_LIAISON,\n      \"XML TransformerFactory Liaison \\u3092\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\"},\n\n  /** ER_PROCESS_NOT_SUCCESSFUL          */\n\n\n    {ER_PROCESS_NOT_SUCCESSFUL,\n      \"Xalan: \\u51e6\\u7406\\u306f\\u6210\\u529f\\u3057\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_NOT_SUCCESSFUL          */\n\n\n    { ER_NOT_SUCCESSFUL,\n     \"Xalan: \\u306f\\u6210\\u529f\\u3057\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_ENCODING_NOT_SUPPORTED          */\n\n\n    { ER_ENCODING_NOT_SUPPORTED,\n     \"\\u30a8\\u30f3\\u30b3\\u30fc\\u30c9\\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_COULD_NOT_CREATE_TRACELISTENER          */\n\n\n    {ER_COULD_NOT_CREATE_TRACELISTENER,\n      \"TraceListener \\u3092\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\"},\n\n  /** ER_KEY_REQUIRES_NAME_ATTRIB          */\n\n\n    {ER_KEY_REQUIRES_NAME_ATTRIB,\n      \"xsl:key \\u306b\\u306f 'name' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** ER_KEY_REQUIRES_MATCH_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_MATCH_ATTRIB,\n      \"xsl:key \\u306b\\u306f 'match' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** ER_KEY_REQUIRES_USE_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_USE_ATTRIB,\n      \"xsl:key \\u306b\\u306f 'use' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** ER_REQUIRES_ELEMENTS_ATTRIB          */\n\n\n    { ER_REQUIRES_ELEMENTS_ATTRIB,\n      \"(StylesheetHandler) {0} \\u306b\\u306f ''elements'' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** ER_MISSING_PREFIX_ATTRIB          */\n\n\n    { ER_MISSING_PREFIX_ATTRIB,\n      \"(StylesheetHandler) {0} \\u5c5e\\u6027\\u306e ''prefix'' \\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\"},\n\n  /** ER_BAD_STYLESHEET_URL          */\n\n\n    { ER_BAD_STYLESHEET_URL,\n     \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8 URL \\u304c\\u9593\\u9055\\u3063\\u3066\\u3044\\u307e\\u3059: {0}\"},\n\n  /** ER_FILE_NOT_FOUND          */\n\n\n    { ER_FILE_NOT_FOUND,\n     \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u30fb\\u30d5\\u30a1\\u30a4\\u30eb\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\"},\n\n  /** ER_IOEXCEPTION          */\n\n\n    { ER_IOEXCEPTION,\n      \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u30fb\\u30d5\\u30a1\\u30a4\\u30eb\\u306b\\u3088\\u308b\\u5165\\u51fa\\u529b\\u4f8b\\u5916\\u304c\\u8d77\\u3053\\u308a\\u307e\\u3057\\u305f: {0}\"},\n\n  /** ER_NO_HREF_ATTRIB          */\n\n\n    { ER_NO_HREF_ATTRIB,\n      \"(StylesheetHandler) {0} \\u306e href \\u5c5e\\u6027\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_STYLESHEET_INCLUDES_ITSELF          */\n\n\n    { ER_STYLESHEET_INCLUDES_ITSELF,\n      \"(StylesheetHandler) {0} \\u304c\\u81ea\\u5206\\u81ea\\u8eab\\u3092\\u76f4\\u63a5\\u7684\\u307e\\u305f\\u306f\\u9593\\u63a5\\u7684\\u306b\\u7d44\\u307f\\u8fbc\\u3082\\u3046\\u3068\\u3057\\u3066\\u3044\\u307e\\u3059!\"},\n\n  /** ER_PROCESSINCLUDE_ERROR          */\n\n\n    { ER_PROCESSINCLUDE_ERROR,\n      \"StylesheetHandler.processInclude \\u30a8\\u30e9\\u30fc\\u3001{0}\"},\n\n  /** ER_MISSING_LANG_ATTRIB          */\n\n\n    { ER_MISSING_LANG_ATTRIB,\n      \"(StylesheetHandler) {0} \\u5c5e\\u6027\\u306e ''lang'' \\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\"},\n\n  /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT          */\n\n    { ER_MISSING_CONTAINER_ELEMENT_COMPONENT,\n      \"(StylesheetHandler) {0} \\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u306e\\u5834\\u6240\\u3092\\u9593\\u9055\\u3048\\u305f\\u53ef\\u80fd\\u6027\\u304c\\u3042\\u308a\\u307e\\u3059\\u3002 \\u30b3\\u30f3\\u30c6\\u30ca\\u30fc\\u30fb\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8 ''component'' \\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_CAN_ONLY_OUTPUT_TO_ELEMENT          */\n\n    { ER_CAN_ONLY_OUTPUT_TO_ELEMENT,\n      \"Element\\u3001DocumentFragment\\u3001Document\\u3001\\u307e\\u305f\\u306f PrintWriter \\u3078\\u306e\\u51fa\\u529b\\u3057\\u304b\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_PROCESS_ERROR          */\n\n    { ER_PROCESS_ERROR,\n     \"StylesheetRoot.\\u51e6\\u7406\\u30a8\\u30e9\\u30fc\"},\n\n  /** ER_UNIMPLNODE_ERROR          */\n\n    { ER_UNIMPLNODE_ERROR,\n     \"UnImplNode \\u30a8\\u30e9\\u30fc: {0}\"},\n\n  /** ER_NO_SELECT_EXPRESSION          */\n\n    { ER_NO_SELECT_EXPRESSION,\n      \"\\u30a8\\u30e9\\u30fc! xpath select \\u5f0f (-select) \\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** ER_CANNOT_SERIALIZE_XSLPROCESSOR          */\n\n    { ER_CANNOT_SERIALIZE_XSLPROCESSOR,\n      \"XSLProcessor \\u3092\\u30b7\\u30ea\\u30a2\\u30e9\\u30a4\\u30ba\\u3067\\u304d\\u307e\\u305b\\u3093!\"},\n\n  /** ER_NO_INPUT_STYLESHEET          */\n\n    { ER_NO_INPUT_STYLESHEET,\n      \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u5165\\u529b\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f!\"},\n\n  /** ER_FAILED_PROCESS_STYLESHEET          */\n\n    { ER_FAILED_PROCESS_STYLESHEET,\n      \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u3092\\u51e6\\u7406\\u3059\\u308b\\u3053\\u3068\\u306b\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f!\"},\n\n  /** ER_COULDNT_PARSE_DOC          */\n\n    { ER_COULDNT_PARSE_DOC,\n     \"{0} \\u6587\\u66f8\\u3092\\u69cb\\u6587\\u89e3\\u6790\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f!\"},\n\n  /** ER_COULDNT_FIND_FRAGMENT          */\n\n    { ER_COULDNT_FIND_FRAGMENT,\n     \"\\u30d5\\u30e9\\u30b0\\u30e1\\u30f3\\u30c8\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\"},\n\n  /** ER_NODE_NOT_ELEMENT          */\n\n    { ER_NODE_NOT_ELEMENT,\n      \"\\u30d5\\u30e9\\u30b0\\u30e1\\u30f3\\u30c8 ID \\u306b\\u3088\\u308a\\u6307\\u3055\\u308c\\u3066\\u3044\\u308b\\u30ce\\u30fc\\u30c9\\u304c\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u3067\\u3042\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\"},\n\n  /** ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB,\n      \"for-each \\u306b\\u306f match \\u307e\\u305f\\u306f name \\u306e\\u3044\\u305a\\u308c\\u304b\\u306e\\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB,\n      \"\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u306b\\u306f match \\u307e\\u305f\\u306f name \\u306e\\u3044\\u305a\\u308c\\u304b\\u306e\\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NO_CLONE_OF_DOCUMENT_FRAG          */\n\n    { ER_NO_CLONE_OF_DOCUMENT_FRAG,\n      \"\\u6587\\u66f8\\u30d5\\u30e9\\u30b0\\u30e1\\u30f3\\u30c8\\u306e\\u8907\\u88fd\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n  /** ER_CANT_CREATE_ITEM          */\n\n    { ER_CANT_CREATE_ITEM,\n      \"\\u9805\\u76ee\\u3092\\u7d50\\u679c\\u30c4\\u30ea\\u30fc\\u306b\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VALUE          */\n\n    { ER_XMLSPACE_ILLEGAL_VALUE,\n      \"\\u30bd\\u30fc\\u30b9 XML \\u5185\\u306e xml:space \\u306b\\u306f\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024\\u304c\\u3042\\u308a\\u307e\\u3059: {0}\"},\n\n  /** ER_NO_XSLKEY_DECLARATION          */\n\n    { ER_NO_XSLKEY_DECLARATION,\n      \"{0} \\u306e xsl:key \\u5ba3\\u8a00\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n  /** ER_CANT_CREATE_URL          */\n\n    { ER_CANT_CREATE_URL,\n     \"\\u30a8\\u30e9\\u30fc! {0} \\u306e URL \\u3092\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_XSLFUNCTIONS_UNSUPPORTED          */\n\n    { ER_XSLFUNCTIONS_UNSUPPORTED,\n     \"xsl:functions \\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_PROCESSOR_ERROR          */\n\n    { ER_PROCESSOR_ERROR,\n     \"XSLT TransformerFactory \\u30a8\\u30e9\\u30fc\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_STYLESHEET          */\n\n    { ER_NOT_ALLOWED_INSIDE_STYLESHEET,\n      \"(StylesheetHandler) {0} \\u306f\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u306e\\u5185\\u90e8\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n  /** ER_RESULTNS_NOT_SUPPORTED          */\n\n    { ER_RESULTNS_NOT_SUPPORTED,\n      \"result-ns \\u306f\\u3082\\u3046\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!  \\u4ee3\\u308a\\u306b xsl:output \\u3092\\u4f7f\\u7528\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044\\u3002\"},\n\n  /** ER_DEFAULTSPACE_NOT_SUPPORTED          */\n\n    { ER_DEFAULTSPACE_NOT_SUPPORTED,\n      \"default-space \\u306f\\u3082\\u3046\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!  \\u4ee3\\u308a\\u306b xsl:strip-space \\u307e\\u305f\\u306f xsl:preserve-space \\u3092\\u4f7f\\u7528\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044\\u3002\"},\n\n  /** ER_INDENTRESULT_NOT_SUPPORTED          */\n\n    { ER_INDENTRESULT_NOT_SUPPORTED,\n      \"indent-result \\u306f\\u3082\\u3046\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!  \\u4ee3\\u308a\\u306b xsl:output \\u3092\\u4f7f\\u7528\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044\\u3002\"},\n\n  /** ER_ILLEGAL_ATTRIB          */\n\n    { ER_ILLEGAL_ATTRIB,\n      \"(StylesheetHandler) {0} \\u306b\\u306f\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5c5e\\u6027\\u304c\\u3042\\u308a\\u307e\\u3059: {1}\"},\n\n  /** ER_UNKNOWN_XSL_ELEM          */\n\n    { ER_UNKNOWN_XSL_ELEM,\n     \"\\u4e0d\\u660e\\u306e XSL \\u30a8\\u30ec\\u30e1\\u30f3\\u30c8: {0}\"},\n\n  /** ER_BAD_XSLSORT_USE          */\n\n    { ER_BAD_XSLSORT_USE,\n      \"(StylesheetHandler) xsl:sort \\u306f xsl:apply-templates \\u307e\\u305f\\u306f xsl:for-each \\u3068\\u3057\\u304b\\u4f7f\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_MISPLACED_XSLWHEN          */\n\n    { ER_MISPLACED_XSLWHEN,\n      \"(StylesheetHandler) xsl:when \\u306e\\u5834\\u6240\\u3092\\u8aa4\\u3063\\u3066\\u3044\\u307e\\u3057\\u305f!\"},\n\n  /** ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE,\n      \"(StylesheetHandler) xsl:when \\u304c xsl:choose \\u306b\\u3088\\u308a\\u89aa\\u306b\\u306a\\u3063\\u3066\\u3044\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f!\"},\n\n  /** ER_MISPLACED_XSLOTHERWISE          */\n\n    { ER_MISPLACED_XSLOTHERWISE,\n      \"(StylesheetHandler) xsl:otherwise \\u306e\\u5834\\u6240\\u3092\\u8aa4\\u3063\\u3066\\u3044\\u307e\\u3057\\u305f!\"},\n\n  /** ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE,\n      \"(StylesheetHandler) xsl:otherwise \\u304c xsl:choose \\u306b\\u3088\\u308a\\u89aa\\u306b\\u306a\\u3063\\u3066\\u3044\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f!\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_TEMPLATE          */\n\n    { ER_NOT_ALLOWED_INSIDE_TEMPLATE,\n      \"(StylesheetHandler) {0} \\u306f\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u306e\\u5185\\u90e8\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n  /** ER_UNKNOWN_EXT_NS_PREFIX          */\n\n    { ER_UNKNOWN_EXT_NS_PREFIX,\n      \"(StylesheetHandler) {0} \\u62e1\\u5f35\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u63a5\\u982d\\u90e8 {1} \\u304c\\u4e0d\\u660e\\u3067\\u3059\\u3002\"},\n\n  /** ER_IMPORTS_AS_FIRST_ELEM          */\n\n    { ER_IMPORTS_AS_FIRST_ELEM,\n      \"(StylesheetHandler) \\u30a4\\u30f3\\u30dd\\u30fc\\u30c8\\u306f\\u3001\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u5185\\u306e\\u5148\\u982d\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u3068\\u3057\\u3066\\u306e\\u307f\\u5165\\u308c\\u308b\\u3053\\u3068\\u304c\\u3067\\u304d\\u307e\\u3059!\"},\n\n  /** ER_IMPORTING_ITSELF          */\n\n    { ER_IMPORTING_ITSELF,\n      \"(StylesheetHandler) {0} \\u304c\\u81ea\\u5206\\u81ea\\u8eab\\u3092\\u76f4\\u63a5\\u7684\\u307e\\u305f\\u306f\\u9593\\u63a5\\u7684\\u306b\\u30a4\\u30f3\\u30dd\\u30fc\\u30c8\\u3057\\u3088\\u3046\\u3068\\u3057\\u3066\\u3044\\u307e\\u3059!\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VAL          */\n\n    { ER_XMLSPACE_ILLEGAL_VAL,\n      \"(StylesheetHandler) xml:space \\u306b\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024\\u304c\\u3042\\u308a\\u307e\\u3059: {0}\"},\n\n  /** ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL          */\n\n    { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL,\n      \"processStylesheet \\u306f\\u6210\\u529f\\u3057\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n  /** ER_SAX_EXCEPTION          */\n\n    { ER_SAX_EXCEPTION,\n     \"SAX \\u4f8b\\u5916\"},\n\n  /** ER_FUNCTION_NOT_SUPPORTED          */\n\n\n  /** ER_XSLT_ERROR          */\n\n    { ER_XSLT_ERROR,\n     \"XSLT \\u30a8\\u30e9\\u30fc\"},\n\n  /** ER_CURRENCY_SIGN_ILLEGAL          */\n\n    { ER_CURRENCY_SIGN_ILLEGAL,\n      \"\\u901a\\u8ca8\\u8a18\\u53f7\\u306f\\u66f8\\u5f0f\\u30d1\\u30bf\\u30fc\\u30f3\\u30fb\\u30b9\\u30c8\\u30ea\\u30f3\\u30b0\\u5185\\u3067\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM          */\n\n    { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM,\n      \"\\u6587\\u66f8\\u6a5f\\u80fd\\u306f\\u30b9\\u30bf\\u30a4\\u30eb\\u30fb\\u30b7\\u30fc\\u30c8 DOM \\u3067\\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n  /** ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER          */\n\n    { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER,\n      \"\\u975e\\u63a5\\u982d\\u90e8\\u30ea\\u30be\\u30eb\\u30d0\\u30fc\\u306e\\u63a5\\u982d\\u90e8\\u3092\\u89e3\\u6c7a\\u3067\\u304d\\u307e\\u305b\\u3093!\"},\n\n  /** ER_REDIRECT_COULDNT_GET_FILENAME          */\n\n    { ER_REDIRECT_COULDNT_GET_FILENAME,\n      \"\\u30ea\\u30c0\\u30a4\\u30ec\\u30af\\u30c8\\u62e1\\u5f35: \\u30d5\\u30a1\\u30a4\\u30eb\\u540d\\u3092\\u53d6\\u5f97\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002file \\u307e\\u305f\\u306f select \\u5c5e\\u6027\\u306f\\u6709\\u52b9\\u306a\\u30b9\\u30c8\\u30ea\\u30f3\\u30b0\\u3092\\u623b\\u3055\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT          */\n\n    { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT,\n      \"FormatterListener \\u306f\\u30ea\\u30c0\\u30a4\\u30ec\\u30af\\u30c8\\u62e1\\u5f35\\u5185\\u306b\\u30d3\\u30eb\\u30c9\\u3067\\u304d\\u307e\\u305b\\u3093!\"},\n\n  /** ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX          */\n\n    { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX,\n      \"exclude-result-prefixes \\u5185\\u306e\\u63a5\\u982d\\u90e8\\u304c\\u7121\\u52b9\\u3067\\u3059: {0}\"},\n\n  /** ER_MISSING_NS_URI          */\n\n    { ER_MISSING_NS_URI,\n      \"\\u6307\\u5b9a\\u3055\\u308c\\u305f\\u63a5\\u982d\\u90e8\\u306e\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9 URI \\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_MISSING_ARG_FOR_OPTION          */\n\n    { ER_MISSING_ARG_FOR_OPTION,\n      \"\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3\\u306e\\u5f15\\u304d\\u6570\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_INVALID_OPTION          */\n\n    { ER_INVALID_OPTION,\n     \"\\u7121\\u52b9\\u306a\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3: {0}\"},\n\n  /** ER_MALFORMED_FORMAT_STRING          */\n\n    { ER_MALFORMED_FORMAT_STRING,\n     \"\\u8aa4\\u3063\\u305f\\u5f62\\u5f0f\\u306e\\u66f8\\u5f0f\\u30b9\\u30c8\\u30ea\\u30f3\\u30b0: {0}\"},\n\n  /** ER_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n\n    { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"xsl:stylesheet \\u306b\\u306f 'version' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE_VALUE          */\n\n    { ER_ILLEGAL_ATTRIBUTE_VALUE,\n      \"\\u5c5e\\u6027: {0} \\u306b\\u306f\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n  /** ER_CHOOSE_REQUIRES_WHEN          */\n\n    { ER_CHOOSE_REQUIRES_WHEN,\n     \"xsl:choose \\u306b\\u306f xsl:when \\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** ER_NO_APPLY_IMPORT_IN_FOR_EACH          */\n\n    { ER_NO_APPLY_IMPORT_IN_FOR_EACH,\n      \"xsl:apply-imports \\u306f xsl:for-each \\u5185\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** ER_CANT_USE_DTM_FOR_OUTPUT          */\n\n    { ER_CANT_USE_DTM_FOR_OUTPUT,\n      \"DTMLiaison \\u306f\\u51fa\\u529b DOM \\u30ce\\u30fc\\u30c9\\u306b\\u4f7f\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093... \\u4ee3\\u308a\\u306b org.apache.xpath.DOM2Helper \\u3092\\u6e21\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044!\"},\n\n  /** ER_CANT_USE_DTM_FOR_INPUT          */\n\n    { ER_CANT_USE_DTM_FOR_INPUT,\n      \"DTMLiaison \\u306f\\u5165\\u529b DOM \\u30ce\\u30fc\\u30c9\\u306b\\u4f7f\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093... \\u4ee3\\u308a\\u306b org.apache.xpath.DOM2Helper \\u3092\\u6e21\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044!\"},\n\n  /** ER_CALL_TO_EXT_FAILED          */\n\n    { ER_CALL_TO_EXT_FAILED,\n      \"\\u62e1\\u5f35\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u3078\\u306e\\u547c\\u3073\\u51fa\\u3057\\u304c\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f: {0}\"},\n\n  /** ER_PREFIX_MUST_RESOLVE          */\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"\\u63a5\\u982d\\u90e8\\u306f\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u306b\\u89e3\\u6c7a\\u3055\\u308c\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n  /** ER_INVALID_UTF16_SURROGATE          */\n\n    { ER_INVALID_UTF16_SURROGATE,\n      \"\\u7121\\u52b9\\u306a UTF-16 \\u30b5\\u30ed\\u30b2\\u30fc\\u30c8\\u304c\\u691c\\u51fa\\u3055\\u308c\\u307e\\u3057\\u305f: {0} ?\"},\n\n  /** ER_XSLATTRSET_USED_ITSELF          */\n\n    { ER_XSLATTRSET_USED_ITSELF,\n      \"xsl:attribute-set {0} \\u304c\\u81ea\\u8eab\\u3092\\u4f7f\\u7528\\u3057\\u3066\\u3044\\u308b\\u305f\\u3081\\u3001\\u7121\\u9650\\u30eb\\u30fc\\u30d7\\u306e\\u539f\\u56e0\\u3068\\u306a\\u308a\\u307e\\u3059\\u3002\"},\n\n  /** ER_CANNOT_MIX_XERCESDOM          */\n\n    { ER_CANNOT_MIX_XERCESDOM,\n      \"\\u975e Xerces-DOM \\u5165\\u529b\\u3068 Xerces-DOM \\u51fa\\u529b\\u306f\\u6df7\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093!\"},\n\n  /** ER_TOO_MANY_LISTENERS          */\n\n    { ER_TOO_MANY_LISTENERS,\n      \"addTraceListenersToStylesheet - TooManyListenersException\"},\n\n  /** ER_IN_ELEMTEMPLATEELEM_READOBJECT          */\n\n    { ER_IN_ELEMTEMPLATEELEM_READOBJECT,\n      \"ElemTemplateElement.readObject \\u5185: {0}\"},\n\n  /** ER_DUPLICATE_NAMED_TEMPLATE          */\n\n    { ER_DUPLICATE_NAMED_TEMPLATE,\n      \"\\u6b21\\u306e\\u540d\\u524d\\u306e\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u304c\\u8907\\u6570\\u898b\\u3064\\u304b\\u308a\\u307e\\u3057\\u305f: {0}\"},\n\n  /** ER_INVALID_KEY_CALL          */\n\n    { ER_INVALID_KEY_CALL,\n      \"\\u7121\\u52b9\\u306a\\u95a2\\u6570\\u547c\\u3073\\u51fa\\u3057: \\u518d\\u5e30\\u7684 key() \\u547c\\u3073\\u51fa\\u3057\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** Variable is referencing itself          */\n\n    { ER_REFERENCING_ITSELF,\n      \"\\u5909\\u6570 {0} \\u304c\\u76f4\\u63a5\\u7684\\u307e\\u305f\\u306f\\u9593\\u63a5\\u7684\\u306b\\u81ea\\u5206\\u81ea\\u8eab\\u306b\\u53c2\\u7167\\u3065\\u3051\\u3066\\u3044\\u307e\\u3059!\"},\n\n  /** Illegal DOMSource input          */\n\n    { ER_ILLEGAL_DOMSOURCE_INPUT,\n      \"newTemplates \\u306e DOMSource \\u306e\\u5165\\u529b\\u3092\\u30cc\\u30eb\\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093!\"},\n\n        /** Class not found for option         */\n\n    { ER_CLASS_NOT_FOUND_FOR_OPTION,\n        \"\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3 {0} \\u306e\\u30af\\u30e9\\u30b9\\u30fb\\u30d5\\u30a1\\u30a4\\u30eb\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n        /** Required Element not found         */\n\n    { ER_REQUIRED_ELEM_NOT_FOUND,\n        \"\\u5fc5\\u8981\\u306a\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n  /** InputStream cannot be null         */\n\n    { ER_INPUT_CANNOT_BE_NULL,\n        \"InputStream \\u3092\\u30cc\\u30eb\\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** URI cannot be null         */\n\n    { ER_URI_CANNOT_BE_NULL,\n        \"URI \\u3092\\u30cc\\u30eb\\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** File cannot be null         */\n\n    { ER_FILE_CANNOT_BE_NULL,\n        \"\\u30d5\\u30a1\\u30a4\\u30eb\\u3092\\u30cc\\u30eb\\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** InputSource cannot be null         */\n\n    { ER_SOURCE_CANNOT_BE_NULL,\n                \"InputSource \\u3092\\u30cc\\u30eb\\u306b\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** Can't overwrite cause         */\n\n\n  /** Could not initialize BSF Manager        */\n\n    { ER_CANNOT_INIT_BSFMGR,\n                \"BSF \\u30de\\u30cd\\u30fc\\u30b8\\u30e3\\u30fc\\u3092\\u521d\\u671f\\u5316\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** Could not compile extension       */\n\n    { ER_CANNOT_CMPL_EXTENSN,\n                \"\\u62e1\\u5f35\\u6a5f\\u80fd\\u3092\\u30b3\\u30f3\\u30d1\\u30a4\\u30eb\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** Could not create extension       */\n\n    { ER_CANNOT_CREATE_EXTENSN,\n      \"\\u539f\\u56e0: {1} \\u306e\\u305f\\u3081\\u306b\\u62e1\\u5f35\\u6a5f\\u80fd: {0} \\u3092\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** Instance method call to method {0} requires an Object instance as first argument       */\n\n    { ER_INSTANCE_MTHD_CALL_REQUIRES,\n      \"\\u30e1\\u30bd\\u30c3\\u30c9 {0} \\u3078\\u306e\\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u30fb\\u30e1\\u30bd\\u30c3\\u30c9\\u547c\\u3073\\u51fa\\u3057\\u306b\\u306f\\u30aa\\u30d6\\u30b8\\u30a7\\u30af\\u30c8\\u30fb\\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u304c\\u6700\\u521d\\u306e\\u5f15\\u304d\\u6570\\u3068\\u3057\\u3066\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n  /** Invalid element name specified       */\n\n    { ER_INVALID_ELEMENT_NAME,\n      \"\\u7121\\u52b9\\u306a\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u540d\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u307e\\u3057\\u305f: {0}\"},\n\n   /** Element name method must be static      */\n\n    { ER_ELEMENT_NAME_METHOD_STATIC,\n      \"\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u540d\\u30e1\\u30bd\\u30c3\\u30c9\\u306f\\u9759\\u7684\\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n   /** Extension function {0} : {1} is unknown      */\n\n    { ER_EXTENSION_FUNC_UNKNOWN,\n             \"\\u62e1\\u5f35\\u6a5f\\u80fd {0} : {1} \\u304c\\u4e0d\\u660e\\u3067\\u3059\\u3002\"},\n\n   /** More than one best match for constructor for       */\n\n    { ER_MORE_MATCH_CONSTRUCTOR,\n             \"{0} \\u306e\\u30b3\\u30f3\\u30b9\\u30c8\\u30e9\\u30af\\u30bf\\u30fc\\u306e\\u6700\\u9069\\u4e00\\u81f4\\u304c\\u8907\\u6570\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n   /** More than one best match for method      */\n\n    { ER_MORE_MATCH_METHOD,\n             \"\\u30e1\\u30bd\\u30c3\\u30c9 {0} \\u306e\\u6700\\u9069\\u4e00\\u81f4\\u304c\\u8907\\u6570\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n   /** More than one best match for element method      */\n\n    { ER_MORE_MATCH_ELEMENT,\n             \"\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u30fb\\u30e1\\u30bd\\u30c3\\u30c9 {0} \\u306e\\u6700\\u9069\\u4e00\\u81f4\\u304c\\u8907\\u6570\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n   /** Invalid context passed to evaluate       */\n\n    { ER_INVALID_CONTEXT_PASSED,\n             \"{0} \\u3092\\u8a55\\u4fa1\\u3059\\u308b\\u305f\\u3081\\u306b\\u6e21\\u3055\\u308c\\u305f\\u30b3\\u30f3\\u30c6\\u30ad\\u30b9\\u30c8\\u304c\\u7121\\u52b9\\u3067\\u3059\\u3002\"},\n\n   /** Pool already exists       */\n\n    { ER_POOL_EXISTS,\n             \"\\u30d7\\u30fc\\u30eb\\u306f\\u3059\\u3067\\u306b\\u5b58\\u5728\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n   /** No driver Name specified      */\n\n    { ER_NO_DRIVER_NAME,\n             \"\\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u540d\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** No URL specified     */\n\n    { ER_NO_URL,\n             \"URL \\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** Pool size is less than one    */\n\n    { ER_POOL_SIZE_LESSTHAN_ONE,\n             \"\\u30d7\\u30fc\\u30eb\\u30fb\\u30b5\\u30a4\\u30ba\\u304c 1 \\u3088\\u308a\\u5c0f\\u3067\\u3059!\"},\n\n   /** Invalid driver name specified    */\n\n    { ER_INVALID_DRIVER,\n             \"\\u7121\\u52b9\\u306a\\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u540d\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u307e\\u3057\\u305f!\"},\n\n   /** Did not find the stylesheet root    */\n\n    { ER_NO_STYLESHEETROOT,\n             \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u306e\\u30eb\\u30fc\\u30c8\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f!\"},\n\n   /** Illegal value for xml:space     */\n\n    { ER_ILLEGAL_XMLSPACE_VALUE,\n         \"xml:space \\u306e\\u5024\\u304c\\u6b63\\u3057\\u304f\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** processFromNode failed     */\n\n    { ER_PROCESSFROMNODE_FAILED,\n         \"processFromNode \\u304c\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f\\u3002\"},\n\n   /** The resource [] could not load:     */\n\n    { ER_RESOURCE_COULD_NOT_LOAD,\n        \"\\u30ea\\u30bd\\u30fc\\u30b9 [ {0} ] \\u3092\\u30ed\\u30fc\\u30c9\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {1} \\n {2} \\t {3}\"},\n\n\n   /** Buffer size <=0     */\n\n    { ER_BUFFER_SIZE_LESSTHAN_ZERO,\n        \"\\u30d0\\u30c3\\u30d5\\u30a1\\u30fc\\u30fb\\u30b5\\u30a4\\u30ba <=0\"},\n\n   /** Unknown error when calling extension    */\n\n    { ER_UNKNOWN_ERROR_CALLING_EXTENSION,\n        \"\\u30a8\\u30af\\u30b9\\u30c6\\u30f3\\u30b7\\u30e7\\u30f3\\u3092\\u547c\\u3073\\u51fa\\u3057\\u6642\\u306b\\u4e0d\\u660e\\u30a8\\u30e9\\u30fc\"},\n\n   /** Prefix {0} does not have a corresponding namespace declaration    */\n\n    { ER_NO_NAMESPACE_DECL,\n        \"\\u63a5\\u982d\\u90e8 {0} \\u306b\\u306f\\u5bfe\\u5fdc\\u3057\\u3066\\u3044\\u308b\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u5ba3\\u8a00\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** Element content not allowed for lang=javaclass   */\n\n    { ER_ELEM_CONTENT_NOT_ALLOWED,\n        \"\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u306e\\u30b3\\u30f3\\u30c6\\u30f3\\u30c4\\u306f lang=javaclass {0} \\u306e\\u5834\\u5408\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** Stylesheet directed termination   */\n\n    { ER_STYLESHEET_DIRECTED_TERMINATION,\n        \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u3067\\u7d42\\u4e86\\u304c\\u6307\\u56f3\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002\"},\n\n   /** 1 or 2   */\n\n    { ER_ONE_OR_TWO,\n        \"1 \\u307e\\u305f\\u306f 2\"},\n\n   /** 2 or 3   */\n\n    { ER_TWO_OR_THREE,\n        \"2 \\u307e\\u305f\\u306f 3\"},\n\n   /** Could not load {0} (check CLASSPATH), now using just the defaults   */\n\n    { ER_COULD_NOT_LOAD_RESOURCE,\n        \"{0} \\u3092\\u30ed\\u30fc\\u30c9\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f (CLASSPATH \\u3092\\u8abf\\u3079\\u3066\\u304f\\u3060\\u3055\\u3044)\\u3002\\u73fe\\u5728\\u306f\\u307e\\u3055\\u306b\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u3092\\u4f7f\\u7528\\u4e2d\\u3067\\u3059\\u3002\"},\n\n   /** Cannot initialize default templates   */\n\n    { ER_CANNOT_INIT_DEFAULT_TEMPLATES,\n        \"\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u30fb\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u3092\\u521d\\u671f\\u5316\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** Result should not be null   */\n\n    { ER_RESULT_NULL,\n        \"\\u7d50\\u679c\\u306f\\u30cc\\u30eb\\u306b\\u306f\\u306a\\u3089\\u306a\\u3044\\u306f\\u305a\\u3067\\u3059\\u3002\"},\n\n   /** Result could not be set   */\n\n    { ER_RESULT_COULD_NOT_BE_SET,\n        \"\\u7d50\\u679c\\u3092\\u8a2d\\u5b9a\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n   /** No output specified   */\n\n    { ER_NO_OUTPUT_SPECIFIED,\n        \"\\u51fa\\u529b\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n   /** Can't transform to a Result of type   */\n\n    { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE,\n        \"\\u30bf\\u30a4\\u30d7 {0} \\u306e\\u7d50\\u679c\\u306b\\u5909\\u63db\\u3067\\u304d\\u307e\\u305b\\u3093\"},\n\n   /** Can't transform to a Source of type   */\n\n    { ER_CANNOT_TRANSFORM_SOURCE_TYPE,\n        \"\\u30bf\\u30a4\\u30d7 {0} \\u306e\\u30bd\\u30fc\\u30b9\\u3092\\u5909\\u63db\\u3067\\u304d\\u307e\\u305b\\u3093\"},\n\n   /** Null content handler  */\n\n    { ER_NULL_CONTENT_HANDLER,\n        \"\\u30cc\\u30eb\\u306e\\u30b3\\u30f3\\u30c6\\u30f3\\u30c4\\u30fb\\u30cf\\u30f3\\u30c9\\u30e9\\u30fc\"},\n\n   /** Null error handler  */\n    { ER_NULL_ERROR_HANDLER,\n        \"\\u30cc\\u30eb\\u306e\\u30a8\\u30e9\\u30fc\\u30fb\\u30cf\\u30f3\\u30c9\\u30e9\\u30fc\"},\n\n   /** parse can not be called if the ContentHandler has not been set */\n\n    { ER_CANNOT_CALL_PARSE,\n        \"ContentHandler \\u304c\\u672a\\u8a2d\\u5b9a\\u306e\\u5834\\u5408\\u306f parse \\u306e\\u547c\\u3073\\u51fa\\u3057\\u306f\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n   /**  No parent for filter */\n\n    { ER_NO_PARENT_FOR_FILTER,\n        \"\\u30d5\\u30a3\\u30eb\\u30bf\\u30fc\\u306e\\u89aa\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n\n   /**  No stylesheet found in: {0}, media */\n\n    { ER_NO_STYLESHEET_IN_MEDIA,\n         \"\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u304c {0}\\u3001\\u30e1\\u30c7\\u30a3\\u30a2= {1} \\u306b\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n   /**  No xml-stylesheet PI found in */\n\n    { ER_NO_STYLESHEET_PI,\n         \"XML \\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8 PI \\u304c {0} \\u306b\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n   /**  No default implementation found */\n\n\n   /**  ChunkedIntArray({0}) not currently supported */\n\n\n   /**  Offset bigger than slot */\n\n\n   /**  Coroutine not available, id= */\n\n\n   /**  CoroutineManager recieved co_exit() request */\n\n\n   /**  co_joinCoroutineSet() failed */\n\n\n   /**  Coroutine parameter error () */\n\n\n   /**  UNEXPECTED: Parser doTerminate answers  */\n\n\n   /**  parse may not be called while parsing */\n\n\n   /**  Error: typed iterator for axis  {0} not implemented  */\n\n\n   /**  Error: iterator for axis {0} not implemented  */\n\n\n   /**  Iterator clone not supported  */\n\n\n   /**  Unknown axis traversal type  */\n\n\n   /**  Axis traverser not supported  */\n\n\n   /**  No more DTM IDs are available  */\n\n\n   /**  Not supported  */\n\n    { ER_NOT_SUPPORTED,\n       \"\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093: {0}\"},\n\n   /**  node must be non-null for getDTMHandleFromNode  */\n\n\n   /**  Could not resolve the node to a handle  */\n\n\n   /**  startParse may not be called while parsing */\n\n\n   /**  startParse needs a non-null SAXParser  */\n\n\n   /**  could not initialize parser with */\n\n   /**  Value for property {0} should be a Boolean instance  */\n\n    { ER_PROPERTY_VALUE_BOOLEAN,\n       \"\\u30d7\\u30ed\\u30d1\\u30c6\\u30a3\\u30fc {0} \\u306e\\u5024\\u306f\\u30d6\\u30fc\\u30eb\\u30fb\\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u306b\\u3059\\u308b\\u5fc5\\u8981\\u304c\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n   /**  exception creating new instance for pool  */\n\n\n   /**  Path contains invalid escape sequence  */\n\n\n   /**  Scheme is required!  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  Path contains invalid character:   */\n\n\n   /**  Cannot set scheme from null string  */\n\n\n   /**  The scheme is not conformant. */\n\n\n   /**  Host is not a well formed address  */\n\n\n   /**  Port cannot be set when host is null  */\n\n\n   /**  Invalid port number  */\n\n\n   /**  Fragment can only be set for a generic URI  */\n\n\n   /**  Fragment cannot be set when path is null  */\n\n\n   /**  Fragment contains invalid character  */\n\n\n\n\n   /** Parser is already in use  */\n\n\n   /** Parser is already in use  */\n\n\n   /** Self-causation not permitted  */\n\n\n   /** src attribute not yet supported for  */\n\n    { ER_COULD_NOT_FIND_EXTERN_SCRIPT,\n         \"{0} \\u306e\\u5916\\u90e8\\u30b9\\u30af\\u30ea\\u30d7\\u30c8\\u3078\\u5230\\u9054\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** The resource [] could not be found     */\n\n    { ER_RESOURCE_COULD_NOT_FIND,\n        \"\\u30ea\\u30bd\\u30fc\\u30b9 [ {0} ] \\u306f\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\\n {1}\"},\n\n   /** output property not recognized:  */\n\n    { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED,\n        \"\\u51fa\\u529b\\u30d7\\u30ed\\u30d1\\u30c6\\u30a3\\u30fc\\u306f\\u8a8d\\u8b58\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093: {0}\"},\n\n   /** Userinfo may not be specified if host is not specified   */\n\n\n   /** Port may not be specified if host is not specified   */\n\n\n   /** Query string cannot be specified in path and query string   */\n\n\n   /** Fragment cannot be specified in both the path and fragment   */\n\n\n   /** Cannot initialize URI with empty parameters   */\n\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMLITRSLT,\n        \"ElemLiteralResult \\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u306e\\u4f5c\\u6210\\u304c\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f\\u3002\"},\n\n\n   /** Priority value does not contain a parsable number   */\n\n    { ER_VALUE_SHOULD_BE_NUMBER,\n        \"{0} \\u306e\\u5024\\u306b\\u306f\\u69cb\\u6587\\u89e3\\u6790\\u53ef\\u80fd\\u756a\\u53f7\\u304c\\u542b\\u307e\\u308c\\u3066\\u3044\\u308b\\u306f\\u305a\\u3067\\u3059\\u3002\"},\n\n   /**  Value for {0} should equal 'yes' or 'no'   */\n\n    { ER_VALUE_SHOULD_EQUAL,\n        \"{0} \\u306e\\u5024\\u306f yes \\u307e\\u305f\\u306f no \\u3068\\u7b49\\u3057\\u304f\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n   /**  Failed calling {0} method   */\n\n    { ER_FAILED_CALLING_METHOD,\n        \"{0} \\u30e1\\u30bd\\u30c3\\u30c9\\u306e\\u547c\\u3073\\u51fa\\u3057\\u304c\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f\\u3002\"},\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMTMPL,\n        \"ElemTemplateElement \\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u306e\\u4f5c\\u6210\\u304c\\u5931\\u6557\\u3057\\u307e\\u3057\\u305f\\u3002\"},\n\n   /**  Characters are not allowed at this point in the document   */\n\n    { ER_CHARS_NOT_ALLOWED,\n        \"\\u6587\\u5b57\\u306f\\u6587\\u66f8\\u5185\\u306e\\u3053\\u306e\\u30dd\\u30a4\\u30f3\\u30c8\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /**  attribute is not allowed on the element   */\n    { ER_ATTR_NOT_ALLOWED,\n        \"\\\"{0}\\\" \\u5c5e\\u6027\\u306f {1} \\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n  /**  Method not yet supported    */\n\n\n  /**  Bad value    */\n\n    { ER_BAD_VALUE,\n     \"{0} \\u306e\\u9593\\u9055\\u3063\\u305f\\u5024 {1} \"},\n\n  /**  attribute value not found   */\n\n    { ER_ATTRIB_VALUE_NOT_FOUND,\n     \"{0} \\u5c5e\\u6027\\u5024\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002 \"},\n\n  /**  attribute value not recognized    */\n\n    { ER_ATTRIB_VALUE_NOT_RECOGNIZED,\n     \"{0} \\u5c5e\\u6027\\u5024\\u306f\\u8a8d\\u8b58\\u3055\\u308c\\u307e\\u305b\\u3093\\u3002 \"},\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NULL_URI_NAMESPACE,\n     \"\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u63a5\\u982d\\u90e8\\u3092\\u30cc\\u30eb\\u306e URI \\u3067\\u751f\\u6210\\u3057\\u3088\\u3046\\u3068\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NUMBER_TOO_BIG,\n     \"\\u6700\\u5927 Long \\u6574\\u6570\\u3088\\u308a\\u5927\\u304d\\u3044\\u6570\\u3092\\u30d5\\u30a9\\u30fc\\u30de\\u30c3\\u30c8\\u3057\\u3088\\u3046\\u3068\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n\n\n    { ER_CANNOT_FIND_SAX1_DRIVER,\n     \"SAX1 \\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u30fb\\u30af\\u30e9\\u30b9 {0} \\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n\n    { ER_SAX1_DRIVER_NOT_LOADED,\n     \"SAX1 \\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u30fb\\u30af\\u30e9\\u30b9 {0} \\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u3057\\u305f\\u304c\\u30ed\\u30fc\\u30c9\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n\n    { ER_SAX1_DRIVER_NOT_INSTANTIATED,\n     \"SAX1 \\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u30fb\\u30af\\u30e9\\u30b9 {0} \\u304c\\u30ed\\u30fc\\u30c9\\u3055\\u308c\\u307e\\u3057\\u305f\\u304c\\u30a4\\u30f3\\u30b9\\u30bf\\u30f3\\u30b9\\u751f\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n\n\n    { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER,\n     \"SAX1 \\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u30fb\\u30af\\u30e9\\u30b9 {0} \\u304c org.xml.sax.Parser \\u3092\\u30a4\\u30f3\\u30d7\\u30ea\\u30e1\\u30f3\\u30c8\\u3057\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n\n    { ER_PARSER_PROPERTY_NOT_SPECIFIED,\n     \"\\u30b7\\u30b9\\u30c6\\u30e0\\u30fb\\u30d7\\u30ed\\u30d1\\u30c6\\u30a3\\u30fc org.xml.sax.parser \\u306f\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n\n    { ER_PARSER_ARG_CANNOT_BE_NULL,\n     \"\\u30d1\\u30fc\\u30b5\\u30fc\\u306e\\u5f15\\u304d\\u6570\\u3092\\u30cc\\u30eb\\u306b\\u3057\\u3066\\u306f\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n\n\n    { ER_FEATURE,\n     \"\\u30d5\\u30a3\\u30fc\\u30c1\\u30e3\\u30fc: {0}\"},\n\n\n\n    { ER_PROPERTY,\n     \"\\u30d7\\u30ed\\u30d1\\u30c6\\u30a3\\u30fc: {0}\"},\n\n\n    { ER_NULL_ENTITY_RESOLVER,\n     \"\\u30cc\\u30eb\\u30fb\\u30a8\\u30f3\\u30c6\\u30a3\\u30c6\\u30a3\\u30fc\\u30fb\\u30ea\\u30be\\u30eb\\u30d0\\u30fc\"},\n\n\n    { ER_NULL_DTD_HANDLER,\n     \"\\u30cc\\u30eb DTD \\u30cf\\u30f3\\u30c9\\u30e9\\u30fc\"},\n\n    { ER_NO_DRIVER_NAME_SPECIFIED,\n     \"\\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u540d\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n\n    { ER_NO_URL_SPECIFIED,\n     \"URL \\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093!\"},\n\n\n    { ER_POOLSIZE_LESS_THAN_ONE,\n     \"\\u30d7\\u30fc\\u30eb\\u30fb\\u30b5\\u30a4\\u30ba\\u304c 1 \\u3088\\u308a\\u5c0f\\u3067\\u3059!\"},\n\n\n    { ER_INVALID_DRIVER_NAME,\n     \"\\u7121\\u52b9\\u306a\\u30c9\\u30e9\\u30a4\\u30d0\\u30fc\\u540d\\u304c\\u6307\\u5b9a\\u3055\\u308c\\u307e\\u3057\\u305f!\"},\n\n\n\n    { ER_ERRORLISTENER,\n     \"ErrorListener\"},\n\n\n    { ER_ASSERT_NO_TEMPLATE_PARENT,\n     \"\\u30d7\\u30ed\\u30b0\\u30e9\\u30de\\u30fc\\u306e\\u30a8\\u30e9\\u30fc! expr \\u306b\\u306f ElemTemplateElement \\u89aa\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n\n    { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR,\n     \"RedundentExprEliminator \\u5185\\u306e\\u30d7\\u30ed\\u30b0\\u30e9\\u30de\\u30fc\\u306e\\u30a2\\u30b5\\u30fc\\u30b7\\u30e7\\u30f3: {0}\"},\n\n\n\n    { ER_NOT_ALLOWED_IN_POSITION,\n     \"{0} \\u306f\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u306e\\u3053\\u306e\\u4f4d\\u7f6e\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u307e\\u305b\\u3093!\"},\n\n    { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,\n     \"\\u7a7a\\u767d\\u6587\\u5b57\\u4ee5\\u5916\\u306e\\u30c6\\u30ad\\u30b9\\u30c8\\u306f\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u306e\\u3053\\u306e\\u4f4d\\u7f6e\\u3067\\u306f\\u8a31\\u53ef\\u3055\\u308c\\u307e\\u305b\\u3093!\"},\n\n    { INVALID_TCHAR,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c CHAR \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002CHAR \\u30bf\\u30a4\\u30d7\\u306e\\u5c5e\\u6027\\u306f 1 \\u6587\\u5b57\\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093!\"},\n\n\n\n\n    { INVALID_QNAME,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c QNAME \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002\"},\n\n\n    { INVALID_ENUM,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c ENUM \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002  \\u6709\\u52b9\\u5024: {2}\\u3002\"},\n\n\n    { INVALID_NMTOKEN,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c NMTOKEN \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002 \"},\n\n\n    { INVALID_NCNAME,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c NCNAME \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002 \"},\n\n\n\n    { INVALID_BOOLEAN,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c boolean \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002 \"},\n\n\n     { INVALID_NUMBER,\n     \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5024: {1} \\u304c number \\u5c5e\\u6027: {0} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002 \"},\n\n\n\n\n    { ER_ARG_LITERAL,\n     \"\\u30de\\u30c3\\u30c1\\u30f3\\u30b0\\u30fb\\u30d1\\u30bf\\u30fc\\u30f3\\u306e {0} \\u3078\\u306e\\u5f15\\u304d\\u6570\\u306f\\u30ea\\u30c6\\u30e9\\u30eb\\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n\n    { ER_DUPLICATE_GLOBAL_VAR,\n     \"\\u30b0\\u30ed\\u30fc\\u30d0\\u30eb\\u5909\\u6570\\u5ba3\\u8a00\\u304c\\u91cd\\u8907\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n\n\n    { ER_DUPLICATE_VAR,\n     \"\\u5909\\u6570\\u5ba3\\u8a00\\u304c\\u91cd\\u8907\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n\n    { ER_TEMPLATE_NAME_MATCH,\n     \"xsl:template \\u306b\\u306f name \\u307e\\u305f\\u306f match \\u5c5e\\u6027 (\\u3042\\u308b\\u3044\\u306f\\u305d\\u306e\\u4e21\\u65b9) \\u304c\\u5fc5\\u8981\\u3067\\u3059\\u3002\"},\n\n\n    { ER_INVALID_PREFIX,\n     \"exclude-result-prefixes \\u5185\\u306e\\u63a5\\u982d\\u90e8\\u304c\\u7121\\u52b9\\u3067\\u3059: {0}\"},\n\n\n    { ER_NO_ATTRIB_SET,\n     \"{0} \\u3068\\u3044\\u3046\\u540d\\u524d\\u306e attribute-set \\u304c\\u5b58\\u5728\\u3057\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n\n\n\n\n\n  /** WG_FOUND_CURLYBRACE          */\n    { WG_FOUND_CURLYBRACE,\n      \"'}' \\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u3057\\u305f\\u304c\\u3001\\u30aa\\u30fc\\u30d7\\u30f3\\u3055\\u308c\\u305f\\u5c5e\\u6027\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093!\"},\n\n  /** WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR          */\n\n    { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,\n      \"\\u8b66\\u544a: count \\u5c5e\\u6027\\u304c xsl:number \\u5185\\u306e\\u4e0a\\u4f4d\\u3068\\u4e00\\u81f4\\u3057\\u307e\\u305b\\u3093! \\u30bf\\u30fc\\u30b2\\u30c3\\u30c8 = {0}\"},\n\n  /** WG_EXPR_ATTRIB_CHANGED_TO_SELECT          */\n\n    { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,\n      \"\\u65e7\\u69cb\\u6587: 'expr' \\u5c5e\\u6027\\u306e\\u540d\\u524d\\u304c 'select' \\u306b\\u5909\\u66f4\\u3055\\u308c\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n  /** WG_NO_LOCALE_IN_FORMATNUMBER          */\n\n    { WG_NO_LOCALE_IN_FORMATNUMBER,\n      \"Xalan \\u306f\\u30d5\\u30a9\\u30fc\\u30de\\u30c3\\u30c8\\u756a\\u53f7\\u95a2\\u6570\\u5185\\u3067\\u307e\\u3060\\u30ed\\u30b1\\u30fc\\u30eb\\u540d\\u3092\\u51e6\\u7406\\u3057\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** WG_LOCALE_NOT_FOUND          */\n\n    { WG_LOCALE_NOT_FOUND,\n      \"\\u8b66\\u544a: xml:lang={0} \\u306e\\u30ed\\u30b1\\u30fc\\u30eb\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** WG_CANNOT_MAKE_URL_FROM          */\n\n    { WG_CANNOT_MAKE_URL_FROM,\n      \"URL \\u3092 {0} \\u304b\\u3089\\u4f5c\\u6210\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** WG_CANNOT_LOAD_REQUESTED_DOC          */\n\n    { WG_CANNOT_LOAD_REQUESTED_DOC,\n      \"\\u8981\\u6c42\\u3055\\u308c\\u305f doc: {0} \\u3092\\u30ed\\u30fc\\u30c9\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** WG_CANNOT_FIND_COLLATOR          */\n    { WG_CANNOT_FIND_COLLATOR,\n      \"<sort xml:lang={0} \\u306e\\u30b3\\u30ec\\u30fc\\u30bf\\u30fc\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n\n  /** WG_FUNCTIONS_SHOULD_USE_URL          */\n\n    { WG_FUNCTIONS_SHOULD_USE_URL,\n      \"\\u65e7\\u69cb\\u6587: \\u95a2\\u6570\\u547d\\u4ee4\\u3067\\u306f {0} \\u306e URL \\u3092\\u4f7f\\u7528\\u3059\\u308b\\u5fc5\\u8981\\u304c\\u3042\\u308a\\u307e\\u3059\\u3002\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_UTF8          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,\n      \"\\u30a8\\u30f3\\u30b3\\u30fc\\u30c9\\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u307e\\u305b\\u3093: {0}\\u3001UTF-8 \\u3092\\u4f7f\\u7528\\u4e2d\\u3002\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_JAVA          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,\n      \"\\u30a8\\u30f3\\u30b3\\u30fc\\u30c9\\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u307e\\u305b\\u3093: {0}\\u3001Java {1} \\u3092\\u4f7f\\u7528\\u4e2d\\u3002\"},\n\n  /** WG_SPECIFICITY_CONFLICTS          */\n\n    { WG_SPECIFICITY_CONFLICTS,\n      \"\\u9650\\u5b9a\\u6027\\u306e\\u77db\\u76fe\\u304c\\u691c\\u51fa\\u3055\\u308c\\u307e\\u3057\\u305f: {0} \\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u5185\\u3067\\u6700\\u5f8c\\u306b\\u691c\\u51fa\\u3055\\u308c\\u305f\\u3082\\u306e\\u304c\\u4f7f\\u7528\\u3055\\u308c\\u307e\\u3059\\u3002\"},\n\n  /** WG_PARSING_AND_PREPARING          */\n\n    { WG_PARSING_AND_PREPARING,\n      \"========= {0} \\u3092\\u69cb\\u6587\\u89e3\\u6790\\u4e2d\\u304a\\u3088\\u3073\\u6e96\\u5099\\u4e2d ==========\"},\n\n  /** WG_ATTR_TEMPLATE          */\n\n    { WG_ATTR_TEMPLATE,\n     \"\\u5c5e\\u6027\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8 {0}\"},\n\n  /** WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE          */\n\n    { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,\n      \"xsl:strip-space \\u3068 xsl:preserve-space \\u306e\\u9593\\u306e\\u30de\\u30c3\\u30c1\\u30f3\\u30b0\\u306e\\u77db\\u76fe\"},\n\n  /** WG_ATTRIB_NOT_HANDLED          */\n\n    { WG_ATTRIB_NOT_HANDLED,\n      \"Xalan \\u306f\\u307e\\u3060 {0} \\u5c5e\\u6027\\u3092\\u51e6\\u7406\\u3057\\u307e\\u305b\\u3093!\"},\n\n  /** WG_NO_DECIMALFORMAT_DECLARATION          */\n\n    { WG_NO_DECIMALFORMAT_DECLARATION,\n      \"10 \\u9032\\u6570\\u5f62\\u5f0f\\u306e\\u5ba3\\u8a00\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n  /** WG_OLD_XSLT_NS          */\n\n    { WG_OLD_XSLT_NS,\n     \"XSLT \\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u304c\\u306a\\u3044\\u304b\\u8aa4\\u3063\\u3066\\u3044\\u307e\\u3059\\u3002\"},\n\n  /** WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED          */\n\n    { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,\n      \"\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u306e xsl:decimal-format \\u5ba3\\u8a00\\u306f 1 \\u3064\\u3057\\u304b\\u8a31\\u53ef\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE          */\n\n    { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,\n      \"xsl:decimal-format \\u540d\\u306f\\u56fa\\u6709\\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002 \\u540d\\u524d \\\"{0}\\\" \\u304c\\u91cd\\u8907\\u3057\\u3066\\u3044\\u307e\\u3057\\u305f\\u3002\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE          */\n\n    { WG_ILLEGAL_ATTRIBUTE,\n      \"{0} \\u306b\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5c5e\\u6027\\u304c\\u3042\\u308a\\u307e\\u3059: {1}\"},\n\n  /** WG_COULD_NOT_RESOLVE_PREFIX          */\n\n    { WG_COULD_NOT_RESOLVE_PREFIX,\n      \"\\u30cd\\u30fc\\u30e0\\u30fb\\u30b9\\u30da\\u30fc\\u30b9\\u63a5\\u982d\\u90e8\\u3092\\u89e3\\u6c7a\\u3067\\u304d\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f: {0}\\u3002 \\u30ce\\u30fc\\u30c9\\u306f\\u7121\\u8996\\u3055\\u308c\\u307e\\u3059\\u3002\"},\n\n  /** WG_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n    { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"xsl:stylesheet \\u306b\\u306f 'version' \\u5c5e\\u6027\\u304c\\u5fc5\\u8981\\u3067\\u3059!\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_NAME          */\n\n    { WG_ILLEGAL_ATTRIBUTE_NAME,\n      \"\\u6b63\\u3057\\u304f\\u306a\\u3044\\u5c5e\\u6027\\u540d: {0}\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_VALUE          */\n    { WG_ILLEGAL_ATTRIBUTE_VALUE,\n      \"\\u5c5e\\u6027 {0}: {1} \\u306b\\u4f7f\\u7528\\u3055\\u308c\\u305f\\u5024\\u306f\\u6b63\\u3057\\u304f\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n  /** WG_EMPTY_SECOND_ARG          */\n\n    { WG_EMPTY_SECOND_ARG,\n      \"\\u6587\\u66f8\\u6a5f\\u80fd\\u306e 2 \\u756a\\u76ee\\u306e\\u5f15\\u304d\\u6570\\u304b\\u3089\\u5f97\\u3089\\u308c\\u305f nodeset \\u304c\\u7a7a\\u3067\\u3059\\u3002\\u7a7a\\u306e node-set \\u3092\\u623b\\u3057\\u307e\\u3059\\u3002\"},\n\n\n\n\n  /** WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n    { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"xsl:processing-instruction \\u540d\\u306e 'name' \\u5c5e\\u6027\\u306e\\u5024\\u306f 'xml' \\u3067\\u3042\\u3063\\u3066\\u306f\\u306a\\u308a\\u307e\\u305b\\u3093\\u3002\"},\n\n\n  /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n    { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"xsl:processing-instruction \\u306e 'name' \\u5c5e\\u6027\\u306e\\u5024\\u306f\\u6709\\u52b9\\u306a NCName \\u3067\\u306a\\u3051\\u308c\\u3070\\u306a\\u308a\\u307e\\u305b\\u3093: {0}\"},\n\n\n  /** WG_ILLEGAL_ATTRIBUTE_POSITION         */\n    { WG_ILLEGAL_ATTRIBUTE_POSITION,\n      \"\\u4e0b\\u4f4d\\u30ce\\u30fc\\u30c9\\u306e\\u5f8c\\u307e\\u305f\\u306f\\u30a8\\u30ec\\u30e1\\u30f3\\u30c8\\u304c\\u751f\\u6210\\u3055\\u308c\\u308b\\u524d\\u306b\\u5c5e\\u6027 {0} \\u3092\\u8ffd\\u52a0\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\\u5c5e\\u6027\\u306f\\u7121\\u8996\\u3055\\u308c\\u307e\\u3059\\u3002\"},\n\n\n  { \"ui_language\", \"en\"},\n  {  \"help_language\",  \"en\" },\n  {  \"language\",  \"en\" },\n  { \"BAD_CODE\", \"createMessage \\u3078\\u306e\\u30d1\\u30e9\\u30e1\\u30fc\\u30bf\\u30fc\\u304c\\u5883\\u754c\\u5916\\u3067\\u3057\\u305f\\u3002\"},\n  {  \"FORMAT_FAILED\", \"messageFormat \\u547c\\u3073\\u51fa\\u3057\\u4e2d\\u306b\\u4f8b\\u5916\\u304c\\u30b9\\u30ed\\u30fc\\u3055\\u308c\\u307e\\u3057\\u305f\\u3002\"},\n  {  \"version\", \">>>>>>> Xalan \\u30d0\\u30fc\\u30b8\\u30e7\\u30f3 \"},\n  {  \"version2\",  \"<<<<<<<\"},\n  {  \"yes\", \"\\u306f\\u3044\"},\n  { \"line\", \"\\u884c #\"},\n  { \"column\",\"\\u6841 #\"},\n  { \"xsldone\", \"XSLProcessor: \\u5b8c\\u4e86\"},\n\n\n  { \"xslProc_option\", \"Xalan-J \\u30b3\\u30de\\u30f3\\u30c9\\u884c Process \\u30af\\u30e9\\u30b9\\u30fb\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3\"},\n  { \"xslProc_option\", \"Xalan-J \\u30b3\\u30de\\u30f3\\u30c9\\u884c Process \\u30af\\u30e9\\u30b9\\u30fb\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3\\u003a\"},\n  { \"xslProc_invalid_xsltc_option\", \"\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3 {0} \\u306f XSLTC \\u30e2\\u30fc\\u30c9\\u3067\\u306f\\u30b5\\u30dd\\u30fc\\u30c8\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002\"},\n  { \"xslProc_invalid_xalan_option\", \"\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3 {0} \\u306f -XSLTC \\u3068\\u4e00\\u7dd2\\u306b\\u3057\\u304b\\u4f7f\\u7528\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"},\n  { \"xslProc_no_input\", \"\\u30a8\\u30e9\\u30fc: \\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u304c\\u306a\\u3044\\u304b\\u5165\\u529b xml \\u304c\\u6307\\u5b9a\\u3055\\u308c\\u3066\\u3044\\u307e\\u305b\\u3093\\u3002 \\u4f7f\\u7528\\u6cd5\\u306e\\u8aac\\u660e\\u306b\\u3064\\u3044\\u3066\\u306f\\u3001\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3\\u306a\\u3057\\u3067\\u3053\\u306e\\u30b3\\u30de\\u30f3\\u30c9\\u3092\\u5b9f\\u884c\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044\\u3002\"},\n  { \"xslProc_common_options\", \"-\\u5171\\u901a\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3-\"},\n  { \"xslProc_xalan_options\", \"-Xalan \\u7528\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3-\"},\n  { \"xslProc_xsltc_options\", \"-XSLTC \\u7528\\u30aa\\u30d7\\u30b7\\u30e7\\u30f3-\"},\n  { \"xslProc_return_to_continue\", \"(\\u7d9a\\u3051\\u308b\\u306b\\u306f <return> \\u3092\\u62bc\\u3057\\u3066\\u304f\\u3060\\u3055\\u3044)\"},\n\n  { \"optionXSLTC\", \"   [-XSLTC (\\u5909\\u63db\\u306b XSLTC \\u3092\\u4f7f\\u7528)]\"},\n  { \"optionIN\", \"   [-IN inputXMLURL]\"},\n  { \"optionXSL\", \"   [-XSL XSLTransformationURL]\"},\n  { \"optionOUT\",  \"   [-OUT outputFileName]\"},\n  { \"optionLXCIN\", \"   [-LXCIN compiledStylesheetFileNameIn]\"},\n  { \"optionLXCOUT\", \"   [-LXCOUT compiledStylesheetFileNameOutOut]\"},\n  { \"optionPARSER\", \"   [-PARSER parser liaison \\u306e\\u5b8c\\u5168\\u4fee\\u98fe\\u30af\\u30e9\\u30b9\\u540d]\"},\n  {  \"optionE\", \"   [-E (\\u30a8\\u30f3\\u30c6\\u30a3\\u30c6\\u30a3\\u30fc ref \\u3092\\u62e1\\u5f35\\u3057\\u306a\\u3044)]\"},\n  {  \"optionV\",  \"   [-E (\\u30a8\\u30f3\\u30c6\\u30a3\\u30c6\\u30a3\\u30fc ref \\u3092\\u62e1\\u5f35\\u3057\\u306a\\u3044)]\"},\n  {  \"optionQC\", \"   [-QC (\\u9759\\u6b62\\u30d1\\u30bf\\u30fc\\u30f3\\u77db\\u76fe\\u8b66\\u544a)]\"},\n  {  \"optionQ\", \"   [-Q  (\\u9759\\u6b62\\u30e2\\u30fc\\u30c9)]\"},\n  {  \"optionLF\", \"[-LF (LF (\\u6539\\u884c) \\u3092\\u51fa\\u529b\\u6642\\u306e\\u307f\\u306b\\u4f7f\\u7528  {\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u306f CR/LF})]\"},\n  {  \"optionCR\", \"[-CR (CR (\\u5fa9\\u5e30) \\u3092\\u51fa\\u529b\\u6642\\u306e\\u307f\\u306b\\u4f7f\\u7528 {\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u306f CR/LF})]\"},\n  { \"optionESCAPE\", \"[-ESCAPE (\\u30a8\\u30b9\\u30b1\\u30fc\\u30d7\\u3059\\u308b\\u6587\\u5b57 {\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u306f <>&\\\"\\'\\\\r\\\\n}]\"},\n  { \"optionINDENT\", \"[-INDENT (\\u5b57\\u4e0b\\u3052\\u3059\\u308b\\u30b9\\u30da\\u30fc\\u30b9\\u3092\\u5236\\u5fa1 {\\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u306f 0})]\"},\n  { \"optionTT\", \"   [-TT (\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u3092\\u547c\\u3073\\u51fa\\u3057\\u4e2d\\u306b\\u30c8\\u30ec\\u30fc\\u30b9\\u3002)]\"},\n  { \"optionTG\", \"   [-TG (\\u5404\\u751f\\u6210\\u30a4\\u30d9\\u30f3\\u30c8\\u3092\\u30c8\\u30ec\\u30fc\\u30b9\\u3002)]\"},\n  { \"optionTS\", \"   [-TS (\\u5404\\u9078\\u629e\\u30a4\\u30d9\\u30f3\\u30c8\\u3092\\u30c8\\u30ec\\u30fc\\u30b9\\u3002)]\"},\n  {  \"optionTTC\", \"   [-TTC (\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u306e\\u5b50\\u3092\\u547c\\u3073\\u51fa\\u3057\\u4e2d\\u306b\\u30c8\\u30ec\\u30fc\\u30b9\\u3002)]\"},\n  { \"optionTCLASS\", \"   [-TCLASS (\\u30c8\\u30ec\\u30fc\\u30b9\\u62e1\\u5f35\\u6a5f\\u80fd\\u306e TraceListener \\u30af\\u30e9\\u30b9\\u3002)]\"},\n  { \"optionVALIDATE\", \"   [-VALIDATE (\\u59a5\\u5f53\\u6027\\u691c\\u67fb\\u3092\\u5b9f\\u884c\\u3059\\u308b\\u304b\\u3069\\u3046\\u304b\\u3092\\u8a2d\\u5b9a\\u3002  \\u30c7\\u30d5\\u30a9\\u30eb\\u30c8\\u3067\\u306f\\u3001\\u59a5\\u5f53\\u6027\\u691c\\u67fb\\u306f\\u30aa\\u30d5\\u3067\\u3059\\u3002)]\"},\n  { \"optionEDUMP\", \"[-EDUMP {optional filename} (\\u30a8\\u30e9\\u30fc\\u6642\\u306b stackdump \\u3092\\u5b9f\\u884c\\u3002)]\"},\n  {  \"optionXML\", \"   [-XML (XML \\u30d5\\u30a9\\u30fc\\u30de\\u30c3\\u30bf\\u30fc\\u3092\\u4f7f\\u7528\\u304a\\u3088\\u3073 XML \\u30d8\\u30c3\\u30c0\\u30fc\\u3092\\u8ffd\\u52a0\\u3002)]\"},\n  {  \"optionTEXT\", \"   [-TEXT (\\u30b7\\u30f3\\u30d7\\u30eb\\u30fb\\u30c6\\u30ad\\u30b9\\u30c8\\u30fb\\u30d5\\u30a9\\u30fc\\u30de\\u30c3\\u30bf\\u30fc\\u3092\\u4f7f\\u7528\\u3002)]\"},\n  {  \"optionHTML\", \"   [-HTML (HTML \\u30d5\\u30a9\\u30fc\\u30de\\u30c3\\u30bf\\u30fc\\u3092\\u4f7f\\u7528\\u3002)]\"},\n  {  \"optionPARAM\", \"   [-PARAM \\u540d\\u524d\\u5f0f (stylesheet \\u30d1\\u30e9\\u30e1\\u30fc\\u30bf\\u30fc\\u3092\\u8a2d\\u5b9a\\u3002)]\"},\n  {  \"noParsermsg1\", \"XSL \\u51e6\\u7406\\u306f\\u6210\\u529f\\u3057\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f\\u3002\"},\n  {  \"noParsermsg2\", \"** \\u30d1\\u30fc\\u30b5\\u30fc\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3067\\u3057\\u305f **\"},\n  { \"noParsermsg3\",  \"\\u30af\\u30e9\\u30b9\\u30d1\\u30b9\\u3092\\u8abf\\u3079\\u3066\\u304f\\u3060\\u3055\\u3044\\u3002\"},\n  { \"noParsermsg4\", \"IBM \\u306e XML Parser for Java \\u304c\\u306a\\u3044\\u5834\\u5408\\u306f\\u3001\\u6b21\\u306e\\u30b5\\u30a4\\u30c8\\u304b\\u3089\\u30c0\\u30a6\\u30f3\\u30ed\\u30fc\\u30c9\\u3067\\u304d\\u307e\\u3059:\"},\n  { \"optionURIRESOLVER\", \"   [-URIRESOLVER \\u7d76\\u5bfe\\u30af\\u30e9\\u30b9\\u540d (URI \\u3092\\u89e3\\u6c7a\\u3059\\u308b\\u305f\\u3081\\u306b\\u4f7f\\u7528\\u3059\\u308b URIResolver)]\"},\n  { \"optionENTITYRESOLVER\",  \"   [-ENTITYRESOLVER \\u7d76\\u5bfe\\u30af\\u30e9\\u30b9\\u540d (\\u30a8\\u30f3\\u30c6\\u30a3\\u30c6\\u30a3\\u30fc\\u3092\\u89e3\\u6c7a\\u3059\\u308b\\u305f\\u3081\\u306b\\u4f7f\\u7528\\u3059\\u308b EntityResolver)]\"},\n  { \"optionCONTENTHANDLER\",  \"   [-CONTENTHANDLER \\u7d76\\u5bfe\\u30af\\u30e9\\u30b9\\u540d (\\u51fa\\u529b\\u3092\\u30b7\\u30ea\\u30a2\\u30e9\\u30a4\\u30ba\\u3059\\u308b\\u305f\\u3081\\u306b\\u4f7f\\u7528\\u3059\\u308b ContentHandler)]\"},\n  {  \"optionLINENUMBERS\",  \"   [-L \\u30bd\\u30fc\\u30b9\\u30fb\\u30c9\\u30ad\\u30e5\\u30e1\\u30f3\\u30c8\\u306e\\u884c\\u756a\\u53f7\\u3092\\u4f7f\\u7528]\"},\n\n\n\n  {  \"optionMEDIA\",  \"   [-MEDIA mediaType (\\u6587\\u66f8\\u3068\\u95a2\\u9023\\u3057\\u305f\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u3092\\u691c\\u7d22\\u3059\\u308b\\u30e1\\u30c7\\u30a3\\u30a2\\u5c5e\\u6027\\u3092\\u4f7f\\u7528\\u3002)]\"},\n  { \"optionDIAG\", \"   [-DIAG (\\u5909\\u63db\\u306b\\u304b\\u304b\\u3063\\u305f\\u5168\\u30df\\u30ea\\u79d2\\u3092\\u5370\\u5237\\u3002)]\"},\n  { \"optionRL\",  \"   [-RL recursionlimit (\\u30b9\\u30bf\\u30a4\\u30eb\\u30b7\\u30fc\\u30c8\\u306e\\u518d\\u5e30\\u306e\\u6df1\\u3055\\u306b\\u3064\\u3044\\u3066\\u306e\\u6570\\u5024\\u9650\\u754c\\u3092\\u4e3b\\u5f35\\u3002)]\"},\n  {   \"optionXO\",  \"   [-XO [transletName] (\\u540d\\u524d\\u3092\\u751f\\u6210\\u5f8c\\u306e translet \\u306b\\u5272\\u308a\\u5f53\\u3066)]\"},\n  {  \"optionXD\", \"   [-XD destinationDirectory (\\u5b9b\\u5148\\u30c7\\u30a3\\u30ec\\u30af\\u30c8\\u30ea\\u30fc\\u3092 translet \\u306b\\u6307\\u5b9a)]\"},\n  {  \"optionXJ\",  \"   [-XJ jarfile (translet \\u30af\\u30e9\\u30b9\\u3092\\u540d\\u524d <jarfile> \\u306e jar \\u30d5\\u30a1\\u30a4\\u30eb\\u306b\\u30d1\\u30c3\\u30b1\\u30fc\\u30b8\\u3057\\u307e\\u3059)]\"},\n  {   \"optionXP\",  \"   [-XP package (\\u30d1\\u30c3\\u30b1\\u30fc\\u30b8\\u540d\\u63a5\\u982d\\u90e8\\u3092\\u3059\\u3079\\u3066\\u306e\\u751f\\u6210\\u5f8c\\u306e translet \\u30af\\u30e9\\u30b9\\u306b\\u6307\\u5b9a\\u3057\\u307e\\u3059)]\"},\n\n  { \"optionXN\",  \"   [-XN (\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u3092\\u30a4\\u30f3\\u30e9\\u30a4\\u30f3\\u3067\\u4f7f\\u7528\\u53ef\\u80fd\\u306b\\u3057\\u307e\\u3059)]\" },\n  { \"optionXX\",  \"   [-XX (\\u8ffd\\u52a0\\u306e\\u30c7\\u30d0\\u30c3\\u30b0\\u30fb\\u30e1\\u30c3\\u30bb\\u30fc\\u30b8\\u51fa\\u529b\\u3092\\u30aa\\u30f3\\u306b\\u3057\\u307e\\u3059)]\"},\n  { \"optionXT\" , \"   [-XT (\\u53ef\\u80fd\\u306a\\u5834\\u5408\\u306f translet \\u3092\\u4f7f\\u7528\\u3057\\u3066\\u5909\\u63db)]\"},\n  { \"diagTiming\",\"--------- {0} \\u306e {1} \\u306b\\u3088\\u308b\\u5909\\u63db\\u306b\\u306f {2} \\u30df\\u30ea\\u79d2\\u304b\\u304b\\u308a\\u307e\\u3057\\u305f\" },\n  { \"recursionTooDeep\",\"\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8\\u306e\\u30cd\\u30b9\\u30c8\\u304c\\u6df1\\u3059\\u304e\\u307e\\u3059\\u3002 \\u30cd\\u30b9\\u30c8 = {0}\\u3001\\u30c6\\u30f3\\u30d7\\u30ec\\u30fc\\u30c8 {1} {2}\" },\n  { \"nameIs\", \"\\u540d\\u524d\\u306f\" },\n  { \"matchPatternIs\", \"\\u30de\\u30c3\\u30c1\\u30f3\\u30b0\\u30fb\\u30d1\\u30bf\\u30fc\\u30f3\\u306f\" }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81], [1, 82], [1, 83], [1, 84], [1, 85], [1, 86], [1, 87], [1, 88], [1, 89], [1, 90], [1, 91], [1, 92], [1, 93], [1, 94], [1, 95], [1, 96], [1, 97], [1, 98], [1, 99], [1, 100], [1, 101], [1, 102], [1, 103], [1, 104], [1, 105], [1, 106], [1, 107], [1, 108], [1, 109], [1, 110], [1, 111], [1, 112], [1, 113], [1, 114], [1, 115], [1, 116], [1, 117], [1, 118], [1, 119], [1, 120], [1, 121], [1, 122], [1, 123], [1, 124], [1, 125], [1, 126], [1, 127], [1, 128], [1, 129], [1, 130], [1, 131], [1, 132], [1, 133], [1, 134], [1, 135], [1, 136], [1, 137], [1, 138], [1, 139], [1, 140], [1, 141], [1, 142], [1, 143], [1, 144], [1, 145], [1, 146], [1, 147], [1, 148], [1, 149], [1, 150], [1, 151], [1, 152], [1, 153], [1, 154], [1, 155], [1, 156], [1, 157], [1, 158], [1, 159], [1, 160], [1, 161], [1, 162], [1, 163], [1, 164], [1, 165], [1, 166], [1, 167], [1, 168], [1, 169], [1, 170], [1, 171], [1, 172], [1, 173], [1, 174], [1, 175], [1, 176], [1, 177], [1, 178], [1, 179], [1, 180], [1, 181], [1, 182], [1, 183], [1, 184], [1, 185], [1, 186], [1, 187], [1, 188], [1, 189], [1, 190], [1, 191], [1, 192], [1, 193], [1, 194], [1, 195], [1, 196], [1, 197], [1, 198], [1, 199], [1, 200], [1, 201], [1, 202], [1, 203], [1, 204], [1, 205], [1, 206], [1, 207], [1, 208], [1, 209], [1, 210], [1, 211], [1, 212], [1, 213], [1, 214], [1, 215], [1, 216], [1, 217], [1, 218], [1, 219], [1, 220], [1, 221], [1, 222], [1, 223], [1, 224], [1, 225], [1, 226], [1, 227], [1, 228], [1, 229], [1, 230], [1, 231], [1, 232], [1, 233], [1, 234], [1, 235], [1, 236], [1, 237], [1, 238], [1, 239], [1, 240], [1, 241], [1, 242], [1, 243], [1, 244], [1, 245], [1, 246], [1, 247], [1, 248], [1, 249], [1, 250], [1, 251], [1, 252], [1, 253], [1, 254], [1, 255], [1, 256], [1, 257], [1, 258], [1, 259], [1, 260], [1, 261], [1, 262], [1, 263], [1, 264], [1, 265], [1, 266], [1, 267], [1, 268], [1, 269], [1, 270], [1, 271], [1, 272], [1, 273], [1, 274], [1, 275], [1, 276], [1, 277], [1, 278], [1, 279], [1, 280], [1, 281], [1, 282], [1, 283], [1, 284], [1, 285], [1, 286], [1, 287], [1, 288], [1, 289], [1, 290], [1, 291], [1, 292], [1, 293], [1, 294], [1, 295], [1, 296], [1, 297], [1, 298], [1, 299], [1, 300], [1, 301], [1, 302], [1, 303], [1, 304], [1, 305], [1, 306], [1, 307], [1, 308], [1, 309], [1, 310], [1, 311], [1, 312], [1, 313], [1, 314], [1, 315], [1, 316], [1, 317], [1, 318], [1, 319], [1, 320], [1, 321], [1, 322], [1, 323], [1, 324], [1, 325], [1, 326], [1, 327], [1, 328], [1, 329], [1, 330], [1, 331], [1, 332], [1, 333], [1, 334], [1, 335], [1, 336], [1, 337], [1, 338], [1, 339], [1, 340], [1, 341], [1, 342], [1, 343], [1, 344], [1, 345], [1, 346], [1, 347], [1, 348], [1, 349], [1, 350], [1, 351], [1, 352], [1, 353], [1, 354], [1, 355], [1, 356], [1, 357], [1, 358], [1, 359], [1, 360], [1, 361], [1, 362], [1, 363], [1, 364], [1, 365], [1, 366], [1, 367], [1, 368], [1, 369], [1, 370], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [72, 1], [73, 1], [74, 1], [75, 1], [76, 1], [77, 1], [78, 1], [79, 1], [80, 1], [81, 1], [82, 1], [83, 1], [84, 1], [85, 1], [86, 1], [87, 1], [88, 1], [89, 1], [90, 1], [91, 1], [92, 1], [93, 1], [94, 1], [95, 1], [96, 1], [97, 1], [98, 1], [99, 1], [100, 1], [101, 1], [102, 1], [103, 1], [104, 1], [105, 1], [106, 1], [107, 1], [108, 1], [109, 1], [110, 1], [111, 1], [112, 1], [113, 1], [114, 1], [115, 1], [116, 1], [117, 1], [118, 1], [119, 1], [120, 1], [121, 1], [122, 1], [123, 1], [124, 1], [125, 1], [126, 1], [127, 1], [128, 1], [129, 1], [130, 1], [131, 1], [132, 1], [133, 1], [134, 1], [135, 1], [136, 1], [137, 1], [138, 1], [139, 1], [140, 1], [141, 1], [142, 1], [143, 1], [144, 1], [145, 1], [146, 1], [147, 1], [148, 1], [149, 1], [150, 1], [151, 1], [152, 1], [153, 1], [154, 1], [155, 1], [156, 1], [157, 1], [158, 1], [159, 1], [160, 1], [161, 1], [162, 1], [163, 1], [164, 1], [165, 1], [166, 1], [167, 1], [168, 1], [169, 1], [170, 1], [171, 1], [172, 1], [173, 1], [174, 1], [175, 1], [176, 1], [177, 1], [178, 1], [179, 1], [180, 1], [181, 1], [182, 1], [183, 1], [184, 1], [185, 1], [186, 1], [187, 1], [188, 1], [189, 1], [190, 1], [191, 1], [192, 1], [193, 1], [194, 1], [195, 1], [196, 1], [197, 1], [198, 1], [199, 1], [200, 1], [201, 1], [202, 1], [203, 1], [204, 1], [205, 1], [206, 1], [207, 1], [208, 1], [209, 1], [210, 1], [211, 1], [212, 1], [213, 1], [214, 1], [215, 1], [216, 1], [217, 1], [218, 1], [219, 1], [220, 1], [221, 1], [222, 1], [223, 1], [224, 1], [225, 1], [226, 1], [227, 1], [228, 1], [229, 1], [230, 1], [231, 1], [232, 1], [233, 1], [234, 1], [235, 1], [236, 1], [237, 1], [238, 1], [239, 1], [240, 1], [241, 1], [242, 1], [243, 1], [244, 1], [245, 1], [246, 1], [247, 1], [248, 1], [249, 1], [250, 1], [251, 1], [252, 1], [253, 1], [254, 1], [255, 1], [256, 1], [257, 1], [258, 1], [259, 1], [260, 1], [261, 1], [262, 1], [263, 1], [264, 1], [265, 1], [266, 1], [267, 1], [268, 1], [269, 1], [270, 1], [271, 1], [272, 1], [273, 1], [274, 1], [275, 1], [276, 1], [277, 1], [278, 1], [279, 1], [280, 1], [281, 1], [282, 1], [283, 1], [284, 1], [285, 1], [286, 1], [287, 1], [288, 1], [289, 1], [290, 1], [291, 1], [292, 1], [293, 1], [294, 1], [295, 1], [296, 1], [297, 1], [298, 1], [299, 1], [300, 1], [301, 1], [302, 1], [303, 1], [304, 1], [305, 1], [306, 1], [307, 1], [308, 1], [309, 1], [310, 1], [311, 1], [312, 1], [313, 1], [314, 1], [315, 1], [316, 1], [317, 1], [318, 1], [319, 1], [320, 1], [321, 1], [322, 1], [323, 1], [324, 1], [325, 1], [326, 1], [327, 1], [328, 1], [329, 1], [330, 1], [331, 1], [332, 1], [333, 1], [334, 1], [335, 1], [336, 1], [337, 1], [338, 1], [339, 1], [340, 1], [341, 1], [342, 1], [343, 1], [344, 1], [345, 1], [346, 1], [347, 1], [348, 1], [349, 1], [350, 1], [351, 1], [352, 1], [353, 1], [354, 1], [355, 1], [356, 1], [357, 1], [358, 1], [359, 1], [360, 1], [361, 1], [362, 1], [363, 1], [364, 1], [365, 1], [366, 1], [367, 1], [368, 1], [369, 1], [370, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370]]}, {"function_name": "loadResourceBundle", "code": "  public static final XSLTErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XSLTErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XSLTErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"en\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "camel-1.4-2585", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/resequencer/ElementComparator.java", "language": "java", "name": "org.apache.camel.processor.resequencer.ElementComparator", "code": "class ElementComparator<E> implements SequenceElementComparator<Element<E>> {\n\n    /**\n     * A sequence element comparator this comparator delegates to.\n     */\n    private SequenceElementComparator<E> comparator;\n    \n    /**\n     * Creates a new element comparator instance.\n     * \n     * @param comparator a sequence element comparator this comparator delegates\n     *        to.\n     */\n    public ElementComparator(SequenceElementComparator<E> comparator) {\n        this.comparator = comparator;\n    }\n    \n    /**\n     * @see SequenceElementComparator#predecessor(java.lang.Object, java.lang.Object)\n     */\n    public boolean predecessor(Element<E> o1, Element<E> o2) {\n        return comparator.predecessor(o1.getObject(), o2.getObject());\n    }\n\n    /**\n     * @see SequenceElementComparator#successor(java.lang.Object, java.lang.Object)\n     */\n    public boolean successor(Element<E> o1, Element<E> o2) {\n        return comparator.successor(o1.getObject(), o2.getObject());\n    }\n\n    /**\n     * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)\n     */\n    public int compare(Element<E> o1, Element<E> o2) {\n        return comparator.compare(o1.getObject(), o2.getObject());", "functions": [{"function_name": "predecessor", "code": "    public boolean predecessor(Element<E> o1, Element<E> o2) {\n        return comparator.predecessor(o1.getObject(), o2.getObject());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "successor", "code": "    public boolean successor(Element<E> o1, Element<E> o2) {\n        return comparator.successor(o1.getObject(), o2.getObject());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "compare", "code": "    public int compare(Element<E> o1, Element<E> o2) {\n        return comparator.compare(o1.getObject(), o2.getObject());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "ElementComparator", "code": "    public ElementComparator(SequenceElementComparator<E> comparator) {\n        this.comparator = comparator;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8582", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/res/XPATHErrorResources_pl.java", "language": "java", "name": "org.apache.xpath.res.XPATHErrorResources_pl", "code": "public class XPATHErrorResources_pl extends ListResourceBundle\n{\n\n/*\n * General notes to translators:\n *\n * This file contains error and warning messages related to XPath Error\n * Handling.\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n *  8) The context node is the node in the document with respect to which an\n *     XPath expression is being evaluated.\n *\n *  9) An iterator is an object that traverses nodes in the tree, one at a time.\n *\n *  10) NCName is an XML term used to describe a name that does not contain a\n *     colon (a \"no-colon name\").\n *\n *  11) QName is an XML term meaning \"qualified name\".\n */\n\n  /** Field MAX_CODE          */\n\n  /** Field MAX_WARNING          */\n\n  /** Field MAX_OTHERS          */\n  public static final int MAX_OTHERS = 20;\n\n  /** Field MAX_MESSAGES          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * static variables\n   */\n  public static final String ERROR0000 = \"ERROR0000\";\n  public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH =\n         \"ER_CURRENT_NOT_ALLOWED_IN_MATCH\";\n  public static final String ER_CURRENT_TAKES_NO_ARGS =\n         \"ER_CURRENT_TAKES_NO_ARGS\";\n  public static final String ER_DOCUMENT_REPLACED = \"ER_DOCUMENT_REPLACED\";\n  public static final String ER_CONTEXT_HAS_NO_OWNERDOC =\n         \"ER_CONTEXT_HAS_NO_OWNERDOC\";\n  public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS =\n         \"ER_LOCALNAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS =\n         \"ER_NAMESPACEURI_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS =\n         \"ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NUMBER_HAS_TOO_MANY_ARGS =\n         \"ER_NUMBER_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAME_HAS_TOO_MANY_ARGS =\n         \"ER_NAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRING_HAS_TOO_MANY_ARGS =\n         \"ER_STRING_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS =\n         \"ER_STRINGLENGTH_HAS_TOO_MANY_ARGS\";\n  public static final String ER_TRANSLATE_TAKES_3_ARGS =\n         \"ER_TRANSLATE_TAKES_3_ARGS\";\n  public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG =\n         \"ER_UNPARSEDENTITYURI_TAKES_1_ARG\";\n  public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED =\n         \"ER_NAMESPACEAXIS_NOT_IMPLEMENTED\";\n  public static final String ER_UNKNOWN_AXIS = \"ER_UNKNOWN_AXIS\";\n  public static final String ER_UNKNOWN_MATCH_OPERATION =\n         \"ER_UNKNOWN_MATCH_OPERATION\";\n  public static final String ER_INCORRECT_ARG_LENGTH =\"ER_INCORRECT_ARG_LENGTH\";\n  public static final String ER_CANT_CONVERT_TO_NUMBER =\n         \"ER_CANT_CONVERT_TO_NUMBER\";\n  public static final String ER_CANT_CONVERT_TO_NODELIST =\n         \"ER_CANT_CONVERT_TO_NODELIST\";\n  public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST =\n         \"ER_CANT_CONVERT_TO_MUTABLENODELIST\";\n  public static final String ER_CANT_CONVERT_TO_TYPE =\"ER_CANT_CONVERT_TO_TYPE\";\n  public static final String ER_EXPECTED_MATCH_PATTERN =\n         \"ER_EXPECTED_MATCH_PATTERN\";\n  public static final String ER_COULDNOT_GET_VAR_NAMED =\n         \"ER_COULDNOT_GET_VAR_NAMED\";\n  public static final String ER_UNKNOWN_OPCODE = \"ER_UNKNOWN_OPCODE\";\n  public static final String ER_EXTRA_ILLEGAL_TOKENS =\"ER_EXTRA_ILLEGAL_TOKENS\";\n  public static final String ER_EXPECTED_DOUBLE_QUOTE =\n         \"ER_EXPECTED_DOUBLE_QUOTE\";\n  public static final String ER_EXPECTED_SINGLE_QUOTE =\n         \"ER_EXPECTED_SINGLE_QUOTE\";\n  public static final String ER_EMPTY_EXPRESSION = \"ER_EMPTY_EXPRESSION\";\n  public static final String ER_EXPECTED_BUT_FOUND = \"ER_EXPECTED_BUT_FOUND\";\n  public static final String ER_INCORRECT_PROGRAMMER_ASSERTION =\n         \"ER_INCORRECT_PROGRAMMER_ASSERTION\";\n  public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL =\n         \"ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL\";\n  public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG\";\n  public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG\";\n  public static final String ER_PREDICATE_ILLEGAL_SYNTAX =\n         \"ER_PREDICATE_ILLEGAL_SYNTAX\";\n  public static final String ER_ILLEGAL_AXIS_NAME = \"ER_ILLEGAL_AXIS_NAME\";\n  public static final String ER_UNKNOWN_NODETYPE = \"ER_UNKNOWN_NODETYPE\";\n  public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED =\n         \"ER_PATTERN_LITERAL_NEEDS_BE_QUOTED\";\n  public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER =\n         \"ER_COULDNOT_BE_FORMATTED_TO_NUMBER\";\n  public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON =\n         \"ER_COULDNOT_CREATE_XMLPROCESSORLIAISON\";\n  public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP =\n         \"ER_DIDNOT_FIND_XPATH_SELECT_EXP\";\n  public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH =\n         \"ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH\";\n  public static final String ER_ERROR_OCCURED = \"ER_ERROR_OCCURED\";\n  public static final String ER_ILLEGAL_VARIABLE_REFERENCE =\n         \"ER_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String ER_AXES_NOT_ALLOWED = \"ER_AXES_NOT_ALLOWED\";\n  public static final String ER_KEY_HAS_TOO_MANY_ARGS =\n         \"ER_KEY_HAS_TOO_MANY_ARGS\";\n  public static final String ER_COUNT_TAKES_1_ARG = \"ER_COUNT_TAKES_1_ARG\";\n  public static final String ER_COULDNOT_FIND_FUNCTION =\n         \"ER_COULDNOT_FIND_FUNCTION\";\n  public static final String ER_UNSUPPORTED_ENCODING =\"ER_UNSUPPORTED_ENCODING\";\n  public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING =\n         \"ER_PROBLEM_IN_DTM_NEXTSIBLING\";\n  public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL =\n         \"ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL\";\n  public static final String ER_SETDOMFACTORY_NOT_SUPPORTED =\n         \"ER_SETDOMFACTORY_NOT_SUPPORTED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_PARSE_NOT_SUPPORTED = \"ER_PARSE_NOT_SUPPORTED\";\n  public static final String ER_SAX_API_NOT_HANDLED = \"ER_SAX_API_NOT_HANDLED\";\npublic static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =\n         \"ER_IGNORABLE_WHITESPACE_NOT_HANDLED\";\n  public static final String ER_DTM_CANNOT_HANDLE_NODES =\n         \"ER_DTM_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_CANNOT_HANDLE_NODES =\n         \"ER_XERCES_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_PARSE_ERROR_DETAILS =\n         \"ER_XERCES_PARSE_ERROR_DETAILS\";\n  public static final String ER_XERCES_PARSE_ERROR = \"ER_XERCES_PARSE_ERROR\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_CANNOT_CREATE_URL = \"ER_CANNOT_CREATE_URL\";\n  public static final String ER_XPATH_READOBJECT = \"ER_XPATH_READOBJECT\";\n public static final String ER_FUNCTION_TOKEN_NOT_FOUND =\n         \"ER_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String ER_CANNOT_DEAL_XPATH_TYPE =\n         \"ER_CANNOT_DEAL_XPATH_TYPE\";\n  public static final String ER_NODESET_NOT_MUTABLE = \"ER_NODESET_NOT_MUTABLE\";\n  public static final String ER_NODESETDTM_NOT_MUTABLE =\n         \"ER_NODESETDTM_NOT_MUTABLE\";\n   /**  Variable not resolvable:   */\n  public static final String ER_VAR_NOT_RESOLVABLE = \"ER_VAR_NOT_RESOLVABLE\";\n   /** Null error handler  */\n public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n   /**  Programmer's assertion: unknown opcode  */\n  public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE =\n         \"ER_PROG_ASSERT_UNKNOWN_OPCODE\";\n   /**  0 or 1   */\n  public static final String ER_ZERO_OR_ONE = \"ER_ZERO_OR_ONE\";\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =\n         \"ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = \"ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  fsb() not supported for XStringForChars   */\n  public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS =\n         \"ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS\";\n   /**  Could not find variable with the name of   */\n public static final String ER_COULD_NOT_FIND_VAR = \"ER_COULD_NOT_FIND_VAR\";\n   /**  XStringForChars can not take a string for an argument   */\n public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING =\n         \"ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING\";\n   /**  The FastStringBuffer argument can not be null   */\n public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL =\n         \"ER_FASTSTRINGBUFFER_CANNOT_BE_NULL\";\n   /**  2 or 3   */\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n   /** Variable accessed before it is bound! */\n  public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND =\n         \"ER_VARIABLE_ACCESSED_BEFORE_BIND\";\n   /** XStringForFSB can not take a string for an argument! */\n public static final String ER_FSB_CANNOT_TAKE_STRING =\n         \"ER_FSB_CANNOT_TAKE_STRING\";\n   /** Error! Setting the root of a walker to null! */\n  public static final String ER_SETTING_WALKER_ROOT_TO_NULL =\n         \"ER_SETTING_WALKER_ROOT_TO_NULL\";\n   /** This NodeSetDTM can not iterate to a previous node! */\n  public static final String ER_NODESETDTM_CANNOT_ITERATE =\n         \"ER_NODESETDTM_CANNOT_ITERATE\";\n  /** This NodeSet can not iterate to a previous node! */\n public static final String ER_NODESET_CANNOT_ITERATE =\n         \"ER_NODESET_CANNOT_ITERATE\";\n  /** This NodeSetDTM can not do indexing or counting functions! */\n  public static final String ER_NODESETDTM_CANNOT_INDEX =\n         \"ER_NODESETDTM_CANNOT_INDEX\";\n  /** This NodeSet can not do indexing or counting functions! */\n  public static final String ER_NODESET_CANNOT_INDEX =\n         \"ER_NODESET_CANNOT_INDEX\";\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n  public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE =\n         \"ER_CANNOT_CALL_SETSHOULDCACHENODE\";\n  /** {0} only allows {1} arguments */\n public static final String ER_ONLY_ALLOWS = \"ER_ONLY_ALLOWS\";\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n  public static final String ER_UNKNOWN_STEP = \"ER_UNKNOWN_STEP\";\n  /** Problem with RelativeLocationPath */\n  public static final String ER_EXPECTED_REL_LOC_PATH =\n         \"ER_EXPECTED_REL_LOC_PATH\";\n  /** Problem with LocationPath */\n  public static final String ER_EXPECTED_LOC_PATH = \"ER_EXPECTED_LOC_PATH\";\n  /** Problem with Step */\n  public static final String ER_EXPECTED_LOC_STEP = \"ER_EXPECTED_LOC_STEP\";\n  /** Problem with NodeTest */\n  public static final String ER_EXPECTED_NODE_TEST = \"ER_EXPECTED_NODE_TEST\";\n  /** Expected step pattern */\n  public static final String ER_EXPECTED_STEP_PATTERN =\n        \"ER_EXPECTED_STEP_PATTERN\";\n  /** Expected relative path pattern */\n  public static final String ER_EXPECTED_REL_PATH_PATTERN =\n         \"ER_EXPECTED_REL_PATH_PATTERN\";\n  /** localname in QNAME should be a valid NCName */\n  /** prefix in QNAME should be a valid NCName */\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n  public static final String ER_CANT_CONVERT_TO_BOOLEAN =\n         \"ER_CANT_CONVERT_TO_BOOLEAN\";\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n  public static final String ER_CANT_CONVERT_TO_SINGLENODE =\n         \"ER_CANT_CONVERT_TO_SINGLENODE\";\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n  public static final String ER_CANT_GET_SNAPSHOT_LENGTH =\n         \"ER_CANT_GET_SNAPSHOT_LENGTH\";\n  /** Field ER_NON_ITERATOR_TYPE                */\n  public static final String ER_NON_ITERATOR_TYPE = \"ER_NON_ITERATOR_TYPE\";\n  /** Field ER_DOC_MUTATED                      */\n  public static final String ER_DOC_MUTATED = \"ER_DOC_MUTATED\";\n  public static final String ER_INVALID_XPATH_TYPE = \"ER_INVALID_XPATH_TYPE\";\n  public static final String ER_EMPTY_XPATH_RESULT = \"ER_EMPTY_XPATH_RESULT\";\n  public static final String ER_INCOMPATIBLE_TYPES = \"ER_INCOMPATIBLE_TYPES\";\n  public static final String ER_NULL_RESOLVER = \"ER_NULL_RESOLVER\";\n  public static final String ER_CANT_CONVERT_TO_STRING =\n         \"ER_CANT_CONVERT_TO_STRING\";\n  public static final String ER_NON_SNAPSHOT_TYPE = \"ER_NON_SNAPSHOT_TYPE\";\n  public static final String ER_WRONG_DOCUMENT = \"ER_WRONG_DOCUMENT\";\n  /* Note to translators:  The XPath expression cannot be evaluated with respect\n   * to this type of node.\n   */\n  /** Field ER_WRONG_NODETYPE                    */\n  public static final String ER_WRONG_NODETYPE = \"ER_WRONG_NODETYPE\";\n  public static final String ER_XPATH_ERROR = \"ER_XPATH_ERROR\";\n\n  public static final String WG_LOCALE_NAME_NOT_HANDLED =\n         \"WG_LOCALE_NAME_NOT_HANDLED\";\n  public static final String WG_PROPERTY_NOT_SUPPORTED =\n         \"WG_PROPERTY_NOT_SUPPORTED\";\n  public static final String WG_DONT_DO_ANYTHING_WITH_NS =\n         \"WG_DONT_DO_ANYTHING_WITH_NS\";\n  public static final String WG_SECURITY_EXCEPTION = \"WG_SECURITY_EXCEPTION\";\n  public static final String WG_QUO_NO_LONGER_DEFINED =\n         \"WG_QUO_NO_LONGER_DEFINED\";\n  public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST =\n         \"WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST\";\n  public static final String WG_FUNCTION_TOKEN_NOT_FOUND =\n         \"WG_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String WG_COULDNOT_FIND_FUNCTION =\n         \"WG_COULDNOT_FIND_FUNCTION\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED =\n         \"WG_EXPAND_ENTITIES_NOT_SUPPORTED\";\n  public static final String WG_ILLEGAL_VARIABLE_REFERENCE =\n         \"WG_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String WG_UNSUPPORTED_ENCODING =\"WG_UNSUPPORTED_ENCODING\";\n\n\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return new Object[][]{\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"Funkcja current() jest niedozwolona we wzorcu!\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"Funkcja current() nie akceptuje argument\\u00f3w!\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"Implementacja funkcji document() zosta\\u0142a zast\\u0105piona przez org.apache.xalan.xslt.FuncDocument!\"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"Kontekst nie ma dokumentu w\\u0142a\\u015bciciela!\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"Funkcja local-name() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"Funkcja namespace-uri() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"Funkcja normalize-space() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"Funkcja number() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"Funkcja name() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"Funkcja string() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"Funkcja string-length() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"Funkcja translate() akceptuje trzy argumenty!\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"Funkcja unparsed-entity-uri() akceptuje tylko jeden argument!\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"O\\u015b przestrzeni nazw nie zosta\\u0142a jeszcze zaimplementowana!\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"nieznana o\\u015b: {0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"Nieznana operacja uzgadniania!\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"D\\u0142ugo\\u015b\\u0107 argumentu testu w\\u0119z\\u0142a processing-instruction() jest niepoprawna!\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w liczb\\u0119\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w NodeList!\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w NodeSetDTM!\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w type#{1}\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"Oczekiwano wzorca uzgadniania w getMatchScore!\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"Nie mo\\u017cna pobra\\u0107 zmiennej o nazwie {0}\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"B\\u0141\\u0104D! Nieznany kod operacji: {0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"Nadmiarowe niedozwolone leksemy: {0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"Litera\\u0142 bez cudzys\\u0142owu... oczekiwano podw\\u00f3jnego cudzys\\u0142owu!\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"Litera\\u0142 bez cudzys\\u0142owu... oczekiwano pojedynczego cudzys\\u0142owu!\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"Puste wyra\\u017cenie!\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"Oczekiwano {0}, ale znaleziono: {1}\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"Asercja programisty jest niepoprawna! - {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"argument boolean(...) nie jest ju\\u017c opcjonalny wg projektu 19990709 XPath draft.\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"Znaleziono znak ',', ale nie ma poprzedzaj\\u0105cego argumentu!\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"Znaleziono znak ',', ale nie ma nast\\u0119puj\\u0105cego argumentu!\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"'..[predykat]' lub '.[predykat]' to niedozwolona sk\\u0142adnia. U\\u017cyj zamiast tego 'self::node()[predykat]'.\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"Niedozwolona nazwa osi: {0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"Nieznany typ w\\u0119z\\u0142a: {0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"Litera\\u0142 wzorca ({0}) musi by\\u0107 w cudzys\\u0142owie!\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"Nie mo\\u017cna sformatowa\\u0107 {0} do postaci liczbowej!\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"Nie mo\\u017cna utworzy\\u0107 po\\u0142\\u0105czenia XML TransformerFactory: {0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"B\\u0142\\u0105d! Nie znaleziono wyra\\u017cenia wyboru xpath (-select).\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"B\\u0141\\u0104D! Nie mo\\u017cna znale\\u017a\\u0107 ENDOP po OP_LOCATIONPATH\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"Wyst\\u0105pi\\u0142 b\\u0142\\u0105d!\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"VariableReference nadana zmiennej nie nale\\u017cy do kontekstu lub nie ma definicji!  Nazwa = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"We wzorcach zgodno\\u015bci dozwolone s\\u0105 tylko osie child:: oraz attribute::!  Niew\\u0142a\\u015bciwe osie = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"Funkcja key() ma niepoprawn\\u0105 liczb\\u0119 argument\\u00f3w.\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"Funkcja count() akceptuje tylko jeden argument!\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"Nie mo\\u017cna znale\\u017a\\u0107 funkcji: {0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"Nieobs\\u0142ugiwane kodowanie: {0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"Wyst\\u0105pi\\u0142 problem w DTM w getNextSibling... pr\\u00f3ba wyj\\u015bcia z b\\u0142\\u0119du\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"B\\u0142\\u0105d programisty: Nie mo\\u017cna zapisywa\\u0107 do EmptyNodeList.\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"setDOMFactory nie jest obs\\u0142ugiwane przez XPathContext!\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"Przedrostek musi da\\u0107 si\\u0119 przet\\u0142umaczy\\u0107 na przestrze\\u0144 nazw: {0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"parse (\\u017ar\\u00f3d\\u0142o InputSource) nie jest obs\\u0142ugiwane w XPathContext! Nie mo\\u017cna otworzy\\u0107 {0}\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"SAX API characters(char ch[]... nie jest obs\\u0142ugiwane przez DTM!\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"ignorableWhitespace(char ch[]... nie jest obs\\u0142ugiwane przez DTM!\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison nie mo\\u017ce obs\\u0142u\\u017cy\\u0107 w\\u0119z\\u0142\\u00f3w typu {0}\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper nie mo\\u017ce obs\\u0142u\\u017cy\\u0107 w\\u0119z\\u0142\\u00f3w typu {0}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"B\\u0142\\u0105d DOM2Helper.parse : ID systemu - {0} wiersz - {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"B\\u0142\\u0105d DOM2Helper.parse\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"Wykryto niepoprawny surogat UTF-16: {0} ?\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"B\\u0142\\u0105d we/wy\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"Nie mo\\u017cna utworzy\\u0107 adresu url dla {0}\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"W XPath.readObject: {0}\"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"Nie znaleziono leksemu funkcji.\"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"Nie mo\\u017cna upora\\u0107 si\\u0119 z typem XPath {0}\"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"Ten NodeSet nie jest zmienny\"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"Ten NodeSetDTM nie jest zmienny\"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"Nie mo\\u017cna rozstrzygn\\u0105\\u0107 zmiennej {0}\"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"Pusta procedura obs\\u0142ugi b\\u0142\\u0119du\"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"Asercja programisty: nieznany opcode: {0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 lub 1\"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"Funkcja rtf() nie jest obs\\u0142ugiwana przez XRTreeFragSelectWrapper\"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"Funkcja asNodeIterator() nie jest obs\\u0142ugiwana przez XRTreeFragSelectWrapper\"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"Funkcja fsb() nie jest obs\\u0142ugiwana dla XStringForChars\"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"Nie mo\\u017cna znale\\u017a\\u0107 zmiennej o nazwie {0}\"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"XStringForChars nie mo\\u017ce pobra\\u0107 ci\\u0105gu znak\\u00f3w jako argumentu\"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"Argument FastStringBuffer nie mo\\u017ce by\\u0107 pusty\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 lub 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"Nast\\u0105pi\\u0142o odwo\\u0142anie do zmiennej, zanim zosta\\u0142a ona zwi\\u0105zana!\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"XStringForFSB nie mo\\u017ce pobra\\u0107 ci\\u0105gu znak\\u00f3w jako argumentu!\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n !!!! B\\u0142\\u0105d! Ustawienie root w\\u0119drownika na null!!!\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"Ten NodeSetDTM nie mo\\u017ce iterowa\\u0107 do poprzedniego w\\u0119z\\u0142a!\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"Ten NodeSet nie mo\\u017ce iterowa\\u0107 do poprzedniego w\\u0119z\\u0142a!\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"Ten NodeSetDTM nie mo\\u017ce wykona\\u0107 funkcji indeksowania lub zliczania!\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"Ten NodeSet nie mo\\u017ce wykona\\u0107 funkcji indeksowania lub zliczania!\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"Nie mo\\u017cna wywo\\u0142a\\u0107 setShouldCacheNodes po wywo\\u0142aniu nextNode!\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"{0} zezwala tylko na {1} argumenty\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"Asercja programisty w getNextStepPos: nieznany stepType: {0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"Oczekiwano \\u015bcie\\u017cki po\\u0142o\\u017cenia, ale napotkano nast\\u0119puj\\u0105cy leksem\\u003a  {0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"Oczekiwano testu w\\u0119z\\u0142a zgodnego albo z NCName:*, albo z QName.\"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"Oczekiwano wzorca kroku, ale napotkano '/'.\"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"Oczekiwano wzorca \\u015bcie\\u017cki wzgl\\u0119dnej.\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w warto\\u015b\\u0107 boolowsk\\u0105.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w pojedynczy w\\u0119ze\\u0142. Ta procedura czytaj\\u0105ca stosuje si\\u0119 do typ\\u00f3w ANY_UNORDERED_NODE_TYPE oraz FIRST_ORDERED_NODE_TYPE.\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"Nie mo\\u017cna pobra\\u0107 d\\u0142ugo\\u015bci obrazu stanu w typie: {0}. Ta procedura czytaj\\u0105ca stosuje si\\u0119 do typ\\u00f3w UNORDERED_NODE_SNAPSHOT_TYPE oraz ORDERED_NODE_SNAPSHOT_TYPE.\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"Nie mo\\u017cna iterowa\\u0107 w typie nieiterowanym: {0}\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"Dokument uleg\\u0142 zmianie od czasu zwr\\u00f3cenia rezultatu. Iterator jest niepoprawny.\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"Niepoprawny argument typu XPath: {0}\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"Pusty obiekt rezultatu XPath\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"Nie mo\\u017cna wymusi\\u0107 przekszta\\u0142cenia zwr\\u00f3conego typu {0} w podany typ {1}\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"Nie mo\\u017cna przet\\u0142umaczy\\u0107 przedrostka za pomoc\\u0105 procedury t\\u0142umacz\\u0105cej o pustym przedrostku.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w ci\\u0105g znak\\u00f3w.\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"Nie mo\\u017cna wywo\\u0142a\\u0107 snapshotItem dla typu {0}. Metoda ta stosuje si\\u0119 do typ\\u00f3w UNORDERED_NODE_SNAPSHOT_TYPE oraz ORDERED_NODE_SNAPSHOT_TYPE.\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"W\\u0119ze\\u0142 kontekstu nie nale\\u017cy do dokumentu, kt\\u00f3ry jest zwi\\u0105zany z tym interfejsem XPathEvaluator.\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"Nieobs\\u0142ugiwany typ w\\u0119z\\u0142a kontekstu.\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"Nieznany b\\u0142\\u0105d w XPath.\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"Nazwa lokalizacji w funkcji format-number nie zosta\\u0142a jeszcze obs\\u0142u\\u017cona!\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"Nieobs\\u0142ugiwana w\\u0142a\\u015bciwo\\u015b\\u0107 XSL {0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"Nie r\\u00f3b teraz niczego z przestrzeni\\u0105 nazw {0} we w\\u0142a\\u015bciwo\\u015bci {1}\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"Wyj\\u0105tek SecurityException podczas pr\\u00f3by dost\\u0119pu do w\\u0142a\\u015bciwo\\u015bci systemowej XSL {0}\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"Stara sk\\u0142adnia: quo(...) nie jest ju\\u017c zdefiniowana w XPath.\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"XPath potrzebuje obiektu pochodnego, aby zaimplementowa\\u0107 nodeTest!\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"Nie znaleziono leksemu funkcji.\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"Nie mo\\u017cna znale\\u017a\\u0107 funkcji: {0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"Nie mo\\u017cna utworzy\\u0107 adresu URL z {0}\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"Opcja -E nie jest obs\\u0142ugiwana przez analizator DTM\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"VariableReference nadana zmiennej nie nale\\u017cy do kontekstu lub nie ma definicji!  Nazwa = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"Nieobs\\u0142ugiwane kodowanie: {0}\"},\n\n\n\n  { \"ui_language\", \"pl\"},\n  { \"help_language\", \"pl\"},\n  { \"language\", \"pl\"},\n  { \"BAD_CODE\", \"Parametr createMessage by\\u0142 spoza zakresu\"},\n  { \"FORMAT_FAILED\", \"Podczas wywo\\u0142ania messageFormat zg\\u0142oszony zosta\\u0142 wyj\\u0105tek\"},\n  { \"version\", \">>>>>>> Wersja Xalan \"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"tak\"},\n  { \"line\", \"Wiersz: \"},\n  { \"column\", \"Kolumna: \"},\n  { \"xsldone\", \"XSLProcessor: gotowe\"},\n  { \"xpath_option\", \"opcje xpath: \"},\n  { \"optionIN\", \"   [-in wej\\u015bciowyXMLURL]\"},\n  { \"optionSelect\", \"   [-select wyra\\u017cenie xpath]\"},\n  { \"optionMatch\", \"   [-match wzorzec (do diagnostyki odnajdywania zgodno\\u015bci ze wzorcem)]\"},\n  { \"optionAnyExpr\", \"Lub po prostu wyra\\u017cenie xpath dokona zrzutu diagnostycznego\"},\n  { \"noParsermsg1\", \"Proces XSL nie wykona\\u0142 si\\u0119 pomy\\u015blnie.\"},\n  { \"noParsermsg2\", \"** Nie mo\\u017cna znale\\u017a\\u0107 analizatora **\"},\n  { \"noParsermsg3\", \"Sprawd\\u017a classpath.\"},\n  { \"noParsermsg4\", \"Je\\u015bli nie masz analizatora XML dla j\\u0119zyka Java firmy IBM, mo\\u017cesz go pobra\\u0107 \"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }\n\n  };\n  }\n\n\n\n  /** Field BAD_CODE          */\n  public static final String BAD_CODE = \"B\\u0141\\u0118DNY_KOD\";\n\n  /** Field FORMAT_FAILED          */\n  public static final String FORMAT_FAILED = \"FORMATOWANIE_NIE_POWIOD\\u0141O_SI\\u0118\";\n\n  /** Field ERROR_RESOURCES          */\n  public static final String ERROR_RESOURCES =\n    \"org.apache.xpath.res.XPATHErrorResources\";\n\n  /** Field ERROR_STRING          */\n  public static final String ERROR_STRING = \"nr b\\u0142\\u0119du\";\n\n  /** Field ERROR_HEADER          */\n  public static final String ERROR_HEADER = \"B\\u0142\\u0105d: \";\n\n  /** Field WARNING_HEADER          */\n  public static final String WARNING_HEADER = \"Ostrze\\u017cenie: \";\n\n  /** Field XSL_HEADER          */\n  public static final String XSL_HEADER = \"XSL \";\n\n  /** Field XML_HEADER          */\n  public static final String XML_HEADER = \"XML \";\n\n  /** Field QUERY_HEADER          */\n  public static final String QUERY_HEADER = \"WZORZEC \";\n\n\n  /**\n   * Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   * of ResourceBundle.getBundle().\n   *\n   * @param className Name of local-specific subclass.\n   * @return the ResourceBundle\n   * @throws MissingResourceException\n   */\n  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"pl\", \"PL\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return new Object[][]{\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"Funkcja current() jest niedozwolona we wzorcu!\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"Funkcja current() nie akceptuje argument\\u00f3w!\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"Implementacja funkcji document() zosta\\u0142a zast\\u0105piona przez org.apache.xalan.xslt.FuncDocument!\"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"Kontekst nie ma dokumentu w\\u0142a\\u015bciciela!\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"Funkcja local-name() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"Funkcja namespace-uri() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"Funkcja normalize-space() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"Funkcja number() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"Funkcja name() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"Funkcja string() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"Funkcja string-length() ma zbyt wiele argument\\u00f3w.\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"Funkcja translate() akceptuje trzy argumenty!\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"Funkcja unparsed-entity-uri() akceptuje tylko jeden argument!\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"O\\u015b przestrzeni nazw nie zosta\\u0142a jeszcze zaimplementowana!\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"nieznana o\\u015b: {0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"Nieznana operacja uzgadniania!\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"D\\u0142ugo\\u015b\\u0107 argumentu testu w\\u0119z\\u0142a processing-instruction() jest niepoprawna!\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w liczb\\u0119\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w NodeList!\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w NodeSetDTM!\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w type#{1}\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"Oczekiwano wzorca uzgadniania w getMatchScore!\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"Nie mo\\u017cna pobra\\u0107 zmiennej o nazwie {0}\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"B\\u0141\\u0104D! Nieznany kod operacji: {0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"Nadmiarowe niedozwolone leksemy: {0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"Litera\\u0142 bez cudzys\\u0142owu... oczekiwano podw\\u00f3jnego cudzys\\u0142owu!\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"Litera\\u0142 bez cudzys\\u0142owu... oczekiwano pojedynczego cudzys\\u0142owu!\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"Puste wyra\\u017cenie!\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"Oczekiwano {0}, ale znaleziono: {1}\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"Asercja programisty jest niepoprawna! - {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"argument boolean(...) nie jest ju\\u017c opcjonalny wg projektu 19990709 XPath draft.\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"Znaleziono znak ',', ale nie ma poprzedzaj\\u0105cego argumentu!\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"Znaleziono znak ',', ale nie ma nast\\u0119puj\\u0105cego argumentu!\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"'..[predykat]' lub '.[predykat]' to niedozwolona sk\\u0142adnia. U\\u017cyj zamiast tego 'self::node()[predykat]'.\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"Niedozwolona nazwa osi: {0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"Nieznany typ w\\u0119z\\u0142a: {0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"Litera\\u0142 wzorca ({0}) musi by\\u0107 w cudzys\\u0142owie!\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"Nie mo\\u017cna sformatowa\\u0107 {0} do postaci liczbowej!\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"Nie mo\\u017cna utworzy\\u0107 po\\u0142\\u0105czenia XML TransformerFactory: {0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"B\\u0142\\u0105d! Nie znaleziono wyra\\u017cenia wyboru xpath (-select).\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"B\\u0141\\u0104D! Nie mo\\u017cna znale\\u017a\\u0107 ENDOP po OP_LOCATIONPATH\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"Wyst\\u0105pi\\u0142 b\\u0142\\u0105d!\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"VariableReference nadana zmiennej nie nale\\u017cy do kontekstu lub nie ma definicji!  Nazwa = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"We wzorcach zgodno\\u015bci dozwolone s\\u0105 tylko osie child:: oraz attribute::!  Niew\\u0142a\\u015bciwe osie = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"Funkcja key() ma niepoprawn\\u0105 liczb\\u0119 argument\\u00f3w.\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"Funkcja count() akceptuje tylko jeden argument!\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"Nie mo\\u017cna znale\\u017a\\u0107 funkcji: {0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"Nieobs\\u0142ugiwane kodowanie: {0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"Wyst\\u0105pi\\u0142 problem w DTM w getNextSibling... pr\\u00f3ba wyj\\u015bcia z b\\u0142\\u0119du\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"B\\u0142\\u0105d programisty: Nie mo\\u017cna zapisywa\\u0107 do EmptyNodeList.\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"setDOMFactory nie jest obs\\u0142ugiwane przez XPathContext!\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"Przedrostek musi da\\u0107 si\\u0119 przet\\u0142umaczy\\u0107 na przestrze\\u0144 nazw: {0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"parse (\\u017ar\\u00f3d\\u0142o InputSource) nie jest obs\\u0142ugiwane w XPathContext! Nie mo\\u017cna otworzy\\u0107 {0}\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"SAX API characters(char ch[]... nie jest obs\\u0142ugiwane przez DTM!\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"ignorableWhitespace(char ch[]... nie jest obs\\u0142ugiwane przez DTM!\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison nie mo\\u017ce obs\\u0142u\\u017cy\\u0107 w\\u0119z\\u0142\\u00f3w typu {0}\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper nie mo\\u017ce obs\\u0142u\\u017cy\\u0107 w\\u0119z\\u0142\\u00f3w typu {0}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"B\\u0142\\u0105d DOM2Helper.parse : ID systemu - {0} wiersz - {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"B\\u0142\\u0105d DOM2Helper.parse\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"Wykryto niepoprawny surogat UTF-16: {0} ?\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"B\\u0142\\u0105d we/wy\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"Nie mo\\u017cna utworzy\\u0107 adresu url dla {0}\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"W XPath.readObject: {0}\"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"Nie znaleziono leksemu funkcji.\"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"Nie mo\\u017cna upora\\u0107 si\\u0119 z typem XPath {0}\"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"Ten NodeSet nie jest zmienny\"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"Ten NodeSetDTM nie jest zmienny\"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"Nie mo\\u017cna rozstrzygn\\u0105\\u0107 zmiennej {0}\"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"Pusta procedura obs\\u0142ugi b\\u0142\\u0119du\"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"Asercja programisty: nieznany opcode: {0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 lub 1\"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"Funkcja rtf() nie jest obs\\u0142ugiwana przez XRTreeFragSelectWrapper\"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"Funkcja asNodeIterator() nie jest obs\\u0142ugiwana przez XRTreeFragSelectWrapper\"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"Funkcja fsb() nie jest obs\\u0142ugiwana dla XStringForChars\"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"Nie mo\\u017cna znale\\u017a\\u0107 zmiennej o nazwie {0}\"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"XStringForChars nie mo\\u017ce pobra\\u0107 ci\\u0105gu znak\\u00f3w jako argumentu\"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"Argument FastStringBuffer nie mo\\u017ce by\\u0107 pusty\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 lub 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"Nast\\u0105pi\\u0142o odwo\\u0142anie do zmiennej, zanim zosta\\u0142a ona zwi\\u0105zana!\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"XStringForFSB nie mo\\u017ce pobra\\u0107 ci\\u0105gu znak\\u00f3w jako argumentu!\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n !!!! B\\u0142\\u0105d! Ustawienie root w\\u0119drownika na null!!!\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"Ten NodeSetDTM nie mo\\u017ce iterowa\\u0107 do poprzedniego w\\u0119z\\u0142a!\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"Ten NodeSet nie mo\\u017ce iterowa\\u0107 do poprzedniego w\\u0119z\\u0142a!\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"Ten NodeSetDTM nie mo\\u017ce wykona\\u0107 funkcji indeksowania lub zliczania!\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"Ten NodeSet nie mo\\u017ce wykona\\u0107 funkcji indeksowania lub zliczania!\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"Nie mo\\u017cna wywo\\u0142a\\u0107 setShouldCacheNodes po wywo\\u0142aniu nextNode!\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"{0} zezwala tylko na {1} argumenty\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"Asercja programisty w getNextStepPos: nieznany stepType: {0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"Oczekiwano \\u015bcie\\u017cki po\\u0142o\\u017cenia, ale napotkano nast\\u0119puj\\u0105cy leksem\\u003a  {0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"Oczekiwano testu w\\u0119z\\u0142a zgodnego albo z NCName:*, albo z QName.\"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"Oczekiwano wzorca kroku, ale napotkano '/'.\"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"Oczekiwano wzorca \\u015bcie\\u017cki wzgl\\u0119dnej.\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w warto\\u015b\\u0107 boolowsk\\u0105.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w pojedynczy w\\u0119ze\\u0142. Ta procedura czytaj\\u0105ca stosuje si\\u0119 do typ\\u00f3w ANY_UNORDERED_NODE_TYPE oraz FIRST_ORDERED_NODE_TYPE.\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"Nie mo\\u017cna pobra\\u0107 d\\u0142ugo\\u015bci obrazu stanu w typie: {0}. Ta procedura czytaj\\u0105ca stosuje si\\u0119 do typ\\u00f3w UNORDERED_NODE_SNAPSHOT_TYPE oraz ORDERED_NODE_SNAPSHOT_TYPE.\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"Nie mo\\u017cna iterowa\\u0107 w typie nieiterowanym: {0}\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"Dokument uleg\\u0142 zmianie od czasu zwr\\u00f3cenia rezultatu. Iterator jest niepoprawny.\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"Niepoprawny argument typu XPath: {0}\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"Pusty obiekt rezultatu XPath\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"Nie mo\\u017cna wymusi\\u0107 przekszta\\u0142cenia zwr\\u00f3conego typu {0} w podany typ {1}\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"Nie mo\\u017cna przet\\u0142umaczy\\u0107 przedrostka za pomoc\\u0105 procedury t\\u0142umacz\\u0105cej o pustym przedrostku.\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"Nie mo\\u017cna przekszta\\u0142ci\\u0107 {0} w ci\\u0105g znak\\u00f3w.\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"Nie mo\\u017cna wywo\\u0142a\\u0107 snapshotItem dla typu {0}. Metoda ta stosuje si\\u0119 do typ\\u00f3w UNORDERED_NODE_SNAPSHOT_TYPE oraz ORDERED_NODE_SNAPSHOT_TYPE.\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"W\\u0119ze\\u0142 kontekstu nie nale\\u017cy do dokumentu, kt\\u00f3ry jest zwi\\u0105zany z tym interfejsem XPathEvaluator.\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"Nieobs\\u0142ugiwany typ w\\u0119z\\u0142a kontekstu.\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"Nieznany b\\u0142\\u0105d w XPath.\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"Nazwa lokalizacji w funkcji format-number nie zosta\\u0142a jeszcze obs\\u0142u\\u017cona!\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"Nieobs\\u0142ugiwana w\\u0142a\\u015bciwo\\u015b\\u0107 XSL {0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"Nie r\\u00f3b teraz niczego z przestrzeni\\u0105 nazw {0} we w\\u0142a\\u015bciwo\\u015bci {1}\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"Wyj\\u0105tek SecurityException podczas pr\\u00f3by dost\\u0119pu do w\\u0142a\\u015bciwo\\u015bci systemowej XSL {0}\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"Stara sk\\u0142adnia: quo(...) nie jest ju\\u017c zdefiniowana w XPath.\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"XPath potrzebuje obiektu pochodnego, aby zaimplementowa\\u0107 nodeTest!\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"Nie znaleziono leksemu funkcji.\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"Nie mo\\u017cna znale\\u017a\\u0107 funkcji: {0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"Nie mo\\u017cna utworzy\\u0107 adresu URL z {0}\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"Opcja -E nie jest obs\\u0142ugiwana przez analizator DTM\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"VariableReference nadana zmiennej nie nale\\u017cy do kontekstu lub nie ma definicji!  Nazwa = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"Nieobs\\u0142ugiwane kodowanie: {0}\"},\n\n\n\n  { \"ui_language\", \"pl\"},\n  { \"help_language\", \"pl\"},\n  { \"language\", \"pl\"},\n  { \"BAD_CODE\", \"Parametr createMessage by\\u0142 spoza zakresu\"},\n  { \"FORMAT_FAILED\", \"Podczas wywo\\u0142ania messageFormat zg\\u0142oszony zosta\\u0142 wyj\\u0105tek\"},\n  { \"version\", \">>>>>>> Wersja Xalan \"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"tak\"},\n  { \"line\", \"Wiersz: \"},\n  { \"column\", \"Kolumna: \"},\n  { \"xsldone\", \"XSLProcessor: gotowe\"},\n  { \"xpath_option\", \"opcje xpath: \"},\n  { \"optionIN\", \"   [-in wej\\u015bciowyXMLURL]\"},\n  { \"optionSelect\", \"   [-select wyra\\u017cenie xpath]\"},\n  { \"optionMatch\", \"   [-match wzorzec (do diagnostyki odnajdywania zgodno\\u015bci ze wzorcem)]\"},\n  { \"optionAnyExpr\", \"Lub po prostu wyra\\u017cenie xpath dokona zrzutu diagnostycznego\"},\n  { \"noParsermsg1\", \"Proces XSL nie wykona\\u0142 si\\u0119 pomy\\u015blnie.\"},\n  { \"noParsermsg2\", \"** Nie mo\\u017cna znale\\u017a\\u0107 analizatora **\"},\n  { \"noParsermsg3\", \"Sprawd\\u017a classpath.\"},\n  { \"noParsermsg4\", \"Je\\u015bli nie masz analizatora XML dla j\\u0119zyka Java firmy IBM, mo\\u017cesz go pobra\\u0107 \"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81], [1, 82], [1, 83], [1, 84], [1, 85], [1, 86], [1, 87], [1, 88], [1, 89], [1, 90], [1, 91], [1, 92], [1, 93], [1, 94], [1, 95], [1, 96], [1, 97], [1, 98], [1, 99], [1, 100], [1, 101], [1, 102], [1, 103], [1, 104], [1, 105], [1, 106], [1, 107], [1, 108], [1, 109], [1, 110], [1, 111], [1, 112], [1, 113], [1, 114], [1, 115], [1, 116], [1, 117], [1, 118], [1, 119], [1, 120], [1, 121], [1, 122], [1, 123], [1, 124], [1, 125], [1, 126], [1, 127], [1, 128], [1, 129], [1, 130], [1, 131], [1, 132], [1, 133], [1, 134], [1, 135], [1, 136], [1, 137], [1, 138], [1, 139], [1, 140], [1, 141], [1, 142], [1, 143], [1, 144], [1, 145], [1, 146], [1, 147], [1, 148], [1, 149], [1, 150], [1, 151], [1, 152], [1, 153], [1, 154], [1, 155], [1, 156], [1, 157], [1, 158], [1, 159], [1, 160], [1, 161], [1, 162], [1, 163], [1, 164], [1, 165], [1, 166], [1, 167], [1, 168], [1, 169], [1, 170], [1, 171], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [72, 1], [73, 1], [74, 1], [75, 1], [76, 1], [77, 1], [78, 1], [79, 1], [80, 1], [81, 1], [82, 1], [83, 1], [84, 1], [85, 1], [86, 1], [87, 1], [88, 1], [89, 1], [90, 1], [91, 1], [92, 1], [93, 1], [94, 1], [95, 1], [96, 1], [97, 1], [98, 1], [99, 1], [100, 1], [101, 1], [102, 1], [103, 1], [104, 1], [105, 1], [106, 1], [107, 1], [108, 1], [109, 1], [110, 1], [111, 1], [112, 1], [113, 1], [114, 1], [115, 1], [116, 1], [117, 1], [118, 1], [119, 1], [120, 1], [121, 1], [122, 1], [123, 1], [124, 1], [125, 1], [126, 1], [127, 1], [128, 1], [129, 1], [130, 1], [131, 1], [132, 1], [133, 1], [134, 1], [135, 1], [136, 1], [137, 1], [138, 1], [139, 1], [140, 1], [141, 1], [142, 1], [143, 1], [144, 1], [145, 1], [146, 1], [147, 1], [148, 1], [149, 1], [150, 1], [151, 1], [152, 1], [153, 1], [154, 1], [155, 1], [156, 1], [157, 1], [158, 1], [159, 1], [160, 1], [161, 1], [162, 1], [163, 1], [164, 1], [165, 1], [166, 1], [167, 1], [168, 1], [169, 1], [170, 1], [171, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171]]}, {"function_name": "loadResourceBundle", "code": "  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"pl\", \"PL\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "camel-1.6-2743", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/MulticastProcessor.java", "language": "java", "name": "org.apache.camel.processor.MulticastProcessor", "code": "public class MulticastProcessor extends ServiceSupport implements Processor {\n    static class ProcessorExchangePair {\n        private final Processor processor;\n        private final Exchange exchange;\n\n        public ProcessorExchangePair(Processor processor, Exchange exchange) {\n            this.processor = processor;\n            this.exchange = exchange;\n        }\n\n        public Processor getProcessor() {\n            return processor;\n        }\n\n        public Exchange getExchange() {\n            return exchange;\n        }\n    }\n\n    private Collection<Processor> processors;\n    private AggregationStrategy aggregationStrategy;\n    private boolean isParallelProcessing;\n    private ThreadPoolExecutor executor;\n    private final boolean streaming;\n    private final AtomicBoolean shutdown = new AtomicBoolean(true);\n\n    public MulticastProcessor(Collection<Processor> processors) {\n        this(processors, null);\n    }\n\n    public MulticastProcessor(Collection<Processor> processors, AggregationStrategy aggregationStrategy) {\n        this(processors, aggregationStrategy, false, null);\n    }\n    \n    public MulticastProcessor(Collection<Processor> processors, AggregationStrategy aggregationStrategy, boolean parallelProcessing, ThreadPoolExecutor executor) {\n        this(processors, aggregationStrategy, parallelProcessing, executor, false);\n    }\n\n    public MulticastProcessor(Collection<Processor> processors, AggregationStrategy aggregationStrategy, boolean parallelProcessing, ThreadPoolExecutor executor, boolean streaming) {\n        notNull(processors, \"processors\");\n        this.processors = processors;\n        this.aggregationStrategy = aggregationStrategy;\n        this.isParallelProcessing = parallelProcessing;\n        if (isParallelProcessing) {\n            if (executor != null) {\n                this.executor = executor;\n            } else { \n                this.executor = new ThreadPoolExecutor(processors.size(), processors.size(), 0, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(processors.size()));\n            }\n        }\n        this.streaming = streaming;\n    }\n\n    /**\n     * A helper method to convert a list of endpoints into a list of processors\n     */\n    public static <E extends Exchange> Collection<Processor> toProducers(Collection<Endpoint> endpoints)\n        throws Exception {\n        Collection<Processor> answer = new ArrayList<Processor>();\n        for (Endpoint endpoint : endpoints) {\n            answer.add(endpoint.createProducer());\n        }\n        return answer;\n    }\n\n    @Override\n    public String toString() {\n        return \"Multicast\" + getProcessors();\n    }\n\n    class ProcessCall implements Runnable {\n        private final Exchange exchange;\n        private final AsyncCallback callback;\n        private final Processor processor;\n\n        public ProcessCall(Exchange exchange, Processor processor, AsyncCallback callback) {\n            this.exchange = exchange;\n            this.callback = callback;\n            this.processor = processor;\n        }\n\n        public void run() {\n            if (shutdown.get()) {\n                exchange.setException(new RejectedExecutionException());\n                callback.done(false);\n            } else {\n                try {\n                    processor.process(exchange);\n                } catch (Exception ex) {\n                    exchange.setException(ex);\n                }\n                callback.done(false);\n            }\n        }\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        final AtomicExchange result = new AtomicExchange();\n\n        Iterable<ProcessorExchangePair> pairs = createProcessorExchangePairs(exchange);\n        \n        if (isParallelProcessing) {\n            List<Exchange> exchanges = new LinkedList<Exchange>();\n            final CountingLatch completedExchanges = new CountingLatch();\n            int i = 0;\n            for (ProcessorExchangePair pair : pairs) {\n                Processor producer = pair.getProcessor();\n                final Exchange subExchange = pair.getExchange();\n                updateNewExchange(subExchange, i, pairs);\n                exchanges.add(subExchange);\n                completedExchanges.increment(); \n                ProcessCall call = new ProcessCall(subExchange, producer, new AsyncCallback() {\n                    public void done(boolean doneSynchronously) {\n                        if (streaming && aggregationStrategy != null) {\n                            doAggregate(result, subExchange);\n                        }\n                        completedExchanges.decrement();\n                    }\n\n                });\n                executor.execute(call);\n                i++;\n            }\n            completedExchanges.await();\n            if (!streaming && aggregationStrategy != null) {\n                for (Exchange resultExchange : exchanges) {\n                    doAggregate(result, resultExchange);\n                }\n            }\n\n        } else {\n            int i = 0;\n            for (ProcessorExchangePair pair : pairs) {\n                Processor producer = pair.getProcessor();\n                Exchange subExchange = pair.getExchange();\n                updateNewExchange(subExchange, i, pairs);\n                try {\n                    producer.process(subExchange);\n                } catch (Exception exception) {\n                    subExchange.setException(exception);\n                }\n                doAggregate(result, subExchange);\n                i++;\n            }\n        }\n        if (result.get() != null) {\n            ExchangeHelper.copyResults(exchange, result.get());\n        }\n    }\n\n    /**\n     * Aggregate the {@link Exchange} with the current result\n     *\n     * @param result the current result\n     * @param exchange the exchange to be added to the result\n     */\n    protected synchronized void doAggregate(AtomicExchange result, Exchange exchange) {\n        if (aggregationStrategy != null) {\n            if (result.get() == null) {\n                result.set(exchange);\n            } else {\n                result.set(aggregationStrategy.aggregate(result.get(), exchange));\n            }\n        }\n    }\n\n    protected void updateNewExchange(Exchange exchange, int i, Iterable<ProcessorExchangePair> allPairs) {\n    }\n\n    protected Iterable<ProcessorExchangePair> createProcessorExchangePairs(Exchange exchange) {\n        List<ProcessorExchangePair> result = new ArrayList<ProcessorExchangePair>(processors.size());\n        Processor[] processorsArray = processors.toArray(new Processor[processors.size()]);\n        for (int i = 0; i < processorsArray.length; i++) {\n            result.add(new ProcessorExchangePair(processorsArray[i], exchange.copy()));\n        }\n        return result;\n    }\n\n    protected void doStop() throws Exception {\n        shutdown.set(true);\n        if (executor != null) {\n            executor.shutdown();\n            executor.awaitTermination(0, TimeUnit.SECONDS);\n        }\n        ServiceHelper.stopServices(processors);\n    }\n\n    protected void doStart() throws Exception {\n        shutdown.set(false);\n        if (executor != null) {\n            executor.setRejectedExecutionHandler(new RejectedExecutionHandler() {\n                public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) {\n                    ProcessCall call = (ProcessCall)runnable;\n                    call.exchange.setException(new RejectedExecutionException());\n                    call.callback.done(false);\n                }\n            });\n        }\n        ServiceHelper.startServices(processors);\n    }\n    \n    /**\n     * Is the multicast processor working in streaming mode?\n     * \n     * In streaming mode:\n     * <ul>\n     * <li>we use {@link Iterable} to ensure we can send messages as soon as the data becomes available</li>\n     * <li>for parallel processing, we start aggregating responses as they get send back to the processor;\n     * this means the {@link org.apache.camel.processor.aggregate.AggregationStrategy} has to take care of handling out-of-order arrival of exchanges</li>\n     * </ul>\n     */\n    protected boolean isStreaming() {\n        return streaming;\n    }\n\n    /**\n     * Returns the producers to multicast to\n     */\n    public Collection<Processor> getProcessors() {\n        return processors;\n    }\n\n    public AggregationStrategy getAggregationStrategy() {\n        return aggregationStrategy;", "functions": [{"function_name": "toProducers", "code": "    public static <E extends Exchange> Collection<Processor> toProducers(Collection<Endpoint> endpoints)\n        throws Exception {\n        Collection<Processor> answer = new ArrayList<Processor>();\n        for (Endpoint endpoint : endpoints) {\n            answer.add(endpoint.createProducer());\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Multicast\" + getProcessors();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        final AtomicExchange result = new AtomicExchange();\n\n        Iterable<ProcessorExchangePair> pairs = createProcessorExchangePairs(exchange);\n        \n        if (isParallelProcessing) {\n            List<Exchange> exchanges = new LinkedList<Exchange>();\n            final CountingLatch completedExchanges = new CountingLatch();\n            int i = 0;\n            for (ProcessorExchangePair pair : pairs) {\n                Processor producer = pair.getProcessor();\n                final Exchange subExchange = pair.getExchange();\n                updateNewExchange(subExchange, i, pairs);\n                exchanges.add(subExchange);\n                completedExchanges.increment(); \n                ProcessCall call = new ProcessCall(subExchange, producer, new AsyncCallback() {\n                    public void done(boolean doneSynchronously) {\n                        if (streaming && aggregationStrategy != null) {\n                            doAggregate(result, subExchange);\n                        }\n                        completedExchanges.decrement();\n                    }\n\n                });\n                executor.execute(call);\n                i++;\n            }\n            completedExchanges.await();\n            if (!streaming && aggregationStrategy != null) {\n                for (Exchange resultExchange : exchanges) {\n                    doAggregate(result, resultExchange);\n                }\n            }\n\n        } else {\n            int i = 0;\n            for (ProcessorExchangePair pair : pairs) {\n                Processor producer = pair.getProcessor();\n                Exchange subExchange = pair.getExchange();\n                updateNewExchange(subExchange, i, pairs);\n                try {\n                    producer.process(subExchange);\n                } catch (Exception exception) {\n                    subExchange.setException(exception);\n                }\n                doAggregate(result, subExchange);\n                i++;\n            }\n        }\n        if (result.get() != null) {\n            ExchangeHelper.copyResults(exchange, result.get());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [3, 16], [4, 17], [1, 18], [11, 19], [2, 20], [18, 21], [9, 22], [9, 23], [9, 24], [10, 25], [11, 26], [19, 27], [12, 28], [12, 29], [12, 30], [13, 31], [14, 32], [15, 33], [9, 34], [22, 35], [9, 36], [27, 37], [12, 38], [12, 39], [12, 40], [12, 41], [22, 42], [23, 43], [24, 44], [28, 45], [29, 46], [30, 47], [35, 48], [26, 49], [45, 50], [50, 51], [51, 52], [51, 53], [51, 54], [52, 55], [55, 56], [52, 57], [56, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 3], [17, 4], [18, 1], [19, 11], [20, 2], [21, 18], [22, 9], [23, 9], [24, 9], [25, 10], [26, 11], [27, 19], [28, 12], [29, 12], [30, 12], [31, 13], [32, 14], [33, 15], [34, 9], [35, 22], [36, 9], [37, 27], [38, 12], [39, 12], [40, 12], [41, 12], [42, 22], [43, 23], [44, 24], [45, 28], [46, 29], [47, 30], [48, 35], [49, 26], [50, 45], [51, 50], [52, 51], [53, 51], [54, 51], [55, 52], [56, 55], [57, 52], [58, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "doAggregate", "code": "    protected synchronized void doAggregate(AtomicExchange result, Exchange exchange) {\n        if (aggregationStrategy != null) {\n            if (result.get() == null) {\n                result.set(exchange);\n            } else {\n                result.set(aggregationStrategy.aggregate(result.get(), exchange));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [7, 9], [5, 10], [5, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [9, 7], [10, 5], [11, 5], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "updateNewExchange", "code": "    protected void updateNewExchange(Exchange exchange, int i, Iterable<ProcessorExchangePair> allPairs) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createProcessorExchangePairs", "code": "    protected Iterable<ProcessorExchangePair> createProcessorExchangePairs(Exchange exchange) {\n        List<ProcessorExchangePair> result = new ArrayList<ProcessorExchangePair>(processors.size());\n        Processor[] processorsArray = processors.toArray(new Processor[processors.size()]);\n        for (int i = 0; i < processorsArray.length; i++) {\n            result.add(new ProcessorExchangePair(processorsArray[i], exchange.copy()));\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [2, 9], [2, 10], [8, 11], [9, 12], [7, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 2], [10, 2], [11, 8], [12, 9], [13, 7], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        shutdown.set(true);\n        if (executor != null) {\n            executor.shutdown();\n            executor.awaitTermination(0, TimeUnit.SECONDS);\n        }\n        ServiceHelper.stopServices(processors);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [7, 1], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        shutdown.set(false);\n        if (executor != null) {\n            executor.setRejectedExecutionHandler(new RejectedExecutionHandler() {\n                public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) {\n                    ProcessCall call = (ProcessCall)runnable;\n                    call.exchange.setException(new RejectedExecutionException());\n                    call.callback.done(false);\n                }\n            });\n        }\n        ServiceHelper.startServices(processors);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 7], [7, 8], [8, 9], [9, 10], [9, 11], [9, 12], [9, 13], [9, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [7, 1], [8, 7], [9, 8], [10, 9], [11, 9], [12, 9], [13, 9], [14, 9], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isStreaming", "code": "    protected boolean isStreaming() {\n        return streaming;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProcessors", "code": "    public Collection<Processor> getProcessors() {\n        return processors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAggregationStrategy", "code": "    public AggregationStrategy getAggregationStrategy() {\n        return aggregationStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "MulticastProcessor", "code": "    public MulticastProcessor(Collection<Processor> processors) {\n        this(processors, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MulticastProcessor", "code": "    public MulticastProcessor(Collection<Processor> processors, AggregationStrategy aggregationStrategy) {\n        this(processors, aggregationStrategy, false, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "MulticastProcessor", "code": "    public MulticastProcessor(Collection<Processor> processors, AggregationStrategy aggregationStrategy, boolean parallelProcessing, ThreadPoolExecutor executor) {\n        this(processors, aggregationStrategy, parallelProcessing, executor, false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "MulticastProcessor", "code": "    public MulticastProcessor(Collection<Processor> processors, AggregationStrategy aggregationStrategy, boolean parallelProcessing, ThreadPoolExecutor executor, boolean streaming) {\n        notNull(processors, \"processors\");\n        this.processors = processors;\n        this.aggregationStrategy = aggregationStrategy;\n        this.isParallelProcessing = parallelProcessing;\n        if (isParallelProcessing) {\n            if (executor != null) {\n                this.executor = executor;\n            } else { \n                this.executor = new ThreadPoolExecutor(processors.size(), processors.size(), 0, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(processors.size()));\n            }\n        }\n        this.streaming = streaming;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [11, 13], [12, 14], [14, 15], [12, 16], [12, 17], [16, 18], [18, 19], [18, 20], [18, 21], [18, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 11], [14, 12], [15, 14], [16, 12], [17, 12], [18, 16], [19, 18], [20, 18], [21, 18], [22, 18], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}], "label": 1}
{"sample_id": "jedit-4.3-4763", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/syntax/ModeProvider.java", "language": "java", "name": "org.gjt.sp.jedit.syntax.ModeProvider", "code": "public class ModeProvider\n{\n\tpublic static ModeProvider instance = new ModeProvider();\n\n\tprivate List<Mode> modes = new ArrayList<Mode>(180);\n\n\t//{{{ removeAll() method\n\tpublic void removeAll()\n\t{\n\t\tmodes = new ArrayList<Mode>(180);\n\t} //}}}\n\n\t//{{{ getMode() method\n\t/**\n\t * Returns the edit mode with the specified name.\n\t * @param name The edit mode\n\t * @since jEdit 4.3pre10\n\t */\n\tpublic Mode getMode(String name)\n\t{\n\t\tfor(int i = 0; i < modes.size(); i++)\n\t\t{\n\t\t\tMode mode = modes.get(i);\n\t\t\tif(mode.getName().equals(name))\n\t\t\t\treturn mode;\n\t\t}\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getModeForFile() method\n\t/**\n\t * Get the appropriate mode that must be used for the file\n\t * @param filename the filename\n\t * @param firstLine the first line of the file\n\t * @return the edit mode, or null if no mode match the file\n\t * @since jEdit 4.3pre12\n\t */\n\tpublic Mode getModeForFile(String filename, String firstLine)\n\t{\n\t\tString nogzName = filename.substring(0,filename.length() -\n\t\t\t(filename.endsWith(\".gz\") ? 3 : 0));\n\t\tMode[] modes = getModes();\n\n\t\t// this must be in reverse order so that modes from the user\n\t\t// catalog get checked first!\n\t\tfor(int i = modes.length - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(modes[i].accept(nogzName,firstLine))\n\t\t\t{\n\t\t\t\treturn modes[i];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t} //}}}\n\n\t\n\t//{{{ getModes() method\n\t/**\n\t * Returns an array of installed edit modes.\n\t * @since jEdit 4.3pre10\n\t */\n\tpublic Mode[] getModes()\n\t{\n\t\tMode[] array = new Mode[modes.size()];\n\t\tmodes.toArray(array);\n\t\treturn array;\n\t} //}}}\n\n\t//{{{ addMode() method\n\t/**\n\t * Do not call this method. It is only public so that classes\n\t * in the org.gjt.sp.jedit.syntax package can access it.\n\t * @since jEdit 4.3pre10\n\t * @param mode The edit mode\n\t */\n\tpublic void addMode(Mode mode)\n\t{\n\t\tmodes.add(mode);\n\t} //}}}\n\n\t//{{{ loadMode() method\n\tpublic void loadMode(Mode mode, XModeHandler xmh)\n\t{\n\t\tString fileName = (String)mode.getProperty(\"file\");\n\n\t\tLog.log(Log.NOTICE,this,\"Loading edit mode \" + fileName);\n\n\t\tXMLReader parser;\n\t\ttry\n\t\t{\n\t\t\tparser = XMLReaderFactory.createXMLReader();\n\t\t} catch (SAXException saxe)\n\t\t{\n\t\t\tLog.log(Log.ERROR, this, saxe);\n\t\t\treturn;\n\t\t}\n\t\tmode.setTokenMarker(xmh.getTokenMarker());\n\n\t\tInputStream grammar;\n\n\t\ttry\n\t\t{\n\t\t\tgrammar = new BufferedInputStream(\n\t\t\t\t\tnew FileInputStream(fileName));\n\t\t}\n\t\tcatch (FileNotFoundException e1)\n\t\t{\n\t\t\tInputStream resource = ModeProvider.class.getResourceAsStream(fileName);\n\t\t\tif (resource == null)\n\t\t\t\terror(fileName, e1);\n\t\t\tgrammar = new BufferedInputStream(resource);\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tInputSource isrc = new InputSource(grammar);\n\t\t\tisrc.setSystemId(\"jedit.jar\");\n\t\t\tparser.setContentHandler(xmh);\n\t\t\tparser.setDTDHandler(xmh);\n\t\t\tparser.setEntityResolver(xmh);\n\t\t\tparser.setErrorHandler(xmh);\n\t\t\tparser.parse(isrc);\n\n\t\t\tmode.setProperties(xmh.getModeProperties());\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t\terror(fileName, e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(grammar);\n\t\t}\n\t} //}}}\n\n\t//{{{ loadMode() method\n\tpublic void loadMode(Mode mode)\n\t{\n\t\tXModeHandler xmh = new XModeHandler(mode.getName())\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void error(String what, Object subst)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, this, subst);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic TokenMarker getTokenMarker(String modeName)\n\t\t\t{\n\t\t\t\tMode mode = getMode(modeName);\n\t\t\t\tif(mode == null)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn mode.getTokenMarker();\n\t\t\t}\n\t\t};\n\t\tloadMode(mode, xmh);\n\t} //}}}\n\n\t//{{{ error() method\n\tprotected void error(String file, Throwable e)\n\t{\n\t\tLog.log(Log.ERROR, this, e);", "functions": [{"function_name": "removeAll", "code": "\tpublic void removeAll()\n\t{\n\t\tmodes = new ArrayList<Mode>(180);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMode", "code": "\tpublic Mode getMode(String name)\n\t{\n\t\tfor(int i = 0; i < modes.size(); i++)\n\t\t{\n\t\t\tMode mode = modes.get(i);\n\t\t\tif(mode.getName().equals(name))\n\t\t\t\treturn mode;\n\t\t}\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [10, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 10], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getModeForFile", "code": "\tpublic Mode getModeForFile(String filename, String firstLine)\n\t{\n\t\tString nogzName = filename.substring(0,filename.length() -\n\t\t\t(filename.endsWith(\".gz\") ? 3 : 0));\n\t\tMode[] modes = getModes();\n\n\t\t// this must be in reverse order so that modes from the user\n\t\t// catalog get checked first!\n\t\tfor(int i = modes.length - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(modes[i].accept(nogzName,firstLine))\n\t\t\t{\n\t\t\t\treturn modes[i];\n\t\t\t}\n\t\t}\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [8, 10], [3, 11], [4, 12], [2, 13], [12, 14], [12, 15], [9, 16], [9, 17], [13, 18], [14, 19], [14, 20], [19, 21], [19, 22], [19, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 8], [11, 3], [12, 4], [13, 2], [14, 12], [15, 12], [16, 9], [17, 9], [18, 13], [19, 14], [20, 14], [21, 19], [22, 19], [23, 19], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getModes", "code": "\tpublic Mode[] getModes()\n\t{\n\t\tMode[] array = new Mode[modes.size()];\n\t\tmodes.toArray(array);\n\t\treturn array;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addMode", "code": "\tpublic void addMode(Mode mode)\n\t{\n\t\tmodes.add(mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadMode", "code": "\tpublic void loadMode(Mode mode, XModeHandler xmh)\n\t{\n\t\tString fileName = (String)mode.getProperty(\"file\");\n\n\t\tLog.log(Log.NOTICE,this,\"Loading edit mode \" + fileName);\n\n\t\tXMLReader parser;\n\t\ttry\n\t\t{\n\t\t\tparser = XMLReaderFactory.createXMLReader();\n\t\t} catch (SAXException saxe)\n\t\t{\n\t\t\tLog.log(Log.ERROR, this, saxe);\n\t\t\treturn;\n\t\t}\n\t\tmode.setTokenMarker(xmh.getTokenMarker());\n\n\t\tInputStream grammar;\n\n\t\ttry\n\t\t{\n\t\t\tgrammar = new BufferedInputStream(\n\t\t\t\t\tnew FileInputStream(fileName));\n\t\t}\n\t\tcatch (FileNotFoundException e1)\n\t\t{\n\t\t\tInputStream resource = ModeProvider.class.getResourceAsStream(fileName);\n\t\t\tif (resource == null)\n\t\t\t\terror(fileName, e1);\n\t\t\tgrammar = new BufferedInputStream(resource);\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tInputSource isrc = new InputSource(grammar);\n\t\t\tisrc.setSystemId(\"jedit.jar\");\n\t\t\tparser.setContentHandler(xmh);\n\t\t\tparser.setDTDHandler(xmh);\n\t\t\tparser.setEntityResolver(xmh);\n\t\t\tparser.setErrorHandler(xmh);\n\t\t\tparser.parse(isrc);\n\n\t\t\tmode.setProperties(xmh.getModeProperties());\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t\terror(fileName, e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(grammar);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "VAR_DECL", "CATCH", "CALL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "ASSIGN", "CALL", "RETURN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [2, 11], [0, 12], [4, 13], [0, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [11, 23], [11, 24], [2, 25], [12, 26], [13, 27], [4, 28], [14, 29], [9, 30], [16, 31], [22, 32], [10, 33], [11, 34], [23, 35], [25, 36], [13, 37], [28, 38], [29, 39], [6, 40], [34, 41], [23, 42], [35, 43], [24, 44], [36, 45], [40, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 2], [12, 0], [13, 4], [14, 0], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 11], [24, 11], [25, 2], [26, 12], [27, 13], [28, 4], [29, 14], [30, 9], [31, 16], [32, 22], [33, 10], [34, 11], [35, 23], [36, 25], [37, 13], [38, 28], [39, 29], [40, 6], [41, 34], [42, 23], [43, 35], [44, 24], [45, 36], [46, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "loadMode", "code": "\tpublic void loadMode(Mode mode)\n\t{\n\t\tXModeHandler xmh = new XModeHandler(mode.getName())\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void error(String what, Object subst)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, this, subst);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic TokenMarker getTokenMarker(String modeName)\n\t\t\t{\n\t\t\t\tMode mode = getMode(modeName);\n\t\t\t\tif(mode == null)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn mode.getTokenMarker();\n\t\t\t}\n\t\t};\n\t\tloadMode(mode, xmh);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "CALL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [6, 12], [8, 13], [8, 14], [8, 15], [6, 16], [13, 17], [14, 18], [15, 19], [9, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 6], [13, 8], [14, 8], [15, 8], [16, 6], [17, 13], [18, 14], [19, 15], [20, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "error", "code": "\tprotected void error(String file, Throwable e)\n\t{\n\t\tLog.log(Log.ERROR, this, e);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.6-7776", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/transformer/TreeWalker2Result.java", "language": "java", "name": "org.apache.xalan.transformer.TreeWalker2Result", "code": "public class TreeWalker2Result extends DTMTreeWalker\n{\n\n  /** The transformer instance          */\n  TransformerImpl m_transformer;\n\n  /** The result tree handler          */\n  SerializationHandler m_handler;\n\n  /** Node where to start the tree walk           */\n  int m_startNode;\n\n  /**\n   * Constructor.\n   *\n   * @param transformer Non-null transformer instance\n   * @param handler The Result tree handler to use\n   */\n  public TreeWalker2Result(TransformerImpl transformer,\n                           SerializationHandler handler)\n  {\n\n    super(handler, null);\n\n    m_transformer = transformer;\n    m_handler = handler;\n  }\n\n  /**\n   * Perform a pre-order traversal non-recursive style.\n   *\n   * @param pos Start node for traversal\n   *\n   * @throws TransformerException\n   */\n  public void traverse(int pos) throws org.xml.sax.SAXException\n  {\n    m_dtm = m_transformer.getXPathContext().getDTM(pos);\n    m_startNode = pos;\n\n    super.traverse(pos);\n  }\n        \n        /**\n   * End processing of given node \n   *\n   *\n   * @param node Node we just finished processing\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  protected void endNode(int node) throws org.xml.sax.SAXException\n  {\n    super.endNode(node);\n    if(DTM.ELEMENT_NODE == m_dtm.getNodeType(node))\n    {\n      m_transformer.getXPathContext().popCurrentNode();\n    }\n  }\n\n  /**\n   * Start traversal of the tree at the given node\n   *\n   *\n   * @param node Starting node for traversal\n   *\n   * @throws TransformerException\n   */\n  protected void startNode(int node) throws org.xml.sax.SAXException\n  {\n\n    XPathContext xcntxt = m_transformer.getXPathContext();\n    try\n    {\n      \n      if (DTM.ELEMENT_NODE == m_dtm.getNodeType(node))\n      {\n        xcntxt.pushCurrentNode(node);                   \n                                        \n        if(m_startNode != node)\n        {\n          super.startNode(node);\n        }\n        else\n        {\n          String elemName = m_dtm.getNodeName(node);\n          String localName = m_dtm.getLocalName(node);\n          String namespace = m_dtm.getNamespaceURI(node);\n                                        \n          m_handler.startElement(namespace, localName, elemName);\n          boolean hasNSDecls = false;\n          DTM dtm = m_dtm;\n          for (int ns = dtm.getFirstNamespaceNode(node, true); \n               DTM.NULL != ns; ns = dtm.getNextNamespaceNode(node, ns, true))\n          {\n            SerializerUtils.ensureNamespaceDeclDeclared(m_handler,dtm, ns);\n          }\n                                                \n                                                \n          for (int attr = dtm.getFirstAttribute(node); \n               DTM.NULL != attr; attr = dtm.getNextAttribute(attr))\n          {\n            SerializerUtils.addAttribute(m_handler, attr);\n          }\n        }\n                                \n      }\n      else\n      {\n        xcntxt.pushCurrentNode(node);\n        super.startNode(node);\n        xcntxt.popCurrentNode();\n      }\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "functions": [{"function_name": "traverse", "code": "  public void traverse(int pos) throws org.xml.sax.SAXException\n  {\n    m_dtm = m_transformer.getXPathContext().getDTM(pos);\n    m_startNode = pos;\n\n    super.traverse(pos);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endNode", "code": "  protected void endNode(int node) throws org.xml.sax.SAXException\n  {\n    super.endNode(node);\n    if(DTM.ELEMENT_NODE == m_dtm.getNodeType(node))\n    {\n      m_transformer.getXPathContext().popCurrentNode();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "startNode", "code": "  protected void startNode(int node) throws org.xml.sax.SAXException\n  {\n\n    XPathContext xcntxt = m_transformer.getXPathContext();\n    try\n    {\n      \n      if (DTM.ELEMENT_NODE == m_dtm.getNodeType(node))\n      {\n        xcntxt.pushCurrentNode(node);                   \n                                        \n        if(m_startNode != node)\n        {\n          super.startNode(node);\n        }\n        else\n        {\n          String elemName = m_dtm.getNodeName(node);\n          String localName = m_dtm.getLocalName(node);\n          String namespace = m_dtm.getNamespaceURI(node);\n                                        \n          m_handler.startElement(namespace, localName, elemName);\n          boolean hasNSDecls = false;\n          DTM dtm = m_dtm;\n          for (int ns = dtm.getFirstNamespaceNode(node, true); \n               DTM.NULL != ns; ns = dtm.getNextNamespaceNode(node, ns, true))\n          {\n            SerializerUtils.ensureNamespaceDeclDeclared(m_handler,dtm, ns);\n          }\n                                                \n                                                \n          for (int attr = dtm.getFirstAttribute(node); \n               DTM.NULL != attr; attr = dtm.getNextAttribute(attr))\n          {\n            SerializerUtils.addAttribute(m_handler, attr);\n          }\n        }\n                                \n      }\n      else\n      {\n        xcntxt.pushCurrentNode(node);\n        super.startNode(node);\n        xcntxt.popCurrentNode();\n      }\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [2, 8], [6, 9], [5, 10], [7, 11], [5, 12], [5, 13], [10, 14], [5, 15], [10, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [10, 22], [16, 23], [16, 24], [17, 25], [17, 26], [10, 27], [23, 28], [25, 29], [19, 30], [20, 31], [21, 32], [22, 33], [16, 34], [16, 35], [17, 36], [29, 37], [17, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 2], [9, 6], [10, 5], [11, 7], [12, 5], [13, 5], [14, 10], [15, 5], [16, 10], [17, 10], [18, 10], [19, 10], [20, 10], [21, 10], [22, 10], [23, 16], [24, 16], [25, 17], [26, 17], [27, 10], [28, 23], [29, 25], [30, 19], [31, 20], [32, 21], [33, 22], [34, 16], [35, 16], [36, 17], [37, 29], [38, 17], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "TreeWalker2Result", "code": "  public TreeWalker2Result(TransformerImpl transformer,\n                           SerializationHandler handler)\n  {\n\n    super(handler, null);\n\n    m_transformer = transformer;\n    m_handler = handler;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "log4j-1.1-4910", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/helpers/AbsoluteTimeDateFormat.java", "language": "java", "name": "org.apache.log4j.helpers.AbsoluteTimeDateFormat", "code": "public class AbsoluteTimeDateFormat extends DateFormat {\n\n  /**\n     String constant used to specify {@link\n     org.apache.log4j.helpers.AbsoluteTimeDateFormat} in layouts. Current\n     value is <b>ABSOLUTE</b>.  */\n  public final static String ABS_TIME_DATE_FORMAT = \"ABSOLUTE\";\n\n  /**\n     String constant used to specify {@link\n     org.apache.log4j.helpers.DateTimeDateFormat} in layouts.  Current\n     value is <b>DATE</b>.\n  */\n  public final static String DATE_AND_TIME_DATE_FORMAT = \"DATE\";\n\n  /**\n     String constant used to specify {@link\n     org.apache.log4j.helpers.ISO8601DateFormat} in layouts. Current\n     value is <b>ISO8601</b>.\n  */\n  public final static String ISO8601_DATE_FORMAT = \"ISO8601\";\n\n  public\n  AbsoluteTimeDateFormat() {\n    setCalendar(Calendar.getInstance());\n  }\n  \n  public\n  AbsoluteTimeDateFormat(TimeZone timeZone) {\n    setCalendar(Calendar.getInstance(timeZone));\n  }\n  \n  /**\n     Appends to <code>sbuf</code> the time in the format\n     \"HH:mm:ss,SSS\" for example, \"15:49:37,459\"\n\n     @param date the date to format\n     @param sbuf the string buffer to write to\n     @param fieldPosition remains untouched\n    */\n  public\n  StringBuffer format(Date date, StringBuffer sbuf,\n\t\t      FieldPosition fieldPosition) {\n\n    // We use a previously instantiated Date object to avoid the needless\n    // creation of temporary objects. This saves a few micro-secs.\n    calendar.setTime(date); \n    \n    int hour = calendar.get(Calendar.HOUR_OF_DAY);\n    if(hour < 10) {\n      sbuf.append('0');\n    }\n    sbuf.append(hour);\n    sbuf.append(':');\n\n    int mins = calendar.get(Calendar.MINUTE);\n    if(mins < 10) {\n      sbuf.append('0');\n    }\n    sbuf.append(mins);\n    sbuf.append(':');\n    \n    int secs = calendar.get(Calendar.SECOND);\n    if(secs < 10) {\n      sbuf.append('0');\n    }\n    sbuf.append(secs);\n    sbuf.append(',');\n    \n    int millis = calendar.get(Calendar.MILLISECOND);\n    if(millis < 100) \n      sbuf.append('0');\n    if(millis < 10) \n      sbuf.append('0');\n    \n    sbuf.append(millis);\n    return sbuf;\n  }\n\n  /**\n     This method does not do anything but return <code>null</code>.\n   */\n  public\n  Date parse(String s, ParsePosition pos) {\n    return null;", "functions": [{"function_name": "format", "code": "  StringBuffer format(Date date, StringBuffer sbuf,\n\t\t      FieldPosition fieldPosition) {\n\n    // We use a previously instantiated Date object to avoid the needless\n    // creation of temporary objects. This saves a few micro-secs.\n    calendar.setTime(date); \n    \n    int hour = calendar.get(Calendar.HOUR_OF_DAY);\n    if(hour < 10) {\n      sbuf.append('0');\n    }\n    sbuf.append(hour);\n    sbuf.append(':');\n\n    int mins = calendar.get(Calendar.MINUTE);\n    if(mins < 10) {\n      sbuf.append('0');\n    }\n    sbuf.append(mins);\n    sbuf.append(':');\n    \n    int secs = calendar.get(Calendar.SECOND);\n    if(secs < 10) {\n      sbuf.append('0');\n    }\n    sbuf.append(secs);\n    sbuf.append(',');\n    \n    int millis = calendar.get(Calendar.MILLISECOND);\n    if(millis < 100) \n      sbuf.append('0');\n    if(millis < 10) \n      sbuf.append('0');\n    \n    sbuf.append(millis);\n    return sbuf;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [3, 16], [0, 17], [0, 18], [5, 19], [0, 20], [0, 21], [7, 22], [0, 23], [0, 24], [9, 25], [0, 26], [2, 27], [15, 28], [3, 29], [16, 30], [4, 31], [17, 32], [19, 33], [6, 34], [20, 35], [22, 36], [8, 37], [23, 38], [25, 39], [10, 40], [27, 41], [29, 42], [5, 43], [7, 44], [9, 45], [43, 46], [44, 47], [45, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 3], [17, 0], [18, 0], [19, 5], [20, 0], [21, 0], [22, 7], [23, 0], [24, 0], [25, 9], [26, 0], [27, 2], [28, 15], [29, 3], [30, 16], [31, 4], [32, 17], [33, 19], [34, 6], [35, 20], [36, 22], [37, 8], [38, 23], [39, 25], [40, 10], [41, 27], [42, 29], [43, 5], [44, 7], [45, 9], [46, 43], [47, 44], [48, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "parse", "code": "  Date parse(String s, ParsePosition pos) {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "AbsoluteTimeDateFormat", "code": "  AbsoluteTimeDateFormat() {\n    setCalendar(Calendar.getInstance());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AbsoluteTimeDateFormat", "code": "  AbsoluteTimeDateFormat(TimeZone timeZone) {\n    setCalendar(Calendar.getInstance(timeZone));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "ivy-2.0-3505", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/event/resolve/ResolveDependencyEvent.java", "language": "java", "name": "org.apache.ivy.core.event.resolve.ResolveDependencyEvent", "code": "public class ResolveDependencyEvent extends IvyEvent {\n    private DependencyResolver resolver;\n\n    private DependencyDescriptor dd;\n\n    protected ResolveDependencyEvent(String name, DependencyResolver resolver,\n            DependencyDescriptor dd, ModuleRevisionId requestedRevisionId) {\n        super(name);\n        this.resolver = resolver;\n        this.dd = dd;\n        addAttribute(\"resolver\", this.resolver.getName());\n        addMridAttributes(this.dd.getDependencyRevisionId());\n        addAttributes(this.dd.getQualifiedExtraAttributes());\n        addAttributes(this.dd.getExtraAttributes());\n        addAttribute(\"req-revision\", requestedRevisionId.getRevision());\n        addAttribute(\"req-revision-default\", \n            dd.getDependencyRevisionId().getRevision());\n        addAttribute(\"req-revision-dynamic\", \n            dd.getDynamicConstraintDependencyRevisionId().getRevision());\n        addAttribute(\"req-branch\", requestedRevisionId.getBranch());\n        addAttribute(\"req-branch-default\", dd.getDependencyRevisionId().getBranch());\n    }\n\n    public DependencyDescriptor getDependencyDescriptor() {\n        return dd;\n    }\n\n    public DependencyResolver getResolver() {\n        return resolver;", "functions": [{"function_name": "getDependencyDescriptor", "code": "    public DependencyDescriptor getDependencyDescriptor() {\n        return dd;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getResolver", "code": "    public DependencyResolver getResolver() {\n        return resolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ResolveDependencyEvent", "code": "    protected ResolveDependencyEvent(String name, DependencyResolver resolver,\n            DependencyDescriptor dd, ModuleRevisionId requestedRevisionId) {\n        super(name);\n        this.resolver = resolver;\n        this.dd = dd;\n        addAttribute(\"resolver\", this.resolver.getName());\n        addMridAttributes(this.dd.getDependencyRevisionId());\n        addAttributes(this.dd.getQualifiedExtraAttributes());\n        addAttributes(this.dd.getExtraAttributes());\n        addAttribute(\"req-revision\", requestedRevisionId.getRevision());\n        addAttribute(\"req-revision-default\", \n            dd.getDependencyRevisionId().getRevision());\n        addAttribute(\"req-revision-dynamic\", \n            dd.getDynamicConstraintDependencyRevisionId().getRevision());\n        addAttribute(\"req-branch\", requestedRevisionId.getBranch());\n        addAttribute(\"req-branch-default\", dd.getDependencyRevisionId().getBranch());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [5, 16], [5, 17], [6, 18], [6, 19], [7, 20], [7, 21], [8, 22], [8, 23], [9, 24], [9, 25], [13, 26], [16, 27], [20, 28], [22, 29], [10, 30], [11, 31], [12, 32], [13, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 5], [17, 5], [18, 6], [19, 6], [20, 7], [21, 7], [22, 8], [23, 8], [24, 9], [25, 9], [26, 13], [27, 16], [28, 20], [29, 22], [30, 10], [31, 11], [32, 12], [33, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}], "label": 0}
{"sample_id": "camel-1.4-2194", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/spring/CamelTemplateFactoryBean.java", "language": "java", "name": "org.apache.camel.spring.CamelTemplateFactoryBean", "code": "@XmlRootElement(name = \"template\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class CamelTemplateFactoryBean extends IdentifiedType implements FactoryBean, InitializingBean, CamelContextAware {\n    @XmlAttribute(required = false)\n    private String defaultEndpoint;\n    @XmlTransient\n    private CamelContext camelContext;\n\n    public void afterPropertiesSet() throws Exception {\n        if (camelContext == null) {\n            throw new IllegalArgumentException(\"A CamelContext must be injected!\");\n        }\n    }\n\n    public Object getObject() throws Exception {\n        CamelContext context = getCamelContext();\n        if (defaultEndpoint != null) {\n            Endpoint endpoint = context.getEndpoint(defaultEndpoint);\n            if (endpoint == null) {\n                throw new IllegalArgumentException(\"No endpoint found for URI: \" + defaultEndpoint);\n            } else {\n                return new DefaultProducerTemplate(context, endpoint);\n            }\n        }\n        return new DefaultProducerTemplate(context);\n    }\n\n    public Class getObjectType() {\n        return DefaultProducerTemplate.class;\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public CamelContext getCamelContext() {\n        return camelContext;\n    }\n\n    public void setCamelContext(CamelContext camelContext) {\n        this.camelContext = camelContext;\n    }\n\n    public String getDefaultEndpoint() {\n        return defaultEndpoint;\n    }\n\n    /**\n     * Sets the default endpoint URI used by default for sending message\n     * exchanges\n     */\n    public void setDefaultEndpoint(String defaultEndpoint) {\n        this.defaultEndpoint = defaultEndpoint;", "functions": [{"function_name": "afterPropertiesSet", "code": "    public void afterPropertiesSet() throws Exception {\n        if (camelContext == null) {\n            throw new IllegalArgumentException(\"A CamelContext must be injected!\");", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [5, 6], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getObject", "code": "    public Object getObject() throws Exception {\n        CamelContext context = getCamelContext();\n        if (defaultEndpoint != null) {\n            Endpoint endpoint = context.getEndpoint(defaultEndpoint);\n            if (endpoint == null) {\n                throw new IllegalArgumentException(\"No endpoint found for URI: \" + defaultEndpoint);\n            } else {\n                return new DefaultProducerTemplate(context, endpoint);\n            }\n        }\n        return new DefaultProducerTemplate(context);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [6, 10], [6, 11], [6, 12], [10, 13], [7, 14], [11, 15], [12, 16], [16, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 6], [11, 6], [12, 6], [13, 10], [14, 7], [15, 11], [16, 12], [17, 16], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getObjectType", "code": "    public Class getObjectType() {\n        return DefaultProducerTemplate.class;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCamelContext", "code": "    public CamelContext getCamelContext() {\n        return camelContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCamelContext", "code": "    public void setCamelContext(CamelContext camelContext) {\n        this.camelContext = camelContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultEndpoint", "code": "    public String getDefaultEndpoint() {\n        return defaultEndpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefaultEndpoint", "code": "    public void setDefaultEndpoint(String defaultEndpoint) {\n        this.defaultEndpoint = defaultEndpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.6-552", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/selectors/DifferentSelector.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.DifferentSelector", "code": "public class DifferentSelector extends MappingSelector {\n\n    private FileUtils fileUtils = FileUtils.newFileUtils();\n\n    private boolean ignoreFileTimes = true;\n    private boolean ignoreContents = false;\n\n\n    /**\n     * This flag tells the selector to ignore file times in the comparison\n     * @param ignoreFileTimes if true ignore file times\n     */\n    public void setIgnoreFileTimes(boolean ignoreFileTimes) {\n        this.ignoreFileTimes = ignoreFileTimes;\n    }\n    /**\n     * This flag tells the selector to ignore contents\n     * @param ignoreContents if true ignore contents\n     * @since ant 1.6.3\n     */\n    public void setIgnoreContents(boolean ignoreContents) {\n        this.ignoreContents = ignoreContents;\n    }\n    /**\n     * this test is our selection test that compared the file with the destfile\n     * @param srcfile the source file\n     * @param destfile the destination file\n     * @return true if the files are different\n     */\n    protected boolean selectionTest(File srcfile, File destfile) {\n\n        if (srcfile.exists() != destfile.exists()) {\n            return true;\n        }\n\n        if (srcfile.length() != destfile.length()) {\n            return true;\n        }\n\n        if (!ignoreFileTimes) {\n            boolean sameDate;\n            sameDate = destfile.lastModified() >= srcfile.lastModified() - granularity\n                    && destfile.lastModified() <= srcfile.lastModified() + granularity;\n\n            if (!sameDate) {\n                return true;\n            }\n        }\n        if (!ignoreContents) {\n            try {\n                return !fileUtils.contentEquals(srcfile, destfile);\n            } catch (IOException e) {\n                throw new BuildException(\"while comparing \" + srcfile + \" and \"\n                        + destfile, e);\n            }\n        } else {\n            return false;", "functions": [{"function_name": "setIgnoreFileTimes", "code": "    public void setIgnoreFileTimes(boolean ignoreFileTimes) {\n        this.ignoreFileTimes = ignoreFileTimes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIgnoreContents", "code": "    public void setIgnoreContents(boolean ignoreContents) {\n        this.ignoreContents = ignoreContents;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "selectionTest", "code": "    protected boolean selectionTest(File srcfile, File destfile) {\n\n        if (srcfile.exists() != destfile.exists()) {\n            return true;\n        }\n\n        if (srcfile.length() != destfile.length()) {\n            return true;\n        }\n\n        if (!ignoreFileTimes) {\n            boolean sameDate;\n            sameDate = destfile.lastModified() >= srcfile.lastModified() - granularity\n                    && destfile.lastModified() <= srcfile.lastModified() + granularity;\n\n            if (!sameDate) {\n                return true;\n            }\n        }\n        if (!ignoreContents) {\n            try {\n                return !fileUtils.contentEquals(srcfile, destfile);\n            } catch (IOException e) {\n                throw new BuildException(\"while comparing \" + srcfile + \" and \"\n                        + destfile, e);\n            }\n        } else {\n            return false;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "TRY", "IF", "VAR_DECL", "RETURN", "CALL", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CATCH", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [1, 9], [1, 10], [2, 11], [2, 12], [3, 13], [7, 14], [7, 15], [4, 16], [8, 17], [8, 18], [9, 19], [10, 20], [10, 21], [2, 22], [13, 23], [16, 24], [20, 25], [21, 26], [11, 27], [22, 28], [25, 29], [27, 30], [28, 31], [28, 32], [29, 33], [31, 34], [31, 35], [32, 36], [32, 37], [33, 38], [34, 39], [36, 40], [38, 41], [38, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 1], [10, 1], [11, 2], [12, 2], [13, 3], [14, 7], [15, 7], [16, 4], [17, 8], [18, 8], [19, 9], [20, 10], [21, 10], [22, 2], [23, 13], [24, 16], [25, 20], [26, 21], [27, 11], [28, 22], [29, 25], [30, 27], [31, 28], [32, 28], [33, 29], [34, 31], [35, 31], [36, 32], [37, 32], [38, 33], [39, 34], [40, 36], [41, 38], [42, 38], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}], "label": 0}
{"sample_id": "poi-2.5-5674", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/ddf/EscherTextboxRecord.java", "language": "java", "name": "org.apache.poi.ddf.EscherTextboxRecord", "code": "public class EscherTextboxRecord extends EscherRecord\n{\n    public static final short RECORD_ID = (short)0xF00D;\n    public static final String RECORD_DESCRIPTION = \"msofbtClientTextbox\";\n\n    private static final byte[] NO_BYTES = new byte[0];\n\n    /** The data for this record not including the the 8 byte header */\n    private byte[] thedata = NO_BYTES;\n\n    public EscherTextboxRecord()\n    {\n    }\n\n    /**\n     * This method deserializes the record from a byte array.\n     *\n     * @param data          The byte array containing the escher record information\n     * @param offset        The starting offset into <code>data</code>.\n     * @param recordFactory May be null since this is not a container record.\n     * @return The number of bytes read from the byte array.\n     */\n    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        if ( isContainerRecord() )\n        {\n            int bytesWritten = 0;\n            thedata = new byte[0];\n            offset += 8;\n            bytesWritten += 8;\n            while ( bytesRemaining > 0 )\n            {\n                EscherRecord child = recordFactory.createRecord( data, offset );\n                int childBytesWritten = child.fillFields( data, offset, recordFactory );\n                bytesWritten += childBytesWritten;\n                offset += childBytesWritten;\n                bytesRemaining -= childBytesWritten;\n                getChildRecords().add( child );\n            }\n            return bytesWritten;\n        }\n        else\n        {\n            thedata = new byte[bytesRemaining];\n            System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );\n            return bytesRemaining + 8;\n        }\n    }\n\n    /**\n     * Writes this record and any contained records to the supplied byte\n     * array.\n     *\n     * @return  the number of bytes written.\n     */\n    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        LittleEndian.putShort(data, offset, getOptions());\n        LittleEndian.putShort(data, offset+2, getRecordId());\n        int remainingBytes = thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            remainingBytes += r.getRecordSize();\n        }\n        LittleEndian.putInt(data, offset+4, remainingBytes);\n        System.arraycopy(thedata, 0, data, offset+8, thedata.length);\n        int pos = offset+8+thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            pos += r.serialize(pos, data, listener );\n        }\n\n        listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );\n        int size = pos - offset;\n        if (size != getRecordSize())\n            throw new RecordFormatException(size + \" bytes written but getRecordSize() reports \" + getRecordSize());\n        return size;\n    }\n\n    /**\n     * Returns any extra data associated with this record.  In practice excel\n     * does not seem to put anything here.\n     */\n    public byte[] getData()\n    {\n        return thedata;\n    }\n\n    /**\n     * Returns the number of bytes that are required to serialize this record.\n     *\n     * @return Number of bytes\n     */\n    public int getRecordSize()\n    {\n        return 8 + thedata.length;\n    }\n\n    public Object clone()\n    {\n        return super.clone();\n    }\n\n    /**\n     * The short name for this record\n     */\n    public String getRecordName()\n    {\n        return \"ClientTextbox\";\n    }\n\n    public String toString()\n    {\n        String nl = System.getProperty( \"line.separator\" );\n\n        String theDumpHex = \"\";\n        try\n        {\n            if (thedata.length != 0)\n            {\n                theDumpHex = \"  Extra Data:\" + nl;\n                theDumpHex += HexDump.dump(thedata, 0, 0);\n            }\n        }\n        catch ( Exception e )\n        {\n            theDumpHex = \"Error!!\";\n        }\n\n        return getClass().getName() + \":\" + nl +\n                \"  isContainer: \" + isContainerRecord() + nl +\n                \"  options: 0x\" + HexDump.toHex( getOptions() ) + nl +\n                \"  recordId: 0x\" + HexDump.toHex( getRecordId() ) + nl +\n                \"  numchildren: \" + getChildRecords().size() + nl +\n                theDumpHex;", "functions": [{"function_name": "fillFields", "code": "    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        if ( isContainerRecord() )\n        {\n            int bytesWritten = 0;\n            thedata = new byte[0];\n            offset += 8;\n            bytesWritten += 8;\n            while ( bytesRemaining > 0 )\n            {\n                EscherRecord child = recordFactory.createRecord( data, offset );\n                int childBytesWritten = child.fillFields( data, offset, recordFactory );\n                bytesWritten += childBytesWritten;\n                offset += childBytesWritten;\n                bytesRemaining -= childBytesWritten;\n                getChildRecords().add( child );\n            }\n            return bytesWritten;\n        }\n        else\n        {\n            thedata = new byte[bytesRemaining];\n            System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );\n            return bytesRemaining + 8;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "RETURN", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [7, 12], [1, 13], [1, 14], [9, 15], [1, 16], [1, 17], [1, 18], [12, 19], [13, 20], [13, 21], [9, 22], [9, 23], [15, 24], [16, 25], [17, 26], [10, 27], [21, 28], [9, 29], [9, 30], [9, 31], [9, 32], [18, 33], [29, 34], [22, 35], [23, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 7], [13, 1], [14, 1], [15, 9], [16, 1], [17, 1], [18, 1], [19, 12], [20, 13], [21, 13], [22, 9], [23, 9], [24, 15], [25, 16], [26, 17], [27, 10], [28, 21], [29, 9], [30, 9], [31, 9], [32, 9], [33, 18], [34, 29], [35, 22], [36, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        LittleEndian.putShort(data, offset, getOptions());\n        LittleEndian.putShort(data, offset+2, getRecordId());\n        int remainingBytes = thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            remainingBytes += r.getRecordSize();\n        }\n        LittleEndian.putInt(data, offset+4, remainingBytes);\n        System.arraycopy(thedata, 0, data, offset+8, thedata.length);\n        int pos = offset+8+thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            pos += r.serialize(pos, data, listener );\n        }\n\n        listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );\n        int size = pos - offset;\n        if (size != getRecordSize())\n            throw new RecordFormatException(size + \" bytes written but getRecordSize() reports \" + getRecordSize());\n        return size;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [0, 13], [4, 14], [0, 15], [0, 16], [6, 17], [0, 18], [0, 19], [0, 20], [11, 21], [12, 22], [3, 23], [13, 24], [13, 25], [4, 26], [5, 27], [15, 28], [15, 29], [16, 30], [6, 31], [18, 32], [18, 33], [19, 34], [20, 35], [21, 36], [4, 37], [4, 38], [27, 39], [28, 40], [30, 41], [6, 42], [6, 43], [33, 44], [36, 45], [36, 46], [37, 47], [38, 48], [39, 49], [42, 50], [43, 51], [46, 52], [26, 53], [31, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 0], [14, 4], [15, 0], [16, 0], [17, 6], [18, 0], [19, 0], [20, 0], [21, 11], [22, 12], [23, 3], [24, 13], [25, 13], [26, 4], [27, 5], [28, 15], [29, 15], [30, 16], [31, 6], [32, 18], [33, 18], [34, 19], [35, 20], [36, 21], [37, 4], [38, 4], [39, 27], [40, 28], [41, 30], [42, 6], [43, 6], [44, 33], [45, 36], [46, 36], [47, 37], [48, 38], [49, 39], [50, 42], [51, 43], [52, 46], [53, 26], [54, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "getData", "code": "    public byte[] getData()\n    {\n        return thedata;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 8 + thedata.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "clone", "code": "    public Object clone()\n    {\n        return super.clone();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordName", "code": "    public String getRecordName()\n    {\n        return \"ClientTextbox\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        String nl = System.getProperty( \"line.separator\" );\n\n        String theDumpHex = \"\";\n        try\n        {\n            if (thedata.length != 0)\n            {\n                theDumpHex = \"  Extra Data:\" + nl;\n                theDumpHex += HexDump.dump(thedata, 0, 0);\n            }\n        }\n        catch ( Exception e )\n        {\n            theDumpHex = \"Error!!\";\n        }\n\n        return getClass().getName() + \":\" + nl +\n                \"  isContainer: \" + isContainerRecord() + nl +\n                \"  options: 0x\" + HexDump.toHex( getOptions() ) + nl +\n                \"  recordId: 0x\" + HexDump.toHex( getRecordId() ) + nl +\n                \"  numchildren: \" + getChildRecords().size() + nl +\n                theDumpHex;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [5, 8], [7, 9], [3, 10], [4, 11], [8, 12], [6, 13], [9, 14], [11, 15], [12, 16], [12, 17], [13, 18], [7, 19], [7, 20], [16, 21], [17, 22], [17, 23], [19, 24], [20, 25], [23, 26], [24, 27], [24, 28], [25, 29], [26, 30], [26, 31], [30, 32], [31, 33], [31, 34], [34, 35], [35, 36], [35, 37], [36, 38], [37, 39], [37, 40], [40, 41], [41, 42], [41, 43], [43, 44], [43, 45], [45, 46], [46, 47], [46, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 5], [9, 7], [10, 3], [11, 4], [12, 8], [13, 6], [14, 9], [15, 11], [16, 12], [17, 12], [18, 13], [19, 7], [20, 7], [21, 16], [22, 17], [23, 17], [24, 19], [25, 20], [26, 23], [27, 24], [28, 24], [29, 25], [30, 26], [31, 26], [32, 30], [33, 31], [34, 31], [35, 34], [36, 35], [37, 35], [38, 36], [39, 37], [40, 37], [41, 40], [42, 41], [43, 41], [44, 43], [45, 43], [46, 45], [47, 46], [48, 46], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "EscherTextboxRecord", "code": "    public EscherTextboxRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.5-449", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/email/Mailer.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.email.Mailer", "code": "abstract class Mailer {\n    protected String host = null;\n    protected int port = -1;\n    protected Message message;\n    protected EmailAddress from;\n    protected Vector toList = null;\n    protected Vector ccList = null;\n    protected Vector bccList = null;\n    protected Vector files = null;\n    protected String subject = null;\n    protected Task task;\n    protected boolean includeFileNames = false;\n\n    /**\n     * Sets the mail server\n     *\n     * @param host\n     */\n    public void setHost(String host) {\n        this.host = host;\n    }\n\n\n    /**\n     * Sets the smtp port\n     *\n     * @param port\n     */\n    public void setPort(int port) {\n        this.port = port;\n    }\n\n\n    /**\n     * Sets the message\n     *\n     * @param m\n     */\n    public void setMessage(Message m) {\n        this.message = m;\n    }\n\n\n    /**\n     * Sets the address to send from\n     *\n     * @param from\n     */\n    public void setFrom(EmailAddress from) {\n        this.from = from;\n    }\n\n\n    /**\n     * Set the to addresses\n     *\n     * @param list\n     */\n    public void setToList(Vector list) {\n        this.toList = list;\n    }\n\n\n    /**\n     * Sets the cc addresses\n     *\n     * @param list\n     */\n    public void setCcList(Vector list) {\n        this.ccList = list;\n    }\n\n\n    /**\n     * Sets the bcc addresses\n     *\n     * @param list\n     */\n    public void setBccList(Vector list) {\n        this.bccList = list;\n    }\n\n\n    /**\n     * Sets the files to attach\n     *\n     * @param files\n     */\n    public void setFiles(Vector files) {\n        this.files = files;\n    }\n\n\n    /**\n     * Sets the subject\n     *\n     * @param subject\n     */\n    public void setSubject(String subject) {\n        this.subject = subject;\n    }\n\n\n    /**\n     * Sets the owning task\n     *\n     * @param task\n     */\n    public void setTask(Task task) {\n        this.task = task;\n    }\n\n\n    /**\n     * Indicates whether filenames should be listed in the body\n     *\n     * @param b\n     */\n    public void setIncludeFileNames(boolean b) {\n        this.includeFileNames = b;\n    }\n\n\n    /**\n     * This method should send the email\n     *\n     * @throws BuildException\n     */\n    public abstract void send()\n         throws BuildException;\n\n    /**\n     * Returns the current Date in a format suitable for a SMTP date\n     * header.\n     *\n     * @since Ant 1.5\n     */\n    protected final String getDate() {\n        return DateUtils.getDateForHeader();", "functions": [{"function_name": "setHost", "code": "    public void setHost(String host) {\n        this.host = host;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPort", "code": "    public void setPort(int port) {\n        this.port = port;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMessage", "code": "    public void setMessage(Message m) {\n        this.message = m;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFrom", "code": "    public void setFrom(EmailAddress from) {\n        this.from = from;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setToList", "code": "    public void setToList(Vector list) {\n        this.toList = list;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCcList", "code": "    public void setCcList(Vector list) {\n        this.ccList = list;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBccList", "code": "    public void setBccList(Vector list) {\n        this.bccList = list;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFiles", "code": "    public void setFiles(Vector files) {\n        this.files = files;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSubject", "code": "    public void setSubject(String subject) {\n        this.subject = subject;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTask", "code": "    public void setTask(Task task) {\n        this.task = task;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIncludeFileNames", "code": "    public void setIncludeFileNames(boolean b) {\n        this.includeFileNames = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "send", "code": "    public abstract void send()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDate", "code": "    protected final String getDate() {\n        return DateUtils.getDateForHeader();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6269", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/DefaultDataLabelTextPropertiesRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DefaultDataLabelTextPropertiesRecord", "code": "public class DefaultDataLabelTextPropertiesRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1024;\n    private  short      field_1_categoryDataType;\n    public final static short       CATEGORY_DATA_TYPE_SHOW_LABELS_CHARACTERISTIC = 0;\n    public final static short       CATEGORY_DATA_TYPE_VALUE_AND_PERCENTAGE_CHARACTERISTIC = 1;\n    public final static short       CATEGORY_DATA_TYPE_ALL_TEXT_CHARACTERISTIC = 2;\n\n\n    public DefaultDataLabelTextPropertiesRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a DefaultDataLabelTextProperties record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1024 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public DefaultDataLabelTextPropertiesRecord(RecordInputStream in)\n    {\n        super(in);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a DefaultDataLabelTextProperties record\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_categoryDataType       = in.readShort();\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DEFAULTTEXT]\\n\");\n        buffer.append(\"    .categoryDataType     = \")\n            .append(\"0x\").append(HexDump.toHex(  getCategoryDataType ()))\n            .append(\" (\").append( getCategoryDataType() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/DEFAULTTEXT]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_categoryDataType);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n        DefaultDataLabelTextPropertiesRecord rec = new DefaultDataLabelTextPropertiesRecord();\n    \n        rec.field_1_categoryDataType = field_1_categoryDataType;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the category data type field for the DefaultDataLabelTextProperties record.\n     *\n     * @return  One of \n     *        CATEGORY_DATA_TYPE_SHOW_LABELS_CHARACTERISTIC\n     *        CATEGORY_DATA_TYPE_VALUE_AND_PERCENTAGE_CHARACTERISTIC\n     *        CATEGORY_DATA_TYPE_ALL_TEXT_CHARACTERISTIC\n     */\n    public short getCategoryDataType()\n    {\n        return field_1_categoryDataType;\n    }\n\n    /**\n     * Set the category data type field for the DefaultDataLabelTextProperties record.\n     *\n     * @param field_1_categoryDataType\n     *        One of \n     *        CATEGORY_DATA_TYPE_SHOW_LABELS_CHARACTERISTIC\n     *        CATEGORY_DATA_TYPE_VALUE_AND_PERCENTAGE_CHARACTERISTIC\n     *        CATEGORY_DATA_TYPE_ALL_TEXT_CHARACTERISTIC\n     */\n    public void setCategoryDataType(short field_1_categoryDataType)\n    {\n        this.field_1_categoryDataType = field_1_categoryDataType;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a DefaultDataLabelTextProperties record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_categoryDataType       = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DEFAULTTEXT]\\n\");\n        buffer.append(\"    .categoryDataType     = \")\n            .append(\"0x\").append(HexDump.toHex(  getCategoryDataType ()))\n            .append(\" (\").append( getCategoryDataType() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/DEFAULTTEXT]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [7, 16], [2, 17], [9, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [22, 24], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 6], [16, 7], [17, 2], [18, 9], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_categoryDataType);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [6, 9], [7, 10], [8, 11], [2, 12], [9, 13], [7, 14], [10, 15], [11, 16], [13, 17], [14, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 6], [10, 7], [11, 8], [12, 2], [13, 9], [14, 7], [15, 10], [16, 11], [17, 13], [18, 14], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        DefaultDataLabelTextPropertiesRecord rec = new DefaultDataLabelTextPropertiesRecord();\n    \n        rec.field_1_categoryDataType = field_1_categoryDataType;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCategoryDataType", "code": "    public short getCategoryDataType()\n    {\n        return field_1_categoryDataType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCategoryDataType", "code": "    public void setCategoryDataType(short field_1_categoryDataType)\n    {\n        this.field_1_categoryDataType = field_1_categoryDataType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DefaultDataLabelTextPropertiesRecord", "code": "    public DefaultDataLabelTextPropertiesRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DefaultDataLabelTextPropertiesRecord", "code": "    public DefaultDataLabelTextPropertiesRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "jedit-4.2-4249", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/gui/StatusBar.java", "language": "java", "name": "org.gjt.sp.jedit.gui.StatusBar", "code": "public class StatusBar extends JPanel implements WorkThreadProgressListener\n{\n\t//{{{ StatusBar constructor\n\tpublic StatusBar(View view)\n\t{\n\t\tsuper(new BorderLayout());\n\t\tsetBorder(new CompoundBorder(new EmptyBorder(4,0,0,\n\t\t\t(OperatingSystem.isMacOS() ? 18 : 0)),\n\t\t\tUIManager.getBorder(\"TextField.border\")));\n\n\t\tthis.view = view;\n\n\t\tpanel = new JPanel(new BorderLayout());\n\t\tbox = new Box(BoxLayout.X_AXIS);\n\t\tpanel.add(BorderLayout.EAST,box);\n\t\tadd(BorderLayout.CENTER,panel);\n\n\t\tMouseHandler mouseHandler = new MouseHandler();\n\n\t\tcaretStatus = new ToolTipLabel();\n\t\tcaretStatus.setToolTipText(jEdit.getProperty(\"view.status.caret-tooltip\"));\n\t\tcaretStatus.addMouseListener(mouseHandler);\n\n\t\tmessage = new JLabel(\" \");\n\t\tsetMessageComponent(message);\n\n\t\tmode = new ToolTipLabel();\n\t\tmode.setToolTipText(jEdit.getProperty(\"view.status.mode-tooltip\"));\n\t\tmode.addMouseListener(mouseHandler);\n\n\t\twrap = new ToolTipLabel();\n\t\twrap.setHorizontalAlignment(SwingConstants.CENTER);\n\t\twrap.setToolTipText(jEdit.getProperty(\"view.status.wrap-tooltip\"));\n\t\twrap.addMouseListener(mouseHandler);\n\n\t\tmultiSelect = new ToolTipLabel();\n\t\tmultiSelect.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tmultiSelect.setToolTipText(jEdit.getProperty(\"view.status.multi-tooltip\"));\n\t\tmultiSelect.addMouseListener(mouseHandler);\n\n\t\trectSelect = new ToolTipLabel();\n\t\trectSelect.setHorizontalAlignment(SwingConstants.CENTER);\n\t\trectSelect.setToolTipText(jEdit.getProperty(\"view.status.rect-tooltip\"));\n\t\trectSelect.addMouseListener(mouseHandler);\n\n\t\toverwrite = new ToolTipLabel();\n\t\toverwrite.setHorizontalAlignment(SwingConstants.CENTER);\n\t\toverwrite.setToolTipText(jEdit.getProperty(\"view.status.overwrite-tooltip\"));\n\t\toverwrite.addMouseListener(mouseHandler);\n\n\t\tlineSep = new ToolTipLabel();\n\t\tlineSep.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlineSep.setToolTipText(jEdit.getProperty(\"view.status.linesep-tooltip\"));\n\t\tlineSep.addMouseListener(mouseHandler);\n\t} //}}}\n\n\t//{{{ propertiesChanged() method\n\tpublic void propertiesChanged()\n\t{\n\t\tColor fg = jEdit.getColorProperty(\"view.status.foreground\");\n\t\tColor bg = jEdit.getColorProperty(\"view.status.background\");\n\n\t\tshowCaretStatus = jEdit.getBooleanProperty(\"view.status.show-caret-status\");\n\t\tshowEditMode = jEdit.getBooleanProperty(\"view.status.show-edit-mode\");\n\t\tshowFoldMode = jEdit.getBooleanProperty(\"view.status.show-fold-mode\");\n\t\tshowEncoding = jEdit.getBooleanProperty(\"view.status.show-encoding\");\n\t\tshowWrap = jEdit.getBooleanProperty(\"view.status.show-wrap\");\n\t\tshowMultiSelect = jEdit.getBooleanProperty(\"view.status.show-multi-select\");\n\t\tshowRectSelect = jEdit.getBooleanProperty(\"view.status.show-rect-select\");\n\t\tshowOverwrite = jEdit.getBooleanProperty(\"view.status.show-overwrite\");\n\t\tshowLineSeperator = jEdit.getBooleanProperty(\"view.status.show-line-seperator\");\n\t\tboolean showMemory = jEdit.getBooleanProperty(\"view.status.show-memory\");\n\t\tboolean showClock = jEdit.getBooleanProperty(\"view.status.show-clock\");\n\n\t\tpanel.setBackground(bg);\n\t\tpanel.setForeground(fg);\n\t\tcaretStatus.setBackground(bg);\n\t\tcaretStatus.setForeground(fg);\n\t\tmessage.setBackground(bg);\n\t\tmessage.setForeground(fg);\n\t\tmode.setBackground(bg);\n\t\tmode.setForeground(fg);\n\t\twrap.setBackground(bg);\n\t\twrap.setForeground(fg);\n\t\tmultiSelect.setBackground(bg);\n\t\tmultiSelect.setForeground(fg);\n\t\trectSelect.setBackground(bg);\n\t\trectSelect.setForeground(fg);\n\t\toverwrite.setBackground(bg);\n\t\toverwrite.setForeground(fg);\n\t\tlineSep.setBackground(bg);\n\t\tlineSep.setForeground(fg);\n\n\t\t// retarded GTK look and feel!\n\t\tFont font = new JLabel().getFont();\n\t\t//UIManager.getFont(\"Label.font\");\n\t\tFontMetrics fm = getFontMetrics(font);\n\t\tDimension dim = null;\n\n\t\tif (showCaretStatus)\n\t\t{\n\t\t\tpanel.add(BorderLayout.WEST,caretStatus);\n\n\t\t\tcaretStatus.setFont(font);\n\n\t\t\tdim = new Dimension(fm.stringWidth(caretTestStr),\n\t\t\t\tfm.getHeight());\n                        caretStatus.setPreferredSize(dim);\n\t\t}\n\t\telse\n\t\t\tpanel.remove(caretStatus);\n\n\t\tbox.removeAll();\n\n\t\tif (showEncoding || showEditMode || showFoldMode)\n\t\t\tbox.add(mode);\n\n\t\tif (showWrap)\n\t\t{\n\t\t\tdim = new Dimension(Math.max(\n\t\t\t\tMath.max(fm.charWidth('-'),fm.charWidth('H')),\n\t\t\t\tfm.charWidth('S')) + 1,fm.getHeight());\n\t\t\twrap.setPreferredSize(dim);\n\t\t\twrap.setMaximumSize(dim);\n\t\t\tbox.add(wrap);\n\t\t}\n\n\t\tif (showMultiSelect)\n\t\t{\n\t\t\tdim = new Dimension(\n\t\t\t\tMath.max(fm.charWidth('-'),fm.charWidth('M')) + 1,\n\t\t\t\tfm.getHeight());\n\t\t\tmultiSelect.setPreferredSize(dim);\n\t\t\tmultiSelect.setMaximumSize(dim);\n\t\t\tbox.add(multiSelect);\n\t\t}\n\n\t\tif (showRectSelect)\n\t\t{\n\t\t\tdim = new Dimension(\n\t\t\t\tMath.max(fm.charWidth('-'),fm.charWidth('R')) + 1,\n\t\t\t\tfm.getHeight());\n\t\t\trectSelect.setPreferredSize(dim);\n\t\t\trectSelect.setMaximumSize(dim);\n\t\t\tbox.add(rectSelect);\n\t\t}\n\n\t\tif (showOverwrite)\n\t\t{\n\t\t\tdim = new Dimension(\n\t\t\t\tMath.max(fm.charWidth('-'),fm.charWidth('O')) + 1,\n\t\t\t\tfm.getHeight());\n\t\t\toverwrite.setPreferredSize(dim);\n\t\t\toverwrite.setMaximumSize(dim);\n\t\t\tbox.add(overwrite);\n\t\t}\n\n\t\tif (showLineSeperator)\n\t\t{\n\t\t\tdim = new Dimension(Math.max(\n\t\t\t\tMath.max(fm.charWidth('U'),\n\t\t\t\tfm.charWidth('W')),\n\t\t\t\tfm.charWidth('M')) + 1,\n\t\t\t\tfm.getHeight());\n\t\t\tlineSep.setPreferredSize(dim);\n\t\t\tlineSep.setMaximumSize(dim);\n\t\t\tbox.add(lineSep);\n\t\t}\n\n\t\tif (showMemory)\n\t\t\tbox.add(new MemoryStatus());\n\n\t\tif (showClock)\n\t\t\tbox.add(new Clock());\n\n\t\tupdateBufferStatus();\n\t\tupdateMiscStatus();\n\t} //}}}\n\n\t//{{{ addNotify() method\n\tpublic void addNotify()\n\t{\n\t\tsuper.addNotify();\n\t\tVFSManager.getIOThreadPool().addProgressListener(this);\n\t} //}}}\n\n\t//{{{ removeNotify() method\n\tpublic void removeNotify()\n\t{\n\t\tsuper.removeNotify();\n\t\tVFSManager.getIOThreadPool().removeProgressListener(this);\n\t} //}}}\n\n\t//{{{ WorkThreadListener implementation\n\n\t//{{{ statusUpdate() method\n\tpublic void statusUpdate(final WorkThreadPool threadPool, int threadIndex)\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\t// don't obscure existing message\n\t\t\t\tif(message != null && !\"\".equals(message.getText().trim())\n\t\t\t\t\t&& !currentMessageIsIO)\n\t\t\t\t\treturn;\n\n\t\t\t\tint requestCount = threadPool.getRequestCount();\n\t\t\t\tif(requestCount == 0)\n\t\t\t\t{\n\t\t\t\t\tsetMessageAndClear(jEdit.getProperty(\n\t\t\t\t\t\t\"view.status.io.done\"));\n\t\t\t\t\tcurrentMessageIsIO = true;\n\t\t\t\t}\n\t\t\t\telse if(requestCount == 1)\n\t\t\t\t{\n\t\t\t\t\tsetMessage(jEdit.getProperty(\n\t\t\t\t\t\t\"view.status.io-1\"));\n\t\t\t\t\tcurrentMessageIsIO = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tObject[] args = { new Integer(requestCount) };\n\t\t\t\t\tsetMessage(jEdit.getProperty(\n\t\t\t\t\t\t\"view.status.io\",args));\n\t\t\t\t\tcurrentMessageIsIO = true;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ progressUpdate() method\n\tpublic void progressUpdate(WorkThreadPool threadPool, int threadIndex)\n\t{\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ setMessageAndClear() method\n\t/**\n\t * Show a message for a short period of time.\n\t * @param message The message\n\t * @since jEdit 3.2pre5\n\t */\n\tpublic void setMessageAndClear(String message)\n\t{\n\t\tsetMessage(message);\n\n\t\ttempTimer = new Timer(0,new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\t// so if view is closed in the meantime...\n\t\t\t\tif(isShowing())\n\t\t\t\t\tsetMessage(null);\n\t\t\t}\n\t\t});\n\n\t\ttempTimer.setInitialDelay(10000);\n\t\ttempTimer.setRepeats(false);\n\t\ttempTimer.start();\n\t} //}}}\n\n\t//{{{ setMessage() method\n\t/**\n\t * Displays a status message.\n\t */\n\tpublic void setMessage(String message)\n\t{\n\t\tif(tempTimer != null)\n\t\t{\n\t\t\ttempTimer.stop();\n\t\t\ttempTimer = null;\n\t\t}\n\n\t\tsetMessageComponent(this.message);\n\n\t\tif(message == null)\n\t\t{\n\t\t\tif(view.getMacroRecorder() != null)\n\t\t\t\tthis.message.setText(jEdit.getProperty(\"view.status.recording\"));\n\t\t\telse\n\t\t\t\tthis.message.setText(\" \");\n\t\t}\n\t\telse\n\t\t\tthis.message.setText(message);\n\t} //}}}\n\n\t//{{{ setMessageComponent() method\n\tpublic void setMessageComponent(Component comp)\n\t{\n\t\tcurrentMessageIsIO = false;\n\n\t\tif (comp == null || messageComp == comp)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tmessageComp = comp;\n\t\tpanel.add(BorderLayout.CENTER, messageComp);\n\t} //}}}\n\n\t//{{{ updateCaretStatus() method\n\tpublic void updateCaretStatus()\n\t{\n\t\t//if(!isShowing())\n\t\t//\treturn;\n\n\t\tif (showCaretStatus)\n\t\t{\n\t\t\tBuffer buffer = view.getBuffer();\n\n\t\t\tif(!buffer.isLoaded() ||\n\t\t\t\t/* can happen when switching buffers sometimes */\n\t\t\t\tbuffer != view.getTextArea().getBuffer())\n\t\t\t{\n\t\t\t\tcaretStatus.setText(\" \");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\t\tint currLine = textArea.getCaretLine();\n\n\t\t\t// there must be a better way of fixing this...\n\t\t\t// the problem is that this method can sometimes\n\t\t\t// be called as a result of a text area scroll\n\t\t\t// event, in which case the caret position has\n\t\t\t// not been updated yet.\n\t\t\tif(currLine >= buffer.getLineCount())\n\t\t\t\treturn; // hopefully another caret update will come?\n\n\t\t\tint start = textArea.getLineStartOffset(currLine);\n\t\t\tint dot = textArea.getCaretPosition() - start;\n\n\t\t\t// see above\n\t\t\tif(dot < 0)\n\t\t\t\treturn;\n\n\t\t\tbuffer.getText(start,dot,seg);\n\t\t\tint virtualPosition = MiscUtilities.getVirtualWidth(seg,\n\t\t\t\tbuffer.getTabSize());\n\n\t\t\tbuf.setLength(0);\n\t\t\tbuf.append(Integer.toString(currLine + 1));\n\t\t\tbuf.append(',');\n\t\t\tbuf.append(Integer.toString(dot + 1));\n\n\t\t\tif (virtualPosition != dot)\n\t\t\t{\n\t\t\t\tbuf.append('-');\n\t\t\t\tbuf.append(Integer.toString(virtualPosition + 1));\n\t\t\t}\n\n\t\t\tbuf.append(' ');\n\n\t\t\tint firstLine = textArea.getFirstLine();\n\t\t\tint visible = textArea.getVisibleLines();\n\t\t\tint lineCount = textArea.getDisplayManager().getScrollLineCount();\n\n\t\t\tif (visible >= lineCount)\n\t\t\t{\n\t\t\t\tbuf.append(\"All\");\n\t\t\t}\n\t\t\telse if (firstLine == 0)\n\t\t\t{\n\t\t\t\tbuf.append(\"Top\");\n\t\t\t}\n\t\t\telse if (firstLine + visible >= lineCount)\n\t\t\t{\n\t\t\t\tbuf.append(\"Bot\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat percent = (float)firstLine / (float)lineCount\n\t\t\t\t\t* 100.0f;\n\t\t\t\tbuf.append(Integer.toString((int)percent));\n\t\t\t\tbuf.append('%');\n\t\t\t}\n\n\t\t\tcaretStatus.setText(buf.toString());\n\t\t}\n\t} //}}}\n\n\t//{{{ updateBufferStatus() method\n\tpublic void updateBufferStatus()\n\t{\n\t\t//if(!isShowing())\n\t\t//\treturn;\n\n\t\tBuffer buffer = view.getBuffer();\n\n\t\tif (showWrap)\n\t\t{\n\t\t\tString wrap = buffer.getStringProperty(\"wrap\");\n\t\t\tif(wrap.equals(\"none\"))\n\t\t\t\tthis.wrap.setText(\"-\");\n\t\t\telse if(wrap.equals(\"hard\"))\n\t\t\t\tthis.wrap.setText(\"H\");\n\t\t\telse if(wrap.equals(\"soft\"))\n\t\t\t\tthis.wrap.setText(\"S\");\n\t\t}\n\n\t\tif (showLineSeperator)\n\t\t{\n\t\t\tString lineSep = buffer.getStringProperty(\"lineSeparator\");\n\t\t\tif(\"\\n\".equals(lineSep))\n\t\t\t\tthis.lineSep.setText(\"U\");\n\t\t\telse if(\"\\r\\n\".equals(lineSep))\n\t\t\t\tthis.lineSep.setText(\"W\");\n\t\t\telse if(\"\\r\".equals(lineSep))\n\t\t\t\tthis.lineSep.setText(\"M\");\n\t\t}\n\n\t\tif (showEditMode || showFoldMode || showEncoding)\n\t\t{\n\t\t\t/* This doesn't look pretty and mode line should\n\t\t\t * probably be split up into seperate\n\t\t\t * components/strings\n\t\t\t */\n\t\t\tbuf.setLength(0);\n\n\t\t\tif (buffer.isLoaded())\n\t\t\t{\n\t\t\t\tif (showEditMode)\n\t\t\t\t\tbuf.append(buffer.getMode().getName());\n\t\t\t\tif (showFoldMode)\n\t\t\t\t{\n\t\t\t\t\tif (showEditMode)\n\t\t\t\t\t\tbuf.append(\",\");\n\t\t\t\t\tbuf.append((String)view.getBuffer().getProperty(\"folding\"));\n\t\t\t\t}\n\t\t\t\tif (showEncoding)\n\t\t\t\t{\n\t\t\t\t\tif (showEditMode || showFoldMode)\n\t\t\t\t\t\tbuf.append(\",\");\n\t\t\t\t\tbuf.append(buffer.getStringProperty(\"encoding\"));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmode.setText(\"(\" + buf.toString() + \")\");\n\t\t}\n\t} //}}}\n\n\t//{{{ updateMiscStatus() method\n\tpublic void updateMiscStatus()\n\t{\n\t\t//if(!isShowing())\n\t\t//\treturn;\n\n\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\tif (showMultiSelect)\n\t\t\tmultiSelect.setText(textArea.isMultipleSelectionEnabled()\n\t\t\t\t? \"M\" : \"-\");\n\n\t\tif (showRectSelect)\n\t\t\trectSelect.setText(textArea.isRectangularSelectionEnabled()\n\t\t\t\t? \"R\" : \"-\");\n\n\t\tif (showOverwrite)\n\t\t\toverwrite.setText(textArea.isOverwriteEnabled()\n\t\t\t\t? \"O\" : \"-\");\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate View view;\n\tprivate JPanel panel;\n\tprivate Box box;\n\tprivate ToolTipLabel caretStatus;\n\tprivate Component messageComp;\n\tprivate JLabel message;\n\tprivate JLabel mode;\n\tprivate JLabel wrap;\n\tprivate JLabel multiSelect;\n\tprivate JLabel rectSelect;\n\tprivate JLabel overwrite;\n\tprivate JLabel lineSep;\n\t/* package-private for speed */ StringBuffer buf = new StringBuffer();\n\tprivate Timer tempTimer;\n\tprivate boolean currentMessageIsIO;\n\n\tprivate Segment seg = new Segment();\n\n\tprivate boolean showCaretStatus;\n\tprivate boolean showEditMode;\n\tprivate boolean showFoldMode;\n\tprivate boolean showEncoding;\n\tprivate boolean showWrap;\n\tprivate boolean showMultiSelect;\n\tprivate boolean showRectSelect;\n\tprivate boolean showOverwrite;\n\tprivate boolean showLineSeperator;\n\t//}}}\n\n\tstatic final String caretTestStr = \"9999,999-999 99%\";\n\n\t//{{{ MouseHandler class\n\tclass MouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mouseClicked(MouseEvent evt)\n\t\t{\n\t\t\tBuffer buffer = view.getBuffer();\n\n\t\t\tObject source = evt.getSource();\n\t\t\tif(source == caretStatus)\n\t\t\t{\n\t\t\t\tif(evt.getClickCount() == 2)\n\t\t\t\t\tview.getTextArea().showGoToLineDialog();\n\t\t\t}\n\t\t\telse if(source == mode)\n\t\t\t{\n\t\t\t\tif(evt.getClickCount() == 2)\n\t\t\t\t\tnew BufferOptions(view,view.getBuffer());\n\t\t\t}\n\t\t\telse if(source == wrap)\n\t\t\t\tbuffer.toggleWordWrap(view);\n\t\t\telse if(source == multiSelect)\n\t\t\t\tview.getTextArea().toggleMultipleSelectionEnabled();\n\t\t\telse if(source == rectSelect)\n\t\t\t\tview.getTextArea().toggleRectangularSelectionEnabled();\n\t\t\telse if(source == overwrite)\n\t\t\t\tview.getTextArea().toggleOverwriteEnabled();\n\t\t\telse if(source == lineSep)\n\t\t\t\tbuffer.toggleLineSeparator(view);\n\t\t}\n\t} //}}}\n\n\t//{{{ ToolTipLabel class\n\tclass ToolTipLabel extends JLabel\n\t{\n\t\t//{{{ getToolTipLocation() method\n\t\tpublic Point getToolTipLocation(MouseEvent event)\n\t\t{\n\t\t\treturn new Point(event.getX(),-20);\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ MemoryStatus class\n\tclass MemoryStatus extends JComponent implements ActionListener\n\t{\n\t\t//{{{ MemoryStatus constructor\n\t\tpublic MemoryStatus()\n\t\t{\n\t\t\t// fucking GTK look and feel\n\t\t\tFont font = new JLabel().getFont();\n\t\t\t//Font font = UIManager.getFont(\"Label.font\");\n\t\t\tMemoryStatus.this.setFont(font);\n\n\t\t\tFontRenderContext frc = new FontRenderContext(\n\t\t\t\tnull,false,false);\n\t\t\tRectangle2D bounds = font.getStringBounds(\t\t\n\t\t\t\tmemoryTestStr,frc);\n\t\t\tDimension dim = new Dimension((int)bounds.getWidth(),\n\t\t\t\t(int)bounds.getHeight());\n\t\t\tsetPreferredSize(dim);\n\t\t\tsetMaximumSize(dim);\n\t\t\tlm = font.getLineMetrics(memoryTestStr,frc);\n\n\t\t\tsetForeground(jEdit.getColorProperty(\"view.status.foreground\"));\n\t\t\tsetBackground(jEdit.getColorProperty(\"view.status.background\"));\n\n\t\t\tprogressForeground = jEdit.getColorProperty(\n\t\t\t\t\"view.status.memory.foreground\");\n\t\t\tprogressBackground = jEdit.getColorProperty(\n\t\t\t\t\"view.status.memory.background\");\n\n\t\t\taddMouseListener(new MouseHandler());\n\t\t} //}}}\n\n\t\t//{{{ addNotify() method\n\t\tpublic void addNotify()\n\t\t{\n\t\t\tsuper.addNotify();\n\t\t\ttimer = new Timer(2000,this);\n\t\t\ttimer.start();\n\t\t\tToolTipManager.sharedInstance().registerComponent(this);\n\t\t} //}}}\n\n\t\t//{{{ removeNotify() method\n\t\tpublic void removeNotify()\n\t\t{\n\t\t\ttimer.stop();\n\t\t\tToolTipManager.sharedInstance().unregisterComponent(this);\n\t\t\tsuper.removeNotify();\n\t\t} //}}}\n\n\t\t//{{{ getToolTipText() method\n\t\tpublic String getToolTipText()\n\t\t{\n\t\t\tRuntime runtime = Runtime.getRuntime();\n\t\t\tint freeMemory = (int)(runtime.freeMemory() / 1024);\n\t\t\tint totalMemory = (int)(runtime.totalMemory() / 1024);\n\t\t\tint usedMemory = (totalMemory - freeMemory);\n\t\t\tInteger[] args = { new Integer(usedMemory),\n\t\t\t\tnew Integer(totalMemory) };\n\t\t\treturn jEdit.getProperty(\"view.status.memory-tooltip\",args);\n\t\t} //}}}\n\n\t\t//{{{ getToolTipLocation() method\n\t\tpublic Point getToolTipLocation(MouseEvent event)\n\t\t{\n\t\t\treturn new Point(event.getX(),-20);\n\t\t} //}}}\n\n\t\t//{{{ actionPerformed() method\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tMemoryStatus.this.repaint();\n\t\t} //}}}\n\n\t\t//{{{ paintComponent() method\n\t\tpublic void paintComponent(Graphics g)\n\t\t{\n\t\t\tInsets insets = new Insets(0,0,0,0);//MemoryStatus.this.getBorder().getBorderInsets(this);\n\n\t\t\tRuntime runtime = Runtime.getRuntime();\n\t\t\tint freeMemory = (int)(runtime.freeMemory() / 1024);\n\t\t\tint totalMemory = (int)(runtime.totalMemory() / 1024);\n\t\t\tint usedMemory = (totalMemory - freeMemory);\n\n\t\t\tint width = MemoryStatus.this.getWidth()\n\t\t\t\t- insets.left - insets.right;\n\t\t\tint height = MemoryStatus.this.getHeight()\n\t\t\t\t- insets.top - insets.bottom - 1;\n\n\t\t\tfloat fraction = ((float)usedMemory) / totalMemory;\n\n\t\t\tg.setColor(progressBackground);\n\n\t\t\tg.fillRect(insets.left,insets.top,\n\t\t\t\t(int)(width * fraction),\n\t\t\t\theight);\n\n\t\t\tString str = (usedMemory / 1024) + \"/\"\n\t\t\t\t+ (totalMemory / 1024) + \"Mb\";\n\n\t\t\tFontRenderContext frc = new FontRenderContext(null,false,false);\n\n\t\t\tRectangle2D bounds = g.getFont().getStringBounds(str,frc);\n\t\t\n\t\t\tGraphics g2 = g.create();\n\t\t\tg2.setClip(insets.left,insets.top,\n\t\t\t\t(int)(width * fraction),\n\t\t\t\theight);\n\n\t\t\tg2.setColor(progressForeground);\n\n\t\t\tg2.drawString(str,\n\t\t\t\tinsets.left + (int)(width - bounds.getWidth()) / 2,\n\t\t\t\t(int)(insets.top + lm.getAscent()));\n\n\t\t\tg2.dispose();\n\n\t\t\tg2 = g.create();\n\n\t\t\tg2.setClip(insets.left + (int)(width * fraction),\n\t\t\t\tinsets.top,MemoryStatus.this.getWidth()\n\t\t\t\t- insets.left - (int)(width * fraction),\n\t\t\t\theight);\n\n\t\t\tg2.setColor(MemoryStatus.this.getForeground());\n\n\t\t\tg2.drawString(str,\n\t\t\t\tinsets.left + (int)(width - bounds.getWidth()) / 2,\n\t\t\t\t(int)(insets.top + lm.getAscent()));\n\n\t\t\tg2.dispose();\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate static final String memoryTestStr = \"999/999Mb\";\n\n\t\tprivate LineMetrics lm;\n\t\tprivate Color progressForeground;\n\t\tprivate Color progressBackground;\n\n\t\tprivate Timer timer;\n\t\t//}}}\n\n\t\t//{{{ MouseHandler class\n\t\tclass MouseHandler extends MouseAdapter\n\t\t{\n\t\t\tpublic void mousePressed(MouseEvent evt)\n\t\t\t{\n\t\t\t\tif(evt.getClickCount() == 2)\n\t\t\t\t{\n\t\t\t\t\tjEdit.showMemoryDialog(view);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ Clock class\n\tclass Clock extends JLabel implements ActionListener\n\t{\n\t\t//{{{ Clock constructor\n\t\tpublic Clock()\n\t\t{\n\t\t\t/* FontRenderContext frc = new FontRenderContext(\n\t\t\t\tnull,false,false);\n\t\t\tRectangle2D bounds = getFont()\n\t\t\t\t.getStringBounds(getTime(),frc);\n\t\t\tDimension dim = new Dimension((int)bounds.getWidth(),\n\t\t\t\t(int)bounds.getHeight());\n\t\t\tsetPreferredSize(dim);\n\t\t\tsetMaximumSize(dim); */\n\n\t\t\tsetForeground(jEdit.getColorProperty(\"view.status.foreground\"));\n\t\t\tsetBackground(jEdit.getColorProperty(\"view.status.background\"));\n\t\t} //}}}\n\n\t\t//{{{ addNotify() method\n\t\tpublic void addNotify()\n\t\t{\n\t\t\tsuper.addNotify();\n\t\t\tupdate();\n\n\t\t\tint millisecondsPerMinute = 1000 * 60;\n\n\t\t\ttimer = new Timer(millisecondsPerMinute,this);\n\t\t\ttimer.setInitialDelay((int)(\n\t\t\t\tmillisecondsPerMinute\n\t\t\t\t- System.currentTimeMillis()\n\t\t\t\t% millisecondsPerMinute) + 500);\n\t\t\ttimer.start();\n\t\t\tToolTipManager.sharedInstance().registerComponent(this);\n\t\t} //}}}\n\n\t\t//{{{ removeNotify() method\n\t\tpublic void removeNotify()\n\t\t{\n\t\t\ttimer.stop();\n\t\t\tToolTipManager.sharedInstance().unregisterComponent(this);\n\t\t\tsuper.removeNotify();\n\t\t} //}}}\n\n\t\t//{{{ getToolTipText() method\n\t\tpublic String getToolTipText()\n\t\t{\n\t\t\treturn new Date().toString();\n\t\t} //}}}\n\n\t\t//{{{ getToolTipLocation() method\n\t\tpublic Point getToolTipLocation(MouseEvent event)\n\t\t{\n\t\t\treturn new Point(event.getX(),-20);\n\t\t} //}}}\n\n\t\t//{{{ actionPerformed() method\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tupdate();\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate Timer timer;\n\n\t\t//{{{ getTime() method\n\t\tprivate String getTime()\n\t\t{\n\t\t\treturn DateFormat.getTimeInstance(\n\t\t\t\tDateFormat.SHORT).format(new Date());\n\t\t} //}}}\n\n\t\t//{{{ update() method\n\t\tprivate void update()\n\t\t{\n\t\t\tsetText(getTime());", "functions": [{"function_name": "propertiesChanged", "code": "\tpublic void propertiesChanged()\n\t{\n\t\tColor fg = jEdit.getColorProperty(\"view.status.foreground\");\n\t\tColor bg = jEdit.getColorProperty(\"view.status.background\");\n\n\t\tshowCaretStatus = jEdit.getBooleanProperty(\"view.status.show-caret-status\");\n\t\tshowEditMode = jEdit.getBooleanProperty(\"view.status.show-edit-mode\");\n\t\tshowFoldMode = jEdit.getBooleanProperty(\"view.status.show-fold-mode\");\n\t\tshowEncoding = jEdit.getBooleanProperty(\"view.status.show-encoding\");\n\t\tshowWrap = jEdit.getBooleanProperty(\"view.status.show-wrap\");\n\t\tshowMultiSelect = jEdit.getBooleanProperty(\"view.status.show-multi-select\");\n\t\tshowRectSelect = jEdit.getBooleanProperty(\"view.status.show-rect-select\");\n\t\tshowOverwrite = jEdit.getBooleanProperty(\"view.status.show-overwrite\");\n\t\tshowLineSeperator = jEdit.getBooleanProperty(\"view.status.show-line-seperator\");\n\t\tboolean showMemory = jEdit.getBooleanProperty(\"view.status.show-memory\");\n\t\tboolean showClock = jEdit.getBooleanProperty(\"view.status.show-clock\");\n\n\t\tpanel.setBackground(bg);\n\t\tpanel.setForeground(fg);\n\t\tcaretStatus.setBackground(bg);\n\t\tcaretStatus.setForeground(fg);\n\t\tmessage.setBackground(bg);\n\t\tmessage.setForeground(fg);\n\t\tmode.setBackground(bg);\n\t\tmode.setForeground(fg);\n\t\twrap.setBackground(bg);\n\t\twrap.setForeground(fg);\n\t\tmultiSelect.setBackground(bg);\n\t\tmultiSelect.setForeground(fg);\n\t\trectSelect.setBackground(bg);\n\t\trectSelect.setForeground(fg);\n\t\toverwrite.setBackground(bg);\n\t\toverwrite.setForeground(fg);\n\t\tlineSep.setBackground(bg);\n\t\tlineSep.setForeground(fg);\n\n\t\t// retarded GTK look and feel!\n\t\tFont font = new JLabel().getFont();\n\t\t//UIManager.getFont(\"Label.font\");\n\t\tFontMetrics fm = getFontMetrics(font);\n\t\tDimension dim = null;\n\n\t\tif (showCaretStatus)\n\t\t{\n\t\t\tpanel.add(BorderLayout.WEST,caretStatus);\n\n\t\t\tcaretStatus.setFont(font);\n\n\t\t\tdim = new Dimension(fm.stringWidth(caretTestStr),\n\t\t\t\tfm.getHeight());\n                        caretStatus.setPreferredSize(dim);\n\t\t}\n\t\telse\n\t\t\tpanel.remove(caretStatus);\n\n\t\tbox.removeAll();\n\n\t\tif (showEncoding || showEditMode || showFoldMode)\n\t\t\tbox.add(mode);\n\n\t\tif (showWrap)\n\t\t{\n\t\t\tdim = new Dimension(Math.max(\n\t\t\t\tMath.max(fm.charWidth('-'),fm.charWidth('H')),\n\t\t\t\tfm.charWidth('S')) + 1,fm.getHeight());\n\t\t\twrap.setPreferredSize(dim);\n\t\t\twrap.setMaximumSize(dim);\n\t\t\tbox.add(wrap);\n\t\t}\n\n\t\tif (showMultiSelect)\n\t\t{\n\t\t\tdim = new Dimension(\n\t\t\t\tMath.max(fm.charWidth('-'),fm.charWidth('M')) + 1,\n\t\t\t\tfm.getHeight());\n\t\t\tmultiSelect.setPreferredSize(dim);\n\t\t\tmultiSelect.setMaximumSize(dim);\n\t\t\tbox.add(multiSelect);\n\t\t}\n\n\t\tif (showRectSelect)\n\t\t{\n\t\t\tdim = new Dimension(\n\t\t\t\tMath.max(fm.charWidth('-'),fm.charWidth('R')) + 1,\n\t\t\t\tfm.getHeight());\n\t\t\trectSelect.setPreferredSize(dim);\n\t\t\trectSelect.setMaximumSize(dim);\n\t\t\tbox.add(rectSelect);\n\t\t}\n\n\t\tif (showOverwrite)\n\t\t{\n\t\t\tdim = new Dimension(\n\t\t\t\tMath.max(fm.charWidth('-'),fm.charWidth('O')) + 1,\n\t\t\t\tfm.getHeight());\n\t\t\toverwrite.setPreferredSize(dim);\n\t\t\toverwrite.setMaximumSize(dim);\n\t\t\tbox.add(overwrite);\n\t\t}\n\n\t\tif (showLineSeperator)\n\t\t{\n\t\t\tdim = new Dimension(Math.max(\n\t\t\t\tMath.max(fm.charWidth('U'),\n\t\t\t\tfm.charWidth('W')),\n\t\t\t\tfm.charWidth('M')) + 1,\n\t\t\t\tfm.getHeight());\n\t\t\tlineSep.setPreferredSize(dim);\n\t\t\tlineSep.setMaximumSize(dim);\n\t\t\tbox.add(lineSep);\n\t\t}\n\n\t\tif (showMemory)\n\t\t\tbox.add(new MemoryStatus());\n\n\t\tif (showClock)\n\t\t\tbox.add(new Clock());\n\n\t\tupdateBufferStatus();\n\t\tupdateMiscStatus();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [8, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [1, 48], [2, 49], [8, 50], [19, 51], [9, 52], [10, 53], [11, 54], [12, 55], [13, 56], [14, 57], [39, 58], [40, 59], [41, 60], [42, 61], [43, 62], [44, 63], [45, 64], [46, 65], [47, 66], [15, 67], [16, 68], [48, 69], [49, 70], [3, 71], [3, 72], [3, 73], [3, 74], [4, 75], [4, 76], [4, 77], [4, 78], [5, 79], [5, 80], [5, 81], [5, 82], [6, 83], [6, 84], [6, 85], [6, 86], [7, 87], [7, 88], [7, 89], [7, 90], [9, 91], [9, 92], [9, 93], [9, 94], [55, 95], [56, 96], [57, 97], [58, 98], [59, 99], [60, 100], [61, 101], [62, 102], [63, 103], [64, 104], [65, 105], [66, 106], [67, 107], [68, 108], [74, 109], [78, 110], [82, 111], [86, 112], [90, 113], [92, 114], [109, 115], [109, 116], [110, 117], [110, 118], [111, 119], [111, 120], [112, 121], [112, 122], [113, 123], [113, 124], [114, 125], [114, 126], [116, 127], [116, 128], [118, 129], [118, 130], [120, 131], [120, 132], [122, 133], [122, 134], [124, 135], [124, 136], [128, 137], [128, 138], [130, 139], [130, 140], [132, 141], [132, 142], [134, 143], [134, 144], [136, 145], [136, 146], [137, 147], [138, 148], [138, 149], [139, 150], [140, 151], [141, 152], [142, 153], [143, 154], [144, 155], [145, 156], [146, 157], [146, 158], [148, 159], [149, 160], [157, 161], [158, 162], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 8], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 1], [49, 2], [50, 8], [51, 19], [52, 9], [53, 10], [54, 11], [55, 12], [56, 13], [57, 14], [58, 39], [59, 40], [60, 41], [61, 42], [62, 43], [63, 44], [64, 45], [65, 46], [66, 47], [67, 15], [68, 16], [69, 48], [70, 49], [71, 3], [72, 3], [73, 3], [74, 3], [75, 4], [76, 4], [77, 4], [78, 4], [79, 5], [80, 5], [81, 5], [82, 5], [83, 6], [84, 6], [85, 6], [86, 6], [87, 7], [88, 7], [89, 7], [90, 7], [91, 9], [92, 9], [93, 9], [94, 9], [95, 55], [96, 56], [97, 57], [98, 58], [99, 59], [100, 60], [101, 61], [102, 62], [103, 63], [104, 64], [105, 65], [106, 66], [107, 67], [108, 68], [109, 74], [110, 78], [111, 82], [112, 86], [113, 90], [114, 92], [115, 109], [116, 109], [117, 110], [118, 110], [119, 111], [120, 111], [121, 112], [122, 112], [123, 113], [124, 113], [125, 114], [126, 114], [127, 116], [128, 116], [129, 118], [130, 118], [131, 120], [132, 120], [133, 122], [134, 122], [135, 124], [136, 124], [137, 128], [138, 128], [139, 130], [140, 130], [141, 132], [142, 132], [143, 134], [144, 134], [145, 136], [146, 136], [147, 137], [148, 138], [149, 138], [150, 139], [151, 140], [152, 141], [153, 142], [154, 143], [155, 144], [156, 145], [157, 146], [158, 146], [159, 148], [160, 149], [161, 157], [162, 158], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162]]}, {"function_name": "addNotify", "code": "\tpublic void addNotify()\n\t{\n\t\tsuper.addNotify();\n\t\tVFSManager.getIOThreadPool().addProgressListener(this);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeNotify", "code": "\tpublic void removeNotify()\n\t{\n\t\tsuper.removeNotify();\n\t\tVFSManager.getIOThreadPool().removeProgressListener(this);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "statusUpdate", "code": "\tpublic void statusUpdate(final WorkThreadPool threadPool, int threadIndex)\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\t// don't obscure existing message\n\t\t\t\tif(message != null && !\"\".equals(message.getText().trim())\n\t\t\t\t\t&& !currentMessageIsIO)\n\t\t\t\t\treturn;\n\n\t\t\t\tint requestCount = threadPool.getRequestCount();\n\t\t\t\tif(requestCount == 0)\n\t\t\t\t{\n\t\t\t\t\tsetMessageAndClear(jEdit.getProperty(\n\t\t\t\t\t\t\"view.status.io.done\"));\n\t\t\t\t\tcurrentMessageIsIO = true;\n\t\t\t\t}\n\t\t\t\telse if(requestCount == 1)\n\t\t\t\t{\n\t\t\t\t\tsetMessage(jEdit.getProperty(\n\t\t\t\t\t\t\"view.status.io-1\"));\n\t\t\t\t\tcurrentMessageIsIO = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tObject[] args = { new Integer(requestCount) };\n\t\t\t\t\tsetMessage(jEdit.getProperty(\n\t\t\t\t\t\t\"view.status.io\",args));\n\t\t\t\t\tcurrentMessageIsIO = true;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [6, 9], [6, 10], [8, 11], [8, 12], [9, 13], [10, 14], [7, 15], [12, 16], [9, 17], [13, 18], [6, 19], [6, 20], [16, 21], [16, 22], [9, 23], [9, 24], [9, 25], [9, 26], [19, 27], [20, 28], [21, 29], [22, 30], [23, 31], [24, 32], [25, 33], [26, 34], [28, 35], [29, 36], [32, 37], [17, 38], [34, 39], [36, 40], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 6], [10, 6], [11, 8], [12, 8], [13, 9], [14, 10], [15, 7], [16, 12], [17, 9], [18, 13], [19, 6], [20, 6], [21, 16], [22, 16], [23, 9], [24, 9], [25, 9], [26, 9], [27, 19], [28, 20], [29, 21], [30, 22], [31, 23], [32, 24], [33, 25], [34, 26], [35, 28], [36, 29], [37, 32], [38, 17], [39, 34], [40, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "progressUpdate", "code": "\tpublic void progressUpdate(WorkThreadPool threadPool, int threadIndex)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMessageAndClear", "code": "\tpublic void setMessageAndClear(String message)\n\t{\n\t\tsetMessage(message);\n\n\t\ttempTimer = new Timer(0,new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\t// so if view is closed in the meantime...\n\t\t\t\tif(isShowing())\n\t\t\t\t\tsetMessage(null);\n\t\t\t}\n\t\t});\n\n\t\ttempTimer.setInitialDelay(10000);\n\t\ttempTimer.setRepeats(false);\n\t\ttempTimer.start();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [5, 9], [9, 10], [9, 11], [10, 12], [12, 13], [12, 14], [13, 15], [13, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 5], [10, 9], [11, 9], [12, 10], [13, 12], [14, 12], [15, 13], [16, 13], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setMessage", "code": "\tpublic void setMessage(String message)\n\t{\n\t\tif(tempTimer != null)\n\t\t{\n\t\t\ttempTimer.stop();\n\t\t\ttempTimer = null;\n\t\t}\n\n\t\tsetMessageComponent(this.message);\n\n\t\tif(message == null)\n\t\t{\n\t\t\tif(view.getMacroRecorder() != null)\n\t\t\t\tthis.message.setText(jEdit.getProperty(\"view.status.recording\"));\n\t\t\telse\n\t\t\t\tthis.message.setText(\" \");\n\t\t}\n\t\telse\n\t\t\tthis.message.setText(message);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 7], [4, 8], [6, 9], [1, 10], [7, 11], [2, 12], [2, 13], [11, 14], [11, 15], [12, 16], [7, 17], [7, 18], [17, 19], [18, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 1], [8, 4], [9, 6], [10, 1], [11, 7], [12, 2], [13, 2], [14, 11], [15, 11], [16, 12], [17, 7], [18, 7], [19, 17], [20, 18], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setMessageComponent", "code": "\tpublic void setMessageComponent(Component comp)\n\t{\n\t\tcurrentMessageIsIO = false;\n\n\t\tif (comp == null || messageComp == comp)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tmessageComp = comp;\n\t\tpanel.add(BorderLayout.CENTER, messageComp);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [5, 8], [5, 9], [6, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 5], [9, 5], [10, 6], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "updateCaretStatus", "code": "\tpublic void updateCaretStatus()\n\t{\n\t\t//if(!isShowing())\n\t\t//\treturn;\n\n\t\tif (showCaretStatus)\n\t\t{\n\t\t\tBuffer buffer = view.getBuffer();\n\n\t\t\tif(!buffer.isLoaded() ||\n\t\t\t\t/* can happen when switching buffers sometimes */\n\t\t\t\tbuffer != view.getTextArea().getBuffer())\n\t\t\t{\n\t\t\t\tcaretStatus.setText(\" \");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\t\tint currLine = textArea.getCaretLine();\n\n\t\t\t// there must be a better way of fixing this...\n\t\t\t// the problem is that this method can sometimes\n\t\t\t// be called as a result of a text area scroll\n\t\t\t// event, in which case the caret position has\n\t\t\t// not been updated yet.\n\t\t\tif(currLine >= buffer.getLineCount())\n\t\t\t\treturn; // hopefully another caret update will come?\n\n\t\t\tint start = textArea.getLineStartOffset(currLine);\n\t\t\tint dot = textArea.getCaretPosition() - start;\n\n\t\t\t// see above\n\t\t\tif(dot < 0)\n\t\t\t\treturn;\n\n\t\t\tbuffer.getText(start,dot,seg);\n\t\t\tint virtualPosition = MiscUtilities.getVirtualWidth(seg,\n\t\t\t\tbuffer.getTabSize());\n\n\t\t\tbuf.setLength(0);\n\t\t\tbuf.append(Integer.toString(currLine + 1));\n\t\t\tbuf.append(',');\n\t\t\tbuf.append(Integer.toString(dot + 1));\n\n\t\t\tif (virtualPosition != dot)\n\t\t\t{\n\t\t\t\tbuf.append('-');\n\t\t\t\tbuf.append(Integer.toString(virtualPosition + 1));\n\t\t\t}\n\n\t\t\tbuf.append(' ');\n\n\t\t\tint firstLine = textArea.getFirstLine();\n\t\t\tint visible = textArea.getVisibleLines();\n\t\t\tint lineCount = textArea.getDisplayManager().getScrollLineCount();\n\n\t\t\tif (visible >= lineCount)\n\t\t\t{\n\t\t\t\tbuf.append(\"All\");\n\t\t\t}\n\t\t\telse if (firstLine == 0)\n\t\t\t{\n\t\t\t\tbuf.append(\"Top\");\n\t\t\t}\n\t\t\telse if (firstLine + visible >= lineCount)\n\t\t\t{\n\t\t\t\tbuf.append(\"Bot\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat percent = (float)firstLine / (float)lineCount\n\t\t\t\t\t* 100.0f;\n\t\t\t\tbuf.append(Integer.toString((int)percent));\n\t\t\t\tbuf.append('%');\n\t\t\t}\n\n\t\t\tcaretStatus.setText(buf.toString());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [2, 17], [2, 18], [1, 19], [6, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [8, 26], [8, 27], [11, 28], [11, 29], [14, 30], [16, 31], [17, 32], [17, 33], [3, 34], [4, 35], [5, 36], [19, 37], [21, 38], [22, 39], [23, 40], [24, 41], [7, 42], [27, 43], [9, 44], [10, 45], [29, 46], [12, 47], [13, 48], [14, 49], [30, 50], [30, 51], [15, 52], [32, 53], [33, 54], [2, 55], [34, 56], [6, 57], [6, 58], [38, 59], [40, 60], [42, 61], [44, 62], [14, 63], [50, 64], [32, 65], [53, 66], [17, 67], [55, 68], [57, 69], [58, 70], [59, 71], [60, 72], [63, 73], [64, 74], [32, 75], [32, 76], [32, 77], [67, 78], [69, 79], [75, 80], [76, 81], [65, 82], [77, 83], [79, 84], [82, 85], [82, 86], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 2], [18, 2], [19, 1], [20, 6], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 8], [27, 8], [28, 11], [29, 11], [30, 14], [31, 16], [32, 17], [33, 17], [34, 3], [35, 4], [36, 5], [37, 19], [38, 21], [39, 22], [40, 23], [41, 24], [42, 7], [43, 27], [44, 9], [45, 10], [46, 29], [47, 12], [48, 13], [49, 14], [50, 30], [51, 30], [52, 15], [53, 32], [54, 33], [55, 2], [56, 34], [57, 6], [58, 6], [59, 38], [60, 40], [61, 42], [62, 44], [63, 14], [64, 50], [65, 32], [66, 53], [67, 17], [68, 55], [69, 57], [70, 58], [71, 59], [72, 60], [73, 63], [74, 64], [75, 32], [76, 32], [77, 32], [78, 67], [79, 69], [80, 75], [81, 76], [82, 65], [83, 77], [84, 79], [85, 82], [86, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "updateBufferStatus", "code": "\tpublic void updateBufferStatus()\n\t{\n\t\t//if(!isShowing())\n\t\t//\treturn;\n\n\t\tBuffer buffer = view.getBuffer();\n\n\t\tif (showWrap)\n\t\t{\n\t\t\tString wrap = buffer.getStringProperty(\"wrap\");\n\t\t\tif(wrap.equals(\"none\"))\n\t\t\t\tthis.wrap.setText(\"-\");\n\t\t\telse if(wrap.equals(\"hard\"))\n\t\t\t\tthis.wrap.setText(\"H\");\n\t\t\telse if(wrap.equals(\"soft\"))\n\t\t\t\tthis.wrap.setText(\"S\");\n\t\t}\n\n\t\tif (showLineSeperator)\n\t\t{\n\t\t\tString lineSep = buffer.getStringProperty(\"lineSeparator\");\n\t\t\tif(\"\\n\".equals(lineSep))\n\t\t\t\tthis.lineSep.setText(\"U\");\n\t\t\telse if(\"\\r\\n\".equals(lineSep))\n\t\t\t\tthis.lineSep.setText(\"W\");\n\t\t\telse if(\"\\r\".equals(lineSep))\n\t\t\t\tthis.lineSep.setText(\"M\");\n\t\t}\n\n\t\tif (showEditMode || showFoldMode || showEncoding)\n\t\t{\n\t\t\t/* This doesn't look pretty and mode line should\n\t\t\t * probably be split up into seperate\n\t\t\t * components/strings\n\t\t\t */\n\t\t\tbuf.setLength(0);\n\n\t\t\tif (buffer.isLoaded())\n\t\t\t{\n\t\t\t\tif (showEditMode)\n\t\t\t\t\tbuf.append(buffer.getMode().getName());\n\t\t\t\tif (showFoldMode)\n\t\t\t\t{\n\t\t\t\t\tif (showEditMode)\n\t\t\t\t\t\tbuf.append(\",\");\n\t\t\t\t\tbuf.append((String)view.getBuffer().getProperty(\"folding\"));\n\t\t\t\t}\n\t\t\t\tif (showEncoding)\n\t\t\t\t{\n\t\t\t\t\tif (showEditMode || showFoldMode)\n\t\t\t\t\t\tbuf.append(\",\");\n\t\t\t\t\tbuf.append(buffer.getStringProperty(\"encoding\"));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmode.setText(\"(\" + buf.toString() + \")\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "IF", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "IF", "IF", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [2, 9], [3, 10], [3, 11], [4, 12], [1, 13], [6, 14], [1, 15], [8, 16], [8, 17], [10, 18], [10, 19], [13, 20], [6, 21], [6, 22], [6, 23], [15, 24], [16, 25], [16, 26], [17, 27], [9, 28], [18, 29], [18, 30], [19, 31], [11, 32], [20, 33], [20, 34], [25, 35], [26, 36], [8, 37], [28, 38], [29, 39], [30, 40], [10, 41], [32, 42], [34, 43], [34, 44], [21, 45], [22, 46], [23, 47], [35, 48], [16, 49], [37, 50], [39, 51], [18, 52], [41, 53], [21, 54], [45, 55], [22, 56], [47, 57], [25, 58], [49, 59], [29, 60], [52, 61], [54, 62], [45, 63], [46, 64], [57, 65], [58, 66], [60, 67], [62, 68], [63, 69], [56, 70], [64, 71], [70, 72], [72, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 2], [10, 3], [11, 3], [12, 4], [13, 1], [14, 6], [15, 1], [16, 8], [17, 8], [18, 10], [19, 10], [20, 13], [21, 6], [22, 6], [23, 6], [24, 15], [25, 16], [26, 16], [27, 17], [28, 9], [29, 18], [30, 18], [31, 19], [32, 11], [33, 20], [34, 20], [35, 25], [36, 26], [37, 8], [38, 28], [39, 29], [40, 30], [41, 10], [42, 32], [43, 34], [44, 34], [45, 21], [46, 22], [47, 23], [48, 35], [49, 16], [50, 37], [51, 39], [52, 18], [53, 41], [54, 21], [55, 45], [56, 22], [57, 47], [58, 25], [59, 49], [60, 29], [61, 52], [62, 54], [63, 45], [64, 46], [65, 57], [66, 58], [67, 60], [68, 62], [69, 63], [70, 56], [71, 64], [72, 70], [73, 72], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "updateMiscStatus", "code": "\tpublic void updateMiscStatus()\n\t{\n\t\t//if(!isShowing())\n\t\t//\treturn;\n\n\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\tif (showMultiSelect)\n\t\t\tmultiSelect.setText(textArea.isMultipleSelectionEnabled()\n\t\t\t\t? \"M\" : \"-\");\n\n\t\tif (showRectSelect)\n\t\t\trectSelect.setText(textArea.isRectangularSelectionEnabled()\n\t\t\t\t? \"R\" : \"-\");\n\n\t\tif (showOverwrite)\n\t\t\toverwrite.setText(textArea.isOverwriteEnabled()\n\t\t\t\t? \"O\" : \"-\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [9, 12], [9, 13], [9, 14], [10, 15], [10, 16], [10, 17], [11, 18], [11, 19], [11, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 5], [10, 6], [11, 7], [12, 9], [13, 9], [14, 9], [15, 10], [16, 10], [17, 10], [18, 11], [19, 11], [20, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "StatusBar", "code": "\tpublic StatusBar(View view)\n\t{\n\t\tsuper(new BorderLayout());\n\t\tsetBorder(new CompoundBorder(new EmptyBorder(4,0,0,\n\t\t\t(OperatingSystem.isMacOS() ? 18 : 0)),\n\t\t\tUIManager.getBorder(\"TextField.border\")));\n\n\t\tthis.view = view;\n\n\t\tpanel = new JPanel(new BorderLayout());\n\t\tbox = new Box(BoxLayout.X_AXIS);\n\t\tpanel.add(BorderLayout.EAST,box);\n\t\tadd(BorderLayout.CENTER,panel);\n\n\t\tMouseHandler mouseHandler = new MouseHandler();\n\n\t\tcaretStatus = new ToolTipLabel();\n\t\tcaretStatus.setToolTipText(jEdit.getProperty(\"view.status.caret-tooltip\"));\n\t\tcaretStatus.addMouseListener(mouseHandler);\n\n\t\tmessage = new JLabel(\" \");\n\t\tsetMessageComponent(message);\n\n\t\tmode = new ToolTipLabel();\n\t\tmode.setToolTipText(jEdit.getProperty(\"view.status.mode-tooltip\"));\n\t\tmode.addMouseListener(mouseHandler);\n\n\t\twrap = new ToolTipLabel();\n\t\twrap.setHorizontalAlignment(SwingConstants.CENTER);\n\t\twrap.setToolTipText(jEdit.getProperty(\"view.status.wrap-tooltip\"));\n\t\twrap.addMouseListener(mouseHandler);\n\n\t\tmultiSelect = new ToolTipLabel();\n\t\tmultiSelect.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tmultiSelect.setToolTipText(jEdit.getProperty(\"view.status.multi-tooltip\"));\n\t\tmultiSelect.addMouseListener(mouseHandler);\n\n\t\trectSelect = new ToolTipLabel();\n\t\trectSelect.setHorizontalAlignment(SwingConstants.CENTER);\n\t\trectSelect.setToolTipText(jEdit.getProperty(\"view.status.rect-tooltip\"));\n\t\trectSelect.addMouseListener(mouseHandler);\n\n\t\toverwrite = new ToolTipLabel();\n\t\toverwrite.setHorizontalAlignment(SwingConstants.CENTER);\n\t\toverwrite.setToolTipText(jEdit.getProperty(\"view.status.overwrite-tooltip\"));\n\t\toverwrite.addMouseListener(mouseHandler);\n\n\t\tlineSep = new ToolTipLabel();\n\t\tlineSep.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlineSep.setToolTipText(jEdit.getProperty(\"view.status.linesep-tooltip\"));\n\t\tlineSep.addMouseListener(mouseHandler);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [4, 38], [6, 39], [8, 40], [10, 41], [12, 42], [14, 43], [16, 44], [18, 45], [20, 46], [22, 47], [24, 48], [25, 49], [27, 50], [29, 51], [30, 52], [1, 53], [33, 54], [34, 55], [36, 56], [38, 57], [40, 58], [42, 59], [44, 60], [46, 61], [48, 62], [50, 63], [51, 64], [55, 65], [56, 66], [56, 67], [66, 68], [67, 69], [67, 70], [67, 71], [67, 72], [69, 73], [69, 74], [69, 75], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 4], [39, 6], [40, 8], [41, 10], [42, 12], [43, 14], [44, 16], [45, 18], [46, 20], [47, 22], [48, 24], [49, 25], [50, 27], [51, 29], [52, 30], [53, 1], [54, 33], [55, 34], [56, 36], [57, 38], [58, 40], [59, 42], [60, 44], [61, 46], [62, 48], [63, 50], [64, 51], [65, 55], [66, 56], [67, 56], [68, 66], [69, 67], [70, 67], [71, 67], [72, 67], [73, 69], [74, 69], [75, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}], "label": 0}
{"sample_id": "poi-2.5-5923", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/PaneRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.PaneRecord", "code": "public class PaneRecord\n    extends Record\n{\n    public final static short      sid                             = 0x41;\n    private  short      field_1_x;\n    private  short      field_2_y;\n    private  short      field_3_topRow;\n    private  short      field_4_leftColumn;\n    private  short      field_5_activePane;\n    public final static short       ACTIVE_PANE_LOWER_RIGHT        = 0;\n    public final static short       ACTIVE_PANE_UPPER_RIGHT        = 1;\n    public final static short       ACTIVE_PANE_LOWER_LEFT         = 2;\n    public final static short       ACTIVE_PANE_UPER_LEFT          = 3;\n\n\n    public PaneRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Pane record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x41 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public PaneRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a Pane record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x41 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public PaneRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Pane record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_x                      = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_y                      = LittleEndian.getShort(data, pos + 0x2 + offset);\n        field_3_topRow                 = LittleEndian.getShort(data, pos + 0x4 + offset);\n        field_4_leftColumn             = LittleEndian.getShort(data, pos + 0x6 + offset);\n        field_5_activePane             = LittleEndian.getShort(data, pos + 0x8 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PANE]\\n\");\n        buffer.append(\"    .x                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getX ()))\n            .append(\" (\").append( getX() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .y                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getY ()))\n            .append(\" (\").append( getY() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .topRow               = \")\n            .append(\"0x\").append(HexDump.toHex(  getTopRow ()))\n            .append(\" (\").append( getTopRow() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .leftColumn           = \")\n            .append(\"0x\").append(HexDump.toHex(  getLeftColumn ()))\n            .append(\" (\").append( getLeftColumn() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .activePane           = \")\n            .append(\"0x\").append(HexDump.toHex(  getActivePane ()))\n            .append(\" (\").append( getActivePane() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/PANE]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_x);\n        LittleEndian.putShort(data, 6 + offset + pos, field_2_y);\n        LittleEndian.putShort(data, 8 + offset + pos, field_3_topRow);\n        LittleEndian.putShort(data, 10 + offset + pos, field_4_leftColumn);\n        LittleEndian.putShort(data, 12 + offset + pos, field_5_activePane);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2 + 2 + 2 + 2 + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        PaneRecord rec = new PaneRecord();\n    \n        rec.field_1_x = field_1_x;\n        rec.field_2_y = field_2_y;\n        rec.field_3_topRow = field_3_topRow;\n        rec.field_4_leftColumn = field_4_leftColumn;\n        rec.field_5_activePane = field_5_activePane;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the x field for the Pane record.\n     */\n    public short getX()\n    {\n        return field_1_x;\n    }\n\n    /**\n     * Set the x field for the Pane record.\n     */\n    public void setX(short field_1_x)\n    {\n        this.field_1_x = field_1_x;\n    }\n\n    /**\n     * Get the y field for the Pane record.\n     */\n    public short getY()\n    {\n        return field_2_y;\n    }\n\n    /**\n     * Set the y field for the Pane record.\n     */\n    public void setY(short field_2_y)\n    {\n        this.field_2_y = field_2_y;\n    }\n\n    /**\n     * Get the top row field for the Pane record.\n     */\n    public short getTopRow()\n    {\n        return field_3_topRow;\n    }\n\n    /**\n     * Set the top row field for the Pane record.\n     */\n    public void setTopRow(short field_3_topRow)\n    {\n        this.field_3_topRow = field_3_topRow;\n    }\n\n    /**\n     * Get the left column field for the Pane record.\n     */\n    public short getLeftColumn()\n    {\n        return field_4_leftColumn;\n    }\n\n    /**\n     * Set the left column field for the Pane record.\n     */\n    public void setLeftColumn(short field_4_leftColumn)\n    {\n        this.field_4_leftColumn = field_4_leftColumn;\n    }\n\n    /**\n     * Get the active pane field for the Pane record.\n     *\n     * @return  One of \n     *        ACTIVE_PANE_LOWER_RIGHT\n     *        ACTIVE_PANE_UPPER_RIGHT\n     *        ACTIVE_PANE_LOWER_LEFT\n     *        ACTIVE_PANE_UPER_LEFT\n     */\n    public short getActivePane()\n    {\n        return field_5_activePane;\n    }\n\n    /**\n     * Set the active pane field for the Pane record.\n     *\n     * @param field_5_activePane\n     *        One of \n     *        ACTIVE_PANE_LOWER_RIGHT\n     *        ACTIVE_PANE_UPPER_RIGHT\n     *        ACTIVE_PANE_LOWER_LEFT\n     *        ACTIVE_PANE_UPER_LEFT\n     */\n    public void setActivePane(short field_5_activePane)\n    {\n        this.field_5_activePane = field_5_activePane;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Pane record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_x                      = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_y                      = LittleEndian.getShort(data, pos + 0x2 + offset);\n        field_3_topRow                 = LittleEndian.getShort(data, pos + 0x4 + offset);\n        field_4_leftColumn             = LittleEndian.getShort(data, pos + 0x6 + offset);\n        field_5_activePane             = LittleEndian.getShort(data, pos + 0x8 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [1, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [21, 26], [22, 27], [23, 28], [24, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 1], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [26, 21], [27, 22], [28, 23], [29, 24], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PANE]\\n\");\n        buffer.append(\"    .x                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getX ()))\n            .append(\" (\").append( getX() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .y                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getY ()))\n            .append(\" (\").append( getY() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .topRow               = \")\n            .append(\"0x\").append(HexDump.toHex(  getTopRow ()))\n            .append(\" (\").append( getTopRow() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .leftColumn           = \")\n            .append(\"0x\").append(HexDump.toHex(  getLeftColumn ()))\n            .append(\" (\").append( getLeftColumn() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .activePane           = \")\n            .append(\"0x\").append(HexDump.toHex(  getActivePane ()))\n            .append(\" (\").append( getActivePane() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/PANE]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [4, 16], [5, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [7, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 30], [9, 31], [10, 32], [10, 33], [10, 34], [10, 35], [10, 36], [10, 37], [11, 38], [12, 39], [12, 40], [12, 41], [12, 42], [12, 43], [12, 44], [13, 45], [14, 46], [14, 47], [14, 48], [14, 49], [14, 50], [14, 51], [15, 52], [2, 53], [17, 54], [19, 55], [20, 56], [21, 57], [22, 58], [23, 59], [24, 60], [26, 61], [27, 62], [28, 63], [29, 64], [30, 65], [31, 66], [33, 67], [34, 68], [35, 69], [36, 70], [37, 71], [38, 72], [40, 73], [41, 74], [42, 75], [43, 76], [44, 77], [45, 78], [47, 79], [48, 80], [49, 81], [50, 82], [51, 83], [58, 84], [64, 85], [70, 86], [76, 87], [82, 88], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 4], [17, 5], [18, 6], [19, 6], [20, 6], [21, 6], [22, 6], [23, 6], [24, 7], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 8], [31, 9], [32, 10], [33, 10], [34, 10], [35, 10], [36, 10], [37, 10], [38, 11], [39, 12], [40, 12], [41, 12], [42, 12], [43, 12], [44, 12], [45, 13], [46, 14], [47, 14], [48, 14], [49, 14], [50, 14], [51, 14], [52, 15], [53, 2], [54, 17], [55, 19], [56, 20], [57, 21], [58, 22], [59, 23], [60, 24], [61, 26], [62, 27], [63, 28], [64, 29], [65, 30], [66, 31], [67, 33], [68, 34], [69, 35], [70, 36], [71, 37], [72, 38], [73, 40], [74, 41], [75, 42], [76, 43], [77, 44], [78, 45], [79, 47], [80, 48], [81, 49], [82, 50], [83, 51], [84, 58], [85, 64], [86, 70], [87, 76], [88, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_x);\n        LittleEndian.putShort(data, 6 + offset + pos, field_2_y);\n        LittleEndian.putShort(data, 8 + offset + pos, field_3_topRow);\n        LittleEndian.putShort(data, 10 + offset + pos, field_4_leftColumn);\n        LittleEndian.putShort(data, 12 + offset + pos, field_5_activePane);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [6, 13], [7, 14], [8, 15], [9, 16], [10, 17], [11, 18], [12, 19], [2, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [11, 26], [18, 27], [19, 28], [21, 29], [22, 30], [23, 31], [24, 32], [25, 33], [26, 34], [26, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 6], [14, 7], [15, 8], [16, 9], [17, 10], [18, 11], [19, 12], [20, 2], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 11], [27, 18], [28, 19], [29, 21], [30, 22], [31, 23], [32, 24], [33, 25], [34, 26], [35, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2 + 2 + 2 + 2 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        PaneRecord rec = new PaneRecord();\n    \n        rec.field_1_x = field_1_x;\n        rec.field_2_y = field_2_y;\n        rec.field_3_topRow = field_3_topRow;\n        rec.field_4_leftColumn = field_4_leftColumn;\n        rec.field_5_activePane = field_5_activePane;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getX", "code": "    public short getX()\n    {\n        return field_1_x;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setX", "code": "    public void setX(short field_1_x)\n    {\n        this.field_1_x = field_1_x;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getY", "code": "    public short getY()\n    {\n        return field_2_y;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setY", "code": "    public void setY(short field_2_y)\n    {\n        this.field_2_y = field_2_y;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTopRow", "code": "    public short getTopRow()\n    {\n        return field_3_topRow;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTopRow", "code": "    public void setTopRow(short field_3_topRow)\n    {\n        this.field_3_topRow = field_3_topRow;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLeftColumn", "code": "    public short getLeftColumn()\n    {\n        return field_4_leftColumn;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLeftColumn", "code": "    public void setLeftColumn(short field_4_leftColumn)\n    {\n        this.field_4_leftColumn = field_4_leftColumn;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActivePane", "code": "    public short getActivePane()\n    {\n        return field_5_activePane;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setActivePane", "code": "    public void setActivePane(short field_5_activePane)\n    {\n        this.field_5_activePane = field_5_activePane;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "PaneRecord", "code": "    public PaneRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PaneRecord", "code": "    public PaneRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "PaneRecord", "code": "    public PaneRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.6-2998", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/InvalidPayloadException.java", "language": "java", "name": "org.apache.camel.InvalidPayloadException", "code": "public class InvalidPayloadException extends CamelExchangeException {\n    private final Class<?> type;\n\n    public InvalidPayloadException(Exchange exchange, Class<?> type) {\n        this(exchange, type, exchange.getIn());\n    }\n\n    public InvalidPayloadException(Exchange exchange, Class<?> type, Message message) {\n        super(\"No in body available of type: \" + type.getName()\n              + NoSuchPropertyException.valueDescription(message.getBody()) + \" on: \" + message, exchange);\n        this.type = type;\n    }\n\n    /**\n     * The expected type of the body\n     */\n    public Class<?> getType() {\n        return type;", "functions": [{"function_name": "getType", "code": "    public Class<?> getType() {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "InvalidPayloadException", "code": "    public InvalidPayloadException(Exchange exchange, Class<?> type) {\n        this(exchange, type, exchange.getIn());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "InvalidPayloadException", "code": "    public InvalidPayloadException(Exchange exchange, Class<?> type, Message message) {\n        super(\"No in body available of type: \" + type.getName()\n              + NoSuchPropertyException.valueDescription(message.getBody()) + \" on: \" + message, exchange);\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [6, 8], [8, 9], [8, 10], [9, 11], [10, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [8, 6], [9, 8], [10, 8], [11, 9], [12, 10], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 1}
{"sample_id": "camel-1.2-2015", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/cxf/interceptors/AbstractInvokerInterceptor.java", "language": "java", "name": "org.apache.camel.component.cxf.interceptors.AbstractInvokerInterceptor", "code": "public abstract class AbstractInvokerInterceptor extends AbstractPhaseInterceptor<Message> {\n    public static final String ROUTING_INERCEPTOR_PHASE = \"Routing-Phase\";\n    public static final String BUNDLE = \"wsdl-cxf\"; \n    public AbstractInvokerInterceptor(String phase) {\n        super(phase);\n    }\n    \n    private boolean isRequestor(Message message) {\n        return Boolean.TRUE.equals(message.get(Message.REQUESTOR_ROLE));\n    }\n    \n    /**\n     * Send the intercepted message to router\n     */\n    @SuppressWarnings(\"unchecked\")\n    public void handleMessage(Message inMessage) throws Fault {\n        if (isRequestor(inMessage)) {\n            return;\n        }\n\n        Exchange exchange = inMessage.getExchange();\n        Message outMessage = null;\n        try {\n            CamelInvoker invoker = exchange.get(CamelInvoker.class);\n            outMessage = invoker.invoke(inMessage);\n        } catch (Exception e) {\n            throw new Fault(e);\n        }\n\n        setBackChannelConduit(exchange, outMessage);\n        \n        Exception ex = outMessage.getContent(Exception.class);\n        if (ex != null) {\n            if (!(ex instanceof Fault)) {\n                ex = new Fault(ex); \n            }\n            throw (Fault)ex;\n        }\n\n        outMessage.put(Message.INBOUND_MESSAGE, Boolean.FALSE);\n        BindingOperationInfo boi = exchange.get(BindingOperationInfo.class);\n        if (boi != null) {\n            exchange.put(BindingMessageInfo.class, boi.getOutput());\n        }\n\n        InvokingContext invokingContext = exchange.get(InvokingContext.class);\n        assert invokingContext != null;\n        \n        InterceptorChain chain = invokingContext.getResponseOutInterceptorChain(exchange);\n        if (chain != null) {\n            outMessage.setInterceptorChain(chain);\n            \n            chain.doIntercept(outMessage);\n        }                \n    }\n    \n    /**\n     * Creates a conduit if not present on the exchange. outMessage or faultMessage\n     * It will create a back channel in PAYLOAD and MESSAGE case.\n     * POJO case will have a coduit due to OutgoingChainInterceptor in PRE_INVOKE Phase\n     */\n\n    protected void setBackChannelConduit(Exchange ex, Message message) throws Fault {\n        Conduit conduit = ex.getConduit(message);\n        if (conduit == null) {\n            try {\n                EndpointReferenceType target =\n                    ex.get(EndpointReferenceType.class);\n                conduit = ex.getDestination().getBackChannel(ex.getInMessage(), null, target);\n                ex.put(ConduitSelector.class,\n                       new PreexistingConduitSelector(conduit));\n            } catch (IOException e) {\n                throw new Fault(e);\n            }\n        }\n        \n        assert conduit != null;\n    }\n    \n    protected abstract Logger getLogger();", "functions": [{"function_name": "isRequestor", "code": "    private boolean isRequestor(Message message) {\n        return Boolean.TRUE.equals(message.get(Message.REQUESTOR_ROLE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "handleMessage", "code": "    @SuppressWarnings(\"unchecked\")\n    public void handleMessage(Message inMessage) throws Fault {\n        if (isRequestor(inMessage)) {\n            return;\n        }\n\n        Exchange exchange = inMessage.getExchange();\n        Message outMessage = null;\n        try {\n            CamelInvoker invoker = exchange.get(CamelInvoker.class);\n            outMessage = invoker.invoke(inMessage);\n        } catch (Exception e) {\n            throw new Fault(e);\n        }\n\n        setBackChannelConduit(exchange, outMessage);\n        \n        Exception ex = outMessage.getContent(Exception.class);\n        if (ex != null) {\n            if (!(ex instanceof Fault)) {\n                ex = new Fault(ex); \n            }\n            throw (Fault)ex;\n        }\n\n        outMessage.put(Message.INBOUND_MESSAGE, Boolean.FALSE);\n        BindingOperationInfo boi = exchange.get(BindingOperationInfo.class);\n        if (boi != null) {\n            exchange.put(BindingMessageInfo.class, boi.getOutput());\n        }\n\n        InvokingContext invokingContext = exchange.get(InvokingContext.class);\n        assert invokingContext != null;\n        \n        InterceptorChain chain = invokingContext.getResponseOutInterceptorChain(exchange);\n        if (chain != null) {\n            outMessage.setInterceptorChain(chain);\n            \n            chain.doIntercept(outMessage);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "ASSERT", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CATCH", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [3, 16], [5, 17], [0, 18], [7, 19], [0, 20], [9, 21], [9, 22], [12, 23], [15, 24], [2, 25], [16, 26], [4, 27], [17, 28], [6, 29], [7, 30], [7, 31], [19, 32], [8, 33], [21, 34], [9, 35], [10, 36], [11, 37], [12, 38], [1, 39], [1, 40], [5, 41], [31, 42], [34, 43], [35, 44], [22, 45], [41, 46], [31, 47], [47, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 3], [17, 5], [18, 0], [19, 7], [20, 0], [21, 9], [22, 9], [23, 12], [24, 15], [25, 2], [26, 16], [27, 4], [28, 17], [29, 6], [30, 7], [31, 7], [32, 19], [33, 8], [34, 21], [35, 9], [36, 10], [37, 11], [38, 12], [39, 1], [40, 1], [41, 5], [42, 31], [43, 34], [44, 35], [45, 22], [46, 41], [47, 31], [48, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "setBackChannelConduit", "code": "    protected void setBackChannelConduit(Exchange ex, Message message) throws Fault {\n        Conduit conduit = ex.getConduit(message);\n        if (conduit == null) {\n            try {\n                EndpointReferenceType target =\n                    ex.get(EndpointReferenceType.class);\n                conduit = ex.getDestination().getBackChannel(ex.getInMessage(), null, target);\n                ex.put(ConduitSelector.class,\n                       new PreexistingConduitSelector(conduit));\n            } catch (IOException e) {\n                throw new Fault(e);\n            }\n        }\n        \n        assert conduit != null;", "ast_nodes": ["FUNC_DECL", "ASSERT", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "VAR_DECL", "THROW_RAISE", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [6, 8], [2, 9], [7, 10], [3, 11], [9, 12], [9, 13], [12, 14], [9, 15], [9, 16], [14, 17], [15, 18], [16, 19], [13, 20], [19, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 6], [9, 2], [10, 7], [11, 3], [12, 9], [13, 9], [14, 12], [15, 9], [16, 9], [17, 14], [18, 15], [19, 16], [20, 13], [21, 19], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getLogger", "code": "    protected abstract Logger getLogger();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AbstractInvokerInterceptor", "code": "    public AbstractInvokerInterceptor(String phase) {\n        super(phase);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.3-4636", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/org/objectweb/asm/Type.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.org.objectweb.asm.Type", "code": "public class Type {\n\n  /**\n   * The sort of the <tt>void</tt> type. See {@link #getSort getSort}.\n   */\n\n  public final static int VOID = 0;\n\n  /**\n   * The sort of the <tt>boolean</tt> type. See {@link #getSort getSort}.\n   */\n\n  public final static int BOOLEAN = 1;\n\n  /**\n   * The sort of the <tt>char</tt> type. See {@link #getSort getSort}.\n   */\n\n  public final static int CHAR = 2;\n\n  /**\n   * The sort of the <tt>byte</tt> type. See {@link #getSort getSort}.\n   */\n\n  public final static int BYTE = 3;\n\n  /**\n   * The sort of the <tt>short</tt> type. See {@link #getSort getSort}.\n   */\n\n  public final static int SHORT = 4;\n\n  /**\n   * The sort of the <tt>int</tt> type. See {@link #getSort getSort}.\n   */\n\n  public final static int INT = 5;\n\n  /**\n   * The sort of the <tt>float</tt> type. See {@link #getSort getSort}.\n   */\n\n  public final static int FLOAT = 6;\n\n  /**\n   * The sort of the <tt>long</tt> type. See {@link #getSort getSort}.\n   */\n\n  public final static int LONG = 7;\n\n  /**\n   * The sort of the <tt>double</tt> type. See {@link #getSort getSort}.\n   */\n\n  public final static int DOUBLE = 8;\n\n  /**\n   * The sort of array reference types. See {@link #getSort getSort}.\n   */\n\n  public final static int ARRAY = 9;\n\n  /**\n   * The sort of object reference type. See {@link #getSort getSort}.\n   */\n\n  public final static int OBJECT = 10;\n\n  /**\n   * The <tt>void</tt> type.\n   */\n\n  public final static Type VOID_TYPE = new Type(VOID);\n\n  /**\n   * The <tt>boolean</tt> type.\n   */\n\n  public final static Type BOOLEAN_TYPE = new Type(BOOLEAN);\n\n  /**\n   * The <tt>char</tt> type.\n   */\n\n  public final static Type CHAR_TYPE = new Type(CHAR);\n\n  /**\n   * The <tt>byte</tt> type.\n   */\n\n  public final static Type BYTE_TYPE = new Type(BYTE);\n\n  /**\n   * The <tt>short</tt> type.\n   */\n\n  public final static Type SHORT_TYPE = new Type(SHORT);\n\n  /**\n   * The <tt>int</tt> type.\n   */\n\n  public final static Type INT_TYPE = new Type(INT);\n\n  /**\n   * The <tt>float</tt> type.\n   */\n\n  public final static Type FLOAT_TYPE = new Type(FLOAT);\n\n  /**\n   * The <tt>long</tt> type.\n   */\n\n  public final static Type LONG_TYPE = new Type(LONG);\n\n  /**\n   * The <tt>double</tt> type.\n   */\n\n  public final static Type DOUBLE_TYPE = new Type(DOUBLE);\n\n  // --------------------------------------------------------------------------\n  // Fields\n  // --------------------------------------------------------------------------\n\n  /**\n   * The sort of this Java type.\n   */\n\n  private final int sort;\n\n  /**\n   * A buffer containing the descriptor of this Java type.\n   * This field is only used for reference types.\n   */\n\n  private char[] buf;\n\n  /**\n   * The offset of the descriptor of this Java type in {@link #buf buf}.\n   * This field is only used for reference types.\n   */\n\n  private int off;\n\n  /**\n   * The length of the descriptor of this Java type.\n   */\n\n  private int len;\n\n  // --------------------------------------------------------------------------\n  // Constructors\n  // --------------------------------------------------------------------------\n\n  /**\n   * Constructs a primitive type.\n   *\n   * @param sort the sort of the primitive type to be constructed.\n   */\n\n  private Type (final int sort) {\n    this.sort = sort;\n    this.len = 1;\n  }\n\n  /**\n   * Constructs a reference type.\n   *\n   * @param sort the sort of the reference type to be constructed.\n   * @param buf a buffer containing the descriptor of the previous type.\n   * @param off the offset of this descriptor in the previous buffer.\n   * @param len the length of this descriptor.\n   */\n\n  private Type (\n    final int sort,\n    final char[] buf,\n    final int off,\n    final int len)\n  {\n    this.sort = sort;\n    this.buf = buf;\n    this.off = off;\n    this.len = len;\n  }\n\n  /**\n   * Returns the Java type corresponding to the given type descriptor.\n   *\n   * @param typeDescriptor a type descriptor.\n   * @return the Java type corresponding to the given type descriptor.\n   */\n\n  public static Type getType (final String typeDescriptor) {\n    return getType(typeDescriptor.toCharArray(), 0);\n  }\n\n  /**\n   * Returns the Java type corresponding to the given class.\n   *\n   * @param c a class.\n   * @return the Java type corresponding to the given class.\n   */\n\n  public static Type getType (final Class c) {\n    if (c.isPrimitive()) {\n      if (c == Integer.TYPE) {\n        return INT_TYPE;\n      } else if (c == Void.TYPE) {\n        return VOID_TYPE;\n      } else if (c == Boolean.TYPE) {\n        return BOOLEAN_TYPE;\n      } else if (c == Byte.TYPE) {\n        return BYTE_TYPE;\n      } else if (c == Character.TYPE) {\n        return CHAR_TYPE;\n      } else if (c == Short.TYPE) {\n        return SHORT_TYPE;\n      } else if (c == Double.TYPE) {\n        return DOUBLE_TYPE;\n      } else if (c == Float.TYPE) {\n        return FLOAT_TYPE;\n      } else /*if (c == Long.TYPE)*/ {\n        return LONG_TYPE;\n      }\n    } else {\n      return getType(getDescriptor(c));\n    }\n  }\n\n  /**\n   * Returns the Java types corresponding to the argument types of the given\n   * method descriptor.\n   *\n   * @param methodDescriptor a method descriptor.\n   * @return the Java types corresponding to the argument types of the given\n   *      method descriptor.\n   */\n\n  public static Type[] getArgumentTypes (final String methodDescriptor) {\n    char[] buf = methodDescriptor.toCharArray();\n    int off = 1;\n    int size = 0;\n    while (true) {\n      char car = buf[off++];\n      if (car == ')') {\n        break;\n      } else if (car == 'L') {\n        while (buf[off++] != ';') {\n        }\n        ++size;\n      } else if (car != '[') {\n        ++size;\n      }\n    }\n    Type[] args = new Type[size];\n    off = 1;\n    size = 0;\n    while (buf[off] != ')') {\n      args[size] = getType(buf, off);\n      off += args[size].len;\n      size += 1;\n    }\n    return args;\n  }\n\n  /**\n   * Returns the Java types corresponding to the argument types of the given\n   * method.\n   *\n   * @param method a method.\n   * @return the Java types corresponding to the argument types of the given\n   *      method.\n   */\n\n  public static Type[] getArgumentTypes (final Method method) {\n    Class[] classes = method.getParameterTypes();\n    Type[] types = new Type[classes.length];\n    for (int i = classes.length - 1; i >= 0; --i) {\n      types[i] = getType(classes[i]);\n    }\n    return types;\n  }\n\n  /**\n   * Returns the Java type corresponding to the return type of the given\n   * method descriptor.\n   *\n   * @param methodDescriptor a method descriptor.\n   * @return the Java type corresponding to the return type of the given\n   *      method descriptor.\n   */\n\n  public static Type getReturnType (final String methodDescriptor) {\n    char[] buf = methodDescriptor.toCharArray();\n    return getType(buf, methodDescriptor.indexOf(')') + 1);\n  }\n\n  /**\n   * Returns the Java type corresponding to the return type of the given\n   * method.\n   *\n   * @param method a method.\n   * @return the Java type corresponding to the return type of the given\n   *      method.\n   */\n\n  public static Type getReturnType (final Method method) {\n    return getType(method.getReturnType());\n  }\n\n  /**\n   * Returns the Java type corresponding to the given type descriptor.\n   *\n   * @param buf a buffer containing a type descriptor.\n   * @param off the offset of this descriptor in the previous buffer.\n   * @return the Java type corresponding to the given type descriptor.\n   */\n\n  private static Type getType (final char[] buf, final int off) {\n    int len;\n    switch (buf[off]) {\n      case 'V': return VOID_TYPE;\n      case 'Z': return BOOLEAN_TYPE;\n      case 'C': return CHAR_TYPE;\n      case 'B': return BYTE_TYPE;\n      case 'S': return SHORT_TYPE;\n      case 'I': return INT_TYPE;\n      case 'F': return FLOAT_TYPE;\n      case 'J': return LONG_TYPE;\n      case 'D': return DOUBLE_TYPE;\n      case '[':\n        len = 1;\n        while (buf[off + len] == '[') {\n          ++len;\n        }\n        if (buf[off + len] == 'L') {\n          ++len;\n          while (buf[off + len] != ';') {\n            ++len;\n          }\n        }\n        return new Type(ARRAY, buf, off, len + 1);\n      //case 'L':\n      default:\n        len = 1;\n        while (buf[off + len] != ';') {\n          ++len;\n        }\n        return new Type(OBJECT, buf, off, len + 1);\n    }\n  }\n\n  // --------------------------------------------------------------------------\n  // Accessors\n  // --------------------------------------------------------------------------\n\n  /**\n   * Returns the sort of this Java type.\n   *\n   * @return {@link #VOID VOID}, {@link #BOOLEAN BOOLEAN}, {@link #CHAR CHAR},\n   *      {@link #BYTE BYTE}, {@link #SHORT SHORT}, {@link #INT INT}, {@link\n   *      #FLOAT FLOAT}, {@link #LONG LONG}, {@link #DOUBLE DOUBLE}, {@link\n   *      #ARRAY ARRAY} or {@link #OBJECT OBJECT}.\n   */\n\n  public int getSort () {\n    return sort;\n  }\n\n  /**\n   * Returns the number of dimensions of this array type.\n   * This method should only be used for an array type.\n   *\n   * @return the number of dimensions of this array type.\n   */\n\n  public int getDimensions () {\n    int i = 1;\n    while (buf[off + i] == '[') {\n      ++i;\n    }\n    return i;\n  }\n\n  /**\n   * Returns the type of the elements of this array type.\n   * This method should only be used for an array type.\n   *\n   * @return Returns the type of the elements of this array type.\n   */\n\n  public Type getElementType () {\n    return getType(buf, off + getDimensions());\n  }\n\n  /**\n   * Returns the name of the class corresponding to this object type.\n   * This method should only be used for an object type.\n   *\n   * @return the fully qualified name of the class corresponding to this object\n   *      type.\n   */\n\n  public String getClassName () {\n    return new String(buf, off + 1, len - 2).replace('/', '.');\n  }\n\n  /**\n   * Returns the internal name of the class corresponding to this object type.\n   * The internal name of a class is its fully qualified name, where '.' are\n   * replaced by '/'.   * This method should only be used for an object type.\n   *\n   * @return the internal name of the class corresponding to this object type.\n   */\n\n  public String getInternalName () {\n    return new String(buf, off + 1, len - 2);\n  }\n\n  // --------------------------------------------------------------------------\n  // Conversion to type descriptors\n  // --------------------------------------------------------------------------\n\n  /**\n   * Returns the descriptor corresponding to this Java type.\n   *\n   * @return the descriptor corresponding to this Java type.\n   */\n\n  public String getDescriptor () {\n    StringBuilder buf = new StringBuilder();\n    getDescriptor(buf);\n    return buf.toString();\n  }\n\n  /**\n   * Returns the descriptor corresponding to the given argument and return\n   * types.\n   *\n   * @param returnType the return type of the method.\n   * @param argumentTypes the argument types of the method.\n   * @return the descriptor corresponding to the given argument and return\n   *      types.\n   */\n\n  public static String getMethodDescriptor (\n    final Type returnType,\n    final Type[] argumentTypes)\n  {\n    StringBuilder buf = new StringBuilder();\n    buf.append('(');\n    for (int i = 0; i < argumentTypes.length; ++i) {\n      argumentTypes[i].getDescriptor(buf);\n    }\n    buf.append(')');\n    returnType.getDescriptor(buf);\n    return buf.toString();\n  }\n\n  /**\n   * Appends the descriptor corresponding to this Java type to the given string\n   * buffer.\n   *\n   * @param buf the string buffer to which the descriptor must be appended.\n   */\n\n  private void getDescriptor(final StringBuilder buf) {\n    switch (sort) {\n      case VOID:    buf.append('V'); return;\n      case BOOLEAN: buf.append('Z'); return;\n      case CHAR:    buf.append('C'); return;\n      case BYTE:    buf.append('B'); return;\n      case SHORT:   buf.append('S'); return;\n      case INT:     buf.append('I'); return;\n      case FLOAT:   buf.append('F'); return;\n      case LONG:    buf.append('J'); return;\n      case DOUBLE:  buf.append('D'); return;\n      //case ARRAY:\n      //case OBJECT:\n      default:      buf.append(this.buf, off, len);\n    }\n  }\n\n  // --------------------------------------------------------------------------\n  // Direct conversion from classes to type descriptors,\n  // without intermediate Type objects\n  // --------------------------------------------------------------------------\n\n  /**\n   * Returns the internal name of the given class. The internal name of a class\n   * is its fully qualified name, where '.' are replaced by '/'.\n   *\n   * @param c an object class.\n   * @return the internal name of the given class.\n   */\n\n  public static String getInternalName (final Class c) {\n    return c.getName().replace('.', '/');\n  }\n\n  /**\n   * Returns the descriptor corresponding to the given Java type.\n   *\n   * @param c an object class, a primitive class or an array class.\n   * @return the descriptor corresponding to the given class.\n   */\n\n  public static String getDescriptor (final Class c) {\n    StringBuilder buf = new StringBuilder();\n    getDescriptor(buf, c);\n    return buf.toString();\n  }\n\n  /**\n   * Returns the descriptor corresponding to the given method.\n   *\n   * @param m a {@link Method Method} object.\n   * @return the descriptor of the given method.\n   */\n\n  public static String getMethodDescriptor (final Method m) {\n    Class[] parameters = m.getParameterTypes();\n    StringBuilder buf = new StringBuilder();\n    buf.append('(');\n    for (int i = 0; i < parameters.length; ++i) {\n      getDescriptor(buf, parameters[i]);\n    }\n    buf.append(')');\n    getDescriptor(buf, m.getReturnType());\n    return buf.toString();\n  }\n\n  /**\n   * Appends the descriptor of the given class to the given string buffer.\n   *\n   * @param buf the string buffer to which the descriptor must be appended.\n   * @param c the class whose descriptor must be computed.\n   */\n\n  private static void getDescriptor (final StringBuilder buf, final Class c) {\n    Class d = c;\n    while (true) {\n      if (d.isPrimitive()) {\n        char car;\n        if (d == Integer.TYPE) {\n          car = 'I';\n        } else if (d == Void.TYPE) {\n          car = 'V';\n        } else if (d == Boolean.TYPE) {\n          car = 'Z';\n        } else if (d == Byte.TYPE) {\n          car = 'B';\n        } else if (d == Character.TYPE) {\n          car = 'C';\n        } else if (d == Short.TYPE) {\n          car = 'S';\n        } else if (d == Double.TYPE) {\n          car = 'D';\n        } else if (d == Float.TYPE) {\n          car = 'F';\n        } else /*if (d == Long.TYPE)*/ {\n          car = 'J';\n        }\n        buf.append(car);\n        return;\n      } else if (d.isArray()) {\n        buf.append('[');\n        d = d.getComponentType();\n      } else {\n        buf.append('L');\n        String name = d.getName();\n        int len = name.length();\n        for (int i = 0; i < len; ++i) {\n          char car = name.charAt(i);\n          buf.append(car == '.' ? '/' : car);\n        }\n        buf.append(';');\n        return;\n      }\n    }\n  }\n\n  // --------------------------------------------------------------------------\n  // Corresponding size and opcodes\n  // --------------------------------------------------------------------------\n\n  /**\n   * Returns the size of values of this type.\n   *\n   * @return the size of values of this type, i.e., 2 for <tt>long</tt> and\n   *      <tt>double</tt>, and 1 otherwise.\n   */\n\n  public int getSize () {\n    return (sort == LONG || sort == DOUBLE ? 2 : 1);\n  }\n\n  /**\n   * Returns a JVM instruction opcode adapted to this Java type.\n   *\n   * @param opcode a JVM instruction opcode. This opcode must be one of ILOAD,\n   *      ISTORE, IALOAD, IASTORE, IADD, ISUB, IMUL, IDIV, IREM, INEG, ISHL,\n   *      ISHR, IUSHR, IAND, IOR, IXOR and IRETURN.\n   * @return an opcode that is similar to the given opcode, but adapted to this\n   *      Java type. For example, if this type is <tt>float</tt> and\n   *      <tt>opcode</tt> is IRETURN, this method returns FRETURN.\n   */\n\n  public int getOpcode (final int opcode) {\n    if (opcode == Constants.IALOAD || opcode == Constants.IASTORE) {\n      switch (sort) {\n        case VOID:\n          return opcode + 5;\n        case BOOLEAN:\n        case BYTE:\n          return opcode + 6;\n        case CHAR:\n          return opcode + 7;\n        case SHORT:\n          return opcode + 8;\n        case INT:\n          return opcode;\n        case FLOAT:\n          return opcode + 2;\n        case LONG:\n          return opcode + 1;\n        case DOUBLE:\n          return opcode + 3;\n        //case ARRAY:\n        //case OBJECT:\n        default:\n          return opcode + 4;\n      }\n    } else {\n      switch (sort) {\n        case VOID:\n          return opcode + 5;\n        case BOOLEAN:\n        case CHAR:\n        case BYTE:\n        case SHORT:\n        case INT:\n          return opcode;\n        case FLOAT:\n          return opcode + 2;\n        case LONG:\n          return opcode + 1;\n        case DOUBLE:\n          return opcode + 3;\n        //case ARRAY:\n        //case OBJECT:\n        default:\n          return opcode + 4;", "functions": [{"function_name": "getType", "code": "  public static Type getType (final String typeDescriptor) {\n    return getType(typeDescriptor.toCharArray(), 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getType", "code": "  public static Type getType (final Class c) {\n    if (c.isPrimitive()) {\n      if (c == Integer.TYPE) {\n        return INT_TYPE;\n      } else if (c == Void.TYPE) {\n        return VOID_TYPE;\n      } else if (c == Boolean.TYPE) {\n        return BOOLEAN_TYPE;\n      } else if (c == Byte.TYPE) {\n        return BYTE_TYPE;\n      } else if (c == Character.TYPE) {\n        return CHAR_TYPE;\n      } else if (c == Short.TYPE) {\n        return SHORT_TYPE;\n      } else if (c == Double.TYPE) {\n        return DOUBLE_TYPE;\n      } else if (c == Float.TYPE) {\n        return FLOAT_TYPE;\n      } else /*if (c == Long.TYPE)*/ {\n        return LONG_TYPE;\n      }\n    } else {\n      return getType(getDescriptor(c));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "IF", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "RETURN", "IF", "BINARY_OP", "RETURN", "IF", "BINARY_OP", "RETURN", "IF", "BINARY_OP", "RETURN", "IF", "BINARY_OP", "RETURN", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "RETURN", "RETURN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [6, 9], [7, 10], [7, 11], [5, 12], [10, 13], [10, 14], [7, 15], [13, 16], [13, 17], [10, 18], [16, 19], [16, 20], [13, 21], [19, 22], [19, 23], [16, 24], [22, 25], [22, 26], [19, 27], [25, 28], [22, 29], [25, 30], [25, 31], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 6], [10, 7], [11, 7], [12, 5], [13, 10], [14, 10], [15, 7], [16, 13], [17, 13], [18, 10], [19, 16], [20, 16], [21, 13], [22, 19], [23, 19], [24, 16], [25, 22], [26, 22], [27, 19], [28, 25], [29, 22], [30, 25], [31, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getArgumentTypes", "code": "  public static Type[] getArgumentTypes (final String methodDescriptor) {\n    char[] buf = methodDescriptor.toCharArray();\n    int off = 1;\n    int size = 0;\n    while (true) {\n      char car = buf[off++];\n      if (car == ')') {\n        break;\n      } else if (car == 'L') {\n        while (buf[off++] != ';') {\n        }\n        ++size;\n      } else if (car != '[') {\n        ++size;\n      }\n    }\n    Type[] args = new Type[size];\n    off = 1;\n    size = 0;\n    while (buf[off] != ')') {\n      args[size] = getType(buf, off);\n      off += args[size].len;\n      size += 1;\n    }\n    return args;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [0, 10], [0, 11], [4, 12], [9, 13], [10, 14], [11, 15], [4, 16], [4, 17], [5, 18], [6, 19], [7, 20], [2, 21], [2, 22], [2, 23], [16, 24], [16, 25], [21, 26], [23, 27], [24, 28], [24, 29], [16, 30], [25, 31], [28, 32], [24, 33], [29, 34], [32, 35], [33, 36], [36, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 0], [11, 0], [12, 4], [13, 9], [14, 10], [15, 11], [16, 4], [17, 4], [18, 5], [19, 6], [20, 7], [21, 2], [22, 2], [23, 2], [24, 16], [25, 16], [26, 21], [27, 23], [28, 24], [29, 24], [30, 16], [31, 25], [32, 28], [33, 24], [34, 29], [35, 32], [36, 33], [37, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "getArgumentTypes", "code": "  public static Type[] getArgumentTypes (final Method method) {\n    Class[] classes = method.getParameterTypes();\n    Type[] types = new Type[classes.length];\n    for (int i = classes.length - 1; i >= 0; --i) {\n      types[i] = getType(classes[i]);\n    }\n    return types;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [4, 8], [2, 9], [2, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 4], [9, 2], [10, 2], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getReturnType", "code": "  public static Type getReturnType (final String methodDescriptor) {\n    char[] buf = methodDescriptor.toCharArray();\n    return getType(buf, methodDescriptor.indexOf(')') + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [5, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 5], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getReturnType", "code": "  public static Type getReturnType (final Method method) {\n    return getType(method.getReturnType());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getType", "code": "  private static Type getType (final char[] buf, final int off) {\n    int len;\n    switch (buf[off]) {\n      case 'V': return VOID_TYPE;\n      case 'Z': return BOOLEAN_TYPE;\n      case 'C': return CHAR_TYPE;\n      case 'B': return BYTE_TYPE;\n      case 'S': return SHORT_TYPE;\n      case 'I': return INT_TYPE;\n      case 'F': return FLOAT_TYPE;\n      case 'J': return LONG_TYPE;\n      case 'D': return DOUBLE_TYPE;\n      case '[':\n        len = 1;\n        while (buf[off + len] == '[') {\n          ++len;\n        }\n        if (buf[off + len] == 'L') {\n          ++len;\n          while (buf[off + len] != ';') {\n            ++len;\n          }\n        }\n        return new Type(ARRAY, buf, off, len + 1);\n      //case 'L':\n      default:\n        len = 1;\n        while (buf[off + len] != ';') {\n          ++len;\n        }\n        return new Type(OBJECT, buf, off, len + 1);", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "RETURN", "LOOP", "RETURN", "IF", "LOOP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [5, 29], [6, 30], [1, 31], [7, 32], [8, 33], [9, 34], [1, 35], [29, 36], [30, 37], [31, 38], [32, 39], [8, 40], [33, 41], [34, 42], [35, 43], [36, 44], [39, 45], [40, 46], [30, 47], [46, 48], [33, 49], [34, 50], [46, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 5], [30, 6], [31, 1], [32, 7], [33, 8], [34, 9], [35, 1], [36, 29], [37, 30], [38, 31], [39, 32], [40, 8], [41, 33], [42, 34], [43, 35], [44, 36], [45, 39], [46, 40], [47, 30], [48, 46], [49, 33], [50, 34], [51, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "getSort", "code": "  public int getSort () {\n    return sort;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDimensions", "code": "  public int getDimensions () {\n    int i = 1;\n    while (buf[off + i] == '[') {\n      ++i;\n    }\n    return i;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getElementType", "code": "  public Type getElementType () {\n    return getType(buf, off + getDimensions());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getClassName", "code": "  public String getClassName () {\n    return new String(buf, off + 1, len - 2).replace('/', '.');", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [3, 6], [4, 7], [5, 8], [5, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 3], [7, 4], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getInternalName", "code": "  public String getInternalName () {\n    return new String(buf, off + 1, len - 2);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getDescriptor", "code": "  public String getDescriptor () {\n    StringBuilder buf = new StringBuilder();\n    getDescriptor(buf);\n    return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMethodDescriptor", "code": "  public static String getMethodDescriptor (\n    final Type returnType,\n    final Type[] argumentTypes)\n  {\n    StringBuilder buf = new StringBuilder();\n    buf.append('(');\n    for (int i = 0; i < argumentTypes.length; ++i) {\n      argumentTypes[i].getDescriptor(buf);\n    }\n    buf.append(')');\n    returnType.getDescriptor(buf);\n    return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [0, 10], [8, 11], [10, 12], [3, 13], [2, 14], [2, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 0], [11, 8], [12, 10], [13, 3], [14, 2], [15, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getDescriptor", "code": "  private void getDescriptor(final StringBuilder buf) {\n    switch (sort) {\n      case VOID:    buf.append('V'); return;\n      case BOOLEAN: buf.append('Z'); return;\n      case CHAR:    buf.append('C'); return;\n      case BYTE:    buf.append('B'); return;\n      case SHORT:   buf.append('S'); return;\n      case INT:     buf.append('I'); return;\n      case FLOAT:   buf.append('F'); return;\n      case LONG:    buf.append('J'); return;\n      case DOUBLE:  buf.append('D'); return;\n      //case ARRAY:\n      //case OBJECT:\n      default:      buf.append(this.buf, off, len);", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [13, 22], [14, 23], [15, 24], [16, 25], [17, 26], [18, 27], [19, 28], [20, 29], [21, 30], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 13], [23, 14], [24, 15], [25, 16], [26, 17], [27, 18], [28, 19], [29, 20], [30, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getInternalName", "code": "  public static String getInternalName (final Class c) {\n    return c.getName().replace('.', '/');", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getDescriptor", "code": "  public static String getDescriptor (final Class c) {\n    StringBuilder buf = new StringBuilder();\n    getDescriptor(buf, c);\n    return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getMethodDescriptor", "code": "  public static String getMethodDescriptor (final Method m) {\n    Class[] parameters = m.getParameterTypes();\n    StringBuilder buf = new StringBuilder();\n    buf.append('(');\n    for (int i = 0; i < parameters.length; ++i) {\n      getDescriptor(buf, parameters[i]);\n    }\n    buf.append(')');\n    getDescriptor(buf, m.getReturnType());\n    return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [0, 10], [7, 11], [8, 12], [10, 13], [3, 14], [4, 15], [2, 16], [2, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 0], [11, 7], [12, 8], [13, 10], [14, 3], [15, 4], [16, 2], [17, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getDescriptor", "code": "  private static void getDescriptor (final StringBuilder buf, final Class c) {\n    Class d = c;\n    while (true) {\n      if (d.isPrimitive()) {\n        char car;\n        if (d == Integer.TYPE) {\n          car = 'I';\n        } else if (d == Void.TYPE) {\n          car = 'V';\n        } else if (d == Boolean.TYPE) {\n          car = 'Z';\n        } else if (d == Byte.TYPE) {\n          car = 'B';\n        } else if (d == Character.TYPE) {\n          car = 'C';\n        } else if (d == Short.TYPE) {\n          car = 'S';\n        } else if (d == Double.TYPE) {\n          car = 'D';\n        } else if (d == Float.TYPE) {\n          car = 'F';\n        } else /*if (d == Long.TYPE)*/ {\n          car = 'J';\n        }\n        buf.append(car);\n        return;\n      } else if (d.isArray()) {\n        buf.append('[');\n        d = d.getComponentType();\n      } else {\n        buf.append('L');\n        String name = d.getName();\n        int len = name.length();\n        for (int i = 0; i < len; ++i) {\n          char car = name.charAt(i);\n          buf.append(car == '.' ? '/' : car);\n        }\n        buf.append(';');\n        return;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [6, 8], [7, 9], [6, 10], [6, 11], [6, 12], [7, 13], [7, 14], [7, 15], [7, 16], [6, 17], [11, 18], [11, 19], [7, 20], [14, 21], [7, 22], [7, 23], [7, 24], [18, 25], [18, 26], [20, 27], [14, 28], [15, 29], [16, 30], [22, 31], [23, 32], [24, 33], [25, 34], [25, 35], [11, 36], [14, 37], [14, 38], [34, 39], [34, 40], [18, 41], [36, 42], [37, 43], [28, 44], [39, 45], [39, 46], [25, 47], [41, 48], [43, 49], [43, 50], [45, 51], [45, 52], [34, 53], [47, 54], [50, 55], [51, 56], [51, 57], [39, 58], [53, 59], [56, 60], [45, 61], [58, 62], [51, 63], [61, 64], [56, 65], [56, 66], [63, 67], [65, 68], [66, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [8, 6], [9, 7], [10, 6], [11, 6], [12, 6], [13, 7], [14, 7], [15, 7], [16, 7], [17, 6], [18, 11], [19, 11], [20, 7], [21, 14], [22, 7], [23, 7], [24, 7], [25, 18], [26, 18], [27, 20], [28, 14], [29, 15], [30, 16], [31, 22], [32, 23], [33, 24], [34, 25], [35, 25], [36, 11], [37, 14], [38, 14], [39, 34], [40, 34], [41, 18], [42, 36], [43, 37], [44, 28], [45, 39], [46, 39], [47, 25], [48, 41], [49, 43], [50, 43], [51, 45], [52, 45], [53, 34], [54, 47], [55, 50], [56, 51], [57, 51], [58, 39], [59, 53], [60, 56], [61, 45], [62, 58], [63, 51], [64, 61], [65, 56], [66, 56], [67, 63], [68, 65], [69, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "getSize", "code": "  public int getSize () {\n    return (sort == LONG || sort == DOUBLE ? 2 : 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [5, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getOpcode", "code": "  public int getOpcode (final int opcode) {\n    if (opcode == Constants.IALOAD || opcode == Constants.IASTORE) {\n      switch (sort) {\n        case VOID:\n          return opcode + 5;\n        case BOOLEAN:\n        case BYTE:\n          return opcode + 6;\n        case CHAR:\n          return opcode + 7;\n        case SHORT:\n          return opcode + 8;\n        case INT:\n          return opcode;\n        case FLOAT:\n          return opcode + 2;\n        case LONG:\n          return opcode + 1;\n        case DOUBLE:\n          return opcode + 3;\n        //case ARRAY:\n        //case OBJECT:\n        default:\n          return opcode + 4;\n      }\n    } else {\n      switch (sort) {\n        case VOID:\n          return opcode + 5;\n        case BOOLEAN:\n        case CHAR:\n        case BYTE:\n        case SHORT:\n        case INT:\n          return opcode;\n        case FLOAT:\n          return opcode + 2;\n        case LONG:\n          return opcode + 1;\n        case DOUBLE:\n          return opcode + 3;\n        //case ARRAY:\n        //case OBJECT:\n        default:\n          return opcode + 4;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "SWITCH", "SWITCH", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [8, 23], [9, 24], [10, 25], [11, 26], [13, 27], [14, 28], [15, 29], [16, 30], [17, 31], [19, 32], [20, 33], [21, 34], [22, 35], [23, 36], [24, 37], [25, 38], [26, 39], [27, 40], [28, 41], [29, 42], [30, 43], [31, 44], [32, 45], [33, 46], [34, 47], [35, 48], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 4], [14, 5], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 5], [22, 5], [23, 8], [24, 9], [25, 10], [26, 11], [27, 13], [28, 14], [29, 15], [30, 16], [31, 17], [32, 19], [33, 20], [34, 21], [35, 22], [36, 23], [37, 24], [38, 25], [39, 26], [40, 27], [41, 28], [42, 29], [43, 30], [44, 31], [45, 32], [46, 33], [47, 34], [48, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "Type", "code": "  private Type (final int sort) {\n    this.sort = sort;\n    this.len = 1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Type", "code": "  private Type (\n    final int sort,\n    final char[] buf,\n    final int off,\n    final int len)\n  {\n    this.sort = sort;\n    this.buf = buf;\n    this.off = off;\n    this.len = len;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "poi-2.5-5660", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/usermodel/HSSFShapeGroup.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFShapeGroup", "code": "public class HSSFShapeGroup\n        extends HSSFShape\n        implements HSSFShapeContainer\n{\n    List shapes = new ArrayList();\n    int x1 = 0;\n    int y1  = 0 ;\n    int x2 = 1023;\n    int y2 = 255;\n\n\n    public HSSFShapeGroup( HSSFShape parent, HSSFAnchor anchor )\n    {\n        super( parent, anchor );\n    }\n\n    /**\n     * Create another group under this group.\n     * @param anchor    the position of the new group.\n     * @return  the group\n     */\n    public HSSFShapeGroup createGroup(HSSFChildAnchor anchor)\n    {\n        HSSFShapeGroup group = new HSSFShapeGroup(this, anchor);\n        group.anchor = anchor;\n        shapes.add(group);\n        return group;\n    }\n\n    /**\n     * Create a new simple shape under this group.\n     * @param anchor    the position of the shape.\n     * @return  the shape\n     */\n    public HSSFSimpleShape createShape(HSSFChildAnchor anchor)\n    {\n        HSSFSimpleShape shape = new HSSFSimpleShape(this, anchor);\n        shape.anchor = anchor;\n        shapes.add(shape);\n        return shape;\n    }\n\n    /**\n     * Create a new textbox under this group.\n     * @param anchor    the position of the shape.\n     * @return  the textbox\n     */\n    public HSSFTextbox createTextbox(HSSFChildAnchor anchor)\n    {\n        HSSFTextbox shape = new HSSFTextbox(this, anchor);\n        shape.anchor = anchor;\n        shapes.add(shape);\n        return shape;\n    }\n\n    /**\n     * Creates a polygon\n     *\n     * @param anchor    the client anchor describes how this group is attached\n     *                  to the sheet.\n     * @return  the newly created shape.\n     */\n    public HSSFPolygon createPolygon(HSSFChildAnchor anchor)\n    {\n        HSSFPolygon shape = new HSSFPolygon(this, anchor);\n        shape.anchor = anchor;\n        shapes.add(shape);\n        return shape;\n    }\n\n    /**\n     * Return all children contained by this shape.\n     */\n    public List getChildren()\n    {\n        return shapes;\n    }\n\n    /**\n     * Sets the coordinate space of this group.  All children are contrained\n     * to these coordinates.\n     */\n    public void setCoordinates( int x1, int y1, int x2, int y2 )\n    {\n        this.x1 = x1;\n        this.y1 = y1;\n        this.x2 = x2;\n        this.y2 = y2;\n    }\n\n    /**\n     * The top left x coordinate of this group.\n     */\n    public int getX1()\n    {\n        return x1;\n    }\n\n    /**\n     * The top left y coordinate of this group.\n     */\n    public int getY1()\n    {\n        return y1;\n    }\n\n    /**\n     * The bottom right x coordinate of this group.\n     */\n    public int getX2()\n    {\n        return x2;\n    }\n\n    /**\n     * The bottom right y coordinate of this group.\n     */\n    public int getY2()\n    {\n        return y2;\n    }\n\n    /**\n     * Count of all children and their childrens children.\n     */\n    public int countOfAllChildren()\n    {\n        int count = shapes.size();\n        for ( Iterator iterator = shapes.iterator(); iterator.hasNext(); )\n        {\n            HSSFShape shape = (HSSFShape) iterator.next();\n            count += shape.countOfAllChildren();\n        }\n        return count;", "functions": [{"function_name": "createGroup", "code": "    public HSSFShapeGroup createGroup(HSSFChildAnchor anchor)\n    {\n        HSSFShapeGroup group = new HSSFShapeGroup(this, anchor);\n        group.anchor = anchor;\n        shapes.add(group);\n        return group;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createShape", "code": "    public HSSFSimpleShape createShape(HSSFChildAnchor anchor)\n    {\n        HSSFSimpleShape shape = new HSSFSimpleShape(this, anchor);\n        shape.anchor = anchor;\n        shapes.add(shape);\n        return shape;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createTextbox", "code": "    public HSSFTextbox createTextbox(HSSFChildAnchor anchor)\n    {\n        HSSFTextbox shape = new HSSFTextbox(this, anchor);\n        shape.anchor = anchor;\n        shapes.add(shape);\n        return shape;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createPolygon", "code": "    public HSSFPolygon createPolygon(HSSFChildAnchor anchor)\n    {\n        HSSFPolygon shape = new HSSFPolygon(this, anchor);\n        shape.anchor = anchor;\n        shapes.add(shape);\n        return shape;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getChildren", "code": "    public List getChildren()\n    {\n        return shapes;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCoordinates", "code": "    public void setCoordinates( int x1, int y1, int x2, int y2 )\n    {\n        this.x1 = x1;\n        this.y1 = y1;\n        this.x2 = x2;\n        this.y2 = y2;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getX1", "code": "    public int getX1()\n    {\n        return x1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getY1", "code": "    public int getY1()\n    {\n        return y1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getX2", "code": "    public int getX2()\n    {\n        return x2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getY2", "code": "    public int getY2()\n    {\n        return y2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "countOfAllChildren", "code": "    public int countOfAllChildren()\n    {\n        int count = shapes.size();\n        for ( Iterator iterator = shapes.iterator(); iterator.hasNext(); )\n        {\n            HSSFShape shape = (HSSFShape) iterator.next();\n            count += shape.countOfAllChildren();\n        }\n        return count;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [3, 6], [2, 7], [2, 8], [7, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 3], [7, 2], [8, 2], [9, 7], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "HSSFShapeGroup", "code": "    public HSSFShapeGroup( HSSFShape parent, HSSFAnchor anchor )\n    {\n        super( parent, anchor );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.4-6802", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/processor/StylesheetHandler.java", "language": "java", "name": "org.apache.xalan.processor.StylesheetHandler", "code": "public class StylesheetHandler extends DefaultHandler\n        implements TemplatesHandler, PrefixResolver, NodeConsumer\n{\n\n  /**\n   * Create a StylesheetHandler object, creating a root stylesheet\n   * as the target.\n   *\n   * @param processor non-null reference to the transformer factory that owns this handler.\n   *\n   * @throws TransformerConfigurationException if a StylesheetRoot\n   * can not be constructed for some reason.\n   */\n  public StylesheetHandler(TransformerFactoryImpl processor)\n          throws TransformerConfigurationException\n  {\n\n    init(processor);\n  }\n\n  /**\n   * Static flag to let us know if the XPath functions table\n   * has been initialized.\n   */\n  private static boolean m_xpathFunctionsInited = false;\n\n  /**\n   * Do common initialization.\n   *\n   * @param processor non-null reference to the transformer factory that owns this handler.\n   */\n  void init(TransformerFactoryImpl processor)\n  {\n\n    if (false == m_xpathFunctionsInited)\n    {\n      synchronized (this)\n      {\n        if (false == m_xpathFunctionsInited)\n        {\n          m_xpathFunctionsInited = true;\n\n          Function func = new org.apache.xalan.templates.FuncDocument();\n\n          FunctionTable.installFunction(\"document\", func);\n\n          func = new org.apache.xalan.templates.FuncFormatNumb();\n\n          FunctionTable.installFunction(\"format-number\", func);\n        }\n      }\n    }\n\n    m_stylesheetProcessor = processor;\n\n    m_processors.push(m_schema.getElementProcessor());\n    this.pushNewNamespaceSupport();\n\n  }\n\n  /**\n   * Process an expression string into an XPath.\n   * Must be public for access by the AVT class.\n   *\n   * @param str A non-null reference to a valid or invalid XPath expression string.\n   *\n   * @return A non-null reference to an XPath object that represents the string argument.\n   *\n   * @throws javax.xml.transform.TransformerException if the expression can not be processed.\n   */\n  public XPath createXPath(String str, ElemTemplateElement owningTemplate)\n          throws javax.xml.transform.TransformerException\n  {\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    XPath xpath = new XPath(str, owningTemplate, this, XPath.SELECT, handler);\n    xpath.callVisitors(xpath, new ExpressionVisitor(getStylesheetRoot()));\n    return xpath;\n  }\n\n  /**\n   * Process an expression string into an XPath.\n   *\n   * @param str A non-null reference to a valid or invalid match pattern string.\n   *\n   * @return A non-null reference to an XPath object that represents the string argument.\n   *\n   * @throws javax.xml.transform.TransformerException if the pattern can not be processed.\n   */\n  XPath createMatchPatternXPath(String str, ElemTemplateElement owningTemplate)\n          throws javax.xml.transform.TransformerException\n  {\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    return new XPath(str, owningTemplate, this, XPath.MATCH, handler);\n  }\n\n  /**\n   * Given a namespace, get the corrisponding prefix from the current\n   * namespace support context.\n   *\n   * @param prefix The prefix to look up, which may be an empty string (\"\") for the default Namespace.\n   *\n   * @return The associated Namespace URI, or null if the prefix\n   *         is undeclared in this context.\n   */\n  public String getNamespaceForPrefix(String prefix)\n  {\n    return this.getNamespaceSupport().getURI(prefix);\n  }\n\n  /**\n   * Given a namespace, get the corrisponding prefix.  This is here only\n   * to support the {@link org.apache.xml.utils.PrefixResolver} interface,\n   * and will throw an error if invoked on this object.\n   *\n   * @param prefix The prefix to look up, which may be an empty string (\"\") for the default Namespace.\n   * @param context The node context from which to look up the URI.\n   *\n   * @return The associated Namespace URI, or null if the prefix\n   *         is undeclared in this context.\n   */\n  public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context)\n  {\n\n    assertion(true, \"can't process a context node in StylesheetHandler!\");\n\n    return null;\n  }\n\n  /**\n   * Utility function to see if the stack contains the given URL.\n   *\n   * @param stack non-null reference to a Stack.\n   * @param url URL string on which an equality test will be performed.\n   *\n   * @return true if the stack contains the url argument.\n   */\n  private boolean stackContains(Stack stack, String url)\n  {\n\n    int n = stack.size();\n    boolean contains = false;\n\n    for (int i = 0; i < n; i++)\n    {\n      String url2 = (String) stack.elementAt(i);\n\n      if (url2.equals(url))\n      {\n        contains = true;\n\n        break;\n      }\n    }\n\n    return contains;\n  }\n\n\n  /**\n   * When this object is used as a ContentHandler or ContentHandler, it will\n   * create a Templates object, which the caller can get once\n   * the SAX events have been completed.\n   * @return The stylesheet object that was created during\n   * the SAX event process, or null if no stylesheet has\n   * been created.\n   *\n   * @version Alpha\n   * @author <a href=\"mailto:scott_boag@lotus.com\">Scott Boag</a>\n   */\n  public Templates getTemplates()\n  {\n    return getStylesheetRoot();\n  }\n\n  /**\n   * Set the base ID (URL or system ID) for the stylesheet\n   * created by this builder.  This must be set in order to\n   * resolve relative URLs in the stylesheet.\n   *\n   * @param baseID Base URL for this stylesheet.\n   */\n  public void setSystemId(String baseID)\n  {\n    pushBaseIndentifier(baseID);\n  }\n\n  /**\n   * Get the base ID (URI or system ID) from where relative\n   * URLs will be resolved.\n   *\n   * @return The systemID that was set with {@link #setSystemId}.\n   */\n  public String getSystemId()\n  {\n    return this.getBaseIdentifier();\n  }\n\n\n  /**\n   * Resolve an external entity.\n   *\n   * @param publicId The public identifer, or null if none is\n   *                 available.\n   * @param systemId The system identifier provided in the XML\n   *                 document.\n   * @return The new input source, or null to require the\n   *         default behaviour.\n   *\n   * @throws org.xml.sax.SAXException if the entity can not be resolved.\n   */\n  public InputSource resolveEntity(String publicId, String systemId)\n          throws org.xml.sax.SAXException\n  {\n    return getCurrentProcessor().resolveEntity(this, publicId, systemId);\n  }\n\n\n  /**\n   * Receive notification of a notation declaration.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass if they wish to keep track of the notations\n   * declared in a document.</p>\n   *\n   * @param name The notation name.\n   * @param publicId The notation public identifier, or null if not\n   *                 available.\n   * @param systemId The notation system identifier.\n   * @see org.xml.sax.DTDHandler#notationDecl\n   */\n  public void notationDecl(String name, String publicId, String systemId)\n  {\n    getCurrentProcessor().notationDecl(this, name, publicId, systemId);\n  }\n\n  /**\n   * Receive notification of an unparsed entity declaration.\n   *\n   * @param name The entity name.\n   * @param publicId The entity public identifier, or null if not\n   *                 available.\n   * @param systemId The entity system identifier.\n   * @param notationName The name of the associated notation.\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void unparsedEntityDecl(String name, String publicId,\n                                 String systemId, String notationName)\n  {\n    getCurrentProcessor().unparsedEntityDecl(this, name, publicId, systemId,\n                                             notationName);\n  }\n\n  /**\n   * Given a namespace URI, and a local name or a node type, get the processor\n   * for the element, or return null if not allowed.\n   *\n   * @param uri The Namespace URI, or an empty string.\n   * @param localName The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   *\n   * @return A non-null reference to a element processor.\n   *\n   * @throws org.xml.sax.SAXException if the element is not allowed in the\n   * found position in the stylesheet.\n   */\n  XSLTElementProcessor getProcessorFor(\n          String uri, String localName, String rawName)\n            throws org.xml.sax.SAXException\n  {\n\n    XSLTElementProcessor currentProcessor = getCurrentProcessor();\n    XSLTElementDef def = currentProcessor.getElemDef();\n    XSLTElementProcessor elemProcessor = def.getProcessorFor(uri, localName);\n\n    if (null == elemProcessor\n            && ((null == getStylesheet()\n                || Double.valueOf(getStylesheet().getVersion()).doubleValue()\n                   > Constants.XSLTVERSUPPORTED) \n                ||(!uri.equals(Constants.S_XSLNAMESPACEURL) &&\n                            currentProcessor instanceof ProcessorStylesheetElement)\n                || getElemVersion() > Constants.XSLTVERSUPPORTED\n        ))\n    {\n      elemProcessor = def.getProcessorForUnknown(uri, localName);\n    }\n\n    if (null == elemProcessor)\n            \n                \n    return elemProcessor;\n  }\n\n\n  /**\n   * Receive a Locator object for document events.\n   * This is called by the parser to push a locator for the\n   * stylesheet being parsed. The stack needs to be popped\n   * after the stylesheet has been parsed. We pop in\n   * popStylesheet.\n   *\n   * @param locator A locator for all SAX document events.\n   * @see org.xml.sax.ContentHandler#setDocumentLocator\n   * @see org.xml.sax.Locator\n   */\n  public void setDocumentLocator(Locator locator)\n  {\n\n    m_stylesheetLocatorStack.push(new SAXSourceLocator(locator));\n  }\n\n  /**\n   * The level of the stylesheet we are at.\n   */\n  private int m_stylesheetLevel = -1;\n\n  /**\n   * Receive notification of the beginning of the document.\n   *\n   * @see org.xml.sax.ContentHandler#startDocument\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void startDocument() throws org.xml.sax.SAXException\n  {\n    m_stylesheetLevel++;\n    pushSpaceHandling(false);\n  }\n\n  /** m_parsingComplete becomes true when the top-level stylesheet and all\n   * its included/imported stylesheets have been been fully parsed, as an\n   * indication that composition/optimization/compilation can begin.\n   * @see isStylesheetParsingComplete  */\n  private boolean m_parsingComplete = false;\n\n  /**\n   * Test whether the _last_ endDocument() has been processed.\n   * This is needed as guidance for stylesheet optimization\n   * and compilation engines, which generally don't want to start\n   * until all included and imported stylesheets have been fully\n   * parsed.\n   *\n   * @return true iff the complete stylesheet tree has been built.\n   */\n  public boolean isStylesheetParsingComplete()\n  {\n    return m_parsingComplete;\n  }\n\n  /**\n   * Receive notification of the end of the document.\n   *\n   * @see org.xml.sax.ContentHandler#endDocument\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void endDocument() throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      if (null != getStylesheetRoot())\n      {\n        if (0 == m_stylesheetLevel)\n          getStylesheetRoot().recompose();        \n      }\n      else{\n\n      XSLTElementProcessor elemProcessor = getCurrentProcessor();\n\n      if (null != elemProcessor)\n        elemProcessor.startNonText(this);\n\n      m_stylesheetLevel--;\t\t\t\n      \n      popSpaceHandling();\n\n      m_parsingComplete = (m_stylesheetLevel < 0);\n    }\n    }catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n  \n  private java.util.Vector m_prefixMappings = new java.util.Vector();\n\n  /**\n   * Receive notification of the start of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each element (such as allocating a new tree node or writing\n   * output to a file).</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @param uri The Namespace URI mapped to the prefix.\n   * @see org.xml.sax.ContentHandler#startPrefixMapping\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void startPrefixMapping(String prefix, String uri)\n          throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of the end of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each element (such as allocating a new tree node or writing\n   * output to a file).</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @see org.xml.sax.ContentHandler#endPrefixMapping\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void endPrefixMapping(String prefix) throws org.xml.sax.SAXException\n  {\n\n  }\n\n  /**\n   * Flush the characters buffer.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  private void flushCharacters() throws org.xml.sax.SAXException\n  {\n\n    XSLTElementProcessor elemProcessor = getCurrentProcessor();\n\n    if (null != elemProcessor)\n      elemProcessor.startNonText(this);\n  }\n\n  /**\n   * Receive notification of the start of an element.\n   *\n   * @param name The element type name.\n   *\n   * @param uri The Namespace URI, or an empty string.\n   * @param localName The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @param attributes The specified or defaulted attributes.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void startElement(\n          String uri, String localName, String rawName, Attributes attributes)\n            throws org.xml.sax.SAXException\n  {\n    NamespaceSupport nssupport = this.getNamespaceSupport();\n    nssupport.pushContext();\n    \n    int n = m_prefixMappings.size();\n\n    for (int i = 0; i < n; i++) \n    {\n      String prefix = (String)m_prefixMappings.elementAt(i++);\n      String nsURI = (String)m_prefixMappings.elementAt(i);\n      nssupport.declarePrefix(prefix, nsURI);\n    }\n\n    m_elementID++;\n\n\n    checkForFragmentID(attributes);\n\n    if (!m_shouldProcess)\n      return;\n\n    flushCharacters();\n    \n    pushSpaceHandling(attributes);\n\n    XSLTElementProcessor elemProcessor = getProcessorFor(uri, localName,\n                                           rawName);\n\n    \n      this.pushProcessor(elemProcessor);\n      elemProcessor.startElement(this, uri, localName, rawName, attributes);\n    \n      m_shouldProcess = false;\n      popSpaceHandling();\n    \n                \n  }\n\n  /**\n   * Receive notification of the end of an element.\n   *\n   * @param name The element type name.\n   * @param attributes The specified or defaulted attributes.\n   *\n   * @param uri The Namespace URI, or an empty string.\n   * @param localName The local name (without prefix), or empty string if not namespace processing.\n   * @param rawName The qualified name (with prefix).\n   * @see org.xml.sax.ContentHandler#endElement\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void endElement(String uri, String localName, String rawName)\n          throws org.xml.sax.SAXException\n  {\n\n    m_elementID--;\n\n    if (!m_shouldProcess)\n      return;\n\n    if ((m_elementID + 1) == m_fragmentID)\n      m_shouldProcess = false;\n\n    flushCharacters();\n    \n    popSpaceHandling();\n\n    XSLTElementProcessor p = getCurrentProcessor();\n\n    p.endElement(this, uri, localName, rawName);\n    this.popProcessor();\n    this.getNamespaceSupport().popContext();\n  }\n\n  /**\n   * Receive notification of character data inside an element.\n   *\n   * @param ch The characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @see org.xml.sax.ContentHandler#characters\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void characters(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    XSLTElementProcessor elemProcessor = getCurrentProcessor();\n    XSLTElementDef def = elemProcessor.getElemDef();\n\n    if (def.getType() != XSLTElementDef.T_PCDATA)\n      elemProcessor = def.getProcessorFor(null, \"text()\");\n\n    if (null == elemProcessor)\n    {\n\n      if (!XMLCharacterRecognizer.isWhiteSpace(ch, start, length)){}\n        \n    }\n    else\n      elemProcessor.characters(this, ch, start, length);\n  }\n\n  /**\n   * Receive notification of ignorable whitespace in element content.\n   *\n   * @param ch The whitespace characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @see org.xml.sax.ContentHandler#ignorableWhitespace\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void ignorableWhitespace(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    getCurrentProcessor().ignorableWhitespace(this, ch, start, length);\n  }\n\n  /**\n   * Receive notification of a processing instruction.\n   *\n   * <p>The Parser will invoke this method once for each processing\n   * instruction found: note that processing instructions may occur\n   * before or after the main document element.</p>\n   *\n   * <p>A SAX parser should never report an XML declaration (XML 1.0,\n   * section 2.8) or a text declaration (XML 1.0, section 4.3.1)\n   * using this method.</p>\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param target The processing instruction target.\n   * @param data The processing instruction data, or null if\n   *             none is supplied.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void processingInstruction(String target, String data)\n          throws org.xml.sax.SAXException\n  {\n    if (!m_shouldProcess)\n      return;\n\n    \n    String prefix=\"\",ns=\"\", localName=target;\n    int colon=target.indexOf(':');\n    if(colon>=0)\n    {\n      ns=getNamespaceForPrefix(prefix=target.substring(0,colon));\n      localName=target.substring(colon+1);\n    }\n\n    try\n    {\n      if(\n\t \"xalan:doc-cache-off\".equals(target) ||\n\t   (\"doc-cache-off\".equals(localName) &&\n\t    ns.equals(\"org.apache.xalan.xslt.extensions.Redirect\") )\n\t )\n      {\n\tif(!(m_elems.peek() instanceof ElemForEach))\n          throw new TransformerException\n\t    (\"xalan:doc-cache-off not allowed here!\", \n\t     getLocator());\n        ElemForEach elem = (ElemForEach)m_elems.peek();\n\n        elem.m_doc_cache_off = true;\n\n      }\n    }\n    catch(Exception e)\n    {\n    }\n\n\n    flushCharacters();\n    getCurrentProcessor().processingInstruction(this, target, data);\n  }\n\n  /**\n   * Receive notification of a skipped entity.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param name The name of the skipped entity.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   */\n  public void skippedEntity(String name) throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    getCurrentProcessor().skippedEntity(this, name);\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"internal\"/>\n   * Warn the user of an problem.\n   *\n   * @param msg An index into the {@link org.apache.xalan.res.XSLTErrorResources}\n   * table, that is one of the WG_ prefixed definitions.\n   * @param args An array of arguments for the given warning.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#warning}\n   * method chooses to flag this condition as an error.\n   */\n  public void warn(int msg, Object args[]) throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = m_XSLMessages.createWarning(msg, args);\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      if (null != handler)\n        handler.warning(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"internal\"/>\n   * Assert that a condition is true.  If it is not true, throw an error.\n   *\n   * @param condition false if an error should not be thrown, otherwise true.\n   * @param msg Error message to be passed to the RuntimeException as an\n   * argument.\n   * @throws RuntimeException if the condition is not true.\n   */\n  private void assertion(boolean condition, String msg) throws RuntimeException\n  {\n    if (!condition)\n      throw new RuntimeException(msg);\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"internal\"/>\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg An error message.\n   * @param e An error which the SAXException should wrap.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#error}\n   * method chooses to flag this condition as an error.\n   */\n  protected void error(String msg, Exception e)\n          throws org.xml.sax.SAXException\n  {\n\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    TransformerException pe;\n\n    if (!(e instanceof TransformerException))\n    {\n      pe = (null == e)\n           ? new TransformerException(msg, locator)\n           : new TransformerException(msg, locator, e);\n    }\n    else\n      pe = (TransformerException) e;\n\n    if (null != handler)\n    {\n      try\n      {\n        handler.error(pe);\n      }\n      catch (TransformerException te)\n      {\n        throw new org.xml.sax.SAXException(te);\n      }\n    }\n    else\n      throw new org.xml.sax.SAXException(pe);\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"internal\"/>\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg An index into the {@link org.apache.xalan.res.XSLTErrorResources}\n   * table, that is one of the WG_ prefixed definitions.\n   * @param args An array of arguments for the given warning.\n   * @param e An error which the SAXException should wrap.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#error}\n   * method chooses to flag this condition as an error.\n   */\n  protected void error(int msg, Object args[], Exception e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = m_XSLMessages.createMessage(msg, args);\n\n    error(formattedMsg, e);\n  }\n\n  /**\n   * Receive notification of a XSLT processing warning.\n   *\n   * @param e The warning information encoded as an exception.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#warning}\n   * method chooses to flag this condition as an error.\n   */\n  public void warning(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.warning(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * Receive notification of a recoverable XSLT processing error.\n   *\n   * @param e The error information encoded as an exception.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#error}\n   * method chooses to flag this condition as an error.\n   */\n  public void error(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.error(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * Report a fatal XSLT processing error.\n   *\n   * @param e The error information encoded as an exception.\n   *\n   * @throws org.xml.sax.SAXException that wraps a\n   * {@link javax.xml.transform.TransformerException} if the current\n   * {@link javax.xml.transform.ErrorListener#fatalError}\n   * method chooses to flag this condition as an error.\n   */\n  public void fatalError(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.fatalError(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);\n    }\n  }\n\n  /**\n   * If we have a URL to a XML fragment, this is set\n   * to false until the ID is found.\n   * (warning: I worry that this should be in a stack).\n   */\n  private boolean m_shouldProcess = true;\n\n  /**\n   * If we have a URL to a XML fragment, the value is stored\n   * in this string, and the m_shouldProcess flag is set to\n   * false until we match an ID with this string.\n   * (warning: I worry that this should be in a stack).\n   */\n  private String m_fragmentIDString;\n\n  /**\n   * Keep track of the elementID, so we can tell when\n   * is has completed.  This isn't a real ID, but rather\n   * a nesting level.  However, it's good enough for\n   * our purposes.\n   * (warning: I worry that this should be in a stack).\n   */\n  private int m_elementID = 0;\n\n  /**\n   * The ID of the fragment that has been found\n   * (warning: I worry that this should be in a stack).\n   */\n  private int m_fragmentID = 0;\n\n  /**\n   * Check to see if an ID attribute matched the #id, called\n   * from startElement.\n   *\n   * @param attributes The specified or defaulted attributes.\n   */\n  private void checkForFragmentID(Attributes attributes)\n  {\n\n    if (!m_shouldProcess)\n    {\n      if ((null != attributes) && (null != m_fragmentIDString))\n      {\n        int n = attributes.getLength();\n\n        for (int i = 0; i < n; i++)\n        {\n          String name = attributes.getQName(i);\n\n          if (name.equals(Constants.ATTRNAME_ID))\n          {\n            String val = attributes.getValue(i);\n\n            if (val.equalsIgnoreCase(m_fragmentIDString))\n            {\n              m_shouldProcess = true;\n              m_fragmentID = m_elementID;\n            }\n          }\n        }\n      }\n    }\n  }\n\n  /**\n   *  The XSLT TransformerFactory for needed services.\n   */\n  private TransformerFactoryImpl m_stylesheetProcessor;\n\n  /**\n   * Get the XSLT TransformerFactoryImpl for needed services.\n   * TODO: This method should be renamed.\n   *\n   * @return The TransformerFactoryImpl that owns this handler.\n   */\n  TransformerFactoryImpl getStylesheetProcessor()\n  {\n    return m_stylesheetProcessor;\n  }\n\n  /**\n   * If {@link #getStylesheetType} returns this value, the current stylesheet\n   *  is a root stylesheet.\n   */\n  static final int STYPE_ROOT = 1;\n\n  /**\n   * If {@link #getStylesheetType} returns this value, the current stylesheet\n   *  is an included stylesheet.\n   */\n  static final int STYPE_INCLUDE = 2;\n\n  /**\n   * If {@link #getStylesheetType} returns this value, the current stylesheet\n   *  is an imported stylesheet.\n   */\n  static final int STYPE_IMPORT = 3;\n\n  /** The current stylesheet type. */\n  private int m_stylesheetType = STYPE_ROOT;\n\n  /**\n   * Get the type of stylesheet that should be built\n   * or is being processed.\n   *\n   * @return one of STYPE_ROOT, STYPE_INCLUDE, or STYPE_IMPORT.\n   */\n  int getStylesheetType()\n  {\n    return m_stylesheetType;\n  }\n\n  /**\n   * Set the type of stylesheet that should be built\n   * or is being processed.\n   *\n   * @param type Must be one of STYPE_ROOT, STYPE_INCLUDE, or STYPE_IMPORT.\n   */\n  void setStylesheetType(int type)\n  {\n    m_stylesheetType = type;\n  }\n\n  /**\n   * The stack of stylesheets being processed.\n   */\n  private Stack m_stylesheets = new Stack();\n\n  /**\n   * Return the stylesheet that this handler is constructing.\n   *\n   * @return The current stylesheet that is on top of the stylesheets stack,\n   *  or null if no stylesheet is on the stylesheets stack.\n   */\n  Stylesheet getStylesheet()\n  {\n    return (m_stylesheets.size() == 0)\n           ? null : (Stylesheet) m_stylesheets.peek();\n  }\n\n  /**\n   * Return the last stylesheet that was popped off the stylesheets stack.\n   *\n   * @return The last popped stylesheet, or null.\n   */\n  Stylesheet getLastPoppedStylesheet()\n  {\n    return m_lastPoppedStylesheet;\n  }\n\n  /**\n   * Return the stylesheet root that this handler is constructing.\n   *\n   * @return The root stylesheet of the stylesheets tree.\n   */\n  public StylesheetRoot getStylesheetRoot()\n  {\n    return m_stylesheetRoot;\n  }\n\n  /** The root stylesheet of the stylesheets tree. */\n  StylesheetRoot m_stylesheetRoot;\n        \n        /** The last stylesheet that was popped off the stylesheets stack. */\n  Stylesheet m_lastPoppedStylesheet;\n\n  /**\n   * Push the current stylesheet being constructed. If no other stylesheets\n   * have been pushed onto the stack, assume the argument is a stylesheet\n   * root, and also set the stylesheet root member.\n   *\n   * @param s non-null reference to a stylesheet.\n   */\n  public void pushStylesheet(Stylesheet s)\n  {\n\n    if (m_stylesheets.size() == 0)\n      m_stylesheetRoot = (StylesheetRoot) s;\n\n    m_stylesheets.push(s);\n  }\n\n  /**\n   * Pop the last stylesheet pushed, and return the stylesheet that this\n   * handler is constructing, and set the last popped stylesheet member.\n   * Also pop the stylesheet locator stack.\n   *\n   * @return The stylesheet popped off the stack, or the last popped stylesheet.\n   */\n  Stylesheet popStylesheet()\n  {\n\n    if (!m_stylesheetLocatorStack.isEmpty())\n      m_stylesheetLocatorStack.pop();\n\n    if (!m_stylesheets.isEmpty())\n      m_lastPoppedStylesheet = (Stylesheet) m_stylesheets.pop();\n\n    return m_lastPoppedStylesheet;\n  }\n\n  /**\n   * The stack of current processors.\n   */\n  private Stack m_processors = new Stack();\n\n  /**\n   * Get the current XSLTElementProcessor at the top of the stack.\n   *\n   * @return Valid XSLTElementProcessor, which should never be null.\n   */\n  XSLTElementProcessor getCurrentProcessor()\n  {\n    return (XSLTElementProcessor) m_processors.peek();\n  }\n\n  /**\n   * Push the current XSLTElementProcessor onto the top of the stack.\n   *\n   * @param processor non-null reference to the current element processor.\n   */\n  void pushProcessor(XSLTElementProcessor processor)\n  {\n    m_processors.push(processor);\n  }\n\n  /**\n   * Pop the current XSLTElementProcessor from the top of the stack.\n   * @return the XSLTElementProcessor which was popped.\n   */\n  XSLTElementProcessor popProcessor()\n  {\n    return (XSLTElementProcessor) m_processors.pop();\n  }\n\n  /**\n   * The root of the XSLT Schema, which tells us how to\n   * transition content handlers, create elements, etc.\n   * For the moment at least, this can't be static, since\n   * the processors store state.\n   */\n  private XSLTSchema m_schema = new XSLTSchema();\n\n  /**\n   * Get the root of the XSLT Schema, which tells us how to\n   * transition content handlers, create elements, etc.\n   *\n   * @return The root XSLT Schema, which should never be null.\n   */\n  XSLTSchema getSchema()\n  {\n    return m_schema;\n  }\n\n  /**\n   * The stack of elements, pushed and popped as events occur.\n   */\n  private Stack m_elems = new Stack();\n\n  /**\n   * Get the current ElemTemplateElement at the top of the stack.\n   * @return Valid ElemTemplateElement, which may be null.\n   */\n  ElemTemplateElement getElemTemplateElement()\n  {\n\n    try\n    {\n      return (ElemTemplateElement) m_elems.peek();\n    }\n    catch (java.util.EmptyStackException ese)\n    {\n      return null;\n    }\n  }  \n\n  /** An increasing number that is used to indicate the order in which this element\n   *  was encountered during the parse of the XSLT tree.\n   */\n  private int m_docOrderCount = 0;\n\n  /**\n   * Returns the next m_docOrderCount number and increments the number for future use.\n   */\n  int nextUid()\n  {\n    return m_docOrderCount++;\n  }\n\n  /**\n   * Push the current XSLTElementProcessor to the top of the stack.  As a\n   * side-effect, set the document order index (simply because this is a\n   * convenient place to set it).\n   *\n   * @param elem Should be a non-null reference to the intended current\n   * template element.\n   */\n  void pushElemTemplateElement(ElemTemplateElement elem)\n  {\n\n    if (elem.getUid() == -1)\n      elem.setUid(nextUid());\n\n    m_elems.push(elem);\n  }\n\n  /**\n   * Get the current XSLTElementProcessor from the top of the stack.\n   * @return the ElemTemplateElement which was popped.\n   */\n  ElemTemplateElement popElemTemplateElement()\n  {\n    return (ElemTemplateElement) m_elems.pop();\n  }\n\n  \n  /**\n   * A XSLMessages instance capable of producing user messages.\n   */\n  private static XSLMessages m_XSLMessages = new XSLMessages();\n\n  /**\n   * Get an XSLMessages instance capable of producing user messages.\n   *\n   * @return non-null reference to the error and warnings table.\n   */\n  XSLMessages getXSLMessages()\n  {\n    return m_XSLMessages;\n  }\n\n  /**\n   * This will act as a stack to keep track of the\n   * current include base.\n   */\n  Stack m_baseIdentifiers = new Stack();\n\n  /**\n   * Push a base identifier onto the base URI stack.\n   *\n   * @param baseID The current base identifier for this position in the\n   * stylesheet, which may be a fragment identifier, or which may be null.\n   * Section 3.2 Base URI of XSLT specification.</a>\n   */\n  void pushBaseIndentifier(String baseID)\n  {\n\n    if (null != baseID)\n    {\n      int posOfHash = baseID.indexOf('#');\n\n      if (posOfHash > -1)\n      {\n        m_fragmentIDString = baseID.substring(posOfHash + 1);\n        m_shouldProcess = false;\n      }\n      else\n        m_shouldProcess = true;\n    }\n    else\n      m_shouldProcess = true;\n\n    m_baseIdentifiers.push(baseID);\n  }\n\n  /**\n   * Pop a base URI from the stack.\n   * @return baseIdentifier.\n   */\n  String popBaseIndentifier()\n  {\n    return (String) m_baseIdentifiers.pop();\n  }\n\n  /**\n   * Return the base identifier.\n   *\n   * @return The base identifier of the current stylesheet.\n   */\n  public String getBaseIdentifier()\n  {\n\n    String base = (String) (m_baseIdentifiers.isEmpty()\n                            ? null : m_baseIdentifiers.peek());\n\n    if (null == base)\n    {\n      SourceLocator locator = getLocator();\n\n      base = (null == locator) ? \"\" : locator.getSystemId();\n    }\n\n    return base;\n  }\n\n  /**\n   * The top of this stack should contain the currently processed\n   * stylesheet SAX locator object.\n   */\n  private Stack m_stylesheetLocatorStack = new Stack();\n\n  /**\n   * Get the current stylesheet Locator object.\n   *\n   * @return non-null reference to the current locator object.\n   */\n  public SAXSourceLocator getLocator()\n  {\n\n    if (m_stylesheetLocatorStack.isEmpty())\n    {\n      SAXSourceLocator locator = new SAXSourceLocator();\n\n      locator.setSystemId(this.getStylesheetProcessor().getDOMsystemID());\n\n      return locator;\n\n    }\n\n    return ((SAXSourceLocator) m_stylesheetLocatorStack.peek());\n  }\n\n  /**\n   * A stack of URL hrefs for imported stylesheets.  This is\n   * used to diagnose circular imports.\n   */\n  private Stack m_importStack = new Stack();\n\n  /**\n   * Push an import href onto the stylesheet stack.\n   *\n   * @param hrefUrl non-null reference to the URL for the current imported\n   * stylesheet.\n   */\n  void pushImportURL(String hrefUrl)\n  {\n    m_importStack.push(hrefUrl);\n  }\n\n  /**\n   * See if the imported stylesheet stack already contains\n   * the given URL.  Used to test for recursive imports.\n   *\n   * @param hrefUrl non-null reference to a URL string.\n   *\n   * @return true if the URL is on the import stack.\n   */\n  boolean importStackContains(String hrefUrl)\n  {\n    return stackContains(m_importStack, hrefUrl);\n  }\n\n  /**\n   * Pop an import href from the stylesheet stack.\n   *\n   * @return non-null reference to the import URL that was popped.\n   */\n  String popImportURL()\n  {\n    return (String) m_importStack.pop();\n  }\n\n  /**\n   * If this is set to true, we've already warned about using the\n   * older XSLT namespace URL.\n   */\n  private boolean warnedAboutOldXSLTNamespace = false;\n\n  /** Stack of NamespaceSupport objects. */\n  Stack m_nsSupportStack = new Stack();\n\n  /**\n   * Push a new NamespaceSupport instance.\n   */\n  void pushNewNamespaceSupport()\n  {\n    m_nsSupportStack.push(new NamespaceSupport2());\n  }\n\n  /**\n   * Pop the current NamespaceSupport object.\n   *\n   */\n  void popNamespaceSupport()\n  {\n    m_nsSupportStack.pop();\n  }\n\n  /**\n   * Get the current NamespaceSupport object.\n   *\n   * @return a non-null reference to the current NamespaceSupport object,\n   * which is the top of the namespace support stack.\n   */\n  NamespaceSupport getNamespaceSupport()\n  {\n    return (NamespaceSupport) m_nsSupportStack.peek();\n  }\n\n  /**\n   * The originating node if the current stylesheet is being created\n   *  from a DOM.\n   *  @see org.apache.xml.utils.NodeConsumer\n   */\n  private Node m_originatingNode;\n\n  /**\n   * Set the node that is originating the SAX event.\n   *\n   * @param n Reference to node that originated the current event.\n   * @see org.apache.xml.utils.NodeConsumer\n   */\n  public void setOriginatingNode(Node n)\n  {\n    m_originatingNode = n;\n  }\n\n  /**\n   * Set the node that is originating the SAX event.\n   *\n   * @return Reference to node that originated the current event.\n   * @see org.apache.xml.utils.NodeConsumer\n   */\n  public Node getOriginatingNode()\n  {\n    return m_originatingNode;\n  }\n  \n  /**\n   * Stack of booleans that are pushed and popped in start/endElement depending \n   * on the value of xml:space=default/preserve.\n   */\n  private BoolStack m_spacePreserveStack = new BoolStack();\n  \n  /**\n   * Return boolean value from the spacePreserve stack depending on the value \n   * of xml:space=default/preserve.\n   * \n   * @return true if space should be preserved, false otherwise.\n   */\n  boolean isSpacePreserve()\n  {\n    return m_spacePreserveStack.peek();\n  }\n  \n  /**\n   * Pop boolean value from the spacePreserve stack.\n   */\n  void popSpaceHandling()\n  {\n    m_spacePreserveStack.pop();\n  }\n  \n  /**\n   * Push boolean value on to the spacePreserve stack.\n   * \n   * @param b true if space should be preserved, false otherwise.\n   */\n  void pushSpaceHandling(boolean b)\n    throws org.xml.sax.SAXParseException\n  {\n    m_spacePreserveStack.push(b);\n  }\n  \n  /**\n   * Push boolean value on to the spacePreserve stack depending on the value \n   * of xml:space=default/preserve.\n   * \n   * @param attrs list of attributes that were passed to startElement.\n   */\n  void pushSpaceHandling(Attributes attrs)\n    throws org.xml.sax.SAXParseException\n  {    \n    String value = attrs.getValue(\"xml:space\");\n    if(null == value)\n    {\n      m_spacePreserveStack.push(m_spacePreserveStack.peekOrFalse());\n    }\n    else if(value.equals(\"preserve\"))\n    {\n      m_spacePreserveStack.push(true);\n    }\n    else if(value.equals(\"default\"))\n    {\n      m_spacePreserveStack.push(false);\n    }\n    else\n    {\n      SAXSourceLocator locator = getLocator();\n      ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n  \n      try\n      {\n      }\n      catch (TransformerException te)\n      {\n        throw new org.xml.sax.SAXParseException(te.getMessage(), locator, te);\n      }\n      m_spacePreserveStack.push(m_spacePreserveStack.peek());\n    }\n  }\n  \n  private double getElemVersion()\n  {\n    ElemTemplateElement elem = getElemTemplateElement();\n    double version = -1; \n    while ((version == -1 || version == Constants.XSLTVERSUPPORTED) && elem != null)\n    {\n      try{\n      version = Double.valueOf(elem.getVersion()).doubleValue();\n      }\n      catch (Exception ex)\n      {\n        version = -1;\n      }\n      elem = elem.getParentElem();\n      }\n    return (version == -1)? Constants.XSLTVERSUPPORTED : version;\n  }\n\t/**\n\t * @see PrefixResolver#handlesNullPrefixes()\n\t */\n\tpublic boolean handlesNullPrefixes() {\n\t\treturn false;", "functions": [{"function_name": "init", "code": "  void init(TransformerFactoryImpl processor)\n  {\n\n    if (false == m_xpathFunctionsInited)\n    {\n      synchronized (this)\n      {\n        if (false == m_xpathFunctionsInited)\n        {\n          m_xpathFunctionsInited = true;\n\n          Function func = new org.apache.xalan.templates.FuncDocument();\n\n          FunctionTable.installFunction(\"document\", func);\n\n          func = new org.apache.xalan.templates.FuncFormatNumb();\n\n          FunctionTable.installFunction(\"format-number\", func);\n        }\n      }\n    }\n\n    m_stylesheetProcessor = processor;\n\n    m_processors.push(m_schema.getElementProcessor());\n    this.pushNewNamespaceSupport();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [3, 7], [5, 8], [1, 9], [9, 10], [9, 11], [10, 12], [9, 13], [9, 14], [9, 15], [9, 16], [13, 17], [14, 18], [15, 19], [11, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 3], [8, 5], [9, 1], [10, 9], [11, 9], [12, 10], [13, 9], [14, 9], [15, 9], [16, 9], [17, 13], [18, 14], [19, 15], [20, 11], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createXPath", "code": "  public XPath createXPath(String str, ElemTemplateElement owningTemplate)\n          throws javax.xml.transform.TransformerException\n  {\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    XPath xpath = new XPath(str, owningTemplate, this, XPath.SELECT, handler);\n    xpath.callVisitors(xpath, new ExpressionVisitor(getStylesheetRoot()));\n    return xpath;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [2, 8], [3, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 2], [9, 3], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createMatchPatternXPath", "code": "  XPath createMatchPatternXPath(String str, ElemTemplateElement owningTemplate)\n          throws javax.xml.transform.TransformerException\n  {\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    return new XPath(str, owningTemplate, this, XPath.MATCH, handler);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNamespaceForPrefix", "code": "  public String getNamespaceForPrefix(String prefix)\n  {\n    return this.getNamespaceSupport().getURI(prefix);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNamespaceForPrefix", "code": "  public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context)\n  {\n\n    assertion(true, \"can't process a context node in StylesheetHandler!\");\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "stackContains", "code": "  private boolean stackContains(Stack stack, String url)\n  {\n\n    int n = stack.size();\n    boolean contains = false;\n\n    for (int i = 0; i < n; i++)\n    {\n      String url2 = (String) stack.elementAt(i);\n\n      if (url2.equals(url))\n      {\n        contains = true;\n\n        break;\n      }\n    }\n\n    return contains;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [3, 10], [4, 11], [8, 12], [2, 13], [8, 14], [8, 15], [9, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 3], [11, 4], [12, 8], [13, 2], [14, 8], [15, 8], [16, 9], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getTemplates", "code": "  public Templates getTemplates()\n  {\n    return getStylesheetRoot();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSystemId", "code": "  public void setSystemId(String baseID)\n  {\n    pushBaseIndentifier(baseID);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemId", "code": "  public String getSystemId()\n  {\n    return this.getBaseIdentifier();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "resolveEntity", "code": "  public InputSource resolveEntity(String publicId, String systemId)\n          throws org.xml.sax.SAXException\n  {\n    return getCurrentProcessor().resolveEntity(this, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "notationDecl", "code": "  public void notationDecl(String name, String publicId, String systemId)\n  {\n    getCurrentProcessor().notationDecl(this, name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "unparsedEntityDecl", "code": "  public void unparsedEntityDecl(String name, String publicId,\n                                 String systemId, String notationName)\n  {\n    getCurrentProcessor().unparsedEntityDecl(this, name, publicId, systemId,\n                                             notationName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getProcessorFor", "code": "  XSLTElementProcessor getProcessorFor(\n          String uri, String localName, String rawName)\n            throws org.xml.sax.SAXException\n  {\n\n    XSLTElementProcessor currentProcessor = getCurrentProcessor();\n    XSLTElementDef def = currentProcessor.getElemDef();\n    XSLTElementProcessor elemProcessor = def.getProcessorFor(uri, localName);\n\n    if (null == elemProcessor\n            && ((null == getStylesheet()\n                || Double.valueOf(getStylesheet().getVersion()).doubleValue()\n                   > Constants.XSLTVERSUPPORTED) \n                ||(!uri.equals(Constants.S_XSLNAMESPACEURL) &&\n                            currentProcessor instanceof ProcessorStylesheetElement)\n                || getElemVersion() > Constants.XSLTVERSUPPORTED\n        ))\n    {\n      elemProcessor = def.getProcessorForUnknown(uri, localName);\n    }\n\n    if (null == elemProcessor)\n            \n                \n    return elemProcessor;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [2, 11], [10, 12], [11, 13], [11, 14], [3, 15], [4, 16], [5, 17], [2, 18], [13, 19], [13, 20], [14, 21], [18, 22], [19, 23], [20, 24], [20, 25], [24, 26], [24, 27], [25, 28], [25, 29], [28, 30], [29, 31], [29, 32], [30, 33], [30, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 2], [12, 10], [13, 11], [14, 11], [15, 3], [16, 4], [17, 5], [18, 2], [19, 13], [20, 13], [21, 14], [22, 18], [23, 19], [24, 20], [25, 20], [26, 24], [27, 24], [28, 25], [29, 25], [30, 28], [31, 29], [32, 29], [33, 30], [34, 30], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator)\n  {\n\n    m_stylesheetLocatorStack.push(new SAXSourceLocator(locator));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startDocument", "code": "  public void startDocument() throws org.xml.sax.SAXException\n  {\n    m_stylesheetLevel++;\n    pushSpaceHandling(false);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isStylesheetParsingComplete", "code": "  public boolean isStylesheetParsingComplete()\n  {\n    return m_parsingComplete;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endDocument", "code": "  public void endDocument() throws org.xml.sax.SAXException\n  {\n\n    try\n    {\n      if (null != getStylesheetRoot())\n      {\n        if (0 == m_stylesheetLevel)\n          getStylesheetRoot().recompose();        \n      }\n      else{\n\n      XSLTElementProcessor elemProcessor = getCurrentProcessor();\n\n      if (null != elemProcessor)\n        elemProcessor.startNonText(this);\n\n      m_stylesheetLevel--;\t\t\t\n      \n      popSpaceHandling();\n\n      m_parsingComplete = (m_stylesheetLevel < 0);\n    }\n    }catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [3, 7], [3, 8], [3, 9], [5, 10], [5, 11], [3, 12], [3, 13], [7, 14], [9, 15], [12, 16], [7, 17], [14, 18], [8, 19], [9, 20], [15, 21], [16, 22], [20, 23], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [7, 3], [8, 3], [9, 3], [10, 5], [11, 5], [12, 3], [13, 3], [14, 7], [15, 9], [16, 12], [17, 7], [18, 14], [19, 8], [20, 9], [21, 15], [22, 16], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(String prefix, String uri)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(String prefix) throws org.xml.sax.SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "flushCharacters", "code": "  private void flushCharacters() throws org.xml.sax.SAXException\n  {\n\n    XSLTElementProcessor elemProcessor = getCurrentProcessor();\n\n    if (null != elemProcessor)\n      elemProcessor.startNonText(this);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "startElement", "code": "  public void startElement(\n          String uri, String localName, String rawName, Attributes attributes)\n            throws org.xml.sax.SAXException\n  {\n    NamespaceSupport nssupport = this.getNamespaceSupport();\n    nssupport.pushContext();\n    \n    int n = m_prefixMappings.size();\n\n    for (int i = 0; i < n; i++) \n    {\n      String prefix = (String)m_prefixMappings.elementAt(i++);\n      String nsURI = (String)m_prefixMappings.elementAt(i);\n      nssupport.declarePrefix(prefix, nsURI);\n    }\n\n    m_elementID++;\n\n\n    checkForFragmentID(attributes);\n\n    if (!m_shouldProcess)\n      return;\n\n    flushCharacters();\n    \n    pushSpaceHandling(attributes);\n\n    XSLTElementProcessor elemProcessor = getProcessorFor(uri, localName,\n                                           rawName);\n\n    \n      this.pushProcessor(elemProcessor);\n      elemProcessor.startElement(this, uri, localName, rawName, attributes);\n    \n      m_shouldProcess = false;\n      popSpaceHandling();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [0, 16], [3, 17], [0, 18], [11, 19], [0, 20], [1, 21], [3, 22], [3, 23], [4, 24], [3, 25], [3, 26], [5, 27], [22, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 0], [17, 3], [18, 0], [19, 11], [20, 0], [21, 1], [22, 3], [23, 3], [24, 4], [25, 3], [26, 3], [27, 5], [28, 22], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "endElement", "code": "  public void endElement(String uri, String localName, String rawName)\n          throws org.xml.sax.SAXException\n  {\n\n    m_elementID--;\n\n    if (!m_shouldProcess)\n      return;\n\n    if ((m_elementID + 1) == m_fragmentID)\n      m_shouldProcess = false;\n\n    flushCharacters();\n    \n    popSpaceHandling();\n\n    XSLTElementProcessor p = getCurrentProcessor();\n\n    p.endElement(this, uri, localName, rawName);\n    this.popProcessor();\n    this.getNamespaceSupport().popContext();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [0, 12], [0, 13], [0, 14], [1, 15], [2, 16], [10, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 0], [13, 0], [14, 0], [15, 1], [16, 2], [17, 10], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "characters", "code": "  public void characters(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    XSLTElementProcessor elemProcessor = getCurrentProcessor();\n    XSLTElementDef def = elemProcessor.getElemDef();\n\n    if (def.getType() != XSLTElementDef.T_PCDATA)\n      elemProcessor = def.getProcessorFor(null, \"text()\");\n\n    if (null == elemProcessor)\n    {\n\n      if (!XMLCharacterRecognizer.isWhiteSpace(ch, start, length)){}\n        \n    }\n    else\n      elemProcessor.characters(this, ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [5, 11], [1, 12], [1, 13], [9, 14], [2, 15], [10, 16], [3, 17], [4, 18], [13, 19], [15, 20], [20, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 5], [12, 1], [13, 1], [14, 9], [15, 2], [16, 10], [17, 3], [18, 4], [19, 13], [20, 15], [21, 20], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    getCurrentProcessor().ignorableWhitespace(this, ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(String target, String data)\n          throws org.xml.sax.SAXException\n  {\n    if (!m_shouldProcess)\n      return;\n\n    \n    String prefix=\"\",ns=\"\", localName=target;\n    int colon=target.indexOf(':');\n    if(colon>=0)\n    {\n      ns=getNamespaceForPrefix(prefix=target.substring(0,colon));\n      localName=target.substring(colon+1);\n    }\n\n    try\n    {\n      if(\n\t \"xalan:doc-cache-off\".equals(target) ||\n\t   (\"doc-cache-off\".equals(localName) &&\n\t    ns.equals(\"org.apache.xalan.xslt.extensions.Redirect\") )\n\t )\n      {\n\tif(!(m_elems.peek() instanceof ElemForEach))\n          throw new TransformerException\n\t    (\"xalan:doc-cache-off not allowed here!\", \n\t     getLocator());\n        ElemForEach elem = (ElemForEach)m_elems.peek();\n\n        elem.m_doc_cache_off = true;\n\n      }\n    }\n    catch(Exception e)\n    {\n    }\n\n\n    flushCharacters();\n    getCurrentProcessor().processingInstruction(this, target, data);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CATCH", "IF", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [2, 12], [5, 13], [8, 14], [11, 15], [12, 16], [3, 17], [4, 18], [4, 19], [11, 20], [11, 21], [15, 22], [15, 23], [2, 24], [2, 25], [17, 26], [11, 27], [21, 28], [21, 29], [22, 30], [22, 31], [23, 32], [24, 33], [25, 34], [27, 35], [28, 36], [29, 37], [30, 38], [31, 39], [33, 40], [34, 41], [20, 42], [36, 43], [36, 44], [40, 45], [41, 46], [46, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 2], [13, 5], [14, 8], [15, 11], [16, 12], [17, 3], [18, 4], [19, 4], [20, 11], [21, 11], [22, 15], [23, 15], [24, 2], [25, 2], [26, 17], [27, 11], [28, 21], [29, 21], [30, 22], [31, 22], [32, 23], [33, 24], [34, 25], [35, 27], [36, 28], [37, 29], [38, 30], [39, 31], [40, 33], [41, 34], [42, 20], [43, 36], [44, 36], [45, 40], [46, 41], [47, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(String name) throws org.xml.sax.SAXException\n  {\n\n    if (!m_shouldProcess)\n      return;\n\n    getCurrentProcessor().skippedEntity(this, name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "warn", "code": "  public void warn(int msg, Object args[]) throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = m_XSLMessages.createWarning(msg, args);\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      if (null != handler)\n        handler.warning(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CATCH", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [2, 11], [3, 12], [4, 13], [9, 14], [8, 15], [10, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 2], [12, 3], [13, 4], [14, 9], [15, 8], [16, 10], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "assertion", "code": "  private void assertion(boolean condition, String msg) throws RuntimeException\n  {\n    if (!condition)\n      throw new RuntimeException(msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "error", "code": "  protected void error(String msg, Exception e)\n          throws org.xml.sax.SAXException\n  {\n\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n    TransformerException pe;\n\n    if (!(e instanceof TransformerException))\n    {\n      pe = (null == e)\n           ? new TransformerException(msg, locator)\n           : new TransformerException(msg, locator, e);\n    }\n    else\n      pe = (TransformerException) e;\n\n    if (null != handler)\n    {\n      try\n      {\n        handler.error(pe);\n      }\n      catch (TransformerException te)\n      {\n        throw new org.xml.sax.SAXException(te);\n      }\n    }\n    else\n      throw new org.xml.sax.SAXException(pe);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "TRY", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CATCH", "ASSIGN", "THROW_RAISE", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [2, 10], [8, 11], [1, 12], [9, 13], [2, 14], [4, 15], [5, 16], [12, 17], [2, 18], [17, 19], [12, 20], [18, 21], [19, 22], [21, 23], [21, 24], [21, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 2], [11, 8], [12, 1], [13, 9], [14, 2], [15, 4], [16, 5], [17, 12], [18, 2], [19, 17], [20, 12], [21, 18], [22, 19], [23, 21], [24, 21], [25, 21], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "error", "code": "  protected void error(int msg, Object args[], Exception e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = m_XSLMessages.createMessage(msg, args);\n\n    error(formattedMsg, e);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "warning", "code": "  public void warning(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.warning(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [2, 9], [3, 10], [4, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 2], [10, 3], [11, 4], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "error", "code": "  public void error(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.error(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [2, 9], [3, 10], [4, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 2], [10, 3], [11, 4], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "fatalError", "code": "  public void fatalError(org.xml.sax.SAXParseException e)\n          throws org.xml.sax.SAXException\n  {\n\n    String formattedMsg = e.getMessage();\n    SAXSourceLocator locator = getLocator();\n    ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n\n    try\n    {\n      handler.fatalError(new TransformerException(formattedMsg, locator));\n    }\n    catch (TransformerException te)\n    {\n      throw new org.xml.sax.SAXException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 8], [2, 9], [3, 10], [4, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 1], [9, 2], [10, 3], [11, 4], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "checkForFragmentID", "code": "  private void checkForFragmentID(Attributes attributes)\n  {\n\n    if (!m_shouldProcess)\n    {\n      if ((null != attributes) && (null != m_fragmentIDString))\n      {\n        int n = attributes.getLength();\n\n        for (int i = 0; i < n; i++)\n        {\n          String name = attributes.getQName(i);\n\n          if (name.equals(Constants.ATTRNAME_ID))\n          {\n            String val = attributes.getValue(i);\n\n            if (val.equalsIgnoreCase(m_fragmentIDString))\n            {\n              m_shouldProcess = true;\n              m_fragmentID = m_elementID;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [4, 7], [4, 8], [5, 9], [7, 10], [8, 11], [5, 12], [5, 13], [6, 14], [12, 15], [5, 16], [12, 17], [12, 18], [13, 19], [17, 20], [18, 21], [17, 22], [17, 23], [23, 24], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 4], [8, 4], [9, 5], [10, 7], [11, 8], [12, 5], [13, 5], [14, 6], [15, 12], [16, 5], [17, 12], [18, 12], [19, 13], [20, 17], [21, 18], [22, 17], [23, 17], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getStylesheetProcessor", "code": "  TransformerFactoryImpl getStylesheetProcessor()\n  {\n    return m_stylesheetProcessor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStylesheetType", "code": "  int getStylesheetType()\n  {\n    return m_stylesheetType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStylesheetType", "code": "  void setStylesheetType(int type)\n  {\n    m_stylesheetType = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheet", "code": "  Stylesheet getStylesheet()\n  {\n    return (m_stylesheets.size() == 0)\n           ? null : (Stylesheet) m_stylesheets.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [4, 6], [4, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getLastPoppedStylesheet", "code": "  Stylesheet getLastPoppedStylesheet()\n  {\n    return m_lastPoppedStylesheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStylesheetRoot", "code": "  public StylesheetRoot getStylesheetRoot()\n  {\n    return m_stylesheetRoot;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "pushStylesheet", "code": "  public void pushStylesheet(Stylesheet s)\n  {\n\n    if (m_stylesheets.size() == 0)\n      m_stylesheetRoot = (StylesheetRoot) s;\n\n    m_stylesheets.push(s);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "popStylesheet", "code": "  Stylesheet popStylesheet()\n  {\n\n    if (!m_stylesheetLocatorStack.isEmpty())\n      m_stylesheetLocatorStack.pop();\n\n    if (!m_stylesheets.isEmpty())\n      m_lastPoppedStylesheet = (Stylesheet) m_stylesheets.pop();\n\n    return m_lastPoppedStylesheet;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [3, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 3], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getCurrentProcessor", "code": "  XSLTElementProcessor getCurrentProcessor()\n  {\n    return (XSLTElementProcessor) m_processors.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "pushProcessor", "code": "  void pushProcessor(XSLTElementProcessor processor)\n  {\n    m_processors.push(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popProcessor", "code": "  XSLTElementProcessor popProcessor()\n  {\n    return (XSLTElementProcessor) m_processors.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSchema", "code": "  XSLTSchema getSchema()\n  {\n    return m_schema;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getElemTemplateElement", "code": "  ElemTemplateElement getElemTemplateElement()\n  {\n\n    try\n    {\n      return (ElemTemplateElement) m_elems.peek();\n    }\n    catch (java.util.EmptyStackException ese)\n    {\n      return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [3, 6], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "nextUid", "code": "  int nextUid()\n  {\n    return m_docOrderCount++;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "pushElemTemplateElement", "code": "  void pushElemTemplateElement(ElemTemplateElement elem)\n  {\n\n    if (elem.getUid() == -1)\n      elem.setUid(nextUid());\n\n    m_elems.push(elem);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "popElemTemplateElement", "code": "  ElemTemplateElement popElemTemplateElement()\n  {\n    return (ElemTemplateElement) m_elems.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXSLMessages", "code": "  XSLMessages getXSLMessages()\n  {\n    return m_XSLMessages;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "pushBaseIndentifier", "code": "  void pushBaseIndentifier(String baseID)\n  {\n\n    if (null != baseID)\n    {\n      int posOfHash = baseID.indexOf('#');\n\n      if (posOfHash > -1)\n      {\n        m_fragmentIDString = baseID.substring(posOfHash + 1);\n        m_shouldProcess = false;\n      }\n      else\n        m_shouldProcess = true;\n    }\n    else\n      m_shouldProcess = true;\n\n    m_baseIdentifiers.push(baseID);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [6, 11], [10, 12], [7, 13], [11, 14], [6, 15], [6, 16], [13, 17], [15, 18], [16, 19], [19, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 6], [12, 10], [13, 7], [14, 11], [15, 6], [16, 6], [17, 13], [18, 15], [19, 16], [20, 19], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "popBaseIndentifier", "code": "  String popBaseIndentifier()\n  {\n    return (String) m_baseIdentifiers.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBaseIdentifier", "code": "  public String getBaseIdentifier()\n  {\n\n    String base = (String) (m_baseIdentifiers.isEmpty()\n                            ? null : m_baseIdentifiers.peek());\n\n    if (null == base)\n    {\n      SourceLocator locator = getLocator();\n\n      base = (null == locator) ? \"\" : locator.getSystemId();\n    }\n\n    return base;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [2, 7], [3, 8], [7, 9], [5, 10], [8, 11], [8, 12], [8, 13], [9, 14], [9, 15], [9, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 2], [8, 3], [9, 7], [10, 5], [11, 8], [12, 8], [13, 8], [14, 9], [15, 9], [16, 9], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getLocator", "code": "  public SAXSourceLocator getLocator()\n  {\n\n    if (m_stylesheetLocatorStack.isEmpty())\n    {\n      SAXSourceLocator locator = new SAXSourceLocator();\n\n      locator.setSystemId(this.getStylesheetProcessor().getDOMsystemID());\n\n      return locator;\n\n    }\n\n    return ((SAXSourceLocator) m_stylesheetLocatorStack.peek());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 2], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "pushImportURL", "code": "  void pushImportURL(String hrefUrl)\n  {\n    m_importStack.push(hrefUrl);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "importStackContains", "code": "  boolean importStackContains(String hrefUrl)\n  {\n    return stackContains(m_importStack, hrefUrl);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "popImportURL", "code": "  String popImportURL()\n  {\n    return (String) m_importStack.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "pushNewNamespaceSupport", "code": "  void pushNewNamespaceSupport()\n  {\n    m_nsSupportStack.push(new NamespaceSupport2());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popNamespaceSupport", "code": "  void popNamespaceSupport()\n  {\n    m_nsSupportStack.pop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespaceSupport", "code": "  NamespaceSupport getNamespaceSupport()\n  {\n    return (NamespaceSupport) m_nsSupportStack.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOriginatingNode", "code": "  public void setOriginatingNode(Node n)\n  {\n    m_originatingNode = n;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOriginatingNode", "code": "  public Node getOriginatingNode()\n  {\n    return m_originatingNode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSpacePreserve", "code": "  boolean isSpacePreserve()\n  {\n    return m_spacePreserveStack.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popSpaceHandling", "code": "  void popSpaceHandling()\n  {\n    m_spacePreserveStack.pop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "pushSpaceHandling", "code": "  void pushSpaceHandling(boolean b)\n    throws org.xml.sax.SAXParseException\n  {\n    m_spacePreserveStack.push(b);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "pushSpaceHandling", "code": "  void pushSpaceHandling(Attributes attrs)\n    throws org.xml.sax.SAXParseException\n  {    \n    String value = attrs.getValue(\"xml:space\");\n    if(null == value)\n    {\n      m_spacePreserveStack.push(m_spacePreserveStack.peekOrFalse());\n    }\n    else if(value.equals(\"preserve\"))\n    {\n      m_spacePreserveStack.push(true);\n    }\n    else if(value.equals(\"default\"))\n    {\n      m_spacePreserveStack.push(false);\n    }\n    else\n    {\n      SAXSourceLocator locator = getLocator();\n      ErrorListener handler = m_stylesheetProcessor.getErrorListener();\n  \n      try\n      {\n      }\n      catch (TransformerException te)\n      {\n        throw new org.xml.sax.SAXParseException(te.getMessage(), locator, te);\n      }\n      m_spacePreserveStack.push(m_spacePreserveStack.peek());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [5, 8], [2, 9], [6, 10], [7, 11], [1, 12], [9, 13], [6, 14], [6, 15], [6, 16], [10, 17], [4, 18], [12, 19], [6, 20], [14, 21], [6, 22], [18, 23], [20, 24], [21, 25], [15, 26], [16, 27], [22, 28], [25, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 5], [9, 2], [10, 6], [11, 7], [12, 1], [13, 9], [14, 6], [15, 6], [16, 6], [17, 10], [18, 4], [19, 12], [20, 6], [21, 14], [22, 6], [23, 18], [24, 20], [25, 21], [26, 15], [27, 16], [28, 22], [29, 25], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getElemVersion", "code": "  private double getElemVersion()\n  {\n    ElemTemplateElement elem = getElemTemplateElement();\n    double version = -1; \n    while ((version == -1 || version == Constants.XSLTVERSUPPORTED) && elem != null)\n    {\n      try{\n      version = Double.valueOf(elem.getVersion()).doubleValue();\n      }\n      catch (Exception ex)\n      {\n        version = -1;\n      }\n      elem = elem.getParentElem();\n      }\n    return (version == -1)? Constants.XSLTVERSUPPORTED : version;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "COND_EXPR", "BINARY_OP", "BINARY_OP", "TRY", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [6, 9], [6, 10], [3, 11], [4, 12], [7, 13], [2, 14], [8, 15], [9, 16], [10, 17], [10, 18], [14, 19], [8, 20], [18, 21], [15, 22], [20, 23], [22, 24], [23, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 6], [10, 6], [11, 3], [12, 4], [13, 7], [14, 2], [15, 8], [16, 9], [17, 10], [18, 10], [19, 14], [20, 8], [21, 18], [22, 15], [23, 20], [24, 22], [25, 23], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "handlesNullPrefixes", "code": "\tpublic boolean handlesNullPrefixes() {\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "StylesheetHandler", "code": "  public StylesheetHandler(TransformerFactoryImpl processor)\n          throws TransformerConfigurationException\n  {\n\n    init(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7405", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/CoroutineParser.java", "language": "java", "name": "org.apache.xml.dtm.ref.CoroutineParser", "code": "public interface CoroutineParser {\n\n    /** @return the coroutine ID number for this CoroutineParser object.\n     * Note that this isn't useful unless you know which CoroutineManager\n     * you're talking to. Also note that the do...() methods encapsulate\n     * the common transactions with the CoroutineParser, so you shouldn't\n     * need this in most cases.\n     * */\n    public int getParserCoroutineID();\n\n    /** @return the CoroutineManager for this CoroutineParser object.\n     * If you're using the do...() methods, applications should only\n     * need to talk to the CoroutineManager once, to obtain the\n     * application's Coroutine ID.\n     * */\n    public CoroutineManager getCoroutineManager();\n\n  /** Register a SAX-style content handler for us to output to */\n  public void setContentHandler(ContentHandler handler);\n\n  /**  Register a SAX-style lexical handler for us to output to\n   *  Not all parsers support this...\n   *\n   * %REVIEW% Not called setLexicalHandler because Xalan uses that name\n   * internally, which causes subclassing nuisances. \n   */\n  public void setLexHandler(org.xml.sax.ext.LexicalHandler handler);\n\n  /* The run() method is required in CoroutineParsers that run as\n   * threads (of course)... but it isn't part of our API, and\n   * shouldn't be declared here.\n   * */\n\n  /** doParse() is a simple API which tells the coroutine parser\n   * to begin reading from a file.  This is intended to be called from one\n   * of our partner coroutines, and serves both to encapsulate the\n   * communication protocol and to avoid having to explicitly use the\n   * CoroutineParser's coroutine ID number.\n   *\n   * %REVIEW% Can/should this unify with doMore? (if URI hasn't changed,\n   * parse more from same file, else end and restart parsing...?\n   *\n   * @param source The InputSource to parse from.\n   * @param appCoroutine The coroutine ID number of the coroutine invoking\n   * this method, so it can be resumed after the parser has responded to the\n   * request.\n   * @return Boolean.TRUE if the CoroutineParser believes more data may be available\n   * for further parsing. Boolean.FALSE if parsing ran to completion.\n   * Exception if the parser objected for some reason.\n   * */\n  public Object doParse(InputSource source, int appCoroutine);\n\n  /** doMore() is a simple API which tells the coroutine parser\n   * that we need more nodes.  This is intended to be called from one\n   * of our partner coroutines, and serves both to encapsulate the\n   * communication protocol and to avoid having to explicitly use the\n   * CoroutineParser's coroutine ID number.\n   *\n   * @param parsemore If true, tells the incremental parser to generate\n   * another chunk of output. If false, tells the parser that we're\n   * satisfied and it can terminate parsing of this document.\n   * @param appCoroutine The coroutine ID number of the coroutine invoking\n   * this method, so it can be resumed after the parser has responded to the\n   * request.\n   * @return Boolean.TRUE if the CoroutineParser believes more data may be available\n   * for further parsing. Boolean.FALSE if parsing ran to completion.\n   * Exception if the parser objected for some reason.\n   * */\n  public Object doMore (boolean parsemore, int appCoroutine);\n\n  /** doTerminate() is a simple API which tells the coroutine\n   * parser to terminate itself.  This is intended to be called from\n   * one of our partner coroutines, and serves both to encapsulate the\n   * communication protocol and to avoid having to explicitly use the\n   * CoroutineParser's coroutine ID number.\n   *\n   * Returns only after the CoroutineParser has acknowledged the request.\n   *\n   * @param appCoroutine The coroutine ID number of the coroutine invoking\n   * this method, so it can be resumed after the parser has responded to the\n   * request.\n   * */\n  public void doTerminate(int appCoroutine);\n\n  /**\n   * Initialize the coroutine parser. Same parameters could be passed\n   * in a non-default constructor, or by using using context ClassLoader\n   * and newInstance and then calling init()\n   */\n  public void init( CoroutineManager co, int appCoroutineID, XMLReader parser );", "functions": [{"function_name": "getParserCoroutineID", "code": "    public int getParserCoroutineID();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getCoroutineManager", "code": "    public CoroutineManager getCoroutineManager();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setContentHandler", "code": "  public void setContentHandler(ContentHandler handler);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLexHandler", "code": "  public void setLexHandler(org.xml.sax.ext.LexicalHandler handler);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doParse", "code": "  public Object doParse(InputSource source, int appCoroutine);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doMore", "code": "  public Object doMore (boolean parsemore, int appCoroutine);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doTerminate", "code": "  public void doTerminate(int appCoroutine);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "init", "code": "  public void init( CoroutineManager co, int appCoroutineID, XMLReader parser );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "jedit-4.3-4682", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/options/GlobalOptions.java", "language": "java", "name": "org.gjt.sp.jedit.options.GlobalOptions", "code": "public class GlobalOptions extends OptionsDialog\n{\n\t//{{{ GlobalOptions constructor\n\tpublic GlobalOptions(Frame frame)\n\t{\n\t\tsuper(frame,\"options\",jEdit.getProperty(\"options.last\"));\n\t} //}}}\n\n\t//{{{ GlobalOptions constructor\n\tpublic GlobalOptions(Frame frame, String pane)\n\t{\n\t\tsuper(frame,\"options\",pane);\n\t} //}}}\n\n\t//{{{ GlobalOptions constructor\n\tpublic GlobalOptions(Dialog dialog)\n\t{\n\t\tsuper(dialog,\"options\",jEdit.getProperty(\"options.last\"));\n\t} //}}}\n\n\t//{{{ GlobalOptions constructor\n\tpublic GlobalOptions(Dialog dialog, String pane)\n\t{\n\t\tsuper(dialog,\"options\",pane);\n\t} //}}}\n\n\t//{{{ createOptionTreeModel() method\n\tprotected OptionTreeModel createOptionTreeModel()\n\t{\n\t\tOptionTreeModel paneTreeModel = new OptionTreeModel();\n\t\tOptionGroup rootGroup = (OptionGroup) paneTreeModel.getRoot();\n\n\t\t// initialize the jEdit branch of the options tree\n\t\tOptionGroup jEditGroup = new OptionGroup(\"jedit\");\n\n\t\tjEditGroup.addOptionPane(\"general\");\n\t\tjEditGroup.addOptionPane(\"abbrevs\");\n\t\tjEditGroup.addOptionPane(\"appearance\");\n\t\tjEditGroup.addOptionPane(\"context\");\n\t\tjEditGroup.addOptionPane(\"docking\");\n\t\tjEditGroup.addOptionPane(\"editing\");\n\t\tjEditGroup.addOptionPane(\"encodings\");\n\t\tjEditGroup.addOptionPane(\"gutter\");\n\t\tjEditGroup.addOptionPane(\"mouse\");\n\t\tjEditGroup.addOptionPane(\"plugin-manager\");\n\t\tjEditGroup.addOptionPane(\"print\");\n\t\tjEditGroup.addOptionPane(\"firewall\");\n\t\tjEditGroup.addOptionPane(\"save-back\");\n\t\tjEditGroup.addOptionPane(\"shortcuts\");\n\t\tjEditGroup.addOptionPane(\"status\");\n\t\tjEditGroup.addOptionPane(\"syntax\");\n\t\tjEditGroup.addOptionPane(\"textarea\");\n\t\tjEditGroup.addOptionPane(\"toolbar\");\n\t\tjEditGroup.addOptionPane(\"view\");\n\t\trootGroup.addOptionGroup(jEditGroup);\n\n\t\tOptionGroup browserGroup = new OptionGroup(\"browser\");\n\t\tbrowserGroup.addOptionPane(\"browser.general\");\n\t\tbrowserGroup.addOptionPane(\"browser.colors\");\n\t\trootGroup.addOptionGroup(browserGroup);\n\n\t\treturn paneTreeModel;\n\t} //}}}\n\n\t//{{{ cancel() method\n\t@Override\n\tpublic void cancel()\n\t{\n\t\tEditBus.send(\n\t\t\tnew PropertiesChanging(null,\n\t\t\t\tPropertiesChanging.State.CANCELED));\n\t\tsuper.cancel();\n\t} //}}}\n\n\t//{{{ init() method\n\t@Override\n\tprotected void init(String name, String pane)\n\t{\n\t\tEditBus.send(\n\t\t\tnew PropertiesChanging(null,\n\t\t\t\tPropertiesChanging.State.LOADING));\n\t\tsuper.init(name, pane);\n\t} //}}}\n\n\t//{{{ getDefaultGroup() method\n\tprotected OptionGroup getDefaultGroup()\n\t{\n\t\treturn null;", "functions": [{"function_name": "createOptionTreeModel", "code": "\tprotected OptionTreeModel createOptionTreeModel()\n\t{\n\t\tOptionTreeModel paneTreeModel = new OptionTreeModel();\n\t\tOptionGroup rootGroup = (OptionGroup) paneTreeModel.getRoot();\n\n\t\t// initialize the jEdit branch of the options tree\n\t\tOptionGroup jEditGroup = new OptionGroup(\"jedit\");\n\n\t\tjEditGroup.addOptionPane(\"general\");\n\t\tjEditGroup.addOptionPane(\"abbrevs\");\n\t\tjEditGroup.addOptionPane(\"appearance\");\n\t\tjEditGroup.addOptionPane(\"context\");\n\t\tjEditGroup.addOptionPane(\"docking\");\n\t\tjEditGroup.addOptionPane(\"editing\");\n\t\tjEditGroup.addOptionPane(\"encodings\");\n\t\tjEditGroup.addOptionPane(\"gutter\");\n\t\tjEditGroup.addOptionPane(\"mouse\");\n\t\tjEditGroup.addOptionPane(\"plugin-manager\");\n\t\tjEditGroup.addOptionPane(\"print\");\n\t\tjEditGroup.addOptionPane(\"firewall\");\n\t\tjEditGroup.addOptionPane(\"save-back\");\n\t\tjEditGroup.addOptionPane(\"shortcuts\");\n\t\tjEditGroup.addOptionPane(\"status\");\n\t\tjEditGroup.addOptionPane(\"syntax\");\n\t\tjEditGroup.addOptionPane(\"textarea\");\n\t\tjEditGroup.addOptionPane(\"toolbar\");\n\t\tjEditGroup.addOptionPane(\"view\");\n\t\trootGroup.addOptionGroup(jEditGroup);\n\n\t\tOptionGroup browserGroup = new OptionGroup(\"browser\");\n\t\tbrowserGroup.addOptionPane(\"browser.general\");\n\t\tbrowserGroup.addOptionPane(\"browser.colors\");\n\t\trootGroup.addOptionGroup(browserGroup);\n\n\t\treturn paneTreeModel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [7, 29], [8, 30], [2, 31], [10, 32], [11, 33], [12, 34], [13, 35], [14, 36], [15, 37], [16, 38], [17, 39], [18, 40], [19, 41], [20, 42], [21, 43], [22, 44], [23, 45], [24, 46], [25, 47], [26, 48], [27, 49], [28, 50], [3, 51], [5, 52], [31, 53], [51, 54], [4, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 7], [30, 8], [31, 2], [32, 10], [33, 11], [34, 12], [35, 13], [36, 14], [37, 15], [38, 16], [39, 17], [40, 18], [41, 19], [42, 20], [43, 21], [44, 22], [45, 23], [46, 24], [47, 25], [48, 26], [49, 27], [50, 28], [51, 3], [52, 5], [53, 31], [54, 51], [55, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "cancel", "code": "\t@Override\n\tpublic void cancel()\n\t{\n\t\tEditBus.send(\n\t\t\tnew PropertiesChanging(null,\n\t\t\t\tPropertiesChanging.State.CANCELED));\n\t\tsuper.cancel();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "init", "code": "\t@Override\n\tprotected void init(String name, String pane)\n\t{\n\t\tEditBus.send(\n\t\t\tnew PropertiesChanging(null,\n\t\t\t\tPropertiesChanging.State.LOADING));\n\t\tsuper.init(name, pane);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDefaultGroup", "code": "\tprotected OptionGroup getDefaultGroup()\n\t{\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "GlobalOptions", "code": "\tpublic GlobalOptions(Frame frame)\n\t{\n\t\tsuper(frame,\"options\",jEdit.getProperty(\"options.last\"));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "GlobalOptions", "code": "\tpublic GlobalOptions(Frame frame, String pane)\n\t{\n\t\tsuper(frame,\"options\",pane);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "GlobalOptions", "code": "\tpublic GlobalOptions(Dialog dialog)\n\t{\n\t\tsuper(dialog,\"options\",jEdit.getProperty(\"options.last\"));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "GlobalOptions", "code": "\tpublic GlobalOptions(Dialog dialog, String pane)\n\t{\n\t\tsuper(dialog,\"options\",pane);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "poi-3.0-6244", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hpsf/DocumentSummaryInformation.java", "language": "java", "name": "org.apache.poi.hpsf.DocumentSummaryInformation", "code": "public class DocumentSummaryInformation extends SpecialPropertySet\n{\n\n    /**\n     * <p>The document name a document summary information stream\n     * usually has in a POIFS filesystem.</p>\n     */\n    public static final String DEFAULT_STREAM_NAME =\n        \"\\005DocumentSummaryInformation\";\n\n\n\n    /**\n     * <p>Creates a {@link DocumentSummaryInformation} from a given\n     * {@link PropertySet}.</p>\n     *\n     * @param ps A property set which should be created from a\n     * document summary information stream.\n     * @throws UnexpectedPropertySetTypeException if <var>ps</var>\n     * does not contain a document summary information stream.\n     */\n    public DocumentSummaryInformation(final PropertySet ps)\n        throws UnexpectedPropertySetTypeException\n    {\n        super(ps);\n        if (!isDocumentSummaryInformation())\n            throw new UnexpectedPropertySetTypeException\n                (\"Not a \" + getClass().getName());\n    }\n\n\n\n    /**\n     * <p>Returns the category (or <code>null</code>).</p>\n     *\n     * @return The category value\n     */\n    public String getCategory()\n    {\n        return (String) getProperty(PropertyIDMap.PID_CATEGORY);\n    }\n\n    /**\n     * <p>Sets the category.</p>\n     *\n     * @param category The category to set.\n     */\n    public void setCategory(final String category)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_CATEGORY, category);\n    }\n\n    /**\n     * <p>Removes the category.</p>\n     */\n    public void removeCategory()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_CATEGORY);\n    }\n\n\n\n    /**\n     * <p>Returns the presentation format (or\n     * <code>null</code>).</p>\n     *\n     * @return The presentation format value\n     */\n    public String getPresentationFormat()\n    {\n        return (String) getProperty(PropertyIDMap.PID_PRESFORMAT);\n    }\n\n    /**\n     * <p>Sets the presentation format.</p>\n     *\n     * @param presentationFormat The presentation format to set.\n     */\n    public void setPresentationFormat(final String presentationFormat)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_PRESFORMAT, presentationFormat);\n    }\n\n    /**\n     * <p>Removes the presentation format.</p>\n     */\n    public void removePresentationFormat()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_PRESFORMAT);\n    }\n\n\n\n    /**\n     * <p>Returns the byte count or 0 if the {@link\n     * DocumentSummaryInformation} does not contain a byte count.</p>\n     *\n     * @return The byteCount value\n     */\n    public int getByteCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_BYTECOUNT);\n    }\n\n    /**\n     * <p>Sets the byte count.</p>\n     *\n     * @param byteCount The byte count to set.\n     */\n    public void setByteCount(final int byteCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_BYTECOUNT, byteCount);\n    }\n\n    /**\n     * <p>Removes the byte count.</p>\n     */\n    public void removeByteCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_BYTECOUNT);\n    }\n\n\n\n    /**\n     * <p>Returns the line count or 0 if the {@link\n     * DocumentSummaryInformation} does not contain a line count.</p>\n     *\n     * @return The line count value\n     */\n    public int getLineCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_LINECOUNT);\n    }\n\n    /**\n     * <p>Sets the line count.</p>\n     *\n     * @param lineCount The line count to set.\n     */\n    public void setLineCount(final int lineCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_LINECOUNT, lineCount);\n    }\n\n    /**\n     * <p>Removes the line count.</p>\n     */\n    public void removeLineCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_LINECOUNT);\n    }\n\n\n\n    /**\n     * <p>Returns the par count or 0 if the {@link\n     * DocumentSummaryInformation} does not contain a par count.</p>\n     *\n     * @return The par count value\n     */\n    public int getParCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_PARCOUNT);\n    }\n\n    /**\n     * <p>Sets the par count.</p>\n     *\n     * @param parCount The par count to set.\n     */\n    public void setParCount(final int parCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_PARCOUNT, parCount);\n    }\n\n    /**\n     * <p>Removes the par count.</p>\n     */\n    public void removeParCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_PARCOUNT);\n    }\n\n\n\n    /**\n     * <p>Returns the slide count or 0 if the {@link\n     * DocumentSummaryInformation} does not contain a slide count.</p>\n     *\n     * @return The slide count value\n     */\n    public int getSlideCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_SLIDECOUNT);\n    }\n\n    /**\n     * <p>Sets the slideCount.</p>\n     *\n     * @param slideCount The slide count to set.\n     */\n    public void setSlideCount(final int slideCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_SLIDECOUNT, slideCount);\n    }\n\n    /**\n     * <p>Removes the slide count.</p>\n     */\n    public void removeSlideCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_SLIDECOUNT);\n    }\n\n\n\n    /**\n     * <p>Returns the note count or 0 if the {@link\n     * DocumentSummaryInformation} does not contain a note count.</p>\n     *\n     * @return The note count value\n     */\n    public int getNoteCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_NOTECOUNT);\n    }\n\n    /**\n     * <p>Sets the note count.</p>\n     *\n     * @param noteCount The note count to set.\n     */\n    public void setNoteCount(final int noteCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_NOTECOUNT, noteCount);\n    }\n\n    /**\n     * <p>Removes the noteCount.</p>\n     */\n    public void removeNoteCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_NOTECOUNT);\n    }\n\n\n\n    /**\n     * <p>Returns the hidden count or 0 if the {@link\n     * DocumentSummaryInformation} does not contain a hidden\n     * count.</p>\n     *\n     * @return The hidden count value\n     */\n    public int getHiddenCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_HIDDENCOUNT);\n    }\n\n    /**\n     * <p>Sets the hidden count.</p>\n     *\n     * @param hiddenCount The hidden count to set.\n     */\n    public void setHiddenCount(final int hiddenCount)\n    {\n        final MutableSection s = (MutableSection) getSections().get(0);\n        s.setProperty(PropertyIDMap.PID_HIDDENCOUNT, hiddenCount);\n    }\n\n    /**\n     * <p>Removes the hidden count.</p>\n     */\n    public void removeHiddenCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_HIDDENCOUNT);\n    }\n\n\n\n    /**\n     * <p>Returns the mmclip count or 0 if the {@link\n     * DocumentSummaryInformation} does not contain a mmclip\n     * count.</p>\n     *\n     * @return The mmclip count value\n     */\n    public int getMMClipCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_MMCLIPCOUNT);\n    }\n\n    /**\n     * <p>Sets the mmclip count.</p>\n     *\n     * @param mmClipCount The mmclip count to set.\n     */\n    public void setMMClipCount(final int mmClipCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_MMCLIPCOUNT, mmClipCount);\n    }\n\n    /**\n     * <p>Removes the mmclip count.</p>\n     */\n    public void removeMMClipCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_MMCLIPCOUNT);\n    }\n\n\n\n    /**\n     * <p>Returns <code>true</code> when scaling of the thumbnail is\n     * desired, <code>false</code> if cropping is desired.</p>\n     *\n     * @return The scale value\n     */\n    public boolean getScale()\n    {\n        return getPropertyBooleanValue(PropertyIDMap.PID_SCALE);\n    }\n\n    /**\n     * <p>Sets the scale.</p>\n     *\n     * @param scale The scale to set.\n     */\n    public void setScale(final boolean scale)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_SCALE, scale);\n    }\n\n    /**\n     * <p>Removes the scale.</p>\n     */\n    public void removeScale()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_SCALE);\n    }\n\n\n\n    /**\n     * <p>Returns the heading pair (or <code>null</code>)\n     * <strong>when this method is implemented. Please note that the\n     * return type is likely to change!</strong>\n     *\n     * @return The heading pair value\n     */\n    public byte[] getHeadingPair()\n    {\n        notYetImplemented(\"Reading byte arrays \");\n        return (byte[]) getProperty(PropertyIDMap.PID_HEADINGPAIR);\n    }\n\n    /**\n     * <p>Sets the heading pair.</p>\n     *\n     * @param headingPair The heading pair to set.\n     */\n    public void setHeadingPair(final byte[] headingPair)\n    {\n        notYetImplemented(\"Writing byte arrays \");\n    }\n\n    /**\n     * <p>Removes the heading pair.</p>\n     */\n    public void removeHeadingPair()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_HEADINGPAIR);\n    }\n\n\n\n    /**\n     * <p>Returns the doc parts (or <code>null</code>)\n     * <strong>when this method is implemented. Please note that the\n     * return type is likely to change!</strong>\n     *\n     * @return The doc parts value\n     */\n    public byte[] getDocparts()\n    {\n        notYetImplemented(\"Reading byte arrays\");\n        return (byte[]) getProperty(PropertyIDMap.PID_DOCPARTS);\n    }\n\n\n\n    /**\n     * <p>Sets the doc parts.</p>\n     *\n     * @param docparts The doc parts to set.\n     */\n    public void setDocparts(final byte[] docparts)\n    {\n        notYetImplemented(\"Writing byte arrays\");\n    }\n\n    /**\n     * <p>Removes the doc parts.</p>\n     */\n    public void removeDocparts()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_DOCPARTS);\n    }\n\n\n\n    /**\n     * <p>Returns the manager (or <code>null</code>).</p>\n     *\n     * @return The manager value\n     */\n    public String getManager()\n    {\n        return (String) getProperty(PropertyIDMap.PID_MANAGER);\n    }\n\n    /**\n     * <p>Sets the manager.</p>\n     *\n     * @param manager The manager to set.\n     */\n    public void setManager(final String manager)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_MANAGER, manager);\n    }\n\n    /**\n     * <p>Removes the manager.</p>\n     */\n    public void removeManager()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_MANAGER);\n    }\n\n\n\n    /**\n     * <p>Returns the company (or <code>null</code>).</p>\n     *\n     * @return The company value\n     */\n    public String getCompany()\n    {\n        return (String) getProperty(PropertyIDMap.PID_COMPANY);\n    }\n\n    /**\n     * <p>Sets the company.</p>\n     *\n     * @param company The company to set.\n     */\n    public void setCompany(final String company)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_COMPANY, company);\n    }\n\n    /**\n     * <p>Removes the company.</p>\n     */\n    public void removeCompany()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_COMPANY);\n    }\n\n\n\n    /**\n     * <p>Returns <code>true</code> if the custom links are dirty.</p> <p>\n     *\n     * @return The links dirty value\n     */\n    public boolean getLinksDirty()\n    {\n        return getPropertyBooleanValue(PropertyIDMap.PID_LINKSDIRTY);\n    }\n\n    /**\n     * <p>Sets the linksDirty.</p>\n     *\n     * @param linksDirty The links dirty value to set.\n     */\n    public void setLinksDirty(final boolean linksDirty)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_LINKSDIRTY, linksDirty);\n    }\n\n    /**\n     * <p>Removes the links dirty.</p>\n     */\n    public void removeLinksDirty()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_LINKSDIRTY);\n    }\n\n\n\n    /**\n     * <p>Gets the custom properties.</p>\n     * \n     * @return The custom properties.\n     * @since 2006-02-09\n     */\n    public CustomProperties getCustomProperties()\n    {\n        CustomProperties cps = null;\n        if (getSectionCount() >= 2)\n        {\n            cps = new CustomProperties();\n            final Section section = (Section) getSections().get(1);\n            final Map dictionary = section.getDictionary();\n            final Property[] properties = section.getProperties();\n            int propertyCount = 0;\n            for (int i = 0; i < properties.length; i++)\n            {\n                final Property p = properties[i];\n                final long id = p.getID();\n                if (id != 0 && id != 1)\n                {\n                    propertyCount++;\n                    final CustomProperty cp = new CustomProperty(p,\n                            (String) dictionary.get(new Long(id)));\n                    cps.put(cp.getName(), cp);\n                }\n            }\n            if (cps.size() != propertyCount)\n                cps.setPure(false);\n        }\n        return cps;\n    }\n\n    /**\n     * <p>Sets the custom properties.</p>\n     * \n     * @param customProperties The custom properties\n     * @since 2006-02-07\n     */\n    public void setCustomProperties(final CustomProperties customProperties)\n    {\n        ensureSection2();\n        final MutableSection section = (MutableSection) getSections().get(1);\n        final Map dictionary = customProperties.getDictionary();\n        section.clear();\n\n        /* Set the codepage. If both custom properties and section have a\n         * codepage, the codepage from the custom properties wins, else take the\n         * one that is defined. If none is defined, take Unicode. */\n        int cpCodepage = customProperties.getCodepage();\n        if (cpCodepage < 0)\n            cpCodepage = section.getCodepage();\n        if (cpCodepage < 0)\n            cpCodepage = Constants.CP_UNICODE;\n        customProperties.setCodepage(cpCodepage);\n        section.setCodepage(cpCodepage);\n        section.setDictionary(dictionary);\n        for (final Iterator i = customProperties.values().iterator(); i.hasNext();)\n        {\n            final Property p = (Property) i.next();\n            section.setProperty(p);\n        }\n    }\n\n\n\n    /**\n     * <p>Creates section 2 if it is not already present.</p>\n     *\n     */\n    private void ensureSection2()\n    {\n        if (getSectionCount() < 2)\n        {\n            MutableSection s2 = new MutableSection();\n            s2.setFormatID(SectionIDMap.DOCUMENT_SUMMARY_INFORMATION_ID[1]);\n            addSection(s2);\n        }\n    }\n\n\n\n    /**\n     * <p>Removes the custom properties.</p>\n     * \n     * @since 2006-02-08\n     */\n    public void removeCustomProperties()\n    {\n        if (getSectionCount() >= 2)\n            getSections().remove(1);\n        else\n            throw new HPSFRuntimeException(\"Illegal internal format of Document SummaryInformation stream: second section is missing.\");\n    }\n\n\n\n    /**\n     * <p>Throws an {@link UnsupportedOperationException} with a message text\n     * telling which functionality is not yet implemented.</p>\n     *\n     * @param msg text telling was leaves to be implemented, e.g.\n     * \"Reading byte arrays\".\n     */\n    private void notYetImplemented(final String msg)\n    {\n        throw new UnsupportedOperationException(msg + \" is not yet implemented.\");", "functions": [{"function_name": "getCategory", "code": "    public String getCategory()\n    {\n        return (String) getProperty(PropertyIDMap.PID_CATEGORY);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCategory", "code": "    public void setCategory(final String category)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_CATEGORY, category);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeCategory", "code": "    public void removeCategory()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_CATEGORY);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPresentationFormat", "code": "    public String getPresentationFormat()\n    {\n        return (String) getProperty(PropertyIDMap.PID_PRESFORMAT);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPresentationFormat", "code": "    public void setPresentationFormat(final String presentationFormat)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_PRESFORMAT, presentationFormat);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removePresentationFormat", "code": "    public void removePresentationFormat()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_PRESFORMAT);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getByteCount", "code": "    public int getByteCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_BYTECOUNT);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setByteCount", "code": "    public void setByteCount(final int byteCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_BYTECOUNT, byteCount);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeByteCount", "code": "    public void removeByteCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_BYTECOUNT);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLineCount", "code": "    public int getLineCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_LINECOUNT);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLineCount", "code": "    public void setLineCount(final int lineCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_LINECOUNT, lineCount);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeLineCount", "code": "    public void removeLineCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_LINECOUNT);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getParCount", "code": "    public int getParCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_PARCOUNT);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setParCount", "code": "    public void setParCount(final int parCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_PARCOUNT, parCount);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeParCount", "code": "    public void removeParCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_PARCOUNT);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSlideCount", "code": "    public int getSlideCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_SLIDECOUNT);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSlideCount", "code": "    public void setSlideCount(final int slideCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_SLIDECOUNT, slideCount);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeSlideCount", "code": "    public void removeSlideCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_SLIDECOUNT);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNoteCount", "code": "    public int getNoteCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_NOTECOUNT);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNoteCount", "code": "    public void setNoteCount(final int noteCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_NOTECOUNT, noteCount);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeNoteCount", "code": "    public void removeNoteCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_NOTECOUNT);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getHiddenCount", "code": "    public int getHiddenCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_HIDDENCOUNT);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHiddenCount", "code": "    public void setHiddenCount(final int hiddenCount)\n    {\n        final MutableSection s = (MutableSection) getSections().get(0);\n        s.setProperty(PropertyIDMap.PID_HIDDENCOUNT, hiddenCount);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "removeHiddenCount", "code": "    public void removeHiddenCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_HIDDENCOUNT);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMMClipCount", "code": "    public int getMMClipCount()\n    {\n        return getPropertyIntValue(PropertyIDMap.PID_MMCLIPCOUNT);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMMClipCount", "code": "    public void setMMClipCount(final int mmClipCount)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_MMCLIPCOUNT, mmClipCount);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeMMClipCount", "code": "    public void removeMMClipCount()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_MMCLIPCOUNT);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getScale", "code": "    public boolean getScale()\n    {\n        return getPropertyBooleanValue(PropertyIDMap.PID_SCALE);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setScale", "code": "    public void setScale(final boolean scale)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_SCALE, scale);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeScale", "code": "    public void removeScale()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_SCALE);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getHeadingPair", "code": "    public byte[] getHeadingPair()\n    {\n        notYetImplemented(\"Reading byte arrays \");\n        return (byte[]) getProperty(PropertyIDMap.PID_HEADINGPAIR);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setHeadingPair", "code": "    public void setHeadingPair(final byte[] headingPair)\n    {\n        notYetImplemented(\"Writing byte arrays \");", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeHeadingPair", "code": "    public void removeHeadingPair()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_HEADINGPAIR);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocparts", "code": "    public byte[] getDocparts()\n    {\n        notYetImplemented(\"Reading byte arrays\");\n        return (byte[]) getProperty(PropertyIDMap.PID_DOCPARTS);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDocparts", "code": "    public void setDocparts(final byte[] docparts)\n    {\n        notYetImplemented(\"Writing byte arrays\");", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeDocparts", "code": "    public void removeDocparts()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_DOCPARTS);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getManager", "code": "    public String getManager()\n    {\n        return (String) getProperty(PropertyIDMap.PID_MANAGER);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setManager", "code": "    public void setManager(final String manager)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_MANAGER, manager);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeManager", "code": "    public void removeManager()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_MANAGER);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCompany", "code": "    public String getCompany()\n    {\n        return (String) getProperty(PropertyIDMap.PID_COMPANY);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCompany", "code": "    public void setCompany(final String company)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_COMPANY, company);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeCompany", "code": "    public void removeCompany()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_COMPANY);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLinksDirty", "code": "    public boolean getLinksDirty()\n    {\n        return getPropertyBooleanValue(PropertyIDMap.PID_LINKSDIRTY);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLinksDirty", "code": "    public void setLinksDirty(final boolean linksDirty)\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.setProperty(PropertyIDMap.PID_LINKSDIRTY, linksDirty);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeLinksDirty", "code": "    public void removeLinksDirty()\n    {\n        final MutableSection s = (MutableSection) getFirstSection();\n        s.removeProperty(PropertyIDMap.PID_LINKSDIRTY);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCustomProperties", "code": "    public CustomProperties getCustomProperties()\n    {\n        CustomProperties cps = null;\n        if (getSectionCount() >= 2)\n        {\n            cps = new CustomProperties();\n            final Section section = (Section) getSections().get(1);\n            final Map dictionary = section.getDictionary();\n            final Property[] properties = section.getProperties();\n            int propertyCount = 0;\n            for (int i = 0; i < properties.length; i++)\n            {\n                final Property p = properties[i];\n                final long id = p.getID();\n                if (id != 0 && id != 1)\n                {\n                    propertyCount++;\n                    final CustomProperty cp = new CustomProperty(p,\n                            (String) dictionary.get(new Long(id)));\n                    cps.put(cp.getName(), cp);\n                }\n            }\n            if (cps.size() != propertyCount)\n                cps.setPure(false);\n        }\n        return cps;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [4, 11], [4, 12], [3, 13], [5, 14], [6, 15], [2, 16], [5, 17], [14, 18], [6, 19], [6, 20], [6, 21], [7, 22], [8, 23], [9, 24], [16, 25], [17, 26], [19, 27], [6, 28], [10, 29], [19, 30], [27, 31], [27, 32], [20, 33], [29, 34], [19, 35], [31, 36], [32, 37], [34, 38], [35, 39], [30, 40], [40, 41], [41, 42], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 4], [12, 4], [13, 3], [14, 5], [15, 6], [16, 2], [17, 5], [18, 14], [19, 6], [20, 6], [21, 6], [22, 7], [23, 8], [24, 9], [25, 16], [26, 17], [27, 19], [28, 6], [29, 10], [30, 19], [31, 27], [32, 27], [33, 20], [34, 29], [35, 19], [36, 31], [37, 32], [38, 34], [39, 35], [40, 30], [41, 40], [42, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "setCustomProperties", "code": "    public void setCustomProperties(final CustomProperties customProperties)\n    {\n        ensureSection2();\n        final MutableSection section = (MutableSection) getSections().get(1);\n        final Map dictionary = customProperties.getDictionary();\n        section.clear();\n\n        /* Set the codepage. If both custom properties and section have a\n         * codepage, the codepage from the custom properties wins, else take the\n         * one that is defined. If none is defined, take Unicode. */\n        int cpCodepage = customProperties.getCodepage();\n        if (cpCodepage < 0)\n            cpCodepage = section.getCodepage();\n        if (cpCodepage < 0)\n            cpCodepage = Constants.CP_UNICODE;\n        customProperties.setCodepage(cpCodepage);\n        section.setCodepage(cpCodepage);\n        section.setDictionary(dictionary);\n        for (final Iterator i = customProperties.values().iterator(); i.hasNext();)\n        {\n            final Property p = (Property) i.next();\n            section.setProperty(p);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [0, 14], [0, 15], [1, 16], [2, 17], [12, 18], [3, 19], [13, 20], [4, 21], [5, 22], [1, 23], [1, 24], [19, 25], [6, 26], [24, 27], [26, 28], [16, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 0], [15, 0], [16, 1], [17, 2], [18, 12], [19, 3], [20, 13], [21, 4], [22, 5], [23, 1], [24, 1], [25, 19], [26, 6], [27, 24], [28, 26], [29, 16], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "ensureSection2", "code": "    private void ensureSection2()\n    {\n        if (getSectionCount() < 2)\n        {\n            MutableSection s2 = new MutableSection();\n            s2.setFormatID(SectionIDMap.DOCUMENT_SUMMARY_INFORMATION_ID[1]);\n            addSection(s2);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [1, 6], [1, 7], [3, 8], [7, 9], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 1], [7, 1], [8, 3], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "removeCustomProperties", "code": "    public void removeCustomProperties()\n    {\n        if (getSectionCount() >= 2)\n            getSections().remove(1);\n        else\n            throw new HPSFRuntimeException(\"Illegal internal format of Document SummaryInformation stream: second section is missing.\");", "ast_nodes": ["FUNC_DECL", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [3, 6], [3, 7], [4, 8], [5, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 3], [7, 3], [8, 4], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "notYetImplemented", "code": "    private void notYetImplemented(final String msg)\n    {\n        throw new UnsupportedOperationException(msg + \" is not yet implemented.\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DocumentSummaryInformation", "code": "    public DocumentSummaryInformation(final PropertySet ps)\n        throws UnexpectedPropertySetTypeException\n    {\n        super(ps);\n        if (!isDocumentSummaryInformation())\n            throw new UnexpectedPropertySetTypeException\n                (\"Not a \" + getClass().getName());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [5, 6], [6, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 5], [7, 6], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "ant-1.3-102", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/taskdefs/UpToDate.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.UpToDate", "code": "public class UpToDate extends MatchingTask {\n\n    private String _property;\n    private File _targetFile;\n    private Vector sourceFileSets = new Vector();\n\n    protected Mapper mapperElement = null;\n\n    /**\n     * The property to set if the target file is more up to date than each of\n     * the source files.\n     *\n     * @param property the name of the property to set if Target is up to date.\n     */\n    public void setProperty(String property) {\n        _property = property;\n    }\n\n    /**\n     * The file which must be more up to date than each of the source files\n     * if the property is to be set.\n     *\n     * @param file the file which we are checking against.\n     */\n    public void setTargetFile(File file) {\n        _targetFile = file;\n    }\n\n    /**\n     * Nested &lt;srcfiles&gt; element.\n     */\n    public void addSrcfiles(FileSet fs) {\n        sourceFileSets.addElement(fs);\n    }\n\n    /**\n     * Defines the FileNameMapper to use (nested mapper element).\n     */\n    public Mapper createMapper() throws BuildException {\n        if (mapperElement != null) {\n            throw new BuildException(\"Cannot define more than one mapper\",\n                                     location);\n        }\n        mapperElement = new Mapper(project);\n        return mapperElement;\n    }\n\n    /**\n     * Sets property to true if target files have a more recent timestamp than\n     * each of the corresponding source files.\n     */\n    public void execute() throws BuildException {\n\n        if (sourceFileSets.size() == 0) {\n          throw new BuildException(\"At least one <srcfiles> element must be set\");\n        }\n\n        if (_targetFile == null && mapperElement == null) {\n          throw new BuildException(\"The targetfile attribute or a nested mapper element must be set\");\n        }\n\n        if (_targetFile != null && !_targetFile.exists()) return; \n\n        Enumeration enum1 = sourceFileSets.elements();\n        boolean upToDate = true;\n        while (upToDate && enum1.hasMoreElements()) {\n            FileSet fs = (FileSet) enum1.nextElement();\n            DirectoryScanner ds = fs.getDirectoryScanner(project);\n            upToDate = upToDate && scanDir(fs.getDir(project), \n                                           ds.getIncludedFiles());\n        }\n\n        if (upToDate) {\n            this.project.setProperty(_property, \"true\");\n            if (mapperElement == null) {\n                log(\"File \\\"\" + _targetFile.getAbsolutePath() + \"\\\" is up to date.\",\n                    Project.MSG_VERBOSE);\n            } else {\n                log(\"All target files have been up to date.\",\n                    Project.MSG_VERBOSE);\n            }\n        }\n    }\n\n    protected boolean scanDir(File srcDir, String files[]) {\n        SourceFileScanner sfs = new SourceFileScanner(this);\n        FileNameMapper mapper = null;\n        if (mapperElement == null) {\n            MergingMapper mm = new MergingMapper();\n            mm.setTo(_targetFile.getAbsolutePath());\n            mapper = mm;\n        } else {\n            mapper = mapperElement.getImplementation();\n        }\n        return sfs.restrict(files, srcDir, null, mapper).length == 0;", "functions": [{"function_name": "setProperty", "code": "    public void setProperty(String property) {\n        _property = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTargetFile", "code": "    public void setTargetFile(File file) {\n        _targetFile = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addSrcfiles", "code": "    public void addSrcfiles(FileSet fs) {\n        sourceFileSets.addElement(fs);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createMapper", "code": "    public Mapper createMapper() throws BuildException {\n        if (mapperElement != null) {\n            throw new BuildException(\"Cannot define more than one mapper\",\n                                     location);\n        }\n        mapperElement = new Mapper(project);\n        return mapperElement;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [4, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 4], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n\n        if (sourceFileSets.size() == 0) {\n          throw new BuildException(\"At least one <srcfiles> element must be set\");\n        }\n\n        if (_targetFile == null && mapperElement == null) {\n          throw new BuildException(\"The targetfile attribute or a nested mapper element must be set\");\n        }\n\n        if (_targetFile != null && !_targetFile.exists()) return; \n\n        Enumeration enum1 = sourceFileSets.elements();\n        boolean upToDate = true;\n        while (upToDate && enum1.hasMoreElements()) {\n            FileSet fs = (FileSet) enum1.nextElement();\n            DirectoryScanner ds = fs.getDirectoryScanner(project);\n            upToDate = upToDate && scanDir(fs.getDir(project), \n                                           ds.getIncludedFiles());\n        }\n\n        if (upToDate) {\n            this.project.setProperty(_property, \"true\");\n            if (mapperElement == null) {\n                log(\"File \\\"\" + _targetFile.getAbsolutePath() + \"\\\" is up to date.\",\n                    Project.MSG_VERBOSE);\n            } else {\n                log(\"All target files have been up to date.\",\n                    Project.MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [5, 9], [5, 10], [6, 11], [7, 12], [1, 13], [2, 14], [2, 15], [8, 16], [3, 17], [4, 18], [10, 19], [10, 20], [6, 21], [11, 22], [11, 23], [7, 24], [12, 25], [12, 26], [13, 27], [2, 28], [20, 29], [21, 30], [22, 31], [23, 32], [24, 33], [27, 34], [1, 35], [28, 36], [14, 37], [30, 38], [33, 39], [13, 40], [13, 41], [35, 42], [36, 43], [15, 44], [40, 45], [41, 46], [43, 47], [43, 48], [46, 49], [46, 50], [50, 51], [50, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 5], [10, 5], [11, 6], [12, 7], [13, 1], [14, 2], [15, 2], [16, 8], [17, 3], [18, 4], [19, 10], [20, 10], [21, 6], [22, 11], [23, 11], [24, 7], [25, 12], [26, 12], [27, 13], [28, 2], [29, 20], [30, 21], [31, 22], [32, 23], [33, 24], [34, 27], [35, 1], [36, 28], [37, 14], [38, 30], [39, 33], [40, 13], [41, 13], [42, 35], [43, 36], [44, 15], [45, 40], [46, 41], [47, 43], [48, 43], [49, 46], [50, 46], [51, 50], [52, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "scanDir", "code": "    protected boolean scanDir(File srcDir, String files[]) {\n        SourceFileScanner sfs = new SourceFileScanner(this);\n        FileNameMapper mapper = null;\n        if (mapperElement == null) {\n            MergingMapper mm = new MergingMapper();\n            mm.setTo(_targetFile.getAbsolutePath());\n            mapper = mm;\n        } else {\n            mapper = mapperElement.getImplementation();\n        }\n        return sfs.restrict(files, srcDir, null, mapper).length == 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [7, 10], [2, 11], [8, 12], [3, 13], [4, 14], [10, 15], [2, 16], [2, 17], [2, 18], [16, 19], [18, 20], [11, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 7], [11, 2], [12, 8], [13, 3], [14, 4], [15, 10], [16, 2], [17, 2], [18, 2], [19, 16], [20, 18], [21, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}], "label": 0}
{"sample_id": "ant-1.5-437", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/Rmic.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Rmic", "code": "public class Rmic extends MatchingTask {\n\n    private static final String FAIL_MSG \n        = \"Rmic failed; see the compiler error output for details.\";\n\n    private File baseDir;\n    private String classname;\n    private File sourceBase;\n    private String stubVersion;\n    private Path compileClasspath;\n    private Path extdirs;\n    private boolean verify = false;\n    private boolean filtering = false;\n\n    private boolean iiop = false;\n    private String  iiopopts;\n    private boolean idl  = false;\n    private String  idlopts;\n    private boolean debug  = false;\n    private boolean includeAntRuntime = true;\n    private boolean includeJavaRuntime = false;\n\n    private Vector compileList = new Vector();\n\n    private ClassLoader loader = null;\n\n    private FileUtils fileUtils = FileUtils.newFileUtils();\n\n    private FacadeTaskHelper facade;\n\n    public Rmic() {\n        try {\n            Class.forName(\"kaffe.rmi.rmic.RMIC\");\n            facade = new FacadeTaskHelper(\"kaffe\");\n        } catch (ClassNotFoundException cnfe) {\n            facade = new FacadeTaskHelper(\"sun\");\n        }\n    }\n\n    /** \n     * Sets the location to store the compiled files; required \n     */\n    public void setBase(File base) {\n        this.baseDir = base;\n    }\n\n    /** \n     * Gets the base directory to output generated class. \n     */\n     \n    public File getBase() {\n        return this.baseDir;\n    }\n\n    /** \n     * Sets the the class to run <code>rmic</code> against;\n     * optional\n     */\n    public void setClassname(String classname) {\n        this.classname = classname;\n    }\n\n    /**\n     * Gets the class name to compile. \n     */\n    public String getClassname() {\n        return classname;\n    }\n\n    /**\n     * optional directory to save generated source files to.\n     */\n    public void setSourceBase(File sourceBase) {\n        this.sourceBase = sourceBase;\n    }\n\n    /**\n     * Gets the source dirs to find the source java files. \n     */\n    public File getSourceBase() {\n        return sourceBase;\n    }\n\n    /**\n     * Specify the JDK version for the generated stub code.\n     * Specify &quot;1.1&quot; to pass the &quot;-v1.1&quot; option to rmic.</td>\n     */\n    public void setStubVersion(String stubVersion) {\n        this.stubVersion = stubVersion;\n    }\n\n    public String getStubVersion() {\n        return stubVersion;\n    }\n\n    /**\n     * indicates whether token filtering should take place;\n     * optional, default=false\n     */\n    public void setFiltering(boolean filter) {\n        filtering = filter;\n    }\n\n    public boolean getFiltering() {\n        return filtering;\n    }\n\n    /**\n     * generate debug info (passes -g to rmic);\n     * optional, defaults to false\n     */\n    public void setDebug(boolean debug) {\n        this.debug = debug;\n    }\n\n    /**\n     * Gets the debug flag. \n     */\n    public boolean getDebug() {\n        return debug;\n    }\n\n    /**\n     * Set the classpath to be used for this compilation.\n     */\n    public void setClasspath(Path classpath) {\n        if (compileClasspath == null) {\n            compileClasspath = classpath;\n        } else {\n            compileClasspath.append(classpath);\n        }\n    }\n\n    /**\n     * Creates a nested classpath element.\n     */\n    public Path createClasspath() {\n        if (compileClasspath == null) {\n            compileClasspath = new Path(getProject());\n        }\n        return compileClasspath.createPath();\n    }\n\n    /**\n     * Adds to the classpath a reference to \n     * a &lt;path&gt; defined elsewhere.\n     */\n    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);\n    }\n\n    /**\n     * Gets the classpath. \n     */\n    public Path getClasspath() {\n        return compileClasspath; \n    }\n\n    /**\n     * Flag to enable verification so that the classes \n     * found by the directory match are\n     * checked to see if they implement java.rmi.Remote.\n     * Optional; his defaults to false if not set.  \n     */\n     \n    public void setVerify(boolean verify) {\n        this.verify = verify;\n    }\n\n    /** Get verify flag. */\n    public boolean getVerify() {\n        return verify;\n    }\n\n    /**\n     * Indicates that IIOP compatible stubs should\n     * be generated; optional, defaults to false \n     * if not set.  \n     */\n    public void setIiop(boolean iiop) {\n        this.iiop = iiop;\n    }\n\n    /** \n     * Gets iiop flags. \n     */\n    public boolean getIiop() {\n        return iiop;\n    }\n\n    /**\n     * Set additional arguments for iiop \n     */\n    public void setIiopopts(String iiopopts) {\n        this.iiopopts = iiopopts;\n    }\n\n    /**\n     * Gets additional arguments for iiop. \n     */\n    public String getIiopopts() {\n        return iiopopts;\n    }\n\n    /**\n     * Indicates that IDL output should be \n     * generated.  This defaults to false \n     * if not set.  \n     */\n    public void setIdl(boolean idl) {\n        this.idl = idl;\n    }\n\n    /**\n     * Gets IDL flags. \n     */\n    public boolean getIdl() {\n        return idl;\n    }\n\n    /**\n     * pass additional arguments for idl compile \n     */\n    public void setIdlopts(String idlopts) {\n        this.idlopts = idlopts;\n    }\n\n    /**\n     * Gets additional arguments for idl compile. \n     */\n    public String getIdlopts() {\n        return idlopts;\n    }\n\n    /**\n     * Gets file list to compile. \n     */\n    public Vector getFileList() {\n        return compileList;\n    }\n\n    /**\n     * Sets whether or not to include ant's own classpath in this task's \n     * classpath.\n     * Optional; default is <code>true</code>.\n     */\n    public void setIncludeantruntime(boolean include) {\n        includeAntRuntime = include;\n    }\n\n    /**\n     * Gets whether or not the ant classpath is to be included in the\n     * task's classpath.\n     */\n    public boolean getIncludeantruntime() {\n        return includeAntRuntime;\n    }\n\n    /**\n     * task's classpath.\n     * Enables or disables including the default run-time\n     * libraries from the executing VM; optional,\n     * defaults to false     \n     */\n    public void setIncludejavaruntime(boolean include) {\n        includeJavaRuntime = include;\n    }\n\n    /**\n     * Gets whether or not the java runtime should be included in this\n     * task's classpath.\n     */\n    public boolean getIncludejavaruntime() {\n        return includeJavaRuntime;\n    }\n\n    /**\n     * Sets the extension directories that will be used during the\n     * compilation; optional.\n     */\n    public void setExtdirs(Path extdirs) {\n        if (this.extdirs == null) {\n            this.extdirs = extdirs;\n        } else {\n            this.extdirs.append(extdirs);\n        }\n    }\n\n    /**\n     * Maybe creates a nested extdirs element.\n     */\n    public Path createExtdirs() {\n        if (extdirs == null) {\n            extdirs = new Path(getProject());\n        }\n        return extdirs.createPath();\n    }\n\n    /**\n     * Gets the extension directories that will be used during the\n     * compilation.\n     */\n    public Path getExtdirs() {\n        return extdirs;\n    }\n\n    public Vector getCompileList() {\n        return compileList;\n    }\n\n    /**\n     * Sets the compiler implementation to use; optional,\n     * defaults to the value of the <code>build.rmic</code> property,\n     * or failing that, default compiler for the current VM\n     * @since Ant 1.5\n     */\n    public void setCompiler(String compiler) {\n        facade.setImplementation(compiler);\n    }\n\n    /**\n     * get the name of the current compiler\n     * @since Ant 1.5\n     */\n    public String getCompiler() {\n        facade.setMagicValue(getProject().getProperty(\"build.rmic\"));\n        return facade.getImplementation();\n    }\n\n    /**\n     * Adds an implementation specific command line argument.\n     * @since Ant 1.5\n     */\n    public ImplementationSpecificArgument createCompilerArg() {\n        ImplementationSpecificArgument arg =\n            new ImplementationSpecificArgument();\n        facade.addImplementationArgument(arg);\n        return arg;\n    }\n\n    /**\n     * Get the additional implementation specific command line arguments.\n     * @return array of command line arguments, guaranteed to be non-null.\n     * @since Ant 1.5\n     */\n    public String[] getCurrentCompilerArgs() {\n        getCompiler();\n        return facade.getArgs();\n    }\n\n    /**\n     * execute by creating an instance of an implementation\n     * class and getting to do the work\n     */\n    public void execute() throws BuildException {\n        if (baseDir == null) {\n            throw new BuildException(\"base attribute must be set!\", getLocation());\n        }\n        if (!baseDir.exists()) {\n            throw new BuildException(\"base does not exist!\", getLocation());\n        }\n\n        if (verify) {\n            log(\"Verify has been turned on.\", Project.MSG_VERBOSE);\n        }\n\n        RmicAdapter adapter = RmicAdapterFactory.getRmic(getCompiler(), this);\n            \n        adapter.setRmic(this);\n\n        Path classpath = adapter.getClasspath();\n        loader = new AntClassLoader(getProject(), classpath);\n\n        try {\n            if (classname == null) {\n                DirectoryScanner ds = this.getDirectoryScanner(baseDir);\n                String[] files = ds.getIncludedFiles();\n                scanDir(baseDir, files, adapter.getMapper());\n            } else {\n                scanDir(baseDir, \n                        new String[] {classname.replace('.', \n                                                        File.separatorChar)\n                                          + \".class\"},\n                        adapter.getMapper());\n            }\n            \n            int fileCount = compileList.size();\n            if (fileCount > 0) {\n                log(\"RMI Compiling \" + fileCount +\n                    \" class\" + (fileCount > 1 ? \"es\" : \"\") + \" to \" + baseDir, \n                    Project.MSG_INFO);\n                \n                if (!adapter.execute()) {\n                    throw new BuildException(FAIL_MSG, getLocation());\n                }\n            }\n            \n            /* \n             * Move the generated source file to the base directory.  If\n             * base directory and sourcebase are the same, the generated\n             * sources are already in place.\n             */\n            if (null != sourceBase && !baseDir.equals(sourceBase) \n                && fileCount > 0) {\n                if (idl) {\n                    log(\"Cannot determine sourcefiles in idl mode, \", \n                        Project.MSG_WARN);\n                    log(\"sourcebase attribute will be ignored.\", \n                        Project.MSG_WARN);\n                } else {\n                    for (int j = 0; j < fileCount; j++) {\n                        moveGeneratedFile(baseDir, sourceBase,\n                                          (String) compileList.elementAt(j),\n                                          adapter);\n                    }\n                }\n            }\n        } finally {\n            compileList.removeAllElements();\n        }\n    }\n\n    /**\n     * Move the generated source file(s) to the base directory\n     *\n     * @throws org.apache.tools.ant.BuildException When error\n     * copying/removing files.\n     */\n    private void moveGeneratedFile (File baseDir, File sourceBaseFile,\n                                    String classname,\n                                    RmicAdapter adapter)\n        throws BuildException {\n\n        String classFileName = \n            classname.replace('.', File.separatorChar) + \".class\";\n        String[] generatedFiles = \n            adapter.getMapper().mapFileName(classFileName);\n\n        for (int i = 0; i < generatedFiles.length; i++) {\n            final String generatedFile = generatedFiles[i];\n            if (!generatedFile.endsWith(\".class\")) {\n                continue;\n            }\n\n            final int pos = generatedFile.length() - \".class\".length();\n            String sourceFileName =\n                generatedFile.substring(0, pos) + \".java\";\n\n            File oldFile = new File(baseDir, sourceFileName);\n            if (!oldFile.exists()) {\n                continue;\n            }\n\n            File newFile = new File(sourceBaseFile, sourceFileName);\n            try {\n                if (filtering) {\n                    fileUtils.copyFile(oldFile, newFile, \n                        new FilterSetCollection(getProject()\n                                                .getGlobalFilterSet()));\n                } else {\n                    fileUtils.copyFile(oldFile, newFile);\n                }\n                oldFile.delete();\n            } catch (IOException ioe) {\n                String msg = \"Failed to copy \" + oldFile + \" to \" +\n                    newFile + \" due to \" + ioe.getMessage();\n                throw new BuildException(msg, ioe, getLocation());\n            }\n        }\n    }\n\n    /**\n     * Scans the directory looking for class files to be compiled.\n     * The result is returned in the class variable compileList.\n     */\n    protected void scanDir(File baseDir, String[] files,\n                           FileNameMapper mapper) {\n\n        String[] newFiles = files;\n        if (idl) {\n            log(\"will leave uptodate test to rmic implementation in idl mode.\",\n                Project.MSG_VERBOSE);\n        } else if (iiop \n                   && iiopopts != null && iiopopts.indexOf(\"-always\") > -1) {\n            log(\"no uptodate test as -always option has been specified\",\n                Project.MSG_VERBOSE);\n        } else {\n            SourceFileScanner sfs = new SourceFileScanner(this);\n            newFiles = sfs.restrict(files, baseDir, baseDir, mapper);\n        }\n\n        for (int i = 0; i < newFiles.length; i++) {\n            String classname = newFiles[i].replace(File.separatorChar, '.');\n            classname = classname.substring(0, classname.lastIndexOf(\".class\"));\n            compileList.addElement(classname);\n        }\n    }\n\n    /**\n     * Load named class and test whether it can be rmic'ed\n     */\n    public boolean isValidRmiRemote(String classname) {\n        try {\n            Class testClass = loader.loadClass(classname);\n            if (testClass.isInterface() && !iiop && !idl) {\n                return false;\n            }\n            return isValidRmiRemote(testClass);\n        } catch (ClassNotFoundException e) {\n            log(\"Unable to verify class \" + classname + \n                \". It could not be found.\", Project.MSG_WARN);\n        } catch (NoClassDefFoundError e) {\n            log(\"Unable to verify class \" + classname + \n                \". It is not defined.\", Project.MSG_WARN);\n        } catch (Throwable t) {\n            log(\"Unable to verify class \" + classname + \n                \". Loading caused Exception: \" +\n                t.getMessage(), Project.MSG_WARN);\n        }\n        return false;\n    }\n\n    /**\n     * Returns the topmost interface that extends Remote for a given\n     * class - if one exists.\n     */\n    public Class getRemoteInterface(Class testClass) {\n        if (Remote.class.isAssignableFrom(testClass)) {\n            Class [] interfaces = testClass.getInterfaces();\n            if (interfaces != null) {\n                for (int i = 0; i < interfaces.length; i++) {\n                    if (Remote.class.isAssignableFrom(interfaces[i])) {\n                        return interfaces[i];\n                    }\n                }\n            }\n        }\n        return null;\n    }\n\n    /**\n     * Check to see if the class or (super)interfaces implement\n     * java.rmi.Remote.\n     */\n    private boolean isValidRmiRemote (Class testClass) {\n        return getRemoteInterface(testClass) != null;\n    }\n\n    /**\n     * Classloader for the user-specified classpath.\n     */\n    public ClassLoader getLoader() {\n        return loader;\n    }\n\n    /**\n     * Adds an \"compiler\" attribute to Commandline$Attribute used to\n     * filter command line attributes based on the current\n     * implementation.\n     */\n    public class ImplementationSpecificArgument extends \n        org.apache.tools.ant.util.facade.ImplementationSpecificArgument {\n\n        /**\n         * Only pass the specified argument if the \n         * chosen compiler implementation matches the \n         * value of this attribute. Legal values are\n         * the same as those in the above list of\n         * valid compilers.)\n         */\n        public void setCompiler(String impl) {\n            super.setImplementation(impl);", "functions": [{"function_name": "setBase", "code": "    public void setBase(File base) {\n        this.baseDir = base;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBase", "code": "    public File getBase() {\n        return this.baseDir;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setClassname", "code": "    public void setClassname(String classname) {\n        this.classname = classname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getClassname", "code": "    public String getClassname() {\n        return classname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSourceBase", "code": "    public void setSourceBase(File sourceBase) {\n        this.sourceBase = sourceBase;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSourceBase", "code": "    public File getSourceBase() {\n        return sourceBase;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStubVersion", "code": "    public void setStubVersion(String stubVersion) {\n        this.stubVersion = stubVersion;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStubVersion", "code": "    public String getStubVersion() {\n        return stubVersion;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFiltering", "code": "    public void setFiltering(boolean filter) {\n        filtering = filter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFiltering", "code": "    public boolean getFiltering() {\n        return filtering;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDebug", "code": "    public void setDebug(boolean debug) {\n        this.debug = debug;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDebug", "code": "    public boolean getDebug() {\n        return debug;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        if (compileClasspath == null) {\n            compileClasspath = classpath;\n        } else {\n            compileClasspath.append(classpath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (compileClasspath == null) {\n            compileClasspath = new Path(getProject());\n        }\n        return compileClasspath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getClasspath", "code": "    public Path getClasspath() {\n        return compileClasspath; ", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVerify", "code": "    public void setVerify(boolean verify) {\n        this.verify = verify;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVerify", "code": "    public boolean getVerify() {\n        return verify;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIiop", "code": "    public void setIiop(boolean iiop) {\n        this.iiop = iiop;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIiop", "code": "    public boolean getIiop() {\n        return iiop;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIiopopts", "code": "    public void setIiopopts(String iiopopts) {\n        this.iiopopts = iiopopts;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIiopopts", "code": "    public String getIiopopts() {\n        return iiopopts;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIdl", "code": "    public void setIdl(boolean idl) {\n        this.idl = idl;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIdl", "code": "    public boolean getIdl() {\n        return idl;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIdlopts", "code": "    public void setIdlopts(String idlopts) {\n        this.idlopts = idlopts;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIdlopts", "code": "    public String getIdlopts() {\n        return idlopts;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFileList", "code": "    public Vector getFileList() {\n        return compileList;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIncludeantruntime", "code": "    public void setIncludeantruntime(boolean include) {\n        includeAntRuntime = include;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIncludeantruntime", "code": "    public boolean getIncludeantruntime() {\n        return includeAntRuntime;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIncludejavaruntime", "code": "    public void setIncludejavaruntime(boolean include) {\n        includeJavaRuntime = include;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIncludejavaruntime", "code": "    public boolean getIncludejavaruntime() {\n        return includeJavaRuntime;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExtdirs", "code": "    public void setExtdirs(Path extdirs) {\n        if (this.extdirs == null) {\n            this.extdirs = extdirs;\n        } else {\n            this.extdirs.append(extdirs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createExtdirs", "code": "    public Path createExtdirs() {\n        if (extdirs == null) {\n            extdirs = new Path(getProject());\n        }\n        return extdirs.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExtdirs", "code": "    public Path getExtdirs() {\n        return extdirs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCompileList", "code": "    public Vector getCompileList() {\n        return compileList;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCompiler", "code": "    public void setCompiler(String compiler) {\n        facade.setImplementation(compiler);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCompiler", "code": "    public String getCompiler() {\n        facade.setMagicValue(getProject().getProperty(\"build.rmic\"));\n        return facade.getImplementation();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 1], [3, 0], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createCompilerArg", "code": "    public ImplementationSpecificArgument createCompilerArg() {\n        ImplementationSpecificArgument arg =\n            new ImplementationSpecificArgument();\n        facade.addImplementationArgument(arg);\n        return arg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCurrentCompilerArgs", "code": "    public String[] getCurrentCompilerArgs() {\n        getCompiler();\n        return facade.getArgs();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (baseDir == null) {\n            throw new BuildException(\"base attribute must be set!\", getLocation());\n        }\n        if (!baseDir.exists()) {\n            throw new BuildException(\"base does not exist!\", getLocation());\n        }\n\n        if (verify) {\n            log(\"Verify has been turned on.\", Project.MSG_VERBOSE);\n        }\n\n        RmicAdapter adapter = RmicAdapterFactory.getRmic(getCompiler(), this);\n            \n        adapter.setRmic(this);\n\n        Path classpath = adapter.getClasspath();\n        loader = new AntClassLoader(getProject(), classpath);\n\n        try {\n            if (classname == null) {\n                DirectoryScanner ds = this.getDirectoryScanner(baseDir);\n                String[] files = ds.getIncludedFiles();\n                scanDir(baseDir, files, adapter.getMapper());\n            } else {\n                scanDir(baseDir, \n                        new String[] {classname.replace('.', \n                                                        File.separatorChar)\n                                          + \".class\"},\n                        adapter.getMapper());\n            }\n            \n            int fileCount = compileList.size();\n            if (fileCount > 0) {\n                log(\"RMI Compiling \" + fileCount +\n                    \" class\" + (fileCount > 1 ? \"es\" : \"\") + \" to \" + baseDir, \n                    Project.MSG_INFO);\n                \n                if (!adapter.execute()) {\n                    throw new BuildException(FAIL_MSG, getLocation());\n                }\n            }\n            \n            /* \n             * Move the generated source file to the base directory.  If\n             * base directory and sourcebase are the same, the generated\n             * sources are already in place.\n             */\n            if (null != sourceBase && !baseDir.equals(sourceBase) \n                && fileCount > 0) {\n                if (idl) {\n                    log(\"Cannot determine sourcefiles in idl mode, \", \n                        Project.MSG_WARN);\n                    log(\"sourcebase attribute will be ignored.\", \n                        Project.MSG_WARN);\n                } else {\n                    for (int j = 0; j < fileCount; j++) {\n                        moveGeneratedFile(baseDir, sourceBase,\n                                          (String) compileList.elementAt(j),\n                                          adapter);\n                    }\n                }\n            }\n        } finally {\n            compileList.removeAllElements();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [0, 11], [0, 12], [5, 13], [6, 14], [1, 15], [7, 16], [8, 17], [10, 18], [11, 19], [2, 20], [3, 21], [5, 22], [6, 23], [14, 24], [7, 25], [16, 26], [16, 27], [8, 28], [17, 29], [9, 30], [10, 31], [10, 32], [18, 33], [19, 34], [21, 35], [4, 36], [22, 37], [23, 38], [26, 39], [27, 40], [27, 41], [28, 42], [8, 43], [10, 44], [10, 45], [36, 46], [37, 47], [37, 48], [38, 49], [38, 50], [25, 51], [41, 52], [28, 53], [43, 54], [44, 55], [45, 56], [31, 57], [51, 58], [25, 59], [25, 60], [53, 61], [54, 62], [32, 63], [59, 64], [60, 65], [61, 66], [62, 67], [62, 68], [44, 69], [51, 70], [51, 71], [68, 72], [68, 73], [69, 74], [69, 75], [72, 76], [72, 77], [72, 78], [73, 79], [73, 80], [75, 81], [70, 82], [78, 83], [80, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 0], [12, 0], [13, 5], [14, 6], [15, 1], [16, 7], [17, 8], [18, 10], [19, 11], [20, 2], [21, 3], [22, 5], [23, 6], [24, 14], [25, 7], [26, 16], [27, 16], [28, 8], [29, 17], [30, 9], [31, 10], [32, 10], [33, 18], [34, 19], [35, 21], [36, 4], [37, 22], [38, 23], [39, 26], [40, 27], [41, 27], [42, 28], [43, 8], [44, 10], [45, 10], [46, 36], [47, 37], [48, 37], [49, 38], [50, 38], [51, 25], [52, 41], [53, 28], [54, 43], [55, 44], [56, 45], [57, 31], [58, 51], [59, 25], [60, 25], [61, 53], [62, 54], [63, 32], [64, 59], [65, 60], [66, 61], [67, 62], [68, 62], [69, 44], [70, 51], [71, 51], [72, 68], [73, 68], [74, 69], [75, 69], [76, 72], [77, 72], [78, 72], [79, 73], [80, 73], [81, 75], [82, 70], [83, 78], [84, 80], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "moveGeneratedFile", "code": "    private void moveGeneratedFile (File baseDir, File sourceBaseFile,\n                                    String classname,\n                                    RmicAdapter adapter)\n        throws BuildException {\n\n        String classFileName = \n            classname.replace('.', File.separatorChar) + \".class\";\n        String[] generatedFiles = \n            adapter.getMapper().mapFileName(classFileName);\n\n        for (int i = 0; i < generatedFiles.length; i++) {\n            final String generatedFile = generatedFiles[i];\n            if (!generatedFile.endsWith(\".class\")) {\n                continue;\n            }\n\n            final int pos = generatedFile.length() - \".class\".length();\n            String sourceFileName =\n                generatedFile.substring(0, pos) + \".java\";\n\n            File oldFile = new File(baseDir, sourceFileName);\n            if (!oldFile.exists()) {\n                continue;\n            }\n\n            File newFile = new File(sourceBaseFile, sourceFileName);\n            try {\n                if (filtering) {\n                    fileUtils.copyFile(oldFile, newFile, \n                        new FilterSetCollection(getProject()\n                                                .getGlobalFilterSet()));\n                } else {\n                    fileUtils.copyFile(oldFile, newFile);\n                }\n                oldFile.delete();\n            } catch (IOException ioe) {\n                String msg = \"Failed to copy \" + oldFile + \" to \" +\n                    newFile + \" due to \" + ioe.getMessage();\n                throw new BuildException(msg, ioe, getLocation());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CATCH", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [2, 17], [3, 18], [9, 19], [9, 20], [11, 21], [15, 22], [1, 23], [17, 24], [18, 25], [18, 26], [19, 27], [19, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [14, 34], [15, 35], [22, 36], [26, 37], [27, 38], [33, 39], [33, 40], [34, 41], [34, 42], [38, 43], [28, 44], [20, 45], [20, 46], [40, 47], [41, 48], [44, 49], [44, 50], [46, 51], [50, 52], [50, 53], [51, 54], [53, 55], [54, 56], [55, 57], [55, 58], [58, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 2], [18, 3], [19, 9], [20, 9], [21, 11], [22, 15], [23, 1], [24, 17], [25, 18], [26, 18], [27, 19], [28, 19], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 14], [35, 15], [36, 22], [37, 26], [38, 27], [39, 33], [40, 33], [41, 34], [42, 34], [43, 38], [44, 28], [45, 20], [46, 20], [47, 40], [48, 41], [49, 44], [50, 44], [51, 46], [52, 50], [53, 50], [54, 51], [55, 53], [56, 54], [57, 55], [58, 55], [59, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "scanDir", "code": "    protected void scanDir(File baseDir, String[] files,\n                           FileNameMapper mapper) {\n\n        String[] newFiles = files;\n        if (idl) {\n            log(\"will leave uptodate test to rmic implementation in idl mode.\",\n                Project.MSG_VERBOSE);\n        } else if (iiop \n                   && iiopopts != null && iiopopts.indexOf(\"-always\") > -1) {\n            log(\"no uptodate test as -always option has been specified\",\n                Project.MSG_VERBOSE);\n        } else {\n            SourceFileScanner sfs = new SourceFileScanner(this);\n            newFiles = sfs.restrict(files, baseDir, baseDir, mapper);\n        }\n\n        for (int i = 0; i < newFiles.length; i++) {\n            String classname = newFiles[i].replace(File.separatorChar, '.');\n            classname = classname.substring(0, classname.lastIndexOf(\".class\"));\n            compileList.addElement(classname);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [8, 10], [1, 11], [1, 12], [1, 13], [8, 14], [10, 15], [10, 16], [2, 17], [12, 18], [8, 19], [8, 20], [15, 21], [15, 22], [16, 23], [17, 24], [18, 25], [18, 26], [9, 27], [19, 28], [14, 29], [20, 30], [22, 31], [23, 32], [25, 33], [27, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 8], [11, 1], [12, 1], [13, 1], [14, 8], [15, 10], [16, 10], [17, 2], [18, 12], [19, 8], [20, 8], [21, 15], [22, 15], [23, 16], [24, 17], [25, 18], [26, 18], [27, 9], [28, 19], [29, 14], [30, 20], [31, 22], [32, 23], [33, 25], [34, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "isValidRmiRemote", "code": "    public boolean isValidRmiRemote(String classname) {\n        try {\n            Class testClass = loader.loadClass(classname);\n            if (testClass.isInterface() && !iiop && !idl) {\n                return false;\n            }\n            return isValidRmiRemote(testClass);\n        } catch (ClassNotFoundException e) {\n            log(\"Unable to verify class \" + classname + \n                \". It could not be found.\", Project.MSG_WARN);\n        } catch (NoClassDefFoundError e) {\n            log(\"Unable to verify class \" + classname + \n                \". It is not defined.\", Project.MSG_WARN);\n        } catch (Throwable t) {\n            log(\"Unable to verify class \" + classname + \n                \". Loading caused Exception: \" +\n                t.getMessage(), Project.MSG_WARN);\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "CATCH", "CATCH", "CATCH", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [8, 11], [9, 12], [5, 13], [6, 14], [7, 15], [9, 16], [12, 17], [10, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [19, 24], [19, 25], [20, 26], [20, 27], [21, 28], [21, 29], [25, 30], [25, 31], [27, 32], [29, 33], [31, 34], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 8], [12, 9], [13, 5], [14, 6], [15, 7], [16, 9], [17, 12], [18, 10], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 19], [25, 19], [26, 20], [27, 20], [28, 21], [29, 21], [30, 25], [31, 25], [32, 27], [33, 29], [34, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getRemoteInterface", "code": "    public Class getRemoteInterface(Class testClass) {\n        if (Remote.class.isAssignableFrom(testClass)) {\n            Class [] interfaces = testClass.getInterfaces();\n            if (interfaces != null) {\n                for (int i = 0; i < interfaces.length; i++) {\n                    if (Remote.class.isAssignableFrom(interfaces[i])) {\n                        return interfaces[i];\n                    }\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [6, 9], [8, 10], [7, 11], [9, 12], [9, 13], [13, 14], [9, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 6], [10, 8], [11, 7], [12, 9], [13, 9], [14, 13], [15, 9], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isValidRmiRemote", "code": "    private boolean isValidRmiRemote (Class testClass) {\n        return getRemoteInterface(testClass) != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getLoader", "code": "    public ClassLoader getLoader() {\n        return loader;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Rmic", "code": "    public Rmic() {\n        try {\n            Class.forName(\"kaffe.rmi.rmic.RMIC\");\n            facade = new FacadeTaskHelper(\"kaffe\");\n        } catch (ClassNotFoundException cnfe) {\n            facade = new FacadeTaskHelper(\"sun\");", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [5, 8], [6, 9], [8, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 5], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "camel-1.2-2003", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/util/Time.java", "language": "java", "name": "org.apache.camel.util.Time", "code": "public class Time {\n    private long number;\n    private TimeUnit timeUnit = TimeUnit.MILLISECONDS;\n\n    public Time(long number, TimeUnit timeUnit) {\n        this.number = number;\n        this.timeUnit = timeUnit;\n    }\n\n    public static Time millis(long value) {\n        return new Time(value, TimeUnit.MILLISECONDS);\n    }\n\n    public static Time micros(long value) {\n        return new Time(value, TimeUnit.MICROSECONDS);\n    }\n\n    public static Time nanos(long value) {\n        return new Time(value, TimeUnit.NANOSECONDS);\n    }\n\n    public static Time seconds(long value) {\n        return new Time(value, TimeUnit.SECONDS);\n    }\n\n    public static Time minutes(long value) {\n        return new Time(minutesAsSeconds(value), TimeUnit.MILLISECONDS);\n    }\n\n    public static Time hours(long value) {\n        return new Time(hoursAsSeconds(value), TimeUnit.MILLISECONDS);\n    }\n\n    public static Time days(long value) {\n        return new Time(daysAsSeconds(value), TimeUnit.MILLISECONDS);\n    }\n\n    public long toMillis() {\n        return timeUnit.toMillis(number);\n    }\n\n    public Date toDate() {\n        return new Date(toMillis());\n    }\n\n    public long getNumber() {\n        return number;\n    }\n\n    public TimeUnit getTimeUnit() {\n        return timeUnit;\n    }\n\n    protected static long minutesAsSeconds(long value) {\n        return value * 60;\n    }\n\n    protected static long hoursAsSeconds(long value) {\n        return minutesAsSeconds(value) * 60;\n    }\n\n    protected static long daysAsSeconds(long value) {\n        return hoursAsSeconds(value) * 24;", "functions": [{"function_name": "millis", "code": "    public static Time millis(long value) {\n        return new Time(value, TimeUnit.MILLISECONDS);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "micros", "code": "    public static Time micros(long value) {\n        return new Time(value, TimeUnit.MICROSECONDS);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "nanos", "code": "    public static Time nanos(long value) {\n        return new Time(value, TimeUnit.NANOSECONDS);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "seconds", "code": "    public static Time seconds(long value) {\n        return new Time(value, TimeUnit.SECONDS);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "minutes", "code": "    public static Time minutes(long value) {\n        return new Time(minutesAsSeconds(value), TimeUnit.MILLISECONDS);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "hours", "code": "    public static Time hours(long value) {\n        return new Time(hoursAsSeconds(value), TimeUnit.MILLISECONDS);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "days", "code": "    public static Time days(long value) {\n        return new Time(daysAsSeconds(value), TimeUnit.MILLISECONDS);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toMillis", "code": "    public long toMillis() {\n        return timeUnit.toMillis(number);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toDate", "code": "    public Date toDate() {\n        return new Date(toMillis());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNumber", "code": "    public long getNumber() {\n        return number;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTimeUnit", "code": "    public TimeUnit getTimeUnit() {\n        return timeUnit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "minutesAsSeconds", "code": "    protected static long minutesAsSeconds(long value) {\n        return value * 60;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "hoursAsSeconds", "code": "    protected static long hoursAsSeconds(long value) {\n        return minutesAsSeconds(value) * 60;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "daysAsSeconds", "code": "    protected static long daysAsSeconds(long value) {\n        return hoursAsSeconds(value) * 24;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Time", "code": "    public Time(long number, TimeUnit timeUnit) {\n        this.number = number;\n        this.timeUnit = timeUnit;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.6-7575", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/compiler/OpMap.java", "language": "java", "name": "org.apache.xpath.compiler.OpMap", "code": "public class OpMap\n{\n\n  /**\n   * The current pattern string, for diagnostics purposes\n   */\n  protected String m_currentPattern;\n\n  /**\n   * Return the expression as a string for diagnostics.\n   *\n   * @return The expression string.\n   */\n  public String toString()\n  {\n    return m_currentPattern;\n  }\n\n  /**\n   * Return the expression as a string for diagnostics.\n   *\n   * @return The expression string.\n   */\n  public String getPatternString()\n  {\n    return m_currentPattern;\n  }\n\n  /**\n   * The starting size of the token queue.\n   */\n  static final int MAXTOKENQUEUESIZE = 500;\n\n  /*\n   * Amount to grow token queue when it becomes full\n   */\n  static final int BLOCKTOKENQUEUESIZE = 500;\n  \n  /**\n   *  TokenStack is the queue of used tokens. The current token is the token at the\n   * end of the m_tokenQueue. The idea is that the queue can be marked and a sequence\n   * of tokens can be reused.\n   */\n  ObjectVector m_tokenQueue = new ObjectVector(MAXTOKENQUEUESIZE, BLOCKTOKENQUEUESIZE);\n\n  /**\n   * Get the XPath as a list of tokens.\n   *\n   * @return ObjectVector of tokens.\n   */\n  public ObjectVector getTokenQueue()\n  {\n    return m_tokenQueue;\n  }\n\n  /**\n   * Get the XPath as a list of tokens.\n   *\n   * @param pos index into token queue.\n   *\n   * @return The token, normally a string.\n   */\n  public Object getToken(int pos)\n  {\n    return m_tokenQueue.elementAt(pos);\n  }\n\n  /**\n   * The current size of the token queue.\n   */\n\n  /**\n    * Get size of the token queue.\n   *\n   * @return The size of the token queue.\n   */\n  public int getTokenQueueSize()\n  {\n    return m_tokenQueue.size();\n    \n  }\n\n  /**\n   * An operations map is used instead of a proper parse tree.  It contains\n   * operations codes and indexes into the m_tokenQueue.\n   * I use an array instead of a full parse tree in order to cut down\n   * on the number of objects created.\n   */\n  OpMapVector m_opMap = null;\n\n  /**\n    * Get the opcode list that describes the XPath operations.  It contains\n   * operations codes and indexes into the m_tokenQueue.\n   * I use an array instead of a full parse tree in order to cut down\n   * on the number of objects created.\n   *\n   * @return An IntVector that is the opcode list that describes the XPath operations.\n   */\n  public OpMapVector getOpMap()\n  {\n    return m_opMap;\n  }\n\n\n  /**\n   * The length is always the opcode position + 1.\n   * Length is always expressed as the opcode+length bytes,\n   * so it is always 2 or greater.\n   */\n  public static final int MAPINDEX_LENGTH = 1;\n\n  /**\n   * Replace the large arrays\n   * with a small array.\n   */\n  void shrink()\n  {\n\n    int n = m_opMap.elementAt(MAPINDEX_LENGTH);\n    m_opMap.setToSize(n + 4);\n\n    m_opMap.setElementAt(0,n);\n    m_opMap.setElementAt(0,n+1);\n    m_opMap.setElementAt(0,n+2);\n\n\n    n = m_tokenQueue.size();\n    m_tokenQueue.setToSize(n + 4);\n\n    m_tokenQueue.setElementAt(null,n);\n    m_tokenQueue.setElementAt(null,n + 1);\n    m_tokenQueue.setElementAt(null,n + 2);\n  }\n\n  /**\n  * Given an operation position, return the current op.\n   *\n   * @param opPos index into op map.\n   * @return the op that corresponds to the opPos argument.\n   */\n  public int getOp(int opPos)\n  {\n    return m_opMap.elementAt(opPos);\n  }\n\n  /**\n  * Set the op at index to the given int.\n   *\n   * @param opPos index into op map.\n   * @param value Value to set\n   */\n  public void setOp(int opPos, int value)\n  {\n     m_opMap.setElementAt(value,opPos);\n  }\n  \n  /**\n   * Given an operation position, return the end position, i.e. the\n   * beginning of the next operation.\n   *\n   * @param opPos An op position of an operation for which there is a size \n   *              entry following.\n   * @return position of next operation in m_opMap.\n   */\n  public int getNextOpPos(int opPos)\n  {\n    return opPos + m_opMap.elementAt(opPos + 1);\n  }\n\n  /**\n   * Given a location step position, return the end position, i.e. the\n   * beginning of the next step.\n   *\n   * @param opPos the position of a location step.\n   * @return the position of the next location step.\n   */\n  public int getNextStepPos(int opPos)\n  {\n\n    int stepType = getOp(opPos);\n\n    if ((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES))\n    {\n      return getNextOpPos(opPos);\n    }\n    else if ((stepType >= OpCodes.FIRST_NODESET_OP)\n             && (stepType <= OpCodes.LAST_NODESET_OP))\n    {\n      int newOpPos = getNextOpPos(opPos);\n\n      while (OpCodes.OP_PREDICATE == getOp(newOpPos))\n      {\n        newOpPos = getNextOpPos(newOpPos);\n      }\n\n      stepType = getOp(newOpPos);\n\n      if (!((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES)))\n      {\n        return OpCodes.ENDOP;\n      }\n\n      return newOpPos;\n    }\n    else\n    {\n      throw new RuntimeException(\n        XSLMessages.createXPATHMessage(XPATHErrorResources.ER_UNKNOWN_STEP, new Object[]{new Integer(stepType).toString()})); \n    }\n  }\n\n  /**\n   * Given an operation position, return the end position, i.e. the\n   * beginning of the next operation.\n   *\n   * @param opMap The operations map.\n   * @param opPos index to operation, for which there is a size entry following.\n   * @return position of next operation in m_opMap.\n   */\n  public static int getNextOpPos(int[] opMap, int opPos)\n  {\n    return opPos + opMap[opPos + 1];\n  }\n\n  /**\n   * Given an FROM_stepType position, return the position of the\n   * first predicate, if there is one, or else this will point\n   * to the end of the FROM_stepType.\n   * Example:\n   *  int posOfPredicate = xpath.getNextOpPos(stepPos);\n   *  boolean hasPredicates =\n   *            OpCodes.OP_PREDICATE == xpath.getOp(posOfPredicate);\n   *\n   * @param opPos position of FROM_stepType op. \n   * @return position of predicate in FROM_stepType structure.\n   */\n  public int getFirstPredicateOpPos(int opPos)\n     throws javax.xml.transform.TransformerException\n  {\n\n    int stepType = m_opMap.elementAt(opPos);\n\n    if ((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES))\n    {\n      return opPos + m_opMap.elementAt(opPos + 2);\n    }\n    else if ((stepType >= OpCodes.FIRST_NODESET_OP)\n             && (stepType <= OpCodes.LAST_NODESET_OP))\n    {\n      return opPos + m_opMap.elementAt(opPos + 1);\n    }\n    else if(-2 == stepType)\n    {\n      return -2;\n    }\n    else\n    {\n      error(org.apache.xpath.res.XPATHErrorResources.ER_UNKNOWN_OPCODE);\n      return -1;\n    }\n  }\n  \n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg An error msgkey that corresponds to one of the constants found \n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is \n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which \n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to \n   *                              throw an exception.\n   */\n  public void error(String msg, Object[] args) throws javax.xml.transform.TransformerException\n  {\n\n    java.lang.String fmsg = org.apache.xalan.res.XSLMessages.createXPATHMessage(msg, args);\n    \n\n    throw new javax.xml.transform.TransformerException(fmsg);\n  }\n\n\n  /**\n   * Go to the first child of a given operation.\n   *\n   * @param opPos position of operation.\n   *\n   * @return The position of the first child of the operation.\n   */\n  public static int getFirstChildPos(int opPos)\n  {\n    return opPos + 2;\n  }\n\n  /**\n   * Get the length of an operation.\n   *\n   * @param opPos The position of the operation in the op map.\n   *\n   * @return The size of the operation.\n   */\n  public int getArgLength(int opPos)\n  {\n    return m_opMap.elementAt(opPos + MAPINDEX_LENGTH);\n  }\n\n  /**\n   * Given a location step, get the length of that step.\n   *\n   * @param opPos Position of location step in op map.\n   *\n   * @return The length of the step.\n   */\n  public int getArgLengthOfStep(int opPos)\n  {\n    return m_opMap.elementAt(opPos + MAPINDEX_LENGTH + 1) - 3;\n  }\n\n  /**\n   * Get the first child position of a given location step.\n   *\n   * @param opPos Position of location step in the location map.\n   *\n   * @return The first child position of the step.\n   */\n  public static int getFirstChildPosOfStep(int opPos)\n  {\n    return opPos + 3;\n  }\n\n  /**\n   * Get the test type of the step, i.e. NODETYPE_XXX value.\n   * \n   * @param opPosOfStep The position of the FROM_XXX step.\n   *\n   * @return NODETYPE_XXX value.\n   */\n  public int getStepTestType(int opPosOfStep)\n  {\n  }\n\n  /**\n   * Get the namespace of the step.\n   * \n   * @param opPosOfStep The position of the FROM_XXX step.\n   *\n   * @return The step's namespace, NodeTest.WILD, or null for null namespace.\n   */\n  public String getStepNS(int opPosOfStep)\n  {\n\n    int argLenOfStep = getArgLengthOfStep(opPosOfStep);\n\n    if (argLenOfStep == 3)\n    {\n      int index = m_opMap.elementAt(opPosOfStep + 4);\n\n      if (index >= 0)\n        return (String) m_tokenQueue.elementAt(index);\n      else if (OpCodes.ELEMWILDCARD == index)\n        return NodeTest.WILD;\n      else\n        return null;\n    }\n    else\n      return null;\n  }\n\n  /**\n   * Get the local name of the step.\n   * @param opPosOfStep The position of the FROM_XXX step.\n   *\n   * @return OpCodes.EMPTY, OpCodes.ELEMWILDCARD, or the local name.\n   */\n  public String getStepLocalName(int opPosOfStep)\n  {\n\n    int argLenOfStep = getArgLengthOfStep(opPosOfStep);\n\n    int index;\n\n    switch (argLenOfStep)\n    {\n    case 0 :\n      index = OpCodes.EMPTY;\n      break;\n    case 1 :\n      index = OpCodes.ELEMWILDCARD;\n      break;\n    case 2 :\n      index = m_opMap.elementAt(opPosOfStep + 4);\n      break;\n    case 3 :\n      index = m_opMap.elementAt(opPosOfStep + 5);\n      break;\n    default :\n      index = OpCodes.EMPTY;\n    }\n\n    if (index >= 0)\n      return (String) m_tokenQueue.elementAt(index).toString();\n    else if (OpCodes.ELEMWILDCARD == index)\n      return NodeTest.WILD;\n    else\n      return null;", "functions": [{"function_name": "toString", "code": "  public String toString()\n  {\n    return m_currentPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPatternString", "code": "  public String getPatternString()\n  {\n    return m_currentPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTokenQueue", "code": "  public ObjectVector getTokenQueue()\n  {\n    return m_tokenQueue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getToken", "code": "  public Object getToken(int pos)\n  {\n    return m_tokenQueue.elementAt(pos);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTokenQueueSize", "code": "  public int getTokenQueueSize()\n  {\n    return m_tokenQueue.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOpMap", "code": "  public OpMapVector getOpMap()\n  {\n    return m_opMap;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "shrink", "code": "  void shrink()\n  {\n\n    int n = m_opMap.elementAt(MAPINDEX_LENGTH);\n    m_opMap.setToSize(n + 4);\n\n    m_opMap.setElementAt(0,n);\n    m_opMap.setElementAt(0,n+1);\n    m_opMap.setElementAt(0,n+2);\n\n\n    n = m_tokenQueue.size();\n    m_tokenQueue.setToSize(n + 4);\n\n    m_tokenQueue.setElementAt(null,n);\n    m_tokenQueue.setElementAt(null,n + 1);\n    m_tokenQueue.setElementAt(null,n + 2);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [2, 12], [3, 13], [3, 14], [4, 15], [5, 16], [6, 17], [7, 18], [7, 19], [8, 20], [8, 21], [9, 22], [10, 23], [1, 24], [11, 25], [13, 26], [16, 27], [18, 28], [20, 29], [23, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 2], [13, 3], [14, 3], [15, 4], [16, 5], [17, 6], [18, 7], [19, 7], [20, 8], [21, 8], [22, 9], [23, 10], [24, 1], [25, 11], [26, 13], [27, 16], [28, 18], [29, 20], [30, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getOp", "code": "  public int getOp(int opPos)\n  {\n    return m_opMap.elementAt(opPos);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setOp", "code": "  public void setOp(int opPos, int value)\n  {\n     m_opMap.setElementAt(value,opPos);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNextOpPos", "code": "  public int getNextOpPos(int opPos)\n  {\n    return opPos + m_opMap.elementAt(opPos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNextStepPos", "code": "  public int getNextStepPos(int opPos)\n  {\n\n    int stepType = getOp(opPos);\n\n    if ((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES))\n    {\n      return getNextOpPos(opPos);\n    }\n    else if ((stepType >= OpCodes.FIRST_NODESET_OP)\n             && (stepType <= OpCodes.LAST_NODESET_OP))\n    {\n      int newOpPos = getNextOpPos(opPos);\n\n      while (OpCodes.OP_PREDICATE == getOp(newOpPos))\n      {\n        newOpPos = getNextOpPos(newOpPos);\n      }\n\n      stepType = getOp(newOpPos);\n\n      if (!((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES)))\n      {\n        return OpCodes.ENDOP;\n      }\n\n      return newOpPos;\n    }\n    else\n    {\n      throw new RuntimeException(\n        XSLMessages.createXPATHMessage(XPATHErrorResources.ER_UNKNOWN_STEP, new Object[]{new Integer(stepType).toString()})); ", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "RETURN", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [5, 9], [2, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [6, 16], [6, 17], [7, 18], [11, 19], [13, 20], [4, 21], [14, 22], [19, 23], [13, 24], [20, 25], [20, 26], [21, 27], [22, 28], [15, 29], [14, 30], [30, 31], [23, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 5], [10, 2], [11, 4], [12, 4], [13, 4], [14, 4], [15, 4], [16, 6], [17, 6], [18, 7], [19, 11], [20, 13], [21, 4], [22, 14], [23, 19], [24, 13], [25, 20], [26, 20], [27, 21], [28, 22], [29, 15], [30, 14], [31, 30], [32, 23], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getNextOpPos", "code": "  public static int getNextOpPos(int[] opMap, int opPos)\n  {\n    return opPos + opMap[opPos + 1];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getFirstPredicateOpPos", "code": "  public int getFirstPredicateOpPos(int opPos)\n     throws javax.xml.transform.TransformerException\n  {\n\n    int stepType = m_opMap.elementAt(opPos);\n\n    if ((stepType >= OpCodes.AXES_START_TYPES)\n            && (stepType <= OpCodes.AXES_END_TYPES))\n    {\n      return opPos + m_opMap.elementAt(opPos + 2);\n    }\n    else if ((stepType >= OpCodes.FIRST_NODESET_OP)\n             && (stepType <= OpCodes.LAST_NODESET_OP))\n    {\n      return opPos + m_opMap.elementAt(opPos + 1);\n    }\n    else if(-2 == stepType)\n    {\n      return -2;\n    }\n    else\n    {\n      error(org.apache.xpath.res.XPATHErrorResources.ER_UNKNOWN_OPCODE);\n      return -1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [5, 9], [5, 10], [2, 11], [6, 12], [4, 13], [7, 14], [7, 15], [8, 16], [6, 17], [6, 18], [12, 19], [13, 20], [16, 21], [17, 22], [6, 23], [18, 24], [20, 25], [21, 26], [25, 27], [26, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 5], [10, 5], [11, 2], [12, 6], [13, 4], [14, 7], [15, 7], [16, 8], [17, 6], [18, 6], [19, 12], [20, 13], [21, 16], [22, 17], [23, 6], [24, 18], [25, 20], [26, 21], [27, 25], [28, 26], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "error", "code": "  public void error(String msg, Object[] args) throws javax.xml.transform.TransformerException\n  {\n\n    java.lang.String fmsg = org.apache.xalan.res.XSLMessages.createXPATHMessage(msg, args);\n    \n\n    throw new javax.xml.transform.TransformerException(fmsg);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getFirstChildPos", "code": "  public static int getFirstChildPos(int opPos)\n  {\n    return opPos + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getArgLength", "code": "  public int getArgLength(int opPos)\n  {\n    return m_opMap.elementAt(opPos + MAPINDEX_LENGTH);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getArgLengthOfStep", "code": "  public int getArgLengthOfStep(int opPos)\n  {\n    return m_opMap.elementAt(opPos + MAPINDEX_LENGTH + 1) - 3;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getFirstChildPosOfStep", "code": "  public static int getFirstChildPosOfStep(int opPos)\n  {\n    return opPos + 3;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getStepTestType", "code": "  public int getStepTestType(int opPosOfStep)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStepNS", "code": "  public String getStepNS(int opPosOfStep)\n  {\n\n    int argLenOfStep = getArgLengthOfStep(opPosOfStep);\n\n    if (argLenOfStep == 3)\n    {\n      int index = m_opMap.elementAt(opPosOfStep + 4);\n\n      if (index >= 0)\n        return (String) m_tokenQueue.elementAt(index);\n      else if (OpCodes.ELEMWILDCARD == index)\n        return NodeTest.WILD;\n      else\n        return null;\n    }\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [5, 9], [2, 10], [7, 11], [7, 12], [7, 13], [11, 14], [11, 15], [11, 16], [13, 17], [8, 18], [14, 19], [12, 20], [18, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 5], [10, 2], [11, 7], [12, 7], [13, 7], [14, 11], [15, 11], [16, 11], [17, 13], [18, 8], [19, 14], [20, 12], [21, 18], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getStepLocalName", "code": "  public String getStepLocalName(int opPosOfStep)\n  {\n\n    int argLenOfStep = getArgLengthOfStep(opPosOfStep);\n\n    int index;\n\n    switch (argLenOfStep)\n    {\n    case 0 :\n      index = OpCodes.EMPTY;\n      break;\n    case 1 :\n      index = OpCodes.ELEMWILDCARD;\n      break;\n    case 2 :\n      index = m_opMap.elementAt(opPosOfStep + 4);\n      break;\n    case 3 :\n      index = m_opMap.elementAt(opPosOfStep + 5);\n      break;\n    default :\n      index = OpCodes.EMPTY;\n    }\n\n    if (index >= 0)\n      return (String) m_tokenQueue.elementAt(index).toString();\n    else if (OpCodes.ELEMWILDCARD == index)\n      return NodeTest.WILD;\n    else\n      return null;", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [6, 10], [6, 11], [8, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [4, 21], [9, 22], [7, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [23, 29], [25, 30], [26, 31], [30, 32], [31, 33], [32, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 6], [11, 6], [12, 8], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 4], [22, 9], [23, 7], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 23], [30, 25], [31, 26], [32, 30], [33, 31], [34, 32], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}], "label": 0}
{"sample_id": "jedit-4.1-4023", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/search/SearchAndReplace.java", "language": "java", "name": "org.gjt.sp.jedit.search.SearchAndReplace", "code": "public class SearchAndReplace\n{\n\t//{{{ Getters and setters\n\n\t//{{{ setSearchString() method\n\t/**\n\t * Sets the current search string.\n\t * @param search The new search string\n\t */\n\tpublic static void setSearchString(String search)\n\t{\n\t\tif(search.equals(SearchAndReplace.search))\n\t\t\treturn;\n\n\t\tSearchAndReplace.search = search;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t} //}}}\n\n\t//{{{ getSearchString() method\n\t/**\n\t * Returns the current search string.\n\t */\n\tpublic static String getSearchString()\n\t{\n\t\treturn search;\n\t} //}}}\n\n\t//{{{ setReplaceString() method\n\t/**\n\t * Sets the current replacement string.\n\t * @param search The new replacement string\n\t */\n\tpublic static void setReplaceString(String replace)\n\t{\n\t\tif(replace.equals(SearchAndReplace.replace))\n\t\t\treturn;\n\n\t\tSearchAndReplace.replace = replace;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t} //}}}\n\n\t//{{{ getReplaceString() method\n\t/**\n\t * Returns the current replacement string.\n\t */\n\tpublic static String getReplaceString()\n\t{\n\t\treturn replace;\n\t} //}}}\n\n\t//{{{ setIgnoreCase() method\n\t/**\n\t * Sets the ignore case flag.\n\t * @param ignoreCase True if searches should be case insensitive,\n\t * false otherwise\n\t */\n\tpublic static void setIgnoreCase(boolean ignoreCase)\n\t{\n\t\tif(ignoreCase == SearchAndReplace.ignoreCase)\n\t\t\treturn;\n\n\t\tSearchAndReplace.ignoreCase = ignoreCase;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t} //}}}\n\n\t//{{{ getIgnoreCase() method\n\t/**\n\t * Returns the state of the ignore case flag.\n\t * @return True if searches should be case insensitive,\n\t * false otherwise\n\t */\n\tpublic static boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;\n\t} //}}}\n\n\t//{{{ setRegexp() method\n\t/**\n\t * Sets the state of the regular expression flag.\n\t * @param regexp True if regular expression searches should be\n\t * performed\n\t */\n\tpublic static void setRegexp(boolean regexp)\n\t{\n\t\tif(regexp == SearchAndReplace.regexp)\n\t\t\treturn;\n\n\t\tSearchAndReplace.regexp = regexp;\n\t\tif(regexp && reverse)\n\t\t\treverse = false;\n\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t} //}}}\n\n\t//{{{ getRegexp() method\n\t/**\n\t * Returns the state of the regular expression flag.\n\t * @return True if regular expression searches should be performed\n\t */\n\tpublic static boolean getRegexp()\n\t{\n\t\treturn regexp;\n\t} //}}}\n\n\t//{{{ setReverseSearch() method\n\t/**\n\t * Determines whether a reverse search will conducted from the current\n\t * position to the beginning of a buffer. Note that reverse search and\n\t * regular expression search is mutually exclusive; enabling one will\n\t * disable the other.\n\t * @param reverse True if searches should go backwards,\n\t * false otherwise\n\t */\n\tpublic static void setReverseSearch(boolean reverse)\n\t{\n\t\tif(reverse == SearchAndReplace.reverse)\n\t\t\treturn;\n\n\t\tSearchAndReplace.reverse = (regexp ? false : reverse);\n\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t} //}}}\n\n\t//{{{ getReverseSearch() method\n\t/**\n\t * Returns the state of the reverse search flag.\n\t * @return True if searches should go backwards,\n\t * false otherwise\n\t */\n\tpublic static boolean getReverseSearch()\n\t{\n\t\treturn reverse;\n\t} //}}}\n\n\t//{{{ setBeanShellReplace() method\n\t/**\n\t * Sets the state of the BeanShell replace flag.\n\t * @param regexp True if the replace string is a BeanShell expression\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static void setBeanShellReplace(boolean beanshell)\n\t{\n\t\tif(beanshell == SearchAndReplace.beanshell)\n\t\t\treturn;\n\n\t\tSearchAndReplace.beanshell = beanshell;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t} //}}}\n\n\t//{{{ getBeanShellReplace() method\n\t/**\n\t * Returns the state of the BeanShell replace flag.\n\t * @return True if the replace string is a BeanShell expression\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static boolean getBeanShellReplace()\n\t{\n\t\treturn beanshell;\n\t} //}}}\n\n\t//{{{ setAutoWrap() method\n\t/**\n\t * Sets the state of the auto wrap around flag.\n\t * @param wrap If true, the 'continue search from start' dialog\n\t * will not be displayed\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static void setAutoWrapAround(boolean wrap)\n\t{\n\t\tif(wrap == SearchAndReplace.wrap)\n\t\t\treturn;\n\n\t\tSearchAndReplace.wrap = wrap;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t} //}}}\n\n\t//{{{ getAutoWrap() method\n\t/**\n\t * Returns the state of the auto wrap around flag.\n\t * @param wrap If true, the 'continue search from start' dialog\n\t * will not be displayed\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static boolean getAutoWrapAround()\n\t{\n\t\treturn wrap;\n\t} //}}}\n\n\t//{{{ setSearchMatcher() method\n\t/**\n\t * Sets a custom search string matcher. Note that calling\n\t * {@link #setSearchString(String)}, {@link #setReplaceString(String)},\n\t * {@link #setIgnoreCase(boolean)}, {@link #setRegexp(boolean)},\n\t * {@link #setReverseSearch(boolean)} or\n\t * {@link #setBeanShellReplace(boolean)} will reset the matcher to the\n\t * default.\n\t */\n\tpublic static void setSearchMatcher(SearchMatcher matcher)\n\t{\n\t\tSearchAndReplace.matcher = matcher;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t} //}}}\n\n\t//{{{ getSearchMatcher() method\n\t/**\n\t * Returns the current search string matcher.\n\t * @param reverseOK Replacement commands need a non-reversed matcher,\n\t * so they set this to false\n\t * @exception IllegalArgumentException if regular expression search\n\t * is enabled, the search string or replacement string is invalid\n\t * @since jEdit 4.1pre7\n\t */\n\tpublic static SearchMatcher getSearchMatcher()\n\t\tthrows Exception\n\t{\n\t\tif(matcher != null)\n\t\t\treturn matcher;\n\n\t\tif(search == null || \"\".equals(search))\n\t\t\treturn null;\n\n\t\t// replace must not be null\n\t\tString replace = (SearchAndReplace.replace == null ? \"\" : SearchAndReplace.replace);\n\n\t\tBshMethod replaceMethod;\n\t\tif(beanshell && replace.length() != 0)\n\t\t{\n\t\t\treplaceMethod = BeanShell.cacheBlock(\"replace\",\"return (\"\n\t\t\t\t+ replace + \");\",true);\n\t\t}\n\t\telse\n\t\t\treplaceMethod = null;\n\n\t\tif(regexp)\n\t\t\tmatcher = new RESearchMatcher(search,replace,ignoreCase,\n\t\t\t\tbeanshell,replaceMethod);\n\t\telse\n\t\t{\n\t\t\tmatcher = new BoyerMooreSearchMatcher(search,replace,\n\t\t\t\tignoreCase,beanshell,replaceMethod);\n\t\t}\n\n\t\treturn matcher;\n\t} //}}}\n\n\t//{{{ setSearchFileSet() method\n\t/**\n\t * Sets the current search file set.\n\t * @param fileset The file set to perform searches in\n\t * @see AllBufferSet\n\t * @see CurrentBufferSet\n\t * @see DirectoryListSet\n\t */\n\tpublic static void setSearchFileSet(SearchFileSet fileset)\n\t{\n\t\tSearchAndReplace.fileset = fileset;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t} //}}}\n\n\t//{{{ getSearchFileSet() method\n\t/**\n\t * Returns the current search file set.\n\t */\n\tpublic static SearchFileSet getSearchFileSet()\n\t{\n\t\treturn fileset;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Actions\n\n\t//{{{ hyperSearch() method\n\t/**\n\t * Performs a HyperSearch.\n\t * @param view The view\n\t * @since jEdit 2.7pre3\n\t */\n\tpublic static boolean hyperSearch(View view)\n\t{\n\t\treturn hyperSearch(view,false);\n\t} //}}}\n\n\t//{{{ hyperSearch() method\n\t/**\n\t * Performs a HyperSearch.\n\t * @param view The view\n\t * @param selection If true, will only search in the current selection.\n\t * Note that the file set must be the current buffer file set for this\n\t * to work.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static boolean hyperSearch(View view, boolean selection)\n\t{\n\t\t// component that will parent any dialog boxes\n\t\tComponent comp = SearchDialog.getSearchDialog(view);\n\t\tif(comp == null)\n\t\t\tcomp = view;\n\n\t\trecord(view,\"hyperSearch(view,\" + selection + \")\",false,\n\t\t\t!selection);\n\n\t\tview.getDockableWindowManager().addDockableWindow(\n\t\t\tHyperSearchResults.NAME);\n\t\tfinal HyperSearchResults results = (HyperSearchResults)\n\t\t\tview.getDockableWindowManager()\n\t\t\t.getDockable(HyperSearchResults.NAME);\n\t\tresults.searchStarted();\n\n\t\ttry\n\t\t{\n\t\t\tSearchMatcher matcher = getSearchMatcher();\n\t\t\tif(matcher == null)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\tresults.searchFailed();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tSelection[] s;\n\t\t\tif(selection)\n\t\t\t{\n\t\t\t\ts = view.getTextArea().getSelection();\n\t\t\t\tif(s == null)\n\t\t\t\t{\n\t\t\t\t\tresults.searchFailed();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\ts = null;\n\t\t\tVFSManager.runInWorkThread(new HyperSearchRequest(view,\n\t\t\t\tmatcher,results,s));\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tresults.searchFailed();\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(comp,\"searcherror\",args);\n\t\t\treturn false;\n\t\t}\n\t} //}}}\n\n\t//{{{ find() method\n\t/**\n\t * Finds the next occurance of the search string.\n\t * @param view The view\n\t * @return True if the operation was successful, false otherwise\n\t */\n\tpublic static boolean find(View view)\n\t{\n\t\t// component that will parent any dialog boxes\n\t\tComponent comp = SearchDialog.getSearchDialog(view);\n\t\tif(comp == null)\n\t\t\tcomp = view;\n\n\t\tboolean repeat = false;\n\t\tString path = fileset.getNextFile(view,null);\n\t\tif(path == null)\n\t\t{\n\t\t\tGUIUtilities.error(comp,\"empty-fileset\",null);\n\t\t\treturn false;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tSearchMatcher matcher = getSearchMatcher();\n\t\t\tif(matcher == null)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\trecord(view,\"find(view)\",false,true);\n\n\t\t\tview.showWaitCursor();\n\n\t\t\tboolean _reverse = reverse && fileset instanceof CurrentBufferSet;\n\nloop:\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\twhile(path != null)\n\t\t\t\t{\n\t\t\t\t\tBuffer buffer = jEdit.openTemporary(\n\t\t\t\t\t\tview,null,path,false);\n\n\t\t\t\t\t/* this is stupid and misleading.\n\t\t\t\t\t * but 'path' is not used anywhere except\n\t\t\t\t\t * the above line, and if this is done\n\t\t\t\t\t * after the 'continue', then we will\n\t\t\t\t\t * either hang, or be forced to duplicate\n\t\t\t\t\t * it inside the buffer == null, or add\n\t\t\t\t\t * a 'finally' clause. you decide which one's\n\t\t\t\t\t * worse. */\n\t\t\t\t\tpath = fileset.getNextFile(view,path);\n\n\t\t\t\t\tif(buffer == null)\n\t\t\t\t\t\tcontinue loop;\n\n\t\t\t\t\t// Wait for the buffer to load\n\t\t\t\t\tif(!buffer.isLoaded())\n\t\t\t\t\t\tVFSManager.waitForRequests();\n\n\t\t\t\t\tint start;\n\n\t\t\t\t\tif(view.getBuffer() == buffer && !repeat)\n\t\t\t\t\t{\n\t\t\t\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\t\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\t\t\t\ttextArea.getCaretPosition());\n\t\t\t\t\t\tif(s == null)\n\t\t\t\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\t\t\t\telse if(_reverse)\n\t\t\t\t\t\t\tstart = s.getStart();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tstart = s.getEnd();\n\t\t\t\t\t}\n\t\t\t\t\telse if(_reverse)\n\t\t\t\t\t\tstart = buffer.getLength();\n\t\t\t\t\telse\n\t\t\t\t\t\tstart = 0;\n\n\t\t\t\t\tif(find(view,buffer,start,repeat,_reverse))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tif(repeat)\n\t\t\t\t{\n\t\t\t\t\tif(!BeanShell.isScriptRunning())\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\t\tjEdit.getProperty(\"view.status.search-not-found\"));\n\n\t\t\t\t\t\tview.getToolkit().beep();\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tboolean restart;\n\n\t\t\t\tif(BeanShell.isScriptRunning())\n\t\t\t\t{\n\t\t\t\t\trestart = true;\n\t\t\t\t}\n\t\t\t\telse if(wrap)\n\t\t\t\t{\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\"view.status.auto-wrap\"));\n\t\t\t\t\t// beep if beep property set\n\t\t\t\t\tif(jEdit.getBooleanProperty(\"search.beepOnSearchAutoWrap\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getToolkit().beep();\n\t\t\t\t\t}\n\t\t\t\t\trestart = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tInteger[] args = { new Integer(_reverse ? 1 : 0) };\n\t\t\t\t\tint result = GUIUtilities.confirm(comp,\n\t\t\t\t\t\t\"keepsearching\",args,\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\trestart = (result == JOptionPane.YES_OPTION);\n\t\t\t\t}\n\n\t\t\t\tif(restart)\n\t\t\t\t{\n\t\t\t\t\t// start search from beginning\n\t\t\t\t\tpath = fileset.getFirstFile(view);\n\t\t\t\t\trepeat = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tbreak loop;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(comp,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ find() method\n\t/**\n\t * Finds the next instance of the search string in the specified\n\t * buffer.\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @param start Location where to start the search\n\t */\n\tpublic static boolean find(View view, Buffer buffer, int start)\n\t\tthrows Exception\n\t{\n\t\treturn find(view,buffer,start,false,false);\n\t} //}}}\n\n\t//{{{ find() method\n\t/**\n\t * Finds the next instance of the search string in the specified\n\t * buffer.\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @param start Location where to start the search\n\t * @param firstTime See {@link SearchMatcher#nextMatch(CharIndexed,\n\t * boolean,boolean,boolean,boolean)}.\n\t * @since jEdit 4.1pre7\n\t */\n\tpublic static boolean find(View view, Buffer buffer, int start,\n\t\tboolean firstTime, boolean reverse) throws Exception\n\t{\n\t\tSearchMatcher matcher = getSearchMatcher();\n\t\tif(matcher == null)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t}\n\n\t\tSegment text = new Segment();\n\t\tif(reverse)\n\t\t\tbuffer.getText(0,start,text);\n\t\telse\n\t\t\tbuffer.getText(start,buffer.getLength() - start,text);\n\n\t\t// the start and end flags will be wrong with reverse search enabled,\n\t\t// but they are only used by the regexp matcher, which doesn't\n\t\t// support reverse search yet.\n\t\t//\n\t\t// REMIND: fix flags when adding reverse regexp search.\n\t\tint[] match = matcher.nextMatch(new CharIndexedSegment(text,reverse),\n\t\t\tstart == 0,true,firstTime,reverse);\n\n\t\tif(match != null)\n\t\t{\n\t\t\tjEdit.commitTemporary(buffer);\n\t\t\tview.setBuffer(buffer);\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\t\tif(reverse)\n\t\t\t{\n\t\t\t\ttextArea.setSelection(new Selection.Range(\n\t\t\t\t\tstart - match[1],\n\t\t\t\t\tstart - match[0]));\n\t\t\t\ttextArea.moveCaretPosition(start - match[1]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttextArea.setSelection(new Selection.Range(\n\t\t\t\t\tstart + match[0],\n\t\t\t\t\tstart + match[1]));\n\t\t\t\ttextArea.moveCaretPosition(start + match[1]);\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t} //}}}\n\n\t//{{{ replace() method\n\t/**\n\t * Replaces the current selection with the replacement string.\n\t * @param view The view\n\t * @return True if the operation was successful, false otherwise\n\t */\n\tpublic static boolean replace(View view)\n\t{\n\t\t// component that will parent any dialog boxes\n\t\tComponent comp = SearchDialog.getSearchDialog(view);\n\t\tif(comp == null)\n\t\t\tcomp = view;\n\n\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\tBuffer buffer = view.getBuffer();\n\t\tif(!buffer.isEditable())\n\t\t\treturn false;\n\n\t\tboolean smartCaseReplace = (replace != null\n\t\t\t&& TextUtilities.getStringCase(replace)\n\t\t\t== TextUtilities.LOWER_CASE);\n\n\t\tSelection[] selection = textArea.getSelection();\n\t\tif(selection.length == 0)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t}\n\n\t\trecord(view,\"replace(view)\",true,false);\n\n\t\t// a little hack for reverse replace and find\n\t\tint caret = textArea.getCaretPosition();\n\t\tSelection s = textArea.getSelectionAtOffset(caret);\n\t\tif(s != null)\n\t\t\tcaret = s.getStart();\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tSearchMatcher matcher = getSearchMatcher();\n\t\t\tif(matcher == null)\n\t\t\t\treturn false;\n\n\t\t\tint retVal = 0;\n\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\ts = selection[i];\n\n\t\t\t\t/* if an occurence occurs at the\n\t\t\t\tbeginning of the selection, the\n\t\t\t\tselection start will get moved.\n\t\t\t\tthis sucks, so we hack to avoid it. */\n\t\t\t\tint start = s.getStart();\n\n\t\t\t\tif(s instanceof Selection.Range)\n\t\t\t\t{\n\t\t\t\t\tretVal += _replace(view,buffer,matcher,\n\t\t\t\t\t\ts.getStart(),s.getEnd(),\n\t\t\t\t\t\tsmartCaseReplace);\n\n\t\t\t\t\ttextArea.removeFromSelection(s);\n\t\t\t\t\ttextArea.addToSelection(new Selection.Range(\n\t\t\t\t\t\tstart,s.getEnd()));\n\t\t\t\t}\n\t\t\t\telse if(s instanceof Selection.Rect)\n\t\t\t\t{\n\t\t\t\t\tfor(int j = s.getStartLine(); j <= s.getEndLine(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tretVal += _replace(view,buffer,matcher,\n\t\t\t\t\t\t\ts.getStart(buffer,j),s.getEnd(buffer,j),\n\t\t\t\t\t\t\tsmartCaseReplace);\n\t\t\t\t\t}\n\t\t\t\t\ttextArea.addToSelection(new Selection.Rect(\n\t\t\t\t\t\tstart,s.getEnd()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(reverse)\n\t\t\t{\n\t\t\t\t// so that Replace and Find continues from\n\t\t\t\t// the right location\n\t\t\t\ttextArea.moveCaretPosition(caret);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ts = textArea.getSelectionAtOffset(\n\t\t\t\t\ttextArea.getCaretPosition());\n\t\t\t\tif(s != null)\n\t\t\t\t\ttextArea.moveCaretPosition(s.getEnd());\n\t\t\t}\n\n\t\t\tif(retVal == 0)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(comp,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ replace() method\n\t/**\n\t * Replaces text in the specified range with the replacement string.\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @param start The start offset\n\t * @param end The end offset\n\t * @return True if the operation was successful, false otherwise\n\t */\n\tpublic static boolean replace(View view, Buffer buffer, int start, int end)\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\treturn false;\n\n\t\t// component that will parent any dialog boxes\n\t\tComponent comp = SearchDialog.getSearchDialog(view);\n\t\tif(comp == null)\n\t\t\tcomp = view;\n\n\t\tboolean smartCaseReplace = (replace != null\n\t\t\t&& TextUtilities.getStringCase(replace)\n\t\t\t== TextUtilities.LOWER_CASE);\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tSearchMatcher matcher = getSearchMatcher();\n\t\t\tif(matcher == null)\n\t\t\t\treturn false;\n\n\t\t\tint retVal = 0;\n\n\t\t\tretVal += _replace(view,buffer,matcher,start,end,\n\t\t\t\tsmartCaseReplace);\n\n\t\t\tif(retVal != 0)\n\t\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(comp,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ replaceAll() method\n\t/**\n\t * Replaces all occurances of the search string with the replacement\n\t * string.\n\t * @param view The view\n\t */\n\tpublic static boolean replaceAll(View view)\n\t{\n\t\t// component that will parent any dialog boxes\n\t\tComponent comp = SearchDialog.getSearchDialog(view);\n\t\tif(comp == null)\n\t\t\tcomp = view;\n\n\t\tint fileCount = 0;\n\t\tint occurCount = 0;\n\n\t\tif(fileset.getFileCount(view) == 0)\n\t\t{\n\t\t\tGUIUtilities.error(comp,\"empty-fileset\",null);\n\t\t\treturn false;\n\t\t}\n\n\t\trecord(view,\"replaceAll(view)\",true,true);\n\n\t\tview.showWaitCursor();\n\n\t\tboolean smartCaseReplace = (replace != null\n\t\t\t&& TextUtilities.getStringCase(replace)\n\t\t\t== TextUtilities.LOWER_CASE);\n\n\t\ttry\n\t\t{\n\t\t\tSearchMatcher matcher = getSearchMatcher();\n\t\t\tif(matcher == null)\n\t\t\t\treturn false;\n\n\t\t\tString path = fileset.getFirstFile(view);\nloop:\t\t\twhile(path != null)\n\t\t\t{\n\t\t\t\tBuffer buffer = jEdit.openTemporary(\n\t\t\t\t\tview,null,path,false);\n\n\t\t\t\t/* this is stupid and misleading.\n\t\t\t\t * but 'path' is not used anywhere except\n\t\t\t\t * the above line, and if this is done\n\t\t\t\t * after the 'continue', then we will\n\t\t\t\t * either hang, or be forced to duplicate\n\t\t\t\t * it inside the buffer == null, or add\n\t\t\t\t * a 'finally' clause. you decide which one's\n\t\t\t\t * worse. */\n\t\t\t\tpath = fileset.getNextFile(view,path);\n\n\t\t\t\tif(buffer == null)\n\t\t\t\t\tcontinue loop;\n\n\t\t\t\t// Wait for buffer to finish loading\n\t\t\t\tif(buffer.isPerformingIO())\n\t\t\t\t\tVFSManager.waitForRequests();\n\n\t\t\t\tif(!buffer.isEditable())\n\t\t\t\t\tcontinue loop;\n\n\t\t\t\t// Leave buffer in a consistent state if\n\t\t\t\t// an error occurs\n\t\t\t\tint retVal = 0;\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tbuffer.beginCompoundEdit();\n\t\t\t\t\tretVal = _replace(view,buffer,matcher,\n\t\t\t\t\t\t0,buffer.getLength(),\n\t\t\t\t\t\tsmartCaseReplace);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t\t}\n\n\t\t\t\tif(retVal != 0)\n\t\t\t\t{\n\t\t\t\t\tfileCount++;\n\t\t\t\t\toccurCount += retVal;\n\t\t\t\t\tjEdit.commitTemporary(buffer);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(comp,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\t/* Don't do this when playing a macro, cos it's annoying */\n\t\tif(!BeanShell.isScriptRunning())\n\t\t{\n\t\t\tObject[] args = { new Integer(occurCount),\n\t\t\t\tnew Integer(fileCount) };\n\t\t\tview.getStatus().setMessageAndClear(jEdit.getProperty(\n\t\t\t\t\"view.status.replace-all\",args));\n\t\t\tif(occurCount == 0)\n\t\t\t\tview.getToolkit().beep();\n\t\t}\n\n\t\treturn (fileCount != 0);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ load() method\n\t/**\n\t * Loads search and replace state from the properties.\n\t */\n\tpublic static void load()\n\t{\n\t\tsearch = jEdit.getProperty(\"search.find.value\");\n\t\treplace = jEdit.getProperty(\"search.replace.value\");\n\t\tignoreCase = jEdit.getBooleanProperty(\"search.ignoreCase.toggle\");\n\t\tregexp = jEdit.getBooleanProperty(\"search.regexp.toggle\");\n\t\tbeanshell = jEdit.getBooleanProperty(\"search.beanshell.toggle\");\n\t\twrap = jEdit.getBooleanProperty(\"search.wrap.toggle\");\n\n\t\tfileset = new CurrentBufferSet();\n\n\t\t// Tags plugin likes to call this method at times other than\n\t\t// startup; so we need to fire a SearchSettingsChanged to\n\t\t// notify the search bar and so on.\n\t\tmatcher = null;\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t} //}}}\n\n\t//{{{ save() method\n\t/**\n\t * Saves search and replace state to the properties.\n\t */\n\tpublic static void save()\n\t{\n\t\tjEdit.setProperty(\"search.find.value\",search);\n\t\tjEdit.setProperty(\"search.replace.value\",replace);\n\t\tjEdit.setBooleanProperty(\"search.ignoreCase.toggle\",ignoreCase);\n\t\tjEdit.setBooleanProperty(\"search.regexp.toggle\",regexp);\n\t\tjEdit.setBooleanProperty(\"search.beanshell.toggle\",beanshell);\n\t\tjEdit.setBooleanProperty(\"search.wrap.toggle\",wrap);\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate static String search;\n\tprivate static String replace;\n\tprivate static boolean regexp;\n\tprivate static boolean ignoreCase;\n\tprivate static boolean reverse;\n\tprivate static boolean beanshell;\n\tprivate static boolean wrap;\n\tprivate static SearchMatcher matcher;\n\tprivate static SearchFileSet fileset;\n\t//}}}\n\n\t//{{{ record() method\n\tprivate static void record(View view, String action,\n\t\tboolean replaceAction, boolean recordFileSet)\n\t{\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\tif(recorder != null)\n\t\t{\n\t\t\trecorder.record(\"SearchAndReplace.setSearchString(\\\"\"\n\t\t\t\t+ MiscUtilities.charsToEscapes(search) + \"\\\");\");\n\n\t\t\tif(replaceAction)\n\t\t\t{\n\t\t\t\trecorder.record(\"SearchAndReplace.setReplaceString(\\\"\"\n\t\t\t\t\t+ MiscUtilities.charsToEscapes(replace) + \"\\\");\");\n\t\t\t\trecorder.record(\"SearchAndReplace.setBeanShellReplace(\"\n\t\t\t\t\t+ beanshell + \");\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// only record this if doing a find next\n\t\t\t\trecorder.record(\"SearchAndReplace.setAutoWrapAround(\"\n\t\t\t\t\t+ wrap + \");\");\n\t\t\t\trecorder.record(\"SearchAndReplace.setReverseSearch(\"\n\t\t\t\t\t+ reverse + \");\");\n\t\t\t}\n\n\t\t\trecorder.record(\"SearchAndReplace.setIgnoreCase(\"\n\t\t\t\t+ ignoreCase + \");\");\n\t\t\trecorder.record(\"SearchAndReplace.setRegexp(\"\n\t\t\t\t+ regexp + \");\");\n\n\t\t\tif(recordFileSet)\n\t\t\t{\n\t\t\t\trecorder.record(\"SearchAndReplace.setSearchFileSet(\"\n\t\t\t\t\t+ fileset.getCode() + \");\");\n\t\t\t}\n\n\t\t\trecorder.record(\"SearchAndReplace.\" + action + \";\");\n\t\t}\n\t} //}}}\n\n\t//{{{ _replace() method\n\t/**\n\t * Replaces all occurances of the search string with the replacement\n\t * string.\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @param start The start offset\n\t * @param end The end offset\n\t * @param matcher The search matcher to use\n\t * @param smartCaseReplace See user's guide\n\t * @return The number of occurrences replaced\n\t */\n\tprivate static int _replace(View view, Buffer buffer,\n\t\tSearchMatcher matcher, int start, int end,\n\t\tboolean smartCaseReplace)\n\t\tthrows Exception\n\t{\n\t\tint occurCount = 0;\n\n\t\tboolean endOfLine = (buffer.getLineEndOffset(\n\t\t\tbuffer.getLineOfOffset(end)) - 1 == end);\n\n\t\tSegment text = new Segment();\n\t\tint offset = start;\nloop:\t\tfor(int counter = 0; ; counter++)\n\t\t{\n\t\t\tbuffer.getText(offset,end - offset,text);\n\n\t\t\tboolean startOfLine = (buffer.getLineStartOffset(\n\t\t\t\tbuffer.getLineOfOffset(offset)) == offset);\n\n\t\t\tint[] occur = matcher.nextMatch(\n\t\t\t\tnew CharIndexedSegment(text,false),\n\t\t\t\tstartOfLine,endOfLine,counter == 0,\n\t\t\t\tfalse);\n\t\t\tif(occur == null)\n\t\t\t\tbreak loop;\n\t\t\tint _start = occur[0];\n\t\t\tint _length = occur[1] - occur[0];\n\n\t\t\tString found = new String(text.array,text.offset + _start,_length);\n\t\t\tString subst = matcher.substitute(found);\n\t\t\tif(smartCaseReplace && ignoreCase)\n\t\t\t{\n\t\t\t\tint strCase = TextUtilities.getStringCase(found);\n\t\t\t\tif(strCase == TextUtilities.LOWER_CASE)\n\t\t\t\t\tsubst = subst.toLowerCase();\n\t\t\t\telse if(strCase == TextUtilities.UPPER_CASE)\n\t\t\t\t\tsubst = subst.toUpperCase();\n\t\t\t\telse if(strCase == TextUtilities.TITLE_CASE)\n\t\t\t\t\tsubst = TextUtilities.toTitleCase(subst);\n\t\t\t}\n\n\t\t\tif(subst != null)\n\t\t\t{\n\t\t\t\tbuffer.remove(offset + _start,_length);\n\t\t\t\tbuffer.insert(offset + _start,subst);\n\t\t\t\toccurCount++;\n\t\t\t\toffset += _start + subst.length();\n\n\t\t\t\tend += (subst.length() - found.length());\n\t\t\t}\n\t\t\telse\n\t\t\t\toffset += _start + _length;\n\t\t}\n\n\t\treturn occurCount;", "functions": [{"function_name": "setSearchString", "code": "\tpublic static void setSearchString(String search)\n\t{\n\t\tif(search.equals(SearchAndReplace.search))\n\t\t\treturn;\n\n\t\tSearchAndReplace.search = search;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getSearchString", "code": "\tpublic static String getSearchString()\n\t{\n\t\treturn search;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplaceString", "code": "\tpublic static void setReplaceString(String replace)\n\t{\n\t\tif(replace.equals(SearchAndReplace.replace))\n\t\t\treturn;\n\n\t\tSearchAndReplace.replace = replace;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getReplaceString", "code": "\tpublic static String getReplaceString()\n\t{\n\t\treturn replace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreCase", "code": "\tpublic static void setIgnoreCase(boolean ignoreCase)\n\t{\n\t\tif(ignoreCase == SearchAndReplace.ignoreCase)\n\t\t\treturn;\n\n\t\tSearchAndReplace.ignoreCase = ignoreCase;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getIgnoreCase", "code": "\tpublic static boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRegexp", "code": "\tpublic static void setRegexp(boolean regexp)\n\t{\n\t\tif(regexp == SearchAndReplace.regexp)\n\t\t\treturn;\n\n\t\tSearchAndReplace.regexp = regexp;\n\t\tif(regexp && reverse)\n\t\t\treverse = false;\n\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [2, 9], [4, 10], [5, 11], [1, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 2], [10, 4], [11, 5], [12, 1], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRegexp", "code": "\tpublic static boolean getRegexp()\n\t{\n\t\treturn regexp;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReverseSearch", "code": "\tpublic static void setReverseSearch(boolean reverse)\n\t{\n\t\tif(reverse == SearchAndReplace.reverse)\n\t\t\treturn;\n\n\t\tSearchAndReplace.reverse = (regexp ? false : reverse);\n\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [5, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 5], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getReverseSearch", "code": "\tpublic static boolean getReverseSearch()\n\t{\n\t\treturn reverse;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBeanShellReplace", "code": "\tpublic static void setBeanShellReplace(boolean beanshell)\n\t{\n\t\tif(beanshell == SearchAndReplace.beanshell)\n\t\t\treturn;\n\n\t\tSearchAndReplace.beanshell = beanshell;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getBeanShellReplace", "code": "\tpublic static boolean getBeanShellReplace()\n\t{\n\t\treturn beanshell;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoWrapAround", "code": "\tpublic static void setAutoWrapAround(boolean wrap)\n\t{\n\t\tif(wrap == SearchAndReplace.wrap)\n\t\t\treturn;\n\n\t\tSearchAndReplace.wrap = wrap;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [3, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 3], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getAutoWrapAround", "code": "\tpublic static boolean getAutoWrapAround()\n\t{\n\t\treturn wrap;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSearchMatcher", "code": "\tpublic static void setSearchMatcher(SearchMatcher matcher)\n\t{\n\t\tSearchAndReplace.matcher = matcher;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSearchMatcher", "code": "\tpublic static SearchMatcher getSearchMatcher()\n\t\tthrows Exception\n\t{\n\t\tif(matcher != null)\n\t\t\treturn matcher;\n\n\t\tif(search == null || \"\".equals(search))\n\t\t\treturn null;\n\n\t\t// replace must not be null\n\t\tString replace = (SearchAndReplace.replace == null ? \"\" : SearchAndReplace.replace);\n\n\t\tBshMethod replaceMethod;\n\t\tif(beanshell && replace.length() != 0)\n\t\t{\n\t\t\treplaceMethod = BeanShell.cacheBlock(\"replace\",\"return (\"\n\t\t\t\t+ replace + \");\",true);\n\t\t}\n\t\telse\n\t\t\treplaceMethod = null;\n\n\t\tif(regexp)\n\t\t\tmatcher = new RESearchMatcher(search,replace,ignoreCase,\n\t\t\t\tbeanshell,replaceMethod);\n\t\telse\n\t\t{\n\t\t\tmatcher = new BoyerMooreSearchMatcher(search,replace,\n\t\t\t\tignoreCase,beanshell,replaceMethod);\n\t\t}\n\n\t\treturn matcher;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [6, 9], [6, 10], [7, 11], [7, 12], [2, 13], [3, 14], [8, 15], [5, 16], [9, 17], [10, 18], [10, 19], [12, 20], [2, 21], [13, 22], [14, 23], [3, 24], [15, 25], [15, 26], [16, 27], [16, 28], [18, 29], [19, 30], [21, 31], [24, 32], [28, 33], [32, 34], [32, 35], [32, 36], [35, 37], [35, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 6], [10, 6], [11, 7], [12, 7], [13, 2], [14, 3], [15, 8], [16, 5], [17, 9], [18, 10], [19, 10], [20, 12], [21, 2], [22, 13], [23, 14], [24, 3], [25, 15], [26, 15], [27, 16], [28, 16], [29, 18], [30, 19], [31, 21], [32, 24], [33, 28], [34, 32], [35, 32], [36, 32], [37, 35], [38, 35], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "setSearchFileSet", "code": "\tpublic static void setSearchFileSet(SearchFileSet fileset)\n\t{\n\t\tSearchAndReplace.fileset = fileset;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSearchFileSet", "code": "\tpublic static SearchFileSet getSearchFileSet()\n\t{\n\t\treturn fileset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hyperSearch", "code": "\tpublic static boolean hyperSearch(View view)\n\t{\n\t\treturn hyperSearch(view,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "hyperSearch", "code": "\tpublic static boolean hyperSearch(View view, boolean selection)\n\t{\n\t\t// component that will parent any dialog boxes\n\t\tComponent comp = SearchDialog.getSearchDialog(view);\n\t\tif(comp == null)\n\t\t\tcomp = view;\n\n\t\trecord(view,\"hyperSearch(view,\" + selection + \")\",false,\n\t\t\t!selection);\n\n\t\tview.getDockableWindowManager().addDockableWindow(\n\t\t\tHyperSearchResults.NAME);\n\t\tfinal HyperSearchResults results = (HyperSearchResults)\n\t\t\tview.getDockableWindowManager()\n\t\t\t.getDockable(HyperSearchResults.NAME);\n\t\tresults.searchStarted();\n\n\t\ttry\n\t\t{\n\t\t\tSearchMatcher matcher = getSearchMatcher();\n\t\t\tif(matcher == null)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\tresults.searchFailed();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tSelection[] s;\n\t\t\tif(selection)\n\t\t\t{\n\t\t\t\ts = view.getTextArea().getSelection();\n\t\t\t\tif(s == null)\n\t\t\t\t{\n\t\t\t\t\tresults.searchFailed();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\ts = null;\n\t\t\tVFSManager.runInWorkThread(new HyperSearchRequest(view,\n\t\t\t\tmatcher,results,s));\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tresults.searchFailed();\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(comp,\"searcherror\",args);\n\t\t\treturn false;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [0, 13], [0, 14], [0, 15], [3, 16], [7, 17], [7, 18], [7, 19], [8, 20], [1, 21], [11, 22], [14, 23], [15, 24], [15, 25], [3, 26], [16, 27], [4, 28], [17, 29], [7, 30], [18, 31], [7, 32], [7, 33], [21, 34], [9, 35], [9, 36], [11, 37], [22, 38], [12, 39], [2, 40], [25, 41], [25, 42], [30, 43], [18, 44], [31, 45], [35, 46], [36, 47], [9, 48], [37, 49], [11, 50], [11, 51], [40, 52], [42, 53], [44, 54], [19, 55], [36, 56], [47, 57], [48, 58], [51, 59], [31, 60], [56, 61], [36, 62], [58, 63], [44, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 0], [14, 0], [15, 0], [16, 3], [17, 7], [18, 7], [19, 7], [20, 8], [21, 1], [22, 11], [23, 14], [24, 15], [25, 15], [26, 3], [27, 16], [28, 4], [29, 17], [30, 7], [31, 18], [32, 7], [33, 7], [34, 21], [35, 9], [36, 9], [37, 11], [38, 22], [39, 12], [40, 2], [41, 25], [42, 25], [43, 30], [44, 18], [45, 31], [46, 35], [47, 36], [48, 9], [49, 37], [50, 11], [51, 11], [52, 40], [53, 42], [54, 44], [55, 19], [56, 36], [57, 47], [58, 48], [59, 51], [60, 31], [61, 56], [62, 36], [63, 58], [64, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "find", "code": "\tpublic static boolean find(View view)\n\t{\n\t\t// component that will parent any dialog boxes\n\t\tComponent comp = SearchDialog.getSearchDialog(view);\n\t\tif(comp == null)\n\t\t\tcomp = view;\n\n\t\tboolean repeat = false;\n\t\tString path = fileset.getNextFile(view,null);\n\t\tif(path == null)\n\t\t{\n\t\t\tGUIUtilities.error(comp,\"empty-fileset\",null);\n\t\t\treturn false;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tSearchMatcher matcher = getSearchMatcher();\n\t\t\tif(matcher == null)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\trecord(view,\"find(view)\",false,true);\n\n\t\t\tview.showWaitCursor();\n\n\t\t\tboolean _reverse = reverse && fileset instanceof CurrentBufferSet;\n\nloop:\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\twhile(path != null)\n\t\t\t\t{\n\t\t\t\t\tBuffer buffer = jEdit.openTemporary(\n\t\t\t\t\t\tview,null,path,false);\n\n\t\t\t\t\t/* this is stupid and misleading.\n\t\t\t\t\t * but 'path' is not used anywhere except\n\t\t\t\t\t * the above line, and if this is done\n\t\t\t\t\t * after the 'continue', then we will\n\t\t\t\t\t * either hang, or be forced to duplicate\n\t\t\t\t\t * it inside the buffer == null, or add\n\t\t\t\t\t * a 'finally' clause. you decide which one's\n\t\t\t\t\t * worse. */\n\t\t\t\t\tpath = fileset.getNextFile(view,path);\n\n\t\t\t\t\tif(buffer == null)\n\t\t\t\t\t\tcontinue loop;\n\n\t\t\t\t\t// Wait for the buffer to load\n\t\t\t\t\tif(!buffer.isLoaded())\n\t\t\t\t\t\tVFSManager.waitForRequests();\n\n\t\t\t\t\tint start;\n\n\t\t\t\t\tif(view.getBuffer() == buffer && !repeat)\n\t\t\t\t\t{\n\t\t\t\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\t\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\t\t\t\ttextArea.getCaretPosition());\n\t\t\t\t\t\tif(s == null)\n\t\t\t\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\t\t\t\telse if(_reverse)\n\t\t\t\t\t\t\tstart = s.getStart();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tstart = s.getEnd();\n\t\t\t\t\t}\n\t\t\t\t\telse if(_reverse)\n\t\t\t\t\t\tstart = buffer.getLength();\n\t\t\t\t\telse\n\t\t\t\t\t\tstart = 0;\n\n\t\t\t\t\tif(find(view,buffer,start,repeat,_reverse))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tif(repeat)\n\t\t\t\t{\n\t\t\t\t\tif(!BeanShell.isScriptRunning())\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\t\tjEdit.getProperty(\"view.status.search-not-found\"));\n\n\t\t\t\t\t\tview.getToolkit().beep();\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tboolean restart;\n\n\t\t\t\tif(BeanShell.isScriptRunning())\n\t\t\t\t{\n\t\t\t\t\trestart = true;\n\t\t\t\t}\n\t\t\t\telse if(wrap)\n\t\t\t\t{\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\"view.status.auto-wrap\"));\n\t\t\t\t\t// beep if beep property set\n\t\t\t\t\tif(jEdit.getBooleanProperty(\"search.beepOnSearchAutoWrap\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getToolkit().beep();\n\t\t\t\t\t}\n\t\t\t\t\trestart = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tInteger[] args = { new Integer(_reverse ? 1 : 0) };\n\t\t\t\t\tint result = GUIUtilities.confirm(comp,\n\t\t\t\t\t\t\"keepsearching\",args,\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\trestart = (result == JOptionPane.YES_OPTION);\n\t\t\t\t}\n\n\t\t\t\tif(restart)\n\t\t\t\t{\n\t\t\t\t\t// start search from beginning\n\t\t\t\t\tpath = fileset.getFirstFile(view);\n\t\t\t\t\trepeat = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tbreak loop;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(comp,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CATCH", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "IF", "VAR_DECL", "IF", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "VAR_DECL", "VAR_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "IF", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [3, 15], [6, 16], [2, 17], [10, 18], [10, 19], [2, 20], [2, 21], [13, 22], [3, 23], [15, 24], [4, 25], [5, 26], [6, 27], [16, 28], [7, 29], [10, 30], [18, 31], [10, 32], [11, 33], [11, 34], [11, 35], [11, 36], [11, 37], [12, 38], [21, 39], [21, 40], [21, 41], [13, 42], [22, 43], [14, 44], [23, 45], [3, 46], [25, 47], [30, 48], [18, 49], [31, 50], [33, 51], [34, 52], [34, 53], [37, 54], [38, 55], [42, 56], [13, 57], [46, 58], [46, 59], [49, 60], [19, 61], [36, 62], [36, 63], [37, 64], [37, 65], [37, 66], [37, 67], [37, 68], [37, 69], [54, 70], [57, 71], [31, 72], [33, 73], [33, 74], [52, 75], [52, 76], [52, 77], [34, 78], [62, 79], [63, 80], [64, 81], [64, 82], [65, 83], [65, 84], [67, 85], [68, 86], [68, 87], [37, 88], [49, 89], [73, 90], [74, 91], [52, 92], [52, 93], [77, 94], [52, 95], [78, 96], [81, 97], [65, 98], [65, 99], [65, 100], [84, 101], [67, 102], [87, 103], [88, 104], [69, 105], [92, 106], [75, 107], [93, 108], [94, 109], [95, 110], [63, 111], [63, 112], [83, 113], [83, 114], [98, 115], [98, 116], [101, 117], [105, 118], [105, 119], [107, 120], [76, 121], [77, 122], [110, 123], [111, 124], [112, 125], [113, 126], [114, 127], [98, 128], [116, 129], [99, 130], [100, 131], [121, 132], [122, 133], [123, 134], [125, 135], [115, 136], [115, 137], [128, 138], [130, 139], [132, 140], [132, 141], [135, 142], [136, 143], [137, 144], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 3], [16, 6], [17, 2], [18, 10], [19, 10], [20, 2], [21, 2], [22, 13], [23, 3], [24, 15], [25, 4], [26, 5], [27, 6], [28, 16], [29, 7], [30, 10], [31, 18], [32, 10], [33, 11], [34, 11], [35, 11], [36, 11], [37, 11], [38, 12], [39, 21], [40, 21], [41, 21], [42, 13], [43, 22], [44, 14], [45, 23], [46, 3], [47, 25], [48, 30], [49, 18], [50, 31], [51, 33], [52, 34], [53, 34], [54, 37], [55, 38], [56, 42], [57, 13], [58, 46], [59, 46], [60, 49], [61, 19], [62, 36], [63, 36], [64, 37], [65, 37], [66, 37], [67, 37], [68, 37], [69, 37], [70, 54], [71, 57], [72, 31], [73, 33], [74, 33], [75, 52], [76, 52], [77, 52], [78, 34], [79, 62], [80, 63], [81, 64], [82, 64], [83, 65], [84, 65], [85, 67], [86, 68], [87, 68], [88, 37], [89, 49], [90, 73], [91, 74], [92, 52], [93, 52], [94, 77], [95, 52], [96, 78], [97, 81], [98, 65], [99, 65], [100, 65], [101, 84], [102, 67], [103, 87], [104, 88], [105, 69], [106, 92], [107, 75], [108, 93], [109, 94], [110, 95], [111, 63], [112, 63], [113, 83], [114, 83], [115, 98], [116, 98], [117, 101], [118, 105], [119, 105], [120, 107], [121, 76], [122, 77], [123, 110], [124, 111], [125, 112], [126, 113], [127, 114], [128, 98], [129, 116], [130, 99], [131, 100], [132, 121], [133, 122], [134, 123], [135, 125], [136, 115], [137, 115], [138, 128], [139, 130], [140, 132], [141, 132], [142, 135], [143, 136], [144, 137], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144]]}, {"function_name": "find", "code": "\tpublic static boolean find(View view, Buffer buffer, int start)\n\t\tthrows Exception\n\t{\n\t\treturn find(view,buffer,start,false,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "find", "code": "\tpublic static boolean find(View view, Buffer buffer, int start,\n\t\tboolean firstTime, boolean reverse) throws Exception\n\t{\n\t\tSearchMatcher matcher = getSearchMatcher();\n\t\tif(matcher == null)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t}\n\n\t\tSegment text = new Segment();\n\t\tif(reverse)\n\t\t\tbuffer.getText(0,start,text);\n\t\telse\n\t\t\tbuffer.getText(start,buffer.getLength() - start,text);\n\n\t\t// the start and end flags will be wrong with reverse search enabled,\n\t\t// but they are only used by the regexp matcher, which doesn't\n\t\t// support reverse search yet.\n\t\t//\n\t\t// REMIND: fix flags when adding reverse regexp search.\n\t\tint[] match = matcher.nextMatch(new CharIndexedSegment(text,reverse),\n\t\t\tstart == 0,true,firstTime,reverse);\n\n\t\tif(match != null)\n\t\t{\n\t\t\tjEdit.commitTemporary(buffer);\n\t\t\tview.setBuffer(buffer);\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\t\tif(reverse)\n\t\t\t{\n\t\t\t\ttextArea.setSelection(new Selection.Range(\n\t\t\t\t\tstart - match[1],\n\t\t\t\t\tstart - match[0]));\n\t\t\t\ttextArea.moveCaretPosition(start - match[1]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttextArea.setSelection(new Selection.Range(\n\t\t\t\t\tstart + match[0],\n\t\t\t\t\tstart + match[1]));\n\t\t\t\ttextArea.moveCaretPosition(start + match[1]);\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [5, 14], [12, 15], [1, 16], [1, 17], [1, 18], [13, 19], [2, 20], [3, 21], [3, 22], [4, 23], [5, 24], [14, 25], [6, 26], [16, 27], [1, 28], [1, 29], [20, 30], [20, 31], [20, 32], [21, 33], [22, 34], [24, 35], [5, 36], [18, 37], [31, 38], [33, 39], [36, 40], [17, 41], [17, 42], [17, 43], [17, 44], [41, 45], [42, 46], [43, 47], [44, 48], [46, 49], [46, 50], [48, 51], [48, 52], [45, 53], [47, 54], [49, 55], [50, 56], [51, 57], [52, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 5], [15, 12], [16, 1], [17, 1], [18, 1], [19, 13], [20, 2], [21, 3], [22, 3], [23, 4], [24, 5], [25, 14], [26, 6], [27, 16], [28, 1], [29, 1], [30, 20], [31, 20], [32, 20], [33, 21], [34, 22], [35, 24], [36, 5], [37, 18], [38, 31], [39, 33], [40, 36], [41, 17], [42, 17], [43, 17], [44, 17], [45, 41], [46, 42], [47, 43], [48, 44], [49, 46], [50, 46], [51, 48], [52, 48], [53, 45], [54, 47], [55, 49], [56, 50], [57, 51], [58, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "replace", "code": "\tpublic static boolean replace(View view)\n\t{\n\t\t// component that will parent any dialog boxes\n\t\tComponent comp = SearchDialog.getSearchDialog(view);\n\t\tif(comp == null)\n\t\t\tcomp = view;\n\n\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\tBuffer buffer = view.getBuffer();\n\t\tif(!buffer.isEditable())\n\t\t\treturn false;\n\n\t\tboolean smartCaseReplace = (replace != null\n\t\t\t&& TextUtilities.getStringCase(replace)\n\t\t\t== TextUtilities.LOWER_CASE);\n\n\t\tSelection[] selection = textArea.getSelection();\n\t\tif(selection.length == 0)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t}\n\n\t\trecord(view,\"replace(view)\",true,false);\n\n\t\t// a little hack for reverse replace and find\n\t\tint caret = textArea.getCaretPosition();\n\t\tSelection s = textArea.getSelectionAtOffset(caret);\n\t\tif(s != null)\n\t\t\tcaret = s.getStart();\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tSearchMatcher matcher = getSearchMatcher();\n\t\t\tif(matcher == null)\n\t\t\t\treturn false;\n\n\t\t\tint retVal = 0;\n\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\ts = selection[i];\n\n\t\t\t\t/* if an occurence occurs at the\n\t\t\t\tbeginning of the selection, the\n\t\t\t\tselection start will get moved.\n\t\t\t\tthis sucks, so we hack to avoid it. */\n\t\t\t\tint start = s.getStart();\n\n\t\t\t\tif(s instanceof Selection.Range)\n\t\t\t\t{\n\t\t\t\t\tretVal += _replace(view,buffer,matcher,\n\t\t\t\t\t\ts.getStart(),s.getEnd(),\n\t\t\t\t\t\tsmartCaseReplace);\n\n\t\t\t\t\ttextArea.removeFromSelection(s);\n\t\t\t\t\ttextArea.addToSelection(new Selection.Range(\n\t\t\t\t\t\tstart,s.getEnd()));\n\t\t\t\t}\n\t\t\t\telse if(s instanceof Selection.Rect)\n\t\t\t\t{\n\t\t\t\t\tfor(int j = s.getStartLine(); j <= s.getEndLine(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tretVal += _replace(view,buffer,matcher,\n\t\t\t\t\t\t\ts.getStart(buffer,j),s.getEnd(buffer,j),\n\t\t\t\t\t\t\tsmartCaseReplace);\n\t\t\t\t\t}\n\t\t\t\t\ttextArea.addToSelection(new Selection.Rect(\n\t\t\t\t\t\tstart,s.getEnd()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(reverse)\n\t\t\t{\n\t\t\t\t// so that Replace and Find continues from\n\t\t\t\t// the right location\n\t\t\t\ttextArea.moveCaretPosition(caret);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ts = textArea.getSelectionAtOffset(\n\t\t\t\t\ttextArea.getCaretPosition());\n\t\t\t\tif(s != null)\n\t\t\t\t\ttextArea.moveCaretPosition(s.getEnd());\n\t\t\t}\n\n\t\t\tif(retVal == 0)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(comp,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LOOP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [3, 24], [0, 25], [6, 26], [9, 27], [9, 28], [12, 29], [2, 30], [16, 31], [16, 32], [17, 33], [18, 34], [20, 35], [22, 36], [22, 37], [2, 38], [3, 39], [24, 40], [4, 41], [5, 42], [25, 43], [25, 44], [25, 45], [6, 46], [26, 47], [7, 48], [8, 49], [27, 50], [10, 51], [11, 52], [12, 53], [29, 54], [13, 55], [16, 56], [31, 57], [16, 58], [18, 59], [34, 60], [19, 61], [20, 62], [20, 63], [21, 64], [36, 65], [37, 66], [23, 67], [39, 68], [46, 69], [6, 70], [49, 71], [49, 72], [56, 73], [31, 74], [57, 75], [59, 76], [18, 77], [61, 78], [19, 79], [19, 80], [62, 81], [62, 82], [20, 83], [20, 84], [70, 85], [71, 86], [72, 87], [74, 88], [32, 89], [77, 90], [61, 91], [78, 92], [79, 93], [81, 94], [63, 95], [57, 96], [91, 97], [93, 98], [81, 99], [62, 100], [62, 101], [62, 102], [74, 103], [81, 104], [99, 105], [100, 106], [102, 107], [104, 108], [105, 109], [106, 110], [107, 111], [107, 112], [108, 113], [99, 114], [99, 115], [114, 116], [116, 117], [116, 118], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 3], [25, 0], [26, 6], [27, 9], [28, 9], [29, 12], [30, 2], [31, 16], [32, 16], [33, 17], [34, 18], [35, 20], [36, 22], [37, 22], [38, 2], [39, 3], [40, 24], [41, 4], [42, 5], [43, 25], [44, 25], [45, 25], [46, 6], [47, 26], [48, 7], [49, 8], [50, 27], [51, 10], [52, 11], [53, 12], [54, 29], [55, 13], [56, 16], [57, 31], [58, 16], [59, 18], [60, 34], [61, 19], [62, 20], [63, 20], [64, 21], [65, 36], [66, 37], [67, 23], [68, 39], [69, 46], [70, 6], [71, 49], [72, 49], [73, 56], [74, 31], [75, 57], [76, 59], [77, 18], [78, 61], [79, 19], [80, 19], [81, 62], [82, 62], [83, 20], [84, 20], [85, 70], [86, 71], [87, 72], [88, 74], [89, 32], [90, 77], [91, 61], [92, 78], [93, 79], [94, 81], [95, 63], [96, 57], [97, 91], [98, 93], [99, 81], [100, 62], [101, 62], [102, 62], [103, 74], [104, 81], [105, 99], [106, 100], [107, 102], [108, 104], [109, 105], [110, 106], [111, 107], [112, 107], [113, 108], [114, 99], [115, 99], [116, 114], [117, 116], [118, 116], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118]]}, {"function_name": "replace", "code": "\tpublic static boolean replace(View view, Buffer buffer, int start, int end)\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\treturn false;\n\n\t\t// component that will parent any dialog boxes\n\t\tComponent comp = SearchDialog.getSearchDialog(view);\n\t\tif(comp == null)\n\t\t\tcomp = view;\n\n\t\tboolean smartCaseReplace = (replace != null\n\t\t\t&& TextUtilities.getStringCase(replace)\n\t\t\t== TextUtilities.LOWER_CASE);\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tSearchMatcher matcher = getSearchMatcher();\n\t\t\tif(matcher == null)\n\t\t\t\treturn false;\n\n\t\t\tint retVal = 0;\n\n\t\t\tretVal += _replace(view,buffer,matcher,start,end,\n\t\t\t\tsmartCaseReplace);\n\n\t\t\tif(retVal != 0)\n\t\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(comp,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "CALL", "CALL", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [4, 17], [6, 18], [6, 19], [2, 20], [12, 21], [12, 22], [13, 23], [13, 24], [2, 25], [15, 26], [15, 27], [2, 28], [3, 29], [4, 30], [17, 31], [5, 32], [18, 33], [12, 34], [21, 35], [12, 36], [23, 37], [24, 38], [25, 39], [14, 40], [26, 41], [27, 42], [16, 43], [29, 44], [29, 45], [34, 46], [21, 47], [35, 48], [44, 49], [45, 50], [47, 51], [22, 52], [35, 53], [47, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 4], [18, 6], [19, 6], [20, 2], [21, 12], [22, 12], [23, 13], [24, 13], [25, 2], [26, 15], [27, 15], [28, 2], [29, 3], [30, 4], [31, 17], [32, 5], [33, 18], [34, 12], [35, 21], [36, 12], [37, 23], [38, 24], [39, 25], [40, 14], [41, 26], [42, 27], [43, 16], [44, 29], [45, 29], [46, 34], [47, 21], [48, 35], [49, 44], [50, 45], [51, 47], [52, 22], [53, 35], [54, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "replaceAll", "code": "\tpublic static boolean replaceAll(View view)\n\t{\n\t\t// component that will parent any dialog boxes\n\t\tComponent comp = SearchDialog.getSearchDialog(view);\n\t\tif(comp == null)\n\t\t\tcomp = view;\n\n\t\tint fileCount = 0;\n\t\tint occurCount = 0;\n\n\t\tif(fileset.getFileCount(view) == 0)\n\t\t{\n\t\t\tGUIUtilities.error(comp,\"empty-fileset\",null);\n\t\t\treturn false;\n\t\t}\n\n\t\trecord(view,\"replaceAll(view)\",true,true);\n\n\t\tview.showWaitCursor();\n\n\t\tboolean smartCaseReplace = (replace != null\n\t\t\t&& TextUtilities.getStringCase(replace)\n\t\t\t== TextUtilities.LOWER_CASE);\n\n\t\ttry\n\t\t{\n\t\t\tSearchMatcher matcher = getSearchMatcher();\n\t\t\tif(matcher == null)\n\t\t\t\treturn false;\n\n\t\t\tString path = fileset.getFirstFile(view);\nloop:\t\t\twhile(path != null)\n\t\t\t{\n\t\t\t\tBuffer buffer = jEdit.openTemporary(\n\t\t\t\t\tview,null,path,false);\n\n\t\t\t\t/* this is stupid and misleading.\n\t\t\t\t * but 'path' is not used anywhere except\n\t\t\t\t * the above line, and if this is done\n\t\t\t\t * after the 'continue', then we will\n\t\t\t\t * either hang, or be forced to duplicate\n\t\t\t\t * it inside the buffer == null, or add\n\t\t\t\t * a 'finally' clause. you decide which one's\n\t\t\t\t * worse. */\n\t\t\t\tpath = fileset.getNextFile(view,path);\n\n\t\t\t\tif(buffer == null)\n\t\t\t\t\tcontinue loop;\n\n\t\t\t\t// Wait for buffer to finish loading\n\t\t\t\tif(buffer.isPerformingIO())\n\t\t\t\t\tVFSManager.waitForRequests();\n\n\t\t\t\tif(!buffer.isEditable())\n\t\t\t\t\tcontinue loop;\n\n\t\t\t\t// Leave buffer in a consistent state if\n\t\t\t\t// an error occurs\n\t\t\t\tint retVal = 0;\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tbuffer.beginCompoundEdit();\n\t\t\t\t\tretVal = _replace(view,buffer,matcher,\n\t\t\t\t\t\t0,buffer.getLength(),\n\t\t\t\t\t\tsmartCaseReplace);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t\t}\n\n\t\t\t\tif(retVal != 0)\n\t\t\t\t{\n\t\t\t\t\tfileCount++;\n\t\t\t\t\toccurCount += retVal;\n\t\t\t\t\tjEdit.commitTemporary(buffer);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(comp,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\t/* Don't do this when playing a macro, cos it's annoying */\n\t\tif(!BeanShell.isScriptRunning())\n\t\t{\n\t\t\tObject[] args = { new Integer(occurCount),\n\t\t\t\tnew Integer(fileCount) };\n\t\t\tview.getStatus().setMessageAndClear(jEdit.getProperty(\n\t\t\t\t\"view.status.replace-all\",args));\n\t\t\tif(occurCount == 0)\n\t\t\t\tview.getToolkit().beep();\n\t\t}\n\n\t\treturn (fileCount != 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CATCH", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "TRY", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [0, 18], [0, 19], [5, 20], [8, 21], [11, 22], [2, 23], [2, 24], [3, 25], [13, 26], [13, 27], [14, 28], [16, 29], [16, 30], [4, 31], [19, 32], [19, 33], [19, 34], [5, 35], [20, 36], [20, 37], [6, 38], [7, 39], [8, 40], [21, 41], [9, 42], [23, 43], [2, 44], [13, 45], [26, 46], [13, 47], [14, 48], [14, 49], [14, 50], [14, 51], [14, 52], [14, 53], [14, 54], [28, 55], [15, 56], [29, 57], [30, 58], [17, 59], [31, 60], [31, 61], [35, 62], [5, 63], [23, 64], [43, 65], [44, 66], [45, 67], [26, 68], [46, 69], [48, 70], [51, 71], [51, 72], [52, 73], [53, 74], [53, 75], [14, 76], [60, 77], [61, 78], [63, 79], [63, 80], [64, 81], [66, 82], [24, 83], [24, 84], [68, 85], [27, 86], [70, 87], [49, 88], [49, 89], [49, 90], [50, 91], [52, 92], [75, 93], [76, 94], [54, 95], [82, 96], [46, 97], [48, 98], [48, 99], [89, 100], [95, 101], [95, 102], [68, 103], [100, 104], [100, 105], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 3], [15, 3], [16, 3], [17, 3], [18, 0], [19, 0], [20, 5], [21, 8], [22, 11], [23, 2], [24, 2], [25, 3], [26, 13], [27, 13], [28, 14], [29, 16], [30, 16], [31, 4], [32, 19], [33, 19], [34, 19], [35, 5], [36, 20], [37, 20], [38, 6], [39, 7], [40, 8], [41, 21], [42, 9], [43, 23], [44, 2], [45, 13], [46, 26], [47, 13], [48, 14], [49, 14], [50, 14], [51, 14], [52, 14], [53, 14], [54, 14], [55, 28], [56, 15], [57, 29], [58, 30], [59, 17], [60, 31], [61, 31], [62, 35], [63, 5], [64, 23], [65, 43], [66, 44], [67, 45], [68, 26], [69, 46], [70, 48], [71, 51], [72, 51], [73, 52], [74, 53], [75, 53], [76, 14], [77, 60], [78, 61], [79, 63], [80, 63], [81, 64], [82, 66], [83, 24], [84, 24], [85, 68], [86, 27], [87, 70], [88, 49], [89, 49], [90, 49], [91, 50], [92, 52], [93, 75], [94, 76], [95, 54], [96, 82], [97, 46], [98, 48], [99, 48], [100, 89], [101, 95], [102, 95], [103, 68], [104, 100], [105, 100], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105]]}, {"function_name": "load", "code": "\tpublic static void load()\n\t{\n\t\tsearch = jEdit.getProperty(\"search.find.value\");\n\t\treplace = jEdit.getProperty(\"search.replace.value\");\n\t\tignoreCase = jEdit.getBooleanProperty(\"search.ignoreCase.toggle\");\n\t\tregexp = jEdit.getBooleanProperty(\"search.regexp.toggle\");\n\t\tbeanshell = jEdit.getBooleanProperty(\"search.beanshell.toggle\");\n\t\twrap = jEdit.getBooleanProperty(\"search.wrap.toggle\");\n\n\t\tfileset = new CurrentBufferSet();\n\n\t\t// Tags plugin likes to call this method at times other than\n\t\t// startup; so we need to fire a SearchSettingsChanged to\n\t\t// notify the search bar and so on.\n\t\tmatcher = null;\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [9, 18], [10, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [18, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 9], [19, 10], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "save", "code": "\tpublic static void save()\n\t{\n\t\tjEdit.setProperty(\"search.find.value\",search);\n\t\tjEdit.setProperty(\"search.replace.value\",replace);\n\t\tjEdit.setBooleanProperty(\"search.ignoreCase.toggle\",ignoreCase);\n\t\tjEdit.setBooleanProperty(\"search.regexp.toggle\",regexp);\n\t\tjEdit.setBooleanProperty(\"search.beanshell.toggle\",beanshell);\n\t\tjEdit.setBooleanProperty(\"search.wrap.toggle\",wrap);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "record", "code": "\tprivate static void record(View view, String action,\n\t\tboolean replaceAction, boolean recordFileSet)\n\t{\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\tif(recorder != null)\n\t\t{\n\t\t\trecorder.record(\"SearchAndReplace.setSearchString(\\\"\"\n\t\t\t\t+ MiscUtilities.charsToEscapes(search) + \"\\\");\");\n\n\t\t\tif(replaceAction)\n\t\t\t{\n\t\t\t\trecorder.record(\"SearchAndReplace.setReplaceString(\\\"\"\n\t\t\t\t\t+ MiscUtilities.charsToEscapes(replace) + \"\\\");\");\n\t\t\t\trecorder.record(\"SearchAndReplace.setBeanShellReplace(\"\n\t\t\t\t\t+ beanshell + \");\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// only record this if doing a find next\n\t\t\t\trecorder.record(\"SearchAndReplace.setAutoWrapAround(\"\n\t\t\t\t\t+ wrap + \");\");\n\t\t\t\trecorder.record(\"SearchAndReplace.setReverseSearch(\"\n\t\t\t\t\t+ reverse + \");\");\n\t\t\t}\n\n\t\t\trecorder.record(\"SearchAndReplace.setIgnoreCase(\"\n\t\t\t\t+ ignoreCase + \");\");\n\t\t\trecorder.record(\"SearchAndReplace.setRegexp(\"\n\t\t\t\t+ regexp + \");\");\n\n\t\t\tif(recordFileSet)\n\t\t\t{\n\t\t\t\trecorder.record(\"SearchAndReplace.setSearchFileSet(\"\n\t\t\t\t\t+ fileset.getCode() + \");\");\n\t\t\t}\n\n\t\t\trecorder.record(\"SearchAndReplace.\" + action + \";\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [2, 11], [1, 12], [1, 13], [1, 14], [1, 15], [12, 16], [13, 17], [14, 18], [15, 19], [16, 20], [16, 21], [8, 22], [17, 23], [17, 24], [18, 25], [18, 26], [9, 27], [9, 28], [9, 29], [9, 30], [19, 31], [19, 32], [21, 33], [22, 34], [24, 35], [26, 36], [27, 37], [28, 38], [29, 39], [30, 40], [32, 41], [32, 42], [34, 43], [34, 44], [37, 45], [37, 46], [38, 47], [38, 48], [39, 49], [39, 50], [40, 51], [40, 52], [44, 53], [44, 54], [46, 55], [48, 56], [50, 57], [52, 58], [52, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 2], [12, 1], [13, 1], [14, 1], [15, 1], [16, 12], [17, 13], [18, 14], [19, 15], [20, 16], [21, 16], [22, 8], [23, 17], [24, 17], [25, 18], [26, 18], [27, 9], [28, 9], [29, 9], [30, 9], [31, 19], [32, 19], [33, 21], [34, 22], [35, 24], [36, 26], [37, 27], [38, 28], [39, 29], [40, 30], [41, 32], [42, 32], [43, 34], [44, 34], [45, 37], [46, 37], [47, 38], [48, 38], [49, 39], [50, 39], [51, 40], [52, 40], [53, 44], [54, 44], [55, 46], [56, 48], [57, 50], [58, 52], [59, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "_replace", "code": "\tprivate static int _replace(View view, Buffer buffer,\n\t\tSearchMatcher matcher, int start, int end,\n\t\tboolean smartCaseReplace)\n\t\tthrows Exception\n\t{\n\t\tint occurCount = 0;\n\n\t\tboolean endOfLine = (buffer.getLineEndOffset(\n\t\t\tbuffer.getLineOfOffset(end)) - 1 == end);\n\n\t\tSegment text = new Segment();\n\t\tint offset = start;\nloop:\t\tfor(int counter = 0; ; counter++)\n\t\t{\n\t\t\tbuffer.getText(offset,end - offset,text);\n\n\t\t\tboolean startOfLine = (buffer.getLineStartOffset(\n\t\t\t\tbuffer.getLineOfOffset(offset)) == offset);\n\n\t\t\tint[] occur = matcher.nextMatch(\n\t\t\t\tnew CharIndexedSegment(text,false),\n\t\t\t\tstartOfLine,endOfLine,counter == 0,\n\t\t\t\tfalse);\n\t\t\tif(occur == null)\n\t\t\t\tbreak loop;\n\t\t\tint _start = occur[0];\n\t\t\tint _length = occur[1] - occur[0];\n\n\t\t\tString found = new String(text.array,text.offset + _start,_length);\n\t\t\tString subst = matcher.substitute(found);\n\t\t\tif(smartCaseReplace && ignoreCase)\n\t\t\t{\n\t\t\t\tint strCase = TextUtilities.getStringCase(found);\n\t\t\t\tif(strCase == TextUtilities.LOWER_CASE)\n\t\t\t\t\tsubst = subst.toLowerCase();\n\t\t\t\telse if(strCase == TextUtilities.UPPER_CASE)\n\t\t\t\t\tsubst = subst.toUpperCase();\n\t\t\t\telse if(strCase == TextUtilities.TITLE_CASE)\n\t\t\t\t\tsubst = TextUtilities.toTitleCase(subst);\n\t\t\t}\n\n\t\t\tif(subst != null)\n\t\t\t{\n\t\t\t\tbuffer.remove(offset + _start,_length);\n\t\t\t\tbuffer.insert(offset + _start,subst);\n\t\t\t\toccurCount++;\n\t\t\t\toffset += _start + subst.length();\n\n\t\t\t\tend += (subst.length() - found.length());\n\t\t\t}\n\t\t\telse\n\t\t\t\toffset += _start + _length;\n\t\t}\n\n\t\treturn occurCount;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [4, 22], [5, 23], [6, 24], [13, 25], [14, 26], [19, 27], [19, 28], [2, 29], [2, 30], [23, 31], [13, 32], [25, 33], [14, 34], [14, 35], [15, 36], [16, 37], [17, 38], [28, 39], [20, 40], [21, 41], [29, 42], [31, 43], [31, 44], [32, 45], [13, 46], [13, 47], [13, 48], [13, 49], [34, 50], [34, 51], [37, 52], [40, 53], [40, 54], [40, 55], [41, 56], [44, 57], [46, 58], [47, 59], [48, 60], [49, 61], [50, 62], [50, 63], [34, 64], [35, 65], [18, 66], [54, 67], [55, 68], [56, 69], [58, 70], [58, 71], [59, 72], [62, 73], [50, 74], [64, 75], [38, 76], [38, 77], [62, 78], [74, 79], [78, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 4], [23, 5], [24, 6], [25, 13], [26, 14], [27, 19], [28, 19], [29, 2], [30, 2], [31, 23], [32, 13], [33, 25], [34, 14], [35, 14], [36, 15], [37, 16], [38, 17], [39, 28], [40, 20], [41, 21], [42, 29], [43, 31], [44, 31], [45, 32], [46, 13], [47, 13], [48, 13], [49, 13], [50, 34], [51, 34], [52, 37], [53, 40], [54, 40], [55, 40], [56, 41], [57, 44], [58, 46], [59, 47], [60, 48], [61, 49], [62, 50], [63, 50], [64, 34], [65, 35], [66, 18], [67, 54], [68, 55], [69, 56], [70, 58], [71, 58], [72, 59], [73, 62], [74, 50], [75, 64], [76, 38], [77, 38], [78, 62], [79, 74], [80, 78], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}], "label": 1}
{"sample_id": "poi-3.0-6158", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/ddf/UnknownEscherRecord.java", "language": "java", "name": "org.apache.poi.ddf.UnknownEscherRecord", "code": "public class UnknownEscherRecord extends EscherRecord\n{\n    private static final byte[] NO_BYTES = new byte[0];\n\n    /** The data for this record not including the the 8 byte header */\n    private byte[] thedata = NO_BYTES;\n    private List childRecords = new ArrayList();\n\n    public UnknownEscherRecord()\n    {\n    }\n\n    /**\n     * This method deserializes the record from a byte array.\n     *\n     * @param data          The byte array containing the escher record information\n     * @param offset        The starting offset into <code>data</code>.\n     * @param recordFactory May be null since this is not a container record.\n     * @return The number of bytes read from the byte array.\n     */\n    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        if ( isContainerRecord() )\n        {\n            int bytesWritten = 0;\n            thedata = new byte[0];\n            offset += 8;\n            bytesWritten += 8;\n            while ( bytesRemaining > 0 )\n            {\n                EscherRecord child = recordFactory.createRecord( data, offset );\n                int childBytesWritten = child.fillFields( data, offset, recordFactory );\n                bytesWritten += childBytesWritten;\n                offset += childBytesWritten;\n                bytesRemaining -= childBytesWritten;\n                getChildRecords().add( child );\n            }\n            return bytesWritten;\n        }\n        else\n        {\n            thedata = new byte[bytesRemaining];\n            System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );\n            return bytesRemaining + 8;\n        }\n    }\n\n    /**\n     * Writes this record and any contained records to the supplied byte\n     * array.\n     *\n     * @return  the number of bytes written.\n     */\n    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        LittleEndian.putShort(data, offset, getOptions());\n        LittleEndian.putShort(data, offset+2, getRecordId());\n        int remainingBytes = thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            remainingBytes += r.getRecordSize();\n        }\n        LittleEndian.putInt(data, offset+4, remainingBytes);\n        System.arraycopy(thedata, 0, data, offset+8, thedata.length);\n        int pos = offset+8+thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            pos += r.serialize(pos, data, listener );\n        }\n\n        listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );\n        return pos - offset;\n    }\n\n    public byte[] getData()\n    {\n        return thedata;\n    }\n\n    /**\n     * Returns the number of bytes that are required to serialize this record.\n     *\n     * @return Number of bytes\n     */\n    public int getRecordSize()\n    {\n        return 8 + thedata.length;\n    }\n\n    public List getChildRecords()\n    {\n        return childRecords;\n    }\n\n    public void setChildRecords( List childRecords )\n    {\n        this.childRecords = childRecords;\n    }\n\n    public Object clone()\n    {\n        return super.clone();\n    }\n\n    /**\n     * The short name for this record\n     */\n    public String getRecordName()\n    {\n        return \"Unknown 0x\" + HexDump.toHex(getRecordId());\n    }\n\n    public String toString()\n    {\n        String nl = System.getProperty( \"line.separator\" );\n\n        StringBuffer children = new StringBuffer();\n        if ( getChildRecords().size() > 0 )\n        {\n            children.append( \"  children: \" + nl );\n            for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n            {\n                EscherRecord record = (EscherRecord) iterator.next();\n                children.append( record.toString() );\n                children.append( nl );\n            }\n        }\n\n        String theDumpHex = \"\";\n        try\n        {\n            if (thedata.length != 0)\n            {\n                theDumpHex = \"  Extra Data:\" + nl;\n                theDumpHex += HexDump.dump(thedata, 0, 0);\n            }\n        }\n        catch ( Exception e )\n        {\n            theDumpHex = \"Error!!\";\n        }\n\n        return getClass().getName() + \":\" + nl +\n                \"  isContainer: \" + isContainerRecord() + nl +\n                \"  options: 0x\" + HexDump.toHex( getOptions() ) + nl +\n                \"  recordId: 0x\" + HexDump.toHex( getRecordId() ) + nl +\n                \"  numchildren: \" + getChildRecords().size() + nl +\n                theDumpHex +\n                children.toString();\n    }\n\n    public void addChildRecord( EscherRecord childRecord )\n    {\n        getChildRecords().add( childRecord );", "functions": [{"function_name": "fillFields", "code": "    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        if ( isContainerRecord() )\n        {\n            int bytesWritten = 0;\n            thedata = new byte[0];\n            offset += 8;\n            bytesWritten += 8;\n            while ( bytesRemaining > 0 )\n            {\n                EscherRecord child = recordFactory.createRecord( data, offset );\n                int childBytesWritten = child.fillFields( data, offset, recordFactory );\n                bytesWritten += childBytesWritten;\n                offset += childBytesWritten;\n                bytesRemaining -= childBytesWritten;\n                getChildRecords().add( child );\n            }\n            return bytesWritten;\n        }\n        else\n        {\n            thedata = new byte[bytesRemaining];\n            System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );\n            return bytesRemaining + 8;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "RETURN", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [7, 12], [1, 13], [1, 14], [9, 15], [1, 16], [1, 17], [1, 18], [12, 19], [13, 20], [13, 21], [9, 22], [9, 23], [15, 24], [16, 25], [17, 26], [10, 27], [21, 28], [9, 29], [9, 30], [9, 31], [9, 32], [18, 33], [29, 34], [22, 35], [23, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 7], [13, 1], [14, 1], [15, 9], [16, 1], [17, 1], [18, 1], [19, 12], [20, 13], [21, 13], [22, 9], [23, 9], [24, 15], [25, 16], [26, 17], [27, 10], [28, 21], [29, 9], [30, 9], [31, 9], [32, 9], [33, 18], [34, 29], [35, 22], [36, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        LittleEndian.putShort(data, offset, getOptions());\n        LittleEndian.putShort(data, offset+2, getRecordId());\n        int remainingBytes = thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            remainingBytes += r.getRecordSize();\n        }\n        LittleEndian.putInt(data, offset+4, remainingBytes);\n        System.arraycopy(thedata, 0, data, offset+8, thedata.length);\n        int pos = offset+8+thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            pos += r.serialize(pos, data, listener );\n        }\n\n        listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );\n        return pos - offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [0, 12], [0, 13], [4, 14], [0, 15], [0, 16], [0, 17], [10, 18], [10, 19], [2, 20], [3, 21], [12, 22], [12, 23], [13, 24], [4, 25], [15, 26], [15, 27], [16, 28], [17, 29], [2, 30], [2, 31], [21, 32], [22, 33], [24, 34], [4, 35], [4, 36], [27, 37], [30, 38], [31, 39], [32, 40], [35, 41], [36, 42], [20, 43], [25, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 0], [13, 0], [14, 4], [15, 0], [16, 0], [17, 0], [18, 10], [19, 10], [20, 2], [21, 3], [22, 12], [23, 12], [24, 13], [25, 4], [26, 15], [27, 15], [28, 16], [29, 17], [30, 2], [31, 2], [32, 21], [33, 22], [34, 24], [35, 4], [36, 4], [37, 27], [38, 30], [39, 31], [40, 32], [41, 35], [42, 36], [43, 20], [44, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "getData", "code": "    public byte[] getData()\n    {\n        return thedata;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 8 + thedata.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getChildRecords", "code": "    public List getChildRecords()\n    {\n        return childRecords;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setChildRecords", "code": "    public void setChildRecords( List childRecords )\n    {\n        this.childRecords = childRecords;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clone", "code": "    public Object clone()\n    {\n        return super.clone();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordName", "code": "    public String getRecordName()\n    {\n        return \"Unknown 0x\" + HexDump.toHex(getRecordId());", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        String nl = System.getProperty( \"line.separator\" );\n\n        StringBuffer children = new StringBuffer();\n        if ( getChildRecords().size() > 0 )\n        {\n            children.append( \"  children: \" + nl );\n            for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n            {\n                EscherRecord record = (EscherRecord) iterator.next();\n                children.append( record.toString() );\n                children.append( nl );\n            }\n        }\n\n        String theDumpHex = \"\";\n        try\n        {\n            if (thedata.length != 0)\n            {\n                theDumpHex = \"  Extra Data:\" + nl;\n                theDumpHex += HexDump.dump(thedata, 0, 0);\n            }\n        }\n        catch ( Exception e )\n        {\n            theDumpHex = \"Error!!\";\n        }\n\n        return getClass().getName() + \":\" + nl +\n                \"  isContainer: \" + isContainerRecord() + nl +\n                \"  options: 0x\" + HexDump.toHex( getOptions() ) + nl +\n                \"  recordId: 0x\" + HexDump.toHex( getRecordId() ) + nl +\n                \"  numchildren: \" + getChildRecords().size() + nl +\n                theDumpHex +\n                children.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CATCH", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [4, 10], [7, 11], [7, 12], [9, 13], [3, 14], [4, 15], [10, 16], [10, 17], [5, 18], [6, 19], [12, 20], [8, 21], [13, 22], [15, 23], [4, 24], [17, 25], [19, 26], [20, 27], [21, 28], [9, 29], [9, 30], [15, 31], [24, 32], [27, 33], [27, 34], [29, 35], [30, 36], [15, 37], [15, 38], [15, 39], [32, 40], [33, 41], [34, 42], [34, 43], [35, 44], [35, 45], [36, 46], [38, 47], [39, 48], [43, 49], [31, 50], [49, 51], [49, 52], [51, 53], [52, 54], [52, 55], [55, 56], [56, 57], [56, 58], [57, 59], [58, 60], [58, 61], [61, 62], [62, 63], [62, 64], [64, 65], [64, 66], [66, 67], [67, 68], [67, 69], [69, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 4], [11, 7], [12, 7], [13, 9], [14, 3], [15, 4], [16, 10], [17, 10], [18, 5], [19, 6], [20, 12], [21, 8], [22, 13], [23, 15], [24, 4], [25, 17], [26, 19], [27, 20], [28, 21], [29, 9], [30, 9], [31, 15], [32, 24], [33, 27], [34, 27], [35, 29], [36, 30], [37, 15], [38, 15], [39, 15], [40, 32], [41, 33], [42, 34], [43, 34], [44, 35], [45, 35], [46, 36], [47, 38], [48, 39], [49, 43], [50, 31], [51, 49], [52, 49], [53, 51], [54, 52], [55, 52], [56, 55], [57, 56], [58, 56], [59, 57], [60, 58], [61, 58], [62, 61], [63, 62], [64, 62], [65, 64], [66, 64], [67, 66], [68, 67], [69, 67], [70, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "addChildRecord", "code": "    public void addChildRecord( EscherRecord childRecord )\n    {\n        getChildRecords().add( childRecord );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "UnknownEscherRecord", "code": "    public UnknownEscherRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.5-6862", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/FilterParentPath.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.FilterParentPath", "code": "final class FilterParentPath extends Expression {\n\n    private Expression _filterExpr;\n    private Expression _path;\n    private boolean _hasDescendantAxis = false;\n\n    public FilterParentPath(Expression filterExpr, Expression path) {\n\t(_path = path).setParent(this);\n\t(_filterExpr = filterExpr).setParent(this);\n    }\n\t\t\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_filterExpr.setParser(parser);\n\t_path.setParser(parser);\n    }\n    \n    public String toString() {\n\treturn \"FilterParentPath(\" + _filterExpr + \", \" + _path + ')';\n    }\n\n    public void setDescendantAxis() {\n\t_hasDescendantAxis = true;\n    }\n\n    /**\n     * Type check a FilterParentPath. If the filter is not a node-set add a \n     * cast to node-set only if it is of reference type. This type coercion is\n     * needed for expressions like $x/LINE where $x is a parameter reference.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type ftype = _filterExpr.typeCheck(stable);\n\tif (ftype instanceof NodeSetType == false) {\n\t    if (ftype instanceof ReferenceType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    /*\n\t    else if (ftype instanceof ResultTreeType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    */\n\t    else if (ftype instanceof NodeType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    else {\n\t\tthrow new TypeCheckError(this);\n\t    }\n\t}\n\n\tfinal Type ptype = _path.typeCheck(stable);\n\tif (!(ptype instanceof NodeSetType)) {\n\t    _path = new CastExpr(_path, Type.NodeSet);\n\t}\n\n\treturn _type = Type.NodeSet;\t\n    }\n\t\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int initSI = cpg.addMethodref(STEP_ITERATOR_CLASS,\n\t\t\t\t\t    \"<init>\",\n\t\t\t\t\t    \"(\"\n\t\t\t\t\t    +NODE_ITERATOR_SIG\n\t\t\t\t\t    +NODE_ITERATOR_SIG\n\t\t\t\t\t    +\")V\");\n\til.append(new NEW(cpg.addClass(STEP_ITERATOR_CLASS)));\n\til.append(DUP);\n\n\t_filterExpr.translate(classGen, methodGen);\n\t_path.translate(classGen, methodGen);\n\n\til.append(new INVOKESPECIAL(initSI));\n\n        if (_hasDescendantAxis) {\n\t    final int incl = cpg.addMethodref(NODE_ITERATOR_BASE,\n\t\t\t\t\t      \"includeSelf\",\n\t\t\t\t\t      \"()\" + NODE_ITERATOR_SIG);\n\t    il.append(new INVOKEVIRTUAL(incl));\n\t}\n\n\tif (!(getParent() instanceof RelativeLocationPath) &&\n\t    !(getParent() instanceof FilterParentPath)) {\n\t    final int order = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\tORDER_ITERATOR,\n\t\t\t\t\t\t\tORDER_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(SWAP);\n\t    il.append(methodGen.loadContextNode());\n\t    il.append(new INVOKEINTERFACE(order, 3));", "functions": [{"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\t_filterExpr.setParser(parser);\n\t_path.setParser(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"FilterParentPath(\" + _filterExpr + \", \" + _path + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setDescendantAxis", "code": "    public void setDescendantAxis() {\n\t_hasDescendantAxis = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type ftype = _filterExpr.typeCheck(stable);\n\tif (ftype instanceof NodeSetType == false) {\n\t    if (ftype instanceof ReferenceType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    /*\n\t    else if (ftype instanceof ResultTreeType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    */\n\t    else if (ftype instanceof NodeType)  {\n\t\t_filterExpr = new CastExpr(_filterExpr, Type.NodeSet);\n\t    }\n\t    else {\n\t\tthrow new TypeCheckError(this);\n\t    }\n\t}\n\n\tfinal Type ptype = _path.typeCheck(stable);\n\tif (!(ptype instanceof NodeSetType)) {\n\t    _path = new CastExpr(_path, Type.NodeSet);\n\t}\n\n\treturn _type = Type.NodeSet;\t", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [3, 10], [4, 11], [9, 12], [9, 13], [5, 14], [2, 15], [11, 16], [11, 17], [15, 18], [16, 19], [16, 20], [11, 21], [20, 22], [16, 23], [21, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 3], [11, 4], [12, 9], [13, 9], [14, 5], [15, 2], [16, 11], [17, 11], [18, 15], [19, 16], [20, 16], [21, 11], [22, 20], [23, 16], [24, 21], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int initSI = cpg.addMethodref(STEP_ITERATOR_CLASS,\n\t\t\t\t\t    \"<init>\",\n\t\t\t\t\t    \"(\"\n\t\t\t\t\t    +NODE_ITERATOR_SIG\n\t\t\t\t\t    +NODE_ITERATOR_SIG\n\t\t\t\t\t    +\")V\");\n\til.append(new NEW(cpg.addClass(STEP_ITERATOR_CLASS)));\n\til.append(DUP);\n\n\t_filterExpr.translate(classGen, methodGen);\n\t_path.translate(classGen, methodGen);\n\n\til.append(new INVOKESPECIAL(initSI));\n\n        if (_hasDescendantAxis) {\n\t    final int incl = cpg.addMethodref(NODE_ITERATOR_BASE,\n\t\t\t\t\t      \"includeSelf\",\n\t\t\t\t\t      \"()\" + NODE_ITERATOR_SIG);\n\t    il.append(new INVOKEVIRTUAL(incl));\n\t}\n\n\tif (!(getParent() instanceof RelativeLocationPath) &&\n\t    !(getParent() instanceof FilterParentPath)) {\n\t    final int order = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\tORDER_ITERATOR,\n\t\t\t\t\t\t\tORDER_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(SWAP);\n\t    il.append(methodGen.loadContextNode());\n\t    il.append(new INVOKEINTERFACE(order, 3));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [8, 15], [8, 16], [2, 17], [9, 18], [13, 19], [3, 20], [4, 21], [5, 22], [1, 23], [1, 24], [1, 25], [1, 26], [15, 27], [16, 28], [2, 29], [19, 30], [20, 31], [20, 32], [23, 33], [24, 34], [26, 35], [14, 36], [29, 37], [17, 38], [31, 39], [31, 40], [33, 41], [38, 42], [38, 43], [40, 44], [42, 45], [44, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 8], [16, 8], [17, 2], [18, 9], [19, 13], [20, 3], [21, 4], [22, 5], [23, 1], [24, 1], [25, 1], [26, 1], [27, 15], [28, 16], [29, 2], [30, 19], [31, 20], [32, 20], [33, 23], [34, 24], [35, 26], [36, 14], [37, 29], [38, 17], [39, 31], [40, 31], [41, 33], [42, 38], [43, 38], [44, 40], [45, 42], [46, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "FilterParentPath", "code": "    public FilterParentPath(Expression filterExpr, Expression path) {\n\t(_path = path).setParent(this);\n\t(_filterExpr = filterExpr).setParent(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.6-663", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/Checksum.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Checksum", "code": "public class Checksum extends MatchingTask implements Condition {\n\n    /**\n     * File for which checksum is to be calculated.\n     */\n    private File file = null;\n\n    /**\n     * Root directory in which the checksum files will be written.\n     * If not specified, the checksum files will be written\n     * in the same directory as each file.\n     */\n    private File todir;\n\n    /**\n     * MessageDigest algorithm to be used.\n     */\n    private String algorithm = \"MD5\";\n    /**\n     * MessageDigest Algorithm provider\n     */\n    private String provider = null;\n    /**\n     * File Extension that is be to used to create or identify\n     * destination file\n     */\n    private String fileext;\n    /**\n     * Holds generated checksum and gets set as a Project Property.\n     */\n    private String property;\n    /**\n     * Holds checksums for all files (both calculated and cached on disk).\n     * Key:   java.util.File (source file)\n     * Value: java.lang.String (digest)\n     */\n    private Map allDigests = new HashMap();\n    /**\n     * Holds relative file names for all files (always with a forward slash).\n     * This is used to calculate the total hash.\n     * Key:   java.util.File (source file)\n     * Value: java.lang.String (relative file name)\n     */\n    private Map relativeFilePaths = new HashMap();\n    /**\n     * Property where totalChecksum gets set.\n     */\n    private String totalproperty;\n    /**\n     * Whether or not to create a new file.\n     * Defaults to <code>false</code>.\n     */\n    private boolean forceOverwrite;\n    /**\n     * Contains the result of a checksum verification. (\"true\" or \"false\")\n     */\n    private String verifyProperty;\n    /**\n     * Vector to hold source file sets.\n     */\n    private Vector filesets = new Vector();\n    /**\n     * Stores SourceFile, DestFile pairs and SourceFile, Property String pairs.\n     */\n    private Hashtable includeFileMap = new Hashtable();\n    /**\n     * Message Digest instance\n     */\n    private MessageDigest messageDigest;\n    /**\n     * is this task being used as a nested condition element?\n     */\n    private boolean isCondition;\n    /**\n     * Size of the read buffer to use.\n     */\n    private int readBufferSize = 8 * 1024;\n\n    /**\n     * Sets the file for which the checksum is to be calculated.\n     */\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    /**\n     * Sets the root directory where checksum files will be\n     * written/read\n     *\n     * @since Ant 1.6\n     */\n    public void setTodir(File todir) {\n        this.todir = todir;\n    }\n\n    /**\n     * Specifies the algorithm to be used to compute the checksum.\n     * Defaults to \"MD5\". Other popular algorithms like \"SHA\" may be used as well.\n     */\n    public void setAlgorithm(String algorithm) {\n        this.algorithm = algorithm;\n    }\n\n    /**\n     * Sets the MessageDigest algorithm provider to be used\n     * to calculate the checksum.\n     */\n    public void setProvider(String provider) {\n        this.provider = provider;\n    }\n\n    /**\n     * Sets the file extension that is be to used to\n     * create or identify destination file.\n     */\n    public void setFileext(String fileext) {\n        this.fileext = fileext;\n    }\n\n    /**\n     * Sets the property to hold the generated checksum.\n     */\n    public void setProperty(String property) {\n        this.property = property;\n    }\n\n    /**\n     * Sets the property to hold the generated total checksum\n     * for all files.\n     *\n     * @since Ant 1.6\n     */\n    public void setTotalproperty(String totalproperty) {\n        this.totalproperty = totalproperty;\n    }\n\n    /**\n     * Sets the verify property.  This project property holds\n     * the result of a checksum verification - \"true\" or \"false\"\n     */\n    public void setVerifyproperty(String verifyProperty) {\n        this.verifyProperty = verifyProperty;\n    }\n\n    /**\n     * Whether or not to overwrite existing file irrespective of\n     * whether it is newer than\n     * the source file.  Defaults to false.\n     */\n    public void setForceOverwrite(boolean forceOverwrite) {\n        this.forceOverwrite = forceOverwrite;\n    }\n\n    /**\n     * The size of the read buffer to use.\n     */\n    public void setReadBufferSize(int size) {\n        this.readBufferSize = size;\n    }\n\n    /**\n     * Files to generate checksums for.\n     */\n    public void addFileset(FileSet set) {\n        filesets.addElement(set);\n    }\n\n    /**\n     * Calculate the checksum(s).\n     */\n    public void execute() throws BuildException {\n        isCondition = false;\n        boolean value = validateAndExecute();\n        if (verifyProperty != null) {\n            getProject().setNewProperty(verifyProperty,\n                                new Boolean(value).toString());\n        }\n    }\n\n    /**\n     * Calculate the checksum(s)\n     *\n     * @return Returns true if the checksum verification test passed,\n     * false otherwise.\n     */\n    public boolean eval() throws BuildException {\n        isCondition = true;\n        return validateAndExecute();\n    }\n\n    /**\n     * Validate attributes and get down to business.\n     */\n    private boolean validateAndExecute() throws BuildException {\n        String savedFileExt = fileext;\n\n        if (file == null && filesets.size() == 0) {\n            throw new BuildException(\n                \"Specify at least one source - a file or a fileset.\");\n        }\n\n        if (file != null && file.exists() && file.isDirectory()) {\n            throw new BuildException(\n                \"Checksum cannot be generated for directories\");\n        }\n\n        if (file != null && totalproperty != null) {\n            throw new BuildException(\n                \"File and Totalproperty cannot co-exist.\");\n        }\n\n        if (property != null && fileext != null) {\n            throw new BuildException(\n                \"Property and FileExt cannot co-exist.\");\n        }\n\n        if (property != null) {\n            if (forceOverwrite) {\n                throw new BuildException(\n                    \"ForceOverwrite cannot be used when Property is specified\");\n            }\n\n            if (file != null) {\n                if (filesets.size() > 0) {\n                    throw new BuildException(\"Multiple files cannot be used \"\n                        + \"when Property is specified\");\n                }\n            } else {\n                if (filesets.size() > 1) {\n                    throw new BuildException(\"Multiple files cannot be used \"\n                        + \"when Property is specified\");\n                }\n            }\n        }\n\n        if (verifyProperty != null) {\n            isCondition = true;\n        }\n\n        if (verifyProperty != null && forceOverwrite) {\n            throw new BuildException(\n                \"VerifyProperty and ForceOverwrite cannot co-exist.\");\n        }\n\n        if (isCondition && forceOverwrite) {\n            throw new BuildException(\"ForceOverwrite cannot be used when \"\n                + \"conditions are being used.\");\n        }\n\n        messageDigest = null;\n        if (provider != null) {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm, provider);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo, getLocation());\n            } catch (NoSuchProviderException noprovider) {\n                throw new BuildException(noprovider, getLocation());\n            }\n        } else {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo, getLocation());\n            }\n        }\n\n        if (messageDigest == null) {\n            throw new BuildException(\"Unable to create Message Digest\",\n                                     getLocation());\n        }\n\n        if (fileext == null) {\n            fileext = \".\" + algorithm;\n        } else if (fileext.trim().length() == 0) {\n            throw new BuildException(\n                \"File extension when specified must not be an empty string\");\n        }\n\n        try {\n            int sizeofFileSet = filesets.size();\n            for (int i = 0; i < sizeofFileSet; i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n                String[] srcFiles = ds.getIncludedFiles();\n                for (int j = 0; j < srcFiles.length; j++) {\n                    File src = new File(fs.getDir(getProject()), srcFiles[j]);\n                    if (totalproperty != null || todir != null) {\n                        String relativePath = srcFiles[j].replace(File.separatorChar, '/');\n                        relativeFilePaths.put(src, relativePath);\n                    }\n                    addToIncludeFileMap(src);\n                }\n            }\n\n            addToIncludeFileMap(file);\n\n            return generateChecksums();\n        } finally {\n            fileext = savedFileExt;\n            includeFileMap.clear();\n        }\n    }\n\n    /**\n     * Add key-value pair to the hashtable upon which\n     * to later operate upon.\n     */\n    private void addToIncludeFileMap(File file) throws BuildException {\n        if (file != null) {\n            if (file.exists()) {\n                if (property == null) {\n                    File checksumFile = getChecksumFile(file);\n                    if (forceOverwrite || isCondition\n                        || (file.lastModified() > checksumFile.lastModified())) {\n                        includeFileMap.put(file, checksumFile);\n                    } else {\n                        log(file + \" omitted as \" + checksumFile + \" is up to date.\",\n                            Project.MSG_VERBOSE);\n                        if (totalproperty != null) {\n                            String checksum = null;\n                            try {\n                                BufferedReader diskChecksumReader\n                                    = new BufferedReader(new FileReader(checksumFile));\n                                checksum = diskChecksumReader.readLine();\n                            } catch (IOException e) {\n                                throw new BuildException(\"Couldn't read checksum file \"\n                                    + checksumFile, e);\n                            }\n                            byte[] digest = decodeHex(checksum.toCharArray());\n                            allDigests.put(file, digest);\n                        }\n                    }\n                } else {\n                    includeFileMap.put(file, property);\n                }\n            } else {\n                String message = \"Could not find file \"\n                                 + file.getAbsolutePath()\n                                 + \" to generate checksum for.\";\n                log(message);\n                throw new BuildException(message, getLocation());\n            }\n        }\n    }\n\n    private File getChecksumFile(File file) {\n        File directory;\n        if (todir != null) {\n            String path = (String) relativeFilePaths.get(file);\n            directory = new File(todir, path).getParentFile();\n            directory.mkdirs();\n        } else {\n            directory = file.getParentFile();\n        }\n        File checksumFile = new File(directory, file.getName() + fileext);\n        return checksumFile;\n    }\n\n    /**\n     * Generate checksum(s) using the message digest created earlier.\n     */\n    private boolean generateChecksums() throws BuildException {\n        boolean checksumMatches = true;\n        FileInputStream fis = null;\n        FileOutputStream fos = null;\n        byte[] buf = new byte[readBufferSize];\n        try {\n            for (Enumeration e = includeFileMap.keys(); e.hasMoreElements();) {\n                messageDigest.reset();\n                File src = (File) e.nextElement();\n                if (!isCondition) {\n                    log(\"Calculating \" + algorithm + \" checksum for \" + src, Project.MSG_VERBOSE);\n                }\n                fis = new FileInputStream(src);\n                DigestInputStream dis = new DigestInputStream(fis,\n                                                              messageDigest);\n                while (dis.read(buf, 0, readBufferSize) != -1) {\n                    ;\n                }\n                dis.close();\n                fis.close();\n                fis = null;\n                byte[] fileDigest = messageDigest.digest ();\n                if (totalproperty != null) {\n                    allDigests.put(src, fileDigest);\n                }\n                String checksum = createDigestString(fileDigest);\n                Object destination = includeFileMap.get(src);\n                if (destination instanceof java.lang.String) {\n                    String prop = (String) destination;\n                    if (isCondition) {\n                        checksumMatches\n                            = checksumMatches && checksum.equals(property);\n                    } else {\n                        getProject().setNewProperty(prop, checksum);\n                    }\n                } else if (destination instanceof java.io.File) {\n                    if (isCondition) {\n                        File existingFile = (File) destination;\n                        if (existingFile.exists()) {\n                            fis = new FileInputStream(existingFile);\n                            InputStreamReader isr = new InputStreamReader(fis);\n                            BufferedReader br = new BufferedReader(isr);\n                            String suppliedChecksum = br.readLine();\n                            fis.close();\n                            fis = null;\n                            br.close();\n                            isr.close();\n                            checksumMatches = checksumMatches\n                                && checksum.equals(suppliedChecksum);\n                        } else {\n                            checksumMatches = false;\n                        }\n                    } else {\n                        File dest = (File) destination;\n                        fos = new FileOutputStream(dest);\n                        fos.write(checksum.getBytes());\n                        fos.close();\n                        fos = null;\n                    }\n                }\n            }\n            if (totalproperty != null) {\n                Set keys = allDigests.keySet();\n                Object[] keyArray = keys.toArray();\n                Arrays.sort(keyArray);\n                messageDigest.reset();\n                for (int i = 0; i < keyArray.length; i++) {\n                    File src = (File) keyArray[i];\n\n                    byte[] digest = (byte[]) allDigests.get(src);\n                    messageDigest.update(digest);\n\n                    String fileName = (String) relativeFilePaths.get(src);\n                    messageDigest.update(fileName.getBytes());\n                }\n                String totalChecksum = createDigestString(messageDigest.digest());\n                getProject().setNewProperty(totalproperty, totalChecksum);\n            }\n        } catch (Exception e) {\n            throw new BuildException(e, getLocation());\n        } finally {\n            if (fis != null) {\n                try {\n                    fis.close();\n                } catch (IOException e) {\n                }\n            }\n            if (fos != null) {\n                try {\n                    fos.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n        return checksumMatches;\n    }\n\n    private String createDigestString(byte[] fileDigest) {\n        StringBuffer checksumSb = new StringBuffer();\n        for (int i = 0; i < fileDigest.length; i++) {\n            String hexStr = Integer.toHexString(0x00ff & fileDigest[i]);\n            if (hexStr.length() < 2) {\n                checksumSb.append(\"0\");\n            }\n            checksumSb.append(hexStr);\n        }\n        return checksumSb.toString();\n    }\n\n    /**\n     * Converts an array of characters representing hexadecimal values into an\n     * array of bytes of those same values. The returned array will be half the\n     * length of the passed array, as it takes two characters to represent any\n     * given byte. An exception is thrown if the passed char array has an odd\n     * number of elements.\n     *\n     * NOTE: This code is copied from jakarta-commons codec.\n     */\n    public static byte[] decodeHex(char[] data) throws BuildException {\n        int l = data.length;\n\n        if ((l & 0x01) != 0) {\n            throw new BuildException(\"odd number of characters.\");\n        }\n\n        byte[] out = new byte[l >> 1];\n\n        for (int i = 0, j = 0; j < l; i++) {\n            int f = Character.digit(data[j++], 16) << 4;\n            f = f | Character.digit(data[j++], 16);\n            out[i] = (byte) (f & 0xFF);\n        }\n\n        return out;", "functions": [{"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTodir", "code": "    public void setTodir(File todir) {\n        this.todir = todir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAlgorithm", "code": "    public void setAlgorithm(String algorithm) {\n        this.algorithm = algorithm;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProvider", "code": "    public void setProvider(String provider) {\n        this.provider = provider;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFileext", "code": "    public void setFileext(String fileext) {\n        this.fileext = fileext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperty", "code": "    public void setProperty(String property) {\n        this.property = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTotalproperty", "code": "    public void setTotalproperty(String totalproperty) {\n        this.totalproperty = totalproperty;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVerifyproperty", "code": "    public void setVerifyproperty(String verifyProperty) {\n        this.verifyProperty = verifyProperty;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setForceOverwrite", "code": "    public void setForceOverwrite(boolean forceOverwrite) {\n        this.forceOverwrite = forceOverwrite;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setReadBufferSize", "code": "    public void setReadBufferSize(int size) {\n        this.readBufferSize = size;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        isCondition = false;\n        boolean value = validateAndExecute();\n        if (verifyProperty != null) {\n            getProject().setNewProperty(verifyProperty,\n                                new Boolean(value).toString());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [2, 6], [4, 7], [1, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 2], [7, 4], [8, 1], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "eval", "code": "    public boolean eval() throws BuildException {\n        isCondition = true;\n        return validateAndExecute();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "validateAndExecute", "code": "    private boolean validateAndExecute() throws BuildException {\n        String savedFileExt = fileext;\n\n        if (file == null && filesets.size() == 0) {\n            throw new BuildException(\n                \"Specify at least one source - a file or a fileset.\");\n        }\n\n        if (file != null && file.exists() && file.isDirectory()) {\n            throw new BuildException(\n                \"Checksum cannot be generated for directories\");\n        }\n\n        if (file != null && totalproperty != null) {\n            throw new BuildException(\n                \"File and Totalproperty cannot co-exist.\");\n        }\n\n        if (property != null && fileext != null) {\n            throw new BuildException(\n                \"Property and FileExt cannot co-exist.\");\n        }\n\n        if (property != null) {\n            if (forceOverwrite) {\n                throw new BuildException(\n                    \"ForceOverwrite cannot be used when Property is specified\");\n            }\n\n            if (file != null) {\n                if (filesets.size() > 0) {\n                    throw new BuildException(\"Multiple files cannot be used \"\n                        + \"when Property is specified\");\n                }\n            } else {\n                if (filesets.size() > 1) {\n                    throw new BuildException(\"Multiple files cannot be used \"\n                        + \"when Property is specified\");\n                }\n            }\n        }\n\n        if (verifyProperty != null) {\n            isCondition = true;\n        }\n\n        if (verifyProperty != null && forceOverwrite) {\n            throw new BuildException(\n                \"VerifyProperty and ForceOverwrite cannot co-exist.\");\n        }\n\n        if (isCondition && forceOverwrite) {\n            throw new BuildException(\"ForceOverwrite cannot be used when \"\n                + \"conditions are being used.\");\n        }\n\n        messageDigest = null;\n        if (provider != null) {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm, provider);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo, getLocation());\n            } catch (NoSuchProviderException noprovider) {\n                throw new BuildException(noprovider, getLocation());\n            }\n        } else {\n            try {\n                messageDigest = MessageDigest.getInstance(algorithm);\n            } catch (NoSuchAlgorithmException noalgo) {\n                throw new BuildException(noalgo, getLocation());\n            }\n        }\n\n        if (messageDigest == null) {\n            throw new BuildException(\"Unable to create Message Digest\",\n                                     getLocation());\n        }\n\n        if (fileext == null) {\n            fileext = \".\" + algorithm;\n        } else if (fileext.trim().length() == 0) {\n            throw new BuildException(\n                \"File extension when specified must not be an empty string\");\n        }\n\n        try {\n            int sizeofFileSet = filesets.size();\n            for (int i = 0; i < sizeofFileSet; i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n                String[] srcFiles = ds.getIncludedFiles();\n                for (int j = 0; j < srcFiles.length; j++) {\n                    File src = new File(fs.getDir(getProject()), srcFiles[j]);\n                    if (totalproperty != null || todir != null) {\n                        String relativePath = srcFiles[j].replace(File.separatorChar, '/');\n                        relativeFilePaths.put(src, relativePath);\n                    }\n                    addToIncludeFileMap(src);\n                }\n            }\n\n            addToIncludeFileMap(file);\n\n            return generateChecksums();\n        } finally {\n            fileext = savedFileExt;\n            includeFileMap.clear();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "TRY", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CATCH", "CATCH", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [1, 15], [1, 16], [2, 17], [2, 18], [3, 19], [4, 20], [0, 21], [5, 22], [6, 23], [7, 24], [8, 25], [9, 26], [10, 27], [11, 28], [12, 29], [1, 30], [1, 31], [14, 32], [1, 33], [15, 34], [17, 35], [18, 36], [3, 37], [19, 38], [4, 39], [4, 40], [20, 41], [21, 42], [5, 43], [6, 44], [23, 45], [24, 46], [8, 47], [8, 48], [25, 49], [9, 50], [26, 51], [26, 52], [10, 53], [27, 54], [27, 55], [11, 56], [28, 57], [28, 58], [12, 59], [29, 60], [29, 61], [15, 62], [15, 63], [15, 64], [15, 65], [16, 66], [17, 67], [35, 68], [35, 69], [2, 70], [37, 71], [39, 72], [40, 73], [40, 74], [43, 75], [44, 76], [45, 77], [7, 78], [47, 79], [50, 80], [51, 81], [52, 82], [53, 83], [54, 84], [55, 85], [56, 86], [58, 87], [58, 88], [59, 89], [60, 90], [60, 91], [61, 92], [62, 93], [15, 94], [67, 95], [69, 96], [70, 97], [71, 98], [71, 99], [72, 100], [39, 101], [73, 102], [74, 103], [40, 104], [75, 105], [76, 106], [78, 107], [47, 108], [47, 109], [79, 110], [48, 111], [80, 112], [83, 113], [86, 114], [88, 115], [89, 116], [62, 117], [62, 118], [63, 119], [64, 120], [95, 121], [97, 122], [100, 123], [101, 124], [102, 125], [103, 126], [104, 127], [105, 128], [105, 129], [108, 130], [109, 131], [111, 132], [62, 133], [117, 134], [62, 135], [120, 136], [65, 137], [123, 138], [125, 139], [126, 140], [108, 141], [130, 142], [130, 143], [109, 144], [131, 145], [131, 146], [132, 147], [117, 148], [134, 149], [134, 150], [118, 151], [141, 152], [144, 153], [117, 154], [149, 155], [150, 156], [151, 157], [152, 158], [153, 159], [157, 160], [158, 161], [158, 162], [159, 163], [159, 164], [148, 165], [165, 166], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 1], [16, 1], [17, 2], [18, 2], [19, 3], [20, 4], [21, 0], [22, 5], [23, 6], [24, 7], [25, 8], [26, 9], [27, 10], [28, 11], [29, 12], [30, 1], [31, 1], [32, 14], [33, 1], [34, 15], [35, 17], [36, 18], [37, 3], [38, 19], [39, 4], [40, 4], [41, 20], [42, 21], [43, 5], [44, 6], [45, 23], [46, 24], [47, 8], [48, 8], [49, 25], [50, 9], [51, 26], [52, 26], [53, 10], [54, 27], [55, 27], [56, 11], [57, 28], [58, 28], [59, 12], [60, 29], [61, 29], [62, 15], [63, 15], [64, 15], [65, 15], [66, 16], [67, 17], [68, 35], [69, 35], [70, 2], [71, 37], [72, 39], [73, 40], [74, 40], [75, 43], [76, 44], [77, 45], [78, 7], [79, 47], [80, 50], [81, 51], [82, 52], [83, 53], [84, 54], [85, 55], [86, 56], [87, 58], [88, 58], [89, 59], [90, 60], [91, 60], [92, 61], [93, 62], [94, 15], [95, 67], [96, 69], [97, 70], [98, 71], [99, 71], [100, 72], [101, 39], [102, 73], [103, 74], [104, 40], [105, 75], [106, 76], [107, 78], [108, 47], [109, 47], [110, 79], [111, 48], [112, 80], [113, 83], [114, 86], [115, 88], [116, 89], [117, 62], [118, 62], [119, 63], [120, 64], [121, 95], [122, 97], [123, 100], [124, 101], [125, 102], [126, 103], [127, 104], [128, 105], [129, 105], [130, 108], [131, 109], [132, 111], [133, 62], [134, 117], [135, 62], [136, 120], [137, 65], [138, 123], [139, 125], [140, 126], [141, 108], [142, 130], [143, 130], [144, 109], [145, 131], [146, 131], [147, 132], [148, 117], [149, 134], [150, 134], [151, 118], [152, 141], [153, 144], [154, 117], [155, 149], [156, 150], [157, 151], [158, 152], [159, 153], [160, 157], [161, 158], [162, 158], [163, 159], [164, 159], [165, 148], [166, 165], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166]]}, {"function_name": "addToIncludeFileMap", "code": "    private void addToIncludeFileMap(File file) throws BuildException {\n        if (file != null) {\n            if (file.exists()) {\n                if (property == null) {\n                    File checksumFile = getChecksumFile(file);\n                    if (forceOverwrite || isCondition\n                        || (file.lastModified() > checksumFile.lastModified())) {\n                        includeFileMap.put(file, checksumFile);\n                    } else {\n                        log(file + \" omitted as \" + checksumFile + \" is up to date.\",\n                            Project.MSG_VERBOSE);\n                        if (totalproperty != null) {\n                            String checksum = null;\n                            try {\n                                BufferedReader diskChecksumReader\n                                    = new BufferedReader(new FileReader(checksumFile));\n                                checksum = diskChecksumReader.readLine();\n                            } catch (IOException e) {\n                                throw new BuildException(\"Couldn't read checksum file \"\n                                    + checksumFile, e);\n                            }\n                            byte[] digest = decodeHex(checksum.toCharArray());\n                            allDigests.put(file, digest);\n                        }\n                    }\n                } else {\n                    includeFileMap.put(file, property);\n                }\n            } else {\n                String message = \"Could not find file \"\n                                 + file.getAbsolutePath()\n                                 + \" to generate checksum for.\";\n                log(message);\n                throw new BuildException(message, getLocation());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [4, 8], [4, 9], [7, 10], [4, 11], [9, 12], [10, 13], [8, 14], [9, 15], [9, 16], [12, 17], [14, 18], [14, 19], [9, 20], [15, 21], [19, 22], [19, 23], [15, 24], [21, 25], [21, 26], [16, 27], [24, 28], [15, 29], [15, 30], [25, 31], [25, 32], [24, 33], [24, 34], [24, 35], [28, 36], [29, 37], [24, 38], [34, 39], [34, 40], [37, 41], [37, 42], [33, 43], [39, 44], [34, 45], [35, 46], [42, 47], [43, 48], [44, 49], [45, 50], [40, 51], [47, 52], [49, 53], [51, 54], [53, 55], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 4], [9, 4], [10, 7], [11, 4], [12, 9], [13, 10], [14, 8], [15, 9], [16, 9], [17, 12], [18, 14], [19, 14], [20, 9], [21, 15], [22, 19], [23, 19], [24, 15], [25, 21], [26, 21], [27, 16], [28, 24], [29, 15], [30, 15], [31, 25], [32, 25], [33, 24], [34, 24], [35, 24], [36, 28], [37, 29], [38, 24], [39, 34], [40, 34], [41, 37], [42, 37], [43, 33], [44, 39], [45, 34], [46, 35], [47, 42], [48, 43], [49, 44], [50, 45], [51, 40], [52, 47], [53, 49], [54, 51], [55, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "getChecksumFile", "code": "    private File getChecksumFile(File file) {\n        File directory;\n        if (todir != null) {\n            String path = (String) relativeFilePaths.get(file);\n            directory = new File(todir, path).getParentFile();\n            directory.mkdirs();\n        } else {\n            directory = file.getParentFile();\n        }\n        File checksumFile = new File(directory, file.getName() + fileext);\n        return checksumFile;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [2, 7], [3, 8], [6, 9], [7, 10], [3, 11], [3, 12], [3, 13], [10, 14], [11, 15], [13, 16], [16, 17], [8, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 2], [8, 3], [9, 6], [10, 7], [11, 3], [12, 3], [13, 3], [14, 10], [15, 11], [16, 13], [17, 16], [18, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "generateChecksums", "code": "    private boolean generateChecksums() throws BuildException {\n        boolean checksumMatches = true;\n        FileInputStream fis = null;\n        FileOutputStream fos = null;\n        byte[] buf = new byte[readBufferSize];\n        try {\n            for (Enumeration e = includeFileMap.keys(); e.hasMoreElements();) {\n                messageDigest.reset();\n                File src = (File) e.nextElement();\n                if (!isCondition) {\n                    log(\"Calculating \" + algorithm + \" checksum for \" + src, Project.MSG_VERBOSE);\n                }\n                fis = new FileInputStream(src);\n                DigestInputStream dis = new DigestInputStream(fis,\n                                                              messageDigest);\n                while (dis.read(buf, 0, readBufferSize) != -1) {\n                    ;\n                }\n                dis.close();\n                fis.close();\n                fis = null;\n                byte[] fileDigest = messageDigest.digest ();\n                if (totalproperty != null) {\n                    allDigests.put(src, fileDigest);\n                }\n                String checksum = createDigestString(fileDigest);\n                Object destination = includeFileMap.get(src);\n                if (destination instanceof java.lang.String) {\n                    String prop = (String) destination;\n                    if (isCondition) {\n                        checksumMatches\n                            = checksumMatches && checksum.equals(property);\n                    } else {\n                        getProject().setNewProperty(prop, checksum);\n                    }\n                } else if (destination instanceof java.io.File) {\n                    if (isCondition) {\n                        File existingFile = (File) destination;\n                        if (existingFile.exists()) {\n                            fis = new FileInputStream(existingFile);\n                            InputStreamReader isr = new InputStreamReader(fis);\n                            BufferedReader br = new BufferedReader(isr);\n                            String suppliedChecksum = br.readLine();\n                            fis.close();\n                            fis = null;\n                            br.close();\n                            isr.close();\n                            checksumMatches = checksumMatches\n                                && checksum.equals(suppliedChecksum);\n                        } else {\n                            checksumMatches = false;\n                        }\n                    } else {\n                        File dest = (File) destination;\n                        fos = new FileOutputStream(dest);\n                        fos.write(checksum.getBytes());\n                        fos.close();\n                        fos = null;\n                    }\n                }\n            }\n            if (totalproperty != null) {\n                Set keys = allDigests.keySet();\n                Object[] keyArray = keys.toArray();\n                Arrays.sort(keyArray);\n                messageDigest.reset();\n                for (int i = 0; i < keyArray.length; i++) {\n                    File src = (File) keyArray[i];\n\n                    byte[] digest = (byte[]) allDigests.get(src);\n                    messageDigest.update(digest);\n\n                    String fileName = (String) relativeFilePaths.get(src);\n                    messageDigest.update(fileName.getBytes());\n                }\n                String totalChecksum = createDigestString(messageDigest.digest());\n                getProject().setNewProperty(totalproperty, totalChecksum);\n            }\n        } catch (Exception e) {\n            throw new BuildException(e, getLocation());\n        } finally {\n            if (fis != null) {\n                try {\n                    fis.close();\n                } catch (IOException e) {\n                }\n            }\n            if (fos != null) {\n                try {\n                    fos.close();\n                } catch (IOException e) {\n                }\n            }\n        }\n        return checksumMatches;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "CATCH", "IF", "LOOP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CATCH", "CATCH", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [4, 17], [5, 18], [6, 19], [7, 20], [12, 21], [8, 22], [13, 23], [14, 24], [10, 25], [10, 26], [10, 27], [10, 28], [15, 29], [11, 30], [11, 31], [11, 32], [11, 33], [11, 34], [11, 35], [11, 36], [11, 37], [11, 38], [20, 39], [22, 40], [24, 41], [10, 42], [26, 43], [10, 44], [10, 45], [30, 46], [30, 47], [33, 48], [11, 49], [11, 50], [11, 51], [35, 52], [11, 53], [11, 54], [11, 55], [20, 56], [22, 57], [42, 58], [25, 59], [26, 60], [26, 61], [26, 62], [27, 63], [28, 64], [46, 65], [30, 66], [30, 67], [31, 68], [32, 69], [48, 70], [34, 71], [49, 72], [52, 73], [52, 74], [36, 75], [53, 76], [59, 77], [26, 78], [26, 79], [26, 80], [46, 81], [33, 82], [74, 83], [37, 84], [38, 85], [78, 86], [84, 87], [60, 88], [61, 89], [81, 90], [81, 91], [81, 92], [66, 93], [66, 94], [87, 95], [81, 96], [81, 97], [81, 98], [81, 99], [91, 100], [93, 101], [94, 102], [95, 103], [95, 104], [96, 105], [98, 106], [99, 107], [91, 108], [91, 109], [91, 110], [102, 111], [104, 112], [91, 113], [91, 114], [91, 115], [91, 116], [91, 117], [91, 118], [91, 119], [113, 120], [114, 121], [117, 122], [108, 123], [109, 124], [110, 125], [119, 126], [121, 127], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 4], [18, 5], [19, 6], [20, 7], [21, 12], [22, 8], [23, 13], [24, 14], [25, 10], [26, 10], [27, 10], [28, 10], [29, 15], [30, 11], [31, 11], [32, 11], [33, 11], [34, 11], [35, 11], [36, 11], [37, 11], [38, 11], [39, 20], [40, 22], [41, 24], [42, 10], [43, 26], [44, 10], [45, 10], [46, 30], [47, 30], [48, 33], [49, 11], [50, 11], [51, 11], [52, 35], [53, 11], [54, 11], [55, 11], [56, 20], [57, 22], [58, 42], [59, 25], [60, 26], [61, 26], [62, 26], [63, 27], [64, 28], [65, 46], [66, 30], [67, 30], [68, 31], [69, 32], [70, 48], [71, 34], [72, 49], [73, 52], [74, 52], [75, 36], [76, 53], [77, 59], [78, 26], [79, 26], [80, 26], [81, 46], [82, 33], [83, 74], [84, 37], [85, 38], [86, 78], [87, 84], [88, 60], [89, 61], [90, 81], [91, 81], [92, 81], [93, 66], [94, 66], [95, 87], [96, 81], [97, 81], [98, 81], [99, 81], [100, 91], [101, 93], [102, 94], [103, 95], [104, 95], [105, 96], [106, 98], [107, 99], [108, 91], [109, 91], [110, 91], [111, 102], [112, 104], [113, 91], [114, 91], [115, 91], [116, 91], [117, 91], [118, 91], [119, 91], [120, 113], [121, 114], [122, 117], [123, 108], [124, 109], [125, 110], [126, 119], [127, 121], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127]]}, {"function_name": "createDigestString", "code": "    private String createDigestString(byte[] fileDigest) {\n        StringBuffer checksumSb = new StringBuffer();\n        for (int i = 0; i < fileDigest.length; i++) {\n            String hexStr = Integer.toHexString(0x00ff & fileDigest[i]);\n            if (hexStr.length() < 2) {\n                checksumSb.append(\"0\");\n            }\n            checksumSb.append(hexStr);\n        }\n        return checksumSb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [3, 9], [2, 10], [7, 11], [2, 12], [11, 13], [11, 14], [8, 15], [7, 16], [15, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 3], [10, 2], [11, 7], [12, 2], [13, 11], [14, 11], [15, 8], [16, 7], [17, 15], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "decodeHex", "code": "    public static byte[] decodeHex(char[] data) throws BuildException {\n        int l = data.length;\n\n        if ((l & 0x01) != 0) {\n            throw new BuildException(\"odd number of characters.\");\n        }\n\n        byte[] out = new byte[l >> 1];\n\n        for (int i = 0, j = 0; j < l; i++) {\n            int f = Character.digit(data[j++], 16) << 4;\n            f = f | Character.digit(data[j++], 16);\n            out[i] = (byte) (f & 0xFF);\n        }\n\n        return out;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "VAR_DECL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [2, 9], [4, 10], [8, 11], [8, 12], [2, 13], [2, 14], [2, 15], [2, 16], [3, 17], [10, 18], [12, 19], [14, 20], [9, 21], [17, 22], [18, 23], [13, 24], [20, 25], [21, 26], [21, 27], [24, 28], [25, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 2], [10, 4], [11, 8], [12, 8], [13, 2], [14, 2], [15, 2], [16, 2], [17, 3], [18, 10], [19, 12], [20, 14], [21, 9], [22, 17], [23, 18], [24, 13], [25, 20], [26, 21], [27, 21], [28, 24], [29, 25], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}], "label": 1}
{"sample_id": "camel-1.4-2380", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/idempotent/jpa/JpaMessageIdRepository.java", "language": "java", "name": "org.apache.camel.processor.idempotent.jpa.JpaMessageIdRepository", "code": "public class JpaMessageIdRepository implements MessageIdRepository {\n    protected static final String QUERY_STRING = \"select x from \" + MessageProcessed.class.getName() + \" x where x.processorName = ?1 and x.messageId = ?2\";\n    private JpaTemplate jpaTemplate;\n    private String processorName;\n    private TransactionTemplate transactionTemplate;\n\n    public JpaMessageIdRepository(JpaTemplate template, String processorName) {\n        this(template, createTransactionTemplate(template), processorName);\n    }\n\n    public JpaMessageIdRepository(JpaTemplate template, TransactionTemplate transactionTemplate, String processorName) {\n        this.jpaTemplate = template;\n        this.processorName = processorName;\n        this.transactionTemplate = transactionTemplate;\n    }\n\n    public static JpaMessageIdRepository jpaMessageIdRepository(String persistenceUnit, String processorName) {\n        EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(persistenceUnit);\n        return jpaMessageIdRepository(new JpaTemplate(entityManagerFactory), processorName);\n    }\n\n    public static JpaMessageIdRepository jpaMessageIdRepository(JpaTemplate jpaTemplate, String processorName) {\n        return new JpaMessageIdRepository(jpaTemplate, processorName);\n    }\n\n    private static TransactionTemplate createTransactionTemplate(JpaTemplate jpaTemplate) {\n        TransactionTemplate transactionTemplate = new TransactionTemplate();\n        transactionTemplate.setTransactionManager(new JpaTransactionManager(jpaTemplate.getEntityManagerFactory()));\n        transactionTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);\n        return transactionTemplate;\n    }\n\n    public boolean contains(final String messageId) {\n        Boolean rc = (Boolean)transactionTemplate.execute(new TransactionCallback() {\n            public Object doInTransaction(TransactionStatus arg0) {\n\n                List list = jpaTemplate.find(QUERY_STRING, processorName, messageId);\n                if (list.isEmpty()) {\n                    MessageProcessed processed = new MessageProcessed();\n                    processed.setProcessorName(processorName);\n                    processed.setMessageId(messageId);\n                    jpaTemplate.persist(processed);\n                    jpaTemplate.flush();\n                    return Boolean.FALSE;\n                } else {\n                    return Boolean.TRUE;\n                }\n            }\n        });\n        return rc.booleanValue();", "functions": [{"function_name": "jpaMessageIdRepository", "code": "    public static JpaMessageIdRepository jpaMessageIdRepository(String persistenceUnit, String processorName) {\n        EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(persistenceUnit);\n        return jpaMessageIdRepository(new JpaTemplate(entityManagerFactory), processorName);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jpaMessageIdRepository", "code": "    public static JpaMessageIdRepository jpaMessageIdRepository(JpaTemplate jpaTemplate, String processorName) {\n        return new JpaMessageIdRepository(jpaTemplate, processorName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createTransactionTemplate", "code": "    private static TransactionTemplate createTransactionTemplate(JpaTemplate jpaTemplate) {\n        TransactionTemplate transactionTemplate = new TransactionTemplate();\n        transactionTemplate.setTransactionManager(new JpaTransactionManager(jpaTemplate.getEntityManagerFactory()));\n        transactionTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);\n        return transactionTemplate;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "contains", "code": "    public boolean contains(final String messageId) {\n        Boolean rc = (Boolean)transactionTemplate.execute(new TransactionCallback() {\n            public Object doInTransaction(TransactionStatus arg0) {\n\n                List list = jpaTemplate.find(QUERY_STRING, processorName, messageId);\n                if (list.isEmpty()) {\n                    MessageProcessed processed = new MessageProcessed();\n                    processed.setProcessorName(processorName);\n                    processed.setMessageId(messageId);\n                    jpaTemplate.persist(processed);\n                    jpaTemplate.flush();\n                    return Boolean.FALSE;\n                } else {\n                    return Boolean.TRUE;\n                }\n            }\n        });\n        return rc.booleanValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [6, 7], [7, 8], [7, 9], [7, 10], [8, 11], [8, 12], [8, 13], [8, 14], [9, 15], [8, 16], [8, 17], [8, 18], [8, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 6], [8, 7], [9, 7], [10, 7], [11, 8], [12, 8], [13, 8], [14, 8], [15, 9], [16, 8], [17, 8], [18, 8], [19, 8], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "JpaMessageIdRepository", "code": "    public JpaMessageIdRepository(JpaTemplate template, String processorName) {\n        this(template, createTransactionTemplate(template), processorName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "JpaMessageIdRepository", "code": "    public JpaMessageIdRepository(JpaTemplate template, TransactionTemplate transactionTemplate, String processorName) {\n        this.jpaTemplate = template;\n        this.processorName = processorName;\n        this.transactionTemplate = transactionTemplate;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-2.5-5921", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hpsf/PropertySet.java", "language": "java", "name": "org.apache.poi.hpsf.PropertySet", "code": "public class PropertySet\n{\n\n    /**\n     * <p>The \"byteOrder\" field must equal this value.</p>\n     */\n    final static byte[] BYTE_ORDER_ASSERTION =\n\tnew byte[]{(byte) 0xFE, (byte) 0xFF};\n\n    /**\n     * <p>Specifies this {@link PropertySet}'s byte order. See the\n     * HPFS documentation for details!</p>\n     */\n    protected int byteOrder;\n\n    /**\n     * <p>Returns the property set stream's low-level \"byte order\"\n     * field. It is always <tt>0xFFFE</tt> .</p>\n     *\n     * @return The property set stream's low-level \"byte order\" field.\n     */\n    public int getByteOrder()\n    {\n        return byteOrder;\n    }\n\n\n\n    /**\n     * <p>The \"format\" field must equal this value.</p>\n     */\n    final static byte[] FORMAT_ASSERTION =\n\tnew byte[]{(byte) 0x00, (byte) 0x00};\n\n    /**\n     * <p>Specifies this {@link PropertySet}'s format. See the HPFS\n     * documentation for details!</p>\n     */\n    protected int format;\n\n    /**\n     * <p>Returns the property set stream's low-level \"format\"\n     * field. It is always <tt>0x0000</tt> .</p>\n     *\n     * @return The property set stream's low-level \"format\" field.\n     */\n    public int getFormat()\n    {\n        return format;\n    }\n\n\n \n    /**\n     * <p>Specifies the version of the operating system that created\n     * this {@link PropertySet}. See the HPFS documentation for\n     * details!</p>\n     */\n    protected int osVersion;\n\n\n    public final static int OS_WIN16     = 0x0000;\n    public final static int OS_MACINTOSH = 0x0001;\n    public final static int OS_WIN32     = 0x0002;\n\n    /**\n     * <p>Returns the property set stream's low-level \"OS version\"\n     * field.</p>\n     *\n     * <p><strong>FIXME:</strong> Return an <code>int</code> instead\n     * of a <code>long</code> in the next major version, i.e. when\n     * incompatible changes are allowed.</p>\n     *\n     * @return The property set stream's low-level \"OS version\" field.\n     */\n    public long getOSVersion()\n    {\n        return osVersion;\n    }\n\n\n\n    /**\n     * <p>Specifies this {@link PropertySet}'s \"classID\" field. See\n     * the HPFS documentation for details!</p>\n     */\n    protected ClassID classID;\n\n    /**\n     * <p>Returns the property set stream's low-level \"class ID\"\n     * field.</p>\n     *\n     * @return The property set stream's low-level \"class ID\" field.\n     */\n    public ClassID getClassID()\n    {\n        return classID;\n    }\n\n\n\n    /**\n     * <p>The number of sections in this {@link PropertySet}.</p>\n     */\n    protected int sectionCount;\n\n\n    /**\n     * <p>Returns the number of {@link Section}s in the property\n     * set.</p>\n     *\n     * <p><strong>FIXME:</strong> Return an <code>int</code> instead\n     * of a <code>long</code> in the next major version, i.e. when\n     * incompatible changes are allowed.</p>\n     *\n     * @return The number of {@link Section}s in the property set.\n     */\n    public long getSectionCount()\n    {\n        return sectionCount;\n    }\n\n\n\n    /**\n     * <p>The sections in this {@link PropertySet}.</p>\n     */\n    protected List sections;\n\n\n    /**\n     * <p>Returns the {@link Section}s in the property set.</p>\n     *\n     * @return The {@link Section}s in the property set.\n     */\n    public List getSections()\n    {\n        return sections;\n    }\n\n\n\n    /**\n     * <p>Creates an empty (uninitialized) {@link PropertySet}.</p>\n     *\n     * <p><strong>Please note:</strong> For the time being this\n     * constructor is protected since it is used for internal purposes\n     * only, but expect it to become public once the property set's\n     * writing functionality is implemented.</p>\n     */\n    protected PropertySet()\n    {}\n\n\n\n    /**\n     * <p>Creates a {@link PropertySet} instance from an {@link\n     * InputStream} in the Horrible Property Set Format.</p>\n     *\n     * <p>The constructor reads the first few bytes from the stream\n     * and determines whether it is really a property set stream. If\n     * it is, it parses the rest of the stream. If it is not, it\n     * resets the stream to its beginning in order to let other\n     * components mess around with the data and throws an\n     * exception.</p>\n     *\n     * @param stream Holds the data making out the property set\n     * stream.\n     * @throws MarkUnsupportedException if the stream does not support\n     * the {@link InputStream#markSupported} method.\n     * @throws IOException if the {@link InputStream} cannot not be\n     * accessed as needed.\n     */\n    public PropertySet(final InputStream stream)\n\tthrows NoPropertySetStreamException, MarkUnsupportedException,\n\t       IOException\n    {\n        if (isPropertySetStream(stream))\n\t{\n            final int avail = stream.available();\n            final byte[] buffer = new byte[avail];\n            stream.read(buffer, 0, buffer.length);\n            init(buffer, 0, buffer.length);\n        }\n\telse\n            throw new NoPropertySetStreamException();\n    }\n\n\n\n    /**\n     * <p>Creates a {@link PropertySet} instance from a byte array\n     * that represents a stream in the Horrible Property Set\n     * Format.</p>\n     *\n     * @param stream The byte array holding the stream data.\n     * @param offset The offset in <var>stream</var> where the stream\n     * data begin. If the stream data begin with the first byte in the\n     * array, the <var>offset</var> is 0.\n     * @param length The length of the stream data.\n     * @throws NoPropertySetStreamException if the byte array is not a\n     * property set stream.\n     */\n    public PropertySet(final byte[] stream, final int offset, final int length)\n\tthrows NoPropertySetStreamException\n    {\n        if (isPropertySetStream(stream, offset, length))\n            init(stream, offset, length);\n\telse\n            throw new NoPropertySetStreamException();\n    }\n\n\n\n    /**\n     * <p>Creates a {@link PropertySet} instance from a byte array\n     * that represents a stream in the Horrible Property Set\n     * Format.</p>\n     *\n     * @param stream The byte array holding the stream data. The\n     * complete byte array contents is the stream data.\n     * @throws NoPropertySetStreamException if the byte array is not a\n     * property set stream.\n     */\n    public PropertySet(final byte[] stream) throws NoPropertySetStreamException\n    {\n        this(stream, 0, stream.length);\n    }\n\n\n\n    /**\n     * <p>Checks whether an {@link InputStream} is in the Horrible\n     * Property Set Format.</p>\n     *\n     * @param stream The {@link InputStream} to check. In order to\n     * perform the check, the method reads the first bytes from the\n     * stream. After reading, the stream is reset to the position it\n     * had before reading. The {@link InputStream} must support the\n     * {@link InputStream#mark} method.\n     * @return <code>true</code> if the stream is a property set\n     * stream, else <code>false</code>.\n     * @throws MarkUnsupportedException if the {@link InputStream}\n     * does not support the {@link InputStream#mark} method.\n     */\n    public static boolean isPropertySetStream(final InputStream stream)\n\tthrows MarkUnsupportedException, IOException\n    {\n        /*\n         * Read at most this many bytes.\n         */\n        final int BUFFER_SIZE = 50;\n\n        /*\n         * Mark the current position in the stream so that we can\n         * reset to this position if the stream does not contain a\n         * property set.\n         */\n        if (!stream.markSupported())\n            throw new MarkUnsupportedException(stream.getClass().getName());\n\tstream.mark(BUFFER_SIZE);\n\n        /*\n         * Read a couple of bytes from the stream.\n         */\n        final byte[] buffer = new byte[BUFFER_SIZE];\n        final int bytes =\n\t    stream.read(buffer, 0,\n\t\t\tMath.min(buffer.length, stream.available()));\n        final boolean isPropertySetStream =\n\t    isPropertySetStream(buffer, 0, bytes);\n        stream.reset();\n        return isPropertySetStream;\n    }\n\n\n\n    /**\n     * <p>Checks whether a byte array is in the Horrible Property Set\n     * Format.</p>\n     *\n     * @param src The byte array to check.\n     * @param offset The offset in the byte array.\n     * @param length The significant number of bytes in the byte\n     * array. Only this number of bytes will be checked.\n     * @return <code>true</code> if the byte array is a property set\n     * stream, <code>false</code> if not.\n     */\n    public static boolean isPropertySetStream(final byte[] src, int offset,\n\t\t\t\t\t      final int length)\n    {\n        /*\n         * Read the header fields of the stream. They must always be\n         * there.\n         */\n        final int byteOrder = LittleEndian.getUShort(src, offset);\n        offset += LittleEndian.SHORT_SIZE;\n        byte[] temp = new byte[LittleEndian.SHORT_SIZE];\n        LittleEndian.putShort(temp,(short)byteOrder);\n        if (!Util.equal(temp, BYTE_ORDER_ASSERTION))\n            return false;\n\tfinal int format = LittleEndian.getUShort(src, offset);\n        offset += LittleEndian.SHORT_SIZE;\n        temp = new byte[LittleEndian.SHORT_SIZE];\n        LittleEndian.putShort(temp,(short)format);\n        if (!Util.equal(temp, FORMAT_ASSERTION))\n            return false;\n\tfinal long osVersion = LittleEndian.getUInt(src, offset);\n        offset += LittleEndian.INT_SIZE;\n        final ClassID classID = new ClassID(src, offset);\n        offset += ClassID.LENGTH;\n        final long sectionCount = LittleEndian.getUInt(src, offset);\n        offset += LittleEndian.INT_SIZE;\n        if (sectionCount < 1)\n            return false;\n\treturn true;\n    }\n\n\n\n    /**\n     * <p>Initializes this {@link PropertySet} instance from a byte\n     * array. The method assumes that it has been checked already that\n     * the byte array indeed represents a property set stream. It does\n     * no more checks on its own.</p>\n     *\n     * @param src Byte array containing the property set stream\n     * @param offset The property set stream starts at this offset\n     * from the beginning of <var>src</src>\n     * @param length Length of the property set stream.\n     */\n    private void init(final byte[] src, int offset, final int length)\n    {\n        /*\n         * Read the stream's header fields.\n         */\n        byteOrder = LittleEndian.getUShort(src, offset);\n        offset += LittleEndian.SHORT_SIZE;\n        format = LittleEndian.getUShort(src, offset);\n        offset += LittleEndian.SHORT_SIZE;\n        osVersion = (int) LittleEndian.getUInt(src, offset);\n        offset += LittleEndian.INT_SIZE;\n        classID = new ClassID(src, offset);\n        offset += ClassID.LENGTH;\n        sectionCount = LittleEndian.getInt(src, offset);\n        offset += LittleEndian.INT_SIZE;\n\tif (sectionCount <= 0)\n\t    throw new HPSFRuntimeException(\"Section count \" + sectionCount +\n\t\t\t\t\t   \" must be greater than 0.\");\n\n        /*\n         * Read the sections, which are following the header. They\n         * start with an array of section descriptions. Each one\n         * consists of a format ID telling what the section contains\n         * and an offset telling how many bytes from the start of the\n         * stream the section begins.\n         */\n        /*\n         * Most property sets have only one section. The Document\n         * Summary Information stream has 2. Everything else is a rare\n         * exception and is no longer fostered by Microsoft.\n         */\n        sections = new ArrayList(2);\n\n        /*\n         * Loop over the section descriptor array. Each descriptor\n         * consists of a ClassID and a DWord, and we have to increment\n         * \"offset\" accordingly.\n         */\n        for (int i = 0; i < sectionCount; i++)\n\t{\n            final Section s = new Section(src, offset);\n            offset += ClassID.LENGTH + LittleEndian.INT_SIZE;\n            sections.add(s);\n        }\n    }\n\n\n\n    /**\n     * <p>Checks whether this {@link PropertySet} represents a Summary\n     * Information.</p>\n     *\n     * @return <code>true</code> if this {@link PropertySet}\n     * represents a Summary Information, else <code>false</code>.\n     */\n    public boolean isSummaryInformation()\n    {\n        return Util.equal(((Section) sections.get(0)).getFormatID().getBytes(),\n\t\t\t  SectionIDMap.SUMMARY_INFORMATION_ID);\n    }\n\n\n\n    /**\n     * <p>Checks whether this {@link PropertySet} is a Document\n     * Summary Information.</p>\n     *\n     * @return <code>true</code> if this {@link PropertySet}\n     * represents a Document Summary Information, else <code>false</code>.\n     */\n    public boolean isDocumentSummaryInformation()\n    {\n        return Util.equal(((Section) sections.get(0)).getFormatID().getBytes(),\n\t\t\t  SectionIDMap.DOCUMENT_SUMMARY_INFORMATION_ID);\n    }\n\n\n\n    /**\n     * <p>Convenience method returning the {@link Property} array\n     * contained in this property set. It is a shortcut for getting\n     * the {@link PropertySet}'s {@link Section}s list and then\n     * getting the {@link Property} array from the first {@link\n     * Section}. However, it can only be used if the {@link\n     * PropertySet} contains exactly one {@link Section}, so check\n     * {@link #getSectionCount} first!</p>\n     *\n     * @return The properties of the only {@link Section} of this\n     * {@link PropertySet}.\n     * @throws NoSingleSectionException if the {@link PropertySet} has\n     * more or less than one {@link Section}.\n     */\n    public Property[] getProperties()\n\tthrows NoSingleSectionException\n    {\n        return getSingleSection().getProperties();\n    }\n\n\n\n    /**\n     * <p>Convenience method returning the value of the property with\n     * the specified ID. If the property is not available,\n     * <code>null</code> is returned and a subsequent call to {@link\n     * #wasNull} will return <code>true</code> .</p>\n     *\n     * @param id The property ID\n     * @return The property value\n     * @throws NoSingleSectionException if the {@link PropertySet} has\n     * more or less than one {@link Section}.\n     */\n    protected Object getProperty(final int id) throws NoSingleSectionException\n    {\n        return getSingleSection().getProperty(id);\n    }\n\n\n\n    /**\n     * <p>Convenience method returning the value of a boolean property\n     * with the specified ID. If the property is not available,\n     * <code>false</code> is returned. A subsequent call to {@link\n     * #wasNull} will return <code>true</code> to let the caller\n     * distinguish that case from a real property value of\n     * <code>false</code>.</p>\n     *\n     * @param id The property ID\n     * @return The property value\n     * @throws NoSingleSectionException if the {@link PropertySet} has\n     * more or less than one {@link Section}.\n     */\n    protected boolean getPropertyBooleanValue(final int id)\n\tthrows NoSingleSectionException\n    {\n        return getSingleSection().getPropertyBooleanValue(id);\n    }\n\n\n\n    /**\n     * <p>Convenience method returning the value of the numeric\n     * property with the specified ID. If the property is not\n     * available, 0 is returned. A subsequent call to {@link #wasNull}\n     * will return <code>true</code> to let the caller distinguish\n     * that case from a real property value of 0.</p>\n     *\n     * @param id The property ID\n     * @return The propertyIntValue value\n     * @throws NoSingleSectionException if the {@link PropertySet} has\n     * more or less than one {@link Section}.\n     */\n    protected int getPropertyIntValue(final int id)\n\tthrows NoSingleSectionException\n    {\n        return getSingleSection().getPropertyIntValue(id);\n    }\n\n\n\n    /**\n     * <p>Checks whether the property which the last call to {@link\n     * #getPropertyIntValue} or {@link #getProperty} tried to access\n     * was available or not. This information might be important for\n     * callers of {@link #getPropertyIntValue} since the latter\n     * returns 0 if the property does not exist. Using {@link\n     * #wasNull}, the caller can distiguish this case from a\n     * property's real value of 0.</p>\n     *\n     * @return <code>true</code> if the last call to {@link\n     * #getPropertyIntValue} or {@link #getProperty} tried to access a\n     * property that was not available, else <code>false</code>.\n     * @throws NoSingleSectionException if the {@link PropertySet} has\n     * more than one {@link Section}.\n     */\n    public boolean wasNull() throws NoSingleSectionException\n    {\n        return getSingleSection().wasNull();\n    }\n\n\n\n    /**\n     * <p>If the {@link PropertySet} has only a single section this\n     * method returns it.</p>\n     *\n     *@return The singleSection value\n     *@throws NoSingleSectionException if the {@link PropertySet} has\n     *more or less than exactly one {@link Section}.\n     */\n    public Section getSingleSection()\n    {\n        if (sectionCount != 1)\n\t    throw new NoSingleSectionException\n\t\t(\"Property set contains \" + sectionCount + \" sections.\");\n\treturn ((Section) sections.get(0));", "functions": [{"function_name": "getByteOrder", "code": "    public int getByteOrder()\n    {\n        return byteOrder;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFormat", "code": "    public int getFormat()\n    {\n        return format;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOSVersion", "code": "    public long getOSVersion()\n    {\n        return osVersion;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getClassID", "code": "    public ClassID getClassID()\n    {\n        return classID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSectionCount", "code": "    public long getSectionCount()\n    {\n        return sectionCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSections", "code": "    public List getSections()\n    {\n        return sections;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isPropertySetStream", "code": "    public static boolean isPropertySetStream(final InputStream stream)\n\tthrows MarkUnsupportedException, IOException\n    {\n        /*\n         * Read at most this many bytes.\n         */\n        final int BUFFER_SIZE = 50;\n\n        /*\n         * Mark the current position in the stream so that we can\n         * reset to this position if the stream does not contain a\n         * property set.\n         */\n        if (!stream.markSupported())\n            throw new MarkUnsupportedException(stream.getClass().getName());\n\tstream.mark(BUFFER_SIZE);\n\n        /*\n         * Read a couple of bytes from the stream.\n         */\n        final byte[] buffer = new byte[BUFFER_SIZE];\n        final int bytes =\n\t    stream.read(buffer, 0,\n\t\t\tMath.min(buffer.length, stream.available()));\n        final boolean isPropertySetStream =\n\t    isPropertySetStream(buffer, 0, bytes);\n        stream.reset();\n        return isPropertySetStream;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [5, 10], [5, 11], [2, 12], [3, 13], [10, 14], [6, 15], [12, 16], [13, 17], [13, 18], [14, 19], [17, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 5], [11, 5], [12, 2], [13, 3], [14, 10], [15, 6], [16, 12], [17, 13], [18, 13], [19, 14], [20, 17], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "isPropertySetStream", "code": "    public static boolean isPropertySetStream(final byte[] src, int offset,\n\t\t\t\t\t      final int length)\n    {\n        /*\n         * Read the header fields of the stream. They must always be\n         * there.\n         */\n        final int byteOrder = LittleEndian.getUShort(src, offset);\n        offset += LittleEndian.SHORT_SIZE;\n        byte[] temp = new byte[LittleEndian.SHORT_SIZE];\n        LittleEndian.putShort(temp,(short)byteOrder);\n        if (!Util.equal(temp, BYTE_ORDER_ASSERTION))\n            return false;\n\tfinal int format = LittleEndian.getUShort(src, offset);\n        offset += LittleEndian.SHORT_SIZE;\n        temp = new byte[LittleEndian.SHORT_SIZE];\n        LittleEndian.putShort(temp,(short)format);\n        if (!Util.equal(temp, FORMAT_ASSERTION))\n            return false;\n\tfinal long osVersion = LittleEndian.getUInt(src, offset);\n        offset += LittleEndian.INT_SIZE;\n        final ClassID classID = new ClassID(src, offset);\n        offset += ClassID.LENGTH;\n        final long sectionCount = LittleEndian.getUInt(src, offset);\n        offset += LittleEndian.INT_SIZE;\n        if (sectionCount < 1)\n            return false;\n\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "RETURN", "CALL", "CALL", "ASSIGN", "ASSIGN", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [2, 16], [0, 17], [0, 18], [0, 19], [6, 20], [6, 21], [0, 22], [0, 23], [0, 24], [8, 25], [8, 26], [0, 27], [0, 28], [15, 29], [16, 30], [3, 31], [4, 32], [5, 33], [20, 34], [7, 35], [25, 36], [10, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 2], [17, 0], [18, 0], [19, 0], [20, 6], [21, 6], [22, 0], [23, 0], [24, 0], [25, 8], [26, 8], [27, 0], [28, 0], [29, 15], [30, 16], [31, 3], [32, 4], [33, 5], [34, 20], [35, 7], [36, 25], [37, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "init", "code": "    private void init(final byte[] src, int offset, final int length)\n    {\n        /*\n         * Read the stream's header fields.\n         */\n        byteOrder = LittleEndian.getUShort(src, offset);\n        offset += LittleEndian.SHORT_SIZE;\n        format = LittleEndian.getUShort(src, offset);\n        offset += LittleEndian.SHORT_SIZE;\n        osVersion = (int) LittleEndian.getUInt(src, offset);\n        offset += LittleEndian.INT_SIZE;\n        classID = new ClassID(src, offset);\n        offset += ClassID.LENGTH;\n        sectionCount = LittleEndian.getInt(src, offset);\n        offset += LittleEndian.INT_SIZE;\n\tif (sectionCount <= 0)\n\t    throw new HPSFRuntimeException(\"Section count \" + sectionCount +\n\t\t\t\t\t   \" must be greater than 0.\");\n\n        /*\n         * Read the sections, which are following the header. They\n         * start with an array of section descriptions. Each one\n         * consists of a format ID telling what the section contains\n         * and an offset telling how many bytes from the start of the\n         * stream the section begins.\n         */\n        /*\n         * Most property sets have only one section. The Document\n         * Summary Information stream has 2. Everything else is a rare\n         * exception and is no longer fostered by Microsoft.\n         */\n        sections = new ArrayList(2);\n\n        /*\n         * Loop over the section descriptor array. Each descriptor\n         * consists of a ClassID and a DWord, and we have to increment\n         * \"offset\" accordingly.\n         */\n        for (int i = 0; i < sectionCount; i++)\n\t{\n            final Section s = new Section(src, offset);\n            offset += ClassID.LENGTH + LittleEndian.INT_SIZE;\n            sections.add(s);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [2, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [1, 20], [7, 21], [8, 22], [9, 23], [11, 24], [13, 25], [17, 26], [19, 27], [1, 28], [1, 29], [1, 30], [21, 31], [22, 32], [15, 33], [29, 34], [20, 35], [32, 36], [32, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 2], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 1], [21, 7], [22, 8], [23, 9], [24, 11], [25, 13], [26, 17], [27, 19], [28, 1], [29, 1], [30, 1], [31, 21], [32, 22], [33, 15], [34, 29], [35, 20], [36, 32], [37, 32], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "isSummaryInformation", "code": "    public boolean isSummaryInformation()\n    {\n        return Util.equal(((Section) sections.get(0)).getFormatID().getBytes(),\n\t\t\t  SectionIDMap.SUMMARY_INFORMATION_ID);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isDocumentSummaryInformation", "code": "    public boolean isDocumentSummaryInformation()\n    {\n        return Util.equal(((Section) sections.get(0)).getFormatID().getBytes(),\n\t\t\t  SectionIDMap.DOCUMENT_SUMMARY_INFORMATION_ID);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getProperties", "code": "    public Property[] getProperties()\n\tthrows NoSingleSectionException\n    {\n        return getSingleSection().getProperties();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getProperty", "code": "    protected Object getProperty(final int id) throws NoSingleSectionException\n    {\n        return getSingleSection().getProperty(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getPropertyBooleanValue", "code": "    protected boolean getPropertyBooleanValue(final int id)\n\tthrows NoSingleSectionException\n    {\n        return getSingleSection().getPropertyBooleanValue(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getPropertyIntValue", "code": "    protected int getPropertyIntValue(final int id)\n\tthrows NoSingleSectionException\n    {\n        return getSingleSection().getPropertyIntValue(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "wasNull", "code": "    public boolean wasNull() throws NoSingleSectionException\n    {\n        return getSingleSection().wasNull();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSingleSection", "code": "    public Section getSingleSection()\n    {\n        if (sectionCount != 1)\n\t    throw new NoSingleSectionException\n\t\t(\"Property set contains \" + sectionCount + \" sections.\");\n\treturn ((Section) sections.get(0));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 5], [3, 6], [4, 7], [5, 8], [6, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 2], [4, 2], [5, 1], [6, 3], [7, 4], [8, 5], [9, 6], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "PropertySet", "code": "    protected PropertySet()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PropertySet", "code": "    public PropertySet(final InputStream stream)\n\tthrows NoPropertySetStreamException, MarkUnsupportedException,\n\t       IOException\n    {\n        if (isPropertySetStream(stream))\n\t{\n            final int avail = stream.available();\n            final byte[] buffer = new byte[avail];\n            stream.read(buffer, 0, buffer.length);\n            init(buffer, 0, buffer.length);\n        }\n\telse\n            throw new NoPropertySetStreamException();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "THROW_RAISE", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [8, 10], [9, 11], [7, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 8], [11, 9], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "PropertySet", "code": "    public PropertySet(final byte[] stream, final int offset, final int length)\n\tthrows NoPropertySetStreamException\n    {\n        if (isPropertySetStream(stream, offset, length))\n            init(stream, offset, length);\n\telse\n            throw new NoPropertySetStreamException();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "PropertySet", "code": "    public PropertySet(final byte[] stream) throws NoPropertySetStreamException\n    {\n        this(stream, 0, stream.length);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.1-4162", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/BshClassManager.java", "language": "java", "name": "bsh.BshClassManager", "code": "public abstract class BshClassManager\n{\n\t/** Singleton class manager */\n\tprivate static BshClassManager manager;\n\tprivate static boolean checkedForManager;\n\t// Use a hashtable as a Set...\n\tprivate static Object NOVALUE = new Object(); \n\t\n\t/**\n\t\tAn external classloader supplied by the setClassLoader() command.\n\t*/\n\tprivate static ClassLoader externalClassLoader;\n\n\t/**\n\t\tGlobal cache for things we know are classes.\n\t\tNote: these should probably be re-implemented with Soft references.\n\t\t(as opposed to strong or Weak)\n\t*/\n    protected transient static Hashtable absoluteClassCache = new Hashtable();\n\t/**\n\t\tGlobal cache for things we know are *not* classes.\n\t\tNote: these should probably be re-implemented with Soft references.\n\t\t(as opposed to strong or Weak)\n\t*/\n    protected transient static Hashtable absoluteNonClasses = new Hashtable();\n\n\t// Begin static methods\n\n\t/**\n\t\t@return the BshClassManager singleton or null, indicating no\n\t\tclass manager is available.\n\t*/\n// Note: this should probably throw Capabilities.Unavailable instead of\n// returning null\n\tpublic static BshClassManager getClassManager() \n\t{\n\t\t// Bootstrap the class manager if it exists\n\n\t\t// have we loaded it before?\n\t\tif ( !checkedForManager && manager == null )\n\t\t\t// Do we have the necessary jdk1.2 packages?\n\t\t\ttry {\n\t\t\t\tif ( plainClassForName(\"java.lang.ref.WeakReference\") != null\n\t\t\t\t\t&& plainClassForName(\"java.util.HashMap\")  != null )\n\t\t\t\t{\n\t\t\t\t\t// try to load the implementation\n\t\t\t\t\tClass bcm = plainClassForName(\n\t\t\t\t\t\t\"bsh.classpath.ClassManagerImpl\");\n\t\t\t\t\tmanager = (BshClassManager)bcm.newInstance();\n\t\t\t\t}\n\t\t\t} catch ( ClassNotFoundException e ) {\n\t\t\t\t//System.err.println(\"No class manager available.\");\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tSystem.err.println(\"Error loading classmanager: \"+e);\n\t\t\t}\n\n\t\tcheckedForManager = true;\n\t\treturn manager;\n\t}\n\n\tpublic static boolean classExists( String name ) {\n\t\treturn ( classForName( name ) != null );\n\t}\n\n\t/**\n\t\tLoad the specified class by name, taking into account added classpath\n\t\tand reloaded classes, etc.\n\t\t@return the class or null\n\t*/\n\tpublic static Class classForName( String name ) {\n\t\tBshClassManager manager = getClassManager(); // prime the singleton\n\t\tif ( manager != null )\n\t\t\treturn manager.getClassForName( name );\n\t\telse\n\t\t\ttry {\n\t\t\t\treturn plainClassForName( name );\n\t\t\t} catch ( ClassNotFoundException e ) {\n\t\t\t\treturn null;\n\t\t\t}\n\t}\n\n\t/**\n\t\tPerform a plain Class.forName() or call the externally provided\n\t\tclass loader.\n\t\tIf a BshClassManager implementation is loaded the call will be \n\t\tdelegated to it, to allow for additional hooks.\n\n\t\tThis simply wraps that bottom level class lookup call and provides a \n\t\tcentral point for monitoring and handling certain Java version \n\t\tdependent bugs, etc.\n\n\t\t@see #getPlainClassForName( String )\n\t\t@return the class\n\t*/\n\tpublic static Class plainClassForName( String name ) \n\t\tthrows ClassNotFoundException \n\t{\n\t\ttry {\n\t\t\tClass c;\n\t\t\tif ( externalClassLoader != null )\n\t\t\t\tc = externalClassLoader.loadClass( name );\n\t\t\telse {\n\t\t\t\t// If BCM exists, delegate to it.\n\t\t\t\tBshClassManager bcm = manager; // Don't create if not there yet.\n\t\t\t\tif ( bcm != null )\n\t\t\t\t\tc = bcm.getPlainClassForName( name );\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\tc = Class.forName( name );\n\t\t\t}\n\n\t\t\tcacheClassInfo( name, c );\n\t\t\treturn c;\n\t\t/*\n\t\t\tThis is weird... jdk under Win is throwing these to\n\t\t\twarn about lower case / upper case possible mismatch.\n\t\t\te.g. bsh.console bsh.Console\n\t\t*/\n\t\t} catch ( NoClassDefFoundError e ) {\n\t\t\tcacheClassInfo( name, null ); // non-class\n\t\t\tthrow new ClassNotFoundException( e.toString() );\n\t\t}\n\t}\n\n\t/**\n\t\tCache info about whether name is a class or not.\n\t\t@param value \n\t\t\tif value is non-null, cache the class\n\t\t\tif value is null, set the flag that it is *not* a class to\n\t\t\tspeed later resolution\n\t*/\n\tpublic static void cacheClassInfo( String name, Class value ) {\n\t\tif ( value != null )\n\t\t\tabsoluteClassCache.put( name, value );\n\t\telse\n\t\t\tabsoluteNonClasses.put( name, NOVALUE );\n\t}\n\n\t/**\n\t\tClear the static caches in BshClassManager\n\t*/\n\tprotected void clearCaches() {\n    \tabsoluteNonClasses = new Hashtable();\n    \tabsoluteClassCache = new Hashtable();\n\t}\n\n\t/**\n\t\tAdd a BshClassManager.Listener to the class manager.\n\t\tThe listener is informed upon changes to the classpath.\n\t\tThis is a static convenience form of BshClassManager addListener().\n\t\tIf there is no class manager the listener will be ignored.\n\t*/\n\tpublic static void addCMListener( Listener l ) {\n\t\tgetClassManager(); // prime it\n\t\tif ( manager != null )\n\t\t\tmanager.addListener( l );\n\t}\n\n\t/**\n\t\tSet an external class loader.  BeanShell will use this at the same \n\t\tpoint it would otherwise use the plain Class.forName().\n\t\ti.e. if no explicit classpath management is done from the script\n\t\t(addClassPath(), setClassPath(), reloadClasses()) then BeanShell will\n\t\tonly use the supplied classloader.  If additional classpath management\n\t\tis done then BeanShell will perform that in addition to the supplied\n\t\texternal classloader.\n\t\tHowever BeanShell is not currently able to reload\n\t\tclasses supplied through the external classloader.\n\t*/\n\tpublic static void setClassLoader( ClassLoader externalCL ) \n\t{\n\t\texternalClassLoader = externalCL;\n\t\tBshClassManager bcm = getClassManager();\n\t\tif ( bcm != null )\n\t\t\tbcm.classLoaderChanged();\n\t}\n\n\t// end static methods\n\n\tpublic static interface Listener \n\t{\n\t\tpublic void classLoaderChanged();\n\t}\n\n\t// Begin interface methods\n\n\t/** @see #classForName( String ) */\n\tpublic abstract Class getClassForName( String name );\n\n\t/** \n\t\tDelegate for plainClassForName.\n\t\t@see #plainClassForName( String )\n\t */\n\tpublic abstract Class getPlainClassForName( String name ) \n\t\tthrows ClassNotFoundException ;\n\n\tpublic abstract ClassLoader getBaseLoader();\n\n\tpublic abstract ClassLoader getLoaderForClass( String name );\n\n\tpublic abstract void addClassPath( URL path )\n\t\tthrows IOException;\n\n\t/**\n\t\tClear all loaders and start over.  No class loading.\n\t*/\n\tpublic abstract void reset();\n\n\t/**\n\t\tSet a new base classpath and create a new base classloader.\n\t\tThis means all types change. \n\t*/\n\tpublic abstract void setClassPath( URL [] cp );\n\n\t/**\n\t\tOverlay the entire path with a new class loader.\n\t\tSet the base path to the user path + base path.\n\n\t\tNo point in including the boot class path (can't reload thos).\n\t*/\n\tpublic abstract void reloadAllClasses() throws ClassPathException;\n\n\t/**\n\t\tReloading classes means creating a new classloader and using it\n\t\twhenever we are asked for classes in the appropriate space.\n\t\tFor this we use a DiscreteFilesClassLoader\n\t*/\n\tpublic abstract void reloadClasses( String [] classNames )\n\t\tthrows ClassPathException;\n\n\t/**\n\t\tReload all classes in the specified package: e.g. \"com.sun.tools\"\n\n\t\tThe special package name \"<unpackaged>\" can be used to refer \n\t\tto unpackaged classes.\n\t*/\n\tpublic abstract void reloadPackage( String pack ) \n\t\tthrows ClassPathException ;\n\n\t/**\n\t\tThis has been removed from the interface to shield the core from the\n\t\trest of the classpath package. If you need the classpath you will have\n\t\tto cast the classmanager to its impl.\n\n\t\tpublic abstract BshClassPath getClassPath() throws ClassPathException;\n\t*/\n\n\t/**\n\t\tSupport for \"import *;\"\n\t\tHide details in here as opposed to NameSpace.\n\tNote: this used to be package private...\n\t*/\n\tpublic abstract void doSuperImport() throws EvalError;\n\n\t/**\n\t\tReturn the name or null if none is found,\n\t\tThrow an ClassPathException containing detail if name is ambigous.\n\tNote: this used to be package private...\n\t*/\n\tpublic abstract String getClassNameByUnqName( String name ) \n\t\tthrows ClassPathException;\n\n\tpublic abstract void addListener( Listener l );\n\n\tpublic abstract void removeListener( Listener l );\n\n\tpublic abstract void dump( PrintWriter pw );\n\n\tprotected abstract void classLoaderChanged();", "functions": [{"function_name": "getClassManager", "code": "\tpublic static BshClassManager getClassManager() \n\t{\n\t\t// Bootstrap the class manager if it exists\n\n\t\t// have we loaded it before?\n\t\tif ( !checkedForManager && manager == null )\n\t\t\t// Do we have the necessary jdk1.2 packages?\n\t\t\ttry {\n\t\t\t\tif ( plainClassForName(\"java.lang.ref.WeakReference\") != null\n\t\t\t\t\t&& plainClassForName(\"java.util.HashMap\")  != null )\n\t\t\t\t{\n\t\t\t\t\t// try to load the implementation\n\t\t\t\t\tClass bcm = plainClassForName(\n\t\t\t\t\t\t\"bsh.classpath.ClassManagerImpl\");\n\t\t\t\t\tmanager = (BshClassManager)bcm.newInstance();\n\t\t\t\t}\n\t\t\t} catch ( ClassNotFoundException e ) {\n\t\t\t\t//System.err.println(\"No class manager available.\");\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tSystem.err.println(\"Error loading classmanager: \"+e);\n\t\t\t}\n\n\t\tcheckedForManager = true;\n\t\treturn manager;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "TRY", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [3, 6], [4, 7], [4, 8], [4, 9], [5, 10], [9, 11], [10, 12], [7, 13], [9, 14], [11, 15], [11, 16], [13, 17], [9, 18], [15, 19], [15, 20], [16, 21], [16, 22], [17, 23], [14, 24], [20, 25], [22, 26], [18, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 3], [7, 4], [8, 4], [9, 4], [10, 5], [11, 9], [12, 10], [13, 7], [14, 9], [15, 11], [16, 11], [17, 13], [18, 9], [19, 15], [20, 15], [21, 16], [22, 16], [23, 17], [24, 14], [25, 20], [26, 22], [27, 18], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "classExists", "code": "\tpublic static boolean classExists( String name ) {\n\t\treturn ( classForName( name ) != null );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "classForName", "code": "\tpublic static Class classForName( String name ) {\n\t\tBshClassManager manager = getClassManager(); // prime the singleton\n\t\tif ( manager != null )\n\t\t\treturn manager.getClassForName( name );\n\t\telse\n\t\t\ttry {\n\t\t\t\treturn plainClassForName( name );\n\t\t\t} catch ( ClassNotFoundException e ) {\n\t\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "TRY", "RETURN", "BINARY_OP", "CATCH", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [5, 9], [6, 10], [2, 11], [7, 12], [8, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 5], [10, 6], [11, 2], [12, 7], [13, 8], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "plainClassForName", "code": "\tpublic static Class plainClassForName( String name ) \n\t\tthrows ClassNotFoundException \n\t{\n\t\ttry {\n\t\t\tClass c;\n\t\t\tif ( externalClassLoader != null )\n\t\t\t\tc = externalClassLoader.loadClass( name );\n\t\t\telse {\n\t\t\t\t// If BCM exists, delegate to it.\n\t\t\t\tBshClassManager bcm = manager; // Don't create if not there yet.\n\t\t\t\tif ( bcm != null )\n\t\t\t\t\tc = bcm.getPlainClassForName( name );\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\tc = Class.forName( name );\n\t\t\t}\n\n\t\t\tcacheClassInfo( name, c );\n\t\t\treturn c;\n\t\t/*\n\t\t\tThis is weird... jdk under Win is throwing these to\n\t\t\twarn about lower case / upper case possible mismatch.\n\t\t\te.g. bsh.console bsh.Console\n\t\t*/\n\t\t} catch ( NoClassDefFoundError e ) {\n\t\t\tcacheClassInfo( name, null ); // non-class\n\t\t\tthrow new ClassNotFoundException( e.toString() );", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [1, 8], [5, 9], [7, 10], [3, 11], [5, 12], [5, 13], [5, 14], [9, 15], [10, 16], [11, 17], [12, 18], [14, 19], [12, 20], [12, 21], [18, 22], [20, 23], [21, 24], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 1], [9, 5], [10, 7], [11, 3], [12, 5], [13, 5], [14, 5], [15, 9], [16, 10], [17, 11], [18, 12], [19, 14], [20, 12], [21, 12], [22, 18], [23, 20], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "cacheClassInfo", "code": "\tpublic static void cacheClassInfo( String name, Class value ) {\n\t\tif ( value != null )\n\t\t\tabsoluteClassCache.put( name, value );\n\t\telse\n\t\t\tabsoluteNonClasses.put( name, NOVALUE );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "clearCaches", "code": "\tprotected void clearCaches() {\n    \tabsoluteNonClasses = new Hashtable();\n    \tabsoluteClassCache = new Hashtable();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addCMListener", "code": "\tpublic static void addCMListener( Listener l ) {\n\t\tgetClassManager(); // prime it\n\t\tif ( manager != null )\n\t\t\tmanager.addListener( l );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setClassLoader", "code": "\tpublic static void setClassLoader( ClassLoader externalCL ) \n\t{\n\t\texternalClassLoader = externalCL;\n\t\tBshClassManager bcm = getClassManager();\n\t\tif ( bcm != null )\n\t\t\tbcm.classLoaderChanged();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getClassForName", "code": "\tpublic abstract Class getClassForName( String name );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPlainClassForName", "code": "\tpublic abstract Class getPlainClassForName( String name ) ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBaseLoader", "code": "\tpublic abstract ClassLoader getBaseLoader();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getLoaderForClass", "code": "\tpublic abstract ClassLoader getLoaderForClass( String name );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addClassPath", "code": "\tpublic abstract void addClassPath( URL path )", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reset", "code": "\tpublic abstract void reset();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setClassPath", "code": "\tpublic abstract void setClassPath( URL [] cp );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reloadAllClasses", "code": "\tpublic abstract void reloadAllClasses() throws ClassPathException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "reloadClasses", "code": "\tpublic abstract void reloadClasses( String [] classNames )", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reloadPackage", "code": "\tpublic abstract void reloadPackage( String pack ) ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doSuperImport", "code": "\tpublic abstract void doSuperImport() throws EvalError;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getClassNameByUnqName", "code": "\tpublic abstract String getClassNameByUnqName( String name ) ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addListener", "code": "\tpublic abstract void addListener( Listener l );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "removeListener", "code": "\tpublic abstract void removeListener( Listener l );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dump", "code": "\tpublic abstract void dump( PrintWriter pw );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "classLoaderChanged", "code": "\tprotected abstract void classLoaderChanged();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.6-3207", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/builder/xml/DefaultNamespaceContext.java", "language": "java", "name": "org.apache.camel.builder.xml.DefaultNamespaceContext", "code": "public class DefaultNamespaceContext implements NamespaceContext, NamespaceAware {\n\n    private final Map<String, String> map;\n    private final NamespaceContext parent;\n\n    public DefaultNamespaceContext() {\n        this(XPathFactory.newInstance());\n    }\n\n    public DefaultNamespaceContext(XPathFactory factory) {\n        this.parent = factory.newXPath().getNamespaceContext();\n        this.map = new HashMap<String, String>();\n    }\n\n    public DefaultNamespaceContext(NamespaceContext parent, Map<String, String> map) {\n        this.parent = parent;\n        this.map = map;\n    }\n\n    /**\n     * A helper method to make it easy to create newly populated instances\n     */\n    public DefaultNamespaceContext add(String prefix, String uri) {\n        map.put(prefix, uri);\n        return this;\n    }\n\n    public String getNamespaceURI(String prefix) {\n        String answer = map.get(prefix);\n        if (answer == null && parent != null) {\n            return parent.getNamespaceURI(prefix);\n        }\n        return answer;\n    }\n\n    public String getPrefix(String namespaceURI) {\n        for (Iterator iter = map.entrySet().iterator(); iter.hasNext();) {\n            Map.Entry entry = (Map.Entry) iter.next();\n            if (namespaceURI.equals(entry.getValue())) {\n                return (String) entry.getKey();\n            }\n        }\n        if (parent != null) {\n            return parent.getPrefix(namespaceURI);\n        }\n        return null;\n    }\n\n    public Iterator getPrefixes(String namespaceURI) {\n        Set set = new HashSet();\n        for (Iterator iter = map.entrySet().iterator(); iter.hasNext();) {\n            Map.Entry entry = (Map.Entry) iter.next();\n            if (namespaceURI.equals(entry.getValue())) {\n                set.add(entry.getKey());\n            }\n        }\n        if (parent != null) {\n            Iterator iter = parent.getPrefixes(namespaceURI);\n            while (iter.hasNext()) {\n                set.add(iter.next());\n            }\n        }\n        return set.iterator();\n    }\n\n    public void setNamespaces(Map<String, String> namespaces) {\n        map.putAll(namespaces);", "functions": [{"function_name": "add", "code": "    public DefaultNamespaceContext add(String prefix, String uri) {\n        map.put(prefix, uri);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNamespaceURI", "code": "    public String getNamespaceURI(String prefix) {\n        String answer = map.get(prefix);\n        if (answer == null && parent != null) {\n            return parent.getNamespaceURI(prefix);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [6, 10], [7, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 6], [11, 7], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getPrefix", "code": "    public String getPrefix(String namespaceURI) {\n        for (Iterator iter = map.entrySet().iterator(); iter.hasNext();) {\n            Map.Entry entry = (Map.Entry) iter.next();\n            if (namespaceURI.equals(entry.getValue())) {\n                return (String) entry.getKey();\n            }\n        }\n        if (parent != null) {\n            return parent.getPrefix(namespaceURI);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [6, 9], [3, 10], [3, 11], [8, 12], [10, 13], [3, 14], [10, 15], [13, 16], [14, 17], [11, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 6], [10, 3], [11, 3], [12, 8], [13, 10], [14, 3], [15, 10], [16, 13], [17, 14], [18, 11], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getPrefixes", "code": "    public Iterator getPrefixes(String namespaceURI) {\n        Set set = new HashSet();\n        for (Iterator iter = map.entrySet().iterator(); iter.hasNext();) {\n            Map.Entry entry = (Map.Entry) iter.next();\n            if (namespaceURI.equals(entry.getValue())) {\n                set.add(entry.getKey());\n            }\n        }\n        if (parent != null) {\n            Iterator iter = parent.getPrefixes(namespaceURI);\n            while (iter.hasNext()) {\n                set.add(iter.next());\n            }\n        }\n        return set.iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [2, 10], [7, 11], [3, 12], [3, 13], [4, 14], [9, 15], [12, 16], [3, 17], [10, 18], [16, 19], [17, 20], [9, 21], [12, 22], [13, 23], [21, 24], [22, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 2], [11, 7], [12, 3], [13, 3], [14, 4], [15, 9], [16, 12], [17, 3], [18, 10], [19, 16], [20, 17], [21, 9], [22, 12], [23, 13], [24, 21], [25, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "setNamespaces", "code": "    public void setNamespaces(Map<String, String> namespaces) {\n        map.putAll(namespaces);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DefaultNamespaceContext", "code": "    public DefaultNamespaceContext() {\n        this(XPathFactory.newInstance());", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DefaultNamespaceContext", "code": "    public DefaultNamespaceContext(XPathFactory factory) {\n        this.parent = factory.newXPath().getNamespaceContext();\n        this.map = new HashMap<String, String>();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "DefaultNamespaceContext", "code": "    public DefaultNamespaceContext(NamespaceContext parent, Map<String, String> map) {\n        this.parent = parent;\n        this.map = map;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.6-7603", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/dom/NthIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.NthIterator", "code": "public final class NthIterator extends DTMAxisIteratorBase {\n    private DTMAxisIterator _source;\n    private final int _position;\n    private boolean _ready;\n\n    public NthIterator(DTMAxisIterator source, int n) {\n\t_source = source;\n\t_position = n;\n    }\n\n    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);\n    }\n    \n    public DTMAxisIterator cloneIterator() {\n\ttry {\n\t    final NthIterator clone = (NthIterator) super.clone();\n\t    clone._isRestartable = false;\n\t    return clone;\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;\n\t}\n    }\n\n    public int next() {\n\tif (_ready) {\n\t    _ready = false;\n\t    return _source.getNodeByPosition(_position);\n\t}\n\treturn DTMAxisIterator.END;\n\t/*\n\tif (_ready && _position > 0) {\n            final int pos = _source.isReverse()\n                                       ? _source.getLast() - _position + 1\n                                       : _position;\n\n\t    _ready = false;\n\t    int node;\n\t    while ((node = _source.next()) != DTMAxisIterator.END) {\n\t\tif (pos == _source.getPosition()) {\n\t\t    return node;\n\t\t}\n\t    }\n\t}\n\treturn DTMAxisIterator.END;\n\t*/\n    }\n\n    public DTMAxisIterator setStartNode(final int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(node);\n\t    _ready = true;\n\t}\n\treturn this;\n    }\n\t\n    public DTMAxisIterator reset() {\n\t_source.reset();\n\t_ready = true;\n\treturn this;\n    }\n    \n    public int getLast() {\n\treturn 1;\n    }\n    \n    public int getPosition() {\n\treturn 1;\n    }\n    \n    public void setMark() {\n\t_source.setMark();\n    }\n    \n    public void gotoMark() {\n\t_source.gotoMark();", "functions": [{"function_name": "setRestartable", "code": "    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "cloneIterator", "code": "    public DTMAxisIterator cloneIterator() {\n\ttry {\n\t    final NthIterator clone = (NthIterator) super.clone();\n\t    clone._isRestartable = false;\n\t    return clone;\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 6], [5, 7], [2, 8], [6, 9], [8, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 1], [7, 5], [8, 2], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "next", "code": "    public int next() {\n\tif (_ready) {\n\t    _ready = false;\n\t    return _source.getNodeByPosition(_position);\n\t}\n\treturn DTMAxisIterator.END;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(final int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(node);\n\t    _ready = true;\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n\t_source.reset();\n\t_ready = true;\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLast", "code": "    public int getLast() {\n\treturn 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPosition", "code": "    public int getPosition() {\n\treturn 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_source.setMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_source.gotoMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "NthIterator", "code": "    public NthIterator(DTMAxisIterator source, int n) {\n\t_source = source;\n\t_position = n;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-2.5-5700", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/poifs/storage/BigBlock.java", "language": "java", "name": "org.apache.poi.poifs.storage.BigBlock", "code": "abstract class BigBlock\n    implements BlockWritable\n{\n\n    /**\n     * Default implementation of write for extending classes that\n     * contain their data in a simple array of bytes.\n     *\n     * @param stream the OutputStream to which the data should be\n     *               written.\n     * @param data the byte array of to be written.\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream.\n     */\n\n    protected void doWriteData(final OutputStream stream, final byte [] data)\n        throws IOException\n    {\n        stream.write(data);\n    }\n\n    /**\n     * Write the block's data to an OutputStream\n     *\n     * @param stream the OutputStream to which the stored data should\n     *               be written\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream\n     */\n\n    abstract void writeData(final OutputStream stream)\n        throws IOException;\n\n    /* ********** START implementation of BlockWritable ********** */\n\n    /**\n     * Write the storage to an OutputStream\n     *\n     * @param stream the OutputStream to which the stored data should\n     *               be written\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream\n     */\n\n    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        writeData(stream);", "functions": [{"function_name": "doWriteData", "code": "    protected void doWriteData(final OutputStream stream, final byte [] data)\n        throws IOException\n    {\n        stream.write(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "writeData", "code": "    abstract void writeData(final OutputStream stream)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "writeBlocks", "code": "    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        writeData(stream);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1197", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/ExecuteOn.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.ExecuteOn", "code": "public class ExecuteOn extends ExecTask {\n\n\n\n    private Union resources = null;\n    private boolean relative = false;\n    private boolean parallel = false;\n    private boolean forwardSlash = false;\n    protected String type = FileDirBoth.FILE;\n    protected Commandline.Marker srcFilePos = null;\n    private boolean skipEmpty = false;\n    protected Commandline.Marker targetFilePos = null;\n    protected Mapper mapperElement = null;\n    protected FileNameMapper mapper = null;\n    protected File destDir = null;\n    private int maxParallel = -1;\n    private boolean addSourceFile = true;\n    private boolean verbose = false;\n    private boolean ignoreMissing = true;\n    private boolean force = false;\n\n    /**\n     * Has &lt;srcfile&gt; been specified before &lt;targetfile&gt;\n     */\n    protected boolean srcIsFirst = true;\n\n    /**\n     * Add a set of files upon which to operate.\n     * @param set the FileSet to add.\n     */\n    public void addFileset(FileSet set) {\n        filesets.addElement(set);\n    }\n\n    /**\n     * Add a set of directories upon which to operate.\n     *\n     * @param  set the DirSet to add.\n     *\n     * @since Ant 1.6\n     */\n    public void addDirset(DirSet set) {\n        filesets.addElement(set);\n    }\n\n    /**\n     * Add a list of source files upon which to operate.\n     * @param list the FileList to add.\n     */\n    public void addFilelist(FileList list) {\n        add(list);\n    }\n\n    /**\n     * Add a collection of resources upon which to operate.\n     * @param rc resource collection to add.\n     * @since Ant 1.7\n     */\n    public void add(ResourceCollection rc) {\n        if (resources == null) {\n            resources = new Union();\n        }\n        resources.add(rc);\n    }\n\n    /**\n     * Set whether the filenames should be passed on the command line as\n     * absolute or relative pathnames. Paths are relative to the base\n     * directory of the corresponding fileset for source files or the\n     * dest attribute for target files.\n     * @param relative whether to pass relative pathnames.\n     */\n    public void setRelative(boolean relative) {\n        this.relative = relative;\n    }\n\n\n    /**\n     * Set whether to execute in parallel mode.\n     * If true, run the command only once, appending all files as arguments.\n     * If false, command will be executed once for every file. Defaults to false.\n     * @param parallel whether to run in parallel.\n     */\n    public void setParallel(boolean parallel) {\n        this.parallel = parallel;\n    }\n\n    /**\n     * Set whether the command works only on files, directories or both.\n     * @param type a FileDirBoth EnumeratedAttribute.\n     */\n    public void setType(FileDirBoth type) {\n        this.type = type.getValue();\n    }\n\n    /**\n     * Set whether empty filesets will be skipped.  If true and\n     * no source files have been found or are newer than their\n     * corresponding target files, the command will not be run.\n     * @param skip whether to skip empty filesets.\n     */\n    public void setSkipEmptyFilesets(boolean skip) {\n        skipEmpty = skip;\n    }\n\n    /**\n     * Specify the directory where target files are to be placed.\n     * @param destDir the File object representing the destination directory.\n     */\n    public void setDest(File destDir) {\n        this.destDir = destDir;\n    }\n\n    /**\n     * Set whether the source and target file names on Windows and OS/2\n     * must use the forward slash as file separator.\n     * @param forwardSlash whether the forward slash will be forced.\n     */\n    public void setForwardslash(boolean forwardSlash) {\n        this.forwardSlash = forwardSlash;\n    }\n\n    /**\n     * Limit the command line length by passing at maximum this many\n     * sourcefiles at once to the command.\n     *\n     * <p>Set to &lt;= 0 for unlimited - this is the default.</p>\n     *\n     * @param max <code>int</code> maximum number of sourcefiles\n     *            passed to the executable.\n     *\n     * @since Ant 1.6\n     */\n    public void setMaxParallel(int max) {\n        maxParallel = max;\n    }\n\n    /**\n     * Set whether to send the source file name on the command line.\n     *\n     * <p>Defaults to <code>true</code>.\n     *\n     * @param b whether to add the source file to the command line.\n     *\n     * @since Ant 1.6\n     */\n    public void setAddsourcefile(boolean b) {\n        addSourceFile = b;\n    }\n\n    /**\n     * Set whether to operate in verbose mode.\n     * If true, a verbose summary will be printed after execution.\n     * @param b whether to operate in verbose mode.\n     *\n     * @since Ant 1.6\n     */\n    public void setVerbose(boolean b) {\n        verbose = b;\n    }\n\n    /**\n     * Set whether to ignore nonexistent files from filelists.\n     * @param b whether to ignore missing files.\n     *\n     * @since Ant 1.6.2\n     */\n    public void setIgnoremissing(boolean b) {\n        ignoreMissing = b;\n    }\n\n    /**\n     * Set whether to bypass timestamp comparisons for target files.\n     * @param b whether to bypass timestamp comparisons.\n     *\n     * @since Ant 1.6.3\n     */\n    public void setForce(boolean b) {\n        force = b;\n    }\n\n    /**\n     * Create a placeholder indicating where on the command line\n     * the name of the source file should be inserted.\n     * @return <code>Commandline.Marker</code>.\n     */\n    public Commandline.Marker createSrcfile() {\n        if (srcFilePos != null) {\n            throw new BuildException(getTaskType() + \" doesn\\'t support multiple \"\n                                     + \"srcfile elements.\", getLocation());\n        }\n        srcFilePos = cmdl.createMarker();\n        return srcFilePos;\n    }\n\n    /**\n     * Create a placeholder indicating where on the command line\n     * the name of the target file should be inserted.\n     * @return <code>Commandline.Marker</code>.\n     */\n    public Commandline.Marker createTargetfile() {\n        if (targetFilePos != null) {\n            throw new BuildException(getTaskType() + \" doesn\\'t support multiple \"\n                                     + \"targetfile elements.\", getLocation());\n        }\n        targetFilePos = cmdl.createMarker();\n        srcIsFirst = (srcFilePos != null);\n        return targetFilePos;\n    }\n\n    /**\n     * Create a nested Mapper element to use for mapping\n     * source files to target files.\n     * @return <code>Mapper</code>.\n     * @throws BuildException if more than one mapper is defined.\n     */\n    public Mapper createMapper() throws BuildException {\n        if (mapperElement != null) {\n            throw new BuildException(\"Cannot define more than one mapper\",\n                                     getLocation());\n        }\n        mapperElement = new Mapper(getProject());\n        return mapperElement;\n    }\n\n    /**\n     * Add a nested FileNameMapper.\n     * @param fileNameMapper the mapper to add.\n     * @since Ant 1.6.3\n     */\n    public void add(FileNameMapper fileNameMapper) {\n        createMapper().add(fileNameMapper);\n    }\n\n    /**\n     * Check the configuration of this ExecuteOn instance.\n     */\n    protected void checkConfiguration() {\n        if (\"execon\".equals(getTaskName())) {\n            log(\"!! execon is deprecated. Use apply instead. !!\");\n        }\n        super.checkConfiguration();\n        if (filesets.size() == 0 && resources == null) {\n            throw new BuildException(\"no resources specified\",\n                                     getLocation());\n        }\n        if (targetFilePos != null && mapperElement == null) {\n            throw new BuildException(\"targetfile specified without mapper\",\n                                     getLocation());\n        }\n        if (destDir != null && mapperElement == null) {\n            throw new BuildException(\"dest specified without mapper\",\n                                     getLocation());\n        }\n        if (mapperElement != null) {\n            mapper = mapperElement.getImplementation();\n        }\n    }\n\n    /**\n     * Create the ExecuteStreamHandler instance that will be used\n     * during execution.\n     * @return <code>ExecuteStreamHandler</code>.\n     * @throws BuildException on error.\n     */\n    protected ExecuteStreamHandler createHandler() throws BuildException {\n        return (redirectorElement == null)\n            ? super.createHandler() : new PumpStreamHandler();\n    }\n\n    /**\n     * Set up the I/O Redirector.\n     */\n    protected void setupRedirector() {\n        super.setupRedirector();\n        redirector.setAppendProperties(true);\n    }\n\n    /**\n     * Run the specified Execute object.\n     * @param exe the Execute instance representing the external process.\n     * @throws BuildException on error\n     */\n    protected void runExec(Execute exe) throws BuildException {\n        int totalFiles = 0;\n        int totalDirs = 0;\n        boolean haveExecuted = false;\n        try {\n            Vector fileNames = new Vector();\n            Vector baseDirs = new Vector();\n            for (int i = 0; i < filesets.size(); i++) {\n                String currentType = type;\n                AbstractFileSet fs = (AbstractFileSet) filesets.elementAt(i);\n                if (fs instanceof DirSet) {\n                    if (!FileDirBoth.DIR.equals(type)) {\n                        log(\"Found a nested dirset but type is \" + type + \". \"\n                            + \"Temporarily switching to type=\\\"dir\\\" on the\"\n                            + \" assumption that you really did mean\"\n                            + \" <dirset> not <fileset>.\", Project.MSG_DEBUG);\n                        currentType = FileDirBoth.DIR;\n                    }\n                }\n                File base = fs.getDir(getProject());\n\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n\n                if (!FileDirBoth.DIR.equals(currentType)) {\n                    String[] s = getFiles(base, ds);\n                    for (int j = 0; j < s.length; j++) {\n                        totalFiles++;\n                        fileNames.addElement(s[j]);\n                        baseDirs.addElement(base);\n                    }\n                }\n                if (!FileDirBoth.FILE.equals(currentType)) {\n                    String[] s = getDirs(base, ds);\n                    for (int j = 0; j < s.length; j++) {\n                        totalDirs++;\n                        fileNames.addElement(s[j]);\n                        baseDirs.addElement(base);\n                    }\n                }\n                if (fileNames.size() == 0 && skipEmpty) {\n                    logSkippingFileset(currentType, ds, base);\n                    continue;\n                }\n                if (!parallel) {\n                    String[] s = new String[fileNames.size()];\n                    fileNames.copyInto(s);\n                    for (int j = 0; j < s.length; j++) {\n                        String[] command = getCommandline(s[j], base);\n                        log(Commandline.describeCommand(command),\n                            Project.MSG_VERBOSE);\n                        exe.setCommandline(command);\n\n                        if (redirectorElement != null) {\n                            setupRedirector();\n                            redirectorElement.configure(redirector, s[j]);\n                        }\n                        if (redirectorElement != null || haveExecuted) {\n                            exe.setStreamHandler(redirector.createHandler());\n                        }\n                        runExecute(exe);\n                        haveExecuted = true;\n                    }\n                    fileNames.removeAllElements();\n                    baseDirs.removeAllElements();\n                }\n            }\n\n            if (resources != null) {\n                Iterator iter = resources.iterator();\n                while (iter.hasNext()) {\n                    Resource res = (Resource) iter.next();\n\n                    if (!res.isExists() && ignoreMissing) {\n                        continue;\n                    }\n\n                    File base = null;\n                    String name = res.getName();\n                    if (res instanceof FileResource) {\n                        FileResource fr = (FileResource) res;\n                        base = fr.getBaseDir();\n                        if (base == null) {\n                            name = fr.getFile().getAbsolutePath();\n                        }\n                    }\n\n                    if (restrict(new String[] {name}, base).length == 0) {\n                        continue;\n                    }\n\n                    if ((!res.isDirectory() || !res.isExists())\n                        && !FileDirBoth.DIR.equals(type)) {\n                        totalFiles++;\n                    } else if (res.isDirectory()\n                               && !FileDirBoth.FILE.equals(type)) {\n                        totalDirs++;\n                    } else {\n                        continue;\n                    }\n\n                    baseDirs.add(base);\n                    fileNames.add(name);\n\n                    if (!parallel) {\n                        String[] command = getCommandline(name, base);\n                        log(Commandline.describeCommand(command),\n                            Project.MSG_VERBOSE);\n                        exe.setCommandline(command);\n\n                        if (redirectorElement != null) {\n                            setupRedirector();\n                            redirectorElement.configure(redirector, name);\n                        }\n                        if (redirectorElement != null || haveExecuted) {\n                            exe.setStreamHandler(redirector.createHandler());\n                        }\n                        runExecute(exe);\n                        haveExecuted = true;\n                        fileNames.removeAllElements();\n                        baseDirs.removeAllElements();\n                    }\n                }\n            }\n            if (parallel && (fileNames.size() > 0 || !skipEmpty)) {\n                runParallel(exe, fileNames, baseDirs);\n                haveExecuted = true;\n            }\n            if (haveExecuted) {\n                log(\"Applied \" + cmdl.getExecutable() + \" to \"\n                    + totalFiles + \" file\"\n                    + (totalFiles != 1 ? \"s\" : \"\") + \" and \"\n                    + totalDirs + \" director\"\n                    + (totalDirs != 1 ? \"ies\" : \"y\") + \".\",\n                    verbose ? Project.MSG_INFO : Project.MSG_VERBOSE);\n            }\n        } catch (IOException e) {\n            throw new BuildException(\"Execute failed: \" + e, e, getLocation());\n        } finally {\n            logFlush();\n            redirector.setAppendProperties(false);\n            redirector.setProperties();\n        }\n    }\n\n    /**\n     * log a message for skipping a fileset.\n     * @param currentType the current type.\n     * @param ds the directory scanner.\n     * @param base the dir base\n     */\n    private void logSkippingFileset(\n        String currentType, DirectoryScanner ds, File base) {\n        int includedCount\n            = ((!FileDirBoth.DIR.equals(currentType))\n               ? ds.getIncludedFilesCount() : 0)\n            + ((!FileDirBoth.FILE.equals(currentType))\n               ? ds.getIncludedDirsCount() : 0);\n\n        log(\"Skipping fileset for directory \" + base + \". It is \"\n            + ((includedCount > 0) ? \"up to date.\" : \"empty.\"),\n             verbose ? Project.MSG_INFO : Project.MSG_VERBOSE);\n    }\n\n    /**\n     * Construct the command line for parallel execution.\n     *\n     * @param srcFiles The filenames to add to the commandline.\n     * @param baseDirs filenames are relative to this dir.\n     * @return the command line in the form of a String[].\n     */\n    protected String[] getCommandline(String[] srcFiles, File[] baseDirs) {\n        final char fileSeparator = File.separatorChar;\n        Vector targets = new Vector();\n        if (targetFilePos != null) {\n            Hashtable addedFiles = new Hashtable();\n            for (int i = 0; i < srcFiles.length; i++) {\n                String[] subTargets = mapper.mapFileName(srcFiles[i]);\n                if (subTargets != null) {\n                    for (int j = 0; j < subTargets.length; j++) {\n                        String name = null;\n                        if (!relative) {\n                            name = (new File(destDir, subTargets[j])).getAbsolutePath();\n                        } else {\n                            name = subTargets[j];\n                        }\n                        if (forwardSlash && fileSeparator != '/') {\n                            name = name.replace(fileSeparator, '/');\n                        }\n                        if (!addedFiles.contains(name)) {\n                            targets.addElement(name);\n                            addedFiles.put(name, name);\n                        }\n                    }\n                }\n            }\n        }\n        String[] targetFiles = new String[targets.size()];\n        targets.copyInto(targetFiles);\n\n        if (!addSourceFile) {\n            srcFiles = new String[0];\n        }\n        String[] orig = cmdl.getCommandline();\n        String[] result\n            = new String[orig.length + srcFiles.length + targetFiles.length];\n\n        int srcIndex = orig.length;\n        if (srcFilePos != null) {\n            srcIndex = srcFilePos.getPosition();\n        }\n        if (targetFilePos != null) {\n            int targetIndex = targetFilePos.getPosition();\n\n            if (srcIndex < targetIndex\n                || (srcIndex == targetIndex && srcIsFirst)) {\n\n                System.arraycopy(orig, 0, result, 0, srcIndex);\n\n                System.arraycopy(orig, srcIndex, result,\n                                 srcIndex + srcFiles.length,\n                                 targetIndex - srcIndex);\n\n                System.arraycopy(targetFiles, 0, result,\n                                 targetIndex + srcFiles.length,\n                                 targetFiles.length);\n\n                System.arraycopy(orig, targetIndex, result,\n                    targetIndex + srcFiles.length + targetFiles.length,\n                    orig.length - targetIndex);\n            } else {\n                System.arraycopy(orig, 0, result, 0, targetIndex);\n\n                System.arraycopy(targetFiles, 0, result,\n                                 targetIndex,\n                                 targetFiles.length);\n\n                System.arraycopy(orig, targetIndex, result,\n                                 targetIndex + targetFiles.length,\n                                 srcIndex - targetIndex);\n\n                System.arraycopy(orig, srcIndex, result,\n                    srcIndex + srcFiles.length + targetFiles.length,\n                    orig.length - srcIndex);\n                srcIndex += targetFiles.length;\n            }\n\n\n            System.arraycopy(orig, 0, result, 0, srcIndex);\n            System.arraycopy(orig, srcIndex, result,\n                             srcIndex + srcFiles.length,\n                             orig.length - srcIndex);\n        }\n        for (int i = 0; i < srcFiles.length; i++) {\n            if (!relative) {\n                result[srcIndex + i] =\n                    (new File(baseDirs[i], srcFiles[i])).getAbsolutePath();\n            } else {\n                result[srcIndex + i] = srcFiles[i];\n            }\n            if (forwardSlash && fileSeparator != '/') {\n                result[srcIndex + i] =\n                    result[srcIndex + i].replace(fileSeparator, '/');\n            }\n        }\n        return result;\n    }\n\n    /**\n     * Construct the command line for serial execution.\n     *\n     * @param srcFile The filename to add to the commandline.\n     * @param baseDir filename is relative to this dir.\n     * @return the command line in the form of a String[].\n     */\n    protected String[] getCommandline(String srcFile, File baseDir) {\n        return getCommandline(new String[] {srcFile}, new File[] {baseDir});\n    }\n\n    /**\n     * Return the list of files from this DirectoryScanner that should\n     * be included on the command line.\n     * @param baseDir the File base directory.\n     * @param ds the DirectoryScanner to use for file scanning.\n     * @return a String[] containing the filenames.\n     */\n    protected String[] getFiles(File baseDir, DirectoryScanner ds) {\n        return restrict(ds.getIncludedFiles(), baseDir);\n    }\n\n    /**\n     * Return the list of Directories from this DirectoryScanner that\n     * should be included on the command line.\n     * @param baseDir the File base directory.\n     * @param ds the DirectoryScanner to use for file scanning.\n     * @return a String[] containing the directory names.\n     */\n    protected String[] getDirs(File baseDir, DirectoryScanner ds) {\n        return restrict(ds.getIncludedDirectories(), baseDir);\n    }\n\n    /**\n     * Return the list of files or directories from this FileList that\n     * should be included on the command line.\n     * @param list the FileList to check.\n     * @return a String[] containing the directory names.\n     *\n     * @since Ant 1.6.2\n     */\n    protected String[] getFilesAndDirs(FileList list) {\n        return restrict(list.getFiles(getProject()), list.getDir(getProject()));\n    }\n\n    private String[] restrict(String[] s, File baseDir) {\n        return (mapper == null || force) ? s\n            : new SourceFileScanner(this).restrict(s, baseDir, destDir, mapper);\n    }\n\n    /**\n     * Run the command in \"parallel\" mode, making sure that at most\n     * maxParallel sourcefiles get passed on the command line.\n     * @param exe the Executable to use.\n     * @param fileNames the Vector of filenames.\n     * @param baseDirs the Vector of base directories corresponding to fileNames.\n     * @throws IOException  on I/O errors.\n     * @throws BuildException on other errors.\n     * @since Ant 1.6\n     */\n    protected void runParallel(Execute exe, Vector fileNames,\n                               Vector baseDirs)\n        throws IOException, BuildException {\n        String[] s = new String[fileNames.size()];\n        fileNames.copyInto(s);\n        File[] b = new File[baseDirs.size()];\n        baseDirs.copyInto(b);\n\n        if (maxParallel <= 0\n            || s.length == 0 /* this is skipEmpty == false */) {\n            String[] command = getCommandline(s, b);\n            log(Commandline.describeCommand(command), Project.MSG_VERBOSE);\n            exe.setCommandline(command);\n            runExecute(exe);\n        } else {\n            int stillToDo = fileNames.size();\n            int currentOffset = 0;\n            while (stillToDo > 0) {\n                int currentAmount = Math.min(stillToDo, maxParallel);\n                String[] cs = new String[currentAmount];\n                System.arraycopy(s, currentOffset, cs, 0, currentAmount);\n                File[] cb = new File[currentAmount];\n                System.arraycopy(b, currentOffset, cb, 0, currentAmount);\n                String[] command = getCommandline(cs, cb);\n                log(Commandline.describeCommand(command), Project.MSG_VERBOSE);\n                exe.setCommandline(command);\n                if (redirectorElement != null) {\n                    setupRedirector();\n                    redirectorElement.configure(redirector, null);\n                }\n                if (redirectorElement != null || currentOffset > 0) {\n                    exe.setStreamHandler(redirector.createHandler());\n                }\n                runExecute(exe);\n\n                stillToDo -= currentAmount;\n                currentOffset += currentAmount;\n            }\n        }\n    }\n\n    /**\n     * Enumerated attribute with the values \"file\", \"dir\" and \"both\"\n     * for the type attribute.\n     */\n    public static class FileDirBoth extends EnumeratedAttribute {\n        /** File value */\n        public static final String FILE = \"file\";\n        /** Dir value */\n        public static final String DIR = \"dir\";\n        /**\n         * @see EnumeratedAttribute#getValues\n         */\n        /** {@inheritDoc}. */\n       public String[] getValues() {\n            return new String[] {FILE, DIR, \"both\"};", "functions": [{"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addDirset", "code": "    public void addDirset(DirSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFilelist", "code": "    public void addFilelist(FileList list) {\n        add(list);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "add", "code": "    public void add(ResourceCollection rc) {\n        if (resources == null) {\n            resources = new Union();\n        }\n        resources.add(rc);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setRelative", "code": "    public void setRelative(boolean relative) {\n        this.relative = relative;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setParallel", "code": "    public void setParallel(boolean parallel) {\n        this.parallel = parallel;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setType", "code": "    public void setType(FileDirBoth type) {\n        this.type = type.getValue();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSkipEmptyFilesets", "code": "    public void setSkipEmptyFilesets(boolean skip) {\n        skipEmpty = skip;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDest", "code": "    public void setDest(File destDir) {\n        this.destDir = destDir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setForwardslash", "code": "    public void setForwardslash(boolean forwardSlash) {\n        this.forwardSlash = forwardSlash;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMaxParallel", "code": "    public void setMaxParallel(int max) {\n        maxParallel = max;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAddsourcefile", "code": "    public void setAddsourcefile(boolean b) {\n        addSourceFile = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVerbose", "code": "    public void setVerbose(boolean b) {\n        verbose = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIgnoremissing", "code": "    public void setIgnoremissing(boolean b) {\n        ignoreMissing = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setForce", "code": "    public void setForce(boolean b) {\n        force = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createSrcfile", "code": "    public Commandline.Marker createSrcfile() {\n        if (srcFilePos != null) {\n            throw new BuildException(getTaskType() + \" doesn\\'t support multiple \"\n                                     + \"srcfile elements.\", getLocation());\n        }\n        srcFilePos = cmdl.createMarker();\n        return srcFilePos;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [4, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 4], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "createTargetfile", "code": "    public Commandline.Marker createTargetfile() {\n        if (targetFilePos != null) {\n            throw new BuildException(getTaskType() + \" doesn\\'t support multiple \"\n                                     + \"targetfile elements.\", getLocation());\n        }\n        targetFilePos = cmdl.createMarker();\n        srcIsFirst = (srcFilePos != null);\n        return targetFilePos;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [2, 8], [5, 9], [6, 10], [8, 11], [11, 12], [11, 13], [13, 14], [13, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 2], [9, 5], [10, 6], [11, 8], [12, 11], [13, 11], [14, 13], [15, 13], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "createMapper", "code": "    public Mapper createMapper() throws BuildException {\n        if (mapperElement != null) {\n            throw new BuildException(\"Cannot define more than one mapper\",\n                                     getLocation());\n        }\n        mapperElement = new Mapper(getProject());\n        return mapperElement;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [4, 7], [5, 8], [6, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 4], [8, 5], [9, 6], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "add", "code": "    public void add(FileNameMapper fileNameMapper) {\n        createMapper().add(fileNameMapper);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "checkConfiguration", "code": "    protected void checkConfiguration() {\n        if (\"execon\".equals(getTaskName())) {\n            log(\"!! execon is deprecated. Use apply instead. !!\");\n        }\n        super.checkConfiguration();\n        if (filesets.size() == 0 && resources == null) {\n            throw new BuildException(\"no resources specified\",\n                                     getLocation());\n        }\n        if (targetFilePos != null && mapperElement == null) {\n            throw new BuildException(\"targetfile specified without mapper\",\n                                     getLocation());\n        }\n        if (destDir != null && mapperElement == null) {\n            throw new BuildException(\"dest specified without mapper\",\n                                     getLocation());\n        }\n        if (mapperElement != null) {\n            mapper = mapperElement.getImplementation();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [2, 12], [7, 13], [7, 14], [3, 15], [8, 16], [8, 17], [4, 18], [9, 19], [9, 20], [10, 21], [1, 22], [12, 23], [13, 24], [14, 25], [15, 26], [16, 27], [17, 28], [18, 29], [19, 30], [20, 31], [20, 32], [5, 33], [21, 34], [22, 35], [23, 36], [23, 37], [26, 38], [26, 39], [29, 40], [29, 41], [33, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [12, 2], [13, 7], [14, 7], [15, 3], [16, 8], [17, 8], [18, 4], [19, 9], [20, 9], [21, 10], [22, 1], [23, 12], [24, 13], [25, 14], [26, 15], [27, 16], [28, 17], [29, 18], [30, 19], [31, 20], [32, 20], [33, 5], [34, 21], [35, 22], [36, 23], [37, 23], [38, 26], [39, 26], [40, 29], [41, 29], [42, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "createHandler", "code": "    protected ExecuteStreamHandler createHandler() throws BuildException {\n        return (redirectorElement == null)", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setupRedirector", "code": "    protected void setupRedirector() {\n        super.setupRedirector();\n        redirector.setAppendProperties(true);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "runExec", "code": "    protected void runExec(Execute exe) throws BuildException {\n        int totalFiles = 0;\n        int totalDirs = 0;\n        boolean haveExecuted = false;\n        try {\n            Vector fileNames = new Vector();\n            Vector baseDirs = new Vector();\n            for (int i = 0; i < filesets.size(); i++) {\n                String currentType = type;\n                AbstractFileSet fs = (AbstractFileSet) filesets.elementAt(i);\n                if (fs instanceof DirSet) {\n                    if (!FileDirBoth.DIR.equals(type)) {\n                        log(\"Found a nested dirset but type is \" + type + \". \"\n                            + \"Temporarily switching to type=\\\"dir\\\" on the\"\n                            + \" assumption that you really did mean\"\n                            + \" <dirset> not <fileset>.\", Project.MSG_DEBUG);\n                        currentType = FileDirBoth.DIR;\n                    }\n                }\n                File base = fs.getDir(getProject());\n\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n\n                if (!FileDirBoth.DIR.equals(currentType)) {\n                    String[] s = getFiles(base, ds);\n                    for (int j = 0; j < s.length; j++) {\n                        totalFiles++;\n                        fileNames.addElement(s[j]);\n                        baseDirs.addElement(base);\n                    }\n                }\n                if (!FileDirBoth.FILE.equals(currentType)) {\n                    String[] s = getDirs(base, ds);\n                    for (int j = 0; j < s.length; j++) {\n                        totalDirs++;\n                        fileNames.addElement(s[j]);\n                        baseDirs.addElement(base);\n                    }\n                }\n                if (fileNames.size() == 0 && skipEmpty) {\n                    logSkippingFileset(currentType, ds, base);\n                    continue;\n                }\n                if (!parallel) {\n                    String[] s = new String[fileNames.size()];\n                    fileNames.copyInto(s);\n                    for (int j = 0; j < s.length; j++) {\n                        String[] command = getCommandline(s[j], base);\n                        log(Commandline.describeCommand(command),\n                            Project.MSG_VERBOSE);\n                        exe.setCommandline(command);\n\n                        if (redirectorElement != null) {\n                            setupRedirector();\n                            redirectorElement.configure(redirector, s[j]);\n                        }\n                        if (redirectorElement != null || haveExecuted) {\n                            exe.setStreamHandler(redirector.createHandler());\n                        }\n                        runExecute(exe);\n                        haveExecuted = true;\n                    }\n                    fileNames.removeAllElements();\n                    baseDirs.removeAllElements();\n                }\n            }\n\n            if (resources != null) {\n                Iterator iter = resources.iterator();\n                while (iter.hasNext()) {\n                    Resource res = (Resource) iter.next();\n\n                    if (!res.isExists() && ignoreMissing) {\n                        continue;\n                    }\n\n                    File base = null;\n                    String name = res.getName();\n                    if (res instanceof FileResource) {\n                        FileResource fr = (FileResource) res;\n                        base = fr.getBaseDir();\n                        if (base == null) {\n                            name = fr.getFile().getAbsolutePath();\n                        }\n                    }\n\n                    if (restrict(new String[] {name}, base).length == 0) {\n                        continue;\n                    }\n\n                    if ((!res.isDirectory() || !res.isExists())\n                        && !FileDirBoth.DIR.equals(type)) {\n                        totalFiles++;\n                    } else if (res.isDirectory()\n                               && !FileDirBoth.FILE.equals(type)) {\n                        totalDirs++;\n                    } else {\n                        continue;\n                    }\n\n                    baseDirs.add(base);\n                    fileNames.add(name);\n\n                    if (!parallel) {\n                        String[] command = getCommandline(name, base);\n                        log(Commandline.describeCommand(command),\n                            Project.MSG_VERBOSE);\n                        exe.setCommandline(command);\n\n                        if (redirectorElement != null) {\n                            setupRedirector();\n                            redirectorElement.configure(redirector, name);\n                        }\n                        if (redirectorElement != null || haveExecuted) {\n                            exe.setStreamHandler(redirector.createHandler());\n                        }\n                        runExecute(exe);\n                        haveExecuted = true;\n                        fileNames.removeAllElements();\n                        baseDirs.removeAllElements();\n                    }\n                }\n            }\n            if (parallel && (fileNames.size() > 0 || !skipEmpty)) {\n                runParallel(exe, fileNames, baseDirs);\n                haveExecuted = true;\n            }\n            if (haveExecuted) {\n                log(\"Applied \" + cmdl.getExecutable() + \" to \"\n                    + totalFiles + \" file\"\n                    + (totalFiles != 1 ? \"s\" : \"\") + \" and \"\n                    + totalDirs + \" director\"\n                    + (totalDirs != 1 ? \"ies\" : \"y\") + \".\",\n                    verbose ? Project.MSG_INFO : Project.MSG_VERBOSE);\n            }\n        } catch (IOException e) {\n            throw new BuildException(\"Execute failed: \" + e, e, getLocation());\n        } finally {\n            logFlush();\n            redirector.setAppendProperties(false);\n            redirector.setProperties();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "IF", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LOOP", "VAR_DECL", "BREAK_CONTINUE", "BINARY_OP", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "IF", "IF", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [6, 16], [8, 17], [9, 18], [10, 19], [2, 20], [3, 21], [4, 22], [14, 23], [16, 24], [17, 25], [9, 26], [9, 27], [18, 28], [10, 29], [10, 30], [10, 31], [10, 32], [10, 33], [10, 34], [10, 35], [10, 36], [10, 37], [19, 38], [11, 39], [12, 40], [24, 41], [24, 42], [7, 43], [8, 44], [8, 45], [25, 46], [26, 47], [30, 48], [31, 49], [32, 50], [35, 51], [10, 52], [42, 53], [43, 54], [43, 55], [44, 56], [46, 57], [46, 58], [26, 59], [26, 60], [26, 61], [26, 62], [26, 63], [26, 64], [26, 65], [26, 66], [27, 67], [29, 68], [29, 69], [30, 70], [48, 71], [31, 72], [31, 73], [32, 74], [32, 75], [33, 76], [34, 77], [35, 78], [55, 79], [55, 80], [26, 81], [26, 82], [60, 83], [60, 84], [61, 85], [62, 86], [65, 87], [29, 88], [29, 89], [68, 90], [29, 91], [30, 92], [71, 93], [71, 94], [72, 95], [74, 96], [76, 97], [77, 98], [78, 99], [36, 100], [80, 101], [80, 102], [59, 103], [59, 104], [59, 105], [83, 106], [84, 107], [84, 108], [61, 109], [85, 110], [85, 111], [62, 112], [62, 113], [63, 114], [64, 115], [65, 116], [87, 117], [68, 118], [68, 119], [68, 120], [73, 121], [75, 122], [101, 123], [101, 124], [101, 125], [102, 126], [102, 127], [59, 128], [59, 129], [59, 130], [59, 131], [103, 132], [104, 133], [59, 134], [59, 135], [83, 136], [106, 137], [106, 138], [108, 139], [108, 140], [112, 141], [62, 142], [66, 143], [68, 144], [68, 145], [118, 146], [119, 147], [68, 148], [68, 149], [68, 150], [69, 151], [72, 152], [72, 153], [72, 154], [74, 155], [74, 156], [74, 157], [78, 158], [78, 159], [125, 160], [127, 161], [130, 162], [132, 163], [133, 164], [135, 165], [105, 166], [141, 167], [142, 168], [144, 169], [146, 170], [147, 171], [149, 172], [120, 173], [159, 174], [161, 175], [161, 176], [103, 177], [163, 178], [104, 179], [104, 180], [112, 181], [118, 182], [170, 183], [119, 184], [119, 185], [174, 186], [174, 187], [176, 188], [176, 189], [177, 190], [181, 191], [182, 192], [187, 193], [187, 194], [188, 195], [188, 196], [188, 197], [189, 198], [189, 199], [191, 200], [194, 201], [194, 202], [197, 203], [199, 204], [202, 205], [202, 206], [204, 207], [204, 208], [206, 209], [208, 210], [208, 211], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 6], [17, 8], [18, 9], [19, 10], [20, 2], [21, 3], [22, 4], [23, 14], [24, 16], [25, 17], [26, 9], [27, 9], [28, 18], [29, 10], [30, 10], [31, 10], [32, 10], [33, 10], [34, 10], [35, 10], [36, 10], [37, 10], [38, 19], [39, 11], [40, 12], [41, 24], [42, 24], [43, 7], [44, 8], [45, 8], [46, 25], [47, 26], [48, 30], [49, 31], [50, 32], [51, 35], [52, 10], [53, 42], [54, 43], [55, 43], [56, 44], [57, 46], [58, 46], [59, 26], [60, 26], [61, 26], [62, 26], [63, 26], [64, 26], [65, 26], [66, 26], [67, 27], [68, 29], [69, 29], [70, 30], [71, 48], [72, 31], [73, 31], [74, 32], [75, 32], [76, 33], [77, 34], [78, 35], [79, 55], [80, 55], [81, 26], [82, 26], [83, 60], [84, 60], [85, 61], [86, 62], [87, 65], [88, 29], [89, 29], [90, 68], [91, 29], [92, 30], [93, 71], [94, 71], [95, 72], [96, 74], [97, 76], [98, 77], [99, 78], [100, 36], [101, 80], [102, 80], [103, 59], [104, 59], [105, 59], [106, 83], [107, 84], [108, 84], [109, 61], [110, 85], [111, 85], [112, 62], [113, 62], [114, 63], [115, 64], [116, 65], [117, 87], [118, 68], [119, 68], [120, 68], [121, 73], [122, 75], [123, 101], [124, 101], [125, 101], [126, 102], [127, 102], [128, 59], [129, 59], [130, 59], [131, 59], [132, 103], [133, 104], [134, 59], [135, 59], [136, 83], [137, 106], [138, 106], [139, 108], [140, 108], [141, 112], [142, 62], [143, 66], [144, 68], [145, 68], [146, 118], [147, 119], [148, 68], [149, 68], [150, 68], [151, 69], [152, 72], [153, 72], [154, 72], [155, 74], [156, 74], [157, 74], [158, 78], [159, 78], [160, 125], [161, 127], [162, 130], [163, 132], [164, 133], [165, 135], [166, 105], [167, 141], [168, 142], [169, 144], [170, 146], [171, 147], [172, 149], [173, 120], [174, 159], [175, 161], [176, 161], [177, 103], [178, 163], [179, 104], [180, 104], [181, 112], [182, 118], [183, 170], [184, 119], [185, 119], [186, 174], [187, 174], [188, 176], [189, 176], [190, 177], [191, 181], [192, 182], [193, 187], [194, 187], [195, 188], [196, 188], [197, 188], [198, 189], [199, 189], [200, 191], [201, 194], [202, 194], [203, 197], [204, 199], [205, 202], [206, 202], [207, 204], [208, 204], [209, 206], [210, 208], [211, 208], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211]]}, {"function_name": "logSkippingFileset", "code": "    private void logSkippingFileset(\n        String currentType, DirectoryScanner ds, File base) {\n        int includedCount\n            = ((!FileDirBoth.DIR.equals(currentType))\n               ? ds.getIncludedFilesCount() : 0)\n            + ((!FileDirBoth.FILE.equals(currentType))\n               ? ds.getIncludedDirsCount() : 0);\n\n        log(\"Skipping fileset for directory \" + base + \". It is \"\n            + ((includedCount > 0) ? \"up to date.\" : \"empty.\"),\n             verbose ? Project.MSG_INFO : Project.MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "COND_EXPR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [5, 7], [1, 8], [7, 9], [7, 10], [8, 11], [8, 12], [9, 13], [9, 14], [9, 15], [10, 16], [10, 17], [11, 18], [11, 19], [11, 20], [12, 21], [12, 22], [12, 23], [15, 24], [17, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 5], [8, 1], [9, 7], [10, 7], [11, 8], [12, 8], [13, 9], [14, 9], [15, 9], [16, 10], [17, 10], [18, 11], [19, 11], [20, 11], [21, 12], [22, 12], [23, 12], [24, 15], [25, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getCommandline", "code": "    protected String[] getCommandline(String[] srcFiles, File[] baseDirs) {\n        final char fileSeparator = File.separatorChar;\n        Vector targets = new Vector();\n        if (targetFilePos != null) {\n            Hashtable addedFiles = new Hashtable();\n            for (int i = 0; i < srcFiles.length; i++) {\n                String[] subTargets = mapper.mapFileName(srcFiles[i]);\n                if (subTargets != null) {\n                    for (int j = 0; j < subTargets.length; j++) {\n                        String name = null;\n                        if (!relative) {\n                            name = (new File(destDir, subTargets[j])).getAbsolutePath();\n                        } else {\n                            name = subTargets[j];\n                        }\n                        if (forwardSlash && fileSeparator != '/') {\n                            name = name.replace(fileSeparator, '/');\n                        }\n                        if (!addedFiles.contains(name)) {\n                            targets.addElement(name);\n                            addedFiles.put(name, name);\n                        }\n                    }\n                }\n            }\n        }\n        String[] targetFiles = new String[targets.size()];\n        targets.copyInto(targetFiles);\n\n        if (!addSourceFile) {\n            srcFiles = new String[0];\n        }\n        String[] orig = cmdl.getCommandline();\n        String[] result\n            = new String[orig.length + srcFiles.length + targetFiles.length];\n\n        int srcIndex = orig.length;\n        if (srcFilePos != null) {\n            srcIndex = srcFilePos.getPosition();\n        }\n        if (targetFilePos != null) {\n            int targetIndex = targetFilePos.getPosition();\n\n            if (srcIndex < targetIndex\n                || (srcIndex == targetIndex && srcIsFirst)) {\n\n                System.arraycopy(orig, 0, result, 0, srcIndex);\n\n                System.arraycopy(orig, srcIndex, result,\n                                 srcIndex + srcFiles.length,\n                                 targetIndex - srcIndex);\n\n                System.arraycopy(targetFiles, 0, result,\n                                 targetIndex + srcFiles.length,\n                                 targetFiles.length);\n\n                System.arraycopy(orig, targetIndex, result,\n                    targetIndex + srcFiles.length + targetFiles.length,\n                    orig.length - targetIndex);\n            } else {\n                System.arraycopy(orig, 0, result, 0, targetIndex);\n\n                System.arraycopy(targetFiles, 0, result,\n                                 targetIndex,\n                                 targetFiles.length);\n\n                System.arraycopy(orig, targetIndex, result,\n                                 targetIndex + targetFiles.length,\n                                 srcIndex - targetIndex);\n\n                System.arraycopy(orig, srcIndex, result,\n                    srcIndex + srcFiles.length + targetFiles.length,\n                    orig.length - srcIndex);\n                srcIndex += targetFiles.length;\n            }\n\n\n            System.arraycopy(orig, 0, result, 0, srcIndex);\n            System.arraycopy(orig, srcIndex, result,\n                             srcIndex + srcFiles.length,\n                             orig.length - srcIndex);\n        }\n        for (int i = 0; i < srcFiles.length; i++) {\n            if (!relative) {\n                result[srcIndex + i] =\n                    (new File(baseDirs[i], srcFiles[i])).getAbsolutePath();\n            } else {\n                result[srcIndex + i] = srcFiles[i];\n            }\n            if (forwardSlash && fileSeparator != '/') {\n                result[srcIndex + i] =\n                    result[srcIndex + i].replace(fileSeparator, '/');\n            }\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [3, 16], [4, 17], [0, 18], [10, 19], [2, 20], [2, 21], [3, 22], [3, 23], [16, 24], [17, 25], [7, 26], [10, 27], [10, 28], [19, 29], [11, 30], [20, 31], [2, 32], [3, 33], [3, 34], [22, 35], [4, 36], [6, 37], [8, 38], [9, 39], [27, 40], [31, 41], [33, 42], [33, 43], [34, 44], [34, 45], [35, 46], [35, 47], [23, 48], [36, 49], [37, 50], [27, 51], [27, 52], [28, 53], [20, 54], [41, 55], [21, 56], [21, 57], [22, 58], [22, 59], [22, 60], [22, 61], [22, 62], [22, 63], [22, 64], [22, 65], [22, 66], [46, 67], [38, 68], [51, 69], [27, 70], [57, 71], [59, 72], [59, 73], [60, 74], [60, 75], [61, 76], [62, 77], [62, 78], [63, 79], [63, 80], [64, 81], [64, 82], [65, 83], [65, 84], [66, 85], [66, 86], [51, 87], [69, 88], [52, 89], [54, 90], [71, 91], [73, 92], [80, 93], [87, 94], [90, 95], [54, 96], [54, 97], [56, 98], [57, 99], [87, 100], [87, 101], [87, 102], [87, 103], [100, 104], [101, 105], [87, 106], [105, 107], [103, 108], [100, 109], [100, 110], [101, 111], [107, 112], [102, 113], [102, 114], [111, 115], [114, 116], [115, 117], [116, 118], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 3], [17, 4], [18, 0], [19, 10], [20, 2], [21, 2], [22, 3], [23, 3], [24, 16], [25, 17], [26, 7], [27, 10], [28, 10], [29, 19], [30, 11], [31, 20], [32, 2], [33, 3], [34, 3], [35, 22], [36, 4], [37, 6], [38, 8], [39, 9], [40, 27], [41, 31], [42, 33], [43, 33], [44, 34], [45, 34], [46, 35], [47, 35], [48, 23], [49, 36], [50, 37], [51, 27], [52, 27], [53, 28], [54, 20], [55, 41], [56, 21], [57, 21], [58, 22], [59, 22], [60, 22], [61, 22], [62, 22], [63, 22], [64, 22], [65, 22], [66, 22], [67, 46], [68, 38], [69, 51], [70, 27], [71, 57], [72, 59], [73, 59], [74, 60], [75, 60], [76, 61], [77, 62], [78, 62], [79, 63], [80, 63], [81, 64], [82, 64], [83, 65], [84, 65], [85, 66], [86, 66], [87, 51], [88, 69], [89, 52], [90, 54], [91, 71], [92, 73], [93, 80], [94, 87], [95, 90], [96, 54], [97, 54], [98, 56], [99, 57], [100, 87], [101, 87], [102, 87], [103, 87], [104, 100], [105, 101], [106, 87], [107, 105], [108, 103], [109, 100], [110, 100], [111, 101], [112, 107], [113, 102], [114, 102], [115, 111], [116, 114], [117, 115], [118, 116], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118]]}, {"function_name": "getCommandline", "code": "    protected String[] getCommandline(String srcFile, File baseDir) {\n        return getCommandline(new String[] {srcFile}, new File[] {baseDir});", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFiles", "code": "    protected String[] getFiles(File baseDir, DirectoryScanner ds) {\n        return restrict(ds.getIncludedFiles(), baseDir);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDirs", "code": "    protected String[] getDirs(File baseDir, DirectoryScanner ds) {\n        return restrict(ds.getIncludedDirectories(), baseDir);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getFilesAndDirs", "code": "    protected String[] getFilesAndDirs(FileList list) {\n        return restrict(list.getFiles(getProject()), list.getDir(getProject()));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "restrict", "code": "    private String[] restrict(String[] s, File baseDir) {\n        return (mapper == null || force) ? s\n            : new SourceFileScanner(this).restrict(s, baseDir, destDir, mapper);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "runParallel", "code": "    protected void runParallel(Execute exe, Vector fileNames,\n                               Vector baseDirs)\n        throws IOException, BuildException {\n        String[] s = new String[fileNames.size()];\n        fileNames.copyInto(s);\n        File[] b = new File[baseDirs.size()];\n        baseDirs.copyInto(b);\n\n        if (maxParallel <= 0\n            || s.length == 0 /* this is skipEmpty == false */) {\n            String[] command = getCommandline(s, b);\n            log(Commandline.describeCommand(command), Project.MSG_VERBOSE);\n            exe.setCommandline(command);\n            runExecute(exe);\n        } else {\n            int stillToDo = fileNames.size();\n            int currentOffset = 0;\n            while (stillToDo > 0) {\n                int currentAmount = Math.min(stillToDo, maxParallel);\n                String[] cs = new String[currentAmount];\n                System.arraycopy(s, currentOffset, cs, 0, currentAmount);\n                File[] cb = new File[currentAmount];\n                System.arraycopy(b, currentOffset, cb, 0, currentAmount);\n                String[] command = getCommandline(cs, cb);\n                log(Commandline.describeCommand(command), Project.MSG_VERBOSE);\n                exe.setCommandline(command);\n                if (redirectorElement != null) {\n                    setupRedirector();\n                    redirectorElement.configure(redirector, null);\n                }\n                if (redirectorElement != null || currentOffset > 0) {\n                    exe.setStreamHandler(redirector.createHandler());\n                }\n                runExecute(exe);\n\n                stillToDo -= currentAmount;\n                currentOffset += currentAmount;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [7, 14], [7, 15], [10, 16], [1, 17], [1, 18], [1, 19], [14, 20], [15, 21], [2, 22], [3, 23], [10, 24], [10, 25], [10, 26], [10, 27], [10, 28], [10, 29], [16, 30], [11, 31], [12, 32], [19, 33], [13, 34], [10, 35], [10, 36], [10, 37], [24, 38], [25, 39], [10, 40], [10, 41], [10, 42], [10, 43], [38, 44], [38, 45], [39, 46], [41, 47], [26, 48], [42, 49], [43, 50], [29, 51], [24, 52], [44, 53], [45, 54], [25, 55], [25, 56], [52, 57], [55, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 7], [15, 7], [16, 10], [17, 1], [18, 1], [19, 1], [20, 14], [21, 15], [22, 2], [23, 3], [24, 10], [25, 10], [26, 10], [27, 10], [28, 10], [29, 10], [30, 16], [31, 11], [32, 12], [33, 19], [34, 13], [35, 10], [36, 10], [37, 10], [38, 24], [39, 25], [40, 10], [41, 10], [42, 10], [43, 10], [44, 38], [45, 38], [46, 39], [47, 41], [48, 26], [49, 42], [50, 43], [51, 29], [52, 24], [53, 44], [54, 45], [55, 25], [56, 25], [57, 52], [58, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}], "label": 1}
{"sample_id": "jedit-4.3-4678", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/help/HelpViewer.java", "language": "java", "name": "org.gjt.sp.jedit.help.HelpViewer", "code": "public class HelpViewer extends JFrame implements HelpViewerInterface, EBComponent, HelpHistoryModelListener\n{\n\t//{{{ HelpViewer constructor\n\t/**\n\t * Creates a new help viewer with the default help page.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic HelpViewer()\n\t{\n\t\tthis(\"welcome.html\");\n\t} //}}}\n\n\t//{{{ HelpViewer constructor\n\t/**\n\t * Creates a new help viewer for the specified URL.\n\t * @param url The URL\n\t */\n\tpublic HelpViewer(URL url)\n\t{\n\t\tthis(url.toString());\n\t} //}}}\n\n\t//{{{ HelpViewer constructor\n\t/**\n\t * Creates a new help viewer for the specified URL.\n\t * @param url The URL\n\t */\n\tpublic HelpViewer(String url)\n\t{\n\t\tsuper(jEdit.getProperty(\"helpviewer.title\"));\n\n\t\tsetIconImage(GUIUtilities.getEditorIcon());\n\n\t\ttry\n\t\t{\n\t\t\tbaseURL = new File(MiscUtilities.constructPath(\n\t\t\t\tjEdit.getJEditHome(),\"doc\")).toURL().toString();\n\t\t}\n\t\tcatch(MalformedURLException mu)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,mu);\n\t\t\t// what to do?\n\t\t}\n\n\t\tActionHandler actionListener = new ActionHandler();\n\n\t\tJTabbedPane tabs = new JTabbedPane();\n\t\ttabs.addTab(jEdit.getProperty(\"helpviewer.toc.label\"),\n\t\t\ttoc = new HelpTOCPanel(this));\n\t\ttabs.addTab(jEdit.getProperty(\"helpviewer.search.label\"),\n\t\t\tnew HelpSearchPanel(this));\n\t\ttabs.setMinimumSize(new Dimension(0,0));\n\n\t\tJPanel rightPanel = new JPanel(new BorderLayout());\n\n\t\tBox toolBar = new Box(BoxLayout.X_AXIS);\n\t\t//toolBar.setFloatable(false);\n\n\t\ttoolBar.add(title = new JLabel());\n\t\ttoolBar.add(Box.createGlue());\n\t\thistoryModel = new HelpHistoryModel(25);\n\t\tback = new HistoryButton(HistoryButton.BACK,historyModel);\n\t\tback.addActionListener(actionListener);\n\t\ttoolBar.add(back);\n\t\tforward = new HistoryButton(HistoryButton.FORWARD,historyModel);\n\t\tforward.addActionListener(actionListener);\n\t\ttoolBar.add(forward);\n\t\tback.setPreferredSize(forward.getPreferredSize());\n\t\trightPanel.add(BorderLayout.NORTH,toolBar);\n\n\t\tviewer = new JEditorPane();\n\t\tviewer.setEditable(false);\n\t\tviewer.addHyperlinkListener(new LinkHandler());\n\t\tviewer.setFont(new Font(\"Monospaced\",Font.PLAIN,12));\n\t\tviewer.addPropertyChangeListener(new PropertyChangeHandler());\n\t\tviewer.addKeyListener(new KeyHandler());\n\n\t\tviewerScrollPane = new JScrollPane(viewer);\n\n\t\trightPanel.add(BorderLayout.CENTER,viewerScrollPane);\n\n\t\tsplitter = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\n\t\t\t\t\t  jEdit.getBooleanProperty(\"appearance.continuousLayout\"),\n\t\t\t\t\t  tabs,\n\t\t\t\t\t  rightPanel);\n\t\tsplitter.setBorder(null);\n\n\n\t\tgetContentPane().add(BorderLayout.CENTER,splitter);\n\n\t\thistoryModel.addHelpHistoryModelListener(this);\n\t\thistoryUpdated();\n\n\t\tgotoURL(url,true,0);\n\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\n\t\tgetRootPane().setPreferredSize(new Dimension(750,500));\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,\"helpviewer\");\n\t\tGUIUtilities.addSizeSaver(this,\"helpviewer\");\n\n\t\tEditBus.addToBus(this);\n\n\t\tsetVisible(true);\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tsplitter.setDividerLocation(jEdit.getIntegerProperty(\n\t\t\t\t\t\"helpviewer.splitter\",250));\n\t\t\t\tviewer.requestFocus();\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ gotoURL() method\n\t/**\n\t * Displays the specified URL in the HTML component.\n\t * \n\t * @param url \t\t The URL\n\t * @param addToHistory   Should the URL be added to the back/forward\n\t * \t\t\t history?\n\t * @param scrollPosition The vertical scrollPosition\n\t */\n\tpublic void gotoURL(String url, boolean addToHistory, final int scrollPosition)\n\t{\n\t\t// the TOC pane looks up user's guide URLs relative to the\n\t\t// doc directory...\n\t\tString shortURL;\n\t\tif (MiscUtilities.isURL(url))\n\t\t{\n\t\t\tif (url.startsWith(baseURL))\n\t\t\t{\n\t\t\t\tshortURL = url.substring(baseURL.length());\n\t\t\t\tif(shortURL.startsWith(\"/\"))\n\t\t\t\t{\n\t\t\t\t\tshortURL = shortURL.substring(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tshortURL = url;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshortURL = url;\n\t\t\tif(baseURL.endsWith(\"/\"))\n\t\t\t{\n\t\t\t\turl = baseURL + url;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\turl = baseURL + '/' + url;\n\t\t\t}\n\t\t}\n\n\t\t// reset default cursor so that the hand cursor doesn't\n\t\t// stick around\n\t\tviewer.setCursor(Cursor.getDefaultCursor());\n\n\t\ttry\n\t\t{\n\t\t\tURL _url = new URL(url);\n\n\t\t\tif(!_url.equals(viewer.getPage()))\n\t\t\t{\n\t\t\t\ttitle.setText(jEdit.getProperty(\"helpviewer.loading\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* don't show loading msg because we won't\n\t\t\t\t   receive a propertyChanged */\n\t\t\t}\n\n\t\t\thistoryModel.setCurrentScrollPosition(viewer.getPage(),getCurrentScrollPosition());\n\t\t\tviewer.setPage(_url);\n\t\t\tif (0 != scrollPosition)\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tviewerScrollPane.getVerticalScrollBar().setValue(scrollPosition);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tif(addToHistory)\n\t\t\t{\n\t\t\t\thistoryModel.addToHistory(url);\n\t\t\t}\n\t\t}\n\t\tcatch(MalformedURLException mf)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,mf);\n\t\t\tString[] args = { url, mf.getMessage() };\n\t\t\tGUIUtilities.error(this,\"badurl\",args);\n\t\t\treturn;\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\tString[] args = { url, io.toString() };\n\t\t\tGUIUtilities.error(this,\"read-error\",args);\n\t\t\treturn;\n\t\t}\n\n\t\tthis.shortURL = shortURL;\n\n\t\t// select the appropriate tree node.\n\t\tif(shortURL != null)\n\t\t{\n\t\t\ttoc.selectNode(shortURL);\n\t\t}\n\t\t\n\t\tviewer.requestFocus();\n\t} //}}}\n\n\t//{{{ getCurrentScrollPosition() method\n\tint getCurrentScrollPosition() {\n\t\treturn viewerScrollPane.getVerticalScrollBar().getValue();\n\t} //}}}\n\n\t//{{{ getCurrentPage() method\n\tURL getCurrentPage() {\n\t\treturn viewer.getPage();\n\t} //}}}\n\n\t//{{{ dispose() method\n\tpublic void dispose()\n\t{\n\t\tEditBus.removeFromBus(this);\n\t\tjEdit.setIntegerProperty(\"helpviewer.splitter\",\n\t\t\tsplitter.getDividerLocation());\n\t\tsuper.dispose();\n\t} //}}}\n\n\t//{{{ handleMessage() method\n\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof PluginUpdate)\n\t\t{\n\t\t\tPluginUpdate pmsg = (PluginUpdate)msg;\n\t\t\tif(pmsg.getWhat() == PluginUpdate.LOADED\n\t\t\t\t|| pmsg.getWhat() == PluginUpdate.UNLOADED)\n\t\t\t{\n\t\t\t\tif(!pmsg.isExiting())\n\t\t\t\t{\n\t\t\t\t\tif(!queuedTOCReload)\n\t\t\t\t\t\tqueueTOCReload();\n\t\t\t\t\tqueuedTOCReload = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (msg instanceof PropertiesChanged)\n\t\t{\n\t\t\tGUIUtilities.initContinuousLayout(splitter);\n\t\t}\n\t} //}}}\n\n\t//{{{ getBaseURL() method\n\tpublic String getBaseURL()\n\t{\n\t\treturn baseURL;\n\t} //}}}\n\n\t//{{{ getShortURL() method\n\tpublic String getShortURL()\n\t{\n\t\treturn shortURL;\n\t} //}}}\n\n\t//{{{ historyUpdated() method\n\tpublic void historyUpdated()\n\t{\n\t\tback.setEnabled(historyModel.hasPrevious());\n\t\tforward.setEnabled(historyModel.hasNext());\n\t} //}}}\n\n\t//{{{ getComponent method\n\tpublic Component getComponent()\n\t{\n\t\treturn getRootPane();\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance members\n\tprivate String baseURL;\n\tprivate String shortURL;\n\tprivate HistoryButton back;\n\tprivate HistoryButton forward;\n\tprivate JEditorPane viewer;\n\tprivate JScrollPane viewerScrollPane;\n\tprivate JLabel title;\n\tprivate JSplitPane splitter;\n\tprivate HelpHistoryModel historyModel;\n\tprivate HelpTOCPanel toc;\n\tprivate boolean queuedTOCReload;\n\t//}}}\n\n\t//{{{ queueTOCReload() method\n\tpublic void queueTOCReload()\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tqueuedTOCReload = false;\n\t\t\t\ttoc.load();\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\t//{{{ actionPerformed() class\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\t\t\tString actionCommand = evt.getActionCommand();\n\t\t\tint separatorPosition = actionCommand.lastIndexOf(':');\n\t\t\tString url;\n\t\t\tint scrollPosition;\n\t\t\tif (-1 == separatorPosition)\n\t\t\t{\n\t\t\t\turl = actionCommand;\n\t\t\t\tscrollPosition = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\turl = actionCommand.substring(0,separatorPosition);\n\t\t\t\tscrollPosition = Integer.parseInt(actionCommand.substring(separatorPosition+1));\n\t\t\t}\n\t\t\tif (url.length() != 0)\n\t\t\t{\n\t\t\t\tgotoURL(url,false,scrollPosition);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(source == back)\n\t\t\t{\n\t\t\t\tHistoryEntry entry = historyModel.back(HelpViewer.this);\n\t\t\t\tif(entry == null)\n\t\t\t\t{\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tgotoURL(entry.url,false,entry.scrollPosition);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(source == forward)\n\t\t\t{\n\t\t\t\tHistoryEntry entry = historyModel.forward(HelpViewer.this);\n\t\t\t\tif(entry == null)\n\t\t\t\t{\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tgotoURL(entry.url,false,entry.scrollPosition);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ LinkHandler class\n\tclass LinkHandler implements HyperlinkListener\n\t{\n\t\t//{{{ hyperlinkUpdate() method\n\t\tpublic void hyperlinkUpdate(HyperlinkEvent evt)\n\t\t{\n\t\t\tif(evt.getEventType() == HyperlinkEvent.EventType.ACTIVATED)\n\t\t\t{\n\t\t\t\tif(evt instanceof HTMLFrameHyperlinkEvent)\n\t\t\t\t{\n\t\t\t\t\t((HTMLDocument)viewer.getDocument())\n\t\t\t\t\t\t.processHTMLFrameHyperlinkEvent(\n\t\t\t\t\t\t(HTMLFrameHyperlinkEvent)evt);\n\t\t\t\t\thistoryUpdated();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tURL url = evt.getURL();\n\t\t\t\t\tif(url != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tgotoURL(url.toString(),true,0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (evt.getEventType() == HyperlinkEvent.EventType.ENTERED)\n\t\t\t{\n\t\t\t\tviewer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t}\n\t\t\telse if (evt.getEventType() == HyperlinkEvent.EventType.EXITED)\n\t\t\t{\n\t\t\t\tviewer.setCursor(Cursor.getDefaultCursor());\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ PropertyChangeHandler class\n\tclass PropertyChangeHandler implements PropertyChangeListener\n\t{\n\t\tpublic void propertyChange(PropertyChangeEvent evt)\n\t\t{\n\t\t\tif(\"page\".equals(evt.getPropertyName()))\n\t\t\t{\n\t\t\t\tString titleStr = (String)viewer.getDocument()\n\t\t\t\t\t.getProperty(\"title\");\n\t\t\t\tif(titleStr == null)\n\t\t\t\t{\n\t\t\t\t\ttitleStr = MiscUtilities.getFileName(\n\t\t\t\t\t\tviewer.getPage().toString());\n\t\t\t\t}\n\t\t\t\ttitle.setText(titleStr);\n\t\t\t\thistoryModel.updateTitle(viewer.getPage().toString(),\n\t\t\t\t\ttitleStr);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ KeyHandler class\n\tprivate class KeyHandler extends KeyAdapter\n\t{\n\t\tpublic void keyPressed(KeyEvent ke)\n\t\t{\n\t\t\tswitch (ke.getKeyCode())\n\t\t\t{\n\t\t\tcase KeyEvent.VK_UP:\n\t\t\t\tJScrollBar scrollBar = viewerScrollPane.getVerticalScrollBar();\n\t\t\t\tscrollBar.setValue(scrollBar.getValue()-scrollBar.getUnitIncrement(-1));\n\t\t\t\tke.consume();\n\t\t\t\tbreak;\n\t\t\tcase KeyEvent.VK_DOWN:\n\t\t\t\tscrollBar = viewerScrollPane.getVerticalScrollBar();\n\t\t\t\tscrollBar.setValue(scrollBar.getValue()+scrollBar.getUnitIncrement(1));\n\t\t\t\tke.consume();\n\t\t\t\tbreak;\n\t\t\tcase KeyEvent.VK_LEFT:\n\t\t\t\tscrollBar = viewerScrollPane.getHorizontalScrollBar();\n\t\t\t\tscrollBar.setValue(scrollBar.getValue()-scrollBar.getUnitIncrement(-1));\n\t\t\t\tke.consume();\n\t\t\t\tbreak;\n\t\t\tcase KeyEvent.VK_RIGHT:\n\t\t\t\tscrollBar = viewerScrollPane.getHorizontalScrollBar();\n\t\t\t\tscrollBar.setValue(scrollBar.getValue()+scrollBar.getUnitIncrement(1));\n\t\t\t\tke.consume();\n\t\t\t\tbreak;", "functions": [{"function_name": "gotoURL", "code": "\tpublic void gotoURL(String url, boolean addToHistory, final int scrollPosition)\n\t{\n\t\t// the TOC pane looks up user's guide URLs relative to the\n\t\t// doc directory...\n\t\tString shortURL;\n\t\tif (MiscUtilities.isURL(url))\n\t\t{\n\t\t\tif (url.startsWith(baseURL))\n\t\t\t{\n\t\t\t\tshortURL = url.substring(baseURL.length());\n\t\t\t\tif(shortURL.startsWith(\"/\"))\n\t\t\t\t{\n\t\t\t\t\tshortURL = shortURL.substring(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tshortURL = url;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshortURL = url;\n\t\t\tif(baseURL.endsWith(\"/\"))\n\t\t\t{\n\t\t\t\turl = baseURL + url;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\turl = baseURL + '/' + url;\n\t\t\t}\n\t\t}\n\n\t\t// reset default cursor so that the hand cursor doesn't\n\t\t// stick around\n\t\tviewer.setCursor(Cursor.getDefaultCursor());\n\n\t\ttry\n\t\t{\n\t\t\tURL _url = new URL(url);\n\n\t\t\tif(!_url.equals(viewer.getPage()))\n\t\t\t{\n\t\t\t\ttitle.setText(jEdit.getProperty(\"helpviewer.loading\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* don't show loading msg because we won't\n\t\t\t\t   receive a propertyChanged */\n\t\t\t}\n\n\t\t\thistoryModel.setCurrentScrollPosition(viewer.getPage(),getCurrentScrollPosition());\n\t\t\tviewer.setPage(_url);\n\t\t\tif (0 != scrollPosition)\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tviewerScrollPane.getVerticalScrollBar().setValue(scrollPosition);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tif(addToHistory)\n\t\t\t{\n\t\t\t\thistoryModel.addToHistory(url);\n\t\t\t}\n\t\t}\n\t\tcatch(MalformedURLException mf)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,mf);\n\t\t\tString[] args = { url, mf.getMessage() };\n\t\t\tGUIUtilities.error(this,\"badurl\",args);\n\t\t\treturn;\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,io);\n\t\t\tString[] args = { url, io.toString() };\n\t\t\tGUIUtilities.error(this,\"read-error\",args);\n\t\t\treturn;\n\t\t}\n\n\t\tthis.shortURL = shortURL;\n\n\t\t// select the appropriate tree node.\n\t\tif(shortURL != null)\n\t\t{\n\t\t\ttoc.selectNode(shortURL);\n\t\t}\n\t\t\n\t\tviewer.requestFocus();", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "CATCH", "CATCH", "IF", "IF", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "FUNC_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [0, 17], [3, 18], [9, 19], [11, 20], [11, 21], [12, 22], [12, 23], [14, 24], [2, 25], [2, 26], [15, 27], [17, 28], [3, 29], [3, 30], [1, 31], [11, 32], [11, 33], [12, 34], [12, 35], [24, 36], [26, 37], [26, 38], [27, 39], [16, 40], [29, 41], [3, 42], [30, 43], [32, 44], [34, 45], [13, 46], [14, 47], [15, 48], [41, 49], [30, 50], [21, 51], [23, 52], [47, 53], [48, 54], [29, 55], [29, 56], [30, 57], [50, 58], [30, 59], [53, 60], [54, 61], [55, 62], [56, 63], [58, 64], [59, 65], [62, 66], [50, 67], [65, 68], [60, 69], [66, 70], [67, 71], [69, 72], [71, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 0], [18, 3], [19, 9], [20, 11], [21, 11], [22, 12], [23, 12], [24, 14], [25, 2], [26, 2], [27, 15], [28, 17], [29, 3], [30, 3], [31, 1], [32, 11], [33, 11], [34, 12], [35, 12], [36, 24], [37, 26], [38, 26], [39, 27], [40, 16], [41, 29], [42, 3], [43, 30], [44, 32], [45, 34], [46, 13], [47, 14], [48, 15], [49, 41], [50, 30], [51, 21], [52, 23], [53, 47], [54, 48], [55, 29], [56, 29], [57, 30], [58, 50], [59, 30], [60, 53], [61, 54], [62, 55], [63, 56], [64, 58], [65, 59], [66, 62], [67, 50], [68, 65], [69, 60], [70, 66], [71, 67], [72, 69], [73, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "getCurrentScrollPosition", "code": "\tint getCurrentScrollPosition() {\n\t\treturn viewerScrollPane.getVerticalScrollBar().getValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCurrentPage", "code": "\tURL getCurrentPage() {\n\t\treturn viewer.getPage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "dispose", "code": "\tpublic void dispose()\n\t{\n\t\tEditBus.removeFromBus(this);\n\t\tjEdit.setIntegerProperty(\"helpviewer.splitter\",\n\t\t\tsplitter.getDividerLocation());\n\t\tsuper.dispose();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "handleMessage", "code": "\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof PluginUpdate)\n\t\t{\n\t\t\tPluginUpdate pmsg = (PluginUpdate)msg;\n\t\t\tif(pmsg.getWhat() == PluginUpdate.LOADED\n\t\t\t\t|| pmsg.getWhat() == PluginUpdate.UNLOADED)\n\t\t\t{\n\t\t\t\tif(!pmsg.isExiting())\n\t\t\t\t{\n\t\t\t\t\tif(!queuedTOCReload)\n\t\t\t\t\t\tqueueTOCReload();\n\t\t\t\t\tqueuedTOCReload = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (msg instanceof PropertiesChanged)\n\t\t{\n\t\t\tGUIUtilities.initContinuousLayout(splitter);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [6, 8], [3, 9], [6, 10], [8, 11], [8, 12], [10, 13], [11, 14], [12, 15], [10, 16], [10, 17], [17, 18], [16, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 6], [9, 3], [10, 6], [11, 8], [12, 8], [13, 10], [14, 11], [15, 12], [16, 10], [17, 10], [18, 17], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getBaseURL", "code": "\tpublic String getBaseURL()\n\t{\n\t\treturn baseURL;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getShortURL", "code": "\tpublic String getShortURL()\n\t{\n\t\treturn shortURL;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "historyUpdated", "code": "\tpublic void historyUpdated()\n\t{\n\t\tback.setEnabled(historyModel.hasPrevious());\n\t\tforward.setEnabled(historyModel.hasNext());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getComponent", "code": "\tpublic Component getComponent()\n\t{\n\t\treturn getRootPane();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "queueTOCReload", "code": "\tpublic void queueTOCReload()\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tqueuedTOCReload = false;\n\t\t\t\ttoc.load();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "FUNC_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "HelpViewer", "code": "\tpublic HelpViewer()\n\t{\n\t\tthis(\"welcome.html\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HelpViewer", "code": "\tpublic HelpViewer(URL url)\n\t{\n\t\tthis(url.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HelpViewer", "code": "\tpublic HelpViewer(String url)\n\t{\n\t\tsuper(jEdit.getProperty(\"helpviewer.title\"));\n\n\t\tsetIconImage(GUIUtilities.getEditorIcon());\n\n\t\ttry\n\t\t{\n\t\t\tbaseURL = new File(MiscUtilities.constructPath(\n\t\t\t\tjEdit.getJEditHome(),\"doc\")).toURL().toString();\n\t\t}\n\t\tcatch(MalformedURLException mu)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,mu);\n\t\t\t// what to do?\n\t\t}\n\n\t\tActionHandler actionListener = new ActionHandler();\n\n\t\tJTabbedPane tabs = new JTabbedPane();\n\t\ttabs.addTab(jEdit.getProperty(\"helpviewer.toc.label\"),\n\t\t\ttoc = new HelpTOCPanel(this));\n\t\ttabs.addTab(jEdit.getProperty(\"helpviewer.search.label\"),\n\t\t\tnew HelpSearchPanel(this));\n\t\ttabs.setMinimumSize(new Dimension(0,0));\n\n\t\tJPanel rightPanel = new JPanel(new BorderLayout());\n\n\t\tBox toolBar = new Box(BoxLayout.X_AXIS);\n\t\t//toolBar.setFloatable(false);\n\n\t\ttoolBar.add(title = new JLabel());\n\t\ttoolBar.add(Box.createGlue());\n\t\thistoryModel = new HelpHistoryModel(25);\n\t\tback = new HistoryButton(HistoryButton.BACK,historyModel);\n\t\tback.addActionListener(actionListener);\n\t\ttoolBar.add(back);\n\t\tforward = new HistoryButton(HistoryButton.FORWARD,historyModel);\n\t\tforward.addActionListener(actionListener);\n\t\ttoolBar.add(forward);\n\t\tback.setPreferredSize(forward.getPreferredSize());\n\t\trightPanel.add(BorderLayout.NORTH,toolBar);\n\n\t\tviewer = new JEditorPane();\n\t\tviewer.setEditable(false);\n\t\tviewer.addHyperlinkListener(new LinkHandler());\n\t\tviewer.setFont(new Font(\"Monospaced\",Font.PLAIN,12));\n\t\tviewer.addPropertyChangeListener(new PropertyChangeHandler());\n\t\tviewer.addKeyListener(new KeyHandler());\n\n\t\tviewerScrollPane = new JScrollPane(viewer);\n\n\t\trightPanel.add(BorderLayout.CENTER,viewerScrollPane);\n\n\t\tsplitter = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\n\t\t\t\t\t  jEdit.getBooleanProperty(\"appearance.continuousLayout\"),\n\t\t\t\t\t  tabs,\n\t\t\t\t\t  rightPanel);\n\t\tsplitter.setBorder(null);\n\n\n\t\tgetContentPane().add(BorderLayout.CENTER,splitter);\n\n\t\thistoryModel.addHelpHistoryModelListener(this);\n\t\thistoryUpdated();\n\n\t\tgotoURL(url,true,0);\n\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\n\t\tgetRootPane().setPreferredSize(new Dimension(750,500));\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,\"helpviewer\");\n\t\tGUIUtilities.addSizeSaver(this,\"helpviewer\");\n\n\t\tEditBus.addToBus(this);\n\n\t\tsetVisible(true);\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tsplitter.setDividerLocation(jEdit.getIntegerProperty(\n\t\t\t\t\t\"helpviewer.splitter\",250));\n\t\t\t\tviewer.requestFocus();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "TRY", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [5, 43], [0, 44], [0, 45], [7, 46], [8, 47], [10, 48], [11, 49], [13, 50], [15, 51], [15, 52], [18, 53], [19, 54], [20, 55], [22, 56], [23, 57], [24, 58], [25, 59], [26, 60], [27, 61], [28, 62], [30, 63], [33, 64], [36, 65], [37, 66], [38, 67], [39, 68], [1, 69], [2, 70], [40, 71], [41, 72], [41, 73], [42, 74], [42, 75], [3, 76], [4, 77], [5, 78], [44, 79], [45, 80], [46, 81], [50, 82], [55, 83], [59, 84], [59, 85], [66, 86], [68, 87], [70, 88], [71, 89], [71, 90], [73, 91], [74, 92], [75, 93], [43, 94], [78, 95], [82, 96], [82, 97], [83, 98], [95, 99], [95, 100], [95, 101], [81, 102], [81, 103], [99, 104], [99, 105], [103, 106], [106, 107], [106, 108], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 5], [44, 0], [45, 0], [46, 7], [47, 8], [48, 10], [49, 11], [50, 13], [51, 15], [52, 15], [53, 18], [54, 19], [55, 20], [56, 22], [57, 23], [58, 24], [59, 25], [60, 26], [61, 27], [62, 28], [63, 30], [64, 33], [65, 36], [66, 37], [67, 38], [68, 39], [69, 1], [70, 2], [71, 40], [72, 41], [73, 41], [74, 42], [75, 42], [76, 3], [77, 4], [78, 5], [79, 44], [80, 45], [81, 46], [82, 50], [83, 55], [84, 59], [85, 59], [86, 66], [87, 68], [88, 70], [89, 71], [90, 71], [91, 73], [92, 74], [93, 75], [94, 43], [95, 78], [96, 82], [97, 82], [98, 83], [99, 95], [100, 95], [101, 95], [102, 81], [103, 81], [104, 99], [105, 99], [106, 103], [107, 106], [108, 106], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108]]}], "label": 1}
{"sample_id": "ant-1.6-644", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/util/facade/FacadeTaskHelper.java", "language": "java", "name": "org.apache.tools.ant.util.facade.FacadeTaskHelper", "code": "public class FacadeTaskHelper {\n\n    /**\n     * Command line arguments.\n     */\n    private Vector args = new Vector();\n\n    /**\n     * The explicitly chosen implementation.\n     */\n    private String userChoice;\n\n    /**\n     * The magic property to consult.\n     */\n    private String magicValue;\n\n    /**\n     * The default value.\n     */\n    private String defaultValue;\n\n    /**\n     * @param defaultValue The default value for the implementation.\n     * Must not be null.\n     */\n    public FacadeTaskHelper(String defaultValue) {\n        this(defaultValue, null);\n    }\n\n    /**\n     * @param defaultValue The default value for the implementation.\n     * Must not be null.\n     * @param magicValue the value of a magic property that may hold a user.\n     * choice.  May be null.\n     */\n    public FacadeTaskHelper(String defaultValue, String magicValue) {\n        this.defaultValue = defaultValue;\n        this.magicValue = magicValue;\n    }\n\n    /**\n     * Used to set the value of the magic property.\n     * @param magicValue the value of a magic property that may hold a user.\n     */\n    public void setMagicValue(String magicValue) {\n        this.magicValue = magicValue;\n    }\n\n    /**\n     * Used for explicit user choices.\n     * @param userChoice the explicitly chosen implementation.\n     */\n    public void setImplementation(String userChoice) {\n        this.userChoice = userChoice;\n    }\n\n    /**\n     * Retrieves the implementation.\n     * @return the implementation.\n     */\n    public String getImplementation() {\n        return userChoice != null ? userChoice\n                                  : (magicValue != null ? magicValue\n                                                        : defaultValue);\n    }\n\n    /**\n     * Retrieves the explicit user choice.\n     * @return the explicit user choice.\n     */\n    public String getExplicitChoice() {\n        return userChoice;\n    }\n\n    /**\n     * Command line argument.\n     * @param arg an argument to add.\n     */\n    public void addImplementationArgument(ImplementationSpecificArgument arg) {\n        args.addElement(arg);\n    }\n\n    /**\n     * Retrieves the command line arguments enabled for the current\n     * facade implementation.\n     * @return an array of command line arguements.\n     */\n    public String[] getArgs() {\n        Vector tmp = new Vector(args.size());\n        for (Enumeration e = args.elements(); e.hasMoreElements();) {\n            ImplementationSpecificArgument arg =\n                ((ImplementationSpecificArgument) e.nextElement());\n            String[] curr = arg.getParts(getImplementation());\n            for (int i = 0; i < curr.length; i++) {\n                tmp.addElement(curr[i]);\n            }\n        }\n        String[] res = new String[tmp.size()];\n        tmp.copyInto(res);\n        return res;\n    }\n\n    /**\n     * Tests whether the implementation has been chosen by the user\n     * (either via a magic property or explicitly.\n     * @return true if magic or user choice has be set.\n     * @since Ant 1.5.2\n     */\n    public boolean hasBeenSet() {\n        return userChoice != null || magicValue != null;", "functions": [{"function_name": "setMagicValue", "code": "    public void setMagicValue(String magicValue) {\n        this.magicValue = magicValue;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setImplementation", "code": "    public void setImplementation(String userChoice) {\n        this.userChoice = userChoice;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getImplementation", "code": "    public String getImplementation() {\n        return userChoice != null ? userChoice\n                                  : (magicValue != null ? magicValue\n                                                        : defaultValue);", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getExplicitChoice", "code": "    public String getExplicitChoice() {\n        return userChoice;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addImplementationArgument", "code": "    public void addImplementationArgument(ImplementationSpecificArgument arg) {\n        args.addElement(arg);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getArgs", "code": "    public String[] getArgs() {\n        Vector tmp = new Vector(args.size());\n        for (Enumeration e = args.elements(); e.hasMoreElements();) {\n            ImplementationSpecificArgument arg =\n                ((ImplementationSpecificArgument) e.nextElement());\n            String[] curr = arg.getParts(getImplementation());\n            for (int i = 0; i < curr.length; i++) {\n                tmp.addElement(curr[i]);\n            }\n        }\n        String[] res = new String[tmp.size()];\n        tmp.copyInto(res);\n        return res;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [3, 8], [3, 9], [4, 10], [2, 11], [7, 12], [3, 13], [10, 14], [8, 15], [7, 16], [7, 17], [15, 18], [9, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 3], [9, 3], [10, 4], [11, 2], [12, 7], [13, 3], [14, 10], [15, 8], [16, 7], [17, 7], [18, 15], [19, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "hasBeenSet", "code": "    public boolean hasBeenSet() {\n        return userChoice != null || magicValue != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "FacadeTaskHelper", "code": "    public FacadeTaskHelper(String defaultValue) {\n        this(defaultValue, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FacadeTaskHelper", "code": "    public FacadeTaskHelper(String defaultValue, String magicValue) {\n        this.defaultValue = defaultValue;\n        this.magicValue = magicValue;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-3.0-6124", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/DrawingSelectionRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DrawingSelectionRecord", "code": "public class DrawingSelectionRecord extends AbstractEscherHolderRecord\n{\n    public static final short sid = 0xED;\n\n    public DrawingSelectionRecord()\n    {\n    }\n\n    public DrawingSelectionRecord( RecordInputStream in )\n    {\n        super( in );\n    }\n\n    protected String getRecordName()\n    {\n        return \"MSODRAWINGSELECTION\";\n    }\n\n    public short getSid()\n    {\n        return sid;", "functions": [{"function_name": "getRecordName", "code": "    protected String getRecordName()\n    {\n        return \"MSODRAWINGSELECTION\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DrawingSelectionRecord", "code": "    public DrawingSelectionRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DrawingSelectionRecord", "code": "    public DrawingSelectionRecord( RecordInputStream in )\n    {\n        super( in );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.2-4222", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/ActionContext.java", "language": "java", "name": "org.gjt.sp.jedit.ActionContext", "code": "public abstract class ActionContext\n{\n\t//{{{ invokeAction() method\n\t/**\n\t * Invokes the given action in response to a user-generated event.\n\t * @param evt The event\n\t * @param action The action\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic abstract void invokeAction(EventObject evt, EditAction action);\n\t//}}}\n\n\t//{{{ addActionSet() method\n\t/**\n\t * Adds a new action set to the context.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void addActionSet(ActionSet actionSet)\n\t{\n\t\tactionNames = null;\n\t\tactionSets.addElement(actionSet);\n\t\tactionSet.context = this;\n\t\tString[] actions = actionSet.getActionNames();\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tactionHash.put(actions[i],actionSet);\n\t\t}\n\t} //}}}\n\n\t//{{{ removeActionSet() method\n\t/**\n\t * Removes an action set from the context.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void removeActionSet(ActionSet actionSet)\n\t{\n\t\tactionNames = null;\n\t\tactionSets.removeElement(actionSet);\n\t\tactionSet.context = null;\n\t\tString[] actions = actionSet.getActionNames();\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tactionHash.remove(actions[i]);\n\t\t}\n\t} //}}}\n\n\t//{{{ getActionSets() method\n\t/**\n\t * Returns all registered action sets.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic ActionSet[] getActionSets()\n\t{\n\t\tActionSet[] retVal = new ActionSet[actionSets.size()];\n\t\tactionSets.copyInto(retVal);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ getAction() method\n\t/**\n\t * Returns the specified action.\n\t * @param name The action name\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic EditAction getAction(String name)\n\t{\n\t\tActionSet set = (ActionSet)actionHash.get(name);\n\t\tif(set == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn set.getAction(name);\n\t} //}}}\n\n\t//{{{ getActionSetForAction() method\n\t/**\n\t * Returns the action set that contains the specified action.\n\t *\n\t * @param action The action\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic ActionSet getActionSetForAction(String action)\n\t{\n\t\treturn (ActionSet)actionHash.get(action);\n\t} //}}}\n\n\t//{{{ getActionNames() method\n\t/**\n\t * Returns all registered action names.\n\t */\n\tpublic String[] getActionNames()\n\t{\n\t\tif(actionNames == null)\n\t\t{\n\t\t\tList vec = new LinkedList();\n\t\t\tfor(int i = 0; i < actionSets.size(); i++)\n\t\t\t\t((ActionSet)actionSets.elementAt(i)).getActionNames(vec);\n\n\t\t\tactionNames = (String[])vec.toArray(\n\t\t\t\tnew String[vec.size()]);\n\t\t\tArrays.sort(actionNames,\n\t\t\t\tnew MiscUtilities.StringICaseCompare());\n\t\t}\n\n\t\treturn actionNames;\n\t} //}}}\n\n\t//{{{ Package-private members\n\tString[] actionNames;\n\tHashtable actionHash = new Hashtable();\n\t//}}}\n\n\t//{{{ Private members\n\tprivate Vector actionSets = new Vector();", "functions": [{"function_name": "invokeAction", "code": "\tpublic abstract void invokeAction(EventObject evt, EditAction action);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addActionSet", "code": "\tpublic void addActionSet(ActionSet actionSet)\n\t{\n\t\tactionNames = null;\n\t\tactionSets.addElement(actionSet);\n\t\tactionSet.context = this;\n\t\tString[] actions = actionSet.getActionNames();\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tactionHash.put(actions[i],actionSet);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [2, 8], [7, 9], [1, 10], [1, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 2], [9, 7], [10, 1], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "removeActionSet", "code": "\tpublic void removeActionSet(ActionSet actionSet)\n\t{\n\t\tactionNames = null;\n\t\tactionSets.removeElement(actionSet);\n\t\tactionSet.context = null;\n\t\tString[] actions = actionSet.getActionNames();\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tactionHash.remove(actions[i]);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [2, 8], [5, 9], [7, 10], [1, 11], [1, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 2], [9, 5], [10, 7], [11, 1], [12, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getActionSets", "code": "\tpublic ActionSet[] getActionSets()\n\t{\n\t\tActionSet[] retVal = new ActionSet[actionSets.size()];\n\t\tactionSets.copyInto(retVal);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAction", "code": "\tpublic EditAction getAction(String name)\n\t{\n\t\tActionSet set = (ActionSet)actionHash.get(name);\n\t\tif(set == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn set.getAction(name);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getActionSetForAction", "code": "\tpublic ActionSet getActionSetForAction(String action)\n\t{\n\t\treturn (ActionSet)actionHash.get(action);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getActionNames", "code": "\tpublic String[] getActionNames()\n\t{\n\t\tif(actionNames == null)\n\t\t{\n\t\t\tList vec = new LinkedList();\n\t\t\tfor(int i = 0; i < actionSets.size(); i++)\n\t\t\t\t((ActionSet)actionSets.elementAt(i)).getActionNames(vec);\n\n\t\t\tactionNames = (String[])vec.toArray(\n\t\t\t\tnew String[vec.size()]);\n\t\t\tArrays.sort(actionNames,\n\t\t\t\tnew MiscUtilities.StringICaseCompare());\n\t\t}\n\n\t\treturn actionNames;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [3, 6], [2, 7], [2, 8], [4, 9], [7, 10], [9, 11], [5, 12], [8, 13], [4, 14], [4, 15], [13, 16], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 3], [7, 2], [8, 2], [9, 4], [10, 7], [11, 9], [12, 5], [13, 8], [14, 4], [15, 4], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "jedit-4.2-4422", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/io/FavoritesVFS.java", "language": "java", "name": "org.gjt.sp.jedit.io.FavoritesVFS", "code": "public class FavoritesVFS extends VFS\n{\n\tpublic static final String PROTOCOL = \"favorites\";\n\n\t//{{{ FavoritesVFS constructor\n\tpublic FavoritesVFS()\n\t{\n\t\tsuper(\"favorites\",DELETE_CAP | LOW_LATENCY_CAP,\n\t\t\tnew String[] { EA_TYPE });\n\n\t\t/* addToFavorites(), which is a static method\n\t\t * (for convinience) needs an instance of the\n\t\t * VFS to pass to VFSManager.sendVFSUpdate(),\n\t\t * hence this hack. */\n\t\tinstance = this;\n\t} //}}}\n\n\t//{{{ getParentOfPath() method\n\tpublic String getParentOfPath(String path)\n\t{\n\t\treturn PROTOCOL + \":\";\n\t} //}}}\n\n\t//{{{ _listDirectory() method\n\tpublic VFS.DirectoryEntry[] _listDirectory(Object session, String url,\n\t\tComponent comp)\n\t{\n\t\treturn getFavorites();\n\t} //}}}\n\n\t//{{{ _getDirectoryEntry() method\n\tpublic DirectoryEntry _getDirectoryEntry(Object session, String path,\n\t\tComponent comp)\n\t{\n\t\t// does it matter that this doesn't set the type correctly?\n\t\treturn new FavoritesEntry(path,VFS.DirectoryEntry.DIRECTORY);\n\t} //}}}\n\n\t//{{{ _delete() method\n\tpublic boolean _delete(Object session, String path, Component comp)\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tpath = path.substring(PROTOCOL.length() + 1);\n\n\t\t\tIterator iter = favorites.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tif(((FavoritesEntry)iter.next()).path.equals(path))\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tVFSManager.sendVFSUpdate(this,PROTOCOL\n\t\t\t\t\t\t+ \":\",false);\n\t\t\t\t\tEditBus.send(new DynamicMenuChanged(\n\t\t\t\t\t\t\"favorites\"));\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ loadFavorites() method\n\tpublic static void loadFavorites()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tfavorites = new LinkedList();\n\n\t\t\tString favorite;\n\t\t\tint i = 0;\n\t\t\twhile((favorite = jEdit.getProperty(\"vfs.favorite.\" + i)) != null)\n\t\t\t{\n\t\t\t\tfavorites.add(new FavoritesEntry(favorite,\n\t\t\t\t\tjEdit.getIntegerProperty(\"vfs.favorite.\"\n\t\t\t\t\t+ i + \".type\",\n\t\t\t\t\tVFS.DirectoryEntry.DIRECTORY)));\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ addToFavorites() method\n\tpublic static void addToFavorites(String path, int type)\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tif(favorites == null)\n\t\t\t\tloadFavorites();\n\n\t\t\tIterator iter = favorites.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tif(((FavoritesEntry)iter.next()).path.equals(path))\n\t\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfavorites.add(new FavoritesEntry(path,type));\n\n\t\t\tVFSManager.sendVFSUpdate(instance,PROTOCOL + \":\",false);\n\t\t\tEditBus.send(new DynamicMenuChanged(\"favorites\"));\n\t\t}\n\t} //}}}\n\n\t//{{{ saveFavorites() method\n\tpublic static void saveFavorites()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tif(favorites == null)\n\t\t\t\treturn;\n\n\t\t\tint i = 0;\n\t\t\tIterator iter = favorites.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tFavoritesEntry e = ((FavoritesEntry)\n\t\t\t\t\titer.next());\n\t\t\t\tjEdit.setProperty(\"vfs.favorite.\" + i,\n\t\t\t\t\te.path);\n\t\t\t\tjEdit.setIntegerProperty(\"vfs.favorite.\" + i\n\t\t\t\t\t+ \".type\",e.type);\n\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tjEdit.unsetProperty(\"vfs.favorite.\" + favorites.size());\n\t\t\tjEdit.unsetProperty(\"vfs.favorite.\" + favorites.size()\n\t\t\t\t+ \".type\");\n\t\t}\n\t} //}}}\n\n\t//{{{ getFavorites() method\n\tpublic static VFS.DirectoryEntry[] getFavorites()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tif(favorites == null)\n\t\t\t\tloadFavorites();\n\n\t\t\treturn (VFS.DirectoryEntry[])favorites.toArray(\n\t\t\t\tnew VFS.DirectoryEntry[favorites.size()]);\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static FavoritesVFS instance;\n\tprivate static Object lock = new Object();\n\tprivate static List favorites;\n\t//}}}\n\n\t//{{{ FavoritesEntry class\n\tstatic class FavoritesEntry extends VFS.DirectoryEntry\n\t{\n\t\tFavoritesEntry(String path, int type)\n\t\t{\n\t\t\tsuper(path,path,PROTOCOL + \":\" + path,type,0,false);\n\t\t}\n\n\t\tpublic String getExtendedAttribute(String name)\n\t\t{\n\t\t\tif(name.equals(EA_TYPE))\n\t\t\t\treturn super.getExtendedAttribute(name);\n\t\t\telse\n\t\t\t{\n\t\t\t\t// don't want it to show \"0 bytes\" for size,\n\t\t\t\t// etc.\n\t\t\t\treturn null;", "functions": [{"function_name": "getParentOfPath", "code": "\tpublic String getParentOfPath(String path)\n\t{\n\t\treturn PROTOCOL + \":\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "_listDirectory", "code": "\tpublic VFS.DirectoryEntry[] _listDirectory(Object session, String url,\n\t\tComponent comp)\n\t{\n\t\treturn getFavorites();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "_getDirectoryEntry", "code": "\tpublic DirectoryEntry _getDirectoryEntry(Object session, String path,\n\t\tComponent comp)\n\t{\n\t\t// does it matter that this doesn't set the type correctly?\n\t\treturn new FavoritesEntry(path,VFS.DirectoryEntry.DIRECTORY);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "_delete", "code": "\tpublic boolean _delete(Object session, String path, Component comp)\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tpath = path.substring(PROTOCOL.length() + 1);\n\n\t\t\tIterator iter = favorites.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tif(((FavoritesEntry)iter.next()).path.equals(path))\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\tVFSManager.sendVFSUpdate(this,PROTOCOL\n\t\t\t\t\t\t+ \":\",false);\n\t\t\t\t\tEditBus.send(new DynamicMenuChanged(\n\t\t\t\t\t\t\"favorites\"));\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "ASSIGN", "IF", "CALL", "CALL", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [6, 8], [0, 9], [6, 10], [7, 11], [9, 12], [12, 13], [10, 14], [10, 15], [13, 16], [13, 17], [14, 18], [10, 19], [10, 20], [10, 21], [19, 22], [20, 23], [20, 24], [22, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 6], [9, 0], [10, 6], [11, 7], [12, 9], [13, 12], [14, 10], [15, 10], [16, 13], [17, 13], [18, 14], [19, 10], [20, 10], [21, 10], [22, 19], [23, 20], [24, 20], [25, 22], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "loadFavorites", "code": "\tpublic static void loadFavorites()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tfavorites = new LinkedList();\n\n\t\t\tString favorite;\n\t\t\tint i = 0;\n\t\t\twhile((favorite = jEdit.getProperty(\"vfs.favorite.\" + i)) != null)\n\t\t\t{\n\t\t\t\tfavorites.add(new FavoritesEntry(favorite,\n\t\t\t\t\tjEdit.getIntegerProperty(\"vfs.favorite.\"\n\t\t\t\t\t+ i + \".type\",\n\t\t\t\t\tVFS.DirectoryEntry.DIRECTORY)));\n\t\t\t\ti++;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [4, 7], [2, 8], [5, 9], [1, 10], [7, 11], [10, 12], [11, 13], [12, 14], [13, 15], [14, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 4], [8, 2], [9, 5], [10, 1], [11, 7], [12, 10], [13, 11], [14, 12], [15, 13], [16, 14], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "addToFavorites", "code": "\tpublic static void addToFavorites(String path, int type)\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tif(favorites == null)\n\t\t\t\tloadFavorites();\n\n\t\t\tIterator iter = favorites.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tif(((FavoritesEntry)iter.next()).path.equals(path))\n\t\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfavorites.add(new FavoritesEntry(path,type));\n\n\t\t\tVFSManager.sendVFSUpdate(instance,PROTOCOL + \":\",false);\n\t\t\tEditBus.send(new DynamicMenuChanged(\"favorites\"));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LOOP", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [5, 10], [6, 11], [7, 12], [7, 13], [8, 14], [3, 15], [4, 16], [5, 17], [10, 18], [11, 19], [13, 20], [15, 21], [15, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 5], [11, 6], [12, 7], [13, 7], [14, 8], [15, 3], [16, 4], [17, 5], [18, 10], [19, 11], [20, 13], [21, 15], [22, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "saveFavorites", "code": "\tpublic static void saveFavorites()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tif(favorites == null)\n\t\t\t\treturn;\n\n\t\t\tint i = 0;\n\t\t\tIterator iter = favorites.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tFavoritesEntry e = ((FavoritesEntry)\n\t\t\t\t\titer.next());\n\t\t\t\tjEdit.setProperty(\"vfs.favorite.\" + i,\n\t\t\t\t\te.path);\n\t\t\t\tjEdit.setIntegerProperty(\"vfs.favorite.\" + i\n\t\t\t\t\t+ \".type\",e.type);\n\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tjEdit.unsetProperty(\"vfs.favorite.\" + favorites.size());\n\t\t\tjEdit.unsetProperty(\"vfs.favorite.\" + favorites.size()\n\t\t\t\t+ \".type\");", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [4, 8], [4, 9], [5, 10], [6, 11], [1, 12], [2, 13], [3, 14], [9, 15], [10, 16], [10, 17], [11, 18], [11, 19], [1, 20], [1, 21], [17, 22], [17, 23], [20, 24], [21, 25], [24, 26], [24, 27], [25, 28], [12, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 4], [9, 4], [10, 5], [11, 6], [12, 1], [13, 2], [14, 3], [15, 9], [16, 10], [17, 10], [18, 11], [19, 11], [20, 1], [21, 1], [22, 17], [23, 17], [24, 20], [25, 21], [26, 24], [27, 24], [28, 25], [29, 12], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getFavorites", "code": "\tpublic static VFS.DirectoryEntry[] getFavorites()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tif(favorites == null)\n\t\t\t\tloadFavorites();\n\n\t\t\treturn (VFS.DirectoryEntry[])favorites.toArray(\n\t\t\t\tnew VFS.DirectoryEntry[favorites.size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 2], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "FavoritesVFS", "code": "\tpublic FavoritesVFS()\n\t{\n\t\tsuper(\"favorites\",DELETE_CAP | LOW_LATENCY_CAP,\n\t\t\tnew String[] { EA_TYPE });\n\n\t\t/* addToFavorites(), which is a static method\n\t\t * (for convinience) needs an instance of the\n\t\t * VFS to pass to VFSManager.sendVFSUpdate(),\n\t\t * hence this hack. */\n\t\tinstance = this;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.0-1368", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/quartz/QuartzExchange.java", "language": "java", "name": "org.apache.camel.component.quartz.QuartzExchange", "code": "public class QuartzExchange extends DefaultExchange {\n    public QuartzExchange(CamelContext context, JobExecutionContext jobExecutionContext) {\n        super(context);\n        setIn(new QuartzMessage(this, jobExecutionContext));\n    }\n\n    @Override\n    public QuartzMessage getIn() {\n        return (QuartzMessage) super.getIn();\n    }\n\n    public JobExecutionContext getJobExecutionContext() {\n        return getIn().getJobExecutionContext();", "functions": [{"function_name": "getIn", "code": "    @Override\n    public QuartzMessage getIn() {\n        return (QuartzMessage) super.getIn();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getJobExecutionContext", "code": "    public JobExecutionContext getJobExecutionContext() {\n        return getIn().getJobExecutionContext();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "QuartzExchange", "code": "    public QuartzExchange(CamelContext context, JobExecutionContext jobExecutionContext) {\n        super(context);\n        setIn(new QuartzMessage(this, jobExecutionContext));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.0-1508", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/cxf/CxfProducer.java", "language": "java", "name": "org.apache.camel.component.cxf.CxfProducer", "code": "public class CxfProducer extends DefaultProducer {\n    private CxfEndpoint endpoint;\n    private final LocalTransportFactory transportFactory;\n    private Destination destination;\n    private Conduit conduit;\n    private ResultFuture future = new ResultFuture();\n\n    public CxfProducer(CxfEndpoint endpoint, LocalTransportFactory transportFactory) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        this.transportFactory = transportFactory;\n    }\n\n    public void process(Exchange exchange) {\n        CxfExchange cxfExchange = endpoint.toExchangeType(exchange);\n        process(cxfExchange);\n    }\n\n    public void process(CxfExchange exchange) {\n        try {\n            CxfBinding binding = endpoint.getBinding();\n            MessageImpl m = binding.createCxfMessage(exchange);\n            ExchangeImpl e = new ExchangeImpl();\n            e.setInMessage(m);\n            m.put(LocalConduit.DIRECT_DISPATCH, Boolean.TRUE);\n            m.setDestination(destination);\n            synchronized (conduit) {\n                conduit.prepare(m);\n\n                if (endpoint.isInOut()) {\n                    Message response = future.getResponse();\n\n                    response = e.getOutMessage();\n                    binding.storeCxfResponse(exchange, response);\n                }\n            }\n        }\n        catch (IOException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        EndpointInfo endpointInfo = endpoint.getEndpointInfo();\n        destination = transportFactory.getDestination(endpointInfo);\n\n        conduit = transportFactory.getConduit(endpointInfo);\n        conduit.setMessageObserver(future);\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        super.doStop();\n\n        if (conduit != null) {\n            conduit.close();\n        }\n    }\n\n    protected class ResultFuture implements MessageObserver {\n        Message response;\n        CountDownLatch latch = new CountDownLatch(1);\n\n        public Message getResponse() {\n            while (response == null) {\n                try {\n                    latch.await();\n                }\n                catch (InterruptedException e) {\n                }\n            }\n            return response;\n        }\n\n        public synchronized void onMessage(Message message) {\n            try {\n                message.remove(LocalConduit.DIRECT_DISPATCH);\n                this.response = message;\n            }\n            finally {\n                latch.countDown();", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) {\n        CxfExchange cxfExchange = endpoint.toExchangeType(exchange);\n        process(cxfExchange);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "process", "code": "    public void process(CxfExchange exchange) {\n        try {\n            CxfBinding binding = endpoint.getBinding();\n            MessageImpl m = binding.createCxfMessage(exchange);\n            ExchangeImpl e = new ExchangeImpl();\n            e.setInMessage(m);\n            m.put(LocalConduit.DIRECT_DISPATCH, Boolean.TRUE);\n            m.setDestination(destination);\n            synchronized (conduit) {\n                conduit.prepare(m);\n\n                if (endpoint.isInOut()) {\n                    Message response = future.getResponse();\n\n                    response = e.getOutMessage();\n                    binding.storeCxfResponse(exchange, response);\n                }\n            }\n        }\n        catch (IOException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [1, 8], [1, 9], [1, 10], [1, 11], [7, 12], [8, 13], [1, 14], [4, 15], [5, 16], [6, 17], [8, 18], [8, 19], [8, 20], [20, 21], [18, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 1], [9, 1], [10, 1], [11, 1], [12, 7], [13, 8], [14, 1], [15, 4], [16, 5], [17, 6], [18, 8], [19, 8], [20, 8], [21, 20], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        EndpointInfo endpointInfo = endpoint.getEndpointInfo();\n        destination = transportFactory.getDestination(endpointInfo);\n\n        conduit = transportFactory.getConduit(endpointInfo);\n        conduit.setMessageObserver(future);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        super.doStop();\n\n        if (conduit != null) {\n            conduit.close();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CxfProducer", "code": "    public CxfProducer(CxfEndpoint endpoint, LocalTransportFactory transportFactory) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        this.transportFactory = transportFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.1-4053", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/EnhancedMenu.java", "language": "java", "name": "org.gjt.sp.jedit.gui.EnhancedMenu", "code": "public class EnhancedMenu extends JMenu implements MenuListener\n{\n\t//{{{ EnhancedMenu constructor\n\tpublic EnhancedMenu(String name)\n\t{\n\t\tthis._name = name;\n\t\tString label = jEdit.getProperty(name.concat(\".label\"));\n\t\tif(label == null)\n\t\t\tlabel = name;\n\n\t\tchar mnemonic;\n\t\tint index = label.indexOf('$');\n\t\tif(index != -1 && label.length() - index > 1)\n\t\t{\n\t\t\tmnemonic = Character.toLowerCase(label.charAt(index + 1));\n\t\t\tlabel = label.substring(0,index).concat(label.substring(++index));\n\t\t}\n\t\telse\n\t\t\tmnemonic = '\\0';\n\n\t\tsetText(label);\n\t\tif(!OperatingSystem.isMacOS())\n\t\t\tsetMnemonic(mnemonic);\n\n\t\taddMenuListener(this);\n\t\t//init();\n\t} //}}}\n\n\t//{{{ menuSelected() method\n\tpublic void menuSelected(MenuEvent evt)\n\t{\n\t\tinit();\n\t} //}}}\n\n\tpublic void menuDeselected(MenuEvent e) {}\n\n\tpublic void menuCanceled(MenuEvent e) {}\n\n\t//{{{ init() method\n\tpublic void init()\n\t{\n\t\tif(initialized)\n\t\t\treturn;\n\n\t\tinitialized = true;\n\n\t\tString menuItems = jEdit.getProperty(_name);\n\t\tif(menuItems != null)\n\t\t{\n\t\t\tStringTokenizer st = new StringTokenizer(menuItems);\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tString menuItemName = st.nextToken();\n\t\t\t\tif(menuItemName.equals(\"-\"))\n\t\t\t\t\taddSeparator();\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(menuItemName.startsWith(\"%\"))\n\t\t\t\t\t\tadd(GUIUtilities.loadMenu(menuItemName.substring(1)));\n\t\t\t\t\telse\n\t\t\t\t\t\tadd(GUIUtilities.loadMenuItem(menuItemName));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\tprotected String _name;\n\tprotected boolean initialized;", "functions": [{"function_name": "menuSelected", "code": "\tpublic void menuSelected(MenuEvent evt)\n\t{\n\t\tinit();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "menuDeselected", "code": "\tpublic void menuDeselected(MenuEvent e) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "menuCanceled", "code": "\tpublic void menuCanceled(MenuEvent e) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "init", "code": "\tpublic void init()\n\t{\n\t\tif(initialized)\n\t\t\treturn;\n\n\t\tinitialized = true;\n\n\t\tString menuItems = jEdit.getProperty(_name);\n\t\tif(menuItems != null)\n\t\t{\n\t\t\tStringTokenizer st = new StringTokenizer(menuItems);\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tString menuItemName = st.nextToken();\n\t\t\t\tif(menuItemName.equals(\"-\"))\n\t\t\t\t\taddSeparator();\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(menuItemName.startsWith(\"%\"))\n\t\t\t\t\t\tadd(GUIUtilities.loadMenu(menuItemName.substring(1)));\n\t\t\t\t\telse\n\t\t\t\t\t\tadd(GUIUtilities.loadMenuItem(menuItemName));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [1, 7], [1, 8], [4, 9], [2, 10], [5, 11], [7, 12], [7, 13], [7, 14], [8, 15], [13, 16], [13, 17], [13, 18], [16, 19], [14, 20], [17, 21], [17, 22], [17, 23], [21, 24], [22, 25], [23, 26], [26, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 1], [8, 1], [9, 4], [10, 2], [11, 5], [12, 7], [13, 7], [14, 7], [15, 8], [16, 13], [17, 13], [18, 13], [19, 16], [20, 14], [21, 17], [22, 17], [23, 17], [24, 21], [25, 22], [26, 23], [27, 26], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "EnhancedMenu", "code": "\tpublic EnhancedMenu(String name)\n\t{\n\t\tthis._name = name;\n\t\tString label = jEdit.getProperty(name.concat(\".label\"));\n\t\tif(label == null)\n\t\t\tlabel = name;\n\n\t\tchar mnemonic;\n\t\tint index = label.indexOf('$');\n\t\tif(index != -1 && label.length() - index > 1)\n\t\t{\n\t\t\tmnemonic = Character.toLowerCase(label.charAt(index + 1));\n\t\t\tlabel = label.substring(0,index).concat(label.substring(++index));\n\t\t}\n\t\telse\n\t\t\tmnemonic = '\\0';\n\n\t\tsetText(label);\n\t\tif(!OperatingSystem.isMacOS())\n\t\t\tsetMnemonic(mnemonic);\n\n\t\taddMenuListener(this);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [5, 12], [0, 13], [1, 14], [2, 15], [11, 16], [11, 17], [3, 18], [5, 19], [12, 20], [6, 21], [15, 22], [2, 23], [2, 24], [16, 25], [16, 26], [17, 27], [18, 28], [21, 29], [23, 30], [24, 31], [26, 32], [29, 33], [30, 34], [30, 35], [31, 36], [35, 37], [36, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 5], [13, 0], [14, 1], [15, 2], [16, 11], [17, 11], [18, 3], [19, 5], [20, 12], [21, 6], [22, 15], [23, 2], [24, 2], [25, 16], [26, 16], [27, 17], [28, 18], [29, 21], [30, 23], [31, 24], [32, 26], [33, 29], [34, 30], [35, 30], [36, 31], [37, 35], [38, 36], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}], "label": 0}
{"sample_id": "ant-1.4-124", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/Patch.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Patch", "code": "public class Patch extends Task {\n\n    private File originalFile;\n    private boolean havePatchfile = false;\n    private Commandline cmd = new Commandline();\n\n    /**\n     * The file to patch.\n     */\n    public void setOriginalfile(File file) {\n        originalFile = file;\n    }\n\n    /**\n     * The file containing the diff output.\n     */\n    public void setPatchfile(File file) {\n        if (!file.exists()) {\n            throw new BuildException(\"patchfile \"+file+\" doesn\\'t exist\", \n                                     location);\n        }\n        cmd.createArgument().setValue(\"-i\");\n        cmd.createArgument().setFile(file);\n        havePatchfile = true;\n    }\n\n    /**\n     * Shall patch write backups.\n     */\n    public void setBackups(boolean backups) {\n        if (backups) {\n            cmd.createArgument().setValue(\"-b\");\n        }\n    }\n\n    /**\n     * Ignore whitespace differences.\n     */\n    public void setIgnorewhitespace(boolean ignore) {\n        if (ignore) {\n            cmd.createArgument().setValue(\"-l\");\n        }\n    }\n\n    /**\n     * Strip the smallest prefix containing <i>num</i> leading slashes\n     * from filenames.\n     *\n     * <p>patch's <i>-p</i> option.\n     */\n    public void setStrip(int num) throws BuildException {\n        if (num < 0) {\n            throw new BuildException(\"strip has to be >= 0\", location);\n        }\n        cmd.createArgument().setValue(\"-p\"+num);\n    }\n\n    /**\n     * Work silently unless an error occurs.\n     */\n    public void setQuiet(boolean q) {\n        if (q) {\n            cmd.createArgument().setValue(\"-s\");\n        }\n    }\n\n    /**\n     * Assume patch was created with old and new files swapped.\n     */\n    public void setReverse(boolean r) {\n        if (r) {\n            cmd.createArgument().setValue(\"-R\");\n        }\n    }\n\n    public void execute() throws BuildException {\n        if (!havePatchfile) {\n            throw new BuildException(\"patchfile argument is required\", \n                                     location);\n        } \n        \n        Commandline toExecute = (Commandline)cmd.clone();\n        toExecute.setExecutable(\"patch\");\n\n        if (originalFile != null) {\n            toExecute.createArgument().setFile(originalFile);\n        }\n\n        Execute exe = new Execute(new LogStreamHandler(this, Project.MSG_INFO,\n                                                       Project.MSG_WARN), \n                                  null);\n        exe.setCommandline(toExecute.getCommandline());\n        try {\n            exe.execute();\n        } catch (IOException e) {\n            throw new BuildException(e, location);", "functions": [{"function_name": "setOriginalfile", "code": "    public void setOriginalfile(File file) {\n        originalFile = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPatchfile", "code": "    public void setPatchfile(File file) {\n        if (!file.exists()) {\n            throw new BuildException(\"patchfile \"+file+\" doesn\\'t exist\", \n                                     location);\n        }\n        cmd.createArgument().setValue(\"-i\");\n        cmd.createArgument().setFile(file);\n        havePatchfile = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [5, 9], [1, 10], [9, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 5], [10, 1], [11, 9], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setBackups", "code": "    public void setBackups(boolean backups) {\n        if (backups) {\n            cmd.createArgument().setValue(\"-b\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setIgnorewhitespace", "code": "    public void setIgnorewhitespace(boolean ignore) {\n        if (ignore) {\n            cmd.createArgument().setValue(\"-l\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setStrip", "code": "    public void setStrip(int num) throws BuildException {\n        if (num < 0) {\n            throw new BuildException(\"strip has to be >= 0\", location);\n        }\n        cmd.createArgument().setValue(\"-p\"+num);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [4, 7], [5, 8], [6, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 4], [8, 5], [9, 6], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setQuiet", "code": "    public void setQuiet(boolean q) {\n        if (q) {\n            cmd.createArgument().setValue(\"-s\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setReverse", "code": "    public void setReverse(boolean r) {\n        if (r) {\n            cmd.createArgument().setValue(\"-R\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (!havePatchfile) {\n            throw new BuildException(\"patchfile argument is required\", \n                                     location);\n        } \n        \n        Commandline toExecute = (Commandline)cmd.clone();\n        toExecute.setExecutable(\"patch\");\n\n        if (originalFile != null) {\n            toExecute.createArgument().setFile(originalFile);\n        }\n\n        Execute exe = new Execute(new LogStreamHandler(this, Project.MSG_INFO,\n                                                       Project.MSG_WARN), \n                                  null);\n        exe.setCommandline(toExecute.getCommandline());\n        try {\n            exe.execute();\n        } catch (IOException e) {\n            throw new BuildException(e, location);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "CATCH", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [3, 8], [0, 9], [6, 10], [1, 11], [7, 12], [2, 13], [8, 14], [9, 15], [5, 16], [10, 17], [13, 18], [13, 19], [3, 20], [4, 21], [16, 22], [20, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 3], [9, 0], [10, 6], [11, 1], [12, 7], [13, 2], [14, 8], [15, 9], [16, 5], [17, 10], [18, 13], [19, 13], [20, 3], [21, 4], [22, 16], [23, 20], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}], "label": 0}
{"sample_id": "ant-1.5-476", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/condition/Os.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.condition.Os", "code": "public class Os implements Condition {\n    private static final String osName =\n        System.getProperty(\"os.name\").toLowerCase(Locale.US);\n    private static final String osArch =\n        System.getProperty(\"os.arch\").toLowerCase(Locale.US);\n    private static final String osVersion =\n        System.getProperty(\"os.version\").toLowerCase(Locale.US);\n    private static final String pathSep = System.getProperty(\"path.separator\");\n\n    private String family;\n    private String name;\n    private String version;\n    private String arch;\n\n    public Os() {}\n\n    public Os(String family) {\n        setFamily(family);\n    }\n\n    /**\n     * Sets the desired OS family type\n     *\n     * @param f      The OS family type desired<br />\n     *               Possible values:<br />\n     *               <ul>\n     *               <li>dos</li>\n     *               <li>mac</li>\n     *               <li>netware</li>\n     *               <li>os/2</li>\n     *               <li>unix</li>\n     *               <li>windows</li>\n     *               <li>win9x</li>\n     *               <li>z/os</li>\n     *               </ul>\n     */\n    public void setFamily(String f) {family = f.toLowerCase(Locale.US);}\n\n    /**\n     * Sets the desired OS name\n     *\n     * @param name   The OS name\n     */\n    public void setName(String name) {\n        this.name = name.toLowerCase(Locale.US);\n    }\n\n    /**\n     * Sets the desired OS architecture\n     *\n     * @param arch   The OS architecture\n     */\n    public void setArch(String arch) {\n        this.arch = arch.toLowerCase(Locale.US);\n    }\n\n    /**\n     * Sets the desired OS version\n     *\n     * @param version   The OS version\n     */\n    public void setVersion(String version) {\n        this.version = version.toLowerCase(Locale.US);\n    }\n\n    /**\n     * Determines if the OS on which Ant is executing matches the type of\n     * that set in setFamily.\n     * @see Os#setFamily(String)\n     */\n    public boolean eval() throws BuildException {\n        return isOs(family, name, arch, version);\n    }\n\n    /**\n     * Determines if the OS on which Ant is executing matches the\n     * given OS family.\n     *\n     * @since 1.5\n     */\n    public static boolean isFamily(String family) {\n        return isOs(family, null, null, null);\n    }\n\n    /**\n     * Determines if the OS on which Ant is executing matches the\n     * given OS name.\n     *\n     * @since 1.7\n     */\n    public static boolean isName(String name) {\n        return isOs(null, name, null, null);\n    }\n\n    /**\n     * Determines if the OS on which Ant is executing matches the\n     * given OS architecture.\n     *\n     * @since 1.7\n     */\n    public static boolean isArch(String arch) {\n        return isOs(null, null, arch, null);\n    }\n\n    /**\n     * Determines if the OS on which Ant is executing matches the\n     * given OS version.\n     *\n     * @since 1.7\n     */\n    public static boolean isVersion(String version) {\n        return isOs(null, null, null, version);\n    }\n\n    /**\n     * Determines if the OS on which Ant is executing matches the\n     * given OS family, name, architecture and version\n     *\n     * @param family   The OS family\n     * @param name   The OS name\n     * @param arch   The OS architecture\n     * @param version   The OS version\n     *\n     * @since 1.7\n     */\n    public static boolean isOs(String family, String name, String arch,\n                               String version) {\n        boolean retValue = false;\n\n        if (family != null || name != null || arch != null\n            || version != null) {\n\n            boolean isFamily = true;\n            boolean isName = true;\n            boolean isArch = true;\n            boolean isVersion = true;\n\n            if (family != null) {\n                if (family.equals(\"windows\")) {\n                    isFamily = osName.indexOf(\"windows\") > -1;\n                } else if (family.equals(\"os/2\")) {\n                    isFamily = osName.indexOf(\"os/2\") > -1;\n                } else if (family.equals(\"netware\")) {\n                    isFamily = osName.indexOf(\"netware\") > -1;\n                } else if (family.equals(\"dos\")) {\n                    isFamily = pathSep.equals(\";\") && !isFamily(\"netware\");\n                } else if (family.equals(\"mac\")) {\n                    isFamily = osName.indexOf(\"mac\") > -1;\n                } else if (family.equals(\"unix\")) {\n                    isFamily = pathSep.equals(\":\")\n                        && (!isFamily(\"mac\") || osName.endsWith(\"x\"));\n                } else if (family.equals(\"win9x\")) {\n                    isFamily = isFamily(\"windows\") &&\n                        /*\n                         * FIXME\n                         *\n                         * Need a better way to know which one runs CMD.EXE\n                         * and wich COMMAND.COM.\n                         *\n                         * If we use a fixed list of names, we should rather\n                         * use one for all win9x flavors as it is supposed to\n                         * be a final list.\n                         */\n                        !(osName.indexOf(\"nt\") >= 0 ||\n                          osName.indexOf(\"2000\") >= 0 ||\n                          osName.indexOf(\"2003\") >= 0 ||\n                          osName.indexOf(\"xp\") >= 0);\n                } else if (family.equals(\"z/os\")) {\n                    isFamily = osName.indexOf(\"z/os\") > -1 \n                        || osName.indexOf(\"os/390\") > -1;\n                } else {\n                    throw new BuildException(\n                        \"Don\\'t know how to detect os family \\\"\"\n                        + family + \"\\\"\");\n                }\n            }\n            if (name != null) {\n                isName = name.equals(osName);\n            }\n            if (arch != null) {\n                isArch = arch.equals(osArch);\n            }\n            if (version != null) {\n                isVersion = version.equals(osVersion);\n            }\n            retValue = isFamily && isName && isArch && isVersion;\n        }\n        return retValue;", "functions": [{"function_name": "setFamily", "code": "    public void setFamily(String f) {family = f.toLowerCase(Locale.US);}", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name.toLowerCase(Locale.US);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setArch", "code": "    public void setArch(String arch) {\n        this.arch = arch.toLowerCase(Locale.US);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setVersion", "code": "    public void setVersion(String version) {\n        this.version = version.toLowerCase(Locale.US);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "eval", "code": "    public boolean eval() throws BuildException {\n        return isOs(family, name, arch, version);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFamily", "code": "    public static boolean isFamily(String family) {\n        return isOs(family, null, null, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isName", "code": "    public static boolean isName(String name) {\n        return isOs(null, name, null, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isArch", "code": "    public static boolean isArch(String arch) {\n        return isOs(null, null, arch, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isVersion", "code": "    public static boolean isVersion(String version) {\n        return isOs(null, null, null, version);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isOs", "code": "    public static boolean isOs(String family, String name, String arch,\n                               String version) {\n        boolean retValue = false;\n\n        if (family != null || name != null || arch != null\n            || version != null) {\n\n            boolean isFamily = true;\n            boolean isName = true;\n            boolean isArch = true;\n            boolean isVersion = true;\n\n            if (family != null) {\n                if (family.equals(\"windows\")) {\n                    isFamily = osName.indexOf(\"windows\") > -1;\n                } else if (family.equals(\"os/2\")) {\n                    isFamily = osName.indexOf(\"os/2\") > -1;\n                } else if (family.equals(\"netware\")) {\n                    isFamily = osName.indexOf(\"netware\") > -1;\n                } else if (family.equals(\"dos\")) {\n                    isFamily = pathSep.equals(\";\") && !isFamily(\"netware\");\n                } else if (family.equals(\"mac\")) {\n                    isFamily = osName.indexOf(\"mac\") > -1;\n                } else if (family.equals(\"unix\")) {\n                    isFamily = pathSep.equals(\":\")\n                        && (!isFamily(\"mac\") || osName.endsWith(\"x\"));\n                } else if (family.equals(\"win9x\")) {\n                    isFamily = isFamily(\"windows\") &&\n                        /*\n                         * FIXME\n                         *\n                         * Need a better way to know which one runs CMD.EXE\n                         * and wich COMMAND.COM.\n                         *\n                         * If we use a fixed list of names, we should rather\n                         * use one for all win9x flavors as it is supposed to\n                         * be a final list.\n                         */\n                        !(osName.indexOf(\"nt\") >= 0 ||\n                          osName.indexOf(\"2000\") >= 0 ||\n                          osName.indexOf(\"2003\") >= 0 ||\n                          osName.indexOf(\"xp\") >= 0);\n                } else if (family.equals(\"z/os\")) {\n                    isFamily = osName.indexOf(\"z/os\") > -1 \n                        || osName.indexOf(\"os/390\") > -1;\n                } else {\n                    throw new BuildException(\n                        \"Don\\'t know how to detect os family \\\"\"\n                        + family + \"\\\"\");\n                }\n            }\n            if (name != null) {\n                isName = name.equals(osName);\n            }\n            if (arch != null) {\n                isArch = arch.equals(osArch);\n            }\n            if (version != null) {\n                isVersion = version.equals(osVersion);\n            }\n            retValue = isFamily && isName && isArch && isVersion;\n        }\n        return retValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [8, 17], [8, 18], [3, 19], [2, 20], [9, 21], [10, 22], [11, 23], [12, 24], [17, 25], [18, 26], [18, 27], [20, 28], [21, 29], [22, 30], [23, 31], [12, 32], [24, 33], [13, 34], [14, 35], [15, 36], [16, 37], [26, 38], [27, 39], [27, 40], [28, 41], [9, 42], [10, 43], [11, 44], [32, 45], [32, 46], [39, 47], [40, 48], [41, 49], [42, 50], [43, 51], [44, 52], [45, 53], [45, 54], [46, 55], [53, 56], [53, 57], [54, 58], [32, 59], [56, 60], [56, 61], [57, 62], [45, 63], [59, 64], [60, 65], [60, 66], [61, 67], [53, 68], [63, 69], [64, 70], [64, 71], [65, 72], [65, 73], [66, 74], [56, 75], [68, 76], [69, 77], [69, 78], [71, 79], [72, 80], [72, 81], [73, 82], [60, 83], [75, 84], [76, 85], [76, 86], [78, 87], [80, 88], [81, 89], [65, 90], [83, 91], [84, 92], [84, 93], [86, 94], [80, 95], [88, 96], [72, 97], [90, 98], [91, 99], [91, 100], [92, 101], [93, 102], [95, 103], [80, 104], [97, 105], [98, 106], [98, 107], [100, 108], [103, 109], [104, 110], [105, 111], [105, 112], [106, 113], [106, 114], [107, 115], [109, 116], [109, 117], [110, 118], [110, 119], [111, 120], [111, 121], [112, 122], [113, 123], [114, 124], [117, 125], [118, 126], [118, 127], [119, 128], [119, 129], [120, 130], [120, 131], [121, 132], [121, 133], [127, 134], [129, 135], [131, 136], [132, 137], [132, 138], [133, 139], [133, 140], [138, 141], [139, 142], [139, 143], [140, 144], [140, 145], [143, 146], [145, 147], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 8], [18, 8], [19, 3], [20, 2], [21, 9], [22, 10], [23, 11], [24, 12], [25, 17], [26, 18], [27, 18], [28, 20], [29, 21], [30, 22], [31, 23], [32, 12], [33, 24], [34, 13], [35, 14], [36, 15], [37, 16], [38, 26], [39, 27], [40, 27], [41, 28], [42, 9], [43, 10], [44, 11], [45, 32], [46, 32], [47, 39], [48, 40], [49, 41], [50, 42], [51, 43], [52, 44], [53, 45], [54, 45], [55, 46], [56, 53], [57, 53], [58, 54], [59, 32], [60, 56], [61, 56], [62, 57], [63, 45], [64, 59], [65, 60], [66, 60], [67, 61], [68, 53], [69, 63], [70, 64], [71, 64], [72, 65], [73, 65], [74, 66], [75, 56], [76, 68], [77, 69], [78, 69], [79, 71], [80, 72], [81, 72], [82, 73], [83, 60], [84, 75], [85, 76], [86, 76], [87, 78], [88, 80], [89, 81], [90, 65], [91, 83], [92, 84], [93, 84], [94, 86], [95, 80], [96, 88], [97, 72], [98, 90], [99, 91], [100, 91], [101, 92], [102, 93], [103, 95], [104, 80], [105, 97], [106, 98], [107, 98], [108, 100], [109, 103], [110, 104], [111, 105], [112, 105], [113, 106], [114, 106], [115, 107], [116, 109], [117, 109], [118, 110], [119, 110], [120, 111], [121, 111], [122, 112], [123, 113], [124, 114], [125, 117], [126, 118], [127, 118], [128, 119], [129, 119], [130, 120], [131, 120], [132, 121], [133, 121], [134, 127], [135, 129], [136, 131], [137, 132], [138, 132], [139, 133], [140, 133], [141, 138], [142, 139], [143, 139], [144, 140], [145, 140], [146, 143], [147, 145], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147]]}, {"function_name": "Os", "code": "    public Os() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Os", "code": "    public Os(String family) {\n        setFamily(family);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-1.5-5302", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/EndRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.EndRecord", "code": "public class EndRecord\n    extends Record\n{\n    public static final short sid = 0x1034;\n\n    public EndRecord()\n    {\n    }\n\n    /**\n     * Constructs a EndRecord record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x1034 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public EndRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a EndRecord record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x1034 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public EndRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An END RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[END]\\n\");\n        buffer.append(\"[/END]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 4;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An END RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[END]\\n\");\n        buffer.append(\"[/END]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [4, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 4], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [5, 7], [6, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 5], [8, 6], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "EndRecord", "code": "    public EndRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "EndRecord", "code": "    public EndRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "EndRecord", "code": "    public EndRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.4-6817", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/utils/SuballocatedIntVector.java", "language": "java", "name": "org.apache.xml.utils.SuballocatedIntVector", "code": "public class SuballocatedIntVector\n{\n  /** Size of blocks to allocate          */\n  protected int m_blocksize;\n\n  /** Bitwise addressing (much faster than div/remainder */\n  protected int m_SHIFT, m_MASK;\n  \n  /** Number of blocks to (over)allocate by */\n  protected  int m_numblocks=32;\n  \n  /** Array of arrays of ints          */\n  protected int m_map[][];\n\n  /** Number of ints in array          */\n  protected int m_firstFree = 0;\n\n  /** \"Shortcut\" handle to m_map[0]. Surprisingly helpful for short vectors. */\n  protected int m_map0[];\n\n\n  /**\n   * Default constructor.  Note that the default\n   * block size is currently 2K, which may be overkill for\n   * small lists and undershootng for large ones.\n   */\n  public SuballocatedIntVector()\n  {\n    this(2048);\n  }\n\n  /**\n   * Construct a IntVector, using the given block size. For\n   * efficiency, we will round the requested size off to a power of\n   * two.\n   *\n   * @param blocksize Size of block to allocate\n   * */\n  public SuballocatedIntVector(int blocksize)\n  {\n    for(m_SHIFT=0;0!=(blocksize>>>=1);++m_SHIFT)\n      ;\n    m_blocksize=1<<m_SHIFT;\n    m_MASK=m_blocksize-1;\n\t\t\n    m_map0=new int[m_blocksize];\n    m_map = new int[m_numblocks][];\n    m_map[0]=m_map0;\n  }\n\t\n  /** We never _did_ use the increasesize parameter, so I'm phasing\n   * this constructor out.\n   *\n   * @deprecated use SuballocatedIntVector(int)\n   * @see SuballocatedIntVector(int)\n   * */\n  public SuballocatedIntVector(int blocksize,int increasesize)\n  {\n    this(blocksize);\n  }\n\n  /**\n   * Get the length of the list.\n   *\n   * @return length of the list\n   */\n  public int size()\n  {\n    return m_firstFree;\n  }\n  \n  /**\n   * Set the length of the list. This will only work to truncate the list, and\n   * even then it has not been heavily tested and may not be trustworthy.\n   *\n   * @return length of the list\n   */\n  public void setSize(int sz)\n  {\n      m_firstFree = sz;\n  }\n\n  /**\n   * Append a int onto the vector.\n   *\n   * @param value Int to add to the list \n   */\n  public  void addElement(int value)\n  {\n    if(m_firstFree<m_blocksize)\n      m_map0[m_firstFree++]=value;\n    else\n    {\n\n      int index=m_firstFree>>>m_SHIFT;\n      int offset=m_firstFree&m_MASK;\n\n      if(index>=m_map.length)\n      {\n\tint newsize=index+m_numblocks;\n\tint[][] newMap=new int[newsize][];\n\tSystem.arraycopy(m_map, 0, newMap, 0, m_map.length);\n\tm_map=newMap;\n      }\n      int[] block=m_map[index];\n      if(null==block)\n\tblock=m_map[index]=new int[m_blocksize];\n      block[offset]=value;\n\n      ++m_firstFree;\n    }\n  }\n  \n  /**\n   * Append several int values onto the vector.\n   *\n   * @param value Int to add to the list \n   */\n  private  void addElements(int value, int numberOfElements)\n  {\n    if(m_firstFree+numberOfElements<m_blocksize)\n      for (int i = 0; i < numberOfElements; i++) \n      {\n        m_map0[m_firstFree++]=value;\n      }\n    else\n    {\n      int index=m_firstFree>>>m_SHIFT;\n      int offset=m_firstFree&m_MASK;\n      m_firstFree+=numberOfElements;\n      while( numberOfElements>0)\n      {\n        if(index>=m_map.length)\n        {\n          int newsize=index+m_numblocks;\n          int[][] newMap=new int[newsize][];\n          System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n          m_map=newMap;\n        }\n        int[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new int[m_blocksize];\n        int copied=(m_blocksize-offset < numberOfElements)\n          ? m_blocksize-offset : numberOfElements;\n        numberOfElements-=copied;\n        while(copied-- > 0)\n          block[offset++]=value;\n\n        ++index;offset=0;\n      }\n    }\n  }\n  \n  /**\n   * Append several slots onto the vector, but do not set the values.\n   * Note: \"Not Set\" means the value is unspecified.\n   *\n   * @param value Int to add to the list \n   */\n  private  void addElements(int numberOfElements)\n  {\n    int newlen=m_firstFree+numberOfElements;\n    if(newlen>m_blocksize)\n    {\n      int index=m_firstFree>>>m_SHIFT;\n      int newindex=(m_firstFree+numberOfElements)>>>m_SHIFT;\n      for(int i=index+1;i<=newindex;++i)\n        m_map[i]=new int[m_blocksize];\n    }\n    m_firstFree=newlen;\n  }\n  \n  /**\n   * Inserts the specified node in this vector at the specified index.\n   * Each component in this vector with an index greater or equal to\n   * the specified index is shifted upward to have an index one greater\n   * than the value it had previously.\n   *\n   * Insertion may be an EXPENSIVE operation!\n   *\n   * @param value Int to insert\n   * @param at Index of where to insert \n   */\n  private  void insertElementAt(int value, int at)\n  {\n    if(at==m_firstFree)\n      addElement(value);\n    else if (at>m_firstFree)\n    {\n      int index=at>>>m_SHIFT;\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        int[][] newMap=new int[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      int[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new int[m_blocksize];\n      int offset=at&m_MASK;\n          block[offset]=value;\n          m_firstFree=offset+1;\n        }\n    else\n    {\n      int index=at>>>m_SHIFT;\n      ++m_firstFree;\n      int offset=at&m_MASK;\n      int push;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        int[] block=m_map[index];\n        if(null==block)\n        {\n          push=0;\n          block=m_map[index]=new int[m_blocksize];\n        }\n        else\n        {\n          push=block[m_blocksize-1];\n          System.arraycopy(block, offset , block, offset+1, copylen);\n        }\n        block[offset]=value;\n        value=push;\n        offset=0;\n        ++index;\n      }\n    }\n  }\n\n  /**\n   * Wipe it out. Currently defined as equivalent to setSize(0).\n   */\n  public void removeAllElements()\n  {\n    m_firstFree = 0;\n  }\n\n  /**\n   * Removes the first occurrence of the argument from this vector.\n   * If the object is found in this vector, each component in the vector\n   * with an index greater or equal to the object's index is shifted\n   * downward to have an index one smaller than the value it had\n   * previously.\n   *\n   * @param s Int to remove from array\n   *\n   * @return True if the int was removed, false if it was not found\n   */\n  private  boolean removeElement(int s)\n  {\n    int at=indexOf(s,0);\n    if(at<0)\n      return false;\n    removeElementAt(at);\n    return true;\n  }\n\n  /**\n   * Deletes the component at the specified index. Each component in\n   * this vector with an index greater or equal to the specified\n   * index is shifted downward to have an index one smaller than\n   * the value it had previously.\n   *\n   * @param i index of where to remove and int\n   */\n  private  void removeElementAt(int at)\n  {\n    if(at<m_firstFree)\n    {\n      int index=at>>>m_SHIFT;\n      int maxindex=m_firstFree>>>m_SHIFT;\n      int offset=at&m_MASK;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        int[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new int[m_blocksize];\n        else\n          System.arraycopy(block, offset+1, block, offset, copylen);\n        if(index<maxindex)\n        {\n          int[] next=m_map[index+1];\n          if(next!=null)\n            block[m_blocksize-1]=(next!=null) ? next[0] : 0;\n        }\n        else\n          block[m_blocksize-1]=0;\n        offset=0;\n        ++index;\n      }\n    }\n    --m_firstFree;\n  }\n\n  /**\n   * Sets the component at the specified index of this vector to be the\n   * specified object. The previous component at that position is discarded.\n   *\n   * The index must be a value greater than or equal to 0 and less\n   * than the current size of the vector.\n   *\n   * @param node object to set\n   * @param index Index of where to set the object\n   */\n  public void setElementAt(int value, int at)\n  {\n    if(at<m_blocksize)\n      m_map0[at]=value;\n    else\n    {\n      int index=at>>>m_SHIFT;\n      int offset=at&m_MASK;\n        \n      if(index>=m_map.length)\n      {\n\tint newsize=index+m_numblocks;\n\tint[][] newMap=new int[newsize][];\n\tSystem.arraycopy(m_map, 0, newMap, 0, m_map.length);\n\tm_map=newMap;\n      }\n\n      int[] block=m_map[index];\n      if(null==block)\n\tblock=m_map[index]=new int[m_blocksize];\n      block[offset]=value;\n    }\n\n    if(at>=m_firstFree)\n      m_firstFree=at+1;\n  }\n  \n\n  /**\n   * Get the nth element. This is often at the innermost loop of an\n   * application, so performance is critical.\n   *\n   * @param i index of value to get\n   *\n   * @return value at given index. If that value wasn't previously set,\n   * the result is undefined for performance reasons. It may throw an\n   * exception (see below), may return zero, or (if setSize has previously\n   * been used) may return stale data.\n   *\n   * @throw ArrayIndexOutOfBoundsException if the index was _clearly_\n   * unreasonable (negative, or past the highest block).\n   *\n   * @throw NullPointerException if the index points to a block that could\n   * have existed (based on the highest index used) but has never had anything\n   * set into it.\n   * %REVIEW% Could add a catch to create the block in that case, or return 0.\n   * Try/Catch is _supposed_ to be nearly free when not thrown to. Do we\n   * believe that? Should we have a separate safeElementAt?\n   */\n  public int elementAt(int i)\n  {\n    if(i<m_blocksize)\n      return m_map0[i];\n\n    return m_map[i>>>m_SHIFT][i&m_MASK];\n  }\n\n  /**\n   * Tell if the table contains the given node.\n   *\n   * @param s object to look for\n   *\n   * @return true if the object is in the list\n   */\n  private  boolean contains(int s)\n  {\n    return (indexOf(s,0) >= 0);\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem object to look for\n   * @param index Index of where to begin search\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(int elem, int index)\n  {\n        if(index>=m_firstFree)\n                return -1;\n          \n    int bindex=index>>>m_SHIFT;\n    int boffset=index&m_MASK;\n    int maxindex=m_firstFree>>>m_SHIFT;\n    int[] block;\n    \n    for(;bindex<maxindex;++bindex)\n    {\n      block=m_map[bindex];\n      if(block!=null)\n        for(int offset=boffset;offset<m_blocksize;++offset)\n          if(block[offset]==elem)\n            return offset+bindex*m_blocksize;\n    }\n    int maxoffset=m_firstFree&m_MASK;\n    block=m_map[maxindex];\n    for(int offset=boffset;offset<maxoffset;++offset)\n      if(block[offset]==elem)\n        return offset+maxindex*m_blocksize;\n\n    return -1;    \n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem object to look for\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  public int indexOf(int elem)\n  {\n    return indexOf(elem,0);\n  }\n\n  /**\n   * Searches for the first occurence of the given argument,\n   * beginning the search at index, and testing for equality\n   * using the equals method.\n   *\n   * @param elem Object to look for\n   * @return the index of the first occurrence of the object\n   * argument in this vector at position index or later in the\n   * vector; returns -1 if the object is not found.\n   */\n  private  int lastIndexOf(int elem)\n  {\n    int boffset=m_firstFree&m_MASK;\n    for(int index=m_firstFree>>>m_SHIFT;\n        index>=0;\n        --index)\n    {\n      int[] block=m_map[index];\n      if(block!=null)\n        for(int offset=boffset; offset>=0; --offset)\n          if(block[offset]==elem)\n            return offset+index*m_blocksize;\n    }\n    return -1;", "functions": [{"function_name": "size", "code": "  public int size()\n  {\n    return m_firstFree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSize", "code": "  public void setSize(int sz)\n  {\n      m_firstFree = sz;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addElement", "code": "  public  void addElement(int value)\n  {\n    if(m_firstFree<m_blocksize)\n      m_map0[m_firstFree++]=value;\n    else\n    {\n\n      int index=m_firstFree>>>m_SHIFT;\n      int offset=m_firstFree&m_MASK;\n\n      if(index>=m_map.length)\n      {\n\tint newsize=index+m_numblocks;\n\tint[][] newMap=new int[newsize][];\n\tSystem.arraycopy(m_map, 0, newMap, 0, m_map.length);\n\tm_map=newMap;\n      }\n      int[] block=m_map[index];\n      if(null==block)\n\tblock=m_map[index]=new int[m_blocksize];\n      block[offset]=value;\n\n      ++m_firstFree;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [6, 12], [4, 13], [11, 14], [6, 15], [6, 16], [7, 17], [8, 18], [13, 19], [6, 20], [6, 21], [21, 22], [21, 23], [16, 24], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 6], [13, 4], [14, 11], [15, 6], [16, 6], [17, 7], [18, 8], [19, 13], [20, 6], [21, 6], [22, 21], [23, 21], [24, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "addElements", "code": "  private  void addElements(int value, int numberOfElements)\n  {\n    if(m_firstFree+numberOfElements<m_blocksize)\n      for (int i = 0; i < numberOfElements; i++) \n      {\n        m_map0[m_firstFree++]=value;\n      }\n    else\n    {\n      int index=m_firstFree>>>m_SHIFT;\n      int offset=m_firstFree&m_MASK;\n      m_firstFree+=numberOfElements;\n      while( numberOfElements>0)\n      {\n        if(index>=m_map.length)\n        {\n          int newsize=index+m_numblocks;\n          int[][] newMap=new int[newsize][];\n          System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n          m_map=newMap;\n        }\n        int[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new int[m_blocksize];\n        int copied=(m_blocksize-offset < numberOfElements)\n          ? m_blocksize-offset : numberOfElements;\n        numberOfElements-=copied;\n        while(copied-- > 0)\n          block[offset++]=value;\n\n        ++index;offset=0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "LOOP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [5, 10], [6, 11], [1, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [11, 18], [7, 19], [8, 20], [4, 21], [4, 22], [6, 23], [13, 24], [6, 25], [15, 26], [17, 27], [23, 28], [13, 29], [24, 30], [14, 31], [15, 32], [26, 33], [17, 34], [17, 35], [31, 36], [31, 37], [32, 38], [17, 39], [17, 40], [37, 41], [40, 42], [40, 43], [35, 44], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 5], [11, 6], [12, 1], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 11], [19, 7], [20, 8], [21, 4], [22, 4], [23, 6], [24, 13], [25, 6], [26, 15], [27, 17], [28, 23], [29, 13], [30, 24], [31, 14], [32, 15], [33, 26], [34, 17], [35, 17], [36, 31], [37, 31], [38, 32], [39, 17], [40, 17], [41, 37], [42, 40], [43, 40], [44, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "addElements", "code": "  private  void addElements(int numberOfElements)\n  {\n    int newlen=m_firstFree+numberOfElements;\n    if(newlen>m_blocksize)\n    {\n      int index=m_firstFree>>>m_SHIFT;\n      int newindex=(m_firstFree+numberOfElements)>>>m_SHIFT;\n      for(int i=index+1;i<=newindex;++i)\n        m_map[i]=new int[m_blocksize];\n    }\n    m_firstFree=newlen;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [6, 10], [6, 11], [7, 12], [8, 13], [6, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 6], [11, 6], [12, 7], [13, 8], [14, 6], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "insertElementAt", "code": "  private  void insertElementAt(int value, int at)\n  {\n    if(at==m_firstFree)\n      addElement(value);\n    else if (at>m_firstFree)\n    {\n      int index=at>>>m_SHIFT;\n      if(index>=m_map.length)\n      {\n        int newsize=index+m_numblocks;\n        int[][] newMap=new int[newsize][];\n        System.arraycopy(m_map, 0, newMap, 0, m_map.length);\n        m_map=newMap;\n      }\n      int[] block=m_map[index];\n      if(null==block)\n        block=m_map[index]=new int[m_blocksize];\n      int offset=at&m_MASK;\n          block[offset]=value;\n          m_firstFree=offset+1;\n        }\n    else\n    {\n      int index=at>>>m_SHIFT;\n      ++m_firstFree;\n      int offset=at&m_MASK;\n      int push;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        int[] block=m_map[index];\n        if(null==block)\n        {\n          push=0;\n          block=m_map[index]=new int[m_blocksize];\n        }\n        else\n        {\n          push=block[m_blocksize-1];\n          System.arraycopy(block, offset , block, offset+1, copylen);\n        }\n        block[offset]=value;\n        value=push;\n        offset=0;\n        ++index;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 16], [8, 17], [4, 18], [4, 19], [13, 20], [15, 21], [8, 22], [8, 23], [8, 24], [10, 25], [11, 26], [18, 27], [12, 28], [13, 29], [20, 30], [15, 31], [15, 32], [16, 33], [8, 34], [8, 35], [8, 36], [22, 37], [27, 38], [29, 39], [15, 40], [15, 41], [34, 42], [37, 43], [24, 44], [41, 45], [41, 46], [32, 47], [22, 48], [22, 49], [22, 50], [22, 51], [44, 52], [44, 53], [48, 54], [50, 55], [51, 56], [54, 57], [49, 58], [58, 59], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 4], [14, 4], [15, 4], [16, 4], [17, 8], [18, 4], [19, 4], [20, 13], [21, 15], [22, 8], [23, 8], [24, 8], [25, 10], [26, 11], [27, 18], [28, 12], [29, 13], [30, 20], [31, 15], [32, 15], [33, 16], [34, 8], [35, 8], [36, 8], [37, 22], [38, 27], [39, 29], [40, 15], [41, 15], [42, 34], [43, 37], [44, 24], [45, 41], [46, 41], [47, 32], [48, 22], [49, 22], [50, 22], [51, 22], [52, 44], [53, 44], [54, 48], [55, 50], [56, 51], [57, 54], [58, 49], [59, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "removeAllElements", "code": "  public void removeAllElements()\n  {\n    m_firstFree = 0;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeElement", "code": "  private  boolean removeElement(int s)\n  {\n    int at=indexOf(s,0);\n    if(at<0)\n      return false;\n    removeElementAt(at);\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [2, 8], [7, 9], [8, 10], [3, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 2], [9, 7], [10, 8], [11, 3], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "removeElementAt", "code": "  private  void removeElementAt(int at)\n  {\n    if(at<m_firstFree)\n    {\n      int index=at>>>m_SHIFT;\n      int maxindex=m_firstFree>>>m_SHIFT;\n      int offset=at&m_MASK;\n      \n      while(index<=maxindex)\n      {\n        int copylen=m_blocksize-offset-1;\n        int[] block=m_map[index];\n        if(null==block)\n          block=m_map[index]=new int[m_blocksize];\n        else\n          System.arraycopy(block, offset+1, block, offset, copylen);\n        if(index<maxindex)\n        {\n          int[] next=m_map[index+1];\n          if(next!=null)\n            block[m_blocksize-1]=(next!=null) ? next[0] : 0;\n        }\n        else\n          block[m_blocksize-1]=0;\n        offset=0;\n        ++index;\n      }\n    }\n    --m_firstFree;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [5, 13], [6, 14], [7, 15], [4, 16], [9, 17], [10, 18], [16, 19], [9, 20], [9, 21], [9, 22], [10, 23], [10, 24], [18, 25], [12, 26], [20, 27], [21, 28], [23, 29], [24, 30], [26, 31], [26, 32], [21, 33], [28, 34], [29, 35], [20, 36], [33, 37], [36, 38], [37, 39], [37, 40], [22, 41], [40, 42], [33, 43], [41, 44], [37, 45], [43, 46], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 5], [14, 6], [15, 7], [16, 4], [17, 9], [18, 10], [19, 16], [20, 9], [21, 9], [22, 9], [23, 10], [24, 10], [25, 18], [26, 12], [27, 20], [28, 21], [29, 23], [30, 24], [31, 26], [32, 26], [33, 21], [34, 28], [35, 29], [36, 20], [37, 33], [38, 36], [39, 37], [40, 37], [41, 22], [42, 40], [43, 33], [44, 41], [45, 37], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "setElementAt", "code": "  public void setElementAt(int value, int at)\n  {\n    if(at<m_blocksize)\n      m_map0[at]=value;\n    else\n    {\n      int index=at>>>m_SHIFT;\n      int offset=at&m_MASK;\n        \n      if(index>=m_map.length)\n      {\n\tint newsize=index+m_numblocks;\n\tint[][] newMap=new int[newsize][];\n\tSystem.arraycopy(m_map, 0, newMap, 0, m_map.length);\n\tm_map=newMap;\n      }\n\n      int[] block=m_map[index];\n      if(null==block)\n\tblock=m_map[index]=new int[m_blocksize];\n      block[offset]=value;\n    }\n\n    if(at>=m_firstFree)\n      m_firstFree=at+1;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [7, 14], [2, 15], [8, 16], [10, 17], [14, 18], [8, 19], [16, 20], [10, 21], [10, 22], [11, 23], [12, 24], [19, 25], [10, 26], [10, 27], [27, 28], [27, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 7], [15, 2], [16, 8], [17, 10], [18, 14], [19, 8], [20, 16], [21, 10], [22, 10], [23, 11], [24, 12], [25, 19], [26, 10], [27, 10], [28, 27], [29, 27], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "elementAt", "code": "  public int elementAt(int i)\n  {\n    if(i<m_blocksize)\n      return m_map0[i];\n\n    return m_map[i>>>m_SHIFT][i&m_MASK];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "contains", "code": "  private  boolean contains(int s)\n  {\n    return (indexOf(s,0) >= 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "indexOf", "code": "  public int indexOf(int elem, int index)\n  {\n        if(index>=m_firstFree)\n                return -1;\n          \n    int bindex=index>>>m_SHIFT;\n    int boffset=index&m_MASK;\n    int maxindex=m_firstFree>>>m_SHIFT;\n    int[] block;\n    \n    for(;bindex<maxindex;++bindex)\n    {\n      block=m_map[bindex];\n      if(block!=null)\n        for(int offset=boffset;offset<m_blocksize;++offset)\n          if(block[offset]==elem)\n            return offset+bindex*m_blocksize;\n    }\n    int maxoffset=m_firstFree&m_MASK;\n    block=m_map[maxindex];\n    for(int offset=boffset;offset<maxoffset;++offset)\n      if(block[offset]==elem)\n        return offset+maxindex*m_blocksize;\n\n    return -1;    ", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [0, 15], [4, 16], [9, 17], [9, 18], [13, 19], [13, 20], [3, 21], [4, 22], [6, 23], [7, 24], [8, 25], [17, 26], [19, 27], [22, 28], [22, 29], [4, 30], [27, 31], [28, 32], [28, 33], [29, 34], [32, 35], [32, 36], [35, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 0], [16, 4], [17, 9], [18, 9], [19, 13], [20, 13], [21, 3], [22, 4], [23, 6], [24, 7], [25, 8], [26, 17], [27, 19], [28, 22], [29, 22], [30, 4], [31, 27], [32, 28], [33, 28], [34, 29], [35, 32], [36, 32], [37, 35], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "indexOf", "code": "  public int indexOf(int elem)\n  {\n    return indexOf(elem,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "lastIndexOf", "code": "  private  int lastIndexOf(int elem)\n  {\n    int boffset=m_firstFree&m_MASK;\n    for(int index=m_firstFree>>>m_SHIFT;\n        index>=0;\n        --index)\n    {\n      int[] block=m_map[index];\n      if(block!=null)\n        for(int offset=boffset; offset>=0; --offset)\n          if(block[offset]==elem)\n            return offset+index*m_blocksize;\n    }\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [2, 13], [11, 14], [11, 15], [12, 16], [14, 17], [14, 18], [15, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 2], [14, 11], [15, 11], [16, 12], [17, 14], [18, 14], [19, 15], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "SuballocatedIntVector", "code": "  public SuballocatedIntVector()\n  {\n    this(2048);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SuballocatedIntVector", "code": "  public SuballocatedIntVector(int blocksize)\n  {\n    for(m_SHIFT=0;0!=(blocksize>>>=1);++m_SHIFT)\n      ;\n    m_blocksize=1<<m_SHIFT;\n    m_MASK=m_blocksize-1;\n\t\t\n    m_map0=new int[m_blocksize];\n    m_map = new int[m_numblocks][];\n    m_map[0]=m_map0;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [6, 10], [7, 11], [8, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [3, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 6], [11, 7], [12, 8], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "SuballocatedIntVector", "code": "  public SuballocatedIntVector(int blocksize,int increasesize)\n  {\n    this(blocksize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.2-4450", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/pluginmgr/MirrorList.java", "language": "java", "name": "org.gjt.sp.jedit.pluginmgr.MirrorList", "code": "public class MirrorList\n{\n\tpublic ArrayList mirrors;\n\n\t//{{{ MirrorList constructor\n\tpublic MirrorList() throws Exception\n\t{\n\t\tmirrors = new ArrayList();\n\n\t\tMirror none = new Mirror();\n\t\tnone.id = Mirror.NONE;\n\t\tnone.description = none.location = none.country = none.continent = \"\";\n\t\tmirrors.add(none);\n\n\t\tString path = jEdit.getProperty(\"plugin-manager.mirror-url\");\n\t\tMirrorListHandler handler = new MirrorListHandler(this,path);\n\t\tXmlParser parser = new XmlParser();\n\t\tparser.setHandler(handler);\n\n\t\tReader in = new BufferedReader(new InputStreamReader(\n\t\t\tnew URL(path).openStream()));\n\t\ttry\n\t\t{\n\t\t\tparser.parse(null,null,in);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tin.close();\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ add() method\n\tvoid add(Mirror mirror)\n\t{\n\t\tmirrors.add(mirror);\n\t} //}}}\n\n\t//{{{ finished() method\n\tvoid finished()\n\t{\n\t\tCollections.sort(mirrors,new MirrorCompare());\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ Mirror class\n\tpublic static class Mirror\n\t{\n\t\tpublic static final String NONE = \"NONE\";\n\n\t\tpublic String id;\n\t\tpublic String description;\n\t\tpublic String location;\n\t\tpublic String country;\n\t\tpublic String continent;\n\t} //}}}\n\n\t//{{{ MirrorCompare class\n\tclass MirrorCompare implements Comparator\n\t{\n\t\tpublic int compare(Object o1,Object o2)\n\t\t{\n\t\t\tMirror m1 = (Mirror)o1;\n\t\t\tMirror m2 = (Mirror)o2;\n\n\t\t\tint result;\n\t\t\tif ((result = m1.continent.compareToIgnoreCase(m2.continent)) == 0)\n\t\t\t\tif ((result = m1.country.compareToIgnoreCase(m2.country)) == 0)\n\t\t\t\t\tif ((result = m1.location.compareToIgnoreCase(m2.location)) == 0)\n\t\t\t\t\t\treturn m1.description.compareToIgnoreCase(m2.description);\n\t\t\treturn result;\n\t\t}\n\n\t\tpublic boolean equals(Object obj)\n\t\t{\n\t\t\treturn (obj instanceof MirrorCompare);", "functions": [{"function_name": "add", "code": "\tvoid add(Mirror mirror)\n\t{\n\t\tmirrors.add(mirror);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "finished", "code": "\tvoid finished()\n\t{\n\t\tCollections.sort(mirrors,new MirrorCompare());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MirrorList", "code": "\tpublic MirrorList() throws Exception\n\t{\n\t\tmirrors = new ArrayList();\n\n\t\tMirror none = new Mirror();\n\t\tnone.id = Mirror.NONE;\n\t\tnone.description = none.location = none.country = none.continent = \"\";\n\t\tmirrors.add(none);\n\n\t\tString path = jEdit.getProperty(\"plugin-manager.mirror-url\");\n\t\tMirrorListHandler handler = new MirrorListHandler(this,path);\n\t\tXmlParser parser = new XmlParser();\n\t\tparser.setHandler(handler);\n\n\t\tReader in = new BufferedReader(new InputStreamReader(\n\t\t\tnew URL(path).openStream()));\n\t\ttry\n\t\t{\n\t\t\tparser.parse(null,null,in);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tin.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [2, 14], [3, 15], [4, 16], [5, 17], [9, 18], [6, 19], [11, 20], [13, 21], [13, 22], [14, 23], [17, 24], [18, 25], [23, 26], [25, 27], [26, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 2], [15, 3], [16, 4], [17, 5], [18, 9], [19, 6], [20, 11], [21, 13], [22, 13], [23, 14], [24, 17], [25, 18], [26, 23], [27, 25], [28, 26], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}], "label": 0}
{"sample_id": "lucene-2.0-5100", "repo": "lucene-2.0", "project": "lucene", "version": "2.0", "file_path": "org/apache/lucene/analysis/standard/FastCharStream.java", "language": "java", "name": "org.apache.lucene.analysis.standard.FastCharStream", "code": "public final class FastCharStream implements CharStream {\n  char[] buffer = null;\n\n  \n\n\n  /** Constructs from a Reader. */\n  public FastCharStream(Reader r) {\n    input = r;\n  }\n\n  public final char readChar() throws IOException {\n    if (bufferPosition >= bufferLength)\n      refill();\n    return buffer[bufferPosition++];\n  }\n\n  private final void refill() throws IOException {\n    int newPosition = bufferLength - tokenStart;\n\n\tbuffer = new char[2048];\t\t  \n\tchar[] newBuffer = new char[buffer.length*2];\n\tSystem.arraycopy(buffer, 0, newBuffer, 0, bufferLength);\n\tbuffer = newBuffer;\n      \n      System.arraycopy(buffer, tokenStart, buffer, 0, newPosition);\n    \n\n    bufferPosition = newPosition;\n    bufferStart += tokenStart;\n    tokenStart = 0;\n\n      input.read(buffer, newPosition, buffer.length-newPosition);\n    if (charsRead == -1)\n      throw new IOException(\"read past eof\");\n    else\n      bufferLength += charsRead;\n  }\n\n  public final char BeginToken() throws IOException {\n    tokenStart = bufferPosition;\n    return readChar();\n  }\n\n  public final void backup(int amount) {\n    bufferPosition -= amount;\n  }\n\n  public final String GetImage() {\n    return new String(buffer, tokenStart, bufferPosition - tokenStart);\n  }\n\n  public final char[] GetSuffix(int len) {\n    char[] value = new char[len];\n    System.arraycopy(buffer, bufferPosition - len, value, 0, len);\n    return value;\n  }\n\n  public final void Done() {\n    try {\n      input.close();\n    } catch (IOException e) {\n      System.err.println(\"Caught: \" + e + \"; ignoring.\");\n    }\n  }\n\n  public final int getColumn() {\n    return bufferStart + bufferPosition;\n  }\n  public final int getLine() {\n    return 1;\n  }\n  public final int getEndColumn() {\n    return bufferStart + bufferPosition;\n  }\n  public final int getEndLine() {\n    return 1;\n  }\n  public final int getBeginColumn() {\n    return bufferStart + tokenStart;\n  }\n  public final int getBeginLine() {\n    return 1;", "functions": [{"function_name": "readChar", "code": "  public final char readChar() throws IOException {\n    if (bufferPosition >= bufferLength)\n      refill();\n    return buffer[bufferPosition++];", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "refill", "code": "  private final void refill() throws IOException {\n    int newPosition = bufferLength - tokenStart;\n\n\tbuffer = new char[2048];\t\t  \n\tchar[] newBuffer = new char[buffer.length*2];\n\tSystem.arraycopy(buffer, 0, newBuffer, 0, bufferLength);\n\tbuffer = newBuffer;\n      \n      System.arraycopy(buffer, tokenStart, buffer, 0, newPosition);\n    \n\n    bufferPosition = newPosition;\n    bufferStart += tokenStart;\n    tokenStart = 0;\n\n      input.read(buffer, newPosition, buffer.length-newPosition);\n    if (charsRead == -1)\n      throw new IOException(\"read past eof\");\n    else\n      bufferLength += charsRead;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [4, 15], [5, 16], [6, 17], [7, 18], [10, 19], [12, 20], [12, 21], [3, 22], [15, 23], [2, 24], [13, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 4], [16, 5], [17, 6], [18, 7], [19, 10], [20, 12], [21, 12], [22, 3], [23, 15], [24, 2], [25, 13], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "BeginToken", "code": "  public final char BeginToken() throws IOException {\n    tokenStart = bufferPosition;\n    return readChar();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "backup", "code": "  public final void backup(int amount) {\n    bufferPosition -= amount;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "GetImage", "code": "  public final String GetImage() {\n    return new String(buffer, tokenStart, bufferPosition - tokenStart);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "GetSuffix", "code": "  public final char[] GetSuffix(int len) {\n    char[] value = new char[len];\n    System.arraycopy(buffer, bufferPosition - len, value, 0, len);\n    return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "Done", "code": "  public final void Done() {\n    try {\n      input.close();\n    } catch (IOException e) {\n      System.err.println(\"Caught: \" + e + \"; ignoring.\");", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getColumn", "code": "  public final int getColumn() {\n    return bufferStart + bufferPosition;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLine", "code": "  public final int getLine() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndColumn", "code": "  public final int getEndColumn() {\n    return bufferStart + bufferPosition;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndLine", "code": "  public final int getEndLine() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeginColumn", "code": "  public final int getBeginColumn() {\n    return bufferStart + tokenStart;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBeginLine", "code": "  public final int getBeginLine() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FastCharStream", "code": "  public FastCharStream(Reader r) {\n    input = r;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-3107", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/cxf/CxfSoapBinding.java", "language": "java", "name": "org.apache.camel.component.cxf.CxfSoapBinding", "code": "public final class CxfSoapBinding {\n    private static final Log LOG = LogFactory.getLog(CxfSoapBinding.class);\n\n    private CxfSoapBinding() {\n\n    }\n    \n    /**\n     * @deprecated  Please use {@link #getCxfInMessage(HeaderFilterStrategy, org.apache.camel.Exchange, boolean)}\n     */\n    public static org.apache.cxf.message.Message getCxfInMessage(org.apache.camel.Exchange exchange, boolean isClient) {\n        return CxfSoapBinding.getCxfInMessage(new DefaultHeaderFilterStrategy(), exchange, isClient);\n    }\n    \n    public static org.apache.cxf.message.Message getCxfInMessage(HeaderFilterStrategy headerFilterStrategy,\n            org.apache.camel.Exchange exchange, boolean isClient) {\n        MessageImpl answer = new MessageImpl();\n        org.apache.cxf.message.Exchange cxfExchange = exchange.getProperty(CxfConstants.CXF_EXCHANGE,\n                                                                        org.apache.cxf.message.Exchange.class);\n        org.apache.camel.Message message = null;\n        if (isClient) {\n            message = exchange.getOut();\n        } else {\n            message = exchange.getIn();\n        }\n        ObjectHelper.notNull(message, \"message\");\n        if (cxfExchange == null) {\n            cxfExchange = new ExchangeImpl();\n            exchange.setProperty(CxfConstants.CXF_EXCHANGE, cxfExchange);\n        }\n\n        CxfHeaderHelper.propagateCamelToCxf(headerFilterStrategy, message.getHeaders(), answer);\n\n        try {\n            InputStream body = message.getBody(InputStream.class);\n            answer.setContent(InputStream.class, body);\n        } catch (NoTypeConversionAvailableException ex) {\n            LOG.warn(\"Can't get right InputStream object here, the message body is \" + message.getBody());\n        }\n\n        answer.putAll(message.getHeaders());\n        answer.setExchange(cxfExchange);\n        cxfExchange.setInMessage(answer);\n        return answer;\n    }\n\n    /**\n     * @deprecated Please use {@link #getCxfOutMessage(HeaderFilterStrategy, org.apache.camel.Exchange, boolean)}\n     */\n    public static org.apache.cxf.message.Message getCxfOutMessage(org.apache.camel.Exchange exchange, boolean isClient) {\n        return CxfSoapBinding.getCxfOutMessage(new DefaultHeaderFilterStrategy(), exchange, isClient);\n    }\n    \n    public static org.apache.cxf.message.Message getCxfOutMessage(HeaderFilterStrategy headerFilterStrategy,\n            org.apache.camel.Exchange exchange, boolean isClient) {\n        org.apache.cxf.message.Exchange cxfExchange = exchange.getProperty(CxfConstants.CXF_EXCHANGE, org.apache.cxf.message.Exchange.class);\n        ObjectHelper.notNull(cxfExchange, \"cxfExchange\");\n        org.apache.cxf.endpoint.Endpoint cxfEndpoint = cxfExchange.get(org.apache.cxf.endpoint.Endpoint.class);\n        org.apache.cxf.message.Message outMessage = cxfEndpoint.getBinding().createMessage();\n        outMessage.setExchange(cxfExchange);\n        cxfExchange.setOutMessage(outMessage);\n        org.apache.camel.Message message = null;\n        if (isClient) {\n            message = exchange.getIn();\n        } else {\n            message = exchange.getOut();\n        }\n\n        CxfHeaderHelper.propagateCamelToCxf(headerFilterStrategy, message.getHeaders(), outMessage);\n\n        try {\n            Source body = message.getBody(Source.class);\n            outMessage.setContent(Source.class, body);\n        } catch (NoTypeConversionAvailableException ex) {\n            LOG.warn(\"Can't get right Source object here, the message body is \" + message.getBody());\n        }\n        outMessage.putAll(message.getHeaders());\n        return outMessage;\n    }\n\n    /**\n     * @deprecated Please use {@link CxfHeaderHelper#propagateCxfToCamel(HeaderFilterStrategy, org.apache.cxf.message.Message, Map)}\n     */\n    public static void setProtocolHeader(Map<String, Object> headers, Map<String, List<String>> protocolHeader) {\n        if (protocolHeader != null) {\n            StringBuilder value = new StringBuilder(256);\n            for (Map.Entry<String, List<String>> entry : protocolHeader.entrySet()) {\n                value.setLength(0);\n                boolean first = true;\n                for (String s : entry.getValue()) {\n                    if (!first) {\n                        value.append(\"; \");\n                    }\n                    value.append(s);\n                    first = false;\n                }\n                headers.put(entry.getKey(), value.toString());", "functions": [{"function_name": "getCxfInMessage", "code": "    public static org.apache.cxf.message.Message getCxfInMessage(org.apache.camel.Exchange exchange, boolean isClient) {\n        return CxfSoapBinding.getCxfInMessage(new DefaultHeaderFilterStrategy(), exchange, isClient);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getCxfInMessage", "code": "    public static org.apache.cxf.message.Message getCxfInMessage(HeaderFilterStrategy headerFilterStrategy,\n            org.apache.camel.Exchange exchange, boolean isClient) {\n        MessageImpl answer = new MessageImpl();\n        org.apache.cxf.message.Exchange cxfExchange = exchange.getProperty(CxfConstants.CXF_EXCHANGE,\n                                                                        org.apache.cxf.message.Exchange.class);\n        org.apache.camel.Message message = null;\n        if (isClient) {\n            message = exchange.getOut();\n        } else {\n            message = exchange.getIn();\n        }\n        ObjectHelper.notNull(message, \"message\");\n        if (cxfExchange == null) {\n            cxfExchange = new ExchangeImpl();\n            exchange.setProperty(CxfConstants.CXF_EXCHANGE, cxfExchange);\n        }\n\n        CxfHeaderHelper.propagateCamelToCxf(headerFilterStrategy, message.getHeaders(), answer);\n\n        try {\n            InputStream body = message.getBody(InputStream.class);\n            answer.setContent(InputStream.class, body);\n        } catch (NoTypeConversionAvailableException ex) {\n            LOG.warn(\"Can't get right InputStream object here, the message body is \" + message.getBody());\n        }\n\n        answer.putAll(message.getHeaders());\n        answer.setExchange(cxfExchange);\n        cxfExchange.setInMessage(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [2, 14], [2, 15], [0, 16], [3, 17], [0, 18], [13, 19], [2, 20], [16, 21], [17, 22], [18, 23], [5, 24], [6, 25], [7, 26], [14, 27], [15, 28], [3, 29], [3, 30], [4, 31], [4, 32], [27, 33], [30, 34], [31, 35], [32, 36], [33, 37], [33, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 2], [15, 2], [16, 0], [17, 3], [18, 0], [19, 13], [20, 2], [21, 16], [22, 17], [23, 18], [24, 5], [25, 6], [26, 7], [27, 14], [28, 15], [29, 3], [30, 3], [31, 4], [32, 4], [33, 27], [34, 30], [35, 31], [36, 32], [37, 33], [38, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "getCxfOutMessage", "code": "    public static org.apache.cxf.message.Message getCxfOutMessage(org.apache.camel.Exchange exchange, boolean isClient) {\n        return CxfSoapBinding.getCxfOutMessage(new DefaultHeaderFilterStrategy(), exchange, isClient);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getCxfOutMessage", "code": "    public static org.apache.cxf.message.Message getCxfOutMessage(HeaderFilterStrategy headerFilterStrategy,\n            org.apache.camel.Exchange exchange, boolean isClient) {\n        org.apache.cxf.message.Exchange cxfExchange = exchange.getProperty(CxfConstants.CXF_EXCHANGE, org.apache.cxf.message.Exchange.class);\n        ObjectHelper.notNull(cxfExchange, \"cxfExchange\");\n        org.apache.cxf.endpoint.Endpoint cxfEndpoint = cxfExchange.get(org.apache.cxf.endpoint.Endpoint.class);\n        org.apache.cxf.message.Message outMessage = cxfEndpoint.getBinding().createMessage();\n        outMessage.setExchange(cxfExchange);\n        cxfExchange.setOutMessage(outMessage);\n        org.apache.camel.Message message = null;\n        if (isClient) {\n            message = exchange.getIn();\n        } else {\n            message = exchange.getOut();\n        }\n\n        CxfHeaderHelper.propagateCamelToCxf(headerFilterStrategy, message.getHeaders(), outMessage);\n\n        try {\n            Source body = message.getBody(Source.class);\n            outMessage.setContent(Source.class, body);\n        } catch (NoTypeConversionAvailableException ex) {\n            LOG.warn(\"Can't get right Source object here, the message body is \" + message.getBody());\n        }\n        outMessage.putAll(message.getHeaders());\n        return outMessage;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [2, 13], [0, 14], [0, 15], [0, 16], [0, 17], [11, 18], [2, 19], [14, 20], [4, 21], [5, 22], [6, 23], [17, 24], [7, 25], [12, 26], [13, 27], [3, 28], [3, 29], [22, 30], [26, 31], [28, 32], [29, 33], [31, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 2], [14, 0], [15, 0], [16, 0], [17, 0], [18, 11], [19, 2], [20, 14], [21, 4], [22, 5], [23, 6], [24, 17], [25, 7], [26, 12], [27, 13], [28, 3], [29, 3], [30, 22], [31, 26], [32, 28], [33, 29], [34, 31], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "setProtocolHeader", "code": "    public static void setProtocolHeader(Map<String, Object> headers, Map<String, List<String>> protocolHeader) {\n        if (protocolHeader != null) {\n            StringBuilder value = new StringBuilder(256);\n            for (Map.Entry<String, List<String>> entry : protocolHeader.entrySet()) {\n                value.setLength(0);\n                boolean first = true;\n                for (String s : entry.getValue()) {\n                    if (!first) {\n                        value.append(\"; \");\n                    }\n                    value.append(s);\n                    first = false;\n                }\n                headers.put(entry.getKey(), value.toString());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [5, 12], [5, 13], [11, 14], [12, 15], [12, 16], [8, 17], [8, 18], [9, 19], [13, 20], [8, 21], [8, 22], [21, 23], [17, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 5], [13, 5], [14, 11], [15, 12], [16, 12], [17, 8], [18, 8], [19, 9], [20, 13], [21, 8], [22, 8], [23, 21], [24, 17], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "CxfSoapBinding", "code": "    private CxfSoapBinding() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.5-5897", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/UnitsRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.UnitsRecord", "code": "public class UnitsRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1001;\n    private  short      field_1_units;\n\n\n    public UnitsRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Units record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1001 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public UnitsRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a Units record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1001 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public UnitsRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Units record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_units                  = LittleEndian.getShort(data, pos + 0x0 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[UNITS]\\n\");\n        buffer.append(\"    .units                = \")\n            .append(\"0x\").append(HexDump.toHex(  getUnits ()))\n            .append(\" (\").append( getUnits() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/UNITS]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_units);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        UnitsRecord rec = new UnitsRecord();\n    \n        rec.field_1_units = field_1_units;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the units field for the Units record.\n     */\n    public short getUnits()\n    {\n        return field_1_units;\n    }\n\n    /**\n     * Set the units field for the Units record.\n     */\n    public void setUnits(short field_1_units)\n    {\n        this.field_1_units = field_1_units;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Units record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_units                  = LittleEndian.getShort(data, pos + 0x0 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[UNITS]\\n\");\n        buffer.append(\"    .units                = \")\n            .append(\"0x\").append(HexDump.toHex(  getUnits ()))\n            .append(\" (\").append( getUnits() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/UNITS]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [6, 15], [7, 16], [2, 17], [9, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [22, 24], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 6], [16, 7], [17, 2], [18, 9], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_units);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [6, 9], [7, 10], [8, 11], [2, 12], [9, 13], [7, 14], [10, 15], [11, 16], [13, 17], [14, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 6], [10, 7], [11, 8], [12, 2], [13, 9], [14, 7], [15, 10], [16, 11], [17, 13], [18, 14], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        UnitsRecord rec = new UnitsRecord();\n    \n        rec.field_1_units = field_1_units;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getUnits", "code": "    public short getUnits()\n    {\n        return field_1_units;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUnits", "code": "    public void setUnits(short field_1_units)\n    {\n        this.field_1_units = field_1_units;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "UnitsRecord", "code": "    public UnitsRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "UnitsRecord", "code": "    public UnitsRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "UnitsRecord", "code": "    public UnitsRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.5-292", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/Copy.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Copy", "code": "public class Copy extends Task {\n    protected Vector filesets = new Vector();\n\n    protected boolean filtering = false;\n    protected boolean preserveLastModified = false;\n    protected boolean forceOverwrite = false;\n    protected boolean flatten = false;\n    protected int verbosity = Project.MSG_VERBOSE;\n    protected boolean includeEmpty = true;\n    private boolean failonerror = true;\n\n    protected Hashtable fileCopyMap = new Hashtable();\n    protected Hashtable dirCopyMap = new Hashtable();\n    protected Hashtable completeDirMap = new Hashtable();\n\n    protected Mapper mapperElement = null;\n    private Vector filterChains = new Vector();\n    private Vector filterSets = new Vector();\n    private FileUtils fileUtils;\n    private String encoding = null;\n\n    /**\n     * Copy task constructor. \n     */\n    public Copy() {\n        fileUtils = FileUtils.newFileUtils();\n    }\n\n    protected FileUtils getFileUtils() {\n        return fileUtils;\n    }\n\n    /**\n     * Sets a single source file to copy.\n     */\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    /**\n     * Sets the destination file.\n     */\n    public void setTofile(File destFile) {\n        this.destFile = destFile;\n    }\n\n    /**\n     * Sets the destination directory.\n     */\n    public void setTodir(File destDir) {\n        this.destDir = destDir;\n    }\n\n    /**\n     * Adds a FilterChain.\n     */\n    public FilterChain createFilterChain() {\n        FilterChain filterChain = new FilterChain();\n        filterChains.addElement(filterChain);\n        return filterChain;\n    }\n\n    /**\n     * Adds a filterset.\n     */\n    public FilterSet createFilterSet() {\n        FilterSet filterSet = new FilterSet();\n        filterSets.addElement(filterSet);\n        return filterSet;\n    }\n\n    /**\n     * Give the copied files the same last modified time as the original files.\n     * @deprecated setPreserveLastModified(String) has been deprecated and\n     *             replaced with setPreserveLastModified(boolean) to\n     *             consistently let the Introspection mechanism work.\n     */\n    public void setPreserveLastModified(String preserve) {\n        setPreserveLastModified(Project.toBoolean(preserve));\n    }\n\n    /**\n     * Give the copied files the same last modified time as the original files.\n     */\n    public void setPreserveLastModified(boolean preserve) {\n        preserveLastModified = preserve;\n    }\n\n    /**\n     * Whether to give the copied files the same last modified time as\n     * the original files.\n     *\n     * @since 1.32, Ant 1.5\n     */\n    public boolean getPreserveLastModified() {\n        return preserveLastModified;\n    }\n\n    /**\n     * Get the filtersets being applied to this operation.\n     *\n     * @return a vector of FilterSet objects\n     */\n    protected Vector getFilterSets() {\n        return filterSets;\n    }\n\n    /**\n     * Get the filterchains being applied to this operation.\n     *\n     * @return a vector of FilterChain objects\n     */\n    protected Vector getFilterChains() {\n        return filterChains;\n    }\n\n    /**\n     * If true, enables filtering.\n     */\n    public void setFiltering(boolean filtering) {\n        this.filtering = filtering;\n    }\n\n    /**\n     * Overwrite any existing destination file(s).\n     */\n    public void setOverwrite(boolean overwrite) {\n        this.forceOverwrite = overwrite;\n    }\n\n    /**\n     * When copying directory trees, the files can be \"flattened\"\n     * into a single directory.  If there are multiple files with\n     * the same name in the source directory tree, only the first\n     * file will be copied into the \"flattened\" directory, unless\n     * the forceoverwrite attribute is true.\n     */\n    public void setFlatten(boolean flatten) {\n        this.flatten = flatten;\n    }\n\n    /**\n     * Used to force listing of all names of copied files.\n     */\n    public void setVerbose(boolean verbose) {\n        if (verbose) {\n            this.verbosity = Project.MSG_INFO;\n        } else {\n            this.verbosity = Project.MSG_VERBOSE;\n        }\n    }\n\n    /**\n     * Used to copy empty directories.\n     */\n    public void setIncludeEmptyDirs(boolean includeEmpty) {\n        this.includeEmpty = includeEmpty;\n    }\n\n    /**\n     * If false, note errors to the output but keep going.\n     * @param failonerror true or false\n     */\n     public void setFailOnError(boolean failonerror) {\n         this.failonerror = failonerror;\n     }\n\n    /**\n     * Adds a set of files to copy.\n     */\n    public void addFileset(FileSet set) {\n        filesets.addElement(set);\n    }\n\n    /**\n     * Defines the mapper to map source to destination files.\n     */\n    public Mapper createMapper() throws BuildException {\n        if (mapperElement != null) {\n            throw new BuildException(\"Cannot define more than one mapper\",\n                                     getLocation());\n        }\n        mapperElement = new Mapper(getProject());\n        return mapperElement;\n    }\n\n    /**\n     * Sets the character encoding\n     *\n     * @since 1.32, Ant 1.5\n     */\n    public void setEncoding (String encoding) {\n        this.encoding = encoding;\n    }\n\n    /**\n     * @return the character encoding, <code>null</code> if not set.\n     *\n     * @since 1.32, Ant 1.5\n     */\n    public String getEncoding() {\n        return encoding;\n    }\n\n    /**\n     * Performs the copy operation.\n     */\n    public void execute() throws BuildException {\n        File savedDestFile = destFile;\n        File savedDestDir = destDir;\n        FileSet savedFileSet = null;\n        if (file == null && destFile != null && filesets.size() == 1) {\n            savedFileSet = (FileSet) filesets.elementAt(0);\n        }\n\n        validateAttributes();\n\n        try {\n\n            if (file != null) {\n                if (file.exists()) {\n                    if (destFile == null) {\n                        destFile = new File(destDir, file.getName());\n                    }\n\n                    if (forceOverwrite ||\n                        !destFile.exists() ||\n                        (file.lastModified() > destFile.lastModified())) {\n                        fileCopyMap.put(file.getAbsolutePath(), \n                                        destFile.getAbsolutePath());\n                    } else {\n                        log(file + \" omitted as \" + destFile \n                            + \" is up to date.\", Project.MSG_VERBOSE);\n                    }\n                } else {\n                    String message = \"Warning: Could not find file \"\n                        + file.getAbsolutePath() + \" to copy.\";\n                    if (!failonerror) {\n                        log(message);\n                    } else {\n                        throw new BuildException(message);\n                    }\n                }\n            }\n\n            for (int i = 0; i < filesets.size(); i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n                File fromDir = fs.getDir(getProject());\n\n                String[] srcFiles = ds.getIncludedFiles();\n                String[] srcDirs = ds.getIncludedDirectories();\n                boolean isEverythingIncluded = ds.isEverythingIncluded();\n                if (isEverythingIncluded\n                    && !flatten && mapperElement == null) {\n                    completeDirMap.put(fromDir, destDir);\n                }\n                scan(fromDir, destDir, srcFiles, srcDirs);\n            }\n\n            doFileOperations();\n        } finally {\n            file = savedFile;\n            destFile = savedDestFile;\n            destDir = savedDestDir;\n            if (savedFileSet != null) {\n                filesets.insertElementAt(savedFileSet, 0);\n            }\n\n            fileCopyMap.clear();\n            dirCopyMap.clear();\n            completeDirMap.clear();\n        }\n    }\n\n\n    /**\n     * Ensure we have a consistent and legal set of attributes, and set\n     * any internal flags necessary based on different combinations\n     * of attributes.\n     */\n    protected void validateAttributes() throws BuildException {\n        if (file == null && filesets.size() == 0) {\n            throw new BuildException(\"Specify at least one source \"\n                                     + \"- a file or a fileset.\");\n        }\n\n        if (destFile != null && destDir != null) {\n            throw new BuildException(\"Only one of tofile and todir \"\n                                     + \"may be set.\");\n        }\n\n        if (destFile == null && destDir == null) {\n            throw new BuildException(\"One of tofile or todir must be set.\");\n        }\n\n        if (file != null && file.exists() && file.isDirectory()) {\n            throw new BuildException(\"Use a fileset to copy directories.\");\n        }\n\n        if (destFile != null && filesets.size() > 0) {\n            if (filesets.size() > 1) {\n                throw new BuildException(\n                    \"Cannot concatenate multiple files into a single file.\");\n            } else {\n                FileSet fs = (FileSet) filesets.elementAt(0);\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n                String[] srcFiles = ds.getIncludedFiles();\n\n                if (srcFiles.length == 0) {\n                    throw new BuildException(\n                        \"Cannot perform operation from directory to file.\");\n                } else if (srcFiles.length == 1) {\n                    if (file == null) {\n                        file = new File(ds.getBasedir(), srcFiles[0]);\n                        filesets.removeElementAt(0);\n                    } else {\n                        throw new BuildException(\"Cannot concatenate multiple \"\n                                                 + \"files into a single file.\");\n                    }\n                } else {\n                    throw new BuildException(\"Cannot concatenate multiple \"\n                                             + \"files into a single file.\");\n                }\n            }\n        }\n\n        if (destFile != null) {\n            destDir = fileUtils.getParentFile(destFile);\n        }\n\n    }\n\n    /**\n     * Compares source files to destination files to see if they should be\n     * copied.\n     */\n    protected void scan(File fromDir, File toDir, String[] files, \n                        String[] dirs) {\n        FileNameMapper mapper = null;\n        if (mapperElement != null) {\n            mapper = mapperElement.getImplementation();\n        } else if (flatten) {\n            mapper = new FlatFileNameMapper();\n        } else {\n            mapper = new IdentityMapper();\n        }\n\n        buildMap(fromDir, toDir, files, mapper, fileCopyMap);\n\n        if (includeEmpty) {\n            buildMap(fromDir, toDir, dirs, mapper, dirCopyMap);\n        }\n    }\n\n    protected void buildMap(File fromDir, File toDir, String[] names,\n                            FileNameMapper mapper, Hashtable map) {\n\n        String[] toCopy = null;\n        if (forceOverwrite) {\n            Vector v = new Vector();\n            for (int i = 0; i < names.length; i++) {\n                if (mapper.mapFileName(names[i]) != null) {\n                    v.addElement(names[i]);\n                }\n            }\n            toCopy = new String[v.size()];\n            v.copyInto(toCopy);\n        } else {\n            SourceFileScanner ds = new SourceFileScanner(this);\n            toCopy = ds.restrict(names, fromDir, toDir, mapper);\n        }\n\n        for (int i = 0; i < toCopy.length; i++) {\n            File src = new File(fromDir, toCopy[i]);\n            File dest = new File(toDir, mapper.mapFileName(toCopy[i])[0]);\n            map.put(src.getAbsolutePath(), dest.getAbsolutePath());\n        }\n    }\n\n    /**\n     * Actually does the file (and possibly empty directory) copies.\n     * This is a good method for subclasses to override.\n     */\n    protected void doFileOperations() {\n        if (fileCopyMap.size() > 0) {\n            log(\"Copying \" + fileCopyMap.size() \n                + \" file\" + (fileCopyMap.size() == 1 ? \"\" : \"s\") \n                + \" to \" + destDir.getAbsolutePath());\n\n            Enumeration e = fileCopyMap.keys();\n            while (e.hasMoreElements()) {\n                String fromFile = (String) e.nextElement();\n                String toFile = (String) fileCopyMap.get(fromFile);\n\n                if (fromFile.equals(toFile)) {\n                    log(\"Skipping self-copy of \" + fromFile, verbosity);\n                    continue;\n                }\n\n                try {\n                    log(\"Copying \" + fromFile + \" to \" + toFile, verbosity);\n\n                    FilterSetCollection executionFilters = \n                        new FilterSetCollection();\n                    if (filtering) {\n                        executionFilters\n                            .addFilterSet(getProject().getGlobalFilterSet());\n                    }\n                    for (Enumeration filterEnum = filterSets.elements(); \n                         filterEnum.hasMoreElements();) {\n                        executionFilters\n                            .addFilterSet((FilterSet) filterEnum.nextElement());\n                    }\n                    fileUtils.copyFile(fromFile, toFile, executionFilters,\n                                       filterChains, forceOverwrite,\n                                       preserveLastModified, encoding,\n                                       getProject());\n                } catch (IOException ioe) {\n                    String msg = \"Failed to copy \" + fromFile + \" to \" + toFile\n                        + \" due to \" + ioe.getMessage();\n                    File targetFile = new File(toFile);\n                    if (targetFile.exists() && !targetFile.delete()) {\n                        msg += \" and I couldn't delete the corrupt \" + toFile;\n                    }\n                    throw new BuildException(msg, ioe, getLocation());\n                }\n            }\n        }\n\n        if (includeEmpty) {\n            Enumeration e = dirCopyMap.elements();\n            int count = 0;\n            while (e.hasMoreElements()) {\n                File d = new File((String) e.nextElement());\n                if (!d.exists()) {\n                    if (!d.mkdirs()) {\n                        log(\"Unable to create directory \" \n                            + d.getAbsolutePath(), Project.MSG_ERR);\n                    } else {\n                        count++;\n                    }\n                }\n            }\n\n            if (count > 0) {\n                log(\"Copied \" + count +\n                    \" empty director\" +\n                    (count == 1 ? \"y\" : \"ies\") +\n                    \" to \" + destDir.getAbsolutePath());", "functions": [{"function_name": "getFileUtils", "code": "    protected FileUtils getFileUtils() {\n        return fileUtils;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTofile", "code": "    public void setTofile(File destFile) {\n        this.destFile = destFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTodir", "code": "    public void setTodir(File destDir) {\n        this.destDir = destDir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createFilterChain", "code": "    public FilterChain createFilterChain() {\n        FilterChain filterChain = new FilterChain();\n        filterChains.addElement(filterChain);\n        return filterChain;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createFilterSet", "code": "    public FilterSet createFilterSet() {\n        FilterSet filterSet = new FilterSet();\n        filterSets.addElement(filterSet);\n        return filterSet;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setPreserveLastModified", "code": "    public void setPreserveLastModified(String preserve) {\n        setPreserveLastModified(Project.toBoolean(preserve));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setPreserveLastModified", "code": "    public void setPreserveLastModified(boolean preserve) {\n        preserveLastModified = preserve;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPreserveLastModified", "code": "    public boolean getPreserveLastModified() {\n        return preserveLastModified;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFilterSets", "code": "    protected Vector getFilterSets() {\n        return filterSets;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFilterChains", "code": "    protected Vector getFilterChains() {\n        return filterChains;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFiltering", "code": "    public void setFiltering(boolean filtering) {\n        this.filtering = filtering;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOverwrite", "code": "    public void setOverwrite(boolean overwrite) {\n        this.forceOverwrite = overwrite;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFlatten", "code": "    public void setFlatten(boolean flatten) {\n        this.flatten = flatten;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVerbose", "code": "    public void setVerbose(boolean verbose) {\n        if (verbose) {\n            this.verbosity = Project.MSG_INFO;\n        } else {\n            this.verbosity = Project.MSG_VERBOSE;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setIncludeEmptyDirs", "code": "    public void setIncludeEmptyDirs(boolean includeEmpty) {\n        this.includeEmpty = includeEmpty;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFailOnError", "code": "     public void setFailOnError(boolean failonerror) {\n         this.failonerror = failonerror;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createMapper", "code": "    public Mapper createMapper() throws BuildException {\n        if (mapperElement != null) {\n            throw new BuildException(\"Cannot define more than one mapper\",\n                                     getLocation());\n        }\n        mapperElement = new Mapper(getProject());\n        return mapperElement;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [4, 7], [5, 8], [6, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 4], [8, 5], [9, 6], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setEncoding", "code": "    public void setEncoding (String encoding) {\n        this.encoding = encoding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEncoding", "code": "    public String getEncoding() {\n        return encoding;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        File savedDestFile = destFile;\n        File savedDestDir = destDir;\n        FileSet savedFileSet = null;\n        if (file == null && destFile != null && filesets.size() == 1) {\n            savedFileSet = (FileSet) filesets.elementAt(0);\n        }\n\n        validateAttributes();\n\n        try {\n\n            if (file != null) {\n                if (file.exists()) {\n                    if (destFile == null) {\n                        destFile = new File(destDir, file.getName());\n                    }\n\n                    if (forceOverwrite ||\n                        !destFile.exists() ||\n                        (file.lastModified() > destFile.lastModified())) {\n                        fileCopyMap.put(file.getAbsolutePath(), \n                                        destFile.getAbsolutePath());\n                    } else {\n                        log(file + \" omitted as \" + destFile \n                            + \" is up to date.\", Project.MSG_VERBOSE);\n                    }\n                } else {\n                    String message = \"Warning: Could not find file \"\n                        + file.getAbsolutePath() + \" to copy.\";\n                    if (!failonerror) {\n                        log(message);\n                    } else {\n                        throw new BuildException(message);\n                    }\n                }\n            }\n\n            for (int i = 0; i < filesets.size(); i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n                File fromDir = fs.getDir(getProject());\n\n                String[] srcFiles = ds.getIncludedFiles();\n                String[] srcDirs = ds.getIncludedDirectories();\n                boolean isEverythingIncluded = ds.isEverythingIncluded();\n                if (isEverythingIncluded\n                    && !flatten && mapperElement == null) {\n                    completeDirMap.put(fromDir, destDir);\n                }\n                scan(fromDir, destDir, srcFiles, srcDirs);\n            }\n\n            doFileOperations();\n        } finally {\n            file = savedFile;\n            destFile = savedDestFile;\n            destDir = savedDestDir;\n            if (savedFileSet != null) {\n                filesets.insertElementAt(savedFileSet, 0);\n            }\n\n            fileCopyMap.clear();\n            dirCopyMap.clear();\n            completeDirMap.clear();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [0, 9], [2, 10], [1, 11], [1, 12], [1, 13], [6, 14], [1, 15], [1, 16], [1, 17], [1, 18], [7, 19], [8, 20], [10, 21], [10, 22], [3, 23], [14, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [19, 32], [8, 33], [20, 34], [2, 35], [21, 36], [21, 37], [22, 38], [22, 39], [6, 40], [7, 41], [25, 42], [7, 43], [33, 44], [38, 45], [39, 46], [40, 47], [42, 48], [42, 49], [26, 50], [27, 51], [28, 52], [29, 53], [30, 54], [33, 55], [33, 56], [33, 57], [33, 58], [35, 59], [25, 60], [48, 61], [53, 62], [54, 63], [31, 64], [57, 65], [58, 66], [59, 67], [55, 68], [56, 69], [65, 70], [65, 71], [66, 72], [68, 73], [55, 74], [69, 75], [69, 76], [57, 77], [57, 78], [70, 79], [70, 80], [71, 81], [58, 82], [76, 83], [76, 84], [77, 85], [78, 86], [78, 87], [82, 88], [85, 89], [85, 90], [88, 91], [90, 92], [92, 93], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 0], [10, 2], [11, 1], [12, 1], [13, 1], [14, 6], [15, 1], [16, 1], [17, 1], [18, 1], [19, 7], [20, 8], [21, 10], [22, 10], [23, 3], [24, 14], [25, 7], [26, 7], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 19], [33, 8], [34, 20], [35, 2], [36, 21], [37, 21], [38, 22], [39, 22], [40, 6], [41, 7], [42, 25], [43, 7], [44, 33], [45, 38], [46, 39], [47, 40], [48, 42], [49, 42], [50, 26], [51, 27], [52, 28], [53, 29], [54, 30], [55, 33], [56, 33], [57, 33], [58, 33], [59, 35], [60, 25], [61, 48], [62, 53], [63, 54], [64, 31], [65, 57], [66, 58], [67, 59], [68, 55], [69, 56], [70, 65], [71, 65], [72, 66], [73, 68], [74, 55], [75, 69], [76, 69], [77, 57], [78, 57], [79, 70], [80, 70], [81, 71], [82, 58], [83, 76], [84, 76], [85, 77], [86, 78], [87, 78], [88, 82], [89, 85], [90, 85], [91, 88], [92, 90], [93, 92], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93]]}, {"function_name": "validateAttributes", "code": "    protected void validateAttributes() throws BuildException {\n        if (file == null && filesets.size() == 0) {\n            throw new BuildException(\"Specify at least one source \"\n                                     + \"- a file or a fileset.\");\n        }\n\n        if (destFile != null && destDir != null) {\n            throw new BuildException(\"Only one of tofile and todir \"\n                                     + \"may be set.\");\n        }\n\n        if (destFile == null && destDir == null) {\n            throw new BuildException(\"One of tofile or todir must be set.\");\n        }\n\n        if (file != null && file.exists() && file.isDirectory()) {\n            throw new BuildException(\"Use a fileset to copy directories.\");\n        }\n\n        if (destFile != null && filesets.size() > 0) {\n            if (filesets.size() > 1) {\n                throw new BuildException(\n                    \"Cannot concatenate multiple files into a single file.\");\n            } else {\n                FileSet fs = (FileSet) filesets.elementAt(0);\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n                String[] srcFiles = ds.getIncludedFiles();\n\n                if (srcFiles.length == 0) {\n                    throw new BuildException(\n                        \"Cannot perform operation from directory to file.\");\n                } else if (srcFiles.length == 1) {\n                    if (file == null) {\n                        file = new File(ds.getBasedir(), srcFiles[0]);\n                        filesets.removeElementAt(0);\n                    } else {\n                        throw new BuildException(\"Cannot concatenate multiple \"\n                                                 + \"files into a single file.\");\n                    }\n                } else {\n                    throw new BuildException(\"Cannot concatenate multiple \"\n                                             + \"files into a single file.\");\n                }\n            }\n        }\n\n        if (destFile != null) {\n            destDir = fileUtils.getParentFile(destFile);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [2, 14], [8, 15], [8, 16], [3, 17], [9, 18], [9, 19], [4, 20], [10, 21], [10, 22], [5, 23], [11, 24], [11, 25], [6, 26], [12, 27], [12, 28], [1, 29], [14, 30], [15, 31], [15, 32], [16, 33], [17, 34], [19, 35], [19, 36], [20, 37], [21, 38], [22, 39], [23, 40], [24, 41], [25, 42], [26, 43], [27, 44], [27, 45], [28, 46], [29, 47], [14, 48], [14, 49], [14, 50], [14, 51], [14, 52], [30, 53], [30, 54], [34, 55], [36, 56], [37, 57], [40, 58], [43, 59], [48, 60], [48, 61], [52, 62], [58, 63], [58, 64], [59, 65], [59, 66], [60, 67], [48, 68], [61, 69], [49, 70], [50, 71], [62, 72], [60, 73], [60, 74], [67, 75], [68, 76], [71, 77], [51, 78], [73, 79], [74, 80], [76, 81], [78, 82], [79, 83], [74, 84], [80, 85], [83, 86], [83, 87], [84, 88], [74, 89], [74, 90], [88, 91], [89, 92], [90, 93], [91, 94], [91, 95], [93, 96], [93, 97], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [14, 2], [15, 8], [16, 8], [17, 3], [18, 9], [19, 9], [20, 4], [21, 10], [22, 10], [23, 5], [24, 11], [25, 11], [26, 6], [27, 12], [28, 12], [29, 1], [30, 14], [31, 15], [32, 15], [33, 16], [34, 17], [35, 19], [36, 19], [37, 20], [38, 21], [39, 22], [40, 23], [41, 24], [42, 25], [43, 26], [44, 27], [45, 27], [46, 28], [47, 29], [48, 14], [49, 14], [50, 14], [51, 14], [52, 14], [53, 30], [54, 30], [55, 34], [56, 36], [57, 37], [58, 40], [59, 43], [60, 48], [61, 48], [62, 52], [63, 58], [64, 58], [65, 59], [66, 59], [67, 60], [68, 48], [69, 61], [70, 49], [71, 50], [72, 62], [73, 60], [74, 60], [75, 67], [76, 68], [77, 71], [78, 51], [79, 73], [80, 74], [81, 76], [82, 78], [83, 79], [84, 74], [85, 80], [86, 83], [87, 83], [88, 84], [89, 74], [90, 74], [91, 88], [92, 89], [93, 90], [94, 91], [95, 91], [96, 93], [97, 93], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97]]}, {"function_name": "scan", "code": "    protected void scan(File fromDir, File toDir, String[] files, \n                        String[] dirs) {\n        FileNameMapper mapper = null;\n        if (mapperElement != null) {\n            mapper = mapperElement.getImplementation();\n        } else if (flatten) {\n            mapper = new FlatFileNameMapper();\n        } else {\n            mapper = new IdentityMapper();\n        }\n\n        buildMap(fromDir, toDir, files, mapper, fileCopyMap);\n\n        if (includeEmpty) {\n            buildMap(fromDir, toDir, dirs, mapper, dirCopyMap);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [10, 11], [3, 12], [1, 13], [2, 14], [9, 15], [9, 16], [14, 17], [15, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 10], [12, 3], [13, 1], [14, 2], [15, 9], [16, 9], [17, 14], [18, 15], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "buildMap", "code": "    protected void buildMap(File fromDir, File toDir, String[] names,\n                            FileNameMapper mapper, Hashtable map) {\n\n        String[] toCopy = null;\n        if (forceOverwrite) {\n            Vector v = new Vector();\n            for (int i = 0; i < names.length; i++) {\n                if (mapper.mapFileName(names[i]) != null) {\n                    v.addElement(names[i]);\n                }\n            }\n            toCopy = new String[v.size()];\n            v.copyInto(toCopy);\n        } else {\n            SourceFileScanner ds = new SourceFileScanner(this);\n            toCopy = ds.restrict(names, fromDir, toDir, mapper);\n        }\n\n        for (int i = 0; i < toCopy.length; i++) {\n            File src = new File(fromDir, toCopy[i]);\n            File dest = new File(toDir, mapper.mapFileName(toCopy[i])[0]);\n            map.put(src.getAbsolutePath(), dest.getAbsolutePath());", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [2, 12], [2, 13], [2, 14], [3, 15], [1, 16], [1, 17], [2, 18], [2, 19], [2, 20], [13, 21], [16, 22], [16, 23], [10, 24], [11, 25], [18, 26], [12, 27], [13, 28], [14, 29], [24, 30], [20, 31], [28, 32], [13, 33], [32, 34], [32, 35], [30, 36], [28, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 2], [13, 2], [14, 2], [15, 3], [16, 1], [17, 1], [18, 2], [19, 2], [20, 2], [21, 13], [22, 16], [23, 16], [24, 10], [25, 11], [26, 18], [27, 12], [28, 13], [29, 14], [30, 24], [31, 20], [32, 28], [33, 13], [34, 32], [35, 32], [36, 30], [37, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "doFileOperations", "code": "    protected void doFileOperations() {\n        if (fileCopyMap.size() > 0) {\n            log(\"Copying \" + fileCopyMap.size() \n                + \" file\" + (fileCopyMap.size() == 1 ? \"\" : \"s\") \n                + \" to \" + destDir.getAbsolutePath());\n\n            Enumeration e = fileCopyMap.keys();\n            while (e.hasMoreElements()) {\n                String fromFile = (String) e.nextElement();\n                String toFile = (String) fileCopyMap.get(fromFile);\n\n                if (fromFile.equals(toFile)) {\n                    log(\"Skipping self-copy of \" + fromFile, verbosity);\n                    continue;\n                }\n\n                try {\n                    log(\"Copying \" + fromFile + \" to \" + toFile, verbosity);\n\n                    FilterSetCollection executionFilters = \n                        new FilterSetCollection();\n                    if (filtering) {\n                        executionFilters\n                            .addFilterSet(getProject().getGlobalFilterSet());\n                    }\n                    for (Enumeration filterEnum = filterSets.elements(); \n                         filterEnum.hasMoreElements();) {\n                        executionFilters\n                            .addFilterSet((FilterSet) filterEnum.nextElement());\n                    }\n                    fileUtils.copyFile(fromFile, toFile, executionFilters,\n                                       filterChains, forceOverwrite,\n                                       preserveLastModified, encoding,\n                                       getProject());\n                } catch (IOException ioe) {\n                    String msg = \"Failed to copy \" + fromFile + \" to \" + toFile\n                        + \" due to \" + ioe.getMessage();\n                    File targetFile = new File(toFile);\n                    if (targetFile.exists() && !targetFile.delete()) {\n                        msg += \" and I couldn't delete the corrupt \" + toFile;\n                    }\n                    throw new BuildException(msg, ioe, getLocation());\n                }\n            }\n        }\n\n        if (includeEmpty) {\n            Enumeration e = dirCopyMap.elements();\n            int count = 0;\n            while (e.hasMoreElements()) {\n                File d = new File((String) e.nextElement());\n                if (!d.exists()) {\n                    if (!d.mkdirs()) {\n                        log(\"Unable to create directory \" \n                            + d.getAbsolutePath(), Project.MSG_ERR);\n                    } else {\n                        count++;\n                    }\n                }\n            }\n\n            if (count > 0) {\n                log(\"Copied \" + count +\n                    \" empty director\" +\n                    (count == 1 ? \"y\" : \"ies\") +\n                    \" to \" + destDir.getAbsolutePath());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CATCH", "LOOP", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [2, 9], [3, 10], [3, 11], [4, 12], [5, 13], [8, 14], [2, 15], [12, 16], [5, 17], [5, 18], [6, 19], [7, 20], [8, 21], [8, 22], [8, 23], [8, 24], [9, 25], [15, 26], [4, 27], [17, 28], [21, 29], [21, 30], [21, 31], [21, 32], [22, 33], [26, 34], [26, 35], [27, 36], [17, 37], [18, 38], [29, 39], [29, 40], [29, 41], [29, 42], [21, 43], [30, 44], [21, 45], [22, 46], [35, 47], [35, 48], [36, 49], [36, 50], [37, 51], [39, 52], [40, 53], [43, 54], [32, 55], [45, 56], [22, 57], [23, 58], [24, 59], [48, 60], [48, 61], [50, 62], [50, 63], [38, 64], [52, 65], [53, 66], [53, 67], [41, 68], [42, 69], [30, 70], [30, 71], [31, 72], [56, 73], [57, 74], [60, 75], [60, 76], [60, 77], [61, 78], [61, 79], [63, 80], [63, 81], [37, 82], [40, 83], [69, 84], [69, 85], [72, 86], [73, 87], [73, 88], [74, 89], [77, 90], [77, 91], [79, 92], [79, 93], [80, 94], [80, 95], [80, 96], [81, 97], [81, 98], [82, 99], [83, 100], [85, 101], [85, 102], [70, 103], [86, 104], [88, 105], [96, 106], [98, 107], [99, 108], [99, 109], [100, 110], [102, 111], [111, 112], [111, 113], [113, 114], [1, 0], [2, 0], [3, 2], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 2], [10, 3], [11, 3], [12, 4], [13, 5], [14, 8], [15, 2], [16, 12], [17, 5], [18, 5], [19, 6], [20, 7], [21, 8], [22, 8], [23, 8], [24, 8], [25, 9], [26, 15], [27, 4], [28, 17], [29, 21], [30, 21], [31, 21], [32, 21], [33, 22], [34, 26], [35, 26], [36, 27], [37, 17], [38, 18], [39, 29], [40, 29], [41, 29], [42, 29], [43, 21], [44, 30], [45, 21], [46, 22], [47, 35], [48, 35], [49, 36], [50, 36], [51, 37], [52, 39], [53, 40], [54, 43], [55, 32], [56, 45], [57, 22], [58, 23], [59, 24], [60, 48], [61, 48], [62, 50], [63, 50], [64, 38], [65, 52], [66, 53], [67, 53], [68, 41], [69, 42], [70, 30], [71, 30], [72, 31], [73, 56], [74, 57], [75, 60], [76, 60], [77, 60], [78, 61], [79, 61], [80, 63], [81, 63], [82, 37], [83, 40], [84, 69], [85, 69], [86, 72], [87, 73], [88, 73], [89, 74], [90, 77], [91, 77], [92, 79], [93, 79], [94, 80], [95, 80], [96, 80], [97, 81], [98, 81], [99, 82], [100, 83], [101, 85], [102, 85], [103, 70], [104, 86], [105, 88], [106, 96], [107, 98], [108, 99], [109, 99], [110, 100], [111, 102], [112, 111], [113, 111], [114, 113], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114]]}, {"function_name": "Copy", "code": "    public Copy() {\n        fileUtils = FileUtils.newFileUtils();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.5-7306", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/NumberCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.NumberCall", "code": "final class NumberCall extends FunctionCall {\n\n    public NumberCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (argumentCount() > 0) {\n\t    argument().typeCheck(stable);\n\t}\n\treturn _type = Type.Real;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tType targ;\n\t\n\tif (argumentCount() == 0) {\n\t    il.append(methodGen.loadContextNode());\n\t    targ = Type.Node;\n\t}\n\telse {\n\t    final Expression arg = argument();\n\t    arg.translate(classGen, methodGen);\n\t    arg.startResetIterator(classGen, methodGen);\n\t    targ = arg.getType();\n\t}\n\n\tif (!targ.identicalTo(Type.Real)) {\n\t    targ.translateTo(classGen, methodGen, Type.Real);", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (argumentCount() > 0) {\n\t    argument().typeCheck(stable);\n\t}\n\treturn _type = Type.Real;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [5, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 5], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tType targ;\n\t\n\tif (argumentCount() == 0) {\n\t    il.append(methodGen.loadContextNode());\n\t    targ = Type.Node;\n\t}\n\telse {\n\t    final Expression arg = argument();\n\t    arg.translate(classGen, methodGen);\n\t    arg.startResetIterator(classGen, methodGen);\n\t    targ = arg.getType();\n\t}\n\n\tif (!targ.identicalTo(Type.Real)) {\n\t    targ.translateTo(classGen, methodGen, Type.Real);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [8, 10], [8, 11], [4, 12], [1, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [14, 19], [9, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 8], [11, 8], [12, 4], [13, 1], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 14], [20, 9], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "NumberCall", "code": "    public NumberCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.5-5696", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/SheetPropertiesRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.SheetPropertiesRecord", "code": "public class SheetPropertiesRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1044;\n    private  short      field_1_flags;\n    private  BitField   chartTypeManuallyFormatted                  = new BitField(0x1);\n    private  BitField   plotVisibleOnly                             = new BitField(0x2);\n    private  BitField   doNotSizeWithWindow                         = new BitField(0x4);\n    private  BitField   defaultPlotDimensions                       = new BitField(0x8);\n    private  BitField   autoPlotArea                                = new BitField(0x10);\n    private  byte       field_2_empty;\n    public final static byte        EMPTY_NOT_PLOTTED              = 0;\n    public final static byte        EMPTY_ZERO                     = 1;\n    public final static byte        EMPTY_INTERPOLATED             = 2;\n\n\n    public SheetPropertiesRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a SheetProperties record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1044 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public SheetPropertiesRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a SheetProperties record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1044 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public SheetPropertiesRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a SheetProperties record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_flags                  = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_empty                  = data[ pos + 0x2 + offset ];\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[SHTPROPS]\\n\");\n        buffer.append(\"    .flags                = \")\n            .append(\"0x\").append(HexDump.toHex(  getFlags ()))\n            .append(\" (\").append( getFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .chartTypeManuallyFormatted     = \").append(isChartTypeManuallyFormatted()).append('\\n'); \n        buffer.append(\"         .plotVisibleOnly          = \").append(isPlotVisibleOnly()).append('\\n'); \n        buffer.append(\"         .doNotSizeWithWindow      = \").append(isDoNotSizeWithWindow()).append('\\n'); \n        buffer.append(\"         .defaultPlotDimensions     = \").append(isDefaultPlotDimensions()).append('\\n'); \n        buffer.append(\"         .autoPlotArea             = \").append(isAutoPlotArea()).append('\\n'); \n        buffer.append(\"    .empty                = \")\n            .append(\"0x\").append(HexDump.toHex(  getEmpty ()))\n            .append(\" (\").append( getEmpty() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/SHTPROPS]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_flags);\n        data[ 6 + offset + pos ] = field_2_empty;\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2 + 1;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        SheetPropertiesRecord rec = new SheetPropertiesRecord();\n    \n        rec.field_1_flags = field_1_flags;\n        rec.field_2_empty = field_2_empty;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the flags field for the SheetProperties record.\n     */\n    public short getFlags()\n    {\n        return field_1_flags;\n    }\n\n    /**\n     * Set the flags field for the SheetProperties record.\n     */\n    public void setFlags(short field_1_flags)\n    {\n        this.field_1_flags = field_1_flags;\n    }\n\n    /**\n     * Get the empty field for the SheetProperties record.\n     *\n     * @return  One of \n     *        EMPTY_NOT_PLOTTED\n     *        EMPTY_ZERO\n     *        EMPTY_INTERPOLATED\n     */\n    public byte getEmpty()\n    {\n        return field_2_empty;\n    }\n\n    /**\n     * Set the empty field for the SheetProperties record.\n     *\n     * @param field_2_empty\n     *        One of \n     *        EMPTY_NOT_PLOTTED\n     *        EMPTY_ZERO\n     *        EMPTY_INTERPOLATED\n     */\n    public void setEmpty(byte field_2_empty)\n    {\n        this.field_2_empty = field_2_empty;\n    }\n\n    /**\n     * Sets the chart type manually formatted field value.\n     * Has the chart type been manually formatted?\n     */\n    public void setChartTypeManuallyFormatted(boolean value)\n    {\n        field_1_flags = chartTypeManuallyFormatted.setShortBoolean(field_1_flags, value);\n    }\n\n    /**\n     * Has the chart type been manually formatted?\n     * @return  the chart type manually formatted field value.\n     */\n    public boolean isChartTypeManuallyFormatted()\n    {\n        return chartTypeManuallyFormatted.isSet(field_1_flags);\n    }\n\n    /**\n     * Sets the plot visible only field value.\n     * Only show visible cells on the chart.\n     */\n    public void setPlotVisibleOnly(boolean value)\n    {\n        field_1_flags = plotVisibleOnly.setShortBoolean(field_1_flags, value);\n    }\n\n    /**\n     * Only show visible cells on the chart.\n     * @return  the plot visible only field value.\n     */\n    public boolean isPlotVisibleOnly()\n    {\n        return plotVisibleOnly.isSet(field_1_flags);\n    }\n\n    /**\n     * Sets the do not size with window field value.\n     * Do not size the chart when the window changes size\n     */\n    public void setDoNotSizeWithWindow(boolean value)\n    {\n        field_1_flags = doNotSizeWithWindow.setShortBoolean(field_1_flags, value);\n    }\n\n    /**\n     * Do not size the chart when the window changes size\n     * @return  the do not size with window field value.\n     */\n    public boolean isDoNotSizeWithWindow()\n    {\n        return doNotSizeWithWindow.isSet(field_1_flags);\n    }\n\n    /**\n     * Sets the default plot dimensions field value.\n     * Indicates that the default area dimensions should be used.\n     */\n    public void setDefaultPlotDimensions(boolean value)\n    {\n        field_1_flags = defaultPlotDimensions.setShortBoolean(field_1_flags, value);\n    }\n\n    /**\n     * Indicates that the default area dimensions should be used.\n     * @return  the default plot dimensions field value.\n     */\n    public boolean isDefaultPlotDimensions()\n    {\n        return defaultPlotDimensions.isSet(field_1_flags);\n    }\n\n    /**\n     * Sets the auto plot area field value.\n     * ??\n     */\n    public void setAutoPlotArea(boolean value)\n    {\n        field_1_flags = autoPlotArea.setShortBoolean(field_1_flags, value);\n    }\n\n    /**\n     * ??\n     * @return  the auto plot area field value.\n     */\n    public boolean isAutoPlotArea()\n    {\n        return autoPlotArea.isSet(field_1_flags);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a SheetProperties record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_flags                  = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_empty                  = data[ pos + 0x2 + offset ];", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 8], [7, 9], [5, 10], [9, 11], [10, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 1], [9, 7], [10, 5], [11, 9], [12, 10], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[SHTPROPS]\\n\");\n        buffer.append(\"    .flags                = \")\n            .append(\"0x\").append(HexDump.toHex(  getFlags ()))\n            .append(\" (\").append( getFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .chartTypeManuallyFormatted     = \").append(isChartTypeManuallyFormatted()).append('\\n'); \n        buffer.append(\"         .plotVisibleOnly          = \").append(isPlotVisibleOnly()).append('\\n'); \n        buffer.append(\"         .doNotSizeWithWindow      = \").append(isDoNotSizeWithWindow()).append('\\n'); \n        buffer.append(\"         .defaultPlotDimensions     = \").append(isDefaultPlotDimensions()).append('\\n'); \n        buffer.append(\"         .autoPlotArea             = \").append(isAutoPlotArea()).append('\\n'); \n        buffer.append(\"    .empty                = \")\n            .append(\"0x\").append(HexDump.toHex(  getEmpty ()))\n            .append(\" (\").append( getEmpty() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/SHTPROPS]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [4, 15], [5, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [7, 23], [7, 24], [7, 25], [8, 26], [8, 27], [8, 28], [9, 29], [9, 30], [9, 31], [10, 32], [10, 33], [10, 34], [11, 35], [11, 36], [11, 37], [12, 38], [13, 39], [13, 40], [13, 41], [13, 42], [13, 43], [13, 44], [14, 45], [2, 46], [16, 47], [18, 48], [19, 49], [20, 50], [21, 51], [22, 52], [24, 53], [25, 54], [27, 55], [28, 56], [30, 57], [31, 58], [33, 59], [34, 60], [36, 61], [37, 62], [38, 63], [40, 64], [41, 65], [42, 66], [43, 67], [44, 68], [51, 69], [67, 70], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 4], [16, 5], [17, 6], [18, 6], [19, 6], [20, 6], [21, 6], [22, 6], [23, 7], [24, 7], [25, 7], [26, 8], [27, 8], [28, 8], [29, 9], [30, 9], [31, 9], [32, 10], [33, 10], [34, 10], [35, 11], [36, 11], [37, 11], [38, 12], [39, 13], [40, 13], [41, 13], [42, 13], [43, 13], [44, 13], [45, 14], [46, 2], [47, 16], [48, 18], [49, 19], [50, 20], [51, 21], [52, 22], [53, 24], [54, 25], [55, 27], [56, 28], [57, 30], [58, 31], [59, 33], [60, 34], [61, 36], [62, 37], [63, 38], [64, 40], [65, 41], [66, 42], [67, 43], [68, 44], [69, 51], [70, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_flags);\n        data[ 6 + offset + pos ] = field_2_empty;\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [8, 11], [9, 12], [2, 13], [10, 14], [8, 15], [11, 16], [12, 17], [6, 18], [14, 19], [15, 20], [15, 21], [18, 22], [22, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 8], [12, 9], [13, 2], [14, 10], [15, 8], [16, 11], [17, 12], [18, 6], [19, 14], [20, 15], [21, 15], [22, 18], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2 + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        SheetPropertiesRecord rec = new SheetPropertiesRecord();\n    \n        rec.field_1_flags = field_1_flags;\n        rec.field_2_empty = field_2_empty;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getFlags", "code": "    public short getFlags()\n    {\n        return field_1_flags;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFlags", "code": "    public void setFlags(short field_1_flags)\n    {\n        this.field_1_flags = field_1_flags;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEmpty", "code": "    public byte getEmpty()\n    {\n        return field_2_empty;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEmpty", "code": "    public void setEmpty(byte field_2_empty)\n    {\n        this.field_2_empty = field_2_empty;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setChartTypeManuallyFormatted", "code": "    public void setChartTypeManuallyFormatted(boolean value)\n    {\n        field_1_flags = chartTypeManuallyFormatted.setShortBoolean(field_1_flags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isChartTypeManuallyFormatted", "code": "    public boolean isChartTypeManuallyFormatted()\n    {\n        return chartTypeManuallyFormatted.isSet(field_1_flags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPlotVisibleOnly", "code": "    public void setPlotVisibleOnly(boolean value)\n    {\n        field_1_flags = plotVisibleOnly.setShortBoolean(field_1_flags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isPlotVisibleOnly", "code": "    public boolean isPlotVisibleOnly()\n    {\n        return plotVisibleOnly.isSet(field_1_flags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDoNotSizeWithWindow", "code": "    public void setDoNotSizeWithWindow(boolean value)\n    {\n        field_1_flags = doNotSizeWithWindow.setShortBoolean(field_1_flags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDoNotSizeWithWindow", "code": "    public boolean isDoNotSizeWithWindow()\n    {\n        return doNotSizeWithWindow.isSet(field_1_flags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDefaultPlotDimensions", "code": "    public void setDefaultPlotDimensions(boolean value)\n    {\n        field_1_flags = defaultPlotDimensions.setShortBoolean(field_1_flags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDefaultPlotDimensions", "code": "    public boolean isDefaultPlotDimensions()\n    {\n        return defaultPlotDimensions.isSet(field_1_flags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoPlotArea", "code": "    public void setAutoPlotArea(boolean value)\n    {\n        field_1_flags = autoPlotArea.setShortBoolean(field_1_flags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoPlotArea", "code": "    public boolean isAutoPlotArea()\n    {\n        return autoPlotArea.isSet(field_1_flags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SheetPropertiesRecord", "code": "    public SheetPropertiesRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SheetPropertiesRecord", "code": "    public SheetPropertiesRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SheetPropertiesRecord", "code": "    public SheetPropertiesRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.2-1694", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/file/remote/RemoteFileEndpoint.java", "language": "java", "name": "org.apache.camel.component.file.remote.RemoteFileEndpoint", "code": "public abstract class RemoteFileEndpoint<T extends RemoteFileExchange> extends ScheduledPollEndpoint<T> {\n    private RemoteFileBinding binding;\n    private RemoteFileConfiguration configuration;\n\n    public RemoteFileEndpoint(String uri, RemoteFileComponent component, RemoteFileConfiguration configuration) {\n        super(uri, component);\n        this.configuration = configuration;\n    }\n\n    protected RemoteFileBinding createRemoteFileBinding() {\n        return new RemoteFileBinding();\n    }\n\n    public T createExchange() {\n        return (T) new RemoteFileExchange(getContext(), getExchangePattern(), getBinding());\n    }\n\n    public T createExchange(ExchangePattern pattern) {\n        return (T) new RemoteFileExchange(getContext(), pattern, getBinding());\n    }\n\n    public T createExchange(String fullFileName, ByteArrayOutputStream outputStream) {\n        return (T) new RemoteFileExchange(getContext(), getExchangePattern(), getBinding(), getConfiguration().getHost(), fullFileName, outputStream);\n    }\n\n    public RemoteFileBinding getBinding() {\n        if (binding == null) {\n            binding = createRemoteFileBinding();\n        }\n        return binding;\n    }\n\n    public void setBinding(RemoteFileBinding binding) {\n        this.binding = binding;\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public RemoteFileConfiguration getConfiguration() {\n        return configuration;", "functions": [{"function_name": "createRemoteFileBinding", "code": "    protected RemoteFileBinding createRemoteFileBinding() {\n        return new RemoteFileBinding();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExchange", "code": "    public T createExchange() {\n        return (T) new RemoteFileExchange(getContext(), getExchangePattern(), getBinding());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createExchange", "code": "    public T createExchange(ExchangePattern pattern) {\n        return (T) new RemoteFileExchange(getContext(), pattern, getBinding());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createExchange", "code": "    public T createExchange(String fullFileName, ByteArrayOutputStream outputStream) {\n        return (T) new RemoteFileExchange(getContext(), getExchangePattern(), getBinding(), getConfiguration().getHost(), fullFileName, outputStream);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getBinding", "code": "    public RemoteFileBinding getBinding() {\n        if (binding == null) {\n            binding = createRemoteFileBinding();\n        }\n        return binding;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setBinding", "code": "    public void setBinding(RemoteFileBinding binding) {\n        this.binding = binding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConfiguration", "code": "    public RemoteFileConfiguration getConfiguration() {\n        return configuration;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RemoteFileEndpoint", "code": "    public RemoteFileEndpoint(String uri, RemoteFileComponent component, RemoteFileConfiguration configuration) {\n        super(uri, component);\n        this.configuration = configuration;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.7-8457", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/patterns/UnionPattern.java", "language": "java", "name": "org.apache.xpath.patterns.UnionPattern", "code": "public class UnionPattern extends Expression\n{\n    static final long serialVersionUID = -6670449967116905820L;\n\n  /** Array of the contained step patterns to be tested.\n   *  @serial  */\n  private StepPattern[] m_patterns;\n  \n  /**\n   * No arguments to process, so this does nothing.\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    for (int i = 0; i < m_patterns.length; i++) \n    {\n      m_patterns[i].fixupVariables(vars, globalsSize);\n    }\n  }\n\n  \n  /**\n   * Tell if this expression or it's subexpressions can traverse outside \n   * the current subtree.\n   * \n   * @return true if traversal outside the context node's subtree can occur.\n   */\n   public boolean canTraverseOutsideSubtree()\n   {\n     if(null != m_patterns)\n     {\n      int n = m_patterns.length;\n      for (int i = 0; i < n; i++) \n      {\n        if(m_patterns[i].canTraverseOutsideSubtree())\n          return true;\n      }\n     }\n     return false;\n   }\n\n  /**\n   * Set the contained step patterns to be tested. \n   *\n   *\n   * @param patterns the contained step patterns to be tested. \n   */\n  public void setPatterns(StepPattern[] patterns)\n  {\n    m_patterns = patterns;\n    if(null != patterns)\n    {\n    \tfor(int i = 0; i < patterns.length; i++)\n    \t{\n    \t\tpatterns[i].exprSetParent(this);\n    \t}\n    }\n    \n  }\n\n  /**\n   * Get the contained step patterns to be tested. \n   *\n   *\n   * @return an array of the contained step patterns to be tested. \n   */\n  public StepPattern[] getPatterns()\n  {\n    return m_patterns;\n  }\n\n  /**\n   * Test a node to see if it matches any of the patterns in the union.\n   *\n   * @param xctxt XPath runtime context.\n   *\n   * @return {@link org.apache.xpath.patterns.NodeTest#SCORE_NODETEST},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NONE},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_NSWILD},\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_QNAME}, or\n   *         {@link org.apache.xpath.patterns.NodeTest#SCORE_OTHER}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    XObject bestScore = null;\n    int n = m_patterns.length;\n\n    for (int i = 0; i < n; i++)\n    {\n      XObject score = m_patterns[i].execute(xctxt);\n\n      if (score != NodeTest.SCORE_NONE)\n      {\n        if (null == bestScore)\n          bestScore = score;\n        else if (score.num() > bestScore.num())\n          bestScore = score;\n      }\n    }\n\n    if (null == bestScore)\n    {\n      bestScore = NodeTest.SCORE_NONE;\n    }\n\n    return bestScore;\n  }\n  \n  class UnionPathPartOwner implements ExpressionOwner\n  {\n  \tint m_index;\n  \t\n  \tUnionPathPartOwner(int index)\n  \t{\n  \t\tm_index = index;\n  \t}\n  \t\n    /**\n     * @see ExpressionOwner#getExpression()\n     */\n    public Expression getExpression()\n    {\n      return m_patterns[m_index];\n    }\n\n\n    /**\n     * @see ExpressionOwner#setExpression(Expression)\n     */\n    public void setExpression(Expression exp)\n    {\n    \texp.exprSetParent(UnionPattern.this);\n    \tm_patterns[m_index] = (StepPattern)exp;\n    }\n  }\n  \n  /**\n   * @see org.apache.xpath.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitUnionPattern(owner, this);\n  \tif(null != m_patterns)\n  \t{\n  \t\tint n = m_patterns.length;\n  \t\tfor(int i = 0; i < n; i++)\n  \t\t{\n  \t\t\tm_patterns[i].callVisitors(new UnionPathPartOwner(i), visitor);\n  \t\t}\n  \t}\n  }\n  \n  /**\n   * @see Expression#deepEquals(Expression)\n   */\n  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \tUnionPattern up = (UnionPattern)expr;\n  \t\t\n  \tif(null != m_patterns)\n  \t{\n  \t\tint n = m_patterns.length;\n  \t\tif((null == up.m_patterns) || (up.m_patterns.length != n))\n  \t\t\treturn false;\n  \t\t\t\n  \t\tfor(int i = 0; i < n; i++)\n  \t\t{\n  \t\t\tif(!m_patterns[i].deepEquals(up.m_patterns[i]))\n  \t\t\t\treturn false;\n  \t\t}\n  \t}\n  \telse if(up.m_patterns != null)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "functions": [{"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    for (int i = 0; i < m_patterns.length; i++) \n    {\n      m_patterns[i].fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "canTraverseOutsideSubtree", "code": "   public boolean canTraverseOutsideSubtree()\n   {\n     if(null != m_patterns)\n     {\n      int n = m_patterns.length;\n      for (int i = 0; i < n; i++) \n      {\n        if(m_patterns[i].canTraverseOutsideSubtree())\n          return true;\n      }\n     }\n     return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [4, 7], [5, 8], [5, 9], [9, 10], [5, 11], [10, 12], [9, 13], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 4], [8, 5], [9, 5], [10, 9], [11, 5], [12, 10], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setPatterns", "code": "  public void setPatterns(StepPattern[] patterns)\n  {\n    m_patterns = patterns;\n    if(null != patterns)\n    {\n    \tfor(int i = 0; i < patterns.length; i++)\n    \t{\n    \t\tpatterns[i].exprSetParent(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [5, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 5], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getPatterns", "code": "  public StepPattern[] getPatterns()\n  {\n    return m_patterns;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    XObject bestScore = null;\n    int n = m_patterns.length;\n\n    for (int i = 0; i < n; i++)\n    {\n      XObject score = m_patterns[i].execute(xctxt);\n\n      if (score != NodeTest.SCORE_NONE)\n      {\n        if (null == bestScore)\n          bestScore = score;\n        else if (score.num() > bestScore.num())\n          bestScore = score;\n      }\n    }\n\n    if (null == bestScore)\n    {\n      bestScore = NodeTest.SCORE_NONE;\n    }\n\n    return bestScore;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [7, 9], [3, 10], [3, 11], [5, 12], [2, 13], [10, 14], [3, 15], [10, 16], [16, 17], [16, 18], [11, 19], [17, 20], [16, 21], [18, 22], [17, 23], [20, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 7], [10, 3], [11, 3], [12, 5], [13, 2], [14, 10], [15, 3], [16, 10], [17, 16], [18, 16], [19, 11], [20, 17], [21, 16], [22, 18], [23, 17], [24, 20], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitUnionPattern(owner, this);\n  \tif(null != m_patterns)\n  \t{\n  \t\tint n = m_patterns.length;\n  \t\tfor(int i = 0; i < n; i++)\n  \t\t{\n  \t\t\tm_patterns[i].callVisitors(new UnionPathPartOwner(i), visitor);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [4, 8], [6, 9], [6, 10], [6, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 4], [9, 6], [10, 6], [11, 6], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "deepEquals", "code": "  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \tUnionPattern up = (UnionPattern)expr;\n  \t\t\n  \tif(null != m_patterns)\n  \t{\n  \t\tint n = m_patterns.length;\n  \t\tif((null == up.m_patterns) || (up.m_patterns.length != n))\n  \t\t\treturn false;\n  \t\t\t\n  \t\tfor(int i = 0; i < n; i++)\n  \t\t{\n  \t\t\tif(!m_patterns[i].deepEquals(up.m_patterns[i]))\n  \t\t\t\treturn false;\n  \t\t}\n  \t}\n  \telse if(up.m_patterns != null)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "CALL", "RETURN", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [8, 16], [9, 17], [11, 18], [12, 19], [13, 20], [14, 21], [14, 22], [13, 23], [21, 24], [22, 25], [22, 26], [23, 27], [13, 28], [26, 29], [27, 30], [23, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 8], [17, 9], [18, 11], [19, 12], [20, 13], [21, 14], [22, 14], [23, 13], [24, 21], [25, 22], [26, 22], [27, 23], [28, 13], [29, 26], [30, 27], [31, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}], "label": 1}
{"sample_id": "xalan-2.6-7552", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/transformer/TrAXFilter.java", "language": "java", "name": "org.apache.xalan.transformer.TrAXFilter", "code": "public class TrAXFilter extends XMLFilterImpl\n{\n  private Templates m_templates;\n  private TransformerImpl m_transformer;\n    \n  /**\n   * Construct an empty XML filter, with no parent.\n   *\n   * <p>This filter will have no parent: you must assign a parent\n   * before you start a parse or do any configuration with\n   * setFeature or setProperty.</p>\n   *\n   * @see org.xml.sax.XMLReader#setFeature\n   * @see org.xml.sax.XMLReader#setProperty\n   */\n  public TrAXFilter (Templates templates)\n    throws TransformerConfigurationException\n  {\n    m_templates = templates;\n    m_transformer = (TransformerImpl)templates.newTransformer();\n  }\n  \n  /**\n   * Return the Transformer object used for this XML filter.\n   */\n  public TransformerImpl getTransformer()\n  {\n    return m_transformer;\n  }\n  \n  /** Set the parent reader.\n   *\n   * <p>This is the {@link org.xml.sax.XMLReader XMLReader} from which \n   * this filter will obtain its events and to which it will pass its \n   * configuration requests.  The parent may itself be another filter.</p>\n   *\n   * <p>If there is no parent reader set, any attempt to parse\n   * or to set or get a feature or property will fail.</p>\n   *\n   * @param parent The parent XML reader.\n   * @throws java.lang.NullPointerException If the parent is null.\n   */\n  public void setParent (XMLReader parent)\n  { \n    super.setParent(parent);\n    \n    if(null != parent.getContentHandler())\n      this.setContentHandler(parent.getContentHandler());\n\n    setupParse ();\n  }\n  \n  /**\n   * Parse a document.\n   *\n   * @param input The input source for the document entity.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @throws java.io.IOException An IO exception from the parser,\n   *            possibly from a byte stream or character stream\n   *            supplied by the application.\n   * @see org.xml.sax.XMLReader#parse(org.xml.sax.InputSource)\n   */\n  public void parse (InputSource input)\n    throws org.xml.sax.SAXException, IOException\n  {\n    if(null == getParent())\n    {\n      XMLReader reader=null;\n\n      try {\n          javax.xml.parsers.SAXParserFactory factory=\n              javax.xml.parsers.SAXParserFactory.newInstance();\n          factory.setNamespaceAware( true );\n          javax.xml.parsers.SAXParser jaxpParser=\n              factory.newSAXParser();\n          reader=jaxpParser.getXMLReader();\n          \n      } catch( javax.xml.parsers.ParserConfigurationException ex ) {\n          throw new org.xml.sax.SAXException( ex );\n      } catch( javax.xml.parsers.FactoryConfigurationError ex1 ) {\n          throw new org.xml.sax.SAXException( ex1.toString() );\n      } catch( NoSuchMethodError ex2 ) {\n      }\n      catch (AbstractMethodError ame){}\n\n      XMLReader parent;\n      if( reader==null )\n          parent= XMLReaderFactory.createXMLReader();\n      else\n          parent=reader;\n      try\n      {\n             \n      }\n      catch (org.xml.sax.SAXException se){}\n      setParent(parent);\n    }\n    else\n    {\n      setupParse ();\n    }\n    if(null == m_transformer.getContentHandler())\n    {\n    }\n\n    getParent().parse(input);\n    Exception e = m_transformer.getExceptionThrown();\n    if(null != e)\n    {\n      if(e instanceof org.xml.sax.SAXException)\n        throw (org.xml.sax.SAXException)e;\n      else\n        throw new org.xml.sax.SAXException(e);\n    }\n  }\n  \n  /**\n   * Parse a document.\n   *\n   * @param systemId The system identifier as a fully-qualified URI.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @throws java.io.IOException An IO exception from the parser,\n   *            possibly from a byte stream or character stream\n   *            supplied by the application.\n   * @see org.xml.sax.XMLReader#parse(java.lang.String)\n   */\n  public void parse (String systemId)\n    throws org.xml.sax.SAXException, IOException\n  {\n    parse(new InputSource(systemId));\n  }\n\n\n  /**\n   * Set up before a parse.\n   *\n   * <p>Before every parse, check whether the parent is\n   * non-null, and re-register the filter for all of the \n   * events.</p>\n   */\n  private void setupParse ()\n  {\n    XMLReader p = getParent();\n    if (p == null) {\n    }\n    \n    ContentHandler ch = m_transformer.getInputContentHandler();\n    p.setContentHandler(ch);\n    p.setEntityResolver(this);\n    p.setDTDHandler(this);\n    p.setErrorHandler(this);\n  }\n\n  /**\n   * Set the content event handler.\n   *\n   * @param resolver The new content handler.\n   * @throws java.lang.NullPointerException If the handler\n   *            is null.\n   * @see org.xml.sax.XMLReader#setContentHandler\n   */\n  public void setContentHandler (ContentHandler handler)\n  {\n    m_transformer.setContentHandler(handler);\n  }\n  \n  public void setErrorListener (ErrorListener handler)\n  {\n    m_transformer.setErrorListener(handler);", "functions": [{"function_name": "getTransformer", "code": "  public TransformerImpl getTransformer()\n  {\n    return m_transformer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParent", "code": "  public void setParent (XMLReader parent)\n  { \n    super.setParent(parent);\n    \n    if(null != parent.getContentHandler())\n      this.setContentHandler(parent.getContentHandler());\n\n    setupParse ();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "parse", "code": "  public void parse (InputSource input)\n    throws org.xml.sax.SAXException, IOException\n  {\n    if(null == getParent())\n    {\n      XMLReader reader=null;\n\n      try {\n          javax.xml.parsers.SAXParserFactory factory=\n              javax.xml.parsers.SAXParserFactory.newInstance();\n          factory.setNamespaceAware( true );\n          javax.xml.parsers.SAXParser jaxpParser=\n              factory.newSAXParser();\n          reader=jaxpParser.getXMLReader();\n          \n      } catch( javax.xml.parsers.ParserConfigurationException ex ) {\n          throw new org.xml.sax.SAXException( ex );\n      } catch( javax.xml.parsers.FactoryConfigurationError ex1 ) {\n          throw new org.xml.sax.SAXException( ex1.toString() );\n      } catch( NoSuchMethodError ex2 ) {\n      }\n      catch (AbstractMethodError ame){}\n\n      XMLReader parent;\n      if( reader==null )\n          parent= XMLReaderFactory.createXMLReader();\n      else\n          parent=reader;\n      try\n      {\n             \n      }\n      catch (org.xml.sax.SAXException se){}\n      setParent(parent);\n    }\n    else\n    {\n      setupParse ();\n    }\n    if(null == m_transformer.getContentHandler())\n    {\n    }\n\n    getParent().parse(input);\n    Exception e = m_transformer.getExceptionThrown();\n    if(null != e)\n    {\n      if(e instanceof org.xml.sax.SAXException)\n        throw (org.xml.sax.SAXException)e;\n      else\n        throw new org.xml.sax.SAXException(e);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "TRY", "IF", "VAR_DECL", "TRY", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CATCH", "BINARY_OP", "CATCH", "CATCH", "CATCH", "CATCH", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [3, 8], [4, 9], [1, 10], [6, 11], [2, 12], [7, 13], [8, 14], [8, 15], [4, 16], [4, 17], [4, 18], [4, 19], [4, 20], [9, 21], [9, 22], [10, 23], [10, 24], [10, 25], [4, 26], [4, 27], [16, 28], [17, 29], [19, 30], [19, 31], [19, 32], [19, 33], [19, 34], [19, 35], [23, 36], [17, 37], [17, 38], [29, 39], [32, 40], [33, 41], [19, 42], [19, 43], [20, 44], [38, 45], [40, 46], [41, 47], [42, 48], [34, 49], [43, 50], [35, 51], [46, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 3], [9, 4], [10, 1], [11, 6], [12, 2], [13, 7], [14, 8], [15, 8], [16, 4], [17, 4], [18, 4], [19, 4], [20, 4], [21, 9], [22, 9], [23, 10], [24, 10], [25, 10], [26, 4], [27, 4], [28, 16], [29, 17], [30, 19], [31, 19], [32, 19], [33, 19], [34, 19], [35, 19], [36, 23], [37, 17], [38, 17], [39, 29], [40, 32], [41, 33], [42, 19], [43, 19], [44, 20], [45, 38], [46, 40], [47, 41], [48, 42], [49, 34], [50, 43], [51, 35], [52, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "parse", "code": "  public void parse (String systemId)\n    throws org.xml.sax.SAXException, IOException\n  {\n    parse(new InputSource(systemId));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setupParse", "code": "  private void setupParse ()\n  {\n    XMLReader p = getParent();\n    if (p == null) {\n    }\n    \n    ContentHandler ch = m_transformer.getInputContentHandler();\n    p.setContentHandler(ch);\n    p.setEntityResolver(this);\n    p.setDTDHandler(this);\n    p.setErrorHandler(this);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 9], [8, 10], [3, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 1], [10, 8], [11, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setContentHandler", "code": "  public void setContentHandler (ContentHandler handler)\n  {\n    m_transformer.setContentHandler(handler);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorListener", "code": "  public void setErrorListener (ErrorListener handler)\n  {\n    m_transformer.setErrorListener(handler);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TrAXFilter", "code": "  public TrAXFilter (Templates templates)\n    throws TransformerConfigurationException\n  {\n    m_templates = templates;\n    m_transformer = (TransformerImpl)templates.newTransformer();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-2.5-5697", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/BOFRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.BOFRecord", "code": "public class BOFRecord\n    extends Record\n{\n\n    /**\n     * for BIFF8 files the BOF is 0x809.  For earlier versions it was 0x09 or 0x(biffversion)09\n     */\n\n    public final static short sid = 0x809;\n    private short             field_1_version;\n    private short             field_2_type;\n    private short             field_3_build;\n    private short             field_4_year;\n    private int               field_5_history;\n    private int               field_6_rversion;\n\n    /**\n     * suggested default (0x06 - BIFF8)\n     */\n\n    public final static short VERSION             = 0x06;\n\n    /**\n     * suggested default 0x10d3\n     */\n\n    public final static short BUILD               = 0x10d3;\n\n    /**\n     * suggested default  0x07CC (1996)\n     */\n\n\n    /**\n     * suggested default for a normal sheet (0x41)\n     */\n\n    public final static short HISTORY_MASK        = 0x41;\n    public final static short TYPE_WORKBOOK       = 0x05;\n    public final static short TYPE_VB_MODULE      = 0x06;\n    public final static short TYPE_WORKSHEET      = 0x10;\n    public final static short TYPE_CHART          = 0x20;\n    public final static short TYPE_EXCEL_4_MACRO  = 0x40;\n    public final static short TYPE_WORKSPACE_FILE = 0x100;\n\n    /**\n     * Constructs an empty BOFRecord with no fields set.\n     */\n\n    public BOFRecord()\n    {\n    }\n\n    /**\n     * Constructs a BOFRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0x809 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public BOFRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n\n    }\n\n    /**\n     * Constructs a BOFRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0x809 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset the offset of the record's data\n     */\n\n    public BOFRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A BOF RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_version  = LittleEndian.getShort(data, 0 + offset);\n        field_2_type     = LittleEndian.getShort(data, 2 + offset);\n        field_3_build    = LittleEndian.getShort(data, 4 + offset);\n        field_4_year     = LittleEndian.getShort(data, 6 + offset);\n        field_5_history  = LittleEndian.getInt(data, 8 + offset);\n        field_6_rversion = LittleEndian.getInt(data, 12 + offset);\n    }\n\n    /**\n     * Version number - for BIFF8 should be 0x06\n     * @see #VERSION\n     * @param short version to be set\n     */\n\n    public void setVersion(short version)\n    {\n        field_1_version = version;\n    }\n\n    /**\n     * type of object this marks\n     * @see #TYPE_WORKBOOK\n     * @see #TYPE_VB_MODULE\n     * @see #TYPE_WORKSHEET\n     * @see #TYPE_CHART\n     * @see #TYPE_EXCEL_4_MACRO\n     * @see #TYPE_WORKSPACE_FILE\n     * @param short type to be set\n     */\n\n    public void setType(short type)\n    {\n        field_2_type = type;\n    }\n\n    /**\n     * build that wrote this file\n     * @see #BUILD\n     * @param short build number to set\n     */\n\n    public void setBuild(short build)\n    {\n        field_3_build = build;\n    }\n\n    /**\n     * Year of the build that wrote this file\n     * @see #BUILD_YEAR\n     * @param short build year to set\n     */\n\n    public void setBuildYear(short year)\n    {\n        field_4_year = year;\n    }\n\n    /**\n     * set the history bit mask (not very useful)\n     * @see #HISTORY_MASK\n     * @param int bitmask to set for the history\n     */\n\n    public void setHistoryBitMask(int bitmask)\n    {\n        field_5_history = bitmask;\n    }\n\n    /**\n     * set the minimum version required to read this file\n     *\n     * @see #VERSION\n     * @param int version to set\n     */\n\n    public void setRequiredVersion(int version)\n    {\n        field_6_rversion = version;\n    }\n\n    /**\n     * Version number - for BIFF8 should be 0x06\n     * @see #VERSION\n     * @return short version number of the generator of this file\n     */\n\n    public short getVersion()\n    {\n        return field_1_version;\n    }\n\n    /**\n     * type of object this marks\n     * @see #TYPE_WORKBOOK\n     * @see #TYPE_VB_MODULE\n     * @see #TYPE_WORKSHEET\n     * @see #TYPE_CHART\n     * @see #TYPE_EXCEL_4_MACRO\n     * @see #TYPE_WORKSPACE_FILE\n     * @return short type of object\n     */\n\n    public short getType()\n    {\n        return field_2_type;\n    }\n\n    /**\n     * get the build that wrote this file\n     * @see #BUILD\n     * @return short build number of the generator of this file\n     */\n\n    public short getBuild()\n    {\n        return field_3_build;\n    }\n\n    /**\n     * Year of the build that wrote this file\n     * @see #BUILD_YEAR\n     * @return short build year of the generator of this file\n     */\n\n    public short getBuildYear()\n    {\n        return field_4_year;\n    }\n\n    /**\n     * get the history bit mask (not very useful)\n     * @see #HISTORY_MASK\n     * @return int bitmask showing the history of the file (who cares!)\n     */\n\n    public int getHistoryBitMask()\n    {\n        return field_5_history;\n    }\n\n    /**\n     * get the minimum version required to read this file\n     *\n     * @see #VERSION\n     * @return int least version that can read the file\n     */\n\n    public int getRequiredVersion()\n    {\n        return field_6_rversion;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[BOF RECORD]\\n\");\n        buffer.append(\"    .version         = \")\n            .append(Integer.toHexString(getVersion())).append(\"\\n\");\n        buffer.append(\"    .type            = \")\n            .append(Integer.toHexString(getType())).append(\"\\n\");\n        buffer.append(\"    .build           = \")\n            .append(Integer.toHexString(getBuild())).append(\"\\n\");\n        buffer.append(\"    .buildyear       = \").append(getBuildYear())\n            .append(\"\\n\");\n        buffer.append(\"    .history         = \")\n            .append(Integer.toHexString(getHistoryBitMask())).append(\"\\n\");\n        buffer.append(\"    .requiredversion = \")\n            .append(Integer.toHexString(getRequiredVersion())).append(\"\\n\");\n        buffer.append(\"[/BOF RECORD]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getVersion());\n        LittleEndian.putShort(data, 6 + offset, getType());\n        LittleEndian.putShort(data, 8 + offset, getBuild());\n        LittleEndian.putShort(data, 10 + offset, getBuildYear());\n        LittleEndian.putInt(data, 12 + offset, getHistoryBitMask());\n        LittleEndian.putInt(data, 16 + offset, getRequiredVersion());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 20;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      BOFRecord rec = new BOFRecord();\n      rec.field_1_version = field_1_version;\n      rec.field_2_type = field_2_type;\n      rec.field_3_build = field_3_build;\n      rec.field_4_year = field_4_year;\n      rec.field_5_history = field_5_history;\n      rec.field_6_rversion = field_6_rversion;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A BOF RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_version  = LittleEndian.getShort(data, 0 + offset);\n        field_2_type     = LittleEndian.getShort(data, 2 + offset);\n        field_3_build    = LittleEndian.getShort(data, 4 + offset);\n        field_4_year     = LittleEndian.getShort(data, 6 + offset);\n        field_5_history  = LittleEndian.getInt(data, 8 + offset);\n        field_6_rversion = LittleEndian.getInt(data, 12 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [18, 24], [19, 25], [20, 26], [21, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 18], [25, 19], [26, 20], [27, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "setVersion", "code": "    public void setVersion(short version)\n    {\n        field_1_version = version;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setType", "code": "    public void setType(short type)\n    {\n        field_2_type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBuild", "code": "    public void setBuild(short build)\n    {\n        field_3_build = build;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBuildYear", "code": "    public void setBuildYear(short year)\n    {\n        field_4_year = year;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHistoryBitMask", "code": "    public void setHistoryBitMask(int bitmask)\n    {\n        field_5_history = bitmask;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRequiredVersion", "code": "    public void setRequiredVersion(int version)\n    {\n        field_6_rversion = version;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVersion", "code": "    public short getVersion()\n    {\n        return field_1_version;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public short getType()\n    {\n        return field_2_type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBuild", "code": "    public short getBuild()\n    {\n        return field_3_build;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBuildYear", "code": "    public short getBuildYear()\n    {\n        return field_4_year;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHistoryBitMask", "code": "    public int getHistoryBitMask()\n    {\n        return field_5_history;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRequiredVersion", "code": "    public int getRequiredVersion()\n    {\n        return field_6_rversion;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[BOF RECORD]\\n\");\n        buffer.append(\"    .version         = \")\n            .append(Integer.toHexString(getVersion())).append(\"\\n\");\n        buffer.append(\"    .type            = \")\n            .append(Integer.toHexString(getType())).append(\"\\n\");\n        buffer.append(\"    .build           = \")\n            .append(Integer.toHexString(getBuild())).append(\"\\n\");\n        buffer.append(\"    .buildyear       = \").append(getBuildYear())\n            .append(\"\\n\");\n        buffer.append(\"    .history         = \")\n            .append(Integer.toHexString(getHistoryBitMask())).append(\"\\n\");\n        buffer.append(\"    .requiredversion = \")\n            .append(Integer.toHexString(getRequiredVersion())).append(\"\\n\");\n        buffer.append(\"[/BOF RECORD]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [4, 12], [5, 13], [5, 14], [5, 15], [6, 16], [6, 17], [6, 18], [7, 19], [7, 20], [7, 21], [8, 22], [8, 23], [8, 24], [9, 25], [9, 26], [9, 27], [10, 28], [10, 29], [10, 30], [11, 31], [2, 32], [14, 33], [15, 34], [17, 35], [18, 36], [20, 37], [21, 38], [23, 39], [24, 40], [26, 41], [27, 42], [29, 43], [30, 44], [34, 45], [36, 46], [40, 47], [42, 48], [44, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 4], [13, 5], [14, 5], [15, 5], [16, 6], [17, 6], [18, 6], [19, 7], [20, 7], [21, 7], [22, 8], [23, 8], [24, 8], [25, 9], [26, 9], [27, 9], [28, 10], [29, 10], [30, 10], [31, 11], [32, 2], [33, 14], [34, 15], [35, 17], [36, 18], [37, 20], [38, 21], [39, 23], [40, 24], [41, 26], [42, 27], [43, 29], [44, 30], [45, 34], [46, 36], [47, 40], [48, 42], [49, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getVersion());\n        LittleEndian.putShort(data, 6 + offset, getType());\n        LittleEndian.putShort(data, 8 + offset, getBuild());\n        LittleEndian.putShort(data, 10 + offset, getBuildYear());\n        LittleEndian.putInt(data, 12 + offset, getHistoryBitMask());\n        LittleEndian.putInt(data, 16 + offset, getRequiredVersion());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [5, 13], [5, 14], [6, 15], [6, 16], [7, 17], [7, 18], [8, 19], [8, 20], [9, 21], [9, 22], [10, 23], [10, 24], [11, 25], [12, 26], [14, 27], [16, 28], [18, 29], [20, 30], [22, 31], [24, 32], [25, 33], [26, 34], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 5], [14, 5], [15, 6], [16, 6], [17, 7], [18, 7], [19, 8], [20, 8], [21, 9], [22, 9], [23, 10], [24, 10], [25, 11], [26, 12], [27, 14], [28, 16], [29, 18], [30, 20], [31, 22], [32, 24], [33, 25], [34, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 20;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      BOFRecord rec = new BOFRecord();\n      rec.field_1_version = field_1_version;\n      rec.field_2_type = field_2_type;\n      rec.field_3_build = field_3_build;\n      rec.field_4_year = field_4_year;\n      rec.field_5_history = field_5_history;\n      rec.field_6_rversion = field_6_rversion;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "BOFRecord", "code": "    public BOFRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "BOFRecord", "code": "    public BOFRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BOFRecord", "code": "    public BOFRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-4.3-4545", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/pluginmgr/ManagePanel.java", "language": "java", "name": "org.gjt.sp.jedit.pluginmgr.ManagePanel", "code": "public class ManagePanel extends JPanel\n{\n\t//{{{ Private members\n\tprivate final JCheckBox hideLibraries;\n\tprivate final JTable table;\n\tprivate final JScrollPane scrollpane;\n\tprivate final PluginDetailPanel pluginDetailPanel;\n\tprivate final PluginTableModel pluginModel;\n\tprivate final PluginManager window;\n\tprivate JPopupMenu popup;\n\tprivate Set<String> selectedPlugins;\n\tprivate Set<String> jarNames;\n\t//}}}\n\n\t//{{{ ManagePanel constructor\n\tpublic ManagePanel(PluginManager window)\n\t{\n\t\tsuper(new BorderLayout(12,12));\n\n\t\tthis.window = window;\n\n\t\tsetBorder(new EmptyBorder(12,12,12,12));\n\n\t\tBox topBox = new Box(BoxLayout.X_AXIS);\n\t\ttopBox.add(hideLibraries = new HideLibrariesButton());\n\t\tadd(BorderLayout.NORTH,topBox);\n\n\t\t/* Create the plugin table */\n\t\ttable = new JTable(pluginModel = new PluginTableModel());\n\t\ttable.setShowGrid(false);\n\t\ttable.setIntercellSpacing(new Dimension(0,0));\n\t\ttable.setRowHeight(table.getRowHeight() + 2);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(500,300));\n\t\ttable.setDefaultRenderer(Object.class, new TextRenderer(\n\t\t\t(DefaultTableCellRenderer)table.getDefaultRenderer(Object.class)));\n\t\ttable.addFocusListener(new TableFocusHandler());\n\t\ttable.getSelectionModel().addListSelectionListener(new TableSelectionListener());\n\t\tInputMap tableInputMap = table.getInputMap(JComponent.WHEN_FOCUSED);\n\t\tActionMap tableActionMap = table.getActionMap();\n\t\ttableInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,0),\"tabOutForward\");\n\t\ttableActionMap.put(\"tabOutForward\",new KeyboardAction(KeyboardCommand.TAB_OUT_FORWARD));\n\t\ttableInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,InputEvent.SHIFT_MASK),\"tabOutBack\");\n\t\ttableActionMap.put(\"tabOutBack\",new KeyboardAction(KeyboardCommand.TAB_OUT_BACK));\n\t\ttableInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE,0),\"editPlugin\");\n\t\ttableActionMap.put(\"editPlugin\",new KeyboardAction(KeyboardCommand.EDIT_PLUGIN));\n\t\ttableInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0),\"closePluginManager\");\n\t\ttableActionMap.put(\"closePluginManager\",new KeyboardAction(KeyboardCommand.CLOSE_PLUGIN_MANAGER));\n\n\t\tTableColumn col1 = table.getColumnModel().getColumn(0);\n\t\tTableColumn col2 = table.getColumnModel().getColumn(1);\n\t\tTableColumn col3 = table.getColumnModel().getColumn(2);\n\t\tTableColumn col4 = table.getColumnModel().getColumn(3);\n\n\t\tcol1.setPreferredWidth(30);\n\t\tcol1.setMinWidth(30);\n\t\tcol1.setMaxWidth(30);\n\t\tcol1.setResizable(false);\n\n\t\tcol2.setPreferredWidth(300);\n\t\tcol3.setPreferredWidth(100);\n\t\tcol4.setPreferredWidth(100);\n\n\t\tJTableHeader header = table.getTableHeader();\n\t\theader.setReorderingAllowed(false);\n\t\tHeaderMouseHandler mouseHandler = new HeaderMouseHandler();\n\t\theader.addMouseListener(mouseHandler);\n\t\ttable.addMouseListener(mouseHandler);\n\t\tscrollpane = new JScrollPane(table);\n\t\tscrollpane.getViewport().setBackground(table.getBackground());\n\t\tpluginDetailPanel = new PluginDetailPanel();\n\t\tscrollpane.setPreferredSize(new Dimension(400,400));\n\t\tJSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT,\n\t\t\ttrue, scrollpane, pluginDetailPanel);\n\t\tadd(BorderLayout.CENTER, split);\n\t\tsplit.setResizeWeight(0.75);\n\t\t/* Create button panel */\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\n\t\tbuttons.add(new RemoveButton());\n\t\tbuttons.add(new SaveButton());\n\t\tbuttons.add(new RestoreButton());\n\t\tbuttons.add(new FindOrphan());\n\t\tbuttons.add(Box.createGlue());\n\t\tbuttons.add(new HelpButton());\n\n\t\tadd(BorderLayout.SOUTH,buttons);\n\n\t\tpluginModel.update();\n\t} //}}}\n\n\t//{{{ update() method\n\tpublic void update()\n\t{\n\t\tpluginModel.update();\n\t} //}}}\n\n\t// {{{ class ManagePanelRestoreHandler\n\t/**\n\t * For handling the XML parse events of a plugin set.\n\t * Selects the same plugins that are in that set.\n\t * @since jEdit 4.3pre10\n\t */\n\tprivate class ManagePanelRestoreHandler extends DefaultHandler\n\t{\n\t\tManagePanelRestoreHandler()\n\t\t{\n\t\t\tselectedPlugins = new HashSet<String>();\n\t\t\tjarNames = new HashSet<String>();\n\t\t}\n\n\n\n\t\t@Override\n\t\tpublic void startElement(String uri, String localName,\n\t\t\t\t\t\t\tString qName, Attributes attrs) throws SAXException\n\t\t{\n\t\t\tif (localName.equals(\"plugin\"))\n\t\t\t{\n\t\t\t\tString jarName = attrs.getValue(\"jar\");\n\t\t\t\tString name = attrs.getValue(\"name\");\n\t\t\t\tEntry e = new Entry(jarName);\n\t\t\t\te.name=name;\n\t\t\t\tselectedPlugins.add(name);\n\t\t\t\tjarNames.add(jarName);\n\t\t\t}\n\t\t}\n\t}//}}}\n\n\t//{{{ loadPluginSet() method\n\tboolean loadPluginSet(String path)\n\t{\n\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\tObject session = vfs.createVFSSession(path, this);\n\t\ttry\n\t\t{\n\t\t\tInputStream is = vfs._createInputStream(session, path, false, this);\n\t\t\tXMLUtilities.parseXML(is, new ManagePanelRestoreHandler());\n\t\t\tis.close();\n\t\t\tint rowCount = pluginModel.getRowCount();\n\t\t\tfor (int i=0 ; i<rowCount ; i++)\n\t\t\t{\n\t\t\t\tEntry ent = pluginModel.getEntry(i);\n\t\t\t\tString name = ent.name;\n\t\t\t\tif (name != null)\n\t\t\t\t{\n\t\t\t\t\tpluginModel.setValueAt(selectedPlugins.contains(name), i, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString jarPath = ent.jar;\n\t\t\t\t\tString jarName = jarPath.substring(1 + jarPath.lastIndexOf(File.separatorChar));\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tpluginModel.setValueAt(jarNames.contains(jarName), i, 0);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.log(Log.WARNING, this, \"Exception thrown loading: \" + jarName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR, this, \"Loading Pluginset Error\", e);\n\t\t\treturn false;\n\t\t}\n\t\tpluginModel.update();\n\t\treturn true;\n\t}//}}}\n\n\t//{{{ getDeclaredJars() method\n\t/**\n\t * Returns a collection of declared jars in the plugin.\n\t * If the plugin is loaded use {@link org.gjt.sp.jedit.PluginJAR#getRequiredJars()}\n\t * instead\n\t *\n\t * @param jarName the jar name of the plugin\n\t * @return a collection containing jars path\n\t * @throws IOException if jEdit cannot generate cache\n\t * @since jEdit 4.3pre12\n\t */\n\tprivate static Collection<String> getDeclaredJars(String jarName) throws IOException\n\t{\n\t\tCollection<String> jarList = new ArrayList<String>();\n\t\tPluginJAR pluginJAR = new PluginJAR(new File(jarName));\n\t\tPluginJAR.PluginCacheEntry pluginCacheEntry = PluginJAR.getPluginCache(pluginJAR);\n\t\tif (pluginCacheEntry == null)\n\t\t{\n\t\t\tpluginCacheEntry = pluginJAR.generateCache();\n\t\t}\n\t\tProperties cachedProperties = pluginCacheEntry.cachedProperties;\n\n\t\tString jars = cachedProperties.getProperty(\"plugin.\" + pluginCacheEntry.pluginClass + \".jars\");\n\n\t\tif (jars != null)\n\t\t{\n\t\t\tString dir = MiscUtilities.getParentOfPath(pluginJAR.getPath());\n\t\t\tStringTokenizer st = new StringTokenizer(jars);\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tString _jarPath = MiscUtilities.constructPath(dir, st.nextToken());\n\t\t\t\tif (new File(_jarPath).exists())\n\t\t\t\t\tjarList.add(_jarPath);\n\t\t\t}\n\t\t}\n\t\tjarList.add(jarName);\n\t\treturn jarList;\n\t}//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ KeyboardCommand enum\n\tprivate enum KeyboardCommand\n\t{\n\t\tNONE,\n\t\tTAB_OUT_FORWARD,\n\t\tTAB_OUT_BACK,\n\t\tEDIT_PLUGIN,\n\t\tCLOSE_PLUGIN_MANAGER\n\t} //}}}\n\n\t//{{{ Entry class\n\tstatic class Entry\n\t{\n\t\tstatic final String ERROR = \"error\";\n\t\tstatic final String LOADED = \"loaded\";\n\t\tstatic final String NOT_LOADED = \"not-loaded\";\n\n\t\tfinal String status;\n\t\t/** The jar path. */\n\t\tfinal String jar;\n\n\t\tString clazz, name, version, author, docs;\n\t\t/** The description property of the plugin. */\n\t\tString description;\n\t\tEditPlugin plugin;\n\t\t/**\n\t\t * The jars referenced in the props file of the plugin.\n\t\t * plugin.clazz.jars property and\n\t\t * plugin.clazz.files property\n\t\t */\n\t\tfinal List<String> jars;\n\n\t\t/** The data size. */\n\t\tString dataSize;\n\n\t\t/**\n\t\t * Constructor used for jars that aren't loaded.\n\t\t *\n\t\t * @param jar jar file name\n\t\t */\n\t\tEntry(String jar)\n\t\t{\n\t\t\tjars = new LinkedList<String>();\n\t\t\tthis.jar = jar;\n\t\t\tjars.add(this.jar);\n\t\t\tstatus = NOT_LOADED;\n\t\t}\n\n\t\t/**\n\t\t * Constructor used for loaded jars.\n\t\t *\n\t\t * @param jar the pluginJar\n\t\t */\n\t\tEntry(PluginJAR jar)\n\t\t{\n\t\t\tjars = new LinkedList<String>();\n\t\t\tthis.jar = jar.getPath();\n\t\t\tjars.add(this.jar);\n\n\t\t\tplugin = jar.getPlugin();\n\t\t\tif(plugin != null)\n\t\t\t{\n\t\t\t\tstatus = plugin instanceof EditPlugin.Broken\n\t\t\t\t\t? ERROR : LOADED;\n\t\t\t\tclazz = plugin.getClassName();\n\t\t\t\tname = jEdit.getProperty(\"plugin.\"+clazz+\".name\");\n\t\t\t\tversion = jEdit.getProperty(\"plugin.\"+clazz+\".version\");\n\t\t\t\tauthor = jEdit.getProperty(\"plugin.\"+clazz+\".author\");\n\t\t\t\tdocs = jEdit.getProperty(\"plugin.\"+clazz+\".docs\");\n\t\t\t\tdescription = jEdit.getProperty(\"plugin.\"+clazz+\".description\");\n\t\t\t\tString jarsProp = jEdit.getProperty(\"plugin.\"+clazz+\".jars\");\n\n\t\t\t\tif(jarsProp != null)\n\t\t\t\t{\n\t\t\t\t\tString directory = MiscUtilities.getParentOfPath(this.jar);\n\n\t\t\t\t\tStringTokenizer st = new StringTokenizer(jarsProp);\n\t\t\t\t\twhile(st.hasMoreElements())\n\t\t\t\t\t{\n\t\t\t\t\t\tjars.add(MiscUtilities.constructPath(\n\t\t\t\t\t\t\tdirectory,st.nextToken()));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString filesProp = jEdit.getProperty(\"plugin.\"+clazz+\".files\");\n\n\t\t\t\tif(filesProp != null)\n\t\t\t\t{\n\t\t\t\t\tString directory = MiscUtilities.getParentOfPath(this.jar);\n\n\t\t\t\t\tStringTokenizer st = new StringTokenizer(filesProp);\n\t\t\t\t\twhile(st.hasMoreElements())\n\t\t\t\t\t{\n\t\t\t\t\t\tjars.add(MiscUtilities.constructPath(\n\t\t\t\t\t\t\tdirectory,st.nextToken()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstatus = LOADED;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ PluginTableModel class\n\tprivate class PluginTableModel extends AbstractTableModel\n\t{\n\t\tprivate final List<Entry> entries;\n\t\tprivate int sortType = EntryCompare.NAME;\n\t\tprivate ConcurrentHashMap<String, Object> unloaded;\n\t\t// private HashSet<String> unloaded;\n\n\t\t//{{{ Constructor\n\t\tPluginTableModel()\n\t\t{\n\t\t\tentries = new ArrayList<Entry>();\n\t\t} //}}}\n\n\t\t//{{{ getColumnCount() method\n\t\tpublic int getColumnCount()\n\t\t{\n\t\t\treturn 5;\n\t\t} //}}}\n\n\t\t//{{{ getColumnClass() method\n\t\t@Override\n\t\tpublic Class getColumnClass(int columnIndex)\n\t\t{\n\t\t\tswitch (columnIndex)\n\t\t\t{\n\t\t\t\tcase 0: return Boolean.class;\n\t\t\t\tdefault: return Object.class;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ getColumnName() method\n\t\t@Override\n\t\tpublic String getColumnName(int column)\n\t\t{\n\t\t\tswitch (column)\n\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\treturn \" \";\n\t\t\t\tcase 1:\n\t\t\t\t\treturn jEdit.getProperty(\"manage-plugins.info.name\");\n\t\t\t\tcase 2:\n\t\t\t\t\treturn jEdit.getProperty(\"manage-plugins.info.version\");\n\t\t\t\tcase 3:\n\t\t\t\t\treturn jEdit.getProperty(\"manage-plugins.info.status\");\n\t\t\t\tcase 4:\n\t\t\t\t\treturn jEdit.getProperty(\"manage-plugins.info.data\");\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new Error(\"Column out of range\");\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ getEntry() method\n\t\tpublic Entry getEntry(int rowIndex)\n\t\t{\n\t\t\treturn entries.get(rowIndex);\n\t\t} //}}}\n\n\t\t//{{{ getRowCount() method\n\t\tpublic int getRowCount()\n\t\t{\n\t\t\treturn entries.size();\n\t\t} //}}}\n\n\t\t//{{{ getValueAt() method\n\t\tpublic Object getValueAt(int rowIndex,int columnIndex)\n\t\t{\n\t\t\tEntry entry = entries.get(rowIndex);\n\t\t\tswitch (columnIndex)\n\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\treturn Boolean.valueOf(!entry.status.equals(Entry.NOT_LOADED));\n\t\t\t\tcase 1:\n\t\t\t\t\tif(entry.name == null)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn MiscUtilities.getFileName(entry.jar);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\treturn entry.name;\n\t\t\t\t\t}\n\t\t\t\tcase 2:\n\t\t\t\t\treturn entry.version;\n\t\t\t\tcase 3:\n\t\t\t\t\treturn jEdit.getProperty(\"plugin-manager.status.\" + entry.status);\n\t\t\t\tcase 4:\n\t\t\t\t\tif (entry.dataSize == null && entry.plugin != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tFile pluginDirectory = entry.plugin.getPluginHome();\n\t\t\t\t\t\tif (null == pluginDirectory)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (pluginDirectory.exists())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tentry.dataSize = MiscUtilities.formatFileSize(IOUtilities.fileLength(pluginDirectory));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (jEdit.getBooleanProperty(\"plugin.\" + entry.clazz + \".usePluginHome\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tentry.dataSize = MiscUtilities.formatFileSize(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tentry.dataSize = jEdit.getProperty(\"manage-plugins.data-size.unknown\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn entry.dataSize;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new Error(\"Column out of range\");\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ isCellEditable() method\n\t\t@Override\n\t\tpublic boolean isCellEditable(int rowIndex, int columnIndex)\n\t\t{\n\t\t\treturn columnIndex == 0;\n\t\t} //}}}\n\n\t\t//{{{ setValueAt() method\n\t\t@Override\n\t\tpublic void setValueAt(Object value, int rowIndex,\n\t\t\tint columnIndex)\n\t\t{\n\t\t\tEntry entry = entries.get(rowIndex);\n\t\t\tif(columnIndex == 0)\n\t\t\t{\n\t\t\t\tPluginJAR jar = jEdit.getPluginJAR(entry.jar);\n\t\t\t\tif(jar == null)\n\t\t\t\t{\n\t\t\t\t\tif(value.equals(Boolean.FALSE))\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\tPluginJAR.load(entry.jar, true);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(value.equals(Boolean.TRUE))\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\tunloadPluginJARWithDialog(jar);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tupdate();\n\t\t} //}}}\n\n\t\t//{{{ setSortType() method\n\t\tpublic void setSortType(int type)\n\t\t{\n\t\t\tsortType = type;\n\t\t\tsort(type);\n\t\t} //}}}\n\n\t\t//{{{ sort() method\n\t\tpublic void sort(int type)\n\t\t{\n\t\t\tList<String> savedSelection = new ArrayList<String>();\n\t\t\tsaveSelection(savedSelection);\n\t\t\tCollections.sort(entries,new EntryCompare(type));\n\t\t\tfireTableChanged(new TableModelEvent(this));\n\t\t\trestoreSelection(savedSelection);\n\t\t}\n\t\t//}}}\n\n\t\t//{{{ update() method\n\t\tpublic void update()\n\t\t{\n\t\t\tList<String> savedSelection = new ArrayList<String>();\n\t\t\tsaveSelection(savedSelection);\n\t\t\tentries.clear();\n\n\t\t\tString systemJarDir = MiscUtilities.constructPath(\n\t\t\t\tjEdit.getJEditHome(),\"jars\");\n\t\t\tString userJarDir;\n\t\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\t\tif(settingsDirectory == null)\n\t\t\t\tuserJarDir = null;\n\t\t\telse\n\t\t\t{\n\t\t\t\tuserJarDir = MiscUtilities.constructPath(\n\t\t\t\t\tsettingsDirectory,\"jars\");\n\t\t\t}\n\n\t\t\tPluginJAR[] plugins = jEdit.getPluginJARs();\n\t\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t\t{\n\t\t\t\tString path = plugins[i].getPath();\n\t\t\t\tif(path.startsWith(systemJarDir)\n\t\t\t\t\t|| (userJarDir != null\n\t\t\t\t\t&& path.startsWith(userJarDir)))\n\t\t\t\t{\n\t\t\t\t\tEntry e = new Entry(plugins[i]);\n\t\t\t\t\tif(!hideLibraries.isSelected()\n\t\t\t\t\t\t|| e.clazz != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tentries.add(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString[] newPlugins = jEdit.getNotLoadedPluginJARs();\n\t\t\tfor(int i = 0; i < newPlugins.length; i++)\n\t\t\t{\n\t\t\t\tEntry e = new Entry(newPlugins[i]);\n\t\t\t\tentries.add(e);\n\t\t\t}\n\n\t\t\tsort(sortType);\n\t\t\trestoreSelection(savedSelection);\n\t\t} //}}}\n\n\t\t//{{{ unloadPluginJARWithDialog() method\n\t\t// Perhaps this should also be moved to PluginJAR class?\n\t\tprivate void unloadPluginJARWithDialog(PluginJAR jar)\n\t\t{\n\t\t\t// unloaded = new HashSet<String>();\n\t\t\tunloaded = new ConcurrentHashMap<String, Object>();\n\t\t\tString[] dependents = jar.getDependentPlugins();\n\t\t\tif(dependents.length == 0)\n\t\t\t\tunloadPluginJAR(jar);\n\t\t\telse\n\t\t\t{\n\t\t\t\tList<String> closureSet = new LinkedList<String>();\n\t\t\t\tPluginJAR.transitiveClosure(dependents, closureSet);\n\t\t\t\tList<String> listModel = new ArrayList<String>();\n\t\t\t\tlistModel.addAll(closureSet);\n\t\t\t\tCollections.sort(listModel, new StandardUtilities.StringCompare<String>(true));\n\n\t\t\t\tint button = GUIUtilities.listConfirm(window,\"plugin-manager.dependency\",\n\t\t\t\t\tnew String[] { jar.getFile().getName() }, listModel.toArray());\n\t\t\t\tif(button == JOptionPane.YES_OPTION)\n\t\t\t\t\tunloadPluginJAR(jar);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ unloadPluginJAR() method\n\t\tprivate void unloadPluginJAR(PluginJAR jar)\n\t\t{\n\t\t\tString[] dependents = jar.getDependentPlugins();\n\t\t\tfor (String dependent : dependents)\n\t\t\t{\n\t\t\t\tif (!unloaded.containsKey(dependent))\n\t\t\t\t{\n\t\t\t\t\tunloaded.put(dependent, Boolean.TRUE);\n\t\t\t\t\tPluginJAR _jar = jEdit.getPluginJAR(dependent);\n\t\t\t\t\tif(_jar != null)\n\t\t\t\t\t\tunloadPluginJAR(_jar);\n\t\t\t\t}\n\t\t\t}\n\t\t\tjEdit.removePluginJAR(jar,false);\n\t\t\tjEdit.setBooleanProperty(\"plugin-blacklist.\"+MiscUtilities.getFileName(jar.getPath()),true);\n\t\t} //}}}\n\n\t\t//{{{ saveSelection() method\n\t\t/**\n\t\t * Save the selection in the given list.\n\t\t * The list will be filled with the jar names of the selected entries\n\t\t *\n\t\t * @param savedSelection the list where to save the selection\n\t\t */\n\t\tpublic void saveSelection(List<String> savedSelection)\n\t\t{\n\t\t\tif (table != null)\n\t\t\t{\n\t\t\t\tint[] rows = table.getSelectedRows();\n\t\t\t\tfor (int i=0 ; i<rows.length ; i++)\n\t\t\t\t{\n\t\t\t\t\tsavedSelection.add(entries.get(rows[i]).jar);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ restoreSelection() method\n\t\t/**\n\t\t * Restore the selection.\n\t\t *\n\t\t * @param savedSelection the selection list that contains the jar names of the selected items\n\t\t */\n\t\tpublic void restoreSelection(List<String> savedSelection)\n\t\t{\n\t\t\tif (null != table)\n\t\t\t{\n\t\t\t\ttable.setColumnSelectionInterval(0,0);\n\t\t\t\tif (!savedSelection.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tint i = 0;\n\t\t\t\t\tint rowCount = getRowCount();\n\t\t\t\t\tfor ( ; i<rowCount ; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (savedSelection.contains(entries.get(i).jar))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttable.setRowSelectionInterval(i,i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tListSelectionModel lsm = table.getSelectionModel();\n\t\t\t\t\tfor ( ; i<rowCount ; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (savedSelection.contains(entries.get(i).jar))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlsm.addSelectionInterval(i,i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (table.getRowCount() != 0)\n\t\t\t\t\t\ttable.setRowSelectionInterval(0,0);\n\t\t\t\t\tJScrollBar scrollbar = scrollpane.getVerticalScrollBar();\n\t\t\t\t\tscrollbar.setValue(scrollbar.getMinimum());\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ TextRenderer class\n\tprivate class TextRenderer extends DefaultTableCellRenderer\n\t{\n\t\tprivate final DefaultTableCellRenderer tcr;\n\n\t\tTextRenderer(DefaultTableCellRenderer tcr)\n\t\t{\n\t\t\tthis.tcr = tcr;\n\t\t}\n\n\t\t@Override\n\t\tpublic Component getTableCellRendererComponent(JTable table, Object value,\n\t\t\tboolean isSelected, boolean hasFocus, int row, int column)\n\t\t{\n\t\t\tEntry entry = pluginModel.getEntry(row);\n\t\t\tif (entry.status.equals(Entry.ERROR))\n\t\t\t\ttcr.setForeground(Color.red);\n\t\t\telse\n\t\t\t\ttcr.setForeground(UIManager.getColor(\"Table.foreground\"));\n\t\t\treturn tcr.getTableCellRendererComponent(table,value,isSelected,false,row,column);\n\t\t}\n\t} //}}}\n\n\t//{{{ HideLibrariesButton class\n\tprivate class HideLibrariesButton extends JCheckBox implements ActionListener\n\t{\n\t\tHideLibrariesButton()\n\t\t{\n\t\t\tsuper(jEdit.getProperty(\"plugin-manager.hide-libraries\"));\n\t\t\tsetSelected(jEdit.getBooleanProperty(\n\t\t\t\t\"plugin-manager.hide-libraries.toggle\"));\n\t\t\taddActionListener(this);\n\t\t}\n\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tjEdit.setBooleanProperty(\n\t\t\t\t\"plugin-manager.hide-libraries.toggle\",\n\t\t\t\tisSelected());\n\t\t\tManagePanel.this.update();\n\t\t}\n\t} //}}}\n\n\t//{{{ RestoreButton class\n\t/**\n\t * Permits the user to restore the state of the ManagePanel\n\t * based on a PluginSet.\n\t *\n\t * Selects all loaded plugins that appear in an .XML file, and deselects\n\t * all others, and also sets the pluginset to that .XML file. Does not install any plugins\n\t * that were not previously installed.\n\t *\n\t * @since jEdit 4.3pre10\n\t * @author Alan Ezust\n\t */\n\tprivate class RestoreButton extends RolloverButton implements ActionListener\n\t{\n\t\tRestoreButton()\n\t\t{\n\t\t\tsetIcon(GUIUtilities.loadIcon(jEdit.getProperty(\"manage-plugins.restore.icon\")));\n\t\t\taddActionListener(this);\n\t\t\tsetToolTipText(\"Choose a PluginSet, select/deselect plugins based on set.\");\n\t\t}\n\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tString path = jEdit.getProperty(PluginManager.PROPERTY_PLUGINSET,\n\t\t\t\tjEdit.getSettingsDirectory() + File.separator);\n\t\t\tString[] selectedFiles = GUIUtilities.showVFSFileDialog(ManagePanel.this.window,\n\t\t\t\tjEdit.getActiveView(), path, VFSBrowser.OPEN_DIALOG, false);\n\t\t\tif (selectedFiles == null || selectedFiles.length != 1) return;\n\t\t\tpath = selectedFiles[0];\n\t\t\tboolean success = loadPluginSet(path);\n\t\t\tif (success)\n\t\t\t{\n\t\t\t\tjEdit.setProperty(PluginManager.PROPERTY_PLUGINSET, path);\n\t\t\t\tEditBus.send(new PropertiesChanged(PluginManager.getInstance()));\n\t\t\t}\n\n\t\t}\n\t}//}}}\n\n\t//{{{ SaveButton class\n\t/**\n\t * Permits the user to save the state of the ManagePanel,\n\t * which in this case, is nothing more than a list of\n\t * all plugins currently loaded.\n\t * @since jEdit 4.3pre10\n\t * @author Alan Ezust\n\t */\n\tprivate class SaveButton extends RolloverButton implements ActionListener\n\t{\n\t\tSaveButton()\n\t\t{\n\t\t\tsetIcon(GUIUtilities.loadIcon(jEdit.getProperty(\"manage-plugins.save.icon\")));\n\t\t\tsetToolTipText(\"Save Currently Checked Plugins Set\");\n\t\t\taddActionListener(this);\n\t\t\tsetEnabled(true);\n\t\t}\n\n\t\tvoid saveState(String vfsURL, List<Entry> pluginList)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(\"<pluginset>\\n \");\n\n\t\t\tfor (Entry entry: pluginList)\n\t\t\t{\n\t\t\t\tString jarName = entry.jar.substring(1+entry.jar.lastIndexOf(File.separatorChar));\n\t\t\t\tsb.append(\"   <plugin name=\\\"\").append(entry.name).append(\"\\\" jar=\\\"\");\n\t\t\t\tsb.append(jarName).append(\"\\\" />\\n \");\n\t\t\t}\n\t\t\tsb.append(\"</pluginset>\\n\");\n\n\t\t\tVFS vfs = VFSManager.getVFSForPath(vfsURL);\n\t\t\tObject session = vfs.createVFSSession(vfsURL, ManagePanel.this);\n\t\t\tWriter writer = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tOutputStream os = vfs._createOutputStream(session, vfsURL, ManagePanel.this);\n\t\t\t\twriter = new BufferedWriter(new OutputStreamWriter(os));\n\t\t\t\twriter.write(sb.toString());\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, this, \"Saving State Error\", e);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tIOUtilities.closeQuietly(writer);\n\t\t\t}\n\n\t\t}\n\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tString path = jEdit.getProperty(\"plugin-manager.pluginset.path\", jEdit.getSettingsDirectory() + File.separator);\n\t\t\tVFSFileChooserDialog fileChooser = new VFSFileChooserDialog(\n\t\t\t\tManagePanel.this.window, jEdit.getActiveView(),\n\t\t\t\tpath, VFSBrowser.SAVE_DIALOG, false , true);\n\t\t\tString[] fileselections = fileChooser.getSelectedFiles();\n\t\t\tList<Entry> pluginSelections = new ArrayList<Entry>();\n\t\t\tif (fileselections == null || fileselections.length != 1) return;\n\n\t\t\tPluginJAR[] jars = jEdit.getPluginJARs();\n\t\t\tfor (PluginJAR jar : jars)\n\t\t\t{\n\t\t\t\tif (jar.getPlugin() != null)\n\t\t\t\t{\n\t\t\t\t\tEntry entry = new Entry (jar);\n\t\t\t\t\tpluginSelections.add(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsaveState(fileselections[0], pluginSelections);\n\t\t\tjEdit.setProperty(\"plugin-manager.pluginset.path\", fileselections[0]);\n\t\t\tEditBus.send(new PropertiesChanged(PluginManager.getInstance()));\n\t\t}\n\t}//}}}\n\n\t//{{{ RemoveButton class\n\t/**\n\t * The Remove button is the button pressed to remove the selected\n\t * plugin.\n\t */\n\tprivate class RemoveButton extends JButton implements ListSelectionListener, ActionListener\n\t{\n\t\tRemoveButton()\n\t\t{\n\t\t\tsuper(jEdit.getProperty(\"manage-plugins.remove\"));\n\t\t\ttable.getSelectionModel().addListSelectionListener(this);\n\t\t\taddActionListener(this);\n\t\t\tsetEnabled(false);\n\t\t}\n\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tint[] selected = table.getSelectedRows();\n\n\t\t\tList<String> listModel = new LinkedList<String>();\n\t\t\tRoster roster = new Roster();\n\t\t\tSet<String> jarsToRemove = new HashSet<String>();\n\t\t\t// this one will contains the loaded jars to remove. They\n\t\t\t// are the only one we need to check to unload plugins\n\t\t\t// that depends on them\n\t\t\tSet<String> loadedJarsToRemove = new HashSet<String>();\n\t\t\tfor(int i = 0; i < selected.length; i++)\n\t\t\t{\n\t\t\t\tEntry entry = pluginModel.getEntry(selected[i]);\n\t\t\t\tif (entry.status.equals(Entry.NOT_LOADED))\n\t\t\t\t{\n\t\t\t\t\tif (entry.jar != null)\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCollection<String> jarList = getDeclaredJars(entry.jar);\n\t\t\t\t\t\t\tjarsToRemove.addAll(jarList);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IOException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tLog.log(Log.ERROR, this, e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tjarsToRemove.addAll(entry.jars);\n\t\t\t\t\tloadedJarsToRemove.addAll(entry.jars);\n\t\t\t\t}\n\t\t\t\ttable.getSelectionModel().removeSelectionInterval(selected[i], selected[i]);\n\t\t\t}\n\n\t\t\tfor (String jar : jarsToRemove)\n\t\t\t{\n\t\t\t\tlistModel.add(jar);\n\t\t\t\troster.addRemove(jar);\n\t\t\t}\n\n\t\t\tint button = GUIUtilities.listConfirm(window,\n\t\t\t\t\"plugin-manager.remove-confirm\",\n\t\t\t\tnull,listModel.toArray());\n\t\t\tif(button == JOptionPane.YES_OPTION)\n\t\t\t{\n\n\t\t\t\tList<String> closureSet = new ArrayList<String>();\n\t\t\t\tPluginJAR.transitiveClosure(loadedJarsToRemove.toArray(new String[loadedJarsToRemove.size()]), closureSet);\n\t\t\t\tclosureSet.removeAll(listModel);\n\t\t\t\tif (closureSet.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tbutton = JOptionPane.YES_OPTION;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbutton = GUIUtilities.listConfirm(window,\"plugin-manager.remove-dependencies\",\n\t\t\t\t\t\tnull, closureSet.toArray());\n\t\t\t\t\tCollections.sort(closureSet, new StandardUtilities.StringCompare<String>(true));\n\t\t\t\t}\n\t\t\t\tif(button == JOptionPane.YES_OPTION)\n\t\t\t\t{\n\t\t\t\t\tfor (String jarName:closureSet)\n\t\t\t\t\t{\n\t\t\t\t\t\tPluginJAR pluginJAR = jEdit.getPluginJAR(jarName);\n\t\t\t\t\t\tjEdit.removePluginJAR(pluginJAR, false);\n\t\t\t\t\t}\n\t\t\t\t\troster.performOperationsInAWTThread(window);\n\t\t\t\t\tpluginModel.update();\n\t\t\t\t\tif (table.getRowCount() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\ttable.setRowSelectionInterval(0,0);\n\t\t\t\t\t}\n\t\t\t\t\ttable.setColumnSelectionInterval(0,0);\n\t\t\t\t\tJScrollBar scrollbar = scrollpane.getVerticalScrollBar();\n\t\t\t\t\tscrollbar.setValue(scrollbar.getMinimum());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tpublic void valueChanged(ListSelectionEvent e)\n\t\t{\n\t\t\tif (table.getSelectedRowCount() == 0)\n\t\t\t\tsetEnabled(false);\n\t\t\telse\n\t\t\t\tsetEnabled(true);\n\t\t}\n\t} //}}}\n\n\t//{{{ FindOrphanActionListener class\n\tprivate class FindOrphan extends JButton implements ActionListener\n\t{\n\t\tprivate FindOrphan()\n\t\t{\n\t\t\tsuper(jEdit.getProperty(\"plugin-manager.findOrphan.label\"));\n\t\t\taddActionListener(this);\n\t\t}\n\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tPluginJAR[] pluginJARs = jEdit.getPluginJARs();\n\t\t\tSet<String> neededJars = new HashSet<String>();\n\n\t\t\tMap<String, String> jarlibs = new HashMap<String, String>();\n\t\t\tfor (PluginJAR pluginJAR : pluginJARs)\n\t\t\t{\n\t\t\t\tEditPlugin plugin = pluginJAR.getPlugin();\n\t\t\t\tif (plugin == null)\n\t\t\t\t{\n\t\t\t\t\tjarlibs.put(new File(pluginJAR.getPath()).getName(), pluginJAR.getPath());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSet<String> strings = plugin.getPluginJAR().getRequiredJars();\n\t\t\t\t\tfor (String string : strings)\n\t\t\t\t\t{\n\t\t\t\t\t\tneededJars.add(new File(string).getName());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString[] notLoadedJars = jEdit.getNotLoadedPluginJARs();\n\t\t\tfor (int i = 0; i < notLoadedJars.length; i++)\n\t\t\t{\n\t\t\t\tPluginJAR pluginJAR = new PluginJAR(new File(notLoadedJars[i]));\n\t\t\t\tPluginJAR.PluginCacheEntry pluginCacheEntry = PluginJAR.getPluginCache(pluginJAR);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (pluginCacheEntry == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpluginCacheEntry = pluginJAR.generateCache();\n\t\t\t\t\t}\n\t\t\t\t\tif (pluginCacheEntry.pluginClass == null)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Not a plugin\n\t\t\t\t\t\tjarlibs.put(new File(notLoadedJars[i]).getName(), notLoadedJars[i]);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\n\t\t\t\t\tProperties cachedProperties = pluginCacheEntry.cachedProperties;\n\n\t\t\t\t\tString jars = cachedProperties.getProperty(\"plugin.\" + pluginCacheEntry.pluginClass + \".jars\");\n\n\t\t\t\t\tif (jars != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(jars);\n\t\t\t\t\t\twhile (st.hasMoreTokens())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tneededJars.add(st.nextToken());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (IOException e1)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR, this, e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tList<String> removingJars = new ArrayList<String>();\n\t\t\tSet<String> jarlibsKeys = jarlibs.keySet();\n\t\t\tfor (String jar : jarlibsKeys)\n\t\t\t{\n\t\t\t\tif (!neededJars.contains(jar))\n\t\t\t\t{\n\t\t\t\t\tremovingJars.add(jar);\n\t\t\t\t\tLog.log(Log.MESSAGE, this, \"It seems that this jar do not belong to any plugin \" +jar);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(removingJars.isEmpty())\n\t\t\t{\n\t\t\t\tGUIUtilities.message(ManagePanel.this, \"plugin-manager.noOrphan\", null);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tString[] strings = removingJars.toArray(new String[removingJars.size()]);\n\t\t\tList<String> mustRemove = new ArrayList<String>();\n\t\t\tint ret = GUIUtilities.listConfirm(ManagePanel.this,\n\t\t\t\t\t\t\t   \"plugin-manager.findOrphan\",\n\t\t\t\t\t\t\t   null,\n\t\t\t\t\t\t\t   strings,\n\t\t\t\t\t\t\t   mustRemove);\n\t\t\tif (ret != JOptionPane.OK_OPTION || mustRemove.isEmpty())\n\t\t\t\treturn;\n\n\t\t\tRoster roster = new Roster();\n\t\t\tfor (int i = 0; i < mustRemove.size(); i++)\n\t\t\t{\n\t\t\t\tString entry = mustRemove.get(i);\n\t\t\t\troster.addRemove(jarlibs.get(entry));\n\t\t\t}\n\n\t\t\troster.performOperationsInAWTThread(window);\n\t\t\tpluginModel.update();\n\t\t\tif (table.getRowCount() != 0)\n\t\t\t{\n\t\t\t\ttable.setRowSelectionInterval(0,0);\n\t\t\t}\n\t\t\ttable.setColumnSelectionInterval(0,0);\n\t\t\tJScrollBar scrollbar = scrollpane.getVerticalScrollBar();\n\t\t\tscrollbar.setValue(scrollbar.getMinimum());\n\t\t\ttable.repaint();\n\t\t}\n\t} //}}}\n\n\t//{{{ HelpButton class\n\tprivate class HelpButton extends JButton implements ListSelectionListener, ActionListener\n\t{\n\t\tprivate URL docURL;\n\n\t\tHelpButton()\n\t\t{\n\t\t\tsuper(jEdit.getProperty(\"manage-plugins.help\"));\n\t\t\ttable.getSelectionModel().addListSelectionListener(this);\n\t\t\taddActionListener(this);\n\t\t\tsetEnabled(false);\n\t\t}\n\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tnew HelpViewer(docURL);\n\t\t}\n\n\t\tpublic void valueChanged(ListSelectionEvent e)\n\t\t{\n\t\t\tif (table.getSelectedRowCount() == 1)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tEntry entry = pluginModel.getEntry(table.getSelectedRow());\n\t\t\t\t\tString label = entry.clazz;\n\t\t\t\t\tString docs = entry.docs;\n\t\t\t\t\tif (label != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tEditPlugin plug = jEdit.getPlugin(label, false);\n\t\t\t\t\t\tPluginJAR jar = null;\n\t\t\t\t\t\tif (plug != null) jar = plug.getPluginJAR();\n\t\t\t\t\t\tif(jar != null && docs != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tURL url = jar.getClassLoader().getResource(docs);\n\t\t\t\t\t\t\tif(url != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdocURL = url;\n\t\t\t\t\t\t\t\tsetEnabled(true);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR, this, \"ManagePanel HelpButton Update\", ex);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetEnabled(false);\n\t\t}\n\t} //}}}\n\n\t//{{{ EntryCompare class\n\tprivate static class EntryCompare implements Comparator<Entry>\n\t{\n\t\tpublic static final int NAME = 1;\n\t\tpublic static final int STATUS = 2;\n\n\t\tprivate final int type;\n\n\t\tEntryCompare(int type)\n\t\t{\n\t\t\tthis.type = type;\n\t\t}\n\n\t\tpublic int compare(Entry e1, Entry e2)\n\t\t{\n\t\t\tif (type == NAME)\n\t\t\t\treturn compareNames(e1,e2);\n\t\t\telse\n\t\t\t{\n\t\t\t\tint result;\n\t\t\t\tif ((result = e1.status.compareToIgnoreCase(e2.status)) == 0)\n\t\t\t\t\treturn compareNames(e1,e2);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\n\t\tprivate static int compareNames(Entry e1, Entry e2)\n\t\t{\n\t\t\tString s1;\n\t\t\tif(e1.name == null)\n\t\t\t\ts1 = MiscUtilities.getFileName(e1.jar);\n\t\t\telse\n\t\t\t\ts1 = e1.name;\n\t\t\tString s2;\n\t\t\tif(e2.name == null)\n\t\t\t\ts2 = MiscUtilities.getFileName(e2.jar);\n\t\t\telse\n\t\t\t\ts2 = e2.name;\n\n\t\t\treturn s1.compareToIgnoreCase(s2);\n\t\t}\n\t} //}}}\n\n\t//{{{ HeaderMouseHandler class\n\tprivate class HeaderMouseHandler extends MouseAdapter\n\t{\n\t\t@Override\n\t\tpublic void mouseClicked(MouseEvent evt)\n\t\t{\n\t\t\tif (evt.getSource() == table.getTableHeader())\n\t\t\t{\n\t\t\t\tswitch(table.getTableHeader().columnAtPoint(evt.getPoint()))\n\t\t\t\t{\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tpluginModel.setSortType(EntryCompare.NAME);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tpluginModel.setSortType(EntryCompare.STATUS);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (GUIUtilities.isPopupTrigger(evt))\n\t\t\t\t{\n\t\t\t\t\tint row = table.rowAtPoint(evt.getPoint());\n\t\t\t\t\tif (row != -1 &&\n\t\t\t\t\t    !table.isRowSelected(row))\n\t\t\t\t\t{\n\t\t\t\t\t\ttable.setRowSelectionInterval(row,row);\n\t\t\t\t\t}\n\t\t\t\t\tif (popup == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpopup = new JPopupMenu();\n\t\t\t\t\t\tJMenuItem item = GUIUtilities.loadMenuItem(\"plugin-manager.cleanup\");\n\t\t\t\t\t\titem.addActionListener(new CleanupActionListener());\n\t\t\t\t\t\tpopup.add(item);\n\t\t\t\t\t}\n\t\t\t\t\tGUIUtilities.showPopupMenu(popup, table, evt.getX(), evt.getY());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//{{{ CleanupActionListener class\n\t\tprivate class CleanupActionListener implements ActionListener\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\n\t\t\t\tint[] ints = table.getSelectedRows();\n\t\t\t\tList<String> list = new ArrayList<String>(ints.length);\n\t\t\t\tList<Entry> entries = new ArrayList<Entry>(ints.length);\n\t\t\t\tfor (int i = 0; i < ints.length; i++)\n\t\t\t\t{\n\t\t\t\t\tEntry entry = pluginModel.getEntry(ints[i]);\n\t\t\t\t\tif (entry.plugin != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tlist.add(entry.name);\n\t\t\t\t\t\tentries.add(entry);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] strings = list.toArray(new String[list.size()]);\n\t\t\t\tint ret = GUIUtilities.listConfirm(ManagePanel.this,\n\t\t\t\t\t\t\t\t   \"plugin-manager.cleanup\",\n\t\t\t\t\t\t\t\t   null,\n\t\t\t\t\t\t\t\t   strings);\n\t\t\t\tif (ret != JOptionPane.OK_OPTION)\n\t\t\t\t\treturn;\n\n\t\t\t\tfor (int i = 0; i < entries.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tEntry entry = entries.get(i);\n\t\t\t\t\tFile path = entry.plugin.getPluginHome();\n\t\t\t\t\tLog.log(Log.NOTICE, this, \"Removing data of plugin \" + entry.name + \" home=\"+path);\n\t\t\t\t\tFileVFS.recursiveDelete(path);\n\t\t\t\t\tentry.dataSize = null;\n\t\t\t\t}\n\t\t\t\ttable.repaint();\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ KeyboardAction class\n\tprivate class KeyboardAction extends AbstractAction\n\t{\n\t\tprivate KeyboardCommand command = KeyboardCommand.NONE;\n\n\t\tKeyboardAction(KeyboardCommand command)\n\t\t{\n\t\t\tthis.command = command;\n\t\t}\n\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tswitch (command)\n\t\t\t{\n\t\t\tcase TAB_OUT_FORWARD:\n\t\t\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent();\n\t\t\t\tbreak;\n\t\t\tcase TAB_OUT_BACK:\n\t\t\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().focusPreviousComponent();\n\t\t\t\tbreak;\n\t\t\tcase EDIT_PLUGIN:\n\t\t\t\tint[] rows = table.getSelectedRows();\n\t\t\t\tfor (int i = 0; i < rows.length; i++)\n\t\t\t\t{\n\t\t\t\t\tObject st = pluginModel.getValueAt(rows[i], 0);\n\t\t\t\t\tpluginModel.setValueAt(st.equals(Boolean.FALSE), rows[i], 0);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CLOSE_PLUGIN_MANAGER:\n\t\t\t\twindow.ok();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new InternalError();\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ TableFocusHandler class\n\tprivate class TableFocusHandler extends FocusAdapter\n\t{\n\t\t@Override\n\t\tpublic void focusGained(FocusEvent fe)\n\t\t{\n\t\t\tif (table.getSelectedRow() == -1)\n\t\t\t{\n\t\t\t\ttable.setRowSelectionInterval(0,0);\n\t\t\t\tJScrollBar scrollbar = scrollpane.getVerticalScrollBar();\n\t\t\t\tscrollbar.setValue(scrollbar.getMinimum());\n\t\t\t}\n\t\t\tif (table.getSelectedColumn() == -1)\n\t\t\t{\n\t\t\t\ttable.setColumnSelectionInterval(0,0);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ TableSelectionListener class\n\tprivate class TableSelectionListener implements ListSelectionListener\n\t{\n\t\tpublic void valueChanged(ListSelectionEvent e)\n\t\t{\n\t\t\tint row = table.getSelectedRow();\n\t\t\tif (row != -1)\n\t\t\t{\n\t\t\t\tEntry entry = pluginModel.getEntry(row);\n\t\t\t\tpluginDetailPanel.setPlugin(entry);", "functions": [{"function_name": "update", "code": "\tpublic void update()\n\t{\n\t\tpluginModel.update();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadPluginSet", "code": "\tboolean loadPluginSet(String path)\n\t{\n\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\tObject session = vfs.createVFSSession(path, this);\n\t\ttry\n\t\t{\n\t\t\tInputStream is = vfs._createInputStream(session, path, false, this);\n\t\t\tXMLUtilities.parseXML(is, new ManagePanelRestoreHandler());\n\t\t\tis.close();\n\t\t\tint rowCount = pluginModel.getRowCount();\n\t\t\tfor (int i=0 ; i<rowCount ; i++)\n\t\t\t{\n\t\t\t\tEntry ent = pluginModel.getEntry(i);\n\t\t\t\tString name = ent.name;\n\t\t\t\tif (name != null)\n\t\t\t\t{\n\t\t\t\t\tpluginModel.setValueAt(selectedPlugins.contains(name), i, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString jarPath = ent.jar;\n\t\t\t\t\tString jarName = jarPath.substring(1 + jarPath.lastIndexOf(File.separatorChar));\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tpluginModel.setValueAt(jarNames.contains(jarName), i, 0);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.log(Log.WARNING, this, \"Exception thrown loading: \" + jarName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR, this, \"Loading Pluginset Error\", e);\n\t\t\treturn false;\n\t\t}\n\t\tpluginModel.update();\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [8, 12], [9, 13], [2, 14], [2, 15], [3, 16], [4, 17], [12, 18], [8, 19], [9, 20], [9, 21], [9, 22], [10, 23], [15, 24], [11, 25], [19, 26], [20, 27], [9, 28], [25, 29], [20, 30], [20, 31], [20, 32], [27, 33], [22, 34], [30, 35], [20, 36], [30, 37], [31, 38], [36, 39], [36, 40], [35, 41], [37, 42], [37, 43], [38, 44], [41, 45], [44, 46], [44, 47], [45, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 8], [13, 9], [14, 2], [15, 2], [16, 3], [17, 4], [18, 12], [19, 8], [20, 9], [21, 9], [22, 9], [23, 10], [24, 15], [25, 11], [26, 19], [27, 20], [28, 9], [29, 25], [30, 20], [31, 20], [32, 20], [33, 27], [34, 22], [35, 30], [36, 20], [37, 30], [38, 31], [39, 36], [40, 36], [41, 35], [42, 37], [43, 37], [44, 38], [45, 41], [46, 44], [47, 44], [48, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "getDeclaredJars", "code": "\tprivate static Collection<String> getDeclaredJars(String jarName) throws IOException\n\t{\n\t\tCollection<String> jarList = new ArrayList<String>();\n\t\tPluginJAR pluginJAR = new PluginJAR(new File(jarName));\n\t\tPluginJAR.PluginCacheEntry pluginCacheEntry = PluginJAR.getPluginCache(pluginJAR);\n\t\tif (pluginCacheEntry == null)\n\t\t{\n\t\t\tpluginCacheEntry = pluginJAR.generateCache();\n\t\t}\n\t\tProperties cachedProperties = pluginCacheEntry.cachedProperties;\n\n\t\tString jars = cachedProperties.getProperty(\"plugin.\" + pluginCacheEntry.pluginClass + \".jars\");\n\n\t\tif (jars != null)\n\t\t{\n\t\t\tString dir = MiscUtilities.getParentOfPath(pluginJAR.getPath());\n\t\t\tStringTokenizer st = new StringTokenizer(jars);\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tString _jarPath = MiscUtilities.constructPath(dir, st.nextToken());\n\t\t\t\tif (new File(_jarPath).exists())\n\t\t\t\t\tjarList.add(_jarPath);\n\t\t\t}\n\t\t}\n\t\tjarList.add(jarName);\n\t\treturn jarList;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [5, 12], [2, 13], [2, 14], [2, 15], [11, 16], [3, 17], [12, 18], [6, 19], [7, 20], [8, 21], [13, 22], [17, 23], [5, 24], [20, 25], [13, 26], [13, 27], [14, 28], [15, 29], [23, 30], [23, 31], [24, 32], [26, 33], [29, 34], [31, 35], [26, 36], [33, 37], [27, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 5], [13, 2], [14, 2], [15, 2], [16, 11], [17, 3], [18, 12], [19, 6], [20, 7], [21, 8], [22, 13], [23, 17], [24, 5], [25, 20], [26, 13], [27, 13], [28, 14], [29, 15], [30, 23], [31, 23], [32, 24], [33, 26], [34, 29], [35, 31], [36, 26], [37, 33], [38, 27], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "ManagePanel", "code": "\tpublic ManagePanel(PluginManager window)\n\t{\n\t\tsuper(new BorderLayout(12,12));\n\n\t\tthis.window = window;\n\n\t\tsetBorder(new EmptyBorder(12,12,12,12));\n\n\t\tBox topBox = new Box(BoxLayout.X_AXIS);\n\t\ttopBox.add(hideLibraries = new HideLibrariesButton());\n\t\tadd(BorderLayout.NORTH,topBox);\n\n\t\t/* Create the plugin table */\n\t\ttable = new JTable(pluginModel = new PluginTableModel());\n\t\ttable.setShowGrid(false);\n\t\ttable.setIntercellSpacing(new Dimension(0,0));\n\t\ttable.setRowHeight(table.getRowHeight() + 2);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(500,300));\n\t\ttable.setDefaultRenderer(Object.class, new TextRenderer(\n\t\t\t(DefaultTableCellRenderer)table.getDefaultRenderer(Object.class)));\n\t\ttable.addFocusListener(new TableFocusHandler());\n\t\ttable.getSelectionModel().addListSelectionListener(new TableSelectionListener());\n\t\tInputMap tableInputMap = table.getInputMap(JComponent.WHEN_FOCUSED);\n\t\tActionMap tableActionMap = table.getActionMap();\n\t\ttableInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,0),\"tabOutForward\");\n\t\ttableActionMap.put(\"tabOutForward\",new KeyboardAction(KeyboardCommand.TAB_OUT_FORWARD));\n\t\ttableInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,InputEvent.SHIFT_MASK),\"tabOutBack\");\n\t\ttableActionMap.put(\"tabOutBack\",new KeyboardAction(KeyboardCommand.TAB_OUT_BACK));\n\t\ttableInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE,0),\"editPlugin\");\n\t\ttableActionMap.put(\"editPlugin\",new KeyboardAction(KeyboardCommand.EDIT_PLUGIN));\n\t\ttableInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0),\"closePluginManager\");\n\t\ttableActionMap.put(\"closePluginManager\",new KeyboardAction(KeyboardCommand.CLOSE_PLUGIN_MANAGER));\n\n\t\tTableColumn col1 = table.getColumnModel().getColumn(0);\n\t\tTableColumn col2 = table.getColumnModel().getColumn(1);\n\t\tTableColumn col3 = table.getColumnModel().getColumn(2);\n\t\tTableColumn col4 = table.getColumnModel().getColumn(3);\n\n\t\tcol1.setPreferredWidth(30);\n\t\tcol1.setMinWidth(30);\n\t\tcol1.setMaxWidth(30);\n\t\tcol1.setResizable(false);\n\n\t\tcol2.setPreferredWidth(300);\n\t\tcol3.setPreferredWidth(100);\n\t\tcol4.setPreferredWidth(100);\n\n\t\tJTableHeader header = table.getTableHeader();\n\t\theader.setReorderingAllowed(false);\n\t\tHeaderMouseHandler mouseHandler = new HeaderMouseHandler();\n\t\theader.addMouseListener(mouseHandler);\n\t\ttable.addMouseListener(mouseHandler);\n\t\tscrollpane = new JScrollPane(table);\n\t\tscrollpane.getViewport().setBackground(table.getBackground());\n\t\tpluginDetailPanel = new PluginDetailPanel();\n\t\tscrollpane.setPreferredSize(new Dimension(400,400));\n\t\tJSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT,\n\t\t\ttrue, scrollpane, pluginDetailPanel);\n\t\tadd(BorderLayout.CENTER, split);\n\t\tsplit.setResizeWeight(0.75);\n\t\t/* Create button panel */\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\n\t\tbuttons.add(new RemoveButton());\n\t\tbuttons.add(new SaveButton());\n\t\tbuttons.add(new RestoreButton());\n\t\tbuttons.add(new FindOrphan());\n\t\tbuttons.add(Box.createGlue());\n\t\tbuttons.add(new HelpButton());\n\n\t\tadd(BorderLayout.SOUTH,buttons);\n\n\t\tpluginModel.update();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [0, 54], [0, 55], [0, 56], [0, 57], [15, 58], [16, 59], [17, 60], [18, 61], [19, 62], [20, 63], [1, 64], [21, 65], [2, 66], [23, 67], [24, 68], [25, 69], [26, 70], [3, 71], [29, 72], [4, 73], [30, 74], [31, 75], [32, 76], [33, 77], [34, 78], [35, 79], [36, 80], [5, 81], [6, 82], [7, 83], [8, 84], [37, 85], [37, 86], [38, 87], [38, 88], [39, 89], [39, 90], [40, 91], [40, 92], [41, 93], [41, 94], [42, 95], [42, 96], [43, 97], [43, 98], [44, 99], [44, 100], [9, 101], [10, 102], [45, 103], [46, 104], [47, 105], [48, 106], [49, 107], [50, 108], [51, 109], [52, 110], [54, 111], [11, 112], [55, 113], [57, 114], [57, 115], [66, 116], [67, 117], [67, 118], [69, 119], [81, 120], [82, 121], [83, 122], [84, 123], [88, 124], [92, 125], [100, 126], [103, 127], [106, 128], [106, 129], [107, 130], [107, 131], [108, 132], [108, 133], [110, 134], [111, 135], [113, 136], [113, 137], [113, 138], [113, 139], [120, 140], [121, 141], [122, 142], [123, 143], [105, 144], [134, 145], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 0], [55, 0], [56, 0], [57, 0], [58, 15], [59, 16], [60, 17], [61, 18], [62, 19], [63, 20], [64, 1], [65, 21], [66, 2], [67, 23], [68, 24], [69, 25], [70, 26], [71, 3], [72, 29], [73, 4], [74, 30], [75, 31], [76, 32], [77, 33], [78, 34], [79, 35], [80, 36], [81, 5], [82, 6], [83, 7], [84, 8], [85, 37], [86, 37], [87, 38], [88, 38], [89, 39], [90, 39], [91, 40], [92, 40], [93, 41], [94, 41], [95, 42], [96, 42], [97, 43], [98, 43], [99, 44], [100, 44], [101, 9], [102, 10], [103, 45], [104, 46], [105, 47], [106, 48], [107, 49], [108, 50], [109, 51], [110, 52], [111, 54], [112, 11], [113, 55], [114, 57], [115, 57], [116, 66], [117, 67], [118, 67], [119, 69], [120, 81], [121, 82], [122, 83], [123, 84], [124, 88], [125, 92], [126, 100], [127, 103], [128, 106], [129, 106], [130, 107], [131, 107], [132, 108], [133, 108], [134, 110], [135, 111], [136, 113], [137, 113], [138, 113], [139, 113], [140, 120], [141, 121], [142, 122], [143, 123], [144, 105], [145, 134], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145]]}], "label": 0}
{"sample_id": "ant-1.3-43", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/taskdefs/MatchingTask.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.MatchingTask", "code": "public abstract class MatchingTask extends Task {\n\n    protected boolean useDefaultExcludes = true;\n    protected FileSet fileset = new FileSet();\n\n    /**\n     * add a name entry on the include list\n     */\n    public PatternSet.NameEntry createInclude() {\n        return fileset.createInclude();\n    }\n    \n    /**\n     * add a name entry on the exclude list\n     */\n    public PatternSet.NameEntry createExclude() {\n        return fileset.createExclude();\n    }\n\n    /**\n     * add a set of patterns\n     */\n    public PatternSet createPatternSet() {\n        return fileset.createPatternSet();\n    }\n\n    /**\n     * Sets the set of include patterns. Patterns may be separated by a comma\n     * or a space.\n     *\n     * @param includes the string containing the include patterns\n     */\n    public void setIncludes(String includes) {\n        fileset.setIncludes(includes);\n    }\n\n    /**\n     * Set this to be the items in the base directory that you want to be\n     * included. You can also specify \"*\" for the items (ie: items=\"*\") \n     * and it will include all the items in the base directory.\n     *\n     * @param itemString the string containing the files to include.\n     */\n    public void XsetItems(String itemString) {\n        log(\"The items attribute is deprecated. \" +\n            \"Please use the includes attribute.\",\n            Project.MSG_WARN);\n        if (itemString == null || itemString.equals(\"*\") \n            || itemString.equals(\".\")) {\n            createInclude().setName(\"**\");\n        } else {\n            StringTokenizer tok = new StringTokenizer(itemString, \", \");\n            while (tok.hasMoreTokens()) {\n                String pattern = tok.nextToken().trim();\n                if (pattern.length() > 0) {\n                    createInclude().setName(pattern+\"/**\");\n                }\n            }\n        }\n    }\n    \n    /**\n     * Sets the set of exclude patterns. Patterns may be separated by a comma\n     * or a space.\n     *\n     * @param excludes the string containing the exclude patterns\n     */\n    public void setExcludes(String excludes) {\n        fileset.setExcludes(excludes);\n    }\n\n    /**\n     * List of filenames and directory names to not include. They should be \n     * either , or \" \" (space) separated. The ignored files will be logged.\n     *\n     * @param ignoreString the string containing the files to ignore.\n     */\n    public void XsetIgnore(String ignoreString) {\n        log(\"The ignore attribute is deprecated.\" + \n            \"Please use the excludes attribute.\",\n            Project.MSG_WARN);\n        if (ignoreString != null && ignoreString.length() > 0) {\n            Vector tmpExcludes = new Vector();\n            StringTokenizer tok = new StringTokenizer(ignoreString, \", \", false);\n            while (tok.hasMoreTokens()) {\n                createExclude().setName(\"**/\"+tok.nextToken().trim()+\"/**\");\n            }\n        }\n    }\n    \n    /**\n     * Sets whether default exclusions should be used or not.\n     *\n     * @param useDefaultExcludes \"true\"|\"on\"|\"yes\" when default exclusions \n     *                           should be used, \"false\"|\"off\"|\"no\" when they\n     *                           shouldn't be used.\n     */\n    public void setDefaultexcludes(boolean useDefaultExcludes) {\n        this.useDefaultExcludes = useDefaultExcludes;\n    }\n    \n    /**\n     * Returns the directory scanner needed to access the files to process.\n     */\n    protected DirectoryScanner getDirectoryScanner(File baseDir) {\n        fileset.setDir(baseDir);\n        fileset.setDefaultexcludes(useDefaultExcludes);\n        return fileset.getDirectoryScanner(project);\n    }\n\n    /**\n     * Sets the name of the file containing the includes patterns.\n     *\n     * @param includesfile A string containing the filename to fetch\n     * the include patterns from.  \n     */\n     public void setIncludesfile(File includesfile) {\n         fileset.setIncludesfile(includesfile);\n     }\n\n    /**\n     * Sets the name of the file containing the includes patterns.\n     *\n     * @param excludesfile A string containing the filename to fetch\n     * the include patterns from.  \n     */\n     public void setExcludesfile(File excludesfile) {\n         fileset.setExcludesfile(excludesfile);", "functions": [{"function_name": "createInclude", "code": "    public PatternSet.NameEntry createInclude() {\n        return fileset.createInclude();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExclude", "code": "    public PatternSet.NameEntry createExclude() {\n        return fileset.createExclude();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createPatternSet", "code": "    public PatternSet createPatternSet() {\n        return fileset.createPatternSet();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIncludes", "code": "    public void setIncludes(String includes) {\n        fileset.setIncludes(includes);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "XsetItems", "code": "    public void XsetItems(String itemString) {\n        log(\"The items attribute is deprecated. \" +\n            \"Please use the includes attribute.\",\n            Project.MSG_WARN);\n        if (itemString == null || itemString.equals(\"*\") \n            || itemString.equals(\".\")) {\n            createInclude().setName(\"**\");\n        } else {\n            StringTokenizer tok = new StringTokenizer(itemString, \", \");\n            while (tok.hasMoreTokens()) {\n                String pattern = tok.nextToken().trim();\n                if (pattern.length() > 0) {\n                    createInclude().setName(pattern+\"/**\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [3, 7], [3, 8], [4, 9], [5, 10], [1, 11], [7, 12], [8, 13], [8, 14], [9, 15], [9, 16], [5, 17], [5, 18], [6, 19], [11, 20], [13, 21], [14, 22], [17, 23], [19, 24], [20, 25], [23, 26], [23, 27], [18, 28], [17, 29], [28, 30], [29, 31], [31, 32], [32, 33], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 3], [8, 3], [9, 4], [10, 5], [11, 1], [12, 7], [13, 8], [14, 8], [15, 9], [16, 9], [17, 5], [18, 5], [19, 6], [20, 11], [21, 13], [22, 14], [23, 17], [24, 19], [25, 20], [26, 23], [27, 23], [28, 18], [29, 17], [30, 28], [31, 29], [32, 31], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "setExcludes", "code": "    public void setExcludes(String excludes) {\n        fileset.setExcludes(excludes);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "XsetIgnore", "code": "    public void XsetIgnore(String ignoreString) {\n        log(\"The ignore attribute is deprecated.\" + \n            \"Please use the excludes attribute.\",\n            Project.MSG_WARN);\n        if (ignoreString != null && ignoreString.length() > 0) {\n            Vector tmpExcludes = new Vector();\n            StringTokenizer tok = new StringTokenizer(ignoreString, \", \", false);\n            while (tok.hasMoreTokens()) {\n                createExclude().setName(\"**/\"+tok.nextToken().trim()+\"/**\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [1, 7], [3, 8], [3, 9], [4, 10], [5, 11], [8, 12], [8, 13], [9, 14], [10, 15], [10, 16], [6, 17], [7, 18], [5, 19], [17, 20], [17, 21], [19, 22], [22, 23], [23, 24], [23, 25], [25, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 1], [8, 3], [9, 3], [10, 4], [11, 5], [12, 8], [13, 8], [14, 9], [15, 10], [16, 10], [17, 6], [18, 7], [19, 5], [20, 17], [21, 17], [22, 19], [23, 22], [24, 23], [25, 23], [26, 25], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "setDefaultexcludes", "code": "    public void setDefaultexcludes(boolean useDefaultExcludes) {\n        this.useDefaultExcludes = useDefaultExcludes;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDirectoryScanner", "code": "    protected DirectoryScanner getDirectoryScanner(File baseDir) {\n        fileset.setDir(baseDir);\n        fileset.setDefaultexcludes(useDefaultExcludes);\n        return fileset.getDirectoryScanner(project);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setIncludesfile", "code": "     public void setIncludesfile(File includesfile) {\n         fileset.setIncludesfile(includesfile);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setExcludesfile", "code": "     public void setExcludesfile(File excludesfile) {\n         fileset.setExcludesfile(excludesfile);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.4-161", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/types/PatternSet.java", "language": "java", "name": "org.apache.tools.ant.types.PatternSet", "code": "public class PatternSet extends DataType {\n    private Vector includeList = new Vector();\n    private Vector excludeList = new Vector();\n    private Vector includesFileList = new Vector();\n    private Vector excludesFileList = new Vector();\n\n    /**\n     * inner class to hold a name on list.  \"If\" and \"Unless\" attributes\n     * may be used to invalidate the entry based on the existence of a \n     * property (typically set thru the use of the Available task).\n     */\n    public class NameEntry {\n        private String name;\n        private String ifCond;\n        private String unlessCond;\n\n        public void setName(String name) { \n            this.name = name; \n        }\n\n        public void setIf(String cond) {\n            ifCond = cond;\n        }\n\n        public void setUnless(String cond) {\n            unlessCond = cond;\n        }\n\n        public String getName() {\n            return name;\n        }\n\n        public String evalName(Project p) { \n            return valid(p) ? name : null; \n        }\n\n        private boolean valid(Project p) {\n            if (ifCond != null && p.getProperty(ifCond) == null) {\n                return false;\n            } else if (unlessCond != null && p.getProperty(unlessCond) != null) {\n                return false;\n            }\n            return true;\n        }\n\n        public String toString() {\n            StringBuffer buf = new StringBuffer(name);\n            if ((ifCond != null) || (unlessCond != null)) {\n                buf.append(\":\");\n                String connector = \"\";\n                \n                if (ifCond != null) {\n                    buf.append(\"if->\");\n                    buf.append(ifCond);\n                    connector = \";\";\n                }\n                if (unlessCond != null) {\n                    buf.append(connector);\n                    buf.append(\"unless->\");\n                    buf.append(unlessCond);\n                }\n            }\n\n            return buf.toString();\n        }\n    }\n\n    public PatternSet() {\n        super();\n    }\n\n    /**\n     * Makes this instance in effect a reference to another PatternSet\n     * instance.\n     *\n     * <p>You must not set another attribute or nest elements inside\n     * this element if you make it a reference.</p> \n     */\n    public void setRefid(Reference r) throws BuildException {\n        if (!includeList.isEmpty() || !excludeList.isEmpty()) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);\n    }\n\n    /**\n     * add a name entry on the include list\n     */\n    public NameEntry createInclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(includeList);\n    }\n\n    /**\n     * add a name entry on the include files list\n     */\n    public NameEntry createIncludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(includesFileList);\n    }\n    \n    /**\n     * add a name entry on the exclude list\n     */\n    public NameEntry createExclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(excludeList);\n    }\n    \n    /**\n     * add a name entry on the exclude files list\n     */\n    public NameEntry createExcludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(excludesFileList);\n    }\n\n    /**\n     * Sets the set of include patterns. Patterns may be separated by a comma\n     * or a space.\n     *\n     * @param includes the string containing the include patterns\n     */\n    public void setIncludes(String includes) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (includes != null && includes.length() > 0) {\n            StringTokenizer tok = new StringTokenizer(includes, \", \", false);\n            while (tok.hasMoreTokens()) {\n                createInclude().setName(tok.nextToken());\n            }\n        }\n    }\n\n    /**\n     * Sets the set of exclude patterns. Patterns may be separated by a comma\n     * or a space.\n     *\n     * @param excludes the string containing the exclude patterns\n     */\n    public void setExcludes(String excludes) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (excludes != null && excludes.length() > 0) {\n            StringTokenizer tok = new StringTokenizer(excludes, \", \", false);\n            while (tok.hasMoreTokens()) {\n                createExclude().setName(tok.nextToken());\n            }\n        }\n    }\n\n    /**\n     * add a name entry to the given list\n     */\n    private NameEntry addPatternToList(Vector list) {\n        NameEntry result = new NameEntry();\n        list.addElement(result);\n        return result;\n    }\n\n    /**\n     * Sets the name of the file containing the includes patterns.\n     *\n     * @param includesFile The file to fetch the include patterns from.  \n     */\n     public void setIncludesfile(File includesFile) throws BuildException {\n         if (isReference()) {\n             throw tooManyAttributes();\n         }\n         createIncludesFile().setName(includesFile.getAbsolutePath());\n     }\n\n    /**\n     * Sets the name of the file containing the excludes patterns.\n     *\n     * @param excludesFile The file to fetch the exclude patterns from.  \n     */\n     public void setExcludesfile(File excludesFile) throws BuildException {\n         if (isReference()) {\n             throw tooManyAttributes();\n         }\n         createExcludesFile().setName(excludesFile.getAbsolutePath());\n     }\n    \n    /**\n     *  Reads path matching patterns from a file and adds them to the\n     *  includes or excludes list (as appropriate).  \n     */\n    private void readPatterns(File patternfile, Vector patternlist, Project p)\n        throws BuildException {\n        \n        try {\n            BufferedReader patternReader = \n                new BufferedReader(new FileReader(patternfile)); \n        \n            String line = patternReader.readLine();\n            while (line != null) {\n                if (line.length() > 0) {\n                    line = ProjectHelper.replaceProperties(p, line,\n                                                           p.getProperties());\n                    addPatternToList(patternlist).setName(line);\n                }\n                line = patternReader.readLine();\n            }\n        } catch(IOException ioe)  {\n            String msg = \"An error occured while reading from pattern file: \" \n                + patternfile;\n            throw new BuildException(msg, ioe);\n        }\n    }\n\n    /**\n     * Adds the patterns of the other instance to this set.\n     */\n    public void append(PatternSet other, Project p) {\n        if (isReference()) {\n            throw new BuildException(\"Cannot append to a reference\");\n        }\n\n        String[] incl = other.getIncludePatterns(p);\n        if (incl != null) {\n            for (int i=0; i<incl.length; i++) {\n                createInclude().setName(incl[i]);\n            }\n        }\n        \n        String[] excl = other.getExcludePatterns(p);\n        if (excl != null) {\n            for (int i=0; i<excl.length; i++) {\n                createExclude().setName(excl[i]);\n            }\n        }\n    }\n\n    /**\n     * Returns the filtered include patterns.\n     */\n    public String[] getIncludePatterns(Project p) {\n        if (isReference()) {\n            return getRef(p).getIncludePatterns(p);\n        } else {\n            readFiles(p);\n            return makeArray(includeList, p);\n        }\n    }\n\n    /**\n     * Returns the filtered include patterns.\n     */\n    public String[] getExcludePatterns(Project p) {\n        if (isReference()) {\n            return getRef(p).getExcludePatterns(p);\n        } else {\n            readFiles(p);\n            return makeArray(excludeList, p);\n        }\n    }\n\n    /**\n     * helper for FileSet.\n     */\n    boolean hasPatterns() {\n        return includesFileList.size() > 0 || excludesFileList.size() > 0 \n            || includeList.size() > 0 || excludeList.size() > 0;\n    }\n\n    /**\n     * Performs the check for circular references and returns the\n     * referenced PatternSet.  \n     */\n    private PatternSet getRef(Project p) {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, p);\n        }\n        \n        Object o = ref.getReferencedObject(p);\n        if (!(o instanceof PatternSet)) {\n            String msg = ref.getRefId()+\" doesn\\'t denote a patternset\";\n            throw new BuildException(msg);\n        } else {\n            return (PatternSet) o;\n        }\n    }\n\n    /**\n     * Convert a vector of NameEntry elements into an array of Strings.\n     */\n    private String[] makeArray(Vector list, Project p) {\n        if (list.size() == 0) return null;\n\n        Vector tmpNames = new Vector();\n        for (Enumeration e = list.elements() ; e.hasMoreElements() ;) {\n            NameEntry ne = (NameEntry)e.nextElement();\n            String pattern = ne.evalName(p);\n            if (pattern != null && pattern.length() > 0) {\n                tmpNames.addElement(pattern);\n            }\n        }\n\n        String result[] = new String[tmpNames.size()];\n        tmpNames.copyInto(result);\n        return result;\n    }\n        \n    /**\n     * Read includesfile ot excludesfile if not already done so.\n     */\n    private void readFiles(Project p) {\n        if (includesFileList.size() > 0) {\n            Enumeration e = includesFileList.elements();\n            while (e.hasMoreElements()) {\n                NameEntry ne = (NameEntry)e.nextElement();\n                String fileName = ne.evalName(p);\n                if (fileName != null) {\n                    File inclFile = p.resolveFile(fileName);\n                    if (!inclFile.exists())\n                        throw new BuildException(\"Includesfile \"\n                                                 + inclFile.getAbsolutePath()\n                                                 + \" not found.\");\n                    readPatterns(inclFile, includeList, p);\n                }\n            }\n            includesFileList.removeAllElements();\n        }\n\n        if (excludesFileList.size() > 0) {\n            Enumeration e = excludesFileList.elements();\n            while (e.hasMoreElements()) {\n                NameEntry ne = (NameEntry)e.nextElement();\n                String fileName = ne.evalName(p);\n                if (fileName != null) {\n                    File exclFile = p.resolveFile(fileName);\n                    if (!exclFile.exists())\n                        throw new BuildException(\"Excludesfile \"\n                                                 + exclFile.getAbsolutePath()\n                                                 + \" not found.\");\n                    readPatterns(exclFile, excludeList, p);\n                }\n            }\n            excludesFileList.removeAllElements();\n        }\n    }\n\n    public String toString()\n    {\n        return \"patternSet{ includes: \" + includeList + \n            \" excludes: \" + excludeList + \" }\";", "functions": [{"function_name": "setRefid", "code": "    public void setRefid(Reference r) throws BuildException {\n        if (!includeList.isEmpty() || !excludeList.isEmpty()) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createInclude", "code": "    public NameEntry createInclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(includeList);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createIncludesFile", "code": "    public NameEntry createIncludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(includesFileList);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createExclude", "code": "    public NameEntry createExclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(excludeList);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createExcludesFile", "code": "    public NameEntry createExcludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(excludesFileList);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setIncludes", "code": "    public void setIncludes(String includes) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (includes != null && includes.length() > 0) {\n            StringTokenizer tok = new StringTokenizer(includes, \", \", false);\n            while (tok.hasMoreTokens()) {\n                createInclude().setName(tok.nextToken());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [4, 9], [2, 10], [6, 11], [8, 12], [8, 13], [9, 14], [10, 15], [7, 16], [6, 17], [16, 18], [16, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 4], [10, 2], [11, 6], [12, 8], [13, 8], [14, 9], [15, 10], [16, 7], [17, 6], [18, 16], [19, 16], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setExcludes", "code": "    public void setExcludes(String excludes) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (excludes != null && excludes.length() > 0) {\n            StringTokenizer tok = new StringTokenizer(excludes, \", \", false);\n            while (tok.hasMoreTokens()) {\n                createExclude().setName(tok.nextToken());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [4, 9], [2, 10], [6, 11], [8, 12], [8, 13], [9, 14], [10, 15], [7, 16], [6, 17], [16, 18], [16, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 4], [10, 2], [11, 6], [12, 8], [13, 8], [14, 9], [15, 10], [16, 7], [17, 6], [18, 16], [19, 16], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "addPatternToList", "code": "    private NameEntry addPatternToList(Vector list) {\n        NameEntry result = new NameEntry();\n        list.addElement(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setIncludesfile", "code": "     public void setIncludesfile(File includesFile) throws BuildException {\n         if (isReference()) {\n             throw tooManyAttributes();\n         }\n         createIncludesFile().setName(includesFile.getAbsolutePath());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setExcludesfile", "code": "     public void setExcludesfile(File excludesFile) throws BuildException {\n         if (isReference()) {\n             throw tooManyAttributes();\n         }\n         createExcludesFile().setName(excludesFile.getAbsolutePath());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "readPatterns", "code": "    private void readPatterns(File patternfile, Vector patternlist, Project p)\n        throws BuildException {\n        \n        try {\n            BufferedReader patternReader = \n                new BufferedReader(new FileReader(patternfile)); \n        \n            String line = patternReader.readLine();\n            while (line != null) {\n                if (line.length() > 0) {\n                    line = ProjectHelper.replaceProperties(p, line,\n                                                           p.getProperties());\n                    addPatternToList(patternlist).setName(line);\n                }\n                line = patternReader.readLine();\n            }\n        } catch(IOException ioe)  {\n            String msg = \"An error occured while reading from pattern file: \" \n                + patternfile;\n            throw new BuildException(msg, ioe);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [5, 10], [6, 11], [9, 12], [6, 13], [11, 14], [7, 15], [8, 16], [10, 17], [6, 18], [13, 19], [16, 20], [17, 21], [18, 22], [19, 23], [19, 24], [13, 25], [13, 26], [25, 27], [26, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 5], [11, 6], [12, 9], [13, 6], [14, 11], [15, 7], [16, 8], [17, 10], [18, 6], [19, 13], [20, 16], [21, 17], [22, 18], [23, 19], [24, 19], [25, 13], [26, 13], [27, 25], [28, 26], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "append", "code": "    public void append(PatternSet other, Project p) {\n        if (isReference()) {\n            throw new BuildException(\"Cannot append to a reference\");\n        }\n\n        String[] incl = other.getIncludePatterns(p);\n        if (incl != null) {\n            for (int i=0; i<incl.length; i++) {\n                createInclude().setName(incl[i]);\n            }\n        }\n        \n        String[] excl = other.getExcludePatterns(p);\n        if (excl != null) {\n            for (int i=0; i<excl.length; i++) {\n                createExclude().setName(excl[i]);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [5, 10], [1, 11], [8, 12], [2, 13], [3, 14], [9, 15], [4, 16], [5, 17], [11, 18], [14, 19], [17, 20], [20, 21], [11, 22], [11, 23], [14, 24], [14, 25], [22, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 5], [11, 1], [12, 8], [13, 2], [14, 3], [15, 9], [16, 4], [17, 5], [18, 11], [19, 14], [20, 17], [21, 20], [22, 11], [23, 11], [24, 14], [25, 14], [26, 22], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getIncludePatterns", "code": "    public String[] getIncludePatterns(Project p) {\n        if (isReference()) {\n            return getRef(p).getIncludePatterns(p);\n        } else {\n            readFiles(p);\n            return makeArray(includeList, p);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getExcludePatterns", "code": "    public String[] getExcludePatterns(Project p) {\n        if (isReference()) {\n            return getRef(p).getExcludePatterns(p);\n        } else {\n            readFiles(p);\n            return makeArray(excludeList, p);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "hasPatterns", "code": "    boolean hasPatterns() {\n        return includesFileList.size() > 0 || excludesFileList.size() > 0 \n            || includeList.size() > 0 || excludeList.size() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [7, 9], [7, 10], [8, 11], [8, 12], [11, 13], [11, 14], [12, 15], [12, 16], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 7], [10, 7], [11, 8], [12, 8], [13, 11], [14, 11], [15, 12], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getRef", "code": "    private PatternSet getRef(Project p) {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, p);\n        }\n        \n        Object o = ref.getReferencedObject(p);\n        if (!(o instanceof PatternSet)) {\n            String msg = ref.getRefId()+\" doesn\\'t denote a patternset\";\n            throw new BuildException(msg);\n        } else {\n            return (PatternSet) o;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "THROW_RAISE", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [3, 10], [7, 11], [3, 12], [3, 13], [8, 14], [10, 15], [14, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 3], [11, 7], [12, 3], [13, 3], [14, 8], [15, 10], [16, 14], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "makeArray", "code": "    private String[] makeArray(Vector list, Project p) {\n        if (list.size() == 0) return null;\n\n        Vector tmpNames = new Vector();\n        for (Enumeration e = list.elements() ; e.hasMoreElements() ;) {\n            NameEntry ne = (NameEntry)e.nextElement();\n            String pattern = ne.evalName(p);\n            if (pattern != null && pattern.length() > 0) {\n                tmpNames.addElement(pattern);\n            }\n        }\n\n        String result[] = new String[tmpNames.size()];\n        tmpNames.copyInto(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [5, 10], [5, 11], [3, 12], [3, 13], [3, 14], [4, 15], [10, 16], [11, 17], [11, 18], [2, 19], [12, 20], [3, 21], [20, 22], [20, 23], [13, 24], [12, 25], [22, 26], [22, 27], [23, 28], [14, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 5], [11, 5], [12, 3], [13, 3], [14, 3], [15, 4], [16, 10], [17, 11], [18, 11], [19, 2], [20, 12], [21, 3], [22, 20], [23, 20], [24, 13], [25, 12], [26, 22], [27, 22], [28, 23], [29, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "readFiles", "code": "    private void readFiles(Project p) {\n        if (includesFileList.size() > 0) {\n            Enumeration e = includesFileList.elements();\n            while (e.hasMoreElements()) {\n                NameEntry ne = (NameEntry)e.nextElement();\n                String fileName = ne.evalName(p);\n                if (fileName != null) {\n                    File inclFile = p.resolveFile(fileName);\n                    if (!inclFile.exists())\n                        throw new BuildException(\"Includesfile \"\n                                                 + inclFile.getAbsolutePath()\n                                                 + \" not found.\");\n                    readPatterns(inclFile, includeList, p);\n                }\n            }\n            includesFileList.removeAllElements();\n        }\n\n        if (excludesFileList.size() > 0) {\n            Enumeration e = excludesFileList.elements();\n            while (e.hasMoreElements()) {\n                NameEntry ne = (NameEntry)e.nextElement();\n                String fileName = ne.evalName(p);\n                if (fileName != null) {\n                    File exclFile = p.resolveFile(fileName);\n                    if (!exclFile.exists())\n                        throw new BuildException(\"Excludesfile \"\n                                                 + exclFile.getAbsolutePath()\n                                                 + \" not found.\");\n                    readPatterns(exclFile, excludeList, p);\n                }\n            }\n            excludesFileList.removeAllElements();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [4, 9], [2, 10], [2, 11], [5, 12], [5, 13], [1, 14], [6, 15], [2, 16], [10, 17], [6, 18], [6, 19], [6, 20], [7, 21], [10, 22], [10, 23], [10, 24], [11, 25], [18, 26], [22, 27], [18, 28], [18, 29], [26, 30], [19, 31], [22, 32], [22, 33], [27, 34], [23, 35], [18, 36], [28, 37], [28, 38], [20, 39], [22, 40], [32, 41], [32, 42], [24, 43], [37, 44], [29, 45], [41, 46], [33, 47], [44, 48], [46, 49], [48, 50], [48, 51], [49, 52], [49, 53], [51, 54], [51, 55], [53, 56], [53, 57], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 4], [10, 2], [11, 2], [12, 5], [13, 5], [14, 1], [15, 6], [16, 2], [17, 10], [18, 6], [19, 6], [20, 6], [21, 7], [22, 10], [23, 10], [24, 10], [25, 11], [26, 18], [27, 22], [28, 18], [29, 18], [30, 26], [31, 19], [32, 22], [33, 22], [34, 27], [35, 23], [36, 18], [37, 28], [38, 28], [39, 20], [40, 22], [41, 32], [42, 32], [43, 24], [44, 37], [45, 29], [46, 41], [47, 33], [48, 44], [49, 46], [50, 48], [51, 48], [52, 49], [53, 49], [54, 51], [55, 51], [56, 53], [57, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        return \"patternSet{ includes: \" + includeList + \n            \" excludes: \" + excludeList + \" }\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "PatternSet", "code": "    public PatternSet() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.5-7105", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/Template.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Template", "code": "public final class Template extends TopLevelElement {\n\n    private boolean _disabled = false;\n    private boolean _hasParams = false;\n    private boolean _simplified = false;\n\n    public boolean hasParams() {\n\treturn _hasParams;\n    }\n\n    public void hasParams(boolean hasParams) {\n\t_hasParams = hasParams;\n    }\n\n    public boolean isSimplified() {\n\treturn(_simplified);\n    }\n\n    public void setSimplified() {\n\t_simplified = true;\n    }\n\n    public void disable() {\n\t_disabled = true;\n    }\n\n    public boolean disabled() {\n\treturn(_disabled);\n    }\n\n    public double getPriority() {\n\treturn _priority;\n    }\n\n    public int getPosition() {\n\treturn(_position);\n    }\n\n    public boolean isNamed() {\n\treturn _name != null;\n    }\n\n    public Pattern getPattern() {\n\treturn _pattern;\n    }\n\n    public QName getName() {\n\treturn _name;\n    }\n\n    public void setName(QName qname) {\n\tif (_name == null) _name = qname;\n    }\n\n    public QName getModeName() {\n\treturn _mode;\n    }\n\n    /**\n     * Compare this template to another. First checks priority, then position.\n     */\n    public int compareTo(Object template) {\n\tTemplate other = (Template)template;\n\tif (_priority > other._priority)\n\t    return 1;\n\telse if (_priority < other._priority)\n\t    return -1;\n\telse if (_position > other._position)\n\t    return 1;\n\telse if (_position < other._position)\n\t    return -1;\n\telse\n\t    return 0;\n    }\n\n    public void display(int indent) {\n\tUtil.println('\\n');\n\tindent(indent);\n\tif (_name != null) {\n\t    indent(indent);\n\t    Util.println(\"name = \" + _name);\n\t}\n\telse if (_pattern != null) {\n\t    indent(indent);\n\t    Util.println(\"match = \" + _pattern.toString());\n\t}\n\tif (_mode != null) {\n\t    indent(indent);\n\t    Util.println(\"mode = \" + _mode);\n\t}\n\tdisplayContents(indent + IndentIncrement);\n    }\n\n    private boolean resolveNamedTemplates(Template other, Parser parser) {\n\n\tif (other == null) return true;\n\n\tSymbolTable stable = parser.getSymbolTable();\n\n\tfinal int us = this.getImportPrecedence();\n\tfinal int them = other.getImportPrecedence();\n\n\tif (us > them) {\n\t    other.disable();\n\t    return true;\n\t}\n\telse if (us < them) {\n\t    stable.addTemplate(other);\n\t    this.disable();\n\t    return true;\n\t}\n\telse {\n\t    return false;\n\t}\n    }\n\n    private Stylesheet _stylesheet = null;\n\n    public Stylesheet getStylesheet() {\n\treturn _stylesheet;\n    }\n\n    public void parseContents(Parser parser) {\n\n\tfinal String name     = getAttribute(\"name\");\n\tfinal String mode     = getAttribute(\"mode\");\n\tfinal String match    = getAttribute(\"match\");\n\tfinal String priority = getAttribute(\"priority\");\n\n\t_stylesheet = super.getStylesheet();\n\n\tif (name.length() > 0) {\n\t    _name = parser.getQNameIgnoreDefaultNs(name);\n\t}\n\t\n\tif (mode.length() > 0) {\n\t    _mode = parser.getQNameIgnoreDefaultNs(mode);\n\t}\n\t\n\tif (match.length() > 0) {\n\t    _pattern = parser.parsePattern(this, \"match\", null);\n\t}\n\n\tif (priority.length() > 0) {\n\t    _priority = Double.parseDouble(priority);\n\t}\n\telse {\n\t    if (_pattern != null)\n\t\t_priority = _pattern.getPriority();\n\t    else\n\t\t_priority = Double.NaN;\n\t}\n\n\t_position = parser.getTemplateIndex();\n\n\tif (_name != null) {\n\t    Template other = parser.getSymbolTable().addTemplate(this);\n\t    if (!resolveNamedTemplates(other, parser)) {\n\t\tErrorMsg err =\n\t\t    new ErrorMsg(ErrorMsg.TEMPLATE_REDEF_ERR, _name, this);\n\t\tparser.reportError(Constants.ERROR, err);\n\t    }\n\t}\n\n\tparseChildren(parser);\n    }\n\n    /**\n     * When the parser realises that it is dealign with a simplified stylesheet\n     * it will create an empty Stylesheet object with the root element of the\n     * stylesheet (a LiteralElement object) as its only child. The Stylesheet\n     * object will then create this Template object and invoke this method to\n     * force some specific behaviour. What we need to do is:\n     *  o) create a pattern matching on the root node\n     *  o) add the LRE root node (the only child of the Stylesheet) as our\n     *     only child node\n     *  o) set the empty Stylesheet as our parent\n     *  o) set this template as the Stylesheet's only child\n     */\n    public void parseSimplified(Stylesheet stylesheet, Parser parser) {\n\n\t_stylesheet = stylesheet;\n\tsetParent(stylesheet);\n\n\t_name = null;\n\t_mode = null;\n\t_priority = Double.NaN;\n\t_pattern = parser.parsePattern(this, \"/\");\n\n\tfinal Vector contents = _stylesheet.getContents();\n\tfinal SyntaxTreeNode root = (SyntaxTreeNode)contents.elementAt(0);\n\n\tif (root instanceof LiteralElement) {\n\t    addElement(root);\n\t    root.setParent(this);\n\t    contents.set(0, this);\n\t    parser.setTemplate(this);\n\t    root.parseContents(parser);\n\t    parser.setTemplate(null);\n\t}\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_pattern != null) {\n\t    _pattern.typeCheck(stable);\n\t}\n\n\treturn typeCheckContents(stable);\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_disabled) return;\n\tString className = classGen.getClassName();\n\n\tif (_compiled && isNamed()){\n\t    String methodName = Util.escape(_name.toString());\n\t    il.append(classGen.loadTranslet());\n\t    il.append(methodGen.loadDOM());\n\t    il.append(methodGen.loadIterator());\n\t    il.append(methodGen.loadHandler()); \n\t    il.append(methodGen.loadCurrentNode()); \n\t    il.append(new INVOKEVIRTUAL(cpg.addMethodref(className,\n\t\t\t\t\t\t\t methodName,\n\t\t\t\t\t\t\t \"(\"\n\t\t\t\t\t\t\t + DOM_INTF_SIG\n\t\t\t\t\t\t\t + NODE_ITERATOR_SIG\n\t\t\t\t\t\t\t + TRANSLET_OUTPUT_SIG\n\t\t\t\t\t\t\t + \"I)V\")));\n\t    return;\n\t}\n\n\tif (_compiled) return;\n\t_compiled = true; \n\t\n\tfinal InstructionHandle start = il.getEnd();\n\ttranslateContents(classGen, methodGen);\n\tfinal InstructionHandle end = il.getEnd();\n\til.setPositions(true);", "functions": [{"function_name": "hasParams", "code": "    public boolean hasParams() {\n\treturn _hasParams;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hasParams", "code": "    public void hasParams(boolean hasParams) {\n\t_hasParams = hasParams;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSimplified", "code": "    public boolean isSimplified() {\n\treturn(_simplified);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSimplified", "code": "    public void setSimplified() {\n\t_simplified = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "disable", "code": "    public void disable() {\n\t_disabled = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "disabled", "code": "    public boolean disabled() {\n\treturn(_disabled);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPriority", "code": "    public double getPriority() {\n\treturn _priority;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPosition", "code": "    public int getPosition() {\n\treturn(_position);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isNamed", "code": "    public boolean isNamed() {\n\treturn _name != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPattern", "code": "    public Pattern getPattern() {\n\treturn _pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "    public QName getName() {\n\treturn _name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(QName qname) {\n\tif (_name == null) _name = qname;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getModeName", "code": "    public QName getModeName() {\n\treturn _mode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compareTo", "code": "    public int compareTo(Object template) {\n\tTemplate other = (Template)template;\n\tif (_priority > other._priority)\n\t    return 1;\n\telse if (_priority < other._priority)\n\t    return -1;\n\telse if (_position > other._position)\n\t    return 1;\n\telse if (_position < other._position)\n\t    return -1;\n\telse\n\t    return 0;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [5, 10], [7, 11], [7, 12], [7, 13], [8, 14], [11, 15], [11, 16], [11, 17], [12, 18], [15, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 5], [11, 7], [12, 7], [13, 7], [14, 8], [15, 11], [16, 11], [17, 11], [18, 12], [19, 15], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "display", "code": "    public void display(int indent) {\n\tUtil.println('\\n');\n\tindent(indent);\n\tif (_name != null) {\n\t    indent(indent);\n\t    Util.println(\"name = \" + _name);\n\t}\n\telse if (_pattern != null) {\n\t    indent(indent);\n\t    Util.println(\"match = \" + _pattern.toString());\n\t}\n\tif (_mode != null) {\n\t    indent(indent);\n\t    Util.println(\"mode = \" + _mode);\n\t}\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [7, 13], [9, 14], [1, 15], [1, 16], [12, 17], [2, 18], [2, 19], [15, 20], [6, 21], [6, 22], [18, 23], [20, 24], [21, 25], [23, 26], [25, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 7], [14, 9], [15, 1], [16, 1], [17, 12], [18, 2], [19, 2], [20, 15], [21, 6], [22, 6], [23, 18], [24, 20], [25, 21], [26, 23], [27, 25], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "resolveNamedTemplates", "code": "    private boolean resolveNamedTemplates(Template other, Parser parser) {\n\n\tif (other == null) return true;\n\n\tSymbolTable stable = parser.getSymbolTable();\n\n\tfinal int us = this.getImportPrecedence();\n\tfinal int them = other.getImportPrecedence();\n\n\tif (us > them) {\n\t    other.disable();\n\t    return true;\n\t}\n\telse if (us < them) {\n\t    stable.addTemplate(other);\n\t    this.disable();\n\t    return true;\n\t}\n\telse {\n\t    return false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [5, 10], [5, 11], [8, 12], [1, 13], [2, 14], [4, 15], [10, 16], [11, 17], [8, 18], [8, 19], [13, 20], [1, 21], [3, 22], [18, 23], [19, 24], [8, 25], [8, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 5], [11, 5], [12, 8], [13, 1], [14, 2], [15, 4], [16, 10], [17, 11], [18, 8], [19, 8], [20, 13], [21, 1], [22, 3], [23, 18], [24, 19], [25, 8], [26, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getStylesheet", "code": "    public Stylesheet getStylesheet() {\n\treturn _stylesheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\n\tfinal String name     = getAttribute(\"name\");\n\tfinal String mode     = getAttribute(\"mode\");\n\tfinal String match    = getAttribute(\"match\");\n\tfinal String priority = getAttribute(\"priority\");\n\n\t_stylesheet = super.getStylesheet();\n\n\tif (name.length() > 0) {\n\t    _name = parser.getQNameIgnoreDefaultNs(name);\n\t}\n\t\n\tif (mode.length() > 0) {\n\t    _mode = parser.getQNameIgnoreDefaultNs(mode);\n\t}\n\t\n\tif (match.length() > 0) {\n\t    _pattern = parser.parsePattern(this, \"match\", null);\n\t}\n\n\tif (priority.length() > 0) {\n\t    _priority = Double.parseDouble(priority);\n\t}\n\telse {\n\t    if (_pattern != null)\n\t\t_priority = _pattern.getPriority();\n\t    else\n\t\t_priority = Double.NaN;\n\t}\n\n\t_position = parser.getTemplateIndex();\n\n\tif (_name != null) {\n\t    Template other = parser.getSymbolTable().addTemplate(this);\n\t    if (!resolveNamedTemplates(other, parser)) {\n\t\tErrorMsg err =\n\t\t    new ErrorMsg(ErrorMsg.TEMPLATE_REDEF_ERR, _name, this);\n\t\tparser.reportError(Constants.ERROR, err);\n\t    }\n\t}\n\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [2, 14], [3, 15], [4, 16], [5, 17], [0, 18], [1, 19], [1, 20], [12, 21], [13, 22], [2, 23], [14, 24], [14, 25], [15, 26], [15, 27], [16, 28], [16, 29], [17, 30], [17, 31], [6, 32], [7, 33], [8, 34], [9, 35], [19, 36], [23, 37], [2, 38], [3, 39], [4, 40], [5, 41], [32, 42], [33, 43], [34, 44], [35, 45], [19, 46], [20, 47], [23, 48], [23, 49], [37, 50], [38, 51], [39, 52], [40, 53], [41, 54], [19, 55], [47, 56], [49, 57], [52, 58], [52, 59], [46, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 2], [15, 3], [16, 4], [17, 5], [18, 0], [19, 1], [20, 1], [21, 12], [22, 13], [23, 2], [24, 14], [25, 14], [26, 15], [27, 15], [28, 16], [29, 16], [30, 17], [31, 17], [32, 6], [33, 7], [34, 8], [35, 9], [36, 19], [37, 23], [38, 2], [39, 3], [40, 4], [41, 5], [42, 32], [43, 33], [44, 34], [45, 35], [46, 19], [47, 20], [48, 23], [49, 23], [50, 37], [51, 38], [52, 39], [53, 40], [54, 41], [55, 19], [56, 47], [57, 49], [58, 52], [59, 52], [60, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "parseSimplified", "code": "    public void parseSimplified(Stylesheet stylesheet, Parser parser) {\n\n\t_stylesheet = stylesheet;\n\tsetParent(stylesheet);\n\n\t_name = null;\n\t_mode = null;\n\t_priority = Double.NaN;\n\t_pattern = parser.parsePattern(this, \"/\");\n\n\tfinal Vector contents = _stylesheet.getContents();\n\tfinal SyntaxTreeNode root = (SyntaxTreeNode)contents.elementAt(0);\n\n\tif (root instanceof LiteralElement) {\n\t    addElement(root);\n\t    root.setParent(this);\n\t    contents.set(0, this);\n\t    parser.setTemplate(this);\n\t    root.parseContents(parser);\n\t    parser.setTemplate(null);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [3, 13], [7, 14], [9, 15], [10, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [2, 23], [14, 24], [17, 25], [20, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 3], [14, 7], [15, 9], [16, 10], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 2], [24, 14], [25, 17], [26, 20], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_pattern != null) {\n\t    _pattern.typeCheck(stable);\n\t}\n\n\treturn typeCheckContents(stable);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_disabled) return;\n\tString className = classGen.getClassName();\n\n\tif (_compiled && isNamed()){\n\t    String methodName = Util.escape(_name.toString());\n\t    il.append(classGen.loadTranslet());\n\t    il.append(methodGen.loadDOM());\n\t    il.append(methodGen.loadIterator());\n\t    il.append(methodGen.loadHandler()); \n\t    il.append(methodGen.loadCurrentNode()); \n\t    il.append(new INVOKEVIRTUAL(cpg.addMethodref(className,\n\t\t\t\t\t\t\t methodName,\n\t\t\t\t\t\t\t \"(\"\n\t\t\t\t\t\t\t + DOM_INTF_SIG\n\t\t\t\t\t\t\t + NODE_ITERATOR_SIG\n\t\t\t\t\t\t\t + TRANSLET_OUTPUT_SIG\n\t\t\t\t\t\t\t + \"I)V\")));\n\t    return;\n\t}\n\n\tif (_compiled) return;\n\t_compiled = true; \n\t\n\tfinal InstructionHandle start = il.getEnd();\n\ttranslateContents(classGen, methodGen);\n\tfinal InstructionHandle end = il.getEnd();\n\til.setPositions(true);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [4, 15], [6, 16], [11, 17], [1, 18], [2, 19], [13, 20], [4, 21], [4, 22], [15, 23], [5, 24], [7, 25], [8, 26], [4, 27], [4, 28], [4, 29], [4, 30], [4, 31], [4, 32], [27, 33], [28, 34], [29, 35], [30, 36], [31, 37], [32, 38], [22, 39], [33, 40], [39, 41], [40, 42], [42, 43], [42, 44], [44, 45], [45, 46], [46, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 4], [16, 6], [17, 11], [18, 1], [19, 2], [20, 13], [21, 4], [22, 4], [23, 15], [24, 5], [25, 7], [26, 8], [27, 4], [28, 4], [29, 4], [30, 4], [31, 4], [32, 4], [33, 27], [34, 28], [35, 29], [36, 30], [37, 31], [38, 32], [39, 22], [40, 33], [41, 39], [42, 40], [43, 42], [44, 42], [45, 44], [46, 45], [47, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}], "label": 1}
{"sample_id": "camel-1.2-1874", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/loadbalancer/StickyLoadBalancer.java", "language": "java", "name": "org.apache.camel.processor.loadbalancer.StickyLoadBalancer", "code": "public class StickyLoadBalancer extends QueueLoadBalancer {\n    private Expression<Exchange> correlationExpression;\n    private QueueLoadBalancer loadBalancer;\n    private int numberOfHashGroups = 64 * 1024;\n    private Map<Object, Processor> stickyMap = new HashMap<Object, Processor>();\n\n    public StickyLoadBalancer(Expression<Exchange> correlationExpression) {\n        this(correlationExpression, new RoundRobinLoadBalancer());\n    }\n\n    public StickyLoadBalancer(Expression<Exchange> correlationExpression, QueueLoadBalancer loadBalancer) {\n        this.correlationExpression = correlationExpression;\n        this.loadBalancer = loadBalancer;\n    }\n\n    protected synchronized Processor chooseProcessor(List<Processor> processors, Exchange exchange) {\n        Object value = correlationExpression.evaluate(exchange);\n        Object key = getStickyKey(value);\n\n        Processor processor;\n        synchronized (stickyMap) {\n            processor = stickyMap.get(key);\n            if (processor == null) {\n                processor = loadBalancer.chooseProcessor(processors, exchange);\n                stickyMap.put(key, processor);\n            }\n        }\n        return processor;\n    }\n\n    @Override\n    public void removeProcessor(Processor processor) {\n        synchronized (stickyMap) {\n            Iterator<Map.Entry<Object, Processor>> iter = stickyMap.entrySet().iterator();\n            while (iter.hasNext()) {\n                Map.Entry<Object, Processor> entry = iter.next();\n                if (processor.equals(entry.getValue())) {\n                    iter.remove();\n                }\n            }\n        }\n        super.removeProcessor(processor);\n    }\n\n\n    public int getNumberOfHashGroups() {\n        return numberOfHashGroups;\n    }\n\n    public void setNumberOfHashGroups(int numberOfHashGroups) {\n        this.numberOfHashGroups = numberOfHashGroups;\n    }\n\n\n    /**\n     * A strategy to create the key for the sticky load balancing map.\n     * The default implementation uses the hash code of the value\n     * then modulos by the numberOfHashGroups to avoid the sticky map getting too big\n     *\n     * @param value the correlation value\n     * @return the key to be used in the sticky map\n     */\n    protected Object getStickyKey(Object value) {\n        int hashCode = 37;\n        if (value != null) {\n            hashCode = value.hashCode();\n        }\n        if (numberOfHashGroups > 0) {\n            hashCode = hashCode % numberOfHashGroups;\n        }\n        return hashCode;", "functions": [{"function_name": "chooseProcessor", "code": "    protected synchronized Processor chooseProcessor(List<Processor> processors, Exchange exchange) {\n        Object value = correlationExpression.evaluate(exchange);\n        Object key = getStickyKey(value);\n\n        Processor processor;\n        synchronized (stickyMap) {\n            processor = stickyMap.get(key);\n            if (processor == null) {\n                processor = loadBalancer.chooseProcessor(processors, exchange);\n                stickyMap.put(key, processor);\n            }\n        }\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [0, 9], [3, 10], [4, 11], [8, 12], [9, 13], [7, 14], [7, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [9, 0], [10, 3], [11, 4], [12, 8], [13, 9], [14, 7], [15, 7], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "removeProcessor", "code": "    @Override\n    public void removeProcessor(Processor processor) {\n        synchronized (stickyMap) {\n            Iterator<Map.Entry<Object, Processor>> iter = stickyMap.entrySet().iterator();\n            while (iter.hasNext()) {\n                Map.Entry<Object, Processor> entry = iter.next();\n                if (processor.equals(entry.getValue())) {\n                    iter.remove();\n                }\n            }\n        }\n        super.removeProcessor(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "LOOP", "VAR_DECL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [3, 7], [5, 8], [7, 9], [8, 10], [6, 11], [5, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 3], [8, 5], [9, 7], [10, 8], [11, 6], [12, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getNumberOfHashGroups", "code": "    public int getNumberOfHashGroups() {\n        return numberOfHashGroups;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNumberOfHashGroups", "code": "    public void setNumberOfHashGroups(int numberOfHashGroups) {\n        this.numberOfHashGroups = numberOfHashGroups;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStickyKey", "code": "    protected Object getStickyKey(Object value) {\n        int hashCode = 37;\n        if (value != null) {\n            hashCode = value.hashCode();\n        }\n        if (numberOfHashGroups > 0) {\n            hashCode = hashCode % numberOfHashGroups;\n        }\n        return hashCode;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [6, 8], [7, 9], [4, 10], [2, 11], [3, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 6], [9, 7], [10, 4], [11, 2], [12, 3], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "StickyLoadBalancer", "code": "    public StickyLoadBalancer(Expression<Exchange> correlationExpression) {\n        this(correlationExpression, new RoundRobinLoadBalancer());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "StickyLoadBalancer", "code": "    public StickyLoadBalancer(Expression<Exchange> correlationExpression, QueueLoadBalancer loadBalancer) {\n        this.correlationExpression = correlationExpression;\n        this.loadBalancer = loadBalancer;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-2.5-5774", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/poifs/filesystem/POIFSFileSystem.java", "language": "java", "name": "org.apache.poi.poifs.filesystem.POIFSFileSystem", "code": "public class POIFSFileSystem\n    implements POIFSViewable\n{\n    private PropertyTable _property_table;\n    private List          _documents;\n    private DirectoryNode _root;\n\n    /**\n     * Constructor, intended for writing\n     */\n\n    public POIFSFileSystem()\n    {\n        _property_table = new PropertyTable();\n        _documents      = new ArrayList();\n        _root           = null;\n    }\n\n    /**\n     * Create a POIFSFileSystem from an InputStream\n     *\n     * @param stream the InputStream from which to read the data\n     *\n     * @exception IOException on errors reading, or on invalid data\n     */\n\n    public POIFSFileSystem(final InputStream stream)\n        throws IOException\n    {\n        this();\n\n        HeaderBlockReader header_block_reader = new HeaderBlockReader(stream);\n\n        RawDataBlockList  data_blocks         = new RawDataBlockList(stream);\n\n        new BlockAllocationTableReader(header_block_reader.getBATCount(),\n                                       header_block_reader.getBATArray(),\n                                       header_block_reader.getXBATCount(),\n                                       header_block_reader.getXBATIndex(),\n                                       data_blocks);\n\n        PropertyTable properties =\n            new PropertyTable(header_block_reader.getPropertyStart(),\n                              data_blocks);\n\n        processProperties(SmallBlockTableReader\n            .getSmallDocumentBlocks(data_blocks, properties\n                .getRoot(), header_block_reader\n                    .getSBATStart()), data_blocks, properties.getRoot()\n                        .getChildren(), null);\n    }\n\n    /**\n     * Create a new document to be added to the root directory\n     *\n     * @param stream the InputStream from which the document's data\n     *               will be obtained\n     * @param name the name of the new POIFSDocument\n     *\n     * @return the new DocumentEntry\n     *\n     * @exception IOException on error creating the new POIFSDocument\n     */\n\n    public DocumentEntry createDocument(final InputStream stream,\n                                        final String name)\n        throws IOException\n    {\n        return getRoot().createDocument(name, stream);\n    }\n\n    /**\n     * create a new DocumentEntry in the root entry; the data will be\n     * provided later\n     *\n     * @param name the name of the new DocumentEntry\n     * @param size the size of the new DocumentEntry\n     * @param writer the writer of the new DocumentEntry\n     *\n     * @return the new DocumentEntry\n     *\n     * @exception IOException\n     */\n\n    public DocumentEntry createDocument(final String name, final int size,\n                                        final POIFSWriterListener writer)\n        throws IOException\n    {\n        return getRoot().createDocument(name, size, writer);\n    }\n\n    /**\n     * create a new DirectoryEntry in the root directory\n     *\n     * @param name the name of the new DirectoryEntry\n     *\n     * @return the new DirectoryEntry\n     *\n     * @exception IOException on name duplication\n     */\n\n    public DirectoryEntry createDirectory(final String name)\n        throws IOException\n    {\n        return getRoot().createDirectory(name);\n    }\n\n    /**\n     * Write the filesystem out\n     *\n     * @param stream the OutputStream to which the filesystem will be\n     *               written\n     *\n     * @exception IOException thrown on errors writing to the stream\n     */\n\n    public void writeFilesystem(final OutputStream stream)\n        throws IOException\n    {\n\n        _property_table.preWrite();\n\n        SmallBlockTableWriter      sbtw       =\n            new SmallBlockTableWriter(_documents, _property_table.getRoot());\n\n        BlockAllocationTableWriter bat        =\n            new BlockAllocationTableWriter();\n\n        List                       bm_objects = new ArrayList();\n\n        bm_objects.addAll(_documents);\n        bm_objects.add(_property_table);\n        bm_objects.add(sbtw);\n        bm_objects.add(sbtw.getSBAT());\n\n        Iterator iter = bm_objects.iterator();\n\n        while (iter.hasNext())\n        {\n            BATManaged bmo         = ( BATManaged ) iter.next();\n            int        block_count = bmo.countBlocks();\n\n            if (block_count != 0)\n            {\n                bmo.setStartBlock(bat.allocateSpace(block_count));\n            }\n            else\n            {\n\n            }\n        }\n\n        int               batStartBlock       = bat.createBlocks();\n\n        HeaderBlockWriter header_block_writer = new HeaderBlockWriter();\n        BATBlock[]        xbat_blocks         =\n            header_block_writer.setBATBlocks(bat.countBlocks(),\n                                             batStartBlock);\n\n        header_block_writer.setPropertyStart(_property_table.getStartBlock());\n\n        header_block_writer.setSBATStart(sbtw.getSBAT().getStartBlock());\n\n        header_block_writer.setSBATBlockCount(sbtw.getSBATBlockCount());\n\n        List writers = new ArrayList();\n\n        writers.add(header_block_writer);\n        writers.addAll(_documents);\n        writers.add(_property_table);\n        writers.add(sbtw);\n        writers.add(sbtw.getSBAT());\n        writers.add(bat);\n        for (int j = 0; j < xbat_blocks.length; j++)\n        {\n            writers.add(xbat_blocks[ j ]);\n        }\n\n        iter = writers.iterator();\n        while (iter.hasNext())\n        {\n            BlockWritable writer = ( BlockWritable ) iter.next();\n\n            writer.writeBlocks(stream);\n        }\n    }\n\n    /**\n     * read in a file and write it back out again\n     *\n     * @param args names of the files; arg[ 0 ] is the input file,\n     *             arg[ 1 ] is the output file\n     *\n     * @exception IOException\n     */\n\n    public static void main(String args[])\n        throws IOException\n    {\n        if (args.length != 2)\n        {\n            System.err.println(\n                \"two arguments required: input filename and output filename\");\n            System.exit(1);\n        }\n        FileInputStream  istream = new FileInputStream(args[ 0 ]);\n        FileOutputStream ostream = new FileOutputStream(args[ 1 ]);\n\n        new POIFSFileSystem(istream).writeFilesystem(ostream);\n        istream.close();\n        ostream.close();\n    }\n\n    /**\n     * get the root entry\n     *\n     * @return the root entry\n     */\n\n    public DirectoryEntry getRoot()\n    {\n        if (_root == null)\n        {\n            _root = new DirectoryNode(_property_table.getRoot(), this, null);\n        }\n        return _root;\n    }\n\n    /**\n     * open a document in the root entry's list of entries\n     *\n     * @param documentName the name of the document to be opened\n     *\n     * @return a newly opened DocumentInputStream\n     *\n     * @exception IOException if the document does not exist or the\n     *            name is that of a DirectoryEntry\n     */\n\n    public DocumentInputStream createDocumentInputStream(\n            final String documentName)\n        throws IOException\n    {\n        Entry document = getRoot().getEntry(documentName);\n\n        if (!document.isDocumentEntry())\n        {\n            throw new IOException(\"Entry '\" + documentName\n                                  + \"' is not a DocumentEntry\");\n        }\n        return new DocumentInputStream(( DocumentEntry ) document);\n    }\n\n    /**\n     * add a new POIFSDocument\n     *\n     * @param document the POIFSDocument being added\n     */\n\n    void addDocument(final POIFSDocument document)\n    {\n        _documents.add(document);\n        _property_table.addProperty(document.getDocumentProperty());\n    }\n\n    /**\n     * add a new DirectoryProperty\n     *\n     * @param directory the DirectoryProperty being added\n     */\n\n    void addDirectory(final DirectoryProperty directory)\n    {\n        _property_table.addProperty(directory);\n    }\n\n    /**\n     * remove an entry\n     *\n     * @param entry to be removed\n     */\n\n    void remove(EntryNode entry)\n    {\n        _property_table.removeProperty(entry.getProperty());\n        if (entry.isDocumentEntry())\n        {\n            _documents.remove((( DocumentNode ) entry).getDocument());\n        }\n    }\n\n    private void processProperties(final BlockList small_blocks,\n                                   final BlockList big_blocks,\n                                   final Iterator properties,\n                                   final DirectoryNode dir)\n        throws IOException\n    {\n        while (properties.hasNext())\n        {\n            Property      property = ( Property ) properties.next();\n            String        name     = property.getName();\n            DirectoryNode parent   = (dir == null)\n                                     ? (( DirectoryNode ) getRoot())\n                                     : dir;\n\n            if (property.isDirectory())\n            {\n                DirectoryNode new_dir =\n                    ( DirectoryNode ) parent.createDirectory(name);\n\n                new_dir.setStorageClsid( property.getStorageClsid() );\n\n                processProperties(\n                    small_blocks, big_blocks,\n                    (( DirectoryProperty ) property).getChildren(), new_dir);\n            }\n            else\n            {\n                int           startBlock = property.getStartBlock();\n                int           size       = property.getSize();\n                POIFSDocument document   = null;\n\n                if (property.shouldUseSmallBlocks())\n                {\n                    document =\n                        new POIFSDocument(name, small_blocks\n                            .fetchBlocks(startBlock), size);\n                }\n                else\n                {\n                    document =\n                        new POIFSDocument(name,\n                                          big_blocks.fetchBlocks(startBlock),\n                                          size);\n                }\n                parent.createDocument(document);\n            }\n        }\n    }\n\n    /* ********** START begin implementation of POIFSViewable ********** */\n\n    /**\n     * Get an array of objects, some of which may implement\n     * POIFSViewable\n     *\n     * @return an array of Object; may not be null, but may be empty\n     */\n\n    public Object [] getViewableArray()\n    {\n        if (preferArray())\n        {\n            return (( POIFSViewable ) getRoot()).getViewableArray();\n        }\n        else\n        {\n            return new Object[ 0 ];\n        }\n    }\n\n    /**\n     * Get an Iterator of objects, some of which may implement\n     * POIFSViewable\n     *\n     * @return an Iterator; may not be null, but may have an empty\n     * back end store\n     */\n\n    public Iterator getViewableIterator()\n    {\n        if (!preferArray())\n        {\n            return (( POIFSViewable ) getRoot()).getViewableIterator();\n        }\n        else\n        {\n            return Collections.EMPTY_LIST.iterator();\n        }\n    }\n\n    /**\n     * Give viewers a hint as to whether to call getViewableArray or\n     * getViewableIterator\n     *\n     * @return true if a viewer should call getViewableArray, false if\n     *         a viewer should call getViewableIterator\n     */\n\n    public boolean preferArray()\n    {\n        return (( POIFSViewable ) getRoot()).preferArray();\n    }\n\n    /**\n     * Provides a short description of the object, to be used when a\n     * POIFSViewable object has not provided its contents.\n     *\n     * @return short description\n     */\n\n    public String getShortDescription()\n    {\n        return \"POIFS FileSystem\";", "functions": [{"function_name": "createDocument", "code": "    public DocumentEntry createDocument(final InputStream stream,\n                                        final String name)\n        throws IOException\n    {\n        return getRoot().createDocument(name, stream);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createDocument", "code": "    public DocumentEntry createDocument(final String name, final int size,\n                                        final POIFSWriterListener writer)\n        throws IOException\n    {\n        return getRoot().createDocument(name, size, writer);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createDirectory", "code": "    public DirectoryEntry createDirectory(final String name)\n        throws IOException\n    {\n        return getRoot().createDirectory(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "writeFilesystem", "code": "    public void writeFilesystem(final OutputStream stream)\n        throws IOException\n    {\n\n        _property_table.preWrite();\n\n        SmallBlockTableWriter      sbtw       =\n            new SmallBlockTableWriter(_documents, _property_table.getRoot());\n\n        BlockAllocationTableWriter bat        =\n            new BlockAllocationTableWriter();\n\n        List                       bm_objects = new ArrayList();\n\n        bm_objects.addAll(_documents);\n        bm_objects.add(_property_table);\n        bm_objects.add(sbtw);\n        bm_objects.add(sbtw.getSBAT());\n\n        Iterator iter = bm_objects.iterator();\n\n        while (iter.hasNext())\n        {\n            BATManaged bmo         = ( BATManaged ) iter.next();\n            int        block_count = bmo.countBlocks();\n\n            if (block_count != 0)\n            {\n                bmo.setStartBlock(bat.allocateSpace(block_count));\n            }\n            else\n            {\n\n            }\n        }\n\n        int               batStartBlock       = bat.createBlocks();\n\n        HeaderBlockWriter header_block_writer = new HeaderBlockWriter();\n        BATBlock[]        xbat_blocks         =\n            header_block_writer.setBATBlocks(bat.countBlocks(),\n                                             batStartBlock);\n\n        header_block_writer.setPropertyStart(_property_table.getStartBlock());\n\n        header_block_writer.setSBATStart(sbtw.getSBAT().getStartBlock());\n\n        header_block_writer.setSBATBlockCount(sbtw.getSBATBlockCount());\n\n        List writers = new ArrayList();\n\n        writers.add(header_block_writer);\n        writers.addAll(_documents);\n        writers.add(_property_table);\n        writers.add(sbtw);\n        writers.add(sbtw.getSBAT());\n        writers.add(bat);\n        for (int j = 0; j < xbat_blocks.length; j++)\n        {\n            writers.add(xbat_blocks[ j ]);\n        }\n\n        iter = writers.iterator();\n        while (iter.hasNext())\n        {\n            BlockWritable writer = ( BlockWritable ) iter.next();\n\n            writer.writeBlocks(stream);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [0, 14], [2, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [7, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [1, 31], [14, 32], [17, 33], [3, 34], [22, 35], [23, 36], [24, 37], [4, 38], [5, 39], [6, 40], [7, 41], [7, 42], [7, 43], [8, 44], [26, 45], [9, 46], [10, 47], [11, 48], [1, 49], [2, 50], [2, 51], [36, 52], [38, 53], [41, 54], [48, 55], [54, 56], [42, 57], [31, 58], [41, 59], [43, 60], [59, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 0], [15, 2], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 7], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 1], [32, 14], [33, 17], [34, 3], [35, 22], [36, 23], [37, 24], [38, 4], [39, 5], [40, 6], [41, 7], [42, 7], [43, 7], [44, 8], [45, 26], [46, 9], [47, 10], [48, 11], [49, 1], [50, 2], [51, 2], [52, 36], [53, 38], [54, 41], [55, 48], [56, 54], [57, 42], [58, 31], [59, 41], [60, 43], [61, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "main", "code": "    public static void main(String args[])\n        throws IOException\n    {\n        if (args.length != 2)\n        {\n            System.err.println(\n                \"two arguments required: input filename and output filename\");\n            System.exit(1);\n        }\n        FileInputStream  istream = new FileInputStream(args[ 0 ]);\n        FileOutputStream ostream = new FileOutputStream(args[ 1 ]);\n\n        new POIFSFileSystem(istream).writeFilesystem(ostream);\n        istream.close();\n        ostream.close();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [7, 9], [1, 10], [2, 11], [8, 12], [3, 13], [3, 14], [13, 15], [14, 16], [10, 17], [11, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 7], [10, 1], [11, 2], [12, 8], [13, 3], [14, 3], [15, 13], [16, 14], [17, 10], [18, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getRoot", "code": "    public DirectoryEntry getRoot()\n    {\n        if (_root == null)\n        {\n            _root = new DirectoryNode(_property_table.getRoot(), this, null);\n        }\n        return _root;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "createDocumentInputStream", "code": "    public DocumentInputStream createDocumentInputStream(\n            final String documentName)\n        throws IOException\n    {\n        Entry document = getRoot().getEntry(documentName);\n\n        if (!document.isDocumentEntry())\n        {\n            throw new IOException(\"Entry '\" + documentName\n                                  + \"' is not a DocumentEntry\");\n        }\n        return new DocumentInputStream(( DocumentEntry ) document);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [7, 9], [8, 10], [9, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 7], [10, 8], [11, 9], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addDocument", "code": "    void addDocument(final POIFSDocument document)\n    {\n        _documents.add(document);\n        _property_table.addProperty(document.getDocumentProperty());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addDirectory", "code": "    void addDirectory(final DirectoryProperty directory)\n    {\n        _property_table.addProperty(directory);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "remove", "code": "    void remove(EntryNode entry)\n    {\n        _property_table.removeProperty(entry.getProperty());\n        if (entry.isDocumentEntry())\n        {\n            _documents.remove((( DocumentNode ) entry).getDocument());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "processProperties", "code": "    private void processProperties(final BlockList small_blocks,\n                                   final BlockList big_blocks,\n                                   final Iterator properties,\n                                   final DirectoryNode dir)\n        throws IOException\n    {\n        while (properties.hasNext())\n        {\n            Property      property = ( Property ) properties.next();\n            String        name     = property.getName();\n            DirectoryNode parent   = (dir == null)\n                                     ? (( DirectoryNode ) getRoot())\n                                     : dir;\n\n            if (property.isDirectory())\n            {\n                DirectoryNode new_dir =\n                    ( DirectoryNode ) parent.createDirectory(name);\n\n                new_dir.setStorageClsid( property.getStorageClsid() );\n\n                processProperties(\n                    small_blocks, big_blocks,\n                    (( DirectoryProperty ) property).getChildren(), new_dir);\n            }\n            else\n            {\n                int           startBlock = property.getStartBlock();\n                int           size       = property.getSize();\n                POIFSDocument document   = null;\n\n                if (property.shouldUseSmallBlocks())\n                {\n                    document =\n                        new POIFSDocument(name, small_blocks\n                            .fetchBlocks(startBlock), size);\n                }\n                else\n                {\n                    document =\n                        new POIFSDocument(name,\n                                          big_blocks.fetchBlocks(startBlock),\n                                          size);\n                }\n                parent.createDocument(document);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [8, 17], [9, 18], [7, 19], [12, 20], [7, 21], [7, 22], [17, 23], [10, 24], [13, 25], [14, 26], [15, 27], [22, 28], [17, 29], [23, 30], [12, 31], [12, 32], [16, 33], [31, 34], [32, 35], [34, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 8], [18, 9], [19, 7], [20, 12], [21, 7], [22, 7], [23, 17], [24, 10], [25, 13], [26, 14], [27, 15], [28, 22], [29, 17], [30, 23], [31, 12], [32, 12], [33, 16], [34, 31], [35, 32], [36, 34], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "getViewableArray", "code": "    public Object [] getViewableArray()\n    {\n        if (preferArray())\n        {\n            return (( POIFSViewable ) getRoot()).getViewableArray();\n        }\n        else\n        {\n            return new Object[ 0 ];", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getViewableIterator", "code": "    public Iterator getViewableIterator()\n    {\n        if (!preferArray())\n        {\n            return (( POIFSViewable ) getRoot()).getViewableIterator();\n        }\n        else\n        {\n            return Collections.EMPTY_LIST.iterator();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "preferArray", "code": "    public boolean preferArray()\n    {\n        return (( POIFSViewable ) getRoot()).preferArray();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getShortDescription", "code": "    public String getShortDescription()\n    {\n        return \"POIFS FileSystem\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "POIFSFileSystem", "code": "    public POIFSFileSystem()\n    {\n        _property_table = new PropertyTable();\n        _documents      = new ArrayList();\n        _root           = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "POIFSFileSystem", "code": "    public POIFSFileSystem(final InputStream stream)\n        throws IOException\n    {\n        this();\n\n        HeaderBlockReader header_block_reader = new HeaderBlockReader(stream);\n\n        RawDataBlockList  data_blocks         = new RawDataBlockList(stream);\n\n        new BlockAllocationTableReader(header_block_reader.getBATCount(),\n                                       header_block_reader.getBATArray(),\n                                       header_block_reader.getXBATCount(),\n                                       header_block_reader.getXBATIndex(),\n                                       data_blocks);\n\n        PropertyTable properties =\n            new PropertyTable(header_block_reader.getPropertyStart(),\n                              data_blocks);\n\n        processProperties(SmallBlockTableReader\n            .getSmallDocumentBlocks(data_blocks, properties\n                .getRoot(), header_block_reader\n                    .getSBATStart()), data_blocks, properties.getRoot()\n                        .getChildren(), null);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [5, 8], [5, 9], [1, 10], [6, 11], [6, 12], [6, 13], [6, 14], [2, 15], [3, 16], [8, 17], [9, 18], [9, 19], [10, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 5], [9, 5], [10, 1], [11, 6], [12, 6], [13, 6], [14, 6], [15, 2], [16, 3], [17, 8], [18, 9], [19, 9], [20, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}], "label": 0}
{"sample_id": "jedit-4.3-4747", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/buffer/KillRing.java", "language": "java", "name": "org.gjt.sp.jedit.buffer.KillRing", "code": "public class KillRing implements MutableListModel\n{\n\t//{{{ getInstance() method\n\tpublic static KillRing getInstance()\n\t{\n\t\treturn killRing;\n\t} //}}}\n\n\t//{{{ setInstance() method\n\tpublic static void setInstance(KillRing killRing)\n\t{\n\t\tKillRing.killRing = killRing;\n\t} //}}}\n\n\t//{{{ propertiesChanged() method\n\tpublic void propertiesChanged(int historySize)\n\t{\n\t\tint newSize = Math.max(1, historySize);\n\t\tif(ring == null)\n\t\t\tring = new UndoManager.RemovedContent[newSize];\n\t\telse if(newSize != ring.length)\n\t\t{\n\t\t\tUndoManager.RemovedContent[] newRing = new UndoManager.RemovedContent[\n\t\t\t\tnewSize];\n\t\t\tint newCount = Math.min(getSize(),newSize);\n\t\t\tfor(int i = 0; i < newCount; i++)\n\t\t\t{\n\t\t\t\tnewRing[i] = (UndoManager.RemovedContent)getElementAt(i);\n\t\t\t}\n\t\t\tring = newRing;\n\t\t\tcount = newCount;\n\t\t\twrap = false;\n\t\t}\n\n\t\tif(count == ring.length)\n\t\t{\n\t\t\tcount = 0;\n\t\t\twrap = true;\n\t\t}\n\t} //}}}\n\n\tpublic void load() {}\n\n\tpublic void save() {}\n\n\t//{{{ reset() method\n\t/**\n\t * This method is made to be used by implementation of load()\n\t * method to initialize (or reset) the killring by a loaded\n\t * sequence of objects.\n\t *\n\t * Each element is converted to an element of the killring as\n\t * followings:\n\t *   - If it is a String, it is converted as if it is a result of\n\t *     getElementAt(n).toString().\n\t *   - Otherwise, it is converted as if it is a Object which was\n\t *     obtained by getElementAt(n).\n\t *\n\t * @since jEdit 4.3pre12\n\t */\n\tprotected void reset(List source)\n\t{\n\t\tUndoManager.RemovedContent[] newRing\n\t\t\t= new UndoManager.RemovedContent[source.size()];\n\t\tint i = 0;\n\t\tfor(Object x: source)\n\t\t{\n\t\t\tUndoManager.RemovedContent element;\n\t\t\tif(x instanceof String)\n\t\t\t{\n\t\t\t\telement = new UndoManager.RemovedContent(\n\t\t\t\t\t(String)x);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\telement = (UndoManager.RemovedContent)x;\n\t\t\t}\n\t\t\tnewRing[i++] = element;\n\t\t}\n\t\tring = newRing;\n\t\tcount = 0;\n\t\twrap = true;\n\t} //}}}\n\n\t//{{{ MutableListModel implementation\n\tpublic void addListDataListener(ListDataListener listener) {}\n\n\tpublic void removeListDataListener(ListDataListener listener) {}\n\n\t//{{{ getElementAt() method\n\tpublic Object getElementAt(int index)\n\t{\n\t\treturn ring[virtualToPhysicalIndex(index)];\n\t} //}}}\n\n\t//{{{ getSize() method\n\tpublic int getSize()\n\t{\n\t\tif(wrap)\n\t\t\treturn ring.length;\n\t\telse\n\t\t\treturn count;\n\t} //}}}\n\n\t//{{{ removeElement() method\n\tpublic boolean removeElement(Object value)\n\t{\n\t\tfor(int i = 0; i < getSize(); i++)\n\t\t{\n\t\t\tif(ring[i].equals(value))\n\t\t\t{\n\t\t\t\tremove(i);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ insertElementAt() method\n\tpublic void insertElementAt(Object value, int index)\n\t{\n\t\t/* This is not terribly efficient, but this method is only\n\t\tcalled by the 'Paste Deleted' dialog where the performance\n\t\tis not exactly vital */\n\t\tremove(index);\n\t\tadd((UndoManager.RemovedContent)value);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Package-private members\n\n\t//{{{ changed() method\n\tvoid changed(UndoManager.RemovedContent rem)\n\t{\n\t\tif(rem.inKillRing)\n\t\t{\n\t\t\t// compare existing entries' hashcode with this\n\t\t\tint length = (wrap ? ring.length : count);\n\t\t\tint kill = -1;\n\n\t\t\tfor(int i = 0; i < length; i++)\n\t\t\t{\n\t\t\t\tif(ring[i] != rem\n\t\t\t\t\t&& ring[i].hashcode == rem.hashcode\n\t\t\t\t\t&& ring[i].str.equals(rem.str))\n\t\t\t\t{\n\t\t\t\t\t// we don't want duplicate\n\t\t\t\t\t// entries in the kill ring\n\t\t\t\t\tkill = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(kill != -1)\n\t\t\t\tremove(kill);\n\t\t}\n\t\telse\n\t\t\tadd(rem);\n\t} //}}}\n\n\t//{{{ add() method\n\tvoid add(UndoManager.RemovedContent rem)\n\t{\n\t\t// compare existing entries' hashcode with this\n\t\tint length = (wrap ? ring.length : count);\n\t\tfor(int i = 0; i < length; i++)\n\t\t{\n\t\t\tif(ring[i].hashcode == rem.hashcode)\n\t\t\t{\n\t\t\t\t// strings might be equal!\n\t\t\t\tif(ring[i].str.equals(rem.str))\n\t\t\t\t{\n\t\t\t\t\t// we don't want duplicate entries\n\t\t\t\t\t// in the kill ring\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// no duplicates, check for all-whitespace string\n\t\tboolean allWhitespace = true;\n\t\tfor(int i = 0; i < rem.str.length(); i++)\n\t\t{\n\t\t\tif(!Character.isWhitespace(rem.str.charAt(i)))\n\t\t\t{\n\t\t\t\tallWhitespace = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(allWhitespace)\n\t\t\treturn;\n\n\t\trem.inKillRing = true;\n\n\t\tif(ring[count] != null)\n\t\t\tring[count].inKillRing = false;\n\n\t\tring[count] = rem;\n\t\tif(++count >= ring.length)\n\t\t{\n\t\t\twrap = true;\n\t\t\tcount = 0;\n\t\t}\n\t} //}}}\n\n\t//{{{ remove() method\n\tvoid remove(int i)\n\t{\n\t\tif(wrap)\n\t\t{\n\t\t\tUndoManager.RemovedContent[] newRing = new UndoManager.RemovedContent[\n\t\t\t\tring.length];\n\t\t\tint newCount = 0;\n\t\t\tfor(int j = 0; j < ring.length; j++)\n\t\t\t{\n\t\t\t\tint index = virtualToPhysicalIndex(j);\n\n\t\t\t\tif(i == index)\n\t\t\t\t{\n\t\t\t\t\tring[index].inKillRing = false;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tnewRing[newCount++] = ring[index];\n\t\t\t}\n\t\t\tring = newRing;\n\t\t\tcount = newCount;\n\t\t\twrap = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.arraycopy(ring,i + 1,ring,i,count - i - 1);\n\t\t\tcount--;\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\tprivate UndoManager.RemovedContent[] ring;\n\tprivate int count;\n\tprivate boolean wrap;\n\tprivate static KillRing killRing = new KillRing();\n\n\t//{{{ virtualToPhysicalIndex() method\n\t/**\n\t * Since the kill ring has a wrap-around representation, we need to\n\t * convert user-visible indices to actual indices in the array.\n\t */\n\tprivate int virtualToPhysicalIndex(int index)\n\t{\n\t\tif(wrap)\n\t\t{\n\t\t\tif(index < count)\n\t\t\t\treturn count - index - 1;\n\t\t\telse\n\t\t\t\treturn count + ring.length - index - 1;\n\t\t}\n\t\telse\n\t\t\treturn count - index - 1;", "functions": [{"function_name": "getInstance", "code": "\tpublic static KillRing getInstance()\n\t{\n\t\treturn killRing;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInstance", "code": "\tpublic static void setInstance(KillRing killRing)\n\t{\n\t\tKillRing.killRing = killRing;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "propertiesChanged", "code": "\tpublic void propertiesChanged(int historySize)\n\t{\n\t\tint newSize = Math.max(1, historySize);\n\t\tif(ring == null)\n\t\t\tring = new UndoManager.RemovedContent[newSize];\n\t\telse if(newSize != ring.length)\n\t\t{\n\t\t\tUndoManager.RemovedContent[] newRing = new UndoManager.RemovedContent[\n\t\t\t\tnewSize];\n\t\t\tint newCount = Math.min(getSize(),newSize);\n\t\t\tfor(int i = 0; i < newCount; i++)\n\t\t\t{\n\t\t\t\tnewRing[i] = (UndoManager.RemovedContent)getElementAt(i);\n\t\t\t}\n\t\t\tring = newRing;\n\t\t\tcount = newCount;\n\t\t\twrap = false;\n\t\t}\n\n\t\tif(count == ring.length)\n\t\t{\n\t\t\tcount = 0;\n\t\t\twrap = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [2, 9], [7, 10], [3, 11], [1, 12], [1, 13], [6, 14], [6, 15], [6, 16], [11, 17], [12, 18], [13, 19], [6, 20], [6, 21], [6, 22], [14, 23], [20, 24], [15, 25], [14, 26], [14, 27], [25, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 2], [10, 7], [11, 3], [12, 1], [13, 1], [14, 6], [15, 6], [16, 6], [17, 11], [18, 12], [19, 13], [20, 6], [21, 6], [22, 6], [23, 14], [24, 20], [25, 15], [26, 14], [27, 14], [28, 25], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "load", "code": "\tpublic void load() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "save", "code": "\tpublic void save() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "reset", "code": "\tprotected void reset(List source)\n\t{\n\t\tUndoManager.RemovedContent[] newRing\n\t\t\t= new UndoManager.RemovedContent[source.size()];\n\t\tint i = 0;\n\t\tfor(Object x: source)\n\t\t{\n\t\t\tUndoManager.RemovedContent element;\n\t\t\tif(x instanceof String)\n\t\t\t{\n\t\t\t\telement = new UndoManager.RemovedContent(\n\t\t\t\t\t(String)x);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\telement = (UndoManager.RemovedContent)x;\n\t\t\t}\n\t\t\tnewRing[i++] = element;\n\t\t}\n\t\tring = newRing;\n\t\tcount = 0;\n\t\twrap = true;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [1, 10], [1, 11], [2, 12], [1, 13], [10, 14], [3, 15], [10, 16], [10, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 1], [11, 1], [12, 2], [13, 1], [14, 10], [15, 3], [16, 10], [17, 10], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "addListDataListener", "code": "\tpublic void addListDataListener(ListDataListener listener) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "removeListDataListener", "code": "\tpublic void removeListDataListener(ListDataListener listener) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getElementAt", "code": "\tpublic Object getElementAt(int index)\n\t{\n\t\treturn ring[virtualToPhysicalIndex(index)];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSize", "code": "\tpublic int getSize()\n\t{\n\t\tif(wrap)\n\t\t\treturn ring.length;\n\t\telse\n\t\t\treturn count;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeElement", "code": "\tpublic boolean removeElement(Object value)\n\t{\n\t\tfor(int i = 0; i < getSize(); i++)\n\t\t{\n\t\t\tif(ring[i].equals(value))\n\t\t\t{\n\t\t\t\tremove(i);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [2, 8], [6, 9], [6, 10], [9, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 2], [9, 6], [10, 6], [11, 9], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "insertElementAt", "code": "\tpublic void insertElementAt(Object value, int index)\n\t{\n\t\t/* This is not terribly efficient, but this method is only\n\t\tcalled by the 'Paste Deleted' dialog where the performance\n\t\tis not exactly vital */\n\t\tremove(index);\n\t\tadd((UndoManager.RemovedContent)value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "changed", "code": "\tvoid changed(UndoManager.RemovedContent rem)\n\t{\n\t\tif(rem.inKillRing)\n\t\t{\n\t\t\t// compare existing entries' hashcode with this\n\t\t\tint length = (wrap ? ring.length : count);\n\t\t\tint kill = -1;\n\n\t\t\tfor(int i = 0; i < length; i++)\n\t\t\t{\n\t\t\t\tif(ring[i] != rem\n\t\t\t\t\t&& ring[i].hashcode == rem.hashcode\n\t\t\t\t\t&& ring[i].str.equals(rem.str))\n\t\t\t\t{\n\t\t\t\t\t// we don't want duplicate\n\t\t\t\t\t// entries in the kill ring\n\t\t\t\t\tkill = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(kill != -1)\n\t\t\t\tremove(kill);\n\t\t}\n\t\telse\n\t\t\tadd(rem);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [4, 10], [8, 11], [5, 12], [6, 13], [7, 14], [12, 15], [5, 16], [12, 17], [15, 18], [12, 19], [15, 20], [18, 21], [18, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 4], [11, 8], [12, 5], [13, 6], [14, 7], [15, 12], [16, 5], [17, 12], [18, 15], [19, 12], [20, 15], [21, 18], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "add", "code": "\tvoid add(UndoManager.RemovedContent rem)\n\t{\n\t\t// compare existing entries' hashcode with this\n\t\tint length = (wrap ? ring.length : count);\n\t\tfor(int i = 0; i < length; i++)\n\t\t{\n\t\t\tif(ring[i].hashcode == rem.hashcode)\n\t\t\t{\n\t\t\t\t// strings might be equal!\n\t\t\t\tif(ring[i].str.equals(rem.str))\n\t\t\t\t{\n\t\t\t\t\t// we don't want duplicate entries\n\t\t\t\t\t// in the kill ring\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// no duplicates, check for all-whitespace string\n\t\tboolean allWhitespace = true;\n\t\tfor(int i = 0; i < rem.str.length(); i++)\n\t\t{\n\t\t\tif(!Character.isWhitespace(rem.str.charAt(i)))\n\t\t\t{\n\t\t\t\tallWhitespace = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(allWhitespace)\n\t\t\treturn;\n\n\t\trem.inKillRing = true;\n\n\t\tif(ring[count] != null)\n\t\t\tring[count].inKillRing = false;\n\n\t\tring[count] = rem;\n\t\tif(++count >= ring.length)\n\t\t{\n\t\t\twrap = true;\n\t\t\tcount = 0;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "IF", "COND_EXPR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "IF", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [0, 12], [3, 13], [4, 14], [6, 15], [2, 16], [11, 17], [12, 18], [4, 19], [14, 20], [5, 21], [6, 22], [7, 23], [1, 24], [1, 25], [16, 26], [19, 27], [4, 28], [22, 29], [6, 30], [24, 31], [25, 32], [19, 33], [27, 34], [22, 35], [19, 36], [36, 37], [35, 38], [35, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 0], [13, 3], [14, 4], [15, 6], [16, 2], [17, 11], [18, 12], [19, 4], [20, 14], [21, 5], [22, 6], [23, 7], [24, 1], [25, 1], [26, 16], [27, 19], [28, 4], [29, 22], [30, 6], [31, 24], [32, 25], [33, 19], [34, 27], [35, 22], [36, 19], [37, 36], [38, 35], [39, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "remove", "code": "\tvoid remove(int i)\n\t{\n\t\tif(wrap)\n\t\t{\n\t\t\tUndoManager.RemovedContent[] newRing = new UndoManager.RemovedContent[\n\t\t\t\tring.length];\n\t\t\tint newCount = 0;\n\t\t\tfor(int j = 0; j < ring.length; j++)\n\t\t\t{\n\t\t\t\tint index = virtualToPhysicalIndex(j);\n\n\t\t\t\tif(i == index)\n\t\t\t\t{\n\t\t\t\t\tring[index].inKillRing = false;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tnewRing[newCount++] = ring[index];\n\t\t\t}\n\t\t\tring = newRing;\n\t\t\tcount = newCount;\n\t\t\twrap = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.arraycopy(ring,i + 1,ring,i,count - i - 1);\n\t\t\tcount--;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [6, 11], [6, 12], [7, 13], [3, 14], [3, 15], [4, 16], [11, 17], [11, 18], [12, 19], [3, 20], [14, 21], [3, 22], [14, 23], [15, 24], [14, 25], [25, 26], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 6], [12, 6], [13, 7], [14, 3], [15, 3], [16, 4], [17, 11], [18, 11], [19, 12], [20, 3], [21, 14], [22, 3], [23, 14], [24, 15], [25, 14], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "virtualToPhysicalIndex", "code": "\tprivate int virtualToPhysicalIndex(int index)\n\t{\n\t\tif(wrap)\n\t\t{\n\t\t\tif(index < count)\n\t\t\t\treturn count - index - 1;\n\t\t\telse\n\t\t\t\treturn count + ring.length - index - 1;\n\t\t}\n\t\telse\n\t\t\treturn count - index - 1;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [4, 7], [5, 8], [5, 9], [5, 10], [8, 11], [9, 12], [11, 13], [11, 14], [12, 15], [12, 16], [14, 17], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [7, 4], [8, 5], [9, 5], [10, 5], [11, 8], [12, 9], [13, 11], [14, 11], [15, 12], [16, 12], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 0}
{"sample_id": "poi-2.5-5890", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/ddf/UnknownEscherRecord.java", "language": "java", "name": "org.apache.poi.ddf.UnknownEscherRecord", "code": "public class UnknownEscherRecord extends EscherRecord\n{\n    private static final byte[] NO_BYTES = new byte[0];\n\n    /** The data for this record not including the the 8 byte header */\n    private byte[] thedata = NO_BYTES;\n    private List childRecords = new ArrayList();\n\n    public UnknownEscherRecord()\n    {\n    }\n\n    /**\n     * This method deserializes the record from a byte array.\n     *\n     * @param data          The byte array containing the escher record information\n     * @param offset        The starting offset into <code>data</code>.\n     * @param recordFactory May be null since this is not a container record.\n     * @return The number of bytes read from the byte array.\n     */\n    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        if ( isContainerRecord() )\n        {\n            int bytesWritten = 0;\n            thedata = new byte[0];\n            offset += 8;\n            bytesWritten += 8;\n            while ( bytesRemaining > 0 )\n            {\n                EscherRecord child = recordFactory.createRecord( data, offset );\n                int childBytesWritten = child.fillFields( data, offset, recordFactory );\n                bytesWritten += childBytesWritten;\n                offset += childBytesWritten;\n                bytesRemaining -= childBytesWritten;\n                getChildRecords().add( child );\n            }\n            return bytesWritten;\n        }\n        else\n        {\n            thedata = new byte[bytesRemaining];\n            System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );\n            return bytesRemaining + 8;\n        }\n    }\n\n    /**\n     * Writes this record and any contained records to the supplied byte\n     * array.\n     *\n     * @return  the number of bytes written.\n     */\n    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        LittleEndian.putShort(data, offset, getOptions());\n        LittleEndian.putShort(data, offset+2, getRecordId());\n        int remainingBytes = thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            remainingBytes += r.getRecordSize();\n        }\n        LittleEndian.putInt(data, offset+4, remainingBytes);\n        System.arraycopy(thedata, 0, data, offset+8, thedata.length);\n        int pos = offset+8+thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            pos += r.serialize(pos, data, listener );\n        }\n\n        listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );\n        return pos - offset;\n    }\n\n    public byte[] getData()\n    {\n        return thedata;\n    }\n\n    /**\n     * Returns the number of bytes that are required to serialize this record.\n     *\n     * @return Number of bytes\n     */\n    public int getRecordSize()\n    {\n        return 8 + thedata.length;\n    }\n\n    public List getChildRecords()\n    {\n        return childRecords;\n    }\n\n    public void setChildRecords( List childRecords )\n    {\n        this.childRecords = childRecords;\n    }\n\n    public Object clone()\n    {\n        return super.clone();\n    }\n\n    /**\n     * The short name for this record\n     */\n    public String getRecordName()\n    {\n        return \"Unknown 0x\" + HexDump.toHex(getRecordId());\n    }\n\n    public String toString()\n    {\n        String nl = System.getProperty( \"line.separator\" );\n\n        StringBuffer children = new StringBuffer();\n        if ( getChildRecords().size() > 0 )\n        {\n            children.append( \"  children: \" + nl );\n            for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n            {\n                EscherRecord record = (EscherRecord) iterator.next();\n                children.append( record.toString() );\n                children.append( nl );\n            }\n        }\n\n        String theDumpHex = \"\";\n        try\n        {\n            if (thedata.length != 0)\n            {\n                theDumpHex = \"  Extra Data:\" + nl;\n                theDumpHex += HexDump.dump(thedata, 0, 0);\n            }\n        }\n        catch ( Exception e )\n        {\n            theDumpHex = \"Error!!\";\n        }\n\n        return getClass().getName() + \":\" + nl +\n                \"  isContainer: \" + isContainerRecord() + nl +\n                \"  options: 0x\" + HexDump.toHex( getOptions() ) + nl +\n                \"  recordId: 0x\" + HexDump.toHex( getRecordId() ) + nl +\n                \"  numchildren: \" + getChildRecords().size() + nl +\n                theDumpHex +\n                children.toString();\n    }\n\n    public void addChildRecord( EscherRecord childRecord )\n    {\n        getChildRecords().add( childRecord );", "functions": [{"function_name": "fillFields", "code": "    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        if ( isContainerRecord() )\n        {\n            int bytesWritten = 0;\n            thedata = new byte[0];\n            offset += 8;\n            bytesWritten += 8;\n            while ( bytesRemaining > 0 )\n            {\n                EscherRecord child = recordFactory.createRecord( data, offset );\n                int childBytesWritten = child.fillFields( data, offset, recordFactory );\n                bytesWritten += childBytesWritten;\n                offset += childBytesWritten;\n                bytesRemaining -= childBytesWritten;\n                getChildRecords().add( child );\n            }\n            return bytesWritten;\n        }\n        else\n        {\n            thedata = new byte[bytesRemaining];\n            System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );\n            return bytesRemaining + 8;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "RETURN", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [7, 12], [1, 13], [1, 14], [9, 15], [1, 16], [1, 17], [1, 18], [12, 19], [13, 20], [13, 21], [9, 22], [9, 23], [15, 24], [16, 25], [17, 26], [10, 27], [21, 28], [9, 29], [9, 30], [9, 31], [9, 32], [18, 33], [29, 34], [22, 35], [23, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 7], [13, 1], [14, 1], [15, 9], [16, 1], [17, 1], [18, 1], [19, 12], [20, 13], [21, 13], [22, 9], [23, 9], [24, 15], [25, 16], [26, 17], [27, 10], [28, 21], [29, 9], [30, 9], [31, 9], [32, 9], [33, 18], [34, 29], [35, 22], [36, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        LittleEndian.putShort(data, offset, getOptions());\n        LittleEndian.putShort(data, offset+2, getRecordId());\n        int remainingBytes = thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            remainingBytes += r.getRecordSize();\n        }\n        LittleEndian.putInt(data, offset+4, remainingBytes);\n        System.arraycopy(thedata, 0, data, offset+8, thedata.length);\n        int pos = offset+8+thedata.length;\n        for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n        {\n            EscherRecord r = (EscherRecord) iterator.next();\n            pos += r.serialize(pos, data, listener );\n        }\n\n        listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );\n        return pos - offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [0, 12], [0, 13], [4, 14], [0, 15], [0, 16], [0, 17], [10, 18], [10, 19], [2, 20], [3, 21], [12, 22], [12, 23], [13, 24], [4, 25], [15, 26], [15, 27], [16, 28], [17, 29], [2, 30], [2, 31], [21, 32], [22, 33], [24, 34], [4, 35], [4, 36], [27, 37], [30, 38], [31, 39], [32, 40], [35, 41], [36, 42], [20, 43], [25, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 0], [13, 0], [14, 4], [15, 0], [16, 0], [17, 0], [18, 10], [19, 10], [20, 2], [21, 3], [22, 12], [23, 12], [24, 13], [25, 4], [26, 15], [27, 15], [28, 16], [29, 17], [30, 2], [31, 2], [32, 21], [33, 22], [34, 24], [35, 4], [36, 4], [37, 27], [38, 30], [39, 31], [40, 32], [41, 35], [42, 36], [43, 20], [44, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "getData", "code": "    public byte[] getData()\n    {\n        return thedata;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 8 + thedata.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getChildRecords", "code": "    public List getChildRecords()\n    {\n        return childRecords;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setChildRecords", "code": "    public void setChildRecords( List childRecords )\n    {\n        this.childRecords = childRecords;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clone", "code": "    public Object clone()\n    {\n        return super.clone();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordName", "code": "    public String getRecordName()\n    {\n        return \"Unknown 0x\" + HexDump.toHex(getRecordId());", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        String nl = System.getProperty( \"line.separator\" );\n\n        StringBuffer children = new StringBuffer();\n        if ( getChildRecords().size() > 0 )\n        {\n            children.append( \"  children: \" + nl );\n            for ( Iterator iterator = getChildRecords().iterator(); iterator.hasNext(); )\n            {\n                EscherRecord record = (EscherRecord) iterator.next();\n                children.append( record.toString() );\n                children.append( nl );\n            }\n        }\n\n        String theDumpHex = \"\";\n        try\n        {\n            if (thedata.length != 0)\n            {\n                theDumpHex = \"  Extra Data:\" + nl;\n                theDumpHex += HexDump.dump(thedata, 0, 0);\n            }\n        }\n        catch ( Exception e )\n        {\n            theDumpHex = \"Error!!\";\n        }\n\n        return getClass().getName() + \":\" + nl +\n                \"  isContainer: \" + isContainerRecord() + nl +\n                \"  options: 0x\" + HexDump.toHex( getOptions() ) + nl +\n                \"  recordId: 0x\" + HexDump.toHex( getRecordId() ) + nl +\n                \"  numchildren: \" + getChildRecords().size() + nl +\n                theDumpHex +\n                children.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CATCH", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [4, 10], [7, 11], [7, 12], [9, 13], [3, 14], [4, 15], [10, 16], [10, 17], [5, 18], [6, 19], [12, 20], [8, 21], [13, 22], [15, 23], [4, 24], [17, 25], [19, 26], [20, 27], [21, 28], [9, 29], [9, 30], [15, 31], [24, 32], [27, 33], [27, 34], [29, 35], [30, 36], [15, 37], [15, 38], [15, 39], [32, 40], [33, 41], [34, 42], [34, 43], [35, 44], [35, 45], [36, 46], [38, 47], [39, 48], [43, 49], [31, 50], [49, 51], [49, 52], [51, 53], [52, 54], [52, 55], [55, 56], [56, 57], [56, 58], [57, 59], [58, 60], [58, 61], [61, 62], [62, 63], [62, 64], [64, 65], [64, 66], [66, 67], [67, 68], [67, 69], [69, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 4], [11, 7], [12, 7], [13, 9], [14, 3], [15, 4], [16, 10], [17, 10], [18, 5], [19, 6], [20, 12], [21, 8], [22, 13], [23, 15], [24, 4], [25, 17], [26, 19], [27, 20], [28, 21], [29, 9], [30, 9], [31, 15], [32, 24], [33, 27], [34, 27], [35, 29], [36, 30], [37, 15], [38, 15], [39, 15], [40, 32], [41, 33], [42, 34], [43, 34], [44, 35], [45, 35], [46, 36], [47, 38], [48, 39], [49, 43], [50, 31], [51, 49], [52, 49], [53, 51], [54, 52], [55, 52], [56, 55], [57, 56], [58, 56], [59, 57], [60, 58], [61, 58], [62, 61], [63, 62], [64, 62], [65, 64], [66, 64], [67, 66], [68, 67], [69, 67], [70, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "addChildRecord", "code": "    public void addChildRecord( EscherRecord childRecord )\n    {\n        getChildRecords().add( childRecord );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "UnknownEscherRecord", "code": "    public UnknownEscherRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.0-5462", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hpsf/Property.java", "language": "java", "name": "org.apache.poi.hpsf.Property", "code": "public class Property\n{\n\n    /* Codepage 1200 denotes Unicode. */\n    private static int CP_UNICODE = 1200;\n\n    private int id;\n\n\n    /**\n     * <p>Returns the property's ID.</p>\n     *\n     * @return The ID value\n     */\n    public int getID()\n    {\n        return id;\n    }\n\n\n\n    private long type;\n\n\n    /**\n     * <p>Returns the property's type.</p>\n     *\n     * @return The type value\n     */\n    public long getType()\n    {\n        return type;\n    }\n\n\n\n    private Object value;\n\n\n    /**\n     * <p>Returns the property's value.</p>\n     *\n     * @return The property's value\n     */\n    public Object getValue()\n    {\n        return value;\n    }\n\n\n\n    /**\n     * <p>Creates a {@link Property} instance by reading its bytes\n     * from the property set stream.</p>\n     *\n     * @param id The property's ID.\n     * @param src The bytes the property set stream consists of.\n     * @param offset The property's type/value pair's offset in the\n     * section.\n     * @param length The property's type/value pair's length in bytes.\n     * @param codepage The section's and thus the property's\n     * codepage. It is needed only when reading string values.\n     */\n    public Property(final int id, final byte[] src, final long offset,\n\t\t    int length, int codepage)\n    {\n        this.id = id;\n\n        /*\n         * ID 0 is a special case since it specifies a dictionary of\n         * property IDs and property names.\n         */\n        if (id == 0)\n\t{\n            value = readDictionary(src, offset, length, codepage);\n            return;\n        }\n\n        int o = (int) offset;\n        type = LittleEndian.getUInt(src, o);\n        o += LittleEndian.INT_SIZE;\n\n\ttry\n\t{\n\t    value = TypeReader.read(src, o, length, (int) type);\n\t}\n\tcatch (Throwable t)\n\t{\n\t    t.printStackTrace();\n\t    value = \"*** null ***\";\n\t}\n    }\n\n\n\n    /**\n     * <p>Reads a dictionary.</p>\n     *\n     * @param src The byte array containing the bytes making out the\n     * dictionary.\n     * @param offset At this offset within <var>src</var> the\n     * dictionary starts.\n     * @param length The dictionary contains at most this many bytes.\n     * @param codepage The codepage of the string values.\n     * @return The dictonary\n     */\n    protected Map readDictionary(final byte[] src, final long offset,\n\t\t\t\t final int length, final int codepage)\n    {\n\t/* Check whether \"offset\" points into the \"src\" array\". */\n\tif (offset < 0 || offset > src.length)\n\t    throw new HPSFRuntimeException\n\t\t(\"Illegal offset \" + offset + \" while HPSF stream contains \" +\n\t\t length + \" bytes.\");\n        int o = (int) offset;\n\n        /*\n         * Read the number of dictionary entries.\n         */\n        final long nrEntries = LittleEndian.getUInt(src, o);\n        o += LittleEndian.INT_SIZE;\n\n        final Map m = new HashMap((int) nrEntries, (float) 1.0);\n        for (int i = 0; i < nrEntries; i++)\n\t{\n            /* The key. */\n            final Long id = new Long(LittleEndian.getUInt(src, o));\n            o += LittleEndian.INT_SIZE;\n\n            /* The value (a string). The length is the either the\n             * number of characters if the character set is Unicode or\n             * else the number of bytes. The length includes\n             * terminating 0x00 bytes which we have to strip off to\n             * create a Java string. */\n            long sLength = LittleEndian.getUInt(src, o);\n            o += LittleEndian.INT_SIZE;\n\n            /* Read the bytes or characters depending on whether the\n             * character set is Unicode or not. */\n\t    StringBuffer b = new StringBuffer((int) sLength);\n\t    for (int j = 0; j < sLength; j++)\n\t\tif (codepage == CP_UNICODE)\n\t\t{\n\t\t    final int i1 = o + (j * 2);\n\t\t    final int i2 = i1 + 1;\n\t\t    b.append((char) ((src[i2] << 8) + src[i1]));\n\t\t}\n\t\telse\n\t\t    b.append((char) src[o + j]);\n\n\t    /* Strip 0x00 characters from the end of the string: */\n\t    while (b.charAt(b.length() - 1) == 0x00)\n\t\tb.setLength(b.length() - 1);\n\t    if (codepage == CP_UNICODE)\n\t    {\n\t\tif (sLength % 2 == 1)\n\t\t    sLength++;\n\t\to += (sLength + sLength);\n\t    }\n\t    else\n\t\to += sLength;\n            m.put(id, b.toString());\n        }\n        return m;", "functions": [{"function_name": "getID", "code": "    public int getID()\n    {\n        return id;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public long getType()\n    {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getValue", "code": "    public Object getValue()\n    {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "readDictionary", "code": "    protected Map readDictionary(final byte[] src, final long offset,\n\t\t\t\t final int length, final int codepage)\n    {\n\t/* Check whether \"offset\" points into the \"src\" array\". */\n\tif (offset < 0 || offset > src.length)\n\t    throw new HPSFRuntimeException\n\t\t(\"Illegal offset \" + offset + \" while HPSF stream contains \" +\n\t\t length + \" bytes.\");\n        int o = (int) offset;\n\n        /*\n         * Read the number of dictionary entries.\n         */\n        final long nrEntries = LittleEndian.getUInt(src, o);\n        o += LittleEndian.INT_SIZE;\n\n        final Map m = new HashMap((int) nrEntries, (float) 1.0);\n        for (int i = 0; i < nrEntries; i++)\n\t{\n            /* The key. */\n            final Long id = new Long(LittleEndian.getUInt(src, o));\n            o += LittleEndian.INT_SIZE;\n\n            /* The value (a string). The length is the either the\n             * number of characters if the character set is Unicode or\n             * else the number of bytes. The length includes\n             * terminating 0x00 bytes which we have to strip off to\n             * create a Java string. */\n            long sLength = LittleEndian.getUInt(src, o);\n            o += LittleEndian.INT_SIZE;\n\n            /* Read the bytes or characters depending on whether the\n             * character set is Unicode or not. */\n\t    StringBuffer b = new StringBuffer((int) sLength);\n\t    for (int j = 0; j < sLength; j++)\n\t\tif (codepage == CP_UNICODE)\n\t\t{\n\t\t    final int i1 = o + (j * 2);\n\t\t    final int i2 = i1 + 1;\n\t\t    b.append((char) ((src[i2] << 8) + src[i1]));\n\t\t}\n\t\telse\n\t\t    b.append((char) src[o + j]);\n\n\t    /* Strip 0x00 characters from the end of the string: */\n\t    while (b.charAt(b.length() - 1) == 0x00)\n\t\tb.setLength(b.length() - 1);\n\t    if (codepage == CP_UNICODE)\n\t    {\n\t\tif (sLength % 2 == 1)\n\t\t    sLength++;\n\t\to += (sLength + sLength);\n\t    }\n\t    else\n\t\to += sLength;\n            m.put(id, b.toString());\n        }\n        return m;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "THROW_RAISE", "BINARY_OP", "IF", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [0, 12], [6, 13], [6, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [3, 21], [4, 22], [13, 23], [14, 24], [14, 25], [2, 26], [15, 27], [16, 28], [17, 29], [17, 30], [2, 31], [2, 32], [2, 33], [23, 34], [25, 35], [26, 36], [15, 37], [15, 38], [16, 39], [28, 40], [28, 41], [29, 42], [18, 43], [19, 44], [20, 45], [21, 46], [34, 47], [34, 48], [15, 49], [38, 50], [39, 51], [41, 52], [29, 53], [29, 54], [29, 55], [17, 56], [45, 57], [48, 58], [49, 59], [50, 60], [50, 61], [51, 62], [51, 63], [52, 64], [52, 65], [29, 66], [58, 67], [58, 68], [61, 69], [54, 70], [55, 71], [68, 72], [66, 73], [70, 74], [71, 75], [53, 76], [73, 77], [75, 78], [77, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 0], [13, 6], [14, 6], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 3], [22, 4], [23, 13], [24, 14], [25, 14], [26, 2], [27, 15], [28, 16], [29, 17], [30, 17], [31, 2], [32, 2], [33, 2], [34, 23], [35, 25], [36, 26], [37, 15], [38, 15], [39, 16], [40, 28], [41, 28], [42, 29], [43, 18], [44, 19], [45, 20], [46, 21], [47, 34], [48, 34], [49, 15], [50, 38], [51, 39], [52, 41], [53, 29], [54, 29], [55, 29], [56, 17], [57, 45], [58, 48], [59, 49], [60, 50], [61, 50], [62, 51], [63, 51], [64, 52], [65, 52], [66, 29], [67, 58], [68, 58], [69, 61], [70, 54], [71, 55], [72, 68], [73, 66], [74, 70], [75, 71], [76, 53], [77, 73], [78, 75], [79, 77], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "Property", "code": "    public Property(final int id, final byte[] src, final long offset,\n\t\t    int length, int codepage)\n    {\n        this.id = id;\n\n        /*\n         * ID 0 is a special case since it specifies a dictionary of\n         * property IDs and property names.\n         */\n        if (id == 0)\n\t{\n            value = readDictionary(src, offset, length, codepage);\n            return;\n        }\n\n        int o = (int) offset;\n        type = LittleEndian.getUInt(src, o);\n        o += LittleEndian.INT_SIZE;\n\n\ttry\n\t{\n\t    value = TypeReader.read(src, o, length, (int) type);\n\t}\n\tcatch (Throwable t)\n\t{\n\t    t.printStackTrace();\n\t    value = \"*** null ***\";", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [3, 12], [0, 13], [1, 14], [11, 15], [3, 16], [12, 17], [9, 18], [9, 19], [14, 20], [3, 21], [18, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 3], [13, 0], [14, 1], [15, 11], [16, 3], [17, 12], [18, 9], [19, 9], [20, 14], [21, 3], [22, 18], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}], "label": 1}
{"sample_id": "camel-1.6-3168", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/SetOutHeaderType.java", "language": "java", "name": "org.apache.camel.model.SetOutHeaderType", "code": "@XmlRootElement(name = \"setOutHeader\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class SetOutHeaderType extends ExpressionNode {\n    @XmlAttribute(required = true)\n    private String headerName;\n    \n    public SetOutHeaderType() {\n    }\n\n    public SetOutHeaderType(String headerName, ExpressionType expression) {\n        super(expression);\n        setHeaderName(headerName);\n    }\n\n    public SetOutHeaderType(String headerName, Expression expression) {\n        super(expression);\n        setHeaderName(headerName);        \n    }\n\n    @Override\n    public String toString() {\n        return \"SetOutHeader[\" + getHeaderName() + \", \" + getExpression() + \"]\";\n    }\n\n    @Override\n    public String getShortName() {\n        return \"setOutHeader\";\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        ObjectHelper.notNull(getHeaderName(), \"headerName\");\n        Expression expr = getExpression().createExpression(routeContext);\n        return ProcessorBuilder.setOutHeader(getHeaderName(), expr);\n    }\n\n    public void setHeaderName(String headerName) {\n        this.headerName = headerName;\n    }\n\n    public String getHeaderName() {\n        return headerName;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"SetOutHeader[\" + getHeaderName() + \", \" + getExpression() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getShortName", "code": "    @Override\n    public String getShortName() {\n        return \"setOutHeader\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        ObjectHelper.notNull(getHeaderName(), \"headerName\");\n        Expression expr = getExpression().createExpression(routeContext);\n        return ProcessorBuilder.setOutHeader(getHeaderName(), expr);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [2, 7], [5, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 2], [8, 5], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setHeaderName", "code": "    public void setHeaderName(String headerName) {\n        this.headerName = headerName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeaderName", "code": "    public String getHeaderName() {\n        return headerName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SetOutHeaderType", "code": "    public SetOutHeaderType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SetOutHeaderType", "code": "    public SetOutHeaderType(String headerName, ExpressionType expression) {\n        super(expression);\n        setHeaderName(headerName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "SetOutHeaderType", "code": "    public SetOutHeaderType(String headerName, Expression expression) {\n        super(expression);\n        setHeaderName(headerName);        ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.4-2243", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/direct/DirectEndpoint.java", "language": "java", "name": "org.apache.camel.component.direct.DirectEndpoint", "code": "public class DirectEndpoint<E extends Exchange> extends DefaultEndpoint<E> {\n    private static final transient Log LOG = LogFactory.getLog(DirectEndpoint.class);\n    private boolean allowMultipleConsumers = true;\n    private final CopyOnWriteArrayList<DefaultConsumer<E>> consumers = new CopyOnWriteArrayList<DefaultConsumer<E>>();\n\n    public DirectEndpoint(String uri, DirectComponent<E> component) {\n        super(uri, component);\n    }\n\n    public DirectEndpoint(String endpointUri) {\n        super(endpointUri);\n    }\n\n    public Producer createProducer() throws Exception {\n        return new DirectProducer<E>(this);\n    }\n\n    public Consumer<E> createConsumer(Processor processor) throws Exception {\n        return new DefaultConsumer<E>(this, processor) {\n            @Override\n            public void start() throws Exception {\n                if (!allowMultipleConsumers && !consumers.isEmpty()) {\n                    throw new IllegalStateException(\"Endpoint \" + getEndpointUri() + \" only allows 1 active consumer but you attempted to start a 2nd consumer.\");\n                }\n\n                consumers.add(this);\n                super.start();\n            }\n\n            @Override\n            public void stop() throws Exception {\n                super.stop();\n                consumers.remove(this);\n            }\n        };\n    }\n\n    public boolean isAllowMultipleConsumers() {\n        return allowMultipleConsumers;\n    }\n\n    public void setAllowMultipleConsumers(boolean allowMutlipleConsumers) {\n        this.allowMultipleConsumers = allowMutlipleConsumers;\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public List<DefaultConsumer<E>> getConsumers() {\n        return consumers;", "functions": [{"function_name": "createProducer", "code": "    public Producer createProducer() throws Exception {\n        return new DirectProducer<E>(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createConsumer", "code": "    public Consumer<E> createConsumer(Processor processor) throws Exception {\n        return new DefaultConsumer<E>(this, processor) {\n            @Override\n            public void start() throws Exception {\n                if (!allowMultipleConsumers && !consumers.isEmpty()) {\n                    throw new IllegalStateException(\"Endpoint \" + getEndpointUri() + \" only allows 1 active consumer but you attempted to start a 2nd consumer.\");\n                }\n\n                consumers.add(this);\n                super.start();\n            }\n\n            @Override\n            public void stop() throws Exception {\n                super.stop();\n                consumers.remove(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "IF", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [4, 7], [5, 8], [6, 9], [6, 10], [9, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 4], [8, 5], [9, 6], [10, 6], [11, 9], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "isAllowMultipleConsumers", "code": "    public boolean isAllowMultipleConsumers() {\n        return allowMultipleConsumers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAllowMultipleConsumers", "code": "    public void setAllowMultipleConsumers(boolean allowMutlipleConsumers) {\n        this.allowMultipleConsumers = allowMutlipleConsumers;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConsumers", "code": "    public List<DefaultConsumer<E>> getConsumers() {\n        return consumers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DirectEndpoint", "code": "    public DirectEndpoint(String uri, DirectComponent<E> component) {\n        super(uri, component);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DirectEndpoint", "code": "    public DirectEndpoint(String endpointUri) {\n        super(endpointUri);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.6-7909", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/NotCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.NotCall", "code": "final class NotCall extends FunctionCall {\n    public NotCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\targument().translate(classGen, methodGen);\n\til.append(ICONST_1);\n\til.append(IXOR);\n    }\n\n    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Expression exp = argument();\n\texp.translateDesynthesized(classGen, methodGen);\n\tfinal BranchHandle gotoh = il.append(new GOTO(null));\n\t_falseList = exp._trueList;\n\t_falseList.add(gotoh);", "functions": [{"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\targument().translate(classGen, methodGen);\n\til.append(ICONST_1);\n\til.append(IXOR);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "translateDesynthesized", "code": "    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Expression exp = argument();\n\texp.translateDesynthesized(classGen, methodGen);\n\tfinal BranchHandle gotoh = il.append(new GOTO(null));\n\t_falseList = exp._trueList;\n\t_falseList.add(gotoh);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "NotCall", "code": "    public NotCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6324", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/HCenterRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.HCenterRecord", "code": "public class HCenterRecord\n    extends Record\n{\n    public final static short sid = 0x83;\n    private short             field_1_hcenter;\n\n    public HCenterRecord()\n    {\n    }\n\n    /**\n     * Constructs an HCenter record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x83 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public HCenterRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A HCenter RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_hcenter = in.readShort();\n    }\n\n    /**\n     * set whether or not to horizonatally center this sheet.\n     * @param hc  center - t/f\n     */\n\n    public void setHCenter(boolean hc)\n    {\n        if (hc == true)\n        {\n            field_1_hcenter = 1;\n        }\n        else\n        {\n            field_1_hcenter = 0;\n        }\n    }\n\n    /**\n     * get whether or not to horizonatally center this sheet.\n     * @return center - t/f\n     */\n\n    public boolean getHCenter()\n    {\n        return (field_1_hcenter == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[HCENTER]\\n\");\n        buffer.append(\"    .hcenter        = \").append(getHCenter())\n            .append(\"\\n\");\n        buffer.append(\"[/HCENTER]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, ( short ) field_1_hcenter);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n      HCenterRecord rec = new HCenterRecord();\n      rec.field_1_hcenter = field_1_hcenter;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A HCenter RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_hcenter = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setHCenter", "code": "    public void setHCenter(boolean hc)\n    {\n        if (hc == true)\n        {\n            field_1_hcenter = 1;\n        }\n        else\n        {\n            field_1_hcenter = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getHCenter", "code": "    public boolean getHCenter()\n    {\n        return (field_1_hcenter == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[HCENTER]\\n\");\n        buffer.append(\"    .hcenter        = \").append(getHCenter())\n            .append(\"\\n\");\n        buffer.append(\"[/HCENTER]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, ( short ) field_1_hcenter);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [6, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 6], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      HCenterRecord rec = new HCenterRecord();\n      rec.field_1_hcenter = field_1_hcenter;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "HCenterRecord", "code": "    public HCenterRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "HCenterRecord", "code": "    public HCenterRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ivy-2.0-3418", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/deliver/DeliverEngine.java", "language": "java", "name": "org.apache.ivy.core.deliver.DeliverEngine", "code": "public class DeliverEngine {\n    private DeliverEngineSettings settings;\n\n    public DeliverEngine(DeliverEngineSettings settings) {\n        this.settings = settings;\n    }\n\n    /**\n     * Delivers a resolved ivy file based upon last resolve call status. If resolve report file\n     * cannot be found in cache, then it throws an IllegalStateException (maybe resolve has not been\n     * called before ?).\n     * \n     * @param revision\n     *            the revision to which the module should be delivered\n     * @param destIvyPattern\n     *            the pattern to which the delivered ivy file should be written\n     * @param options\n     *            the options with which deliver should be done\n     */\n    public void deliver(String revision, String destIvyPattern, DeliverOptions options)\n            throws IOException, ParseException {\n        String resolveId = options.getResolveId();\n        if (resolveId == null) {\n            throw new IllegalArgumentException(\"A resolveId must be specified for delivering.\");\n        }\n        File[] files = getCache().getConfigurationResolveReportsInCache(resolveId);\n        if (files.length == 0) {\n            throw new IllegalStateException(\"No previous resolve found for id '\" + resolveId\n                    + \"' Please resolve dependencies before delivering.\");\n        }\n        XmlReportParser parser = new XmlReportParser();\n        parser.parse(files[0]);\n        ModuleRevisionId mrid = parser.getResolvedModule();\n        deliver(mrid, revision, destIvyPattern, options);\n    }\n\n    private ResolutionCacheManager getCache() {\n        return settings.getResolutionCacheManager();\n    }\n\n    /**\n     * Delivers a resolved ivy file based upon last resolve call status. If resolve report file\n     * cannot be found in cache, then it throws an IllegalStateException (maybe resolve has not been\n     * called before ?).\n     * \n     * @param mrid\n     *            the module revision id of the module to deliver\n     * @param revision\n     *            the revision to which the module should be delivered\n     * @param destIvyPattern\n     *            the pattern to which the delivered ivy file should be written\n     * @param options\n     *            the options with which deliver should be done\n     */\n    public void deliver(ModuleRevisionId mrid, String revision, String destIvyPattern,\n            DeliverOptions options) throws IOException, ParseException {\n        Message.info(\":: delivering :: \" + mrid + \" :: \" + revision + \" :: \" + options.getStatus()\n                + \" :: \" + options.getPubdate());\n        Message.verbose(\"\\toptions = \" + options);\n        long start = System.currentTimeMillis();\n        destIvyPattern = settings.substitute(destIvyPattern);\n\n        // 1) find the resolved module descriptor in cache\n        File ivyFile = getCache().getResolvedIvyFileInCache(mrid);\n        if (!ivyFile.exists()) {\n            throw new IllegalStateException(\"ivy file not found in cache for \" + mrid\n                    + \": please resolve dependencies before delivering (\" + ivyFile + \")\");\n        }\n        ModuleDescriptor md = null;\n        URL ivyFileURL = null;\n        try {\n            ivyFileURL = ivyFile.toURI().toURL();\n            md = XmlModuleDescriptorParser.getInstance().parseDescriptor(settings, ivyFileURL,\n                options.isValidate());\n            md.setResolvedModuleRevisionId(ModuleRevisionId.newInstance(mrid, \n                options.getPubBranch() == null ? mrid.getBranch() : options.getPubBranch(), \n                revision));\n            md.setResolvedPublicationDate(options.getPubdate());\n        } catch (MalformedURLException e) {\n            throw new RuntimeException(\"malformed url obtained for file \" + ivyFile, e);\n        } catch (ParseException e) {\n            throw new RuntimeException(\"bad ivy file in cache for \" + mrid\n                    + \": please clean and resolve again\", e);\n        }\n\n        // 2) parse resolvedRevisions From properties file\n        Map resolvedRevisions = new HashMap(); // Map (ModuleId -> String revision)\n        Map dependenciesStatus = new HashMap(); // Map (ModuleId -> String status)\n        File ivyProperties = getCache().getResolvedIvyPropertiesInCache(mrid);\n        if (!ivyProperties.exists()) {\n            throw new IllegalStateException(\"ivy properties not found in cache for \" + mrid\n                    + \": please resolve dependencies before delivering (\" + ivyFile + \")\");\n        }\n        Properties props = new Properties();\n        FileInputStream in = new FileInputStream(ivyProperties);\n        props.load(in);\n        in.close();\n\n        for (Iterator iter = props.keySet().iterator(); iter.hasNext();) {\n            String depMridStr = (String) iter.next();\n            String[] parts = props.getProperty(depMridStr).split(\" \");\n            ModuleRevisionId decodedMrid = ModuleRevisionId.decode(depMridStr);\n            if (options.isResolveDynamicRevisions()) {\n                resolvedRevisions.put(decodedMrid, parts[0]);\n            }\n            dependenciesStatus.put(decodedMrid, parts[1]);\n        }\n\n        // 3) use pdrResolver to resolve dependencies info\n        Map resolvedDependencies = new HashMap(); // Map (ModuleRevisionId -> String revision)\n        DependencyDescriptor[] dependencies = md.getDependencies();\n        for (int i = 0; i < dependencies.length; i++) {\n            String rev = (String) resolvedRevisions.get(dependencies[i].getDependencyRevisionId());\n            if (rev == null) {\n                rev = dependencies[i].getDependencyRevisionId().getRevision();\n            }\n            String depStatus = (String) dependenciesStatus.get(dependencies[i]\n                    .getDependencyRevisionId());\n            resolvedDependencies.put(dependencies[i].getDependencyRevisionId(), options\n                    .getPdrResolver().resolve(\n                        md,\n                        options.getStatus(),\n                        ModuleRevisionId\n                                .newInstance(dependencies[i].getDependencyRevisionId(), rev),\n                        depStatus));\n        }\n\n        // 4) copy the source resolved ivy to the destination specified,\n        // updating status, revision and dependency revisions obtained by\n        // PublishingDependencyRevisionResolver\n        File publishedIvy = settings.resolveFile(\n                    IvyPatternHelper.substitute(destIvyPattern, md.getResolvedModuleRevisionId()));\n        Message.info(\"\\tdelivering ivy file to \" + publishedIvy);\n\n        String[] confs = ConfigurationUtils.replaceWildcards(options.getConfs(), md);\n        Set confsToRemove = new HashSet(Arrays.asList(md.getConfigurationsNames()));\n        confsToRemove.removeAll(Arrays.asList(confs));\n\n        try {\n            XmlModuleDescriptorUpdater.update(ivyFileURL, publishedIvy,\n                    new UpdateOptions()\n                        .setSettings(settings)\n                        .setResolvedRevisions(resolvedDependencies)\n                        .setStatus(options.getStatus())\n                        .setRevision(revision)\n                        .setBranch(options.getPubBranch())\n                        .setPubdate(options.getPubdate())\n                        .setConfsToExclude((String[]) confsToRemove\n                            .toArray(new String[confsToRemove.size()])));\n        } catch (SAXException ex) {\n            throw new RuntimeException(\"bad ivy file in cache for \" + mrid\n                    + \": please clean and resolve again\", ex);\n        }\n\n        Message.verbose(\"\\tdeliver done (\" + (System.currentTimeMillis() - start) + \"ms)\");", "functions": [{"function_name": "deliver", "code": "    public void deliver(String revision, String destIvyPattern, DeliverOptions options)\n            throws IOException, ParseException {\n        String resolveId = options.getResolveId();\n        if (resolveId == null) {\n            throw new IllegalArgumentException(\"A resolveId must be specified for delivering.\");\n        }\n        File[] files = getCache().getConfigurationResolveReportsInCache(resolveId);\n        if (files.length == 0) {\n            throw new IllegalStateException(\"No previous resolve found for id '\" + resolveId\n                    + \"' Please resolve dependencies before delivering.\");\n        }\n        XmlReportParser parser = new XmlReportParser();\n        parser.parse(files[0]);\n        ModuleRevisionId mrid = parser.getResolvedModule();\n        deliver(mrid, revision, destIvyPattern, options);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [3, 12], [5, 13], [1, 14], [2, 15], [3, 16], [12, 17], [4, 18], [5, 19], [13, 20], [6, 21], [16, 22], [18, 23], [19, 24], [11, 25], [22, 26], [24, 27], [26, 28], [26, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 3], [13, 5], [14, 1], [15, 2], [16, 3], [17, 12], [18, 4], [19, 5], [20, 13], [21, 6], [22, 16], [23, 18], [24, 19], [25, 11], [26, 22], [27, 24], [28, 26], [29, 26], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getCache", "code": "    private ResolutionCacheManager getCache() {\n        return settings.getResolutionCacheManager();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "deliver", "code": "    public void deliver(ModuleRevisionId mrid, String revision, String destIvyPattern,\n            DeliverOptions options) throws IOException, ParseException {\n        Message.info(\":: delivering :: \" + mrid + \" :: \" + revision + \" :: \" + options.getStatus()\n                + \" :: \" + options.getPubdate());\n        Message.verbose(\"\\toptions = \" + options);\n        long start = System.currentTimeMillis();\n        destIvyPattern = settings.substitute(destIvyPattern);\n\n        // 1) find the resolved module descriptor in cache\n        File ivyFile = getCache().getResolvedIvyFileInCache(mrid);\n        if (!ivyFile.exists()) {\n            throw new IllegalStateException(\"ivy file not found in cache for \" + mrid\n                    + \": please resolve dependencies before delivering (\" + ivyFile + \")\");\n        }\n        ModuleDescriptor md = null;\n        URL ivyFileURL = null;\n        try {\n            ivyFileURL = ivyFile.toURI().toURL();\n            md = XmlModuleDescriptorParser.getInstance().parseDescriptor(settings, ivyFileURL,\n                options.isValidate());\n            md.setResolvedModuleRevisionId(ModuleRevisionId.newInstance(mrid, \n                options.getPubBranch() == null ? mrid.getBranch() : options.getPubBranch(), \n                revision));\n            md.setResolvedPublicationDate(options.getPubdate());\n        } catch (MalformedURLException e) {\n            throw new RuntimeException(\"malformed url obtained for file \" + ivyFile, e);\n        } catch (ParseException e) {\n            throw new RuntimeException(\"bad ivy file in cache for \" + mrid\n                    + \": please clean and resolve again\", e);\n        }\n\n        // 2) parse resolvedRevisions From properties file\n        Map resolvedRevisions = new HashMap(); // Map (ModuleId -> String revision)\n        Map dependenciesStatus = new HashMap(); // Map (ModuleId -> String status)\n        File ivyProperties = getCache().getResolvedIvyPropertiesInCache(mrid);\n        if (!ivyProperties.exists()) {\n            throw new IllegalStateException(\"ivy properties not found in cache for \" + mrid\n                    + \": please resolve dependencies before delivering (\" + ivyFile + \")\");\n        }\n        Properties props = new Properties();\n        FileInputStream in = new FileInputStream(ivyProperties);\n        props.load(in);\n        in.close();\n\n        for (Iterator iter = props.keySet().iterator(); iter.hasNext();) {\n            String depMridStr = (String) iter.next();\n            String[] parts = props.getProperty(depMridStr).split(\" \");\n            ModuleRevisionId decodedMrid = ModuleRevisionId.decode(depMridStr);\n            if (options.isResolveDynamicRevisions()) {\n                resolvedRevisions.put(decodedMrid, parts[0]);\n            }\n            dependenciesStatus.put(decodedMrid, parts[1]);\n        }\n\n        // 3) use pdrResolver to resolve dependencies info\n        Map resolvedDependencies = new HashMap(); // Map (ModuleRevisionId -> String revision)\n        DependencyDescriptor[] dependencies = md.getDependencies();\n        for (int i = 0; i < dependencies.length; i++) {\n            String rev = (String) resolvedRevisions.get(dependencies[i].getDependencyRevisionId());\n            if (rev == null) {\n                rev = dependencies[i].getDependencyRevisionId().getRevision();\n            }\n            String depStatus = (String) dependenciesStatus.get(dependencies[i]\n                    .getDependencyRevisionId());\n            resolvedDependencies.put(dependencies[i].getDependencyRevisionId(), options\n                    .getPdrResolver().resolve(\n                        md,\n                        options.getStatus(),\n                        ModuleRevisionId\n                                .newInstance(dependencies[i].getDependencyRevisionId(), rev),\n                        depStatus));\n        }\n\n        // 4) copy the source resolved ivy to the destination specified,\n        // updating status, revision and dependency revisions obtained by\n        // PublishingDependencyRevisionResolver\n        File publishedIvy = settings.resolveFile(\n                    IvyPatternHelper.substitute(destIvyPattern, md.getResolvedModuleRevisionId()));\n        Message.info(\"\\tdelivering ivy file to \" + publishedIvy);\n\n        String[] confs = ConfigurationUtils.replaceWildcards(options.getConfs(), md);\n        Set confsToRemove = new HashSet(Arrays.asList(md.getConfigurationsNames()));\n        confsToRemove.removeAll(Arrays.asList(confs));\n\n        try {\n            XmlModuleDescriptorUpdater.update(ivyFileURL, publishedIvy,\n                    new UpdateOptions()\n                        .setSettings(settings)\n                        .setResolvedRevisions(resolvedDependencies)\n                        .setStatus(options.getStatus())\n                        .setRevision(revision)\n                        .setBranch(options.getPubBranch())\n                        .setPubdate(options.getPubdate())\n                        .setConfsToExclude((String[]) confsToRemove\n                            .toArray(new String[confsToRemove.size()])));\n        } catch (SAXException ex) {\n            throw new RuntimeException(\"bad ivy file in cache for \" + mrid\n                    + \": please clean and resolve again\", ex);\n        }\n\n        Message.verbose(\"\\tdeliver done (\" + (System.currentTimeMillis() - start) + \"ms)\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CATCH", "CATCH", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [1, 26], [0, 27], [0, 28], [5, 29], [8, 30], [0, 31], [0, 32], [11, 33], [15, 34], [15, 35], [18, 36], [0, 37], [0, 38], [0, 39], [25, 40], [26, 41], [1, 42], [27, 43], [2, 44], [3, 45], [28, 46], [4, 47], [5, 48], [5, 49], [5, 50], [6, 51], [7, 52], [8, 53], [8, 54], [8, 55], [8, 56], [9, 57], [10, 58], [11, 59], [12, 60], [13, 61], [14, 62], [34, 63], [35, 64], [15, 65], [15, 66], [15, 67], [15, 68], [16, 69], [17, 70], [18, 71], [19, 72], [37, 73], [20, 74], [38, 75], [39, 76], [40, 77], [40, 78], [41, 79], [42, 80], [44, 81], [45, 82], [46, 83], [47, 84], [5, 85], [49, 86], [5, 87], [8, 88], [53, 89], [8, 90], [59, 91], [60, 92], [63, 93], [64, 94], [65, 95], [66, 96], [67, 97], [68, 98], [71, 99], [72, 100], [75, 101], [76, 102], [76, 103], [78, 104], [78, 105], [79, 106], [80, 107], [80, 108], [80, 109], [80, 110], [80, 111], [80, 112], [80, 113], [81, 114], [84, 115], [85, 116], [86, 117], [54, 118], [55, 119], [90, 120], [91, 121], [93, 122], [94, 123], [96, 124], [97, 125], [98, 126], [99, 127], [103, 128], [103, 129], [104, 130], [106, 131], [106, 132], [108, 133], [109, 134], [111, 135], [116, 136], [85, 137], [48, 138], [49, 139], [50, 140], [53, 141], [119, 142], [56, 143], [121, 144], [121, 145], [122, 146], [122, 147], [123, 148], [124, 149], [124, 150], [124, 151], [125, 152], [127, 153], [127, 154], [129, 155], [129, 156], [132, 157], [107, 158], [136, 159], [136, 160], [88, 161], [142, 162], [145, 163], [147, 164], [151, 165], [151, 166], [154, 167], [156, 168], [156, 169], [138, 170], [139, 171], [139, 172], [140, 173], [163, 174], [163, 175], [167, 176], [167, 177], [169, 178], [158, 179], [159, 180], [141, 181], [175, 182], [177, 183], [178, 184], [178, 185], [185, 186], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 1], [27, 0], [28, 0], [29, 5], [30, 8], [31, 0], [32, 0], [33, 11], [34, 15], [35, 15], [36, 18], [37, 0], [38, 0], [39, 0], [40, 25], [41, 26], [42, 1], [43, 27], [44, 2], [45, 3], [46, 28], [47, 4], [48, 5], [49, 5], [50, 5], [51, 6], [52, 7], [53, 8], [54, 8], [55, 8], [56, 8], [57, 9], [58, 10], [59, 11], [60, 12], [61, 13], [62, 14], [63, 34], [64, 35], [65, 15], [66, 15], [67, 15], [68, 15], [69, 16], [70, 17], [71, 18], [72, 19], [73, 37], [74, 20], [75, 38], [76, 39], [77, 40], [78, 40], [79, 41], [80, 42], [81, 44], [82, 45], [83, 46], [84, 47], [85, 5], [86, 49], [87, 5], [88, 8], [89, 53], [90, 8], [91, 59], [92, 60], [93, 63], [94, 64], [95, 65], [96, 66], [97, 67], [98, 68], [99, 71], [100, 72], [101, 75], [102, 76], [103, 76], [104, 78], [105, 78], [106, 79], [107, 80], [108, 80], [109, 80], [110, 80], [111, 80], [112, 80], [113, 80], [114, 81], [115, 84], [116, 85], [117, 86], [118, 54], [119, 55], [120, 90], [121, 91], [122, 93], [123, 94], [124, 96], [125, 97], [126, 98], [127, 99], [128, 103], [129, 103], [130, 104], [131, 106], [132, 106], [133, 108], [134, 109], [135, 111], [136, 116], [137, 85], [138, 48], [139, 49], [140, 50], [141, 53], [142, 119], [143, 56], [144, 121], [145, 121], [146, 122], [147, 122], [148, 123], [149, 124], [150, 124], [151, 124], [152, 125], [153, 127], [154, 127], [155, 129], [156, 129], [157, 132], [158, 107], [159, 136], [160, 136], [161, 88], [162, 142], [163, 145], [164, 147], [165, 151], [166, 151], [167, 154], [168, 156], [169, 156], [170, 138], [171, 139], [172, 139], [173, 140], [174, 163], [175, 163], [176, 167], [177, 167], [178, 169], [179, 158], [180, 159], [181, 141], [182, 175], [183, 177], [184, 178], [185, 178], [186, 185], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186]]}, {"function_name": "DeliverEngine", "code": "    public DeliverEngine(DeliverEngineSettings settings) {\n        this.settings = settings;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7598", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/templates/ElemUse.java", "language": "java", "name": "org.apache.xalan.templates.ElemUse", "code": "public class ElemUse extends ElemTemplateElement\n{\n\n  /**\n   * The value of the \"use-attribute-sets\" attribute.\n   * @serial\n   */\n  private QName m_attributeSetsNames[] = null;\n\n  /**\n   * Set the \"use-attribute-sets\" attribute.\n   * Attribute sets are used by specifying a use-attribute-sets\n   * attribute on xsl:element, xsl:copy (see [7.5 Copying]) or\n   * xsl:attribute-set elements. The value of the use-attribute-sets\n   * attribute is a whitespace-separated list of names of attribute\n   * sets. Each name is specified as a QName, which is expanded as\n   * described in [2.4 Qualified Names].\n   *\n   * @param v The value to set for the \"use-attribute-sets\" attribute. \n   */\n  public void setUseAttributeSets(Vector v)\n  {\n\n    int n = v.size();\n\n    m_attributeSetsNames = new QName[n];\n\n    for (int i = 0; i < n; i++)\n    {\n      m_attributeSetsNames[i] = (QName) v.elementAt(i);\n    }\n  }\n\n  /**\n   * Set the \"use-attribute-sets\" attribute.\n   * Attribute sets are used by specifying a use-attribute-sets\n   * attribute on xsl:element, xsl:copy (see [7.5 Copying]) or\n   * xsl:attribute-set elements. The value of the use-attribute-sets\n   * attribute is a whitespace-separated list of names of attribute\n   * sets. Each name is specified as a QName, which is expanded as\n   * described in [2.4 Qualified Names].\n   *\n   * @param v The value to set for the \"use-attribute-sets\" attribute. \n   */\n  public void setUseAttributeSets(QName[] v)\n  {\n    m_attributeSetsNames = v;\n  }\n\n  /**\n   * Get the \"use-attribute-sets\" attribute.\n   * Attribute sets are used by specifying a use-attribute-sets\n   * attribute on xsl:element, xsl:copy (see [7.5 Copying]) or\n   * xsl:attribute-set elements, or a xsl:use-attribute-sets attribute on\n   * Literal Result Elements.\n   * The value of the use-attribute-sets\n   * attribute is a whitespace-separated list of names of attribute\n   * sets. Each name is specified as a QName, which is expanded as\n   * described in [2.4 Qualified Names].\n   *\n   * @return The value of the \"use-attribute-sets\" attribute. \n   */\n  public QName[] getUseAttributeSets()\n  {\n    return m_attributeSetsNames;\n  }\n  \n  /**\n   * Add the attributes from the named attribute sets to the attribute list.\n   * TODO: Error handling for: \"It is an error if there are two attribute sets\n   * with the same expanded-name and with equal import precedence and that both\n   * contain the same attribute unless there is a definition of the attribute\n   * set with higher import precedence that also contains the attribute.\"\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   * @param stylesheet The owning root stylesheet\n   * @param attributeSetsNames List of attribute sets names to apply\n   *\n   * @throws TransformerException\n   */\n  public void applyAttrSets(\n          TransformerImpl transformer, StylesheetRoot stylesheet)\n            throws TransformerException\n  {\n    applyAttrSets(transformer, stylesheet, m_attributeSetsNames);\n  }\n\n  /**\n   * Add the attributes from the named attribute sets to the attribute list.\n   * TODO: Error handling for: \"It is an error if there are two attribute sets\n   * with the same expanded-name and with equal import precedence and that both\n   * contain the same attribute unless there is a definition of the attribute\n   * set with higher import precedence that also contains the attribute.\"\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   * @param stylesheet The owning root stylesheet\n   * @param attributeSetsNames List of attribute sets names to apply\n   *\n   * @throws TransformerException\n   */\n  private void applyAttrSets(\n          TransformerImpl transformer, StylesheetRoot stylesheet, QName attributeSetsNames[])\n            throws TransformerException\n  {\n\n    if (null != attributeSetsNames)\n    {\n      int nNames = attributeSetsNames.length;\n\n      for (int i = 0; i < nNames; i++)\n      {\n        QName qname = attributeSetsNames[i];\n        Vector attrSets = stylesheet.getAttributeSetComposed(qname);\n\n        if (null != attrSets)\n        {\n          int nSets = attrSets.size();\n\n          for (int k = nSets-1; k >= 0 ; k--)\n          {\n            ElemAttributeSet attrSet =\n              (ElemAttributeSet) attrSets.elementAt(k);\n\n            attrSet.execute(transformer);\n          }\n        } \n        else \n        {\n          throw new TransformerException(\n              XSLMessages.createMessage(XSLTErrorResources.ER_NO_ATTRIB_SET, \n                  new Object[] {qname}),this); \n        }\n      }\n    }\n  }\n\n  /**\n   * Copy attributes specified by use-attribute-sets to the result tree.\n   * Specifying a use-attribute-sets attribute is equivalent to adding\n   * xsl:attribute elements for each of the attributes in each of the\n   * named attribute sets to the beginning of the content of the element\n   * with the use-attribute-sets attribute, in the same order in which\n   * the names of the attribute sets are specified in the use-attribute-sets\n   * attribute. It is an error if use of use-attribute-sets attributes\n   * on xsl:attribute-set elements causes an attribute set to directly\n   * or indirectly use itself.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    if (null != m_attributeSetsNames)\n    {\n      applyAttrSets(transformer, getStylesheetRoot(),\n                    m_attributeSetsNames);", "functions": [{"function_name": "setUseAttributeSets", "code": "  public void setUseAttributeSets(Vector v)\n  {\n\n    int n = v.size();\n\n    m_attributeSetsNames = new QName[n];\n\n    for (int i = 0; i < n; i++)\n    {\n      m_attributeSetsNames[i] = (QName) v.elementAt(i);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 1], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setUseAttributeSets", "code": "  public void setUseAttributeSets(QName[] v)\n  {\n    m_attributeSetsNames = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUseAttributeSets", "code": "  public QName[] getUseAttributeSets()\n  {\n    return m_attributeSetsNames;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "applyAttrSets", "code": "  public void applyAttrSets(\n          TransformerImpl transformer, StylesheetRoot stylesheet)\n            throws TransformerException\n  {\n    applyAttrSets(transformer, stylesheet, m_attributeSetsNames);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "applyAttrSets", "code": "  private void applyAttrSets(\n          TransformerImpl transformer, StylesheetRoot stylesheet, QName attributeSetsNames[])\n            throws TransformerException\n  {\n\n    if (null != attributeSetsNames)\n    {\n      int nNames = attributeSetsNames.length;\n\n      for (int i = 0; i < nNames; i++)\n      {\n        QName qname = attributeSetsNames[i];\n        Vector attrSets = stylesheet.getAttributeSetComposed(qname);\n\n        if (null != attrSets)\n        {\n          int nSets = attrSets.size();\n\n          for (int k = nSets-1; k >= 0 ; k--)\n          {\n            ElemAttributeSet attrSet =\n              (ElemAttributeSet) attrSets.elementAt(k);\n\n            attrSet.execute(transformer);\n          }\n        } \n        else \n        {\n          throw new TransformerException(\n              XSLMessages.createMessage(XSLTErrorResources.ER_NO_ATTRIB_SET, \n                  new Object[] {qname}),this); ", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [6, 10], [6, 11], [6, 12], [10, 13], [6, 14], [10, 15], [10, 16], [10, 17], [13, 18], [11, 19], [15, 20], [16, 21], [20, 22], [16, 23], [21, 24], [17, 25], [16, 26], [16, 27], [27, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 6], [11, 6], [12, 6], [13, 10], [14, 6], [15, 10], [16, 10], [17, 10], [18, 13], [19, 11], [20, 15], [21, 16], [22, 20], [23, 16], [24, 21], [25, 17], [26, 16], [27, 16], [28, 27], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    if (null != m_attributeSetsNames)\n    {\n      applyAttrSets(transformer, getStylesheetRoot(),\n                    m_attributeSetsNames);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "camel-1.4-2113", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/util/ObjectHelper.java", "language": "java", "name": "org.apache.camel.util.ObjectHelper", "code": "public final class ObjectHelper {\n    private static final transient Log LOG = LogFactory.getLog(ObjectHelper.class);\n\n    /**\n     * Utility classes should not have a public constructor.\n     */\n    private ObjectHelper() {\n    }\n\n    /**\n     * @deprecated use the equal method instead. Will be removed in Camel 2.0.\n     *\n     * @see #equal(Object, Object)\n     */\n    @Deprecated\n    public static boolean equals(Object a, Object b) {\n        return equal(a, b);\n    }\n\n    /**\n     * A helper method for comparing objects for equality while handling nulls\n     */\n    public static boolean equal(Object a, Object b) {\n        if (a == b) {\n            return true;\n        }\n\n        if (a instanceof byte[] && b instanceof byte[]) {\n            return equalByteArray((byte[]) a, (byte[]) b);\n        }\n\n        return a != null && b != null && a.equals(b);\n    }\n\n    /**\n     * A helper method for comparing byte arrays for equality while handling nulls\n     */\n    public static boolean equalByteArray(byte[] a, byte[] b) {\n        if (a == b) {\n            return true;\n        }\n\n        if (a != null && b != null && a.length == b.length) {\n            for (int i = 0; i < a.length; i++) {\n                if (a[i] != b[i]) {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        return false;\n    }\n\n    /**\n     * Returns true if the given object is equal to any of the expected value\n     */\n    public static boolean isEqualToAny(Object object, Object... values) {\n        for (Object value : values) {\n            if (equal(object, value)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * A helper method for performing an ordered comparsion on the objects\n     * handling nulls and objects which do not handle sorting gracefully\n     */\n    public static int compare(Object a, Object b) {\n        if (a == b) {\n            return 0;\n        }\n        if (a == null) {\n            return -1;\n        }\n        if (b == null) {\n            return 1;\n        }\n        if (a instanceof Comparable) {\n            Comparable comparable = (Comparable)a;\n            return comparable.compareTo(b);\n        } else {\n            int answer = a.getClass().getName().compareTo(b.getClass().getName());\n            if (answer == 0) {\n                answer = a.hashCode() - b.hashCode();\n            }\n            return answer;\n        }\n    }\n\n    public static Boolean toBoolean(Object value) {\n        if (value instanceof Boolean) {\n            return (Boolean)value;\n        }\n        if (value instanceof String) {\n            return \"true\".equalsIgnoreCase(value.toString()) ? Boolean.TRUE : Boolean.FALSE;\n        }\n        if (value instanceof Integer) {\n            return (Integer)value > 0 ? Boolean.TRUE : Boolean.FALSE;\n        }\n        return null;\n    }\n\n    public static void notNull(Object value, String name) {\n        if (value == null) {\n            throw new IllegalArgumentException(name + \" must be specified\");\n        }\n    }\n\n    public static String[] splitOnCharacter(String value, String needle, int count) {\n        String rc[] = new String[count];\n        rc[0] = value;\n        for (int i = 1; i < count; i++) {\n            String v = rc[i - 1];\n            int p = v.indexOf(needle);\n            if (p < 0) {\n                return rc;\n            }\n            rc[i - 1] = v.substring(0, p);\n            rc[i] = v.substring(p + 1);\n        }\n        return rc;\n    }\n\n    /**\n     * Removes any starting characters on the given text which match the given\n     * character\n     *\n     * @param text the string\n     * @param ch the initial characters to remove\n     * @return either the original string or the new substring\n     */\n    public static String removeStartingCharacters(String text, char ch) {\n        int idx = 0;\n        while (text.charAt(idx) == ch) {\n            idx++;\n        }\n        if (idx > 0) {\n            return text.substring(idx);\n        }\n        return text;\n    }\n\n    public static String capitalize(String text) {\n        if (text == null) {\n            return null;\n        }\n        int length = text.length();\n        if (length == 0) {\n            return text;\n        }\n        String answer = text.substring(0, 1).toUpperCase();\n        if (length > 1) {\n            answer += text.substring(1, length);\n        }\n        return answer;\n    }\n\n\n    /**\n     * Returns true if the collection contains the specified value\n     */\n    @SuppressWarnings(\"unchecked\")\n    public static boolean contains(Object collectionOrArray, Object value) {\n        if (collectionOrArray instanceof Collection) {\n            Collection collection = (Collection)collectionOrArray;\n            return collection.contains(value);\n        } else if (collectionOrArray instanceof String && value instanceof String) {\n            String str = (String) collectionOrArray;\n            String subStr = (String) value;\n            return str.contains(subStr);\n        } else {\n            Iterator iter = createIterator(collectionOrArray);\n            while (iter.hasNext()) {\n                if (equal(value, iter.next())) {\n                    return true;\n                }\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Creates an iterator over the value if the value is a collection, an\n     * Object[] or a primitive type array; otherwise to simplify the caller's\n     * code, we just create a singleton collection iterator over a single value\n     */\n    @SuppressWarnings(\"unchecked\")\n    public static Iterator createIterator(Object value) {\n        if (value == null) {\n            return Collections.EMPTY_LIST.iterator();\n        } else if (value instanceof Collection) {\n            Collection collection = (Collection)value;\n            return collection.iterator();\n        } else if (value.getClass().isArray()) {\n            List<Object> list = Arrays.asList((Object[]) value);\n            return list.iterator();\n        } else if (value instanceof NodeList) {\n            final NodeList nodeList = (NodeList) value;\n            return new Iterator<Node>() {\n                int idx = -1;\n\n                public boolean hasNext() {\n                    return ++idx < nodeList.getLength();\n                }\n\n                public Node next() {\n                    return nodeList.item(idx);\n                }\n\n                public void remove() {\n                    throw new UnsupportedOperationException();\n                }\n            };\n        } else {\n            return Collections.singletonList(value).iterator();\n        }\n    }\n\n    /**\n     * Returns the predicate matching boolean on a {@link List} result set where\n     * if the first element is a boolean its value is used otherwise this method\n     * returns true if the collection is not empty\n     *\n     * @return <tt>true</tt> if the first element is a boolean and its value is true or\n     *          if the list is non empty\n     */\n    public static boolean matches(List list) {\n        if (!list.isEmpty()) {\n            Object value = list.get(0);\n            if (value instanceof Boolean) {\n                Boolean flag = (Boolean)value;\n                return flag.booleanValue();\n            } else {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    public static boolean isNotNullAndNonEmpty(String text) {\n        return text != null && text.trim().length() > 0;\n    }\n\n    public static boolean isNullOrBlank(String text) {\n        return text == null || text.trim().length() <= 0;\n    }\n\n    /**\n     * A helper method to access a system property, catching any security\n     * exceptions\n     *\n     * @param name the name of the system property required\n     * @param defaultValue the default value to use if the property is not\n     *                available or a security exception prevents access\n     * @return the system property value or the default value if the property is\n     *         not available or security does not allow its access\n     */\n    public static String getSystemProperty(String name, String defaultValue) {\n        try {\n            return System.getProperty(name, defaultValue);\n        } catch (Exception e) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Caught security exception accessing system property: \" + name + \". Reason: \" + e,\n                          e);\n            }\n            return defaultValue;\n        }\n    }\n\n    /**\n     * Returns the type name of the given type or null if the type variable is\n     * null\n     */\n    public static String name(Class type) {\n        return type != null ? type.getName() : null;\n    }\n\n    /**\n     * Returns the type name of the given value\n     */\n    public static String className(Object value) {\n        return name(value != null ? value.getClass() : null);\n    }\n\n    /**\n     * Attempts to load the given class name using the thread context class\n     * loader or the class loader used to load this class\n     *\n     * @param name the name of the class to load\n     * @return the class or null if it could not be loaded\n     */\n    public static Class<?> loadClass(String name) {\n        return loadClass(name, ObjectHelper.class.getClassLoader());\n    }\n\n    /**\n     * Attempts to load the given class name using the thread context class\n     * loader or the given class loader\n     *\n     * @param name the name of the class to load\n     * @param loader the class loader to use after the thread context class\n     *                loader\n     * @return the class or null if it could not be loaded\n     */\n    public static Class<?> loadClass(String name, ClassLoader loader) {\n        ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();\n        if (contextClassLoader != null) {\n            try {\n                return contextClassLoader.loadClass(name);\n            } catch (ClassNotFoundException e) {\n                try {\n                    return loader.loadClass(name);\n                } catch (ClassNotFoundException e1) {\n                    LOG.debug(\"Could not find class: \" + name + \". Reason: \" + e);\n                }\n            }\n        }\n        return null;\n    }\n\n    /**\n     * Attempts to load the given resource as a stream using the thread context class\n     * loader or the class loader used to load this class\n     *\n     * @param name the name of the resource to load\n     * @return the stream or null if it could not be loaded\n     */\n    public static InputStream loadResourceAsStream(String name) {\n        InputStream in = null;\n\n        ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();\n        if (contextClassLoader != null) {\n            in = contextClassLoader.getResourceAsStream(name);\n        }\n        if (in == null) {\n            in = ObjectHelper.class.getClassLoader().getResourceAsStream(name);\n        }\n\n        return in;\n    }\n\n    /**\n     * A helper method to invoke a method via reflection and wrap any exceptions\n     * as {@link RuntimeCamelException} instances\n     *\n     * @param method the method to invoke\n     * @param instance the object instance (or null for static methods)\n     * @param parameters the parameters to the method\n     * @return the result of the method invocation\n     */\n    public static Object invokeMethod(Method method, Object instance, Object... parameters) {\n        try {\n            return method.invoke(instance, parameters);\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        } catch (InvocationTargetException e) {\n            throw new RuntimeCamelException(e.getCause());\n        }\n    }\n\n    /**\n     * Returns a list of methods which are annotated with the given annotation\n     *\n     * @param type the type to reflect on\n     * @param annotationType the annotation type\n     * @return a list of the methods found\n     */\n    public static List<Method> findMethodsWithAnnotation(Class<?> type,\n                                                         Class<? extends Annotation> annotationType) {\n        List<Method> answer = new ArrayList<Method>();\n        do {\n            Method[] methods = type.getDeclaredMethods();\n            for (Method method : methods) {\n                if (method.getAnnotation(annotationType) != null) {\n                    answer.add(method);\n                }\n            }\n            type = type.getSuperclass();\n        } while (type != null);\n        return answer;\n    }\n\n    /**\n     * Turns the given object arrays into a meaningful string\n     *\n     * @param objects an array of objects or null\n     * @return a meaningful string\n     */\n    public static String asString(Object[] objects) {\n        if (objects == null) {\n            return \"null\";\n        } else {\n            StringBuffer buffer = new StringBuffer(\"{\");\n            int counter = 0;\n            for (Object object : objects) {\n                if (counter++ > 0) {\n                    buffer.append(\", \");\n                }\n                String text = (object == null) ? \"null\" : object.toString();\n                buffer.append(text);\n            }\n            buffer.append(\"}\");\n            return buffer.toString();\n        }\n    }\n\n    /**\n     * Returns true if a class is assignable from another class like the\n     * {@link Class#isAssignableFrom(Class)} method but which also includes\n     * coercion between primitive types to deal with Java 5 primitive type\n     * wrapping\n     */\n    public static boolean isAssignableFrom(Class a, Class b) {\n        a = convertPrimitiveTypeToWrapperType(a);\n        b = convertPrimitiveTypeToWrapperType(b);\n        return a.isAssignableFrom(b);\n    }\n\n    /**\n     * Converts primitive types such as int to its wrapper type like\n     * {@link Integer}\n     */\n    public static Class convertPrimitiveTypeToWrapperType(Class type) {\n        Class rc = type;\n        if (type.isPrimitive()) {\n            if (type == int.class) {\n                rc = Integer.class;\n            } else if (type == long.class) {\n                rc = Long.class;\n            } else if (type == double.class) {\n                rc = Double.class;\n            } else if (type == float.class) {\n                rc = Float.class;\n            } else if (type == short.class) {\n                rc = Short.class;\n            } else if (type == byte.class) {\n                rc = Byte.class;\n/*\n            } else if (type == boolean.class) {\n                rc = Boolean.class;\n*/\n            }\n        }\n        return rc;\n    }\n\n    /**\n     * Helper method to return the default character set name\n     */\n    public static String getDefaultCharacterSet() {\n        return Charset.defaultCharset().name();\n    }\n\n    /**\n     * Returns the Java Bean property name of the given method, if it is a setter\n     */\n    public static String getPropertyName(Method method) {\n        String propertyName = method.getName();\n        if (propertyName.startsWith(\"set\") && method.getParameterTypes().length == 1) {\n            propertyName = propertyName.substring(3, 4).toLowerCase() + propertyName.substring(4);\n        }\n        return propertyName;\n    }\n\n    /**\n     * Returns true if the given collection of annotations matches the given type\n     */\n    public static boolean hasAnnotation(Annotation[] annotations, Class<?> type) {\n        for (Annotation annotation : annotations) {\n            if (type.isInstance(annotation)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Closes the given resource if it is available, logging any closing exceptions to the given log\n     *\n     * @param closeable the object to close\n     * @param name the name of the resource\n     * @param log the log to use when reporting closure warnings\n     */\n    public static void close(Closeable closeable, String name, Log log) {\n        if (closeable != null) {\n            try {\n                closeable.close();\n            } catch (IOException e) {\n                if (log != null) {\n                    log.warn(\"Could not close: \" + name + \". Reason: \" + e, e);\n                }\n            }\n        }\n    }\n\n    /**\n     * Converts the given value to the required type or throw a meaningful exception\n     */\n    public static <T> T cast(Class<T> toType, Object value) {\n        if (toType == boolean.class) {\n            return (T)cast(Boolean.class, value);\n        } else if (toType.isPrimitive()) {\n            Class newType = convertPrimitiveTypeToWrapperType(toType);\n            if (newType != toType) {\n                return (T)cast(newType, value);\n            }\n        }\n        try {\n            return toType.cast(value);\n        } catch (ClassCastException e) {\n            throw new IllegalArgumentException(\"Failed to convert: \" + value + \" to type: \"\n                                               + toType.getName() + \" due to: \" + e, e);\n        }\n    }\n\n    /**\n     * A helper method to create a new instance of a type using the default constructor arguments.\n     */\n    public static <T> T newInstance(Class<T> type) {\n        try {\n            return type.newInstance();\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e.getCause());\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    /**\n     * A helper method to create a new instance of a type using the default constructor arguments.\n     */\n    public static <T> T newInstance(Class<?> actualType, Class<T> expectedType) {\n        try {\n            Object value = actualType.newInstance();\n            return cast(expectedType, value);\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e.getCause());\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    /**\n     * Returns true if the given name is a valid java identifier\n     */\n    public static boolean isJavaIdentifier(String name) {\n        if (name == null) {\n            return false;\n        }\n        int size = name.length();\n        if (size < 1) {\n            return false;\n        }\n        if (Character.isJavaIdentifierStart(name.charAt(0))) {\n            for (int i = 1; i < size; i++) {\n                if (!Character.isJavaIdentifierPart(name.charAt(i))) {\n                    return false;\n                }\n            }\n            return true;\n        }\n        return false;\n    }\n\n    /**\n     * Returns the type of the given object or null if the value is null\n     */\n    public static Object type(Object bean) {\n        return bean != null ? bean.getClass() : null;\n    }\n\n    /**\n     * Evaluate the value as a predicate which attempts to convert the value to\n     * a boolean otherwise true is returned if the value is not null\n     */\n    public static boolean evaluateValuePredicate(Object value) {\n        if (value instanceof Boolean) {\n            Boolean aBoolean = (Boolean)value;\n            return aBoolean.booleanValue();\n        }\n        return value != null;", "functions": [{"function_name": "equals", "code": "    @Deprecated\n    public static boolean equals(Object a, Object b) {\n        return equal(a, b);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "equal", "code": "    public static boolean equal(Object a, Object b) {\n        if (a == b) {\n            return true;\n        }\n\n        if (a instanceof byte[] && b instanceof byte[]) {\n            return equalByteArray((byte[]) a, (byte[]) b);\n        }\n\n        return a != null && b != null && a.equals(b);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [6, 9], [6, 10], [2, 11], [7, 12], [7, 13], [3, 14], [10, 15], [10, 16], [11, 17], [14, 18], [15, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 6], [10, 6], [11, 2], [12, 7], [13, 7], [14, 3], [15, 10], [16, 10], [17, 11], [18, 14], [19, 15], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "equalByteArray", "code": "    public static boolean equalByteArray(byte[] a, byte[] b) {\n        if (a == b) {\n            return true;\n        }\n\n        if (a != null && b != null && a.length == b.length) {\n            for (int i = 0; i < a.length; i++) {\n                if (a[i] != b[i]) {\n                    return false;\n                }\n            }\n            return true;\n        }\n\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [2, 10], [7, 11], [7, 12], [3, 13], [9, 14], [10, 15], [12, 16], [12, 17], [13, 18], [10, 19], [16, 20], [17, 21], [19, 22], [10, 23], [19, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 2], [11, 7], [12, 7], [13, 3], [14, 9], [15, 10], [16, 12], [17, 12], [18, 13], [19, 10], [20, 16], [21, 17], [22, 19], [23, 10], [24, 19], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "isEqualToAny", "code": "    public static boolean isEqualToAny(Object object, Object... values) {\n        for (Object value : values) {\n            if (equal(object, value)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "compare", "code": "    public static int compare(Object a, Object b) {\n        if (a == b) {\n            return 0;\n        }\n        if (a == null) {\n            return -1;\n        }\n        if (b == null) {\n            return 1;\n        }\n        if (a instanceof Comparable) {\n            Comparable comparable = (Comparable)a;\n            return comparable.compareTo(b);\n        } else {\n            int answer = a.getClass().getName().compareTo(b.getClass().getName());\n            if (answer == 0) {\n                answer = a.hashCode() - b.hashCode();\n            }\n            return answer;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "RETURN", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [2, 16], [8, 17], [3, 18], [9, 19], [4, 20], [12, 21], [14, 22], [16, 23], [18, 24], [20, 25], [21, 26], [13, 27], [12, 28], [27, 29], [27, 30], [28, 31], [29, 32], [31, 33], [31, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 2], [17, 8], [18, 3], [19, 9], [20, 4], [21, 12], [22, 14], [23, 16], [24, 18], [25, 20], [26, 21], [27, 13], [28, 12], [29, 27], [30, 27], [31, 28], [32, 29], [33, 31], [34, 31], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "toBoolean", "code": "    public static Boolean toBoolean(Object value) {\n        if (value instanceof Boolean) {\n            return (Boolean)value;\n        }\n        if (value instanceof String) {\n            return \"true\".equalsIgnoreCase(value.toString()) ? Boolean.TRUE : Boolean.FALSE;\n        }\n        if (value instanceof Integer) {\n            return (Integer)value > 0 ? Boolean.TRUE : Boolean.FALSE;\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "RETURN", "COND_EXPR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [2, 10], [3, 11], [4, 12], [10, 13], [11, 14], [13, 15], [14, 16], [15, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 2], [11, 3], [12, 4], [13, 10], [14, 11], [15, 13], [16, 14], [17, 15], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "notNull", "code": "    public static void notNull(Object value, String name) {\n        if (value == null) {\n            throw new IllegalArgumentException(name + \" must be specified\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "splitOnCharacter", "code": "    public static String[] splitOnCharacter(String value, String needle, int count) {\n        String rc[] = new String[count];\n        rc[0] = value;\n        for (int i = 1; i < count; i++) {\n            String v = rc[i - 1];\n            int p = v.indexOf(needle);\n            if (p < 0) {\n                return rc;\n            }\n            rc[i - 1] = v.substring(0, p);\n            rc[i] = v.substring(p + 1);\n        }\n        return rc;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [9, 14], [2, 15], [12, 16], [13, 17], [9, 18], [14, 19], [10, 20], [8, 21], [16, 22], [17, 23], [22, 24], [13, 25], [11, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 9], [15, 2], [16, 12], [17, 13], [18, 9], [19, 14], [20, 10], [21, 8], [22, 16], [23, 17], [24, 22], [25, 13], [26, 11], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "removeStartingCharacters", "code": "    public static String removeStartingCharacters(String text, char ch) {\n        int idx = 0;\n        while (text.charAt(idx) == ch) {\n            idx++;\n        }\n        if (idx > 0) {\n            return text.substring(idx);\n        }\n        return text;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [7, 10], [8, 11], [4, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 7], [11, 8], [12, 4], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "capitalize", "code": "    public static String capitalize(String text) {\n        if (text == null) {\n            return null;\n        }\n        int length = text.length();\n        if (length == 0) {\n            return text;\n        }\n        String answer = text.substring(0, 1).toUpperCase();\n        if (length > 1) {\n            answer += text.substring(1, length);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [4, 9], [6, 10], [8, 11], [3, 12], [4, 13], [9, 14], [5, 15], [6, 16], [10, 17], [2, 18], [12, 19], [12, 20], [12, 21], [16, 22], [18, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 4], [10, 6], [11, 8], [12, 3], [13, 4], [14, 9], [15, 5], [16, 6], [17, 10], [18, 2], [19, 12], [20, 12], [21, 12], [22, 16], [23, 18], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "contains", "code": "    @SuppressWarnings(\"unchecked\")\n    public static boolean contains(Object collectionOrArray, Object value) {\n        if (collectionOrArray instanceof Collection) {\n            Collection collection = (Collection)collectionOrArray;\n            return collection.contains(value);\n        } else if (collectionOrArray instanceof String && value instanceof String) {\n            String str = (String) collectionOrArray;\n            String subStr = (String) value;\n            return str.contains(subStr);\n        } else {\n            Iterator iter = createIterator(collectionOrArray);\n            while (iter.hasNext()) {\n                if (equal(value, iter.next())) {\n                    return true;\n                }\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [2, 10], [2, 11], [7, 12], [7, 13], [7, 14], [7, 15], [7, 16], [9, 17], [9, 18], [10, 19], [12, 20], [14, 21], [12, 22], [13, 23], [22, 24], [22, 25], [24, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 2], [11, 2], [12, 7], [13, 7], [14, 7], [15, 7], [16, 7], [17, 9], [18, 9], [19, 10], [20, 12], [21, 14], [22, 12], [23, 13], [24, 22], [25, 22], [26, 24], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "createIterator", "code": "    @SuppressWarnings(\"unchecked\")\n    public static Iterator createIterator(Object value) {\n        if (value == null) {\n            return Collections.EMPTY_LIST.iterator();\n        } else if (value instanceof Collection) {\n            Collection collection = (Collection)value;\n            return collection.iterator();\n        } else if (value.getClass().isArray()) {\n            List<Object> list = Arrays.asList((Object[]) value);\n            return list.iterator();\n        } else if (value instanceof NodeList) {\n            final NodeList nodeList = (NodeList) value;\n            return new Iterator<Node>() {\n                int idx = -1;\n\n                public boolean hasNext() {\n                    return ++idx < nodeList.getLength();\n                }\n\n                public Node next() {\n                    return nodeList.item(idx);\n                }\n\n                public void remove() {\n                    throw new UnsupportedOperationException();\n                }\n            };\n        } else {\n            return Collections.singletonList(value).iterator();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "CALL", "RETURN", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "VAR_DECL", "THROW_RAISE", "RETURN", "RETURN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [5, 9], [6, 10], [6, 11], [4, 12], [4, 13], [8, 14], [10, 15], [6, 16], [6, 17], [11, 18], [12, 19], [10, 20], [10, 21], [10, 22], [16, 23], [20, 24], [21, 25], [17, 26], [24, 27], [25, 28], [25, 29], [25, 30], [25, 31], [28, 32], [29, 33], [30, 34], [32, 35], [33, 36], [34, 37], [31, 38], [37, 39], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 5], [10, 6], [11, 6], [12, 4], [13, 4], [14, 8], [15, 10], [16, 6], [17, 6], [18, 11], [19, 12], [20, 10], [21, 10], [22, 10], [23, 16], [24, 20], [25, 21], [26, 17], [27, 24], [28, 25], [29, 25], [30, 25], [31, 25], [32, 28], [33, 29], [34, 30], [35, 32], [36, 33], [37, 34], [38, 31], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "matches", "code": "    public static boolean matches(List list) {\n        if (!list.isEmpty()) {\n            Object value = list.get(0);\n            if (value instanceof Boolean) {\n                Boolean flag = (Boolean)value;\n                return flag.booleanValue();\n            } else {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [6, 9], [6, 10], [6, 11], [7, 12], [9, 13], [10, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 6], [10, 6], [11, 6], [12, 7], [13, 9], [14, 10], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "isNotNullAndNonEmpty", "code": "    public static boolean isNotNullAndNonEmpty(String text) {\n        return text != null && text.trim().length() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isNullOrBlank", "code": "    public static boolean isNullOrBlank(String text) {\n        return text == null || text.trim().length() <= 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSystemProperty", "code": "    public static String getSystemProperty(String name, String defaultValue) {\n        try {\n            return System.getProperty(name, defaultValue);\n        } catch (Exception e) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Caught security exception accessing system property: \" + name + \". Reason: \" + e,\n                          e);\n            }\n            return defaultValue;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "RETURN", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [5, 8], [7, 9], [7, 10], [10, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 5], [9, 7], [10, 7], [11, 10], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "name", "code": "    public static String name(Class type) {\n        return type != null ? type.getName() : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "className", "code": "    public static String className(Object value) {\n        return name(value != null ? value.getClass() : null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "loadClass", "code": "    public static Class<?> loadClass(String name) {\n        return loadClass(name, ObjectHelper.class.getClassLoader());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "loadClass", "code": "    public static Class<?> loadClass(String name, ClassLoader loader) {\n        ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();\n        if (contextClassLoader != null) {\n            try {\n                return contextClassLoader.loadClass(name);\n            } catch (ClassNotFoundException e) {\n                try {\n                    return loader.loadClass(name);\n                } catch (ClassNotFoundException e1) {\n                    LOG.debug(\"Could not find class: \" + name + \". Reason: \" + e);\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "RETURN", "CALL", "TRY", "CALL", "CATCH", "RETURN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [3, 10], [8, 11], [8, 12], [10, 13], [11, 14], [12, 15], [14, 16], [14, 17], [17, 18], [16, 19], [19, 20], [20, 21], [21, 22], [21, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 3], [11, 8], [12, 8], [13, 10], [14, 11], [15, 12], [16, 14], [17, 14], [18, 17], [19, 16], [20, 19], [21, 20], [22, 21], [23, 21], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "loadResourceAsStream", "code": "    public static InputStream loadResourceAsStream(String name) {\n        InputStream in = null;\n\n        ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();\n        if (contextClassLoader != null) {\n            in = contextClassLoader.getResourceAsStream(name);\n        }\n        if (in == null) {\n            in = ObjectHelper.class.getClassLoader().getResourceAsStream(name);\n        }\n\n        return in;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [7, 9], [8, 10], [4, 11], [5, 12], [2, 13], [3, 14], [11, 15], [13, 16], [13, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 7], [10, 8], [11, 4], [12, 5], [13, 2], [14, 3], [15, 11], [16, 13], [17, 13], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "invokeMethod", "code": "    public static Object invokeMethod(Method method, Object instance, Object... parameters) {\n        try {\n            return method.invoke(instance, parameters);\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);\n        } catch (InvocationTargetException e) {\n            throw new RuntimeCamelException(e.getCause());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "findMethodsWithAnnotation", "code": "    public static List<Method> findMethodsWithAnnotation(Class<?> type,\n                                                         Class<? extends Annotation> annotationType) {\n        List<Method> answer = new ArrayList<Method>();\n        do {\n            Method[] methods = type.getDeclaredMethods();\n            for (Method method : methods) {\n                if (method.getAnnotation(annotationType) != null) {\n                    answer.add(method);\n                }\n            }\n            type = type.getSuperclass();\n        } while (type != null);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [2, 11], [11, 12], [7, 13], [8, 14], [13, 15], [15, 16], [15, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 2], [12, 11], [13, 7], [14, 8], [15, 13], [16, 15], [17, 15], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "asString", "code": "    public static String asString(Object[] objects) {\n        if (objects == null) {\n            return \"null\";\n        } else {\n            StringBuffer buffer = new StringBuffer(\"{\");\n            int counter = 0;\n            for (Object object : objects) {\n                if (counter++ > 0) {\n                    buffer.append(\", \");\n                }\n                String text = (object == null) ? \"null\" : object.toString();\n                buffer.append(text);\n            }\n            buffer.append(\"}\");\n            return buffer.toString();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [4, 10], [1, 11], [8, 12], [11, 13], [5, 14], [5, 15], [6, 16], [7, 17], [5, 18], [15, 19], [17, 20], [14, 21], [19, 22], [21, 23], [21, 24], [21, 25], [15, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 4], [11, 1], [12, 8], [13, 11], [14, 5], [15, 5], [16, 6], [17, 7], [18, 5], [19, 15], [20, 17], [21, 14], [22, 19], [23, 21], [24, 21], [25, 21], [26, 15], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "isAssignableFrom", "code": "    public static boolean isAssignableFrom(Class a, Class b) {\n        a = convertPrimitiveTypeToWrapperType(a);\n        b = convertPrimitiveTypeToWrapperType(b);\n        return a.isAssignableFrom(b);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "convertPrimitiveTypeToWrapperType", "code": "    public static Class convertPrimitiveTypeToWrapperType(Class type) {\n        Class rc = type;\n        if (type.isPrimitive()) {\n            if (type == int.class) {\n                rc = Integer.class;\n            } else if (type == long.class) {\n                rc = Long.class;\n            } else if (type == double.class) {\n                rc = Double.class;\n            } else if (type == float.class) {\n                rc = Float.class;\n            } else if (type == short.class) {\n                rc = Short.class;\n            } else if (type == byte.class) {\n                rc = Byte.class;\n/*\n            } else if (type == boolean.class) {\n                rc = Boolean.class;\n*/\n            }\n        }\n        return rc;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [6, 7], [6, 8], [7, 9], [7, 10], [9, 11], [9, 12], [6, 13], [11, 14], [11, 15], [7, 16], [14, 17], [14, 18], [9, 19], [17, 20], [11, 21], [14, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 6], [8, 6], [9, 7], [10, 7], [11, 9], [12, 9], [13, 6], [14, 11], [15, 11], [16, 7], [17, 14], [18, 14], [19, 9], [20, 17], [21, 11], [22, 14], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getDefaultCharacterSet", "code": "    public static String getDefaultCharacterSet() {\n        return Charset.defaultCharset().name();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPropertyName", "code": "    public static String getPropertyName(Method method) {\n        String propertyName = method.getName();\n        if (propertyName.startsWith(\"set\") && method.getParameterTypes().length == 1) {\n            propertyName = propertyName.substring(3, 4).toLowerCase() + propertyName.substring(4);\n        }\n        return propertyName;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [5, 7], [3, 8], [2, 9], [6, 10], [6, 11], [7, 12], [9, 13], [13, 14], [13, 15], [14, 16], [15, 17], [15, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 5], [8, 3], [9, 2], [10, 6], [11, 6], [12, 7], [13, 9], [14, 13], [15, 13], [16, 14], [17, 15], [18, 15], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "hasAnnotation", "code": "    public static boolean hasAnnotation(Annotation[] annotations, Class<?> type) {\n        for (Annotation annotation : annotations) {\n            if (type.isInstance(annotation)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "close", "code": "    public static void close(Closeable closeable, String name, Log log) {\n        if (closeable != null) {\n            try {\n                closeable.close();\n            } catch (IOException e) {\n                if (log != null) {\n                    log.warn(\"Could not close: \" + name + \". Reason: \" + e, e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [8, 9], [6, 10], [9, 11], [11, 12], [9, 13], [13, 14], [14, 15], [15, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 8], [10, 6], [11, 9], [12, 11], [13, 9], [14, 13], [15, 14], [16, 15], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "cast", "code": "    public static <T> T cast(Class<T> toType, Object value) {\n        if (toType == boolean.class) {\n            return (T)cast(Boolean.class, value);\n        } else if (toType.isPrimitive()) {\n            Class newType = convertPrimitiveTypeToWrapperType(toType);\n            if (newType != toType) {\n                return (T)cast(newType, value);\n            }\n        }\n        try {\n            return toType.cast(value);\n        } catch (ClassCastException e) {\n            throw new IllegalArgumentException(\"Failed to convert: \" + value + \" to type: \"\n                                               + toType.getName() + \" due to: \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "RETURN", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [5, 9], [6, 10], [7, 11], [2, 12], [9, 13], [7, 14], [7, 15], [13, 16], [14, 17], [12, 18], [16, 19], [14, 20], [15, 21], [19, 22], [19, 23], [23, 24], [23, 25], [20, 26], [25, 27], [25, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 5], [10, 6], [11, 7], [12, 2], [13, 9], [14, 7], [15, 7], [16, 13], [17, 14], [18, 12], [19, 16], [20, 14], [21, 15], [22, 19], [23, 19], [24, 23], [25, 23], [26, 20], [27, 25], [28, 25], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "newInstance", "code": "    public static <T> T newInstance(Class<T> type) {\n        try {\n            return type.newInstance();\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e.getCause());\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "RETURN", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "newInstance", "code": "    public static <T> T newInstance(Class<?> actualType, Class<T> expectedType) {\n        try {\n            Object value = actualType.newInstance();\n            return cast(expectedType, value);\n        } catch (InstantiationException e) {\n            throw new RuntimeCamelException(e.getCause());\n        } catch (IllegalAccessException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [8, 11], [9, 12], [7, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 8], [12, 9], [13, 7], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isJavaIdentifier", "code": "    public static boolean isJavaIdentifier(String name) {\n        if (name == null) {\n            return false;\n        }\n        int size = name.length();\n        if (size < 1) {\n            return false;\n        }\n        if (Character.isJavaIdentifierStart(name.charAt(0))) {\n            for (int i = 1; i < size; i++) {\n                if (!Character.isJavaIdentifierPart(name.charAt(i))) {\n                    return false;\n                }\n            }\n            return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [5, 10], [2, 11], [2, 12], [8, 13], [3, 14], [9, 15], [4, 16], [5, 17], [10, 18], [11, 19], [12, 20], [13, 21], [14, 22], [17, 23], [12, 24], [24, 25], [12, 26], [24, 27], [25, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 5], [11, 2], [12, 2], [13, 8], [14, 3], [15, 9], [16, 4], [17, 5], [18, 10], [19, 11], [20, 12], [21, 13], [22, 14], [23, 17], [24, 12], [25, 24], [26, 12], [27, 24], [28, 25], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "type", "code": "    public static Object type(Object bean) {\n        return bean != null ? bean.getClass() : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "evaluateValuePredicate", "code": "    public static boolean evaluateValuePredicate(Object value) {\n        if (value instanceof Boolean) {\n            Boolean aBoolean = (Boolean)value;\n            return aBoolean.booleanValue();\n        }\n        return value != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ObjectHelper", "code": "    private ObjectHelper() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "jedit-3.2-3656", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/JARClassLoader.java", "language": "java", "name": "org.gjt.sp.jedit.JARClassLoader", "code": "public class JARClassLoader extends ClassLoader\n{\n\t// no-args constructor is for loading classes from all plugins\n\t// eg BeanShell uses one of these so that scripts can use\n\t// plugin classes\n\tpublic JARClassLoader()\n\t{\n\t}\n\n\tpublic JARClassLoader(String path)\n\t\tthrows IOException\n\t{\n\t\tzipFile = new ZipFile(path);\n\n\t\tEnumeration entires = zipFile.entries();\n\t\twhile(entires.hasMoreElements())\n\t\t{\n\t\t\tZipEntry entry = (ZipEntry)entires.nextElement();\n\t\t\tString name = entry.getName();\n\t\t\tString lname = name.toLowerCase();\n\t\t\tif(lname.equals(\"actions.xml\"))\n\t\t\t{\n\t\t\t\tjEdit.loadActions(path + \"!actions.xml\",\n\t\t\t\t\tnew BufferedReader(new InputStreamReader(\n\t\t\t\t\tzipFile.getInputStream(entry))),true);\n\t\t\t}\n\t\t\telse if(lname.endsWith(\".props\"))\n\t\t\t\tjEdit.loadProps(zipFile.getInputStream(entry),true);\n\t\t\telse if(name.endsWith(\"Plugin.class\"))\n\t\t\t\tpluginClasses.addElement(name);\n\t\t}\n\n\t\tjar = new EditPlugin.JAR(path,this);\n\t\tjEdit.addPluginJAR(jar);\n\t}\n\n\t/**\n\t * @exception ClassNotFoundException if the class could not be found\n\t */\n\tpublic Class loadClass(String clazz, boolean resolveIt)\n\t\tthrows ClassNotFoundException\n\t{\n\t\treturn loadClass(clazz,resolveIt,true);\n\t}\n\n\tpublic InputStream getResourceAsStream(String name)\n\t{\n\t\tif(zipFile == null)\n\t\t\treturn null;\n\n\t\ttry\n\t\t{\n\t\t\tZipEntry entry = zipFile.getEntry(name);\n\t\t\tif(entry == null)\n\t\t\t\treturn getSystemResourceAsStream(name);\n\t\t\telse\n\t\t\t\treturn zipFile.getInputStream(entry);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,io);\n\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tpublic URL getResource(String name)\n\t{\n\t\tif(zipFile == null)\n\t\t\treturn null;\n\n\t\tZipEntry entry = zipFile.getEntry(name);\n\t\tif(entry == null)\n\t\t\treturn getSystemResource(name);\n\n\t\ttry\n\t\t{\n\t\t\treturn new URL(getResourceAsPath(name));\n\t\t}\n\t\tcatch(MalformedURLException mu)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,mu);\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tpublic String getResourceAsPath(String name)\n\t{\n\t\tif(zipFile == null)\n\t\t\treturn null;\n\n\t\tif(!name.startsWith(\"/\"))\n\t\t\tname = \"/\" + name;\n\n\t\treturn \"jeditresource:/\" + MiscUtilities.getFileName(\n\t\t\tjar.getPath()) + \"!\" + name;\n\t}\n\n\t/**\n\t * Closes the ZIP file. This plugin will no longer be usable\n\t * after this.\n\t * @since jEdit 2.6pre1\n\t */\n\tpublic void closeZipFile()\n\t{\n\t\tif(zipFile == null)\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\tzipFile.close();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,io);\n\t\t}\n\n\t\tzipFile = null;\n\t}\n\n\t/**\n\t * Returns the ZIP file associated with this class loader.\n\t * @since jEdit 3.0final\n\t */\n\tpublic ZipFile getZipFile()\n\t{\n\t\treturn zipFile;\n\t}\n\n\t// package-private members\n\tvoid startAllPlugins()\n\t{\n\t\tfor(int i = 0; i < pluginClasses.size(); i++)\n\t\t{\n\t\t\tString name = (String)pluginClasses.elementAt(i);\n\t\t\tname = MiscUtilities.fileToClass(name);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tloadPluginClass(name);\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,\"Error while starting plugin \" + name);\n\t\t\t\tLog.log(Log.ERROR,this,t);\n\n\t\t\t\tjar.addPlugin(new EditPlugin.Broken(name));\n\t\t\t\tString[] args = { name, t.toString() };\n\t\t\t\tGUIUtilities.error(null,\"plugin.start-error\",args);\n\t\t\t}\n\t\t}\n\t}\n\n\t// private members\n\tprivate EditPlugin.JAR jar;\n\tprivate Vector pluginClasses = new Vector();\n\tprivate ZipFile zipFile;\n\n\tprivate void loadPluginClass(String name)\n\t\tthrows Exception\n\t{\n\t\t// Check if a plugin with the same name is already loaded\n\t\tEditPlugin[] plugins = jEdit.getPlugins();\n\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tif(plugins[i].getClass().getName().equals(name))\n\t\t\t{\n\t\t\t\tString[] args = { name };\n\t\t\t\tGUIUtilities.error(null,\"plugin.already-loaded\",args);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Check dependencies\n\t\tif(!checkDependencies(name))\n\t\t{\n\t\t\tjar.addPlugin(new EditPlugin.Broken(name));\n\t\t\treturn;\n\t\t}\n\n\t\t// JDK 1.1.8 throws a GPF when we do an isAssignableFrom()\n\t\t// on an unresolved class\n\t\tClass clazz = loadClass(name,true);\n\t\tint modifiers = clazz.getModifiers();\n\t\tif(!Modifier.isInterface(modifiers)\n\t\t\t&& !Modifier.isAbstract(modifiers)\n\t\t\t&& EditPlugin.class.isAssignableFrom(clazz))\n\t\t{\n\t\t\tString version = jEdit.getProperty(\"plugin.\"\n\t\t\t\t+ name + \".version\");\n\n\t\t\tif(version == null)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,this,\"Plugin \" +\n\t\t\t\t\tname + \" doesn't\"\n\t\t\t\t\t+ \" have a 'version' property.\");\n\t\t\t\tversion = \"\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tversion = \" (version \" + version + \")\";\n\n\t\t\tLog.log(Log.NOTICE,this,\"Starting plugin \" + name\n\t\t\t\t\t+ version);\n\n\t\t\tjar.addPlugin((EditPlugin)clazz.newInstance());\n\t\t}\n\t}\n\n\tprivate boolean checkDependencies(String name)\n\t{\n\t\tint i = 0;\n\n\t\tString dep;\n\t\twhile((dep = jEdit.getProperty(\"plugin.\" + name + \".depend.\" + i++)) != null)\n\t\t{\n\t\t\tint index = dep.indexOf(' ');\n\t\t\tif(index == -1)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,name + \" has an invalid\"\n\t\t\t\t\t+ \" dependency: \" + dep);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tString what = dep.substring(0,index);\n\t\t\tString arg = dep.substring(index + 1);\n\n\t\t\tif(what.equals(\"jdk\"))\n\t\t\t{\n\t\t\t\tif(System.getProperty(\"java.version\").compareTo(arg) < 0)\n\t\t\t\t{\n\t\t\t\t\tString[] args = { name, arg,\n\t\t\t\t\t\tSystem.getProperty(\"java.version\") };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-jdk\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(what.equals(\"jedit\"))\n\t\t\t{\n\t\t\t\tif(jEdit.getBuild().compareTo(arg) < 0)\n\t\t\t\t{\n\t\t\t\t\tString needs = MiscUtilities.buildToVersion(arg);\n\t\t\t\t\tString[] args = { name, needs,\n\t\t\t\t\t\tjEdit.getVersion() };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-jedit\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(what.equals(\"plugin\"))\n\t\t\t{\n\t\t\t\tint index2 = arg.indexOf(' ');\n\t\t\t\tif(index2 == -1)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,name \n\t\t\t\t\t\t+ \" has an invalid dependency: \"\n\t\t\t\t\t\t+ dep + \" (version is missing)\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString plugin = arg.substring(0,index2);\n\t\t\t\tString needVersion = arg.substring(index2 + 1);\n\t\t\t\tString currVersion = jEdit.getProperty(\"plugin.\" \n\t\t\t\t\t+ plugin + \".version\");\n\n\t\t\t\tif(currVersion == null)\n\t\t\t\t{\n\t\t\t\t\tString[] args = { name, needVersion, plugin };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-plugin.no-version\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif(MiscUtilities.compareVersions(currVersion,\n\t\t\t\t\tneedVersion) < 0)\n\t\t\t\t{\n\t\t\t\t\tString[] args = { name, needVersion, plugin, currVersion };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-plugin\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif(jEdit.getPlugin(plugin) instanceof EditPlugin.Broken)\n\t\t\t\t{\n\t\t\t\t\tString[] args = { name, plugin };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-plugin.broken\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(what.equals(\"class\"))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tloadClass(arg,false);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tString[] args = { name, arg };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-class\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,name + \" has unknown\"\n\t\t\t\t\t+ \" dependency: \" + dep);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate Class findOtherClass(String clazz, boolean resolveIt)\n\t\tthrows ClassNotFoundException\n\t{\n\t\tEditPlugin.JAR[] jars = jEdit.getPluginJARs();\n\t\tfor(int i = 0; i < jars.length; i++)\n\t\t{\n\t\t\tJARClassLoader loader = jars[i].getClassLoader();\n\t\t\tClass cls = loader.loadClass(clazz,resolveIt,\n\t\t\t\tfalse);\n\t\t\tif(cls != null)\n\t\t\t\treturn cls;\n\t\t}\n\n\t\t/* Defer to whoever loaded us (such as JShell, Echidna, etc) */\n                ClassLoader loader = getClass().getClassLoader();\n\t\tif (loader != null)\n\t\t\treturn loader.loadClass(clazz);\n\n\t\t/* Doesn't exist in any other plugin, look in system classes */\n\t\treturn findSystemClass(clazz);\n\t}\n\n\tprivate Class loadClass(String clazz, boolean resolveIt, boolean doDepencies)\n\t\tthrows ClassNotFoundException\n\t{\n\t\tClass cls = findLoadedClass(clazz);\n\t\tif(cls != null)\n\t\t{\n\t\t\tif(resolveIt)\n\t\t\t\tresolveClass(cls);\n\t\t\treturn cls;\n\t\t}\n\n\t\tif(zipFile == null)\n\t\t{\n\t\t\tif(doDepencies)\n\t\t\t\treturn findOtherClass(clazz,resolveIt);\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}\n\n\t\tString name = MiscUtilities.classToFile(clazz);\n\n\t\ttry\n\t\t{\n\t\t\tZipEntry entry = zipFile.getEntry(name);\n\n\t\t\tif(entry == null)\n\t\t\t{\n\t\t\t\tif(doDepencies)\n\t\t\t\t\treturn findOtherClass(clazz,resolveIt);\n\t\t\t\telse\n\t\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tInputStream in = zipFile.getInputStream(entry);\n\n\t\t\tint len = (int)entry.getSize();\n\t\t\tbyte[] data = new byte[len];\n\t\t\tint success = 0;\n\t\t\tint offset = 0;\n\t\t\twhile(success < len)\n\t\t\t{\n\t\t\t\tlen -= success;\n\t\t\t\toffset += success;\n\t\t\t\tsuccess = in.read(data,offset,len);\n\t\t\t\tif(success == -1)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,\"Failed to load class \"\n\t\t\t\t\t\t+ clazz + \" from \" + zipFile.getName());\n\t\t\t\t\tthrow new ClassNotFoundException(clazz);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcls = defineClass(clazz,data,0,data.length);\n\n\t\t\tif(resolveIt)\n\t\t\t\tresolveClass(cls);\n\n\t\t\treturn cls;\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,io);\n\n\t\t\tthrow new ClassNotFoundException(clazz);", "functions": [{"function_name": "loadClass", "code": "\tpublic Class loadClass(String clazz, boolean resolveIt)\n\t\tthrows ClassNotFoundException\n\t{\n\t\treturn loadClass(clazz,resolveIt,true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getResourceAsStream", "code": "\tpublic InputStream getResourceAsStream(String name)\n\t{\n\t\tif(zipFile == null)\n\t\t\treturn null;\n\n\t\ttry\n\t\t{\n\t\t\tZipEntry entry = zipFile.getEntry(name);\n\t\t\tif(entry == null)\n\t\t\t\treturn getSystemResourceAsStream(name);\n\t\t\telse\n\t\t\t\treturn zipFile.getInputStream(entry);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,io);\n\n\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "RETURN", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [4, 9], [5, 10], [5, 11], [5, 12], [7, 13], [8, 14], [9, 15], [4, 16], [10, 17], [11, 18], [12, 19], [6, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 4], [10, 5], [11, 5], [12, 5], [13, 7], [14, 8], [15, 9], [16, 4], [17, 10], [18, 11], [19, 12], [20, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getResource", "code": "\tpublic URL getResource(String name)\n\t{\n\t\tif(zipFile == null)\n\t\t\treturn null;\n\n\t\tZipEntry entry = zipFile.getEntry(name);\n\t\tif(entry == null)\n\t\t\treturn getSystemResource(name);\n\n\t\ttry\n\t\t{\n\t\t\treturn new URL(getResourceAsPath(name));\n\t\t}\n\t\tcatch(MalformedURLException mu)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,mu);\n\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "IF", "PARAM", "CATCH", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [2, 9], [4, 10], [4, 11], [6, 12], [7, 13], [8, 14], [9, 15], [3, 16], [10, 17], [11, 18], [12, 19], [6, 20], [13, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 2], [10, 4], [11, 4], [12, 6], [13, 7], [14, 8], [15, 9], [16, 3], [17, 10], [18, 11], [19, 12], [20, 6], [21, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceAsPath", "code": "\tpublic String getResourceAsPath(String name)\n\t{\n\t\tif(zipFile == null)\n\t\t\treturn null;\n\n\t\tif(!name.startsWith(\"/\"))\n\t\t\tname = \"/\" + name;\n\n\t\treturn \"jeditresource:/\" + MiscUtilities.getFileName(\n\t\t\tjar.getPath()) + \"!\" + name;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [5, 9], [2, 10], [6, 11], [7, 12], [8, 13], [9, 14], [9, 15], [10, 16], [15, 17], [15, 18], [16, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 5], [10, 2], [11, 6], [12, 7], [13, 8], [14, 9], [15, 9], [16, 10], [17, 15], [18, 15], [19, 16], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "closeZipFile", "code": "\tpublic void closeZipFile()\n\t{\n\t\tif(zipFile == null)\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\tzipFile.close();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,io);\n\t\t}\n\n\t\tzipFile = null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "ASSIGN", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [1, 8], [6, 9], [4, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 1], [9, 6], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getZipFile", "code": "\tpublic ZipFile getZipFile()\n\t{\n\t\treturn zipFile;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startAllPlugins", "code": "\tvoid startAllPlugins()\n\t{\n\t\tfor(int i = 0; i < pluginClasses.size(); i++)\n\t\t{\n\t\t\tString name = (String)pluginClasses.elementAt(i);\n\t\t\tname = MiscUtilities.fileToClass(name);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tloadPluginClass(name);\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,\"Error while starting plugin \" + name);\n\t\t\t\tLog.log(Log.ERROR,this,t);\n\n\t\t\t\tjar.addPlugin(new EditPlugin.Broken(name));\n\t\t\t\tString[] args = { name, t.toString() };\n\t\t\t\tGUIUtilities.error(null,\"plugin.start-error\",args);", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "TRY", "VAR_DECL", "CALL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [6, 9], [3, 10], [7, 11], [6, 12], [6, 13], [6, 14], [6, 15], [4, 16], [12, 17], [12, 18], [13, 19], [15, 20], [9, 21], [20, 22], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 6], [10, 3], [11, 7], [12, 6], [13, 6], [14, 6], [15, 6], [16, 4], [17, 12], [18, 12], [19, 13], [20, 15], [21, 9], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "loadPluginClass", "code": "\tprivate void loadPluginClass(String name)\n\t\tthrows Exception\n\t{\n\t\t// Check if a plugin with the same name is already loaded\n\t\tEditPlugin[] plugins = jEdit.getPlugins();\n\n\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t{\n\t\t\tif(plugins[i].getClass().getName().equals(name))\n\t\t\t{\n\t\t\t\tString[] args = { name };\n\t\t\t\tGUIUtilities.error(null,\"plugin.already-loaded\",args);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Check dependencies\n\t\tif(!checkDependencies(name))\n\t\t{\n\t\t\tjar.addPlugin(new EditPlugin.Broken(name));\n\t\t\treturn;\n\t\t}\n\n\t\t// JDK 1.1.8 throws a GPF when we do an isAssignableFrom()\n\t\t// on an unresolved class\n\t\tClass clazz = loadClass(name,true);\n\t\tint modifiers = clazz.getModifiers();\n\t\tif(!Modifier.isInterface(modifiers)\n\t\t\t&& !Modifier.isAbstract(modifiers)\n\t\t\t&& EditPlugin.class.isAssignableFrom(clazz))\n\t\t{\n\t\t\tString version = jEdit.getProperty(\"plugin.\"\n\t\t\t\t+ name + \".version\");\n\n\t\t\tif(version == null)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,this,\"Plugin \" +\n\t\t\t\t\tname + \" doesn't\"\n\t\t\t\t\t+ \" have a 'version' property.\");\n\t\t\t\tversion = \"\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tversion = \" (version \" + version + \")\";\n\n\t\t\tLog.log(Log.NOTICE,this,\"Starting plugin \" + name\n\t\t\t\t\t+ version);\n\n\t\t\tjar.addPlugin((EditPlugin)clazz.newInstance());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [5, 10], [1, 11], [1, 12], [8, 13], [8, 14], [2, 15], [3, 16], [4, 17], [5, 18], [6, 19], [1, 20], [1, 21], [11, 22], [14, 23], [14, 24], [16, 25], [4, 26], [5, 27], [21, 28], [11, 29], [22, 30], [12, 31], [26, 32], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [20, 38], [28, 39], [29, 40], [11, 41], [11, 42], [31, 43], [18, 44], [39, 45], [40, 46], [40, 47], [41, 48], [42, 49], [43, 50], [43, 51], [44, 52], [44, 53], [47, 54], [49, 55], [49, 56], [51, 57], [56, 58], [56, 59], [59, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 5], [11, 1], [12, 1], [13, 8], [14, 8], [15, 2], [16, 3], [17, 4], [18, 5], [19, 6], [20, 1], [21, 1], [22, 11], [23, 14], [24, 14], [25, 16], [26, 4], [27, 5], [28, 21], [29, 11], [30, 22], [31, 12], [32, 26], [33, 18], [34, 18], [35, 18], [36, 18], [37, 18], [38, 20], [39, 28], [40, 29], [41, 11], [42, 11], [43, 31], [44, 18], [45, 39], [46, 40], [47, 40], [48, 41], [49, 42], [50, 43], [51, 43], [52, 44], [53, 44], [54, 47], [55, 49], [56, 49], [57, 51], [58, 56], [59, 56], [60, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "checkDependencies", "code": "\tprivate boolean checkDependencies(String name)\n\t{\n\t\tint i = 0;\n\n\t\tString dep;\n\t\twhile((dep = jEdit.getProperty(\"plugin.\" + name + \".depend.\" + i++)) != null)\n\t\t{\n\t\t\tint index = dep.indexOf(' ');\n\t\t\tif(index == -1)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,name + \" has an invalid\"\n\t\t\t\t\t+ \" dependency: \" + dep);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tString what = dep.substring(0,index);\n\t\t\tString arg = dep.substring(index + 1);\n\n\t\t\tif(what.equals(\"jdk\"))\n\t\t\t{\n\t\t\t\tif(System.getProperty(\"java.version\").compareTo(arg) < 0)\n\t\t\t\t{\n\t\t\t\t\tString[] args = { name, arg,\n\t\t\t\t\t\tSystem.getProperty(\"java.version\") };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-jdk\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(what.equals(\"jedit\"))\n\t\t\t{\n\t\t\t\tif(jEdit.getBuild().compareTo(arg) < 0)\n\t\t\t\t{\n\t\t\t\t\tString needs = MiscUtilities.buildToVersion(arg);\n\t\t\t\t\tString[] args = { name, needs,\n\t\t\t\t\t\tjEdit.getVersion() };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-jedit\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(what.equals(\"plugin\"))\n\t\t\t{\n\t\t\t\tint index2 = arg.indexOf(' ');\n\t\t\t\tif(index2 == -1)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,name \n\t\t\t\t\t\t+ \" has an invalid dependency: \"\n\t\t\t\t\t\t+ dep + \" (version is missing)\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString plugin = arg.substring(0,index2);\n\t\t\t\tString needVersion = arg.substring(index2 + 1);\n\t\t\t\tString currVersion = jEdit.getProperty(\"plugin.\" \n\t\t\t\t\t+ plugin + \".version\");\n\n\t\t\t\tif(currVersion == null)\n\t\t\t\t{\n\t\t\t\t\tString[] args = { name, needVersion, plugin };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-plugin.no-version\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif(MiscUtilities.compareVersions(currVersion,\n\t\t\t\t\tneedVersion) < 0)\n\t\t\t\t{\n\t\t\t\t\tString[] args = { name, needVersion, plugin, currVersion };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-plugin\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif(jEdit.getPlugin(plugin) instanceof EditPlugin.Broken)\n\t\t\t\t{\n\t\t\t\t\tString[] args = { name, plugin };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-plugin.broken\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(what.equals(\"class\"))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tloadClass(arg,false);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tString[] args = { name, arg };\n\t\t\t\t\tGUIUtilities.error(null,\"plugin.dep-class\",args);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,name + \" has unknown\"\n\t\t\t\t\t+ \" dependency: \" + dep);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "RETURN", "VAR_DECL", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [7, 13], [7, 14], [4, 15], [8, 16], [8, 17], [11, 18], [14, 19], [16, 20], [16, 21], [8, 22], [17, 23], [9, 24], [10, 25], [11, 26], [18, 27], [12, 28], [19, 29], [20, 30], [20, 31], [16, 32], [21, 33], [22, 34], [24, 35], [25, 36], [26, 37], [11, 38], [28, 39], [29, 40], [30, 41], [20, 42], [20, 43], [20, 44], [20, 45], [20, 46], [20, 47], [20, 48], [20, 49], [31, 50], [32, 51], [22, 52], [22, 53], [34, 54], [34, 55], [35, 56], [38, 57], [40, 58], [40, 59], [30, 60], [30, 61], [41, 62], [42, 63], [43, 64], [44, 65], [48, 66], [32, 67], [32, 68], [32, 69], [51, 70], [51, 71], [52, 72], [22, 73], [55, 74], [55, 75], [57, 76], [59, 77], [60, 78], [30, 79], [61, 80], [42, 81], [42, 82], [63, 83], [43, 84], [43, 85], [64, 86], [64, 87], [44, 88], [44, 89], [65, 90], [45, 91], [46, 92], [47, 93], [48, 94], [66, 95], [49, 96], [67, 97], [32, 98], [71, 99], [73, 100], [73, 101], [76, 102], [76, 103], [79, 104], [80, 105], [80, 106], [61, 107], [81, 108], [42, 109], [84, 110], [43, 111], [88, 112], [44, 113], [91, 114], [92, 115], [93, 116], [94, 117], [48, 118], [96, 119], [98, 120], [98, 121], [69, 122], [53, 123], [103, 124], [104, 125], [105, 126], [80, 127], [107, 128], [109, 129], [109, 130], [111, 131], [111, 132], [113, 133], [113, 134], [114, 135], [114, 136], [115, 137], [118, 138], [68, 139], [123, 140], [125, 141], [125, 142], [127, 143], [127, 144], [136, 145], [138, 146], [138, 147], [142, 148], [147, 149], [149, 150], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 7], [14, 7], [15, 4], [16, 8], [17, 8], [18, 11], [19, 14], [20, 16], [21, 16], [22, 8], [23, 17], [24, 9], [25, 10], [26, 11], [27, 18], [28, 12], [29, 19], [30, 20], [31, 20], [32, 16], [33, 21], [34, 22], [35, 24], [36, 25], [37, 26], [38, 11], [39, 28], [40, 29], [41, 30], [42, 20], [43, 20], [44, 20], [45, 20], [46, 20], [47, 20], [48, 20], [49, 20], [50, 31], [51, 32], [52, 22], [53, 22], [54, 34], [55, 34], [56, 35], [57, 38], [58, 40], [59, 40], [60, 30], [61, 30], [62, 41], [63, 42], [64, 43], [65, 44], [66, 48], [67, 32], [68, 32], [69, 32], [70, 51], [71, 51], [72, 52], [73, 22], [74, 55], [75, 55], [76, 57], [77, 59], [78, 60], [79, 30], [80, 61], [81, 42], [82, 42], [83, 63], [84, 43], [85, 43], [86, 64], [87, 64], [88, 44], [89, 44], [90, 65], [91, 45], [92, 46], [93, 47], [94, 48], [95, 66], [96, 49], [97, 67], [98, 32], [99, 71], [100, 73], [101, 73], [102, 76], [103, 76], [104, 79], [105, 80], [106, 80], [107, 61], [108, 81], [109, 42], [110, 84], [111, 43], [112, 88], [113, 44], [114, 91], [115, 92], [116, 93], [117, 94], [118, 48], [119, 96], [120, 98], [121, 98], [122, 69], [123, 53], [124, 103], [125, 104], [126, 105], [127, 80], [128, 107], [129, 109], [130, 109], [131, 111], [132, 111], [133, 113], [134, 113], [135, 114], [136, 114], [137, 115], [138, 118], [139, 68], [140, 123], [141, 125], [142, 125], [143, 127], [144, 127], [145, 136], [146, 138], [147, 138], [148, 142], [149, 147], [150, 149], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150]]}, {"function_name": "findOtherClass", "code": "\tprivate Class findOtherClass(String clazz, boolean resolveIt)\n\t\tthrows ClassNotFoundException\n\t{\n\t\tEditPlugin.JAR[] jars = jEdit.getPluginJARs();\n\t\tfor(int i = 0; i < jars.length; i++)\n\t\t{\n\t\t\tJARClassLoader loader = jars[i].getClassLoader();\n\t\t\tClass cls = loader.loadClass(clazz,resolveIt,\n\t\t\t\tfalse);\n\t\t\tif(cls != null)\n\t\t\t\treturn cls;\n\t\t}\n\n\t\t/* Defer to whoever loaded us (such as JShell, Echidna, etc) */\n                ClassLoader loader = getClass().getClassLoader();\n\t\tif (loader != null)\n\t\t\treturn loader.loadClass(clazz);\n\n\t\t/* Doesn't exist in any other plugin, look in system classes */\n\t\treturn findSystemClass(clazz);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [4, 11], [9, 12], [10, 13], [3, 14], [4, 15], [4, 16], [4, 17], [5, 18], [14, 19], [15, 20], [15, 21], [4, 22], [21, 23], [16, 24], [24, 25], [17, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 4], [12, 9], [13, 10], [14, 3], [15, 4], [16, 4], [17, 4], [18, 5], [19, 14], [20, 15], [21, 15], [22, 4], [23, 21], [24, 16], [25, 24], [26, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "loadClass", "code": "\tprivate Class loadClass(String clazz, boolean resolveIt, boolean doDepencies)\n\t\tthrows ClassNotFoundException\n\t{\n\t\tClass cls = findLoadedClass(clazz);\n\t\tif(cls != null)\n\t\t{\n\t\t\tif(resolveIt)\n\t\t\t\tresolveClass(cls);\n\t\t\treturn cls;\n\t\t}\n\n\t\tif(zipFile == null)\n\t\t{\n\t\t\tif(doDepencies)\n\t\t\t\treturn findOtherClass(clazz,resolveIt);\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}\n\n\t\tString name = MiscUtilities.classToFile(clazz);\n\n\t\ttry\n\t\t{\n\t\t\tZipEntry entry = zipFile.getEntry(name);\n\n\t\t\tif(entry == null)\n\t\t\t{\n\t\t\t\tif(doDepencies)\n\t\t\t\t\treturn findOtherClass(clazz,resolveIt);\n\t\t\t\telse\n\t\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tInputStream in = zipFile.getInputStream(entry);\n\n\t\t\tint len = (int)entry.getSize();\n\t\t\tbyte[] data = new byte[len];\n\t\t\tint success = 0;\n\t\t\tint offset = 0;\n\t\t\twhile(success < len)\n\t\t\t{\n\t\t\t\tlen -= success;\n\t\t\t\toffset += success;\n\t\t\t\tsuccess = in.read(data,offset,len);\n\t\t\t\tif(success == -1)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,\"Failed to load class \"\n\t\t\t\t\t\t+ clazz + \" from \" + zipFile.getName());\n\t\t\t\t\tthrow new ClassNotFoundException(clazz);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcls = defineClass(clazz,data,0,data.length);\n\n\t\t\tif(resolveIt)\n\t\t\t\tresolveClass(cls);\n\n\t\t\treturn cls;\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,io);\n\n\t\t\tthrow new ClassNotFoundException(clazz);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [3, 20], [4, 21], [9, 22], [1, 23], [12, 24], [18, 25], [2, 26], [3, 27], [20, 28], [4, 29], [4, 30], [21, 31], [5, 32], [22, 33], [9, 34], [11, 35], [23, 36], [12, 37], [13, 38], [14, 39], [17, 40], [18, 41], [25, 42], [19, 43], [27, 44], [27, 45], [36, 46], [37, 47], [12, 48], [12, 49], [12, 50], [16, 51], [41, 52], [41, 53], [44, 54], [45, 55], [30, 56], [37, 57], [47, 58], [48, 59], [52, 60], [53, 61], [57, 62], [37, 63], [63, 64], [64, 65], [64, 66], [66, 67], [66, 68], [68, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 3], [21, 4], [22, 9], [23, 1], [24, 12], [25, 18], [26, 2], [27, 3], [28, 20], [29, 4], [30, 4], [31, 21], [32, 5], [33, 22], [34, 9], [35, 11], [36, 23], [37, 12], [38, 13], [39, 14], [40, 17], [41, 18], [42, 25], [43, 19], [44, 27], [45, 27], [46, 36], [47, 37], [48, 12], [49, 12], [50, 12], [51, 16], [52, 41], [53, 41], [54, 44], [55, 45], [56, 30], [57, 37], [58, 47], [59, 48], [60, 52], [61, 53], [62, 57], [63, 37], [64, 63], [65, 64], [66, 64], [67, 66], [68, 66], [69, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "JARClassLoader", "code": "\tpublic JARClassLoader()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "JARClassLoader", "code": "\tpublic JARClassLoader(String path)\n\t\tthrows IOException\n\t{\n\t\tzipFile = new ZipFile(path);\n\n\t\tEnumeration entires = zipFile.entries();\n\t\twhile(entires.hasMoreElements())\n\t\t{\n\t\t\tZipEntry entry = (ZipEntry)entires.nextElement();\n\t\t\tString name = entry.getName();\n\t\t\tString lname = name.toLowerCase();\n\t\t\tif(lname.equals(\"actions.xml\"))\n\t\t\t{\n\t\t\t\tjEdit.loadActions(path + \"!actions.xml\",\n\t\t\t\t\tnew BufferedReader(new InputStreamReader(\n\t\t\t\t\tzipFile.getInputStream(entry))),true);\n\t\t\t}\n\t\t\telse if(lname.endsWith(\".props\"))\n\t\t\t\tjEdit.loadProps(zipFile.getInputStream(entry),true);\n\t\t\telse if(name.endsWith(\"Plugin.class\"))\n\t\t\t\tpluginClasses.addElement(name);\n\t\t}\n\n\t\tjar = new EditPlugin.JAR(path,this);\n\t\tjEdit.addPluginJAR(jar);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [5, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [7, 14], [9, 15], [9, 16], [15, 17], [15, 18], [16, 19], [10, 20], [11, 21], [17, 22], [15, 23], [18, 24], [9, 25], [12, 26], [17, 27], [22, 28], [23, 29], [23, 30], [25, 31], [25, 32], [25, 33], [32, 34], [33, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 5], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 7], [15, 9], [16, 9], [17, 15], [18, 15], [19, 16], [20, 10], [21, 11], [22, 17], [23, 15], [24, 18], [25, 9], [26, 12], [27, 17], [28, 22], [29, 23], [30, 23], [31, 25], [32, 25], [33, 25], [34, 32], [35, 33], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}], "label": 1}
{"sample_id": "jedit-3.2-3603", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/options/StyleOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.StyleOptionPane", "code": "public class StyleOptionPane extends AbstractOptionPane\n{\n\tpublic static final EmptyBorder noFocusBorder = new EmptyBorder(1,1,1,1);\n\n\tpublic StyleOptionPane()\n\t{\n\t\tsuper(\"style\");\n\t}\n\n\t// protected members\n\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\t\tadd(BorderLayout.CENTER,createStyleTableScroller());\n\t}\n\n\tprotected void _save()\n\t{\n\t\tstyleModel.save();\n\t}\n\n\t// private members\n\tprivate StyleTableModel styleModel;\n\tprivate JTable styleTable;\n\n\tprivate JScrollPane createStyleTableScroller()\n\t{\n\t\tstyleModel = createStyleTableModel();\n\t\tstyleTable = new JTable(styleModel);\n\t\tstyleTable.setRowSelectionAllowed(false);\n\t\tstyleTable.setColumnSelectionAllowed(false);\n\t\tstyleTable.setCellSelectionEnabled(false);\n\t\tstyleTable.getTableHeader().setReorderingAllowed(false);\n\t\tstyleTable.addMouseListener(new MouseHandler());\n\t\tTableColumnModel tcm = styleTable.getColumnModel();\n \t\tTableColumn styleColumn = tcm.getColumn(1);\n\t\tstyleColumn.setCellRenderer(new StyleTableModel.StyleRenderer());\n\t\tDimension d = styleTable.getPreferredSize();\n\t\td.height = Math.min(d.height,100);\n\t\tJScrollPane scroller = new JScrollPane(styleTable);\n\t\tscroller.setPreferredSize(d);\n\t\treturn scroller;\n\t}\n\n\tprivate StyleTableModel createStyleTableModel()\n\t{\n\t\treturn new StyleTableModel();\n\t}\n\n\tclass MouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mouseClicked(MouseEvent evt)\n\t\t{\n\t\t\tint row = styleTable.rowAtPoint(evt.getPoint());\n\t\t\tif(row == -1)\n\t\t\t\treturn;\n\n\t\t\tSyntaxStyle style = new StyleEditor(\n\t\t\t\tStyleOptionPane.this,\n\t\t\t\t(SyntaxStyle)styleModel.getValueAt(\n\t\t\t\trow,1)).getStyle();\n\t\t\tif(style != null)\n\t\t\t\tstyleModel.setValueAt(style,row,1);", "functions": [{"function_name": "_init", "code": "\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\t\tadd(BorderLayout.CENTER,createStyleTableScroller());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "_save", "code": "\tprotected void _save()\n\t{\n\t\tstyleModel.save();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createStyleTableScroller", "code": "\tprivate JScrollPane createStyleTableScroller()\n\t{\n\t\tstyleModel = createStyleTableModel();\n\t\tstyleTable = new JTable(styleModel);\n\t\tstyleTable.setRowSelectionAllowed(false);\n\t\tstyleTable.setColumnSelectionAllowed(false);\n\t\tstyleTable.setCellSelectionEnabled(false);\n\t\tstyleTable.getTableHeader().setReorderingAllowed(false);\n\t\tstyleTable.addMouseListener(new MouseHandler());\n\t\tTableColumnModel tcm = styleTable.getColumnModel();\n \t\tTableColumn styleColumn = tcm.getColumn(1);\n\t\tstyleColumn.setCellRenderer(new StyleTableModel.StyleRenderer());\n\t\tDimension d = styleTable.getPreferredSize();\n\t\td.height = Math.min(d.height,100);\n\t\tJScrollPane scroller = new JScrollPane(styleTable);\n\t\tscroller.setPreferredSize(d);\n\t\treturn scroller;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [7, 17], [3, 18], [8, 19], [4, 20], [5, 21], [9, 22], [10, 23], [11, 24], [12, 25], [13, 26], [14, 27], [15, 28], [17, 29], [20, 30], [23, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 7], [18, 3], [19, 8], [20, 4], [21, 5], [22, 9], [23, 10], [24, 11], [25, 12], [26, 13], [27, 14], [28, 15], [29, 17], [30, 20], [31, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "createStyleTableModel", "code": "\tprivate StyleTableModel createStyleTableModel()\n\t{\n\t\treturn new StyleTableModel();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "StyleOptionPane", "code": "\tpublic StyleOptionPane()\n\t{\n\t\tsuper(\"style\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.5-6997", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/synthetic/JavaUtils.java", "language": "java", "name": "org.apache.xml.utils.synthetic.JavaUtils", "code": "public class JavaUtils\n{\n        private static boolean cantLoadCompiler=false; \n\n        private static boolean debug = false;\n  \n        /** Control whether compilation occurs with the -g option\n         * (debugging information included in generated classfile).\n         * This is an attribute, rather than a parameter on the compile\n         * method, largely because it tends to be an all-or-nothing decision; \n         * generally you're either doing program development and want it,\n         * or running in production mode and don't. But that may not match\n         * the needs of future users...\n         * <p>\n         * TODO: Consider whether debug should be a parameter.\n         * \n         * @param boolean newDebug True to request debugging data,\n         * false to request optimized output. (It's uncommon to\n         * want both or neither!)\n         */ \n        public static void setDebug(boolean newDebug)\n        {\n            debug=newDebug;\n        }\n\n        /** Try to compile a .java file on disk. This will first attempt to\n         * use the sun.java.tools.javac() method, then (if that is unavailable)\n         * fall back upon shelling out to a command line and running javac\n         * there.\n         * <p>\n         * NOTE: This must be _compiled_ with sun.java.tools.* (tools.jar)\n         * available. We could change that to use reflection instead, if we\n         * accept some overhead... minor compared to the cost of running the\n         * compiler!\n         * <p>\n         * This has complications on some platforms. For example, under \n         * Microsoft Visual Java ++ (at least, as installed on my test system),\n         * I found that I had to specify paths to both javac and xerces.jar\n         * rather than counting on the shell's path and classpath having\n         * been set to reach these. For that reason I've parameterized this\n         * method with a few system properties, so you can adapt it to your\n         * own system's needs without modifying the code:\n         * <dl>\n         * <dt>org.apache.xml.utils.synthetic.javac\n         * <dd>Command line issued to invoke the compiler. Defaults to \"javac\",\n         * which should work in most systems. In VJ++, try setting it to\n         * \"cmd /c %JAVA_HOME%\\\\bin\\javac.exe\"\n         * <dt>org.apache.xml.utils.synthetic.moreclasspath\n         * <dd>Additional classpath, to be prepended to the one retrieved from\n         * java.class.path. Defaults to \"\" (empty). In VJ++, try setting it to\n         * point to your copy of xerces.jar, which may not be found otherwise.\n         * TODO: Reconsider prepend versus append!\n         * </dl>\n         * \n         * @param String fileName Which .java file to compile. Note that this may\n         * be relative to the \"current directory\".\n         * @param String classPath Additional places to look for classes that\n         * this .java file depends upon. Becomes the javac command's\n         * -classpath parameter value.\n         * @return boolean True iff compilation succeeded.\n         */\n        public static boolean JDKcompile(String fileName, String classPath)\n        {\n                String moreClassPath=\n                        System.getProperty(\"org.apache.xml.utils.synthetic.moreclasspath\",\"\")\n                        .trim();\n                if(moreClassPath.length()>0)\n                        classPath=moreClassPath+';'+classPath;\n                                                                                                  \n                if (debug)\n                {\n                        System.err.println (\"JavaEngine: Compiling \" + fileName);\n                        System.err.println (\"JavaEngine: Classpath is \" + classPath);\n                }\n    \n                String code_option = debug ? \"-g\" : \"-O\";\n\n            if(!cantLoadCompiler)\n                {\n                        String args[] = {\n                                code_option,\n                            \"-classpath\", classPath,\n                                fileName\n                        };\n                                \n                }\n    \n                String javac_command=\n                        System.getProperty(\"org.apache.xml.utils.synthetic.javac\",\"javac\");\n            String args[] = {\n                        javac_command,\n                        code_option,\n                        \"-classpath\", classPath,\n                        fileName\n                        };\n                try\n                {\n                        Process p=java.lang.Runtime.getRuntime().exec(args);\n                }\n                catch(IOException e)\n                {\n                        System.err.println(\"ERROR: IO exception during exec(javac).\");\n                }\n                catch(SecurityException e)\n                {\n                        System.err.println(\"ERROR: Unable to create subprocess to exec(javac).\");\n                }\n                \n                return false;\n        }\n\n  /** Subroutine: Like p.waitFor, but discards the InterruptedException\n   * and goes right back into a wait. I don't want to report compiler\n   * success or failure until it really has succeeded or failed... I think.\n   * @param Process p to be waited for\n   * @return the exitValue() of the process.\n   */\n  static int waitHardFor(java.lang.Process p)\n  {\n    boolean done=false;\n    while(!done)\n        try\n        {\n            p.waitFor();\n            done=true;\n        }\n        catch(InterruptedException e)\n        {\n            System.err.println(\"(Compiler process wait interrupted and resumed)\");\n        }\n     return ev;", "functions": [{"function_name": "setDebug", "code": "        public static void setDebug(boolean newDebug)\n        {\n            debug=newDebug;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JDKcompile", "code": "        public static boolean JDKcompile(String fileName, String classPath)\n        {\n                String moreClassPath=\n                        System.getProperty(\"org.apache.xml.utils.synthetic.moreclasspath\",\"\")\n                        .trim();\n                if(moreClassPath.length()>0)\n                        classPath=moreClassPath+';'+classPath;\n                                                                                                  \n                if (debug)\n                {\n                        System.err.println (\"JavaEngine: Compiling \" + fileName);\n                        System.err.println (\"JavaEngine: Classpath is \" + classPath);\n                }\n    \n                String code_option = debug ? \"-g\" : \"-O\";\n\n            if(!cantLoadCompiler)\n                {\n                        String args[] = {\n                                code_option,\n                            \"-classpath\", classPath,\n                                fileName\n                        };\n                                \n                }\n    \n                String javac_command=\n                        System.getProperty(\"org.apache.xml.utils.synthetic.javac\",\"javac\");\n            String args[] = {\n                        javac_command,\n                        code_option,\n                        \"-classpath\", classPath,\n                        fileName\n                        };\n                try\n                {\n                        Process p=java.lang.Runtime.getRuntime().exec(args);\n                }\n                catch(IOException e)\n                {\n                        System.err.println(\"ERROR: IO exception during exec(javac).\");\n                }\n                catch(SecurityException e)\n                {\n                        System.err.println(\"ERROR: Unable to create subprocess to exec(javac).\");\n                }\n                \n                return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "CATCH", "VAR_DECL", "BINARY_OP", "CALL", "VAR_DECL", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [2, 15], [8, 16], [4, 17], [5, 18], [6, 19], [8, 20], [16, 21], [16, 22], [9, 23], [13, 24], [14, 25], [15, 26], [3, 27], [17, 28], [17, 29], [19, 30], [19, 31], [7, 32], [7, 33], [20, 34], [23, 35], [23, 36], [23, 37], [24, 38], [25, 39], [26, 40], [32, 41], [33, 42], [34, 43], [18, 44], [41, 45], [42, 46], [43, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 2], [16, 8], [17, 4], [18, 5], [19, 6], [20, 8], [21, 16], [22, 16], [23, 9], [24, 13], [25, 14], [26, 15], [27, 3], [28, 17], [29, 17], [30, 19], [31, 19], [32, 7], [33, 7], [34, 20], [35, 23], [36, 23], [37, 23], [38, 24], [39, 25], [40, 26], [41, 32], [42, 33], [43, 34], [44, 18], [45, 41], [46, 42], [47, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "waitHardFor", "code": "  static int waitHardFor(java.lang.Process p)\n  {\n    boolean done=false;\n    while(!done)\n        try\n        {\n            p.waitFor();\n            done=true;\n        }\n        catch(InterruptedException e)\n        {\n            System.err.println(\"(Compiler process wait interrupted and resumed)\");\n        }\n     return ev;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "TRY", "CATCH", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [5, 8], [5, 9], [6, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 5], [9, 5], [10, 6], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 1}
{"sample_id": "ant-1.6-538", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/Chmod.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Chmod", "code": "public class Chmod extends ExecuteOn {\n\n    private FileSet defaultSet = new FileSet();\n    private boolean defaultSetDefined = false;\n    private boolean havePerm = false;\n\n    /**\n     * Chmod task for setting file and directory permissions.\n     */\n    public Chmod() {\n        super.setExecutable(\"chmod\");\n        super.setParallel(true);\n        super.setSkipEmptyFilesets(true);\n    }\n\n    /**\n     * @see org.apache.tools.ant.ProjectComponent#setProject\n     */\n    public void setProject(Project project) {\n        super.setProject(project);\n        defaultSet.setProject(project);\n    }\n\n    /**\n     * The file or single directory of which the permissions must be changed.\n     * @param src\n     */\n    public void setFile(File src) {\n        FileSet fs = new FileSet();\n        fs.setFile(src);\n        addFileset(fs);\n    }\n\n    /**\n     * The directory which holds the files whose permissions must be changed.\n     * @param src\n     */\n    public void setDir(File src) {\n        defaultSet.setDir(src);\n    }\n\n    /**\n     * The new permissions.\n     * @param perm\n     */\n    public void setPerm(String perm) {\n        createArg().setValue(perm);\n        havePerm = true;\n    }\n\n    /**\n     * Add a name entry on the include list.\n     */\n    public PatternSet.NameEntry createInclude() {\n        defaultSetDefined = true;\n        return defaultSet.createInclude();\n    }\n\n    /**\n     * Add a name entry on the exclude list.\n     */\n    public PatternSet.NameEntry createExclude() {\n        defaultSetDefined = true;\n        return defaultSet.createExclude();\n    }\n\n    /**\n     * Add a set of patterns.\n     */\n    public PatternSet createPatternSet() {\n        defaultSetDefined = true;\n        return defaultSet.createPatternSet();\n    }\n\n    /**\n     * Sets the set of include patterns. Patterns may be separated by a comma\n     * or a space.\n     *\n     * @param includes the string containing the include patterns\n     */\n    public void setIncludes(String includes) {\n        defaultSetDefined = true;\n        defaultSet.setIncludes(includes);\n    }\n\n    /**\n     * Sets the set of exclude patterns. Patterns may be separated by a comma\n     * or a space.\n     *\n     * @param excludes the string containing the exclude patterns\n     */\n    public void setExcludes(String excludes) {\n        defaultSetDefined = true;\n        defaultSet.setExcludes(excludes);\n    }\n\n    /**\n     * Sets whether default exclusions should be used or not.\n     *\n     * @param useDefaultExcludes \"true\"|\"on\"|\"yes\" when default exclusions\n     *                           should be used, \"false\"|\"off\"|\"no\" when they\n     *                           shouldn't be used.\n     */\n    public void setDefaultexcludes(boolean useDefaultExcludes) {\n        defaultSetDefined = true;\n        defaultSet.setDefaultexcludes(useDefaultExcludes);\n    }\n\n    protected void checkConfiguration() {\n        if (!havePerm) {\n            throw new BuildException(\"Required attribute perm not set in chmod\",\n                                     getLocation());\n        }\n\n        if (defaultSetDefined && defaultSet.getDir(getProject()) != null) {\n            addFileset(defaultSet);\n        }\n        super.checkConfiguration();\n    }\n\n    public void execute() throws BuildException {\n        /*\n         * In Ant 1.1, <chmod dir=\"foo\" /> means, change the permissions\n         * of directory foo, not anything inside of it.  This is the case the\n         * second branch of the if statement below catches for backwards\n         * compatibility.\n         */\n        if (defaultSetDefined || defaultSet.getDir(getProject()) == null) {\n            try {\n                super.execute();\n            } finally {\n                if (defaultSetDefined && defaultSet.getDir(getProject()) != null) {\n                    filesets.removeElement(defaultSet);\n                }\n            }\n        } else if (isValidOs()) {\n            Execute execute = prepareExec();\n            Commandline cloned = (Commandline) cmdl.clone();\n            cloned.createArgument().setValue(defaultSet.getDir(getProject())\n                                             .getPath());\n            try {\n                execute.setCommandline(cloned.getCommandline());\n                runExecute(execute);\n            } catch (IOException e) {\n                throw new BuildException(\"Execute failed: \" + e, e, getLocation());\n            } finally {\n                logFlush();\n            }\n        }\n    }\n\n    /**\n     * @ant.attribute ignore=\"true\"\n     */\n    public void setExecutable(String e) {\n        throw new BuildException(getTaskType()\n            + \" doesn\\'t support the executable attribute\", getLocation());\n    }\n\n    /**\n     * @ant.attribute ignore=\"true\"\n     */\n    public void setCommand(Commandline cmdl) {\n        throw new BuildException(getTaskType()\n            + \" doesn\\'t support the command attribute\", getLocation());\n    }\n\n    /**\n     * @ant.attribute ignore=\"true\"\n     */\n    public void setSkipEmptyFilesets(boolean skip) {\n        throw new BuildException(getTaskType()\n            + \" doesn\\'t support the skipemptyfileset attribute\", getLocation());\n    }\n\n    /**\n     * @ant.attribute ignore=\"true\"\n     */\n    public void setAddsourcefile(boolean b) {\n        throw new BuildException(getTaskType()\n            + \" doesn\\'t support the addsourcefile attribute\", getLocation());\n    }\n\n    protected boolean isValidOs() {\n        return Os.isFamily(\"unix\") && super.isValidOs();", "functions": [{"function_name": "setProject", "code": "    public void setProject(Project project) {\n        super.setProject(project);\n        defaultSet.setProject(project);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFile", "code": "    public void setFile(File src) {\n        FileSet fs = new FileSet();\n        fs.setFile(src);\n        addFileset(fs);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setDir", "code": "    public void setDir(File src) {\n        defaultSet.setDir(src);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPerm", "code": "    public void setPerm(String perm) {\n        createArg().setValue(perm);\n        havePerm = true;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createInclude", "code": "    public PatternSet.NameEntry createInclude() {\n        defaultSetDefined = true;\n        return defaultSet.createInclude();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createExclude", "code": "    public PatternSet.NameEntry createExclude() {\n        defaultSetDefined = true;\n        return defaultSet.createExclude();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createPatternSet", "code": "    public PatternSet createPatternSet() {\n        defaultSetDefined = true;\n        return defaultSet.createPatternSet();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setIncludes", "code": "    public void setIncludes(String includes) {\n        defaultSetDefined = true;\n        defaultSet.setIncludes(includes);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setExcludes", "code": "    public void setExcludes(String excludes) {\n        defaultSetDefined = true;\n        defaultSet.setExcludes(excludes);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDefaultexcludes", "code": "    public void setDefaultexcludes(boolean useDefaultExcludes) {\n        defaultSetDefined = true;\n        defaultSet.setDefaultexcludes(useDefaultExcludes);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "checkConfiguration", "code": "    protected void checkConfiguration() {\n        if (!havePerm) {\n            throw new BuildException(\"Required attribute perm not set in chmod\",\n                                     getLocation());\n        }\n\n        if (defaultSetDefined && defaultSet.getDir(getProject()) != null) {\n            addFileset(defaultSet);\n        }\n        super.checkConfiguration();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [1, 6], [4, 7], [4, 8], [5, 9], [8, 10], [9, 11], [9, 12], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [6, 1], [7, 4], [8, 4], [9, 5], [10, 8], [11, 9], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        /*\n         * In Ant 1.1, <chmod dir=\"foo\" /> means, change the permissions\n         * of directory foo, not anything inside of it.  This is the case the\n         * second branch of the if statement below catches for backwards\n         * compatibility.\n         */\n        if (defaultSetDefined || defaultSet.getDir(getProject()) == null) {\n            try {\n                super.execute();\n            } finally {\n                if (defaultSetDefined && defaultSet.getDir(getProject()) != null) {\n                    filesets.removeElement(defaultSet);\n                }\n            }\n        } else if (isValidOs()) {\n            Execute execute = prepareExec();\n            Commandline cloned = (Commandline) cmdl.clone();\n            cloned.createArgument().setValue(defaultSet.getDir(getProject())\n                                             .getPath());\n            try {\n                execute.setCommandline(cloned.getCommandline());\n                runExecute(execute);\n            } catch (IOException e) {\n                throw new BuildException(\"Execute failed: \" + e, e, getLocation());\n            } finally {\n                logFlush();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "CALL", "TRY", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [3, 6], [2, 7], [2, 8], [2, 9], [5, 10], [6, 11], [6, 12], [7, 13], [2, 14], [10, 15], [12, 16], [7, 17], [13, 18], [7, 19], [7, 20], [14, 21], [9, 22], [15, 23], [18, 24], [20, 25], [21, 26], [8, 27], [10, 28], [23, 29], [23, 30], [24, 31], [24, 32], [26, 33], [26, 34], [30, 35], [32, 36], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 3], [7, 2], [8, 2], [9, 2], [10, 5], [11, 6], [12, 6], [13, 7], [14, 2], [15, 10], [16, 12], [17, 7], [18, 13], [19, 7], [20, 7], [21, 14], [22, 9], [23, 15], [24, 18], [25, 20], [26, 21], [27, 8], [28, 10], [29, 23], [30, 23], [31, 24], [32, 24], [33, 26], [34, 26], [35, 30], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "setExecutable", "code": "    public void setExecutable(String e) {\n        throw new BuildException(getTaskType()\n            + \" doesn\\'t support the executable attribute\", getLocation());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setCommand", "code": "    public void setCommand(Commandline cmdl) {\n        throw new BuildException(getTaskType()\n            + \" doesn\\'t support the command attribute\", getLocation());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setSkipEmptyFilesets", "code": "    public void setSkipEmptyFilesets(boolean skip) {\n        throw new BuildException(getTaskType()\n            + \" doesn\\'t support the skipemptyfileset attribute\", getLocation());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setAddsourcefile", "code": "    public void setAddsourcefile(boolean b) {\n        throw new BuildException(getTaskType()\n            + \" doesn\\'t support the addsourcefile attribute\", getLocation());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isValidOs", "code": "    protected boolean isValidOs() {\n        return Os.isFamily(\"unix\") && super.isValidOs();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Chmod", "code": "    public Chmod() {\n        super.setExecutable(\"chmod\");\n        super.setParallel(true);\n        super.setSkipEmptyFilesets(true);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "ant-1.6-487", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/filters/util/ChainReaderHelper.java", "language": "java", "name": "org.apache.tools.ant.filters.util.ChainReaderHelper", "code": "public final class ChainReaderHelper {\n\n    private static final int DEFAULT_BUFFER_SIZE = 8192;\n    /**\n     * The primary reader to which the reader chain is to be attached.\n     */\n    public Reader primaryReader;\n\n    /**\n     * The size of the buffer to be used.\n     */\n    public int bufferSize = DEFAULT_BUFFER_SIZE;\n\n    /**\n     * Chain of filters\n     */\n    public Vector filterChains = new Vector();\n\n    /** The Ant project */\n    private Project project = null;\n\n    /**\n     * Sets the primary reader\n     * @param rdr the reader object\n     */\n    public final void setPrimaryReader(Reader rdr) {\n        primaryReader = rdr;\n    }\n\n    /**\n     * Set the project to work with\n     * @param project the current project\n     */\n    public final void setProject(final Project project) {\n        this.project = project;\n    }\n\n    /**\n     * Get the project\n     *\n     * @return the current project\n     */\n    public final Project getProject() {\n        return project;\n    }\n\n    /**\n     * Sets the buffer size to be used.  Defaults to 4096,\n     * if this method is not invoked.\n     * @param size the buffer size to use\n     */\n    public final void setBufferSize(int size) {\n        bufferSize = size;\n    }\n\n    /**\n     * Sets the collection of filter reader sets\n     *\n     * @param fchain the filter chains collection\n     */\n    public final void setFilterChains(Vector fchain) {\n        filterChains = fchain;\n    }\n\n    /**\n     * Assemble the reader\n     * @return the assembled reader\n     * @exception BuildException if an error occurs\n     */\n    public final Reader getAssembledReader() throws BuildException {\n        if (primaryReader == null) {\n            throw new BuildException(\"primaryReader must not be null.\");\n        }\n\n        Reader instream = primaryReader;\n        final int filterReadersCount = filterChains.size();\n        final Vector finalFilters = new Vector();\n\n        for (int i = 0; i < filterReadersCount; i++) {\n            final FilterChain filterchain =\n                (FilterChain) filterChains.elementAt(i);\n            final Vector filterReaders = filterchain.getFilterReaders();\n            final int readerCount = filterReaders.size();\n            for (int j = 0; j < readerCount; j++) {\n                finalFilters.addElement(filterReaders.elementAt(j));\n            }\n        }\n\n        final int filtersCount = finalFilters.size();\n\n        if (filtersCount > 0) {\n            for (int i = 0; i < filtersCount; i++) {\n                Object o = finalFilters.elementAt(i);\n\n                if (o instanceof AntFilterReader) {\n                    final AntFilterReader filter\n                        = (AntFilterReader) finalFilters.elementAt(i);\n                    final String className = filter.getClassName();\n                    final Path classpath = filter.getClasspath();\n                    final Project project = filter.getProject();\n                    if (className != null) {\n                        try {\n                            Class clazz = null;\n                            if (classpath == null) {\n                                clazz = Class.forName(className);\n                            } else {\n                                AntClassLoader al\n                                    = project.createClassLoader(classpath);\n                                clazz = Class.forName(className, true, al);\n                            }\n                            if (clazz != null) {\n                                if (!FilterReader.class.isAssignableFrom(clazz)) {\n                                    throw new BuildException(className\n                                        + \" does not extend java.io.FilterReader\");\n                                }\n                                final Constructor[] constructors =\n                                    clazz.getConstructors();\n                                int j = 0;\n                                boolean consPresent = false;\n                                for (; j < constructors.length; j++) {\n                                    Class[] types = constructors[j]\n                                                      .getParameterTypes();\n                                    if (types.length == 1\n                                        && types[0].isAssignableFrom(Reader.class)) {\n                                        consPresent = true;\n                                        break;\n                                    }\n                                }\n                                if (!consPresent) {\n                                    throw new BuildException(className\n                                        + \" does not define a public constructor\"\n                                        + \" that takes in a Reader as its \"\n                                        + \"single argument.\");\n                                }\n                                final Reader[] rdr = {instream};\n                                instream =\n                                    (Reader) constructors[j].newInstance(rdr);\n                                setProjectOnObject(instream);\n                                if (Parameterizable.class.isAssignableFrom(clazz)) {\n                                    final Parameter[] params = filter.getParams();\n                                    ((Parameterizable)\n                                        instream).setParameters(params);\n                                }\n                            }\n                        } catch (final ClassNotFoundException cnfe) {\n                            throw new BuildException(cnfe);\n                        } catch (final InstantiationException ie) {\n                            throw new BuildException(ie);\n                        } catch (final IllegalAccessException iae) {\n                            throw new BuildException(iae);\n                        } catch (final InvocationTargetException ite) {\n                            throw new BuildException(ite);\n                        }\n                    }\n                } else if (o instanceof ChainableReader) {\n                    setProjectOnObject(o);\n                    instream = ((ChainableReader) o).chain(instream);\n                    setProjectOnObject(instream);\n                }\n            }\n        }\n        return instream;\n    }\n\n    /**\n     * helper method to set the project on an object.\n     * the reflection setProject does not work for anonymous/protected/private\n     * classes, even if they have public methods.\n     */\n    private void setProjectOnObject(Object obj) {\n        if (project == null) {\n            return;\n        }\n        if (obj instanceof BaseFilterReader) {\n            ((BaseFilterReader) obj).setProject(project);\n            return;\n        }\n        project.setProjectReference(obj);\n    }\n\n    /**\n     * Read data from the reader and return the\n     * contents as a string.\n     * @param rdr the reader object\n     * @return the contents of the file as a string\n     * @exception IOException if an error occurs\n     */\n    public final String readFully(Reader rdr)\n        throws IOException {\n        return FileUtils.readFully(rdr, bufferSize);", "functions": [{"function_name": "setPrimaryReader", "code": "    public final void setPrimaryReader(Reader rdr) {\n        primaryReader = rdr;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProject", "code": "    public final void setProject(final Project project) {\n        this.project = project;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProject", "code": "    public final Project getProject() {\n        return project;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBufferSize", "code": "    public final void setBufferSize(int size) {\n        bufferSize = size;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFilterChains", "code": "    public final void setFilterChains(Vector fchain) {\n        filterChains = fchain;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAssembledReader", "code": "    public final Reader getAssembledReader() throws BuildException {\n        if (primaryReader == null) {\n            throw new BuildException(\"primaryReader must not be null.\");\n        }\n\n        Reader instream = primaryReader;\n        final int filterReadersCount = filterChains.size();\n        final Vector finalFilters = new Vector();\n\n        for (int i = 0; i < filterReadersCount; i++) {\n            final FilterChain filterchain =\n                (FilterChain) filterChains.elementAt(i);\n            final Vector filterReaders = filterchain.getFilterReaders();\n            final int readerCount = filterReaders.size();\n            for (int j = 0; j < readerCount; j++) {\n                finalFilters.addElement(filterReaders.elementAt(j));\n            }\n        }\n\n        final int filtersCount = finalFilters.size();\n\n        if (filtersCount > 0) {\n            for (int i = 0; i < filtersCount; i++) {\n                Object o = finalFilters.elementAt(i);\n\n                if (o instanceof AntFilterReader) {\n                    final AntFilterReader filter\n                        = (AntFilterReader) finalFilters.elementAt(i);\n                    final String className = filter.getClassName();\n                    final Path classpath = filter.getClasspath();\n                    final Project project = filter.getProject();\n                    if (className != null) {\n                        try {\n                            Class clazz = null;\n                            if (classpath == null) {\n                                clazz = Class.forName(className);\n                            } else {\n                                AntClassLoader al\n                                    = project.createClassLoader(classpath);\n                                clazz = Class.forName(className, true, al);\n                            }\n                            if (clazz != null) {\n                                if (!FilterReader.class.isAssignableFrom(clazz)) {\n                                    throw new BuildException(className\n                                        + \" does not extend java.io.FilterReader\");\n                                }\n                                final Constructor[] constructors =\n                                    clazz.getConstructors();\n                                int j = 0;\n                                boolean consPresent = false;\n                                for (; j < constructors.length; j++) {\n                                    Class[] types = constructors[j]\n                                                      .getParameterTypes();\n                                    if (types.length == 1\n                                        && types[0].isAssignableFrom(Reader.class)) {\n                                        consPresent = true;\n                                        break;\n                                    }\n                                }\n                                if (!consPresent) {\n                                    throw new BuildException(className\n                                        + \" does not define a public constructor\"\n                                        + \" that takes in a Reader as its \"\n                                        + \"single argument.\");\n                                }\n                                final Reader[] rdr = {instream};\n                                instream =\n                                    (Reader) constructors[j].newInstance(rdr);\n                                setProjectOnObject(instream);\n                                if (Parameterizable.class.isAssignableFrom(clazz)) {\n                                    final Parameter[] params = filter.getParams();\n                                    ((Parameterizable)\n                                        instream).setParameters(params);\n                                }\n                            }\n                        } catch (final ClassNotFoundException cnfe) {\n                            throw new BuildException(cnfe);\n                        } catch (final InstantiationException ie) {\n                            throw new BuildException(ie);\n                        } catch (final IllegalAccessException iae) {\n                            throw new BuildException(iae);\n                        } catch (final InvocationTargetException ite) {\n                            throw new BuildException(ite);\n                        }\n                    }\n                } else if (o instanceof ChainableReader) {\n                    setProjectOnObject(o);\n                    instream = ((ChainableReader) o).chain(instream);\n                    setProjectOnObject(instream);\n                }\n            }\n        }\n        return instream;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "CATCH", "CATCH", "CATCH", "IF", "IF", "VAR_DECL", "CALL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "VAR_DECL", "THROW_RAISE", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [8, 11], [2, 12], [9, 13], [3, 14], [4, 15], [4, 16], [4, 17], [4, 18], [5, 19], [6, 20], [8, 21], [11, 22], [12, 23], [15, 24], [4, 25], [21, 26], [12, 27], [12, 28], [16, 29], [17, 30], [26, 31], [27, 32], [27, 33], [12, 34], [15, 35], [15, 36], [18, 37], [32, 38], [27, 39], [27, 40], [27, 41], [27, 42], [27, 43], [28, 44], [35, 45], [39, 46], [32, 47], [32, 48], [32, 49], [39, 50], [46, 51], [40, 52], [41, 53], [42, 54], [50, 55], [50, 56], [50, 57], [50, 58], [50, 59], [50, 60], [50, 61], [43, 62], [55, 63], [56, 64], [57, 65], [58, 66], [59, 67], [60, 68], [63, 69], [64, 70], [65, 71], [66, 72], [59, 73], [59, 74], [59, 75], [59, 76], [59, 77], [59, 78], [59, 79], [59, 80], [67, 81], [60, 82], [68, 83], [61, 84], [73, 85], [59, 86], [59, 87], [76, 88], [80, 89], [60, 90], [60, 91], [73, 92], [75, 93], [76, 94], [76, 95], [77, 96], [78, 97], [79, 98], [80, 99], [90, 100], [82, 101], [91, 102], [93, 103], [94, 104], [99, 105], [100, 106], [92, 107], [87, 108], [103, 109], [94, 110], [104, 111], [105, 112], [109, 113], [109, 114], [94, 115], [104, 116], [111, 117], [95, 118], [112, 119], [114, 120], [114, 121], [115, 122], [104, 123], [121, 124], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 8], [12, 2], [13, 9], [14, 3], [15, 4], [16, 4], [17, 4], [18, 4], [19, 5], [20, 6], [21, 8], [22, 11], [23, 12], [24, 15], [25, 4], [26, 21], [27, 12], [28, 12], [29, 16], [30, 17], [31, 26], [32, 27], [33, 27], [34, 12], [35, 15], [36, 15], [37, 18], [38, 32], [39, 27], [40, 27], [41, 27], [42, 27], [43, 27], [44, 28], [45, 35], [46, 39], [47, 32], [48, 32], [49, 32], [50, 39], [51, 46], [52, 40], [53, 41], [54, 42], [55, 50], [56, 50], [57, 50], [58, 50], [59, 50], [60, 50], [61, 50], [62, 43], [63, 55], [64, 56], [65, 57], [66, 58], [67, 59], [68, 60], [69, 63], [70, 64], [71, 65], [72, 66], [73, 59], [74, 59], [75, 59], [76, 59], [77, 59], [78, 59], [79, 59], [80, 59], [81, 67], [82, 60], [83, 68], [84, 61], [85, 73], [86, 59], [87, 59], [88, 76], [89, 80], [90, 60], [91, 60], [92, 73], [93, 75], [94, 76], [95, 76], [96, 77], [97, 78], [98, 79], [99, 80], [100, 90], [101, 82], [102, 91], [103, 93], [104, 94], [105, 99], [106, 100], [107, 92], [108, 87], [109, 103], [110, 94], [111, 104], [112, 105], [113, 109], [114, 109], [115, 94], [116, 104], [117, 111], [118, 95], [119, 112], [120, 114], [121, 114], [122, 115], [123, 104], [124, 121], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124]]}, {"function_name": "setProjectOnObject", "code": "    private void setProjectOnObject(Object obj) {\n        if (project == null) {\n            return;\n        }\n        if (obj instanceof BaseFilterReader) {\n            ((BaseFilterReader) obj).setProject(project);\n            return;\n        }\n        project.setProjectReference(obj);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "readFully", "code": "    public final String readFully(Reader rdr)\n        throws IOException {\n        return FileUtils.readFully(rdr, bufferSize);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.6-2636", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/CamelExchangeException.java", "language": "java", "name": "org.apache.camel.CamelExchangeException", "code": "public class CamelExchangeException extends CamelException {\n    private static final long serialVersionUID = -8721487431101572630L;\n    private final Exchange exchange;\n\n    public CamelExchangeException(String message, Exchange exchange) {\n        super(createMessage(message, exchange));\n        this.exchange = exchange;\n    }\n\n    public CamelExchangeException(String message, Exchange exchange, Throwable cause) {\n        super(createMessage(message, exchange), cause);\n        this.exchange = exchange;\n    }\n\n    /**\n     * Returns the exchange which caused the exception\n     */\n    public Exchange getExchange() {\n        return exchange;\n    }\n\n    protected static String createMessage(String message, Exchange exchange) {\n        return message + \" on the exchange: \" + exchange;", "functions": [{"function_name": "getExchange", "code": "    public Exchange getExchange() {\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createMessage", "code": "    protected static String createMessage(String message, Exchange exchange) {\n        return message + \" on the exchange: \" + exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "CamelExchangeException", "code": "    public CamelExchangeException(String message, Exchange exchange) {\n        super(createMessage(message, exchange));\n        this.exchange = exchange;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CamelExchangeException", "code": "    public CamelExchangeException(String message, Exchange exchange, Throwable cause) {\n        super(createMessage(message, exchange), cause);\n        this.exchange = exchange;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "camel-1.2-1771", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/Route.java", "language": "java", "name": "org.apache.camel.Route", "code": "public class Route<E extends Exchange> {\n    private final Map<String, Object> properties = new HashMap<String, Object>(16);\n    private Endpoint<E> endpoint;\n    private List<Service> services = new ArrayList<Service>();\n\n    public Route(Endpoint<E> endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    public Route(Endpoint<E> endpoint, Service... services) {\n        this(endpoint);\n        for (Service service : services) {\n            addService(service);\n        }\n    }\n\n    @Override\n    public String toString() {\n        return \"Route\";\n    }\n\n    public Endpoint<E> getEndpoint() {\n        return endpoint;\n    }\n\n    public void setEndpoint(Endpoint<E> endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    /**\n     * This property map is used to associate information about\n     * the route.\n     *\n     * @return\n     */\n    public Map<String, Object> getProperties() {\n        return properties;\n    }\n\n    public List<Service> getServicesForRoute() throws Exception {\n        List<Service> servicesForRoute = new ArrayList<Service>(getServices());\n        addServices(servicesForRoute);\n        return servicesForRoute;\n    }\n\n    /**\n     * Returns the additional services required for this particular route\n     */\n    public List<Service> getServices() {\n        return services;\n    }\n\n    public void setServices(List<Service> services) {\n        this.services = services;\n    }\n\n    public void addService(Service service) {\n        getServices().add(service);\n    }\n\n    /**\n     * Strategy method to allow derived classes to lazily load services for the route\n     */\n    protected void addServices(List<Service> services) throws Exception {", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Route\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndpoint", "code": "    public Endpoint<E> getEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEndpoint", "code": "    public void setEndpoint(Endpoint<E> endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProperties", "code": "    public Map<String, Object> getProperties() {\n        return properties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getServicesForRoute", "code": "    public List<Service> getServicesForRoute() throws Exception {\n        List<Service> servicesForRoute = new ArrayList<Service>(getServices());\n        addServices(servicesForRoute);\n        return servicesForRoute;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getServices", "code": "    public List<Service> getServices() {\n        return services;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setServices", "code": "    public void setServices(List<Service> services) {\n        this.services = services;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addService", "code": "    public void addService(Service service) {\n        getServices().add(service);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addServices", "code": "    protected void addServices(List<Service> services) throws Exception {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Route", "code": "    public Route(Endpoint<E> endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Route", "code": "    public Route(Endpoint<E> endpoint, Service... services) {\n        this(endpoint);\n        for (Service service : services) {\n            addService(service);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.5-7155", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/VariableBase.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.VariableBase", "code": "class VariableBase extends TopLevelElement {\n\n\n    protected Vector      _refs = new Vector(2); \n\n    protected Vector      _dependencies = null;\n\n    protected boolean    _ignore = false;\n\n    protected int        _weight = 0;\n\n    /**\n     * Disable this variable/parameter\n     */\n    public void disable() {\n\t_ignore = true;\n    }\n\n    /**\n     * Add a reference to this variable. Called by VariableRef when an\n     * expression contains a reference to this variable.\n     */\n    public void addReference(VariableRefBase vref) {\n\t_refs.addElement(vref);\n    }\n\n    /**\n     * Remove a reference to this variable. Called by VariableRef when this\n     * variable goes out of scope.\n     */\n    public void removeReference(VariableRefBase vref) {\n\t_refs.remove(vref);\n    }\n\n    /**\n     *\n     */\n    public void addDependency(VariableBase other) {\n\tif (_dependencies == null) {\n\t    _dependencies = new Vector();\n\t}\n\tif (!_dependencies.contains(other)) {\n\t    _dependencies.addElement(other);\n\t}\n    }\n\n    /**\n     *\n     */\n    public Vector getDependencies() {\n\treturn _dependencies;\n    }\n\n    /**\n     * Map this variable to a register\n     */\n    public void mapRegister(MethodGenerator methodGen) {\n        if (_local == null) {\n            final InstructionList il = methodGen.getInstructionList();\n\t    final org.apache.bcel.generic.Type varType = _type.toJCType();\n            _local = methodGen.addLocalVariable2(name, varType, il.getEnd());\n        }\n    }\n\n    /**\n     * Remove the mapping of this variable to a register.\n     * Called when we leave the AST scope of the variable's declaration\n     */\n    public void unmapRegister(MethodGenerator methodGen) {\n\tif (_refs.isEmpty() && (_local != null)) {\n\t    _local.setEnd(methodGen.getInstructionList().getEnd());\n\t    methodGen.removeLocalVariable(_local);\n\t    _refs = null;\n\t    _local = null;\n\t}\n    }\n\n    /**\n     * Returns a handle to the instruction for loading the value of this\n     * variable onto the JVM stack.\n     */\n    public Instruction loadInstruction() {\n\tfinal Instruction instr = _loadInstruction;\n\tif (_loadInstruction == null) \n\t    _loadInstruction = _type.LOAD(_local.getIndex());\n\treturn _loadInstruction;\n    }\n\n    /**\n     * Returns the expression from this variable's select attribute (if any)\n     */\n    public Expression getExpression() {\n\treturn(_select);\n    }\n\n    /**\n     * Display variable as single string\n     */\n    public String toString() {\n\treturn(\"variable(\"+_name+\")\");\n    }\n\n    /**\n     * Display variable in a full AST dump\n     */\n    public void display(int indent) {\n\tindent(indent);\n\tSystem.out.println(\"Variable \" + _name);\n\tif (_select != null) { \n\t    indent(indent + IndentIncrement);\n\t    System.out.println(\"select \" + _select.toString());\n\t}\n\tdisplayContents(indent + IndentIncrement);\n    }\n\n    /**\n     * Returns the type of the variable\n     */\n    public Type getType() {\n\treturn _type;\n    }\n\n    /**\n     * Returns the name of the variable or parameter as it will occur in the\n     * compiled translet.\n     */\n    public QName getName() {\n\treturn _name;\n    }\n\n    /**\n     * Returns the name of the variable or parameter as it occured in the\n     * stylesheet.\n     */\n    public String getVariable() {\n\treturn _variable;\n    }\n\n    /**\n     * Set the name of the variable or paremeter. Escape all special chars.\n     */\n    public void setName(QName name) {\n\t_name = name;\n\t_variable = Util.escape(name.getLocalPart());\n    }\n\n    /**\n     * Returns the true if the variable is local\n     */\n    public boolean isLocal() {\n\treturn _isLocal;\n    }\n\n    /**\n     * Parse the contents of the <xsl:decimal-format> element.\n     */\n    public void parseContents(Parser parser) {\n\tString name = getAttribute(\"name\");\n\tif (name == null) name = EMPTYSTRING;\n\n\tif (name.length() > 0)\n\t    setName(parser.getQNameIgnoreDefaultNs(name));\n        else\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\n\n\tVariableBase other = parser.lookupVariable(_name);\n\tif ((other != null) && (other.getParent() == getParent())) {\n\t    reportError(this, parser, ErrorMsg.VARIABLE_REDEF_ERR, name);\n\t}\n\t\n\tselect = getAttribute(\"select\");\n\tif (select.length() > 0) {\n\t    _select = getParser().parseExpression(this, \"select\", null);\n\t    if (_select.isDummy()) {\n\t\treportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"select\");\n\t\treturn;\n\t    }\n\t}\n\n\tparseChildren(parser);\n    }\n\n    /**\n     * Compile the value of the variable, which is either in an expression in\n     * a 'select' attribute, or in the variable elements body\n     */\n    public void translateValue(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tif (_select != null) {\n\t    _select.translate(classGen, methodGen);\n\t    _select.startResetIterator(classGen, methodGen);\n\t}\n\telse if (hasContents()) {\n\t    compileResultTree(classGen, methodGen);\n\t}\n\telse {\n\t    final ConstantPoolGen cpg = classGen.getConstantPool();\n\t    final InstructionList il = methodGen.getInstructionList();\n\t    il.append(new PUSH(cpg, Constants.EMPTYSTRING));", "functions": [{"function_name": "disable", "code": "    public void disable() {\n\t_ignore = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addReference", "code": "    public void addReference(VariableRefBase vref) {\n\t_refs.addElement(vref);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeReference", "code": "    public void removeReference(VariableRefBase vref) {\n\t_refs.remove(vref);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addDependency", "code": "    public void addDependency(VariableBase other) {\n\tif (_dependencies == null) {\n\t    _dependencies = new Vector();\n\t}\n\tif (!_dependencies.contains(other)) {\n\t    _dependencies.addElement(other);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [1, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 1], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getDependencies", "code": "    public Vector getDependencies() {\n\treturn _dependencies;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "mapRegister", "code": "    public void mapRegister(MethodGenerator methodGen) {\n        if (_local == null) {\n            final InstructionList il = methodGen.getInstructionList();\n\t    final org.apache.bcel.generic.Type varType = _type.toJCType();\n            _local = methodGen.addLocalVariable2(name, varType, il.getEnd());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 7], [7, 8], [4, 9], [5, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 1], [8, 7], [9, 4], [10, 5], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "unmapRegister", "code": "    public void unmapRegister(MethodGenerator methodGen) {\n\tif (_refs.isEmpty() && (_local != null)) {\n\t    _local.setEnd(methodGen.getInstructionList().getEnd());\n\t    methodGen.removeLocalVariable(_local);\n\t    _refs = null;\n\t    _local = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [6, 11], [7, 12], [9, 13], [13, 14], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 6], [12, 7], [13, 9], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "loadInstruction", "code": "    public Instruction loadInstruction() {\n\tfinal Instruction instr = _loadInstruction;\n\tif (_loadInstruction == null) \n\t    _loadInstruction = _type.LOAD(_local.getIndex());\n\treturn _loadInstruction;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExpression", "code": "    public Expression getExpression() {\n\treturn(_select);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn(\"variable(\"+_name+\")\");", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tSystem.out.println(\"Variable \" + _name);\n\tif (_select != null) { \n\t    indent(indent + IndentIncrement);\n\t    System.out.println(\"select \" + _select.toString());\n\t}\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [3, 7], [4, 8], [5, 9], [1, 10], [1, 11], [9, 12], [10, 13], [11, 14], [13, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 3], [8, 4], [9, 5], [10, 1], [11, 1], [12, 9], [13, 10], [14, 11], [15, 13], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getType", "code": "    public Type getType() {\n\treturn _type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "    public QName getName() {\n\treturn _name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getVariable", "code": "    public String getVariable() {\n\treturn _variable;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(QName name) {\n\t_name = name;\n\t_variable = Util.escape(name.getLocalPart());", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isLocal", "code": "    public boolean isLocal() {\n\treturn _isLocal;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tString name = getAttribute(\"name\");\n\tif (name == null) name = EMPTYSTRING;\n\n\tif (name.length() > 0)\n\t    setName(parser.getQNameIgnoreDefaultNs(name));\n        else\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\n\n\tVariableBase other = parser.lookupVariable(_name);\n\tif ((other != null) && (other.getParent() == getParent())) {\n\t    reportError(this, parser, ErrorMsg.VARIABLE_REDEF_ERR, name);\n\t}\n\t\n\tselect = getAttribute(\"select\");\n\tif (select.length() > 0) {\n\t    _select = getParser().parseExpression(this, \"select\", null);\n\t    if (_select.isDummy()) {\n\t\treportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"select\");\n\t\treturn;\n\t    }\n\t}\n\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [4, 12], [5, 13], [1, 14], [9, 15], [9, 16], [10, 17], [11, 18], [11, 19], [3, 20], [4, 21], [4, 22], [12, 23], [12, 24], [5, 25], [13, 26], [6, 27], [14, 28], [1, 29], [17, 30], [2, 31], [18, 32], [18, 33], [19, 34], [21, 35], [22, 36], [27, 37], [14, 38], [29, 39], [14, 40], [39, 41], [40, 42], [41, 43], [41, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 4], [13, 5], [14, 1], [15, 9], [16, 9], [17, 10], [18, 11], [19, 11], [20, 3], [21, 4], [22, 4], [23, 12], [24, 12], [25, 5], [26, 13], [27, 6], [28, 14], [29, 1], [30, 17], [31, 2], [32, 18], [33, 18], [34, 19], [35, 21], [36, 22], [37, 27], [38, 14], [39, 29], [40, 14], [41, 39], [42, 40], [43, 41], [44, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "translateValue", "code": "    public void translateValue(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tif (_select != null) {\n\t    _select.translate(classGen, methodGen);\n\t    _select.startResetIterator(classGen, methodGen);\n\t}\n\telse if (hasContents()) {\n\t    compileResultTree(classGen, methodGen);\n\t}\n\telse {\n\t    final ConstantPoolGen cpg = classGen.getConstantPool();\n\t    final InstructionList il = methodGen.getInstructionList();\n\t    il.append(new PUSH(cpg, Constants.EMPTYSTRING));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [4, 8], [4, 9], [1, 10], [1, 11], [4, 12], [4, 13], [12, 14], [8, 15], [9, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 4], [9, 4], [10, 1], [11, 1], [12, 4], [13, 4], [14, 12], [15, 8], [16, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 1}
{"sample_id": "camel-1.4-2555", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/language/PythonExpression.java", "language": "java", "name": "org.apache.camel.model.language.PythonExpression", "code": "@XmlRootElement(name = \"python\")\npublic class PythonExpression extends ExpressionType {\n    public PythonExpression() {\n    }\n\n    public PythonExpression(String expression) {\n        super(expression);\n    }\n\n    public String getLanguage() {\n        return \"python\";", "functions": [{"function_name": "getLanguage", "code": "    public String getLanguage() {\n        return \"python\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "PythonExpression", "code": "    public PythonExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PythonExpression", "code": "    public PythonExpression(String expression) {\n        super(expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.6-584", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/util/LazyHashtable.java", "language": "java", "name": "org.apache.tools.ant.util.LazyHashtable", "code": "public class LazyHashtable extends Hashtable {\n    protected boolean initAllDone = false;\n\n    public LazyHashtable() {\n        super();\n    }\n\n    /** Used to be part of init. It must be done once - but\n     * we delay it until we do need _all_ tasks. Otherwise we\n     * just get the tasks that we need, and avoid costly init.\n     */\n    protected void initAll() {\n        if (initAllDone) {\n            return;\n        }\n        initAllDone = true;\n    }\n\n\n    public Enumeration elements() {\n        initAll();\n        return super.elements();\n    }\n\n    public boolean isEmpty() {\n        initAll();\n        return super.isEmpty();\n    }\n\n    public int size() {\n        initAll();\n        return super.size();\n    }\n\n    public boolean contains(Object value) {\n        initAll();\n        return super.contains(value);\n    }\n\n    public boolean containsKey(Object value) {\n        initAll();\n        return super.containsKey(value);\n    }\n\n    /**\n     * Delegates to {@link #contains contains}.\n     */\n    public boolean containsValue(Object value) {\n        return contains(value);\n    }\n\n    public Enumeration keys() {\n        initAll();\n        return super.keys();", "functions": [{"function_name": "initAll", "code": "    protected void initAll() {\n        if (initAllDone) {\n            return;\n        }\n        initAllDone = true;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR", "RETURN"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [1, 0], [2, 0], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "elements", "code": "    public Enumeration elements() {\n        initAll();\n        return super.elements();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isEmpty", "code": "    public boolean isEmpty() {\n        initAll();\n        return super.isEmpty();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "size", "code": "    public int size() {\n        initAll();\n        return super.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "contains", "code": "    public boolean contains(Object value) {\n        initAll();\n        return super.contains(value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "containsKey", "code": "    public boolean containsKey(Object value) {\n        initAll();\n        return super.containsKey(value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "containsValue", "code": "    public boolean containsValue(Object value) {\n        return contains(value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "keys", "code": "    public Enumeration keys() {\n        initAll();\n        return super.keys();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LazyHashtable", "code": "    public LazyHashtable() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.3-4723", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/util/WorkRequest.java", "language": "java", "name": "org.gjt.sp.util.WorkRequest", "code": "public abstract class WorkRequest implements Runnable, ProgressObserver\n{\n\t/**\n\t * If the max value is greater that <code>Integer.MAX_VALUE</code> this \n\t * will be true and all values will be divided by 1024.\n\t * @since jEdit 4.3pre3\n\t */\n\tprivate boolean largeValues;\n\n\t/**\n\t * Sets if the request can be aborted.\n\t */\n\tpublic void setAbortable(boolean abortable)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t\t((WorkThread)thread).setAbortable(abortable);\n\t}\n\n\t/**\n\t * Sets the status text.\n\t * @param status The status text\n\t */\n\tpublic void setStatus(String status)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t\t((WorkThread)thread).setStatus(status);\n\t}\n\n\t/**\n\t * Sets the progress value.\n\t * @param value The progress value.\n\t * @deprecated use {@link #setValue(long)}\n\t */\n\tpublic void setProgressValue(int value)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t\t((WorkThread)thread).setProgressValue(value);\n\t}\n\n\t/**\n\t * Sets the maximum progress value.\n\t * @param value The progress value.\n\t * @deprecated use {@link #setMaximum(long)}\n\t */\n\tpublic void setProgressMaximum(int value)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t\t((WorkThread)thread).setProgressMaximum(value);\n\t}\n\n\t//{{{ setValue() method\n\t/**\n\t * Update the progress value.\n\t *\n\t * @param value the new value\n\t * @since jEdit 4.3pre3\n\t */\n\tpublic void setValue(long value)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t{\n\t\t\tif (largeValues)\n\t\t\t{\n\t\t\t\t((WorkThread)thread).setProgressValue((int) (value >> 10));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t((WorkThread)thread).setProgressValue((int) value);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ setValue() method\n\t/**\n\t * Update the maximum value.\n\t *\n\t * @param value the new maximum value\n\t * @since jEdit 4.3pre3\n\t */\n\tpublic void setMaximum(long value)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t{\n\t\t\tif (value > Integer.MAX_VALUE)\n\t\t\t{\n\t\t\t\tlargeValues = true;\n\t\t\t\t((WorkThread)thread).setProgressMaximum((int) (value >> 10));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargeValues = false;\n\t\t\t\t((WorkThread)thread).setProgressMaximum((int) value);", "functions": [{"function_name": "setAbortable", "code": "\tpublic void setAbortable(boolean abortable)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t\t((WorkThread)thread).setAbortable(abortable);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setStatus", "code": "\tpublic void setStatus(String status)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t\t((WorkThread)thread).setStatus(status);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setProgressValue", "code": "\tpublic void setProgressValue(int value)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t\t((WorkThread)thread).setProgressValue(value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setProgressMaximum", "code": "\tpublic void setProgressMaximum(int value)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t\t((WorkThread)thread).setProgressMaximum(value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setValue", "code": "\tpublic void setValue(long value)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t{\n\t\t\tif (largeValues)\n\t\t\t{\n\t\t\t\t((WorkThread)thread).setProgressValue((int) (value >> 10));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t((WorkThread)thread).setProgressValue((int) value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setMaximum", "code": "\tpublic void setMaximum(long value)\n\t{\n\t\tThread thread = Thread.currentThread();\n\t\tif(thread instanceof WorkThread)\n\t\t{\n\t\t\tif (value > Integer.MAX_VALUE)\n\t\t\t{\n\t\t\t\tlargeValues = true;\n\t\t\t\t((WorkThread)thread).setProgressMaximum((int) (value >> 10));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargeValues = false;\n\t\t\t\t((WorkThread)thread).setProgressMaximum((int) value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [5, 7], [5, 8], [5, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 5], [8, 5], [9, 5], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "xalan-2.7-8573", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/util/RtMethodGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.RtMethodGenerator", "code": "public final class RtMethodGenerator extends MethodGenerator {\n    private static final int HANDLER_INDEX = 2;\n    private final Instruction _astoreHandler;\n    private final Instruction _aloadHandler;\n\n    public RtMethodGenerator(int access_flags, Type return_type,\n\t\t\t     Type[] arg_types, String[] arg_names,\n\t\t\t     String method_name, String class_name,\n\t\t\t     InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_astoreHandler = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler  = new ALOAD(HANDLER_INDEX);\n    }\n\n    public int getIteratorIndex() {\n    }\n    \n    public final Instruction storeHandler() {\n\treturn _astoreHandler;\n    }\n\n    public final Instruction loadHandler() {\n\treturn _aloadHandler;\n    }\n\n    public int getLocalIndex(String name) {", "functions": [{"function_name": "getIteratorIndex", "code": "    public int getIteratorIndex() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "storeHandler", "code": "    public final Instruction storeHandler() {\n\treturn _astoreHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadHandler", "code": "    public final Instruction loadHandler() {\n\treturn _aloadHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RtMethodGenerator", "code": "    public RtMethodGenerator(int access_flags, Type return_type,\n\t\t\t     Type[] arg_types, String[] arg_names,\n\t\t\t     String method_name, String class_name,\n\t\t\t     InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_astoreHandler = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler  = new ALOAD(HANDLER_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 1}
{"sample_id": "velocity-1.4-6345", "repo": "velocity-1.4", "project": "velocity", "version": "1.4", "file_path": "org/apache/velocity/runtime/parser/ParserTokenManager.java", "language": "java", "name": "org.apache.velocity.runtime.parser.ParserTokenManager", "code": "public class ParserTokenManager implements ParserConstants\n{\n    private int fileDepth = 0;\n\n    private int lparen = 0;\n    private int rparen = 0;\n\n    Stack stateStack = new Stack();\n    public boolean debugPrint = false;\n\n    private boolean inReference;\n    public boolean inDirective;\n    private boolean inComment;\n    public  boolean inSet;\n\n    /**\n     *  pushes the current state onto the 'state stack',\n     *  and maintains the parens counts\n     *  public because we need it in PD & VM handling\n     *\n     *  @return boolean : success.  It can fail if the state machine\n     *     gets messed up (do don't mess it up :)\n     */\n    public boolean stateStackPop()\n    {\n        Hashtable h;\n\n        try\n        {\n            h = (Hashtable) stateStack.pop();\n        }\n        catch( EmptyStackException e)\n        {\n            lparen=0;\n            SwitchTo(DEFAULT);\n            return false;\n        }\n\n        if( debugPrint )\n            System.out.println(\n                \" stack pop (\" + stateStack.size() + \") : lparen=\" +\n                    ( (Integer) h.get(\"lparen\")).intValue() +\n                        \" newstate=\" + ( (Integer) h.get(\"lexstate\")).intValue() );\n\n        lparen = ( (Integer) h.get(\"lparen\")).intValue();\n        rparen = ( (Integer) h.get(\"rparen\")).intValue();\n\n        SwitchTo( ( (Integer) h.get(\"lexstate\")).intValue() );\n\n        return true;\n    }\n\n    /**\n     *  pops a state off the stack, and restores paren counts\n     *\n     *  @return boolean : success of operation\n     */\n    public boolean stateStackPush()\n    {\n        if( debugPrint )\n            System.out.println(\" (\" + stateStack.size() + \") pushing cur state : \" +\n                curLexState );\n\n        Hashtable h = new Hashtable();\n\n        h.put(\"lexstate\", new Integer( curLexState ) );\n        h.put(\"lparen\", new Integer( lparen ));\n        h.put(\"rparen\", new Integer( rparen ));\n\n        lparen = 0;\n\n        stateStack.push( h );\n\n        return true;\n    }\n\n    /**\n     *  Clears all state variables, resets to\n     *  start values, clears stateStack.  Call\n     *  before parsing.\n     *  @return void\n     */\n    public void clearStateVars()\n    {\n        stateStack.clear();\n\n        lparen = 0;\n        rparen = 0;\n        inReference = false;\n        inDirective = false;\n        inComment = false;\n        inSet = false;\n\n        return;\n    }\n\n    /**\n     *  handles the dropdown logic when encountering a RPAREN\n     */\n    private void RPARENHandler()\n    {\n        /*\n         *  Ultimately, we want to drop down to the state below\n         *  the one that has an open (if we hit bottom (DEFAULT),\n         *  that's fine. It's just text schmoo.\n         */\n\n        boolean closed = false;\n\n        if (inComment)\n            closed = true;\n\n        while( !closed )\n        {\n            /*\n             * look at current state.  If we haven't seen a lparen\n             * in this state then we drop a state, because this\n             * lparen clearly closes our state\n             */\n\n            if( lparen > 0)\n            {\n                /*\n                 *  if rparen + 1 == lparen, then this state is closed.\n                 * Otherwise, increment and keep parsing\n                 */\n\n                 if( lparen == rparen + 1)\n                 {\n                       stateStackPop();\n                 }\n                else\n                {\n                    rparen++;\n                }\n\n                 closed = true;\n            }\n            else\n            {\n                /*\n                 * now, drop a state\n                 */\n\n                if(!stateStackPop())\n                    break;\n            }\n        }\n    }\n  public  java.io.PrintStream debugStream = System.out;\n  public  void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }\nprivate final int jjStopStringLiteralDfa_0(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            return 33;\n         }\n         if ((active0 & 0x10000000L) != 0L)\n            return 31;\n         if ((active0 & 0xd000L) != 0L)\n            return 7;\n         return -1;\n      case 1:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 1;\n            return 33;\n         }\n         if ((active0 & 0x4000L) != 0L)\n            return 5;\n         return -1;\n      case 2:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 2;\n            return 33;\n         }\n         return -1;\n      case 3:\n         if ((active0 & 0x4000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 3;\n            return 33;\n         }\n         if ((active0 & 0x2000000L) != 0L)\n            return 33;\n         return -1;\n      default :\n         return -1;\n   }\n}\nprivate final int jjStartNfa_0(int pos, long active0)\n{\n   return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1);\n}\nprivate final int jjStopAtPos(int pos, int kind)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   return pos + 1;\n}\nprivate final int jjStartNfaWithStates_0(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_0(state, pos + 1);\n}\nprivate final int jjMoveStringLiteralDfa0_0()\n{\n   switch(curChar)\n   {\n      case 33:\n         jjmatchedKind = 41;\n         return jjMoveStringLiteralDfa1_0(0x10000000000L);\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_0(0x5000L);\n      case 37:\n         return jjStopAtPos(0, 32);\n      case 38:\n         return jjMoveStringLiteralDfa1_0(0x200000000L);\n      case 40:\n         return jjStopAtPos(0, 5);\n      case 42:\n         return jjStopAtPos(0, 30);\n      case 43:\n         return jjStopAtPos(0, 29);\n      case 44:\n         return jjStopAtPos(0, 3);\n      case 45:\n         return jjStartNfaWithStates_0(0, 28, 31);\n      case 46:\n         return jjMoveStringLiteralDfa1_0(0x10L);\n      case 47:\n         return jjStopAtPos(0, 31);\n      case 60:\n         jjmatchedKind = 35;\n         return jjMoveStringLiteralDfa1_0(0x1000000000L);\n      case 61:\n         jjmatchedKind = 42;\n         return jjMoveStringLiteralDfa1_0(0x8000000000L);\n      case 62:\n         jjmatchedKind = 37;\n         return jjMoveStringLiteralDfa1_0(0x4000000000L);\n      case 91:\n         return jjStopAtPos(0, 1);\n      case 93:\n         return jjStopAtPos(0, 2);\n      case 102:\n         return jjMoveStringLiteralDfa1_0(0x4000000L);\n      case 116:\n         return jjMoveStringLiteralDfa1_0(0x2000000L);\n      case 124:\n         return jjMoveStringLiteralDfa1_0(0x400000000L);\n      default :\n         return jjMoveNfa_0(0, 0);\n   }\n}\nprivate final int jjMoveStringLiteralDfa1_0(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 38:\n         if ((active0 & 0x200000000L) != 0L)\n            return jjStopAtPos(1, 33);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_0(1, 14, 5);\n         break;\n      case 46:\n         if ((active0 & 0x10L) != 0L)\n            return jjStopAtPos(1, 4);\n         break;\n      case 61:\n         if ((active0 & 0x1000000000L) != 0L)\n            return jjStopAtPos(1, 36);\n         else if ((active0 & 0x4000000000L) != 0L)\n            return jjStopAtPos(1, 38);\n         else if ((active0 & 0x8000000000L) != 0L)\n            return jjStopAtPos(1, 39);\n         else if ((active0 & 0x10000000000L) != 0L)\n            return jjStopAtPos(1, 40);\n         break;\n      case 97:\n         return jjMoveStringLiteralDfa2_0(active0, 0x4000000L);\n      case 114:\n         return jjMoveStringLiteralDfa2_0(active0, 0x2000000L);\n      case 124:\n         if ((active0 & 0x400000000L) != 0L)\n            return jjStopAtPos(1, 34);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(0, active0);\n}\nprivate final int jjMoveStringLiteralDfa2_0(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_0(0, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(1, active0);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 108:\n         return jjMoveStringLiteralDfa3_0(active0, 0x4000000L);\n      case 117:\n         return jjMoveStringLiteralDfa3_0(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(1, active0);\n}\nprivate final int jjMoveStringLiteralDfa3_0(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_0(1, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(2, active0);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x2000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 25, 33);\n         break;\n      case 115:\n         return jjMoveStringLiteralDfa4_0(active0, 0x4000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(2, active0);\n}\nprivate final int jjMoveStringLiteralDfa4_0(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_0(2, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(3, active0);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x4000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 26, 33);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(3, active0);\n}\nprivate final void jjCheckNAdd(int state)\n{\n   if (jjrounds[state] != jjround)\n   {\n      jjstateSet[jjnewStateCnt++] = state;\n      jjrounds[state] = jjround;\n   }\n}\nprivate final void jjAddStates(int start, int end)\n{\n   do {\n      jjstateSet[jjnewStateCnt++] = jjnextStates[start];\n   } while (start++ != end);\n}\nprivate final void jjCheckNAddTwoStates(int state1, int state2)\n{\n   jjCheckNAdd(state1);\n   jjCheckNAdd(state2);\n}\nprivate final void jjCheckNAddStates(int start, int end)\n{\n   do {\n      jjCheckNAdd(jjnextStates[start]);\n   } while (start++ != end);\n}\nprivate final void jjCheckNAddStates(int start)\n{\n   jjCheckNAdd(jjnextStates[start]);\n   jjCheckNAdd(jjnextStates[start + 1]);\n}\nstatic final long[] jjbitVec0 = {\n   0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL\n};\nstatic final long[] jjbitVec2 = {\n   0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL\n};\nprivate final int jjMoveNfa_0(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 42;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 0:\n                  if ((0x3ff000000000000L & l) != 0L)\n                  {\n                     if (kind > 49)\n                        kind = 49;\n                     jjCheckNAdd(31);\n                  }\n                  else if ((0x2400L & l) != 0L)\n                  {\n                     if (kind > 27)\n                        kind = 27;\n                  }\n                  else if ((0x100000200L & l) != 0L)\n                  {\n                     if (kind > 23)\n                        kind = 23;\n                     jjCheckNAdd(9);\n                  }\n                  else if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(39, 40);\n                  }\n                  else if (curChar == 45)\n                     jjCheckNAdd(31);\n                  else if (curChar == 39)\n                     jjCheckNAddStates(0, 2);\n                  else if (curChar == 34)\n                     jjCheckNAddStates(3, 5);\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  else if (curChar == 41)\n                  {\n                     if (kind > 6)\n                        kind = 6;\n                     jjCheckNAddStates(6, 8);\n                  }\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 28;\n                  break;\n               case 1:\n                  if ((0x100000200L & l) != 0L)\n                     jjCheckNAddStates(6, 8);\n                  break;\n               case 2:\n                  if ((0x2400L & l) != 0L && kind > 6)\n                     kind = 6;\n                  break;\n               case 3:\n                  if (curChar == 10 && kind > 6)\n                     kind = 6;\n                  break;\n               case 4:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 3;\n                  break;\n               case 5:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 6;\n                  break;\n               case 6:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 7:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 5;\n                  break;\n               case 8:\n                  if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  break;\n               case 9:\n                  if ((0x100000200L & l) == 0L)\n                     break;\n                  if (kind > 23)\n                     kind = 23;\n                  jjCheckNAdd(9);\n                  break;\n               case 10:\n                  if (curChar == 34)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 11:\n                  if ((0xfffffffbffffdbffL & l) != 0L)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 12:\n                  if (curChar == 34 && kind > 24)\n                     kind = 24;\n                  break;\n               case 14:\n                  if ((0x8400000000L & l) != 0L)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 15:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(9, 12);\n                  break;\n               case 16:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 17:\n                  if ((0xf000000000000L & l) != 0L)\n                     jjstateSet[jjnewStateCnt++] = 18;\n                  break;\n               case 18:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAdd(16);\n                  break;\n               case 19:\n                  if (curChar == 32)\n                     jjAddStates(13, 14);\n                  break;\n               case 20:\n                  if (curChar == 10)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 21:\n                  if (curChar == 39)\n                     jjCheckNAddStates(0, 2);\n                  break;\n               case 22:\n                  if ((0xffffff7fffffdbffL & l) != 0L)\n                     jjCheckNAddStates(0, 2);\n                  break;\n               case 24:\n                  if (curChar == 32)\n                     jjAddStates(15, 16);\n                  break;\n               case 25:\n                  if (curChar == 10)\n                     jjCheckNAddStates(0, 2);\n                  break;\n               case 26:\n                  if (curChar == 39 && kind > 24)\n                     kind = 24;\n                  break;\n               case 27:\n                  if ((0x2400L & l) != 0L && kind > 27)\n                     kind = 27;\n                  break;\n               case 28:\n                  if (curChar == 10 && kind > 27)\n                     kind = 27;\n                  break;\n               case 29:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 28;\n                  break;\n               case 30:\n                  if (curChar == 45)\n                     jjCheckNAdd(31);\n                  break;\n               case 31:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 49)\n                     kind = 49;\n                  jjCheckNAdd(31);\n                  break;\n               case 33:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjstateSet[jjnewStateCnt++] = 33;\n                  break;\n               case 36:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 38:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(39, 40);\n                  break;\n               case 40:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 41:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(39, 40);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 0:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(33);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(17, 20);\n                  break;\n               case 6:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 11:\n                  if ((0xffffffffefffffffL & l) != 0L)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 13:\n                  if (curChar == 92)\n                     jjAddStates(21, 25);\n                  break;\n               case 14:\n                  if ((0x14404410000000L & l) != 0L)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 22:\n                  jjAddStates(0, 2);\n                  break;\n               case 23:\n                  if (curChar == 92)\n                     jjAddStates(15, 16);\n                  break;\n               case 32:\n               case 33:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(33);\n                  break;\n               case 34:\n                  if (curChar == 92)\n                     jjCheckNAddStates(17, 20);\n                  break;\n               case 35:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(35, 36);\n                  break;\n               case 37:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(37, 38);\n                  break;\n               case 39:\n                  if (curChar == 92)\n                     jjAddStates(26, 27);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 6:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               case 11:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     jjAddStates(3, 5);\n                  break;\n               case 22:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     jjAddStates(0, 2);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 42 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }\n   }\n}\nprivate final int jjStopStringLiteralDfa_6(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         return -1;\n      default :\n         return -1;\n   }\n}\nprivate final int jjStartNfa_6(int pos, long active0)\n{\n   return jjMoveNfa_6(jjStopStringLiteralDfa_6(pos, active0), pos + 1);\n}\nprivate final int jjStartNfaWithStates_6(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_6(state, pos + 1);\n}\nprivate final int jjMoveStringLiteralDfa0_6()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_6(0x5000L);\n      case 42:\n         return jjMoveStringLiteralDfa1_6(0x200000L);\n      default :\n         return jjMoveNfa_6(3, 0);\n   }\n}\nprivate final int jjMoveStringLiteralDfa1_6(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_6(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         else if ((active0 & 0x200000L) != 0L)\n            return jjStopAtPos(1, 21);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_6(1, 14, 0);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_6(0, active0);\n}\nprivate final int jjMoveNfa_6(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 12;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(9, 10);\n                  }\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 6:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 8:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(9, 10);\n                  break;\n               case 10:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 11:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(9, 10);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 92)\n                     jjCheckNAddStates(28, 31);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 5:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(5, 6);\n                  break;\n               case 7:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(7, 8);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjAddStates(32, 33);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 12 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }\n   }\n}\nprivate final int jjStopStringLiteralDfa_4(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         if ((active0 & 0x200000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            return 22;\n         }\n         if ((active0 & 0x900000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            return 7;\n         }\n         return -1;\n      case 1:\n         if ((active0 & 0x4000L) != 0L)\n            return 0;\n         if ((active0 & 0x200000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 1;\n            return 28;\n         }\n         if ((active0 & 0x800000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 1;\n            return 7;\n         }\n         if ((active0 & 0x100000000000L) != 0L)\n            return 7;\n         return -1;\n      case 2:\n         if ((active0 & 0x200000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 2;\n            return 23;\n         }\n         if ((active0 & 0x800000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 2;\n            return 7;\n         }\n         return -1;\n      case 3:\n         if ((active0 & 0x800000000000L) != 0L)\n            return 7;\n         if ((active0 & 0x200000000000L) != 0L)\n         {\n            jjmatchedKind = 46;\n            jjmatchedPos = 3;\n            return 30;\n         }\n         return -1;\n      case 4:\n         if ((active0 & 0x200000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 4;\n            return 7;\n         }\n         return -1;\n      default :\n         return -1;\n   }\n}\nprivate final int jjStartNfa_4(int pos, long active0)\n{\n   return jjMoveNfa_4(jjStopStringLiteralDfa_4(pos, active0), pos + 1);\n}\nprivate final int jjStartNfaWithStates_4(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_4(state, pos + 1);\n}\nprivate final int jjMoveStringLiteralDfa0_4()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_4(0x5000L);\n      case 101:\n         return jjMoveStringLiteralDfa1_4(0x200000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa1_4(0x100000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa1_4(0x800000000000L);\n      default :\n         return jjMoveNfa_4(3, 0);\n   }\n}\nprivate final int jjMoveStringLiteralDfa1_4(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_4(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_4(1, 14, 0);\n         break;\n      case 102:\n         if ((active0 & 0x100000000000L) != 0L)\n            return jjStartNfaWithStates_4(1, 44, 7);\n         break;\n      case 108:\n         return jjMoveStringLiteralDfa2_4(active0, 0x200000000000L);\n      case 116:\n         return jjMoveStringLiteralDfa2_4(active0, 0x800000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_4(0, active0);\n}\nprivate final int jjMoveStringLiteralDfa2_4(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_4(0, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_4(1, active0);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 111:\n         return jjMoveStringLiteralDfa3_4(active0, 0x800000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa3_4(active0, 0x200000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_4(1, active0);\n}\nprivate final int jjMoveStringLiteralDfa3_4(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_4(1, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_4(2, active0);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 101:\n         return jjMoveStringLiteralDfa4_4(active0, 0x200000000000L);\n      case 112:\n         if ((active0 & 0x800000000000L) != 0L)\n            return jjStartNfaWithStates_4(3, 47, 7);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_4(2, active0);\n}\nprivate final int jjMoveStringLiteralDfa4_4(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_4(2, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_4(3, active0);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 105:\n         return jjMoveStringLiteralDfa5_4(active0, 0x200000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_4(3, active0);\n}\nprivate final int jjMoveStringLiteralDfa5_4(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_4(3, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_4(4, active0);\n      return 5;\n   }\n   switch(curChar)\n   {\n      case 102:\n         if ((active0 & 0x200000000000L) != 0L)\n            return jjStartNfaWithStates_4(5, 45, 7);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_4(4, active0);\n}\nprivate final int jjMoveNfa_4(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 30;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x3ff000000000000L & l) != 0L)\n                  {\n                     if (kind > 49)\n                        kind = 49;\n                     jjCheckNAdd(5);\n                  }\n                  else if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(13, 14);\n                  }\n                  else if (curChar == 45)\n                     jjCheckNAdd(5);\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 30:\n                  if ((0x3ff000000000000L & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(7);\n                  }\n                  else if ((0x2400L & l) != 0L)\n                  {\n                     if (kind > 46)\n                        kind = 46;\n                  }\n                  else if ((0x100000200L & l) != 0L)\n                     jjCheckNAddStates(34, 36);\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 26;\n                  break;\n               case 22:\n               case 7:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(7);\n                  break;\n               case 28:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(7);\n                  break;\n               case 23:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(7);\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 4:\n                  if (curChar == 45)\n                     jjCheckNAdd(5);\n                  break;\n               case 5:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 49)\n                     kind = 49;\n                  jjCheckNAdd(5);\n                  break;\n               case 10:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 12:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(13, 14);\n                  break;\n               case 14:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 15:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(13, 14);\n                  break;\n               case 18:\n                  if ((0x100000200L & l) != 0L)\n                     jjAddStates(37, 39);\n                  break;\n               case 19:\n                  if ((0x2400L & l) != 0L && kind > 43)\n                     kind = 43;\n                  break;\n               case 20:\n                  if (curChar == 10 && kind > 43)\n                     kind = 43;\n                  break;\n               case 21:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 20;\n                  break;\n               case 24:\n                  if ((0x100000200L & l) != 0L)\n                     jjCheckNAddStates(34, 36);\n                  break;\n               case 25:\n                  if ((0x2400L & l) != 0L && kind > 46)\n                     kind = 46;\n                  break;\n               case 26:\n                  if (curChar == 10 && kind > 46)\n                     kind = 46;\n                  break;\n               case 27:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 26;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(7);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  if (curChar == 101)\n                     jjAddStates(44, 45);\n                  break;\n               case 30:\n               case 7:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(7);\n                  break;\n               case 22:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(7);\n                  }\n                  if (curChar == 108)\n                     jjstateSet[jjnewStateCnt++] = 28;\n                  else if (curChar == 110)\n                     jjstateSet[jjnewStateCnt++] = 17;\n                  break;\n               case 28:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(7);\n                  }\n                  if (curChar == 115)\n                     jjstateSet[jjnewStateCnt++] = 23;\n                  break;\n               case 23:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(7);\n                  }\n                  if (curChar == 101)\n                  {\n                     if (kind > 46)\n                        kind = 46;\n                     jjAddStates(34, 36);\n                  }\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 6:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(7);\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(9, 10);\n                  break;\n               case 11:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(11, 12);\n                  break;\n               case 13:\n                  if (curChar == 92)\n                     jjAddStates(46, 47);\n                  break;\n               case 16:\n                  if (curChar == 101)\n                     jjAddStates(44, 45);\n                  break;\n               case 17:\n                  if (curChar != 100)\n                     break;\n                  if (kind > 43)\n                     kind = 43;\n                  jjAddStates(37, 39);\n                  break;\n               case 29:\n                  if (curChar == 108)\n                     jjstateSet[jjnewStateCnt++] = 28;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 30 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }\n   }\n}\nprivate final int jjStopStringLiteralDfa_3(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0x30000L) != 0L)\n            return 9;\n         if ((active0 & 0xd000L) != 0L)\n            return 16;\n         return -1;\n      default :\n         return -1;\n   }\n}\nprivate final int jjStartNfa_3(int pos, long active0)\n{\n   return jjMoveNfa_3(jjStopStringLiteralDfa_3(pos, active0), pos + 1);\n}\nprivate final int jjStartNfaWithStates_3(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_3(state, pos + 1);\n}\nprivate final int jjMoveStringLiteralDfa0_3()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_3(0x5000L);\n      case 92:\n         jjmatchedKind = 17;\n         return jjMoveStringLiteralDfa1_3(0x10000L);\n      default :\n         return jjMoveNfa_3(13, 0);\n   }\n}\nprivate final int jjMoveStringLiteralDfa1_3(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_3(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_3(1, 14, 14);\n         break;\n      case 92:\n         if ((active0 & 0x10000L) != 0L)\n            return jjStartNfaWithStates_3(1, 16, 25);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_3(0, active0);\n}\nprivate final int jjMoveNfa_3(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 25;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 16:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 14;\n                  break;\n               case 13:\n                  if ((0xffffffe7ffffffffL & l) != 0L)\n                  {\n                     if (kind > 18)\n                        kind = 18;\n                     jjCheckNAdd(7);\n                  }\n                  else if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(22, 23);\n                  }\n                  else if (curChar == 35)\n                     jjCheckNAddTwoStates(5, 16);\n                  if ((0x100000200L & l) != 0L)\n                     jjCheckNAddTwoStates(0, 6);\n                  break;\n               case 25:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(22, 23);\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                  }\n                  break;\n               case 9:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(22, 23);\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 11;\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                  }\n                  break;\n               case 0:\n                  if ((0x100000200L & l) != 0L)\n                     jjCheckNAddTwoStates(0, 6);\n                  break;\n               case 2:\n                  if (curChar == 32)\n                     jjAddStates(48, 49);\n                  break;\n               case 3:\n                  if (curChar == 40 && kind > 9)\n                     kind = 9;\n                  break;\n               case 6:\n                  if (curChar == 35)\n                     jjCheckNAdd(5);\n                  break;\n               case 7:\n                  if ((0xffffffe7ffffffffL & l) == 0L)\n                     break;\n                  if (kind > 18)\n                     kind = 18;\n                  jjCheckNAdd(7);\n                  break;\n               case 10:\n                  if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 11;\n                  break;\n               case 12:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 8)\n                     kind = 8;\n                  jjstateSet[jjnewStateCnt++] = 12;\n                  break;\n               case 14:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 15;\n                  break;\n               case 15:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 19:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 21:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(22, 23);\n                  break;\n               case 23:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 24:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(22, 23);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 16:\n               case 5:\n                  if (curChar == 115)\n                     jjstateSet[jjnewStateCnt++] = 4;\n                  break;\n               case 13:\n                  if ((0xffffffffefffffffL & l) != 0L)\n                  {\n                     if (kind > 18)\n                        kind = 18;\n                     jjCheckNAdd(7);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(50, 53);\n                  if (curChar == 92)\n                     jjAddStates(32, 33);\n                  break;\n               case 25:\n                  if (curChar == 92)\n                     jjAddStates(32, 33);\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(20, 21);\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(18, 19);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(20, 21);\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(18, 19);\n                  if (curChar == 92)\n                     jjstateSet[jjnewStateCnt++] = 8;\n                  break;\n               case 1:\n                  if (curChar == 116)\n                     jjAddStates(48, 49);\n                  break;\n               case 4:\n                  if (curChar == 101)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 7:\n                  if ((0xffffffffefffffffL & l) == 0L)\n                     break;\n                  if (kind > 18)\n                     kind = 18;\n                  jjCheckNAdd(7);\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjAddStates(32, 33);\n                  break;\n               case 11:\n               case 12:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 8)\n                     kind = 8;\n                  jjCheckNAdd(12);\n                  break;\n               case 15:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 17:\n                  if (curChar == 92)\n                     jjCheckNAddStates(50, 53);\n                  break;\n               case 18:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(18, 19);\n                  break;\n               case 20:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(20, 21);\n                  break;\n               case 22:\n                  if (curChar == 92)\n                     jjAddStates(54, 55);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 13:\n               case 7:\n                  if (!jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     break;\n                  if (kind > 18)\n                     kind = 18;\n                  jjCheckNAdd(7);\n                  break;\n               case 15:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 25 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }\n   }\n}\nprivate final int jjStopStringLiteralDfa_7(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         return -1;\n      default :\n         return -1;\n   }\n}\nprivate final int jjStartNfa_7(int pos, long active0)\n{\n   return jjMoveNfa_7(jjStopStringLiteralDfa_7(pos, active0), pos + 1);\n}\nprivate final int jjStartNfaWithStates_7(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_7(state, pos + 1);\n}\nprivate final int jjMoveStringLiteralDfa0_7()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_7(0x5000L);\n      case 42:\n         return jjMoveStringLiteralDfa1_7(0x100000L);\n      default :\n         return jjMoveNfa_7(3, 0);\n   }\n}\nprivate final int jjMoveStringLiteralDfa1_7(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_7(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         else if ((active0 & 0x100000L) != 0L)\n            return jjStopAtPos(1, 20);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_7(1, 14, 0);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_7(0, active0);\n}\nprivate final int jjMoveNfa_7(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 12;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(9, 10);\n                  }\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 6:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 8:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(9, 10);\n                  break;\n               case 10:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 11:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(9, 10);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 92)\n                     jjCheckNAddStates(28, 31);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 5:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(5, 6);\n                  break;\n               case 7:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(7, 8);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjAddStates(32, 33);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 12 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }\n   }\n}\nprivate final int jjStopStringLiteralDfa_8(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         return -1;\n      default :\n         return -1;\n   }\n}\nprivate final int jjStartNfa_8(int pos, long active0)\n{\n   return jjMoveNfa_8(jjStopStringLiteralDfa_8(pos, active0), pos + 1);\n}\nprivate final int jjStartNfaWithStates_8(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_8(state, pos + 1);\n}\nprivate final int jjMoveStringLiteralDfa0_8()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_8(0x5000L);\n      default :\n         return jjMoveNfa_8(3, 0);\n   }\n}\nprivate final int jjMoveStringLiteralDfa1_8(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_8(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_8(1, 14, 0);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_8(0, active0);\n}\nprivate final int jjMoveNfa_8(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 15;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x2400L & l) != 0L)\n                  {\n                     if (kind > 19)\n                        kind = 19;\n                  }\n                  else if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(12, 13);\n                  }\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 5;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 4:\n                  if ((0x2400L & l) != 0L && kind > 19)\n                     kind = 19;\n                  break;\n               case 5:\n                  if (curChar == 10 && kind > 19)\n                     kind = 19;\n                  break;\n               case 6:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 5;\n                  break;\n               case 9:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 11:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(12, 13);\n                  break;\n               case 13:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 14:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(12, 13);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 92)\n                     jjCheckNAddStates(56, 59);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(8, 9);\n                  break;\n               case 10:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(10, 11);\n                  break;\n               case 12:\n                  if (curChar == 92)\n                     jjAddStates(60, 61);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 15 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }\n   }\n}\nprivate final int jjStopStringLiteralDfa_5(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            return 5;\n         }\n         return -1;\n      case 1:\n         if ((active0 & 0x4000L) != 0L)\n            return 0;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 1;\n            return 5;\n         }\n         return -1;\n      case 2:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 2;\n            return 5;\n         }\n         return -1;\n      case 3:\n         if ((active0 & 0x4000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 3;\n            return 5;\n         }\n         if ((active0 & 0x2000000L) != 0L)\n            return 5;\n         return -1;\n      default :\n         return -1;\n   }\n}\nprivate final int jjStartNfa_5(int pos, long active0)\n{\n   return jjMoveNfa_5(jjStopStringLiteralDfa_5(pos, active0), pos + 1);\n}\nprivate final int jjStartNfaWithStates_5(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_5(state, pos + 1);\n}\nprivate final int jjMoveStringLiteralDfa0_5()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_5(0x5000L);\n      case 102:\n         return jjMoveStringLiteralDfa1_5(0x4000000L);\n      case 116:\n         return jjMoveStringLiteralDfa1_5(0x2000000L);\n      case 123:\n         return jjStopAtPos(0, 58);\n      case 125:\n         return jjStopAtPos(0, 59);\n      default :\n         return jjMoveNfa_5(3, 0);\n   }\n}\nprivate final int jjMoveStringLiteralDfa1_5(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_5(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_5(1, 14, 0);\n         break;\n      case 97:\n         return jjMoveStringLiteralDfa2_5(active0, 0x4000000L);\n      case 114:\n         return jjMoveStringLiteralDfa2_5(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_5(0, active0);\n}\nprivate final int jjMoveStringLiteralDfa2_5(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_5(0, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_5(1, active0);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 108:\n         return jjMoveStringLiteralDfa3_5(active0, 0x4000000L);\n      case 117:\n         return jjMoveStringLiteralDfa3_5(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_5(1, active0);\n}\nprivate final int jjMoveStringLiteralDfa3_5(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_5(1, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_5(2, active0);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x2000000L) != 0L)\n            return jjStartNfaWithStates_5(3, 25, 5);\n         break;\n      case 115:\n         return jjMoveStringLiteralDfa4_5(active0, 0x4000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_5(2, active0);\n}\nprivate final int jjMoveStringLiteralDfa4_5(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_5(2, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_5(3, active0);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x4000000L) != 0L)\n            return jjStartNfaWithStates_5(4, 26, 5);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_5(3, active0);\n}\nprivate final int jjMoveNfa_5(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 16;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(13, 14);\n                  }\n                  else if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 5:\n                  if ((0x3ff200000000000L & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjstateSet[jjnewStateCnt++] = 5;\n                  break;\n               case 6:\n                  if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  break;\n               case 10:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 12:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(13, 14);\n                  break;\n               case 14:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 15:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(13, 14);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 56)\n                        kind = 56;\n                     jjCheckNAdd(5);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 4:\n               case 5:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjCheckNAdd(5);\n                  break;\n               case 7:\n                  if ((0x7fffffe07fffffeL & l) != 0L && kind > 57)\n                     kind = 57;\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(9, 10);\n                  break;\n               case 11:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(11, 12);\n                  break;\n               case 13:\n                  if (curChar == 92)\n                     jjAddStates(46, 47);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 16 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }\n   }\n}\nprivate final int jjStopStringLiteralDfa_1(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            return 25;\n         }\n         if ((active0 & 0x10L) != 0L)\n            return 27;\n         return -1;\n      case 1:\n         if ((active0 & 0x4000L) != 0L)\n            return 0;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 1;\n            return 25;\n         }\n         return -1;\n      case 2:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 2;\n            return 25;\n         }\n         return -1;\n      case 3:\n         if ((active0 & 0x4000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 3;\n            return 25;\n         }\n         if ((active0 & 0x2000000L) != 0L)\n            return 25;\n         return -1;\n      default :\n         return -1;\n   }\n}\nprivate final int jjStartNfa_1(int pos, long active0)\n{\n   return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0), pos + 1);\n}\nprivate final int jjStartNfaWithStates_1(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_1(state, pos + 1);\n}\nprivate final int jjMoveStringLiteralDfa0_1()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_1(0x5000L);\n      case 41:\n         return jjStopAtPos(0, 7);\n      case 44:\n         return jjStopAtPos(0, 3);\n      case 46:\n         return jjMoveStringLiteralDfa1_1(0x10L);\n      case 91:\n         return jjStopAtPos(0, 1);\n      case 93:\n         return jjStopAtPos(0, 2);\n      case 102:\n         return jjMoveStringLiteralDfa1_1(0x4000000L);\n      case 116:\n         return jjMoveStringLiteralDfa1_1(0x2000000L);\n      case 123:\n         return jjStopAtPos(0, 58);\n      case 125:\n         return jjStopAtPos(0, 59);\n      default :\n         return jjMoveNfa_1(3, 0);\n   }\n}\nprivate final int jjMoveStringLiteralDfa1_1(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_1(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_1(1, 14, 0);\n         break;\n      case 46:\n         if ((active0 & 0x10L) != 0L)\n            return jjStopAtPos(1, 4);\n         break;\n      case 97:\n         return jjMoveStringLiteralDfa2_1(active0, 0x4000000L);\n      case 114:\n         return jjMoveStringLiteralDfa2_1(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_1(0, active0);\n}\nprivate final int jjMoveStringLiteralDfa2_1(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_1(0, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_1(1, active0);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 108:\n         return jjMoveStringLiteralDfa3_1(active0, 0x4000000L);\n      case 117:\n         return jjMoveStringLiteralDfa3_1(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_1(1, active0);\n}\nprivate final int jjMoveStringLiteralDfa3_1(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_1(1, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_1(2, active0);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x2000000L) != 0L)\n            return jjStartNfaWithStates_1(3, 25, 25);\n         break;\n      case 115:\n         return jjMoveStringLiteralDfa4_1(active0, 0x4000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_1(2, active0);\n}\nprivate final int jjMoveStringLiteralDfa4_1(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_1(2, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_1(3, active0);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x4000000L) != 0L)\n            return jjStartNfaWithStates_1(4, 26, 25);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_1(3, active0);\n}\nprivate final int jjMoveNfa_1(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 36;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x3ff000000000000L & l) != 0L)\n                  {\n                     if (kind > 49)\n                        kind = 49;\n                     jjCheckNAdd(23);\n                  }\n                  else if ((0x100000200L & l) != 0L)\n                  {\n                     if (kind > 23)\n                        kind = 23;\n                     jjCheckNAdd(4);\n                  }\n                  else if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(33, 34);\n                  }\n                  else if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 27;\n                  else if (curChar == 45)\n                     jjCheckNAdd(23);\n                  else if (curChar == 39)\n                     jjCheckNAddStates(62, 64);\n                  else if (curChar == 34)\n                     jjCheckNAddStates(65, 67);\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 4:\n                  if ((0x100000200L & l) == 0L)\n                     break;\n                  if (kind > 23)\n                     kind = 23;\n                  jjCheckNAdd(4);\n                  break;\n               case 5:\n                  if (curChar == 34)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 6:\n                  if ((0xfffffffbffffdbffL & l) != 0L)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 7:\n                  if (curChar == 34 && kind > 24)\n                     kind = 24;\n                  break;\n               case 9:\n                  if ((0x8400000000L & l) != 0L)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 10:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(68, 71);\n                  break;\n               case 11:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 12:\n                  if ((0xf000000000000L & l) != 0L)\n                     jjstateSet[jjnewStateCnt++] = 13;\n                  break;\n               case 13:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAdd(11);\n                  break;\n               case 14:\n                  if (curChar == 32)\n                     jjAddStates(72, 73);\n                  break;\n               case 15:\n                  if (curChar == 10)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 16:\n                  if (curChar == 39)\n                     jjCheckNAddStates(62, 64);\n                  break;\n               case 17:\n                  if ((0xffffff7fffffdbffL & l) != 0L)\n                     jjCheckNAddStates(62, 64);\n                  break;\n               case 19:\n                  if (curChar == 32)\n                     jjAddStates(13, 14);\n                  break;\n               case 20:\n                  if (curChar == 10)\n                     jjCheckNAddStates(62, 64);\n                  break;\n               case 21:\n                  if (curChar == 39 && kind > 24)\n                     kind = 24;\n                  break;\n               case 22:\n                  if (curChar == 45)\n                     jjCheckNAdd(23);\n                  break;\n               case 23:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 49)\n                     kind = 49;\n                  jjCheckNAdd(23);\n                  break;\n               case 25:\n                  if ((0x3ff200000000000L & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjstateSet[jjnewStateCnt++] = 25;\n                  break;\n               case 26:\n                  if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 27;\n                  break;\n               case 30:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 32:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(33, 34);\n                  break;\n               case 34:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 35:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(33, 34);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 56)\n                        kind = 56;\n                     jjCheckNAdd(25);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(74, 77);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 6:\n                  if ((0xffffffffefffffffL & l) != 0L)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjAddStates(78, 82);\n                  break;\n               case 9:\n                  if ((0x14404410000000L & l) != 0L)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 17:\n                  jjAddStates(62, 64);\n                  break;\n               case 18:\n                  if (curChar == 92)\n                     jjAddStates(13, 14);\n                  break;\n               case 24:\n               case 25:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjCheckNAdd(25);\n                  break;\n               case 27:\n                  if ((0x7fffffe07fffffeL & l) != 0L && kind > 57)\n                     kind = 57;\n                  break;\n               case 28:\n                  if (curChar == 92)\n                     jjCheckNAddStates(74, 77);\n                  break;\n               case 29:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(29, 30);\n                  break;\n               case 31:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(31, 32);\n                  break;\n               case 33:\n                  if (curChar == 92)\n                     jjAddStates(83, 84);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               case 6:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     jjAddStates(65, 67);\n                  break;\n               case 17:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     jjAddStates(62, 64);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 36 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }\n   }\n}\nprivate final int jjStopStringLiteralDfa_2(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            return 5;\n         }\n         return -1;\n      case 1:\n         if ((active0 & 0x4000L) != 0L)\n            return 0;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 1;\n            return 5;\n         }\n         return -1;\n      case 2:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 2;\n            return 5;\n         }\n         return -1;\n      case 3:\n         if ((active0 & 0x4000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 3;\n            return 5;\n         }\n         if ((active0 & 0x2000000L) != 0L)\n            return 5;\n         return -1;\n      default :\n         return -1;\n   }\n}\nprivate final int jjStartNfa_2(int pos, long active0)\n{\n   return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);\n}\nprivate final int jjStartNfaWithStates_2(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_2(state, pos + 1);\n}\nprivate final int jjMoveStringLiteralDfa0_2()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_2(0x5000L);\n      case 40:\n         return jjStopAtPos(0, 5);\n      case 102:\n         return jjMoveStringLiteralDfa1_2(0x4000000L);\n      case 116:\n         return jjMoveStringLiteralDfa1_2(0x2000000L);\n      case 123:\n         return jjStopAtPos(0, 58);\n      case 125:\n         return jjStopAtPos(0, 59);\n      default :\n         return jjMoveNfa_2(3, 0);\n   }\n}\nprivate final int jjMoveStringLiteralDfa1_2(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_2(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_2(1, 14, 0);\n         break;\n      case 97:\n         return jjMoveStringLiteralDfa2_2(active0, 0x4000000L);\n      case 114:\n         return jjMoveStringLiteralDfa2_2(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_2(0, active0);\n}\nprivate final int jjMoveStringLiteralDfa2_2(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_2(0, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_2(1, active0);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 108:\n         return jjMoveStringLiteralDfa3_2(active0, 0x4000000L);\n      case 117:\n         return jjMoveStringLiteralDfa3_2(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_2(1, active0);\n}\nprivate final int jjMoveStringLiteralDfa3_2(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_2(1, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_2(2, active0);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x2000000L) != 0L)\n            return jjStartNfaWithStates_2(3, 25, 5);\n         break;\n      case 115:\n         return jjMoveStringLiteralDfa4_2(active0, 0x4000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_2(2, active0);\n}\nprivate final int jjMoveStringLiteralDfa4_2(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_2(2, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_2(3, active0);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x4000000L) != 0L)\n            return jjStartNfaWithStates_2(4, 26, 5);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_2(3, active0);\n}\nprivate final int jjMoveNfa_2(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 16;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(13, 14);\n                  }\n                  else if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 5:\n                  if ((0x3ff200000000000L & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjstateSet[jjnewStateCnt++] = 5;\n                  break;\n               case 6:\n                  if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  break;\n               case 10:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 12:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(13, 14);\n                  break;\n               case 14:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 15:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(13, 14);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 56)\n                        kind = 56;\n                     jjCheckNAdd(5);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 4:\n               case 5:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjCheckNAdd(5);\n                  break;\n               case 7:\n                  if ((0x7fffffe07fffffeL & l) != 0L && kind > 57)\n                     kind = 57;\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(9, 10);\n                  break;\n               case 11:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(11, 12);\n                  break;\n               case 13:\n                  if (curChar == 92)\n                     jjAddStates(46, 47);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 16 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }\n   }\n}\nstatic final int[] jjnextStates = {\n   22, 23, 26, 11, 12, 13, 1, 2, 4, 11, 16, 12, 13, 19, 20, 24, \n   25, 35, 36, 37, 38, 14, 15, 17, 19, 20, 39, 40, 5, 6, 7, 8, \n   9, 10, 24, 25, 27, 18, 19, 21, 9, 10, 11, 12, 22, 29, 13, 14, \n   2, 3, 18, 19, 20, 21, 22, 23, 8, 9, 10, 11, 12, 13, 17, 18, \n   21, 6, 7, 8, 6, 11, 7, 8, 14, 15, 29, 30, 31, 32, 9, 10, \n   12, 14, 15, 33, 34, \n};\nprivate static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)\n{\n   switch(hiByte)\n   {\n      case 0:\n         return ((jjbitVec2[i2] & l2) != 0L);\n      default : \n         if ((jjbitVec0[i1] & l1) != 0L)\n            return true;\n         return false;\n   }\n}\npublic static final String[] jjstrLiteralImages = {\nnull, null, null, null, null, null, null, null, null, null, null, null, null, \nnull, null, null, null, null, null, null, null, null, null, null, null, null, null, \nnull, null, null, null, null, null, null, null, null, null, null, null, null, null, \nnull, null, null, null, null, null, null, null, null, null, null, null, null, null, \nnull, null, null, null, null, null, null, };\npublic static final String[] lexStateNames = {\n   \"DIRECTIVE\", \n   \"REFMOD2\", \n   \"REFMODIFIER\", \n   \"DEFAULT\", \n   \"PRE_DIRECTIVE\", \n   \"REFERENCE\", \n   \"IN_MULTI_LINE_COMMENT\", \n   \"IN_FORMAL_COMMENT\", \n   \"IN_SINGLE_LINE_COMMENT\", \n};\npublic static final int[] jjnewLexState = {\n   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, \n   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, \n   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, \n};\nstatic final long[] jjtoToken = {\n   0xf12ffffffbf03ffL, \n};\nstatic final long[] jjtoSkip = {\n   0x3000000000000000L, \n};\nstatic final long[] jjtoSpecial = {\n   0x3000000000000000L, \n};\nstatic final long[] jjtoMore = {\n   0x40fc00L, \n};\nprivate CharStream input_stream;\nprivate final int[] jjrounds = new int[42];\nprivate final int[] jjstateSet = new int[84];\nStringBuffer image;\nint jjimageLen;\nint lengthOfMatch;\nprotected char curChar;\npublic ParserTokenManager(CharStream stream)\n{\n   input_stream = stream;\n}\npublic ParserTokenManager(CharStream stream, int lexState)\n{\n   this(stream);\n   SwitchTo(lexState);\n}\npublic void ReInit(CharStream stream)\n{\n   jjmatchedPos = jjnewStateCnt = 0;\n   curLexState = defaultLexState;\n   input_stream = stream;\n   ReInitRounds();\n}\nprivate final void ReInitRounds()\n{\n   int i;\n   jjround = 0x80000001;\n   for (i = 42; i-- > 0;)\n      jjrounds[i] = 0x80000000;\n}\npublic void ReInit(CharStream stream, int lexState)\n{\n   ReInit(stream);\n   SwitchTo(lexState);\n}\npublic void SwitchTo(int lexState)\n{\n   if (lexState >= 9 || lexState < 0)\n      throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n   else\n      curLexState = lexState;\n}\n\nprivate final Token jjFillToken()\n{\n   Token t = Token.newToken(jjmatchedKind);\n   t.kind = jjmatchedKind;\n   String im = jjstrLiteralImages[jjmatchedKind];\n   t.image = (im == null) ? input_stream.GetImage() : im;\n   t.beginLine = input_stream.getBeginLine();\n   t.beginColumn = input_stream.getBeginColumn();\n   t.endLine = input_stream.getEndLine();\n   t.endColumn = input_stream.getEndColumn();\n   return t;\n}\n\nint curLexState = 3;\nint defaultLexState = 3;\nint jjnewStateCnt;\nint jjround;\nint jjmatchedPos;\nint jjmatchedKind;\n\npublic final Token getNextToken() \n{\n  int kind;\n  Token specialToken = null;\n  Token matchedToken;\n  int curPos = 0;\n\n  EOFLoop :\n  for (;;)\n  {   \n   try   \n   {     \n      curChar = input_stream.BeginToken();\n   }     \n   catch(java.io.IOException e)\n   {        \n      jjmatchedKind = 0;\n      matchedToken = jjFillToken();\n      matchedToken.specialToken = specialToken;\n      return matchedToken;\n   }\n   image = null;\n   jjimageLen = 0;\n\n   for (;;)\n   {\n     switch(curLexState)\n     {\n       case 0:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_0();\n         break;\n       case 1:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_1();\n         if (jjmatchedPos == 0 && jjmatchedKind > 60)\n         {\n            jjmatchedKind = 60;\n         }\n         break;\n       case 2:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_2();\n         if (jjmatchedPos == 0 && jjmatchedKind > 60)\n         {\n            jjmatchedKind = 60;\n         }\n         break;\n       case 3:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_3();\n         break;\n       case 4:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_4();\n         if (jjmatchedPos == 0 && jjmatchedKind > 61)\n         {\n            jjmatchedKind = 61;\n         }\n         break;\n       case 5:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_5();\n         if (jjmatchedPos == 0 && jjmatchedKind > 60)\n         {\n            jjmatchedKind = 60;\n         }\n         break;\n       case 6:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_6();\n         if (jjmatchedPos == 0 && jjmatchedKind > 22)\n         {\n            jjmatchedKind = 22;\n         }\n         break;\n       case 7:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_7();\n         if (jjmatchedPos == 0 && jjmatchedKind > 22)\n         {\n            jjmatchedKind = 22;\n         }\n         break;\n       case 8:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_8();\n         if (jjmatchedPos == 0 && jjmatchedKind > 22)\n         {\n            jjmatchedKind = 22;\n         }\n         break;\n     }\n     if (jjmatchedKind != 0x7fffffff)\n     {\n        if (jjmatchedPos + 1 < curPos)\n           input_stream.backup(curPos - jjmatchedPos - 1);\n        if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n        {\n           matchedToken = jjFillToken();\n           matchedToken.specialToken = specialToken;\n           TokenLexicalActions(matchedToken);\n       if (jjnewLexState[jjmatchedKind] != -1)\n         curLexState = jjnewLexState[jjmatchedKind];\n           return matchedToken;\n        }\n        else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n        {\n           if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n           {\n              matchedToken = jjFillToken();\n              if (specialToken == null)\n                 specialToken = matchedToken;\n              else\n              {\n                 matchedToken.specialToken = specialToken;\n                 specialToken = (specialToken.next = matchedToken);\n              }\n              SkipLexicalActions(matchedToken);\n           }\n           else \n              SkipLexicalActions(null);\n         if (jjnewLexState[jjmatchedKind] != -1)\n           curLexState = jjnewLexState[jjmatchedKind];\n           continue EOFLoop;\n        }\n        MoreLexicalActions();\n      if (jjnewLexState[jjmatchedKind] != -1)\n        curLexState = jjnewLexState[jjmatchedKind];\n        curPos = 0;\n        jjmatchedKind = 0x7fffffff;\n        try {\n           curChar = input_stream.readChar();\n           continue;\n        }\n        catch (java.io.IOException e1) { }\n     }\n     int error_line = input_stream.getEndLine();\n     int error_column = input_stream.getEndColumn();\n     String error_after = null;\n     boolean EOFSeen = false;\n     try { input_stream.readChar(); input_stream.backup(1); }\n     catch (java.io.IOException e1) {\n        EOFSeen = true;\n        error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n        if (curChar == '\\n' || curChar == '\\r') {\n           error_line++;\n           error_column = 0;\n        }\n        else\n           error_column++;\n     }\n     if (!EOFSeen) {\n        input_stream.backup(1);\n        error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n     }\n     throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n   }\n  }\n}\n\nfinal void SkipLexicalActions(Token matchedToken)\n{\n   switch(jjmatchedKind)\n   {\n      case 60 :\n         if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        /*\n         * push every terminator character back into the stream\n         */\n\n        input_stream.backup(1);\n\n        inReference = false;\n\n        if ( debugPrint )\n            System.out.print(\"REF_TERM :\");\n\n        stateStackPop();\n         break;\n      case 61 :\n         if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        if ( debugPrint )\n            System.out.print(\"DIRECTIVE_TERM :\");\n\n        input_stream.backup(1);\n        inDirective = false;\n        stateStackPop();\n         break;\n      default :\n         break;\n   }\n}\nfinal void MoreLexicalActions()\n{\n   jjimageLen += (lengthOfMatch = jjmatchedPos + 1);\n   switch(jjmatchedKind)\n   {\n      case 10 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        if (! inComment)\n        {\n            /*\n             * if we find ourselves in REFERENCE, we need to pop down\n             * to end the previous ref\n             */\n\n            if (curLexState == REFERENCE)\n            {\n                inReference = false;\n                stateStackPop();\n            }\n\n            inReference = true;\n\n            if ( debugPrint )\n                System.out.print( \"$  : going to \" + REFERENCE );\n\n            stateStackPush();\n            SwitchTo(REFERENCE);\n        }\n         break;\n      case 11 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        if (! inComment)\n        {\n            /*\n             * if we find ourselves in REFERENCE, we need to pop down\n             * to end the previous ref\n             */\n\n            if (curLexState == REFERENCE)\n            {\n                inReference = false;\n                stateStackPop();\n            }\n\n            inReference = true;\n\n            if ( debugPrint )\n                System.out.print( \"$!  : going to \" + REFERENCE );\n\n            stateStackPush();\n            SwitchTo(REFERENCE);\n        }\n         break;\n      case 12 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        if (!inComment)\n        {\n            if (curLexState == REFERENCE)\n            {\n                inReference = false;\n                stateStackPop();\n            }\n\n            inComment = true;\n            stateStackPush();\n            SwitchTo(IN_SINGLE_LINE_COMMENT);\n        }\n         break;\n      case 13 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        input_stream.backup(1);\n        inComment = true;\n        stateStackPush();\n        SwitchTo( IN_FORMAL_COMMENT);\n         break;\n      case 14 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        inComment=true;\n        stateStackPush();\n        SwitchTo( IN_MULTI_LINE_COMMENT );\n         break;\n      case 15 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        if (! inComment)\n        {\n            /*\n             * We can have the situation where #if($foo)$foo#end.\n             * We need to transition out of REFERENCE before going to DIRECTIVE.\n             * I don't really like this, but I can't think of a legal way\n             * you are going into DIRECTIVE while in REFERENCE.  -gmj\n             */\n\n            if (curLexState == REFERENCE || curLexState == REFMODIFIER )\n            {\n                inReference = false;\n                stateStackPop();\n            }\n\n            inDirective = true;\n\n            if ( debugPrint )\n                System.out.print(\"# :  going to \" + DIRECTIVE );\n\n            stateStackPush();\n            SwitchTo(PRE_DIRECTIVE);\n        }\n         break;\n      default : \n         break;\n   }\n}\nfinal void TokenLexicalActions(Token matchedToken)\n{\n   switch(jjmatchedKind)\n   {\n      case 5 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        if (!inComment)\n            lparen++;\n\n        /*\n         * If in REFERENCE and we have seen the dot, then move\n         * to REFMOD2 -> Modifier()\n         */\n\n        if (curLexState == REFMODIFIER )\n            SwitchTo( REFMOD2 );\n         break;\n      case 6 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n       RPARENHandler();\n         break;\n      case 7 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        /*\n         * need to simply switch back to REFERENCE, not drop down the stack\n         * because we can (infinitely) chain, ala\n         * $foo.bar().blargh().woogie().doogie()\n         */\n\n        SwitchTo( REFERENCE );\n         break;\n      case 9 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        if (! inComment)\n        {\n            inDirective = true;\n\n            if ( debugPrint )\n                System.out.print(\"#set :  going to \" + DIRECTIVE );\n\n            stateStackPush();\n            inSet = true;\n            SwitchTo(DIRECTIVE);\n        }\n\n        /*\n         *  need the LPAREN action\n         */\n\n        if (!inComment)\n        {\n            lparen++;\n\n            /*\n             * If in REFERENCE and we have seen the dot, then move\n             * to REFMOD2 -> Modifier()\n             */\n\n            if (curLexState == REFMODIFIER )\n                SwitchTo( REFMOD2 );\n        }\n         break;\n      case 19 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n     inComment = false;\n     stateStackPop();\n         break;\n      case 20 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n    inComment = false;\n    stateStackPop();\n         break;\n      case 21 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n    inComment = false;\n    stateStackPop();\n         break;\n      case 24 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        /*\n         *  - if we are in DIRECTIVE and haven't seen ( yet, then also drop out.\n         *      don't forget to account for the beloved yet wierd #set\n         *  - finally, if we are in REFMOD2 (remember : $foo.bar( ) then \" is ok!\n         */\n\n         if( curLexState == DIRECTIVE && !inSet && lparen == 0)\n            stateStackPop();\n         break;\n      case 27 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        if ( debugPrint )\n            System.out.println(\" NEWLINE :\");\n\n        stateStackPop();\n\n        if (inSet)\n            inSet = false;\n\n        if (inDirective)\n            inDirective = false;\n         break;\n      case 43 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        inDirective = false;\n        stateStackPop();\n         break;\n      case 44 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        SwitchTo(DIRECTIVE);\n         break;\n      case 45 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        SwitchTo(DIRECTIVE);\n         break;\n      case 46 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        inDirective = false;\n        stateStackPop();\n         break;\n      case 47 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        matchedToken.kind = EOF;\n        fileDepth = 0;\n         break;\n      case 49 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        /*\n         * check to see if we are in set\n         *    ex.  #set $foo = $foo + 3\n         *  because we want to handle the \\n after\n         */\n\n        if ( lparen == 0 && !inSet && curLexState != REFMOD2)\n        {\n            stateStackPop();\n        }\n         break;\n      case 57 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        /*\n         * push the alpha char back into the stream so the following identifier\n         * is complete\n         */\n\n        input_stream.backup(1);\n\n        /*\n         * and munge the <DOT> so we just get a . when we have normal text that\n         * looks like a ref.ident\n         */\n\n        matchedToken.image = \".\";\n\n        if ( debugPrint )\n            System.out.print(\"DOT : switching to \" + REFMODIFIER);\n        SwitchTo(REFMODIFIER);\n         break;\n      case 59 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        stateStackPop();\n         break;\n      default : \n         break;", "functions": [{"function_name": "stateStackPop", "code": "    public boolean stateStackPop()\n    {\n        Hashtable h;\n\n        try\n        {\n            h = (Hashtable) stateStack.pop();\n        }\n        catch( EmptyStackException e)\n        {\n            lparen=0;\n            SwitchTo(DEFAULT);\n            return false;\n        }\n\n        if( debugPrint )\n            System.out.println(\n                \" stack pop (\" + stateStack.size() + \") : lparen=\" +\n                    ( (Integer) h.get(\"lparen\")).intValue() +\n                        \" newstate=\" + ( (Integer) h.get(\"lexstate\")).intValue() );\n\n        lparen = ( (Integer) h.get(\"lparen\")).intValue();\n        rparen = ( (Integer) h.get(\"rparen\")).intValue();\n\n        SwitchTo( ( (Integer) h.get(\"lexstate\")).intValue() );\n\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CATCH", "CALL", "RETURN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [3, 9], [2, 10], [9, 11], [3, 12], [6, 13], [7, 14], [8, 15], [10, 16], [11, 17], [9, 18], [9, 19], [13, 20], [14, 21], [15, 22], [16, 23], [19, 24], [12, 25], [16, 26], [23, 27], [23, 28], [26, 29], [28, 30], [28, 31], [30, 32], [30, 33], [31, 34], [33, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 3], [10, 2], [11, 9], [12, 3], [13, 6], [14, 7], [15, 8], [16, 10], [17, 11], [18, 9], [19, 9], [20, 13], [21, 14], [22, 15], [23, 16], [24, 19], [25, 12], [26, 16], [27, 23], [28, 23], [29, 26], [30, 28], [31, 28], [32, 30], [33, 30], [34, 31], [35, 33], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "stateStackPush", "code": "    public boolean stateStackPush()\n    {\n        if( debugPrint )\n            System.out.println(\" (\" + stateStack.size() + \") pushing cur state : \" +\n                curLexState );\n\n        Hashtable h = new Hashtable();\n\n        h.put(\"lexstate\", new Integer( curLexState ) );\n        h.put(\"lparen\", new Integer( lparen ));\n        h.put(\"rparen\", new Integer( rparen ));\n\n        lparen = 0;\n\n        stateStack.push( h );\n\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [7, 12], [8, 13], [8, 14], [9, 15], [9, 16], [2, 17], [3, 18], [18, 19], [19, 20], [20, 21], [20, 22], [22, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 7], [13, 8], [14, 8], [15, 9], [16, 9], [17, 2], [18, 3], [19, 18], [20, 19], [21, 20], [22, 20], [23, 22], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "clearStateVars", "code": "    public void clearStateVars()\n    {\n        stateStack.clear();\n\n        lparen = 0;\n        rparen = 0;\n        inReference = false;\n        inDirective = false;\n        inComment = false;\n        inSet = false;\n\n        return;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [5, 12], [6, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 5], [13, 6], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "RPARENHandler", "code": "    private void RPARENHandler()\n    {\n        /*\n         *  Ultimately, we want to drop down to the state below\n         *  the one that has an open (if we hit bottom (DEFAULT),\n         *  that's fine. It's just text schmoo.\n         */\n\n        boolean closed = false;\n\n        if (inComment)\n            closed = true;\n\n        while( !closed )\n        {\n            /*\n             * look at current state.  If we haven't seen a lparen\n             * in this state then we drop a state, because this\n             * lparen clearly closes our state\n             */\n\n            if( lparen > 0)\n            {\n                /*\n                 *  if rparen + 1 == lparen, then this state is closed.\n                 * Otherwise, increment and keep parsing\n                 */\n\n                 if( lparen == rparen + 1)\n                 {\n                       stateStackPop();\n                 }\n                else\n                {\n                    rparen++;\n                }\n\n                 closed = true;\n            }\n            else\n            {\n                /*\n                 * now, drop a state\n                 */\n\n                if(!stateStackPop())\n                    break;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [5, 8], [4, 9], [4, 10], [7, 11], [9, 12], [9, 13], [4, 14], [10, 15], [14, 16], [15, 17], [10, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 4], [8, 5], [9, 4], [10, 4], [11, 7], [12, 9], [13, 9], [14, 4], [15, 10], [16, 14], [17, 15], [18, 10], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setDebugStream", "code": "  public  void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "jjStopStringLiteralDfa_0", "code": "private final int jjStopStringLiteralDfa_0(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            return 33;\n         }\n         if ((active0 & 0x10000000L) != 0L)\n            return 31;\n         if ((active0 & 0xd000L) != 0L)\n            return 7;\n         return -1;\n      case 1:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 1;\n            return 33;\n         }\n         if ((active0 & 0x4000L) != 0L)\n            return 5;\n         return -1;\n      case 2:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 2;\n            return 33;\n         }\n         return -1;\n      case 3:\n         if ((active0 & 0x4000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 3;\n            return 33;\n         }\n         if ((active0 & 0x2000000L) != 0L)\n            return 33;\n         return -1;\n      default :\n         return -1;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [4, 21], [5, 22], [6, 23], [6, 24], [7, 25], [9, 26], [10, 27], [12, 28], [13, 29], [13, 30], [14, 31], [16, 32], [17, 33], [17, 34], [18, 35], [18, 36], [19, 37], [23, 38], [24, 39], [24, 40], [7, 41], [25, 42], [25, 43], [10, 44], [27, 45], [27, 46], [29, 47], [30, 48], [30, 49], [14, 50], [31, 51], [31, 52], [33, 53], [34, 54], [34, 55], [35, 56], [36, 57], [36, 58], [19, 59], [37, 60], [37, 61], [40, 62], [41, 63], [7, 64], [7, 65], [43, 66], [44, 67], [10, 68], [10, 69], [46, 70], [49, 71], [50, 72], [14, 73], [14, 74], [52, 75], [55, 76], [58, 77], [59, 78], [19, 79], [61, 80], [64, 81], [65, 82], [68, 83], [69, 84], [73, 85], [74, 86], [79, 87], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 4], [22, 5], [23, 6], [24, 6], [25, 7], [26, 9], [27, 10], [28, 12], [29, 13], [30, 13], [31, 14], [32, 16], [33, 17], [34, 17], [35, 18], [36, 18], [37, 19], [38, 23], [39, 24], [40, 24], [41, 7], [42, 25], [43, 25], [44, 10], [45, 27], [46, 27], [47, 29], [48, 30], [49, 30], [50, 14], [51, 31], [52, 31], [53, 33], [54, 34], [55, 34], [56, 35], [57, 36], [58, 36], [59, 19], [60, 37], [61, 37], [62, 40], [63, 41], [64, 7], [65, 7], [66, 43], [67, 44], [68, 10], [69, 10], [70, 46], [71, 49], [72, 50], [73, 14], [74, 14], [75, 52], [76, 55], [77, 58], [78, 59], [79, 19], [80, 61], [81, 64], [82, 65], [83, 68], [84, 69], [85, 73], [86, 74], [87, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}, {"function_name": "jjStartNfa_0", "code": "private final int jjStartNfa_0(int pos, long active0)\n{\n   return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStopAtPos", "code": "private final int jjStopAtPos(int pos, int kind)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   return pos + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStartNfaWithStates_0", "code": "private final int jjStartNfaWithStates_0(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_0(state, pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jjMoveStringLiteralDfa0_0", "code": "private final int jjMoveStringLiteralDfa0_0()\n{\n   switch(curChar)\n   {\n      case 33:\n         jjmatchedKind = 41;\n         return jjMoveStringLiteralDfa1_0(0x10000000000L);\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_0(0x5000L);\n      case 37:\n         return jjStopAtPos(0, 32);\n      case 38:\n         return jjMoveStringLiteralDfa1_0(0x200000000L);\n      case 40:\n         return jjStopAtPos(0, 5);\n      case 42:\n         return jjStopAtPos(0, 30);\n      case 43:\n         return jjStopAtPos(0, 29);\n      case 44:\n         return jjStopAtPos(0, 3);\n      case 45:\n         return jjStartNfaWithStates_0(0, 28, 31);\n      case 46:\n         return jjMoveStringLiteralDfa1_0(0x10L);\n      case 47:\n         return jjStopAtPos(0, 31);\n      case 60:\n         jjmatchedKind = 35;\n         return jjMoveStringLiteralDfa1_0(0x1000000000L);\n      case 61:\n         jjmatchedKind = 42;\n         return jjMoveStringLiteralDfa1_0(0x8000000000L);\n      case 62:\n         jjmatchedKind = 37;\n         return jjMoveStringLiteralDfa1_0(0x4000000000L);\n      case 91:\n         return jjStopAtPos(0, 1);\n      case 93:\n         return jjStopAtPos(0, 2);\n      case 102:\n         return jjMoveStringLiteralDfa1_0(0x4000000L);\n      case 116:\n         return jjMoveStringLiteralDfa1_0(0x2000000L);\n      case 124:\n         return jjMoveStringLiteralDfa1_0(0x400000000L);\n      default :\n         return jjMoveNfa_0(0, 0);", "ast_nodes": ["FUNC_DECL", "SWITCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [2, 41], [3, 42], [5, 43], [7, 44], [9, 45], [11, 46], [13, 47], [1, 48], [15, 49], [1, 50], [17, 51], [1, 52], [19, 53], [21, 54], [23, 55], [25, 56], [27, 57], [29, 58], [31, 59], [33, 60], [35, 61], [37, 62], [1, 63], [39, 64], [1, 65], [41, 66], [41, 67], [42, 68], [43, 69], [44, 70], [45, 71], [45, 72], [46, 73], [46, 74], [47, 75], [48, 76], [49, 77], [50, 78], [51, 79], [52, 80], [53, 81], [53, 82], [54, 83], [55, 84], [55, 85], [55, 86], [56, 87], [56, 88], [57, 89], [57, 90], [58, 91], [58, 92], [59, 93], [59, 94], [60, 95], [61, 96], [61, 97], [62, 98], [63, 99], [64, 100], [65, 101], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 2], [42, 3], [43, 5], [44, 7], [45, 9], [46, 11], [47, 13], [48, 1], [49, 15], [50, 1], [51, 17], [52, 1], [53, 19], [54, 21], [55, 23], [56, 25], [57, 27], [58, 29], [59, 31], [60, 33], [61, 35], [62, 37], [63, 1], [64, 39], [65, 1], [66, 41], [67, 41], [68, 42], [69, 43], [70, 44], [71, 45], [72, 45], [73, 46], [74, 46], [75, 47], [76, 48], [77, 49], [78, 50], [79, 51], [80, 52], [81, 53], [82, 53], [83, 54], [84, 55], [85, 55], [86, 55], [87, 56], [88, 56], [89, 57], [90, 57], [91, 58], [92, 58], [93, 59], [94, 59], [95, 60], [96, 61], [97, 61], [98, 62], [99, 63], [100, 64], [101, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101]]}, {"function_name": "jjMoveStringLiteralDfa1_0", "code": "private final int jjMoveStringLiteralDfa1_0(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 38:\n         if ((active0 & 0x200000000L) != 0L)\n            return jjStopAtPos(1, 33);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_0(1, 14, 5);\n         break;\n      case 46:\n         if ((active0 & 0x10L) != 0L)\n            return jjStopAtPos(1, 4);\n         break;\n      case 61:\n         if ((active0 & 0x1000000000L) != 0L)\n            return jjStopAtPos(1, 36);\n         else if ((active0 & 0x4000000000L) != 0L)\n            return jjStopAtPos(1, 38);\n         else if ((active0 & 0x8000000000L) != 0L)\n            return jjStopAtPos(1, 39);\n         else if ((active0 & 0x10000000000L) != 0L)\n            return jjStopAtPos(1, 40);\n         break;\n      case 97:\n         return jjMoveStringLiteralDfa2_0(active0, 0x4000000L);\n      case 114:\n         return jjMoveStringLiteralDfa2_0(active0, 0x2000000L);\n      case 124:\n         if ((active0 & 0x400000000L) != 0L)\n            return jjStopAtPos(1, 34);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(0, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "PARAM", "CALL", "CATCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [6, 31], [3, 32], [10, 33], [10, 34], [12, 35], [14, 36], [17, 37], [17, 38], [17, 39], [20, 40], [20, 41], [23, 42], [23, 43], [26, 44], [26, 45], [29, 46], [29, 47], [31, 48], [6, 49], [32, 50], [33, 51], [34, 52], [34, 53], [35, 54], [36, 55], [37, 56], [37, 57], [37, 58], [38, 59], [39, 60], [39, 61], [40, 62], [41, 63], [41, 64], [42, 65], [43, 66], [43, 67], [44, 68], [45, 69], [45, 70], [46, 71], [47, 72], [47, 73], [49, 74], [51, 75], [51, 76], [53, 77], [56, 78], [56, 79], [56, 80], [57, 81], [58, 82], [58, 83], [59, 84], [59, 85], [61, 86], [62, 87], [62, 88], [64, 89], [65, 90], [65, 91], [65, 92], [67, 93], [68, 94], [68, 95], [70, 96], [71, 97], [71, 98], [73, 99], [78, 100], [78, 101], [79, 102], [80, 103], [80, 104], [81, 105], [81, 106], [83, 107], [100, 108], [101, 109], [101, 110], [102, 111], [102, 112], [104, 113], [108, 114], [108, 115], [110, 116], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 6], [32, 3], [33, 10], [34, 10], [35, 12], [36, 14], [37, 17], [38, 17], [39, 17], [40, 20], [41, 20], [42, 23], [43, 23], [44, 26], [45, 26], [46, 29], [47, 29], [48, 31], [49, 6], [50, 32], [51, 33], [52, 34], [53, 34], [54, 35], [55, 36], [56, 37], [57, 37], [58, 37], [59, 38], [60, 39], [61, 39], [62, 40], [63, 41], [64, 41], [65, 42], [66, 43], [67, 43], [68, 44], [69, 45], [70, 45], [71, 46], [72, 47], [73, 47], [74, 49], [75, 51], [76, 51], [77, 53], [78, 56], [79, 56], [80, 56], [81, 57], [82, 58], [83, 58], [84, 59], [85, 59], [86, 61], [87, 62], [88, 62], [89, 64], [90, 65], [91, 65], [92, 65], [93, 67], [94, 68], [95, 68], [96, 70], [97, 71], [98, 71], [99, 73], [100, 78], [101, 78], [102, 79], [103, 80], [104, 80], [105, 81], [106, 81], [107, 83], [108, 100], [109, 101], [110, 101], [111, 102], [112, 102], [113, 104], [114, 108], [115, 108], [116, 110], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116]]}, {"function_name": "jjMoveStringLiteralDfa2_0", "code": "private final int jjMoveStringLiteralDfa2_0(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_0(0, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(1, active0);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 108:\n         return jjMoveStringLiteralDfa3_0(active0, 0x4000000L);\n      case 117:\n         return jjMoveStringLiteralDfa3_0(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(1, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [8, 17], [3, 18], [9, 19], [10, 20], [10, 21], [13, 22], [15, 23], [17, 24], [8, 25], [18, 26], [19, 27], [22, 28], [23, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 8], [18, 3], [19, 9], [20, 10], [21, 10], [22, 13], [23, 15], [24, 17], [25, 8], [26, 18], [27, 19], [28, 22], [29, 23], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "jjMoveStringLiteralDfa3_0", "code": "private final int jjMoveStringLiteralDfa3_0(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_0(1, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(2, active0);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x2000000L) != 0L)\n            return jjStartNfaWithStates_0(3, 25, 33);\n         break;\n      case 115:\n         return jjMoveStringLiteralDfa4_0(active0, 0x4000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_0(2, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [8, 18], [3, 19], [9, 20], [10, 21], [10, 22], [13, 23], [16, 24], [16, 25], [18, 26], [8, 27], [19, 28], [20, 29], [23, 30], [24, 31], [25, 32], [25, 33], [27, 34], [31, 35], [31, 36], [31, 37], [33, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 8], [19, 3], [20, 9], [21, 10], [22, 10], [23, 13], [24, 16], [25, 16], [26, 18], [27, 8], [28, 19], [29, 20], [30, 23], [31, 24], [32, 25], [33, 25], [34, 27], [35, 31], [36, 31], [37, 31], [38, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "jjMoveStringLiteralDfa4_0", "code": "private final int jjMoveStringLiteralDfa4_0(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_0(2, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_0(3, active0);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x4000000L) != 0L)\n            return jjStartNfaWithStates_0(4, 26, 33);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_0(3, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [14, 22], [16, 23], [8, 24], [17, 25], [18, 26], [21, 27], [22, 28], [22, 29], [24, 30], [27, 31], [27, 32], [27, 33], [29, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 14], [23, 16], [24, 8], [25, 17], [26, 18], [27, 21], [28, 22], [29, 22], [30, 24], [31, 27], [32, 27], [33, 27], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "jjCheckNAdd", "code": "private final void jjCheckNAdd(int state)\n{\n   if (jjrounds[state] != jjround)\n   {\n      jjstateSet[jjnewStateCnt++] = state;\n      jjrounds[state] = jjround;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "jjAddStates", "code": "private final void jjAddStates(int start, int end)\n{\n   do {\n      jjstateSet[jjnewStateCnt++] = jjnextStates[start];\n   } while (start++ != end);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "jjCheckNAddTwoStates", "code": "private final void jjCheckNAddTwoStates(int state1, int state2)\n{\n   jjCheckNAdd(state1);\n   jjCheckNAdd(state2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "jjCheckNAddStates", "code": "private final void jjCheckNAddStates(int start, int end)\n{\n   do {\n      jjCheckNAdd(jjnextStates[start]);\n   } while (start++ != end);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "jjCheckNAddStates", "code": "private final void jjCheckNAddStates(int start)\n{\n   jjCheckNAdd(jjnextStates[start]);\n   jjCheckNAdd(jjnextStates[start + 1]);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "jjMoveNfa_0", "code": "private final int jjMoveNfa_0(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 42;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 0:\n                  if ((0x3ff000000000000L & l) != 0L)\n                  {\n                     if (kind > 49)\n                        kind = 49;\n                     jjCheckNAdd(31);\n                  }\n                  else if ((0x2400L & l) != 0L)\n                  {\n                     if (kind > 27)\n                        kind = 27;\n                  }\n                  else if ((0x100000200L & l) != 0L)\n                  {\n                     if (kind > 23)\n                        kind = 23;\n                     jjCheckNAdd(9);\n                  }\n                  else if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(39, 40);\n                  }\n                  else if (curChar == 45)\n                     jjCheckNAdd(31);\n                  else if (curChar == 39)\n                     jjCheckNAddStates(0, 2);\n                  else if (curChar == 34)\n                     jjCheckNAddStates(3, 5);\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  else if (curChar == 41)\n                  {\n                     if (kind > 6)\n                        kind = 6;\n                     jjCheckNAddStates(6, 8);\n                  }\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 28;\n                  break;\n               case 1:\n                  if ((0x100000200L & l) != 0L)\n                     jjCheckNAddStates(6, 8);\n                  break;\n               case 2:\n                  if ((0x2400L & l) != 0L && kind > 6)\n                     kind = 6;\n                  break;\n               case 3:\n                  if (curChar == 10 && kind > 6)\n                     kind = 6;\n                  break;\n               case 4:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 3;\n                  break;\n               case 5:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 6;\n                  break;\n               case 6:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 7:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 5;\n                  break;\n               case 8:\n                  if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  break;\n               case 9:\n                  if ((0x100000200L & l) == 0L)\n                     break;\n                  if (kind > 23)\n                     kind = 23;\n                  jjCheckNAdd(9);\n                  break;\n               case 10:\n                  if (curChar == 34)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 11:\n                  if ((0xfffffffbffffdbffL & l) != 0L)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 12:\n                  if (curChar == 34 && kind > 24)\n                     kind = 24;\n                  break;\n               case 14:\n                  if ((0x8400000000L & l) != 0L)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 15:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(9, 12);\n                  break;\n               case 16:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 17:\n                  if ((0xf000000000000L & l) != 0L)\n                     jjstateSet[jjnewStateCnt++] = 18;\n                  break;\n               case 18:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAdd(16);\n                  break;\n               case 19:\n                  if (curChar == 32)\n                     jjAddStates(13, 14);\n                  break;\n               case 20:\n                  if (curChar == 10)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 21:\n                  if (curChar == 39)\n                     jjCheckNAddStates(0, 2);\n                  break;\n               case 22:\n                  if ((0xffffff7fffffdbffL & l) != 0L)\n                     jjCheckNAddStates(0, 2);\n                  break;\n               case 24:\n                  if (curChar == 32)\n                     jjAddStates(15, 16);\n                  break;\n               case 25:\n                  if (curChar == 10)\n                     jjCheckNAddStates(0, 2);\n                  break;\n               case 26:\n                  if (curChar == 39 && kind > 24)\n                     kind = 24;\n                  break;\n               case 27:\n                  if ((0x2400L & l) != 0L && kind > 27)\n                     kind = 27;\n                  break;\n               case 28:\n                  if (curChar == 10 && kind > 27)\n                     kind = 27;\n                  break;\n               case 29:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 28;\n                  break;\n               case 30:\n                  if (curChar == 45)\n                     jjCheckNAdd(31);\n                  break;\n               case 31:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 49)\n                     kind = 49;\n                  jjCheckNAdd(31);\n                  break;\n               case 33:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjstateSet[jjnewStateCnt++] = 33;\n                  break;\n               case 36:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 38:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(39, 40);\n                  break;\n               case 40:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 41:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(39, 40);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 0:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(33);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(17, 20);\n                  break;\n               case 6:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 11:\n                  if ((0xffffffffefffffffL & l) != 0L)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 13:\n                  if (curChar == 92)\n                     jjAddStates(21, 25);\n                  break;\n               case 14:\n                  if ((0x14404410000000L & l) != 0L)\n                     jjCheckNAddStates(3, 5);\n                  break;\n               case 22:\n                  jjAddStates(0, 2);\n                  break;\n               case 23:\n                  if (curChar == 92)\n                     jjAddStates(15, 16);\n                  break;\n               case 32:\n               case 33:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(33);\n                  break;\n               case 34:\n                  if (curChar == 92)\n                     jjCheckNAddStates(17, 20);\n                  break;\n               case 35:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(35, 36);\n                  break;\n               case 37:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(37, 38);\n                  break;\n               case 39:\n                  if (curChar == 92)\n                     jjAddStates(26, 27);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 6:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               case 11:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     jjAddStates(3, 5);\n                  break;\n               case 22:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     jjAddStates(0, 2);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 42 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "TRY", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [9, 17], [4, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [19, 26], [10, 27], [21, 28], [21, 29], [22, 30], [23, 31], [13, 32], [13, 33], [24, 34], [14, 35], [25, 36], [8, 37], [27, 38], [28, 39], [12, 40], [12, 41], [12, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [31, 51], [32, 52], [39, 53], [39, 54], [40, 55], [43, 56], [49, 57], [32, 58], [33, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [49, 65], [50, 66], [59, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [63, 73], [64, 74], [48, 75], [66, 76], [66, 77], [58, 78], [58, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [58, 92], [58, 93], [58, 94], [58, 95], [58, 96], [58, 97], [58, 98], [58, 99], [58, 100], [58, 101], [58, 102], [58, 103], [58, 104], [58, 105], [58, 106], [58, 107], [58, 108], [58, 109], [58, 110], [58, 111], [58, 112], [58, 113], [58, 114], [58, 115], [58, 116], [58, 117], [58, 118], [58, 119], [58, 120], [58, 121], [58, 122], [58, 123], [58, 124], [58, 125], [58, 126], [58, 127], [58, 128], [58, 129], [58, 130], [58, 131], [58, 132], [58, 133], [58, 134], [58, 135], [58, 136], [58, 137], [58, 138], [58, 139], [58, 140], [58, 141], [58, 142], [58, 143], [58, 144], [58, 145], [58, 146], [58, 147], [58, 148], [58, 149], [58, 150], [58, 151], [58, 152], [58, 153], [58, 154], [58, 155], [58, 156], [58, 157], [58, 158], [58, 159], [58, 160], [58, 161], [58, 162], [58, 163], [58, 164], [58, 165], [58, 166], [58, 167], [58, 168], [58, 169], [58, 170], [58, 171], [58, 172], [58, 173], [58, 174], [58, 175], [58, 176], [58, 177], [58, 178], [58, 179], [58, 180], [58, 181], [58, 182], [58, 183], [58, 184], [58, 185], [58, 186], [58, 187], [58, 188], [60, 189], [60, 190], [60, 191], [60, 192], [60, 193], [60, 194], [60, 195], [60, 196], [60, 197], [60, 198], [68, 199], [71, 200], [72, 201], [75, 202], [65, 203], [65, 204], [65, 205], [65, 206], [65, 207], [65, 208], [65, 209], [65, 210], [65, 211], [65, 212], [65, 213], [65, 214], [65, 215], [65, 216], [65, 217], [65, 218], [65, 219], [65, 220], [65, 221], [65, 222], [65, 223], [65, 224], [65, 225], [65, 226], [65, 227], [65, 228], [65, 229], [65, 230], [65, 231], [65, 232], [65, 233], [65, 234], [65, 235], [65, 236], [65, 237], [65, 238], [65, 239], [65, 240], [76, 241], [58, 242], [80, 243], [81, 244], [81, 245], [84, 246], [87, 247], [90, 248], [58, 249], [93, 250], [94, 251], [94, 252], [58, 253], [97, 254], [98, 255], [98, 256], [101, 257], [104, 258], [107, 259], [110, 260], [113, 261], [116, 262], [119, 263], [122, 264], [125, 265], [128, 266], [131, 267], [134, 268], [137, 269], [140, 270], [143, 271], [146, 272], [149, 273], [152, 274], [155, 275], [58, 276], [158, 277], [159, 278], [159, 279], [162, 280], [165, 281], [168, 282], [171, 283], [174, 284], [177, 285], [180, 286], [183, 287], [186, 288], [187, 289], [187, 290], [191, 291], [194, 292], [197, 293], [205, 294], [208, 295], [211, 296], [214, 297], [65, 298], [217, 299], [218, 300], [218, 301], [222, 302], [65, 303], [227, 304], [230, 305], [233, 306], [236, 307], [239, 308], [239, 309], [242, 310], [242, 311], [80, 312], [243, 313], [245, 314], [84, 315], [246, 316], [246, 317], [87, 318], [247, 319], [90, 320], [248, 321], [248, 322], [249, 323], [93, 324], [250, 325], [252, 326], [252, 327], [253, 328], [97, 329], [254, 330], [256, 331], [256, 332], [101, 333], [257, 334], [104, 335], [258, 336], [107, 337], [259, 338], [259, 339], [110, 340], [260, 341], [260, 342], [113, 343], [261, 344], [261, 345], [116, 346], [262, 347], [119, 348], [263, 349], [122, 350], [264, 351], [264, 352], [125, 353], [265, 354], [128, 355], [266, 356], [131, 357], [267, 358], [134, 359], [268, 360], [268, 361], [137, 362], [269, 363], [269, 364], [140, 365], [270, 366], [270, 367], [143, 368], [271, 369], [271, 370], [146, 371], [272, 372], [272, 373], [149, 374], [273, 375], [273, 376], [152, 377], [274, 378], [274, 379], [155, 380], [275, 381], [276, 382], [158, 383], [277, 384], [279, 385], [279, 386], [162, 387], [280, 388], [165, 389], [281, 390], [168, 391], [282, 392], [282, 393], [171, 394], [283, 395], [174, 396], [284, 397], [177, 398], [285, 399], [285, 400], [180, 401], [286, 402], [286, 403], [183, 404], [287, 405], [287, 406], [186, 407], [288, 408], [289, 409], [289, 410], [187, 411], [290, 412], [290, 413], [191, 414], [194, 415], [197, 416], [293, 417], [293, 418], [205, 419], [294, 420], [208, 421], [295, 422], [211, 423], [296, 424], [214, 425], [297, 426], [298, 427], [217, 428], [299, 429], [301, 430], [301, 431], [222, 432], [302, 433], [303, 434], [303, 435], [227, 436], [304, 437], [304, 438], [230, 439], [305, 440], [233, 441], [306, 442], [306, 443], [236, 444], [307, 445], [308, 446], [239, 447], [309, 448], [309, 449], [312, 450], [315, 451], [316, 452], [317, 453], [318, 454], [318, 455], [320, 456], [321, 457], [322, 458], [324, 459], [327, 460], [329, 461], [332, 462], [333, 463], [335, 464], [337, 465], [338, 466], [339, 467], [340, 468], [341, 469], [342, 470], [342, 471], [343, 472], [344, 473], [345, 474], [346, 475], [346, 476], [348, 477], [348, 478], [350, 479], [350, 480], [352, 481], [353, 482], [353, 483], [355, 484], [355, 485], [357, 486], [357, 487], [359, 488], [361, 489], [362, 490], [364, 491], [365, 492], [365, 493], [367, 494], [368, 495], [368, 496], [370, 497], [371, 498], [371, 499], [373, 500], [374, 501], [375, 502], [376, 503], [377, 504], [377, 505], [379, 506], [380, 507], [380, 508], [383, 509], [386, 510], [387, 511], [389, 512], [391, 513], [392, 514], [393, 515], [393, 516], [394, 517], [396, 518], [398, 519], [399, 520], [400, 521], [401, 522], [402, 523], [403, 524], [403, 525], [404, 526], [404, 527], [406, 528], [407, 529], [409, 530], [409, 531], [289, 532], [410, 533], [410, 534], [187, 535], [411, 536], [413, 537], [414, 538], [414, 539], [415, 540], [415, 541], [416, 542], [417, 543], [419, 544], [419, 545], [421, 546], [421, 547], [423, 548], [423, 549], [425, 550], [425, 551], [428, 552], [431, 553], [432, 554], [432, 555], [436, 556], [436, 557], [438, 558], [439, 559], [439, 560], [441, 561], [441, 562], [443, 563], [444, 564], [308, 565], [446, 566], [239, 567], [447, 568], [449, 569], [471, 570], [516, 571], [525, 572], [530, 573], [530, 574], [409, 575], [531, 576], [531, 577], [532, 578], [534, 579], [535, 580], [411, 581], [536, 582], [565, 583], [565, 584], [567, 585], [447, 586], [568, 587], [573, 588], [573, 589], [530, 590], [574, 591], [409, 592], [575, 593], [577, 594], [532, 595], [578, 596], [581, 597], [586, 598], [588, 599], [588, 600], [573, 601], [589, 602], [530, 603], [590, 604], [592, 605], [575, 606], [593, 607], [595, 608], [599, 609], [599, 610], [588, 611], [600, 612], [601, 613], [603, 614], [603, 615], [590, 616], [604, 617], [606, 618], [609, 619], [609, 620], [599, 621], [610, 622], [611, 623], [611, 624], [616, 625], [619, 626], [609, 627], [620, 628], [621, 629], [621, 630], [619, 631], [626, 632], [627, 633], [619, 634], [631, 635], [634, 636], [634, 637], [631, 638], [635, 639], [638, 640], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 9], [18, 4], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 19], [27, 10], [28, 21], [29, 21], [30, 22], [31, 23], [32, 13], [33, 13], [34, 24], [35, 14], [36, 25], [37, 8], [38, 27], [39, 28], [40, 12], [41, 12], [42, 12], [43, 23], [44, 23], [45, 23], [46, 23], [47, 23], [48, 23], [49, 23], [50, 23], [51, 31], [52, 32], [53, 39], [54, 39], [55, 40], [56, 43], [57, 49], [58, 32], [59, 33], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 49], [66, 50], [67, 59], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 63], [74, 64], [75, 48], [76, 66], [77, 66], [78, 58], [79, 58], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 58], [93, 58], [94, 58], [95, 58], [96, 58], [97, 58], [98, 58], [99, 58], [100, 58], [101, 58], [102, 58], [103, 58], [104, 58], [105, 58], [106, 58], [107, 58], [108, 58], [109, 58], [110, 58], [111, 58], [112, 58], [113, 58], [114, 58], [115, 58], [116, 58], [117, 58], [118, 58], [119, 58], [120, 58], [121, 58], [122, 58], [123, 58], [124, 58], [125, 58], [126, 58], [127, 58], [128, 58], [129, 58], [130, 58], [131, 58], [132, 58], [133, 58], [134, 58], [135, 58], [136, 58], [137, 58], [138, 58], [139, 58], [140, 58], [141, 58], [142, 58], [143, 58], [144, 58], [145, 58], [146, 58], [147, 58], [148, 58], [149, 58], [150, 58], [151, 58], [152, 58], [153, 58], [154, 58], [155, 58], [156, 58], [157, 58], [158, 58], [159, 58], [160, 58], [161, 58], [162, 58], [163, 58], [164, 58], [165, 58], [166, 58], [167, 58], [168, 58], [169, 58], [170, 58], [171, 58], [172, 58], [173, 58], [174, 58], [175, 58], [176, 58], [177, 58], [178, 58], [179, 58], [180, 58], [181, 58], [182, 58], [183, 58], [184, 58], [185, 58], [186, 58], [187, 58], [188, 58], [189, 60], [190, 60], [191, 60], [192, 60], [193, 60], [194, 60], [195, 60], [196, 60], [197, 60], [198, 60], [199, 68], [200, 71], [201, 72], [202, 75], [203, 65], [204, 65], [205, 65], [206, 65], [207, 65], [208, 65], [209, 65], [210, 65], [211, 65], [212, 65], [213, 65], [214, 65], [215, 65], [216, 65], [217, 65], [218, 65], [219, 65], [220, 65], [221, 65], [222, 65], [223, 65], [224, 65], [225, 65], [226, 65], [227, 65], [228, 65], [229, 65], [230, 65], [231, 65], [232, 65], [233, 65], [234, 65], [235, 65], [236, 65], [237, 65], [238, 65], [239, 65], [240, 65], [241, 76], [242, 58], [243, 80], [244, 81], [245, 81], [246, 84], [247, 87], [248, 90], [249, 58], [250, 93], [251, 94], [252, 94], [253, 58], [254, 97], [255, 98], [256, 98], [257, 101], [258, 104], [259, 107], [260, 110], [261, 113], [262, 116], [263, 119], [264, 122], [265, 125], [266, 128], [267, 131], [268, 134], [269, 137], [270, 140], [271, 143], [272, 146], [273, 149], [274, 152], [275, 155], [276, 58], [277, 158], [278, 159], [279, 159], [280, 162], [281, 165], [282, 168], [283, 171], [284, 174], [285, 177], [286, 180], [287, 183], [288, 186], [289, 187], [290, 187], [291, 191], [292, 194], [293, 197], [294, 205], [295, 208], [296, 211], [297, 214], [298, 65], [299, 217], [300, 218], [301, 218], [302, 222], [303, 65], [304, 227], [305, 230], [306, 233], [307, 236], [308, 239], [309, 239], [310, 242], [311, 242], [312, 80], [313, 243], [314, 245], [315, 84], [316, 246], [317, 246], [318, 87], [319, 247], [320, 90], [321, 248], [322, 248], [323, 249], [324, 93], [325, 250], [326, 252], [327, 252], [328, 253], [329, 97], [330, 254], [331, 256], [332, 256], [333, 101], [334, 257], [335, 104], [336, 258], [337, 107], [338, 259], [339, 259], [340, 110], [341, 260], [342, 260], [343, 113], [344, 261], [345, 261], [346, 116], [347, 262], [348, 119], [349, 263], [350, 122], [351, 264], [352, 264], [353, 125], [354, 265], [355, 128], [356, 266], [357, 131], [358, 267], [359, 134], [360, 268], [361, 268], [362, 137], [363, 269], [364, 269], [365, 140], [366, 270], [367, 270], [368, 143], [369, 271], [370, 271], [371, 146], [372, 272], [373, 272], [374, 149], [375, 273], [376, 273], [377, 152], [378, 274], [379, 274], [380, 155], [381, 275], [382, 276], [383, 158], [384, 277], [385, 279], [386, 279], [387, 162], [388, 280], [389, 165], [390, 281], [391, 168], [392, 282], [393, 282], [394, 171], [395, 283], [396, 174], [397, 284], [398, 177], [399, 285], [400, 285], [401, 180], [402, 286], [403, 286], [404, 183], [405, 287], [406, 287], [407, 186], [408, 288], [409, 289], [410, 289], [411, 187], [412, 290], [413, 290], [414, 191], [415, 194], [416, 197], [417, 293], [418, 293], [419, 205], [420, 294], [421, 208], [422, 295], [423, 211], [424, 296], [425, 214], [426, 297], [427, 298], [428, 217], [429, 299], [430, 301], [431, 301], [432, 222], [433, 302], [434, 303], [435, 303], [436, 227], [437, 304], [438, 304], [439, 230], [440, 305], [441, 233], [442, 306], [443, 306], [444, 236], [445, 307], [446, 308], [447, 239], [448, 309], [449, 309], [450, 312], [451, 315], [452, 316], [453, 317], [454, 318], [455, 318], [456, 320], [457, 321], [458, 322], [459, 324], [460, 327], [461, 329], [462, 332], [463, 333], [464, 335], [465, 337], [466, 338], [467, 339], [468, 340], [469, 341], [470, 342], [471, 342], [472, 343], [473, 344], [474, 345], [475, 346], [476, 346], [477, 348], [478, 348], [479, 350], [480, 350], [481, 352], [482, 353], [483, 353], [484, 355], [485, 355], [486, 357], [487, 357], [488, 359], [489, 361], [490, 362], [491, 364], [492, 365], [493, 365], [494, 367], [495, 368], [496, 368], [497, 370], [498, 371], [499, 371], [500, 373], [501, 374], [502, 375], [503, 376], [504, 377], [505, 377], [506, 379], [507, 380], [508, 380], [509, 383], [510, 386], [511, 387], [512, 389], [513, 391], [514, 392], [515, 393], [516, 393], [517, 394], [518, 396], [519, 398], [520, 399], [521, 400], [522, 401], [523, 402], [524, 403], [525, 403], [526, 404], [527, 404], [528, 406], [529, 407], [530, 409], [531, 409], [532, 289], [533, 410], [534, 410], [535, 187], [536, 411], [537, 413], [538, 414], [539, 414], [540, 415], [541, 415], [542, 416], [543, 417], [544, 419], [545, 419], [546, 421], [547, 421], [548, 423], [549, 423], [550, 425], [551, 425], [552, 428], [553, 431], [554, 432], [555, 432], [556, 436], [557, 436], [558, 438], [559, 439], [560, 439], [561, 441], [562, 441], [563, 443], [564, 444], [565, 308], [566, 446], [567, 239], [568, 447], [569, 449], [570, 471], [571, 516], [572, 525], [573, 530], [574, 530], [575, 409], [576, 531], [577, 531], [578, 532], [579, 534], [580, 535], [581, 411], [582, 536], [583, 565], [584, 565], [585, 567], [586, 447], [587, 568], [588, 573], [589, 573], [590, 530], [591, 574], [592, 409], [593, 575], [594, 577], [595, 532], [596, 578], [597, 581], [598, 586], [599, 588], [600, 588], [601, 573], [602, 589], [603, 530], [604, 590], [605, 592], [606, 575], [607, 593], [608, 595], [609, 599], [610, 599], [611, 588], [612, 600], [613, 601], [614, 603], [615, 603], [616, 590], [617, 604], [618, 606], [619, 609], [620, 609], [621, 599], [622, 610], [623, 611], [624, 611], [625, 616], [626, 619], [627, 609], [628, 620], [629, 621], [630, 621], [631, 619], [632, 626], [633, 627], [634, 619], [635, 631], [636, 634], [637, 634], [638, 631], [639, 635], [640, 638], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493], [494, 494], [495, 495], [496, 496], [497, 497], [498, 498], [499, 499], [500, 500], [501, 501], [502, 502], [503, 503], [504, 504], [505, 505], [506, 506], [507, 507], [508, 508], [509, 509], [510, 510], [511, 511], [512, 512], [513, 513], [514, 514], [515, 515], [516, 516], [517, 517], [518, 518], [519, 519], [520, 520], [521, 521], [522, 522], [523, 523], [524, 524], [525, 525], [526, 526], [527, 527], [528, 528], [529, 529], [530, 530], [531, 531], [532, 532], [533, 533], [534, 534], [535, 535], [536, 536], [537, 537], [538, 538], [539, 539], [540, 540], [541, 541], [542, 542], [543, 543], [544, 544], [545, 545], [546, 546], [547, 547], [548, 548], [549, 549], [550, 550], [551, 551], [552, 552], [553, 553], [554, 554], [555, 555], [556, 556], [557, 557], [558, 558], [559, 559], [560, 560], [561, 561], [562, 562], [563, 563], [564, 564], [565, 565], [566, 566], [567, 567], [568, 568], [569, 569], [570, 570], [571, 571], [572, 572], [573, 573], [574, 574], [575, 575], [576, 576], [577, 577], [578, 578], [579, 579], [580, 580], [581, 581], [582, 582], [583, 583], [584, 584], [585, 585], [586, 586], [587, 587], [588, 588], [589, 589], [590, 590], [591, 591], [592, 592], [593, 593], [594, 594], [595, 595], [596, 596], [597, 597], [598, 598], [599, 599], [600, 600], [601, 601], [602, 602], [603, 603], [604, 604], [605, 605], [606, 606], [607, 607], [608, 608], [609, 609], [610, 610], [611, 611], [612, 612], [613, 613], [614, 614], [615, 615], [616, 616], [617, 617], [618, 618], [619, 619], [620, 620], [621, 621], [622, 622], [623, 623], [624, 624], [625, 625], [626, 626], [627, 627], [628, 628], [629, 629], [630, 630], [631, 631], [632, 632], [633, 633], [634, 634], [635, 635], [636, 636], [637, 637], [638, 638], [639, 639], [640, 640]]}, {"function_name": "jjStopStringLiteralDfa_6", "code": "private final int jjStopStringLiteralDfa_6(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         return -1;\n      default :\n         return -1;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [6, 11], [10, 12], [11, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 6], [12, 10], [13, 11], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "jjStartNfa_6", "code": "private final int jjStartNfa_6(int pos, long active0)\n{\n   return jjMoveNfa_6(jjStopStringLiteralDfa_6(pos, active0), pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStartNfaWithStates_6", "code": "private final int jjStartNfaWithStates_6(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_6(state, pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jjMoveStringLiteralDfa0_6", "code": "private final int jjMoveStringLiteralDfa0_6()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_6(0x5000L);\n      case 42:\n         return jjMoveStringLiteralDfa1_6(0x200000L);\n      default :\n         return jjMoveNfa_6(3, 0);", "ast_nodes": ["FUNC_DECL", "SWITCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [5, 9], [1, 10], [7, 11], [7, 12], [8, 13], [9, 14], [10, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 5], [10, 1], [11, 7], [12, 7], [13, 8], [14, 9], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "jjMoveStringLiteralDfa1_6", "code": "private final int jjMoveStringLiteralDfa1_6(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_6(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         else if ((active0 & 0x200000L) != 0L)\n            return jjStopAtPos(1, 21);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_6(1, 14, 0);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_6(0, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "PARAM", "CALL", "CATCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [6, 15], [3, 16], [10, 17], [10, 18], [13, 19], [13, 20], [13, 21], [15, 22], [6, 23], [16, 24], [17, 25], [18, 26], [18, 27], [19, 28], [19, 29], [20, 30], [21, 31], [21, 32], [23, 33], [25, 34], [25, 35], [25, 36], [27, 37], [28, 38], [29, 39], [29, 40], [30, 41], [30, 42], [32, 43], [38, 44], [38, 45], [40, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 6], [16, 3], [17, 10], [18, 10], [19, 13], [20, 13], [21, 13], [22, 15], [23, 6], [24, 16], [25, 17], [26, 18], [27, 18], [28, 19], [29, 19], [30, 20], [31, 21], [32, 21], [33, 23], [34, 25], [35, 25], [36, 25], [37, 27], [38, 28], [39, 29], [40, 29], [41, 30], [42, 30], [43, 32], [44, 38], [45, 38], [46, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jjMoveNfa_6", "code": "private final int jjMoveNfa_6(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 12;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(9, 10);\n                  }\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 6:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 8:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(9, 10);\n                  break;\n               case 10:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 11:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(9, 10);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 92)\n                     jjCheckNAddStates(28, 31);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 5:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(5, 6);\n                  break;\n               case 7:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(7, 8);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjAddStates(32, 33);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 12 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "TRY", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [9, 17], [4, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [19, 26], [10, 27], [21, 28], [21, 29], [22, 30], [23, 31], [13, 32], [13, 33], [24, 34], [14, 35], [25, 36], [8, 37], [27, 38], [28, 39], [12, 40], [12, 41], [12, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [31, 51], [32, 52], [39, 53], [39, 54], [40, 55], [43, 56], [49, 57], [32, 58], [33, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [49, 65], [50, 66], [59, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [63, 73], [64, 74], [48, 75], [66, 76], [66, 77], [58, 78], [58, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [58, 92], [58, 93], [58, 94], [58, 95], [58, 96], [58, 97], [58, 98], [58, 99], [58, 100], [58, 101], [58, 102], [58, 103], [60, 104], [60, 105], [60, 106], [60, 107], [68, 108], [71, 109], [72, 110], [75, 111], [65, 112], [65, 113], [65, 114], [65, 115], [65, 116], [65, 117], [65, 118], [65, 119], [65, 120], [65, 121], [65, 122], [65, 123], [65, 124], [65, 125], [65, 126], [65, 127], [76, 128], [58, 129], [80, 130], [81, 131], [81, 132], [84, 133], [87, 134], [90, 135], [93, 136], [96, 137], [99, 138], [102, 139], [102, 140], [106, 141], [114, 142], [117, 143], [120, 144], [123, 145], [126, 146], [129, 147], [129, 148], [80, 149], [130, 150], [132, 151], [84, 152], [133, 153], [133, 154], [87, 155], [134, 156], [90, 157], [135, 158], [135, 159], [93, 160], [136, 161], [96, 162], [137, 163], [137, 164], [99, 165], [138, 166], [139, 167], [102, 168], [140, 169], [106, 170], [141, 171], [141, 172], [114, 173], [142, 174], [117, 175], [143, 176], [120, 177], [144, 178], [123, 179], [145, 180], [126, 181], [146, 182], [149, 183], [152, 184], [153, 185], [154, 186], [155, 187], [155, 188], [157, 189], [158, 190], [159, 191], [160, 192], [162, 193], [163, 194], [164, 195], [164, 196], [165, 197], [139, 198], [167, 199], [102, 200], [168, 201], [170, 202], [171, 203], [173, 204], [173, 205], [175, 206], [175, 207], [177, 208], [177, 209], [179, 210], [181, 211], [181, 212], [196, 213], [198, 214], [200, 215], [200, 216], [168, 217], [201, 218], [217, 219], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 9], [18, 4], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 19], [27, 10], [28, 21], [29, 21], [30, 22], [31, 23], [32, 13], [33, 13], [34, 24], [35, 14], [36, 25], [37, 8], [38, 27], [39, 28], [40, 12], [41, 12], [42, 12], [43, 23], [44, 23], [45, 23], [46, 23], [47, 23], [48, 23], [49, 23], [50, 23], [51, 31], [52, 32], [53, 39], [54, 39], [55, 40], [56, 43], [57, 49], [58, 32], [59, 33], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 49], [66, 50], [67, 59], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 63], [74, 64], [75, 48], [76, 66], [77, 66], [78, 58], [79, 58], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 58], [93, 58], [94, 58], [95, 58], [96, 58], [97, 58], [98, 58], [99, 58], [100, 58], [101, 58], [102, 58], [103, 58], [104, 60], [105, 60], [106, 60], [107, 60], [108, 68], [109, 71], [110, 72], [111, 75], [112, 65], [113, 65], [114, 65], [115, 65], [116, 65], [117, 65], [118, 65], [119, 65], [120, 65], [121, 65], [122, 65], [123, 65], [124, 65], [125, 65], [126, 65], [127, 65], [128, 76], [129, 58], [130, 80], [131, 81], [132, 81], [133, 84], [134, 87], [135, 90], [136, 93], [137, 96], [138, 99], [139, 102], [140, 102], [141, 106], [142, 114], [143, 117], [144, 120], [145, 123], [146, 126], [147, 129], [148, 129], [149, 80], [150, 130], [151, 132], [152, 84], [153, 133], [154, 133], [155, 87], [156, 134], [157, 90], [158, 135], [159, 135], [160, 93], [161, 136], [162, 96], [163, 137], [164, 137], [165, 99], [166, 138], [167, 139], [168, 102], [169, 140], [170, 106], [171, 141], [172, 141], [173, 114], [174, 142], [175, 117], [176, 143], [177, 120], [178, 144], [179, 123], [180, 145], [181, 126], [182, 146], [183, 149], [184, 152], [185, 153], [186, 154], [187, 155], [188, 155], [189, 157], [190, 158], [191, 159], [192, 160], [193, 162], [194, 163], [195, 164], [196, 164], [197, 165], [198, 139], [199, 167], [200, 102], [201, 168], [202, 170], [203, 171], [204, 173], [205, 173], [206, 175], [207, 175], [208, 177], [209, 177], [210, 179], [211, 181], [212, 181], [213, 196], [214, 198], [215, 200], [216, 200], [217, 168], [218, 201], [219, 217], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219]]}, {"function_name": "jjStopStringLiteralDfa_4", "code": "private final int jjStopStringLiteralDfa_4(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         if ((active0 & 0x200000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            return 22;\n         }\n         if ((active0 & 0x900000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            return 7;\n         }\n         return -1;\n      case 1:\n         if ((active0 & 0x4000L) != 0L)\n            return 0;\n         if ((active0 & 0x200000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 1;\n            return 28;\n         }\n         if ((active0 & 0x800000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 1;\n            return 7;\n         }\n         if ((active0 & 0x100000000000L) != 0L)\n            return 7;\n         return -1;\n      case 2:\n         if ((active0 & 0x200000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 2;\n            return 23;\n         }\n         if ((active0 & 0x800000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 2;\n            return 7;\n         }\n         return -1;\n      case 3:\n         if ((active0 & 0x800000000000L) != 0L)\n            return 7;\n         if ((active0 & 0x200000000000L) != 0L)\n         {\n            jjmatchedKind = 46;\n            jjmatchedPos = 3;\n            return 30;\n         }\n         return -1;\n      case 4:\n         if ((active0 & 0x200000000000L) != 0L)\n         {\n            jjmatchedKind = 52;\n            jjmatchedPos = 4;\n            return 7;\n         }\n         return -1;\n      default :\n         return -1;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [4, 27], [5, 28], [6, 29], [8, 30], [9, 31], [10, 32], [10, 33], [12, 34], [13, 35], [14, 36], [16, 37], [17, 38], [17, 39], [18, 40], [19, 41], [20, 42], [20, 43], [22, 44], [23, 45], [24, 46], [25, 47], [25, 48], [6, 49], [29, 50], [29, 51], [9, 52], [31, 53], [31, 54], [32, 55], [33, 56], [33, 57], [13, 58], [35, 59], [35, 60], [14, 61], [36, 62], [36, 63], [38, 64], [39, 65], [39, 66], [18, 67], [40, 68], [40, 69], [19, 70], [41, 71], [41, 72], [42, 73], [43, 74], [43, 75], [23, 76], [45, 77], [45, 78], [24, 79], [46, 80], [46, 81], [47, 82], [48, 83], [48, 84], [49, 85], [6, 86], [6, 87], [51, 88], [52, 89], [9, 90], [9, 91], [54, 92], [57, 93], [58, 94], [13, 95], [13, 96], [60, 97], [61, 98], [14, 99], [14, 100], [63, 101], [66, 102], [67, 103], [18, 104], [18, 105], [69, 106], [70, 107], [19, 108], [19, 109], [72, 110], [75, 111], [76, 112], [23, 113], [78, 114], [79, 115], [24, 116], [81, 117], [84, 118], [86, 119], [87, 120], [90, 121], [91, 122], [95, 123], [96, 124], [99, 125], [100, 126], [104, 127], [105, 128], [108, 129], [109, 130], [113, 131], [116, 132], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 4], [28, 5], [29, 6], [30, 8], [31, 9], [32, 10], [33, 10], [34, 12], [35, 13], [36, 14], [37, 16], [38, 17], [39, 17], [40, 18], [41, 19], [42, 20], [43, 20], [44, 22], [45, 23], [46, 24], [47, 25], [48, 25], [49, 6], [50, 29], [51, 29], [52, 9], [53, 31], [54, 31], [55, 32], [56, 33], [57, 33], [58, 13], [59, 35], [60, 35], [61, 14], [62, 36], [63, 36], [64, 38], [65, 39], [66, 39], [67, 18], [68, 40], [69, 40], [70, 19], [71, 41], [72, 41], [73, 42], [74, 43], [75, 43], [76, 23], [77, 45], [78, 45], [79, 24], [80, 46], [81, 46], [82, 47], [83, 48], [84, 48], [85, 49], [86, 6], [87, 6], [88, 51], [89, 52], [90, 9], [91, 9], [92, 54], [93, 57], [94, 58], [95, 13], [96, 13], [97, 60], [98, 61], [99, 14], [100, 14], [101, 63], [102, 66], [103, 67], [104, 18], [105, 18], [106, 69], [107, 70], [108, 19], [109, 19], [110, 72], [111, 75], [112, 76], [113, 23], [114, 78], [115, 79], [116, 24], [117, 81], [118, 84], [119, 86], [120, 87], [121, 90], [122, 91], [123, 95], [124, 96], [125, 99], [126, 100], [127, 104], [128, 105], [129, 108], [130, 109], [131, 113], [132, 116], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132]]}, {"function_name": "jjStartNfa_4", "code": "private final int jjStartNfa_4(int pos, long active0)\n{\n   return jjMoveNfa_4(jjStopStringLiteralDfa_4(pos, active0), pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStartNfaWithStates_4", "code": "private final int jjStartNfaWithStates_4(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_4(state, pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jjMoveStringLiteralDfa0_4", "code": "private final int jjMoveStringLiteralDfa0_4()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_4(0x5000L);\n      case 101:\n         return jjMoveStringLiteralDfa1_4(0x200000000000L);\n      case 105:\n         return jjMoveStringLiteralDfa1_4(0x100000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa1_4(0x800000000000L);\n      default :\n         return jjMoveNfa_4(3, 0);", "ast_nodes": ["FUNC_DECL", "SWITCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [5, 13], [7, 14], [9, 15], [1, 16], [11, 17], [11, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 5], [14, 7], [15, 9], [16, 1], [17, 11], [18, 11], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "jjMoveStringLiteralDfa1_4", "code": "private final int jjMoveStringLiteralDfa1_4(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_4(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_4(1, 14, 0);\n         break;\n      case 102:\n         if ((active0 & 0x100000000000L) != 0L)\n            return jjStartNfaWithStates_4(1, 44, 7);\n         break;\n      case 108:\n         return jjMoveStringLiteralDfa2_4(active0, 0x200000000000L);\n      case 116:\n         return jjMoveStringLiteralDfa2_4(active0, 0x800000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_4(0, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "PARAM", "CALL", "CATCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [6, 22], [3, 23], [9, 24], [11, 25], [14, 26], [14, 27], [17, 28], [17, 29], [20, 30], [20, 31], [22, 32], [6, 33], [23, 34], [24, 35], [25, 36], [26, 37], [27, 38], [27, 39], [28, 40], [29, 41], [29, 42], [30, 43], [31, 44], [31, 45], [33, 46], [37, 47], [37, 48], [37, 49], [39, 50], [40, 51], [40, 52], [40, 53], [42, 54], [43, 55], [43, 56], [45, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 6], [23, 3], [24, 9], [25, 11], [26, 14], [27, 14], [28, 17], [29, 17], [30, 20], [31, 20], [32, 22], [33, 6], [34, 23], [35, 24], [36, 25], [37, 26], [38, 27], [39, 27], [40, 28], [41, 29], [42, 29], [43, 30], [44, 31], [45, 31], [46, 33], [47, 37], [48, 37], [49, 37], [50, 39], [51, 40], [52, 40], [53, 40], [54, 42], [55, 43], [56, 43], [57, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "jjMoveStringLiteralDfa2_4", "code": "private final int jjMoveStringLiteralDfa2_4(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_4(0, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_4(1, active0);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 111:\n         return jjMoveStringLiteralDfa3_4(active0, 0x800000000000L);\n      case 115:\n         return jjMoveStringLiteralDfa3_4(active0, 0x200000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_4(1, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [8, 17], [3, 18], [9, 19], [10, 20], [10, 21], [13, 22], [15, 23], [17, 24], [8, 25], [18, 26], [19, 27], [22, 28], [23, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 8], [18, 3], [19, 9], [20, 10], [21, 10], [22, 13], [23, 15], [24, 17], [25, 8], [26, 18], [27, 19], [28, 22], [29, 23], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "jjMoveStringLiteralDfa3_4", "code": "private final int jjMoveStringLiteralDfa3_4(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_4(1, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_4(2, active0);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 101:\n         return jjMoveStringLiteralDfa4_4(active0, 0x200000000000L);\n      case 112:\n         if ((active0 & 0x800000000000L) != 0L)\n            return jjStartNfaWithStates_4(3, 47, 7);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_4(2, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [8, 18], [3, 19], [9, 20], [10, 21], [10, 22], [14, 23], [14, 24], [16, 25], [18, 26], [8, 27], [19, 28], [20, 29], [23, 30], [24, 31], [24, 32], [25, 33], [27, 34], [30, 35], [30, 36], [30, 37], [32, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 8], [19, 3], [20, 9], [21, 10], [22, 10], [23, 14], [24, 14], [25, 16], [26, 18], [27, 8], [28, 19], [29, 20], [30, 23], [31, 24], [32, 24], [33, 25], [34, 27], [35, 30], [36, 30], [37, 30], [38, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "jjMoveStringLiteralDfa4_4", "code": "private final int jjMoveStringLiteralDfa4_4(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_4(2, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_4(3, active0);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 105:\n         return jjMoveStringLiteralDfa5_4(active0, 0x200000000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_4(3, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [8, 15], [3, 16], [9, 17], [10, 18], [10, 19], [13, 20], [15, 21], [8, 22], [16, 23], [17, 24], [20, 25], [22, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 8], [16, 3], [17, 9], [18, 10], [19, 10], [20, 13], [21, 15], [22, 8], [23, 16], [24, 17], [25, 20], [26, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "jjMoveStringLiteralDfa5_4", "code": "private final int jjMoveStringLiteralDfa5_4(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_4(3, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_4(4, active0);\n      return 5;\n   }\n   switch(curChar)\n   {\n      case 102:\n         if ((active0 & 0x200000000000L) != 0L)\n            return jjStartNfaWithStates_4(5, 45, 7);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_4(4, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [14, 22], [16, 23], [8, 24], [17, 25], [18, 26], [21, 27], [22, 28], [22, 29], [24, 30], [27, 31], [27, 32], [27, 33], [29, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 14], [23, 16], [24, 8], [25, 17], [26, 18], [27, 21], [28, 22], [29, 22], [30, 24], [31, 27], [32, 27], [33, 27], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "jjMoveNfa_4", "code": "private final int jjMoveNfa_4(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 30;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x3ff000000000000L & l) != 0L)\n                  {\n                     if (kind > 49)\n                        kind = 49;\n                     jjCheckNAdd(5);\n                  }\n                  else if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(13, 14);\n                  }\n                  else if (curChar == 45)\n                     jjCheckNAdd(5);\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 30:\n                  if ((0x3ff000000000000L & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(7);\n                  }\n                  else if ((0x2400L & l) != 0L)\n                  {\n                     if (kind > 46)\n                        kind = 46;\n                  }\n                  else if ((0x100000200L & l) != 0L)\n                     jjCheckNAddStates(34, 36);\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 26;\n                  break;\n               case 22:\n               case 7:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(7);\n                  break;\n               case 28:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(7);\n                  break;\n               case 23:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(7);\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 4:\n                  if (curChar == 45)\n                     jjCheckNAdd(5);\n                  break;\n               case 5:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 49)\n                     kind = 49;\n                  jjCheckNAdd(5);\n                  break;\n               case 10:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 12:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(13, 14);\n                  break;\n               case 14:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 15:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(13, 14);\n                  break;\n               case 18:\n                  if ((0x100000200L & l) != 0L)\n                     jjAddStates(37, 39);\n                  break;\n               case 19:\n                  if ((0x2400L & l) != 0L && kind > 43)\n                     kind = 43;\n                  break;\n               case 20:\n                  if (curChar == 10 && kind > 43)\n                     kind = 43;\n                  break;\n               case 21:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 20;\n                  break;\n               case 24:\n                  if ((0x100000200L & l) != 0L)\n                     jjCheckNAddStates(34, 36);\n                  break;\n               case 25:\n                  if ((0x2400L & l) != 0L && kind > 46)\n                     kind = 46;\n                  break;\n               case 26:\n                  if (curChar == 10 && kind > 46)\n                     kind = 46;\n                  break;\n               case 27:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 26;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(7);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  if (curChar == 101)\n                     jjAddStates(44, 45);\n                  break;\n               case 30:\n               case 7:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(7);\n                  break;\n               case 22:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(7);\n                  }\n                  if (curChar == 108)\n                     jjstateSet[jjnewStateCnt++] = 28;\n                  else if (curChar == 110)\n                     jjstateSet[jjnewStateCnt++] = 17;\n                  break;\n               case 28:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(7);\n                  }\n                  if (curChar == 115)\n                     jjstateSet[jjnewStateCnt++] = 23;\n                  break;\n               case 23:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 52)\n                        kind = 52;\n                     jjCheckNAdd(7);\n                  }\n                  if (curChar == 101)\n                  {\n                     if (kind > 46)\n                        kind = 46;\n                     jjAddStates(34, 36);\n                  }\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 6:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 52)\n                     kind = 52;\n                  jjCheckNAdd(7);\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(9, 10);\n                  break;\n               case 11:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(11, 12);\n                  break;\n               case 13:\n                  if (curChar == 92)\n                     jjAddStates(46, 47);\n                  break;\n               case 16:\n                  if (curChar == 101)\n                     jjAddStates(44, 45);\n                  break;\n               case 17:\n                  if (curChar != 100)\n                     break;\n                  if (kind > 43)\n                     kind = 43;\n                  jjAddStates(37, 39);\n                  break;\n               case 29:\n                  if (curChar == 108)\n                     jjstateSet[jjnewStateCnt++] = 28;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 30 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "TRY", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [9, 17], [4, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [19, 26], [10, 27], [21, 28], [21, 29], [22, 30], [23, 31], [13, 32], [13, 33], [24, 34], [14, 35], [25, 36], [8, 37], [27, 38], [28, 39], [12, 40], [12, 41], [12, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [31, 51], [32, 52], [39, 53], [39, 54], [40, 55], [43, 56], [49, 57], [32, 58], [33, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [49, 65], [50, 66], [59, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [63, 73], [64, 74], [48, 75], [66, 76], [66, 77], [58, 78], [58, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [58, 92], [58, 93], [58, 94], [58, 95], [58, 96], [58, 97], [58, 98], [58, 99], [58, 100], [58, 101], [58, 102], [58, 103], [58, 104], [58, 105], [58, 106], [58, 107], [58, 108], [58, 109], [58, 110], [58, 111], [58, 112], [58, 113], [58, 114], [58, 115], [58, 116], [58, 117], [58, 118], [58, 119], [58, 120], [58, 121], [58, 122], [58, 123], [58, 124], [58, 125], [58, 126], [58, 127], [58, 128], [58, 129], [58, 130], [58, 131], [58, 132], [58, 133], [58, 134], [58, 135], [58, 136], [58, 137], [58, 138], [58, 139], [58, 140], [58, 141], [58, 142], [58, 143], [58, 144], [58, 145], [58, 146], [58, 147], [58, 148], [58, 149], [58, 150], [58, 151], [60, 152], [60, 153], [60, 154], [60, 155], [68, 156], [71, 157], [72, 158], [75, 159], [65, 160], [65, 161], [65, 162], [65, 163], [65, 164], [65, 165], [65, 166], [65, 167], [65, 168], [65, 169], [65, 170], [65, 171], [65, 172], [65, 173], [65, 174], [65, 175], [65, 176], [65, 177], [65, 178], [65, 179], [65, 180], [65, 181], [65, 182], [65, 183], [65, 184], [65, 185], [65, 186], [65, 187], [65, 188], [65, 189], [65, 190], [65, 191], [65, 192], [65, 193], [65, 194], [65, 195], [65, 196], [65, 197], [65, 198], [65, 199], [65, 200], [65, 201], [65, 202], [65, 203], [65, 204], [65, 205], [65, 206], [65, 207], [65, 208], [65, 209], [65, 210], [76, 211], [80, 212], [83, 213], [86, 214], [89, 215], [92, 216], [95, 217], [98, 218], [101, 219], [58, 220], [104, 221], [105, 222], [105, 223], [108, 224], [111, 225], [114, 226], [58, 227], [117, 228], [118, 229], [118, 230], [121, 231], [124, 232], [127, 233], [130, 234], [58, 235], [133, 236], [134, 237], [134, 238], [58, 239], [137, 240], [138, 241], [138, 242], [58, 243], [141, 244], [142, 245], [142, 246], [146, 247], [147, 248], [147, 249], [150, 250], [150, 251], [154, 252], [162, 253], [65, 254], [165, 255], [166, 256], [166, 257], [169, 258], [172, 259], [175, 260], [178, 261], [181, 262], [65, 263], [184, 264], [185, 265], [185, 266], [188, 267], [191, 268], [192, 269], [195, 270], [196, 271], [199, 272], [199, 273], [200, 274], [65, 275], [203, 276], [204, 277], [204, 278], [208, 279], [209, 280], [209, 281], [80, 282], [212, 283], [83, 284], [213, 285], [213, 286], [86, 287], [214, 288], [214, 289], [89, 290], [215, 291], [215, 292], [92, 293], [216, 294], [95, 295], [217, 296], [217, 297], [98, 298], [218, 299], [218, 300], [101, 301], [219, 302], [219, 303], [220, 304], [220, 305], [104, 306], [221, 307], [223, 308], [108, 309], [224, 310], [224, 311], [111, 312], [225, 313], [114, 314], [226, 315], [226, 316], [227, 317], [117, 318], [228, 319], [230, 320], [230, 321], [121, 322], [231, 323], [124, 324], [232, 325], [127, 326], [233, 327], [233, 328], [130, 329], [234, 330], [235, 331], [133, 332], [236, 333], [238, 334], [238, 335], [239, 336], [137, 337], [240, 338], [242, 339], [242, 340], [243, 341], [141, 342], [244, 343], [246, 344], [246, 345], [146, 346], [247, 347], [248, 348], [248, 349], [147, 350], [249, 351], [249, 352], [250, 353], [250, 354], [150, 355], [251, 356], [251, 357], [154, 358], [252, 359], [252, 360], [162, 361], [253, 362], [254, 363], [254, 364], [165, 365], [255, 366], [257, 367], [169, 368], [258, 369], [172, 370], [259, 371], [175, 372], [260, 373], [178, 374], [261, 375], [181, 376], [262, 377], [263, 378], [184, 379], [264, 380], [266, 381], [266, 382], [188, 383], [267, 384], [191, 385], [268, 386], [192, 387], [269, 388], [269, 389], [195, 390], [270, 391], [196, 392], [271, 393], [271, 394], [272, 395], [199, 396], [273, 397], [200, 398], [274, 399], [274, 400], [275, 401], [203, 402], [276, 403], [278, 404], [278, 405], [208, 406], [279, 407], [280, 408], [209, 409], [281, 410], [281, 411], [282, 412], [284, 413], [285, 414], [286, 415], [287, 416], [288, 417], [289, 418], [289, 419], [290, 420], [290, 421], [292, 422], [293, 423], [295, 424], [296, 425], [297, 426], [298, 427], [299, 428], [300, 429], [300, 430], [301, 431], [301, 432], [303, 433], [306, 434], [309, 435], [310, 436], [311, 437], [312, 438], [312, 439], [314, 440], [315, 441], [316, 442], [318, 443], [321, 444], [322, 445], [324, 446], [326, 447], [327, 448], [328, 449], [328, 450], [329, 451], [332, 452], [335, 453], [337, 454], [340, 455], [342, 456], [345, 457], [346, 458], [348, 459], [248, 460], [349, 461], [349, 462], [147, 463], [350, 464], [352, 465], [353, 466], [353, 467], [250, 468], [354, 469], [150, 470], [355, 471], [357, 472], [358, 473], [359, 474], [361, 475], [365, 476], [368, 477], [368, 478], [370, 479], [370, 480], [372, 481], [372, 482], [374, 483], [374, 484], [376, 485], [376, 486], [379, 487], [382, 488], [383, 489], [191, 490], [385, 491], [192, 492], [387, 493], [389, 494], [390, 495], [196, 496], [392, 497], [394, 498], [272, 499], [395, 500], [396, 501], [200, 502], [398, 503], [400, 504], [402, 505], [405, 506], [406, 507], [406, 508], [280, 509], [408, 510], [209, 511], [409, 512], [411, 513], [419, 514], [430, 515], [450, 516], [348, 517], [459, 518], [459, 519], [460, 520], [462, 521], [463, 522], [350, 523], [464, 524], [466, 525], [353, 526], [467, 527], [250, 528], [468, 529], [470, 530], [355, 531], [471, 532], [490, 533], [490, 534], [385, 535], [491, 536], [492, 537], [387, 538], [493, 539], [496, 540], [392, 541], [497, 542], [499, 543], [502, 544], [398, 545], [503, 546], [509, 547], [509, 548], [511, 549], [409, 550], [512, 551], [517, 552], [517, 553], [519, 554], [460, 555], [520, 556], [523, 557], [466, 558], [525, 559], [526, 560], [528, 561], [528, 562], [468, 563], [529, 564], [531, 565], [535, 566], [538, 567], [541, 568], [545, 569], [550, 570], [555, 571], [558, 572], [563, 573], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 9], [18, 4], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 19], [27, 10], [28, 21], [29, 21], [30, 22], [31, 23], [32, 13], [33, 13], [34, 24], [35, 14], [36, 25], [37, 8], [38, 27], [39, 28], [40, 12], [41, 12], [42, 12], [43, 23], [44, 23], [45, 23], [46, 23], [47, 23], [48, 23], [49, 23], [50, 23], [51, 31], [52, 32], [53, 39], [54, 39], [55, 40], [56, 43], [57, 49], [58, 32], [59, 33], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 49], [66, 50], [67, 59], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 63], [74, 64], [75, 48], [76, 66], [77, 66], [78, 58], [79, 58], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 58], [93, 58], [94, 58], [95, 58], [96, 58], [97, 58], [98, 58], [99, 58], [100, 58], [101, 58], [102, 58], [103, 58], [104, 58], [105, 58], [106, 58], [107, 58], [108, 58], [109, 58], [110, 58], [111, 58], [112, 58], [113, 58], [114, 58], [115, 58], [116, 58], [117, 58], [118, 58], [119, 58], [120, 58], [121, 58], [122, 58], [123, 58], [124, 58], [125, 58], [126, 58], [127, 58], [128, 58], [129, 58], [130, 58], [131, 58], [132, 58], [133, 58], [134, 58], [135, 58], [136, 58], [137, 58], [138, 58], [139, 58], [140, 58], [141, 58], [142, 58], [143, 58], [144, 58], [145, 58], [146, 58], [147, 58], [148, 58], [149, 58], [150, 58], [151, 58], [152, 60], [153, 60], [154, 60], [155, 60], [156, 68], [157, 71], [158, 72], [159, 75], [160, 65], [161, 65], [162, 65], [163, 65], [164, 65], [165, 65], [166, 65], [167, 65], [168, 65], [169, 65], [170, 65], [171, 65], [172, 65], [173, 65], [174, 65], [175, 65], [176, 65], [177, 65], [178, 65], [179, 65], [180, 65], [181, 65], [182, 65], [183, 65], [184, 65], [185, 65], [186, 65], [187, 65], [188, 65], [189, 65], [190, 65], [191, 65], [192, 65], [193, 65], [194, 65], [195, 65], [196, 65], [197, 65], [198, 65], [199, 65], [200, 65], [201, 65], [202, 65], [203, 65], [204, 65], [205, 65], [206, 65], [207, 65], [208, 65], [209, 65], [210, 65], [211, 76], [212, 80], [213, 83], [214, 86], [215, 89], [216, 92], [217, 95], [218, 98], [219, 101], [220, 58], [221, 104], [222, 105], [223, 105], [224, 108], [225, 111], [226, 114], [227, 58], [228, 117], [229, 118], [230, 118], [231, 121], [232, 124], [233, 127], [234, 130], [235, 58], [236, 133], [237, 134], [238, 134], [239, 58], [240, 137], [241, 138], [242, 138], [243, 58], [244, 141], [245, 142], [246, 142], [247, 146], [248, 147], [249, 147], [250, 150], [251, 150], [252, 154], [253, 162], [254, 65], [255, 165], [256, 166], [257, 166], [258, 169], [259, 172], [260, 175], [261, 178], [262, 181], [263, 65], [264, 184], [265, 185], [266, 185], [267, 188], [268, 191], [269, 192], [270, 195], [271, 196], [272, 199], [273, 199], [274, 200], [275, 65], [276, 203], [277, 204], [278, 204], [279, 208], [280, 209], [281, 209], [282, 80], [283, 212], [284, 83], [285, 213], [286, 213], [287, 86], [288, 214], [289, 214], [290, 89], [291, 215], [292, 215], [293, 92], [294, 216], [295, 95], [296, 217], [297, 217], [298, 98], [299, 218], [300, 218], [301, 101], [302, 219], [303, 219], [304, 220], [305, 220], [306, 104], [307, 221], [308, 223], [309, 108], [310, 224], [311, 224], [312, 111], [313, 225], [314, 114], [315, 226], [316, 226], [317, 227], [318, 117], [319, 228], [320, 230], [321, 230], [322, 121], [323, 231], [324, 124], [325, 232], [326, 127], [327, 233], [328, 233], [329, 130], [330, 234], [331, 235], [332, 133], [333, 236], [334, 238], [335, 238], [336, 239], [337, 137], [338, 240], [339, 242], [340, 242], [341, 243], [342, 141], [343, 244], [344, 246], [345, 246], [346, 146], [347, 247], [348, 248], [349, 248], [350, 147], [351, 249], [352, 249], [353, 250], [354, 250], [355, 150], [356, 251], [357, 251], [358, 154], [359, 252], [360, 252], [361, 162], [362, 253], [363, 254], [364, 254], [365, 165], [366, 255], [367, 257], [368, 169], [369, 258], [370, 172], [371, 259], [372, 175], [373, 260], [374, 178], [375, 261], [376, 181], [377, 262], [378, 263], [379, 184], [380, 264], [381, 266], [382, 266], [383, 188], [384, 267], [385, 191], [386, 268], [387, 192], [388, 269], [389, 269], [390, 195], [391, 270], [392, 196], [393, 271], [394, 271], [395, 272], [396, 199], [397, 273], [398, 200], [399, 274], [400, 274], [401, 275], [402, 203], [403, 276], [404, 278], [405, 278], [406, 208], [407, 279], [408, 280], [409, 209], [410, 281], [411, 281], [412, 282], [413, 284], [414, 285], [415, 286], [416, 287], [417, 288], [418, 289], [419, 289], [420, 290], [421, 290], [422, 292], [423, 293], [424, 295], [425, 296], [426, 297], [427, 298], [428, 299], [429, 300], [430, 300], [431, 301], [432, 301], [433, 303], [434, 306], [435, 309], [436, 310], [437, 311], [438, 312], [439, 312], [440, 314], [441, 315], [442, 316], [443, 318], [444, 321], [445, 322], [446, 324], [447, 326], [448, 327], [449, 328], [450, 328], [451, 329], [452, 332], [453, 335], [454, 337], [455, 340], [456, 342], [457, 345], [458, 346], [459, 348], [460, 248], [461, 349], [462, 349], [463, 147], [464, 350], [465, 352], [466, 353], [467, 353], [468, 250], [469, 354], [470, 150], [471, 355], [472, 357], [473, 358], [474, 359], [475, 361], [476, 365], [477, 368], [478, 368], [479, 370], [480, 370], [481, 372], [482, 372], [483, 374], [484, 374], [485, 376], [486, 376], [487, 379], [488, 382], [489, 383], [490, 191], [491, 385], [492, 192], [493, 387], [494, 389], [495, 390], [496, 196], [497, 392], [498, 394], [499, 272], [500, 395], [501, 396], [502, 200], [503, 398], [504, 400], [505, 402], [506, 405], [507, 406], [508, 406], [509, 280], [510, 408], [511, 209], [512, 409], [513, 411], [514, 419], [515, 430], [516, 450], [517, 348], [518, 459], [519, 459], [520, 460], [521, 462], [522, 463], [523, 350], [524, 464], [525, 466], [526, 353], [527, 467], [528, 250], [529, 468], [530, 470], [531, 355], [532, 471], [533, 490], [534, 490], [535, 385], [536, 491], [537, 492], [538, 387], [539, 493], [540, 496], [541, 392], [542, 497], [543, 499], [544, 502], [545, 398], [546, 503], [547, 509], [548, 509], [549, 511], [550, 409], [551, 512], [552, 517], [553, 517], [554, 519], [555, 460], [556, 520], [557, 523], [558, 466], [559, 525], [560, 526], [561, 528], [562, 528], [563, 468], [564, 529], [565, 531], [566, 535], [567, 538], [568, 541], [569, 545], [570, 550], [571, 555], [572, 558], [573, 563], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493], [494, 494], [495, 495], [496, 496], [497, 497], [498, 498], [499, 499], [500, 500], [501, 501], [502, 502], [503, 503], [504, 504], [505, 505], [506, 506], [507, 507], [508, 508], [509, 509], [510, 510], [511, 511], [512, 512], [513, 513], [514, 514], [515, 515], [516, 516], [517, 517], [518, 518], [519, 519], [520, 520], [521, 521], [522, 522], [523, 523], [524, 524], [525, 525], [526, 526], [527, 527], [528, 528], [529, 529], [530, 530], [531, 531], [532, 532], [533, 533], [534, 534], [535, 535], [536, 536], [537, 537], [538, 538], [539, 539], [540, 540], [541, 541], [542, 542], [543, 543], [544, 544], [545, 545], [546, 546], [547, 547], [548, 548], [549, 549], [550, 550], [551, 551], [552, 552], [553, 553], [554, 554], [555, 555], [556, 556], [557, 557], [558, 558], [559, 559], [560, 560], [561, 561], [562, 562], [563, 563], [564, 564], [565, 565], [566, 566], [567, 567], [568, 568], [569, 569], [570, 570], [571, 571], [572, 572], [573, 573]]}, {"function_name": "jjStopStringLiteralDfa_3", "code": "private final int jjStopStringLiteralDfa_3(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0x30000L) != 0L)\n            return 9;\n         if ((active0 & 0xd000L) != 0L)\n            return 16;\n         return -1;\n      default :\n         return -1;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [5, 10], [6, 11], [6, 12], [7, 13], [7, 14], [11, 15], [12, 16], [12, 17], [13, 18], [14, 19], [14, 20], [17, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 5], [11, 6], [12, 6], [13, 7], [14, 7], [15, 11], [16, 12], [17, 12], [18, 13], [19, 14], [20, 14], [21, 17], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "jjStartNfa_3", "code": "private final int jjStartNfa_3(int pos, long active0)\n{\n   return jjMoveNfa_3(jjStopStringLiteralDfa_3(pos, active0), pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStartNfaWithStates_3", "code": "private final int jjStartNfaWithStates_3(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_3(state, pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jjMoveStringLiteralDfa0_3", "code": "private final int jjMoveStringLiteralDfa0_3()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_3(0x5000L);\n      case 92:\n         jjmatchedKind = 17;\n         return jjMoveStringLiteralDfa1_3(0x10000L);\n      default :\n         return jjMoveNfa_3(13, 0);", "ast_nodes": ["FUNC_DECL", "SWITCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [1, 9], [5, 10], [1, 11], [7, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 1], [10, 5], [11, 1], [12, 7], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "jjMoveStringLiteralDfa1_3", "code": "private final int jjMoveStringLiteralDfa1_3(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_3(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_3(1, 14, 14);\n         break;\n      case 92:\n         if ((active0 & 0x10000L) != 0L)\n            return jjStartNfaWithStates_3(1, 16, 25);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_3(0, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "PARAM", "CALL", "CATCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [6, 18], [3, 19], [10, 20], [10, 21], [13, 22], [13, 23], [16, 24], [16, 25], [18, 26], [6, 27], [19, 28], [20, 29], [21, 30], [21, 31], [22, 32], [23, 33], [23, 34], [24, 35], [25, 36], [25, 37], [27, 38], [29, 39], [29, 40], [29, 41], [31, 42], [32, 43], [32, 44], [32, 45], [34, 46], [35, 47], [35, 48], [37, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 6], [19, 3], [20, 10], [21, 10], [22, 13], [23, 13], [24, 16], [25, 16], [26, 18], [27, 6], [28, 19], [29, 20], [30, 21], [31, 21], [32, 22], [33, 23], [34, 23], [35, 24], [36, 25], [37, 25], [38, 27], [39, 29], [40, 29], [41, 29], [42, 31], [43, 32], [44, 32], [45, 32], [46, 34], [47, 35], [48, 35], [49, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "jjMoveNfa_3", "code": "private final int jjMoveNfa_3(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 25;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 16:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 14;\n                  break;\n               case 13:\n                  if ((0xffffffe7ffffffffL & l) != 0L)\n                  {\n                     if (kind > 18)\n                        kind = 18;\n                     jjCheckNAdd(7);\n                  }\n                  else if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(22, 23);\n                  }\n                  else if (curChar == 35)\n                     jjCheckNAddTwoStates(5, 16);\n                  if ((0x100000200L & l) != 0L)\n                     jjCheckNAddTwoStates(0, 6);\n                  break;\n               case 25:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(22, 23);\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                  }\n                  break;\n               case 9:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(22, 23);\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 11;\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                  }\n                  break;\n               case 0:\n                  if ((0x100000200L & l) != 0L)\n                     jjCheckNAddTwoStates(0, 6);\n                  break;\n               case 2:\n                  if (curChar == 32)\n                     jjAddStates(48, 49);\n                  break;\n               case 3:\n                  if (curChar == 40 && kind > 9)\n                     kind = 9;\n                  break;\n               case 6:\n                  if (curChar == 35)\n                     jjCheckNAdd(5);\n                  break;\n               case 7:\n                  if ((0xffffffe7ffffffffL & l) == 0L)\n                     break;\n                  if (kind > 18)\n                     kind = 18;\n                  jjCheckNAdd(7);\n                  break;\n               case 10:\n                  if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 11;\n                  break;\n               case 12:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 8)\n                     kind = 8;\n                  jjstateSet[jjnewStateCnt++] = 12;\n                  break;\n               case 14:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 15;\n                  break;\n               case 15:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 19:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 21:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(22, 23);\n                  break;\n               case 23:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 24:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(22, 23);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 16:\n               case 5:\n                  if (curChar == 115)\n                     jjstateSet[jjnewStateCnt++] = 4;\n                  break;\n               case 13:\n                  if ((0xffffffffefffffffL & l) != 0L)\n                  {\n                     if (kind > 18)\n                        kind = 18;\n                     jjCheckNAdd(7);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(50, 53);\n                  if (curChar == 92)\n                     jjAddStates(32, 33);\n                  break;\n               case 25:\n                  if (curChar == 92)\n                     jjAddStates(32, 33);\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(20, 21);\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(18, 19);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(20, 21);\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(18, 19);\n                  if (curChar == 92)\n                     jjstateSet[jjnewStateCnt++] = 8;\n                  break;\n               case 1:\n                  if (curChar == 116)\n                     jjAddStates(48, 49);\n                  break;\n               case 4:\n                  if (curChar == 101)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 7:\n                  if ((0xffffffffefffffffL & l) == 0L)\n                     break;\n                  if (kind > 18)\n                     kind = 18;\n                  jjCheckNAdd(7);\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjAddStates(32, 33);\n                  break;\n               case 11:\n               case 12:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 8)\n                     kind = 8;\n                  jjCheckNAdd(12);\n                  break;\n               case 15:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 17:\n                  if (curChar == 92)\n                     jjCheckNAddStates(50, 53);\n                  break;\n               case 18:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(18, 19);\n                  break;\n               case 20:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(20, 21);\n                  break;\n               case 22:\n                  if (curChar == 92)\n                     jjAddStates(54, 55);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 13:\n               case 7:\n                  if (!jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     break;\n                  if (kind > 18)\n                     kind = 18;\n                  jjCheckNAdd(7);\n                  break;\n               case 15:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 25 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "TRY", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [9, 17], [4, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [19, 26], [10, 27], [21, 28], [21, 29], [22, 30], [23, 31], [13, 32], [13, 33], [24, 34], [14, 35], [25, 36], [8, 37], [27, 38], [28, 39], [12, 40], [12, 41], [12, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [31, 51], [32, 52], [39, 53], [39, 54], [40, 55], [43, 56], [49, 57], [32, 58], [33, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [49, 65], [50, 66], [59, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [63, 73], [64, 74], [48, 75], [66, 76], [66, 77], [58, 78], [58, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [58, 92], [58, 93], [58, 94], [58, 95], [58, 96], [58, 97], [58, 98], [58, 99], [58, 100], [58, 101], [58, 102], [58, 103], [58, 104], [58, 105], [58, 106], [58, 107], [58, 108], [58, 109], [58, 110], [58, 111], [58, 112], [58, 113], [58, 114], [58, 115], [58, 116], [58, 117], [58, 118], [58, 119], [58, 120], [58, 121], [58, 122], [58, 123], [58, 124], [58, 125], [58, 126], [58, 127], [58, 128], [58, 129], [58, 130], [58, 131], [58, 132], [58, 133], [58, 134], [58, 135], [60, 136], [60, 137], [60, 138], [60, 139], [60, 140], [60, 141], [60, 142], [60, 143], [60, 144], [68, 145], [71, 146], [72, 147], [75, 148], [65, 149], [65, 150], [65, 151], [65, 152], [65, 153], [65, 154], [65, 155], [65, 156], [65, 157], [65, 158], [65, 159], [65, 160], [65, 161], [65, 162], [65, 163], [65, 164], [65, 165], [65, 166], [65, 167], [65, 168], [65, 169], [65, 170], [65, 171], [65, 172], [65, 173], [65, 174], [65, 175], [65, 176], [65, 177], [65, 178], [65, 179], [65, 180], [65, 181], [65, 182], [65, 183], [65, 184], [65, 185], [65, 186], [65, 187], [65, 188], [65, 189], [65, 190], [65, 191], [65, 192], [65, 193], [65, 194], [65, 195], [65, 196], [65, 197], [65, 198], [65, 199], [65, 200], [76, 201], [58, 202], [80, 203], [81, 204], [81, 205], [84, 206], [87, 207], [90, 208], [93, 209], [96, 210], [58, 211], [99, 212], [100, 213], [100, 214], [103, 215], [58, 216], [106, 217], [107, 218], [107, 219], [110, 220], [113, 221], [116, 222], [119, 223], [122, 224], [123, 225], [123, 226], [126, 227], [127, 228], [130, 229], [131, 230], [131, 231], [134, 232], [138, 233], [60, 234], [141, 235], [142, 236], [142, 237], [151, 238], [154, 239], [157, 240], [160, 241], [163, 242], [65, 243], [166, 244], [167, 245], [167, 246], [171, 247], [65, 248], [174, 249], [175, 250], [175, 251], [178, 252], [181, 253], [184, 254], [185, 255], [186, 256], [189, 257], [190, 258], [191, 259], [194, 260], [195, 261], [195, 262], [198, 263], [202, 264], [202, 265], [80, 266], [203, 267], [205, 268], [84, 269], [206, 270], [206, 271], [87, 272], [207, 273], [90, 274], [208, 275], [208, 276], [93, 277], [209, 278], [209, 279], [96, 280], [210, 281], [211, 282], [99, 283], [212, 284], [214, 285], [214, 286], [103, 287], [215, 288], [216, 289], [106, 290], [217, 291], [219, 292], [219, 293], [110, 294], [220, 295], [113, 296], [221, 297], [221, 298], [116, 299], [222, 300], [119, 301], [223, 302], [223, 303], [122, 304], [224, 305], [225, 306], [123, 307], [226, 308], [126, 309], [227, 310], [127, 311], [228, 312], [130, 313], [229, 314], [229, 315], [230, 316], [230, 317], [131, 318], [231, 319], [231, 320], [134, 321], [232, 322], [138, 323], [233, 324], [233, 325], [234, 326], [141, 327], [235, 328], [151, 329], [238, 330], [154, 331], [239, 332], [157, 333], [240, 334], [160, 335], [241, 336], [163, 337], [242, 338], [243, 339], [166, 340], [244, 341], [246, 342], [246, 343], [171, 344], [247, 345], [248, 346], [174, 347], [249, 348], [251, 349], [251, 350], [178, 351], [252, 352], [181, 353], [253, 354], [184, 355], [254, 356], [185, 357], [255, 358], [186, 359], [256, 360], [189, 361], [257, 362], [190, 363], [258, 364], [191, 365], [259, 366], [194, 367], [260, 368], [261, 369], [195, 370], [262, 371], [262, 372], [198, 373], [263, 374], [266, 375], [269, 376], [270, 377], [271, 378], [272, 379], [272, 380], [274, 381], [275, 382], [276, 383], [277, 384], [278, 385], [279, 386], [279, 387], [280, 388], [283, 389], [286, 390], [287, 391], [290, 392], [293, 393], [294, 394], [296, 395], [297, 396], [298, 397], [299, 398], [299, 399], [301, 400], [301, 401], [303, 402], [304, 403], [225, 404], [306, 405], [307, 406], [307, 407], [309, 408], [311, 409], [311, 410], [313, 411], [313, 412], [315, 413], [316, 414], [230, 415], [317, 416], [131, 417], [318, 418], [320, 419], [321, 420], [323, 421], [324, 422], [327, 423], [329, 424], [329, 425], [331, 426], [331, 427], [333, 428], [333, 429], [335, 430], [335, 431], [337, 432], [340, 433], [343, 434], [344, 435], [344, 436], [347, 437], [350, 438], [351, 439], [353, 440], [353, 441], [355, 442], [357, 443], [357, 444], [359, 445], [359, 446], [361, 447], [361, 448], [363, 449], [363, 450], [365, 451], [365, 452], [367, 453], [367, 454], [261, 455], [369, 456], [195, 457], [370, 458], [372, 459], [373, 460], [387, 461], [304, 462], [403, 463], [404, 464], [309, 465], [408, 466], [316, 467], [414, 468], [230, 469], [415, 470], [417, 471], [318, 472], [418, 473], [455, 474], [455, 475], [457, 476], [370, 477], [458, 478], [462, 479], [465, 480], [467, 481], [467, 482], [469, 483], [469, 484], [415, 485], [470, 486], [472, 487], [477, 488], [485, 489], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 9], [18, 4], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 19], [27, 10], [28, 21], [29, 21], [30, 22], [31, 23], [32, 13], [33, 13], [34, 24], [35, 14], [36, 25], [37, 8], [38, 27], [39, 28], [40, 12], [41, 12], [42, 12], [43, 23], [44, 23], [45, 23], [46, 23], [47, 23], [48, 23], [49, 23], [50, 23], [51, 31], [52, 32], [53, 39], [54, 39], [55, 40], [56, 43], [57, 49], [58, 32], [59, 33], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 49], [66, 50], [67, 59], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 63], [74, 64], [75, 48], [76, 66], [77, 66], [78, 58], [79, 58], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 58], [93, 58], [94, 58], [95, 58], [96, 58], [97, 58], [98, 58], [99, 58], [100, 58], [101, 58], [102, 58], [103, 58], [104, 58], [105, 58], [106, 58], [107, 58], [108, 58], [109, 58], [110, 58], [111, 58], [112, 58], [113, 58], [114, 58], [115, 58], [116, 58], [117, 58], [118, 58], [119, 58], [120, 58], [121, 58], [122, 58], [123, 58], [124, 58], [125, 58], [126, 58], [127, 58], [128, 58], [129, 58], [130, 58], [131, 58], [132, 58], [133, 58], [134, 58], [135, 58], [136, 60], [137, 60], [138, 60], [139, 60], [140, 60], [141, 60], [142, 60], [143, 60], [144, 60], [145, 68], [146, 71], [147, 72], [148, 75], [149, 65], [150, 65], [151, 65], [152, 65], [153, 65], [154, 65], [155, 65], [156, 65], [157, 65], [158, 65], [159, 65], [160, 65], [161, 65], [162, 65], [163, 65], [164, 65], [165, 65], [166, 65], [167, 65], [168, 65], [169, 65], [170, 65], [171, 65], [172, 65], [173, 65], [174, 65], [175, 65], [176, 65], [177, 65], [178, 65], [179, 65], [180, 65], [181, 65], [182, 65], [183, 65], [184, 65], [185, 65], [186, 65], [187, 65], [188, 65], [189, 65], [190, 65], [191, 65], [192, 65], [193, 65], [194, 65], [195, 65], [196, 65], [197, 65], [198, 65], [199, 65], [200, 65], [201, 76], [202, 58], [203, 80], [204, 81], [205, 81], [206, 84], [207, 87], [208, 90], [209, 93], [210, 96], [211, 58], [212, 99], [213, 100], [214, 100], [215, 103], [216, 58], [217, 106], [218, 107], [219, 107], [220, 110], [221, 113], [222, 116], [223, 119], [224, 122], [225, 123], [226, 123], [227, 126], [228, 127], [229, 130], [230, 131], [231, 131], [232, 134], [233, 138], [234, 60], [235, 141], [236, 142], [237, 142], [238, 151], [239, 154], [240, 157], [241, 160], [242, 163], [243, 65], [244, 166], [245, 167], [246, 167], [247, 171], [248, 65], [249, 174], [250, 175], [251, 175], [252, 178], [253, 181], [254, 184], [255, 185], [256, 186], [257, 189], [258, 190], [259, 191], [260, 194], [261, 195], [262, 195], [263, 198], [264, 202], [265, 202], [266, 80], [267, 203], [268, 205], [269, 84], [270, 206], [271, 206], [272, 87], [273, 207], [274, 90], [275, 208], [276, 208], [277, 93], [278, 209], [279, 209], [280, 96], [281, 210], [282, 211], [283, 99], [284, 212], [285, 214], [286, 214], [287, 103], [288, 215], [289, 216], [290, 106], [291, 217], [292, 219], [293, 219], [294, 110], [295, 220], [296, 113], [297, 221], [298, 221], [299, 116], [300, 222], [301, 119], [302, 223], [303, 223], [304, 122], [305, 224], [306, 225], [307, 123], [308, 226], [309, 126], [310, 227], [311, 127], [312, 228], [313, 130], [314, 229], [315, 229], [316, 230], [317, 230], [318, 131], [319, 231], [320, 231], [321, 134], [322, 232], [323, 138], [324, 233], [325, 233], [326, 234], [327, 141], [328, 235], [329, 151], [330, 238], [331, 154], [332, 239], [333, 157], [334, 240], [335, 160], [336, 241], [337, 163], [338, 242], [339, 243], [340, 166], [341, 244], [342, 246], [343, 246], [344, 171], [345, 247], [346, 248], [347, 174], [348, 249], [349, 251], [350, 251], [351, 178], [352, 252], [353, 181], [354, 253], [355, 184], [356, 254], [357, 185], [358, 255], [359, 186], [360, 256], [361, 189], [362, 257], [363, 190], [364, 258], [365, 191], [366, 259], [367, 194], [368, 260], [369, 261], [370, 195], [371, 262], [372, 262], [373, 198], [374, 263], [375, 266], [376, 269], [377, 270], [378, 271], [379, 272], [380, 272], [381, 274], [382, 275], [383, 276], [384, 277], [385, 278], [386, 279], [387, 279], [388, 280], [389, 283], [390, 286], [391, 287], [392, 290], [393, 293], [394, 294], [395, 296], [396, 297], [397, 298], [398, 299], [399, 299], [400, 301], [401, 301], [402, 303], [403, 304], [404, 225], [405, 306], [406, 307], [407, 307], [408, 309], [409, 311], [410, 311], [411, 313], [412, 313], [413, 315], [414, 316], [415, 230], [416, 317], [417, 131], [418, 318], [419, 320], [420, 321], [421, 323], [422, 324], [423, 327], [424, 329], [425, 329], [426, 331], [427, 331], [428, 333], [429, 333], [430, 335], [431, 335], [432, 337], [433, 340], [434, 343], [435, 344], [436, 344], [437, 347], [438, 350], [439, 351], [440, 353], [441, 353], [442, 355], [443, 357], [444, 357], [445, 359], [446, 359], [447, 361], [448, 361], [449, 363], [450, 363], [451, 365], [452, 365], [453, 367], [454, 367], [455, 261], [456, 369], [457, 195], [458, 370], [459, 372], [460, 373], [461, 387], [462, 304], [463, 403], [464, 404], [465, 309], [466, 408], [467, 316], [468, 414], [469, 230], [470, 415], [471, 417], [472, 318], [473, 418], [474, 455], [475, 455], [476, 457], [477, 370], [478, 458], [479, 462], [480, 465], [481, 467], [482, 467], [483, 469], [484, 469], [485, 415], [486, 470], [487, 472], [488, 477], [489, 485], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489]]}, {"function_name": "jjStopStringLiteralDfa_7", "code": "private final int jjStopStringLiteralDfa_7(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         return -1;\n      default :\n         return -1;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [6, 11], [10, 12], [11, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 6], [12, 10], [13, 11], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "jjStartNfa_7", "code": "private final int jjStartNfa_7(int pos, long active0)\n{\n   return jjMoveNfa_7(jjStopStringLiteralDfa_7(pos, active0), pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStartNfaWithStates_7", "code": "private final int jjStartNfaWithStates_7(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_7(state, pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jjMoveStringLiteralDfa0_7", "code": "private final int jjMoveStringLiteralDfa0_7()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_7(0x5000L);\n      case 42:\n         return jjMoveStringLiteralDfa1_7(0x100000L);\n      default :\n         return jjMoveNfa_7(3, 0);", "ast_nodes": ["FUNC_DECL", "SWITCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [5, 9], [1, 10], [7, 11], [7, 12], [8, 13], [9, 14], [10, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 5], [10, 1], [11, 7], [12, 7], [13, 8], [14, 9], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "jjMoveStringLiteralDfa1_7", "code": "private final int jjMoveStringLiteralDfa1_7(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_7(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         else if ((active0 & 0x100000L) != 0L)\n            return jjStopAtPos(1, 20);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_7(1, 14, 0);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_7(0, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "PARAM", "CALL", "CATCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [6, 15], [3, 16], [10, 17], [10, 18], [13, 19], [13, 20], [13, 21], [15, 22], [6, 23], [16, 24], [17, 25], [18, 26], [18, 27], [19, 28], [19, 29], [20, 30], [21, 31], [21, 32], [23, 33], [25, 34], [25, 35], [25, 36], [27, 37], [28, 38], [29, 39], [29, 40], [30, 41], [30, 42], [32, 43], [38, 44], [38, 45], [40, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 6], [16, 3], [17, 10], [18, 10], [19, 13], [20, 13], [21, 13], [22, 15], [23, 6], [24, 16], [25, 17], [26, 18], [27, 18], [28, 19], [29, 19], [30, 20], [31, 21], [32, 21], [33, 23], [34, 25], [35, 25], [36, 25], [37, 27], [38, 28], [39, 29], [40, 29], [41, 30], [42, 30], [43, 32], [44, 38], [45, 38], [46, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "jjMoveNfa_7", "code": "private final int jjMoveNfa_7(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 12;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(9, 10);\n                  }\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 6:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 8:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(9, 10);\n                  break;\n               case 10:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 11:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(9, 10);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 92)\n                     jjCheckNAddStates(28, 31);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 5:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(5, 6);\n                  break;\n               case 7:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(7, 8);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjAddStates(32, 33);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 12 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "TRY", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [9, 17], [4, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [19, 26], [10, 27], [21, 28], [21, 29], [22, 30], [23, 31], [13, 32], [13, 33], [24, 34], [14, 35], [25, 36], [8, 37], [27, 38], [28, 39], [12, 40], [12, 41], [12, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [31, 51], [32, 52], [39, 53], [39, 54], [40, 55], [43, 56], [49, 57], [32, 58], [33, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [49, 65], [50, 66], [59, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [63, 73], [64, 74], [48, 75], [66, 76], [66, 77], [58, 78], [58, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [58, 92], [58, 93], [58, 94], [58, 95], [58, 96], [58, 97], [58, 98], [58, 99], [58, 100], [58, 101], [58, 102], [58, 103], [60, 104], [60, 105], [60, 106], [60, 107], [68, 108], [71, 109], [72, 110], [75, 111], [65, 112], [65, 113], [65, 114], [65, 115], [65, 116], [65, 117], [65, 118], [65, 119], [65, 120], [65, 121], [65, 122], [65, 123], [65, 124], [65, 125], [65, 126], [65, 127], [76, 128], [58, 129], [80, 130], [81, 131], [81, 132], [84, 133], [87, 134], [90, 135], [93, 136], [96, 137], [99, 138], [102, 139], [102, 140], [106, 141], [114, 142], [117, 143], [120, 144], [123, 145], [126, 146], [129, 147], [129, 148], [80, 149], [130, 150], [132, 151], [84, 152], [133, 153], [133, 154], [87, 155], [134, 156], [90, 157], [135, 158], [135, 159], [93, 160], [136, 161], [96, 162], [137, 163], [137, 164], [99, 165], [138, 166], [139, 167], [102, 168], [140, 169], [106, 170], [141, 171], [141, 172], [114, 173], [142, 174], [117, 175], [143, 176], [120, 177], [144, 178], [123, 179], [145, 180], [126, 181], [146, 182], [149, 183], [152, 184], [153, 185], [154, 186], [155, 187], [155, 188], [157, 189], [158, 190], [159, 191], [160, 192], [162, 193], [163, 194], [164, 195], [164, 196], [165, 197], [139, 198], [167, 199], [102, 200], [168, 201], [170, 202], [171, 203], [173, 204], [173, 205], [175, 206], [175, 207], [177, 208], [177, 209], [179, 210], [181, 211], [181, 212], [196, 213], [198, 214], [200, 215], [200, 216], [168, 217], [201, 218], [217, 219], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 9], [18, 4], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 19], [27, 10], [28, 21], [29, 21], [30, 22], [31, 23], [32, 13], [33, 13], [34, 24], [35, 14], [36, 25], [37, 8], [38, 27], [39, 28], [40, 12], [41, 12], [42, 12], [43, 23], [44, 23], [45, 23], [46, 23], [47, 23], [48, 23], [49, 23], [50, 23], [51, 31], [52, 32], [53, 39], [54, 39], [55, 40], [56, 43], [57, 49], [58, 32], [59, 33], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 49], [66, 50], [67, 59], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 63], [74, 64], [75, 48], [76, 66], [77, 66], [78, 58], [79, 58], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 58], [93, 58], [94, 58], [95, 58], [96, 58], [97, 58], [98, 58], [99, 58], [100, 58], [101, 58], [102, 58], [103, 58], [104, 60], [105, 60], [106, 60], [107, 60], [108, 68], [109, 71], [110, 72], [111, 75], [112, 65], [113, 65], [114, 65], [115, 65], [116, 65], [117, 65], [118, 65], [119, 65], [120, 65], [121, 65], [122, 65], [123, 65], [124, 65], [125, 65], [126, 65], [127, 65], [128, 76], [129, 58], [130, 80], [131, 81], [132, 81], [133, 84], [134, 87], [135, 90], [136, 93], [137, 96], [138, 99], [139, 102], [140, 102], [141, 106], [142, 114], [143, 117], [144, 120], [145, 123], [146, 126], [147, 129], [148, 129], [149, 80], [150, 130], [151, 132], [152, 84], [153, 133], [154, 133], [155, 87], [156, 134], [157, 90], [158, 135], [159, 135], [160, 93], [161, 136], [162, 96], [163, 137], [164, 137], [165, 99], [166, 138], [167, 139], [168, 102], [169, 140], [170, 106], [171, 141], [172, 141], [173, 114], [174, 142], [175, 117], [176, 143], [177, 120], [178, 144], [179, 123], [180, 145], [181, 126], [182, 146], [183, 149], [184, 152], [185, 153], [186, 154], [187, 155], [188, 155], [189, 157], [190, 158], [191, 159], [192, 160], [193, 162], [194, 163], [195, 164], [196, 164], [197, 165], [198, 139], [199, 167], [200, 102], [201, 168], [202, 170], [203, 171], [204, 173], [205, 173], [206, 175], [207, 175], [208, 177], [209, 177], [210, 179], [211, 181], [212, 181], [213, 196], [214, 198], [215, 200], [216, 200], [217, 168], [218, 201], [219, 217], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219]]}, {"function_name": "jjStopStringLiteralDfa_8", "code": "private final int jjStopStringLiteralDfa_8(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         return -1;\n      default :\n         return -1;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [6, 11], [10, 12], [11, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 6], [12, 10], [13, 11], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "jjStartNfa_8", "code": "private final int jjStartNfa_8(int pos, long active0)\n{\n   return jjMoveNfa_8(jjStopStringLiteralDfa_8(pos, active0), pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStartNfaWithStates_8", "code": "private final int jjStartNfaWithStates_8(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_8(state, pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jjMoveStringLiteralDfa0_8", "code": "private final int jjMoveStringLiteralDfa0_8()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_8(0x5000L);\n      default :\n         return jjMoveNfa_8(3, 0);", "ast_nodes": ["FUNC_DECL", "SWITCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [5, 8], [5, 9], [6, 10], [7, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 5], [9, 5], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jjMoveStringLiteralDfa1_8", "code": "private final int jjMoveStringLiteralDfa1_8(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_8(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_8(1, 14, 0);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_8(0, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "PARAM", "CALL", "CATCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [6, 15], [3, 16], [10, 17], [10, 18], [13, 19], [13, 20], [15, 21], [6, 22], [16, 23], [17, 24], [18, 25], [18, 26], [19, 27], [20, 28], [20, 29], [22, 30], [24, 31], [24, 32], [24, 33], [26, 34], [27, 35], [27, 36], [29, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 6], [16, 3], [17, 10], [18, 10], [19, 13], [20, 13], [21, 15], [22, 6], [23, 16], [24, 17], [25, 18], [26, 18], [27, 19], [28, 20], [29, 20], [30, 22], [31, 24], [32, 24], [33, 24], [34, 26], [35, 27], [36, 27], [37, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "jjMoveNfa_8", "code": "private final int jjMoveNfa_8(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 15;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x2400L & l) != 0L)\n                  {\n                     if (kind > 19)\n                        kind = 19;\n                  }\n                  else if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(12, 13);\n                  }\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 5;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 4:\n                  if ((0x2400L & l) != 0L && kind > 19)\n                     kind = 19;\n                  break;\n               case 5:\n                  if (curChar == 10 && kind > 19)\n                     kind = 19;\n                  break;\n               case 6:\n                  if (curChar == 13)\n                     jjstateSet[jjnewStateCnt++] = 5;\n                  break;\n               case 9:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 11:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(12, 13);\n                  break;\n               case 13:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 14:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(12, 13);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 92)\n                     jjCheckNAddStates(56, 59);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(8, 9);\n                  break;\n               case 10:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(10, 11);\n                  break;\n               case 12:\n                  if (curChar == 92)\n                     jjAddStates(60, 61);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 15 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "TRY", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [9, 17], [4, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [19, 26], [10, 27], [21, 28], [21, 29], [22, 30], [23, 31], [13, 32], [13, 33], [24, 34], [14, 35], [25, 36], [8, 37], [27, 38], [28, 39], [12, 40], [12, 41], [12, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [31, 51], [32, 52], [39, 53], [39, 54], [40, 55], [43, 56], [49, 57], [32, 58], [33, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [49, 65], [50, 66], [59, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [63, 73], [64, 74], [48, 75], [66, 76], [66, 77], [58, 78], [58, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [58, 92], [58, 93], [58, 94], [58, 95], [58, 96], [58, 97], [58, 98], [58, 99], [58, 100], [58, 101], [58, 102], [58, 103], [58, 104], [58, 105], [58, 106], [58, 107], [58, 108], [58, 109], [58, 110], [58, 111], [58, 112], [58, 113], [60, 114], [60, 115], [60, 116], [60, 117], [68, 118], [71, 119], [72, 120], [75, 121], [65, 122], [65, 123], [65, 124], [65, 125], [65, 126], [65, 127], [65, 128], [65, 129], [65, 130], [65, 131], [65, 132], [65, 133], [65, 134], [65, 135], [65, 136], [65, 137], [76, 138], [58, 139], [80, 140], [81, 141], [81, 142], [84, 143], [87, 144], [90, 145], [93, 146], [96, 147], [99, 148], [102, 149], [105, 150], [108, 151], [111, 152], [112, 153], [112, 154], [116, 155], [124, 156], [127, 157], [130, 158], [133, 159], [136, 160], [139, 161], [139, 162], [80, 163], [140, 164], [142, 165], [84, 166], [143, 167], [143, 168], [87, 169], [144, 170], [90, 171], [145, 172], [145, 173], [93, 174], [146, 175], [96, 176], [147, 177], [147, 178], [99, 179], [148, 180], [148, 181], [102, 182], [149, 183], [105, 184], [150, 185], [150, 186], [108, 187], [151, 188], [111, 189], [152, 190], [153, 191], [153, 192], [112, 193], [154, 194], [154, 195], [116, 196], [155, 197], [155, 198], [124, 199], [156, 200], [127, 201], [157, 202], [130, 203], [158, 204], [133, 205], [159, 206], [136, 207], [160, 208], [163, 209], [166, 210], [167, 211], [168, 212], [169, 213], [169, 214], [171, 215], [172, 216], [173, 217], [174, 218], [176, 219], [177, 220], [178, 221], [179, 222], [180, 223], [181, 224], [181, 225], [182, 226], [184, 227], [185, 228], [186, 229], [186, 230], [187, 231], [189, 232], [191, 233], [153, 234], [192, 235], [193, 236], [195, 237], [196, 238], [197, 239], [199, 240], [199, 241], [201, 242], [201, 243], [203, 244], [203, 245], [205, 246], [207, 247], [207, 248], [225, 249], [230, 250], [191, 251], [233, 252], [153, 253], [234, 254], [193, 255], [236, 256], [251, 257], [253, 258], [253, 259], [234, 260], [254, 261], [255, 262], [260, 263], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 9], [18, 4], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 19], [27, 10], [28, 21], [29, 21], [30, 22], [31, 23], [32, 13], [33, 13], [34, 24], [35, 14], [36, 25], [37, 8], [38, 27], [39, 28], [40, 12], [41, 12], [42, 12], [43, 23], [44, 23], [45, 23], [46, 23], [47, 23], [48, 23], [49, 23], [50, 23], [51, 31], [52, 32], [53, 39], [54, 39], [55, 40], [56, 43], [57, 49], [58, 32], [59, 33], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 49], [66, 50], [67, 59], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 63], [74, 64], [75, 48], [76, 66], [77, 66], [78, 58], [79, 58], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 58], [93, 58], [94, 58], [95, 58], [96, 58], [97, 58], [98, 58], [99, 58], [100, 58], [101, 58], [102, 58], [103, 58], [104, 58], [105, 58], [106, 58], [107, 58], [108, 58], [109, 58], [110, 58], [111, 58], [112, 58], [113, 58], [114, 60], [115, 60], [116, 60], [117, 60], [118, 68], [119, 71], [120, 72], [121, 75], [122, 65], [123, 65], [124, 65], [125, 65], [126, 65], [127, 65], [128, 65], [129, 65], [130, 65], [131, 65], [132, 65], [133, 65], [134, 65], [135, 65], [136, 65], [137, 65], [138, 76], [139, 58], [140, 80], [141, 81], [142, 81], [143, 84], [144, 87], [145, 90], [146, 93], [147, 96], [148, 99], [149, 102], [150, 105], [151, 108], [152, 111], [153, 112], [154, 112], [155, 116], [156, 124], [157, 127], [158, 130], [159, 133], [160, 136], [161, 139], [162, 139], [163, 80], [164, 140], [165, 142], [166, 84], [167, 143], [168, 143], [169, 87], [170, 144], [171, 90], [172, 145], [173, 145], [174, 93], [175, 146], [176, 96], [177, 147], [178, 147], [179, 99], [180, 148], [181, 148], [182, 102], [183, 149], [184, 105], [185, 150], [186, 150], [187, 108], [188, 151], [189, 111], [190, 152], [191, 153], [192, 153], [193, 112], [194, 154], [195, 154], [196, 116], [197, 155], [198, 155], [199, 124], [200, 156], [201, 127], [202, 157], [203, 130], [204, 158], [205, 133], [206, 159], [207, 136], [208, 160], [209, 163], [210, 166], [211, 167], [212, 168], [213, 169], [214, 169], [215, 171], [216, 172], [217, 173], [218, 174], [219, 176], [220, 177], [221, 178], [222, 179], [223, 180], [224, 181], [225, 181], [226, 182], [227, 184], [228, 185], [229, 186], [230, 186], [231, 187], [232, 189], [233, 191], [234, 153], [235, 192], [236, 193], [237, 195], [238, 196], [239, 197], [240, 199], [241, 199], [242, 201], [243, 201], [244, 203], [245, 203], [246, 205], [247, 207], [248, 207], [249, 225], [250, 230], [251, 191], [252, 233], [253, 153], [254, 234], [255, 193], [256, 236], [257, 251], [258, 253], [259, 253], [260, 234], [261, 254], [262, 255], [263, 260], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263]]}, {"function_name": "jjStopStringLiteralDfa_5", "code": "private final int jjStopStringLiteralDfa_5(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            return 5;\n         }\n         return -1;\n      case 1:\n         if ((active0 & 0x4000L) != 0L)\n            return 0;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 1;\n            return 5;\n         }\n         return -1;\n      case 2:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 2;\n            return 5;\n         }\n         return -1;\n      case 3:\n         if ((active0 & 0x4000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 3;\n            return 5;\n         }\n         if ((active0 & 0x2000000L) != 0L)\n            return 5;\n         return -1;\n      default :\n         return -1;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [4, 20], [5, 21], [6, 22], [6, 23], [7, 24], [9, 25], [10, 26], [12, 27], [13, 28], [14, 29], [14, 30], [16, 31], [17, 32], [18, 33], [18, 34], [22, 35], [23, 36], [23, 37], [7, 38], [24, 39], [24, 40], [10, 41], [26, 42], [26, 43], [13, 44], [28, 45], [28, 46], [29, 47], [30, 48], [30, 49], [17, 50], [32, 51], [32, 52], [33, 53], [34, 54], [34, 55], [37, 56], [38, 57], [7, 58], [7, 59], [40, 60], [41, 61], [10, 62], [10, 63], [43, 64], [44, 65], [13, 66], [13, 67], [46, 68], [49, 69], [50, 70], [17, 71], [52, 72], [55, 73], [58, 74], [59, 75], [62, 76], [63, 77], [66, 78], [67, 79], [71, 80], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 4], [21, 5], [22, 6], [23, 6], [24, 7], [25, 9], [26, 10], [27, 12], [28, 13], [29, 14], [30, 14], [31, 16], [32, 17], [33, 18], [34, 18], [35, 22], [36, 23], [37, 23], [38, 7], [39, 24], [40, 24], [41, 10], [42, 26], [43, 26], [44, 13], [45, 28], [46, 28], [47, 29], [48, 30], [49, 30], [50, 17], [51, 32], [52, 32], [53, 33], [54, 34], [55, 34], [56, 37], [57, 38], [58, 7], [59, 7], [60, 40], [61, 41], [62, 10], [63, 10], [64, 43], [65, 44], [66, 13], [67, 13], [68, 46], [69, 49], [70, 50], [71, 17], [72, 52], [73, 55], [74, 58], [75, 59], [76, 62], [77, 63], [78, 66], [79, 67], [80, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "jjStartNfa_5", "code": "private final int jjStartNfa_5(int pos, long active0)\n{\n   return jjMoveNfa_5(jjStopStringLiteralDfa_5(pos, active0), pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStartNfaWithStates_5", "code": "private final int jjStartNfaWithStates_5(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_5(state, pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jjMoveStringLiteralDfa0_5", "code": "private final int jjMoveStringLiteralDfa0_5()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_5(0x5000L);\n      case 102:\n         return jjMoveStringLiteralDfa1_5(0x4000000L);\n      case 116:\n         return jjMoveStringLiteralDfa1_5(0x2000000L);\n      case 123:\n         return jjStopAtPos(0, 58);\n      case 125:\n         return jjStopAtPos(0, 59);\n      default :\n         return jjMoveNfa_5(3, 0);", "ast_nodes": ["FUNC_DECL", "SWITCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [3, 14], [5, 15], [7, 16], [9, 17], [11, 18], [1, 19], [13, 20], [13, 21], [14, 22], [14, 23], [15, 24], [15, 25], [16, 26], [17, 27], [18, 28], [19, 29], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 3], [15, 5], [16, 7], [17, 9], [18, 11], [19, 1], [20, 13], [21, 13], [22, 14], [23, 14], [24, 15], [25, 15], [26, 16], [27, 17], [28, 18], [29, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "jjMoveStringLiteralDfa1_5", "code": "private final int jjMoveStringLiteralDfa1_5(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_5(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_5(1, 14, 0);\n         break;\n      case 97:\n         return jjMoveStringLiteralDfa2_5(active0, 0x4000000L);\n      case 114:\n         return jjMoveStringLiteralDfa2_5(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_5(0, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "PARAM", "CALL", "CATCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [6, 19], [3, 20], [9, 21], [11, 22], [14, 23], [14, 24], [17, 25], [17, 26], [19, 27], [6, 28], [20, 29], [21, 30], [22, 31], [23, 32], [24, 33], [24, 34], [25, 35], [26, 36], [26, 37], [28, 38], [32, 39], [32, 40], [32, 41], [34, 42], [35, 43], [35, 44], [37, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 6], [20, 3], [21, 9], [22, 11], [23, 14], [24, 14], [25, 17], [26, 17], [27, 19], [28, 6], [29, 20], [30, 21], [31, 22], [32, 23], [33, 24], [34, 24], [35, 25], [36, 26], [37, 26], [38, 28], [39, 32], [40, 32], [41, 32], [42, 34], [43, 35], [44, 35], [45, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jjMoveStringLiteralDfa2_5", "code": "private final int jjMoveStringLiteralDfa2_5(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_5(0, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_5(1, active0);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 108:\n         return jjMoveStringLiteralDfa3_5(active0, 0x4000000L);\n      case 117:\n         return jjMoveStringLiteralDfa3_5(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_5(1, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [8, 17], [3, 18], [9, 19], [10, 20], [10, 21], [13, 22], [15, 23], [17, 24], [8, 25], [18, 26], [19, 27], [22, 28], [23, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 8], [18, 3], [19, 9], [20, 10], [21, 10], [22, 13], [23, 15], [24, 17], [25, 8], [26, 18], [27, 19], [28, 22], [29, 23], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "jjMoveStringLiteralDfa3_5", "code": "private final int jjMoveStringLiteralDfa3_5(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_5(1, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_5(2, active0);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x2000000L) != 0L)\n            return jjStartNfaWithStates_5(3, 25, 5);\n         break;\n      case 115:\n         return jjMoveStringLiteralDfa4_5(active0, 0x4000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_5(2, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [8, 18], [3, 19], [9, 20], [10, 21], [10, 22], [13, 23], [16, 24], [16, 25], [18, 26], [8, 27], [19, 28], [20, 29], [23, 30], [24, 31], [25, 32], [25, 33], [27, 34], [31, 35], [31, 36], [31, 37], [33, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 8], [19, 3], [20, 9], [21, 10], [22, 10], [23, 13], [24, 16], [25, 16], [26, 18], [27, 8], [28, 19], [29, 20], [30, 23], [31, 24], [32, 25], [33, 25], [34, 27], [35, 31], [36, 31], [37, 31], [38, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "jjMoveStringLiteralDfa4_5", "code": "private final int jjMoveStringLiteralDfa4_5(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_5(2, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_5(3, active0);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x4000000L) != 0L)\n            return jjStartNfaWithStates_5(4, 26, 5);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_5(3, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [14, 22], [16, 23], [8, 24], [17, 25], [18, 26], [21, 27], [22, 28], [22, 29], [24, 30], [27, 31], [27, 32], [27, 33], [29, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 14], [23, 16], [24, 8], [25, 17], [26, 18], [27, 21], [28, 22], [29, 22], [30, 24], [31, 27], [32, 27], [33, 27], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "jjMoveNfa_5", "code": "private final int jjMoveNfa_5(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 16;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(13, 14);\n                  }\n                  else if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 5:\n                  if ((0x3ff200000000000L & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjstateSet[jjnewStateCnt++] = 5;\n                  break;\n               case 6:\n                  if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  break;\n               case 10:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 12:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(13, 14);\n                  break;\n               case 14:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 15:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(13, 14);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 56)\n                        kind = 56;\n                     jjCheckNAdd(5);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 4:\n               case 5:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjCheckNAdd(5);\n                  break;\n               case 7:\n                  if ((0x7fffffe07fffffeL & l) != 0L && kind > 57)\n                     kind = 57;\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(9, 10);\n                  break;\n               case 11:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(11, 12);\n                  break;\n               case 13:\n                  if (curChar == 92)\n                     jjAddStates(46, 47);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 16 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "TRY", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [9, 17], [4, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [19, 26], [10, 27], [21, 28], [21, 29], [22, 30], [23, 31], [13, 32], [13, 33], [24, 34], [14, 35], [25, 36], [8, 37], [27, 38], [28, 39], [12, 40], [12, 41], [12, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [31, 51], [32, 52], [39, 53], [39, 54], [40, 55], [43, 56], [49, 57], [32, 58], [33, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [49, 65], [50, 66], [59, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [63, 73], [64, 74], [48, 75], [66, 76], [66, 77], [58, 78], [58, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [58, 92], [58, 93], [58, 94], [58, 95], [58, 96], [58, 97], [58, 98], [58, 99], [58, 100], [58, 101], [58, 102], [58, 103], [58, 104], [58, 105], [58, 106], [58, 107], [58, 108], [58, 109], [58, 110], [60, 111], [60, 112], [60, 113], [60, 114], [68, 115], [71, 116], [72, 117], [75, 118], [65, 119], [65, 120], [65, 121], [65, 122], [65, 123], [65, 124], [65, 125], [65, 126], [65, 127], [65, 128], [65, 129], [65, 130], [65, 131], [65, 132], [65, 133], [65, 134], [65, 135], [65, 136], [65, 137], [65, 138], [65, 139], [65, 140], [65, 141], [65, 142], [65, 143], [65, 144], [65, 145], [76, 146], [58, 147], [80, 148], [81, 149], [81, 150], [84, 151], [87, 152], [90, 153], [93, 154], [58, 155], [96, 156], [97, 157], [97, 158], [100, 159], [103, 160], [106, 161], [109, 162], [109, 163], [113, 164], [121, 165], [124, 166], [127, 167], [130, 168], [133, 169], [65, 170], [136, 171], [137, 172], [137, 173], [141, 174], [144, 175], [144, 176], [147, 177], [147, 178], [80, 179], [148, 180], [150, 181], [84, 182], [151, 183], [151, 184], [87, 185], [152, 186], [90, 187], [153, 188], [153, 189], [93, 190], [154, 191], [155, 192], [96, 193], [156, 194], [158, 195], [158, 196], [100, 197], [159, 198], [103, 199], [160, 200], [160, 201], [106, 202], [161, 203], [162, 204], [162, 205], [109, 206], [163, 207], [113, 208], [164, 209], [164, 210], [121, 211], [165, 212], [124, 213], [166, 214], [127, 215], [167, 216], [130, 217], [168, 218], [133, 219], [169, 220], [169, 221], [170, 222], [136, 223], [171, 224], [173, 225], [173, 226], [141, 227], [174, 228], [175, 229], [144, 230], [176, 231], [176, 232], [179, 233], [182, 234], [183, 235], [184, 236], [185, 237], [185, 238], [187, 239], [188, 240], [189, 241], [190, 242], [193, 243], [196, 244], [197, 245], [199, 246], [200, 247], [201, 248], [201, 249], [202, 250], [204, 251], [162, 252], [205, 253], [109, 254], [206, 255], [208, 256], [209, 257], [211, 258], [211, 259], [213, 260], [213, 261], [215, 262], [215, 263], [217, 264], [217, 265], [219, 266], [220, 267], [221, 268], [221, 269], [223, 270], [226, 271], [227, 272], [175, 273], [229, 274], [144, 275], [230, 276], [232, 277], [249, 278], [204, 279], [251, 280], [252, 281], [254, 282], [254, 283], [206, 284], [255, 285], [269, 286], [273, 287], [273, 288], [275, 289], [230, 290], [276, 291], [279, 292], [284, 293], [290, 294], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 9], [18, 4], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 19], [27, 10], [28, 21], [29, 21], [30, 22], [31, 23], [32, 13], [33, 13], [34, 24], [35, 14], [36, 25], [37, 8], [38, 27], [39, 28], [40, 12], [41, 12], [42, 12], [43, 23], [44, 23], [45, 23], [46, 23], [47, 23], [48, 23], [49, 23], [50, 23], [51, 31], [52, 32], [53, 39], [54, 39], [55, 40], [56, 43], [57, 49], [58, 32], [59, 33], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 49], [66, 50], [67, 59], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 63], [74, 64], [75, 48], [76, 66], [77, 66], [78, 58], [79, 58], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 58], [93, 58], [94, 58], [95, 58], [96, 58], [97, 58], [98, 58], [99, 58], [100, 58], [101, 58], [102, 58], [103, 58], [104, 58], [105, 58], [106, 58], [107, 58], [108, 58], [109, 58], [110, 58], [111, 60], [112, 60], [113, 60], [114, 60], [115, 68], [116, 71], [117, 72], [118, 75], [119, 65], [120, 65], [121, 65], [122, 65], [123, 65], [124, 65], [125, 65], [126, 65], [127, 65], [128, 65], [129, 65], [130, 65], [131, 65], [132, 65], [133, 65], [134, 65], [135, 65], [136, 65], [137, 65], [138, 65], [139, 65], [140, 65], [141, 65], [142, 65], [143, 65], [144, 65], [145, 65], [146, 76], [147, 58], [148, 80], [149, 81], [150, 81], [151, 84], [152, 87], [153, 90], [154, 93], [155, 58], [156, 96], [157, 97], [158, 97], [159, 100], [160, 103], [161, 106], [162, 109], [163, 109], [164, 113], [165, 121], [166, 124], [167, 127], [168, 130], [169, 133], [170, 65], [171, 136], [172, 137], [173, 137], [174, 141], [175, 144], [176, 144], [177, 147], [178, 147], [179, 80], [180, 148], [181, 150], [182, 84], [183, 151], [184, 151], [185, 87], [186, 152], [187, 90], [188, 153], [189, 153], [190, 93], [191, 154], [192, 155], [193, 96], [194, 156], [195, 158], [196, 158], [197, 100], [198, 159], [199, 103], [200, 160], [201, 160], [202, 106], [203, 161], [204, 162], [205, 162], [206, 109], [207, 163], [208, 113], [209, 164], [210, 164], [211, 121], [212, 165], [213, 124], [214, 166], [215, 127], [216, 167], [217, 130], [218, 168], [219, 133], [220, 169], [221, 169], [222, 170], [223, 136], [224, 171], [225, 173], [226, 173], [227, 141], [228, 174], [229, 175], [230, 144], [231, 176], [232, 176], [233, 179], [234, 182], [235, 183], [236, 184], [237, 185], [238, 185], [239, 187], [240, 188], [241, 189], [242, 190], [243, 193], [244, 196], [245, 197], [246, 199], [247, 200], [248, 201], [249, 201], [250, 202], [251, 204], [252, 162], [253, 205], [254, 109], [255, 206], [256, 208], [257, 209], [258, 211], [259, 211], [260, 213], [261, 213], [262, 215], [263, 215], [264, 217], [265, 217], [266, 219], [267, 220], [268, 221], [269, 221], [270, 223], [271, 226], [272, 227], [273, 175], [274, 229], [275, 144], [276, 230], [277, 232], [278, 249], [279, 204], [280, 251], [281, 252], [282, 254], [283, 254], [284, 206], [285, 255], [286, 269], [287, 273], [288, 273], [289, 275], [290, 230], [291, 276], [292, 279], [293, 284], [294, 290], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294]]}, {"function_name": "jjStopStringLiteralDfa_1", "code": "private final int jjStopStringLiteralDfa_1(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            return 25;\n         }\n         if ((active0 & 0x10L) != 0L)\n            return 27;\n         return -1;\n      case 1:\n         if ((active0 & 0x4000L) != 0L)\n            return 0;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 1;\n            return 25;\n         }\n         return -1;\n      case 2:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 2;\n            return 25;\n         }\n         return -1;\n      case 3:\n         if ((active0 & 0x4000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 3;\n            return 25;\n         }\n         if ((active0 & 0x2000000L) != 0L)\n            return 25;\n         return -1;\n      default :\n         return -1;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [4, 21], [5, 22], [6, 23], [6, 24], [7, 25], [9, 26], [10, 27], [12, 28], [13, 29], [14, 30], [14, 31], [16, 32], [17, 33], [17, 34], [18, 35], [19, 36], [19, 37], [23, 38], [24, 39], [24, 40], [7, 41], [25, 42], [25, 43], [10, 44], [27, 45], [27, 46], [13, 47], [29, 48], [29, 49], [30, 50], [31, 51], [31, 52], [33, 53], [34, 54], [34, 55], [18, 56], [35, 57], [35, 58], [36, 59], [37, 60], [37, 61], [40, 62], [41, 63], [7, 64], [7, 65], [43, 66], [44, 67], [10, 68], [10, 69], [46, 70], [47, 71], [13, 72], [13, 73], [49, 74], [52, 75], [55, 76], [56, 77], [18, 78], [58, 79], [61, 80], [64, 81], [65, 82], [68, 83], [69, 84], [72, 85], [73, 86], [78, 87], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 4], [22, 5], [23, 6], [24, 6], [25, 7], [26, 9], [27, 10], [28, 12], [29, 13], [30, 14], [31, 14], [32, 16], [33, 17], [34, 17], [35, 18], [36, 19], [37, 19], [38, 23], [39, 24], [40, 24], [41, 7], [42, 25], [43, 25], [44, 10], [45, 27], [46, 27], [47, 13], [48, 29], [49, 29], [50, 30], [51, 31], [52, 31], [53, 33], [54, 34], [55, 34], [56, 18], [57, 35], [58, 35], [59, 36], [60, 37], [61, 37], [62, 40], [63, 41], [64, 7], [65, 7], [66, 43], [67, 44], [68, 10], [69, 10], [70, 46], [71, 47], [72, 13], [73, 13], [74, 49], [75, 52], [76, 55], [77, 56], [78, 18], [79, 58], [80, 61], [81, 64], [82, 65], [83, 68], [84, 69], [85, 72], [86, 73], [87, 78], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}, {"function_name": "jjStartNfa_1", "code": "private final int jjStartNfa_1(int pos, long active0)\n{\n   return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0), pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStartNfaWithStates_1", "code": "private final int jjStartNfaWithStates_1(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_1(state, pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jjMoveStringLiteralDfa0_1", "code": "private final int jjMoveStringLiteralDfa0_1()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_1(0x5000L);\n      case 41:\n         return jjStopAtPos(0, 7);\n      case 44:\n         return jjStopAtPos(0, 3);\n      case 46:\n         return jjMoveStringLiteralDfa1_1(0x10L);\n      case 91:\n         return jjStopAtPos(0, 1);\n      case 93:\n         return jjStopAtPos(0, 2);\n      case 102:\n         return jjMoveStringLiteralDfa1_1(0x4000000L);\n      case 116:\n         return jjMoveStringLiteralDfa1_1(0x2000000L);\n      case 123:\n         return jjStopAtPos(0, 58);\n      case 125:\n         return jjStopAtPos(0, 59);\n      default :\n         return jjMoveNfa_1(3, 0);", "ast_nodes": ["FUNC_DECL", "SWITCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [2, 23], [3, 24], [5, 25], [7, 26], [9, 27], [11, 28], [13, 29], [15, 30], [17, 31], [19, 32], [21, 33], [1, 34], [23, 35], [23, 36], [24, 37], [24, 38], [25, 39], [25, 40], [26, 41], [27, 42], [28, 43], [28, 44], [29, 45], [29, 46], [30, 47], [31, 48], [31, 49], [32, 50], [32, 51], [33, 52], [34, 53], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 2], [24, 3], [25, 5], [26, 7], [27, 9], [28, 11], [29, 13], [30, 15], [31, 17], [32, 19], [33, 21], [34, 1], [35, 23], [36, 23], [37, 24], [38, 24], [39, 25], [40, 25], [41, 26], [42, 27], [43, 28], [44, 28], [45, 29], [46, 29], [47, 30], [48, 31], [49, 31], [50, 32], [51, 32], [52, 33], [53, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "jjMoveStringLiteralDfa1_1", "code": "private final int jjMoveStringLiteralDfa1_1(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_1(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_1(1, 14, 0);\n         break;\n      case 46:\n         if ((active0 & 0x10L) != 0L)\n            return jjStopAtPos(1, 4);\n         break;\n      case 97:\n         return jjMoveStringLiteralDfa2_1(active0, 0x4000000L);\n      case 114:\n         return jjMoveStringLiteralDfa2_1(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_1(0, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "PARAM", "CALL", "CATCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [6, 22], [3, 23], [9, 24], [11, 25], [14, 26], [14, 27], [17, 28], [17, 29], [20, 30], [20, 31], [22, 32], [6, 33], [23, 34], [24, 35], [25, 36], [26, 37], [27, 38], [27, 39], [28, 40], [29, 41], [29, 42], [30, 43], [31, 44], [31, 45], [33, 46], [37, 47], [37, 48], [39, 49], [40, 50], [40, 51], [40, 52], [42, 53], [43, 54], [43, 55], [45, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 6], [23, 3], [24, 9], [25, 11], [26, 14], [27, 14], [28, 17], [29, 17], [30, 20], [31, 20], [32, 22], [33, 6], [34, 23], [35, 24], [36, 25], [37, 26], [38, 27], [39, 27], [40, 28], [41, 29], [42, 29], [43, 30], [44, 31], [45, 31], [46, 33], [47, 37], [48, 37], [49, 39], [50, 40], [51, 40], [52, 40], [53, 42], [54, 43], [55, 43], [56, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "jjMoveStringLiteralDfa2_1", "code": "private final int jjMoveStringLiteralDfa2_1(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_1(0, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_1(1, active0);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 108:\n         return jjMoveStringLiteralDfa3_1(active0, 0x4000000L);\n      case 117:\n         return jjMoveStringLiteralDfa3_1(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_1(1, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [8, 17], [3, 18], [9, 19], [10, 20], [10, 21], [13, 22], [15, 23], [17, 24], [8, 25], [18, 26], [19, 27], [22, 28], [23, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 8], [18, 3], [19, 9], [20, 10], [21, 10], [22, 13], [23, 15], [24, 17], [25, 8], [26, 18], [27, 19], [28, 22], [29, 23], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "jjMoveStringLiteralDfa3_1", "code": "private final int jjMoveStringLiteralDfa3_1(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_1(1, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_1(2, active0);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x2000000L) != 0L)\n            return jjStartNfaWithStates_1(3, 25, 25);\n         break;\n      case 115:\n         return jjMoveStringLiteralDfa4_1(active0, 0x4000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_1(2, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [8, 18], [3, 19], [9, 20], [10, 21], [10, 22], [13, 23], [16, 24], [16, 25], [18, 26], [8, 27], [19, 28], [20, 29], [23, 30], [24, 31], [25, 32], [25, 33], [27, 34], [31, 35], [31, 36], [31, 37], [33, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 8], [19, 3], [20, 9], [21, 10], [22, 10], [23, 13], [24, 16], [25, 16], [26, 18], [27, 8], [28, 19], [29, 20], [30, 23], [31, 24], [32, 25], [33, 25], [34, 27], [35, 31], [36, 31], [37, 31], [38, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "jjMoveStringLiteralDfa4_1", "code": "private final int jjMoveStringLiteralDfa4_1(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_1(2, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_1(3, active0);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x4000000L) != 0L)\n            return jjStartNfaWithStates_1(4, 26, 25);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_1(3, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [14, 22], [16, 23], [8, 24], [17, 25], [18, 26], [21, 27], [22, 28], [22, 29], [24, 30], [27, 31], [27, 32], [27, 33], [29, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 14], [23, 16], [24, 8], [25, 17], [26, 18], [27, 21], [28, 22], [29, 22], [30, 24], [31, 27], [32, 27], [33, 27], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "jjMoveNfa_1", "code": "private final int jjMoveNfa_1(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 36;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x3ff000000000000L & l) != 0L)\n                  {\n                     if (kind > 49)\n                        kind = 49;\n                     jjCheckNAdd(23);\n                  }\n                  else if ((0x100000200L & l) != 0L)\n                  {\n                     if (kind > 23)\n                        kind = 23;\n                     jjCheckNAdd(4);\n                  }\n                  else if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(33, 34);\n                  }\n                  else if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 27;\n                  else if (curChar == 45)\n                     jjCheckNAdd(23);\n                  else if (curChar == 39)\n                     jjCheckNAddStates(62, 64);\n                  else if (curChar == 34)\n                     jjCheckNAddStates(65, 67);\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 4:\n                  if ((0x100000200L & l) == 0L)\n                     break;\n                  if (kind > 23)\n                     kind = 23;\n                  jjCheckNAdd(4);\n                  break;\n               case 5:\n                  if (curChar == 34)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 6:\n                  if ((0xfffffffbffffdbffL & l) != 0L)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 7:\n                  if (curChar == 34 && kind > 24)\n                     kind = 24;\n                  break;\n               case 9:\n                  if ((0x8400000000L & l) != 0L)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 10:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(68, 71);\n                  break;\n               case 11:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 12:\n                  if ((0xf000000000000L & l) != 0L)\n                     jjstateSet[jjnewStateCnt++] = 13;\n                  break;\n               case 13:\n                  if ((0xff000000000000L & l) != 0L)\n                     jjCheckNAdd(11);\n                  break;\n               case 14:\n                  if (curChar == 32)\n                     jjAddStates(72, 73);\n                  break;\n               case 15:\n                  if (curChar == 10)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 16:\n                  if (curChar == 39)\n                     jjCheckNAddStates(62, 64);\n                  break;\n               case 17:\n                  if ((0xffffff7fffffdbffL & l) != 0L)\n                     jjCheckNAddStates(62, 64);\n                  break;\n               case 19:\n                  if (curChar == 32)\n                     jjAddStates(13, 14);\n                  break;\n               case 20:\n                  if (curChar == 10)\n                     jjCheckNAddStates(62, 64);\n                  break;\n               case 21:\n                  if (curChar == 39 && kind > 24)\n                     kind = 24;\n                  break;\n               case 22:\n                  if (curChar == 45)\n                     jjCheckNAdd(23);\n                  break;\n               case 23:\n                  if ((0x3ff000000000000L & l) == 0L)\n                     break;\n                  if (kind > 49)\n                     kind = 49;\n                  jjCheckNAdd(23);\n                  break;\n               case 25:\n                  if ((0x3ff200000000000L & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjstateSet[jjnewStateCnt++] = 25;\n                  break;\n               case 26:\n                  if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 27;\n                  break;\n               case 30:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 32:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(33, 34);\n                  break;\n               case 34:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 35:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(33, 34);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 56)\n                        kind = 56;\n                     jjCheckNAdd(25);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(74, 77);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 6:\n                  if ((0xffffffffefffffffL & l) != 0L)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjAddStates(78, 82);\n                  break;\n               case 9:\n                  if ((0x14404410000000L & l) != 0L)\n                     jjCheckNAddStates(65, 67);\n                  break;\n               case 17:\n                  jjAddStates(62, 64);\n                  break;\n               case 18:\n                  if (curChar == 92)\n                     jjAddStates(13, 14);\n                  break;\n               case 24:\n               case 25:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjCheckNAdd(25);\n                  break;\n               case 27:\n                  if ((0x7fffffe07fffffeL & l) != 0L && kind > 57)\n                     kind = 57;\n                  break;\n               case 28:\n                  if (curChar == 92)\n                     jjCheckNAddStates(74, 77);\n                  break;\n               case 29:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(29, 30);\n                  break;\n               case 31:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(31, 32);\n                  break;\n               case 33:\n                  if (curChar == 92)\n                     jjAddStates(83, 84);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               case 6:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     jjAddStates(65, 67);\n                  break;\n               case 17:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2))\n                     jjAddStates(62, 64);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 36 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "TRY", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [9, 17], [4, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [19, 26], [10, 27], [21, 28], [21, 29], [22, 30], [23, 31], [13, 32], [13, 33], [24, 34], [14, 35], [25, 36], [8, 37], [27, 38], [28, 39], [12, 40], [12, 41], [12, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [31, 51], [32, 52], [39, 53], [39, 54], [40, 55], [43, 56], [49, 57], [32, 58], [33, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [49, 65], [50, 66], [59, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [63, 73], [64, 74], [48, 75], [66, 76], [66, 77], [58, 78], [58, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [58, 92], [58, 93], [58, 94], [58, 95], [58, 96], [58, 97], [58, 98], [58, 99], [58, 100], [58, 101], [58, 102], [58, 103], [58, 104], [58, 105], [58, 106], [58, 107], [58, 108], [58, 109], [58, 110], [58, 111], [58, 112], [58, 113], [58, 114], [58, 115], [58, 116], [58, 117], [58, 118], [58, 119], [58, 120], [58, 121], [58, 122], [58, 123], [58, 124], [58, 125], [58, 126], [58, 127], [58, 128], [58, 129], [58, 130], [58, 131], [58, 132], [58, 133], [58, 134], [58, 135], [58, 136], [58, 137], [58, 138], [58, 139], [58, 140], [58, 141], [58, 142], [58, 143], [58, 144], [58, 145], [58, 146], [58, 147], [58, 148], [58, 149], [58, 150], [58, 151], [58, 152], [58, 153], [58, 154], [58, 155], [58, 156], [58, 157], [58, 158], [58, 159], [58, 160], [58, 161], [58, 162], [58, 163], [58, 164], [58, 165], [58, 166], [60, 167], [60, 168], [60, 169], [60, 170], [60, 171], [60, 172], [60, 173], [60, 174], [60, 175], [60, 176], [68, 177], [71, 178], [72, 179], [75, 180], [65, 181], [65, 182], [65, 183], [65, 184], [65, 185], [65, 186], [65, 187], [65, 188], [65, 189], [65, 190], [65, 191], [65, 192], [65, 193], [65, 194], [65, 195], [65, 196], [65, 197], [65, 198], [65, 199], [65, 200], [65, 201], [65, 202], [65, 203], [65, 204], [65, 205], [65, 206], [65, 207], [65, 208], [65, 209], [65, 210], [65, 211], [65, 212], [65, 213], [65, 214], [65, 215], [65, 216], [65, 217], [65, 218], [65, 219], [65, 220], [65, 221], [76, 222], [58, 223], [80, 224], [81, 225], [81, 226], [84, 227], [87, 228], [90, 229], [93, 230], [58, 231], [96, 232], [97, 233], [97, 234], [58, 235], [100, 236], [101, 237], [101, 238], [104, 239], [107, 240], [110, 241], [113, 242], [116, 243], [119, 244], [122, 245], [125, 246], [128, 247], [131, 248], [134, 249], [137, 250], [140, 251], [143, 252], [146, 253], [149, 254], [58, 255], [152, 256], [153, 257], [153, 258], [156, 259], [159, 260], [162, 261], [165, 262], [165, 263], [169, 264], [172, 265], [175, 266], [183, 267], [186, 268], [189, 269], [192, 270], [195, 271], [65, 272], [198, 273], [199, 274], [199, 275], [203, 276], [65, 277], [208, 278], [211, 279], [214, 280], [217, 281], [220, 282], [220, 283], [223, 284], [223, 285], [80, 286], [224, 287], [226, 288], [84, 289], [227, 290], [227, 291], [87, 292], [228, 293], [90, 294], [229, 295], [229, 296], [93, 297], [230, 298], [231, 299], [96, 300], [232, 301], [234, 302], [234, 303], [235, 304], [100, 305], [236, 306], [238, 307], [238, 308], [104, 309], [239, 310], [107, 311], [240, 312], [240, 313], [110, 314], [241, 315], [113, 316], [242, 317], [116, 318], [243, 319], [243, 320], [119, 321], [244, 322], [122, 323], [245, 324], [125, 325], [246, 326], [128, 327], [247, 328], [247, 329], [131, 330], [248, 331], [248, 332], [134, 333], [249, 334], [249, 335], [137, 336], [250, 337], [250, 338], [140, 339], [251, 340], [251, 341], [143, 342], [252, 343], [252, 344], [146, 345], [253, 346], [253, 347], [149, 348], [254, 349], [255, 350], [152, 351], [256, 352], [258, 353], [258, 354], [156, 355], [259, 356], [159, 357], [260, 358], [260, 359], [162, 360], [261, 361], [262, 362], [262, 363], [165, 364], [263, 365], [263, 366], [169, 367], [172, 368], [175, 369], [266, 370], [266, 371], [183, 372], [267, 373], [186, 374], [268, 375], [189, 376], [269, 377], [192, 378], [270, 379], [195, 380], [271, 381], [271, 382], [272, 383], [198, 384], [273, 385], [275, 386], [275, 387], [203, 388], [276, 389], [277, 390], [277, 391], [208, 392], [278, 393], [278, 394], [211, 395], [279, 396], [214, 397], [280, 398], [280, 399], [217, 400], [281, 401], [282, 402], [220, 403], [283, 404], [283, 405], [286, 406], [289, 407], [290, 408], [291, 409], [292, 410], [292, 411], [294, 412], [295, 413], [296, 414], [297, 415], [300, 416], [303, 417], [305, 418], [308, 419], [309, 420], [311, 421], [312, 422], [313, 423], [314, 424], [314, 425], [316, 426], [316, 427], [318, 428], [318, 429], [320, 430], [321, 431], [321, 432], [323, 433], [323, 434], [325, 435], [325, 436], [327, 437], [329, 438], [330, 439], [332, 440], [333, 441], [333, 442], [335, 443], [336, 444], [336, 445], [338, 446], [339, 447], [339, 448], [341, 449], [342, 450], [343, 451], [344, 452], [345, 453], [345, 454], [347, 455], [348, 456], [348, 457], [351, 458], [354, 459], [355, 460], [357, 461], [358, 462], [359, 463], [359, 464], [360, 465], [362, 466], [362, 467], [262, 468], [363, 469], [363, 470], [165, 471], [364, 472], [366, 473], [367, 474], [367, 475], [368, 476], [368, 477], [369, 478], [370, 479], [372, 480], [372, 481], [374, 482], [374, 483], [376, 484], [376, 485], [378, 486], [378, 487], [380, 488], [381, 489], [382, 490], [382, 491], [384, 492], [387, 493], [388, 494], [388, 495], [392, 496], [392, 497], [394, 498], [395, 499], [395, 500], [397, 501], [397, 502], [399, 503], [400, 504], [282, 505], [402, 506], [220, 507], [403, 508], [405, 509], [464, 510], [466, 511], [466, 512], [362, 513], [467, 514], [262, 515], [468, 516], [470, 517], [471, 518], [364, 519], [472, 520], [491, 521], [505, 522], [505, 523], [507, 524], [403, 525], [508, 526], [511, 527], [511, 528], [466, 529], [512, 530], [362, 531], [513, 532], [515, 533], [468, 534], [516, 535], [519, 536], [525, 537], [527, 538], [527, 539], [511, 540], [528, 541], [529, 542], [531, 543], [531, 544], [513, 545], [532, 546], [534, 547], [538, 548], [538, 549], [527, 550], [539, 551], [540, 552], [545, 553], [548, 554], [538, 555], [549, 556], [550, 557], [550, 558], [548, 559], [554, 560], [555, 561], [555, 562], [559, 563], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 9], [18, 4], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 19], [27, 10], [28, 21], [29, 21], [30, 22], [31, 23], [32, 13], [33, 13], [34, 24], [35, 14], [36, 25], [37, 8], [38, 27], [39, 28], [40, 12], [41, 12], [42, 12], [43, 23], [44, 23], [45, 23], [46, 23], [47, 23], [48, 23], [49, 23], [50, 23], [51, 31], [52, 32], [53, 39], [54, 39], [55, 40], [56, 43], [57, 49], [58, 32], [59, 33], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 49], [66, 50], [67, 59], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 63], [74, 64], [75, 48], [76, 66], [77, 66], [78, 58], [79, 58], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 58], [93, 58], [94, 58], [95, 58], [96, 58], [97, 58], [98, 58], [99, 58], [100, 58], [101, 58], [102, 58], [103, 58], [104, 58], [105, 58], [106, 58], [107, 58], [108, 58], [109, 58], [110, 58], [111, 58], [112, 58], [113, 58], [114, 58], [115, 58], [116, 58], [117, 58], [118, 58], [119, 58], [120, 58], [121, 58], [122, 58], [123, 58], [124, 58], [125, 58], [126, 58], [127, 58], [128, 58], [129, 58], [130, 58], [131, 58], [132, 58], [133, 58], [134, 58], [135, 58], [136, 58], [137, 58], [138, 58], [139, 58], [140, 58], [141, 58], [142, 58], [143, 58], [144, 58], [145, 58], [146, 58], [147, 58], [148, 58], [149, 58], [150, 58], [151, 58], [152, 58], [153, 58], [154, 58], [155, 58], [156, 58], [157, 58], [158, 58], [159, 58], [160, 58], [161, 58], [162, 58], [163, 58], [164, 58], [165, 58], [166, 58], [167, 60], [168, 60], [169, 60], [170, 60], [171, 60], [172, 60], [173, 60], [174, 60], [175, 60], [176, 60], [177, 68], [178, 71], [179, 72], [180, 75], [181, 65], [182, 65], [183, 65], [184, 65], [185, 65], [186, 65], [187, 65], [188, 65], [189, 65], [190, 65], [191, 65], [192, 65], [193, 65], [194, 65], [195, 65], [196, 65], [197, 65], [198, 65], [199, 65], [200, 65], [201, 65], [202, 65], [203, 65], [204, 65], [205, 65], [206, 65], [207, 65], [208, 65], [209, 65], [210, 65], [211, 65], [212, 65], [213, 65], [214, 65], [215, 65], [216, 65], [217, 65], [218, 65], [219, 65], [220, 65], [221, 65], [222, 76], [223, 58], [224, 80], [225, 81], [226, 81], [227, 84], [228, 87], [229, 90], [230, 93], [231, 58], [232, 96], [233, 97], [234, 97], [235, 58], [236, 100], [237, 101], [238, 101], [239, 104], [240, 107], [241, 110], [242, 113], [243, 116], [244, 119], [245, 122], [246, 125], [247, 128], [248, 131], [249, 134], [250, 137], [251, 140], [252, 143], [253, 146], [254, 149], [255, 58], [256, 152], [257, 153], [258, 153], [259, 156], [260, 159], [261, 162], [262, 165], [263, 165], [264, 169], [265, 172], [266, 175], [267, 183], [268, 186], [269, 189], [270, 192], [271, 195], [272, 65], [273, 198], [274, 199], [275, 199], [276, 203], [277, 65], [278, 208], [279, 211], [280, 214], [281, 217], [282, 220], [283, 220], [284, 223], [285, 223], [286, 80], [287, 224], [288, 226], [289, 84], [290, 227], [291, 227], [292, 87], [293, 228], [294, 90], [295, 229], [296, 229], [297, 93], [298, 230], [299, 231], [300, 96], [301, 232], [302, 234], [303, 234], [304, 235], [305, 100], [306, 236], [307, 238], [308, 238], [309, 104], [310, 239], [311, 107], [312, 240], [313, 240], [314, 110], [315, 241], [316, 113], [317, 242], [318, 116], [319, 243], [320, 243], [321, 119], [322, 244], [323, 122], [324, 245], [325, 125], [326, 246], [327, 128], [328, 247], [329, 247], [330, 131], [331, 248], [332, 248], [333, 134], [334, 249], [335, 249], [336, 137], [337, 250], [338, 250], [339, 140], [340, 251], [341, 251], [342, 143], [343, 252], [344, 252], [345, 146], [346, 253], [347, 253], [348, 149], [349, 254], [350, 255], [351, 152], [352, 256], [353, 258], [354, 258], [355, 156], [356, 259], [357, 159], [358, 260], [359, 260], [360, 162], [361, 261], [362, 262], [363, 262], [364, 165], [365, 263], [366, 263], [367, 169], [368, 172], [369, 175], [370, 266], [371, 266], [372, 183], [373, 267], [374, 186], [375, 268], [376, 189], [377, 269], [378, 192], [379, 270], [380, 195], [381, 271], [382, 271], [383, 272], [384, 198], [385, 273], [386, 275], [387, 275], [388, 203], [389, 276], [390, 277], [391, 277], [392, 208], [393, 278], [394, 278], [395, 211], [396, 279], [397, 214], [398, 280], [399, 280], [400, 217], [401, 281], [402, 282], [403, 220], [404, 283], [405, 283], [406, 286], [407, 289], [408, 290], [409, 291], [410, 292], [411, 292], [412, 294], [413, 295], [414, 296], [415, 297], [416, 300], [417, 303], [418, 305], [419, 308], [420, 309], [421, 311], [422, 312], [423, 313], [424, 314], [425, 314], [426, 316], [427, 316], [428, 318], [429, 318], [430, 320], [431, 321], [432, 321], [433, 323], [434, 323], [435, 325], [436, 325], [437, 327], [438, 329], [439, 330], [440, 332], [441, 333], [442, 333], [443, 335], [444, 336], [445, 336], [446, 338], [447, 339], [448, 339], [449, 341], [450, 342], [451, 343], [452, 344], [453, 345], [454, 345], [455, 347], [456, 348], [457, 348], [458, 351], [459, 354], [460, 355], [461, 357], [462, 358], [463, 359], [464, 359], [465, 360], [466, 362], [467, 362], [468, 262], [469, 363], [470, 363], [471, 165], [472, 364], [473, 366], [474, 367], [475, 367], [476, 368], [477, 368], [478, 369], [479, 370], [480, 372], [481, 372], [482, 374], [483, 374], [484, 376], [485, 376], [486, 378], [487, 378], [488, 380], [489, 381], [490, 382], [491, 382], [492, 384], [493, 387], [494, 388], [495, 388], [496, 392], [497, 392], [498, 394], [499, 395], [500, 395], [501, 397], [502, 397], [503, 399], [504, 400], [505, 282], [506, 402], [507, 220], [508, 403], [509, 405], [510, 464], [511, 466], [512, 466], [513, 362], [514, 467], [515, 262], [516, 468], [517, 470], [518, 471], [519, 364], [520, 472], [521, 491], [522, 505], [523, 505], [524, 507], [525, 403], [526, 508], [527, 511], [528, 511], [529, 466], [530, 512], [531, 362], [532, 513], [533, 515], [534, 468], [535, 516], [536, 519], [537, 525], [538, 527], [539, 527], [540, 511], [541, 528], [542, 529], [543, 531], [544, 531], [545, 513], [546, 532], [547, 534], [548, 538], [549, 538], [550, 527], [551, 539], [552, 540], [553, 545], [554, 548], [555, 538], [556, 549], [557, 550], [558, 550], [559, 548], [560, 554], [561, 555], [562, 555], [563, 559], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450], [451, 451], [452, 452], [453, 453], [454, 454], [455, 455], [456, 456], [457, 457], [458, 458], [459, 459], [460, 460], [461, 461], [462, 462], [463, 463], [464, 464], [465, 465], [466, 466], [467, 467], [468, 468], [469, 469], [470, 470], [471, 471], [472, 472], [473, 473], [474, 474], [475, 475], [476, 476], [477, 477], [478, 478], [479, 479], [480, 480], [481, 481], [482, 482], [483, 483], [484, 484], [485, 485], [486, 486], [487, 487], [488, 488], [489, 489], [490, 490], [491, 491], [492, 492], [493, 493], [494, 494], [495, 495], [496, 496], [497, 497], [498, 498], [499, 499], [500, 500], [501, 501], [502, 502], [503, 503], [504, 504], [505, 505], [506, 506], [507, 507], [508, 508], [509, 509], [510, 510], [511, 511], [512, 512], [513, 513], [514, 514], [515, 515], [516, 516], [517, 517], [518, 518], [519, 519], [520, 520], [521, 521], [522, 522], [523, 523], [524, 524], [525, 525], [526, 526], [527, 527], [528, 528], [529, 529], [530, 530], [531, 531], [532, 532], [533, 533], [534, 534], [535, 535], [536, 536], [537, 537], [538, 538], [539, 539], [540, 540], [541, 541], [542, 542], [543, 543], [544, 544], [545, 545], [546, 546], [547, 547], [548, 548], [549, 549], [550, 550], [551, 551], [552, 552], [553, 553], [554, 554], [555, 555], [556, 556], [557, 557], [558, 558], [559, 559], [560, 560], [561, 561], [562, 562], [563, 563]]}, {"function_name": "jjStopStringLiteralDfa_2", "code": "private final int jjStopStringLiteralDfa_2(int pos, long active0)\n{\n   switch (pos)\n   {\n      case 0:\n         if ((active0 & 0xd000L) != 0L)\n            return 2;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            return 5;\n         }\n         return -1;\n      case 1:\n         if ((active0 & 0x4000L) != 0L)\n            return 0;\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 1;\n            return 5;\n         }\n         return -1;\n      case 2:\n         if ((active0 & 0x6000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 2;\n            return 5;\n         }\n         return -1;\n      case 3:\n         if ((active0 & 0x4000000L) != 0L)\n         {\n            jjmatchedKind = 56;\n            jjmatchedPos = 3;\n            return 5;\n         }\n         if ((active0 & 0x2000000L) != 0L)\n            return 5;\n         return -1;\n      default :\n         return -1;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [4, 20], [5, 21], [6, 22], [6, 23], [7, 24], [9, 25], [10, 26], [12, 27], [13, 28], [14, 29], [14, 30], [16, 31], [17, 32], [18, 33], [18, 34], [22, 35], [23, 36], [23, 37], [7, 38], [24, 39], [24, 40], [10, 41], [26, 42], [26, 43], [13, 44], [28, 45], [28, 46], [29, 47], [30, 48], [30, 49], [17, 50], [32, 51], [32, 52], [33, 53], [34, 54], [34, 55], [37, 56], [38, 57], [7, 58], [7, 59], [40, 60], [41, 61], [10, 62], [10, 63], [43, 64], [44, 65], [13, 66], [13, 67], [46, 68], [49, 69], [50, 70], [17, 71], [52, 72], [55, 73], [58, 74], [59, 75], [62, 76], [63, 77], [66, 78], [67, 79], [71, 80], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 4], [21, 5], [22, 6], [23, 6], [24, 7], [25, 9], [26, 10], [27, 12], [28, 13], [29, 14], [30, 14], [31, 16], [32, 17], [33, 18], [34, 18], [35, 22], [36, 23], [37, 23], [38, 7], [39, 24], [40, 24], [41, 10], [42, 26], [43, 26], [44, 13], [45, 28], [46, 28], [47, 29], [48, 30], [49, 30], [50, 17], [51, 32], [52, 32], [53, 33], [54, 34], [55, 34], [56, 37], [57, 38], [58, 7], [59, 7], [60, 40], [61, 41], [62, 10], [63, 10], [64, 43], [65, 44], [66, 13], [67, 13], [68, 46], [69, 49], [70, 50], [71, 17], [72, 52], [73, 55], [74, 58], [75, 59], [76, 62], [77, 63], [78, 66], [79, 67], [80, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "jjStartNfa_2", "code": "private final int jjStartNfa_2(int pos, long active0)\n{\n   return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0), pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "jjStartNfaWithStates_2", "code": "private final int jjStartNfaWithStates_2(int pos, int kind, int state)\n{\n   jjmatchedKind = kind;\n   jjmatchedPos = pos;\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) { return pos + 1; }\n   return jjMoveNfa_2(state, pos + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [6, 10], [7, 11], [2, 12], [10, 13], [11, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 6], [11, 7], [12, 2], [13, 10], [14, 11], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "jjMoveStringLiteralDfa0_2", "code": "private final int jjMoveStringLiteralDfa0_2()\n{\n   switch(curChar)\n   {\n      case 35:\n         jjmatchedKind = 15;\n         return jjMoveStringLiteralDfa1_2(0x5000L);\n      case 40:\n         return jjStopAtPos(0, 5);\n      case 102:\n         return jjMoveStringLiteralDfa1_2(0x4000000L);\n      case 116:\n         return jjMoveStringLiteralDfa1_2(0x2000000L);\n      case 123:\n         return jjStopAtPos(0, 58);\n      case 125:\n         return jjStopAtPos(0, 59);\n      default :\n         return jjMoveNfa_2(3, 0);", "ast_nodes": ["FUNC_DECL", "SWITCH", "RETURN", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [5, 17], [7, 18], [9, 19], [11, 20], [13, 21], [1, 22], [15, 23], [15, 24], [16, 25], [16, 26], [17, 27], [17, 28], [18, 29], [19, 30], [20, 31], [20, 32], [21, 33], [22, 34], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 5], [18, 7], [19, 9], [20, 11], [21, 13], [22, 1], [23, 15], [24, 15], [25, 16], [26, 16], [27, 17], [28, 17], [29, 18], [30, 19], [31, 20], [32, 20], [33, 21], [34, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "jjMoveStringLiteralDfa1_2", "code": "private final int jjMoveStringLiteralDfa1_2(long active0)\n{\n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_2(0, active0);\n      return 1;\n   }\n   switch(curChar)\n   {\n      case 35:\n         if ((active0 & 0x1000L) != 0L)\n            return jjStopAtPos(1, 12);\n         break;\n      case 42:\n         if ((active0 & 0x4000L) != 0L)\n            return jjStartNfaWithStates_2(1, 14, 0);\n         break;\n      case 97:\n         return jjMoveStringLiteralDfa2_2(active0, 0x4000000L);\n      case 114:\n         return jjMoveStringLiteralDfa2_2(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_2(0, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "PARAM", "CALL", "CATCH", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [6, 19], [3, 20], [9, 21], [11, 22], [14, 23], [14, 24], [17, 25], [17, 26], [19, 27], [6, 28], [20, 29], [21, 30], [22, 31], [23, 32], [24, 33], [24, 34], [25, 35], [26, 36], [26, 37], [28, 38], [32, 39], [32, 40], [32, 41], [34, 42], [35, 43], [35, 44], [37, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 6], [20, 3], [21, 9], [22, 11], [23, 14], [24, 14], [25, 17], [26, 17], [27, 19], [28, 6], [29, 20], [30, 21], [31, 22], [32, 23], [33, 24], [34, 24], [35, 25], [36, 26], [37, 26], [38, 28], [39, 32], [40, 32], [41, 32], [42, 34], [43, 35], [44, 35], [45, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "jjMoveStringLiteralDfa2_2", "code": "private final int jjMoveStringLiteralDfa2_2(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_2(0, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_2(1, active0);\n      return 2;\n   }\n   switch(curChar)\n   {\n      case 108:\n         return jjMoveStringLiteralDfa3_2(active0, 0x4000000L);\n      case 117:\n         return jjMoveStringLiteralDfa3_2(active0, 0x2000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_2(1, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [8, 17], [3, 18], [9, 19], [10, 20], [10, 21], [13, 22], [15, 23], [17, 24], [8, 25], [18, 26], [19, 27], [22, 28], [23, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 8], [18, 3], [19, 9], [20, 10], [21, 10], [22, 13], [23, 15], [24, 17], [25, 8], [26, 18], [27, 19], [28, 22], [29, 23], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "jjMoveStringLiteralDfa3_2", "code": "private final int jjMoveStringLiteralDfa3_2(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_2(1, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_2(2, active0);\n      return 3;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x2000000L) != 0L)\n            return jjStartNfaWithStates_2(3, 25, 5);\n         break;\n      case 115:\n         return jjMoveStringLiteralDfa4_2(active0, 0x4000000L);\n      default :\n         break;\n   }\n   return jjStartNfa_2(2, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [8, 18], [3, 19], [9, 20], [10, 21], [10, 22], [13, 23], [16, 24], [16, 25], [18, 26], [8, 27], [19, 28], [20, 29], [23, 30], [24, 31], [25, 32], [25, 33], [27, 34], [31, 35], [31, 36], [31, 37], [33, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 8], [19, 3], [20, 9], [21, 10], [22, 10], [23, 13], [24, 16], [25, 16], [26, 18], [27, 8], [28, 19], [29, 20], [30, 23], [31, 24], [32, 25], [33, 25], [34, 27], [35, 31], [36, 31], [37, 31], [38, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "jjMoveStringLiteralDfa4_2", "code": "private final int jjMoveStringLiteralDfa4_2(long old0, long active0)\n{\n   if (((active0 &= old0)) == 0L)\n      return jjStartNfa_2(2, old0); \n   try { curChar = input_stream.readChar(); }\n   catch(java.io.IOException e) {\n      jjStopStringLiteralDfa_2(3, active0);\n      return 4;\n   }\n   switch(curChar)\n   {\n      case 101:\n         if ((active0 & 0x4000000L) != 0L)\n            return jjStartNfaWithStates_2(4, 26, 5);\n         break;\n      default :\n         break;\n   }\n   return jjStartNfa_2(3, active0);", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "TRY", "IF", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [4, 10], [7, 11], [2, 12], [2, 13], [2, 14], [2, 15], [8, 16], [3, 17], [9, 18], [10, 19], [10, 20], [14, 21], [14, 22], [16, 23], [8, 24], [17, 25], [18, 26], [21, 27], [22, 28], [22, 29], [24, 30], [27, 31], [27, 32], [27, 33], [29, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 4], [11, 7], [12, 2], [13, 2], [14, 2], [15, 2], [16, 8], [17, 3], [18, 9], [19, 10], [20, 10], [21, 14], [22, 14], [23, 16], [24, 8], [25, 17], [26, 18], [27, 21], [28, 22], [29, 22], [30, 24], [31, 27], [32, 27], [33, 27], [34, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "jjMoveNfa_2", "code": "private final int jjMoveNfa_2(int startState, int curPos)\n{\n   int[] nextStates;\n   int startsAt = 0;\n   jjnewStateCnt = 16;\n   int i = 1;\n   jjstateSet[0] = startState;\n   int j, kind = 0x7fffffff;\n   for (;;)\n   {\n      if (++jjround == 0x7fffffff)\n         ReInitRounds();\n      if (curChar < 64)\n      {\n         long l = 1L << curChar;\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if (curChar == 36)\n                  {\n                     if (kind > 10)\n                        kind = 10;\n                     jjCheckNAddTwoStates(13, 14);\n                  }\n                  else if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  else if (curChar == 35)\n                     jjstateSet[jjnewStateCnt++] = 2;\n                  break;\n               case 0:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 1;\n                  break;\n               case 1:\n                  if ((0xfffffff7ffffffffL & l) != 0L && kind > 13)\n                     kind = 13;\n                  break;\n               case 2:\n                  if (curChar == 42)\n                     jjstateSet[jjnewStateCnt++] = 0;\n                  break;\n               case 5:\n                  if ((0x3ff200000000000L & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjstateSet[jjnewStateCnt++] = 5;\n                  break;\n               case 6:\n                  if (curChar == 46)\n                     jjstateSet[jjnewStateCnt++] = 7;\n                  break;\n               case 10:\n                  if (curChar == 36 && kind > 10)\n                     kind = 10;\n                  break;\n               case 12:\n                  if (curChar == 36)\n                     jjCheckNAddTwoStates(13, 14);\n                  break;\n               case 14:\n                  if (curChar == 33 && kind > 11)\n                     kind = 11;\n                  break;\n               case 15:\n                  if (curChar != 36)\n                     break;\n                  if (kind > 10)\n                     kind = 10;\n                  jjCheckNAddTwoStates(13, 14);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else if (curChar < 128)\n      {\n         long l = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 3:\n                  if ((0x7fffffe87fffffeL & l) != 0L)\n                  {\n                     if (kind > 56)\n                        kind = 56;\n                     jjCheckNAdd(5);\n                  }\n                  else if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  break;\n               case 1:\n                  if (kind > 13)\n                     kind = 13;\n                  break;\n               case 4:\n               case 5:\n                  if ((0x7fffffe87fffffeL & l) == 0L)\n                     break;\n                  if (kind > 56)\n                     kind = 56;\n                  jjCheckNAdd(5);\n                  break;\n               case 7:\n                  if ((0x7fffffe07fffffeL & l) != 0L && kind > 57)\n                     kind = 57;\n                  break;\n               case 8:\n                  if (curChar == 92)\n                     jjCheckNAddStates(40, 43);\n                  break;\n               case 9:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(9, 10);\n                  break;\n               case 11:\n                  if (curChar == 92)\n                     jjCheckNAddTwoStates(11, 12);\n                  break;\n               case 13:\n                  if (curChar == 92)\n                     jjAddStates(46, 47);\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      else\n      {\n         int hiByte = (int)(curChar >> 8);\n         int i1 = hiByte >> 6;\n         long l1 = 1L << (hiByte & 077);\n         int i2 = (curChar & 0xff) >> 6;\n         long l2 = 1L << (curChar & 077);\n         MatchLoop: do\n         {\n            switch(jjstateSet[--i])\n            {\n               case 1:\n                  if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13)\n                     kind = 13;\n                  break;\n               default : break;\n            }\n         } while(i != startsAt);\n      }\n      if (kind != 0x7fffffff)\n      {\n         jjmatchedKind = kind;\n         jjmatchedPos = curPos;\n         kind = 0x7fffffff;\n      }\n      ++curPos;\n      if ((i = jjnewStateCnt) == (startsAt = 16 - (jjnewStateCnt = startsAt)))\n         return curPos;\n      try { curChar = input_stream.readChar(); }\n      catch(java.io.IOException e) { return curPos; }", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "TRY", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "SWITCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [9, 17], [4, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [19, 26], [10, 27], [21, 28], [21, 29], [22, 30], [23, 31], [13, 32], [13, 33], [24, 34], [14, 35], [25, 36], [8, 37], [27, 38], [28, 39], [12, 40], [12, 41], [12, 42], [23, 43], [23, 44], [23, 45], [23, 46], [23, 47], [23, 48], [23, 49], [23, 50], [31, 51], [32, 52], [39, 53], [39, 54], [40, 55], [43, 56], [49, 57], [32, 58], [33, 59], [43, 60], [44, 61], [45, 62], [46, 63], [47, 64], [49, 65], [50, 66], [59, 67], [61, 68], [61, 69], [62, 70], [62, 71], [63, 72], [63, 73], [64, 74], [48, 75], [66, 76], [66, 77], [58, 78], [58, 79], [58, 80], [58, 81], [58, 82], [58, 83], [58, 84], [58, 85], [58, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [58, 92], [58, 93], [58, 94], [58, 95], [58, 96], [58, 97], [58, 98], [58, 99], [58, 100], [58, 101], [58, 102], [58, 103], [58, 104], [58, 105], [58, 106], [58, 107], [58, 108], [58, 109], [58, 110], [60, 111], [60, 112], [60, 113], [60, 114], [68, 115], [71, 116], [72, 117], [75, 118], [65, 119], [65, 120], [65, 121], [65, 122], [65, 123], [65, 124], [65, 125], [65, 126], [65, 127], [65, 128], [65, 129], [65, 130], [65, 131], [65, 132], [65, 133], [65, 134], [65, 135], [65, 136], [65, 137], [65, 138], [65, 139], [65, 140], [65, 141], [65, 142], [65, 143], [65, 144], [65, 145], [76, 146], [58, 147], [80, 148], [81, 149], [81, 150], [84, 151], [87, 152], [90, 153], [93, 154], [58, 155], [96, 156], [97, 157], [97, 158], [100, 159], [103, 160], [106, 161], [109, 162], [109, 163], [113, 164], [121, 165], [124, 166], [127, 167], [130, 168], [133, 169], [65, 170], [136, 171], [137, 172], [137, 173], [141, 174], [144, 175], [144, 176], [147, 177], [147, 178], [80, 179], [148, 180], [150, 181], [84, 182], [151, 183], [151, 184], [87, 185], [152, 186], [90, 187], [153, 188], [153, 189], [93, 190], [154, 191], [155, 192], [96, 193], [156, 194], [158, 195], [158, 196], [100, 197], [159, 198], [103, 199], [160, 200], [160, 201], [106, 202], [161, 203], [162, 204], [162, 205], [109, 206], [163, 207], [113, 208], [164, 209], [164, 210], [121, 211], [165, 212], [124, 213], [166, 214], [127, 215], [167, 216], [130, 217], [168, 218], [133, 219], [169, 220], [169, 221], [170, 222], [136, 223], [171, 224], [173, 225], [173, 226], [141, 227], [174, 228], [175, 229], [144, 230], [176, 231], [176, 232], [179, 233], [182, 234], [183, 235], [184, 236], [185, 237], [185, 238], [187, 239], [188, 240], [189, 241], [190, 242], [193, 243], [196, 244], [197, 245], [199, 246], [200, 247], [201, 248], [201, 249], [202, 250], [204, 251], [162, 252], [205, 253], [109, 254], [206, 255], [208, 256], [209, 257], [211, 258], [211, 259], [213, 260], [213, 261], [215, 262], [215, 263], [217, 264], [217, 265], [219, 266], [220, 267], [221, 268], [221, 269], [223, 270], [226, 271], [227, 272], [175, 273], [229, 274], [144, 275], [230, 276], [232, 277], [249, 278], [204, 279], [251, 280], [252, 281], [254, 282], [254, 283], [206, 284], [255, 285], [269, 286], [273, 287], [273, 288], [275, 289], [230, 290], [276, 291], [279, 292], [284, 293], [290, 294], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 9], [18, 4], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 19], [27, 10], [28, 21], [29, 21], [30, 22], [31, 23], [32, 13], [33, 13], [34, 24], [35, 14], [36, 25], [37, 8], [38, 27], [39, 28], [40, 12], [41, 12], [42, 12], [43, 23], [44, 23], [45, 23], [46, 23], [47, 23], [48, 23], [49, 23], [50, 23], [51, 31], [52, 32], [53, 39], [54, 39], [55, 40], [56, 43], [57, 49], [58, 32], [59, 33], [60, 43], [61, 44], [62, 45], [63, 46], [64, 47], [65, 49], [66, 50], [67, 59], [68, 61], [69, 61], [70, 62], [71, 62], [72, 63], [73, 63], [74, 64], [75, 48], [76, 66], [77, 66], [78, 58], [79, 58], [80, 58], [81, 58], [82, 58], [83, 58], [84, 58], [85, 58], [86, 58], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 58], [93, 58], [94, 58], [95, 58], [96, 58], [97, 58], [98, 58], [99, 58], [100, 58], [101, 58], [102, 58], [103, 58], [104, 58], [105, 58], [106, 58], [107, 58], [108, 58], [109, 58], [110, 58], [111, 60], [112, 60], [113, 60], [114, 60], [115, 68], [116, 71], [117, 72], [118, 75], [119, 65], [120, 65], [121, 65], [122, 65], [123, 65], [124, 65], [125, 65], [126, 65], [127, 65], [128, 65], [129, 65], [130, 65], [131, 65], [132, 65], [133, 65], [134, 65], [135, 65], [136, 65], [137, 65], [138, 65], [139, 65], [140, 65], [141, 65], [142, 65], [143, 65], [144, 65], [145, 65], [146, 76], [147, 58], [148, 80], [149, 81], [150, 81], [151, 84], [152, 87], [153, 90], [154, 93], [155, 58], [156, 96], [157, 97], [158, 97], [159, 100], [160, 103], [161, 106], [162, 109], [163, 109], [164, 113], [165, 121], [166, 124], [167, 127], [168, 130], [169, 133], [170, 65], [171, 136], [172, 137], [173, 137], [174, 141], [175, 144], [176, 144], [177, 147], [178, 147], [179, 80], [180, 148], [181, 150], [182, 84], [183, 151], [184, 151], [185, 87], [186, 152], [187, 90], [188, 153], [189, 153], [190, 93], [191, 154], [192, 155], [193, 96], [194, 156], [195, 158], [196, 158], [197, 100], [198, 159], [199, 103], [200, 160], [201, 160], [202, 106], [203, 161], [204, 162], [205, 162], [206, 109], [207, 163], [208, 113], [209, 164], [210, 164], [211, 121], [212, 165], [213, 124], [214, 166], [215, 127], [216, 167], [217, 130], [218, 168], [219, 133], [220, 169], [221, 169], [222, 170], [223, 136], [224, 171], [225, 173], [226, 173], [227, 141], [228, 174], [229, 175], [230, 144], [231, 176], [232, 176], [233, 179], [234, 182], [235, 183], [236, 184], [237, 185], [238, 185], [239, 187], [240, 188], [241, 189], [242, 190], [243, 193], [244, 196], [245, 197], [246, 199], [247, 200], [248, 201], [249, 201], [250, 202], [251, 204], [252, 162], [253, 205], [254, 109], [255, 206], [256, 208], [257, 209], [258, 211], [259, 211], [260, 213], [261, 213], [262, 215], [263, 215], [264, 217], [265, 217], [266, 219], [267, 220], [268, 221], [269, 221], [270, 223], [271, 226], [272, 227], [273, 175], [274, 229], [275, 144], [276, 230], [277, 232], [278, 249], [279, 204], [280, 251], [281, 252], [282, 254], [283, 254], [284, 206], [285, 255], [286, 269], [287, 273], [288, 273], [289, 275], [290, 230], [291, 276], [292, 279], [293, 284], [294, 290], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294]]}, {"function_name": "jjCanMove_0", "code": "private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)\n{\n   switch(hiByte)\n   {\n      case 0:\n         return ((jjbitVec2[i2] & l2) != 0L);\n      default : \n         if ((jjbitVec0[i1] & l1) != 0L)\n            return true;\n         return false;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "IF", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [8, 12], [8, 13], [9, 14], [12, 15], [13, 16], [13, 17], [14, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 8], [13, 8], [14, 9], [15, 12], [16, 13], [17, 13], [18, 14], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "ReInit", "code": "public void ReInit(CharStream stream)\n{\n   jjmatchedPos = jjnewStateCnt = 0;\n   curLexState = defaultLexState;\n   input_stream = stream;\n   ReInitRounds();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "ReInitRounds", "code": "private final void ReInitRounds()\n{\n   int i;\n   jjround = 0x80000001;\n   for (i = 42; i-- > 0;)\n      jjrounds[i] = 0x80000000;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [1, 6], [3, 7], [4, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 1], [7, 3], [8, 4], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "ReInit", "code": "public void ReInit(CharStream stream, int lexState)\n{\n   ReInit(stream);\n   SwitchTo(lexState);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "SwitchTo", "code": "public void SwitchTo(int lexState)\n{\n   if (lexState >= 9 || lexState < 0)\n      throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n   else\n      curLexState = lexState;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [6, 9], [7, 10], [8, 11], [9, 12], [9, 13], [13, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 6], [10, 7], [11, 8], [12, 9], [13, 9], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jjFillToken", "code": "private final Token jjFillToken()\n{\n   Token t = Token.newToken(jjmatchedKind);\n   t.kind = jjmatchedKind;\n   String im = jjstrLiteralImages[jjmatchedKind];\n   t.image = (im == null) ? input_stream.GetImage() : im;\n   t.beginLine = input_stream.getBeginLine();\n   t.beginColumn = input_stream.getBeginColumn();\n   t.endLine = input_stream.getEndLine();\n   t.endColumn = input_stream.getEndColumn();\n   return t;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [3, 15], [14, 16], [14, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 3], [16, 14], [17, 14], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getNextToken", "code": "public final Token getNextToken() \n{\n  int kind;\n  Token specialToken = null;\n  Token matchedToken;\n  int curPos = 0;\n\n  EOFLoop :\n  for (;;)\n  {   \n   try   \n   {     \n      curChar = input_stream.BeginToken();\n   }     \n   catch(java.io.IOException e)\n   {        \n      jjmatchedKind = 0;\n      matchedToken = jjFillToken();\n      matchedToken.specialToken = specialToken;\n      return matchedToken;\n   }\n   image = null;\n   jjimageLen = 0;\n\n   for (;;)\n   {\n     switch(curLexState)\n     {\n       case 0:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_0();\n         break;\n       case 1:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_1();\n         if (jjmatchedPos == 0 && jjmatchedKind > 60)\n         {\n            jjmatchedKind = 60;\n         }\n         break;\n       case 2:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_2();\n         if (jjmatchedPos == 0 && jjmatchedKind > 60)\n         {\n            jjmatchedKind = 60;\n         }\n         break;\n       case 3:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_3();\n         break;\n       case 4:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_4();\n         if (jjmatchedPos == 0 && jjmatchedKind > 61)\n         {\n            jjmatchedKind = 61;\n         }\n         break;\n       case 5:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_5();\n         if (jjmatchedPos == 0 && jjmatchedKind > 60)\n         {\n            jjmatchedKind = 60;\n         }\n         break;\n       case 6:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_6();\n         if (jjmatchedPos == 0 && jjmatchedKind > 22)\n         {\n            jjmatchedKind = 22;\n         }\n         break;\n       case 7:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_7();\n         if (jjmatchedPos == 0 && jjmatchedKind > 22)\n         {\n            jjmatchedKind = 22;\n         }\n         break;\n       case 8:\n         jjmatchedKind = 0x7fffffff;\n         jjmatchedPos = 0;\n         curPos = jjMoveStringLiteralDfa0_8();\n         if (jjmatchedPos == 0 && jjmatchedKind > 22)\n         {\n            jjmatchedKind = 22;\n         }\n         break;\n     }\n     if (jjmatchedKind != 0x7fffffff)\n     {\n        if (jjmatchedPos + 1 < curPos)\n           input_stream.backup(curPos - jjmatchedPos - 1);\n        if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n        {\n           matchedToken = jjFillToken();\n           matchedToken.specialToken = specialToken;\n           TokenLexicalActions(matchedToken);\n       if (jjnewLexState[jjmatchedKind] != -1)\n         curLexState = jjnewLexState[jjmatchedKind];\n           return matchedToken;\n        }\n        else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n        {\n           if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n           {\n              matchedToken = jjFillToken();\n              if (specialToken == null)\n                 specialToken = matchedToken;\n              else\n              {\n                 matchedToken.specialToken = specialToken;\n                 specialToken = (specialToken.next = matchedToken);\n              }\n              SkipLexicalActions(matchedToken);\n           }\n           else \n              SkipLexicalActions(null);\n         if (jjnewLexState[jjmatchedKind] != -1)\n           curLexState = jjnewLexState[jjmatchedKind];\n           continue EOFLoop;\n        }\n        MoreLexicalActions();\n      if (jjnewLexState[jjmatchedKind] != -1)\n        curLexState = jjnewLexState[jjmatchedKind];\n        curPos = 0;\n        jjmatchedKind = 0x7fffffff;\n        try {\n           curChar = input_stream.readChar();\n           continue;\n        }\n        catch (java.io.IOException e1) { }\n     }\n     int error_line = input_stream.getEndLine();\n     int error_column = input_stream.getEndColumn();\n     String error_after = null;\n     boolean EOFSeen = false;\n     try { input_stream.readChar(); input_stream.backup(1); }\n     catch (java.io.IOException e1) {\n        EOFSeen = true;\n        error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n        if (curChar == '\\n' || curChar == '\\r') {\n           error_line++;\n           error_column = 0;\n        }\n        else\n           error_column++;\n     }\n     if (!EOFSeen) {\n        input_stream.backup(1);\n        error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n     }\n     throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CATCH", "THROW_RAISE", "IF", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "CATCH", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "TRY", "IF", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CATCH", "BREAK_CONTINUE", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [4, 9], [1, 10], [1, 11], [7, 12], [6, 13], [6, 14], [6, 15], [6, 16], [6, 17], [6, 18], [6, 19], [6, 20], [6, 21], [10, 22], [11, 23], [12, 24], [7, 25], [13, 26], [15, 27], [20, 28], [12, 29], [12, 30], [12, 31], [25, 32], [27, 33], [15, 34], [15, 35], [16, 36], [17, 37], [18, 38], [19, 39], [20, 40], [20, 41], [20, 42], [20, 43], [28, 44], [21, 45], [21, 46], [21, 47], [21, 48], [21, 49], [21, 50], [21, 51], [21, 52], [21, 53], [21, 54], [21, 55], [21, 56], [21, 57], [21, 58], [21, 59], [21, 60], [21, 61], [21, 62], [21, 63], [21, 64], [21, 65], [21, 66], [21, 67], [21, 68], [21, 69], [30, 70], [31, 71], [14, 72], [14, 73], [33, 74], [27, 75], [27, 76], [34, 77], [40, 78], [40, 79], [20, 80], [20, 81], [41, 82], [20, 83], [42, 84], [42, 85], [43, 86], [46, 87], [21, 88], [21, 89], [21, 90], [49, 91], [21, 92], [21, 93], [21, 94], [52, 95], [21, 96], [21, 97], [21, 98], [55, 99], [21, 100], [21, 101], [21, 102], [58, 103], [21, 104], [21, 105], [21, 106], [21, 107], [21, 108], [21, 109], [63, 110], [21, 111], [21, 112], [21, 113], [66, 114], [21, 115], [21, 116], [21, 117], [21, 118], [21, 119], [21, 120], [72, 121], [73, 122], [74, 123], [74, 124], [75, 125], [76, 126], [40, 127], [80, 128], [81, 129], [41, 130], [82, 131], [84, 132], [42, 133], [42, 134], [85, 135], [85, 136], [43, 137], [86, 138], [87, 139], [87, 140], [88, 141], [89, 142], [90, 143], [91, 144], [91, 145], [92, 146], [93, 147], [94, 148], [95, 149], [95, 150], [96, 151], [97, 152], [98, 153], [99, 154], [99, 155], [100, 156], [101, 157], [102, 158], [103, 159], [103, 160], [104, 161], [105, 162], [106, 163], [107, 164], [108, 165], [109, 166], [110, 167], [110, 168], [111, 169], [112, 170], [113, 171], [114, 172], [114, 173], [115, 174], [116, 175], [117, 176], [118, 177], [119, 178], [120, 179], [121, 180], [121, 181], [121, 182], [33, 183], [123, 184], [124, 185], [125, 186], [125, 187], [125, 188], [127, 189], [84, 190], [84, 191], [84, 192], [132, 193], [132, 194], [134, 195], [42, 196], [42, 197], [42, 198], [136, 199], [137, 200], [138, 201], [46, 202], [139, 203], [140, 204], [49, 205], [144, 206], [145, 207], [52, 208], [149, 209], [150, 210], [55, 211], [154, 212], [155, 213], [58, 214], [159, 215], [160, 216], [63, 217], [167, 218], [168, 219], [66, 220], [172, 221], [173, 222], [182, 223], [183, 224], [188, 225], [191, 226], [192, 227], [194, 228], [134, 229], [195, 230], [198, 231], [199, 232], [199, 233], [200, 234], [200, 235], [202, 236], [205, 237], [208, 238], [211, 239], [214, 240], [217, 241], [220, 242], [191, 243], [226, 244], [192, 245], [192, 246], [227, 247], [227, 248], [228, 249], [228, 250], [232, 251], [136, 252], [245, 253], [192, 254], [246, 255], [192, 256], [248, 257], [249, 258], [194, 259], [252, 260], [246, 261], [255, 262], [256, 263], [257, 264], [257, 265], [259, 266], [246, 267], [246, 268], [264, 269], [248, 270], [267, 271], [270, 272], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 4], [10, 1], [11, 1], [12, 7], [13, 6], [14, 6], [15, 6], [16, 6], [17, 6], [18, 6], [19, 6], [20, 6], [21, 6], [22, 10], [23, 11], [24, 12], [25, 7], [26, 13], [27, 15], [28, 20], [29, 12], [30, 12], [31, 12], [32, 25], [33, 27], [34, 15], [35, 15], [36, 16], [37, 17], [38, 18], [39, 19], [40, 20], [41, 20], [42, 20], [43, 20], [44, 28], [45, 21], [46, 21], [47, 21], [48, 21], [49, 21], [50, 21], [51, 21], [52, 21], [53, 21], [54, 21], [55, 21], [56, 21], [57, 21], [58, 21], [59, 21], [60, 21], [61, 21], [62, 21], [63, 21], [64, 21], [65, 21], [66, 21], [67, 21], [68, 21], [69, 21], [70, 30], [71, 31], [72, 14], [73, 14], [74, 33], [75, 27], [76, 27], [77, 34], [78, 40], [79, 40], [80, 20], [81, 20], [82, 41], [83, 20], [84, 42], [85, 42], [86, 43], [87, 46], [88, 21], [89, 21], [90, 21], [91, 49], [92, 21], [93, 21], [94, 21], [95, 52], [96, 21], [97, 21], [98, 21], [99, 55], [100, 21], [101, 21], [102, 21], [103, 58], [104, 21], [105, 21], [106, 21], [107, 21], [108, 21], [109, 21], [110, 63], [111, 21], [112, 21], [113, 21], [114, 66], [115, 21], [116, 21], [117, 21], [118, 21], [119, 21], [120, 21], [121, 72], [122, 73], [123, 74], [124, 74], [125, 75], [126, 76], [127, 40], [128, 80], [129, 81], [130, 41], [131, 82], [132, 84], [133, 42], [134, 42], [135, 85], [136, 85], [137, 43], [138, 86], [139, 87], [140, 87], [141, 88], [142, 89], [143, 90], [144, 91], [145, 91], [146, 92], [147, 93], [148, 94], [149, 95], [150, 95], [151, 96], [152, 97], [153, 98], [154, 99], [155, 99], [156, 100], [157, 101], [158, 102], [159, 103], [160, 103], [161, 104], [162, 105], [163, 106], [164, 107], [165, 108], [166, 109], [167, 110], [168, 110], [169, 111], [170, 112], [171, 113], [172, 114], [173, 114], [174, 115], [175, 116], [176, 117], [177, 118], [178, 119], [179, 120], [180, 121], [181, 121], [182, 121], [183, 33], [184, 123], [185, 124], [186, 125], [187, 125], [188, 125], [189, 127], [190, 84], [191, 84], [192, 84], [193, 132], [194, 132], [195, 134], [196, 42], [197, 42], [198, 42], [199, 136], [200, 137], [201, 138], [202, 46], [203, 139], [204, 140], [205, 49], [206, 144], [207, 145], [208, 52], [209, 149], [210, 150], [211, 55], [212, 154], [213, 155], [214, 58], [215, 159], [216, 160], [217, 63], [218, 167], [219, 168], [220, 66], [221, 172], [222, 173], [223, 182], [224, 183], [225, 188], [226, 191], [227, 192], [228, 194], [229, 134], [230, 195], [231, 198], [232, 199], [233, 199], [234, 200], [235, 200], [236, 202], [237, 205], [238, 208], [239, 211], [240, 214], [241, 217], [242, 220], [243, 191], [244, 226], [245, 192], [246, 192], [247, 227], [248, 227], [249, 228], [250, 228], [251, 232], [252, 136], [253, 245], [254, 192], [255, 246], [256, 192], [257, 248], [258, 249], [259, 194], [260, 252], [261, 246], [262, 255], [263, 256], [264, 257], [265, 257], [266, 259], [267, 246], [268, 246], [269, 264], [270, 248], [271, 267], [272, 270], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272]]}, {"function_name": "SkipLexicalActions", "code": "final void SkipLexicalActions(Token matchedToken)\n{\n   switch(jjmatchedKind)\n   {\n      case 60 :\n         if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        /*\n         * push every terminator character back into the stream\n         */\n\n        input_stream.backup(1);\n\n        inReference = false;\n\n        if ( debugPrint )\n            System.out.print(\"REF_TERM :\");\n\n        stateStackPop();\n         break;\n      case 61 :\n         if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        if ( debugPrint )\n            System.out.print(\"DIRECTIVE_TERM :\");\n\n        input_stream.backup(1);\n        inDirective = false;\n        stateStackPop();\n         break;\n      default :\n         break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [6, 15], [1, 16], [1, 17], [1, 18], [10, 19], [13, 20], [14, 21], [5, 22], [6, 23], [6, 24], [15, 25], [9, 26], [17, 27], [18, 28], [10, 29], [10, 30], [19, 31], [22, 32], [23, 33], [24, 34], [26, 35], [29, 36], [30, 37], [33, 38], [34, 39], [36, 40], [37, 41], [38, 42], [39, 43], [40, 44], [41, 45], [42, 46], [43, 47], [44, 48], [45, 49], [46, 50], [47, 51], [48, 52], [49, 53], [51, 54], [53, 55], [54, 56], [55, 57], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 6], [16, 1], [17, 1], [18, 1], [19, 10], [20, 13], [21, 14], [22, 5], [23, 6], [24, 6], [25, 15], [26, 9], [27, 17], [28, 18], [29, 10], [30, 10], [31, 19], [32, 22], [33, 23], [34, 24], [35, 26], [36, 29], [37, 30], [38, 33], [39, 34], [40, 36], [41, 37], [42, 38], [43, 39], [44, 40], [45, 41], [46, 42], [47, 43], [48, 44], [49, 45], [50, 46], [51, 47], [52, 48], [53, 49], [54, 51], [55, 53], [56, 54], [57, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "MoreLexicalActions", "code": "final void MoreLexicalActions()\n{\n   jjimageLen += (lengthOfMatch = jjmatchedPos + 1);\n   switch(jjmatchedKind)\n   {\n      case 10 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        if (! inComment)\n        {\n            /*\n             * if we find ourselves in REFERENCE, we need to pop down\n             * to end the previous ref\n             */\n\n            if (curLexState == REFERENCE)\n            {\n                inReference = false;\n                stateStackPop();\n            }\n\n            inReference = true;\n\n            if ( debugPrint )\n                System.out.print( \"$  : going to \" + REFERENCE );\n\n            stateStackPush();\n            SwitchTo(REFERENCE);\n        }\n         break;\n      case 11 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        if (! inComment)\n        {\n            /*\n             * if we find ourselves in REFERENCE, we need to pop down\n             * to end the previous ref\n             */\n\n            if (curLexState == REFERENCE)\n            {\n                inReference = false;\n                stateStackPop();\n            }\n\n            inReference = true;\n\n            if ( debugPrint )\n                System.out.print( \"$!  : going to \" + REFERENCE );\n\n            stateStackPush();\n            SwitchTo(REFERENCE);\n        }\n         break;\n      case 12 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        if (!inComment)\n        {\n            if (curLexState == REFERENCE)\n            {\n                inReference = false;\n                stateStackPop();\n            }\n\n            inComment = true;\n            stateStackPush();\n            SwitchTo(IN_SINGLE_LINE_COMMENT);\n        }\n         break;\n      case 13 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        input_stream.backup(1);\n        inComment = true;\n        stateStackPush();\n        SwitchTo( IN_FORMAL_COMMENT);\n         break;\n      case 14 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        inComment=true;\n        stateStackPush();\n        SwitchTo( IN_MULTI_LINE_COMMENT );\n         break;\n      case 15 :\n         if (image == null)\n              image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen)));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen));\n         jjimageLen = 0;\n        if (! inComment)\n        {\n            /*\n             * We can have the situation where #if($foo)$foo#end.\n             * We need to transition out of REFERENCE before going to DIRECTIVE.\n             * I don't really like this, but I can't think of a legal way\n             * you are going into DIRECTIVE while in REFERENCE.  -gmj\n             */\n\n            if (curLexState == REFERENCE || curLexState == REFMODIFIER )\n            {\n                inReference = false;\n                stateStackPop();\n            }\n\n            inDirective = true;\n\n            if ( debugPrint )\n                System.out.print(\"# :  going to \" + DIRECTIVE );\n\n            stateStackPush();\n            SwitchTo(PRE_DIRECTIVE);\n        }\n         break;\n      default : \n         break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "ASSIGN", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [2, 26], [1, 27], [6, 28], [1, 29], [1, 30], [1, 31], [1, 32], [9, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [12, 39], [1, 40], [16, 41], [1, 42], [20, 43], [1, 44], [24, 45], [26, 46], [5, 47], [5, 48], [27, 49], [6, 50], [6, 51], [28, 52], [31, 53], [32, 54], [9, 55], [9, 56], [33, 57], [36, 58], [37, 59], [38, 60], [12, 61], [12, 62], [39, 63], [15, 64], [40, 65], [16, 66], [16, 67], [41, 68], [19, 69], [19, 70], [42, 71], [20, 72], [20, 73], [43, 74], [23, 75], [23, 76], [44, 77], [24, 78], [24, 79], [45, 80], [46, 81], [5, 82], [5, 83], [5, 84], [48, 85], [50, 86], [51, 87], [55, 88], [56, 89], [61, 90], [62, 91], [15, 92], [15, 93], [15, 94], [64, 95], [66, 96], [67, 97], [19, 98], [19, 99], [19, 100], [70, 101], [72, 102], [73, 103], [23, 104], [23, 105], [23, 106], [76, 107], [78, 108], [79, 109], [47, 110], [84, 111], [85, 112], [85, 113], [87, 114], [89, 115], [91, 116], [94, 117], [97, 118], [69, 119], [100, 120], [103, 121], [75, 122], [106, 123], [109, 124], [110, 125], [48, 126], [48, 127], [114, 128], [115, 129], [116, 130], [64, 131], [64, 132], [118, 133], [119, 134], [70, 135], [70, 136], [121, 137], [122, 138], [76, 139], [76, 140], [124, 141], [125, 142], [127, 143], [132, 144], [134, 145], [136, 146], [138, 147], [140, 148], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 2], [27, 1], [28, 6], [29, 1], [30, 1], [31, 1], [32, 1], [33, 9], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 12], [40, 1], [41, 16], [42, 1], [43, 20], [44, 1], [45, 24], [46, 26], [47, 5], [48, 5], [49, 27], [50, 6], [51, 6], [52, 28], [53, 31], [54, 32], [55, 9], [56, 9], [57, 33], [58, 36], [59, 37], [60, 38], [61, 12], [62, 12], [63, 39], [64, 15], [65, 40], [66, 16], [67, 16], [68, 41], [69, 19], [70, 19], [71, 42], [72, 20], [73, 20], [74, 43], [75, 23], [76, 23], [77, 44], [78, 24], [79, 24], [80, 45], [81, 46], [82, 5], [83, 5], [84, 5], [85, 48], [86, 50], [87, 51], [88, 55], [89, 56], [90, 61], [91, 62], [92, 15], [93, 15], [94, 15], [95, 64], [96, 66], [97, 67], [98, 19], [99, 19], [100, 19], [101, 70], [102, 72], [103, 73], [104, 23], [105, 23], [106, 23], [107, 76], [108, 78], [109, 79], [110, 47], [111, 84], [112, 85], [113, 85], [114, 87], [115, 89], [116, 91], [117, 94], [118, 97], [119, 69], [120, 100], [121, 103], [122, 75], [123, 106], [124, 109], [125, 110], [126, 48], [127, 48], [128, 114], [129, 115], [130, 116], [131, 64], [132, 64], [133, 118], [134, 119], [135, 70], [136, 70], [137, 121], [138, 122], [139, 76], [140, 76], [141, 124], [142, 125], [143, 127], [144, 132], [145, 134], [146, 136], [147, 138], [148, 140], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148]]}, {"function_name": "TokenLexicalActions", "code": "final void TokenLexicalActions(Token matchedToken)\n{\n   switch(jjmatchedKind)\n   {\n      case 5 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        if (!inComment)\n            lparen++;\n\n        /*\n         * If in REFERENCE and we have seen the dot, then move\n         * to REFMOD2 -> Modifier()\n         */\n\n        if (curLexState == REFMODIFIER )\n            SwitchTo( REFMOD2 );\n         break;\n      case 6 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n       RPARENHandler();\n         break;\n      case 7 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        /*\n         * need to simply switch back to REFERENCE, not drop down the stack\n         * because we can (infinitely) chain, ala\n         * $foo.bar().blargh().woogie().doogie()\n         */\n\n        SwitchTo( REFERENCE );\n         break;\n      case 9 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        if (! inComment)\n        {\n            inDirective = true;\n\n            if ( debugPrint )\n                System.out.print(\"#set :  going to \" + DIRECTIVE );\n\n            stateStackPush();\n            inSet = true;\n            SwitchTo(DIRECTIVE);\n        }\n\n        /*\n         *  need the LPAREN action\n         */\n\n        if (!inComment)\n        {\n            lparen++;\n\n            /*\n             * If in REFERENCE and we have seen the dot, then move\n             * to REFMOD2 -> Modifier()\n             */\n\n            if (curLexState == REFMODIFIER )\n                SwitchTo( REFMOD2 );\n        }\n         break;\n      case 19 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n     inComment = false;\n     stateStackPop();\n         break;\n      case 20 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n    inComment = false;\n    stateStackPop();\n         break;\n      case 21 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n    inComment = false;\n    stateStackPop();\n         break;\n      case 24 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        /*\n         *  - if we are in DIRECTIVE and haven't seen ( yet, then also drop out.\n         *      don't forget to account for the beloved yet wierd #set\n         *  - finally, if we are in REFMOD2 (remember : $foo.bar( ) then \" is ok!\n         */\n\n         if( curLexState == DIRECTIVE && !inSet && lparen == 0)\n            stateStackPop();\n         break;\n      case 27 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        if ( debugPrint )\n            System.out.println(\" NEWLINE :\");\n\n        stateStackPop();\n\n        if (inSet)\n            inSet = false;\n\n        if (inDirective)\n            inDirective = false;\n         break;\n      case 43 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        inDirective = false;\n        stateStackPop();\n         break;\n      case 44 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        SwitchTo(DIRECTIVE);\n         break;\n      case 45 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        SwitchTo(DIRECTIVE);\n         break;\n      case 46 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        inDirective = false;\n        stateStackPop();\n         break;\n      case 47 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        matchedToken.kind = EOF;\n        fileDepth = 0;\n         break;\n      case 49 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        /*\n         * check to see if we are in set\n         *    ex.  #set $foo = $foo + 3\n         *  because we want to handle the \\n after\n         */\n\n        if ( lparen == 0 && !inSet && curLexState != REFMOD2)\n        {\n            stateStackPop();\n        }\n         break;\n      case 57 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        /*\n         * push the alpha char back into the stream so the following identifier\n         * is complete\n         */\n\n        input_stream.backup(1);\n\n        /*\n         * and munge the <DOT> so we just get a . when we have normal text that\n         * looks like a ref.ident\n         */\n\n        matchedToken.image = \".\";\n\n        if ( debugPrint )\n            System.out.print(\"DOT : switching to \" + REFMODIFIER);\n        SwitchTo(REFMODIFIER);\n         break;\n      case 59 :\n        if (image == null)\n            image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))));\n         else\n            image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));\n        stateStackPop();\n         break;\n      default : \n         break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [5, 66], [1, 67], [1, 68], [1, 69], [9, 70], [12, 71], [13, 72], [1, 73], [1, 74], [16, 75], [1, 76], [1, 77], [19, 78], [1, 79], [22, 80], [1, 81], [25, 82], [1, 83], [1, 84], [28, 85], [1, 86], [34, 87], [37, 88], [38, 89], [1, 90], [1, 91], [41, 92], [1, 93], [1, 94], [44, 95], [1, 96], [1, 97], [47, 98], [52, 99], [1, 100], [55, 101], [1, 102], [58, 103], [61, 104], [63, 105], [5, 106], [5, 107], [66, 108], [8, 109], [68, 110], [69, 111], [9, 112], [9, 113], [70, 114], [71, 115], [71, 116], [13, 117], [13, 118], [72, 119], [73, 120], [16, 121], [16, 122], [75, 123], [77, 124], [19, 125], [19, 126], [78, 127], [22, 128], [22, 129], [80, 130], [25, 131], [25, 132], [82, 133], [84, 134], [28, 135], [28, 136], [85, 137], [31, 138], [32, 139], [33, 140], [34, 141], [34, 142], [87, 143], [37, 144], [88, 145], [88, 146], [38, 147], [38, 148], [89, 149], [91, 150], [41, 151], [41, 152], [92, 153], [94, 154], [44, 155], [44, 156], [95, 157], [97, 158], [47, 159], [47, 160], [98, 161], [50, 162], [51, 163], [52, 164], [52, 165], [99, 166], [55, 167], [55, 168], [101, 169], [58, 170], [58, 171], [103, 172], [61, 173], [63, 174], [63, 175], [105, 176], [106, 177], [107, 178], [109, 179], [112, 180], [113, 181], [12, 182], [116, 183], [117, 184], [118, 185], [121, 186], [122, 187], [125, 188], [126, 189], [128, 190], [129, 191], [131, 192], [132, 193], [135, 194], [136, 195], [138, 196], [139, 197], [140, 198], [141, 199], [142, 200], [145, 201], [146, 202], [147, 203], [148, 204], [151, 205], [152, 206], [155, 207], [156, 208], [159, 209], [160, 210], [162, 211], [51, 212], [51, 213], [51, 214], [51, 215], [164, 216], [165, 217], [167, 218], [168, 219], [170, 220], [171, 221], [174, 222], [175, 223], [177, 224], [178, 225], [179, 226], [180, 227], [181, 228], [183, 229], [184, 230], [185, 231], [186, 232], [187, 233], [188, 234], [189, 235], [190, 236], [191, 237], [192, 238], [193, 239], [194, 240], [195, 241], [199, 242], [200, 243], [203, 244], [204, 245], [205, 246], [206, 247], [207, 248], [208, 249], [209, 250], [210, 251], [162, 252], [213, 253], [163, 254], [215, 255], [216, 256], [217, 257], [218, 258], [219, 259], [220, 260], [221, 261], [222, 262], [223, 263], [224, 264], [225, 265], [227, 266], [228, 267], [230, 268], [231, 269], [232, 270], [233, 271], [234, 272], [235, 273], [236, 274], [237, 275], [238, 276], [239, 277], [240, 278], [241, 279], [242, 280], [243, 281], [244, 282], [245, 283], [246, 284], [247, 285], [248, 286], [249, 287], [250, 288], [251, 289], [254, 290], [256, 291], [257, 292], [258, 293], [259, 294], [260, 295], [261, 296], [262, 297], [263, 298], [264, 299], [265, 300], [266, 301], [267, 302], [268, 303], [269, 304], [270, 305], [271, 306], [272, 307], [273, 308], [274, 309], [275, 310], [276, 311], [277, 312], [278, 313], [279, 314], [280, 315], [281, 316], [282, 317], [283, 318], [284, 319], [285, 320], [286, 321], [287, 322], [288, 323], [289, 324], [290, 325], [291, 326], [292, 327], [293, 328], [294, 329], [295, 330], [296, 331], [297, 332], [298, 333], [299, 334], [300, 335], [301, 336], [302, 337], [303, 338], [304, 339], [305, 340], [306, 341], [307, 342], [308, 343], [309, 344], [310, 345], [311, 346], [312, 347], [313, 348], [314, 349], [315, 350], [316, 351], [317, 352], [318, 353], [319, 354], [320, 355], [321, 356], [322, 357], [323, 358], [324, 359], [326, 360], [327, 361], [328, 362], [329, 363], [330, 364], [331, 365], [332, 366], [333, 367], [335, 368], [337, 369], [339, 370], [341, 371], [343, 372], [345, 373], [347, 374], [349, 375], [351, 376], [353, 377], [355, 378], [357, 379], [359, 380], [361, 381], [363, 382], [365, 383], [367, 384], [368, 385], [369, 386], [370, 387], [371, 388], [372, 389], [373, 390], [374, 391], [375, 392], [376, 393], [377, 394], [378, 395], [379, 396], [380, 397], [381, 398], [382, 399], [383, 400], [384, 401], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 5], [67, 1], [68, 1], [69, 1], [70, 9], [71, 12], [72, 13], [73, 1], [74, 1], [75, 16], [76, 1], [77, 1], [78, 19], [79, 1], [80, 22], [81, 1], [82, 25], [83, 1], [84, 1], [85, 28], [86, 1], [87, 34], [88, 37], [89, 38], [90, 1], [91, 1], [92, 41], [93, 1], [94, 1], [95, 44], [96, 1], [97, 1], [98, 47], [99, 52], [100, 1], [101, 55], [102, 1], [103, 58], [104, 61], [105, 63], [106, 5], [107, 5], [108, 66], [109, 8], [110, 68], [111, 69], [112, 9], [113, 9], [114, 70], [115, 71], [116, 71], [117, 13], [118, 13], [119, 72], [120, 73], [121, 16], [122, 16], [123, 75], [124, 77], [125, 19], [126, 19], [127, 78], [128, 22], [129, 22], [130, 80], [131, 25], [132, 25], [133, 82], [134, 84], [135, 28], [136, 28], [137, 85], [138, 31], [139, 32], [140, 33], [141, 34], [142, 34], [143, 87], [144, 37], [145, 88], [146, 88], [147, 38], [148, 38], [149, 89], [150, 91], [151, 41], [152, 41], [153, 92], [154, 94], [155, 44], [156, 44], [157, 95], [158, 97], [159, 47], [160, 47], [161, 98], [162, 50], [163, 51], [164, 52], [165, 52], [166, 99], [167, 55], [168, 55], [169, 101], [170, 58], [171, 58], [172, 103], [173, 61], [174, 63], [175, 63], [176, 105], [177, 106], [178, 107], [179, 109], [180, 112], [181, 113], [182, 12], [183, 116], [184, 117], [185, 118], [186, 121], [187, 122], [188, 125], [189, 126], [190, 128], [191, 129], [192, 131], [193, 132], [194, 135], [195, 136], [196, 138], [197, 139], [198, 140], [199, 141], [200, 142], [201, 145], [202, 146], [203, 147], [204, 148], [205, 151], [206, 152], [207, 155], [208, 156], [209, 159], [210, 160], [211, 162], [212, 51], [213, 51], [214, 51], [215, 51], [216, 164], [217, 165], [218, 167], [219, 168], [220, 170], [221, 171], [222, 174], [223, 175], [224, 177], [225, 178], [226, 179], [227, 180], [228, 181], [229, 183], [230, 184], [231, 185], [232, 186], [233, 187], [234, 188], [235, 189], [236, 190], [237, 191], [238, 192], [239, 193], [240, 194], [241, 195], [242, 199], [243, 200], [244, 203], [245, 204], [246, 205], [247, 206], [248, 207], [249, 208], [250, 209], [251, 210], [252, 162], [253, 213], [254, 163], [255, 215], [256, 216], [257, 217], [258, 218], [259, 219], [260, 220], [261, 221], [262, 222], [263, 223], [264, 224], [265, 225], [266, 227], [267, 228], [268, 230], [269, 231], [270, 232], [271, 233], [272, 234], [273, 235], [274, 236], [275, 237], [276, 238], [277, 239], [278, 240], [279, 241], [280, 242], [281, 243], [282, 244], [283, 245], [284, 246], [285, 247], [286, 248], [287, 249], [288, 250], [289, 251], [290, 254], [291, 256], [292, 257], [293, 258], [294, 259], [295, 260], [296, 261], [297, 262], [298, 263], [299, 264], [300, 265], [301, 266], [302, 267], [303, 268], [304, 269], [305, 270], [306, 271], [307, 272], [308, 273], [309, 274], [310, 275], [311, 276], [312, 277], [313, 278], [314, 279], [315, 280], [316, 281], [317, 282], [318, 283], [319, 284], [320, 285], [321, 286], [322, 287], [323, 288], [324, 289], [325, 290], [326, 291], [327, 292], [328, 293], [329, 294], [330, 295], [331, 296], [332, 297], [333, 298], [334, 299], [335, 300], [336, 301], [337, 302], [338, 303], [339, 304], [340, 305], [341, 306], [342, 307], [343, 308], [344, 309], [345, 310], [346, 311], [347, 312], [348, 313], [349, 314], [350, 315], [351, 316], [352, 317], [353, 318], [354, 319], [355, 320], [356, 321], [357, 322], [358, 323], [359, 324], [360, 326], [361, 327], [362, 328], [363, 329], [364, 330], [365, 331], [366, 332], [367, 333], [368, 335], [369, 337], [370, 339], [371, 341], [372, 343], [373, 345], [374, 347], [375, 349], [376, 351], [377, 353], [378, 355], [379, 357], [380, 359], [381, 361], [382, 363], [383, 365], [384, 367], [385, 368], [386, 369], [387, 370], [388, 371], [389, 372], [390, 373], [391, 374], [392, 375], [393, 376], [394, 377], [395, 378], [396, 379], [397, 380], [398, 381], [399, 382], [400, 383], [401, 384], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401]]}, {"function_name": "ParserTokenManager", "code": "public ParserTokenManager(CharStream stream)\n{\n   input_stream = stream;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ParserTokenManager", "code": "public ParserTokenManager(CharStream stream, int lexState)\n{\n   this(stream);\n   SwitchTo(lexState);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "ant-1.7-1338", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/depend/constantpool/LongCPInfo.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.depend.constantpool.LongCPInfo", "code": "public class LongCPInfo extends ConstantCPInfo {\n\n    /** Constructor.  */\n    public LongCPInfo() {\n        super(CONSTANT_LONG, 2);\n    }\n\n    /**\n     * read a constant pool entry from a class stream.\n     *\n     * @param cpStream the DataInputStream which contains the constant pool\n     *      entry to be read.\n     * @exception IOException if there is a problem reading the entry from\n     *      the stream.\n     */\n    public void read(DataInputStream cpStream) throws IOException {\n        setValue(new Long(cpStream.readLong()));\n    }\n\n    /**\n     * Print a readable version of the constant pool entry.\n     *\n     * @return the string representation of this constant pool entry.\n     */\n    public String toString() {\n        return \"Long Constant Pool Entry: \" + getValue();", "functions": [{"function_name": "read", "code": "    public void read(DataInputStream cpStream) throws IOException {\n        setValue(new Long(cpStream.readLong()));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"Long Constant Pool Entry: \" + getValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "LongCPInfo", "code": "    public LongCPInfo() {\n        super(CONSTANT_LONG, 2);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8029", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/serializer/SecuritySupport.java", "language": "java", "name": "org.apache.xml.serializer.SecuritySupport", "code": "class SecuritySupport {\n\n    /*\n     * Make this of type Object so that the verifier won't try to\n     * prove its type, thus possibly trying to load the SecuritySupport12\n     * class.\n     */\n    private static final Object securitySupport;\n\n    static {\n\tSecuritySupport ss = null;\n\ttry {\n\t    Class c = Class.forName(\"java.security.AccessController\");\n\t    /*\n\t    c = Class.forName(\"javax.mail.SecuritySupport12\");\n\t    Constructor cons = c.getConstructor(new Class[] { });\n\t    ss = (SecuritySupport)cons.newInstance(new Object[] { });\n\t    */\n\t    /*\n\t     * Unfortunately, we can't load the class using reflection\n\t     * because the class is package private.  And the class has\n\t     * to be package private so the APIs aren't exposed to other\n\t     * code that could use them to circumvent security.  Thus,\n\t     * we accept the risk that the direct reference might fail\n\t     * on some JDK 1.1 JVMs, even though we would never execute\n\t     * this code in such a case.  Sigh...\n\t     */\n\t    ss = new SecuritySupport12();\n\t} catch (Exception ex) {\n\t} finally {\n\t    if (ss == null)\n\t\tss = new SecuritySupport();\n\t    securitySupport = ss;\n\t}\n    }\n\n    /**\n     * Return an appropriate instance of this class, depending on whether\n     * we're on a JDK 1.1 or J2SE 1.2 (or later) system.\n     */\n    static SecuritySupport getInstance() {\n\treturn (SecuritySupport)securitySupport;\n    }\n\n    ClassLoader getContextClassLoader() {\n\treturn null;\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return null;\n    }\n\n    ClassLoader getParentClassLoader(ClassLoader cl) {\n        return null;\n    }\n\n    String getSystemProperty(String propName) {\n        return System.getProperty(propName);\n    }\n\n    FileInputStream getFileInputStream(File file)\n        throws FileNotFoundException\n    {\n        return new FileInputStream(file);\n    }\n\n    InputStream getResourceAsStream(ClassLoader cl, String name) {\n        InputStream ris;\n        if (cl == null) {\n            ris = ClassLoader.getSystemResourceAsStream(name);\n        } else {\n            ris = cl.getResourceAsStream(name);\n        }\n        return ris;\n    }\n    \n    boolean getFileExists(File f) {\n        return f.exists();\n    }\n    \n    long getLastModified(File f) {\n        return f.lastModified();", "functions": [{"function_name": "getInstance", "code": "    static SecuritySupport getInstance() {\n\treturn (SecuritySupport)securitySupport;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(ClassLoader cl) {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(String propName) {\n        return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(File file)\n        throws FileNotFoundException\n    {\n        return new FileInputStream(file);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(ClassLoader cl, String name) {\n        InputStream ris;\n        if (cl == null) {\n            ris = ClassLoader.getSystemResourceAsStream(name);\n        } else {\n            ris = cl.getResourceAsStream(name);\n        }\n        return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [2, 8], [2, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 2], [9, 2], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(File f) {\n        return f.exists();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLastModified", "code": "    long getLastModified(File f) {\n        return f.lastModified();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "poi-2.5-5749", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hpsf/NoSingleSectionException.java", "language": "java", "name": "org.apache.poi.hpsf.NoSingleSectionException", "code": "public class NoSingleSectionException extends HPSFRuntimeException\n{\n\n    public NoSingleSectionException()\n    {\n        super();\n    }\n\n\n    public NoSingleSectionException(final String msg)\n    {\n        super(msg);\n    }\n\n\n    public NoSingleSectionException(final Throwable reason)\n    {\n        super(reason);\n    }\n\n\n    public NoSingleSectionException(final String msg, final Throwable reason)\n    {\n        super(msg, reason);", "functions": [{"function_name": "NoSingleSectionException", "code": "    public NoSingleSectionException()\n    {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NoSingleSectionException", "code": "    public NoSingleSectionException(final String msg)\n    {\n        super(msg);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "NoSingleSectionException", "code": "    public NoSingleSectionException(final Throwable reason)\n    {\n        super(reason);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "NoSingleSectionException", "code": "    public NoSingleSectionException(final String msg, final Throwable reason)\n    {\n        super(msg, reason);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.0-3761", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/textarea/JEditTextArea.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.JEditTextArea", "code": "public class JEditTextArea extends JComponent\n{\n\t//{{{ JEditTextArea constructor\n\t/**\n\t * Creates a new JEditTextArea.\n\t */\n\tpublic JEditTextArea(View view)\n\t{\n\t\tenableEvents(AWTEvent.FOCUS_EVENT_MASK | AWTEvent.KEY_EVENT_MASK);\n\n\t\tthis.view = view;\n\n\t\t//{{{ Initialize some misc. stuff\n\t\tselection = new Vector();\n\t\tchunkCache = new ChunkCache(this);\n\t\tpainter = new TextAreaPainter(this);\n\t\tgutter = new Gutter(view,this);\n\t\tbufferHandler = new BufferChangeHandler();\n\t\tlistenerList = new EventListenerList();\n\t\tcaretEvent = new MutableCaretEvent();\n\t\tbracketLine = bracketPosition = -1;\n\t\tblink = true;\n\t\tlineSegment = new Segment();\n\t\treturnValue = new Point();\n\t\trunnables = new ArrayList();\n\t\t//}}}\n\n\t\t//{{{ Initialize the GUI\n\t\tsetLayout(new ScrollLayout());\n\t\tadd(LEFT,gutter);\n\t\tadd(CENTER,painter);\n\t\tadd(RIGHT,vertical = new JScrollBar(JScrollBar.VERTICAL));\n\t\tadd(BOTTOM,horizontal = new JScrollBar(JScrollBar.HORIZONTAL));\n\n\t\thorizontal.setValues(0,0,0,0);\n\t\t//}}}\n\n\t\t//{{{ this ensures that the text area's look is slightly\n\t\t// more consistent with the rest of the metal l&f.\n\t\t// while it depends on not-so-well-documented portions\n\t\t// of Swing, it only affects appearance, so future\n\t\t// breakage shouldn't matter\n\t\tif(UIManager.getLookAndFeel() instanceof MetalLookAndFeel)\n\t\t{\n\t\t\tsetBorder(new TextAreaBorder());\n\t\t\tvertical.putClientProperty(\"JScrollBar.isFreeStanding\",\n\t\t\t\tBoolean.FALSE);\n\t\t\thorizontal.putClientProperty(\"JScrollBar.isFreeStanding\",\n\t\t\t\tBoolean.FALSE);\n\t\t\t//horizontal.setBorder(null);\n\t\t}\n\t\t//}}}\n\n\t\t//{{{ Add some event listeners\n\t\tvertical.addAdjustmentListener(new AdjustHandler());\n\t\thorizontal.addAdjustmentListener(new AdjustHandler());\n\n\t\tmouseHandler = new MouseHandler();\n\t\tpainter.addMouseListener(mouseHandler);\n\t\tpainter.addMouseMotionListener(mouseHandler);\n\n\t\taddFocusListener(new FocusHandler());\n\t\t//}}}\n\n\t\t// This doesn't seem very correct, but it fixes a problem\n\t\t// when setting the initial caret position for a buffer\n\t\t// (eg, from the recent file list)\n\t\tfocusedComponent = this;\n\t} //}}}\n\n\t//{{{ Getters and setters\n\n\t//{{{ getPainter() method\n\t/**\n\t * Returns the object responsible for painting this text area.\n\t */\n\tpublic final TextAreaPainter getPainter()\n\t{\n\t\treturn painter;\n\t} //}}}\n\n\t//{{{ getGutter() method\n \t/**\n\t * Returns the gutter to the left of the text area or null if the gutter\n\t * is disabled\n\t */\n\tpublic final Gutter getGutter()\n\t{\n\t\treturn gutter;\n\t} //}}}\n\n\t//{{{ getFoldVisibilityManager() method\n\t/**\n\t * Returns the fold visibility manager used by this text area.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic FoldVisibilityManager getFoldVisibilityManager()\n\t{\n\t\treturn foldVisibilityManager;\n\t} //}}}\n\n\t//{{{ isCaretBlinkEnabled() method\n\t/**\n\t * Returns true if the caret is blinking, false otherwise.\n\t */\n\tpublic final boolean isCaretBlinkEnabled()\n\t{\n\t\treturn caretBlinks;\n\t} //}}}\n\n\t//{{{ setCaretBlinkEnabled() method\n\t/**\n\t * Toggles caret blinking.\n\t * @param caretBlinks True if the caret should blink, false otherwise\n\t */\n\tpublic void setCaretBlinkEnabled(boolean caretBlinks)\n\t{\n\t\tthis.caretBlinks = caretBlinks;\n\t\tif(!caretBlinks)\n\t\t\tblink = false;\n\n\t\tif(buffer != null)\n\t\t\tinvalidateLine(caretLine);\n\t} //}}}\n\n\t//{{{ getElectricScroll() method\n\t/**\n\t * Returns the number of lines from the top and button of the\n\t * text area that are always visible.\n\t */\n\tpublic final int getElectricScroll()\n\t{\n\t\treturn electricScroll;\n\t} //}}}\n\n\t//{{{ setElectricScroll() method\n\t/**\n\t * Sets the number of lines from the top and bottom of the text\n\t * area that are always visible\n\t * @param electricScroll The number of lines always visible from\n\t * the top or bottom\n\t */\n\tpublic final void setElectricScroll(int electricScroll)\n\t{\n\t\tthis.electricScroll = electricScroll;\n\t} //}}}\n\n\t//{{{ isQuickCopyEnabled() method\n\t/**\n\t * Returns if clicking the middle mouse button pastes the most\n\t * recent selection (% register), and if Control-dragging inserts\n\t * the selection at the caret.\n\t */\n\tpublic final boolean isQuickCopyEnabled()\n\t{\n\t\treturn quickCopy;\n\t} //}}}\n\n\t//{{{ setQuickCopyEnabled() method\n\t/**\n\t * Sets if clicking the middle mouse button pastes the most\n\t * recent selection (% register), and if Control-dragging inserts\n\t * the selection at the caret.\n\t * @param quickCopy A boolean flag\n\t */\n\tpublic final void setQuickCopyEnabled(boolean quickCopy)\n\t{\n\t\tthis.quickCopy = quickCopy;\n\t} //}}}\n\n\t//{{{ getBuffer() method\n\t/**\n\t * Returns the buffer this text area is editing.\n\t */\n\tpublic final Buffer getBuffer()\n\t{\n\t\treturn buffer;\n\t} //}}}\n\n\t//{{{ setBuffer() method\n\t/**\n\t * Sets the buffer this text area is editing.\n\t * @param buffer The buffer\n\t */\n\tpublic void setBuffer(Buffer buffer)\n\t{\n\t\tif(this.buffer == buffer)\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\tbufferChanging = true;\n\n\t\t\tif(this.buffer != null)\n\t\t\t{\n\t\t\t\tsetFirstLine(0);\n\n\t\t\t\tselectNone();\n\t\t\t\tcaretLine = caret = caretScreenLine = 0;\n\t\t\t\tbracketLine = bracketPosition = -1;\n\n\t\t\t\tthis.buffer._releaseFoldVisibilityManager(foldVisibilityManager);\n\t\t\t\tthis.buffer.removeBufferChangeListener(bufferHandler);\n\t\t\t}\n\t\t\tthis.buffer = buffer;\n\n\t\t\tbuffer.addBufferChangeListener(bufferHandler);\n\t\t\tbufferHandlerInstalled = true;\n\n\t\t\tfoldVisibilityManager = buffer._getFoldVisibilityManager(this);\n\n\t\t\tchunkCache.setFirstLine(0);\n\t\t\tphysFirstLine = foldVisibilityManager.getFirstVisibleLine();\n\n\t\t\tpropertiesChanged();\n\n\t\t\trecalculateLastPhysicalLine();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbufferChanging = false;\n\t\t}\n\t} //}}}\n\n\t//{{{ isEditable() method\n\t/**\n\t * Returns true if this text area is editable, false otherwise.\n\t */\n\tpublic final boolean isEditable()\n\t{\n\t\treturn buffer.isEditable();\n\t} //}}}\n\n\t//{{{ getRightClickPopup() method\n\t/**\n\t * Returns the right click popup menu.\n\t */\n\tpublic final JPopupMenu getRightClickPopup()\n\t{\n\t\treturn popup;\n\t} //}}}\n\n\t//{{{ setRightClickPopup() method\n\t/**\n\t * Sets the right click popup menu.\n\t * @param popup The popup\n\t */\n\tpublic final void setRightClickPopup(JPopupMenu popup)\n\t{\n\t\tthis.popup = popup;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Scrolling\n\n\t//{{{ getFirstLine() method\n\t/**\n\t * Returns the line displayed at the text area's origin. This is\n\t * a virtual, not a physical, line number.\n\t */\n\tpublic final int getFirstLine()\n\t{\n\t\treturn firstLine;\n\t} //}}}\n\n\t//{{{ setFirstLine() method\n\t/**\n\t * Sets the line displayed at the text area's origin. This is\n\t * a virtual, not a physical, line number.\n\t */\n\tpublic void setFirstLine(int firstLine)\n\t{\n\t\tif(firstLine == this.firstLine)\n\t\t\treturn;\n\n\t\t_setFirstLine(firstLine);\n\n\t\tview.synchroScrollVertical(this,firstLine);\n\t} //}}}\n\n\t//{{{ _setFirstLine() method\n\tpublic void _setFirstLine(int firstLine)\n\t{\n\t\tfirstLine = Math.max(0,Math.min(getVirtualLineCount() - 1,firstLine));\n\t\tthis.firstLine = firstLine;\n\n\t\tphysFirstLine = virtualToPhysical(firstLine);\n\n\t\tmaxHorizontalScrollWidth = 0;\n\n\t\tchunkCache.setFirstLine(firstLine);\n\n\t\trecalculateLastPhysicalLine();\n\n\t\tif(this.firstLine != vertical.getValue())\n\t\t\tupdateScrollBars();\n\n\t\tpainter.repaint();\n\t\tgutter.repaint();\n\n\t\tfireScrollEvent(true);\n\t} //}}}\n\n\t//{{{ getVisibleLines() method\n\t/**\n\t * Returns the number of lines visible in this text area.\n\t */\n\tpublic final int getVisibleLines()\n\t{\n\t\treturn visibleLines;\n\t} //}}}\n\n\t//{{{ getFirstPhysicalLine() method\n\t/**\n\t * Returns the first visible physical line index.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic final int getFirstPhysicalLine()\n\t{\n\t\treturn physFirstLine;\n\t} //}}}\n\n\t//{{{ getLastPhysicalLine() method\n\t/**\n\t * Returns the last visible physical line index.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic final int getLastPhysicalLine()\n\t{\n\t\treturn physLastLine;\n\t} //}}}\n\n\t//{{{ getHorizontalOffset() method\n\t/**\n\t * Returns the horizontal offset of drawn lines.\n\t */\n\tpublic final int getHorizontalOffset()\n\t{\n\t\treturn horizontalOffset;\n\t} //}}}\n\n\t//{{{ setHorizontalOffset() method\n\t/**\n\t * Sets the horizontal offset of drawn lines. This can be used to\n\t * implement horizontal scrolling.\n\t * @param horizontalOffset offset The new horizontal offset\n\t */\n\tpublic void setHorizontalOffset(int horizontalOffset)\n\t{\n\t\tif(horizontalOffset == this.horizontalOffset)\n\t\t\treturn;\n\t\t_setHorizontalOffset(horizontalOffset);\n\n\t\tview.synchroScrollHorizontal(this,horizontalOffset);\n\t} //}}}\n\n\t//{{{ _setHorizontalOffset() method\n\tpublic void _setHorizontalOffset(int horizontalOffset)\n\t{\n\t\tthis.horizontalOffset = horizontalOffset;\n\t\tif(horizontalOffset != horizontal.getValue())\n\t\t\tupdateScrollBars();\n\t\tpainter.repaint();\n\n\t\tfireScrollEvent(false);\n\t} //}}}\n\n\t//{{{ updateScrollBars() method\n\t/**\n\t * Updates the state of the scroll bars. This should be called\n\t * if the number of lines in the buffer changes, or when the\n\t * size of the text are changes.\n\t */\n\tpublic void updateScrollBars()\n\t{\n\t\tif(vertical != null && visibleLines != 0)\n\t\t{\n\t\t\t// don't display stuff past the end of the buffer if\n\t\t\t// we can help it\n\t\t\tint lineCount = getVirtualLineCount();\n\n\t\t\t// very stupid but proper fix will go into 4.1\n\t\t\tif(softWrap)\n\t\t\t\tlineCount += visibleLines - 1;\n\n\t\t\tif(lineCount < firstLine + visibleLines)\n\t\t\t{\n\t\t\t\t// this will call updateScrollBars(), so\n\t\t\t\t// just return...\n\t\t\t\tint newFirstLine = Math.max(0,lineCount - visibleLines);\n\t\t\t\tif(newFirstLine != firstLine)\n\t\t\t\t{\n\t\t\t\t\tsetFirstLine(newFirstLine);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvertical.setValues(firstLine,visibleLines,0,lineCount);\n\t\t\tvertical.setUnitIncrement(2);\n\t\t\tvertical.setBlockIncrement(visibleLines);\n\t\t}\n\n\t\tint width = painter.getWidth();\n\t\tif(horizontal != null && width != 0)\n\t\t{\n\t\t\tmaxHorizontalScrollWidth = 0;\n\t\t\tpainter.repaint();\n\n\t\t\thorizontal.setUnitIncrement(painter.getFontMetrics()\n\t\t\t\t.charWidth('w'));\n\t\t\thorizontal.setBlockIncrement(width / 2);\n\t\t}\n\t} //}}}\n\n\t//{{{ scrollUpLine() method\n\t/**\n\t * Scrolls up by one line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void scrollUpLine()\n\t{\n\t\tif(firstLine > 0)\n\t\t\tsetFirstLine(firstLine - 1);\n\t\telse\n\t\t\tgetToolkit().beep();\n\t} //}}}\n\n\t//{{{ scrollUpPage() method\n\t/**\n\t * Scrolls up by one page.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void scrollUpPage()\n\t{\n\t\tif(firstLine > 0)\n\t\t{\n\t\t\tint newFirstLine = firstLine - visibleLines;\n\t\t\tsetFirstLine(newFirstLine);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t}\n\t} //}}}\n\n\t//{{{ scrollDownLine() method\n\t/**\n\t * Scrolls down by one line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void scrollDownLine()\n\t{\n\t\tint numLines = getVirtualLineCount();\n\n\t\tif((softWrap && firstLine < numLines) ||\n\t\t\t(firstLine + visibleLines < numLines))\n\t\t\tsetFirstLine(firstLine + 1);\n\t\telse\n\t\t\tgetToolkit().beep();\n\t} //}}}\n\n\t//{{{ scrollDownPage() method\n\t/**\n\t * Scrolls down by one page.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void scrollDownPage()\n\t{\n\t\tint numLines = getVirtualLineCount();\n\n\t\tif(firstLine + visibleLines < numLines)\n\t\t{\n\t\t\tint newFirstLine = firstLine + visibleLines;\n\t\t\tsetFirstLine(newFirstLine + visibleLines < numLines\n\t\t\t\t? newFirstLine : numLines - visibleLines);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t}\n\t} //}}}\n\n\t//{{{ scrollToCaret() method\n\t/**\n\t * Ensures that the caret is visible by scrolling the text area if\n\t * necessary.\n\t * @param doElectricScroll If true, electric scrolling will be performed\n\t */\n\tpublic void scrollToCaret(boolean doElectricScroll)\n\t{\n\t\tscrollTo(caretLine,caret - buffer.getLineStartOffset(caretLine),\n\t\t\tdoElectricScroll);\n\t} //}}}\n\n\t//{{{ scrollTo() method\n\t/**\n\t * Ensures that the specified location in the buffer is visible.\n\t * @param line The line number\n\t * @param offset The offset from the start of the line\n\t * @param doElectricScroll If true, electric scrolling will be performed\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic void scrollTo(int line, int offset, boolean doElectricScroll)\n\t{\n\t\tint _electricScroll = (doElectricScroll && visibleLines > 6\n\t\t\t? electricScroll : 0);\n\n\t\t// visibleLines == 0 before the component is realized\n\t\t// we can't do any proper scrolling then, so we have\n\t\t// this hack...\n\t\tif(visibleLines == 0)\n\t\t{\n\t\t\tsetFirstLine(physicalToVirtual(\n\t\t\t\tMath.max(0,line - _electricScroll)));\n\t\t\treturn;\n\t\t}\n\n\t\t//{{{ STAGE 1 -- determine if the caret is visible.\n\t\tint screenLine = getScreenLineOfOffset(buffer.getLineStartOffset(line) + offset);\n\t\tPoint point;\n\t\tif(screenLine != -1)\n\t\t{\n\t\t\t// It's visible, but is it too close to the borders?\n\t\t\tint height = painter.getFontMetrics().getHeight();\n\n\t\t\tRectangle rect = new Rectangle(0,height * _electricScroll,\n\t\t\t\tpainter.getWidth() - 5,visibleLines * height\n\t\t\t\t- height * _electricScroll * 2);\n\n\t\t\tpoint = offsetToXY(line,offset,returnValue);\n\t\t\tif(rect.contains(point))\n\t\t\t\treturn;\n\t\t}\n\t\telse\n\t\t\tpoint = null;\n\t\t//}}}\n\n\t\t//{{{ STAGE 2 -- scroll vertically\n\t\tif(line == physLastLine + 1)\n\t\t{\n\t\t\tint count = chunkCache.getLineInfosForPhysicalLine(physLastLine).length\n\t\t\t\t+ chunkCache.getLineInfosForPhysicalLine(physLastLine + 1).length\n\t\t\t\t+ _electricScroll;\n\t\t\twhile(count > 0)\n\t\t\t{\n\t\t\t\tcount -= chunkCache.getLineInfosForPhysicalLine(physFirstLine).length;\n\t\t\t\tfirstLine++;\n\t\t\t\tphysFirstLine = foldVisibilityManager.getNextVisibleLine(physFirstLine);\n\t\t\t}\n\t\t}\n\t\telse if(screenLine == -1)\n\t\t{\n\t\t\tif(line == physLastLine)\n\t\t\t{\n\t\t\t\tint count = chunkCache.getLineInfosForPhysicalLine(physLastLine).length\n\t\t\t\t\t+ _electricScroll;\n\t\t\t\twhile(count > 0)\n\t\t\t\t{\n\t\t\t\t\tcount -= chunkCache.getLineInfosForPhysicalLine(physFirstLine).length;\n\t\t\t\t\tfirstLine++;\n\t\t\t\t\tphysFirstLine = foldVisibilityManager.getNextVisibleLine(physFirstLine);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint virtualLine = foldVisibilityManager.physicalToVirtual(line);\n\t\t\tif(virtualLine == firstLine - 1)\n\t\t\t{\n\t\t\t\tfirstLine = Math.max(0,firstLine - _electricScroll - 1);\n\t\t\t\tphysFirstLine = foldVisibilityManager.virtualToPhysical(firstLine);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// keep chunking lines until we have visibleLines / 2\n\t\t\t\tif(!softWrap && virtualLine >= foldVisibilityManager.getVirtualLineCount()\n\t\t\t\t\t- visibleLines / 2)\n\t\t\t\t{\n\t\t\t\t\tfirstLine = foldVisibilityManager.getVirtualLineCount()\n\t\t\t\t\t\t- visibleLines;\n\t\t\t\t\tphysFirstLine = foldVisibilityManager\n\t\t\t\t\t\t.virtualToPhysical(firstLine);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tphysFirstLine = line;\n\n\t\t\t\t\tint count = 0;\n\t\n\t\t\t\t\tfor(;;)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(foldVisibilityManager.isLineVisible(physFirstLine))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint incr = chunkCache.getLineInfosForPhysicalLine(physFirstLine).length;\n\t\t\t\t\t\t\tif(count + incr > visibleLines / 2)\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tcount += incr;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(physFirstLine == 0)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tphysFirstLine = foldVisibilityManager\n\t\t\t\t\t\t\t\t.getPrevVisibleLine(physFirstLine);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tfirstLine = physicalToVirtual(physFirstLine);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(screenLine < _electricScroll && firstLine != 0)\n\t\t{\n\t\t\tint count = _electricScroll - screenLine;\n\t\t\twhile(count > 0 && firstLine > 0)\n\t\t\t{\n\t\t\t\tcount -= chunkCache.getLineInfosForPhysicalLine(physFirstLine).length;\n\t\t\t\tfirstLine--;\n\t\t\t\tphysFirstLine = foldVisibilityManager.getPrevVisibleLine(physFirstLine);\n\t\t\t}\n\t\t}\n\t\telse if(screenLine >= visibleLines - _electricScroll)\n\t\t{\n\t\t\tint count = _electricScroll - visibleLines + screenLine + 1;\n\t\t\twhile(count > 0 && firstLine <= getVirtualLineCount())\n\t\t\t{\n\t\t\t\tcount -= chunkCache.getLineInfosForPhysicalLine(physFirstLine).length;\n\t\t\t\tfirstLine++;\n\t\t\t\tphysFirstLine = foldVisibilityManager.getNextVisibleLine(physFirstLine);\n\t\t\t}\n\t\t}\n\n\t\tchunkCache.setFirstLine(firstLine);\n\n\t\trecalculateLastPhysicalLine();\n\n\t\tif(point == null)\n\t\t{\n\t\t\tpoint = offsetToXY(line,offset,returnValue);\n\t\t\tif(point == null)\n\t\t\t{\n\t\t\t\t// a soft wrapped line has more screen lines\n\t\t\t\t// than the number of visible lines\n\t\t\t\treturn;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ STAGE 3 -- scroll horizontally\n\t\tif(point.x < 0)\n\t\t{\n\t\t\thorizontalOffset = Math.min(0,horizontalOffset\n\t\t\t\t- point.x + charWidth + 5);\n\t\t}\n\t\telse if(point.x >= painter.getWidth() - charWidth - 5)\n\t\t{\n\t\t\thorizontalOffset = horizontalOffset +\n\t\t\t\t(painter.getWidth() - point.x)\n\t\t\t\t- charWidth - 5;\n\t\t} //}}}\n\n\t\t//{{{ STAGE 4 -- update some stuff\n\t\tupdateScrollBars();\n\t\tpainter.repaint();\n\t\tgutter.repaint();\n\n\t\tview.synchroScrollVertical(this,firstLine);\n\t\tview.synchroScrollHorizontal(this,horizontalOffset);\n\n\t\t// fire events for both a horizontal and vertical scroll\n\t\tfireScrollEvent(true);\n\t\tfireScrollEvent(false);\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ addScrollListener() method\n\t/**\n\t * Adds a scroll listener to this text area.\n\t * @param listener The listener\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic final void addScrollListener(ScrollListener listener)\n\t{\n\t\tlistenerList.add(ScrollListener.class,listener);\n\t} //}}}\n\n\t//{{{ removeScrollListener() method\n\t/**\n\t * Removes a scroll listener from this text area.\n\t * @param listener The listener\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic final void removeScrollListener(ScrollListener listener)\n\t{\n\t\tlistenerList.remove(ScrollListener.class,listener);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Screen line stuff\n\n\t//{{{ getPhysicalLineOfScreenLine() method\n\t/**\n\t * Returns the physical line number that contains the specified screen\n\t * line.\n\t * @param screenLine The screen line\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic int getPhysicalLineOfScreenLine(int screenLine)\n\t{\n\t\treturn chunkCache.getLineInfo(screenLine).physicalLine;\n\t} //}}}\n\n\t//{{{ getScreenLineOfOffset() method\n\t/**\n\t * Returns the screen (wrapped) line containing the specified offset.\n\t * @param offset The offset\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic int getScreenLineOfOffset(int offset)\n\t{\n\t\tint line = buffer.getLineOfOffset(offset);\n\t\toffset -= buffer.getLineStartOffset(line);\n\t\treturn chunkCache.getScreenLineOfOffset(line,offset);\n\t} //}}}\n\n\t//{{{ getScreenLineStartOffset() method\n\t/**\n\t * Returns the start offset of the specified screen (wrapped) line.\n\t * @param line The line\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic int getScreenLineStartOffset(int line)\n\t{\n\t\tchunkCache.updateChunksUpTo(line);\n\t\tChunkCache.LineInfo lineInfo = chunkCache.getLineInfo(line);\n\t\tif(lineInfo.physicalLine == -1)\n\t\t\treturn -1;\n\n\t\treturn buffer.getLineStartOffset(lineInfo.physicalLine)\n\t\t\t+ lineInfo.offset;\n\t} //}}}\n\n\t//{{{ getScreenLineEndOffset() method\n\t/**\n\t * Returns the end offset of the specified screen (wrapped) line.\n\t * @param line The line\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic int getScreenLineEndOffset(int line)\n\t{\n\t\tchunkCache.updateChunksUpTo(line);\n\t\tChunkCache.LineInfo lineInfo = chunkCache.getLineInfo(line);\n\t\tif(lineInfo.physicalLine == -1)\n\t\t\treturn -1;\n\n\t\treturn buffer.getLineStartOffset(lineInfo.physicalLine)\n\t\t\t+ lineInfo.offset + lineInfo.length;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Offset conversion\n\n\t//{{{ xyToOffset() method\n\t/**\n\t * Converts a point to an offset.\n\t * Note that unlike in previous jEdit versions, this method now returns\n\t * -1 if the y co-ordinate is out of bounds.\n\t *\n\t * @param x The x co-ordinate of the point\n\t * @param y The y co-ordinate of the point\n\t */\n\tpublic int xyToOffset(int x, int y)\n\t{\n\t\treturn xyToOffset(x,y,true);\n\t} //}}}\n\n\t//{{{ xyToOffset() method\n\t/**\n\t * Converts a point to an offset.\n\t * Note that unlike in previous jEdit versions, this method now returns\n\t * -1 if the y co-ordinate is out of bounds.\n\t *\n\t * @param x The x co-ordinate of the point\n\t * @param y The y co-ordinate of the point\n\t * @param round Round up to next letter if past the middle of a letter?\n\t * @since jEdit 3.2pre6\n\t */\n\tpublic int xyToOffset(int x, int y, boolean round)\n\t{\n\t\tFontMetrics fm = painter.getFontMetrics();\n\t\tint height = fm.getHeight();\n\t\tint line = y / height;\n\n\t\tif(line < 0 || line > visibleLines)\n\t\t\treturn -1;\n\n\t\tchunkCache.updateChunksUpTo(line);\n\n\t\tChunkCache.LineInfo lineInfo = chunkCache.getLineInfo(line);\n\t\tif(!lineInfo.chunksValid)\n\t\t\tSystem.err.println(\"xy to offset: not valid\");\n\n\t\tif(lineInfo.physicalLine == -1)\n\t\t{\n\t\t\treturn getLineEndOffset(foldVisibilityManager\n\t\t\t\t.getLastVisibleLine()) - 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint offset = chunkCache.xToOffset(lineInfo.chunks,\n\t\t\t\tx - horizontalOffset,round);\n\t\t\tif(offset == -1 || offset == lineInfo.offset + lineInfo.length)\n\t\t\t\toffset = lineInfo.offset + lineInfo.length - 1;\n\n\t\t\treturn getLineStartOffset(lineInfo.physicalLine) + offset;\n\t\t}\n\t} //}}}\n\n\t//{{{ offsetToXY() method\n\t/**\n\t * Converts an offset into a point in the text area painter's\n\t * co-ordinate space.\n\t * @param offset The offset\n\t * @return The location of the offset on screen, or <code>null</code>\n\t * if the specified offset is not visible\n\t */\n\tpublic Point offsetToXY(int offset)\n\t{\n\t\tint line = buffer.getLineOfOffset(offset);\n\t\toffset -= buffer.getLineStartOffset(line);\n\t\tPoint retVal = new Point();\n\t\treturn offsetToXY(line,offset,retVal);\n\t} //}}}\n\n\t//{{{ offsetToXY() method\n\t/**\n\t * Converts an offset into a point in the text area painter's\n\t * co-ordinate space.\n\t * @param line The physical line number\n\t * @param offset The offset, from the start of the line\n\t * @param retVal The point to store the return value in\n\t * @return <code>retVal</code> for convenience, or <code>null</code>\n\t * if the specified offset is not visible\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic Point offsetToXY(int line, int offset, Point retVal)\n\t{\n\t\tint screenLine = chunkCache.getScreenLineOfOffset(line,offset);\n\t\tif(screenLine == -1)\n\t\t{\n\t\t\tif(line < physFirstLine)\n\t\t\t\treturn null;\n\t\t\t// must have >= here because the last physical line\n\t\t\t// might only be partially visible (some offsets would\n\t\t\t// have a screen line, others would return -1 and hence\n\t\t\t// this code would be executed)\n\t\t\telse if(line >= physLastLine)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new InternalError(\"line=\" + line\n\t\t\t\t\t+ \",offset=\" + offset\n\t\t\t\t\t+ \",screenLine=\" + screenLine\n\t\t\t\t\t+ \",physFirstLine=\" + physFirstLine\n\t\t\t\t\t+ \",physLastLine=\" + physLastLine);\n\t\t\t}\n\t\t}\n\n\t\tFontMetrics fm = painter.getFontMetrics();\n\n\t\tretVal.y = screenLine * fm.getHeight();\n\n\t\tChunkCache.LineInfo info = chunkCache.getLineInfo(screenLine);\n\t\tif(!info.chunksValid)\n\t\t\tSystem.err.println(\"offset to xy: not valid\");\n\n\t\tretVal.x = (int)(horizontalOffset + chunkCache.offsetToX(\n\t\t\tinfo.chunks,offset));\n\n\t\treturn retVal;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Painting\n\n\t//{{{ invalidateScreenLineRange() method\n\t/**\n\t * Marks a range of screen lines as needing a repaint.\n\t * @param start The first line\n\t * @param end The last line\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic void invalidateScreenLineRange(int start, int end)\n\t{\n\t\tif(chunkCache.needFullRepaint())\n\t\t{\n\t\t\trecalculateLastPhysicalLine();\n\t\t\tgutter.repaint();\n\t\t\tpainter.repaint();\n\t\t\treturn;\n\t\t}\n\n\t\tif(start > end)\n\t\t{\n\t\t\tint tmp = end;\n\t\t\tend = start;\n\t\t\tstart = tmp;\n\t\t}\n\n\t\tFontMetrics fm = painter.getFontMetrics();\n\t\tint y = start * fm.getHeight();\n\t\tint height = (end - start + 1) * fm.getHeight();\n\t\tpainter.repaint(0,y,painter.getWidth(),height);\n\t\tgutter.repaint(0,y,gutter.getWidth(),height);\n\t} //}}}\n\n\t//{{{ invalidateLine() method\n\t/**\n\t * Marks a line as needing a repaint.\n\t * @param line The physical line to invalidate\n\t */\n\tpublic void invalidateLine(int line)\n\t{\n\t\tif(line < physFirstLine || line > physLastLine\n\t\t\t|| !foldVisibilityManager.isLineVisible(line))\n\t\t\treturn;\n\n\t\tint startLine = -1;\n\t\tint endLine = -1;\n\n\t\tfor(int i = 0; i <= visibleLines; i++)\n\t\t{\n\t\t\tchunkCache.updateChunksUpTo(i);\n\t\t\tChunkCache.LineInfo info = chunkCache.getLineInfo(i);\n\n\t\t\tif((info.physicalLine >= line || info.physicalLine == -1)\n\t\t\t\t&& startLine == -1)\n\t\t\t{\n\t\t\t\tstartLine = i;\n\t\t\t}\n\n\t\t\tif((info.physicalLine >= line && info.lastSubregion)\n\t\t\t\t|| info.physicalLine == -1)\n\t\t\t{\n\t\t\t\tendLine = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(chunkCache.needFullRepaint())\n\t\t{\n\t\t\trecalculateLastPhysicalLine();\n\t\t\tendLine = visibleLines;\n\t\t}\n\t\telse if(endLine == -1)\n\t\t\tendLine = visibleLines;\n\n\t\t//if(startLine != endLine)\n\t\t//\tSystem.err.println(startLine + \":\" + endLine);\n\n\t\tinvalidateScreenLineRange(startLine,endLine);\n\t} //}}}\n\n\t//{{{ invalidateLineRange() method\n\t/**\n\t * Marks a range of physical lines as needing a repaint.\n\t * @param start The first line to invalidate\n\t * @param end The last line to invalidate\n\t */\n\tpublic void invalidateLineRange(int start, int end)\n\t{\n\t\tif(end < start)\n\t\t{\n\t\t\tint tmp = end;\n\t\t\tend = start;\n\t\t\tstart = tmp;\n\t\t}\n\n\t\tif(end < physFirstLine || start > physLastLine)\n\t\t\treturn;\n\n\t\tint startScreenLine = -1;\n\t\tint endScreenLine = -1;\n\n\t\tfor(int i = 0; i <= visibleLines; i++)\n\t\t{\n\t\t\tchunkCache.updateChunksUpTo(i);\n\t\t\tChunkCache.LineInfo info = chunkCache.getLineInfo(i);\n\n\t\t\tif((info.physicalLine >= start || info.physicalLine == -1)\n\t\t\t\t&& startScreenLine == -1)\n\t\t\t{\n\t\t\t\tstartScreenLine = i;\n\t\t\t}\n\n\t\t\tif((info.physicalLine >= end && info.lastSubregion)\n\t\t\t\t|| info.physicalLine == -1)\n\t\t\t{\n\t\t\t\tendScreenLine = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(startScreenLine == -1)\n\t\t\tstartScreenLine = 0;\n\n\t\tif(chunkCache.needFullRepaint())\n\t\t{\n\t\t\trecalculateLastPhysicalLine();\n\t\t\tendScreenLine = visibleLines;\n\t\t}\n\t\telse if(endScreenLine == -1)\n\t\t\tendScreenLine = visibleLines;\n\n\t\tinvalidateScreenLineRange(startScreenLine,endScreenLine);\n\t} //}}}\n\n\t//{{{ invalidateSelectedLines() method\n\t/**\n\t * Repaints the lines containing the selection.\n\t */\n\tpublic void invalidateSelectedLines()\n\t{\n\t\t// to hide line highlight if selections are being added later on\n\t\tinvalidateLine(caretLine);\n\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\tinvalidateLineRange(s.startLine,s.endLine);\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Convenience methods\n\n\t//{{{ physicalToVirtual() method\n\t/**\n\t * Converts a physical line number to a virtual line number.\n\t * @param line A physical line index\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic int physicalToVirtual(int line)\n\t{\n\t\treturn foldVisibilityManager.physicalToVirtual(line);\n\t} //}}}\n\n\t//{{{ virtualToPhysical() method\n\t/**\n\t * Converts a virtual line number to a physical line number.\n\t * @param line A virtual line index\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic int virtualToPhysical(int line)\n\t{\n\t\treturn foldVisibilityManager.virtualToPhysical(line);\n\t} //}}}\n\n\t//{{{ getBufferLength() method\n\t/**\n\t * Returns the length of the buffer.\n\t */\n\tpublic final int getBufferLength()\n\t{\n\t\treturn buffer.getLength();\n\t} //}}}\n\n\t//{{{ getLineCount() method\n\t/**\n\t * Returns the number of physical lines in the buffer.\n\t */\n\tpublic final int getLineCount()\n\t{\n\t\treturn buffer.getLineCount();\n\t} //}}}\n\n\t//{{{ getVirtualLineCount() method\n\t/**\n\t * Returns the number of virtual lines in the buffer.\n\t */\n\tpublic final int getVirtualLineCount()\n\t{\n\t\treturn foldVisibilityManager.getVirtualLineCount();\n\t} //}}}\n\n\t//{{{ getLineOfOffset() method\n\t/**\n\t * Returns the line containing the specified offset.\n\t * @param offset The offset\n\t */\n\tpublic final int getLineOfOffset(int offset)\n\t{\n\t\treturn buffer.getLineOfOffset(offset);\n\t} //}}}\n\n\t//{{{ getLineStartOffset() method\n\t/**\n\t * Returns the start offset of the specified line.\n\t * @param line The line\n\t * @return The start offset of the specified line, or -1 if the line is\n\t * invalid\n\t */\n\tpublic int getLineStartOffset(int line)\n\t{\n\t\treturn buffer.getLineStartOffset(line);\n\t} //}}}\n\n\t//{{{ getLineEndOffset() method\n\t/**\n\t * Returns the end offset of the specified line.\n\t * @param line The line\n\t * @return The end offset of the specified line, or -1 if the line is\n\t * invalid.\n\t */\n\tpublic int getLineEndOffset(int line)\n\t{\n\t\treturn buffer.getLineEndOffset(line);\n\t} //}}}\n\n\t//{{{ getLineLength() method\n\t/**\n\t * Returns the length of the specified line.\n\t * @param line The line\n\t */\n\tpublic int getLineLength(int line)\n\t{\n\t\treturn buffer.getLineLength(line);\n\t} //}}}\n\n\t//{{{ getText() method\n\t/**\n\t * Returns the specified substring of the buffer.\n\t * @param start The start offset\n\t * @param len The length of the substring\n\t * @return The substring\n\t */\n\tpublic final String getText(int start, int len)\n\t{\n\t\treturn buffer.getText(start,len);\n\t} //}}}\n\n\t//{{{ getText() method\n\t/**\n\t * Copies the specified substring of the buffer into a segment.\n\t * @param start The start offset\n\t * @param len The length of the substring\n\t * @param segment The segment\n\t */\n\tpublic final void getText(int start, int len, Segment segment)\n\t{\n\t\tbuffer.getText(start,len,segment);\n\t} //}}}\n\n\t//{{{ getLineText() method\n\t/**\n\t * Returns the text on the specified line.\n\t * @param lineIndex The line\n\t * @return The text, or null if the line is invalid\n\t */\n\tpublic final String getLineText(int lineIndex)\n\t{\n\t\treturn buffer.getLineText(lineIndex);\n\t} //}}}\n\n\t//{{{ getLineText() method\n\t/**\n\t * Copies the text on the specified line into a segment. If the line\n\t * is invalid, the segment will contain a null string.\n\t * @param lineIndex The line\n\t */\n\tpublic final void getLineText(int lineIndex, Segment segment)\n\t{\n\t\tbuffer.getLineText(lineIndex,segment);\n\t} //}}}\n\n\t//{{{ getText() method\n\t/**\n\t * Returns the entire text of this text area.\n\t */\n\tpublic String getText()\n\t{\n\t\treturn buffer.getText(0,buffer.getLength());\n\t} //}}}\n\n\t//{{{ setText() method\n\t/**\n\t * Sets the entire text of this text area.\n\t */\n\tpublic void setText(String text)\n\t{\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\t\t\tbuffer.remove(0,buffer.getLength());\n\t\t\tbuffer.insert(0,text);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Selection\n\n\t//{{{ selectAll() method\n\t/**\n\t * Selects all text in the buffer.\n\t */\n\tpublic final void selectAll()\n\t{\n\t\tsetSelection(new Selection.Range(0,buffer.getLength()));\n\t\tmoveCaretPosition(buffer.getLength(),true);\n\t} //}}}\n\n\t//{{{ selectLine() method\n\t/**\n\t * Selects the current line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void selectLine()\n\t{\n\t\tint caretLine = getCaretLine();\n\t\tint start = getLineStartOffset(caretLine);\n\t\tint end = getLineEndOffset(caretLine) - 1;\n\t\tSelection s = new Selection.Range(start,end);\n\t\tif(multi)\n\t\t\taddToSelection(s);\n\t\telse\n\t\t\tsetSelection(s);\n\t\tmoveCaretPosition(end);\n\t} //}}}\n\n\t//{{{ selectParagraph() method\n\t/**\n\t * Selects the paragraph at the caret position.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void selectParagraph()\n\t{\n\t\tint caretLine = getCaretLine();\n\n\t\tif(getLineLength(caretLine) == 0)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint start = caretLine;\n\t\tint end = caretLine;\n\n\t\twhile(start >= 0)\n\t\t{\n\t\t\tif(getLineLength(start) == 0)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tstart--;\n\t\t}\n\n\t\twhile(end < getLineCount())\n\t\t{\n\t\t\tif(getLineLength(end) == 0)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tend++;\n\t\t}\n\n\t\tint selectionStart = getLineStartOffset(start + 1);\n\t\tint selectionEnd = getLineEndOffset(end - 1) - 1;\n\t\tSelection s = new Selection.Range(selectionStart,selectionEnd);\n\t\tif(multi)\n\t\t\taddToSelection(s);\n\t\telse\n\t\t\tsetSelection(s);\n\t\tmoveCaretPosition(selectionEnd);\n\t} //}}}\n\n\t//{{{ selectWord() method\n\t/**\n\t * Selects the word at the caret position.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void selectWord()\n\t{\n\t\tint line = getCaretLine();\n\t\tint lineStart = getLineStartOffset(line);\n\t\tint offset = getCaretPosition() - lineStart;\n\n\t\tif(getLineLength(line) == 0)\n\t\t\treturn;\n\n\t\tString lineText = getLineText(line);\n\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\n\t\tif(offset == getLineLength(line))\n\t\t\toffset--;\n\n\t\tint wordStart = TextUtilities.findWordStart(lineText,offset,noWordSep);\n\t\tint wordEnd = TextUtilities.findWordEnd(lineText,offset+1,noWordSep);\n\n\t\tSelection s = new Selection.Range(lineStart + wordStart,\n\t\t\tlineStart + wordEnd);\n\t\tif(multi)\n\t\t\taddToSelection(s);\n\t\telse\n\t\t\tsetSelection(s);\n\t\tmoveCaretPosition(lineStart + wordEnd);\n\t} //}}}\n\n\t//{{{ selectToMatchingBracket() method\n\t/**\n\t * Selects from the bracket at the caret position to the corresponding\n\t * bracket.\n\t * @since jEdit 4.0pre2\n\t */\n\tpublic void selectToMatchingBracket()\n\t{\n\t\tint offset = caret - buffer.getLineStartOffset(caretLine);\n\n\t\tif(buffer.getLineLength(caretLine) == 0)\n\t\t\treturn;\n\n\t\tif(offset == buffer.getLineLength(caretLine))\n\t\t\toffset--;\n\n\t\tint bracket = TextUtilities.findMatchingBracket(buffer,caretLine,offset);\n\n\t\tif(bracket != -1)\n\t\t{\n\t\t\tSelection s;\n\n\t\t\tif(bracket < caret)\n\t\t\t\ts = new Selection.Range(++bracket,caret);\n\t\t\telse\n\t\t\t{\n\t\t\t\tmoveCaretPosition(caret + 1,false);\n\t\t\t\ts = new Selection.Range(caret,bracket);\n\t\t\t}\n\n\t\t\taddToSelection(s);\n\t\t\treturn;\n\t\t}\n\t} //}}}\n\n\t//{{{ selectBlock() method\n\t/**\n\t * Selects the code block surrounding the caret.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void selectBlock()\n\t{\n\t\tString openBrackets = \"([{\";\n\t\tString closeBrackets = \")]}\";\n\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tint start, end;\n\t\tif(s == null)\n\t\t\tstart = end = caret;\n\t\telse\n\t\t{\n\t\t\tstart = s.start;\n\t\t\tend = s.end;\n\t\t}\n\n\t\tString text = getText(0,buffer.getLength());\n\n\t\t// Scan backwards, trying to find a bracket\n\t\tint count = 1;\n\t\tchar openBracket = '\\0';\n\t\tchar closeBracket = '\\0';\n\n\t\t// We can't do the backward scan if start == 0\n\t\tif(start == 0)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\nbackward_scan:\twhile(--start > 0)\n\t\t{\n\t\t\tchar c = text.charAt(start);\n\t\t\tint index = openBrackets.indexOf(c);\n\t\t\tif(index != -1)\n\t\t\t{\n\t\t\t\tif(--count == 0)\n\t\t\t\t{\n\t\t\t\t\topenBracket = c;\n\t\t\t\t\tcloseBracket = closeBrackets.charAt(index);\n\t\t\t\t\tbreak backward_scan;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(closeBrackets.indexOf(c) != -1)\n\t\t\t\tcount++;\n\t\t}\n\n\t\t// Reset count\n\t\tcount = 1;\n\n\t\t// Scan forward, matching that bracket\n\t\tif(openBracket == '\\0')\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\nforward_scan:\t\tdo\n\t\t\t{\n\t\t\t\tchar c = text.charAt(end);\n\t\t\t\tif(c == closeBracket)\n\t\t\t\t{\n\t\t\t\t\tif(--count == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tend++;\n\t\t\t\t\t\tbreak forward_scan;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(c == openBracket)\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\twhile(++end < buffer.getLength());\n\t\t}\n\n\t\ts = new Selection.Range(start,end);\n\t\tif(multi)\n\t\t\taddToSelection(s);\n\t\telse\n\t\t\tsetSelection(s);\n\t\tmoveCaretPosition(end);\n\t} //}}}\n\n\t//{{{ invertSelection() method\n\t/**\n\t * Inverts the selection.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic final void invertSelection()\n\t{\n\t\tSelection[] newSelection = new Selection[selection.size() + 1];\n\t\tint lastOffset = 0;\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\tnewSelection[i] = new Selection.Range(lastOffset,\n\t\t\t\ts.getStart());\n\t\t\tlastOffset = s.getEnd();\n\t\t}\n\t\tnewSelection[selection.size()] = new Selection.Range(\n\t\t\tlastOffset,buffer.getLength());\n\t\tsetSelection(newSelection);\n\t} //}}}\n\n\t//{{{ getSelectionCount() method\n\t/**\n\t * Returns the number of selections. This is primarily for use by the\n\t * the status bar.\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic int getSelectionCount()\n\t{\n\t\treturn selection.size();\n\t} //}}}\n\n\t//{{{ getSelection() method\n\t/**\n\t * Returns the current selection.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic Selection[] getSelection()\n\t{\n\t\tSelection[] sel = new Selection[selection.size()];\n\t\tselection.copyInto(sel);\n\t\treturn sel;\n\t} //}}}\n\n\t//{{{ selectNone() method\n\t/**\n\t * Deselects everything.\n\t */\n\tpublic void selectNone()\n\t{\n\t\tsetSelection((Selection)null);\n\t} //}}}\n\n\t//{{{ setSelection() method\n\t/**\n\t * Sets the selection.\n\t * @param selection The new selection\n\t * since jEdit 3.2pre1\n\t */\n\tpublic void setSelection(Selection[] selection)\n\t{\n\t\t// invalidate the old selection\n\t\tinvalidateSelectedLines();\n\n\t\tthis.selection.removeAllElements();\n\n\t\tif(selection != null)\n\t\t{\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t\t_addToSelection(selection[i]);\n\t\t}\n\n\t\tfireCaretEvent();\n\t} //}}}\n\n\t//{{{ setSelection() method\n\t/**\n\t * Sets the selection.\n\t * @param selection The new selection\n\t * since jEdit 3.2pre1\n\t */\n\tpublic void setSelection(Selection selection)\n\t{\n\t\tinvalidateSelectedLines();\n\t\tthis.selection.removeAllElements();\n\n\t\tif(selection != null)\n\t\t\t_addToSelection(selection);\n\n\t\tfireCaretEvent();\n\t} //}}}\n\n\t//{{{ addToSelection() method\n\t/**\n\t * Adds to the selection.\n\t * @param selection The new selection\n\t * since jEdit 3.2pre1\n\t */\n\tpublic void addToSelection(Selection[] selection)\n\t{\n\t\tif(selection != null)\n\t\t{\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t\t_addToSelection(selection[i]);\n\t\t}\n\n\t\t// to hide current line highlight\n\t\tinvalidateLine(caretLine);\n\n\t\tfireCaretEvent();\n\t} //}}}\n\n\t//{{{ addToSelection() method\n\t/**\n\t * Adds to the selection.\n\t * @param selection The new selection\n\t * since jEdit 3.2pre1\n\t */\n\tpublic void addToSelection(Selection selection)\n\t{\n\t\t_addToSelection(selection);\n\n\t\t// to hide current line highlight\n\t\tinvalidateLine(caretLine);\n\n\t\tfireCaretEvent();\n\t} //}}}\n\n\t//{{{ getSelectionAtOffset() method\n\t/**\n\t * Returns the selection containing the specific offset, or null\n\t * if there is no selection at that offset.\n\t * @param offset The offset\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic Selection getSelectionAtOffset(int offset)\n\t{\n\t\tif(selection != null)\n\t\t{\n\t\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t\t{\n\t\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\t\tif(offset >= s.start && offset <= s.end)\n\t\t\t\t\treturn s;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ removeFromSelection() method\n\t/**\n\t * Deactivates the specified selection.\n\t * @param s The selection\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic void removeFromSelection(Selection sel)\n\t{\n\t\tselection.removeElement(sel);\n\t\tinvalidateLineRange(sel.startLine,sel.endLine);\n\n\t\t// to hide current line highlight\n\t\tinvalidateLine(caretLine);\n\n\t\tfireCaretEvent();\n\t} //}}}\n\n\t//{{{ removeFromSelection() method\n\t/**\n\t * Deactivates the selection at the specified offset. If there is\n\t * no selection at that offset, does nothing.\n\t * @param offset The offset\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic void removeFromSelection(int offset)\n\t{\n\t\tSelection sel = getSelectionAtOffset(offset);\n\t\tif(sel == null)\n\t\t\treturn;\n\n\t\tselection.removeElement(sel);\n\t\tinvalidateLineRange(sel.startLine,sel.endLine);\n\n\t\t// to hide current line highlight\n\t\tinvalidateLine(caretLine);\n\n\t\tfireCaretEvent();\n\t} //}}}\n\n\t//{{{ resizeSelection() method\n\t/**\n\t * Resizes the selection at the specified offset, or creates a new\n\t * one if there is no selection at the specified offset. This is a\n\t * utility method that is mainly useful in the mouse event handler\n\t * because it handles the case of end being before offset gracefully\n\t * (unlike the rest of the selection API).\n\t * @param offset The offset\n\t * @param end The new selection end\n\t * @param rect Make the selection rectangular?\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic void resizeSelection(int offset, int end, boolean rect)\n\t{\n\t\tSelection s = getSelectionAtOffset(offset);\n\t\tif(s != null)\n\t\t{\n\t\t\tinvalidateLineRange(s.startLine,s.endLine);\n\t\t\tselection.removeElement(s);\n\t\t}\n\n\t\tif(end < offset)\n\t\t{\n\t\t\tint tmp = offset;\n\t\t\toffset = end;\n\t\t\tend = tmp;\n\t\t}\n\n\t\tSelection newSel;\n\t\tif(rect)\n\t\t\tnewSel = new Selection.Rect(offset,end);\n\t\telse\n\t\t\tnewSel = new Selection.Range(offset,end);\n\n\t\t_addToSelection(newSel);\n\t\tfireCaretEvent();\n\t} //}}}\n\n\t//{{{ extendSelection() method\n\t/**\n\t * Extends the selection at the specified offset, or creates a new\n\t * one if there is no selection at the specified offset. This is\n\t * different from resizing in that the new chunk is added to the\n\t * selection in question, instead of replacing it.\n\t * @param offset The offset\n\t * @param end The new selection end\n\t * @param rect Make the selection rectangular?\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic void extendSelection(int offset, int end)\n\t{\n\t\tSelection s = getSelectionAtOffset(offset);\n\t\tif(s != null)\n\t\t{\n\t\t\tinvalidateLineRange(s.startLine,s.endLine);\n\t\t\tselection.removeElement(s);\n\n\t\t\tif(offset == s.start)\n\t\t\t{\n\t\t\t\toffset = end;\n\t\t\t\tend = s.end;\n\t\t\t}\n\t\t\telse if(offset == s.end)\n\t\t\t{\n\t\t\t\toffset = s.start;\n\t\t\t}\n\t\t}\n\n\t\tif(end < offset)\n\t\t{\n\t\t\tint tmp = end;\n\t\t\tend = offset;\n\t\t\toffset = tmp;\n\t\t}\n\n\t\t_addToSelection(new Selection.Range(offset,end));\n\t\tfireCaretEvent();\n\t} //}}}\n\n\t//{{{ getSelectedText() method\n\t/**\n\t * Returns the text in the specified selection.\n\t * @param s The selection\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic String getSelectedText(Selection s)\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tgetSelectedText(s,buf);\n\t\treturn buf.toString();\n\t} //}}}\n\n\t//{{{ getSelectedText() method\n\t/**\n\t * Returns the text in all active selections.\n\t * @param separator The string to insert between each text chunk\n\t * (for example, a newline)\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic String getSelectedText(String separator)\n\t{\n\t\tif(selection.size() == 0)\n\t\t\treturn null;\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(separator);\n\n\t\t\tgetSelectedText((Selection)selection.elementAt(i),buf);\n\t\t}\n\n\t\treturn buf.toString();\n\t} //}}}\n\n\t//{{{ getSelectedText() method\n\t/**\n\t * Returns the text in all active selections, with a newline\n\t * between each text chunk.\n\t */\n\tpublic String getSelectedText()\n\t{\n\t\treturn getSelectedText(\"\\n\");\n\t} //}}}\n\n\t//{{{ setSelectedText() method\n\t/**\n\t * Replaces the selection with the specified text.\n\t * @param s The selection\n\t * @param selectedText The new text\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic void setSelectedText(Selection s, String selectedText)\n\t{\n\t\tif(!isEditable())\n\t\t{\n\t\t\tthrow new InternalError(\"Text component\"\n\t\t\t\t+ \" read only\");\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tif(s instanceof Selection.Rect)\n\t\t\t{\n\t\t\t\tint start = s.start - getLineStartOffset(s.startLine);\n\t\t\t\tint end = s.end - getLineStartOffset(s.endLine);\n\n\t\t\t\t// Certain rectangles satisfy this condition...\n\t\t\t\tif(end < start)\n\t\t\t\t{\n\t\t\t\t\tint tmp = end;\n\t\t\t\t\tend = start;\n\t\t\t\t\tstart = tmp;\n\t\t\t\t}\n\n\t\t\t\tint lastNewline = 0;\n\t\t\t\tint currNewline = 0;\n\n\t\t\t\tfor(int i = s.startLine; i <= s.endLine; i++)\n\t\t\t\t{\n\t\t\t\t\tint lineStart = getLineStartOffset(i);\n\t\t\t\t\tint lineEnd = getLineEndOffset(i) - 1;\n\t\t\t\t\tint rectStart = Math.min(lineEnd,lineStart + start);\n\n\t\t\t\t\tbuffer.remove(rectStart,Math.min(lineEnd - rectStart,\n\t\t\t\t\t\tend - start));\n\n\t\t\t\t\tif(selectedText == null)\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tcurrNewline = selectedText.indexOf('\\n',lastNewline);\n\t\t\t\t\tif(currNewline == -1)\n\t\t\t\t\t\tcurrNewline = selectedText.length();\n\n\t\t\t\t\tbuffer.insert(rectStart,selectedText\n\t\t\t\t\t\t.substring(lastNewline,currNewline));\n\n\t\t\t\t\tlastNewline = Math.min(selectedText.length(),\n\t\t\t\t\t\tcurrNewline + 1);\n\t\t\t\t}\n\n\t\t\t\tif(selectedText != null &&\n\t\t\t\t\tcurrNewline != selectedText.length())\n\t\t\t\t{\n\t\t\t\t\tint offset = getLineEndOffset(s.endLine) - 1;\n\t\t\t\t\tbuffer.insert(offset,\"\\n\");\n\t\t\t\t\tbuffer.insert(offset + 1,selectedText\n\t\t\t\t\t\t.substring(currNewline + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.remove(s.start,s.end - s.start);\n\t\t\t\tif(selectedText != null && selectedText.length() != 0)\n\t\t\t\t{\n\t\t\t\t\tbuffer.insert(s.start,selectedText);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// No matter what happends... stops us from leaving buffer\n\t\t// in a bad state\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\t// no no no!!!!\n\t\t//selectNone();\n\t} //}}}\n\n\t//{{{ setSelectedText() method\n\t/**\n\t * Replaces the selection at the caret with the specified text.\n\t * If there is no selection at the caret, the text is inserted at\n\t * the caret position.\n\t */\n\tpublic void setSelectedText(String selectedText)\n\t{\n\t\tif(!isEditable())\n\t\t{\n\t\t\tthrow new InternalError(\"Text component\"\n\t\t\t\t+ \" read only\");\n\t\t}\n\n\t\tSelection[] selection = getSelection();\n\t\tif(selection.length == 0)\n\t\t{\n\t\t\t// for compatibility with older jEdit versions\n\t\t\tbuffer.insert(caret,selectedText);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t\t{\n\t\t\t\t\tsetSelectedText(selection[i],selectedText);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\n\t\tselectNone();\n\t} //}}}\n\n\t//{{{ getSelectedLines() method\n\t/**\n\t * Returns an array of all line numbers that contain a selection.\n\t * This array will also include the line number containing the\n\t * caret, for convinience.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic int[] getSelectedLines()\n\t{\n\t\tif(selection.size() == 0)\n\t\t\treturn new int[] { caretLine };\n\n\t\tInteger line;\n\n\t\tHashtable hash = new Hashtable();\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\tint endLine = (s.end == getLineStartOffset(s.endLine)\n\t\t\t\t? s.endLine - 1\n\t\t\t\t: s.endLine);\n\n\t\t\tfor(int j = s.startLine; j <= endLine; j++)\n\t\t\t{\n\t\t\t\tline = new Integer(j);\n\t\t\t\thash.put(line,line);\n\t\t\t}\n\t\t}\n\n\t\tint[] returnValue = new int[hash.size()];\n\t\tint i = 0;\n\n\t\tEnumeration keys = hash.keys();\n\t\twhile(keys.hasMoreElements())\n\t\t{\n\t\t\tline = (Integer)keys.nextElement();\n\t\t\treturnValue[i++] = line.intValue();\n\t\t}\n\n\t\tArrays.sort(returnValue);\n\n\t\treturn returnValue;\n\t} //}}}\n\n\t//{{{ showSelectLineRangeDialog() method\n\t/**\n\t * Displays the 'select line range' dialog box, and selects the\n\t * specified range of lines.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void showSelectLineRangeDialog()\n\t{\n\t\tnew SelectLineRange(view);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Caret\n\n\t//{{{ blinkCaret() method\n\t/**\n\t * Blinks the caret.\n\t */\n\tpublic final void blinkCaret()\n\t{\n\t\tif(caretBlinks)\n\t\t{\n\t\t\tblink = !blink;\n\t\t\tinvalidateLine(caretLine);\n\t\t}\n\t\telse\n\t\t\tblink = true;\n\t} //}}}\n\n\t//{{{ centerCaret() method\n\t/**\n\t * Centers the caret on the screen.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void centerCaret()\n\t{\n\t\tint offset = getScreenLineStartOffset(visibleLines / 2);\n\t\tif(offset == -1)\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t\tsetCaretPosition(offset);\n\t} //}}}\n\n\t//{{{ setCaretPosition() method\n\t/**\n\t * Sets the caret position and deactivates the selection.\n\t * @param caret The caret position\n\t */\n\tpublic void setCaretPosition(int newCaret)\n\t{\n\t\tinvalidateSelectedLines();\n\t\tselection.removeAllElements();\n\t\tmoveCaretPosition(newCaret,true);\n\t} //}}}\n\n\t//{{{ setCaretPosition() method\n\t/**\n\t * Sets the caret position and deactivates the selection.\n\t * @param caret The caret position\n\t * @param doElectricScroll Do electric scrolling?\n\t */\n\tpublic void setCaretPosition(int newCaret, boolean doElectricScroll)\n\t{\n\t\tinvalidateSelectedLines();\n\t\tselection.removeAllElements();\n\t\tmoveCaretPosition(newCaret,doElectricScroll);\n\t} //}}}\n\n\t//{{{ moveCaretPosition() method\n\t/**\n\t * Sets the caret position without deactivating the selection.\n\t * @param caret The caret position\n\t */\n\tpublic void moveCaretPosition(int newCaret)\n\t{\n\t\tmoveCaretPosition(newCaret,true);\n\t} //}}}\n\n\t//{{{ moveCaretPosition() method\n\t/**\n\t * Sets the caret position without deactivating the selection.\n\t * @param caret The caret position\n\t * @param doElectricScroll Do electric scrolling?\n\t */\n\tpublic void moveCaretPosition(int newCaret, boolean doElectricScroll)\n\t{\n\t\tif(newCaret < 0 || newCaret > buffer.getLength())\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"caret out of bounds: \"\n\t\t\t\t+ newCaret);\n\t\t}\n\n\t\t// When the user is typing, etc, we don't want the caret\n\t\t// to blink\n\t\tblink = true;\n\t\tcaretTimer.restart();\n\n\t\tif(caret == newCaret)\n\t\t{\n\t\t\tif(focusedComponent == this)\n\t\t\t\tfinishCaretUpdate(doElectricScroll,false);\n\t\t\treturn;\n\t\t}\n\n\t\tint newCaretLine = getLineOfOffset(newCaret);\n\n\t\tmagicCaret = -1;\n\n\t\tif(!foldVisibilityManager.isLineVisible(newCaretLine))\n\t\t{\n\t\t\tif(foldVisibilityManager.isNarrowed())\n\t\t\t{\n\t\t\t\tint collapseFolds = buffer.getIntegerProperty(\n\t\t\t\t\t\"collapseFolds\",0);\n\t\t\t\tif(collapseFolds != 0)\n\t\t\t\t\tfoldVisibilityManager.expandFolds(collapseFolds);\n\t\t\t\telse\n\t\t\t\t\tfoldVisibilityManager.expandAllFolds();\n\t\t\t}\n\t\t\telse\n\t\t\t\tfoldVisibilityManager.expandFold(newCaretLine,false);\n\t\t}\n\n\t\tif(caretLine == newCaretLine)\n\t\t{\n\t\t\tif(caretScreenLine != -1)\n\t\t\t\tinvalidateScreenLineRange(caretScreenLine,caretScreenLine);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcaretScreenLine = chunkCache.getScreenLineOfOffset(newCaretLine,\n\t\t\t\tnewCaret - buffer.getLineStartOffset(newCaretLine));\n\t\t\tinvalidateLineRange(caretLine,newCaretLine);\n\t\t}\n\n\t\tcaret = newCaret;\n\t\tcaretLine = newCaretLine;\n\n\t\tif(focusedComponent == this)\n\t\t\tfinishCaretUpdate(doElectricScroll,true);\n\t} //}}}\n\n\t//{{{ getCaretPosition() method\n\t/**\n\t * Returns the caret position.\n\t */\n\tpublic int getCaretPosition()\n\t{\n\t\treturn caret;\n\t} //}}}\n\n\t//{{{ getCaretLine() method\n\t/**\n\t * Returns the line number containing the caret.\n\t */\n\tpublic int getCaretLine()\n\t{\n\t\treturn caretLine;\n\t} //}}}\n\n\t//{{{ getMagicCaretPosition() method\n\t/**\n\t * @deprecated Do not call this method.\n\t */\n\tpublic final int getMagicCaretPosition()\n\t{\n\t\tif(magicCaret == -1)\n\t\t{\n\t\t\tmagicCaret = offsetToX(caretLine,caret\n\t\t\t\t- getLineStartOffset(caretLine));\n\t\t}\n\n\t\treturn magicCaret;\n\t} //}}}\n\n\t//{{{ setMagicCaretPosition() method\n\t/**\n\t * Sets the `magic' caret position. This can be used to preserve\n\t * the column position when moving up and down lines.\n\t * @param magicCaret The magic caret position\n\t */\n\tpublic final void setMagicCaretPosition(int magicCaret)\n\t{\n\t\tthis.magicCaret = magicCaret;\n\t} //}}}\n\n\t//{{{ addCaretListener() method\n\t/**\n\t * Adds a caret change listener to this text area.\n\t * @param listener The listener\n\t */\n\tpublic final void addCaretListener(CaretListener listener)\n\t{\n\t\tlistenerList.add(CaretListener.class,listener);\n\t} //}}}\n\n\t//{{{ removeCaretListener() method\n\t/**\n\t * Removes a caret change listener from this text area.\n\t * @param listener The listener\n\t */\n\tpublic final void removeCaretListener(CaretListener listener)\n\t{\n\t\tlistenerList.remove(CaretListener.class,listener);\n\t} //}}}\n\n\t//{{{ getBracketPosition() method\n\t/**\n\t * Returns the position of the highlighted bracket (the bracket\n\t * matching the one before the caret)\n\t */\n\tpublic final int getBracketPosition()\n\t{\n\t\treturn bracketPosition;\n\t} //}}}\n\n\t//{{{ getBracketLine() method\n\t/**\n\t * Returns the line of the highlighted bracket (the bracket\n\t * matching the one before the caret)\n\t */\n\tpublic final int getBracketLine()\n\t{\n\t\treturn bracketLine;\n\t} //}}}\n\n\t//{{{ goToNextBracket() method\n\t/**\n\t * Moves the caret to the next closing bracket.\n\t * @since jEdit 2.7pre2.\n\t */\n\tpublic void goToNextBracket(boolean select)\n\t{\n\t\tString text = getText(caret,buffer.getLength() - caret - 1);\n\n\t\tint newCaret = -1;\n\nloop:\t\tfor(int i = 0; i < text.length(); i++)\n\t\t{\n\t\t\tswitch(text.charAt(i))\n\t\t\t{\n\t\t\tcase ')': case ']': case '}':\n\t\t\t\tnewCaret = caret + i + 1;\n\t\t\t\tbreak loop;\n\t\t\t}\n\t\t}\n\n\t\tif(newCaret == -1)\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t{\n\t\t\tif(select)\n\t\t\t\textendSelection(caret,newCaret);\n\t\t\telse if(!multi)\n\t\t\t\tselectNone();\n\t\t\tmoveCaretPosition(newCaret);\n\t\t}\n\t} //}}}\n\n\t//{{{ goToNextCharacter() method\n\t/**\n\t * Moves the caret to the next character.\n\t * @since jEdit 2.7pre2.\n\t */\n\tpublic void goToNextCharacter(boolean select)\n\t{\n\t\tif(!select && selection.size() != 0)\n\t\t{\n\t\t\tSelection s = getSelectionAtOffset(caret);\n\t\t\tif(s != null)\n\t\t\t{\n\t\t\t\tif(multi)\n\t\t\t\t{\n\t\t\t\t\tif(caret != s.end)\n\t\t\t\t\t{\n\t\t\t\t\t\tmoveCaretPosition(s.end);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsetCaretPosition(s.end);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(caret == buffer.getLength())\n\t\t\tgetToolkit().beep();\n\n\t\tint newCaret;\n\n\t\tif(caret == getLineEndOffset(caretLine) - 1)\n\t\t{\n\t\t\tint line = foldVisibilityManager.getNextVisibleLine(caretLine);\n\t\t\tif(line == -1)\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tnewCaret = getLineStartOffset(line);\n\t\t}\n\t\telse\n\t\t\tnewCaret = caret + 1;\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\t} //}}}\n\n\t//{{{ goToNextLine() method\n\t/**\n\t * Movse the caret to the next line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToNextLine(boolean select)\n\t{\n\t\tChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(caretLine);\n\n\t\tint caretFromStartOfLine = caret - buffer.getLineStartOffset(caretLine);\n\t\tint subregion = getSubregionOfOffset(caretFromStartOfLine,\n\t\t\tlineInfos);\n\n\t\tint magic = this.magicCaret;\n\t\tif(magic == -1)\n\t\t{\n\t\t\tmagic = subregionOffsetToX(lineInfos[subregion],\n\t\t\t\tcaretFromStartOfLine);\n\t\t}\n\n\t\tint newCaret;\n\n\t\tif(subregion != lineInfos.length - 1)\n\t\t{\n\t\t\tnewCaret = buffer.getLineStartOffset(caretLine)\n\t\t\t\t+ xToSubregionOffset(lineInfos[subregion + 1],magic,\n\t\t\t\ttrue);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint nextLine = foldVisibilityManager.getNextVisibleLine(caretLine);\n\n\t\t\tif(nextLine == -1)\n\t\t\t{\n\t\t\t\tint end = getLineEndOffset(caretLine) - 1;\n\t\t\t\tif(caret == end)\n\t\t\t\t{\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnewCaret = end;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlineInfos = chunkCache.getLineInfosForPhysicalLine(nextLine);\n\t\t\t\tnewCaret = getLineStartOffset(nextLine)\n\t\t\t\t\t+ xToSubregionOffset(lineInfos[0],magic + 1,\n\t\t\t\t\ttrue);\n\t\t\t}\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\n\t\tthis.magicCaret = magic;\n\t} //}}}\n\n\t//{{{ goToNextMarker() method\n\t/**\n\t * Moves the caret to the next marker.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToNextMarker(boolean select)\n\t{\n\t\tVector markers = buffer.getMarkers();\n\t\tif(markers.size() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tMarker marker = null;\n\n\t\tfor(int i = 0; i < markers.size(); i++)\n\t\t{\n\t\t\tMarker _marker = (Marker)markers.get(i);\n\t\t\tif(_marker.getPosition() > caret)\n\t\t\t{\n\t\t\t\tmarker = _marker;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(marker == null)\n\t\t\tmarker = (Marker)markers.get(0);\n\n\t\tif(select)\n\t\t\textendSelection(caret,marker.getPosition());\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(marker.getPosition());\n\t} //}}}\n\n\t//{{{ goToNextPage() method\n\t/**\n\t * Moves the caret to the next screenful.\n\t * @since jEdit 2.7pre2.\n\t */\n\tpublic void goToNextPage(boolean select)\n\t{\n\t\tint lineCount = getVirtualLineCount();\n\n\t\tint magic = getMagicCaretPosition();\n\n\t\tif(firstLine + visibleLines * 2 >= lineCount - 1)\n\t\t\tsetFirstLine(lineCount - visibleLines);\n\t\telse\n\t\t\tsetFirstLine(firstLine + visibleLines);\n\n\t\tint newLine = virtualToPhysical(Math.min(lineCount - 1,\n\t\t\tphysicalToVirtual(caretLine) + visibleLines));\n\t\tint newCaret = getLineStartOffset(newLine)\n\t\t\t+ xToOffset(newLine,magic + 1);\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);\n\n\t\tsetMagicCaretPosition(magic);\n\t} //}}}\n\n\t//{{{ goToNextParagraph() method\n\t/**\n\t * Moves the caret to the start of the next paragraph.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToNextParagraph(boolean select)\n\t{\n\t\tint lineNo = getCaretLine();\n\n\t\tint newCaret = getBufferLength();\n\n\t\tboolean foundBlank = false;\n\nloop:\t\tfor(int i = lineNo + 1; i < getLineCount(); i++)\n\t\t{\n\t\t\tif(!foldVisibilityManager.isLineVisible(i))\n\t\t\t\tcontinue;\n\n\t\t\tgetLineText(i,lineSegment);\n\n\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t{\n\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t{\n\t\t\t\tcase ' ':\n\t\t\t\tcase '\\t':\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif(foundBlank)\n\t\t\t\t\t{\n\t\t\t\t\t\tnewCaret = getLineStartOffset(i);\n\t\t\t\t\t\tbreak loop;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfoundBlank = true;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);\n\t} //}}}\n\n\t//{{{ goToNextWord() method\n\t/**\n\t * Moves the caret to the start of the next word.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToNextWord(boolean select)\n\t{\n\t\tint lineStart = getLineStartOffset(caretLine);\n\t\tint newCaret = caret - lineStart;\n\t\tString lineText = getLineText(caretLine);\n\n\t\tif(newCaret == lineText.length())\n\t\t{\n\t\t\tint nextLine = foldVisibilityManager.getNextVisibleLine(caretLine);\n\t\t\tif(nextLine == -1)\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tnewCaret = getLineStartOffset(nextLine);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\t\t\tnewCaret = TextUtilities.findWordEnd(lineText,newCaret + 1,\n\t\t\t\tnoWordSep) + lineStart;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);\n\t} //}}}\n\n\t//{{{ goToPrevBracket() method\n\t/**\n\t * Moves the caret to the previous bracket.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToPrevBracket(boolean select)\n\t{\n\t\tString text = getText(0,caret);\n\n\t\tint newCaret = -1;\n\nloop:\t\tfor(int i = getCaretPosition() - 1; i >= 0; i--)\n\t\t{\n\t\t\tswitch(text.charAt(i))\n\t\t\t{\n\t\t\tcase '(': case '[': case '{':\n\t\t\t\tnewCaret = i;\n\t\t\t\tbreak loop;\n\t\t\t}\n\t\t}\n\n\t\tif(newCaret == -1)\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t{\n\t\t\tif(select)\n\t\t\t\textendSelection(caret,newCaret);\n\t\t\telse if(!multi)\n\t\t\t\tselectNone();\n\t\t\tmoveCaretPosition(newCaret);\n\t\t}\n\t} //}}}\n\n\t//{{{ goToPrevCharacter() method\n\t/**\n\t * Moves the caret to the previous character.\n\t * @since jEdit 2.7pre2.\n\t */\n\tpublic void goToPrevCharacter(boolean select)\n\t{\n\t\tif(!select && selection.size() != 0)\n\t\t{\n\t\t\tSelection s = getSelectionAtOffset(caret);\n\t\t\tif(s != null)\n\t\t\t{\n\t\t\t\tif(multi)\n\t\t\t\t{\n\t\t\t\t\tif(caret != s.start)\n\t\t\t\t\t{\n\t\t\t\t\t\tmoveCaretPosition(s.start);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsetCaretPosition(s.start);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint newCaret;\n\n\t\tif(caret == getLineStartOffset(caretLine))\n\t\t{\n\t\t\tint line = foldVisibilityManager.getPrevVisibleLine(caretLine);\n\t\t\tif(line == -1)\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnewCaret = getLineEndOffset(line) - 1;\n\t\t}\n\t\telse\n\t\t\tnewCaret = caret - 1;\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);\n\t} //}}}\n\n\t//{{{ goToPrevLine() method\n\t/**\n\t * Moves the caret to the previous line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToPrevLine(boolean select)\n\t{\n\t\tChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(caretLine);\n\n\t\tint caretFromStartOfLine = caret - buffer.getLineStartOffset(caretLine);\n\t\tint subregion = getSubregionOfOffset(caretFromStartOfLine,\n\t\t\tlineInfos);\n\n\t\tint magic = this.magicCaret;\n\t\tif(magic == -1)\n\t\t{\n\t\t\tmagic = subregionOffsetToX(lineInfos[subregion],\n\t\t\t\tcaretFromStartOfLine);\n\t\t}\n\n\t\tint newCaret;\n\n\t\tif(subregion != 0)\n\t\t{\n\t\t\tnewCaret = buffer.getLineStartOffset(caretLine)\n\t\t\t\t+ xToSubregionOffset(lineInfos[subregion - 1],magic,\n\t\t\t\ttrue);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint prevLine = foldVisibilityManager.getPrevVisibleLine(caretLine);\n\n\t\t\tif(prevLine == -1)\n\t\t\t{\n\t\t\t\tint start = getLineStartOffset(caretLine);\n\t\t\t\tif(caret == start)\n\t\t\t\t{\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnewCaret = start;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlineInfos = chunkCache.getLineInfosForPhysicalLine(prevLine);\n\t\t\t\tnewCaret = getLineStartOffset(prevLine)\n\t\t\t\t\t+ xToSubregionOffset(lineInfos[\n\t\t\t\t\tlineInfos.length - 1],magic + 1,\n\t\t\t\t\ttrue);\n\t\t\t}\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\n\t\tthis.magicCaret = magic;\n\t} //}}}\n\n\t//{{{ goToPrevMarker() method\n\t/**\n\t * Moves the caret to the previous marker.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToPrevMarker(boolean select)\n\t{\n\t\tVector markers = buffer.getMarkers();\n\t\tif(markers.size() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tMarker marker = null;\n\t\tfor(int i = markers.size() - 1; i >= 0; i--)\n\t\t{\n\t\t\tMarker _marker = (Marker)markers.elementAt(i);\n\t\t\tif(_marker.getPosition() < caret)\n\t\t\t{\n\t\t\t\tmarker = _marker;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(marker == null)\n\t\t\tmarker = (Marker)markers.get(markers.size() - 1);\n\n\t\tif(select)\n\t\t\textendSelection(caret,marker.getPosition());\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(marker.getPosition());\n\t} //}}}\n\n\t//{{{ goToPrevPage() method\n\t/**\n\t * Moves the caret to the previous screenful.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToPrevPage(boolean select)\n\t{\n\t\tif(firstLine < visibleLines)\n\t\t\tsetFirstLine(0);\n\t\telse\n\t\t\tsetFirstLine(firstLine - visibleLines);\n\n\t\tint magic = getMagicCaretPosition();\n\n\t\tint newLine = virtualToPhysical(Math.max(0,\n\t\t\tphysicalToVirtual(caretLine) - visibleLines));\n\t\tint newCaret = getLineStartOffset(newLine)\n\t\t\t+ xToOffset(newLine,magic + 1);\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\t\tsetMagicCaretPosition(magic);\n\t} //}}}\n\n\t//{{{ goToPrevParagraph() method\n\t/**\n\t * Moves the caret to the start of the previous paragraph.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToPrevParagraph(boolean select)\n\t{\n\t\tint lineNo = caretLine;\n\t\tint newCaret = 0;\n\n\t\tboolean foundBlank = false;\n\nloop:\t\tfor(int i = lineNo - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(!foldVisibilityManager.isLineVisible(i))\n\t\t\t\tcontinue;\n\n\t\t\tgetLineText(i,lineSegment);\n\n\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t{\n\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t{\n\t\t\t\tcase ' ':\n\t\t\t\tcase '\\t':\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif(foundBlank)\n\t\t\t\t\t{\n\t\t\t\t\t\tnewCaret = getLineEndOffset(i) - 1;\n\t\t\t\t\t\tbreak loop;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfoundBlank = true;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);\n\t} //}}}\n\n\t//{{{ goToPrevWord() method\n\t/**\n\t * Moves the caret to the start of the previous word.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToPrevWord(boolean select)\n\t{\n\t\tint lineStart = getLineStartOffset(caretLine);\n\t\tint newCaret = caret - lineStart;\n\t\tString lineText = getLineText(caretLine);\n\n\t\tif(newCaret == 0)\n\t\t{\n\t\t\tif(lineStart == 0)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint prevLine = foldVisibilityManager.getPrevVisibleLine(caretLine);\n\t\t\t\tif(prevLine == -1)\n\t\t\t\t{\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tnewCaret = getLineEndOffset(prevLine) - 1;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\t\t\tnewCaret = TextUtilities.findWordStart(lineText,newCaret - 1,\n\t\t\t\tnoWordSep) + lineStart;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);\n\t} //}}}\n\n\t//{{{ smartHome() method\n\t/**\n\t * On subsequent invocations, first moves the caret to the first\n\t * non-whitespace character of the line, then the beginning of the\n\t * line, then to the first visible line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void smartHome(boolean select)\n\t{\n\t\tif(!jEdit.getBooleanProperty(\"view.homeEnd\"))\n\t\t\tgoToStartOfLine(select);\n\t\telse\n\t\t{\n\t\t\tswitch(view.getInputHandler().getLastActionCount())\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t\tgoToStartOfWhiteSpace(select);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tgoToStartOfLine(select);\n\t\t\t\tbreak;\n\t\t\tdefault: //case 3:\n\t\t\t\tgoToFirstVisibleLine(select);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ smartEnd() method\n\t/**\n\t * On subsequent invocations, first moves the caret to the last\n\t * non-whitespace character of the line, then the end of the\n\t * line, then to the last visible line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void smartEnd(boolean select)\n\t{\n\t\tif(!jEdit.getBooleanProperty(\"view.homeEnd\"))\n\t\t\tgoToEndOfLine(select);\n\t\telse\n\t\t{\n\t\t\tswitch(view.getInputHandler().getLastActionCount())\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t\tgoToEndOfWhiteSpace(select);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tgoToEndOfLine(select);\n\t\t\t\tbreak;\n\t\t\tdefault: //case 3:\n\t\t\t\tgoToLastVisibleLine(select);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ goToStartOfLine() method\n\t/**\n\t * Moves the caret to the beginning of the current line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToStartOfLine(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToStartOfLine(\" + select + \");\");\n\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tint line = (select || s == null\n\t\t\t? caretLine : s.startLine);\n\t\tint newCaret = getLineStartOffset(line);\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);\n\t} //}}}\n\n\t//{{{ goToEndOfLine() method\n\t/**\n\t * Moves the caret to the end of the current line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToEndOfLine(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToEndOfLine(\" + select + \");\");\n\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tint line = (select || s == null\n\t\t\t? caretLine : s.endLine);\n\t\tint newCaret = getLineEndOffset(line) - 1;\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);\n\n\t\t// so that end followed by up arrow will always put caret at\n\t\t// the end of the previous line, for example\n\t\tsetMagicCaretPosition(Integer.MAX_VALUE);\n\t} //}}}\n\n\t//{{{ goToStartOfWhiteSpace() method\n\t/**\n\t * Moves the caret to the first non-whitespace character of the current\n\t * line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToStartOfWhiteSpace(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToStartOfWhiteSpace(\" + select + \");\");\n\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tint line, offset;\n\t\tif(select || s == null)\n\t\t{\n\t\t\tline = caretLine;\n\t\t\toffset = caret - buffer.getLineStartOffset(line);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tline = s.startLine;\n\t\t\toffset = s.start - buffer.getLineStartOffset(line);\n\t\t}\n\n\t\tint firstIndent;\n\n\t\tChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(line);\n\t\tint subregion = getSubregionOfOffset(offset,lineInfos);\n\t\tif(subregion == 0)\n\t\t{\n\t\t\tfirstIndent = MiscUtilities.getLeadingWhiteSpace(getLineText(line));\n\t\t\tif(firstIndent == getLineLength(line))\n\t\t\t\tfirstIndent = 0;\n\t\t\tfirstIndent += getLineStartOffset(line);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfirstIndent = getLineStartOffset(line)\n\t\t\t\t+ lineInfos[subregion].offset;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,firstIndent);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(firstIndent);\n\t} //}}}\n\n\t//{{{ goToEndOfWhiteSpace() method\n\t/**\n\t * Moves the caret to the last non-whitespace character of the current\n\t * line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToEndOfWhiteSpace(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToEndOfWhiteSpace(\" + select + \");\");\n\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tint line, offset;\n\t\tif(select || s == null)\n\t\t{\n\t\t\tline = caretLine;\n\t\t\toffset = caret - getLineStartOffset(line);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tline = s.endLine;\n\t\t\toffset = s.end - getLineStartOffset(line);\n\t\t}\n\n\t\tint lastIndent;\n\n\t\tChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(line);\n\t\tint subregion = getSubregionOfOffset(offset,lineInfos);\n\t\tif(subregion == lineInfos.length - 1)\n\t\t{\n\t\t\tlastIndent = getLineLength(line) - MiscUtilities.getTrailingWhiteSpace(getLineText(line));\n\t\t\tif(lastIndent == 0)\n\t\t\t\tlastIndent = getLineLength(line);\n\t\t\tlastIndent += getLineStartOffset(line);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlastIndent = getLineStartOffset(line)\n\t\t\t\t+ lineInfos[subregion].offset\n\t\t\t\t+ lineInfos[subregion].length - 1;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,lastIndent);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(lastIndent);\n\t} //}}}\n\n\t//{{{ goToFirstVisibleLine() method\n\t/**\n\t * Moves the caret to the first visible line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToFirstVisibleLine(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToFirstVisibleLine(\" + select + \");\");\n\n\t\tint firstVisibleLine = firstLine == 0 ? 0 : electricScroll;\n\t\tint firstVisible = getScreenLineStartOffset(firstVisibleLine);\n\t\tif(firstVisible == -1)\n\t\t{\n\t\t\tfirstVisible = getLineStartOffset(foldVisibilityManager\n\t\t\t\t.getFirstVisibleLine());\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,firstVisible);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(firstVisible);\n\t} //}}}\n\n\t//{{{ goToLastVisibleLine() method\n\t/**\n\t * Moves the caret to the last visible line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void goToLastVisibleLine(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToLastVisibleLine(\" + select + \");\");\n\n\t\tint lastVisible;\n\n\t\tif(firstLine + visibleLines >= getVirtualLineCount())\n\t\t{\n\t\t\tlastVisible = getLineEndOffset(foldVisibilityManager\n\t\t\t\t.getLastVisibleLine()) - 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlastVisible = getScreenLineEndOffset(visibleLines\n\t\t\t\t- electricScroll - 1) - 1;\n\t\t\tif(lastVisible == -1)\n\t\t\t{\n\t\t\t\tlastVisible = getLineEndOffset(foldVisibilityManager\n\t\t\t\t\t.getLastVisibleLine()) - 1;\n\t\t\t}\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,lastVisible);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(lastVisible);\n\t} //}}}\n\n\t//{{{ goToBufferStart() method\n\t/**\n\t * Moves the caret to the beginning of the buffer.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void goToBufferStart(boolean select)\n\t{\n\t\tint start = buffer.getLineStartOffset(\n\t\t\tfoldVisibilityManager.getFirstVisibleLine());\n\t\tif(select)\n\t\t\textendSelection(caret,start);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(start);\n\t} //}}}\n\n\t//{{{ goToBufferEnd() method\n\t/**\n\t * Moves the caret to the end of the buffer.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void goToBufferEnd(boolean select)\n\t{\n\t\tint end = buffer.getLineEndOffset(\n\t\t\tfoldVisibilityManager.getLastVisibleLine()) - 1;\n\t\tif(select)\n\t\t\textendSelection(caret,end);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(end);\n\t} //}}}\n\n\t//{{{ goToMatchingBracket() method\n\t/**\n\t * Moves the caret to the bracket matching the one before the caret.\n\t * @since jEdit 2.7pre3\n\t */\n\tpublic void goToMatchingBracket()\n\t{\n\t\tif(getLineLength(caretLine) != 0)\n\t\t{\n\t\t\tint dot = caret - getLineStartOffset(caretLine);\n\n\t\t\tint bracket = TextUtilities.findMatchingBracket(\n\t\t\t\tbuffer,caretLine,Math.max(0,dot - 1));\n\t\t\tif(bracket != -1)\n\t\t\t{\n\t\t\t\tselectNone();\n\t\t\t\tmoveCaretPosition(bracket + 1,false);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tgetToolkit().beep();\n\t} //}}}\n\n\t//{{{ showGoToLineDialog() method\n\t/**\n\t * Displays the 'go to line' dialog box, and moves the caret to the\n\t * specified line number.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void showGoToLineDialog()\n\t{\n\t\tString line = GUIUtilities.input(view,\"goto-line\",null);\n\t\tif(line == null)\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\tint lineNumber = Integer.parseInt(line) - 1;\n\t\t\tsetCaretPosition(getLineStartOffset(lineNumber));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ User input\n\n\t//{{{ userInput() method\n\t/**\n\t * Handles the insertion of the specified character. Performs\n\t * auto indent, expands abbreviations, does word wrap, etc.\n\t * @param ch The character\n\t * @see #setSelectedText(String)\n\t * @see #isOverwriteEnabled()\n\t * @since jEdit 2.7pre3\n\t */\n\tpublic void userInput(char ch)\n\t{\n\t\tif(!isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(ch == ' ' && Abbrevs.getExpandOnInput()\n\t\t\t&& Abbrevs.expandAbbrev(view,false))\n\t\t\treturn;\n\t\telse if(ch == '\\t')\n\t\t{\n\t\t\tif(selection.size() == 1)\n\t\t\t{\n\t\t\t\tSelection sel = (Selection)selection.elementAt(0);\n\t\t\t\tif(sel.startLine == sel.endLine\n\t\t\t\t\t&& sel.start != buffer.getLineStartOffset(sel.startLine)\n\t\t\t\t\t&& sel.end != buffer.getLineEndOffset(sel.startLine) - 1)\n\t\t\t\t{\n\t\t\t\t\tinsertTab();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tshiftIndentRight();\n\t\t\t}\n\t\t\telse if(selection.size() != 0)\n\t\t\t\tshiftIndentRight();\n\t\t\telse if(buffer.getBooleanProperty(\"indentOnTab\"))\n\t\t\t{\n\t\t\t\t// if caret is inside leading whitespace, indent.\n\t\t\t\tString text = buffer.getLineText(caretLine);\n\t\t\t\tint start = buffer.getLineStartOffset(caretLine);\n\t\t\t\tint whiteSpace = MiscUtilities.getLeadingWhiteSpace(text);\n\n\t\t\t\tif(caret - start <= whiteSpace\n\t\t\t\t\t&& buffer.indentLine(caretLine,true,false))\n\t\t\t\t\treturn;\n\t\t\t\telse\n\t\t\t\t\tinsertTab();\n\t\t\t}\n\t\t\telse\n\t\t\t\tinsertTab();\n\t\t\treturn;\n\t\t}\n\t\telse if(ch == '\\n')\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\t\t\t\tsetSelectedText(\"\\n\");\n\t\t\t\tif(buffer.getBooleanProperty(\"indentOnEnter\"))\n\t\t\t\t\tbuffer.indentLine(caretLine,true,false);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString str = String.valueOf(ch);\n\t\t\tif(selection.size() != 0)\n\t\t\t{\n\t\t\t\tsetSelectedText(str);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(ch == ' ')\n\t\t\t{\n\t\t\t\tif(doWordWrap(true))\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t\tdoWordWrap(false);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Don't overstrike if we're on the end of\n\t\t\t\t// the line\n\t\t\t\tif(overwrite)\n\t\t\t\t{\n\t\t\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t\t\tint caretLineEnd = getLineEndOffset(caretLine);\n\t\t\t\t\tif(caretLineEnd - caret > 1)\n\t\t\t\t\t\tbuffer.remove(caret,1);\n\t\t\t\t}\n\n\t\t\t\tbuffer.insert(caret,str);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tif(overwrite)\n\t\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\n\t\t// check if the user entered a bracket\n\t\tString indentOpenBrackets = (String)buffer\n\t\t\t.getProperty(\"indentOpenBrackets\");\n\t\tString indentCloseBrackets = (String)buffer\n\t\t\t.getProperty(\"indentCloseBrackets\");\n\t\tif((indentCloseBrackets != null\n\t\t\t&& indentCloseBrackets.indexOf(ch) != -1)\n\t\t\t|| (indentOpenBrackets != null\n\t\t\t&& indentOpenBrackets.indexOf(ch) != -1))\n\t\t{\n\t\t\tbuffer.indentLine(caretLine,false,true);\n\t\t}\n\t} //}}}\n\n\t//{{{ isOverwriteEnabled() method\n\t/**\n\t * Returns true if overwrite mode is enabled, false otherwise.\n\t */\n\tpublic final boolean isOverwriteEnabled()\n\t{\n\t\treturn overwrite;\n\t} //}}}\n\n\t//{{{ setOverwriteEnabled() method\n\t/**\n\t * Sets overwrite mode.\n\t */\n\tpublic final void setOverwriteEnabled(boolean overwrite)\n\t{\n\t\tblink = true;\n\t\tcaretTimer.restart();\n\n\t\tthis.overwrite = overwrite;\n\t\tinvalidateLine(caretLine);\n\t\tif(view.getStatus() != null)\n\t\t\tview.getStatus().updateMiscStatus();\n\t} //}}}\n\n\t//{{{ toggleOverwriteEnabled() method\n\t/**\n\t * Toggles overwrite mode.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic final void toggleOverwriteEnabled()\n\t{\n\t\tsetOverwriteEnabled(!overwrite);\n\t} //}}}\n\n\t//{{{ backspace() method\n\t/**\n\t * Deletes the character before the caret, or the selection, if one is\n\t * active.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void backspace()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(selection.size() != 0)\n\t\t\tsetSelectedText(null);\n\t\telse\n\t\t{\n\t\t\tif(caret == 0)\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tbuffer.remove(caret - 1,1);\n\t\t}\n\t} //}}}\n\n\t//{{{ backspaceWord() method\n\t/**\n\t * Deletes the word before the caret.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void backspaceWord()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(selection.size() != 0)\n\t\t{\n\t\t\tsetSelectedText(\"\");\n\t\t\treturn;\n\t\t}\n\n\t\tint lineStart = getLineStartOffset(caretLine);\n\t\tint _caret = caret - lineStart;\n\n\t\tString lineText = getLineText(caretLine);\n\n\t\tif(_caret == 0)\n\t\t{\n\t\t\tif(lineStart == 0)\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t_caret--;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\t\t\t_caret = TextUtilities.findWordStart(lineText,_caret-1,noWordSep);\n\t\t}\n\n\t\tbuffer.remove(_caret + lineStart,\n\t\t\tcaret - (_caret + lineStart));\n\t} //}}}\n\n\t//{{{ delete() method\n\t/**\n\t * Deletes the character after the caret.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void delete()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(selection.size() != 0)\n\t\t\tsetSelectedText(null);\n\t\telse\n\t\t{\n\t\t\tif(caret == buffer.getLength())\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tbuffer.remove(caret,1);\n\t\t}\n\t} //}}}\n\n\t//{{{ deleteToEndOfLine() method\n\t/**\n\t * Deletes from the caret to the end of the current line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void deleteToEndOfLine()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tbuffer.remove(caret,getLineEndOffset(caretLine)\n\t\t\t- caret - 1);\n\t} //}}}\n\n\t//{{{ deleteLine() method\n\t/**\n\t * Deletes the line containing the caret.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void deleteLine()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint start = getLineStartOffset(caretLine);\n\t\tint end = getLineEndOffset(caretLine);\n\t\tif(end > buffer.getLength())\n\t\t{\n\t\t\tif(start != 0)\n\t\t\t\tstart--;\n\t\t\tend--;\n\t\t}\n\t\tint x = offsetToX(caretLine,caret - start);\n\t\tbuffer.remove(start,end - start);\n\n\t\tint lastLine = buffer.getLineCount() - 1;\n\t\tif(caretLine == lastLine)\n\t\t{\n\t\t\tsetCaretPosition(buffer.getLineStartOffset(lastLine)\n\t\t\t\t+ xToOffset(caretLine,x));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetCaretPosition(start + xToOffset(caretLine,x));\n\t\t}\n\t} //}}}\n\n\t//{{{ deleteParagraph() method\n\t/**\n\t * Deletes the paragraph containing the caret.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void deleteParagraph()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint start = 0, end = buffer.getLength();\n\nloop:\t\tfor(int i = caretLine - 1; i >= 0; i--)\n\t\t{\n\t\t\t//if(!foldVisibilityManager.isLineVisible(i))\n\t\t\t//\tcontinue loop;\n\n\t\t\tgetLineText(i,lineSegment);\n\n\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t{\n\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t{\n\t\t\t\tcase ' ':\n\t\t\t\tcase '\\t':\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstart = getLineStartOffset(i);\n\t\t\tbreak loop;\n\t\t}\n\nloop:\t\tfor(int i = caretLine + 1; i < getLineCount(); i++)\n\t\t{\n\t\t\t//if(!foldVisibilityManager.isLineVisible(i))\n\t\t\t//\tcontinue loop;\n\n\t\t\tgetLineText(i,lineSegment);\n\n\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t{\n\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t{\n\t\t\t\tcase ' ':\n\t\t\t\tcase '\\t':\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tend = getLineEndOffset(i) - 1;\n\t\t\tbreak loop;\n\t\t}\n\n\t\tbuffer.remove(start,end - start);\n\t} //}}}\n\n\t//{{{ deleteToStartOfLine() method\n\t/**\n\t * Deletes from the caret to the beginning of the current line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void deleteToStartOfLine()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tbuffer.remove(getLineStartOffset(caretLine),\n\t\t\tcaret - getLineStartOffset(caretLine));\n\t} //}}}\n\n\t//{{{ deleteWord() method\n\t/**\n\t * Deletes the word in front of the caret.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void deleteWord()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(selection.size() != 0)\n\t\t{\n\t\t\tsetSelectedText(\"\");\n\t\t\treturn;\n\t\t}\n\n\t\tint lineStart = getLineStartOffset(caretLine);\n\t\tint _caret = caret - lineStart;\n\n\t\tString lineText = getLineText(caretLine);\n\n\t\tif(_caret == lineText.length())\n\t\t{\n\t\t\tif(lineStart + _caret == buffer.getLength())\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t_caret++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\t\t\t_caret = TextUtilities.findWordEnd(lineText,\n\t\t\t\t_caret+1,noWordSep);\n\t\t}\n\n\t\tbuffer.remove(caret,(_caret + lineStart) - caret);\n\t} //}}}\n\n\t//{{{ isMultipleSelectionEnabled() method\n\t/**\n\t * Returns if multiple selection is enabled.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic final boolean isMultipleSelectionEnabled()\n\t{\n\t\treturn multi;\n\t} //}}}\n\n\t//{{{ toggleMultipleSelectionEnabled() method\n\t/**\n\t * Toggles multiple selection.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic final void toggleMultipleSelectionEnabled()\n\t{\n\t\tmulti = !multi;\n\t\tif(view.getStatus() != null)\n\t\t\tview.getStatus().updateMiscStatus();\n\t} //}}}\n\n\t//{{{ setMultipleSelectionEnabled() method\n\t/**\n\t * Sets multiple selection.\n\t * @param multi Should multiple selection be enabled?\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic final void setMultipleSelectionEnabled(boolean multi)\n\t{\n\t\tJEditTextArea.multi = multi;\n\t\tEditBus.send(new MultiSelectStatusChanged(null));\n\t}\n\t//}}}\n\n\t//}}}\n\n\t//{{{ Markers\n\n\t//{{{ goToMarker() method\n\t/**\n\t * Moves the caret to the marker with the specified shortcut.\n\t * @param shortcut The shortcut\n\t * @param select True if the selection should be extended,\n\t * false otherwise\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic void goToMarker(char shortcut, boolean select)\n\t{\n\t\tMarker marker = buffer.getMarker(shortcut);\n\t\tif(marker == null)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint pos = marker.getPosition();\n\n\t\tif(select)\n\t\t\textendSelection(caret,pos);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(pos);\n\t} //}}}\n\n\t//{{{ addMarker() method\n\t/**\n\t * Adds a marker at the caret position.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic void addMarker()\n\t{\n\t\t// always add markers on selected lines\n\t\tSelection[] selection = getSelection();\n\t\tfor(int i = 0; i < selection.length; i++)\n\t\t{\n\t\t\tSelection s = selection[i];\n\t\t\tif(s.startLine != s.endLine)\n\t\t\t{\n\t\t\t\tif(s.startLine != caretLine)\n\t\t\t\t\tbuffer.addMarker('\\0',s.start);\n\t\t\t}\n\n\t\t\tif(s.endLine != caretLine)\n\t\t\t\tbuffer.addMarker('\\0',s.end);\n\t\t}\n\n\t\t// toggle marker on caret line\n\t\tbuffer.addOrRemoveMarker('\\0',caret);\n\t} //}}}\n\n\t//{{{ swapMarkerAndCaret() method\n\t/**\n\t * Moves the caret to the marker with the specified shortcut,\n\t * then sets the marker position to the former caret position.\n\t * @param shortcut The shortcut\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic void swapMarkerAndCaret(char shortcut)\n\t{\n\t\tMarker marker = buffer.getMarker(shortcut);\n\t\tif(marker == null)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint caret = getCaretPosition();\n\n\t\tsetCaretPosition(marker.getPosition());\n\t\tbuffer.addMarker(shortcut,caret);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Folding\n\n\t//{{{ goToParentFold() method\n\t/**\n\t * Moves the caret to the fold containing the one at the caret\n\t * position.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void goToParentFold()\n\t{\n\t\tint line = -1;\n\t\tint level = buffer.getFoldLevel(caretLine);\n\t\tfor(int i = caretLine - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(buffer.getFoldLevel(i) < level)\n\t\t\t{\n\t\t\t\tline = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(line == -1)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint magic = getMagicCaretPosition();\n\n\t\tint newCaret = buffer.getLineStartOffset(line)\n\t\t\t+ xToOffset(line,magic + 1);\n\t\tif(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\t\tsetMagicCaretPosition(magic);\n\t} //}}}\n\n\t//{{{ goToNextFold() method\n\t/**\n\t * Moves the caret to the next fold.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void goToNextFold(boolean select)\n\t{\n\t\tint line = caretLine;\n\n\t\tint nextFold = -1;\n\t\tfor(int i = caretLine + 1; i < buffer.getLineCount(); i++)\n\t\t{\n\t\t\tif(buffer.isFoldStart(i)\n\t\t\t\t&& foldVisibilityManager.isLineVisible(i))\n\t\t\t{\n\t\t\t\tnextFold = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(nextFold == -1)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint magic = getMagicCaretPosition();\n\n\t\tint newCaret = buffer.getLineStartOffset(nextFold)\n\t\t\t+ xToOffset(nextFold,magic + 1);\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\t\tsetMagicCaretPosition(magic);\n\t} //}}}\n\n\t//{{{ goToPrevFold() method\n\t/**\n\t * Moves the caret to the previous fold.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void goToPrevFold(boolean select)\n\t{\n\t\tint line = caretLine;\n\n\t\tint prevFold = -1;\n\t\tfor(int i = caretLine - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(buffer.isFoldStart(i)\n\t\t\t\t&& foldVisibilityManager.isLineVisible(i))\n\t\t\t{\n\t\t\t\tprevFold = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(prevFold == -1)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint magic = getMagicCaretPosition();\n\n\t\tint newCaret = buffer.getLineStartOffset(prevFold)\n\t\t\t+ xToOffset(prevFold,magic + 1);\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\t\tsetMagicCaretPosition(magic);\n\t} //}}}\n\n\t//{{{ collapseFold() method\n\t/**\n\t * Like <code>FoldVisibilityManager.collapseFold()</code>, but\n\t * also moves the caret to the first line of the fold.\n\t * @see FoldVisibilityManager#collapseFold(int)\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void collapseFold()\n\t{\n\t\tint x = offsetToX(caretLine,caret - getLineStartOffset(caretLine));\n\n\t\tfoldVisibilityManager.collapseFold(caretLine);\n\n\t\tif(foldVisibilityManager.isLineVisible(caretLine))\n\t\t\treturn;\n\n\t\tint line = foldVisibilityManager.getPrevVisibleLine(caretLine);\n\n\t\tif(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(buffer.getLineStartOffset(line) + xToOffset(line,x));\n\t} //}}}\n\n\t//{{{ expandFold() method\n\t/**\n\t * Like <code>FoldVisibilityManager.expandFold()</code>, but\n\t * also moves the caret to the first sub-fold.\n\t * @see FoldVisibilityManager#expandFold(int)\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void expandFold(boolean fully)\n\t{\n\t\tint x = offsetToX(caretLine,caret - getLineStartOffset(caretLine));\n\n\t\tint line = foldVisibilityManager.expandFold(caretLine,fully);\n\n\t\tif(line != -1)\n\t\t{\n\t\t\tif(!multi)\n\t\t\t\tselectNone();\n\t\t\tmoveCaretPosition(getLineStartOffset(line) + xToOffset(line,x));\n\t\t}\n\t} //}}}\n\n\t//{{{ selectFold() method\n\t/**\n\t * Selects the fold that contains the caret line number.\n\t * @since jEdit 3.1pre3\n\t */\n\tpublic void selectFold()\n\t{\n\t\tselectFold(caretLine);\n\t} //}}}\n\n\t//{{{ selectFold() method\n\t/**\n\t * Selects the fold that contains the specified line number.\n\t * @param line The line number\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic void selectFold(int line)\n\t{\n\t\tint[] lines = buffer.getFoldAtLine(line);\n\n\t\tint newCaret = getLineEndOffset(lines[1]) - 1;\n\t\tSelection s = new Selection.Range(getLineStartOffset(lines[0]),newCaret);\n\t\tif(multi)\n\t\t\taddToSelection(s);\n\t\telse\n\t\t\tsetSelection(s);\n\t\tmoveCaretPosition(newCaret);\n\t} //}}}\n\n\t//{{{ narrowToFold() method\n\t/**\n\t * Hides all lines except those in the fold containing the caret.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic void narrowToFold()\n\t{\n\t\tint[] lines = buffer.getFoldAtLine(caretLine);\n\t\tif(lines[0] == 0 && lines[1] == buffer.getLineCount() - 1)\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t\tfoldVisibilityManager.narrow(lines[0],lines[1]);\n\t} //}}}\n\n\t//{{{ narrowToSelection() method\n\t/**\n\t * Hides all lines except those in the selection.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic void narrowToSelection()\n\t{\n\t\tif(selection.size() != 1)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tSelection sel = (Selection)selection.elementAt(0);\n\t\tfoldVisibilityManager.narrow(sel.getStartLine(),sel.getEndLine());\n\n\t\tselectNone();\n\t} //}}}\n\n\t//{{{ addExplicitFold() method\n\t/**\n\t * Surrounds the selection with explicit fold markers.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void addExplicitFold()\n\t{\n\t\tif(!buffer.getStringProperty(\"folding\").equals(\"explicit\"))\n\t\t{\n\t\t\tGUIUtilities.error(view,\"folding-not-explicit\",null);\n\t\t\treturn;\n\t\t}\n\n\t\t// BUG: if there are multiple selections in different\n\t\t// contexts, the wrong comment strings will be inserted.\n\t\tString lineComment = buffer.getContextSensitiveProperty(caret,\"lineComment\");\n\t\tString commentStart = buffer.getContextSensitiveProperty(caret,\"commentStart\");\n\t\tString commentEnd = buffer.getContextSensitiveProperty(caret,\"commentEnd\");\n\n\t\tString start, end;\n\t\tif(lineComment != null)\n\t\t{\n\t\t\tstart = lineComment + \"{{{ \\n\";\n\t\t\tend = lineComment + \"}}}\";\n\t\t}\n\t\telse if(commentStart != null && commentEnd != null)\n\t\t{\n\t\t\tstart = commentStart + \"{{{  \" + commentEnd + \"\\n\";\n\t\t\tend = commentStart + \"}}}\" + commentEnd;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstart = \"{{{ \\n\";\n\t\t\tend = \"}}}\";\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tif(selection.size() == 0)\n\t\t\t{\n\t\t\t\tString line = buffer.getLineText(caretLine);\n\t\t\t\tString whitespace = line.substring(0,\n\t\t\t\t\tMiscUtilities.getLeadingWhiteSpace(line));\n\t\t\t\tint loc = caret + start.length() - 1;\n\t\t\t\tstart = start + whitespace;\n\t\t\t\tbuffer.insert(caret,start);\n\t\t\t\t// stupid: caret will automatically be incremented\n\t\t\t\tbuffer.insert(caret,end);\n\t\t\t\tmoveCaretPosition(loc,false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint loc = -1;\n\n\t\t\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\t\t\tString line = buffer.getLineText(s.startLine);\n\t\t\t\t\tString whitespace = line.substring(0,\n\t\t\t\t\t\tMiscUtilities.getLeadingWhiteSpace(line));\n\t\t\t\t\tloc = s.start + start.length() - 1;\n\t\t\t\t\tbuffer.insert(s.start,start + whitespace);\n\t\t\t\t\tbuffer.insert(s.end,\" \" + end);\n\t\t\t\t}\n\n\t\t\t\tsetCaretPosition(loc,false);\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Text editing\n\n\t//{{{ lineComment() method\n\t/**\n\t * Prepends each line of the selection with the line comment string.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic void lineComment()\n\t{\n\t\tString comment = buffer.getContextSensitiveProperty(caret,\"lineComment\");\n\t\tif(!buffer.isEditable() || comment == null || comment.length() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tcomment = comment + ' ';\n\n\t\tbuffer.beginCompoundEdit();\n\n\t\tint[] lines = getSelectedLines();\n\n\t\ttry\n\t\t{\n\t\t\tfor(int i = 0; i < lines.length; i++)\n\t\t\t{\n\t\t\t\tString text = getLineText(lines[i]);\n\t\t\t\tbuffer.insert(getLineStartOffset(lines[i])\n\t\t\t\t\t+ MiscUtilities.getLeadingWhiteSpace(text),\n\t\t\t\t\tcomment);\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\tselectNone();\n\t} //}}}\n\n\t//{{{ rangeComment() method\n\t/**\n\t * Adds comment start and end strings to the beginning and end of the\n\t * selection.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic void rangeComment()\n\t{\n\t\tString commentStart = buffer.getContextSensitiveProperty(caret,\"commentStart\");\n\t\tString commentEnd = buffer.getContextSensitiveProperty(caret,\"commentEnd\");\n\t\tif(!buffer.isEditable() || commentStart == null || commentEnd == null\n\t\t\t|| commentStart.length() == 0 || commentEnd.length() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tcommentStart = commentStart + ' ';\n\t\tcommentEnd = ' ' + commentEnd;\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tSelection[] selection = getSelection();\n\n\t\t\tif(selection.length == 0)\n\t\t\t{\n\t\t\t\tint oldCaret = caret;\n\t\t\t\tbuffer.insert(caret,\n\t\t\t\t\tcommentStart);\n\t\t\t\tbuffer.insert(caret,\n\t\t\t\t\tcommentEnd);\n\t\t\t\tsetCaretPosition(oldCaret + commentStart.length());\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\t\t\t\tif(s instanceof Selection.Range)\n\t\t\t\t{\n\t\t\t\t\tbuffer.insert(s.start,\n\t\t\t\t\t\tcommentStart);\n\t\t\t\t\tbuffer.insert(s.end,\n\t\t\t\t\t\tcommentEnd);\n\t\t\t\t}\n\t\t\t\telse if(s instanceof Selection.Rect)\n\t\t\t\t{\n\t\t\t\t\tfor(int j = s.startLine; j <= s.endLine; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tbuffer.insert(s.getStart(buffer,j),\n\t\t\t\t\t\t\tcommentStart);\n\t\t\t\t\t\tint end = s.getEnd(buffer,j)\n\t\t\t\t\t\t\t+ (j == s.endLine\n\t\t\t\t\t\t\t? 0 : commentStart.length());\n\t\t\t\t\t\tbuffer.insert(end,commentEnd);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tselectNone();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\t} //}}}\n\n\t//{{{ formatParagraph() method\n\t/**\n\t * Formats the paragraph containing the caret.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void formatParagraph()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(maxLineLen <= 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tSelection[] selection = getSelection();\n\t\tif(selection.length != 0)\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\t\t\t\tsetSelectedText(s,TextUtilities.format(\n\t\t\t\t\tgetSelectedText(s),maxLineLen));\n\t\t\t}\n\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint lineNo = getCaretLine();\n\n\t\t\tint start = 0, end = buffer.getLength();\n\nloop:\t\t\tfor(int i = lineNo - 1; i >= 0; i--)\n\t\t\t{\n\t\t\t\tgetLineText(i,lineSegment);\n\n\t\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t\t{\n\t\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t\t{\n\t\t\t\t\tcase ' ':\n\t\t\t\t\tcase '\\t':\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcontinue loop;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tstart = getLineStartOffset(i);\n\t\t\t\tbreak loop;\n\t\t\t}\n\nloop:\t\t\tfor(int i = lineNo + 1; i < getLineCount(); i++)\n\t\t\t{\n\t\t\t\tgetLineText(i,lineSegment);\n\n\t\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t\t{\n\t\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t\t{\n\t\t\t\t\tcase ' ':\n\t\t\t\t\tcase '\\t':\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcontinue loop;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tend = getLineEndOffset(i) - 1;\n\t\t\t\tbreak loop;\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t\tString text = buffer.getText(start,end - start);\n\t\t\t\tbuffer.remove(start,end - start);\n\t\t\t\tbuffer.insert(start,TextUtilities.format(\n\t\t\t\t\ttext,maxLineLen));\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ spacesToTabs() method\n\t/**\n\t * Converts spaces to tabs in the selection.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void spacesToTabs()\n\t{\n\t\tSelection[] selection = getSelection();\n\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tbuffer.beginCompoundEdit();\n\n\t\tif(selection.length == 0)\n\t\t{\n\t\t\tsetText(TextUtilities.spacesToTabs(\n\t\t\t\tgetText(), buffer.getTabSize()));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\t\t\t\tsetSelectedText(s,TextUtilities.spacesToTabs(\n\t\t\t\t\tgetSelectedText(s),buffer.getTabSize()));\n\t\t\t}\n\t\t}\n\n\t\tbuffer.endCompoundEdit();\n\t} //}}}\n\n\t//{{{ tabsToSpaces() method\n\t/**\n\t * Converts tabs to spaces in the selection.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void tabsToSpaces()\n\t{\n\t\tSelection[] selection = getSelection();\n\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tbuffer.beginCompoundEdit();\n\n\t\tif(selection.length == 0)\n\t\t{\n\t\t\tsetText(TextUtilities.tabsToSpaces(\n\t\t\t\tgetText(), buffer.getTabSize()));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\t\t\t\tsetSelectedText(s,TextUtilities.tabsToSpaces(\n\t\t\t\t\tgetSelectedText(s),buffer.getTabSize()));\n\t\t\t}\n\t\t}\n\n\t\tbuffer.endCompoundEdit();\n\t} //}}}\n\n\t//{{{ toUpperCase() method\n\t/**\n\t * Converts the selected text to upper case.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void toUpperCase()\n\t{\n\t\tSelection[] selection = getSelection();\n\n\t\tif(!buffer.isEditable() || selection.length == 0)\n                {\n                \tgetToolkit().beep();\n                \treturn;\n                }\n\n\t\tbuffer.beginCompoundEdit();\n\n\t\tfor(int i = 0; i < selection.length; i++)\n\t\t{\n\t\t\tSelection s = selection[i];\n\t\t\tsetSelectedText(s,getSelectedText(s).toUpperCase());\n\t\t}\n\n\t\tbuffer.endCompoundEdit();\n\t} //}}}\n\n\t//{{{ toLowerCase() method\n\t/**\n\t * Converts the selected text to lower case.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void toLowerCase()\n\t{\n\t\tSelection[] selection = getSelection();\n\n\t\tif(!buffer.isEditable() || selection.length == 0)\n                {\n                \tgetToolkit().beep();\n                \treturn;\n                }\n\n\t\tbuffer.beginCompoundEdit();\n\n\t\tfor(int i = 0; i < selection.length; i++)\n\t\t{\n\t\t\tSelection s = selection[i];\n\t\t\tsetSelectedText(s,getSelectedText(s).toLowerCase());\n\t\t}\n\n\t\tbuffer.endCompoundEdit();\n\t} //}}}\n\n\t//{{{ removeTrailingWhiteSpace() method\n\t/**\n\t * Removes trailing whitespace from all lines in the selection.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void removeTrailingWhiteSpace()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t{\n\t\t\tbuffer.removeTrailingWhiteSpace(getSelectedLines());\n\t\t}\n\t} //}}}\n\n\t//{{{ indentSelectedLines() method\n\t/**\n\t * Indents all selected lines.\n\t * @since jEdit 3.1pre3\n\t */\n\tpublic void indentSelectedLines()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t{\n\t\t\tbuffer.indentLines(getSelectedLines());\n\t\t\tselectNone();\n\t\t}\n\t} //}}}\n\n\t//{{{ shiftIndentLeft() method\n\t/**\n\t * Shifts the indent to the left.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void shiftIndentLeft()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t{\n\t\t\tbuffer.shiftIndentLeft(getSelectedLines());\n\t\t}\n\t} //}}}\n\n\t//{{{ shiftIndentRight() method\n\t/**\n\t * Shifts the indent to the right.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void shiftIndentRight()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t\tbuffer.shiftIndentRight(getSelectedLines());\n\t} //}}}\n\n\t//{{{ joinLines() method\n\t/**\n\t * Joins the current and the next line.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void joinLines()\n\t{\n\t\tint start = getLineStartOffset(caretLine);\n\t\tint end = getLineEndOffset(caretLine);\n\t\tif(end > buffer.getLength())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\t\tbuffer.remove(end - 1,MiscUtilities.getLeadingWhiteSpace(\n\t\t\tbuffer.getLineText(caretLine + 1)) + 1);\n\n\t\tsetCaretPosition(end - 1);\n\t} //}}}\n\n\t//{{{ showWordCountDialog() method\n\t/**\n\t * Displays the 'word count' dialog box.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void showWordCountDialog()\n\t{\n\t\tString selection = getSelectedText();\n\t\tif(selection != null)\n\t\t{\n\t\t\tdoWordCount(view,selection);\n\t\t\treturn;\n\t\t}\n\n\t\tdoWordCount(view,buffer.getText(0,buffer.getLength()));\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ AWT stuff\n\n\t//{{{ addNotify() method\n\t/**\n\t * Called by the AWT when this component is added to a parent.\n\t * Adds document listener.\n\t */\n\tpublic void addNotify()\n\t{\n\t\tsuper.addNotify();\n\n\t\tToolTipManager.sharedInstance().registerComponent(painter);\n\t\tToolTipManager.sharedInstance().registerComponent(gutter);\n\n\t\tif(!bufferHandlerInstalled)\n\t\t{\n\t\t\tbufferHandlerInstalled = true;\n\t\t\tbuffer.addBufferChangeListener(bufferHandler);\n\t\t}\n\n\t\trecalculateVisibleLines();\n\t\trecalculateLastPhysicalLine();\n\t} //}}}\n\n\t//{{{ removeNotify() method\n\t/**\n\t * Called by the AWT when this component is removed from it's parent.\n\t * This clears the pointer to the currently focused component.\n\t * Also removes document listener.\n\t */\n\tpublic void removeNotify()\n\t{\n\t\tsuper.removeNotify();\n\n\t\tToolTipManager.sharedInstance().unregisterComponent(painter);\n\t\tToolTipManager.sharedInstance().unregisterComponent(gutter);\n\n\t\tif(focusedComponent == this)\n\t\t\tfocusedComponent = null;\n\n\t\tif(bufferHandlerInstalled)\n\t\t{\n\t\t\tbuffer.removeBufferChangeListener(bufferHandler);\n\t\t\tbufferHandlerInstalled = false;\n\t\t}\n\t} //}}}\n\n\t//{{{ hasFocus() method\n\t/**\n\t * Bug workarounds.\n\t * @since jEdit 2.7pre1\n\t */\n\tpublic boolean hasFocus()\n\t{\n\t\tComponent c = this;\n\t\twhile(!(c instanceof Window))\n\t\t{\n\t\t\tif(c == null)\n\t\t\t\treturn false;\n\t\t\tc = c.getParent();\n\t\t}\n\n\t\tComponent focusOwner = ((Window)c).getFocusOwner();\n\t\tboolean hasFocus = (focusOwner == this);\n\t\tif(hasFocus && focusedComponent != this)\n\t\t\tfocusedComponent = this;\n\t\treturn hasFocus;\n\t} //}}}\n\n\t//{{{ grabFocus() method\n\t/**\n\t * Bug workarounds.\n\t * @since jEdit 2.7pre1\n\t */\n\tpublic void grabFocus()\n\t{\n\t\tsuper.grabFocus();\n\t\t// ensure that focusedComponent is set correctly\n\t\thasFocus();\n\t} //}}}\n\n\t//{{{ getFocusTraversalKeysEnabled() method\n\t/**\n\t * Java 1.4 compatibility fix to make Tab key work.\n\t * @since jEdit 3.2pre4\n\t */\n\tpublic boolean getFocusTraversalKeysEnabled()\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ processKeyEvent() method\n\tpublic void processKeyEvent(KeyEvent evt)\n\t{\n\t\tevt = KeyEventWorkaround.processKeyEvent(evt);\n\t\tif(evt == null)\n\t\t\treturn;\n\n\t\t// Ignore\n\t\tif(view.isClosed())\n\t\t\treturn;\n\n\t\tInputHandler inputHandler = view.getInputHandler();\n\t\tKeyListener keyEventInterceptor = view.getKeyEventInterceptor();\n\t\tswitch(evt.getID())\n\t\t{\n\t\tcase KeyEvent.KEY_TYPED:\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyTyped(evt);\n\t\t\telse\n\t\t\t\tinputHandler.keyTyped(evt);\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_PRESSED:\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyPressed(evt);\n\t\t\telse\n\t\t\t\tinputHandler.keyPressed(evt);\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_RELEASED:\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyReleased(evt);\n\t\t\telse\n\t\t\t\tinputHandler.keyReleased(evt);\n\t\t\tbreak;\n\t\t}\n\n\t\tif(!evt.isConsumed())\n\t\t\tsuper.processKeyEvent(evt);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ propertiesChanged() method\n\t/**\n\t * Called by the <code>Buffer</code> class when necessary. Plugins\n\t * should not call this method.\n\t */\n\tpublic void propertiesChanged()\n\t{\n\t\tif(buffer == null)\n\t\t\treturn;\n\n\t\tint _tabSize = buffer.getTabSize();\n\t\tchar[] foo = new char[_tabSize];\n\t\tfor(int i = 0; i < foo.length; i++)\n\t\t{\n\t\t\tfoo[i] = ' ';\n\t\t}\n\n\t\ttabSize = (float)painter.getFont().getStringBounds(foo,0,_tabSize,\n\t\t\tpainter.getFontRenderContext()).getWidth();\n\n\t\tcharWidth = (int)Math.round(painter.getFont().getStringBounds(foo,0,1,\n\t\t\tpainter.getFontRenderContext()).getWidth());\n\n\t\tString wrap = buffer.getStringProperty(\"wrap\");\n\t\tsoftWrap = wrap.equals(\"soft\");\n\t\thardWrap = wrap.equals(\"hard\");\n\n\t\tmaxLineLen = buffer.getIntegerProperty(\"maxLineLen\",0);\n\n\t\tif(maxLineLen <= 0)\n\t\t{\n\t\t\tif(softWrap)\n\t\t\t{\n\t\t\t\twrapToWidth = true;\n\t\t\t\twrapMargin = painter.getWidth() - charWidth * 3;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twrapToWidth = false;\n\t\t\t\twrapMargin = 0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// stupidity\n\t\t\tfoo = new char[maxLineLen];\n\t\t\tfor(int i = 0; i < foo.length; i++)\n\t\t\t{\n\t\t\t\tfoo[i] = ' ';\n\t\t\t}\n\t\t\twrapToWidth = false;\n\t\t\twrapMargin = (int)painter.getFont().getStringBounds(\n\t\t\t\tfoo,0,maxLineLen,painter.getFontRenderContext())\n\t\t\t\t.getWidth();\n\t\t}\n\n\t\tmaxHorizontalScrollWidth = 0;\n\t\tupdateScrollBars();\n\n\t\tchunkCache.invalidateAll();\n\t\tgutter.repaint();\n\t\tpainter.repaint();\n\t} //}}}\n\n\t//{{{ Deprecated methods\n\n\t//{{{ setOrigin() method\n\t/**\n\t * @deprecated Use setFirstLine() and setHorizontalOffset() instead\n\t */\n\tpublic boolean setOrigin(int firstLine, int horizontalOffset)\n\t{\n\t\tsetFirstLine(firstLine);\n\t\tsetHorizontalOffset(horizontalOffset);\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ lineToY() method\n\t/**\n\t * @deprecated Use <code>offsetToXY</code> instead.\n\t *\n\t * Converts a line index to a y co-ordinate. This must be a virtual,\n\t * not a physical, line number.\n\t * @param line The line\n\t */\n\tpublic int lineToY(int line)\n\t{\n\t\tFontMetrics fm = painter.getFontMetrics();\n\t\treturn (line - firstLine) * fm.getHeight()\n\t\t\t- (fm.getLeading() + fm.getDescent());\n\t} //}}}\n\n\t//{{{ yToLine() method\n\t/**\n\t * @deprecated Use <code>xyToOffset</code> instead.\n\t *\n\t * Converts a y co-ordinate to a virtual line index.\n\t * @param y The y co-ordinate\n\t */\n\tpublic int yToLine(int y)\n\t{\n\t\tFontMetrics fm = painter.getFontMetrics();\n\t\tint height = fm.getHeight();\n\t\treturn Math.max(0,Math.min(getVirtualLineCount() - 1,\n\t\t\ty / height + firstLine));\n\t} //}}}\n\n\t//{{{ offsetToX() method\n\t/**\n\t * @deprecated Call <code>offsetToXY()</code> instead.\n\t *\n\t * Converts an offset in a line into an x co-ordinate.\n\t * @param line The line\n\t * @param offset The offset, from the start of the line\n\t */\n\tpublic int offsetToX(int line, int offset)\n\t{\n\t\tChunkCache.Chunk chunks = chunkCache.getLineInfoBackwardsCompatibility(line).chunks;\n\t\treturn (int)(horizontalOffset + chunkCache.offsetToX(chunks,offset));\n\t} //}}}\n\n\t//{{{ xToOffset() method\n\t/**\n\t * @deprecated Call <code>xyToOffset()</code> instead.\n\t *\n\t * Converts an x co-ordinate to an offset within a line.\n\t * @param line The physical line index\n\t * @param x The x co-ordinate\n\t */\n\tpublic int xToOffset(int line, int x)\n\t{\n\t\tx -= horizontalOffset;\n\t\tChunkCache.Chunk chunks = chunkCache.getLineInfoBackwardsCompatibility(line).chunks;\n\t\tint offset = chunkCache.xToOffset(chunks,x,true);\n\t\tif(offset == -1)\n\t\t\toffset = getLineLength(line);\n\t\treturn offset;\n\t} //}}}\n\n\t//{{{ xToOffset() method\n\t/**\n\t * @deprecated Call <code>xyToOffset()</code> instead.\n\t *\n\t * Converts an x co-ordinate to an offset within a line.\n\t * @param line The physical line index\n\t * @param x The x co-ordinate\n\t * @param round Round up to next letter if past the middle of a letter?\n\t * @since jEdit 3.2pre6\n\t */\n\tpublic int xToOffset(int line, int x, boolean round)\n\t{\n\t\tx -= horizontalOffset;\n\t\tChunkCache.Chunk chunks = chunkCache.getLineInfoBackwardsCompatibility(line).chunks;\n\t\tint offset = chunkCache.xToOffset(chunks,x,round);\n\t\tif(offset == -1)\n\t\t\toffset = getLineLength(line);\n\t\treturn offset;\n\t} //}}}\n\n\t//{{{ getSelectionStart() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getStart()</code> method\n\t */\n\tpublic final int getSelectionStart()\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getStart();\n\t} //}}}\n\n\t//{{{ getSelectionStart() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getStart(int)</code> method\n\t */\n\tpublic int getSelectionStart(int line)\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getStart(\n\t\t\tbuffer,line);\n\t} //}}}\n\n\t//{{{ getSelectionStartLine() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getStartLine()</code> method\n\t */\n\tpublic final int getSelectionStartLine()\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getStartLine();\n\t} //}}}\n\n\t//{{{ setSelectionStart() method\n\t/**\n\t * @deprecated Do not use.\n\t */\n\tpublic final void setSelectionStart(int selectionStart)\n\t{\n\t\tselect(selectionStart,getSelectionEnd(),true);\n\t} //}}}\n\n\t//{{{ getSelectionEnd() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getEnd()</code> method\n\t */\n\tpublic final int getSelectionEnd()\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getEnd();\n\t} //}}}\n\n\t//{{{ getSelectionEnd() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getEnd(int)</code> method\n\t */\n\tpublic int getSelectionEnd(int line)\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getEnd(\n\t\t\tbuffer,line);\n\t} //}}}\n\n\t//{{{ getSelectionEndLine() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getEndLine()</code> method\n\t */\n\tpublic final int getSelectionEndLine()\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getEndLine();\n\t} //}}}\n\n\t//{{{ setSelectionEnd() method\n\t/**\n\t * @deprecated Do not use.\n\t */\n\tpublic final void setSelectionEnd(int selectionEnd)\n\t{\n\t\tselect(getSelectionStart(),selectionEnd,true);\n\t} //}}}\n\n\t//{{{ getMarkPosition() method\n\t/**\n\t * @deprecated Do not use.\n\t */\n\tpublic final int getMarkPosition()\n\t{\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tif(s == null)\n\t\t\treturn caret;\n\n\t\tif(s.start == caret)\n\t\t\treturn s.end;\n\t\telse if(s.end == caret)\n\t\t\treturn s.start;\n\t\telse\n\t\t\treturn caret;\n\t} //}}}\n\n\t//{{{ getMarkLine() method\n\t/**\n\t * @deprecated Do not use.\n\t */\n\tpublic final int getMarkLine()\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caretLine;\n\n\t\tSelection s = (Selection)selection.elementAt(0);\n\t\tif(s.start == caret)\n\t\t\treturn s.endLine;\n\t\telse if(s.end == caret)\n\t\t\treturn s.startLine;\n\t\telse\n\t\t\treturn caretLine;\n\t} //}}}\n\n\t//{{{ select() method\n\t/**\n\t * @deprecated Instead, call either <code>addToSelection()</code>,\n\t * or <code>setSelection()</code> with a new Selection instance.\n\t */\n\tpublic void select(int start, int end)\n\t{\n\t\tselect(start,end,true);\n\t} //}}}\n\n\t//{{{ select() method\n\t/**\n\t * @deprecated Instead, call either <code>addToSelection()</code>,\n\t * or <code>setSelection()</code> with a new Selection instance.\n\t */\n\tpublic void select(int start, int end, boolean doElectricScroll)\n\t{\n\t\tselectNone();\n\n\t\tint newStart, newEnd;\n\t\tif(start < end)\n\t\t{\n\t\t\tnewStart = start;\n\t\t\tnewEnd = end;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewStart = end;\n\t\t\tnewEnd = start;\n\t\t}\n\n\t\tsetSelection(new Selection.Range(newStart,newEnd));\n\t\tmoveCaretPosition(end,doElectricScroll);\n\t} //}}}\n\n\t//{{{ isSelectionRectangular() method\n\t/**\n\t * @deprecated Instead, check if the appropriate Selection\n\t * is an instance of the Selection.Rect class.\n\t */\n\tpublic boolean isSelectionRectangular()\n\t{\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tif(s == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn (s instanceof Selection.Rect);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Package-private members\n\n\t//{{{ Instance variables\n\tSegment lineSegment;\n\tMouseHandler mouseHandler;\n\tChunkCache chunkCache;\n\n\tint maxHorizontalScrollWidth;\n\n\tboolean softWrap;\n\tboolean hardWrap;\n\tfloat tabSize;\n\tint wrapMargin;\n\tboolean wrapToWidth;\n\tint charWidth;\n\n\tboolean scrollBarsInitialized;\n\n\t// this is package-private so that the painter can use it without\n\t// having to call getSelection() (which involves an array copy)\n\tVector selection;\n\n\t// used to store offsetToXY() results\n\tPoint returnValue;\n\t//}}}\n\n\t//{{{ isCaretVisible() method\n\t/**\n\t * Returns true if the caret is visible, false otherwise.\n\t */\n\tfinal boolean isCaretVisible()\n\t{\n\t\treturn blink && hasFocus();\n\t} //}}}\n\n\t//{{{ isHighlightVisible() method\n\t/**\n\t * Returns true if the bracket highlight is visible, false otherwise.\n\t */\n\tfinal boolean isBracketHighlightVisible()\n\t{\n\t\treturn bracketLine != -1\n\t\t\t&& hasFocus()\n\t\t\t&& foldVisibilityManager.isLineVisible(bracketLine)\n\t\t\t&& foldVisibilityManager.isLineVisible(caretLine);\n\t} //}}}\n\n\t//{{{ updateMaxHorizontalScrollWidth() method\n\tvoid updateMaxHorizontalScrollWidth()\n\t{\n\t\tint max = chunkCache.getMaxHorizontalScrollWidth();\n\n\t\tif(max != maxHorizontalScrollWidth)\n\t\t{\n\t\t\tmaxHorizontalScrollWidth = max;\n\t\t\thorizontal.setValues(Math.max(0,\n\t\t\t\tMath.min(maxHorizontalScrollWidth + charWidth\n\t\t\t\t- painter.getWidth(),\n\t\t\t\t-horizontalOffset)),\n\t\t\t\tpainter.getWidth(),\n\t\t\t\t0,maxHorizontalScrollWidth\n\t\t\t\t+ charWidth);\n\t\t}\n\t} //}}}\n\n\t//{{{ recalculateVisibleLines() method\n\tvoid recalculateVisibleLines()\n\t{\n\t\tif(painter == null)\n\t\t\treturn;\n\t\tint height = painter.getHeight();\n\t\tint lineHeight = painter.getFontMetrics().getHeight();\n\t\tvisibleLines = height / lineHeight;\n\n\t\tchunkCache.recalculateVisibleLines();\n\t\tpropertiesChanged();\n\t} //}}}\n\n\t//{{{ foldStructureChanged() method\n\tvoid foldStructureChanged()\n\t{\n\t\tchunkCache.invalidateAll();\n\n\t\t// physFirstLine should not be invisible\n\t\twhile(!foldVisibilityManager.isLineVisible(physFirstLine)\n\t\t\t&& physFirstLine != 0)\n\t\t\tphysFirstLine--;\n\n\t\tsetFirstLine(physicalToVirtual(physFirstLine));\n\n\t\t// update scroll bars because the number of virtual lines might\n\t\t// have changed even if first line didn't change\n\t\tupdateScrollBars();\n\n\t\trecalculateLastPhysicalLine();\n\n\t\t// repaint gutter and painter\n\t\tgutter.repaint();\n\t\tpainter.repaint();\n\t} //}}}\n\n\t//{{{ getSubregionOfOffset() method\n\t/**\n\t * Returns the subregion containing the specified offset. A subregion\n\t * is a subset of a physical line. Each screen line corresponds to one\n\t * subregion. Unlike the <code>getScreenLineOfOffset()</code> method,\n\t * this method works with non-visible lines too.\n\t * @since jEdit 4.0pre6\n\t */\n\t// not public yet\n\t/* public */ int getSubregionOfOffset(int offset, ChunkCache.LineInfo[] lineInfos)\n\t{\n\t\t//ChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(line);\n\t\tfor(int i = 0; i < lineInfos.length; i++)\n\t\t{\n\t\t\tChunkCache.LineInfo info = lineInfos[i];\n\t\t\tif(offset >= info.offset && offset < info.offset + info.length)\n\t\t\t\treturn i;\n\t\t}\n\n\t\treturn -1;\n\t} //}}}\n\n\t//{{{ xToSubregionOffset() method\n\t/**\n\t * Converts an x co-ordinate within a subregion into an offset from the\n\t * start of that subregion.\n\t * @param info The line info object\n\t * @param x The x co-ordinate\n\t * @param round Round up to next character if x is past the middle of a\n\t * character?\n\t * @since jEdit 4.0pre6\n\t */\n\t// not public yet\n\t/* public */ int xToSubregionOffset(ChunkCache.LineInfo info, float x,\n\t\tboolean round)\n\t{\n\t\tint offset = chunkCache.xToOffset(info.chunks,\n\t\t\tx - horizontalOffset,round);\n\t\tif(offset == -1 || offset == info.offset + info.length)\n\t\t\toffset = info.offset + info.length - 1;\n\n\t\treturn offset;\n\t} //}}}\n\n\t//{{{ subregionOffsetToX() method\n\t/**\n\t * Converts an offset within a subregion into an x co-ordinate.\n\t * @param info The line info object\n\t * @param offset The offset\n\t * @since jEdit 4.0pre6\n\t */\n\t// not public yet\n\t/* public */ int subregionOffsetToX(ChunkCache.LineInfo info, int offset)\n\t{\n\t\treturn (int)(horizontalOffset + chunkCache.offsetToX(\n\t\t\tinfo.chunks,offset));\n\t} //}}}\n\n\t//{{{ getSubregionStartOffset() method\n\t/**\n\t * Returns the start offset of the specified subregion of the specified\n\t * physical line.\n\t * @param line The physical line number\n\t * @param subregion The subregion\n\t * @since jEdit 4.0pre6\n\t */\n\t// not public yet\n\t/* public int getSubregionStartOffset(int line, int subregion)\n\t{\n\t\tChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(line);\n\t\treturn buffer.getLineStartOffset(lineInfos[subregion].physicalLine)\n\t\t\t+ lineInfos[subregion].offset;\n\t} */ //}}}\n\n\t//{{{ getSubregionEndOffset() method\n\t/**\n\t * Returns the end offset of the specified subregion of the specified\n\t * physical line.\n\t * @param line The physical line number\n\t * @param subregion The subregion\n\t * @since jEdit 4.0pre6\n\t */\n\t// not public yet\n\t/* public int getSubregionEndOffset(int line, int subregion)\n\t{\n\t\tChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(line);\n\t\tChunkCache.LineInfo info = lineInfos[subregion];\n\t\treturn buffer.getLineStartOffset(info.physicalLine)\n\t\t\t+ info.offset + info.length;\n\t} */ //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\n\t//{{{ Static variables\n\tprivate static String CENTER = \"center\";\n\tprivate static String RIGHT = \"right\";\n\tprivate static String LEFT = \"left\";\n\tprivate static String BOTTOM = \"bottom\";\n\n\tprivate static Timer caretTimer;\n\tprivate static JEditTextArea focusedComponent;\n\t//}}}\n\n\t//{{{ Instance variables\n\tprivate View view;\n\tprivate Gutter gutter;\n\tprivate TextAreaPainter painter;\n\n\tprivate JPopupMenu popup;\n\n\tprivate EventListenerList listenerList;\n\tprivate MutableCaretEvent caretEvent;\n\n\tprivate boolean caretBlinks;\n\tprivate boolean blink;\n\n\tprivate int firstLine;\n\tprivate int physFirstLine;\n\tprivate int physLastLine;\n\tprivate int screenLastLine;\n\n\tprivate int visibleLines;\n\tprivate int electricScroll;\n\n\tprivate int horizontalOffset;\n\n\tprivate boolean quickCopy;\n\n\tprivate JScrollBar vertical;\n\tprivate JScrollBar horizontal;\n\n\tprivate boolean bufferChanging;\n\tprivate Buffer buffer;\n\tprivate FoldVisibilityManager foldVisibilityManager;\n\tprivate BufferChangeHandler bufferHandler;\n\tprivate boolean bufferHandlerInstalled;\n\n\tprivate int caret;\n\tprivate int caretLine;\n\tprivate int caretScreenLine;\n\n\tprivate int bracketPosition;\n\tprivate int bracketLine;\n\n\tprivate int magicCaret;\n\n\tprivate static boolean multi;\n\tprivate boolean overwrite;\n\n\tprivate int maxLineLen;\n\n\t// see moveCaretPosition() and BufferChangeHandler.content{Inserted,Removed}()\n\tprivate boolean queuedRecalcLastPhys;\n\tprivate boolean queuedScrollTo;\n\tprivate boolean queuedScrollToElectric;\n\tprivate boolean queuedFireCaretEvent;\n\tprivate ArrayList runnables;\n\t//}}}\n\n\t//{{{ _addToSelection() method\n\tprivate void _addToSelection(Selection addMe)\n\t{\n\t\t// this is stupid but it makes things much simpler for\n\t\t// the EditPane class\n\t\tif(addMe.start < 0)\n\t\t\taddMe.start = 0;\n\t\telse if(addMe.end > buffer.getLength())\n\t\t\taddMe.end = buffer.getLength();\n\n\t\tif(addMe.start > addMe.end)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(addMe.start\n\t\t\t\t+ \" > \" + addMe.end);\n\t\t}\n\t\telse if(addMe.start == addMe.end)\n\t\t\treturn;\n\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\t// try and merge existing selections one by\n\t\t\t// one with the new selection\n\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\tif(_selectionsOverlap(s,addMe))\n\t\t\t{\n\t\t\t\taddMe.start = Math.min(s.start,addMe.start);\n\t\t\t\taddMe.end = Math.max(s.end,addMe.end);\n\n\t\t\t\tselection.removeElement(s);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\taddMe.startLine = getLineOfOffset(addMe.start);\n\t\taddMe.endLine = getLineOfOffset(addMe.end);\n\n\t\tboolean added = false;\n\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\tif(addMe.start < s.start)\n\t\t\t{\n\t\t\t\tselection.insertElementAt(addMe,i);\n\t\t\t\tadded = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(!added)\n\t\t\tselection.addElement(addMe);\n\n\t\tinvalidateLineRange(addMe.startLine,addMe.endLine);\n\t} //}}}\n\n\t//{{{ _selectionsOverlap() method\n\tprivate boolean _selectionsOverlap(Selection s1, Selection s2)\n\t{\n\t\tif((s1.start >= s2.start && s1.start <= s2.end)\n\t\t\t|| (s1.end >= s2.start && s1.end <= s2.end))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t} //}}}\n\n\t//{{{ getSelectedText() method\n\tprivate void getSelectedText(Selection s, StringBuffer buf)\n\t{\n\t\tif(s instanceof Selection.Rect)\n\t\t{\n\t\t\t// Return each row of the selection on a new line\n\t\t\tint start = s.start - getLineStartOffset(s.startLine);\n\t\t\tint end = s.end - getLineStartOffset(s.endLine);\n\n\t\t\t// Certain rectangles satisfy this condition...\n\t\t\tif(end < start)\n\t\t\t{\n\t\t\t\tint tmp = end;\n\t\t\t\tend = start;\n\t\t\t\tstart = tmp;\n\t\t\t}\n\n\t\t\tfor(int i = s.startLine; i <= s.endLine; i++)\n\t\t\t{\n\t\t\t\tint lineStart = getLineStartOffset(i);\n\t\t\t\tint lineEnd = getLineEndOffset(i) - 1;\n\t\t\t\tint lineLen = lineEnd - lineStart;\n\n\t\t\t\tlineStart = Math.min(lineStart + start,lineEnd);\n\t\t\t\tlineLen = Math.min(end - start,lineEnd - lineStart);\n\n\t\t\t\tgetText(lineStart,lineLen,lineSegment);\n\t\t\t\tbuf.append(lineSegment.array,\n\t\t\t\t\tlineSegment.offset,\n\t\t\t\t\tlineSegment.count);\n\n\t\t\t\tif(i != s.endLine)\n\t\t\t\t\tbuf.append('\\n');\n\t\t\t}\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgetText(s.start,s.end - s.start,lineSegment);\n\t\t\tbuf.append(lineSegment.array,\n\t\t\t\tlineSegment.offset,\n\t\t\t\tlineSegment.count);\n\t\t}\n\t} //}}}\n\n\t//{{{ finishCaretUpdate() method\n\t/**\n\t * the collapsing of scrolling/event firing inside compound edits\n\t * greatly speeds up replace-all.\n\t */\n\tprivate void finishCaretUpdate(boolean doElectricScroll,\n\t\tboolean fireCaretEvent)\n\t{\n\t\tthis.queuedScrollToElectric |= doElectricScroll;\n\t\tthis.queuedFireCaretEvent |= fireCaretEvent;\n\n\t\tRunnable r = new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tscrollToCaret(queuedScrollToElectric);\n\t\t\t\tupdateBracketHighlight();\n\t\t\t\tif(queuedFireCaretEvent)\n\t\t\t\t\tfireCaretEvent();\n\t\t\t\tqueuedScrollTo = queuedScrollToElectric\n\t\t\t\t\t= queuedFireCaretEvent = false;\n\t\t\t}\n\t\t};\n\n\t\tif(buffer.isTransactionInProgress())\n\t\t{\n\t\t\tif(!queuedScrollTo)\n\t\t\t{\n\t\t\t\tqueuedScrollTo = true;\n\t\t\t\trunnables.add(r);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tr.run();\n\t} //}}}\n\n\t//{{{ fireCaretEvent() method\n\tprivate void fireCaretEvent()\n\t{\n\t\tObject[] listeners = listenerList.getListenerList();\n\t\tfor(int i = listeners.length - 2; i >= 0; i--)\n\t\t{\n\t\t\tif(listeners[i] == CaretListener.class)\n\t\t\t{\n\t\t\t\t((CaretListener)listeners[i+1]).caretUpdate(caretEvent);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ fireScrollEvent() method\n\tprivate void fireScrollEvent(boolean vertical)\n\t{\n\t\tObject[] listeners = listenerList.getListenerList();\n\t\tfor(int i = listeners.length - 2; i >= 0; i--)\n\t\t{\n\t\t\tif(listeners[i] == ScrollListener.class)\n\t\t\t{\n\t\t\t\tif(vertical)\n\t\t\t\t\t((ScrollListener)listeners[i+1]).scrolledVertically(this);\n\t\t\t\telse\n\t\t\t\t\t((ScrollListener)listeners[i+1]).scrolledHorizontally(this);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ insertTab() method\n\tprivate void insertTab()\n\t{\n\t\tint tabSize = buffer.getTabSize();\n\t\tif(buffer.getBooleanProperty(\"noTabs\"))\n\t\t{\n\t\t\tint lineStart = getLineStartOffset(caretLine);\n\n\t\t\tString line = getText(lineStart,caret - lineStart);\n\n\t\t\tint pos = 0;\n\n\t\t\tfor(int i = 0; i < line.length(); i++)\n\t\t\t{\n\t\t\t\tswitch(line.charAt(pos))\n\t\t\t\t{\n\t\t\t\tcase '\\t':\n\t\t\t\t\tpos = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif(++pos >= tabSize)\n\t\t\t\t\t\tpos = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsetSelectedText(MiscUtilities.createWhiteSpace(\n\t\t\t\ttabSize - pos,0));\n\t\t}\n\t\telse\n\t\t\tsetSelectedText(\"\\t\");\n\t} //}}}\n\n\t//{{{ doWordWrap() method\n\tprivate boolean doWordWrap(boolean spaceInserted)\n\t{\n\t\tif(!hardWrap || maxLineLen <= 0)\n\t\t\treturn false;\n\n\t\tbuffer.getLineText(caretLine,lineSegment);\n\n\t\tint start = getLineStartOffset(caretLine);\n\t\tint end = getLineEndOffset(caretLine);\n\t\tint len = end - start - 1;\n\n\t\tint caretPos = caret - start;\n\n\t\t// only wrap if we're at the end of a line, or the rest of the\n\t\t// line text is whitespace\n\t\tfor(int i = caretPos; i < len; i++)\n\t\t{\n\t\t\tchar ch = lineSegment.array[lineSegment.offset + i];\n\t\t\tif(ch != ' ' && ch != '\\t')\n\t\t\t\treturn false;\n\t\t}\n\n\t\tboolean returnValue = false;\n\n\t\tint tabSize = buffer.getTabSize();\n\n\t\tString wordBreakChars = buffer.getStringProperty(\"wordBreakChars\");\n\n\t\tint logicalLength = 0; // length with tabs expanded\n\t\tint lastWordOffset = -1;\n\t\tboolean lastWasSpace = true;\n\t\tboolean initialWhiteSpace = true;\n\t\tint initialWhiteSpaceLength = 0;\n\t\tfor(int i = 0; i < caretPos; i++)\n\t\t{\n\t\t\tchar ch = lineSegment.array[lineSegment.offset + i];\n\t\t\tif(ch == '\\t')\n\t\t\t{\n\t\t\t\tif(initialWhiteSpace)\n\t\t\t\t\tinitialWhiteSpaceLength = i + 1;\n\t\t\t\tlogicalLength += tabSize - (logicalLength % tabSize);\n\t\t\t\tif(!lastWasSpace && logicalLength <= maxLineLen)\n\t\t\t\t{\n\t\t\t\t\tlastWordOffset = i;\n\t\t\t\t\tlastWasSpace = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(ch == ' ')\n\t\t\t{\n\t\t\t\tif(initialWhiteSpace)\n\t\t\t\t\tinitialWhiteSpaceLength = i + 1;\n\t\t\t\tlogicalLength++;\n\t\t\t\tif(!lastWasSpace && logicalLength <= maxLineLen)\n\t\t\t\t{\n\t\t\t\t\tlastWordOffset = i;\n\t\t\t\t\tlastWasSpace = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(wordBreakChars != null && wordBreakChars.indexOf(ch) != -1)\n\t\t\t{\n\t\t\t\tinitialWhiteSpace = false;\n\t\t\t\tlogicalLength++;\n\t\t\t\tif(!lastWasSpace && logicalLength <= maxLineLen)\n\t\t\t\t{\n\t\t\t\t\tlastWordOffset = i;\n\t\t\t\t\tlastWasSpace = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinitialWhiteSpace = false;\n\t\t\t\tlogicalLength++;\n\t\t\t\tlastWasSpace = false;\n\t\t\t}\n\n\t\t\tint insertNewLineAt;\n\t\t\tif(spaceInserted && logicalLength == maxLineLen\n\t\t\t\t&& i == caretPos - 1)\n\t\t\t{\n\t\t\t\tinsertNewLineAt = caretPos;\n\t\t\t\treturnValue = true;\n\t\t\t}\n\t\t\telse if(logicalLength >= maxLineLen && lastWordOffset != -1)\n\t\t\t\tinsertNewLineAt = lastWordOffset;\n\t\t\telse\n\t\t\t\tcontinue;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\t\t\t\tbuffer.insert(start + insertNewLineAt,\"\\n\");\n\t\t\t\t// caretLine would have been incremented\n\t\t\t\t// since insertNewLineAt <= caretPos\n\t\t\t\tbuffer.indentLine(caretLine,true,true);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\n\t\t\t/* only ever return true if space was pressed\n\t\t\t * with logicalLength == maxLineLen */\n\t\t\treturn returnValue;\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ doWordCount() method\n\tprivate void doWordCount(View view, String text)\n\t{\n\t\tchar[] chars = text.toCharArray();\n\t\tint characters = chars.length;\n\t\tint words;\n\t\tif(characters == 0)\n\t\t\twords = 0;\n\t\telse\n\t\t\twords = 1;\n\t\tint lines = 1;\n\t\tboolean word = false;\n\t\tfor(int i = 0; i < chars.length; i++)\n\t\t{\n\t\t\tswitch(chars[i])\n\t\t\t{\n\t\t\tcase '\\r': case '\\n':\n\t\t\t\tlines++;\n\t\t\tcase ' ': case '\\t':\n\t\t\t\tif(word)\n\t\t\t\t{\n\t\t\t\t\twords++;\n\t\t\t\t\tword = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tword = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tObject[] args = { new Integer(characters), new Integer(words),\n\t\t\tnew Integer(lines) };\n\t\tGUIUtilities.message(view,\"wordcount\",args);\n\t} //}}}\n\n\t//{{{ updateBracketHighlight() method\n\tprivate void updateBracketHighlight()\n\t{\n\t\tif(!painter.isBracketHighlightEnabled())\n\t\t\treturn;\n\n\t\tif(bracketLine != -1)\n\t\t\tinvalidateLineRange(bracketLine,caretLine);\n\n\t\tint offset = caret - getLineStartOffset(caretLine);\n\n\t\tif(offset != 0)\n\t\t{\n\t\t\tint bracketOffset = TextUtilities.findMatchingBracket(\n\t\t\t\tbuffer,caretLine,offset - 1,0,buffer.getLineCount() - 1);\n\t\t\tif(bracketOffset != -1)\n\t\t\t{\n\t\t\t\tbracketLine = getLineOfOffset(bracketOffset);\n\t\t\t\tbracketPosition = bracketOffset\n\t\t\t\t\t- getLineStartOffset(bracketLine);\n\t\t\t\tinvalidateLineRange(bracketLine,caretLine);\n\n\t\t\t\tif(bracketLine < physFirstLine\n\t\t\t\t\t|| bracketLine > physLastLine)\n\t\t\t\t{\n\t\t\t\t\tshowBracketStatusMessage(bracketLine < caretLine);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tbracketLine = bracketPosition = -1;\n\t} //}}}\n\n\t//{{{ showBracketStatusMessage() method\n\tprivate void showBracketStatusMessage(boolean backward)\n\t{\n\t\tString text = buffer.getLineText(bracketLine).trim();\n\t\tif(backward && bracketLine != 0 && text.length() == 1)\n\t\t{\n\t\t\tswitch(text.charAt(0))\n\t\t\t{\n\t\t\tcase '{': case '}':\n\t\t\tcase '[': case ']':\n\t\t\tcase '(': case ')':\n\t\t\t\ttext = buffer.getLineText(bracketLine - 1).trim()\n\t\t\t\t\t+ \" \" + text;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// get rid of embedded tabs not removed by trim()\n\t\ttext = text.replace('\\t',' ');\n\n\t\tview.getStatus().setMessageAndClear(jEdit.getProperty(\n\t\t\t\"view.status.bracket\",new String[] { text }));\n\t} //}}}\n\n\t//{{{ recalculateLastPhysicalLine() method\n\tvoid recalculateLastPhysicalLine()\n\t{\n\t\tif(softWrap)\n\t\t{\n\t\t\tchunkCache.updateChunksUpTo(visibleLines);\n\t\t\tfor(int i = visibleLines; i >= 0; i--)\n\t\t\t{\n\t\t\t\tChunkCache.LineInfo info = chunkCache.getLineInfo(i);\n\t\t\t\tif(info.physicalLine != -1)\n\t\t\t\t{\n\t\t\t\t\tphysLastLine = info.physicalLine;\n\t\t\t\t\tscreenLastLine = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// this is faster\n\t\t\tint virtLastLine = Math.min(foldVisibilityManager\n\t\t\t\t.getVirtualLineCount() - 1,\n\t\t\t\tfirstLine + visibleLines);\n\t\t\tscreenLastLine = virtLastLine - firstLine;\n\t\t\tphysLastLine = foldVisibilityManager.virtualToPhysical(\n\t\t\t\tvirtLastLine);\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ TextAreaBorder class\n\tstatic class TextAreaBorder extends AbstractBorder\n\t{\n\t\tprivate static final Insets insets = new Insets(1, 1, 2, 2);\n\n\t\t//{{{ paintBorder() method\n\t\tpublic void paintBorder(Component c, Graphics g, int x, int y,\n\t\t\tint width, int height)\n\t\t{\n\t\t\tg.translate(x,y);\n\n\t\t\tg.setColor(MetalLookAndFeel.getControlDarkShadow());\n\t\t\tg.drawRect(0,0,width-2,height-2);\n\n\t\t\tg.setColor(MetalLookAndFeel.getControlHighlight());\n\t\t\tg.drawLine(width-1,1,width-1,height-1);\n\t\t\tg.drawLine(1,height-1,width-1,height-1);\n\n\t\t\tg.setColor(MetalLookAndFeel.getControl());\n\t\t\tg.drawLine(width-2,2,width-2,2);\n\t\t\tg.drawLine(1,height-2,1,height-2);\n\n\t\t\tg.translate(-x,-y);\n\t\t} //}}}\n\n\t\t//{{{ getBorderInsets() method\n\t\tpublic Insets getBorderInsets(Component c)\n\t\t{\n\t\t\treturn new Insets(1,1,2,2);\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ ScrollLayout class\n\tclass ScrollLayout implements LayoutManager\n\t{\n\t\t//{{{ addLayoutComponent() method\n\t\tpublic void addLayoutComponent(String name, Component comp)\n\t\t{\n\t\t\tif(name.equals(CENTER))\n\t\t\t\tcenter = comp;\n\t\t\telse if(name.equals(RIGHT))\n\t\t\t\tright = comp;\n\t\t\telse if(name.equals(LEFT))\n\t\t\t\tleft = comp;\n\t\t\telse if(name.equals(BOTTOM))\n\t\t\t\tbottom = comp;\n\t\t} //}}}\n\n\t\t//{{{ removeLayoutComponent() method\n\t\tpublic void removeLayoutComponent(Component comp)\n\t\t{\n\t\t\tif(center == comp)\n\t\t\t\tcenter = null;\n\t\t\telse if(right == comp)\n\t\t\t\tright = null;\n\t\t\telse if(left == comp)\n\t\t\t\tleft = null;\n\t\t\telse if(bottom == comp)\n\t\t\t\tbottom = null;\n\t\t} //}}}\n\n\t\t//{{{ preferredLayoutSize() method\n\t\tpublic Dimension preferredLayoutSize(Container parent)\n\t\t{\n\t\t\tDimension dim = new Dimension();\n\t\t\tBorder border = getBorder();\n\t\t\tInsets insets;\n\t\t\tif(border == null)\n\t\t\t\tinsets = new Insets(0,0,0,0);\n\t\t\telse\n\t\t\t{\n\t\t\t\tinsets = getBorder().getBorderInsets(\n\t\t\t\t\tJEditTextArea.this);\n\t\t\t}\n\n\t\t\tdim.width = insets.left + insets.right;\n\t\t\tdim.height = insets.top + insets.bottom;\n\n\t\t\tDimension leftPref = left.getPreferredSize();\n\t\t\tdim.width += leftPref.width;\n\t\t\tDimension centerPref = center.getPreferredSize();\n\t\t\tdim.width += centerPref.width;\n\t\t\tdim.height += centerPref.height;\n\t\t\tDimension rightPref = right.getPreferredSize();\n\t\t\tdim.width += rightPref.width;\n\t\t\tDimension bottomPref = bottom.getPreferredSize();\n\t\t\tdim.height += bottomPref.height;\n\n\t\t\treturn dim;\n\t\t} //}}}\n\n\t\t//{{{ minimumLayoutSize() method\n\t\tpublic Dimension minimumLayoutSize(Container parent)\n\t\t{\n\t\t\tDimension dim = new Dimension();\n\t\t\tBorder border = getBorder();\n\t\t\tInsets insets;\n\t\t\tif(border == null)\n\t\t\t\tinsets = new Insets(0,0,0,0);\n\t\t\telse\n\t\t\t{\n\t\t\t\tinsets = getBorder().getBorderInsets(\n\t\t\t\t\tJEditTextArea.this);\n\t\t\t}\n\n\t\t\tdim.width = insets.left + insets.right;\n\t\t\tdim.height = insets.top + insets.bottom;\n\n\t\t\tDimension leftPref = left.getMinimumSize();\n\t\t\tdim.width += leftPref.width;\n\t\t\tDimension centerPref = center.getMinimumSize();\n\t\t\tdim.width += centerPref.width; \n\t\t\tdim.height += centerPref.height;\n\t\t\tDimension rightPref = right.getMinimumSize();\n\t\t\tdim.width += rightPref.width;\n\t\t\tDimension bottomPref = bottom.getMinimumSize();\n\t\t\tdim.height += bottomPref.height;\n\n\t\t\treturn dim;\n\t\t} //}}}\n\n\t\t//{{{ layoutContainer() method\n\t\tpublic void layoutContainer(Container parent)\n\t\t{\n\t\t\tDimension size = parent.getSize();\n\t\t\tBorder border = getBorder();\n\t\t\tInsets insets;\n\t\t\tif(border == null)\n\t\t\t\tinsets = new Insets(0,0,0,0);\n\t\t\telse\n\t\t\t{\n\t\t\t\tinsets = getBorder().getBorderInsets(\n\t\t\t\t\tJEditTextArea.this);\n\t\t\t}\n\n\t\t\tint itop = insets.top;\n\t\t\tint ileft = insets.left;\n\t\t\tint ibottom = insets.bottom;\n\t\t\tint iright = insets.right;\n\n\t\t\tint rightWidth = right.getPreferredSize().width;\n\t\t\tint leftWidth = left.getPreferredSize().width;\n\t\t\tint bottomHeight = bottom.getPreferredSize().height;\n\t\t\tint centerWidth = Math.max(0,size.width - leftWidth\n\t\t\t\t- rightWidth - ileft - iright);\n\t\t\tint centerHeight = Math.max(0,size.height\n\t\t\t\t- bottomHeight - itop - ibottom);\n\n\t\t\tleft.setBounds(\n\t\t\t\tileft,\n\t\t\t\titop,\n\t\t\t\tleftWidth,\n\t\t\t\tcenterHeight);\n\n\t\t\tcenter.setBounds(\n\t\t\t\tileft + leftWidth,\n\t\t\t\titop,\n\t\t\t\tcenterWidth,\n\t\t\t\tcenterHeight);\n\n\t\t\tright.setBounds(\n\t\t\t\tileft + leftWidth + centerWidth,\n\t\t\t\titop,\n\t\t\t\trightWidth,\n\t\t\t\tcenterHeight);\n\n\t\t\tbottom.setBounds(\n\t\t\t\tileft,\n\t\t\t\titop + centerHeight,\n\t\t\t\tMath.max(0,size.width - rightWidth - ileft - iright),\n\t\t\t\tbottomHeight);\n\t\t} //}}}\n\n\t\tComponent center;\n\t\tComponent left;\n\t\tComponent right;\n\t\tComponent bottom;\n\t} //}}}\n\n\t//{{{ CaretBlinker class\n\tstatic class CaretBlinker implements ActionListener\n\t{\n\t\t//{{{ actionPerformed() method\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(focusedComponent != null && focusedComponent.hasFocus())\n\t\t\t\tfocusedComponent.blinkCaret();\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ MutableCaretEvent class\n\tclass MutableCaretEvent extends CaretEvent\n\t{\n\t\t//{{{ MutableCaretEvent constructor\n\t\tMutableCaretEvent()\n\t\t{\n\t\t\tsuper(JEditTextArea.this);\n\t\t} //}}}\n\n\t\t//{{{ getDot() method\n\t\tpublic int getDot()\n\t\t{\n\t\t\treturn getCaretPosition();\n\t\t} //}}}\n\n\t\t//{{{ getMark() method\n\t\tpublic int getMark()\n\t\t{\n\t\t\treturn getMarkPosition();\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ AdjustHandler class\n\tclass AdjustHandler implements AdjustmentListener\n\t{\n\t\t//{{{ adjustmentValueChanged() method\n\t\tpublic void adjustmentValueChanged(final AdjustmentEvent evt)\n\t\t{\n\t\t\tif(!scrollBarsInitialized)\n\t\t\t\treturn;\n\n\t\t\tif(evt.getAdjustable() == vertical)\n\t\t\t\tsetFirstLine(vertical.getValue());\n\t\t\telse\n\t\t\t\tsetHorizontalOffset(-horizontal.getValue());\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ ComponentHandler class\n\tclass ComponentHandler extends ComponentAdapter\n\t{\n\t\t//{{{ componentResized() method\n\t\tpublic void componentResized(ComponentEvent evt)\n\t\t{\n\t\t\t\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ BufferChangeHandler class\n\tclass BufferChangeHandler implements BufferChangeListener\n\t{\n\t\t//{{{ foldLevelChanged() method\n\t\tpublic void foldLevelChanged(Buffer buffer, int start, int end)\n\t\t{\n\t\t\tif(!bufferChanging && end != 0 && buffer.isLoaded())\n\t\t\t{\n\t\t\t\tinvalidateLineRange(start - 1,end - 1);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ contentInserted() method\n\t\tpublic void contentInserted(Buffer buffer, int startLine, int start,\n\t\t\tint numLines, int length)\n\t\t{\n\t\t\tchunkCache.invalidateChunksFromPhys(startLine);\n\n\t\t\t// Inserting multiple lines can change the last physical\n\t\t\t// line due to folds being pushed down and so on\n\t\t\tif(numLines != 0 || (softWrap\n\t\t\t\t&& foldVisibilityManager.getLastVisibleLine()\n\t\t\t\t- numLines <= physLastLine))\n\t\t\t{\n\t\t\t\tint oldScreenLastLine = screenLastLine;\n\t\t\t\trecalculateLastPhysicalLine();\n\t\t\t\tinvalidateScreenLineRange(oldScreenLastLine,\n\t\t\t\t\tscreenLastLine);\n\t\t\t}\n\n\t\t\tif(!buffer.isLoaded())\n\t\t\t\treturn;\n\n\t\t\trepaintAndScroll(startLine,numLines);\n\n\t\t\t// loop through all selections, resizing them if\n\t\t\t// necessary\n\t\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t\t{\n\t\t\t\tSelection s = (Selection)selection.elementAt(i);\n\n\t\t\t\tboolean changed = false;\n\n\t\t\t\tif((s instanceof Selection.Rect && s.start > start)\n\t\t\t\t\t|| (s instanceof Selection.Range && s.start >= start))\n\t\t\t\t{\n\t\t\t\t\ts.start += length;\n\t\t\t\t\ts.startLine = getLineOfOffset(s.start);\n\t\t\t\t\tchanged = true;\n\t\t\t\t}\n\n\t\t\t\tif(s.end >= start)\n\t\t\t\t{\n\t\t\t\t\ts.end += length;\n\t\t\t\t\ts.endLine = getLineOfOffset(s.end);\n\t\t\t\t\tchanged = true;\n\t\t\t\t}\n\n\t\t\t\tif(changed)\n\t\t\t\t\tinvalidateLineRange(s.startLine,s.endLine);\n\t\t\t}\n\n\t\t\tif(caret >= start)\n\t\t\t\tmoveCaretPosition(caret + length,true);\n\t\t\telse\n\t\t\t{\n\t\t\t\t// will update bracket highlight\n\t\t\t\tmoveCaretPosition(caret);\n\t\t\t}\n\t\t}\n\t\t//}}}\n\n\t\t//{{{ contentRemoved() method\n\t\tpublic void contentRemoved(Buffer buffer, int startLine, int start,\n\t\t\tint numLines, int length)\n\t\t{\n\t\t\tif(!buffer.isLoaded())\n\t\t\t\treturn;\n\n\t\t\tchunkCache.invalidateChunksFromPhys(startLine);\n\n\t\t\t// -lineCount because they are removed.\n\t\t\trepaintAndScroll(startLine,-numLines);\n\n\t\t\tif(numLines != 0 || (softWrap\n\t\t\t\t&& foldVisibilityManager.getLastVisibleLine()\n\t\t\t\t+ numLines <= physLastLine))\n\t\t\t{\n\t\t\t\tRunnable r = new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tqueuedRecalcLastPhys = false;\n\t\t\t\t\t\tint oldScreenLastLine = screenLastLine;\n\t\t\t\t\t\trecalculateLastPhysicalLine();\n\t\t\t\t\t\tinvalidateScreenLineRange(oldScreenLastLine,\n\t\t\t\t\t\t\tscreenLastLine);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tif(buffer.isTransactionInProgress())\n\t\t\t\t{\n\t\t\t\t\tif(!queuedRecalcLastPhys)\n\t\t\t\t\t{\n\t\t\t\t\t\tqueuedRecalcLastPhys = true;\n\t\t\t\t\t\trunnables.add(r);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tr.run();\n\t\t\t}\n\n\t\t\tint end = start + length;\n\n\t\t\t// loop through all selections, resizing them if\n\t\t\t// necessary\n\t\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t\t{\n\t\t\t\tSelection s = (Selection)selection.elementAt(i);\n\n\t\t\t\tboolean changed = false;\n\n\t\t\t\tif(s.start > start && s.start <= end)\n\t\t\t\t{\n\t\t\t\t\ts.start = start;\n\t\t\t\t\tchanged = true;\n\t\t\t\t}\n\t\t\t\telse if(s.start > end)\n\t\t\t\t{\n\t\t\t\t\ts.start -= length;\n\t\t\t\t\tchanged = true;\n\t\t\t\t}\n\n\t\t\t\tif(s.end > start && s.end <= end)\n\t\t\t\t{\n\t\t\t\t\ts.end = start;\n\t\t\t\t\tchanged = true;\n\t\t\t\t}\n\t\t\t\telse if(s.end > end)\n\t\t\t\t{\n\t\t\t\t\ts.end -= length;\n\t\t\t\t\tchanged = true;\n\t\t\t\t}\n\n\t\t\t\tif(s.start == s.end)\n\t\t\t\t{\n\t\t\t\t\tselection.removeElement(s);\n\t\t\t\t\tinvalidateLineRange(s.startLine,s.endLine);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t\telse if(changed)\n\t\t\t\t{\n\t\t\t\t\ts.startLine = getLineOfOffset(s.start);\n\t\t\t\t\ts.endLine = getLineOfOffset(s.end);\n\t\t\t\t\tinvalidateLineRange(s.startLine,s.endLine);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(caret > start && caret <= end)\n\t\t\t\tmoveCaretPosition(start,false);\n\t\t\telse if(caret > end)\n\t\t\t\tmoveCaretPosition(caret - length,false);\n\t\t\telse\n\t\t\t{\n\t\t\t\t// will update bracket highlight\n\t\t\t\tmoveCaretPosition(caret);\n\t\t\t}\n\t\t}\n\t\t//}}}\n\n\t\t//{{{ transactionComplete() method\n\t\tpublic void transactionComplete(Buffer buffer)\n\t\t{\n\t\t\tfor(int i = 0; i < runnables.size(); i++)\n\t\t\t{\n\t\t\t\t((Runnable)runnables.get(i)).run();\n\t\t\t}\n\t\t\trunnables.clear();\n\t\t} //}}}\n\n\t\t//{{{ repaintAndScroll() method\n\t\tprivate void repaintAndScroll(int startLine, int numLines)\n\t\t{\n\t\t\tif(numLines == 0)\n\t\t\t\tinvalidateLine(startLine);\n\t\t\t// do magic stuff\n\t\t\telse if(startLine < firstLine)\n\t\t\t{\n\t\t\t\tsetFirstLine(firstLine + numLines);\n\t\t\t\t// calls updateScrollBars()\n\t\t\t}\n\t\t\t// end of magic stuff\n\t\t\telse\n\t\t\t{\n\t\t\t\tupdateScrollBars();\n\t\t\t\tinvalidateScreenLineRange(chunkCache.getScreenLineOfOffset(\n\t\t\t\t\tstartLine,0),screenLastLine);\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ FocusHandler class\n\tclass FocusHandler implements FocusListener\n\t{\n\t\t//{{{ focusGained() method\n\t\tpublic void focusGained(FocusEvent evt)\n\t\t{\n\t\t\tif(bufferChanging)\n\t\t\t\treturn;\n\n\t\t\tif(bracketLine != -1)\n\t\t\t\tinvalidateLineRange(bracketLine,caretLine);\n\t\t\telse\n\t\t\t\tinvalidateLine(caretLine);\n\n\t\t\t// repaint the gutter so that the border color\n\t\t\t// reflects the focus state\n\t\t\tview.updateGutterBorders();\n\t\t} //}}}\n\n\t\t//{{{ focusLost() method\n\t\tpublic void focusLost(FocusEvent evt)\n\t\t{\n\t\t\tif(!isShowing())\n\t\t\t\treturn;\n\n\t\t\tif(bracketLine != -1)\n\t\t\t\tinvalidateLineRange(bracketLine,caretLine);\n\t\t\telse\n\t\t\t\tinvalidateLine(caretLine);\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ MouseHandler class\n\tclass MouseHandler extends MouseInputAdapter\n\t{\n\t\tprivate int dragStartLine;\n\t\tprivate int dragStartOffset;\n\t\tprivate int dragStart;\n\t\tprivate int clickCount;\n\t\tprivate boolean dragged;\n\t\tprivate boolean quickCopyDrag;\n\t\tprivate boolean clearStatus;\n\n\t\t//{{{ mousePressed() method\n\t\tpublic void mousePressed(MouseEvent evt)\n\t\t{\n\t\t\t// so that Home <mouse click> Home is not the same\n\t\t\t// as pressing Home twice in a row\n\t\t\tview.getInputHandler().resetLastActionCount();\n\n\t\t\tgrabFocus();\n\n\t\t\tif(GUIUtilities.isPopupTrigger(evt) && popup != null)\n\t\t\t{\n\t\t\t\tif(popup.isVisible())\n\t\t\t\t\tpopup.setVisible(false);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tGUIUtilities.showPopupMenu(popup,painter,\n\t\t\t\t\t\tevt.getX()+1,evt.getY()+1);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tquickCopyDrag = (isQuickCopyEnabled()\n\t\t\t\t&& (evt.getModifiers() & MouseEvent.BUTTON2_MASK) != 0);\n\t\t\tblink = true;\n\t\t\tinvalidateLine(caretLine);\n\n\t\t\tint x = evt.getX();\n\t\t\tint y = evt.getY();\n\n\t\t\tdragStart = xyToOffset(x,y,!painter.isBlockCaretEnabled());\n\t\t\tdragStartLine = getLineOfOffset(dragStart);\n\t\t\tdragStartOffset = dragStart - getLineStartOffset(dragStartLine);\n\n\t\t\tdragged = false;\n\n\t\t\tclickCount = evt.getClickCount();\n\n\t\t\tswitch(clickCount)\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t\tdoSingleClick(evt);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tdoDoubleClick(evt);\n\t\t\t\tbreak;\n\t\t\tdefault: //case 3:\n\t\t\t\tdoTripleClick(evt);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ mouseReleased() method\n\t\tpublic void mouseReleased(MouseEvent evt)\n\t\t{\n\t\t\tif(getSelectionCount() != 0)\n\t\t\t\tRegisters.setRegister('%',getSelectedText());\n\n\t\t\tif(dragged)\n\t\t\t{\n\t\t\t\t// middle mouse button drag inserts selection\n\t\t\t\t// at caret position\n\t\t\t\tif(quickCopyDrag)\n\t\t\t\t{\n\t\t\t\t\tString text = getSelectedText();\n\t\t\t\t\tselectNone();\n\t\t\t\t\tsetSelectedText(text);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(isQuickCopyEnabled()\n\t\t\t\t&& (evt.getModifiers() & InputEvent.BUTTON2_MASK) != 0)\n\t\t\t{\n\t\t\t\tmoveCaretPosition(dragStart,false);\n\t\t\t\tif(!isEditable())\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\telse\n\t\t\t\t\tRegisters.paste(JEditTextArea.this,'%');\n\t\t\t}\n\n\t\t\tdragged = false;\n\n\t\t\tif(clearStatus)\n\t\t\t{\n\t\t\t\tclearStatus = false;\n\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ doSingleClick() method\n\t\tprivate void doSingleClick(MouseEvent evt)\n\t\t{\n\t\t\t/* if(buffer.insideCompoundEdit())\n\t\t\t\tbuffer.endCompoundEdit(); */\n\n\t\t\tboolean control = (OperatingSystem.isMacOS() && evt.isMetaDown())\n\t\t\t\t|| (!OperatingSystem.isMacOS() && evt.isControlDown());\n\n\t\t\tif(evt.isShiftDown())\n\t\t\t{\n\t\t\t\t// XXX: getMarkPosition() deprecated!\n\t\t\t\tresizeSelection(getMarkPosition(),dragStart,control);\n\n\t\t\t\tmoveCaretPosition(dragStart,false);\n\n\t\t\t\t// so that shift-click-drag works\n\t\t\t\tdragStartLine = getMarkLine();\n\t\t\t\tdragStart = getMarkPosition();\n\t\t\t\tdragStartOffset = dragStart\n\t\t\t\t\t- getLineStartOffset(dragStartLine);\n\t\t\t}\n\t\t\telse if(control)\n\t\t\t{\n\t\t\t\tif(!multi)\n\t\t\t\t\tselectNone();\n\n\t\t\t\tmoveCaretPosition(xyToOffset(evt.getX(),\n\t\t\t\t\tevt.getY(),false),false);\n\t\t\t\tselectToMatchingBracket();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(!multi)\n\t\t\t\t\tselectNone();\n\n\t\t\t\tif(!quickCopyDrag)\n\t\t\t\t\tmoveCaretPosition(dragStart,false);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ doDoubleClick() method\n\t\tprivate void doDoubleClick(MouseEvent evt)\n\t\t{\n\t\t\t// Ignore empty lines\n\t\t\tif(getLineLength(dragStartLine) == 0)\n\t\t\t\treturn;\n\n\t\t\tString lineText = getLineText(dragStartLine);\n\t\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\t\t\tif(dragStartOffset == getLineLength(dragStartLine))\n\t\t\t\tdragStartOffset--;\n\n\t\t\tint wordStart = TextUtilities.findWordStart(lineText,\n\t\t\t\tdragStartOffset,noWordSep);\n\t\t\tint wordEnd = TextUtilities.findWordEnd(lineText,\n\t\t\t\tdragStartOffset+1,noWordSep);\n\n\t\t\tint lineStart = getLineStartOffset(dragStartLine);\n\t\t\taddToSelection(new Selection.Range(lineStart + wordStart,\n\t\t\t\tlineStart + wordEnd));\n\n\t\t\tif(quickCopyDrag)\n\t\t\t\tquickCopyDrag = false;\n\n\t\t\tmoveCaretPosition(lineStart + wordEnd,false);\n\n\t\t\t// with double clicks, even if nothing extra\n\t\t\t// selected, still activate quick copy drag code\n\t\t\tdragged = true;\n\t\t} //}}}\n\n\t\t//{{{ doTripleClick() method\n\t\tprivate void doTripleClick(MouseEvent evt)\n\t\t{\n\t\t\tint newCaret = getLineEndOffset(dragStartLine);\n\t\t\taddToSelection(new Selection.Range(\n\t\t\t\tgetLineStartOffset(dragStartLine),\n\t\t\t\tnewCaret));\n\n\t\t\tif(quickCopyDrag)\n\t\t\t\tquickCopyDrag = false;\n\n\t\t\tmoveCaretPosition(newCaret);\n\t\t} //}}}\n\n\t\t//{{{ mouseDragged() method\n\t\tpublic void mouseDragged(MouseEvent evt)\n\t\t{\n\t\t\tif(GUIUtilities.isPopupTrigger(evt)\n\t\t\t\t|| (popup != null && popup.isVisible()))\n\t\t\t\treturn;\n\n\t\t\tif(evt.getY() < 0)\n\t\t\t{\n\t\t\t\tsetFirstLine(getFirstLine() - 2);\n\t\t\t}\n\t\t\telse if(evt.getY() >= getHeight())\n\t\t\t{\n\t\t\t\tsetFirstLine(getFirstLine() + 1);\n\t\t\t}\n\n\t\t\tboolean rect = (OperatingSystem.isMacOS() && evt.isMetaDown())\n\t\t\t\t\t|| (!OperatingSystem.isMacOS() && evt.isControlDown());\n\n\t\t\tif(quickCopyDrag)\n\t\t\t{\n\t\t\t\tview.getStatus().setMessage(jEdit.getProperty(\n\t\t\t\t\t\"view.status.quick-copy\"));\n\t\t\t\tclearStatus = true;\n\t\t\t}\n\t\t\telse if(evt.isControlDown())\n\t\t\t{\n\t\t\t\tview.getStatus().setMessage(jEdit.getProperty(\n\t\t\t\t\t\"view.status.rect-select\"));\n\t\t\t\tclearStatus = true;\n\t\t\t}\n\n\t\t\tswitch(clickCount)\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t\tdoSingleDrag(evt,rect);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tdoDoubleDrag(evt,rect);\n\t\t\t\tbreak;\n\t\t\tdefault: //case 3:\n\t\t\t\tdoTripleDrag(evt,rect);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ doSingleDrag() method\n\t\tprivate void doSingleDrag(MouseEvent evt, boolean rect)\n\t\t{\n\t\t\tint dot = xyToOffset(evt.getX(),\n\t\t\t\tMath.max(0,Math.min(painter.getHeight(),evt.getY())),\n\t\t\t\t!painter.isBlockCaretEnabled());\n\n\t\t\tdragged = true;\n\n\t\t\tresizeSelection(dragStart,dot,rect);\n\n\t\t\tif(quickCopyDrag)\n\t\t\t{\n\t\t\t\t// just scroll to the dragged location\n\t\t\t\tint line = buffer.getLineOfOffset(dot);\n\t\t\t\tscrollTo(line,dot - buffer.getLineStartOffset(line),false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(dot == caret)\n\t\t\t\t\treturn;\n\t\t\t\tmoveCaretPosition(dot,false);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ doDoubleDrag() method\n\t\tprivate void doDoubleDrag(MouseEvent evt, boolean rect)\n\t\t{\n\t\t\tint markLineStart = getLineStartOffset(dragStartLine);\n\t\t\tint markLineLength = getLineLength(dragStartLine);\n\t\t\tint mark = dragStartOffset;\n\n\t\t\tint pos = xyToOffset(evt.getX(),\n\t\t\t\tMath.max(0,Math.min(painter.getHeight(),evt.getY())),\n\t\t\t\t!painter.isBlockCaretEnabled());\n\t\t\tint line = getLineOfOffset(pos);\n\t\t\tint lineStart = getLineStartOffset(line);\n\t\t\tint lineLength = getLineLength(line);\n\t\t\tint offset = pos - lineStart;\n\n\t\t\tString lineText = getLineText(line);\n\t\t\tString markLineText = getLineText(dragStartLine);\n\t\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\n\t\t\tif(markLineStart + dragStartOffset > lineStart + offset)\n\t\t\t{\n\t\t\t\tif(offset != 0 && offset != lineLength)\n\t\t\t\t{\n\t\t\t\t\toffset = TextUtilities.findWordStart(\n\t\t\t\t\t\tlineText,offset,noWordSep);\n\t\t\t\t}\n\n\t\t\t\tif(markLineLength != 0)\n\t\t\t\t{\n\t\t\t\t\tmark = TextUtilities.findWordEnd(\n\t\t\t\t\t\tmarkLineText,mark,noWordSep);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(offset != 0 && lineLength != 0)\n\t\t\t\t{\n\t\t\t\t\toffset = TextUtilities.findWordEnd(\n\t\t\t\t\t\tlineText,offset,noWordSep);\n\t\t\t\t}\n\n\t\t\t\tif(mark != 0 && mark != markLineLength)\n\t\t\t\t{\n\t\t\t\t\tmark = TextUtilities.findWordStart(\n\t\t\t\t\t\tmarkLineText,mark,noWordSep);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(lineStart + offset == caret)\n\t\t\t\treturn;\n\n\t\t\tresizeSelection(markLineStart + mark,lineStart + offset,\n\t\t\t\trect);\n\t\t\tif(!quickCopyDrag)\n\t\t\t\tmoveCaretPosition(lineStart + offset,false);\n\t\t} //}}}\n\n\t\t//{{{ doTripleDrag() method\n\t\tprivate void doTripleDrag(MouseEvent evt, boolean rect)\n\t\t{\n\t\t\tint offset = xyToOffset(evt.getX(),\n\t\t\t\tMath.max(0,Math.min(painter.getHeight(),evt.getY())),\n\t\t\t\tfalse);\n\t\t\tint mouseLine = getLineOfOffset(offset);\n\t\t\tint mark;\n\t\t\tint mouse;\n\t\t\tif(dragStartLine > mouseLine)\n\t\t\t{\n\t\t\t\tmark = getLineEndOffset(dragStartLine) - 1;\n\t\t\t\tif(offset == getLineEndOffset(mouseLine) - 1)\n\t\t\t\t\tmouse = offset;\n\t\t\t\telse\n\t\t\t\t\tmouse = getLineStartOffset(mouseLine);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmark = getLineStartOffset(dragStartLine);\n\t\t\t\tif(offset == getLineStartOffset(mouseLine))\n\t\t\t\t\tmouse = offset;\n\t\t\t\telse if(offset == getLineEndOffset(mouseLine) - 1\n\t\t\t\t\t&& mouseLine != getBuffer().getLineCount() - 1)\n\t\t\t\t\tmouse = getLineEndOffset(mouseLine);\n\t\t\t\telse\n\t\t\t\t\tmouse = getLineEndOffset(mouseLine) - 1;\n\t\t\t}\n\n\t\t\tmouse = Math.min(getBuffer().getLength(),mouse);\n\n\t\t\tif(mouse == caret)\n\t\t\t\treturn;\n\n\t\t\tdragged = true;\n\n\t\t\tresizeSelection(mark,mouse,rect);\n\t\t\tmoveCaretPosition(mouse,false);", "functions": [{"function_name": "getPainter", "code": "\tpublic final TextAreaPainter getPainter()\n\t{\n\t\treturn painter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getGutter", "code": "\tpublic final Gutter getGutter()\n\t{\n\t\treturn gutter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFoldVisibilityManager", "code": "\tpublic FoldVisibilityManager getFoldVisibilityManager()\n\t{\n\t\treturn foldVisibilityManager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isCaretBlinkEnabled", "code": "\tpublic final boolean isCaretBlinkEnabled()\n\t{\n\t\treturn caretBlinks;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCaretBlinkEnabled", "code": "\tpublic void setCaretBlinkEnabled(boolean caretBlinks)\n\t{\n\t\tthis.caretBlinks = caretBlinks;\n\t\tif(!caretBlinks)\n\t\t\tblink = false;\n\n\t\tif(buffer != null)\n\t\t\tinvalidateLine(caretLine);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getElectricScroll", "code": "\tpublic final int getElectricScroll()\n\t{\n\t\treturn electricScroll;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setElectricScroll", "code": "\tpublic final void setElectricScroll(int electricScroll)\n\t{\n\t\tthis.electricScroll = electricScroll;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isQuickCopyEnabled", "code": "\tpublic final boolean isQuickCopyEnabled()\n\t{\n\t\treturn quickCopy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setQuickCopyEnabled", "code": "\tpublic final void setQuickCopyEnabled(boolean quickCopy)\n\t{\n\t\tthis.quickCopy = quickCopy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBuffer", "code": "\tpublic final Buffer getBuffer()\n\t{\n\t\treturn buffer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBuffer", "code": "\tpublic void setBuffer(Buffer buffer)\n\t{\n\t\tif(this.buffer == buffer)\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\tbufferChanging = true;\n\n\t\t\tif(this.buffer != null)\n\t\t\t{\n\t\t\t\tsetFirstLine(0);\n\n\t\t\t\tselectNone();\n\t\t\t\tcaretLine = caret = caretScreenLine = 0;\n\t\t\t\tbracketLine = bracketPosition = -1;\n\n\t\t\t\tthis.buffer._releaseFoldVisibilityManager(foldVisibilityManager);\n\t\t\t\tthis.buffer.removeBufferChangeListener(bufferHandler);\n\t\t\t}\n\t\t\tthis.buffer = buffer;\n\n\t\t\tbuffer.addBufferChangeListener(bufferHandler);\n\t\t\tbufferHandlerInstalled = true;\n\n\t\t\tfoldVisibilityManager = buffer._getFoldVisibilityManager(this);\n\n\t\t\tchunkCache.setFirstLine(0);\n\t\t\tphysFirstLine = foldVisibilityManager.getFirstVisibleLine();\n\n\t\t\tpropertiesChanged();\n\n\t\t\trecalculateLastPhysicalLine();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbufferChanging = false;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [4, 16], [1, 17], [7, 18], [10, 19], [11, 20], [12, 21], [13, 22], [16, 23], [17, 24], [4, 25], [4, 26], [4, 27], [4, 28], [4, 29], [4, 30], [25, 31], [26, 32], [28, 33], [31, 34], [32, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 4], [17, 1], [18, 7], [19, 10], [20, 11], [21, 12], [22, 13], [23, 16], [24, 17], [25, 4], [26, 4], [27, 4], [28, 4], [29, 4], [30, 4], [31, 25], [32, 26], [33, 28], [34, 31], [35, 32], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "isEditable", "code": "\tpublic final boolean isEditable()\n\t{\n\t\treturn buffer.isEditable();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRightClickPopup", "code": "\tpublic final JPopupMenu getRightClickPopup()\n\t{\n\t\treturn popup;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRightClickPopup", "code": "\tpublic final void setRightClickPopup(JPopupMenu popup)\n\t{\n\t\tthis.popup = popup;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstLine", "code": "\tpublic final int getFirstLine()\n\t{\n\t\treturn firstLine;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFirstLine", "code": "\tpublic void setFirstLine(int firstLine)\n\t{\n\t\tif(firstLine == this.firstLine)\n\t\t\treturn;\n\n\t\t_setFirstLine(firstLine);\n\n\t\tview.synchroScrollVertical(this,firstLine);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "_setFirstLine", "code": "\tpublic void _setFirstLine(int firstLine)\n\t{\n\t\tfirstLine = Math.max(0,Math.min(getVirtualLineCount() - 1,firstLine));\n\t\tthis.firstLine = firstLine;\n\n\t\tphysFirstLine = virtualToPhysical(firstLine);\n\n\t\tmaxHorizontalScrollWidth = 0;\n\n\t\tchunkCache.setFirstLine(firstLine);\n\n\t\trecalculateLastPhysicalLine();\n\n\t\tif(this.firstLine != vertical.getValue())\n\t\t\tupdateScrollBars();\n\n\t\tpainter.repaint();\n\t\tgutter.repaint();\n\n\t\tfireScrollEvent(true);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [3, 13], [1, 14], [6, 15], [9, 16], [10, 17], [12, 18], [18, 19], [18, 20], [19, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 3], [14, 1], [15, 6], [16, 9], [17, 10], [18, 12], [19, 18], [20, 18], [21, 19], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getVisibleLines", "code": "\tpublic final int getVisibleLines()\n\t{\n\t\treturn visibleLines;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFirstPhysicalLine", "code": "\tpublic final int getFirstPhysicalLine()\n\t{\n\t\treturn physFirstLine;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLastPhysicalLine", "code": "\tpublic final int getLastPhysicalLine()\n\t{\n\t\treturn physLastLine;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHorizontalOffset", "code": "\tpublic final int getHorizontalOffset()\n\t{\n\t\treturn horizontalOffset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHorizontalOffset", "code": "\tpublic void setHorizontalOffset(int horizontalOffset)\n\t{\n\t\tif(horizontalOffset == this.horizontalOffset)\n\t\t\treturn;\n\t\t_setHorizontalOffset(horizontalOffset);\n\n\t\tview.synchroScrollHorizontal(this,horizontalOffset);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "_setHorizontalOffset", "code": "\tpublic void _setHorizontalOffset(int horizontalOffset)\n\t{\n\t\tthis.horizontalOffset = horizontalOffset;\n\t\tif(horizontalOffset != horizontal.getValue())\n\t\t\tupdateScrollBars();\n\t\tpainter.repaint();\n\n\t\tfireScrollEvent(false);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [3, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 3], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "updateScrollBars", "code": "\tpublic void updateScrollBars()\n\t{\n\t\tif(vertical != null && visibleLines != 0)\n\t\t{\n\t\t\t// don't display stuff past the end of the buffer if\n\t\t\t// we can help it\n\t\t\tint lineCount = getVirtualLineCount();\n\n\t\t\t// very stupid but proper fix will go into 4.1\n\t\t\tif(softWrap)\n\t\t\t\tlineCount += visibleLines - 1;\n\n\t\t\tif(lineCount < firstLine + visibleLines)\n\t\t\t{\n\t\t\t\t// this will call updateScrollBars(), so\n\t\t\t\t// just return...\n\t\t\t\tint newFirstLine = Math.max(0,lineCount - visibleLines);\n\t\t\t\tif(newFirstLine != firstLine)\n\t\t\t\t{\n\t\t\t\t\tsetFirstLine(newFirstLine);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvertical.setValues(firstLine,visibleLines,0,lineCount);\n\t\t\tvertical.setUnitIncrement(2);\n\t\t\tvertical.setBlockIncrement(visibleLines);\n\t\t}\n\n\t\tint width = painter.getWidth();\n\t\tif(horizontal != null && width != 0)\n\t\t{\n\t\t\tmaxHorizontalScrollWidth = 0;\n\t\t\tpainter.repaint();\n\n\t\t\thorizontal.setUnitIncrement(painter.getFontMetrics()\n\t\t\t\t.charWidth('w'));\n\t\t\thorizontal.setBlockIncrement(width / 2);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [4, 6], [4, 7], [2, 8], [3, 9], [3, 10], [3, 11], [5, 12], [5, 13], [1, 14], [1, 15], [1, 16], [1, 17], [6, 18], [7, 19], [3, 20], [3, 21], [3, 22], [9, 23], [12, 24], [13, 25], [14, 26], [15, 27], [17, 28], [21, 29], [22, 30], [9, 31], [9, 32], [23, 33], [10, 34], [11, 35], [26, 36], [27, 37], [31, 38], [34, 39], [37, 40], [31, 41], [32, 42], [39, 43], [31, 44], [42, 45], [42, 46], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 4], [7, 4], [8, 2], [9, 3], [10, 3], [11, 3], [12, 5], [13, 5], [14, 1], [15, 1], [16, 1], [17, 1], [18, 6], [19, 7], [20, 3], [21, 3], [22, 3], [23, 9], [24, 12], [25, 13], [26, 14], [27, 15], [28, 17], [29, 21], [30, 22], [31, 9], [32, 9], [33, 23], [34, 10], [35, 11], [36, 26], [37, 27], [38, 31], [39, 34], [40, 37], [41, 31], [42, 32], [43, 39], [44, 31], [45, 42], [46, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "scrollUpLine", "code": "\tpublic void scrollUpLine()\n\t{\n\t\tif(firstLine > 0)\n\t\t\tsetFirstLine(firstLine - 1);\n\t\telse\n\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [7, 8], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "scrollUpPage", "code": "\tpublic void scrollUpPage()\n\t{\n\t\tif(firstLine > 0)\n\t\t{\n\t\t\tint newFirstLine = firstLine - visibleLines;\n\t\t\tsetFirstLine(newFirstLine);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [1, 6], [5, 7], [3, 8], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 1], [7, 5], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "scrollDownLine", "code": "\tpublic void scrollDownLine()\n\t{\n\t\tint numLines = getVirtualLineCount();\n\n\t\tif((softWrap && firstLine < numLines) ||\n\t\t\t(firstLine + visibleLines < numLines))\n\t\t\tsetFirstLine(firstLine + 1);\n\t\telse\n\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [2, 8], [4, 9], [5, 10], [6, 11], [7, 12], [10, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 2], [9, 4], [10, 5], [11, 6], [12, 7], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "scrollDownPage", "code": "\tpublic void scrollDownPage()\n\t{\n\t\tint numLines = getVirtualLineCount();\n\n\t\tif(firstLine + visibleLines < numLines)\n\t\t{\n\t\t\tint newFirstLine = firstLine + visibleLines;\n\t\t\tsetFirstLine(newFirstLine + visibleLines < numLines\n\t\t\t\t? newFirstLine : numLines - visibleLines);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [1, 7], [1, 8], [7, 9], [8, 10], [4, 11], [10, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 1], [8, 1], [9, 7], [10, 8], [11, 4], [12, 10], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "scrollToCaret", "code": "\tpublic void scrollToCaret(boolean doElectricScroll)\n\t{\n\t\tscrollTo(caretLine,caret - buffer.getLineStartOffset(caretLine),\n\t\t\tdoElectricScroll);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "scrollTo", "code": "\tpublic void scrollTo(int line, int offset, boolean doElectricScroll)\n\t{\n\t\tint _electricScroll = (doElectricScroll && visibleLines > 6\n\t\t\t? electricScroll : 0);\n\n\t\t// visibleLines == 0 before the component is realized\n\t\t// we can't do any proper scrolling then, so we have\n\t\t// this hack...\n\t\tif(visibleLines == 0)\n\t\t{\n\t\t\tsetFirstLine(physicalToVirtual(\n\t\t\t\tMath.max(0,line - _electricScroll)));\n\t\t\treturn;\n\t\t}\n\n\t\t//{{{ STAGE 1 -- determine if the caret is visible.\n\t\tint screenLine = getScreenLineOfOffset(buffer.getLineStartOffset(line) + offset);\n\t\tPoint point;\n\t\tif(screenLine != -1)\n\t\t{\n\t\t\t// It's visible, but is it too close to the borders?\n\t\t\tint height = painter.getFontMetrics().getHeight();\n\n\t\t\tRectangle rect = new Rectangle(0,height * _electricScroll,\n\t\t\t\tpainter.getWidth() - 5,visibleLines * height\n\t\t\t\t- height * _electricScroll * 2);\n\n\t\t\tpoint = offsetToXY(line,offset,returnValue);\n\t\t\tif(rect.contains(point))\n\t\t\t\treturn;\n\t\t}\n\t\telse\n\t\t\tpoint = null;\n\t\t//}}}\n\n\t\t//{{{ STAGE 2 -- scroll vertically\n\t\tif(line == physLastLine + 1)\n\t\t{\n\t\t\tint count = chunkCache.getLineInfosForPhysicalLine(physLastLine).length\n\t\t\t\t+ chunkCache.getLineInfosForPhysicalLine(physLastLine + 1).length\n\t\t\t\t+ _electricScroll;\n\t\t\twhile(count > 0)\n\t\t\t{\n\t\t\t\tcount -= chunkCache.getLineInfosForPhysicalLine(physFirstLine).length;\n\t\t\t\tfirstLine++;\n\t\t\t\tphysFirstLine = foldVisibilityManager.getNextVisibleLine(physFirstLine);\n\t\t\t}\n\t\t}\n\t\telse if(screenLine == -1)\n\t\t{\n\t\t\tif(line == physLastLine)\n\t\t\t{\n\t\t\t\tint count = chunkCache.getLineInfosForPhysicalLine(physLastLine).length\n\t\t\t\t\t+ _electricScroll;\n\t\t\t\twhile(count > 0)\n\t\t\t\t{\n\t\t\t\t\tcount -= chunkCache.getLineInfosForPhysicalLine(physFirstLine).length;\n\t\t\t\t\tfirstLine++;\n\t\t\t\t\tphysFirstLine = foldVisibilityManager.getNextVisibleLine(physFirstLine);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint virtualLine = foldVisibilityManager.physicalToVirtual(line);\n\t\t\tif(virtualLine == firstLine - 1)\n\t\t\t{\n\t\t\t\tfirstLine = Math.max(0,firstLine - _electricScroll - 1);\n\t\t\t\tphysFirstLine = foldVisibilityManager.virtualToPhysical(firstLine);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// keep chunking lines until we have visibleLines / 2\n\t\t\t\tif(!softWrap && virtualLine >= foldVisibilityManager.getVirtualLineCount()\n\t\t\t\t\t- visibleLines / 2)\n\t\t\t\t{\n\t\t\t\t\tfirstLine = foldVisibilityManager.getVirtualLineCount()\n\t\t\t\t\t\t- visibleLines;\n\t\t\t\t\tphysFirstLine = foldVisibilityManager\n\t\t\t\t\t\t.virtualToPhysical(firstLine);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tphysFirstLine = line;\n\n\t\t\t\t\tint count = 0;\n\t\n\t\t\t\t\tfor(;;)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(foldVisibilityManager.isLineVisible(physFirstLine))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint incr = chunkCache.getLineInfosForPhysicalLine(physFirstLine).length;\n\t\t\t\t\t\t\tif(count + incr > visibleLines / 2)\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tcount += incr;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(physFirstLine == 0)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tphysFirstLine = foldVisibilityManager\n\t\t\t\t\t\t\t\t.getPrevVisibleLine(physFirstLine);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tfirstLine = physicalToVirtual(physFirstLine);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(screenLine < _electricScroll && firstLine != 0)\n\t\t{\n\t\t\tint count = _electricScroll - screenLine;\n\t\t\twhile(count > 0 && firstLine > 0)\n\t\t\t{\n\t\t\t\tcount -= chunkCache.getLineInfosForPhysicalLine(physFirstLine).length;\n\t\t\t\tfirstLine--;\n\t\t\t\tphysFirstLine = foldVisibilityManager.getPrevVisibleLine(physFirstLine);\n\t\t\t}\n\t\t}\n\t\telse if(screenLine >= visibleLines - _electricScroll)\n\t\t{\n\t\t\tint count = _electricScroll - visibleLines + screenLine + 1;\n\t\t\twhile(count > 0 && firstLine <= getVirtualLineCount())\n\t\t\t{\n\t\t\t\tcount -= chunkCache.getLineInfosForPhysicalLine(physFirstLine).length;\n\t\t\t\tfirstLine++;\n\t\t\t\tphysFirstLine = foldVisibilityManager.getNextVisibleLine(physFirstLine);\n\t\t\t}\n\t\t}\n\n\t\tchunkCache.setFirstLine(firstLine);\n\n\t\trecalculateLastPhysicalLine();\n\n\t\tif(point == null)\n\t\t{\n\t\t\tpoint = offsetToXY(line,offset,returnValue);\n\t\t\tif(point == null)\n\t\t\t{\n\t\t\t\t// a soft wrapped line has more screen lines\n\t\t\t\t// than the number of visible lines\n\t\t\t\treturn;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ STAGE 3 -- scroll horizontally\n\t\tif(point.x < 0)\n\t\t{\n\t\t\thorizontalOffset = Math.min(0,horizontalOffset\n\t\t\t\t- point.x + charWidth + 5);\n\t\t}\n\t\telse if(point.x >= painter.getWidth() - charWidth - 5)\n\t\t{\n\t\t\thorizontalOffset = horizontalOffset +\n\t\t\t\t(painter.getWidth() - point.x)\n\t\t\t\t- charWidth - 5;\n\t\t} //}}}\n\n\t\t//{{{ STAGE 4 -- update some stuff\n\t\tupdateScrollBars();\n\t\tpainter.repaint();\n\t\tgutter.repaint();\n\n\t\tview.synchroScrollVertical(this,firstLine);\n\t\tview.synchroScrollHorizontal(this,horizontalOffset);\n\n\t\t// fire events for both a horizontal and vertical scroll\n\t\tfireScrollEvent(true);\n\t\tfireScrollEvent(false);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 19], [1, 20], [2, 21], [0, 22], [0, 23], [3, 24], [3, 25], [4, 26], [7, 27], [12, 28], [13, 29], [19, 30], [20, 31], [2, 32], [21, 33], [24, 34], [24, 35], [3, 36], [3, 37], [25, 38], [4, 39], [4, 40], [4, 41], [4, 42], [26, 43], [6, 44], [7, 45], [27, 46], [8, 47], [30, 48], [1, 49], [32, 50], [2, 51], [34, 52], [34, 53], [24, 54], [24, 55], [24, 56], [35, 57], [36, 58], [38, 59], [39, 60], [40, 61], [40, 62], [4, 63], [44, 64], [7, 65], [47, 66], [47, 67], [19, 68], [48, 69], [48, 70], [49, 71], [32, 72], [50, 73], [51, 74], [52, 75], [34, 76], [34, 77], [53, 78], [53, 79], [54, 80], [56, 81], [58, 82], [37, 83], [63, 84], [41, 85], [42, 86], [64, 87], [65, 88], [67, 89], [68, 90], [70, 91], [71, 92], [71, 93], [52, 94], [52, 95], [75, 96], [76, 97], [78, 98], [54, 99], [80, 100], [55, 101], [56, 102], [56, 103], [36, 104], [36, 105], [83, 106], [85, 107], [85, 108], [85, 109], [85, 110], [86, 111], [88, 112], [89, 113], [90, 114], [90, 115], [92, 116], [92, 117], [94, 118], [97, 119], [97, 120], [77, 121], [99, 122], [54, 123], [54, 124], [100, 125], [102, 126], [104, 127], [105, 128], [106, 129], [106, 130], [107, 131], [107, 132], [108, 133], [108, 134], [112, 135], [112, 136], [115, 137], [117, 138], [118, 139], [118, 140], [95, 141], [76, 142], [76, 143], [119, 144], [120, 145], [99, 146], [99, 147], [122, 148], [123, 149], [124, 150], [126, 151], [103, 152], [129, 153], [131, 154], [131, 155], [137, 156], [94, 157], [94, 158], [139, 159], [140, 160], [141, 161], [141, 162], [142, 163], [143, 164], [99, 165], [99, 166], [99, 167], [99, 168], [148, 169], [150, 170], [150, 171], [102, 172], [102, 173], [152, 174], [153, 175], [156, 176], [157, 177], [158, 178], [162, 179], [165, 180], [146, 181], [146, 182], [147, 183], [167, 184], [168, 185], [169, 186], [169, 187], [170, 188], [170, 189], [172, 190], [173, 191], [181, 192], [181, 193], [182, 194], [185, 195], [186, 196], [193, 197], [182, 198], [182, 199], [181, 200], [198, 201], [198, 202], [200, 203], [198, 204], [202, 205], [202, 206], [199, 207], [205, 208], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 1], [20, 1], [21, 2], [22, 0], [23, 0], [24, 3], [25, 3], [26, 4], [27, 7], [28, 12], [29, 13], [30, 19], [31, 20], [32, 2], [33, 21], [34, 24], [35, 24], [36, 3], [37, 3], [38, 25], [39, 4], [40, 4], [41, 4], [42, 4], [43, 26], [44, 6], [45, 7], [46, 27], [47, 8], [48, 30], [49, 1], [50, 32], [51, 2], [52, 34], [53, 34], [54, 24], [55, 24], [56, 24], [57, 35], [58, 36], [59, 38], [60, 39], [61, 40], [62, 40], [63, 4], [64, 44], [65, 7], [66, 47], [67, 47], [68, 19], [69, 48], [70, 48], [71, 49], [72, 32], [73, 50], [74, 51], [75, 52], [76, 34], [77, 34], [78, 53], [79, 53], [80, 54], [81, 56], [82, 58], [83, 37], [84, 63], [85, 41], [86, 42], [87, 64], [88, 65], [89, 67], [90, 68], [91, 70], [92, 71], [93, 71], [94, 52], [95, 52], [96, 75], [97, 76], [98, 78], [99, 54], [100, 80], [101, 55], [102, 56], [103, 56], [104, 36], [105, 36], [106, 83], [107, 85], [108, 85], [109, 85], [110, 85], [111, 86], [112, 88], [113, 89], [114, 90], [115, 90], [116, 92], [117, 92], [118, 94], [119, 97], [120, 97], [121, 77], [122, 99], [123, 54], [124, 54], [125, 100], [126, 102], [127, 104], [128, 105], [129, 106], [130, 106], [131, 107], [132, 107], [133, 108], [134, 108], [135, 112], [136, 112], [137, 115], [138, 117], [139, 118], [140, 118], [141, 95], [142, 76], [143, 76], [144, 119], [145, 120], [146, 99], [147, 99], [148, 122], [149, 123], [150, 124], [151, 126], [152, 103], [153, 129], [154, 131], [155, 131], [156, 137], [157, 94], [158, 94], [159, 139], [160, 140], [161, 141], [162, 141], [163, 142], [164, 143], [165, 99], [166, 99], [167, 99], [168, 99], [169, 148], [170, 150], [171, 150], [172, 102], [173, 102], [174, 152], [175, 153], [176, 156], [177, 157], [178, 158], [179, 162], [180, 165], [181, 146], [182, 146], [183, 147], [184, 167], [185, 168], [186, 169], [187, 169], [188, 170], [189, 170], [190, 172], [191, 173], [192, 181], [193, 181], [194, 182], [195, 185], [196, 186], [197, 193], [198, 182], [199, 182], [200, 181], [201, 198], [202, 198], [203, 200], [204, 198], [205, 202], [206, 202], [207, 199], [208, 205], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208]]}, {"function_name": "addScrollListener", "code": "\tpublic final void addScrollListener(ScrollListener listener)\n\t{\n\t\tlistenerList.add(ScrollListener.class,listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeScrollListener", "code": "\tpublic final void removeScrollListener(ScrollListener listener)\n\t{\n\t\tlistenerList.remove(ScrollListener.class,listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPhysicalLineOfScreenLine", "code": "\tpublic int getPhysicalLineOfScreenLine(int screenLine)\n\t{\n\t\treturn chunkCache.getLineInfo(screenLine).physicalLine;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getScreenLineOfOffset", "code": "\tpublic int getScreenLineOfOffset(int offset)\n\t{\n\t\tint line = buffer.getLineOfOffset(offset);\n\t\toffset -= buffer.getLineStartOffset(line);\n\t\treturn chunkCache.getScreenLineOfOffset(line,offset);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getScreenLineStartOffset", "code": "\tpublic int getScreenLineStartOffset(int line)\n\t{\n\t\tchunkCache.updateChunksUpTo(line);\n\t\tChunkCache.LineInfo lineInfo = chunkCache.getLineInfo(line);\n\t\tif(lineInfo.physicalLine == -1)\n\t\t\treturn -1;\n\n\t\treturn buffer.getLineStartOffset(lineInfo.physicalLine)\n\t\t\t+ lineInfo.offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [0, 8], [5, 9], [6, 10], [7, 11], [3, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 0], [9, 5], [10, 6], [11, 7], [12, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getScreenLineEndOffset", "code": "\tpublic int getScreenLineEndOffset(int line)\n\t{\n\t\tchunkCache.updateChunksUpTo(line);\n\t\tChunkCache.LineInfo lineInfo = chunkCache.getLineInfo(line);\n\t\tif(lineInfo.physicalLine == -1)\n\t\t\treturn -1;\n\n\t\treturn buffer.getLineStartOffset(lineInfo.physicalLine)\n\t\t\t+ lineInfo.offset + lineInfo.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [0, 8], [5, 9], [6, 10], [7, 11], [3, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 0], [9, 5], [10, 6], [11, 7], [12, 3], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "xyToOffset", "code": "\tpublic int xyToOffset(int x, int y)\n\t{\n\t\treturn xyToOffset(x,y,true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "xyToOffset", "code": "\tpublic int xyToOffset(int x, int y, boolean round)\n\t{\n\t\tFontMetrics fm = painter.getFontMetrics();\n\t\tint height = fm.getHeight();\n\t\tint line = y / height;\n\n\t\tif(line < 0 || line > visibleLines)\n\t\t\treturn -1;\n\n\t\tchunkCache.updateChunksUpTo(line);\n\n\t\tChunkCache.LineInfo lineInfo = chunkCache.getLineInfo(line);\n\t\tif(!lineInfo.chunksValid)\n\t\t\tSystem.err.println(\"xy to offset: not valid\");\n\n\t\tif(lineInfo.physicalLine == -1)\n\t\t{\n\t\t\treturn getLineEndOffset(foldVisibilityManager\n\t\t\t\t.getLastVisibleLine()) - 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint offset = chunkCache.xToOffset(lineInfo.chunks,\n\t\t\t\tx - horizontalOffset,round);\n\t\t\tif(offset == -1 || offset == lineInfo.offset + lineInfo.length)\n\t\t\t\toffset = lineInfo.offset + lineInfo.length - 1;\n\n\t\t\treturn getLineStartOffset(lineInfo.physicalLine) + offset;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [4, 13], [4, 14], [1, 15], [1, 16], [1, 17], [1, 18], [11, 19], [2, 20], [3, 21], [13, 22], [14, 23], [14, 24], [5, 25], [6, 26], [7, 27], [15, 28], [16, 29], [18, 30], [20, 31], [24, 32], [28, 33], [16, 34], [29, 35], [29, 36], [17, 37], [30, 38], [30, 39], [34, 40], [35, 41], [36, 42], [37, 43], [39, 44], [40, 45], [40, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 4], [14, 4], [15, 1], [16, 1], [17, 1], [18, 1], [19, 11], [20, 2], [21, 3], [22, 13], [23, 14], [24, 14], [25, 5], [26, 6], [27, 7], [28, 15], [29, 16], [30, 18], [31, 20], [32, 24], [33, 28], [34, 16], [35, 29], [36, 29], [37, 17], [38, 30], [39, 30], [40, 34], [41, 35], [42, 36], [43, 37], [44, 39], [45, 40], [46, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "offsetToXY", "code": "\tpublic Point offsetToXY(int offset)\n\t{\n\t\tint line = buffer.getLineOfOffset(offset);\n\t\toffset -= buffer.getLineStartOffset(line);\n\t\tPoint retVal = new Point();\n\t\treturn offsetToXY(line,offset,retVal);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [6, 8], [3, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 6], [9, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "offsetToXY", "code": "\tpublic Point offsetToXY(int line, int offset, Point retVal)\n\t{\n\t\tint screenLine = chunkCache.getScreenLineOfOffset(line,offset);\n\t\tif(screenLine == -1)\n\t\t{\n\t\t\tif(line < physFirstLine)\n\t\t\t\treturn null;\n\t\t\t// must have >= here because the last physical line\n\t\t\t// might only be partially visible (some offsets would\n\t\t\t// have a screen line, others would return -1 and hence\n\t\t\t// this code would be executed)\n\t\t\telse if(line >= physLastLine)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new InternalError(\"line=\" + line\n\t\t\t\t\t+ \",offset=\" + offset\n\t\t\t\t\t+ \",screenLine=\" + screenLine\n\t\t\t\t\t+ \",physFirstLine=\" + physFirstLine\n\t\t\t\t\t+ \",physLastLine=\" + physLastLine);\n\t\t\t}\n\t\t}\n\n\t\tFontMetrics fm = painter.getFontMetrics();\n\n\t\tretVal.y = screenLine * fm.getHeight();\n\n\t\tChunkCache.LineInfo info = chunkCache.getLineInfo(screenLine);\n\t\tif(!info.chunksValid)\n\t\t\tSystem.err.println(\"offset to xy: not valid\");\n\n\t\tretVal.x = (int)(horizontalOffset + chunkCache.offsetToX(\n\t\t\tinfo.chunks,offset));\n\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [5, 12], [2, 13], [3, 14], [11, 15], [4, 16], [5, 17], [12, 18], [6, 19], [10, 20], [13, 21], [15, 22], [17, 23], [17, 24], [17, 25], [20, 26], [23, 27], [23, 28], [24, 29], [23, 30], [27, 31], [30, 32], [32, 33], [33, 34], [34, 35], [34, 36], [36, 37], [37, 38], [37, 39], [39, 40], [40, 41], [40, 42], [42, 43], [43, 44], [43, 45], [45, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 5], [13, 2], [14, 3], [15, 11], [16, 4], [17, 5], [18, 12], [19, 6], [20, 10], [21, 13], [22, 15], [23, 17], [24, 17], [25, 17], [26, 20], [27, 23], [28, 23], [29, 24], [30, 23], [31, 27], [32, 30], [33, 32], [34, 33], [35, 34], [36, 34], [37, 36], [38, 37], [39, 37], [40, 39], [41, 40], [42, 40], [43, 42], [44, 43], [45, 43], [46, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "invalidateScreenLineRange", "code": "\tpublic void invalidateScreenLineRange(int start, int end)\n\t{\n\t\tif(chunkCache.needFullRepaint())\n\t\t{\n\t\t\trecalculateLastPhysicalLine();\n\t\t\tgutter.repaint();\n\t\t\tpainter.repaint();\n\t\t\treturn;\n\t\t}\n\n\t\tif(start > end)\n\t\t{\n\t\t\tint tmp = end;\n\t\t\tend = start;\n\t\t\tstart = tmp;\n\t\t}\n\n\t\tFontMetrics fm = painter.getFontMetrics();\n\t\tint y = start * fm.getHeight();\n\t\tint height = (end - start + 1) * fm.getHeight();\n\t\tpainter.repaint(0,y,painter.getWidth(),height);\n\t\tgutter.repaint(0,y,gutter.getWidth(),height);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "RETURN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [8, 12], [8, 13], [9, 14], [9, 15], [1, 16], [2, 17], [3, 18], [4, 19], [5, 20], [16, 21], [16, 22], [17, 23], [4, 24], [4, 25], [5, 26], [5, 27], [5, 28], [22, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 8], [13, 8], [14, 9], [15, 9], [16, 1], [17, 2], [18, 3], [19, 4], [20, 5], [21, 16], [22, 16], [23, 17], [24, 4], [25, 4], [26, 5], [27, 5], [28, 5], [29, 22], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "invalidateLine", "code": "\tpublic void invalidateLine(int line)\n\t{\n\t\tif(line < physFirstLine || line > physLastLine\n\t\t\t|| !foldVisibilityManager.isLineVisible(line))\n\t\t\treturn;\n\n\t\tint startLine = -1;\n\t\tint endLine = -1;\n\n\t\tfor(int i = 0; i <= visibleLines; i++)\n\t\t{\n\t\t\tchunkCache.updateChunksUpTo(i);\n\t\t\tChunkCache.LineInfo info = chunkCache.getLineInfo(i);\n\n\t\t\tif((info.physicalLine >= line || info.physicalLine == -1)\n\t\t\t\t&& startLine == -1)\n\t\t\t{\n\t\t\t\tstartLine = i;\n\t\t\t}\n\n\t\t\tif((info.physicalLine >= line && info.lastSubregion)\n\t\t\t\t|| info.physicalLine == -1)\n\t\t\t{\n\t\t\t\tendLine = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(chunkCache.needFullRepaint())\n\t\t{\n\t\t\trecalculateLastPhysicalLine();\n\t\t\tendLine = visibleLines;\n\t\t}\n\t\telse if(endLine == -1)\n\t\t\tendLine = visibleLines;\n\n\t\t//if(startLine != endLine)\n\t\t//\tSystem.err.println(startLine + \":\" + endLine);\n\n\t\tinvalidateScreenLineRange(startLine,endLine);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "IF", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [2, 10], [5, 11], [5, 12], [8, 13], [2, 14], [2, 15], [2, 16], [3, 17], [4, 18], [12, 19], [12, 20], [8, 21], [13, 22], [1, 23], [1, 24], [14, 25], [15, 26], [2, 27], [2, 28], [20, 29], [20, 30], [14, 31], [25, 32], [25, 33], [26, 34], [26, 35], [16, 36], [14, 37], [32, 38], [33, 39], [15, 40], [34, 41], [35, 42], [35, 43], [42, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 2], [11, 5], [12, 5], [13, 8], [14, 2], [15, 2], [16, 2], [17, 3], [18, 4], [19, 12], [20, 12], [21, 8], [22, 13], [23, 1], [24, 1], [25, 14], [26, 15], [27, 2], [28, 2], [29, 20], [30, 20], [31, 14], [32, 25], [33, 25], [34, 26], [35, 26], [36, 16], [37, 14], [38, 32], [39, 33], [40, 15], [41, 34], [42, 35], [43, 35], [44, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "invalidateLineRange", "code": "\tpublic void invalidateLineRange(int start, int end)\n\t{\n\t\tif(end < start)\n\t\t{\n\t\t\tint tmp = end;\n\t\t\tend = start;\n\t\t\tstart = tmp;\n\t\t}\n\n\t\tif(end < physFirstLine || start > physLastLine)\n\t\t\treturn;\n\n\t\tint startScreenLine = -1;\n\t\tint endScreenLine = -1;\n\n\t\tfor(int i = 0; i <= visibleLines; i++)\n\t\t{\n\t\t\tchunkCache.updateChunksUpTo(i);\n\t\t\tChunkCache.LineInfo info = chunkCache.getLineInfo(i);\n\n\t\t\tif((info.physicalLine >= start || info.physicalLine == -1)\n\t\t\t\t&& startScreenLine == -1)\n\t\t\t{\n\t\t\t\tstartScreenLine = i;\n\t\t\t}\n\n\t\t\tif((info.physicalLine >= end && info.lastSubregion)\n\t\t\t\t|| info.physicalLine == -1)\n\t\t\t{\n\t\t\t\tendScreenLine = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(startScreenLine == -1)\n\t\t\tstartScreenLine = 0;\n\n\t\tif(chunkCache.needFullRepaint())\n\t\t{\n\t\t\trecalculateLastPhysicalLine();\n\t\t\tendScreenLine = visibleLines;\n\t\t}\n\t\telse if(endScreenLine == -1)\n\t\t\tendScreenLine = visibleLines;\n\n\t\tinvalidateScreenLineRange(startScreenLine,endScreenLine);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [2, 13], [3, 14], [6, 15], [6, 16], [7, 17], [11, 18], [2, 19], [13, 20], [3, 21], [3, 22], [3, 23], [4, 24], [5, 25], [16, 26], [16, 27], [7, 28], [11, 29], [18, 30], [1, 31], [1, 32], [19, 33], [21, 34], [22, 35], [3, 36], [3, 37], [7, 38], [7, 39], [21, 40], [34, 41], [34, 42], [35, 43], [35, 44], [23, 45], [21, 46], [41, 47], [42, 48], [22, 49], [43, 50], [44, 51], [44, 52], [51, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 2], [14, 3], [15, 6], [16, 6], [17, 7], [18, 11], [19, 2], [20, 13], [21, 3], [22, 3], [23, 3], [24, 4], [25, 5], [26, 16], [27, 16], [28, 7], [29, 11], [30, 18], [31, 1], [32, 1], [33, 19], [34, 21], [35, 22], [36, 3], [37, 3], [38, 7], [39, 7], [40, 21], [41, 34], [42, 34], [43, 35], [44, 35], [45, 23], [46, 21], [47, 41], [48, 42], [49, 22], [50, 43], [51, 44], [52, 44], [53, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "invalidateSelectedLines", "code": "\tpublic void invalidateSelectedLines()\n\t{\n\t\t// to hide line highlight if selections are being added later on\n\t\tinvalidateLine(caretLine);\n\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\tinvalidateLineRange(s.startLine,s.endLine);", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "physicalToVirtual", "code": "\tpublic int physicalToVirtual(int line)\n\t{\n\t\treturn foldVisibilityManager.physicalToVirtual(line);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "virtualToPhysical", "code": "\tpublic int virtualToPhysical(int line)\n\t{\n\t\treturn foldVisibilityManager.virtualToPhysical(line);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getBufferLength", "code": "\tpublic final int getBufferLength()\n\t{\n\t\treturn buffer.getLength();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLineCount", "code": "\tpublic final int getLineCount()\n\t{\n\t\treturn buffer.getLineCount();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVirtualLineCount", "code": "\tpublic final int getVirtualLineCount()\n\t{\n\t\treturn foldVisibilityManager.getVirtualLineCount();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLineOfOffset", "code": "\tpublic final int getLineOfOffset(int offset)\n\t{\n\t\treturn buffer.getLineOfOffset(offset);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLineStartOffset", "code": "\tpublic int getLineStartOffset(int line)\n\t{\n\t\treturn buffer.getLineStartOffset(line);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLineEndOffset", "code": "\tpublic int getLineEndOffset(int line)\n\t{\n\t\treturn buffer.getLineEndOffset(line);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLineLength", "code": "\tpublic int getLineLength(int line)\n\t{\n\t\treturn buffer.getLineLength(line);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getText", "code": "\tpublic final String getText(int start, int len)\n\t{\n\t\treturn buffer.getText(start,len);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getText", "code": "\tpublic final void getText(int start, int len, Segment segment)\n\t{\n\t\tbuffer.getText(start,len,segment);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLineText", "code": "\tpublic final String getLineText(int lineIndex)\n\t{\n\t\treturn buffer.getLineText(lineIndex);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLineText", "code": "\tpublic final void getLineText(int lineIndex, Segment segment)\n\t{\n\t\tbuffer.getLineText(lineIndex,segment);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getText", "code": "\tpublic String getText()\n\t{\n\t\treturn buffer.getText(0,buffer.getLength());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setText", "code": "\tpublic void setText(String text)\n\t{\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\t\t\tbuffer.remove(0,buffer.getLength());\n\t\t\tbuffer.insert(0,text);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "selectAll", "code": "\tpublic final void selectAll()\n\t{\n\t\tsetSelection(new Selection.Range(0,buffer.getLength()));\n\t\tmoveCaretPosition(buffer.getLength(),true);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "selectLine", "code": "\tpublic void selectLine()\n\t{\n\t\tint caretLine = getCaretLine();\n\t\tint start = getLineStartOffset(caretLine);\n\t\tint end = getLineEndOffset(caretLine) - 1;\n\t\tSelection s = new Selection.Range(start,end);\n\t\tif(multi)\n\t\t\taddToSelection(s);\n\t\telse\n\t\t\tsetSelection(s);\n\t\tmoveCaretPosition(end);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [2, 9], [3, 10], [4, 11], [5, 12], [10, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 2], [10, 3], [11, 4], [12, 5], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "selectParagraph", "code": "\tpublic void selectParagraph()\n\t{\n\t\tint caretLine = getCaretLine();\n\n\t\tif(getLineLength(caretLine) == 0)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint start = caretLine;\n\t\tint end = caretLine;\n\n\t\twhile(start >= 0)\n\t\t{\n\t\t\tif(getLineLength(start) == 0)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tstart--;\n\t\t}\n\n\t\twhile(end < getLineCount())\n\t\t{\n\t\t\tif(getLineLength(end) == 0)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tend++;\n\t\t}\n\n\t\tint selectionStart = getLineStartOffset(start + 1);\n\t\tint selectionEnd = getLineEndOffset(end - 1) - 1;\n\t\tSelection s = new Selection.Range(selectionStart,selectionEnd);\n\t\tif(multi)\n\t\t\taddToSelection(s);\n\t\telse\n\t\t\tsetSelection(s);\n\t\tmoveCaretPosition(selectionEnd);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [5, 12], [6, 13], [9, 14], [1, 15], [1, 16], [2, 17], [3, 18], [4, 19], [5, 20], [12, 21], [6, 22], [13, 23], [9, 24], [14, 25], [14, 26], [10, 27], [18, 28], [18, 29], [19, 30], [20, 31], [20, 32], [22, 33], [22, 34], [9, 35], [29, 36], [30, 37], [32, 38], [32, 39], [34, 40], [34, 41], [35, 42], [36, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 5], [13, 6], [14, 9], [15, 1], [16, 1], [17, 2], [18, 3], [19, 4], [20, 5], [21, 12], [22, 6], [23, 13], [24, 9], [25, 14], [26, 14], [27, 10], [28, 18], [29, 18], [30, 19], [31, 20], [32, 20], [33, 22], [34, 22], [35, 9], [36, 29], [37, 30], [38, 32], [39, 32], [40, 34], [41, 34], [42, 35], [43, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "selectWord", "code": "\tpublic void selectWord()\n\t{\n\t\tint line = getCaretLine();\n\t\tint lineStart = getLineStartOffset(line);\n\t\tint offset = getCaretPosition() - lineStart;\n\n\t\tif(getLineLength(line) == 0)\n\t\t\treturn;\n\n\t\tString lineText = getLineText(line);\n\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\n\t\tif(offset == getLineLength(line))\n\t\t\toffset--;\n\n\t\tint wordStart = TextUtilities.findWordStart(lineText,offset,noWordSep);\n\t\tint wordEnd = TextUtilities.findWordEnd(lineText,offset+1,noWordSep);\n\n\t\tSelection s = new Selection.Range(lineStart + wordStart,\n\t\t\tlineStart + wordEnd);\n\t\tif(multi)\n\t\t\taddToSelection(s);\n\t\telse\n\t\t\tsetSelection(s);\n\t\tmoveCaretPosition(lineStart + wordEnd);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [5, 13], [8, 14], [8, 15], [12, 16], [1, 17], [1, 18], [2, 19], [3, 20], [4, 21], [13, 22], [6, 23], [7, 24], [15, 25], [15, 26], [9, 27], [10, 28], [11, 29], [19, 30], [19, 31], [20, 32], [23, 33], [27, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 5], [14, 8], [15, 8], [16, 12], [17, 1], [18, 1], [19, 2], [20, 3], [21, 4], [22, 13], [23, 6], [24, 7], [25, 15], [26, 15], [27, 9], [28, 10], [29, 11], [30, 19], [31, 19], [32, 20], [33, 23], [34, 27], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "selectToMatchingBracket", "code": "\tpublic void selectToMatchingBracket()\n\t{\n\t\tint offset = caret - buffer.getLineStartOffset(caretLine);\n\n\t\tif(buffer.getLineLength(caretLine) == 0)\n\t\t\treturn;\n\n\t\tif(offset == buffer.getLineLength(caretLine))\n\t\t\toffset--;\n\n\t\tint bracket = TextUtilities.findMatchingBracket(buffer,caretLine,offset);\n\n\t\tif(bracket != -1)\n\t\t{\n\t\t\tSelection s;\n\n\t\t\tif(bracket < caret)\n\t\t\t\ts = new Selection.Range(++bracket,caret);\n\t\t\telse\n\t\t\t{\n\t\t\t\tmoveCaretPosition(caret + 1,false);\n\t\t\t\ts = new Selection.Range(caret,bracket);\n\t\t\t}\n\n\t\t\taddToSelection(s);\n\t\t\treturn;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [4, 9], [1, 10], [1, 11], [1, 12], [6, 13], [2, 14], [7, 15], [9, 16], [9, 17], [5, 18], [1, 19], [11, 20], [18, 21], [11, 22], [11, 23], [11, 24], [22, 25], [23, 26], [24, 27], [24, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 4], [10, 1], [11, 1], [12, 1], [13, 6], [14, 2], [15, 7], [16, 9], [17, 9], [18, 5], [19, 1], [20, 11], [21, 18], [22, 11], [23, 11], [24, 11], [25, 22], [26, 23], [27, 24], [28, 24], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "selectBlock", "code": "\tpublic void selectBlock()\n\t{\n\t\tString openBrackets = \"([{\";\n\t\tString closeBrackets = \")]}\";\n\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tint start, end;\n\t\tif(s == null)\n\t\t\tstart = end = caret;\n\t\telse\n\t\t{\n\t\t\tstart = s.start;\n\t\t\tend = s.end;\n\t\t}\n\n\t\tString text = getText(0,buffer.getLength());\n\n\t\t// Scan backwards, trying to find a bracket\n\t\tint count = 1;\n\t\tchar openBracket = '\\0';\n\t\tchar closeBracket = '\\0';\n\n\t\t// We can't do the backward scan if start == 0\n\t\tif(start == 0)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\nbackward_scan:\twhile(--start > 0)\n\t\t{\n\t\t\tchar c = text.charAt(start);\n\t\t\tint index = openBrackets.indexOf(c);\n\t\t\tif(index != -1)\n\t\t\t{\n\t\t\t\tif(--count == 0)\n\t\t\t\t{\n\t\t\t\t\topenBracket = c;\n\t\t\t\t\tcloseBracket = closeBrackets.charAt(index);\n\t\t\t\t\tbreak backward_scan;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(closeBrackets.indexOf(c) != -1)\n\t\t\t\tcount++;\n\t\t}\n\n\t\t// Reset count\n\t\tcount = 1;\n\n\t\t// Scan forward, matching that bracket\n\t\tif(openBracket == '\\0')\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\nforward_scan:\t\tdo\n\t\t\t{\n\t\t\t\tchar c = text.charAt(end);\n\t\t\t\tif(c == closeBracket)\n\t\t\t\t{\n\t\t\t\t\tif(--count == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tend++;\n\t\t\t\t\t\tbreak forward_scan;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(c == openBracket)\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\twhile(++end < buffer.getLength());\n\t\t}\n\n\t\ts = new Selection.Range(start,end);\n\t\tif(multi)\n\t\t\taddToSelection(s);\n\t\telse\n\t\t\tsetSelection(s);\n\t\tmoveCaretPosition(end);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LOOP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "IF", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [0, 17], [3, 18], [4, 19], [9, 20], [1, 21], [1, 22], [15, 23], [2, 24], [2, 25], [16, 26], [17, 27], [3, 28], [3, 29], [3, 30], [18, 31], [4, 32], [19, 33], [5, 34], [6, 35], [7, 36], [8, 37], [9, 38], [20, 39], [11, 40], [12, 41], [13, 42], [24, 43], [2, 44], [28, 45], [28, 46], [4, 47], [37, 48], [37, 49], [9, 50], [9, 51], [38, 52], [24, 53], [24, 54], [43, 55], [44, 56], [45, 57], [28, 58], [46, 59], [29, 60], [30, 61], [47, 62], [53, 63], [53, 64], [57, 65], [57, 66], [58, 67], [63, 68], [53, 69], [54, 70], [58, 71], [67, 72], [69, 73], [58, 74], [58, 75], [69, 76], [73, 77], [74, 78], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 0], [18, 3], [19, 4], [20, 9], [21, 1], [22, 1], [23, 15], [24, 2], [25, 2], [26, 16], [27, 17], [28, 3], [29, 3], [30, 3], [31, 18], [32, 4], [33, 19], [34, 5], [35, 6], [36, 7], [37, 8], [38, 9], [39, 20], [40, 11], [41, 12], [42, 13], [43, 24], [44, 2], [45, 28], [46, 28], [47, 4], [48, 37], [49, 37], [50, 9], [51, 9], [52, 38], [53, 24], [54, 24], [55, 43], [56, 44], [57, 45], [58, 28], [59, 46], [60, 29], [61, 30], [62, 47], [63, 53], [64, 53], [65, 57], [66, 57], [67, 58], [68, 63], [69, 53], [70, 54], [71, 58], [72, 67], [73, 69], [74, 58], [75, 58], [76, 69], [77, 73], [78, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78]]}, {"function_name": "invertSelection", "code": "\tpublic final void invertSelection()\n\t{\n\t\tSelection[] newSelection = new Selection[selection.size() + 1];\n\t\tint lastOffset = 0;\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\tnewSelection[i] = new Selection.Range(lastOffset,\n\t\t\t\ts.getStart());\n\t\t\tlastOffset = s.getEnd();\n\t\t}\n\t\tnewSelection[selection.size()] = new Selection.Range(\n\t\t\tlastOffset,buffer.getLength());\n\t\tsetSelection(newSelection);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [5, 7], [1, 8], [6, 9], [2, 10], [7, 11], [1, 12], [1, 13], [1, 14], [3, 15], [5, 16], [12, 17], [13, 18], [15, 19], [15, 20], [18, 21], [8, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 5], [8, 1], [9, 6], [10, 2], [11, 7], [12, 1], [13, 1], [14, 1], [15, 3], [16, 5], [17, 12], [18, 13], [19, 15], [20, 15], [21, 18], [22, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getSelectionCount", "code": "\tpublic int getSelectionCount()\n\t{\n\t\treturn selection.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSelection", "code": "\tpublic Selection[] getSelection()\n\t{\n\t\tSelection[] sel = new Selection[selection.size()];\n\t\tselection.copyInto(sel);\n\t\treturn sel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "selectNone", "code": "\tpublic void selectNone()\n\t{\n\t\tsetSelection((Selection)null);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSelection", "code": "\tpublic void setSelection(Selection[] selection)\n\t{\n\t\t// invalidate the old selection\n\t\tinvalidateSelectedLines();\n\n\t\tthis.selection.removeAllElements();\n\n\t\tif(selection != null)\n\t\t{\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t\t_addToSelection(selection[i]);\n\t\t}\n\n\t\tfireCaretEvent();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [0, 8], [6, 9], [6, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 0], [9, 6], [10, 6], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setSelection", "code": "\tpublic void setSelection(Selection selection)\n\t{\n\t\tinvalidateSelectedLines();\n\t\tthis.selection.removeAllElements();\n\n\t\tif(selection != null)\n\t\t\t_addToSelection(selection);\n\n\t\tfireCaretEvent();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addToSelection", "code": "\tpublic void addToSelection(Selection[] selection)\n\t{\n\t\tif(selection != null)\n\t\t{\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t\t_addToSelection(selection[i]);\n\t\t}\n\n\t\t// to hide current line highlight\n\t\tinvalidateLine(caretLine);\n\n\t\tfireCaretEvent();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addToSelection", "code": "\tpublic void addToSelection(Selection selection)\n\t{\n\t\t_addToSelection(selection);\n\n\t\t// to hide current line highlight\n\t\tinvalidateLine(caretLine);\n\n\t\tfireCaretEvent();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSelectionAtOffset", "code": "\tpublic Selection getSelectionAtOffset(int offset)\n\t{\n\t\tif(selection != null)\n\t\t{\n\t\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t\t{\n\t\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\t\tif(offset >= s.start && offset <= s.end)\n\t\t\t\t\treturn s;\n\t\t\t}\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [6, 10], [8, 11], [9, 12], [9, 13], [6, 14], [13, 15], [13, 16], [10, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 6], [11, 8], [12, 9], [13, 9], [14, 6], [15, 13], [16, 13], [17, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "removeFromSelection", "code": "\tpublic void removeFromSelection(Selection sel)\n\t{\n\t\tselection.removeElement(sel);\n\t\tinvalidateLineRange(sel.startLine,sel.endLine);\n\n\t\t// to hide current line highlight\n\t\tinvalidateLine(caretLine);\n\n\t\tfireCaretEvent();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "removeFromSelection", "code": "\tpublic void removeFromSelection(int offset)\n\t{\n\t\tSelection sel = getSelectionAtOffset(offset);\n\t\tif(sel == null)\n\t\t\treturn;\n\n\t\tselection.removeElement(sel);\n\t\tinvalidateLineRange(sel.startLine,sel.endLine);\n\n\t\t// to hide current line highlight\n\t\tinvalidateLine(caretLine);\n\n\t\tfireCaretEvent();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [9, 10], [2, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 9], [11, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "resizeSelection", "code": "\tpublic void resizeSelection(int offset, int end, boolean rect)\n\t{\n\t\tSelection s = getSelectionAtOffset(offset);\n\t\tif(s != null)\n\t\t{\n\t\t\tinvalidateLineRange(s.startLine,s.endLine);\n\t\t\tselection.removeElement(s);\n\t\t}\n\n\t\tif(end < offset)\n\t\t{\n\t\t\tint tmp = offset;\n\t\t\toffset = end;\n\t\t\tend = tmp;\n\t\t}\n\n\t\tSelection newSel;\n\t\tif(rect)\n\t\t\tnewSel = new Selection.Rect(offset,end);\n\t\telse\n\t\t\tnewSel = new Selection.Range(offset,end);\n\n\t\t_addToSelection(newSel);\n\t\tfireCaretEvent();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [4, 12], [1, 13], [1, 14], [3, 15], [12, 16], [5, 17], [13, 18], [14, 19], [3, 20], [3, 21], [4, 22], [4, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 4], [13, 1], [14, 1], [15, 3], [16, 12], [17, 5], [18, 13], [19, 14], [20, 3], [21, 3], [22, 4], [23, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "extendSelection", "code": "\tpublic void extendSelection(int offset, int end)\n\t{\n\t\tSelection s = getSelectionAtOffset(offset);\n\t\tif(s != null)\n\t\t{\n\t\t\tinvalidateLineRange(s.startLine,s.endLine);\n\t\t\tselection.removeElement(s);\n\n\t\t\tif(offset == s.start)\n\t\t\t{\n\t\t\t\toffset = end;\n\t\t\t\tend = s.end;\n\t\t\t}\n\t\t\telse if(offset == s.end)\n\t\t\t{\n\t\t\t\toffset = s.start;\n\t\t\t}\n\t\t}\n\n\t\tif(end < offset)\n\t\t{\n\t\t\tint tmp = end;\n\t\t\tend = offset;\n\t\t\toffset = tmp;\n\t\t}\n\n\t\t_addToSelection(new Selection.Range(offset,end));\n\t\tfireCaretEvent();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [7, 10], [1, 11], [2, 12], [9, 13], [3, 14], [1, 15], [1, 16], [12, 17], [12, 18], [2, 19], [2, 20], [17, 21], [12, 22], [12, 23], [17, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 7], [11, 1], [12, 2], [13, 9], [14, 3], [15, 1], [16, 1], [17, 12], [18, 12], [19, 2], [20, 2], [21, 17], [22, 12], [23, 12], [24, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getSelectedText", "code": "\tpublic String getSelectedText(Selection s)\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tgetSelectedText(s,buf);\n\t\treturn buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSelectedText", "code": "\tpublic String getSelectedText(String separator)\n\t{\n\t\tif(selection.size() == 0)\n\t\t\treturn null;\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(separator);\n\n\t\t\tgetSelectedText((Selection)selection.elementAt(i),buf);\n\t\t}\n\n\t\treturn buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [2, 10], [7, 11], [3, 12], [8, 13], [9, 14], [9, 15], [2, 16], [10, 17], [2, 18], [10, 19], [17, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 2], [11, 7], [12, 3], [13, 8], [14, 9], [15, 9], [16, 2], [17, 10], [18, 2], [19, 10], [20, 17], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getSelectedText", "code": "\tpublic String getSelectedText()\n\t{\n\t\treturn getSelectedText(\"\\n\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSelectedText", "code": "\tpublic void setSelectedText(Selection s, String selectedText)\n\t{\n\t\tif(!isEditable())\n\t\t{\n\t\t\tthrow new InternalError(\"Text component\"\n\t\t\t\t+ \" read only\");\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tif(s instanceof Selection.Rect)\n\t\t\t{\n\t\t\t\tint start = s.start - getLineStartOffset(s.startLine);\n\t\t\t\tint end = s.end - getLineStartOffset(s.endLine);\n\n\t\t\t\t// Certain rectangles satisfy this condition...\n\t\t\t\tif(end < start)\n\t\t\t\t{\n\t\t\t\t\tint tmp = end;\n\t\t\t\t\tend = start;\n\t\t\t\t\tstart = tmp;\n\t\t\t\t}\n\n\t\t\t\tint lastNewline = 0;\n\t\t\t\tint currNewline = 0;\n\n\t\t\t\tfor(int i = s.startLine; i <= s.endLine; i++)\n\t\t\t\t{\n\t\t\t\t\tint lineStart = getLineStartOffset(i);\n\t\t\t\t\tint lineEnd = getLineEndOffset(i) - 1;\n\t\t\t\t\tint rectStart = Math.min(lineEnd,lineStart + start);\n\n\t\t\t\t\tbuffer.remove(rectStart,Math.min(lineEnd - rectStart,\n\t\t\t\t\t\tend - start));\n\n\t\t\t\t\tif(selectedText == null)\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tcurrNewline = selectedText.indexOf('\\n',lastNewline);\n\t\t\t\t\tif(currNewline == -1)\n\t\t\t\t\t\tcurrNewline = selectedText.length();\n\n\t\t\t\t\tbuffer.insert(rectStart,selectedText\n\t\t\t\t\t\t.substring(lastNewline,currNewline));\n\n\t\t\t\t\tlastNewline = Math.min(selectedText.length(),\n\t\t\t\t\t\tcurrNewline + 1);\n\t\t\t\t}\n\n\t\t\t\tif(selectedText != null &&\n\t\t\t\t\tcurrNewline != selectedText.length())\n\t\t\t\t{\n\t\t\t\t\tint offset = getLineEndOffset(s.endLine) - 1;\n\t\t\t\t\tbuffer.insert(offset,\"\\n\");\n\t\t\t\t\tbuffer.insert(offset + 1,selectedText\n\t\t\t\t\t\t.substring(currNewline + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.remove(s.start,s.end - s.start);\n\t\t\t\tif(selectedText != null && selectedText.length() != 0)\n\t\t\t\t{\n\t\t\t\t\tbuffer.insert(s.start,selectedText);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// No matter what happends... stops us from leaving buffer\n\t\t// in a bad state\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [1, 9], [2, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [10, 19], [11, 20], [5, 21], [12, 22], [13, 23], [16, 24], [19, 25], [20, 26], [20, 27], [21, 28], [12, 29], [22, 30], [22, 31], [13, 32], [13, 33], [13, 34], [13, 35], [13, 36], [14, 37], [15, 38], [16, 39], [17, 40], [18, 41], [25, 42], [25, 43], [11, 44], [26, 45], [26, 46], [27, 47], [12, 48], [12, 49], [30, 50], [31, 51], [13, 52], [13, 53], [32, 54], [13, 55], [33, 56], [33, 57], [13, 58], [16, 59], [16, 60], [40, 61], [41, 62], [48, 63], [48, 64], [49, 65], [29, 66], [52, 67], [53, 68], [32, 69], [54, 70], [55, 71], [57, 72], [58, 73], [34, 74], [35, 75], [36, 76], [63, 77], [64, 78], [66, 79], [66, 80], [67, 81], [67, 82], [69, 83], [71, 84], [73, 85], [73, 86], [74, 87], [75, 88], [75, 89], [77, 90], [81, 91], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 1], [10, 2], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 5], [18, 5], [19, 10], [20, 11], [21, 5], [22, 12], [23, 13], [24, 16], [25, 19], [26, 20], [27, 20], [28, 21], [29, 12], [30, 22], [31, 22], [32, 13], [33, 13], [34, 13], [35, 13], [36, 13], [37, 14], [38, 15], [39, 16], [40, 17], [41, 18], [42, 25], [43, 25], [44, 11], [45, 26], [46, 26], [47, 27], [48, 12], [49, 12], [50, 30], [51, 31], [52, 13], [53, 13], [54, 32], [55, 13], [56, 33], [57, 33], [58, 13], [59, 16], [60, 16], [61, 40], [62, 41], [63, 48], [64, 48], [65, 49], [66, 29], [67, 52], [68, 53], [69, 32], [70, 54], [71, 55], [72, 57], [73, 58], [74, 34], [75, 35], [76, 36], [77, 63], [78, 64], [79, 66], [80, 66], [81, 67], [82, 67], [83, 69], [84, 71], [85, 73], [86, 73], [87, 74], [88, 75], [89, 75], [90, 77], [91, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91]]}, {"function_name": "setSelectedText", "code": "\tpublic void setSelectedText(String selectedText)\n\t{\n\t\tif(!isEditable())\n\t\t{\n\t\t\tthrow new InternalError(\"Text component\"\n\t\t\t\t+ \" read only\");\n\t\t}\n\n\t\tSelection[] selection = getSelection();\n\t\tif(selection.length == 0)\n\t\t{\n\t\t\t// for compatibility with older jEdit versions\n\t\t\tbuffer.insert(caret,selectedText);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t\t{\n\t\t\t\t\tsetSelectedText(selection[i],selectedText);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\n\t\tselectNone();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LOOP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [1, 8], [6, 9], [2, 10], [3, 11], [8, 12], [1, 13], [11, 14], [8, 15], [12, 16], [8, 17], [14, 18], [18, 19], [18, 20], [12, 21], [12, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 1], [9, 6], [10, 2], [11, 3], [12, 8], [13, 1], [14, 11], [15, 8], [16, 12], [17, 8], [18, 14], [19, 18], [20, 18], [21, 12], [22, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getSelectedLines", "code": "\tpublic int[] getSelectedLines()\n\t{\n\t\tif(selection.size() == 0)\n\t\t\treturn new int[] { caretLine };\n\n\t\tInteger line;\n\n\t\tHashtable hash = new Hashtable();\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\tint endLine = (s.end == getLineStartOffset(s.endLine)\n\t\t\t\t? s.endLine - 1\n\t\t\t\t: s.endLine);\n\n\t\t\tfor(int j = s.startLine; j <= endLine; j++)\n\t\t\t{\n\t\t\t\tline = new Integer(j);\n\t\t\t\thash.put(line,line);\n\t\t\t}\n\t\t}\n\n\t\tint[] returnValue = new int[hash.size()];\n\t\tint i = 0;\n\n\t\tEnumeration keys = hash.keys();\n\t\twhile(keys.hasMoreElements())\n\t\t{\n\t\t\tline = (Integer)keys.nextElement();\n\t\t\treturnValue[i++] = line.intValue();\n\t\t}\n\n\t\tArrays.sort(returnValue);\n\n\t\treturn returnValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [6, 12], [9, 13], [9, 14], [3, 15], [4, 16], [6, 17], [6, 18], [6, 19], [12, 20], [7, 21], [14, 22], [14, 23], [2, 24], [2, 25], [5, 26], [17, 27], [6, 28], [24, 29], [18, 30], [25, 31], [17, 32], [17, 33], [30, 34], [30, 35], [19, 36], [33, 37], [34, 38], [35, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 6], [13, 9], [14, 9], [15, 3], [16, 4], [17, 6], [18, 6], [19, 6], [20, 12], [21, 7], [22, 14], [23, 14], [24, 2], [25, 2], [26, 5], [27, 17], [28, 6], [29, 24], [30, 18], [31, 25], [32, 17], [33, 17], [34, 30], [35, 30], [36, 19], [37, 33], [38, 34], [39, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "showSelectLineRangeDialog", "code": "\tpublic void showSelectLineRangeDialog()\n\t{\n\t\tnew SelectLineRange(view);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "blinkCaret", "code": "\tpublic final void blinkCaret()\n\t{\n\t\tif(caretBlinks)\n\t\t{\n\t\t\tblink = !blink;\n\t\t\tinvalidateLine(caretLine);\n\t\t}\n\t\telse\n\t\t\tblink = true;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "centerCaret", "code": "\tpublic void centerCaret()\n\t{\n\t\tint offset = getScreenLineStartOffset(visibleLines / 2);\n\t\tif(offset == -1)\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t\tsetCaretPosition(offset);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [2, 7], [5, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 2], [8, 5], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setCaretPosition", "code": "\tpublic void setCaretPosition(int newCaret)\n\t{\n\t\tinvalidateSelectedLines();\n\t\tselection.removeAllElements();\n\t\tmoveCaretPosition(newCaret,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setCaretPosition", "code": "\tpublic void setCaretPosition(int newCaret, boolean doElectricScroll)\n\t{\n\t\tinvalidateSelectedLines();\n\t\tselection.removeAllElements();\n\t\tmoveCaretPosition(newCaret,doElectricScroll);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "moveCaretPosition", "code": "\tpublic void moveCaretPosition(int newCaret)\n\t{\n\t\tmoveCaretPosition(newCaret,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "moveCaretPosition", "code": "\tpublic void moveCaretPosition(int newCaret, boolean doElectricScroll)\n\t{\n\t\tif(newCaret < 0 || newCaret > buffer.getLength())\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"caret out of bounds: \"\n\t\t\t\t+ newCaret);\n\t\t}\n\n\t\t// When the user is typing, etc, we don't want the caret\n\t\t// to blink\n\t\tblink = true;\n\t\tcaretTimer.restart();\n\n\t\tif(caret == newCaret)\n\t\t{\n\t\t\tif(focusedComponent == this)\n\t\t\t\tfinishCaretUpdate(doElectricScroll,false);\n\t\t\treturn;\n\t\t}\n\n\t\tint newCaretLine = getLineOfOffset(newCaret);\n\n\t\tmagicCaret = -1;\n\n\t\tif(!foldVisibilityManager.isLineVisible(newCaretLine))\n\t\t{\n\t\t\tif(foldVisibilityManager.isNarrowed())\n\t\t\t{\n\t\t\t\tint collapseFolds = buffer.getIntegerProperty(\n\t\t\t\t\t\"collapseFolds\",0);\n\t\t\t\tif(collapseFolds != 0)\n\t\t\t\t\tfoldVisibilityManager.expandFolds(collapseFolds);\n\t\t\t\telse\n\t\t\t\t\tfoldVisibilityManager.expandAllFolds();\n\t\t\t}\n\t\t\telse\n\t\t\t\tfoldVisibilityManager.expandFold(newCaretLine,false);\n\t\t}\n\n\t\tif(caretLine == newCaretLine)\n\t\t{\n\t\t\tif(caretScreenLine != -1)\n\t\t\t\tinvalidateScreenLineRange(caretScreenLine,caretScreenLine);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcaretScreenLine = chunkCache.getScreenLineOfOffset(newCaretLine,\n\t\t\t\tnewCaret - buffer.getLineStartOffset(newCaretLine));\n\t\t\tinvalidateLineRange(caretLine,newCaretLine);\n\t\t}\n\n\t\tcaret = newCaret;\n\t\tcaretLine = newCaretLine;\n\n\t\tif(focusedComponent == this)\n\t\t\tfinishCaretUpdate(doElectricScroll,true);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [2, 12], [3, 13], [0, 14], [5, 15], [0, 16], [0, 17], [6, 18], [1, 19], [2, 20], [3, 21], [14, 22], [4, 23], [5, 24], [5, 25], [17, 26], [6, 27], [18, 28], [18, 29], [19, 30], [2, 31], [2, 32], [20, 33], [21, 34], [25, 35], [27, 36], [28, 37], [29, 38], [32, 39], [20, 40], [33, 41], [21, 42], [21, 43], [21, 44], [25, 45], [36, 46], [39, 47], [42, 48], [43, 49], [45, 50], [46, 51], [47, 52], [43, 53], [43, 54], [49, 55], [44, 56], [56, 57], [56, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 2], [13, 3], [14, 0], [15, 5], [16, 0], [17, 0], [18, 6], [19, 1], [20, 2], [21, 3], [22, 14], [23, 4], [24, 5], [25, 5], [26, 17], [27, 6], [28, 18], [29, 18], [30, 19], [31, 2], [32, 2], [33, 20], [34, 21], [35, 25], [36, 27], [37, 28], [38, 29], [39, 32], [40, 20], [41, 33], [42, 21], [43, 21], [44, 21], [45, 25], [46, 36], [47, 39], [48, 42], [49, 43], [50, 45], [51, 46], [52, 47], [53, 43], [54, 43], [55, 49], [56, 44], [57, 56], [58, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "getCaretPosition", "code": "\tpublic int getCaretPosition()\n\t{\n\t\treturn caret;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCaretLine", "code": "\tpublic int getCaretLine()\n\t{\n\t\treturn caretLine;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMagicCaretPosition", "code": "\tpublic final int getMagicCaretPosition()\n\t{\n\t\tif(magicCaret == -1)\n\t\t{\n\t\t\tmagicCaret = offsetToX(caretLine,caret\n\t\t\t\t- getLineStartOffset(caretLine));\n\t\t}\n\n\t\treturn magicCaret;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setMagicCaretPosition", "code": "\tpublic final void setMagicCaretPosition(int magicCaret)\n\t{\n\t\tthis.magicCaret = magicCaret;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addCaretListener", "code": "\tpublic final void addCaretListener(CaretListener listener)\n\t{\n\t\tlistenerList.add(CaretListener.class,listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeCaretListener", "code": "\tpublic final void removeCaretListener(CaretListener listener)\n\t{\n\t\tlistenerList.remove(CaretListener.class,listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBracketPosition", "code": "\tpublic final int getBracketPosition()\n\t{\n\t\treturn bracketPosition;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBracketLine", "code": "\tpublic final int getBracketLine()\n\t{\n\t\treturn bracketLine;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "goToNextBracket", "code": "\tpublic void goToNextBracket(boolean select)\n\t{\n\t\tString text = getText(caret,buffer.getLength() - caret - 1);\n\n\t\tint newCaret = -1;\n\nloop:\t\tfor(int i = 0; i < text.length(); i++)\n\t\t{\n\t\t\tswitch(text.charAt(i))\n\t\t\t{\n\t\t\tcase ')': case ']': case '}':\n\t\t\t\tnewCaret = caret + i + 1;\n\t\t\t\tbreak loop;\n\t\t\t}\n\t\t}\n\n\t\tif(newCaret == -1)\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t{\n\t\t\tif(select)\n\t\t\t\textendSelection(caret,newCaret);\n\t\t\telse if(!multi)\n\t\t\t\tselectNone();\n\t\t\tmoveCaretPosition(newCaret);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "SWITCH", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [1, 9], [6, 10], [2, 11], [7, 12], [3, 13], [4, 14], [1, 15], [8, 16], [9, 17], [11, 18], [2, 19], [14, 20], [8, 21], [11, 22], [11, 23], [11, 24], [11, 25], [20, 26], [20, 27], [16, 28], [11, 29], [27, 30], [29, 31], [31, 32], [31, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 1], [10, 6], [11, 2], [12, 7], [13, 3], [14, 4], [15, 1], [16, 8], [17, 9], [18, 11], [19, 2], [20, 14], [21, 8], [22, 11], [23, 11], [24, 11], [25, 11], [26, 20], [27, 20], [28, 16], [29, 11], [30, 27], [31, 29], [32, 31], [33, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "goToNextCharacter", "code": "\tpublic void goToNextCharacter(boolean select)\n\t{\n\t\tif(!select && selection.size() != 0)\n\t\t{\n\t\t\tSelection s = getSelectionAtOffset(caret);\n\t\t\tif(s != null)\n\t\t\t{\n\t\t\t\tif(multi)\n\t\t\t\t{\n\t\t\t\t\tif(caret != s.end)\n\t\t\t\t\t{\n\t\t\t\t\t\tmoveCaretPosition(s.end);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsetCaretPosition(s.end);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(caret == buffer.getLength())\n\t\t\tgetToolkit().beep();\n\n\t\tint newCaret;\n\n\t\tif(caret == getLineEndOffset(caretLine) - 1)\n\t\t{\n\t\t\tint line = foldVisibilityManager.getNextVisibleLine(caretLine);\n\t\t\tif(line == -1)\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tnewCaret = getLineStartOffset(line);\n\t\t}\n\t\telse\n\t\t\tnewCaret = caret + 1;\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "IF", "PARAM", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [5, 11], [1, 12], [2, 13], [2, 14], [2, 15], [9, 16], [4, 17], [10, 18], [5, 19], [5, 20], [11, 21], [8, 22], [13, 23], [2, 24], [14, 25], [16, 26], [16, 27], [17, 28], [19, 29], [21, 30], [21, 31], [23, 32], [24, 33], [14, 34], [25, 35], [15, 36], [19, 37], [29, 38], [20, 39], [14, 40], [40, 41], [37, 42], [37, 43], [37, 44], [43, 45], [43, 46], [43, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 5], [12, 1], [13, 2], [14, 2], [15, 2], [16, 9], [17, 4], [18, 10], [19, 5], [20, 5], [21, 11], [22, 8], [23, 13], [24, 2], [25, 14], [26, 16], [27, 16], [28, 17], [29, 19], [30, 21], [31, 21], [32, 23], [33, 24], [34, 14], [35, 25], [36, 15], [37, 19], [38, 29], [39, 20], [40, 14], [41, 40], [42, 37], [43, 37], [44, 37], [45, 43], [46, 43], [47, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "goToNextLine", "code": "\tpublic void goToNextLine(boolean select)\n\t{\n\t\tChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(caretLine);\n\n\t\tint caretFromStartOfLine = caret - buffer.getLineStartOffset(caretLine);\n\t\tint subregion = getSubregionOfOffset(caretFromStartOfLine,\n\t\t\tlineInfos);\n\n\t\tint magic = this.magicCaret;\n\t\tif(magic == -1)\n\t\t{\n\t\t\tmagic = subregionOffsetToX(lineInfos[subregion],\n\t\t\t\tcaretFromStartOfLine);\n\t\t}\n\n\t\tint newCaret;\n\n\t\tif(subregion != lineInfos.length - 1)\n\t\t{\n\t\t\tnewCaret = buffer.getLineStartOffset(caretLine)\n\t\t\t\t+ xToSubregionOffset(lineInfos[subregion + 1],magic,\n\t\t\t\ttrue);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint nextLine = foldVisibilityManager.getNextVisibleLine(caretLine);\n\n\t\t\tif(nextLine == -1)\n\t\t\t{\n\t\t\t\tint end = getLineEndOffset(caretLine) - 1;\n\t\t\t\tif(caret == end)\n\t\t\t\t{\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnewCaret = end;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlineInfos = chunkCache.getLineInfosForPhysicalLine(nextLine);\n\t\t\t\tnewCaret = getLineStartOffset(nextLine)\n\t\t\t\t\t+ xToSubregionOffset(lineInfos[0],magic + 1,\n\t\t\t\t\ttrue);\n\t\t\t}\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\n\t\tthis.magicCaret = magic;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [4, 14], [1, 15], [2, 16], [2, 17], [13, 18], [14, 19], [6, 20], [7, 21], [8, 22], [12, 23], [16, 24], [2, 25], [18, 26], [4, 27], [21, 28], [16, 29], [16, 30], [24, 31], [17, 32], [25, 33], [27, 34], [16, 35], [16, 36], [29, 37], [33, 38], [33, 39], [35, 40], [36, 41], [29, 42], [29, 43], [30, 44], [38, 45], [40, 46], [40, 47], [29, 48], [44, 49], [44, 50], [46, 51], [46, 52], [48, 53], [38, 54], [52, 55], [54, 56], [46, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 4], [15, 1], [16, 2], [17, 2], [18, 13], [19, 14], [20, 6], [21, 7], [22, 8], [23, 12], [24, 16], [25, 2], [26, 18], [27, 4], [28, 21], [29, 16], [30, 16], [31, 24], [32, 17], [33, 25], [34, 27], [35, 16], [36, 16], [37, 29], [38, 33], [39, 33], [40, 35], [41, 36], [42, 29], [43, 29], [44, 30], [45, 38], [46, 40], [47, 40], [48, 29], [49, 44], [50, 44], [51, 46], [52, 46], [53, 48], [54, 38], [55, 52], [56, 54], [57, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "goToNextMarker", "code": "\tpublic void goToNextMarker(boolean select)\n\t{\n\t\tVector markers = buffer.getMarkers();\n\t\tif(markers.size() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tMarker marker = null;\n\n\t\tfor(int i = 0; i < markers.size(); i++)\n\t\t{\n\t\t\tMarker _marker = (Marker)markers.get(i);\n\t\t\tif(_marker.getPosition() > caret)\n\t\t\t{\n\t\t\t\tmarker = _marker;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(marker == null)\n\t\t\tmarker = (Marker)markers.get(0);\n\n\t\tif(select)\n\t\t\textendSelection(caret,marker.getPosition());\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(marker.getPosition());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [5, 12], [8, 13], [1, 14], [2, 15], [10, 16], [3, 17], [3, 18], [11, 19], [4, 20], [5, 21], [12, 22], [12, 23], [6, 24], [9, 25], [14, 26], [17, 27], [3, 28], [5, 29], [15, 30], [17, 31], [27, 32], [29, 33], [30, 34], [17, 35], [18, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 5], [13, 8], [14, 1], [15, 2], [16, 10], [17, 3], [18, 3], [19, 11], [20, 4], [21, 5], [22, 12], [23, 12], [24, 6], [25, 9], [26, 14], [27, 17], [28, 3], [29, 5], [30, 15], [31, 17], [32, 27], [33, 29], [34, 30], [35, 17], [36, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "goToNextPage", "code": "\tpublic void goToNextPage(boolean select)\n\t{\n\t\tint lineCount = getVirtualLineCount();\n\n\t\tint magic = getMagicCaretPosition();\n\n\t\tif(firstLine + visibleLines * 2 >= lineCount - 1)\n\t\t\tsetFirstLine(lineCount - visibleLines);\n\t\telse\n\t\t\tsetFirstLine(firstLine + visibleLines);\n\n\t\tint newLine = virtualToPhysical(Math.min(lineCount - 1,\n\t\t\tphysicalToVirtual(caretLine) + visibleLines));\n\t\tint newCaret = getLineStartOffset(newLine)\n\t\t\t+ xToOffset(newLine,magic + 1);\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);\n\n\t\tsetMagicCaretPosition(magic);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [4, 11], [1, 12], [2, 13], [3, 14], [4, 15], [4, 16], [11, 17], [11, 18], [5, 19], [6, 20], [10, 21], [13, 22], [13, 23], [14, 24], [15, 25], [16, 26], [17, 27], [18, 28], [22, 29], [24, 30], [24, 31], [28, 32], [29, 33], [30, 34], [31, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 4], [12, 1], [13, 2], [14, 3], [15, 4], [16, 4], [17, 11], [18, 11], [19, 5], [20, 6], [21, 10], [22, 13], [23, 13], [24, 14], [25, 15], [26, 16], [27, 17], [28, 18], [29, 22], [30, 24], [31, 24], [32, 28], [33, 29], [34, 30], [35, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "goToNextParagraph", "code": "\tpublic void goToNextParagraph(boolean select)\n\t{\n\t\tint lineNo = getCaretLine();\n\n\t\tint newCaret = getBufferLength();\n\n\t\tboolean foundBlank = false;\n\nloop:\t\tfor(int i = lineNo + 1; i < getLineCount(); i++)\n\t\t{\n\t\t\tif(!foldVisibilityManager.isLineVisible(i))\n\t\t\t\tcontinue;\n\n\t\t\tgetLineText(i,lineSegment);\n\n\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t{\n\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t{\n\t\t\t\tcase ' ':\n\t\t\t\tcase '\\t':\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif(foundBlank)\n\t\t\t\t\t{\n\t\t\t\t\t\tnewCaret = getLineStartOffset(i);\n\t\t\t\t\t\tbreak loop;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfoundBlank = true;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "CALL", "LOOP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [1, 10], [2, 11], [2, 12], [9, 13], [3, 14], [4, 15], [5, 16], [8, 17], [2, 18], [11, 19], [2, 20], [12, 21], [12, 22], [2, 23], [18, 24], [11, 25], [23, 26], [11, 27], [25, 28], [25, 29], [25, 30], [25, 31], [28, 32], [25, 33], [28, 34], [28, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 1], [11, 2], [12, 2], [13, 9], [14, 3], [15, 4], [16, 5], [17, 8], [18, 2], [19, 11], [20, 2], [21, 12], [22, 12], [23, 2], [24, 18], [25, 11], [26, 23], [27, 11], [28, 25], [29, 25], [30, 25], [31, 25], [32, 28], [33, 25], [34, 28], [35, 28], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "goToNextWord", "code": "\tpublic void goToNextWord(boolean select)\n\t{\n\t\tint lineStart = getLineStartOffset(caretLine);\n\t\tint newCaret = caret - lineStart;\n\t\tString lineText = getLineText(caretLine);\n\n\t\tif(newCaret == lineText.length())\n\t\t{\n\t\t\tint nextLine = foldVisibilityManager.getNextVisibleLine(caretLine);\n\t\t\tif(nextLine == -1)\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tnewCaret = getLineStartOffset(nextLine);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\t\t\tnewCaret = TextUtilities.findWordEnd(lineText,newCaret + 1,\n\t\t\t\tnoWordSep) + lineStart;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "CALL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [1, 10], [2, 11], [2, 12], [2, 13], [9, 14], [3, 15], [4, 16], [5, 17], [8, 18], [2, 19], [2, 20], [12, 21], [19, 22], [11, 23], [20, 24], [12, 25], [21, 26], [13, 27], [22, 28], [23, 29], [12, 30], [28, 31], [30, 32], [31, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 1], [11, 2], [12, 2], [13, 2], [14, 9], [15, 3], [16, 4], [17, 5], [18, 8], [19, 2], [20, 2], [21, 12], [22, 19], [23, 11], [24, 20], [25, 12], [26, 21], [27, 13], [28, 22], [29, 23], [30, 12], [31, 28], [32, 30], [33, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "goToPrevBracket", "code": "\tpublic void goToPrevBracket(boolean select)\n\t{\n\t\tString text = getText(0,caret);\n\n\t\tint newCaret = -1;\n\nloop:\t\tfor(int i = getCaretPosition() - 1; i >= 0; i--)\n\t\t{\n\t\t\tswitch(text.charAt(i))\n\t\t\t{\n\t\t\tcase '(': case '[': case '{':\n\t\t\t\tnewCaret = i;\n\t\t\t\tbreak loop;\n\t\t\t}\n\t\t}\n\n\t\tif(newCaret == -1)\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t{\n\t\t\tif(select)\n\t\t\t\textendSelection(caret,newCaret);\n\t\t\telse if(!multi)\n\t\t\t\tselectNone();\n\t\t\tmoveCaretPosition(newCaret);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [1, 9], [6, 10], [2, 11], [7, 12], [3, 13], [4, 14], [1, 15], [8, 16], [9, 17], [11, 18], [2, 19], [14, 20], [8, 21], [11, 22], [11, 23], [11, 24], [11, 25], [19, 26], [19, 27], [16, 28], [11, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 1], [10, 6], [11, 2], [12, 7], [13, 3], [14, 4], [15, 1], [16, 8], [17, 9], [18, 11], [19, 2], [20, 14], [21, 8], [22, 11], [23, 11], [24, 11], [25, 11], [26, 19], [27, 19], [28, 16], [29, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "goToPrevCharacter", "code": "\tpublic void goToPrevCharacter(boolean select)\n\t{\n\t\tif(!select && selection.size() != 0)\n\t\t{\n\t\t\tSelection s = getSelectionAtOffset(caret);\n\t\t\tif(s != null)\n\t\t\t{\n\t\t\t\tif(multi)\n\t\t\t\t{\n\t\t\t\t\tif(caret != s.start)\n\t\t\t\t\t{\n\t\t\t\t\t\tmoveCaretPosition(s.start);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsetCaretPosition(s.start);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint newCaret;\n\n\t\tif(caret == getLineStartOffset(caretLine))\n\t\t{\n\t\t\tint line = foldVisibilityManager.getPrevVisibleLine(caretLine);\n\t\t\tif(line == -1)\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnewCaret = getLineEndOffset(line) - 1;\n\t\t}\n\t\telse\n\t\t\tnewCaret = caret - 1;\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [1, 10], [2, 11], [2, 12], [2, 13], [8, 14], [4, 15], [4, 16], [9, 17], [7, 18], [11, 19], [2, 20], [12, 21], [15, 22], [17, 23], [17, 24], [19, 25], [20, 26], [12, 27], [21, 28], [13, 29], [15, 30], [22, 31], [16, 32], [26, 33], [26, 34], [12, 35], [35, 36], [30, 37], [30, 38], [30, 39], [38, 40], [38, 41], [38, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 1], [11, 2], [12, 2], [13, 2], [14, 8], [15, 4], [16, 4], [17, 9], [18, 7], [19, 11], [20, 2], [21, 12], [22, 15], [23, 17], [24, 17], [25, 19], [26, 20], [27, 12], [28, 21], [29, 13], [30, 15], [31, 22], [32, 16], [33, 26], [34, 26], [35, 12], [36, 35], [37, 30], [38, 30], [39, 30], [40, 38], [41, 38], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "goToPrevLine", "code": "\tpublic void goToPrevLine(boolean select)\n\t{\n\t\tChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(caretLine);\n\n\t\tint caretFromStartOfLine = caret - buffer.getLineStartOffset(caretLine);\n\t\tint subregion = getSubregionOfOffset(caretFromStartOfLine,\n\t\t\tlineInfos);\n\n\t\tint magic = this.magicCaret;\n\t\tif(magic == -1)\n\t\t{\n\t\t\tmagic = subregionOffsetToX(lineInfos[subregion],\n\t\t\t\tcaretFromStartOfLine);\n\t\t}\n\n\t\tint newCaret;\n\n\t\tif(subregion != 0)\n\t\t{\n\t\t\tnewCaret = buffer.getLineStartOffset(caretLine)\n\t\t\t\t+ xToSubregionOffset(lineInfos[subregion - 1],magic,\n\t\t\t\ttrue);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint prevLine = foldVisibilityManager.getPrevVisibleLine(caretLine);\n\n\t\t\tif(prevLine == -1)\n\t\t\t{\n\t\t\t\tint start = getLineStartOffset(caretLine);\n\t\t\t\tif(caret == start)\n\t\t\t\t{\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnewCaret = start;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlineInfos = chunkCache.getLineInfosForPhysicalLine(prevLine);\n\t\t\t\tnewCaret = getLineStartOffset(prevLine)\n\t\t\t\t\t+ xToSubregionOffset(lineInfos[\n\t\t\t\t\tlineInfos.length - 1],magic + 1,\n\t\t\t\t\ttrue);\n\t\t\t}\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\n\t\tthis.magicCaret = magic;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [4, 14], [1, 15], [2, 16], [2, 17], [13, 18], [14, 19], [6, 20], [7, 21], [8, 22], [12, 23], [16, 24], [2, 25], [4, 26], [21, 27], [16, 28], [16, 29], [24, 30], [17, 31], [25, 32], [26, 33], [16, 34], [16, 35], [28, 36], [32, 37], [32, 38], [34, 39], [35, 40], [28, 41], [28, 42], [29, 43], [37, 44], [39, 45], [39, 46], [28, 47], [45, 48], [45, 49], [47, 50], [37, 51], [49, 52], [51, 53], [45, 54], [54, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 4], [15, 1], [16, 2], [17, 2], [18, 13], [19, 14], [20, 6], [21, 7], [22, 8], [23, 12], [24, 16], [25, 2], [26, 4], [27, 21], [28, 16], [29, 16], [30, 24], [31, 17], [32, 25], [33, 26], [34, 16], [35, 16], [36, 28], [37, 32], [38, 32], [39, 34], [40, 35], [41, 28], [42, 28], [43, 29], [44, 37], [45, 39], [46, 39], [47, 28], [48, 45], [49, 45], [50, 47], [51, 37], [52, 49], [53, 51], [54, 45], [55, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "goToPrevMarker", "code": "\tpublic void goToPrevMarker(boolean select)\n\t{\n\t\tVector markers = buffer.getMarkers();\n\t\tif(markers.size() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tMarker marker = null;\n\t\tfor(int i = markers.size() - 1; i >= 0; i--)\n\t\t{\n\t\t\tMarker _marker = (Marker)markers.elementAt(i);\n\t\t\tif(_marker.getPosition() < caret)\n\t\t\t{\n\t\t\t\tmarker = _marker;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(marker == null)\n\t\t\tmarker = (Marker)markers.get(markers.size() - 1);\n\n\t\tif(select)\n\t\t\textendSelection(caret,marker.getPosition());\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(marker.getPosition());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [5, 12], [8, 13], [1, 14], [2, 15], [10, 16], [3, 17], [3, 18], [11, 19], [4, 20], [5, 21], [12, 22], [12, 23], [6, 24], [9, 25], [14, 26], [17, 27], [3, 28], [5, 29], [15, 30], [17, 31], [27, 32], [28, 33], [28, 34], [29, 35], [30, 36], [17, 37], [18, 38], [36, 39], [36, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 5], [13, 8], [14, 1], [15, 2], [16, 10], [17, 3], [18, 3], [19, 11], [20, 4], [21, 5], [22, 12], [23, 12], [24, 6], [25, 9], [26, 14], [27, 17], [28, 3], [29, 5], [30, 15], [31, 17], [32, 27], [33, 28], [34, 28], [35, 29], [36, 30], [37, 17], [38, 18], [39, 36], [40, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "goToPrevPage", "code": "\tpublic void goToPrevPage(boolean select)\n\t{\n\t\tif(firstLine < visibleLines)\n\t\t\tsetFirstLine(0);\n\t\telse\n\t\t\tsetFirstLine(firstLine - visibleLines);\n\n\t\tint magic = getMagicCaretPosition();\n\n\t\tint newLine = virtualToPhysical(Math.max(0,\n\t\t\tphysicalToVirtual(caretLine) - visibleLines));\n\t\tint newCaret = getLineStartOffset(newLine)\n\t\t\t+ xToOffset(newLine,magic + 1);\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\t\tsetMagicCaretPosition(magic);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [5, 10], [1, 11], [2, 12], [3, 13], [4, 14], [5, 15], [5, 16], [9, 17], [12, 18], [12, 19], [13, 20], [15, 21], [16, 22], [18, 23], [20, 24], [20, 25], [23, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 5], [11, 1], [12, 2], [13, 3], [14, 4], [15, 5], [16, 5], [17, 9], [18, 12], [19, 12], [20, 13], [21, 15], [22, 16], [23, 18], [24, 20], [25, 20], [26, 23], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "goToPrevParagraph", "code": "\tpublic void goToPrevParagraph(boolean select)\n\t{\n\t\tint lineNo = caretLine;\n\t\tint newCaret = 0;\n\n\t\tboolean foundBlank = false;\n\nloop:\t\tfor(int i = lineNo - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(!foldVisibilityManager.isLineVisible(i))\n\t\t\t\tcontinue;\n\n\t\t\tgetLineText(i,lineSegment);\n\n\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t{\n\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t{\n\t\t\t\tcase ' ':\n\t\t\t\tcase '\\t':\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif(foundBlank)\n\t\t\t\t\t{\n\t\t\t\t\t\tnewCaret = getLineEndOffset(i) - 1;\n\t\t\t\t\t\tbreak loop;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfoundBlank = true;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "CALL", "LOOP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [1, 10], [2, 11], [2, 12], [9, 13], [3, 14], [4, 15], [8, 16], [2, 17], [11, 18], [2, 19], [12, 20], [12, 21], [2, 22], [17, 23], [11, 24], [22, 25], [11, 26], [24, 27], [24, 28], [24, 29], [24, 30], [27, 31], [24, 32], [27, 33], [27, 34], [34, 35], [35, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 1], [11, 2], [12, 2], [13, 9], [14, 3], [15, 4], [16, 8], [17, 2], [18, 11], [19, 2], [20, 12], [21, 12], [22, 2], [23, 17], [24, 11], [25, 22], [26, 11], [27, 24], [28, 24], [29, 24], [30, 24], [31, 27], [32, 24], [33, 27], [34, 27], [35, 34], [36, 35], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "goToPrevWord", "code": "\tpublic void goToPrevWord(boolean select)\n\t{\n\t\tint lineStart = getLineStartOffset(caretLine);\n\t\tint newCaret = caret - lineStart;\n\t\tString lineText = getLineText(caretLine);\n\n\t\tif(newCaret == 0)\n\t\t{\n\t\t\tif(lineStart == 0)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint prevLine = foldVisibilityManager.getPrevVisibleLine(caretLine);\n\t\t\t\tif(prevLine == -1)\n\t\t\t\t{\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tnewCaret = getLineEndOffset(prevLine) - 1;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\t\t\tnewCaret = TextUtilities.findWordStart(lineText,newCaret - 1,\n\t\t\t\tnoWordSep) + lineStart;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "CALL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [1, 10], [2, 11], [2, 12], [9, 13], [3, 14], [4, 15], [5, 16], [8, 17], [2, 18], [12, 19], [18, 20], [11, 21], [12, 22], [12, 23], [12, 24], [19, 25], [20, 26], [21, 27], [12, 28], [22, 29], [12, 30], [26, 31], [28, 32], [22, 33], [29, 34], [23, 35], [30, 36], [31, 37], [32, 38], [32, 39], [22, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 1], [11, 2], [12, 2], [13, 9], [14, 3], [15, 4], [16, 5], [17, 8], [18, 2], [19, 12], [20, 18], [21, 11], [22, 12], [23, 12], [24, 12], [25, 19], [26, 20], [27, 21], [28, 12], [29, 22], [30, 12], [31, 26], [32, 28], [33, 22], [34, 29], [35, 23], [36, 30], [37, 31], [38, 32], [39, 32], [40, 22], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "smartHome", "code": "\tpublic void smartHome(boolean select)\n\t{\n\t\tif(!jEdit.getBooleanProperty(\"view.homeEnd\"))\n\t\t\tgoToStartOfLine(select);\n\t\telse\n\t\t{\n\t\t\tswitch(view.getInputHandler().getLastActionCount())\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t\tgoToStartOfWhiteSpace(select);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tgoToStartOfLine(select);\n\t\t\t\tbreak;\n\t\t\tdefault: //case 3:\n\t\t\t\tgoToFirstVisibleLine(select);\n\t\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "SWITCH", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [7, 13], [4, 14], [4, 15], [4, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 7], [14, 4], [15, 4], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "smartEnd", "code": "\tpublic void smartEnd(boolean select)\n\t{\n\t\tif(!jEdit.getBooleanProperty(\"view.homeEnd\"))\n\t\t\tgoToEndOfLine(select);\n\t\telse\n\t\t{\n\t\t\tswitch(view.getInputHandler().getLastActionCount())\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t\tgoToEndOfWhiteSpace(select);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tgoToEndOfLine(select);\n\t\t\t\tbreak;\n\t\t\tdefault: //case 3:\n\t\t\t\tgoToLastVisibleLine(select);\n\t\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "SWITCH", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 12], [7, 13], [4, 14], [4, 15], [4, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 4], [10, 4], [11, 4], [12, 4], [13, 7], [14, 4], [15, 4], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "goToStartOfLine", "code": "\tpublic void goToStartOfLine(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToStartOfLine(\" + select + \");\");\n\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tint line = (select || s == null\n\t\t\t? caretLine : s.startLine);\n\t\tint newCaret = getLineStartOffset(line);\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [5, 10], [1, 11], [2, 12], [3, 13], [4, 14], [5, 15], [10, 16], [6, 17], [9, 18], [13, 19], [15, 20], [19, 21], [20, 22], [20, 23], [21, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 5], [11, 1], [12, 2], [13, 3], [14, 4], [15, 5], [16, 10], [17, 6], [18, 9], [19, 13], [20, 15], [21, 19], [22, 20], [23, 20], [24, 21], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "goToEndOfLine", "code": "\tpublic void goToEndOfLine(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToEndOfLine(\" + select + \");\");\n\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tint line = (select || s == null\n\t\t\t? caretLine : s.endLine);\n\t\tint newCaret = getLineEndOffset(line) - 1;\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(newCaret);\n\n\t\t// so that end followed by up arrow will always put caret at\n\t\t// the end of the previous line, for example\n\t\tsetMagicCaretPosition(Integer.MAX_VALUE);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [5, 11], [1, 12], [2, 13], [3, 14], [4, 15], [5, 16], [11, 17], [6, 18], [10, 19], [13, 20], [13, 21], [14, 22], [16, 23], [22, 24], [23, 25], [23, 26], [24, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 5], [12, 1], [13, 2], [14, 3], [15, 4], [16, 5], [17, 11], [18, 6], [19, 10], [20, 13], [21, 13], [22, 14], [23, 16], [24, 22], [25, 23], [26, 23], [27, 24], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "goToStartOfWhiteSpace", "code": "\tpublic void goToStartOfWhiteSpace(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToStartOfWhiteSpace(\" + select + \");\");\n\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tint line, offset;\n\t\tif(select || s == null)\n\t\t{\n\t\t\tline = caretLine;\n\t\t\toffset = caret - buffer.getLineStartOffset(line);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tline = s.startLine;\n\t\t\toffset = s.start - buffer.getLineStartOffset(line);\n\t\t}\n\n\t\tint firstIndent;\n\n\t\tChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(line);\n\t\tint subregion = getSubregionOfOffset(offset,lineInfos);\n\t\tif(subregion == 0)\n\t\t{\n\t\t\tfirstIndent = MiscUtilities.getLeadingWhiteSpace(getLineText(line));\n\t\t\tif(firstIndent == getLineLength(line))\n\t\t\t\tfirstIndent = 0;\n\t\t\tfirstIndent += getLineStartOffset(line);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfirstIndent = getLineStartOffset(line)\n\t\t\t\t+ lineInfos[subregion].offset;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,firstIndent);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(firstIndent);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [6, 15], [9, 16], [1, 17], [2, 18], [14, 19], [3, 20], [4, 21], [15, 22], [8, 23], [9, 24], [16, 25], [10, 26], [13, 27], [2, 28], [2, 29], [18, 30], [2, 31], [6, 32], [6, 33], [6, 34], [6, 35], [22, 36], [24, 37], [28, 38], [29, 39], [18, 40], [30, 41], [31, 42], [32, 43], [34, 44], [37, 45], [37, 46], [38, 47], [40, 48], [42, 49], [43, 50], [44, 51], [46, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 6], [16, 9], [17, 1], [18, 2], [19, 14], [20, 3], [21, 4], [22, 15], [23, 8], [24, 9], [25, 16], [26, 10], [27, 13], [28, 2], [29, 2], [30, 18], [31, 2], [32, 6], [33, 6], [34, 6], [35, 6], [36, 22], [37, 24], [38, 28], [39, 29], [40, 18], [41, 30], [42, 31], [43, 32], [44, 34], [45, 37], [46, 37], [47, 38], [48, 40], [49, 42], [50, 43], [51, 44], [52, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "goToEndOfWhiteSpace", "code": "\tpublic void goToEndOfWhiteSpace(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToEndOfWhiteSpace(\" + select + \");\");\n\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tint line, offset;\n\t\tif(select || s == null)\n\t\t{\n\t\t\tline = caretLine;\n\t\t\toffset = caret - getLineStartOffset(line);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tline = s.endLine;\n\t\t\toffset = s.end - getLineStartOffset(line);\n\t\t}\n\n\t\tint lastIndent;\n\n\t\tChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(line);\n\t\tint subregion = getSubregionOfOffset(offset,lineInfos);\n\t\tif(subregion == lineInfos.length - 1)\n\t\t{\n\t\t\tlastIndent = getLineLength(line) - MiscUtilities.getTrailingWhiteSpace(getLineText(line));\n\t\t\tif(lastIndent == 0)\n\t\t\t\tlastIndent = getLineLength(line);\n\t\t\tlastIndent += getLineStartOffset(line);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlastIndent = getLineStartOffset(line)\n\t\t\t\t+ lineInfos[subregion].offset\n\t\t\t\t+ lineInfos[subregion].length - 1;\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,lastIndent);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(lastIndent);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [6, 15], [9, 16], [1, 17], [2, 18], [14, 19], [3, 20], [4, 21], [15, 22], [8, 23], [9, 24], [16, 25], [10, 26], [13, 27], [2, 28], [2, 29], [18, 30], [2, 31], [19, 32], [6, 33], [6, 34], [6, 35], [6, 36], [22, 37], [24, 38], [28, 39], [29, 40], [18, 41], [30, 42], [31, 43], [33, 44], [35, 45], [38, 46], [38, 47], [39, 48], [39, 49], [41, 50], [43, 51], [43, 52], [44, 53], [45, 54], [47, 55], [49, 56], [51, 57], [56, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 6], [16, 9], [17, 1], [18, 2], [19, 14], [20, 3], [21, 4], [22, 15], [23, 8], [24, 9], [25, 16], [26, 10], [27, 13], [28, 2], [29, 2], [30, 18], [31, 2], [32, 19], [33, 6], [34, 6], [35, 6], [36, 6], [37, 22], [38, 24], [39, 28], [40, 29], [41, 18], [42, 30], [43, 31], [44, 33], [45, 35], [46, 38], [47, 38], [48, 39], [49, 39], [50, 41], [51, 43], [52, 43], [53, 44], [54, 45], [55, 47], [56, 49], [57, 51], [58, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "goToFirstVisibleLine", "code": "\tpublic void goToFirstVisibleLine(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToFirstVisibleLine(\" + select + \");\");\n\n\t\tint firstVisibleLine = firstLine == 0 ? 0 : electricScroll;\n\t\tint firstVisible = getScreenLineStartOffset(firstVisibleLine);\n\t\tif(firstVisible == -1)\n\t\t{\n\t\t\tfirstVisible = getLineStartOffset(foldVisibilityManager\n\t\t\t\t.getFirstVisibleLine());\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,firstVisible);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(firstVisible);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [5, 11], [1, 12], [10, 13], [3, 14], [4, 15], [5, 16], [11, 17], [6, 18], [9, 19], [2, 20], [15, 21], [15, 22], [16, 23], [20, 24], [22, 25], [23, 26], [23, 27], [24, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 5], [12, 1], [13, 10], [14, 3], [15, 4], [16, 5], [17, 11], [18, 6], [19, 9], [20, 2], [21, 15], [22, 15], [23, 16], [24, 20], [25, 22], [26, 23], [27, 23], [28, 24], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "goToLastVisibleLine", "code": "\tpublic void goToLastVisibleLine(boolean select)\n\t{\n\t\t// do this here, for weird reasons\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\t\tif(recorder != null)\n\t\t\trecorder.record(\"textArea.goToLastVisibleLine(\" + select + \");\");\n\n\t\tint lastVisible;\n\n\t\tif(firstLine + visibleLines >= getVirtualLineCount())\n\t\t{\n\t\t\tlastVisible = getLineEndOffset(foldVisibilityManager\n\t\t\t\t.getLastVisibleLine()) - 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlastVisible = getScreenLineEndOffset(visibleLines\n\t\t\t\t- electricScroll - 1) - 1;\n\t\t\tif(lastVisible == -1)\n\t\t\t{\n\t\t\t\tlastVisible = getLineEndOffset(foldVisibilityManager\n\t\t\t\t\t.getLastVisibleLine()) - 1;\n\t\t\t}\n\t\t}\n\n\t\tif(select)\n\t\t\textendSelection(caret,lastVisible);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(lastVisible);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [1, 11], [2, 12], [9, 13], [9, 14], [4, 15], [10, 16], [5, 17], [8, 18], [12, 19], [2, 20], [2, 21], [15, 22], [19, 23], [20, 24], [21, 25], [22, 26], [22, 27], [12, 28], [24, 29], [24, 30], [25, 31], [25, 32], [27, 33], [28, 34], [30, 35], [32, 36], [34, 37], [34, 38], [35, 39], [35, 40], [38, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 1], [12, 2], [13, 9], [14, 9], [15, 4], [16, 10], [17, 5], [18, 8], [19, 12], [20, 2], [21, 2], [22, 15], [23, 19], [24, 20], [25, 21], [26, 22], [27, 22], [28, 12], [29, 24], [30, 24], [31, 25], [32, 25], [33, 27], [34, 28], [35, 30], [36, 32], [37, 34], [38, 34], [39, 35], [40, 35], [41, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "goToBufferStart", "code": "\tpublic void goToBufferStart(boolean select)\n\t{\n\t\tint start = buffer.getLineStartOffset(\n\t\t\tfoldVisibilityManager.getFirstVisibleLine());\n\t\tif(select)\n\t\t\textendSelection(caret,start);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(start);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "goToBufferEnd", "code": "\tpublic void goToBufferEnd(boolean select)\n\t{\n\t\tint end = buffer.getLineEndOffset(\n\t\t\tfoldVisibilityManager.getLastVisibleLine()) - 1;\n\t\tif(select)\n\t\t\textendSelection(caret,end);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(end);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [5, 8], [7, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 5], [9, 7], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "goToMatchingBracket", "code": "\tpublic void goToMatchingBracket()\n\t{\n\t\tif(getLineLength(caretLine) != 0)\n\t\t{\n\t\t\tint dot = caret - getLineStartOffset(caretLine);\n\n\t\t\tint bracket = TextUtilities.findMatchingBracket(\n\t\t\t\tbuffer,caretLine,Math.max(0,dot - 1));\n\t\t\tif(bracket != -1)\n\t\t\t{\n\t\t\t\tselectNone();\n\t\t\t\tmoveCaretPosition(bracket + 1,false);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [1, 7], [3, 8], [3, 9], [5, 10], [5, 11], [10, 12], [6, 13], [7, 14], [5, 15], [5, 16], [13, 17], [14, 18], [15, 19], [15, 20], [17, 21], [17, 22], [20, 23], [21, 24], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 1], [8, 3], [9, 3], [10, 5], [11, 5], [12, 10], [13, 6], [14, 7], [15, 5], [16, 5], [17, 13], [18, 14], [19, 15], [20, 15], [21, 17], [22, 17], [23, 20], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "showGoToLineDialog", "code": "\tpublic void showGoToLineDialog()\n\t{\n\t\tString line = GUIUtilities.input(view,\"goto-line\",null);\n\t\tif(line == null)\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\tint lineNumber = Integer.parseInt(line) - 1;\n\t\t\tsetCaretPosition(getLineStartOffset(lineNumber));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "CATCH", "VAR_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [2, 7], [1, 8], [7, 9], [3, 10], [4, 11], [8, 12], [5, 13], [10, 14], [10, 15], [11, 16], [13, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 2], [8, 1], [9, 7], [10, 3], [11, 4], [12, 8], [13, 5], [14, 10], [15, 10], [16, 11], [17, 13], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "userInput", "code": "\tpublic void userInput(char ch)\n\t{\n\t\tif(!isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(ch == ' ' && Abbrevs.getExpandOnInput()\n\t\t\t&& Abbrevs.expandAbbrev(view,false))\n\t\t\treturn;\n\t\telse if(ch == '\\t')\n\t\t{\n\t\t\tif(selection.size() == 1)\n\t\t\t{\n\t\t\t\tSelection sel = (Selection)selection.elementAt(0);\n\t\t\t\tif(sel.startLine == sel.endLine\n\t\t\t\t\t&& sel.start != buffer.getLineStartOffset(sel.startLine)\n\t\t\t\t\t&& sel.end != buffer.getLineEndOffset(sel.startLine) - 1)\n\t\t\t\t{\n\t\t\t\t\tinsertTab();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tshiftIndentRight();\n\t\t\t}\n\t\t\telse if(selection.size() != 0)\n\t\t\t\tshiftIndentRight();\n\t\t\telse if(buffer.getBooleanProperty(\"indentOnTab\"))\n\t\t\t{\n\t\t\t\t// if caret is inside leading whitespace, indent.\n\t\t\t\tString text = buffer.getLineText(caretLine);\n\t\t\t\tint start = buffer.getLineStartOffset(caretLine);\n\t\t\t\tint whiteSpace = MiscUtilities.getLeadingWhiteSpace(text);\n\n\t\t\t\tif(caret - start <= whiteSpace\n\t\t\t\t\t&& buffer.indentLine(caretLine,true,false))\n\t\t\t\t\treturn;\n\t\t\t\telse\n\t\t\t\t\tinsertTab();\n\t\t\t}\n\t\t\telse\n\t\t\t\tinsertTab();\n\t\t\treturn;\n\t\t}\n\t\telse if(ch == '\\n')\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\t\t\t\tsetSelectedText(\"\\n\");\n\t\t\t\tif(buffer.getBooleanProperty(\"indentOnEnter\"))\n\t\t\t\t\tbuffer.indentLine(caretLine,true,false);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString str = String.valueOf(ch);\n\t\t\tif(selection.size() != 0)\n\t\t\t{\n\t\t\t\tsetSelectedText(str);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(ch == ' ')\n\t\t\t{\n\t\t\t\tif(doWordWrap(true))\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t\tdoWordWrap(false);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Don't overstrike if we're on the end of\n\t\t\t\t// the line\n\t\t\t\tif(overwrite)\n\t\t\t\t{\n\t\t\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t\t\tint caretLineEnd = getLineEndOffset(caretLine);\n\t\t\t\t\tif(caretLineEnd - caret > 1)\n\t\t\t\t\t\tbuffer.remove(caret,1);\n\t\t\t\t}\n\n\t\t\t\tbuffer.insert(caret,str);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tif(overwrite)\n\t\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\n\t\t// check if the user entered a bracket\n\t\tString indentOpenBrackets = (String)buffer\n\t\t\t.getProperty(\"indentOpenBrackets\");\n\t\tString indentCloseBrackets = (String)buffer\n\t\t\t.getProperty(\"indentCloseBrackets\");\n\t\tif((indentCloseBrackets != null\n\t\t\t&& indentCloseBrackets.indexOf(ch) != -1)\n\t\t\t|| (indentOpenBrackets != null\n\t\t\t&& indentOpenBrackets.indexOf(ch) != -1))\n\t\t{\n\t\t\tbuffer.indentLine(caretLine,false,true);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "IF", "IF", "VAR_DECL", "RETURN", "TRY", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "IF", "BINARY_OP", "BINARY_OP", "IF", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [4, 8], [4, 9], [4, 10], [5, 11], [7, 12], [7, 13], [8, 14], [8, 15], [10, 16], [10, 17], [5, 18], [1, 19], [12, 20], [12, 21], [13, 22], [13, 23], [2, 24], [3, 25], [14, 26], [8, 27], [8, 28], [15, 29], [16, 30], [17, 31], [17, 32], [5, 33], [19, 34], [19, 35], [20, 36], [20, 37], [21, 38], [22, 39], [22, 40], [23, 41], [24, 42], [25, 43], [14, 44], [14, 45], [14, 46], [14, 47], [14, 48], [14, 49], [26, 50], [28, 51], [28, 52], [32, 53], [33, 54], [44, 55], [44, 56], [45, 57], [46, 58], [49, 59], [51, 60], [51, 61], [28, 62], [28, 63], [52, 64], [52, 65], [44, 66], [45, 67], [45, 68], [57, 69], [46, 70], [58, 71], [58, 72], [47, 73], [49, 74], [59, 75], [49, 76], [49, 77], [60, 78], [51, 79], [61, 80], [61, 81], [62, 82], [55, 83], [56, 84], [56, 85], [67, 86], [68, 87], [68, 88], [46, 89], [59, 90], [75, 91], [76, 92], [60, 93], [60, 94], [60, 95], [60, 96], [60, 97], [78, 98], [62, 99], [82, 100], [82, 101], [84, 102], [56, 103], [88, 104], [90, 105], [90, 106], [94, 107], [94, 108], [62, 109], [100, 110], [101, 111], [101, 112], [63, 113], [84, 114], [102, 115], [102, 116], [85, 117], [94, 118], [108, 119], [108, 120], [95, 121], [96, 122], [97, 123], [110, 124], [110, 125], [111, 126], [113, 127], [114, 128], [119, 129], [119, 130], [120, 131], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 4], [9, 4], [10, 4], [11, 5], [12, 7], [13, 7], [14, 8], [15, 8], [16, 10], [17, 10], [18, 5], [19, 1], [20, 12], [21, 12], [22, 13], [23, 13], [24, 2], [25, 3], [26, 14], [27, 8], [28, 8], [29, 15], [30, 16], [31, 17], [32, 17], [33, 5], [34, 19], [35, 19], [36, 20], [37, 20], [38, 21], [39, 22], [40, 22], [41, 23], [42, 24], [43, 25], [44, 14], [45, 14], [46, 14], [47, 14], [48, 14], [49, 14], [50, 26], [51, 28], [52, 28], [53, 32], [54, 33], [55, 44], [56, 44], [57, 45], [58, 46], [59, 49], [60, 51], [61, 51], [62, 28], [63, 28], [64, 52], [65, 52], [66, 44], [67, 45], [68, 45], [69, 57], [70, 46], [71, 58], [72, 58], [73, 47], [74, 49], [75, 59], [76, 49], [77, 49], [78, 60], [79, 51], [80, 61], [81, 61], [82, 62], [83, 55], [84, 56], [85, 56], [86, 67], [87, 68], [88, 68], [89, 46], [90, 59], [91, 75], [92, 76], [93, 60], [94, 60], [95, 60], [96, 60], [97, 60], [98, 78], [99, 62], [100, 82], [101, 82], [102, 84], [103, 56], [104, 88], [105, 90], [106, 90], [107, 94], [108, 94], [109, 62], [110, 100], [111, 101], [112, 101], [113, 63], [114, 84], [115, 102], [116, 102], [117, 85], [118, 94], [119, 108], [120, 108], [121, 95], [122, 96], [123, 97], [124, 110], [125, 110], [126, 111], [127, 113], [128, 114], [129, 119], [130, 119], [131, 120], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131]]}, {"function_name": "isOverwriteEnabled", "code": "\tpublic final boolean isOverwriteEnabled()\n\t{\n\t\treturn overwrite;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOverwriteEnabled", "code": "\tpublic final void setOverwriteEnabled(boolean overwrite)\n\t{\n\t\tblink = true;\n\t\tcaretTimer.restart();\n\n\t\tthis.overwrite = overwrite;\n\t\tinvalidateLine(caretLine);\n\t\tif(view.getStatus() != null)\n\t\t\tview.getStatus().updateMiscStatus();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [3, 10], [7, 11], [8, 12], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 3], [11, 7], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "toggleOverwriteEnabled", "code": "\tpublic final void toggleOverwriteEnabled()\n\t{\n\t\tsetOverwriteEnabled(!overwrite);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "backspace", "code": "\tpublic void backspace()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(selection.size() != 0)\n\t\t\tsetSelectedText(null);\n\t\telse\n\t\t{\n\t\t\tif(caret == 0)\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tbuffer.remove(caret - 1,1);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [3, 7], [3, 8], [2, 9], [1, 10], [5, 11], [6, 12], [2, 13], [10, 14], [10, 15], [5, 16], [11, 17], [13, 18], [15, 19], [5, 20], [20, 21], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 3], [8, 3], [9, 2], [10, 1], [11, 5], [12, 6], [13, 2], [14, 10], [15, 10], [16, 5], [17, 11], [18, 13], [19, 15], [20, 5], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "backspaceWord", "code": "\tpublic void backspaceWord()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(selection.size() != 0)\n\t\t{\n\t\t\tsetSelectedText(\"\");\n\t\t\treturn;\n\t\t}\n\n\t\tint lineStart = getLineStartOffset(caretLine);\n\t\tint _caret = caret - lineStart;\n\n\t\tString lineText = getLineText(caretLine);\n\n\t\tif(_caret == 0)\n\t\t{\n\t\t\tif(lineStart == 0)\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t_caret--;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\t\t\t_caret = TextUtilities.findWordStart(lineText,_caret-1,noWordSep);\n\t\t}\n\n\t\tbuffer.remove(_caret + lineStart,\n\t\t\tcaret - (_caret + lineStart));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [5, 9], [6, 10], [7, 11], [7, 12], [1, 13], [1, 14], [8, 15], [2, 16], [3, 17], [4, 18], [5, 19], [9, 20], [9, 21], [6, 22], [11, 23], [1, 24], [14, 25], [5, 26], [6, 27], [24, 28], [13, 29], [14, 30], [25, 31], [26, 32], [27, 33], [28, 34], [29, 35], [14, 36], [34, 37], [36, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 5], [10, 6], [11, 7], [12, 7], [13, 1], [14, 1], [15, 8], [16, 2], [17, 3], [18, 4], [19, 5], [20, 9], [21, 9], [22, 6], [23, 11], [24, 1], [25, 14], [26, 5], [27, 6], [28, 24], [29, 13], [30, 14], [31, 25], [32, 26], [33, 27], [34, 28], [35, 29], [36, 14], [37, 34], [38, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "delete", "code": "\tpublic void delete()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(selection.size() != 0)\n\t\t\tsetSelectedText(null);\n\t\telse\n\t\t{\n\t\t\tif(caret == buffer.getLength())\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tbuffer.remove(caret,1);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [3, 7], [3, 8], [2, 9], [1, 10], [5, 11], [6, 12], [2, 13], [10, 14], [5, 15], [11, 16], [13, 17], [5, 18], [18, 19], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 3], [8, 3], [9, 2], [10, 1], [11, 5], [12, 6], [13, 2], [14, 10], [15, 5], [16, 11], [17, 13], [18, 5], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "deleteToEndOfLine", "code": "\tpublic void deleteToEndOfLine()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tbuffer.remove(caret,getLineEndOffset(caretLine)\n\t\t\t- caret - 1);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [4, 6], [4, 7], [1, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 4], [7, 4], [8, 1], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "deleteLine", "code": "\tpublic void deleteLine()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint start = getLineStartOffset(caretLine);\n\t\tint end = getLineEndOffset(caretLine);\n\t\tif(end > buffer.getLength())\n\t\t{\n\t\t\tif(start != 0)\n\t\t\t\tstart--;\n\t\t\tend--;\n\t\t}\n\t\tint x = offsetToX(caretLine,caret - start);\n\t\tbuffer.remove(start,end - start);\n\n\t\tint lastLine = buffer.getLineCount() - 1;\n\t\tif(caretLine == lastLine)\n\t\t{\n\t\t\tsetCaretPosition(buffer.getLineStartOffset(lastLine)\n\t\t\t\t+ xToOffset(caretLine,x));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetCaretPosition(start + xToOffset(caretLine,x));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [4, 10], [7, 11], [2, 12], [9, 13], [3, 14], [4, 15], [10, 16], [5, 17], [6, 18], [7, 19], [1, 20], [1, 21], [12, 22], [12, 23], [14, 24], [15, 25], [7, 26], [20, 27], [21, 28], [25, 29], [26, 30], [27, 31], [28, 32], [28, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 4], [11, 7], [12, 2], [13, 9], [14, 3], [15, 4], [16, 10], [17, 5], [18, 6], [19, 7], [20, 1], [21, 1], [22, 12], [23, 12], [24, 14], [25, 15], [26, 7], [27, 20], [28, 21], [29, 25], [30, 26], [31, 27], [32, 28], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "deleteParagraph", "code": "\tpublic void deleteParagraph()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint start = 0, end = buffer.getLength();\n\nloop:\t\tfor(int i = caretLine - 1; i >= 0; i--)\n\t\t{\n\t\t\t//if(!foldVisibilityManager.isLineVisible(i))\n\t\t\t//\tcontinue loop;\n\n\t\t\tgetLineText(i,lineSegment);\n\n\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t{\n\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t{\n\t\t\t\tcase ' ':\n\t\t\t\tcase '\\t':\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstart = getLineStartOffset(i);\n\t\t\tbreak loop;\n\t\t}\n\nloop:\t\tfor(int i = caretLine + 1; i < getLineCount(); i++)\n\t\t{\n\t\t\t//if(!foldVisibilityManager.isLineVisible(i))\n\t\t\t//\tcontinue loop;\n\n\t\t\tgetLineText(i,lineSegment);\n\n\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t{\n\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t{\n\t\t\t\tcase ' ':\n\t\t\t\tcase '\\t':\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tend = getLineEndOffset(i) - 1;\n\t\t\tbreak loop;\n\t\t}\n\n\t\tbuffer.remove(start,end - start);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "LOOP", "CALL", "BREAK_CONTINUE", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "SWITCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [5, 9], [1, 10], [1, 11], [6, 12], [2, 13], [2, 14], [7, 15], [3, 16], [3, 17], [4, 18], [1, 19], [11, 20], [1, 21], [1, 22], [2, 23], [14, 24], [2, 25], [2, 26], [4, 27], [19, 28], [11, 29], [22, 30], [23, 31], [14, 32], [26, 33], [27, 34], [28, 35], [28, 36], [11, 37], [14, 38], [29, 39], [29, 40], [29, 41], [29, 42], [32, 43], [32, 44], [32, 45], [32, 46], [29, 47], [32, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 5], [10, 1], [11, 1], [12, 6], [13, 2], [14, 2], [15, 7], [16, 3], [17, 3], [18, 4], [19, 1], [20, 11], [21, 1], [22, 1], [23, 2], [24, 14], [25, 2], [26, 2], [27, 4], [28, 19], [29, 11], [30, 22], [31, 23], [32, 14], [33, 26], [34, 27], [35, 28], [36, 28], [37, 11], [38, 14], [39, 29], [40, 29], [41, 29], [42, 29], [43, 32], [44, 32], [45, 32], [46, 32], [47, 29], [48, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "deleteToStartOfLine", "code": "\tpublic void deleteToStartOfLine()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tbuffer.remove(getLineStartOffset(caretLine),\n\t\t\tcaret - getLineStartOffset(caretLine));", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [1, 6], [4, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 1], [7, 4], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "deleteWord", "code": "\tpublic void deleteWord()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(selection.size() != 0)\n\t\t{\n\t\t\tsetSelectedText(\"\");\n\t\t\treturn;\n\t\t}\n\n\t\tint lineStart = getLineStartOffset(caretLine);\n\t\tint _caret = caret - lineStart;\n\n\t\tString lineText = getLineText(caretLine);\n\n\t\tif(_caret == lineText.length())\n\t\t{\n\t\t\tif(lineStart + _caret == buffer.getLength())\n\t\t\t{\n\t\t\t\tgetToolkit().beep();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t_caret++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString noWordSep = buffer.getStringProperty(\"noWordSep\");\n\t\t\t_caret = TextUtilities.findWordEnd(lineText,\n\t\t\t\t_caret+1,noWordSep);\n\t\t}\n\n\t\tbuffer.remove(caret,(_caret + lineStart) - caret);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [5, 9], [6, 10], [7, 11], [1, 12], [1, 13], [8, 14], [2, 15], [3, 16], [4, 17], [5, 18], [9, 19], [9, 20], [6, 21], [11, 22], [1, 23], [13, 24], [5, 25], [6, 26], [23, 27], [12, 28], [13, 29], [24, 30], [24, 31], [25, 32], [26, 33], [27, 34], [28, 35], [13, 36], [34, 37], [36, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 5], [10, 6], [11, 7], [12, 1], [13, 1], [14, 8], [15, 2], [16, 3], [17, 4], [18, 5], [19, 9], [20, 9], [21, 6], [22, 11], [23, 1], [24, 13], [25, 5], [26, 6], [27, 23], [28, 12], [29, 13], [30, 24], [31, 24], [32, 25], [33, 26], [34, 27], [35, 28], [36, 13], [37, 34], [38, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "isMultipleSelectionEnabled", "code": "\tpublic final boolean isMultipleSelectionEnabled()\n\t{\n\t\treturn multi;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toggleMultipleSelectionEnabled", "code": "\tpublic final void toggleMultipleSelectionEnabled()\n\t{\n\t\tmulti = !multi;\n\t\tif(view.getStatus() != null)\n\t\t\tview.getStatus().updateMiscStatus();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setMultipleSelectionEnabled", "code": "\tpublic final void setMultipleSelectionEnabled(boolean multi)\n\t{\n\t\tJEditTextArea.multi = multi;\n\t\tEditBus.send(new MultiSelectStatusChanged(null));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "goToMarker", "code": "\tpublic void goToMarker(char shortcut, boolean select)\n\t{\n\t\tMarker marker = buffer.getMarker(shortcut);\n\t\tif(marker == null)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint pos = marker.getPosition();\n\n\t\tif(select)\n\t\t\textendSelection(caret,pos);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(pos);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [1, 10], [2, 11], [3, 12], [9, 13], [4, 14], [8, 15], [3, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 1], [11, 2], [12, 3], [13, 9], [14, 4], [15, 8], [16, 3], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "addMarker", "code": "\tpublic void addMarker()\n\t{\n\t\t// always add markers on selected lines\n\t\tSelection[] selection = getSelection();\n\t\tfor(int i = 0; i < selection.length; i++)\n\t\t{\n\t\t\tSelection s = selection[i];\n\t\t\tif(s.startLine != s.endLine)\n\t\t\t{\n\t\t\t\tif(s.startLine != caretLine)\n\t\t\t\t\tbuffer.addMarker('\\0',s.start);\n\t\t\t}\n\n\t\t\tif(s.endLine != caretLine)\n\t\t\t\tbuffer.addMarker('\\0',s.end);\n\t\t}\n\n\t\t// toggle marker on caret line\n\t\tbuffer.addOrRemoveMarker('\\0',caret);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [1, 7], [1, 8], [2, 9], [6, 10], [7, 11], [1, 12], [6, 13], [7, 14], [13, 15], [14, 16], [14, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 1], [8, 1], [9, 2], [10, 6], [11, 7], [12, 1], [13, 6], [14, 7], [15, 13], [16, 14], [17, 14], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "swapMarkerAndCaret", "code": "\tpublic void swapMarkerAndCaret(char shortcut)\n\t{\n\t\tMarker marker = buffer.getMarker(shortcut);\n\t\tif(marker == null)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint caret = getCaretPosition();\n\n\t\tsetCaretPosition(marker.getPosition());\n\t\tbuffer.addMarker(shortcut,caret);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [6, 8], [1, 9], [2, 10], [7, 11], [3, 12], [2, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 6], [9, 1], [10, 2], [11, 7], [12, 3], [13, 2], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "goToParentFold", "code": "\tpublic void goToParentFold()\n\t{\n\t\tint line = -1;\n\t\tint level = buffer.getFoldLevel(caretLine);\n\t\tfor(int i = caretLine - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(buffer.getFoldLevel(i) < level)\n\t\t\t{\n\t\t\t\tline = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(line == -1)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint magic = getMagicCaretPosition();\n\n\t\tint newCaret = buffer.getLineStartOffset(line)\n\t\t\t+ xToOffset(line,magic + 1);\n\t\tif(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\t\tsetMagicCaretPosition(magic);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [1, 12], [2, 13], [3, 14], [4, 15], [10, 16], [5, 17], [11, 18], [6, 19], [7, 20], [13, 21], [13, 22], [4, 23], [17, 24], [5, 25], [21, 26], [23, 27], [17, 28], [24, 29], [25, 30], [26, 31], [17, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 1], [13, 2], [14, 3], [15, 4], [16, 10], [17, 5], [18, 11], [19, 6], [20, 7], [21, 13], [22, 13], [23, 4], [24, 17], [25, 5], [26, 21], [27, 23], [28, 17], [29, 24], [30, 25], [31, 26], [32, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "goToNextFold", "code": "\tpublic void goToNextFold(boolean select)\n\t{\n\t\tint line = caretLine;\n\n\t\tint nextFold = -1;\n\t\tfor(int i = caretLine + 1; i < buffer.getLineCount(); i++)\n\t\t{\n\t\t\tif(buffer.isFoldStart(i)\n\t\t\t\t&& foldVisibilityManager.isLineVisible(i))\n\t\t\t{\n\t\t\t\tnextFold = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(nextFold == -1)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint magic = getMagicCaretPosition();\n\n\t\tint newCaret = buffer.getLineStartOffset(nextFold)\n\t\t\t+ xToOffset(nextFold,magic + 1);\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\t\tsetMagicCaretPosition(magic);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [4, 12], [5, 13], [1, 14], [2, 15], [3, 16], [4, 17], [12, 18], [5, 19], [13, 20], [6, 21], [11, 22], [15, 23], [15, 24], [4, 25], [19, 26], [5, 27], [23, 28], [25, 29], [19, 30], [26, 31], [26, 32], [27, 33], [28, 34], [19, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 4], [13, 5], [14, 1], [15, 2], [16, 3], [17, 4], [18, 12], [19, 5], [20, 13], [21, 6], [22, 11], [23, 15], [24, 15], [25, 4], [26, 19], [27, 5], [28, 23], [29, 25], [30, 19], [31, 26], [32, 26], [33, 27], [34, 28], [35, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "goToPrevFold", "code": "\tpublic void goToPrevFold(boolean select)\n\t{\n\t\tint line = caretLine;\n\n\t\tint prevFold = -1;\n\t\tfor(int i = caretLine - 1; i >= 0; i--)\n\t\t{\n\t\t\tif(buffer.isFoldStart(i)\n\t\t\t\t&& foldVisibilityManager.isLineVisible(i))\n\t\t\t{\n\t\t\t\tprevFold = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(prevFold == -1)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tint magic = getMagicCaretPosition();\n\n\t\tint newCaret = buffer.getLineStartOffset(prevFold)\n\t\t\t+ xToOffset(prevFold,magic + 1);\n\t\tif(select)\n\t\t\textendSelection(caret,newCaret);\n\t\telse if(!multi)\n\t\t\tselectNone();\n\n\t\tmoveCaretPosition(newCaret);\n\t\tsetMagicCaretPosition(magic);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [4, 12], [5, 13], [1, 14], [2, 15], [3, 16], [4, 17], [12, 18], [5, 19], [13, 20], [6, 21], [11, 22], [15, 23], [15, 24], [4, 25], [19, 26], [5, 27], [23, 28], [25, 29], [19, 30], [26, 31], [26, 32], [27, 33], [28, 34], [19, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 4], [13, 5], [14, 1], [15, 2], [16, 3], [17, 4], [18, 12], [19, 5], [20, 13], [21, 6], [22, 11], [23, 15], [24, 15], [25, 4], [26, 19], [27, 5], [28, 23], [29, 25], [30, 19], [31, 26], [32, 26], [33, 27], [34, 28], [35, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "collapseFold", "code": "\tpublic void collapseFold()\n\t{\n\t\tint x = offsetToX(caretLine,caret - getLineStartOffset(caretLine));\n\n\t\tfoldVisibilityManager.collapseFold(caretLine);\n\n\t\tif(foldVisibilityManager.isLineVisible(caretLine))\n\t\t\treturn;\n\n\t\tint line = foldVisibilityManager.getPrevVisibleLine(caretLine);\n\n\t\tif(!multi)\n\t\t\tselectNone();\n\t\tmoveCaretPosition(buffer.getLineStartOffset(line) + xToOffset(line,x));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [0, 8], [5, 9], [1, 10], [2, 11], [4, 12], [9, 13], [9, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 0], [9, 5], [10, 1], [11, 2], [12, 4], [13, 9], [14, 9], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "expandFold", "code": "\tpublic void expandFold(boolean fully)\n\t{\n\t\tint x = offsetToX(caretLine,caret - getLineStartOffset(caretLine));\n\n\t\tint line = foldVisibilityManager.expandFold(caretLine,fully);\n\n\t\tif(line != -1)\n\t\t{\n\t\t\tif(!multi)\n\t\t\t\tselectNone();\n\t\t\tmoveCaretPosition(getLineStartOffset(line) + xToOffset(line,x));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [1, 10], [9, 11], [10, 12], [6, 13], [11, 14], [12, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 1], [11, 9], [12, 10], [13, 6], [14, 11], [15, 12], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "selectFold", "code": "\tpublic void selectFold()\n\t{\n\t\tselectFold(caretLine);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "selectFold", "code": "\tpublic void selectFold(int line)\n\t{\n\t\tint[] lines = buffer.getFoldAtLine(line);\n\n\t\tint newCaret = getLineEndOffset(lines[1]) - 1;\n\t\tSelection s = new Selection.Range(getLineStartOffset(lines[0]),newCaret);\n\t\tif(multi)\n\t\t\taddToSelection(s);\n\t\telse\n\t\t\tsetSelection(s);\n\t\tmoveCaretPosition(newCaret);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [2, 9], [3, 10], [4, 11], [9, 12], [10, 13], [10, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 2], [10, 3], [11, 4], [12, 9], [13, 10], [14, 10], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "narrowToFold", "code": "\tpublic void narrowToFold()\n\t{\n\t\tint[] lines = buffer.getFoldAtLine(caretLine);\n\t\tif(lines[0] == 0 && lines[1] == buffer.getLineCount() - 1)\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t\tfoldVisibilityManager.narrow(lines[0],lines[1]);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [2, 8], [5, 9], [6, 10], [7, 11], [10, 12], [10, 13], [4, 14], [4, 15], [6, 16], [7, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 2], [9, 5], [10, 6], [11, 7], [12, 10], [13, 10], [14, 4], [15, 4], [16, 6], [17, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "narrowToSelection", "code": "\tpublic void narrowToSelection()\n\t{\n\t\tif(selection.size() != 1)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tSelection sel = (Selection)selection.elementAt(0);\n\t\tfoldVisibilityManager.narrow(sel.getStartLine(),sel.getEndLine());\n\n\t\tselectNone();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [4, 7], [2, 8], [5, 9], [5, 10], [1, 11], [2, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [7, 4], [8, 2], [9, 5], [10, 5], [11, 1], [12, 2], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addExplicitFold", "code": "\tpublic void addExplicitFold()\n\t{\n\t\tif(!buffer.getStringProperty(\"folding\").equals(\"explicit\"))\n\t\t{\n\t\t\tGUIUtilities.error(view,\"folding-not-explicit\",null);\n\t\t\treturn;\n\t\t}\n\n\t\t// BUG: if there are multiple selections in different\n\t\t// contexts, the wrong comment strings will be inserted.\n\t\tString lineComment = buffer.getContextSensitiveProperty(caret,\"lineComment\");\n\t\tString commentStart = buffer.getContextSensitiveProperty(caret,\"commentStart\");\n\t\tString commentEnd = buffer.getContextSensitiveProperty(caret,\"commentEnd\");\n\n\t\tString start, end;\n\t\tif(lineComment != null)\n\t\t{\n\t\t\tstart = lineComment + \"{{{ \\n\";\n\t\t\tend = lineComment + \"}}}\";\n\t\t}\n\t\telse if(commentStart != null && commentEnd != null)\n\t\t{\n\t\t\tstart = commentStart + \"{{{  \" + commentEnd + \"\\n\";\n\t\t\tend = commentStart + \"}}}\" + commentEnd;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstart = \"{{{ \\n\";\n\t\t\tend = \"}}}\";\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tif(selection.size() == 0)\n\t\t\t{\n\t\t\t\tString line = buffer.getLineText(caretLine);\n\t\t\t\tString whitespace = line.substring(0,\n\t\t\t\t\tMiscUtilities.getLeadingWhiteSpace(line));\n\t\t\t\tint loc = caret + start.length() - 1;\n\t\t\t\tstart = start + whitespace;\n\t\t\t\tbuffer.insert(caret,start);\n\t\t\t\t// stupid: caret will automatically be incremented\n\t\t\t\tbuffer.insert(caret,end);\n\t\t\t\tmoveCaretPosition(loc,false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint loc = -1;\n\n\t\t\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\t\t\tString line = buffer.getLineText(s.startLine);\n\t\t\t\t\tString whitespace = line.substring(0,\n\t\t\t\t\t\tMiscUtilities.getLeadingWhiteSpace(line));\n\t\t\t\t\tloc = s.start + start.length() - 1;\n\t\t\t\t\tbuffer.insert(s.start,start + whitespace);\n\t\t\t\t\tbuffer.insert(s.end,\" \" + end);\n\t\t\t\t}\n\n\t\t\t\tsetCaretPosition(loc,false);\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [7, 11], [1, 12], [8, 13], [1, 14], [9, 15], [10, 16], [4, 17], [5, 18], [6, 19], [7, 20], [11, 21], [11, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [13, 28], [13, 29], [15, 30], [15, 31], [2, 32], [2, 33], [17, 34], [18, 35], [19, 36], [7, 37], [22, 38], [8, 39], [23, 40], [8, 41], [8, 42], [8, 43], [8, 44], [9, 45], [9, 46], [9, 47], [9, 48], [30, 49], [31, 50], [32, 51], [33, 52], [37, 53], [37, 54], [39, 55], [23, 56], [23, 57], [23, 58], [40, 59], [24, 60], [41, 61], [44, 62], [25, 63], [26, 64], [27, 65], [45, 66], [46, 67], [47, 68], [48, 69], [51, 70], [52, 71], [23, 72], [23, 73], [23, 74], [23, 75], [63, 76], [63, 77], [64, 78], [64, 79], [68, 80], [69, 81], [69, 82], [72, 83], [73, 84], [74, 85], [56, 86], [57, 87], [77, 88], [80, 89], [82, 90], [83, 91], [85, 92], [85, 93], [86, 94], [86, 95], [58, 96], [90, 97], [93, 98], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 7], [12, 1], [13, 8], [14, 1], [15, 9], [16, 10], [17, 4], [18, 5], [19, 6], [20, 7], [21, 11], [22, 11], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 13], [29, 13], [30, 15], [31, 15], [32, 2], [33, 2], [34, 17], [35, 18], [36, 19], [37, 7], [38, 22], [39, 8], [40, 23], [41, 8], [42, 8], [43, 8], [44, 8], [45, 9], [46, 9], [47, 9], [48, 9], [49, 30], [50, 31], [51, 32], [52, 33], [53, 37], [54, 37], [55, 39], [56, 23], [57, 23], [58, 23], [59, 40], [60, 24], [61, 41], [62, 44], [63, 25], [64, 26], [65, 27], [66, 45], [67, 46], [68, 47], [69, 48], [70, 51], [71, 52], [72, 23], [73, 23], [74, 23], [75, 23], [76, 63], [77, 63], [78, 64], [79, 64], [80, 68], [81, 69], [82, 69], [83, 72], [84, 73], [85, 74], [86, 56], [87, 57], [88, 77], [89, 80], [90, 82], [91, 83], [92, 85], [93, 85], [94, 86], [95, 86], [96, 58], [97, 90], [98, 93], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98]]}, {"function_name": "lineComment", "code": "\tpublic void lineComment()\n\t{\n\t\tString comment = buffer.getContextSensitiveProperty(caret,\"lineComment\");\n\t\tif(!buffer.isEditable() || comment == null || comment.length() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tcomment = comment + ' ';\n\n\t\tbuffer.beginCompoundEdit();\n\n\t\tint[] lines = getSelectedLines();\n\n\t\ttry\n\t\t{\n\t\t\tfor(int i = 0; i < lines.length; i++)\n\t\t\t{\n\t\t\t\tString text = getLineText(lines[i]);\n\t\t\t\tbuffer.insert(getLineStartOffset(lines[i])\n\t\t\t\t\t+ MiscUtilities.getLeadingWhiteSpace(text),\n\t\t\t\t\tcomment);\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\tselectNone();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LOOP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [3, 9], [1, 10], [6, 11], [2, 12], [8, 13], [3, 14], [9, 15], [9, 16], [4, 17], [6, 18], [13, 19], [3, 20], [15, 21], [15, 22], [16, 23], [16, 24], [17, 25], [6, 26], [6, 27], [20, 28], [23, 29], [26, 30], [18, 31], [30, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 3], [10, 1], [11, 6], [12, 2], [13, 8], [14, 3], [15, 9], [16, 9], [17, 4], [18, 6], [19, 13], [20, 3], [21, 15], [22, 15], [23, 16], [24, 16], [25, 17], [26, 6], [27, 6], [28, 20], [29, 23], [30, 26], [31, 18], [32, 30], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "rangeComment", "code": "\tpublic void rangeComment()\n\t{\n\t\tString commentStart = buffer.getContextSensitiveProperty(caret,\"commentStart\");\n\t\tString commentEnd = buffer.getContextSensitiveProperty(caret,\"commentEnd\");\n\t\tif(!buffer.isEditable() || commentStart == null || commentEnd == null\n\t\t\t|| commentStart.length() == 0 || commentEnd.length() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tcommentStart = commentStart + ' ';\n\t\tcommentEnd = ' ' + commentEnd;\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tSelection[] selection = getSelection();\n\n\t\t\tif(selection.length == 0)\n\t\t\t{\n\t\t\t\tint oldCaret = caret;\n\t\t\t\tbuffer.insert(caret,\n\t\t\t\t\tcommentStart);\n\t\t\t\tbuffer.insert(caret,\n\t\t\t\t\tcommentEnd);\n\t\t\t\tsetCaretPosition(oldCaret + commentStart.length());\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\t\t\t\tif(s instanceof Selection.Range)\n\t\t\t\t{\n\t\t\t\t\tbuffer.insert(s.start,\n\t\t\t\t\t\tcommentStart);\n\t\t\t\t\tbuffer.insert(s.end,\n\t\t\t\t\t\tcommentEnd);\n\t\t\t\t}\n\t\t\t\telse if(s instanceof Selection.Rect)\n\t\t\t\t{\n\t\t\t\t\tfor(int j = s.startLine; j <= s.endLine; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tbuffer.insert(s.getStart(buffer,j),\n\t\t\t\t\t\t\tcommentStart);\n\t\t\t\t\t\tint end = s.getEnd(buffer,j)\n\t\t\t\t\t\t\t+ (j == s.endLine\n\t\t\t\t\t\t\t? 0 : commentStart.length());\n\t\t\t\t\t\tbuffer.insert(end,commentEnd);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tselectNone();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LOOP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [0, 8], [0, 9], [2, 10], [1, 11], [1, 12], [5, 13], [6, 14], [1, 15], [8, 16], [9, 17], [2, 18], [10, 19], [10, 20], [3, 21], [4, 22], [5, 23], [5, 24], [6, 25], [14, 26], [7, 27], [16, 28], [17, 29], [2, 30], [19, 31], [19, 32], [20, 33], [20, 34], [21, 35], [22, 36], [23, 37], [23, 38], [5, 39], [6, 40], [6, 41], [6, 42], [30, 43], [33, 44], [33, 45], [34, 46], [34, 47], [37, 48], [40, 49], [46, 50], [47, 51], [47, 52], [37, 53], [23, 54], [23, 55], [49, 56], [51, 57], [53, 58], [53, 59], [53, 60], [53, 61], [59, 62], [61, 63], [62, 64], [62, 65], [64, 66], [64, 67], [64, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 0], [9, 0], [10, 2], [11, 1], [12, 1], [13, 5], [14, 6], [15, 1], [16, 8], [17, 9], [18, 2], [19, 10], [20, 10], [21, 3], [22, 4], [23, 5], [24, 5], [25, 6], [26, 14], [27, 7], [28, 16], [29, 17], [30, 2], [31, 19], [32, 19], [33, 20], [34, 20], [35, 21], [36, 22], [37, 23], [38, 23], [39, 5], [40, 6], [41, 6], [42, 6], [43, 30], [44, 33], [45, 33], [46, 34], [47, 34], [48, 37], [49, 40], [50, 46], [51, 47], [52, 47], [53, 37], [54, 23], [55, 23], [56, 49], [57, 51], [58, 53], [59, 53], [60, 53], [61, 53], [62, 59], [63, 61], [64, 62], [65, 62], [66, 64], [67, 64], [68, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "formatParagraph", "code": "\tpublic void formatParagraph()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(maxLineLen <= 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tSelection[] selection = getSelection();\n\t\tif(selection.length != 0)\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\t\t\t\tsetSelectedText(s,TextUtilities.format(\n\t\t\t\t\tgetSelectedText(s),maxLineLen));\n\t\t\t}\n\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint lineNo = getCaretLine();\n\n\t\t\tint start = 0, end = buffer.getLength();\n\nloop:\t\t\tfor(int i = lineNo - 1; i >= 0; i--)\n\t\t\t{\n\t\t\t\tgetLineText(i,lineSegment);\n\n\t\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t\t{\n\t\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t\t{\n\t\t\t\t\tcase ' ':\n\t\t\t\t\tcase '\\t':\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcontinue loop;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tstart = getLineStartOffset(i);\n\t\t\t\tbreak loop;\n\t\t\t}\n\nloop:\t\t\tfor(int i = lineNo + 1; i < getLineCount(); i++)\n\t\t\t{\n\t\t\t\tgetLineText(i,lineSegment);\n\n\t\t\t\tfor(int j = 0; j < lineSegment.count; j++)\n\t\t\t\t{\n\t\t\t\t\tswitch(lineSegment.array[lineSegment.offset + j])\n\t\t\t\t\t{\n\t\t\t\t\tcase ' ':\n\t\t\t\t\tcase '\\t':\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcontinue loop;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tend = getLineEndOffset(i) - 1;\n\t\t\t\tbreak loop;\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t\tString text = buffer.getText(start,end - start);\n\t\t\t\tbuffer.remove(start,end - start);\n\t\t\t\tbuffer.insert(start,TextUtilities.format(\n\t\t\t\t\ttext,maxLineLen));\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "TRY", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "LOOP", "CALL", "BREAK_CONTINUE", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "CALL", "SWITCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [5, 14], [2, 15], [3, 16], [6, 17], [4, 18], [8, 19], [9, 20], [10, 21], [1, 22], [13, 23], [1, 24], [3, 25], [4, 26], [8, 27], [8, 28], [8, 29], [8, 30], [9, 31], [9, 32], [20, 33], [10, 34], [10, 35], [21, 36], [11, 37], [11, 38], [12, 39], [13, 40], [25, 41], [26, 42], [28, 43], [29, 44], [19, 45], [9, 46], [32, 47], [9, 48], [9, 49], [10, 50], [35, 51], [10, 52], [10, 53], [13, 54], [13, 55], [45, 56], [46, 57], [32, 58], [49, 59], [50, 60], [35, 61], [53, 62], [54, 63], [57, 64], [57, 65], [32, 66], [35, 67], [63, 68], [58, 69], [58, 70], [58, 71], [58, 72], [61, 73], [61, 74], [61, 75], [61, 76], [58, 77], [61, 78], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 5], [15, 2], [16, 3], [17, 6], [18, 4], [19, 8], [20, 9], [21, 10], [22, 1], [23, 13], [24, 1], [25, 3], [26, 4], [27, 8], [28, 8], [29, 8], [30, 8], [31, 9], [32, 9], [33, 20], [34, 10], [35, 10], [36, 21], [37, 11], [38, 11], [39, 12], [40, 13], [41, 25], [42, 26], [43, 28], [44, 29], [45, 19], [46, 9], [47, 32], [48, 9], [49, 9], [50, 10], [51, 35], [52, 10], [53, 10], [54, 13], [55, 13], [56, 45], [57, 46], [58, 32], [59, 49], [60, 50], [61, 35], [62, 53], [63, 54], [64, 57], [65, 57], [66, 32], [67, 35], [68, 63], [69, 58], [70, 58], [71, 58], [72, 58], [73, 61], [74, 61], [75, 61], [76, 61], [77, 58], [78, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78]]}, {"function_name": "spacesToTabs", "code": "\tpublic void spacesToTabs()\n\t{\n\t\tSelection[] selection = getSelection();\n\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tbuffer.beginCompoundEdit();\n\n\t\tif(selection.length == 0)\n\t\t{\n\t\t\tsetText(TextUtilities.spacesToTabs(\n\t\t\t\tgetText(), buffer.getTabSize()));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\t\t\t\tsetSelectedText(s,TextUtilities.spacesToTabs(\n\t\t\t\t\tgetSelectedText(s),buffer.getTabSize()));\n\t\t\t}\n\t\t}\n\n\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [5, 9], [2, 10], [3, 11], [8, 12], [1, 13], [2, 14], [8, 15], [13, 16], [14, 17], [8, 18], [8, 19], [16, 20], [16, 21], [18, 22], [22, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 5], [10, 2], [11, 3], [12, 8], [13, 1], [14, 2], [15, 8], [16, 13], [17, 14], [18, 8], [19, 8], [20, 16], [21, 16], [22, 18], [23, 22], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "tabsToSpaces", "code": "\tpublic void tabsToSpaces()\n\t{\n\t\tSelection[] selection = getSelection();\n\n\t\tif(!buffer.isEditable())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tbuffer.beginCompoundEdit();\n\n\t\tif(selection.length == 0)\n\t\t{\n\t\t\tsetText(TextUtilities.tabsToSpaces(\n\t\t\t\tgetText(), buffer.getTabSize()));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\t\t\t\tsetSelectedText(s,TextUtilities.tabsToSpaces(\n\t\t\t\t\tgetSelectedText(s),buffer.getTabSize()));\n\t\t\t}\n\t\t}\n\n\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [5, 9], [2, 10], [3, 11], [8, 12], [1, 13], [2, 14], [8, 15], [13, 16], [14, 17], [8, 18], [8, 19], [16, 20], [16, 21], [18, 22], [22, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 5], [10, 2], [11, 3], [12, 8], [13, 1], [14, 2], [15, 8], [16, 13], [17, 14], [18, 8], [19, 8], [20, 16], [21, 16], [22, 18], [23, 22], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "toUpperCase", "code": "\tpublic void toUpperCase()\n\t{\n\t\tSelection[] selection = getSelection();\n\n\t\tif(!buffer.isEditable() || selection.length == 0)\n                {\n                \tgetToolkit().beep();\n                \treturn;\n                }\n\n\t\tbuffer.beginCompoundEdit();\n\n\t\tfor(int i = 0; i < selection.length; i++)\n\t\t{\n\t\t\tSelection s = selection[i];\n\t\t\tsetSelectedText(s,getSelectedText(s).toUpperCase());\n\t\t}\n\n\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "VAR_DECL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [2, 9], [7, 10], [7, 11], [3, 12], [1, 13], [1, 14], [2, 15], [10, 16], [13, 17], [15, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 2], [10, 7], [11, 7], [12, 3], [13, 1], [14, 1], [15, 2], [16, 10], [17, 13], [18, 15], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "toLowerCase", "code": "\tpublic void toLowerCase()\n\t{\n\t\tSelection[] selection = getSelection();\n\n\t\tif(!buffer.isEditable() || selection.length == 0)\n                {\n                \tgetToolkit().beep();\n                \treturn;\n                }\n\n\t\tbuffer.beginCompoundEdit();\n\n\t\tfor(int i = 0; i < selection.length; i++)\n\t\t{\n\t\t\tSelection s = selection[i];\n\t\t\tsetSelectedText(s,getSelectedText(s).toLowerCase());\n\t\t}\n\n\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "VAR_DECL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [2, 9], [7, 10], [7, 11], [3, 12], [1, 13], [1, 14], [2, 15], [10, 16], [13, 17], [15, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 2], [10, 7], [11, 7], [12, 3], [13, 1], [14, 1], [15, 2], [16, 10], [17, 13], [18, 15], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "removeTrailingWhiteSpace", "code": "\tpublic void removeTrailingWhiteSpace()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t{\n\t\t\tbuffer.removeTrailingWhiteSpace(getSelectedLines());", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "indentSelectedLines", "code": "\tpublic void indentSelectedLines()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t{\n\t\t\tbuffer.indentLines(getSelectedLines());\n\t\t\tselectNone();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "shiftIndentLeft", "code": "\tpublic void shiftIndentLeft()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t{\n\t\t\tbuffer.shiftIndentLeft(getSelectedLines());", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "shiftIndentRight", "code": "\tpublic void shiftIndentRight()\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\tgetToolkit().beep();\n\t\telse\n\t\t\tbuffer.shiftIndentRight(getSelectedLines());", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "joinLines", "code": "\tpublic void joinLines()\n\t{\n\t\tint start = getLineStartOffset(caretLine);\n\t\tint end = getLineEndOffset(caretLine);\n\t\tif(end > buffer.getLength())\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\t\tbuffer.remove(end - 1,MiscUtilities.getLeadingWhiteSpace(\n\t\t\tbuffer.getLineText(caretLine + 1)) + 1);\n\n\t\tsetCaretPosition(end - 1);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [5, 8], [5, 9], [1, 10], [6, 11], [2, 12], [3, 13], [7, 14], [8, 15], [8, 16], [9, 17], [1, 18], [16, 19], [18, 20], [19, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 5], [9, 5], [10, 1], [11, 6], [12, 2], [13, 3], [14, 7], [15, 8], [16, 8], [17, 9], [18, 1], [19, 16], [20, 18], [21, 19], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "showWordCountDialog", "code": "\tpublic void showWordCountDialog()\n\t{\n\t\tString selection = getSelectedText();\n\t\tif(selection != null)\n\t\t{\n\t\t\tdoWordCount(view,selection);\n\t\t\treturn;\n\t\t}\n\n\t\tdoWordCount(view,buffer.getText(0,buffer.getLength()));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [4, 7], [2, 8], [5, 9], [5, 10], [1, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 4], [8, 2], [9, 5], [10, 5], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "addNotify", "code": "\tpublic void addNotify()\n\t{\n\t\tsuper.addNotify();\n\n\t\tToolTipManager.sharedInstance().registerComponent(painter);\n\t\tToolTipManager.sharedInstance().registerComponent(gutter);\n\n\t\tif(!bufferHandlerInstalled)\n\t\t{\n\t\t\tbufferHandlerInstalled = true;\n\t\t\tbuffer.addBufferChangeListener(bufferHandler);\n\t\t}\n\n\t\trecalculateVisibleLines();\n\t\trecalculateLastPhysicalLine();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [1, 8], [1, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [8, 1], [9, 1], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "removeNotify", "code": "\tpublic void removeNotify()\n\t{\n\t\tsuper.removeNotify();\n\n\t\tToolTipManager.sharedInstance().unregisterComponent(painter);\n\t\tToolTipManager.sharedInstance().unregisterComponent(gutter);\n\n\t\tif(focusedComponent == this)\n\t\t\tfocusedComponent = null;\n\n\t\tif(bufferHandlerInstalled)\n\t\t{\n\t\t\tbuffer.removeBufferChangeListener(bufferHandler);\n\t\t\tbufferHandlerInstalled = false;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [0, 4], [0, 5], [2, 6], [4, 7], [5, 8], [1, 9], [1, 10], [6, 11], [9, 12], [1, 0], [2, 0], [3, 2], [4, 0], [5, 0], [6, 2], [7, 4], [8, 5], [9, 1], [10, 1], [11, 6], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "hasFocus", "code": "\tpublic boolean hasFocus()\n\t{\n\t\tComponent c = this;\n\t\twhile(!(c instanceof Window))\n\t\t{\n\t\t\tif(c == null)\n\t\t\t\treturn false;\n\t\t\tc = c.getParent();\n\t\t}\n\n\t\tComponent focusOwner = ((Window)c).getFocusOwner();\n\t\tboolean hasFocus = (focusOwner == this);\n\t\tif(hasFocus && focusedComponent != this)\n\t\t\tfocusedComponent = this;\n\t\treturn hasFocus;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [5, 8], [2, 9], [7, 10], [3, 11], [5, 12], [5, 13], [12, 14], [12, 15], [13, 16], [14, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 5], [9, 2], [10, 7], [11, 3], [12, 5], [13, 5], [14, 12], [15, 12], [16, 13], [17, 14], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "grabFocus", "code": "\tpublic void grabFocus()\n\t{\n\t\tsuper.grabFocus();\n\t\t// ensure that focusedComponent is set correctly\n\t\thasFocus();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFocusTraversalKeysEnabled", "code": "\tpublic boolean getFocusTraversalKeysEnabled()\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "processKeyEvent", "code": "\tpublic void processKeyEvent(KeyEvent evt)\n\t{\n\t\tevt = KeyEventWorkaround.processKeyEvent(evt);\n\t\tif(evt == null)\n\t\t\treturn;\n\n\t\t// Ignore\n\t\tif(view.isClosed())\n\t\t\treturn;\n\n\t\tInputHandler inputHandler = view.getInputHandler();\n\t\tKeyListener keyEventInterceptor = view.getKeyEventInterceptor();\n\t\tswitch(evt.getID())\n\t\t{\n\t\tcase KeyEvent.KEY_TYPED:\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyTyped(evt);\n\t\t\telse\n\t\t\t\tinputHandler.keyTyped(evt);\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_PRESSED:\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyPressed(evt);\n\t\t\telse\n\t\t\t\tinputHandler.keyPressed(evt);\n\t\t\tbreak;\n\t\tcase KeyEvent.KEY_RELEASED:\n\t\t\tif(keyEventInterceptor != null)\n\t\t\t\tkeyEventInterceptor.keyReleased(evt);\n\t\t\telse\n\t\t\t\tinputHandler.keyReleased(evt);\n\t\t\tbreak;\n\t\t}\n\n\t\tif(!evt.isConsumed())\n\t\t\tsuper.processKeyEvent(evt);", "ast_nodes": ["FUNC_DECL", "IF", "SWITCH", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [5, 10], [5, 11], [6, 12], [6, 13], [0, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [3, 21], [4, 22], [13, 23], [14, 24], [16, 25], [18, 26], [20, 27], [16, 28], [16, 29], [25, 30], [18, 31], [18, 32], [26, 33], [20, 34], [20, 35], [27, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 5], [11, 5], [12, 6], [13, 6], [14, 0], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 3], [22, 4], [23, 13], [24, 14], [25, 16], [26, 18], [27, 20], [28, 16], [29, 16], [30, 25], [31, 18], [32, 18], [33, 26], [34, 20], [35, 20], [36, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "propertiesChanged", "code": "\tpublic void propertiesChanged()\n\t{\n\t\tif(buffer == null)\n\t\t\treturn;\n\n\t\tint _tabSize = buffer.getTabSize();\n\t\tchar[] foo = new char[_tabSize];\n\t\tfor(int i = 0; i < foo.length; i++)\n\t\t{\n\t\t\tfoo[i] = ' ';\n\t\t}\n\n\t\ttabSize = (float)painter.getFont().getStringBounds(foo,0,_tabSize,\n\t\t\tpainter.getFontRenderContext()).getWidth();\n\n\t\tcharWidth = (int)Math.round(painter.getFont().getStringBounds(foo,0,1,\n\t\t\tpainter.getFontRenderContext()).getWidth());\n\n\t\tString wrap = buffer.getStringProperty(\"wrap\");\n\t\tsoftWrap = wrap.equals(\"soft\");\n\t\thardWrap = wrap.equals(\"hard\");\n\n\t\tmaxLineLen = buffer.getIntegerProperty(\"maxLineLen\",0);\n\n\t\tif(maxLineLen <= 0)\n\t\t{\n\t\t\tif(softWrap)\n\t\t\t{\n\t\t\t\twrapToWidth = true;\n\t\t\t\twrapMargin = painter.getWidth() - charWidth * 3;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twrapToWidth = false;\n\t\t\t\twrapMargin = 0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// stupidity\n\t\t\tfoo = new char[maxLineLen];\n\t\t\tfor(int i = 0; i < foo.length; i++)\n\t\t\t{\n\t\t\t\tfoo[i] = ' ';\n\t\t\t}\n\t\t\twrapToWidth = false;\n\t\t\twrapMargin = (int)painter.getFont().getStringBounds(\n\t\t\t\tfoo,0,maxLineLen,painter.getFontRenderContext())\n\t\t\t\t.getWidth();\n\t\t}\n\n\t\tmaxHorizontalScrollWidth = 0;\n\t\tupdateScrollBars();\n\n\t\tchunkCache.invalidateAll();\n\t\tgutter.repaint();\n\t\tpainter.repaint();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [3, 18], [6, 19], [6, 20], [11, 21], [1, 22], [1, 23], [12, 24], [13, 25], [14, 26], [15, 27], [2, 28], [5, 29], [20, 30], [1, 31], [1, 32], [22, 33], [1, 34], [25, 35], [25, 36], [26, 37], [27, 38], [28, 39], [16, 40], [17, 41], [3, 42], [3, 43], [32, 44], [40, 45], [41, 46], [41, 47], [42, 48], [31, 49], [22, 50], [22, 51], [23, 52], [23, 53], [23, 54], [23, 55], [45, 56], [45, 57], [47, 58], [47, 59], [49, 60], [49, 61], [50, 62], [52, 63], [53, 64], [54, 65], [55, 66], [57, 67], [57, 68], [57, 69], [61, 70], [61, 71], [65, 72], [65, 73], [72, 74], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 3], [19, 6], [20, 6], [21, 11], [22, 1], [23, 1], [24, 12], [25, 13], [26, 14], [27, 15], [28, 2], [29, 5], [30, 20], [31, 1], [32, 1], [33, 22], [34, 1], [35, 25], [36, 25], [37, 26], [38, 27], [39, 28], [40, 16], [41, 17], [42, 3], [43, 3], [44, 32], [45, 40], [46, 41], [47, 41], [48, 42], [49, 31], [50, 22], [51, 22], [52, 23], [53, 23], [54, 23], [55, 23], [56, 45], [57, 45], [58, 47], [59, 47], [60, 49], [61, 49], [62, 50], [63, 52], [64, 53], [65, 54], [66, 55], [67, 57], [68, 57], [69, 57], [70, 61], [71, 61], [72, 65], [73, 65], [74, 72], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74]]}, {"function_name": "setOrigin", "code": "\tpublic boolean setOrigin(int firstLine, int horizontalOffset)\n\t{\n\t\tsetFirstLine(firstLine);\n\t\tsetHorizontalOffset(horizontalOffset);\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "lineToY", "code": "\tpublic int lineToY(int line)\n\t{\n\t\tFontMetrics fm = painter.getFontMetrics();\n\t\treturn (line - firstLine) * fm.getHeight()\n\t\t\t- (fm.getLeading() + fm.getDescent());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [5, 8], [5, 9], [6, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 5], [9, 5], [10, 6], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "yToLine", "code": "\tpublic int yToLine(int y)\n\t{\n\t\tFontMetrics fm = painter.getFontMetrics();\n\t\tint height = fm.getHeight();\n\t\treturn Math.max(0,Math.min(getVirtualLineCount() - 1,\n\t\t\ty / height + firstLine));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [3, 9], [6, 10], [6, 11], [10, 12], [11, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [9, 3], [10, 6], [11, 6], [12, 10], [13, 11], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "offsetToX", "code": "\tpublic int offsetToX(int line, int offset)\n\t{\n\t\tChunkCache.Chunk chunks = chunkCache.getLineInfoBackwardsCompatibility(line).chunks;\n\t\treturn (int)(horizontalOffset + chunkCache.offsetToX(chunks,offset));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "xToOffset", "code": "\tpublic int xToOffset(int line, int x)\n\t{\n\t\tx -= horizontalOffset;\n\t\tChunkCache.Chunk chunks = chunkCache.getLineInfoBackwardsCompatibility(line).chunks;\n\t\tint offset = chunkCache.xToOffset(chunks,x,true);\n\t\tif(offset == -1)\n\t\t\toffset = getLineLength(line);\n\t\treturn offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [2, 9], [7, 10], [3, 11], [4, 12], [9, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 2], [10, 7], [11, 3], [12, 4], [13, 9], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "xToOffset", "code": "\tpublic int xToOffset(int line, int x, boolean round)\n\t{\n\t\tx -= horizontalOffset;\n\t\tChunkCache.Chunk chunks = chunkCache.getLineInfoBackwardsCompatibility(line).chunks;\n\t\tint offset = chunkCache.xToOffset(chunks,x,round);\n\t\tif(offset == -1)\n\t\t\toffset = getLineLength(line);\n\t\treturn offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [2, 10], [8, 11], [3, 12], [4, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 2], [11, 8], [12, 3], [13, 4], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getSelectionStart", "code": "\tpublic final int getSelectionStart()\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getStart();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 1], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSelectionStart", "code": "\tpublic int getSelectionStart(int line)\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getStart(", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [5, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 5], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSelectionStartLine", "code": "\tpublic final int getSelectionStartLine()\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getStartLine();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 1], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setSelectionStart", "code": "\tpublic final void setSelectionStart(int selectionStart)\n\t{\n\t\tselect(selectionStart,getSelectionEnd(),true);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSelectionEnd", "code": "\tpublic final int getSelectionEnd()\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getEnd();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 1], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSelectionEnd", "code": "\tpublic int getSelectionEnd(int line)\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getEnd(", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [5, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 5], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSelectionEndLine", "code": "\tpublic final int getSelectionEndLine()\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caret;\n\n\t\treturn ((Selection)selection.elementAt(0)).getEndLine();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 1], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setSelectionEnd", "code": "\tpublic final void setSelectionEnd(int selectionEnd)\n\t{\n\t\tselect(getSelectionStart(),selectionEnd,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getMarkPosition", "code": "\tpublic final int getMarkPosition()\n\t{\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tif(s == null)\n\t\t\treturn caret;\n\n\t\tif(s.start == caret)\n\t\t\treturn s.end;\n\t\telse if(s.end == caret)\n\t\t\treturn s.start;\n\t\telse\n\t\t\treturn caret;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [4, 9], [4, 10], [4, 11], [8, 12], [3, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 4], [10, 4], [11, 4], [12, 8], [13, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getMarkLine", "code": "\tpublic final int getMarkLine()\n\t{\n\t\tif(selection.size() != 1)\n\t\t\treturn caretLine;\n\n\t\tSelection s = (Selection)selection.elementAt(0);\n\t\tif(s.start == caret)\n\t\t\treturn s.endLine;\n\t\telse if(s.end == caret)\n\t\t\treturn s.startLine;\n\t\telse\n\t\t\treturn caretLine;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [3, 7], [3, 8], [4, 9], [4, 10], [4, 11], [8, 12], [8, 13], [2, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 3], [8, 3], [9, 4], [10, 4], [11, 4], [12, 8], [13, 8], [14, 2], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "select", "code": "\tpublic void select(int start, int end)\n\t{\n\t\tselect(start,end,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "select", "code": "\tpublic void select(int start, int end, boolean doElectricScroll)\n\t{\n\t\tselectNone();\n\n\t\tint newStart, newEnd;\n\t\tif(start < end)\n\t\t{\n\t\t\tnewStart = start;\n\t\t\tnewEnd = end;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewStart = end;\n\t\t\tnewEnd = start;\n\t\t}\n\n\t\tsetSelection(new Selection.Range(newStart,newEnd));\n\t\tmoveCaretPosition(end,doElectricScroll);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [7, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 7], [11, 1], [12, 1], [13, 1], [14, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isSelectionRectangular", "code": "\tpublic boolean isSelectionRectangular()\n\t{\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\tif(s == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn (s instanceof Selection.Rect);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [2, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isCaretVisible", "code": "\tfinal boolean isCaretVisible()\n\t{\n\t\treturn blink && hasFocus();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isBracketHighlightVisible", "code": "\tfinal boolean isBracketHighlightVisible()\n\t{\n\t\treturn bracketLine != -1\n\t\t\t&& hasFocus()\n\t\t\t&& foldVisibilityManager.isLineVisible(bracketLine)\n\t\t\t&& foldVisibilityManager.isLineVisible(caretLine);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "updateMaxHorizontalScrollWidth", "code": "\tvoid updateMaxHorizontalScrollWidth()\n\t{\n\t\tint max = chunkCache.getMaxHorizontalScrollWidth();\n\n\t\tif(max != maxHorizontalScrollWidth)\n\t\t{\n\t\t\tmaxHorizontalScrollWidth = max;\n\t\t\thorizontal.setValues(Math.max(0,\n\t\t\t\tMath.min(maxHorizontalScrollWidth + charWidth\n\t\t\t\t- painter.getWidth(),\n\t\t\t\t-horizontalOffset)),\n\t\t\t\tpainter.getWidth(),\n\t\t\t\t0,maxHorizontalScrollWidth\n\t\t\t\t+ charWidth);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [5, 7], [5, 8], [5, 9], [5, 10], [10, 11], [10, 12], [11, 13], [13, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 5], [8, 5], [9, 5], [10, 5], [11, 10], [12, 10], [13, 11], [14, 13], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "recalculateVisibleLines", "code": "\tvoid recalculateVisibleLines()\n\t{\n\t\tif(painter == null)\n\t\t\treturn;\n\t\tint height = painter.getHeight();\n\t\tint lineHeight = painter.getFontMetrics().getHeight();\n\t\tvisibleLines = height / lineHeight;\n\n\t\tchunkCache.recalculateVisibleLines();\n\t\tpropertiesChanged();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [3, 8], [6, 9], [1, 10], [2, 11], [8, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 3], [9, 6], [10, 1], [11, 2], [12, 8], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "foldStructureChanged", "code": "\tvoid foldStructureChanged()\n\t{\n\t\tchunkCache.invalidateAll();\n\n\t\t// physFirstLine should not be invisible\n\t\twhile(!foldVisibilityManager.isLineVisible(physFirstLine)\n\t\t\t&& physFirstLine != 0)\n\t\t\tphysFirstLine--;\n\n\t\tsetFirstLine(physicalToVirtual(physFirstLine));\n\n\t\t// update scroll bars because the number of virtual lines might\n\t\t// have changed even if first line didn't change\n\t\tupdateScrollBars();\n\n\t\trecalculateLastPhysicalLine();\n\n\t\t// repaint gutter and painter\n\t\tgutter.repaint();\n\t\tpainter.repaint();", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [6, 9], [7, 10], [7, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 6], [10, 7], [11, 7], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSubregionOfOffset", "code": "\t/* public */ int getSubregionOfOffset(int offset, ChunkCache.LineInfo[] lineInfos)\n\t{\n\t\t//ChunkCache.LineInfo[] lineInfos = chunkCache.getLineInfosForPhysicalLine(line);\n\t\tfor(int i = 0; i < lineInfos.length; i++)\n\t\t{\n\t\t\tChunkCache.LineInfo info = lineInfos[i];\n\t\t\tif(offset >= info.offset && offset < info.offset + info.length)\n\t\t\t\treturn i;\n\t\t}\n\n\t\treturn -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [7, 9], [7, 10], [2, 11], [10, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 7], [10, 7], [11, 2], [12, 10], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "xToSubregionOffset", "code": "\t/* public */ int xToSubregionOffset(ChunkCache.LineInfo info, float x,\n\t\tboolean round)\n\t{\n\t\tint offset = chunkCache.xToOffset(info.chunks,\n\t\t\tx - horizontalOffset,round);\n\t\tif(offset == -1 || offset == info.offset + info.length)\n\t\t\toffset = info.offset + info.length - 1;\n\n\t\treturn offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [7, 10], [3, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [12, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 7], [11, 3], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "subregionOffsetToX", "code": "\t/* public */ int subregionOffsetToX(ChunkCache.LineInfo info, int offset)\n\t{\n\t\treturn (int)(horizontalOffset + chunkCache.offsetToX(\n\t\t\tinfo.chunks,offset));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "_addToSelection", "code": "\tprivate void _addToSelection(Selection addMe)\n\t{\n\t\t// this is stupid but it makes things much simpler for\n\t\t// the EditPane class\n\t\tif(addMe.start < 0)\n\t\t\taddMe.start = 0;\n\t\telse if(addMe.end > buffer.getLength())\n\t\t\taddMe.end = buffer.getLength();\n\n\t\tif(addMe.start > addMe.end)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(addMe.start\n\t\t\t\t+ \" > \" + addMe.end);\n\t\t}\n\t\telse if(addMe.start == addMe.end)\n\t\t\treturn;\n\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\t// try and merge existing selections one by\n\t\t\t// one with the new selection\n\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\tif(_selectionsOverlap(s,addMe))\n\t\t\t{\n\t\t\t\taddMe.start = Math.min(s.start,addMe.start);\n\t\t\t\taddMe.end = Math.max(s.end,addMe.end);\n\n\t\t\t\tselection.removeElement(s);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\taddMe.startLine = getLineOfOffset(addMe.start);\n\t\taddMe.endLine = getLineOfOffset(addMe.end);\n\n\t\tboolean added = false;\n\n\t\tfor(int i = 0; i < selection.size(); i++)\n\t\t{\n\t\t\tSelection s = (Selection)selection.elementAt(i);\n\t\t\tif(addMe.start < s.start)\n\t\t\t{\n\t\t\t\tselection.insertElementAt(addMe,i);\n\t\t\t\tadded = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(!added)\n\t\t\tselection.addElement(addMe);\n\n\t\tinvalidateLineRange(addMe.startLine,addMe.endLine);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "LOOP", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [0, 10], [0, 11], [4, 12], [5, 13], [5, 14], [6, 15], [6, 16], [1, 17], [2, 18], [2, 19], [9, 20], [3, 21], [10, 22], [11, 23], [4, 24], [4, 25], [12, 26], [13, 27], [13, 28], [5, 29], [15, 30], [6, 31], [16, 32], [18, 33], [2, 34], [24, 35], [4, 36], [29, 37], [15, 38], [30, 39], [31, 40], [18, 41], [37, 42], [38, 43], [18, 44], [18, 45], [19, 46], [24, 47], [24, 48], [24, 49], [25, 50], [42, 51], [44, 52], [48, 53], [49, 54], [51, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 0], [11, 0], [12, 4], [13, 5], [14, 5], [15, 6], [16, 6], [17, 1], [18, 2], [19, 2], [20, 9], [21, 3], [22, 10], [23, 11], [24, 4], [25, 4], [26, 12], [27, 13], [28, 13], [29, 5], [30, 15], [31, 6], [32, 16], [33, 18], [34, 2], [35, 24], [36, 4], [37, 29], [38, 15], [39, 30], [40, 31], [41, 18], [42, 37], [43, 38], [44, 18], [45, 18], [46, 19], [47, 24], [48, 24], [49, 24], [50, 25], [51, 42], [52, 44], [53, 48], [54, 49], [55, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "_selectionsOverlap", "code": "\tprivate boolean _selectionsOverlap(Selection s1, Selection s2)\n\t{\n\t\tif((s1.start >= s2.start && s1.start <= s2.end)\n\t\t\t|| (s1.end >= s2.start && s1.end <= s2.end))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [6, 10], [9, 11], [9, 12], [10, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 6], [11, 9], [12, 9], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getSelectedText", "code": "\tprivate void getSelectedText(Selection s, StringBuffer buf)\n\t{\n\t\tif(s instanceof Selection.Rect)\n\t\t{\n\t\t\t// Return each row of the selection on a new line\n\t\t\tint start = s.start - getLineStartOffset(s.startLine);\n\t\t\tint end = s.end - getLineStartOffset(s.endLine);\n\n\t\t\t// Certain rectangles satisfy this condition...\n\t\t\tif(end < start)\n\t\t\t{\n\t\t\t\tint tmp = end;\n\t\t\t\tend = start;\n\t\t\t\tstart = tmp;\n\t\t\t}\n\n\t\t\tfor(int i = s.startLine; i <= s.endLine; i++)\n\t\t\t{\n\t\t\t\tint lineStart = getLineStartOffset(i);\n\t\t\t\tint lineEnd = getLineEndOffset(i) - 1;\n\t\t\t\tint lineLen = lineEnd - lineStart;\n\n\t\t\t\tlineStart = Math.min(lineStart + start,lineEnd);\n\t\t\t\tlineLen = Math.min(end - start,lineEnd - lineStart);\n\n\t\t\t\tgetText(lineStart,lineLen,lineSegment);\n\t\t\t\tbuf.append(lineSegment.array,\n\t\t\t\t\tlineSegment.offset,\n\t\t\t\t\tlineSegment.count);\n\n\t\t\t\tif(i != s.endLine)\n\t\t\t\t\tbuf.append('\\n');\n\t\t\t}\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgetText(s.start,s.end - s.start,lineSegment);\n\t\t\tbuf.append(lineSegment.array,\n\t\t\t\tlineSegment.offset,\n\t\t\t\tlineSegment.count);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [6, 12], [10, 13], [5, 14], [5, 15], [5, 16], [5, 17], [6, 18], [7, 19], [8, 20], [14, 21], [5, 22], [5, 23], [5, 24], [5, 25], [6, 26], [6, 27], [19, 28], [20, 29], [14, 30], [24, 31], [25, 32], [15, 33], [16, 34], [17, 35], [30, 36], [31, 37], [31, 38], [32, 39], [34, 40], [34, 41], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 6], [13, 10], [14, 5], [15, 5], [16, 5], [17, 5], [18, 6], [19, 7], [20, 8], [21, 14], [22, 5], [23, 5], [24, 5], [25, 5], [26, 6], [27, 6], [28, 19], [29, 20], [30, 14], [31, 24], [32, 25], [33, 15], [34, 16], [35, 17], [36, 30], [37, 31], [38, 31], [39, 32], [40, 34], [41, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "finishCaretUpdate", "code": "\tprivate void finishCaretUpdate(boolean doElectricScroll,\n\t\tboolean fireCaretEvent)\n\t{\n\t\tthis.queuedScrollToElectric |= doElectricScroll;\n\t\tthis.queuedFireCaretEvent |= fireCaretEvent;\n\n\t\tRunnable r = new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tscrollToCaret(queuedScrollToElectric);\n\t\t\t\tupdateBracketHighlight();\n\t\t\t\tif(queuedFireCaretEvent)\n\t\t\t\t\tfireCaretEvent();\n\t\t\t\tqueuedScrollTo = queuedScrollToElectric\n\t\t\t\t\t= queuedFireCaretEvent = false;\n\t\t\t}\n\t\t};\n\n\t\tif(buffer.isTransactionInProgress())\n\t\t{\n\t\t\tif(!queuedScrollTo)\n\t\t\t{\n\t\t\t\tqueuedScrollTo = true;\n\t\t\t\trunnables.add(r);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tr.run();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "IF", "CALL", "FUNC_DECL", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [2, 10], [10, 11], [11, 12], [9, 13], [9, 14], [11, 15], [11, 16], [11, 17], [14, 18], [15, 19], [12, 20], [19, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 2], [11, 10], [12, 11], [13, 9], [14, 9], [15, 11], [16, 11], [17, 11], [18, 14], [19, 15], [20, 12], [21, 19], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "fireCaretEvent", "code": "\tprivate void fireCaretEvent()\n\t{\n\t\tObject[] listeners = listenerList.getListenerList();\n\t\tfor(int i = listeners.length - 2; i >= 0; i--)\n\t\t{\n\t\t\tif(listeners[i] == CaretListener.class)\n\t\t\t{\n\t\t\t\t((CaretListener)listeners[i+1]).caretUpdate(caretEvent);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [2, 6], [4, 7], [1, 8], [8, 9], [4, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 2], [7, 4], [8, 1], [9, 8], [10, 4], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "fireScrollEvent", "code": "\tprivate void fireScrollEvent(boolean vertical)\n\t{\n\t\tObject[] listeners = listenerList.getListenerList();\n\t\tfor(int i = listeners.length - 2; i >= 0; i--)\n\t\t{\n\t\t\tif(listeners[i] == ScrollListener.class)\n\t\t\t{\n\t\t\t\tif(vertical)\n\t\t\t\t\t((ScrollListener)listeners[i+1]).scrolledVertically(this);\n\t\t\t\telse\n\t\t\t\t\t((ScrollListener)listeners[i+1]).scrolledHorizontally(this);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [5, 8], [1, 9], [5, 10], [9, 11], [10, 12], [10, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 5], [9, 1], [10, 5], [11, 9], [12, 10], [13, 10], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "insertTab", "code": "\tprivate void insertTab()\n\t{\n\t\tint tabSize = buffer.getTabSize();\n\t\tif(buffer.getBooleanProperty(\"noTabs\"))\n\t\t{\n\t\t\tint lineStart = getLineStartOffset(caretLine);\n\n\t\t\tString line = getText(lineStart,caret - lineStart);\n\n\t\t\tint pos = 0;\n\n\t\t\tfor(int i = 0; i < line.length(); i++)\n\t\t\t{\n\t\t\t\tswitch(line.charAt(pos))\n\t\t\t\t{\n\t\t\t\tcase '\\t':\n\t\t\t\t\tpos = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif(++pos >= tabSize)\n\t\t\t\t\t\tpos = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsetSelectedText(MiscUtilities.createWhiteSpace(\n\t\t\t\ttabSize - pos,0));\n\t\t}\n\t\telse\n\t\t\tsetSelectedText(\"\\t\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "SWITCH", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [2, 10], [4, 11], [1, 12], [5, 13], [12, 14], [5, 15], [13, 16], [6, 17], [7, 18], [8, 19], [14, 20], [14, 21], [15, 22], [5, 23], [18, 24], [15, 25], [15, 26], [15, 27], [15, 28], [26, 29], [15, 30], [26, 31], [30, 32], [31, 33], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 2], [11, 4], [12, 1], [13, 5], [14, 12], [15, 5], [16, 13], [17, 6], [18, 7], [19, 8], [20, 14], [21, 14], [22, 15], [23, 5], [24, 18], [25, 15], [26, 15], [27, 15], [28, 15], [29, 26], [30, 15], [31, 26], [32, 30], [33, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "doWordWrap", "code": "\tprivate boolean doWordWrap(boolean spaceInserted)\n\t{\n\t\tif(!hardWrap || maxLineLen <= 0)\n\t\t\treturn false;\n\n\t\tbuffer.getLineText(caretLine,lineSegment);\n\n\t\tint start = getLineStartOffset(caretLine);\n\t\tint end = getLineEndOffset(caretLine);\n\t\tint len = end - start - 1;\n\n\t\tint caretPos = caret - start;\n\n\t\t// only wrap if we're at the end of a line, or the rest of the\n\t\t// line text is whitespace\n\t\tfor(int i = caretPos; i < len; i++)\n\t\t{\n\t\t\tchar ch = lineSegment.array[lineSegment.offset + i];\n\t\t\tif(ch != ' ' && ch != '\\t')\n\t\t\t\treturn false;\n\t\t}\n\n\t\tboolean returnValue = false;\n\n\t\tint tabSize = buffer.getTabSize();\n\n\t\tString wordBreakChars = buffer.getStringProperty(\"wordBreakChars\");\n\n\t\tint logicalLength = 0; // length with tabs expanded\n\t\tint lastWordOffset = -1;\n\t\tboolean lastWasSpace = true;\n\t\tboolean initialWhiteSpace = true;\n\t\tint initialWhiteSpaceLength = 0;\n\t\tfor(int i = 0; i < caretPos; i++)\n\t\t{\n\t\t\tchar ch = lineSegment.array[lineSegment.offset + i];\n\t\t\tif(ch == '\\t')\n\t\t\t{\n\t\t\t\tif(initialWhiteSpace)\n\t\t\t\t\tinitialWhiteSpaceLength = i + 1;\n\t\t\t\tlogicalLength += tabSize - (logicalLength % tabSize);\n\t\t\t\tif(!lastWasSpace && logicalLength <= maxLineLen)\n\t\t\t\t{\n\t\t\t\t\tlastWordOffset = i;\n\t\t\t\t\tlastWasSpace = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(ch == ' ')\n\t\t\t{\n\t\t\t\tif(initialWhiteSpace)\n\t\t\t\t\tinitialWhiteSpaceLength = i + 1;\n\t\t\t\tlogicalLength++;\n\t\t\t\tif(!lastWasSpace && logicalLength <= maxLineLen)\n\t\t\t\t{\n\t\t\t\t\tlastWordOffset = i;\n\t\t\t\t\tlastWasSpace = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(wordBreakChars != null && wordBreakChars.indexOf(ch) != -1)\n\t\t\t{\n\t\t\t\tinitialWhiteSpace = false;\n\t\t\t\tlogicalLength++;\n\t\t\t\tif(!lastWasSpace && logicalLength <= maxLineLen)\n\t\t\t\t{\n\t\t\t\t\tlastWordOffset = i;\n\t\t\t\t\tlastWasSpace = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinitialWhiteSpace = false;\n\t\t\t\tlogicalLength++;\n\t\t\t\tlastWasSpace = false;\n\t\t\t}\n\n\t\t\tint insertNewLineAt;\n\t\t\tif(spaceInserted && logicalLength == maxLineLen\n\t\t\t\t&& i == caretPos - 1)\n\t\t\t{\n\t\t\t\tinsertNewLineAt = caretPos;\n\t\t\t\treturnValue = true;\n\t\t\t}\n\t\t\telse if(logicalLength >= maxLineLen && lastWordOffset != -1)\n\t\t\t\tinsertNewLineAt = lastWordOffset;\n\t\t\telse\n\t\t\t\tcontinue;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\t\t\t\tbuffer.insert(start + insertNewLineAt,\"\\n\");\n\t\t\t\t// caretLine would have been incremented\n\t\t\t\t// since insertNewLineAt <= caretPos\n\t\t\t\tbuffer.indentLine(caretLine,true,true);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\n\t\t\t/* only ever return true if space was pressed\n\t\t\t * with logicalLength == maxLineLen */\n\t\t\treturn returnValue;\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "TRY", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [2, 19], [11, 20], [0, 21], [16, 22], [16, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [3, 30], [4, 31], [5, 32], [6, 33], [7, 34], [8, 35], [9, 36], [10, 37], [11, 38], [11, 39], [12, 40], [13, 41], [14, 42], [15, 43], [22, 44], [23, 45], [26, 46], [26, 47], [28, 48], [28, 49], [2, 50], [35, 51], [38, 52], [38, 53], [41, 54], [41, 55], [45, 56], [25, 57], [25, 58], [25, 59], [25, 60], [46, 61], [46, 62], [47, 63], [47, 64], [48, 65], [48, 66], [28, 67], [28, 68], [49, 69], [52, 70], [53, 71], [53, 72], [58, 73], [58, 74], [59, 75], [59, 76], [46, 77], [62, 78], [62, 79], [26, 80], [26, 81], [63, 82], [64, 83], [65, 84], [48, 85], [48, 86], [66, 87], [67, 88], [28, 89], [71, 90], [72, 91], [78, 92], [80, 93], [82, 94], [65, 95], [84, 96], [84, 97], [85, 98], [88, 99], [89, 100], [68, 101], [29, 102], [39, 103], [65, 104], [65, 105], [95, 106], [65, 107], [96, 108], [96, 109], [97, 110], [98, 111], [86, 112], [67, 113], [67, 114], [100, 115], [101, 116], [104, 117], [105, 118], [106, 119], [107, 120], [85, 121], [85, 122], [112, 123], [113, 124], [116, 125], [95, 126], [95, 127], [121, 128], [123, 129], [126, 130], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 2], [20, 11], [21, 0], [22, 16], [23, 16], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 3], [31, 4], [32, 5], [33, 6], [34, 7], [35, 8], [36, 9], [37, 10], [38, 11], [39, 11], [40, 12], [41, 13], [42, 14], [43, 15], [44, 22], [45, 23], [46, 26], [47, 26], [48, 28], [49, 28], [50, 2], [51, 35], [52, 38], [53, 38], [54, 41], [55, 41], [56, 45], [57, 25], [58, 25], [59, 25], [60, 25], [61, 46], [62, 46], [63, 47], [64, 47], [65, 48], [66, 48], [67, 28], [68, 28], [69, 49], [70, 52], [71, 53], [72, 53], [73, 58], [74, 58], [75, 59], [76, 59], [77, 46], [78, 62], [79, 62], [80, 26], [81, 26], [82, 63], [83, 64], [84, 65], [85, 48], [86, 48], [87, 66], [88, 67], [89, 28], [90, 71], [91, 72], [92, 78], [93, 80], [94, 82], [95, 65], [96, 84], [97, 84], [98, 85], [99, 88], [100, 89], [101, 68], [102, 29], [103, 39], [104, 65], [105, 65], [106, 95], [107, 65], [108, 96], [109, 96], [110, 97], [111, 98], [112, 86], [113, 67], [114, 67], [115, 100], [116, 101], [117, 104], [118, 105], [119, 106], [120, 107], [121, 85], [122, 85], [123, 112], [124, 113], [125, 116], [126, 95], [127, 95], [128, 121], [129, 123], [130, 126], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130]]}, {"function_name": "doWordCount", "code": "\tprivate void doWordCount(View view, String text)\n\t{\n\t\tchar[] chars = text.toCharArray();\n\t\tint characters = chars.length;\n\t\tint words;\n\t\tif(characters == 0)\n\t\t\twords = 0;\n\t\telse\n\t\t\twords = 1;\n\t\tint lines = 1;\n\t\tboolean word = false;\n\t\tfor(int i = 0; i < chars.length; i++)\n\t\t{\n\t\t\tswitch(chars[i])\n\t\t\t{\n\t\t\tcase '\\r': case '\\n':\n\t\t\t\tlines++;\n\t\t\tcase ' ': case '\\t':\n\t\t\t\tif(word)\n\t\t\t\t{\n\t\t\t\t\twords++;\n\t\t\t\t\tword = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tword = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tObject[] args = { new Integer(characters), new Integer(words),\n\t\t\tnew Integer(lines) };\n\t\tGUIUtilities.message(view,\"wordcount\",args);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [5, 13], [11, 14], [2, 15], [3, 16], [4, 17], [5, 18], [5, 19], [13, 20], [8, 21], [1, 22], [1, 23], [1, 24], [2, 25], [18, 26], [19, 27], [15, 28], [15, 29], [15, 30], [15, 31], [15, 32], [15, 33], [15, 34], [15, 35], [35, 36], [30, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 5], [14, 11], [15, 2], [16, 3], [17, 4], [18, 5], [19, 5], [20, 13], [21, 8], [22, 1], [23, 1], [24, 1], [25, 2], [26, 18], [27, 19], [28, 15], [29, 15], [30, 15], [31, 15], [32, 15], [33, 15], [34, 15], [35, 15], [36, 35], [37, 30], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "updateBracketHighlight", "code": "\tprivate void updateBracketHighlight()\n\t{\n\t\tif(!painter.isBracketHighlightEnabled())\n\t\t\treturn;\n\n\t\tif(bracketLine != -1)\n\t\t\tinvalidateLineRange(bracketLine,caretLine);\n\n\t\tint offset = caret - getLineStartOffset(caretLine);\n\n\t\tif(offset != 0)\n\t\t{\n\t\t\tint bracketOffset = TextUtilities.findMatchingBracket(\n\t\t\t\tbuffer,caretLine,offset - 1,0,buffer.getLineCount() - 1);\n\t\t\tif(bracketOffset != -1)\n\t\t\t{\n\t\t\t\tbracketLine = getLineOfOffset(bracketOffset);\n\t\t\t\tbracketPosition = bracketOffset\n\t\t\t\t\t- getLineStartOffset(bracketLine);\n\t\t\t\tinvalidateLineRange(bracketLine,caretLine);\n\n\t\t\t\tif(bracketLine < physFirstLine\n\t\t\t\t\t|| bracketLine > physLastLine)\n\t\t\t\t{\n\t\t\t\t\tshowBracketStatusMessage(bracketLine < caretLine);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tbracketLine = bracketPosition = -1;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [4, 9], [5, 10], [1, 11], [1, 12], [6, 13], [2, 14], [3, 15], [7, 16], [10, 17], [11, 18], [14, 19], [11, 20], [11, 21], [18, 22], [12, 23], [21, 24], [11, 25], [11, 26], [11, 27], [23, 28], [23, 29], [23, 30], [24, 31], [24, 32], [26, 33], [27, 34], [28, 35], [28, 36], [30, 37], [21, 38], [33, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 4], [10, 5], [11, 1], [12, 1], [13, 6], [14, 2], [15, 3], [16, 7], [17, 10], [18, 11], [19, 14], [20, 11], [21, 11], [22, 18], [23, 12], [24, 21], [25, 11], [26, 11], [27, 11], [28, 23], [29, 23], [30, 23], [31, 24], [32, 24], [33, 26], [34, 27], [35, 28], [36, 28], [37, 30], [38, 21], [39, 33], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "showBracketStatusMessage", "code": "\tprivate void showBracketStatusMessage(boolean backward)\n\t{\n\t\tString text = buffer.getLineText(bracketLine).trim();\n\t\tif(backward && bracketLine != 0 && text.length() == 1)\n\t\t{\n\t\t\tswitch(text.charAt(0))\n\t\t\t{\n\t\t\tcase '{': case '}':\n\t\t\tcase '[': case ']':\n\t\t\tcase '(': case ')':\n\t\t\t\ttext = buffer.getLineText(bracketLine - 1).trim()\n\t\t\t\t\t+ \" \" + text;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// get rid of embedded tabs not removed by trim()\n\t\ttext = text.replace('\\t',' ');\n\n\t\tview.getStatus().setMessageAndClear(jEdit.getProperty(\n\t\t\t\"view.status.bracket\",new String[] { text }));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "SWITCH", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [5, 8], [1, 9], [6, 10], [6, 11], [2, 12], [7, 13], [8, 14], [8, 15], [9, 16], [10, 17], [10, 18], [11, 19], [12, 20], [13, 21], [9, 22], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [9, 28], [16, 29], [19, 30], [9, 31], [31, 32], [32, 33], [33, 34], [33, 35], [35, 36], [35, 37], [36, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 5], [9, 1], [10, 6], [11, 6], [12, 2], [13, 7], [14, 8], [15, 8], [16, 9], [17, 10], [18, 10], [19, 11], [20, 12], [21, 13], [22, 9], [23, 9], [24, 9], [25, 9], [26, 9], [27, 9], [28, 9], [29, 16], [30, 19], [31, 9], [32, 31], [33, 32], [34, 33], [35, 33], [36, 35], [37, 35], [38, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "recalculateLastPhysicalLine", "code": "\tvoid recalculateLastPhysicalLine()\n\t{\n\t\tif(softWrap)\n\t\t{\n\t\t\tchunkCache.updateChunksUpTo(visibleLines);\n\t\t\tfor(int i = visibleLines; i >= 0; i--)\n\t\t\t{\n\t\t\t\tChunkCache.LineInfo info = chunkCache.getLineInfo(i);\n\t\t\t\tif(info.physicalLine != -1)\n\t\t\t\t{\n\t\t\t\t\tphysLastLine = info.physicalLine;\n\t\t\t\t\tscreenLastLine = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// this is faster\n\t\t\tint virtLastLine = Math.min(foldVisibilityManager\n\t\t\t\t.getVirtualLineCount() - 1,\n\t\t\t\tfirstLine + visibleLines);\n\t\t\tscreenLastLine = virtLastLine - firstLine;\n\t\t\tphysLastLine = foldVisibilityManager.virtualToPhysical(\n\t\t\t\tvirtLastLine);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 7], [4, 8], [5, 9], [2, 10], [3, 11], [3, 12], [6, 13], [10, 14], [10, 15], [11, 16], [15, 17], [15, 18], [11, 19], [16, 20], [12, 21], [11, 22], [11, 23], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 3], [7, 1], [8, 4], [9, 5], [10, 2], [11, 3], [12, 3], [13, 6], [14, 10], [15, 10], [16, 11], [17, 15], [18, 15], [19, 11], [20, 16], [21, 12], [22, 11], [23, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "JEditTextArea", "code": "\tpublic JEditTextArea(View view)\n\t{\n\t\tenableEvents(AWTEvent.FOCUS_EVENT_MASK | AWTEvent.KEY_EVENT_MASK);\n\n\t\tthis.view = view;\n\n\t\t//{{{ Initialize some misc. stuff\n\t\tselection = new Vector();\n\t\tchunkCache = new ChunkCache(this);\n\t\tpainter = new TextAreaPainter(this);\n\t\tgutter = new Gutter(view,this);\n\t\tbufferHandler = new BufferChangeHandler();\n\t\tlistenerList = new EventListenerList();\n\t\tcaretEvent = new MutableCaretEvent();\n\t\tbracketLine = bracketPosition = -1;\n\t\tblink = true;\n\t\tlineSegment = new Segment();\n\t\treturnValue = new Point();\n\t\trunnables = new ArrayList();\n\t\t//}}}\n\n\t\t//{{{ Initialize the GUI\n\t\tsetLayout(new ScrollLayout());\n\t\tadd(LEFT,gutter);\n\t\tadd(CENTER,painter);\n\t\tadd(RIGHT,vertical = new JScrollBar(JScrollBar.VERTICAL));\n\t\tadd(BOTTOM,horizontal = new JScrollBar(JScrollBar.HORIZONTAL));\n\n\t\thorizontal.setValues(0,0,0,0);\n\t\t//}}}\n\n\t\t//{{{ this ensures that the text area's look is slightly\n\t\t// more consistent with the rest of the metal l&f.\n\t\t// while it depends on not-so-well-documented portions\n\t\t// of Swing, it only affects appearance, so future\n\t\t// breakage shouldn't matter\n\t\tif(UIManager.getLookAndFeel() instanceof MetalLookAndFeel)\n\t\t{\n\t\t\tsetBorder(new TextAreaBorder());\n\t\t\tvertical.putClientProperty(\"JScrollBar.isFreeStanding\",\n\t\t\t\tBoolean.FALSE);\n\t\t\thorizontal.putClientProperty(\"JScrollBar.isFreeStanding\",\n\t\t\t\tBoolean.FALSE);\n\t\t\t//horizontal.setBorder(null);\n\t\t}\n\t\t//}}}\n\n\t\t//{{{ Add some event listeners\n\t\tvertical.addAdjustmentListener(new AdjustHandler());\n\t\thorizontal.addAdjustmentListener(new AdjustHandler());\n\n\t\tmouseHandler = new MouseHandler();\n\t\tpainter.addMouseListener(mouseHandler);\n\t\tpainter.addMouseMotionListener(mouseHandler);\n\n\t\taddFocusListener(new FocusHandler());\n\t\t//}}}\n\n\t\t// This doesn't seem very correct, but it fixes a problem\n\t\t// when setting the initial caret position for a buffer\n\t\t// (eg, from the recent file list)\n\t\tfocusedComponent = this;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [4, 31], [7, 32], [8, 33], [9, 34], [10, 35], [11, 36], [11, 37], [11, 38], [11, 39], [12, 40], [13, 41], [16, 42], [17, 43], [18, 44], [19, 45], [20, 46], [21, 47], [22, 48], [23, 49], [24, 50], [25, 51], [26, 52], [27, 53], [28, 54], [30, 55], [1, 56], [1, 57], [1, 58], [40, 59], [41, 60], [47, 61], [56, 62], [57, 63], [58, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 4], [32, 7], [33, 8], [34, 9], [35, 10], [36, 11], [37, 11], [38, 11], [39, 11], [40, 12], [41, 13], [42, 16], [43, 17], [44, 18], [45, 19], [46, 20], [47, 21], [48, 22], [49, 23], [50, 24], [51, 25], [52, 26], [53, 27], [54, 28], [55, 30], [56, 1], [57, 1], [58, 1], [59, 40], [60, 41], [61, 47], [62, 56], [63, 57], [64, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}], "label": 1}
{"sample_id": "ant-1.7-1087", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase", "code": "public class ScriptDefBase extends Task implements DynamicConfigurator {\n\n    /** Nested elements */\n    private Map nestedElementMap = new HashMap();\n\n    /** Attributes */\n    private Map attributes = new HashMap();\n\n    private String text;\n\n    /**\n     * Locate the script defining task and execute the script by passing\n     * control to it\n     */\n    public void execute() {\n        getScript().executeScript(attributes, nestedElementMap, this);\n    }\n\n    private ScriptDef getScript() {\n        String name = getTaskType();\n        Map scriptRepository\n            = (Map) getProject().getReference(MagicNames.SCRIPT_REPOSITORY);\n        if (scriptRepository == null) {\n            throw new BuildException(\"Script repository not found for \" + name);\n        }\n\n        ScriptDef definition = (ScriptDef) scriptRepository.get(getTaskType());\n        if (definition == null) {\n            throw new BuildException(\"Script definition not found for \" + name);\n        }\n        return definition;\n    }\n\n    /**\n     * Create a nested element\n     *\n     * @param name the nested element name\n     * @return the element to be configured\n     */\n    public Object createDynamicElement(String name)  {\n        List nestedElementList = (List) nestedElementMap.get(name);\n        if (nestedElementList == null) {\n            nestedElementList = new ArrayList();\n            nestedElementMap.put(name, nestedElementList);\n        }\n        Object element = getScript().createNestedElement(name);\n        nestedElementList.add(element);\n        return element;\n    }\n\n    /**\n     * Set a task attribute\n     *\n     * @param name the attribute name.\n     * @param value the attribute's string value\n     */\n    public void setDynamicAttribute(String name, String value) {\n        ScriptDef definition = getScript();\n        if (!definition.isAttributeSupported(name)) {\n                throw new BuildException(\"<\" + getTaskType()\n                    + \"> does not support the \\\"\" + name + \"\\\" attribute\");\n        }\n\n        attributes.put(name, value);\n    }\n\n    /**\n     * Set the script text.\n     *\n     * @param text a component of the script text to be added.\n     * @since ant1.7\n     */\n    public void addText(String text) {\n        this.text = getProject().replaceProperties(text);\n    }\n\n    /**\n     * get the text of this element; may be null\n     * @return text or null for no nested text\n     * @since ant1.7\n     */\n    public String getText() {\n        return text;\n    }\n\n    /**\n     * Utility method for nested scripts; throws a BuildException\n     * with the given message.\n     * @param message text to pass to the BuildException\n     * @throws BuildException always.\n     * @since ant1.7\n     */\n    public void fail(String message) {\n        throw new BuildException(message);", "functions": [{"function_name": "execute", "code": "    public void execute() {\n        getScript().executeScript(attributes, nestedElementMap, this);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getScript", "code": "    private ScriptDef getScript() {\n        String name = getTaskType();\n        Map scriptRepository\n            = (Map) getProject().getReference(MagicNames.SCRIPT_REPOSITORY);\n        if (scriptRepository == null) {\n            throw new BuildException(\"Script repository not found for \" + name);\n        }\n\n        ScriptDef definition = (ScriptDef) scriptRepository.get(getTaskType());\n        if (definition == null) {\n            throw new BuildException(\"Script definition not found for \" + name);\n        }\n        return definition;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [2, 9], [7, 10], [4, 11], [8, 12], [6, 13], [9, 14], [3, 15], [11, 16], [5, 17], [14, 18], [15, 19], [16, 20], [17, 21], [18, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 2], [10, 7], [11, 4], [12, 8], [13, 6], [14, 9], [15, 3], [16, 11], [17, 5], [18, 14], [19, 15], [20, 16], [21, 17], [22, 18], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "createDynamicElement", "code": "    public Object createDynamicElement(String name)  {\n        List nestedElementList = (List) nestedElementMap.get(name);\n        if (nestedElementList == null) {\n            nestedElementList = new ArrayList();\n            nestedElementMap.put(name, nestedElementList);\n        }\n        Object element = getScript().createNestedElement(name);\n        nestedElementList.add(element);\n        return element;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [2, 8], [7, 9], [8, 10], [3, 11], [3, 12], [4, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 2], [9, 7], [10, 8], [11, 3], [12, 3], [13, 4], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setDynamicAttribute", "code": "    public void setDynamicAttribute(String name, String value) {\n        ScriptDef definition = getScript();\n        if (!definition.isAttributeSupported(name)) {\n                throw new BuildException(\"<\" + getTaskType()\n                    + \"> does not support the \\\"\" + name + \"\\\" attribute\");\n        }\n\n        attributes.put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [7, 9], [9, 10], [10, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 7], [10, 9], [11, 10], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "addText", "code": "    public void addText(String text) {\n        this.text = getProject().replaceProperties(text);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getText", "code": "    public String getText() {\n        return text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fail", "code": "    public void fail(String message) {\n        throw new BuildException(message);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "jedit-4.2-4373", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "bsh/This.java", "language": "java", "name": "bsh.This", "code": "public class This implements java.io.Serializable, Runnable \n{\n\t/**\n\t\tThe namespace that this This reference wraps.\n\t*/\n\tNameSpace namespace;\n\n\t/**\n\t\tThis is the interpreter running when the This ref was created.\n\t\tIt's used as a default interpreter for callback through the This\n\t\twhere there is no current interpreter instance \n\t\te.g. interface proxy or event call backs from outside of bsh.\n\t*/\n\ttransient Interpreter declaringInterpreter;\n\n\t/**\n\t\tgetThis() is a factory for bsh.This type references.  The capabilities\n\t\tof \".this\" references in bsh are version dependent up until jdk1.3.\n\t\tThe version dependence was to support different default interface\n\t\timplementations.  i.e. different sets of listener interfaces which\n\t\tscripted objects were capable of implementing.  In jdk1.3 the \n\t\treflection proxy mechanism was introduced which allowed us to \n\t\timplement arbitrary interfaces.  This is fantastic.\n\n\t\tA This object is a thin layer over a namespace, comprising a bsh object\n\t\tcontext.  We create it here only if needed for the namespace.\n\n\t\tNote: this method could be considered slow because of the way it \n\t\tdynamically factories objects.  However I've also done tests where \n\t\tI hard-code the factory to return JThis and see no change in the \n\t\trough test suite time.  This references are also cached in NameSpace.  \n\t*/\n    static This getThis( \n\t\tNameSpace namespace, Interpreter declaringInterpreter ) \n\t{\n\t\ttry {\n\t\t\tClass c;\n\t\t\tif ( Capabilities.canGenerateInterfaces() )\n\t\t\t\tc = Class.forName( \"bsh.XThis\" );\n\t\t\telse if ( Capabilities.haveSwing() )\n\t\t\t\tc = Class.forName( \"bsh.JThis\" );\n\t\t\telse\n\t\t\t\treturn new This( namespace, declaringInterpreter );\n\n\t\t\treturn (This)Reflect.constructObject( c,\n\t\t\t\tnew Object [] { namespace, declaringInterpreter } );\n\n\t\t} catch ( Exception e ) {\n\t\t\tthrow new InterpreterError(\"internal error 1 in This: \"+e);\n\t\t}\n    }\n\n\t/**\n\t\tGet a version of this scripted object implementing the specified \n\t\tinterface.\n\t*/\n\t/*\n\t\tIf this type of This implements it directly return this,\n\t\telse try complain that we don't have the proxy mechanism.\n\t*/\n\tpublic Object getInterface( Class clas ) \n\t\tthrows UtilEvalError\n\t{\n\t\tif ( clas.isInstance( this ) )\n\t\t\treturn this;\n\t\telse\n\t\t\tthrow new UtilEvalError( \"Dynamic proxy mechanism not available. \"\n\t\t\t+ \"Cannot construct interface type: \"+clas );\n\t}\n\n\t/**\n\t\tGet a version of this scripted object implementing the specified\n\t\tinterfaces.\n\t*/\n\tpublic Object getInterface( Class [] ca ) \n\t\tthrows UtilEvalError\n\t{\n\t\tfor(int i=0; i<ca.length; i++)\n\t\t\tif ( !(ca[i].isInstance( this )) )\n\t\t\t\tthrow new UtilEvalError( \n\t\t\t\t\t\"Dynamic proxy mechanism not available. \" \n\t\t\t\t\t+ \"Cannot construct interface type: \"+ca[i] );\n\n\t\treturn this;\n\t}\n\n\t/*\n\t\tI wish protected access were limited to children and not also \n\t\tpackage scope... I want this to be a singleton implemented by various\n\t\tchildren.  \n\t*/\n\tprotected This( NameSpace namespace, Interpreter declaringInterpreter ) { \n\t\tthis.namespace = namespace; \n\t\tthis.declaringInterpreter = declaringInterpreter;\n\t\t//initCallStack( namespace );\n\t}\n\n\tpublic NameSpace getNameSpace() {\n\t\treturn namespace;\n\t}\n\n\tpublic String toString() {\n\t\treturn \"'this' reference to Bsh object: \" + namespace;\n\t}\n\n\tpublic void run() {\n\t\ttry {\n\t\t\tinvokeMethod( \"run\", new Object[0] );\n\t\t} catch( EvalError e ) {\n\t\t\tdeclaringInterpreter.error(\n\t\t\t\t\"Exception in runnable:\" + e );\n\t\t}\n\t}\n\n\t/**\n\t\tInvoke specified method as from outside java code, using the \n\t\tdeclaring interpreter and current namespace.\n\t\tThe call stack will indicate that the method is being invoked from\n\t\toutside of bsh in native java code.\n\t\tNote: you must still wrap/unwrap args/return values using \n\t\tPrimitive/Primitive.unwrap() for use outside of BeanShell.\n\t\t@see bsh.Primitive\n\t*/\n\tpublic Object invokeMethod( String name, Object [] args ) \n\t\tthrows EvalError\n\t{\n\t\t// null callstack, one will be created for us \n\t\treturn invokeMethod( \n\t\t\tname, args, null/*declaringInterpreter*/, null, null, \n\t\t\tfalse/*declaredOnly*/ );\n\t}\n\n\t/**\n\t\tInvoke a method in this namespace with the specified args,\n\t\tinterpreter reference, callstack, and caller info.\n\t\t<p>\n\n\t\tNote: If you use this method outside of the bsh package and wish to \n\t\tuse variables with primitive values you will have to wrap them using \n\t\tbsh.Primitive.  Consider using This getInterface() to make a true Java\n\t\tinterface for invoking your scripted methods.\n\t\t<p>\n\n\t\tThis method also implements the default object protocol of toString(), \n\t\thashCode() and equals() and the invoke() meta-method handling as a \n\t\tlast resort.\n\t\t<p>\n\n\t\tNote: The invoke() meta-method will not catch the Object protocol\n\t\tmethods (toString(), hashCode()...).  If you want to override them you \n\t\thave to script them directly.\n\t\t<p>\n\n\t\t@see bsh.This.invokeMethod( \n\t\t\tString methodName, Object [] args, Interpreter interpreter, \n\t\t\tCallStack callstack, SimpleNode callerInfo )\n\t\t@param if callStack is null a new CallStack will be created and\n\t\t\tinitialized with this namespace.\n\t\t@param declaredOnly if true then only methods declared directly in the\n\t\t\tnamespace will be visible - no inherited or imported methods will\n\t\t\tbe visible.\n\t\t@see bsh.Primitive\n\t*/\n\t/*\n\t\tinvokeMethod() here is generally used by outside code to callback\n\t\tinto the bsh interpreter. e.g. when we are acting as an interface\n\t\tfor a scripted listener, etc.  In this case there is no real call stack\n\t\tso we make a default one starting with the special JAVACODE namespace\n\t\tand our namespace as the next.\n\t*/\n\tpublic Object invokeMethod( \n\t\tString methodName, Object [] args, \n\t\tInterpreter interpreter, CallStack callstack, SimpleNode callerInfo, \n\t\tboolean declaredOnly  ) \n\t\tthrows EvalError\n\t{\n\t\t/*\n\t\t\tWrap nulls.\n\t\t\tThis is a bit of a cludge to address a deficiency in the class\n\t\t\tgenerator whereby it does not wrap nulls on method delegate.  See\n\t\t\tClass Generator.java.  If we fix that then we can remove this.\n\t\t\t(just have to generate the code there.)\n\t\t*/\n\t\tif ( args != null )\n\t\t{\n\t\t\tObject [] oa = new Object [args.length];\n\t\t\tfor(int i=0; i<args.length; i++)\n\t\t\t\toa[i] = ( args[i] == null ? Primitive.NULL : args[i] );\n\t\t\targs = oa;\n\t\t}\n\n\t\tif ( interpreter == null )\n\t\t\tinterpreter = declaringInterpreter;\n\t\tif ( callstack == null )\n\t\t\tcallstack = new CallStack( namespace );\n\t\tif ( callerInfo == null )\n\t\t\tcallerInfo = SimpleNode.JAVACODE;\n\n\t\t// Find the bsh method\n\t\tClass [] types = Types.getTypes( args );\n\t\tBshMethod bshMethod = null;\n\t\ttry {\n\t\t\tbshMethod = namespace.getMethod( methodName, types, declaredOnly );\n\t\t} catch ( UtilEvalError e ) {\n\t\t\t// leave null\n\t\t}\n\n\t\tif ( bshMethod != null )\n\t\t\treturn bshMethod.invoke( args, interpreter, callstack, callerInfo );\n\n\t\t/*\n\t\t\tNo scripted method of that name.\n\t\t\tImplement the required part of the Object protocol:\n\t\t\t\tpublic int hashCode();\n\t\t\t\tpublic boolean equals(java.lang.Object);\n\t\t\t\tpublic java.lang.String toString();\n\t\t\tif these were not handled by scripted methods we must provide\n\t\t\ta default impl.\n\t\t*/\n\t\t// a default toString() that shows the interfaces we implement\n\t\tif ( methodName.equals(\"toString\" ) )\n\t\t\treturn toString();\n\n\t\t// a default hashCode()\n\t\tif ( methodName.equals(\"hashCode\" ) )\n\t\t\treturn new Integer(this.hashCode());\n\n\t\t// a default equals() testing for equality with the This reference\n\t\tif ( methodName.equals(\"equals\" ) ) {\n\t\t\tObject obj = args[0];\n\t\t\treturn new Boolean( this == obj );\n\t\t}\n\n\t\t// Look for a default invoke() handler method in the namespace\n\t\t// Note: this code duplicates that in NameSpace getCommand()\n\t\t// is that ok?\n\t\ttry {\n\t\t\tbshMethod = namespace.getMethod( \n\t\t\t\t\"invoke\", new Class [] { null, null } );\n\t\t} catch ( UtilEvalError e ) { /*leave null*/ }\n\n\t\t// Call script \"invoke( String methodName, Object [] args );\n\t\tif ( bshMethod != null )\n\t\t\treturn bshMethod.invoke( new Object [] { methodName, args }, \n\t\t\t\tinterpreter, callstack, callerInfo );\n\n\t\tthrow new EvalError(\"Method \" + \n\t\t\tStringUtil.methodString( methodName, types ) +\n\t\t\t\" not found in bsh scripted object: \"+ namespace.getName(), \n\t\t\tcallerInfo, callstack );\n\t}\n\n\t/**\n\t\tBind a This reference to a parent's namespace with the specified\n\t\tdeclaring interpreter.  Also re-init the callstack.  It's necessary \n\t\tto bind a This reference before it can be used after deserialization.\n\t\tThis is used by the bsh load() command.\n\t\t<p>\n\n\t\tThis is a static utility method because it's used by a bsh command\n\t\tbind() and the interpreter doesn't currently allow access to direct \n\t\tmethods of This objects (small hack)\n\t*/\n\tpublic static void bind( \n\t\tThis ths, NameSpace namespace, Interpreter declaringInterpreter ) \n\t{ \n\t\tths.namespace.setParent( namespace ); \n\t\tths.declaringInterpreter = declaringInterpreter;\n\t}\n\n\t/**\n\t\tAllow invocations of these method names on This type objects.\n\t\tDon't give bsh.This a chance to override their behavior.\n\t\t<p>\n\n\t\tIf the method is passed here the invocation will actually happen on\n\t\tthe bsh.This object via the regular reflective method invocation \n\t\tmechanism.  If not, then the method is evaluated by bsh.This itself\n\t\tas a scripted method call.\n\t*/\n\tstatic boolean isExposedThisMethod( String name ) \n\t{\n\t\treturn \n\t\t\tname.equals(\"getClass\") \n\t\t\t|| name.equals(\"invokeMethod\")\n\t\t\t|| name.equals(\"getInterface\")\n\t\t\t// These are necessary to let us test synchronization from scripts\n\t\t\t|| name.equals(\"wait\") \n\t\t\t|| name.equals(\"notify\")\n\t\t\t|| name.equals(\"notifyAll\");", "functions": [{"function_name": "getThis", "code": "    static This getThis( \n\t\tNameSpace namespace, Interpreter declaringInterpreter ) \n\t{\n\t\ttry {\n\t\t\tClass c;\n\t\t\tif ( Capabilities.canGenerateInterfaces() )\n\t\t\t\tc = Class.forName( \"bsh.XThis\" );\n\t\t\telse if ( Capabilities.haveSwing() )\n\t\t\t\tc = Class.forName( \"bsh.JThis\" );\n\t\t\telse\n\t\t\t\treturn new This( namespace, declaringInterpreter );\n\n\t\t\treturn (This)Reflect.constructObject( c,\n\t\t\t\tnew Object [] { namespace, declaringInterpreter } );\n\n\t\t} catch ( Exception e ) {\n\t\t\tthrow new InterpreterError(\"internal error 1 in This: \"+e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "VAR_DECL", "THROW_RAISE", "IF", "CALL", "CALL", "CALL", "RETURN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [6, 9], [6, 10], [8, 11], [5, 12], [9, 13], [9, 14], [6, 15], [11, 16], [13, 17], [9, 18], [15, 19], [16, 20], [18, 21], [19, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 6], [10, 6], [11, 8], [12, 5], [13, 9], [14, 9], [15, 6], [16, 11], [17, 13], [18, 9], [19, 15], [20, 16], [21, 18], [22, 19], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getInterface", "code": "\tpublic Object getInterface( Class clas ) \n\t\tthrows UtilEvalError\n\t{\n\t\tif ( clas.isInstance( this ) )\n\t\t\treturn this;\n\t\telse\n\t\t\tthrow new UtilEvalError( \"Dynamic proxy mechanism not available. \"\n\t\t\t+ \"Cannot construct interface type: \"+clas );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "THROW_RAISE", "RETURN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [6, 7], [7, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 6], [8, 7], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getInterface", "code": "\tpublic Object getInterface( Class [] ca ) \n\t\tthrows UtilEvalError\n\t{\n\t\tfor(int i=0; i<ca.length; i++)\n\t\t\tif ( !(ca[i].isInstance( this )) )\n\t\t\t\tthrow new UtilEvalError( \n\t\t\t\t\t\"Dynamic proxy mechanism not available. \" \n\t\t\t\t\t+ \"Cannot construct interface type: \"+ca[i] );\n\n\t\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "IF", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [6, 7], [2, 8], [7, 9], [9, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 6], [8, 2], [9, 7], [10, 9], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getNameSpace", "code": "\tpublic NameSpace getNameSpace() {\n\t\treturn namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "\tpublic String toString() {\n\t\treturn \"'this' reference to Bsh object: \" + namespace;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "run", "code": "\tpublic void run() {\n\t\ttry {\n\t\t\tinvokeMethod( \"run\", new Object[0] );\n\t\t} catch( EvalError e ) {\n\t\t\tdeclaringInterpreter.error(\n\t\t\t\t\"Exception in runnable:\" + e );", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [4, 6], [3, 7], [6, 8], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 4], [7, 3], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "invokeMethod", "code": "\tpublic Object invokeMethod( String name, Object [] args ) \n\t\tthrows EvalError\n\t{\n\t\t// null callstack, one will be created for us \n\t\treturn invokeMethod( \n\t\t\tname, args, null/*declaringInterpreter*/, null, null, \n\t\t\tfalse/*declaredOnly*/ );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [4, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 4], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "invokeMethod", "code": "\tpublic Object invokeMethod( \n\t\tString methodName, Object [] args, \n\t\tInterpreter interpreter, CallStack callstack, SimpleNode callerInfo, \n\t\tboolean declaredOnly  ) \n\t\tthrows EvalError\n\t{\n\t\t/*\n\t\t\tWrap nulls.\n\t\t\tThis is a bit of a cludge to address a deficiency in the class\n\t\t\tgenerator whereby it does not wrap nulls on method delegate.  See\n\t\t\tClass Generator.java.  If we fix that then we can remove this.\n\t\t\t(just have to generate the code there.)\n\t\t*/\n\t\tif ( args != null )\n\t\t{\n\t\t\tObject [] oa = new Object [args.length];\n\t\t\tfor(int i=0; i<args.length; i++)\n\t\t\t\toa[i] = ( args[i] == null ? Primitive.NULL : args[i] );\n\t\t\targs = oa;\n\t\t}\n\n\t\tif ( interpreter == null )\n\t\t\tinterpreter = declaringInterpreter;\n\t\tif ( callstack == null )\n\t\t\tcallstack = new CallStack( namespace );\n\t\tif ( callerInfo == null )\n\t\t\tcallerInfo = SimpleNode.JAVACODE;\n\n\t\t// Find the bsh method\n\t\tClass [] types = Types.getTypes( args );\n\t\tBshMethod bshMethod = null;\n\t\ttry {\n\t\t\tbshMethod = namespace.getMethod( methodName, types, declaredOnly );\n\t\t} catch ( UtilEvalError e ) {\n\t\t\t// leave null\n\t\t}\n\n\t\tif ( bshMethod != null )\n\t\t\treturn bshMethod.invoke( args, interpreter, callstack, callerInfo );\n\n\t\t/*\n\t\t\tNo scripted method of that name.\n\t\t\tImplement the required part of the Object protocol:\n\t\t\t\tpublic int hashCode();\n\t\t\t\tpublic boolean equals(java.lang.Object);\n\t\t\t\tpublic java.lang.String toString();\n\t\t\tif these were not handled by scripted methods we must provide\n\t\t\ta default impl.\n\t\t*/\n\t\t// a default toString() that shows the interfaces we implement\n\t\tif ( methodName.equals(\"toString\" ) )\n\t\t\treturn toString();\n\n\t\t// a default hashCode()\n\t\tif ( methodName.equals(\"hashCode\" ) )\n\t\t\treturn new Integer(this.hashCode());\n\n\t\t// a default equals() testing for equality with the This reference\n\t\tif ( methodName.equals(\"equals\" ) ) {\n\t\t\tObject obj = args[0];\n\t\t\treturn new Boolean( this == obj );\n\t\t}\n\n\t\t// Look for a default invoke() handler method in the namespace\n\t\t// Note: this code duplicates that in NameSpace getCommand()\n\t\t// is that ok?\n\t\ttry {\n\t\t\tbshMethod = namespace.getMethod( \n\t\t\t\t\"invoke\", new Class [] { null, null } );\n\t\t} catch ( UtilEvalError e ) { /*leave null*/ }\n\n\t\t// Call script \"invoke( String methodName, Object [] args );\n\t\tif ( bshMethod != null )\n\t\t\treturn bshMethod.invoke( new Object [] { methodName, args }, \n\t\t\t\tinterpreter, callstack, callerInfo );\n\n\t\tthrow new EvalError(\"Method \" + \n\t\t\tStringUtil.methodString( methodName, types ) +\n\t\t\t\" not found in bsh scripted object: \"+ namespace.getName(), \n\t\t\tcallerInfo, callstack );", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "TRY", "IF", "IF", "IF", "IF", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "CATCH", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "CATCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [2, 22], [2, 23], [3, 24], [4, 25], [5, 26], [5, 27], [6, 28], [6, 29], [7, 30], [7, 31], [8, 32], [11, 33], [12, 34], [13, 35], [14, 36], [21, 37], [22, 38], [23, 39], [3, 40], [4, 41], [4, 42], [25, 43], [26, 44], [27, 45], [28, 46], [29, 47], [30, 48], [31, 49], [8, 50], [9, 51], [10, 52], [11, 53], [33, 54], [12, 55], [34, 56], [13, 57], [35, 58], [14, 59], [14, 60], [36, 61], [37, 62], [37, 63], [40, 64], [41, 65], [50, 66], [55, 67], [14, 68], [59, 69], [63, 70], [63, 71], [64, 72], [65, 73], [44, 74], [59, 75], [71, 76], [71, 77], [75, 78], [59, 79], [64, 80], [64, 81], [42, 82], [78, 83], [83, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 2], [23, 2], [24, 3], [25, 4], [26, 5], [27, 5], [28, 6], [29, 6], [30, 7], [31, 7], [32, 8], [33, 11], [34, 12], [35, 13], [36, 14], [37, 21], [38, 22], [39, 23], [40, 3], [41, 4], [42, 4], [43, 25], [44, 26], [45, 27], [46, 28], [47, 29], [48, 30], [49, 31], [50, 8], [51, 9], [52, 10], [53, 11], [54, 33], [55, 12], [56, 34], [57, 13], [58, 35], [59, 14], [60, 14], [61, 36], [62, 37], [63, 37], [64, 40], [65, 41], [66, 50], [67, 55], [68, 14], [69, 59], [70, 63], [71, 63], [72, 64], [73, 65], [74, 44], [75, 59], [76, 71], [77, 71], [78, 75], [79, 59], [80, 64], [81, 64], [82, 42], [83, 78], [84, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "bind", "code": "\tpublic static void bind( \n\t\tThis ths, NameSpace namespace, Interpreter declaringInterpreter ) \n\t{ \n\t\tths.namespace.setParent( namespace ); \n\t\tths.declaringInterpreter = declaringInterpreter;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isExposedThisMethod", "code": "\tstatic boolean isExposedThisMethod( String name ) \n\t{\n\t\treturn \n\t\t\tname.equals(\"getClass\") \n\t\t\t|| name.equals(\"invokeMethod\")\n\t\t\t|| name.equals(\"getInterface\")\n\t\t\t// These are necessary to let us test synchronization from scripts\n\t\t\t|| name.equals(\"wait\") \n\t\t\t|| name.equals(\"notify\")\n\t\t\t|| name.equals(\"notifyAll\");", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [7, 9], [8, 10], [8, 11], [10, 12], [11, 13], [11, 14], [13, 15], [14, 16], [14, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 7], [10, 8], [11, 8], [12, 10], [13, 11], [14, 11], [15, 13], [16, 14], [17, 14], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "This", "code": "\tprotected This( NameSpace namespace, Interpreter declaringInterpreter ) { \n\t\tthis.namespace = namespace; \n\t\tthis.declaringInterpreter = declaringInterpreter;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.3-4879", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/PanelWindowContainer.java", "language": "java", "name": "org.gjt.sp.jedit.gui.PanelWindowContainer", "code": "public class PanelWindowContainer implements DockableWindowContainer, DockingArea\n{\n\t//{{{ PanelWindowContainer constructor\n\tpublic PanelWindowContainer(DockableWindowManagerImpl wm, String position,\n\t\tint dimension)\n\t{\n\t\tthis.wm = wm;\n\t\tthis.position = position;\n\n\t\t//{{{ Button box setup\n\t\tbuttonPanel = new JPanel(new ButtonLayout());\n\t\tbuttonPanel.setBorder(new EmptyBorder(1,1,1,1));\n\n\t\tcloseBox = new JButton(GUIUtilities.loadIcon(\"closebox.gif\"));\n\t\tcloseBox.setRequestFocusEnabled(false);\n\t\tcloseBox.setToolTipText(jEdit.getProperty(\"view.docking.close-tooltip\"));\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tcloseBox.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\n\t\tcloseBox.setMargin(new Insets(0,0,0,0));\n\n\t\tcloseBox.addActionListener(new ActionHandler());\n\n\t\tmenuBtn = new JButton(GUIUtilities.loadIcon(jEdit.getProperty(\"dropdown-arrow.icon\")));\n\t\tmenuBtn.setRequestFocusEnabled(false);\n\t\tmenuBtn.setToolTipText(jEdit.getProperty(\"view.docking.menu-tooltip\"));\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tmenuBtn.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\n\t\tmenuBtn.setMargin(new Insets(0,0,0,0));\n\n\t\tmenuBtn.addMouseListener(new MenuMouseHandler());\n\n\t\tbuttonGroup = new ButtonGroup();\n\t\t// JDK 1.4 workaround\n\t\tbuttonGroup.add(nullButton = new JToggleButton());\n\t\t//}}}\n\n\t\tdockables = new ArrayList<DockableWindowManagerImpl.Entry>();\n\t\tbuttons = new ArrayList<AbstractButton>();\n\t\tdockablePanel = new DockablePanel(this);\n\n\t\tthis.dimension = dimension;\n\t} //}}}\n\n\t//{{{ getDockableWindowManager() method\n\t/**\n\t * @since jEdit 4.3pre2\n\t */\n\tpublic DockableWindowManagerImpl getDockableWindowManager()\n\t{\n\t\treturn wm;\n\t} //}}}\n\t\n\t//{{{ register() method\n\tpublic void register(DockableWindowManagerImpl.Entry entry)\n\t{\n\t\tdockables.add(entry);\n\n\t\t//{{{ Create button\n\t\tint rotation;\n\t\tif(position.equals(DockableWindowManagerImpl.TOP)\n\t\t\t|| position.equals(DockableWindowManagerImpl.BOTTOM))\n\t\t\trotation = RotatedTextIcon.NONE;\n\t\telse if(position.equals(DockableWindowManagerImpl.LEFT))\n\t\t\trotation = RotatedTextIcon.CCW;\n\t\telse if(position.equals(DockableWindowManagerImpl.RIGHT))\n\t\t\trotation = RotatedTextIcon.CW;\n\t\telse\n\t\t\tthrow new InternalError(\"Invalid position: \" + position);\n\n\t\tJToggleButton button = new JToggleButton();\n\t\tbutton.setMargin(new Insets(1,1,1,1));\n\t\tbutton.setRequestFocusEnabled(false);\n\t\tbutton.setIcon(new RotatedTextIcon(rotation,button.getFont(),\n\t\t\tentry.shortTitle()));\n\t\tbutton.setActionCommand(entry.factory.name);\n\t\tbutton.addActionListener(new ActionHandler());\n\t\tbutton.addMouseListener(new MenuMouseHandler());\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tbutton.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\t\t//}}}\n\n\t\tbuttonGroup.add(button);\n\t\tbuttons.add(button);\n\t\tentry.btn = button;\n\n\t\twm.revalidate();\n\t} //}}}\n\n\t//{{{ unregister() method\n\tpublic void unregister(DockableWindowManagerImpl.Entry entry)\n\t{\n\t\tif(entry.factory.name.equals(mostRecent))\n\t\t\tmostRecent = null;\n\n\t\tif(entry.btn != null)\n\t\t{\n\t\t\tbuttonPanel.remove(entry.btn);\n\t\t\tbuttons.remove(entry.btn);\n\t\t\tentry.btn = null;\n\t\t}\n\n\t\tdockables.remove(entry);\n\t\tif(entry.win != null)\n\t\t\tdockablePanel.remove(entry.win);\n\n\t\tif(current == entry)\n\t\t{\n\t\t\tcurrent = null;\n\t\t\tshow(current);\n\t\t}\n\t\telse\n\t\t{\n\t\t\twm.revalidate();\n\t\t\tdockablePanel.repaint();\n\t\t\tbuttonPanel.repaint();\n\t\t}\n\t} //}}}\n\n\t//{{{ remove() method\n\tpublic void remove(DockableWindowManagerImpl.Entry entry)\n\t{\n\t\tif(entry.factory.name.equals(mostRecent))\n\t\t\tmostRecent = null;\n\n\t\tif(entry.win != null)\n\t\t{\n\t\t\tdockablePanel.remove(entry.win);\n\t\t\tentry.win = null;\n\t\t}\n\n\t\tif(current == entry)\n\t\t{\n\t\t\tcurrent = null;\n\t\t\tshow(current);\n\t\t}\n\t\telse\n\t\t{\n\t\t\twm.revalidate();\n\t\t\tdockablePanel.repaint();\n\t\t}\n\t} //}}}\n\n\t//{{{ showMostRecent() method\n\tpublic void showMostRecent()\n\t{\n\t\tif(dockables.isEmpty())\n\t\t{\n\t\t\tToolkit.getDefaultToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(mostRecent == null)\n\t\t{\n\t\t\tmostRecent = dockables.get(0).factory.name;\n\t\t}\n\n\t\twm.showDockableWindow(mostRecent);\n\t} //}}}\n\n\t//{{{ show() method\n\tpublic void show(DockableWindowManagerImpl.Entry entry)\n\t{\n\t\tif(current == entry)\n\t\t{\n\t\t\tif(entry != null)\n\t\t\t{\n\t\t\t\tif(entry.win instanceof DefaultFocusComponent)\n\t\t\t\t{\n\t\t\t\t\t((DefaultFocusComponent)entry.win)\n\t\t\t\t\t\t.focusOnDefaultComponent();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif(entry != null)\n\t\t{\n\t\t\tif(current == null)\n\t\t\t{\n\t\t\t\t// we didn't have a component previously, so\n\t\t\t\t// create a border\n\t\t\t\tdockablePanel.setBorder(new DockBorder(position));\n\t\t\t}\n\n\t\t\tmostRecent = entry.factory.name;\n\t\t\tthis.current = entry;\n\n\t\t\tif(entry.win.getParent() != dockablePanel)\n\t\t\t\tdockablePanel.add(entry.factory.name,entry.win);\n\n\t\t\tdockablePanel.showDockable(entry.factory.name);\n\n\t\t\tentry.btn.setSelected(true);\n\n\t\t\tif(entry.win instanceof DefaultFocusComponent)\n\t\t\t{\n\t\t\t\t((DefaultFocusComponent)entry.win)\n\t\t\t\t\t.focusOnDefaultComponent();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (current != null)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tObject reason = DockableWindowUpdate.DEACTIVATED;\n\t\t\t\tEditBus.send(new DockableWindowUpdate(wm, reason, current.factory.name));\n\t\t\t}\n\t\t\tcurrent = null;\n\t\t\tnullButton.setSelected(true);\n\t\t\t// removing last component, so remove border\n\t\t\tdockablePanel.setBorder(null);\n\n\t\t\twm.getView().getTextArea().requestFocus();\n\t\t}\n\n\t\twm.revalidate();\n\t\tdockablePanel.repaint();\n\t} //}}}\n\n\t//{{{ isVisible() method\n\tpublic boolean isVisible(DockableWindowManagerImpl.Entry entry)\n\t{\n\t\treturn current == entry;\n\t} //}}}\n\n\t//{{{ getCurrent() method\n\t/**\n\t * Returns the name of the dockable in this container.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic String getCurrent()\n\t{\n\t\tif(current == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn current.factory.name;\n\t} //}}}\n\n\t//{{{ getDimension() method\n\t/**\n\t * Returns the width or height (depending on position) of the dockable\n\t * window container.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic int getDimension()\n\t{\n\t\treturn dimension;\n\t} //}}}\n\n\t//{{{ getPosition() method\n\t/**\n\t * @since jEdit 4.3pre2\n\t */\n\tpublic String getPosition()\n\t{\n\t\treturn position;\n\t} //}}}\n\n\t//{{{ getDockables() method\n\tpublic String[] getDockables()\n\t{\n\t\tString[] retVal = new String[dockables.size()];\n\t\tfor(int i = 0; i < dockables.size(); i++)\n\t\t{\n\t\t\tDockableWindowManagerImpl.Entry entry = dockables.get(i);\n\t\t\tretVal[i] = entry.factory.name;\n\t\t}\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ Package-private members\n\tstatic final int SPLITTER_WIDTH = 10;\n\tDockablePanel dockablePanel;\n\tJPanel buttonPanel;\n\n\t//{{{ save() method\n\tvoid save()\n\t{\n\t\tjEdit.setIntegerProperty(\"view.dock.\" + position + \".dimension\",\n\t\t\tdimension);\n\t\tif(current == null)\n\t\t\tjEdit.unsetProperty(\"view.dock.\" + position + \".last\");\n\t\telse\n\t\t{\n\t\t\tjEdit.setProperty(\"view.dock.\" + position + \".last\",\n\t\t\t\tcurrent.factory.name);\n\t\t}\n\t} //}}}\n\n\t//{{{ setDimension() method\n\tvoid setDimension(int dimension)\n\t{\n\t\tif(dimension > SPLITTER_WIDTH)\n\t\t\tthis.dimension = dimension - SPLITTER_WIDTH;\n\t} //}}}\n\n\t//{{{ sortDockables() method\n\tvoid sortDockables()\n\t{\n\t\tbuttonPanel.removeAll();\n\t\tbuttonPanel.add(closeBox);\n\t\tbuttonPanel.add(menuBtn);\n\t\tCollections.sort(buttons,new DockableWindowCompare());\n\t\tfor(int i = 0; i < buttons.size(); i++)\n\t\t{\n\t\t\tbuttonPanel.add(buttons.get(i));\n\t\t}\n\t} //}}}\n\n\t//{{{ getWrappedDimension() method\n\t/**\n\t * Returns the width or height of wrapped rows or columns.\n\t */\n\tint getWrappedDimension(int dimension)\n\t{\n\t\treturn ((ButtonLayout)buttonPanel.getLayout())\n\t\t\t.getWrappedDimension(buttonPanel,dimension);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\tprivate final DockableWindowManagerImpl wm;\n\tprivate final String position;\n\tprivate final JButton closeBox;\n\tprivate final JButton menuBtn;\n\tprivate final ButtonGroup buttonGroup;\n\tprivate final JToggleButton nullButton;\n\tprivate int dimension;\n\tprivate final List<DockableWindowManagerImpl.Entry> dockables;\n\tprivate final List<AbstractButton> buttons;\n\tprivate DockableWindowManagerImpl.Entry current;\n\tprivate JPopupMenu popup;\n\n\t// remember the most recent dockable\n\tprivate String mostRecent;\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ DockableWindowCompare class\n\tstatic class DockableWindowCompare implements Comparator<AbstractButton>\n\t{\n\t\tpublic int compare(AbstractButton o1, AbstractButton o2)\n\t\t{\n\t\t\tString name1 = o1.getActionCommand();\n\t\t\tString name2 = o2.getActionCommand();\n\t\t\treturn StandardUtilities.compareStrings(\n\t\t\t\tjEdit.getProperty(name1 + \".title\",\"\"),\n\t\t\t\tjEdit.getProperty(name2 + \".title\",\"\"),\n\t\t\t\ttrue);\n\t\t}\n\t} //}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(popup != null && popup.isVisible())\n\t\t\t\tpopup.setVisible(false);\n\n\t\t\tif(evt.getSource() == closeBox)\n\t\t\t\tshow((DockableWindowManagerImpl.Entry)null);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(wm.isDockableWindowVisible(evt.getActionCommand()))\n\t\t\t\t\tshow((DockableWindowManagerImpl.Entry)null);\n\t\t\t\telse\n\t\t\t\t\twm.showDockableWindow(evt.getActionCommand());\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ MenuMouseHandler class\n\tclass MenuMouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mousePressed(MouseEvent evt)\n\t\t{\n\t\t\tif(popup != null && popup.isVisible())\n\t\t\t{\n\t\t\t\tpopup.setVisible(false);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tComponent comp = (Component)evt.getSource();\n\t\t\tString dockable;\n\t\t\tif(comp instanceof JToggleButton)\n\t\t\t\tdockable = ((JToggleButton)comp).getActionCommand();\n\t\t\telse\n\t\t\t\tdockable = getCurrent();\n\n\t\t\tif(comp == menuBtn || GUIUtilities.isPopupTrigger(evt))\n\t\t\t{\n\t\t\t\tif(dockable == null)\n\t\t\t\t{\n\t\t\t\t\tpopup = wm.createPopupMenu(PanelWindowContainer.this,null,false);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpopup = wm.createPopupMenu(PanelWindowContainer.this,dockable,false);\n\t\t\t\t}\n\n\t\t\t\tint x, y;\n\t\t\t\tboolean point;\n\t\t\t\tif(comp == menuBtn)\n\t\t\t\t{\n\t\t\t\t\tx = 0;\n\t\t\t\t\ty = menuBtn.getHeight();\n\t\t\t\t\tpoint = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tx = evt.getX();\n\t\t\t\t\ty = evt.getY();\n\t\t\t\t\tpoint = true;\n\t\t\t\t}\n\t\t\t\tGUIUtilities.showPopupMenu(popup,\n\t\t\t\t\tcomp,x,y,point);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ DockBorder class\n\tstatic class DockBorder implements Border\n\t{\n\t\tString position;\n\t\tInsets insets;\n\t\tColor color1;\n\t\tColor color2;\n\t\tColor color3;\n\n\t\t//{{{ DockBorder constructor\n\t\tDockBorder(String position)\n\t\t{\n\t\t\tthis.position = position;\n\t\t\tinsets = new Insets(\n\t\t\t\tposition.equals(DockableWindowManagerImpl.BOTTOM)\n\t\t\t\t\t? SPLITTER_WIDTH : 0,\n\t\t\t\tposition.equals(DockableWindowManagerImpl.RIGHT)\n\t\t\t\t\t? SPLITTER_WIDTH : 0,\n\t\t\t\tposition.equals(DockableWindowManagerImpl.TOP)\n\t\t\t\t\t? SPLITTER_WIDTH : 0,\n\t\t\t\tposition.equals(DockableWindowManagerImpl.LEFT)\n\t\t\t\t\t? SPLITTER_WIDTH : 0);\n\t\t} //}}}\n\n\t\t//{{{ paintBorder() method\n\t\tpublic void paintBorder(Component c, Graphics g,\n\t\t\tint x, int y, int width, int height)\n\t\t{\n\t\t\tupdateColors();\n\n\t\t\tif(color1 == null || color2 == null || color3 == null)\n\t\t\t\treturn;\n\n\t\t\tif(position.equals(DockableWindowManagerImpl.BOTTOM))\n\t\t\t\tpaintHorizBorder(g,x,y,width);\n\t\t\telse if(position.equals(DockableWindowManagerImpl.RIGHT))\n\t\t\t\tpaintVertBorder(g,x,y,height);\n\t\t\telse if(position.equals(DockableWindowManagerImpl.TOP))\n\t\t\t{\n\t\t\t\tpaintHorizBorder(g,x,y + height\n\t\t\t\t\t- SPLITTER_WIDTH,width);\n\t\t\t}\n\t\t\telse if(position.equals(DockableWindowManagerImpl.LEFT))\n\t\t\t{\n\t\t\t\tpaintVertBorder(g,x + width\n\t\t\t\t\t- SPLITTER_WIDTH,y,height);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ getBorderInsets() method\n\t\tpublic Insets getBorderInsets(Component c)\n\t\t{\n\t\t\treturn insets;\n\t\t} //}}}\n\n\t\t//{{{ isBorderOpaque() method\n\t\tpublic boolean isBorderOpaque()\n\t\t{\n\t\t\treturn false;\n\t\t} //}}}\n\n\t\t//{{{ paintHorizBorder() method\n\t\tprivate void paintHorizBorder(Graphics g, int x, int y, int width)\n\t\t{\n\t\t\tg.setColor(color3);\n\t\t\tg.fillRect(x,y,width,SPLITTER_WIDTH);\n\n\t\t\tfor(int i = 0; i < width / 4 - 1; i++)\n\t\t\t{\n\t\t\t\tg.setColor(color1);\n\t\t\t\tg.drawLine(x + (i << 2) + 2,y + 3,\n\t\t\t\t\tx + (i << 2) + 2,y + 3);\n\t\t\t\tg.setColor(color2);\n\t\t\t\tg.drawLine(x + (i << 2) + 3,y + 4,\n\t\t\t\t\tx + (i << 2) + 3,y + 4);\n\t\t\t\tg.setColor(color1);\n\t\t\t\tg.drawLine(x + (i << 2) + 4,y + 5,\n\t\t\t\t\tx + (i << 2) + 4,y + 5);\n\t\t\t\tg.setColor(color2);\n\t\t\t\tg.drawLine(x + (i << 2) + 5,y + 6,\n\t\t\t\t\tx + (i << 2) + 5,y + 6);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ paintVertBorder() method\n\t\tprivate void paintVertBorder(Graphics g, int x, int y, int height)\n\t\t{\n\t\t\tg.setColor(color3);\n\t\t\tg.fillRect(x,y,SPLITTER_WIDTH,height);\n\n\t\t\tfor(int i = 0; i < height / 4 - 1; i++)\n\t\t\t{\n\t\t\t\tg.setColor(color1);\n\t\t\t\tg.drawLine(x + 3,y + (i << 2) + 2,\n\t\t\t\t\tx + 3,y + (i << 2) + 2);\n\t\t\t\tg.setColor(color2);\n\t\t\t\tg.drawLine(x + 4,y + (i << 2) + 3,\n\t\t\t\t\tx + 4,y + (i << 2) + 3);\n\t\t\t\tg.setColor(color1);\n\t\t\t\tg.drawLine(x + 5,y + (i << 2) + 4,\n\t\t\t\t\tx + 5,y + (i << 2) + 4);\n\t\t\t\tg.setColor(color2);\n\t\t\t\tg.drawLine(x + 6,y + (i << 2) + 5,\n\t\t\t\t\tx + 6,y + (i << 2) + 5);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ updateColors() method\n\t\tprivate void updateColors()\n\t\t{\n\t\t\tif(UIManager.getLookAndFeel() instanceof MetalLookAndFeel)\n\t\t\t{\n\t\t\t\tcolor1 = MetalLookAndFeel.getControlHighlight();\n\t\t\t\tcolor2 = MetalLookAndFeel.getControlDarkShadow();\n\t\t\t\tcolor3 = MetalLookAndFeel.getControl();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcolor1 = color2 = color3 = null;\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ RotatedTextIcon class\n\tpublic static class RotatedTextIcon implements Icon\n\t{\n\t\tpublic static final int NONE = 0;\n\t\tpublic static final int CW = 1;\n\t\tpublic static final int CCW = 2;\n\n\t\t//{{{ RotatedTextIcon constructor\n\t\tpublic RotatedTextIcon(int rotate, Font font, String text)\n\t\t{\n\t\t\tthis.rotate = rotate;\n\t\t\tthis.font = font;\n\n\t\t\tFontRenderContext fontRenderContext\n\t\t\t\t= new FontRenderContext(null,true,true);\n\t\t\tglyphs = font.createGlyphVector(fontRenderContext,text);\n\t\t\twidth = (int)glyphs.getLogicalBounds().getWidth() + 4;\n\t\t\t//height = (int)glyphs.getLogicalBounds().getHeight();\n\n\t\t\tLineMetrics lineMetrics = font.getLineMetrics(text,fontRenderContext);\n\t\t\tascent = lineMetrics.getAscent();\n\t\t\theight = (int)lineMetrics.getHeight();\n\n\t\t\trenderHints = new RenderingHints(\n\t\t\t\tRenderingHints.KEY_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\trenderHints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n\t\t\t\tRenderingHints.VALUE_FRACTIONALMETRICS_ON);\n\t\t\trenderHints.put(RenderingHints.KEY_RENDERING,\n\t\t\t\tRenderingHints.VALUE_RENDER_QUALITY);\n\t\t} //}}}\n\n\t\t//{{{ getIconWidth() method\n\t\tpublic int getIconWidth()\n\t\t{\n\t\t\treturn (int)(rotate == RotatedTextIcon.CW\n\t\t\t\t|| rotate == RotatedTextIcon.CCW\n\t\t\t\t? height : width);\n\t\t} //}}}\n\n\t\t//{{{ getIconHeight() method\n\t\tpublic int getIconHeight()\n\t\t{\n\t\t\treturn (int)(rotate == RotatedTextIcon.CW\n\t\t\t\t|| rotate == RotatedTextIcon.CCW\n\t\t\t\t? width : height);\n\t\t} //}}}\n\n\t\t//{{{ paintIcon() method\n\t\tpublic void paintIcon(Component c, Graphics g, int x, int y)\n\t\t{\n\t\t\tGraphics2D g2d = (Graphics2D)g;\n\t\t\tg2d.setFont(font);\n\t\t\tAffineTransform oldTransform = g2d.getTransform();\n\t\t\tRenderingHints oldHints = g2d.getRenderingHints();\n\n\t\t\tg2d.setRenderingHints(renderHints);\n\t\t\tg2d.setColor(c.getForeground());\n\n\t\t\t//{{{ No rotation\n\t\t\tif(rotate == RotatedTextIcon.NONE)\n\t\t\t{\n\t\t\t\tg2d.drawGlyphVector(glyphs,x + 2,y + ascent);\n\t\t\t} //}}}\n\t\t\t//{{{ Clockwise rotation\n\t\t\telse if(rotate == RotatedTextIcon.CW)\n\t\t\t{\n\t\t\t\tAffineTransform trans = new AffineTransform();\n\t\t\t\ttrans.concatenate(oldTransform);\n\t\t\t\ttrans.translate(x,y + 2);\n\t\t\t\ttrans.rotate(Math.PI / 2,\n\t\t\t\t\theight / 2, width / 2);\n\t\t\t\tg2d.setTransform(trans);\n\t\t\t\tg2d.drawGlyphVector(glyphs,(height - width) / 2,\n\t\t\t\t\t(width - height) / 2\n\t\t\t\t\t+ ascent);\n\t\t\t} //}}}\n\t\t\t//{{{ Counterclockwise rotation\n\t\t\telse if(rotate == RotatedTextIcon.CCW)\n\t\t\t{\n\t\t\t\tAffineTransform trans = new AffineTransform();\n\t\t\t\ttrans.concatenate(oldTransform);\n\t\t\t\ttrans.translate(x,y - 2);\n\t\t\t\ttrans.rotate(Math.PI * 3 / 2,\n\t\t\t\t\theight / 2, width / 2);\n\t\t\t\tg2d.setTransform(trans);\n\t\t\t\tg2d.drawGlyphVector(glyphs,(height - width) / 2,\n\t\t\t\t\t(width - height) / 2\n\t\t\t\t\t+ ascent);\n\t\t\t} //}}}\n\n\t\t\tg2d.setTransform(oldTransform);\n\t\t\tg2d.setRenderingHints(oldHints);\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate final int rotate;\n\t\tprivate final Font font;\n\t\tprivate final GlyphVector glyphs;\n\t\tprivate final float width;\n\t\tprivate final float height;\n\t\tprivate final float ascent;\n\t\tprivate final RenderingHints renderHints;\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ ButtonLayout class\n\tclass ButtonLayout implements LayoutManager\n\t{\n\t\t//{{{ addLayoutComponent() method\n\t\tpublic void addLayoutComponent(String name, Component comp) {} //}}}\n\n\t\t//{{{ removeLayoutComponent() method\n\t\tpublic void removeLayoutComponent(Component comp) {} //}}}\n\n\t\t//{{{ getWrappedDimension() method\n\t\t/**\n\t\t * Returns the width or height of wrapped rows or columns.\n\t\t */\n\t\tint getWrappedDimension(JComponent parent, int dimension)\n\t\t{\n\t\t\tInsets insets = parent.getBorder()\n\t\t\t\t.getBorderInsets(parent);\n\n\t\t\tComponent[] comp = parent.getComponents();\n\t\t\tif(comp.length <= 2)\n\t\t\t\treturn 0;\n\n\t\t\tDimension dim = comp[2].getPreferredSize();\n\n\t\t\tif(position.equals(DockableWindowManagerImpl.TOP)\n\t\t\t\t|| position.equals(DockableWindowManagerImpl.BOTTOM))\n\t\t\t{\n\t\t\t\tint width = dimension - insets.right;\n\t\t\t\tDimension returnValue = preferredLayoutSizeLR(insets, comp, dim, width);\n\t\t\t\treturn returnValue.height;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tDimension returnValue = preferredLayoutSizeTB(dimension, insets, comp, dim);\n\t\t\t\treturn returnValue.width;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ preferredLayoutSize() method\n\t\tpublic Dimension preferredLayoutSize(Container parent)\n\t\t{\n\t\t\tInsets insets = ((JComponent)parent).getBorder()\n\t\t\t\t.getBorderInsets(parent);\n\n\t\t\tComponent[] comp = parent.getComponents();\n\t\t\tif(comp.length <= 2)\n\t\t\t{\n\t\t\t\t// nothing 'cept close box\n\t\t\t\treturn new Dimension(0,0);\n\t\t\t}\n\n\t\t\tDimension dim = comp[2].getPreferredSize();\n\n\t\t\tif(position.equals(DockableWindowManagerImpl.TOP)\n\t\t\t\t|| position.equals(DockableWindowManagerImpl.BOTTOM))\n\t\t\t{\n\t\t\t\tint width = parent.getWidth() - insets.right;\n\t\t\t\tDimension returnValue = preferredLayoutSizeLR(insets, comp, dim, width);\n\t\t\t\treturn returnValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tDimension returnValue = preferredLayoutSizeTB(parent.getHeight(), insets, comp, dim);\n\t\t\t\treturn returnValue;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ minimumLayoutSize() method\n\t\tpublic Dimension minimumLayoutSize(Container parent)\n\t\t{\n\t\t\treturn preferredLayoutSize(parent);\n\t\t} //}}}\n\n\t\t//{{{ layoutContainer() method\n\t\tpublic void layoutContainer(Container parent)\n\t\t{\n\t\t\tInsets insets = ((JComponent)parent).getBorder()\n\t\t\t\t.getBorderInsets(parent);\n\n\t\t\tComponent[] comp = parent.getComponents();\n\t\t\tif(comp.length <= 2)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < comp.length; i++)\n\t\t\t\t{\n\t\t\t\t\tcomp[i].setVisible(false);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcomp[0].setVisible(true);\n\t\t\tcomp[1].setVisible(true);\n\n\t\t\tDimension dim = comp[2].getPreferredSize();\n\n\t\t\tif(position.equals(DockableWindowManagerImpl.TOP)\n\t\t\t\t|| position.equals(DockableWindowManagerImpl.BOTTOM))\n\t\t\t{\n\t\t\t\tint width = parent.getWidth() - insets.right;\n\t\t\t\tint rowHeight = Math.max(dim.height,closeBox.getPreferredSize().width);\n\t\t\t\tint x = (rowHeight << 1) + insets.left;\n\t\t\t\tint y = insets.top;\n\t\t\t\tcloseBox.setBounds(insets.left,insets.top,rowHeight,rowHeight);\n\t\t\t\tmenuBtn.setBounds(insets.left + rowHeight,insets.top,rowHeight,rowHeight);\n\n\t\t\t\tfor(int i = 2; i < comp.length; i++)\n\t\t\t\t{\n\t\t\t\t\tint btnWidth = comp[i].getPreferredSize().width;\n\t\t\t\t\tif(btnWidth + x > width)\n\t\t\t\t\t{\n\t\t\t\t\t\tx = insets.left;\n\t\t\t\t\t\ty += rowHeight;\n\t\t\t\t\t}\n\t\t\t\t\tcomp[i].setBounds(x,y,btnWidth,rowHeight);\n\t\t\t\t\tx += btnWidth;\n\t\t\t\t}\n\n\t\t\t\t/* if(y + rowHeight != parent.getHeight())\n\t\t\t\t{\n\t\t\t\t\tparent.setSize(\n\t\t\t\t\t\tparent.getWidth(),\n\t\t\t\t\t\ty + rowHeight);\n\t\t\t\t\t((JComponent)parent).revalidate();\n\t\t\t\t} */\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint height = parent.getHeight() - insets.bottom;\n\t\t\t\tint colWidth = Math.max(dim.width,closeBox.getPreferredSize().height);\n\t\t\t\tint x = insets.left;\n\t\t\t\tint y = (colWidth << 1) + insets.top;\n\t\t\t\tcloseBox.setBounds(insets.left,insets.top,colWidth,colWidth);\n\t\t\t\tmenuBtn.setBounds(insets.left,insets.top + colWidth,colWidth,colWidth);\n\n\t\t\t\tfor(int i = 2; i < comp.length; i++)\n\t\t\t\t{\n\t\t\t\t\tint btnHeight = comp[i].getPreferredSize().height;\n\t\t\t\t\tif(btnHeight + y > height)\n\t\t\t\t\t{\n\t\t\t\t\t\tx += colWidth;\n\t\t\t\t\t\ty = insets.top;\n\t\t\t\t\t}\n\t\t\t\t\tcomp[i].setBounds(x,y,colWidth,btnHeight);\n\t\t\t\t\ty += btnHeight;\n\t\t\t\t}\n\n\t\t\t\t/* if(x + colWidth != parent.getWidth())\n\t\t\t\t{\n\t\t\t\t\tparent.setSize(x + colWidth,\n\t\t\t\t\t\tparent.getHeight());\n\t\t\t\t\t((JComponent)parent).revalidate();\n\t\t\t\t} */\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ preferredLayoutSizeLR() method\n\t\tprivate Dimension preferredLayoutSizeLR(Insets insets, Component[] comp, Dimension dim, int width)\n\t\t{\n\t\t\tint rowHeight = Math.max(dim.height,closeBox.getPreferredSize().width);\n\t\t\tint x = (rowHeight << 1) + insets.left;\n\t\t\tDimension returnValue = new Dimension(0,rowHeight\n\t\t\t\t+ insets.top + insets.bottom);\n\n\t\t\tfor(int i = 2; i < comp.length; i++)\n\t\t\t{\n\t\t\t\tint btnWidth = comp[i].getPreferredSize().width;\n\t\t\t\tif(btnWidth + x > width)\n\t\t\t\t{\n\t\t\t\t\treturnValue.height += rowHeight;\n\t\t\t\t\tx = insets.left;\n\t\t\t\t}\n\n\t\t\t\tx += btnWidth;\n\t\t\t}\n\t\t\treturn returnValue;\n\t\t} //}}}\n\n\t\t//{{{ preferredLayoutSizeTB() method\n\t\tprivate Dimension preferredLayoutSizeTB(int dimension, Insets insets, Component[] comp, Dimension dim)\n\t\t{\n\t\t\tint height = dimension - insets.bottom;\n\t\t\tint colWidth = Math.max(dim.width,closeBox.getPreferredSize().height);\n\t\t\tint y = (colWidth << 1) + insets.top;\n\t\t\tDimension returnValue = new Dimension(colWidth\n\t\t\t\t+ insets.left + insets.right,0);\n\n\t\t\tfor(int i = 2; i < comp.length; i++)\n\t\t\t{\n\t\t\t\tint btnHeight = comp[i].getPreferredSize().height;\n\t\t\t\tif(btnHeight + y > height)\n\t\t\t\t{\n\t\t\t\t\treturnValue.width += colWidth;\n\t\t\t\t\ty = insets.top;\n\t\t\t\t}\n\n\t\t\t\ty += btnHeight;\n\t\t\t}\n\t\t\treturn returnValue;\n\t\t} //}}}\n\t} //}}}\n\n\tpublic void show(String name)\n\t{\n\t\tDockableWindowManagerImpl.Entry entry = null;\n\t\tif (name != null)\n\t\t{\n\t\t\twm.showDockableWindow(name);\n\t\t\twm.hideDockableWindow(name);\n\t\t}\n\t\tshow(entry);", "functions": [{"function_name": "getDockableWindowManager", "code": "\tpublic DockableWindowManagerImpl getDockableWindowManager()\n\t{\n\t\treturn wm;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "register", "code": "\tpublic void register(DockableWindowManagerImpl.Entry entry)\n\t{\n\t\tdockables.add(entry);\n\n\t\t//{{{ Create button\n\t\tint rotation;\n\t\tif(position.equals(DockableWindowManagerImpl.TOP)\n\t\t\t|| position.equals(DockableWindowManagerImpl.BOTTOM))\n\t\t\trotation = RotatedTextIcon.NONE;\n\t\telse if(position.equals(DockableWindowManagerImpl.LEFT))\n\t\t\trotation = RotatedTextIcon.CCW;\n\t\telse if(position.equals(DockableWindowManagerImpl.RIGHT))\n\t\t\trotation = RotatedTextIcon.CW;\n\t\telse\n\t\t\tthrow new InternalError(\"Invalid position: \" + position);\n\n\t\tJToggleButton button = new JToggleButton();\n\t\tbutton.setMargin(new Insets(1,1,1,1));\n\t\tbutton.setRequestFocusEnabled(false);\n\t\tbutton.setIcon(new RotatedTextIcon(rotation,button.getFont(),\n\t\t\tentry.shortTitle()));\n\t\tbutton.setActionCommand(entry.factory.name);\n\t\tbutton.addActionListener(new ActionHandler());\n\t\tbutton.addMouseListener(new MenuMouseHandler());\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tbutton.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\t\t//}}}\n\n\t\tbuttonGroup.add(button);\n\t\tbuttons.add(button);\n\t\tentry.btn = button;\n\n\t\twm.revalidate();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [3, 17], [3, 18], [0, 19], [1, 20], [11, 21], [12, 22], [14, 23], [15, 24], [16, 25], [2, 26], [17, 27], [17, 28], [3, 29], [18, 30], [18, 31], [20, 32], [20, 33], [23, 34], [23, 35], [25, 36], [25, 37], [25, 38], [25, 39], [27, 40], [27, 41], [17, 42], [40, 43], [27, 44], [43, 45], [45, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 3], [18, 3], [19, 0], [20, 1], [21, 11], [22, 12], [23, 14], [24, 15], [25, 16], [26, 2], [27, 17], [28, 17], [29, 3], [30, 18], [31, 18], [32, 20], [33, 20], [34, 23], [35, 23], [36, 25], [37, 25], [38, 25], [39, 25], [40, 27], [41, 27], [42, 17], [43, 40], [44, 27], [45, 43], [46, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "unregister", "code": "\tpublic void unregister(DockableWindowManagerImpl.Entry entry)\n\t{\n\t\tif(entry.factory.name.equals(mostRecent))\n\t\t\tmostRecent = null;\n\n\t\tif(entry.btn != null)\n\t\t{\n\t\t\tbuttonPanel.remove(entry.btn);\n\t\t\tbuttons.remove(entry.btn);\n\t\t\tentry.btn = null;\n\t\t}\n\n\t\tdockables.remove(entry);\n\t\tif(entry.win != null)\n\t\t\tdockablePanel.remove(entry.win);\n\n\t\tif(current == entry)\n\t\t{\n\t\t\tcurrent = null;\n\t\t\tshow(current);\n\t\t}\n\t\telse\n\t\t{\n\t\t\twm.revalidate();\n\t\t\tdockablePanel.repaint();\n\t\t\tbuttonPanel.repaint();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [3, 9], [4, 10], [2, 11], [7, 12], [9, 13], [4, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [3, 20], [3, 21], [3, 22], [14, 23], [19, 24], [20, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 3], [10, 4], [11, 2], [12, 7], [13, 9], [14, 4], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 3], [21, 3], [22, 3], [23, 14], [24, 19], [25, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "remove", "code": "\tpublic void remove(DockableWindowManagerImpl.Entry entry)\n\t{\n\t\tif(entry.factory.name.equals(mostRecent))\n\t\t\tmostRecent = null;\n\n\t\tif(entry.win != null)\n\t\t{\n\t\t\tdockablePanel.remove(entry.win);\n\t\t\tentry.win = null;\n\t\t}\n\n\t\tif(current == entry)\n\t\t{\n\t\t\tcurrent = null;\n\t\t\tshow(current);\n\t\t}\n\t\telse\n\t\t{\n\t\t\twm.revalidate();\n\t\t\tdockablePanel.repaint();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [6, 8], [3, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [2, 15], [9, 16], [13, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 6], [9, 3], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 2], [16, 9], [17, 13], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "showMostRecent", "code": "\tpublic void showMostRecent()\n\t{\n\t\tif(dockables.isEmpty())\n\t\t{\n\t\t\tToolkit.getDefaultToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tif(mostRecent == null)\n\t\t{\n\t\t\tmostRecent = dockables.get(0).factory.name;\n\t\t}\n\n\t\twm.showDockableWindow(mostRecent);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [1, 8], [2, 9], [8, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 1], [9, 2], [10, 8], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "show", "code": "\tpublic void show(DockableWindowManagerImpl.Entry entry)\n\t{\n\t\tif(current == entry)\n\t\t{\n\t\t\tif(entry != null)\n\t\t\t{\n\t\t\t\tif(entry.win instanceof DefaultFocusComponent)\n\t\t\t\t{\n\t\t\t\t\t((DefaultFocusComponent)entry.win)\n\t\t\t\t\t\t.focusOnDefaultComponent();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif(entry != null)\n\t\t{\n\t\t\tif(current == null)\n\t\t\t{\n\t\t\t\t// we didn't have a component previously, so\n\t\t\t\t// create a border\n\t\t\t\tdockablePanel.setBorder(new DockBorder(position));\n\t\t\t}\n\n\t\t\tmostRecent = entry.factory.name;\n\t\t\tthis.current = entry;\n\n\t\t\tif(entry.win.getParent() != dockablePanel)\n\t\t\t\tdockablePanel.add(entry.factory.name,entry.win);\n\n\t\t\tdockablePanel.showDockable(entry.factory.name);\n\n\t\t\tentry.btn.setSelected(true);\n\n\t\t\tif(entry.win instanceof DefaultFocusComponent)\n\t\t\t{\n\t\t\t\t((DefaultFocusComponent)entry.win)\n\t\t\t\t\t.focusOnDefaultComponent();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (current != null)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tObject reason = DockableWindowUpdate.DEACTIVATED;\n\t\t\t\tEditBus.send(new DockableWindowUpdate(wm, reason, current.factory.name));\n\t\t\t}\n\t\t\tcurrent = null;\n\t\t\tnullButton.setSelected(true);\n\t\t\t// removing last component, so remove border\n\t\t\tdockablePanel.setBorder(null);\n\n\t\t\twm.getView().getTextArea().requestFocus();\n\t\t}\n\n\t\twm.revalidate();\n\t\tdockablePanel.repaint();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [1, 9], [1, 10], [1, 11], [6, 12], [2, 13], [2, 14], [1, 15], [1, 16], [1, 17], [1, 18], [8, 19], [9, 20], [1, 21], [1, 22], [10, 23], [1, 24], [1, 25], [11, 26], [14, 27], [15, 28], [15, 29], [16, 30], [17, 31], [18, 32], [8, 33], [19, 34], [21, 35], [10, 36], [23, 37], [26, 38], [14, 39], [27, 40], [8, 41], [9, 42], [11, 43], [39, 44], [41, 45], [43, 46], [39, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 1], [10, 1], [11, 1], [12, 6], [13, 2], [14, 2], [15, 1], [16, 1], [17, 1], [18, 1], [19, 8], [20, 9], [21, 1], [22, 1], [23, 10], [24, 1], [25, 1], [26, 11], [27, 14], [28, 15], [29, 15], [30, 16], [31, 17], [32, 18], [33, 8], [34, 19], [35, 21], [36, 10], [37, 23], [38, 26], [39, 14], [40, 27], [41, 8], [42, 9], [43, 11], [44, 39], [45, 41], [46, 43], [47, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "isVisible", "code": "\tpublic boolean isVisible(DockableWindowManagerImpl.Entry entry)\n\t{\n\t\treturn current == entry;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCurrent", "code": "\tpublic String getCurrent()\n\t{\n\t\tif(current == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn current.factory.name;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getDimension", "code": "\tpublic int getDimension()\n\t{\n\t\treturn dimension;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPosition", "code": "\tpublic String getPosition()\n\t{\n\t\treturn position;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDockables", "code": "\tpublic String[] getDockables()\n\t{\n\t\tString[] retVal = new String[dockables.size()];\n\t\tfor(int i = 0; i < dockables.size(); i++)\n\t\t{\n\t\t\tDockableWindowManagerImpl.Entry entry = dockables.get(i);\n\t\t\tretVal[i] = entry.factory.name;\n\t\t}\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [2, 7], [2, 8], [3, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 2], [8, 2], [9, 3], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "save", "code": "\tvoid save()\n\t{\n\t\tjEdit.setIntegerProperty(\"view.dock.\" + position + \".dimension\",\n\t\t\tdimension);\n\t\tif(current == null)\n\t\t\tjEdit.unsetProperty(\"view.dock.\" + position + \".last\");\n\t\telse\n\t\t{\n\t\t\tjEdit.setProperty(\"view.dock.\" + position + \".last\",\n\t\t\t\tcurrent.factory.name);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [6, 9], [6, 10], [7, 11], [8, 12], [8, 13], [10, 14], [11, 15], [11, 16], [13, 17], [16, 18], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [9, 6], [10, 6], [11, 7], [12, 8], [13, 8], [14, 10], [15, 11], [16, 11], [17, 13], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setDimension", "code": "\tvoid setDimension(int dimension)\n\t{\n\t\tif(dimension > SPLITTER_WIDTH)\n\t\t\tthis.dimension = dimension - SPLITTER_WIDTH;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "sortDockables", "code": "\tvoid sortDockables()\n\t{\n\t\tbuttonPanel.removeAll();\n\t\tbuttonPanel.add(closeBox);\n\t\tbuttonPanel.add(menuBtn);\n\t\tCollections.sort(buttons,new DockableWindowCompare());\n\t\tfor(int i = 0; i < buttons.size(); i++)\n\t\t{\n\t\t\tbuttonPanel.add(buttons.get(i));", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [1, 9], [1, 10], [9, 11], [1, 0], [2, 1], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 1], [10, 1], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getWrappedDimension", "code": "\tint getWrappedDimension(int dimension)\n\t{\n\t\treturn ((ButtonLayout)buttonPanel.getLayout())", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "show", "code": "\tpublic void show(String name)\n\t{\n\t\tDockableWindowManagerImpl.Entry entry = null;\n\t\tif (name != null)\n\t\t{\n\t\t\twm.showDockableWindow(name);\n\t\t\twm.hideDockableWindow(name);\n\t\t}\n\t\tshow(entry);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "PanelWindowContainer", "code": "\tpublic PanelWindowContainer(DockableWindowManagerImpl wm, String position,\n\t\tint dimension)\n\t{\n\t\tthis.wm = wm;\n\t\tthis.position = position;\n\n\t\t//{{{ Button box setup\n\t\tbuttonPanel = new JPanel(new ButtonLayout());\n\t\tbuttonPanel.setBorder(new EmptyBorder(1,1,1,1));\n\n\t\tcloseBox = new JButton(GUIUtilities.loadIcon(\"closebox.gif\"));\n\t\tcloseBox.setRequestFocusEnabled(false);\n\t\tcloseBox.setToolTipText(jEdit.getProperty(\"view.docking.close-tooltip\"));\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tcloseBox.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\n\t\tcloseBox.setMargin(new Insets(0,0,0,0));\n\n\t\tcloseBox.addActionListener(new ActionHandler());\n\n\t\tmenuBtn = new JButton(GUIUtilities.loadIcon(jEdit.getProperty(\"dropdown-arrow.icon\")));\n\t\tmenuBtn.setRequestFocusEnabled(false);\n\t\tmenuBtn.setToolTipText(jEdit.getProperty(\"view.docking.menu-tooltip\"));\n\t\tif(OperatingSystem.isMacOSLF())\n\t\t\tmenuBtn.putClientProperty(\"JButton.buttonType\",\"toolbar\");\n\n\t\tmenuBtn.setMargin(new Insets(0,0,0,0));\n\n\t\tmenuBtn.addMouseListener(new MenuMouseHandler());\n\n\t\tbuttonGroup = new ButtonGroup();\n\t\t// JDK 1.4 workaround\n\t\tbuttonGroup.add(nullButton = new JToggleButton());\n\t\t//}}}\n\n\t\tdockables = new ArrayList<DockableWindowManagerImpl.Entry>();\n\t\tbuttons = new ArrayList<AbstractButton>();\n\t\tdockablePanel = new DockablePanel(this);\n\n\t\tthis.dimension = dimension;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [2, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [7, 28], [8, 29], [9, 30], [10, 31], [11, 32], [12, 33], [13, 34], [1, 35], [15, 36], [16, 37], [17, 38], [18, 39], [19, 40], [2, 41], [21, 42], [22, 43], [23, 44], [24, 45], [25, 46], [31, 47], [34, 48], [34, 49], [34, 50], [34, 51], [35, 52], [35, 53], [36, 54], [38, 55], [40, 56], [40, 57], [40, 58], [40, 59], [41, 60], [41, 61], [42, 62], [44, 63], [45, 64], [45, 65], [45, 66], [45, 67], [46, 68], [55, 69], [63, 70], [69, 71], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 2], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 7], [29, 8], [30, 9], [31, 10], [32, 11], [33, 12], [34, 13], [35, 1], [36, 15], [37, 16], [38, 17], [39, 18], [40, 19], [41, 2], [42, 21], [43, 22], [44, 23], [45, 24], [46, 25], [47, 31], [48, 34], [49, 34], [50, 34], [51, 34], [52, 35], [53, 35], [54, 36], [55, 38], [56, 40], [57, 40], [58, 40], [59, 40], [60, 41], [61, 41], [62, 42], [63, 44], [64, 45], [65, 45], [66, 45], [67, 45], [68, 46], [69, 55], [70, 63], [71, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}], "label": 0}
{"sample_id": "ivy-2.0-3344", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/resolve/ResolveProcessException.java", "language": "java", "name": "org.apache.ivy.core.resolve.ResolveProcessException", "code": "public class ResolveProcessException extends RuntimeException {\n\n    public ResolveProcessException() {\n    }\n\n    public ResolveProcessException(String message, Throwable cause) {\n        super(message, cause);\n    }\n\n    public ResolveProcessException(String message) {\n        super(message);\n    }\n\n    public ResolveProcessException(Throwable cause) {\n        super(cause);", "functions": [{"function_name": "ResolveProcessException", "code": "    public ResolveProcessException() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ResolveProcessException", "code": "    public ResolveProcessException(String message, Throwable cause) {\n        super(message, cause);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ResolveProcessException", "code": "    public ResolveProcessException(String message) {\n        super(message);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ResolveProcessException", "code": "    public ResolveProcessException(Throwable cause) {\n        super(cause);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.0-1526", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/spring/spi/SpringTransactionPolicy.java", "language": "java", "name": "org.apache.camel.spring.spi.SpringTransactionPolicy", "code": "public class SpringTransactionPolicy<E> implements Policy<E> {\n    private static final transient Log log = LogFactory.getLog(SpringTransactionPolicy.class);\n\n    private TransactionTemplate template;\n\n    public SpringTransactionPolicy() {\n    }\n\n    public SpringTransactionPolicy(TransactionTemplate template) {\n        this.template = template;\n    }\n\n    public Processor wrap(Processor processor) {\n        final TransactionTemplate transactionTemplate = getTemplate();\n        if (transactionTemplate == null) {\n            log.warn(\"No TransactionTemplate available so transactions will not be enabled!\");\n            return processor;\n        }\n\n        return new DelegateProcessor(processor) {\n\n            public void process(final Exchange exchange) {\n                transactionTemplate.execute(new TransactionCallbackWithoutResult() {\n                    protected void doInTransactionWithoutResult(TransactionStatus status) {\n                        try {\n\t\t\t\t\t\t\tprocessNext(exchange);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tthrow new RuntimeCamelException(e);\n\t\t\t\t\t\t}\n                    }\n                });\n            }\n\n            @Override\n            public String toString() {\n                return \"SpringTransactionPolicy:\"+propagationBehaviorToString(transactionTemplate.getPropagationBehavior())+\"[\" + getNext() + \"]\";\n            }\n\n\t\t\tprivate String propagationBehaviorToString(int propagationBehavior) {\n\t\t\t\tswitch( propagationBehavior ) {\n\t\t\t\tcase TransactionDefinition.PROPAGATION_MANDATORY:\n\t\t\t\t\treturn \"PROPAGATION_MANDATORY\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_NESTED:\n\t\t\t\t\treturn \"PROPAGATION_NESTED\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_NEVER:\n\t\t\t\t\treturn \"PROPAGATION_NEVER\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_NOT_SUPPORTED:\n\t\t\t\t\treturn \"PROPAGATION_NOT_SUPPORTED\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_REQUIRED:\n\t\t\t\t\treturn \"PROPAGATION_REQUIRED\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_REQUIRES_NEW:\n\t\t\t\t\treturn \"PROPAGATION_REQUIRES_NEW\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_SUPPORTS:\n\t\t\t\t\treturn \"PROPAGATION_SUPPORTS\";\n\t\t\t\t}\n\t\t\t\treturn \"UNKOWN\";\n\t\t\t}\n        };\n    }\n\n    public TransactionTemplate getTemplate() {\n        return template;\n    }\n\n    public void setTemplate(TransactionTemplate template) {\n        this.template = template;", "functions": [{"function_name": "wrap", "code": "    public Processor wrap(Processor processor) {\n        final TransactionTemplate transactionTemplate = getTemplate();\n        if (transactionTemplate == null) {\n            log.warn(\"No TransactionTemplate available so transactions will not be enabled!\");\n            return processor;\n        }\n\n        return new DelegateProcessor(processor) {\n\n            public void process(final Exchange exchange) {\n                transactionTemplate.execute(new TransactionCallbackWithoutResult() {\n                    protected void doInTransactionWithoutResult(TransactionStatus status) {\n                        try {\n\t\t\t\t\t\t\tprocessNext(exchange);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tthrow new RuntimeCamelException(e);\n\t\t\t\t\t\t}\n                    }\n                });\n            }\n\n            @Override\n            public String toString() {\n                return \"SpringTransactionPolicy:\"+propagationBehaviorToString(transactionTemplate.getPropagationBehavior())+\"[\" + getNext() + \"]\";\n            }\n\n\t\t\tprivate String propagationBehaviorToString(int propagationBehavior) {\n\t\t\t\tswitch( propagationBehavior ) {\n\t\t\t\tcase TransactionDefinition.PROPAGATION_MANDATORY:\n\t\t\t\t\treturn \"PROPAGATION_MANDATORY\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_NESTED:\n\t\t\t\t\treturn \"PROPAGATION_NESTED\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_NEVER:\n\t\t\t\t\treturn \"PROPAGATION_NEVER\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_NOT_SUPPORTED:\n\t\t\t\t\treturn \"PROPAGATION_NOT_SUPPORTED\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_REQUIRED:\n\t\t\t\t\treturn \"PROPAGATION_REQUIRED\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_REQUIRES_NEW:\n\t\t\t\t\treturn \"PROPAGATION_REQUIRES_NEW\";\n\t\t\t\tcase TransactionDefinition.PROPAGATION_SUPPORTS:\n\t\t\t\t\treturn \"PROPAGATION_SUPPORTS\";\n\t\t\t\t}\n\t\t\t\treturn \"UNKOWN\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "SWITCH", "PARAM", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "FUNC_DECL", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "PARAM", "CALL", "LITERAL_ANCHOR", "CATCH", "CALL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [5, 8], [5, 9], [2, 10], [6, 11], [3, 12], [7, 13], [7, 14], [7, 15], [8, 16], [9, 17], [2, 18], [13, 19], [16, 20], [9, 21], [18, 22], [14, 23], [14, 24], [14, 25], [14, 26], [14, 27], [14, 28], [14, 29], [20, 30], [20, 31], [21, 32], [23, 33], [24, 34], [25, 35], [26, 36], [27, 37], [28, 38], [29, 39], [31, 40], [31, 41], [32, 42], [41, 43], [41, 44], [42, 45], [42, 46], [44, 47], [44, 48], [45, 49], [47, 50], [49, 51], [45, 52], [51, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 5], [9, 5], [10, 2], [11, 6], [12, 3], [13, 7], [14, 7], [15, 7], [16, 8], [17, 9], [18, 2], [19, 13], [20, 16], [21, 9], [22, 18], [23, 14], [24, 14], [25, 14], [26, 14], [27, 14], [28, 14], [29, 14], [30, 20], [31, 20], [32, 21], [33, 23], [34, 24], [35, 25], [36, 26], [37, 27], [38, 28], [39, 29], [40, 31], [41, 31], [42, 32], [43, 41], [44, 41], [45, 42], [46, 42], [47, 44], [48, 44], [49, 45], [50, 47], [51, 49], [52, 45], [53, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "getTemplate", "code": "    public TransactionTemplate getTemplate() {\n        return template;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTemplate", "code": "    public void setTemplate(TransactionTemplate template) {\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SpringTransactionPolicy", "code": "    public SpringTransactionPolicy() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SpringTransactionPolicy", "code": "    public SpringTransactionPolicy(TransactionTemplate template) {\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.7-8431", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/axes/UnionChildIterator.java", "language": "java", "name": "org.apache.xpath.axes.UnionChildIterator", "code": "public class UnionChildIterator extends ChildTestIterator\n{\n    static final long serialVersionUID = 3500298482193003495L;\n  /**\n   * Even though these may hold full LocPathIterators, this array does \n   * not have to be cloned, since only the node test and predicate \n   * portion are used, and these only need static information.  However, \n   * also note that index predicates can not be used!\n   */\n  private PredicatedNodeTest[] m_nodeTests = null;\n\n  /**\n   * Constructor for UnionChildIterator\n   */\n  public UnionChildIterator()\n  {\n    super(null);\n  }\n\n  /**\n   * Add a node test to the union list.\n   *\n   * @param test reference to a NodeTest, which will be added \n   * directly to the list of node tests (in other words, it will \n   * not be cloned).  The parent of this test will be set to \n   * this object.\n   */\n  public void addNodeTest(PredicatedNodeTest test)\n  {\n\n    if (null == m_nodeTests)\n    {\n      m_nodeTests = new PredicatedNodeTest[1];\n      m_nodeTests[0] = test;\n    }\n    else\n    {\n      PredicatedNodeTest[] tests = m_nodeTests;\n      int len = m_nodeTests.length;\n\n      m_nodeTests = new PredicatedNodeTest[len + 1];\n\n      System.arraycopy(tests, 0, m_nodeTests, 0, len);\n\n      m_nodeTests[len] = test;\n    }\n    test.exprSetParent(this);\n  }\n\n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n    if (m_nodeTests != null) {\n      for (int i = 0; i < m_nodeTests.length; i++) {\n        m_nodeTests[i].fixupVariables(vars, globalsSize);\n      }\n    }\n  }\n\n  /**\n   * Test whether a specified node is visible in the logical view of a\n   * TreeWalker or NodeIterator. This function will be called by the\n   * implementation of TreeWalker and NodeIterator; it is not intended to\n   * be called directly from user code.\n   * @param n  The node to check to see if it passes the filter or not.\n   * @return  a constant to determine whether the node is accepted,\n   *   rejected, or skipped, as defined  above .\n   */\n  public short acceptNode(int n)\n  {\n    XPathContext xctxt = getXPathContext();\n    try\n    {\n      xctxt.pushCurrentNode(n);\n      for (int i = 0; i < m_nodeTests.length; i++)\n      {\n        PredicatedNodeTest pnt = m_nodeTests[i];\n        XObject score = pnt.execute(xctxt, n);\n        if (score != NodeTest.SCORE_NONE)\n        {\n          if (pnt.getPredicateCount() > 0)\n          {\n            if (pnt.executePredicates(n, xctxt))\n              return DTMIterator.FILTER_ACCEPT;\n          }\n          else\n            return DTMIterator.FILTER_ACCEPT;\n\n        }\n      }\n    }\n    catch (javax.xml.transform.TransformerException se)\n    {\n\n      throw new RuntimeException(se.getMessage());\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n    }\n    return DTMIterator.FILTER_SKIP;", "functions": [{"function_name": "addNodeTest", "code": "  public void addNodeTest(PredicatedNodeTest test)\n  {\n\n    if (null == m_nodeTests)\n    {\n      m_nodeTests = new PredicatedNodeTest[1];\n      m_nodeTests[0] = test;\n    }\n    else\n    {\n      PredicatedNodeTest[] tests = m_nodeTests;\n      int len = m_nodeTests.length;\n\n      m_nodeTests = new PredicatedNodeTest[len + 1];\n\n      System.arraycopy(tests, 0, m_nodeTests, 0, len);\n\n      m_nodeTests[len] = test;\n    }\n    test.exprSetParent(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [9, 13], [9, 14], [10, 15], [12, 16], [15, 17], [11, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 9], [14, 9], [15, 10], [16, 12], [17, 15], [18, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n    if (m_nodeTests != null) {\n      for (int i = 0; i < m_nodeTests.length; i++) {\n        m_nodeTests[i].fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "acceptNode", "code": "  public short acceptNode(int n)\n  {\n    XPathContext xctxt = getXPathContext();\n    try\n    {\n      xctxt.pushCurrentNode(n);\n      for (int i = 0; i < m_nodeTests.length; i++)\n      {\n        PredicatedNodeTest pnt = m_nodeTests[i];\n        XObject score = pnt.execute(xctxt, n);\n        if (score != NodeTest.SCORE_NONE)\n        {\n          if (pnt.getPredicateCount() > 0)\n          {\n            if (pnt.executePredicates(n, xctxt))\n              return DTMIterator.FILTER_ACCEPT;\n          }\n          else\n            return DTMIterator.FILTER_ACCEPT;\n\n        }\n      }\n    }\n    catch (javax.xml.transform.TransformerException se)\n    {\n\n      throw new RuntimeException(se.getMessage());\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n    }\n    return DTMIterator.FILTER_SKIP;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "CATCH", "LOOP", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "RETURN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [2, 10], [3, 11], [8, 12], [6, 13], [6, 14], [6, 15], [12, 16], [13, 17], [6, 18], [13, 19], [14, 20], [19, 21], [19, 22], [19, 23], [22, 24], [22, 25], [23, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 2], [11, 3], [12, 8], [13, 6], [14, 6], [15, 6], [16, 12], [17, 13], [18, 6], [19, 13], [20, 14], [21, 19], [22, 19], [23, 19], [24, 22], [25, 22], [26, 23], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "UnionChildIterator", "code": "  public UnionChildIterator()\n  {\n    super(null);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "poi-2.0-5582", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/util/FixedField.java", "language": "java", "name": "org.apache.poi.util.FixedField", "code": "public interface FixedField\n{\n\n    /**\n     * set the value from its offset into an array of bytes\n     *\n     * @param data the byte array from which the value is to be read\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of the array's valid index range\n     */\n\n    public void readFromBytes(byte [] data)\n        throws ArrayIndexOutOfBoundsException;\n\n    /**\n     * set the value from an InputStream\n     *\n     * @param stream the InputStream from which the value is to be\n     *               read\n     *\n     * @exception BufferUnderrunException if there is not enough data\n     *            available from the InputStream\n     * @exception IOException if an IOException is thrown from reading\n     *            the InputStream\n     */\n\n    public void readFromStream(InputStream stream)\n        throws IOException, BufferUnderrunException;\n\n    /**\n     * write the value out to an array of bytes at the appropriate\n     * offset\n     *\n     * @param data the array of bytes to which the value is to be\n     *             written\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of the array's valid index range\n     */\n\n    public void writeToBytes(byte [] data)\n        throws ArrayIndexOutOfBoundsException;\n\n    /**\n     * return the value as a String\n     *\n     * @return the value as a String\n     */\n\n    public String toString();", "functions": [{"function_name": "readFromBytes", "code": "    public void readFromBytes(byte [] data)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "readFromStream", "code": "    public void readFromStream(InputStream stream)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "writeToBytes", "code": "    public void writeToBytes(byte [] data)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ivy-2.0-3498", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/IvyThread.java", "language": "java", "name": "org.apache.ivy.core.IvyThread", "code": "public class IvyThread extends Thread {\n    private IvyContext context = IvyContext.getContext();\n\n    public IvyThread() {\n        super();\n    }\n\n    public IvyThread(Runnable target, String name) {\n        super(target, name);\n    }\n\n    public IvyThread(Runnable target) {\n        super(target);\n    }\n\n    public IvyThread(String name) {\n        super(name);\n    }\n\n    public IvyThread(ThreadGroup group, Runnable target, String name, long stackSize) {\n        super(group, target, name, stackSize);\n    }\n\n    public IvyThread(ThreadGroup group, Runnable target, String name) {\n        super(group, target, name);\n    }\n\n    public IvyThread(ThreadGroup group, Runnable target) {\n        super(group, target);\n    }\n\n    public IvyThread(ThreadGroup group, String name) {\n        super(group, name);\n    }\n\n    public void run() {\n        initContext();\n        super.run();\n    }\n\n    protected void initContext() {\n        IvyContext.pushContext(context);", "functions": [{"function_name": "run", "code": "    public void run() {\n        initContext();\n        super.run();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "initContext", "code": "    protected void initContext() {\n        IvyContext.pushContext(context);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "IvyThread", "code": "    public IvyThread() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IvyThread", "code": "    public IvyThread(Runnable target, String name) {\n        super(target, name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "IvyThread", "code": "    public IvyThread(Runnable target) {\n        super(target);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "IvyThread", "code": "    public IvyThread(String name) {\n        super(name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "IvyThread", "code": "    public IvyThread(ThreadGroup group, Runnable target, String name, long stackSize) {\n        super(group, target, name, stackSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "IvyThread", "code": "    public IvyThread(ThreadGroup group, Runnable target, String name) {\n        super(group, target, name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "IvyThread", "code": "    public IvyThread(ThreadGroup group, Runnable target) {\n        super(group, target);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "IvyThread", "code": "    public IvyThread(ThreadGroup group, String name) {\n        super(group, name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.4-2514", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/spi/LifecycleStrategy.java", "language": "java", "name": "org.apache.camel.spi.LifecycleStrategy", "code": "public interface LifecycleStrategy {\n    /**\n     * Notification on starting a {@link CamelContext}.\n     */\n    void onContextStart(CamelContext context);\n\n    /**\n     * Notification on adding an {@link Endpoint}.\n     */\n    void onEndpointAdd(Endpoint<? extends Exchange> endpoint);\n\n    /**\n     * Notification on adding a {@link Service}.\n     */\n    void onServiceAdd(CamelContext context, Service service);\n\n    /**\n     * Notification on adding {@link Route}(s).\n     */\n    void onRoutesAdd(Collection<Route> routes);\n\n    /**\n     * Notification on adding {@link RouteContext}(s).\n     *\n     * @param routeContext\n     */\n    void onRouteContextCreate(RouteContext routeContext);", "functions": [{"function_name": "onContextStart", "code": "    void onContextStart(CamelContext context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "onEndpointAdd", "code": "    void onEndpointAdd(Endpoint<? extends Exchange> endpoint);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "onServiceAdd", "code": "    void onServiceAdd(CamelContext context, Service service);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "onRoutesAdd", "code": "    void onRoutesAdd(Collection<Route> routes);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "onRouteContextCreate", "code": "    void onRouteContextCreate(RouteContext routeContext);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6768", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/util/AttributeSetMethodGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.AttributeSetMethodGenerator", "code": "public final class AttributeSetMethodGenerator extends MethodGenerator {\n    private static int HANDLER_INDEX = 1;\n    private static int ITERATOR_INDEX = 2;\n\n    private static final org.apache.bcel.generic.Type[] argTypes =\n\tnew org.apache.bcel.generic.Type[2];\n    private static final String[] argNames = new String[2];\n    \n    static {\n\targTypes[0] = Util.getJCRefType(TRANSLET_OUTPUT_SIG);\n\targNames[0] = TRANSLET_OUTPUT_PNAME;\n\targTypes[1] = Util.getJCRefType(NODE_ITERATOR_SIG);\n\targNames[1] = ITERATOR_PNAME;\n    }\n\n    private final Instruction _astoreHandler;\n    private final Instruction _aloadHandler;\n    private final Instruction _astoreIterator;\n    private final Instruction _aloadIterator;\n    \n    public AttributeSetMethodGenerator(String methodName, ClassGen classGen) {\n\tsuper(org.apache.bcel.Constants.ACC_PRIVATE,\n\t      org.apache.bcel.generic.Type.VOID,\n\t      argTypes, argNames, methodName, \n\t      classGen.getClassName(),\n\t      new InstructionList(),\n\t      classGen.getConstantPool());\n\t\n\t_astoreHandler  = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler   = new ALOAD(HANDLER_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\t_aloadIterator  = new ALOAD(ITERATOR_INDEX);\n    }\n\n    public Instruction storeIterator() {\n\treturn _astoreIterator;\n    }\n    \n    public Instruction loadIterator() {\n\treturn _aloadIterator;\n    }\n\n    public int getIteratorIndex() {\n\treturn ITERATOR_INDEX;\n    }\n\n    public Instruction storeHandler() {\n\treturn _astoreHandler;\n    }\n\n    public Instruction loadHandler() {\n\treturn _aloadHandler;\n    }\n\n    public int getLocalIndex(String name) {", "functions": [{"function_name": "storeIterator", "code": "    public Instruction storeIterator() {\n\treturn _astoreIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadIterator", "code": "    public Instruction loadIterator() {\n\treturn _aloadIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIteratorIndex", "code": "    public int getIteratorIndex() {\n\treturn ITERATOR_INDEX;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeHandler", "code": "    public Instruction storeHandler() {\n\treturn _astoreHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadHandler", "code": "    public Instruction loadHandler() {\n\treturn _aloadHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "AttributeSetMethodGenerator", "code": "    public AttributeSetMethodGenerator(String methodName, ClassGen classGen) {\n\tsuper(org.apache.bcel.Constants.ACC_PRIVATE,\n\t      org.apache.bcel.generic.Type.VOID,\n\t      argTypes, argNames, methodName, \n\t      classGen.getClassName(),\n\t      new InstructionList(),\n\t      classGen.getConstantPool());\n\t\n\t_astoreHandler  = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler   = new ALOAD(HANDLER_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\t_aloadIterator  = new ALOAD(ITERATOR_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [4, 11], [5, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 4], [12, 5], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 0}
{"sample_id": "log4j-1.1-4951", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/helpers/OnlyOnceErrorHandler.java", "language": "java", "name": "org.apache.log4j.helpers.OnlyOnceErrorHandler", "code": "public class OnlyOnceErrorHandler implements ErrorHandler {\n\n\n  final String WARN_PREFIX = \"log4j warning: \";\n  final String ERROR_PREFIX = \"log4j error: \";\n\n  boolean firstTime = true;\n\n  /**\n     Returns <code>null</code> as <code>OnlyOnceErrorHandler</code>\n     has no options. \n     \n     @deprecated We now use JavaBeans introspection to configure\n     components. Options strings are no longer needed.\n */\n  public\n  String[] getOptionStrings() {\n    return null;\n  }\n\n  /**\n     No options to set.\n     \n     @deprecated Use the setter method for the option directly instead\n     of the generic <code>setOption</code> method. \n  */\n  public\n  void setOption(String key, String value) {\n  }\n\n  /**\n     No options to activate.\n  */\n  public\n  void activateOptions() {\n  }\n\n\n  /**\n     Prints the message and the stack trace of the exception on\n     <code>System.err</code>.  */\n  public\n  void error(String message, Exception e, int errorCode) { \n    if(firstTime) {\n      LogLog.error(message, e);\n      firstTime = false;\n    }\n  }\n\n  /**\n     Returns <code>null</code> as <code>OnlyOnceErrorHandler</code>\n     has no options.  \n  public\n  String[] getOptionStrings() {\n    return null;\n  }*/\n\n  /**\n     No options to set.\n  public\n  void setOption(String key, String value) {\n  }\n  */\n\n  /**\n     No options to get.\n  public\n  String getOption(String key) {\n    return null;\n  }\n  */\n\n  /**\n     Print a the error message passed as parameter on\n     <code>System.err</code>.  \n  */\n  public\n  void error(String message) {\n    if(firstTime) {\n      LogLog.error(message);\n      firstTime = false;", "functions": [{"function_name": "getOptionStrings", "code": "  String[] getOptionStrings() {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOption", "code": "  void setOption(String key, String value) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "activateOptions", "code": "  void activateOptions() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "error", "code": "  void error(String message, Exception e, int errorCode) { \n    if(firstTime) {\n      LogLog.error(message, e);\n      firstTime = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "error", "code": "  void error(String message) {\n    if(firstTime) {\n      LogLog.error(message);\n      firstTime = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-3.2-3573", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/io/FavoritesVFS.java", "language": "java", "name": "org.gjt.sp.jedit.io.FavoritesVFS", "code": "public class FavoritesVFS extends VFS\n{\n\tpublic static final String PROTOCOL = \"favorites\";\n\n\tpublic FavoritesVFS()\n\t{\n\t\tsuper(\"favorites\");\n\n\t\t/* addToFavorites(), which is a static method\n\t\t * (for convinience) needs an instance of the\n\t\t * VFS to pass to VFSManager.sendVFSUpdate(),\n\t\t * hence this hack. */\n\t\tinstance = this;\n\t}\n\n\tpublic int getCapabilities()\n\t{\n\t\t// BROWSE_CAP not set because we don't want the VFS browser\n\t\t// to create the default 'favorites' button on the tool bar\n\t\treturn /* BROWSE_CAP | */ DELETE_CAP;\n\t}\n\n\tpublic String getParentOfPath(String path)\n\t{\n\t\treturn PROTOCOL + \":\";\n\t}\n\n\tpublic VFS.DirectoryEntry[] _listDirectory(Object session, String url,\n\t\tComponent comp)\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tVFS.DirectoryEntry[] retVal = new VFS.DirectoryEntry[favorites.size()];\n\t\t\tfor(int i = 0; i < retVal.length; i++)\n\t\t\t{\n\t\t\t\tString favorite = (String)favorites.elementAt(i);\n\t\t\t\tretVal[i] = _getDirectoryEntry(session,favorite,comp);\n\t\t\t}\n\t\t\treturn retVal;\n\t\t}\n\t}\n\n\tpublic DirectoryEntry _getDirectoryEntry(Object session, String path,\n\t\tComponent comp)\n\t{\n\t\treturn new VFS.DirectoryEntry(path,path,\"favorites:\" + path,\n\t\t\t\t\tVFS.DirectoryEntry.DIRECTORY,\n\t\t\t\t\t0L,false);\n\t}\n\n\tpublic boolean _delete(Object session, String path, Component comp)\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tpath = path.substring(PROTOCOL.length() + 1);\n\t\t\tfavorites.removeElement(path);\n\n\t\t\tVFSManager.sendVFSUpdate(this,PROTOCOL + \":\",false);\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tpublic static void loadFavorites()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tString favorite;\n\t\t\tint i = 0;\n\t\t\twhile((favorite = jEdit.getProperty(\"vfs.favorite.\" + i)) != null)\n\t\t\t{\n\t\t\t\tfavorites.addElement(favorite);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static void addToFavorites(String path)\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tfavorites.addElement(path);\n\n\t\t\tVFSManager.sendVFSUpdate(instance,PROTOCOL + \":\",false);\n\t\t}\n\t}\n\n\tpublic static void saveFavorites()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tfor(int i = 0; i < favorites.size(); i++)\n\t\t\t{\n\t\t\t\tjEdit.setProperty(\"vfs.favorite.\" + i,\n\t\t\t\t\t(String)favorites.elementAt(i));\n\t\t\t}\n\t\t\tjEdit.unsetProperty(\"vfs.favorite.\" + favorites.size());\n\t\t}\n\t}\n\n\t// private members\n\tprivate static FavoritesVFS instance;\n\tprivate static Object lock = new Object();\n\tprivate static Vector favorites = new Vector();", "functions": [{"function_name": "getCapabilities", "code": "\tpublic int getCapabilities()\n\t{\n\t\t// BROWSE_CAP not set because we don't want the VFS browser\n\t\t// to create the default 'favorites' button on the tool bar\n\t\treturn /* BROWSE_CAP | */ DELETE_CAP;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getParentOfPath", "code": "\tpublic String getParentOfPath(String path)\n\t{\n\t\treturn PROTOCOL + \":\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "_listDirectory", "code": "\tpublic VFS.DirectoryEntry[] _listDirectory(Object session, String url,\n\t\tComponent comp)\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tVFS.DirectoryEntry[] retVal = new VFS.DirectoryEntry[favorites.size()];\n\t\t\tfor(int i = 0; i < retVal.length; i++)\n\t\t\t{\n\t\t\t\tString favorite = (String)favorites.elementAt(i);\n\t\t\t\tretVal[i] = _getDirectoryEntry(session,favorite,comp);\n\t\t\t}\n\t\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [5, 8], [5, 9], [5, 10], [6, 11], [9, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 5], [9, 5], [10, 5], [11, 6], [12, 9], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "_getDirectoryEntry", "code": "\tpublic DirectoryEntry _getDirectoryEntry(Object session, String path,\n\t\tComponent comp)\n\t{\n\t\treturn new VFS.DirectoryEntry(path,path,\"favorites:\" + path,\n\t\t\t\t\tVFS.DirectoryEntry.DIRECTORY,\n\t\t\t\t\t0L,false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "_delete", "code": "\tpublic boolean _delete(Object session, String path, Component comp)\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tpath = path.substring(PROTOCOL.length() + 1);\n\t\t\tfavorites.removeElement(path);\n\n\t\t\tVFSManager.sendVFSUpdate(this,PROTOCOL + \":\",false);\n\t\t}\n\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [6, 9], [6, 10], [8, 11], [10, 12], [11, 13], [13, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 6], [10, 6], [11, 8], [12, 10], [13, 11], [14, 13], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "loadFavorites", "code": "\tpublic static void loadFavorites()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tString favorite;\n\t\t\tint i = 0;\n\t\t\twhile((favorite = jEdit.getProperty(\"vfs.favorite.\" + i)) != null)\n\t\t\t{\n\t\t\t\tfavorites.addElement(favorite);\n\t\t\t\ti++;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [1, 8], [6, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 1], [9, 6], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "addToFavorites", "code": "\tpublic static void addToFavorites(String path)\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tfavorites.addElement(path);\n\n\t\t\tVFSManager.sendVFSUpdate(instance,PROTOCOL + \":\",false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "saveFavorites", "code": "\tpublic static void saveFavorites()\n\t{\n\t\tsynchronized(lock)\n\t\t{\n\t\t\tfor(int i = 0; i < favorites.size(); i++)\n\t\t\t{\n\t\t\t\tjEdit.setProperty(\"vfs.favorite.\" + i,\n\t\t\t\t\t(String)favorites.elementAt(i));\n\t\t\t}\n\t\t\tjEdit.unsetProperty(\"vfs.favorite.\" + favorites.size());", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [4, 6], [4, 7], [1, 8], [1, 9], [8, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 4], [7, 4], [8, 1], [9, 1], [10, 8], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "FavoritesVFS", "code": "\tpublic FavoritesVFS()\n\t{\n\t\tsuper(\"favorites\");\n\n\t\t/* addToFavorites(), which is a static method\n\t\t * (for convinience) needs an instance of the\n\t\t * VFS to pass to VFSManager.sendVFSUpdate(),\n\t\t * hence this hack. */\n\t\tinstance = this;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.5-7256", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/compiler/Lexer.java", "language": "java", "name": "org.apache.xpath.compiler.Lexer", "code": "class Lexer\n{\n\n  /**\n   * The target XPath.\n   */\n  private Compiler m_compiler;\n\n  /**\n   * The prefix resolver to map prefixes to namespaces in the XPath.\n   */\n  PrefixResolver m_namespaceContext;\n\n  /**\n   * The XPath processor object.\n   */\n  XPathParser m_processor;\n\n  /**\n   * This value is added to each element name in the TARGETEXTRA\n   * that is a 'target' (right-most top-level element name).\n   */\n  static final int TARGETEXTRA = 10000;\n\n  /**\n   * Ignore this, it is going away.\n   * This holds a map to the m_tokenQueue that tells where the top-level elements are.\n   * It is used for pattern matching so the m_tokenQueue can be walked backwards.\n   * Each element that is a 'target', (right-most top level element name) has\n   * TARGETEXTRA added to it.\n   *\n   */\n  private int m_patternMap[] = new int[100];\n\n  /**\n   * Ignore this, it is going away.\n   * The number of elements that m_patternMap maps;\n   */\n  private int m_patternMapSize;\n\n  /**\n   * Create a Lexer object.\n   *\n   * @param compiler The owning compiler for this lexer.\n   * @param resolver The prefix resolver for mapping qualified name prefixes \n   *                 to namespace URIs.\n   * @param xpathProcessor The parser that is processing strings to opcodes.\n   */\n  Lexer(Compiler compiler, PrefixResolver resolver,\n        XPathParser xpathProcessor)\n  {\n\n    m_compiler = compiler;\n    m_namespaceContext = resolver;\n    m_processor = xpathProcessor;\n  }\n\n  /**\n   * Walk through the expression and build a token queue, and a map of the top-level\n   * elements.\n   * @param pat XSLT Expression.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  void tokenize(String pat) throws javax.xml.transform.TransformerException\n  {\n    tokenize(pat, null);\n  }\n\n  /**\n   * Walk through the expression and build a token queue, and a map of the top-level\n   * elements.\n   * @param pat XSLT Expression.\n   * @param targetStrings Vector to hold Strings, may be null.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  void tokenize(String pat, Vector targetStrings)\n          throws javax.xml.transform.TransformerException\n  {\n\n    m_compiler.m_currentPattern = pat;\n    m_patternMapSize = 0; \n\n    m_compiler.m_opMap = new OpMapVector(OpMap.MAXTOKENQUEUESIZE * 5, OpMap.BLOCKTOKENQUEUESIZE * 5, OpMap.MAPINDEX_LENGTH);\n\n    int nChars = pat.length();\n    int startSubstring = -1; \n    int posOfNSSep = -1;\n    boolean isStartOfPat = true;\n    boolean isAttrName = false;\n    boolean isNum = false;\n\n    int nesting = 0;\n\n    for (int i = 0; i < nChars; i++)\n    {\n      char c = pat.charAt(i);\n\n      switch (c)\n      {\n      case '\\\"' :\n      {\n        if (startSubstring != -1)\n        {\n          isNum = false;\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n          isAttrName = false;\n\n          if (-1 != posOfNSSep)\n          {\n            posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, i);\n          }\n          else\n          {\n            addToTokenQueue(pat.substring(startSubstring, i));\n          }\n        }\n\n        startSubstring = i;\n\n        for (i++; (i < nChars) && ((c = pat.charAt(i)) != '\\\"'); i++);\n\n        if (c == '\\\"' && i < nChars)\n        {\n          addToTokenQueue(pat.substring(startSubstring, i + 1));\n\n          startSubstring = -1;\n        }\n        else\n        {\n          m_processor.error(XPATHErrorResources.ER_EXPECTED_DOUBLE_QUOTE);\n        }\n      }\n      break;\n      case '\\'' :\n        if (startSubstring != -1)\n        {\n          isNum = false;\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n          isAttrName = false;\n\n          if (-1 != posOfNSSep)\n          {\n            posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, i);\n          }\n          else\n          {\n            addToTokenQueue(pat.substring(startSubstring, i));\n          }\n        }\n\n        startSubstring = i;\n\n        for (i++; (i < nChars) && ((c = pat.charAt(i)) != '\\''); i++);\n\n        if (c == '\\'' && i < nChars)\n        {\n          addToTokenQueue(pat.substring(startSubstring, i + 1));\n\n          startSubstring = -1;\n        }\n        else\n        {\n          m_processor.error(XPATHErrorResources.ER_EXPECTED_SINGLE_QUOTE);\n        }\n        break;\n      case 0x0A :\n      case 0x0D :\n      case ' ' :\n      case '\\t' :\n        if (startSubstring != -1)\n        {\n          isNum = false;\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n          isAttrName = false;\n\n          if (-1 != posOfNSSep)\n          {\n            posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, i);\n          }\n          else\n          {\n            addToTokenQueue(pat.substring(startSubstring, i));\n          }\n\n          startSubstring = -1;\n        }\n        break;\n      case '@' :\n        isAttrName = true;\n\n      case '-' :\n        if ('-' == c)\n        {\n          if (!(isNum || (startSubstring == -1)))\n          {\n            break;\n          }\n\n          isNum = false;\n        }\n\n      case '(' :\n      case '[' :\n      case ')' :\n      case ']' :\n      case '|' :\n      case '/' :\n      case '*' :\n      case '+' :\n      case '=' :\n      case ',' :\n      case '$' :\n      case '<' :\n      case '>' :\n        if (startSubstring != -1)\n        {\n          isNum = false;\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n          isAttrName = false;\n\n          if (-1 != posOfNSSep)\n          {\n            posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, i);\n          }\n          else\n          {\n            addToTokenQueue(pat.substring(startSubstring, i));\n          }\n\n          startSubstring = -1;\n        }\n        else if (('/' == c) && isStartOfPat)\n        {\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n        }\n        else if ('*' == c)\n        {\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n          isAttrName = false;\n        }\n\n        if (0 == nesting)\n        {\n          if ('|' == c)\n          {\n            if (null != targetStrings)\n            {\n              recordTokenString(targetStrings);\n            }\n\n            isStartOfPat = true;\n          }\n        }\n\n        if ((')' == c) || (']' == c))\n        {\n          nesting--;\n        }\n        else if (('(' == c) || ('[' == c))\n        {\n          nesting++;\n        }\n\n        addToTokenQueue(pat.substring(i, i + 1));\n        break;\n      case ':' :\n        if (i>0)\n        {\n          if (posOfNSSep == (i - 1))\n          {\n            if (startSubstring != -1)\n            {\n              if (startSubstring < (i - 1))\n                addToTokenQueue(pat.substring(startSubstring, i - 1));\n            }\n\n            isNum = false;\n            isAttrName = false;\n            startSubstring = -1;\n            posOfNSSep = -1;\n\n            addToTokenQueue(pat.substring(i - 1, i + 1));\n\n            break;\n          }\n          else\n          {\n            posOfNSSep = i;\n          }\n        }\n\n      default :\n        if (-1 == startSubstring)\n        {\n          startSubstring = i;\n          isNum = Character.isDigit(c);\n        }\n        else if (isNum)\n        {\n          isNum = Character.isDigit(c);\n        }\n      }\n    }\n\n    if (startSubstring != -1)\n    {\n      isNum = false;\n      isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n\n      if ((-1 != posOfNSSep) || \n         ((m_namespaceContext != null) && (m_namespaceContext.handlesNullPrefixes())))\n      {\n        posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, nChars);\n      }\n      else\n      {\n        addToTokenQueue(pat.substring(startSubstring, nChars));\n      }\n    }\n\n    if (0 == m_compiler.getTokenQueueSize())\n    {\n    }\n    else if (null != targetStrings)\n    {\n      recordTokenString(targetStrings);\n    }\n\n    m_processor.m_queueMark = 0;\n  }\n\n  /**\n   * Record the current position on the token queue as long as\n   * this is a top-level element.  Must be called before the\n   * next token is added to the m_tokenQueue.\n   *\n   * @param nesting The nesting count for the pattern element.\n   * @param isStart true if this is the start of a pattern.\n   * @param isAttrName true if we have determined that this is an attribute name.\n   *\n   * @return true if this is the start of a pattern.\n   */\n  private boolean mapPatternElemPos(int nesting, boolean isStart,\n                                    boolean isAttrName)\n  {\n\n    if (0 == nesting)\n    {\n      if(m_patternMapSize >= m_patternMap.length)\n      {\n        int patternMap[] = m_patternMap;\n        int len = m_patternMap.length;\n        m_patternMap = new int[m_patternMapSize + 100];\n        System.arraycopy(patternMap, 0, m_patternMap, 0, len);\n      } \n      if (!isStart)\n      {\n        m_patternMap[m_patternMapSize - 1] -= TARGETEXTRA;\n      }\n      m_patternMap[m_patternMapSize] =\n        (m_compiler.getTokenQueueSize() - (isAttrName ? 1 : 0)) + TARGETEXTRA;\n\n      m_patternMapSize++;\n\n      isStart = false;\n    }\n\n    return isStart;\n  }\n\n  /**\n   * Given a map pos, return the corresponding token queue pos.\n   *\n   * @param i The index in the m_patternMap.\n   *\n   * @return the token queue position.\n   */\n  private int getTokenQueuePosFromMap(int i)\n  {\n\n    int pos = m_patternMap[i];\n\n    return (pos >= TARGETEXTRA) ? (pos - TARGETEXTRA) : pos;\n  }\n\n  /**\n   * Reset token queue mark and m_token to a\n   * given position.\n   * @param mark The new position.\n   */\n  private final void resetTokenMark(int mark)\n  {\n\n    int qsz = m_compiler.getTokenQueueSize();\n\n    m_processor.m_queueMark = (mark > 0)\n                              ? ((mark <= qsz) ? mark - 1 : mark) : 0;\n\n    if (m_processor.m_queueMark < qsz)\n    {\n      m_processor.m_token =\n        (String) m_compiler.getTokenQueue().elementAt(m_processor.m_queueMark++);\n      m_processor.m_tokenChar = m_processor.m_token.charAt(0);\n    }\n    else\n    {\n      m_processor.m_token = null;\n      m_processor.m_tokenChar = 0;\n    }\n  }\n\n  /**\n   * Given a string, return the corresponding keyword token.\n   *\n   * @param key The keyword.\n   *\n   * @return An opcode value.\n   */\n  final int getKeywordToken(String key)\n  {\n\n    int tok;\n\n    try\n    {\n      Integer itok = (Integer) Keywords.m_keywords.get(key);\n\n      tok = (null != itok) ? itok.intValue() : 0;\n    }\n    catch (NullPointerException npe)\n    {\n      tok = 0;\n    }\n    catch (ClassCastException cce)\n    {\n      tok = 0;\n    }\n\n    return tok;\n  }\n\n  /**\n   * Record the current token in the passed vector.\n   *\n   * @param targetStrings Vector of string.\n   */\n  private void recordTokenString(Vector targetStrings)\n  {\n\n    int tokPos = getTokenQueuePosFromMap(m_patternMapSize - 1);\n\n    resetTokenMark(tokPos + 1);\n\n    if (m_processor.lookahead('(', 1))\n    {\n      int tok = getKeywordToken(m_processor.m_token);\n\n      switch (tok)\n      {\n      case OpCodes.NODETYPE_COMMENT :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_COMMENT);\n        break;\n      case OpCodes.NODETYPE_TEXT :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_TEXT);\n        break;\n      case OpCodes.NODETYPE_NODE :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_ANY);\n        break;\n      case OpCodes.NODETYPE_ROOT :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_ROOT);\n        break;\n      case OpCodes.NODETYPE_ANYELEMENT :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_ANY);\n        break;\n      case OpCodes.NODETYPE_PI :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_ANY);\n        break;\n      default :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_ANY);\n      }\n    }\n    else\n    {\n      if (m_processor.tokenIs('@'))\n      {\n        tokPos++;\n\n        resetTokenMark(tokPos + 1);\n      }\n\n      if (m_processor.lookahead(':', 1))\n      {\n        tokPos += 2;\n      }\n\n      targetStrings.addElement(m_compiler.getTokenQueue().elementAt(tokPos));\n    }\n  }\n\n  /**\n   * Add a token to the token queue.\n   *\n   *\n   * @param s The token.\n   */\n  private final void addToTokenQueue(String s)\n  {\n    m_compiler.getTokenQueue().addElement(s);\n  }\n\n  /**\n   * When a seperator token is found, see if there's a element name or\n   * the like to map.\n   *\n   * @param pat The XPath name string.\n   * @param startSubstring The start of the name string.\n   * @param posOfNSSep The position of the namespace seperator (':').\n   * @param posOfScan The end of the name index.\n   *\n   * @throws javax.xml.transform.TransformerException\n   *\n   * @return -1 always.\n   */\n  private int mapNSTokens(String pat, int startSubstring, int posOfNSSep,\n                          int posOfScan)\n           throws javax.xml.transform.TransformerException\n {\n\n    String prefix = \"\";\n    \n    if ((startSubstring >= 0) && (posOfNSSep >= 0))\n    {\n       prefix = pat.substring(startSubstring, posOfNSSep);\n    }\n    String uName;\n\n    if ((null != m_namespaceContext) &&!prefix.equals(\"*\")\n            &&!prefix.equals(\"xmlns\"))\n    {\n      try\n      {\n        if (prefix.length() > 0)\n          uName = ((PrefixResolver) m_namespaceContext).getNamespaceForPrefix(\n            prefix);\n        else\n        {\n\n          if (false)\n          {\n            addToTokenQueue(\":\");\n\n            String s = pat.substring(posOfNSSep + 1, posOfScan);\n\n            if (s.length() > 0)\n              addToTokenQueue(s);\n\n            return -1;\n          }\n          else\n          {\n            uName =\n              ((PrefixResolver) m_namespaceContext).getNamespaceForPrefix(\n                prefix);\n          }\n        }\n      }\n      catch (ClassCastException cce)\n      {\n        uName = m_namespaceContext.getNamespaceForPrefix(prefix);\n      }\n    }\n    else\n    {\n      uName = prefix;\n    }\n\n    if ((null != uName) && (uName.length() > 0))\n    {\n      addToTokenQueue(uName);\n      addToTokenQueue(\":\");\n\n      String s = pat.substring(posOfNSSep + 1, posOfScan);\n\n      if (s.length() > 0)\n        addToTokenQueue(s);\n    }\n    else\n    {\n\n      m_processor.error(XPATHErrorResources.ER_PREFIX_MUST_RESOLVE);\n\n\n      /***  Old code commented out 10-Jan-2001\n      addToTokenQueue(prefix);\n      addToTokenQueue(\":\");\n\n      String s = pat.substring(posOfNSSep + 1, posOfScan);\n\n      if (s.length() > 0)\n        addToTokenQueue(s);\n      ***/\n    }\n\n    return -1;", "functions": [{"function_name": "tokenize", "code": "  void tokenize(String pat) throws javax.xml.transform.TransformerException\n  {\n    tokenize(pat, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "tokenize", "code": "  void tokenize(String pat, Vector targetStrings)\n          throws javax.xml.transform.TransformerException\n  {\n\n    m_compiler.m_currentPattern = pat;\n    m_patternMapSize = 0; \n\n    m_compiler.m_opMap = new OpMapVector(OpMap.MAXTOKENQUEUESIZE * 5, OpMap.BLOCKTOKENQUEUESIZE * 5, OpMap.MAPINDEX_LENGTH);\n\n    int nChars = pat.length();\n    int startSubstring = -1; \n    int posOfNSSep = -1;\n    boolean isStartOfPat = true;\n    boolean isAttrName = false;\n    boolean isNum = false;\n\n    int nesting = 0;\n\n    for (int i = 0; i < nChars; i++)\n    {\n      char c = pat.charAt(i);\n\n      switch (c)\n      {\n      case '\\\"' :\n      {\n        if (startSubstring != -1)\n        {\n          isNum = false;\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n          isAttrName = false;\n\n          if (-1 != posOfNSSep)\n          {\n            posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, i);\n          }\n          else\n          {\n            addToTokenQueue(pat.substring(startSubstring, i));\n          }\n        }\n\n        startSubstring = i;\n\n        for (i++; (i < nChars) && ((c = pat.charAt(i)) != '\\\"'); i++);\n\n        if (c == '\\\"' && i < nChars)\n        {\n          addToTokenQueue(pat.substring(startSubstring, i + 1));\n\n          startSubstring = -1;\n        }\n        else\n        {\n          m_processor.error(XPATHErrorResources.ER_EXPECTED_DOUBLE_QUOTE);\n        }\n      }\n      break;\n      case '\\'' :\n        if (startSubstring != -1)\n        {\n          isNum = false;\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n          isAttrName = false;\n\n          if (-1 != posOfNSSep)\n          {\n            posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, i);\n          }\n          else\n          {\n            addToTokenQueue(pat.substring(startSubstring, i));\n          }\n        }\n\n        startSubstring = i;\n\n        for (i++; (i < nChars) && ((c = pat.charAt(i)) != '\\''); i++);\n\n        if (c == '\\'' && i < nChars)\n        {\n          addToTokenQueue(pat.substring(startSubstring, i + 1));\n\n          startSubstring = -1;\n        }\n        else\n        {\n          m_processor.error(XPATHErrorResources.ER_EXPECTED_SINGLE_QUOTE);\n        }\n        break;\n      case 0x0A :\n      case 0x0D :\n      case ' ' :\n      case '\\t' :\n        if (startSubstring != -1)\n        {\n          isNum = false;\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n          isAttrName = false;\n\n          if (-1 != posOfNSSep)\n          {\n            posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, i);\n          }\n          else\n          {\n            addToTokenQueue(pat.substring(startSubstring, i));\n          }\n\n          startSubstring = -1;\n        }\n        break;\n      case '@' :\n        isAttrName = true;\n\n      case '-' :\n        if ('-' == c)\n        {\n          if (!(isNum || (startSubstring == -1)))\n          {\n            break;\n          }\n\n          isNum = false;\n        }\n\n      case '(' :\n      case '[' :\n      case ')' :\n      case ']' :\n      case '|' :\n      case '/' :\n      case '*' :\n      case '+' :\n      case '=' :\n      case ',' :\n      case '$' :\n      case '<' :\n      case '>' :\n        if (startSubstring != -1)\n        {\n          isNum = false;\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n          isAttrName = false;\n\n          if (-1 != posOfNSSep)\n          {\n            posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, i);\n          }\n          else\n          {\n            addToTokenQueue(pat.substring(startSubstring, i));\n          }\n\n          startSubstring = -1;\n        }\n        else if (('/' == c) && isStartOfPat)\n        {\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n        }\n        else if ('*' == c)\n        {\n          isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n          isAttrName = false;\n        }\n\n        if (0 == nesting)\n        {\n          if ('|' == c)\n          {\n            if (null != targetStrings)\n            {\n              recordTokenString(targetStrings);\n            }\n\n            isStartOfPat = true;\n          }\n        }\n\n        if ((')' == c) || (']' == c))\n        {\n          nesting--;\n        }\n        else if (('(' == c) || ('[' == c))\n        {\n          nesting++;\n        }\n\n        addToTokenQueue(pat.substring(i, i + 1));\n        break;\n      case ':' :\n        if (i>0)\n        {\n          if (posOfNSSep == (i - 1))\n          {\n            if (startSubstring != -1)\n            {\n              if (startSubstring < (i - 1))\n                addToTokenQueue(pat.substring(startSubstring, i - 1));\n            }\n\n            isNum = false;\n            isAttrName = false;\n            startSubstring = -1;\n            posOfNSSep = -1;\n\n            addToTokenQueue(pat.substring(i - 1, i + 1));\n\n            break;\n          }\n          else\n          {\n            posOfNSSep = i;\n          }\n        }\n\n      default :\n        if (-1 == startSubstring)\n        {\n          startSubstring = i;\n          isNum = Character.isDigit(c);\n        }\n        else if (isNum)\n        {\n          isNum = Character.isDigit(c);\n        }\n      }\n    }\n\n    if (startSubstring != -1)\n    {\n      isNum = false;\n      isStartOfPat = mapPatternElemPos(nesting, isStartOfPat, isAttrName);\n\n      if ((-1 != posOfNSSep) || \n         ((m_namespaceContext != null) && (m_namespaceContext.handlesNullPrefixes())))\n      {\n        posOfNSSep = mapNSTokens(pat, startSubstring, posOfNSSep, nChars);\n      }\n      else\n      {\n        addToTokenQueue(pat.substring(startSubstring, nChars));\n      }\n    }\n\n    if (0 == m_compiler.getTokenQueueSize())\n    {\n    }\n    else if (null != targetStrings)\n    {\n      recordTokenString(targetStrings);\n    }\n\n    m_processor.m_queueMark = 0;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "SWITCH", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LOOP", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "LOOP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BREAK_CONTINUE", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [1, 15], [2, 16], [3, 17], [0, 18], [0, 19], [0, 20], [13, 21], [14, 22], [15, 23], [15, 24], [2, 25], [16, 26], [3, 27], [3, 28], [4, 29], [5, 30], [6, 31], [7, 32], [8, 33], [9, 34], [10, 35], [18, 36], [19, 37], [22, 38], [25, 39], [2, 40], [2, 41], [3, 42], [36, 43], [36, 44], [14, 45], [39, 46], [39, 47], [40, 48], [41, 49], [27, 50], [27, 51], [27, 52], [27, 53], [27, 54], [27, 55], [27, 56], [27, 57], [27, 58], [27, 59], [27, 60], [27, 61], [27, 62], [27, 63], [27, 64], [27, 65], [27, 66], [27, 67], [27, 68], [27, 69], [27, 70], [27, 71], [27, 72], [27, 73], [27, 74], [27, 75], [27, 76], [27, 77], [27, 78], [27, 79], [27, 80], [27, 81], [27, 82], [27, 83], [27, 84], [27, 85], [28, 86], [43, 87], [44, 88], [25, 89], [25, 90], [46, 91], [46, 92], [47, 93], [50, 94], [50, 95], [51, 96], [27, 97], [54, 98], [54, 99], [55, 100], [56, 101], [56, 102], [70, 103], [27, 104], [74, 105], [80, 106], [81, 107], [27, 108], [82, 109], [27, 110], [27, 111], [27, 112], [89, 113], [90, 114], [92, 115], [95, 116], [51, 117], [96, 118], [97, 119], [98, 120], [99, 121], [99, 122], [55, 123], [100, 124], [101, 125], [101, 126], [56, 127], [102, 128], [70, 129], [103, 130], [104, 131], [74, 132], [105, 133], [106, 134], [106, 135], [107, 136], [107, 137], [82, 138], [109, 139], [110, 140], [111, 141], [27, 142], [112, 143], [50, 144], [50, 145], [117, 146], [119, 147], [120, 148], [120, 149], [121, 150], [122, 151], [123, 152], [125, 153], [126, 154], [56, 155], [127, 156], [56, 157], [56, 158], [56, 159], [70, 160], [129, 161], [74, 162], [132, 163], [74, 164], [74, 165], [74, 166], [80, 167], [80, 168], [80, 169], [135, 170], [136, 171], [136, 172], [138, 173], [82, 174], [82, 175], [82, 176], [140, 177], [140, 178], [141, 179], [141, 180], [112, 181], [143, 182], [94, 183], [144, 184], [117, 185], [117, 186], [146, 187], [147, 188], [148, 189], [149, 190], [123, 191], [152, 192], [153, 193], [101, 194], [154, 195], [155, 196], [156, 197], [157, 198], [158, 199], [159, 200], [160, 201], [129, 202], [161, 203], [162, 204], [163, 205], [164, 206], [165, 207], [166, 208], [168, 209], [169, 210], [172, 211], [173, 212], [174, 213], [175, 214], [176, 215], [110, 216], [110, 217], [110, 218], [178, 219], [179, 220], [179, 221], [181, 222], [112, 223], [112, 224], [112, 225], [183, 226], [117, 227], [117, 228], [117, 229], [117, 230], [117, 231], [117, 232], [186, 233], [187, 234], [123, 235], [191, 236], [125, 237], [125, 238], [194, 239], [127, 240], [127, 241], [203, 242], [132, 243], [132, 244], [210, 245], [138, 246], [138, 247], [217, 248], [218, 249], [221, 250], [222, 251], [223, 252], [224, 253], [225, 254], [228, 255], [229, 256], [230, 257], [231, 258], [232, 259], [186, 260], [233, 261], [235, 262], [236, 263], [237, 264], [238, 265], [240, 266], [241, 267], [243, 268], [244, 269], [245, 270], [246, 271], [247, 272], [249, 273], [181, 274], [181, 275], [255, 276], [255, 277], [260, 278], [191, 279], [273, 280], [274, 281], [275, 282], [276, 283], [277, 284], [260, 285], [278, 286], [285, 287], [286, 288], [287, 289], [289, 290], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 1], [16, 2], [17, 3], [18, 0], [19, 0], [20, 0], [21, 13], [22, 14], [23, 15], [24, 15], [25, 2], [26, 16], [27, 3], [28, 3], [29, 4], [30, 5], [31, 6], [32, 7], [33, 8], [34, 9], [35, 10], [36, 18], [37, 19], [38, 22], [39, 25], [40, 2], [41, 2], [42, 3], [43, 36], [44, 36], [45, 14], [46, 39], [47, 39], [48, 40], [49, 41], [50, 27], [51, 27], [52, 27], [53, 27], [54, 27], [55, 27], [56, 27], [57, 27], [58, 27], [59, 27], [60, 27], [61, 27], [62, 27], [63, 27], [64, 27], [65, 27], [66, 27], [67, 27], [68, 27], [69, 27], [70, 27], [71, 27], [72, 27], [73, 27], [74, 27], [75, 27], [76, 27], [77, 27], [78, 27], [79, 27], [80, 27], [81, 27], [82, 27], [83, 27], [84, 27], [85, 27], [86, 28], [87, 43], [88, 44], [89, 25], [90, 25], [91, 46], [92, 46], [93, 47], [94, 50], [95, 50], [96, 51], [97, 27], [98, 54], [99, 54], [100, 55], [101, 56], [102, 56], [103, 70], [104, 27], [105, 74], [106, 80], [107, 81], [108, 27], [109, 82], [110, 27], [111, 27], [112, 27], [113, 89], [114, 90], [115, 92], [116, 95], [117, 51], [118, 96], [119, 97], [120, 98], [121, 99], [122, 99], [123, 55], [124, 100], [125, 101], [126, 101], [127, 56], [128, 102], [129, 70], [130, 103], [131, 104], [132, 74], [133, 105], [134, 106], [135, 106], [136, 107], [137, 107], [138, 82], [139, 109], [140, 110], [141, 111], [142, 27], [143, 112], [144, 50], [145, 50], [146, 117], [147, 119], [148, 120], [149, 120], [150, 121], [151, 122], [152, 123], [153, 125], [154, 126], [155, 56], [156, 127], [157, 56], [158, 56], [159, 56], [160, 70], [161, 129], [162, 74], [163, 132], [164, 74], [165, 74], [166, 74], [167, 80], [168, 80], [169, 80], [170, 135], [171, 136], [172, 136], [173, 138], [174, 82], [175, 82], [176, 82], [177, 140], [178, 140], [179, 141], [180, 141], [181, 112], [182, 143], [183, 94], [184, 144], [185, 117], [186, 117], [187, 146], [188, 147], [189, 148], [190, 149], [191, 123], [192, 152], [193, 153], [194, 101], [195, 154], [196, 155], [197, 156], [198, 157], [199, 158], [200, 159], [201, 160], [202, 129], [203, 161], [204, 162], [205, 163], [206, 164], [207, 165], [208, 166], [209, 168], [210, 169], [211, 172], [212, 173], [213, 174], [214, 175], [215, 176], [216, 110], [217, 110], [218, 110], [219, 178], [220, 179], [221, 179], [222, 181], [223, 112], [224, 112], [225, 112], [226, 183], [227, 117], [228, 117], [229, 117], [230, 117], [231, 117], [232, 117], [233, 186], [234, 187], [235, 123], [236, 191], [237, 125], [238, 125], [239, 194], [240, 127], [241, 127], [242, 203], [243, 132], [244, 132], [245, 210], [246, 138], [247, 138], [248, 217], [249, 218], [250, 221], [251, 222], [252, 223], [253, 224], [254, 225], [255, 228], [256, 229], [257, 230], [258, 231], [259, 232], [260, 186], [261, 233], [262, 235], [263, 236], [264, 237], [265, 238], [266, 240], [267, 241], [268, 243], [269, 244], [270, 245], [271, 246], [272, 247], [273, 249], [274, 181], [275, 181], [276, 255], [277, 255], [278, 260], [279, 191], [280, 273], [281, 274], [282, 275], [283, 276], [284, 277], [285, 260], [286, 278], [287, 285], [288, 286], [289, 287], [290, 289], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290]]}, {"function_name": "mapPatternElemPos", "code": "  private boolean mapPatternElemPos(int nesting, boolean isStart,\n                                    boolean isAttrName)\n  {\n\n    if (0 == nesting)\n    {\n      if(m_patternMapSize >= m_patternMap.length)\n      {\n        int patternMap[] = m_patternMap;\n        int len = m_patternMap.length;\n        m_patternMap = new int[m_patternMapSize + 100];\n        System.arraycopy(patternMap, 0, m_patternMap, 0, len);\n      } \n      if (!isStart)\n      {\n        m_patternMap[m_patternMapSize - 1] -= TARGETEXTRA;\n      }\n      m_patternMap[m_patternMapSize] =\n        (m_compiler.getTokenQueueSize() - (isAttrName ? 1 : 0)) + TARGETEXTRA;\n\n      m_patternMapSize++;\n\n      isStart = false;\n    }\n\n    return isStart;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [2, 10], [2, 11], [8, 12], [10, 13], [11, 14], [8, 15], [8, 16], [14, 17], [7, 18], [8, 19], [8, 20], [17, 21], [17, 22], [19, 23], [19, 24], [21, 25], [21, 26], [20, 27], [18, 28], [27, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 2], [11, 2], [12, 8], [13, 10], [14, 11], [15, 8], [16, 8], [17, 14], [18, 7], [19, 8], [20, 8], [21, 17], [22, 17], [23, 19], [24, 19], [25, 21], [26, 21], [27, 20], [28, 18], [29, 27], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getTokenQueuePosFromMap", "code": "  private int getTokenQueuePosFromMap(int i)\n  {\n\n    int pos = m_patternMap[i];\n\n    return (pos >= TARGETEXTRA) ? (pos - TARGETEXTRA) : pos;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "resetTokenMark", "code": "  private final void resetTokenMark(int mark)\n  {\n\n    int qsz = m_compiler.getTokenQueueSize();\n\n    m_processor.m_queueMark = (mark > 0)\n                              ? ((mark <= qsz) ? mark - 1 : mark) : 0;\n\n    if (m_processor.m_queueMark < qsz)\n    {\n      m_processor.m_token =\n        (String) m_compiler.getTokenQueue().elementAt(m_processor.m_queueMark++);\n      m_processor.m_tokenChar = m_processor.m_token.charAt(0);\n    }\n    else\n    {\n      m_processor.m_token = null;\n      m_processor.m_tokenChar = 0;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "COND_EXPR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [2, 7], [1, 8], [1, 9], [1, 10], [1, 11], [6, 12], [6, 13], [6, 14], [8, 15], [9, 16], [10, 17], [13, 18], [13, 19], [14, 20], [17, 21], [11, 22], [18, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [7, 2], [8, 1], [9, 1], [10, 1], [11, 1], [12, 6], [13, 6], [14, 6], [15, 8], [16, 9], [17, 10], [18, 13], [19, 13], [20, 14], [21, 17], [22, 11], [23, 18], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getKeywordToken", "code": "  final int getKeywordToken(String key)\n  {\n\n    int tok;\n\n    try\n    {\n      Integer itok = (Integer) Keywords.m_keywords.get(key);\n\n      tok = (null != itok) ? itok.intValue() : 0;\n    }\n    catch (NullPointerException npe)\n    {\n      tok = 0;\n    }\n    catch (ClassCastException cce)\n    {\n      tok = 0;\n    }\n\n    return tok;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "CATCH", "CATCH", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [6, 10], [8, 11], [9, 12], [10, 13], [11, 14], [11, 15], [11, 16], [7, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 6], [11, 8], [12, 9], [13, 10], [14, 11], [15, 11], [16, 11], [17, 7], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "recordTokenString", "code": "  private void recordTokenString(Vector targetStrings)\n  {\n\n    int tokPos = getTokenQueuePosFromMap(m_patternMapSize - 1);\n\n    resetTokenMark(tokPos + 1);\n\n    if (m_processor.lookahead('(', 1))\n    {\n      int tok = getKeywordToken(m_processor.m_token);\n\n      switch (tok)\n      {\n      case OpCodes.NODETYPE_COMMENT :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_COMMENT);\n        break;\n      case OpCodes.NODETYPE_TEXT :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_TEXT);\n        break;\n      case OpCodes.NODETYPE_NODE :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_ANY);\n        break;\n      case OpCodes.NODETYPE_ROOT :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_ROOT);\n        break;\n      case OpCodes.NODETYPE_ANYELEMENT :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_ANY);\n        break;\n      case OpCodes.NODETYPE_PI :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_ANY);\n        break;\n      default :\n        targetStrings.addElement(PsuedoNames.PSEUDONAME_ANY);\n      }\n    }\n    else\n    {\n      if (m_processor.tokenIs('@'))\n      {\n        tokPos++;\n\n        resetTokenMark(tokPos + 1);\n      }\n\n      if (m_processor.lookahead(':', 1))\n      {\n        tokPos += 2;\n      }\n\n      targetStrings.addElement(m_compiler.getTokenQueue().elementAt(tokPos));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "IF", "IF", "SWITCH", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [4, 11], [5, 12], [2, 13], [1, 14], [6, 15], [7, 16], [12, 17], [13, 18], [14, 19], [15, 20], [15, 21], [16, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [8, 28], [9, 29], [18, 30], [19, 31], [6, 32], [7, 33], [8, 34], [8, 35], [8, 36], [8, 37], [8, 38], [8, 39], [8, 40], [32, 41], [33, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 4], [12, 5], [13, 2], [14, 1], [15, 6], [16, 7], [17, 12], [18, 13], [19, 14], [20, 15], [21, 15], [22, 16], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 8], [29, 9], [30, 18], [31, 19], [32, 6], [33, 7], [34, 8], [35, 8], [36, 8], [37, 8], [38, 8], [39, 8], [40, 8], [41, 32], [42, 33], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "addToTokenQueue", "code": "  private final void addToTokenQueue(String s)\n  {\n    m_compiler.getTokenQueue().addElement(s);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "mapNSTokens", "code": "  private int mapNSTokens(String pat, int startSubstring, int posOfNSSep,\n                          int posOfScan)\n           throws javax.xml.transform.TransformerException\n {\n\n    String prefix = \"\";\n    \n    if ((startSubstring >= 0) && (posOfNSSep >= 0))\n    {\n       prefix = pat.substring(startSubstring, posOfNSSep);\n    }\n    String uName;\n\n    if ((null != m_namespaceContext) &&!prefix.equals(\"*\")\n            &&!prefix.equals(\"xmlns\"))\n    {\n      try\n      {\n        if (prefix.length() > 0)\n          uName = ((PrefixResolver) m_namespaceContext).getNamespaceForPrefix(\n            prefix);\n        else\n        {\n\n          if (false)\n          {\n            addToTokenQueue(\":\");\n\n            String s = pat.substring(posOfNSSep + 1, posOfScan);\n\n            if (s.length() > 0)\n              addToTokenQueue(s);\n\n            return -1;\n          }\n          else\n          {\n            uName =\n              ((PrefixResolver) m_namespaceContext).getNamespaceForPrefix(\n                prefix);\n          }\n        }\n      }\n      catch (ClassCastException cce)\n      {\n        uName = m_namespaceContext.getNamespaceForPrefix(prefix);\n      }\n    }\n    else\n    {\n      uName = prefix;\n    }\n\n    if ((null != uName) && (uName.length() > 0))\n    {\n      addToTokenQueue(uName);\n      addToTokenQueue(\":\");\n\n      String s = pat.substring(posOfNSSep + 1, posOfScan);\n\n      if (s.length() > 0)\n        addToTokenQueue(s);\n    }\n    else\n    {\n\n      m_processor.error(XPATHErrorResources.ER_PREFIX_MUST_RESOLVE);\n\n\n      /***  Old code commented out 10-Jan-2001\n      addToTokenQueue(prefix);\n      addToTokenQueue(\":\");\n\n      String s = pat.substring(posOfNSSep + 1, posOfScan);\n\n      if (s.length() > 0)\n        addToTokenQueue(s);\n      ***/\n    }\n\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "TRY", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CATCH", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [5, 14], [2, 15], [2, 16], [12, 17], [12, 18], [3, 19], [13, 20], [13, 21], [14, 22], [14, 23], [6, 24], [2, 25], [15, 26], [2, 27], [2, 28], [17, 29], [17, 30], [18, 31], [3, 32], [19, 33], [19, 34], [20, 35], [21, 36], [21, 37], [5, 38], [22, 39], [23, 40], [15, 41], [26, 42], [26, 43], [16, 44], [27, 45], [34, 46], [36, 47], [37, 48], [38, 49], [44, 50], [33, 51], [34, 52], [34, 53], [46, 54], [46, 55], [50, 56], [51, 57], [52, 58], [52, 59], [52, 60], [52, 61], [52, 62], [59, 63], [60, 64], [52, 65], [60, 66], [64, 67], [64, 68], [61, 69], [65, 70], [69, 71], [71, 72], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 5], [15, 2], [16, 2], [17, 12], [18, 12], [19, 3], [20, 13], [21, 13], [22, 14], [23, 14], [24, 6], [25, 2], [26, 15], [27, 2], [28, 2], [29, 17], [30, 17], [31, 18], [32, 3], [33, 19], [34, 19], [35, 20], [36, 21], [37, 21], [38, 5], [39, 22], [40, 23], [41, 15], [42, 26], [43, 26], [44, 16], [45, 27], [46, 34], [47, 36], [48, 37], [49, 38], [50, 44], [51, 33], [52, 34], [53, 34], [54, 46], [55, 46], [56, 50], [57, 51], [58, 52], [59, 52], [60, 52], [61, 52], [62, 52], [63, 59], [64, 60], [65, 52], [66, 60], [67, 64], [68, 64], [69, 61], [70, 65], [71, 69], [72, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72]]}, {"function_name": "Lexer", "code": "  Lexer(Compiler compiler, PrefixResolver resolver,\n        XPathParser xpathProcessor)\n  {\n\n    m_compiler = compiler;\n    m_namespaceContext = resolver;\n    m_processor = xpathProcessor;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "camel-1.4-2082", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/language/bean/RuntimeBeanExpressionException.java", "language": "java", "name": "org.apache.camel.language.bean.RuntimeBeanExpressionException", "code": "public class RuntimeBeanExpressionException extends RuntimeExpressionException {\n    private final Exchange exchange;\n    private final String bean;\n    private final String method;\n\n    public RuntimeBeanExpressionException(Exchange exchange, String bean, String method, Throwable e) {\n        super(\"Failed to invoke method: \" + method + \" on \" + bean + \" due to: \" + e, e);\n        this.exchange = exchange;\n        this.bean = bean;\n        this.method = method;\n    }\n\n    public String getBean() {\n        return bean;\n    }\n\n    public Exchange getExchange() {\n        return exchange;\n    }\n\n    public String getMethod() {\n        return method;", "functions": [{"function_name": "getBean", "code": "    public String getBean() {\n        return bean;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExchange", "code": "    public Exchange getExchange() {\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMethod", "code": "    public String getMethod() {\n        return method;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RuntimeBeanExpressionException", "code": "    public RuntimeBeanExpressionException(Exchange exchange, String bean, String method, Throwable e) {\n        super(\"Failed to invoke method: \" + method + \" on \" + bean + \" due to: \" + e, e);\n        this.exchange = exchange;\n        this.bean = bean;\n        this.method = method;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [8, 9], [9, 10], [9, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 8], [10, 9], [11, 9], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}], "label": 0}
{"sample_id": "ant-1.7-1220", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/depend/AbstractAnalyzer.java", "language": "java", "name": "org.apache.tools.ant.util.depend.AbstractAnalyzer", "code": "public abstract class AbstractAnalyzer implements DependencyAnalyzer {\n    /** Maximum number of loops for looking for indirect dependencies. */\n    public static final int MAX_LOOPS = 1000;\n\n    /** The source path for the source files */\n    private Path sourcePath = new Path(null);\n\n    /** The classpath containg dirs and jars of class files */\n    private Path classPath = new Path(null);\n\n    /** The list of root classes */\n    private Vector rootClasses = new Vector();\n\n    /** true if dependencies have been determined */\n    private boolean determined = false;\n\n    /** the list of File objects that the root classes depend upon */\n    private Vector fileDependencies;\n    /** the list of java classes the root classes depend upon */\n    private Vector classDependencies;\n\n    /** true if indirect dependencies should be gathered */\n    private boolean closure = true;\n\n    /** Setup the analyzer */\n    protected AbstractAnalyzer() {\n        reset();\n    }\n\n    /**\n     * Set the closure flag. If this flag is true the analyzer will traverse\n     * all class relationships until it has collected the entire set of\n     * direct and indirect dependencies\n     *\n     * @param closure true if dependencies should be traversed to determine\n     *      indirect dependencies.\n     */\n    public void setClosure(boolean closure) {\n        this.closure = closure;\n    }\n\n    /**\n     * Get the list of files in the file system upon which the root classes\n     * depend. The files will be either the classfiles or jar files upon\n     * which the root classes depend.\n     *\n     * @return an enumeration of File instances.\n     */\n    public Enumeration getFileDependencies() {\n        if (!supportsFileDependencies()) {\n            throw new RuntimeException(\"File dependencies are not supported \"\n                + \"by this analyzer\");\n        }\n        if (!determined) {\n            determineDependencies(fileDependencies, classDependencies);\n        }\n        return fileDependencies.elements();\n    }\n\n    /**\n     * Get the list of classes upon which root classes depend. This is a\n     * list of Java classnames in dot notation.\n     *\n     * @return an enumeration of Strings, each being the name of a Java\n     *      class in dot notation.\n     */\n    public Enumeration getClassDependencies() {\n        if (!determined) {\n            determineDependencies(fileDependencies, classDependencies);\n        }\n        return classDependencies.elements();\n    }\n\n    /**\n     * Get the file that contains the class definition\n     *\n     * @param classname the name of the required class\n     * @return the file instance, zip or class, containing the\n     *         class or null if the class could not be found.\n     * @exception IOException if the files in the classpath cannot be read.\n     */\n    public File getClassContainer(String classname) throws IOException {\n        String classLocation = classname.replace('.', '/') + \".class\";\n        return getResourceContainer(classLocation, classPath.list());\n    }\n\n    /**\n     * Get the file that contains the class source.\n     *\n     * @param classname the name of the required class\n     * @return the file instance, zip or java, containing the\n     *         source or null if the source for the class could not be found.\n     * @exception IOException if the files in the sourcepath cannot be read.\n     */\n    public File getSourceContainer(String classname) throws IOException {\n        String sourceLocation = classname.replace('.', '/') + \".java\";\n\n        return getResourceContainer(sourceLocation, sourcePath.list());\n    }\n\n    /**\n     * Add a source path to the source path used by this analyzer. The\n     * elements in the given path contain the source files for the classes\n     * being analyzed. Not all analyzers will use this information.\n     *\n     * @param sourcePath The Path instance specifying the source path\n     *      elements.\n     */\n    public void addSourcePath(Path sourcePath) {\n        if (sourcePath == null) {\n            return;\n        }\n        this.sourcePath.append(sourcePath);\n        this.sourcePath.setProject(sourcePath.getProject());\n    }\n\n    /**\n     * Add a classpath to the classpath being used by the analyzer. The\n     * classpath contains the binary classfiles for the classes being\n     * analyzed The elements may either be the directories or jar files.Not\n     * all analyzers will use this information.\n     *\n     * @param classPath the Path instance specifying the classpath elements\n     */\n    public void addClassPath(Path classPath) {\n        if (classPath == null) {\n            return;\n        }\n\n        this.classPath.append(classPath);\n        this.classPath.setProject(classPath.getProject());\n    }\n\n    /**\n     * Add a root class. The root classes are used to drive the\n     * determination of dependency information. The analyzer will start at\n     * the root classes and add dependencies from there.\n     *\n     * @param className the name of the class in Java dot notation.\n     */\n    public void addRootClass(String className) {\n        if (className == null) {\n            return;\n        }\n        if (!rootClasses.contains(className)) {\n            rootClasses.addElement(className);\n        }\n    }\n\n    /**\n     * Configure an aspect of the analyzer. The set of aspects that are\n     * supported is specific to each analyzer instance.\n     *\n     * @param name the name of the aspect being configured\n     * @param info the configuration info.\n     */\n    public void config(String name, Object info) {\n    }\n\n    /**\n     * Reset the dependency list. This will reset the determined\n     * dependencies and the also list of root classes.\n     */\n    public void reset() {\n        rootClasses.removeAllElements();\n        determined = false;\n        fileDependencies = new Vector();\n        classDependencies = new Vector();\n    }\n\n    /**\n     * Get an enumeration of the root classes\n     *\n     * @return an enumeration of Strings, each of which is a class name\n     *         for a root class.\n     */\n    protected Enumeration getRootClasses() {\n        return rootClasses.elements();\n    }\n\n    /**\n     * Indicate if the analyzer is required to follow\n     * indirect class relationships.\n     *\n     * @return true if indirect relationships should be followed.\n     */\n    protected boolean isClosureRequired() {\n        return closure;\n    }\n\n    /**\n     * Determine the dependencies of the current set of root classes\n     *\n     * @param files a vector into which Files upon which the root classes\n     *      depend should be placed.\n     * @param classes a vector of Strings into which the names of classes\n     *      upon which the root classes depend should be placed.\n     */\n    protected abstract void determineDependencies(Vector files, Vector classes);\n\n    /**\n     * Indicate if the particular subclass supports file dependency\n     * information.\n     *\n     * @return true if file dependencies are supported.\n     */\n    protected abstract boolean supportsFileDependencies();\n\n    /**\n     * Get the file that contains the resource\n     *\n     * @param resourceLocation the name of the required resource.\n     * @param paths the paths which will be searched for the resource.\n     * @return the file instance, zip or class, containing the\n     *         class or null if the class could not be found.\n     * @exception IOException if the files in the given paths cannot be read.\n     */\n    private File getResourceContainer(String resourceLocation, String[] paths)\n         throws IOException {\n        for (int i = 0; i < paths.length; ++i) {\n            File element = new File(paths[i]);\n            if (!element.exists()) {\n                continue;\n            }\n            if (element.isDirectory()) {\n                File resource = new File(element, resourceLocation);\n                if (resource.exists()) {\n                    return resource;\n                }\n            } else {\n                ZipFile zipFile = null;\n                try {\n                    zipFile = new ZipFile(element);\n                    if (zipFile.getEntry(resourceLocation) != null) {\n                        return element;\n                    }\n                } finally {\n                    if (zipFile != null) {\n                        zipFile.close();\n                    }\n                }\n            }\n        }\n        return null;", "functions": [{"function_name": "setClosure", "code": "    public void setClosure(boolean closure) {\n        this.closure = closure;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFileDependencies", "code": "    public Enumeration getFileDependencies() {\n        if (!supportsFileDependencies()) {\n            throw new RuntimeException(\"File dependencies are not supported \"\n                + \"by this analyzer\");\n        }\n        if (!determined) {\n            determineDependencies(fileDependencies, classDependencies);\n        }\n        return fileDependencies.elements();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [3, 6], [2, 7], [6, 8], [8, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 3], [7, 2], [8, 6], [9, 8], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getClassDependencies", "code": "    public Enumeration getClassDependencies() {\n        if (!determined) {\n            determineDependencies(fileDependencies, classDependencies);\n        }\n        return classDependencies.elements();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getClassContainer", "code": "    public File getClassContainer(String classname) throws IOException {\n        String classLocation = classname.replace('.', '/') + \".class\";\n        return getResourceContainer(classLocation, classPath.list());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getSourceContainer", "code": "    public File getSourceContainer(String classname) throws IOException {\n        String sourceLocation = classname.replace('.', '/') + \".java\";\n\n        return getResourceContainer(sourceLocation, sourcePath.list());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addSourcePath", "code": "    public void addSourcePath(Path sourcePath) {\n        if (sourcePath == null) {\n            return;\n        }\n        this.sourcePath.append(sourcePath);\n        this.sourcePath.setProject(sourcePath.getProject());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addClassPath", "code": "    public void addClassPath(Path classPath) {\n        if (classPath == null) {\n            return;\n        }\n\n        this.classPath.append(classPath);\n        this.classPath.setProject(classPath.getProject());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addRootClass", "code": "    public void addRootClass(String className) {\n        if (className == null) {\n            return;\n        }\n        if (!rootClasses.contains(className)) {\n            rootClasses.addElement(className);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "config", "code": "    public void config(String name, Object info) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "reset", "code": "    public void reset() {\n        rootClasses.removeAllElements();\n        determined = false;\n        fileDependencies = new Vector();\n        classDependencies = new Vector();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getRootClasses", "code": "    protected Enumeration getRootClasses() {\n        return rootClasses.elements();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isClosureRequired", "code": "    protected boolean isClosureRequired() {\n        return closure;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "determineDependencies", "code": "    protected abstract void determineDependencies(Vector files, Vector classes);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "supportsFileDependencies", "code": "    protected abstract boolean supportsFileDependencies();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getResourceContainer", "code": "    private File getResourceContainer(String resourceLocation, String[] paths)\n         throws IOException {\n        for (int i = 0; i < paths.length; ++i) {\n            File element = new File(paths[i]);\n            if (!element.exists()) {\n                continue;\n            }\n            if (element.isDirectory()) {\n                File resource = new File(element, resourceLocation);\n                if (resource.exists()) {\n                    return resource;\n                }\n            } else {\n                ZipFile zipFile = null;\n                try {\n                    zipFile = new ZipFile(element);\n                    if (zipFile.getEntry(resourceLocation) != null) {\n                        return element;\n                    }\n                } finally {\n                    if (zipFile != null) {\n                        zipFile.close();\n                    }\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "IF", "VAR_DECL", "BREAK_CONTINUE", "CALL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [7, 10], [8, 11], [2, 12], [7, 13], [7, 14], [7, 15], [7, 16], [8, 17], [9, 18], [13, 19], [13, 20], [15, 21], [19, 22], [20, 23], [13, 24], [14, 25], [15, 26], [16, 27], [22, 28], [20, 29], [23, 30], [23, 31], [24, 32], [19, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 7], [11, 8], [12, 2], [13, 7], [14, 7], [15, 7], [16, 7], [17, 8], [18, 9], [19, 13], [20, 13], [21, 15], [22, 19], [23, 20], [24, 13], [25, 14], [26, 15], [27, 16], [28, 22], [29, 20], [30, 23], [31, 23], [32, 24], [33, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "AbstractAnalyzer", "code": "    protected AbstractAnalyzer() {\n        reset();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-1226", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/perforce/P4Add.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.perforce.P4Add", "code": "public class P4Add extends P4Base {\n    private static final int DEFAULT_CMD_LENGTH = 450;\n    private int changelist;\n    private String addCmd = \"\";\n    private Vector filesets = new Vector();\n    private int cmdLength = DEFAULT_CMD_LENGTH;\n\n    /**\n     *   Set the maximum length\n     *   of the commandline when calling Perforce to add the files.\n     *   Defaults to 450, higher values mean faster execution,\n     *   but also possible failures.\n     *   @param len maximum length of command line default is 450.\n     *   @throws BuildException if trying to set the command line length to 0 or less.\n     */\n\n    public void setCommandlength(int len) throws BuildException {\n        if (len <= 0) {\n            throw new BuildException(\"P4Add: Commandlength should be a positive number\");\n        }\n        this.cmdLength = len;\n    }\n\n    /**\n     * If specified the open files are associated with the\n     * specified pending changelist number; otherwise the open files are\n     * associated with the default changelist.\n     *\n     * @param changelist the change list number.\n     *\n     * @throws BuildException if trying to set a change list number &lt;=0.\n     */\n    public void setChangelist(int changelist) throws BuildException {\n        if (changelist <= 0) {\n            throw new BuildException(\"P4Add: Changelist# should be a positive number\");\n        }\n        this.changelist = changelist;\n    }\n\n    /**\n     * Add a fileset whose files will be added to Perforce.\n     *\n     * @param set the FileSet that one wants to add to Perforce Source Control.\n     */\n    public void addFileset(FileSet set) {\n        filesets.addElement(set);\n    }\n\n    /**\n     * Run the task.\n     *\n     * @throws BuildException if the execution of the Perforce command fails.\n     */\n    public void execute() throws BuildException {\n        if (P4View != null) {\n            addCmd = P4View;\n        }\n        P4CmdOpts = (changelist > 0) ? (\"-c \" + changelist) : \"\";\n\n        StringBuffer filelist = new StringBuffer();\n\n        for (int i = 0; i < filesets.size(); i++) {\n            FileSet fs = (FileSet) filesets.elementAt(i);\n            DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n\n            String[] srcFiles = ds.getIncludedFiles();\n            if (srcFiles != null) {\n                for (int j = 0; j < srcFiles.length; j++) {\n                    File f = new File(ds.getBasedir(), srcFiles[j]);\n                    filelist.append(\" \").append('\"').append(f.getAbsolutePath()).append('\"');\n                    if (filelist.length() > cmdLength) {\n                        execP4Add(filelist);\n                        filelist = new StringBuffer();\n                    }\n                }\n                if (filelist.length() > 0) {\n                    execP4Add(filelist);\n                }\n            } else {\n                log(\"No files specified to add!\", Project.MSG_WARN);\n            }\n        }\n    }\n\n    private void execP4Add(StringBuffer list) {\n        log(\"Execing add \" + P4CmdOpts + \" \" + addCmd + list, Project.MSG_INFO);\n        execP4Command(\"-s add \" + P4CmdOpts + \" \" + addCmd + list, new SimpleP4OutputHandler(this));", "functions": [{"function_name": "setCommandlength", "code": "    public void setCommandlength(int len) throws BuildException {\n        if (len <= 0) {\n            throw new BuildException(\"P4Add: Commandlength should be a positive number\");\n        }\n        this.cmdLength = len;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setChangelist", "code": "    public void setChangelist(int changelist) throws BuildException {\n        if (changelist <= 0) {\n            throw new BuildException(\"P4Add: Changelist# should be a positive number\");\n        }\n        this.changelist = changelist;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (P4View != null) {\n            addCmd = P4View;\n        }\n        P4CmdOpts = (changelist > 0) ? (\"-c \" + changelist) : \"\";\n\n        StringBuffer filelist = new StringBuffer();\n\n        for (int i = 0; i < filesets.size(); i++) {\n            FileSet fs = (FileSet) filesets.elementAt(i);\n            DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n\n            String[] srcFiles = ds.getIncludedFiles();\n            if (srcFiles != null) {\n                for (int j = 0; j < srcFiles.length; j++) {\n                    File f = new File(ds.getBasedir(), srcFiles[j]);\n                    filelist.append(\" \").append('\"').append(f.getAbsolutePath()).append('\"');\n                    if (filelist.length() > cmdLength) {\n                        execP4Add(filelist);\n                        filelist = new StringBuffer();\n                    }\n                }\n                if (filelist.length() > 0) {\n                    execP4Add(filelist);\n                }\n            } else {\n                log(\"No files specified to add!\", Project.MSG_WARN);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [2, 12], [5, 13], [6, 14], [7, 15], [1, 16], [13, 17], [13, 18], [13, 19], [3, 20], [7, 21], [7, 22], [15, 23], [8, 24], [9, 25], [18, 26], [19, 27], [7, 28], [21, 29], [22, 30], [25, 31], [10, 32], [28, 33], [29, 34], [29, 35], [22, 36], [22, 37], [21, 38], [36, 39], [22, 40], [22, 41], [39, 42], [40, 43], [40, 44], [40, 45], [40, 46], [37, 47], [36, 48], [36, 49], [44, 50], [45, 51], [46, 52], [47, 53], [48, 54], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 2], [13, 5], [14, 6], [15, 7], [16, 1], [17, 13], [18, 13], [19, 13], [20, 3], [21, 7], [22, 7], [23, 15], [24, 8], [25, 9], [26, 18], [27, 19], [28, 7], [29, 21], [30, 22], [31, 25], [32, 10], [33, 28], [34, 29], [35, 29], [36, 22], [37, 22], [38, 21], [39, 36], [40, 22], [41, 22], [42, 39], [43, 40], [44, 40], [45, 40], [46, 40], [47, 37], [48, 36], [49, 36], [50, 44], [51, 45], [52, 46], [53, 47], [54, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "execP4Add", "code": "    private void execP4Add(StringBuffer list) {\n        log(\"Execing add \" + P4CmdOpts + \" \" + addCmd + list, Project.MSG_INFO);\n        execP4Command(\"-s add \" + P4CmdOpts + \" \" + addCmd + list, new SimpleP4OutputHandler(this));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [3, 6], [5, 7], [6, 8], [7, 9], [8, 10], [9, 11], [9, 12], [10, 13], [10, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 3], [7, 5], [8, 6], [9, 7], [10, 8], [11, 9], [12, 9], [13, 10], [14, 10], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 0}
{"sample_id": "jedit-4.1-4005", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/TextUtilities.java", "language": "java", "name": "org.gjt.sp.jedit.TextUtilities", "code": "public class TextUtilities\n{\n\t//{{{ getTokenAtOffset() method\n\t/**\n\t * Returns the token that contains the specified offset.\n\t * @param tokens The token list\n\t * @param offset The offset\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic static Token getTokenAtOffset(Token tokens, int offset)\n\t{\n\t\tif(offset == 0 && tokens.id == Token.END)\n\t\t\treturn tokens;\n\n\t\tfor(;;)\n\t\t{\n\t\t\tif(tokens.id == Token.END)\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"offset > line length\");\n\n\t\t\tif(tokens.offset + tokens.length > offset)\n\t\t\t\treturn tokens;\n\t\t\telse\n\t\t\t\ttokens = tokens.next;\n\t\t}\n\t} //}}}\n\n\t//{{{ findMatchingBracket() method\n\t/**\n\t * Returns the offset of the bracket matching the one at the\n\t * specified offset of the buffer, or -1 if the bracket is\n\t * unmatched (or if the character is not a bracket).\n\t * @param buffer The buffer\n\t * @param line The line\n\t * @param offset The offset within that line\n\t * @since jEdit 2.6pre1\n\t */\n\tpublic static int findMatchingBracket(Buffer buffer, int line, int offset)\n\t{\n\t\tif(offset < 0 || offset >= buffer.getLineLength(line))\n\t\t{\n\t\t\tthrow new ArrayIndexOutOfBoundsException(offset + \":\"\n\t\t\t\t+ buffer.getLineLength(line));\n\t\t}\n\n\t\tSegment lineText = new Segment();\n\t\tbuffer.getLineText(line,lineText);\n\n\t\tchar c = lineText.array[lineText.offset + offset];\n\t\tchar cprime; // corresponding character\n\t\tboolean direction; // false - backwards, true - forwards\n\n\t\tswitch(c)\n\t\t{\n\t\tcase '(': cprime = ')'; direction = true;  break;\n\t\tcase ')': cprime = '('; direction = false; break;\n\t\tcase '[': cprime = ']'; direction = true;  break;\n\t\tcase ']': cprime = '['; direction = false; break;\n\t\tcase '{': cprime = '}'; direction = true;  break;\n\t\tcase '}': cprime = '{'; direction = false; break;\n\t\tdefault: return -1;\n\t\t}\n\n\t\t// 1 because we've already 'seen' the first bracket\n\t\tint count = 1;\n\n\t\tDefaultTokenHandler tokenHandler = new DefaultTokenHandler();\n\t\tbuffer.markTokens(line,tokenHandler);\n\n\t\t// Get the syntax token at 'offset'\n\t\t// only tokens with the same type will be checked for\n\t\t// the corresponding bracket\n\t\tbyte idOfBracket = getTokenAtOffset(tokenHandler.getTokens(),offset).id;\n\n\t\tboolean haveTokens = true;\n\n\t\t//{{{ Forward search\n\t\tif(direction)\n\t\t{\n\t\t\toffset++;\n\n\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\tfor(int i = offset; i < lineText.count; i++)\n\t\t\t\t{\n\t\t\t\t\tchar ch = lineText.array[lineText.offset + i];\n\t\t\t\t\tif(ch == c)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!haveTokens)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttokenHandler.init();\n\t\t\t\t\t\t\tbuffer.markTokens(line,tokenHandler);\n\t\t\t\t\t\t\thaveTokens = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getTokenAtOffset(tokenHandler.getTokens(),i).id == idOfBracket)\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\telse if(ch == cprime)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!haveTokens)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttokenHandler.init();\n\t\t\t\t\t\t\tbuffer.markTokens(line,tokenHandler);\n\t\t\t\t\t\t\thaveTokens = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getTokenAtOffset(tokenHandler.getTokens(),i).id == idOfBracket)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcount--;\n\t\t\t\t\t\t\tif(count == 0)\n\t\t\t\t\t\t\t\treturn buffer.getLineStartOffset(line) + i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//{{{ Go on to next line\n\t\t\t\tline++;\n\t\t\t\tif(line >= buffer.getLineCount())\n\t\t\t\t\tbreak;\n\t\t\t\tbuffer.getLineText(line,lineText);\n\t\t\t\toffset = 0;\n\t\t\t\thaveTokens = false;\n\t\t\t\t//}}}\n\t\t\t}\n\t\t} //}}}\n\t\t//{{{ Backward search\n\t\telse\n\t\t{\n\t\t\toffset--;\n\n\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\tfor(int i = offset; i >= 0; i--)\n\t\t\t\t{\n\t\t\t\t\tchar ch = lineText.array[lineText.offset + i];\n\t\t\t\t\tif(ch == c)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!haveTokens)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttokenHandler.init();\n\t\t\t\t\t\t\tbuffer.markTokens(line,tokenHandler);\n\t\t\t\t\t\t\thaveTokens = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getTokenAtOffset(tokenHandler.getTokens(),i).id == idOfBracket)\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\telse if(ch == cprime)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!haveTokens)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttokenHandler.init();\n\t\t\t\t\t\t\tbuffer.markTokens(line,tokenHandler);\n\t\t\t\t\t\t\thaveTokens = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getTokenAtOffset(tokenHandler.getTokens(),i).id == idOfBracket)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcount--;\n\t\t\t\t\t\t\tif(count == 0)\n\t\t\t\t\t\t\t\treturn buffer.getLineStartOffset(line) + i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//{{{ Go on to next line\n\t\t\t\tline--;\n\t\t\t\tif(line < 0)\n\t\t\t\t\tbreak;\n\t\t\t\tbuffer.getLineText(line,lineText);\n\t\t\t\toffset = lineText.count - 1;\n\t\t\t\thaveTokens = false;\n\t\t\t\t//}}}\n\t\t\t}\n\t\t} //}}}\n\n\t\t// Nothing found\n\t\treturn -1;\n\t} //}}}\n\n\t//{{{ findMatchingBracketFuzzy() method\n\t/**\n\t * Works exactly like the findMatchingBracket(Bufferm int, int) method,\n\t * but if there is no (matching) bracket at the specified offset, it\n\t * looks at the next character too. The caller only needs to make sure\n\t * that the given offset is valid.\n\t * @param buffer The buffer\n\t * @param line The line\n\t * @param offset The offset within that line\n\t * @since 4.1pre1\n\t */\n\tpublic static int findMatchingBracketFuzzy(Buffer buffer, int line, int offset)\n\t{\n\t\tint result = findMatchingBracket(buffer,line,offset);\n\t\tif((result == -1)&&(offset + 1 < buffer.getLineLength(line)))\n\t\t{\n\t\t\treturn findMatchingBracket(buffer,line,offset + 1);\n\t\t}\n\t\telse{\n\t\t\treturn result;\t\n\t\t}\n\t} //}}}\n\n\t//{{{ findWordStart() method\n\t/**\n\t * Locates the start of the word at the specified position.\n\t * @param line The text\n\t * @param pos The position\n\t * @param noWordSep Characters that are non-alphanumeric, but\n\t * should be treated as word characters anyway\n\t */\n\tpublic static int findWordStart(String line, int pos, String noWordSep)\n\t{\n\t\treturn findWordStart(line, pos, noWordSep, true);\n\t} //}}}\n\n\t//{{{ findWordStart() method\n\t/**\n\t * Locates the start of the word at the specified position.\n\t * @param line The text\n\t * @param pos The position\n\t * @param noWordSep Characters that are non-alphanumeric, but\n\t * should be treated as word characters anyway\n\t * @param joinNonWordChars Treat consecutive non-alphanumeric\n\t * characters as one word\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic static int findWordStart(String line, int pos, String noWordSep,\n\t\t\t\t\tboolean joinNonWordChars)\n\t{\n\t\tchar ch = line.charAt(pos);\n\n\t\tif(noWordSep == null)\n\t\t\tnoWordSep = \"\";\n\n\t\t//{{{ the character under the cursor changes how we behave.\n\t\tint type;\n\t\tif(Character.isWhitespace(ch))\n\t\t\ttype = WHITESPACE;\n\t\telse if(Character.isLetterOrDigit(ch)\n\t\t\t|| noWordSep.indexOf(ch) != -1)\n\t\t\ttype = WORD_CHAR;\n\t\telse\n\t\t\ttype = SYMBOL;\n\t\t//}}}\n\n\t\tint whiteSpaceEnd = 0;\nloop:\t\tfor(int i = pos; i >= 0; i--)\n\t\t{\n\t\t\tch = line.charAt(i);\n\t\t\tswitch(type)\n\t\t\t{\n\t\t\t//{{{ Whitespace...\n\t\t\tcase WHITESPACE:\n\t\t\t\t// only select other whitespace in this case\n\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\treturn i + 1; //}}}\n\t\t\t//{{{ Word character...\n\t\t\tcase WORD_CHAR:\n\t\t\t\tif(Character.isLetterOrDigit(ch) ||\n\t\t\t\t\tnoWordSep.indexOf(ch) != -1)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn i + 1; //}}}\n\t\t\t//{{{ Symbol...\n\t\t\tcase SYMBOL:\n\t\t\t\tif(!joinNonWordChars && pos!=i) return i + 1;\n\t\t\t\t// if we see whitespace, set flag.\n\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t{\n\t\t\t\t\treturn i + 1;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLetterOrDigit(ch) ||\n\t\t\t\t\tnoWordSep.indexOf(ch) != -1)\n\t\t\t\t{\n\t\t\t\t\treturn i + 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t} //}}}\n\t\t\t}\n\t\t}\n\n\t\treturn whiteSpaceEnd;\n\t} //}}}\n\n\t//{{{ findWordEnd() method\n\t/**\n\t * Locates the end of the word at the specified position.\n\t * @param line The text\n\t * @param pos The position\n\t * @param noWordSep Characters that are non-alphanumeric, but\n\t * should be treated as word characters anyway\n\t */\n\tpublic static int findWordEnd(String line, int pos, String noWordSep)\n\t{\n\t\treturn findWordEnd(line, pos, noWordSep, true);\n\t} //}}}\n\n\t//{{{ findWordEnd() method\n\t/**\n\t * Locates the end of the word at the specified position.\n\t * @param line The text\n\t * @param pos The position\n\t * @param noWordSep Characters that are non-alphanumeric, but\n\t * should be treated as word characters anyway\n\t * @param joinNonWordChars Treat consecutive non-alphanumeric\n\t * characters as one word\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic static int findWordEnd(String line, int pos, String noWordSep,\n\t\t\t\t\tboolean joinNonWordChars)\n\t{\n\t\tif(pos != 0)\n\t\t\tpos--;\n\n\t\tchar ch = line.charAt(pos);\n\n\t\tif(noWordSep == null)\n\t\t\tnoWordSep = \"\";\n\n\t\t//{{{ the character under the cursor changes how we behave.\n\t\tint type;\n\t\tif(Character.isWhitespace(ch))\n\t\t\ttype = WHITESPACE;\n\t\telse if(Character.isLetterOrDigit(ch)\n\t\t\t|| noWordSep.indexOf(ch) != -1)\n\t\t\ttype = WORD_CHAR;\n\t\telse\n\t\t\ttype = SYMBOL;\n\t\t//}}}\n\nloop:\t\tfor(int i = pos; i < line.length(); i++)\n\t\t{\n\t\t\tch = line.charAt(i);\n\t\t\tswitch(type)\n\t\t\t{\n\t\t\t//{{{ Whitespace...\n\t\t\tcase WHITESPACE:\n\t\t\t\t// only select other whitespace in this case\n\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\treturn i; //}}}\n\t\t\t//{{{ Word character...\n\t\t\tcase WORD_CHAR:\n\t\t\t\tif(Character.isLetterOrDigit(ch) ||\n\t\t\t\t\tnoWordSep.indexOf(ch) != -1)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn i; //}}}\n\t\t\t//{{{ Symbol...\n\t\t\tcase SYMBOL:\n\t\t\t\tif(!joinNonWordChars && i!=pos) return i;\n\t\t\t\t// if we see whitespace, set flag.\n\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t{\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLetterOrDigit(ch) ||\n\t\t\t\t\tnoWordSep.indexOf(ch) != -1)\n\t\t\t\t\treturn i;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t} //}}}\n\t\t\t}\n\t\t}\n\n\t\treturn line.length();\n\t} //}}}\n\n\t//{{{ regionMatches() method\n\t/**\n\t * Checks if a subregion of a <code>Segment</code> is equal to a\n\t * character array.\n\t * @param ignoreCase True if case should be ignored, false otherwise\n\t * @param text The segment\n\t * @param offset The offset into the segment\n\t * @param match The character array to match\n\t * @since jEdit 2.7pre1\n\t */\n\tpublic static boolean regionMatches(boolean ignoreCase, Segment text,\n\t\tint offset, char[] match)\n\t{\n\t\tint length = offset + match.length;\n\t\tif(length > text.offset + text.count)\n\t\t\treturn false;\n\t\tchar[] textArray = text.array;\n\t\tfor(int i = offset, j = 0; i < length; i++, j++)\n\t\t{\n\t\t\tchar c1 = textArray[i];\n\t\t\tchar c2 = match[j];\n\t\t\tif(ignoreCase)\n\t\t\t{\n\t\t\t\tc1 = Character.toUpperCase(c1);\n\t\t\t\tc2 = Character.toUpperCase(c2);\n\t\t\t}\n\t\t\tif(c1 != c2)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ spacesToTabs() method\n\t/**\n\t * Converts consecutive spaces to tabs in the specified string.\n\t * @param in The string\n\t * @param tabSize The tab size\n\t */\n\tpublic static String spacesToTabs(String in, int tabSize)\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tint width = 0;\n\t\tint whitespace = 0;\n\t\tfor(int i = 0; i < in.length(); i++)\n\t\t{\n\t\t\tswitch(in.charAt(i))\n\t\t\t{\n\t\t\tcase ' ':\n\t\t\t\twhitespace++;\n\t\t\t\twidth++;\n\t\t\t\tbreak;\n\t\t\tcase '\\t':\n\t\t\t\tint tab = tabSize - (width % tabSize);\n\t\t\t\twidth += tab;\n\t\t\t\twhitespace += tab;\n\t\t\t\tbreak;\n\t\t\tcase '\\n':\n\t\t\t\tif(whitespace != 0)\n\t\t\t\t{\n\t\t\t\t\tbuf.append(MiscUtilities\n\t\t\t\t\t\t.createWhiteSpace(whitespace,tabSize));\n\t\t\t\t}\n\t\t\t\twhitespace = 0;\n\t\t\t\twidth = 0;\n\t\t\t\tbuf.append('\\n');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(whitespace != 0)\n\t\t\t\t{\n\t\t\t\t\tbuf.append(MiscUtilities\n\t\t\t\t\t\t.createWhiteSpace(whitespace,tabSize));\n\t\t\t\t\twhitespace = 0;\n\t\t\t\t}\n\t\t\t\tbuf.append(in.charAt(i));\n\t\t\t\twidth++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(whitespace != 0)\n\t\t{\n\t\t\tbuf.append(MiscUtilities.createWhiteSpace(whitespace,tabSize));\n\t\t}\n\n                return buf.toString();\n\t} //}}}\n\n\t//{{{ tabsToSpaces() method\n\t/**\n\t * Converts tabs to consecutive spaces in the specified string.\n\t * @param in The string\n\t * @param tabSize The tab size\n\t */\n\tpublic static String tabsToSpaces(String in, int tabSize)\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tint width = 0;\n\t\tfor(int i = 0; i < in.length(); i++)\n\t\t{\n\t\t\tswitch(in.charAt(i))\n\t\t\t{\n\t\t\tcase '\\t':\n\t\t\t\tint count = tabSize - (width % tabSize);\n\t\t\t\twidth += count;\n\t\t\t\twhile(--count >= 0)\n\t\t\t\t\tbuf.append(' ');\n\t\t\t\tbreak;\n\t\t\tcase '\\n':\n\t\t\t\twidth = 0;\n\t\t\t\tbuf.append(in.charAt(i));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\twidth++;\n\t\t\t\tbuf.append(in.charAt(i));\n\t\t\t\tbreak;\n                        }\n                }\n                return buf.toString();\n\t} //}}}\n\n\t//{{{ format() method\n\t/**\n\t * Formats the specified text by merging and breaking lines to the\n\t * specified width.\n\t * @param text The text\n\t * @param maxLineLen The maximum line length\n\t */\n\tpublic static String format(String text, int maxLineLength, int tabSize)\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\n\t\tint index = 0;\n\n\t\tfor(;;)\n\t\t{\n\t\t\tint newIndex = text.indexOf(\"\\n\\n\",index);\n\t\t\tif(newIndex == -1)\n\t\t\t\tbreak;\n\n\t\t\tformatParagraph(text.substring(index,newIndex),\n\t\t\t\tmaxLineLength,tabSize,buf);\n\t\t\tbuf.append(\"\\n\\n\");\n\t\t\tindex = newIndex + 2;\n\t\t}\n\n\t\tif(index != text.length())\n\t\t{\n\t\t\tformatParagraph(text.substring(index),\n\t\t\t\tmaxLineLength,tabSize,buf);\n\t\t}\n\n\t\treturn buf.toString();\n\t} //}}}\n\n\t//{{{ getStringCase() method\n\tpublic static final int MIXED = 0;\n\tpublic static final int LOWER_CASE = 1;\n\tpublic static final int UPPER_CASE = 2;\n\tpublic static final int TITLE_CASE = 3;\n\n\t/**\n\t * Returns if the specified string is all upper case, all lower case,\n\t * or title case (first letter upper case, rest lower case).\n\t * @param str The string\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static int getStringCase(String str)\n\t{\n\t\tif(str.length() == 0)\n\t\t\treturn MIXED;\n\n\t\tint state = -1;\n\n\t\tchar ch = str.charAt(0);\n\t\tif(Character.isLetter(ch))\n\t\t{\n\t\t\tif(Character.isUpperCase(ch))\n\t\t\t\tstate = UPPER_CASE;\n\t\t\telse\n\t\t\t\tstate = LOWER_CASE;\n\t\t}\n\n\t\tfor(int i = 1; i < str.length(); i++)\n\t\t{\n\t\t\tch = str.charAt(i);\n\t\t\tif(!Character.isLetter(ch))\n\t\t\t\tcontinue;\n\n\t\t\tswitch(state)\n\t\t\t{\n\t\t\tcase UPPER_CASE:\n\t\t\t\tif(Character.isLowerCase(ch))\n\t\t\t\t{\n\t\t\t\t\tif(i == 1)\n\t\t\t\t\t\tstate = TITLE_CASE;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn MIXED;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LOWER_CASE:\n\t\t\tcase TITLE_CASE:\n\t\t\t\tif(Character.isUpperCase(ch))\n\t\t\t\t\treturn MIXED;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn state;\n\t} //}}}\n\n\t//{{{ toTitleCase() method\n\t/**\n\t * Converts the specified string to title case, by capitalizing the\n\t * first letter.\n\t * @param str The string\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static String toTitleCase(String str)\n\t{\n\t\tif(str.length() == 0)\n\t\t\treturn str;\n\t\telse\n\t\t{\n\t\t\treturn Character.toUpperCase(str.charAt(0))\n\t\t\t\t+ str.substring(1).toLowerCase();\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static final int WHITESPACE = 0;\n\tprivate static final int WORD_CHAR = 1;\n\tprivate static final int SYMBOL = 2;\n\n\t//{{{ formatParagraph() method\n\tprivate static void formatParagraph(String text, int maxLineLength,\n\t\tint tabSize, StringBuffer buf)\n\t{\n\t\t// align everything to paragraph's leading indent\n\t\tint leadingWhitespaceCount = MiscUtilities.getLeadingWhiteSpace(text);\n\t\tString leadingWhitespace = text.substring(0,leadingWhitespaceCount);\n\t\tint leadingWhitespaceWidth = MiscUtilities.getLeadingWhiteSpaceWidth(text,tabSize);\n\n\t\tbuf.append(leadingWhitespace);\n\n\t\tint lineLength = leadingWhitespaceWidth;\n\t\tStringTokenizer st = new StringTokenizer(text);\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString word = st.nextToken();\n\t\t\tif(lineLength == leadingWhitespaceWidth)\n\t\t\t{\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\telse if(lineLength + word.length() + 1 > maxLineLength)\n\t\t\t{\n\t\t\t\tbuf.append('\\n');\n\t\t\t\tbuf.append(leadingWhitespace);\n\t\t\t\tlineLength = leadingWhitespaceWidth;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuf.append(' ');\n\t\t\t\tlineLength++;\n\t\t\t}\n\t\t\tbuf.append(word);\n\t\t\tlineLength += word.length();", "functions": [{"function_name": "getTokenAtOffset", "code": "\tpublic static Token getTokenAtOffset(Token tokens, int offset)\n\t{\n\t\tif(offset == 0 && tokens.id == Token.END)\n\t\t\treturn tokens;\n\n\t\tfor(;;)\n\t\t{\n\t\t\tif(tokens.id == Token.END)\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"offset > line length\");\n\n\t\t\tif(tokens.offset + tokens.length > offset)\n\t\t\t\treturn tokens;\n\t\t\telse\n\t\t\t\ttokens = tokens.next;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "PARAM", "RETURN", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [1, 7], [1, 8], [6, 9], [6, 10], [7, 11], [7, 12], [8, 13], [8, 14], [10, 15], [7, 16], [12, 17], [13, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 1], [8, 1], [9, 6], [10, 6], [11, 7], [12, 7], [13, 8], [14, 8], [15, 10], [16, 7], [17, 12], [18, 13], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "findMatchingBracket", "code": "\tpublic static int findMatchingBracket(Buffer buffer, int line, int offset)\n\t{\n\t\tif(offset < 0 || offset >= buffer.getLineLength(line))\n\t\t{\n\t\t\tthrow new ArrayIndexOutOfBoundsException(offset + \":\"\n\t\t\t\t+ buffer.getLineLength(line));\n\t\t}\n\n\t\tSegment lineText = new Segment();\n\t\tbuffer.getLineText(line,lineText);\n\n\t\tchar c = lineText.array[lineText.offset + offset];\n\t\tchar cprime; // corresponding character\n\t\tboolean direction; // false - backwards, true - forwards\n\n\t\tswitch(c)\n\t\t{\n\t\tcase '(': cprime = ')'; direction = true;  break;\n\t\tcase ')': cprime = '('; direction = false; break;\n\t\tcase '[': cprime = ']'; direction = true;  break;\n\t\tcase ']': cprime = '['; direction = false; break;\n\t\tcase '{': cprime = '}'; direction = true;  break;\n\t\tcase '}': cprime = '{'; direction = false; break;\n\t\tdefault: return -1;\n\t\t}\n\n\t\t// 1 because we've already 'seen' the first bracket\n\t\tint count = 1;\n\n\t\tDefaultTokenHandler tokenHandler = new DefaultTokenHandler();\n\t\tbuffer.markTokens(line,tokenHandler);\n\n\t\t// Get the syntax token at 'offset'\n\t\t// only tokens with the same type will be checked for\n\t\t// the corresponding bracket\n\t\tbyte idOfBracket = getTokenAtOffset(tokenHandler.getTokens(),offset).id;\n\n\t\tboolean haveTokens = true;\n\n\t\t//{{{ Forward search\n\t\tif(direction)\n\t\t{\n\t\t\toffset++;\n\n\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\tfor(int i = offset; i < lineText.count; i++)\n\t\t\t\t{\n\t\t\t\t\tchar ch = lineText.array[lineText.offset + i];\n\t\t\t\t\tif(ch == c)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!haveTokens)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttokenHandler.init();\n\t\t\t\t\t\t\tbuffer.markTokens(line,tokenHandler);\n\t\t\t\t\t\t\thaveTokens = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getTokenAtOffset(tokenHandler.getTokens(),i).id == idOfBracket)\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\telse if(ch == cprime)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!haveTokens)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttokenHandler.init();\n\t\t\t\t\t\t\tbuffer.markTokens(line,tokenHandler);\n\t\t\t\t\t\t\thaveTokens = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getTokenAtOffset(tokenHandler.getTokens(),i).id == idOfBracket)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcount--;\n\t\t\t\t\t\t\tif(count == 0)\n\t\t\t\t\t\t\t\treturn buffer.getLineStartOffset(line) + i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//{{{ Go on to next line\n\t\t\t\tline++;\n\t\t\t\tif(line >= buffer.getLineCount())\n\t\t\t\t\tbreak;\n\t\t\t\tbuffer.getLineText(line,lineText);\n\t\t\t\toffset = 0;\n\t\t\t\thaveTokens = false;\n\t\t\t\t//}}}\n\t\t\t}\n\t\t} //}}}\n\t\t//{{{ Backward search\n\t\telse\n\t\t{\n\t\t\toffset--;\n\n\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\tfor(int i = offset; i >= 0; i--)\n\t\t\t\t{\n\t\t\t\t\tchar ch = lineText.array[lineText.offset + i];\n\t\t\t\t\tif(ch == c)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!haveTokens)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttokenHandler.init();\n\t\t\t\t\t\t\tbuffer.markTokens(line,tokenHandler);\n\t\t\t\t\t\t\thaveTokens = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getTokenAtOffset(tokenHandler.getTokens(),i).id == idOfBracket)\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\telse if(ch == cprime)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!haveTokens)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttokenHandler.init();\n\t\t\t\t\t\t\tbuffer.markTokens(line,tokenHandler);\n\t\t\t\t\t\t\thaveTokens = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getTokenAtOffset(tokenHandler.getTokens(),i).id == idOfBracket)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcount--;\n\t\t\t\t\t\t\tif(count == 0)\n\t\t\t\t\t\t\t\treturn buffer.getLineStartOffset(line) + i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//{{{ Go on to next line\n\t\t\t\tline--;\n\t\t\t\tif(line < 0)\n\t\t\t\t\tbreak;\n\t\t\t\tbuffer.getLineText(line,lineText);\n\t\t\t\toffset = lineText.count - 1;\n\t\t\t\thaveTokens = false;\n\t\t\t\t//}}}\n\t\t\t}\n\t\t} //}}}\n\n\t\t// Nothing found\n\t\treturn -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LOOP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LOOP", "IF", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "IF", "IF", "BINARY_OP", "IF", "IF", "IF", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "IF", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [0, 17], [0, 18], [12, 19], [2, 20], [2, 21], [3, 22], [4, 23], [5, 24], [6, 25], [7, 26], [7, 27], [7, 28], [7, 29], [7, 30], [7, 31], [7, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [7, 38], [11, 39], [12, 40], [19, 41], [19, 42], [23, 43], [26, 44], [7, 45], [7, 46], [7, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 52], [7, 53], [7, 54], [7, 55], [7, 56], [40, 57], [41, 58], [42, 59], [20, 60], [20, 61], [21, 62], [21, 63], [45, 64], [46, 65], [47, 66], [48, 67], [49, 68], [50, 69], [51, 70], [52, 71], [53, 72], [54, 73], [55, 74], [56, 75], [10, 76], [57, 77], [20, 78], [20, 79], [20, 80], [60, 81], [60, 82], [61, 83], [21, 84], [21, 85], [21, 86], [62, 87], [62, 88], [63, 89], [77, 90], [77, 91], [78, 92], [79, 93], [82, 94], [61, 95], [61, 96], [83, 97], [84, 98], [85, 99], [88, 100], [63, 101], [63, 102], [91, 103], [93, 104], [95, 105], [95, 106], [101, 107], [101, 108], [105, 109], [95, 110], [95, 111], [107, 112], [101, 113], [101, 114], [105, 115], [105, 116], [110, 117], [107, 118], [107, 119], [113, 120], [115, 121], [117, 122], [96, 123], [118, 124], [120, 125], [102, 126], [115, 127], [121, 128], [122, 129], [111, 130], [111, 131], [111, 132], [118, 133], [124, 134], [125, 135], [114, 136], [114, 137], [114, 138], [127, 139], [127, 140], [128, 141], [116, 142], [116, 143], [116, 144], [130, 145], [133, 146], [133, 147], [134, 148], [119, 149], [119, 150], [119, 151], [136, 152], [139, 153], [140, 154], [142, 155], [146, 156], [147, 157], [149, 158], [153, 159], [156, 160], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 0], [18, 0], [19, 12], [20, 2], [21, 2], [22, 3], [23, 4], [24, 5], [25, 6], [26, 7], [27, 7], [28, 7], [29, 7], [30, 7], [31, 7], [32, 7], [33, 7], [34, 7], [35, 7], [36, 7], [37, 7], [38, 7], [39, 11], [40, 12], [41, 19], [42, 19], [43, 23], [44, 26], [45, 7], [46, 7], [47, 7], [48, 7], [49, 7], [50, 7], [51, 7], [52, 7], [53, 7], [54, 7], [55, 7], [56, 7], [57, 40], [58, 41], [59, 42], [60, 20], [61, 20], [62, 21], [63, 21], [64, 45], [65, 46], [66, 47], [67, 48], [68, 49], [69, 50], [70, 51], [71, 52], [72, 53], [73, 54], [74, 55], [75, 56], [76, 10], [77, 57], [78, 20], [79, 20], [80, 20], [81, 60], [82, 60], [83, 61], [84, 21], [85, 21], [86, 21], [87, 62], [88, 62], [89, 63], [90, 77], [91, 77], [92, 78], [93, 79], [94, 82], [95, 61], [96, 61], [97, 83], [98, 84], [99, 85], [100, 88], [101, 63], [102, 63], [103, 91], [104, 93], [105, 95], [106, 95], [107, 101], [108, 101], [109, 105], [110, 95], [111, 95], [112, 107], [113, 101], [114, 101], [115, 105], [116, 105], [117, 110], [118, 107], [119, 107], [120, 113], [121, 115], [122, 117], [123, 96], [124, 118], [125, 120], [126, 102], [127, 115], [128, 121], [129, 122], [130, 111], [131, 111], [132, 111], [133, 118], [134, 124], [135, 125], [136, 114], [137, 114], [138, 114], [139, 127], [140, 127], [141, 128], [142, 116], [143, 116], [144, 116], [145, 130], [146, 133], [147, 133], [148, 134], [149, 119], [150, 119], [151, 119], [152, 136], [153, 139], [154, 140], [155, 142], [156, 146], [157, 147], [158, 149], [159, 153], [160, 156], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160]]}, {"function_name": "findMatchingBracketFuzzy", "code": "\tpublic static int findMatchingBracketFuzzy(Buffer buffer, int line, int offset)\n\t{\n\t\tint result = findMatchingBracket(buffer,line,offset);\n\t\tif((result == -1)&&(offset + 1 < buffer.getLineLength(line)))\n\t\t{\n\t\t\treturn findMatchingBracket(buffer,line,offset + 1);\n\t\t}\n\t\telse{\n\t\t\treturn result;\t", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [6, 10], [2, 11], [8, 12], [9, 13], [9, 14], [10, 15], [12, 16], [14, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 6], [11, 2], [12, 8], [13, 9], [14, 9], [15, 10], [16, 12], [17, 14], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "findWordStart", "code": "\tpublic static int findWordStart(String line, int pos, String noWordSep)\n\t{\n\t\treturn findWordStart(line, pos, noWordSep, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "findWordStart", "code": "\tpublic static int findWordStart(String line, int pos, String noWordSep,\n\t\t\t\t\tboolean joinNonWordChars)\n\t{\n\t\tchar ch = line.charAt(pos);\n\n\t\tif(noWordSep == null)\n\t\t\tnoWordSep = \"\";\n\n\t\t//{{{ the character under the cursor changes how we behave.\n\t\tint type;\n\t\tif(Character.isWhitespace(ch))\n\t\t\ttype = WHITESPACE;\n\t\telse if(Character.isLetterOrDigit(ch)\n\t\t\t|| noWordSep.indexOf(ch) != -1)\n\t\t\ttype = WORD_CHAR;\n\t\telse\n\t\t\ttype = SYMBOL;\n\t\t//}}}\n\n\t\tint whiteSpaceEnd = 0;\nloop:\t\tfor(int i = pos; i >= 0; i--)\n\t\t{\n\t\t\tch = line.charAt(i);\n\t\t\tswitch(type)\n\t\t\t{\n\t\t\t//{{{ Whitespace...\n\t\t\tcase WHITESPACE:\n\t\t\t\t// only select other whitespace in this case\n\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\treturn i + 1; //}}}\n\t\t\t//{{{ Word character...\n\t\t\tcase WORD_CHAR:\n\t\t\t\tif(Character.isLetterOrDigit(ch) ||\n\t\t\t\t\tnoWordSep.indexOf(ch) != -1)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn i + 1; //}}}\n\t\t\t//{{{ Symbol...\n\t\t\tcase SYMBOL:\n\t\t\t\tif(!joinNonWordChars && pos!=i) return i + 1;\n\t\t\t\t// if we see whitespace, set flag.\n\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t{\n\t\t\t\t\treturn i + 1;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLetterOrDigit(ch) ||\n\t\t\t\t\tnoWordSep.indexOf(ch) != -1)\n\t\t\t\t{\n\t\t\t\t\treturn i + 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t} //}}}\n\t\t\t}\n\t\t}\n\n\t\treturn whiteSpaceEnd;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BREAK_CONTINUE", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [4, 13], [4, 14], [6, 15], [2, 16], [12, 17], [3, 18], [13, 19], [4, 20], [6, 21], [15, 22], [7, 23], [2, 24], [13, 25], [13, 26], [19, 27], [19, 28], [21, 29], [16, 30], [16, 31], [16, 32], [16, 33], [24, 34], [27, 35], [27, 36], [30, 37], [30, 38], [31, 39], [31, 40], [32, 41], [32, 42], [33, 43], [33, 44], [33, 45], [37, 46], [30, 47], [39, 48], [40, 49], [41, 50], [32, 51], [42, 52], [42, 53], [43, 54], [37, 55], [37, 56], [46, 57], [46, 58], [47, 59], [48, 60], [50, 61], [52, 62], [52, 63], [54, 64], [56, 65], [57, 66], [57, 67], [59, 68], [65, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 4], [14, 4], [15, 6], [16, 2], [17, 12], [18, 3], [19, 13], [20, 4], [21, 6], [22, 15], [23, 7], [24, 2], [25, 13], [26, 13], [27, 19], [28, 19], [29, 21], [30, 16], [31, 16], [32, 16], [33, 16], [34, 24], [35, 27], [36, 27], [37, 30], [38, 30], [39, 31], [40, 31], [41, 32], [42, 32], [43, 33], [44, 33], [45, 33], [46, 37], [47, 30], [48, 39], [49, 40], [50, 41], [51, 32], [52, 42], [53, 42], [54, 43], [55, 37], [56, 37], [57, 46], [58, 46], [59, 47], [60, 48], [61, 50], [62, 52], [63, 52], [64, 54], [65, 56], [66, 57], [67, 57], [68, 59], [69, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "findWordEnd", "code": "\tpublic static int findWordEnd(String line, int pos, String noWordSep)\n\t{\n\t\treturn findWordEnd(line, pos, noWordSep, true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "findWordEnd", "code": "\tpublic static int findWordEnd(String line, int pos, String noWordSep,\n\t\t\t\t\tboolean joinNonWordChars)\n\t{\n\t\tif(pos != 0)\n\t\t\tpos--;\n\n\t\tchar ch = line.charAt(pos);\n\n\t\tif(noWordSep == null)\n\t\t\tnoWordSep = \"\";\n\n\t\t//{{{ the character under the cursor changes how we behave.\n\t\tint type;\n\t\tif(Character.isWhitespace(ch))\n\t\t\ttype = WHITESPACE;\n\t\telse if(Character.isLetterOrDigit(ch)\n\t\t\t|| noWordSep.indexOf(ch) != -1)\n\t\t\ttype = WORD_CHAR;\n\t\telse\n\t\t\ttype = SYMBOL;\n\t\t//}}}\n\nloop:\t\tfor(int i = pos; i < line.length(); i++)\n\t\t{\n\t\t\tch = line.charAt(i);\n\t\t\tswitch(type)\n\t\t\t{\n\t\t\t//{{{ Whitespace...\n\t\t\tcase WHITESPACE:\n\t\t\t\t// only select other whitespace in this case\n\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\treturn i; //}}}\n\t\t\t//{{{ Word character...\n\t\t\tcase WORD_CHAR:\n\t\t\t\tif(Character.isLetterOrDigit(ch) ||\n\t\t\t\t\tnoWordSep.indexOf(ch) != -1)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn i; //}}}\n\t\t\t//{{{ Symbol...\n\t\t\tcase SYMBOL:\n\t\t\t\tif(!joinNonWordChars && i!=pos) return i;\n\t\t\t\t// if we see whitespace, set flag.\n\t\t\t\tif(Character.isWhitespace(ch))\n\t\t\t\t{\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLetterOrDigit(ch) ||\n\t\t\t\t\tnoWordSep.indexOf(ch) != -1)\n\t\t\t\t\treturn i;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t} //}}}\n\t\t\t}\n\t\t}\n\n\t\treturn line.length();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "BINARY_OP", "SWITCH", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BREAK_CONTINUE", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [3, 14], [3, 15], [5, 16], [7, 17], [2, 18], [13, 19], [14, 20], [3, 21], [5, 22], [16, 23], [6, 24], [17, 25], [2, 26], [14, 27], [14, 28], [20, 29], [20, 30], [22, 31], [18, 32], [18, 33], [18, 34], [18, 35], [26, 36], [29, 37], [29, 38], [32, 39], [32, 40], [33, 41], [33, 42], [34, 43], [34, 44], [35, 45], [35, 46], [35, 47], [39, 48], [39, 49], [32, 50], [42, 51], [34, 52], [44, 53], [44, 54], [39, 55], [49, 56], [49, 57], [53, 58], [53, 59], [56, 60], [56, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 3], [15, 3], [16, 5], [17, 7], [18, 2], [19, 13], [20, 14], [21, 3], [22, 5], [23, 16], [24, 6], [25, 17], [26, 2], [27, 14], [28, 14], [29, 20], [30, 20], [31, 22], [32, 18], [33, 18], [34, 18], [35, 18], [36, 26], [37, 29], [38, 29], [39, 32], [40, 32], [41, 33], [42, 33], [43, 34], [44, 34], [45, 35], [46, 35], [47, 35], [48, 39], [49, 39], [50, 32], [51, 42], [52, 34], [53, 44], [54, 44], [55, 39], [56, 49], [57, 49], [58, 53], [59, 53], [60, 56], [61, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "regionMatches", "code": "\tpublic static boolean regionMatches(boolean ignoreCase, Segment text,\n\t\tint offset, char[] match)\n\t{\n\t\tint length = offset + match.length;\n\t\tif(length > text.offset + text.count)\n\t\t\treturn false;\n\t\tchar[] textArray = text.array;\n\t\tfor(int i = offset, j = 0; i < length; i++, j++)\n\t\t{\n\t\t\tchar c1 = textArray[i];\n\t\t\tchar c2 = match[j];\n\t\t\tif(ignoreCase)\n\t\t\t{\n\t\t\t\tc1 = Character.toUpperCase(c1);\n\t\t\t\tc2 = Character.toUpperCase(c2);\n\t\t\t}\n\t\t\tif(c1 != c2)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [4, 12], [4, 13], [2, 14], [2, 15], [2, 16], [2, 17], [12, 18], [13, 19], [5, 20], [14, 21], [14, 22], [2, 23], [21, 24], [15, 25], [15, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 4], [13, 4], [14, 2], [15, 2], [16, 2], [17, 2], [18, 12], [19, 13], [20, 5], [21, 14], [22, 14], [23, 2], [24, 21], [25, 15], [26, 15], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "spacesToTabs", "code": "\tpublic static String spacesToTabs(String in, int tabSize)\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tint width = 0;\n\t\tint whitespace = 0;\n\t\tfor(int i = 0; i < in.length(); i++)\n\t\t{\n\t\t\tswitch(in.charAt(i))\n\t\t\t{\n\t\t\tcase ' ':\n\t\t\t\twhitespace++;\n\t\t\t\twidth++;\n\t\t\t\tbreak;\n\t\t\tcase '\\t':\n\t\t\t\tint tab = tabSize - (width % tabSize);\n\t\t\t\twidth += tab;\n\t\t\t\twhitespace += tab;\n\t\t\t\tbreak;\n\t\t\tcase '\\n':\n\t\t\t\tif(whitespace != 0)\n\t\t\t\t{\n\t\t\t\t\tbuf.append(MiscUtilities\n\t\t\t\t\t\t.createWhiteSpace(whitespace,tabSize));\n\t\t\t\t}\n\t\t\t\twhitespace = 0;\n\t\t\t\twidth = 0;\n\t\t\t\tbuf.append('\\n');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(whitespace != 0)\n\t\t\t\t{\n\t\t\t\t\tbuf.append(MiscUtilities\n\t\t\t\t\t\t.createWhiteSpace(whitespace,tabSize));\n\t\t\t\t\twhitespace = 0;\n\t\t\t\t}\n\t\t\t\tbuf.append(in.charAt(i));\n\t\t\t\twidth++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(whitespace != 0)\n\t\t{\n\t\t\tbuf.append(MiscUtilities.createWhiteSpace(whitespace,tabSize));\n\t\t}\n\n                return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "SWITCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "VAR_DECL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [10, 12], [3, 13], [11, 14], [4, 15], [5, 16], [6, 17], [2, 18], [13, 19], [3, 20], [18, 21], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [13, 27], [13, 28], [13, 29], [13, 30], [13, 31], [13, 32], [23, 33], [13, 34], [13, 35], [13, 36], [25, 37], [13, 38], [13, 39], [32, 40], [33, 41], [34, 42], [35, 43], [36, 44], [37, 45], [28, 46], [23, 47], [23, 48], [25, 49], [46, 50], [47, 51], [48, 52], [49, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 10], [13, 3], [14, 11], [15, 4], [16, 5], [17, 6], [18, 2], [19, 13], [20, 3], [21, 18], [22, 13], [23, 13], [24, 13], [25, 13], [26, 13], [27, 13], [28, 13], [29, 13], [30, 13], [31, 13], [32, 13], [33, 23], [34, 13], [35, 13], [36, 13], [37, 25], [38, 13], [39, 13], [40, 32], [41, 33], [42, 34], [43, 35], [44, 36], [45, 37], [46, 28], [47, 23], [48, 23], [49, 25], [50, 46], [51, 47], [52, 48], [53, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "tabsToSpaces", "code": "\tpublic static String tabsToSpaces(String in, int tabSize)\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tint width = 0;\n\t\tfor(int i = 0; i < in.length(); i++)\n\t\t{\n\t\t\tswitch(in.charAt(i))\n\t\t\t{\n\t\t\tcase '\\t':\n\t\t\t\tint count = tabSize - (width % tabSize);\n\t\t\t\twidth += count;\n\t\t\t\twhile(--count >= 0)\n\t\t\t\t\tbuf.append(' ');\n\t\t\t\tbreak;\n\t\t\tcase '\\n':\n\t\t\t\twidth = 0;\n\t\t\t\tbuf.append(in.charAt(i));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\twidth++;\n\t\t\t\tbuf.append(in.charAt(i));\n\t\t\t\tbreak;\n                        }\n                }\n                return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "SWITCH", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [8, 10], [3, 11], [4, 12], [9, 13], [2, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [9, 20], [9, 21], [9, 22], [9, 23], [9, 24], [19, 25], [9, 26], [22, 27], [23, 28], [24, 29], [19, 30], [25, 31], [20, 32], [30, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 8], [11, 3], [12, 4], [13, 9], [14, 2], [15, 9], [16, 9], [17, 9], [18, 9], [19, 9], [20, 9], [21, 9], [22, 9], [23, 9], [24, 9], [25, 19], [26, 9], [27, 22], [28, 23], [29, 24], [30, 19], [31, 25], [32, 20], [33, 30], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "format", "code": "\tpublic static String format(String text, int maxLineLength, int tabSize)\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\n\t\tint index = 0;\n\n\t\tfor(;;)\n\t\t{\n\t\t\tint newIndex = text.indexOf(\"\\n\\n\",index);\n\t\t\tif(newIndex == -1)\n\t\t\t\tbreak;\n\n\t\t\tformatParagraph(text.substring(index,newIndex),\n\t\t\t\tmaxLineLength,tabSize,buf);\n\t\t\tbuf.append(\"\\n\\n\");\n\t\t\tindex = newIndex + 2;\n\t\t}\n\n\t\tif(index != text.length())\n\t\t{\n\t\t\tformatParagraph(text.substring(index),\n\t\t\t\tmaxLineLength,tabSize,buf);\n\t\t}\n\n\t\treturn buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [10, 11], [3, 12], [3, 13], [4, 14], [5, 15], [2, 16], [3, 17], [3, 18], [3, 19], [12, 20], [12, 21], [16, 22], [17, 23], [18, 24], [19, 25], [21, 26], [13, 27], [23, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 10], [12, 3], [13, 3], [14, 4], [15, 5], [16, 2], [17, 3], [18, 3], [19, 3], [20, 12], [21, 12], [22, 16], [23, 17], [24, 18], [25, 19], [26, 21], [27, 13], [28, 23], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getStringCase", "code": "\tpublic static int getStringCase(String str)\n\t{\n\t\tif(str.length() == 0)\n\t\t\treturn MIXED;\n\n\t\tint state = -1;\n\n\t\tchar ch = str.charAt(0);\n\t\tif(Character.isLetter(ch))\n\t\t{\n\t\t\tif(Character.isUpperCase(ch))\n\t\t\t\tstate = UPPER_CASE;\n\t\t\telse\n\t\t\t\tstate = LOWER_CASE;\n\t\t}\n\n\t\tfor(int i = 1; i < str.length(); i++)\n\t\t{\n\t\t\tch = str.charAt(i);\n\t\t\tif(!Character.isLetter(ch))\n\t\t\t\tcontinue;\n\n\t\t\tswitch(state)\n\t\t\t{\n\t\t\tcase UPPER_CASE:\n\t\t\t\tif(Character.isLowerCase(ch))\n\t\t\t\t{\n\t\t\t\t\tif(i == 1)\n\t\t\t\t\t\tstate = TITLE_CASE;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn MIXED;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LOWER_CASE:\n\t\t\tcase TITLE_CASE:\n\t\t\t\tif(Character.isUpperCase(ch))\n\t\t\t\t\treturn MIXED;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn state;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "SWITCH", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "ASSIGN", "ASSIGN", "RETURN", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [6, 10], [6, 11], [2, 12], [2, 13], [8, 14], [3, 15], [4, 16], [5, 17], [11, 18], [11, 19], [13, 20], [13, 21], [2, 22], [2, 23], [15, 24], [16, 25], [12, 26], [12, 27], [12, 28], [12, 29], [22, 30], [15, 31], [15, 32], [27, 33], [27, 34], [29, 35], [29, 36], [36, 37], [36, 38], [36, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 6], [11, 6], [12, 2], [13, 2], [14, 8], [15, 3], [16, 4], [17, 5], [18, 11], [19, 11], [20, 13], [21, 13], [22, 2], [23, 2], [24, 15], [25, 16], [26, 12], [27, 12], [28, 12], [29, 12], [30, 22], [31, 15], [32, 15], [33, 27], [34, 27], [35, 29], [36, 29], [37, 36], [38, 36], [39, 36], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "toTitleCase", "code": "\tpublic static String toTitleCase(String str)\n\t{\n\t\tif(str.length() == 0)\n\t\t\treturn str;\n\t\telse\n\t\t{\n\t\t\treturn Character.toUpperCase(str.charAt(0))\n\t\t\t\t+ str.substring(1).toLowerCase();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [4, 7], [5, 8], [8, 9], [8, 10], [9, 11], [9, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 4], [8, 5], [9, 8], [10, 8], [11, 9], [12, 9], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "formatParagraph", "code": "\tprivate static void formatParagraph(String text, int maxLineLength,\n\t\tint tabSize, StringBuffer buf)\n\t{\n\t\t// align everything to paragraph's leading indent\n\t\tint leadingWhitespaceCount = MiscUtilities.getLeadingWhiteSpace(text);\n\t\tString leadingWhitespace = text.substring(0,leadingWhitespaceCount);\n\t\tint leadingWhitespaceWidth = MiscUtilities.getLeadingWhiteSpaceWidth(text,tabSize);\n\n\t\tbuf.append(leadingWhitespace);\n\n\t\tint lineLength = leadingWhitespaceWidth;\n\t\tStringTokenizer st = new StringTokenizer(text);\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString word = st.nextToken();\n\t\t\tif(lineLength == leadingWhitespaceWidth)\n\t\t\t{\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\telse if(lineLength + word.length() + 1 > maxLineLength)\n\t\t\t{\n\t\t\t\tbuf.append('\\n');\n\t\t\t\tbuf.append(leadingWhitespace);\n\t\t\t\tlineLength = leadingWhitespaceWidth;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuf.append(' ');\n\t\t\t\tlineLength++;\n\t\t\t}\n\t\t\tbuf.append(word);\n\t\t\tlineLength += word.length();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [1, 13], [1, 14], [2, 15], [4, 16], [5, 17], [6, 18], [1, 19], [1, 20], [13, 21], [13, 22], [17, 23], [19, 24], [21, 25], [14, 26], [25, 27], [21, 28], [21, 29], [21, 30], [21, 31], [27, 32], [27, 33], [28, 34], [31, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 1], [14, 1], [15, 2], [16, 4], [17, 5], [18, 6], [19, 1], [20, 1], [21, 13], [22, 13], [23, 17], [24, 19], [25, 21], [26, 14], [27, 25], [28, 21], [29, 21], [30, 21], [31, 21], [32, 27], [33, 27], [34, 28], [35, 31], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}], "label": 0}
{"sample_id": "camel-1.2-1616", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/ChoiceType.java", "language": "java", "name": "org.apache.camel.model.ChoiceType", "code": "@XmlRootElement(name = \"choice\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class ChoiceType extends ProcessorType<ChoiceType> {\n    @XmlElementRef\n    private List<InterceptorType> interceptors = new ArrayList<InterceptorType>();\n    @XmlElementRef\n    private List<WhenType> whenClauses = new ArrayList<WhenType>();\n    @XmlElement(required = false)\n    private OtherwiseType otherwise;\n\n    @Override\n    public String toString() {\n        return \"Choice[ \" + getWhenClauses() + \" \" + getOtherwise() + \"]\";\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        List<FilterProcessor> filters = new ArrayList<FilterProcessor>();\n        for (WhenType whenClaus : whenClauses) {\n            filters.add(whenClaus.createProcessor(routeContext));\n        }\n        Processor otherwiseProcessor = null;\n        if (otherwise != null) {\n            otherwiseProcessor = otherwise.createProcessor(routeContext);\n        }\n        return new ChoiceProcessor(filters, otherwiseProcessor);\n    }\n\n    public ChoiceType when(Predicate predicate) {\n        getWhenClauses().add(new WhenType(predicate));\n        return this;\n    }\n\n    public OtherwiseType otherwise() {\n        OtherwiseType answer = new OtherwiseType();\n        setOtherwise(answer);\n        return answer;\n    }\n\n\n    @Override\n    public String getLabel() {\n        CollectionStringBuffer buffer = new CollectionStringBuffer();\n        List<WhenType> list = getWhenClauses();\n        for (WhenType whenType : list) {\n            buffer.append(whenType.getLabel());\n        }\n        return buffer.toString();\n    }\n\n    public List<WhenType> getWhenClauses() {\n        return whenClauses;\n    }\n\n    public void setWhenClauses(List<WhenType> whenClauses) {\n        this.whenClauses = whenClauses;\n    }\n\n    public List<ProcessorType<?>> getOutputs() {\n        if (otherwise != null) {\n            return otherwise.getOutputs();\n        }\n        else if (whenClauses.isEmpty()) {\n            return Collections.EMPTY_LIST;\n        }\n        else {\n            WhenType when = whenClauses.get(whenClauses.size() - 1);\n            return when.getOutputs();\n        }\n    }\n\n    public OtherwiseType getOtherwise() {\n        return otherwise;\n    }\n\n    public void setOtherwise(OtherwiseType otherwise) {\n        this.otherwise = otherwise;\n    }\n\n    public List<InterceptorType> getInterceptors() {\n        return interceptors;\n    }\n\n    public void setInterceptors(List<InterceptorType> interceptors) {\n        this.interceptors = interceptors;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Choice[ \" + getWhenClauses() + \" \" + getOtherwise() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        List<FilterProcessor> filters = new ArrayList<FilterProcessor>();\n        for (WhenType whenClaus : whenClauses) {\n            filters.add(whenClaus.createProcessor(routeContext));\n        }\n        Processor otherwiseProcessor = null;\n        if (otherwise != null) {\n            otherwiseProcessor = otherwise.createProcessor(routeContext);\n        }\n        return new ChoiceProcessor(filters, otherwiseProcessor);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [8, 9], [3, 10], [5, 11], [2, 12], [4, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 8], [10, 3], [11, 5], [12, 2], [13, 4], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "when", "code": "    public ChoiceType when(Predicate predicate) {\n        getWhenClauses().add(new WhenType(predicate));\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "otherwise", "code": "    public OtherwiseType otherwise() {\n        OtherwiseType answer = new OtherwiseType();\n        setOtherwise(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLabel", "code": "    @Override\n    public String getLabel() {\n        CollectionStringBuffer buffer = new CollectionStringBuffer();\n        List<WhenType> list = getWhenClauses();\n        for (WhenType whenType : list) {\n            buffer.append(whenType.getLabel());\n        }\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getWhenClauses", "code": "    public List<WhenType> getWhenClauses() {\n        return whenClauses;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWhenClauses", "code": "    public void setWhenClauses(List<WhenType> whenClauses) {\n        this.whenClauses = whenClauses;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputs", "code": "    public List<ProcessorType<?>> getOutputs() {\n        if (otherwise != null) {\n            return otherwise.getOutputs();\n        }\n        else if (whenClauses.isEmpty()) {\n            return Collections.EMPTY_LIST;\n        }\n        else {\n            WhenType when = whenClauses.get(whenClauses.size() - 1);\n            return when.getOutputs();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [3, 6], [2, 7], [2, 8], [2, 9], [5, 10], [7, 11], [8, 12], [12, 13], [13, 14], [13, 15], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 3], [7, 2], [8, 2], [9, 2], [10, 5], [11, 7], [12, 8], [13, 12], [14, 13], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getOtherwise", "code": "    public OtherwiseType getOtherwise() {\n        return otherwise;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOtherwise", "code": "    public void setOtherwise(OtherwiseType otherwise) {\n        this.otherwise = otherwise;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInterceptors", "code": "    public List<InterceptorType> getInterceptors() {\n        return interceptors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInterceptors", "code": "    public void setInterceptors(List<InterceptorType> interceptors) {\n        this.interceptors = interceptors;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7549", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/axes/WalkingIteratorSorted.java", "language": "java", "name": "org.apache.xpath.axes.WalkingIteratorSorted", "code": "public class WalkingIteratorSorted extends WalkingIterator\n{\n\n  \n  /** True if the nodes will be found in document order, and this can \n   * be determined statically. */\n  protected boolean m_inNaturalOrderStatic = false;\n\n  /**\n   * Create a WalkingIteratorSorted object.\n   *\n   * @param nscontext The namespace context for this iterator,\n   * should be OK if null.\n   */\n  public WalkingIteratorSorted(PrefixResolver nscontext)\n  {\n    super(nscontext);\n  }\n\n  /**\n   * Create a WalkingIterator iterator, including creation\n   * of step walkers from the opcode list, and call back\n   * into the Compiler to create predicate expressions.\n   *\n   * @param compiler The Compiler which is creating\n   * this expression.\n   * @param opPos The position of this iterator in the\n   * opcode list from the compiler.\n   * @param shouldLoadWalkers True if walkers should be\n   * loaded, or false if this is a derived iterator and\n   * it doesn't wish to load child walkers.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  WalkingIteratorSorted(\n          Compiler compiler, int opPos, int analysis, boolean shouldLoadWalkers)\n            throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis, shouldLoadWalkers);\n  }\n  \n  /**\n   * Returns true if all the nodes in the iteration well be returned in document \n   * order.\n   * \n   * @return true as a default.\n   */\n  public boolean isDocOrdered()\n  {\n    return m_inNaturalOrderStatic;\n  }\n\n    \n  /**\n   * Tell if the nodeset can be walked in doc order, via static analysis. \n   *\n   *\n   * @return true if the nodeset can be walked in doc order, without sorting.\n   */\n  boolean canBeWalkedInNaturalDocOrderStatic()\n  {\n\n    if (null != m_firstWalker)\n    {\n      AxesWalker walker = m_firstWalker;\n      int prevAxis = -1;\n      boolean prevIsSimpleDownAxis = true;\n\n      for(int i = 0; null != walker; i++)\n      {\n        int axis = walker.getAxis();\n        \n        if(walker.isDocOrdered())\n        {\n          boolean isSimpleDownAxis = ((axis == Axis.CHILD)\n                                   || (axis == Axis.SELF)\n                                   || (axis == Axis.ROOT));\n          if(isSimpleDownAxis || (axis == -1))\n            walker = walker.getNextWalker();\n          else\n          {\n            boolean isLastWalker = (null == walker.getNextWalker());\n            if(isLastWalker)\n            {\n              if(walker.isDocOrdered() && (axis == Axis.DESCENDANT || \n                 axis == Axis.DESCENDANTORSELF || axis == Axis.DESCENDANTSFROMROOT\n                 || axis == Axis.DESCENDANTSORSELFFROMROOT) || (axis == Axis.ATTRIBUTE))\n                return true;\n            }\n            return false;\n          }\n        }\n        else\n          return false;\n      }\n      return true;\n    }\n    return false;\n  }\n\n\n  \n  /**\n   * This function is used to perform some extra analysis of the iterator.\n   * \n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n\n    int analysis = getAnalysisBits();\n    if(WalkerFactory.isNaturalDocOrder(analysis))\n    {\n    \tm_inNaturalOrderStatic = true;\n    }\n    else\n    {\n    \tm_inNaturalOrderStatic = false;", "functions": [{"function_name": "isDocOrdered", "code": "  public boolean isDocOrdered()\n  {\n    return m_inNaturalOrderStatic;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "canBeWalkedInNaturalDocOrderStatic", "code": "  boolean canBeWalkedInNaturalDocOrderStatic()\n  {\n\n    if (null != m_firstWalker)\n    {\n      AxesWalker walker = m_firstWalker;\n      int prevAxis = -1;\n      boolean prevIsSimpleDownAxis = true;\n\n      for(int i = 0; null != walker; i++)\n      {\n        int axis = walker.getAxis();\n        \n        if(walker.isDocOrdered())\n        {\n          boolean isSimpleDownAxis = ((axis == Axis.CHILD)\n                                   || (axis == Axis.SELF)\n                                   || (axis == Axis.ROOT));\n          if(isSimpleDownAxis || (axis == -1))\n            walker = walker.getNextWalker();\n          else\n          {\n            boolean isLastWalker = (null == walker.getNextWalker());\n            if(isLastWalker)\n            {\n              if(walker.isDocOrdered() && (axis == Axis.DESCENDANT || \n                 axis == Axis.DESCENDANTORSELF || axis == Axis.DESCENDANTSFROMROOT\n                 || axis == Axis.DESCENDANTSORSELFFROMROOT) || (axis == Axis.ATTRIBUTE))\n                return true;\n            }\n            return false;\n          }\n        }\n        else\n          return false;\n      }\n      return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [4, 10], [5, 11], [6, 12], [6, 13], [6, 14], [12, 15], [7, 16], [8, 17], [13, 18], [13, 19], [6, 20], [18, 21], [13, 22], [13, 23], [14, 24], [22, 25], [22, 26], [22, 27], [22, 28], [22, 29], [25, 30], [23, 31], [26, 32], [29, 33], [30, 34], [31, 35], [31, 36], [27, 37], [28, 38], [36, 39], [36, 40], [37, 41], [37, 42], [38, 43], [38, 44], [41, 45], [42, 46], [42, 47], [47, 48], [47, 49], [48, 50], [48, 51], [51, 52], [51, 53], [53, 54], [53, 55], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 4], [11, 5], [12, 6], [13, 6], [14, 6], [15, 12], [16, 7], [17, 8], [18, 13], [19, 13], [20, 6], [21, 18], [22, 13], [23, 13], [24, 14], [25, 22], [26, 22], [27, 22], [28, 22], [29, 22], [30, 25], [31, 23], [32, 26], [33, 29], [34, 30], [35, 31], [36, 31], [37, 27], [38, 28], [39, 36], [40, 36], [41, 37], [42, 37], [43, 38], [44, 38], [45, 41], [46, 42], [47, 42], [48, 47], [49, 47], [50, 48], [51, 48], [52, 51], [53, 51], [54, 53], [55, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n\n    int analysis = getAnalysisBits();\n    if(WalkerFactory.isNaturalDocOrder(analysis))\n    {\n    \tm_inNaturalOrderStatic = true;\n    }\n    else\n    {\n    \tm_inNaturalOrderStatic = false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [1, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 1], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "WalkingIteratorSorted", "code": "  public WalkingIteratorSorted(PrefixResolver nscontext)\n  {\n    super(nscontext);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "WalkingIteratorSorted", "code": "  WalkingIteratorSorted(\n          Compiler compiler, int opPos, int analysis, boolean shouldLoadWalkers)\n            throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis, shouldLoadWalkers);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.4-2470", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/http/helper/LoadingByteArrayOutputStream.java", "language": "java", "name": "org.apache.camel.component.http.helper.LoadingByteArrayOutputStream", "code": "public class LoadingByteArrayOutputStream extends ByteArrayOutputStream {\n    public LoadingByteArrayOutputStream() {\n        super(1024);\n    }\n    public LoadingByteArrayOutputStream(int i) {\n        super(i);\n    }\n\n    public ByteArrayInputStream createInputStream() {\n        return new ByteArrayInputStream(buf, 0, count);\n    }\n\n    public byte[] toByteArray() {\n        if (count != buf.length) {\n            buf = super.toByteArray();\n        }\n        return buf;", "functions": [{"function_name": "createInputStream", "code": "    public ByteArrayInputStream createInputStream() {\n        return new ByteArrayInputStream(buf, 0, count);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toByteArray", "code": "    public byte[] toByteArray() {\n        if (count != buf.length) {\n            buf = super.toByteArray();\n        }\n        return buf;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "LoadingByteArrayOutputStream", "code": "    public LoadingByteArrayOutputStream() {\n        super(1024);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "LoadingByteArrayOutputStream", "code": "    public LoadingByteArrayOutputStream(int i) {\n        super(i);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "log4j-1.1-4909", "repo": "jakarta-log4j-1.1.3", "project": "log4j", "version": "1.1", "file_path": "src/java/org/apache/log4j/helpers/RelativeTimeDateFormat.java", "language": "java", "name": "org.apache.log4j.helpers.RelativeTimeDateFormat", "code": "public class RelativeTimeDateFormat extends DateFormat {\n\n  protected final long startTime;\n\n  public\n  RelativeTimeDateFormat() {\n    this.startTime = System.currentTimeMillis();\n  }\n  \n  /**\n     Appends to <code>sbuf</code> the number of milliseconds elapsed\n     since the start of the application. \n     \n     @since 0.7.5\n  */\n  public\n  StringBuffer format(Date date, StringBuffer sbuf,\n\t\t      FieldPosition fieldPosition) {\n    //System.err.println(\":\"+ date.getTime() + \" - \" + startTime);\n    return sbuf.append((date.getTime() - startTime));\n  }\n\n  /**\n     This method does not do anything but return <code>null</code>.\n   */\n  public\n  Date parse(java.lang.String s, ParsePosition pos) {\n    return null;", "functions": [{"function_name": "format", "code": "  StringBuffer format(Date date, StringBuffer sbuf,\n\t\t      FieldPosition fieldPosition) {\n    //System.err.println(\":\"+ date.getTime() + \" - \" + startTime);\n    return sbuf.append((date.getTime() - startTime));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "parse", "code": "  Date parse(java.lang.String s, ParsePosition pos) {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "RelativeTimeDateFormat", "code": "  RelativeTimeDateFormat() {\n    this.startTime = System.currentTimeMillis();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-2914", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/exceptionpolicy/DefaultExceptionPolicyStrategy.java", "language": "java", "name": "org.apache.camel.processor.exceptionpolicy.DefaultExceptionPolicyStrategy", "code": "public class DefaultExceptionPolicyStrategy implements ExceptionPolicyStrategy {\n\n    private static final transient Log LOG = LogFactory.getLog(DefaultExceptionPolicyStrategy.class);\n\n    public ExceptionType getExceptionPolicy(Map<ExceptionPolicyKey, ExceptionType> exceptionPolicices, Exchange exchange,\n                                            Throwable exception) {\n\n        Iterator<Throwable> it = createExceptionIterator(exception); \n        while (it.hasNext()) {\n            ExceptionType type = findMatchedExceptionPolicy(exceptionPolicices, exchange, it.next());\n            if (type != null) {\n                return type;\n            }\n        }\n\n        return null;\n    }\n\n\n    private ExceptionType findMatchedExceptionPolicy(Map<ExceptionPolicyKey, ExceptionType> exceptionPolicices, Exchange exchange,\n                                               Throwable exception) {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Finding best suited exception policy for thrown exception \" + exception.getClass().getName());\n        }\n\n        int targetLevel = getInheritanceLevel(exception.getClass());\n        ExceptionType candidate = null;\n        int candidateDiff = Integer.MAX_VALUE;\n\n        Set<Map.Entry<ExceptionPolicyKey, ExceptionType>> entries = exceptionPolicices.entrySet();\n        for (Map.Entry<ExceptionPolicyKey, ExceptionType> entry : entries) {\n            Class clazz = entry.getKey().getExceptionClass();\n            ExceptionType type = entry.getValue();\n\n            if (filter(type, clazz, exception)) {\n\n                if (!matchesWhen(type, exchange)) {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"The type did not match when: \" + type);\n                    }\n                    continue;\n                }\n\n                if (clazz.equals(exception.getClass())) {\n                    candidate = type;\n                    break;\n                }\n\n                int level = getInheritanceLevel(clazz);\n                int diff = targetLevel - level;\n\n                if (diff < candidateDiff) {\n                    candidate = type;\n                    candidateDiff = diff;\n                }\n            }\n        }\n\n        if (LOG.isDebugEnabled()) {\n            if (candidate != null) {\n                LOG.debug(\"Using \" + candidate + \" as the exception policy\");\n            } else {\n                LOG.debug(\"No candidate found to be used as exception policy\");\n            }\n        }\n\n        return candidate;\n    }\n\n    /**\n     * Strategy to filter the given type exception class with the thrown exception\n     *\n     * @param type           the exception type\n     * @param exceptionClass the current exception class for testing\n     * @param exception      the thrown exception\n     * @return <tt>true</tt> if the to current exception class is a candidate, <tt>false</tt> to skip it.\n     */\n    protected boolean filter(ExceptionType type, Class exceptionClass, Throwable exception) {\n        return exceptionClass.isInstance(exception);\n    }\n\n    /**\n     * Strategy method for matching the exception type with the current exchange.\n     * <p/>\n     * This default implementation will match as:\n     * <ul>\n     * <li>Always true if no when predicate on the exception type\n     * <li>Otherwise the when predicate is matches against the current exchange\n     * </ul>\n     *\n     * @param type     the exception type\n     * @param exchange the current {@link Exchange}\n     * @return <tt>true</tt> if matched, <tt>false</tt> otherwise.\n     */\n    protected boolean matchesWhen(ExceptionType type, Exchange exchange) {\n        if (type.getOnWhen() == null || type.getOnWhen().getExpression() == null) {\n            return true;\n        }\n        return type.getOnWhen().getExpression().matches(exchange);\n    }\n\n    /**\n     * Strategy method creating the iterator to walk the exception in the order Camel should use\n     * for find the {@link ExceptionType} should be used.\n     * <p/>\n     * The default iterator will walk from the bottom upwards\n     * (the last caused by going upwards to the exception)\n     *\n     * @param exception  the exception\n     * @return the iterator\n     */\n    protected Iterator<Throwable> createExceptionIterator(Throwable exception) {\n        return new ExceptionIterator(exception);\n    }\n\n    private static int getInheritanceLevel(Class clazz) {\n        if (clazz == null || \"java.lang.Object\".equals(clazz.getName())) {\n            return 0;\n        }\n        return 1 + getInheritanceLevel(clazz.getSuperclass());\n    }\n\n    private class ExceptionIterator implements Iterator<Throwable> {\n        private List<Throwable> tree = new ArrayList<Throwable>();\n        private Iterator<Throwable> it;\n\n        public ExceptionIterator(Throwable exception) {\n            Throwable current = exception;\n            while (current != null) {\n                tree.add(current);\n                current = current.getCause();\n            }\n\n            Collections.reverse(tree);\n            it = tree.iterator();\n        }\n\n        public boolean hasNext() {\n            return it.hasNext();\n        }\n\n        public Throwable next() {\n            return it.next();\n        }\n\n        public void remove() {\n            it.remove();", "functions": [{"function_name": "getExceptionPolicy", "code": "    public ExceptionType getExceptionPolicy(Map<ExceptionPolicyKey, ExceptionType> exceptionPolicices, Exchange exchange,\n                                            Throwable exception) {\n\n        Iterator<Throwable> it = createExceptionIterator(exception); \n        while (it.hasNext()) {\n            ExceptionType type = findMatchedExceptionPolicy(exceptionPolicices, exchange, it.next());\n            if (type != null) {\n                return type;\n            }\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [3, 11], [9, 12], [9, 13], [12, 14], [10, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 3], [12, 9], [13, 9], [14, 12], [15, 10], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "findMatchedExceptionPolicy", "code": "    private ExceptionType findMatchedExceptionPolicy(Map<ExceptionPolicyKey, ExceptionType> exceptionPolicices, Exchange exchange,\n                                               Throwable exception) {\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Finding best suited exception policy for thrown exception \" + exception.getClass().getName());\n        }\n\n        int targetLevel = getInheritanceLevel(exception.getClass());\n        ExceptionType candidate = null;\n        int candidateDiff = Integer.MAX_VALUE;\n\n        Set<Map.Entry<ExceptionPolicyKey, ExceptionType>> entries = exceptionPolicices.entrySet();\n        for (Map.Entry<ExceptionPolicyKey, ExceptionType> entry : entries) {\n            Class clazz = entry.getKey().getExceptionClass();\n            ExceptionType type = entry.getValue();\n\n            if (filter(type, clazz, exception)) {\n\n                if (!matchesWhen(type, exchange)) {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"The type did not match when: \" + type);\n                    }\n                    continue;\n                }\n\n                if (clazz.equals(exception.getClass())) {\n                    candidate = type;\n                    break;\n                }\n\n                int level = getInheritanceLevel(clazz);\n                int diff = targetLevel - level;\n\n                if (diff < candidateDiff) {\n                    candidate = type;\n                    candidateDiff = diff;\n                }\n            }\n        }\n\n        if (LOG.isDebugEnabled()) {\n            if (candidate != null) {\n                LOG.debug(\"Using \" + candidate + \" as the exception policy\");\n            } else {\n                LOG.debug(\"No candidate found to be used as exception policy\");\n            }\n        }\n\n        return candidate;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "BREAK_CONTINUE", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [8, 13], [2, 14], [3, 15], [3, 16], [3, 17], [4, 18], [6, 19], [7, 20], [14, 21], [15, 22], [20, 23], [8, 24], [21, 25], [15, 26], [15, 27], [15, 28], [15, 29], [15, 30], [16, 31], [17, 32], [24, 33], [14, 34], [14, 35], [26, 36], [29, 37], [30, 38], [32, 39], [33, 40], [33, 41], [34, 42], [35, 43], [27, 44], [28, 45], [29, 46], [37, 47], [30, 48], [30, 49], [40, 50], [43, 51], [43, 52], [26, 53], [26, 54], [29, 55], [49, 56], [52, 57], [49, 58], [58, 59], [59, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 8], [14, 2], [15, 3], [16, 3], [17, 3], [18, 4], [19, 6], [20, 7], [21, 14], [22, 15], [23, 20], [24, 8], [25, 21], [26, 15], [27, 15], [28, 15], [29, 15], [30, 15], [31, 16], [32, 17], [33, 24], [34, 14], [35, 14], [36, 26], [37, 29], [38, 30], [39, 32], [40, 33], [41, 33], [42, 34], [43, 35], [44, 27], [45, 28], [46, 29], [47, 37], [48, 30], [49, 30], [50, 40], [51, 43], [52, 43], [53, 26], [54, 26], [55, 29], [56, 49], [57, 52], [58, 49], [59, 58], [60, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "filter", "code": "    protected boolean filter(ExceptionType type, Class exceptionClass, Throwable exception) {\n        return exceptionClass.isInstance(exception);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "matchesWhen", "code": "    protected boolean matchesWhen(ExceptionType type, Exchange exchange) {\n        if (type.getOnWhen() == null || type.getOnWhen().getExpression() == null) {\n            return true;\n        }\n        return type.getOnWhen().getExpression().matches(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [5, 8], [2, 9], [6, 10], [6, 11], [9, 12], [10, 13], [10, 14], [11, 15], [11, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 5], [9, 2], [10, 6], [11, 6], [12, 9], [13, 10], [14, 10], [15, 11], [16, 11], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "createExceptionIterator", "code": "    protected Iterator<Throwable> createExceptionIterator(Throwable exception) {\n        return new ExceptionIterator(exception);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getInheritanceLevel", "code": "    private static int getInheritanceLevel(Class clazz) {\n        if (clazz == null || \"java.lang.Object\".equals(clazz.getName())) {\n            return 0;\n        }\n        return 1 + getInheritanceLevel(clazz.getSuperclass());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [2, 8], [5, 9], [5, 10], [6, 11], [8, 12], [9, 13], [10, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 2], [9, 5], [10, 5], [11, 6], [12, 8], [13, 9], [14, 10], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}], "label": 1}
{"sample_id": "camel-1.2-1867", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/Logger.java", "language": "java", "name": "org.apache.camel.processor.Logger", "code": "public class Logger implements Processor {\n    private Log log;\n    private LoggingLevel level;\n\n    public Logger() {\n        this(LogFactory.getLog(Logger.class));\n    }\n\n    public Logger(Log log) {\n        this(log, LoggingLevel.INFO);\n    }\n\n    public Logger(Log log, LoggingLevel level) {\n        this.log = log;\n        this.level = level;\n    }\n\n    public Logger(String logName) {\n        this(LogFactory.getLog(logName));\n    }\n\n    public Logger(String logName, LoggingLevel level) {\n        this(LogFactory.getLog(logName), level);\n    }\n\n    @Override\n    public String toString() {\n        return \"Logger[\" + log + \"]\";\n    }\n\n    public void process(Exchange exchange) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(logMessage(exchange));\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(logMessage(exchange));\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(logMessage(exchange));\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.info(logMessage(exchange));\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(logMessage(exchange));\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(logMessage(exchange));\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + logMessage(exchange));\n        }\n    }\n\n    public void log(String message) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(message);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(message);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(message);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.debug(message);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(message);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(message);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + message);\n        }\n    }\n\n    public void log(String message, Throwable exception) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(message, exception);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(message, exception);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(message, exception);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.debug(message, exception);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(message, exception);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(message, exception);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + message, exception);\n        }\n    }\n\n    protected Object logMessage(Exchange exchange) {\n        return exchange;\n    }\n\n    public Log getLog() {\n        return log;\n    }\n\n    public void setLog(Log log) {\n        this.log = log;\n    }\n\n    public LoggingLevel getLevel() {\n        return level;\n    }\n\n    public void setLevel(LoggingLevel level) {\n        this.level = level;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Logger[\" + log + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(logMessage(exchange));\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(logMessage(exchange));\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(logMessage(exchange));\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.info(logMessage(exchange));\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(logMessage(exchange));\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(logMessage(exchange));\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + logMessage(exchange));", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [4, 16], [6, 17], [8, 18], [10, 19], [12, 20], [14, 21], [15, 22], [22, 23], [22, 24], [4, 25], [6, 26], [8, 27], [10, 28], [12, 29], [14, 30], [24, 31], [24, 32], [25, 33], [26, 34], [27, 35], [28, 36], [29, 37], [30, 38], [32, 39], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 4], [17, 6], [18, 8], [19, 10], [20, 12], [21, 14], [22, 15], [23, 22], [24, 22], [25, 4], [26, 6], [27, 8], [28, 10], [29, 12], [30, 14], [31, 24], [32, 24], [33, 25], [34, 26], [35, 27], [36, 28], [37, 29], [38, 30], [39, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "log", "code": "    public void log(String message) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(message);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(message);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(message);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.debug(message);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(message);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(message);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + message);", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [4, 16], [6, 17], [8, 18], [10, 19], [12, 20], [14, 21], [15, 22], [22, 23], [4, 24], [6, 25], [8, 26], [10, 27], [12, 28], [14, 29], [23, 30], [23, 31], [31, 32], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 4], [17, 6], [18, 8], [19, 10], [20, 12], [21, 14], [22, 15], [23, 22], [24, 4], [25, 6], [26, 8], [27, 10], [28, 12], [29, 14], [30, 23], [31, 23], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "log", "code": "    public void log(String message, Throwable exception) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(message, exception);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(message, exception);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(message, exception);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.debug(message, exception);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(message, exception);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(message, exception);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + message, exception);", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [5, 17], [7, 18], [9, 19], [11, 20], [13, 21], [15, 22], [16, 23], [23, 24], [5, 25], [7, 26], [9, 27], [11, 28], [13, 29], [15, 30], [24, 31], [24, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 5], [18, 7], [19, 9], [20, 11], [21, 13], [22, 15], [23, 16], [24, 23], [25, 5], [26, 7], [27, 9], [28, 11], [29, 13], [30, 15], [31, 24], [32, 24], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "logMessage", "code": "    protected Object logMessage(Exchange exchange) {\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLog", "code": "    public Log getLog() {\n        return log;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLog", "code": "    public void setLog(Log log) {\n        this.log = log;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLevel", "code": "    public LoggingLevel getLevel() {\n        return level;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLevel", "code": "    public void setLevel(LoggingLevel level) {\n        this.level = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Logger", "code": "    public Logger() {\n        this(LogFactory.getLog(Logger.class));", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Logger", "code": "    public Logger(Log log) {\n        this(log, LoggingLevel.INFO);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Logger", "code": "    public Logger(Log log, LoggingLevel level) {\n        this.log = log;\n        this.level = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Logger", "code": "    public Logger(String logName) {\n        this(LogFactory.getLog(logName));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Logger", "code": "    public Logger(String logName, LoggingLevel level) {\n        this(LogFactory.getLog(logName), level);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.7-8342", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/res/XSLTErrorResources_es.java", "language": "java", "name": "org.apache.xalan.res.XSLTErrorResources_es", "code": "public class XSLTErrorResources_es extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 201;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 29;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 55;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Static variables\n   */\n  public static final String ER_NO_CURLYBRACE = \"ER_NO_CURLYBRACE\";;\n  public static final String ER_ILLEGAL_ATTRIBUTE = \"ER_ILLEGAL_ATTRIBUTE\";\n  public static final String ER_NULL_SOURCENODE_APPLYIMPORTS = \"ER_NULL_SOURCENODE_APPLYIMPORTS\";\n  public static final String ER_CANNOT_ADD = \"ER_CANNOT_ADD\";\n  public static final String ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES=\"ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES\";\n  public static final String ER_NO_NAME_ATTRIB = \"ER_NO_NAME_ATTRIB\";\n  public static final String ER_TEMPLATE_NOT_FOUND = \"ER_TEMPLATE_NOT_FOUND\";\n  public static final String ER_CANT_RESOLVE_NAME_AVT = \"ER_CANT_RESOLVE_NAME_AVT\";\n  public static final String ER_REQUIRES_ATTRIB = \"ER_REQUIRES_ATTRIB\";\n  public static final String ER_MUST_HAVE_TEST_ATTRIB = \"ER_MUST_HAVE_TEST_ATTRIB\";\n  public static final String ER_BAD_VAL_ON_LEVEL_ATTRIB =\n         \"ER_BAD_VAL_ON_LEVEL_ATTRIB\";\n  public static final String ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =\n         \"ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML\";\n  public static final String ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =\n         \"ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME\";\n  public static final String ER_NEED_MATCH_ATTRIB = \"ER_NEED_MATCH_ATTRIB\";\n  public static final String ER_NEED_NAME_OR_MATCH_ATTRIB =\n         \"ER_NEED_NAME_OR_MATCH_ATTRIB\";\n  public static final String ER_CANT_RESOLVE_NSPREFIX =\n         \"ER_CANT_RESOLVE_NSPREFIX\";\n  public static final String ER_ILLEGAL_VALUE = \"ER_ILLEGAL_VALUE\";\n  public static final String ER_NO_OWNERDOC = \"ER_NO_OWNERDOC\";\n  public static final String ER_ELEMTEMPLATEELEM_ERR =\"ER_ELEMTEMPLATEELEM_ERR\";\n  public static final String ER_NULL_CHILD = \"ER_NULL_CHILD\";\n  public static final String ER_NEED_SELECT_ATTRIB = \"ER_NEED_SELECT_ATTRIB\";\n  public static final String ER_NEED_TEST_ATTRIB = \"ER_NEED_TEST_ATTRIB\";\n  public static final String ER_NEED_NAME_ATTRIB = \"ER_NEED_NAME_ATTRIB\";\n  public static final String ER_NO_CONTEXT_OWNERDOC = \"ER_NO_CONTEXT_OWNERDOC\";\n  public static final String ER_COULD_NOT_CREATE_XML_PROC_LIAISON =\n         \"ER_COULD_NOT_CREATE_XML_PROC_LIAISON\";\n  public static final String ER_PROCESS_NOT_SUCCESSFUL =\n         \"ER_PROCESS_NOT_SUCCESSFUL\";\n  public static final String ER_NOT_SUCCESSFUL = \"ER_NOT_SUCCESSFUL\";\n  public static final String ER_ENCODING_NOT_SUPPORTED =\n         \"ER_ENCODING_NOT_SUPPORTED\";\n  public static final String ER_COULD_NOT_CREATE_TRACELISTENER =\n         \"ER_COULD_NOT_CREATE_TRACELISTENER\";\n  public static final String ER_KEY_REQUIRES_NAME_ATTRIB =\n         \"ER_KEY_REQUIRES_NAME_ATTRIB\";\n  public static final String ER_KEY_REQUIRES_MATCH_ATTRIB =\n         \"ER_KEY_REQUIRES_MATCH_ATTRIB\";\n  public static final String ER_KEY_REQUIRES_USE_ATTRIB =\n         \"ER_KEY_REQUIRES_USE_ATTRIB\";\n  public static final String ER_REQUIRES_ELEMENTS_ATTRIB =\n         \"ER_REQUIRES_ELEMENTS_ATTRIB\";\n  public static final String ER_MISSING_PREFIX_ATTRIB =\n         \"ER_MISSING_PREFIX_ATTRIB\";\n  public static final String ER_BAD_STYLESHEET_URL = \"ER_BAD_STYLESHEET_URL\";\n  public static final String ER_FILE_NOT_FOUND = \"ER_FILE_NOT_FOUND\";\n  public static final String ER_IOEXCEPTION = \"ER_IOEXCEPTION\";\n  public static final String ER_NO_HREF_ATTRIB = \"ER_NO_HREF_ATTRIB\";\n  public static final String ER_STYLESHEET_INCLUDES_ITSELF =\n         \"ER_STYLESHEET_INCLUDES_ITSELF\";\n  public static final String ER_PROCESSINCLUDE_ERROR =\"ER_PROCESSINCLUDE_ERROR\";\n  public static final String ER_MISSING_LANG_ATTRIB = \"ER_MISSING_LANG_ATTRIB\";\n  public static final String ER_MISSING_CONTAINER_ELEMENT_COMPONENT =\n         \"ER_MISSING_CONTAINER_ELEMENT_COMPONENT\";\n  public static final String ER_CAN_ONLY_OUTPUT_TO_ELEMENT =\n         \"ER_CAN_ONLY_OUTPUT_TO_ELEMENT\";\n  public static final String ER_PROCESS_ERROR = \"ER_PROCESS_ERROR\";\n  public static final String ER_UNIMPLNODE_ERROR = \"ER_UNIMPLNODE_ERROR\";\n  public static final String ER_NO_SELECT_EXPRESSION =\"ER_NO_SELECT_EXPRESSION\";\n  public static final String ER_CANNOT_SERIALIZE_XSLPROCESSOR =\n         \"ER_CANNOT_SERIALIZE_XSLPROCESSOR\";\n  public static final String ER_NO_INPUT_STYLESHEET = \"ER_NO_INPUT_STYLESHEET\";\n  public static final String ER_FAILED_PROCESS_STYLESHEET =\n         \"ER_FAILED_PROCESS_STYLESHEET\";\n  public static final String ER_COULDNT_PARSE_DOC = \"ER_COULDNT_PARSE_DOC\";\n  public static final String ER_COULDNT_FIND_FRAGMENT =\n         \"ER_COULDNT_FIND_FRAGMENT\";\n  public static final String ER_NODE_NOT_ELEMENT = \"ER_NODE_NOT_ELEMENT\";\n  public static final String ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB =\n         \"ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB\";\n  public static final String ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB =\n         \"ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB\";\n  public static final String ER_NO_CLONE_OF_DOCUMENT_FRAG =\n         \"ER_NO_CLONE_OF_DOCUMENT_FRAG\";\n  public static final String ER_CANT_CREATE_ITEM = \"ER_CANT_CREATE_ITEM\";\n  public static final String ER_XMLSPACE_ILLEGAL_VALUE =\n         \"ER_XMLSPACE_ILLEGAL_VALUE\";\n  public static final String ER_NO_XSLKEY_DECLARATION =\n         \"ER_NO_XSLKEY_DECLARATION\";\n  public static final String ER_CANT_CREATE_URL = \"ER_CANT_CREATE_URL\";\n  public static final String ER_XSLFUNCTIONS_UNSUPPORTED =\n         \"ER_XSLFUNCTIONS_UNSUPPORTED\";\n  public static final String ER_PROCESSOR_ERROR = \"ER_PROCESSOR_ERROR\";\n  public static final String ER_NOT_ALLOWED_INSIDE_STYLESHEET =\n         \"ER_NOT_ALLOWED_INSIDE_STYLESHEET\";\n  public static final String ER_RESULTNS_NOT_SUPPORTED =\n         \"ER_RESULTNS_NOT_SUPPORTED\";\n  public static final String ER_DEFAULTSPACE_NOT_SUPPORTED =\n         \"ER_DEFAULTSPACE_NOT_SUPPORTED\";\n  public static final String ER_INDENTRESULT_NOT_SUPPORTED =\n         \"ER_INDENTRESULT_NOT_SUPPORTED\";\n  public static final String ER_ILLEGAL_ATTRIB = \"ER_ILLEGAL_ATTRIB\";\n  public static final String ER_UNKNOWN_XSL_ELEM = \"ER_UNKNOWN_XSL_ELEM\";\n  public static final String ER_BAD_XSLSORT_USE = \"ER_BAD_XSLSORT_USE\";\n  public static final String ER_MISPLACED_XSLWHEN = \"ER_MISPLACED_XSLWHEN\";\n  public static final String ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE =\n         \"ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE\";\n  public static final String ER_MISPLACED_XSLOTHERWISE =\n         \"ER_MISPLACED_XSLOTHERWISE\";\n  public static final String ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE =\n         \"ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE\";\n  public static final String ER_NOT_ALLOWED_INSIDE_TEMPLATE =\n         \"ER_NOT_ALLOWED_INSIDE_TEMPLATE\";\n  public static final String ER_UNKNOWN_EXT_NS_PREFIX =\n         \"ER_UNKNOWN_EXT_NS_PREFIX\";\n  public static final String ER_IMPORTS_AS_FIRST_ELEM =\n         \"ER_IMPORTS_AS_FIRST_ELEM\";\n  public static final String ER_IMPORTING_ITSELF = \"ER_IMPORTING_ITSELF\";\n  public static final String ER_XMLSPACE_ILLEGAL_VAL =\"ER_XMLSPACE_ILLEGAL_VAL\";\n  public static final String ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL =\n         \"ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL\";\n  public static final String ER_SAX_EXCEPTION = \"ER_SAX_EXCEPTION\";\n  public static final String ER_XSLT_ERROR = \"ER_XSLT_ERROR\";\n  public static final String ER_CURRENCY_SIGN_ILLEGAL=\n         \"ER_CURRENCY_SIGN_ILLEGAL\";\n  public static final String ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM =\n         \"ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM\";\n  public static final String ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER =\n         \"ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER\";\n  public static final String ER_REDIRECT_COULDNT_GET_FILENAME =\n         \"ER_REDIRECT_COULDNT_GET_FILENAME\";\n  public static final String ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT =\n         \"ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT\";\n  public static final String ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX =\n         \"ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX\";\n  public static final String ER_MISSING_NS_URI = \"ER_MISSING_NS_URI\";\n  public static final String ER_MISSING_ARG_FOR_OPTION =\n         \"ER_MISSING_ARG_FOR_OPTION\";\n  public static final String ER_INVALID_OPTION = \"ER_INVALID_OPTION\";\n  public static final String ER_MALFORMED_FORMAT_STRING =\n         \"ER_MALFORMED_FORMAT_STRING\";\n  public static final String ER_STYLESHEET_REQUIRES_VERSION_ATTRIB =\n         \"ER_STYLESHEET_REQUIRES_VERSION_ATTRIB\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_VALUE =\n         \"ER_ILLEGAL_ATTRIBUTE_VALUE\";\n  public static final String ER_CHOOSE_REQUIRES_WHEN =\"ER_CHOOSE_REQUIRES_WHEN\";\n  public static final String ER_NO_APPLY_IMPORT_IN_FOR_EACH =\n         \"ER_NO_APPLY_IMPORT_IN_FOR_EACH\";\n  public static final String ER_CANT_USE_DTM_FOR_OUTPUT =\n         \"ER_CANT_USE_DTM_FOR_OUTPUT\";\n  public static final String ER_CANT_USE_DTM_FOR_INPUT =\n         \"ER_CANT_USE_DTM_FOR_INPUT\";\n  public static final String ER_CALL_TO_EXT_FAILED = \"ER_CALL_TO_EXT_FAILED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_XSLATTRSET_USED_ITSELF =\n         \"ER_XSLATTRSET_USED_ITSELF\";\n  public static final String ER_CANNOT_MIX_XERCESDOM =\"ER_CANNOT_MIX_XERCESDOM\";\n  public static final String ER_TOO_MANY_LISTENERS = \"ER_TOO_MANY_LISTENERS\";\n  public static final String ER_IN_ELEMTEMPLATEELEM_READOBJECT =\n         \"ER_IN_ELEMTEMPLATEELEM_READOBJECT\";\n  public static final String ER_DUPLICATE_NAMED_TEMPLATE =\n         \"ER_DUPLICATE_NAMED_TEMPLATE\";\n  public static final String ER_INVALID_KEY_CALL = \"ER_INVALID_KEY_CALL\";\n  public static final String ER_REFERENCING_ITSELF = \"ER_REFERENCING_ITSELF\";\n  public static final String ER_ILLEGAL_DOMSOURCE_INPUT =\n         \"ER_ILLEGAL_DOMSOURCE_INPUT\";\n  public static final String ER_CLASS_NOT_FOUND_FOR_OPTION =\n         \"ER_CLASS_NOT_FOUND_FOR_OPTION\";\n  public static final String ER_REQUIRED_ELEM_NOT_FOUND =\n         \"ER_REQUIRED_ELEM_NOT_FOUND\";\n  public static final String ER_INPUT_CANNOT_BE_NULL =\"ER_INPUT_CANNOT_BE_NULL\";\n  public static final String ER_URI_CANNOT_BE_NULL = \"ER_URI_CANNOT_BE_NULL\";\n  public static final String ER_FILE_CANNOT_BE_NULL = \"ER_FILE_CANNOT_BE_NULL\";\n  public static final String ER_SOURCE_CANNOT_BE_NULL =\n         \"ER_SOURCE_CANNOT_BE_NULL\";\n  public static final String ER_CANNOT_INIT_BSFMGR = \"ER_CANNOT_INIT_BSFMGR\";\n  public static final String ER_CANNOT_CMPL_EXTENSN = \"ER_CANNOT_CMPL_EXTENSN\";\n  public static final String ER_CANNOT_CREATE_EXTENSN =\n         \"ER_CANNOT_CREATE_EXTENSN\";\n  public static final String ER_INSTANCE_MTHD_CALL_REQUIRES =\n         \"ER_INSTANCE_MTHD_CALL_REQUIRES\";\n  public static final String ER_INVALID_ELEMENT_NAME =\"ER_INVALID_ELEMENT_NAME\";\n  public static final String ER_ELEMENT_NAME_METHOD_STATIC =\n         \"ER_ELEMENT_NAME_METHOD_STATIC\";\n  public static final String ER_EXTENSION_FUNC_UNKNOWN =\n         \"ER_EXTENSION_FUNC_UNKNOWN\";\n  public static final String ER_MORE_MATCH_CONSTRUCTOR =\n         \"ER_MORE_MATCH_CONSTRUCTOR\";\n  public static final String ER_MORE_MATCH_METHOD = \"ER_MORE_MATCH_METHOD\";\n  public static final String ER_MORE_MATCH_ELEMENT = \"ER_MORE_MATCH_ELEMENT\";\n  public static final String ER_INVALID_CONTEXT_PASSED =\n         \"ER_INVALID_CONTEXT_PASSED\";\n  public static final String ER_POOL_EXISTS = \"ER_POOL_EXISTS\";\n  public static final String ER_NO_DRIVER_NAME = \"ER_NO_DRIVER_NAME\";\n  public static final String ER_NO_URL = \"ER_NO_URL\";\n  public static final String ER_POOL_SIZE_LESSTHAN_ONE =\n         \"ER_POOL_SIZE_LESSTHAN_ONE\";\n  public static final String ER_INVALID_DRIVER = \"ER_INVALID_DRIVER\";\n  public static final String ER_NO_STYLESHEETROOT = \"ER_NO_STYLESHEETROOT\";\n  public static final String ER_ILLEGAL_XMLSPACE_VALUE =\n         \"ER_ILLEGAL_XMLSPACE_VALUE\";\n  public static final String ER_PROCESSFROMNODE_FAILED =\n         \"ER_PROCESSFROMNODE_FAILED\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD =\n         \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO =\n         \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_UNKNOWN_ERROR_CALLING_EXTENSION =\n         \"ER_UNKNOWN_ERROR_CALLING_EXTENSION\";\n  public static final String ER_NO_NAMESPACE_DECL = \"ER_NO_NAMESPACE_DECL\";\n  public static final String ER_ELEM_CONTENT_NOT_ALLOWED =\n         \"ER_ELEM_CONTENT_NOT_ALLOWED\";\n  public static final String ER_STYLESHEET_DIRECTED_TERMINATION =\n         \"ER_STYLESHEET_DIRECTED_TERMINATION\";\n  public static final String ER_ONE_OR_TWO = \"ER_ONE_OR_TWO\";\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE =\n         \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_CANNOT_INIT_DEFAULT_TEMPLATES =\n         \"ER_CANNOT_INIT_DEFAULT_TEMPLATES\";\n  public static final String ER_RESULT_NULL = \"ER_RESULT_NULL\";\n  public static final String ER_RESULT_COULD_NOT_BE_SET =\n         \"ER_RESULT_COULD_NOT_BE_SET\";\n  public static final String ER_NO_OUTPUT_SPECIFIED = \"ER_NO_OUTPUT_SPECIFIED\";\n  public static final String ER_CANNOT_TRANSFORM_TO_RESULT_TYPE =\n         \"ER_CANNOT_TRANSFORM_TO_RESULT_TYPE\";\n  public static final String ER_CANNOT_TRANSFORM_SOURCE_TYPE =\n         \"ER_CANNOT_TRANSFORM_SOURCE_TYPE\";\n  public static final String ER_NULL_CONTENT_HANDLER =\"ER_NULL_CONTENT_HANDLER\";\n  public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n  public static final String ER_CANNOT_CALL_PARSE = \"ER_CANNOT_CALL_PARSE\";\n  public static final String ER_NO_PARENT_FOR_FILTER =\"ER_NO_PARENT_FOR_FILTER\";\n  public static final String ER_NO_STYLESHEET_IN_MEDIA =\n         \"ER_NO_STYLESHEET_IN_MEDIA\";\n  public static final String ER_NO_STYLESHEET_PI = \"ER_NO_STYLESHEET_PI\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_PROPERTY_VALUE_BOOLEAN =\n         \"ER_PROPERTY_VALUE_BOOLEAN\";\n  public static final String ER_COULD_NOT_FIND_EXTERN_SCRIPT =\n         \"ER_COULD_NOT_FIND_EXTERN_SCRIPT\";\n  public static final String ER_RESOURCE_COULD_NOT_FIND =\n         \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_OUTPUT_PROPERTY_NOT_RECOGNIZED =\n         \"ER_OUTPUT_PROPERTY_NOT_RECOGNIZED\";\n  public static final String ER_FAILED_CREATING_ELEMLITRSLT =\n         \"ER_FAILED_CREATING_ELEMLITRSLT\";\n  public static final String ER_VALUE_SHOULD_BE_NUMBER =\n         \"ER_VALUE_SHOULD_BE_NUMBER\";\n  public static final String ER_VALUE_SHOULD_EQUAL = \"ER_VALUE_SHOULD_EQUAL\";\n  public static final String ER_FAILED_CALLING_METHOD =\n         \"ER_FAILED_CALLING_METHOD\";\n  public static final String ER_FAILED_CREATING_ELEMTMPL =\n         \"ER_FAILED_CREATING_ELEMTMPL\";\n  public static final String ER_CHARS_NOT_ALLOWED = \"ER_CHARS_NOT_ALLOWED\";\n  public static final String ER_ATTR_NOT_ALLOWED = \"ER_ATTR_NOT_ALLOWED\";\n  public static final String ER_BAD_VALUE = \"ER_BAD_VALUE\";\n  public static final String ER_ATTRIB_VALUE_NOT_FOUND =\n         \"ER_ATTRIB_VALUE_NOT_FOUND\";\n  public static final String ER_ATTRIB_VALUE_NOT_RECOGNIZED =\n         \"ER_ATTRIB_VALUE_NOT_RECOGNIZED\";\n  public static final String ER_NULL_URI_NAMESPACE = \"ER_NULL_URI_NAMESPACE\";\n  public static final String ER_NUMBER_TOO_BIG = \"ER_NUMBER_TOO_BIG\";\n  public static final String  ER_CANNOT_FIND_SAX1_DRIVER =\n         \"ER_CANNOT_FIND_SAX1_DRIVER\";\n  public static final String  ER_SAX1_DRIVER_NOT_LOADED =\n         \"ER_SAX1_DRIVER_NOT_LOADED\";\n  public static final String  ER_SAX1_DRIVER_NOT_INSTANTIATED =\n         \"ER_SAX1_DRIVER_NOT_INSTANTIATED\" ;\n  public static final String ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER =\n         \"ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER\";\n  public static final String  ER_PARSER_PROPERTY_NOT_SPECIFIED =\n         \"ER_PARSER_PROPERTY_NOT_SPECIFIED\";\n  public static final String  ER_PARSER_ARG_CANNOT_BE_NULL =\n         \"ER_PARSER_ARG_CANNOT_BE_NULL\" ;\n  public static final String  ER_FEATURE = \"ER_FEATURE\";\n  public static final String ER_PROPERTY = \"ER_PROPERTY\" ;\n  public static final String ER_NULL_ENTITY_RESOLVER =\"ER_NULL_ENTITY_RESOLVER\";\n  public static final String  ER_NULL_DTD_HANDLER = \"ER_NULL_DTD_HANDLER\" ;\n  public static final String ER_NO_DRIVER_NAME_SPECIFIED =\n         \"ER_NO_DRIVER_NAME_SPECIFIED\";\n  public static final String ER_NO_URL_SPECIFIED = \"ER_NO_URL_SPECIFIED\";\n  public static final String ER_POOLSIZE_LESS_THAN_ONE =\n         \"ER_POOLSIZE_LESS_THAN_ONE\";\n  public static final String ER_INVALID_DRIVER_NAME = \"ER_INVALID_DRIVER_NAME\";\n  public static final String ER_ERRORLISTENER = \"ER_ERRORLISTENER\";\n  public static final String ER_ASSERT_NO_TEMPLATE_PARENT =\n         \"ER_ASSERT_NO_TEMPLATE_PARENT\";\n  public static final String ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR =\n         \"ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR\";\n  public static final String ER_NOT_ALLOWED_IN_POSITION =\n         \"ER_NOT_ALLOWED_IN_POSITION\";\n  public static final String ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION =\n         \"ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION\";\n  public static final String INVALID_TCHAR = \"INVALID_TCHAR\";\n  public static final String INVALID_QNAME = \"INVALID_QNAME\";\n  public static final String INVALID_ENUM = \"INVALID_ENUM\";\n  public static final String INVALID_NMTOKEN = \"INVALID_NMTOKEN\";\n  public static final String INVALID_NCNAME = \"INVALID_NCNAME\";\n  public static final String INVALID_BOOLEAN = \"INVALID_BOOLEAN\";\n  public static final String INVALID_NUMBER = \"INVALID_NUMBER\";\n  public static final String ER_ARG_LITERAL = \"ER_ARG_LITERAL\";\n  public static final String ER_DUPLICATE_GLOBAL_VAR =\"ER_DUPLICATE_GLOBAL_VAR\";\n  public static final String ER_DUPLICATE_VAR = \"ER_DUPLICATE_VAR\";\n  public static final String ER_TEMPLATE_NAME_MATCH = \"ER_TEMPLATE_NAME_MATCH\";\n  public static final String ER_INVALID_PREFIX = \"ER_INVALID_PREFIX\";\n  public static final String ER_NO_ATTRIB_SET = \"ER_NO_ATTRIB_SET\";\n\n  public static final String WG_FOUND_CURLYBRACE = \"WG_FOUND_CURLYBRACE\";\n  public static final String WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR =\n         \"WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR\";\n  public static final String WG_EXPR_ATTRIB_CHANGED_TO_SELECT =\n         \"WG_EXPR_ATTRIB_CHANGED_TO_SELECT\";\n  public static final String WG_NO_LOCALE_IN_FORMATNUMBER =\n         \"WG_NO_LOCALE_IN_FORMATNUMBER\";\n  public static final String WG_LOCALE_NOT_FOUND = \"WG_LOCALE_NOT_FOUND\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_CANNOT_LOAD_REQUESTED_DOC =\n         \"WG_CANNOT_LOAD_REQUESTED_DOC\";\n  public static final String WG_CANNOT_FIND_COLLATOR =\"WG_CANNOT_FIND_COLLATOR\";\n  public static final String WG_FUNCTIONS_SHOULD_USE_URL =\n         \"WG_FUNCTIONS_SHOULD_USE_URL\";\n  public static final String WG_ENCODING_NOT_SUPPORTED_USING_UTF8 =\n         \"WG_ENCODING_NOT_SUPPORTED_USING_UTF8\";\n  public static final String WG_ENCODING_NOT_SUPPORTED_USING_JAVA =\n         \"WG_ENCODING_NOT_SUPPORTED_USING_JAVA\";\n  public static final String WG_SPECIFICITY_CONFLICTS =\n         \"WG_SPECIFICITY_CONFLICTS\";\n  public static final String WG_PARSING_AND_PREPARING =\n         \"WG_PARSING_AND_PREPARING\";\n  public static final String WG_ATTR_TEMPLATE = \"WG_ATTR_TEMPLATE\";\n  public static final String WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE = \"WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESP\";\n  public static final String WG_ATTRIB_NOT_HANDLED = \"WG_ATTRIB_NOT_HANDLED\";\n  public static final String WG_NO_DECIMALFORMAT_DECLARATION =\n         \"WG_NO_DECIMALFORMAT_DECLARATION\";\n  public static final String WG_OLD_XSLT_NS = \"WG_OLD_XSLT_NS\";\n  public static final String WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED =\n         \"WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED\";\n  public static final String WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE =\n         \"WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE\";\n  public static final String WG_ILLEGAL_ATTRIBUTE = \"WG_ILLEGAL_ATTRIBUTE\";\n  public static final String WG_COULD_NOT_RESOLVE_PREFIX =\n         \"WG_COULD_NOT_RESOLVE_PREFIX\";\n  public static final String WG_STYLESHEET_REQUIRES_VERSION_ATTRIB =\n         \"WG_STYLESHEET_REQUIRES_VERSION_ATTRIB\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_NAME =\n         \"WG_ILLEGAL_ATTRIBUTE_NAME\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_VALUE =\n         \"WG_ILLEGAL_ATTRIBUTE_VALUE\";\n  public static final String WG_EMPTY_SECOND_ARG = \"WG_EMPTY_SECOND_ARG\";\n  public static final String WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML =\n         \"WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML\";\n  public static final String WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME =\n         \"WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME\";\n  public static final String WG_ILLEGAL_ATTRIBUTE_POSITION =\n         \"WG_ILLEGAL_ATTRIBUTE_POSITION\";\n\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /** Get the lookup table for error messages.   \n   *\n   * @return The int to message lookup table.\n   */\n  public Object[][] getContents()\n  {\n    return new Object[][] {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n  {\"ER0000\" , \"{0}\" },\n\n\n  /** ER_NO_CURLYBRACE          */\n\n\n    { ER_NO_CURLYBRACE,\n      \"Error: No puede haber '{' dentro de la expresi\\u00f3n\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE          */\n\n    { ER_ILLEGAL_ATTRIBUTE ,\n     \"{0} tiene un atributo no permitido: {1}\"},\n\n  /** ER_NULL_SOURCENODE_APPLYIMPORTS          */\n\n  {ER_NULL_SOURCENODE_APPLYIMPORTS ,\n      \"\\u00a1sourceNode es nulo en xsl:apply-imports!\"},\n\n  /** ER_CANNOT_ADD          */\n\n  {ER_CANNOT_ADD,\n      \"No se puede a\\u00f1adir {0} a {1}\"},\n\n\n  /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES          */\n\n\n    { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES,\n      \"\\u00a1sourceNode es nulo en handleApplyTemplatesInstruction!\"},\n\n  /** ER_NO_NAME_ATTRIB          */\n\n\n    { ER_NO_NAME_ATTRIB,\n     \"{0} debe tener un atributo de nombre.\"},\n\n  /** ER_TEMPLATE_NOT_FOUND          */\n\n\n    {ER_TEMPLATE_NOT_FOUND,\n     \"No se ha podido encontrar la plantilla: {0}\"},\n\n  /** ER_CANT_RESOLVE_NAME_AVT          */\n\n    {ER_CANT_RESOLVE_NAME_AVT,\n      \"No se ha podido resolver AVT de nombre en xsl:call-template.\"},\n\n  /** ER_REQUIRES_ATTRIB          */\n\n\n    {ER_REQUIRES_ATTRIB,\n     \"{0} necesita un atributo: {1}\"},\n\n  /** ER_MUST_HAVE_TEST_ATTRIB          */\n\n\n    { ER_MUST_HAVE_TEST_ATTRIB,\n      \"{0} debe tener un atributo ''test''.\"},\n\n  /** ER_BAD_VAL_ON_LEVEL_ATTRIB          */\n\n\n    {ER_BAD_VAL_ON_LEVEL_ATTRIB,\n      \"Valor incorrecto en atributo de nivel: {0}\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n\n\n    {ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"Nombre de processing-instruction no puede ser 'xml'\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n\n\n    { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"Nombre de processing-instruction debe ser un NCName v\\u00e1lido: {0}\"},\n\n  /** ER_NEED_MATCH_ATTRIB          */\n\n\n    { ER_NEED_MATCH_ATTRIB,\n      \"{0} debe tener un atributo de coincidencia si tiene una modalidad.\"},\n\n  /** ER_NEED_NAME_OR_MATCH_ATTRIB          */\n\n\n    { ER_NEED_NAME_OR_MATCH_ATTRIB,\n      \"{0} necesita un atributo de nombre o de coincidencia.\"},\n\n  /** ER_CANT_RESOLVE_NSPREFIX          */\n\n\n    {ER_CANT_RESOLVE_NSPREFIX,\n      \"No se puede resolver el prefijo del espacio de nombres: {0}\"},\n\n  /** ER_ILLEGAL_VALUE          */\n\n\n    { ER_ILLEGAL_VALUE,\n     \"xml:space tiene un valor no permitido: {0}\"},\n\n  /** ER_NO_OWNERDOC          */\n\n\n    { ER_NO_OWNERDOC,\n      \"\\u00a1El nodo hijo no tiene un documento propietario!\"},\n\n  /** ER_ELEMTEMPLATEELEM_ERR          */\n\n\n    { ER_ELEMTEMPLATEELEM_ERR,\n     \"Error de ElemTemplateElement: {0}\"},\n\n  /** ER_NULL_CHILD          */\n\n\n    { ER_NULL_CHILD,\n     \"\\u00a1Intentando a\\u00f1adir un hijo nulo!\"},\n\n  /** ER_NEED_SELECT_ATTRIB          */\n\n\n    { ER_NEED_SELECT_ATTRIB,\n     \"{0} necesita un atributo de selecci\\u00f3n.\"},\n\n  /** ER_NEED_TEST_ATTRIB          */\n\n\n    { ER_NEED_TEST_ATTRIB ,\n      \"xsl:when debe tener un atributo 'test'.\"},\n\n  /** ER_NEED_NAME_ATTRIB          */\n\n\n    { ER_NEED_NAME_ATTRIB,\n      \"xsl:with-param debe tener un atributo 'name'.\"},\n\n  /** ER_NO_CONTEXT_OWNERDOC          */\n\n\n    { ER_NO_CONTEXT_OWNERDOC,\n      \"\\u00a1El contexto no tiene un documento propietario!\"},\n\n  /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON          */\n\n\n    {ER_COULD_NOT_CREATE_XML_PROC_LIAISON,\n      \"No se ha podido crear Liaison TransformerFactory XML: {0}\"},\n\n  /** ER_PROCESS_NOT_SUCCESSFUL          */\n\n\n    {ER_PROCESS_NOT_SUCCESSFUL,\n      \"El proceso Xalan no ha sido satisfactorio.\"},\n\n  /** ER_NOT_SUCCESSFUL          */\n\n\n    { ER_NOT_SUCCESSFUL,\n     \"Xalan no ha sido satisfactorio.\"},\n\n  /** ER_ENCODING_NOT_SUPPORTED          */\n\n\n    { ER_ENCODING_NOT_SUPPORTED,\n     \"Codificaci\\u00f3n no soportada: {0}\"},\n\n  /** ER_COULD_NOT_CREATE_TRACELISTENER          */\n\n\n    {ER_COULD_NOT_CREATE_TRACELISTENER,\n      \"No se ha podido crear TraceListener: {0}\"},\n\n  /** ER_KEY_REQUIRES_NAME_ATTRIB          */\n\n\n    {ER_KEY_REQUIRES_NAME_ATTRIB,\n      \"\\u00a1xsl:key necesita un atributo 'name'!\"},\n\n  /** ER_KEY_REQUIRES_MATCH_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_MATCH_ATTRIB,\n      \"\\u00a1xsl:key necesita un atributo 'match'!\"},\n\n  /** ER_KEY_REQUIRES_USE_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_USE_ATTRIB,\n      \"\\u00a1xsl:key necesita un atributo 'use'!\"},\n\n  /** ER_REQUIRES_ELEMENTS_ATTRIB          */\n\n\n    { ER_REQUIRES_ELEMENTS_ATTRIB,\n      \"\\u00a1(StylesheetHandler) \\u00a1{0} necesita un atributo ''elements''!\"},\n\n  /** ER_MISSING_PREFIX_ATTRIB          */\n\n\n    { ER_MISSING_PREFIX_ATTRIB,\n      \"(StylesheetHandler) Falta el atributo ''prefix'' de {0}\"},\n\n  /** ER_BAD_STYLESHEET_URL          */\n\n\n    { ER_BAD_STYLESHEET_URL,\n     \"El URL de la hoja de estilos es incorrecto: {0}\"},\n\n  /** ER_FILE_NOT_FOUND          */\n\n\n    { ER_FILE_NOT_FOUND,\n     \"No se ha encontrado el archivo de hoja de estilos: {0}\"},\n\n  /** ER_IOEXCEPTION          */\n\n\n    { ER_IOEXCEPTION,\n      \"Se ha producido una excepci\\u00f3n de ES con el archivo de hoja de estilos: {0}\"},\n\n  /** ER_NO_HREF_ATTRIB          */\n\n\n    { ER_NO_HREF_ATTRIB,\n      \"(StylesheetHandler) No se ha podido encontrar el atributo href para {0}\"},\n\n  /** ER_STYLESHEET_INCLUDES_ITSELF          */\n\n\n    { ER_STYLESHEET_INCLUDES_ITSELF,\n      \"(StylesheetHandler) \\u00a1Inclusi\\u00f3n propia de {0} directa o indirectamente!\"},\n\n  /** ER_PROCESSINCLUDE_ERROR          */\n\n\n    { ER_PROCESSINCLUDE_ERROR,\n      \"Error de StylesheetHandler.processInclude, {0}\"},\n\n  /** ER_MISSING_LANG_ATTRIB          */\n\n\n    { ER_MISSING_LANG_ATTRIB,\n      \"(StylesheetHandler) Falta el atributo ''lang'' de {0}\"},\n\n  /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT          */\n\n    { ER_MISSING_CONTAINER_ELEMENT_COMPONENT,\n      \"(StylesheetHandler) Elemento {0} incorrecto. Falta el elemento de contenedor ''component''\"},\n\n  /** ER_CAN_ONLY_OUTPUT_TO_ELEMENT          */\n\n    { ER_CAN_ONLY_OUTPUT_TO_ELEMENT,\n      \"S\\u00f3lo se puede dar salida hacia Element, DocumentFragment, Document o PrintWriter.\"},\n\n  /** ER_PROCESS_ERROR          */\n\n    { ER_PROCESS_ERROR,\n     \"Error de StylesheetRoot.process\"},\n\n  /** ER_UNIMPLNODE_ERROR          */\n\n    { ER_UNIMPLNODE_ERROR,\n     \"Error de UnImplNode: {0}\"},\n\n  /** ER_NO_SELECT_EXPRESSION          */\n\n    { ER_NO_SELECT_EXPRESSION,\n      \"\\u00a1Error! No se ha encontrado la expresi\\u00f3n de selecci\\u00f3n (-select) de xpath.\"},\n\n  /** ER_CANNOT_SERIALIZE_XSLPROCESSOR          */\n\n    { ER_CANNOT_SERIALIZE_XSLPROCESSOR,\n      \"\\u00a1No se puede serializar un XSLProcessor!\"},\n\n  /** ER_NO_INPUT_STYLESHEET          */\n\n    { ER_NO_INPUT_STYLESHEET,\n      \"\\u00a1No se ha especificado la entrada de hoja de estilos!\"},\n\n  /** ER_FAILED_PROCESS_STYLESHEET          */\n\n    { ER_FAILED_PROCESS_STYLESHEET,\n      \"\\u00a1No se ha podido procesar la hoja de estilos!\"},\n\n  /** ER_COULDNT_PARSE_DOC          */\n\n    { ER_COULDNT_PARSE_DOC,\n     \"\\u00a1No se ha podido analizar el documento {0}!\"},\n\n  /** ER_COULDNT_FIND_FRAGMENT          */\n\n    { ER_COULDNT_FIND_FRAGMENT,\n     \"No se ha podido encontrar el fragmento: {0}\"},\n\n  /** ER_NODE_NOT_ELEMENT          */\n\n    { ER_NODE_NOT_ELEMENT,\n      \"El nodo se\\u00f1alado por un identificador de fragmento no es un elemento: {0}\"},\n\n  /** ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB,\n      \"for-each debe tener un atributo de coincidencia o de nombre\"},\n\n  /** ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB,\n      \"templates debe tener un atributo de coincidencia o de nombre\"},\n\n  /** ER_NO_CLONE_OF_DOCUMENT_FRAG          */\n\n    { ER_NO_CLONE_OF_DOCUMENT_FRAG,\n      \"\\u00a1No es r\\u00e9plica de un fragmento de documento!\"},\n\n  /** ER_CANT_CREATE_ITEM          */\n\n    { ER_CANT_CREATE_ITEM,\n      \"No se puede crear el elemento en el \\u00e1rbol de resultados: {0}\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VALUE          */\n\n    { ER_XMLSPACE_ILLEGAL_VALUE,\n      \"xml:space en el XML fuente tiene un valor no permitido: {0}\"},\n\n  /** ER_NO_XSLKEY_DECLARATION          */\n\n    { ER_NO_XSLKEY_DECLARATION,\n      \"\\u00a1No hay declaraci\\u00f3n xsl:key para {0}!\"},\n\n  /** ER_CANT_CREATE_URL          */\n\n    { ER_CANT_CREATE_URL,\n     \"\\u00a1Error! No se puede crear url para: {0}\"},\n\n  /** ER_XSLFUNCTIONS_UNSUPPORTED          */\n\n    { ER_XSLFUNCTIONS_UNSUPPORTED,\n     \"xsl:functions no est\\u00e1 soportado\"},\n\n  /** ER_PROCESSOR_ERROR          */\n\n    { ER_PROCESSOR_ERROR,\n     \"Error de XSLT TransformerFactory\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_STYLESHEET          */\n\n    { ER_NOT_ALLOWED_INSIDE_STYLESHEET,\n      \"(StylesheetHandler) \\u00a1{0} no permitido dentro de una hoja de estilos!\"},\n\n  /** ER_RESULTNS_NOT_SUPPORTED          */\n\n    { ER_RESULTNS_NOT_SUPPORTED,\n      \"\\u00a1Ya no se soporta result-ns! Utilice xsl:output en su lugar.\"},\n\n  /** ER_DEFAULTSPACE_NOT_SUPPORTED          */\n\n    { ER_DEFAULTSPACE_NOT_SUPPORTED,\n      \"\\u00a1Ya no se soporta default-space! Utilice xsl:strip-space o xsl:preserve-space en su lugar.\"},\n\n  /** ER_INDENTRESULT_NOT_SUPPORTED          */\n\n    { ER_INDENTRESULT_NOT_SUPPORTED,\n      \"\\u00a1Ya no se soporta indent-result! Utilice xsl:output en su lugar.\"},\n\n  /** ER_ILLEGAL_ATTRIB          */\n\n    { ER_ILLEGAL_ATTRIB,\n      \"(StylesheetHandler) {0} tiene un atributo no permitido: {1}\"},\n\n  /** ER_UNKNOWN_XSL_ELEM          */\n\n    { ER_UNKNOWN_XSL_ELEM,\n     \"Elemento XSL desconocido: {0}\"},\n\n  /** ER_BAD_XSLSORT_USE          */\n\n    { ER_BAD_XSLSORT_USE,\n      \"(StylesheetHandler) xsl:sort s\\u00f3lo puede utilizarse con xsl:apply-templates o xsl:for-each.\"},\n\n  /** ER_MISPLACED_XSLWHEN          */\n\n    { ER_MISPLACED_XSLWHEN,\n      \"(StylesheetHandler) \\u00a1xsl:when equivocado!\"},\n\n  /** ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE,\n      \"(StylesheetHandler) \\u00a1xsl:when no emparentado por xsl:choose!\"},\n\n  /** ER_MISPLACED_XSLOTHERWISE          */\n\n    { ER_MISPLACED_XSLOTHERWISE,\n      \"(StylesheetHandler) \\u00a1xsl:otherwise equivocado!\"},\n\n  /** ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE,\n      \"(StylesheetHandler) \\u00a1xsl:otherwise no emparentado por xsl:choose!\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_TEMPLATE          */\n\n    { ER_NOT_ALLOWED_INSIDE_TEMPLATE,\n      \"(StylesheetHandler) \\u00a1{0} no permitido dentro de una plantilla!\"},\n\n  /** ER_UNKNOWN_EXT_NS_PREFIX          */\n\n    { ER_UNKNOWN_EXT_NS_PREFIX,\n      \"(StylesheetHandler) Prefijo {1} de espacio de nombres de extensi\\u00f3n {0} desconocido\"},\n\n  /** ER_IMPORTS_AS_FIRST_ELEM          */\n\n    { ER_IMPORTS_AS_FIRST_ELEM,\n      \"(StylesheetHandler) \\u00a1Las importaciones s\\u00f3lo pueden aparecer como primeros elementos de la hoja de estilos!\"},\n\n  /** ER_IMPORTING_ITSELF          */\n\n    { ER_IMPORTING_ITSELF,\n      \"(StylesheetHandler) \\u00a1Importaci\\u00f3n propia de {0} directa o indirectamente!\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VAL          */\n\n    { ER_XMLSPACE_ILLEGAL_VAL,\n      \"(StylesheetHandler) xml:space tiene un valor no permitido: {0}\"},\n\n  /** ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL          */\n\n    { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL,\n      \"\\u00a1processStylesheet no satisfactorio!\"},\n\n  /** ER_SAX_EXCEPTION          */\n\n    { ER_SAX_EXCEPTION,\n     \"Excepci\\u00f3n SAX\"},\n\n  /** ER_FUNCTION_NOT_SUPPORTED          */\n\n\n  /** ER_XSLT_ERROR          */\n\n    { ER_XSLT_ERROR,\n     \"Error de XSLT\"},\n\n  /** ER_CURRENCY_SIGN_ILLEGAL          */\n\n    { ER_CURRENCY_SIGN_ILLEGAL,\n      \"El signo monetario no est\\u00e1 permitido en la serie del patr\\u00f3n de formato\"},\n\n  /** ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM          */\n\n    { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM,\n      \"\\u00a1La funci\\u00f3n de documento no est\\u00e1 soportada en DOM de hoja de estilos!\"},\n\n  /** ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER          */\n\n    { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER,\n      \"\\u00a1No se puede resolver el prefijo de un resolucionador sin prefijo!\"},\n\n  /** ER_REDIRECT_COULDNT_GET_FILENAME          */\n\n    { ER_REDIRECT_COULDNT_GET_FILENAME,\n      \"Extensi\\u00f3n Redirect: No se ha podido obtener el nombre de archivo - el atributo de archivo o de selecci\\u00f3n debe devolver una serie v\\u00e1lida.\"},\n\n  /** ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT          */\n\n    { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT,\n      \"\\u00a1No se puede crear FormatterListener en extensi\\u00f3n Redirect!\"},\n\n  /** ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX          */\n\n    { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX,\n      \"El prefijo en exclude-result-prefixes no es v\\u00e1lido: {0}\"},\n\n  /** ER_MISSING_NS_URI          */\n\n    { ER_MISSING_NS_URI,\n      \"Falta el URI del espacio de nombres para el prefijo especificado\"},\n\n  /** ER_MISSING_ARG_FOR_OPTION          */\n\n    { ER_MISSING_ARG_FOR_OPTION,\n      \"Falta un argumento para la opci\\u00f3n: {0}\"},\n\n  /** ER_INVALID_OPTION          */\n\n    { ER_INVALID_OPTION,\n     \"Opci\\u00f3n no v\\u00e1lida: {0}\"},\n\n  /** ER_MALFORMED_FORMAT_STRING          */\n\n    { ER_MALFORMED_FORMAT_STRING,\n     \"Serie de formato mal formada: {0}\"},\n\n  /** ER_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n\n    { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"\\u00a1xsl:stylesheet necesita un atributo 'version'!\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE_VALUE          */\n\n    { ER_ILLEGAL_ATTRIBUTE_VALUE,\n      \"Atributo: {0} tiene un valor no permitido: {1}\"},\n\n  /** ER_CHOOSE_REQUIRES_WHEN          */\n\n    { ER_CHOOSE_REQUIRES_WHEN,\n     \"xsl:choose necesita un xsl:when\"},\n\n  /** ER_NO_APPLY_IMPORT_IN_FOR_EACH          */\n\n    { ER_NO_APPLY_IMPORT_IN_FOR_EACH,\n      \"xsl:apply-imports no permitido en xsl:for-each\"},\n\n  /** ER_CANT_USE_DTM_FOR_OUTPUT          */\n\n    { ER_CANT_USE_DTM_FOR_OUTPUT,\n      \"No se puede utilizar DTMLiaison para un nodo DOM de salida... \\u00a1Pase org.apache.xpath.DOM2Helper en su lugar!\"},\n\n  /** ER_CANT_USE_DTM_FOR_INPUT          */\n\n    { ER_CANT_USE_DTM_FOR_INPUT,\n      \"No se puede utilizar DTMLiaison para un nodo DOM de entrada... \\u00a1Pase org.apache.xpath.DOM2Helper en su lugar!\"},\n\n  /** ER_CALL_TO_EXT_FAILED          */\n\n    { ER_CALL_TO_EXT_FAILED,\n      \"Anomal\\u00eda al llamar al elemento de extensi\\u00f3n: {0}\"},\n\n  /** ER_PREFIX_MUST_RESOLVE          */\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"El prefijo debe resolverse como un espacio de nombres: {0}\"},\n\n  /** ER_INVALID_UTF16_SURROGATE          */\n\n    { ER_INVALID_UTF16_SURROGATE,\n      \"\\u00bfSe ha detectado un sustituto UTF-16 no v\\u00e1lido: {0}?\"},\n\n  /** ER_XSLATTRSET_USED_ITSELF          */\n\n    { ER_XSLATTRSET_USED_ITSELF,\n      \"xsl:attribute-set {0} se ha utilizado a s\\u00ed mismo lo que puede provocar un bucle infinito.\"},\n\n  /** ER_CANNOT_MIX_XERCESDOM          */\n\n    { ER_CANNOT_MIX_XERCESDOM,\n      \"\\u00a1No se puede mezclar la entrada Xerces-DOM con la salida Xerces-DOM!\"},\n\n  /** ER_TOO_MANY_LISTENERS          */\n\n    { ER_TOO_MANY_LISTENERS,\n      \"addTraceListenersToStylesheet - TooManyListenersException\"},\n\n  /** ER_IN_ELEMTEMPLATEELEM_READOBJECT          */\n\n    { ER_IN_ELEMTEMPLATEELEM_READOBJECT,\n      \"En ElemTemplateElement.readObject: {0}\"},\n\n  /** ER_DUPLICATE_NAMED_TEMPLATE          */\n\n    { ER_DUPLICATE_NAMED_TEMPLATE,\n      \"Se ha encontrado m\\u00e1s de una plantilla con el nombre: {0}\"},\n\n  /** ER_INVALID_KEY_CALL          */\n\n    { ER_INVALID_KEY_CALL,\n      \"Llamada de funci\\u00f3n no v\\u00e1lida: no est\\u00e1n permitidas las llamadas key() recursivas\"},\n\n  /** Variable is referencing itself          */\n\n    { ER_REFERENCING_ITSELF,\n      \"\\u00a1La variable {0} se est\\u00e1 referenciando a s\\u00ed misma directa o indirectamente!\"},\n\n  /** Illegal DOMSource input          */\n\n    { ER_ILLEGAL_DOMSOURCE_INPUT,\n      \"\\u00a1El nodo de entrada no puede ser nulo para DOMSource de newTemplates!\"},\n\n        /** Class not found for option         */\n\n    { ER_CLASS_NOT_FOUND_FOR_OPTION,\n        \"No se ha encontrado el archivo de clase para la opci\\u00f3n {0}\"},\n\n        /** Required Element not found         */\n\n    { ER_REQUIRED_ELEM_NOT_FOUND,\n        \"No se ha encontrado un elemento necesario: {0}\"},\n\n  /** InputStream cannot be null         */\n\n    { ER_INPUT_CANNOT_BE_NULL,\n        \"InputStream no puede ser nulo\"},\n\n  /** URI cannot be null         */\n\n    { ER_URI_CANNOT_BE_NULL,\n        \"URI no puede ser nulo\"},\n\n  /** File cannot be null         */\n\n    { ER_FILE_CANNOT_BE_NULL,\n        \"Archivo no puede ser nulo\"},\n\n   /** InputSource cannot be null         */\n\n    { ER_SOURCE_CANNOT_BE_NULL,\n                \"InputSource no puede ser nulo\"},\n\n  /** Can't overwrite cause         */\n\n\n  /** Could not initialize BSF Manager        */\n\n    { ER_CANNOT_INIT_BSFMGR,\n                \"No se ha podido inicializar el Gestor BSF\"},\n\n  /** Could not compile extension       */\n\n    { ER_CANNOT_CMPL_EXTENSN,\n                \"No se ha podido compilar la extensi\\u00f3n\"},\n\n  /** Could not create extension       */\n\n    { ER_CANNOT_CREATE_EXTENSN,\n      \"No se ha podido crear la extensi\\u00f3n: {0} como consecuencia de: {1}\"},\n\n  /** Instance method call to method {0} requires an Object instance as first argument       */\n\n    { ER_INSTANCE_MTHD_CALL_REQUIRES,\n      \"La llamada del m\\u00e9todo de instancia al m\\u00e9todo {0} necesita una instancia Object como primer argumento\"},\n\n  /** Invalid element name specified       */\n\n    { ER_INVALID_ELEMENT_NAME,\n      \"Se ha especificado un nombre de elemento no v\\u00e1lido {0}\"},\n\n   /** Element name method must be static      */\n\n    { ER_ELEMENT_NAME_METHOD_STATIC,\n      \"El m\\u00e9todo del nombre de elemento debe ser est\\u00e1tico {0}\"},\n\n   /** Extension function {0} : {1} is unknown      */\n\n    { ER_EXTENSION_FUNC_UNKNOWN,\n             \"Funci\\u00f3n de extensi\\u00f3n {0} : {1} desconocida\"},\n\n   /** More than one best match for constructor for       */\n\n    { ER_MORE_MATCH_CONSTRUCTOR,\n             \"Hay m\\u00e1s de una coincidencia m\\u00e1xima para el constructor de {0}\"},\n\n   /** More than one best match for method      */\n\n    { ER_MORE_MATCH_METHOD,\n             \"Hay m\\u00e1s de una coincidencia m\\u00e1xima para el m\\u00e9todo {0}\"},\n\n   /** More than one best match for element method      */\n\n    { ER_MORE_MATCH_ELEMENT,\n             \"Hay m\\u00e1s de una coincidencia m\\u00e1xima para el m\\u00e9todo de elemento {0}\"},\n\n   /** Invalid context passed to evaluate       */\n\n    { ER_INVALID_CONTEXT_PASSED,\n             \"Se ha pasado un contexto no v\\u00e1lido para evaluar {0}\"},\n\n   /** Pool already exists       */\n\n    { ER_POOL_EXISTS,\n             \"La agrupaci\\u00f3n ya existe\"},\n\n   /** No driver Name specified      */\n\n    { ER_NO_DRIVER_NAME,\n             \"No se ha especificado un nombre de controlador\"},\n\n   /** No URL specified     */\n\n    { ER_NO_URL,\n             \"No se ha especificado un URL\"},\n\n   /** Pool size is less than one    */\n\n    { ER_POOL_SIZE_LESSTHAN_ONE,\n             \"\\u00a1El tama\\u00f1o de la agrupaci\\u00f3n es menor que uno!\"},\n\n   /** Invalid driver name specified    */\n\n    { ER_INVALID_DRIVER,\n             \"\\u00a1Se ha especificado un nombre de controlador no v\\u00e1lido!\"},\n\n   /** Did not find the stylesheet root    */\n\n    { ER_NO_STYLESHEETROOT,\n             \"\\u00a1No se ha encontrado la ra\\u00edz de la hoja de estilos!\"},\n\n   /** Illegal value for xml:space     */\n\n    { ER_ILLEGAL_XMLSPACE_VALUE,\n         \"Valor no permitido para xml:space\"},\n\n   /** processFromNode failed     */\n\n    { ER_PROCESSFROMNODE_FAILED,\n         \"Anomal\\u00eda de processFromNode\"},\n\n   /** The resource [] could not load:     */\n\n    { ER_RESOURCE_COULD_NOT_LOAD,\n        \"No se ha podido cargar el recurso [ {0} ]: {1} \\n {2} \\t {3}\"},\n\n\n   /** Buffer size <=0     */\n\n    { ER_BUFFER_SIZE_LESSTHAN_ZERO,\n        \"Tama\\u00f1o de almacenamiento intermedio <=0\"},\n\n   /** Unknown error when calling extension    */\n\n    { ER_UNKNOWN_ERROR_CALLING_EXTENSION,\n        \"Error desconocido al llamar a la extensi\\u00f3n\"},\n\n   /** Prefix {0} does not have a corresponding namespace declaration    */\n\n    { ER_NO_NAMESPACE_DECL,\n        \"El prefijo {0} no tiene una declaraci\\u00f3n de espacio de nombres correspondiente\"},\n\n   /** Element content not allowed for lang=javaclass   */\n\n    { ER_ELEM_CONTENT_NOT_ALLOWED,\n        \"No se permite el contenido del elemento para lang=javaclass {0}\"},\n\n   /** Stylesheet directed termination   */\n\n    { ER_STYLESHEET_DIRECTED_TERMINATION,\n        \"Terminaci\\u00f3n de hoja de estilos dirigida\"},\n\n   /** 1 or 2   */\n\n    { ER_ONE_OR_TWO,\n        \"1 \\u00f3 2\"},\n\n   /** 2 or 3   */\n\n    { ER_TWO_OR_THREE,\n        \"2 \\u00f3 3\"},\n\n   /** Could not load {0} (check CLASSPATH), now using just the defaults   */\n\n    { ER_COULD_NOT_LOAD_RESOURCE,\n        \"No se ha podido cargar {0} (compruebe la CLASSPATH), ahora s\\u00f3lo se est\\u00e1n utilizando los valores por omisi\\u00f3n\"},\n\n   /** Cannot initialize default templates   */\n\n    { ER_CANNOT_INIT_DEFAULT_TEMPLATES,\n        \"No se han podido inicializar las plantillas por omisi\\u00f3n\"},\n\n   /** Result should not be null   */\n\n    { ER_RESULT_NULL,\n        \"El resultado no deber\\u00eda ser nulo\"},\n\n   /** Result could not be set   */\n\n    { ER_RESULT_COULD_NOT_BE_SET,\n        \"No se ha podido establecer el resultado\"},\n\n   /** No output specified   */\n\n    { ER_NO_OUTPUT_SPECIFIED,\n        \"No se ha especificado salida\"},\n\n   /** Can't transform to a Result of type   */\n\n    { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE,\n        \"No se puede transformar un resultado de tipo {0}\"},\n\n   /** Can't transform to a Source of type   */\n\n    { ER_CANNOT_TRANSFORM_SOURCE_TYPE,\n        \"No se puede transformar un fuente de tipo {0}\"},\n\n   /** Null content handler  */\n\n    { ER_NULL_CONTENT_HANDLER,\n        \"Manejador de contenido nulo\"},\n\n   /** Null error handler  */\n    { ER_NULL_ERROR_HANDLER,\n        \"Manejador de error nulo\"},\n\n   /** parse can not be called if the ContentHandler has not been set */\n\n    { ER_CANNOT_CALL_PARSE,\n        \"No se puede llamar a parse si no se ha establecido ContentHandler\"},\n\n   /**  No parent for filter */\n\n    { ER_NO_PARENT_FOR_FILTER,\n        \"No hay padre para el filtro\"},\n\n\n   /**  No stylesheet found in: {0}, media */\n\n    { ER_NO_STYLESHEET_IN_MEDIA,\n         \"No se han encontrado hojas de estilos en: {0}, soporte= {1}\"},\n\n   /**  No xml-stylesheet PI found in */\n\n    { ER_NO_STYLESHEET_PI,\n         \"No se ha encontrado xml-stylesheet PI en: {0}\"},\n\n   /**  No default implementation found */\n\n\n   /**  ChunkedIntArray({0}) not currently supported */\n\n\n   /**  Offset bigger than slot */\n\n\n   /**  Coroutine not available, id= */\n\n\n   /**  CoroutineManager recieved co_exit() request */\n\n\n   /**  co_joinCoroutineSet() failed */\n\n\n   /**  Coroutine parameter error () */\n\n\n   /**  UNEXPECTED: Parser doTerminate answers  */\n\n\n   /**  parse may not be called while parsing */\n\n\n   /**  Error: typed iterator for axis  {0} not implemented  */\n\n\n   /**  Error: iterator for axis {0} not implemented  */\n\n\n   /**  Iterator clone not supported  */\n\n\n   /**  Unknown axis traversal type  */\n\n\n   /**  Axis traverser not supported  */\n\n\n   /**  No more DTM IDs are available  */\n\n\n   /**  Not supported  */\n\n    { ER_NOT_SUPPORTED,\n       \"No soportado: {0}\"},\n\n   /**  node must be non-null for getDTMHandleFromNode  */\n\n\n   /**  Could not resolve the node to a handle  */\n\n\n   /**  startParse may not be called while parsing */\n\n\n   /**  startParse needs a non-null SAXParser  */\n\n\n   /**  could not initialize parser with */\n\n   /**  Value for property {0} should be a Boolean instance  */\n\n    { ER_PROPERTY_VALUE_BOOLEAN,\n       \"El valor de la propiedad {0} deber\\u00eda ser una instancia Boolean\"},\n\n   /**  exception creating new instance for pool  */\n\n\n   /**  Path contains invalid escape sequence  */\n\n\n   /**  Scheme is required!  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  Path contains invalid character:   */\n\n\n   /**  Cannot set scheme from null string  */\n\n\n   /**  The scheme is not conformant. */\n\n\n   /**  Host is not a well formed address  */\n\n\n   /**  Port cannot be set when host is null  */\n\n\n   /**  Invalid port number  */\n\n\n   /**  Fragment can only be set for a generic URI  */\n\n\n   /**  Fragment cannot be set when path is null  */\n\n\n   /**  Fragment contains invalid character  */\n\n\n\n\n   /** Parser is already in use  */\n\n\n   /** Parser is already in use  */\n\n\n   /** Self-causation not permitted  */\n\n\n   /** src attribute not yet supported for  */\n\n    { ER_COULD_NOT_FIND_EXTERN_SCRIPT,\n         \"No se ha podido encontrar el script externo en {0}\"},\n\n  /** The resource [] could not be found     */\n\n    { ER_RESOURCE_COULD_NOT_FIND,\n        \"No se ha podido cargar el recurso [ {0} ].\\n{1}\"},\n\n   /** output property not recognized:  */\n\n    { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED,\n        \"No se reconoce la propiedad de salida: {0}\"},\n\n   /** Userinfo may not be specified if host is not specified   */\n\n\n   /** Port may not be specified if host is not specified   */\n\n\n   /** Query string cannot be specified in path and query string   */\n\n\n   /** Fragment cannot be specified in both the path and fragment   */\n\n\n   /** Cannot initialize URI with empty parameters   */\n\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMLITRSLT,\n        \"Anomal\\u00eda al crear la instancia ElemLiteralResult\"},\n\n\n   /** Priority value does not contain a parsable number   */\n\n    { ER_VALUE_SHOULD_BE_NUMBER,\n        \"El valor para {0} deber\\u00eda contener un n\\u00famero analizable\"},\n\n   /**  Value for {0} should equal 'yes' or 'no'   */\n\n    { ER_VALUE_SHOULD_EQUAL,\n        \"El valor de {0} deber\\u00eda ser s\\u00ed o no\"},\n\n   /**  Failed calling {0} method   */\n\n    { ER_FAILED_CALLING_METHOD,\n        \"Anomal\\u00eda al llamar al m\\u00e9todo {0}\"},\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMTMPL,\n        \"Anomal\\u00eda al crear la instancia ElemTemplateElement\"},\n\n   /**  Characters are not allowed at this point in the document   */\n\n    { ER_CHARS_NOT_ALLOWED,\n        \"No se permiten caracteres en este punto del documento\"},\n\n  /**  attribute is not allowed on the element   */\n    { ER_ATTR_NOT_ALLOWED,\n        \"\\u00a1El atributo \\\"{0}\\\" no est\\u00e1 permitido en el elemento {1}!\"},\n\n  /**  Method not yet supported    */\n\n\n  /**  Bad value    */\n\n    { ER_BAD_VALUE,\n     \"{0} valor incorrecto {1}\"},\n\n  /**  attribute value not found   */\n\n    { ER_ATTRIB_VALUE_NOT_FOUND,\n     \"No se ha encontrado el valor del atributo {0}\"},\n\n  /**  attribute value not recognized    */\n\n    { ER_ATTRIB_VALUE_NOT_RECOGNIZED,\n     \"No se ha reconocido el valor del atributo {0}\"},\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NULL_URI_NAMESPACE,\n     \"Se ha intentado generar un prefijo de espacio de nombres con un URI nulo\"},\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NUMBER_TOO_BIG,\n     \"Se ha intentado formatear un n\\u00famero mayor que el entero largo m\\u00e1s grande\"},\n\n\n\n    { ER_CANNOT_FIND_SAX1_DRIVER,\n     \"No se ha podido encontrar la clase de controlador SAX1 {0}\"},\n\n\n    { ER_SAX1_DRIVER_NOT_LOADED,\n     \"Se ha encontrado la clase de controlador SAX1 {0} pero no se ha podido cargar\"},\n\n\n    { ER_SAX1_DRIVER_NOT_INSTANTIATED,\n     \"Se ha cargado la clase de controlador SAX1 {0} pero no se ha podido crear una instancia\"},\n\n\n\n    { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER,\n     \"La clase de controlador SAX1 {0} no implementa org.xml.sax.Parser\"},\n\n\n    { ER_PARSER_PROPERTY_NOT_SPECIFIED,\n     \"No se ha especificado la propiedad del sistema org.xml.sax.parser\"},\n\n\n    { ER_PARSER_ARG_CANNOT_BE_NULL,\n     \"El argumento del analizador no debe ser nulo\"},\n\n\n\n    { ER_FEATURE,\n     \"Caracter\\u00edstica: {0}\"},\n\n\n\n    { ER_PROPERTY,\n     \"Propiedad: {0}\"},\n\n\n    { ER_NULL_ENTITY_RESOLVER,\n     \"Resolucionador de entidad nulo\"},\n\n\n    { ER_NULL_DTD_HANDLER,\n     \"Manejador DTD nulo\"},\n\n    { ER_NO_DRIVER_NAME_SPECIFIED,\n     \"\\u00a1No se ha especificado un nombre de controlador!\"},\n\n\n    { ER_NO_URL_SPECIFIED,\n     \"\\u00a1No se ha especificado un URL!\"},\n\n\n    { ER_POOLSIZE_LESS_THAN_ONE,\n     \"\\u00a1El tama\\u00f1o de la agrupaci\\u00f3n es menor que 1!\"},\n\n\n    { ER_INVALID_DRIVER_NAME,\n     \"\\u00a1Se ha especificado un nombre de controlador no v\\u00e1lido!\"},\n\n\n\n    { ER_ERRORLISTENER,\n     \"ErrorListener\"},\n\n\n    { ER_ASSERT_NO_TEMPLATE_PARENT,\n     \"\\u00a1Error del programador! \\u00a1La expresi\\u00f3n no tiene un padre ElemTemplateElement!\"},\n\n\n    { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR,\n     \"Aserci\\u00f3n del programador en RundundentExprEliminator: {0}\"},\n\n\n\n    { ER_NOT_ALLOWED_IN_POSITION,\n     \"\\u00a1{0} no est\\u00e1 permitido en esta posici\\u00f3n de la hoja de estilos!\"},\n\n    { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,\n     \"\\u00a1No est\\u00e1 permitido texto sin espacios en blanco en esta posici\\u00f3n de la hoja de estilos!\"},\n\n    { INVALID_TCHAR,\n     \"Valor no permitido: se ha utilizado {1} para el atributo CHAR: {0}. \\u00a1Un atributo de tipo CHAR debe ser de un solo car\\u00e1cter!\"},\n\n\n\n\n    { INVALID_QNAME,\n     \"Valor no permitido: se ha utilizado {1} para el atributo QNAME: {0}\"},\n\n\n    { INVALID_ENUM,\n     \"Valor no permitido: se ha utilizado {1} para el atributo ENUM: {0}. Los valores v\\u00e1lidos son: {2}.\"},\n\n\n    { INVALID_NMTOKEN,\n     \"Valor no permitido: se ha utilizado {1} para el atributo NMTOKEN: {0}\"},\n\n\n    { INVALID_NCNAME,\n     \"Valor no permitido: se ha utilizado {1} para el atributo NCNAME: {0}\"},\n\n\n\n    { INVALID_BOOLEAN,\n     \"Valor no permitido: se ha utilizado {1} para el atributo boolean: {0}\"},\n\n\n     { INVALID_NUMBER,\n     \"Valor no permitido: se ha utilizado {1} para el atributo number: {0}\"},\n\n\n\n\n    { ER_ARG_LITERAL,\n     \"El argumento para {0} en el patr\\u00f3n de coincidencia debe ser un literal.\"},\n\n\n    { ER_DUPLICATE_GLOBAL_VAR,\n     \"Declaraci\\u00f3n de variable global duplicada.\"},\n\n\n\n    { ER_DUPLICATE_VAR,\n     \"Declaraci\\u00f3n de variable duplicada.\"},\n\n\n    { ER_TEMPLATE_NAME_MATCH,\n     \"xsl:template debe tener un atributo name o match (o ambos)\"},\n\n\n    { ER_INVALID_PREFIX,\n     \"El prefijo en exclude-result-prefixes no es v\\u00e1lido: {0}\"},\n\n\n    { ER_NO_ATTRIB_SET,\n     \"attribute-set de nombre {0} no existe\"},\n\n\n\n\n\n\n  /** WG_FOUND_CURLYBRACE          */\n    { WG_FOUND_CURLYBRACE,\n      \"\\u00a1Se ha encontrado '}' pero no se ha abierto una plantilla de atributos!\"},\n\n  /** WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR          */\n\n    { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,\n      \"Aviso: \\u00a1El atributo count no coincide con un antecesor en xsl:number! Destino = {0}\"},\n\n  /** WG_EXPR_ATTRIB_CHANGED_TO_SELECT          */\n\n    { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,\n      \"Sintaxis antigua: El nombre del atributo 'expr' se ha cambiado por 'select'.\"},\n\n  /** WG_NO_LOCALE_IN_FORMATNUMBER          */\n\n    { WG_NO_LOCALE_IN_FORMATNUMBER,\n      \"Xalan no maneja a\\u00fan el nombre de entorno local en la funci\\u00f3n format-number.\"},\n\n  /** WG_LOCALE_NOT_FOUND          */\n\n    { WG_LOCALE_NOT_FOUND,\n      \"Aviso: No se ha podido encontrar el entorno local para xml:lang={0}\"},\n\n  /** WG_CANNOT_MAKE_URL_FROM          */\n\n    { WG_CANNOT_MAKE_URL_FROM,\n      \"No se puede crear URL desde: {0}\"},\n\n  /** WG_CANNOT_LOAD_REQUESTED_DOC          */\n\n    { WG_CANNOT_LOAD_REQUESTED_DOC,\n      \"No se puede cargar el doc solicitado: {0}\"},\n\n  /** WG_CANNOT_FIND_COLLATOR          */\n    { WG_CANNOT_FIND_COLLATOR,\n      \"No se ha podido encontrar clasificador para <sort xml:lang={0}\"},\n\n  /** WG_FUNCTIONS_SHOULD_USE_URL          */\n\n    { WG_FUNCTIONS_SHOULD_USE_URL,\n      \"Sintaxis antigua: La instrucci\\u00f3n functions deber\\u00eda utilizar un url de {0}\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_UTF8          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,\n      \"Codificaci\\u00f3n no soportada: {0}, se utiliza UTF-8\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_JAVA          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,\n      \"Codificaci\\u00f3n no soportada: {0}, se utiliza Java {1}\"},\n\n  /** WG_SPECIFICITY_CONFLICTS          */\n\n    { WG_SPECIFICITY_CONFLICTS,\n      \"Se han encontrado conflictos de especificaci\\u00f3n: {0} Se utilizar\\u00e1 lo \\u00faltimo encontrado en la hoja de estilos.\"},\n\n  /** WG_PARSING_AND_PREPARING          */\n\n    { WG_PARSING_AND_PREPARING,\n      \"========= Analizando y preparando {0} ==========\"},\n\n  /** WG_ATTR_TEMPLATE          */\n\n    { WG_ATTR_TEMPLATE,\n     \"Plantilla de atributos, {0}\"},\n\n  /** WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE          */\n\n    { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,\n      \"Conflicto de coincidencia entre xsl:strip-space y xsl:preserve-space\"},\n\n  /** WG_ATTRIB_NOT_HANDLED          */\n\n    { WG_ATTRIB_NOT_HANDLED,\n      \"\\u00a1Xalan no maneja a\\u00fan el atributo {0}!\"},\n\n  /** WG_NO_DECIMALFORMAT_DECLARATION          */\n\n    { WG_NO_DECIMALFORMAT_DECLARATION,\n      \"No se ha encontrado declaraci\\u00f3n para el formato decimal: {0}\"},\n\n  /** WG_OLD_XSLT_NS          */\n\n    { WG_OLD_XSLT_NS,\n     \"Falta el espacio de nombres XSLT o es incorrecto.\"},\n\n  /** WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED          */\n\n    { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,\n      \"S\\u00f3lo se permite una declaraci\\u00f3n xsl:decimal-format por omisi\\u00f3n.\"},\n\n  /** WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE          */\n\n    { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,\n      \"Los nombres de xsl:decimal-format deben ser \\u00fanicos. El nombre \\\"{0}\\\" se ha duplicado.\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE          */\n\n    { WG_ILLEGAL_ATTRIBUTE,\n      \"{0} tiene un atributo no permitido: {1}\"},\n\n  /** WG_COULD_NOT_RESOLVE_PREFIX          */\n\n    { WG_COULD_NOT_RESOLVE_PREFIX,\n      \"No se ha podido resolver el prefijo del espacio de nombres: {0}. Se ignorar\\u00e1 el nodo.\"},\n\n  /** WG_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n    { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"\\u00a1xsl:stylesheet necesita un atributo 'version'!\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_NAME          */\n\n    { WG_ILLEGAL_ATTRIBUTE_NAME,\n      \"Nombre de atributo no permitido: {0}\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_VALUE          */\n    { WG_ILLEGAL_ATTRIBUTE_VALUE,\n      \"Se ha utilizado un valor no permitido para el atributo {0}: {1}\"},\n\n  /** WG_EMPTY_SECOND_ARG          */\n\n    { WG_EMPTY_SECOND_ARG,\n      \"El NodeSet resultante del segundo argumento de la funci\\u00f3n del documento est\\u00e1 vac\\u00edo. Devuelve un conjunto de nodos vac\\u00edo.\"},\n\n\n\n\n  /** WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n    { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"El valor del atributo 'name' de nombre xsl:processing-instruction no debe ser 'xml'\"},\n\n\n  /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n    { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"El valor del atributo 'name' de xsl:processing-instruction debe ser un NCName v\\u00e1lido: {0}\"},\n\n\n  /** WG_ILLEGAL_ATTRIBUTE_POSITION         */\n    { WG_ILLEGAL_ATTRIBUTE_POSITION,\n      \"No se puede a\\u00f1adir el atributo {0} despu\\u00e9s de nodos hijo o antes de que se produzca un elemento. Se ignorar\\u00e1 el atributo.\"},\n\n\n  { \"ui_language\", \"es\"},\n  {  \"help_language\",  \"es\" },\n  {  \"language\",  \"es\" },\n  { \"BAD_CODE\", \"El par\\u00e1metro para createMessage estaba fuera de los l\\u00edmites\"},\n  {  \"FORMAT_FAILED\", \"Se ha generado una excepci\\u00f3n durante la llamada messageFormat\"},\n  {  \"version\", \">>>>>>> Xalan versi\\u00f3n\"},\n  {  \"version2\",  \"<<<<<<<\"},\n  {  \"yes\", \"s\\u00ed\"},\n  { \"line\", \"L\\u00ednea n\\u00fam.\"},\n  { \"column\",\"Columna n\\u00fam.\"},\n  { \"xsldone\", \"XSLProcessor: terminado\"},\n\n\n  { \"xslProc_option\", \"Opciones de la clase Process de la l\\u00ednea de mandatos Xalan-J:\"},\n  { \"xslProc_option\", \"Opciones de la clase Process de la l\\u00ednea de mandatos Xalan-J\\u003a\"},\n  { \"xslProc_invalid_xsltc_option\", \"La opci\\u00f3n {0} no est\\u00e1 soportada en modalidad XSLTC.\"},\n  { \"xslProc_invalid_xalan_option\", \"La opci\\u00f3n {0} s\\u00f3lo puede utilizarse con -XSLTC.\"},\n  { \"xslProc_no_input\", \"Error: No se ha especificado ninguna hoja de estilos ni xml de entrada. Ejecute este mandato sin opciones para ver las instrucciones de uso.\"},\n  { \"xslProc_common_options\", \"-Opciones comunes-\"},\n  { \"xslProc_xalan_options\", \"-Opciones para Xalan-\"},\n  { \"xslProc_xsltc_options\", \"-Opciones para XSLTC-\"},\n  { \"xslProc_return_to_continue\", \"(pulse <Intro> para continuar)\"},\n\n  { \"optionXSLTC\", \"[-XSLTC (Utilizar XSLTC para transformaci\\u00f3n)]\"},\n  { \"optionIN\", \"[-IN URLXMLentrada]\"},\n  { \"optionXSL\", \"[-XSL URLTransformaci\\u00f3nXSL]\"},\n  { \"optionOUT\",  \"[-OUT nombreArchivoSalida]\"},\n  { \"optionLXCIN\", \"[-LXCIN entradaNombreArchivoHojaEstilosCompilada]\"},\n  { \"optionLXCOUT\", \"[-LXCOUT salidaNombreArchivoHojaEstilosCompilada]\"},\n  { \"optionPARSER\", \"[-PARSER nombre de clase completamente cualificado del enlace del analizador]\"},\n  {  \"optionE\", \"[-E (No expandir referencias de entidades)]\"},\n  {  \"optionV\",  \"[-E (No expandir referencias de entidades)]\"},\n  {  \"optionQC\", \"[-QC (Avisos silenciosos de conflictos de patrones)]\"},\n  {  \"optionQ\", \"[-Q  (Modalidad silenciosa)]\"},\n  {  \"optionLF\", \"[-LF (Utilizar s\\u00f3lo avances de l\\u00ednea en la salida {por omisi\\u00f3n es CR/LF})]\"},\n  {  \"optionCR\", \"[-CR (Utilizar s\\u00f3lo retornos de carro en la salida {por omisi\\u00f3n es CR/LF})]\"},\n  { \"optionESCAPE\", \"[-ESCAPE (Caracteres con escape {por omisi\\u00f3n es <>&\\\"\\'\\\\r\\\\n}]\"},\n  { \"optionINDENT\", \"[-INDENT (Controlar el n\\u00famero de espacios de sangrado {por omisi\\u00f3n es 0})]\"},\n  { \"optionTT\", \"[-TT (Rastrear las plantillas a medida que se llaman.)]\"},\n  { \"optionTG\", \"[-TG (Rastrear cada suceso de generaci\\u00f3n.)]\"},\n  { \"optionTS\", \"[-TS (Rastrear cada suceso de selecci\\u00f3n.)]\"},\n  {  \"optionTTC\", \"[-TTC (Rastrear los hijos de plantillas a medida que se procesan.)]\"},\n  { \"optionTCLASS\", \"[-TCLASS (Clase TraceListener para extensiones de rastreo.)]\"},\n  { \"optionVALIDATE\", \"[-VALIDATE (Establecer si se realiza la validaci\\u00f3n. Por omisi\\u00f3n la validaci\\u00f3n est\\u00e1 desactivada.)]\"},\n  { \"optionEDUMP\", \"[-EDUMP {nombre de archivo opcional} (Realizar vuelco de pila si se produce un error.)]\"},\n  {  \"optionXML\", \"[-XML (Utilizar el formateador XML y a\\u00f1adir la cabecera XML.)]\"},\n  {  \"optionTEXT\", \"[-TEXT (Utilizar el formateador de texto sencillo.)]\"},\n  {  \"optionHTML\", \"[-HTML (Utilizar el formateador HTML.)]\"},\n  {  \"optionPARAM\", \"[-PARAM expresi\\u00f3n de nombre (Establecer un par\\u00e1metro de hoja de estilos)]\"},\n  {  \"noParsermsg1\", \"El proceso XSL no ha sido satisfactorio.\"},\n  {  \"noParsermsg2\", \"** No se ha podido encontrar el analizador **\"},\n  { \"noParsermsg3\",  \"Compruebe la classpath.\"},\n  { \"noParsermsg4\", \"Si no dispone del analizador XML para Java de IBM, puede bajarlo de \"},\n  { \"optionURIRESOLVER\", \"[-URIRESOLVER nombre de clase completo (URIResolver a utilizar para resolver URI)]\"},\n  { \"optionENTITYRESOLVER\",  \"[-ENTITYRESOLVER nombre de clase completo (EntityResolver a utilizar para resolver entidades)]\"},\n  { \"optionCONTENTHANDLER\",  \"[-CONTENTHANDLER nombre de clase completo (ContentHandler a utilizar para serializar la salida)]\"},\n  {  \"optionLINENUMBERS\",  \"[-L utilizar n\\u00fameros de l\\u00ednea para el documento fuente]\"},\n\n\n\n  {  \"optionMEDIA\",  \"[-MEDIA tipoSoporte (Utilizar el atributo de soporte para encontrar la hoja de estilos asociada con un documento.)]\"},\n  { \"optionDIAG\", \"[-DIAG (Imprimir el total de milisegundos que lleva la transformaci\\u00f3n.)]\"},\n  { \"optionRL\",  \"[-RL l\\u00edmiteRecursi\\u00f3n (L\\u00edmite num\\u00e9rico de aserci\\u00f3n sobre profundidad de recursi\\u00f3n de hoja de estilos.)]\"},\n  {   \"optionXO\",  \"[-XO [nombreTranslet] (Asignar el nombre al translet generado)]\"},\n  {  \"optionXD\", \"[-XD directorioDestino (Especificar un directorio de destino para translet)]\"},\n  {  \"optionXJ\",  \"[-XJ archivoJar (Empaqueta las clases translet en un archivo jar de nombre <archivoJar>)]\"},\n  {   \"optionXP\",  \"[-XP paquete (Especifica un prefijo para el nombre del paquete de todas las clases translet generadas)]\"},\n\n  { \"optionXN\",  \"[-XN (habilita la inclusi\\u00f3n en l\\u00ednea de plantillas)]\" },\n  { \"optionXX\",  \"[-XX (activa la salida de mensajes de depuraci\\u00f3n adicionales)]\"},\n  { \"optionXT\" , \"[-XT (utilizar translet para transformar si es posible)]\"},\n  { \"diagTiming\",\"--------- La transformaci\\u00f3n de {0} mediante {1} ha durado {2} ms\" },\n  { \"recursionTooDeep\",\"Anidado de plantilla demasiado profundo. anidado = {0}, plantilla {1} {2}\" },\n  { \"nameIs\", \"el nombre es \" },\n  { \"matchPatternIs\", \"el patr\\u00f3n de coincidencia es \" }\n\n  };\n  }\n\n\n  /** String for use when a bad error code was encountered.    */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** String for use when formatting of the error string failed.   */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** General error string.   */\n  public static final String ERROR_STRING = \"#error\";\n\n  /** String to prepend to error messages.  */\n  public static final String ERROR_HEADER = \"Error: \";\n\n  /** String to prepend to warning messages.    */\n  public static final String WARNING_HEADER = \"Aviso: \";\n\n  /** String to specify the XSLT module.  */\n  public static final String XSL_HEADER = \"XSLT \";\n\n  /** String to specify the XML parser module.  */\n  public static final String XML_HEADER = \"XML \";\n\n  /** I don't think this is used any more.\n   * @deprecated  */\n  public static final String QUERY_HEADER = \"PATTERN \";\n\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XSLTErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XSLTErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XSLTErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"es\", \"ES\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return new Object[][] {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n  {\"ER0000\" , \"{0}\" },\n\n\n  /** ER_NO_CURLYBRACE          */\n\n\n    { ER_NO_CURLYBRACE,\n      \"Error: No puede haber '{' dentro de la expresi\\u00f3n\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE          */\n\n    { ER_ILLEGAL_ATTRIBUTE ,\n     \"{0} tiene un atributo no permitido: {1}\"},\n\n  /** ER_NULL_SOURCENODE_APPLYIMPORTS          */\n\n  {ER_NULL_SOURCENODE_APPLYIMPORTS ,\n      \"\\u00a1sourceNode es nulo en xsl:apply-imports!\"},\n\n  /** ER_CANNOT_ADD          */\n\n  {ER_CANNOT_ADD,\n      \"No se puede a\\u00f1adir {0} a {1}\"},\n\n\n  /** ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES          */\n\n\n    { ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES,\n      \"\\u00a1sourceNode es nulo en handleApplyTemplatesInstruction!\"},\n\n  /** ER_NO_NAME_ATTRIB          */\n\n\n    { ER_NO_NAME_ATTRIB,\n     \"{0} debe tener un atributo de nombre.\"},\n\n  /** ER_TEMPLATE_NOT_FOUND          */\n\n\n    {ER_TEMPLATE_NOT_FOUND,\n     \"No se ha podido encontrar la plantilla: {0}\"},\n\n  /** ER_CANT_RESOLVE_NAME_AVT          */\n\n    {ER_CANT_RESOLVE_NAME_AVT,\n      \"No se ha podido resolver AVT de nombre en xsl:call-template.\"},\n\n  /** ER_REQUIRES_ATTRIB          */\n\n\n    {ER_REQUIRES_ATTRIB,\n     \"{0} necesita un atributo: {1}\"},\n\n  /** ER_MUST_HAVE_TEST_ATTRIB          */\n\n\n    { ER_MUST_HAVE_TEST_ATTRIB,\n      \"{0} debe tener un atributo ''test''.\"},\n\n  /** ER_BAD_VAL_ON_LEVEL_ATTRIB          */\n\n\n    {ER_BAD_VAL_ON_LEVEL_ATTRIB,\n      \"Valor incorrecto en atributo de nivel: {0}\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n\n\n    {ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"Nombre de processing-instruction no puede ser 'xml'\"},\n\n  /** ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n\n\n    { ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"Nombre de processing-instruction debe ser un NCName v\\u00e1lido: {0}\"},\n\n  /** ER_NEED_MATCH_ATTRIB          */\n\n\n    { ER_NEED_MATCH_ATTRIB,\n      \"{0} debe tener un atributo de coincidencia si tiene una modalidad.\"},\n\n  /** ER_NEED_NAME_OR_MATCH_ATTRIB          */\n\n\n    { ER_NEED_NAME_OR_MATCH_ATTRIB,\n      \"{0} necesita un atributo de nombre o de coincidencia.\"},\n\n  /** ER_CANT_RESOLVE_NSPREFIX          */\n\n\n    {ER_CANT_RESOLVE_NSPREFIX,\n      \"No se puede resolver el prefijo del espacio de nombres: {0}\"},\n\n  /** ER_ILLEGAL_VALUE          */\n\n\n    { ER_ILLEGAL_VALUE,\n     \"xml:space tiene un valor no permitido: {0}\"},\n\n  /** ER_NO_OWNERDOC          */\n\n\n    { ER_NO_OWNERDOC,\n      \"\\u00a1El nodo hijo no tiene un documento propietario!\"},\n\n  /** ER_ELEMTEMPLATEELEM_ERR          */\n\n\n    { ER_ELEMTEMPLATEELEM_ERR,\n     \"Error de ElemTemplateElement: {0}\"},\n\n  /** ER_NULL_CHILD          */\n\n\n    { ER_NULL_CHILD,\n     \"\\u00a1Intentando a\\u00f1adir un hijo nulo!\"},\n\n  /** ER_NEED_SELECT_ATTRIB          */\n\n\n    { ER_NEED_SELECT_ATTRIB,\n     \"{0} necesita un atributo de selecci\\u00f3n.\"},\n\n  /** ER_NEED_TEST_ATTRIB          */\n\n\n    { ER_NEED_TEST_ATTRIB ,\n      \"xsl:when debe tener un atributo 'test'.\"},\n\n  /** ER_NEED_NAME_ATTRIB          */\n\n\n    { ER_NEED_NAME_ATTRIB,\n      \"xsl:with-param debe tener un atributo 'name'.\"},\n\n  /** ER_NO_CONTEXT_OWNERDOC          */\n\n\n    { ER_NO_CONTEXT_OWNERDOC,\n      \"\\u00a1El contexto no tiene un documento propietario!\"},\n\n  /** ER_COULD_NOT_CREATE_XML_PROC_LIAISON          */\n\n\n    {ER_COULD_NOT_CREATE_XML_PROC_LIAISON,\n      \"No se ha podido crear Liaison TransformerFactory XML: {0}\"},\n\n  /** ER_PROCESS_NOT_SUCCESSFUL          */\n\n\n    {ER_PROCESS_NOT_SUCCESSFUL,\n      \"El proceso Xalan no ha sido satisfactorio.\"},\n\n  /** ER_NOT_SUCCESSFUL          */\n\n\n    { ER_NOT_SUCCESSFUL,\n     \"Xalan no ha sido satisfactorio.\"},\n\n  /** ER_ENCODING_NOT_SUPPORTED          */\n\n\n    { ER_ENCODING_NOT_SUPPORTED,\n     \"Codificaci\\u00f3n no soportada: {0}\"},\n\n  /** ER_COULD_NOT_CREATE_TRACELISTENER          */\n\n\n    {ER_COULD_NOT_CREATE_TRACELISTENER,\n      \"No se ha podido crear TraceListener: {0}\"},\n\n  /** ER_KEY_REQUIRES_NAME_ATTRIB          */\n\n\n    {ER_KEY_REQUIRES_NAME_ATTRIB,\n      \"\\u00a1xsl:key necesita un atributo 'name'!\"},\n\n  /** ER_KEY_REQUIRES_MATCH_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_MATCH_ATTRIB,\n      \"\\u00a1xsl:key necesita un atributo 'match'!\"},\n\n  /** ER_KEY_REQUIRES_USE_ATTRIB          */\n\n\n    { ER_KEY_REQUIRES_USE_ATTRIB,\n      \"\\u00a1xsl:key necesita un atributo 'use'!\"},\n\n  /** ER_REQUIRES_ELEMENTS_ATTRIB          */\n\n\n    { ER_REQUIRES_ELEMENTS_ATTRIB,\n      \"\\u00a1(StylesheetHandler) \\u00a1{0} necesita un atributo ''elements''!\"},\n\n  /** ER_MISSING_PREFIX_ATTRIB          */\n\n\n    { ER_MISSING_PREFIX_ATTRIB,\n      \"(StylesheetHandler) Falta el atributo ''prefix'' de {0}\"},\n\n  /** ER_BAD_STYLESHEET_URL          */\n\n\n    { ER_BAD_STYLESHEET_URL,\n     \"El URL de la hoja de estilos es incorrecto: {0}\"},\n\n  /** ER_FILE_NOT_FOUND          */\n\n\n    { ER_FILE_NOT_FOUND,\n     \"No se ha encontrado el archivo de hoja de estilos: {0}\"},\n\n  /** ER_IOEXCEPTION          */\n\n\n    { ER_IOEXCEPTION,\n      \"Se ha producido una excepci\\u00f3n de ES con el archivo de hoja de estilos: {0}\"},\n\n  /** ER_NO_HREF_ATTRIB          */\n\n\n    { ER_NO_HREF_ATTRIB,\n      \"(StylesheetHandler) No se ha podido encontrar el atributo href para {0}\"},\n\n  /** ER_STYLESHEET_INCLUDES_ITSELF          */\n\n\n    { ER_STYLESHEET_INCLUDES_ITSELF,\n      \"(StylesheetHandler) \\u00a1Inclusi\\u00f3n propia de {0} directa o indirectamente!\"},\n\n  /** ER_PROCESSINCLUDE_ERROR          */\n\n\n    { ER_PROCESSINCLUDE_ERROR,\n      \"Error de StylesheetHandler.processInclude, {0}\"},\n\n  /** ER_MISSING_LANG_ATTRIB          */\n\n\n    { ER_MISSING_LANG_ATTRIB,\n      \"(StylesheetHandler) Falta el atributo ''lang'' de {0}\"},\n\n  /** ER_MISSING_CONTAINER_ELEMENT_COMPONENT          */\n\n    { ER_MISSING_CONTAINER_ELEMENT_COMPONENT,\n      \"(StylesheetHandler) Elemento {0} incorrecto. Falta el elemento de contenedor ''component''\"},\n\n  /** ER_CAN_ONLY_OUTPUT_TO_ELEMENT          */\n\n    { ER_CAN_ONLY_OUTPUT_TO_ELEMENT,\n      \"S\\u00f3lo se puede dar salida hacia Element, DocumentFragment, Document o PrintWriter.\"},\n\n  /** ER_PROCESS_ERROR          */\n\n    { ER_PROCESS_ERROR,\n     \"Error de StylesheetRoot.process\"},\n\n  /** ER_UNIMPLNODE_ERROR          */\n\n    { ER_UNIMPLNODE_ERROR,\n     \"Error de UnImplNode: {0}\"},\n\n  /** ER_NO_SELECT_EXPRESSION          */\n\n    { ER_NO_SELECT_EXPRESSION,\n      \"\\u00a1Error! No se ha encontrado la expresi\\u00f3n de selecci\\u00f3n (-select) de xpath.\"},\n\n  /** ER_CANNOT_SERIALIZE_XSLPROCESSOR          */\n\n    { ER_CANNOT_SERIALIZE_XSLPROCESSOR,\n      \"\\u00a1No se puede serializar un XSLProcessor!\"},\n\n  /** ER_NO_INPUT_STYLESHEET          */\n\n    { ER_NO_INPUT_STYLESHEET,\n      \"\\u00a1No se ha especificado la entrada de hoja de estilos!\"},\n\n  /** ER_FAILED_PROCESS_STYLESHEET          */\n\n    { ER_FAILED_PROCESS_STYLESHEET,\n      \"\\u00a1No se ha podido procesar la hoja de estilos!\"},\n\n  /** ER_COULDNT_PARSE_DOC          */\n\n    { ER_COULDNT_PARSE_DOC,\n     \"\\u00a1No se ha podido analizar el documento {0}!\"},\n\n  /** ER_COULDNT_FIND_FRAGMENT          */\n\n    { ER_COULDNT_FIND_FRAGMENT,\n     \"No se ha podido encontrar el fragmento: {0}\"},\n\n  /** ER_NODE_NOT_ELEMENT          */\n\n    { ER_NODE_NOT_ELEMENT,\n      \"El nodo se\\u00f1alado por un identificador de fragmento no es un elemento: {0}\"},\n\n  /** ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB,\n      \"for-each debe tener un atributo de coincidencia o de nombre\"},\n\n  /** ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB          */\n\n    { ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB,\n      \"templates debe tener un atributo de coincidencia o de nombre\"},\n\n  /** ER_NO_CLONE_OF_DOCUMENT_FRAG          */\n\n    { ER_NO_CLONE_OF_DOCUMENT_FRAG,\n      \"\\u00a1No es r\\u00e9plica de un fragmento de documento!\"},\n\n  /** ER_CANT_CREATE_ITEM          */\n\n    { ER_CANT_CREATE_ITEM,\n      \"No se puede crear el elemento en el \\u00e1rbol de resultados: {0}\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VALUE          */\n\n    { ER_XMLSPACE_ILLEGAL_VALUE,\n      \"xml:space en el XML fuente tiene un valor no permitido: {0}\"},\n\n  /** ER_NO_XSLKEY_DECLARATION          */\n\n    { ER_NO_XSLKEY_DECLARATION,\n      \"\\u00a1No hay declaraci\\u00f3n xsl:key para {0}!\"},\n\n  /** ER_CANT_CREATE_URL          */\n\n    { ER_CANT_CREATE_URL,\n     \"\\u00a1Error! No se puede crear url para: {0}\"},\n\n  /** ER_XSLFUNCTIONS_UNSUPPORTED          */\n\n    { ER_XSLFUNCTIONS_UNSUPPORTED,\n     \"xsl:functions no est\\u00e1 soportado\"},\n\n  /** ER_PROCESSOR_ERROR          */\n\n    { ER_PROCESSOR_ERROR,\n     \"Error de XSLT TransformerFactory\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_STYLESHEET          */\n\n    { ER_NOT_ALLOWED_INSIDE_STYLESHEET,\n      \"(StylesheetHandler) \\u00a1{0} no permitido dentro de una hoja de estilos!\"},\n\n  /** ER_RESULTNS_NOT_SUPPORTED          */\n\n    { ER_RESULTNS_NOT_SUPPORTED,\n      \"\\u00a1Ya no se soporta result-ns! Utilice xsl:output en su lugar.\"},\n\n  /** ER_DEFAULTSPACE_NOT_SUPPORTED          */\n\n    { ER_DEFAULTSPACE_NOT_SUPPORTED,\n      \"\\u00a1Ya no se soporta default-space! Utilice xsl:strip-space o xsl:preserve-space en su lugar.\"},\n\n  /** ER_INDENTRESULT_NOT_SUPPORTED          */\n\n    { ER_INDENTRESULT_NOT_SUPPORTED,\n      \"\\u00a1Ya no se soporta indent-result! Utilice xsl:output en su lugar.\"},\n\n  /** ER_ILLEGAL_ATTRIB          */\n\n    { ER_ILLEGAL_ATTRIB,\n      \"(StylesheetHandler) {0} tiene un atributo no permitido: {1}\"},\n\n  /** ER_UNKNOWN_XSL_ELEM          */\n\n    { ER_UNKNOWN_XSL_ELEM,\n     \"Elemento XSL desconocido: {0}\"},\n\n  /** ER_BAD_XSLSORT_USE          */\n\n    { ER_BAD_XSLSORT_USE,\n      \"(StylesheetHandler) xsl:sort s\\u00f3lo puede utilizarse con xsl:apply-templates o xsl:for-each.\"},\n\n  /** ER_MISPLACED_XSLWHEN          */\n\n    { ER_MISPLACED_XSLWHEN,\n      \"(StylesheetHandler) \\u00a1xsl:when equivocado!\"},\n\n  /** ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE,\n      \"(StylesheetHandler) \\u00a1xsl:when no emparentado por xsl:choose!\"},\n\n  /** ER_MISPLACED_XSLOTHERWISE          */\n\n    { ER_MISPLACED_XSLOTHERWISE,\n      \"(StylesheetHandler) \\u00a1xsl:otherwise equivocado!\"},\n\n  /** ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE          */\n\n    { ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE,\n      \"(StylesheetHandler) \\u00a1xsl:otherwise no emparentado por xsl:choose!\"},\n\n  /** ER_NOT_ALLOWED_INSIDE_TEMPLATE          */\n\n    { ER_NOT_ALLOWED_INSIDE_TEMPLATE,\n      \"(StylesheetHandler) \\u00a1{0} no permitido dentro de una plantilla!\"},\n\n  /** ER_UNKNOWN_EXT_NS_PREFIX          */\n\n    { ER_UNKNOWN_EXT_NS_PREFIX,\n      \"(StylesheetHandler) Prefijo {1} de espacio de nombres de extensi\\u00f3n {0} desconocido\"},\n\n  /** ER_IMPORTS_AS_FIRST_ELEM          */\n\n    { ER_IMPORTS_AS_FIRST_ELEM,\n      \"(StylesheetHandler) \\u00a1Las importaciones s\\u00f3lo pueden aparecer como primeros elementos de la hoja de estilos!\"},\n\n  /** ER_IMPORTING_ITSELF          */\n\n    { ER_IMPORTING_ITSELF,\n      \"(StylesheetHandler) \\u00a1Importaci\\u00f3n propia de {0} directa o indirectamente!\"},\n\n  /** ER_XMLSPACE_ILLEGAL_VAL          */\n\n    { ER_XMLSPACE_ILLEGAL_VAL,\n      \"(StylesheetHandler) xml:space tiene un valor no permitido: {0}\"},\n\n  /** ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL          */\n\n    { ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL,\n      \"\\u00a1processStylesheet no satisfactorio!\"},\n\n  /** ER_SAX_EXCEPTION          */\n\n    { ER_SAX_EXCEPTION,\n     \"Excepci\\u00f3n SAX\"},\n\n  /** ER_FUNCTION_NOT_SUPPORTED          */\n\n\n  /** ER_XSLT_ERROR          */\n\n    { ER_XSLT_ERROR,\n     \"Error de XSLT\"},\n\n  /** ER_CURRENCY_SIGN_ILLEGAL          */\n\n    { ER_CURRENCY_SIGN_ILLEGAL,\n      \"El signo monetario no est\\u00e1 permitido en la serie del patr\\u00f3n de formato\"},\n\n  /** ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM          */\n\n    { ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM,\n      \"\\u00a1La funci\\u00f3n de documento no est\\u00e1 soportada en DOM de hoja de estilos!\"},\n\n  /** ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER          */\n\n    { ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER,\n      \"\\u00a1No se puede resolver el prefijo de un resolucionador sin prefijo!\"},\n\n  /** ER_REDIRECT_COULDNT_GET_FILENAME          */\n\n    { ER_REDIRECT_COULDNT_GET_FILENAME,\n      \"Extensi\\u00f3n Redirect: No se ha podido obtener el nombre de archivo - el atributo de archivo o de selecci\\u00f3n debe devolver una serie v\\u00e1lida.\"},\n\n  /** ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT          */\n\n    { ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT,\n      \"\\u00a1No se puede crear FormatterListener en extensi\\u00f3n Redirect!\"},\n\n  /** ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX          */\n\n    { ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX,\n      \"El prefijo en exclude-result-prefixes no es v\\u00e1lido: {0}\"},\n\n  /** ER_MISSING_NS_URI          */\n\n    { ER_MISSING_NS_URI,\n      \"Falta el URI del espacio de nombres para el prefijo especificado\"},\n\n  /** ER_MISSING_ARG_FOR_OPTION          */\n\n    { ER_MISSING_ARG_FOR_OPTION,\n      \"Falta un argumento para la opci\\u00f3n: {0}\"},\n\n  /** ER_INVALID_OPTION          */\n\n    { ER_INVALID_OPTION,\n     \"Opci\\u00f3n no v\\u00e1lida: {0}\"},\n\n  /** ER_MALFORMED_FORMAT_STRING          */\n\n    { ER_MALFORMED_FORMAT_STRING,\n     \"Serie de formato mal formada: {0}\"},\n\n  /** ER_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n\n    { ER_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"\\u00a1xsl:stylesheet necesita un atributo 'version'!\"},\n\n  /** ER_ILLEGAL_ATTRIBUTE_VALUE          */\n\n    { ER_ILLEGAL_ATTRIBUTE_VALUE,\n      \"Atributo: {0} tiene un valor no permitido: {1}\"},\n\n  /** ER_CHOOSE_REQUIRES_WHEN          */\n\n    { ER_CHOOSE_REQUIRES_WHEN,\n     \"xsl:choose necesita un xsl:when\"},\n\n  /** ER_NO_APPLY_IMPORT_IN_FOR_EACH          */\n\n    { ER_NO_APPLY_IMPORT_IN_FOR_EACH,\n      \"xsl:apply-imports no permitido en xsl:for-each\"},\n\n  /** ER_CANT_USE_DTM_FOR_OUTPUT          */\n\n    { ER_CANT_USE_DTM_FOR_OUTPUT,\n      \"No se puede utilizar DTMLiaison para un nodo DOM de salida... \\u00a1Pase org.apache.xpath.DOM2Helper en su lugar!\"},\n\n  /** ER_CANT_USE_DTM_FOR_INPUT          */\n\n    { ER_CANT_USE_DTM_FOR_INPUT,\n      \"No se puede utilizar DTMLiaison para un nodo DOM de entrada... \\u00a1Pase org.apache.xpath.DOM2Helper en su lugar!\"},\n\n  /** ER_CALL_TO_EXT_FAILED          */\n\n    { ER_CALL_TO_EXT_FAILED,\n      \"Anomal\\u00eda al llamar al elemento de extensi\\u00f3n: {0}\"},\n\n  /** ER_PREFIX_MUST_RESOLVE          */\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"El prefijo debe resolverse como un espacio de nombres: {0}\"},\n\n  /** ER_INVALID_UTF16_SURROGATE          */\n\n    { ER_INVALID_UTF16_SURROGATE,\n      \"\\u00bfSe ha detectado un sustituto UTF-16 no v\\u00e1lido: {0}?\"},\n\n  /** ER_XSLATTRSET_USED_ITSELF          */\n\n    { ER_XSLATTRSET_USED_ITSELF,\n      \"xsl:attribute-set {0} se ha utilizado a s\\u00ed mismo lo que puede provocar un bucle infinito.\"},\n\n  /** ER_CANNOT_MIX_XERCESDOM          */\n\n    { ER_CANNOT_MIX_XERCESDOM,\n      \"\\u00a1No se puede mezclar la entrada Xerces-DOM con la salida Xerces-DOM!\"},\n\n  /** ER_TOO_MANY_LISTENERS          */\n\n    { ER_TOO_MANY_LISTENERS,\n      \"addTraceListenersToStylesheet - TooManyListenersException\"},\n\n  /** ER_IN_ELEMTEMPLATEELEM_READOBJECT          */\n\n    { ER_IN_ELEMTEMPLATEELEM_READOBJECT,\n      \"En ElemTemplateElement.readObject: {0}\"},\n\n  /** ER_DUPLICATE_NAMED_TEMPLATE          */\n\n    { ER_DUPLICATE_NAMED_TEMPLATE,\n      \"Se ha encontrado m\\u00e1s de una plantilla con el nombre: {0}\"},\n\n  /** ER_INVALID_KEY_CALL          */\n\n    { ER_INVALID_KEY_CALL,\n      \"Llamada de funci\\u00f3n no v\\u00e1lida: no est\\u00e1n permitidas las llamadas key() recursivas\"},\n\n  /** Variable is referencing itself          */\n\n    { ER_REFERENCING_ITSELF,\n      \"\\u00a1La variable {0} se est\\u00e1 referenciando a s\\u00ed misma directa o indirectamente!\"},\n\n  /** Illegal DOMSource input          */\n\n    { ER_ILLEGAL_DOMSOURCE_INPUT,\n      \"\\u00a1El nodo de entrada no puede ser nulo para DOMSource de newTemplates!\"},\n\n        /** Class not found for option         */\n\n    { ER_CLASS_NOT_FOUND_FOR_OPTION,\n        \"No se ha encontrado el archivo de clase para la opci\\u00f3n {0}\"},\n\n        /** Required Element not found         */\n\n    { ER_REQUIRED_ELEM_NOT_FOUND,\n        \"No se ha encontrado un elemento necesario: {0}\"},\n\n  /** InputStream cannot be null         */\n\n    { ER_INPUT_CANNOT_BE_NULL,\n        \"InputStream no puede ser nulo\"},\n\n  /** URI cannot be null         */\n\n    { ER_URI_CANNOT_BE_NULL,\n        \"URI no puede ser nulo\"},\n\n  /** File cannot be null         */\n\n    { ER_FILE_CANNOT_BE_NULL,\n        \"Archivo no puede ser nulo\"},\n\n   /** InputSource cannot be null         */\n\n    { ER_SOURCE_CANNOT_BE_NULL,\n                \"InputSource no puede ser nulo\"},\n\n  /** Can't overwrite cause         */\n\n\n  /** Could not initialize BSF Manager        */\n\n    { ER_CANNOT_INIT_BSFMGR,\n                \"No se ha podido inicializar el Gestor BSF\"},\n\n  /** Could not compile extension       */\n\n    { ER_CANNOT_CMPL_EXTENSN,\n                \"No se ha podido compilar la extensi\\u00f3n\"},\n\n  /** Could not create extension       */\n\n    { ER_CANNOT_CREATE_EXTENSN,\n      \"No se ha podido crear la extensi\\u00f3n: {0} como consecuencia de: {1}\"},\n\n  /** Instance method call to method {0} requires an Object instance as first argument       */\n\n    { ER_INSTANCE_MTHD_CALL_REQUIRES,\n      \"La llamada del m\\u00e9todo de instancia al m\\u00e9todo {0} necesita una instancia Object como primer argumento\"},\n\n  /** Invalid element name specified       */\n\n    { ER_INVALID_ELEMENT_NAME,\n      \"Se ha especificado un nombre de elemento no v\\u00e1lido {0}\"},\n\n   /** Element name method must be static      */\n\n    { ER_ELEMENT_NAME_METHOD_STATIC,\n      \"El m\\u00e9todo del nombre de elemento debe ser est\\u00e1tico {0}\"},\n\n   /** Extension function {0} : {1} is unknown      */\n\n    { ER_EXTENSION_FUNC_UNKNOWN,\n             \"Funci\\u00f3n de extensi\\u00f3n {0} : {1} desconocida\"},\n\n   /** More than one best match for constructor for       */\n\n    { ER_MORE_MATCH_CONSTRUCTOR,\n             \"Hay m\\u00e1s de una coincidencia m\\u00e1xima para el constructor de {0}\"},\n\n   /** More than one best match for method      */\n\n    { ER_MORE_MATCH_METHOD,\n             \"Hay m\\u00e1s de una coincidencia m\\u00e1xima para el m\\u00e9todo {0}\"},\n\n   /** More than one best match for element method      */\n\n    { ER_MORE_MATCH_ELEMENT,\n             \"Hay m\\u00e1s de una coincidencia m\\u00e1xima para el m\\u00e9todo de elemento {0}\"},\n\n   /** Invalid context passed to evaluate       */\n\n    { ER_INVALID_CONTEXT_PASSED,\n             \"Se ha pasado un contexto no v\\u00e1lido para evaluar {0}\"},\n\n   /** Pool already exists       */\n\n    { ER_POOL_EXISTS,\n             \"La agrupaci\\u00f3n ya existe\"},\n\n   /** No driver Name specified      */\n\n    { ER_NO_DRIVER_NAME,\n             \"No se ha especificado un nombre de controlador\"},\n\n   /** No URL specified     */\n\n    { ER_NO_URL,\n             \"No se ha especificado un URL\"},\n\n   /** Pool size is less than one    */\n\n    { ER_POOL_SIZE_LESSTHAN_ONE,\n             \"\\u00a1El tama\\u00f1o de la agrupaci\\u00f3n es menor que uno!\"},\n\n   /** Invalid driver name specified    */\n\n    { ER_INVALID_DRIVER,\n             \"\\u00a1Se ha especificado un nombre de controlador no v\\u00e1lido!\"},\n\n   /** Did not find the stylesheet root    */\n\n    { ER_NO_STYLESHEETROOT,\n             \"\\u00a1No se ha encontrado la ra\\u00edz de la hoja de estilos!\"},\n\n   /** Illegal value for xml:space     */\n\n    { ER_ILLEGAL_XMLSPACE_VALUE,\n         \"Valor no permitido para xml:space\"},\n\n   /** processFromNode failed     */\n\n    { ER_PROCESSFROMNODE_FAILED,\n         \"Anomal\\u00eda de processFromNode\"},\n\n   /** The resource [] could not load:     */\n\n    { ER_RESOURCE_COULD_NOT_LOAD,\n        \"No se ha podido cargar el recurso [ {0} ]: {1} \\n {2} \\t {3}\"},\n\n\n   /** Buffer size <=0     */\n\n    { ER_BUFFER_SIZE_LESSTHAN_ZERO,\n        \"Tama\\u00f1o de almacenamiento intermedio <=0\"},\n\n   /** Unknown error when calling extension    */\n\n    { ER_UNKNOWN_ERROR_CALLING_EXTENSION,\n        \"Error desconocido al llamar a la extensi\\u00f3n\"},\n\n   /** Prefix {0} does not have a corresponding namespace declaration    */\n\n    { ER_NO_NAMESPACE_DECL,\n        \"El prefijo {0} no tiene una declaraci\\u00f3n de espacio de nombres correspondiente\"},\n\n   /** Element content not allowed for lang=javaclass   */\n\n    { ER_ELEM_CONTENT_NOT_ALLOWED,\n        \"No se permite el contenido del elemento para lang=javaclass {0}\"},\n\n   /** Stylesheet directed termination   */\n\n    { ER_STYLESHEET_DIRECTED_TERMINATION,\n        \"Terminaci\\u00f3n de hoja de estilos dirigida\"},\n\n   /** 1 or 2   */\n\n    { ER_ONE_OR_TWO,\n        \"1 \\u00f3 2\"},\n\n   /** 2 or 3   */\n\n    { ER_TWO_OR_THREE,\n        \"2 \\u00f3 3\"},\n\n   /** Could not load {0} (check CLASSPATH), now using just the defaults   */\n\n    { ER_COULD_NOT_LOAD_RESOURCE,\n        \"No se ha podido cargar {0} (compruebe la CLASSPATH), ahora s\\u00f3lo se est\\u00e1n utilizando los valores por omisi\\u00f3n\"},\n\n   /** Cannot initialize default templates   */\n\n    { ER_CANNOT_INIT_DEFAULT_TEMPLATES,\n        \"No se han podido inicializar las plantillas por omisi\\u00f3n\"},\n\n   /** Result should not be null   */\n\n    { ER_RESULT_NULL,\n        \"El resultado no deber\\u00eda ser nulo\"},\n\n   /** Result could not be set   */\n\n    { ER_RESULT_COULD_NOT_BE_SET,\n        \"No se ha podido establecer el resultado\"},\n\n   /** No output specified   */\n\n    { ER_NO_OUTPUT_SPECIFIED,\n        \"No se ha especificado salida\"},\n\n   /** Can't transform to a Result of type   */\n\n    { ER_CANNOT_TRANSFORM_TO_RESULT_TYPE,\n        \"No se puede transformar un resultado de tipo {0}\"},\n\n   /** Can't transform to a Source of type   */\n\n    { ER_CANNOT_TRANSFORM_SOURCE_TYPE,\n        \"No se puede transformar un fuente de tipo {0}\"},\n\n   /** Null content handler  */\n\n    { ER_NULL_CONTENT_HANDLER,\n        \"Manejador de contenido nulo\"},\n\n   /** Null error handler  */\n    { ER_NULL_ERROR_HANDLER,\n        \"Manejador de error nulo\"},\n\n   /** parse can not be called if the ContentHandler has not been set */\n\n    { ER_CANNOT_CALL_PARSE,\n        \"No se puede llamar a parse si no se ha establecido ContentHandler\"},\n\n   /**  No parent for filter */\n\n    { ER_NO_PARENT_FOR_FILTER,\n        \"No hay padre para el filtro\"},\n\n\n   /**  No stylesheet found in: {0}, media */\n\n    { ER_NO_STYLESHEET_IN_MEDIA,\n         \"No se han encontrado hojas de estilos en: {0}, soporte= {1}\"},\n\n   /**  No xml-stylesheet PI found in */\n\n    { ER_NO_STYLESHEET_PI,\n         \"No se ha encontrado xml-stylesheet PI en: {0}\"},\n\n   /**  No default implementation found */\n\n\n   /**  ChunkedIntArray({0}) not currently supported */\n\n\n   /**  Offset bigger than slot */\n\n\n   /**  Coroutine not available, id= */\n\n\n   /**  CoroutineManager recieved co_exit() request */\n\n\n   /**  co_joinCoroutineSet() failed */\n\n\n   /**  Coroutine parameter error () */\n\n\n   /**  UNEXPECTED: Parser doTerminate answers  */\n\n\n   /**  parse may not be called while parsing */\n\n\n   /**  Error: typed iterator for axis  {0} not implemented  */\n\n\n   /**  Error: iterator for axis {0} not implemented  */\n\n\n   /**  Iterator clone not supported  */\n\n\n   /**  Unknown axis traversal type  */\n\n\n   /**  Axis traverser not supported  */\n\n\n   /**  No more DTM IDs are available  */\n\n\n   /**  Not supported  */\n\n    { ER_NOT_SUPPORTED,\n       \"No soportado: {0}\"},\n\n   /**  node must be non-null for getDTMHandleFromNode  */\n\n\n   /**  Could not resolve the node to a handle  */\n\n\n   /**  startParse may not be called while parsing */\n\n\n   /**  startParse needs a non-null SAXParser  */\n\n\n   /**  could not initialize parser with */\n\n   /**  Value for property {0} should be a Boolean instance  */\n\n    { ER_PROPERTY_VALUE_BOOLEAN,\n       \"El valor de la propiedad {0} deber\\u00eda ser una instancia Boolean\"},\n\n   /**  exception creating new instance for pool  */\n\n\n   /**  Path contains invalid escape sequence  */\n\n\n   /**  Scheme is required!  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  No scheme found in URI  */\n\n\n   /**  Path contains invalid character:   */\n\n\n   /**  Cannot set scheme from null string  */\n\n\n   /**  The scheme is not conformant. */\n\n\n   /**  Host is not a well formed address  */\n\n\n   /**  Port cannot be set when host is null  */\n\n\n   /**  Invalid port number  */\n\n\n   /**  Fragment can only be set for a generic URI  */\n\n\n   /**  Fragment cannot be set when path is null  */\n\n\n   /**  Fragment contains invalid character  */\n\n\n\n\n   /** Parser is already in use  */\n\n\n   /** Parser is already in use  */\n\n\n   /** Self-causation not permitted  */\n\n\n   /** src attribute not yet supported for  */\n\n    { ER_COULD_NOT_FIND_EXTERN_SCRIPT,\n         \"No se ha podido encontrar el script externo en {0}\"},\n\n  /** The resource [] could not be found     */\n\n    { ER_RESOURCE_COULD_NOT_FIND,\n        \"No se ha podido cargar el recurso [ {0} ].\\n{1}\"},\n\n   /** output property not recognized:  */\n\n    { ER_OUTPUT_PROPERTY_NOT_RECOGNIZED,\n        \"No se reconoce la propiedad de salida: {0}\"},\n\n   /** Userinfo may not be specified if host is not specified   */\n\n\n   /** Port may not be specified if host is not specified   */\n\n\n   /** Query string cannot be specified in path and query string   */\n\n\n   /** Fragment cannot be specified in both the path and fragment   */\n\n\n   /** Cannot initialize URI with empty parameters   */\n\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMLITRSLT,\n        \"Anomal\\u00eda al crear la instancia ElemLiteralResult\"},\n\n\n   /** Priority value does not contain a parsable number   */\n\n    { ER_VALUE_SHOULD_BE_NUMBER,\n        \"El valor para {0} deber\\u00eda contener un n\\u00famero analizable\"},\n\n   /**  Value for {0} should equal 'yes' or 'no'   */\n\n    { ER_VALUE_SHOULD_EQUAL,\n        \"El valor de {0} deber\\u00eda ser s\\u00ed o no\"},\n\n   /**  Failed calling {0} method   */\n\n    { ER_FAILED_CALLING_METHOD,\n        \"Anomal\\u00eda al llamar al m\\u00e9todo {0}\"},\n\n   /** Failed creating ElemLiteralResult instance   */\n\n    { ER_FAILED_CREATING_ELEMTMPL,\n        \"Anomal\\u00eda al crear la instancia ElemTemplateElement\"},\n\n   /**  Characters are not allowed at this point in the document   */\n\n    { ER_CHARS_NOT_ALLOWED,\n        \"No se permiten caracteres en este punto del documento\"},\n\n  /**  attribute is not allowed on the element   */\n    { ER_ATTR_NOT_ALLOWED,\n        \"\\u00a1El atributo \\\"{0}\\\" no est\\u00e1 permitido en el elemento {1}!\"},\n\n  /**  Method not yet supported    */\n\n\n  /**  Bad value    */\n\n    { ER_BAD_VALUE,\n     \"{0} valor incorrecto {1}\"},\n\n  /**  attribute value not found   */\n\n    { ER_ATTRIB_VALUE_NOT_FOUND,\n     \"No se ha encontrado el valor del atributo {0}\"},\n\n  /**  attribute value not recognized    */\n\n    { ER_ATTRIB_VALUE_NOT_RECOGNIZED,\n     \"No se ha reconocido el valor del atributo {0}\"},\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** IncrementalSAXSource_Filter not currently restartable   */\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NULL_URI_NAMESPACE,\n     \"Se ha intentado generar un prefijo de espacio de nombres con un URI nulo\"},\n\n\n  /** Attempting to generate a namespace prefix with a null URI   */\n\n    { ER_NUMBER_TOO_BIG,\n     \"Se ha intentado formatear un n\\u00famero mayor que el entero largo m\\u00e1s grande\"},\n\n\n\n    { ER_CANNOT_FIND_SAX1_DRIVER,\n     \"No se ha podido encontrar la clase de controlador SAX1 {0}\"},\n\n\n    { ER_SAX1_DRIVER_NOT_LOADED,\n     \"Se ha encontrado la clase de controlador SAX1 {0} pero no se ha podido cargar\"},\n\n\n    { ER_SAX1_DRIVER_NOT_INSTANTIATED,\n     \"Se ha cargado la clase de controlador SAX1 {0} pero no se ha podido crear una instancia\"},\n\n\n\n    { ER_SAX1_DRIVER_NOT_IMPLEMENT_PARSER,\n     \"La clase de controlador SAX1 {0} no implementa org.xml.sax.Parser\"},\n\n\n    { ER_PARSER_PROPERTY_NOT_SPECIFIED,\n     \"No se ha especificado la propiedad del sistema org.xml.sax.parser\"},\n\n\n    { ER_PARSER_ARG_CANNOT_BE_NULL,\n     \"El argumento del analizador no debe ser nulo\"},\n\n\n\n    { ER_FEATURE,\n     \"Caracter\\u00edstica: {0}\"},\n\n\n\n    { ER_PROPERTY,\n     \"Propiedad: {0}\"},\n\n\n    { ER_NULL_ENTITY_RESOLVER,\n     \"Resolucionador de entidad nulo\"},\n\n\n    { ER_NULL_DTD_HANDLER,\n     \"Manejador DTD nulo\"},\n\n    { ER_NO_DRIVER_NAME_SPECIFIED,\n     \"\\u00a1No se ha especificado un nombre de controlador!\"},\n\n\n    { ER_NO_URL_SPECIFIED,\n     \"\\u00a1No se ha especificado un URL!\"},\n\n\n    { ER_POOLSIZE_LESS_THAN_ONE,\n     \"\\u00a1El tama\\u00f1o de la agrupaci\\u00f3n es menor que 1!\"},\n\n\n    { ER_INVALID_DRIVER_NAME,\n     \"\\u00a1Se ha especificado un nombre de controlador no v\\u00e1lido!\"},\n\n\n\n    { ER_ERRORLISTENER,\n     \"ErrorListener\"},\n\n\n    { ER_ASSERT_NO_TEMPLATE_PARENT,\n     \"\\u00a1Error del programador! \\u00a1La expresi\\u00f3n no tiene un padre ElemTemplateElement!\"},\n\n\n    { ER_ASSERT_REDUNDENT_EXPR_ELIMINATOR,\n     \"Aserci\\u00f3n del programador en RundundentExprEliminator: {0}\"},\n\n\n\n    { ER_NOT_ALLOWED_IN_POSITION,\n     \"\\u00a1{0} no est\\u00e1 permitido en esta posici\\u00f3n de la hoja de estilos!\"},\n\n    { ER_NONWHITESPACE_NOT_ALLOWED_IN_POSITION,\n     \"\\u00a1No est\\u00e1 permitido texto sin espacios en blanco en esta posici\\u00f3n de la hoja de estilos!\"},\n\n    { INVALID_TCHAR,\n     \"Valor no permitido: se ha utilizado {1} para el atributo CHAR: {0}. \\u00a1Un atributo de tipo CHAR debe ser de un solo car\\u00e1cter!\"},\n\n\n\n\n    { INVALID_QNAME,\n     \"Valor no permitido: se ha utilizado {1} para el atributo QNAME: {0}\"},\n\n\n    { INVALID_ENUM,\n     \"Valor no permitido: se ha utilizado {1} para el atributo ENUM: {0}. Los valores v\\u00e1lidos son: {2}.\"},\n\n\n    { INVALID_NMTOKEN,\n     \"Valor no permitido: se ha utilizado {1} para el atributo NMTOKEN: {0}\"},\n\n\n    { INVALID_NCNAME,\n     \"Valor no permitido: se ha utilizado {1} para el atributo NCNAME: {0}\"},\n\n\n\n    { INVALID_BOOLEAN,\n     \"Valor no permitido: se ha utilizado {1} para el atributo boolean: {0}\"},\n\n\n     { INVALID_NUMBER,\n     \"Valor no permitido: se ha utilizado {1} para el atributo number: {0}\"},\n\n\n\n\n    { ER_ARG_LITERAL,\n     \"El argumento para {0} en el patr\\u00f3n de coincidencia debe ser un literal.\"},\n\n\n    { ER_DUPLICATE_GLOBAL_VAR,\n     \"Declaraci\\u00f3n de variable global duplicada.\"},\n\n\n\n    { ER_DUPLICATE_VAR,\n     \"Declaraci\\u00f3n de variable duplicada.\"},\n\n\n    { ER_TEMPLATE_NAME_MATCH,\n     \"xsl:template debe tener un atributo name o match (o ambos)\"},\n\n\n    { ER_INVALID_PREFIX,\n     \"El prefijo en exclude-result-prefixes no es v\\u00e1lido: {0}\"},\n\n\n    { ER_NO_ATTRIB_SET,\n     \"attribute-set de nombre {0} no existe\"},\n\n\n\n\n\n\n  /** WG_FOUND_CURLYBRACE          */\n    { WG_FOUND_CURLYBRACE,\n      \"\\u00a1Se ha encontrado '}' pero no se ha abierto una plantilla de atributos!\"},\n\n  /** WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR          */\n\n    { WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR,\n      \"Aviso: \\u00a1El atributo count no coincide con un antecesor en xsl:number! Destino = {0}\"},\n\n  /** WG_EXPR_ATTRIB_CHANGED_TO_SELECT          */\n\n    { WG_EXPR_ATTRIB_CHANGED_TO_SELECT,\n      \"Sintaxis antigua: El nombre del atributo 'expr' se ha cambiado por 'select'.\"},\n\n  /** WG_NO_LOCALE_IN_FORMATNUMBER          */\n\n    { WG_NO_LOCALE_IN_FORMATNUMBER,\n      \"Xalan no maneja a\\u00fan el nombre de entorno local en la funci\\u00f3n format-number.\"},\n\n  /** WG_LOCALE_NOT_FOUND          */\n\n    { WG_LOCALE_NOT_FOUND,\n      \"Aviso: No se ha podido encontrar el entorno local para xml:lang={0}\"},\n\n  /** WG_CANNOT_MAKE_URL_FROM          */\n\n    { WG_CANNOT_MAKE_URL_FROM,\n      \"No se puede crear URL desde: {0}\"},\n\n  /** WG_CANNOT_LOAD_REQUESTED_DOC          */\n\n    { WG_CANNOT_LOAD_REQUESTED_DOC,\n      \"No se puede cargar el doc solicitado: {0}\"},\n\n  /** WG_CANNOT_FIND_COLLATOR          */\n    { WG_CANNOT_FIND_COLLATOR,\n      \"No se ha podido encontrar clasificador para <sort xml:lang={0}\"},\n\n  /** WG_FUNCTIONS_SHOULD_USE_URL          */\n\n    { WG_FUNCTIONS_SHOULD_USE_URL,\n      \"Sintaxis antigua: La instrucci\\u00f3n functions deber\\u00eda utilizar un url de {0}\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_UTF8          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_UTF8,\n      \"Codificaci\\u00f3n no soportada: {0}, se utiliza UTF-8\"},\n\n  /** WG_ENCODING_NOT_SUPPORTED_USING_JAVA          */\n\n    { WG_ENCODING_NOT_SUPPORTED_USING_JAVA,\n      \"Codificaci\\u00f3n no soportada: {0}, se utiliza Java {1}\"},\n\n  /** WG_SPECIFICITY_CONFLICTS          */\n\n    { WG_SPECIFICITY_CONFLICTS,\n      \"Se han encontrado conflictos de especificaci\\u00f3n: {0} Se utilizar\\u00e1 lo \\u00faltimo encontrado en la hoja de estilos.\"},\n\n  /** WG_PARSING_AND_PREPARING          */\n\n    { WG_PARSING_AND_PREPARING,\n      \"========= Analizando y preparando {0} ==========\"},\n\n  /** WG_ATTR_TEMPLATE          */\n\n    { WG_ATTR_TEMPLATE,\n     \"Plantilla de atributos, {0}\"},\n\n  /** WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE          */\n\n    { WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE,\n      \"Conflicto de coincidencia entre xsl:strip-space y xsl:preserve-space\"},\n\n  /** WG_ATTRIB_NOT_HANDLED          */\n\n    { WG_ATTRIB_NOT_HANDLED,\n      \"\\u00a1Xalan no maneja a\\u00fan el atributo {0}!\"},\n\n  /** WG_NO_DECIMALFORMAT_DECLARATION          */\n\n    { WG_NO_DECIMALFORMAT_DECLARATION,\n      \"No se ha encontrado declaraci\\u00f3n para el formato decimal: {0}\"},\n\n  /** WG_OLD_XSLT_NS          */\n\n    { WG_OLD_XSLT_NS,\n     \"Falta el espacio de nombres XSLT o es incorrecto.\"},\n\n  /** WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED          */\n\n    { WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED,\n      \"S\\u00f3lo se permite una declaraci\\u00f3n xsl:decimal-format por omisi\\u00f3n.\"},\n\n  /** WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE          */\n\n    { WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE,\n      \"Los nombres de xsl:decimal-format deben ser \\u00fanicos. El nombre \\\"{0}\\\" se ha duplicado.\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE          */\n\n    { WG_ILLEGAL_ATTRIBUTE,\n      \"{0} tiene un atributo no permitido: {1}\"},\n\n  /** WG_COULD_NOT_RESOLVE_PREFIX          */\n\n    { WG_COULD_NOT_RESOLVE_PREFIX,\n      \"No se ha podido resolver el prefijo del espacio de nombres: {0}. Se ignorar\\u00e1 el nodo.\"},\n\n  /** WG_STYLESHEET_REQUIRES_VERSION_ATTRIB          */\n    { WG_STYLESHEET_REQUIRES_VERSION_ATTRIB,\n      \"\\u00a1xsl:stylesheet necesita un atributo 'version'!\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_NAME          */\n\n    { WG_ILLEGAL_ATTRIBUTE_NAME,\n      \"Nombre de atributo no permitido: {0}\"},\n\n  /** WG_ILLEGAL_ATTRIBUTE_VALUE          */\n    { WG_ILLEGAL_ATTRIBUTE_VALUE,\n      \"Se ha utilizado un valor no permitido para el atributo {0}: {1}\"},\n\n  /** WG_EMPTY_SECOND_ARG          */\n\n    { WG_EMPTY_SECOND_ARG,\n      \"El NodeSet resultante del segundo argumento de la funci\\u00f3n del documento est\\u00e1 vac\\u00edo. Devuelve un conjunto de nodos vac\\u00edo.\"},\n\n\n\n\n  /** WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML          */\n    { WG_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML,\n      \"El valor del atributo 'name' de nombre xsl:processing-instruction no debe ser 'xml'\"},\n\n\n  /** WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME          */\n    { WG_PROCESSINGINSTRUCTION_NOTVALID_NCNAME,\n      \"El valor del atributo 'name' de xsl:processing-instruction debe ser un NCName v\\u00e1lido: {0}\"},\n\n\n  /** WG_ILLEGAL_ATTRIBUTE_POSITION         */\n    { WG_ILLEGAL_ATTRIBUTE_POSITION,\n      \"No se puede a\\u00f1adir el atributo {0} despu\\u00e9s de nodos hijo o antes de que se produzca un elemento. Se ignorar\\u00e1 el atributo.\"},\n\n\n  { \"ui_language\", \"es\"},\n  {  \"help_language\",  \"es\" },\n  {  \"language\",  \"es\" },\n  { \"BAD_CODE\", \"El par\\u00e1metro para createMessage estaba fuera de los l\\u00edmites\"},\n  {  \"FORMAT_FAILED\", \"Se ha generado una excepci\\u00f3n durante la llamada messageFormat\"},\n  {  \"version\", \">>>>>>> Xalan versi\\u00f3n\"},\n  {  \"version2\",  \"<<<<<<<\"},\n  {  \"yes\", \"s\\u00ed\"},\n  { \"line\", \"L\\u00ednea n\\u00fam.\"},\n  { \"column\",\"Columna n\\u00fam.\"},\n  { \"xsldone\", \"XSLProcessor: terminado\"},\n\n\n  { \"xslProc_option\", \"Opciones de la clase Process de la l\\u00ednea de mandatos Xalan-J:\"},\n  { \"xslProc_option\", \"Opciones de la clase Process de la l\\u00ednea de mandatos Xalan-J\\u003a\"},\n  { \"xslProc_invalid_xsltc_option\", \"La opci\\u00f3n {0} no est\\u00e1 soportada en modalidad XSLTC.\"},\n  { \"xslProc_invalid_xalan_option\", \"La opci\\u00f3n {0} s\\u00f3lo puede utilizarse con -XSLTC.\"},\n  { \"xslProc_no_input\", \"Error: No se ha especificado ninguna hoja de estilos ni xml de entrada. Ejecute este mandato sin opciones para ver las instrucciones de uso.\"},\n  { \"xslProc_common_options\", \"-Opciones comunes-\"},\n  { \"xslProc_xalan_options\", \"-Opciones para Xalan-\"},\n  { \"xslProc_xsltc_options\", \"-Opciones para XSLTC-\"},\n  { \"xslProc_return_to_continue\", \"(pulse <Intro> para continuar)\"},\n\n  { \"optionXSLTC\", \"[-XSLTC (Utilizar XSLTC para transformaci\\u00f3n)]\"},\n  { \"optionIN\", \"[-IN URLXMLentrada]\"},\n  { \"optionXSL\", \"[-XSL URLTransformaci\\u00f3nXSL]\"},\n  { \"optionOUT\",  \"[-OUT nombreArchivoSalida]\"},\n  { \"optionLXCIN\", \"[-LXCIN entradaNombreArchivoHojaEstilosCompilada]\"},\n  { \"optionLXCOUT\", \"[-LXCOUT salidaNombreArchivoHojaEstilosCompilada]\"},\n  { \"optionPARSER\", \"[-PARSER nombre de clase completamente cualificado del enlace del analizador]\"},\n  {  \"optionE\", \"[-E (No expandir referencias de entidades)]\"},\n  {  \"optionV\",  \"[-E (No expandir referencias de entidades)]\"},\n  {  \"optionQC\", \"[-QC (Avisos silenciosos de conflictos de patrones)]\"},\n  {  \"optionQ\", \"[-Q  (Modalidad silenciosa)]\"},\n  {  \"optionLF\", \"[-LF (Utilizar s\\u00f3lo avances de l\\u00ednea en la salida {por omisi\\u00f3n es CR/LF})]\"},\n  {  \"optionCR\", \"[-CR (Utilizar s\\u00f3lo retornos de carro en la salida {por omisi\\u00f3n es CR/LF})]\"},\n  { \"optionESCAPE\", \"[-ESCAPE (Caracteres con escape {por omisi\\u00f3n es <>&\\\"\\'\\\\r\\\\n}]\"},\n  { \"optionINDENT\", \"[-INDENT (Controlar el n\\u00famero de espacios de sangrado {por omisi\\u00f3n es 0})]\"},\n  { \"optionTT\", \"[-TT (Rastrear las plantillas a medida que se llaman.)]\"},\n  { \"optionTG\", \"[-TG (Rastrear cada suceso de generaci\\u00f3n.)]\"},\n  { \"optionTS\", \"[-TS (Rastrear cada suceso de selecci\\u00f3n.)]\"},\n  {  \"optionTTC\", \"[-TTC (Rastrear los hijos de plantillas a medida que se procesan.)]\"},\n  { \"optionTCLASS\", \"[-TCLASS (Clase TraceListener para extensiones de rastreo.)]\"},\n  { \"optionVALIDATE\", \"[-VALIDATE (Establecer si se realiza la validaci\\u00f3n. Por omisi\\u00f3n la validaci\\u00f3n est\\u00e1 desactivada.)]\"},\n  { \"optionEDUMP\", \"[-EDUMP {nombre de archivo opcional} (Realizar vuelco de pila si se produce un error.)]\"},\n  {  \"optionXML\", \"[-XML (Utilizar el formateador XML y a\\u00f1adir la cabecera XML.)]\"},\n  {  \"optionTEXT\", \"[-TEXT (Utilizar el formateador de texto sencillo.)]\"},\n  {  \"optionHTML\", \"[-HTML (Utilizar el formateador HTML.)]\"},\n  {  \"optionPARAM\", \"[-PARAM expresi\\u00f3n de nombre (Establecer un par\\u00e1metro de hoja de estilos)]\"},\n  {  \"noParsermsg1\", \"El proceso XSL no ha sido satisfactorio.\"},\n  {  \"noParsermsg2\", \"** No se ha podido encontrar el analizador **\"},\n  { \"noParsermsg3\",  \"Compruebe la classpath.\"},\n  { \"noParsermsg4\", \"Si no dispone del analizador XML para Java de IBM, puede bajarlo de \"},\n  { \"optionURIRESOLVER\", \"[-URIRESOLVER nombre de clase completo (URIResolver a utilizar para resolver URI)]\"},\n  { \"optionENTITYRESOLVER\",  \"[-ENTITYRESOLVER nombre de clase completo (EntityResolver a utilizar para resolver entidades)]\"},\n  { \"optionCONTENTHANDLER\",  \"[-CONTENTHANDLER nombre de clase completo (ContentHandler a utilizar para serializar la salida)]\"},\n  {  \"optionLINENUMBERS\",  \"[-L utilizar n\\u00fameros de l\\u00ednea para el documento fuente]\"},\n\n\n\n  {  \"optionMEDIA\",  \"[-MEDIA tipoSoporte (Utilizar el atributo de soporte para encontrar la hoja de estilos asociada con un documento.)]\"},\n  { \"optionDIAG\", \"[-DIAG (Imprimir el total de milisegundos que lleva la transformaci\\u00f3n.)]\"},\n  { \"optionRL\",  \"[-RL l\\u00edmiteRecursi\\u00f3n (L\\u00edmite num\\u00e9rico de aserci\\u00f3n sobre profundidad de recursi\\u00f3n de hoja de estilos.)]\"},\n  {   \"optionXO\",  \"[-XO [nombreTranslet] (Asignar el nombre al translet generado)]\"},\n  {  \"optionXD\", \"[-XD directorioDestino (Especificar un directorio de destino para translet)]\"},\n  {  \"optionXJ\",  \"[-XJ archivoJar (Empaqueta las clases translet en un archivo jar de nombre <archivoJar>)]\"},\n  {   \"optionXP\",  \"[-XP paquete (Especifica un prefijo para el nombre del paquete de todas las clases translet generadas)]\"},\n\n  { \"optionXN\",  \"[-XN (habilita la inclusi\\u00f3n en l\\u00ednea de plantillas)]\" },\n  { \"optionXX\",  \"[-XX (activa la salida de mensajes de depuraci\\u00f3n adicionales)]\"},\n  { \"optionXT\" , \"[-XT (utilizar translet para transformar si es posible)]\"},\n  { \"diagTiming\",\"--------- La transformaci\\u00f3n de {0} mediante {1} ha durado {2} ms\" },\n  { \"recursionTooDeep\",\"Anidado de plantilla demasiado profundo. anidado = {0}, plantilla {1} {2}\" },\n  { \"nameIs\", \"el nombre es \" },\n  { \"matchPatternIs\", \"el patr\\u00f3n de coincidencia es \" }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81], [1, 82], [1, 83], [1, 84], [1, 85], [1, 86], [1, 87], [1, 88], [1, 89], [1, 90], [1, 91], [1, 92], [1, 93], [1, 94], [1, 95], [1, 96], [1, 97], [1, 98], [1, 99], [1, 100], [1, 101], [1, 102], [1, 103], [1, 104], [1, 105], [1, 106], [1, 107], [1, 108], [1, 109], [1, 110], [1, 111], [1, 112], [1, 113], [1, 114], [1, 115], [1, 116], [1, 117], [1, 118], [1, 119], [1, 120], [1, 121], [1, 122], [1, 123], [1, 124], [1, 125], [1, 126], [1, 127], [1, 128], [1, 129], [1, 130], [1, 131], [1, 132], [1, 133], [1, 134], [1, 135], [1, 136], [1, 137], [1, 138], [1, 139], [1, 140], [1, 141], [1, 142], [1, 143], [1, 144], [1, 145], [1, 146], [1, 147], [1, 148], [1, 149], [1, 150], [1, 151], [1, 152], [1, 153], [1, 154], [1, 155], [1, 156], [1, 157], [1, 158], [1, 159], [1, 160], [1, 161], [1, 162], [1, 163], [1, 164], [1, 165], [1, 166], [1, 167], [1, 168], [1, 169], [1, 170], [1, 171], [1, 172], [1, 173], [1, 174], [1, 175], [1, 176], [1, 177], [1, 178], [1, 179], [1, 180], [1, 181], [1, 182], [1, 183], [1, 184], [1, 185], [1, 186], [1, 187], [1, 188], [1, 189], [1, 190], [1, 191], [1, 192], [1, 193], [1, 194], [1, 195], [1, 196], [1, 197], [1, 198], [1, 199], [1, 200], [1, 201], [1, 202], [1, 203], [1, 204], [1, 205], [1, 206], [1, 207], [1, 208], [1, 209], [1, 210], [1, 211], [1, 212], [1, 213], [1, 214], [1, 215], [1, 216], [1, 217], [1, 218], [1, 219], [1, 220], [1, 221], [1, 222], [1, 223], [1, 224], [1, 225], [1, 226], [1, 227], [1, 228], [1, 229], [1, 230], [1, 231], [1, 232], [1, 233], [1, 234], [1, 235], [1, 236], [1, 237], [1, 238], [1, 239], [1, 240], [1, 241], [1, 242], [1, 243], [1, 244], [1, 245], [1, 246], [1, 247], [1, 248], [1, 249], [1, 250], [1, 251], [1, 252], [1, 253], [1, 254], [1, 255], [1, 256], [1, 257], [1, 258], [1, 259], [1, 260], [1, 261], [1, 262], [1, 263], [1, 264], [1, 265], [1, 266], [1, 267], [1, 268], [1, 269], [1, 270], [1, 271], [1, 272], [1, 273], [1, 274], [1, 275], [1, 276], [1, 277], [1, 278], [1, 279], [1, 280], [1, 281], [1, 282], [1, 283], [1, 284], [1, 285], [1, 286], [1, 287], [1, 288], [1, 289], [1, 290], [1, 291], [1, 292], [1, 293], [1, 294], [1, 295], [1, 296], [1, 297], [1, 298], [1, 299], [1, 300], [1, 301], [1, 302], [1, 303], [1, 304], [1, 305], [1, 306], [1, 307], [1, 308], [1, 309], [1, 310], [1, 311], [1, 312], [1, 313], [1, 314], [1, 315], [1, 316], [1, 317], [1, 318], [1, 319], [1, 320], [1, 321], [1, 322], [1, 323], [1, 324], [1, 325], [1, 326], [1, 327], [1, 328], [1, 329], [1, 330], [1, 331], [1, 332], [1, 333], [1, 334], [1, 335], [1, 336], [1, 337], [1, 338], [1, 339], [1, 340], [1, 341], [1, 342], [1, 343], [1, 344], [1, 345], [1, 346], [1, 347], [1, 348], [1, 349], [1, 350], [1, 351], [1, 352], [1, 353], [1, 354], [1, 355], [1, 356], [1, 357], [1, 358], [1, 359], [1, 360], [1, 361], [1, 362], [1, 363], [1, 364], [1, 365], [1, 366], [1, 367], [1, 368], [1, 369], [1, 370], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [72, 1], [73, 1], [74, 1], [75, 1], [76, 1], [77, 1], [78, 1], [79, 1], [80, 1], [81, 1], [82, 1], [83, 1], [84, 1], [85, 1], [86, 1], [87, 1], [88, 1], [89, 1], [90, 1], [91, 1], [92, 1], [93, 1], [94, 1], [95, 1], [96, 1], [97, 1], [98, 1], [99, 1], [100, 1], [101, 1], [102, 1], [103, 1], [104, 1], [105, 1], [106, 1], [107, 1], [108, 1], [109, 1], [110, 1], [111, 1], [112, 1], [113, 1], [114, 1], [115, 1], [116, 1], [117, 1], [118, 1], [119, 1], [120, 1], [121, 1], [122, 1], [123, 1], [124, 1], [125, 1], [126, 1], [127, 1], [128, 1], [129, 1], [130, 1], [131, 1], [132, 1], [133, 1], [134, 1], [135, 1], [136, 1], [137, 1], [138, 1], [139, 1], [140, 1], [141, 1], [142, 1], [143, 1], [144, 1], [145, 1], [146, 1], [147, 1], [148, 1], [149, 1], [150, 1], [151, 1], [152, 1], [153, 1], [154, 1], [155, 1], [156, 1], [157, 1], [158, 1], [159, 1], [160, 1], [161, 1], [162, 1], [163, 1], [164, 1], [165, 1], [166, 1], [167, 1], [168, 1], [169, 1], [170, 1], [171, 1], [172, 1], [173, 1], [174, 1], [175, 1], [176, 1], [177, 1], [178, 1], [179, 1], [180, 1], [181, 1], [182, 1], [183, 1], [184, 1], [185, 1], [186, 1], [187, 1], [188, 1], [189, 1], [190, 1], [191, 1], [192, 1], [193, 1], [194, 1], [195, 1], [196, 1], [197, 1], [198, 1], [199, 1], [200, 1], [201, 1], [202, 1], [203, 1], [204, 1], [205, 1], [206, 1], [207, 1], [208, 1], [209, 1], [210, 1], [211, 1], [212, 1], [213, 1], [214, 1], [215, 1], [216, 1], [217, 1], [218, 1], [219, 1], [220, 1], [221, 1], [222, 1], [223, 1], [224, 1], [225, 1], [226, 1], [227, 1], [228, 1], [229, 1], [230, 1], [231, 1], [232, 1], [233, 1], [234, 1], [235, 1], [236, 1], [237, 1], [238, 1], [239, 1], [240, 1], [241, 1], [242, 1], [243, 1], [244, 1], [245, 1], [246, 1], [247, 1], [248, 1], [249, 1], [250, 1], [251, 1], [252, 1], [253, 1], [254, 1], [255, 1], [256, 1], [257, 1], [258, 1], [259, 1], [260, 1], [261, 1], [262, 1], [263, 1], [264, 1], [265, 1], [266, 1], [267, 1], [268, 1], [269, 1], [270, 1], [271, 1], [272, 1], [273, 1], [274, 1], [275, 1], [276, 1], [277, 1], [278, 1], [279, 1], [280, 1], [281, 1], [282, 1], [283, 1], [284, 1], [285, 1], [286, 1], [287, 1], [288, 1], [289, 1], [290, 1], [291, 1], [292, 1], [293, 1], [294, 1], [295, 1], [296, 1], [297, 1], [298, 1], [299, 1], [300, 1], [301, 1], [302, 1], [303, 1], [304, 1], [305, 1], [306, 1], [307, 1], [308, 1], [309, 1], [310, 1], [311, 1], [312, 1], [313, 1], [314, 1], [315, 1], [316, 1], [317, 1], [318, 1], [319, 1], [320, 1], [321, 1], [322, 1], [323, 1], [324, 1], [325, 1], [326, 1], [327, 1], [328, 1], [329, 1], [330, 1], [331, 1], [332, 1], [333, 1], [334, 1], [335, 1], [336, 1], [337, 1], [338, 1], [339, 1], [340, 1], [341, 1], [342, 1], [343, 1], [344, 1], [345, 1], [346, 1], [347, 1], [348, 1], [349, 1], [350, 1], [351, 1], [352, 1], [353, 1], [354, 1], [355, 1], [356, 1], [357, 1], [358, 1], [359, 1], [360, 1], [361, 1], [362, 1], [363, 1], [364, 1], [365, 1], [366, 1], [367, 1], [368, 1], [369, 1], [370, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370]]}, {"function_name": "loadResourceBundle", "code": "  public static final XSLTErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XSLTErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XSLTErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"es\", \"ES\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "poi-2.5-5628", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/formula/Ref3DPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.Ref3DPtg", "code": "public class Ref3DPtg extends Ptg {\n    public final static byte sid  = 0x3a;\n    private short             field_1_index_extern_sheet;\n    private short             field_2_row;\n    private short             field_3_column;\n    private BitField         rowRelative = new BitField(0x8000);\n    private BitField         colRelative = new BitField(0x4000);\n\n    /** Creates new AreaPtg */\n    public Ref3DPtg() {}\n\n    public Ref3DPtg(byte[] data, int offset) {\n        offset++;\n        field_1_index_extern_sheet = LittleEndian.getShort(data, 0 + offset);\n        field_2_row          = LittleEndian.getShort(data, 2 + offset);\n        field_3_column        = LittleEndian.getShort(data, 4 + offset);\n    }\n    \n    public Ref3DPtg(String cellref, short externIdx ) {\n        CellReference c= new CellReference(cellref);\n        setRow((short) c.getRow());\n        setColumn((short) c.getCol());\n        setColRelative(!c.isColAbsolute());\n        setRowRelative(!c.isRowAbsolute());   \n        setExternSheetIndex(externIdx);\n    }\n\n    public String toString() {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"Ref3dPtg\\n\");\n        buffer.append(\"Index to Extern Sheet = \" + getExternSheetIndex()).append(\"\\n\");\n        buffer.append(\"Row = \" + getRow()).append(\"\\n\");\n        buffer.append(\"Col  = \" + getColumn()).append(\"\\n\");\n        buffer.append(\"ColRowRel= \"\n        + isRowRelative()).append(\"\\n\");\n        buffer.append(\"ColRel   = \" + isColRelative()).append(\"\\n\");\n        return buffer.toString();\n    }\n\n    public void writeBytes(byte [] array, int offset) {\n        array[ 0 + offset ] = (byte) (sid + ptgClass);\n        LittleEndian.putShort(array, 1 + offset , getExternSheetIndex());\n        LittleEndian.putShort(array, 3 + offset , getRow());\n        LittleEndian.putShort(array, 5 + offset , getColumnRaw());\n    }\n\n    public int getSize() {\n        return SIZE;\n    }\n\n    public short getExternSheetIndex(){\n        return field_1_index_extern_sheet;\n    }\n\n    public void setExternSheetIndex(short index){\n        field_1_index_extern_sheet = index;\n    }\n\n    public short getRow() {\n        return field_2_row;\n    }\n\n    public void setRow(short row) {\n        field_2_row = row;\n    }\n\n    public short getColumn() {\n        return ( short ) (field_3_column & 0xFF);\n    }\n\n    public short getColumnRaw() {\n        return field_3_column;\n    }\n\n     public boolean isRowRelative()\n    {\n        return rowRelative.isSet(field_3_column);\n    }\n    \n    public void setRowRelative(boolean rel) {\n        field_3_column=rowRelative.setShortBoolean(field_3_column,rel);\n    }\n    \n    public boolean isColRelative()\n    {\n        return colRelative.isSet(field_3_column);\n    }\n    \n    public void setColRelative(boolean rel) {\n        field_3_column=colRelative.setShortBoolean(field_3_column,rel);\n    }\n    public void setColumn(short column) {\n        field_3_column &= 0xFF00;\n        field_3_column |= column & 0xFF;\n    }\n\n    public void setColumnRaw(short column) {\n        field_3_column = column;\n    }\n\n   /* public String getArea(){\n        RangeAddress ra = new RangeAddress(\"\");\n\n        String result = (ra.numTo26Sys(getColumn()) + (getRow() + 1));\n\n        return result;\n    }*/\n\n    public void setArea(String ref){\n        RangeAddress ra = new RangeAddress(ref);\n\n        String from = ra.getFromCell();\n\n        setColumn((short) (ra.getXPosition(from) -1));\n        setRow((short) (ra.getYPosition(from) -1));\n\n    }\n\n    public String toFormulaString(Workbook book) {\n        StringBuffer retval = new StringBuffer();\n        SheetReferences refs = book == null ? null : book.getSheetReferences();\n        if (refs != null) {\n            retval.append(refs.getSheetName((int)this.field_1_index_extern_sheet));\n            retval.append('!');\n        }\n        retval.append((new CellReference(getRow(),getColumn(),!isRowRelative(),!isColRelative())).toString()); \n        return retval.toString();\n    }\n\n   public byte getDefaultOperandClass() {return Ptg.CLASS_REF;}\n\n   public Object clone() {\n     Ref3DPtg ptg = new Ref3DPtg();\n     ptg.field_1_index_extern_sheet = field_1_index_extern_sheet;\n     ptg.field_2_row = field_2_row;\n     ptg.field_3_column = field_3_column;\n     ptg.setClass(ptgClass);\n     return ptg;", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"Ref3dPtg\\n\");\n        buffer.append(\"Index to Extern Sheet = \" + getExternSheetIndex()).append(\"\\n\");\n        buffer.append(\"Row = \" + getRow()).append(\"\\n\");\n        buffer.append(\"Col  = \" + getColumn()).append(\"\\n\");\n        buffer.append(\"ColRowRel= \"\n        + isRowRelative()).append(\"\\n\");\n        buffer.append(\"ColRel   = \" + isColRelative()).append(\"\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [4, 11], [5, 12], [5, 13], [6, 14], [6, 15], [7, 16], [7, 17], [8, 18], [8, 19], [9, 20], [2, 21], [10, 22], [10, 23], [11, 24], [12, 25], [12, 26], [13, 27], [14, 28], [14, 29], [15, 30], [16, 31], [16, 32], [17, 33], [18, 34], [18, 35], [19, 36], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 4], [12, 5], [13, 5], [14, 6], [15, 6], [16, 7], [17, 7], [18, 8], [19, 8], [20, 9], [21, 2], [22, 10], [23, 10], [24, 11], [25, 12], [26, 12], [27, 13], [28, 14], [29, 14], [30, 15], [31, 16], [32, 16], [33, 17], [34, 18], [35, 18], [36, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset) {\n        array[ 0 + offset ] = (byte) (sid + ptgClass);\n        LittleEndian.putShort(array, 1 + offset , getExternSheetIndex());\n        LittleEndian.putShort(array, 3 + offset , getRow());\n        LittleEndian.putShort(array, 5 + offset , getColumnRaw());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [3, 8], [4, 9], [4, 10], [5, 11], [5, 12], [8, 13], [10, 14], [12, 15], [6, 16], [6, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 3], [9, 4], [10, 4], [11, 5], [12, 5], [13, 8], [14, 10], [15, 12], [16, 6], [17, 6], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getSize", "code": "    public int getSize() {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExternSheetIndex", "code": "    public short getExternSheetIndex(){\n        return field_1_index_extern_sheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExternSheetIndex", "code": "    public void setExternSheetIndex(short index){\n        field_1_index_extern_sheet = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRow", "code": "    public short getRow() {\n        return field_2_row;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRow", "code": "    public void setRow(short row) {\n        field_2_row = row;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColumn", "code": "    public short getColumn() {\n        return ( short ) (field_3_column & 0xFF);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getColumnRaw", "code": "    public short getColumnRaw() {\n        return field_3_column;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isRowRelative", "code": "     public boolean isRowRelative()\n    {\n        return rowRelative.isSet(field_3_column);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRowRelative", "code": "    public void setRowRelative(boolean rel) {\n        field_3_column=rowRelative.setShortBoolean(field_3_column,rel);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isColRelative", "code": "    public boolean isColRelative()\n    {\n        return colRelative.isSet(field_3_column);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setColRelative", "code": "    public void setColRelative(boolean rel) {\n        field_3_column=colRelative.setShortBoolean(field_3_column,rel);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setColumn", "code": "    public void setColumn(short column) {\n        field_3_column &= 0xFF00;\n        field_3_column |= column & 0xFF;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setColumnRaw", "code": "    public void setColumnRaw(short column) {\n        field_3_column = column;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setArea", "code": "    public void setArea(String ref){\n        RangeAddress ra = new RangeAddress(ref);\n\n        String from = ra.getFromCell();\n\n        setColumn((short) (ra.getXPosition(from) -1));\n        setRow((short) (ra.getYPosition(from) -1));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [5, 9], [8, 10], [8, 11], [9, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 5], [10, 8], [11, 8], [12, 9], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book) {\n        StringBuffer retval = new StringBuffer();\n        SheetReferences refs = book == null ? null : book.getSheetReferences();\n        if (refs != null) {\n            retval.append(refs.getSheetName((int)this.field_1_index_extern_sheet));\n            retval.append('!');\n        }\n        retval.append((new CellReference(getRow(),getColumn(),!isRowRelative(),!isColRelative())).toString()); \n        return retval.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [7, 9], [8, 10], [3, 11], [4, 12], [9, 13], [9, 14], [9, 15], [9, 16], [9, 17], [2, 18], [2, 19], [11, 20], [11, 21], [11, 22], [18, 23], [19, 24], [22, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 7], [10, 8], [11, 3], [12, 4], [13, 9], [14, 9], [15, 9], [16, 9], [17, 9], [18, 2], [19, 2], [20, 11], [21, 11], [22, 11], [23, 18], [24, 19], [25, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getDefaultOperandClass", "code": "   public byte getDefaultOperandClass() {return Ptg.CLASS_REF;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "   public Object clone() {\n     Ref3DPtg ptg = new Ref3DPtg();\n     ptg.field_1_index_extern_sheet = field_1_index_extern_sheet;\n     ptg.field_2_row = field_2_row;\n     ptg.field_3_column = field_3_column;\n     ptg.setClass(ptgClass);\n     return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "Ref3DPtg", "code": "    public Ref3DPtg() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Ref3DPtg", "code": "    public Ref3DPtg(byte[] data, int offset) {\n        offset++;\n        field_1_index_extern_sheet = LittleEndian.getShort(data, 0 + offset);\n        field_2_row          = LittleEndian.getShort(data, 2 + offset);\n        field_3_column        = LittleEndian.getShort(data, 4 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "Ref3DPtg", "code": "    public Ref3DPtg(String cellref, short externIdx ) {\n        CellReference c= new CellReference(cellref);\n        setRow((short) c.getRow());\n        setColumn((short) c.getCol());\n        setColRelative(!c.isColAbsolute());\n        setRowRelative(!c.isRowAbsolute());   \n        setExternSheetIndex(externIdx);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [1, 11], [7, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 1], [12, 7], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 1}
{"sample_id": "ant-1.7-928", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/Basename.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Basename", "code": "public class Basename extends Task {\n    private File file;\n    private String property;\n    private String suffix;\n\n    /**\n     * file or directory to get base name from\n     * @param file file or directory to get base name from\n     */\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    /**\n    * Property to set base name to.\n     * @param property name of property\n    */\n    public void setProperty(String property) {\n        this.property  = property;\n    }\n\n    /**\n    * Optional suffix to remove from base name.\n     * @param suffix suffix to remove from base name\n    */\n    public void setSuffix(String suffix) {\n        this.suffix = suffix;\n    }\n\n    /**\n     * do the work\n     * @throws BuildException if required attributes are not supplied\n     * property and attribute are required attributes\n     */\n    public void execute() throws BuildException {\n        if (property == null) {\n            throw new BuildException(\"property attribute required\", getLocation());\n        }\n        if (file == null) {\n            throw new BuildException(\"file attribute required\", getLocation());\n        }\n        String value = file.getName();\n        if (suffix != null && value.endsWith(suffix)) {\n            int pos = value.length() - suffix.length();\n            if (pos > 0 && suffix.charAt(0) != '.'\n                && value.charAt(pos - 1) == '.') {\n                pos--;\n            }\n            value = value.substring(0, pos);\n        }\n        getProject().setNewProperty(property, value);", "functions": [{"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperty", "code": "    public void setProperty(String property) {\n        this.property  = property;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSuffix", "code": "    public void setSuffix(String suffix) {\n        this.suffix = suffix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (property == null) {\n            throw new BuildException(\"property attribute required\", getLocation());\n        }\n        if (file == null) {\n            throw new BuildException(\"file attribute required\", getLocation());\n        }\n        String value = file.getName();\n        if (suffix != null && value.endsWith(suffix)) {\n            int pos = value.length() - suffix.length();\n            if (pos > 0 && suffix.charAt(0) != '.'\n                && value.charAt(pos - 1) == '.') {\n                pos--;\n            }\n            value = value.substring(0, pos);\n        }\n        getProject().setNewProperty(property, value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [5, 9], [1, 10], [1, 11], [6, 12], [6, 13], [2, 14], [3, 15], [7, 16], [4, 17], [8, 18], [1, 19], [10, 20], [13, 21], [15, 22], [17, 23], [19, 24], [20, 25], [20, 26], [11, 27], [22, 28], [22, 29], [23, 30], [23, 31], [24, 32], [25, 33], [25, 34], [26, 35], [26, 36], [27, 37], [27, 38], [34, 39], [35, 40], [35, 41], [36, 42], [39, 43], [41, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 5], [10, 1], [11, 1], [12, 6], [13, 6], [14, 2], [15, 3], [16, 7], [17, 4], [18, 8], [19, 1], [20, 10], [21, 13], [22, 15], [23, 17], [24, 19], [25, 20], [26, 20], [27, 11], [28, 22], [29, 22], [30, 23], [31, 23], [32, 24], [33, 25], [34, 25], [35, 26], [36, 26], [37, 27], [38, 27], [39, 34], [40, 35], [41, 35], [42, 36], [43, 39], [44, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}], "label": 0}
{"sample_id": "xalan-2.7-8199", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/templates/XUnresolvedVariableSimple.java", "language": "java", "name": "org.apache.xalan.templates.XUnresolvedVariableSimple", "code": "public class XUnresolvedVariableSimple extends XObject\n{\n    static final long serialVersionUID = -1224413807443958985L;\n  public XUnresolvedVariableSimple(ElemVariable obj)\n  {\n    super(obj);\n  }\n    \n\t\n  /**\n   * For support of literal objects in xpaths.\n   *\n   * @param xctxt The XPath execution context.\n   *\n   * @return This object.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n  \tExpression expr = ((ElemVariable)m_obj).getSelect().getExpression();\n    XObject xobj = expr.execute(xctxt);\n    xobj.allowDetachToRelease(false);\n    return xobj;\n  }\n  \n  /**\n   * Tell what kind of class this is.\n   *\n   * @return CLASS_UNRESOLVEDVARIABLE\n   */\n  public int getType()\n  {\n    return CLASS_UNRESOLVEDVARIABLE;\n  }\n  \n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return An informational string.\n   */\n  public String getTypeString()\n  {\n    return \"XUnresolvedVariableSimple (\" + object().getClass().getName() + \")\";", "functions": [{"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n  \tExpression expr = ((ElemVariable)m_obj).getSelect().getExpression();\n    XObject xobj = expr.execute(xctxt);\n    xobj.allowDetachToRelease(false);\n    return xobj;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_UNRESOLVEDVARIABLE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"XUnresolvedVariableSimple (\" + object().getClass().getName() + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "XUnresolvedVariableSimple", "code": "  public XUnresolvedVariableSimple(ElemVariable obj)\n  {\n    super(obj);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.6-7403", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/utils/XMLString.java", "language": "java", "name": "org.apache.xml.utils.XMLString", "code": "public interface XMLString\n{\n\n  /**\n   * Directly call the\n   * characters method on the passed ContentHandler for the\n   * string-value. Multiple calls to the\n   * ContentHandler's characters methods may well occur for a single call to\n   * this method.\n   *\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public abstract void dispatchCharactersEvents(org.xml.sax.ContentHandler ch)\n    throws org.xml.sax.SAXException;\n\n  /**\n   * Directly call the\n   * comment method on the passed LexicalHandler for the\n   * string-value.\n   *\n   * @param lh A non-null reference to a LexicalHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public abstract void dispatchAsComment(org.xml.sax.ext.LexicalHandler lh)\n    throws org.xml.sax.SAXException;\n    \n  /**\n   * Conditionally trim all leading and trailing whitespace in the specified String.\n   * All strings of white space are\n   * replaced by a single space character (#x20), except spaces after punctuation which\n   * receive double spaces if doublePunctuationSpaces is true.\n   * This function may be useful to a formatter, but to get first class\n   * results, the formatter should probably do it's own white space handling\n   * based on the semantics of the formatting object.\n   * \n   * @param   trimHead    Trim leading whitespace?\n   * @param   trimTail    Trim trailing whitespace?\n   * @param   doublePunctuationSpaces    Use double spaces for punctuation?\n   * @return              The trimmed string.\n   */\n  public XMLString fixWhiteSpace(boolean trimHead,\n                                 boolean trimTail,\n                                 boolean doublePunctuationSpaces);\n\n  /**\n   * Returns the length of this string.\n   *\n   * @return  the length of the sequence of characters represented by this\n   *          object.\n   */\n  public abstract int length();\n\n  /**\n   * Returns the character at the specified index. An index ranges\n   * from <code>0</code> to <code>length() - 1</code>. The first character\n   * of the sequence is at index <code>0</code>, the next at index\n   * <code>1</code>, and so on, as for array indexing.\n   *\n   * @param      index   the index of the character.\n   * @return     the character at the specified index of this string.\n   *             The first character is at index <code>0</code>.\n   * @exception  IndexOutOfBoundsException  if the <code>index</code>\n   *             argument is negative or not less than the length of this\n   *             string.\n   */\n  public abstract char charAt(int index);\n\n  /**\n   * Copies characters from this string into the destination character\n   * array.\n   *\n   * @param      srcBegin   index of the first character in the string\n   *                        to copy.\n   * @param      srcEnd     index after the last character in the string\n   *                        to copy.\n   * @param      dst        the destination array.\n   * @param      dstBegin   the start offset in the destination array.\n   * @exception IndexOutOfBoundsException If any of the following\n   *            is true:\n   *            <ul><li><code>srcBegin</code> is negative.\n   *            <li><code>srcBegin</code> is greater than <code>srcEnd</code>\n   *            <li><code>srcEnd</code> is greater than the length of this\n   *                string\n   *            <li><code>dstBegin</code> is negative\n   *            <li><code>dstBegin+(srcEnd-srcBegin)</code> is larger than\n   *                <code>dst.length</code></ul>\n   * @exception NullPointerException if <code>dst</code> is <code>null</code>\n   */\n  public abstract void getChars(int srcBegin, int srcEnd, char dst[],\n                                int dstBegin);\n                                \n  /**\n   * Compares this string to the specified object.\n   * The result is <code>true</code> if and only if the argument is not\n   * <code>null</code> and is a <code>String</code> object that represents\n   * the same sequence of characters as this object.\n   *\n   * @param   anObject   the object to compare this <code>String</code>\n   *                     against.\n   * @return  <code>true</code> if the <code>String </code>are equal;\n   *          <code>false</code> otherwise.\n   * @see     java.lang.String#compareTo(java.lang.String)\n   * @see     java.lang.String#equalsIgnoreCase(java.lang.String)\n   */\n  public abstract boolean equals(XMLString anObject);\n\n\n  /**\n   * Compares this string to the specified object.\n   * The result is <code>true</code> if and only if the argument is not\n   * <code>null</code> and is a <code>String</code> object that represents\n   * the same sequence of characters as this object.\n   *\n   * @param   anObject   the object to compare this <code>String</code>\n   *                     against.\n   * @return  <code>true</code> if the <code>String </code>are equal;\n   *          <code>false</code> otherwise.\n   * @see     java.lang.String#compareTo(java.lang.String)\n   * @see     java.lang.String#equalsIgnoreCase(java.lang.String)\n   */\n  public abstract boolean equals(Object anObject);\n\n  /**\n   * Compares this <code>String</code> to another <code>String</code>,\n   * ignoring case considerations.  Two strings are considered equal\n   * ignoring case if they are of the same length, and corresponding\n   * characters in the two strings are equal ignoring case.\n   *\n   * @param   anotherString   the <code>String</code> to compare this\n   *                          <code>String</code> against.\n   * @return  <code>true</code> if the argument is not <code>null</code>\n   *          and the <code>String</code>s are equal,\n   *          ignoring case; <code>false</code> otherwise.\n   * @see     #equals(Object)\n   * @see     java.lang.Character#toLowerCase(char)\n   * @see java.lang.Character#toUpperCase(char)\n   */\n  public abstract boolean equalsIgnoreCase(String anotherString);\n\n  /**\n   * Compares two strings lexicographically.\n   *\n   * @param   anotherString   the <code>String</code> to be compared.\n   * @return  the value <code>0</code> if the argument string is equal to\n   *          this string; a value less than <code>0</code> if this string\n   *          is lexicographically less than the string argument; and a\n   *          value greater than <code>0</code> if this string is\n   *          lexicographically greater than the string argument.\n   * @exception java.lang.NullPointerException if <code>anotherString</code>\n   *          is <code>null</code>.\n   */\n  public abstract int compareTo(XMLString anotherString);\n\n  /**\n   * Compares two strings lexicographically, ignoring case considerations.\n   * This method returns an integer whose sign is that of\n   * <code>this.toUpperCase().toLowerCase().compareTo(\n   * str.toUpperCase().toLowerCase())</code>.\n   * <p>\n   * Note that this method does <em>not</em> take locale into account,\n   * and will result in an unsatisfactory ordering for certain locales.\n   * The java.text package provides <em>collators</em> to allow\n   * locale-sensitive ordering.\n   *\n   * @param   str   the <code>String</code> to be compared.\n   * @return  a negative integer, zero, or a positive integer as the\n   *          the specified String is greater than, equal to, or less\n   *          than this String, ignoring case considerations.\n   * @see     java.text.Collator#compare(String, String)\n   * @since   1.2\n   */\n  public abstract int compareToIgnoreCase(XMLString str);\n\n  /**\n   * Tests if this string starts with the specified prefix beginning\n   * a specified index.\n   *\n   * @param   prefix    the prefix.\n   * @param   toffset   where to begin looking in the string.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a prefix of the substring of this object starting\n   *          at index <code>toffset</code>; <code>false</code> otherwise.\n   *          The result is <code>false</code> if <code>toffset</code> is\n   *          negative or greater than the length of this\n   *          <code>String</code> object; otherwise the result is the same\n   *          as the result of the expression\n   *          <pre>\n   *          this.subString(toffset).startsWith(prefix)\n   *          </pre>\n   * @exception java.lang.NullPointerException if <code>prefix</code> is\n   *          <code>null</code>.\n   */\n  public abstract boolean startsWith(String prefix, int toffset);\n\n  /**\n   * Tests if this string starts with the specified prefix beginning\n   * a specified index.\n   *\n   * @param   prefix    the prefix.\n   * @param   toffset   where to begin looking in the string.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a prefix of the substring of this object starting\n   *          at index <code>toffset</code>; <code>false</code> otherwise.\n   *          The result is <code>false</code> if <code>toffset</code> is\n   *          negative or greater than the length of this\n   *          <code>String</code> object; otherwise the result is the same\n   *          as the result of the expression\n   *          <pre>\n   *          this.subString(toffset).startsWith(prefix)\n   *          </pre>\n   * @exception java.lang.NullPointerException if <code>prefix</code> is\n   *          <code>null</code>.\n   */\n  public abstract boolean startsWith(XMLString prefix, int toffset);\n\n  /**\n   * Tests if this string starts with the specified prefix.\n   *\n   * @param   prefix   the prefix.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a prefix of the character sequence represented by\n   *          this string; <code>false</code> otherwise.\n   *          Note also that <code>true</code> will be returned if the\n   *          argument is an empty string or is equal to this\n   *          <code>String</code> object as determined by the\n   *          {@link #equals(Object)} method.\n   * @exception java.lang.NullPointerException if <code>prefix</code> is\n   *          <code>null</code>.\n   * @since   JDK1. 0\n   */\n  public abstract boolean startsWith(String prefix);\n\n  /**\n   * Tests if this string starts with the specified prefix.\n   *\n   * @param   prefix   the prefix.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a prefix of the character sequence represented by\n   *          this string; <code>false</code> otherwise.\n   *          Note also that <code>true</code> will be returned if the\n   *          argument is an empty string or is equal to this\n   *          <code>String</code> object as determined by the\n   *          {@link #equals(Object)} method.\n   * @exception java.lang.NullPointerException if <code>prefix</code> is\n   *          <code>null</code>.\n   * @since   JDK1. 0\n   */\n  public abstract boolean startsWith(XMLString prefix);\n\n  /**\n   * Tests if this string ends with the specified suffix.\n   *\n   * @param   suffix   the suffix.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a suffix of the character sequence represented by\n   *          this object; <code>false</code> otherwise. Note that the\n   *          result will be <code>true</code> if the argument is the\n   *          empty string or is equal to this <code>String</code> object\n   *          as determined by the {@link #equals(Object)} method.\n   * @exception java.lang.NullPointerException if <code>suffix</code> is\n   *          <code>null</code>.\n   */\n  public abstract boolean endsWith(String suffix);\n\n  /**\n   * Returns a hashcode for this string. The hashcode for a\n   * <code>String</code> object is computed as\n   * <blockquote><pre>\n   * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]\n   * </pre></blockquote>\n   * using <code>int</code> arithmetic, where <code>s[i]</code> is the\n   * <i>i</i>th character of the string, <code>n</code> is the length of\n   * the string, and <code>^</code> indicates exponentiation.\n   * (The hash value of the empty string is zero.)\n   *\n   * @return  a hash code value for this object.\n   */\n  public abstract int hashCode();\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified character. If a character with value <code>ch</code> occurs\n   * in the character sequence represented by this <code>String</code>\n   * object, then the index of the first such occurrence is returned --\n   * that is, the smallest value <i>k</i> such that:\n   * <blockquote><pre>\n   * this.charAt(<i>k</i>) == ch\n   * </pre></blockquote>\n   * is <code>true</code>. If no such character occurs in this string,\n   * then <code>-1</code> is returned.\n   *\n   * @param   ch   a character.\n   * @return  the index of the first occurrence of the character in the\n   *          character sequence represented by this object, or\n   *          <code>-1</code> if the character does not occur.\n   */\n  public abstract int indexOf(int ch);\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified character, starting the search at the specified index.\n   * <p>\n   * If a character with value <code>ch</code> occurs in the character\n   * sequence represented by this <code>String</code> object at an index\n   * no smaller than <code>fromIndex</code>, then the index of the first\n   * such occurrence is returned--that is, the smallest value <i>k</i>\n   * such that:\n   * <blockquote><pre>\n   * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)\n   * </pre></blockquote>\n   * is true. If no such character occurs in this string at or after\n   * position <code>fromIndex</code>, then <code>-1</code> is returned.\n   * <p>\n   * There is no restriction on the value of <code>fromIndex</code>. If it\n   * is negative, it has the same effect as if it were zero: this entire\n   * string may be searched. If it is greater than the length of this\n   * string, it has the same effect as if it were equal to the length of\n   * this string: <code>-1</code> is returned.\n   *\n   * @param   ch          a character.\n   * @param   fromIndex   the index to start the search from.\n   * @return  the index of the first occurrence of the character in the\n   *          character sequence represented by this object that is greater\n   *          than or equal to <code>fromIndex</code>, or <code>-1</code>\n   *          if the character does not occur.\n   */\n  public abstract int indexOf(int ch, int fromIndex);\n\n  /**\n   * Returns the index within this string of the last occurrence of the\n   * specified character. That is, the index returned is the largest\n   * value <i>k</i> such that:\n   * <blockquote><pre>\n   * this.charAt(<i>k</i>) == ch\n   * </pre></blockquote>\n   * is true.\n   * The String is searched backwards starting at the last character.\n   *\n   * @param   ch   a character.\n   * @return  the index of the last occurrence of the character in the\n   *          character sequence represented by this object, or\n   *          <code>-1</code> if the character does not occur.\n   */\n  public abstract int lastIndexOf(int ch);\n\n  /**\n   * Returns the index within this string of the last occurrence of the\n   * specified character, searching backward starting at the specified\n   * index. That is, the index returned is the largest value <i>k</i>\n   * such that:\n   * <blockquote><pre>\n   * this.charAt(k) == ch) && (k <= fromIndex)\n   * </pre></blockquote>\n   * is true.\n   *\n   * @param   ch          a character.\n   * @param   fromIndex   the index to start the search from. There is no\n   *          restriction on the value of <code>fromIndex</code>. If it is\n   *          greater than or equal to the length of this string, it has\n   *          the same effect as if it were equal to one less than the\n   *          length of this string: this entire string may be searched.\n   *          If it is negative, it has the same effect as if it were -1:\n   *          -1 is returned.\n   * @return  the index of the last occurrence of the character in the\n   *          character sequence represented by this object that is less\n   *          than or equal to <code>fromIndex</code>, or <code>-1</code>\n   *          if the character does not occur before that point.\n   */\n  public abstract int lastIndexOf(int ch, int fromIndex);\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified substring. The integer returned is the smallest value\n   * <i>k</i> such that:\n   * <blockquote><pre>\n   * this.startsWith(str, <i>k</i>)\n   * </pre></blockquote>\n   * is <code>true</code>.\n   *\n   * @param   str   any string.\n   * @return  if the string argument occurs as a substring within this\n   *          object, then the index of the first character of the first\n   *          such substring is returned; if it does not occur as a\n   *          substring, <code>-1</code> is returned.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public abstract int indexOf(String str);\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified substring. The integer returned is the smallest value\n   * <i>k</i> such that:\n   * <blockquote><pre>\n   * this.startsWith(str, <i>k</i>)\n   * </pre></blockquote>\n   * is <code>true</code>.\n   *\n   * @param   str   any string.\n   * @return  if the string argument occurs as a substring within this\n   *          object, then the index of the first character of the first\n   *          such substring is returned; if it does not occur as a\n   *          substring, <code>-1</code> is returned.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public abstract int indexOf(XMLString str);\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified substring, starting at the specified index. The integer\n   * returned is the smallest value <i>k</i> such that:\n   * <blockquote><pre>\n   * this.startsWith(str, <i>k</i>) && (<i>k</i> >= fromIndex)\n   * </pre></blockquote>\n   * is <code>true</code>.\n   * <p>\n   * There is no restriction on the value of <code>fromIndex</code>. If\n   * it is negative, it has the same effect as if it were zero: this entire\n   * string may be searched. If it is greater than the length of this\n   * string, it has the same effect as if it were equal to the length of\n   * this string: <code>-1</code> is returned.\n   *\n   * @param   str         the substring to search for.\n   * @param   fromIndex   the index to start the search from.\n   * @return  If the string argument occurs as a substring within this\n   *          object at a starting index no smaller than\n   *          <code>fromIndex</code>, then the index of the first character\n   *          of the first such substring is returned. If it does not occur\n   *          as a substring starting at <code>fromIndex</code> or beyond,\n   *          <code>-1</code> is returned.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>\n   */\n  public abstract int indexOf(String str, int fromIndex);\n\n  /**\n   * Returns the index within this string of the rightmost occurrence\n   * of the specified substring.  The rightmost empty string \"\" is\n   * considered to occur at the index value <code>this.length()</code>.\n   * The returned index is the largest value <i>k</i> such that\n   * <blockquote><pre>\n   * this.startsWith(str, k)\n   * </pre></blockquote>\n   * is true.\n   *\n   * @param   str   the substring to search for.\n   * @return  if the string argument occurs one or more times as a substring\n   *          within this object, then the index of the first character of\n   *          the last such substring is returned. If it does not occur as\n   *          a substring, <code>-1</code> is returned.\n   * @exception java.lang.NullPointerException  if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public abstract int lastIndexOf(String str);\n\n  /**\n   * Returns the index within this string of the last occurrence of\n   * the specified substring.\n   *\n   * @param   str         the substring to search for.\n   * @param   fromIndex   the index to start the search from. There is no\n   *          restriction on the value of fromIndex. If it is greater than\n   *          the length of this string, it has the same effect as if it\n   *          were equal to the length of this string: this entire string\n   *          may be searched. If it is negative, it has the same effect\n   *          as if it were -1: -1 is returned.\n   * @return  If the string argument occurs one or more times as a substring\n   *          within this object at a starting index no greater than\n   *          <code>fromIndex</code>, then the index of the first character of\n   *          the last such substring is returned. If it does not occur as a\n   *          substring starting at <code>fromIndex</code> or earlier,\n   *          <code>-1</code> is returned.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public abstract int lastIndexOf(String str, int fromIndex);\n\n  /**\n   * Returns a new string that is a substring of this string. The\n   * substring begins with the character at the specified index and\n   * extends to the end of this string. <p>\n   * Examples:\n   * <blockquote><pre>\n   * \"unhappy\".substring(2) returns \"happy\"\n   * \"Harbison\".substring(3) returns \"bison\"\n   * \"emptiness\".substring(9) returns \"\" (an empty string)\n   * </pre></blockquote>\n   *\n   * @param      beginIndex   the beginning index, inclusive.\n   * @return     the specified substring.\n   * @exception  IndexOutOfBoundsException  if\n   *             <code>beginIndex</code> is negative or larger than the\n   *             length of this <code>String</code> object.\n   */\n  public abstract XMLString substring(int beginIndex);\n\n  /**\n   * Returns a new string that is a substring of this string. The\n   * substring begins at the specified <code>beginIndex</code> and\n   * extends to the character at index <code>endIndex - 1</code>.\n   * Thus the length of the substring is <code>endIndex-beginIndex</code>.\n   *\n   * @param      beginIndex   the beginning index, inclusive.\n   * @param      endIndex     the ending index, exclusive.\n   * @return     the specified substring.\n   * @exception  IndexOutOfBoundsException  if the\n   *             <code>beginIndex</code> is negative, or\n   *             <code>endIndex</code> is larger than the length of\n   *             this <code>String</code> object, or\n   *             <code>beginIndex</code> is larger than\n   *             <code>endIndex</code>.\n   */\n  public abstract XMLString substring(int beginIndex, int endIndex);\n\n  /**\n   * Concatenates the specified string to the end of this string.\n   *\n   * @param   str   the <code>String</code> that is concatenated to the end\n   *                of this <code>String</code>.\n   * @return  a string that represents the concatenation of this object's\n   *          characters followed by the string argument's characters.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public abstract XMLString concat(String str);\n\n  /**\n   * Converts all of the characters in this <code>String</code> to lower\n   * case using the rules of the given <code>Locale</code>.\n   *\n   * @param locale use the case transformation rules for this locale\n   * @return the String, converted to lowercase.\n   * @see     java.lang.Character#toLowerCase(char)\n   * @see     java.lang.String#toUpperCase(Locale)\n   */\n  public abstract XMLString toLowerCase(Locale locale);\n\n  /**\n   * Converts all of the characters in this <code>String</code> to lower\n   * case using the rules of the default locale, which is returned\n   * by <code>Locale.getDefault</code>.\n   * <p>\n   *\n   * @return  the string, converted to lowercase.\n   * @see     java.lang.Character#toLowerCase(char)\n   * @see     java.lang.String#toLowerCase(Locale)\n   */\n  public abstract XMLString toLowerCase();\n\n  /**\n   * Converts all of the characters in this <code>String</code> to upper\n   * case using the rules of the given locale.\n   * @param locale use the case transformation rules for this locale\n   * @return the String, converted to uppercase.\n   * @see     java.lang.Character#toUpperCase(char)\n   * @see     java.lang.String#toLowerCase(Locale)\n   */\n  public abstract XMLString toUpperCase(Locale locale);\n\n  /**\n   * Converts all of the characters in this <code>String</code> to upper\n   * case using the rules of the default locale, which is returned\n   * by <code>Locale.getDefault</code>.\n   *\n   * <p>\n   * If no character in this string has a different uppercase version,\n   * based on calling the <code>toUpperCase</code> method defined by\n   * <code>Character</code>, then the original string is returned.\n   * <p>\n   * Otherwise, this method creates a new <code>String</code> object\n   * representing a character sequence identical in length to the\n   * character sequence represented by this <code>String</code> object and\n   * with every character equal to the result of applying the method\n   * <code>Character.toUpperCase</code> to the corresponding character of\n   * this <code>String</code> object. <p>\n   * Examples:\n   * <blockquote><pre>\n   * \"Fahrvergnügen\".toUpperCase() returns \"FAHRVERGNÜGEN\"\n   * \"Visit Ljubinje!\".toUpperCase() returns \"VISIT LJUBINJE!\"\n   * </pre></blockquote>\n   *\n   * @return  the string, converted to uppercase.\n   * @see     java.lang.Character#toUpperCase(char)\n   * @see     java.lang.String#toUpperCase(Locale)\n   */\n  public abstract XMLString toUpperCase();\n\n  /**\n   * Removes white space from both ends of this string.\n   * <p>\n   * If this <code>String</code> object represents an empty character\n   * sequence, or the first and last characters of character sequence\n   * represented by this <code>String</code> object both have codes\n   * greater than <code>'&#92;u0020'</code> (the space character), then a\n   * reference to this <code>String</code> object is returned.\n   * <p>\n   * Otherwise, if there is no character with a code greater than\n   * <code>'&#92;u0020'</code> in the string, then a new\n   * <code>String</code> object representing an empty string is created\n   * and returned.\n   * <p>\n   * Otherwise, let <i>k</i> be the index of the first character in the\n   * string whose code is greater than <code>'&#92;u0020'</code>, and let\n   * <i>m</i> be the index of the last character in the string whose code\n   * is greater than <code>'&#92;u0020'</code>. A new <code>String</code>\n   * object is created, representing the substring of this string that\n   * begins with the character at index <i>k</i> and ends with the\n   * character at index <i>m</i>-that is, the result of\n   * <code>this.substring(<i>k</i>,&nbsp;<i>m</i>+1)</code>.\n   * <p>\n   * This method may be used to trim\n   * {@link Character#isSpace(char) whitespace} from the beginning and end\n   * of a string; in fact, it trims all ASCII control characters as well.\n   *\n   * @return  this string, with white space removed from the front and end.\n   */\n  public abstract XMLString trim();\n\n  /**\n   * This object (which is already a string!) is itself returned.\n   *\n   * @return  the string itself.\n   */\n  public abstract String toString();\n  \n  /**\n   * Tell if this object contains a java String object.\n   * \n   * @return true if this XMLString can return a string without creating one.\n   */\n  public abstract boolean hasString();\n  \n  /**\n   * Convert a string to a double -- Allowed input is in fixed\n   * notation ddd.fff.\n   *\n   * @return A double value representation of the string, or return Double.NaN \n   * if the string can not be converted.\n   */\n  public double toDouble();", "functions": [{"function_name": "dispatchCharactersEvents", "code": "  public abstract void dispatchCharactersEvents(org.xml.sax.ContentHandler ch)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dispatchAsComment", "code": "  public abstract void dispatchAsComment(org.xml.sax.ext.LexicalHandler lh)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixWhiteSpace", "code": "  public XMLString fixWhiteSpace(boolean trimHead,\n                                 boolean trimTail,\n                                 boolean doublePunctuationSpaces);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "length", "code": "  public abstract int length();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "charAt", "code": "  public abstract char charAt(int index);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getChars", "code": "  public abstract void getChars(int srcBegin, int srcEnd, char dst[],\n                                int dstBegin);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "equals", "code": "  public abstract boolean equals(XMLString anObject);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "equals", "code": "  public abstract boolean equals(Object anObject);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "equalsIgnoreCase", "code": "  public abstract boolean equalsIgnoreCase(String anotherString);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compareTo", "code": "  public abstract int compareTo(XMLString anotherString);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compareToIgnoreCase", "code": "  public abstract int compareToIgnoreCase(XMLString str);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startsWith", "code": "  public abstract boolean startsWith(String prefix, int toffset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startsWith", "code": "  public abstract boolean startsWith(XMLString prefix, int toffset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startsWith", "code": "  public abstract boolean startsWith(String prefix);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startsWith", "code": "  public abstract boolean startsWith(XMLString prefix);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endsWith", "code": "  public abstract boolean endsWith(String suffix);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hashCode", "code": "  public abstract int hashCode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "indexOf", "code": "  public abstract int indexOf(int ch);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "indexOf", "code": "  public abstract int indexOf(int ch, int fromIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "lastIndexOf", "code": "  public abstract int lastIndexOf(int ch);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "lastIndexOf", "code": "  public abstract int lastIndexOf(int ch, int fromIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "indexOf", "code": "  public abstract int indexOf(String str);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "indexOf", "code": "  public abstract int indexOf(XMLString str);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "indexOf", "code": "  public abstract int indexOf(String str, int fromIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "lastIndexOf", "code": "  public abstract int lastIndexOf(String str);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "lastIndexOf", "code": "  public abstract int lastIndexOf(String str, int fromIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "substring", "code": "  public abstract XMLString substring(int beginIndex);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "substring", "code": "  public abstract XMLString substring(int beginIndex, int endIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "concat", "code": "  public abstract XMLString concat(String str);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toLowerCase", "code": "  public abstract XMLString toLowerCase(Locale locale);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toLowerCase", "code": "  public abstract XMLString toLowerCase();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "toUpperCase", "code": "  public abstract XMLString toUpperCase(Locale locale);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toUpperCase", "code": "  public abstract XMLString toUpperCase();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "trim", "code": "  public abstract XMLString trim();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "toString", "code": "  public abstract String toString();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "hasString", "code": "  public abstract boolean hasString();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "toDouble", "code": "  public double toDouble();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "poi-2.5-5724", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/UnicodeString.java", "language": "java", "name": "org.apache.poi.hssf.record.UnicodeString", "code": "public class UnicodeString\n    extends Record\n    implements Comparable\n{\n    public final static short sid = 0xFFF;\n    private final int RICH_TEXT_BIT = 8;\n    private final int EXT_BIT = 4;\n\n    public UnicodeString()\n    {\n    }\n\n\n    public int hashCode()\n    {\n        int stringHash = 0;\n        if (field_3_string != null)\n            stringHash = field_3_string.hashCode();\n        return field_1_charCount + stringHash;\n    }\n\n    /**\n     * Our handling of equals is inconsistent with compareTo.  The trouble is because we don't truely understand\n     * rich text fields yet it's difficult to make a sound comparison.\n     *\n     * @param o     The object to compare.\n     * @return      true if the object is actually equal.\n     */\n    public boolean equals(Object o)\n    {\n        if ((o == null) || (o.getClass() != this.getClass()))\n        {\n            return false;\n        }\n        UnicodeString other = ( UnicodeString ) o;\n\n        return ((field_1_charCount == other.field_1_charCount)\n                && (field_2_optionflags == other.field_2_optionflags)\n                && field_3_string.equals(other.field_3_string));\n    }\n\n    /**\n     * construct a unicode string record and fill its fields, ID is ignored\n     * @param id - ignored\n     * @param size - size of the data\n     * @param data - the bytes of the string/fields\n     */\n\n    public UnicodeString(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * construct a unicode string from a string fragment + data\n     */\n\n    public UnicodeString(short id, short size, byte [] data, String prefix)\n    {\n        this(id, size, data);\n        field_3_string = prefix + field_3_string;\n        setCharCount();\n    }\n\n    /**\n     * NO OP\n     */\n\n    protected void validateSid(short id)\n    {\n\n    }\n\n    protected void fillFields(byte [] data, short size)\n    {\n        field_1_charCount   = LittleEndian.getShort(data, 0);\n        field_2_optionflags = data[ 2 ];\n        if ((field_2_optionflags & 1) == 0)\n        {\n            try {\n                field_3_string = new String(data, 3, getCharCount(), \n                                        StringUtil.getPreferredEncoding());\n            } catch (UnsupportedEncodingException e) {\n            \tString errorMessage = e.getMessage();\n            \t\n            \tif (errorMessage == null) {\n            \t\terrorMessage = e.toString();\n           \t}\n                throw new RuntimeException(errorMessage);\n            }\n        }\n        else\n        {\n            char[] array = new char[ getCharCount() ];\n\n            for (int j = 0; j < array.length; j++)\n            {\n                array[ j ] = ( char ) LittleEndian.getShort(data,\n                                                            3 + (j * 2));\n            }\n            field_3_string = new String(array);\n        }\n    }\n\n    /**\n     * get the number of characters in the string\n     *\n     *\n     * @return number of characters\n     *\n     */\n\n    public short getCharCount()\n    {\n        return field_1_charCount;\n    }\n\n    /**\n     * set the number of characters in the string\n     * @param cc - number of characters\n     */\n\n    public void setCharCount(short cc)\n    {\n        field_1_charCount = cc;\n    }\n\n    /**\n     * sets the number of characters to whaterver number of characters is in the string\n     * currently.  effectively setCharCount(getString.length()).\n     * @see #setString(String)\n     * @see #getString()\n     */\n\n    public void setCharCount()\n    {\n        field_1_charCount = ( short ) field_3_string.length();\n    }\n\n    /**\n     * get the option flags which among other things return if this is a 16-bit or\n     * 8 bit string\n     *\n     * @return optionflags bitmask\n     *\n     */\n\n    public byte getOptionFlags()\n    {\n        return field_2_optionflags;\n    }\n\n    /**\n     * set the option flags which among other things return if this is a 16-bit or\n     * 8 bit string\n     *\n     * @param of  optionflags bitmask\n     *\n     */\n\n    public void setOptionFlags(byte of)\n    {\n        field_2_optionflags = of;\n    }\n\n    /**\n     * get the actual string this contains as a java String object\n     *\n     *\n     * @return String\n     *\n     */\n\n    public String getString()\n    {\n        return field_3_string;\n    }\n\n    /**\n     * set the actual string this contains\n     * @param string  the text\n     */\n\n    public void setString(String string)\n    {\n        field_3_string = string;\n        if (getCharCount() < field_3_string.length())\n        {\n            setCharCount();\n        }\n    }\n\n    /**\n     * unlike the real records we return the same as \"getString()\" rather than debug info\n     * @see #getDebugInfo()\n     * @return String value of the record\n     */\n\n    public String toString()\n    {\n        return getString();\n    }\n\n    /**\n     * return a character representation of the fields of this record\n     *\n     *\n     * @return String of output for biffviewer etc.\n     *\n     */\n\n    public String getDebugInfo()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[UNICODESTRING]\\n\");\n        buffer.append(\"    .charcount       = \")\n            .append(Integer.toHexString(getCharCount())).append(\"\\n\");\n        buffer.append(\"    .optionflags     = \")\n            .append(Integer.toHexString(getOptionFlags())).append(\"\\n\");\n        buffer.append(\"    .string          = \").append(getString())\n            .append(\"\\n\");\n        buffer.append(\"[/UNICODESTRING]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        int charsize = 1;\n\n        if (getOptionFlags() == 1)\n        {\n            charsize = 2;\n        }\n\n        LittleEndian.putShort(data, 0 + offset, getCharCount());\n        data[ 2 + offset ] = getOptionFlags();\n\n        try {\n            String unicodeString = new\nString(getString().getBytes(\"Unicode\"),\"Unicode\");\n            if (getOptionFlags() == 0)\n            {\n                StringUtil.putCompressedUnicode(unicodeString, data, 0x3 +\noffset);\n            }\n            else\n            {\n                StringUtil.putUncompressedUnicode(unicodeString, data,\n                                                    0x3 + offset);\n            }\n        }\n        catch (Exception e) {\n            if (getOptionFlags() == 0)\n            {\n                StringUtil.putCompressedUnicode(getString(), data, 0x3 +\n                                                offset);\n            }\n            else\n            {\n                StringUtil.putUncompressedUnicode(getString(), data,\n                                                  0x3 + offset);\n            }\n        }\n        return getRecordSize();\n    }\n\n    private boolean isUncompressedUnicode()\n    {\n        return (getOptionFlags() & 0x01) == 1;\n    }\n\n    public int getRecordSize()\n    {\n        int charsize = isUncompressedUnicode() ? 2 : 1;\n        return 3 + (getString().length() * charsize);\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     * @param offset of the records data (provided a big array of the file)\n     */\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n    }\n\n    public int compareTo(Object obj)\n    {\n        UnicodeString str = ( UnicodeString ) obj;\n\n        return this.getString().compareTo(str.getString());\n    }\n\n    public boolean isRichText()\n    {\n        return (getOptionFlags() & RICH_TEXT_BIT) != 0;\n    }\n\n    int maxBrokenLength(final int proposedBrokenLength)\n    {\n        int rval = proposedBrokenLength;\n\n        if (isUncompressedUnicode())\n        {\n            int proposedStringLength = proposedBrokenLength - 3;\n\n            if ((proposedStringLength % 2) == 1)\n            {\n                proposedStringLength--;\n            }\n            rval = proposedStringLength + 3;\n        }\n        return rval;\n    }\n\n    public boolean isExtendedText()\n    {\n        return (getOptionFlags() & EXT_BIT) != 0;", "functions": [{"function_name": "hashCode", "code": "    public int hashCode()\n    {\n        int stringHash = 0;\n        if (field_3_string != null)\n            stringHash = field_3_string.hashCode();\n        return field_1_charCount + stringHash;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "equals", "code": "    public boolean equals(Object o)\n    {\n        if ((o == null) || (o.getClass() != this.getClass()))\n        {\n            return false;\n        }\n        UnicodeString other = ( UnicodeString ) o;\n\n        return ((field_1_charCount == other.field_1_charCount)\n                && (field_2_optionflags == other.field_2_optionflags)\n                && field_3_string.equals(other.field_3_string));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [5, 8], [3, 9], [6, 10], [6, 11], [8, 12], [8, 13], [9, 14], [10, 15], [11, 16], [10, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 5], [9, 3], [10, 6], [11, 6], [12, 8], [13, 8], [14, 9], [15, 10], [16, 11], [17, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "validateSid", "code": "    protected void validateSid(short id)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size)\n    {\n        field_1_charCount   = LittleEndian.getShort(data, 0);\n        field_2_optionflags = data[ 2 ];\n        if ((field_2_optionflags & 1) == 0)\n        {\n            try {\n                field_3_string = new String(data, 3, getCharCount(), \n                                        StringUtil.getPreferredEncoding());\n            } catch (UnsupportedEncodingException e) {\n            \tString errorMessage = e.getMessage();\n            \t\n            \tif (errorMessage == null) {\n            \t\terrorMessage = e.toString();\n           \t}\n                throw new RuntimeException(errorMessage);\n            }\n        }\n        else\n        {\n            char[] array = new char[ getCharCount() ];\n\n            for (int j = 0; j < array.length; j++)\n            {\n                array[ j ] = ( char ) LittleEndian.getShort(data,\n                                                            3 + (j * 2));\n            }\n            field_3_string = new String(array);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [4, 10], [4, 11], [6, 12], [1, 13], [7, 14], [9, 15], [11, 16], [12, 17], [13, 18], [15, 19], [15, 20], [15, 21], [9, 22], [5, 23], [7, 24], [7, 25], [8, 26], [19, 27], [20, 28], [22, 29], [28, 30], [21, 31], [29, 32], [29, 33], [29, 34], [24, 35], [20, 36], [35, 37], [36, 38], [37, 39], [37, 40], [39, 41], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 4], [11, 4], [12, 6], [13, 1], [14, 7], [15, 9], [16, 11], [17, 12], [18, 13], [19, 15], [20, 15], [21, 15], [22, 9], [23, 5], [24, 7], [25, 7], [26, 8], [27, 19], [28, 20], [29, 22], [30, 28], [31, 21], [32, 29], [33, 29], [34, 29], [35, 24], [36, 20], [37, 35], [38, 36], [39, 37], [40, 37], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "getCharCount", "code": "    public short getCharCount()\n    {\n        return field_1_charCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCharCount", "code": "    public void setCharCount(short cc)\n    {\n        field_1_charCount = cc;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCharCount", "code": "    public void setCharCount()\n    {\n        field_1_charCount = ( short ) field_3_string.length();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptionFlags", "code": "    public byte getOptionFlags()\n    {\n        return field_2_optionflags;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOptionFlags", "code": "    public void setOptionFlags(byte of)\n    {\n        field_2_optionflags = of;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getString", "code": "    public String getString()\n    {\n        return field_3_string;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setString", "code": "    public void setString(String string)\n    {\n        field_3_string = string;\n        if (getCharCount() < field_3_string.length())\n        {\n            setCharCount();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [3, 6], [1, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 3], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        return getString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDebugInfo", "code": "    public String getDebugInfo()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[UNICODESTRING]\\n\");\n        buffer.append(\"    .charcount       = \")\n            .append(Integer.toHexString(getCharCount())).append(\"\\n\");\n        buffer.append(\"    .optionflags     = \")\n            .append(Integer.toHexString(getOptionFlags())).append(\"\\n\");\n        buffer.append(\"    .string          = \").append(getString())\n            .append(\"\\n\");\n        buffer.append(\"[/UNICODESTRING]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [5, 11], [5, 12], [6, 13], [6, 14], [6, 15], [7, 16], [7, 17], [7, 18], [8, 19], [2, 20], [11, 21], [12, 22], [14, 23], [15, 24], [17, 25], [18, 26], [24, 27], [26, 28], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 5], [12, 5], [13, 6], [14, 6], [15, 6], [16, 7], [17, 7], [18, 7], [19, 8], [20, 2], [21, 11], [22, 12], [23, 14], [24, 15], [25, 17], [26, 18], [27, 24], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        int charsize = 1;\n\n        if (getOptionFlags() == 1)\n        {\n            charsize = 2;\n        }\n\n        LittleEndian.putShort(data, 0 + offset, getCharCount());\n        data[ 2 + offset ] = getOptionFlags();\n\n        try {\n            String unicodeString = new\nString(getString().getBytes(\"Unicode\"),\"Unicode\");\n            if (getOptionFlags() == 0)\n            {\n                StringUtil.putCompressedUnicode(unicodeString, data, 0x3 +\noffset);\n            }\n            else\n            {\n                StringUtil.putUncompressedUnicode(unicodeString, data,\n                                                    0x3 + offset);\n            }\n        }\n        catch (Exception e) {\n            if (getOptionFlags() == 0)\n            {\n                StringUtil.putCompressedUnicode(getString(), data, 0x3 +\n                                                offset);\n            }\n            else\n            {\n                StringUtil.putUncompressedUnicode(getString(), data,\n                                                  0x3 + offset);\n            }\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CATCH", "IF", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [0, 11], [0, 12], [3, 13], [8, 14], [9, 15], [11, 16], [12, 17], [12, 18], [13, 19], [13, 20], [4, 21], [14, 22], [15, 23], [15, 24], [10, 25], [18, 26], [3, 27], [22, 28], [22, 29], [9, 30], [9, 31], [25, 32], [25, 33], [11, 34], [27, 35], [14, 36], [14, 37], [30, 38], [31, 39], [33, 40], [34, 41], [36, 42], [36, 43], [37, 44], [37, 45], [38, 46], [39, 47], [40, 48], [42, 49], [44, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 0], [12, 0], [13, 3], [14, 8], [15, 9], [16, 11], [17, 12], [18, 12], [19, 13], [20, 13], [21, 4], [22, 14], [23, 15], [24, 15], [25, 10], [26, 18], [27, 3], [28, 22], [29, 22], [30, 9], [31, 9], [32, 25], [33, 25], [34, 11], [35, 27], [36, 14], [37, 14], [38, 30], [39, 31], [40, 33], [41, 34], [42, 36], [43, 36], [44, 37], [45, 37], [46, 38], [47, 39], [48, 40], [49, 42], [50, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "isUncompressedUnicode", "code": "    private boolean isUncompressedUnicode()\n    {\n        return (getOptionFlags() & 0x01) == 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        int charsize = isUncompressedUnicode() ? 2 : 1;\n        return 3 + (getString().length() * charsize);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [4, 7], [6, 8], [6, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 4], [8, 6], [9, 6], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "compareTo", "code": "    public int compareTo(Object obj)\n    {\n        UnicodeString str = ( UnicodeString ) obj;\n\n        return this.getString().compareTo(str.getString());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isRichText", "code": "    public boolean isRichText()\n    {\n        return (getOptionFlags() & RICH_TEXT_BIT) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "maxBrokenLength", "code": "    int maxBrokenLength(final int proposedBrokenLength)\n    {\n        int rval = proposedBrokenLength;\n\n        if (isUncompressedUnicode())\n        {\n            int proposedStringLength = proposedBrokenLength - 3;\n\n            if ((proposedStringLength % 2) == 1)\n            {\n                proposedStringLength--;\n            }\n            rval = proposedStringLength + 3;\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [6, 9], [8, 10], [9, 11], [9, 12], [7, 13], [10, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 6], [10, 8], [11, 9], [12, 9], [13, 7], [14, 10], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isExtendedText", "code": "    public boolean isExtendedText()\n    {\n        return (getOptionFlags() & EXT_BIT) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "UnicodeString", "code": "    public UnicodeString()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "UnicodeString", "code": "    public UnicodeString(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "UnicodeString", "code": "    public UnicodeString(short id, short size, byte [] data, String prefix)\n    {\n        this(id, size, data);\n        field_3_string = prefix + field_3_string;\n        setCharCount();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "camel-1.4-2048", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/ibatis/IBatisComponent.java", "language": "java", "name": "org.apache.camel.component.ibatis.IBatisComponent", "code": "public class IBatisComponent extends DefaultComponent {\n    public static final String DEFAULT_CONFIG_URI = \"SqlMapConfig.xml\";\n    private static final transient Log LOG = LogFactory.getLog(IBatisComponent.class);\n\n\n    private SqlMapClient sqlMapClient;\n    private Resource sqlMapResource;\n\n    public IBatisComponent() {\n    }\n\n    public IBatisComponent(SqlMapClient sqlMapClient) {\n        this.sqlMapClient = sqlMapClient;\n    }\n\n    public SqlMapClient getSqlMapClient() throws IOException {\n        if (sqlMapClient == null) {\n            sqlMapClient = createSqlMapClient();\n        }\n        return sqlMapClient;\n    }\n\n    public void setSqlMapClient(SqlMapClient sqlMapClient) {\n        this.sqlMapClient = sqlMapClient;\n    }\n\n    public Resource getSqlMapResource() {\n        if (sqlMapResource == null) {\n            sqlMapResource = new ClassPathResource(DEFAULT_CONFIG_URI);\n            LOG.debug(\"Defaulting to use the iBatis configuration from: \" + sqlMapResource);\n        }\n        return sqlMapResource;\n    }\n\n    public void setSqlMapResource(Resource sqlMapResource) {\n        this.sqlMapResource = sqlMapResource;\n    }\n\n    protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        return new IBatisEndpoint(uri, this, remaining);\n    }\n\n    protected SqlMapClient createSqlMapClient() throws IOException {\n        InputStream in = getSqlMapResource().getInputStream();\n        return SqlMapClientBuilder.buildSqlMapClient(in);", "functions": [{"function_name": "getSqlMapClient", "code": "    public SqlMapClient getSqlMapClient() throws IOException {\n        if (sqlMapClient == null) {\n            sqlMapClient = createSqlMapClient();\n        }\n        return sqlMapClient;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setSqlMapClient", "code": "    public void setSqlMapClient(SqlMapClient sqlMapClient) {\n        this.sqlMapClient = sqlMapClient;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSqlMapResource", "code": "    public Resource getSqlMapResource() {\n        if (sqlMapResource == null) {\n            sqlMapResource = new ClassPathResource(DEFAULT_CONFIG_URI);\n            LOG.debug(\"Defaulting to use the iBatis configuration from: \" + sqlMapResource);\n        }\n        return sqlMapResource;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setSqlMapResource", "code": "    public void setSqlMapResource(Resource sqlMapResource) {\n        this.sqlMapResource = sqlMapResource;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createEndpoint", "code": "    protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        return new IBatisEndpoint(uri, this, remaining);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createSqlMapClient", "code": "    protected SqlMapClient createSqlMapClient() throws IOException {\n        InputStream in = getSqlMapResource().getInputStream();\n        return SqlMapClientBuilder.buildSqlMapClient(in);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "IBatisComponent", "code": "    public IBatisComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IBatisComponent", "code": "    public IBatisComponent(SqlMapClient sqlMapClient) {\n        this.sqlMapClient = sqlMapClient;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.2-1990", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/CompositeProcessor.java", "language": "java", "name": "org.apache.camel.processor.CompositeProcessor", "code": "public class CompositeProcessor extends ServiceSupport implements Processor {\n    private final Collection<Processor> processors;\n\n    public CompositeProcessor(Collection<Processor> processors) {\n        this.processors = processors;\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        for (Processor processor : processors) {\n            processor.process(exchange);\n        }\n    }\n\n    @Override\n    public String toString() {\n        StringBuilder builder = new StringBuilder(\"[ \");\n        boolean first = true;\n        for (Processor processor : processors) {\n            if (first) {\n                first = false;\n            } else {\n                builder.append(\", \");\n            }\n            builder.append(processor.toString());\n        }\n        builder.append(\" ]\");\n        return builder.toString();\n    }\n\n    public Collection<Processor> getProcessors() {\n        return processors;\n    }\n\n    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processors);\n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processors);", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        for (Processor processor : processors) {\n            processor.process(exchange);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        StringBuilder builder = new StringBuilder(\"[ \");\n        boolean first = true;\n        for (Processor processor : processors) {\n            if (first) {\n                first = false;\n            } else {\n                builder.append(\", \");\n            }\n            builder.append(processor.toString());\n        }\n        builder.append(\" ]\");\n        return builder.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [6, 7], [2, 8], [3, 9], [4, 10], [2, 11], [10, 12], [11, 13], [8, 14], [8, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 6], [8, 2], [9, 3], [10, 4], [11, 2], [12, 10], [13, 11], [14, 8], [15, 8], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getProcessors", "code": "    public Collection<Processor> getProcessors() {\n        return processors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processors);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processors);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "CompositeProcessor", "code": "    public CompositeProcessor(Collection<Processor> processors) {\n        this.processors = processors;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6040", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/util/PaneInformation.java", "language": "java", "name": "org.apache.poi.hssf.util.PaneInformation", "code": "public class PaneInformation\n{\n\t/** Constant for active pane being the lower right*/\n    public static final byte PANE_LOWER_RIGHT = (byte)0;\n    /** Constant for active pane being the upper right*/\n    public static final byte PANE_UPPER_RIGHT = (byte)1;\n    /** Constant for active pane being the lower left*/\n    public static final byte PANE_LOWER_LEFT = (byte)2;\n    /** Constant for active pane being the upper left*/\n    public static final byte PANE_UPPER_LEFT = (byte)3;\n    \n\tprivate short x;\n\tprivate short y;\n\tprivate short topRow;\n\tprivate short leftColumn;\n\tprivate byte activePane;\n\tprivate boolean frozen = false;\n\t\n\tpublic PaneInformation(short x, short y, short top, short left, byte active, boolean frozen) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.topRow = top;\n\t\tthis.leftColumn = left;\n\t\tthis.activePane = active;\n\t\tthis.frozen = frozen;\n\t}\n\n\n\t/**\n\t * Returns the vertical position of the split.\n\t * @return 0 if there is no vertical spilt,\n\t *         or for a freeze pane the number of columns in the TOP pane,\n\t *         or for a split plane the position of the split in 1/20th of a point.\n\t */\n\tpublic short getVerticalSplitPosition() {\n\t  return x;\n\t}\n\t\n\t/**\n\t * Returns the horizontal position of the split.\n\t * @return 0 if there is no horizontal spilt,\n\t *         or for a freeze pane the number of rows in the LEFT pane,\n\t *         or for a split plane the position of the split in 1/20th of a point.\n\t */\n\tpublic short getHorizontalSplitPosition() {\n\t  return y;\n\t}\n\t\n\t/**\n\t * For a horizontal split returns the top row in the BOTTOM pane.\n\t * @return 0 if there is no horizontal split, or the top row of the bottom pane.\n\t */\n\tpublic short getHorizontalSplitTopRow() {\n\t  return topRow;\n\t}\n\t\n\t/**\n\t * For a vertical split returns the left column in the RIGHT pane.\n\t * @return 0 if there is no vertical split, or the left column in the RIGHT pane.\n\t */\n\tpublic short getVerticalSplitLeftColumn() {\n\t  return leftColumn;\n\t}\n\t\n\t/**\n\t * Returns the active pane\n\t * @see PANE_LOWER_RIGHT\n\t * @see PANE_UPPER_RIGHT\n\t * @see PANE_LOWER_LEFT\n\t * @see PANE_UPPER_LEFT\n\t * @return the active pane.\n\t */\n\tpublic byte getActivePane() {\n\t  return activePane;\n\t}\n\t\n\t/** Returns true if this is a Freeze pane, false if it is a split pane.\n\t */\n\tpublic boolean isFreezePane() {\n\t\treturn frozen;", "functions": [{"function_name": "getVerticalSplitPosition", "code": "\tpublic short getVerticalSplitPosition() {\n\t  return x;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHorizontalSplitPosition", "code": "\tpublic short getHorizontalSplitPosition() {\n\t  return y;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHorizontalSplitTopRow", "code": "\tpublic short getHorizontalSplitTopRow() {\n\t  return topRow;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getVerticalSplitLeftColumn", "code": "\tpublic short getVerticalSplitLeftColumn() {\n\t  return leftColumn;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getActivePane", "code": "\tpublic byte getActivePane() {\n\t  return activePane;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isFreezePane", "code": "\tpublic boolean isFreezePane() {\n\t\treturn frozen;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "PaneInformation", "code": "\tpublic PaneInformation(short x, short y, short top, short left, byte active, boolean frozen) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.topRow = top;\n\t\tthis.leftColumn = left;\n\t\tthis.activePane = active;\n\t\tthis.frozen = frozen;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "ant-1.5-435", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/bzip2/CBZip2InputStream.java", "language": "java", "name": "org.apache.tools.bzip2.CBZip2InputStream", "code": "public class CBZip2InputStream extends InputStream implements BZip2Constants {\n    private static void cadvise() {\n        System.out.println(\"CRC Error\");\n    }\n\n    private static void badBGLengths() {\n        cadvise();\n    }\n\n    private static void bitStreamEOF() {\n        cadvise();\n    }\n\n    private static void compressedStreamEOF() {\n        cadvise();\n    }\n\n    private void makeMaps() {\n        int i;\n        nInUse = 0;\n        for (i = 0; i < 256; i++) {\n            if (inUse[i]) {\n                seqToUnseq[nInUse] = (char) i;\n                unseqToSeq[i] = (char) nInUse;\n                nInUse++;\n            }\n        }\n    }\n\n    /*\n      index of the last char in the block, so\n      the block size == last + 1.\n    */\n    private int  last;\n\n    /*\n      index in zptr[] of original string after sorting.\n    */\n    private int  origPtr;\n\n    /*\n      always: in the range 0 .. 9.\n      The current block size is 100000 * this number.\n    */\n    private int blockSize100k;\n\n    private boolean blockRandomised;\n\n    private int bytesIn;\n    private int bytesOut;\n    private int bsBuff;\n    private int bsLive;\n    private CRC mCrc = new CRC();\n\n    private boolean[] inUse = new boolean[256];\n    private int nInUse;\n\n    private char[] seqToUnseq = new char[256];\n    private char[] unseqToSeq = new char[256];\n\n    private char[] selector = new char[MAX_SELECTORS];\n    private char[] selectorMtf = new char[MAX_SELECTORS];\n\n    private int[] tt;\n    private char[] ll8;\n\n    /*\n      freq table collected to save a pass over the data\n      during decompression.\n    */\n    private int unzftab[] = new int[256];\n\n    private int limit[][] = new int[N_GROUPS][MAX_ALPHA_SIZE];\n    private int base[][] = new int[N_GROUPS][MAX_ALPHA_SIZE];\n    private int perm[][] = new int[N_GROUPS][MAX_ALPHA_SIZE];\n    private int minLens[] = new int[N_GROUPS];\n\n    private InputStream bsStream;\n\n    private boolean streamEnd = false;\n\n    private int currentChar = -1;\n\n    private static final int START_BLOCK_STATE = 1;\n    private static final int RAND_PART_A_STATE = 2;\n    private static final int RAND_PART_B_STATE = 3;\n    private static final int RAND_PART_C_STATE = 4;\n    private static final int NO_RAND_PART_A_STATE = 5;\n    private static final int NO_RAND_PART_B_STATE = 6;\n    private static final int NO_RAND_PART_C_STATE = 7;\n\n    private int currentState = START_BLOCK_STATE;\n\n    private int storedBlockCRC, storedCombinedCRC;\n    private int computedBlockCRC, computedCombinedCRC;\n\n    int i2, count, chPrev, ch2;\n    int i, tPos;\n    int rNToGo = 0;\n    int rTPos  = 0;\n    int j2;\n    char z;\n\n    public CBZip2InputStream(InputStream zStream) {\n        ll8 = null;\n        tt = null;\n        bsSetStream(zStream);\n        initialize();\n        initBlock();\n        setupBlock();\n    }\n\n    public int read() {\n        if (streamEnd) {\n            return -1;\n        } else {\n            int retChar = currentChar;\n            switch(currentState) {\n            case START_BLOCK_STATE:\n                break;\n            case RAND_PART_A_STATE:\n                break;\n            case RAND_PART_B_STATE:\n                setupRandPartB();\n                break;\n            case RAND_PART_C_STATE:\n                setupRandPartC();\n                break;\n            case NO_RAND_PART_A_STATE:\n                break;\n            case NO_RAND_PART_B_STATE:\n                setupNoRandPartB();\n                break;\n            case NO_RAND_PART_C_STATE:\n                setupNoRandPartC();\n                break;\n            default:\n                break;\n            }\n            return retChar;\n        }\n    }\n\n    private void initialize() {\n        char magic3, magic4;\n        magic3 = bsGetUChar();\n        magic4 = bsGetUChar();\n        if (magic3 != 'h' || magic4 < '1' || magic4 > '9') {\n            bsFinishedWithStream();\n            streamEnd = true;\n            return;\n        }\n\n        setDecompressStructureSizes(magic4 - '0');\n        computedCombinedCRC = 0;\n    }\n\n    private void initBlock() {\n        char magic1, magic2, magic3, magic4;\n        char magic5, magic6;\n        magic1 = bsGetUChar();\n        magic2 = bsGetUChar();\n        magic3 = bsGetUChar();\n        magic4 = bsGetUChar();\n        magic5 = bsGetUChar();\n        magic6 = bsGetUChar();\n        if (magic1 == 0x17 && magic2 == 0x72 && magic3 == 0x45\n            && magic4 == 0x38 && magic5 == 0x50 && magic6 == 0x90) {\n            complete();\n            return;\n        }\n\n        if (magic1 != 0x31 || magic2 != 0x41 || magic3 != 0x59\n            || magic4 != 0x26 || magic5 != 0x53 || magic6 != 0x59) {\n            badBlockHeader();\n            streamEnd = true;\n            return;\n        }\n\n        storedBlockCRC = bsGetInt32();\n\n        if (bsR(1) == 1) {\n            blockRandomised = true;\n        } else {\n            blockRandomised = false;\n        }\n\n        getAndMoveToFrontDecode();\n\n        mCrc.initialiseCRC();\n        currentState = START_BLOCK_STATE;\n    }\n\n    private void endBlock() {\n        computedBlockCRC = mCrc.getFinalCRC();\n        /* A bad CRC is considered a fatal error. */\n        if (storedBlockCRC != computedBlockCRC) {\n            crcError();\n        }\n\n        computedCombinedCRC = (computedCombinedCRC << 1)\n            | (computedCombinedCRC >>> 31);\n        computedCombinedCRC ^= computedBlockCRC;\n    }\n\n    private void complete() {\n        storedCombinedCRC = bsGetInt32();\n        if (storedCombinedCRC != computedCombinedCRC) {\n            crcError();\n        }\n\n        bsFinishedWithStream();\n        streamEnd = true;\n    }\n\n    private static void blockOverrun() {\n        cadvise();\n    }\n\n    private static void badBlockHeader() {\n        cadvise();\n    }\n\n    private static void crcError() {\n        cadvise();\n    }\n\n    private void bsFinishedWithStream() {\n        try {\n            if (this.bsStream != null) {\n                if (this.bsStream != System.in) {\n                    this.bsStream.close();\n                    this.bsStream= null;\n                }\n            }\n        } catch (IOException ioe) {\n        }\n    }\n\n    private void bsSetStream(InputStream f) {\n        bsStream = f;\n        bsLive = 0;\n        bsBuff = 0;\n        bytesOut = 0;\n        bytesIn = 0;\n    }\n\n    private int bsR(int n) {\n        int v;\n        {\n            while (bsLive < n) {\n                int zzi;\n                char thech = 0;\n                try {\n                    thech = (char) bsStream.read();\n                } catch (IOException e) {\n                    compressedStreamEOF();\n                }\n                if (thech == -1) {\n                    compressedStreamEOF();\n                }\n                zzi = thech;\n                bsBuff = (bsBuff << 8) | (zzi & 0xff);\n                bsLive += 8;\n            }\n        }\n\n        v = (bsBuff >> (bsLive - n)) & ((1 << n) - 1);\n        bsLive -= n;\n        return v;\n    }\n\n    private char bsGetUChar() {\n        return (char) bsR(8);\n    }\n\n    private int bsGetint() {\n        int u = 0;\n        u = (u << 8) | bsR(8);\n        u = (u << 8) | bsR(8);\n        u = (u << 8) | bsR(8);\n        u = (u << 8) | bsR(8);\n        return u;\n    }\n\n    private int bsGetIntVS(int numBits) {\n        return (int) bsR(numBits);\n    }\n\n    private int bsGetInt32() {\n        return (int) bsGetint();\n    }\n\n    private void hbCreateDecodeTables(int[] limit, int[] base,\n                                      int[] perm, char[] length,\n                                      int minLen, int maxLen, int alphaSize) {\n        int pp, i, j, vec;\n\n        pp = 0;\n        for (i = minLen; i <= maxLen; i++) {\n            for (j = 0; j < alphaSize; j++) {\n                if (length[j] == i) {\n                    perm[pp] = j;\n                    pp++;\n                }\n            }\n        };\n\n        for (i = 0; i < MAX_CODE_LEN; i++) {\n            base[i] = 0;\n        }\n        for (i = 0; i < alphaSize; i++) {\n            base[length[i] + 1]++;\n        }\n\n        for (i = 1; i < MAX_CODE_LEN; i++) {\n            base[i] += base[i - 1];\n        }\n\n        for (i = 0; i < MAX_CODE_LEN; i++) {\n            limit[i] = 0;\n        }\n        vec = 0;\n\n        for (i = minLen; i <= maxLen; i++) {\n            vec += (base[i + 1] - base[i]);\n            limit[i] = vec - 1;\n            vec <<= 1;\n        }\n        for (i = minLen + 1; i <= maxLen; i++) {\n            base[i] = ((limit[i - 1] + 1) << 1) - base[i];\n        }\n    }\n\n    private void recvDecodingTables() {\n        char len[][] = new char[N_GROUPS][MAX_ALPHA_SIZE];\n        int i, j, t, nGroups, nSelectors, alphaSize;\n        int minLen, maxLen;\n        boolean[] inUse16 = new boolean[16];\n\n        /* Receive the mapping table */\n        for (i = 0; i < 16; i++) {\n            if (bsR(1) == 1) {\n                inUse16[i] = true;\n            } else {\n                inUse16[i] = false;\n            }\n        }\n\n        for (i = 0; i < 256; i++) {\n            inUse[i] = false;\n        }\n\n        for (i = 0; i < 16; i++) {\n            if (inUse16[i]) {\n                for (j = 0; j < 16; j++) {\n                    if (bsR(1) == 1) {\n                        inUse[i * 16 + j] = true;\n                    }\n                }\n            }\n        }\n\n        makeMaps();\n        alphaSize = nInUse + 2;\n\n        /* Now the selectors */\n        nGroups = bsR(3);\n        nSelectors = bsR(15);\n        for (i = 0; i < nSelectors; i++) {\n            j = 0;\n            while (bsR(1) == 1) {\n                j++;\n            }\n            selectorMtf[i] = (char) j;\n        }\n\n        /* Undo the MTF values for the selectors. */\n        {\n            char[] pos = new char[N_GROUPS];\n            char tmp, v;\n            for (v = 0; v < nGroups; v++) {\n                pos[v] = v;\n            }\n\n            for (i = 0; i < nSelectors; i++) {\n                v = selectorMtf[i];\n                tmp = pos[v];\n                while (v > 0) {\n                    pos[v] = pos[v - 1];\n                    v--;\n                }\n                pos[0] = tmp;\n                selector[i] = tmp;\n            }\n        }\n\n        /* Now the coding tables */\n        for (t = 0; t < nGroups; t++) {\n            int curr = bsR(5);\n            for (i = 0; i < alphaSize; i++) {\n                while (bsR(1) == 1) {\n                    if (bsR(1) == 0) {\n                        curr++;\n                    } else {\n                        curr--;\n                    }\n                }\n                len[t][i] = (char) curr;\n            }\n        }\n\n        /* Create the Huffman decoding tables */\n        for (t = 0; t < nGroups; t++) {\n            minLen = 32;\n            maxLen = 0;\n            for (i = 0; i < alphaSize; i++) {\n                if (len[t][i] > maxLen) {\n                    maxLen = len[t][i];\n                }\n                if (len[t][i] < minLen) {\n                    minLen = len[t][i];\n                }\n            }\n            hbCreateDecodeTables(limit[t], base[t], perm[t], len[t], minLen,\n                                 maxLen, alphaSize);\n            minLens[t] = minLen;\n        }\n    }\n\n    private void getAndMoveToFrontDecode() {\n        char[] yy = new char[256];\n        int i, j, nextSym, limitLast;\n        int EOB, groupNo, groupPos;\n\n        limitLast = baseBlockSize * blockSize100k;\n        origPtr = bsGetIntVS(24);\n\n        recvDecodingTables();\n        EOB = nInUse + 1;\n        groupNo = -1;\n        groupPos = 0;\n\n        /*\n          Setting up the unzftab entries here is not strictly\n          necessary, but it does save having to do it later\n          in a separate pass, and so saves a block's worth of\n          cache misses.\n        */\n        for (i = 0; i <= 255; i++) {\n            unzftab[i] = 0;\n        }\n\n        for (i = 0; i <= 255; i++) {\n            yy[i] = (char) i;\n        }\n\n        last = -1;\n\n        {\n            int zt, zn, zvec, zj;\n            if (groupPos == 0) {\n                groupNo++;\n                groupPos = G_SIZE;\n            }\n            groupPos--;\n            zt = selector[groupNo];\n            zn = minLens[zt];\n            zvec = bsR(zn);\n            while (zvec > limit[zt][zn]) {\n                zn++;\n                {\n                    {\n                        while (bsLive < 1) {\n                            int zzi;\n                            char thech = 0;\n                            try {\n                                thech = (char) bsStream.read();\n                            } catch (IOException e) {\n                                compressedStreamEOF();\n                            }\n                            if (thech == -1) {\n                                compressedStreamEOF();\n                            }\n                            zzi = thech;\n                            bsBuff = (bsBuff << 8) | (zzi & 0xff);\n                            bsLive += 8;\n                        }\n                    }\n                    zj = (bsBuff >> (bsLive - 1)) & 1;\n                    bsLive--;\n                }\n                zvec = (zvec << 1) | zj;\n            }\n            nextSym = perm[zt][zvec - base[zt][zn]];\n        }\n\n        while (true) {\n\n            if (nextSym == EOB) {\n                break;\n            }\n\n            if (nextSym == RUNA || nextSym == RUNB) {\n                char ch;\n                int s = -1;\n                int N = 1;\n                do {\n                    if (nextSym == RUNA) {\n                        s = s + (0 + 1) * N;\n                    } else if (nextSym == RUNB) {\n                        s = s + (1 + 1) * N;\n                           }\n                    N = N * 2;\n                    {\n                        int zt, zn, zvec, zj;\n                        if (groupPos == 0) {\n                            groupNo++;\n                            groupPos = G_SIZE;\n                        }\n                        groupPos--;\n                        zt = selector[groupNo];\n                        zn = minLens[zt];\n                        zvec = bsR(zn);\n                        while (zvec > limit[zt][zn]) {\n                            zn++;\n                            {\n                                {\n                                    while (bsLive < 1) {\n                                        int zzi;\n                                        char thech = 0;\n                                        try {\n                                            thech = (char) bsStream.read();\n                                        } catch (IOException e) {\n                                            compressedStreamEOF();\n                                        }\n                                        if (thech == -1) {\n                                            compressedStreamEOF();\n                                        }\n                                        zzi = thech;\n                                        bsBuff = (bsBuff << 8) | (zzi & 0xff);\n                                        bsLive += 8;\n                                    }\n                                }\n                                zj = (bsBuff >> (bsLive - 1)) & 1;\n                                bsLive--;\n                            }\n                            zvec = (zvec << 1) | zj;\n                        };\n                        nextSym = perm[zt][zvec - base[zt][zn]];\n                    }\n                } while (nextSym == RUNA || nextSym == RUNB);\n\n                s++;\n                ch = seqToUnseq[yy[0]];\n                unzftab[ch] += s;\n\n                while (s > 0) {\n                    last++;\n                    ll8[last] = ch;\n                    s--;\n                };\n\n                if (last >= limitLast) {\n                    blockOverrun();\n                }\n                continue;\n            } else {\n                char tmp;\n                last++;\n                if (last >= limitLast) {\n                    blockOverrun();\n                }\n\n                tmp = yy[nextSym - 1];\n                unzftab[seqToUnseq[tmp]]++;\n                ll8[last] = seqToUnseq[tmp];\n\n                /*\n                  This loop is hammered during decompression,\n                  hence the unrolling.\n\n                  for (j = nextSym-1; j > 0; j--) yy[j] = yy[j-1];\n                */\n\n                j = nextSym - 1;\n                for (; j > 3; j -= 4) {\n                    yy[j]     = yy[j - 1];\n                    yy[j - 1] = yy[j - 2];\n                    yy[j - 2] = yy[j - 3];\n                    yy[j - 3] = yy[j - 4];\n                }\n                for (; j > 0; j--) {\n                    yy[j] = yy[j - 1];\n                }\n\n                yy[0] = tmp;\n                {\n                    int zt, zn, zvec, zj;\n                    if (groupPos == 0) {\n                        groupNo++;\n                        groupPos = G_SIZE;\n                    }\n                    groupPos--;\n                    zt = selector[groupNo];\n                    zn = minLens[zt];\n                    zvec = bsR(zn);\n                    while (zvec > limit[zt][zn]) {\n                        zn++;\n                        {\n                            {\n                                while (bsLive < 1) {\n                                    int zzi;\n                                    char thech = 0;\n                                    try {\n                                        thech = (char) bsStream.read();\n                                    } catch (IOException e) {\n                                        compressedStreamEOF();\n                                    }\n                                    zzi = thech;\n                                    bsBuff = (bsBuff << 8) | (zzi & 0xff);\n                                    bsLive += 8;\n                                }\n                            }\n                            zj = (bsBuff >> (bsLive - 1)) & 1;\n                            bsLive--;\n                        }\n                        zvec = (zvec << 1) | zj;\n                    };\n                    nextSym = perm[zt][zvec - base[zt][zn]];\n                }\n                continue;\n            }\n        }\n    }\n\n    private void setupBlock() {\n        int[] cftab = new int[257];\n        char ch;\n\n        cftab[0] = 0;\n        for (i = 1; i <= 256; i++) {\n            cftab[i] = unzftab[i - 1];\n        }\n        for (i = 1; i <= 256; i++) {\n            cftab[i] += cftab[i - 1];\n        }\n\n        for (i = 0; i <= last; i++) {\n            ch = (char) ll8[i];\n            tt[cftab[ch]] = i;\n            cftab[ch]++;\n        }\n        cftab = null;\n\n        tPos = tt[origPtr];\n\n        count = 0;\n        i2 = 0;\n        ch2 = 256;   /* not a char and not EOF */\n\n        if (blockRandomised) {\n            rNToGo = 0;\n            rTPos = 0;\n            setupRandPartA();\n        } else {\n            setupNoRandPartA();\n        }\n    }\n\n    private void setupRandPartA() {\n        if (i2 <= last) {\n            chPrev = ch2;\n            ch2 = ll8[tPos];\n            tPos = tt[tPos];\n            if (rNToGo == 0) {\n                rNToGo = rNums[rTPos];\n                rTPos++;\n                if (rTPos == 512) {\n                    rTPos = 0;\n                }\n            }\n            rNToGo--;\n            ch2 ^= (int) ((rNToGo == 1) ? 1 : 0);\n            i2++;\n\n            currentChar = ch2;\n            currentState = RAND_PART_B_STATE;\n            mCrc.updateCRC(ch2);\n        } else {\n            endBlock();\n            initBlock();\n            setupBlock();\n        }\n    }\n\n    private void setupNoRandPartA() {\n        if (i2 <= last) {\n            chPrev = ch2;\n            ch2 = ll8[tPos];\n            tPos = tt[tPos];\n            i2++;\n\n            currentChar = ch2;\n            currentState = NO_RAND_PART_B_STATE;\n            mCrc.updateCRC(ch2);\n        } else {\n            endBlock();\n            initBlock();\n            setupBlock();\n        }\n    }\n\n    private void setupRandPartB() {\n        if (ch2 != chPrev) {\n            currentState = RAND_PART_A_STATE;\n            count = 1;\n            setupRandPartA();\n        } else {\n            count++;\n            if (count >= 4) {\n                z = ll8[tPos];\n                tPos = tt[tPos];\n                if (rNToGo == 0) {\n                    rNToGo = rNums[rTPos];\n                    rTPos++;\n                    if (rTPos == 512) {\n                        rTPos = 0;\n                    }\n                }\n                rNToGo--;\n                z ^= ((rNToGo == 1) ? 1 : 0);\n                j2 = 0;\n                currentState = RAND_PART_C_STATE;\n                setupRandPartC();\n            } else {\n                currentState = RAND_PART_A_STATE;\n                setupRandPartA();\n            }\n        }\n    }\n\n    private void setupRandPartC() {\n        if (j2 < (int) z) {\n            currentChar = ch2;\n            mCrc.updateCRC(ch2);\n            j2++;\n        } else {\n            currentState = RAND_PART_A_STATE;\n            i2++;\n            count = 0;\n            setupRandPartA();\n        }\n    }\n\n    private void setupNoRandPartB() {\n        if (ch2 != chPrev) {\n            currentState = NO_RAND_PART_A_STATE;\n            count = 1;\n            setupNoRandPartA();\n        } else {\n            count++;\n            if (count >= 4) {\n                z = ll8[tPos];\n                tPos = tt[tPos];\n                currentState = NO_RAND_PART_C_STATE;\n                j2 = 0;\n                setupNoRandPartC();\n            } else {\n                currentState = NO_RAND_PART_A_STATE;\n                setupNoRandPartA();\n            }\n        }\n    }\n\n    private void setupNoRandPartC() {\n        if (j2 < (int) z) {\n            currentChar = ch2;\n            mCrc.updateCRC(ch2);\n            j2++;\n        } else {\n            currentState = NO_RAND_PART_A_STATE;\n            i2++;\n            count = 0;\n            setupNoRandPartA();\n        }\n    }\n\n    private void setDecompressStructureSizes(int newSize100k) {\n        if (!(0 <= newSize100k && newSize100k <= 9 && 0 <= blockSize100k\n               && blockSize100k <= 9)) {\n        }\n\n        blockSize100k = newSize100k;\n\n        if (newSize100k == 0) {\n            return;\n        }\n\n        int n = baseBlockSize * newSize100k;\n        ll8 = new char[n];\n        tt = new int[n];", "functions": [{"function_name": "cadvise", "code": "    private static void cadvise() {\n        System.out.println(\"CRC Error\");", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "badBGLengths", "code": "    private static void badBGLengths() {\n        cadvise();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "bitStreamEOF", "code": "    private static void bitStreamEOF() {\n        cadvise();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compressedStreamEOF", "code": "    private static void compressedStreamEOF() {\n        cadvise();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "makeMaps", "code": "    private void makeMaps() {\n        int i;\n        nInUse = 0;\n        for (i = 0; i < 256; i++) {\n            if (inUse[i]) {\n                seqToUnseq[nInUse] = (char) i;\n                unseqToSeq[i] = (char) nInUse;\n                nInUse++;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [1, 6], [3, 7], [4, 8], [5, 9], [6, 10], [6, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 1], [7, 3], [8, 4], [9, 5], [10, 6], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "read", "code": "    public int read() {\n        if (streamEnd) {\n            return -1;\n        } else {\n            int retChar = currentChar;\n            switch(currentState) {\n            case START_BLOCK_STATE:\n                break;\n            case RAND_PART_A_STATE:\n                break;\n            case RAND_PART_B_STATE:\n                setupRandPartB();\n                break;\n            case RAND_PART_C_STATE:\n                setupRandPartC();\n                break;\n            case NO_RAND_PART_A_STATE:\n                break;\n            case NO_RAND_PART_B_STATE:\n                setupNoRandPartB();\n                break;\n            case NO_RAND_PART_C_STATE:\n                setupNoRandPartC();\n                break;\n            default:\n                break;\n            }\n            return retChar;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "SWITCH", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [5, 6], [3, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 5], [7, 3], [8, 3], [9, 3], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 3], [18, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "initialize", "code": "    private void initialize() {\n        char magic3, magic4;\n        magic3 = bsGetUChar();\n        magic4 = bsGetUChar();\n        if (magic3 != 'h' || magic4 < '1' || magic4 > '9') {\n            bsFinishedWithStream();\n            streamEnd = true;\n            return;\n        }\n\n        setDecompressStructureSizes(magic4 - '0');\n        computedCombinedCRC = 0;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [3, 8], [4, 9], [1, 10], [5, 11], [5, 12], [6, 13], [7, 14], [9, 15], [1, 16], [1, 17], [11, 18], [12, 19], [12, 20], [16, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 3], [9, 4], [10, 1], [11, 5], [12, 5], [13, 6], [14, 7], [15, 9], [16, 1], [17, 1], [18, 11], [19, 12], [20, 12], [21, 16], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "initBlock", "code": "    private void initBlock() {\n        char magic1, magic2, magic3, magic4;\n        char magic5, magic6;\n        magic1 = bsGetUChar();\n        magic2 = bsGetUChar();\n        magic3 = bsGetUChar();\n        magic4 = bsGetUChar();\n        magic5 = bsGetUChar();\n        magic6 = bsGetUChar();\n        if (magic1 == 0x17 && magic2 == 0x72 && magic3 == 0x45\n            && magic4 == 0x38 && magic5 == 0x50 && magic6 == 0x90) {\n            complete();\n            return;\n        }\n\n        if (magic1 != 0x31 || magic2 != 0x41 || magic3 != 0x59\n            || magic4 != 0x26 || magic5 != 0x53 || magic6 != 0x59) {\n            badBlockHeader();\n            streamEnd = true;\n            return;\n        }\n\n        storedBlockCRC = bsGetInt32();\n\n        if (bsR(1) == 1) {\n            blockRandomised = true;\n        } else {\n            blockRandomised = false;\n        }\n\n        getAndMoveToFrontDecode();\n\n        mCrc.initialiseCRC();\n        currentState = START_BLOCK_STATE;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [3, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [9, 19], [9, 20], [10, 21], [2, 22], [11, 23], [11, 24], [3, 25], [12, 26], [12, 27], [13, 28], [14, 29], [15, 30], [16, 31], [17, 32], [18, 33], [1, 34], [1, 35], [20, 36], [2, 37], [2, 38], [23, 39], [24, 40], [24, 41], [3, 42], [26, 43], [27, 44], [27, 45], [34, 46], [35, 47], [37, 48], [40, 49], [41, 50], [41, 51], [44, 52], [45, 53], [45, 54], [50, 55], [51, 56], [51, 57], [53, 58], [54, 59], [54, 60], [56, 61], [57, 62], [57, 63], [59, 64], [60, 65], [60, 66], [62, 67], [63, 68], [65, 69], [66, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 3], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 9], [20, 9], [21, 10], [22, 2], [23, 11], [24, 11], [25, 3], [26, 12], [27, 12], [28, 13], [29, 14], [30, 15], [31, 16], [32, 17], [33, 18], [34, 1], [35, 1], [36, 20], [37, 2], [38, 2], [39, 23], [40, 24], [41, 24], [42, 3], [43, 26], [44, 27], [45, 27], [46, 34], [47, 35], [48, 37], [49, 40], [50, 41], [51, 41], [52, 44], [53, 45], [54, 45], [55, 50], [56, 51], [57, 51], [58, 53], [59, 54], [60, 54], [61, 56], [62, 57], [63, 57], [64, 59], [65, 60], [66, 60], [67, 62], [68, 63], [69, 65], [70, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "endBlock", "code": "    private void endBlock() {\n        computedBlockCRC = mCrc.getFinalCRC();\n        /* A bad CRC is considered a fatal error. */\n        if (storedBlockCRC != computedBlockCRC) {\n            crcError();\n        }\n\n        computedCombinedCRC = (computedCombinedCRC << 1)\n            | (computedCombinedCRC >>> 31);\n        computedCombinedCRC ^= computedBlockCRC;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [5, 7], [6, 8], [6, 9], [1, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 5], [8, 6], [9, 6], [10, 1], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "complete", "code": "    private void complete() {\n        storedCombinedCRC = bsGetInt32();\n        if (storedCombinedCRC != computedCombinedCRC) {\n            crcError();\n        }\n\n        bsFinishedWithStream();\n        streamEnd = true;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [5, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 5], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "blockOverrun", "code": "    private static void blockOverrun() {\n        cadvise();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "badBlockHeader", "code": "    private static void badBlockHeader() {\n        cadvise();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "crcError", "code": "    private static void crcError() {\n        cadvise();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "bsFinishedWithStream", "code": "    private void bsFinishedWithStream() {\n        try {\n            if (this.bsStream != null) {\n                if (this.bsStream != System.in) {\n                    this.bsStream.close();\n                    this.bsStream= null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [8, 9], [5, 10], [1, 0], [2, 1], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 8], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "bsSetStream", "code": "    private void bsSetStream(InputStream f) {\n        bsStream = f;\n        bsLive = 0;\n        bsBuff = 0;\n        bytesOut = 0;\n        bytesIn = 0;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "bsR", "code": "    private int bsR(int n) {\n        int v;\n        {\n            while (bsLive < n) {\n                int zzi;\n                char thech = 0;\n                try {\n                    thech = (char) bsStream.read();\n                } catch (IOException e) {\n                    compressedStreamEOF();\n                }\n                if (thech == -1) {\n                    compressedStreamEOF();\n                }\n                zzi = thech;\n                bsBuff = (bsBuff << 8) | (zzi & 0xff);\n                bsLive += 8;\n            }\n        }\n\n        v = (bsBuff >> (bsLive - n)) & ((1 << n) - 1);\n        bsLive -= n;\n        return v;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "LOOP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [7, 9], [7, 10], [6, 11], [6, 12], [6, 13], [6, 14], [9, 15], [9, 16], [10, 17], [6, 18], [6, 19], [6, 20], [11, 21], [12, 22], [16, 23], [18, 24], [19, 25], [21, 26], [12, 27], [13, 28], [25, 29], [25, 30], [11, 31], [22, 32], [29, 33], [30, 34], [27, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 7], [10, 7], [11, 6], [12, 6], [13, 6], [14, 6], [15, 9], [16, 9], [17, 10], [18, 6], [19, 6], [20, 6], [21, 11], [22, 12], [23, 16], [24, 18], [25, 19], [26, 21], [27, 12], [28, 13], [29, 25], [30, 25], [31, 11], [32, 22], [33, 29], [34, 30], [35, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "bsGetUChar", "code": "    private char bsGetUChar() {\n        return (char) bsR(8);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "bsGetint", "code": "    private int bsGetint() {\n        int u = 0;\n        u = (u << 8) | bsR(8);\n        u = (u << 8) | bsR(8);\n        u = (u << 8) | bsR(8);\n        u = (u << 8) | bsR(8);\n        return u;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [5, 9], [6, 10], [2, 11], [7, 12], [7, 13], [8, 14], [8, 15], [9, 16], [9, 17], [10, 18], [10, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [18, 26], [19, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 5], [10, 6], [11, 2], [12, 7], [13, 7], [14, 8], [15, 8], [16, 9], [17, 9], [18, 10], [19, 10], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 18], [27, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "bsGetIntVS", "code": "    private int bsGetIntVS(int numBits) {\n        return (int) bsR(numBits);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "bsGetInt32", "code": "    private int bsGetInt32() {\n        return (int) bsGetint();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hbCreateDecodeTables", "code": "    private void hbCreateDecodeTables(int[] limit, int[] base,\n                                      int[] perm, char[] length,\n                                      int minLen, int maxLen, int alphaSize) {\n        int pp, i, j, vec;\n\n        pp = 0;\n        for (i = minLen; i <= maxLen; i++) {\n            for (j = 0; j < alphaSize; j++) {\n                if (length[j] == i) {\n                    perm[pp] = j;\n                    pp++;\n                }\n            }\n        };\n\n        for (i = 0; i < MAX_CODE_LEN; i++) {\n            base[i] = 0;\n        }\n        for (i = 0; i < alphaSize; i++) {\n            base[length[i] + 1]++;\n        }\n\n        for (i = 1; i < MAX_CODE_LEN; i++) {\n            base[i] += base[i - 1];\n        }\n\n        for (i = 0; i < MAX_CODE_LEN; i++) {\n            limit[i] = 0;\n        }\n        vec = 0;\n\n        for (i = minLen; i <= maxLen; i++) {\n            vec += (base[i + 1] - base[i]);\n            limit[i] = vec - 1;\n            vec <<= 1;\n        }\n        for (i = minLen + 1; i <= maxLen; i++) {\n            base[i] = ((limit[i - 1] + 1) << 1) - base[i];", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [1, 17], [2, 18], [2, 19], [0, 20], [3, 21], [3, 22], [4, 23], [4, 24], [5, 25], [5, 26], [6, 27], [6, 28], [7, 29], [7, 30], [0, 31], [17, 32], [20, 33], [22, 34], [24, 35], [26, 36], [28, 37], [7, 38], [31, 39], [1, 40], [32, 41], [2, 42], [2, 43], [2, 44], [3, 45], [4, 46], [6, 47], [38, 48], [38, 49], [40, 50], [42, 51], [43, 52], [44, 53], [45, 54], [47, 55], [38, 56], [49, 57], [50, 58], [52, 59], [5, 60], [56, 61], [58, 62], [58, 63], [46, 64], [60, 65], [63, 66], [53, 67], [64, 68], [56, 69], [67, 70], [63, 71], [71, 72], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 1], [18, 2], [19, 2], [20, 0], [21, 3], [22, 3], [23, 4], [24, 4], [25, 5], [26, 5], [27, 6], [28, 6], [29, 7], [30, 7], [31, 0], [32, 17], [33, 20], [34, 22], [35, 24], [36, 26], [37, 28], [38, 7], [39, 31], [40, 1], [41, 32], [42, 2], [43, 2], [44, 2], [45, 3], [46, 4], [47, 6], [48, 38], [49, 38], [50, 40], [51, 42], [52, 43], [53, 44], [54, 45], [55, 47], [56, 38], [57, 49], [58, 50], [59, 52], [60, 5], [61, 56], [62, 58], [63, 58], [64, 46], [65, 60], [66, 63], [67, 53], [68, 64], [69, 56], [70, 67], [71, 63], [72, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72]]}, {"function_name": "recvDecodingTables", "code": "    private void recvDecodingTables() {\n        char len[][] = new char[N_GROUPS][MAX_ALPHA_SIZE];\n        int i, j, t, nGroups, nSelectors, alphaSize;\n        int minLen, maxLen;\n        boolean[] inUse16 = new boolean[16];\n\n        /* Receive the mapping table */\n        for (i = 0; i < 16; i++) {\n            if (bsR(1) == 1) {\n                inUse16[i] = true;\n            } else {\n                inUse16[i] = false;\n            }\n        }\n\n        for (i = 0; i < 256; i++) {\n            inUse[i] = false;\n        }\n\n        for (i = 0; i < 16; i++) {\n            if (inUse16[i]) {\n                for (j = 0; j < 16; j++) {\n                    if (bsR(1) == 1) {\n                        inUse[i * 16 + j] = true;\n                    }\n                }\n            }\n        }\n\n        makeMaps();\n        alphaSize = nInUse + 2;\n\n        /* Now the selectors */\n        nGroups = bsR(3);\n        nSelectors = bsR(15);\n        for (i = 0; i < nSelectors; i++) {\n            j = 0;\n            while (bsR(1) == 1) {\n                j++;\n            }\n            selectorMtf[i] = (char) j;\n        }\n\n        /* Undo the MTF values for the selectors. */\n        {\n            char[] pos = new char[N_GROUPS];\n            char tmp, v;\n            for (v = 0; v < nGroups; v++) {\n                pos[v] = v;\n            }\n\n            for (i = 0; i < nSelectors; i++) {\n                v = selectorMtf[i];\n                tmp = pos[v];\n                while (v > 0) {\n                    pos[v] = pos[v - 1];\n                    v--;\n                }\n                pos[0] = tmp;\n                selector[i] = tmp;\n            }\n        }\n\n        /* Now the coding tables */\n        for (t = 0; t < nGroups; t++) {\n            int curr = bsR(5);\n            for (i = 0; i < alphaSize; i++) {\n                while (bsR(1) == 1) {\n                    if (bsR(1) == 0) {\n                        curr++;\n                    } else {\n                        curr--;\n                    }\n                }\n                len[t][i] = (char) curr;\n            }\n        }\n\n        /* Create the Huffman decoding tables */\n        for (t = 0; t < nGroups; t++) {\n            minLen = 32;\n            maxLen = 0;\n            for (i = 0; i < alphaSize; i++) {\n                if (len[t][i] > maxLen) {\n                    maxLen = len[t][i];\n                }\n                if (len[t][i] < minLen) {\n                    minLen = len[t][i];\n                }\n            }\n            hbCreateDecodeTables(limit[t], base[t], perm[t], len[t], minLen,\n                                 maxLen, alphaSize);\n            minLens[t] = minLen;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [2, 13], [2, 14], [0, 15], [0, 16], [0, 17], [0, 18], [3, 19], [3, 20], [0, 21], [0, 22], [0, 23], [0, 24], [4, 25], [4, 26], [5, 27], [5, 28], [6, 29], [6, 30], [1, 31], [12, 32], [2, 33], [2, 34], [14, 35], [15, 36], [15, 37], [16, 38], [16, 39], [3, 40], [20, 41], [21, 42], [22, 43], [23, 44], [4, 45], [25, 46], [26, 47], [27, 48], [28, 49], [6, 50], [29, 51], [30, 52], [1, 53], [1, 54], [31, 55], [31, 56], [1, 57], [1, 58], [33, 59], [33, 60], [15, 61], [37, 62], [39, 63], [3, 64], [40, 65], [3, 66], [42, 67], [43, 68], [44, 69], [5, 70], [50, 71], [7, 72], [31, 73], [31, 74], [56, 75], [57, 76], [58, 77], [33, 78], [60, 79], [34, 80], [15, 81], [15, 82], [61, 83], [15, 84], [15, 85], [16, 86], [65, 87], [65, 88], [66, 89], [45, 90], [70, 91], [71, 92], [71, 93], [73, 94], [74, 95], [33, 96], [78, 97], [80, 98], [83, 99], [88, 100], [90, 101], [90, 102], [50, 103], [50, 104], [93, 105], [78, 106], [97, 107], [97, 108], [61, 109], [90, 110], [101, 111], [102, 112], [103, 113], [104, 114], [73, 115], [74, 116], [106, 117], [108, 118], [82, 119], [110, 120], [117, 121], [117, 122], [120, 123], [120, 124], [122, 125], [109, 126], [110, 127], [124, 128], [126, 129], [127, 130], [127, 131], [131, 132], [132, 133], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 2], [14, 2], [15, 0], [16, 0], [17, 0], [18, 0], [19, 3], [20, 3], [21, 0], [22, 0], [23, 0], [24, 0], [25, 4], [26, 4], [27, 5], [28, 5], [29, 6], [30, 6], [31, 1], [32, 12], [33, 2], [34, 2], [35, 14], [36, 15], [37, 15], [38, 16], [39, 16], [40, 3], [41, 20], [42, 21], [43, 22], [44, 23], [45, 4], [46, 25], [47, 26], [48, 27], [49, 28], [50, 6], [51, 29], [52, 30], [53, 1], [54, 1], [55, 31], [56, 31], [57, 1], [58, 1], [59, 33], [60, 33], [61, 15], [62, 37], [63, 39], [64, 3], [65, 40], [66, 3], [67, 42], [68, 43], [69, 44], [70, 5], [71, 50], [72, 7], [73, 31], [74, 31], [75, 56], [76, 57], [77, 58], [78, 33], [79, 60], [80, 34], [81, 15], [82, 15], [83, 61], [84, 15], [85, 15], [86, 16], [87, 65], [88, 65], [89, 66], [90, 45], [91, 70], [92, 71], [93, 71], [94, 73], [95, 74], [96, 33], [97, 78], [98, 80], [99, 83], [100, 88], [101, 90], [102, 90], [103, 50], [104, 50], [105, 93], [106, 78], [107, 97], [108, 97], [109, 61], [110, 90], [111, 101], [112, 102], [113, 103], [114, 104], [115, 73], [116, 74], [117, 106], [118, 108], [119, 82], [120, 110], [121, 117], [122, 117], [123, 120], [124, 120], [125, 122], [126, 109], [127, 110], [128, 124], [129, 126], [130, 127], [131, 127], [132, 131], [133, 132], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133]]}, {"function_name": "getAndMoveToFrontDecode", "code": "    private void getAndMoveToFrontDecode() {\n        char[] yy = new char[256];\n        int i, j, nextSym, limitLast;\n        int EOB, groupNo, groupPos;\n\n        limitLast = baseBlockSize * blockSize100k;\n        origPtr = bsGetIntVS(24);\n\n        recvDecodingTables();\n        EOB = nInUse + 1;\n        groupNo = -1;\n        groupPos = 0;\n\n        /*\n          Setting up the unzftab entries here is not strictly\n          necessary, but it does save having to do it later\n          in a separate pass, and so saves a block's worth of\n          cache misses.\n        */\n        for (i = 0; i <= 255; i++) {\n            unzftab[i] = 0;\n        }\n\n        for (i = 0; i <= 255; i++) {\n            yy[i] = (char) i;\n        }\n\n        last = -1;\n\n        {\n            int zt, zn, zvec, zj;\n            if (groupPos == 0) {\n                groupNo++;\n                groupPos = G_SIZE;\n            }\n            groupPos--;\n            zt = selector[groupNo];\n            zn = minLens[zt];\n            zvec = bsR(zn);\n            while (zvec > limit[zt][zn]) {\n                zn++;\n                {\n                    {\n                        while (bsLive < 1) {\n                            int zzi;\n                            char thech = 0;\n                            try {\n                                thech = (char) bsStream.read();\n                            } catch (IOException e) {\n                                compressedStreamEOF();\n                            }\n                            if (thech == -1) {\n                                compressedStreamEOF();\n                            }\n                            zzi = thech;\n                            bsBuff = (bsBuff << 8) | (zzi & 0xff);\n                            bsLive += 8;\n                        }\n                    }\n                    zj = (bsBuff >> (bsLive - 1)) & 1;\n                    bsLive--;\n                }\n                zvec = (zvec << 1) | zj;\n            }\n            nextSym = perm[zt][zvec - base[zt][zn]];\n        }\n\n        while (true) {\n\n            if (nextSym == EOB) {\n                break;\n            }\n\n            if (nextSym == RUNA || nextSym == RUNB) {\n                char ch;\n                int s = -1;\n                int N = 1;\n                do {\n                    if (nextSym == RUNA) {\n                        s = s + (0 + 1) * N;\n                    } else if (nextSym == RUNB) {\n                        s = s + (1 + 1) * N;\n                           }\n                    N = N * 2;\n                    {\n                        int zt, zn, zvec, zj;\n                        if (groupPos == 0) {\n                            groupNo++;\n                            groupPos = G_SIZE;\n                        }\n                        groupPos--;\n                        zt = selector[groupNo];\n                        zn = minLens[zt];\n                        zvec = bsR(zn);\n                        while (zvec > limit[zt][zn]) {\n                            zn++;\n                            {\n                                {\n                                    while (bsLive < 1) {\n                                        int zzi;\n                                        char thech = 0;\n                                        try {\n                                            thech = (char) bsStream.read();\n                                        } catch (IOException e) {\n                                            compressedStreamEOF();\n                                        }\n                                        if (thech == -1) {\n                                            compressedStreamEOF();\n                                        }\n                                        zzi = thech;\n                                        bsBuff = (bsBuff << 8) | (zzi & 0xff);\n                                        bsLive += 8;\n                                    }\n                                }\n                                zj = (bsBuff >> (bsLive - 1)) & 1;\n                                bsLive--;\n                            }\n                            zvec = (zvec << 1) | zj;\n                        };\n                        nextSym = perm[zt][zvec - base[zt][zn]];\n                    }\n                } while (nextSym == RUNA || nextSym == RUNB);\n\n                s++;\n                ch = seqToUnseq[yy[0]];\n                unzftab[ch] += s;\n\n                while (s > 0) {\n                    last++;\n                    ll8[last] = ch;\n                    s--;\n                };\n\n                if (last >= limitLast) {\n                    blockOverrun();\n                }\n                continue;\n            } else {\n                char tmp;\n                last++;\n                if (last >= limitLast) {\n                    blockOverrun();\n                }\n\n                tmp = yy[nextSym - 1];\n                unzftab[seqToUnseq[tmp]]++;\n                ll8[last] = seqToUnseq[tmp];\n\n                /*\n                  This loop is hammered during decompression,\n                  hence the unrolling.\n\n                  for (j = nextSym-1; j > 0; j--) yy[j] = yy[j-1];\n                */\n\n                j = nextSym - 1;\n                for (; j > 3; j -= 4) {\n                    yy[j]     = yy[j - 1];\n                    yy[j - 1] = yy[j - 2];\n                    yy[j - 2] = yy[j - 3];\n                    yy[j - 3] = yy[j - 4];\n                }\n                for (; j > 0; j--) {\n                    yy[j] = yy[j - 1];\n                }\n\n                yy[0] = tmp;\n                {\n                    int zt, zn, zvec, zj;\n                    if (groupPos == 0) {\n                        groupNo++;\n                        groupPos = G_SIZE;\n                    }\n                    groupPos--;\n                    zt = selector[groupNo];\n                    zn = minLens[zt];\n                    zvec = bsR(zn);\n                    while (zvec > limit[zt][zn]) {\n                        zn++;\n                        {\n                            {\n                                while (bsLive < 1) {\n                                    int zzi;\n                                    char thech = 0;\n                                    try {\n                                        thech = (char) bsStream.read();\n                                    } catch (IOException e) {\n                                        compressedStreamEOF();\n                                    }\n                                    zzi = thech;\n                                    bsBuff = (bsBuff << 8) | (zzi & 0xff);\n                                    bsLive += 8;\n                                }\n                            }\n                            zj = (bsBuff >> (bsLive - 1)) & 1;\n                            bsLive--;\n                        }\n                        zvec = (zvec << 1) | zj;\n                    };\n                    nextSym = perm[zt][zvec - base[zt][zn]];\n                }\n                continue;", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "IF", "IF", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LOOP", "LOOP", "IF", "VAR_DECL", "BREAK_CONTINUE", "IF", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LOOP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LOOP", "IF", "VAR_DECL", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CATCH", "BINARY_OP", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LOOP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CATCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [2, 13], [3, 14], [3, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [1, 22], [1, 23], [0, 24], [8, 25], [0, 26], [0, 27], [0, 28], [9, 29], [11, 30], [12, 31], [13, 32], [14, 33], [15, 34], [16, 35], [17, 36], [18, 37], [20, 38], [21, 39], [22, 40], [23, 41], [26, 42], [29, 43], [2, 44], [3, 45], [37, 46], [38, 47], [6, 48], [22, 49], [22, 50], [22, 51], [22, 52], [22, 53], [22, 54], [22, 55], [22, 56], [22, 57], [22, 58], [22, 59], [22, 60], [40, 61], [40, 62], [23, 63], [8, 64], [9, 65], [45, 66], [22, 67], [22, 68], [22, 69], [22, 70], [50, 71], [51, 72], [51, 73], [22, 74], [22, 75], [22, 76], [52, 77], [55, 78], [56, 79], [22, 80], [22, 81], [57, 82], [24, 83], [64, 84], [8, 85], [8, 86], [22, 87], [67, 88], [22, 89], [22, 90], [22, 91], [68, 92], [71, 93], [72, 94], [73, 95], [74, 96], [79, 97], [57, 98], [82, 99], [82, 100], [58, 101], [59, 102], [84, 103], [85, 104], [86, 105], [89, 106], [92, 107], [50, 108], [51, 109], [51, 110], [51, 111], [51, 112], [96, 113], [52, 114], [55, 115], [56, 116], [57, 117], [57, 118], [57, 119], [57, 120], [98, 121], [98, 122], [103, 123], [104, 124], [104, 125], [86, 126], [86, 127], [86, 128], [86, 129], [105, 130], [67, 131], [68, 132], [70, 133], [76, 134], [57, 135], [117, 136], [57, 137], [57, 138], [57, 139], [118, 140], [120, 141], [121, 142], [125, 143], [86, 144], [86, 145], [86, 146], [126, 147], [127, 148], [87, 149], [131, 150], [67, 151], [67, 152], [134, 153], [137, 154], [140, 155], [141, 156], [98, 157], [143, 158], [144, 159], [145, 160], [147, 161], [127, 162], [128, 163], [150, 164], [151, 165], [152, 166], [108, 167], [109, 168], [109, 169], [110, 170], [110, 171], [111, 172], [111, 173], [112, 174], [81, 175], [117, 176], [118, 177], [121, 178], [157, 179], [160, 180], [160, 181], [126, 182], [148, 183], [164, 184], [165, 185], [165, 186], [152, 187], [152, 188], [152, 189], [166, 190], [167, 191], [168, 192], [169, 193], [170, 194], [171, 195], [172, 196], [173, 197], [174, 198], [135, 199], [176, 200], [117, 201], [117, 202], [178, 203], [179, 204], [180, 205], [181, 206], [162, 207], [186, 208], [152, 209], [152, 210], [152, 211], [187, 212], [200, 213], [201, 214], [202, 215], [203, 216], [204, 217], [208, 218], [209, 219], [210, 220], [187, 221], [188, 222], [213, 223], [214, 224], [214, 225], [202, 226], [202, 227], [202, 228], [202, 229], [215, 230], [216, 231], [217, 232], [217, 233], [220, 234], [220, 235], [212, 236], [225, 237], [202, 238], [202, 239], [202, 240], [226, 241], [227, 242], [231, 243], [231, 244], [234, 245], [235, 246], [221, 247], [237, 248], [238, 249], [239, 250], [241, 251], [227, 252], [228, 253], [250, 254], [250, 255], [226, 256], [242, 257], [254, 258], [255, 259], [252, 260], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 2], [14, 3], [15, 3], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 1], [23, 1], [24, 0], [25, 8], [26, 0], [27, 0], [28, 0], [29, 9], [30, 11], [31, 12], [32, 13], [33, 14], [34, 15], [35, 16], [36, 17], [37, 18], [38, 20], [39, 21], [40, 22], [41, 23], [42, 26], [43, 29], [44, 2], [45, 3], [46, 37], [47, 38], [48, 6], [49, 22], [50, 22], [51, 22], [52, 22], [53, 22], [54, 22], [55, 22], [56, 22], [57, 22], [58, 22], [59, 22], [60, 22], [61, 40], [62, 40], [63, 23], [64, 8], [65, 9], [66, 45], [67, 22], [68, 22], [69, 22], [70, 22], [71, 50], [72, 51], [73, 51], [74, 22], [75, 22], [76, 22], [77, 52], [78, 55], [79, 56], [80, 22], [81, 22], [82, 57], [83, 24], [84, 64], [85, 8], [86, 8], [87, 22], [88, 67], [89, 22], [90, 22], [91, 22], [92, 68], [93, 71], [94, 72], [95, 73], [96, 74], [97, 79], [98, 57], [99, 82], [100, 82], [101, 58], [102, 59], [103, 84], [104, 85], [105, 86], [106, 89], [107, 92], [108, 50], [109, 51], [110, 51], [111, 51], [112, 51], [113, 96], [114, 52], [115, 55], [116, 56], [117, 57], [118, 57], [119, 57], [120, 57], [121, 98], [122, 98], [123, 103], [124, 104], [125, 104], [126, 86], [127, 86], [128, 86], [129, 86], [130, 105], [131, 67], [132, 68], [133, 70], [134, 76], [135, 57], [136, 117], [137, 57], [138, 57], [139, 57], [140, 118], [141, 120], [142, 121], [143, 125], [144, 86], [145, 86], [146, 86], [147, 126], [148, 127], [149, 87], [150, 131], [151, 67], [152, 67], [153, 134], [154, 137], [155, 140], [156, 141], [157, 98], [158, 143], [159, 144], [160, 145], [161, 147], [162, 127], [163, 128], [164, 150], [165, 151], [166, 152], [167, 108], [168, 109], [169, 109], [170, 110], [171, 110], [172, 111], [173, 111], [174, 112], [175, 81], [176, 117], [177, 118], [178, 121], [179, 157], [180, 160], [181, 160], [182, 126], [183, 148], [184, 164], [185, 165], [186, 165], [187, 152], [188, 152], [189, 152], [190, 166], [191, 167], [192, 168], [193, 169], [194, 170], [195, 171], [196, 172], [197, 173], [198, 174], [199, 135], [200, 176], [201, 117], [202, 117], [203, 178], [204, 179], [205, 180], [206, 181], [207, 162], [208, 186], [209, 152], [210, 152], [211, 152], [212, 187], [213, 200], [214, 201], [215, 202], [216, 203], [217, 204], [218, 208], [219, 209], [220, 210], [221, 187], [222, 188], [223, 213], [224, 214], [225, 214], [226, 202], [227, 202], [228, 202], [229, 202], [230, 215], [231, 216], [232, 217], [233, 217], [234, 220], [235, 220], [236, 212], [237, 225], [238, 202], [239, 202], [240, 202], [241, 226], [242, 227], [243, 231], [244, 231], [245, 234], [246, 235], [247, 221], [248, 237], [249, 238], [250, 239], [251, 241], [252, 227], [253, 228], [254, 250], [255, 250], [256, 226], [257, 242], [258, 254], [259, 255], [260, 252], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260]]}, {"function_name": "setupBlock", "code": "    private void setupBlock() {\n        int[] cftab = new int[257];\n        char ch;\n\n        cftab[0] = 0;\n        for (i = 1; i <= 256; i++) {\n            cftab[i] = unzftab[i - 1];\n        }\n        for (i = 1; i <= 256; i++) {\n            cftab[i] += cftab[i - 1];\n        }\n\n        for (i = 0; i <= last; i++) {\n            ch = (char) ll8[i];\n            tt[cftab[ch]] = i;\n            cftab[ch]++;\n        }\n        cftab = null;\n\n        tPos = tt[origPtr];\n\n        count = 0;\n        i2 = 0;\n        ch2 = 256;   /* not a char and not EOF */\n\n        if (blockRandomised) {\n            rNToGo = 0;\n            rTPos = 0;\n            setupRandPartA();\n        } else {\n            setupNoRandPartA();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [2, 13], [3, 14], [3, 15], [4, 16], [4, 17], [0, 18], [7, 19], [8, 20], [9, 21], [11, 22], [13, 23], [14, 24], [15, 25], [16, 26], [17, 27], [18, 28], [1, 29], [1, 30], [1, 31], [1, 32], [2, 33], [2, 34], [3, 35], [4, 36], [6, 37], [31, 38], [32, 39], [18, 40], [35, 41], [36, 42], [41, 43], [42, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 2], [14, 3], [15, 3], [16, 4], [17, 4], [18, 0], [19, 7], [20, 8], [21, 9], [22, 11], [23, 13], [24, 14], [25, 15], [26, 16], [27, 17], [28, 18], [29, 1], [30, 1], [31, 1], [32, 1], [33, 2], [34, 2], [35, 3], [36, 4], [37, 6], [38, 31], [39, 32], [40, 18], [41, 35], [42, 36], [43, 41], [44, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "setupRandPartA", "code": "    private void setupRandPartA() {\n        if (i2 <= last) {\n            chPrev = ch2;\n            ch2 = ll8[tPos];\n            tPos = tt[tPos];\n            if (rNToGo == 0) {\n                rNToGo = rNums[rTPos];\n                rTPos++;\n                if (rTPos == 512) {\n                    rTPos = 0;\n                }\n            }\n            rNToGo--;\n            ch2 ^= (int) ((rNToGo == 1) ? 1 : 0);\n            i2++;\n\n            currentChar = ch2;\n            currentState = RAND_PART_B_STATE;\n            mCrc.updateCRC(ch2);\n        } else {\n            endBlock();\n            initBlock();\n            setupBlock();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [3, 11], [1, 12], [1, 13], [1, 14], [3, 15], [11, 16], [10, 17], [15, 18], [3, 19], [17, 20], [17, 21], [17, 22], [18, 23], [22, 24], [15, 25], [25, 26], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 3], [12, 1], [13, 1], [14, 1], [15, 3], [16, 11], [17, 10], [18, 15], [19, 3], [20, 17], [21, 17], [22, 17], [23, 18], [24, 22], [25, 15], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "setupNoRandPartA", "code": "    private void setupNoRandPartA() {\n        if (i2 <= last) {\n            chPrev = ch2;\n            ch2 = ll8[tPos];\n            tPos = tt[tPos];\n            i2++;\n\n            currentChar = ch2;\n            currentState = NO_RAND_PART_B_STATE;\n            mCrc.updateCRC(ch2);\n        } else {\n            endBlock();\n            initBlock();\n            setupBlock();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setupRandPartB", "code": "    private void setupRandPartB() {\n        if (ch2 != chPrev) {\n            currentState = RAND_PART_A_STATE;\n            count = 1;\n            setupRandPartA();\n        } else {\n            count++;\n            if (count >= 4) {\n                z = ll8[tPos];\n                tPos = tt[tPos];\n                if (rNToGo == 0) {\n                    rNToGo = rNums[rTPos];\n                    rTPos++;\n                    if (rTPos == 512) {\n                        rTPos = 0;\n                    }\n                }\n                rNToGo--;\n                z ^= ((rNToGo == 1) ? 1 : 0);\n                j2 = 0;\n                currentState = RAND_PART_C_STATE;\n                setupRandPartC();\n            } else {\n                currentState = RAND_PART_A_STATE;\n                setupRandPartA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 7], [3, 8], [4, 9], [6, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [8, 17], [3, 18], [3, 19], [15, 20], [16, 21], [8, 22], [17, 23], [21, 24], [21, 25], [21, 26], [22, 27], [8, 28], [26, 29], [27, 30], [22, 31], [31, 32], [1, 0], [2, 1], [3, 1], [4, 3], [5, 1], [6, 1], [7, 1], [8, 3], [9, 4], [10, 6], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 8], [18, 3], [19, 3], [20, 15], [21, 16], [22, 8], [23, 17], [24, 21], [25, 21], [26, 21], [27, 22], [28, 8], [29, 26], [30, 27], [31, 22], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "setupRandPartC", "code": "    private void setupRandPartC() {\n        if (j2 < (int) z) {\n            currentChar = ch2;\n            mCrc.updateCRC(ch2);\n            j2++;\n        } else {\n            currentState = RAND_PART_A_STATE;\n            i2++;\n            count = 0;\n            setupRandPartA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setupNoRandPartB", "code": "    private void setupNoRandPartB() {\n        if (ch2 != chPrev) {\n            currentState = NO_RAND_PART_A_STATE;\n            count = 1;\n            setupNoRandPartA();\n        } else {\n            count++;\n            if (count >= 4) {\n                z = ll8[tPos];\n                tPos = tt[tPos];\n                currentState = NO_RAND_PART_C_STATE;\n                j2 = 0;\n                setupNoRandPartC();\n            } else {\n                currentState = NO_RAND_PART_A_STATE;\n                setupNoRandPartA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 7], [4, 8], [6, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [13, 17], [1, 0], [2, 1], [3, 1], [4, 3], [5, 1], [6, 1], [7, 1], [8, 4], [9, 6], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setupNoRandPartC", "code": "    private void setupNoRandPartC() {\n        if (j2 < (int) z) {\n            currentChar = ch2;\n            mCrc.updateCRC(ch2);\n            j2++;\n        } else {\n            currentState = NO_RAND_PART_A_STATE;\n            i2++;\n            count = 0;\n            setupNoRandPartA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setDecompressStructureSizes", "code": "    private void setDecompressStructureSizes(int newSize100k) {\n        if (!(0 <= newSize100k && newSize100k <= 9 && 0 <= blockSize100k\n               && blockSize100k <= 9)) {\n        }\n\n        blockSize100k = newSize100k;\n\n        if (newSize100k == 0) {\n            return;\n        }\n\n        int n = baseBlockSize * newSize100k;\n        ll8 = new char[n];\n        tt = new int[n];", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "IF", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [3, 9], [1, 10], [2, 11], [7, 12], [9, 13], [9, 14], [13, 15], [14, 16], [14, 17], [16, 18], [17, 19], [17, 20], [19, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 3], [10, 1], [11, 2], [12, 7], [13, 9], [14, 9], [15, 13], [16, 14], [17, 14], [18, 16], [19, 17], [20, 17], [21, 19], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "CBZip2InputStream", "code": "    public CBZip2InputStream(InputStream zStream) {\n        ll8 = null;\n        tt = null;\n        bsSetStream(zStream);\n        initialize();\n        initBlock();\n        setupBlock();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "ant-1.7-973", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/comparators/Content.java", "language": "java", "name": "org.apache.tools.ant.types.resources.comparators.Content", "code": "public class Content extends ResourceComparator {\n\n    private boolean binary = true;\n\n    /**\n     * Set binary mode for this Content ResourceComparator. If this\n     * attribute is set to false, Resource content will be compared\n     * ignoring platform line-ending conventions.\n     * Default is <code>true</code>.\n     * @param b whether to compare content in binary mode.\n     */\n    public void setBinary(boolean b) {\n        binary = b;\n    }\n\n    /**\n     * Learn whether this Content ResourceComparator is operating in binary mode.\n     * @return boolean binary flag.\n     */\n    public boolean isBinary() {\n        return binary;\n    }\n\n    /**\n     * Compare two Resources by content.\n     * @param foo the first Resource.\n     * @param bar the second Resource.\n     * @return a negative integer, zero, or a positive integer as the first\n     *         argument is less than, equal to, or greater than the second.\n     * @throws BuildException if I/O errors occur.\n     * @see org.apache.tools.ant.util.ResourceUtils#compareContent(Resource, Resource, boolean).\n     */\n    protected int resourceCompare(Resource foo, Resource bar) {\n        try {\n            return ResourceUtils.compareContent(foo, bar, !binary);\n        } catch (IOException e) {\n            throw new BuildException(e);", "functions": [{"function_name": "setBinary", "code": "    public void setBinary(boolean b) {\n        binary = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isBinary", "code": "    public boolean isBinary() {\n        return binary;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "resourceCompare", "code": "    protected int resourceCompare(Resource foo, Resource bar) {\n        try {\n            return ResourceUtils.compareContent(foo, bar, !binary);\n        } catch (IOException e) {\n            throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ant-1.5-466", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/Expand.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Expand", "code": "public class Expand extends Task {\n    private boolean overwrite = true;\n    private Vector patternsets = new Vector();\n    private Vector filesets = new Vector();\n\n    /**\n     * Do the work.\n     *\n     * @exception BuildException Thrown in unrecoverable error.\n     */\n    public void execute() throws BuildException {\n        if (\"expand\".equals(taskType)) {\n            log(\"!! expand is deprecated. Use unzip instead. !!\");\n        }\n\n        if (source == null && filesets.size() == 0) {\n            throw new BuildException(\"src attribute and/or filesets must be \"\n                                     + \"specified\");\n        }\n\n        if (dest == null) {\n            throw new BuildException(\n                \"Dest attribute must be specified\");\n        }\n\n        if (dest.exists() && !dest.isDirectory()) {\n            throw new BuildException(\"Dest must be a directory.\", location);\n        }\n\n        FileUtils fileUtils = FileUtils.newFileUtils();\n\n        if (source != null) {\n            if (source.isDirectory()) {\n                throw new BuildException(\"Src must not be a directory.\" +\n                    \" Use nested filesets instead.\", location);\n            } else {\n                expandFile(fileUtils, source, dest);\n            }\n        }\n        if (filesets.size() > 0) {\n            for (int j = 0; j < filesets.size(); j++) {\n                FileSet fs = (FileSet) filesets.elementAt(j);\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n                File fromDir = fs.getDir(getProject());\n\n                String[] files = ds.getIncludedFiles();\n                for (int i = 0; i < files.length; ++i) {\n                    File file = new File(fromDir, files[i]);\n                    expandFile(fileUtils, file, dest);\n                }\n            }\n        }\n    }\n\n    /*\n     * This method is to be overridden by extending unarchival tasks.\n     */\n    protected void expandFile(FileUtils fileUtils, File srcF, File dir) {\n        log(\"Expanding: \" + srcF + \" into \" + dir, Project.MSG_INFO);\n        ZipInputStream zis = null;\n        try {\n            zis = new ZipInputStream(new FileInputStream(srcF));\n            ZipEntry ze = null;\n\n            while ((ze = zis.getNextEntry()) != null) {\n                extractFile(fileUtils, srcF, dir, zis,\n                            ze.getName(), new Date(ze.getTime()),\n                            ze.isDirectory());\n            }\n\n            log(\"expand complete\", Project.MSG_VERBOSE);\n        } catch (IOException ioe) {\n            throw new BuildException(\"Error while expanding \" + srcF.getPath(),\n                                     ioe);\n        } finally {\n            if (zis != null) {\n                try {\n                    zis.close();\n                } catch (IOException e) {}\n            }\n        }\n    }\n\n    protected void extractFile(FileUtils fileUtils, File srcF, File dir,\n                               InputStream compressedInputStream,\n                               String entryName,\n                               Date entryDate, boolean isDirectory)\n                               throws IOException {\n\n        if (patternsets != null && patternsets.size() > 0) {\n            String name = entryName;\n            boolean included = false;\n            for (int v = 0; v < patternsets.size(); v++) {\n                PatternSet p = (PatternSet) patternsets.elementAt(v);\n                String[] incls = p.getIncludePatterns(getProject());\n                if (incls == null || incls.length == 0) {\n                    incls = new String[] {\"**\"};\n                }\n                    \n                for (int w = 0; w < incls.length; w++) {\n                    included = DirectoryScanner.match(incls[w], name);\n                    if (included) {\n                        break;\n                    }\n                }\n                \n                if (!included) {\n                    break;\n                }\n                \n\n                String[] excls = p.getExcludePatterns(getProject());\n                if (excls != null) {\n                    for (int w = 0; w < excls.length; w++) {\n                        included = !(DirectoryScanner.match(excls[w], name));\n                        if (!included) {\n                            break;\n                        }\n                    }\n                }\n            }\n            if (!included) {\n                return;\n            }\n        }\n\n        File f = fileUtils.resolveFile(dir, entryName);\n        try {\n            if (!overwrite && f.exists()\n                && f.lastModified() >= entryDate.getTime()) {\n                log(\"Skipping \" + f + \" as it is up-to-date\",\n                    Project.MSG_DEBUG);\n                return;\n            }\n\n            log(\"expanding \" + entryName + \" to \" + f,\n                Project.MSG_VERBOSE);\n            File dirF = fileUtils.getParentFile(f);\n            if ( dirF != null ) {\n                dirF.mkdirs();\n            }\n\n            if (isDirectory) {\n                f.mkdirs();\n            } else {\n                byte[] buffer = new byte[1024];\n                int length = 0;\n                FileOutputStream fos = null;\n                try {\n                    fos = new FileOutputStream(f);\n\n                    while ((length =\n                            compressedInputStream.read(buffer)) >= 0) {\n                        fos.write(buffer, 0, length);\n                    }\n\n                    fos.close();\n                    fos = null;\n                } finally {\n                    if (fos != null) {\n                        try {\n                            fos.close();\n                        } catch (IOException e) {}\n                    }\n                }\n            }\n\n            fileUtils.setFileLastModified(f, entryDate.getTime());\n        } catch (FileNotFoundException ex) {\n            log(\"Unable to expand to file \" + f.getPath(), Project.MSG_WARN);\n        }\n\n    }\n\n    /**\n     * Set the destination directory. File will be unzipped into the\n     * destination directory.\n     *\n     * @param d Path to the directory.\n     */\n    public void setDest(File d) {\n        this.dest = d;\n    }\n\n    /**\n     * Set the path to zip-file.\n     *\n     * @param s Path to zip-file.\n     */\n    public void setSrc(File s) {\n        this.source = s;\n    }\n\n    /**\n     * Should we overwrite files in dest, even if they are newer than\n     * the corresponding entries in the archive?\n     */\n    public void setOverwrite(boolean b) {\n        overwrite = b;\n    }\n\n    /**\n     * Add a patternset\n     */\n    public void addPatternset(PatternSet set) {\n        patternsets.addElement(set);\n    }\n\n    /**\n     * Add a fileset\n     */\n    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "functions": [{"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (\"expand\".equals(taskType)) {\n            log(\"!! expand is deprecated. Use unzip instead. !!\");\n        }\n\n        if (source == null && filesets.size() == 0) {\n            throw new BuildException(\"src attribute and/or filesets must be \"\n                                     + \"specified\");\n        }\n\n        if (dest == null) {\n            throw new BuildException(\n                \"Dest attribute must be specified\");\n        }\n\n        if (dest.exists() && !dest.isDirectory()) {\n            throw new BuildException(\"Dest must be a directory.\", location);\n        }\n\n        FileUtils fileUtils = FileUtils.newFileUtils();\n\n        if (source != null) {\n            if (source.isDirectory()) {\n                throw new BuildException(\"Src must not be a directory.\" +\n                    \" Use nested filesets instead.\", location);\n            } else {\n                expandFile(fileUtils, source, dest);\n            }\n        }\n        if (filesets.size() > 0) {\n            for (int j = 0; j < filesets.size(); j++) {\n                FileSet fs = (FileSet) filesets.elementAt(j);\n                DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n                File fromDir = fs.getDir(getProject());\n\n                String[] files = ds.getIncludedFiles();\n                for (int i = 0; i < files.length; ++i) {\n                    File file = new File(fromDir, files[i]);\n                    expandFile(fileUtils, file, dest);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [5, 11], [6, 12], [7, 13], [1, 14], [8, 15], [8, 16], [2, 17], [9, 18], [3, 19], [4, 20], [10, 21], [10, 22], [5, 23], [11, 24], [6, 25], [12, 26], [12, 27], [13, 28], [14, 29], [17, 30], [20, 31], [23, 32], [25, 33], [26, 34], [26, 35], [27, 36], [7, 37], [14, 38], [14, 39], [14, 40], [14, 41], [14, 42], [29, 43], [17, 44], [31, 45], [32, 46], [33, 47], [37, 48], [38, 49], [14, 50], [17, 51], [44, 52], [47, 53], [47, 54], [38, 55], [39, 56], [40, 57], [41, 58], [52, 59], [38, 60], [38, 61], [57, 62], [58, 63], [42, 64], [59, 65], [59, 66], [55, 67], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 5], [12, 6], [13, 7], [14, 1], [15, 8], [16, 8], [17, 2], [18, 9], [19, 3], [20, 4], [21, 10], [22, 10], [23, 5], [24, 11], [25, 6], [26, 12], [27, 12], [28, 13], [29, 14], [30, 17], [31, 20], [32, 23], [33, 25], [34, 26], [35, 26], [36, 27], [37, 7], [38, 14], [39, 14], [40, 14], [41, 14], [42, 14], [43, 29], [44, 17], [45, 31], [46, 32], [47, 33], [48, 37], [49, 38], [50, 14], [51, 17], [52, 44], [53, 47], [54, 47], [55, 38], [56, 39], [57, 40], [58, 41], [59, 52], [60, 38], [61, 38], [62, 57], [63, 58], [64, 42], [65, 59], [66, 59], [67, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "expandFile", "code": "    protected void expandFile(FileUtils fileUtils, File srcF, File dir) {\n        log(\"Expanding: \" + srcF + \" into \" + dir, Project.MSG_INFO);\n        ZipInputStream zis = null;\n        try {\n            zis = new ZipInputStream(new FileInputStream(srcF));\n            ZipEntry ze = null;\n\n            while ((ze = zis.getNextEntry()) != null) {\n                extractFile(fileUtils, srcF, dir, zis,\n                            ze.getName(), new Date(ze.getTime()),\n                            ze.isDirectory());\n            }\n\n            log(\"expand complete\", Project.MSG_VERBOSE);\n        } catch (IOException ioe) {\n            throw new BuildException(\"Error while expanding \" + srcF.getPath(),\n                                     ioe);\n        } finally {\n            if (zis != null) {\n                try {\n                    zis.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "CATCH", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CATCH", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [0, 10], [6, 11], [7, 12], [1, 13], [8, 14], [1, 15], [2, 16], [10, 17], [6, 18], [11, 19], [12, 20], [13, 21], [14, 22], [14, 23], [9, 24], [15, 25], [17, 26], [18, 27], [20, 28], [8, 29], [23, 30], [25, 31], [26, 32], [26, 33], [18, 34], [28, 35], [28, 36], [29, 37], [29, 38], [29, 39], [33, 40], [38, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 0], [11, 6], [12, 7], [13, 1], [14, 8], [15, 1], [16, 2], [17, 10], [18, 6], [19, 11], [20, 12], [21, 13], [22, 14], [23, 14], [24, 9], [25, 15], [26, 17], [27, 18], [28, 20], [29, 8], [30, 23], [31, 25], [32, 26], [33, 26], [34, 18], [35, 28], [36, 28], [37, 29], [38, 29], [39, 29], [40, 33], [41, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "extractFile", "code": "    protected void extractFile(FileUtils fileUtils, File srcF, File dir,\n                               InputStream compressedInputStream,\n                               String entryName,\n                               Date entryDate, boolean isDirectory)\n                               throws IOException {\n\n        if (patternsets != null && patternsets.size() > 0) {\n            String name = entryName;\n            boolean included = false;\n            for (int v = 0; v < patternsets.size(); v++) {\n                PatternSet p = (PatternSet) patternsets.elementAt(v);\n                String[] incls = p.getIncludePatterns(getProject());\n                if (incls == null || incls.length == 0) {\n                    incls = new String[] {\"**\"};\n                }\n                    \n                for (int w = 0; w < incls.length; w++) {\n                    included = DirectoryScanner.match(incls[w], name);\n                    if (included) {\n                        break;\n                    }\n                }\n                \n                if (!included) {\n                    break;\n                }\n                \n\n                String[] excls = p.getExcludePatterns(getProject());\n                if (excls != null) {\n                    for (int w = 0; w < excls.length; w++) {\n                        included = !(DirectoryScanner.match(excls[w], name));\n                        if (!included) {\n                            break;\n                        }\n                    }\n                }\n            }\n            if (!included) {\n                return;\n            }\n        }\n\n        File f = fileUtils.resolveFile(dir, entryName);\n        try {\n            if (!overwrite && f.exists()\n                && f.lastModified() >= entryDate.getTime()) {\n                log(\"Skipping \" + f + \" as it is up-to-date\",\n                    Project.MSG_DEBUG);\n                return;\n            }\n\n            log(\"expanding \" + entryName + \" to \" + f,\n                Project.MSG_VERBOSE);\n            File dirF = fileUtils.getParentFile(f);\n            if ( dirF != null ) {\n                dirF.mkdirs();\n            }\n\n            if (isDirectory) {\n                f.mkdirs();\n            } else {\n                byte[] buffer = new byte[1024];\n                int length = 0;\n                FileOutputStream fos = null;\n                try {\n                    fos = new FileOutputStream(f);\n\n                    while ((length =\n                            compressedInputStream.read(buffer)) >= 0) {\n                        fos.write(buffer, 0, length);\n                    }\n\n                    fos.close();\n                    fos = null;\n                } finally {\n                    if (fos != null) {\n                        try {\n                            fos.close();\n                        } catch (IOException e) {}\n                    }\n                }\n            }\n\n            fileUtils.setFileLastModified(f, entryDate.getTime());\n        } catch (FileNotFoundException ex) {\n            log(\"Unable to expand to file \" + f.getPath(), Project.MSG_WARN);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "IF", "VAR_DECL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LOOP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [3, 16], [1, 17], [13, 18], [1, 19], [15, 20], [2, 21], [3, 22], [3, 23], [3, 24], [3, 25], [16, 26], [16, 27], [11, 28], [17, 29], [12, 30], [12, 31], [12, 32], [12, 33], [18, 34], [14, 35], [19, 36], [15, 37], [20, 38], [20, 39], [23, 40], [26, 41], [26, 42], [27, 43], [28, 44], [30, 45], [30, 46], [12, 47], [13, 48], [36, 49], [15, 50], [38, 51], [38, 52], [39, 53], [22, 54], [23, 55], [23, 56], [23, 57], [23, 58], [23, 59], [23, 60], [23, 61], [40, 62], [24, 63], [44, 64], [44, 65], [45, 66], [30, 67], [30, 68], [46, 69], [30, 70], [31, 71], [32, 72], [49, 73], [49, 74], [50, 75], [55, 76], [58, 77], [59, 78], [23, 79], [45, 80], [66, 81], [67, 82], [69, 83], [69, 84], [70, 85], [33, 86], [74, 87], [75, 88], [75, 89], [55, 90], [76, 91], [56, 92], [57, 93], [58, 94], [78, 95], [78, 96], [60, 97], [80, 98], [46, 99], [84, 100], [89, 101], [90, 102], [92, 103], [58, 104], [58, 105], [59, 106], [95, 107], [96, 108], [97, 109], [61, 110], [80, 111], [99, 112], [90, 113], [94, 114], [104, 115], [90, 116], [90, 117], [113, 118], [116, 119], [106, 120], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 3], [17, 1], [18, 13], [19, 1], [20, 15], [21, 2], [22, 3], [23, 3], [24, 3], [25, 3], [26, 16], [27, 16], [28, 11], [29, 17], [30, 12], [31, 12], [32, 12], [33, 12], [34, 18], [35, 14], [36, 19], [37, 15], [38, 20], [39, 20], [40, 23], [41, 26], [42, 26], [43, 27], [44, 28], [45, 30], [46, 30], [47, 12], [48, 13], [49, 36], [50, 15], [51, 38], [52, 38], [53, 39], [54, 22], [55, 23], [56, 23], [57, 23], [58, 23], [59, 23], [60, 23], [61, 23], [62, 40], [63, 24], [64, 44], [65, 44], [66, 45], [67, 30], [68, 30], [69, 46], [70, 30], [71, 31], [72, 32], [73, 49], [74, 49], [75, 50], [76, 55], [77, 58], [78, 59], [79, 23], [80, 45], [81, 66], [82, 67], [83, 69], [84, 69], [85, 70], [86, 33], [87, 74], [88, 75], [89, 75], [90, 55], [91, 76], [92, 56], [93, 57], [94, 58], [95, 78], [96, 78], [97, 60], [98, 80], [99, 46], [100, 84], [101, 89], [102, 90], [103, 92], [104, 58], [105, 58], [106, 59], [107, 95], [108, 96], [109, 97], [110, 61], [111, 80], [112, 99], [113, 90], [114, 94], [115, 104], [116, 90], [117, 90], [118, 113], [119, 116], [120, 106], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120]]}, {"function_name": "setDest", "code": "    public void setDest(File d) {\n        this.dest = d;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSrc", "code": "    public void setSrc(File s) {\n        this.source = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOverwrite", "code": "    public void setOverwrite(boolean b) {\n        overwrite = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addPatternset", "code": "    public void addPatternset(PatternSet set) {\n        patternsets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.4-114", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/tar/TarEntry.java", "language": "java", "name": "org.apache.tools.tar.TarEntry", "code": "public class TarEntry implements TarConstants {\n\n    private StringBuffer name;      /** The entry's name. */\n    private int          mode;      /** The entry's permission mode. */\n    private int          userId;    /** The entry's user id. */\n    private int          groupId;   /** The entry's group id. */\n    private long         size;      /** The entry's size. */\n    private long         modTime;   /** The entry's modification time. */\n    private int          checkSum;  /** The entry's checksum. */\n    private byte         linkFlag;  /** The entry's link flag. */\n    private StringBuffer linkName;  /** The entry's link name. */\n    private StringBuffer magic;     /** The entry's magic tag. */\n    private StringBuffer userName;  /** The entry's user name. */\n    private StringBuffer groupName; /** The entry's group name. */\n    private int          devMajor;  /** The entry's major device number. */\n    private int          devMinor;  /** The entry's minor device number. */\n    private File         file;      /** The entry's file reference */ \n\n    /** \n     * Construct an empty entry and prepares the header values.\n     */ \n    private TarEntry () {\n        this.magic = new StringBuffer(TMAGIC);\n        this.name = new StringBuffer();\n        this.linkName = new StringBuffer();\n    \n        String user = System.getProperty(\"user.name\", \"\");\n    \n        if (user.length() > 31) {\n            user = user.substring(0, 31);\n        } \n    \n        this.userId = 0;\n        this.groupId = 0;\n        this.userName = new StringBuffer(user);\n        this.groupName = new StringBuffer(\"\");\n        this.file = null;\n    }\n        \n    /** \n     * Construct an entry with only a name. This allows the programmer\n     * to construct the entry's header \"by hand\". File is set to null.\n     */ \n    public TarEntry(String name) {\n        this();\n        \n        boolean isDir = name.endsWith(\"/\");\n        \n        this.checkSum = 0;\n        this.devMajor = 0;\n        this.devMinor = 0;\n        this.name = new StringBuffer(name);\n        this.mode = isDir ? 040755 : 0100644;\n        this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n        this.userId = 0;\n        this.groupId = 0;\n        this.size = 0;\n        this.checkSum = 0;\n        this.modTime = (new Date()).getTime() / 1000;\n        this.linkName = new StringBuffer(\"\");\n        this.userName = new StringBuffer(\"\");\n        this.groupName = new StringBuffer(\"\");\n        this.devMajor = 0;\n        this.devMinor = 0;\n\n    }   \n        \n    /** \n     * Construct an entry with a name an a link flag.\n     */ \n    public TarEntry(String name, byte linkFlag) {\n        this(name);\n        this.linkFlag = linkFlag;\n    }   \n        \n    /** \n     * Construct an entry for a file. File is set to file, and the\n     * header is constructed from information from the file.\n     *  \n     * @param file The file that the entry represents.\n     */ \n    public TarEntry(File file) {\n        this();\n        \n        this.file = file;\n        \n        String name = file.getPath();\n        String osname = System.getProperty(\"os.name\");\n        \n        if (osname != null) {\n        \n            String Win32Prefix = \"Windows\";\n            String prefix = osname.substring(0, Win32Prefix.length());\n        \n            if (prefix.equalsIgnoreCase(Win32Prefix)) {\n                if (name.length() > 2) {\n                    char ch1 = name.charAt(0);\n                    char ch2 = name.charAt(1);\n        \n                    if (ch2 == ':' \n                            && ((ch1 >= 'a' && ch1 <= 'z') \n                                || (ch1 >= 'A' && ch1 <= 'Z'))) {\n                        name = name.substring(2);\n                    } \n                } \n            } \n        } \n        \n        name = name.replace(File.separatorChar, '/');\n        \n        while (name.startsWith(\"/\")) {\n            name = name.substring(1);\n        }\n        \n        this.linkName = new StringBuffer(\"\");\n        this.name = new StringBuffer(name);\n        \n        if (file.isDirectory()) {\n            this.mode = 040755;\n            this.linkFlag = LF_DIR;\n        \n            if (this.name.charAt(this.name.length() - 1) != '/') {\n                this.name.append(\"/\");\n            } \n        } else {\n            this.mode = 0100644;\n            this.linkFlag = LF_NORMAL;\n        } \n        \n        this.size = file.length();\n        this.modTime = file.lastModified() / 1000;\n        this.checkSum = 0;\n        this.devMajor = 0;\n        this.devMinor = 0;\n    }   \n        \n    /** \n     * Construct an entry from an archive's header bytes. File is set\n     * to null.\n     *  \n     * @param headerBuf The header bytes from a tar archive entry.\n     */ \n    public TarEntry(byte[] headerBuf) {\n        this();\n        this.parseTarHeader(headerBuf);\n    }   \n        \n    /** \n     * Determine if the two entries are equal. Equality is determined\n     * by the header names being equal.\n     *  \n     * @return it Entry to be checked for equality.\n     * @return True if the entries are equal.\n     */ \n    public boolean equals(TarEntry it) {\n        return this.getName().equals(it.getName());\n    }   \n        \n    /** \n     * Determine if the given entry is a descendant of this entry.\n     * Descendancy is determined by the name of the descendant\n     * starting with this entry's name.\n     *  \n     * @param desc Entry to be checked as a descendent of this.\n     * @return True if entry is a descendant of this.\n     */ \n    public boolean isDescendent(TarEntry desc) {\n        return desc.getName().startsWith(this.getName());\n    }   \n        \n    /** \n     * Get this entry's name.\n     *  \n     * @return This entry's name.\n     */ \n    public String getName() {\n        return this.name.toString();\n    }   \n        \n    /** \n     * Set this entry's name.\n     *  \n     * @param name This entry's new name.\n     */ \n    public void setName(String name) {\n        this.name = new StringBuffer(name);\n    }   \n\n    /**\n     * Set the mode for this entry\n     */\n    public void setMode(int mode) {\n        this.mode = mode;\n    }\n    \n        \n    /** \n     * Get this entry's user id.\n     *  \n     * @return This entry's user id.\n     */ \n    public int getUserId() {\n        return this.userId;\n    }   \n        \n    /** \n     * Set this entry's user id.\n     *  \n     * @param userId This entry's new user id.\n     */ \n    public void setUserId(int userId) {\n        this.userId = userId;\n    }   \n        \n    /** \n     * Get this entry's group id.\n     *  \n     * @return This entry's group id.\n     */ \n    public int getGroupId() {\n        return this.groupId;\n    }   \n        \n    /** \n     * Set this entry's group id.\n     *  \n     * @param groupId This entry's new group id.\n     */ \n    public void setGroupId(int groupId) {\n        this.groupId = groupId;\n    }   \n        \n    /** \n     * Get this entry's user name.\n     *  \n     * @return This entry's user name.\n     */ \n    public String getUserName() {\n        return this.userName.toString();\n    }   \n        \n    /** \n     * Set this entry's user name.\n     *  \n     * @param userName This entry's new user name.\n     */ \n    public void setUserName(String userName) {\n        this.userName = new StringBuffer(userName);\n    }   \n        \n    /** \n     * Get this entry's group name.\n     *  \n     * @return This entry's group name.\n     */ \n    public String getGroupName() {\n        return this.groupName.toString();\n    }   \n        \n    /** \n     * Set this entry's group name.\n     *  \n     * @param groupName This entry's new group name.\n     */ \n    public void setGroupName(String groupName) {\n        this.groupName = new StringBuffer(groupName);\n    }   \n        \n    /** \n     * Convenience method to set this entry's group and user ids.\n     *  \n     * @param userId This entry's new user id.\n     * @param groupId This entry's new group id.\n     */ \n    public void setIds(int userId, int groupId) {\n        this.setUserId(userId);\n        this.setGroupId(groupId);\n    }   \n        \n    /** \n     * Convenience method to set this entry's group and user names.\n     *  \n     * @param userName This entry's new user name.\n     * @param groupName This entry's new group name.\n     */ \n    public void setNames(String userName, String groupName) {\n        this.setUserName(userName);\n        this.setGroupName(groupName);\n    }   \n        \n    /** \n     * Set this entry's modification time. The parameter passed\n     * to this method is in \"Java time\".\n     *  \n     * @param time This entry's new modification time.\n     */ \n    public void setModTime(long time) {\n        this.modTime = time / 1000;\n    }   \n        \n    /** \n     * Set this entry's modification time.\n     *  \n     * @param time This entry's new modification time.\n     */ \n    public void setModTime(Date time) {\n        this.modTime = time.getTime() / 1000;\n    }   \n        \n    /** \n     * Set this entry's modification time.\n     *  \n     * @param time This entry's new modification time.\n     */ \n    public Date getModTime() {\n        return new Date(this.modTime * 1000);\n    }   \n        \n    /** \n     * Get this entry's file.\n     *  \n     * @return This entry's file.\n     */ \n    public File getFile() {\n        return this.file;\n    }   \n        \n    /** \n     * Get this entry's file size.\n     *  \n     * @return This entry's file size.\n     */ \n    public long getSize() {\n        return this.size;\n    }   \n        \n    /** \n     * Set this entry's file size.\n     *  \n     * @param size This entry's new file size.\n     */ \n    public void setSize(long size) {\n        this.size = size;\n    }   \n\n        \n    /**\n     * Indicate if this entry is a GNU long name block\n     *\n     * @return true if this is a long name extension provided by GNU tar\n     */\n    public boolean isGNULongNameEntry() {\n        return linkFlag == LF_GNUTYPE_LONGNAME &&\n               name.toString().equals(GNU_LONGLINK);\n    }               \n\n    /** \n     * Return whether or not this entry represents a directory.\n     *  \n     * @return True if this entry is a directory.\n     */ \n    public boolean isDirectory() {\n        if (this.file != null) {\n            return this.file.isDirectory();\n        } \n        \n        if (this.linkFlag == LF_DIR) {\n            return true;\n        } \n        \n        if (this.getName().endsWith(\"/\")) {\n            return true;\n        } \n        \n        return false;\n    }   \n        \n    /** \n     * If this entry represents a file, and the file is a directory, return\n     * an array of TarEntries for this entry's children.\n     *  \n     * @return An array of TarEntry's for this entry's children.\n     */ \n    public TarEntry[] getDirectoryEntries() {\n        if (this.file == null ||!this.file.isDirectory()) {\n            return new TarEntry[0];\n        } \n        \n        String[]   list = this.file.list();\n        TarEntry[] result = new TarEntry[list.length];\n        \n        for (int i = 0; i < list.length; ++i) {\n            result[i] = new TarEntry(new File(this.file, list[i]));\n        } \n        \n        return result;\n    }   \n        \n    /** \n     * Write an entry's header information to a header buffer.\n     *  \n     * @param outbuf The tar entry header buffer to fill in.\n     */ \n    public void writeEntryHeader(byte[] outbuf) {\n        int offset = 0;\n        \n        offset = TarUtils.getNameBytes(this.name, outbuf, offset, NAMELEN);\n        offset = TarUtils.getOctalBytes(this.mode, outbuf, offset, MODELEN);\n        offset = TarUtils.getOctalBytes(this.userId, outbuf, offset, UIDLEN);\n        offset = TarUtils.getOctalBytes(this.groupId, outbuf, offset, GIDLEN);\n        offset = TarUtils.getLongOctalBytes(this.size, outbuf, offset, SIZELEN);\n        offset = TarUtils.getLongOctalBytes(this.modTime, outbuf, offset, MODTIMELEN);\n        \n        int csOffset = offset;\n        \n        for (int c = 0; c < CHKSUMLEN; ++c) {\n            outbuf[offset++] = (byte) ' ';\n        }\n        \n        outbuf[offset++] = this.linkFlag;\n        offset = TarUtils.getNameBytes(this.linkName, outbuf, offset, NAMELEN);\n        offset = TarUtils.getNameBytes(this.magic, outbuf, offset, MAGICLEN);\n        offset = TarUtils.getNameBytes(this.userName, outbuf, offset, UNAMELEN);\n        offset = TarUtils.getNameBytes(this.groupName, outbuf, offset, GNAMELEN);\n        offset = TarUtils.getOctalBytes(this.devMajor, outbuf, offset, DEVLEN);\n        offset = TarUtils.getOctalBytes(this.devMinor, outbuf, offset, DEVLEN);\n        \n        while (offset < outbuf.length) {\n            outbuf[offset++] = 0;\n        }\n        \n        long checkSum = TarUtils.computeCheckSum(outbuf);\n        \n        TarUtils.getCheckSumOctalBytes(checkSum, outbuf, csOffset, CHKSUMLEN);\n    }   \n        \n    /** \n     * Parse an entry's header information from a header buffer.\n     *  \n     * @param header The tar entry header buffer to get information from.\n     */ \n    public void parseTarHeader(byte[] header) {\n        int offset = 0;\n        \n        this.name = TarUtils.parseName(header, offset, NAMELEN);  \n        offset += NAMELEN;\n        this.mode = (int) TarUtils.parseOctal(header, offset, MODELEN); \n        offset += MODELEN;\n        this.userId = (int) TarUtils.parseOctal(header, offset, UIDLEN);\n        offset += UIDLEN;\n        this.groupId = (int) TarUtils.parseOctal(header, offset, GIDLEN);\n        offset += GIDLEN;\n        this.size = TarUtils.parseOctal(header, offset, SIZELEN);\n        offset += SIZELEN;\n        this.modTime = TarUtils.parseOctal(header, offset, MODTIMELEN);\n        offset += MODTIMELEN;\n        this.checkSum = (int) TarUtils.parseOctal(header, offset, CHKSUMLEN);\n        offset += CHKSUMLEN;\n        this.linkFlag = header[offset++];\n        this.linkName = TarUtils.parseName(header, offset, NAMELEN);\n        offset += NAMELEN;\n        this.magic = TarUtils.parseName(header, offset, MAGICLEN);\n        offset += MAGICLEN;\n        this.userName = TarUtils.parseName(header, offset, UNAMELEN);\n        offset += UNAMELEN;\n        this.groupName = TarUtils.parseName(header, offset, GNAMELEN);\n        offset += GNAMELEN;\n        this.devMajor = (int) TarUtils.parseOctal(header, offset, DEVLEN);\n        offset += DEVLEN;\n        this.devMinor = (int) TarUtils.parseOctal(header, offset, DEVLEN);", "functions": [{"function_name": "equals", "code": "    public boolean equals(TarEntry it) {\n        return this.getName().equals(it.getName());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isDescendent", "code": "    public boolean isDescendent(TarEntry desc) {\n        return desc.getName().startsWith(this.getName());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getName", "code": "    public String getName() {\n        return this.name.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = new StringBuffer(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMode", "code": "    public void setMode(int mode) {\n        this.mode = mode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUserId", "code": "    public int getUserId() {\n        return this.userId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUserId", "code": "    public void setUserId(int userId) {\n        this.userId = userId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getGroupId", "code": "    public int getGroupId() {\n        return this.groupId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setGroupId", "code": "    public void setGroupId(int groupId) {\n        this.groupId = groupId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUserName", "code": "    public String getUserName() {\n        return this.userName.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUserName", "code": "    public void setUserName(String userName) {\n        this.userName = new StringBuffer(userName);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getGroupName", "code": "    public String getGroupName() {\n        return this.groupName.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setGroupName", "code": "    public void setGroupName(String groupName) {\n        this.groupName = new StringBuffer(groupName);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIds", "code": "    public void setIds(int userId, int groupId) {\n        this.setUserId(userId);\n        this.setGroupId(groupId);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setNames", "code": "    public void setNames(String userName, String groupName) {\n        this.setUserName(userName);\n        this.setGroupName(groupName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setModTime", "code": "    public void setModTime(long time) {\n        this.modTime = time / 1000;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setModTime", "code": "    public void setModTime(Date time) {\n        this.modTime = time.getTime() / 1000;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getModTime", "code": "    public Date getModTime() {\n        return new Date(this.modTime * 1000);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFile", "code": "    public File getFile() {\n        return this.file;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSize", "code": "    public long getSize() {\n        return this.size;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSize", "code": "    public void setSize(long size) {\n        this.size = size;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isGNULongNameEntry", "code": "    public boolean isGNULongNameEntry() {\n        return linkFlag == LF_GNUTYPE_LONGNAME &&\n               name.toString().equals(GNU_LONGLINK);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isDirectory", "code": "    public boolean isDirectory() {\n        if (this.file != null) {\n            return this.file.isDirectory();\n        } \n        \n        if (this.linkFlag == LF_DIR) {\n            return true;\n        } \n        \n        if (this.getName().endsWith(\"/\")) {\n            return true;\n        } \n        \n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [2, 8], [2, 9], [2, 10], [3, 11], [4, 12], [7, 13], [8, 14], [9, 15], [11, 16], [12, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 2], [9, 2], [10, 2], [11, 3], [12, 4], [13, 7], [14, 8], [15, 9], [16, 11], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getDirectoryEntries", "code": "    public TarEntry[] getDirectoryEntries() {\n        if (this.file == null ||!this.file.isDirectory()) {\n            return new TarEntry[0];\n        } \n        \n        String[]   list = this.file.list();\n        TarEntry[] result = new TarEntry[list.length];\n        \n        for (int i = 0; i < list.length; ++i) {\n            result[i] = new TarEntry(new File(this.file, list[i]));\n        } \n        \n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [5, 7], [5, 8], [7, 9], [2, 10], [2, 11], [4, 12], [7, 13], [9, 14], [10, 15], [8, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 5], [8, 5], [9, 7], [10, 2], [11, 2], [12, 4], [13, 7], [14, 9], [15, 10], [16, 8], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "writeEntryHeader", "code": "    public void writeEntryHeader(byte[] outbuf) {\n        int offset = 0;\n        \n        offset = TarUtils.getNameBytes(this.name, outbuf, offset, NAMELEN);\n        offset = TarUtils.getOctalBytes(this.mode, outbuf, offset, MODELEN);\n        offset = TarUtils.getOctalBytes(this.userId, outbuf, offset, UIDLEN);\n        offset = TarUtils.getOctalBytes(this.groupId, outbuf, offset, GIDLEN);\n        offset = TarUtils.getLongOctalBytes(this.size, outbuf, offset, SIZELEN);\n        offset = TarUtils.getLongOctalBytes(this.modTime, outbuf, offset, MODTIMELEN);\n        \n        int csOffset = offset;\n        \n        for (int c = 0; c < CHKSUMLEN; ++c) {\n            outbuf[offset++] = (byte) ' ';\n        }\n        \n        outbuf[offset++] = this.linkFlag;\n        offset = TarUtils.getNameBytes(this.linkName, outbuf, offset, NAMELEN);\n        offset = TarUtils.getNameBytes(this.magic, outbuf, offset, MAGICLEN);\n        offset = TarUtils.getNameBytes(this.userName, outbuf, offset, UNAMELEN);\n        offset = TarUtils.getNameBytes(this.groupName, outbuf, offset, GNAMELEN);\n        offset = TarUtils.getOctalBytes(this.devMajor, outbuf, offset, DEVLEN);\n        offset = TarUtils.getOctalBytes(this.devMinor, outbuf, offset, DEVLEN);\n        \n        while (offset < outbuf.length) {\n            outbuf[offset++] = 0;\n        }\n        \n        long checkSum = TarUtils.computeCheckSum(outbuf);\n        \n        TarUtils.getCheckSumOctalBytes(checkSum, outbuf, csOffset, CHKSUMLEN);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [3, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [1, 23], [9, 24], [10, 25], [11, 26], [12, 27], [13, 28], [14, 29], [17, 30], [18, 31], [19, 32], [20, 33], [21, 34], [22, 35], [5, 36], [2, 37], [3, 38], [3, 39], [37, 40], [38, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 3], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 1], [24, 9], [25, 10], [26, 11], [27, 12], [28, 13], [29, 14], [30, 17], [31, 18], [32, 19], [33, 20], [34, 21], [35, 22], [36, 5], [37, 2], [38, 3], [39, 3], [40, 37], [41, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "parseTarHeader", "code": "    public void parseTarHeader(byte[] header) {\n        int offset = 0;\n        \n        this.name = TarUtils.parseName(header, offset, NAMELEN);  \n        offset += NAMELEN;\n        this.mode = (int) TarUtils.parseOctal(header, offset, MODELEN); \n        offset += MODELEN;\n        this.userId = (int) TarUtils.parseOctal(header, offset, UIDLEN);\n        offset += UIDLEN;\n        this.groupId = (int) TarUtils.parseOctal(header, offset, GIDLEN);\n        offset += GIDLEN;\n        this.size = TarUtils.parseOctal(header, offset, SIZELEN);\n        offset += SIZELEN;\n        this.modTime = TarUtils.parseOctal(header, offset, MODTIMELEN);\n        offset += MODTIMELEN;\n        this.checkSum = (int) TarUtils.parseOctal(header, offset, CHKSUMLEN);\n        offset += CHKSUMLEN;\n        this.linkFlag = header[offset++];\n        this.linkName = TarUtils.parseName(header, offset, NAMELEN);\n        offset += NAMELEN;\n        this.magic = TarUtils.parseName(header, offset, MAGICLEN);\n        offset += MAGICLEN;\n        this.userName = TarUtils.parseName(header, offset, UNAMELEN);\n        offset += UNAMELEN;\n        this.groupName = TarUtils.parseName(header, offset, GNAMELEN);\n        offset += GNAMELEN;\n        this.devMajor = (int) TarUtils.parseOctal(header, offset, DEVLEN);\n        offset += DEVLEN;\n        this.devMinor = (int) TarUtils.parseOctal(header, offset, DEVLEN);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [7, 29], [9, 30], [11, 31], [13, 32], [18, 33], [20, 34], [28, 35], [1, 36], [3, 37], [5, 38], [16, 39], [22, 40], [24, 41], [26, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 7], [30, 9], [31, 11], [32, 13], [33, 18], [34, 20], [35, 28], [36, 1], [37, 3], [38, 5], [39, 16], [40, 22], [41, 24], [42, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "TarEntry", "code": "    private TarEntry () {\n        this.magic = new StringBuffer(TMAGIC);\n        this.name = new StringBuffer();\n        this.linkName = new StringBuffer();\n    \n        String user = System.getProperty(\"user.name\", \"\");\n    \n        if (user.length() > 31) {\n            user = user.substring(0, 31);\n        } \n    \n        this.userId = 0;\n        this.groupId = 0;\n        this.userName = new StringBuffer(user);\n        this.groupName = new StringBuffer(\"\");\n        this.file = null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [3, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [8, 18], [2, 19], [9, 20], [10, 21], [11, 22], [13, 23], [1, 24], [19, 25], [19, 26], [24, 27], [27, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 3], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 8], [19, 2], [20, 9], [21, 10], [22, 11], [23, 13], [24, 1], [25, 19], [26, 19], [27, 24], [28, 27], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "TarEntry", "code": "    public TarEntry(String name) {\n        this();\n        \n        boolean isDir = name.endsWith(\"/\");\n        \n        this.checkSum = 0;\n        this.devMajor = 0;\n        this.devMinor = 0;\n        this.name = new StringBuffer(name);\n        this.mode = isDir ? 040755 : 0100644;\n        this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n        this.userId = 0;\n        this.groupId = 0;\n        this.size = 0;\n        this.checkSum = 0;\n        this.modTime = (new Date()).getTime() / 1000;\n        this.linkName = new StringBuffer(\"\");\n        this.userName = new StringBuffer(\"\");\n        this.groupName = new StringBuffer(\"\");\n        this.devMajor = 0;\n        this.devMinor = 0;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [3, 19], [4, 20], [5, 21], [6, 22], [7, 23], [8, 24], [9, 25], [10, 26], [11, 27], [12, 28], [13, 29], [14, 30], [15, 31], [16, 32], [17, 33], [18, 34], [1, 35], [21, 36], [22, 37], [23, 38], [24, 39], [24, 40], [30, 41], [30, 42], [35, 43], [40, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 3], [20, 4], [21, 5], [22, 6], [23, 7], [24, 8], [25, 9], [26, 10], [27, 11], [28, 12], [29, 13], [30, 14], [31, 15], [32, 16], [33, 17], [34, 18], [35, 1], [36, 21], [37, 22], [38, 23], [39, 24], [40, 24], [41, 30], [42, 30], [43, 35], [44, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "TarEntry", "code": "    public TarEntry(String name, byte linkFlag) {\n        this(name);\n        this.linkFlag = linkFlag;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "TarEntry", "code": "    public TarEntry(File file) {\n        this();\n        \n        this.file = file;\n        \n        String name = file.getPath();\n        String osname = System.getProperty(\"os.name\");\n        \n        if (osname != null) {\n        \n            String Win32Prefix = \"Windows\";\n            String prefix = osname.substring(0, Win32Prefix.length());\n        \n            if (prefix.equalsIgnoreCase(Win32Prefix)) {\n                if (name.length() > 2) {\n                    char ch1 = name.charAt(0);\n                    char ch2 = name.charAt(1);\n        \n                    if (ch2 == ':' \n                            && ((ch1 >= 'a' && ch1 <= 'z') \n                                || (ch1 >= 'A' && ch1 <= 'Z'))) {\n                        name = name.substring(2);\n                    } \n                } \n            } \n        } \n        \n        name = name.replace(File.separatorChar, '/');\n        \n        while (name.startsWith(\"/\")) {\n            name = name.substring(1);\n        }\n        \n        this.linkName = new StringBuffer(\"\");\n        this.name = new StringBuffer(name);\n        \n        if (file.isDirectory()) {\n            this.mode = 040755;\n            this.linkFlag = LF_DIR;\n        \n            if (this.name.charAt(this.name.length() - 1) != '/') {\n                this.name.append(\"/\");\n            } \n        } else {\n            this.mode = 0100644;\n            this.linkFlag = LF_NORMAL;\n        } \n        \n        this.size = file.length();\n        this.modTime = file.lastModified() / 1000;\n        this.checkSum = 0;\n        this.devMajor = 0;\n        this.devMinor = 0;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [0, 14], [2, 15], [0, 16], [3, 17], [0, 18], [7, 19], [8, 20], [9, 21], [10, 22], [11, 23], [1, 24], [13, 25], [14, 26], [15, 27], [16, 28], [3, 29], [3, 30], [3, 31], [17, 32], [4, 33], [5, 34], [22, 35], [22, 36], [1, 37], [1, 38], [24, 39], [1, 40], [1, 41], [26, 42], [2, 43], [28, 44], [29, 45], [33, 46], [38, 47], [39, 48], [41, 49], [43, 50], [29, 51], [30, 52], [31, 53], [39, 54], [50, 55], [51, 56], [52, 57], [52, 58], [24, 59], [54, 60], [51, 61], [51, 62], [51, 63], [56, 64], [56, 65], [59, 66], [60, 67], [61, 68], [60, 69], [68, 70], [68, 71], [62, 72], [63, 73], [61, 74], [70, 75], [70, 76], [71, 77], [72, 78], [73, 79], [74, 80], [75, 81], [75, 82], [76, 83], [76, 84], [80, 85], [81, 86], [82, 87], [83, 88], [84, 89], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 0], [15, 2], [16, 0], [17, 3], [18, 0], [19, 7], [20, 8], [21, 9], [22, 10], [23, 11], [24, 1], [25, 13], [26, 14], [27, 15], [28, 16], [29, 3], [30, 3], [31, 3], [32, 17], [33, 4], [34, 5], [35, 22], [36, 22], [37, 1], [38, 1], [39, 24], [40, 1], [41, 1], [42, 26], [43, 2], [44, 28], [45, 29], [46, 33], [47, 38], [48, 39], [49, 41], [50, 43], [51, 29], [52, 30], [53, 31], [54, 39], [55, 50], [56, 51], [57, 52], [58, 52], [59, 24], [60, 54], [61, 51], [62, 51], [63, 51], [64, 56], [65, 56], [66, 59], [67, 60], [68, 61], [69, 60], [70, 68], [71, 68], [72, 62], [73, 63], [74, 61], [75, 70], [76, 70], [77, 71], [78, 72], [79, 73], [80, 74], [81, 75], [82, 75], [83, 76], [84, 76], [85, 80], [86, 81], [87, 82], [88, 83], [89, 84], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89]]}, {"function_name": "TarEntry", "code": "    public TarEntry(byte[] headerBuf) {\n        this();\n        this.parseTarHeader(headerBuf);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.5-5756", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/RecordFactory.java", "language": "java", "name": "org.apache.poi.hssf.record.RecordFactory", "code": "public class RecordFactory\n{\n    private static int           NUM_RECORDS = 10000;\n    private static final Class[] records;\n\n    static {\n        if (FormulaRecord.EXPERIMENTAL_FORMULA_SUPPORT_ENABLED) {\n            records = new Class[]\n            {\n                BOFRecord.class, InterfaceHdrRecord.class, MMSRecord.class,\n                InterfaceEndRecord.class, WriteAccessRecord.class,\n                CodepageRecord.class, DSFRecord.class, TabIdRecord.class,\n                FnGroupCountRecord.class, WindowProtectRecord.class,\n                ProtectRecord.class, PasswordRecord.class, ProtectionRev4Record.class,\n                PasswordRev4Record.class, WindowOneRecord.class, BackupRecord.class,\n                HideObjRecord.class, DateWindow1904Record.class,\n                PrecisionRecord.class, RefreshAllRecord.class, BookBoolRecord.class,\n                FontRecord.class, FormatRecord.class, ExtendedFormatRecord.class,\n                StyleRecord.class, UseSelFSRecord.class, BoundSheetRecord.class,\n                CountryRecord.class, SSTRecord.class, ExtSSTRecord.class,\n                EOFRecord.class, IndexRecord.class, CalcModeRecord.class,\n                CalcCountRecord.class, RefModeRecord.class, IterationRecord.class,\n                DeltaRecord.class, SaveRecalcRecord.class, PrintHeadersRecord.class,\n                PrintGridlinesRecord.class, GridsetRecord.class, GutsRecord.class,\n                DefaultRowHeightRecord.class, WSBoolRecord.class, HeaderRecord.class,\n                FooterRecord.class, HCenterRecord.class, VCenterRecord.class,\n                PrintSetupRecord.class, DefaultColWidthRecord.class,\n                DimensionsRecord.class, RowRecord.class, LabelSSTRecord.class,\n                RKRecord.class, NumberRecord.class, DBCellRecord.class,\n                WindowTwoRecord.class, SelectionRecord.class, ContinueRecord.class,\n                LabelRecord.class, BlankRecord.class, ColumnInfoRecord.class,\n                MulRKRecord.class, MulBlankRecord.class, MergeCellsRecord.class,\n                FormulaRecord.class, BoolErrRecord.class, ExternSheetRecord.class,\n                NameRecord.class, LeftMarginRecord.class, RightMarginRecord.class,\n                TopMarginRecord.class, BottomMarginRecord.class,\n                DrawingRecord.class, DrawingGroupRecord.class, DrawingSelectionRecord.class,\n                ObjRecord.class, TextObjectRecord.class,\n                PaletteRecord.class, StringRecord.class, RecalcIdRecord.class, SharedFormulaRecord.class,\n                HorizontalPageBreakRecord.class, VerticalPageBreakRecord.class\n            };\n        } else {\n            records = new Class[]\n            {\n                BOFRecord.class, InterfaceHdrRecord.class, MMSRecord.class,\n                InterfaceEndRecord.class, WriteAccessRecord.class,\n                CodepageRecord.class, DSFRecord.class, TabIdRecord.class,\n                FnGroupCountRecord.class, WindowProtectRecord.class,\n                ProtectRecord.class, PasswordRecord.class, ProtectionRev4Record.class,\n                PasswordRev4Record.class, WindowOneRecord.class, BackupRecord.class,\n                HideObjRecord.class, DateWindow1904Record.class,\n                PrecisionRecord.class, RefreshAllRecord.class, BookBoolRecord.class,\n                FontRecord.class, FormatRecord.class, ExtendedFormatRecord.class,\n                StyleRecord.class, UseSelFSRecord.class, BoundSheetRecord.class,\n                CountryRecord.class, SSTRecord.class, ExtSSTRecord.class,\n                EOFRecord.class, IndexRecord.class, CalcModeRecord.class,\n                CalcCountRecord.class, RefModeRecord.class, IterationRecord.class,\n                DeltaRecord.class, SaveRecalcRecord.class, PrintHeadersRecord.class,\n                PrintGridlinesRecord.class, GridsetRecord.class, GutsRecord.class,\n                DefaultRowHeightRecord.class, WSBoolRecord.class, HeaderRecord.class,\n                FooterRecord.class, HCenterRecord.class, VCenterRecord.class,\n                PrintSetupRecord.class, DefaultColWidthRecord.class,\n                DimensionsRecord.class, RowRecord.class, LabelSSTRecord.class,\n                RKRecord.class, NumberRecord.class, DBCellRecord.class,\n                WindowTwoRecord.class, SelectionRecord.class, ContinueRecord.class,\n                LabelRecord.class, BlankRecord.class, ColumnInfoRecord.class,\n                MulRKRecord.class, MulBlankRecord.class, MergeCellsRecord.class,\n                BoolErrRecord.class, ExternSheetRecord.class, NameRecord.class,\n                LeftMarginRecord.class, RightMarginRecord.class,\n                TopMarginRecord.class, BottomMarginRecord.class,\n                PaletteRecord.class, StringRecord.class, RecalcIdRecord.class, SharedFormulaRecord.class,\n                DrawingRecord.class, DrawingGroupRecord.class, DrawingSelectionRecord.class,\n                ObjRecord.class, TextObjectRecord.class,\n                HorizontalPageBreakRecord.class, VerticalPageBreakRecord.class\n            };\n\n        }\n    }\n    private static Map           recordsMap  = recordsToMap(records);\n\n    /**\n     * changes the default capacity (10000) to handle larger files\n     */\n\n    public static void setCapacity(int capacity)\n    {\n        NUM_RECORDS = capacity;\n    }\n\n    /**\n     * Create an array of records from an input stream\n     *\n     * @param in the InputStream from which the records will be\n     *           obtained\n     *\n     * @return an array of Records created from the InputStream\n     *\n     * @exception RecordFormatException on error processing the\n     *            InputStream\n     */\n\n    public static List createRecords(InputStream in)\n        throws RecordFormatException\n    {\n        ArrayList records     = new ArrayList(NUM_RECORDS);\n        Record    last_record = null;\n\n        try\n        {\n            short rectype = 0;\n\n            do\n            {\n                rectype = LittleEndian.readShort(in);\n                if (rectype != 0)\n                {\n                    short  recsize = LittleEndian.readShort(in);\n                    byte[] data    = new byte[ ( int ) recsize ];\n\n                    in.read(data);\n                    Record[] recs = createRecord(rectype, recsize);\n\n                    if (recs.length > 1)\n                    {\n                        for (int k = 0; k < recs.length; k++)\n                        {\n                            records.add();\n\t\t\t\t\t\t}\n                    }\n                    else\n                    {\n                        Record record = recs[ 0 ];\n\n                        if (record != null)\n                        {\n                            if (rectype == ContinueRecord.sid)\n                            {\n                                if (last_record == null)\n                                {\n                                    throw new RecordFormatException(\n                                        \"First record is a ContinueRecord??\");\n                                }\n                                last_record.processContinueRecord(data);\n                            }\n                            else\n                            {\n                                last_record = record;\n                                records.add(record);\n                            }\n                        }\n                    }\n                }\n            }\n            while (rectype != 0);\n        }\n        catch (IOException e)\n        {\n            throw new RecordFormatException(\"Error reading bytes\");\n        }\n\n        return records;\n    }\n\n    public static Record [] createRecord(short rectype, short size,\n                                         byte [] data)\n    {\n        Record   retval     = null;\n        Record[] realretval = null;\n\n        try\n        {\n            Constructor constructor =\n                ( Constructor ) recordsMap.get(new Short(rectype));\n\n            if (constructor != null)\n            {\n                retval = ( Record ) constructor.newInstance(new Object[]\n                {\n                    new Short(rectype), new Short(size), data\n                });\n            }\n            else\n            {\n                retval = new UnknownRecord(rectype, size, data);\n            }\n        }\n        catch (Exception introspectionException)\n        {\n            introspectionException.printStackTrace();\n            throw new RecordFormatException(\n                \"Unable to construct record instance, the following exception occured: \" + introspectionException.getMessage());\n        }\n        if (retval instanceof RKRecord)\n        {\n            RKRecord     rk  = ( RKRecord ) retval;\n            NumberRecord num = new NumberRecord();\n\n            num.setColumn(rk.getColumn());\n            num.setRow(rk.getRow());\n            num.setXFIndex(rk.getXFIndex());\n            num.setValue(rk.getRKNumber());\n            retval = num;\n        }\n        else if (retval instanceof DBCellRecord)\n        {\n            retval = null;\n        }\n        else if (retval instanceof MulRKRecord)\n        {\n            MulRKRecord mrk = ( MulRKRecord ) retval;\n\n            realretval = new Record[ mrk.getNumColumns() ];\n            for (int k = 0; k < mrk.getNumColumns(); k++)\n            {\n                NumberRecord nr = new NumberRecord();\n\n                nr.setColumn(( short ) (k + mrk.getFirstColumn()));\n                nr.setRow(mrk.getRow());\n                nr.setXFIndex(mrk.getXFAt(k));\n                nr.setValue(mrk.getRKNumberAt(k));\n                realretval[ k ] = nr;\n            }\n        }\n        else if (retval instanceof MulBlankRecord)\n        {\n            MulBlankRecord mb = ( MulBlankRecord ) retval;\n\n            realretval = new Record[ mb.getNumColumns() ];\n            for (int k = 0; k < mb.getNumColumns(); k++)\n            {\n                BlankRecord br = new BlankRecord();\n\n                br.setColumn(( short ) (k + mb.getFirstColumn()));\n                br.setRow(mb.getRow());\n                br.setXFIndex(mb.getXFAt(k));\n                realretval[ k ] = br;\n            }\n        }\n        if (realretval == null)\n        {\n            realretval      = new Record[ 1 ];\n            realretval[ 0 ] = retval;\n        }\n        return realretval;\n    }\n\n    public static short [] getAllKnownRecordSIDs()\n    {\n        short[] results = new short[ recordsMap.size() ];\n        int     i       = 0;\n\n        for (Iterator iterator = recordsMap.keySet().iterator();\n                iterator.hasNext(); )\n        {\n            Short sid = ( Short ) iterator.next();\n\n            results[ i++ ] = sid.shortValue();\n        }\n        return results;\n    }\n\n    private static Map recordsToMap(Class [] records)\n    {\n        Map         result = new HashMap();\n        Constructor constructor;\n\n        for (int i = 0; i < records.length; i++)\n        {\n            Class record = null;\n            short sid    = 0;\n\n            record = records[ i ];\n            try\n            {\n                sid         = record.getField(\"sid\").getShort(null);\n                constructor = record.getConstructor(new Class[]\n                {\n                    short.class, short.class, byte [].class\n                });\n            }\n            catch (Exception illegalArgumentException)\n            {\n                illegalArgumentException.printStackTrace();\n                throw new RecordFormatException(\n                    \"Unable to determine record types\");\n            }\n            result.put(new Short(sid), constructor);\n        }\n        return result;", "functions": [{"function_name": "setCapacity", "code": "    public static void setCapacity(int capacity)\n    {\n        NUM_RECORDS = capacity;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createRecords", "code": "    public static List createRecords(InputStream in)\n        throws RecordFormatException\n    {\n        ArrayList records     = new ArrayList(NUM_RECORDS);\n        Record    last_record = null;\n\n        try\n        {\n            short rectype = 0;\n\n            do\n            {\n                rectype = LittleEndian.readShort(in);\n                if (rectype != 0)\n                {\n                    short  recsize = LittleEndian.readShort(in);\n                    byte[] data    = new byte[ ( int ) recsize ];\n\n                    in.read(data);\n                    Record[] recs = createRecord(rectype, recsize);\n\n                    if (recs.length > 1)\n                    {\n                        for (int k = 0; k < recs.length; k++)\n                        {\n                            records.add();\n\t\t\t\t\t\t}\n                    }\n                    else\n                    {\n                        Record record = recs[ 0 ];\n\n                        if (record != null)\n                        {\n                            if (rectype == ContinueRecord.sid)\n                            {\n                                if (last_record == null)\n                                {\n                                    throw new RecordFormatException(\n                                        \"First record is a ContinueRecord??\");\n                                }\n                                last_record.processContinueRecord(data);\n                            }\n                            else\n                            {\n                                last_record = record;\n                                records.add(record);\n                            }\n                        }\n                    }\n                }\n            }\n            while (rectype != 0);\n        }\n        catch (IOException e)\n        {\n            throw new RecordFormatException(\"Error reading bytes\");\n        }\n\n        return records;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "LOOP", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [7, 10], [3, 11], [4, 12], [9, 13], [7, 14], [10, 15], [8, 16], [13, 17], [14, 18], [7, 19], [14, 20], [14, 21], [14, 22], [14, 23], [18, 24], [19, 25], [20, 26], [14, 27], [20, 28], [20, 29], [20, 30], [26, 31], [21, 32], [23, 33], [28, 34], [30, 35], [28, 36], [34, 37], [36, 38], [30, 39], [30, 40], [36, 41], [29, 42], [36, 43], [36, 44], [36, 45], [41, 46], [41, 47], [46, 48], [47, 49], [49, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 7], [11, 3], [12, 4], [13, 9], [14, 7], [15, 10], [16, 8], [17, 13], [18, 14], [19, 7], [20, 14], [21, 14], [22, 14], [23, 14], [24, 18], [25, 19], [26, 20], [27, 14], [28, 20], [29, 20], [30, 20], [31, 26], [32, 21], [33, 23], [34, 28], [35, 30], [36, 28], [37, 34], [38, 36], [39, 30], [40, 30], [41, 36], [42, 29], [43, 36], [44, 36], [45, 36], [46, 41], [47, 41], [48, 46], [49, 47], [50, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "createRecord", "code": "    public static Record [] createRecord(short rectype, short size,\n                                         byte [] data)\n    {\n        Record   retval     = null;\n        Record[] realretval = null;\n\n        try\n        {\n            Constructor constructor =\n                ( Constructor ) recordsMap.get(new Short(rectype));\n\n            if (constructor != null)\n            {\n                retval = ( Record ) constructor.newInstance(new Object[]\n                {\n                    new Short(rectype), new Short(size), data\n                });\n            }\n            else\n            {\n                retval = new UnknownRecord(rectype, size, data);\n            }\n        }\n        catch (Exception introspectionException)\n        {\n            introspectionException.printStackTrace();\n            throw new RecordFormatException(\n                \"Unable to construct record instance, the following exception occured: \" + introspectionException.getMessage());\n        }\n        if (retval instanceof RKRecord)\n        {\n            RKRecord     rk  = ( RKRecord ) retval;\n            NumberRecord num = new NumberRecord();\n\n            num.setColumn(rk.getColumn());\n            num.setRow(rk.getRow());\n            num.setXFIndex(rk.getXFIndex());\n            num.setValue(rk.getRKNumber());\n            retval = num;\n        }\n        else if (retval instanceof DBCellRecord)\n        {\n            retval = null;\n        }\n        else if (retval instanceof MulRKRecord)\n        {\n            MulRKRecord mrk = ( MulRKRecord ) retval;\n\n            realretval = new Record[ mrk.getNumColumns() ];\n            for (int k = 0; k < mrk.getNumColumns(); k++)\n            {\n                NumberRecord nr = new NumberRecord();\n\n                nr.setColumn(( short ) (k + mrk.getFirstColumn()));\n                nr.setRow(mrk.getRow());\n                nr.setXFIndex(mrk.getXFAt(k));\n                nr.setValue(mrk.getRKNumberAt(k));\n                realretval[ k ] = nr;\n            }\n        }\n        else if (retval instanceof MulBlankRecord)\n        {\n            MulBlankRecord mb = ( MulBlankRecord ) retval;\n\n            realretval = new Record[ mb.getNumColumns() ];\n            for (int k = 0; k < mb.getNumColumns(); k++)\n            {\n                BlankRecord br = new BlankRecord();\n\n                br.setColumn(( short ) (k + mb.getFirstColumn()));\n                br.setRow(mb.getRow());\n                br.setXFIndex(mb.getXFAt(k));\n                realretval[ k ] = br;\n            }\n        }\n        if (realretval == null)\n        {\n            realretval      = new Record[ 1 ];\n            realretval[ 0 ] = retval;\n        }\n        return realretval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "CATCH", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [3, 12], [4, 13], [4, 14], [4, 15], [10, 16], [11, 17], [11, 18], [3, 19], [3, 20], [13, 21], [14, 22], [5, 23], [6, 24], [2, 25], [2, 26], [17, 27], [17, 28], [3, 29], [3, 30], [3, 31], [3, 32], [3, 33], [21, 34], [13, 35], [22, 36], [27, 37], [17, 38], [17, 39], [11, 40], [30, 41], [31, 42], [32, 43], [33, 44], [19, 45], [34, 46], [14, 47], [14, 48], [15, 49], [26, 50], [27, 51], [27, 52], [38, 53], [17, 54], [40, 55], [46, 56], [46, 57], [47, 58], [49, 59], [25, 60], [51, 61], [27, 62], [38, 63], [53, 64], [48, 65], [51, 66], [61, 67], [38, 68], [38, 69], [38, 70], [38, 71], [38, 72], [38, 73], [54, 74], [51, 75], [51, 76], [51, 77], [51, 78], [51, 79], [62, 80], [69, 81], [70, 82], [71, 83], [63, 84], [76, 85], [77, 86], [66, 87], [72, 88], [65, 89], [65, 90], [78, 91], [88, 92], [91, 93], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 3], [13, 4], [14, 4], [15, 4], [16, 10], [17, 11], [18, 11], [19, 3], [20, 3], [21, 13], [22, 14], [23, 5], [24, 6], [25, 2], [26, 2], [27, 17], [28, 17], [29, 3], [30, 3], [31, 3], [32, 3], [33, 3], [34, 21], [35, 13], [36, 22], [37, 27], [38, 17], [39, 17], [40, 11], [41, 30], [42, 31], [43, 32], [44, 33], [45, 19], [46, 34], [47, 14], [48, 14], [49, 15], [50, 26], [51, 27], [52, 27], [53, 38], [54, 17], [55, 40], [56, 46], [57, 46], [58, 47], [59, 49], [60, 25], [61, 51], [62, 27], [63, 38], [64, 53], [65, 48], [66, 51], [67, 61], [68, 38], [69, 38], [70, 38], [71, 38], [72, 38], [73, 38], [74, 54], [75, 51], [76, 51], [77, 51], [78, 51], [79, 51], [80, 62], [81, 69], [82, 70], [83, 71], [84, 63], [85, 76], [86, 77], [87, 66], [88, 72], [89, 65], [90, 65], [91, 78], [92, 88], [93, 91], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93]]}, {"function_name": "getAllKnownRecordSIDs", "code": "    public static short [] getAllKnownRecordSIDs()\n    {\n        short[] results = new short[ recordsMap.size() ];\n        int     i       = 0;\n\n        for (Iterator iterator = recordsMap.keySet().iterator();\n                iterator.hasNext(); )\n        {\n            Short sid = ( Short ) iterator.next();\n\n            results[ i++ ] = sid.shortValue();\n        }\n        return results;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [2, 8], [2, 9], [4, 10], [8, 11], [9, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 2], [9, 2], [10, 4], [11, 8], [12, 9], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "recordsToMap", "code": "    private static Map recordsToMap(Class [] records)\n    {\n        Map         result = new HashMap();\n        Constructor constructor;\n\n        for (int i = 0; i < records.length; i++)\n        {\n            Class record = null;\n            short sid    = 0;\n\n            record = records[ i ];\n            try\n            {\n                sid         = record.getField(\"sid\").getShort(null);\n                constructor = record.getConstructor(new Class[]\n                {\n                    short.class, short.class, byte [].class\n                });\n            }\n            catch (Exception illegalArgumentException)\n            {\n                illegalArgumentException.printStackTrace();\n                throw new RecordFormatException(\n                    \"Unable to determine record types\");\n            }\n            result.put(new Short(sid), constructor);\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [4, 10], [2, 11], [7, 12], [2, 13], [2, 14], [11, 15], [12, 16], [7, 17], [7, 18], [8, 19], [9, 20], [16, 21], [12, 22], [17, 23], [18, 24], [21, 25], [24, 26], [24, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 4], [11, 2], [12, 7], [13, 2], [14, 2], [15, 11], [16, 12], [17, 7], [18, 7], [19, 8], [20, 9], [21, 16], [22, 12], [23, 17], [24, 18], [25, 21], [26, 24], [27, 24], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}], "label": 1}
{"sample_id": "ivy-2.0-3359", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/resolver/packager/PackagerCacheEntry.java", "language": "java", "name": "org.apache.ivy.plugins.resolver.packager.PackagerCacheEntry", "code": "public class PackagerCacheEntry {\n\n    private final ModuleRevisionId mr;\n    private final File dir;\n    private final File resourceCache;\n    private final String resourceURL;\n    private final boolean validate;\n    private final boolean preserve;\n    private final boolean restricted;\n    private final boolean verbose;\n    private final boolean quiet;\n\n    private boolean built;\n\n    // CheckStyle:ParameterNumber OFF\n    public PackagerCacheEntry(ModuleRevisionId mr, File rootDir,\n      File resourceCache, String resourceURL, boolean validate,\n      boolean preserve, boolean restricted, boolean verbose, boolean quiet) {\n        this.mr = mr;\n        this.dir = getSubdir(rootDir, this.mr);\n        this.resourceCache = resourceCache;\n        this.resourceURL = resourceURL;\n        this.validate = validate;\n        this.preserve = preserve;\n        this.restricted = restricted;\n        this.verbose = verbose;\n        this.quiet = quiet;\n    }\n    // CheckStyle:ParameterNumber ON\n\n    /**\n     * Attempt to build this entry.\n     * \n     * @param packagerResource\n     *            packager metadata resource\n     * @param properties\n     *            a map of properties to pass to the child Ant build responsible for dependency\n     *            packaging\n     * \n     * @throws IllegalStateException\n     *             if this entry has already been built\n     */\n    public synchronized void build(Resource packagerResource, Map properties) throws IOException {\n        // Sanity check\n        if (this.built) {\n            throw new IllegalStateException(\"build in directory `\"\n              + this.dir + \"' already completed\");\n        }\n\n        // Remove work directory if it exists (e.g. left over from last time)\n        if (this.dir.exists()) {\n            if (!cleanup()) {\n                throw new IOException(\"can't remove directory `\" + this.dir + \"'\");\n            }\n        }\n\n        // Create work directory\n        if (!this.dir.mkdirs()) {\n            throw new IOException(\"can't create directory `\" + this.dir + \"'\");\n        }\n\n        // Write out packager XML\n        InputStream packagerXML = packagerResource.openStream();\n        saveFile(\"packager.xml\", packagerXML);\n\n        // Write packager XSLT\n        saveFile(\"packager.xsl\");\n\n        // Write packager XSD\n        saveFile(\"packager-1.0.xsd\");\n\n        // Write master Ant build file\n        saveFile(\"build.xml\");\n\n        // Execute the Ant build file\n        Project project = new Project();\n        project.init();\n        project.setUserProperty(\"ant.file\" , new File(dir, \"build.xml\").getAbsolutePath());\n        ProjectHelper.configureProject(project, new File(dir, \"build.xml\"));\n        project.setBaseDir(dir);\n            \n        // Configure logging verbosity\n        BuildLogger logger = new DefaultLogger();\n        logger.setMessageOutputLevel(this.verbose ? Project.MSG_VERBOSE \n                : this.quiet ? Project.MSG_WARN : Project.MSG_INFO);\n        logger.setOutputPrintStream(System.out);\n        logger.setErrorPrintStream(System.err);\n        project.addBuildListener(logger);\n\n        // Set properties\n        project.setUserProperty(\"ivy.packager.organisation\", \n                                        \"\" + this.mr.getModuleId().getOrganisation());\n        project.setUserProperty(\"ivy.packager.module\", \"\" + this.mr.getModuleId().getName());\n        project.setUserProperty(\"ivy.packager.revision\", \"\" + this.mr.getRevision());\n        project.setUserProperty(\"ivy.packager.branch\", \"\" + this.mr.getBranch());\n        if (this.resourceCache != null) {\n            project.setUserProperty(\"ivy.packager.resourceCache\", \n                                        \"\" + this.resourceCache.getCanonicalPath());\n        }\n        if (this.resourceURL != null) {\n            project.setUserProperty(\"ivy.packager.resourceURL\", \"\" + getResourceURL());\n        }\n        if (this.validate) {\n            project.setUserProperty(\"ivy.packager.validate\", \"true\");\n        }\n        project.setUserProperty(\"ivy.packager.restricted\", \"\" + this.restricted);\n        if (properties != null) {\n            for (Iterator it = properties.entrySet().iterator(); it.hasNext();) {\n                Entry entry = (Entry) it.next();\n                project.setUserProperty((String) entry.getKey(), (String) entry.getValue());\n            }\n        }\n        \n        // Execute task\n        Message.verbose(\"performing packager resolver build in \" + this.dir);\n        try {\n            project.executeTarget(\"build\");\n            this.built = true;\n        } catch (BuildException e) {\n            e.printStackTrace(System.out);\n            Message.verbose(\"packager resolver build failed: \" + e);\n            throw e;\n        }\n    }\n\n    /**\n     * Has this entry been successfully built?\n     */\n    public synchronized boolean isBuilt() {\n        return this.built;\n    }\n\n    /**\n     * Get a built artifact.\n     *\n     * @throws IllegalStateException if this entry's built has not\n     *  (yet) completed successfully\n     */\n    public ResolvedResource getBuiltArtifact(Artifact artifact) {\n        if (!this.built) {\n            throw new IllegalStateException(\"build in directory `\" + this.dir\n              + \"' has not yet successfully completed\");\n        }\n        return new ResolvedResource(\n          new BuiltFileResource(this.dir, artifact), this.mr.getRevision());\n    }\n\n    public synchronized boolean cleanup() {\n        this.built = false;\n        return FileUtil.forceDelete(this.dir);\n    }\n\n    protected void saveFile(String name, InputStream input) throws IOException {\n        FileUtil.copy(input, new File(this.dir, name), null);\n    }\n\n    protected void saveFile(String name) throws IOException {\n        InputStream input = getClass().getResourceAsStream(name);\n        if (input == null) {\n            throw new IOException(\"can't find resource `\" + name + \"'\");\n        }\n        saveFile(name, input);\n    }\n\n    // @Override\n    protected void finalize() throws Throwable {\n        try {\n            if (!this.preserve) {\n                cleanup();\n            }\n        } finally {\n            super.finalize();\n        }\n    }\n\n    private String getResourceURL() {\n        String baseURL = IvyPatternHelper.substitute(this.resourceURL, this.mr.getOrganisation(),\n          this.mr.getName(), this.mr.getRevision(), null, null, null, null,\n          this.mr.getAttributes());\n        int slash = baseURL.lastIndexOf('/');\n        if (slash != -1) {\n            baseURL = baseURL.substring(0, slash + 1);\n        }\n        return baseURL;\n    }\n\n    private static File getSubdir(File rootDir, ModuleRevisionId mr) {\n        return new File(rootDir,\n          mr.getOrganisation() + File.separatorChar\n          + mr.getName() + File.separatorChar\n          + mr.getRevision());", "functions": [{"function_name": "build", "code": "    public synchronized void build(Resource packagerResource, Map properties) throws IOException {\n        // Sanity check\n        if (this.built) {\n            throw new IllegalStateException(\"build in directory `\"\n              + this.dir + \"' already completed\");\n        }\n\n        // Remove work directory if it exists (e.g. left over from last time)\n        if (this.dir.exists()) {\n            if (!cleanup()) {\n                throw new IOException(\"can't remove directory `\" + this.dir + \"'\");\n            }\n        }\n\n        // Create work directory\n        if (!this.dir.mkdirs()) {\n            throw new IOException(\"can't create directory `\" + this.dir + \"'\");\n        }\n\n        // Write out packager XML\n        InputStream packagerXML = packagerResource.openStream();\n        saveFile(\"packager.xml\", packagerXML);\n\n        // Write packager XSLT\n        saveFile(\"packager.xsl\");\n\n        // Write packager XSD\n        saveFile(\"packager-1.0.xsd\");\n\n        // Write master Ant build file\n        saveFile(\"build.xml\");\n\n        // Execute the Ant build file\n        Project project = new Project();\n        project.init();\n        project.setUserProperty(\"ant.file\" , new File(dir, \"build.xml\").getAbsolutePath());\n        ProjectHelper.configureProject(project, new File(dir, \"build.xml\"));\n        project.setBaseDir(dir);\n            \n        // Configure logging verbosity\n        BuildLogger logger = new DefaultLogger();\n        logger.setMessageOutputLevel(this.verbose ? Project.MSG_VERBOSE \n                : this.quiet ? Project.MSG_WARN : Project.MSG_INFO);\n        logger.setOutputPrintStream(System.out);\n        logger.setErrorPrintStream(System.err);\n        project.addBuildListener(logger);\n\n        // Set properties\n        project.setUserProperty(\"ivy.packager.organisation\", \n                                        \"\" + this.mr.getModuleId().getOrganisation());\n        project.setUserProperty(\"ivy.packager.module\", \"\" + this.mr.getModuleId().getName());\n        project.setUserProperty(\"ivy.packager.revision\", \"\" + this.mr.getRevision());\n        project.setUserProperty(\"ivy.packager.branch\", \"\" + this.mr.getBranch());\n        if (this.resourceCache != null) {\n            project.setUserProperty(\"ivy.packager.resourceCache\", \n                                        \"\" + this.resourceCache.getCanonicalPath());\n        }\n        if (this.resourceURL != null) {\n            project.setUserProperty(\"ivy.packager.resourceURL\", \"\" + getResourceURL());\n        }\n        if (this.validate) {\n            project.setUserProperty(\"ivy.packager.validate\", \"true\");\n        }\n        project.setUserProperty(\"ivy.packager.restricted\", \"\" + this.restricted);\n        if (properties != null) {\n            for (Iterator it = properties.entrySet().iterator(); it.hasNext();) {\n                Entry entry = (Entry) it.next();\n                project.setUserProperty((String) entry.getKey(), (String) entry.getValue());\n            }\n        }\n        \n        // Execute task\n        Message.verbose(\"performing packager resolver build in \" + this.dir);\n        try {\n            project.executeTarget(\"build\");\n            this.built = true;\n        } catch (BuildException e) {\n            e.printStackTrace(System.out);\n            Message.verbose(\"packager resolver build failed: \" + e);\n            throw e;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "CATCH", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "IF", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [0, 15], [2, 16], [0, 17], [4, 18], [5, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [14, 36], [1, 37], [1, 38], [15, 39], [2, 40], [16, 41], [17, 42], [17, 43], [18, 44], [19, 45], [20, 46], [20, 47], [21, 48], [21, 49], [22, 50], [22, 51], [23, 52], [23, 53], [27, 54], [6, 55], [29, 56], [30, 57], [30, 58], [7, 59], [32, 60], [33, 61], [34, 62], [35, 63], [8, 64], [9, 65], [9, 66], [10, 67], [10, 68], [11, 69], [14, 70], [14, 71], [37, 72], [38, 73], [39, 74], [40, 75], [42, 76], [3, 77], [4, 78], [5, 79], [46, 80], [48, 81], [50, 82], [52, 83], [54, 84], [56, 85], [57, 86], [57, 87], [65, 88], [67, 89], [69, 90], [70, 91], [40, 92], [77, 93], [77, 94], [78, 95], [78, 96], [79, 97], [79, 98], [46, 99], [48, 100], [50, 101], [50, 102], [52, 103], [52, 104], [88, 105], [67, 106], [90, 107], [91, 108], [40, 109], [40, 110], [95, 111], [95, 112], [97, 113], [105, 114], [105, 115], [106, 116], [107, 117], [107, 118], [110, 119], [97, 120], [115, 121], [116, 122], [118, 123], [109, 124], [109, 125], [92, 126], [122, 127], [122, 128], [128, 129], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 0], [16, 2], [17, 0], [18, 4], [19, 5], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 14], [37, 1], [38, 1], [39, 15], [40, 2], [41, 16], [42, 17], [43, 17], [44, 18], [45, 19], [46, 20], [47, 20], [48, 21], [49, 21], [50, 22], [51, 22], [52, 23], [53, 23], [54, 27], [55, 6], [56, 29], [57, 30], [58, 30], [59, 7], [60, 32], [61, 33], [62, 34], [63, 35], [64, 8], [65, 9], [66, 9], [67, 10], [68, 10], [69, 11], [70, 14], [71, 14], [72, 37], [73, 38], [74, 39], [75, 40], [76, 42], [77, 3], [78, 4], [79, 5], [80, 46], [81, 48], [82, 50], [83, 52], [84, 54], [85, 56], [86, 57], [87, 57], [88, 65], [89, 67], [90, 69], [91, 70], [92, 40], [93, 77], [94, 77], [95, 78], [96, 78], [97, 79], [98, 79], [99, 46], [100, 48], [101, 50], [102, 50], [103, 52], [104, 52], [105, 88], [106, 67], [107, 90], [108, 91], [109, 40], [110, 40], [111, 95], [112, 95], [113, 97], [114, 105], [115, 105], [116, 106], [117, 107], [118, 107], [119, 110], [120, 97], [121, 115], [122, 116], [123, 118], [124, 109], [125, 109], [126, 92], [127, 122], [128, 122], [129, 128], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129]]}, {"function_name": "isBuilt", "code": "    public synchronized boolean isBuilt() {\n        return this.built;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBuiltArtifact", "code": "    public ResolvedResource getBuiltArtifact(Artifact artifact) {\n        if (!this.built) {\n            throw new IllegalStateException(\"build in directory `\" + this.dir\n              + \"' has not yet successfully completed\");\n        }\n        return new ResolvedResource(\n          new BuiltFileResource(this.dir, artifact), this.mr.getRevision());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [4, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 4], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "cleanup", "code": "    public synchronized boolean cleanup() {\n        this.built = false;\n        return FileUtil.forceDelete(this.dir);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "saveFile", "code": "    protected void saveFile(String name, InputStream input) throws IOException {\n        FileUtil.copy(input, new File(this.dir, name), null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "saveFile", "code": "    protected void saveFile(String name) throws IOException {\n        InputStream input = getClass().getResourceAsStream(name);\n        if (input == null) {\n            throw new IOException(\"can't find resource `\" + name + \"'\");\n        }\n        saveFile(name, input);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [6, 9], [8, 10], [9, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 6], [10, 8], [11, 9], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "finalize", "code": "    protected void finalize() throws Throwable {\n        try {\n            if (!this.preserve) {\n                cleanup();\n            }\n        } finally {\n            super.finalize();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResourceURL", "code": "    private String getResourceURL() {\n        String baseURL = IvyPatternHelper.substitute(this.resourceURL, this.mr.getOrganisation(),\n          this.mr.getName(), this.mr.getRevision(), null, null, null, null,\n          this.mr.getAttributes());\n        int slash = baseURL.lastIndexOf('/');\n        if (slash != -1) {\n            baseURL = baseURL.substring(0, slash + 1);\n        }\n        return baseURL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [4, 8], [2, 9], [7, 10], [8, 11], [8, 12], [8, 13], [8, 14], [9, 15], [8, 16], [8, 17], [8, 18], [8, 19], [15, 20], [15, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 4], [9, 2], [10, 7], [11, 8], [12, 8], [13, 8], [14, 8], [15, 9], [16, 8], [17, 8], [18, 8], [19, 8], [20, 15], [21, 15], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getSubdir", "code": "    private static File getSubdir(File rootDir, ModuleRevisionId mr) {\n        return new File(rootDir,\n          mr.getOrganisation() + File.separatorChar\n          + mr.getName() + File.separatorChar\n          + mr.getRevision());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "PackagerCacheEntry", "code": "    public PackagerCacheEntry(ModuleRevisionId mr, File rootDir,\n      File resourceCache, String resourceURL, boolean validate,\n      boolean preserve, boolean restricted, boolean verbose, boolean quiet) {\n        this.mr = mr;\n        this.dir = getSubdir(rootDir, this.mr);\n        this.resourceCache = resourceCache;\n        this.resourceURL = resourceURL;\n        this.validate = validate;\n        this.preserve = preserve;\n        this.restricted = restricted;\n        this.verbose = verbose;\n        this.quiet = quiet;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 1}
{"sample_id": "xalan-2.4-6537", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/XUnresolvedVariable.java", "language": "java", "name": "org.apache.xalan.templates.XUnresolvedVariable", "code": "public class XUnresolvedVariable extends XObject\n{  \n  /** The node context for execution. */\n  transient private int m_context;\n  \n  /** The transformer context for execution. */\n  transient private TransformerImpl m_transformer;\n  \n  /** An index to the point in the variable stack where we should\n   * begin variable searches for evaluation of expressions.\n   * This is -1 if m_isTopLevel is false. \n   **/\n  transient private int m_varStackPos = -1;\n\n  /** An index into the variable stack where the variable context \n   * ends, i.e. at the point we should terminate the search. \n   **/\n  transient private int m_varStackContext;\n  \n  /** true if this variable or parameter is a global.\n   *  @serial */\n  private boolean m_isGlobal;\n  \n  /** true if this variable or parameter is not currently being evaluated. */\n  transient private boolean m_doneEval = true;\n  \n  /**\n   * Create an XUnresolvedVariable, that may be executed at a later time.\n   * This is primarily used so that forward referencing works with \n   * global variables.  An XUnresolvedVariable is initially pushed \n   * into the global variable stack, and then replaced with the real \n   * thing when it is accessed.\n   *\n   * @param obj Must be a non-null reference to an ElemVariable.\n   * @param sourceNode The node context for execution.\n   * @param transformer The transformer execution context.\n   * @param varStackPos An index to the point in the variable stack where we should\n   * begin variable searches for evaluation of expressions.\n   * @param varStackContext An index into the variable stack where the variable context \n   * ends, i.e. at the point we should terminate the search.\n   * @param isGlobal true if this is a global variable.\n   */\n  public XUnresolvedVariable(ElemVariable obj, int sourceNode, \n                             TransformerImpl transformer,\n                             int varStackPos, int varStackContext,\n                             boolean isGlobal)\n  {\n    super(obj);\n    m_context = sourceNode;\n    m_transformer = transformer;\n    \n    m_varStackPos = varStackPos;\n    \n    m_varStackContext = varStackContext;\n    \n    m_isGlobal = isGlobal;\n  }\n    \n  /**\n   * For support of literal objects in xpaths.\n   *\n   * @param xctxt The XPath execution context.\n   *\n   * @return This object.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n    if (!m_doneEval) \n    {\n      this.m_transformer.getMsgMgr().error      \n        (xctxt.getSAXLocator(), XSLTErrorResources.ER_REFERENCING_ITSELF, \n          new Object[]{((ElemVariable)this.object()).getName().getLocalName()}); \n    }\n    VariableStack vars = xctxt.getVarStack();\n    \n    int currentFrame = vars.getStackFrame();\n   \n\n    ElemVariable velem = (ElemVariable)m_obj;\n    try\n    {\n      m_doneEval = false;\n      if(-1 != velem.m_frameSize)\n      \tvars.link(velem.m_frameSize);\n      XObject var = velem.getValue(m_transformer, m_context);\n      m_doneEval = true;\n      return var;\n    }\n    finally\n    {\n      \n      if(-1 != velem.m_frameSize)\n\t  \tvars.unlink(currentFrame);\n    }\n  }\n  \n  /**\n   * Set an index to the point in the variable stack where we should\n   * begin variable searches for evaluation of expressions.\n   * This is -1 if m_isTopLevel is false. \n   * \n   * @param top A valid value that specifies where in the variable \n   * stack the search should begin.\n   */\n  public void setVarStackPos(int top)\n  {\n    m_varStackPos = top;\n  }\n\n  /**\n   * Set an index into the variable stack where the variable context \n   * ends, i.e. at the point we should terminate the search.\n   * \n   * @param The point at which the search should terminate, normally \n   * zero for global variables.\n   */\n  public void setVarStackContext(int bottom)\n  {\n    m_varStackContext = bottom;\n  }\n  \n  /**\n   * Tell what kind of class this is.\n   *\n   * @return CLASS_UNRESOLVEDVARIABLE\n   */\n  public int getType()\n  {\n    return CLASS_UNRESOLVEDVARIABLE;\n  }\n  \n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return An informational string.\n   */\n  public String getTypeString()\n  {\n    return \"XUnresolvedVariable (\" + object().getClass().getName() + \")\";", "functions": [{"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n    if (!m_doneEval) \n    {\n      this.m_transformer.getMsgMgr().error      \n        (xctxt.getSAXLocator(), XSLTErrorResources.ER_REFERENCING_ITSELF, \n          new Object[]{((ElemVariable)this.object()).getName().getLocalName()}); \n    }\n    VariableStack vars = xctxt.getVarStack();\n    \n    int currentFrame = vars.getStackFrame();\n   \n\n    ElemVariable velem = (ElemVariable)m_obj;\n    try\n    {\n      m_doneEval = false;\n      if(-1 != velem.m_frameSize)\n      \tvars.link(velem.m_frameSize);\n      XObject var = velem.getValue(m_transformer, m_context);\n      m_doneEval = true;\n      return var;\n    }\n    finally\n    {\n      \n      if(-1 != velem.m_frameSize)\n\t  \tvars.unlink(currentFrame);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "IF", "RETURN", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [1, 12], [10, 13], [1, 14], [3, 15], [4, 16], [7, 17], [11, 18], [12, 19], [9, 20], [10, 21], [13, 22], [14, 23], [5, 24], [5, 25], [24, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 1], [13, 10], [14, 1], [15, 3], [16, 4], [17, 7], [18, 11], [19, 12], [20, 9], [21, 10], [22, 13], [23, 14], [24, 5], [25, 5], [26, 24], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "setVarStackPos", "code": "  public void setVarStackPos(int top)\n  {\n    m_varStackPos = top;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVarStackContext", "code": "  public void setVarStackContext(int bottom)\n  {\n    m_varStackContext = bottom;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_UNRESOLVEDVARIABLE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"XUnresolvedVariable (\" + object().getClass().getName() + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "XUnresolvedVariable", "code": "  public XUnresolvedVariable(ElemVariable obj, int sourceNode, \n                             TransformerImpl transformer,\n                             int varStackPos, int varStackContext,\n                             boolean isGlobal)\n  {\n    super(obj);\n    m_context = sourceNode;\n    m_transformer = transformer;\n    \n    m_varStackPos = varStackPos;\n    \n    m_varStackContext = varStackContext;\n    \n    m_isGlobal = isGlobal;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "xalan-2.5-6903", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/util/AttributeSetMethodGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.AttributeSetMethodGenerator", "code": "public final class AttributeSetMethodGenerator extends MethodGenerator {\n    private static int HANDLER_INDEX = 1;\n    private static int ITERATOR_INDEX = 2;\n\n    private static final org.apache.bcel.generic.Type[] argTypes =\n\tnew org.apache.bcel.generic.Type[2];\n    private static final String[] argNames = new String[2];\n    \n    static {\n\targTypes[0] = Util.getJCRefType(TRANSLET_OUTPUT_SIG);\n\targNames[0] = TRANSLET_OUTPUT_PNAME;\n\targTypes[1] = Util.getJCRefType(NODE_ITERATOR_SIG);\n\targNames[1] = ITERATOR_PNAME;\n    }\n\n    private final Instruction _astoreHandler;\n    private final Instruction _aloadHandler;\n    private final Instruction _astoreIterator;\n    private final Instruction _aloadIterator;\n    \n    public AttributeSetMethodGenerator(String methodName, ClassGen classGen) {\n\tsuper(org.apache.bcel.Constants.ACC_PRIVATE,\n\t      org.apache.bcel.generic.Type.VOID,\n\t      argTypes, argNames, methodName, \n\t      classGen.getClassName(),\n\t      new InstructionList(),\n\t      classGen.getConstantPool());\n\t\n\t_astoreHandler  = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler   = new ALOAD(HANDLER_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\t_aloadIterator  = new ALOAD(ITERATOR_INDEX);\n    }\n\n    public Instruction storeIterator() {\n\treturn _astoreIterator;\n    }\n    \n    public Instruction loadIterator() {\n\treturn _aloadIterator;\n    }\n\n    public int getIteratorIndex() {\n\treturn ITERATOR_INDEX;\n    }\n\n    public Instruction storeHandler() {\n\treturn _astoreHandler;\n    }\n\n    public Instruction loadHandler() {\n\treturn _aloadHandler;\n    }\n\n    public int getLocalIndex(String name) {", "functions": [{"function_name": "storeIterator", "code": "    public Instruction storeIterator() {\n\treturn _astoreIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadIterator", "code": "    public Instruction loadIterator() {\n\treturn _aloadIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIteratorIndex", "code": "    public int getIteratorIndex() {\n\treturn ITERATOR_INDEX;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeHandler", "code": "    public Instruction storeHandler() {\n\treturn _astoreHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadHandler", "code": "    public Instruction loadHandler() {\n\treturn _aloadHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "AttributeSetMethodGenerator", "code": "    public AttributeSetMethodGenerator(String methodName, ClassGen classGen) {\n\tsuper(org.apache.bcel.Constants.ACC_PRIVATE,\n\t      org.apache.bcel.generic.Type.VOID,\n\t      argTypes, argNames, methodName, \n\t      classGen.getClassName(),\n\t      new InstructionList(),\n\t      classGen.getConstantPool());\n\t\n\t_astoreHandler  = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler   = new ALOAD(HANDLER_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\t_aloadIterator  = new ALOAD(ITERATOR_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [4, 11], [5, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 4], [12, 5], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 1}
{"sample_id": "xalan-2.6-7942", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/CustomStringPool.java", "language": "java", "name": "org.apache.xml.dtm.ref.CustomStringPool", "code": "public class CustomStringPool extends DTMStringPool {\n        final Hashtable m_stringToInt = new Hashtable();\n        public static final int NULL=-1;\n\n        public CustomStringPool()\n        {\n                super();\n                /*m_intToString=new Vector();\n                System.out.println(\"In constructor m_intToString is \" + \n                                                                                         ((null == m_intToString) ? \"null\" : \"not null\"));*/\n        }\n\n        public void removeAllElements()\n        {\n                m_intToString.removeAllElements();\n                if (m_stringToInt != null) \n                        m_stringToInt.clear();\n        }\n\n        /** @return string whose value is uniquely identified by this integer index.\n         * @throws java.lang.ArrayIndexOutOfBoundsException\n         *  if index doesn't map to a string.\n         * */\n        public String indexToString(int i)\n        throws java.lang.ArrayIndexOutOfBoundsException\n        {\n                return(String) m_intToString.elementAt(i);\n        }\n\n        /** @return integer index uniquely identifying the value of this string. */\n        public int stringToIndex(String s)\n        {\n                if (s==null) return NULL;\n                Integer iobj=(Integer)m_stringToInt.get(s);\n                if (iobj==null) {\n                        m_intToString.addElement(s);\n                        iobj=new Integer(m_intToString.size());\n                        m_stringToInt.put(s,iobj);\n                }\n                return iobj.intValue();", "functions": [{"function_name": "removeAllElements", "code": "        public void removeAllElements()\n        {\n                m_intToString.removeAllElements();\n                if (m_stringToInt != null) \n                        m_stringToInt.clear();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "indexToString", "code": "        public String indexToString(int i)\n        throws java.lang.ArrayIndexOutOfBoundsException\n        {\n                return(String) m_intToString.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "stringToIndex", "code": "        public int stringToIndex(String s)\n        {\n                if (s==null) return NULL;\n                Integer iobj=(Integer)m_stringToInt.get(s);\n                if (iobj==null) {\n                        m_intToString.addElement(s);\n                        iobj=new Integer(m_intToString.size());\n                        m_stringToInt.put(s,iobj);\n                }\n                return iobj.intValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [7, 10], [9, 11], [2, 12], [2, 13], [2, 14], [3, 15], [13, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 7], [11, 9], [12, 2], [13, 2], [14, 2], [15, 3], [16, 13], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "CustomStringPool", "code": "        public CustomStringPool()\n        {\n                super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.0-5549", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/poifs/storage/BlockAllocationTableReader.java", "language": "java", "name": "org.apache.poi.poifs.storage.BlockAllocationTableReader", "code": "public class BlockAllocationTableReader\n{\n    private IntList _entries;\n\n    /**\n     * create a BlockAllocationTableReader for an existing filesystem. Side\n     * effect: when this method finishes, the BAT blocks will have\n     * been removed from the raw block list, and any blocks labeled as\n     * 'unused' in the block allocation table will also have been\n     * removed from the raw block list.\n     *\n     * @param block_count the number of BAT blocks making up the block\n     *                    allocation table\n     * @param block_array the array of BAT block indices from the\n     *                    filesystem's header\n     * @param xbat_count the number of XBAT blocks\n     * @param xbat_index the index of the first XBAT block\n     * @param raw_block_list the list of RawDataBlocks\n     *\n     * @exception IOException if, in trying to create the table, we\n     *            encounter logic errors\n     */\n\n    public BlockAllocationTableReader(final int block_count,\n                                      final int [] block_array,\n                                      final int xbat_count,\n                                      final int xbat_index,\n                                      final BlockList raw_block_list)\n        throws IOException\n    {\n        this();\n        if (block_count <= 0)\n        {\n            throw new IOException(\n                \"Illegal block count; minimum count is 1, got \" + block_count\n                + \" instead\");\n        }\n\n        RawDataBlock blocks[] = new RawDataBlock[ block_count ];\n        int          limit    = Math.min(block_count, block_array.length);\n        int          block_index;\n\n        for (block_index = 0; block_index < limit; block_index++)\n        {\n            blocks[ block_index ] =\n                ( RawDataBlock ) raw_block_list\n                    .remove(block_array[ block_index ]);\n        }\n        if (block_index < block_count)\n        {\n\n            if (xbat_index < 0)\n            {\n                throw new IOException(\n                    \"BAT count exceeds limit, yet XBAT index indicates no valid entries\");\n            }\n            int chain_index           = xbat_index;\n            int max_entries_per_block = BATBlock.entriesPerXBATBlock();\n            int chain_index_offset    = BATBlock.getXBATChainOffset();\n\n            for (int j = 0; j < xbat_count; j++)\n            {\n                limit = Math.min(block_count - block_index,\n                                 max_entries_per_block);\n                byte[] data   = raw_block_list.remove(chain_index).getData();\n                int    offset = 0;\n\n                for (int k = 0; k < limit; k++)\n                {\n                    blocks[ block_index++ ] =\n                        ( RawDataBlock ) raw_block_list\n                            .remove(LittleEndian.getInt(data, offset));\n                    offset                  += LittleEndianConsts.INT_SIZE;\n                }\n                chain_index = LittleEndian.getInt(data, chain_index_offset);\n                if (chain_index == POIFSConstants.END_OF_CHAIN)\n                {\n                    break;\n                }\n            }\n        }\n        if (block_index != block_count)\n        {\n            throw new IOException(\"Could not find all blocks\");\n        }\n\n        setEntries(blocks, raw_block_list);\n    }\n\n    /**\n     * create a BlockAllocationTableReader from an array of raw data blocks\n     *\n     * @param blocks the raw data\n     * @param raw_block_list the list holding the managed blocks\n     *\n     * @exception IOException\n     */\n\n    BlockAllocationTableReader(final ListManagedBlock [] blocks,\n                               final BlockList raw_block_list)\n        throws IOException\n    {\n        this();\n        setEntries(blocks, raw_block_list);\n    }\n\n    /**\n     * Constructor BlockAllocationTableReader\n     *\n     *\n     */\n\n    BlockAllocationTableReader()\n    {\n        _entries = new IntList();\n    }\n\n    /**\n     * walk the entries from a specified point and return the\n     * associated blocks. The associated blocks are removed from the\n     * block list\n     *\n     * @param startBlock the first block in the chain\n     * @param blockList the raw data block list\n     *\n     * @return array of ListManagedBlocks, in their correct order\n     *\n     * @exception IOException if there is a problem acquiring the blocks\n     */\n\n    ListManagedBlock [] fetchBlocks(final int startBlock,\n                                    final BlockList blockList)\n        throws IOException\n    {\n        List blocks       = new ArrayList();\n        int  currentBlock = startBlock;\n\n        while (currentBlock != POIFSConstants.END_OF_CHAIN)\n        {\n            blocks.add(blockList.remove(currentBlock));\n            currentBlock = _entries.get(currentBlock);\n        }\n        return ( ListManagedBlock [] ) blocks\n            .toArray(new ListManagedBlock[ 0 ]);\n    }\n\n\n    /**\n     * determine whether the block specified by index is used or not\n     *\n     * @param index index of block in question\n     *\n     * @return true if the specific block is used, else false\n     */\n\n    boolean isUsed(final int index)\n    {\n        boolean rval = false;\n\n        try\n        {\n            rval = _entries.get(index) != -1;\n        }\n        catch (IndexOutOfBoundsException ignored)\n        {\n        }\n        return rval;\n    }\n\n    /**\n     * return the next block index\n     *\n     * @param index of the current block\n     *\n     * @return index of the next block (may be\n     *         POIFSConstants.END_OF_CHAIN, indicating end of chain\n     *         (duh))\n     *\n     * @exception IOException if the current block is unused\n     */\n\n    int getNextBlockIndex(final int index)\n        throws IOException\n    {\n        if (isUsed(index))\n        {\n            return _entries.get(index);\n        }\n        else\n        {\n            throw new IOException(\"index \" + index + \" is unused\");\n        }\n    }\n\n    /**\n     * Convert an array of blocks into a set of integer indices\n     *\n     * @param blocks the array of blocks containing the indices\n     * @param raw_blocks the list of blocks being managed. Unused\n     *                   blocks will be eliminated from the list\n     *\n     * @exception IOException\n     */\n\n    private void setEntries(final ListManagedBlock [] blocks,\n                            final BlockList raw_blocks)\n        throws IOException\n    {\n        int limit = BATBlock.entriesPerBlock();\n\n        for (int block_index = 0; block_index < blocks.length; block_index++)\n        {\n            byte[] data   = blocks[ block_index ].getData();\n            int    offset = 0;\n\n            for (int k = 0; k < limit; k++)\n            {\n                int entry = LittleEndian.getInt(data, offset);\n\n                if (entry == POIFSConstants.UNUSED_BLOCK)\n                {\n                    raw_blocks.zap(_entries.size());\n                }\n                _entries.add(entry);\n                offset += LittleEndianConsts.INT_SIZE;\n            }\n\n            blocks[ block_index ] = null;\n        }\n        raw_blocks.setBAT(this);", "functions": [{"function_name": "fetchBlocks", "code": "    ListManagedBlock [] fetchBlocks(final int startBlock,\n                                    final BlockList blockList)\n        throws IOException\n    {\n        List blocks       = new ArrayList();\n        int  currentBlock = startBlock;\n\n        while (currentBlock != POIFSConstants.END_OF_CHAIN)\n        {\n            blocks.add(blockList.remove(currentBlock));\n            currentBlock = _entries.get(currentBlock);\n        }\n        return ( ListManagedBlock [] ) blocks\n            .toArray(new ListManagedBlock[ 0 ]);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 8], [4, 9], [2, 10], [2, 11], [8, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 1], [9, 4], [10, 2], [11, 2], [12, 8], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isUsed", "code": "    boolean isUsed(final int index)\n    {\n        boolean rval = false;\n\n        try\n        {\n            rval = _entries.get(index) != -1;\n        }\n        catch (IndexOutOfBoundsException ignored)\n        {\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNextBlockIndex", "code": "    int getNextBlockIndex(final int index)\n        throws IOException\n    {\n        if (isUsed(index))\n        {\n            return _entries.get(index);\n        }\n        else\n        {\n            throw new IOException(\"index \" + index + \" is unused\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "THROW_RAISE", "RETURN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setEntries", "code": "    private void setEntries(final ListManagedBlock [] blocks,\n                            final BlockList raw_blocks)\n        throws IOException\n    {\n        int limit = BATBlock.entriesPerBlock();\n\n        for (int block_index = 0; block_index < blocks.length; block_index++)\n        {\n            byte[] data   = blocks[ block_index ].getData();\n            int    offset = 0;\n\n            for (int k = 0; k < limit; k++)\n            {\n                int entry = LittleEndian.getInt(data, offset);\n\n                if (entry == POIFSConstants.UNUSED_BLOCK)\n                {\n                    raw_blocks.zap(_entries.size());\n                }\n                _entries.add(entry);\n                offset += LittleEndianConsts.INT_SIZE;\n            }\n\n            blocks[ block_index ] = null;\n        }\n        raw_blocks.setBAT(this);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [1, 11], [7, 12], [1, 13], [11, 14], [7, 15], [7, 16], [8, 17], [7, 18], [7, 19], [15, 20], [7, 21], [9, 22], [16, 23], [15, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 1], [12, 7], [13, 1], [14, 11], [15, 7], [16, 7], [17, 8], [18, 7], [19, 7], [20, 15], [21, 7], [22, 9], [23, 16], [24, 15], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "BlockAllocationTableReader", "code": "    public BlockAllocationTableReader(final int block_count,\n                                      final int [] block_array,\n                                      final int xbat_count,\n                                      final int xbat_index,\n                                      final BlockList raw_block_list)\n        throws IOException\n    {\n        this();\n        if (block_count <= 0)\n        {\n            throw new IOException(\n                \"Illegal block count; minimum count is 1, got \" + block_count\n                + \" instead\");\n        }\n\n        RawDataBlock blocks[] = new RawDataBlock[ block_count ];\n        int          limit    = Math.min(block_count, block_array.length);\n        int          block_index;\n\n        for (block_index = 0; block_index < limit; block_index++)\n        {\n            blocks[ block_index ] =\n                ( RawDataBlock ) raw_block_list\n                    .remove(block_array[ block_index ]);\n        }\n        if (block_index < block_count)\n        {\n\n            if (xbat_index < 0)\n            {\n                throw new IOException(\n                    \"BAT count exceeds limit, yet XBAT index indicates no valid entries\");\n            }\n            int chain_index           = xbat_index;\n            int max_entries_per_block = BATBlock.entriesPerXBATBlock();\n            int chain_index_offset    = BATBlock.getXBATChainOffset();\n\n            for (int j = 0; j < xbat_count; j++)\n            {\n                limit = Math.min(block_count - block_index,\n                                 max_entries_per_block);\n                byte[] data   = raw_block_list.remove(chain_index).getData();\n                int    offset = 0;\n\n                for (int k = 0; k < limit; k++)\n                {\n                    blocks[ block_index++ ] =\n                        ( RawDataBlock ) raw_block_list\n                            .remove(LittleEndian.getInt(data, offset));\n                    offset                  += LittleEndianConsts.INT_SIZE;\n                }\n                chain_index = LittleEndian.getInt(data, chain_index_offset);\n                if (chain_index == POIFSConstants.END_OF_CHAIN)\n                {\n                    break;\n                }\n            }\n        }\n        if (block_index != block_count)\n        {\n            throw new IOException(\"Could not find all blocks\");\n        }\n\n        setEntries(blocks, raw_block_list);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [3, 17], [7, 18], [1, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [17, 25], [5, 26], [7, 27], [18, 28], [19, 29], [20, 30], [24, 31], [3, 32], [27, 33], [29, 34], [20, 35], [20, 36], [20, 37], [20, 38], [21, 39], [22, 40], [24, 41], [31, 42], [33, 43], [35, 44], [20, 45], [36, 46], [20, 47], [20, 48], [41, 49], [32, 50], [43, 51], [43, 52], [35, 53], [45, 54], [37, 55], [38, 56], [47, 57], [49, 58], [52, 59], [36, 60], [36, 61], [36, 62], [56, 63], [57, 64], [61, 65], [65, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 3], [18, 7], [19, 1], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 17], [26, 5], [27, 7], [28, 18], [29, 19], [30, 20], [31, 24], [32, 3], [33, 27], [34, 29], [35, 20], [36, 20], [37, 20], [38, 20], [39, 21], [40, 22], [41, 24], [42, 31], [43, 33], [44, 35], [45, 20], [46, 36], [47, 20], [48, 20], [49, 41], [50, 32], [51, 43], [52, 43], [53, 35], [54, 45], [55, 37], [56, 38], [57, 47], [58, 49], [59, 52], [60, 36], [61, 36], [62, 36], [63, 56], [64, 57], [65, 61], [66, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "BlockAllocationTableReader", "code": "    BlockAllocationTableReader(final ListManagedBlock [] blocks,\n                               final BlockList raw_block_list)\n        throws IOException\n    {\n        this();\n        setEntries(blocks, raw_block_list);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BlockAllocationTableReader", "code": "    BlockAllocationTableReader()\n    {\n        _entries = new IntList();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6335", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/SubRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.SubRecord", "code": "abstract public class SubRecord\n        extends Record\n{\n    public SubRecord()\n    {\n    }\n\n    public SubRecord( RecordInputStream in )\n    {\n        super( in );\n    }\n\n    public static Record createSubRecord(RecordInputStream in)\n    {\n        Record r = null;\n\n        /* This must surely be an earlier hack?? Delete when confident\n        short adjustedSize = size;\n        if ( size < 0 )\n        {\n            adjustedSize = 0;\n        }\n        else if ( offset + size > data.length )\n        {\n            adjustedSize = (short) ( data.length - offset );\n            if ( adjustedSize > 4 )\n            {\n                adjustedSize -= 4;\n            }\n        }\n*/\n        switch ( in.getSid() )\n        {\n            case CommonObjectDataSubRecord.sid:\n                r = new CommonObjectDataSubRecord( in );\n                break;\n            case GroupMarkerSubRecord.sid:\n                r = new GroupMarkerSubRecord( in );\n                break;\n            case EndSubRecord.sid:\n                r = new EndSubRecord( in );\n                break;\n            case NoteStructureSubRecord.sid:\n                r = new NoteStructureSubRecord( in );\n                break;\n            default:\n                r = new UnknownRecord( in );\n        }\n        return r;", "functions": [{"function_name": "createSubRecord", "code": "    public static Record createSubRecord(RecordInputStream in)\n    {\n        Record r = null;\n\n        /* This must surely be an earlier hack?? Delete when confident\n        short adjustedSize = size;\n        if ( size < 0 )\n        {\n            adjustedSize = 0;\n        }\n        else if ( offset + size > data.length )\n        {\n            adjustedSize = (short) ( data.length - offset );\n            if ( adjustedSize > 4 )\n            {\n                adjustedSize -= 4;\n            }\n        }\n*/\n        switch ( in.getSid() )\n        {\n            case CommonObjectDataSubRecord.sid:\n                r = new CommonObjectDataSubRecord( in );\n                break;\n            case GroupMarkerSubRecord.sid:\n                r = new GroupMarkerSubRecord( in );\n                break;\n            case EndSubRecord.sid:\n                r = new EndSubRecord( in );\n                break;\n            case NoteStructureSubRecord.sid:\n                r = new NoteStructureSubRecord( in );\n                break;\n            default:\n                r = new UnknownRecord( in );\n        }\n        return r;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "PARAM", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [3, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 3], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "SubRecord", "code": "    public SubRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SubRecord", "code": "    public SubRecord( RecordInputStream in )\n    {\n        super( in );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.6-2726", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/mail/MailConsumer.java", "language": "java", "name": "org.apache.camel.component.mail.MailConsumer", "code": "public class MailConsumer extends ScheduledPollConsumer<MailExchange> {\n    public static final long DEFAULT_CONSUMER_DELAY = 60 * 1000L;\n    private static final transient Log LOG = LogFactory.getLog(MailConsumer.class);\n\n    private final MailEndpoint endpoint;\n    private final JavaMailSenderImpl sender;\n    private Folder folder;\n    private Store store;\n\n    public MailConsumer(MailEndpoint endpoint, Processor processor, JavaMailSenderImpl sender) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n        this.sender = sender;\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        if (folder != null && folder.isOpen()) {\n            folder.close(true);\n        }\n        if (store != null && store.isConnected()) {\n            store.close();\n        }\n\n        super.doStop();\n    }\n\n    protected void poll() throws Exception {\n        ensureIsConnected();\n\n        if (store == null || folder == null) {\n            throw new IllegalStateException(\"MailConsumer did not connect properly to the MailStore: \"\n                                            + endpoint.getConfiguration().getMailStoreLogInformation());\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Polling mailfolder: \" + endpoint.getConfiguration().getMailStoreLogInformation());\n        }\n\n        if (endpoint.getConfiguration().getFetchSize() == 0) {\n            LOG.warn(\"Fetch size is 0 meaning the configuration is set to poll no new messages at all. Camel will skip this poll.\");\n            return;\n        }\n\n        if (!folder.isOpen()) {\n            folder.open(Folder.READ_WRITE);\n        }\n\n        try {\n            int count = folder.getMessageCount();\n            if (count > 0) {\n                Message[] messages;\n\n                if (endpoint.getConfiguration().isProcessOnlyUnseenMessages()) {\n                    messages = folder.search(new FlagTerm(new Flags(Flags.Flag.SEEN), false));\n                } else {\n                    messages = folder.getMessages();\n                }\n\n                processMessages(messages);\n\n            } else if (count == -1) {\n                throw new MessagingException(\"Folder: \" + folder.getFullName() + \" is closed\");\n            }\n        } finally {\n            try {\n                if (folder.isOpen()) {\n                    folder.close(true);\n                }\n            } catch (MessagingException e) {\n                LOG.debug(\"Could not close mailbox folder: \" + folder.getName(), e);\n            }\n        }\n    }\n\n    protected void ensureIsConnected() throws MessagingException {\n        MailConfiguration config = endpoint.getConfiguration();\n\n        if (store == null || !store.isConnected()) {\n            store = sender.getSession().getStore(config.getProtocol());\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Connecting to MailStore \" + endpoint.getConfiguration().getMailStoreLogInformation());\n            }\n            store.connect(config.getHost(), config.getPort(), config.getUsername(), config.getPassword());\n        }\n\n        if (folder == null) {\n            folder = store.getFolder(config.getFolderName());\n            if (folder == null || !folder.exists()) {\n                throw new FolderNotFoundException(folder, \"Folder not found or invalid: \" + config.getFolderName());\n            }\n        }\n    }\n\n    /**\n     * Process all the messages\n     */\n    protected void processMessages(Message[] messages) throws Exception {\n        int fetchSize = endpoint.getConfiguration().getFetchSize();\n        int count = fetchSize == -1 ? messages.length : Math.min(fetchSize, messages.length);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Fetching \" + count + \" messages. Total \" + messages.length + \" messages.\");\n        }\n\n        for (int i = 0; i < count; i++) {\n            Message message = messages[i];\n            if (!message.getFlags().contains(Flags.Flag.DELETED)) {\n                processMessage(message);\n                flagMessageProcessed(message);\n            } else {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Skipping message as it was flagged as deleted: \" + MailUtils.dumpMessage(message));\n                }\n            }\n        }\n    }\n\n    /**\n     * Strategy to process the mail message.\n     */\n    protected void processMessage(Message message) throws Exception {\n        MailExchange exchange = endpoint.createExchange(message);\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Processing message: \" + MailUtils.dumpMessage(message));\n        }\n        getProcessor().process(exchange);\n    }\n\n    /**\n     * Strategy to flag the message after being processed.\n     */\n    protected void flagMessageProcessed(Message message) throws MessagingException {\n        if (endpoint.getConfiguration().isDeleteProcessedMessages()) {\n            message.setFlag(Flags.Flag.DELETED, true);\n        } else {\n            message.setFlag(Flags.Flag.SEEN, true);", "functions": [{"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        if (folder != null && folder.isOpen()) {\n            folder.close(true);\n        }\n        if (store != null && store.isConnected()) {\n            store.close();\n        }\n\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [1, 9], [6, 10], [2, 11], [8, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 1], [10, 6], [11, 2], [12, 8], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "poll", "code": "    protected void poll() throws Exception {\n        ensureIsConnected();\n\n        if (store == null || folder == null) {\n            throw new IllegalStateException(\"MailConsumer did not connect properly to the MailStore: \"\n                                            + endpoint.getConfiguration().getMailStoreLogInformation());\n        }\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Polling mailfolder: \" + endpoint.getConfiguration().getMailStoreLogInformation());\n        }\n\n        if (endpoint.getConfiguration().getFetchSize() == 0) {\n            LOG.warn(\"Fetch size is 0 meaning the configuration is set to poll no new messages at all. Camel will skip this poll.\");\n            return;\n        }\n\n        if (!folder.isOpen()) {\n            folder.open(Folder.READ_WRITE);\n        }\n\n        try {\n            int count = folder.getMessageCount();\n            if (count > 0) {\n                Message[] messages;\n\n                if (endpoint.getConfiguration().isProcessOnlyUnseenMessages()) {\n                    messages = folder.search(new FlagTerm(new Flags(Flags.Flag.SEEN), false));\n                } else {\n                    messages = folder.getMessages();\n                }\n\n                processMessages(messages);\n\n            } else if (count == -1) {\n                throw new MessagingException(\"Folder: \" + folder.getFullName() + \" is closed\");\n            }\n        } finally {\n            try {\n                if (folder.isOpen()) {\n                    folder.close(true);\n                }\n            } catch (MessagingException e) {\n                LOG.debug(\"Could not close mailbox folder: \" + folder.getName(), e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "IF", "IF", "TRY", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CATCH", "IF", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [3, 10], [4, 11], [5, 12], [0, 13], [6, 14], [6, 15], [7, 16], [7, 17], [3, 18], [10, 19], [10, 20], [5, 21], [12, 22], [12, 23], [15, 24], [16, 25], [7, 26], [7, 27], [17, 28], [8, 29], [2, 30], [3, 31], [20, 32], [4, 33], [21, 34], [22, 35], [23, 36], [14, 37], [16, 38], [25, 39], [7, 40], [26, 41], [31, 42], [33, 43], [34, 44], [37, 45], [15, 46], [38, 47], [41, 48], [43, 49], [43, 50], [44, 51], [44, 52], [45, 53], [45, 54], [46, 55], [47, 56], [26, 57], [26, 58], [49, 59], [51, 60], [56, 61], [56, 62], [57, 63], [58, 64], [62, 65], [62, 66], [64, 67], [67, 68], [67, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 3], [11, 4], [12, 5], [13, 0], [14, 6], [15, 6], [16, 7], [17, 7], [18, 3], [19, 10], [20, 10], [21, 5], [22, 12], [23, 12], [24, 15], [25, 16], [26, 7], [27, 7], [28, 17], [29, 8], [30, 2], [31, 3], [32, 20], [33, 4], [34, 21], [35, 22], [36, 23], [37, 14], [38, 16], [39, 25], [40, 7], [41, 26], [42, 31], [43, 33], [44, 34], [45, 37], [46, 15], [47, 38], [48, 41], [49, 43], [50, 43], [51, 44], [52, 44], [53, 45], [54, 45], [55, 46], [56, 47], [57, 26], [58, 26], [59, 49], [60, 51], [61, 56], [62, 56], [63, 57], [64, 58], [65, 62], [66, 62], [67, 64], [68, 67], [69, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "ensureIsConnected", "code": "    protected void ensureIsConnected() throws MessagingException {\n        MailConfiguration config = endpoint.getConfiguration();\n\n        if (store == null || !store.isConnected()) {\n            store = sender.getSession().getStore(config.getProtocol());\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Connecting to MailStore \" + endpoint.getConfiguration().getMailStoreLogInformation());\n            }\n            store.connect(config.getHost(), config.getPort(), config.getUsername(), config.getPassword());\n        }\n\n        if (folder == null) {\n            folder = store.getFolder(config.getFolderName());\n            if (folder == null || !folder.exists()) {\n                throw new FolderNotFoundException(folder, \"Folder not found or invalid: \" + config.getFolderName());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [4, 7], [2, 8], [5, 9], [5, 10], [3, 11], [6, 12], [1, 13], [2, 14], [8, 15], [2, 16], [10, 17], [6, 18], [12, 19], [12, 20], [13, 21], [14, 22], [14, 23], [14, 24], [14, 25], [16, 26], [18, 27], [20, 28], [21, 29], [8, 30], [26, 31], [27, 32], [30, 33], [31, 34], [32, 35], [32, 36], [33, 37], [33, 38], [37, 39], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 4], [8, 2], [9, 5], [10, 5], [11, 3], [12, 6], [13, 1], [14, 2], [15, 8], [16, 2], [17, 10], [18, 6], [19, 12], [20, 12], [21, 13], [22, 14], [23, 14], [24, 14], [25, 14], [26, 16], [27, 18], [28, 20], [29, 21], [30, 8], [31, 26], [32, 27], [33, 30], [34, 31], [35, 32], [36, 32], [37, 33], [38, 33], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "processMessages", "code": "    protected void processMessages(Message[] messages) throws Exception {\n        int fetchSize = endpoint.getConfiguration().getFetchSize();\n        int count = fetchSize == -1 ? messages.length : Math.min(fetchSize, messages.length);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Fetching \" + count + \" messages. Total \" + messages.length + \" messages.\");\n        }\n\n        for (int i = 0; i < count; i++) {\n            Message message = messages[i];\n            if (!message.getFlags().contains(Flags.Flag.DELETED)) {\n                processMessage(message);\n                flagMessageProcessed(message);\n            } else {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Skipping message as it was flagged as deleted: \" + MailUtils.dumpMessage(message));", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "IF", "VAR_DECL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [1, 9], [3, 10], [4, 11], [8, 12], [1, 13], [2, 14], [10, 15], [10, 16], [11, 17], [8, 18], [12, 19], [14, 20], [16, 21], [18, 22], [8, 23], [8, 24], [20, 25], [20, 26], [26, 27], [18, 28], [27, 29], [27, 30], [28, 31], [30, 32], [31, 33], [31, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 1], [10, 3], [11, 4], [12, 8], [13, 1], [14, 2], [15, 10], [16, 10], [17, 11], [18, 8], [19, 12], [20, 14], [21, 16], [22, 18], [23, 8], [24, 8], [25, 20], [26, 20], [27, 26], [28, 18], [29, 27], [30, 27], [31, 28], [32, 30], [33, 31], [34, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "processMessage", "code": "    protected void processMessage(Message message) throws Exception {\n        MailExchange exchange = endpoint.createExchange(message);\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Processing message: \" + MailUtils.dumpMessage(message));\n        }\n        getProcessor().process(exchange);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [2, 7], [1, 8], [8, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 2], [8, 1], [9, 8], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "flagMessageProcessed", "code": "    protected void flagMessageProcessed(Message message) throws MessagingException {\n        if (endpoint.getConfiguration().isDeleteProcessedMessages()) {\n            message.setFlag(Flags.Flag.DELETED, true);\n        } else {\n            message.setFlag(Flags.Flag.SEEN, true);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "MailConsumer", "code": "    public MailConsumer(MailEndpoint endpoint, Processor processor, JavaMailSenderImpl sender) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n        this.sender = sender;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.6-7695", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/DTMDefaultBase.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMDefaultBase", "code": "public abstract class DTMDefaultBase implements DTM\n{\n\tstatic boolean JJK_DEBUG=false;\n\n  /** The identity of the root node. */\n  public static final int ROOTNODE = 0;\n\t\n  /**\n   * The number of nodes, which is also used to determine the next\n   *  node index.\n   */\n  protected int m_size = 0;\n\n  /** The expanded names, one array element for each node. */\n  protected SuballocatedIntVector m_exptype;\n\n  /** First child values, one array element for each node. */\n  protected SuballocatedIntVector m_firstch;\n\n  /** Next sibling values, one array element for each node. */\n  protected SuballocatedIntVector m_nextsib;\n\n  /** Previous sibling values, one array element for each node. */\n  protected SuballocatedIntVector m_prevsib;\n\n  /** Previous sibling values, one array element for each node. */\n  protected SuballocatedIntVector m_parent;\n\n  /** Vector of SuballocatedIntVectors of NS decl sets */\n  protected Vector m_namespaceDeclSets = null;\n\n  /** SuballocatedIntVector  of elements at which corresponding\n   * namespaceDeclSets were defined */\n  protected SuballocatedIntVector m_namespaceDeclSetElements = null;\n\n  /**\n   * These hold indexes to elements based on namespace and local name.\n   * The base lookup is the the namespace.  The second lookup is the local\n   * name, and the last array contains the the first free element\n   * at the start, and the list of element handles following.\n   */\n  protected int[][][] m_elemIndexes;\n\n  /** The default block size of the node arrays */\n  \n  /** The number of blocks for the node arrays */\n  public static final int DEFAULT_NUMBLOCKS = 32;\n  \n  /** The number of blocks used for small documents & RTFs */\n  public static final int DEFAULT_NUMBLOCKS_SMALL = 4;\n  \n  /** The block size of the node arrays */\n\n  /**\n   * The value to use when the information has not been built yet.\n   */\n  protected static final int NOTPROCESSED = DTM.NULL - 1;\n\n  /**\n   * The DTM manager who \"owns\" this DTM.\n   */\n\n  public DTMManager m_mgr;\n\n  /**\n   * m_mgr cast to DTMManagerDefault, or null if it isn't an instance\n   * (Efficiency hook)\n   */\n  protected DTMManagerDefault m_mgrDefault=null;\n\n\n  /** The document identity number(s). If we have overflowed the addressing\n   * range of the first that was assigned to us, we may add others. */\n  protected SuballocatedIntVector m_dtmIdent;\n\n  /** The mask for the identity.\n      %REVIEW% Should this really be set to the _DEFAULT? What if\n      a particular DTM wanted to use another value? */\n\n  /** The base URI for this document. */\n  protected String m_documentBaseURI;\n\n  /**\n   * The whitespace filter that enables elements to strip whitespace or not.\n   */\n  protected DTMWSFilter m_wsfilter;\n\n  /** Flag indicating whether to strip whitespace nodes */\n  protected boolean m_shouldStripWS = false;\n\n  /** Stack of flags indicating whether to strip whitespace nodes */\n  protected BoolStack m_shouldStripWhitespaceStack;\n\n  /** The XMLString factory for creating XMLStrings. */\n  protected XMLStringFactory m_xstrf;\n\n  /**\n   * The table for exandedNameID lookups.  This may or may not be the same\n   * table as is contained in the DTMManagerDefault.\n   */\n  protected ExpandedNameTable m_expandedNameTable;\n\n  /** true if indexing is turned on. */\n  protected boolean m_indexing;\n\n  /**\n   * Construct a DTMDefaultBase object using the default block size.\n   *\n   * @param mgr The DTMManager who owns this DTM.\n   * @param domSource the DOM source that this DTM will wrap.\n   * @param source The object that is used to specify the construction source.\n   * @param dtmIdentity The DTM identity ID for this DTM.\n   * @param whiteSpaceFilter The white space filter for this DTM, which may\n   *                         be null.\n   * @param xstringfactory The factory to use for creating XMLStrings.\n   * @param doIndexing true if the caller considers it worth it to use\n   *                   indexing schemes.\n   */\n  public DTMDefaultBase(DTMManager mgr, Source source, int dtmIdentity,\n  \t\t\tDTMWSFilter whiteSpaceFilter,\n  \t\t\tXMLStringFactory xstringfactory, boolean doIndexing)\n  {\n    this(mgr, source, dtmIdentity, whiteSpaceFilter, xstringfactory,\n         doIndexing, DEFAULT_BLOCKSIZE, true, false);\n  }\n\n  /**\n   * Construct a DTMDefaultBase object from a DOM node.\n   *\n   * @param mgr The DTMManager who owns this DTM.\n   * @param domSource the DOM source that this DTM will wrap.\n   * @param source The object that is used to specify the construction source.\n   * @param dtmIdentity The DTM identity ID for this DTM.\n   * @param whiteSpaceFilter The white space filter for this DTM, which may\n   *                         be null.\n   * @param xstringfactory The factory to use for creating XMLStrings.\n   * @param doIndexing true if the caller considers it worth it to use\n   *                   indexing schemes.\n   * @param blocksize The block size of the DTM.\n   * @param usePrevsib true if we want to build the previous sibling node array.\n   * @param newNameTable true if we want to use a new ExpandedNameTable for this DTM.\n   */\n  public DTMDefaultBase(DTMManager mgr, Source source, int dtmIdentity,\n                        DTMWSFilter whiteSpaceFilter,\n                        XMLStringFactory xstringfactory, boolean doIndexing,\n                        int blocksize, boolean usePrevsib,\n                        boolean newNameTable)\n  {    \n    int numblocks;    \n    if (blocksize <= 64)\n    {\n      numblocks = DEFAULT_NUMBLOCKS_SMALL;\n      m_dtmIdent= new SuballocatedIntVector(4, 1);\n    }\n    else\n    {\n      numblocks = DEFAULT_NUMBLOCKS;\n      m_dtmIdent= new SuballocatedIntVector(32);\n    }\n    \n    m_exptype = new SuballocatedIntVector(blocksize, numblocks);\n    m_firstch = new SuballocatedIntVector(blocksize, numblocks);\n    m_nextsib = new SuballocatedIntVector(blocksize, numblocks);\n    m_parent  = new SuballocatedIntVector(blocksize, numblocks);\n    \n    if (usePrevsib)\n      m_prevsib = new SuballocatedIntVector(blocksize, numblocks);\n\n    m_mgr = mgr;\n    if(mgr instanceof DTMManagerDefault)\n      m_mgrDefault=(DTMManagerDefault)mgr;\n    \n    m_documentBaseURI = (null != source) ? source.getSystemId() : null;\n    m_dtmIdent.setElementAt(dtmIdentity,0);\n    m_wsfilter = whiteSpaceFilter;\n    m_xstrf = xstringfactory;\n    m_indexing = doIndexing;\n\n    if (doIndexing)\n    {\n      m_expandedNameTable = new ExpandedNameTable();\n    }\n    else\n    {\n      m_expandedNameTable = m_mgrDefault.getExpandedNameTable(this);\n    }\n\n    if (null != whiteSpaceFilter)\n    {\n      m_shouldStripWhitespaceStack = new BoolStack();\n\n      pushShouldStripWhitespace(false);\n    }\n  }\n\n  /**\n   * Ensure that the size of the element indexes can hold the information.\n   *\n   * @param namespaceID Namespace ID index.\n   * @param LocalNameID Local name ID.\n   */\n  protected void ensureSizeOfIndex(int namespaceID, int LocalNameID)\n  {\n\n    if (null == m_elemIndexes)\n    {\n      m_elemIndexes = new int[namespaceID + 20][][];\n    }\n    else if (m_elemIndexes.length <= namespaceID)\n    {\n      int[][][] indexes = m_elemIndexes;\n\n      m_elemIndexes = new int[namespaceID + 20][][];\n\n      System.arraycopy(indexes, 0, m_elemIndexes, 0, indexes.length);\n    }\n\n    int[][] localNameIndex = m_elemIndexes[namespaceID];\n\n    if (null == localNameIndex)\n    {\n      localNameIndex = new int[LocalNameID + 100][];\n      m_elemIndexes[namespaceID] = localNameIndex;\n    }\n    else if (localNameIndex.length <= LocalNameID)\n    {\n      int[][] indexes = localNameIndex;\n\n      localNameIndex = new int[LocalNameID + 100][];\n\n      System.arraycopy(indexes, 0, localNameIndex, 0, indexes.length);\n\n      m_elemIndexes[namespaceID] = localNameIndex;\n    }\n\n    int[] elemHandles = localNameIndex[LocalNameID];\n\n    if (null == elemHandles)\n    {\n      elemHandles = new int[128];\n      localNameIndex[LocalNameID] = elemHandles;\n      elemHandles[0] = 1;\n    }\n    else if (elemHandles.length <= elemHandles[0] + 1)\n    {\n      int[] indexes = elemHandles;\n\n      elemHandles = new int[elemHandles[0] + 1024];\n\n      System.arraycopy(indexes, 0, elemHandles, 0, indexes.length);\n\n      localNameIndex[LocalNameID] = elemHandles;\n    }\n  }\n\n  /**\n   * Add a node to the element indexes. The node will not be added unless\n   * it's an element.\n   *\n   * @param expandedTypeID The expanded type ID of the node.\n   * @param identity The node identity index.\n   */\n  protected void indexNode(int expandedTypeID, int identity)\n  {\n\n    ExpandedNameTable ent = m_expandedNameTable;\n    short type = ent.getType(expandedTypeID);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n      int namespaceID = ent.getNamespaceID(expandedTypeID);\n      int localNameID = ent.getLocalNameID(expandedTypeID);\n\n      ensureSizeOfIndex(namespaceID, localNameID);\n\n      int[] index = m_elemIndexes[namespaceID][localNameID];\n\n      index[index[0]] = identity;\n\n      index[0]++;\n    }\n  }\n\n  /**\n   * Find the first index that occurs in the list that is greater than or\n   * equal to the given value.\n   *\n   * @param list A list of integers.\n   * @param start The start index to begin the search.\n   * @param len The number of items to search.\n   * @param value Find the slot that has a value that is greater than or\n   * identical to this argument.\n   *\n   * @return The index in the list of the slot that is higher or identical\n   * to the identity argument, or -1 if no node is higher or equal.\n   */\n  protected int findGTE(int[] list, int start, int len, int value)\n  {\n\n    int low = start;\n    int high = start + (len - 1);\n    int end = high;\n\n    while (low <= high)\n    {\n      int mid = (low + high) / 2;\n      int c = list[mid];\n\n      if (c > value)\n        high = mid - 1;\n      else if (c < value)\n        low = mid + 1;\n      else\n        return mid;\n    }\n\n    return (low <= end && list[low] > value) ? low : -1;\n  }\n\n  /**\n   * Find the first matching element from the index at or after the\n   * given node.\n   *\n   * @param nsIndex The namespace index lookup.\n   * @param lnIndex The local name index lookup.\n   * @param firstPotential The first potential match that is worth looking at.\n   *\n   * @return The first node that is greater than or equal to the\n   *         firstPotential argument, or DTM.NOTPROCESSED if not found.\n   */\n  int findElementFromIndex(int nsIndex, int lnIndex, int firstPotential)\n  {\n\n    int[][][] indexes = m_elemIndexes;\n\n    if (null != indexes && nsIndex < indexes.length)\n    {\n      int[][] lnIndexs = indexes[nsIndex];\n\n      if (null != lnIndexs && lnIndex < lnIndexs.length)\n      {\n        int[] elems = lnIndexs[lnIndex];\n\n        if (null != elems)\n        {\n          int pos = findGTE(elems, 1, elems[0], firstPotential);\n\n          if (pos > -1)\n          {\n            return elems[pos];\n          }\n        }\n      }\n    }\n\n    return NOTPROCESSED;\n  }\n\n  /**\n   * Get the next node identity value in the list, and call the iterator\n   * if it hasn't been added yet.\n   *\n   * @param identity The node identity (index).\n   * @return identity+1, or DTM.NULL.\n   */\n  protected abstract int getNextNodeIdentity(int identity);\n\n  /**\n   * This method should try and build one or more nodes in the table.\n   *\n   * @return The true if a next node is found or false if\n   *         there are no more nodes.\n   */\n  protected abstract boolean nextNode();\n\n  /**\n   * Get the number of nodes that have been added.\n   *\n   * @return the number of nodes that have been mapped.\n   */\n  protected abstract int getNumberOfNodes();\n\n  /** Stateless axis traversers, lazely built. */\n  protected DTMAxisTraverser[] m_traversers;\n\n\n  /**\n   * Get the simple type ID for the given node identity.\n   *\n   * @param identity The node identity.\n   *\n   * @return The simple type ID, or DTM.NULL.\n   */\n  protected short _type(int identity)\n  {\n\n    int info = _exptype(identity);\n\n    if (NULL != info)\n      return m_expandedNameTable.getType(info);\n    else\n      return NULL;\n  }\n\n  /**\n   * Get the expanded type ID for the given node identity.\n   *\n   * @param identity The node identity.\n   *\n   * @return The expanded type ID, or DTM.NULL.\n   */\n  protected int _exptype(int identity)\n  {\n  \tif (identity == DTM.NULL)\n  \treturn NULL;\n    while (identity>=m_size)\n    {\n      if (!nextNode() && identity >= m_size)\n        return NULL;\n    }\n    return m_exptype.elementAt(identity);\n\n  }\n\n  /**\n   * Get the level in the tree for the given node identity.\n   *\n   * @param identity The node identity.\n   *\n   * @return The tree level, or DTM.NULL.\n   */\n  protected int _level(int identity)\n  {\n    while (identity>=m_size)\n    {\n      boolean isMore = nextNode();\n      if (!isMore && identity >= m_size)\n        return NULL;\n    }\n\n    int i=0;\n    while(NULL != (identity=_parent(identity)))\n      ++i;\n    return i;\n  }\n\n  /**\n   * Get the first child for the given node identity.\n   *\n   * @param identity The node identity.\n   *\n   * @return The first child identity, or DTM.NULL.\n   */\n  protected int _firstch(int identity)\n  {\n\n    int info = (identity >= m_size) ? NOTPROCESSED : m_firstch.elementAt(identity);\n\n    while (info == NOTPROCESSED)\n    {\n      boolean isMore = nextNode();\n\n      if (identity >= m_size &&!isMore)\n        return NULL;\n      else\n      {\n        info = m_firstch.elementAt(identity);\n        if(info == NOTPROCESSED && !isMore)\n          return NULL;\n      }\n    }\n\n    return info;\n  }\n\n  /**\n   * Get the next sibling for the given node identity.\n   *\n   * @param identity The node identity.\n   *\n   * @return The next sibling identity, or DTM.NULL.\n   */\n  protected int _nextsib(int identity)\n  {\n    int info = (identity >= m_size) ? NOTPROCESSED : m_nextsib.elementAt(identity);\n\n    while (info == NOTPROCESSED)\n    {\n      boolean isMore = nextNode();\n\n      if (identity >= m_size &&!isMore)\n        return NULL;\n      else\n      {\n        info = m_nextsib.elementAt(identity);\n        if(info == NOTPROCESSED && !isMore)\n          return NULL;\n      }\n    }\n\n    return info;\n  }\n\n  /**\n   * Get the previous sibling for the given node identity.\n   *\n   * @param identity The node identity.\n   *\n   * @return The previous sibling identity, or DTM.NULL.\n   */\n  protected int _prevsib(int identity)\n  {\n\n    if (identity < m_size)\n      return m_prevsib.elementAt(identity);\n\n    while (true)\n    {\n      boolean isMore = nextNode();\n\n      if (identity >= m_size && !isMore)\n        return NULL;\n      else if (identity < m_size)\n        return m_prevsib.elementAt(identity);\n    }\n  }\n\n  /**\n   * Get the parent for the given node identity.\n   *\n   * @param identity The node identity.\n   *\n   * @return The parent identity, or DTM.NULL.\n   */\n  protected int _parent(int identity)\n  {\n\n    if (identity < m_size)\n      return m_parent.elementAt(identity);\n\n    while (true)\n    {\n      boolean isMore = nextNode();\n\n      if (identity >= m_size && !isMore)\n        return NULL;\n      else if (identity < m_size)\n        return m_parent.elementAt(identity);\n    }\n  }\n\n  /**\n   * Diagnostics function to dump the DTM.\n   */\n  public void dumpDTM(OutputStream os)\n  {\n    try\n    {\n      if(os==null)\n      {\n\t      File f = new File(\"DTMDump\"+((Object)this).hashCode()+\".txt\");\n \t      System.err.println(\"Dumping... \"+f.getAbsolutePath());\n \t      os=new FileOutputStream(f);\n      }\n      PrintStream ps = new PrintStream(os);\n\n      while (nextNode()){}\n\n      int nRecords = m_size;\n\n      ps.println(\"Total nodes: \" + nRecords);\n\n      for (int index = 0; index < nRecords; ++index)\n      {\n      \tint i=makeNodeHandle(index);\n        ps.println(\"=========== index=\" + index + \" handle=\" + i + \" ===========\");\n        ps.println(\"NodeName: \" + getNodeName(i));\n        ps.println(\"NodeNameX: \" + getNodeNameX(i));\n        ps.println(\"LocalName: \" + getLocalName(i));\n        ps.println(\"NamespaceURI: \" + getNamespaceURI(i));\n        ps.println(\"Prefix: \" + getPrefix(i));\n\n        int exTypeID = _exptype(index);\n\n        ps.println(\"Expanded Type ID: \"\n                           + Integer.toHexString(exTypeID));\n\n        int type = _type(index);\n        String typestring;\n\n        switch (type)\n        {\n        case DTM.ATTRIBUTE_NODE :\n          typestring = \"ATTRIBUTE_NODE\";\n          break;\n        case DTM.CDATA_SECTION_NODE :\n          typestring = \"CDATA_SECTION_NODE\";\n          break;\n        case DTM.COMMENT_NODE :\n          typestring = \"COMMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_FRAGMENT_NODE :\n          typestring = \"DOCUMENT_FRAGMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_NODE :\n          typestring = \"DOCUMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_TYPE_NODE :\n          typestring = \"DOCUMENT_NODE\";\n          break;\n        case DTM.ELEMENT_NODE :\n          typestring = \"ELEMENT_NODE\";\n          break;\n        case DTM.ENTITY_NODE :\n          typestring = \"ENTITY_NODE\";\n          break;\n        case DTM.ENTITY_REFERENCE_NODE :\n          typestring = \"ENTITY_REFERENCE_NODE\";\n          break;\n        case DTM.NAMESPACE_NODE :\n          typestring = \"NAMESPACE_NODE\";\n          break;\n        case DTM.NOTATION_NODE :\n          typestring = \"NOTATION_NODE\";\n          break;\n        case DTM.NULL :\n          typestring = \"NULL\";\n          break;\n        case DTM.PROCESSING_INSTRUCTION_NODE :\n          typestring = \"PROCESSING_INSTRUCTION_NODE\";\n          break;\n        case DTM.TEXT_NODE :\n          typestring = \"TEXT_NODE\";\n          break;\n        default :\n          typestring = \"Unknown!\";\n          break;\n        }\n\n        ps.println(\"Type: \" + typestring);\n\n        int firstChild = _firstch(index);\n\n        if (DTM.NULL == firstChild)\n          ps.println(\"First child: DTM.NULL\");\n        else if (NOTPROCESSED == firstChild)\n          ps.println(\"First child: NOTPROCESSED\");\n        else\n          ps.println(\"First child: \" + firstChild);\n\n        if (m_prevsib != null)\n        {\n          int prevSibling = _prevsib(index);\n\n          if (DTM.NULL == prevSibling)\n            ps.println(\"Prev sibling: DTM.NULL\");\n          else if (NOTPROCESSED == prevSibling)\n            ps.println(\"Prev sibling: NOTPROCESSED\");\n          else\n            ps.println(\"Prev sibling: \" + prevSibling);\n        }\n\n        int nextSibling = _nextsib(index);\n\n        if (DTM.NULL == nextSibling)\n          ps.println(\"Next sibling: DTM.NULL\");\n        else if (NOTPROCESSED == nextSibling)\n          ps.println(\"Next sibling: NOTPROCESSED\");\n        else\n          ps.println(\"Next sibling: \" + nextSibling);\n\n        int parent = _parent(index);\n\n        if (DTM.NULL == parent)\n          ps.println(\"Parent: DTM.NULL\");\n        else if (NOTPROCESSED == parent)\n          ps.println(\"Parent: NOTPROCESSED\");\n        else\n          ps.println(\"Parent: \" + parent);\n\n        int level = _level(index);\n\n        ps.println(\"Level: \" + level);\n        ps.println(\"Node Value: \" + getNodeValue(i));\n        ps.println(\"String Value: \" + getStringValue(i));\n      }\n    }\n    catch(IOException ioe)\n    {\n      ioe.printStackTrace(System.err);\n      System.exit(-1);\n    }\n  }\n  \n  /**\n   * Diagnostics function to dump a single node.\n   * \n   * %REVIEW% KNOWN GLITCH: If you pass it a node index rather than a \n   * node handle, it works just fine... but the displayed identity \n   * number before the colon is different, which complicates comparing\n   * it with nodes printed the other way. We could always OR the DTM ID\n   * into the value, to suppress that distinction...\n   * \n   * %REVIEW% This might want to be moved up to DTMDefaultBase, or possibly\n   * DTM itself, since it's a useful diagnostic and uses only DTM's public\n   * APIs.\n   */\n  public String dumpNode(int nodeHandle)\n  {\t  \n\t  if(nodeHandle==DTM.NULL)\n\t\t  return \"[null]\";\n\t\t  \n        String typestring;\n        switch (getNodeType(nodeHandle))\n        {\n        case DTM.ATTRIBUTE_NODE :\n          typestring = \"ATTR\";\n          break;\n        case DTM.CDATA_SECTION_NODE :\n          typestring = \"CDATA\";\n          break;\n        case DTM.COMMENT_NODE :\n          typestring = \"COMMENT\";\n          break;\n        case DTM.DOCUMENT_FRAGMENT_NODE :\n          typestring = \"DOC_FRAG\";\n          break;\n        case DTM.DOCUMENT_NODE :\n          typestring = \"DOC\";\n          break;\n        case DTM.DOCUMENT_TYPE_NODE :\n          typestring = \"DOC_TYPE\";\n          break;\n        case DTM.ELEMENT_NODE :\n          typestring = \"ELEMENT\";\n          break;\n        case DTM.ENTITY_NODE :\n          typestring = \"ENTITY\";\n          break;\n        case DTM.ENTITY_REFERENCE_NODE :\n          typestring = \"ENT_REF\";\n          break;\n        case DTM.NAMESPACE_NODE :\n          typestring = \"NAMESPACE\";\n          break;\n        case DTM.NOTATION_NODE :\n          typestring = \"NOTATION\";\n          break;\n        case DTM.NULL :\n          typestring = \"null\";\n          break;\n        case DTM.PROCESSING_INSTRUCTION_NODE :\n          typestring = \"PI\";\n          break;\n        case DTM.TEXT_NODE :\n          typestring = \"TEXT\";\n          break;\n        default :\n          typestring = \"Unknown!\";\n          break;\n        }\n\n      StringBuffer sb=new StringBuffer();\n\t  sb.append(\"[\"+nodeHandle+\": \"+typestring+\n\t\t\t\t\"(0x\"+Integer.toHexString(getExpandedTypeID(nodeHandle))+\") \"+\n\t\t\t\tgetNodeNameX(nodeHandle)+\" {\"+getNamespaceURI(nodeHandle)+\"}\"+\n\t\t\t\t\"=\\\"\"+ getNodeValue(nodeHandle)+\"\\\"]\");\n\t  return sb.toString();\n  }\n\n\n  /**\n   * Set an implementation dependent feature.\n   * <p>\n   * %REVIEW% Do we really expect to set features on DTMs?\n   *\n   * @param featureId A feature URL.\n   * @param state true if this feature should be on, false otherwise.\n   */\n  public void setFeature(String featureId, boolean state){}\n\n\n  /**\n   * Given a node handle, test if it has child nodes.\n   * <p> %REVIEW% This is obviously useful at the DOM layer, where it\n   * would permit testing this without having to create a proxy\n   * node. It's less useful in the DTM API, where\n   * (dtm.getFirstChild(nodeHandle)!=DTM.NULL) is just as fast and\n   * almost as self-evident. But it's a convenience, and eases porting\n   * of DOM code to DTM.  </p>\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return int true if the given node has child nodes.\n   */\n  public boolean hasChildNodes(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int firstChild = _firstch(identity);\n\n    return firstChild != DTM.NULL;\n  }\n\t\n  /** Given a node identity, return a node handle. If extended addressing\n   * has been used (multiple DTM IDs), we need to map the high bits of the\n   * identity into the proper DTM ID.\n   * \n   * This has been made FINAL to facilitate inlining, since we do not expect\n   * any subclass of DTMDefaultBase to ever change the algorithm. (I don't\n   * really like doing so, and would love to have an excuse not to...)\n   * \n   * %REVIEW% Is it worth trying to specialcase small documents?\n   * %REVIEW% Should this be exposed at the package/public layers?\n   * \n   * @param nodeIdentity Internal offset to this node's records.\n   * @return NodeHandle (external representation of node)\n   * */\n  final public int makeNodeHandle(int nodeIdentity)\n  {\n    if(NULL==nodeIdentity) return NULL;\n\t\t\n    if(JJK_DEBUG && nodeIdentity>DTMManager.IDENT_NODE_DEFAULT)\n      System.err.println(\"GONK! (only useful in limited situations)\");\n\n    return m_dtmIdent.elementAt(nodeIdentity >>> DTMManager.IDENT_DTM_NODE_BITS)\n      + (nodeIdentity & DTMManager.IDENT_NODE_DEFAULT) ;\t\t\t\t\t\t\t\t\t\t\t\n  }\n\t\n  /** Given a node handle, return a node identity. If extended addressing\n   * has been used (multiple DTM IDs), we need to map the high bits of the\n   * identity into the proper DTM ID and thence find the proper offset\n   * to add to the low bits of the identity\n   * \n   * This has been made FINAL to facilitate inlining, since we do not expect\n   * any subclass of DTMDefaultBase to ever change the algorithm. (I don't\n   * really like doing so, and would love to have an excuse not to...)\n   * \n   * %OPT% Performance is critical for this operation.\n   *\n   * %REVIEW% Should this be exposed at the package/public layers?\n   * \n   * @param NodeHandle (external representation of node)\n   * @return nodeIdentity Internal offset to this node's records.\n   * */\n  final public int makeNodeIdentity(int nodeHandle)\n  {\n    if(NULL==nodeHandle) return NULL;\n\n    if(m_mgrDefault!=null)\n    {\n\n      int whichDTMindex=nodeHandle>>>DTMManager.IDENT_DTM_NODE_BITS;\n\n      if(m_mgrDefault.m_dtms[whichDTMindex]!=this)\n\treturn NULL;\n      else\n\treturn\n\t  m_mgrDefault.m_dtm_offsets[whichDTMindex]\n\t  | (nodeHandle & DTMManager.IDENT_NODE_DEFAULT);\n    }\n\t  \n    int whichDTMid=m_dtmIdent.indexOf(nodeHandle & DTMManager.IDENT_DTM_DEFAULT);\n    return (whichDTMid==NULL) \n      ? NULL\n      : (whichDTMid << DTMManager.IDENT_DTM_NODE_BITS)\n      + (nodeHandle & DTMManager.IDENT_NODE_DEFAULT);\n  }\n\n\n  /**\n   * Given a node handle, get the handle of the node's first child.\n   * If not yet resolved, waits for more nodes to be added to the document and\n   * tries again.\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return int DTM node-number of first child, or DTM.NULL to indicate none exists.\n   */\n  public int getFirstChild(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int firstChild = _firstch(identity);\n\n    return makeNodeHandle(firstChild);\n  }\n  \n  /**\n   * Given a node handle, get the handle of the node's first child.\n   * If not yet resolved, waits for more nodes to be added to the document and\n   * tries again.\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return int DTM node-number of first child, or DTM.NULL to indicate none exists.\n   */\n  public int getTypedFirstChild(int nodeHandle, int nodeType)\n  {\n\n    int firstChild, eType;\n    if (nodeType < DTM.NTYPES) {\n      for (firstChild = _firstch(makeNodeIdentity(nodeHandle));\n           firstChild != DTM.NULL;\n           firstChild = _nextsib(firstChild)) {\n        eType = _exptype(firstChild);\n        if (eType == nodeType\n               || (eType >= DTM.NTYPES\n                      && m_expandedNameTable.getType(eType) == nodeType)) {\n          return makeNodeHandle(firstChild);\n        }\n      }\n    } else {\n      for (firstChild = _firstch(makeNodeIdentity(nodeHandle));\n           firstChild != DTM.NULL;\n           firstChild = _nextsib(firstChild)) {\n        if (_exptype(firstChild) == nodeType) {\n          return makeNodeHandle(firstChild);\n        }\n      }\n    }\n    return DTM.NULL;\n  }\n\n  /**\n   * Given a node handle, advance to its last child.\n   * If not yet resolved, waits for more nodes to be added to the document and\n   * tries again.\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return int Node-number of last child,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getLastChild(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int child = _firstch(identity);\n    int lastChild = DTM.NULL;\n\n    while (child != DTM.NULL)\n    {\n      lastChild = child;\n      child = _nextsib(child);\n    }\n\n    return makeNodeHandle(lastChild);\n  }\n\n  /**\n   * Retrieves an attribute node by by qualified name and namespace URI.\n   *\n   * @param nodeHandle int Handle of the node upon which to look up this attribute..\n   * @param namespaceURI The namespace URI of the attribute to\n   *   retrieve, or null.\n   * @param name The local name of the attribute to\n   *   retrieve.\n   * @return The attribute node handle with the specified name (\n   *   <code>nodeName</code>) or <code>DTM.NULL</code> if there is no such\n   *   attribute.\n   */\n  public abstract int getAttributeNode(int nodeHandle, String namespaceURI,\n                                       String name);\n\n  /**\n   * Given a node handle, get the index of the node's first attribute.\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return Handle of first attribute, or DTM.NULL to indicate none exists.\n   */\n  public int getFirstAttribute(int nodeHandle)\n  {\n    int nodeID = makeNodeIdentity(nodeHandle);\n\n    return makeNodeHandle(getFirstAttributeIdentity(nodeID));\n  }\n\n  /**\n   * Given a node identity, get the index of the node's first attribute.\n   *\n   * @param identity int identity of the node.\n   * @return Identity of first attribute, or DTM.NULL to indicate none exists.\n   */\n  protected int getFirstAttributeIdentity(int identity) {\n    int type = _type(identity);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n      while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n      {\n\n        type = _type(identity);\n\n        if (type == DTM.ATTRIBUTE_NODE)\n        {\n          return identity;\n        }\n        else if (DTM.NAMESPACE_NODE != type)\n        {\n          break;\n        }\n      }\n    }\n\n    return DTM.NULL;\n  }\n\n  /**\n   * Given a node handle and an expanded type ID, get the index of the node's\n   * attribute of that type, if any.\n   *\n   * @param nodeHandle int Handle of the node.\n   * @param attType int expanded type ID of the required attribute.\n   * @return Handle of attribute of the required type, or DTM.NULL to indicate\n   * none exists.\n   */\n  protected int getTypedAttribute(int nodeHandle, int attType) {\n    int type = getNodeType(nodeHandle);\n    if (DTM.ELEMENT_NODE == type) {\n      int identity = makeNodeIdentity(nodeHandle);\n\n      while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n      {\n        type = _type(identity);\n\n        if (type == DTM.ATTRIBUTE_NODE)\n        {\n          if (_exptype(identity) == attType) return makeNodeHandle(identity);\n        }\n        else if (DTM.NAMESPACE_NODE != type)\n        {\n          break;\n        }\n      }\n    }\n\n    return DTM.NULL;\n  }\n\n  /**\n   * Given a node handle, advance to its next sibling.\n   * If not yet resolved, waits for more nodes to be added to the document and\n   * tries again.\n   * @param nodeHandle int Handle of the node.\n   * @return int Node-number of next sibling,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getNextSibling(int nodeHandle)\n  {\n  \tif (nodeHandle == DTM.NULL)\n  \treturn DTM.NULL;\n    return makeNodeHandle(_nextsib(makeNodeIdentity(nodeHandle)));\n  }\n  \n  /**\n   * Given a node handle, advance to its next sibling.\n   * If not yet resolved, waits for more nodes to be added to the document and\n   * tries again.\n   * @param nodeHandle int Handle of the node.\n   * @return int Node-number of next sibling,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getTypedNextSibling(int nodeHandle, int nodeType)\n  {\n  \tif (nodeHandle == DTM.NULL)\n  \treturn DTM.NULL;\n  \tint node = makeNodeIdentity(nodeHandle);\n  \tint eType;\n  \twhile ((node = _nextsib(node)) != DTM.NULL && \n  \t((eType = _exptype(node)) != nodeType && \n  \tm_expandedNameTable.getType(eType)!= nodeType)); \n        \n    return (node == DTM.NULL ? DTM.NULL : makeNodeHandle(node));\n  }\n\n  /**\n   * Given a node handle, find its preceeding sibling.\n   * WARNING: DTM is asymmetric; this operation is resolved by search, and is\n   * relatively expensive.\n   *\n   * @param nodeHandle the id of the node.\n   * @return int Node-number of the previous sib,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getPreviousSibling(int nodeHandle)\n  {\n    if (nodeHandle == DTM.NULL)\n      return DTM.NULL;\n    \n    if (m_prevsib != null)\n      return makeNodeHandle(_prevsib(makeNodeIdentity(nodeHandle)));\n    else\n    {\n      int nodeID = makeNodeIdentity(nodeHandle);\n      int parent = _parent(nodeID);\n      int node = _firstch(parent);\n      int result = DTM.NULL;\n      while (node != nodeID)\n      {\n        result = node;\n        node = _nextsib(node);\n      }\n      return makeNodeHandle(result);\n    }\n  }\n\n  /**\n   * Given a node handle, advance to the next attribute.\n   * If an attr, we advance to\n   * the next attr on the same node.  If not an attribute, we return NULL.\n   *\n   * @param nodeHandle int Handle of the node.\n   * @return int DTM node-number of the resolved attr,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getNextAttribute(int nodeHandle) {\n    int nodeID = makeNodeIdentity(nodeHandle);\n\n    if (_type(nodeID) == DTM.ATTRIBUTE_NODE) {\n      return makeNodeHandle(getNextAttributeIdentity(nodeID));\n    }\n\n    return DTM.NULL;\n  }\n\n  /**\n   * Given a node identity for an attribute, advance to the next attribute.\n   *\n   * @param identity int identity of the attribute node.  This\n   * <strong>must</strong> be an attribute node.\n   *\n   * @return int DTM node-identity of the resolved attr,\n   * or DTM.NULL to indicate none exists.\n   *\n   */\n  protected int getNextAttributeIdentity(int identity) {\n    while (DTM.NULL != (identity = getNextNodeIdentity(identity))) {\n      int type = _type(identity);\n\n      if (type == DTM.ATTRIBUTE_NODE) {\n        return identity;\n      } else if (type != DTM.NAMESPACE_NODE) {\n        break;\n      }\n    }\n\n    return DTM.NULL;\n  }\n\n  /** Lazily created namespace lists. */\n\n\n  /** Build table of namespace declaration\n   * locations during DTM construction. Table is a Vector of\n   * SuballocatedIntVectors containing the namespace node HANDLES declared at\n   * that ID, plus an SuballocatedIntVector of the element node INDEXES at which\n   * these declarations appeared.\n   *\n   * NOTE: Since this occurs during model build, nodes will be encountered\n   * in doucment order and thus the table will be ordered by element,\n   * permitting binary-search as a possible retrieval optimization.\n   *\n   * %REVIEW% Directly managed arrays rather than vectors?\n   * %REVIEW% Handles or IDs? Given usage, I think handles.\n   * */\n  protected void declareNamespaceInContext(int elementNodeIndex,int namespaceNodeIndex)\n  {\n    SuballocatedIntVector nsList=null;\n    if(m_namespaceDeclSets==null)\n      {\n\n        m_namespaceDeclSetElements=new SuballocatedIntVector(32);\n        m_namespaceDeclSetElements.addElement(elementNodeIndex);\n        m_namespaceDeclSets=new Vector();\n        nsList=new SuballocatedIntVector(32);\n        m_namespaceDeclSets.addElement(nsList);\n      }\n    else\n      {\n        int last=m_namespaceDeclSetElements.size()-1;\n\t        \n        if(last>=0 && elementNodeIndex==m_namespaceDeclSetElements.elementAt(last))\n          {\n            nsList=(SuballocatedIntVector)m_namespaceDeclSets.elementAt(last);\n          }\n      }\n    if(nsList==null)\n      {\n        m_namespaceDeclSetElements.addElement(elementNodeIndex);\n\n        SuballocatedIntVector inherited =\n                                findNamespaceContext(_parent(elementNodeIndex));\n\n        if (inherited!=null) {\n            int isize=inherited.size();\n\n            nsList=new SuballocatedIntVector(Math.max(Math.min(isize+16,2048),\n                                                      32));\n\n            for(int i=0;i<isize;++i)\n              {\n                nsList.addElement(inherited.elementAt(i));\n              }\n        } else {\n            nsList=new SuballocatedIntVector(32);\n        }\n\n        m_namespaceDeclSets.addElement(nsList);\n      }\n\n    int newEType=_exptype(namespaceNodeIndex);\n\n    for(int i=nsList.size()-1;i>=0;--i)\n      {\n        if(newEType==getExpandedTypeID(nsList.elementAt(i)))\n          {\n            nsList.setElementAt(makeNodeHandle(namespaceNodeIndex),i);\n            return;\n          }\n      }\n    nsList.addElement(makeNodeHandle(namespaceNodeIndex));\n  }\n\n  /** Retrieve list of namespace declaration locations\n     * active at this node. List is an SuballocatedIntVector whose\n     * entries are the namespace node HANDLES declared at that ID.\n     *\n     * %REVIEW% Directly managed arrays rather than vectors?\n     * %REVIEW% Handles or IDs? Given usage, I think handles.\n     * */\n  protected SuballocatedIntVector findNamespaceContext(int elementNodeIndex)\n  {\n    if (null!=m_namespaceDeclSetElements)\n      {\n        int wouldBeAt=findInSortedSuballocatedIntVector(m_namespaceDeclSetElements,\n                                            elementNodeIndex);\n          return (SuballocatedIntVector) m_namespaceDeclSets.elementAt(wouldBeAt);\n\n        wouldBeAt=-1-wouldBeAt;\n\n        int candidate=m_namespaceDeclSetElements.elementAt(-- wouldBeAt);\n        int ancestor=_parent(elementNodeIndex);\n\n        if (wouldBeAt == 0 && candidate < ancestor) {\n          int rootHandle = getDocumentRoot(makeNodeHandle(elementNodeIndex));\n          int rootID = makeNodeIdentity(rootHandle);\n          int uppermostNSCandidateID;\n\n          if (getNodeType(rootHandle) == DTM.DOCUMENT_NODE) {\n            int ch = _firstch(rootID);\n            uppermostNSCandidateID = (ch != DTM.NULL) ? ch : rootID;\n          } else {\n            uppermostNSCandidateID = rootID;\n          }\n\n          if (candidate == uppermostNSCandidateID) {\n            return (SuballocatedIntVector)m_namespaceDeclSets.elementAt(wouldBeAt);\n          }\n        }\n\n        while(wouldBeAt>=0 && ancestor>0)\n          {\n            if (candidate==ancestor) {\n                return (SuballocatedIntVector)m_namespaceDeclSets.elementAt(wouldBeAt);\n            } else if (candidate<ancestor) {\n                do {\n                  ancestor=_parent(ancestor);\n                } while (candidate < ancestor);\n            } else if(wouldBeAt > 0){\n              candidate=m_namespaceDeclSetElements.elementAt(--wouldBeAt);\n            }\n            else\n            \tbreak;\n          }\n      }\n\n  }\n\n  /**\n     * Subroutine: Locate the specified node within\n     * m_namespaceDeclSetElements, or the last element which\n     * preceeds it in document order\n     *\n     * %REVIEW% Inlne this into findNamespaceContext? Create SortedSuballocatedIntVector type?\n     *\n     * @param elementNodeIndex Index of a node to look up.\n     *\n     * @return If positive or zero, the index of the found item.\n     * If negative, index of the point at which it would have appeared,\n     * encoded as -1-index and hence reconvertable by subtracting\n     * it from -1. (Encoding because I don't want to recompare the strings\n     * but don't want to burn bytes on a datatype to hold a flagged value.)\n     */\n  protected int findInSortedSuballocatedIntVector(SuballocatedIntVector vector, int lookfor)\n  {\n    int i = 0;\n    if(vector != null) {\n      int first = 0;\n      int last  = vector.size() - 1;\n\n      while (first <= last) {\n        i = (first + last) / 2;\n        int test = lookfor-vector.elementAt(i);\n        if(test == 0) {\n        }\n        else if (test < 0) {\n        }\n        else {\n        }\n      }\n\n      if (first > i) {\n      }\n    }\n\n  }\n\n\n  /**\n   * Given a node handle, get the index of the node's first child.\n   * If not yet resolved, waits for more nodes to be added to the document and\n   * tries again\n   *\n   * @param nodeHandle handle to node, which should probably be an element\n   *                   node, but need not be.\n   *\n   * @param inScope    true if all namespaces in scope should be returned,\n   *                   false if only the namespace declarations should be\n   *                   returned.\n   * @return handle of first namespace, or DTM.NULL to indicate none exists.\n   */\n  public int getFirstNamespaceNode(int nodeHandle, boolean inScope)\n  {\n        if(inScope)\n        {\n            int identity = makeNodeIdentity(nodeHandle);\n            if (_type(identity) == DTM.ELEMENT_NODE)\n            {\n              SuballocatedIntVector nsContext=findNamespaceContext(identity);\n              if(nsContext==null || nsContext.size()<1)\n                return NULL;\n\n              return nsContext.elementAt(0);\n            }\n            else\n              return NULL;\n          }\n        else\n          {\n            int identity = makeNodeIdentity(nodeHandle);\n            if (_type(identity) == DTM.ELEMENT_NODE)\n            {\n              while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n              {\n                int type = _type(identity);\n                if (type == DTM.NAMESPACE_NODE)\n                    return makeNodeHandle(identity);\n                else if (DTM.ATTRIBUTE_NODE != type)\n                    break;\n              }\n              return NULL;\n            }\n            else\n              return NULL;\n          }\n  }\n\n  /**\n   * Given a namespace handle, advance to the next namespace.\n   *\n   * @param baseHandle handle to original node from where the first namespace\n   * was relative to (needed to return nodes in document order).\n   * @param namespaceHandle handle to node which must be of type\n   * NAMESPACE_NODE.\n   * @param nodeHandle A namespace handle for which we will find the next node.\n   * @param inScope true if all namespaces that are in scope should be processed,\n   * otherwise just process the nodes in the given element handle.\n   * @return handle of next namespace, or DTM.NULL to indicate none exists.\n   */\n  public int getNextNamespaceNode(int baseHandle, int nodeHandle,\n                                  boolean inScope)\n  {\n        if(inScope)\n          {\n\n                SuballocatedIntVector nsContext=findNamespaceContext(makeNodeIdentity(baseHandle));\n\n            if(nsContext==null)\n              return NULL;\n            int i=1 + nsContext.indexOf(nodeHandle);\n            if(i<=0 || i==nsContext.size())\n              return NULL;\n\n            return nsContext.elementAt(i);\n          }\n        else\n          {\n            int identity = makeNodeIdentity(nodeHandle);\n            while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n              {\n                int type = _type(identity);\n                if (type == DTM.NAMESPACE_NODE)\n                  {\n                    return makeNodeHandle(identity);\n                  }\n                else if (type != DTM.ATTRIBUTE_NODE)\n                  {\n                    break;\n                  }\n              }\n          }\n     return DTM.NULL;\n  }\n\n  /**\n   * Given a node handle, find its parent node.\n   *\n   * @param nodeHandle the id of the node.\n   * @return int Node-number of parent,\n   * or DTM.NULL to indicate none exists.\n   */\n  public int getParent(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n\n    if (identity > 0)\n      return makeNodeHandle(_parent(identity));\n    else\n      return DTM.NULL;\n  }\n\n  /**\n   * Find the Document node handle for the document currently under construction.\n   * PLEASE NOTE that most people should use getOwnerDocument(nodeHandle) instead;\n   * this version of the operation is primarily intended for use during negotiation\n   * with the DTM Manager.\n   * \n   *  @param nodeHandle the id of the node.\n   *  @return int Node handle of document, which should always be valid.\n   */\n  public int getDocument()\n  {\n  }\n\n  /**\n   * Given a node handle, find the owning document node.  This has the exact\n   * same semantics as the DOM Document method of the same name, in that if\n   * the nodeHandle is a document node, it will return NULL.\n   *\n   * <p>%REVIEW% Since this is DOM-specific, it may belong at the DOM\n   * binding layer. Included here as a convenience function and to\n   * aid porting of DOM code to DTM.</p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return int Node handle of owning document, or -1 if the node was a Docment\n   */\n  public int getOwnerDocument(int nodeHandle)\n  {\n\n    if (DTM.DOCUMENT_NODE == getNodeType(nodeHandle))\n  \t    return DTM.NULL;\n\n    return getDocumentRoot(nodeHandle);\n  }\n\n  /**\n   * Given a node handle, find the owning document node.  Unlike the DOM,\n   * this considers the owningDocument of a Document to be itself.\n   *\n   * @param nodeHandle the id of the node.\n   * @return int Node handle of owning document, or the nodeHandle if it is\n   *             a Document.\n   */\n  public int getDocumentRoot(int nodeHandle)\n  {\n    return getDocument();\n  }\n\n  /**\n   * Get the string-value of a node as a String object\n   * for the definition of a node's string-value).\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return A string object that represents the string-value of the given node.\n   */\n  public abstract XMLString getStringValue(int nodeHandle);\n\n  /**\n   * Get number of character array chunks in\n   * the string-value of a node.\n   * for the definition of a node's string-value).\n   * Note that a single text node may have multiple text chunks.\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return number of character array chunks in\n   *         the string-value of a node.\n   */\n  public int getStringValueChunkCount(int nodeHandle)\n  {\n\n\n    return 0;\n  }\n\n  /**\n   * Get a character array chunk in the string-value of a node.\n   * for the definition of a node's string-value).\n   * Note that a single text node may have multiple text chunks.\n   *\n   * @param nodeHandle The node ID.\n   * @param chunkIndex Which chunk to get.\n   * @param startAndLen An array of 2 where the start position and length of\n   *                    the chunk will be returned.\n   *\n   * @return The character array reference where the chunk occurs.\n   */\n  public char[] getStringValueChunk(int nodeHandle, int chunkIndex,\n                                    int[] startAndLen)\n  {\n\n\n    return null;\n  }\n\n  /**\n   * Given a node handle, return an ID that represents the node's expanded name.\n   *\n   * @param nodeHandle The handle to the node in question.\n   *\n   * @return the expanded-name id of the node.\n   */\n  public int getExpandedTypeID(int nodeHandle)\n  {\n    int id=makeNodeIdentity(nodeHandle);\n    if(id==NULL)\n      return NULL;\n    return _exptype(id);\n  }\n\n  /**\n   * Given an expanded name, return an ID.  If the expanded-name does not\n   * exist in the internal tables, the entry will be created, and the ID will\n   * be returned.  Any additional nodes that are created that have this\n   * expanded name will use this ID.\n   *\n   * @param nodeHandle The handle to the node in question.\n   * @param type The simple type, i.e. one of ELEMENT, ATTRIBUTE, etc.\n   *\n   * @param namespace The namespace URI, which may be null, may be an empty\n   *                  string (which will be the same as null), or may be a\n   *                  namespace URI.\n   * @param localName The local name string, which must be a valid\n   *\n   * @return the expanded-name id of the node.\n   */\n  public int getExpandedTypeID(String namespace, String localName, int type)\n  {\n\n    ExpandedNameTable ent = m_expandedNameTable;\n\n    return ent.getExpandedTypeID(namespace, localName, type);\n  }\n\n  /**\n   * Given an expanded-name ID, return the local name part.\n   *\n   * @param ExpandedNameID an ID that represents an expanded-name.\n   * @return String Local name of this node.\n   */\n  public String getLocalNameFromExpandedNameID(int expandedNameID)\n  {\n    return m_expandedNameTable.getLocalName(expandedNameID);\n  }\n\n  /**\n   * Given an expanded-name ID, return the namespace URI part.\n   *\n   * @param ExpandedNameID an ID that represents an expanded-name.\n   * @return String URI value of this node's namespace, or null if no\n   * namespace was resolved.\n   */\n  public String getNamespaceFromExpandedNameID(int expandedNameID)\n  {\n    return m_expandedNameTable.getNamespace(expandedNameID);\n  }\n\n  /**\n   * Returns the namespace type of a specific node\n   * @param nodeHandle the id of the node.\n   * @return the ID of the namespace.\n   */\n  public int getNamespaceType(final int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int expandedNameID = _exptype(identity);\n\n    return m_expandedNameTable.getNamespaceID(expandedNameID);\n  }\n\n  /**\n   * Given a node handle, return its DOM-style node name. This will\n   * include names such as #text or #document.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   * %REVIEW% Document when empty string is possible...\n   * %REVIEW-COMMENT% It should never be empty, should it?\n   */\n  public abstract String getNodeName(int nodeHandle);\n\n  /**\n   * Given a node handle, return the XPath node name.  This should be\n   * the name as described by the XPath data model, NOT the DOM-style\n   * name.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   */\n  public String getNodeNameX(int nodeHandle)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;\n  }\n\n  /**\n   * Given a node handle, return its XPath-style localname.\n   * (As defined in Namespaces, this is the portion of the name after any\n   * colon character).\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Local name of this node.\n   */\n  public abstract String getLocalName(int nodeHandle);\n\n  /**\n   * Given a namespace handle, return the prefix that the namespace decl is\n   * mapping.\n   * Given a node handle, return the prefix used to map to the namespace.\n   *\n   * <p> %REVIEW% Are you sure you want \"\" for no prefix?  </p>\n   * <p> %REVIEW-COMMENT% I think so... not totally sure. -sb  </p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String prefix of this node's name, or \"\" if no explicit\n   * namespace prefix was given.\n   */\n  public abstract String getPrefix(int nodeHandle);\n\n  /**\n   * Given a node handle, return its DOM-style namespace URI\n   * (As defined in Namespaces, this is the declared URI which this node's\n   * prefix -- or default in lieu thereof -- was mapped to.)\n   *\n   * <p>%REVIEW% Null or \"\"? -sb</p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String URI value of this node's namespace, or null if no\n   * namespace was resolved.\n   */\n  public abstract String getNamespaceURI(int nodeHandle);\n\n  /**\n   * Given a node handle, return its node value. This is mostly\n   * as defined by the DOM, but may ignore some conveniences.\n   * <p>\n   *\n   * @param nodeHandle The node id.\n   * @return String Value of this node, or null if not\n   * meaningful for this node type.\n   */\n  public abstract String getNodeValue(int nodeHandle);\n\n  /**\n   * Given a node handle, return its DOM-style node type.\n   * <p>\n   * %REVIEW% Generally, returning short is false economy. Return int?\n   * %REVIEW% Make assumption that node has already arrived.  Is OK?\n   *\n   * @param nodeHandle The node id.\n   * @return int Node type, as per the DOM's Node._NODE constants.\n   */\n  public short getNodeType(int nodeHandle)\n  {\n  \tif (nodeHandle == DTM.NULL)\n  \treturn DTM.NULL;\n    return m_expandedNameTable.getType(_exptype(makeNodeIdentity(nodeHandle)));\n  }\n\n  /**\n   * Get the depth level of this node in the tree (equals 1 for\n   * a parentless node).\n   *\n   * @param nodeHandle The node id.\n   * @return the number of ancestors, plus one\n   * @xsl.usage internal\n   */\n  public short getLevel(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    return (short) (_level(identity) + 1);\n  }\n  \n  /**\n   * Get the identity of this node in the tree \n   *\n   * @param nodeHandle The node handle.\n   * @return the node identity\n   * @xsl.usage internal\n   */\n  public int getNodeIdent(int nodeHandle)\n  {\n    /*if (nodeHandle != DTM.NULL)\n      return nodeHandle & m_mask;\n    else \n      return DTM.NULL;*/\n      \n      return makeNodeIdentity(nodeHandle); \n  }\n  \n  /**\n   * Get the handle of this node in the tree \n   *\n   * @param nodeId The node identity.\n   * @return the node handle\n   * @xsl.usage internal\n   */\n  public int getNodeHandle(int nodeId)\n  {\n    /*if (nodeId != DTM.NULL)\n      return nodeId | m_dtmIdent;\n    else \n      return DTM.NULL;*/\n      \n      return makeNodeHandle(nodeId);\n  }\n\n\n  /**\n   * Tests whether DTM DOM implementation implements a specific feature and\n   * that feature is supported by this node.\n   *\n   * @param feature The name of the feature to test.\n   * @param versionThis is the version number of the feature to test.\n   *   If the version is not\n   *   specified, supporting any version of the feature will cause the\n   *   method to return <code>true</code>.\n   * @param version The version string of the feature requested, may be null.\n   * @return Returns <code>true</code> if the specified feature is\n   *   supported on this node, <code>false</code> otherwise.\n   */\n  public boolean isSupported(String feature, String version)\n  {\n\n    return false;\n  }\n\n  /**\n   * Return the base URI of the document entity. If it is not known\n   * (because the document was parsed from a socket connection or from\n   * standard input, for example), the value of this property is unknown.\n   *\n   * @return the document base URI String object or null if unknown.\n   */\n  public String getDocumentBaseURI()\n  {\n    return m_documentBaseURI;\n  }\n\n  /**\n   * Set the base URI of the document entity.\n   *\n   * @param baseURI the document base URI String object or null if unknown.\n   */\n  public void setDocumentBaseURI(String baseURI)\n  {\n    m_documentBaseURI = baseURI;\n  }\n\n  /**\n   * Return the system identifier of the document entity. If\n   * it is not known, the value of this property is unknown.\n   *\n   * @param nodeHandle The node id, which can be any valid node handle.\n   * @return the system identifier String object or null if unknown.\n   */\n  public String getDocumentSystemIdentifier(int nodeHandle)\n  {\n\n    return m_documentBaseURI;\n  }\n\n  /**\n   * Return the name of the character encoding scheme\n   *        in which the document entity is expressed.\n   *\n   * @param nodeHandle The node id, which can be any valid node handle.\n   * @return the document encoding String object.\n   * @xsl.usage internal\n   */\n  public String getDocumentEncoding(int nodeHandle)\n  {\n\n    return \"UTF-8\";\n  }\n\n  /**\n   * Return an indication of the standalone status of the document,\n   *        either \"yes\" or \"no\". This property is derived from the optional\n   *        standalone document declaration in the XML declaration at the\n   *        beginning of the document entity, and has no value if there is no\n   *        standalone document declaration.\n   *\n   * @param nodeHandle The node id, which can be any valid node handle.\n   * @return the document standalone String object, either \"yes\", \"no\", or null.\n   */\n  public String getDocumentStandalone(int nodeHandle)\n  {\n    return null;\n  }\n\n  /**\n   * Return a string representing the XML version of the document. This\n   * property is derived from the XML declaration optionally present at the\n   * beginning of the document entity, and has no value if there is no XML\n   * declaration.\n   *\n   * @param documentHandle The document handle\n   *\n   * @return the document version String object.\n   */\n  public String getDocumentVersion(int documentHandle)\n  {\n    return null;\n  }\n\n  /**\n   * Return an indication of\n   * whether the processor has read the complete DTD. Its value is a\n   * boolean. If it is false, then certain properties (indicated in their\n   * descriptions below) may be unknown. If it is true, those properties\n   * are never unknown.\n   *\n   * @return <code>true</code> if all declarations were processed;\n   *         <code>false</code> otherwise.\n   */\n  public boolean getDocumentAllDeclarationsProcessed()\n  {\n\n    return true;\n  }\n\n  /**\n   *   A document type declaration information item has the following properties:\n   *\n   *     1. [system identifier] The system identifier of the external subset, if\n   *        it exists. Otherwise this property has no value.\n   *\n   * @return the system identifier String object, or null if there is none.\n   */\n  public abstract String getDocumentTypeDeclarationSystemIdentifier();\n\n  /**\n   * Return the public identifier of the external subset,\n   * normalized as described in 4.2.2 External Entities [XML]. If there is\n   * no external subset or if it has no public identifier, this property\n   * has no value.\n   *\n   * @param the document type declaration handle\n   *\n   * @return the public identifier String object, or null if there is none.\n   */\n  public abstract String getDocumentTypeDeclarationPublicIdentifier();\n\n  /**\n   * Returns the <code>Element</code> whose <code>ID</code> is given by\n   * <code>elementId</code>. If no such element exists, returns\n   * <code>DTM.NULL</code>. Behavior is not defined if more than one element\n   * has this <code>ID</code>. Attributes (including those\n   * with the name \"ID\") are not of type ID unless so defined by DTD/Schema\n   * information available to the DTM implementation.\n   * Implementations that do not know whether attributes are of type ID or\n   * not are expected to return <code>DTM.NULL</code>.\n   *\n   * <p>%REVIEW% Presumably IDs are still scoped to a single document,\n   * and this operation searches only within a single document, right?\n   * Wouldn't want collisions between DTMs in the same process.</p>\n   *\n   * @param elementId The unique <code>id</code> value for an element.\n   * @return The handle of the matching element.\n   */\n  public abstract int getElementById(String elementId);\n\n  /**\n   * The getUnparsedEntityURI function returns the URI of the unparsed\n   * entity with the specified name in the same document as the context\n   * node (see [3.3 Unparsed Entities]). It returns the empty string if\n   * there is no such entity.\n   * <p>\n   * XML processors may choose to use the System Identifier (if one\n   * is provided) to resolve the entity, rather than the URI in the\n   * Public Identifier. The details are dependent on the processor, and\n   * we would have to support some form of plug-in resolver to handle\n   * this properly. Currently, we simply return the System Identifier if\n   * present, and hope that it a usable URI or that our caller can\n   * map it to one.\n   * TODO: Resolve Public Identifiers... or consider changing function name.\n   * <p>\n   * If we find a relative URI\n   * reference, XML expects it to be resolved in terms of the base URI\n   * of the document. The DOM doesn't do that for us, and it isn't\n   * entirely clear whether that should be done here; currently that's\n   * pushed up to a higher level of our application. (Note that DOM Level\n   * 1 didn't store the document's base URI.)\n   * TODO: Consider resolving Relative URIs.\n   * <p>\n   * (The DOM's statement that \"An XML processor may choose to\n   * completely expand entities before the structure model is passed\n   * to the DOM\" refers only to parsed entities, not unparsed, and hence\n   * doesn't affect this function.)\n   *\n   * @param name A string containing the Entity Name of the unparsed\n   * entity.\n   *\n   * @return String containing the URI of the Unparsed Entity, or an\n   * empty string if no such entity exists.\n   */\n  public abstract String getUnparsedEntityURI(String name);\n\n\n  /**\n   * Return true if the xsl:strip-space or xsl:preserve-space was processed\n   * during construction of the DTM document.\n   *\n   * @return true if this DTM supports prestripping.\n   */\n  public boolean supportsPreStripping()\n  {\n    return true;\n  }\n\n  /**\n   * Figure out whether nodeHandle2 should be considered as being later\n   * in the document than nodeHandle1, in Document Order as defined\n   * by the XPath model. This may not agree with the ordering defined\n   * by other XML applications.\n   * <p>\n   * There are some cases where ordering isn't defined, and neither are\n   * the results of this function -- though we'll generally return false.\n   *\n   * @param nodeHandle1 Node handle to perform position comparison on.\n   * @param nodeHandle2 Second Node handle to perform position comparison on .\n   *\n   * @return true if node1 comes before node2, otherwise return false.\n   * You can think of this as\n   * <code>(node1.documentOrderPosition &lt;= node2.documentOrderPosition)</code>.\n   */\n  public boolean isNodeAfter(int nodeHandle1, int nodeHandle2)\n  {\n    int index1 = makeNodeIdentity(nodeHandle1);\n    int index2 = makeNodeIdentity(nodeHandle2);\n\n    return index1!=NULL & index2!=NULL & index1 <= index2;\n  }\n\n  /**\n   *     2. [element content whitespace] A boolean indicating whether the\n   *        character is white space appearing within element content (see [XML],\n   *        2.10 \"White Space Handling\"). Note that validating XML processors are\n   *        required by XML 1.0 to provide this information. If there is no\n   *        declaration for the containing element, this property has no value for\n   *        white space characters. If no declaration has been read, but the [all\n   *        declarations processed] property of the document information item is\n   *        false (so there may be an unread declaration), then the value of this\n   *        property is unknown for white space characters. It is always false for\n   *        characters that are not white space.\n   *\n   * @param nodeHandle the node ID.\n   * @return <code>true</code> if the character data is whitespace;\n   *         <code>false</code> otherwise.\n   */\n  public boolean isCharacterElementContentWhitespace(int nodeHandle)\n  {\n\n    return false;\n  }\n\n  /**\n   *    10. [all declarations processed] This property is not strictly speaking\n   *        part of the infoset of the document. Rather it is an indication of\n   *        whether the processor has read the complete DTD. Its value is a\n   *        boolean. If it is false, then certain properties (indicated in their\n   *        descriptions below) may be unknown. If it is true, those properties\n   *        are never unknown.\n   *\n   * @param the document handle\n   *\n   * @param documentHandle A node handle that must identify a document.\n   * @return <code>true</code> if all declarations were processed;\n   *         <code>false</code> otherwise.\n   */\n  public boolean isDocumentAllDeclarationsProcessed(int documentHandle)\n  {\n    return true;\n  }\n\n  /**\n   *     5. [specified] A flag indicating whether this attribute was actually\n   *        specified in the start-tag of its element, or was defaulted from the\n   *        DTD.\n   *\n   * @param attributeHandle The attribute handle in question.\n   *\n   * @return <code>true</code> if the attribute was specified;\n   *         <code>false</code> if it was defaulted.\n   */\n  public abstract boolean isAttributeSpecified(int attributeHandle);\n\n\n  /**\n   * Directly call the\n   * characters method on the passed ContentHandler for the\n   * for the definition of a node's string-value). Multiple calls to the\n   * ContentHandler's characters methods may well occur for a single call to\n   * this method.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   * @param normalize true if the content should be normalized according to\n   * the rules for the XPath\n   * function.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public abstract void dispatchCharactersEvents(\n    int nodeHandle, org.xml.sax.ContentHandler ch, boolean normalize)\n      throws org.xml.sax.SAXException;\n\n  /**\n   * Directly create SAX parser events from a subtree.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public abstract void dispatchToEvents(\n    int nodeHandle, org.xml.sax.ContentHandler ch)\n      throws org.xml.sax.SAXException;\n\n  /**\n   * Return an DOM node for the given node.\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return A node representation of the DTM node.\n   */\n  public org.w3c.dom.Node getNode(int nodeHandle)\n  {\n    return new DTMNodeProxy(this, nodeHandle);\n  }\n\n\n  /**\n   * Append a child to the end of the document. Please note that the node\n   * is always cloned if it is owned by another document.\n   *\n   * <p>%REVIEW% \"End of the document\" needs to be defined more clearly.\n   * Does it become the last child of the Document? Of the root element?</p>\n   *\n   * @param newChild Must be a valid new node handle.\n   * @param clone true if the child should be cloned into the document.\n   * @param cloneDepth if the clone argument is true, specifies that the\n   *                   clone should include all it's children.\n   */\n  public void appendChild(int newChild, boolean clone, boolean cloneDepth)\n  {\n  }\n\n  /**\n   * Append a text node child that will be constructed from a string,\n   * to the end of the document.\n   *\n   * <p>%REVIEW% \"End of the document\" needs to be defined more clearly.\n   * Does it become the last child of the Document? Of the root element?</p>\n   *\n   * @param str Non-null reverence to a string.\n   */\n  public void appendTextChild(String str)\n  {\n  }\n\n  /**\n   * Simple error for asserts and the like.\n   *\n   * @param msg Error message to report.\n   */\n  protected void error(String msg)\n  {\n    throw new DTMException(msg);\n  }\n\n  /**\n   * Find out whether or not to strip whispace nodes.\n   *\n   *\n   * @return whether or not to strip whispace nodes.\n   */\n  protected boolean getShouldStripWhitespace()\n  {\n    return m_shouldStripWS;\n  }\n\n  /**\n   * Set whether to strip whitespaces and push in current value of\n   * m_shouldStripWS in m_shouldStripWhitespaceStack.\n   *\n   * @param shouldStrip Flag indicating whether to strip whitespace nodes\n   */\n  protected void pushShouldStripWhitespace(boolean shouldStrip)\n  {\n\n    m_shouldStripWS = shouldStrip;\n\n    if (null != m_shouldStripWhitespaceStack)\n      m_shouldStripWhitespaceStack.push(shouldStrip);\n  }\n\n  /**\n   * Set whether to strip whitespaces at this point by popping out\n   * m_shouldStripWhitespaceStack.\n   *\n   */\n  protected void popShouldStripWhitespace()\n  {\n    if (null != m_shouldStripWhitespaceStack)\n      m_shouldStripWS = m_shouldStripWhitespaceStack.popAndTop();\n  }\n\n  /**\n   * Set whether to strip whitespaces and set the top of the stack to\n   * the current value of m_shouldStripWS.\n   *\n   *\n   * @param shouldStrip Flag indicating whether to strip whitespace nodes\n   */\n  protected void setShouldStripWhitespace(boolean shouldStrip)\n  {\n\n    m_shouldStripWS = shouldStrip;\n\n    if (null != m_shouldStripWhitespaceStack)\n      m_shouldStripWhitespaceStack.setTop(shouldStrip);\n  }\n\n  /**\n   * A dummy routine to satisify the abstract interface. If the DTM\n   * implememtation that extends the default base requires notification\n   * of registration, they can override this method.\n   */\n   public void documentRegistration()\n   {\n   }\n\n  /**\n   * A dummy routine to satisify the abstract interface. If the DTM\n   * implememtation that extends the default base requires notification\n   * when the document is being released, they can override this method\n   */\n   public void documentRelease()\n   {\n   }\n\n   /**\n    * Migrate a DTM built with an old DTMManager to a new DTMManager.\n    * After the migration, the new DTMManager will treat the DTM as\n    * one that is built by itself.\n    * This is used to support DTM sharing between multiple transformations.\n    * @param manager the DTMManager\n    */\n   public void migrateTo(DTMManager mgr)\n   {\n     m_mgr = mgr;\n     if(mgr instanceof DTMManagerDefault)\n       m_mgrDefault=(DTMManagerDefault)mgr;     \n   }      \n\n\t /** Query which DTMManager this DTM is currently being handled by.\n\t  * \n\t  * %REVEW% Should this become part of the base DTM API?\n\t  * \n\t  * @return a DTMManager, or null if this is a \"stand-alone\" DTM.\n\t  */\n\t public DTMManager getManager()\n\t {\n\t\t return m_mgr;\n\t }\n\n\t /** Query which DTMIDs this DTM is currently using within the DTMManager.\n\t  * \n\t  * %REVEW% Should this become part of the base DTM API?\n\t  * \n\t  * @return an IntVector, or null if this is a \"stand-alone\" DTM.\n\t  */\n\t public SuballocatedIntVector getDTMIDs()\n\t {\n\t\t if(m_mgr==null) return null;\n\t\t return m_dtmIdent;", "functions": [{"function_name": "ensureSizeOfIndex", "code": "  protected void ensureSizeOfIndex(int namespaceID, int LocalNameID)\n  {\n\n    if (null == m_elemIndexes)\n    {\n      m_elemIndexes = new int[namespaceID + 20][][];\n    }\n    else if (m_elemIndexes.length <= namespaceID)\n    {\n      int[][][] indexes = m_elemIndexes;\n\n      m_elemIndexes = new int[namespaceID + 20][][];\n\n      System.arraycopy(indexes, 0, m_elemIndexes, 0, indexes.length);\n    }\n\n    int[][] localNameIndex = m_elemIndexes[namespaceID];\n\n    if (null == localNameIndex)\n    {\n      localNameIndex = new int[LocalNameID + 100][];\n      m_elemIndexes[namespaceID] = localNameIndex;\n    }\n    else if (localNameIndex.length <= LocalNameID)\n    {\n      int[][] indexes = localNameIndex;\n\n      localNameIndex = new int[LocalNameID + 100][];\n\n      System.arraycopy(indexes, 0, localNameIndex, 0, indexes.length);\n\n      m_elemIndexes[namespaceID] = localNameIndex;\n    }\n\n    int[] elemHandles = localNameIndex[LocalNameID];\n\n    if (null == elemHandles)\n    {\n      elemHandles = new int[128];\n      localNameIndex[LocalNameID] = elemHandles;\n      elemHandles[0] = 1;\n    }\n    else if (elemHandles.length <= elemHandles[0] + 1)\n    {\n      int[] indexes = elemHandles;\n\n      elemHandles = new int[elemHandles[0] + 1024];\n\n      System.arraycopy(indexes, 0, elemHandles, 0, indexes.length);\n\n      localNameIndex[LocalNameID] = elemHandles;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "VAR_DECL", "ASSIGN", "ASSIGN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [3, 10], [3, 11], [5, 12], [5, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [8, 20], [14, 21], [1, 22], [1, 23], [1, 24], [10, 25], [3, 26], [3, 27], [12, 28], [5, 29], [8, 30], [8, 31], [8, 32], [21, 33], [22, 34], [10, 35], [10, 36], [10, 37], [12, 38], [12, 39], [31, 40], [31, 41], [24, 42], [36, 43], [36, 44], [27, 45], [38, 46], [38, 47], [29, 48], [32, 49], [21, 50], [22, 51], [37, 52], [45, 53], [39, 54], [48, 55], [49, 56], [52, 57], [54, 58], [49, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 3], [11, 3], [12, 5], [13, 5], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 8], [21, 14], [22, 1], [23, 1], [24, 1], [25, 10], [26, 3], [27, 3], [28, 12], [29, 5], [30, 8], [31, 8], [32, 8], [33, 21], [34, 22], [35, 10], [36, 10], [37, 10], [38, 12], [39, 12], [40, 31], [41, 31], [42, 24], [43, 36], [44, 36], [45, 27], [46, 38], [47, 38], [48, 29], [49, 32], [50, 21], [51, 22], [52, 37], [53, 45], [54, 39], [55, 48], [56, 49], [57, 52], [58, 54], [59, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "indexNode", "code": "  protected void indexNode(int expandedTypeID, int identity)\n  {\n\n    ExpandedNameTable ent = m_expandedNameTable;\n    short type = ent.getType(expandedTypeID);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n      int namespaceID = ent.getNamespaceID(expandedTypeID);\n      int localNameID = ent.getLocalNameID(expandedTypeID);\n\n      ensureSizeOfIndex(namespaceID, localNameID);\n\n      int[] index = m_elemIndexes[namespaceID][localNameID];\n\n      index[index[0]] = identity;\n\n      index[0]++;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [1, 11], [1, 12], [8, 13], [9, 14], [1, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 1], [12, 1], [13, 8], [14, 9], [15, 1], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "findGTE", "code": "  protected int findGTE(int[] list, int start, int len, int value)\n  {\n\n    int low = start;\n    int high = start + (len - 1);\n    int end = high;\n\n    while (low <= high)\n    {\n      int mid = (low + high) / 2;\n      int c = list[mid];\n\n      if (c > value)\n        high = mid - 1;\n      else if (c < value)\n        low = mid + 1;\n      else\n        return mid;\n    }\n\n    return (low <= end && list[low] > value) ? low : -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [10, 12], [10, 13], [2, 14], [2, 15], [2, 16], [4, 17], [13, 18], [13, 19], [14, 20], [14, 21], [17, 22], [20, 23], [20, 24], [14, 25], [16, 26], [22, 27], [20, 28], [25, 29], [26, 30], [26, 31], [28, 32], [29, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 10], [13, 10], [14, 2], [15, 2], [16, 2], [17, 4], [18, 13], [19, 13], [20, 14], [21, 14], [22, 17], [23, 20], [24, 20], [25, 14], [26, 16], [27, 22], [28, 20], [29, 25], [30, 26], [31, 26], [32, 28], [33, 29], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "findElementFromIndex", "code": "  int findElementFromIndex(int nsIndex, int lnIndex, int firstPotential)\n  {\n\n    int[][][] indexes = m_elemIndexes;\n\n    if (null != indexes && nsIndex < indexes.length)\n    {\n      int[][] lnIndexs = indexes[nsIndex];\n\n      if (null != lnIndexs && lnIndex < lnIndexs.length)\n      {\n        int[] elems = lnIndexs[lnIndex];\n\n        if (null != elems)\n        {\n          int pos = findGTE(elems, 1, elems[0], firstPotential);\n\n          if (pos > -1)\n          {\n            return elems[pos];\n          }\n        }\n      }\n    }\n\n    return NOTPROCESSED;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [7, 11], [8, 12], [11, 13], [8, 14], [8, 15], [12, 16], [12, 17], [14, 18], [17, 19], [14, 20], [14, 21], [18, 22], [20, 23], [20, 24], [23, 25], [21, 26], [26, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 7], [12, 8], [13, 11], [14, 8], [15, 8], [16, 12], [17, 12], [18, 14], [19, 17], [20, 14], [21, 14], [22, 18], [23, 20], [24, 20], [25, 23], [26, 21], [27, 26], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "getNextNodeIdentity", "code": "  protected abstract int getNextNodeIdentity(int identity);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "nextNode", "code": "  protected abstract boolean nextNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getNumberOfNodes", "code": "  protected abstract int getNumberOfNodes();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "_type", "code": "  protected short _type(int identity)\n  {\n\n    int info = _exptype(identity);\n\n    if (NULL != info)\n      return m_expandedNameTable.getType(info);\n    else\n      return NULL;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "_exptype", "code": "  protected int _exptype(int identity)\n  {\n  \tif (identity == DTM.NULL)\n  \treturn NULL;\n    while (identity>=m_size)\n    {\n      if (!nextNode() && identity >= m_size)\n        return NULL;\n    }\n    return m_exptype.elementAt(identity);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [2, 9], [9, 10], [9, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 2], [10, 9], [11, 9], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "_level", "code": "  protected int _level(int identity)\n  {\n    while (identity>=m_size)\n    {\n      boolean isMore = nextNode();\n      if (!isMore && identity >= m_size)\n        return NULL;\n    }\n\n    int i=0;\n    while(NULL != (identity=_parent(identity)))\n      ++i;\n    return i;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [6, 8], [3, 9], [4, 10], [4, 11], [8, 12], [10, 13], [10, 14], [14, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 6], [9, 3], [10, 4], [11, 4], [12, 8], [13, 10], [14, 10], [15, 14], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "_firstch", "code": "  protected int _firstch(int identity)\n  {\n\n    int info = (identity >= m_size) ? NOTPROCESSED : m_firstch.elementAt(identity);\n\n    while (info == NOTPROCESSED)\n    {\n      boolean isMore = nextNode();\n\n      if (identity >= m_size &&!isMore)\n        return NULL;\n      else\n      {\n        info = m_firstch.elementAt(identity);\n        if(info == NOTPROCESSED && !isMore)\n          return NULL;\n      }\n    }\n\n    return info;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "COND_EXPR", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [3, 8], [6, 9], [6, 10], [8, 11], [8, 12], [6, 13], [10, 14], [7, 15], [13, 16], [13, 17], [6, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 3], [9, 6], [10, 6], [11, 8], [12, 8], [13, 6], [14, 10], [15, 7], [16, 13], [17, 13], [18, 6], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "_nextsib", "code": "  protected int _nextsib(int identity)\n  {\n    int info = (identity >= m_size) ? NOTPROCESSED : m_nextsib.elementAt(identity);\n\n    while (info == NOTPROCESSED)\n    {\n      boolean isMore = nextNode();\n\n      if (identity >= m_size &&!isMore)\n        return NULL;\n      else\n      {\n        info = m_nextsib.elementAt(identity);\n        if(info == NOTPROCESSED && !isMore)\n          return NULL;\n      }\n    }\n\n    return info;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "COND_EXPR", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [3, 8], [6, 9], [6, 10], [8, 11], [8, 12], [6, 13], [10, 14], [7, 15], [13, 16], [13, 17], [6, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 3], [9, 6], [10, 6], [11, 8], [12, 8], [13, 6], [14, 10], [15, 7], [16, 13], [17, 13], [18, 6], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "_prevsib", "code": "  protected int _prevsib(int identity)\n  {\n\n    if (identity < m_size)\n      return m_prevsib.elementAt(identity);\n\n    while (true)\n    {\n      boolean isMore = nextNode();\n\n      if (identity >= m_size && !isMore)\n        return NULL;\n      else if (identity < m_size)\n        return m_prevsib.elementAt(identity);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [5, 9], [7, 10], [7, 11], [7, 12], [10, 13], [10, 14], [12, 15], [8, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 5], [10, 7], [11, 7], [12, 7], [13, 10], [14, 10], [15, 12], [16, 8], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "_parent", "code": "  protected int _parent(int identity)\n  {\n\n    if (identity < m_size)\n      return m_parent.elementAt(identity);\n\n    while (true)\n    {\n      boolean isMore = nextNode();\n\n      if (identity >= m_size && !isMore)\n        return NULL;\n      else if (identity < m_size)\n        return m_parent.elementAt(identity);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [5, 9], [7, 10], [7, 11], [7, 12], [10, 13], [10, 14], [12, 15], [8, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 5], [10, 7], [11, 7], [12, 7], [13, 10], [14, 10], [15, 12], [16, 8], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "dumpDTM", "code": "  public void dumpDTM(OutputStream os)\n  {\n    try\n    {\n      if(os==null)\n      {\n\t      File f = new File(\"DTMDump\"+((Object)this).hashCode()+\".txt\");\n \t      System.err.println(\"Dumping... \"+f.getAbsolutePath());\n \t      os=new FileOutputStream(f);\n      }\n      PrintStream ps = new PrintStream(os);\n\n      while (nextNode()){}\n\n      int nRecords = m_size;\n\n      ps.println(\"Total nodes: \" + nRecords);\n\n      for (int index = 0; index < nRecords; ++index)\n      {\n      \tint i=makeNodeHandle(index);\n        ps.println(\"=========== index=\" + index + \" handle=\" + i + \" ===========\");\n        ps.println(\"NodeName: \" + getNodeName(i));\n        ps.println(\"NodeNameX: \" + getNodeNameX(i));\n        ps.println(\"LocalName: \" + getLocalName(i));\n        ps.println(\"NamespaceURI: \" + getNamespaceURI(i));\n        ps.println(\"Prefix: \" + getPrefix(i));\n\n        int exTypeID = _exptype(index);\n\n        ps.println(\"Expanded Type ID: \"\n                           + Integer.toHexString(exTypeID));\n\n        int type = _type(index);\n        String typestring;\n\n        switch (type)\n        {\n        case DTM.ATTRIBUTE_NODE :\n          typestring = \"ATTRIBUTE_NODE\";\n          break;\n        case DTM.CDATA_SECTION_NODE :\n          typestring = \"CDATA_SECTION_NODE\";\n          break;\n        case DTM.COMMENT_NODE :\n          typestring = \"COMMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_FRAGMENT_NODE :\n          typestring = \"DOCUMENT_FRAGMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_NODE :\n          typestring = \"DOCUMENT_NODE\";\n          break;\n        case DTM.DOCUMENT_TYPE_NODE :\n          typestring = \"DOCUMENT_NODE\";\n          break;\n        case DTM.ELEMENT_NODE :\n          typestring = \"ELEMENT_NODE\";\n          break;\n        case DTM.ENTITY_NODE :\n          typestring = \"ENTITY_NODE\";\n          break;\n        case DTM.ENTITY_REFERENCE_NODE :\n          typestring = \"ENTITY_REFERENCE_NODE\";\n          break;\n        case DTM.NAMESPACE_NODE :\n          typestring = \"NAMESPACE_NODE\";\n          break;\n        case DTM.NOTATION_NODE :\n          typestring = \"NOTATION_NODE\";\n          break;\n        case DTM.NULL :\n          typestring = \"NULL\";\n          break;\n        case DTM.PROCESSING_INSTRUCTION_NODE :\n          typestring = \"PROCESSING_INSTRUCTION_NODE\";\n          break;\n        case DTM.TEXT_NODE :\n          typestring = \"TEXT_NODE\";\n          break;\n        default :\n          typestring = \"Unknown!\";\n          break;\n        }\n\n        ps.println(\"Type: \" + typestring);\n\n        int firstChild = _firstch(index);\n\n        if (DTM.NULL == firstChild)\n          ps.println(\"First child: DTM.NULL\");\n        else if (NOTPROCESSED == firstChild)\n          ps.println(\"First child: NOTPROCESSED\");\n        else\n          ps.println(\"First child: \" + firstChild);\n\n        if (m_prevsib != null)\n        {\n          int prevSibling = _prevsib(index);\n\n          if (DTM.NULL == prevSibling)\n            ps.println(\"Prev sibling: DTM.NULL\");\n          else if (NOTPROCESSED == prevSibling)\n            ps.println(\"Prev sibling: NOTPROCESSED\");\n          else\n            ps.println(\"Prev sibling: \" + prevSibling);\n        }\n\n        int nextSibling = _nextsib(index);\n\n        if (DTM.NULL == nextSibling)\n          ps.println(\"Next sibling: DTM.NULL\");\n        else if (NOTPROCESSED == nextSibling)\n          ps.println(\"Next sibling: NOTPROCESSED\");\n        else\n          ps.println(\"Next sibling: \" + nextSibling);\n\n        int parent = _parent(index);\n\n        if (DTM.NULL == parent)\n          ps.println(\"Parent: DTM.NULL\");\n        else if (NOTPROCESSED == parent)\n          ps.println(\"Parent: NOTPROCESSED\");\n        else\n          ps.println(\"Parent: \" + parent);\n\n        int level = _level(index);\n\n        ps.println(\"Level: \" + level);\n        ps.println(\"Node Value: \" + getNodeValue(i));\n        ps.println(\"String Value: \" + getStringValue(i));\n      }\n    }\n    catch(IOException ioe)\n    {\n      ioe.printStackTrace(System.err);\n      System.exit(-1);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [1, 10], [6, 11], [8, 12], [3, 13], [3, 14], [4, 15], [4, 16], [4, 17], [4, 18], [4, 19], [4, 20], [4, 21], [4, 22], [4, 23], [4, 24], [4, 25], [4, 26], [4, 27], [10, 28], [7, 29], [8, 30], [12, 31], [13, 32], [4, 33], [4, 34], [4, 35], [16, 36], [16, 37], [18, 38], [18, 39], [20, 40], [21, 41], [21, 42], [4, 43], [4, 44], [4, 45], [4, 46], [4, 47], [4, 48], [4, 49], [4, 50], [4, 51], [28, 52], [8, 53], [8, 54], [33, 55], [34, 56], [35, 57], [15, 58], [36, 59], [16, 60], [17, 61], [38, 62], [18, 63], [19, 64], [20, 65], [20, 66], [40, 67], [41, 68], [21, 69], [22, 70], [43, 71], [23, 72], [23, 73], [23, 74], [23, 75], [23, 76], [23, 77], [23, 78], [23, 79], [23, 80], [23, 81], [23, 82], [23, 83], [23, 84], [23, 85], [23, 86], [25, 87], [44, 88], [26, 89], [45, 90], [46, 91], [47, 92], [48, 93], [49, 94], [50, 95], [27, 96], [53, 97], [54, 98], [30, 99], [55, 100], [55, 101], [56, 102], [56, 103], [57, 104], [36, 105], [36, 106], [60, 107], [38, 108], [38, 109], [63, 110], [65, 111], [65, 112], [41, 113], [41, 114], [69, 115], [71, 116], [23, 117], [23, 118], [23, 119], [23, 120], [23, 121], [23, 122], [23, 123], [23, 124], [23, 125], [23, 126], [23, 127], [23, 128], [23, 129], [23, 130], [23, 131], [88, 132], [88, 133], [90, 134], [90, 135], [91, 136], [91, 137], [92, 138], [92, 139], [93, 140], [93, 141], [94, 142], [94, 143], [95, 144], [95, 145], [98, 146], [98, 147], [99, 148], [105, 149], [106, 150], [108, 151], [109, 152], [111, 153], [65, 154], [66, 155], [113, 156], [114, 157], [117, 158], [118, 159], [119, 160], [120, 161], [121, 162], [122, 163], [123, 164], [124, 165], [125, 166], [126, 167], [127, 168], [128, 169], [129, 170], [130, 171], [131, 172], [145, 173], [148, 174], [148, 175], [149, 176], [151, 177], [111, 178], [111, 179], [154, 180], [156, 181], [173, 182], [173, 183], [175, 184], [178, 185], [179, 186], [183, 187], [185, 188], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 1], [11, 6], [12, 8], [13, 3], [14, 3], [15, 4], [16, 4], [17, 4], [18, 4], [19, 4], [20, 4], [21, 4], [22, 4], [23, 4], [24, 4], [25, 4], [26, 4], [27, 4], [28, 10], [29, 7], [30, 8], [31, 12], [32, 13], [33, 4], [34, 4], [35, 4], [36, 16], [37, 16], [38, 18], [39, 18], [40, 20], [41, 21], [42, 21], [43, 4], [44, 4], [45, 4], [46, 4], [47, 4], [48, 4], [49, 4], [50, 4], [51, 4], [52, 28], [53, 8], [54, 8], [55, 33], [56, 34], [57, 35], [58, 15], [59, 36], [60, 16], [61, 17], [62, 38], [63, 18], [64, 19], [65, 20], [66, 20], [67, 40], [68, 41], [69, 21], [70, 22], [71, 43], [72, 23], [73, 23], [74, 23], [75, 23], [76, 23], [77, 23], [78, 23], [79, 23], [80, 23], [81, 23], [82, 23], [83, 23], [84, 23], [85, 23], [86, 23], [87, 25], [88, 44], [89, 26], [90, 45], [91, 46], [92, 47], [93, 48], [94, 49], [95, 50], [96, 27], [97, 53], [98, 54], [99, 30], [100, 55], [101, 55], [102, 56], [103, 56], [104, 57], [105, 36], [106, 36], [107, 60], [108, 38], [109, 38], [110, 63], [111, 65], [112, 65], [113, 41], [114, 41], [115, 69], [116, 71], [117, 23], [118, 23], [119, 23], [120, 23], [121, 23], [122, 23], [123, 23], [124, 23], [125, 23], [126, 23], [127, 23], [128, 23], [129, 23], [130, 23], [131, 23], [132, 88], [133, 88], [134, 90], [135, 90], [136, 91], [137, 91], [138, 92], [139, 92], [140, 93], [141, 93], [142, 94], [143, 94], [144, 95], [145, 95], [146, 98], [147, 98], [148, 99], [149, 105], [150, 106], [151, 108], [152, 109], [153, 111], [154, 65], [155, 66], [156, 113], [157, 114], [158, 117], [159, 118], [160, 119], [161, 120], [162, 121], [163, 122], [164, 123], [165, 124], [166, 125], [167, 126], [168, 127], [169, 128], [170, 129], [171, 130], [172, 131], [173, 145], [174, 148], [175, 148], [176, 149], [177, 151], [178, 111], [179, 111], [180, 154], [181, 156], [182, 173], [183, 173], [184, 175], [185, 178], [186, 179], [187, 183], [188, 185], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188]]}, {"function_name": "dumpNode", "code": "  public String dumpNode(int nodeHandle)\n  {\t  \n\t  if(nodeHandle==DTM.NULL)\n\t\t  return \"[null]\";\n\t\t  \n        String typestring;\n        switch (getNodeType(nodeHandle))\n        {\n        case DTM.ATTRIBUTE_NODE :\n          typestring = \"ATTR\";\n          break;\n        case DTM.CDATA_SECTION_NODE :\n          typestring = \"CDATA\";\n          break;\n        case DTM.COMMENT_NODE :\n          typestring = \"COMMENT\";\n          break;\n        case DTM.DOCUMENT_FRAGMENT_NODE :\n          typestring = \"DOC_FRAG\";\n          break;\n        case DTM.DOCUMENT_NODE :\n          typestring = \"DOC\";\n          break;\n        case DTM.DOCUMENT_TYPE_NODE :\n          typestring = \"DOC_TYPE\";\n          break;\n        case DTM.ELEMENT_NODE :\n          typestring = \"ELEMENT\";\n          break;\n        case DTM.ENTITY_NODE :\n          typestring = \"ENTITY\";\n          break;\n        case DTM.ENTITY_REFERENCE_NODE :\n          typestring = \"ENT_REF\";\n          break;\n        case DTM.NAMESPACE_NODE :\n          typestring = \"NAMESPACE\";\n          break;\n        case DTM.NOTATION_NODE :\n          typestring = \"NOTATION\";\n          break;\n        case DTM.NULL :\n          typestring = \"null\";\n          break;\n        case DTM.PROCESSING_INSTRUCTION_NODE :\n          typestring = \"PI\";\n          break;\n        case DTM.TEXT_NODE :\n          typestring = \"TEXT\";\n          break;\n        default :\n          typestring = \"Unknown!\";\n          break;\n        }\n\n      StringBuffer sb=new StringBuffer();\n\t  sb.append(\"[\"+nodeHandle+\": \"+typestring+\n\t\t\t\t\"(0x\"+Integer.toHexString(getExpandedTypeID(nodeHandle))+\") \"+\n\t\t\t\tgetNodeNameX(nodeHandle)+\" {\"+getNamespaceURI(nodeHandle)+\"}\"+\n\t\t\t\t\"=\\\"\"+ getNodeValue(nodeHandle)+\"\\\"]\");\n\t  return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "SWITCH", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [3, 9], [5, 10], [5, 11], [8, 12], [2, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [10, 29], [12, 30], [12, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [3, 40], [3, 41], [3, 42], [3, 43], [3, 44], [3, 45], [3, 46], [31, 47], [31, 48], [32, 49], [33, 50], [34, 51], [35, 52], [36, 53], [37, 54], [38, 55], [39, 56], [40, 57], [41, 58], [42, 59], [43, 60], [44, 61], [45, 62], [46, 63], [48, 64], [48, 65], [65, 66], [65, 67], [67, 68], [67, 69], [69, 70], [69, 71], [71, 72], [71, 73], [73, 74], [73, 75], [75, 76], [75, 77], [76, 78], [77, 79], [77, 80], [80, 81], [81, 82], [81, 83], [83, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 3], [10, 5], [11, 5], [12, 8], [13, 2], [14, 3], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 3], [27, 3], [28, 3], [29, 10], [30, 12], [31, 12], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 3], [41, 3], [42, 3], [43, 3], [44, 3], [45, 3], [46, 3], [47, 31], [48, 31], [49, 32], [50, 33], [51, 34], [52, 35], [53, 36], [54, 37], [55, 38], [56, 39], [57, 40], [58, 41], [59, 42], [60, 43], [61, 44], [62, 45], [63, 46], [64, 48], [65, 48], [66, 65], [67, 65], [68, 67], [69, 67], [70, 69], [71, 69], [72, 71], [73, 71], [74, 73], [75, 73], [76, 75], [77, 75], [78, 76], [79, 77], [80, 77], [81, 80], [82, 81], [83, 81], [84, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "setFeature", "code": "  public void setFeature(String featureId, boolean state){}", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasChildNodes", "code": "  public boolean hasChildNodes(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int firstChild = _firstch(identity);\n\n    return firstChild != DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "makeNodeHandle", "code": "  final public int makeNodeHandle(int nodeIdentity)\n  {\n    if(NULL==nodeIdentity) return NULL;\n\t\t\n    if(JJK_DEBUG && nodeIdentity>DTMManager.IDENT_NODE_DEFAULT)\n      System.err.println(\"GONK! (only useful in limited situations)\");\n\n    return m_dtmIdent.elementAt(nodeIdentity >>> DTMManager.IDENT_DTM_NODE_BITS)\n      + (nodeIdentity & DTMManager.IDENT_NODE_DEFAULT) ;\t\t\t\t\t\t\t\t\t\t\t", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [5, 9], [5, 10], [2, 11], [6, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 5], [10, 5], [11, 2], [12, 6], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "makeNodeIdentity", "code": "  final public int makeNodeIdentity(int nodeHandle)\n  {\n    if(NULL==nodeHandle) return NULL;\n\n    if(m_mgrDefault!=null)\n    {\n\n      int whichDTMindex=nodeHandle>>>DTMManager.IDENT_DTM_NODE_BITS;\n\n      if(m_mgrDefault.m_dtms[whichDTMindex]!=this)\n\treturn NULL;\n      else\n\treturn\n\t  m_mgrDefault.m_dtm_offsets[whichDTMindex]\n\t  | (nodeHandle & DTMManager.IDENT_NODE_DEFAULT);\n    }\n\t  \n    int whichDTMid=m_dtmIdent.indexOf(nodeHandle & DTMManager.IDENT_DTM_DEFAULT);\n    return (whichDTMid==NULL) \n      ? NULL\n      : (whichDTMid << DTMManager.IDENT_DTM_NODE_BITS)\n      + (nodeHandle & DTMManager.IDENT_NODE_DEFAULT);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "PARAM", "COND_EXPR", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [4, 9], [6, 10], [6, 11], [2, 12], [3, 13], [3, 14], [7, 15], [10, 16], [10, 17], [12, 18], [13, 19], [13, 20], [13, 21], [19, 22], [14, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 4], [10, 6], [11, 6], [12, 2], [13, 3], [14, 3], [15, 7], [16, 10], [17, 10], [18, 12], [19, 13], [20, 13], [21, 13], [22, 19], [23, 14], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getFirstChild", "code": "  public int getFirstChild(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int firstChild = _firstch(identity);\n\n    return makeNodeHandle(firstChild);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getTypedFirstChild", "code": "  public int getTypedFirstChild(int nodeHandle, int nodeType)\n  {\n\n    int firstChild, eType;\n    if (nodeType < DTM.NTYPES) {\n      for (firstChild = _firstch(makeNodeIdentity(nodeHandle));\n           firstChild != DTM.NULL;\n           firstChild = _nextsib(firstChild)) {\n        eType = _exptype(firstChild);\n        if (eType == nodeType\n               || (eType >= DTM.NTYPES\n                      && m_expandedNameTable.getType(eType) == nodeType)) {\n          return makeNodeHandle(firstChild);\n        }\n      }\n    } else {\n      for (firstChild = _firstch(makeNodeIdentity(nodeHandle));\n           firstChild != DTM.NULL;\n           firstChild = _nextsib(firstChild)) {\n        if (_exptype(firstChild) == nodeType) {\n          return makeNodeHandle(firstChild);\n        }\n      }\n    }\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "LOOP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "CALL", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [7, 9], [7, 10], [7, 11], [8, 12], [8, 13], [8, 14], [7, 15], [9, 16], [11, 17], [8, 18], [12, 19], [14, 20], [15, 21], [17, 22], [18, 23], [8, 24], [20, 25], [15, 26], [21, 27], [18, 28], [23, 29], [23, 30], [24, 31], [26, 32], [28, 33], [29, 34], [29, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 7], [10, 7], [11, 7], [12, 8], [13, 8], [14, 8], [15, 7], [16, 9], [17, 11], [18, 8], [19, 12], [20, 14], [21, 15], [22, 17], [23, 18], [24, 8], [25, 20], [26, 15], [27, 21], [28, 18], [29, 23], [30, 23], [31, 24], [32, 26], [33, 28], [34, 29], [35, 29], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getLastChild", "code": "  public int getLastChild(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int child = _firstch(identity);\n    int lastChild = DTM.NULL;\n\n    while (child != DTM.NULL)\n    {\n      lastChild = child;\n      child = _nextsib(child);\n    }\n\n    return makeNodeHandle(lastChild);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [5, 10], [2, 11], [2, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 5], [11, 2], [12, 2], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getAttributeNode", "code": "  public abstract int getAttributeNode(int nodeHandle, String namespaceURI,\n                                       String name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFirstAttribute", "code": "  public int getFirstAttribute(int nodeHandle)\n  {\n    int nodeID = makeNodeIdentity(nodeHandle);\n\n    return makeNodeHandle(getFirstAttributeIdentity(nodeID));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getFirstAttributeIdentity", "code": "  protected int getFirstAttributeIdentity(int identity) {\n    int type = _type(identity);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n      while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n      {\n\n        type = _type(identity);\n\n        if (type == DTM.ATTRIBUTE_NODE)\n        {\n          return identity;\n        }\n        else if (DTM.NAMESPACE_NODE != type)\n        {\n          break;\n        }\n      }\n    }\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "CALL", "BINARY_OP", "IF", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "RETURN", "CALL", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [6, 9], [8, 10], [9, 11], [9, 12], [6, 13], [10, 14], [11, 15], [9, 16], [13, 17], [11, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 6], [10, 8], [11, 9], [12, 9], [13, 6], [14, 10], [15, 11], [16, 9], [17, 13], [18, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getTypedAttribute", "code": "  protected int getTypedAttribute(int nodeHandle, int attType) {\n    int type = getNodeType(nodeHandle);\n    if (DTM.ELEMENT_NODE == type) {\n      int identity = makeNodeIdentity(nodeHandle);\n\n      while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n      {\n        type = _type(identity);\n\n        if (type == DTM.ATTRIBUTE_NODE)\n        {\n          if (_exptype(identity) == attType) return makeNodeHandle(identity);\n        }\n        else if (DTM.NAMESPACE_NODE != type)\n        {\n          break;\n        }\n      }\n    }\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "IF", "ASSIGN", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "IF", "CALL", "BREAK_CONTINUE", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [3, 9], [7, 10], [7, 11], [10, 12], [8, 13], [11, 14], [11, 15], [7, 16], [12, 17], [14, 18], [11, 19], [16, 20], [14, 21], [19, 22], [19, 23], [22, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 3], [10, 7], [11, 7], [12, 10], [13, 8], [14, 11], [15, 11], [16, 7], [17, 12], [18, 14], [19, 11], [20, 16], [21, 14], [22, 19], [23, 19], [24, 22], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getNextSibling", "code": "  public int getNextSibling(int nodeHandle)\n  {\n  \tif (nodeHandle == DTM.NULL)\n  \treturn DTM.NULL;\n    return makeNodeHandle(_nextsib(makeNodeIdentity(nodeHandle)));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getTypedNextSibling", "code": "  public int getTypedNextSibling(int nodeHandle, int nodeType)\n  {\n  \tif (nodeHandle == DTM.NULL)\n  \treturn DTM.NULL;\n  \tint node = makeNodeIdentity(nodeHandle);\n  \tint eType;\n  \twhile ((node = _nextsib(node)) != DTM.NULL && \n  \t((eType = _exptype(node)) != nodeType && \n  \tm_expandedNameTable.getType(eType)!= nodeType)); \n        \n    return (node == DTM.NULL ? DTM.NULL : makeNodeHandle(node));", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [5, 10], [5, 11], [8, 12], [8, 13], [9, 14], [9, 15], [4, 16], [14, 17], [14, 18], [15, 19], [17, 20], [18, 21], [19, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 5], [11, 5], [12, 8], [13, 8], [14, 9], [15, 9], [16, 4], [17, 14], [18, 14], [19, 15], [20, 17], [21, 18], [22, 19], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getPreviousSibling", "code": "  public int getPreviousSibling(int nodeHandle)\n  {\n    if (nodeHandle == DTM.NULL)\n      return DTM.NULL;\n    \n    if (m_prevsib != null)\n      return makeNodeHandle(_prevsib(makeNodeIdentity(nodeHandle)));\n    else\n    {\n      int nodeID = makeNodeIdentity(nodeHandle);\n      int parent = _parent(nodeID);\n      int node = _firstch(parent);\n      int result = DTM.NULL;\n      while (node != nodeID)\n      {\n        result = node;\n        node = _nextsib(node);\n      }\n      return makeNodeHandle(result);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [2, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [4, 14], [5, 15], [8, 16], [9, 17], [14, 18], [11, 19], [12, 20], [13, 21], [18, 22], [9, 23], [9, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 2], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 4], [15, 5], [16, 8], [17, 9], [18, 14], [19, 11], [20, 12], [21, 13], [22, 18], [23, 9], [24, 9], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getNextAttribute", "code": "  public int getNextAttribute(int nodeHandle) {\n    int nodeID = makeNodeIdentity(nodeHandle);\n\n    if (_type(nodeID) == DTM.ATTRIBUTE_NODE) {\n      return makeNodeHandle(getNextAttributeIdentity(nodeID));\n    }\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNextAttributeIdentity", "code": "  protected int getNextAttributeIdentity(int identity) {\n    while (DTM.NULL != (identity = getNextNodeIdentity(identity))) {\n      int type = _type(identity);\n\n      if (type == DTM.ATTRIBUTE_NODE) {\n        return identity;\n      } else if (type != DTM.NAMESPACE_NODE) {\n        break;\n      }\n    }\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "CALL", "BREAK_CONTINUE"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [5, 8], [5, 9], [7, 10], [8, 11], [5, 12], [6, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 5], [9, 5], [10, 7], [11, 8], [12, 5], [13, 6], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "declareNamespaceInContext", "code": "  protected void declareNamespaceInContext(int elementNodeIndex,int namespaceNodeIndex)\n  {\n    SuballocatedIntVector nsList=null;\n    if(m_namespaceDeclSets==null)\n      {\n\n        m_namespaceDeclSetElements=new SuballocatedIntVector(32);\n        m_namespaceDeclSetElements.addElement(elementNodeIndex);\n        m_namespaceDeclSets=new Vector();\n        nsList=new SuballocatedIntVector(32);\n        m_namespaceDeclSets.addElement(nsList);\n      }\n    else\n      {\n        int last=m_namespaceDeclSetElements.size()-1;\n\t        \n        if(last>=0 && elementNodeIndex==m_namespaceDeclSetElements.elementAt(last))\n          {\n            nsList=(SuballocatedIntVector)m_namespaceDeclSets.elementAt(last);\n          }\n      }\n    if(nsList==null)\n      {\n        m_namespaceDeclSetElements.addElement(elementNodeIndex);\n\n        SuballocatedIntVector inherited =\n                                findNamespaceContext(_parent(elementNodeIndex));\n\n        if (inherited!=null) {\n            int isize=inherited.size();\n\n            nsList=new SuballocatedIntVector(Math.max(Math.min(isize+16,2048),\n                                                      32));\n\n            for(int i=0;i<isize;++i)\n              {\n                nsList.addElement(inherited.elementAt(i));\n              }\n        } else {\n            nsList=new SuballocatedIntVector(32);\n        }\n\n        m_namespaceDeclSets.addElement(nsList);\n      }\n\n    int newEType=_exptype(namespaceNodeIndex);\n\n    for(int i=nsList.size()-1;i>=0;--i)\n      {\n        if(newEType==getExpandedTypeID(nsList.elementAt(i)))\n          {\n            nsList.setElementAt(makeNodeHandle(namespaceNodeIndex),i);\n            return;\n          }\n      }\n    nsList.addElement(makeNodeHandle(namespaceNodeIndex));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [8, 12], [1, 13], [9, 14], [2, 15], [3, 16], [3, 17], [10, 18], [4, 19], [4, 20], [11, 21], [5, 22], [13, 23], [1, 24], [3, 25], [16, 26], [3, 27], [19, 28], [4, 29], [4, 30], [4, 31], [4, 32], [4, 33], [13, 34], [23, 35], [24, 36], [24, 37], [16, 38], [16, 39], [26, 40], [17, 41], [28, 42], [28, 43], [20, 44], [30, 45], [31, 46], [33, 47], [13, 48], [35, 49], [16, 50], [38, 51], [16, 52], [41, 53], [19, 54], [42, 55], [43, 56], [44, 57], [44, 58], [45, 59], [47, 60], [48, 61], [50, 62], [52, 63], [39, 64], [62, 65], [38, 66], [38, 67], [63, 68], [54, 69], [66, 70], [68, 71], [68, 72], [72, 73], [72, 74], [74, 75], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 8], [13, 1], [14, 9], [15, 2], [16, 3], [17, 3], [18, 10], [19, 4], [20, 4], [21, 11], [22, 5], [23, 13], [24, 1], [25, 3], [26, 16], [27, 3], [28, 19], [29, 4], [30, 4], [31, 4], [32, 4], [33, 4], [34, 13], [35, 23], [36, 24], [37, 24], [38, 16], [39, 16], [40, 26], [41, 17], [42, 28], [43, 28], [44, 20], [45, 30], [46, 31], [47, 33], [48, 13], [49, 35], [50, 16], [51, 38], [52, 16], [53, 41], [54, 19], [55, 42], [56, 43], [57, 44], [58, 44], [59, 45], [60, 47], [61, 48], [62, 50], [63, 52], [64, 39], [65, 62], [66, 38], [67, 38], [68, 63], [69, 54], [70, 66], [71, 68], [72, 68], [73, 72], [74, 72], [75, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "findNamespaceContext", "code": "  protected SuballocatedIntVector findNamespaceContext(int elementNodeIndex)\n  {\n    if (null!=m_namespaceDeclSetElements)\n      {\n        int wouldBeAt=findInSortedSuballocatedIntVector(m_namespaceDeclSetElements,\n                                            elementNodeIndex);\n          return (SuballocatedIntVector) m_namespaceDeclSets.elementAt(wouldBeAt);\n\n        wouldBeAt=-1-wouldBeAt;\n\n        int candidate=m_namespaceDeclSetElements.elementAt(-- wouldBeAt);\n        int ancestor=_parent(elementNodeIndex);\n\n        if (wouldBeAt == 0 && candidate < ancestor) {\n          int rootHandle = getDocumentRoot(makeNodeHandle(elementNodeIndex));\n          int rootID = makeNodeIdentity(rootHandle);\n          int uppermostNSCandidateID;\n\n          if (getNodeType(rootHandle) == DTM.DOCUMENT_NODE) {\n            int ch = _firstch(rootID);\n            uppermostNSCandidateID = (ch != DTM.NULL) ? ch : rootID;\n          } else {\n            uppermostNSCandidateID = rootID;\n          }\n\n          if (candidate == uppermostNSCandidateID) {\n            return (SuballocatedIntVector)m_namespaceDeclSets.elementAt(wouldBeAt);\n          }\n        }\n\n        while(wouldBeAt>=0 && ancestor>0)\n          {\n            if (candidate==ancestor) {\n                return (SuballocatedIntVector)m_namespaceDeclSets.elementAt(wouldBeAt);\n            } else if (candidate<ancestor) {\n                do {\n                  ancestor=_parent(ancestor);\n                } while (candidate < ancestor);\n            } else if(wouldBeAt > 0){\n              candidate=m_namespaceDeclSetElements.elementAt(--wouldBeAt);\n            }\n            else\n            \tbreak;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LOOP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [4, 11], [5, 12], [1, 13], [4, 14], [11, 15], [11, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [12, 22], [12, 23], [6, 24], [7, 25], [13, 26], [8, 27], [9, 28], [14, 29], [14, 30], [15, 31], [16, 32], [17, 33], [18, 34], [23, 35], [26, 36], [29, 37], [29, 38], [14, 39], [17, 40], [18, 41], [34, 42], [20, 43], [21, 44], [37, 45], [37, 46], [29, 47], [18, 48], [18, 49], [44, 50], [46, 51], [47, 52], [39, 53], [40, 54], [49, 55], [41, 56], [37, 57], [55, 58], [57, 59], [47, 60], [60, 61], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 4], [12, 5], [13, 1], [14, 4], [15, 11], [16, 11], [17, 5], [18, 5], [19, 5], [20, 5], [21, 5], [22, 12], [23, 12], [24, 6], [25, 7], [26, 13], [27, 8], [28, 9], [29, 14], [30, 14], [31, 15], [32, 16], [33, 17], [34, 18], [35, 23], [36, 26], [37, 29], [38, 29], [39, 14], [40, 17], [41, 18], [42, 34], [43, 20], [44, 21], [45, 37], [46, 37], [47, 29], [48, 18], [49, 18], [50, 44], [51, 46], [52, 47], [53, 39], [54, 40], [55, 49], [56, 41], [57, 37], [58, 55], [59, 57], [60, 47], [61, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "findInSortedSuballocatedIntVector", "code": "  protected int findInSortedSuballocatedIntVector(SuballocatedIntVector vector, int lookfor)\n  {\n    int i = 0;\n    if(vector != null) {\n      int first = 0;\n      int last  = vector.size() - 1;\n\n      while (first <= last) {\n        i = (first + last) / 2;\n        int test = lookfor-vector.elementAt(i);\n        if(test == 0) {\n        }\n        else if (test < 0) {\n        }\n        else {\n        }\n      }\n\n      if (first > i) {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [2, 11], [6, 12], [7, 13], [7, 14], [7, 15], [8, 16], [9, 17], [14, 18], [14, 19], [7, 20], [16, 21], [16, 22], [18, 23], [19, 24], [15, 25], [20, 26], [23, 27], [25, 28], [26, 29], [26, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 2], [12, 6], [13, 7], [14, 7], [15, 7], [16, 8], [17, 9], [18, 14], [19, 14], [20, 7], [21, 16], [22, 16], [23, 18], [24, 19], [25, 15], [26, 20], [27, 23], [28, 25], [29, 26], [30, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getFirstNamespaceNode", "code": "  public int getFirstNamespaceNode(int nodeHandle, boolean inScope)\n  {\n        if(inScope)\n        {\n            int identity = makeNodeIdentity(nodeHandle);\n            if (_type(identity) == DTM.ELEMENT_NODE)\n            {\n              SuballocatedIntVector nsContext=findNamespaceContext(identity);\n              if(nsContext==null || nsContext.size()<1)\n                return NULL;\n\n              return nsContext.elementAt(0);\n            }\n            else\n              return NULL;\n          }\n        else\n          {\n            int identity = makeNodeIdentity(nodeHandle);\n            if (_type(identity) == DTM.ELEMENT_NODE)\n            {\n              while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n              {\n                int type = _type(identity);\n                if (type == DTM.NAMESPACE_NODE)\n                    return makeNodeHandle(identity);\n                else if (DTM.ATTRIBUTE_NODE != type)\n                    break;\n              }\n              return NULL;\n            }\n            else\n              return NULL;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "VAR_DECL", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "LOOP", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [4, 9], [6, 10], [6, 11], [4, 12], [4, 13], [9, 14], [5, 15], [6, 16], [6, 17], [6, 18], [11, 19], [7, 20], [13, 21], [16, 22], [17, 23], [17, 24], [13, 25], [13, 26], [21, 27], [22, 28], [24, 29], [24, 30], [18, 31], [25, 32], [25, 33], [25, 34], [27, 35], [29, 36], [29, 37], [30, 38], [32, 39], [32, 40], [33, 41], [26, 42], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 4], [10, 6], [11, 6], [12, 4], [13, 4], [14, 9], [15, 5], [16, 6], [17, 6], [18, 6], [19, 11], [20, 7], [21, 13], [22, 16], [23, 17], [24, 17], [25, 13], [26, 13], [27, 21], [28, 22], [29, 24], [30, 24], [31, 18], [32, 25], [33, 25], [34, 25], [35, 27], [36, 29], [37, 29], [38, 30], [39, 32], [40, 32], [41, 33], [42, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getNextNamespaceNode", "code": "  public int getNextNamespaceNode(int baseHandle, int nodeHandle,\n                                  boolean inScope)\n  {\n        if(inScope)\n          {\n\n                SuballocatedIntVector nsContext=findNamespaceContext(makeNodeIdentity(baseHandle));\n\n            if(nsContext==null)\n              return NULL;\n            int i=1 + nsContext.indexOf(nodeHandle);\n            if(i<=0 || i==nsContext.size())\n              return NULL;\n\n            return nsContext.elementAt(i);\n          }\n        else\n          {\n            int identity = makeNodeIdentity(nodeHandle);\n            while (DTM.NULL != (identity = getNextNodeIdentity(identity)))\n              {\n                int type = _type(identity);\n                if (type == DTM.NAMESPACE_NODE)\n                  {\n                    return makeNodeHandle(identity);\n                  }\n                else if (type != DTM.ATTRIBUTE_NODE)\n                  {\n                    break;\n                  }\n              }\n          }\n     return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "LOOP", "VAR_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "CALL", "BREAK_CONTINUE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [6, 13], [8, 14], [9, 15], [9, 16], [11, 17], [11, 18], [6, 19], [6, 20], [13, 21], [7, 22], [16, 23], [16, 24], [10, 25], [18, 26], [12, 27], [19, 28], [19, 29], [21, 30], [23, 31], [24, 32], [25, 33], [25, 34], [27, 35], [28, 36], [19, 37], [20, 38], [28, 39], [37, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 6], [14, 8], [15, 9], [16, 9], [17, 11], [18, 11], [19, 6], [20, 6], [21, 13], [22, 7], [23, 16], [24, 16], [25, 10], [26, 18], [27, 12], [28, 19], [29, 19], [30, 21], [31, 23], [32, 24], [33, 25], [34, 25], [35, 27], [36, 28], [37, 19], [38, 20], [39, 28], [40, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "getParent", "code": "  public int getParent(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n\n    if (identity > 0)\n      return makeNodeHandle(_parent(identity));\n    else\n      return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [2, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [9, 2], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getDocument", "code": "  public int getDocument()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getOwnerDocument", "code": "  public int getOwnerDocument(int nodeHandle)\n  {\n\n    if (DTM.DOCUMENT_NODE == getNodeType(nodeHandle))\n  \t    return DTM.NULL;\n\n    return getDocumentRoot(nodeHandle);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDocumentRoot", "code": "  public int getDocumentRoot(int nodeHandle)\n  {\n    return getDocument();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStringValue", "code": "  public abstract XMLString getStringValue(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStringValueChunkCount", "code": "  public int getStringValueChunkCount(int nodeHandle)\n  {\n\n\n    return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStringValueChunk", "code": "  public char[] getStringValueChunk(int nodeHandle, int chunkIndex,\n                                    int[] startAndLen)\n  {\n\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getExpandedTypeID", "code": "  public int getExpandedTypeID(int nodeHandle)\n  {\n    int id=makeNodeIdentity(nodeHandle);\n    if(id==NULL)\n      return NULL;\n    return _exptype(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExpandedTypeID", "code": "  public int getExpandedTypeID(String namespace, String localName, int type)\n  {\n\n    ExpandedNameTable ent = m_expandedNameTable;\n\n    return ent.getExpandedTypeID(namespace, localName, type);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getLocalNameFromExpandedNameID", "code": "  public String getLocalNameFromExpandedNameID(int expandedNameID)\n  {\n    return m_expandedNameTable.getLocalName(expandedNameID);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNamespaceFromExpandedNameID", "code": "  public String getNamespaceFromExpandedNameID(int expandedNameID)\n  {\n    return m_expandedNameTable.getNamespace(expandedNameID);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNamespaceType", "code": "  public int getNamespaceType(final int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int expandedNameID = _exptype(identity);\n\n    return m_expandedNameTable.getNamespaceID(expandedNameID);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNodeName", "code": "  public abstract String getNodeName(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeNameX", "code": "  public String getNodeNameX(int nodeHandle)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLocalName", "code": "  public abstract String getLocalName(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPrefix", "code": "  public abstract String getPrefix(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespaceURI", "code": "  public abstract String getNamespaceURI(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeValue", "code": "  public abstract String getNodeValue(int nodeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeType", "code": "  public short getNodeType(int nodeHandle)\n  {\n  \tif (nodeHandle == DTM.NULL)\n  \treturn DTM.NULL;\n    return m_expandedNameTable.getType(_exptype(makeNodeIdentity(nodeHandle)));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLevel", "code": "  public short getLevel(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    return (short) (_level(identity) + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNodeIdent", "code": "  public int getNodeIdent(int nodeHandle)\n  {\n    /*if (nodeHandle != DTM.NULL)\n      return nodeHandle & m_mask;\n    else \n      return DTM.NULL;*/\n      \n      return makeNodeIdentity(nodeHandle); ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNodeHandle", "code": "  public int getNodeHandle(int nodeId)\n  {\n    /*if (nodeId != DTM.NULL)\n      return nodeId | m_dtmIdent;\n    else \n      return DTM.NULL;*/\n      \n      return makeNodeHandle(nodeId);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isSupported", "code": "  public boolean isSupported(String feature, String version)\n  {\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDocumentBaseURI", "code": "  public String getDocumentBaseURI()\n  {\n    return m_documentBaseURI;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDocumentBaseURI", "code": "  public void setDocumentBaseURI(String baseURI)\n  {\n    m_documentBaseURI = baseURI;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentSystemIdentifier", "code": "  public String getDocumentSystemIdentifier(int nodeHandle)\n  {\n\n    return m_documentBaseURI;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentEncoding", "code": "  public String getDocumentEncoding(int nodeHandle)\n  {\n\n    return \"UTF-8\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentStandalone", "code": "  public String getDocumentStandalone(int nodeHandle)\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentVersion", "code": "  public String getDocumentVersion(int documentHandle)\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentAllDeclarationsProcessed", "code": "  public boolean getDocumentAllDeclarationsProcessed()\n  {\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentTypeDeclarationSystemIdentifier", "code": "  public abstract String getDocumentTypeDeclarationSystemIdentifier();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getDocumentTypeDeclarationPublicIdentifier", "code": "  public abstract String getDocumentTypeDeclarationPublicIdentifier();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getElementById", "code": "  public abstract int getElementById(String elementId);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getUnparsedEntityURI", "code": "  public abstract String getUnparsedEntityURI(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "supportsPreStripping", "code": "  public boolean supportsPreStripping()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNodeAfter", "code": "  public boolean isNodeAfter(int nodeHandle1, int nodeHandle2)\n  {\n    int index1 = makeNodeIdentity(nodeHandle1);\n    int index2 = makeNodeIdentity(nodeHandle2);\n\n    return index1!=NULL & index2!=NULL & index1 <= index2;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [2, 9], [3, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 2], [10, 3], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "isCharacterElementContentWhitespace", "code": "  public boolean isCharacterElementContentWhitespace(int nodeHandle)\n  {\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDocumentAllDeclarationsProcessed", "code": "  public boolean isDocumentAllDeclarationsProcessed(int documentHandle)\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAttributeSpecified", "code": "  public abstract boolean isAttributeSpecified(int attributeHandle);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dispatchCharactersEvents", "code": "  public abstract void dispatchCharactersEvents(\n    int nodeHandle, org.xml.sax.ContentHandler ch, boolean normalize)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispatchToEvents", "code": "  public abstract void dispatchToEvents(\n    int nodeHandle, org.xml.sax.ContentHandler ch)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNode", "code": "  public org.w3c.dom.Node getNode(int nodeHandle)\n  {\n    return new DTMNodeProxy(this, nodeHandle);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "appendChild", "code": "  public void appendChild(int newChild, boolean clone, boolean cloneDepth)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "appendTextChild", "code": "  public void appendTextChild(String str)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "error", "code": "  protected void error(String msg)\n  {\n    throw new DTMException(msg);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getShouldStripWhitespace", "code": "  protected boolean getShouldStripWhitespace()\n  {\n    return m_shouldStripWS;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "pushShouldStripWhitespace", "code": "  protected void pushShouldStripWhitespace(boolean shouldStrip)\n  {\n\n    m_shouldStripWS = shouldStrip;\n\n    if (null != m_shouldStripWhitespaceStack)\n      m_shouldStripWhitespaceStack.push(shouldStrip);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "popShouldStripWhitespace", "code": "  protected void popShouldStripWhitespace()\n  {\n    if (null != m_shouldStripWhitespaceStack)\n      m_shouldStripWS = m_shouldStripWhitespaceStack.popAndTop();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setShouldStripWhitespace", "code": "  protected void setShouldStripWhitespace(boolean shouldStrip)\n  {\n\n    m_shouldStripWS = shouldStrip;\n\n    if (null != m_shouldStripWhitespaceStack)\n      m_shouldStripWhitespaceStack.setTop(shouldStrip);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "documentRegistration", "code": "   public void documentRegistration()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "documentRelease", "code": "   public void documentRelease()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "migrateTo", "code": "   public void migrateTo(DTMManager mgr)\n   {\n     m_mgr = mgr;\n     if(mgr instanceof DTMManagerDefault)\n       m_mgrDefault=(DTMManagerDefault)mgr;     ", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getManager", "code": "\t public DTMManager getManager()\n\t {\n\t\t return m_mgr;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDTMIDs", "code": "\t public SuballocatedIntVector getDTMIDs()\n\t {\n\t\t if(m_mgr==null) return null;\n\t\t return m_dtmIdent;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "DTMDefaultBase", "code": "  public DTMDefaultBase(DTMManager mgr, Source source, int dtmIdentity,\n  \t\t\tDTMWSFilter whiteSpaceFilter,\n  \t\t\tXMLStringFactory xstringfactory, boolean doIndexing)\n  {\n    this(mgr, source, dtmIdentity, whiteSpaceFilter, xstringfactory,\n         doIndexing, DEFAULT_BLOCKSIZE, true, false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "DTMDefaultBase", "code": "  public DTMDefaultBase(DTMManager mgr, Source source, int dtmIdentity,\n                        DTMWSFilter whiteSpaceFilter,\n                        XMLStringFactory xstringfactory, boolean doIndexing,\n                        int blocksize, boolean usePrevsib,\n                        boolean newNameTable)\n  {    \n    int numblocks;    \n    if (blocksize <= 64)\n    {\n      numblocks = DEFAULT_NUMBLOCKS_SMALL;\n      m_dtmIdent= new SuballocatedIntVector(4, 1);\n    }\n    else\n    {\n      numblocks = DEFAULT_NUMBLOCKS;\n      m_dtmIdent= new SuballocatedIntVector(32);\n    }\n    \n    m_exptype = new SuballocatedIntVector(blocksize, numblocks);\n    m_firstch = new SuballocatedIntVector(blocksize, numblocks);\n    m_nextsib = new SuballocatedIntVector(blocksize, numblocks);\n    m_parent  = new SuballocatedIntVector(blocksize, numblocks);\n    \n    if (usePrevsib)\n      m_prevsib = new SuballocatedIntVector(blocksize, numblocks);\n\n    m_mgr = mgr;\n    if(mgr instanceof DTMManagerDefault)\n      m_mgrDefault=(DTMManagerDefault)mgr;\n    \n    m_documentBaseURI = (null != source) ? source.getSystemId() : null;\n    m_dtmIdent.setElementAt(dtmIdentity,0);\n    m_wsfilter = whiteSpaceFilter;\n    m_xstrf = xstringfactory;\n    m_indexing = doIndexing;\n\n    if (doIndexing)\n    {\n      m_expandedNameTable = new ExpandedNameTable();\n    }\n    else\n    {\n      m_expandedNameTable = m_mgrDefault.getExpandedNameTable(this);\n    }\n\n    if (null != whiteSpaceFilter)\n    {\n      m_shouldStripWhitespaceStack = new BoolStack();\n\n      pushShouldStripWhitespace(false);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [3, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [5, 28], [16, 29], [20, 30], [21, 31], [3, 32], [4, 33], [24, 34], [25, 35], [26, 36], [27, 37], [28, 38], [1, 39], [1, 40], [2, 41], [2, 42], [31, 43], [31, 44], [31, 45], [33, 46], [5, 47], [5, 48], [5, 49], [5, 50], [39, 51], [40, 52], [41, 53], [42, 54], [45, 55], [47, 56], [49, 57], [56, 58], [57, 59], [57, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 3], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 5], [29, 16], [30, 20], [31, 21], [32, 3], [33, 4], [34, 24], [35, 25], [36, 26], [37, 27], [38, 28], [39, 1], [40, 1], [41, 2], [42, 2], [43, 31], [44, 31], [45, 31], [46, 33], [47, 5], [48, 5], [49, 5], [50, 5], [51, 39], [52, 40], [53, 41], [54, 42], [55, 45], [56, 47], [57, 49], [58, 56], [59, 57], [60, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}], "label": 1}
{"sample_id": "ant-1.7-1292", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/util/IdentityMapper.java", "language": "java", "name": "org.apache.tools.ant.util.IdentityMapper", "code": "public class IdentityMapper implements FileNameMapper {\n\n    /**\n     * Ignored.\n     * @param from ignored.\n     */\n    public void setFrom(String from) {\n    }\n\n    /**\n     * Ignored.\n     * @param to ignored.\n     */\n    public void setTo(String to) {\n    }\n\n    /**\n     * Returns an one-element array containing the source file name.\n     * @param sourceFileName the name to map.\n     * @return the source filename in a one-element array.\n     */\n    public String[] mapFileName(String sourceFileName) {\n        return new String[] {sourceFileName};", "functions": [{"function_name": "setFrom", "code": "    public void setFrom(String from) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTo", "code": "    public void setTo(String to) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "mapFileName", "code": "    public String[] mapFileName(String sourceFileName) {\n        return new String[] {sourceFileName};", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-5977", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hpsf/HPSFRuntimeException.java", "language": "java", "name": "org.apache.poi.hpsf.HPSFRuntimeException", "code": "public class HPSFRuntimeException extends RuntimeException\n{\n\n    /** <p>The underlying reason for this exception - may be\n     * <code>null</code>.</p> */\n    private Throwable reason;\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException}.</p>\n     */\n    public HPSFRuntimeException()\n    {\n        super();\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException} with a message\n     * string.</p>\n     *\n     * @param msg The message string.\n     */\n    public HPSFRuntimeException(final String msg)\n    {\n        super(msg);\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException} with a\n     * reason.</p>\n     *\n     * @param reason The reason, i.e. a throwable that indirectly\n     * caused this exception.\n     */\n    public HPSFRuntimeException(final Throwable reason)\n    {\n        super();\n        this.reason = reason;\n    }\n\n\n\n    /**\n     * <p>Creates a new {@link HPSFRuntimeException} with a message\n     * string and a reason.</p>\n     *\n     * @param msg The message string.\n     * @param reason The reason, i.e. a throwable that indirectly\n     * caused this exception.\n     */\n    public HPSFRuntimeException(final String msg, final Throwable reason)\n    {\n        super(msg);\n        this.reason = reason;\n    }\n\n\n\n    /**\n     * <p>Returns the {@link Throwable} that caused this exception to\n     * be thrown or <code>null</code> if there was no such {@link\n     * Throwable}.</p>\n     *\n     * @return The reason\n     */\n    public Throwable getReason()\n    {\n        return reason;\n    }\n\n\n\n    /**\n     * @see Throwable#printStackTrace()\n     */\n    public void printStackTrace()\n    {\n        printStackTrace(System.err);\n    }\n\n\n\n    /**\n     * @see Throwable#printStackTrace(java.io.PrintStream)\n     */\n    public void printStackTrace(final PrintStream p)\n    {\n        final Throwable reason = getReason();\n        super.printStackTrace(p);\n        if (reason != null)\n        {\n            p.println(\"Caused by:\");\n            reason.printStackTrace(p);\n        }\n    }\n\n\n\n    /**\n     * @see Throwable#printStackTrace(java.io.PrintWriter)\n     */\n    public void printStackTrace(final PrintWriter p)\n    {\n        final Throwable reason = getReason();\n        super.printStackTrace(p);\n        if (reason != null)\n        {\n            p.println(\"Caused by:\");\n            reason.printStackTrace(p);", "functions": [{"function_name": "getReason", "code": "    public Throwable getReason()\n    {\n        return reason;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace()\n    {\n        printStackTrace(System.err);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace(final PrintStream p)\n    {\n        final Throwable reason = getReason();\n        super.printStackTrace(p);\n        if (reason != null)\n        {\n            p.println(\"Caused by:\");\n            reason.printStackTrace(p);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "printStackTrace", "code": "    public void printStackTrace(final PrintWriter p)\n    {\n        final Throwable reason = getReason();\n        super.printStackTrace(p);\n        if (reason != null)\n        {\n            p.println(\"Caused by:\");\n            reason.printStackTrace(p);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException()\n    {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException(final String msg)\n    {\n        super(msg);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException(final Throwable reason)\n    {\n        super();\n        this.reason = reason;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HPSFRuntimeException", "code": "    public HPSFRuntimeException(final String msg, final Throwable reason)\n    {\n        super(msg);\n        this.reason = reason;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.4-6571", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/dtm/ref/DTMNodeProxy.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMNodeProxy", "code": "public class DTMNodeProxy\n  implements Node, Document, Text, Element, Attr,\n                   ProcessingInstruction, Comment, DocumentFragment\n{\n\n  /** The DTM for this node. */\n  public DTM dtm;\n\n  /** The DTM node handle. */\n  int node;\n        \n  /** The DOMImplementation object */\n  static final DOMImplementation implementation=new DTMNodeProxyImplementation();\n\n  /**\n   * Create a DTMNodeProxy Node representing a specific Node in a DTM\n   *\n   * @param dtm The DTM Reference, must be non-null.\n   * @param node The DTM node handle.\n   */\n  DTMNodeProxy(DTM dtm, int node)\n  {\n    this.dtm = dtm;\n    this.node = node;\n  }\n\n  /**\n   * NON-DOM: Return the DTM model\n   *\n   * @return The DTM that this proxy is a representative for.\n   */\n  public final DTM getDTM()\n  {\n    return dtm;\n  }\n\n  /**\n   * NON-DOM: Return the DTM node number\n   *\n   * @return The DTM node handle.\n   */\n  public final int getDTMNodeNumber()\n  {\n    return node;\n  }\n\n  /**\n   * Test for equality based on node number.\n   *\n   * @param node A DTM node proxy reference.\n   *\n   * @return true if the given node has the same handle as this node.\n   */\n  public final boolean equals(Node node)\n  {\n\n    try\n    {\n      DTMNodeProxy dtmp = (DTMNodeProxy) node;\n\n      return (dtmp.node == this.node) && (dtmp.dtm == this.dtm);\n    }\n    catch (ClassCastException cce)\n    {\n      return false;\n    }\n  }\n\n  /**\n   * Test for equality based on node number.\n   *\n   * @param node A DTM node proxy reference.\n   *\n   * @return true if the given node has the same handle as this node.\n   */\n  public final boolean equals(Object node)\n  {\n\n    try\n    {\n\n      return equals((Node) node);\n    }\n    catch (ClassCastException cce)\n    {\n      return false;\n    }\n  }\n\n  /**\n   * FUTURE DOM: Test node identity, in lieu of Node==Node\n   *\n   * @param other\n   *\n   * @return true if the given node has the same handle as this node.\n   */\n  public final boolean sameNodeAs(Node other)\n  {\n\n    if (!(other instanceof DTMNodeProxy))\n      return false;\n\n    DTMNodeProxy that = (DTMNodeProxy) other;\n\n    return this.dtm == that.dtm && this.node == that.node;\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final String getNodeName()\n  {\n    return dtm.getNodeName(node);\n  }\n\n  /**\n   * A PI's \"target\" states what processor channel the PI's data\n   * should be directed to. It is defined differently in HTML and XML.\n   * <p>\n   * In XML, a PI's \"target\" is the first (whitespace-delimited) token\n   * following the \"<?\" token that begins the PI.\n   * <p>\n   * In HTML, target is always null.\n   * <p>\n   * Note that getNodeName is aliased to getTarget.\n   *\n   * @return\n   */\n  public final String getTarget()\n  {\n    return dtm.getNodeName(node);\n  }\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node as of DOM Level 2\n   */\n  public final String getLocalName()\n  {\n    return dtm.getLocalName(node);\n  }\n\n  /**\n   * @return The prefix for this node.\n   * @see org.w3c.dom.Node as of DOM Level 2\n   */\n  public final String getPrefix()\n  {\n    return dtm.getPrefix(node);\n  }\n\n  /**\n   *\n   * @param prefix\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Node as of DOM Level 2 -- DTMNodeProxy is read-only\n   */\n  public final void setPrefix(String prefix) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node as of DOM Level 2\n   */\n  public final String getNamespaceURI()\n  {\n    return dtm.getNamespaceURI(node);\n  }\n\n  /** Ask whether we support a given DOM feature.\n   * In fact, we do not _fully_ support any DOM feature -- we're a\n   * read-only subset -- so arguably we should always return false.\n   * Or we could say that we support DOM Core Level 2 but all nodes\n   * are read-only. Unclear which answer is least misleading.\n   * \n   * NON-DOM method. This was present in early drafts of DOM Level 2,\n   * but was renamed isSupported. It's present here only because it's\n   * cheap, harmless, and might help some poor fool who is still trying\n   * to use an early Working Draft of the DOM.\n   *\n   * @param feature\n   * @param version\n   *\n   * @return false\n   */\n  public final boolean supports(String feature, String version)\n  {\n    return implementation.hasFeature(feature,version);\n  }\n\n  /** Ask whether we support a given DOM feature.\n   * In fact, we do not _fully_ support any DOM feature -- we're a\n   * read-only subset -- so arguably we should always return false.\n   *\n   * @param feature\n   * @param version\n   *\n   * @return false\n   * @see org.w3c.dom.Node as of DOM Level 2\n   */\n  public final boolean isSupported(String feature, String version)\n  {\n    return implementation.hasFeature(feature,version);\n  }\n\n  /**\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Node\n   */\n  public final String getNodeValue() throws DOMException\n  {\n    return dtm.getNodeValue(node);\n  }\n\n  /**\n   *\n   * @param nodeValue\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Node -- DTMNodeProxy is read-only\n   */\n  public final void setNodeValue(String nodeValue) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final short getNodeType()\n  {\n    return (short) dtm.getNodeType(node);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final Node getParentNode()\n  {\n\n    if (getNodeType() == Node.ATTRIBUTE_NODE)\n      return null;\n\n    int newnode = dtm.getParent(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final Node getOwnerNode()\n  {\n\n    int newnode = dtm.getParent(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final NodeList getChildNodes()\n  {\n                \n    return new DTMNodeList(dtm,node);\n\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final Node getFirstChild()\n  {\n\n    int newnode = dtm.getFirstChild(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final Node getLastChild()\n  {\n\n    int newnode = dtm.getLastChild(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final Node getPreviousSibling()\n  {\n\n    int newnode = dtm.getPreviousSibling(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final Node getNextSibling()\n  {\n\n    if (dtm.getNodeType(node) == Node.ATTRIBUTE_NODE)\n      return null;\n\n    int newnode = dtm.getNextSibling(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);\n  }\n\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final NamedNodeMap getAttributes()\n  {\n\n    return new DTMNamedNodeMap(dtm, node);\n  }\n\n  /**\n   * Method hasAttribute\n   *\n   *\n   * @param name\n   *\n   * (hasAttribute) @return\n   */\n  public boolean hasAttribute(String name)\n  {\n    return DTM.NULL != dtm.getAttributeNode(node,null,name);\n  }\n\n  /**\n   * Method hasAttributeNS\n   *\n   *\n   * @param name\n   * @param x\n   *\n   * (hasAttributeNS) @return\n   */\n  public boolean hasAttributeNS(String name, String x)\n  {\n    return DTM.NULL != dtm.getAttributeNode(node,x,name);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final Document getOwnerDocument()\n  {\n\treturn (Document)(dtm.getNode(dtm.getOwnerDocument(node)));\n  }\n\n  /**\n   *\n   * @param newChild\n   * @param refChild\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Node -- DTMNodeProxy is read-only\n   */\n  public final Node insertBefore(Node newChild, Node refChild)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);\n  }\n\n  /**\n   *\n   * @param newChild\n   * @param oldChild\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Node -- DTMNodeProxy is read-only\n   */\n  public final Node replaceChild(Node newChild, Node oldChild)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);\n  }\n\n  /**\n   *\n   * @param oldChild\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Node -- DTMNodeProxy is read-only\n   */\n  public final Node removeChild(Node oldChild) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);\n  }\n\n  /**\n   *\n   * @param newChild\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Node -- DTMNodeProxy is read-only\n   */\n  public final Node appendChild(Node newChild) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Node\n   */\n  public final boolean hasChildNodes()\n  {\n    return (DTM.NULL != dtm.getFirstChild(node));\n  }\n\n  /**\n   *\n   * @param deep\n   *\n   * @return\n   * @see org.w3c.dom.Node -- DTMNodeProxy is read-only\n   */\n  public final Node cloneNode(boolean deep)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Document\n   */\n  public final DocumentType getDoctype()\n  {\n    return null;\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Document\n   */\n  public final DOMImplementation getImplementation()\n  {\n    return implementation;\n  }\n\n  /** This is a bit of a problem in DTM, since a DTM may be a Document\n   * Fragment and hence not have a clear-cut Document Element. We can\n   * make it work in the well-formed cases but would that be confusing for others?\n   * \n   * @return\n   * @see org.w3c.dom.Document\n   */\n  public final Element getDocumentElement()\n  {\n\t\tint dochandle=dtm.getDocument();\n\t\tint elementhandle=dtm.NULL;\n\t\tfor(int kidhandle=dtm.getFirstChild(dochandle);\n\t\t\t\tkidhandle!=dtm.NULL;\n\t\t\t\tkidhandle=dtm.getNextSibling(kidhandle))\n\t\t{\n\t\t\tswitch(dtm.getNodeType(kidhandle))\n\t\t\t{\n\t\t\tcase Node.ELEMENT_NODE:\n\t\t\t\tif(elementhandle!=dtm.NULL) \n\t\t\t\t{\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\telementhandle=kidhandle;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase Node.COMMENT_NODE:\n\t\t\tcase Node.PROCESSING_INSTRUCTION_NODE:\n\t\t\tcase Node.DOCUMENT_TYPE_NODE:\n\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(elementhandle==dtm.NULL)\n\t\t\tthrow new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n\t\telse\n\t\t\treturn (Element)(dtm.getNode(elementhandle));\n  }\n\n  /**\n   *\n   * @param tagName\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Document\n   */\n  public final Element createElement(String tagName) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Document\n   */\n  public final DocumentFragment createDocumentFragment()\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param data\n   *\n   * @return\n   * @see org.w3c.dom.Document\n   */\n  public final Text createTextNode(String data)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param data\n   *\n   * @return\n   * @see org.w3c.dom.Document\n   */\n  public final Comment createComment(String data)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param data\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Document\n   */\n  public final CDATASection createCDATASection(String data)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param target\n   * @param data\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Document\n   */\n  public final ProcessingInstruction createProcessingInstruction(\n                                                                 String target, String data) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param name\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Document\n   */\n  public final Attr createAttribute(String name) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param name\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Document\n   */\n  public final EntityReference createEntityReference(String name)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param tagname\n   *\n   * @return\n   * @see org.w3c.dom.Document\n   */\n  public final NodeList getElementsByTagName(String tagname)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param importedNode\n   * @param deep\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Document as of DOM Level 2 -- DTMNodeProxy is read-only\n   */\n  public final Node importNode(Node importedNode, boolean deep)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);\n  }\n\n  /**\n   *\n   * @param namespaceURI\n   * @param qualifiedName\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Document as of DOM Level 2\n   */\n  public final Element createElementNS(\n                                       String namespaceURI, String qualifiedName) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param namespaceURI\n   * @param qualifiedName\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Document as of DOM Level 2\n   */\n  public final Attr createAttributeNS(\n                                      String namespaceURI, String qualifiedName) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param namespaceURI\n   * @param localName\n   *\n   * @return\n   * @see org.w3c.dom.Document as of DOM Level 2\n   */\n  public final NodeList getElementsByTagNameNS(String namespaceURI,\n                                               String localName)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param elementId\n   *\n   * @return\n   * @see org.w3c.dom.Document as of DOM Level 2\n   */\n  public final Element getElementById(String elementId)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param offset\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Text\n   */\n  public final Text splitText(int offset) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.CharacterData\n   */\n  public final String getData() throws DOMException\n  {\n    return dtm.getNodeValue(node);\n  }\n\n  /**\n   *\n   * @param data\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.CharacterData\n   */\n  public final void setData(String data) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.CharacterData\n   */\n  public final int getLength()\n  {\n    return dtm.getNodeValue(node).length();\n  }\n\n  /**\n   *\n   * @param offset\n   * @param count\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.CharacterData\n   */\n  public final String substringData(int offset, int count) throws DOMException\n  {\n    return getData().substring(offset,offset+count);\n  }\n\n  /**\n   *\n   * @param arg\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.CharacterData\n   */\n  public final void appendData(String arg) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param offset\n   * @param arg\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.CharacterData\n   */\n  public final void insertData(int offset, String arg) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param offset\n   * @param count\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.CharacterData\n   */\n  public final void deleteData(int offset, int count) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param offset\n   * @param count\n   * @param arg\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.CharacterData\n   */\n  public final void replaceData(int offset, int count, String arg)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Element\n   */\n  public final String getTagName()\n  {\n    return dtm.getNodeName(node);\n  }\n\n  /**\n   *\n   * @param name\n   *\n   * @return\n   * @see org.w3c.dom.Element\n   */\n  public final String getAttribute(String name)\n  {\n\n    DTMNamedNodeMap  map = new DTMNamedNodeMap(dtm, node);\n    Node node = map.getNamedItem(name);\n    return (null == node) ? null : node.getNodeValue();\n  }\n\n  /**\n   *\n   * @param name\n   * @param value\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Element\n   */\n  public final void setAttribute(String name, String value)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param name\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Element\n   */\n  public final void removeAttribute(String name) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param name\n   *\n   * @return\n   * @see org.w3c.dom.Element\n   */\n  public final Attr getAttributeNode(String name)\n  {\n\n    DTMNamedNodeMap  map = new DTMNamedNodeMap(dtm, node);\n    return (Attr)map.getNamedItem(name);\n  }\n\n  /**\n   *\n   * @param newAttr\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Element\n   */\n  public final Attr setAttributeNode(Attr newAttr) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param oldAttr\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Element\n   */\n  public final Attr removeAttributeNode(Attr oldAttr) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   * Introduced in DOM Level 2.\n   *\n   * @return\n   */\n  public boolean hasAttributes()\n  {\n    return DTM.NULL != dtm.getFirstAttribute(node);\n  }\n\n  /** @see org.w3c.dom.Element */\n  public final void normalize()\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param namespaceURI\n   * @param localName\n   *\n   * @return\n   * @see org.w3c.dom.Element\n   */\n  public final String getAttributeNS(String namespaceURI, String localName)\n  {\n    DTMNamedNodeMap  map = new DTMNamedNodeMap(dtm, node);\n    Node node = map.getNamedItemNS(namespaceURI,localName);\n    return (null == node) ? null : node.getNodeValue();\n  }\n\n  /**\n   *\n   * @param namespaceURI\n   * @param qualifiedName\n   * @param value\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Element\n   */\n  public final void setAttributeNS(\n                                   String namespaceURI, String qualifiedName, String value)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param namespaceURI\n   * @param localName\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Element\n   */\n  public final void removeAttributeNS(String namespaceURI, String localName)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param namespaceURI\n   * @param localName\n   *\n   * @return\n   * @see org.w3c.dom.Element\n   */\n  public final Attr getAttributeNodeNS(String namespaceURI, String localName)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @param newAttr\n   *\n   * @return\n   *\n   * @throws DOMException\n   * @see org.w3c.dom.Element\n   */\n  public final Attr setAttributeNodeNS(Attr newAttr) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Attr\n   */\n  public final String getName()\n  {\n    return dtm.getNodeName(node);\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Attr\n   */\n  public final boolean getSpecified()\n  {\n    return true;\n  }\n\n  /**\n   *\n   * @return\n   * @see org.w3c.dom.Attr\n   */\n  public final String getValue()\n  {\n    return dtm.getNodeValue(node);\n  }\n\n  /**\n   *\n   * @param value\n   * @see org.w3c.dom.Attr\n   */\n  public final void setValue(String value)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   * Get the owner element of an attribute.\n   *\n   * @return\n   * @see org.w3c.dom.Attr as of DOM Level 2\n   */\n  public final Element getOwnerElement()\n  {\n    if (getNodeType() != Node.ATTRIBUTE_NODE)\n      return null;\n    int newnode = dtm.getParent(node);\n    return (newnode == DTM.NULL) ? null : (Element)(dtm.getNode(newnode));\n  }\n\n  /**\n   * NEEDSDOC Method adoptNode \n   *\n   *\n   * NEEDSDOC @param source\n   *\n   * NEEDSDOC (adoptNode) @return\n   *\n   * @throws DOMException\n   */\n  public Node adoptNode(Node source) throws DOMException\n  {\n\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   * <p>EXPERIMENTAL! Based on the <a\n   * Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.</a>.\n   * <p>\n   * An attribute specifying, as part of the XML declaration, the encoding\n   * of this document. This is <code>null</code> when unspecified.\n   * @since DOM Level 3\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  public String getEncoding()\n  {\n\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   * <p>EXPERIMENTAL! Based on the <a\n   * Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.</a>.\n   * <p>\n   * An attribute specifying, as part of the XML declaration, the encoding\n   * of this document. This is <code>null</code> when unspecified.\n   * @since DOM Level 3\n   *\n   * NEEDSDOC @param encoding\n   */\n  public void setEncoding(String encoding)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   * <p>EXPERIMENTAL! Based on the <a\n   * Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.</a>.\n   * <p>\n   * An attribute specifying, as part of the XML declaration, whether this\n   * document is standalone.\n   * @since DOM Level 3\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  public boolean getStandalone()\n  {\n\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   * <p>EXPERIMENTAL! Based on the <a\n   * Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.</a>.\n   * <p>\n   * An attribute specifying, as part of the XML declaration, whether this\n   * document is standalone.\n   * @since DOM Level 3\n   *\n   * NEEDSDOC @param standalone\n   */\n  public void setStandalone(boolean standalone)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   * <p>EXPERIMENTAL! Based on the <a\n   * Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.</a>.\n   * <p>\n   * An attribute specifying whether errors checking is enforced or not.\n   * When set to <code>false</code>, the implementation is free to not\n   * test every possible error case normally defined on DOM operations,\n   * and not raise any <code>DOMException</code>. In case of error, the\n   * behavior is undefined. This attribute is <code>true</code> by\n   * defaults.\n   * @since DOM Level 3\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  public boolean getStrictErrorChecking()\n  {\n\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   * <p>EXPERIMENTAL! Based on the <a\n   * Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.</a>.\n   * <p>\n   * An attribute specifying whether errors checking is enforced or not.\n   * When set to <code>false</code>, the implementation is free to not\n   * test every possible error case normally defined on DOM operations,\n   * and not raise any <code>DOMException</code>. In case of error, the\n   * behavior is undefined. This attribute is <code>true</code> by\n   * defaults.\n   * @since DOM Level 3\n   *\n   * NEEDSDOC @param strictErrorChecking\n   */\n  public void setStrictErrorChecking(boolean strictErrorChecking)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   * <p>EXPERIMENTAL! Based on the <a\n   * Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.</a>.\n   * <p>\n   * An attribute specifying, as part of the XML declaration, the version\n   * number of this document. This is <code>null</code> when unspecified.\n   * @since DOM Level 3\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  public String getVersion()\n  {\n\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n\n  /**\n   * <p>EXPERIMENTAL! Based on the <a\n   * Object Model (DOM) Level 3 Core Working Draft of 5 June 2001.</a>.\n   * <p>\n   * An attribute specifying, as part of the XML declaration, the version\n   * number of this document. This is <code>null</code> when unspecified.\n   * @since DOM Level 3\n   *\n   * NEEDSDOC @param version\n   */\n  public void setVersion(String version)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n  }\n        \n        \n  /** Inner class to support getDOMImplementation.\n   */\n  static class DTMNodeProxyImplementation implements DOMImplementation\n  {\n    public DocumentType createDocumentType(String qualifiedName,String publicId, String systemId)\n    {\n      throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n    }\n    public Document createDocument(String namespaceURI,String qualfiedName,DocumentType doctype)                        \n    {\n      throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);        \n    }\n    /** Ask whether we support a given DOM feature.\n     * \n     * In fact, we do not _fully_ support any DOM feature -- we're a\n     * read-only subset -- so arguably we should always return false.\n     * On the other hand, it may be more practically useful to return\n     * true and simply treat the whole DOM as read-only, failing on the\n     * methods we can't support. I'm not sure which would be more useful\n     * to the caller.\n     */\n    public boolean hasFeature(String feature,String version)\n    {\n      if( (\"CORE\".equals(feature.toUpperCase()) || \"XML\".equals(feature.toUpperCase())) \n\t\t\t\t\t&& \n          (\"1.0\".equals(version) || \"2.0\".equals(version))\n          )\n        return true;\n      return false;", "functions": [{"function_name": "getDTM", "code": "  public final DTM getDTM()\n  {\n    return dtm;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDTMNodeNumber", "code": "  public final int getDTMNodeNumber()\n  {\n    return node;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "equals", "code": "  public final boolean equals(Node node)\n  {\n\n    try\n    {\n      DTMNodeProxy dtmp = (DTMNodeProxy) node;\n\n      return (dtmp.node == this.node) && (dtmp.dtm == this.dtm);\n    }\n    catch (ClassCastException cce)\n    {\n      return false;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "VAR_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [6, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 6], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "equals", "code": "  public final boolean equals(Object node)\n  {\n\n    try\n    {\n\n      return equals((Node) node);\n    }\n    catch (ClassCastException cce)\n    {\n      return false;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "sameNodeAs", "code": "  public final boolean sameNodeAs(Node other)\n  {\n\n    if (!(other instanceof DTMNodeProxy))\n      return false;\n\n    DTMNodeProxy that = (DTMNodeProxy) other;\n\n    return this.dtm == that.dtm && this.node == that.node;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [3, 7], [5, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 3], [8, 5], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNodeName", "code": "  public final String getNodeName()\n  {\n    return dtm.getNodeName(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTarget", "code": "  public final String getTarget()\n  {\n    return dtm.getNodeName(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalName", "code": "  public final String getLocalName()\n  {\n    return dtm.getLocalName(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPrefix", "code": "  public final String getPrefix()\n  {\n    return dtm.getPrefix(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPrefix", "code": "  public final void setPrefix(String prefix) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNamespaceURI", "code": "  public final String getNamespaceURI()\n  {\n    return dtm.getNamespaceURI(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "supports", "code": "  public final boolean supports(String feature, String version)\n  {\n    return implementation.hasFeature(feature,version);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isSupported", "code": "  public final boolean isSupported(String feature, String version)\n  {\n    return implementation.hasFeature(feature,version);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNodeValue", "code": "  public final String getNodeValue() throws DOMException\n  {\n    return dtm.getNodeValue(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNodeValue", "code": "  public final void setNodeValue(String nodeValue) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNodeType", "code": "  public final short getNodeType()\n  {\n    return (short) dtm.getNodeType(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParentNode", "code": "  public final Node getParentNode()\n  {\n\n    if (getNodeType() == Node.ATTRIBUTE_NODE)\n      return null;\n\n    int newnode = dtm.getParent(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "COND_EXPR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [3, 6], [4, 7], [4, 8], [4, 9], [2, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 3], [7, 4], [8, 4], [9, 4], [10, 2], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getOwnerNode", "code": "  public final Node getOwnerNode()\n  {\n\n    int newnode = dtm.getParent(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getChildNodes", "code": "  public final NodeList getChildNodes()\n  {\n                \n    return new DTMNodeList(dtm,node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstChild", "code": "  public final Node getFirstChild()\n  {\n\n    int newnode = dtm.getFirstChild(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getLastChild", "code": "  public final Node getLastChild()\n  {\n\n    int newnode = dtm.getLastChild(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getPreviousSibling", "code": "  public final Node getPreviousSibling()\n  {\n\n    int newnode = dtm.getPreviousSibling(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNextSibling", "code": "  public final Node getNextSibling()\n  {\n\n    if (dtm.getNodeType(node) == Node.ATTRIBUTE_NODE)\n      return null;\n\n    int newnode = dtm.getNextSibling(node);\n\n    return (newnode == DTM.NULL) ? null : dtm.getNode(newnode);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "COND_EXPR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [3, 6], [4, 7], [4, 8], [4, 9], [2, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 3], [7, 4], [8, 4], [9, 4], [10, 2], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getAttributes", "code": "  public final NamedNodeMap getAttributes()\n  {\n\n    return new DTMNamedNodeMap(dtm, node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasAttribute", "code": "  public boolean hasAttribute(String name)\n  {\n    return DTM.NULL != dtm.getAttributeNode(node,null,name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "hasAttributeNS", "code": "  public boolean hasAttributeNS(String name, String x)\n  {\n    return DTM.NULL != dtm.getAttributeNode(node,x,name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getOwnerDocument", "code": "  public final Document getOwnerDocument()\n  {\n\treturn (Document)(dtm.getNode(dtm.getOwnerDocument(node)));", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "insertBefore", "code": "  public final Node insertBefore(Node newChild, Node refChild)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "replaceChild", "code": "  public final Node replaceChild(Node newChild, Node oldChild)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeChild", "code": "  public final Node removeChild(Node oldChild) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "appendChild", "code": "  public final Node appendChild(Node newChild) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hasChildNodes", "code": "  public final boolean hasChildNodes()\n  {\n    return (DTM.NULL != dtm.getFirstChild(node));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "cloneNode", "code": "  public final Node cloneNode(boolean deep)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDoctype", "code": "  public final DocumentType getDoctype()\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getImplementation", "code": "  public final DOMImplementation getImplementation()\n  {\n    return implementation;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentElement", "code": "  public final Element getDocumentElement()\n  {\n\t\tint dochandle=dtm.getDocument();\n\t\tint elementhandle=dtm.NULL;\n\t\tfor(int kidhandle=dtm.getFirstChild(dochandle);\n\t\t\t\tkidhandle!=dtm.NULL;\n\t\t\t\tkidhandle=dtm.getNextSibling(kidhandle))\n\t\t{\n\t\t\tswitch(dtm.getNodeType(kidhandle))\n\t\t\t{\n\t\t\tcase Node.ELEMENT_NODE:\n\t\t\t\tif(elementhandle!=dtm.NULL) \n\t\t\t\t{\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\telementhandle=kidhandle;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase Node.COMMENT_NODE:\n\t\t\tcase Node.PROCESSING_INSTRUCTION_NODE:\n\t\t\tcase Node.DOCUMENT_TYPE_NODE:\n\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(elementhandle==dtm.NULL)\n\t\t\tthrow new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);\n\t\telse\n\t\t\treturn (Element)(dtm.getNode(elementhandle));", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "SWITCH", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [2, 9], [6, 10], [2, 11], [8, 12], [4, 13], [5, 14], [11, 15], [2, 16], [11, 17], [11, 18], [11, 19], [11, 20], [20, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 2], [10, 6], [11, 2], [12, 8], [13, 4], [14, 5], [15, 11], [16, 2], [17, 11], [18, 11], [19, 11], [20, 11], [21, 20], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "createElement", "code": "  public final Element createElement(String tagName) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createDocumentFragment", "code": "  public final DocumentFragment createDocumentFragment()\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createTextNode", "code": "  public final Text createTextNode(String data)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createComment", "code": "  public final Comment createComment(String data)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createCDATASection", "code": "  public final CDATASection createCDATASection(String data)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createProcessingInstruction", "code": "  public final ProcessingInstruction createProcessingInstruction(\n                                                                 String target, String data) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createAttribute", "code": "  public final Attr createAttribute(String name) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createEntityReference", "code": "  public final EntityReference createEntityReference(String name)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getElementsByTagName", "code": "  public final NodeList getElementsByTagName(String tagname)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "importNode", "code": "  public final Node importNode(Node importedNode, boolean deep)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createElementNS", "code": "  public final Element createElementNS(\n                                       String namespaceURI, String qualifiedName) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createAttributeNS", "code": "  public final Attr createAttributeNS(\n                                      String namespaceURI, String qualifiedName) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getElementsByTagNameNS", "code": "  public final NodeList getElementsByTagNameNS(String namespaceURI,\n                                               String localName)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getElementById", "code": "  public final Element getElementById(String elementId)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "splitText", "code": "  public final Text splitText(int offset) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getData", "code": "  public final String getData() throws DOMException\n  {\n    return dtm.getNodeValue(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setData", "code": "  public final void setData(String data) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLength", "code": "  public final int getLength()\n  {\n    return dtm.getNodeValue(node).length();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "substringData", "code": "  public final String substringData(int offset, int count) throws DOMException\n  {\n    return getData().substring(offset,offset+count);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "appendData", "code": "  public final void appendData(String arg) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "insertData", "code": "  public final void insertData(int offset, String arg) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "deleteData", "code": "  public final void deleteData(int offset, int count) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "replaceData", "code": "  public final void replaceData(int offset, int count, String arg)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getTagName", "code": "  public final String getTagName()\n  {\n    return dtm.getNodeName(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAttribute", "code": "  public final String getAttribute(String name)\n  {\n\n    DTMNamedNodeMap  map = new DTMNamedNodeMap(dtm, node);\n    Node node = map.getNamedItem(name);\n    return (null == node) ? null : node.getNodeValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [5, 8], [2, 9], [3, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 5], [9, 2], [10, 3], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setAttribute", "code": "  public final void setAttribute(String name, String value)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeAttribute", "code": "  public final void removeAttribute(String name) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAttributeNode", "code": "  public final Attr getAttributeNode(String name)\n  {\n\n    DTMNamedNodeMap  map = new DTMNamedNodeMap(dtm, node);\n    return (Attr)map.getNamedItem(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setAttributeNode", "code": "  public final Attr setAttributeNode(Attr newAttr) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeAttributeNode", "code": "  public final Attr removeAttributeNode(Attr oldAttr) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hasAttributes", "code": "  public boolean hasAttributes()\n  {\n    return DTM.NULL != dtm.getFirstAttribute(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "normalize", "code": "  public final void normalize()\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAttributeNS", "code": "  public final String getAttributeNS(String namespaceURI, String localName)\n  {\n    DTMNamedNodeMap  map = new DTMNamedNodeMap(dtm, node);\n    Node node = map.getNamedItemNS(namespaceURI,localName);\n    return (null == node) ? null : node.getNodeValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [6, 9], [2, 10], [3, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 6], [10, 2], [11, 3], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setAttributeNS", "code": "  public final void setAttributeNS(\n                                   String namespaceURI, String qualifiedName, String value)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "removeAttributeNS", "code": "  public final void removeAttributeNS(String namespaceURI, String localName)\n    throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAttributeNodeNS", "code": "  public final Attr getAttributeNodeNS(String namespaceURI, String localName)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setAttributeNodeNS", "code": "  public final Attr setAttributeNodeNS(Attr newAttr) throws DOMException\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getName", "code": "  public final String getName()\n  {\n    return dtm.getNodeName(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSpecified", "code": "  public final boolean getSpecified()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValue", "code": "  public final String getValue()\n  {\n    return dtm.getNodeValue(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValue", "code": "  public final void setValue(String value)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getOwnerElement", "code": "  public final Element getOwnerElement()\n  {\n    if (getNodeType() != Node.ATTRIBUTE_NODE)\n      return null;\n    int newnode = dtm.getParent(node);\n    return (newnode == DTM.NULL) ? null : (Element)(dtm.getNode(newnode));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "COND_EXPR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [3, 6], [4, 7], [4, 8], [2, 9], [5, 10], [6, 11], [4, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 3], [7, 4], [8, 4], [9, 2], [10, 5], [11, 6], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "adoptNode", "code": "  public Node adoptNode(Node source) throws DOMException\n  {\n\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEncoding", "code": "  public String getEncoding()\n  {\n\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setEncoding", "code": "  public void setEncoding(String encoding)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStandalone", "code": "  public boolean getStandalone()\n  {\n\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStandalone", "code": "  public void setStandalone(boolean standalone)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStrictErrorChecking", "code": "  public boolean getStrictErrorChecking()\n  {\n\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStrictErrorChecking", "code": "  public void setStrictErrorChecking(boolean strictErrorChecking)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getVersion", "code": "  public String getVersion()\n  {\n\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVersion", "code": "  public void setVersion(String version)\n  {\n    throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DTMNodeProxy", "code": "  DTMNodeProxy(DTM dtm, int node)\n  {\n    this.dtm = dtm;\n    this.node = node;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-2622", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/bam/processor/ProcessContext.java", "language": "java", "name": "org.apache.camel.bam.processor.ProcessContext", "code": "public class ProcessContext {\n    private Exchange exchange;\n    private ProcessRules processRules;\n    private ActivityRules activityRules;\n    private ProcessInstance processInstance;\n    private ActivityState activityState;\n\n    public ProcessContext(Exchange exchange, ActivityRules activityRules, ActivityState activityState) {\n        this.exchange = exchange;\n        this.activityRules = activityRules;\n        this.activityState = activityState;\n        this.processRules = activityRules.getProcessRules();\n        this.processInstance = activityState.getProcessInstance();\n    }\n\n    public ActivityRules getActivity() {\n        return activityRules;\n    }\n\n    public void setActivity(ActivityRules activityRules) {\n        this.activityRules = activityRules;\n    }\n\n    public ActivityState getActivityState() {\n        return activityState;\n    }\n\n    public void setActivityState(ActivityState activityState) {\n        this.activityState = activityState;\n    }\n\n    public Exchange getExchange() {\n        return exchange;\n    }\n\n    public void setExchange(Exchange exchange) {\n        this.exchange = exchange;\n    }\n\n    public ProcessRules getProcessDefinition() {\n        return processRules;\n    }\n\n    public void setProcessDefinition(ProcessRules processRules) {\n        this.processRules = processRules;\n    }\n\n    public ProcessInstance getProcessInstance() {\n        return processInstance;\n    }\n\n    public void setProcessInstance(ProcessInstance processInstance) {\n        this.processInstance = processInstance;\n    }\n\n    public ActivityState getActivityState(ActivityRules activityRules) {\n        return getProcessInstance().getActivityState(activityRules);\n    }\n\n    /**\n     * Called when the activity is started which may end up creating some timers\n     * for dependent actions\n     */\n    public void onStarted(ActivityState activityState) {\n        /** TODO */\n    }\n\n    /**\n     * Called when the activity is completed which may end up creating some timers\n     * for dependent actions\n     */\n    public void onCompleted(ActivityState activityState) {", "functions": [{"function_name": "getActivity", "code": "    public ActivityRules getActivity() {\n        return activityRules;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setActivity", "code": "    public void setActivity(ActivityRules activityRules) {\n        this.activityRules = activityRules;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActivityState", "code": "    public ActivityState getActivityState() {\n        return activityState;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setActivityState", "code": "    public void setActivityState(ActivityState activityState) {\n        this.activityState = activityState;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExchange", "code": "    public Exchange getExchange() {\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExchange", "code": "    public void setExchange(Exchange exchange) {\n        this.exchange = exchange;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProcessDefinition", "code": "    public ProcessRules getProcessDefinition() {\n        return processRules;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessDefinition", "code": "    public void setProcessDefinition(ProcessRules processRules) {\n        this.processRules = processRules;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProcessInstance", "code": "    public ProcessInstance getProcessInstance() {\n        return processInstance;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessInstance", "code": "    public void setProcessInstance(ProcessInstance processInstance) {\n        this.processInstance = processInstance;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActivityState", "code": "    public ActivityState getActivityState(ActivityRules activityRules) {\n        return getProcessInstance().getActivityState(activityRules);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "onStarted", "code": "    public void onStarted(ActivityState activityState) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "onCompleted", "code": "    public void onCompleted(ActivityState activityState) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ProcessContext", "code": "    public ProcessContext(Exchange exchange, ActivityRules activityRules, ActivityState activityState) {\n        this.exchange = exchange;\n        this.activityRules = activityRules;\n        this.activityState = activityState;\n        this.processRules = activityRules.getProcessRules();\n        this.processInstance = activityState.getProcessInstance();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "xalan-2.6-7831", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/dom/MultipleNodeCounter.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.MultipleNodeCounter", "code": "public abstract class MultipleNodeCounter extends NodeCounter {\n    private DTMAxisIterator _precSiblings = null;\n\n    public MultipleNodeCounter(Translet translet,\n\t\t\t       DOM document, DTMAxisIterator iterator) {\n\tsuper(translet, document, iterator);\n    }\n\t\n    public NodeCounter setStartNode(int node) {\n\t_node = node;\n\t_nodeType = _document.getExpandedTypeID(node);\n\t_precSiblings = _document.getAxisIterator(PRECEDINGSIBLING);\n\treturn this;\n    }\n\n    public String getCounter() {\n\tif (_value != Integer.MIN_VALUE) {\n\t    return formatNumbers(_value);\n\t}\n\n\tIntegerArray ancestors = new IntegerArray();\n\n\tint next = _node;\n\twhile ((next = _document.getParent(next)) > END && \n\t       !matchesFrom(next)) {\n\t    ancestors.add(next);\n\t}\n\n\tfinal int nAncestors = ancestors.cardinality();\n\tfinal int[] counters = new int[nAncestors]; \n\tfor (int i = 0; i < nAncestors; i++) {\n\t    counters[i] = Integer.MIN_VALUE;\n\t}\n\n\tfor (int j = 0, i = nAncestors - 1; i >= 0 ; i--, j++) {\n\t    final int counter = counters[j];\n\t    final int ancestor = ancestors.at(i);\n\n\t    if (matchesCount(ancestor)) {\n\t\t_precSiblings.setStartNode(ancestor);\n\t\twhile ((next = _precSiblings.next()) != END) {\n\t\t    if (matchesCount(next)) {\n\t\t\tcounters[j] = (counters[j] == Integer.MIN_VALUE) ? 1 \n\t\t\t    : counters[j] + 1;\t\t\n\t\t    }\n\t\t}\n\t\tcounters[j] = counters[j] == Integer.MIN_VALUE\n\t\t    ? 1 \n\t\t    : counters[j] + 1;\t\n\t    }\n\t}\n\treturn formatNumbers(counters);\n    }\n\n    public static NodeCounter getDefaultNodeCounter(Translet translet,\n\t\t\t\t\t\t    DOM document,\n\t\t\t\t\t\t    DTMAxisIterator iterator) {\n\treturn new DefaultMultipleNodeCounter(translet, document, iterator);\n    }\n\n    static class DefaultMultipleNodeCounter extends MultipleNodeCounter {\n\tpublic DefaultMultipleNodeCounter(Translet translet,\n\t\t\t\t\t  DOM document,\n\t\t\t\t\t  DTMAxisIterator iterator) {\n\t    super(translet, document, iterator);", "functions": [{"function_name": "setStartNode", "code": "    public NodeCounter setStartNode(int node) {\n\t_node = node;\n\t_nodeType = _document.getExpandedTypeID(node);\n\t_precSiblings = _document.getAxisIterator(PRECEDINGSIBLING);\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getCounter", "code": "    public String getCounter() {\n\tif (_value != Integer.MIN_VALUE) {\n\t    return formatNumbers(_value);\n\t}\n\n\tIntegerArray ancestors = new IntegerArray();\n\n\tint next = _node;\n\twhile ((next = _document.getParent(next)) > END && \n\t       !matchesFrom(next)) {\n\t    ancestors.add(next);\n\t}\n\n\tfinal int nAncestors = ancestors.cardinality();\n\tfinal int[] counters = new int[nAncestors]; \n\tfor (int i = 0; i < nAncestors; i++) {\n\t    counters[i] = Integer.MIN_VALUE;\n\t}\n\n\tfor (int j = 0, i = nAncestors - 1; i >= 0 ; i--, j++) {\n\t    final int counter = counters[j];\n\t    final int ancestor = ancestors.at(i);\n\n\t    if (matchesCount(ancestor)) {\n\t\t_precSiblings.setStartNode(ancestor);\n\t\twhile ((next = _precSiblings.next()) != END) {\n\t\t    if (matchesCount(next)) {\n\t\t\tcounters[j] = (counters[j] == Integer.MIN_VALUE) ? 1 \n\t\t\t    : counters[j] + 1;\t\t\n\t\t    }\n\t\t}\n\t\tcounters[j] = counters[j] == Integer.MIN_VALUE\n\t\t    ? 1 \n\t\t    : counters[j] + 1;\t\n\t    }\n\t}\n\treturn formatNumbers(counters);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LOOP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "COND_EXPR", "IF", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [6, 13], [9, 14], [2, 15], [2, 16], [2, 17], [11, 18], [5, 19], [13, 20], [13, 21], [8, 22], [9, 23], [15, 24], [2, 25], [2, 26], [3, 27], [3, 28], [6, 29], [21, 30], [23, 31], [15, 32], [16, 33], [25, 34], [30, 35], [15, 36], [32, 37], [15, 38], [36, 39], [32, 40], [37, 41], [39, 42], [39, 43], [39, 44], [40, 45], [41, 46], [42, 47], [40, 48], [48, 49], [49, 50], [49, 51], [49, 52], [50, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 6], [14, 9], [15, 2], [16, 2], [17, 2], [18, 11], [19, 5], [20, 13], [21, 13], [22, 8], [23, 9], [24, 15], [25, 2], [26, 2], [27, 3], [28, 3], [29, 6], [30, 21], [31, 23], [32, 15], [33, 16], [34, 25], [35, 30], [36, 15], [37, 32], [38, 15], [39, 36], [40, 32], [41, 37], [42, 39], [43, 39], [44, 39], [45, 40], [46, 41], [47, 42], [48, 40], [49, 48], [50, 49], [51, 49], [52, 49], [53, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "getDefaultNodeCounter", "code": "    public static NodeCounter getDefaultNodeCounter(Translet translet,\n\t\t\t\t\t\t    DOM document,\n\t\t\t\t\t\t    DTMAxisIterator iterator) {\n\treturn new DefaultMultipleNodeCounter(translet, document, iterator);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "MultipleNodeCounter", "code": "    public MultipleNodeCounter(Translet translet,\n\t\t\t       DOM document, DTMAxisIterator iterator) {\n\tsuper(translet, document, iterator);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.7-8221", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/extensions/ExpressionContext.java", "language": "java", "name": "org.apache.xalan.extensions.ExpressionContext", "code": "public interface ExpressionContext\n{\n\n  /**\n   * Get the current context node.\n   * @return The current context node.\n   */\n  public Node getContextNode();\n\n  /**\n   * Get the current context node list.\n   * @return An iterator for the current context list, as\n   * defined in XSLT.\n   */\n  public NodeIterator getContextNodes();\n  \n  /**\n   * Get the error listener.\n   * @return The registered error listener.\n   */\n  public ErrorListener getErrorListener();\n\n  /**\n   * Get the value of a node as a number.\n   * @param n Node to be converted to a number.  May be null.\n   * @return value of n as a number.\n   */\n  public double toNumber(Node n);\n\n  /**\n   * Get the value of a node as a string.\n   * @param n Node to be converted to a string.  May be null.\n   * @return value of n as a string, or an empty string if n is null.\n   */\n  public String toString(Node n);\n\n  /**\n   * Get a variable based on it's qualified name.\n   *\n   * @param qname The qualified name of the variable.\n   *\n   * @return The evaluated value of the variable.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject getVariableOrParam(org.apache.xml.utils.QName qname)\n            throws javax.xml.transform.TransformerException;\n  \n  /**\n   * Get the XPathContext that owns this ExpressionContext.\n   * \n   * Note: exslt:function requires the XPathContext to access\n   * the variable stack and TransformerImpl.\n   * \n   * @return The current XPathContext.\n   * @throws javax.xml.transform.TransformerException\n   */\n  public org.apache.xpath.XPathContext getXPathContext()", "functions": [{"function_name": "getContextNode", "code": "  public Node getContextNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getContextNodes", "code": "  public NodeIterator getContextNodes();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getErrorListener", "code": "  public ErrorListener getErrorListener();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "toNumber", "code": "  public double toNumber(Node n);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "  public String toString(Node n);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getVariableOrParam", "code": "  public XObject getVariableOrParam(org.apache.xml.utils.QName qname)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXPathContext", "code": "  public org.apache.xpath.XPathContext getXPathContext()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.5-7083", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/dtm/ref/IncrementalSAXSource_Filter.java", "language": "java", "name": "org.apache.xml.dtm.ref.IncrementalSAXSource_Filter", "code": "public class IncrementalSAXSource_Filter\nimplements IncrementalSAXSource, ContentHandler, DTDHandler, LexicalHandler, ErrorHandler, Runnable\n{\n\n  private CoroutineManager fCoroutineManager = null;\n  private int fControllerCoroutineID = -1;\n  private int fSourceCoroutineID = -1;\n\n  private int eventcounter;\n  private int frequency=5;\n\n  private boolean fNoMoreEvents=false;\n\n  private XMLReader fXMLReader=null;\n  private InputSource fXMLReaderInputSource=null;\n\n\n  public IncrementalSAXSource_Filter() {\n    this.init( new CoroutineManager(), -1, -1);\n  }\n  \n  /** Create a IncrementalSAXSource_Filter which is not yet bound to a specific\n   * SAX event source.\n   * */\n  public IncrementalSAXSource_Filter(CoroutineManager co, int controllerCoroutineID)\n  {\n    this.init( co, controllerCoroutineID, -1 );\n  }\n\n  static public IncrementalSAXSource createIncrementalSAXSource(CoroutineManager co, int controllerCoroutineID) {\n    return new IncrementalSAXSource_Filter(co, controllerCoroutineID);\n  }\n\n\n  public void init( CoroutineManager co, int controllerCoroutineID,\n                    int sourceCoroutineID)\n  {\n    if(co==null)\n      co = new CoroutineManager();\n    fCoroutineManager = co;\n    fControllerCoroutineID = co.co_joinCoroutineSet(controllerCoroutineID);\n    fSourceCoroutineID = co.co_joinCoroutineSet(sourceCoroutineID);\n    if (fControllerCoroutineID == -1 || fSourceCoroutineID == -1)\n\n    fNoMoreEvents=false;\n    eventcounter=frequency;\n  }\n    \n  /** Bind our input streams to an XMLReader.\n   *\n   * Just a convenience routine; obviously you can explicitly register\n   * this as a listener with the same effect.\n   * */\n  public void setXMLReader(XMLReader eventsource)\n  {\n    fXMLReader=eventsource;\n    eventsource.setContentHandler(this);\n    eventsource.setDTDHandler(this);\n\n    try \n    {\n      \n    }\n    catch(SAXNotRecognizedException e)\n    {\n    }\n    catch(SAXNotSupportedException e)\n    {\n    }\n\n  }\n\n  public void setContentHandler(ContentHandler handler)\n  {\n    clientContentHandler=handler;\n  }\n  public void setDTDHandler(DTDHandler handler)\n  {\n    clientDTDHandler=handler;\n  }\n  public void setLexicalHandler(LexicalHandler handler)\n  {\n    clientLexicalHandler=handler;\n  }\n  public void setErrHandler(ErrorHandler handler)\n  {\n    clientErrorHandler=handler;\n  }\n\n  public void setReturnFrequency(int events)\n  {\n    if(events<1) events=1;\n    frequency=eventcounter=events;\n  }\n  \n  public void characters(char[] ch, int start, int length)\n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.characters(ch,start,length);\n  }\n  public void endDocument() \n       throws org.xml.sax.SAXException\n  {\n    if(clientContentHandler!=null)\n      clientContentHandler.endDocument();\n\n    eventcounter=0;     \n    co_yield(false);\n  }\n  public void endElement(java.lang.String namespaceURI, java.lang.String localName,\n      java.lang.String qName) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.endElement(namespaceURI,localName,qName);\n  }\n  public void endPrefixMapping(java.lang.String prefix) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.endPrefixMapping(prefix);\n  }\n  public void ignorableWhitespace(char[] ch, int start, int length) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.ignorableWhitespace(ch,start,length);\n  }\n  public void processingInstruction(java.lang.String target, java.lang.String data) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.processingInstruction(target,data);\n  }\n  public void setDocumentLocator(Locator locator) \n  {\n    if(--eventcounter<=0)\n      {\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.setDocumentLocator(locator);\n  }\n  public void skippedEntity(java.lang.String name) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.skippedEntity(name);\n  }\n  public void startDocument() \n       throws org.xml.sax.SAXException\n  {\n    co_entry_pause();\n\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.startDocument();\n  }\n  public void startElement(java.lang.String namespaceURI, java.lang.String localName,\n      java.lang.String qName, Attributes atts) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.startElement(namespaceURI, localName, qName, atts);\n  }\n  public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.startPrefixMapping(prefix,uri);\n  }\n\n  public void comment(char[] ch, int start, int length) \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.comment(ch,start,length);\n  }\n  public void endCDATA() \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.endCDATA();\n  }\n  public void endDTD() \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.endDTD();\n  }\n  public void endEntity(java.lang.String name) \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.endEntity(name);\n  }\n  public void startCDATA() \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.startCDATA();\n  }\n  public void startDTD(java.lang.String name, java.lang.String publicId,\n      java.lang.String systemId) \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler. startDTD(name, publicId, systemId);\n  }\n  public void startEntity(java.lang.String name) \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.startEntity(name);\n  }\n\n  \n  public void notationDecl(String a, String b, String c) throws SAXException\n  {\n  \tif(null!=clientDTDHandler)\n\t  \tclientDTDHandler.notationDecl(a,b,c);\n  }\n  public void unparsedEntityDecl(String a, String b, String c, String d)  throws SAXException\n  {\n  \tif(null!=clientDTDHandler)\n\t  \tclientDTDHandler.unparsedEntityDecl(a,b,c,d);\n  }\n  \n  public void error(SAXParseException exception) throws SAXException\n  {\n    if(null!=clientErrorHandler)\n      clientErrorHandler.error(exception);\n  }\n  \n  public void fatalError(SAXParseException exception) throws SAXException\n  {\n    if(null!=clientErrorHandler)\n      clientErrorHandler.error(exception);\n\n    eventcounter=0;     \n    co_yield(false);\n\n  }\n  \n  public void warning(SAXParseException exception) throws SAXException\n  {\n    if(null!=clientErrorHandler)\n      clientErrorHandler.error(exception);\n  }\n  \n\n\n  public int getSourceCoroutineID() {\n    return fSourceCoroutineID;\n  }\n  public int getControllerCoroutineID() {\n    return fControllerCoroutineID;\n  }\n\n  /** @return the CoroutineManager this CoroutineFilter object is bound to.\n   * If you're using the do...() methods, applications should only\n   * need to talk to the CoroutineManager once, to obtain the\n   * application's Coroutine ID.\n   * */\n  public CoroutineManager getCoroutineManager()\n  {\n    return fCoroutineManager;\n  }\n\n  /** <p>In the SAX delegation code, I've inlined the count-down in\n   * the hope of encouraging compilers to deliver better\n   * performance. However, if we subclass (eg to directly connect the\n   * output to a DTM builder), that would require calling super in\n   * order to run that logic... which seems inelegant.  Hence this\n   * routine for the convenience of subclasses: every [frequency]\n   * invocations, issue a co_yield.</p>\n   *\n   * @param moreExepected Should always be true unless this is being called\n   * at the end of endDocument() handling.\n   * */\n  protected void count_and_yield(boolean moreExpected) throws SAXException\n  {\n    if(!moreExpected) eventcounter=0;\n    \n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n  }\n\n  /**\n   * co_entry_pause is called in startDocument() before anything else\n   * happens. It causes the filter to wait for a \"go ahead\" request\n   * from the controller before delivering any events. Note that\n   * the very first thing the controller tells us may be \"I don't\n   * need events after all\"!\n   */\n  private void co_entry_pause() throws SAXException\n  {\n    if(fCoroutineManager==null)\n    {\n      init(null,-1,-1);\n    }\n\n    try\n    {\n      Object arg=fCoroutineManager.co_entry_pause(fSourceCoroutineID);\n      if(arg==Boolean.FALSE)\n        co_yield(false);\n    }\n    catch(NoSuchMethodException e)\n    {\n      if(DEBUG) e.printStackTrace();\n      throw new SAXException(e);\n    }\n  }\n\n  /**\n   * Co_Yield handles coroutine interactions while a parse is in progress.\n   *\n   * When moreRemains==true, we are pausing after delivering events, to\n   * ask if more are needed. We will resume the controller thread with \n   *   co_resume(Boolean.TRUE, ...)\n   * When control is passed back it may indicate\n   *      Boolean.TRUE    indication to continue delivering events\n   *      Boolean.FALSE   indication to discontinue events and shut down.\n   * \n   * When moreRemains==false, we shut down immediately without asking the\n   * controller's permission. Normally this means end of document has been\n   * reached.\n   *\n   * Shutting down a IncrementalSAXSource_Filter requires terminating the incoming\n   * SAX event stream. If we are in control of that stream (if it came\n   * from an XMLReader passed to our startReader() method), we can do so\n   * very quickly by throwing a reserved exception to it. If the stream is\n   * coming from another source, we can't do that because its caller may\n   * not be prepared for this \"normal abnormal exit\", and instead we put\n   * ourselves in a \"spin\" mode where events are discarded.\n   */\n  private void co_yield(boolean moreRemains) throws SAXException\n  {\n    if(fNoMoreEvents)\n      return;\n\n    try{\n      Object arg=Boolean.FALSE;\n      if(moreRemains)\n      {\n        arg = fCoroutineManager.co_resume(Boolean.TRUE, fSourceCoroutineID,\n                                          fControllerCoroutineID);\n        \n      }\n\n      if(arg==Boolean.FALSE)\n      {\n        fNoMoreEvents=true;\n        \n        \n        fCoroutineManager.co_exit_to(Boolean.FALSE, fSourceCoroutineID,\n                                     fControllerCoroutineID);\n      }\n    }\n    catch(NoSuchMethodException e)\n    {\n      fNoMoreEvents=true;\n      fCoroutineManager.co_exit(fSourceCoroutineID);\n      throw new SAXException(e);\n    }\n  }\n\n\n  /** Launch a thread that will run an XMLReader's parse() operation within\n   *  a thread, feeding events to this IncrementalSAXSource_Filter. Mostly a convenience\n   *  routine, but has the advantage that -- since we invoked parse() --\n   *  we can halt parsing quickly via a StopException rather than waiting\n   *  for the SAX stream to end by itself.\n   *\n   * @throws SAXException is parse thread is already in progress\n   * or parsing can not be started.\n   * */\n  public void startParse(InputSource source) throws SAXException\n  {\n    if(fNoMoreEvents)\n    if(fXMLReader==null)\n\n    fXMLReaderInputSource=source;\n    \n    ThreadControllerWrapper.runThread(this, -1);\n  }\n  \n  /* Thread logic to support startParseThread()\n   */\n  public void run()\n  {\n    if(fXMLReader==null) return;\n\n    if(DEBUG)System.out.println(\"IncrementalSAXSource_Filter parse thread launched\");\n\n    Object arg=Boolean.FALSE;\n\n    try\n    {\n      fXMLReader.parse(fXMLReaderInputSource);\n    }\n    catch(IOException ex)\n    {\n      arg=ex;\n    }\n    catch(StopException ex)\n    {\n      if(DEBUG)System.out.println(\"Active IncrementalSAXSource_Filter normal stop exception\");\n    }\n    catch (SAXException ex)\n    {\n      Exception inner=ex.getException();\n      if(inner instanceof StopException){\n        if(DEBUG)System.out.println(\"Active IncrementalSAXSource_Filter normal stop exception\");\n      }\n      else\n      {\n        if(DEBUG)\n        {\n          System.out.println(\"Active IncrementalSAXSource_Filter UNEXPECTED SAX exception: \"+inner);\n          inner.printStackTrace();\n        }                \n        arg=ex;\n      }\n    }\n    fXMLReader=null;\n\n    try\n    {\n      fNoMoreEvents=true;\n      fCoroutineManager.co_exit_to(arg, fSourceCoroutineID,\n                                   fControllerCoroutineID);\n    }\n    catch(java.lang.NoSuchMethodException e)\n    {\n      e.printStackTrace(System.err);\n      fCoroutineManager.co_exit(fSourceCoroutineID);\n    }\n  }\n\n  /** Used to quickly terminate parse when running under a\n      startParse() thread. Only its type is important. */\n  class StopException extends RuntimeException\n  {\n  }\n\n  /** deliverMoreNodes() is a simple API which tells the coroutine\n   * parser that we need more nodes.  This is intended to be called\n   * from one of our partner routines, and serves to encapsulate the\n   * details of how incremental parsing has been achieved.\n   *\n   * @param parsemore If true, tells the incremental filter to generate\n   * another chunk of output. If false, tells the filter that we're\n   * satisfied and it can terminate parsing of this document.\n   *\n   * @return Boolean.TRUE if there may be more events available by invoking\n   * deliverMoreNodes() again. Boolean.FALSE if parsing has run to completion (or been\n   * terminated by deliverMoreNodes(false). Or an exception object if something\n   * malfunctioned. %REVIEW% We _could_ actually throw the exception, but\n   * that would require runinng deliverMoreNodes() in a try/catch... and for many\n   * applications, exception will be simply be treated as \"not TRUE\" in\n   * any case.\n   * */\n  public Object deliverMoreNodes(boolean parsemore)\n  {\n    if(fNoMoreEvents)\n      return Boolean.FALSE;\n\n    try \n    {\n      Object result =\n        fCoroutineManager.co_resume(parsemore?Boolean.TRUE:Boolean.FALSE,\n                                    fControllerCoroutineID, fSourceCoroutineID);\n      if(result==Boolean.FALSE)\n        fCoroutineManager.co_exit(fControllerCoroutineID);\n\n      return result;\n    }\n      \n    catch(NoSuchMethodException e)\n      {\n        return e;", "functions": [{"function_name": "createIncrementalSAXSource", "code": "  static public IncrementalSAXSource createIncrementalSAXSource(CoroutineManager co, int controllerCoroutineID) {\n    return new IncrementalSAXSource_Filter(co, controllerCoroutineID);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "init", "code": "  public void init( CoroutineManager co, int controllerCoroutineID,\n                    int sourceCoroutineID)\n  {\n    if(co==null)\n      co = new CoroutineManager();\n    fCoroutineManager = co;\n    fControllerCoroutineID = co.co_joinCoroutineSet(controllerCoroutineID);\n    fSourceCoroutineID = co.co_joinCoroutineSet(sourceCoroutineID);\n    if (fControllerCoroutineID == -1 || fSourceCoroutineID == -1)\n\n    fNoMoreEvents=false;\n    eventcounter=frequency;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [2, 11], [1, 12], [7, 13], [7, 14], [8, 15], [9, 16], [2, 17], [11, 18], [12, 19], [13, 20], [14, 21], [17, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 2], [12, 1], [13, 7], [14, 7], [15, 8], [16, 9], [17, 2], [18, 11], [19, 12], [20, 13], [21, 14], [22, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "setXMLReader", "code": "  public void setXMLReader(XMLReader eventsource)\n  {\n    fXMLReader=eventsource;\n    eventsource.setContentHandler(this);\n    eventsource.setDTDHandler(this);\n\n    try ", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setContentHandler", "code": "  public void setContentHandler(ContentHandler handler)\n  {\n    clientContentHandler=handler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDTDHandler", "code": "  public void setDTDHandler(DTDHandler handler)\n  {\n    clientDTDHandler=handler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLexicalHandler", "code": "  public void setLexicalHandler(LexicalHandler handler)\n  {\n    clientLexicalHandler=handler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrHandler", "code": "  public void setErrHandler(ErrorHandler handler)\n  {\n    clientErrorHandler=handler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setReturnFrequency", "code": "  public void setReturnFrequency(int events)\n  {\n    if(events<1) events=1;\n    frequency=eventcounter=events;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [4, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 4], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "characters", "code": "  public void characters(char[] ch, int start, int length)\n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.characters(ch,start,length);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [6, 9], [7, 10], [2, 11], [2, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 6], [10, 7], [11, 2], [12, 2], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "endDocument", "code": "  public void endDocument() \n       throws org.xml.sax.SAXException\n  {\n    if(clientContentHandler!=null)\n      clientContentHandler.endDocument();\n\n    eventcounter=0;     \n    co_yield(false);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "endElement", "code": "  public void endElement(java.lang.String namespaceURI, java.lang.String localName,\n      java.lang.String qName) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.endElement(namespaceURI,localName,qName);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [6, 9], [7, 10], [2, 11], [2, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 6], [10, 7], [11, 2], [12, 2], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(java.lang.String prefix) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.endPrefixMapping(prefix);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [4, 7], [5, 8], [2, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 4], [8, 5], [9, 2], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char[] ch, int start, int length) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.ignorableWhitespace(ch,start,length);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [6, 9], [7, 10], [2, 11], [2, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 6], [10, 7], [11, 2], [12, 2], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(java.lang.String target, java.lang.String data) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.processingInstruction(target,data);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [6, 9], [2, 10], [2, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 6], [10, 2], [11, 2], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator) \n  {\n    if(--eventcounter<=0)\n      {\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.setDocumentLocator(locator);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [4, 7], [5, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 4], [8, 5], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(java.lang.String name) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.skippedEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [4, 7], [5, 8], [2, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 4], [8, 5], [9, 2], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "startDocument", "code": "  public void startDocument() \n       throws org.xml.sax.SAXException\n  {\n    co_entry_pause();\n\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.startDocument();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [0, 5], [1, 6], [3, 7], [4, 8], [2, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 0], [6, 1], [7, 3], [8, 4], [9, 2], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "startElement", "code": "  public void startElement(java.lang.String namespaceURI, java.lang.String localName,\n      java.lang.String qName, Attributes atts) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.startElement(namespaceURI, localName, qName, atts);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [7, 10], [8, 11], [2, 12], [2, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 7], [11, 8], [12, 2], [13, 2], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) \n       throws org.xml.sax.SAXException\n  {\n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;\n      }\n    if(clientContentHandler!=null)\n      clientContentHandler.startPrefixMapping(prefix,uri);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [6, 9], [2, 10], [2, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 6], [10, 2], [11, 2], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "comment", "code": "  public void comment(char[] ch, int start, int length) \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.comment(ch,start,length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "endCDATA", "code": "  public void endCDATA() \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.endCDATA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "endDTD", "code": "  public void endDTD() \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.endDTD();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "endEntity", "code": "  public void endEntity(java.lang.String name) \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.endEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "startCDATA", "code": "  public void startCDATA() \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.startCDATA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startDTD", "code": "  public void startDTD(java.lang.String name, java.lang.String publicId,\n      java.lang.String systemId) \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler. startDTD(name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "startEntity", "code": "  public void startEntity(java.lang.String name) \n       throws org.xml.sax.SAXException\n  {\n    if(null!=clientLexicalHandler)\n      clientLexicalHandler.startEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "notationDecl", "code": "  public void notationDecl(String a, String b, String c) throws SAXException\n  {\n  \tif(null!=clientDTDHandler)\n\t  \tclientDTDHandler.notationDecl(a,b,c);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "unparsedEntityDecl", "code": "  public void unparsedEntityDecl(String a, String b, String c, String d)  throws SAXException\n  {\n  \tif(null!=clientDTDHandler)\n\t  \tclientDTDHandler.unparsedEntityDecl(a,b,c,d);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "error", "code": "  public void error(SAXParseException exception) throws SAXException\n  {\n    if(null!=clientErrorHandler)\n      clientErrorHandler.error(exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "fatalError", "code": "  public void fatalError(SAXParseException exception) throws SAXException\n  {\n    if(null!=clientErrorHandler)\n      clientErrorHandler.error(exception);\n\n    eventcounter=0;     \n    co_yield(false);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "warning", "code": "  public void warning(SAXParseException exception) throws SAXException\n  {\n    if(null!=clientErrorHandler)\n      clientErrorHandler.error(exception);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSourceCoroutineID", "code": "  public int getSourceCoroutineID() {\n    return fSourceCoroutineID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getControllerCoroutineID", "code": "  public int getControllerCoroutineID() {\n    return fControllerCoroutineID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCoroutineManager", "code": "  public CoroutineManager getCoroutineManager()\n  {\n    return fCoroutineManager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "count_and_yield", "code": "  protected void count_and_yield(boolean moreExpected) throws SAXException\n  {\n    if(!moreExpected) eventcounter=0;\n    \n    if(--eventcounter<=0)\n      {\n        co_yield(true);\n        eventcounter=frequency;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 7], [1, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 1], [8, 1], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "co_entry_pause", "code": "  private void co_entry_pause() throws SAXException\n  {\n    if(fCoroutineManager==null)\n    {\n      init(null,-1,-1);\n    }\n\n    try\n    {\n      Object arg=fCoroutineManager.co_entry_pause(fSourceCoroutineID);\n      if(arg==Boolean.FALSE)\n        co_yield(false);\n    }\n    catch(NoSuchMethodException e)\n    {\n      if(DEBUG) e.printStackTrace();\n      throw new SAXException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [3, 8], [4, 9], [6, 10], [7, 11], [4, 12], [5, 13], [2, 14], [8, 15], [12, 16], [14, 17], [14, 18], [14, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 3], [9, 4], [10, 6], [11, 7], [12, 4], [13, 5], [14, 2], [15, 8], [16, 12], [17, 14], [18, 14], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "co_yield", "code": "  private void co_yield(boolean moreRemains) throws SAXException\n  {\n    if(fNoMoreEvents)\n      return;\n\n    try{\n      Object arg=Boolean.FALSE;\n      if(moreRemains)\n      {\n        arg = fCoroutineManager.co_resume(Boolean.TRUE, fSourceCoroutineID,\n                                          fControllerCoroutineID);\n        \n      }\n\n      if(arg==Boolean.FALSE)\n      {\n        fNoMoreEvents=true;\n        \n        \n        fCoroutineManager.co_exit_to(Boolean.FALSE, fSourceCoroutineID,\n                                     fControllerCoroutineID);\n      }\n    }\n    catch(NoSuchMethodException e)\n    {\n      fNoMoreEvents=true;\n      fCoroutineManager.co_exit(fSourceCoroutineID);\n      throw new SAXException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "IF", "IF", "VAR_DECL", "RETURN", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [4, 9], [5, 10], [9, 11], [4, 12], [4, 13], [13, 14], [5, 15], [5, 16], [6, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 4], [10, 5], [11, 9], [12, 4], [13, 4], [14, 13], [15, 5], [16, 5], [17, 6], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "startParse", "code": "  public void startParse(InputSource source) throws SAXException\n  {\n    if(fNoMoreEvents)\n    if(fXMLReader==null)\n\n    fXMLReaderInputSource=source;\n    \n    ThreadControllerWrapper.runThread(this, -1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [4, 6], [4, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 4], [7, 4], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "run", "code": "  public void run()\n  {\n    if(fXMLReader==null) return;\n\n    if(DEBUG)System.out.println(\"IncrementalSAXSource_Filter parse thread launched\");\n\n    Object arg=Boolean.FALSE;\n\n    try\n    {\n      fXMLReader.parse(fXMLReaderInputSource);\n    }\n    catch(IOException ex)\n    {\n      arg=ex;\n    }\n    catch(StopException ex)\n    {\n      if(DEBUG)System.out.println(\"Active IncrementalSAXSource_Filter normal stop exception\");\n    }\n    catch (SAXException ex)\n    {\n      Exception inner=ex.getException();\n      if(inner instanceof StopException){\n        if(DEBUG)System.out.println(\"Active IncrementalSAXSource_Filter normal stop exception\");\n      }\n      else\n      {\n        if(DEBUG)\n        {\n          System.out.println(\"Active IncrementalSAXSource_Filter UNEXPECTED SAX exception: \"+inner);\n          inner.printStackTrace();\n        }                \n        arg=ex;\n      }\n    }\n    fXMLReader=null;\n\n    try\n    {\n      fNoMoreEvents=true;\n      fCoroutineManager.co_exit_to(arg, fSourceCoroutineID,\n                                   fControllerCoroutineID);\n    }\n    catch(java.lang.NoSuchMethodException e)\n    {\n      e.printStackTrace(System.err);\n      fCoroutineManager.co_exit(fSourceCoroutineID);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "VAR_DECL", "IF", "IF", "CATCH", "ASSIGN", "CATCH", "CATCH", "CATCH", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [2, 9], [2, 10], [5, 11], [5, 12], [1, 13], [1, 14], [7, 15], [8, 16], [8, 17], [9, 18], [2, 19], [4, 20], [12, 21], [6, 22], [6, 23], [14, 24], [16, 25], [10, 26], [20, 27], [16, 28], [16, 29], [17, 30], [18, 31], [16, 32], [31, 33], [29, 34], [28, 35], [28, 36], [34, 37], [36, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 2], [10, 2], [11, 5], [12, 5], [13, 1], [14, 1], [15, 7], [16, 8], [17, 8], [18, 9], [19, 2], [20, 4], [21, 12], [22, 6], [23, 6], [24, 14], [25, 16], [26, 10], [27, 20], [28, 16], [29, 16], [30, 17], [31, 18], [32, 16], [33, 31], [34, 29], [35, 28], [36, 28], [37, 34], [38, 36], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "deliverMoreNodes", "code": "  public Object deliverMoreNodes(boolean parsemore)\n  {\n    if(fNoMoreEvents)\n      return Boolean.FALSE;\n\n    try \n    {\n      Object result =\n        fCoroutineManager.co_resume(parsemore?Boolean.TRUE:Boolean.FALSE,\n                                    fControllerCoroutineID, fSourceCoroutineID);\n      if(result==Boolean.FALSE)\n        fCoroutineManager.co_exit(fControllerCoroutineID);\n\n      return result;\n    }\n      \n    catch(NoSuchMethodException e)\n      {\n        return e;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "RETURN", "IF", "VAR_DECL", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "COND_EXPR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [4, 9], [6, 10], [6, 11], [7, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 4], [10, 6], [11, 6], [12, 7], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "IncrementalSAXSource_Filter", "code": "  public IncrementalSAXSource_Filter() {\n    this.init( new CoroutineManager(), -1, -1);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 0], [2, 1], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "IncrementalSAXSource_Filter", "code": "  public IncrementalSAXSource_Filter(CoroutineManager co, int controllerCoroutineID)\n  {\n    this.init( co, controllerCoroutineID, -1 );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-3.0-6297", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/AreaFormatRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.AreaFormatRecord", "code": "public class AreaFormatRecord\n    extends Record\n{\n    public final static short      sid                             = 0x100a;\n    private  int        field_1_foregroundColor;\n    private  int        field_2_backgroundColor;\n    private  short      field_3_pattern;\n    private  short      field_4_formatFlags;\n    private  BitField   automatic                                   = BitFieldFactory.getInstance(0x1);\n    private  BitField   invert                                      = BitFieldFactory.getInstance(0x2);\n    private  short      field_5_forecolorIndex;\n    private  short      field_6_backcolorIndex;\n\n\n    public AreaFormatRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a AreaFormat record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x100a or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public AreaFormatRecord(RecordInputStream in)\n    {\n        super(in);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a AreaFormat record\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_foregroundColor        = in.readInt();\n        field_2_backgroundColor        = in.readInt();\n        field_3_pattern                = in.readShort();\n        field_4_formatFlags            = in.readShort();\n        field_5_forecolorIndex         = in.readShort();\n        field_6_backcolorIndex         = in.readShort();\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AREAFORMAT]\\n\");\n        buffer.append(\"    .foregroundColor      = \")\n            .append(\"0x\").append(HexDump.toHex(  getForegroundColor ()))\n            .append(\" (\").append( getForegroundColor() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .backgroundColor      = \")\n            .append(\"0x\").append(HexDump.toHex(  getBackgroundColor ()))\n            .append(\" (\").append( getBackgroundColor() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .pattern              = \")\n            .append(\"0x\").append(HexDump.toHex(  getPattern ()))\n            .append(\" (\").append( getPattern() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .formatFlags          = \")\n            .append(\"0x\").append(HexDump.toHex(  getFormatFlags ()))\n            .append(\" (\").append( getFormatFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .automatic                = \").append(isAutomatic()).append('\\n'); \n        buffer.append(\"         .invert                   = \").append(isInvert()).append('\\n'); \n        buffer.append(\"    .forecolorIndex       = \")\n            .append(\"0x\").append(HexDump.toHex(  getForecolorIndex ()))\n            .append(\" (\").append( getForecolorIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .backcolorIndex       = \")\n            .append(\"0x\").append(HexDump.toHex(  getBackcolorIndex ()))\n            .append(\" (\").append( getBackcolorIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/AREAFORMAT]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_foregroundColor);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_backgroundColor);\n        LittleEndian.putShort(data, 12 + offset + pos, field_3_pattern);\n        LittleEndian.putShort(data, 14 + offset + pos, field_4_formatFlags);\n        LittleEndian.putShort(data, 16 + offset + pos, field_5_forecolorIndex);\n        LittleEndian.putShort(data, 18 + offset + pos, field_6_backcolorIndex);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 4 + 4 + 2 + 2 + 2 + 2;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n        AreaFormatRecord rec = new AreaFormatRecord();\n    \n        rec.field_1_foregroundColor = field_1_foregroundColor;\n        rec.field_2_backgroundColor = field_2_backgroundColor;\n        rec.field_3_pattern = field_3_pattern;\n        rec.field_4_formatFlags = field_4_formatFlags;\n        rec.field_5_forecolorIndex = field_5_forecolorIndex;\n        rec.field_6_backcolorIndex = field_6_backcolorIndex;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the foreground color field for the AreaFormat record.\n     */\n    public int getForegroundColor()\n    {\n        return field_1_foregroundColor;\n    }\n\n    /**\n     * Set the foreground color field for the AreaFormat record.\n     */\n    public void setForegroundColor(int field_1_foregroundColor)\n    {\n        this.field_1_foregroundColor = field_1_foregroundColor;\n    }\n\n    /**\n     * Get the background color field for the AreaFormat record.\n     */\n    public int getBackgroundColor()\n    {\n        return field_2_backgroundColor;\n    }\n\n    /**\n     * Set the background color field for the AreaFormat record.\n     */\n    public void setBackgroundColor(int field_2_backgroundColor)\n    {\n        this.field_2_backgroundColor = field_2_backgroundColor;\n    }\n\n    /**\n     * Get the pattern field for the AreaFormat record.\n     */\n    public short getPattern()\n    {\n        return field_3_pattern;\n    }\n\n    /**\n     * Set the pattern field for the AreaFormat record.\n     */\n    public void setPattern(short field_3_pattern)\n    {\n        this.field_3_pattern = field_3_pattern;\n    }\n\n    /**\n     * Get the format flags field for the AreaFormat record.\n     */\n    public short getFormatFlags()\n    {\n        return field_4_formatFlags;\n    }\n\n    /**\n     * Set the format flags field for the AreaFormat record.\n     */\n    public void setFormatFlags(short field_4_formatFlags)\n    {\n        this.field_4_formatFlags = field_4_formatFlags;\n    }\n\n    /**\n     * Get the forecolor index field for the AreaFormat record.\n     */\n    public short getForecolorIndex()\n    {\n        return field_5_forecolorIndex;\n    }\n\n    /**\n     * Set the forecolor index field for the AreaFormat record.\n     */\n    public void setForecolorIndex(short field_5_forecolorIndex)\n    {\n        this.field_5_forecolorIndex = field_5_forecolorIndex;\n    }\n\n    /**\n     * Get the backcolor index field for the AreaFormat record.\n     */\n    public short getBackcolorIndex()\n    {\n        return field_6_backcolorIndex;\n    }\n\n    /**\n     * Set the backcolor index field for the AreaFormat record.\n     */\n    public void setBackcolorIndex(short field_6_backcolorIndex)\n    {\n        this.field_6_backcolorIndex = field_6_backcolorIndex;\n    }\n\n    /**\n     * Sets the automatic field value.\n     * automatic formatting\n     */\n    public void setAutomatic(boolean value)\n    {\n        field_4_formatFlags = automatic.setShortBoolean(field_4_formatFlags, value);\n    }\n\n    /**\n     * automatic formatting\n     * @return  the automatic field value.\n     */\n    public boolean isAutomatic()\n    {\n        return automatic.isSet(field_4_formatFlags);\n    }\n\n    /**\n     * Sets the invert field value.\n     * swap foreground and background colours when data is negative\n     */\n    public void setInvert(boolean value)\n    {\n        field_4_formatFlags = invert.setShortBoolean(field_4_formatFlags, value);\n    }\n\n    /**\n     * swap foreground and background colours when data is negative\n     * @return  the invert field value.\n     */\n    public boolean isInvert()\n    {\n        return invert.isSet(field_4_formatFlags);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a AreaFormat record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_foregroundColor        = in.readInt();\n        field_2_backgroundColor        = in.readInt();\n        field_3_pattern                = in.readShort();\n        field_4_formatFlags            = in.readShort();\n        field_5_forecolorIndex         = in.readShort();\n        field_6_backcolorIndex         = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AREAFORMAT]\\n\");\n        buffer.append(\"    .foregroundColor      = \")\n            .append(\"0x\").append(HexDump.toHex(  getForegroundColor ()))\n            .append(\" (\").append( getForegroundColor() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .backgroundColor      = \")\n            .append(\"0x\").append(HexDump.toHex(  getBackgroundColor ()))\n            .append(\" (\").append( getBackgroundColor() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .pattern              = \")\n            .append(\"0x\").append(HexDump.toHex(  getPattern ()))\n            .append(\" (\").append( getPattern() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .formatFlags          = \")\n            .append(\"0x\").append(HexDump.toHex(  getFormatFlags ()))\n            .append(\" (\").append( getFormatFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .automatic                = \").append(isAutomatic()).append('\\n'); \n        buffer.append(\"         .invert                   = \").append(isInvert()).append('\\n'); \n        buffer.append(\"    .forecolorIndex       = \")\n            .append(\"0x\").append(HexDump.toHex(  getForecolorIndex ()))\n            .append(\" (\").append( getForecolorIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .backcolorIndex       = \")\n            .append(\"0x\").append(HexDump.toHex(  getBackcolorIndex ()))\n            .append(\" (\").append( getBackcolorIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/AREAFORMAT]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [4, 20], [5, 21], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [6, 27], [7, 28], [8, 29], [8, 30], [8, 31], [8, 32], [8, 33], [8, 34], [9, 35], [9, 36], [9, 37], [10, 38], [10, 39], [10, 40], [11, 41], [12, 42], [12, 43], [12, 44], [12, 45], [12, 46], [12, 47], [13, 48], [14, 49], [14, 50], [14, 51], [14, 52], [14, 53], [14, 54], [15, 55], [16, 56], [16, 57], [16, 58], [16, 59], [16, 60], [16, 61], [17, 62], [18, 63], [18, 64], [18, 65], [18, 66], [18, 67], [18, 68], [19, 69], [2, 70], [21, 71], [23, 72], [24, 73], [25, 74], [26, 75], [27, 76], [28, 77], [30, 78], [31, 79], [32, 80], [33, 81], [34, 82], [36, 83], [37, 84], [39, 85], [40, 86], [41, 87], [43, 88], [44, 89], [45, 90], [46, 91], [47, 92], [48, 93], [50, 94], [51, 95], [52, 96], [53, 97], [54, 98], [55, 99], [57, 100], [58, 101], [59, 102], [60, 103], [61, 104], [62, 105], [64, 106], [65, 107], [66, 108], [67, 109], [68, 110], [75, 111], [81, 112], [91, 113], [97, 114], [103, 115], [109, 116], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 4], [21, 5], [22, 6], [23, 6], [24, 6], [25, 6], [26, 6], [27, 6], [28, 7], [29, 8], [30, 8], [31, 8], [32, 8], [33, 8], [34, 8], [35, 9], [36, 9], [37, 9], [38, 10], [39, 10], [40, 10], [41, 11], [42, 12], [43, 12], [44, 12], [45, 12], [46, 12], [47, 12], [48, 13], [49, 14], [50, 14], [51, 14], [52, 14], [53, 14], [54, 14], [55, 15], [56, 16], [57, 16], [58, 16], [59, 16], [60, 16], [61, 16], [62, 17], [63, 18], [64, 18], [65, 18], [66, 18], [67, 18], [68, 18], [69, 19], [70, 2], [71, 21], [72, 23], [73, 24], [74, 25], [75, 26], [76, 27], [77, 28], [78, 30], [79, 31], [80, 32], [81, 33], [82, 34], [83, 36], [84, 37], [85, 39], [86, 40], [87, 41], [88, 43], [89, 44], [90, 45], [91, 46], [92, 47], [93, 48], [94, 50], [95, 51], [96, 52], [97, 53], [98, 54], [99, 55], [100, 57], [101, 58], [102, 59], [103, 60], [104, 61], [105, 62], [106, 64], [107, 65], [108, 66], [109, 67], [110, 68], [111, 75], [112, 81], [113, 91], [114, 97], [115, 103], [116, 109], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_foregroundColor);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_backgroundColor);\n        LittleEndian.putShort(data, 12 + offset + pos, field_3_pattern);\n        LittleEndian.putShort(data, 14 + offset + pos, field_4_formatFlags);\n        LittleEndian.putShort(data, 16 + offset + pos, field_5_forecolorIndex);\n        LittleEndian.putShort(data, 18 + offset + pos, field_6_backcolorIndex);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [12, 20], [13, 21], [2, 22], [14, 23], [15, 24], [16, 25], [17, 26], [18, 27], [19, 28], [12, 29], [20, 30], [21, 31], [23, 32], [24, 33], [25, 34], [26, 35], [27, 36], [28, 37], [29, 38], [29, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 12], [21, 13], [22, 2], [23, 14], [24, 15], [25, 16], [26, 17], [27, 18], [28, 19], [29, 12], [30, 20], [31, 21], [32, 23], [33, 24], [34, 25], [35, 26], [36, 27], [37, 28], [38, 29], [39, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 4 + 4 + 2 + 2 + 2 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        AreaFormatRecord rec = new AreaFormatRecord();\n    \n        rec.field_1_foregroundColor = field_1_foregroundColor;\n        rec.field_2_backgroundColor = field_2_backgroundColor;\n        rec.field_3_pattern = field_3_pattern;\n        rec.field_4_formatFlags = field_4_formatFlags;\n        rec.field_5_forecolorIndex = field_5_forecolorIndex;\n        rec.field_6_backcolorIndex = field_6_backcolorIndex;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getForegroundColor", "code": "    public int getForegroundColor()\n    {\n        return field_1_foregroundColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setForegroundColor", "code": "    public void setForegroundColor(int field_1_foregroundColor)\n    {\n        this.field_1_foregroundColor = field_1_foregroundColor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBackgroundColor", "code": "    public int getBackgroundColor()\n    {\n        return field_2_backgroundColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBackgroundColor", "code": "    public void setBackgroundColor(int field_2_backgroundColor)\n    {\n        this.field_2_backgroundColor = field_2_backgroundColor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPattern", "code": "    public short getPattern()\n    {\n        return field_3_pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPattern", "code": "    public void setPattern(short field_3_pattern)\n    {\n        this.field_3_pattern = field_3_pattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFormatFlags", "code": "    public short getFormatFlags()\n    {\n        return field_4_formatFlags;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFormatFlags", "code": "    public void setFormatFlags(short field_4_formatFlags)\n    {\n        this.field_4_formatFlags = field_4_formatFlags;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getForecolorIndex", "code": "    public short getForecolorIndex()\n    {\n        return field_5_forecolorIndex;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setForecolorIndex", "code": "    public void setForecolorIndex(short field_5_forecolorIndex)\n    {\n        this.field_5_forecolorIndex = field_5_forecolorIndex;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBackcolorIndex", "code": "    public short getBackcolorIndex()\n    {\n        return field_6_backcolorIndex;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBackcolorIndex", "code": "    public void setBackcolorIndex(short field_6_backcolorIndex)\n    {\n        this.field_6_backcolorIndex = field_6_backcolorIndex;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutomatic", "code": "    public void setAutomatic(boolean value)\n    {\n        field_4_formatFlags = automatic.setShortBoolean(field_4_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutomatic", "code": "    public boolean isAutomatic()\n    {\n        return automatic.isSet(field_4_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setInvert", "code": "    public void setInvert(boolean value)\n    {\n        field_4_formatFlags = invert.setShortBoolean(field_4_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isInvert", "code": "    public boolean isInvert()\n    {\n        return invert.isSet(field_4_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AreaFormatRecord", "code": "    public AreaFormatRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AreaFormatRecord", "code": "    public AreaFormatRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.4-6541", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/NotCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.NotCall", "code": "final class NotCall extends FunctionCall {\n    public NotCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\targument().translate(classGen, methodGen);\n\til.append(ICONST_1);\n\til.append(IXOR);\n    }\n\n    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Expression exp = argument();\n\texp.translateDesynthesized(classGen, methodGen);\n\tfinal BranchHandle gotoh = il.append(new GOTO(null));\n\t_falseList = exp._trueList;\n\t_falseList.add(gotoh);", "functions": [{"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\targument().translate(classGen, methodGen);\n\til.append(ICONST_1);\n\til.append(IXOR);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "translateDesynthesized", "code": "    public void translateDesynthesized(ClassGenerator classGen,\n\t\t\t\t       MethodGenerator methodGen) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal Expression exp = argument();\n\texp.translateDesynthesized(classGen, methodGen);\n\tfinal BranchHandle gotoh = il.append(new GOTO(null));\n\t_falseList = exp._trueList;\n\t_falseList.add(gotoh);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "NotCall", "code": "    public NotCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.4-2248", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/LoggingErrorHandler.java", "language": "java", "name": "org.apache.camel.processor.LoggingErrorHandler", "code": "public class LoggingErrorHandler extends ErrorHandlerSupport {\n    private Processor output;\n    private Log log;\n    private LoggingLevel level;\n\n    public LoggingErrorHandler(Processor output) {\n        this(output, LogFactory.getLog(LoggingErrorHandler.class), LoggingLevel.INFO);\n    }\n\n    public LoggingErrorHandler(Processor output, Log log, LoggingLevel level) {\n        this.output = output;\n        this.log = log;\n        this.level = level;\n    }\n\n    @Override\n    public String toString() {\n        return \"LoggingErrorHandler[\" + output + \"]\";\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        try {\n            output.process(exchange);\n        } catch (Throwable e) {\n            if (!customProcessorForException(exchange, e)) {\n                logError(exchange, e);\n            }\n        }\n    }\n\n\n    /**\n     * Returns the output processor\n     */\n    public Processor getOutput() {\n        return output;\n    }\n\n    public LoggingLevel getLevel() {\n        return level;\n    }\n\n    public void setLevel(LoggingLevel level) {\n        this.level = level;\n    }\n\n    public Log getLog() {\n        return log;\n    }\n\n    public void setLog(Log log) {\n        this.log = log;\n    }\n\n    protected void logError(Exchange exchange, Throwable e) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(logMessage(exchange, e), e);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(logMessage(exchange, e), e);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(logMessage(exchange, e), e);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.debug(logMessage(exchange, e), e);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(logMessage(exchange, e), e);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(logMessage(exchange, e), e);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + logMessage(exchange, e),\n                      e);\n        }\n    }\n\n    protected Object logMessage(Exchange exchange, Throwable e) {\n        return e + \" while processing exchange: \" + exchange;\n    }\n\n    protected void doStart() throws Exception {\n        ServiceHelper.startServices(output);\n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(output);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"LoggingErrorHandler[\" + output + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        try {\n            output.process(exchange);\n        } catch (Throwable e) {\n            if (!customProcessorForException(exchange, e)) {\n                logError(exchange, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getOutput", "code": "    public Processor getOutput() {\n        return output;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLevel", "code": "    public LoggingLevel getLevel() {\n        return level;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLevel", "code": "    public void setLevel(LoggingLevel level) {\n        this.level = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLog", "code": "    public Log getLog() {\n        return log;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLog", "code": "    public void setLog(Log log) {\n        this.log = log;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "logError", "code": "    protected void logError(Exchange exchange, Throwable e) {\n        switch (level) {\n        case DEBUG:\n            if (log.isDebugEnabled()) {\n                log.debug(logMessage(exchange, e), e);\n            }\n            break;\n        case ERROR:\n            if (log.isErrorEnabled()) {\n                log.error(logMessage(exchange, e), e);\n            }\n            break;\n        case FATAL:\n            if (log.isFatalEnabled()) {\n                log.fatal(logMessage(exchange, e), e);\n            }\n            break;\n        case INFO:\n            if (log.isInfoEnabled()) {\n                log.debug(logMessage(exchange, e), e);\n            }\n            break;\n        case TRACE:\n            if (log.isTraceEnabled()) {\n                log.trace(logMessage(exchange, e), e);\n            }\n            break;\n        case WARN:\n            if (log.isWarnEnabled()) {\n                log.warn(logMessage(exchange, e), e);\n            }\n            break;\n        default:\n            log.error(\"Unknown level: \" + level + \" when trying to log exchange: \" + logMessage(exchange, e),\n                      e);", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [5, 17], [7, 18], [9, 19], [11, 20], [13, 21], [15, 22], [16, 23], [23, 24], [23, 25], [5, 26], [7, 27], [9, 28], [11, 29], [13, 30], [15, 31], [25, 32], [25, 33], [26, 34], [27, 35], [28, 36], [29, 37], [30, 38], [31, 39], [33, 40], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 5], [18, 7], [19, 9], [20, 11], [21, 13], [22, 15], [23, 16], [24, 23], [25, 23], [26, 5], [27, 7], [28, 9], [29, 11], [30, 13], [31, 15], [32, 25], [33, 25], [34, 26], [35, 27], [36, 28], [37, 29], [38, 30], [39, 31], [40, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "logMessage", "code": "    protected Object logMessage(Exchange exchange, Throwable e) {\n        return e + \" while processing exchange: \" + exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ServiceHelper.startServices(output);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(output);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "LoggingErrorHandler", "code": "    public LoggingErrorHandler(Processor output) {\n        this(output, LogFactory.getLog(LoggingErrorHandler.class), LoggingLevel.INFO);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LoggingErrorHandler", "code": "    public LoggingErrorHandler(Processor output, Log log, LoggingLevel level) {\n        this.output = output;\n        this.log = log;\n        this.level = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "camel-1.6-2644", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/language/NamespaceAwareExpression.java", "language": "java", "name": "org.apache.camel.model.language.NamespaceAwareExpression", "code": "@XmlAccessorType(XmlAccessType.FIELD)\npublic abstract class NamespaceAwareExpression extends ExpressionType implements NamespaceAware {\n    @XmlTransient\n    private Map<String, String> namespaces;\n\n    public NamespaceAwareExpression() {\n    }\n\n    public NamespaceAwareExpression(String expression) {\n        super(expression);\n    }\n\n\n    public Map<String, String> getNamespaces() {\n        return namespaces;\n    }\n\n    /**\n     * Injects the XML Namespaces of prefix -> uri mappings\n     *\n     * @param namespaces the XML namespaces with the key of prefixes and the value the URIs\n     */\n    public void setNamespaces(Map<String, String> namespaces) {\n        this.namespaces = namespaces;\n    }\n\n    @Override\n    protected void configureExpression(RouteContext routeContext, Expression expression) {\n        configureNamespaceAware(expression);\n    }\n\n    @Override\n    protected void configurePredicate(RouteContext routeContext, Predicate predicate) {\n        configureNamespaceAware(predicate);\n    }\n\n    protected void configureNamespaceAware(Object builder) {\n        if (namespaces != null && builder instanceof NamespaceAware) {\n            NamespaceAware namespaceAware = (NamespaceAware) builder;\n            namespaceAware.setNamespaces(namespaces);", "functions": [{"function_name": "getNamespaces", "code": "    public Map<String, String> getNamespaces() {\n        return namespaces;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamespaces", "code": "    public void setNamespaces(Map<String, String> namespaces) {\n        this.namespaces = namespaces;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "configureExpression", "code": "    @Override\n    protected void configureExpression(RouteContext routeContext, Expression expression) {\n        configureNamespaceAware(expression);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "configurePredicate", "code": "    @Override\n    protected void configurePredicate(RouteContext routeContext, Predicate predicate) {\n        configureNamespaceAware(predicate);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "configureNamespaceAware", "code": "    protected void configureNamespaceAware(Object builder) {\n        if (namespaces != null && builder instanceof NamespaceAware) {\n            NamespaceAware namespaceAware = (NamespaceAware) builder;\n            namespaceAware.setNamespaces(namespaces);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "NamespaceAwareExpression", "code": "    public NamespaceAwareExpression() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NamespaceAwareExpression", "code": "    public NamespaceAwareExpression(String expression) {\n        super(expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.6-7612", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/util/TypeCheckError.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.TypeCheckError", "code": "public class TypeCheckError extends Exception {\n    ErrorMsg _error = null;\n    SyntaxTreeNode _node = null;\n\t\n    public TypeCheckError(SyntaxTreeNode node) {\n\tsuper();\n\t_node = node;\n    }\n\n    public TypeCheckError(ErrorMsg error) {\n\tsuper();\n\t_error = error;\n    }\n\t\n    public TypeCheckError(String code, Object param) {\n\tsuper();\n\t_error = new ErrorMsg(code, param);\n    }\n\n    public TypeCheckError(String code, Object param1, Object param2) {\n\tsuper();\n\t_error = new ErrorMsg(code, param1, param2);\n    }\n\n    public ErrorMsg getErrorMsg() {\n        return _error;\n    }\n\n    public String getMessage() {\n        return toString();\n    }\n\n    public String toString() {\n\tString result;\n\n\tif (_error == null) {\n            if (_node != null) {\n                _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_ERR,\n                                      _node.toString());\n\t    } else {\n\t        _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_UNK_LOC_ERR);\n\t    }\n        }\n\n\treturn _error.toString();", "functions": [{"function_name": "getErrorMsg", "code": "    public ErrorMsg getErrorMsg() {\n        return _error;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMessage", "code": "    public String getMessage() {\n        return toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString() {\n\tString result;\n\n\tif (_error == null) {\n            if (_node != null) {\n                _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_ERR,\n                                      _node.toString());\n\t    } else {\n\t        _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_UNK_LOC_ERR);\n\t    }\n        }\n\n\treturn _error.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [8, 9], [6, 10], [6, 11], [10, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 8], [10, 6], [11, 6], [12, 10], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(SyntaxTreeNode node) {\n\tsuper();\n\t_node = node;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(ErrorMsg error) {\n\tsuper();\n\t_error = error;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(String code, Object param) {\n\tsuper();\n\t_error = new ErrorMsg(code, param);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "TypeCheckError", "code": "    public TypeCheckError(String code, Object param1, Object param2) {\n\tsuper();\n\t_error = new ErrorMsg(code, param1, param2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "camel-1.6-2941", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/bam/processor/BamProcessorSupport.java", "language": "java", "name": "org.apache.camel.bam.processor.BamProcessorSupport", "code": "public abstract class BamProcessorSupport<T> implements Processor {\n    private static final transient Log LOG = LogFactory.getLog(BamProcessorSupport.class);\n    private Class<T> entityType;\n    private Expression<Exchange> correlationKeyExpression;\n    private TransactionTemplate transactionTemplate;\n    private int retryCount = 20;\n    private long retrySleep = 1000L;\n\n    protected BamProcessorSupport(TransactionTemplate transactionTemplate,\n                                  Expression<Exchange> correlationKeyExpression) {\n        this.transactionTemplate = transactionTemplate;\n        this.correlationKeyExpression = correlationKeyExpression;\n\n        Type type = getClass().getGenericSuperclass();\n        if (type instanceof ParameterizedType) {\n            ParameterizedType parameterizedType = (ParameterizedType)type;\n            Type[] arguments = parameterizedType.getActualTypeArguments();\n            if (arguments.length > 0) {\n                Type argumentType = arguments[0];\n                if (argumentType instanceof Class) {\n                    this.entityType = (Class<T>)argumentType;\n                }\n            }\n        }\n        if (entityType == null) {\n            throw new IllegalArgumentException(\"Could not infer the entity type!\");\n        }\n    }\n\n    protected BamProcessorSupport(TransactionTemplate transactionTemplate,\n                                  Expression<Exchange> correlationKeyExpression, Class<T> entitytype) {\n        this.transactionTemplate = transactionTemplate;\n        this.entityType = entitytype;\n        this.correlationKeyExpression = correlationKeyExpression;\n    }\n\n    public void process(final Exchange exchange) {\n        for (int i = 1; i <= retryCount; i++) {\n            if (i > 1) {\n                LOG.info(\"Retrying attempt: \" + i);\n                try {\n                    Thread.sleep(retryCount);\n                } catch (InterruptedException e) {\n                    LOG.debug(\"Caught: \" + e, e);\n                }\n            }\n            try {\n                transactionTemplate.execute(new TransactionCallback() {\n                    public Object doInTransaction(TransactionStatus status) {\n                        try {\n                            Object key = getCorrelationKey(exchange);\n\n                            T entity = loadEntity(exchange, key);\n\n                            if (LOG.isDebugEnabled()) {\n                                LOG.debug(\"Correlation key: \" + key + \" with entity: \" + entity);\n                            }\n                            processEntity(exchange, entity);\n\n                            return entity;\n                        } catch (Exception e) {\n                            return onError(status, e);\n                        }\n                    }\n                });\n                if (i > 1) {\n                    LOG.info(\"Attempt \" + i + \" worked!\");\n                }\n                return;\n            } catch (Exception e) {\n                LOG.warn(\"Failed to complete transaction: \" + e, e);\n            }\n        }\n    }\n\n    public Expression<Exchange> getCorrelationKeyExpression() {\n        return correlationKeyExpression;\n    }\n\n    public Class<T> getEntityType() {\n        return entityType;\n    }\n\n    protected abstract void processEntity(Exchange exchange, T entity) throws Exception;\n\n    protected abstract T loadEntity(Exchange exchange, Object key) throws Exception;\n\n    protected abstract Class getKeyType();\n\n    protected Object getCorrelationKey(Exchange exchange) throws NoCorrelationKeyException {\n        Object value = correlationKeyExpression.evaluate(exchange);\n        Class keyType = getKeyType();\n        if (keyType != null) {\n            value = ExchangeHelper.convertToType(exchange, keyType, value);\n        }\n        if (value == null) {\n            throw new NoCorrelationKeyException(this, exchange);\n        }\n        return value;\n    }\n\n    protected Object onError(TransactionStatus status, Exception e) {\n        status.setRollbackOnly();\n        LOG.error(\"Caught: \" + e, e);\n        throw wrapRuntimeCamelException(e);", "functions": [{"function_name": "process", "code": "    public void process(final Exchange exchange) {\n        for (int i = 1; i <= retryCount; i++) {\n            if (i > 1) {\n                LOG.info(\"Retrying attempt: \" + i);\n                try {\n                    Thread.sleep(retryCount);\n                } catch (InterruptedException e) {\n                    LOG.debug(\"Caught: \" + e, e);\n                }\n            }\n            try {\n                transactionTemplate.execute(new TransactionCallback() {\n                    public Object doInTransaction(TransactionStatus status) {\n                        try {\n                            Object key = getCorrelationKey(exchange);\n\n                            T entity = loadEntity(exchange, key);\n\n                            if (LOG.isDebugEnabled()) {\n                                LOG.debug(\"Correlation key: \" + key + \" with entity: \" + entity);\n                            }\n                            processEntity(exchange, entity);\n\n                            return entity;\n                        } catch (Exception e) {\n                            return onError(status, e);\n                        }\n                    }\n                });\n                if (i > 1) {\n                    LOG.info(\"Attempt \" + i + \" worked!\");\n                }\n                return;\n            } catch (Exception e) {\n                LOG.warn(\"Failed to complete transaction: \" + e, e);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "TRY", "IF", "CATCH", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "BINARY_OP", "CALL", "FUNC_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [4, 7], [4, 8], [5, 9], [1, 10], [8, 11], [4, 12], [5, 13], [9, 14], [6, 15], [11, 16], [12, 17], [13, 18], [5, 19], [15, 20], [8, 21], [17, 22], [13, 23], [19, 24], [20, 25], [21, 26], [22, 27], [22, 28], [18, 29], [24, 30], [26, 31], [26, 32], [27, 33], [27, 34], [27, 35], [27, 36], [27, 37], [29, 38], [32, 39], [33, 40], [27, 41], [35, 42], [38, 43], [40, 44], [36, 45], [37, 46], [35, 47], [47, 48], [48, 49], [49, 50], [49, 51], [51, 52], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 4], [8, 4], [9, 5], [10, 1], [11, 8], [12, 4], [13, 5], [14, 9], [15, 6], [16, 11], [17, 12], [18, 13], [19, 5], [20, 15], [21, 8], [22, 17], [23, 13], [24, 19], [25, 20], [26, 21], [27, 22], [28, 22], [29, 18], [30, 24], [31, 26], [32, 26], [33, 27], [34, 27], [35, 27], [36, 27], [37, 27], [38, 29], [39, 32], [40, 33], [41, 27], [42, 35], [43, 38], [44, 40], [45, 36], [46, 37], [47, 35], [48, 47], [49, 48], [50, 49], [51, 49], [52, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "getCorrelationKeyExpression", "code": "    public Expression<Exchange> getCorrelationKeyExpression() {\n        return correlationKeyExpression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEntityType", "code": "    public Class<T> getEntityType() {\n        return entityType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "processEntity", "code": "    protected abstract void processEntity(Exchange exchange, T entity) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadEntity", "code": "    protected abstract T loadEntity(Exchange exchange, Object key) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getKeyType", "code": "    protected abstract Class getKeyType();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getCorrelationKey", "code": "    protected Object getCorrelationKey(Exchange exchange) throws NoCorrelationKeyException {\n        Object value = correlationKeyExpression.evaluate(exchange);\n        Class keyType = getKeyType();\n        if (keyType != null) {\n            value = ExchangeHelper.convertToType(exchange, keyType, value);\n        }\n        if (value == null) {\n            throw new NoCorrelationKeyException(this, exchange);\n        }\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [7, 10], [8, 11], [4, 12], [5, 13], [9, 14], [3, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 7], [11, 8], [12, 4], [13, 5], [14, 9], [15, 3], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "onError", "code": "    protected Object onError(TransactionStatus status, Exception e) {\n        status.setRollbackOnly();\n        LOG.error(\"Caught: \" + e, e);\n        throw wrapRuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "BamProcessorSupport", "code": "    protected BamProcessorSupport(TransactionTemplate transactionTemplate,\n                                  Expression<Exchange> correlationKeyExpression) {\n        this.transactionTemplate = transactionTemplate;\n        this.correlationKeyExpression = correlationKeyExpression;\n\n        Type type = getClass().getGenericSuperclass();\n        if (type instanceof ParameterizedType) {\n            ParameterizedType parameterizedType = (ParameterizedType)type;\n            Type[] arguments = parameterizedType.getActualTypeArguments();\n            if (arguments.length > 0) {\n                Type argumentType = arguments[0];\n                if (argumentType instanceof Class) {\n                    this.entityType = (Class<T>)argumentType;\n                }\n            }\n        }\n        if (entityType == null) {\n            throw new IllegalArgumentException(\"Could not infer the entity type!\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [1, 10], [6, 11], [2, 12], [2, 13], [2, 14], [3, 15], [10, 16], [12, 17], [15, 18], [16, 19], [12, 20], [12, 21], [17, 22], [13, 23], [20, 24], [20, 25], [21, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 1], [11, 6], [12, 2], [13, 2], [14, 2], [15, 3], [16, 10], [17, 12], [18, 15], [19, 16], [20, 12], [21, 12], [22, 17], [23, 13], [24, 20], [25, 20], [26, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "BamProcessorSupport", "code": "    protected BamProcessorSupport(TransactionTemplate transactionTemplate,\n                                  Expression<Exchange> correlationKeyExpression, Class<T> entitytype) {\n        this.transactionTemplate = transactionTemplate;\n        this.entityType = entitytype;\n        this.correlationKeyExpression = correlationKeyExpression;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-2.5-5844", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/FrameRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.FrameRecord", "code": "public class FrameRecord\n    extends Record\n{\n    public final static short      sid                             = 0x1032;\n    private  short      field_1_borderType;\n    public final static short       BORDER_TYPE_REGULAR            = 0;\n    public final static short       BORDER_TYPE_SHADOW             = 1;\n    private  short      field_2_options;\n    private  BitField   autoSize                                    = new BitField(0x1);\n    private  BitField   autoPosition                                = new BitField(0x2);\n\n\n    public FrameRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Frame record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1032 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public FrameRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a Frame record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x1032 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public FrameRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Frame record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_borderType             = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_options                = LittleEndian.getShort(data, pos + 0x2 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[FRAME]\\n\");\n        buffer.append(\"    .borderType           = \")\n            .append(\"0x\").append(HexDump.toHex(  getBorderType ()))\n            .append(\" (\").append( getBorderType() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .options              = \")\n            .append(\"0x\").append(HexDump.toHex(  getOptions ()))\n            .append(\" (\").append( getOptions() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .autoSize                 = \").append(isAutoSize()).append('\\n'); \n        buffer.append(\"         .autoPosition             = \").append(isAutoPosition()).append('\\n'); \n\n        buffer.append(\"[/FRAME]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_borderType);\n        LittleEndian.putShort(data, 6 + offset + pos, field_2_options);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2 + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        FrameRecord rec = new FrameRecord();\n    \n        rec.field_1_borderType = field_1_borderType;\n        rec.field_2_options = field_2_options;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the border type field for the Frame record.\n     *\n     * @return  One of \n     *        BORDER_TYPE_REGULAR\n     *        BORDER_TYPE_SHADOW\n     */\n    public short getBorderType()\n    {\n        return field_1_borderType;\n    }\n\n    /**\n     * Set the border type field for the Frame record.\n     *\n     * @param field_1_borderType\n     *        One of \n     *        BORDER_TYPE_REGULAR\n     *        BORDER_TYPE_SHADOW\n     */\n    public void setBorderType(short field_1_borderType)\n    {\n        this.field_1_borderType = field_1_borderType;\n    }\n\n    /**\n     * Get the options field for the Frame record.\n     */\n    public short getOptions()\n    {\n        return field_2_options;\n    }\n\n    /**\n     * Set the options field for the Frame record.\n     */\n    public void setOptions(short field_2_options)\n    {\n        this.field_2_options = field_2_options;\n    }\n\n    /**\n     * Sets the auto size field value.\n     * excel calculates the size automatically if true\n     */\n    public void setAutoSize(boolean value)\n    {\n        field_2_options = autoSize.setShortBoolean(field_2_options, value);\n    }\n\n    /**\n     * excel calculates the size automatically if true\n     * @return  the auto size field value.\n     */\n    public boolean isAutoSize()\n    {\n        return autoSize.isSet(field_2_options);\n    }\n\n    /**\n     * Sets the auto position field value.\n     * excel calculates the position automatically\n     */\n    public void setAutoPosition(boolean value)\n    {\n        field_2_options = autoPosition.setShortBoolean(field_2_options, value);\n    }\n\n    /**\n     * excel calculates the position automatically\n     * @return  the auto position field value.\n     */\n    public boolean isAutoPosition()\n    {\n        return autoPosition.isSet(field_2_options);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Frame record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_borderType             = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_options                = LittleEndian.getShort(data, pos + 0x2 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 9], [7, 10], [8, 11], [10, 12], [11, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 1], [10, 7], [11, 8], [12, 10], [13, 11], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[FRAME]\\n\");\n        buffer.append(\"    .borderType           = \")\n            .append(\"0x\").append(HexDump.toHex(  getBorderType ()))\n            .append(\" (\").append( getBorderType() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .options              = \")\n            .append(\"0x\").append(HexDump.toHex(  getOptions ()))\n            .append(\" (\").append( getOptions() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .autoSize                 = \").append(isAutoSize()).append('\\n'); \n        buffer.append(\"         .autoPosition             = \").append(isAutoPosition()).append('\\n'); \n\n        buffer.append(\"[/FRAME]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [4, 12], [5, 13], [5, 14], [5, 15], [6, 16], [6, 17], [6, 18], [7, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [9, 26], [10, 27], [10, 28], [10, 29], [10, 30], [10, 31], [10, 32], [11, 33], [2, 34], [14, 35], [15, 36], [17, 37], [18, 38], [19, 39], [21, 40], [22, 41], [23, 42], [24, 43], [25, 44], [26, 45], [28, 46], [29, 47], [30, 48], [31, 49], [32, 50], [43, 51], [49, 52], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 4], [13, 5], [14, 5], [15, 5], [16, 6], [17, 6], [18, 6], [19, 7], [20, 8], [21, 8], [22, 8], [23, 8], [24, 8], [25, 8], [26, 9], [27, 10], [28, 10], [29, 10], [30, 10], [31, 10], [32, 10], [33, 11], [34, 2], [35, 14], [36, 15], [37, 17], [38, 18], [39, 19], [40, 21], [41, 22], [42, 23], [43, 24], [44, 25], [45, 26], [46, 28], [47, 29], [48, 30], [49, 31], [50, 32], [51, 43], [52, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_borderType);\n        LittleEndian.putShort(data, 6 + offset + pos, field_2_options);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [6, 10], [7, 11], [8, 12], [9, 13], [2, 14], [10, 15], [11, 16], [8, 17], [12, 18], [13, 19], [15, 20], [16, 21], [17, 22], [17, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 6], [11, 7], [12, 8], [13, 9], [14, 2], [15, 10], [16, 11], [17, 8], [18, 12], [19, 13], [20, 15], [21, 16], [22, 17], [23, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        FrameRecord rec = new FrameRecord();\n    \n        rec.field_1_borderType = field_1_borderType;\n        rec.field_2_options = field_2_options;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getBorderType", "code": "    public short getBorderType()\n    {\n        return field_1_borderType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBorderType", "code": "    public void setBorderType(short field_1_borderType)\n    {\n        this.field_1_borderType = field_1_borderType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptions", "code": "    public short getOptions()\n    {\n        return field_2_options;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOptions", "code": "    public void setOptions(short field_2_options)\n    {\n        this.field_2_options = field_2_options;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoSize", "code": "    public void setAutoSize(boolean value)\n    {\n        field_2_options = autoSize.setShortBoolean(field_2_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoSize", "code": "    public boolean isAutoSize()\n    {\n        return autoSize.isSet(field_2_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutoPosition", "code": "    public void setAutoPosition(boolean value)\n    {\n        field_2_options = autoPosition.setShortBoolean(field_2_options, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutoPosition", "code": "    public boolean isAutoPosition()\n    {\n        return autoPosition.isSet(field_2_options);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FrameRecord", "code": "    public FrameRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FrameRecord", "code": "    public FrameRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FrameRecord", "code": "    public FrameRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-3.2-3627", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/ActionListHandler.java", "language": "java", "name": "org.gjt.sp.jedit.ActionListHandler", "code": "class ActionListHandler extends HandlerBase\n{\n\tActionListHandler(String path, boolean plugin)\n\t{\n\t\tthis.path = path;\n\t\tthis.plugin = plugin;\n\t\tstateStack = new Stack();\n\t}\n\n\tpublic Object resolveEntity(String publicId, String systemId)\n\t{\n\t\tif(\"actions.dtd\".equals(systemId))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn new BufferedReader(new InputStreamReader(\n\t\t\t\t\tgetClass().getResourceAsStream(\"actions.dtd\")));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,\"Error while opening\"\n\t\t\t\t\t+ \" actions.dtd:\");\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tpublic void attribute(String aname, String value, boolean isSpecified)\n\t{\n\t\taname = (aname == null) ? null : aname.intern();\n\t\tvalue = (value == null) ? null : value.intern();\n\n\t\tif(aname == \"NAME\")\n\t\t\tactionName = value;\n\t\telse if(aname == \"NO_REPEAT\")\n\t\t\tnoRepeat = (value == \"TRUE\");\n\t\telse if(aname == \"NO_RECORD\")\n\t\t\tnoRecord = (value == \"TRUE\");\n\t}\n\n\tpublic void doctypeDecl(String name, String publicId,\n\t\tString systemId) throws Exception\n\t{\n\t\tif(\"ACTIONS\".equals(name))\n\t\t\treturn;\n\n\t\tLog.log(Log.ERROR,this,path + \": DOCTYPE must be ACTIONS\");\n\t}\n\n\tpublic void charData(char[] c, int off, int len)\n\t{\n\t\tString tag = peekElement();\n\t\tString text = new String(c, off, len);\n\n\t\tif (tag == \"CODE\")\n\t\t{\n\t\t\tcode = text;\n\t\t}\n\t\telse if (tag == \"IS_SELECTED\")\n\t\t{\n\t\t\tisSelected = text;\n\t\t}\n\t}\n\n\tpublic void startElement(String tag)\n\t{\n\t\ttag = pushElement(tag);\n\n\t\tif (tag == \"ACTION\")\n\t\t{\n\t\t\tcode = null;\n\t\t\tisSelected = null;\n\t\t}\n\t}\n\n\tpublic void endElement(String name)\n\t{\n\t\tif(name == null)\n\t\t\treturn;\n\n\t\tString tag = peekElement();\n\n\t\tif(name.equals(tag))\n\t\t{\n\t\t\tif(tag == \"ACTION\")\n\t\t\t{\n\t\t\t\tjEdit.addAction(new BeanShellAction(actionName,\n\t\t\t\t\tplugin,code,isSelected,noRepeat,noRecord));\n\t\t\t}\n\n\t\t\tpopElement();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// can't happen\n\t\t\tthrow new InternalError();\n\t\t}\n\t}\n\n\tpublic void startDocument()\n\t{\n\t\ttry\n\t\t{\n\t\t\tpushElement(null);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\t// end HandlerBase implementation\n\n\t// private members\n\tprivate String path;\n\tprivate boolean plugin;\n\n\tprivate String actionName;\n\tprivate String code;\n\tprivate String isSelected;\n\n\tprivate boolean noRepeat;\n\tprivate boolean noRecord;\n\n\tprivate Stack stateStack;\n\n\tprivate String pushElement(String name)\n\t{\n\t\tname = (name == null) ? null : name.intern();\n\n\t\tstateStack.push(name);\n\n\t\treturn name;\n\t}\n\n\tprivate String peekElement()\n\t{\n\t\treturn (String) stateStack.peek();\n\t}\n\n\tprivate String popElement()\n\t{\n\t\treturn (String) stateStack.pop();", "functions": [{"function_name": "resolveEntity", "code": "\tpublic Object resolveEntity(String publicId, String systemId)\n\t{\n\t\tif(\"actions.dtd\".equals(systemId))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn new BufferedReader(new InputStreamReader(\n\t\t\t\t\tgetClass().getResourceAsStream(\"actions.dtd\")));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,\"Error while opening\"\n\t\t\t\t\t+ \" actions.dtd:\");\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t}\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "CALL", "CATCH", "RETURN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [7, 10], [10, 11], [9, 12], [9, 13], [11, 14], [13, 15], [14, 16], [15, 17], [15, 18], [16, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 7], [11, 10], [12, 9], [13, 9], [14, 11], [15, 13], [16, 14], [17, 15], [18, 15], [19, 16], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "attribute", "code": "\tpublic void attribute(String aname, String value, boolean isSpecified)\n\t{\n\t\taname = (aname == null) ? null : aname.intern();\n\t\tvalue = (value == null) ? null : value.intern();\n\n\t\tif(aname == \"NAME\")\n\t\t\tactionName = value;\n\t\telse if(aname == \"NO_REPEAT\")\n\t\t\tnoRepeat = (value == \"TRUE\");\n\t\telse if(aname == \"NO_RECORD\")\n\t\t\tnoRecord = (value == \"TRUE\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [5, 10], [1, 11], [6, 12], [7, 13], [8, 14], [9, 15], [5, 16], [10, 17], [13, 18], [13, 19], [13, 20], [14, 21], [14, 22], [14, 23], [9, 24], [15, 25], [16, 26], [20, 27], [23, 28], [24, 29], [26, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 5], [11, 1], [12, 6], [13, 7], [14, 8], [15, 9], [16, 5], [17, 10], [18, 13], [19, 13], [20, 13], [21, 14], [22, 14], [23, 14], [24, 9], [25, 15], [26, 16], [27, 20], [28, 23], [29, 24], [30, 26], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "doctypeDecl", "code": "\tpublic void doctypeDecl(String name, String publicId,\n\t\tString systemId) throws Exception\n\t{\n\t\tif(\"ACTIONS\".equals(name))\n\t\t\treturn;\n\n\t\tLog.log(Log.ERROR,this,path + \": DOCTYPE must be ACTIONS\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [5, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 5], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "charData", "code": "\tpublic void charData(char[] c, int off, int len)\n\t{\n\t\tString tag = peekElement();\n\t\tString text = new String(c, off, len);\n\n\t\tif (tag == \"CODE\")\n\t\t{\n\t\t\tcode = text;\n\t\t}\n\t\telse if (tag == \"IS_SELECTED\")\n\t\t{\n\t\t\tisSelected = text;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [2, 11], [3, 12], [9, 13], [1, 14], [7, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 2], [12, 3], [13, 9], [14, 1], [15, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "startElement", "code": "\tpublic void startElement(String tag)\n\t{\n\t\ttag = pushElement(tag);\n\n\t\tif (tag == \"ACTION\")\n\t\t{\n\t\t\tcode = null;\n\t\t\tisSelected = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 7], [1, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [7, 1], [8, 1], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "endElement", "code": "\tpublic void endElement(String name)\n\t{\n\t\tif(name == null)\n\t\t\treturn;\n\n\t\tString tag = peekElement();\n\n\t\tif(name.equals(tag))\n\t\t{\n\t\t\tif(tag == \"ACTION\")\n\t\t\t{\n\t\t\t\tjEdit.addAction(new BeanShellAction(actionName,\n\t\t\t\t\tplugin,code,isSelected,noRepeat,noRecord));\n\t\t\t}\n\n\t\t\tpopElement();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// can't happen\n\t\t\tthrow new InternalError();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "THROW_RAISE", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [3, 7], [1, 8], [1, 9], [2, 10], [7, 11], [8, 12], [1, 13], [9, 14], [14, 15], [9, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 3], [8, 1], [9, 1], [10, 2], [11, 7], [12, 8], [13, 1], [14, 9], [15, 14], [16, 9], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "startDocument", "code": "\tpublic void startDocument()\n\t{\n\t\ttry\n\t\t{\n\t\t\tpushElement(null);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "pushElement", "code": "\tprivate String pushElement(String name)\n\t{\n\t\tname = (name == null) ? null : name.intern();\n\n\t\tstateStack.push(name);\n\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "ASSIGN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [5, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 5], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "peekElement", "code": "\tprivate String peekElement()\n\t{\n\t\treturn (String) stateStack.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popElement", "code": "\tprivate String popElement()\n\t{\n\t\treturn (String) stateStack.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ActionListHandler", "code": "\tActionListHandler(String path, boolean plugin)\n\t{\n\t\tthis.path = path;\n\t\tthis.plugin = plugin;\n\t\tstateStack = new Stack();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "camel-1.4-2040", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/spring/factory/BeanEndpointFactory.java", "language": "java", "name": "org.apache.camel.spring.factory.BeanEndpointFactory", "code": "public class BeanEndpointFactory implements FactoryBean {\n    private boolean singleton = true;\n\n    public Object getObject() throws Exception {\n        return new BeanEndpoint();\n    }\n\n    public Class getObjectType() {\n        return BeanEndpoint.class;\n    }\n\n    public boolean isSingleton() {\n        return singleton;\n    }\n\n    protected void setSingleton(boolean singleton) {\n        this.singleton = singleton;", "functions": [{"function_name": "getObject", "code": "    public Object getObject() throws Exception {\n        return new BeanEndpoint();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getObjectType", "code": "    public Class getObjectType() {\n        return BeanEndpoint.class;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return singleton;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSingleton", "code": "    protected void setSingleton(boolean singleton) {\n        this.singleton = singleton;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ivy-2.0-3504", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/module/id/ModuleRules.java", "language": "java", "name": "org.apache.ivy.core.module.id.ModuleRules", "code": "public class ModuleRules {\n    private Map/*<MapMatcher,Object>*/ rules = new LinkedHashMap();\n    \n    /**\n     * Constructs an empty ModuleRules.\n     */\n    public ModuleRules() {\n    }\n\n    private ModuleRules(Map/*<MapMatcher,Object>*/ rules) {\n        this.rules = new LinkedHashMap(rules);\n    }\n    \n    /**\n     * Defines a new rule for the given condition.\n     * \n     * @param condition\n     *            the condition for which the rule should be applied. Must not be <code>null</code>.\n     * @param rule\n     *            the rule to apply. Must not be <code>null</code>.\n     */\n    public void defineRule(MapMatcher condition, Object rule) {\n        Checks.checkNotNull(condition, \"condition\");\n        Checks.checkNotNull(rule, \"rule\");\n        \n        rules.put(condition, rule);\n    }\n\n    /**\n     * Returns the rule object matching the given {@link ModuleId}, or <code>null</code>\n     * if no rule applies.\n     * \n     * @param mid\n     *            the {@link ModuleId} to search the rule for. \n     *            Must not be <code>null</code>.\n     * @return the rule object matching the given {@link ModuleId}, or <code>null</code>\n     *         if no rule applies.\n     * @see #getRule(ModuleId, Filter)\n     */\n    public Object getRule(ModuleId mid) {\n        return getRule(mid, NoFilter.INSTANCE);\n    }\n\n    /**\n     * Returns the rules objects matching the given {@link ModuleId}, or an empty array\n     * if no rule applies.\n     * \n     * @param mid\n     *            the {@link ModuleId} to search the rule for. \n     *            Must not be <code>null</code>.\n     * @return an array of rule objects matching the given {@link ModuleId}.\n     */\n    public Object[] getRules(ModuleId mid) {\n        return getRules(mid.getAttributes(), NoFilter.INSTANCE);\n    }\n\n    /**\n     * Returns the rule object matching the given {@link ModuleRevisionId}, or <code>null</code>\n     * if no rule applies.\n     * \n     * @param mrid\n     *            the {@link ModuleRevisionId} to search the rule for. \n     *            Must not be <code>null</code>.\n     * @return the rule object matching the given {@link ModuleRevisionId}, or <code>null</code>\n     *         if no rule applies.\n     * @see #getRule(ModuleRevisionId, Filter)\n     */\n    public Object getRule(ModuleRevisionId mrid) {\n        return getRule(mrid, NoFilter.INSTANCE);\n    }\n    \n    /**\n     * Returns the rule object matching the given {@link ModuleId} and accepted by the given\n     * {@link Filter}, or <code>null</code> if no rule applies.\n     * \n     * @param mrid\n     *            the {@link ModuleRevisionId} to search the rule for. \n     *            Must not be <code>null</code>.\n     * @param filter\n     *            the filter to use to filter the rule to return. The {@link Filter#accept(Object)}\n     *            method will be called only with rule objects matching the given\n     *            {@link ModuleId}, and the first rule object accepted by the filter will\n     *            be returned. Must not be <code>null</code>.\n     * @return the rule object matching the given {@link ModuleId}, or <code>null</code>\n     *         if no rule applies.\n     * @see #getRule(ModuleRevisionId, Filter)\n     */\n    public Object getRule(ModuleId mid, Filter filter) {\n        Checks.checkNotNull(mid, \"mid\");\n        return getRule(mid.getAttributes(), filter);\n    }\n    \n    /**\n     * Returns the rule object matching the given {@link ModuleRevisionId} and accepted by the given\n     * {@link Filter}, or <code>null</code> if no rule applies.\n     * \n     * @param mrid\n     *            the {@link ModuleRevisionId} to search the rule for. \n     *            Must not be <code>null</code>.\n     * @param filter\n     *            the filter to use to filter the rule to return. The {@link Filter#accept(Object)}\n     *            method will be called only with rule objects matching the given\n     *            {@link ModuleRevisionId}, and the first rule object accepted by the filter will\n     *            be returned. Must not be <code>null</code>.\n     * @return the rule object matching the given {@link ModuleRevisionId}, or <code>null</code>\n     *         if no rule applies.\n     * @see #getRule(ModuleRevisionId)\n     */\n    public Object getRule(ModuleRevisionId mrid, Filter filter) {\n        Checks.checkNotNull(mrid, \"mrid\");\n        Checks.checkNotNull(filter, \"filter\");        \n        Map moduleAttributes = mrid.getAttributes();       \n        return getRule(moduleAttributes, filter);\n    }\n\n    private Object getRule(Map moduleAttributes, Filter filter) {\n        for (Iterator iter = rules.entrySet().iterator(); iter.hasNext();) {\n            Map.Entry ruleEntry = (Entry) iter.next();\n            MapMatcher midm = (MapMatcher) ruleEntry.getKey();            \n            if (midm.matches(moduleAttributes)) {\n                Object rule = ruleEntry.getValue();\n                if (filter.accept(rule)) {\n                    return rule;\n                }\n            }\n        }\n        return null;\n    }\n\n    \n    \n    \n    /**\n     * Returns the rules object matching the given {@link ModuleRevisionId} and accepted by the\n     * given {@link Filter}, or an empty array if no rule applies.\n     * \n     * @param mrid\n     *            the {@link ModuleRevisionId} to search the rule for. \n     *            Must not be <code>null</code>.\n     * @param filter\n     *            the filter to use to filter the rule to return. The {@link Filter#accept(Object)}\n     *            method will be called only with rule objects matching the given\n     *            {@link ModuleRevisionId}. Must not be <code>null</code>.\n     * @return an array of rule objects matching the given {@link ModuleRevisionId}.\n     */\n    public Object[] getRules(ModuleRevisionId mrid, Filter filter) {\n        Checks.checkNotNull(mrid, \"mrid\");\n        Checks.checkNotNull(filter, \"filter\");      \n        Map moduleAttributes = mrid.getAttributes();\n        return getRules(moduleAttributes, filter);\n    }\n\n    \n    private Object[] getRules(Map moduleAttributes, Filter filter) {\n        List matchingRules = new ArrayList();\n        for (Iterator iter = rules.entrySet().iterator(); iter.hasNext();) {\n            Map.Entry ruleEntry = (Entry) iter.next();\n            MapMatcher midm = (MapMatcher) ruleEntry.getKey();            \n            if (midm.matches(moduleAttributes)) {\n                Object rule = ruleEntry.getValue();\n                if (filter.accept(rule)) {\n                    matchingRules.add(rule);\n                }\n            }\n        }\n        return matchingRules.toArray();\n    }\n\n    /**\n     * Dump the list of rules to {@link Message#debug(String)}\n     * \n     * @param prefix\n     *            the prefix to use for each line dumped\n     */\n    public void dump(String prefix) {\n        if (rules.isEmpty()) {\n            Message.debug(prefix + \"NONE\");\n        } else {\n            for (Iterator iter = rules.keySet().iterator(); iter.hasNext();) {\n                MapMatcher midm = (MapMatcher) iter.next();\n                Object rule = rules.get(midm);\n                Message.debug(prefix + midm + \" -> \" + rule);\n            }\n        }\n    }\n    \n    /**\n     * Returns an unmodifiable view of all the rules defined on this ModuleRules.\n     * <p>\n     * The rules are returned in a Map where they keys are the MapMatchers matching the rules\n     * object, and the values are the rules object themselves.\n     * </p>\n     * \n     * @return an unmodifiable view of all the rules defined on this ModuleRules.\n     */\n    public Map/*<MapMatcher,Object>*/ getAllRules() {\n        return Collections.unmodifiableMap(rules);\n    }\n\n    public Object clone() {\n        return new ModuleRules(rules);", "functions": [{"function_name": "defineRule", "code": "    public void defineRule(MapMatcher condition, Object rule) {\n        Checks.checkNotNull(condition, \"condition\");\n        Checks.checkNotNull(rule, \"rule\");\n        \n        rules.put(condition, rule);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getRule", "code": "    public Object getRule(ModuleId mid) {\n        return getRule(mid, NoFilter.INSTANCE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRules", "code": "    public Object[] getRules(ModuleId mid) {\n        return getRules(mid.getAttributes(), NoFilter.INSTANCE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRule", "code": "    public Object getRule(ModuleRevisionId mrid) {\n        return getRule(mrid, NoFilter.INSTANCE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRule", "code": "    public Object getRule(ModuleId mid, Filter filter) {\n        Checks.checkNotNull(mid, \"mid\");\n        return getRule(mid.getAttributes(), filter);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getRule", "code": "    public Object getRule(ModuleRevisionId mrid, Filter filter) {\n        Checks.checkNotNull(mrid, \"mrid\");\n        Checks.checkNotNull(filter, \"filter\");        \n        Map moduleAttributes = mrid.getAttributes();       \n        return getRule(moduleAttributes, filter);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [2, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 2], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getRule", "code": "    private Object getRule(Map moduleAttributes, Filter filter) {\n        for (Iterator iter = rules.entrySet().iterator(); iter.hasNext();) {\n            Map.Entry ruleEntry = (Entry) iter.next();\n            MapMatcher midm = (MapMatcher) ruleEntry.getKey();            \n            if (midm.matches(moduleAttributes)) {\n                Object rule = ruleEntry.getValue();\n                if (filter.accept(rule)) {\n                    return rule;\n                }\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [7, 10], [2, 11], [7, 12], [7, 13], [11, 14], [12, 15], [8, 16], [9, 17], [12, 18], [13, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 7], [11, 2], [12, 7], [13, 7], [14, 11], [15, 12], [16, 8], [17, 9], [18, 12], [19, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRules", "code": "    public Object[] getRules(ModuleRevisionId mrid, Filter filter) {\n        Checks.checkNotNull(mrid, \"mrid\");\n        Checks.checkNotNull(filter, \"filter\");      \n        Map moduleAttributes = mrid.getAttributes();\n        return getRules(moduleAttributes, filter);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [2, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 2], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getRules", "code": "    private Object[] getRules(Map moduleAttributes, Filter filter) {\n        List matchingRules = new ArrayList();\n        for (Iterator iter = rules.entrySet().iterator(); iter.hasNext();) {\n            Map.Entry ruleEntry = (Entry) iter.next();\n            MapMatcher midm = (MapMatcher) ruleEntry.getKey();            \n            if (midm.matches(moduleAttributes)) {\n                Object rule = ruleEntry.getValue();\n                if (filter.accept(rule)) {\n                    matchingRules.add(rule);\n                }\n            }\n        }\n        return matchingRules.toArray();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [3, 11], [8, 12], [2, 13], [8, 14], [8, 15], [13, 16], [14, 17], [9, 18], [10, 19], [15, 20], [14, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 3], [12, 8], [13, 2], [14, 8], [15, 8], [16, 13], [17, 14], [18, 9], [19, 10], [20, 15], [21, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "dump", "code": "    public void dump(String prefix) {\n        if (rules.isEmpty()) {\n            Message.debug(prefix + \"NONE\");\n        } else {\n            for (Iterator iter = rules.keySet().iterator(); iter.hasNext();) {\n                MapMatcher midm = (MapMatcher) iter.next();\n                Object rule = rules.get(midm);\n                Message.debug(prefix + midm + \" -> \" + rule);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "LOOP", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 6], [4, 7], [4, 8], [6, 9], [4, 10], [4, 11], [9, 12], [10, 13], [7, 14], [11, 15], [13, 16], [8, 17], [16, 18], [16, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 1], [7, 4], [8, 4], [9, 6], [10, 4], [11, 4], [12, 9], [13, 10], [14, 7], [15, 11], [16, 13], [17, 8], [18, 16], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getAllRules", "code": "    public Map/*<MapMatcher,Object>*/ getAllRules() {\n        return Collections.unmodifiableMap(rules);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clone", "code": "    public Object clone() {\n        return new ModuleRules(rules);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ModuleRules", "code": "    public ModuleRules() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ModuleRules", "code": "    private ModuleRules(Map/*<MapMatcher,Object>*/ rules) {\n        this.rules = new LinkedHashMap(rules);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.5-7166", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/BooleanCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.BooleanCall", "code": "final class BooleanCall extends FunctionCall {\n\n    private Expression _arg = null;\n\n    public BooleanCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n\t_arg = argument(0);\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_arg.typeCheck(stable);\n\treturn _type = Type.Boolean;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\t_arg.translate(classGen, methodGen);\n\tfinal Type targ = _arg.getType();\n\tif (!targ.identicalTo(Type.Boolean)) {\n\t    _arg.startResetIterator(classGen, methodGen);\n\t    targ.translateTo(classGen, methodGen, Type.Boolean);", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_arg.typeCheck(stable);\n\treturn _type = Type.Boolean;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 0], [2, 0], [3, 1], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\t_arg.translate(classGen, methodGen);\n\tfinal Type targ = _arg.getType();\n\tif (!targ.identicalTo(Type.Boolean)) {\n\t    _arg.startResetIterator(classGen, methodGen);\n\t    targ.translateTo(classGen, methodGen, Type.Boolean);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "BooleanCall", "code": "    public BooleanCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n\t_arg = argument(0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "camel-1.6-3020", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/model/config/BatchResequencerConfig.java", "language": "java", "name": "org.apache.camel.model.config.BatchResequencerConfig", "code": "@XmlRootElement\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class BatchResequencerConfig {\n\n    @XmlAttribute\n\n    @XmlAttribute\n\n    /**\n     * Creates a new {@link BatchResequencerConfig} instance using default\n     * values for <code>batchSize</code> (100) and <code>batchTimeout</code>\n     * (1000L).\n     */\n    public BatchResequencerConfig() {\n        this(100, 1000L);\n    }\n    \n    /**\n     * Creates a new {@link BatchResequencerConfig} instance using the given\n     * values for <code>batchSize</code> and <code>batchTimeout</code>.\n     * \n     * @param batchSize\n     *            size of the batch to be re-ordered.\n     * @param batchTimeout\n     *            timeout for collecting elements to be re-ordered.\n     */\n    public BatchResequencerConfig(int batchSize, long batchTimeout) {\n        this.batchSize = batchSize;\n        this.batchTimeout = batchTimeout;\n    }\n    \n    /**\n     * Returns a new {@link BatchResequencerConfig} instance using default\n     * values for <code>batchSize</code> (100) and <code>batchTimeout</code>\n     * (1000L).\n     * \n     * @return a default {@link BatchResequencerConfig}.\n     */\n    public static BatchResequencerConfig getDefault() {\n        return new BatchResequencerConfig();\n    }\n\n    public int getBatchSize() {\n        return batchSize;\n    }\n\n    public void setBatchSize(int batchSize) {\n        this.batchSize = batchSize;\n    }\n\n    public long getBatchTimeout() {\n        return batchTimeout;\n    }\n\n    public void setBatchTimeout(long batchTimeout) {\n        this.batchTimeout = batchTimeout;", "functions": [{"function_name": "getDefault", "code": "    public static BatchResequencerConfig getDefault() {\n        return new BatchResequencerConfig();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBatchSize", "code": "    public int getBatchSize() {\n        return batchSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBatchSize", "code": "    public void setBatchSize(int batchSize) {\n        this.batchSize = batchSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBatchTimeout", "code": "    public long getBatchTimeout() {\n        return batchTimeout;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBatchTimeout", "code": "    public void setBatchTimeout(long batchTimeout) {\n        this.batchTimeout = batchTimeout;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "BatchResequencerConfig", "code": "    @XmlAttribute\n\n    @XmlAttribute\n\n    /**\n     * Creates a new {@link BatchResequencerConfig} instance using default\n     * values for <code>batchSize</code> (100) and <code>batchTimeout</code>\n     * (1000L).\n     */\n    public BatchResequencerConfig() {\n        this(100, 1000L);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "BatchResequencerConfig", "code": "    public BatchResequencerConfig(int batchSize, long batchTimeout) {\n        this.batchSize = batchSize;\n        this.batchTimeout = batchTimeout;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.4-2401", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/OtherwiseType.java", "language": "java", "name": "org.apache.camel.model.OtherwiseType", "code": "@XmlRootElement(name = \"otherwise\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class OtherwiseType extends OutputType<ProcessorType> implements Block {\n\n    @Override\n    public String toString() {\n        return \"Otherwise[\" + getOutputs() + \"]\";\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        return routeContext.createProcessor(this);\n    }\n\n    @Override\n    public String getShortName() {\n        return \"otherwise\";\n    }\n\n    @Override\n    public String getLabel() {\n        return \"otherwise\";", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Otherwise[\" + getOutputs() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        return routeContext.createProcessor(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getShortName", "code": "    @Override\n    public String getShortName() {\n        return \"otherwise\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLabel", "code": "    @Override\n    public String getLabel() {\n        return \"otherwise\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.4-2306", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/cxf/spring/CxfEndpointBeanDefinitionParser.java", "language": "java", "name": "org.apache.camel.component.cxf.spring.CxfEndpointBeanDefinitionParser", "code": "public class CxfEndpointBeanDefinitionParser extends AbstractBeanDefinitionParser {\n\n    @Override\n    protected Class getBeanClass(Element arg0) {\n        return CxfEndpointBean.class;\n    }\n\n    @Override\n    protected void mapAttribute(BeanDefinitionBuilder bean, Element e, String name, String val) {\n        if (\"endpointName\".equals(name) || \"serviceName\".equals(name)) {\n            QName q = parseQName(e, val);\n            bean.addPropertyValue(name, q);\n        } else {\n            mapToProperty(bean, name, val);\n        }\n    }\n\n    @Override\n    protected void mapElement(ParserContext ctx, BeanDefinitionBuilder bean, Element el, String name) {\n        if (\"properties\".equals(name)) {\n            Map map = ctx.getDelegate().parseMapElement(el, bean.getBeanDefinition());\n            bean.addPropertyValue(\"properties\", map);\n        } else if (\"binding\".equals(name)) {\n            setFirstChildAsProperty(el, ctx, bean, \"bindingConfig\");\n        } else if (\"inInterceptors\".equals(name) || \"inFaultInterceptors\".equals(name)\n            || \"outInterceptors\".equals(name) || \"outFaultInterceptors\".equals(name)\n            || \"features\".equals(name) || \"schemaLocations\".equals(name)) {\n            java.util.List list = (java.util.List)ctx.getDelegate().parseListElement(el, bean.getBeanDefinition());\n            bean.addPropertyValue(name, list);\n        } else {\n            setFirstChildAsProperty(el, ctx, bean, name);\n        }\n    }\n\n\n    @Override\n    protected void doParse(Element element, ParserContext ctx, BeanDefinitionBuilder bean) {\n        super.doParse(element, ctx, bean);\n        bean.setLazyInit(false);\n    }\n\n    @Override\n    protected String resolveId(Element elem,\n                               AbstractBeanDefinition definition,\n                               ParserContext ctx)\n        throws BeanDefinitionStoreException {\n        String id = super.resolveId(elem, definition, ctx);\n        if (StringUtils.isEmpty(id)) {\n            throw new BeanDefinitionStoreException(\"The bean id is needed.\");\n        }\n\n        return id;\n    }\n\n    @Override\n    protected boolean hasBusProperty() {\n        return true;", "functions": [{"function_name": "getBeanClass", "code": "    @Override\n    protected Class getBeanClass(Element arg0) {\n        return CxfEndpointBean.class;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "mapAttribute", "code": "    @Override\n    protected void mapAttribute(BeanDefinitionBuilder bean, Element e, String name, String val) {\n        if (\"endpointName\".equals(name) || \"serviceName\".equals(name)) {\n            QName q = parseQName(e, val);\n            bean.addPropertyValue(name, q);\n        } else {\n            mapToProperty(bean, name, val);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [1, 10], [1, 11], [8, 12], [9, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 1], [11, 1], [12, 8], [13, 9], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "mapElement", "code": "    @Override\n    protected void mapElement(ParserContext ctx, BeanDefinitionBuilder bean, Element el, String name) {\n        if (\"properties\".equals(name)) {\n            Map map = ctx.getDelegate().parseMapElement(el, bean.getBeanDefinition());\n            bean.addPropertyValue(\"properties\", map);\n        } else if (\"binding\".equals(name)) {\n            setFirstChildAsProperty(el, ctx, bean, \"bindingConfig\");\n        } else if (\"inInterceptors\".equals(name) || \"inFaultInterceptors\".equals(name)\n            || \"outInterceptors\".equals(name) || \"outFaultInterceptors\".equals(name)\n            || \"features\".equals(name) || \"schemaLocations\".equals(name)) {\n            java.util.List list = (java.util.List)ctx.getDelegate().parseListElement(el, bean.getBeanDefinition());\n            bean.addPropertyValue(name, list);\n        } else {\n            setFirstChildAsProperty(el, ctx, bean, name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [1, 10], [7, 11], [8, 12], [9, 13], [1, 14], [8, 15], [12, 16], [12, 17], [6, 18], [14, 19], [10, 20], [8, 21], [8, 22], [16, 23], [17, 24], [17, 25], [18, 26], [20, 27], [24, 28], [25, 29], [25, 30], [27, 31], [15, 32], [29, 33], [30, 34], [30, 35], [32, 36], [34, 37], [35, 38], [35, 39], [36, 40], [38, 41], [39, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 1], [11, 7], [12, 8], [13, 9], [14, 1], [15, 8], [16, 12], [17, 12], [18, 6], [19, 14], [20, 10], [21, 8], [22, 8], [23, 16], [24, 17], [25, 17], [26, 18], [27, 20], [28, 24], [29, 25], [30, 25], [31, 27], [32, 15], [33, 29], [34, 30], [35, 30], [36, 32], [37, 34], [38, 35], [39, 35], [40, 36], [41, 38], [42, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "doParse", "code": "    @Override\n    protected void doParse(Element element, ParserContext ctx, BeanDefinitionBuilder bean) {\n        super.doParse(element, ctx, bean);\n        bean.setLazyInit(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resolveId", "code": "    @Override\n    protected String resolveId(Element elem,\n                               AbstractBeanDefinition definition,\n                               ParserContext ctx)\n        throws BeanDefinitionStoreException {\n        String id = super.resolveId(elem, definition, ctx);\n        if (StringUtils.isEmpty(id)) {\n            throw new BeanDefinitionStoreException(\"The bean id is needed.\");\n        }\n\n        return id;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "hasBusProperty", "code": "    @Override\n    protected boolean hasBusProperty() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6129", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/util/Region.java", "language": "java", "name": "org.apache.poi.hssf.util.Region", "code": "public class Region\n    implements Comparable\n{\n    private int   rowFrom;\n    private short colFrom;\n    private int   rowTo;\n    private short colTo;\n\n    /**\n     * Creates a new instance of Region (0,0 - 0,0)\n     */\n\n    public Region()\n    {\n    }\n\n    public Region(int rowFrom, short colFrom, int rowTo, short colTo)\n    {\n        this.rowFrom = rowFrom;\n        this.rowTo   = rowTo;\n        this.colFrom = colFrom;\n        this.colTo   = colTo;\n    }\n\n    /**\n     * special constructor (I know this is bad but it is so wrong that its right\n     * okay) that makes a region from a mergedcells's region subrecord.\n     */\n\n    public Region(MergedRegion region)\n    {\n        this(region.row_from, region.col_from, region.row_to, region.col_to);\n    }\n\n    /**\n     * get the upper left hand corner column number\n     *\n     * @return column number for the upper left hand corner\n     */\n\n    public short getColumnFrom()\n    {\n        return colFrom;\n    }\n\n    /**\n     * get the upper left hand corner row number\n     *\n     * @return row number for the upper left hand corner\n     */\n\n    public int getRowFrom()\n    {\n        return rowFrom;\n    }\n\n    /**\n     * get the lower right hand corner column number\n     *\n     * @return column number for the lower right hand corner\n     */\n\n    public short getColumnTo()\n    {\n        return colTo;\n    }\n\n    /**\n     * get the lower right hand corner row number\n     *\n     * @return row number for the lower right hand corner\n     */\n\n    public int getRowTo()\n    {\n        return rowTo;\n    }\n\n    /**\n     * set the upper left hand corner column number\n     *\n     * @param colFrom  column number for the upper left hand corner\n     */\n\n    public void setColumnFrom(short colFrom)\n    {\n        this.colFrom = colFrom;\n    }\n\n    /**\n     * set the upper left hand corner row number\n     *\n     * @param rowFrom  row number for the upper left hand corner\n     */\n\n    public void setRowFrom(int rowFrom)\n    {\n        this.rowFrom = rowFrom;\n    }\n\n    /**\n     * set the lower right hand corner column number\n     *\n     * @param colTo  column number for the lower right hand corner\n     */\n\n    public void setColumnTo(short colTo)\n    {\n        this.colTo = colTo;\n    }\n\n    /**\n     * get the lower right hand corner row number\n     *\n     * @param rowTo  row number for the lower right hand corner\n     */\n\n    public void setRowTo(int rowTo)\n    {\n        this.rowTo = rowTo;\n    }\n\n    /**\n     * Answers: \"is the row/column inside this range?\"\n     *\n     * @return <code>true</code> if the cell is in the range and\n     * <code>false</code> if it is not\n     */\n\n    public boolean contains(int row, short col)\n    {\n        if ((this.rowFrom <= row) && (this.rowTo >= row)\n                && (this.colFrom <= col) && (this.colTo >= col))\n        {\n\n            return true;\n        }\n        return false;\n    }\n\n    public boolean equals(Region r)\n    {\n        return (compareTo(r) == 0);\n    }\n\n    /**\n     * Compares that the given region is the same less than or greater than this\n     * region.  If any regional coordiant passed in is less than this regions\n     * coordinants then a positive integer is returned.  Otherwise a negative\n     * integer is returned.\n     *\n     * @param r  region\n     * @see #compareTo(Object)\n     */\n\n    public int compareTo(Region r)\n    {\n        if ((this.getRowFrom() == r.getRowFrom())\n                && (this.getColumnFrom() == r.getColumnFrom())\n                && (this.getRowTo() == r.getRowTo())\n                && (this.getColumnTo() == r.getColumnTo()))\n        {\n            return 0;\n        }\n        if ((this.getRowFrom() < r.getRowFrom())\n                || (this.getColumnFrom() < r.getColumnFrom())\n                || (this.getRowTo() < r.getRowTo())\n                || (this.getColumnTo() < r.getColumnTo()))\n        {\n            return 1;\n        }\n        return -1;\n    }\n\n    public int compareTo(Object o)\n    {\n        return compareTo(( Region ) o);\n    }\n\n    /**\n     * @return the area contained by this region (number of cells)\n     */\n\n    public int getArea()\n    {\n        return ((1 + (getRowTo() - getRowFrom()))\n                * (1 + (getColumnTo() - getColumnFrom())));", "functions": [{"function_name": "getColumnFrom", "code": "    public short getColumnFrom()\n    {\n        return colFrom;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRowFrom", "code": "    public int getRowFrom()\n    {\n        return rowFrom;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getColumnTo", "code": "    public short getColumnTo()\n    {\n        return colTo;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRowTo", "code": "    public int getRowTo()\n    {\n        return rowTo;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setColumnFrom", "code": "    public void setColumnFrom(short colFrom)\n    {\n        this.colFrom = colFrom;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRowFrom", "code": "    public void setRowFrom(int rowFrom)\n    {\n        this.rowFrom = rowFrom;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setColumnTo", "code": "    public void setColumnTo(short colTo)\n    {\n        this.colTo = colTo;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRowTo", "code": "    public void setRowTo(int rowTo)\n    {\n        this.rowTo = rowTo;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "contains", "code": "    public boolean contains(int row, short col)\n    {\n        if ((this.rowFrom <= row) && (this.rowTo >= row)\n                && (this.colFrom <= col) && (this.colTo >= col))\n        {\n\n            return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [6, 9], [7, 10], [9, 11], [9, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 6], [10, 7], [11, 9], [12, 9], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "equals", "code": "    public boolean equals(Region r)\n    {\n        return (compareTo(r) == 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "compareTo", "code": "    public int compareTo(Region r)\n    {\n        if ((this.getRowFrom() == r.getRowFrom())\n                && (this.getColumnFrom() == r.getColumnFrom())\n                && (this.getRowTo() == r.getRowTo())\n                && (this.getColumnTo() == r.getColumnTo()))\n        {\n            return 0;\n        }\n        if ((this.getRowFrom() < r.getRowFrom())\n                || (this.getColumnFrom() < r.getColumnFrom())\n                || (this.getRowTo() < r.getRowTo())\n                || (this.getColumnTo() < r.getColumnTo()))\n        {\n            return 1;\n        }\n        return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [6, 9], [6, 10], [3, 11], [7, 12], [7, 13], [8, 14], [9, 15], [10, 16], [10, 17], [11, 18], [12, 19], [13, 20], [13, 21], [9, 22], [16, 23], [17, 24], [17, 25], [12, 26], [20, 27], [21, 28], [21, 29], [16, 30], [24, 31], [25, 32], [20, 33], [28, 34], [29, 35], [24, 36], [25, 37], [28, 38], [29, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 6], [10, 6], [11, 3], [12, 7], [13, 7], [14, 8], [15, 9], [16, 10], [17, 10], [18, 11], [19, 12], [20, 13], [21, 13], [22, 9], [23, 16], [24, 17], [25, 17], [26, 12], [27, 20], [28, 21], [29, 21], [30, 16], [31, 24], [32, 25], [33, 20], [34, 28], [35, 29], [36, 24], [37, 25], [38, 28], [39, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "compareTo", "code": "    public int compareTo(Object o)\n    {\n        return compareTo(( Region ) o);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getArea", "code": "    public int getArea()\n    {\n        return ((1 + (getRowTo() - getRowFrom()))\n                * (1 + (getColumnTo() - getColumnFrom())));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [5, 9], [5, 10], [7, 11], [7, 12], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 5], [10, 5], [11, 7], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "Region", "code": "    public Region()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Region", "code": "    public Region(int rowFrom, short colFrom, int rowTo, short colTo)\n    {\n        this.rowFrom = rowFrom;\n        this.rowTo   = rowTo;\n        this.colFrom = colFrom;\n        this.colTo   = colTo;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "Region", "code": "    public Region(MergedRegion region)\n    {\n        this(region.row_from, region.col_from, region.row_to, region.col_to);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6525", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/FilteredAbsoluteLocationPath.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.FilteredAbsoluteLocationPath", "code": "final class FilteredAbsoluteLocationPath extends Expression {\n\n    public FilteredAbsoluteLocationPath() {\n\t_path = null;\n    }\n\n    public FilteredAbsoluteLocationPath(Expression path) {\n\t_path = path;\n\tif (path != null) {\n\t    _path.setParent(this);\n\t}\n    }\n\n    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tif (_path != null) {\n\t    _path.setParser(parser);\n\t}\n    }\n\n    public Expression getPath() {\n\treturn(_path);\n    }\n    \n    public String toString() {\n\treturn \"FilteredAbsoluteLocationPath(\" +\n\t    (_path != null ? _path.toString() : \"null\") + ')';\n    }\n\t\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_path != null) {\n\t    final Type ptype = _path.typeCheck(stable);\n\t\t_path = new CastExpr(_path, Type.NodeSet);\n\t    \n\t}\n\treturn _type = Type.NodeSet;\t\n    }\n\t\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tif (_path != null) {\n\t    final int initDFI = cpg.addMethodref(DUP_FILTERED_ITERATOR,\n\t\t\t\t\t\t\"<init>\",\n\t\t\t\t\t\t\"(\"\n\t\t\t\t\t\t+ NODE_ITERATOR_SIG\n\t\t\t\t\t\t+ \")V\");\n\t    il.append(new NEW(cpg.addClass(DUP_FILTERED_ITERATOR)));\n\t    il.append(DUP);\n\n\t    _path.translate(classGen, methodGen);\n\n\t    il.append(new INVOKESPECIAL(initDFI));\n\t}\n\telse {\n\t    final int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getIterator\",\n\t\t\t\t\t\t      \"()\"+NODE_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(new INVOKEINTERFACE(git, 1));", "functions": [{"function_name": "setParser", "code": "    public void setParser(Parser parser) {\n\tsuper.setParser(parser);\n\tif (_path != null) {\n\t    _path.setParser(parser);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getPath", "code": "    public Expression getPath() {\n\treturn(_path);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"FilteredAbsoluteLocationPath(\" +\n\t    (_path != null ? _path.toString() : \"null\") + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [5, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_path != null) {\n\t    final Type ptype = _path.typeCheck(stable);\n\t\t_path = new CastExpr(_path, Type.NodeSet);\n\t    \n\t}\n\treturn _type = Type.NodeSet;\t", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [2, 8], [8, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 2], [9, 8], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tif (_path != null) {\n\t    final int initDFI = cpg.addMethodref(DUP_FILTERED_ITERATOR,\n\t\t\t\t\t\t\"<init>\",\n\t\t\t\t\t\t\"(\"\n\t\t\t\t\t\t+ NODE_ITERATOR_SIG\n\t\t\t\t\t\t+ \")V\");\n\t    il.append(new NEW(cpg.addClass(DUP_FILTERED_ITERATOR)));\n\t    il.append(DUP);\n\n\t    _path.translate(classGen, methodGen);\n\n\t    il.append(new INVOKESPECIAL(initDFI));\n\t}\n\telse {\n\t    final int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getIterator\",\n\t\t\t\t\t\t      \"()\"+NODE_ITERATOR_SIG);\n\t    il.append(methodGen.loadDOM());\n\t    il.append(new INVOKEINTERFACE(git, 1));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [6, 9], [2, 10], [3, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [12, 18], [13, 19], [7, 20], [14, 21], [17, 22], [8, 23], [18, 24], [20, 25], [20, 26], [22, 27], [23, 28], [23, 29], [25, 30], [28, 31], [28, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 6], [10, 2], [11, 3], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 12], [19, 13], [20, 7], [21, 14], [22, 17], [23, 8], [24, 18], [25, 20], [26, 20], [27, 22], [28, 23], [29, 23], [30, 25], [31, 28], [32, 28], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "FilteredAbsoluteLocationPath", "code": "    public FilteredAbsoluteLocationPath() {\n\t_path = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FilteredAbsoluteLocationPath", "code": "    public FilteredAbsoluteLocationPath(Expression path) {\n\t_path = path;\n\tif (path != null) {\n\t    _path.setParent(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "ant-1.3-96", "repo": "ant-1.3", "project": "ant", "version": "1.3", "file_path": "org/apache/tools/ant/util/MergingMapper.java", "language": "java", "name": "org.apache.tools.ant.util.MergingMapper", "code": "public class MergingMapper implements FileNameMapper {\n    protected String[] mergedFile = null;\n\n    /**\n     * Ignored.\n     */\n    public void setFrom(String from) {}\n\n    /**\n     * Sets the name of the merged file.\n     */\n    public void setTo(String to) {\n        mergedFile = new String[] {to};\n    }\n\n    /**\n     * Returns an one-element array containing the file name set via setTo.\n     */\n    public String[] mapFileName(String sourceFileName) {\n        return mergedFile;", "functions": [{"function_name": "setFrom", "code": "    public void setFrom(String from) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTo", "code": "    public void setTo(String to) {\n        mergedFile = new String[] {to};", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "mapFileName", "code": "    public String[] mapFileName(String sourceFileName) {\n        return mergedFile;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7815", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/ExtendedType.java", "language": "java", "name": "org.apache.xml.dtm.ref.ExtendedType", "code": "public final class ExtendedType\n{\n    private int nodetype;\n    private String namespace;\n    private String localName;\n    private int hash;\n\n    /**\n     * Create an ExtendedType object from node type, namespace and local name.\n     * The hash code is calculated from the node type, namespace and local name.\n     * \n     * @param nodetype Type of the node\n     * @param namespace Namespace of the node\n     * @param localName Local name of the node\n     */\n    public ExtendedType (int nodetype, String namespace, String localName)\n    {\n      this.nodetype = nodetype;\n      this.namespace = namespace;\n      this.localName = localName;\n      this.hash = nodetype + namespace.hashCode() + localName.hashCode();\n    }\n\n    /**\n     * Create an ExtendedType object from node type, namespace, local name\n     * and a given hash code.\n     * \n     * @param nodetype Type of the node\n     * @param namespace Namespace of the node\n     * @param localName Local name of the node\n     * @param hash The given hash code\n     */\n    public ExtendedType (int nodetype, String namespace, String localName, int hash)\n    {\n      this.nodetype = nodetype;\n      this.namespace = namespace;\n      this.localName = localName;\n      this.hash = hash;\n    }\n\n    /** \n     * Redefine this ExtendedType object to represent a different extended type.\n     * This is intended to be used ONLY on the hashET object. Using it elsewhere\n     * will mess up existing hashtable entries!\n     */\n    protected void redefine(int nodetype, String namespace, String localName)\n    {\n      this.nodetype = nodetype;\n      this.namespace = namespace;\n      this.localName = localName;\n      this.hash = nodetype + namespace.hashCode() + localName.hashCode();\n    }\n\n    /** \n     * Redefine this ExtendedType object to represent a different extended type.\n     * This is intended to be used ONLY on the hashET object. Using it elsewhere\n     * will mess up existing hashtable entries!\n     */\n    protected void redefine(int nodetype, String namespace, String localName, int hash)\n    {\n      this.nodetype = nodetype;\n      this.namespace = namespace;\n      this.localName = localName;\n      this.hash = hash;\n    }\n\n    /**\n     * Override the hashCode() method in the Object class\n     */\n    public int hashCode()\n    {\n      return hash;\n    }\n\n    /**\n     * Test if this ExtendedType object is equal to the given ExtendedType.\n     * \n     * @param other The other ExtendedType object to test for equality\n     * @return true if the two ExtendedType objects are equal.\n     */\n    public boolean equals(ExtendedType other)\n    {\n      try\n      {\n        return other.nodetype == this.nodetype &&\n                other.localName.equals(this.localName) &&\n                other.namespace.equals(this.namespace);\n      }\n      catch(NullPointerException e)\n      {\n        return false;\n      }\n    }\n    \n    /**\n     * Return the node type\n     */\n    public int getNodeType()\n    {\n      return nodetype;\n    }\n    \n    /**\n     * Return the local name\n     */\n    public String getLocalName()\n    {\n      return localName;\n    }\n    \n    /**\n     * Return the namespace\n     */\n    public String getNamespace()\n    {\n      return namespace;", "functions": [{"function_name": "redefine", "code": "    protected void redefine(int nodetype, String namespace, String localName)\n    {\n      this.nodetype = nodetype;\n      this.namespace = namespace;\n      this.localName = localName;\n      this.hash = nodetype + namespace.hashCode() + localName.hashCode();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "redefine", "code": "    protected void redefine(int nodetype, String namespace, String localName, int hash)\n    {\n      this.nodetype = nodetype;\n      this.namespace = namespace;\n      this.localName = localName;\n      this.hash = hash;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "hashCode", "code": "    public int hashCode()\n    {\n      return hash;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "equals", "code": "    public boolean equals(ExtendedType other)\n    {\n      try\n      {\n        return other.nodetype == this.nodetype &&\n                other.localName.equals(this.localName) &&\n                other.namespace.equals(this.namespace);\n      }\n      catch(NullPointerException e)\n      {\n        return false;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [6, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 6], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getNodeType", "code": "    public int getNodeType()\n    {\n      return nodetype;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalName", "code": "    public String getLocalName()\n    {\n      return localName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespace", "code": "    public String getNamespace()\n    {\n      return namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ExtendedType", "code": "    public ExtendedType (int nodetype, String namespace, String localName)\n    {\n      this.nodetype = nodetype;\n      this.namespace = namespace;\n      this.localName = localName;\n      this.hash = nodetype + namespace.hashCode() + localName.hashCode();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "ExtendedType", "code": "    public ExtendedType (int nodetype, String namespace, String localName, int hash)\n    {\n      this.nodetype = nodetype;\n      this.namespace = namespace;\n      this.localName = localName;\n      this.hash = hash;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "jedit-4.3-4786", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/RolloverButton.java", "language": "java", "name": "org.gjt.sp.jedit.gui.RolloverButton", "code": "public class RolloverButton extends JButton\n{\n\t//{{{ RolloverButton constructor\n\t/**\n\t * Setup the border (invisible initially)\n\t */\n\tpublic RolloverButton()\n\t{\n\t\t//setContentAreaFilled(true);\n\t\taddMouseListener(new MouseOverHandler());\n\t} //}}}\n\n\t//{{{ RolloverButton constructor\n\t/**\n\t * Setup the border (invisible initially)\n\t *\n\t * @param icon the icon of this button\n\t */\n\tpublic RolloverButton(Icon icon)\n\t{\n\t\tthis();\n\n\t\tsetIcon(icon);\n\t} //}}}\n\n\t//{{{ updateUI() method\n\tpublic void updateUI()\n\t{\n\t\tsuper.updateUI();\n\t\t//setBorder(originalBorder);\n\t\tsetBorderPainted(false);\n\t\tsetRequestFocusEnabled(false);\n\t\tsetMargin(new Insets(1,1,1,1));\n\t} //}}}\n\n\t//{{{ setEnabled() method\n\tpublic void setEnabled(boolean b)\n\t{\n\t\tsuper.setEnabled(b);\n\t\tsetBorderPainted(false);\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ setBorderPainted() method\n\tpublic void setBorderPainted(boolean b)\n\t{\n\t\ttry\n\t\t{\n\t\t\trevalidateBlocked = true;\n\t\t\tsuper.setBorderPainted(b);\n\t\t\tsetContentAreaFilled(b);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\trevalidateBlocked = false;\n\t\t}\n\t} //}}}\n\n\t//{{{ revalidate() method\n\t/**\n\t * We block calls to revalidate() from a setBorderPainted(), for\n\t * performance reasons.\n\t */\n\tpublic void revalidate()\n\t{\n\t\tif(!revalidateBlocked)\n\t\t\tsuper.revalidate();\n\t} //}}}\n\n\t//{{{ paint() method\n\tpublic void paint(Graphics g)\n\t{\n\t\tif(isEnabled())\n\t\t\tsuper.paint(g);\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setComposite(c);\n\t\t\tsuper.paint(g2);\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static final AlphaComposite c = AlphaComposite.getInstance(\n\t\tAlphaComposite.SRC_OVER, 0.5f);\n\n\tprivate boolean revalidateBlocked;\n\n\t//{{{ MouseHandler class\n\t/**\n\t * Make the border visible/invisible on rollovers\n\t */\n\tclass MouseOverHandler extends MouseAdapter\n\t{\n\t\tpublic void mouseEntered(MouseEvent e)\n\t\t{\n\t\t\tsetContentAreaFilled(true);\n\t\t\tsetBorderPainted(isEnabled());\n\t\t}\n\n\t\tpublic void mouseExited(MouseEvent e)\n\t\t{\n\t\t\tsetContentAreaFilled(false);\n\t\t\tsetBorderPainted(false);", "functions": [{"function_name": "updateUI", "code": "\tpublic void updateUI()\n\t{\n\t\tsuper.updateUI();\n\t\t//setBorder(originalBorder);\n\t\tsetBorderPainted(false);\n\t\tsetRequestFocusEnabled(false);\n\t\tsetMargin(new Insets(1,1,1,1));", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [4, 8], [4, 9], [4, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 4], [8, 4], [9, 4], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setEnabled", "code": "\tpublic void setEnabled(boolean b)\n\t{\n\t\tsuper.setEnabled(b);\n\t\tsetBorderPainted(false);\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setBorderPainted", "code": "\tpublic void setBorderPainted(boolean b)\n\t{\n\t\ttry\n\t\t{\n\t\t\trevalidateBlocked = true;\n\t\t\tsuper.setBorderPainted(b);\n\t\t\tsetContentAreaFilled(b);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\trevalidateBlocked = false;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "revalidate", "code": "\tpublic void revalidate()\n\t{\n\t\tif(!revalidateBlocked)\n\t\t\tsuper.revalidate();", "ast_nodes": ["FUNC_DECL", "IF"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "paint", "code": "\tpublic void paint(Graphics g)\n\t{\n\t\tif(isEnabled())\n\t\t\tsuper.paint(g);\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setComposite(c);\n\t\t\tsuper.paint(g2);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "RolloverButton", "code": "\tpublic RolloverButton()\n\t{\n\t\t//setContentAreaFilled(true);\n\t\taddMouseListener(new MouseOverHandler());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RolloverButton", "code": "\tpublic RolloverButton(Icon icon)\n\t{\n\t\tthis();\n\n\t\tsetIcon(icon);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1196", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/condition/IsFileSelected.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.condition.IsFileSelected", "code": "public class IsFileSelected extends AbstractSelectorContainer implements Condition {\n\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n\n    private File file;\n    private File baseDir;\n\n    /**\n     * The file to check.\n     * @param file the file to check if if passes the embedded selector.\n     */\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    /**\n     * The base directory to use.\n     * @param baseDir the base directory to use, if null use the project's\n     *                basedir.\n     */\n    public void setBaseDir(File baseDir) {\n        this.baseDir = baseDir;\n    }\n\n    /**\n     * validate the parameters.\n     */\n    public void validate() {\n        if (selectorCount() != 1) {\n            throw new BuildException(\"Only one selector allowed\");\n        }\n        super.validate();\n    }\n\n    /**\n     * Evaluate the selector with the file.\n     * @return true if the file is selected by the embedded selector.\n     */\n    public boolean eval() {\n        if (file == null) {\n            throw new BuildException(\"file attribute not set\");\n        }\n        validate();\n        File myBaseDir = baseDir;\n        if (myBaseDir == null) {\n            myBaseDir = getProject().getBaseDir();\n        }\n\n        FileSelector f = getSelectors(getProject())[0];\n        return f.isSelected(\n            myBaseDir, FILE_UTILS.removeLeadingPath(myBaseDir, file), file);", "functions": [{"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBaseDir", "code": "    public void setBaseDir(File baseDir) {\n        this.baseDir = baseDir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "validate", "code": "    public void validate() {\n        if (selectorCount() != 1) {\n            throw new BuildException(\"Only one selector allowed\");\n        }\n        super.validate();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [2, 5], [3, 6], [6, 7], [1, 0], [2, 1], [3, 1], [4, 2], [5, 2], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "eval", "code": "    public boolean eval() {\n        if (file == null) {\n            throw new BuildException(\"file attribute not set\");\n        }\n        validate();\n        File myBaseDir = baseDir;\n        if (myBaseDir == null) {\n            myBaseDir = getProject().getBaseDir();\n        }\n\n        FileSelector f = getSelectors(getProject())[0];\n        return f.isSelected(\n            myBaseDir, FILE_UTILS.removeLeadingPath(myBaseDir, file), file);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [0, 8], [5, 9], [6, 10], [2, 11], [7, 12], [5, 13], [9, 14], [11, 15], [3, 16], [13, 17], [11, 18], [16, 19], [17, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 0], [9, 5], [10, 6], [11, 2], [12, 7], [13, 5], [14, 9], [15, 11], [16, 3], [17, 13], [18, 11], [19, 16], [20, 17], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}], "label": 0}
{"sample_id": "camel-1.6-2667", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jcr/JcrProducer.java", "language": "java", "name": "org.apache.camel.component.jcr.JcrProducer", "code": "public class JcrProducer extends DefaultProducer<DefaultExchange> {\n\n    public JcrProducer(JcrEndpoint jcrEndpoint) throws LoginException,\n            RepositoryException {\n        super(jcrEndpoint);\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        Session session = openSession();\n        try {\n            Node base = getBaseNode(session);\n            Node node = base.addNode(getNodeName(exchange));\n            TypeConverter converter = exchange.getContext().getTypeConverter();\n            for (String key : exchange.getProperties().keySet()) {\n                Value value = converter.convertTo(Value.class, \n                    exchange, exchange.getProperty(key));\n                node.setProperty(key, value);\n            }\n            node.addMixin(\"mix:referenceable\");\n            session.save();\n            exchange.getOut().setBody(node.getUUID());\n        } finally {\n            if (session != null && session.isLive()) {\n                session.logout();\n            }\n        }\n    }\n\n    private String getNodeName(Exchange exchange) {\n        if (exchange.getProperty(JcrComponent.NODE_NAME) != null) {\n            return exchange.getProperty(JcrComponent.NODE_NAME).toString();\n        }\n        return exchange.getExchangeId();\n    }\n\n    private Node getBaseNode(Session session) throws Exception {\n        Node baseNode = session.getRootNode();\n        for (String node : getJcrEndpoint().getBase().split(\"/\")) {\n            baseNode = baseNode.addNode(node);\n        }\n        return baseNode;\n    }\n\n    protected Session openSession() throws LoginException, RepositoryException {\n        return getJcrEndpoint().getRepository().login(getJcrEndpoint().getCredentials());\n    }\n\n    private JcrEndpoint getJcrEndpoint() {\n        JcrEndpoint endpoint = (JcrEndpoint) getEndpoint();\n        return endpoint;", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        Session session = openSession();\n        try {\n            Node base = getBaseNode(session);\n            Node node = base.addNode(getNodeName(exchange));\n            TypeConverter converter = exchange.getContext().getTypeConverter();\n            for (String key : exchange.getProperties().keySet()) {\n                Value value = converter.convertTo(Value.class, \n                    exchange, exchange.getProperty(key));\n                node.setProperty(key, value);\n            }\n            node.addMixin(\"mix:referenceable\");\n            session.save();\n            exchange.getOut().setBody(node.getUUID());\n        } finally {\n            if (session != null && session.isLive()) {\n                session.logout();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [1, 10], [1, 11], [1, 12], [2, 13], [9, 14], [9, 15], [10, 16], [12, 17], [5, 18], [5, 19], [6, 20], [7, 21], [8, 22], [4, 23], [15, 24], [16, 25], [5, 26], [19, 27], [20, 28], [21, 29], [18, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 1], [11, 1], [12, 1], [13, 2], [14, 9], [15, 9], [16, 10], [17, 12], [18, 5], [19, 5], [20, 6], [21, 7], [22, 8], [23, 4], [24, 15], [25, 16], [26, 5], [27, 19], [28, 20], [29, 21], [30, 18], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getNodeName", "code": "    private String getNodeName(Exchange exchange) {\n        if (exchange.getProperty(JcrComponent.NODE_NAME) != null) {\n            return exchange.getProperty(JcrComponent.NODE_NAME).toString();\n        }\n        return exchange.getExchangeId();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getBaseNode", "code": "    private Node getBaseNode(Session session) throws Exception {\n        Node baseNode = session.getRootNode();\n        for (String node : getJcrEndpoint().getBase().split(\"/\")) {\n            baseNode = baseNode.addNode(node);\n        }\n        return baseNode;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [2, 7], [5, 8], [5, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 2], [8, 5], [9, 5], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "openSession", "code": "    protected Session openSession() throws LoginException, RepositoryException {\n        return getJcrEndpoint().getRepository().login(getJcrEndpoint().getCredentials());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getJcrEndpoint", "code": "    private JcrEndpoint getJcrEndpoint() {\n        JcrEndpoint endpoint = (JcrEndpoint) getEndpoint();\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "JcrProducer", "code": "    public JcrProducer(JcrEndpoint jcrEndpoint) throws LoginException,\n            RepositoryException {\n        super(jcrEndpoint);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-2.5-5951", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/ChartFormatRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.ChartFormatRecord", "code": "public class ChartFormatRecord\n    extends Record\n{\n    public static final short sid = 0x1014;\n\n    private int               field3_width;\n    private int               field4_height;\n    private short             field5_grbit;\n    private BitField          varyDisplayPattern = new BitField(0x01);\n\n    public ChartFormatRecord()\n    {\n    }\n\n    /**\n     * Constructs a ChartFormatRecord record and sets its fields appropriately.\n     *\n     * @param id    id must equal the sid or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public ChartFormatRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a ChartFormatRecord record and sets its fields appropriately.\n     *\n     * @param id    id must equal the sid or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public ChartFormatRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A CHARTFORMAT RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field1_x_position = LittleEndian.getInt(data, 0 + offset);\n        field2_y_position = LittleEndian.getInt(data, 4 + offset);\n        field3_width      = LittleEndian.getInt(data, 8 + offset);\n        field4_height     = LittleEndian.getInt(data, 12 + offset);\n        field5_grbit      = LittleEndian.getShort(data, 16 + offset);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[CHARTFORMAT]\\n\");\n        buffer.append(\"    .xPosition       = \").append(getXPosition())\n            .append(\"\\n\");\n        buffer.append(\"    .yPosition       = \").append(getYPosition())\n            .append(\"\\n\");\n        buffer.append(\"    .width           = \").append(getWidth())\n            .append(\"\\n\");\n        buffer.append(\"    .height          = \").append(getHeight())\n            .append(\"\\n\");\n        buffer.append(\"    .grBit           = \")\n            .append(Integer.toHexString(field5_grbit)).append(\"\\n\");\n        buffer.append(\"[/CHARTFORMAT]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putInt(data, 4 + offset, getXPosition());\n        LittleEndian.putInt(data, 8 + offset, getYPosition());\n        LittleEndian.putInt(data, 12 + offset, getWidth());\n        LittleEndian.putInt(data, 16 + offset, getHeight());\n        LittleEndian.putShort(data, 20 + offset, field5_grbit);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 22;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public int getXPosition()\n    {\n        return field1_x_position;\n    }\n\n    public void setXPosition(int xPosition)\n    {\n        this.field1_x_position = xPosition;\n    }\n\n    public int getYPosition()\n    {\n        return field2_y_position;\n    }\n\n    public void setYPosition(int yPosition)\n    {\n        this.field2_y_position = yPosition;\n    }\n\n    public int getWidth()\n    {\n        return field3_width;\n    }\n\n    public void setWidth(int width)\n    {\n        this.field3_width = width;\n    }\n\n    public int getHeight()\n    {\n        return field4_height;\n    }\n\n    public void setHeight(int height)\n    {\n        this.field4_height = height;\n    }\n\n    public boolean getVaryDisplayPattern()\n    {\n        return varyDisplayPattern.isSet(field5_grbit);\n    }\n\n    public void setVaryDisplayPattern(boolean value)\n    {\n        field5_grbit = varyDisplayPattern.setShortBoolean(field5_grbit,\n                value);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A CHARTFORMAT RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field1_x_position = LittleEndian.getInt(data, 0 + offset);\n        field2_y_position = LittleEndian.getInt(data, 4 + offset);\n        field3_width      = LittleEndian.getInt(data, 8 + offset);\n        field4_height     = LittleEndian.getInt(data, 12 + offset);\n        field5_grbit      = LittleEndian.getShort(data, 16 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [16, 21], [17, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [21, 16], [22, 17], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[CHARTFORMAT]\\n\");\n        buffer.append(\"    .xPosition       = \").append(getXPosition())\n            .append(\"\\n\");\n        buffer.append(\"    .yPosition       = \").append(getYPosition())\n            .append(\"\\n\");\n        buffer.append(\"    .width           = \").append(getWidth())\n            .append(\"\\n\");\n        buffer.append(\"    .height          = \").append(getHeight())\n            .append(\"\\n\");\n        buffer.append(\"    .grBit           = \")\n            .append(Integer.toHexString(field5_grbit)).append(\"\\n\");\n        buffer.append(\"[/CHARTFORMAT]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [4, 11], [5, 12], [5, 13], [5, 14], [6, 15], [6, 16], [6, 17], [7, 18], [7, 19], [7, 20], [8, 21], [8, 22], [8, 23], [9, 24], [9, 25], [9, 26], [10, 27], [2, 28], [13, 29], [14, 30], [16, 31], [17, 32], [19, 33], [20, 34], [22, 35], [23, 36], [25, 37], [26, 38], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 4], [12, 5], [13, 5], [14, 5], [15, 6], [16, 6], [17, 6], [18, 7], [19, 7], [20, 7], [21, 8], [22, 8], [23, 8], [24, 9], [25, 9], [26, 9], [27, 10], [28, 2], [29, 13], [30, 14], [31, 16], [32, 17], [33, 19], [34, 20], [35, 22], [36, 23], [37, 25], [38, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putInt(data, 4 + offset, getXPosition());\n        LittleEndian.putInt(data, 8 + offset, getYPosition());\n        LittleEndian.putInt(data, 12 + offset, getWidth());\n        LittleEndian.putInt(data, 16 + offset, getHeight());\n        LittleEndian.putShort(data, 20 + offset, field5_grbit);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [5, 12], [6, 13], [6, 14], [7, 15], [7, 16], [8, 17], [8, 18], [9, 19], [9, 20], [10, 21], [11, 22], [12, 23], [14, 24], [16, 25], [18, 26], [20, 27], [21, 28], [22, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 5], [13, 6], [14, 6], [15, 7], [16, 7], [17, 8], [18, 8], [19, 9], [20, 9], [21, 10], [22, 11], [23, 12], [24, 14], [25, 16], [26, 18], [27, 20], [28, 21], [29, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 22;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXPosition", "code": "    public int getXPosition()\n    {\n        return field1_x_position;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXPosition", "code": "    public void setXPosition(int xPosition)\n    {\n        this.field1_x_position = xPosition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getYPosition", "code": "    public int getYPosition()\n    {\n        return field2_y_position;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setYPosition", "code": "    public void setYPosition(int yPosition)\n    {\n        this.field2_y_position = yPosition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWidth", "code": "    public int getWidth()\n    {\n        return field3_width;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWidth", "code": "    public void setWidth(int width)\n    {\n        this.field3_width = width;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeight", "code": "    public int getHeight()\n    {\n        return field4_height;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHeight", "code": "    public void setHeight(int height)\n    {\n        this.field4_height = height;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVaryDisplayPattern", "code": "    public boolean getVaryDisplayPattern()\n    {\n        return varyDisplayPattern.isSet(field5_grbit);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVaryDisplayPattern", "code": "    public void setVaryDisplayPattern(boolean value)\n    {\n        field5_grbit = varyDisplayPattern.setShortBoolean(field5_grbit,\n                value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ChartFormatRecord", "code": "    public ChartFormatRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ChartFormatRecord", "code": "    public ChartFormatRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ChartFormatRecord", "code": "    public ChartFormatRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.7-8372", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/domapi/XPathNamespaceImpl.java", "language": "java", "name": "org.apache.xpath.domapi.XPathNamespaceImpl", "code": "class XPathNamespaceImpl implements XPathNamespace {\n\n    final private Node m_attributeNode;\n    \n    /**\n     * Constructor for XPathNamespaceImpl.\n     */\n    XPathNamespaceImpl(Node node) {\n        m_attributeNode = node;\n    }\n\n    /**\n     * @see org.apache.xalan.dom3.xpath.XPathNamespace#getOwnerElement()\n     */\n    public Element getOwnerElement() {\n        return ((Attr)m_attributeNode).getOwnerElement(); \n    }\n\n    /**\n     * @see org.w3c.dom.Node#getNodeName()\n     */\n    public String getNodeName() {\n        return \"#namespace\";\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getNodeValue()\n     */\n    public String getNodeValue() throws DOMException {\n        return m_attributeNode.getNodeValue();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#setNodeValue(String)\n     */\n    public void setNodeValue(String arg0) throws DOMException {\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getNodeType()\n     */\n    public short getNodeType() {\n        return XPathNamespace.XPATH_NAMESPACE_NODE;\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getParentNode()\n     */\n    public Node getParentNode() {\n        return m_attributeNode.getParentNode();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getChildNodes()\n     */\n    public NodeList getChildNodes() {\n        return m_attributeNode.getChildNodes();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getFirstChild()\n     */\n    public Node getFirstChild() {\n        return m_attributeNode.getFirstChild();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getLastChild()\n     */\n    public Node getLastChild() {\n        return m_attributeNode.getLastChild();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getPreviousSibling()\n     */\n    public Node getPreviousSibling() {\n        return m_attributeNode.getPreviousSibling();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getNextSibling()\n     */\n    public Node getNextSibling() {\n        return m_attributeNode.getNextSibling();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getAttributes()\n     */\n    public NamedNodeMap getAttributes() {\n        return m_attributeNode.getAttributes();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getOwnerDocument()\n     */\n    public Document getOwnerDocument() {\n        return m_attributeNode.getOwnerDocument();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#insertBefore(Node, Node)\n     */\n    public Node insertBefore(Node arg0, Node arg1) throws DOMException {\n        return null;\n    }\n\n    /**\n     * @see org.w3c.dom.Node#replaceChild(Node, Node)\n     */\n    public Node replaceChild(Node arg0, Node arg1) throws DOMException {\n        return null;\n    }\n\n    /**\n     * @see org.w3c.dom.Node#removeChild(Node)\n     */\n    public Node removeChild(Node arg0) throws DOMException {\n        return null;\n    }\n\n    /**\n     * @see org.w3c.dom.Node#appendChild(Node)\n     */\n    public Node appendChild(Node arg0) throws DOMException {\n        return null;\n    }\n\n    /**\n     * @see org.w3c.dom.Node#hasChildNodes()\n     */\n    public boolean hasChildNodes() {\n        return false;\n    }\n\n    /**\n     * @see org.w3c.dom.Node#cloneNode(boolean)\n     */\n    public Node cloneNode(boolean arg0) {\n        throw new DOMException(DOMException.NOT_SUPPORTED_ERR,null);\n    }\n\n    /**\n     * @see org.w3c.dom.Node#normalize()\n     */\n    public void normalize() {\n        m_attributeNode.normalize();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#isSupported(String, String)\n     */\n    public boolean isSupported(String arg0, String arg1) {\n        return m_attributeNode.isSupported(arg0, arg1);\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getNamespaceURI()\n     */\n    public String getNamespaceURI() {\n        \n        return m_attributeNode.getNodeValue();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getPrefix()\n     */\n    public String getPrefix() {\n        return m_attributeNode.getPrefix();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#setPrefix(String)\n     */\n    public void setPrefix(String arg0) throws DOMException {\n    }\n\n    /**\n     * @see org.w3c.dom.Node#getLocalName()\n     */\n    public String getLocalName() {\n        \n        return m_attributeNode.getPrefix();\n    }\n\n    /**\n     * @see org.w3c.dom.Node#hasAttributes()\n     */\n    public boolean hasAttributes() {\n        return m_attributeNode.hasAttributes();\n    }\n\n    public String getBaseURI ( ) {\n        return null;\n    }\n\n    public short compareDocumentPosition(Node other) throws DOMException {\n        return 0;\n    }\n\n    private String textContent;\n    \n    public String getTextContent() throws DOMException {\n        return textContent;\n    }\n    \n    public void setTextContent(String textContent) throws DOMException {\n        this.textContent = textContent;\n    }\n    \n    public boolean isSameNode(Node other) {\n        return false;\n    }\n\n    public String lookupPrefix(String namespaceURI) {\n    }\n\n    public boolean isDefaultNamespace(String namespaceURI) {\n        return false;\n    }\n\n    public String lookupNamespaceURI(String prefix) {\n        return null;\n    }\n\n    public boolean isEqualNode(Node arg) {\n        return false;\n    }\n\n    public Object getFeature(String feature, String version) {\n    }\n\n    public Object setUserData(String key, \n                              Object data, \n                              UserDataHandler handler) {\n    }\n\n    public Object getUserData(String key) {\n        return null;", "functions": [{"function_name": "getOwnerElement", "code": "    public Element getOwnerElement() {\n        return ((Attr)m_attributeNode).getOwnerElement(); ", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "    public String getNodeName() {\n        return \"#namespace\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNodeValue", "code": "    public String getNodeValue() throws DOMException {\n        return m_attributeNode.getNodeValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNodeValue", "code": "    public void setNodeValue(String arg0) throws DOMException {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeType", "code": "    public short getNodeType() {\n        return XPathNamespace.XPATH_NAMESPACE_NODE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getParentNode", "code": "    public Node getParentNode() {\n        return m_attributeNode.getParentNode();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getChildNodes", "code": "    public NodeList getChildNodes() {\n        return m_attributeNode.getChildNodes();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstChild", "code": "    public Node getFirstChild() {\n        return m_attributeNode.getFirstChild();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLastChild", "code": "    public Node getLastChild() {\n        return m_attributeNode.getLastChild();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPreviousSibling", "code": "    public Node getPreviousSibling() {\n        return m_attributeNode.getPreviousSibling();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNextSibling", "code": "    public Node getNextSibling() {\n        return m_attributeNode.getNextSibling();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAttributes", "code": "    public NamedNodeMap getAttributes() {\n        return m_attributeNode.getAttributes();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOwnerDocument", "code": "    public Document getOwnerDocument() {\n        return m_attributeNode.getOwnerDocument();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "insertBefore", "code": "    public Node insertBefore(Node arg0, Node arg1) throws DOMException {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "replaceChild", "code": "    public Node replaceChild(Node arg0, Node arg1) throws DOMException {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeChild", "code": "    public Node removeChild(Node arg0) throws DOMException {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "appendChild", "code": "    public Node appendChild(Node arg0) throws DOMException {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hasChildNodes", "code": "    public boolean hasChildNodes() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "cloneNode", "code": "    public Node cloneNode(boolean arg0) {\n        throw new DOMException(DOMException.NOT_SUPPORTED_ERR,null);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "normalize", "code": "    public void normalize() {\n        m_attributeNode.normalize();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSupported", "code": "    public boolean isSupported(String arg0, String arg1) {\n        return m_attributeNode.isSupported(arg0, arg1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNamespaceURI", "code": "    public String getNamespaceURI() {\n        \n        return m_attributeNode.getNodeValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPrefix", "code": "    public String getPrefix() {\n        return m_attributeNode.getPrefix();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPrefix", "code": "    public void setPrefix(String arg0) throws DOMException {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalName", "code": "    public String getLocalName() {\n        \n        return m_attributeNode.getPrefix();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasAttributes", "code": "    public boolean hasAttributes() {\n        return m_attributeNode.hasAttributes();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBaseURI", "code": "    public String getBaseURI ( ) {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "compareDocumentPosition", "code": "    public short compareDocumentPosition(Node other) throws DOMException {\n        return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTextContent", "code": "    public String getTextContent() throws DOMException {\n        return textContent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTextContent", "code": "    public void setTextContent(String textContent) throws DOMException {\n        this.textContent = textContent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSameNode", "code": "    public boolean isSameNode(Node other) {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "lookupPrefix", "code": "    public String lookupPrefix(String namespaceURI) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isDefaultNamespace", "code": "    public boolean isDefaultNamespace(String namespaceURI) {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "lookupNamespaceURI", "code": "    public String lookupNamespaceURI(String prefix) {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isEqualNode", "code": "    public boolean isEqualNode(Node arg) {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFeature", "code": "    public Object getFeature(String feature, String version) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUserData", "code": "    public Object setUserData(String key, \n                              Object data, \n                              UserDataHandler handler) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getUserData", "code": "    public Object getUserData(String key) {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "XPathNamespaceImpl", "code": "    XPathNamespaceImpl(Node node) {\n        m_attributeNode = node;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.4-6713", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/LiteralAttribute.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.LiteralAttribute", "code": "final class LiteralAttribute extends Instruction {\n\n\n    /**\n     * Creates a new literal attribute (but does not insert it into the AST).\n     * @param name the attribute name (incl. prefix) as a String.\n     * @param value the attribute value.\n     * @param parser the XSLT parser (wraps XPath parser).\n     */\n    public LiteralAttribute(String name, String value, Parser parser) {\n\t_name = name;\n\t_value = AttributeValue.create(this, value, parser);\n    }\n\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"LiteralAttribute name=\" + _name + \" value=\" + _value);\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_value.typeCheck(stable);\n\ttypeCheckContents(stable);\n\treturn Type.Void;\n    }\n\n    protected boolean contextDependent() {\n\treturn _value.contextDependent();\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadHandler());\n\til.append(new PUSH(cpg, _name));\n\t_value.translate(classGen, methodGen);\n\til.append(methodGen.attribute());", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"LiteralAttribute name=\" + _name + \" value=\" + _value);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_value.typeCheck(stable);\n\ttypeCheckContents(stable);\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "contextDependent", "code": "    protected boolean contextDependent() {\n\treturn _value.contextDependent();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadHandler());\n\til.append(new PUSH(cpg, _name));\n\t_value.translate(classGen, methodGen);\n\til.append(methodGen.attribute());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [7, 10], [8, 11], [1, 12], [2, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 7], [11, 8], [12, 1], [13, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "LiteralAttribute", "code": "    public LiteralAttribute(String name, String value, Parser parser) {\n\t_name = name;\n\t_value = AttributeValue.create(this, value, parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "ant-1.4-117", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/Filter.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Filter", "code": "public class Filter extends Task {\n\n    private String token;\n    private String value;\n    private File filtersFile;\n    \n    public void setToken(String token) {\n        this.token = token;\n    }\n\n    public void setValue(String value) {\n        this.value = value;\n    }\n\n    public void setFiltersfile(File filtersFile) {\n        this.filtersFile = filtersFile;\n    }\n\n    public void execute() throws BuildException {\n        boolean isFiltersFromFile = filtersFile != null && token == null && value == null;\n        boolean isSingleFilter = filtersFile == null && token != null && value != null;\n        \n        if (!isFiltersFromFile && !isSingleFilter) {\n            throw new BuildException(\"both token and value parameters, or only a filtersFile parameter is required\", location);\n        }\n        \n        if (isSingleFilter) {\n            project.getGlobalFilterSet().addFilter(token, value);\n        }\n        \n        if (isFiltersFromFile) {\n            readFilters();\n        }\n    }\n    \n    protected void readFilters() throws BuildException {\n        log(\"Reading filters from \" + filtersFile, Project.MSG_VERBOSE);\n        project.getGlobalFilterSet().readFiltersFromFile(filtersFile);", "functions": [{"function_name": "setToken", "code": "    public void setToken(String token) {\n        this.token = token;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValue", "code": "    public void setValue(String value) {\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFiltersfile", "code": "    public void setFiltersfile(File filtersFile) {\n        this.filtersFile = filtersFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        boolean isFiltersFromFile = filtersFile != null && token == null && value == null;\n        boolean isSingleFilter = filtersFile == null && token != null && value != null;\n        \n        if (!isFiltersFromFile && !isSingleFilter) {\n            throw new BuildException(\"both token and value parameters, or only a filtersFile parameter is required\", location);\n        }\n        \n        if (isSingleFilter) {\n            project.getGlobalFilterSet().addFilter(token, value);\n        }\n        \n        if (isFiltersFromFile) {\n            readFilters();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [4, 8], [5, 9], [1, 10], [2, 11], [7, 12], [8, 13], [8, 14], [9, 15], [9, 16], [11, 17], [12, 18], [13, 19], [14, 20], [14, 21], [15, 22], [16, 23], [16, 24], [20, 25], [21, 26], [23, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 4], [9, 5], [10, 1], [11, 2], [12, 7], [13, 8], [14, 8], [15, 9], [16, 9], [17, 11], [18, 12], [19, 13], [20, 14], [21, 14], [22, 15], [23, 16], [24, 16], [25, 20], [26, 21], [27, 23], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "readFilters", "code": "    protected void readFilters() throws BuildException {\n        log(\"Reading filters from \" + filtersFile, Project.MSG_VERBOSE);\n        project.getGlobalFilterSet().readFiltersFromFile(filtersFile);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-4.3-4876", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/textarea/ScreenLineManager.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.ScreenLineManager", "code": "class ScreenLineManager\n{\n\t//{{{ ScreenLineManager constructor\n\tScreenLineManager(JEditBuffer buffer)\n\t{\n\t\tthis.buffer = buffer;\n\t\tif(!buffer.isLoading())\n\t\t\treset();\n\t} //}}}\n\t\n\t//{{{ isScreenLineCountValid() method\n\tboolean isScreenLineCountValid(int line)\n\t{\n\t\treturn (screenLines[line] & SCREEN_LINES_VALID_MASK) != 0;\n\t} //}}}\n\n\t//{{{ getScreenLineCount() method\n\t/**\n\t * Returns how many screen lines contains the given physical line.\n\t * It can be greater than 1 when using soft wrap\n\t *\n\t * @param line the physical line\n\t * @return the screen line count\n\t */\n\tint getScreenLineCount(int line)\n\t{\n\t\treturn screenLines[line] >> SCREEN_LINES_SHIFT;\n\t} //}}}\n\n\t//{{{ setScreenLineCount() method\n\t/**\n\t * Sets the number of screen lines that the specified physical line\n\t * is split into.\n\t * @param line the line number\n\t * @param count the line count (1 if no wrap)\n\t */\n\tvoid setScreenLineCount(int line, int count)\n\t{\n\t\tif(count > Short.MAX_VALUE)\n\t\t{\n\t\t\t// limitations...\n\t\t\tcount = Short.MAX_VALUE;\n\t\t}\n\n\t\tif(Debug.SCREEN_LINES_DEBUG)\n\t\t\tLog.log(Log.DEBUG,this,new Exception(\"setScreenLineCount(\" + line + ',' + count + ')'));\n\t\tscreenLines[line] = (short)(count << SCREEN_LINES_SHIFT\n\t\t\t| SCREEN_LINES_VALID_MASK);\n\t} //}}}\n\n\t//{{{ invalidateScreenLineCounts() method\n\tvoid invalidateScreenLineCounts()\n\t{\n\t\tint lineCount = buffer.getLineCount();\n\t\tfor(int i = 0; i < lineCount; i++)\n\t\t\tscreenLines[i] &= ~SCREEN_LINES_VALID_MASK;\n\t} //}}}\n\n\t//{{{ reset() method\n\tvoid reset()\n\t{\n\t\tscreenLines = new short[buffer.getLineCount()];\n\t} //}}}\n\n\t//{{{ contentInserted() method\n\tpublic void contentInserted(int startLine, int numLines)\n\t{\n\t\tint endLine = startLine + numLines;\n\t\tscreenLines[startLine] &= ~SCREEN_LINES_VALID_MASK;\n\n\t\tint lineCount = buffer.getLineCount();\n\n\t\tif(numLines > 0)\n\t\t{\n\t\t\tif(screenLines.length <= lineCount)\n\t\t\t{\n\t\t\t\tshort[] screenLinesN = new short[((lineCount + 1) << 1)];\n\t\t\t\tSystem.arraycopy(screenLines,0,screenLinesN,0,\n\t\t\t\t\t\t screenLines.length);\n\t\t\t\tscreenLines = screenLinesN;\n\t\t\t}\n\n\t\t\tSystem.arraycopy(screenLines,startLine,screenLines,\n\t\t\t\tendLine,lineCount - endLine);\n\n\t\t\tfor(int i = 0; i < numLines; i++)\n\t\t\t\tscreenLines[startLine + i] = 0;\n\t\t}\n\t} //}}}\n\n\t//{{{ contentRemoved() method\n\tpublic void contentRemoved(int startLine, int numLines)\n\t{\n\t\tint endLine = startLine + numLines;\n\t\tscreenLines[startLine] &= ~SCREEN_LINES_VALID_MASK;\n\n\t\tif(numLines > 0 && endLine != screenLines.length)\n\t\t{\n\t\t\tSystem.arraycopy(screenLines,endLine + 1,screenLines,\n\t\t\t\tstartLine + 1,screenLines.length - endLine - 1);\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static final int SCREEN_LINES_SHIFT = 1;\n\tprivate static final int SCREEN_LINES_VALID_MASK = 1;\n\n\tprivate final JEditBuffer buffer;\n\t/** This array contains the line count for each physical line. */\n\tprivate short[] screenLines;", "functions": [{"function_name": "isScreenLineCountValid", "code": "\tboolean isScreenLineCountValid(int line)\n\t{\n\t\treturn (screenLines[line] & SCREEN_LINES_VALID_MASK) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getScreenLineCount", "code": "\tint getScreenLineCount(int line)\n\t{\n\t\treturn screenLines[line] >> SCREEN_LINES_SHIFT;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setScreenLineCount", "code": "\tvoid setScreenLineCount(int line, int count)\n\t{\n\t\tif(count > Short.MAX_VALUE)\n\t\t{\n\t\t\t// limitations...\n\t\t\tcount = Short.MAX_VALUE;\n\t\t}\n\n\t\tif(Debug.SCREEN_LINES_DEBUG)\n\t\t\tLog.log(Log.DEBUG,this,new Exception(\"setScreenLineCount(\" + line + ',' + count + ')'));\n\t\tscreenLines[line] = (short)(count << SCREEN_LINES_SHIFT\n\t\t\t| SCREEN_LINES_VALID_MASK);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 7], [5, 8], [7, 9], [2, 10], [8, 11], [9, 12], [12, 13], [12, 14], [14, 15], [15, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 1], [8, 5], [9, 7], [10, 2], [11, 8], [12, 9], [13, 12], [14, 12], [15, 14], [16, 15], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "invalidateScreenLineCounts", "code": "\tvoid invalidateScreenLineCounts()\n\t{\n\t\tint lineCount = buffer.getLineCount();\n\t\tfor(int i = 0; i < lineCount; i++)\n\t\t\tscreenLines[i] &= ~SCREEN_LINES_VALID_MASK;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "reset", "code": "\tvoid reset()\n\t{\n\t\tscreenLines = new short[buffer.getLineCount()];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "contentInserted", "code": "\tpublic void contentInserted(int startLine, int numLines)\n\t{\n\t\tint endLine = startLine + numLines;\n\t\tscreenLines[startLine] &= ~SCREEN_LINES_VALID_MASK;\n\n\t\tint lineCount = buffer.getLineCount();\n\n\t\tif(numLines > 0)\n\t\t{\n\t\t\tif(screenLines.length <= lineCount)\n\t\t\t{\n\t\t\t\tshort[] screenLinesN = new short[((lineCount + 1) << 1)];\n\t\t\t\tSystem.arraycopy(screenLines,0,screenLinesN,0,\n\t\t\t\t\t\t screenLines.length);\n\t\t\t\tscreenLines = screenLinesN;\n\t\t\t}\n\n\t\t\tSystem.arraycopy(screenLines,startLine,screenLines,\n\t\t\t\tendLine,lineCount - endLine);\n\n\t\t\tfor(int i = 0; i < numLines; i++)\n\t\t\t\tscreenLines[startLine + i] = 0;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LOOP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [1, 8], [1, 9], [6, 10], [2, 11], [3, 12], [8, 13], [1, 14], [9, 15], [8, 16], [14, 17], [9, 18], [16, 19], [8, 20], [9, 21], [9, 22], [22, 23], [22, 24], [16, 25], [18, 26], [26, 27], [26, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 1], [9, 1], [10, 6], [11, 2], [12, 3], [13, 8], [14, 1], [15, 9], [16, 8], [17, 14], [18, 9], [19, 16], [20, 8], [21, 9], [22, 9], [23, 22], [24, 22], [25, 16], [26, 18], [27, 26], [28, 26], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "contentRemoved", "code": "\tpublic void contentRemoved(int startLine, int numLines)\n\t{\n\t\tint endLine = startLine + numLines;\n\t\tscreenLines[startLine] &= ~SCREEN_LINES_VALID_MASK;\n\n\t\tif(numLines > 0 && endLine != screenLines.length)\n\t\t{\n\t\t\tSystem.arraycopy(screenLines,endLine + 1,screenLines,\n\t\t\t\tstartLine + 1,screenLines.length - endLine - 1);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [5, 8], [2, 9], [1, 10], [8, 11], [10, 12], [10, 13], [10, 14], [12, 15], [12, 16], [13, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [8, 5], [9, 2], [10, 1], [11, 8], [12, 10], [13, 10], [14, 10], [15, 12], [16, 12], [17, 13], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "ScreenLineManager", "code": "\tScreenLineManager(JEditBuffer buffer)\n\t{\n\t\tthis.buffer = buffer;\n\t\tif(!buffer.isLoading())\n\t\t\treset();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "poi-3.0-6052", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/GreaterThanPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.GreaterThanPtg", "code": "public class GreaterThanPtg\n    extends OperationPtg\n{\n    public final static int  SIZE = 1;\n    public final static byte sid  = 0x0D;    \n    private final static String GREATERTHAN = \">\";\n\n    /** \n     * Constructor. Creates new GreaterThanPtg \n     */\n    public GreaterThanPtg()\n    {\n    }\n\n    /**\n     * Constructor. Create a new GreaterThanPtg.\n     * @param data the byte array to have the PTG added to\n     * @param offset the offset to the PTG to.\n     */\n    public GreaterThanPtg(RecordInputStream in)\n    {\n    }\n    \n    /**\n     * Write the sid to an array\n     * @param array the array of bytes to write the sid to\n     * @param offset the offset to add the sid to\n     */\n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n    }\n\n    /**\n     * Get the size of the sid\n     * @return int the size of the sid in terms of byte additions to an array\n     */\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    /**\n     * Get the type of PTG for Greater Than\n     * @return int the identifier for the type\n     */\n    public int getType()\n    {\n        return TYPE_BINARY;\n    }\n\n    /**\n     * Get the number of operands for the Less than operator\n     * @return int the number of operands\n     */\n    public int getNumberOfOperands()\n    {\n        return 2;\n    }\n    \n    /** \n     * Implementation of method from Ptg \n     * @param book the Sheet References\n     */\n    public String toFormulaString(Workbook book)\n    {\n        return this.GREATERTHAN;\n    }\n      \n    /** \n     * Implementation of method from OperationsPtg\n     * @param operands a String array of operands\n     * @return String the Formula as a String\n     */  \n    public String toFormulaString(String[] operands) \n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(operands[ 0 ]);\n        buffer.append(this.GREATERTHAN);\n        buffer.append(operands[ 1 ]);\n        return buffer.toString();\n    }\n    \n    /**\n     * Get the default operands class value\n     * @return byte the Ptg Class Value as a byte from the Ptg Parent object\n     */\n    public byte getDefaultOperandClass() \n    {\n        return Ptg.CLASS_VALUE;\n    }\n           \n    /**\n     * Implementation of clone method from Object\n     * @return Object a clone of this class as an Object\n     */ \n    public Object clone() \n    {\n        return new GreaterThanPtg();", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return TYPE_BINARY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfOperands", "code": "    public int getNumberOfOperands()\n    {\n        return 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return this.GREATERTHAN;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(String[] operands) \n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(operands[ 0 ]);\n        buffer.append(this.GREATERTHAN);\n        buffer.append(operands[ 1 ]);\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [2, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 2], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() \n    {\n        return Ptg.CLASS_VALUE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() \n    {\n        return new GreaterThanPtg();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "GreaterThanPtg", "code": "    public GreaterThanPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "GreaterThanPtg", "code": "    public GreaterThanPtg(RecordInputStream in)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "jedit-4.1-4013", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/browser/BrowserView.java", "language": "java", "name": "org.gjt.sp.jedit.browser.BrowserView", "code": "class BrowserView extends JPanel\n{\n\t//{{{ BrowserView constructor\n\tpublic BrowserView(VFSBrowser browser, final boolean splitHorizontally)\n\t{\n\t\tthis.browser = browser;\n\t\tthis.splitHorizontally = splitHorizontally;\n\n\t\tparentDirectories = new JList();\n\n\t\tparentDirectories.getSelectionModel().setSelectionMode(\n\t\t\tTreeSelectionModel.SINGLE_TREE_SELECTION);\n\n\t\tparentDirectories.setCellRenderer(new ParentDirectoryRenderer());\n\t\tparentDirectories.setVisibleRowCount(5);\n\t\tparentDirectories.addMouseListener(new MouseHandler());\n\n\t\trootNode = new DefaultMutableTreeNode(null,true);\n\t\tmodel = new DefaultTreeModel(rootNode,true);\n\n\t\ttree = new BrowserJTree(model);\n\t\ttree.setCellRenderer(renderer);\n\t\ttree.setEditable(false);\n\t\ttree.addTreeExpansionListener(new TreeHandler());\n\n\t\t// looks bad with the OS X L&F, apparently...\n\t\tif(!OperatingSystem.isMacOSLF())\n\t\t\ttree.putClientProperty(\"JTree.lineStyle\", \"Angled\");\n\n\t\ttree.setRootVisible(false);\n\t\ttree.setShowsRootHandles(true);\n\t\ttree.setVisibleRowCount(12);\n\n\t\tfinal JScrollPane parentScroller = new JScrollPane(parentDirectories);\n\t\tparentScroller.setMinimumSize(new Dimension(0,0));\n\t\tJScrollPane treeScroller = new JScrollPane(tree);\n\t\ttreeScroller.setMinimumSize(new Dimension(0,0));\n\t\tsplitPane = new JSplitPane(\n\t\t\tsplitHorizontally ? JSplitPane.HORIZONTAL_SPLIT : JSplitPane.VERTICAL_SPLIT,\n\t\t\tparentScroller,treeScroller);\n\t\tsplitPane.setOneTouchExpandable(true);\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tString prop = splitHorizontally ? \"vfs.browser.horizontalSplitter\" : \"vfs.browser.splitter\";\n\t\t\t\tint loc = jEdit.getIntegerProperty(prop,-1);\n\t\t\t\tif(loc == -1)\n\t\t\t\t\tloc = parentScroller.getPreferredSize().height;\n\n\t\t\t\tsplitPane.setDividerLocation(loc);\n\t\t\t\tparentDirectories.ensureIndexIsVisible(\n\t\t\t\t\tparentDirectories.getModel()\n\t\t\t\t\t.getSize());\n\t\t\t}\n\t\t});\n\n\t\ttmpExpanded = new Hashtable();\n\n\t\tif(browser.isMultipleSelectionEnabled())\n\t\t\ttree.getSelectionModel().setSelectionMode(\n\t\t\t\tTreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);\n\t\telse\n\t\t\ttree.getSelectionModel().setSelectionMode(\n\t\t\t\tTreeSelectionModel.SINGLE_TREE_SELECTION);\n\n\t\tsetLayout(new BorderLayout());\n\n\t\tadd(BorderLayout.CENTER,splitPane);\n\n\t\tpropertiesChanged();\n\t} //}}}\n\n\t//{{{ focusOnFileView() method\n\tpublic void focusOnFileView()\n\t{\n\t\ttree.requestFocus();\n\t} //}}}\n\n\t//{{{ removeNotify() method\n\tpublic void removeNotify()\n\t{\n\t\tString prop = splitHorizontally ? \"vfs.browser.horizontalSplitter\" : \"vfs.browser.splitter\";\n\t\tjEdit.setIntegerProperty(prop,splitPane.getDividerLocation());\n\n\t\tsuper.removeNotify();\n\t} //}}}\n\n\t//{{{ getSelectedFiles() method\n\tpublic VFS.DirectoryEntry[] getSelectedFiles()\n\t{\n\t\tVector selected = new Vector(tree.getSelectionCount());\n\t\tTreePath[] paths = tree.getSelectionPaths();\n\t\tif(paths == null)\n\t\t\treturn new VFS.DirectoryEntry[0];\n\n\t\tfor(int i = 0; i < paths.length; i++)\n\t\t{\n\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)\n\t\t\t\tpaths[i].getLastPathComponent();\n\t\t\tObject obj = treeNode.getUserObject();\n\t\t\tif(obj instanceof VFS.DirectoryEntry)\n\t\t\t\tselected.addElement(obj);\n\t\t}\n\n\t\tVFS.DirectoryEntry[] retVal = new VFS.DirectoryEntry[selected.size()];\n\t\tselected.copyInto(retVal);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ selectNone() method\n\tpublic void selectNone()\n\t{\n\t\ttree.setSelectionPaths(new TreePath[0]);\n\t} //}}}\n\n\t//{{{ loadDirectory() method\n\tpublic void loadDirectory(String path)\n\t{\n\t\t// called by VFSBrowser.setDirectory()\n\t\ttmpExpanded.clear();\n\t\tloadDirectory(rootNode,path,false);\n\t} //}}}\n\n\t//{{{ directoryLoaded() method\n\tpublic void directoryLoaded(DefaultMutableTreeNode node,\n\t\tString path, Vector directory)\n\t{\n\t\tif(node == rootNode)\n\t\t{\n\t\t\tDefaultListModel parentList = new DefaultListModel();\n\n\t\t\tString parent = path;\n\n\t\t\tif(parent.length() != 1 && (parent.endsWith(\"/\")\n\t\t\t\t|| parent.endsWith(File.separator)))\n\t\t\t\tparent = parent.substring(0,parent.length() - 1);\n\n\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\tVFS _vfs = VFSManager.getVFSForPath(\n\t\t\t\t\tparent);\n\t\t\t\t// create a DirectoryEntry manually\n\t\t\t\t// instead of using _vfs._getDirectoryEntry()\n\t\t\t\t// since so many VFS's have broken\n\t\t\t\t// implementations of this method\n\t\t\t\tparentList.insertElementAt(new VFS.DirectoryEntry(\n\t\t\t\t\t_vfs.getFileName(parent),\n\t\t\t\t\tparent,parent,\n\t\t\t\t\tVFS.DirectoryEntry.DIRECTORY,\n\t\t\t\t\t0L,false),0);\n\t\t\t\tString newParent = _vfs.getParentOfPath(parent);\n\t\t\t\tif(newParent.length() != 1 && (newParent.endsWith(\"/\")\n\t\t\t\t\t|| newParent.endsWith(File.separator)))\n\t\t\t\t\tnewParent = newParent.substring(0,newParent.length() - 1);\n\n\t\t\t\tif(newParent == null || parent.equals(newParent))\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tparent = newParent;\n\t\t\t}\n\n\t\t\tparentDirectories.setModel(parentList);\n\t\t\tint index = parentList.getSize() - 1;\n\t\t\tparentDirectories.setSelectedIndex(index);\n\t\t\tparentDirectories.ensureIndexIsVisible(index);\n\t\t}\n\n\t\tnode.removeAllChildren();\n\n\t\tVector toExpand = new Vector();\n\n\t\tif(directory != null)\n\t\t{\n\t\t\tfor(int i = 0; i < directory.size(); i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)\n\t\t\t\t\tdirectory.elementAt(i);\n\t\t\t\tboolean allowsChildren = (file.type != VFS.DirectoryEntry.FILE);\n\t\t\t\tDefaultMutableTreeNode newNode = new DefaultMutableTreeNode(file,allowsChildren);\n\t\t\t\tnode.add(newNode);\n\t\t\t\tif(tmpExpanded.get(file.path) != null)\n\t\t\t\t{\n\t\t\t\t\ttmpExpanded.remove(file.path);\n\t\t\t\t\ttoExpand.addElement(new TreePath(newNode.getPath()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// fire events\n\t\tmodel.reload(node);\n\t\ttree.expandPath(new TreePath(node.getPath()));\n\n\t\t// expand branches that were expanded before\n\t\tfor(int i = 0; i < toExpand.size(); i++)\n\t\t{\n\t\t\tTreePath treePath = (TreePath)toExpand.elementAt(i);\n\t\t\ttree.expandPath(treePath);\n\t\t}\n\n\t\ttimer.stop();\n\t\ttypeSelectBuffer.setLength(0);\n\t} //}}}\n\n\t//{{{ updateFileView() method\n\tpublic void updateFileView()\n\t{\n\t\ttree.repaint();\n\t} //}}}\n\n\t//{{{ maybeReloadDirectory() method\n\tpublic void maybeReloadDirectory(String path)\n\t{\n\t\ttmpExpanded.clear();\n\n\t\t// because this method is called for *every* VFS update,\n\t\t// we don't want to scan the tree all the time. So we\n\t\t// use the following algorithm to determine if the path\n\t\t// might be part of the tree:\n\t\t// - if the path starts with the browser's current directory,\n\t\t//   we do the tree scan\n\t\t// - if the browser's directory is 'favorites:' -- we have to\n\t\t//   do the tree scan, as every path can appear under the\n\t\t//   favorites list\n\t\t// - if the browser's directory is 'roots:' and path is on\n\t\t//   the local filesystem, do a tree scan\n\t\tString browserDir = browser.getDirectory();\n\t\tif(browserDir.startsWith(FavoritesVFS.PROTOCOL))\n\t\t\tmaybeReloadDirectory(rootNode,path);\n\t\telse if(browserDir.startsWith(FileRootsVFS.PROTOCOL))\n\t\t{\n\t\t\tif(!MiscUtilities.isURL(path) || MiscUtilities.getProtocolOfURL(path)\n\t\t\t\t.equals(\"file\"))\n\t\t\t\tmaybeReloadDirectory(rootNode,path);\n\t\t}\n\t\telse if(path.startsWith(browserDir))\n\t\t\tmaybeReloadDirectory(rootNode,path);\n\t} //}}}\n\n\t//{{{ getDefaultFocusComponent() method\n\tpublic Component getDefaultFocusComponent()\n\t{\n\t\treturn tree;\n\t} //}}}\n\n\t//{{{ propertiesChanged() method\n\tpublic void propertiesChanged()\n\t{\n\t\tshowIcons = jEdit.getBooleanProperty(\"vfs.browser.showIcons\");\n\t\trenderer.propertiesChanged();\n\n\t\ttree.setRowHeight(renderer.getTreeCellRendererComponent(\n\t\t\ttree,new DefaultMutableTreeNode(\"foo\"),\n\t\t\tfalse,false,false,0,false).getSize().height);\n\n\t\tsplitPane.setBorder(null);\n\t} //}}}\n\n\t//{{{ getTree() method\n\tpublic BrowserJTree getTree()\n\t{\n\t\treturn tree;\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate VFSBrowser browser;\n\n\tprivate JSplitPane splitPane;\n\tprivate JList parentDirectories;\n\tprivate BrowserJTree tree;\n\tprivate Hashtable tmpExpanded;\n\tprivate DefaultTreeModel model;\n\tprivate DefaultMutableTreeNode rootNode;\n\tprivate BrowserCommandsMenu popup;\n\tprivate boolean showIcons;\n\tprivate boolean splitHorizontally;\n\n\tprivate FileCellRenderer renderer = new FileCellRenderer();\n\n\tprivate StringBuffer typeSelectBuffer = new StringBuffer();\n\tprivate Timer timer = new Timer(0,new ClearTypeSelect());\n\t//}}}\n\n\t//{{{ maybeReloadDirectory() method\n\tprivate boolean maybeReloadDirectory(DefaultMutableTreeNode node, String path)\n\t{\n\t\t// nodes which are not expanded need not be checked\n\t\tif(!tree.isExpanded(new TreePath(node.getPath())))\n\t\t\treturn false;\n\n\t\tif(node == rootNode && path.equals(browser.getDirectory()))\n\t\t{\n\t\t\tloadDirectory(rootNode,path,false);\n\t\t\treturn true;\n\t\t}\n\n\t\tObject userObject = node.getUserObject();\n\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t{\n\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)userObject;\n\n\t\t\t// we don't need to do anything with files!\n\t\t\tif(file.type == VFS.DirectoryEntry.FILE)\n\t\t\t\treturn false;\n\n\t\t\tif(path.equals(file.path))\n\t\t\t{\n\t\t\t\tloadDirectory(node,path,false);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif(node.getChildCount() != 0)\n\t\t{\n\t\t\tEnumeration children = node.children();\n\t\t\twhile(children.hasMoreElements())\n\t\t\t{\n\t\t\t\tDefaultMutableTreeNode child = (DefaultMutableTreeNode)\n\t\t\t\t\tchildren.nextElement();\n\t\t\t\tif(maybeReloadDirectory(child,path))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ loadDirectory() method\n\tprivate void loadDirectory(DefaultMutableTreeNode node, String path,\n\t\tboolean showLoading)\n\t{\n\t\tsaveExpansionState(node);\n\n\t\tpath = MiscUtilities.constructPath(browser.getDirectory(),path);\n\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\n\t\tObject session = vfs.createVFSSession(path,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tif(node == rootNode)\n\t\t{\n\t\t\tsetListModel(parentDirectories,new Object[] {\n\t\t\t\tnew LoadingPlaceholder() });\n\t\t}\n\n\t\tif(showLoading)\n\t\t{\n\t\t\tnode.removeAllChildren();\n\t\t\tnode.add(new DefaultMutableTreeNode(new LoadingPlaceholder(),false));\n\t\t\tmodel.reload(node);\n\t\t}\n\n\t\tVFSManager.runInWorkThread(new BrowserIORequest(\n\t\t\tBrowserIORequest.LIST_DIRECTORY,browser,\n\t\t\tsession,vfs,path,null,node,node == rootNode));\n\t} //}}}\n\n\t//{{{ saveExpansionState() method\n\tprivate void saveExpansionState(DefaultMutableTreeNode node)\n\t{\n\t\tfor(int i = 0; i < node.getChildCount(); i++)\n\t\t{\n\t\t\tDefaultMutableTreeNode child = (DefaultMutableTreeNode)\n\t\t\t\tnode.getChildAt(i);\n\n\t\t\tTreePath treePath = new TreePath(child.getPath());\n\n\t\t\tif(tree.isExpanded(treePath))\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = ((VFS.DirectoryEntry)\n\t\t\t\t\tchild.getUserObject());\n\n\t\t\t\ttmpExpanded.put(file.path,file.path);\n\n\t\t\t\tif(file.type != VFS.DirectoryEntry.FILE)\n\t\t\t\t\tsaveExpansionState(child);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ showFilePopup() method\n\tprivate void showFilePopup(VFS.DirectoryEntry[] files, Component comp,\n\t\tPoint point)\n\t{\n\t\tpopup = new BrowserCommandsMenu(browser,files);\n\t\t// for the parent directory right-click; on the click we select\n\t\t// the clicked item, but when the popup goes away we select the\n\t\t// currently showing directory.\n\t\tpopup.addPopupMenuListener(new PopupMenuListener()\n\t\t{\n\t\t\tpublic void popupMenuCanceled(PopupMenuEvent e) {}\n\n\t\t\tpublic void popupMenuWillBecomeVisible(PopupMenuEvent e) {}\n\n\t\t\tpublic void popupMenuWillBecomeInvisible(PopupMenuEvent e)\n\t\t\t{\n\t\t\t\tint index = parentDirectories.getModel().getSize() - 1;\n\t\t\t\tparentDirectories.setSelectedIndex(index);\n\t\t\t}\n\t\t});\n\t\tGUIUtilities.showPopupMenu(popup,comp,point.x,point.y);\n\t} //}}}\n\n\t//{{{ setListModel() method\n\t/**\n\t * This should be in the JDK API.\n\t */\n\tprivate void setListModel(JList list, final Object[] model)\n\t{\n\t\tlist.setModel(new AbstractListModel()\n\t\t{\n\t\t\tpublic int getSize() { return model.length; }\n\t\t\tpublic Object getElementAt(int i) { return model[i]; }\n\t\t});\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ ClearTypeSelect\n\tclass ClearTypeSelect implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\ttypeSelectBuffer.setLength(0);\n\t\t\tbrowser.filesSelected();\n\t\t}\n\t} //}}}\n\n\t//{{{ ParentDirectoryRenderer class\n\tclass ParentDirectoryRenderer extends DefaultListCellRenderer\n\t{\n\t\tFont plainFont, boldFont;\n\n\t\tParentDirectoryRenderer()\n\t\t{\n\t\t\tplainFont = UIManager.getFont(\"Tree.font\");\n\t\t\tboldFont = new Font(plainFont.getName(),Font.BOLD,plainFont.getSize());\n\t\t}\n\n\t\tpublic Component getListCellRendererComponent(\n\t\t\tJList list,\n\t\t\tObject value,\n\t\t\tint index,\n\t\t\tboolean isSelected,\n\t\t\tboolean cellHasFocus)\n\t\t{\n\t\t\tsuper.getListCellRendererComponent(list,value,index,\n\t\t\t\tisSelected,cellHasFocus);\n\n\t\t\tParentDirectoryRenderer.this.setBorder(new EmptyBorder(\n\t\t\t\t1,index * 5 + 1,1,1));\n\n\t\t\tif(value instanceof LoadingPlaceholder)\n\t\t\t{\n\t\t\t\tParentDirectoryRenderer.this.setFont(plainFont);\n\n\t\t\t\tsetIcon(showIcons ? FileCellRenderer.loadingIcon : null);\n\t\t\t\tsetText(jEdit.getProperty(\"vfs.browser.tree.loading\"));\n\t\t\t}\n\t\t\telse if(value instanceof VFS.DirectoryEntry)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry dirEntry = (VFS.DirectoryEntry)value;\n\t\t\t\tParentDirectoryRenderer.this.setFont(boldFont);\n\n\t\t\t\tsetIcon(showIcons ? FileCellRenderer.getIconForFile(dirEntry,true)\n\t\t\t\t\t: null);\n\t\t\t\tsetText(dirEntry.name);\n\t\t\t}\n\t\t\telse if(value == null)\n\t\t\t\tsetText(\"VFS does not follow VFS API\");\n\n\t\t\treturn this;\n\t\t}\n\t} //}}}\n\n\t//{{{ MouseHandler class\n\tclass MouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mousePressed(MouseEvent evt)\n\t\t{\n\t\t\tint row = parentDirectories.locationToIndex(evt.getPoint());\n\t\t\tif(row != -1)\n\t\t\t{\n\t\t\t\tObject obj = parentDirectories.getModel()\n\t\t\t\t\t.getElementAt(row);\n\t\t\t\tif(obj instanceof VFS.DirectoryEntry)\n\t\t\t\t{\n\t\t\t\t\tVFS.DirectoryEntry dirEntry = ((VFS.DirectoryEntry)obj);\n\t\t\t\t\tif(GUIUtilities.isPopupTrigger(evt))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(popup != null && popup.isVisible())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpopup.setVisible(false);\n\t\t\t\t\t\t\tpopup = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparentDirectories.setSelectedIndex(row);\n\t\t\t\t\t\t\tshowFilePopup(new VFS.DirectoryEntry[] {\n\t\t\t\t\t\t\t\tdirEntry },parentDirectories,\n\t\t\t\t\t\t\t\tevt.getPoint());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tpublic void mouseReleased(MouseEvent evt)\n\t\t{\n\t\t\tif(evt.getClickCount() % 2 != 0 &&\n\t\t\t\t!GUIUtilities.isMiddleButton(evt.getModifiers()))\n\t\t\t\treturn;\n\n\t\t\tint row = parentDirectories.locationToIndex(evt.getPoint());\n\t\t\tif(row != -1)\n\t\t\t{\n\t\t\t\tObject obj = parentDirectories.getModel()\n\t\t\t\t\t.getElementAt(row);\n\t\t\t\tif(obj instanceof VFS.DirectoryEntry)\n\t\t\t\t{\n\t\t\t\t\tVFS.DirectoryEntry dirEntry = ((VFS.DirectoryEntry)obj);\n\t\t\t\t\tif(!GUIUtilities.isPopupTrigger(evt))\n\t\t\t\t\t{\n\t\t\t\t\t\tbrowser.setDirectory(dirEntry.path);\n\t\t\t\t\t\tfocusOnFileView();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ BrowserJTree class\n\tclass BrowserJTree extends JTree\n\t{\n\t\t//{{{ BrowserJTree constructor\n\t\tBrowserJTree(TreeModel model)\n\t\t{\n\t\t\tsuper(model);\n\t\t\tToolTipManager.sharedInstance().registerComponent(this);\n\t\t} //}}}\n\n\t\t//{{{ getToolTipText() method\n\t\tpublic final String getToolTipText(MouseEvent evt)\n\t\t{\n\t\t\tTreePath path = getPathForLocation(evt.getX(), evt.getY());\n\t\t\tif(path != null)\n\t\t\t{\n\t\t\t\tRectangle cellRect = getPathBounds(path);\n\t\t\t\tif(cellRect != null && !cellRectIsVisible(cellRect))\n\t\t\t\t\treturn path.getLastPathComponent().toString();\n\t\t\t}\n\t\t\treturn null;\n\t\t} //}}}\n\n\t\t/* //{{{ getToolTipLocation() method\n\t\tpublic final Point getToolTipLocation(MouseEvent evt)\n\t\t{\n\t\t\tTreePath path = getPathForLocation(evt.getX(), evt.getY());\n\t\t\tif(path != null)\n\t\t\t{\n\t\t\t\tRectangle cellRect = getPathBounds(path);\n\t\t\t\tif(cellRect != null && !cellRectIsVisible(cellRect))\n\t\t\t\t{\n\t\t\t\t\treturn new Point(cellRect.x + (showIcons ? 14 : - 4),\n\t\t\t\t\t\tcellRect.y);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t} //}}} */\n\n\t\t//{{{ processKeyEvent() method\n\t\tpublic void processKeyEvent(KeyEvent evt)\n\t\t{\n\t\t\t// could make things somewhat easier...\n\t\t\t// ... but KeyEventWorkaround 'output contract' will\n\t\t\t// change in 4.1, so not a good idea\n\t\t\t//evt = KeyEventWorkaround.processKeyEvent(evt);\n\t\t\t//if(evt == null)\n\t\t\t//\treturn;\n\n\t\t\tif(evt.getID() == KeyEvent.KEY_PRESSED)\n\t\t\t{\n\t\t\t\tswitch(evt.getKeyCode())\n\t\t\t\t{\n\t\t\t\tcase KeyEvent.VK_UP:\n\t\t\t\tcase KeyEvent.VK_DOWN:\n\t\t\t\t\tsuper.processKeyEvent(evt);\n\t\t\t\t\tif(browser.getMode() != VFSBrowser.BROWSER)\n\t\t\t\t\t\tbrowser.filesSelected();\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\tbrowser.filesActivated((evt.isShiftDown()\n\t\t\t\t\t\t? VFSBrowser.M_OPEN_NEW_VIEW\n\t\t\t\t\t\t: VFSBrowser.M_OPEN),false);\n\t\t\t\t\tevt.consume();\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_LEFT:\n\t\t\t\t\tString directory = browser.getDirectory();\n\t\t\t\t\tbrowser.setDirectory(MiscUtilities\n\t\t\t\t\t\t.getParentOfPath(directory));\n\t\t\t\t\tevt.consume();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(evt.getID() == KeyEvent.KEY_TYPED)\n\t\t\t{\n\t\t\t\tif(evt.isControlDown() || evt.isAltDown()\n\t\t\t\t\t|| evt.isMetaDown())\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// hack...\n\t\t\t\tif(evt.isShiftDown() && evt.getKeyChar() == '\\n')\n\t\t\t\t\treturn;\n\n\t\t\t\tswitch(evt.getKeyChar())\n\t\t\t\t{\n\t\t\t\tcase '~':\n\t\t\t\t\tbrowser.setDirectory(System.getProperty(\"user.home\"));\n\t\t\t\t\tbreak;\n\t\t\t\tcase '/':\n\t\t\t\t\tbrowser.rootDirectory();\n\t\t\t\t\tbreak;\n\t\t\t\tcase '-':\n\t\t\t\t\tView view = browser.getView();\n\t\t\t\t\tBuffer buffer = view.getBuffer();\n\t\t\t\t\tbrowser.setDirectory(buffer.getDirectory());\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\ttypeSelectBuffer.append(evt.getKeyChar());\n\t\t\t\t\tdoTypeSelect(typeSelectBuffer.toString(),true);\n\n\t\t\t\t\ttimer.stop();\n\t\t\t\t\ttimer.setInitialDelay(750);\n\t\t\t\t\ttimer.setRepeats(false);\n\t\t\t\t\ttimer.start();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(!evt.isConsumed())\n\t\t\t\tsuper.processKeyEvent(evt);\n\t\t} //}}}\n\n\t\t//{{{ processMouseEvent() method\n\t\tprotected void processMouseEvent(MouseEvent evt)\n\t\t{\n\t\t\t//ToolTipManager ttm = ToolTipManager.sharedInstance();\n\n\t\t\tTreePath path = getPathForLocation(evt.getX(),evt.getY());\n\n\t\t\tswitch(evt.getID())\n\t\t\t{\n\t\t\t/* //{{{ MOUSE_ENTERED...\n\t\t\tcase MouseEvent.MOUSE_ENTERED:\n\t\t\t\ttoolTipInitialDelay = ttm.getInitialDelay();\n\t\t\t\ttoolTipReshowDelay = ttm.getReshowDelay();\n\t\t\t\tttm.setInitialDelay(200);\n\t\t\t\tttm.setReshowDelay(0);\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak; //}}}\n\t\t\t//{{{ MOUSE_EXITED...\n\t\t\tcase MouseEvent.MOUSE_EXITED:\n\t\t\t\tttm.setInitialDelay(toolTipInitialDelay);\n\t\t\t\tttm.setReshowDelay(toolTipReshowDelay);\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak; //}}} */\n\t\t\t//{{{ MOUSE_CLICKED...\n\t\t\tcase MouseEvent.MOUSE_CLICKED:\n\t\t\t\tif(path != null)\n\t\t\t\t{\n\t\t\t\t\t// A double click is not only when clickCount == 2\n\t\t\t\t\t// because every other click can open a new directory\n\t\t\t\t\tif((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0\n\t\t\t\t\t\t&& evt.getClickCount() % 2 == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tsetSelectionPath(path);\n\n\t\t\t\t\t\t// don't pass double-clicks to tree, otherwise\n\t\t\t\t\t\t// directory nodes will be expanded and we don't\n\t\t\t\t\t\t// want that\n\t\t\t\t\t\tbrowser.filesActivated((evt.isShiftDown()\n\t\t\t\t\t\t\t? VFSBrowser.M_OPEN_NEW_VIEW\n\t\t\t\t\t\t\t: VFSBrowser.M_OPEN),true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(GUIUtilities.isMiddleButton(evt.getModifiers()))\n\t\t\t\t\t{\n\t\t\t\t\t\tbrowser.filesActivated((evt.isShiftDown()\n\t\t\t\t\t\t\t? VFSBrowser.M_OPEN_NEW_VIEW\n\t\t\t\t\t\t\t: VFSBrowser.M_OPEN),true);\n\t\t\t\t\t}\n\t\t\t\t\telse if((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!isPathSelected(path))\n\t\t\t\t\t\t\tsetSelectionPath(path);\n\t\t\t\t\t}\n\n\t\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(GUIUtilities.isPopupTrigger(evt))\n\t\t\t\t\tbreak;\n\t\t\t//}}}\n\t\t\t//{{{ MOUSE_PRESSED...\n\t\t\tcase MouseEvent.MOUSE_PRESSED:\n\t\t\t\tif((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0)\n\t\t\t\t{\n\t\t\t\t\tif(evt.getClickCount() % 2 == 0)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(GUIUtilities.isMiddleButton(evt.getModifiers()))\n\t\t\t\t{\n\t\t\t\t\tif(!isPathSelected(path))\n\t\t\t\t\t\tsetSelectionPath(path);\n\t\t\t\t}\n\t\t\t\telse if(GUIUtilities.isPopupTrigger(evt))\n\t\t\t\t{\n\t\t\t\t\tif(popup != null && popup.isVisible())\n\t\t\t\t\t{\n\t\t\t\t\t\tpopup.setVisible(false);\n\t\t\t\t\t\tpopup = null;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(path == null)\n\t\t\t\t\t\tshowFilePopup(null,this,evt.getPoint());\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!isPathSelected(path))\n\t\t\t\t\t\t\tsetSelectionPath(path);\n\n\t\t\t\t\t\tshowFilePopup(getSelectedFiles(),this,evt.getPoint());\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak;\n\t\t\t//}}}\n\t\t\t//{{{ MOUSE_RELEASED...\n\t\t\tcase MouseEvent.MOUSE_RELEASED:\n\t\t\t\tif(!GUIUtilities.isPopupTrigger(evt)\n\t\t\t\t\t&& path != null)\n\t\t\t\t{\n\t\t\t\t\tbrowser.filesSelected();\n\t\t\t\t}\n\n\t\t\t\tif(evt.getClickCount() % 2 != 0)\n\t\t\t\t\tsuper.processMouseEvent(evt);\n\n\t\t\t\tbreak;\n\t\t\t//}}}\n\t\t\tdefault:\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate int toolTipInitialDelay = -1;\n\t\tprivate int toolTipReshowDelay = -1;\n\n\t\t//{{{ cellRectIsVisible() method\n\t\tprivate boolean cellRectIsVisible(Rectangle cellRect)\n\t\t{\n\t\t\tRectangle vr = BrowserJTree.this.getVisibleRect();\n\t\t\treturn vr.contains(cellRect.x,cellRect.y) &&\n\t\t\t\tvr.contains(cellRect.x + cellRect.width,\n\t\t\t\tcellRect.y + cellRect.height);\n\t\t} //}}}\n\n\t\t//{{{ doTypeSelect() method\n\t\tvoid doTypeSelect(String str, boolean ignoreCase)\n\t\t{\n\t\t\tif(getSelectionCount() == 0)\n\t\t\t\tdoTypeSelect(str,0,getRowCount(),ignoreCase);\n\t\t\telse\n\t\t\t{\n\t\t\t\tint start = getMaxSelectionRow();\n\t\t\t\tboolean retVal = doTypeSelect(str,start,getRowCount(),\n\t\t\t\t\tignoreCase);\n\n\t\t\t\tif(!retVal)\n\t\t\t\t{\n\t\t\t\t\t// scan from selection to end failed, so\n\t\t\t\t\t// scan from start to selection\n\t\t\t\t\tdoTypeSelect(str,0,start,ignoreCase);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ doTypeSelect() method\n\t\tprivate boolean doTypeSelect(String str, int start, int end,\n\t\t\tboolean ignoreCase)\n\t\t{\n\t\t\tfor(int i = start; i < end; i++)\n\t\t\t{\n\t\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)\n\t\t\t\t\tgetPathForRow(i).getLastPathComponent();\n\t\t\t\tObject obj = treeNode.getUserObject();\n\t\t\t\tif(obj instanceof VFS.DirectoryEntry)\n\t\t\t\t{\n\t\t\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)obj;\n\t\t\t\t\tString matchAgainst = (MiscUtilities.isAbsolutePath(str)\n\t\t\t\t\t\t? file.path : file.name);\n\t\t\t\t\tif(matchAgainst.regionMatches(ignoreCase,\n\t\t\t\t\t\t0,str,0,str.length()))\n\t\t\t\t\t{\n\t\t\t\t\t\tsetSelectionRow(i);\n\t\t\t\t\t\tscrollRowToVisible(i);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t} //}}}\n\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ TreeHandler class\n\tclass TreeHandler implements TreeExpansionListener\n\t{\n\t\t//{{{ treeExpanded() method\n\t\tpublic void treeExpanded(TreeExpansionEvent evt)\n\t\t{\n\t\t\tTreePath path = evt.getPath();\n\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)\n\t\t\t\tpath.getLastPathComponent();\n\t\t\tObject userObject = treeNode.getUserObject();\n\t\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t\t{\n\t\t\t\tloadDirectory(treeNode,((VFS.DirectoryEntry)\n\t\t\t\t\tuserObject).path,true);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ treeCollapsed() method\n\t\tpublic void treeCollapsed(TreeExpansionEvent evt)\n\t\t{\n\t\t\tTreePath path = evt.getPath();\n\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)\n\t\t\t\tpath.getLastPathComponent();\n\t\t\tif(treeNode.getUserObject() instanceof VFS.DirectoryEntry)\n\t\t\t{\n\t\t\t\t// we add the placeholder so that the node has\n\t\t\t\t// 1 child (otherwise the user won't be able to\n\t\t\t\t// expand it again)\n\t\t\t\ttreeNode.removeAllChildren();\n\t\t\t\ttreeNode.add(new DefaultMutableTreeNode(new LoadingPlaceholder(),false));\n\t\t\t\tmodel.reload(treeNode);\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\tstatic class LoadingPlaceholder {}", "functions": [{"function_name": "focusOnFileView", "code": "\tpublic void focusOnFileView()\n\t{\n\t\ttree.requestFocus();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "removeNotify", "code": "\tpublic void removeNotify()\n\t{\n\t\tString prop = splitHorizontally ? \"vfs.browser.horizontalSplitter\" : \"vfs.browser.splitter\";\n\t\tjEdit.setIntegerProperty(prop,splitPane.getDividerLocation());\n\n\t\tsuper.removeNotify();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSelectedFiles", "code": "\tpublic VFS.DirectoryEntry[] getSelectedFiles()\n\t{\n\t\tVector selected = new Vector(tree.getSelectionCount());\n\t\tTreePath[] paths = tree.getSelectionPaths();\n\t\tif(paths == null)\n\t\t\treturn new VFS.DirectoryEntry[0];\n\n\t\tfor(int i = 0; i < paths.length; i++)\n\t\t{\n\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)\n\t\t\t\tpaths[i].getLastPathComponent();\n\t\t\tObject obj = treeNode.getUserObject();\n\t\t\tif(obj instanceof VFS.DirectoryEntry)\n\t\t\t\tselected.addElement(obj);\n\t\t}\n\n\t\tVFS.DirectoryEntry[] retVal = new VFS.DirectoryEntry[selected.size()];\n\t\tselected.copyInto(retVal);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [4, 9], [4, 10], [3, 11], [3, 12], [3, 13], [10, 14], [5, 15], [6, 16], [2, 17], [11, 18], [3, 19], [9, 20], [16, 21], [11, 22], [12, 23], [13, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 4], [10, 4], [11, 3], [12, 3], [13, 3], [14, 10], [15, 5], [16, 6], [17, 2], [18, 11], [19, 3], [20, 9], [21, 16], [22, 11], [23, 12], [24, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "selectNone", "code": "\tpublic void selectNone()\n\t{\n\t\ttree.setSelectionPaths(new TreePath[0]);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadDirectory", "code": "\tpublic void loadDirectory(String path)\n\t{\n\t\t// called by VFSBrowser.setDirectory()\n\t\ttmpExpanded.clear();\n\t\tloadDirectory(rootNode,path,false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "directoryLoaded", "code": "\tpublic void directoryLoaded(DefaultMutableTreeNode node,\n\t\tString path, Vector directory)\n\t{\n\t\tif(node == rootNode)\n\t\t{\n\t\t\tDefaultListModel parentList = new DefaultListModel();\n\n\t\t\tString parent = path;\n\n\t\t\tif(parent.length() != 1 && (parent.endsWith(\"/\")\n\t\t\t\t|| parent.endsWith(File.separator)))\n\t\t\t\tparent = parent.substring(0,parent.length() - 1);\n\n\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\tVFS _vfs = VFSManager.getVFSForPath(\n\t\t\t\t\tparent);\n\t\t\t\t// create a DirectoryEntry manually\n\t\t\t\t// instead of using _vfs._getDirectoryEntry()\n\t\t\t\t// since so many VFS's have broken\n\t\t\t\t// implementations of this method\n\t\t\t\tparentList.insertElementAt(new VFS.DirectoryEntry(\n\t\t\t\t\t_vfs.getFileName(parent),\n\t\t\t\t\tparent,parent,\n\t\t\t\t\tVFS.DirectoryEntry.DIRECTORY,\n\t\t\t\t\t0L,false),0);\n\t\t\t\tString newParent = _vfs.getParentOfPath(parent);\n\t\t\t\tif(newParent.length() != 1 && (newParent.endsWith(\"/\")\n\t\t\t\t\t|| newParent.endsWith(File.separator)))\n\t\t\t\t\tnewParent = newParent.substring(0,newParent.length() - 1);\n\n\t\t\t\tif(newParent == null || parent.equals(newParent))\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tparent = newParent;\n\t\t\t}\n\n\t\t\tparentDirectories.setModel(parentList);\n\t\t\tint index = parentList.getSize() - 1;\n\t\t\tparentDirectories.setSelectedIndex(index);\n\t\t\tparentDirectories.ensureIndexIsVisible(index);\n\t\t}\n\n\t\tnode.removeAllChildren();\n\n\t\tVector toExpand = new Vector();\n\n\t\tif(directory != null)\n\t\t{\n\t\t\tfor(int i = 0; i < directory.size(); i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)\n\t\t\t\t\tdirectory.elementAt(i);\n\t\t\t\tboolean allowsChildren = (file.type != VFS.DirectoryEntry.FILE);\n\t\t\t\tDefaultMutableTreeNode newNode = new DefaultMutableTreeNode(file,allowsChildren);\n\t\t\t\tnode.add(newNode);\n\t\t\t\tif(tmpExpanded.get(file.path) != null)\n\t\t\t\t{\n\t\t\t\t\ttmpExpanded.remove(file.path);\n\t\t\t\t\ttoExpand.addElement(new TreePath(newNode.getPath()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// fire events\n\t\tmodel.reload(node);\n\t\ttree.expandPath(new TreePath(node.getPath()));\n\n\t\t// expand branches that were expanded before\n\t\tfor(int i = 0; i < toExpand.size(); i++)\n\t\t{\n\t\t\tTreePath treePath = (TreePath)toExpand.elementAt(i);\n\t\t\ttree.expandPath(treePath);\n\t\t}\n\n\t\ttimer.stop();\n\t\ttypeSelectBuffer.setLength(0);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [2, 13], [0, 14], [4, 15], [8, 16], [1, 17], [10, 18], [11, 19], [2, 20], [13, 21], [3, 22], [4, 23], [4, 24], [4, 25], [4, 26], [4, 27], [1, 28], [1, 29], [19, 30], [20, 31], [4, 32], [4, 33], [4, 34], [25, 35], [20, 36], [20, 37], [20, 38], [20, 39], [31, 40], [23, 41], [24, 42], [24, 43], [24, 44], [24, 45], [25, 46], [35, 47], [35, 48], [27, 49], [17, 50], [36, 51], [20, 52], [20, 53], [41, 54], [41, 55], [42, 56], [42, 57], [43, 58], [24, 59], [46, 60], [47, 61], [47, 62], [48, 63], [48, 64], [51, 65], [51, 66], [37, 67], [38, 68], [42, 69], [57, 70], [57, 71], [43, 72], [58, 73], [58, 74], [44, 75], [59, 76], [59, 77], [45, 78], [60, 79], [60, 80], [62, 81], [36, 82], [36, 83], [39, 84], [71, 85], [72, 86], [73, 87], [73, 88], [74, 89], [74, 90], [77, 91], [77, 92], [77, 93], [79, 94], [79, 95], [82, 96], [86, 97], [86, 98], [88, 99], [96, 100], [97, 101], [97, 102], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 2], [14, 0], [15, 4], [16, 8], [17, 1], [18, 10], [19, 11], [20, 2], [21, 13], [22, 3], [23, 4], [24, 4], [25, 4], [26, 4], [27, 4], [28, 1], [29, 1], [30, 19], [31, 20], [32, 4], [33, 4], [34, 4], [35, 25], [36, 20], [37, 20], [38, 20], [39, 20], [40, 31], [41, 23], [42, 24], [43, 24], [44, 24], [45, 24], [46, 25], [47, 35], [48, 35], [49, 27], [50, 17], [51, 36], [52, 20], [53, 20], [54, 41], [55, 41], [56, 42], [57, 42], [58, 43], [59, 24], [60, 46], [61, 47], [62, 47], [63, 48], [64, 48], [65, 51], [66, 51], [67, 37], [68, 38], [69, 42], [70, 57], [71, 57], [72, 43], [73, 58], [74, 58], [75, 44], [76, 59], [77, 59], [78, 45], [79, 60], [80, 60], [81, 62], [82, 36], [83, 36], [84, 39], [85, 71], [86, 72], [87, 73], [88, 73], [89, 74], [90, 74], [91, 77], [92, 77], [93, 77], [94, 79], [95, 79], [96, 82], [97, 86], [98, 86], [99, 88], [100, 96], [101, 97], [102, 97], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102]]}, {"function_name": "updateFileView", "code": "\tpublic void updateFileView()\n\t{\n\t\ttree.repaint();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "maybeReloadDirectory", "code": "\tpublic void maybeReloadDirectory(String path)\n\t{\n\t\ttmpExpanded.clear();\n\n\t\t// because this method is called for *every* VFS update,\n\t\t// we don't want to scan the tree all the time. So we\n\t\t// use the following algorithm to determine if the path\n\t\t// might be part of the tree:\n\t\t// - if the path starts with the browser's current directory,\n\t\t//   we do the tree scan\n\t\t// - if the browser's directory is 'favorites:' -- we have to\n\t\t//   do the tree scan, as every path can appear under the\n\t\t//   favorites list\n\t\t// - if the browser's directory is 'roots:' and path is on\n\t\t//   the local filesystem, do a tree scan\n\t\tString browserDir = browser.getDirectory();\n\t\tif(browserDir.startsWith(FavoritesVFS.PROTOCOL))\n\t\t\tmaybeReloadDirectory(rootNode,path);\n\t\telse if(browserDir.startsWith(FileRootsVFS.PROTOCOL))\n\t\t{\n\t\t\tif(!MiscUtilities.isURL(path) || MiscUtilities.getProtocolOfURL(path)\n\t\t\t\t.equals(\"file\"))\n\t\t\t\tmaybeReloadDirectory(rootNode,path);\n\t\t}\n\t\telse if(path.startsWith(browserDir))\n\t\t\tmaybeReloadDirectory(rootNode,path);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [4, 8], [1, 9], [2, 10], [7, 11], [4, 12], [7, 13], [12, 14], [12, 15], [14, 16], [14, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 4], [9, 1], [10, 2], [11, 7], [12, 4], [13, 7], [14, 12], [15, 12], [16, 14], [17, 14], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getDefaultFocusComponent", "code": "\tpublic Component getDefaultFocusComponent()\n\t{\n\t\treturn tree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "propertiesChanged", "code": "\tpublic void propertiesChanged()\n\t{\n\t\tshowIcons = jEdit.getBooleanProperty(\"vfs.browser.showIcons\");\n\t\trenderer.propertiesChanged();\n\n\t\ttree.setRowHeight(renderer.getTreeCellRendererComponent(\n\t\t\ttree,new DefaultMutableTreeNode(\"foo\"),\n\t\t\tfalse,false,false,0,false).getSize().height);\n\n\t\tsplitPane.setBorder(null);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [7, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 6], [9, 6], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 7], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getTree", "code": "\tpublic BrowserJTree getTree()\n\t{\n\t\treturn tree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "maybeReloadDirectory", "code": "\tprivate boolean maybeReloadDirectory(DefaultMutableTreeNode node, String path)\n\t{\n\t\t// nodes which are not expanded need not be checked\n\t\tif(!tree.isExpanded(new TreePath(node.getPath())))\n\t\t\treturn false;\n\n\t\tif(node == rootNode && path.equals(browser.getDirectory()))\n\t\t{\n\t\t\tloadDirectory(rootNode,path,false);\n\t\t\treturn true;\n\t\t}\n\n\t\tObject userObject = node.getUserObject();\n\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t{\n\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)userObject;\n\n\t\t\t// we don't need to do anything with files!\n\t\t\tif(file.type == VFS.DirectoryEntry.FILE)\n\t\t\t\treturn false;\n\n\t\t\tif(path.equals(file.path))\n\t\t\t{\n\t\t\t\tloadDirectory(node,path,false);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif(node.getChildCount() != 0)\n\t\t{\n\t\t\tEnumeration children = node.children();\n\t\t\twhile(children.hasMoreElements())\n\t\t\t{\n\t\t\t\tDefaultMutableTreeNode child = (DefaultMutableTreeNode)\n\t\t\t\t\tchildren.nextElement();\n\t\t\t\tif(maybeReloadDirectory(child,path))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [5, 12], [6, 13], [6, 14], [2, 15], [2, 16], [10, 17], [10, 18], [3, 19], [3, 20], [3, 21], [4, 22], [5, 23], [12, 24], [12, 25], [13, 26], [14, 27], [15, 28], [19, 29], [20, 30], [20, 31], [23, 32], [5, 33], [24, 34], [27, 35], [15, 36], [15, 37], [16, 38], [19, 39], [30, 40], [33, 41], [36, 42], [36, 43], [39, 44], [19, 45], [42, 46], [45, 47], [37, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 5], [13, 6], [14, 6], [15, 2], [16, 2], [17, 10], [18, 10], [19, 3], [20, 3], [21, 3], [22, 4], [23, 5], [24, 12], [25, 12], [26, 13], [27, 14], [28, 15], [29, 19], [30, 20], [31, 20], [32, 23], [33, 5], [34, 24], [35, 27], [36, 15], [37, 15], [38, 16], [39, 19], [40, 30], [41, 33], [42, 36], [43, 36], [44, 39], [45, 19], [46, 42], [47, 45], [48, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "loadDirectory", "code": "\tprivate void loadDirectory(DefaultMutableTreeNode node, String path,\n\t\tboolean showLoading)\n\t{\n\t\tsaveExpansionState(node);\n\n\t\tpath = MiscUtilities.constructPath(browser.getDirectory(),path);\n\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\n\t\tObject session = vfs.createVFSSession(path,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tif(node == rootNode)\n\t\t{\n\t\t\tsetListModel(parentDirectories,new Object[] {\n\t\t\t\tnew LoadingPlaceholder() });\n\t\t}\n\n\t\tif(showLoading)\n\t\t{\n\t\t\tnode.removeAllChildren();\n\t\t\tnode.add(new DefaultMutableTreeNode(new LoadingPlaceholder(),false));\n\t\t\tmodel.reload(node);\n\t\t}\n\n\t\tVFSManager.runInWorkThread(new BrowserIORequest(\n\t\t\tBrowserIORequest.LIST_DIRECTORY,browser,\n\t\t\tsession,vfs,path,null,node,node == rootNode));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [3, 12], [0, 13], [0, 14], [9, 15], [12, 16], [4, 17], [5, 18], [13, 19], [15, 20], [15, 21], [1, 22], [1, 23], [1, 24], [2, 25], [19, 26], [23, 27], [27, 28], [27, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 3], [13, 0], [14, 0], [15, 9], [16, 12], [17, 4], [18, 5], [19, 13], [20, 15], [21, 15], [22, 1], [23, 1], [24, 1], [25, 2], [26, 19], [27, 23], [28, 27], [29, 27], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "saveExpansionState", "code": "\tprivate void saveExpansionState(DefaultMutableTreeNode node)\n\t{\n\t\tfor(int i = 0; i < node.getChildCount(); i++)\n\t\t{\n\t\t\tDefaultMutableTreeNode child = (DefaultMutableTreeNode)\n\t\t\t\tnode.getChildAt(i);\n\n\t\t\tTreePath treePath = new TreePath(child.getPath());\n\n\t\t\tif(tree.isExpanded(treePath))\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = ((VFS.DirectoryEntry)\n\t\t\t\t\tchild.getUserObject());\n\n\t\t\t\ttmpExpanded.put(file.path,file.path);\n\n\t\t\t\tif(file.type != VFS.DirectoryEntry.FILE)\n\t\t\t\t\tsaveExpansionState(child);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [1, 9], [4, 10], [4, 11], [5, 12], [10, 13], [4, 14], [12, 15], [6, 16], [10, 17], [11, 18], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 1], [10, 4], [11, 4], [12, 5], [13, 10], [14, 4], [15, 12], [16, 6], [17, 10], [18, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "showFilePopup", "code": "\tprivate void showFilePopup(VFS.DirectoryEntry[] files, Component comp,\n\t\tPoint point)\n\t{\n\t\tpopup = new BrowserCommandsMenu(browser,files);\n\t\t// for the parent directory right-click; on the click we select\n\t\t// the clicked item, but when the popup goes away we select the\n\t\t// currently showing directory.\n\t\tpopup.addPopupMenuListener(new PopupMenuListener()\n\t\t{\n\t\t\tpublic void popupMenuCanceled(PopupMenuEvent e) {}\n\n\t\t\tpublic void popupMenuWillBecomeVisible(PopupMenuEvent e) {}\n\n\t\t\tpublic void popupMenuWillBecomeInvisible(PopupMenuEvent e)\n\t\t\t{\n\t\t\t\tint index = parentDirectories.getModel().getSize() - 1;\n\t\t\t\tparentDirectories.setSelectedIndex(index);\n\t\t\t}\n\t\t});\n\t\tGUIUtilities.showPopupMenu(popup,comp,point.x,point.y);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [7, 9], [7, 10], [7, 11], [9, 12], [9, 13], [10, 14], [11, 15], [9, 16], [12, 17], [17, 18], [17, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 7], [10, 7], [11, 7], [12, 9], [13, 9], [14, 10], [15, 11], [16, 9], [17, 12], [18, 17], [19, 17], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "setListModel", "code": "\tprivate void setListModel(JList list, final Object[] model)\n\t{\n\t\tlist.setModel(new AbstractListModel()\n\t\t{\n\t\t\tpublic int getSize() { return model.length; }\n\t\t\tpublic Object getElementAt(int i) { return model[i]; }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "PARAM", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [5, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [7, 5], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "BrowserView", "code": "\tpublic BrowserView(VFSBrowser browser, final boolean splitHorizontally)\n\t{\n\t\tthis.browser = browser;\n\t\tthis.splitHorizontally = splitHorizontally;\n\n\t\tparentDirectories = new JList();\n\n\t\tparentDirectories.getSelectionModel().setSelectionMode(\n\t\t\tTreeSelectionModel.SINGLE_TREE_SELECTION);\n\n\t\tparentDirectories.setCellRenderer(new ParentDirectoryRenderer());\n\t\tparentDirectories.setVisibleRowCount(5);\n\t\tparentDirectories.addMouseListener(new MouseHandler());\n\n\t\trootNode = new DefaultMutableTreeNode(null,true);\n\t\tmodel = new DefaultTreeModel(rootNode,true);\n\n\t\ttree = new BrowserJTree(model);\n\t\ttree.setCellRenderer(renderer);\n\t\ttree.setEditable(false);\n\t\ttree.addTreeExpansionListener(new TreeHandler());\n\n\t\t// looks bad with the OS X L&F, apparently...\n\t\tif(!OperatingSystem.isMacOSLF())\n\t\t\ttree.putClientProperty(\"JTree.lineStyle\", \"Angled\");\n\n\t\ttree.setRootVisible(false);\n\t\ttree.setShowsRootHandles(true);\n\t\ttree.setVisibleRowCount(12);\n\n\t\tfinal JScrollPane parentScroller = new JScrollPane(parentDirectories);\n\t\tparentScroller.setMinimumSize(new Dimension(0,0));\n\t\tJScrollPane treeScroller = new JScrollPane(tree);\n\t\ttreeScroller.setMinimumSize(new Dimension(0,0));\n\t\tsplitPane = new JSplitPane(\n\t\t\tsplitHorizontally ? JSplitPane.HORIZONTAL_SPLIT : JSplitPane.VERTICAL_SPLIT,\n\t\t\tparentScroller,treeScroller);\n\t\tsplitPane.setOneTouchExpandable(true);\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tString prop = splitHorizontally ? \"vfs.browser.horizontalSplitter\" : \"vfs.browser.splitter\";\n\t\t\t\tint loc = jEdit.getIntegerProperty(prop,-1);\n\t\t\t\tif(loc == -1)\n\t\t\t\t\tloc = parentScroller.getPreferredSize().height;\n\n\t\t\t\tsplitPane.setDividerLocation(loc);\n\t\t\t\tparentDirectories.ensureIndexIsVisible(\n\t\t\t\t\tparentDirectories.getModel()\n\t\t\t\t\t.getSize());\n\t\t\t}\n\t\t});\n\n\t\ttmpExpanded = new Hashtable();\n\n\t\tif(browser.isMultipleSelectionEnabled())\n\t\t\ttree.getSelectionModel().setSelectionMode(\n\t\t\t\tTreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);\n\t\telse\n\t\t\ttree.getSelectionModel().setSelectionMode(\n\t\t\t\tTreeSelectionModel.SINGLE_TREE_SELECTION);\n\n\t\tsetLayout(new BorderLayout());\n\n\t\tadd(BorderLayout.CENTER,splitPane);\n\n\t\tpropertiesChanged();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [4, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [9, 34], [1, 35], [1, 36], [11, 37], [12, 38], [13, 39], [14, 40], [15, 41], [2, 42], [16, 43], [3, 44], [17, 45], [18, 46], [19, 47], [4, 48], [21, 49], [22, 50], [24, 51], [25, 52], [26, 53], [27, 54], [28, 55], [29, 56], [30, 57], [31, 58], [35, 59], [36, 60], [38, 61], [40, 62], [41, 63], [41, 64], [43, 65], [43, 66], [48, 67], [48, 68], [52, 69], [53, 70], [53, 71], [61, 72], [61, 73], [61, 74], [61, 75], [61, 76], [72, 77], [75, 78], [72, 79], [77, 80], [73, 81], [74, 82], [78, 83], [79, 84], [81, 85], [82, 86], [82, 87], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 4], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 9], [35, 1], [36, 1], [37, 11], [38, 12], [39, 13], [40, 14], [41, 15], [42, 2], [43, 16], [44, 3], [45, 17], [46, 18], [47, 19], [48, 4], [49, 21], [50, 22], [51, 24], [52, 25], [53, 26], [54, 27], [55, 28], [56, 29], [57, 30], [58, 31], [59, 35], [60, 36], [61, 38], [62, 40], [63, 41], [64, 41], [65, 43], [66, 43], [67, 48], [68, 48], [69, 52], [70, 53], [71, 53], [72, 61], [73, 61], [74, 61], [75, 61], [76, 61], [77, 72], [78, 75], [79, 72], [80, 77], [81, 73], [82, 74], [83, 78], [84, 79], [85, 81], [86, 82], [87, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}], "label": 1}
{"sample_id": "xalan-2.7-8100", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/runtime/output/WriterOutputBuffer.java", "language": "java", "name": "org.apache.xalan.xsltc.runtime.output.WriterOutputBuffer", "code": "class WriterOutputBuffer implements OutputBuffer {\n    private static final int KB = 1024;\n    private static int BUFFER_SIZE = 4 * KB;\n\n    static {\n\tfinal String osName = System.getProperty(\"os.name\");\n\tif (osName.equalsIgnoreCase(\"solaris\")) {\n\t    BUFFER_SIZE = 32 * KB;\n\t}\n    }\n\n    private Writer _writer;\n\n    /**\n     * Initializes a WriterOutputBuffer by creating an instance of a \n     * BufferedWriter. The size of the buffer in this writer may have \n     * a significant impact on throughput. Solaris prefers a larger\n     * buffer, while Linux works better with a smaller one.\n     */\n    public WriterOutputBuffer(Writer writer) {\n\t_writer = new BufferedWriter(writer, BUFFER_SIZE);\n    }\n\n    public String close() {\n\ttry {\n\t    _writer.flush();\n\t}\n\tcatch (IOException e) {\n\t    throw new RuntimeException(e.toString());\n\t}\n\treturn \"\";\n    }\n\n    public OutputBuffer append(String s) {\n\ttry {\n\t    _writer.write(s);\n\t}\n\tcatch (IOException e) {\n\t    throw new RuntimeException(e.toString());\n\t}\n\treturn this;\n    }\n\n    public OutputBuffer append(char[] s, int from, int to) {\n\ttry {\n\t    _writer.write(s, from, to);\n\t}\n\tcatch (IOException e) {\n\t    throw new RuntimeException(e.toString());\n\t}\n\treturn this;\n    }\n\n    public OutputBuffer append(char ch) {\n\ttry {\n\t    _writer.write(ch);\n\t}\n\tcatch (IOException e) {\n\t    throw new RuntimeException(e.toString());\n\t}\n\treturn this;", "functions": [{"function_name": "close", "code": "    public String close() {\n\ttry {\n\t    _writer.flush();\n\t}\n\tcatch (IOException e) {\n\t    throw new RuntimeException(e.toString());\n\t}\n\treturn \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "LITERAL_ANCHOR", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "append", "code": "    public OutputBuffer append(String s) {\n\ttry {\n\t    _writer.write(s);\n\t}\n\tcatch (IOException e) {\n\t    throw new RuntimeException(e.toString());\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "append", "code": "    public OutputBuffer append(char[] s, int from, int to) {\n\ttry {\n\t    _writer.write(s, from, to);\n\t}\n\tcatch (IOException e) {\n\t    throw new RuntimeException(e.toString());\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [2, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 2], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "append", "code": "    public OutputBuffer append(char ch) {\n\ttry {\n\t    _writer.write(ch);\n\t}\n\tcatch (IOException e) {\n\t    throw new RuntimeException(e.toString());\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "WriterOutputBuffer", "code": "    public WriterOutputBuffer(Writer writer) {\n\t_writer = new BufferedWriter(writer, BUFFER_SIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.7-7997", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/ObjectFactory.java", "language": "java", "name": "org.apache.xml.dtm.ObjectFactory", "code": "class ObjectFactory {\n\n\n    private static final String DEFAULT_PROPERTIES_FILENAME =\n                                                     \"xalan.properties\";\n\n    private static final String SERVICES_PATH = \"META-INF/services/\";\n\n    /** Set to true for debugging */\n    private static final boolean DEBUG = false;\n\n    /** cache the contents of the xalan.properties file.\n     *  Until an attempt has been made to read this file, this will\n     * be null; if the file does not exist or we encounter some other error\n     * during the read, this will be empty.\n     */\n    private static Properties fXalanProperties = null;\n\n    /***\n     * Cache the time stamp of the xalan.properties file so\n     * that we know if it's been modified and can invalidate\n     * the cache when necessary.\n     */\n    private static long fLastModified = -1;\n\n\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);\n\t\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);\n        }\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);\n        }\n\t}\n    /**\n     * Finds the name of the required implementation class in the specified\n     * order.  The specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return name of class that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                FileInputStream fis = null;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        fis = ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                    }\n\t        } catch (Exception x) {\n\t            fXalanProperties = null;\n\t            fLastModified = -1;\n\t        }\n                finally {\n                    if (fis != null) {\n                        try {\n                            fis.close();\n                        }\n                        catch (IOException exc) {}\n                    }\n                }\t            \n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }\n        } else {\n            FileInputStream fis = null;\n            try {\n                fis = ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n            finally {\n                if (fis != null) {\n                    try {\n                        fis.close();\n                    }\n                    catch (IOException exc) {}\n                }\n            }               \n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);\n\t}\n\n    /** Prints a message to standard error if debugging is enabled. */\n    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);\n        }\n\t}\n    /**\n     * Figure out which ClassLoader to use.  For JDK 1.2 and later use\n     * the context ClassLoader.\n     */\n    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;\n\t}\n    /**\n     * Create an instance of a class using the specified ClassLoader\n     */ \n    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);\n        }\n    }\n\n    /**\n     * Find a Class using the specified ClassLoader\n     */ \n    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n                if (security != null){\n                    final int lastDot = className.lastIndexOf(\".\");\n                    String packageName = className;\n                    if (lastDot != -1) packageName = className.substring(0, lastDot);\n                    security.checkPackageAccess(packageName);\n                 }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;\n    }\n\n    /**\n     * Find the name of service provider using Jar Service Provider Mechanism\n     *\n     * @return instance of provider class if found or null\n     */\n    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n        } catch (IOException x) {\n            return null;\n        }\n        finally {\n            try {\n                rd.close();\n            }\n            catch (IOException exc) {}\n        }          \n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;\n    }\n\n\n    /**\n     * A configuration error.\n     */\n    static class ConfigurationError \n        extends Error {\n                static final long serialVersionUID = 5122054096615067992L;\n\n        /** Exception. */\n        private Exception exception;\n\n\n        /**\n         * Construct a new instance with the specified detail string and\n         * exception.\n         */\n        ConfigurationError(String msg, Exception x) {\n            super(msg);\n            this.exception = x;\n\t\t}\n\n        /** Returns the exception associated to this error. */\n        Exception getException() {\n            return exception;", "functions": [{"function_name": "createObject", "code": "    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createObject", "code": "    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [7, 11], [1, 12], [2, 13], [10, 14], [3, 15], [11, 16], [12, 17], [9, 18], [13, 19], [16, 20], [17, 21], [19, 22], [19, 23], [20, 24], [23, 25], [23, 26], [24, 27], [24, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 7], [12, 1], [13, 2], [14, 10], [15, 3], [16, 11], [17, 12], [18, 9], [19, 13], [20, 16], [21, 17], [22, 19], [23, 19], [24, 20], [25, 23], [26, 23], [27, 24], [28, 24], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [8, 13], [9, 14], [1, 15], [12, 16], [3, 17], [4, 18], [13, 19], [14, 20], [15, 21], [11, 22], [2, 23], [19, 24], [20, 25], [21, 26], [22, 27], [24, 28], [25, 29], [25, 30], [26, 31], [26, 32], [28, 33], [28, 34], [30, 35], [32, 36], [34, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 8], [14, 9], [15, 1], [16, 12], [17, 3], [18, 4], [19, 13], [20, 14], [21, 15], [22, 11], [23, 2], [24, 19], [25, 20], [26, 21], [27, 22], [28, 24], [29, 25], [30, 25], [31, 26], [32, 26], [33, 28], [34, 28], [35, 30], [36, 32], [37, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "lookUpFactoryClassName", "code": "    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                FileInputStream fis = null;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        fis = ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                    }\n\t        } catch (Exception x) {\n\t            fXalanProperties = null;\n\t            fLastModified = -1;\n\t        }\n                finally {\n                    if (fis != null) {\n                        try {\n                            fis.close();\n                        }\n                        catch (IOException exc) {}\n                    }\n                }\t            \n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }\n        } else {\n            FileInputStream fis = null;\n            try {\n                fis = ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n            finally {\n                if (fis != null) {\n                    try {\n                        fis.close();\n                    }\n                    catch (IOException exc) {}\n                }\n            }               \n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "CATCH", "VAR_DECL", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CATCH", "IF", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [5, 13], [5, 14], [5, 15], [2, 16], [11, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [12, 24], [4, 25], [14, 26], [6, 27], [2, 28], [18, 29], [18, 30], [18, 31], [20, 32], [3, 33], [3, 34], [3, 35], [21, 36], [21, 37], [14, 38], [26, 39], [15, 40], [28, 41], [29, 42], [18, 43], [18, 44], [18, 45], [19, 46], [32, 47], [33, 48], [33, 49], [33, 50], [33, 51], [21, 52], [21, 53], [21, 54], [22, 55], [23, 56], [14, 57], [41, 58], [29, 59], [42, 60], [43, 61], [31, 62], [45, 63], [20, 64], [48, 65], [51, 66], [34, 67], [35, 68], [36, 69], [36, 70], [52, 71], [53, 72], [54, 73], [37, 74], [57, 75], [58, 76], [58, 77], [59, 78], [63, 79], [64, 80], [48, 81], [65, 82], [49, 83], [49, 84], [51, 85], [51, 86], [66, 87], [69, 88], [70, 89], [73, 90], [74, 91], [75, 92], [77, 93], [59, 94], [81, 95], [83, 96], [84, 97], [50, 98], [50, 99], [50, 100], [86, 101], [90, 102], [81, 103], [99, 104], [100, 105], [86, 106], [101, 107], [102, 108], [102, 109], [85, 110], [85, 111], [86, 112], [107, 113], [110, 114], [111, 115], [112, 116], [113, 117], [106, 118], [106, 119], [118, 120], [119, 121], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 5], [14, 5], [15, 5], [16, 2], [17, 11], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 12], [25, 4], [26, 14], [27, 6], [28, 2], [29, 18], [30, 18], [31, 18], [32, 20], [33, 3], [34, 3], [35, 3], [36, 21], [37, 21], [38, 14], [39, 26], [40, 15], [41, 28], [42, 29], [43, 18], [44, 18], [45, 18], [46, 19], [47, 32], [48, 33], [49, 33], [50, 33], [51, 33], [52, 21], [53, 21], [54, 21], [55, 22], [56, 23], [57, 14], [58, 41], [59, 29], [60, 42], [61, 43], [62, 31], [63, 45], [64, 20], [65, 48], [66, 51], [67, 34], [68, 35], [69, 36], [70, 36], [71, 52], [72, 53], [73, 54], [74, 37], [75, 57], [76, 58], [77, 58], [78, 59], [79, 63], [80, 64], [81, 48], [82, 65], [83, 49], [84, 49], [85, 51], [86, 51], [87, 66], [88, 69], [89, 70], [90, 73], [91, 74], [92, 75], [93, 77], [94, 59], [95, 81], [96, 83], [97, 84], [98, 50], [99, 50], [100, 50], [101, 86], [102, 90], [103, 81], [104, 99], [105, 100], [106, 86], [107, 101], [108, 102], [109, 102], [110, 85], [111, 85], [112, 86], [113, 107], [114, 110], [115, 111], [116, 112], [117, 113], [118, 106], [119, 106], [120, 118], [121, 119], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121]]}, {"function_name": "debugPrintln", "code": "    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "findClassLoader", "code": "    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [4, 10], [5, 11], [6, 12], [2, 13], [8, 14], [9, 15], [13, 16], [8, 17], [14, 18], [9, 19], [9, 20], [9, 21], [20, 22], [9, 23], [20, 24], [20, 25], [21, 26], [20, 27], [24, 28], [25, 29], [27, 30], [24, 31], [28, 32], [25, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 4], [11, 5], [12, 6], [13, 2], [14, 8], [15, 9], [16, 13], [17, 8], [18, 14], [19, 9], [20, 9], [21, 9], [22, 20], [23, 9], [24, 20], [25, 20], [26, 21], [27, 20], [28, 24], [29, 25], [30, 27], [31, 24], [32, 28], [33, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "newInstance", "code": "    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [6, 11], [1, 12], [10, 13], [11, 14], [12, 15], [8, 16], [9, 17], [13, 18], [14, 19], [15, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [21, 26], [21, 27], [23, 28], [25, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 6], [12, 1], [13, 10], [14, 11], [15, 12], [16, 8], [17, 9], [18, 13], [19, 14], [20, 15], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 21], [27, 21], [28, 23], [29, 25], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "findProviderClass", "code": "    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n                if (security != null){\n                    final int lastDot = className.lastIndexOf(\".\");\n                    String packageName = className;\n                    if (lastDot != -1) packageName = className.substring(0, lastDot);\n                    security.checkPackageAccess(packageName);\n                 }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "IF", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CATCH", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [4, 11], [2, 12], [9, 13], [10, 14], [11, 15], [5, 16], [12, 17], [2, 18], [11, 19], [11, 20], [11, 21], [15, 22], [17, 23], [12, 24], [18, 25], [11, 26], [19, 27], [24, 28], [19, 29], [27, 30], [21, 31], [23, 32], [23, 33], [23, 34], [29, 35], [31, 36], [33, 37], [33, 38], [35, 39], [37, 40], [38, 41], [34, 42], [37, 43], [33, 44], [37, 45], [37, 46], [44, 47], [45, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 4], [12, 2], [13, 9], [14, 10], [15, 11], [16, 5], [17, 12], [18, 2], [19, 11], [20, 11], [21, 11], [22, 15], [23, 17], [24, 12], [25, 18], [26, 11], [27, 19], [28, 24], [29, 19], [30, 27], [31, 21], [32, 23], [33, 23], [34, 23], [35, 29], [36, 31], [37, 33], [38, 33], [39, 35], [40, 37], [41, 38], [42, 34], [43, 37], [44, 33], [45, 37], [46, 37], [47, 44], [48, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "findJarServiceProviderName", "code": "    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n        } catch (IOException x) {\n            return null;\n        }\n        finally {\n            try {\n                rd.close();\n            }\n            catch (IOException exc) {}\n        }          \n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "CATCH", "CATCH", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [3, 17], [5, 18], [0, 19], [7, 20], [8, 21], [0, 22], [2, 23], [15, 24], [15, 25], [16, 26], [17, 27], [3, 28], [4, 29], [5, 30], [19, 31], [7, 32], [20, 33], [8, 34], [8, 35], [21, 36], [22, 37], [9, 38], [10, 39], [11, 40], [12, 41], [2, 42], [24, 43], [25, 44], [16, 45], [27, 46], [28, 47], [18, 48], [30, 49], [31, 50], [32, 51], [34, 52], [42, 53], [48, 54], [49, 55], [50, 56], [50, 57], [35, 58], [53, 59], [54, 60], [55, 61], [57, 62], [34, 63], [34, 64], [63, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 3], [18, 5], [19, 0], [20, 7], [21, 8], [22, 0], [23, 2], [24, 15], [25, 15], [26, 16], [27, 17], [28, 3], [29, 4], [30, 5], [31, 19], [32, 7], [33, 20], [34, 8], [35, 8], [36, 21], [37, 22], [38, 9], [39, 10], [40, 11], [41, 12], [42, 2], [43, 24], [44, 25], [45, 16], [46, 27], [47, 28], [48, 18], [49, 30], [50, 31], [51, 32], [52, 34], [53, 42], [54, 48], [55, 49], [56, 50], [57, 50], [58, 35], [59, 53], [60, 54], [61, 55], [62, 57], [63, 34], [64, 34], [65, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}], "label": 1}
{"sample_id": "xalan-2.5-6971", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/ExpressionNode.java", "language": "java", "name": "org.apache.xpath.ExpressionNode", "code": "public interface ExpressionNode extends SourceLocator\n{\n  /** This pair of methods are used to inform the node of its\n    parent. */\n  public void exprSetParent(ExpressionNode n);\n  public ExpressionNode exprGetParent();\n\n  /** This method tells the node to add its argument to the node's\n    list of children.  */\n  public void exprAddChild(ExpressionNode n, int i);\n\n  /** This method returns a child node.  The children are numbered\n     from zero, left to right. */\n  public ExpressionNode exprGetChild(int i);\n\n  /** Return the number of children the node has. */\n  public int exprGetNumChildren();", "functions": [{"function_name": "exprSetParent", "code": "  public void exprSetParent(ExpressionNode n);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "exprGetParent", "code": "  public ExpressionNode exprGetParent();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "exprAddChild", "code": "  public void exprAddChild(ExpressionNode n, int i);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "exprGetChild", "code": "  public ExpressionNode exprGetChild(int i);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "exprGetNumChildren", "code": "  public int exprGetNumChildren();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ivy-2.0-3336", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/repository/ssh/Scp.java", "language": "java", "name": "org.apache.ivy.plugins.repository.ssh.Scp", "code": "public class Scp {\n    private static final int MODE_LENGTH = 4;\n\n    private static final int SEND_FILE_BUFFER_LENGTH = 40000;\n\n    private static final int SEND_BYTES_BUFFER_LENGTH = 512;\n\n    private static final int MIN_TLINE_LENGTH = 8;\n\n    private static final int CLINE_SPACE_INDEX2 = 5;\n\n    private static final int CLINE_SPACE_INDEX1 = 4;\n\n    private static final int MIN_C_LINE_LENGTH = 8;\n\n    private static final int DEFAULT_LINE_BUFFER_LENGTH = 30;\n\n    private static final int BUFFER_SIZE = 64 * 1024;\n\n    /*\n     * Maximum length authorized for scp lines. \n     * This is a random limit - if your path names are longer, then adjust it.\n     */\n    private static final int MAX_SCP_LINE_LENGTH = 8192;\n    \n    private Session session;\n\n    public class FileInfo {\n        private String filename;\n\n        private long length;\n\n        private long lastModified;\n\n        /**\n         * @param filename\n         *            The filename to set.\n         */\n        public void setFilename(String filename) {\n            this.filename = filename;\n        }\n\n        /**\n         * @return Returns the filename.\n         */\n        public String getFilename() {\n            return filename;\n        }\n\n        /**\n         * @param length\n         *            The length to set.\n         */\n        public void setLength(long length) {\n            this.length = length;\n        }\n\n        /**\n         * @return Returns the length.\n         */\n        public long getLength() {\n            return length;\n        }\n\n        /**\n         * @param lastModified\n         *            The lastModified to set.\n         */\n        public void setLastModified(long lastModified) {\n            this.lastModified = lastModified;\n        }\n\n        /**\n         * @return Returns the lastModified.\n         */\n        public long getLastModified() {\n            return lastModified;\n        }\n    }\n\n    public Scp(Session session) {\n        if (session == null) {\n            throw new IllegalArgumentException(\"Cannot accept null argument!\");\n        }\n        this.session = session;\n    }\n\n    private void readResponse(InputStream is) throws IOException, RemoteScpException {\n        int c = is.read();\n\n        if (c == 0) {\n            return;\n        }\n\n        if (c == -1) {\n            throw new RemoteScpException(\"Remote scp terminated unexpectedly.\");\n        }\n\n        if ((c != 1) && (c != 2)) {\n            throw new RemoteScpException(\"Remote scp sent illegal error code.\");\n        }\n\n        if (c == 2) {\n            throw new RemoteScpException(\"Remote scp terminated with error.\");\n        }\n\n        String err = receiveLine(is);\n        throw new RemoteScpException(\"Remote scp terminated with error (\" + err + \").\");\n    }\n\n    private String receiveLine(InputStream is) throws IOException, RemoteScpException {\n        StringBuffer sb = new StringBuffer(DEFAULT_LINE_BUFFER_LENGTH);\n\n        while (true) {\n\n            if (sb.length() > MAX_SCP_LINE_LENGTH) {\n                throw new RemoteScpException(\"Remote scp sent a too long line\");\n            }\n\n            int c = is.read();\n\n            if (c < 0) {\n                throw new RemoteScpException(\"Remote scp terminated unexpectedly.\");\n            }\n\n            if (c == '\\n') {\n                break;\n            }\n\n            sb.append((char) c);\n\n        }\n        return sb.toString();\n    }\n\n    private void parseCLine(String line, FileInfo fileInfo) throws RemoteScpException {\n        /* Minimum line: \"xxxx y z\" ---> 8 chars */\n\n        long len;\n\n        if (line.length() < MIN_C_LINE_LENGTH) {\n            throw new RemoteScpException(\n                    \"Malformed C line sent by remote SCP binary, line too short.\");\n        }\n\n        if ((line.charAt(CLINE_SPACE_INDEX1) != ' ') \n                || (line.charAt(CLINE_SPACE_INDEX2) == ' ')) {\n            throw new RemoteScpException(\"Malformed C line sent by remote SCP binary.\");\n        }\n\n        int lengthNameSep = line.indexOf(' ', CLINE_SPACE_INDEX2);\n\n        if (lengthNameSep == -1) {\n            throw new RemoteScpException(\"Malformed C line sent by remote SCP binary.\");\n        }\n\n        String lengthSubstring = line.substring(CLINE_SPACE_INDEX2, lengthNameSep);\n        String nameSubstring = line.substring(lengthNameSep + 1);\n\n        if ((lengthSubstring.length() <= 0) || (nameSubstring.length() <= 0)) {\n            throw new RemoteScpException(\"Malformed C line sent by remote SCP binary.\");\n        }\n\n        if ((CLINE_SPACE_INDEX2 + 1 + lengthSubstring.length() + nameSubstring.length()) \n                != line.length()) {\n            throw new RemoteScpException(\"Malformed C line sent by remote SCP binary.\");\n        }\n\n        try {\n            len = Long.parseLong(lengthSubstring);\n        } catch (NumberFormatException e) {\n            throw new RemoteScpException(\n                    \"Malformed C line sent by remote SCP binary, cannot parse file length.\");\n        }\n\n        if (len < 0) {\n            throw new RemoteScpException(\n                    \"Malformed C line sent by remote SCP binary, illegal file length.\");\n        }\n\n        fileInfo.setLength(len);\n        fileInfo.setFilename(nameSubstring);\n    }\n\n    private void parseTLine(String line, FileInfo fileInfo) throws RemoteScpException {\n        /* Minimum line: \"0 0 0 0\" ---> 8 chars */\n\n        long modtime;\n        long firstMsec;\n        long atime;\n        long secondMsec;\n\n        if (line.length() < MIN_TLINE_LENGTH) {\n            throw new RemoteScpException(\n                    \"Malformed T line sent by remote SCP binary, line too short.\");\n        }\n\n        int firstMsecBegin = line.indexOf(\" \") + 1;\n        if (firstMsecBegin == 0 || firstMsecBegin >= line.length()) {\n            throw new RemoteScpException(\n                    \"Malformed T line sent by remote SCP binary, line not enough data.\");\n        }\n\n        int atimeBegin = line.indexOf(\" \", firstMsecBegin + 1) + 1;\n        if (atimeBegin == 0 || atimeBegin >= line.length()) {\n            throw new RemoteScpException(\n                    \"Malformed T line sent by remote SCP binary, line not enough data.\");\n        }\n\n        int secondMsecBegin = line.indexOf(\" \", atimeBegin + 1) + 1;\n        if (secondMsecBegin == 0 || secondMsecBegin >= line.length()) {\n            throw new RemoteScpException(\n                    \"Malformed T line sent by remote SCP binary, line not enough data.\");\n        }\n\n        try {\n            modtime = Long.parseLong(line.substring(0, firstMsecBegin - 1));\n            firstMsec = Long.parseLong(line.substring(firstMsecBegin, atimeBegin - 1));\n            atime = Long.parseLong(line.substring(atimeBegin, secondMsecBegin - 1));\n            secondMsec = Long.parseLong(line.substring(secondMsecBegin));\n        } catch (NumberFormatException e) {\n            throw new RemoteScpException(\n                    \"Malformed C line sent by remote SCP binary, cannot parse file length.\");\n        }\n\n        if (modtime < 0 || firstMsec < 0 || atime < 0 || secondMsec < 0) {\n            throw new RemoteScpException(\n                    \"Malformed C line sent by remote SCP binary, illegal file length.\");\n        }\n\n        fileInfo.setLastModified(modtime);\n    }\n\n    private void sendFile(Channel channel, String localFile, String remoteName, String mode)\n            throws IOException, RemoteScpException {\n        byte[] buffer = new byte[BUFFER_SIZE];\n\n        OutputStream os = new BufferedOutputStream(\n            channel.getOutputStream(), SEND_FILE_BUFFER_LENGTH);\n        InputStream is = new BufferedInputStream(\n            channel.getInputStream(), SEND_BYTES_BUFFER_LENGTH);\n\n        try {\n            if (channel.isConnected()) {\n                channel.start();\n            } else {\n                channel.connect();\n            }\n        } catch (JSchException e1) {\n            throw (IOException) new IOException(\"Channel connection problems\").initCause(e1);\n        }\n\n        readResponse(is);\n\n        File f = new File(localFile);\n        long remain = f.length();\n\n        String cMode = mode;\n        if (cMode == null) {\n            cMode = \"0600\";\n        }\n        String cline = \"C\" + cMode + \" \" + remain + \" \" + remoteName + \"\\n\";\n\n        os.write(cline.getBytes());\n        os.flush();\n\n        readResponse(is);\n\n        FileInputStream fis = null;\n\n        try {\n            fis = new FileInputStream(f);\n\n            while (remain > 0) {\n                int trans;\n                if (remain > buffer.length) {\n                    trans = buffer.length;\n                } else {\n                    trans = (int) remain;\n                }\n                if (fis.read(buffer, 0, trans) != trans) {\n                    throw new IOException(\"Cannot read enough from local file \" + localFile);\n                }\n\n                os.write(buffer, 0, trans);\n\n                remain -= trans;\n            }\n\n            fis.close();\n        } catch (IOException e) {\n            if (fis != null) {\n                fis.close();\n            }\n            throw (e);\n        }\n\n        os.write(0);\n        os.flush();\n\n        readResponse(is);\n\n        os.write(\"E\\n\".getBytes());\n        os.flush();\n    }\n\n    /**\n     * Receive a file via scp and store it in a stream\n     * \n     * @param channel\n     *            ssh channel to use\n     * @param file\n     *            to receive from remote\n     * @param target\n     *            to store file into (if null, get only file info)\n     * @return file information of the file we received\n     * @throws IOException\n     *             in case of network or protocol trouble\n     * @throws RemoteScpException\n     *             in case of problems on the target system (connection is fine)\n     */\n    private FileInfo receiveStream(Channel channel, String file, OutputStream targetStream)\n            throws IOException, RemoteScpException {\n        byte[] buffer = new byte[BUFFER_SIZE];\n\n        OutputStream os = channel.getOutputStream();\n        InputStream is = channel.getInputStream();\n        try {\n            if (channel.isConnected()) {\n                channel.start();\n            } else {\n                channel.connect();\n            }\n        } catch (JSchException e1) {\n            throw (IOException) new IOException(\"Channel connection problems\").initCause(e1);\n        }\n        os.write(0x0);\n        os.flush();\n\n        FileInfo fileInfo = new FileInfo();\n\n        while (true) {\n            int c = is.read();\n            if (c < 0) {\n                throw new RemoteScpException(\"Remote scp terminated unexpectedly.\");\n            }\n\n            String line = receiveLine(is);\n\n            if (c == 'T') {\n                parseTLine(line, fileInfo);\n                os.write(0x0);\n                os.flush();\n                continue;\n            }\n            if ((c == 1) || (c == 2)) {\n                throw new RemoteScpException(\"Remote SCP error: \" + line);\n            }\n\n            if (c == 'C') {\n                parseCLine(line, fileInfo);\n                break;\n            }\n            throw new RemoteScpException(\"Remote SCP error: \" + ((char) c) + line);\n        }\n        if (targetStream != null) {\n\n            os.write(0x0);\n            os.flush();\n\n            try {\n                long remain = fileInfo.getLength();\n\n                while (remain > 0) {\n                    int trans;\n                    if (remain > buffer.length) {\n                        trans = buffer.length;\n                    } else {\n                        trans = (int) remain;\n                    }\n\n                    int thisTimeReceived = is.read(buffer, 0, trans);\n\n                    if (thisTimeReceived < 0) {\n                        throw new IOException(\"Remote scp terminated connection unexpectedly\");\n                    }\n\n                    targetStream.write(buffer, 0, thisTimeReceived);\n\n                    remain -= thisTimeReceived;\n                }\n\n                targetStream.close();\n            } catch (IOException e) {\n                if (targetStream != null) {\n                    targetStream.close();\n                }\n                throw (e);\n            }\n\n            readResponse(is);\n\n            os.write(0x0);\n            os.flush();\n        }\n        return fileInfo;\n    }\n\n    /**\n     * @return\n     * @throws JSchException\n     */\n    private ChannelExec getExecChannel() throws JSchException {\n        ChannelExec channel;\n        channel = (ChannelExec) session.openChannel(\"exec\");\n        return channel;\n    }\n\n    /**\n     * Copy a local file to a remote site, uses the specified mode when creating the file on the\n     * remote side.\n     * \n     * @param localFile\n     *            Path and name of local file. Must be absolute.\n     * @param remoteTargetDir\n     *            Remote target directory where the file has to end up (optional)\n     * @param remoteTargetName\n     *            file name to use on the target system\n     * @param mode\n     *            a four digit string (e.g., 0644, see \"man chmod\", \"man open\")\n     * @throws IOException\n     *             in case of network problems\n     * @throws RemoteScpException\n     *             in case of problems on the target system (connection ok)\n     */\n    public void put(String localFile, String remoteTargetDir, String remoteTargetName, String mode)\n            throws IOException, RemoteScpException {\n        ChannelExec channel = null;\n\n        if ((localFile == null) || (remoteTargetName == null)) {\n            throw new IllegalArgumentException(\"Null argument.\");\n        }\n\n        if (mode != null) {\n            if (mode.length() != MODE_LENGTH) {\n                throw new IllegalArgumentException(\"Invalid mode.\");\n            }\n    \n            for (int i = 0; i < mode.length(); i++) {\n                if (!Character.isDigit(mode.charAt(i))) {\n                    throw new IllegalArgumentException(\"Invalid mode.\");\n                }\n            }\n        }\n        \n        String cmd = \"scp -t \";\n        if (mode != null) {\n            cmd = cmd + \"-p \";\n        }        \n        if (remoteTargetDir != null && remoteTargetDir.length() > 0) {\n            cmd = cmd + \"-d \" + remoteTargetDir;\n        }\n\n        try {\n            channel = getExecChannel();\n            channel.setCommand(cmd);\n            sendFile(channel, localFile, remoteTargetName, mode);\n            channel.disconnect();\n        } catch (JSchException e) {\n            if (channel != null) {\n                channel.disconnect();\n            }\n            throw (IOException) new IOException(\"Error during SCP transfer.\" + e.getMessage())\n                    .initCause(e);\n        }\n    }\n\n    /**\n     * Download a file from the remote server to a local file.\n     * \n     * @param remoteFile\n     *            Path and name of the remote file.\n     * @param localTarget\n     *            Local file where to store the data. Must be absolute.\n     * @throws IOException\n     *             in case of network problems\n     * @throws RemoteScpException\n     *             in case of problems on the target system (connection ok)\n     */\n    public void get(String remoteFile, String localTarget) throws IOException, RemoteScpException {\n        File f = new File(localTarget);\n        FileOutputStream fop = new FileOutputStream(f);\n        get(remoteFile, fop);\n    }\n\n    /**\n     * Download a file from the remote server into an OutputStream\n     * \n     * @param remoteFile\n     *            Path and name of the remote file.\n     * @param localTarget\n     *            OutputStream to store the data.\n     * @throws IOException\n     *             in case of network problems\n     * @throws RemoteScpException\n     *             in case of problems on the target system (connection ok)\n     */\n    public void get(String remoteFile, OutputStream localTarget) throws IOException,\n            RemoteScpException {\n        ChannelExec channel = null;\n\n        if ((remoteFile == null) || (localTarget == null)) {\n            throw new IllegalArgumentException(\"Null argument.\");\n        }\n\n        String cmd = \"scp -p -f \" + remoteFile;\n\n        try {\n            channel = getExecChannel();\n            channel.setCommand(cmd);\n            receiveStream(channel, remoteFile, localTarget);\n            channel.disconnect();\n        } catch (JSchException e) {\n            if (channel != null) {\n                channel.disconnect();\n            }\n            throw (IOException) new IOException(\"Error during SCP transfer.\" + e.getMessage())\n                    .initCause(e);\n        }\n    }\n\n    /**\n     * Initiates an SCP sequence but stops after getting fileinformation header\n     * \n     * @param remoteFile\n     *            to get information for\n     * @return the file information got\n     * @throws IOException\n     *             in case of network problems\n     * @throws RemoteScpException\n     *             in case of problems on the target system (connection ok)\n     */\n    public FileInfo getFileinfo(String remoteFile) throws IOException, RemoteScpException {\n        ChannelExec channel = null;\n        FileInfo fileInfo = null;\n\n        if (remoteFile == null) {\n            throw new IllegalArgumentException(\"Null argument.\");\n        }\n\n        String cmd = \"scp -p -f \\\"\" + remoteFile + \"\\\"\";\n\n        try {\n            channel = getExecChannel();\n            channel.setCommand(cmd);\n            fileInfo = receiveStream(channel, remoteFile, null);\n            channel.disconnect();\n        } catch (JSchException e) {\n            throw (IOException) new IOException(\"Error during SCP transfer.\" + e.getMessage())\n                    .initCause(e);\n        } finally {\n            if (channel != null) {\n                channel.disconnect();\n            }\n        }\n        return fileInfo;", "functions": [{"function_name": "readResponse", "code": "    private void readResponse(InputStream is) throws IOException, RemoteScpException {\n        int c = is.read();\n\n        if (c == 0) {\n            return;\n        }\n\n        if (c == -1) {\n            throw new RemoteScpException(\"Remote scp terminated unexpectedly.\");\n        }\n\n        if ((c != 1) && (c != 2)) {\n            throw new RemoteScpException(\"Remote scp sent illegal error code.\");\n        }\n\n        if (c == 2) {\n            throw new RemoteScpException(\"Remote scp terminated with error.\");\n        }\n\n        String err = receiveLine(is);\n        throw new RemoteScpException(\"Remote scp terminated with error (\" + err + \").\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [5, 12], [6, 13], [9, 14], [2, 15], [3, 16], [10, 17], [4, 18], [11, 19], [11, 20], [5, 21], [12, 22], [6, 23], [13, 24], [7, 25], [14, 26], [14, 27], [16, 28], [18, 29], [19, 30], [20, 31], [21, 32], [27, 33], [28, 34], [29, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 5], [13, 6], [14, 9], [15, 2], [16, 3], [17, 10], [18, 4], [19, 11], [20, 11], [21, 5], [22, 12], [23, 6], [24, 13], [25, 7], [26, 14], [27, 14], [28, 16], [29, 18], [30, 19], [31, 20], [32, 21], [33, 27], [34, 28], [35, 29], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "receiveLine", "code": "    private String receiveLine(InputStream is) throws IOException, RemoteScpException {\n        StringBuffer sb = new StringBuffer(DEFAULT_LINE_BUFFER_LENGTH);\n\n        while (true) {\n\n            if (sb.length() > MAX_SCP_LINE_LENGTH) {\n                throw new RemoteScpException(\"Remote scp sent a too long line\");\n            }\n\n            int c = is.read();\n\n            if (c < 0) {\n                throw new RemoteScpException(\"Remote scp terminated unexpectedly.\");\n            }\n\n            if (c == '\\n') {\n                break;\n            }\n\n            sb.append((char) c);\n\n        }\n        return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [3, 11], [2, 12], [7, 13], [8, 14], [10, 15], [7, 16], [13, 17], [8, 18], [14, 19], [9, 20], [10, 21], [15, 22], [18, 23], [21, 24], [23, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 3], [12, 2], [13, 7], [14, 8], [15, 10], [16, 7], [17, 13], [18, 8], [19, 14], [20, 9], [21, 10], [22, 15], [23, 18], [24, 21], [25, 23], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "parseCLine", "code": "    private void parseCLine(String line, FileInfo fileInfo) throws RemoteScpException {\n        /* Minimum line: \"xxxx y z\" ---> 8 chars */\n\n        long len;\n\n        if (line.length() < MIN_C_LINE_LENGTH) {\n            throw new RemoteScpException(\n                    \"Malformed C line sent by remote SCP binary, line too short.\");\n        }\n\n        if ((line.charAt(CLINE_SPACE_INDEX1) != ' ') \n                || (line.charAt(CLINE_SPACE_INDEX2) == ' ')) {\n            throw new RemoteScpException(\"Malformed C line sent by remote SCP binary.\");\n        }\n\n        int lengthNameSep = line.indexOf(' ', CLINE_SPACE_INDEX2);\n\n        if (lengthNameSep == -1) {\n            throw new RemoteScpException(\"Malformed C line sent by remote SCP binary.\");\n        }\n\n        String lengthSubstring = line.substring(CLINE_SPACE_INDEX2, lengthNameSep);\n        String nameSubstring = line.substring(lengthNameSep + 1);\n\n        if ((lengthSubstring.length() <= 0) || (nameSubstring.length() <= 0)) {\n            throw new RemoteScpException(\"Malformed C line sent by remote SCP binary.\");\n        }\n\n        if ((CLINE_SPACE_INDEX2 + 1 + lengthSubstring.length() + nameSubstring.length()) \n                != line.length()) {\n            throw new RemoteScpException(\"Malformed C line sent by remote SCP binary.\");\n        }\n\n        try {\n            len = Long.parseLong(lengthSubstring);\n        } catch (NumberFormatException e) {\n            throw new RemoteScpException(\n                    \"Malformed C line sent by remote SCP binary, cannot parse file length.\");\n        }\n\n        if (len < 0) {\n            throw new RemoteScpException(\n                    \"Malformed C line sent by remote SCP binary, illegal file length.\");\n        }\n\n        fileInfo.setLength(len);\n        fileInfo.setFilename(nameSubstring);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CATCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [3, 18], [4, 19], [7, 20], [9, 21], [10, 22], [1, 23], [16, 24], [17, 25], [2, 26], [3, 27], [18, 28], [18, 29], [4, 30], [19, 31], [19, 32], [5, 33], [6, 34], [7, 35], [20, 36], [8, 37], [9, 38], [21, 39], [21, 40], [10, 41], [22, 42], [23, 43], [25, 44], [26, 45], [27, 46], [29, 47], [29, 48], [30, 49], [31, 50], [31, 51], [32, 52], [32, 53], [33, 54], [35, 55], [37, 56], [38, 57], [39, 58], [39, 59], [40, 60], [40, 61], [41, 62], [43, 63], [44, 64], [46, 65], [48, 66], [48, 67], [49, 68], [54, 69], [55, 70], [57, 71], [62, 72], [67, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 3], [19, 4], [20, 7], [21, 9], [22, 10], [23, 1], [24, 16], [25, 17], [26, 2], [27, 3], [28, 18], [29, 18], [30, 4], [31, 19], [32, 19], [33, 5], [34, 6], [35, 7], [36, 20], [37, 8], [38, 9], [39, 21], [40, 21], [41, 10], [42, 22], [43, 23], [44, 25], [45, 26], [46, 27], [47, 29], [48, 29], [49, 30], [50, 31], [51, 31], [52, 32], [53, 32], [54, 33], [55, 35], [56, 37], [57, 38], [58, 39], [59, 39], [60, 40], [61, 40], [62, 41], [63, 43], [64, 44], [65, 46], [66, 48], [67, 48], [68, 49], [69, 54], [70, 55], [71, 57], [72, 62], [73, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "parseTLine", "code": "    private void parseTLine(String line, FileInfo fileInfo) throws RemoteScpException {\n        /* Minimum line: \"0 0 0 0\" ---> 8 chars */\n\n        long modtime;\n        long firstMsec;\n        long atime;\n        long secondMsec;\n\n        if (line.length() < MIN_TLINE_LENGTH) {\n            throw new RemoteScpException(\n                    \"Malformed T line sent by remote SCP binary, line too short.\");\n        }\n\n        int firstMsecBegin = line.indexOf(\" \") + 1;\n        if (firstMsecBegin == 0 || firstMsecBegin >= line.length()) {\n            throw new RemoteScpException(\n                    \"Malformed T line sent by remote SCP binary, line not enough data.\");\n        }\n\n        int atimeBegin = line.indexOf(\" \", firstMsecBegin + 1) + 1;\n        if (atimeBegin == 0 || atimeBegin >= line.length()) {\n            throw new RemoteScpException(\n                    \"Malformed T line sent by remote SCP binary, line not enough data.\");\n        }\n\n        int secondMsecBegin = line.indexOf(\" \", atimeBegin + 1) + 1;\n        if (secondMsecBegin == 0 || secondMsecBegin >= line.length()) {\n            throw new RemoteScpException(\n                    \"Malformed T line sent by remote SCP binary, line not enough data.\");\n        }\n\n        try {\n            modtime = Long.parseLong(line.substring(0, firstMsecBegin - 1));\n            firstMsec = Long.parseLong(line.substring(firstMsecBegin, atimeBegin - 1));\n            atime = Long.parseLong(line.substring(atimeBegin, secondMsecBegin - 1));\n            secondMsec = Long.parseLong(line.substring(secondMsecBegin));\n        } catch (NumberFormatException e) {\n            throw new RemoteScpException(\n                    \"Malformed C line sent by remote SCP binary, cannot parse file length.\");\n        }\n\n        if (modtime < 0 || firstMsec < 0 || atime < 0 || secondMsec < 0) {\n            throw new RemoteScpException(\n                    \"Malformed C line sent by remote SCP binary, illegal file length.\");\n        }\n\n        fileInfo.setLastModified(modtime);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CATCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [2, 18], [3, 19], [5, 20], [7, 21], [9, 22], [1, 23], [17, 24], [17, 25], [18, 26], [2, 27], [2, 28], [2, 29], [2, 30], [3, 31], [19, 32], [19, 33], [4, 34], [5, 35], [20, 36], [20, 37], [6, 38], [7, 39], [21, 40], [21, 41], [8, 42], [9, 43], [22, 44], [23, 45], [24, 46], [25, 47], [25, 48], [26, 49], [27, 50], [28, 51], [29, 52], [30, 53], [31, 54], [32, 55], [33, 56], [34, 57], [34, 58], [35, 59], [36, 60], [37, 61], [38, 62], [38, 63], [39, 64], [40, 65], [41, 66], [42, 67], [42, 68], [43, 69], [45, 70], [47, 71], [48, 72], [48, 73], [49, 74], [50, 75], [51, 76], [52, 77], [53, 78], [54, 79], [58, 80], [58, 81], [59, 82], [63, 83], [63, 84], [64, 85], [68, 86], [69, 87], [72, 88], [73, 89], [76, 90], [77, 91], [78, 92], [78, 93], [80, 94], [83, 95], [90, 96], [91, 97], [92, 98], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 2], [19, 3], [20, 5], [21, 7], [22, 9], [23, 1], [24, 17], [25, 17], [26, 18], [27, 2], [28, 2], [29, 2], [30, 2], [31, 3], [32, 19], [33, 19], [34, 4], [35, 5], [36, 20], [37, 20], [38, 6], [39, 7], [40, 21], [41, 21], [42, 8], [43, 9], [44, 22], [45, 23], [46, 24], [47, 25], [48, 25], [49, 26], [50, 27], [51, 28], [52, 29], [53, 30], [54, 31], [55, 32], [56, 33], [57, 34], [58, 34], [59, 35], [60, 36], [61, 37], [62, 38], [63, 38], [64, 39], [65, 40], [66, 41], [67, 42], [68, 42], [69, 43], [70, 45], [71, 47], [72, 48], [73, 48], [74, 49], [75, 50], [76, 51], [77, 52], [78, 53], [79, 54], [80, 58], [81, 58], [82, 59], [83, 63], [84, 63], [85, 64], [86, 68], [87, 69], [88, 72], [89, 73], [90, 76], [91, 77], [92, 78], [93, 78], [94, 80], [95, 83], [96, 90], [97, 91], [98, 92], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98]]}, {"function_name": "sendFile", "code": "    private void sendFile(Channel channel, String localFile, String remoteName, String mode)\n            throws IOException, RemoteScpException {\n        byte[] buffer = new byte[BUFFER_SIZE];\n\n        OutputStream os = new BufferedOutputStream(\n            channel.getOutputStream(), SEND_FILE_BUFFER_LENGTH);\n        InputStream is = new BufferedInputStream(\n            channel.getInputStream(), SEND_BYTES_BUFFER_LENGTH);\n\n        try {\n            if (channel.isConnected()) {\n                channel.start();\n            } else {\n                channel.connect();\n            }\n        } catch (JSchException e1) {\n            throw (IOException) new IOException(\"Channel connection problems\").initCause(e1);\n        }\n\n        readResponse(is);\n\n        File f = new File(localFile);\n        long remain = f.length();\n\n        String cMode = mode;\n        if (cMode == null) {\n            cMode = \"0600\";\n        }\n        String cline = \"C\" + cMode + \" \" + remain + \" \" + remoteName + \"\\n\";\n\n        os.write(cline.getBytes());\n        os.flush();\n\n        readResponse(is);\n\n        FileInputStream fis = null;\n\n        try {\n            fis = new FileInputStream(f);\n\n            while (remain > 0) {\n                int trans;\n                if (remain > buffer.length) {\n                    trans = buffer.length;\n                } else {\n                    trans = (int) remain;\n                }\n                if (fis.read(buffer, 0, trans) != trans) {\n                    throw new IOException(\"Cannot read enough from local file \" + localFile);\n                }\n\n                os.write(buffer, 0, trans);\n\n                remain -= trans;\n            }\n\n            fis.close();\n        } catch (IOException e) {\n            if (fis != null) {\n                fis.close();\n            }\n            throw (e);\n        }\n\n        os.write(0);\n        os.flush();\n\n        readResponse(is);\n\n        os.write(\"E\\n\".getBytes());\n        os.flush();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "LOOP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CATCH", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "IF", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [1, 22], [0, 23], [0, 24], [0, 25], [4, 26], [0, 27], [8, 28], [8, 29], [17, 30], [20, 31], [21, 32], [21, 33], [1, 34], [22, 35], [1, 36], [2, 37], [25, 38], [3, 39], [26, 40], [6, 41], [7, 42], [28, 43], [29, 44], [9, 45], [10, 46], [30, 47], [33, 48], [22, 49], [22, 50], [22, 51], [35, 52], [36, 53], [39, 54], [39, 55], [4, 56], [45, 57], [46, 58], [48, 59], [22, 60], [22, 61], [49, 62], [50, 63], [55, 64], [56, 65], [43, 66], [29, 67], [29, 68], [33, 69], [61, 70], [49, 71], [62, 72], [64, 73], [64, 74], [66, 75], [66, 76], [71, 77], [72, 78], [50, 79], [50, 80], [74, 81], [77, 82], [81, 83], [81, 84], [82, 85], [84, 86], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 1], [23, 0], [24, 0], [25, 0], [26, 4], [27, 0], [28, 8], [29, 8], [30, 17], [31, 20], [32, 21], [33, 21], [34, 1], [35, 22], [36, 1], [37, 2], [38, 25], [39, 3], [40, 26], [41, 6], [42, 7], [43, 28], [44, 29], [45, 9], [46, 10], [47, 30], [48, 33], [49, 22], [50, 22], [51, 22], [52, 35], [53, 36], [54, 39], [55, 39], [56, 4], [57, 45], [58, 46], [59, 48], [60, 22], [61, 22], [62, 49], [63, 50], [64, 55], [65, 56], [66, 43], [67, 29], [68, 29], [69, 33], [70, 61], [71, 49], [72, 62], [73, 64], [74, 64], [75, 66], [76, 66], [77, 71], [78, 72], [79, 50], [80, 50], [81, 74], [82, 77], [83, 81], [84, 81], [85, 82], [86, 84], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "receiveStream", "code": "    private FileInfo receiveStream(Channel channel, String file, OutputStream targetStream)\n            throws IOException, RemoteScpException {\n        byte[] buffer = new byte[BUFFER_SIZE];\n\n        OutputStream os = channel.getOutputStream();\n        InputStream is = channel.getInputStream();\n        try {\n            if (channel.isConnected()) {\n                channel.start();\n            } else {\n                channel.connect();\n            }\n        } catch (JSchException e1) {\n            throw (IOException) new IOException(\"Channel connection problems\").initCause(e1);\n        }\n        os.write(0x0);\n        os.flush();\n\n        FileInfo fileInfo = new FileInfo();\n\n        while (true) {\n            int c = is.read();\n            if (c < 0) {\n                throw new RemoteScpException(\"Remote scp terminated unexpectedly.\");\n            }\n\n            String line = receiveLine(is);\n\n            if (c == 'T') {\n                parseTLine(line, fileInfo);\n                os.write(0x0);\n                os.flush();\n                continue;\n            }\n            if ((c == 1) || (c == 2)) {\n                throw new RemoteScpException(\"Remote SCP error: \" + line);\n            }\n\n            if (c == 'C') {\n                parseCLine(line, fileInfo);\n                break;\n            }\n            throw new RemoteScpException(\"Remote SCP error: \" + ((char) c) + line);\n        }\n        if (targetStream != null) {\n\n            os.write(0x0);\n            os.flush();\n\n            try {\n                long remain = fileInfo.getLength();\n\n                while (remain > 0) {\n                    int trans;\n                    if (remain > buffer.length) {\n                        trans = buffer.length;\n                    } else {\n                        trans = (int) remain;\n                    }\n\n                    int thisTimeReceived = is.read(buffer, 0, trans);\n\n                    if (thisTimeReceived < 0) {\n                        throw new IOException(\"Remote scp terminated connection unexpectedly\");\n                    }\n\n                    targetStream.write(buffer, 0, thisTimeReceived);\n\n                    remain -= thisTimeReceived;\n                }\n\n                targetStream.close();\n            } catch (IOException e) {\n                if (targetStream != null) {\n                    targetStream.close();\n                }\n                throw (e);\n            }\n\n            readResponse(is);\n\n            os.write(0x0);\n            os.flush();\n        }\n        return fileInfo;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "IF", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [0, 14], [0, 15], [5, 16], [5, 17], [2, 18], [12, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [4, 27], [15, 28], [16, 29], [17, 30], [6, 31], [7, 32], [2, 33], [2, 34], [2, 35], [18, 36], [18, 37], [18, 38], [2, 39], [2, 40], [20, 41], [21, 42], [22, 43], [23, 44], [25, 45], [34, 46], [36, 47], [36, 48], [18, 49], [37, 50], [40, 51], [41, 52], [21, 53], [42, 54], [22, 55], [43, 56], [43, 57], [23, 58], [44, 59], [24, 60], [25, 61], [45, 62], [26, 63], [29, 64], [17, 65], [17, 66], [48, 67], [37, 68], [37, 69], [37, 70], [37, 71], [50, 72], [38, 73], [52, 74], [21, 75], [55, 76], [56, 77], [57, 78], [23, 79], [23, 80], [23, 81], [61, 82], [64, 83], [64, 84], [67, 85], [37, 86], [37, 87], [68, 88], [70, 89], [74, 90], [76, 91], [80, 92], [82, 93], [48, 94], [87, 95], [68, 96], [88, 97], [69, 98], [91, 99], [96, 100], [98, 101], [70, 102], [70, 103], [100, 104], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 0], [15, 0], [16, 5], [17, 5], [18, 2], [19, 12], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 3], [27, 4], [28, 15], [29, 16], [30, 17], [31, 6], [32, 7], [33, 2], [34, 2], [35, 2], [36, 18], [37, 18], [38, 18], [39, 2], [40, 2], [41, 20], [42, 21], [43, 22], [44, 23], [45, 25], [46, 34], [47, 36], [48, 36], [49, 18], [50, 37], [51, 40], [52, 41], [53, 21], [54, 42], [55, 22], [56, 43], [57, 43], [58, 23], [59, 44], [60, 24], [61, 25], [62, 45], [63, 26], [64, 29], [65, 17], [66, 17], [67, 48], [68, 37], [69, 37], [70, 37], [71, 37], [72, 50], [73, 38], [74, 52], [75, 21], [76, 55], [77, 56], [78, 57], [79, 23], [80, 23], [81, 23], [82, 61], [83, 64], [84, 64], [85, 67], [86, 37], [87, 37], [88, 68], [89, 70], [90, 74], [91, 76], [92, 80], [93, 82], [94, 48], [95, 87], [96, 68], [97, 88], [98, 69], [99, 91], [100, 96], [101, 98], [102, 70], [103, 70], [104, 100], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104]]}, {"function_name": "getExecChannel", "code": "    private ChannelExec getExecChannel() throws JSchException {\n        ChannelExec channel;\n        channel = (ChannelExec) session.openChannel(\"exec\");\n        return channel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "put", "code": "    public void put(String localFile, String remoteTargetDir, String remoteTargetName, String mode)\n            throws IOException, RemoteScpException {\n        ChannelExec channel = null;\n\n        if ((localFile == null) || (remoteTargetName == null)) {\n            throw new IllegalArgumentException(\"Null argument.\");\n        }\n\n        if (mode != null) {\n            if (mode.length() != MODE_LENGTH) {\n                throw new IllegalArgumentException(\"Invalid mode.\");\n            }\n    \n            for (int i = 0; i < mode.length(); i++) {\n                if (!Character.isDigit(mode.charAt(i))) {\n                    throw new IllegalArgumentException(\"Invalid mode.\");\n                }\n            }\n        }\n        \n        String cmd = \"scp -t \";\n        if (mode != null) {\n            cmd = cmd + \"-p \";\n        }        \n        if (remoteTargetDir != null && remoteTargetDir.length() > 0) {\n            cmd = cmd + \"-d \" + remoteTargetDir;\n        }\n\n        try {\n            channel = getExecChannel();\n            channel.setCommand(cmd);\n            sendFile(channel, localFile, remoteTargetName, mode);\n            channel.disconnect();\n        } catch (JSchException e) {\n            if (channel != null) {\n                channel.disconnect();\n            }\n            throw (IOException) new IOException(\"Error during SCP transfer.\" + e.getMessage())\n                    .initCause(e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [3, 14], [5, 15], [6, 16], [12, 17], [12, 18], [1, 19], [1, 20], [1, 21], [1, 22], [13, 23], [13, 24], [14, 25], [4, 26], [5, 27], [5, 28], [15, 29], [6, 30], [16, 31], [16, 32], [7, 33], [18, 34], [22, 35], [2, 36], [23, 37], [23, 38], [24, 39], [3, 40], [27, 41], [28, 42], [30, 43], [31, 44], [32, 45], [17, 46], [34, 47], [36, 48], [40, 49], [27, 50], [41, 51], [28, 52], [42, 53], [43, 54], [46, 55], [46, 56], [18, 57], [48, 58], [49, 59], [50, 60], [27, 61], [52, 62], [55, 63], [55, 64], [58, 65], [50, 66], [60, 67], [62, 68], [66, 69], [69, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 3], [15, 5], [16, 6], [17, 12], [18, 12], [19, 1], [20, 1], [21, 1], [22, 1], [23, 13], [24, 13], [25, 14], [26, 4], [27, 5], [28, 5], [29, 15], [30, 6], [31, 16], [32, 16], [33, 7], [34, 18], [35, 22], [36, 2], [37, 23], [38, 23], [39, 24], [40, 3], [41, 27], [42, 28], [43, 30], [44, 31], [45, 32], [46, 17], [47, 34], [48, 36], [49, 40], [50, 27], [51, 41], [52, 28], [53, 42], [54, 43], [55, 46], [56, 46], [57, 18], [58, 48], [59, 49], [60, 50], [61, 27], [62, 52], [63, 55], [64, 55], [65, 58], [66, 50], [67, 60], [68, 62], [69, 66], [70, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "get", "code": "    public void get(String remoteFile, String localTarget) throws IOException, RemoteScpException {\n        File f = new File(localTarget);\n        FileOutputStream fop = new FileOutputStream(f);\n        get(remoteFile, fop);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "get", "code": "    public void get(String remoteFile, OutputStream localTarget) throws IOException,\n            RemoteScpException {\n        ChannelExec channel = null;\n\n        if ((remoteFile == null) || (localTarget == null)) {\n            throw new IllegalArgumentException(\"Null argument.\");\n        }\n\n        String cmd = \"scp -p -f \" + remoteFile;\n\n        try {\n            channel = getExecChannel();\n            channel.setCommand(cmd);\n            receiveStream(channel, remoteFile, localTarget);\n            channel.disconnect();\n        } catch (JSchException e) {\n            if (channel != null) {\n                channel.disconnect();\n            }\n            throw (IOException) new IOException(\"Error during SCP transfer.\" + e.getMessage())\n                    .initCause(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CATCH", "BINARY_OP", "THROW_RAISE", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [7, 9], [7, 10], [1, 11], [1, 12], [1, 13], [1, 14], [2, 15], [3, 16], [8, 17], [8, 18], [4, 19], [10, 20], [14, 21], [15, 22], [16, 23], [17, 24], [18, 25], [9, 26], [20, 27], [23, 28], [26, 29], [26, 30], [10, 31], [29, 32], [29, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 7], [10, 7], [11, 1], [12, 1], [13, 1], [14, 1], [15, 2], [16, 3], [17, 8], [18, 8], [19, 4], [20, 10], [21, 14], [22, 15], [23, 16], [24, 17], [25, 18], [26, 9], [27, 20], [28, 23], [29, 26], [30, 26], [31, 10], [32, 29], [33, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getFileinfo", "code": "    public FileInfo getFileinfo(String remoteFile) throws IOException, RemoteScpException {\n        ChannelExec channel = null;\n        FileInfo fileInfo = null;\n\n        if (remoteFile == null) {\n            throw new IllegalArgumentException(\"Null argument.\");\n        }\n\n        String cmd = \"scp -p -f \\\"\" + remoteFile + \"\\\"\";\n\n        try {\n            channel = getExecChannel();\n            channel.setCommand(cmd);\n            fileInfo = receiveStream(channel, remoteFile, null);\n            channel.disconnect();\n        } catch (JSchException e) {\n            throw (IOException) new IOException(\"Error during SCP transfer.\" + e.getMessage())\n                    .initCause(e);\n        } finally {\n            if (channel != null) {\n                channel.disconnect();\n            }\n        }\n        return fileInfo;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CATCH", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [4, 10], [8, 11], [9, 12], [2, 13], [2, 14], [2, 15], [2, 16], [3, 17], [4, 18], [10, 19], [5, 20], [6, 21], [11, 22], [14, 23], [16, 24], [17, 25], [17, 26], [18, 27], [8, 28], [12, 29], [23, 30], [26, 31], [27, 32], [29, 33], [29, 34], [33, 35], [33, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 4], [11, 8], [12, 9], [13, 2], [14, 2], [15, 2], [16, 2], [17, 3], [18, 4], [19, 10], [20, 5], [21, 6], [22, 11], [23, 14], [24, 16], [25, 17], [26, 17], [27, 18], [28, 8], [29, 12], [30, 23], [31, 26], [32, 27], [33, 29], [34, 29], [35, 33], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "Scp", "code": "    public Scp(Session session) {\n        if (session == null) {\n            throw new IllegalArgumentException(\"Cannot accept null argument!\");\n        }\n        this.session = session;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ant-1.6-607", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/email/Message.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.email.Message", "code": "public class Message extends ProjectComponent {\n    private File messageSource = null;\n    private StringBuffer buffer = new StringBuffer();\n    private String mimeType = \"text/plain\";\n    private boolean specified = false;\n    private String charset = null;\n\n    /** Creates a new empty message  */\n    public Message() {\n    }\n\n\n    /**\n     * Creates a new message based on the given string\n     *\n     * @param text the message\n     */\n    public Message(String text) {\n        addText(text);\n    }\n\n\n    /**\n     * Creates a new message using the contents of the given file.\n     *\n     * @param file the source of the message\n     */\n    public Message(File file) {\n        messageSource = file;\n    }\n\n\n    /**\n     * Adds a textual part of the message\n     *\n     * @param text some text to add\n     */\n    public void addText(String text) {\n        buffer.append(text);\n    }\n\n\n    /**\n     * Sets the source file of the message\n     *\n     * @param src the source of the message\n     */\n    public void setSrc(File src) {\n        this.messageSource = src;\n    }\n\n\n    /**\n     * Sets the content type for the message\n     *\n     * @param mimeType a mime type e.g. \"text/plain\"\n     */\n    public void setMimeType(String mimeType) {\n        this.mimeType = mimeType;\n        specified = true;\n    }\n\n\n    /**\n     * Returns the content type\n     *\n     * @return the mime type\n     */\n    public String getMimeType() {\n        return mimeType;\n    }\n\n\n    /**\n     * Prints the message onto an output stream\n     *\n     * @param ps The print stream to write to\n     * @throws IOException if an error occurs\n     */\n    public void print(PrintStream ps)\n         throws IOException {\n        PrintWriter out\n            = charset != null ? new PrintWriter(new OutputStreamWriter(ps, charset))\n                              : new PrintWriter(ps);\n        if (messageSource != null) {\n            FileReader freader = new FileReader(messageSource);\n\n            try {\n                BufferedReader in = new BufferedReader(freader);\n                String line = null;\n                while ((line = in.readLine()) != null) {\n                    out.println(getProject().replaceProperties(line));\n                }\n            } finally {\n                freader.close();\n            }\n        } else {\n            out.println(getProject().replaceProperties(buffer.substring(0)));\n        }\n        out.flush();\n    }\n\n\n    /**\n     * Returns true if the mimeType has been set.\n     *\n     * @return false if the default value is in use\n     */\n    public boolean isMimeTypeSpecified() {\n        return specified;\n    }\n    /**\n     * Sets the character set of mail message.\n     * Will be ignored if mimeType contains ....; Charset=... substring.\n     * @since Ant 1.6\n     */\n    public void setCharset(String charset) {\n      this.charset = charset;\n    }\n    /**\n     * Returns the charset of mail message.\n     *\n     * @return Charset of mail message.\n     * @since Ant 1.6\n     */\n    public String getCharset() {\n      return charset;", "functions": [{"function_name": "addText", "code": "    public void addText(String text) {\n        buffer.append(text);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSrc", "code": "    public void setSrc(File src) {\n        this.messageSource = src;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMimeType", "code": "    public void setMimeType(String mimeType) {\n        this.mimeType = mimeType;\n        specified = true;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getMimeType", "code": "    public String getMimeType() {\n        return mimeType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "print", "code": "    public void print(PrintStream ps)\n         throws IOException {\n        PrintWriter out\n            = charset != null ? new PrintWriter(new OutputStreamWriter(ps, charset))\n                              : new PrintWriter(ps);\n        if (messageSource != null) {\n            FileReader freader = new FileReader(messageSource);\n\n            try {\n                BufferedReader in = new BufferedReader(freader);\n                String line = null;\n                while ((line = in.readLine()) != null) {\n                    out.println(getProject().replaceProperties(line));\n                }\n            } finally {\n                freader.close();\n            }\n        } else {\n            out.println(getProject().replaceProperties(buffer.substring(0)));\n        }\n        out.flush();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [1, 10], [6, 11], [6, 12], [6, 13], [9, 14], [9, 15], [9, 16], [10, 17], [6, 18], [11, 19], [7, 20], [15, 21], [16, 22], [17, 23], [19, 24], [19, 25], [12, 26], [13, 27], [23, 28], [11, 29], [25, 30], [28, 31], [29, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 1], [11, 6], [12, 6], [13, 6], [14, 9], [15, 9], [16, 9], [17, 10], [18, 6], [19, 11], [20, 7], [21, 15], [22, 16], [23, 17], [24, 19], [25, 19], [26, 12], [27, 13], [28, 23], [29, 11], [30, 25], [31, 28], [32, 29], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "isMimeTypeSpecified", "code": "    public boolean isMimeTypeSpecified() {\n        return specified;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCharset", "code": "    public void setCharset(String charset) {\n      this.charset = charset;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCharset", "code": "    public String getCharset() {\n      return charset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Message", "code": "    public Message() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Message", "code": "    public Message(String text) {\n        addText(text);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Message", "code": "    public Message(File file) {\n        messageSource = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7459", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/templates/ElemCopy.java", "language": "java", "name": "org.apache.xalan.templates.ElemCopy", "code": "public class ElemCopy extends ElemUse\n{\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID for this element \n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_COPY;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return This element's name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_COPY_STRING;\n  }\n\n  /**\n   * The xsl:copy element provides an easy way of copying the current node.\n   * Executing this function creates a copy of the current node into the\n   * result tree.\n   * <p>The namespace nodes of the current node are automatically\n   * copied as well, but the attributes and children of the node are not\n   * automatically copied. The content of the xsl:copy element is a\n   * template for the attributes and children of the created node;\n   * the content is instantiated only for nodes of types that can have\n   * attributes or children (i.e. root nodes and element nodes).</p>\n   * <p>The root node is treated specially because the root node of the\n   * result tree is created implicitly. When the current node is the\n   * root node, xsl:copy will not create a root node, but will just use\n   * the content template.</p>\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n                XPathContext xctxt = transformer.getXPathContext();\n      \n    try\n    {\n      int sourceNode = xctxt.getCurrentNode();\n      xctxt.pushCurrentNode(sourceNode);\n      DTM dtm = xctxt.getDTM(sourceNode);\n      short nodeType = dtm.getNodeType(sourceNode);\n\n      if ((DTM.DOCUMENT_NODE != nodeType) && (DTM.DOCUMENT_FRAGMENT_NODE != nodeType))\n      {\n        SerializationHandler rthandler = transformer.getSerializationHandler();\n\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEvent(this);\n            \n        ClonerToResultTree.cloneToResultTree(sourceNode, nodeType, dtm, \n                                             rthandler, false);\n\n        if (DTM.ELEMENT_NODE == nodeType)\n        {\n          super.execute(transformer);\n          SerializerUtils.processNSDecls(rthandler, sourceNode, nodeType, dtm);\n          transformer.executeChildTemplates(this, true);\n          \n          String ns = dtm.getNamespaceURI(sourceNode);\n          String localName = dtm.getLocalName(sourceNode);\n          transformer.getResultTreeHandler().endElement(ns, localName,\n                                                        dtm.getNodeName(sourceNode));\n        }\n        if (TransformerImpl.S_DEBUG)\n\t\t  transformer.getTraceManager().fireTraceEndEvent(this);         \n      }\n      else\n      {\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEvent(this);\n\n        super.execute(transformer);\n        transformer.executeChildTemplates(this, true);\n\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEndEvent(this);\n      }\n    }\n    catch(org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n    finally\n    {\n      xctxt.popCurrentNode();", "functions": [{"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_COPY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_COPY_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n                XPathContext xctxt = transformer.getXPathContext();\n      \n    try\n    {\n      int sourceNode = xctxt.getCurrentNode();\n      xctxt.pushCurrentNode(sourceNode);\n      DTM dtm = xctxt.getDTM(sourceNode);\n      short nodeType = dtm.getNodeType(sourceNode);\n\n      if ((DTM.DOCUMENT_NODE != nodeType) && (DTM.DOCUMENT_FRAGMENT_NODE != nodeType))\n      {\n        SerializationHandler rthandler = transformer.getSerializationHandler();\n\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEvent(this);\n            \n        ClonerToResultTree.cloneToResultTree(sourceNode, nodeType, dtm, \n                                             rthandler, false);\n\n        if (DTM.ELEMENT_NODE == nodeType)\n        {\n          super.execute(transformer);\n          SerializerUtils.processNSDecls(rthandler, sourceNode, nodeType, dtm);\n          transformer.executeChildTemplates(this, true);\n          \n          String ns = dtm.getNamespaceURI(sourceNode);\n          String localName = dtm.getLocalName(sourceNode);\n          transformer.getResultTreeHandler().endElement(ns, localName,\n                                                        dtm.getNodeName(sourceNode));\n        }\n        if (TransformerImpl.S_DEBUG)\n\t\t  transformer.getTraceManager().fireTraceEndEvent(this);         \n      }\n      else\n      {\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEvent(this);\n\n        super.execute(transformer);\n        transformer.executeChildTemplates(this, true);\n\n        if (TransformerImpl.S_DEBUG)\n          transformer.getTraceManager().fireTraceEndEvent(this);\n      }\n    }\n    catch(org.xml.sax.SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n    finally\n    {\n      xctxt.popCurrentNode();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [5, 11], [1, 12], [2, 13], [10, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [11, 21], [11, 22], [6, 23], [7, 24], [8, 25], [5, 26], [18, 27], [5, 28], [15, 29], [26, 30], [16, 31], [17, 32], [18, 33], [18, 34], [28, 35], [19, 36], [20, 37], [29, 38], [31, 39], [32, 40], [18, 41], [18, 42], [18, 43], [36, 44], [41, 45], [33, 46], [34, 47], [42, 48], [45, 49], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 5], [12, 1], [13, 2], [14, 10], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 11], [22, 11], [23, 6], [24, 7], [25, 8], [26, 5], [27, 18], [28, 5], [29, 15], [30, 26], [31, 16], [32, 17], [33, 18], [34, 18], [35, 28], [36, 19], [37, 20], [38, 29], [39, 31], [40, 32], [41, 18], [42, 18], [43, 18], [44, 36], [45, 41], [46, 33], [47, 34], [48, 42], [49, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}], "label": 1}
{"sample_id": "xalan-2.6-7684", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/NameBase.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.NameBase", "code": "class NameBase extends FunctionCall {\n\n    private Expression _param = null;\n    private Type       _paramType = Type.Node;\n\n    /**\n     * Handles calls with no parameter (current node is implicit parameter).\n     */\n    public NameBase(QName fname) {\n\tsuper(fname);\n    }\n\n    /**\n     * Handles calls with one parameter (either node or node-set).\n     */\n    public NameBase(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n\t_param = argument(0);\n    }\n\n\n    /**\n     * Check that we either have no parameters or one parameter that is\n     * either a node or a node-set.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\n\tswitch(argumentCount()) {\n\tcase 0:\n\t    _paramType = Type.Node;\n\t    break;\n\tcase 1:\n\t    _paramType = _param.typeCheck(stable);\n\t    break;\n\tdefault:\n\t    throw new TypeCheckError(this);\n\t}\n\n\tif ((_paramType != Type.NodeSet) &&\n\t    (_paramType != Type.Node) &&\n\t    (_paramType != Type.Reference)) {\n\t    throw new TypeCheckError(this);\n\t}\n\n\treturn (_type = Type.String);\n    }\n\n    public Type getType() {\n\treturn _type;\n    }\n\n    /**\n     * Translate the code required for getting the node for which the\n     * QName, local-name or namespace URI should be extracted.\n     */\n    public void translate(ClassGenerator classGen,\n\t\t\t  MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadDOM());\n\t\n\tif (argumentCount() == 0) {\n\t    il.append(methodGen.loadContextNode());\n\t}\n\telse if (_paramType == Type.Node) {\n\t    _param.translate(classGen, methodGen);\n\t}\n\telse if (_paramType == Type.Reference) {\n\t    _param.translate(classGen, methodGen);\n\t    il.append(new INVOKESTATIC(cpg.addMethodref\n\t\t\t\t       (BASIS_LIBRARY_CLASS,\n\t\t\t\t\t\"referenceToNodeSet\",\n\t\t\t\t\t\"(\"\n\t\t\t\t\t+ OBJECT_SIG\n\t\t\t\t\t+ \")\"\n\t\t\t\t\t+ NODE_ITERATOR_SIG)));\n\t    il.append(methodGen.nextNode());\n\t}\n\telse {\n\t    _param.translate(classGen, methodGen);\n\t    _param.startIterator(classGen, methodGen);\n\t    il.append(methodGen.nextNode());", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\n\tswitch(argumentCount()) {\n\tcase 0:\n\t    _paramType = Type.Node;\n\t    break;\n\tcase 1:\n\t    _paramType = _param.typeCheck(stable);\n\t    break;\n\tdefault:\n\t    throw new TypeCheckError(this);\n\t}\n\n\tif ((_paramType != Type.NodeSet) &&\n\t    (_paramType != Type.Node) &&\n\t    (_paramType != Type.Reference)) {\n\t    throw new TypeCheckError(this);\n\t}\n\n\treturn (_type = Type.String);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "SWITCH", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [2, 8], [6, 9], [6, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [8, 16], [10, 17], [10, 18], [11, 19], [3, 20], [3, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 2], [9, 6], [10, 6], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 8], [17, 10], [18, 10], [19, 11], [20, 3], [21, 3], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getType", "code": "    public Type getType() {\n\treturn _type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen,\n\t\t\t  MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadDOM());\n\t\n\tif (argumentCount() == 0) {\n\t    il.append(methodGen.loadContextNode());\n\t}\n\telse if (_paramType == Type.Node) {\n\t    _param.translate(classGen, methodGen);\n\t}\n\telse if (_paramType == Type.Reference) {\n\t    _param.translate(classGen, methodGen);\n\t    il.append(new INVOKESTATIC(cpg.addMethodref\n\t\t\t\t       (BASIS_LIBRARY_CLASS,\n\t\t\t\t\t\"referenceToNodeSet\",\n\t\t\t\t\t\"(\"\n\t\t\t\t\t+ OBJECT_SIG\n\t\t\t\t\t+ \")\"\n\t\t\t\t\t+ NODE_ITERATOR_SIG)));\n\t    il.append(methodGen.nextNode());\n\t}\n\telse {\n\t    _param.translate(classGen, methodGen);\n\t    _param.startIterator(classGen, methodGen);\n\t    il.append(methodGen.nextNode());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [6, 9], [6, 10], [7, 11], [7, 12], [8, 13], [2, 14], [3, 15], [9, 16], [1, 17], [6, 18], [17, 19], [9, 20], [9, 21], [9, 22], [9, 23], [9, 24], [9, 25], [20, 26], [23, 27], [24, 28], [28, 29], [29, 30], [29, 31], [30, 32], [32, 33], [32, 34], [34, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 6], [10, 6], [11, 7], [12, 7], [13, 8], [14, 2], [15, 3], [16, 9], [17, 1], [18, 6], [19, 17], [20, 9], [21, 9], [22, 9], [23, 9], [24, 9], [25, 9], [26, 20], [27, 23], [28, 24], [29, 28], [30, 29], [31, 29], [32, 30], [33, 32], [34, 32], [35, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "NameBase", "code": "    public NameBase(QName fname) {\n\tsuper(fname);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "NameBase", "code": "    public NameBase(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n\t_param = argument(0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-4.3-4536", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/buffer/LineManager.java", "language": "java", "name": "org.gjt.sp.jedit.buffer.LineManager", "code": "public class LineManager\n{\n\t//{{{ LineManager constructor\n\tpublic LineManager()\n\t{\n\t\tendOffsets = new int[1];\n\t\tendOffsets[0] = 1;\n\t\tfoldLevels = new short[1];\n\t\tlineContext = new TokenMarker.LineContext[1];\n\t\tlineCount = 1;\n\t} //}}}\n\n\t//{{{ getLineCount() method\n\tpublic final int getLineCount()\n\t{\n\t\treturn lineCount;\n\t} //}}}\n\n\t//{{{ getLineOfOffset() method\n\tpublic int getLineOfOffset(int offset)\n\t{\n\t\tint start = 0;\n\t\tint end = lineCount - 1;\n\n\t\tfor(;;)\n\t\t{\n\t\t\tswitch(end - start)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tif(getLineEndOffset(start) <= offset)\n\t\t\t\t\treturn start + 1;\n\t\t\t\telse\n\t\t\t\t\treturn start;\n\t\t\tcase 1:\n\t\t\t\tif(getLineEndOffset(start) <= offset)\n\t\t\t\t{\n\t\t\t\t\tif(getLineEndOffset(end) <= offset)\n\t\t\t\t\t\treturn end + 1;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn end;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn start;\n\t\t\tdefault:\n\t\t\t\tint pivot = (end + start) / 2;\n\t\t\t\tint value = getLineEndOffset(pivot);\n\t\t\t\tif(value == offset)\n\t\t\t\t\treturn pivot + 1;\n\t\t\t\telse if(value < offset)\n\t\t\t\t\tstart = pivot + 1;\n\t\t\t\telse\n\t\t\t\t\tend = pivot - 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ getLineEndOffset() method\n\tpublic final int getLineEndOffset(int line)\n\t{\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\treturn endOffsets[line] + gapWidth;\n\t\telse\n\t\t\treturn endOffsets[line];\n\t} //}}}\n\n\t//{{{ getFoldLevel() method\n\tpublic final int getFoldLevel(int line)\n\t{\n\t\treturn foldLevels[line];\n\t} //}}}\n\n\t//{{{ setFoldLevel() method\n\t// Also sets 'fold level valid' flag\n\tpublic final void setFoldLevel(int line, int level)\n\t{\n\t\tif(level > 0xffff)\n\t\t{\n\t\t\t// limitations...\n\t\t\tlevel = 0xffff;\n\t\t}\n\n\t\tfoldLevels[line] = (short)level;\n\t} //}}}\n\n\t//{{{ setFirstInvalidFoldLevel() method\n\tpublic void setFirstInvalidFoldLevel(int firstInvalidFoldLevel)\n\t{\n\t\tthis.firstInvalidFoldLevel = firstInvalidFoldLevel;\n\t} //}}}\n\n\t//{{{ getFirstInvalidFoldLevel() method\n\tpublic int getFirstInvalidFoldLevel()\n\t{\n\t\treturn firstInvalidFoldLevel;\n\t} //}}}\n\n\t//{{{ getLineContext() method\n\tpublic final TokenMarker.LineContext getLineContext(int line)\n\t{\n\t\treturn lineContext[line];\n\t} //}}}\n\n\t//{{{ setLineContext() method\n\tpublic final void setLineContext(int line, TokenMarker.LineContext context)\n\t{\n\t\tlineContext[line] = context;\n\t} //}}}\n\n\t//{{{ setFirstInvalidLineContext() method\n\tpublic void setFirstInvalidLineContext(int firstInvalidLineContext)\n\t{\n\t\tthis.firstInvalidLineContext = firstInvalidLineContext;\n\t} //}}}\n\n\t//{{{ getFirstInvalidLineContext() method\n\tpublic int getFirstInvalidLineContext()\n\t{\n\t\treturn firstInvalidLineContext;\n\t} //}}}\n\n\t//{{{ _contentInserted() method\n\tpublic void _contentInserted(IntegerArray endOffsets)\n\t{\n\t\tgapLine = -1;\n\t\tgapWidth = 0;\n\t\tfirstInvalidLineContext = firstInvalidFoldLevel = 0;\n\t\tlineCount = endOffsets.getSize();\n\t\tthis.endOffsets = endOffsets.getArray();\n\t\tfoldLevels = new short[lineCount];\n\n\t\tlineContext = new TokenMarker.LineContext[lineCount];\n\t} //}}}\n\n\t//{{{ contentInserted() method\n\tpublic void contentInserted(int startLine, int offset,\n\t\tint numLines, int length, IntegerArray endOffsets)\n\t{\n\t\tint endLine = startLine + numLines;\n\n\t\t//{{{ Update line info and line context arrays\n\t\tif(numLines > 0)\n\t\t{\n\t\t\t//moveGap(-1,0,\"contentInserted\");\n\n\t\t\tlineCount += numLines;\n\n\t\t\tif(this.endOffsets.length <= lineCount)\n\t\t\t{\n\t\t\t\tint[] endOffsetsN = new int[(lineCount + 1) * 2];\n\t\t\t\tSystem.arraycopy(this.endOffsets,0,endOffsetsN,0,\n\t\t\t\t\t\t this.endOffsets.length);\n\t\t\t\tthis.endOffsets = endOffsetsN;\n\t\t\t}\n\n\t\t\tif(foldLevels.length <= lineCount)\n\t\t\t{\n\t\t\t\tshort[] foldLevelsN = new short[(lineCount + 1) * 2];\n\t\t\t\tSystem.arraycopy(foldLevels,0,foldLevelsN,0,\n\t\t\t\t\t\t foldLevels.length);\n\t\t\t\tfoldLevels = foldLevelsN;\n\t\t\t}\n\n\t\t\tif(lineContext.length <= lineCount)\n\t\t\t{\n\t\t\t\tTokenMarker.LineContext[] lineContextN\n\t\t\t\t\t= new TokenMarker.LineContext[(lineCount + 1) * 2];\n\t\t\t\tSystem.arraycopy(lineContext,0,lineContextN,0,\n\t\t\t\t\t\t lineContext.length);\n\t\t\t\tlineContext = lineContextN;\n\t\t\t}\n\n\t\t\tSystem.arraycopy(this.endOffsets,startLine,\n\t\t\t\tthis.endOffsets,endLine,lineCount - endLine);\n\t\t\tSystem.arraycopy(foldLevels,startLine,foldLevels,\n\t\t\t\tendLine,lineCount - endLine);\n\t\t\tSystem.arraycopy(lineContext,startLine,lineContext,\n\t\t\t\tendLine,lineCount - endLine);\n\n\t\t\tif(startLine <= gapLine)\n\t\t\t\tgapLine += numLines;\n\t\t\telse if(gapLine != -1)\n\t\t\t\toffset -= gapWidth;\n\n\t\t\tif(startLine < firstInvalidLineContext)\n\t\t\t\tfirstInvalidLineContext += numLines;\n\n\t\t\tfor(int i = 0; i < numLines; i++)\n\t\t\t{\n\t\t\t\tthis.endOffsets[startLine + i] = (offset + endOffsets.get(i));\n\t\t\t\tfoldLevels[startLine + i] = 0;\n\t\t\t}\n\t\t} //}}}\n\n\t\tif(firstInvalidFoldLevel == -1 || firstInvalidFoldLevel > startLine)\n\t\t\tfirstInvalidFoldLevel = startLine;\n\t\tmoveGap(endLine,length,\"contentInserted\");\n\t} //}}}\n\n\t//{{{ contentRemoved() method\n\tpublic void contentRemoved(int startLine, int offset,\n\t\tint numLines, int length)\n\t{\n\t\tint endLine = startLine + numLines;\n\n\t\t//{{{ Update line info and line context arrays\n\t\tif(numLines > 0)\n\t\t{\n\t\t\t//moveGap(-1,0,\"contentRemoved\");\n\n\t\t\tif(startLine + numLines < gapLine)\n\t\t\t\tgapLine -= numLines;\n\t\t\telse if(startLine < gapLine)\n\t\t\t\tgapLine = startLine;\n\n\t\t\tif(startLine + numLines < firstInvalidLineContext)\n\t\t\t\tfirstInvalidLineContext -= numLines;\n\t\t\telse if(startLine < firstInvalidLineContext)\n\t\t\t\tfirstInvalidLineContext = startLine - 1;\n\n\t\t\tlineCount -= numLines;\n\n\t\t\tSystem.arraycopy(endOffsets,endLine,endOffsets,\n\t\t\t\tstartLine,lineCount - startLine);\n\t\t\tSystem.arraycopy(foldLevels,endLine,foldLevels,\n\t\t\t\tstartLine,lineCount - startLine);\n\t\t\tSystem.arraycopy(lineContext,endLine,lineContext,\n\t\t\t\tstartLine,lineCount - startLine);\n\t\t} //}}}\n\n\t\tif(firstInvalidFoldLevel == -1 || firstInvalidFoldLevel > startLine)\n\t\t\tfirstInvalidFoldLevel = startLine;\n\t\tmoveGap(startLine,-length,\"contentRemoved\");\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate int[] endOffsets;\n\tprivate short[] foldLevels;\n\tprivate TokenMarker.LineContext[] lineContext;\n\n\tprivate int lineCount;\n\n\t/**\n\t * If -1, then there is no gap.\n\t * Otherwise, all lines from this line onwards need to have gapWidth\n\t * added to their end offsets.\n\t */\n\tprivate int gapLine;\n\tprivate int gapWidth;\n\n\t/**\n\t * If -1, all contexts are valid. Otherwise, all lines after this have\n\t * an invalid context.\n\t */\n\tprivate int firstInvalidLineContext;\n\n\t/**\n\t * If -1, all fold levels are valid. Otherwise, all lines after this\n\t * have an invalid fold level.\n\t */\n\tprivate int firstInvalidFoldLevel;\n\t//}}}\n\n\t//{{{ setLineEndOffset() method\n\tprivate final void setLineEndOffset(int line, int end)\n\t{\n\t\tendOffsets[line] = end;\n\t} //}}}\n\n\t//{{{ moveGap() method\n\tprivate final void moveGap(int newGapLine, int newGapWidth, String method)\n\t{\n\t\tif(gapLine == -1)\n\t\t\tgapWidth = newGapWidth;\n\t\telse if(newGapLine == -1)\n\t\t{\n\t\t\tif(gapWidth != 0)\n\t\t\t{\n\t\t\t\tif(Debug.OFFSET_DEBUG && gapLine != lineCount)\n\t\t\t\t\tLog.log(Log.DEBUG,this,method + \": update from \" + gapLine + \" to \" + lineCount + \" width \" + gapWidth);\n\t\t\t\tfor(int i = gapLine; i < lineCount; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i));\n\t\t\t}\n\n\t\t\tgapWidth = newGapWidth;\n\t\t}\n\t\telse if(newGapLine < gapLine)\n\t\t{\n\t\t\tif(gapWidth != 0)\n\t\t\t{\n\t\t\t\tif(Debug.OFFSET_DEBUG && newGapLine != gapLine)\n\t\t\t\t\tLog.log(Log.DEBUG,this,method + \": update from \" + newGapLine + \" to \" + gapLine + \" width \" + gapWidth);\n\t\t\t\tfor(int i = newGapLine; i < gapLine; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i) - gapWidth);\n\t\t\t}\n\t\t\tgapWidth += newGapWidth;\n\t\t}\n\t\telse //if(newGapLine >= gapLine)\n\t\t{\n\t\t\tif(gapWidth != 0)\n\t\t\t{\n\t\t\t\tif(Debug.OFFSET_DEBUG && gapLine != newGapLine)\n\t\t\t\t\tLog.log(Log.DEBUG,this,method + \": update from \" + gapLine + \" to \" + newGapLine + \" width \" + gapWidth);\n\t\t\t\tfor(int i = gapLine; i < newGapLine; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i));\n\t\t\t}\n\n\t\t\tgapWidth += newGapWidth;\n\t\t}\n\n\t\tif(newGapLine == lineCount)\n\t\t\tgapLine = -1;\n\t\telse\n\t\t\tgapLine = newGapLine;", "functions": [{"function_name": "getLineCount", "code": "\tpublic final int getLineCount()\n\t{\n\t\treturn lineCount;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLineOfOffset", "code": "\tpublic int getLineOfOffset(int offset)\n\t{\n\t\tint start = 0;\n\t\tint end = lineCount - 1;\n\n\t\tfor(;;)\n\t\t{\n\t\t\tswitch(end - start)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tif(getLineEndOffset(start) <= offset)\n\t\t\t\t\treturn start + 1;\n\t\t\t\telse\n\t\t\t\t\treturn start;\n\t\t\tcase 1:\n\t\t\t\tif(getLineEndOffset(start) <= offset)\n\t\t\t\t{\n\t\t\t\t\tif(getLineEndOffset(end) <= offset)\n\t\t\t\t\t\treturn end + 1;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn end;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn start;\n\t\t\tdefault:\n\t\t\t\tint pivot = (end + start) / 2;\n\t\t\t\tint value = getLineEndOffset(pivot);\n\t\t\t\tif(value == offset)\n\t\t\t\t\treturn pivot + 1;\n\t\t\t\telse if(value < offset)\n\t\t\t\t\tstart = pivot + 1;\n\t\t\t\telse\n\t\t\t\t\tend = pivot - 1;\n\t\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "SWITCH", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [5, 8], [6, 9], [5, 10], [5, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [11, 18], [11, 19], [11, 20], [14, 21], [14, 22], [16, 23], [16, 24], [16, 25], [18, 26], [19, 27], [12, 28], [13, 29], [14, 30], [22, 31], [24, 32], [25, 33], [18, 34], [18, 35], [27, 36], [29, 37], [29, 38], [30, 39], [30, 40], [30, 41], [32, 42], [34, 43], [35, 44], [40, 45], [41, 46], [43, 47], [44, 48], [45, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 5], [9, 6], [10, 5], [11, 5], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 5], [18, 11], [19, 11], [20, 11], [21, 14], [22, 14], [23, 16], [24, 16], [25, 16], [26, 18], [27, 19], [28, 12], [29, 13], [30, 14], [31, 22], [32, 24], [33, 25], [34, 18], [35, 18], [36, 27], [37, 29], [38, 29], [39, 30], [40, 30], [41, 30], [42, 32], [43, 34], [44, 35], [45, 40], [46, 41], [47, 43], [48, 44], [49, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "getLineEndOffset", "code": "\tpublic final int getLineEndOffset(int line)\n\t{\n\t\tif(gapLine != -1 && line >= gapLine)\n\t\t\treturn endOffsets[line] + gapWidth;\n\t\telse\n\t\t\treturn endOffsets[line];", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getFoldLevel", "code": "\tpublic final int getFoldLevel(int line)\n\t{\n\t\treturn foldLevels[line];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFoldLevel", "code": "\tpublic final void setFoldLevel(int line, int level)\n\t{\n\t\tif(level > 0xffff)\n\t\t{\n\t\t\t// limitations...\n\t\t\tlevel = 0xffff;\n\t\t}\n\n\t\tfoldLevels[line] = (short)level;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setFirstInvalidFoldLevel", "code": "\tpublic void setFirstInvalidFoldLevel(int firstInvalidFoldLevel)\n\t{\n\t\tthis.firstInvalidFoldLevel = firstInvalidFoldLevel;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstInvalidFoldLevel", "code": "\tpublic int getFirstInvalidFoldLevel()\n\t{\n\t\treturn firstInvalidFoldLevel;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLineContext", "code": "\tpublic final TokenMarker.LineContext getLineContext(int line)\n\t{\n\t\treturn lineContext[line];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLineContext", "code": "\tpublic final void setLineContext(int line, TokenMarker.LineContext context)\n\t{\n\t\tlineContext[line] = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFirstInvalidLineContext", "code": "\tpublic void setFirstInvalidLineContext(int firstInvalidLineContext)\n\t{\n\t\tthis.firstInvalidLineContext = firstInvalidLineContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstInvalidLineContext", "code": "\tpublic int getFirstInvalidLineContext()\n\t{\n\t\treturn firstInvalidLineContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "_contentInserted", "code": "\tpublic void _contentInserted(IntegerArray endOffsets)\n\t{\n\t\tgapLine = -1;\n\t\tgapWidth = 0;\n\t\tfirstInvalidLineContext = firstInvalidFoldLevel = 0;\n\t\tlineCount = endOffsets.getSize();\n\t\tthis.endOffsets = endOffsets.getArray();\n\t\tfoldLevels = new short[lineCount];\n\n\t\tlineContext = new TokenMarker.LineContext[lineCount];", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [6, 11], [7, 12], [8, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 6], [12, 7], [13, 8], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "contentInserted", "code": "\tpublic void contentInserted(int startLine, int offset,\n\t\tint numLines, int length, IntegerArray endOffsets)\n\t{\n\t\tint endLine = startLine + numLines;\n\n\t\t//{{{ Update line info and line context arrays\n\t\tif(numLines > 0)\n\t\t{\n\t\t\t//moveGap(-1,0,\"contentInserted\");\n\n\t\t\tlineCount += numLines;\n\n\t\t\tif(this.endOffsets.length <= lineCount)\n\t\t\t{\n\t\t\t\tint[] endOffsetsN = new int[(lineCount + 1) * 2];\n\t\t\t\tSystem.arraycopy(this.endOffsets,0,endOffsetsN,0,\n\t\t\t\t\t\t this.endOffsets.length);\n\t\t\t\tthis.endOffsets = endOffsetsN;\n\t\t\t}\n\n\t\t\tif(foldLevels.length <= lineCount)\n\t\t\t{\n\t\t\t\tshort[] foldLevelsN = new short[(lineCount + 1) * 2];\n\t\t\t\tSystem.arraycopy(foldLevels,0,foldLevelsN,0,\n\t\t\t\t\t\t foldLevels.length);\n\t\t\t\tfoldLevels = foldLevelsN;\n\t\t\t}\n\n\t\t\tif(lineContext.length <= lineCount)\n\t\t\t{\n\t\t\t\tTokenMarker.LineContext[] lineContextN\n\t\t\t\t\t= new TokenMarker.LineContext[(lineCount + 1) * 2];\n\t\t\t\tSystem.arraycopy(lineContext,0,lineContextN,0,\n\t\t\t\t\t\t lineContext.length);\n\t\t\t\tlineContext = lineContextN;\n\t\t\t}\n\n\t\t\tSystem.arraycopy(this.endOffsets,startLine,\n\t\t\t\tthis.endOffsets,endLine,lineCount - endLine);\n\t\t\tSystem.arraycopy(foldLevels,startLine,foldLevels,\n\t\t\t\tendLine,lineCount - endLine);\n\t\t\tSystem.arraycopy(lineContext,startLine,lineContext,\n\t\t\t\tendLine,lineCount - endLine);\n\n\t\t\tif(startLine <= gapLine)\n\t\t\t\tgapLine += numLines;\n\t\t\telse if(gapLine != -1)\n\t\t\t\toffset -= gapWidth;\n\n\t\t\tif(startLine < firstInvalidLineContext)\n\t\t\t\tfirstInvalidLineContext += numLines;\n\n\t\t\tfor(int i = 0; i < numLines; i++)\n\t\t\t{\n\t\t\t\tthis.endOffsets[startLine + i] = (offset + endOffsets.get(i));\n\t\t\t\tfoldLevels[startLine + i] = 0;\n\t\t\t}\n\t\t} //}}}\n\n\t\tif(firstInvalidFoldLevel == -1 || firstInvalidFoldLevel > startLine)\n\t\t\tfirstInvalidFoldLevel = startLine;\n\t\tmoveGap(endLine,length,\"contentInserted\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LOOP", "IF", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [9, 12], [1, 13], [10, 14], [10, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [11, 22], [3, 23], [15, 24], [16, 25], [17, 26], [18, 27], [18, 28], [2, 29], [2, 30], [2, 31], [19, 32], [20, 33], [21, 34], [2, 35], [17, 36], [27, 37], [18, 38], [29, 39], [30, 40], [31, 41], [19, 42], [20, 43], [21, 44], [16, 45], [16, 46], [16, 47], [27, 48], [37, 49], [19, 50], [19, 51], [20, 52], [20, 53], [21, 54], [21, 55], [45, 56], [46, 57], [51, 58], [51, 59], [53, 60], [53, 61], [55, 62], [55, 63], [57, 64], [42, 65], [43, 66], [44, 67], [45, 68], [46, 69], [65, 70], [65, 71], [66, 72], [66, 73], [67, 74], [67, 75], [71, 76], [73, 77], [75, 78], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 9], [13, 1], [14, 10], [15, 10], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 11], [23, 3], [24, 15], [25, 16], [26, 17], [27, 18], [28, 18], [29, 2], [30, 2], [31, 2], [32, 19], [33, 20], [34, 21], [35, 2], [36, 17], [37, 27], [38, 18], [39, 29], [40, 30], [41, 31], [42, 19], [43, 20], [44, 21], [45, 16], [46, 16], [47, 16], [48, 27], [49, 37], [50, 19], [51, 19], [52, 20], [53, 20], [54, 21], [55, 21], [56, 45], [57, 46], [58, 51], [59, 51], [60, 53], [61, 53], [62, 55], [63, 55], [64, 57], [65, 42], [66, 43], [67, 44], [68, 45], [69, 46], [70, 65], [71, 65], [72, 66], [73, 66], [74, 67], [75, 67], [76, 71], [77, 73], [78, 75], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78]]}, {"function_name": "contentRemoved", "code": "\tpublic void contentRemoved(int startLine, int offset,\n\t\tint numLines, int length)\n\t{\n\t\tint endLine = startLine + numLines;\n\n\t\t//{{{ Update line info and line context arrays\n\t\tif(numLines > 0)\n\t\t{\n\t\t\t//moveGap(-1,0,\"contentRemoved\");\n\n\t\t\tif(startLine + numLines < gapLine)\n\t\t\t\tgapLine -= numLines;\n\t\t\telse if(startLine < gapLine)\n\t\t\t\tgapLine = startLine;\n\n\t\t\tif(startLine + numLines < firstInvalidLineContext)\n\t\t\t\tfirstInvalidLineContext -= numLines;\n\t\t\telse if(startLine < firstInvalidLineContext)\n\t\t\t\tfirstInvalidLineContext = startLine - 1;\n\n\t\t\tlineCount -= numLines;\n\n\t\t\tSystem.arraycopy(endOffsets,endLine,endOffsets,\n\t\t\t\tstartLine,lineCount - startLine);\n\t\t\tSystem.arraycopy(foldLevels,endLine,foldLevels,\n\t\t\t\tstartLine,lineCount - startLine);\n\t\t\tSystem.arraycopy(lineContext,endLine,lineContext,\n\t\t\t\tstartLine,lineCount - startLine);\n\t\t} //}}}\n\n\t\tif(firstInvalidFoldLevel == -1 || firstInvalidFoldLevel > startLine)\n\t\t\tfirstInvalidFoldLevel = startLine;\n\t\tmoveGap(startLine,-length,\"contentRemoved\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [8, 11], [1, 12], [9, 13], [9, 14], [2, 15], [2, 16], [10, 17], [3, 18], [14, 19], [2, 20], [2, 21], [2, 22], [2, 23], [15, 24], [15, 25], [16, 26], [16, 27], [20, 28], [21, 29], [22, 30], [24, 31], [15, 32], [25, 33], [26, 34], [16, 35], [27, 36], [24, 37], [26, 38], [37, 39], [39, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 8], [12, 1], [13, 9], [14, 9], [15, 2], [16, 2], [17, 10], [18, 3], [19, 14], [20, 2], [21, 2], [22, 2], [23, 2], [24, 15], [25, 15], [26, 16], [27, 16], [28, 20], [29, 21], [30, 22], [31, 24], [32, 15], [33, 25], [34, 26], [35, 16], [36, 27], [37, 24], [38, 26], [39, 37], [40, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "setLineEndOffset", "code": "\tprivate final void setLineEndOffset(int line, int end)\n\t{\n\t\tendOffsets[line] = end;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "moveGap", "code": "\tprivate final void moveGap(int newGapLine, int newGapWidth, String method)\n\t{\n\t\tif(gapLine == -1)\n\t\t\tgapWidth = newGapWidth;\n\t\telse if(newGapLine == -1)\n\t\t{\n\t\t\tif(gapWidth != 0)\n\t\t\t{\n\t\t\t\tif(Debug.OFFSET_DEBUG && gapLine != lineCount)\n\t\t\t\t\tLog.log(Log.DEBUG,this,method + \": update from \" + gapLine + \" to \" + lineCount + \" width \" + gapWidth);\n\t\t\t\tfor(int i = gapLine; i < lineCount; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i));\n\t\t\t}\n\n\t\t\tgapWidth = newGapWidth;\n\t\t}\n\t\telse if(newGapLine < gapLine)\n\t\t{\n\t\t\tif(gapWidth != 0)\n\t\t\t{\n\t\t\t\tif(Debug.OFFSET_DEBUG && newGapLine != gapLine)\n\t\t\t\t\tLog.log(Log.DEBUG,this,method + \": update from \" + newGapLine + \" to \" + gapLine + \" width \" + gapWidth);\n\t\t\t\tfor(int i = newGapLine; i < gapLine; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i) - gapWidth);\n\t\t\t}\n\t\t\tgapWidth += newGapWidth;\n\t\t}\n\t\telse //if(newGapLine >= gapLine)\n\t\t{\n\t\t\tif(gapWidth != 0)\n\t\t\t{\n\t\t\t\tif(Debug.OFFSET_DEBUG && gapLine != newGapLine)\n\t\t\t\t\tLog.log(Log.DEBUG,this,method + \": update from \" + gapLine + \" to \" + newGapLine + \" width \" + gapWidth);\n\t\t\t\tfor(int i = gapLine; i < newGapLine; i++)\n\t\t\t\t\tsetLineEndOffset(i,getLineEndOffset(i));\n\t\t\t}\n\n\t\t\tgapWidth += newGapWidth;\n\t\t}\n\n\t\tif(newGapLine == lineCount)\n\t\t\tgapLine = -1;\n\t\telse\n\t\t\tgapLine = newGapLine;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "IF", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LOOP", "IF", "LITERAL_ANCHOR", "LOOP", "IF", "LITERAL_ANCHOR", "LOOP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [1, 9], [1, 10], [7, 11], [7, 12], [2, 13], [8, 14], [10, 15], [11, 16], [7, 17], [12, 18], [11, 19], [11, 20], [7, 21], [17, 22], [11, 23], [19, 24], [11, 25], [20, 26], [17, 27], [17, 28], [22, 29], [19, 30], [19, 31], [24, 32], [20, 33], [20, 34], [26, 35], [27, 36], [28, 37], [30, 38], [31, 39], [33, 40], [34, 41], [27, 42], [28, 43], [37, 44], [30, 45], [31, 46], [39, 47], [33, 48], [34, 49], [41, 50], [42, 51], [43, 52], [45, 53], [46, 54], [48, 55], [49, 56], [52, 57], [54, 58], [55, 59], [56, 60], [57, 61], [57, 62], [58, 63], [58, 64], [60, 65], [60, 66], [62, 67], [64, 68], [66, 69], [67, 70], [67, 71], [68, 72], [68, 73], [69, 74], [69, 75], [71, 76], [73, 77], [75, 78], [76, 79], [77, 80], [78, 81], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 1], [10, 1], [11, 7], [12, 7], [13, 2], [14, 8], [15, 10], [16, 11], [17, 7], [18, 12], [19, 11], [20, 11], [21, 7], [22, 17], [23, 11], [24, 19], [25, 11], [26, 20], [27, 17], [28, 17], [29, 22], [30, 19], [31, 19], [32, 24], [33, 20], [34, 20], [35, 26], [36, 27], [37, 28], [38, 30], [39, 31], [40, 33], [41, 34], [42, 27], [43, 28], [44, 37], [45, 30], [46, 31], [47, 39], [48, 33], [49, 34], [50, 41], [51, 42], [52, 43], [53, 45], [54, 46], [55, 48], [56, 49], [57, 52], [58, 54], [59, 55], [60, 56], [61, 57], [62, 57], [63, 58], [64, 58], [65, 60], [66, 60], [67, 62], [68, 64], [69, 66], [70, 67], [71, 67], [72, 68], [73, 68], [74, 69], [75, 69], [76, 71], [77, 73], [78, 75], [79, 76], [80, 77], [81, 78], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81]]}, {"function_name": "LineManager", "code": "\tpublic LineManager()\n\t{\n\t\tendOffsets = new int[1];\n\t\tendOffsets[0] = 1;\n\t\tfoldLevels = new short[1];\n\t\tlineContext = new TokenMarker.LineContext[1];\n\t\tlineCount = 1;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [2, 8], [3, 9], [5, 10], [4, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 2], [9, 3], [10, 5], [11, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "xalan-2.6-7359", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/trace/ExtensionEvent.java", "language": "java", "name": "org.apache.xalan.trace.ExtensionEvent", "code": "public class ExtensionEvent {\n\n\tpublic static final int DEFAULT_CONSTRUCTOR = 0;\n\tpublic static final int METHOD = 1;\n\tpublic static final int CONSTRUCTOR = 2;\n\t\n\tpublic final int m_callType; \n\tpublic final TransformerImpl m_transformer;\n\tpublic final Object m_method;\n\tpublic final Object m_instance;\n\tpublic final Object[] m_arguments;\n\t\n\t\n\tpublic ExtensionEvent(TransformerImpl transformer, Method method, Object instance, Object[] arguments) {\n\t\tm_transformer = transformer;\n\t\tm_method = method;\n\t\tm_instance = instance;\n\t\tm_arguments = arguments;\n\t\tm_callType = METHOD;\n\t}\t\t\n\n\tpublic ExtensionEvent(TransformerImpl transformer, Constructor constructor, Object[] arguments) {\n\t\tm_transformer = transformer;\n\t\tm_instance = null;\t\t\n\t\tm_arguments = arguments;\n\t\tm_method = constructor;\n\t\tm_callType = CONSTRUCTOR;\t\t\n\t}\n\n\tpublic ExtensionEvent(TransformerImpl transformer, Class clazz) {\n\t\tm_transformer = transformer;\n\t\tm_instance = null;\n\t\tm_arguments = null;\n\t\tm_method = clazz;\n\t\tm_callType = DEFAULT_CONSTRUCTOR;", "functions": [{"function_name": "ExtensionEvent", "code": "\tpublic ExtensionEvent(TransformerImpl transformer, Method method, Object instance, Object[] arguments) {\n\t\tm_transformer = transformer;\n\t\tm_method = method;\n\t\tm_instance = instance;\n\t\tm_arguments = arguments;\n\t\tm_callType = METHOD;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ExtensionEvent", "code": "\tpublic ExtensionEvent(TransformerImpl transformer, Constructor constructor, Object[] arguments) {\n\t\tm_transformer = transformer;\n\t\tm_instance = null;\t\t\n\t\tm_arguments = arguments;\n\t\tm_method = constructor;\n\t\tm_callType = CONSTRUCTOR;\t\t", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ExtensionEvent", "code": "\tpublic ExtensionEvent(TransformerImpl transformer, Class clazz) {\n\t\tm_transformer = transformer;\n\t\tm_instance = null;\n\t\tm_arguments = null;\n\t\tm_method = clazz;\n\t\tm_callType = DEFAULT_CONSTRUCTOR;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "poi-2.5-5789", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/VCenterRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.VCenterRecord", "code": "public class VCenterRecord\n    extends Record\n{\n    public final static short sid = 0x84;\n    private short             field_1_vcenter;\n\n    public VCenterRecord()\n    {\n    }\n\n    /**\n     * Constructs a VCENTER record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x84 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public VCenterRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a VCENTER record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x84 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public VCenterRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A VCenter RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_vcenter = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set whether to center vertically or not\n     * @param hc  vcenter or not\n     */\n\n    public void setVCenter(boolean hc)\n    {\n        if (hc == true)\n        {\n            field_1_vcenter = 1;\n        }\n        else\n        {\n            field_1_vcenter = 0;\n        }\n    }\n\n    /**\n     * get whether to center vertically or not\n     * @return vcenter or not\n     */\n\n    public boolean getVCenter()\n    {\n        return (field_1_vcenter == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[VCENTER]\\n\");\n        buffer.append(\"    .vcenter        = \").append(getVCenter())\n            .append(\"\\n\");\n        buffer.append(\"[/VCENTER]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, ( short ) field_1_vcenter);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      VCenterRecord rec = new VCenterRecord();\n      rec.field_1_vcenter = field_1_vcenter;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A VCenter RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_vcenter = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setVCenter", "code": "    public void setVCenter(boolean hc)\n    {\n        if (hc == true)\n        {\n            field_1_vcenter = 1;\n        }\n        else\n        {\n            field_1_vcenter = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getVCenter", "code": "    public boolean getVCenter()\n    {\n        return (field_1_vcenter == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[VCENTER]\\n\");\n        buffer.append(\"    .vcenter        = \").append(getVCenter())\n            .append(\"\\n\");\n        buffer.append(\"[/VCENTER]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        LittleEndian.putShort(data, 4 + offset, ( short ) field_1_vcenter);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [6, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 6], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      VCenterRecord rec = new VCenterRecord();\n      rec.field_1_vcenter = field_1_vcenter;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "VCenterRecord", "code": "    public VCenterRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "VCenterRecord", "code": "    public VCenterRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "VCenterRecord", "code": "    public VCenterRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.4-6663", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/UnparsedEntityUriCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.UnparsedEntityUriCall", "code": "final class UnparsedEntityUriCall extends FunctionCall {\n    private Expression _entity;\n\n    public UnparsedEntityUriCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n\t_entity = argument();\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type entity = _entity.typeCheck(stable);\n\tif (entity instanceof StringType == false) {\n\t    _entity = new CastExpr(_entity, Type.String);\n\t}\n\treturn _type = Type.String;\n    }\n    \n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(classGen.loadTranslet());\n\t_entity.translate(classGen, methodGen);\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t     \"getUnparsedEntity\",\n\t\t\t\t\t\t     \"(Ljava/lang/String;)\"+\n\t\t\t\t\t\t     \"Ljava/lang/String;\")));", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tfinal Type entity = _entity.typeCheck(stable);\n\tif (entity instanceof StringType == false) {\n\t    _entity = new CastExpr(_entity, Type.String);\n\t}\n\treturn _type = Type.String;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [6, 7], [6, 8], [3, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 6], [8, 6], [9, 3], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(classGen.loadTranslet());\n\t_entity.translate(classGen, methodGen);\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t     \"getUnparsedEntity\",\n\t\t\t\t\t\t     \"(Ljava/lang/String;)\"+\n\t\t\t\t\t\t     \"Ljava/lang/String;\")));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [7, 9], [1, 10], [2, 11], [8, 12], [12, 13], [12, 14], [13, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 7], [10, 1], [11, 2], [12, 8], [13, 12], [14, 12], [15, 13], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "UnparsedEntityUriCall", "code": "    public UnparsedEntityUriCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n\t_entity = argument();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.6-7692", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xslt/EnvironmentCheck.java", "language": "java", "name": "org.apache.xalan.xslt.EnvironmentCheck", "code": "public class EnvironmentCheck\n{\n\n  /**\n   * Command line runnability: checks for [-out outFilename] arg.\n   * <p>Command line entrypoint; Sets output and calls \n   * {@link #checkEnvironment(PrintWriter)}.</p>\n   * @param args command line args\n   */\n  public static void main(String[] args)\n  {\n    PrintWriter sendOutputTo = new PrintWriter(System.out, true);\n\n    for (int i = 0; i < args.length; i++)\n    {\n      if (\"-out\".equalsIgnoreCase(args[i]))\n      {\n        i++;\n\n        if (i < args.length)\n        {\n          try\n          {\n            sendOutputTo = new PrintWriter(new FileWriter(args[i], true));\n          }\n          catch (Exception e)\n          {\n            System.err.println(\"# WARNING: -out \" + args[i] + \" threw \"\n                               + e.toString());\n          }\n        }\n        else\n        {\n          System.err.println(\n            \"# WARNING: -out argument should have a filename, output sent to console\");\n        }\n      }\n    }\n\n    EnvironmentCheck app = new EnvironmentCheck();\n    app.checkEnvironment(sendOutputTo);\n  }\n\n  /**\n   * Programmatic entrypoint: Report on basic Java environment \n   * and CLASSPATH settings that affect Xalan.\n   *\n   * <p>Note that this class is not advanced enough to tell you \n   * everything about the environment that affects Xalan, and \n   * sometimes reports errors that will not actually affect \n   * Xalan's behavior.  Currently, it very simplistically \n   * checks the JVM's environment for some basic properties and \n   * logs them out; it will report a problem if it finds a setting \n   * or .jar file that is <i>likely</i> to cause problems.</p>\n   *\n   * <p>Advanced users can peruse the code herein to help them \n   * investigate potential environment problems found; other users \n   * may simply send the output from this tool along with any bugs \n   * they submit to help us in the debugging process.</p>\n   *\n   * @param pw PrintWriter to send output to; can be sent to a \n   * file that will look similar to a Properties file; defaults \n   * to System.out if null\n   * @return true if your environment appears to have no major \n   * problems; false if potential environment problems found\n   * @see #getEnvironmentHash()\n   */\n  public boolean checkEnvironment(PrintWriter pw)\n  {\n\n    if (null != pw)\n      outWriter = pw;\n\n    Hashtable hash = getEnvironmentHash();\n\n    boolean environmentHasErrors = writeEnvironmentReport(hash);\n\n    if (environmentHasErrors)\n    {\n      logMsg(\"# WARNING: Potential problems found in your environment!\");\n      logMsg(\"#    Check any 'ERROR' items above against the Xalan FAQs\");\n      logMsg(\"#    to correct potential problems with your classes/jars\");\n      if (null != outWriter)\n        outWriter.flush();\n      return false;\n    }\n    else\n    {\n      logMsg(\"# YAHOO! Your environment seems to be OK.\");\n      if (null != outWriter)\n        outWriter.flush();\n      return true;\n    }\n  }\n\n  /**\n   * Fill a hash with basic environment settings that affect Xalan.\n   *\n   * <p>Worker method called from various places.</p>\n   * <p>Various system and CLASSPATH, etc. properties are put into \n   * the hash as keys with a brief description of the current state \n   * of that item as the value.  Any serious problems will be put in \n   * with a key that is prefixed with {@link #ERROR 'ERROR.'} so it\n   * stands out in any resulting report; also a key with just that \n   * constant will be set as well for any error.</p>\n   * <p>Note that some legitimate cases are flaged as potential \n   * errors - namely when a developer recompiles xalan.jar on their \n   * own - and even a non-error state doesn't guaruntee that \n   * everything in the environment is correct.  But this will help \n   * point out the most common classpath and system property\n   * problems that we've seen.</p>   \n   *\n   * @return Hashtable full of useful environment info about Xalan \n   * and related system properties, etc.\n   */\n  public Hashtable getEnvironmentHash()\n  {\n    Hashtable hash = new Hashtable();\n\n    checkJAXPVersion(hash);\n    checkProcessorVersion(hash);\n    checkParserVersion(hash);\n    checkAntVersion(hash);\n    checkDOMVersion(hash);\n    checkSAXVersion(hash);\n    checkSystemProperties(hash);\n\n    return hash;\n  }\n\n  /**\n   * Dump a basic Xalan environment report to outWriter.  \n   *\n   * <p>This dumps a simple header and then each of the entries in \n   * the Hashtable to our PrintWriter; it does special processing \n   * for entries that are .jars found in the classpath.</p>\n   *\n   * @param h Hashtable of items to report on; presumably\n   * filled in by our various check*() methods\n   * @return true if your environment appears to have no major \n   * problems; false if potential environment problems found\n   * @see #appendEnvironmentReport(Node, Document, Hashtable)\n   * for an equivalent that appends to a Node instead\n   */\n  protected boolean writeEnvironmentReport(Hashtable h)\n  {\n\n    if (null == h)\n    {\n      logMsg(\"# ERROR: writeEnvironmentReport called with null Hashtable\");\n      return false;\n    }\n\n    boolean errors = false;\n\n    logMsg(\n      \"#---- BEGIN writeEnvironmentReport($Revision: 337937 $): Useful stuff found: ----\");\n\n    for (Enumeration keys = h.keys(); \n         keys.hasMoreElements();\n        /* no increment portion */\n        )\n    {\n      Object key = keys.nextElement();\n      String keyStr = (String) key;\n      try\n      {\n        if (keyStr.startsWith(FOUNDCLASSES))\n        {\n          Vector v = (Vector) h.get(keyStr);\n          errors |= logFoundJars(v, keyStr);\n        }\n        else\n        {\n          if (keyStr.startsWith(ERROR))\n          {\n            errors = true;\n          }\n          logMsg(keyStr + \"=\" + h.get(keyStr));\n        }\n      }\n      catch (Exception e)\n      {\n        logMsg(\"Reading-\" + key + \"= threw: \" + e.toString());\n      }\n    }\n\n    logMsg(\n      \"#----- END writeEnvironmentReport: Useful properties found: -----\");\n\n    return errors;\n  }\n\n  /** Prefixed to hash keys that signify serious problems.  */\n  public static final String ERROR = \"ERROR.\";\n\n  /** Added to descriptions that signify potential problems.  */\n  public static final String WARNING = \"WARNING.\";\n\n  /** Value for any error found.  */\n  public static final String ERROR_FOUND = \"At least one error was found!\";\n\n  /** Prefixed to hash keys that signify version numbers.  */\n  public static final String VERSION = \"version.\";\n\n  /** Prefixed to hash keys that signify .jars found in classpath.  */\n  public static final String FOUNDCLASSES = \"foundclasses.\";\n\n  /** Marker that a class or .jar was found.  */\n  public static final String CLASS_PRESENT = \"present-unknown-version\";\n\n  /** Marker that a class or .jar was not found.  */\n  public static final String CLASS_NOTPRESENT = \"not-present\";\n\n  /** Listing of common .jar files that include Xalan-related classes.  */\n  public String[] jarNames =\n  {\n    \"xalan.jar\", \"xalansamples.jar\", \"xalanj1compat.jar\", \"xalanservlet.jar\",\n    \"testxsl.jar\", \n    \"crimson.jar\", \n    \"lotusxsl.jar\", \n    \"jaxp.jar\", \"parser.jar\", \"dom.jar\", \"sax.jar\", \"xml.jar\", \n    \"xml-apis.jar\",\n    \"xsltc.jar\"\n  };\n\n  /**\n   * Print out report of .jars found in a classpath. \n   *\n   * Takes the information encoded from a checkPathForJars() \n   * call and dumps it out to our PrintWriter.\n   *\n   * @param v Vector of Hashtables of .jar file info\n   * @param desc description to print out in header\n   *\n   * @return false if OK, true if any .jars were reported \n   * as having errors\n   * @see #checkPathForJars(String, String[])\n   */\n  protected boolean logFoundJars(Vector v, String desc)\n  {\n\n    if ((null == v) || (v.size() < 1))\n      return false;\n\n    boolean errors = false;\n\n    logMsg(\"#---- BEGIN Listing XML-related jars in: \" + desc + \" ----\");\n\n    for (int i = 0; i < v.size(); i++)\n    {\n      Hashtable subhash = (Hashtable) v.elementAt(i);\n\n      for (Enumeration keys = subhash.keys(); \n           keys.hasMoreElements();\n           /* no increment portion */\n          )\n      {\n        Object key = keys.nextElement();\n        String keyStr = (String) key;\n        try\n        {\n          if (keyStr.startsWith(ERROR))\n          {\n            errors = true;\n          }\n          logMsg(keyStr + \"=\" + subhash.get(keyStr));\n\n        }\n        catch (Exception e)\n        {\n          errors = true;\n          logMsg(\"Reading-\" + key + \"= threw: \" + e.toString());\n        }\n      }\n    }\n\n    logMsg(\"#----- END Listing XML-related jars in: \" + desc + \" -----\");\n\n    return errors;\n  }\n\n  /**\n   * Stylesheet extension entrypoint: Dump a basic Xalan \n   * environment report from getEnvironmentHash() to a Node.  \n   * \n   * <p>Copy of writeEnvironmentReport that creates a Node suitable \n   * for other processing instead of a properties-like text output.\n   * </p>\n   * @param container Node to append our report to\n   * @param factory Document providing createElement, etc. services\n   * @param h Hash presumably from {@link #getEnvironmentHash()}\n   * @see #writeEnvironmentReport(Hashtable)\n   * for an equivalent that writes to a PrintWriter instead\n   */\n  public void appendEnvironmentReport(Node container, Document factory, Hashtable h)\n  {\n    if ((null == container) || (null == factory))\n    {\n      return;\n    }\n  \n    try\n    {\n      Element envCheckNode = factory.createElement(\"EnvironmentCheck\");\n      envCheckNode.setAttribute(\"version\", \"$Revision: 337937 $\");\n      container.appendChild(envCheckNode);\n\n      if (null == h)\n      {\n        Element statusNode = factory.createElement(\"status\");\n        statusNode.setAttribute(\"result\", \"ERROR\");\n        statusNode.appendChild(factory.createTextNode(\"appendEnvironmentReport called with null Hashtable!\"));\n        envCheckNode.appendChild(statusNode);\n        return;\n      }\n\n      boolean errors = false;\n\n      Element hashNode = factory.createElement(\"environment\");\n      envCheckNode.appendChild(hashNode);\n      \n      for (Enumeration keys = h.keys(); \n           keys.hasMoreElements();\n          /* no increment portion */\n          )\n      {\n        Object key = keys.nextElement();\n        String keyStr = (String) key;\n        try\n        {\n          if (keyStr.startsWith(FOUNDCLASSES))\n          {\n            Vector v = (Vector) h.get(keyStr);\n            errors |= appendFoundJars(hashNode, factory, v, keyStr);\n          }\n          else \n          {\n            if (keyStr.startsWith(ERROR))\n            {\n              errors = true;\n            }\n            Element node = factory.createElement(\"item\");\n            node.setAttribute(\"key\", keyStr);\n            node.appendChild(factory.createTextNode((String)h.get(keyStr)));\n            hashNode.appendChild(node);\n          }\n        }\n        catch (Exception e)\n        {\n          errors = true;\n          Element node = factory.createElement(\"item\");\n          node.setAttribute(\"key\", keyStr);\n          node.appendChild(factory.createTextNode(ERROR + \" Reading \" + key + \" threw: \" + e.toString()));\n          hashNode.appendChild(node);\n        }\n\t  }\n      Element statusNode = factory.createElement(\"status\");\n      statusNode.setAttribute(\"result\", (errors ? \"ERROR\" : \"OK\" ));\n      envCheckNode.appendChild(statusNode);\n    }\n    catch (Exception e2)\n    {\n      System.err.println(\"appendEnvironmentReport threw: \" + e2.toString());\n      e2.printStackTrace();\n    }\n  }    \n\n  /**\n   * Print out report of .jars found in a classpath. \n   *\n   * Takes the information encoded from a checkPathForJars() \n   * call and dumps it out to our PrintWriter.\n   *\n   * @param container Node to append our report to\n   * @param factory Document providing createElement, etc. services\n   * @param v Vector of Hashtables of .jar file info\n   * @param desc description to print out in header\n   *\n   * @return false if OK, true if any .jars were reported \n   * as having errors\n   * @see #checkPathForJars(String, String[])\n   */\n  protected boolean appendFoundJars(Node container, Document factory, \n        Vector v, String desc)\n  {\n\n    if ((null == v) || (v.size() < 1))\n      return false;\n\n    boolean errors = false;\n\n    for (int i = 0; i < v.size(); i++)\n    {\n      Hashtable subhash = (Hashtable) v.elementAt(i);\n\n      for (Enumeration keys = subhash.keys(); \n           keys.hasMoreElements();\n           /* no increment portion */\n          )\n      {\n        Object key = keys.nextElement();\n        try\n        {\n          String keyStr = (String) key;\n          if (keyStr.startsWith(ERROR))\n          {\n            errors = true;\n          }\n          Element node = factory.createElement(\"foundJar\");\n          node.setAttribute(\"name\", keyStr.substring(0, keyStr.indexOf(\"-\")));\n          node.setAttribute(\"desc\", keyStr.substring(keyStr.indexOf(\"-\") + 1));\n          node.appendChild(factory.createTextNode((String)subhash.get(keyStr)));\n          container.appendChild(node);\n        }\n        catch (Exception e)\n        {\n          errors = true;\n          Element node = factory.createElement(\"foundJar\");\n          node.appendChild(factory.createTextNode(ERROR + \" Reading \" + key + \" threw: \" + e.toString()));\n          container.appendChild(node);\n        }\n      }\n    }\n    return errors;\n  }\n\n  /**\n   * Fillin hash with info about SystemProperties.  \n   *\n   * Logs java.class.path and other likely paths; then attempts \n   * to search those paths for .jar files with Xalan-related classes.\n   *\n   *\n   * @param h Hashtable to put information in\n   * @see #jarNames\n   * @see #checkPathForJars(String, String[])\n   */\n  protected void checkSystemProperties(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    try\n    {\n      String javaVersion = System.getProperty(\"java.version\");\n\n      h.put(\"java.version\", javaVersion);\n    }\n    catch (SecurityException se)\n    {\n\n      h.put(\n        \"java.version\",\n        \"WARNING: SecurityException thrown accessing system version properties\");\n    }\n\n    try\n    {\n\n      String cp = System.getProperty(\"java.class.path\");\n\n      h.put(\"java.class.path\", cp);\n\n      Vector classpathJars = checkPathForJars(cp, jarNames);\n\n      if (null != classpathJars)\n        h.put(FOUNDCLASSES + \"java.class.path\", classpathJars);\n\n      String othercp = System.getProperty(\"sun.boot.class.path\");\n\n      if (null != othercp)\n      {\n        h.put(\"sun.boot.class.path\", othercp);\n\n        classpathJars = checkPathForJars(othercp, jarNames);\n\n        if (null != classpathJars)\n          h.put(FOUNDCLASSES + \"sun.boot.class.path\", classpathJars);\n      }\n\n      othercp = System.getProperty(\"java.ext.dirs\");\n\n      if (null != othercp)\n      {\n        h.put(\"java.ext.dirs\", othercp);\n\n        classpathJars = checkPathForJars(othercp, jarNames);\n\n        if (null != classpathJars)\n          h.put(FOUNDCLASSES + \"java.ext.dirs\", classpathJars);\n      }\n\n    }\n    catch (SecurityException se2)\n    {\n      h.put(\n        \"java.class.path\",\n        \"WARNING: SecurityException thrown accessing system classpath properties\");\n    }\n  }\n\n  /**\n   * Cheap-o listing of specified .jars found in the classpath. \n   *\n   * cp should be separated by the usual File.pathSeparator.  We \n   * then do a simplistic search of the path for any requested \n   * .jar filenames, and return a listing of their names and \n   * where (apparently) they came from.\n   *\n   * @param cp classpath to search\n   * @param jars array of .jar base filenames to look for\n   *\n   * @return Vector of Hashtables filled with info about found .jars\n   * @see #jarNames\n   * @see #logFoundJars(Vector, String)\n   * @see #appendFoundJars(Node, Document, Vector, String )\n   * @see #getApparentVersion(String, long)\n   */\n  protected Vector checkPathForJars(String cp, String[] jars)\n  {\n\n    if ((null == cp) || (null == jars) || (0 == cp.length())\n            || (0 == jars.length))\n      return null;\n\n    Vector v = new Vector();\n    StringTokenizer st = new StringTokenizer(cp, File.pathSeparator);\n\n    while (st.hasMoreTokens())\n    {\n\n      String filename = st.nextToken();\n\n      for (int i = 0; i < jars.length; i++)\n      {\n        if (filename.indexOf(jars[i]) > -1)\n        {\n          File f = new File(filename);\n\n          if (f.exists())\n          {\n\n            try\n            {\n              Hashtable h = new Hashtable(2);\n              h.put(jars[i] + \"-path\", f.getAbsolutePath());\n             \n              if (!(\"xalan.jar\".equalsIgnoreCase(jars[i]))) {              \n                h.put(jars[i] + \"-apparent.version\",\n                    getApparentVersion(jars[i], f.length()));\n              }\n              v.addElement(h);\n            }\n            catch (Exception e)\n            {\n\n              /* no-op, don't add it  */\n            }\n          }\n          else\n          {\n            Hashtable h = new Hashtable(2);\n            h.put(jars[i] + \"-path\", WARNING + \" Classpath entry: \" \n                  + filename + \" does not exist\");\n            h.put(jars[i] + \"-apparent.version\", CLASS_NOTPRESENT);\n            v.addElement(h);\n          }\n        }\n      }\n    }\n\n    return v;\n  }\n\n  /**\n   * Cheap-o method to determine the product version of a .jar.   \n   *\n   * Currently does a lookup into a local table of some recent \n   * shipped Xalan builds to determine where the .jar probably \n   * came from.  Note that if you recompile Xalan or Xerces \n   * yourself this will likely report a potential error, since \n   * we can't certify builds other than the ones we ship.\n   * Only reports against selected posted Xalan-J builds.\n   *\n   *\n   * @param jarName base filename of the .jarfile\n   * @param jarSize size of the .jarfile\n   *\n   * @return String describing where the .jar file probably \n   * came from\n   */\n  protected String getApparentVersion(String jarName, long jarSize)\n  {\n    String foundSize = (String) jarVersions.get(new Long(jarSize));\n\n    if ((null != foundSize) && (foundSize.startsWith(jarName)))\n    {\n      return foundSize;\n    }\n    else\n    {\n      if (\"xerces.jar\".equalsIgnoreCase(jarName)\n              || \"xercesImpl.jar\".equalsIgnoreCase(jarName))\n      {\n\n        return jarName + \" \" + WARNING + CLASS_PRESENT;\n      }\n      else\n      {\n\n        return jarName + \" \" + CLASS_PRESENT;\n      }\n    }\n  }\n\n  /**\n   * Report version information about JAXP interfaces.\n   *\n   * Currently distinguishes between JAXP 1.0.1 and JAXP 1.1, \n   * and not found; only tests the interfaces, and does not \n   * check for reference implementation versions.\n   *\n   * @param h Hashtable to put information in\n   */\n  protected void checkJAXPVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    final Class noArgs[] = new Class[0];\n    Class clazz = null;\n\n    try\n    {\n      final String JAXP1_CLASS = \"javax.xml.parsers.DocumentBuilder\";\n      final String JAXP11_METHOD = \"getDOMImplementation\";\n\n      clazz = ObjectFactory.findProviderClass(\n        JAXP1_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Method method = clazz.getMethod(JAXP11_METHOD, noArgs);\n\n      h.put(VERSION + \"JAXP\", \"1.1 or higher\");\n    }\n    catch (Exception e)\n    {\n      if (null != clazz)\n      {\n\n        h.put(ERROR + VERSION + \"JAXP\", \"1.0.1\");\n        h.put(ERROR, ERROR_FOUND);\n      }\n      else\n      {\n        h.put(ERROR + VERSION + \"JAXP\", CLASS_NOTPRESENT);\n        h.put(ERROR, ERROR_FOUND);\n      }\n    }\n  }\n\n  /**\n   * Report product version information from Xalan-J.\n   *\n   * Looks for version info in xalan.jar from Xalan-J products.\n   *\n   * @param h Hashtable to put information in\n   */\n  protected void checkProcessorVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    try\n    {\n      final String XALAN1_VERSION_CLASS =\n        \"org.apache.xalan.xslt.XSLProcessorVersion\";\n\n      Class clazz = ObjectFactory.findProviderClass(\n        XALAN1_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      StringBuffer buf = new StringBuffer();\n      Field f = clazz.getField(\"PRODUCT\");\n\n      buf.append(f.get(null));\n      buf.append(';');\n\n      f = clazz.getField(\"LANGUAGE\");\n\n      buf.append(f.get(null));\n      buf.append(';');\n\n      f = clazz.getField(\"S_VERSION\");\n\n      buf.append(f.get(null));\n      buf.append(';');\n      h.put(VERSION + \"xalan1\", buf.toString());\n    }\n    catch (Exception e1)\n    {\n      h.put(VERSION + \"xalan1\", CLASS_NOTPRESENT);\n    }\n\n    try\n    {\n      final String XALAN2_VERSION_CLASS =\n        \"org.apache.xalan.processor.XSLProcessorVersion\";\n\n      Class clazz = ObjectFactory.findProviderClass(\n        XALAN2_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      StringBuffer buf = new StringBuffer();\n      Field f = clazz.getField(\"S_VERSION\");\n      buf.append(f.get(null));\n\n      h.put(VERSION + \"xalan2x\", buf.toString());\n    }\n    catch (Exception e2)\n    {\n      h.put(VERSION + \"xalan2x\", CLASS_NOTPRESENT);\n    }\n    try\n    {\n      final String XALAN2_2_VERSION_CLASS =\n        \"org.apache.xalan.Version\";\n      final String XALAN2_2_VERSION_METHOD = \"getVersion\";\n      final Class noArgs[] = new Class[0];\n\n      Class clazz = ObjectFactory.findProviderClass(\n        XALAN2_2_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Method method = clazz.getMethod(XALAN2_2_VERSION_METHOD, noArgs);\n      Object returnValue = method.invoke(null, new Object[0]);\n\n      h.put(VERSION + \"xalan2_2\", (String)returnValue);\n    }\n    catch (Exception e2)\n    {\n      h.put(VERSION + \"xalan2_2\", CLASS_NOTPRESENT);\n    }\n  }\n\n  /**\n   * Report product version information from common parsers.\n   *\n   * Looks for version info in xerces.jar/xercesImpl.jar/crimson.jar.\n   *\n   *\n   * @param h Hashtable to put information in\n   */\n  protected void checkParserVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    try\n    {\n      final String XERCES1_VERSION_CLASS = \"org.apache.xerces.framework.Version\";\n\n      Class clazz = ObjectFactory.findProviderClass(\n        XERCES1_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Field f = clazz.getField(\"fVersion\");\n      String parserVersion = (String) f.get(null);\n\n      h.put(VERSION + \"xerces1\", parserVersion);\n    }\n    catch (Exception e)\n    {\n      h.put(VERSION + \"xerces1\", CLASS_NOTPRESENT);\n    }\n\n    try\n    {\n      final String XERCES2_VERSION_CLASS = \"org.apache.xerces.impl.Version\";\n\n      Class clazz = ObjectFactory.findProviderClass(\n        XERCES2_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Field f = clazz.getField(\"fVersion\");\n      String parserVersion = (String) f.get(null);\n\n      h.put(VERSION + \"xerces2\", parserVersion);\n    }\n    catch (Exception e)\n    {\n      h.put(VERSION + \"xerces2\", CLASS_NOTPRESENT);\n    }\n\n    try\n    {\n      final String CRIMSON_CLASS = \"org.apache.crimson.parser.Parser2\";\n\n      Class clazz = ObjectFactory.findProviderClass(\n        CRIMSON_CLASS, ObjectFactory.findClassLoader(), true);\n\n      h.put(VERSION + \"crimson\", CLASS_PRESENT);\n    }\n    catch (Exception e)\n    {\n      h.put(VERSION + \"crimson\", CLASS_NOTPRESENT);\n    }\n  }\n\n  /**\n   * Report product version information from Ant.\n   *\n   * @param h Hashtable to put information in\n   */\n  protected void checkAntVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    try\n    {\n      final String ANT_VERSION_CLASS = \"org.apache.tools.ant.Main\";\n      final Class noArgs[] = new Class[0];\n\n      Class clazz = ObjectFactory.findProviderClass(\n        ANT_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Method method = clazz.getMethod(ANT_VERSION_METHOD, noArgs);\n      Object returnValue = method.invoke(null, new Object[0]);\n\n      h.put(VERSION + \"ant\", (String)returnValue);\n    }\n    catch (Exception e)\n    {\n      h.put(VERSION + \"ant\", CLASS_NOTPRESENT);\n    }\n  }\n\n  /**\n   * Report version info from DOM interfaces. \n   *\n   * Currently distinguishes between pre-DOM level 2, the DOM \n   * level 2 working draft, the DOM level 2 final draft, \n   * and not found.\n   *\n   * @param h Hashtable to put information in\n   */\n  protected void checkDOMVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    final String DOM_LEVEL2_CLASS = \"org.w3c.dom.Document\";\n    final String DOM_LEVEL2WD_CLASS = \"org.w3c.dom.Node\";\n    final String DOM_LEVEL2FD_CLASS = \"org.w3c.dom.Node\";\n    final Class twoStringArgs[] = { java.lang.String.class,\n                                    java.lang.String.class };\n\n    try\n    {\n      Class clazz = ObjectFactory.findProviderClass(\n        DOM_LEVEL2_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Method method = clazz.getMethod(DOM_LEVEL2_METHOD, twoStringArgs);\n\n      h.put(VERSION + \"DOM\", \"2.0\");\n\n      try\n      {\n        clazz = ObjectFactory.findProviderClass(\n          DOM_LEVEL2WD_CLASS, ObjectFactory.findClassLoader(), true);\n\n        method = clazz.getMethod(DOM_LEVEL2WD_METHOD, twoStringArgs);\n\n        h.put(ERROR + VERSION + \"DOM.draftlevel\", \"2.0wd\");\n        h.put(ERROR, ERROR_FOUND);\n      }\n      catch (Exception e2)\n      {\n        try\n        {\n          clazz = ObjectFactory.findProviderClass(\n            DOM_LEVEL2FD_CLASS, ObjectFactory.findClassLoader(), true);\n\n          method = clazz.getMethod(DOM_LEVEL2FD_METHOD, twoStringArgs);\n\n          h.put(VERSION + \"DOM.draftlevel\", \"2.0fd\");\n        }\n        catch (Exception e3)\n        {\n          h.put(ERROR + VERSION + \"DOM.draftlevel\", \"2.0unknown\");\n          h.put(ERROR, ERROR_FOUND);\n        }\n      }\n    }\n    catch (Exception e)\n    {\n      h.put(ERROR + VERSION + \"DOM\",\n            \"ERROR attempting to load DOM level 2 class: \" + e.toString());\n      h.put(ERROR, ERROR_FOUND);\n    }\n\n  }\n\n  /**\n   * Report version info from SAX interfaces. \n   *\n   * Currently distinguishes between SAX 2, SAX 2.0beta2, \n   * SAX1, and not found.\n   *\n   * @param h Hashtable to put information in\n   */\n  protected void checkSAXVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    final String SAX_VERSION1_CLASS = \"org.xml.sax.Parser\";\n    final String SAX_VERSION2_CLASS = \"org.xml.sax.XMLReader\";\n    final String SAX_VERSION2BETA_CLASSNF = \"org.xml.sax.helpers.AttributesImpl\";\n    final Class oneStringArg[] = { java.lang.String.class };\n    final Class attributesArg[] = { org.xml.sax.Attributes.class };\n\n    try\n    {\n      Class clazz = ObjectFactory.findProviderClass(\n        SAX_VERSION2BETA_CLASSNF, ObjectFactory.findClassLoader(), true);\n\n      Method method = clazz.getMethod(SAX_VERSION2BETA_METHODNF, attributesArg);\n\n      h.put(VERSION + \"SAX\", \"2.0\");\n    }\n    catch (Exception e)\n    {\n      h.put(ERROR + VERSION + \"SAX\",\n            \"ERROR attempting to load SAX version 2 class: \" + e.toString());\n      h.put(ERROR, ERROR_FOUND);\n            \n      try\n      {\n        Class clazz = ObjectFactory.findProviderClass(\n          SAX_VERSION2_CLASS, ObjectFactory.findClassLoader(), true);\n\n        Method method = clazz.getMethod(SAX_VERSION2_METHOD, oneStringArg);\n\n        h.put(VERSION + \"SAX-backlevel\", \"2.0beta2-or-earlier\");\n      }\n      catch (Exception e2)\n      {\n        h.put(ERROR + VERSION + \"SAX\",\n              \"ERROR attempting to load SAX version 2 class: \" + e.toString());\n        h.put(ERROR, ERROR_FOUND);\n          \n        try\n        {\n          Class clazz = ObjectFactory.findProviderClass(\n            SAX_VERSION1_CLASS, ObjectFactory.findClassLoader(), true);\n\n          Method method = clazz.getMethod(SAX_VERSION1_METHOD, oneStringArg);\n\n          h.put(VERSION + \"SAX-backlevel\", \"1.0\");\n        }\n        catch (Exception e3)\n        {\n          h.put(ERROR + VERSION + \"SAX-backlevel\",\n                \"ERROR attempting to load SAX version 1 class: \" + e3.toString());\n            \n        }\n      }\n    }\n  }\n\n  /** \n   * Manual table of known .jar sizes.  \n   * Only includes shipped versions of certain projects.\n   * key=jarsize, value=jarname ' from ' distro name\n   * Note assumption: two jars cannot have the same size!\n   *\n   * @see #getApparentVersion(String, long)\n   */\n  protected static Hashtable jarVersions = new Hashtable();\n\n  /** \n   * Static initializer for jarVersions table.  \n   * Doing this just once saves time and space.\n   *\n   * @see #getApparentVersion(String, long)\n   */\n  static \n  {\n    jarVersions.put(new Long(857192), \"xalan.jar from xalan-j_1_1\");\n    jarVersions.put(new Long(440237), \"xalan.jar from xalan-j_1_2\");\n    jarVersions.put(new Long(436094), \"xalan.jar from xalan-j_1_2_1\");\n    jarVersions.put(new Long(426249), \"xalan.jar from xalan-j_1_2_2\");\n    jarVersions.put(new Long(702536), \"xalan.jar from xalan-j_2_0_0\");\n    jarVersions.put(new Long(720930), \"xalan.jar from xalan-j_2_0_1\");\n    jarVersions.put(new Long(732330), \"xalan.jar from xalan-j_2_1_0\");\n    jarVersions.put(new Long(872241), \"xalan.jar from xalan-j_2_2_D10\");\n    jarVersions.put(new Long(882739), \"xalan.jar from xalan-j_2_2_D11\");\n    jarVersions.put(new Long(923866), \"xalan.jar from xalan-j_2_2_0\");\n    jarVersions.put(new Long(905872), \"xalan.jar from xalan-j_2_3_D1\");\n    jarVersions.put(new Long(906122), \"xalan.jar from xalan-j_2_3_0\");\n    jarVersions.put(new Long(906248), \"xalan.jar from xalan-j_2_3_1\");\n    jarVersions.put(new Long(983377), \"xalan.jar from xalan-j_2_4_D1\");    \n    jarVersions.put(new Long(997276), \"xalan.jar from xalan-j_2_4_0\");\n    jarVersions.put(new Long(1031036), \"xalan.jar from xalan-j_2_4_1\");    \n\n    jarVersions.put(new Long(596540), \"xsltc.jar from xalan-j_2_2_0\");\n    jarVersions.put(new Long(590247), \"xsltc.jar from xalan-j_2_3_D1\");\n    jarVersions.put(new Long(589914), \"xsltc.jar from xalan-j_2_3_0\");\n    jarVersions.put(new Long(589915), \"xsltc.jar from xalan-j_2_3_1\");\n    jarVersions.put(new Long(1306667), \"xsltc.jar from xalan-j_2_4_D1\");     \n    jarVersions.put(new Long(1328227), \"xsltc.jar from xalan-j_2_4_0\");\n    jarVersions.put(new Long(1344009), \"xsltc.jar from xalan-j_2_4_1\");\n    jarVersions.put(new Long(1348361), \"xsltc.jar from xalan-j_2_5_D1\");    \n\n    jarVersions.put(new Long(1268634), \"xsltc.jar-bundled from xalan-j_2_3_0\");\n\n    jarVersions.put(new Long(100196), \"xml-apis.jar from xalan-j_2_2_0 or xalan-j_2_3_D1\");\n    jarVersions.put(new Long(108484), \"xml-apis.jar from xalan-j_2_3_0, or xalan-j_2_3_1 from xml-commons-1.0.b2\");\n    jarVersions.put(new Long(109049), \"xml-apis.jar from xalan-j_2_4_0 from xml-commons RIVERCOURT1 branch\");\n    jarVersions.put(new Long(113749), \"xml-apis.jar from xalan-j_2_4_1 from factoryfinder-build of xml-commons RIVERCOURT1\");\n    jarVersions.put(new Long(124704), \"xml-apis.jar from tck-jaxp-1_2_0 branch of xml-commons\");\n    jarVersions.put(new Long(124724), \"xml-apis.jar from tck-jaxp-1_2_0 branch of xml-commons, tag: xml-commons-external_1_2_01\");\n\n    jarVersions.put(new Long(424490), \"xalan.jar from Xerces Tools releases - ERROR:DO NOT USE!\");\n\n    jarVersions.put(new Long(1591855), \"xerces.jar from xalan-j_1_1 from xerces-1...\");\n    jarVersions.put(new Long(1498679), \"xerces.jar from xalan-j_1_2 from xerces-1_2_0.bin\");\n    jarVersions.put(new Long(1484896), \"xerces.jar from xalan-j_1_2_1 from xerces-1_2_1.bin\");\n    jarVersions.put(new Long(804460),  \"xerces.jar from xalan-j_1_2_2 from xerces-1_2_2.bin\");\n    jarVersions.put(new Long(1499244), \"xerces.jar from xalan-j_2_0_0 from xerces-1_2_3.bin\");\n    jarVersions.put(new Long(1605266), \"xerces.jar from xalan-j_2_0_1 from xerces-1_3_0.bin\");\n    jarVersions.put(new Long(904030), \"xerces.jar from xalan-j_2_1_0 from xerces-1_4.bin\");\n    jarVersions.put(new Long(904030), \"xerces.jar from xerces-1_4_0.bin\");\n    jarVersions.put(new Long(1802885), \"xerces.jar from xerces-1_4_2.bin\");\n    jarVersions.put(new Long(1734594), \"xerces.jar from Xerces-J-bin.2.0.0.beta3\");\n    jarVersions.put(new Long(1808883), \"xerces.jar from xalan-j_2_2_D10,D11,D12 or xerces-1_4_3.bin\");\n    jarVersions.put(new Long(1812019), \"xerces.jar from xalan-j_2_2_0\");\n    jarVersions.put(new Long(1720292), \"xercesImpl.jar from xalan-j_2_3_D1\");\n    jarVersions.put(new Long(1730053), \"xercesImpl.jar from xalan-j_2_3_0 or xalan-j_2_3_1 from xerces-2_0_0\");\n    jarVersions.put(new Long(1728861), \"xercesImpl.jar from xalan-j_2_4_D1 from xerces-2_0_1\");    \n    jarVersions.put(new Long(972027), \"xercesImpl.jar from xalan-j_2_4_0 from xerces-2_1\");\n    jarVersions.put(new Long(831587), \"xercesImpl.jar from xalan-j_2_4_1 from xerces-2_2\"); \n    jarVersions.put(new Long(891817), \"xercesImpl.jar from xalan-j_2_5_D1 from xerces-2_3\");  \n    jarVersions.put(new Long(895924), \"xercesImpl.jar from xerces-2_4\");\n    jarVersions.put(new Long(1010806), \"xercesImpl.jar from Xerces-J-bin.2.6.2\");                        \n\n    jarVersions.put(new Long(37485), \"xalanj1compat.jar from xalan-j_2_0_0\");\n    jarVersions.put(new Long(38100), \"xalanj1compat.jar from xalan-j_2_0_1\");\n\n    jarVersions.put(new Long(18779), \"xalanservlet.jar from xalan-j_2_0_0\");\n    jarVersions.put(new Long(21453), \"xalanservlet.jar from xalan-j_2_0_1\");\n    jarVersions.put(new Long(24826), \"xalanservlet.jar from xalan-j_2_3_1 or xalan-j_2_4_1\");    \n    jarVersions.put(new Long(24831), \"xalanservlet.jar from xalan-j_2_4_1\");\n    \n    jarVersions.put(new Long(5618), \"jaxp.jar from jaxp1.0.1\");\n    jarVersions.put(new Long(136133), \"parser.jar from jaxp1.0.1\");\n    jarVersions.put(new Long(28404), \"jaxp.jar from jaxp-1.1\");\n    jarVersions.put(new Long(187162), \"crimson.jar from jaxp-1.1\");\n    jarVersions.put(new Long(801714), \"xalan.jar from jaxp-1.1\");\n    jarVersions.put(new Long(196399), \"crimson.jar from crimson-1.1.1\");\n    jarVersions.put(new Long(33323), \"jaxp.jar from crimson-1.1.1 or jakarta-ant-1.4.1b1\");\n    jarVersions.put(new Long(152717), \"crimson.jar from crimson-1.1.2beta2\");\n    jarVersions.put(new Long(88143), \"xml-apis.jar from crimson-1.1.2beta2\");\n    jarVersions.put(new Long(206384), \"crimson.jar from crimson-1.1.3 or jakarta-ant-1.4.1b1\");\n\n    jarVersions.put(new Long(136198), \"parser.jar from jakarta-ant-1.3 or 1.2\");\n    jarVersions.put(new Long(5537), \"jaxp.jar from jakarta-ant-1.3 or 1.2\");\n  }\n\n  /** Simple PrintWriter we send output to; defaults to System.out.  */\n  protected PrintWriter outWriter = new PrintWriter(System.out, true);\n\n  /**\n   * Bottleneck output: calls outWriter.println(s).  \n   * @param s String to print\n   */\n  protected void logMsg(String s)\n  {\n    outWriter.println(s);", "functions": [{"function_name": "main", "code": "  public static void main(String[] args)\n  {\n    PrintWriter sendOutputTo = new PrintWriter(System.out, true);\n\n    for (int i = 0; i < args.length; i++)\n    {\n      if (\"-out\".equalsIgnoreCase(args[i]))\n      {\n        i++;\n\n        if (i < args.length)\n        {\n          try\n          {\n            sendOutputTo = new PrintWriter(new FileWriter(args[i], true));\n          }\n          catch (Exception e)\n          {\n            System.err.println(\"# WARNING: -out \" + args[i] + \" threw \"\n                               + e.toString());\n          }\n        }\n        else\n        {\n          System.err.println(\n            \"# WARNING: -out argument should have a filename, output sent to console\");\n        }\n      }\n    }\n\n    EnvironmentCheck app = new EnvironmentCheck();\n    app.checkEnvironment(sendOutputTo);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "TRY", "CALL", "CATCH", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 7], [2, 8], [3, 9], [8, 10], [2, 11], [9, 12], [8, 13], [10, 14], [13, 15], [13, 16], [13, 17], [16, 18], [17, 19], [16, 20], [18, 21], [20, 22], [21, 23], [22, 24], [23, 25], [23, 26], [24, 27], [26, 28], [26, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 1], [8, 2], [9, 3], [10, 8], [11, 2], [12, 9], [13, 8], [14, 10], [15, 13], [16, 13], [17, 13], [18, 16], [19, 17], [20, 16], [21, 18], [22, 20], [23, 21], [24, 22], [25, 23], [26, 23], [27, 24], [28, 26], [29, 26], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "checkEnvironment", "code": "  public boolean checkEnvironment(PrintWriter pw)\n  {\n\n    if (null != pw)\n      outWriter = pw;\n\n    Hashtable hash = getEnvironmentHash();\n\n    boolean environmentHasErrors = writeEnvironmentReport(hash);\n\n    if (environmentHasErrors)\n    {\n      logMsg(\"# WARNING: Potential problems found in your environment!\");\n      logMsg(\"#    Check any 'ERROR' items above against the Xalan FAQs\");\n      logMsg(\"#    to correct potential problems with your classes/jars\");\n      if (null != outWriter)\n        outWriter.flush();\n      return false;\n    }\n    else\n    {\n      logMsg(\"# YAHOO! Your environment seems to be OK.\");\n      if (null != outWriter)\n        outWriter.flush();\n      return true;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "IF", "RETURN", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [4, 13], [6, 14], [7, 15], [8, 16], [1, 17], [9, 18], [10, 19], [1, 20], [1, 21], [1, 22], [8, 23], [16, 24], [17, 25], [10, 26], [19, 27], [20, 28], [21, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 4], [14, 6], [15, 7], [16, 8], [17, 1], [18, 9], [19, 10], [20, 1], [21, 1], [22, 1], [23, 8], [24, 16], [25, 17], [26, 10], [27, 19], [28, 20], [29, 21], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getEnvironmentHash", "code": "  public Hashtable getEnvironmentHash()\n  {\n    Hashtable hash = new Hashtable();\n\n    checkJAXPVersion(hash);\n    checkProcessorVersion(hash);\n    checkParserVersion(hash);\n    checkAntVersion(hash);\n    checkDOMVersion(hash);\n    checkSAXVersion(hash);\n    checkSystemProperties(hash);\n\n    return hash;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "writeEnvironmentReport", "code": "  protected boolean writeEnvironmentReport(Hashtable h)\n  {\n\n    if (null == h)\n    {\n      logMsg(\"# ERROR: writeEnvironmentReport called with null Hashtable\");\n      return false;\n    }\n\n    boolean errors = false;\n\n    logMsg(\n      \"#---- BEGIN writeEnvironmentReport($Revision: 337937 $): Useful stuff found: ----\");\n\n    for (Enumeration keys = h.keys(); \n         keys.hasMoreElements();\n        /* no increment portion */\n        )\n    {\n      Object key = keys.nextElement();\n      String keyStr = (String) key;\n      try\n      {\n        if (keyStr.startsWith(FOUNDCLASSES))\n        {\n          Vector v = (Vector) h.get(keyStr);\n          errors |= logFoundJars(v, keyStr);\n        }\n        else\n        {\n          if (keyStr.startsWith(ERROR))\n          {\n            errors = true;\n          }\n          logMsg(keyStr + \"=\" + h.get(keyStr));\n        }\n      }\n      catch (Exception e)\n      {\n        logMsg(\"Reading-\" + key + \"= threw: \" + e.toString());\n      }\n    }\n\n    logMsg(\n      \"#----- END writeEnvironmentReport: Useful properties found: -----\");\n\n    return errors;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CATCH", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [4, 9], [6, 10], [2, 11], [2, 12], [2, 13], [8, 14], [3, 15], [4, 16], [9, 17], [11, 18], [11, 19], [2, 20], [16, 21], [4, 22], [19, 23], [13, 24], [22, 25], [18, 26], [19, 27], [19, 28], [26, 29], [19, 30], [27, 31], [19, 32], [29, 33], [29, 34], [30, 35], [32, 36], [34, 37], [34, 38], [35, 39], [35, 40], [27, 41], [28, 42], [38, 43], [40, 44], [41, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 4], [10, 6], [11, 2], [12, 2], [13, 2], [14, 8], [15, 3], [16, 4], [17, 9], [18, 11], [19, 11], [20, 2], [21, 16], [22, 4], [23, 19], [24, 13], [25, 22], [26, 18], [27, 19], [28, 19], [29, 26], [30, 19], [31, 27], [32, 19], [33, 29], [34, 29], [35, 30], [36, 32], [37, 34], [38, 34], [39, 35], [40, 35], [41, 27], [42, 28], [43, 38], [44, 40], [45, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "logFoundJars", "code": "  protected boolean logFoundJars(Vector v, String desc)\n  {\n\n    if ((null == v) || (v.size() < 1))\n      return false;\n\n    boolean errors = false;\n\n    logMsg(\"#---- BEGIN Listing XML-related jars in: \" + desc + \" ----\");\n\n    for (int i = 0; i < v.size(); i++)\n    {\n      Hashtable subhash = (Hashtable) v.elementAt(i);\n\n      for (Enumeration keys = subhash.keys(); \n           keys.hasMoreElements();\n           /* no increment portion */\n          )\n      {\n        Object key = keys.nextElement();\n        String keyStr = (String) key;\n        try\n        {\n          if (keyStr.startsWith(ERROR))\n          {\n            errors = true;\n          }\n          logMsg(keyStr + \"=\" + subhash.get(keyStr));\n\n        }\n        catch (Exception e)\n        {\n          errors = true;\n          logMsg(\"Reading-\" + key + \"= threw: \" + e.toString());\n        }\n      }\n    }\n\n    logMsg(\"#----- END Listing XML-related jars in: \" + desc + \" -----\");\n\n    return errors;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CATCH", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [4, 10], [4, 11], [7, 12], [2, 13], [2, 14], [8, 15], [9, 16], [3, 17], [10, 18], [11, 19], [11, 20], [12, 21], [12, 22], [13, 23], [2, 24], [16, 25], [16, 26], [19, 27], [19, 28], [20, 29], [22, 30], [13, 31], [13, 32], [13, 33], [26, 34], [31, 35], [31, 36], [13, 37], [14, 38], [31, 39], [36, 40], [33, 41], [35, 42], [35, 43], [39, 44], [42, 45], [43, 46], [44, 47], [44, 48], [36, 49], [45, 50], [45, 51], [48, 52], [49, 53], [51, 54], [51, 55], [55, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 4], [11, 4], [12, 7], [13, 2], [14, 2], [15, 8], [16, 9], [17, 3], [18, 10], [19, 11], [20, 11], [21, 12], [22, 12], [23, 13], [24, 2], [25, 16], [26, 16], [27, 19], [28, 19], [29, 20], [30, 22], [31, 13], [32, 13], [33, 13], [34, 26], [35, 31], [36, 31], [37, 13], [38, 14], [39, 31], [40, 36], [41, 33], [42, 35], [43, 35], [44, 39], [45, 42], [46, 43], [47, 44], [48, 44], [49, 36], [50, 45], [51, 45], [52, 48], [53, 49], [54, 51], [55, 51], [56, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "appendEnvironmentReport", "code": "  public void appendEnvironmentReport(Node container, Document factory, Hashtable h)\n  {\n    if ((null == container) || (null == factory))\n    {\n      return;\n    }\n  \n    try\n    {\n      Element envCheckNode = factory.createElement(\"EnvironmentCheck\");\n      envCheckNode.setAttribute(\"version\", \"$Revision: 337937 $\");\n      container.appendChild(envCheckNode);\n\n      if (null == h)\n      {\n        Element statusNode = factory.createElement(\"status\");\n        statusNode.setAttribute(\"result\", \"ERROR\");\n        statusNode.appendChild(factory.createTextNode(\"appendEnvironmentReport called with null Hashtable!\"));\n        envCheckNode.appendChild(statusNode);\n        return;\n      }\n\n      boolean errors = false;\n\n      Element hashNode = factory.createElement(\"environment\");\n      envCheckNode.appendChild(hashNode);\n      \n      for (Enumeration keys = h.keys(); \n           keys.hasMoreElements();\n          /* no increment portion */\n          )\n      {\n        Object key = keys.nextElement();\n        String keyStr = (String) key;\n        try\n        {\n          if (keyStr.startsWith(FOUNDCLASSES))\n          {\n            Vector v = (Vector) h.get(keyStr);\n            errors |= appendFoundJars(hashNode, factory, v, keyStr);\n          }\n          else \n          {\n            if (keyStr.startsWith(ERROR))\n            {\n              errors = true;\n            }\n            Element node = factory.createElement(\"item\");\n            node.setAttribute(\"key\", keyStr);\n            node.appendChild(factory.createTextNode((String)h.get(keyStr)));\n            hashNode.appendChild(node);\n          }\n        }\n        catch (Exception e)\n        {\n          errors = true;\n          Element node = factory.createElement(\"item\");\n          node.setAttribute(\"key\", keyStr);\n          node.appendChild(factory.createTextNode(ERROR + \" Reading \" + key + \" threw: \" + e.toString()));\n          hashNode.appendChild(node);\n        }\n\t  }\n      Element statusNode = factory.createElement(\"status\");\n      statusNode.setAttribute(\"result\", (errors ? \"ERROR\" : \"OK\" ));\n      envCheckNode.appendChild(statusNode);\n    }\n    catch (Exception e2)\n    {\n      System.err.println(\"appendEnvironmentReport threw: \" + e2.toString());\n      e2.printStackTrace();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "PARAM", "CATCH", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [1, 14], [1, 15], [8, 16], [1, 17], [11, 18], [1, 19], [1, 20], [2, 21], [13, 22], [13, 23], [6, 24], [6, 25], [15, 26], [15, 27], [7, 28], [8, 29], [8, 30], [8, 31], [9, 32], [10, 33], [11, 34], [11, 35], [18, 36], [20, 37], [20, 38], [12, 39], [22, 40], [23, 41], [25, 42], [26, 43], [26, 44], [28, 45], [29, 46], [29, 47], [8, 48], [32, 49], [11, 50], [11, 51], [11, 52], [39, 53], [42, 54], [42, 55], [46, 56], [47, 57], [31, 58], [51, 59], [52, 60], [52, 61], [35, 62], [46, 63], [46, 64], [46, 65], [46, 66], [47, 67], [47, 68], [47, 69], [59, 70], [62, 71], [64, 72], [65, 73], [56, 74], [66, 75], [47, 76], [47, 77], [47, 78], [68, 79], [47, 80], [72, 81], [74, 82], [77, 83], [78, 84], [67, 85], [80, 86], [81, 87], [81, 88], [85, 89], [68, 90], [69, 91], [88, 92], [88, 93], [83, 94], [90, 95], [93, 96], [96, 97], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 1], [15, 1], [16, 8], [17, 1], [18, 11], [19, 1], [20, 1], [21, 2], [22, 13], [23, 13], [24, 6], [25, 6], [26, 15], [27, 15], [28, 7], [29, 8], [30, 8], [31, 8], [32, 9], [33, 10], [34, 11], [35, 11], [36, 18], [37, 20], [38, 20], [39, 12], [40, 22], [41, 23], [42, 25], [43, 26], [44, 26], [45, 28], [46, 29], [47, 29], [48, 8], [49, 32], [50, 11], [51, 11], [52, 11], [53, 39], [54, 42], [55, 42], [56, 46], [57, 47], [58, 31], [59, 51], [60, 52], [61, 52], [62, 35], [63, 46], [64, 46], [65, 46], [66, 46], [67, 47], [68, 47], [69, 47], [70, 59], [71, 62], [72, 64], [73, 65], [74, 56], [75, 66], [76, 47], [77, 47], [78, 47], [79, 68], [80, 47], [81, 72], [82, 74], [83, 77], [84, 78], [85, 67], [86, 80], [87, 81], [88, 81], [89, 85], [90, 68], [91, 69], [92, 88], [93, 88], [94, 83], [95, 90], [96, 93], [97, 96], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97]]}, {"function_name": "appendFoundJars", "code": "  protected boolean appendFoundJars(Node container, Document factory, \n        Vector v, String desc)\n  {\n\n    if ((null == v) || (v.size() < 1))\n      return false;\n\n    boolean errors = false;\n\n    for (int i = 0; i < v.size(); i++)\n    {\n      Hashtable subhash = (Hashtable) v.elementAt(i);\n\n      for (Enumeration keys = subhash.keys(); \n           keys.hasMoreElements();\n           /* no increment portion */\n          )\n      {\n        Object key = keys.nextElement();\n        try\n        {\n          String keyStr = (String) key;\n          if (keyStr.startsWith(ERROR))\n          {\n            errors = true;\n          }\n          Element node = factory.createElement(\"foundJar\");\n          node.setAttribute(\"name\", keyStr.substring(0, keyStr.indexOf(\"-\")));\n          node.setAttribute(\"desc\", keyStr.substring(keyStr.indexOf(\"-\") + 1));\n          node.appendChild(factory.createTextNode((String)subhash.get(keyStr)));\n          container.appendChild(node);\n        }\n        catch (Exception e)\n        {\n          errors = true;\n          Element node = factory.createElement(\"foundJar\");\n          node.appendChild(factory.createTextNode(ERROR + \" Reading \" + key + \" threw: \" + e.toString()));\n          container.appendChild(node);\n        }\n      }\n    }\n    return errors;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [4, 11], [2, 12], [2, 13], [9, 14], [3, 15], [10, 16], [11, 17], [11, 18], [12, 19], [2, 20], [17, 21], [17, 22], [18, 23], [12, 24], [12, 25], [24, 26], [24, 27], [24, 28], [24, 29], [12, 30], [13, 31], [26, 32], [24, 33], [24, 34], [24, 35], [24, 36], [28, 37], [25, 38], [26, 39], [26, 40], [26, 41], [34, 42], [35, 43], [35, 44], [36, 45], [36, 46], [27, 47], [40, 48], [32, 49], [41, 50], [43, 51], [45, 52], [45, 53], [47, 54], [28, 55], [48, 56], [49, 57], [42, 58], [51, 59], [51, 60], [52, 61], [55, 62], [56, 63], [56, 64], [60, 65], [64, 66], [64, 67], [67, 68], [68, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 4], [12, 2], [13, 2], [14, 9], [15, 3], [16, 10], [17, 11], [18, 11], [19, 12], [20, 2], [21, 17], [22, 17], [23, 18], [24, 12], [25, 12], [26, 24], [27, 24], [28, 24], [29, 24], [30, 12], [31, 13], [32, 26], [33, 24], [34, 24], [35, 24], [36, 24], [37, 28], [38, 25], [39, 26], [40, 26], [41, 26], [42, 34], [43, 35], [44, 35], [45, 36], [46, 36], [47, 27], [48, 40], [49, 32], [50, 41], [51, 43], [52, 45], [53, 45], [54, 47], [55, 28], [56, 48], [57, 49], [58, 42], [59, 51], [60, 51], [61, 52], [62, 55], [63, 56], [64, 56], [65, 60], [66, 64], [67, 64], [68, 67], [69, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "checkSystemProperties", "code": "  protected void checkSystemProperties(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    try\n    {\n      String javaVersion = System.getProperty(\"java.version\");\n\n      h.put(\"java.version\", javaVersion);\n    }\n    catch (SecurityException se)\n    {\n\n      h.put(\n        \"java.version\",\n        \"WARNING: SecurityException thrown accessing system version properties\");\n    }\n\n    try\n    {\n\n      String cp = System.getProperty(\"java.class.path\");\n\n      h.put(\"java.class.path\", cp);\n\n      Vector classpathJars = checkPathForJars(cp, jarNames);\n\n      if (null != classpathJars)\n        h.put(FOUNDCLASSES + \"java.class.path\", classpathJars);\n\n      String othercp = System.getProperty(\"sun.boot.class.path\");\n\n      if (null != othercp)\n      {\n        h.put(\"sun.boot.class.path\", othercp);\n\n        classpathJars = checkPathForJars(othercp, jarNames);\n\n        if (null != classpathJars)\n          h.put(FOUNDCLASSES + \"sun.boot.class.path\", classpathJars);\n      }\n\n      othercp = System.getProperty(\"java.ext.dirs\");\n\n      if (null != othercp)\n      {\n        h.put(\"java.ext.dirs\", othercp);\n\n        classpathJars = checkPathForJars(othercp, jarNames);\n\n        if (null != classpathJars)\n          h.put(FOUNDCLASSES + \"java.ext.dirs\", classpathJars);\n      }\n\n    }\n    catch (SecurityException se2)\n    {\n      h.put(\n        \"java.class.path\",\n        \"WARNING: SecurityException thrown accessing system classpath properties\");", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "IF", "PARAM", "CATCH", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [2, 13], [3, 14], [6, 15], [1, 16], [7, 17], [9, 18], [1, 19], [2, 20], [3, 21], [14, 22], [5, 23], [6, 24], [15, 25], [16, 26], [7, 27], [17, 28], [8, 29], [9, 30], [18, 31], [10, 32], [19, 33], [11, 34], [12, 35], [20, 36], [13, 37], [21, 38], [23, 39], [23, 40], [24, 41], [6, 42], [6, 43], [26, 44], [27, 45], [7, 46], [7, 47], [29, 48], [30, 49], [34, 50], [35, 51], [35, 52], [37, 53], [24, 54], [41, 55], [42, 56], [43, 57], [27, 58], [45, 59], [46, 60], [47, 61], [49, 62], [54, 63], [58, 64], [63, 65], [64, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 2], [14, 3], [15, 6], [16, 1], [17, 7], [18, 9], [19, 1], [20, 2], [21, 3], [22, 14], [23, 5], [24, 6], [25, 15], [26, 16], [27, 7], [28, 17], [29, 8], [30, 9], [31, 18], [32, 10], [33, 19], [34, 11], [35, 12], [36, 20], [37, 13], [38, 21], [39, 23], [40, 23], [41, 24], [42, 6], [43, 6], [44, 26], [45, 27], [46, 7], [47, 7], [48, 29], [49, 30], [50, 34], [51, 35], [52, 35], [53, 37], [54, 24], [55, 41], [56, 42], [57, 43], [58, 27], [59, 45], [60, 46], [61, 47], [62, 49], [63, 54], [64, 58], [65, 63], [66, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "checkPathForJars", "code": "  protected Vector checkPathForJars(String cp, String[] jars)\n  {\n\n    if ((null == cp) || (null == jars) || (0 == cp.length())\n            || (0 == jars.length))\n      return null;\n\n    Vector v = new Vector();\n    StringTokenizer st = new StringTokenizer(cp, File.pathSeparator);\n\n    while (st.hasMoreTokens())\n    {\n\n      String filename = st.nextToken();\n\n      for (int i = 0; i < jars.length; i++)\n      {\n        if (filename.indexOf(jars[i]) > -1)\n        {\n          File f = new File(filename);\n\n          if (f.exists())\n          {\n\n            try\n            {\n              Hashtable h = new Hashtable(2);\n              h.put(jars[i] + \"-path\", f.getAbsolutePath());\n             \n              if (!(\"xalan.jar\".equalsIgnoreCase(jars[i]))) {              \n                h.put(jars[i] + \"-apparent.version\",\n                    getApparentVersion(jars[i], f.length()));\n              }\n              v.addElement(h);\n            }\n            catch (Exception e)\n            {\n\n              /* no-op, don't add it  */\n            }\n          }\n          else\n          {\n            Hashtable h = new Hashtable(2);\n            h.put(jars[i] + \"-path\", WARNING + \" Classpath entry: \" \n                  + filename + \" does not exist\");\n            h.put(jars[i] + \"-apparent.version\", CLASS_NOTPRESENT);\n            v.addElement(h);\n          }\n        }\n      }\n    }\n\n    return v;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "TRY", "CALL", "CALL", "CALL", "CALL", "CATCH", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [5, 9], [5, 10], [2, 11], [2, 12], [3, 13], [4, 14], [9, 15], [10, 16], [10, 17], [11, 18], [16, 19], [17, 20], [17, 21], [11, 22], [12, 23], [20, 24], [20, 25], [21, 26], [21, 27], [22, 28], [11, 29], [26, 30], [27, 31], [22, 32], [22, 33], [28, 34], [28, 35], [32, 36], [32, 37], [32, 38], [33, 39], [32, 40], [32, 41], [32, 42], [38, 43], [38, 44], [38, 45], [41, 46], [42, 47], [42, 48], [37, 49], [38, 50], [44, 51], [38, 52], [46, 53], [47, 54], [47, 55], [48, 56], [49, 57], [52, 58], [52, 59], [45, 60], [55, 61], [44, 62], [59, 63], [60, 64], [61, 65], [62, 66], [62, 67], [66, 68], [67, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 5], [10, 5], [11, 2], [12, 2], [13, 3], [14, 4], [15, 9], [16, 10], [17, 10], [18, 11], [19, 16], [20, 17], [21, 17], [22, 11], [23, 12], [24, 20], [25, 20], [26, 21], [27, 21], [28, 22], [29, 11], [30, 26], [31, 27], [32, 22], [33, 22], [34, 28], [35, 28], [36, 32], [37, 32], [38, 32], [39, 33], [40, 32], [41, 32], [42, 32], [43, 38], [44, 38], [45, 38], [46, 41], [47, 42], [48, 42], [49, 37], [50, 38], [51, 44], [52, 38], [53, 46], [54, 47], [55, 47], [56, 48], [57, 49], [58, 52], [59, 52], [60, 45], [61, 55], [62, 44], [63, 59], [64, 60], [65, 61], [66, 62], [67, 62], [68, 66], [69, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "getApparentVersion", "code": "  protected String getApparentVersion(String jarName, long jarSize)\n  {\n    String foundSize = (String) jarVersions.get(new Long(jarSize));\n\n    if ((null != foundSize) && (foundSize.startsWith(jarName)))\n    {\n      return foundSize;\n    }\n    else\n    {\n      if (\"xerces.jar\".equalsIgnoreCase(jarName)\n              || \"xercesImpl.jar\".equalsIgnoreCase(jarName))\n      {\n\n        return jarName + \" \" + WARNING + CLASS_PRESENT;\n      }\n      else\n      {\n\n        return jarName + \" \" + CLASS_PRESENT;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [6, 10], [9, 11], [2, 12], [6, 13], [6, 14], [10, 15], [10, 16], [12, 17], [13, 18], [14, 19], [15, 20], [16, 21], [18, 22], [19, 23], [22, 24], [23, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 6], [11, 9], [12, 2], [13, 6], [14, 6], [15, 10], [16, 10], [17, 12], [18, 13], [19, 14], [20, 15], [21, 16], [22, 18], [23, 19], [24, 22], [25, 23], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "checkJAXPVersion", "code": "  protected void checkJAXPVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    final Class noArgs[] = new Class[0];\n    Class clazz = null;\n\n    try\n    {\n      final String JAXP1_CLASS = \"javax.xml.parsers.DocumentBuilder\";\n      final String JAXP11_METHOD = \"getDOMImplementation\";\n\n      clazz = ObjectFactory.findProviderClass(\n        JAXP1_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Method method = clazz.getMethod(JAXP11_METHOD, noArgs);\n\n      h.put(VERSION + \"JAXP\", \"1.1 or higher\");\n    }\n    catch (Exception e)\n    {\n      if (null != clazz)\n      {\n\n        h.put(ERROR + VERSION + \"JAXP\", \"1.0.1\");\n        h.put(ERROR, ERROR_FOUND);\n      }\n      else\n      {\n        h.put(ERROR + VERSION + \"JAXP\", CLASS_NOTPRESENT);\n        h.put(ERROR, ERROR_FOUND);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [6, 11], [1, 12], [1, 13], [2, 14], [4, 15], [10, 16], [11, 17], [12, 18], [12, 19], [7, 20], [13, 21], [8, 22], [9, 23], [3, 24], [15, 25], [17, 26], [19, 27], [21, 28], [21, 29], [11, 30], [11, 31], [11, 32], [11, 33], [31, 34], [33, 35], [33, 36], [34, 37], [34, 38], [36, 39], [36, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 6], [12, 1], [13, 1], [14, 2], [15, 4], [16, 10], [17, 11], [18, 12], [19, 12], [20, 7], [21, 13], [22, 8], [23, 9], [24, 3], [25, 15], [26, 17], [27, 19], [28, 21], [29, 21], [30, 11], [31, 11], [32, 11], [33, 11], [34, 31], [35, 33], [36, 33], [37, 34], [38, 34], [39, 36], [40, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "checkProcessorVersion", "code": "  protected void checkProcessorVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    try\n    {\n      final String XALAN1_VERSION_CLASS =\n        \"org.apache.xalan.xslt.XSLProcessorVersion\";\n\n      Class clazz = ObjectFactory.findProviderClass(\n        XALAN1_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      StringBuffer buf = new StringBuffer();\n      Field f = clazz.getField(\"PRODUCT\");\n\n      buf.append(f.get(null));\n      buf.append(';');\n\n      f = clazz.getField(\"LANGUAGE\");\n\n      buf.append(f.get(null));\n      buf.append(';');\n\n      f = clazz.getField(\"S_VERSION\");\n\n      buf.append(f.get(null));\n      buf.append(';');\n      h.put(VERSION + \"xalan1\", buf.toString());\n    }\n    catch (Exception e1)\n    {\n      h.put(VERSION + \"xalan1\", CLASS_NOTPRESENT);\n    }\n\n    try\n    {\n      final String XALAN2_VERSION_CLASS =\n        \"org.apache.xalan.processor.XSLProcessorVersion\";\n\n      Class clazz = ObjectFactory.findProviderClass(\n        XALAN2_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      StringBuffer buf = new StringBuffer();\n      Field f = clazz.getField(\"S_VERSION\");\n      buf.append(f.get(null));\n\n      h.put(VERSION + \"xalan2x\", buf.toString());\n    }\n    catch (Exception e2)\n    {\n      h.put(VERSION + \"xalan2x\", CLASS_NOTPRESENT);\n    }\n    try\n    {\n      final String XALAN2_2_VERSION_CLASS =\n        \"org.apache.xalan.Version\";\n      final String XALAN2_2_VERSION_METHOD = \"getVersion\";\n      final Class noArgs[] = new Class[0];\n\n      Class clazz = ObjectFactory.findProviderClass(\n        XALAN2_2_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Method method = clazz.getMethod(XALAN2_2_VERSION_METHOD, noArgs);\n      Object returnValue = method.invoke(null, new Object[0]);\n\n      h.put(VERSION + \"xalan2_2\", (String)returnValue);\n    }\n    catch (Exception e2)\n    {\n      h.put(VERSION + \"xalan2_2\", CLASS_NOTPRESENT);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "TRY", "IF", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [4, 23], [1, 24], [2, 25], [2, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 32], [3, 33], [3, 34], [3, 35], [4, 36], [23, 37], [6, 38], [24, 39], [7, 40], [8, 41], [9, 42], [11, 43], [12, 44], [13, 45], [25, 46], [25, 47], [26, 48], [14, 49], [15, 50], [16, 51], [17, 52], [18, 53], [27, 54], [27, 55], [28, 56], [29, 57], [30, 58], [31, 59], [32, 60], [33, 61], [34, 62], [35, 63], [19, 64], [20, 65], [21, 66], [22, 67], [36, 68], [38, 69], [39, 70], [40, 71], [42, 72], [42, 73], [10, 74], [45, 75], [47, 76], [48, 77], [49, 78], [51, 79], [51, 80], [53, 81], [55, 82], [57, 83], [58, 84], [60, 85], [61, 86], [63, 87], [64, 88], [66, 89], [66, 90], [69, 91], [40, 92], [75, 93], [81, 94], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 4], [24, 1], [25, 2], [26, 2], [27, 3], [28, 3], [29, 3], [30, 3], [31, 3], [32, 3], [33, 3], [34, 3], [35, 3], [36, 4], [37, 23], [38, 6], [39, 24], [40, 7], [41, 8], [42, 9], [43, 11], [44, 12], [45, 13], [46, 25], [47, 25], [48, 26], [49, 14], [50, 15], [51, 16], [52, 17], [53, 18], [54, 27], [55, 27], [56, 28], [57, 29], [58, 30], [59, 31], [60, 32], [61, 33], [62, 34], [63, 35], [64, 19], [65, 20], [66, 21], [67, 22], [68, 36], [69, 38], [70, 39], [71, 40], [72, 42], [73, 42], [74, 10], [75, 45], [76, 47], [77, 48], [78, 49], [79, 51], [80, 51], [81, 53], [82, 55], [83, 57], [84, 58], [85, 60], [86, 61], [87, 63], [88, 64], [89, 66], [90, 66], [91, 69], [92, 40], [93, 75], [94, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "checkParserVersion", "code": "  protected void checkParserVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    try\n    {\n      final String XERCES1_VERSION_CLASS = \"org.apache.xerces.framework.Version\";\n\n      Class clazz = ObjectFactory.findProviderClass(\n        XERCES1_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Field f = clazz.getField(\"fVersion\");\n      String parserVersion = (String) f.get(null);\n\n      h.put(VERSION + \"xerces1\", parserVersion);\n    }\n    catch (Exception e)\n    {\n      h.put(VERSION + \"xerces1\", CLASS_NOTPRESENT);\n    }\n\n    try\n    {\n      final String XERCES2_VERSION_CLASS = \"org.apache.xerces.impl.Version\";\n\n      Class clazz = ObjectFactory.findProviderClass(\n        XERCES2_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Field f = clazz.getField(\"fVersion\");\n      String parserVersion = (String) f.get(null);\n\n      h.put(VERSION + \"xerces2\", parserVersion);\n    }\n    catch (Exception e)\n    {\n      h.put(VERSION + \"xerces2\", CLASS_NOTPRESENT);\n    }\n\n    try\n    {\n      final String CRIMSON_CLASS = \"org.apache.crimson.parser.Parser2\";\n\n      Class clazz = ObjectFactory.findProviderClass(\n        CRIMSON_CLASS, ObjectFactory.findClassLoader(), true);\n\n      h.put(VERSION + \"crimson\", CLASS_PRESENT);\n    }\n    catch (Exception e)\n    {\n      h.put(VERSION + \"crimson\", CLASS_NOTPRESENT);", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "TRY", "IF", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [4, 19], [1, 20], [2, 21], [3, 22], [4, 23], [19, 24], [6, 25], [20, 26], [7, 27], [8, 28], [9, 29], [21, 30], [11, 31], [12, 32], [13, 33], [14, 34], [22, 35], [16, 36], [17, 37], [18, 38], [23, 39], [25, 40], [26, 41], [27, 42], [27, 43], [29, 44], [30, 45], [10, 46], [31, 47], [32, 48], [32, 49], [34, 50], [35, 51], [15, 52], [36, 53], [37, 54], [37, 55], [40, 56], [44, 57], [46, 58], [50, 59], [52, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 3], [15, 3], [16, 3], [17, 3], [18, 3], [19, 4], [20, 1], [21, 2], [22, 3], [23, 4], [24, 19], [25, 6], [26, 20], [27, 7], [28, 8], [29, 9], [30, 21], [31, 11], [32, 12], [33, 13], [34, 14], [35, 22], [36, 16], [37, 17], [38, 18], [39, 23], [40, 25], [41, 26], [42, 27], [43, 27], [44, 29], [45, 30], [46, 10], [47, 31], [48, 32], [49, 32], [50, 34], [51, 35], [52, 15], [53, 36], [54, 37], [55, 37], [56, 40], [57, 44], [58, 46], [59, 50], [60, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "checkAntVersion", "code": "  protected void checkAntVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    try\n    {\n      final String ANT_VERSION_CLASS = \"org.apache.tools.ant.Main\";\n      final Class noArgs[] = new Class[0];\n\n      Class clazz = ObjectFactory.findProviderClass(\n        ANT_VERSION_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Method method = clazz.getMethod(ANT_VERSION_METHOD, noArgs);\n      Object returnValue = method.invoke(null, new Object[0]);\n\n      h.put(VERSION + \"ant\", (String)returnValue);\n    }\n    catch (Exception e)\n    {\n      h.put(VERSION + \"ant\", CLASS_NOTPRESENT);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [1, 11], [2, 12], [10, 13], [4, 14], [11, 15], [5, 16], [6, 17], [7, 18], [9, 19], [12, 20], [14, 21], [15, 22], [16, 23], [18, 24], [18, 25], [8, 26], [21, 27], [16, 28], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 1], [12, 2], [13, 10], [14, 4], [15, 11], [16, 5], [17, 6], [18, 7], [19, 9], [20, 12], [21, 14], [22, 15], [23, 16], [24, 18], [25, 18], [26, 8], [27, 21], [28, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "checkDOMVersion", "code": "  protected void checkDOMVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    final String DOM_LEVEL2_CLASS = \"org.w3c.dom.Document\";\n    final String DOM_LEVEL2WD_CLASS = \"org.w3c.dom.Node\";\n    final String DOM_LEVEL2FD_CLASS = \"org.w3c.dom.Node\";\n    final Class twoStringArgs[] = { java.lang.String.class,\n                                    java.lang.String.class };\n\n    try\n    {\n      Class clazz = ObjectFactory.findProviderClass(\n        DOM_LEVEL2_CLASS, ObjectFactory.findClassLoader(), true);\n\n      Method method = clazz.getMethod(DOM_LEVEL2_METHOD, twoStringArgs);\n\n      h.put(VERSION + \"DOM\", \"2.0\");\n\n      try\n      {\n        clazz = ObjectFactory.findProviderClass(\n          DOM_LEVEL2WD_CLASS, ObjectFactory.findClassLoader(), true);\n\n        method = clazz.getMethod(DOM_LEVEL2WD_METHOD, twoStringArgs);\n\n        h.put(ERROR + VERSION + \"DOM.draftlevel\", \"2.0wd\");\n        h.put(ERROR, ERROR_FOUND);\n      }\n      catch (Exception e2)\n      {\n        try\n        {\n          clazz = ObjectFactory.findProviderClass(\n            DOM_LEVEL2FD_CLASS, ObjectFactory.findClassLoader(), true);\n\n          method = clazz.getMethod(DOM_LEVEL2FD_METHOD, twoStringArgs);\n\n          h.put(VERSION + \"DOM.draftlevel\", \"2.0fd\");\n        }\n        catch (Exception e3)\n        {\n          h.put(ERROR + VERSION + \"DOM.draftlevel\", \"2.0unknown\");\n          h.put(ERROR, ERROR_FOUND);\n        }\n      }\n    }\n    catch (Exception e)\n    {\n      h.put(ERROR + VERSION + \"DOM\",\n            \"ERROR attempting to load DOM level 2 class: \" + e.toString());\n      h.put(ERROR, ERROR_FOUND);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CATCH", "TRY", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CATCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "TRY", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [6, 12], [9, 13], [1, 14], [3, 15], [4, 16], [5, 17], [6, 18], [12, 19], [8, 20], [8, 21], [13, 22], [9, 23], [9, 24], [9, 25], [9, 26], [14, 27], [14, 28], [10, 29], [11, 30], [18, 31], [21, 32], [21, 33], [22, 34], [24, 35], [24, 36], [25, 37], [26, 38], [28, 39], [30, 40], [30, 41], [32, 42], [32, 43], [33, 44], [33, 45], [22, 46], [22, 47], [22, 48], [36, 49], [36, 50], [38, 51], [38, 52], [34, 53], [34, 54], [46, 55], [46, 56], [47, 57], [48, 58], [54, 59], [54, 60], [56, 61], [58, 62], [58, 63], [60, 64], [60, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 6], [13, 9], [14, 1], [15, 3], [16, 4], [17, 5], [18, 6], [19, 12], [20, 8], [21, 8], [22, 13], [23, 9], [24, 9], [25, 9], [26, 9], [27, 14], [28, 14], [29, 10], [30, 11], [31, 18], [32, 21], [33, 21], [34, 22], [35, 24], [36, 24], [37, 25], [38, 26], [39, 28], [40, 30], [41, 30], [42, 32], [43, 32], [44, 33], [45, 33], [46, 22], [47, 22], [48, 22], [49, 36], [50, 36], [51, 38], [52, 38], [53, 34], [54, 34], [55, 46], [56, 46], [57, 47], [58, 48], [59, 54], [60, 54], [61, 56], [62, 58], [63, 58], [64, 60], [65, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "checkSAXVersion", "code": "  protected void checkSAXVersion(Hashtable h)\n  {\n\n    if (null == h)\n      h = new Hashtable();\n\n    final String SAX_VERSION1_CLASS = \"org.xml.sax.Parser\";\n    final String SAX_VERSION2_CLASS = \"org.xml.sax.XMLReader\";\n    final String SAX_VERSION2BETA_CLASSNF = \"org.xml.sax.helpers.AttributesImpl\";\n    final Class oneStringArg[] = { java.lang.String.class };\n    final Class attributesArg[] = { org.xml.sax.Attributes.class };\n\n    try\n    {\n      Class clazz = ObjectFactory.findProviderClass(\n        SAX_VERSION2BETA_CLASSNF, ObjectFactory.findClassLoader(), true);\n\n      Method method = clazz.getMethod(SAX_VERSION2BETA_METHODNF, attributesArg);\n\n      h.put(VERSION + \"SAX\", \"2.0\");\n    }\n    catch (Exception e)\n    {\n      h.put(ERROR + VERSION + \"SAX\",\n            \"ERROR attempting to load SAX version 2 class: \" + e.toString());\n      h.put(ERROR, ERROR_FOUND);\n            \n      try\n      {\n        Class clazz = ObjectFactory.findProviderClass(\n          SAX_VERSION2_CLASS, ObjectFactory.findClassLoader(), true);\n\n        Method method = clazz.getMethod(SAX_VERSION2_METHOD, oneStringArg);\n\n        h.put(VERSION + \"SAX-backlevel\", \"2.0beta2-or-earlier\");\n      }\n      catch (Exception e2)\n      {\n        h.put(ERROR + VERSION + \"SAX\",\n              \"ERROR attempting to load SAX version 2 class: \" + e.toString());\n        h.put(ERROR, ERROR_FOUND);\n          \n        try\n        {\n          Class clazz = ObjectFactory.findProviderClass(\n            SAX_VERSION1_CLASS, ObjectFactory.findClassLoader(), true);\n\n          Method method = clazz.getMethod(SAX_VERSION1_METHOD, oneStringArg);\n\n          h.put(VERSION + \"SAX-backlevel\", \"1.0\");\n        }\n        catch (Exception e3)\n        {\n          h.put(ERROR + VERSION + \"SAX-backlevel\",\n                \"ERROR attempting to load SAX version 1 class: \" + e3.toString());", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "BINARY_OP", "TRY", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "TRY", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [7, 12], [9, 13], [1, 14], [4, 15], [5, 16], [6, 17], [7, 18], [12, 19], [13, 20], [13, 21], [13, 22], [9, 23], [9, 24], [14, 25], [14, 26], [10, 27], [11, 28], [18, 29], [20, 30], [13, 31], [24, 32], [24, 33], [26, 34], [28, 35], [28, 36], [30, 37], [30, 38], [30, 39], [20, 40], [20, 41], [31, 42], [31, 43], [21, 44], [22, 45], [32, 46], [32, 47], [33, 48], [33, 49], [30, 50], [41, 51], [41, 52], [43, 53], [45, 54], [45, 55], [37, 56], [50, 57], [50, 58], [38, 59], [39, 60], [51, 61], [51, 62], [52, 63], [52, 64], [56, 65], [56, 66], [58, 67], [60, 68], [60, 69], [65, 70], [65, 71], [66, 72], [66, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 7], [13, 9], [14, 1], [15, 4], [16, 5], [17, 6], [18, 7], [19, 12], [20, 13], [21, 13], [22, 13], [23, 9], [24, 9], [25, 14], [26, 14], [27, 10], [28, 11], [29, 18], [30, 20], [31, 13], [32, 24], [33, 24], [34, 26], [35, 28], [36, 28], [37, 30], [38, 30], [39, 30], [40, 20], [41, 20], [42, 31], [43, 31], [44, 21], [45, 22], [46, 32], [47, 32], [48, 33], [49, 33], [50, 30], [51, 41], [52, 41], [53, 43], [54, 45], [55, 45], [56, 37], [57, 50], [58, 50], [59, 38], [60, 39], [61, 51], [62, 51], [63, 52], [64, 52], [65, 56], [66, 56], [67, 58], [68, 60], [69, 60], [70, 65], [71, 65], [72, 66], [73, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "logMsg", "code": "  protected void logMsg(String s)\n  {\n    outWriter.println(s);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7767", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/extensions/ExtensionHandlerJavaClass.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionHandlerJavaClass", "code": "public class ExtensionHandlerJavaClass extends ExtensionHandlerJava\n{\n\n  private Class m_classObj = null;\n\n  /**\n   * Provides a default Instance for use by elements that need to call \n   * an instance method.\n   */\n\n  private Object m_defaultInstance = null;\n\n\n  /**\n   * Construct a new extension namespace handler given all the information\n   * needed. \n   * @param namespaceUri the extension namespace URI that I'm implementing\n   * @param scriptLang   language of code implementing the extension\n   * @param className    the fully qualified class name of the class\n   */\n  public ExtensionHandlerJavaClass(String namespaceUri,\n                                   String scriptLang,\n                                   String className)\n  {\n    super(namespaceUri, scriptLang, className);\n    try\n    {\n      m_classObj = getClassForName(className);\n    }\n    catch (ClassNotFoundException e)\n    {\n    }\n  }\n\n\n  /**\n   * Tests whether a certain function name is known within this namespace.\n   * Simply looks for a method with the appropriate name.  There is\n   * no information regarding the arguments to the function call or\n   * whether the method implementing the function is a static method or\n   * an instance method.\n   * @param function name of the function being tested\n   * @return true if its known, false if not.\n   */\n\n  public boolean isFunctionAvailable(String function) \n  {\n    Method[] methods = m_classObj.getMethods();\n    int nMethods = methods.length;\n    for (int i = 0; i < nMethods; i++)\n    {\n      if (methods[i].getName().equals(function))\n        return true;\n    }\n    return false;\n  }\n\n\n  /**\n   * Tests whether a certain element name is known within this namespace.\n   * Looks for a method with the appropriate name and signature.\n   * This method examines both static and instance methods.\n   * @param element name of the element being tested\n   * @return true if its known, false if not.\n   */\n\n  public boolean isElementAvailable(String element) \n  {\n    Method[] methods = m_classObj.getMethods();\n    int nMethods = methods.length;\n    for (int i = 0; i < nMethods; i++)\n    {\n      if (methods[i].getName().equals(element))\n      {\n        Class[] paramTypes = methods[i].getParameterTypes();\n        if ( (paramTypes.length == 2)\n          && paramTypes[0].isAssignableFrom(\n                                     org.apache.xalan.extensions.XSLProcessorContext.class)\n          && paramTypes[1].isAssignableFrom(org.apache.xalan.templates.ElemExtensionCall.class) )\n        {\n          return true;\n        }\n      }\n    }\n    return false;\n  }\n  \n  /**\n   * Process a call to a function in the java class represented by\n   * this <code>ExtensionHandlerJavaClass<code>.\n   * There are three possible types of calls:\n   * <pre>\n   *   Constructor:\n   *     classns:new(arg1, arg2, ...)\n   *\n   *   Static method:\n   *     classns:method(arg1, arg2, ...)\n   *\n   *   Instance method:\n   *     classns:method(obj, arg1, arg2, ...)\n   * </pre>\n   * We use the following rules to determine the type of call made:\n   * <ol type=\"1\">\n   * <li>If the function name is \"new\", call the best constructor for\n   *     class represented by the namespace URI</li>\n   * <li>If the first argument to the function is of the class specified\n   *     in the namespace or is a subclass of that class, look for the best\n   *     method of the class specified in the namespace with the specified\n   *     arguments.  Compare all static and instance methods with the correct\n   *     method name.  For static methods, use all arguments in the compare.\n   *     For instance methods, use all arguments after the first.</li>\n   * <li>Otherwise, select the best static or instance method matching\n   *     all of the arguments.  If the best method is an instance method,\n   *     call the function using a default object, creating it if needed.</li>\n   * </ol>\n   *\n   * @param funcName Function name.\n   * @param args     The arguments of the function call.\n   * @param methodKey A key that uniquely identifies this class and method call.\n   * @param exprContext The context in which this expression is being executed.\n   * @return the return value of the function evaluation.\n   * @throws TransformerException\n   */\n\n  public Object callFunction (String funcName, \n                              Vector args, \n                              Object methodKey,\n                              ExpressionContext exprContext)\n    throws TransformerException \n  {\n\n    Object[] methodArgs;\n    Object[][] convertedArgs;\n    Class[] paramTypes;\n\n    try\n    {\n\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        Constructor c = (Constructor) getFromCache(methodKey, null, methodArgs);\n        if (c != null && !TransformerImpl.S_DEBUG)\n        {\n          try\n          {\n            paramTypes = c.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            return c.newInstance(convertedArgs[0]);\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n        c = MethodResolver.getConstructor(m_classObj, \n                                          methodArgs,\n                                          convertedArgs,\n                                          exprContext);\n        putToCache(methodKey, null, methodArgs, c);\n        if (TransformerImpl.S_DEBUG) {\n            TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject();\n            trans.getTraceManager().fireExtensionEvent(new ExtensionEvent(trans, c, convertedArgs[0]));\n            Object result;\n            try {            \n                result = c.newInstance(convertedArgs[0]);\n            } catch (Exception e) {\n                throw e;\n            } finally {\n                trans.getTraceManager().fireExtensionEndEvent(new ExtensionEvent(trans, c, convertedArgs[0]));\n            }\n            return result;\n        } else\n            return c.newInstance(convertedArgs[0]);\n     \n        int resolveType;\n        Object targetObject = null;\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        Method m = (Method) getFromCache(methodKey, null, methodArgs);\n        if (m != null && !TransformerImpl.S_DEBUG)\n        {\n          try\n          {\n            paramTypes = m.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            if (Modifier.isStatic(m.getModifiers()))\n              return m.invoke(null, convertedArgs[0]);\n            else\n            {\n              int nTargetArgs = convertedArgs[0].length;\n              if (ExpressionContext.class.isAssignableFrom(paramTypes[0]))\n                nTargetArgs--;\n              if (methodArgs.length <= nTargetArgs)\n                return m.invoke(m_defaultInstance, convertedArgs[0]);\n              else  \n              {\n                targetObject = methodArgs[0];\n                \n                if (targetObject instanceof XObject)\n                  targetObject = ((XObject) targetObject).object();\n                  \n                return m.invoke(targetObject, convertedArgs[0]);\n              }\n            }\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n\n        if (args.size() > 0)\n        {\n          targetObject = methodArgs[0];\n\n          if (targetObject instanceof XObject)\n            targetObject = ((XObject) targetObject).object();\n\n          if (m_classObj.isAssignableFrom(targetObject.getClass()))\n            resolveType = MethodResolver.DYNAMIC;\n          else\n            resolveType = MethodResolver.STATIC_AND_INSTANCE;\n        }\n        else\n        {\n          targetObject = null;\n          resolveType = MethodResolver.STATIC_AND_INSTANCE;\n        }\n\n        m = MethodResolver.getMethod(m_classObj,\n                                     funcName,\n                                     methodArgs, \n                                     convertedArgs,\n                                     exprContext,\n                                     resolveType);\n        putToCache(methodKey, null, methodArgs, m);\n\n          if (TransformerImpl.S_DEBUG) {\n            TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject();\n            trans.getTraceManager().fireExtensionEvent(m, targetObject, convertedArgs[0]);\n            Object result;\n            try {\n                result = m.invoke(targetObject, convertedArgs[0]);\n            } catch (Exception e) {\n                throw e;\n            } finally {\n                trans.getTraceManager().fireExtensionEndEvent(m, targetObject, convertedArgs[0]);\n            }\n            return result;\n          } else                  \n            return m.invoke(targetObject, convertedArgs[0]);\n        \n        \n          if (Modifier.isStatic(m.getModifiers())) {\n            if (TransformerImpl.S_DEBUG) {\n              TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject();\n              trans.getTraceManager().fireExtensionEvent(m, null, convertedArgs[0]);\n              Object result;\n              try {\n                  result = m.invoke(null, convertedArgs[0]);\n              } catch (Exception e) {\n                throw e;\n              } finally {\n                trans.getTraceManager().fireExtensionEndEvent(m, null, convertedArgs[0]);\n              }\n              return result;\n            } else                  \n              return m.invoke(null, convertedArgs[0]);\n          }\n          else\n          {\n            if (null == m_defaultInstance)\n            {\n              if (TransformerImpl.S_DEBUG) {\n                TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject();\n                trans.getTraceManager().fireExtensionEvent(new ExtensionEvent(trans, m_classObj));\n                try {\n                    m_defaultInstance = m_classObj.newInstance();\n                } catch (Exception e) {\n                    throw e;\n                } finally {\n                    trans.getTraceManager().fireExtensionEndEvent(new ExtensionEvent(trans, m_classObj));\n                }\n              }    else\n                  m_defaultInstance = m_classObj.newInstance();\n            }\n            if (TransformerImpl.S_DEBUG) {\n              TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject();\n              trans.getTraceManager().fireExtensionEvent(m, m_defaultInstance, convertedArgs[0]);\n              Object result;\n              try {\n                result = m.invoke(m_defaultInstance, convertedArgs[0]);\n              } catch (Exception e) {\n                throw e;\n              } finally {\n                trans.getTraceManager().fireExtensionEndEvent(m, m_defaultInstance, convertedArgs[0]);\n              }\n              return result;\n            } else                  \n              return m.invoke(m_defaultInstance, convertedArgs[0]);\n          }  \n        \n\n      \n    }\n    catch (InvocationTargetException ite)\n    {\n      Throwable resultException = ite;\n      Throwable targetException = ite.getTargetException();\n \n      if (targetException instanceof TransformerException)\n        throw ((TransformerException)targetException);\n      else if (targetException != null)\n        resultException = targetException;\n            \n      throw new TransformerException(resultException);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException(e);\n    }\n  }\n\n  /**\n   * Process a call to an XPath extension function\n   *\n   * @param extFunction The XPath extension function\n   * @param args The arguments of the function call.\n   * @param exprContext The context in which this expression is being executed.\n   * @return the return value of the function evaluation.\n   * @throws TransformerException\n   */\n  public Object callFunction(FuncExtFunction extFunction,\n                             Vector args,\n                             ExpressionContext exprContext)\n      throws TransformerException\n  {\n    return callFunction(extFunction.getFunctionName(), args, \n                        extFunction.getMethodKey(), exprContext);\n  }\n\n  /**\n   * Process a call to this extension namespace via an element. As a side\n   * effect, the results are sent to the TransformerImpl's result tree. \n   * We invoke the static or instance method in the class represented by\n   * by the namespace URI.  If we don't already have an instance of this class,\n   * we create one upon the first call.\n   *\n   * @param localPart      Element name's local part.\n   * @param element        The extension element being processed.\n   * @param transformer      Handle to TransformerImpl.\n   * @param stylesheetTree The compiled stylesheet tree.\n   * @param sourceTree     The root of the source tree (but don't assume\n   *                       it's a Document).\n   * @param sourceNode     The current context node.\n   * @param mode           The current mode.\n   * @param methodKey      A key that uniquely identifies this element call.\n   * @throws IOException           if loading trouble\n   * @throws TransformerException          if parsing trouble\n   */\n\n  public void processElement(String localPart,\n                             ElemTemplateElement element,\n                             TransformerImpl transformer,\n                             Stylesheet stylesheetTree,\n                             Object methodKey)\n    throws TransformerException, IOException\n  {\n    Object result = null;\n\n    Method m = (Method) getFromCache(methodKey, null, null);\n    if (null == m)\n    {\n      try\n      {\n        m = MethodResolver.getElementMethod(m_classObj, localPart);\n        if ( (null == m_defaultInstance) && !Modifier.isStatic(m.getModifiers()) ) {\n          if (TransformerImpl.S_DEBUG) {            \n            transformer.getTraceManager().fireExtensionEvent(new ExtensionEvent(transformer, m_classObj));\n            try {\n              m_defaultInstance = m_classObj.newInstance();\n            } catch (Exception e) {\n              throw e;\n            } finally {\n              transformer.getTraceManager().fireExtensionEndEvent(new ExtensionEvent(transformer, m_classObj));\n            }\n          } else \n            m_defaultInstance = m_classObj.newInstance();\n        }\n      }\n      catch (Exception e)\n      {\n        throw new TransformerException (e.getMessage (), e);\n      }\n      putToCache(methodKey, null, null, m);\n    }\n\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, \n                                                      stylesheetTree);\n\n    try\n    {\n      if (TransformerImpl.S_DEBUG) {\n        transformer.getTraceManager().fireExtensionEvent(m, m_defaultInstance, new Object[] {xpc, element});\n        try {\n          result = m.invoke(m_defaultInstance, new Object[] {xpc, element});\n        } catch (Exception e) {\n          throw e;\n        } finally {\n          transformer.getTraceManager().fireExtensionEndEvent(m, m_defaultInstance, new Object[] {xpc, element});\n        }\n      } else                  \n        result = m.invoke(m_defaultInstance, new Object[] {xpc, element});\n    }\n    catch (InvocationTargetException e)\n    {\n      Throwable targetException = e.getTargetException();\n      \n      if (targetException instanceof TransformerException)\n        throw (TransformerException)targetException;\n      else if (targetException != null)\n        throw new TransformerException (targetException.getMessage (), targetException);\n      else\n        throw new TransformerException (e.getMessage (), e);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException (e.getMessage (), e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree (stylesheetTree, result);", "functions": [{"function_name": "isFunctionAvailable", "code": "  public boolean isFunctionAvailable(String function) \n  {\n    Method[] methods = m_classObj.getMethods();\n    int nMethods = methods.length;\n    for (int i = 0; i < nMethods; i++)\n    {\n      if (methods[i].getName().equals(function))\n        return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [8, 10], [2, 11], [10, 12], [8, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 8], [11, 2], [12, 10], [13, 8], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isElementAvailable", "code": "  public boolean isElementAvailable(String element) \n  {\n    Method[] methods = m_classObj.getMethods();\n    int nMethods = methods.length;\n    for (int i = 0; i < nMethods; i++)\n    {\n      if (methods[i].getName().equals(element))\n      {\n        Class[] paramTypes = methods[i].getParameterTypes();\n        if ( (paramTypes.length == 2)\n          && paramTypes[0].isAssignableFrom(\n                                     org.apache.xalan.extensions.XSLProcessorContext.class)\n          && paramTypes[1].isAssignableFrom(org.apache.xalan.templates.ElemExtensionCall.class) )\n        {\n          return true;\n        }\n      }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [2, 10], [8, 11], [8, 12], [8, 13], [8, 14], [11, 15], [11, 16], [15, 17], [16, 18], [15, 19], [17, 20], [12, 21], [15, 22], [17, 23], [20, 24], [17, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 2], [11, 8], [12, 8], [13, 8], [14, 8], [15, 11], [16, 11], [17, 15], [18, 16], [19, 15], [20, 17], [21, 12], [22, 15], [23, 17], [24, 20], [25, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "callFunction", "code": "  public Object callFunction (String funcName, \n                              Vector args, \n                              Object methodKey,\n                              ExpressionContext exprContext)\n    throws TransformerException \n  {\n\n    Object[] methodArgs;\n    Object[][] convertedArgs;\n    Class[] paramTypes;\n\n    try\n    {\n\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        Constructor c = (Constructor) getFromCache(methodKey, null, methodArgs);\n        if (c != null && !TransformerImpl.S_DEBUG)\n        {\n          try\n          {\n            paramTypes = c.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            return c.newInstance(convertedArgs[0]);\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n        c = MethodResolver.getConstructor(m_classObj, \n                                          methodArgs,\n                                          convertedArgs,\n                                          exprContext);\n        putToCache(methodKey, null, methodArgs, c);\n        if (TransformerImpl.S_DEBUG) {\n            TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject();\n            trans.getTraceManager().fireExtensionEvent(new ExtensionEvent(trans, c, convertedArgs[0]));\n            Object result;\n            try {            \n                result = c.newInstance(convertedArgs[0]);\n            } catch (Exception e) {\n                throw e;\n            } finally {\n                trans.getTraceManager().fireExtensionEndEvent(new ExtensionEvent(trans, c, convertedArgs[0]));\n            }\n            return result;\n        } else\n            return c.newInstance(convertedArgs[0]);\n     \n        int resolveType;\n        Object targetObject = null;\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        Method m = (Method) getFromCache(methodKey, null, methodArgs);\n        if (m != null && !TransformerImpl.S_DEBUG)\n        {\n          try\n          {\n            paramTypes = m.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            if (Modifier.isStatic(m.getModifiers()))\n              return m.invoke(null, convertedArgs[0]);\n            else\n            {\n              int nTargetArgs = convertedArgs[0].length;\n              if (ExpressionContext.class.isAssignableFrom(paramTypes[0]))\n                nTargetArgs--;\n              if (methodArgs.length <= nTargetArgs)\n                return m.invoke(m_defaultInstance, convertedArgs[0]);\n              else  \n              {\n                targetObject = methodArgs[0];\n                \n                if (targetObject instanceof XObject)\n                  targetObject = ((XObject) targetObject).object();\n                  \n                return m.invoke(targetObject, convertedArgs[0]);\n              }\n            }\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n\n        if (args.size() > 0)\n        {\n          targetObject = methodArgs[0];\n\n          if (targetObject instanceof XObject)\n            targetObject = ((XObject) targetObject).object();\n\n          if (m_classObj.isAssignableFrom(targetObject.getClass()))\n            resolveType = MethodResolver.DYNAMIC;\n          else\n            resolveType = MethodResolver.STATIC_AND_INSTANCE;\n        }\n        else\n        {\n          targetObject = null;\n          resolveType = MethodResolver.STATIC_AND_INSTANCE;\n        }\n\n        m = MethodResolver.getMethod(m_classObj,\n                                     funcName,\n                                     methodArgs, \n                                     convertedArgs,\n                                     exprContext,\n                                     resolveType);\n        putToCache(methodKey, null, methodArgs, m);\n\n          if (TransformerImpl.S_DEBUG) {\n            TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject();\n            trans.getTraceManager().fireExtensionEvent(m, targetObject, convertedArgs[0]);\n            Object result;\n            try {\n                result = m.invoke(targetObject, convertedArgs[0]);\n            } catch (Exception e) {\n                throw e;\n            } finally {\n                trans.getTraceManager().fireExtensionEndEvent(m, targetObject, convertedArgs[0]);\n            }\n            return result;\n          } else                  \n            return m.invoke(targetObject, convertedArgs[0]);\n        \n        \n          if (Modifier.isStatic(m.getModifiers())) {\n            if (TransformerImpl.S_DEBUG) {\n              TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject();\n              trans.getTraceManager().fireExtensionEvent(m, null, convertedArgs[0]);\n              Object result;\n              try {\n                  result = m.invoke(null, convertedArgs[0]);\n              } catch (Exception e) {\n                throw e;\n              } finally {\n                trans.getTraceManager().fireExtensionEndEvent(m, null, convertedArgs[0]);\n              }\n              return result;\n            } else                  \n              return m.invoke(null, convertedArgs[0]);\n          }\n          else\n          {\n            if (null == m_defaultInstance)\n            {\n              if (TransformerImpl.S_DEBUG) {\n                TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject();\n                trans.getTraceManager().fireExtensionEvent(new ExtensionEvent(trans, m_classObj));\n                try {\n                    m_defaultInstance = m_classObj.newInstance();\n                } catch (Exception e) {\n                    throw e;\n                } finally {\n                    trans.getTraceManager().fireExtensionEndEvent(new ExtensionEvent(trans, m_classObj));\n                }\n              }    else\n                  m_defaultInstance = m_classObj.newInstance();\n            }\n            if (TransformerImpl.S_DEBUG) {\n              TransformerImpl trans = (TransformerImpl)exprContext.getXPathContext().getOwnerObject();\n              trans.getTraceManager().fireExtensionEvent(m, m_defaultInstance, convertedArgs[0]);\n              Object result;\n              try {\n                result = m.invoke(m_defaultInstance, convertedArgs[0]);\n              } catch (Exception e) {\n                throw e;\n              } finally {\n                trans.getTraceManager().fireExtensionEndEvent(m, m_defaultInstance, convertedArgs[0]);\n              }\n              return result;\n            } else                  \n              return m.invoke(m_defaultInstance, convertedArgs[0]);\n          }  \n        \n\n      \n    }\n    catch (InvocationTargetException ite)\n    {\n      Throwable resultException = ite;\n      Throwable targetException = ite.getTargetException();\n \n      if (targetException instanceof TransformerException)\n        throw ((TransformerException)targetException);\n      else if (targetException != null)\n        resultException = targetException;\n            \n      throw new TransformerException(resultException);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "IF", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "LOOP", "THROW_RAISE", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "RETURN", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "IF", "THROW_RAISE", "BINARY_OP", "IF", "IF", "IF", "CALL", "CALL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "TRY", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "RETURN", "CATCH", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CATCH", "CATCH", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "CATCH", "CATCH", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "THROW_RAISE", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "ASSIGN", "TRY", "VAR_DECL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [9, 23], [10, 24], [10, 25], [10, 26], [10, 27], [11, 28], [12, 29], [1, 30], [1, 31], [13, 32], [14, 33], [16, 34], [1, 35], [1, 36], [19, 37], [1, 38], [1, 39], [20, 40], [22, 41], [1, 42], [1, 43], [23, 44], [24, 45], [25, 46], [25, 47], [25, 48], [11, 49], [11, 50], [11, 51], [28, 52], [29, 53], [12, 54], [12, 55], [12, 56], [12, 57], [30, 58], [31, 59], [13, 60], [13, 61], [32, 62], [32, 63], [14, 64], [33, 65], [17, 66], [37, 67], [19, 68], [19, 69], [19, 70], [19, 71], [38, 72], [39, 73], [20, 74], [40, 75], [46, 76], [26, 77], [49, 78], [50, 79], [51, 80], [55, 81], [12, 82], [13, 83], [13, 84], [60, 85], [61, 86], [13, 87], [64, 88], [64, 89], [64, 90], [65, 91], [15, 92], [16, 93], [16, 94], [35, 95], [36, 96], [69, 97], [19, 98], [74, 99], [74, 100], [74, 101], [75, 102], [21, 103], [22, 104], [22, 105], [42, 106], [43, 107], [46, 108], [76, 109], [78, 110], [49, 111], [49, 112], [49, 113], [49, 114], [50, 115], [79, 116], [80, 117], [51, 118], [51, 119], [51, 120], [51, 121], [55, 122], [81, 123], [55, 124], [82, 125], [84, 126], [60, 127], [60, 128], [85, 129], [61, 130], [89, 131], [90, 132], [90, 133], [64, 134], [64, 135], [92, 136], [93, 137], [69, 138], [97, 139], [69, 140], [98, 141], [100, 142], [101, 143], [74, 144], [74, 145], [103, 146], [104, 147], [112, 148], [49, 149], [117, 150], [119, 151], [51, 152], [53, 153], [122, 154], [124, 155], [57, 156], [90, 157], [90, 158], [90, 159], [132, 160], [133, 161], [135, 162], [67, 163], [138, 164], [140, 165], [141, 166], [71, 167], [145, 168], [112, 169], [148, 170], [112, 171], [149, 172], [115, 173], [115, 174], [115, 175], [119, 176], [151, 177], [119, 178], [152, 179], [156, 180], [87, 181], [157, 182], [157, 183], [158, 184], [160, 185], [164, 186], [167, 187], [110, 188], [169, 189], [171, 190], [114, 191], [173, 192], [174, 193], [115, 194], [117, 195], [176, 196], [178, 197], [179, 198], [121, 199], [125, 200], [157, 201], [157, 202], [182, 203], [143, 204], [191, 205], [174, 206], [193, 207], [174, 208], [194, 209], [196, 210], [197, 211], [199, 212], [154, 213], [155, 214], [201, 215], [202, 216], [157, 217], [160, 218], [165, 219], [166, 220], [172, 221], [206, 222], [208, 223], [209, 224], [175, 225], [179, 226], [202, 227], [184, 228], [159, 229], [186, 230], [189, 231], [190, 232], [222, 233], [225, 234], [196, 235], [197, 236], [203, 237], [215, 238], [217, 239], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 9], [24, 10], [25, 10], [26, 10], [27, 10], [28, 11], [29, 12], [30, 1], [31, 1], [32, 13], [33, 14], [34, 16], [35, 1], [36, 1], [37, 19], [38, 1], [39, 1], [40, 20], [41, 22], [42, 1], [43, 1], [44, 23], [45, 24], [46, 25], [47, 25], [48, 25], [49, 11], [50, 11], [51, 11], [52, 28], [53, 29], [54, 12], [55, 12], [56, 12], [57, 12], [58, 30], [59, 31], [60, 13], [61, 13], [62, 32], [63, 32], [64, 14], [65, 33], [66, 17], [67, 37], [68, 19], [69, 19], [70, 19], [71, 19], [72, 38], [73, 39], [74, 20], [75, 40], [76, 46], [77, 26], [78, 49], [79, 50], [80, 51], [81, 55], [82, 12], [83, 13], [84, 13], [85, 60], [86, 61], [87, 13], [88, 64], [89, 64], [90, 64], [91, 65], [92, 15], [93, 16], [94, 16], [95, 35], [96, 36], [97, 69], [98, 19], [99, 74], [100, 74], [101, 74], [102, 75], [103, 21], [104, 22], [105, 22], [106, 42], [107, 43], [108, 46], [109, 76], [110, 78], [111, 49], [112, 49], [113, 49], [114, 49], [115, 50], [116, 79], [117, 80], [118, 51], [119, 51], [120, 51], [121, 51], [122, 55], [123, 81], [124, 55], [125, 82], [126, 84], [127, 60], [128, 60], [129, 85], [130, 61], [131, 89], [132, 90], [133, 90], [134, 64], [135, 64], [136, 92], [137, 93], [138, 69], [139, 97], [140, 69], [141, 98], [142, 100], [143, 101], [144, 74], [145, 74], [146, 103], [147, 104], [148, 112], [149, 49], [150, 117], [151, 119], [152, 51], [153, 53], [154, 122], [155, 124], [156, 57], [157, 90], [158, 90], [159, 90], [160, 132], [161, 133], [162, 135], [163, 67], [164, 138], [165, 140], [166, 141], [167, 71], [168, 145], [169, 112], [170, 148], [171, 112], [172, 149], [173, 115], [174, 115], [175, 115], [176, 119], [177, 151], [178, 119], [179, 152], [180, 156], [181, 87], [182, 157], [183, 157], [184, 158], [185, 160], [186, 164], [187, 167], [188, 110], [189, 169], [190, 171], [191, 114], [192, 173], [193, 174], [194, 115], [195, 117], [196, 176], [197, 178], [198, 179], [199, 121], [200, 125], [201, 157], [202, 157], [203, 182], [204, 143], [205, 191], [206, 174], [207, 193], [208, 174], [209, 194], [210, 196], [211, 197], [212, 199], [213, 154], [214, 155], [215, 201], [216, 202], [217, 157], [218, 160], [219, 165], [220, 166], [221, 172], [222, 206], [223, 208], [224, 209], [225, 175], [226, 179], [227, 202], [228, 184], [229, 159], [230, 186], [231, 189], [232, 190], [233, 222], [234, 225], [235, 196], [236, 197], [237, 203], [238, 215], [239, 217], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239]]}, {"function_name": "callFunction", "code": "  public Object callFunction(FuncExtFunction extFunction,\n                             Vector args,\n                             ExpressionContext exprContext)\n      throws TransformerException\n  {\n    return callFunction(extFunction.getFunctionName(), args, \n                        extFunction.getMethodKey(), exprContext);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "processElement", "code": "  public void processElement(String localPart,\n                             ElemTemplateElement element,\n                             TransformerImpl transformer,\n                             Stylesheet stylesheetTree,\n                             Object methodKey)\n    throws TransformerException, IOException\n  {\n    Object result = null;\n\n    Method m = (Method) getFromCache(methodKey, null, null);\n    if (null == m)\n    {\n      try\n      {\n        m = MethodResolver.getElementMethod(m_classObj, localPart);\n        if ( (null == m_defaultInstance) && !Modifier.isStatic(m.getModifiers()) ) {\n          if (TransformerImpl.S_DEBUG) {            \n            transformer.getTraceManager().fireExtensionEvent(new ExtensionEvent(transformer, m_classObj));\n            try {\n              m_defaultInstance = m_classObj.newInstance();\n            } catch (Exception e) {\n              throw e;\n            } finally {\n              transformer.getTraceManager().fireExtensionEndEvent(new ExtensionEvent(transformer, m_classObj));\n            }\n          } else \n            m_defaultInstance = m_classObj.newInstance();\n        }\n      }\n      catch (Exception e)\n      {\n        throw new TransformerException (e.getMessage (), e);\n      }\n      putToCache(methodKey, null, null, m);\n    }\n\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, \n                                                      stylesheetTree);\n\n    try\n    {\n      if (TransformerImpl.S_DEBUG) {\n        transformer.getTraceManager().fireExtensionEvent(m, m_defaultInstance, new Object[] {xpc, element});\n        try {\n          result = m.invoke(m_defaultInstance, new Object[] {xpc, element});\n        } catch (Exception e) {\n          throw e;\n        } finally {\n          transformer.getTraceManager().fireExtensionEndEvent(m, m_defaultInstance, new Object[] {xpc, element});\n        }\n      } else                  \n        result = m.invoke(m_defaultInstance, new Object[] {xpc, element});\n    }\n    catch (InvocationTargetException e)\n    {\n      Throwable targetException = e.getTargetException();\n      \n      if (targetException instanceof TransformerException)\n        throw (TransformerException)targetException;\n      else if (targetException != null)\n        throw new TransformerException (targetException.getMessage (), targetException);\n      else\n        throw new TransformerException (e.getMessage (), e);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException (e.getMessage (), e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree (stylesheetTree, result);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "CATCH", "IF", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "IF", "VAR_DECL", "CALL", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "THROW_RAISE", "BINARY_OP", "ASSIGN", "TRY", "CALL", "CATCH", "IF", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "TRY", "CALL", "CATCH", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [2, 15], [4, 16], [12, 17], [13, 18], [14, 19], [14, 20], [3, 21], [4, 22], [16, 23], [6, 24], [1, 25], [18, 26], [19, 27], [19, 28], [19, 29], [15, 30], [15, 31], [4, 32], [22, 33], [22, 34], [5, 35], [26, 36], [27, 37], [27, 38], [27, 39], [20, 40], [30, 41], [31, 42], [15, 43], [32, 44], [32, 45], [33, 46], [34, 47], [22, 48], [35, 49], [35, 50], [37, 51], [38, 52], [39, 53], [31, 54], [42, 55], [31, 56], [43, 57], [46, 58], [34, 59], [47, 60], [47, 61], [48, 62], [51, 63], [52, 64], [54, 65], [56, 66], [58, 67], [60, 68], [61, 69], [59, 70], [59, 71], [70, 72], [71, 73], [59, 74], [71, 75], [73, 76], [71, 77], [74, 78], [75, 79], [77, 80], [78, 81], [79, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 2], [16, 4], [17, 12], [18, 13], [19, 14], [20, 14], [21, 3], [22, 4], [23, 16], [24, 6], [25, 1], [26, 18], [27, 19], [28, 19], [29, 19], [30, 15], [31, 15], [32, 4], [33, 22], [34, 22], [35, 5], [36, 26], [37, 27], [38, 27], [39, 27], [40, 20], [41, 30], [42, 31], [43, 15], [44, 32], [45, 32], [46, 33], [47, 34], [48, 22], [49, 35], [50, 35], [51, 37], [52, 38], [53, 39], [54, 31], [55, 42], [56, 31], [57, 43], [58, 46], [59, 34], [60, 47], [61, 47], [62, 48], [63, 51], [64, 52], [65, 54], [66, 56], [67, 58], [68, 60], [69, 61], [70, 59], [71, 59], [72, 70], [73, 71], [74, 59], [75, 71], [76, 73], [77, 71], [78, 74], [79, 75], [80, 77], [81, 78], [82, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "ExtensionHandlerJavaClass", "code": "  public ExtensionHandlerJavaClass(String namespaceUri,\n                                   String scriptLang,\n                                   String className)\n  {\n    super(namespaceUri, scriptLang, className);\n    try\n    {\n      m_classObj = getClassForName(className);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "ant-1.7-929", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java", "language": "java", "name": "org.apache.tools.ant.types.resources.BaseResourceCollectionWrapper", "code": "public abstract class BaseResourceCollectionWrapper\n    extends DataType implements ResourceCollection, Cloneable {\n    private static final String ONE_NESTED_MESSAGE\n        = \" expects exactly one nested resource collection.\";\n\n    private ResourceCollection rc;\n    private Collection coll = null;\n    private boolean cache = true;\n\n    /**\n     * Set whether to cache collections.\n     * @param b boolean cache flag.\n     */\n    public synchronized void setCache(boolean b) {\n        cache = b;\n    }\n\n    /**\n     * Learn whether to cache collections. Default is <code>true</code>.\n     * @return boolean cache flag.\n     */\n    public synchronized boolean isCache() {\n        return cache;\n    }\n\n    /**\n     * Add a ResourceCollection to the container.\n     * @param c the ResourceCollection to add.\n     * @throws BuildException on error.\n     */\n    public synchronized void add(ResourceCollection c) throws BuildException {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (c == null) {\n            return;\n        }\n        if (rc != null) {\n            throw oneNested();\n        }\n        rc = c;\n        if (Project.getProject(rc) == null) {\n            Project p = getProject();\n            if (p != null) {\n                p.setProjectReference(rc);\n            }\n        }\n        setChecked(false);\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return an Iterator of Resources.\n     */\n    public final synchronized Iterator iterator() {\n        if (isReference()) {\n            return ((BaseResourceCollectionWrapper) getCheckedRef()).iterator();\n        }\n        dieOnCircularReference();\n        return new FailFast(this, cacheCollection().iterator());\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return number of elements as int.\n     */\n    public synchronized int size() {\n        if (isReference()) {\n            return ((BaseResourceCollectionWrapper) getCheckedRef()).size();\n        }\n        dieOnCircularReference();\n        return cacheCollection().size();\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return whether this is a filesystem-only resource collection.\n     */\n    public synchronized boolean isFilesystemOnly() {\n        if (isReference()) {\n            return ((BaseResourceCollectionContainer) getCheckedRef()).isFilesystemOnly();\n        }\n        dieOnCircularReference();\n\n        if (rc == null || rc.isFilesystemOnly()) {\n            return true;\n        }\n        /* now check each Resource in case the child only\n           lets through files from any children IT may have: */\n        for (Iterator i = cacheCollection().iterator(); i.hasNext();) {\n            if (!(i.next() instanceof FileResource)) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * Overrides the version of DataType to recurse on all DataType\n     * child elements that may have been added.\n     * @param stk the stack of data types to use (recursively).\n     * @param p   the project to use to dereference the references.\n     * @throws BuildException on error.\n     */\n    protected synchronized void dieOnCircularReference(Stack stk, Project p)\n        throws BuildException {\n        if (isChecked()) {\n            return;\n        }\n        if (isReference()) {\n            super.dieOnCircularReference(stk, p);\n        } else {\n            if (rc instanceof DataType) {\n                stk.push(rc);\n                invokeCircularReferenceCheck((DataType) rc, stk, p);\n                stk.pop();\n            }\n            setChecked(true);\n        }\n    }\n\n    /**\n     * Get the nested ResourceCollection.\n     * @return a ResourceCollection.\n     * @throws BuildException if no nested ResourceCollection has been provided.\n     */\n    protected final synchronized ResourceCollection getResourceCollection() {\n        dieOnCircularReference();\n        if (rc == null) {\n            throw oneNested();\n        }\n        return rc;\n    }\n\n    /**\n     * Template method for subclasses to return a Collection of Resources.\n     * @return Collection.\n     */\n    protected abstract Collection getCollection();\n\n    /**\n     * Format this BaseResourceCollectionWrapper as a String.\n     * @return a descriptive <code>String</code>.\n     */\n    public synchronized String toString() {\n        if (isReference()) {\n            return getCheckedRef().toString();\n        }\n        if (cacheCollection().size() == 0) {\n            return \"\";\n        }\n        StringBuffer sb = new StringBuffer();\n        for (Iterator i = coll.iterator(); i.hasNext();) {\n            if (sb.length() > 0) {\n                sb.append(File.pathSeparatorChar);\n            }\n            sb.append(i.next());\n        }\n        return sb.toString();\n    }\n\n    private synchronized Collection cacheCollection() {\n        if (coll == null || !isCache()) {\n            coll = getCollection();\n        }\n        return coll;\n    }\n\n    private BuildException oneNested() {\n        return new BuildException(super.toString() + ONE_NESTED_MESSAGE);", "functions": [{"function_name": "setCache", "code": "    public synchronized void setCache(boolean b) {\n        cache = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isCache", "code": "    public synchronized boolean isCache() {\n        return cache;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "add", "code": "    public synchronized void add(ResourceCollection c) throws BuildException {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (c == null) {\n            return;\n        }\n        if (rc != null) {\n            throw oneNested();\n        }\n        rc = c;\n        if (Project.getProject(rc) == null) {\n            Project p = getProject();\n            if (p != null) {\n                p.setProjectReference(rc);\n            }\n        }\n        setChecked(false);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [3, 10], [4, 11], [6, 12], [1, 13], [1, 14], [7, 15], [7, 16], [2, 17], [9, 18], [3, 19], [10, 20], [4, 21], [13, 22], [17, 23], [21, 24], [22, 25], [14, 26], [13, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 3], [11, 4], [12, 6], [13, 1], [14, 1], [15, 7], [16, 7], [17, 2], [18, 9], [19, 3], [20, 10], [21, 4], [22, 13], [23, 17], [24, 21], [25, 22], [26, 14], [27, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "iterator", "code": "    public final synchronized Iterator iterator() {\n        if (isReference()) {\n            return ((BaseResourceCollectionWrapper) getCheckedRef()).iterator();\n        }\n        dieOnCircularReference();\n        return new FailFast(this, cacheCollection().iterator());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [3, 6], [2, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 3], [7, 2], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "size", "code": "    public synchronized int size() {\n        if (isReference()) {\n            return ((BaseResourceCollectionWrapper) getCheckedRef()).size();\n        }\n        dieOnCircularReference();\n        return cacheCollection().size();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [3, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 3], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isFilesystemOnly", "code": "    public synchronized boolean isFilesystemOnly() {\n        if (isReference()) {\n            return ((BaseResourceCollectionContainer) getCheckedRef()).isFilesystemOnly();\n        }\n        dieOnCircularReference();\n\n        if (rc == null || rc.isFilesystemOnly()) {\n            return true;\n        }\n        /* now check each Resource in case the child only\n           lets through files from any children IT may have: */\n        for (Iterator i = cacheCollection().iterator(); i.hasNext();) {\n            if (!(i.next() instanceof FileResource)) {\n                return false;\n            }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "RETURN", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [0, 8], [4, 9], [2, 10], [3, 11], [7, 12], [7, 13], [4, 14], [10, 15], [2, 16], [11, 17], [13, 18], [10, 19], [15, 20], [16, 21], [14, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 0], [9, 4], [10, 2], [11, 3], [12, 7], [13, 7], [14, 4], [15, 10], [16, 2], [17, 11], [18, 13], [19, 10], [20, 15], [21, 16], [22, 14], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "dieOnCircularReference", "code": "    protected synchronized void dieOnCircularReference(Stack stk, Project p)\n        throws BuildException {\n        if (isChecked()) {\n            return;\n        }\n        if (isReference()) {\n            super.dieOnCircularReference(stk, p);\n        } else {\n            if (rc instanceof DataType) {\n                stk.push(rc);\n                invokeCircularReferenceCheck((DataType) rc, stk, p);\n                stk.pop();\n            }\n            setChecked(true);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "IF", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [1, 9], [7, 10], [9, 11], [7, 12], [7, 13], [7, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 1], [10, 7], [11, 9], [12, 7], [13, 7], [14, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getResourceCollection", "code": "    protected final synchronized ResourceCollection getResourceCollection() {\n        dieOnCircularReference();\n        if (rc == null) {\n            throw oneNested();\n        }\n        return rc;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [0, 4], [2, 5], [3, 6], [5, 7], [1, 0], [2, 0], [3, 2], [4, 0], [5, 2], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getCollection", "code": "    protected abstract Collection getCollection();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "toString", "code": "    public synchronized String toString() {\n        if (isReference()) {\n            return getCheckedRef().toString();\n        }\n        if (cacheCollection().size() == 0) {\n            return \"\";\n        }\n        StringBuffer sb = new StringBuffer();\n        for (Iterator i = coll.iterator(); i.hasNext();) {\n            if (sb.length() > 0) {\n                sb.append(File.pathSeparatorChar);\n            }\n            sb.append(i.next());\n        }\n        return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [5, 9], [2, 10], [3, 11], [4, 12], [8, 13], [8, 14], [5, 15], [2, 16], [10, 17], [2, 18], [12, 19], [14, 20], [15, 21], [16, 22], [17, 23], [17, 24], [21, 25], [10, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 5], [10, 2], [11, 3], [12, 4], [13, 8], [14, 8], [15, 5], [16, 2], [17, 10], [18, 2], [19, 12], [20, 14], [21, 15], [22, 16], [23, 17], [24, 17], [25, 21], [26, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "cacheCollection", "code": "    private synchronized Collection cacheCollection() {\n        if (coll == null || !isCache()) {\n            coll = getCollection();\n        }\n        return coll;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "oneNested", "code": "    private BuildException oneNested() {\n        return new BuildException(super.toString() + ONE_NESTED_MESSAGE);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "ant-1.7-897", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/unix/AbstractAccessTask.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.unix.AbstractAccessTask", "code": "public abstract class AbstractAccessTask\n    extends org.apache.tools.ant.taskdefs.ExecuteOn {\n\n    /**\n     * Chmod task for setting file and directory permissions.\n     */\n    public AbstractAccessTask() {\n        super.setParallel(true);\n        super.setSkipEmptyFilesets(true);\n    }\n\n    /**\n     * Set the file which should have its access attributes modified.\n     * @param src the file to modify\n     */\n    public void setFile(File src) {\n        FileSet fs = new FileSet();\n        fs.setFile(src);\n        addFileset(fs);\n    }\n\n    /**\n     * Prevent the user from specifying a different command.\n     *\n     * @ant.attribute ignore=\"true\"\n     * @param cmdl A user supplied command line that we won't accept.\n     */\n    public void setCommand(Commandline cmdl) {\n        throw new BuildException(getTaskType()\n                                 + \" doesn\\'t support the command attribute\",\n                                 getLocation());\n    }\n\n    /**\n     * Prevent the skipping of empty filesets\n     *\n     * @ant.attribute ignore=\"true\"\n     * @param skip A user supplied boolean we won't accept.\n     */\n    public void setSkipEmptyFilesets(boolean skip) {\n        throw new BuildException(getTaskType() + \" doesn\\'t support the \"\n                                 + \"skipemptyfileset attribute\",\n                                 getLocation());\n    }\n\n    /**\n     * Prevent the use of the addsourcefile atribute.\n     *\n     * @ant.attribute ignore=\"true\"\n     * @param b A user supplied boolean we won't accept.\n     */\n    public void setAddsourcefile(boolean b) {\n        throw new BuildException(getTaskType()\n            + \" doesn\\'t support the addsourcefile attribute\", getLocation());\n    }\n\n    /**\n     * Automatically approve Unix OS's.\n     * @return true if a valid OS, for unix this is always true, otherwise\n     *              use the superclasses' test (user set).\n     */\n    protected boolean isValidOs() {\n        return Os.isFamily(\"unix\") && super.isValidOs();", "functions": [{"function_name": "setFile", "code": "    public void setFile(File src) {\n        FileSet fs = new FileSet();\n        fs.setFile(src);\n        addFileset(fs);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setCommand", "code": "    public void setCommand(Commandline cmdl) {\n        throw new BuildException(getTaskType()\n                                 + \" doesn\\'t support the command attribute\",\n                                 getLocation());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setSkipEmptyFilesets", "code": "    public void setSkipEmptyFilesets(boolean skip) {\n        throw new BuildException(getTaskType() + \" doesn\\'t support the \"\n                                 + \"skipemptyfileset attribute\",\n                                 getLocation());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setAddsourcefile", "code": "    public void setAddsourcefile(boolean b) {\n        throw new BuildException(getTaskType()\n            + \" doesn\\'t support the addsourcefile attribute\", getLocation());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isValidOs", "code": "    protected boolean isValidOs() {\n        return Os.isFamily(\"unix\") && super.isValidOs();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "AbstractAccessTask", "code": "    public AbstractAccessTask() {\n        super.setParallel(true);\n        super.setSkipEmptyFilesets(true);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7801", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/serializer/ToTextSAXHandler.java", "language": "java", "name": "org.apache.xml.serializer.ToTextSAXHandler", "code": "public class ToTextSAXHandler extends ToSAXHandler \n{\n    /**\n     * From XSLTC\n     * @see org.apache.xml.serializer.ExtendedContentHandler#endElement(String)\n     */\n    public void endElement(String elemName) throws SAXException\n    {\n        if (m_tracer != null)\n            super.fireEndElem(elemName);\n    }\n\n    /**\n     * @see org.xml.sax.ContentHandler#endElement(String, String, String)\n     */\n    public void endElement(String arg0, String arg1, String arg2)\n        throws SAXException\n    {\n\t\tif (m_tracer != null)\n            super.fireEndElem(arg2);    \t\n    }\n\n    public ToTextSAXHandler(ContentHandler hdlr, LexicalHandler lex, String encoding)\n    {\n        super(hdlr, lex, encoding);\n    }\n    \n        /**\n     * From XSLTC\n     */\n    public ToTextSAXHandler(ContentHandler handler, String encoding)\n    {\n        super(handler,encoding);\n    }\n\n    public void comment(char ch[], int start, int length)\n        throws org.xml.sax.SAXException\n    {\n        if (m_tracer != null)\n            super.fireCommentEvent(ch, start, length);\n    }\n\n    public void comment(String data) throws org.xml.sax.SAXException\n    {\n        final int length = data.length();\n        if (length > m_charsBuff.length)\n        {\n            m_charsBuff = new char[length*2 + 1];\n        }\n        data.getChars(0, length, m_charsBuff, 0);\n        comment(m_charsBuff, 0, length);\n    }\n\n    /**\n     * @see org.apache.xml.serializer.Serializer#getOutputFormat()\n     */\n    public Properties getOutputFormat()\n    {\n        return null;\n    }\n\n    /**\n     * @see org.apache.xml.serializer.Serializer#getOutputStream()\n     */\n    public OutputStream getOutputStream()\n    {\n        return null;\n    }\n\n    /**\n     * @see org.apache.xml.serializer.Serializer#getWriter()\n     */\n    public Writer getWriter()\n    {\n        return null;\n    }\n\n    /**\n     * Does nothing because \n     * the indent attribute is ignored for text output.\n     *\n     */\n    public void indent(int n) throws SAXException\n    {\n    }\n\n    /**\n     * @see org.apache.xml.serializer.Serializer#reset()\n     */\n    public boolean reset()\n    {\n        return false;\n    }\n\n    /**\n     * @see org.apache.xml.serializer.DOMSerializer#serialize(Node)\n     */\n    public void serialize(Node node) throws IOException\n    {\n    }\n\n    /**\n     * @see org.apache.xml.serializer.SerializationHandler#setEscaping(boolean)\n     */\n    public boolean setEscaping(boolean escape)\n    {\n        return false;\n    }\n\n    /**\n     * @see org.apache.xml.serializer.SerializationHandler#setIndent(boolean)\n     */\n    public void setIndent(boolean indent)\n    {\n    }\n\n    /**\n     * @see org.apache.xml.serializer.Serializer#setOutputFormat(Properties)\n     */\n    public void setOutputFormat(Properties format)\n    {\n    }\n\n    /**\n     * @see org.apache.xml.serializer.Serializer#setOutputStream(OutputStream)\n     */\n    public void setOutputStream(OutputStream output)\n    {\n    }\n\n    /**\n     * @see org.apache.xml.serializer.Serializer#setWriter(Writer)\n     */\n    public void setWriter(Writer writer)\n    {\n    }\n\n    /**\n     * @see org.apache.xml.serializer.ExtendedContentHandler#addAttribute(String, String, String, String, String)\n     */\n    public void addAttribute(\n        String uri,\n        String localName,\n        String rawName,\n        String type,\n        String value)\n    {\n    }\n\n    /**\n     * @see org.xml.sax.ext.DeclHandler#attributeDecl(String, String, String, String, String)\n     */\n    public void attributeDecl(\n        String arg0,\n        String arg1,\n        String arg2,\n        String arg3,\n        String arg4)\n        throws SAXException\n    {\n    }\n\n    /**\n     * @see org.xml.sax.ext.DeclHandler#elementDecl(String, String)\n     */\n    public void elementDecl(String arg0, String arg1) throws SAXException\n    {\n    }\n\n    /**\n     * @see org.xml.sax.ext.DeclHandler#externalEntityDecl(String, String, String)\n     */\n    public void externalEntityDecl(String arg0, String arg1, String arg2)\n        throws SAXException\n    {\n    }\n\n    /**\n     * @see org.xml.sax.ext.DeclHandler#internalEntityDecl(String, String)\n     */\n    public void internalEntityDecl(String arg0, String arg1)\n        throws SAXException\n    {\n    }\n\n    /**\n     * @see org.xml.sax.ContentHandler#endPrefixMapping(String)\n     */\n    public void endPrefixMapping(String arg0) throws SAXException\n    {\n    }\n\n    /**\n     * @see org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int)\n     */\n    public void ignorableWhitespace(char[] arg0, int arg1, int arg2)\n        throws SAXException\n    {\n    }\n\n    /**\n     * From XSLTC\n     * @see org.xml.sax.ContentHandler#processingInstruction(String, String)\n     */\n    public void processingInstruction(String arg0, String arg1)\n        throws SAXException\n    {\n        if (m_tracer != null)\n            super.fireEscapingEvent(arg0, arg1);\n    }\n\n    /**\n     * @see org.xml.sax.ContentHandler#setDocumentLocator(Locator)\n     */\n    public void setDocumentLocator(Locator arg0)\n    {\n    }\n\n    /**\n     * @see org.xml.sax.ContentHandler#skippedEntity(String)\n     */\n    public void skippedEntity(String arg0) throws SAXException\n    {\n    }\n\n    /**\n     * @see org.xml.sax.ContentHandler#startElement(String, String, String, Attributes)\n     */\n    public void startElement(\n        String arg0,\n        String arg1,\n        String arg2,\n        Attributes arg3)\n        throws SAXException\n    {\n        flushPending();\n        super.startElement(arg0, arg1, arg2, arg3);\n    }\n\n    /**\n     * @see org.xml.sax.ext.LexicalHandler#endCDATA()\n     */\n    public void endCDATA() throws SAXException\n    {\n    }\n\n    /**\n     * @see org.xml.sax.ext.LexicalHandler#endDTD()\n     */\n    public void endDTD() throws SAXException\n    {\n    }\n\n    /**\n     * @see org.xml.sax.ext.LexicalHandler#startCDATA()\n     */\n    public void startCDATA() throws SAXException\n    {\n    }\n\n\n    /**\n     * @see org.xml.sax.ext.LexicalHandler#startEntity(String)\n     */\n    public void startEntity(String arg0) throws SAXException\n    {\n    }\n\n\n    /**\n     * From XSLTC\n     * @see org.apache.xml.serializer.ExtendedContentHandler#startElement(String)\n     */\n    public void startElement(\n    String elementNamespaceURI,\n    String elementLocalName,\n    String elementName) throws SAXException\n    {\n        super.startElement(elementNamespaceURI, elementLocalName, elementName);\n    }\n    \n    public void startElement(\n    String elementName) throws SAXException\n    {\n        super.startElement(elementName);\n    }\n    \n\n    /**\n     * From XSLTC\n     * @see org.xml.sax.ContentHandler#endDocument()\n     */\n    public void endDocument() throws SAXException { \n        \n        flushPending();\n        m_saxHandler.endDocument();\n\t\t\n        if (m_tracer != null)\n            super.fireEndDoc();\n    }\n \n    /**\n\t *\t\n     * @see org.apache.xml.serializer.ExtendedContentHandler#characters(String)\n     */\n    public void characters(String characters) \n    throws SAXException \n    { \n        final int length = characters.length();\n        if (length > m_charsBuff.length)\n        {\n            m_charsBuff = new char[length*2 + 1];\n        }\n        characters.getChars(0, length, m_charsBuff, 0);\n   \n        m_saxHandler.characters(m_charsBuff, 0, length);\n    \n    }\n    /**\n\t * @see org.xml.sax.ContentHandler#characters(char[], int, int)\n     */\n    public void characters(char[] characters, int offset, int length)\n    throws SAXException \n    { \n    \n        m_saxHandler.characters(characters, offset, length);\n\n\t\tif (m_tracer != null)\n            super.fireCharEvent(characters, offset, length);                \n    }\n\n    /**\n     * From XSLTC\n     */\n    public void addAttribute(String name, String value) \n    {\n    }\n\n\n    public boolean startPrefixMapping(\n        String prefix,\n        String uri,\n        boolean shouldFlush)\n        throws SAXException\n    {\n        return false;\n    }\n\n\n    public void startPrefixMapping(String prefix, String uri)\n        throws org.xml.sax.SAXException\n    {\n    }\n\n\n    public void namespaceAfterStartElement(\n        final String prefix,\n        final String uri)", "functions": [{"function_name": "endElement", "code": "    public void endElement(String elemName) throws SAXException\n    {\n        if (m_tracer != null)\n            super.fireEndElem(elemName);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "endElement", "code": "    public void endElement(String arg0, String arg1, String arg2)\n        throws SAXException\n    {\n\t\tif (m_tracer != null)\n            super.fireEndElem(arg2);    \t", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "comment", "code": "    public void comment(char ch[], int start, int length)\n        throws org.xml.sax.SAXException\n    {\n        if (m_tracer != null)\n            super.fireCommentEvent(ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "comment", "code": "    public void comment(String data) throws org.xml.sax.SAXException\n    {\n        final int length = data.length();\n        if (length > m_charsBuff.length)\n        {\n            m_charsBuff = new char[length*2 + 1];\n        }\n        data.getChars(0, length, m_charsBuff, 0);\n        comment(m_charsBuff, 0, length);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [5, 8], [5, 9], [2, 10], [1, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 5], [9, 5], [10, 2], [11, 1], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getOutputFormat", "code": "    public Properties getOutputFormat()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputStream", "code": "    public OutputStream getOutputStream()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWriter", "code": "    public Writer getWriter()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "indent", "code": "    public void indent(int n) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reset", "code": "    public boolean reset()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "serialize", "code": "    public void serialize(Node node) throws IOException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEscaping", "code": "    public boolean setEscaping(boolean escape)\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIndent", "code": "    public void setIndent(boolean indent)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOutputFormat", "code": "    public void setOutputFormat(Properties format)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOutputStream", "code": "    public void setOutputStream(OutputStream output)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWriter", "code": "    public void setWriter(Writer writer)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addAttribute", "code": "    public void addAttribute(\n        String uri,\n        String localName,\n        String rawName,\n        String type,\n        String value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "attributeDecl", "code": "    public void attributeDecl(\n        String arg0,\n        String arg1,\n        String arg2,\n        String arg3,\n        String arg4)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "elementDecl", "code": "    public void elementDecl(String arg0, String arg1) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "externalEntityDecl", "code": "    public void externalEntityDecl(String arg0, String arg1, String arg2)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "internalEntityDecl", "code": "    public void internalEntityDecl(String arg0, String arg1)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "endPrefixMapping", "code": "    public void endPrefixMapping(String arg0) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ignorableWhitespace", "code": "    public void ignorableWhitespace(char[] arg0, int arg1, int arg2)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "processingInstruction", "code": "    public void processingInstruction(String arg0, String arg1)\n        throws SAXException\n    {\n        if (m_tracer != null)\n            super.fireEscapingEvent(arg0, arg1);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setDocumentLocator", "code": "    public void setDocumentLocator(Locator arg0)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "skippedEntity", "code": "    public void skippedEntity(String arg0) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startElement", "code": "    public void startElement(\n        String arg0,\n        String arg1,\n        String arg2,\n        Attributes arg3)\n        throws SAXException\n    {\n        flushPending();\n        super.startElement(arg0, arg1, arg2, arg3);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endCDATA", "code": "    public void endCDATA() throws SAXException", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endDTD", "code": "    public void endDTD() throws SAXException", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "startCDATA", "code": "    public void startCDATA() throws SAXException", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "startEntity", "code": "    public void startEntity(String arg0) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startElement", "code": "    public void startElement(\n    String elementNamespaceURI,\n    String elementLocalName,\n    String elementName) throws SAXException\n    {\n        super.startElement(elementNamespaceURI, elementLocalName, elementName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startElement", "code": "    public void startElement(\n    String elementName) throws SAXException\n    {\n        super.startElement(elementName);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endDocument", "code": "    public void endDocument() throws SAXException { \n        \n        flushPending();\n        m_saxHandler.endDocument();\n\t\t\n        if (m_tracer != null)\n            super.fireEndDoc();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 1], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "characters", "code": "    public void characters(String characters) \n    throws SAXException \n    { \n        final int length = characters.length();\n        if (length > m_charsBuff.length)\n        {\n            m_charsBuff = new char[length*2 + 1];\n        }\n        characters.getChars(0, length, m_charsBuff, 0);\n   \n        m_saxHandler.characters(m_charsBuff, 0, length);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [5, 8], [5, 9], [2, 10], [1, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 5], [9, 5], [10, 2], [11, 1], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "characters", "code": "    public void characters(char[] characters, int offset, int length)\n    throws SAXException \n    { \n    \n        m_saxHandler.characters(characters, offset, length);\n\n\t\tif (m_tracer != null)\n            super.fireCharEvent(characters, offset, length);                ", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addAttribute", "code": "    public void addAttribute(String name, String value) ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startPrefixMapping", "code": "    public boolean startPrefixMapping(\n        String prefix,\n        String uri,\n        boolean shouldFlush)\n        throws SAXException\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "startPrefixMapping", "code": "    public void startPrefixMapping(String prefix, String uri)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "namespaceAfterStartElement", "code": "    public void namespaceAfterStartElement(\n        final String prefix,\n        final String uri)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ToTextSAXHandler", "code": "    public ToTextSAXHandler(ContentHandler hdlr, LexicalHandler lex, String encoding)\n    {\n        super(hdlr, lex, encoding);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ToTextSAXHandler", "code": "    public ToTextSAXHandler(ContentHandler handler, String encoding)\n    {\n        super(handler,encoding);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.7-976", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/Unpack.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Unpack", "code": "public abstract class Unpack extends Task {\n    protected File source;\n    protected File dest;\n    protected Resource srcResource;\n\n    /**\n     * @deprecated since 1.5.x.\n     *             setSrc(String) is deprecated and is replaced with\n     *             setSrc(File) to make Ant's Introspection\n     *             mechanism do the work and also to encapsulate operations on\n     *             the type in its own class.\n     * @ant.attribute ignore=\"true\"\n     * @param src a <code>String</code> value\n     */\n    public void setSrc(String src) {\n        log(\"DEPRECATED - The setSrc(String) method has been deprecated.\"\n            + \" Use setSrc(File) instead.\");\n        setSrc(getProject().resolveFile(src));\n    }\n\n    /**\n     * @deprecated since 1.5.x.\n     *             setDest(String) is deprecated and is replaced with\n     *             setDest(File) to make Ant's Introspection\n     *             mechanism do the work and also to encapsulate operations on\n     *             the type in its own class.\n     * @ant.attribute ignore=\"true\"\n     * @param dest a <code>String</code> value\n     */\n    public void setDest(String dest) {\n        log(\"DEPRECATED - The setDest(String) method has been deprecated.\"\n            + \" Use setDest(File) instead.\");\n        setDest(getProject().resolveFile(dest));\n    }\n\n    /**\n     * The file to expand; required.\n     * @param src file to expand\n     */\n    public void setSrc(File src) {\n        setSrcResource(new FileResource(src));\n    }\n\n    /**\n     * The resource to expand; required.\n     * @param src resource to expand\n     */\n    public void setSrcResource(Resource src) {\n        if (!src.isExists()) {\n            throw new BuildException(\n                \"the archive \" + src.getName() + \" doesn't exist\");\n        }\n        if (src.isDirectory()) {\n            throw new BuildException(\n                \"the archive \" + src.getName() + \" can't be a directory\");\n        }\n        if (src instanceof FileResource) {\n            source = ((FileResource) src).getFile();\n        } else if (!supportsNonFileResources()) {\n            throw new BuildException(\n                \"The source \" + src.getName()\n                + \" is not a FileSystem \"\n                + \"Only FileSystem resources are\"\n                + \" supported.\");\n        }\n        srcResource = src;\n    }\n\n    /**\n     * Set the source Archive resource.\n     * @param a the archive as a single element Resource collection.\n     */\n    public void addConfigured(ResourceCollection a) {\n        if (a.size() != 1) {\n            throw new BuildException(\"only single argument resource collections\"\n                                     + \" are supported as archives\");\n        }\n        setSrcResource((Resource) a.iterator().next());\n    }\n\n    /**\n     * The destination file or directory; optional.\n     * @param dest destination file or directory\n     */\n    public void setDest(File dest) {\n        this.dest = dest;\n    }\n\n    private void validate() throws BuildException {\n        if (srcResource == null) {\n            throw new BuildException(\"No Src specified\", getLocation());\n        }\n\n        if (dest == null) {\n            dest = new File(source.getParent());\n        }\n\n        if (dest.isDirectory()) {\n            String defaultExtension = getDefaultExtension();\n            createDestFile(defaultExtension);\n        }\n    }\n\n    private void createDestFile(String defaultExtension) {\n        String sourceName = source.getName();\n        int len = sourceName.length();\n        if (defaultExtension != null\n            && len > defaultExtension.length()\n            && defaultExtension.equalsIgnoreCase(\n                sourceName.substring(len - defaultExtension.length()))) {\n            dest = new File(dest, sourceName.substring(0,\n                                                       len - defaultExtension.length()));\n        } else {\n            dest = new File(dest, sourceName);\n        }\n    }\n\n    /**\n     * Execute the task.\n     * @throws BuildException on error\n     */\n    public void execute() throws BuildException {\n        try {\n            validate();\n            extract();\n        } finally {\n            dest = savedDest;\n        }\n    }\n\n    /**\n     * Get the extension.\n     * This is to be overridden by subclasses.\n     * @return the default extension.\n     */\n    protected abstract String getDefaultExtension();\n\n    /**\n     * Do the uncompressing.\n     * This is to be overridden by subclasses.\n     */\n    protected abstract void extract();\n\n    /**\n     * Whether this task can deal with non-file resources.\n     *\n     * <p>This implementation returns false.</p>\n     * @return false for this task.\n     * @since Ant 1.7\n     */\n    protected boolean supportsNonFileResources() {\n        return false;", "functions": [{"function_name": "setSrc", "code": "    public void setSrc(String src) {\n        log(\"DEPRECATED - The setSrc(String) method has been deprecated.\"\n            + \" Use setSrc(File) instead.\");\n        setSrc(getProject().resolveFile(src));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [4, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 4], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setDest", "code": "    public void setDest(String dest) {\n        log(\"DEPRECATED - The setDest(String) method has been deprecated.\"\n            + \" Use setDest(File) instead.\");\n        setDest(getProject().resolveFile(dest));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [4, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 4], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setSrc", "code": "    public void setSrc(File src) {\n        setSrcResource(new FileResource(src));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSrcResource", "code": "    public void setSrcResource(Resource src) {\n        if (!src.isExists()) {\n            throw new BuildException(\n                \"the archive \" + src.getName() + \" doesn't exist\");\n        }\n        if (src.isDirectory()) {\n            throw new BuildException(\n                \"the archive \" + src.getName() + \" can't be a directory\");\n        }\n        if (src instanceof FileResource) {\n            source = ((FileResource) src).getFile();\n        } else if (!supportsNonFileResources()) {\n            throw new BuildException(\n                \"The source \" + src.getName()\n                + \" is not a FileSystem \"\n                + \"Only FileSystem resources are\"\n                + \" supported.\");\n        }\n        srcResource = src;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "ASSIGN", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [3, 9], [6, 10], [2, 11], [3, 12], [6, 13], [1, 14], [11, 15], [12, 16], [13, 17], [15, 18], [16, 19], [17, 20], [18, 21], [18, 22], [19, 23], [19, 24], [20, 25], [20, 26], [22, 27], [22, 28], [24, 29], [24, 30], [26, 31], [26, 32], [32, 33], [32, 34], [34, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 3], [10, 6], [11, 2], [12, 3], [13, 6], [14, 1], [15, 11], [16, 12], [17, 13], [18, 15], [19, 16], [20, 17], [21, 18], [22, 18], [23, 19], [24, 19], [25, 20], [26, 20], [27, 22], [28, 22], [29, 24], [30, 24], [31, 26], [32, 26], [33, 32], [34, 32], [35, 34], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "addConfigured", "code": "    public void addConfigured(ResourceCollection a) {\n        if (a.size() != 1) {\n            throw new BuildException(\"only single argument resource collections\"\n                                     + \" are supported as archives\");\n        }\n        setSrcResource((Resource) a.iterator().next());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [3, 8], [5, 9], [8, 10], [9, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 3], [9, 5], [10, 8], [11, 9], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setDest", "code": "    public void setDest(File dest) {\n        this.dest = dest;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "validate", "code": "    private void validate() throws BuildException {\n        if (srcResource == null) {\n            throw new BuildException(\"No Src specified\", getLocation());\n        }\n\n        if (dest == null) {\n            dest = new File(source.getParent());\n        }\n\n        if (dest.isDirectory()) {\n            String defaultExtension = getDefaultExtension();\n            createDestFile(defaultExtension);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [5, 8], [3, 9], [6, 10], [1, 11], [2, 12], [9, 13], [7, 14], [12, 15], [13, 16], [13, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 5], [9, 3], [10, 6], [11, 1], [12, 2], [13, 9], [14, 7], [15, 12], [16, 13], [17, 13], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "createDestFile", "code": "    private void createDestFile(String defaultExtension) {\n        String sourceName = source.getName();\n        int len = sourceName.length();\n        if (defaultExtension != null\n            && len > defaultExtension.length()\n            && defaultExtension.equalsIgnoreCase(\n                sourceName.substring(len - defaultExtension.length()))) {\n            dest = new File(dest, sourceName.substring(0,\n                                                       len - defaultExtension.length()));\n        } else {\n            dest = new File(dest, sourceName);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [3, 9], [1, 10], [1, 11], [6, 12], [7, 13], [7, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [16, 20], [17, 21], [20, 22], [20, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [9, 3], [10, 1], [11, 1], [12, 6], [13, 7], [14, 7], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 16], [21, 17], [22, 20], [23, 20], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        try {\n            validate();\n            extract();\n        } finally {\n            dest = savedDest;", "ast_nodes": ["FUNC_DECL", "TRY", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 0], [2, 1], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDefaultExtension", "code": "    protected abstract String getDefaultExtension();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "extract", "code": "    protected abstract void extract();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "supportsNonFileResources", "code": "    protected boolean supportsNonFileResources() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-2.0-5506", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/formula/SubtractPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.SubtractPtg", "code": "public class SubtractPtg\n    extends OperationPtg    \n{\n    public final static int  SIZE = 1;\n    public final static byte sid  = 0x04;\n\n    public SubtractPtg()\n    {\n    }\n\n    public SubtractPtg(byte [] data, int offset)\n    {\n\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public int getType()\n    {\n        return TYPE_BINARY;\n    }\n\n    public int getNumberOfOperands()\n    {\n        return 2;\n    }\n\n    public String toFormulaString(Workbook book)\n    {\n        return \"-\";\n    }\n\n       \n    public String toFormulaString(String[] operands) {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(operands[ 0 ]);\n        buffer.append(\"-\");\n        buffer.append(operands[ 1 ]);\n        return buffer.toString();\n    }\n\n    public Object clone() {\n      return new SubtractPtg();", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return TYPE_BINARY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfOperands", "code": "    public int getNumberOfOperands()\n    {\n        return 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \"-\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(String[] operands) {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(operands[ 0 ]);\n        buffer.append(\"-\");\n        buffer.append(operands[ 1 ]);\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [6, 8], [2, 9], [5, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 6], [9, 2], [10, 5], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "clone", "code": "    public Object clone() {\n      return new SubtractPtg();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SubtractPtg", "code": "    public SubtractPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SubtractPtg", "code": "    public SubtractPtg(byte [] data, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-3.2-3587", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "bsh/Capabilities.java", "language": "java", "name": "bsh.Capabilities", "code": "public class Capabilities \n{\n\tprivate static boolean accessibility = false;\n\n\tpublic static boolean haveSwing() {\n\t\t// classExists caches info for us\n\t\treturn classExists( \"javax.swing.JButton\" );\n\t}\n\n\tpublic static boolean canGenerateInterfaces() {\n\t\t// classExists caches info for us\n\t\treturn classExists( \"java.lang.reflect.Proxy\" );\n\t}\n\n\t/**\n\t\tIf accessibility is enabled\n\t\tdetermine if the accessibility mechanism exists and if we have\n\t\tthe optional bsh package to use it.\n\t\tNote that even if both are true it does not necessarily mean that we \n\t\thave runtime permission to access the fields... Java security has\n\t \ta say in it.\n\t\t@see ReflectManager.java\n\t*/\n\tpublic static boolean haveAccessibility() \n\t{\n\t\t// classExists caches the tests for us\n\t\treturn ( accessibility \n\t\t\t&& classExists( \"java.lang.reflect.AccessibleObject\" )\n\t\t\t&& classExists(\"bsh.reflect.ReflectManagerImpl\") \n\t\t);\n\t}\n\n\tpublic static void setAccessibility( boolean b ) { accessibility = b; }\n\n\tprivate static Hashtable classes = new Hashtable();\n\t/**\n\t\tUse direct Class.forName() to test for the existence of a class.\n\t\tWe should not use BshClassManager here because:\n\t\t\ta) the systems using these tests would probably not load the\n\t\t\tclasses through it anyway.\n\t\t\tb) bshclassmanager is heavy and touches other class files.  \n\t\t\tthis capabilities code must be light enough to be used by any\n\t\t\tsystem including the remote applet.\n\t*/\n\tpublic static boolean classExists( String name ) \n\t{\n\t\tObject c = classes.get( name );\n\n\t\tif ( c == null ) {\n\t\t\ttry {\n\t\t\t\t/*\n\t\t\t\t\tNote: do *not* change this to \n\t\t\t\t\tBshClassManager.plainClassForName() or equivalent.\n\t\t\t\t\tThis class must not touch any other bsh classes.\n\t\t\t\t*/\n\t\t\t\tc = Class.forName( name );\n\t\t\t} catch ( ClassNotFoundException e ) { }\n\n\t\t\tif ( c != null )\n\t\t\t\tclasses.put(c,\"unused\");\n\t\t}\n\n\t\treturn c != null;\n\t}\n\n\t/**\n\t\tAn attempt was made to use an unavailable capability supported by\n\t\tan optional package.  The normal operation is to test before attempting\n\t\tto use these packages... so this is runtime exception.\n\t*/\n\tpublic static class Unavailable extends RuntimeException \n\t{\n\t\tpublic Unavailable(String s ){ super(s); }", "functions": [{"function_name": "haveSwing", "code": "\tpublic static boolean haveSwing() {\n\t\t// classExists caches info for us\n\t\treturn classExists( \"javax.swing.JButton\" );", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "canGenerateInterfaces", "code": "\tpublic static boolean canGenerateInterfaces() {\n\t\t// classExists caches info for us\n\t\treturn classExists( \"java.lang.reflect.Proxy\" );", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "haveAccessibility", "code": "\tpublic static boolean haveAccessibility() \n\t{\n\t\t// classExists caches the tests for us\n\t\treturn ( accessibility \n\t\t\t&& classExists( \"java.lang.reflect.AccessibleObject\" )\n\t\t\t&& classExists(\"bsh.reflect.ReflectManagerImpl\") ", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setAccessibility", "code": "\tpublic static void setAccessibility( boolean b ) { accessibility = b; }", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "classExists", "code": "\tpublic static boolean classExists( String name ) \n\t{\n\t\tObject c = classes.get( name );\n\n\t\tif ( c == null ) {\n\t\t\ttry {\n\t\t\t\t/*\n\t\t\t\t\tNote: do *not* change this to \n\t\t\t\t\tBshClassManager.plainClassForName() or equivalent.\n\t\t\t\t\tThis class must not touch any other bsh classes.\n\t\t\t\t*/\n\t\t\t\tc = Class.forName( name );\n\t\t\t} catch ( ClassNotFoundException e ) { }\n\n\t\t\tif ( c != null )\n\t\t\t\tclasses.put(c,\"unused\");\n\t\t}\n\n\t\treturn c != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "TRY", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CATCH", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [2, 9], [6, 10], [3, 11], [8, 12], [9, 13], [8, 14], [12, 15], [9, 16], [14, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 2], [10, 6], [11, 3], [12, 8], [13, 9], [14, 8], [15, 12], [16, 9], [17, 14], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}], "label": 0}
{"sample_id": "jedit-3.2-3570", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "gnu/regexp/RESyntax.java", "language": "java", "name": "gnu.regexp.RESyntax", "code": "public final class RESyntax implements Serializable {\n    static final String DEFAULT_LINE_SEPARATOR = System.getProperty(\"line.separator\");\n\n    private static final String SYNTAX_IS_FINAL = RE.getLocalizedMessage(\"syntax.final\");\n\n    private BitSet bits;\n\n    // true for the constant defined syntaxes\n    private boolean isFinal = false;\n\n    private String lineSeparator = DEFAULT_LINE_SEPARATOR;\n\n  // Values for constants are bit indexes\n\n  /**\n   * Syntax bit. Backslash is an escape character in lists.\n   */\n  public static final int RE_BACKSLASH_ESCAPE_IN_LISTS =  0;\n\n  /**\n   * Syntax bit. Use \\? instead of ? and \\+ instead of +.\n   */\n  public static final int RE_BK_PLUS_QM                =  1;\n\n  /**\n   * Syntax bit. POSIX character classes ([:...:]) in lists are allowed.\n   */\n  public static final int RE_CHAR_CLASSES              =  2;\n\n  /**\n   * Syntax bit. ^ and $ are special everywhere.\n   * <B>Not implemented.</B>\n   */\n  public static final int RE_CONTEXT_INDEP_ANCHORS     =  3; \n\n  /**\n   * Syntax bit. Repetition operators are only special in valid positions.\n   * <B>Not implemented.</B>\n   */\n  public static final int RE_CONTEXT_INDEP_OPS         =  4; \n\n  /**\n   * Syntax bit. Repetition and alternation operators are invalid\n   * at start and end of pattern and other places. \n   * <B>Not implemented</B>.\n   */\n  public static final int RE_CONTEXT_INVALID_OPS       =  5; \n\n  /**\n   * Syntax bit. Match-any-character operator (.) matches a newline.\n   */\n  public static final int RE_DOT_NEWLINE               =  6;\n\n  /**\n   * Syntax bit. Match-any-character operator (.) does not match a null.\n   */\n  public static final int RE_DOT_NOT_NULL              =  7;\n\n  /**\n   * Syntax bit. Intervals ({x}, {x,}, {x,y}) are allowed.\n   */\n  public static final int RE_INTERVALS                 =  8;\n\n  /**\n   * Syntax bit. No alternation (|), match one-or-more (+), or \n   * match zero-or-one (?) operators.\n   */\n  public static final int RE_LIMITED_OPS               =  9;\n\n  /**\n   * Syntax bit. Newline is an alternation operator.\n   */\n  public static final int RE_NEWLINE_ALT               = 10; // impl.\n\n  /**\n   * Syntax bit. Intervals use { } instead of \\{ \\}\n   */\n  public static final int RE_NO_BK_BRACES              = 11; \n\n  /**\n   * Syntax bit. Grouping uses ( ) instead of \\( \\).\n   */\n  public static final int RE_NO_BK_PARENS              = 12;\n\n  /**\n   * Syntax bit. Backreferences not allowed.\n   */\n  public static final int RE_NO_BK_REFS                = 13;\n\n  /**\n   * Syntax bit. Alternation uses | instead of \\|\n   */\n  public static final int RE_NO_BK_VBAR                = 14;\n\n  /**\n   * Syntax bit. <B>Not implemented</B>.\n   */\n  public static final int RE_NO_EMPTY_RANGES           = 15;\n\n  /**\n   * Syntax bit. An unmatched right parenthesis (')' or '\\)', depending\n   * on RE_NO_BK_PARENS) will throw an exception when compiling.\n   */\n  public static final int RE_UNMATCHED_RIGHT_PAREN_ORD = 16;\n\n  /**\n   * Syntax bit. <B>Not implemented.</B>\n   */\n  public static final int RE_HAT_LISTS_NOT_NEWLINE     = 17;\n\n  /**\n   * Syntax bit.  Stingy matching is allowed (+?, *?, ??, {x,y}?).\n   */\n  public static final int RE_STINGY_OPS                = 18;\n\n  /**\n   * Syntax bit. Allow character class escapes (\\d, \\D, \\s, \\S, \\w, \\W).\n   */\n  public static final int RE_CHAR_CLASS_ESCAPES        = 19;\n\n  /**\n   * Syntax bit. Allow use of (?:xxx) grouping (subexpression is not saved).\n   */\n  public static final int RE_PURE_GROUPING             = 20;\n\n  /**\n   * Syntax bit. Allow use of (?=xxx) and (?!xxx) apply the subexpression\n   * to the text following the current position without cousuming that text.\n   */\n  public static final int RE_LOOKAHEAD                 = 21;\n\n  /**\n   * Syntax bit. Allow beginning- and end-of-string anchors (\\A, \\Z).\n   */\n  public static final int RE_STRING_ANCHORS            = 22;\n\n  /**\n   * Syntax bit. Allow embedded comments, (#comment), as in Perl5.\n   */\n  public static final int RE_COMMENTS                  = 23;\n\n  /**\n   * Syntax bit. Allow character class escapes within lists, as in Perl5.\n   */\n  public static final int RE_CHAR_CLASS_ESC_IN_LISTS   = 24;\n\n  private static final int BIT_TOTAL                   = 25;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the awk utility.\n   */\n  public static final RESyntax RE_SYNTAX_AWK;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the ed utility.\n   */\n  public static final RESyntax RE_SYNTAX_ED;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the egrep utility.\n   */\n  public static final RESyntax RE_SYNTAX_EGREP;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the GNU Emacs editor.\n   */\n  public static final RESyntax RE_SYNTAX_EMACS;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the grep utility.\n   */\n  public static final RESyntax RE_SYNTAX_GREP;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the POSIX awk specification.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_AWK;\n\n  /**\n   * Predefined syntax.\n   * Emulates POSIX basic regular expression support.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_BASIC;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the POSIX egrep specification.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_EGREP;\n\n  /**\n   * Predefined syntax.\n   * Emulates POSIX extended regular expression support.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_EXTENDED;\n\n  /**\n   * Predefined syntax.\n   * Emulates POSIX basic minimal regular expressions.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_MINIMAL_BASIC;\n\n  /**\n   * Predefined syntax.\n   * Emulates POSIX extended minimal regular expressions.\n   */\n  public static final RESyntax RE_SYNTAX_POSIX_MINIMAL_EXTENDED;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in the sed utility.\n   */\n  public static final RESyntax RE_SYNTAX_SED;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in Larry Wall's perl, version 4,\n   */\n  public static final RESyntax RE_SYNTAX_PERL4;\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in Larry Wall's perl, version 4,\n   * using single line mode (/s modifier).\n   */\n  public static final RESyntax RE_SYNTAX_PERL4_S; // single line mode (/s)\n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in Larry Wall's perl, version 5.\n   */\n  public static final RESyntax RE_SYNTAX_PERL5;  \n\n  /**\n   * Predefined syntax.\n   * Emulates regular expression support in Larry Wall's perl, version 5,\n   * using single line mode (/s modifier).\n   */\n  public static final RESyntax RE_SYNTAX_PERL5_S;\n  \n  static {\n      // Define syntaxes\n      \n      RE_SYNTAX_EMACS = new RESyntax().makeFinal();\n      \n      RESyntax RE_SYNTAX_POSIX_COMMON = new RESyntax()\n\t  .set(RE_CHAR_CLASSES)\n\t  .set(RE_DOT_NEWLINE)\n\t  .set(RE_DOT_NOT_NULL)\n\t  .set(RE_INTERVALS)\n\t  .set(RE_NO_EMPTY_RANGES)\n\t  .makeFinal();\n      \n      RE_SYNTAX_POSIX_BASIC = new RESyntax(RE_SYNTAX_POSIX_COMMON)\n\t  .set(RE_BK_PLUS_QM)\n\t  .makeFinal();\n      \n      RE_SYNTAX_POSIX_EXTENDED = new RESyntax(RE_SYNTAX_POSIX_COMMON)\n\t  .set(RE_CONTEXT_INDEP_ANCHORS)\n\t  .set(RE_CONTEXT_INDEP_OPS)\n\t  .set(RE_NO_BK_BRACES)\n\t  .set(RE_NO_BK_PARENS)\n\t  .set(RE_NO_BK_VBAR)\n\t  .set(RE_UNMATCHED_RIGHT_PAREN_ORD)\n\t  .makeFinal();\n\n      RE_SYNTAX_AWK = new RESyntax()\n\t  .set(RE_BACKSLASH_ESCAPE_IN_LISTS)\n\t  .set(RE_DOT_NOT_NULL)\n\t  .set(RE_NO_BK_PARENS)\n\t  .set(RE_NO_BK_REFS)\n\t  .set(RE_NO_BK_VBAR)\n\t  .set(RE_NO_EMPTY_RANGES)\n\t  .set(RE_UNMATCHED_RIGHT_PAREN_ORD)\n\t  .makeFinal();\n      \n      RE_SYNTAX_POSIX_AWK = new RESyntax(RE_SYNTAX_POSIX_EXTENDED)\n\t  .set(RE_BACKSLASH_ESCAPE_IN_LISTS)\n\t  .makeFinal();\n      \n      RE_SYNTAX_GREP = new RESyntax()\n\t  .set(RE_BK_PLUS_QM)\n\t  .set(RE_CHAR_CLASSES)\n\t  .set(RE_HAT_LISTS_NOT_NEWLINE)\n\t  .set(RE_INTERVALS)\n\t  .set(RE_NEWLINE_ALT)\n\t  .makeFinal();\n      \n      RE_SYNTAX_EGREP = new RESyntax()\n\t  .set(RE_CHAR_CLASSES)\n\t  .set(RE_CONTEXT_INDEP_ANCHORS)\n\t  .set(RE_CONTEXT_INDEP_OPS)\n\t  .set(RE_HAT_LISTS_NOT_NEWLINE)\n\t  .set(RE_NEWLINE_ALT)\n\t  .set(RE_NO_BK_PARENS)\n\t  .set(RE_NO_BK_VBAR)\n\t  .makeFinal();\n    \n      RE_SYNTAX_POSIX_EGREP = new RESyntax(RE_SYNTAX_EGREP)\n\t  .set(RE_INTERVALS)\n\t  .set(RE_NO_BK_BRACES)\n\t  .makeFinal();\n    \n      /* P1003.2/D11.2, section 4.20.7.1, lines 5078ff.  */\n    \n      RE_SYNTAX_ED = new RESyntax(RE_SYNTAX_POSIX_BASIC)\n\t  .makeFinal();\n    \n      RE_SYNTAX_SED = new RESyntax(RE_SYNTAX_POSIX_BASIC)\n\t  .makeFinal();\n      \n      RE_SYNTAX_POSIX_MINIMAL_BASIC = new RESyntax(RE_SYNTAX_POSIX_COMMON)\n\t  .set(RE_LIMITED_OPS)\n\t  .makeFinal();\n      \n      /* Differs from RE_SYNTAX_POSIX_EXTENDED in that RE_CONTEXT_INVALID_OPS\n\t replaces RE_CONTEXT_INDEP_OPS and RE_NO_BK_REFS is added. */\n      \n      RE_SYNTAX_POSIX_MINIMAL_EXTENDED = new RESyntax(RE_SYNTAX_POSIX_COMMON)\n\t  .set(RE_CONTEXT_INDEP_ANCHORS)\n\t  .set(RE_CONTEXT_INVALID_OPS)\n\t  .set(RE_NO_BK_BRACES)\n\t  .set(RE_NO_BK_PARENS)\n\t  .set(RE_NO_BK_REFS)\n\t  .set(RE_NO_BK_VBAR)\n\t  .set(RE_UNMATCHED_RIGHT_PAREN_ORD)\n\t  .makeFinal();\n      \n      /* There is no official Perl spec, but here's a \"best guess\" */\n      \n      RE_SYNTAX_PERL4 = new RESyntax()\n\t  .set(RE_BACKSLASH_ESCAPE_IN_LISTS)\n\t  .set(RE_CONTEXT_INDEP_ANCHORS)\n\t  .set(RE_CONTEXT_INDEP_OPS)          // except for '{', apparently\n\t  .set(RE_INTERVALS)\n\t  .set(RE_NO_BK_BRACES)\n\t  .set(RE_NO_BK_PARENS)\n\t  .set(RE_NO_BK_VBAR)\n\t  .set(RE_NO_EMPTY_RANGES)\n\t  .set(RE_CHAR_CLASS_ESCAPES)    // \\d,\\D,\\w,\\W,\\s,\\S\n\t  .makeFinal();\n      \n      RE_SYNTAX_PERL4_S = new RESyntax(RE_SYNTAX_PERL4)\n\t  .set(RE_DOT_NEWLINE)\n\t  .makeFinal();\n      \n      RE_SYNTAX_PERL5 = new RESyntax(RE_SYNTAX_PERL4)\n\t  .set(RE_PURE_GROUPING)          // (?:)\n\t  .set(RE_STINGY_OPS)             // *?,??,+?,{}?\n\t  .set(RE_LOOKAHEAD)              // (?=)(?!) not implemented\n\t  .set(RE_STRING_ANCHORS)         // \\A,\\Z\n\t  .set(RE_CHAR_CLASS_ESC_IN_LISTS)// \\d,\\D,\\w,\\W,\\s,\\S within []\n\t  .set(RE_COMMENTS)              // (?#)\n\t  .makeFinal();\n      \n      RE_SYNTAX_PERL5_S = new RESyntax(RE_SYNTAX_PERL5)\n\t  .set(RE_DOT_NEWLINE)\n\t  .makeFinal();\n  }\n\n  /**\n   * Construct a new syntax object with all bits turned off.\n   * This is equivalent to RE_SYNTAX_EMACS.\n   */\n  public RESyntax() {\n    bits = new BitSet(BIT_TOTAL);\n  }\n\n    /**\n     * Called internally when constructing predefined syntaxes\n     * so their interpretation cannot vary.  Conceivably useful\n     * for your syntaxes as well.  Causes IllegalAccessError to\n     * be thrown if any attempt to modify the syntax is made.\n     *\n     * @return this object for convenient chaining\n     */\n    public RESyntax makeFinal() {\n\tisFinal = true;\n\treturn this;\n    }\n\n  /**\n   * Construct a new syntax object with all bits set the same \n   * as the other syntax.\n   */\n  public RESyntax(RESyntax other) {\n    bits = (BitSet) other.bits.clone();\n  }\n\n  /**\n   * Check if a given bit is set in this syntax.\n   */\n  public boolean get(int index) {\n    return bits.get(index);\n  }\n\n  /**\n   * Set a given bit in this syntax. \n   *\n   * @param index the constant (RESyntax.RE_xxx) bit to set.\n   * @return a reference to this object for easy chaining.\n   */\n  public RESyntax set(int index) {\n      if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n    bits.set(index);\n    return this;\n  }\n\n  /**\n   * Clear a given bit in this syntax. \n   *\n   * @param index the constant (RESyntax.RE_xxx) bit to clear.\n   * @return a reference to this object for easy chaining.\n   */\n  public RESyntax clear(int index) {\n      if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n      bits.clear(index);\n      return this;\n  }\n\n    /**\n     * Changes the line separator string for regular expressions\n     * created using this RESyntax.  The default separator is the\n     * value returned by the system property \"line.separator\", which\n     * should be correct when reading platform-specific files from a\n     * filesystem.  However, many programs may collect input from\n     * sources where the line separator is differently specified (for\n     * example, in the applet environment, the text box widget\n     * interprets line breaks as single-character newlines,\n     * regardless of the host platform.\n     *\n     * Note that setting the line separator to a character or\n     * characters that have specific meaning within the current syntax\n     * can cause unexpected chronosynclastic infundibula.\n     *\n     * @return this object for convenient chaining \n     */\n    public RESyntax setLineSeparator(String aSeparator) {\n\tif (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n\tlineSeparator = aSeparator;\n\treturn this;\n    }\n\n    /**\n     * Returns the currently active line separator string.  The default\n     * is the platform-dependent system property \"line.separator\".\n     */\n    public String getLineSeparator() {\n\treturn lineSeparator;", "functions": [{"function_name": "makeFinal", "code": "    public RESyntax makeFinal() {\n\tisFinal = true;\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "get", "code": "  public boolean get(int index) {\n    return bits.get(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "set", "code": "  public RESyntax set(int index) {\n      if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n    bits.set(index);\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "clear", "code": "  public RESyntax clear(int index) {\n      if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n      bits.clear(index);\n      return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setLineSeparator", "code": "    public RESyntax setLineSeparator(String aSeparator) {\n\tif (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);\n\tlineSeparator = aSeparator;\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getLineSeparator", "code": "    public String getLineSeparator() {\n\treturn lineSeparator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RESyntax", "code": "  public RESyntax() {\n    bits = new BitSet(BIT_TOTAL);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RESyntax", "code": "  public RESyntax(RESyntax other) {\n    bits = (BitSet) other.bits.clone();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "poi-2.0-5609", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/Record.java", "language": "java", "name": "org.apache.poi.hssf.record.Record", "code": "public abstract class Record\n{\n\n    /**\n     * instantiates a blank record strictly for ID matching\n     */\n\n    public Record()\n    {\n    }\n\n    /**\n     * Constructor Record\n     *\n     * @param id record id\n     * @param size record size\n     * @param data raw data\n     */\n\n    public Record(short id, short size, byte [] data)\n    {\n        validateSid(id);\n        fillFields(data, size);\n    }\n\n    /**\n     * Constructor Record\n     *\n     * @param id record id\n     * @param size record size\n     * @param data raw data\n     */\n\n    public Record(short id, short size, byte [] data, int offset)\n    {\n        validateSid(id);\n        fillFields(data, size, offset);\n    }\n\n    /**\n     * called by constructor, should throw runtime exception in the event of a\n     * record passed with a differing ID.\n     *\n     * @param id alleged id for this record\n     */\n\n    protected abstract void validateSid(short id);\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     */\n\n    protected void fillFields(byte [] data, short size)\n    {\n        fillFields(data, size, 0);\n    }\n\n    /**\n     * called by the constructor, should set class level fields.  Should throw\n     * runtime exception for bad/icomplete data.\n     *\n     * @param data raw data\n     * @param size size of data\n     * @param offset of the record's data (provided a big array of the file)\n     */\n\n    protected abstract void fillFields(byte [] data, short size, int offset);\n\n    /**\n     * called by the class that is responsible for writing this sucker.\n     * Subclasses should implement this so that their data is passed back in a\n     * byte array.\n     *\n     * @return byte array containing instance data\n     */\n\n    public byte [] serialize()\n    {\n        byte[] retval = new byte[ getRecordSize() ];\n\n        serialize(0, retval);\n        return retval;\n    }\n\n    /**\n     * called by the class that is responsible for writing this sucker.\n     * Subclasses should implement this so that their data is passed back in a\n     * byte array.\n     *\n     * @param offset to begin writing at\n     * @param data byte array containing instance data\n     * @return number of bytes written\n     */\n\n    public abstract int serialize(int offset, byte [] data);\n\n    /**\n     * gives the current serialized size of the record. Should include the sid and reclength (4 bytes).\n     */\n\n    public int getRecordSize()\n    {\n\n        return serialize().length;\n    }\n\n    /**\n     * tells whether this type of record contains a value\n     */\n\n    public boolean isValue()\n    {\n        return false;\n    }\n\n    /**\n     * DBCELL, ROW, VALUES all say yes\n     */\n\n    public boolean isInValueSection()\n    {\n        return false;\n    }\n\n    /**\n     * get a string representation of the record (for biffview/debugging)\n     */\n\n    public String toString()\n    {\n        return super.toString();\n    }\n\n    /**\n     * Process a continuation record; default handling is to ignore\n     * it -- TODO add logging\n     *\n     * @param record the continuation record's data\n     */\n\n\n    /* protected */\n    public void processContinueRecord(byte [] record)\n    {\n\n    }\n\n    /**\n     * return the non static version of the id for this record.\n     */\n\n    public abstract short getSid();\n\n    public Object clone() {\n      throw new RuntimeException(\"The class \"+getClass().getName()+\" needs to define a clone method\");", "functions": [{"function_name": "validateSid", "code": "    protected abstract void validateSid(short id);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size)\n    {\n        fillFields(data, size, 0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "fillFields", "code": "    protected abstract void fillFields(byte [] data, short size, int offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "serialize", "code": "    public byte [] serialize()\n    {\n        byte[] retval = new byte[ getRecordSize() ];\n\n        serialize(0, retval);\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "serialize", "code": "    public abstract int serialize(int offset, byte [] data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n\n        return serialize().length;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isValue", "code": "    public boolean isValue()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isInValueSection", "code": "    public boolean isInValueSection()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        return super.toString();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "processContinueRecord", "code": "    public void processContinueRecord(byte [] record)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSid", "code": "    public abstract short getSid();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "clone", "code": "    public Object clone() {\n      throw new RuntimeException(\"The class \"+getClass().getName()+\" needs to define a clone method\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "Record", "code": "    public Record()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Record", "code": "    public Record(short id, short size, byte [] data)\n    {\n        validateSid(id);\n        fillFields(data, size);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "Record", "code": "    public Record(short id, short size, byte [] data, int offset)\n    {\n        validateSid(id);\n        fillFields(data, size, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.7-8398", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/URI.java", "language": "java", "name": "org.apache.xml.utils.URI", "code": "public class URI implements Serializable\n{\n    static final long serialVersionUID = 7096266377907081897L;\n\n  /**\n   * MalformedURIExceptions are thrown in the process of building a URI\n   * or setting fields on a URI when an operation would result in an\n   * invalid URI specification.\n   *\n   */\n  public static class MalformedURIException extends IOException\n  {\n\n    /**\n     * Constructs a <code>MalformedURIException</code> with no specified\n     * detail message.\n     */\n    public MalformedURIException()\n    {\n      super();\n    }\n\n    /**\n     * Constructs a <code>MalformedURIException</code> with the\n     * specified detail message.\n     *\n     * @param p_msg the detail message.\n     */\n    public MalformedURIException(String p_msg)\n    {\n      super(p_msg);\n    }\n  }\n\n  /** reserved characters */\n  private static final String RESERVED_CHARACTERS = \";/?:@&=+$,\";\n\n  /**\n   * URI punctuation mark characters - these, combined with\n   *   alphanumerics, constitute the \"unreserved\" characters \n   */\n  private static final String MARK_CHARACTERS = \"-_.!~*'() \";\n\n  /** scheme can be composed of alphanumerics and these characters */\n  private static final String SCHEME_CHARACTERS = \"+-.\";\n\n  /**\n   * userinfo can be composed of unreserved, escaped and these\n   *   characters \n   */\n  private static final String USERINFO_CHARACTERS = \";:&=+$,\";\n\n  /** Stores the scheme (usually the protocol) for this URI.\n   *  @serial */\n  private String m_scheme = null;\n\n  /** If specified, stores the userinfo for this URI; otherwise null.\n   *  @serial */\n  private String m_userinfo = null;\n\n  /** If specified, stores the host for this URI; otherwise null.\n   *  @serial */\n  private String m_host = null;\n\n  /** If specified, stores the port for this URI; otherwise -1.\n   *  @serial */\n  private int m_port = -1;\n\n  /** If specified, stores the path for this URI; otherwise null.\n   *  @serial */\n  private String m_path = null;\n\n  /**\n   * If specified, stores the query string for this URI; otherwise\n   *   null. \n   * @serial \n   */\n  private String m_queryString = null;\n\n  /** If specified, stores the fragment for this URI; otherwise null.\n   *  @serial */\n  private String m_fragment = null;\n\n  /** Indicate whether in DEBUG mode          */\n  private static boolean DEBUG = false;\n\n  /**\n   * Construct a new and uninitialized URI.\n   */\n  public URI(){}\n\n  /**\n   * Construct a new URI from another URI. All fields for this URI are\n   * set equal to the fields of the URI passed in.\n   *\n   * @param p_other the URI to copy (cannot be null)\n   */\n  public URI(URI p_other)\n  {\n    initialize(p_other);\n  }\n\n  /**\n   * Construct a new URI from a URI specification string. If the\n   * specification follows the \"generic URI\" syntax, (two slashes\n   * following the first colon), the specification will be parsed\n   * accordingly - setting the scheme, userinfo, host,port, path, query\n   * string and fragment fields as necessary. If the specification does\n   * not follow the \"generic URI\" syntax, the specification is parsed\n   * into a scheme and scheme-specific part (stored as the path) only.\n   *\n   * @param p_uriSpec the URI specification string (cannot be null or\n   *                  empty)\n   *\n   * @throws MalformedURIException if p_uriSpec violates any syntax\n   *                                   rules\n   */\n  public URI(String p_uriSpec) throws MalformedURIException\n  {\n    this((URI) null, p_uriSpec);\n  }\n\n  /**\n   * Construct a new URI from a base URI and a URI specification string.\n   * The URI specification string may be a relative URI.\n   *\n   * @param p_base the base URI (cannot be null if p_uriSpec is null or\n   *               empty)\n   * @param p_uriSpec the URI specification string (cannot be null or\n   *                  empty if p_base is null)\n   *\n   * @throws MalformedURIException if p_uriSpec violates any syntax\n   *                                  rules\n   */\n  public URI(URI p_base, String p_uriSpec) throws MalformedURIException\n  {\n    initialize(p_base, p_uriSpec);\n  }\n\n  /**\n   * Construct a new URI that does not follow the generic URI syntax.\n   * Only the scheme and scheme-specific part (stored as the path) are\n   * initialized.\n   *\n   * @param p_scheme the URI scheme (cannot be null or empty)\n   * @param p_schemeSpecificPart the scheme-specific part (cannot be\n   *                             null or empty)\n   *\n   * @throws MalformedURIException if p_scheme violates any\n   *                                  syntax rules\n   */\n  public URI(String p_scheme, String p_schemeSpecificPart)\n          throws MalformedURIException\n  {\n\n    if (p_scheme == null || p_scheme.trim().length() == 0)\n    {\n      throw new MalformedURIException(\n        \"Cannot construct URI with null/empty scheme!\");\n    }\n\n    if (p_schemeSpecificPart == null\n            || p_schemeSpecificPart.trim().length() == 0)\n    {\n      throw new MalformedURIException(\n        \"Cannot construct URI with null/empty scheme-specific part!\");\n    }\n\n    setScheme(p_scheme);\n    setPath(p_schemeSpecificPart);\n  }\n\n  /**\n   * Construct a new URI that follows the generic URI syntax from its\n   * component parts. Each component is validated for syntax and some\n   * basic semantic checks are performed as well.  See the individual\n   * setter methods for specifics.\n   *\n   * @param p_scheme the URI scheme (cannot be null or empty)\n   * @param p_host the hostname or IPv4 address for the URI\n   * @param p_path the URI path - if the path contains '?' or '#',\n   *               then the query string and/or fragment will be\n   *               set from the path; however, if the query and\n   *               fragment are specified both in the path and as\n   *               separate parameters, an exception is thrown\n   * @param p_queryString the URI query string (cannot be specified\n   *                      if path is null)\n   * @param p_fragment the URI fragment (cannot be specified if path\n   *                   is null)\n   *\n   * @throws MalformedURIException if any of the parameters violates\n   *                                  syntax rules or semantic rules\n   */\n  public URI(String p_scheme, String p_host, String p_path, String p_queryString, String p_fragment)\n          throws MalformedURIException\n  {\n    this(p_scheme, null, p_host, -1, p_path, p_queryString, p_fragment);\n  }\n\n  /**\n   * Construct a new URI that follows the generic URI syntax from its\n   * component parts. Each component is validated for syntax and some\n   * basic semantic checks are performed as well.  See the individual\n   * setter methods for specifics.\n   *\n   * @param p_scheme the URI scheme (cannot be null or empty)\n   * @param p_userinfo the URI userinfo (cannot be specified if host\n   *                   is null)\n   * @param p_host the hostname or IPv4 address for the URI\n   * @param p_port the URI port (may be -1 for \"unspecified\"; cannot\n   *               be specified if host is null)\n   * @param p_path the URI path - if the path contains '?' or '#',\n   *               then the query string and/or fragment will be\n   *               set from the path; however, if the query and\n   *               fragment are specified both in the path and as\n   *               separate parameters, an exception is thrown\n   * @param p_queryString the URI query string (cannot be specified\n   *                      if path is null)\n   * @param p_fragment the URI fragment (cannot be specified if path\n   *                   is null)\n   *\n   * @throws MalformedURIException if any of the parameters violates\n   *                                  syntax rules or semantic rules\n   */\n  public URI(String p_scheme, String p_userinfo, String p_host, int p_port, String p_path, String p_queryString, String p_fragment)\n          throws MalformedURIException\n  {\n\n    if (p_scheme == null || p_scheme.trim().length() == 0)\n    {\n    }\n\n    if (p_host == null)\n    {\n      if (p_userinfo != null)\n      {\n        throw new MalformedURIException();\n      }\n\n      if (p_port != -1)\n      {\n        throw new MalformedURIException();\n      }\n    }\n\n    if (p_path != null)\n    {\n      if (p_path.indexOf('?') != -1 && p_queryString != null)\n      {\n        throw new MalformedURIException();\n      }\n\n      if (p_path.indexOf('#') != -1 && p_fragment != null)\n      {\n        throw new MalformedURIException();\n      }\n    }\n\n    setScheme(p_scheme);\n    setHost(p_host);\n    setPort(p_port);\n    setUserinfo(p_userinfo);\n    setPath(p_path);\n    setQueryString(p_queryString);\n    setFragment(p_fragment);\n  }\n\n  /**\n   * Initialize all fields of this URI from another URI.\n   *\n   * @param p_other the URI to copy (cannot be null)\n   */\n  private void initialize(URI p_other)\n  {\n\n    m_scheme = p_other.getScheme();\n    m_userinfo = p_other.getUserinfo();\n    m_host = p_other.getHost();\n    m_port = p_other.getPort();\n    m_path = p_other.getPath();\n    m_queryString = p_other.getQueryString();\n    m_fragment = p_other.getFragment();\n  }\n\n  /**\n   * Initializes this URI from a base URI and a URI specification string.\n   * See RFC 2396 Section 4 and Appendix B for specifications on parsing\n   * the URI and Section 5 for specifications on resolving relative URIs\n   * and relative paths.\n   *\n   * @param p_base the base URI (may be null if p_uriSpec is an absolute\n   *               URI)\n   * @param p_uriSpec the URI spec string which may be an absolute or\n   *                  relative URI (can only be null/empty if p_base\n   *                  is not null)\n   *\n   * @throws MalformedURIException if p_base is null and p_uriSpec\n   *                                  is not an absolute URI or if\n   *                                  p_uriSpec violates syntax rules\n   */\n  private void initialize(URI p_base, String p_uriSpec)\n          throws MalformedURIException\n  {\n\n    if (p_base == null\n            && (p_uriSpec == null || p_uriSpec.trim().length() == 0))\n    {\n      throw new MalformedURIException();\n    }\n\n    if (p_uriSpec == null || p_uriSpec.trim().length() == 0)\n    {\n      initialize(p_base);\n\n      return;\n    }\n\n    String uriSpec = p_uriSpec.trim();\n    int uriSpecLen = uriSpec.length();\n    int index = 0;\n\n    int colonIndex = uriSpec.indexOf(':');\n    if (colonIndex < 0)\n    {\n      if (p_base == null)\n      {\n      }\n    }\n    else\n    {\n      initializeScheme(uriSpec);\n      uriSpec = uriSpec.substring(colonIndex+1);\n      if(m_scheme != null && p_base != null)\n      {\t  \t\n        if(uriSpec.startsWith(\"/\") || !m_scheme.equals(p_base.m_scheme) || !p_base.getSchemeSpecificPart().startsWith(\"/\"))\n        {\n          p_base = null;\n        }\n      }\n      uriSpecLen = uriSpec.length();\n    }\n\n    if ((index + 1) < uriSpecLen)\n    {\n      index += 2;\n\n      int startPos = index;\n\n      char testChar = '\\0';\n\n      while (index < uriSpecLen)\n      {\n        testChar = uriSpec.charAt(index);\n\n        if (testChar == '/' || testChar == '?' || testChar == '#')\n        {\n          break;\n        }\n\n        index++;\n      }\n\n      if (index > startPos)\n      {\n        initializeAuthority(uriSpec.substring(startPos, index));\n      }\n      else\n      {\n        m_host = \"\";\n      }\n    }\n\n    initializePath(uriSpec.substring(index));\n\n    if (p_base != null)\n    {\n\n      if (m_path.length() == 0 && m_scheme == null && m_host == null)\n      {\n        m_scheme = p_base.getScheme();\n        m_userinfo = p_base.getUserinfo();\n        m_host = p_base.getHost();\n        m_port = p_base.getPort();\n        m_path = p_base.getPath();\n\n        if (m_queryString == null)\n        {\n          m_queryString = p_base.getQueryString();\n        }\n\n        return;\n      }\n\n      if (m_scheme == null)\n      {\n        m_scheme = p_base.getScheme();\n      }\n\n      if (m_host == null)\n      {\n        m_userinfo = p_base.getUserinfo();\n        m_host = p_base.getHost();\n        m_port = p_base.getPort();\n      }\n      else\n      {\n        return;\n      }\n\n      if (m_path.length() > 0 && m_path.startsWith(\"/\"))\n      {\n        return;\n      }\n\n      String path = new String();\n      String basePath = p_base.getPath();\n\n      if (basePath != null)\n      {\n        int lastSlash = basePath.lastIndexOf('/');\n\n        if (lastSlash != -1)\n        {\n          path = basePath.substring(0, lastSlash + 1);\n        }\n      }\n\n      path = path.concat(m_path);\n\n      index = -1;\n\n      while ((index = path.indexOf(\"/./\")) != -1)\n      {\n        path = path.substring(0, index + 1).concat(path.substring(index + 3));\n      }\n\n      if (path.endsWith(\"/.\"))\n      {\n        path = path.substring(0, path.length() - 1);\n      }\n\n      index = -1;\n\n      int segIndex = -1;\n      String tempString = null;\n\n      while ((index = path.indexOf(\"/../\")) > 0)\n      {\n        tempString = path.substring(0, path.indexOf(\"/../\"));\n        segIndex = tempString.lastIndexOf('/');\n\n        if (segIndex != -1)\n        {\n          if (!tempString.substring(segIndex++).equals(\"..\"))\n          {\n            path = path.substring(0, segIndex).concat(path.substring(index\n                    + 4));\n          }\n        }\n      }\n\n      if (path.endsWith(\"/..\"))\n      {\n        tempString = path.substring(0, path.length() - 3);\n        segIndex = tempString.lastIndexOf('/');\n\n        if (segIndex != -1)\n        {\n          path = path.substring(0, segIndex + 1);\n        }\n      }\n\n      m_path = path;\n    }\n  }\n\n  /**\n   * Initialize the scheme for this URI from a URI string spec.\n   *\n   * @param p_uriSpec the URI specification (cannot be null)\n   *\n   * @throws MalformedURIException if URI does not have a conformant\n   *                                  scheme\n   */\n  private void initializeScheme(String p_uriSpec) throws MalformedURIException\n  {\n\n    int uriSpecLen = p_uriSpec.length();\n    int index = 0;\n    String scheme = null;\n    char testChar = '\\0';\n\n    while (index < uriSpecLen)\n    {\n      testChar = p_uriSpec.charAt(index);\n\n      if (testChar == ':' || testChar == '/' || testChar == '?'\n              || testChar == '#')\n      {\n        break;\n      }\n\n      index++;\n    }\n\n    scheme = p_uriSpec.substring(0, index);\n\n    if (scheme.length() == 0)\n    {\n    }\n    else\n    {\n      setScheme(scheme);\n    }\n  }\n\n  /**\n   * Initialize the authority (userinfo, host and port) for this\n   * URI from a URI string spec.\n   *\n   * @param p_uriSpec the URI specification (cannot be null)\n   *\n   * @throws MalformedURIException if p_uriSpec violates syntax rules\n   */\n  private void initializeAuthority(String p_uriSpec)\n          throws MalformedURIException\n  {\n\n    int index = 0;\n    int start = 0;\n    int end = p_uriSpec.length();\n    char testChar = '\\0';\n    String userinfo = null;\n\n    if (p_uriSpec.indexOf('@', start) != -1)\n    {\n      while (index < end)\n      {\n        testChar = p_uriSpec.charAt(index);\n\n        if (testChar == '@')\n        {\n          break;\n        }\n\n        index++;\n      }\n\n      userinfo = p_uriSpec.substring(start, index);\n\n      index++;\n    }\n\n    String host = null;\n\n    start = index;\n\n    while (index < end)\n    {\n      testChar = p_uriSpec.charAt(index);\n\n      if (testChar == ':')\n      {\n        break;\n      }\n\n      index++;\n    }\n\n    host = p_uriSpec.substring(start, index);\n\n    int port = -1;\n\n    if (host.length() > 0)\n    {\n\n      if (testChar == ':')\n      {\n        index++;\n\n        start = index;\n\n        while (index < end)\n        {\n          index++;\n        }\n\n        String portStr = p_uriSpec.substring(start, index);\n\n        if (portStr.length() > 0)\n        {\n          for (int i = 0; i < portStr.length(); i++)\n          {\n            if (!isDigit(portStr.charAt(i)))\n            {\n              throw new MalformedURIException(\n                portStr + \" is invalid. Port should only contain digits!\");\n            }\n          }\n\n          try\n          {\n            port = Integer.parseInt(portStr);\n          }\n          catch (NumberFormatException nfe)\n          {\n\n          }\n        }\n      }\n    }\n\n    setHost(host);\n    setPort(port);\n    setUserinfo(userinfo);\n  }\n\n  /**\n   * Initialize the path for this URI from a URI string spec.\n   *\n   * @param p_uriSpec the URI specification (cannot be null)\n   *\n   * @throws MalformedURIException if p_uriSpec violates syntax rules\n   */\n  private void initializePath(String p_uriSpec) throws MalformedURIException\n  {\n\n    if (p_uriSpec == null)\n    {\n      throw new MalformedURIException(\n        \"Cannot initialize path from null string!\");\n    }\n\n    int index = 0;\n    int start = 0;\n    int end = p_uriSpec.length();\n    char testChar = '\\0';\n\n    while (index < end)\n    {\n      testChar = p_uriSpec.charAt(index);\n\n      if (testChar == '?' || testChar == '#')\n      {\n        break;\n      }\n\n      if (testChar == '%')\n      {\n        if (index + 2 >= end ||!isHex(p_uriSpec.charAt(index + 1))\n                ||!isHex(p_uriSpec.charAt(index + 2)))\n        {\n          throw new MalformedURIException();\n        }\n      }\n      else if (!isReservedCharacter(testChar)\n               &&!isUnreservedCharacter(testChar))\n      {\n        if ('\\\\' != testChar){}\n      }\n\n      index++;\n    }\n\n    m_path = p_uriSpec.substring(start, index);\n\n    if (testChar == '?')\n    {\n      index++;\n\n      start = index;\n\n      while (index < end)\n      {\n        testChar = p_uriSpec.charAt(index);\n\n        if (testChar == '#')\n        {\n          break;\n        }\n\n        if (testChar == '%')\n        {\n          if (index + 2 >= end ||!isHex(p_uriSpec.charAt(index + 1))\n                  ||!isHex(p_uriSpec.charAt(index + 2)))\n          {\n            throw new MalformedURIException(\n              \"Query string contains invalid escape sequence!\");\n          }\n        }\n        else if (!isReservedCharacter(testChar)\n                 &&!isUnreservedCharacter(testChar))\n        {\n          throw new MalformedURIException(\n            \"Query string contains invalid character:\" + testChar);\n        }\n\n        index++;\n      }\n\n      m_queryString = p_uriSpec.substring(start, index);\n    }\n\n    if (testChar == '#')\n    {\n      index++;\n\n      start = index;\n\n      while (index < end)\n      {\n        testChar = p_uriSpec.charAt(index);\n\n        if (testChar == '%')\n        {\n          if (index + 2 >= end ||!isHex(p_uriSpec.charAt(index + 1))\n                  ||!isHex(p_uriSpec.charAt(index + 2)))\n          {\n            throw new MalformedURIException(\n              \"Fragment contains invalid escape sequence!\");\n          }\n        }\n        else if (!isReservedCharacter(testChar)\n                 &&!isUnreservedCharacter(testChar))\n        {\n          throw new MalformedURIException(\n            \"Fragment contains invalid character:\" + testChar);\n        }\n\n        index++;\n      }\n\n      m_fragment = p_uriSpec.substring(start, index);\n    }\n  }\n\n  /**\n   * Get the scheme for this URI.\n   *\n   * @return the scheme for this URI\n   */\n  public String getScheme()\n  {\n    return m_scheme;\n  }\n\n  /**\n   * Get the scheme-specific part for this URI (everything following the\n   * scheme and the first colon). See RFC 2396 Section 5.2 for spec.\n   *\n   * @return the scheme-specific part for this URI\n   */\n  public String getSchemeSpecificPart()\n  {\n\n    StringBuffer schemespec = new StringBuffer();\n\n    if (m_userinfo != null || m_host != null || m_port != -1)\n    {\n    }\n\n    if (m_userinfo != null)\n    {\n      schemespec.append(m_userinfo);\n      schemespec.append('@');\n    }\n\n    if (m_host != null)\n    {\n      schemespec.append(m_host);\n    }\n\n    if (m_port != -1)\n    {\n      schemespec.append(':');\n      schemespec.append(m_port);\n    }\n\n    if (m_path != null)\n    {\n      schemespec.append((m_path));\n    }\n\n    if (m_queryString != null)\n    {\n      schemespec.append('?');\n      schemespec.append(m_queryString);\n    }\n\n    if (m_fragment != null)\n    {\n      schemespec.append('#');\n      schemespec.append(m_fragment);\n    }\n\n    return schemespec.toString();\n  }\n\n  /**\n   * Get the userinfo for this URI.\n   *\n   * @return the userinfo for this URI (null if not specified).\n   */\n  public String getUserinfo()\n  {\n    return m_userinfo;\n  }\n\n  /**\n   * Get the host for this URI.\n   *\n   * @return the host for this URI (null if not specified).\n   */\n  public String getHost()\n  {\n    return m_host;\n  }\n\n  /**\n   * Get the port for this URI.\n   *\n   * @return the port for this URI (-1 if not specified).\n   */\n  public int getPort()\n  {\n    return m_port;\n  }\n\n  /**\n   * Get the path for this URI (optionally with the query string and\n   * fragment).\n   *\n   * @param p_includeQueryString if true (and query string is not null),\n   *                             then a \"?\" followed by the query string\n   *                             will be appended\n   * @param p_includeFragment if true (and fragment is not null),\n   *                             then a \"#\" followed by the fragment\n   *                             will be appended\n   *\n   * @return the path for this URI possibly including the query string\n   *         and fragment\n   */\n  public String getPath(boolean p_includeQueryString,\n                        boolean p_includeFragment)\n  {\n\n    StringBuffer pathString = new StringBuffer(m_path);\n\n    if (p_includeQueryString && m_queryString != null)\n    {\n      pathString.append('?');\n      pathString.append(m_queryString);\n    }\n\n    if (p_includeFragment && m_fragment != null)\n    {\n      pathString.append('#');\n      pathString.append(m_fragment);\n    }\n\n    return pathString.toString();\n  }\n\n  /**\n   * Get the path for this URI. Note that the value returned is the path\n   * only and does not include the query string or fragment.\n   *\n   * @return the path for this URI.\n   */\n  public String getPath()\n  {\n    return m_path;\n  }\n\n  /**\n   * Get the query string for this URI.\n   *\n   * @return the query string for this URI. Null is returned if there\n   *         was no \"?\" in the URI spec, empty string if there was a\n   *         \"?\" but no query string following it.\n   */\n  public String getQueryString()\n  {\n    return m_queryString;\n  }\n\n  /**\n   * Get the fragment for this URI.\n   *\n   * @return the fragment for this URI. Null is returned if there\n   *         was no \"#\" in the URI spec, empty string if there was a\n   *         \"#\" but no fragment following it.\n   */\n  public String getFragment()\n  {\n    return m_fragment;\n  }\n\n  /**\n   * Set the scheme for this URI. The scheme is converted to lowercase\n   * before it is set.\n   *\n   * @param p_scheme the scheme for this URI (cannot be null)\n   *\n   * @throws MalformedURIException if p_scheme is not a conformant\n   *                                  scheme name\n   */\n  public void setScheme(String p_scheme) throws MalformedURIException\n  {\n\n    if (p_scheme == null)\n    {\n    }\n\n    if (!isConformantSchemeName(p_scheme))\n    {\n    }\n\n    m_scheme = p_scheme.toLowerCase();\n  }\n\n  /**\n   * Set the userinfo for this URI. If a non-null value is passed in and\n   * the host value is null, then an exception is thrown.\n   *\n   * @param p_userinfo the userinfo for this URI\n   *\n   * @throws MalformedURIException if p_userinfo contains invalid\n   *                                  characters\n   */\n  public void setUserinfo(String p_userinfo) throws MalformedURIException\n  {\n\n    if (p_userinfo == null)\n    {\n      m_userinfo = null;\n    }\n    else\n    {\n      if (m_host == null)\n      {\n        throw new MalformedURIException(\n          \"Userinfo cannot be set when host is null!\");\n      }\n\n      int index = 0;\n      int end = p_userinfo.length();\n      char testChar = '\\0';\n\n      while (index < end)\n      {\n        testChar = p_userinfo.charAt(index);\n\n        if (testChar == '%')\n        {\n          if (index + 2 >= end ||!isHex(p_userinfo.charAt(index + 1))\n                  ||!isHex(p_userinfo.charAt(index + 2)))\n          {\n            throw new MalformedURIException(\n              \"Userinfo contains invalid escape sequence!\");\n          }\n        }\n        else if (!isUnreservedCharacter(testChar)\n                 && USERINFO_CHARACTERS.indexOf(testChar) == -1)\n        {\n          throw new MalformedURIException(\n            \"Userinfo contains invalid character:\" + testChar);\n        }\n\n        index++;\n      }\n    }\n\n    m_userinfo = p_userinfo;\n  }\n\n  /**\n   * Set the host for this URI. If null is passed in, the userinfo\n   * field is also set to null and the port is set to -1.\n   *\n   * @param p_host the host for this URI\n   *\n   * @throws MalformedURIException if p_host is not a valid IP\n   *                                  address or DNS hostname.\n   */\n  public void setHost(String p_host) throws MalformedURIException\n  {\n\n    if (p_host == null || p_host.trim().length() == 0)\n    {\n      m_host = p_host;\n      m_userinfo = null;\n      m_port = -1;\n    }\n    else if (!isWellFormedAddress(p_host))\n    {\n    }\n\n    m_host = p_host;\n  }\n\n  /**\n   * Set the port for this URI. -1 is used to indicate that the port is\n   * not specified, otherwise valid port numbers are  between 0 and 65535.\n   * If a valid port number is passed in and the host field is null,\n   * an exception is thrown.\n   *\n   * @param p_port the port number for this URI\n   *\n   * @throws MalformedURIException if p_port is not -1 and not a\n   *                                  valid port number\n   */\n  public void setPort(int p_port) throws MalformedURIException\n  {\n\n    if (p_port >= 0 && p_port <= 65535)\n    {\n      if (m_host == null)\n      {\n        throw new MalformedURIException();\n      }\n    }\n    else if (p_port != -1)\n    {\n    }\n\n    m_port = p_port;\n  }\n\n  /**\n   * Set the path for this URI. If the supplied path is null, then the\n   * query string and fragment are set to null as well. If the supplied\n   * path includes a query string and/or fragment, these fields will be\n   * parsed and set as well. Note that, for URIs following the \"generic\n   * URI\" syntax, the path specified should start with a slash.\n   * For URIs that do not follow the generic URI syntax, this method\n   * sets the scheme-specific part.\n   *\n   * @param p_path the path for this URI (may be null)\n   *\n   * @throws MalformedURIException if p_path contains invalid\n   *                                  characters\n   */\n  public void setPath(String p_path) throws MalformedURIException\n  {\n\n    if (p_path == null)\n    {\n      m_path = null;\n      m_queryString = null;\n      m_fragment = null;\n    }\n    else\n    {\n      initializePath(p_path);\n    }\n  }\n\n  /**\n   * Append to the end of the path of this URI. If the current path does\n   * not end in a slash and the path to be appended does not begin with\n   * a slash, a slash will be appended to the current path before the\n   * new segment is added. Also, if the current path ends in a slash\n   * and the new segment begins with a slash, the extra slash will be\n   * removed before the new segment is appended.\n   *\n   * @param p_addToPath the new segment to be added to the current path\n   *\n   * @throws MalformedURIException if p_addToPath contains syntax\n   *                                  errors\n   */\n  public void appendPath(String p_addToPath) throws MalformedURIException\n  {\n\n    if (p_addToPath == null || p_addToPath.trim().length() == 0)\n    {\n      return;\n    }\n\n    if (!isURIString(p_addToPath))\n    {\n    }\n\n    if (m_path == null || m_path.trim().length() == 0)\n    {\n      if (p_addToPath.startsWith(\"/\"))\n      {\n        m_path = p_addToPath;\n      }\n      else\n      {\n        m_path = \"/\" + p_addToPath;\n      }\n    }\n    else if (m_path.endsWith(\"/\"))\n    {\n      if (p_addToPath.startsWith(\"/\"))\n      {\n        m_path = m_path.concat(p_addToPath.substring(1));\n      }\n      else\n      {\n        m_path = m_path.concat(p_addToPath);\n      }\n    }\n    else\n    {\n      if (p_addToPath.startsWith(\"/\"))\n      {\n        m_path = m_path.concat(p_addToPath);\n      }\n      else\n      {\n        m_path = m_path.concat(\"/\" + p_addToPath);\n      }\n    }\n  }\n\n  /**\n   * Set the query string for this URI. A non-null value is valid only\n   * if this is an URI conforming to the generic URI syntax and\n   * the path value is not null.\n   *\n   * @param p_queryString the query string for this URI\n   *\n   * @throws MalformedURIException if p_queryString is not null and this\n   *                                  URI does not conform to the generic\n   *                                  URI syntax or if the path is null\n   */\n  public void setQueryString(String p_queryString)\n          throws MalformedURIException\n  {\n\n    if (p_queryString == null)\n    {\n      m_queryString = null;\n    }\n    else if (!isGenericURI())\n    {\n      throw new MalformedURIException(\n        \"Query string can only be set for a generic URI!\");\n    }\n    else if (getPath() == null)\n    {\n      throw new MalformedURIException(\n        \"Query string cannot be set when path is null!\");\n    }\n    else if (!isURIString(p_queryString))\n    {\n      throw new MalformedURIException(\n        \"Query string contains invalid character!\");\n    }\n    else\n    {\n      m_queryString = p_queryString;\n    }\n  }\n\n  /**\n   * Set the fragment for this URI. A non-null value is valid only\n   * if this is a URI conforming to the generic URI syntax and\n   * the path value is not null.\n   *\n   * @param p_fragment the fragment for this URI\n   *\n   * @throws MalformedURIException if p_fragment is not null and this\n   *                                  URI does not conform to the generic\n   *                                  URI syntax or if the path is null\n   */\n  public void setFragment(String p_fragment) throws MalformedURIException\n  {\n\n    if (p_fragment == null)\n    {\n      m_fragment = null;\n    }\n    else if (!isGenericURI())\n    {\n      throw new MalformedURIException();\n    }\n    else if (getPath() == null)\n    {\n      throw new MalformedURIException();\n    }\n    else if (!isURIString(p_fragment))\n    {\n    }\n    else\n    {\n      m_fragment = p_fragment;\n    }\n  }\n\n  /**\n   * Determines if the passed-in Object is equivalent to this URI.\n   *\n   * @param p_test the Object to test for equality.\n   *\n   * @return true if p_test is a URI with all values equal to this\n   *         URI, false otherwise\n   */\n  public boolean equals(Object p_test)\n  {\n\n    if (p_test instanceof URI)\n    {\n      URI testURI = (URI) p_test;\n\n      if (((m_scheme == null && testURI.m_scheme == null) || (m_scheme != null && testURI.m_scheme != null && m_scheme.equals(\n              testURI.m_scheme))) && ((m_userinfo == null && testURI.m_userinfo == null) || (m_userinfo != null && testURI.m_userinfo != null && m_userinfo.equals(\n              testURI.m_userinfo))) && ((m_host == null && testURI.m_host == null) || (m_host != null && testURI.m_host != null && m_host.equals(\n              testURI.m_host))) && m_port == testURI.m_port && ((m_path == null && testURI.m_path == null) || (m_path != null && testURI.m_path != null && m_path.equals(\n              testURI.m_path))) && ((m_queryString == null && testURI.m_queryString == null) || (m_queryString != null && testURI.m_queryString != null && m_queryString.equals(\n              testURI.m_queryString))) && ((m_fragment == null && testURI.m_fragment == null) || (m_fragment != null && testURI.m_fragment != null && m_fragment.equals(\n              testURI.m_fragment))))\n      {\n        return true;\n      }\n    }\n\n    return false;\n  }\n\n  /**\n   * Get the URI as a string specification. See RFC 2396 Section 5.2.\n   *\n   * @return the URI string specification\n   */\n  public String toString()\n  {\n\n    StringBuffer uriSpecString = new StringBuffer();\n\n    if (m_scheme != null)\n    {\n      uriSpecString.append(m_scheme);\n      uriSpecString.append(':');\n    }\n\n    uriSpecString.append(getSchemeSpecificPart());\n\n    return uriSpecString.toString();\n  }\n\n  /**\n   * Get the indicator as to whether this URI uses the \"generic URI\"\n   * syntax.\n   *\n   * @return true if this URI uses the \"generic URI\" syntax, false\n   *         otherwise\n   */\n  public boolean isGenericURI()\n  {\n\n    return (m_host != null);\n  }\n\n  /**\n   * Determine whether a scheme conforms to the rules for a scheme name.\n   * A scheme is conformant if it starts with an alphanumeric, and\n   * contains only alphanumerics, '+','-' and '.'.\n   *\n   *\n   * @param p_scheme The sheme name to check\n   * @return true if the scheme is conformant, false otherwise\n   */\n  public static boolean isConformantSchemeName(String p_scheme)\n  {\n\n    if (p_scheme == null || p_scheme.trim().length() == 0)\n    {\n      return false;\n    }\n\n    if (!isAlpha(p_scheme.charAt(0)))\n    {\n      return false;\n    }\n\n    char testChar;\n\n    for (int i = 1; i < p_scheme.length(); i++)\n    {\n      testChar = p_scheme.charAt(i);\n\n      if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)\n      {\n        return false;\n      }\n    }\n\n    return true;\n  }\n\n  /**\n   * Determine whether a string is syntactically capable of representing\n   * a valid IPv4 address or the domain name of a network host. A valid\n   * IPv4 address consists of four decimal digit groups separated by a\n   * '.'. A hostname consists of domain labels (each of which must\n   * begin and end with an alphanumeric but may contain '-') separated\n   * & by a '.'. See RFC 2396 Section 3.2.2.\n   *\n   *\n   * @param p_address The address string to check\n   * @return true if the string is a syntactically valid IPv4 address\n   *              or hostname\n   */\n  public static boolean isWellFormedAddress(String p_address)\n  {\n\n    if (p_address == null)\n    {\n      return false;\n    }\n\n    String address = p_address.trim();\n    int addrLength = address.length();\n\n    if (addrLength == 0 || addrLength > 255)\n    {\n      return false;\n    }\n\n    if (address.startsWith(\".\") || address.startsWith(\"-\"))\n    {\n      return false;\n    }\n\n    int index = address.lastIndexOf('.');\n\n    if (address.endsWith(\".\"))\n    {\n      index = address.substring(0, index).lastIndexOf('.');\n    }\n\n    if (index + 1 < addrLength && isDigit(p_address.charAt(index + 1)))\n    {\n      char testChar;\n      int numDots = 0;\n\n      for (int i = 0; i < addrLength; i++)\n      {\n        testChar = address.charAt(i);\n\n        if (testChar == '.')\n        {\n          if (!isDigit(address.charAt(i - 1))\n                  || (i + 1 < addrLength &&!isDigit(address.charAt(i + 1))))\n          {\n            return false;\n          }\n\n          numDots++;\n        }\n        else if (!isDigit(testChar))\n        {\n          return false;\n        }\n      }\n\n      if (numDots != 3)\n      {\n        return false;\n      }\n    }\n    else\n    {\n\n      char testChar;\n\n      for (int i = 0; i < addrLength; i++)\n      {\n        testChar = address.charAt(i);\n\n        if (testChar == '.')\n        {\n          if (!isAlphanum(address.charAt(i - 1)))\n          {\n            return false;\n          }\n\n          if (i + 1 < addrLength &&!isAlphanum(address.charAt(i + 1)))\n          {\n            return false;\n          }\n        }\n        else if (!isAlphanum(testChar) && testChar != '-')\n        {\n          return false;\n        }\n      }\n    }\n\n    return true;\n  }\n\n  /**\n   * Determine whether a char is a digit.\n   *\n   *\n   * @param p_char the character to check\n   * @return true if the char is betweeen '0' and '9', false otherwise\n   */\n  private static boolean isDigit(char p_char)\n  {\n    return p_char >= '0' && p_char <= '9';\n  }\n\n  /**\n   * Determine whether a character is a hexadecimal character.\n   *\n   *\n   * @param p_char the character to check\n   * @return true if the char is betweeen '0' and '9', 'a' and 'f'\n   *         or 'A' and 'F', false otherwise\n   */\n  private static boolean isHex(char p_char)\n  {\n    return (isDigit(p_char) || (p_char >= 'a' && p_char <= 'f')\n            || (p_char >= 'A' && p_char <= 'F'));\n  }\n\n  /**\n   * Determine whether a char is an alphabetic character: a-z or A-Z\n   *\n   *\n   * @param p_char the character to check\n   * @return true if the char is alphabetic, false otherwise\n   */\n  private static boolean isAlpha(char p_char)\n  {\n    return ((p_char >= 'a' && p_char <= 'z')\n            || (p_char >= 'A' && p_char <= 'Z'));\n  }\n\n  /**\n   * Determine whether a char is an alphanumeric: 0-9, a-z or A-Z\n   *\n   *\n   * @param p_char the character to check\n   * @return true if the char is alphanumeric, false otherwise\n   */\n  private static boolean isAlphanum(char p_char)\n  {\n    return (isAlpha(p_char) || isDigit(p_char));\n  }\n\n  /**\n   * Determine whether a character is a reserved character:\n   * ';', '/', '?', ':', '@', '&', '=', '+', '$' or ','\n   *\n   *\n   * @param p_char the character to check\n   * @return true if the string contains any reserved characters\n   */\n  private static boolean isReservedCharacter(char p_char)\n  {\n    return RESERVED_CHARACTERS.indexOf(p_char) != -1;\n  }\n\n  /**\n   * Determine whether a char is an unreserved character.\n   *\n   *\n   * @param p_char the character to check\n   * @return true if the char is unreserved, false otherwise\n   */\n  private static boolean isUnreservedCharacter(char p_char)\n  {\n    return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);\n  }\n\n  /**\n   * Determine whether a given string contains only URI characters (also\n   * called \"uric\" in RFC 2396). uric consist of all reserved\n   * characters, unreserved characters and escaped characters.\n   *\n   *\n   * @param p_uric URI string\n   * @return true if the string is comprised of uric, false otherwise\n   */\n  private static boolean isURIString(String p_uric)\n  {\n\n    if (p_uric == null)\n    {\n      return false;\n    }\n\n    int end = p_uric.length();\n    char testChar = '\\0';\n\n    for (int i = 0; i < end; i++)\n    {\n      testChar = p_uric.charAt(i);\n\n      if (testChar == '%')\n      {\n        if (i + 2 >= end ||!isHex(p_uric.charAt(i + 1))\n                ||!isHex(p_uric.charAt(i + 2)))\n        {\n          return false;\n        }\n        else\n        {\n          i += 2;\n\n          continue;\n        }\n      }\n\n      if (isReservedCharacter(testChar) || isUnreservedCharacter(testChar))\n      {\n        continue;\n      }\n      else\n      {\n        return false;\n      }\n    }\n\n    return true;", "functions": [{"function_name": "initialize", "code": "  private void initialize(URI p_other)\n  {\n\n    m_scheme = p_other.getScheme();\n    m_userinfo = p_other.getUserinfo();\n    m_host = p_other.getHost();\n    m_port = p_other.getPort();\n    m_path = p_other.getPath();\n    m_queryString = p_other.getQueryString();\n    m_fragment = p_other.getFragment();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [4, 11], [5, 12], [6, 13], [7, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 4], [12, 5], [13, 6], [14, 7], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "initialize", "code": "  private void initialize(URI p_base, String p_uriSpec)\n          throws MalformedURIException\n  {\n\n    if (p_base == null\n            && (p_uriSpec == null || p_uriSpec.trim().length() == 0))\n    {\n      throw new MalformedURIException();\n    }\n\n    if (p_uriSpec == null || p_uriSpec.trim().length() == 0)\n    {\n      initialize(p_base);\n\n      return;\n    }\n\n    String uriSpec = p_uriSpec.trim();\n    int uriSpecLen = uriSpec.length();\n    int index = 0;\n\n    int colonIndex = uriSpec.indexOf(':');\n    if (colonIndex < 0)\n    {\n      if (p_base == null)\n      {\n      }\n    }\n    else\n    {\n      initializeScheme(uriSpec);\n      uriSpec = uriSpec.substring(colonIndex+1);\n      if(m_scheme != null && p_base != null)\n      {\t  \t\n        if(uriSpec.startsWith(\"/\") || !m_scheme.equals(p_base.m_scheme) || !p_base.getSchemeSpecificPart().startsWith(\"/\"))\n        {\n          p_base = null;\n        }\n      }\n      uriSpecLen = uriSpec.length();\n    }\n\n    if ((index + 1) < uriSpecLen)\n    {\n      index += 2;\n\n      int startPos = index;\n\n      char testChar = '\\0';\n\n      while (index < uriSpecLen)\n      {\n        testChar = uriSpec.charAt(index);\n\n        if (testChar == '/' || testChar == '?' || testChar == '#')\n        {\n          break;\n        }\n\n        index++;\n      }\n\n      if (index > startPos)\n      {\n        initializeAuthority(uriSpec.substring(startPos, index));\n      }\n      else\n      {\n        m_host = \"\";\n      }\n    }\n\n    initializePath(uriSpec.substring(index));\n\n    if (p_base != null)\n    {\n\n      if (m_path.length() == 0 && m_scheme == null && m_host == null)\n      {\n        m_scheme = p_base.getScheme();\n        m_userinfo = p_base.getUserinfo();\n        m_host = p_base.getHost();\n        m_port = p_base.getPort();\n        m_path = p_base.getPath();\n\n        if (m_queryString == null)\n        {\n          m_queryString = p_base.getQueryString();\n        }\n\n        return;\n      }\n\n      if (m_scheme == null)\n      {\n        m_scheme = p_base.getScheme();\n      }\n\n      if (m_host == null)\n      {\n        m_userinfo = p_base.getUserinfo();\n        m_host = p_base.getHost();\n        m_port = p_base.getPort();\n      }\n      else\n      {\n        return;\n      }\n\n      if (m_path.length() > 0 && m_path.startsWith(\"/\"))\n      {\n        return;\n      }\n\n      String path = new String();\n      String basePath = p_base.getPath();\n\n      if (basePath != null)\n      {\n        int lastSlash = basePath.lastIndexOf('/');\n\n        if (lastSlash != -1)\n        {\n          path = basePath.substring(0, lastSlash + 1);\n        }\n      }\n\n      path = path.concat(m_path);\n\n      index = -1;\n\n      while ((index = path.indexOf(\"/./\")) != -1)\n      {\n        path = path.substring(0, index + 1).concat(path.substring(index + 3));\n      }\n\n      if (path.endsWith(\"/.\"))\n      {\n        path = path.substring(0, path.length() - 1);\n      }\n\n      index = -1;\n\n      int segIndex = -1;\n      String tempString = null;\n\n      while ((index = path.indexOf(\"/../\")) > 0)\n      {\n        tempString = path.substring(0, path.indexOf(\"/../\"));\n        segIndex = tempString.lastIndexOf('/');\n\n        if (segIndex != -1)\n        {\n          if (!tempString.substring(segIndex++).equals(\"..\"))\n          {\n            path = path.substring(0, segIndex).concat(path.substring(index\n                    + 4));\n          }\n        }\n      }\n\n      if (path.endsWith(\"/..\"))\n      {\n        tempString = path.substring(0, path.length() - 3);\n        segIndex = tempString.lastIndexOf('/');\n\n        if (segIndex != -1)\n        {\n          path = path.substring(0, segIndex + 1);\n        }\n      }\n\n      m_path = path;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [0, 13], [2, 14], [3, 15], [8, 16], [9, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [12, 31], [13, 32], [2, 33], [2, 34], [2, 35], [2, 36], [14, 37], [3, 38], [3, 39], [15, 40], [4, 41], [5, 42], [6, 43], [7, 44], [8, 45], [16, 46], [16, 47], [9, 48], [17, 49], [17, 50], [1, 51], [18, 52], [19, 53], [1, 54], [22, 55], [23, 56], [1, 57], [1, 58], [24, 59], [27, 60], [28, 61], [29, 62], [30, 63], [33, 64], [34, 65], [2, 66], [37, 67], [3, 68], [38, 69], [3, 70], [3, 71], [39, 72], [41, 73], [8, 74], [46, 75], [46, 76], [47, 77], [48, 78], [49, 79], [49, 80], [50, 81], [18, 82], [52, 83], [19, 84], [53, 85], [53, 86], [20, 87], [21, 88], [54, 89], [55, 90], [56, 91], [56, 92], [57, 93], [58, 94], [24, 95], [24, 96], [59, 97], [25, 98], [26, 99], [27, 100], [60, 101], [60, 102], [28, 103], [61, 104], [62, 105], [30, 106], [30, 107], [63, 108], [63, 109], [34, 110], [35, 111], [66, 112], [68, 113], [38, 114], [69, 115], [69, 116], [70, 117], [72, 118], [76, 119], [79, 120], [79, 121], [80, 122], [82, 123], [18, 124], [18, 125], [84, 126], [19, 127], [19, 128], [86, 129], [22, 130], [23, 131], [92, 132], [95, 133], [101, 134], [102, 135], [102, 136], [28, 137], [28, 138], [28, 139], [29, 140], [107, 141], [30, 142], [30, 143], [30, 144], [30, 145], [30, 146], [108, 147], [109, 148], [109, 149], [33, 150], [33, 151], [110, 152], [34, 153], [114, 154], [115, 155], [116, 156], [117, 157], [121, 158], [123, 159], [124, 160], [125, 161], [84, 162], [126, 163], [127, 164], [128, 165], [129, 166], [130, 167], [131, 168], [132, 169], [133, 170], [96, 171], [137, 172], [138, 173], [139, 174], [140, 175], [141, 176], [142, 177], [143, 178], [144, 179], [145, 180], [146, 181], [148, 182], [149, 183], [149, 184], [150, 185], [151, 186], [110, 187], [152, 188], [152, 189], [153, 190], [154, 191], [154, 192], [157, 193], [82, 194], [160, 195], [161, 196], [161, 197], [162, 198], [164, 199], [165, 200], [165, 201], [167, 202], [167, 203], [168, 204], [168, 205], [168, 206], [95, 207], [171, 208], [107, 209], [188, 210], [189, 211], [189, 212], [114, 213], [191, 214], [192, 215], [192, 216], [194, 217], [196, 218], [196, 219], [198, 220], [200, 221], [202, 222], [202, 223], [204, 224], [206, 225], [207, 226], [209, 227], [211, 228], [212, 229], [213, 230], [214, 231], [216, 232], [217, 233], [217, 234], [162, 235], [220, 236], [225, 237], [226, 238], [226, 239], [233, 240], [235, 241], [237, 242], [238, 243], [241, 244], [241, 245], [245, 246], [246, 247], [247, 248], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 0], [14, 2], [15, 3], [16, 8], [17, 9], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 12], [32, 13], [33, 2], [34, 2], [35, 2], [36, 2], [37, 14], [38, 3], [39, 3], [40, 15], [41, 4], [42, 5], [43, 6], [44, 7], [45, 8], [46, 16], [47, 16], [48, 9], [49, 17], [50, 17], [51, 1], [52, 18], [53, 19], [54, 1], [55, 22], [56, 23], [57, 1], [58, 1], [59, 24], [60, 27], [61, 28], [62, 29], [63, 30], [64, 33], [65, 34], [66, 2], [67, 37], [68, 3], [69, 38], [70, 3], [71, 3], [72, 39], [73, 41], [74, 8], [75, 46], [76, 46], [77, 47], [78, 48], [79, 49], [80, 49], [81, 50], [82, 18], [83, 52], [84, 19], [85, 53], [86, 53], [87, 20], [88, 21], [89, 54], [90, 55], [91, 56], [92, 56], [93, 57], [94, 58], [95, 24], [96, 24], [97, 59], [98, 25], [99, 26], [100, 27], [101, 60], [102, 60], [103, 28], [104, 61], [105, 62], [106, 30], [107, 30], [108, 63], [109, 63], [110, 34], [111, 35], [112, 66], [113, 68], [114, 38], [115, 69], [116, 69], [117, 70], [118, 72], [119, 76], [120, 79], [121, 79], [122, 80], [123, 82], [124, 18], [125, 18], [126, 84], [127, 19], [128, 19], [129, 86], [130, 22], [131, 23], [132, 92], [133, 95], [134, 101], [135, 102], [136, 102], [137, 28], [138, 28], [139, 28], [140, 29], [141, 107], [142, 30], [143, 30], [144, 30], [145, 30], [146, 30], [147, 108], [148, 109], [149, 109], [150, 33], [151, 33], [152, 110], [153, 34], [154, 114], [155, 115], [156, 116], [157, 117], [158, 121], [159, 123], [160, 124], [161, 125], [162, 84], [163, 126], [164, 127], [165, 128], [166, 129], [167, 130], [168, 131], [169, 132], [170, 133], [171, 96], [172, 137], [173, 138], [174, 139], [175, 140], [176, 141], [177, 142], [178, 143], [179, 144], [180, 145], [181, 146], [182, 148], [183, 149], [184, 149], [185, 150], [186, 151], [187, 110], [188, 152], [189, 152], [190, 153], [191, 154], [192, 154], [193, 157], [194, 82], [195, 160], [196, 161], [197, 161], [198, 162], [199, 164], [200, 165], [201, 165], [202, 167], [203, 167], [204, 168], [205, 168], [206, 168], [207, 95], [208, 171], [209, 107], [210, 188], [211, 189], [212, 189], [213, 114], [214, 191], [215, 192], [216, 192], [217, 194], [218, 196], [219, 196], [220, 198], [221, 200], [222, 202], [223, 202], [224, 204], [225, 206], [226, 207], [227, 209], [228, 211], [229, 212], [230, 213], [231, 214], [232, 216], [233, 217], [234, 217], [235, 162], [236, 220], [237, 225], [238, 226], [239, 226], [240, 233], [241, 235], [242, 237], [243, 238], [244, 241], [245, 241], [246, 245], [247, 246], [248, 247], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248]]}, {"function_name": "initializeScheme", "code": "  private void initializeScheme(String p_uriSpec) throws MalformedURIException\n  {\n\n    int uriSpecLen = p_uriSpec.length();\n    int index = 0;\n    String scheme = null;\n    char testChar = '\\0';\n\n    while (index < uriSpecLen)\n    {\n      testChar = p_uriSpec.charAt(index);\n\n      if (testChar == ':' || testChar == '/' || testChar == '?'\n              || testChar == '#')\n      {\n        break;\n      }\n\n      index++;\n    }\n\n    scheme = p_uriSpec.substring(0, index);\n\n    if (scheme.length() == 0)\n    {\n    }\n    else\n    {\n      setScheme(scheme);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [2, 10], [8, 11], [8, 12], [9, 13], [2, 14], [3, 15], [4, 16], [5, 17], [6, 18], [1, 19], [13, 20], [14, 21], [2, 22], [14, 23], [21, 24], [21, 25], [22, 26], [24, 27], [25, 28], [25, 29], [28, 30], [29, 31], [29, 32], [31, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 2], [11, 8], [12, 8], [13, 9], [14, 2], [15, 3], [16, 4], [17, 5], [18, 6], [19, 1], [20, 13], [21, 14], [22, 2], [23, 14], [24, 21], [25, 21], [26, 22], [27, 24], [28, 25], [29, 25], [30, 28], [31, 29], [32, 29], [33, 31], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "initializeAuthority", "code": "  private void initializeAuthority(String p_uriSpec)\n          throws MalformedURIException\n  {\n\n    int index = 0;\n    int start = 0;\n    int end = p_uriSpec.length();\n    char testChar = '\\0';\n    String userinfo = null;\n\n    if (p_uriSpec.indexOf('@', start) != -1)\n    {\n      while (index < end)\n      {\n        testChar = p_uriSpec.charAt(index);\n\n        if (testChar == '@')\n        {\n          break;\n        }\n\n        index++;\n      }\n\n      userinfo = p_uriSpec.substring(start, index);\n\n      index++;\n    }\n\n    String host = null;\n\n    start = index;\n\n    while (index < end)\n    {\n      testChar = p_uriSpec.charAt(index);\n\n      if (testChar == ':')\n      {\n        break;\n      }\n\n      index++;\n    }\n\n    host = p_uriSpec.substring(start, index);\n\n    int port = -1;\n\n    if (host.length() > 0)\n    {\n\n      if (testChar == ':')\n      {\n        index++;\n\n        start = index;\n\n        while (index < end)\n        {\n          index++;\n        }\n\n        String portStr = p_uriSpec.substring(start, index);\n\n        if (portStr.length() > 0)\n        {\n          for (int i = 0; i < portStr.length(); i++)\n          {\n            if (!isDigit(portStr.charAt(i)))\n            {\n              throw new MalformedURIException(\n                portStr + \" is invalid. Port should only contain digits!\");\n            }\n          }\n\n          try\n          {\n            port = Integer.parseInt(portStr);\n          }\n          catch (NumberFormatException nfe)\n          {\n\n          }\n        }\n      }\n    }\n\n    setHost(host);\n    setPort(port);\n    setUserinfo(userinfo);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LOOP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "TRY", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CATCH", "BINARY_OP", "ASSIGN", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [0, 16], [3, 17], [0, 18], [5, 19], [1, 20], [15, 21], [15, 22], [2, 23], [16, 24], [3, 25], [4, 26], [5, 27], [19, 28], [19, 29], [6, 30], [7, 31], [8, 32], [9, 33], [10, 34], [20, 35], [25, 36], [3, 37], [5, 38], [27, 39], [29, 40], [20, 41], [20, 42], [20, 43], [35, 44], [25, 45], [36, 46], [37, 47], [38, 48], [27, 49], [41, 50], [43, 51], [20, 52], [49, 53], [27, 54], [41, 55], [41, 56], [50, 57], [50, 58], [42, 59], [49, 60], [53, 61], [54, 62], [55, 63], [56, 64], [55, 65], [56, 66], [64, 67], [65, 68], [66, 69], [56, 70], [66, 71], [69, 72], [71, 73], [73, 74], [74, 75], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 0], [17, 3], [18, 0], [19, 5], [20, 1], [21, 15], [22, 15], [23, 2], [24, 16], [25, 3], [26, 4], [27, 5], [28, 19], [29, 19], [30, 6], [31, 7], [32, 8], [33, 9], [34, 10], [35, 20], [36, 25], [37, 3], [38, 5], [39, 27], [40, 29], [41, 20], [42, 20], [43, 20], [44, 35], [45, 25], [46, 36], [47, 37], [48, 38], [49, 27], [50, 41], [51, 43], [52, 20], [53, 49], [54, 27], [55, 41], [56, 41], [57, 50], [58, 50], [59, 42], [60, 49], [61, 53], [62, 54], [63, 55], [64, 56], [65, 55], [66, 56], [67, 64], [68, 65], [69, 66], [70, 56], [71, 66], [72, 69], [73, 71], [74, 73], [75, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "initializePath", "code": "  private void initializePath(String p_uriSpec) throws MalformedURIException\n  {\n\n    if (p_uriSpec == null)\n    {\n      throw new MalformedURIException(\n        \"Cannot initialize path from null string!\");\n    }\n\n    int index = 0;\n    int start = 0;\n    int end = p_uriSpec.length();\n    char testChar = '\\0';\n\n    while (index < end)\n    {\n      testChar = p_uriSpec.charAt(index);\n\n      if (testChar == '?' || testChar == '#')\n      {\n        break;\n      }\n\n      if (testChar == '%')\n      {\n        if (index + 2 >= end ||!isHex(p_uriSpec.charAt(index + 1))\n                ||!isHex(p_uriSpec.charAt(index + 2)))\n        {\n          throw new MalformedURIException();\n        }\n      }\n      else if (!isReservedCharacter(testChar)\n               &&!isUnreservedCharacter(testChar))\n      {\n        if ('\\\\' != testChar){}\n      }\n\n      index++;\n    }\n\n    m_path = p_uriSpec.substring(start, index);\n\n    if (testChar == '?')\n    {\n      index++;\n\n      start = index;\n\n      while (index < end)\n      {\n        testChar = p_uriSpec.charAt(index);\n\n        if (testChar == '#')\n        {\n          break;\n        }\n\n        if (testChar == '%')\n        {\n          if (index + 2 >= end ||!isHex(p_uriSpec.charAt(index + 1))\n                  ||!isHex(p_uriSpec.charAt(index + 2)))\n          {\n            throw new MalformedURIException(\n              \"Query string contains invalid escape sequence!\");\n          }\n        }\n        else if (!isReservedCharacter(testChar)\n                 &&!isUnreservedCharacter(testChar))\n        {\n          throw new MalformedURIException(\n            \"Query string contains invalid character:\" + testChar);\n        }\n\n        index++;\n      }\n\n      m_queryString = p_uriSpec.substring(start, index);\n    }\n\n    if (testChar == '#')\n    {\n      index++;\n\n      start = index;\n\n      while (index < end)\n      {\n        testChar = p_uriSpec.charAt(index);\n\n        if (testChar == '%')\n        {\n          if (index + 2 >= end ||!isHex(p_uriSpec.charAt(index + 1))\n                  ||!isHex(p_uriSpec.charAt(index + 2)))\n          {\n            throw new MalformedURIException(\n              \"Fragment contains invalid escape sequence!\");\n          }\n        }\n        else if (!isReservedCharacter(testChar)\n                 &&!isUnreservedCharacter(testChar))\n        {\n          throw new MalformedURIException(\n            \"Fragment contains invalid character:\" + testChar);\n        }\n\n        index++;\n      }\n\n      m_fragment = p_uriSpec.substring(start, index);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "CALL", "IF", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [0, 12], [3, 13], [8, 14], [1, 15], [10, 16], [2, 17], [11, 18], [12, 19], [3, 20], [3, 21], [4, 22], [5, 23], [6, 24], [7, 25], [8, 26], [14, 27], [1, 28], [15, 29], [1, 30], [2, 31], [17, 32], [2, 33], [20, 34], [20, 35], [21, 36], [3, 37], [26, 38], [28, 39], [15, 40], [31, 41], [17, 42], [17, 43], [34, 44], [20, 45], [35, 46], [21, 47], [36, 48], [36, 49], [37, 50], [38, 51], [40, 52], [40, 53], [15, 54], [42, 55], [42, 56], [43, 57], [17, 58], [34, 59], [44, 60], [44, 61], [45, 62], [48, 63], [49, 64], [52, 65], [40, 66], [53, 67], [54, 68], [55, 69], [42, 70], [56, 71], [43, 72], [57, 73], [58, 74], [59, 75], [45, 76], [62, 77], [62, 78], [52, 79], [65, 80], [65, 81], [66, 82], [55, 83], [69, 84], [69, 85], [70, 86], [75, 87], [76, 88], [77, 89], [78, 90], [78, 91], [79, 92], [66, 93], [82, 94], [82, 95], [83, 96], [70, 97], [86, 98], [86, 99], [89, 100], [90, 101], [91, 102], [92, 103], [93, 104], [94, 105], [95, 106], [95, 107], [96, 108], [97, 109], [98, 110], [99, 111], [99, 112], [100, 113], [101, 114], [102, 115], [103, 116], [104, 117], [105, 118], [106, 119], [107, 120], [108, 121], [109, 122], [110, 123], [111, 124], [112, 125], [114, 126], [118, 127], [119, 128], [120, 129], [123, 130], [124, 131], [125, 132], [128, 133], [131, 134], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 0], [13, 3], [14, 8], [15, 1], [16, 10], [17, 2], [18, 11], [19, 12], [20, 3], [21, 3], [22, 4], [23, 5], [24, 6], [25, 7], [26, 8], [27, 14], [28, 1], [29, 15], [30, 1], [31, 2], [32, 17], [33, 2], [34, 20], [35, 20], [36, 21], [37, 3], [38, 26], [39, 28], [40, 15], [41, 31], [42, 17], [43, 17], [44, 34], [45, 20], [46, 35], [47, 21], [48, 36], [49, 36], [50, 37], [51, 38], [52, 40], [53, 40], [54, 15], [55, 42], [56, 42], [57, 43], [58, 17], [59, 34], [60, 44], [61, 44], [62, 45], [63, 48], [64, 49], [65, 52], [66, 40], [67, 53], [68, 54], [69, 55], [70, 42], [71, 56], [72, 43], [73, 57], [74, 58], [75, 59], [76, 45], [77, 62], [78, 62], [79, 52], [80, 65], [81, 65], [82, 66], [83, 55], [84, 69], [85, 69], [86, 70], [87, 75], [88, 76], [89, 77], [90, 78], [91, 78], [92, 79], [93, 66], [94, 82], [95, 82], [96, 83], [97, 70], [98, 86], [99, 86], [100, 89], [101, 90], [102, 91], [103, 92], [104, 93], [105, 94], [106, 95], [107, 95], [108, 96], [109, 97], [110, 98], [111, 99], [112, 99], [113, 100], [114, 101], [115, 102], [116, 103], [117, 104], [118, 105], [119, 106], [120, 107], [121, 108], [122, 109], [123, 110], [124, 111], [125, 112], [126, 114], [127, 118], [128, 119], [129, 120], [130, 123], [131, 124], [132, 125], [133, 128], [134, 131], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134]]}, {"function_name": "getScheme", "code": "  public String getScheme()\n  {\n    return m_scheme;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSchemeSpecificPart", "code": "  public String getSchemeSpecificPart()\n  {\n\n    StringBuffer schemespec = new StringBuffer();\n\n    if (m_userinfo != null || m_host != null || m_port != -1)\n    {\n    }\n\n    if (m_userinfo != null)\n    {\n      schemespec.append(m_userinfo);\n      schemespec.append('@');\n    }\n\n    if (m_host != null)\n    {\n      schemespec.append(m_host);\n    }\n\n    if (m_port != -1)\n    {\n      schemespec.append(':');\n      schemespec.append(m_port);\n    }\n\n    if (m_path != null)\n    {\n      schemespec.append((m_path));\n    }\n\n    if (m_queryString != null)\n    {\n      schemespec.append('?');\n      schemespec.append(m_queryString);\n    }\n\n    if (m_fragment != null)\n    {\n      schemespec.append('#');\n      schemespec.append(m_fragment);\n    }\n\n    return schemespec.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [11, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [17, 24], [17, 25], [9, 26], [2, 27], [2, 28], [3, 29], [3, 30], [4, 31], [5, 32], [5, 33], [6, 34], [7, 35], [7, 36], [24, 37], [25, 38], [25, 39], [28, 40], [30, 41], [33, 42], [35, 43], [38, 44], [39, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 11], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 17], [25, 17], [26, 9], [27, 2], [28, 2], [29, 3], [30, 3], [31, 4], [32, 5], [33, 5], [34, 6], [35, 7], [36, 7], [37, 24], [38, 25], [39, 25], [40, 28], [41, 30], [42, 33], [43, 35], [44, 38], [45, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "getUserinfo", "code": "  public String getUserinfo()\n  {\n    return m_userinfo;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHost", "code": "  public String getHost()\n  {\n    return m_host;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPort", "code": "  public int getPort()\n  {\n    return m_port;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPath", "code": "  public String getPath(boolean p_includeQueryString,\n                        boolean p_includeFragment)\n  {\n\n    StringBuffer pathString = new StringBuffer(m_path);\n\n    if (p_includeQueryString && m_queryString != null)\n    {\n      pathString.append('?');\n      pathString.append(m_queryString);\n    }\n\n    if (p_includeFragment && m_fragment != null)\n    {\n      pathString.append('#');\n      pathString.append(m_fragment);\n    }\n\n    return pathString.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [8, 10], [9, 11], [4, 12], [2, 13], [2, 14], [10, 15], [3, 16], [3, 17], [11, 18], [14, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 8], [11, 9], [12, 4], [13, 2], [14, 2], [15, 10], [16, 3], [17, 3], [18, 11], [19, 14], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getPath", "code": "  public String getPath()\n  {\n    return m_path;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getQueryString", "code": "  public String getQueryString()\n  {\n    return m_queryString;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFragment", "code": "  public String getFragment()\n  {\n    return m_fragment;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setScheme", "code": "  public void setScheme(String p_scheme) throws MalformedURIException\n  {\n\n    if (p_scheme == null)\n    {\n    }\n\n    if (!isConformantSchemeName(p_scheme))\n    {\n    }\n\n    m_scheme = p_scheme.toLowerCase();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setUserinfo", "code": "  public void setUserinfo(String p_userinfo) throws MalformedURIException\n  {\n\n    if (p_userinfo == null)\n    {\n      m_userinfo = null;\n    }\n    else\n    {\n      if (m_host == null)\n      {\n        throw new MalformedURIException(\n          \"Userinfo cannot be set when host is null!\");\n      }\n\n      int index = 0;\n      int end = p_userinfo.length();\n      char testChar = '\\0';\n\n      while (index < end)\n      {\n        testChar = p_userinfo.charAt(index);\n\n        if (testChar == '%')\n        {\n          if (index + 2 >= end ||!isHex(p_userinfo.charAt(index + 1))\n                  ||!isHex(p_userinfo.charAt(index + 2)))\n          {\n            throw new MalformedURIException(\n              \"Userinfo contains invalid escape sequence!\");\n          }\n        }\n        else if (!isUnreservedCharacter(testChar)\n                 && USERINFO_CHARACTERS.indexOf(testChar) == -1)\n        {\n          throw new MalformedURIException(\n            \"Userinfo contains invalid character:\" + testChar);\n        }\n\n        index++;\n      }\n    }\n\n    m_userinfo = p_userinfo;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [5, 11], [9, 12], [1, 13], [5, 14], [6, 15], [7, 16], [8, 17], [9, 18], [12, 19], [13, 20], [14, 21], [14, 22], [5, 23], [18, 24], [21, 25], [14, 26], [22, 27], [23, 28], [24, 29], [21, 30], [25, 31], [25, 32], [26, 33], [30, 34], [31, 35], [31, 36], [26, 37], [33, 38], [33, 39], [34, 40], [37, 41], [38, 42], [39, 43], [39, 44], [40, 45], [41, 46], [42, 47], [43, 48], [44, 49], [47, 50], [48, 51], [49, 52], [51, 53], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 5], [12, 9], [13, 1], [14, 5], [15, 6], [16, 7], [17, 8], [18, 9], [19, 12], [20, 13], [21, 14], [22, 14], [23, 5], [24, 18], [25, 21], [26, 14], [27, 22], [28, 23], [29, 24], [30, 21], [31, 25], [32, 25], [33, 26], [34, 30], [35, 31], [36, 31], [37, 26], [38, 33], [39, 33], [40, 34], [41, 37], [42, 38], [43, 39], [44, 39], [45, 40], [46, 41], [47, 42], [48, 43], [49, 44], [50, 47], [51, 48], [52, 49], [53, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "setHost", "code": "  public void setHost(String p_host) throws MalformedURIException\n  {\n\n    if (p_host == null || p_host.trim().length() == 0)\n    {\n      m_host = p_host;\n      m_userinfo = null;\n      m_port = -1;\n    }\n    else if (!isWellFormedAddress(p_host))\n    {\n    }\n\n    m_host = p_host;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [1, 9], [1, 10], [1, 11], [7, 12], [7, 13], [8, 14], [9, 15], [10, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 1], [10, 1], [11, 1], [12, 7], [13, 7], [14, 8], [15, 9], [16, 10], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setPort", "code": "  public void setPort(int p_port) throws MalformedURIException\n  {\n\n    if (p_port >= 0 && p_port <= 65535)\n    {\n      if (m_host == null)\n      {\n        throw new MalformedURIException();\n      }\n    }\n    else if (p_port != -1)\n    {\n    }\n\n    m_port = p_port;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [7, 14], [11, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 7], [15, 11], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setPath", "code": "  public void setPath(String p_path) throws MalformedURIException\n  {\n\n    if (p_path == null)\n    {\n      m_path = null;\n      m_queryString = null;\n      m_fragment = null;\n    }\n    else\n    {\n      initializePath(p_path);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 7], [1, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 1], [8, 1], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "appendPath", "code": "  public void appendPath(String p_addToPath) throws MalformedURIException\n  {\n\n    if (p_addToPath == null || p_addToPath.trim().length() == 0)\n    {\n      return;\n    }\n\n    if (!isURIString(p_addToPath))\n    {\n    }\n\n    if (m_path == null || m_path.trim().length() == 0)\n    {\n      if (p_addToPath.startsWith(\"/\"))\n      {\n        m_path = p_addToPath;\n      }\n      else\n      {\n        m_path = \"/\" + p_addToPath;\n      }\n    }\n    else if (m_path.endsWith(\"/\"))\n    {\n      if (p_addToPath.startsWith(\"/\"))\n      {\n        m_path = m_path.concat(p_addToPath.substring(1));\n      }\n      else\n      {\n        m_path = m_path.concat(p_addToPath);\n      }\n    }\n    else\n    {\n      if (p_addToPath.startsWith(\"/\"))\n      {\n        m_path = m_path.concat(p_addToPath);\n      }\n      else\n      {\n        m_path = m_path.concat(\"/\" + p_addToPath);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [3, 8], [5, 9], [1, 10], [6, 11], [6, 12], [3, 13], [8, 14], [8, 15], [5, 16], [5, 17], [9, 18], [10, 19], [11, 20], [11, 21], [12, 22], [14, 23], [14, 24], [15, 25], [16, 26], [17, 27], [19, 28], [21, 29], [24, 30], [26, 31], [27, 32], [10, 33], [10, 34], [16, 35], [16, 36], [17, 37], [17, 38], [33, 39], [35, 40], [36, 41], [37, 42], [38, 43], [39, 44], [40, 45], [43, 46], [45, 47], [46, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 3], [9, 5], [10, 1], [11, 6], [12, 6], [13, 3], [14, 8], [15, 8], [16, 5], [17, 5], [18, 9], [19, 10], [20, 11], [21, 11], [22, 12], [23, 14], [24, 14], [25, 15], [26, 16], [27, 17], [28, 19], [29, 21], [30, 24], [31, 26], [32, 27], [33, 10], [34, 10], [35, 16], [36, 16], [37, 17], [38, 17], [39, 33], [40, 35], [41, 36], [42, 37], [43, 38], [44, 39], [45, 40], [46, 43], [47, 45], [48, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "setQueryString", "code": "  public void setQueryString(String p_queryString)\n          throws MalformedURIException\n  {\n\n    if (p_queryString == null)\n    {\n      m_queryString = null;\n    }\n    else if (!isGenericURI())\n    {\n      throw new MalformedURIException(\n        \"Query string can only be set for a generic URI!\");\n    }\n    else if (getPath() == null)\n    {\n      throw new MalformedURIException(\n        \"Query string cannot be set when path is null!\");\n    }\n    else if (!isURIString(p_queryString))\n    {\n      throw new MalformedURIException(\n        \"Query string contains invalid character!\");\n    }\n    else\n    {\n      m_queryString = p_queryString;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "THROW_RAISE", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [5, 8], [5, 9], [3, 10], [1, 11], [8, 12], [5, 13], [9, 14], [9, 15], [10, 16], [11, 17], [8, 18], [13, 19], [16, 20], [8, 21], [18, 22], [19, 23], [22, 24], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 5], [9, 5], [10, 3], [11, 1], [12, 8], [13, 5], [14, 9], [15, 9], [16, 10], [17, 11], [18, 8], [19, 13], [20, 16], [21, 8], [22, 18], [23, 19], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "setFragment", "code": "  public void setFragment(String p_fragment) throws MalformedURIException\n  {\n\n    if (p_fragment == null)\n    {\n      m_fragment = null;\n    }\n    else if (!isGenericURI())\n    {\n      throw new MalformedURIException();\n    }\n    else if (getPath() == null)\n    {\n      throw new MalformedURIException();\n    }\n    else if (!isURIString(p_fragment))\n    {\n    }\n    else\n    {\n      m_fragment = p_fragment;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "THROW_RAISE", "ASSIGN", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [5, 8], [5, 9], [3, 10], [1, 11], [8, 12], [5, 13], [9, 14], [9, 15], [10, 16], [11, 17], [13, 18], [8, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 5], [9, 5], [10, 3], [11, 1], [12, 8], [13, 5], [14, 9], [15, 9], [16, 10], [17, 11], [18, 13], [19, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "equals", "code": "  public boolean equals(Object p_test)\n  {\n\n    if (p_test instanceof URI)\n    {\n      URI testURI = (URI) p_test;\n\n      if (((m_scheme == null && testURI.m_scheme == null) || (m_scheme != null && testURI.m_scheme != null && m_scheme.equals(\n              testURI.m_scheme))) && ((m_userinfo == null && testURI.m_userinfo == null) || (m_userinfo != null && testURI.m_userinfo != null && m_userinfo.equals(\n              testURI.m_userinfo))) && ((m_host == null && testURI.m_host == null) || (m_host != null && testURI.m_host != null && m_host.equals(\n              testURI.m_host))) && m_port == testURI.m_port && ((m_path == null && testURI.m_path == null) || (m_path != null && testURI.m_path != null && m_path.equals(\n              testURI.m_path))) && ((m_queryString == null && testURI.m_queryString == null) || (m_queryString != null && testURI.m_queryString != null && m_queryString.equals(\n              testURI.m_queryString))) && ((m_fragment == null && testURI.m_fragment == null) || (m_fragment != null && testURI.m_fragment != null && m_fragment.equals(\n              testURI.m_fragment))))\n      {\n        return true;\n      }\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [6, 9], [8, 10], [8, 11], [9, 12], [10, 13], [10, 14], [11, 15], [11, 16], [13, 17], [13, 18], [14, 19], [14, 20], [15, 21], [15, 22], [16, 23], [16, 24], [18, 25], [18, 26], [19, 27], [20, 28], [21, 29], [21, 30], [22, 31], [22, 32], [23, 33], [23, 34], [24, 35], [24, 36], [25, 37], [26, 38], [30, 39], [30, 40], [31, 41], [32, 42], [33, 43], [33, 44], [34, 45], [34, 46], [36, 47], [36, 48], [39, 49], [40, 50], [44, 51], [44, 52], [45, 53], [46, 54], [47, 55], [47, 56], [48, 57], [48, 58], [51, 59], [52, 60], [55, 61], [55, 62], [56, 63], [56, 64], [57, 65], [57, 66], [58, 67], [58, 68], [62, 69], [62, 70], [63, 71], [64, 72], [65, 73], [65, 74], [66, 75], [66, 76], [67, 77], [67, 78], [68, 79], [68, 80], [69, 81], [70, 82], [74, 83], [74, 84], [75, 85], [76, 86], [78, 87], [78, 88], [79, 89], [80, 90], [83, 91], [84, 92], [87, 93], [88, 94], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 6], [10, 8], [11, 8], [12, 9], [13, 10], [14, 10], [15, 11], [16, 11], [17, 13], [18, 13], [19, 14], [20, 14], [21, 15], [22, 15], [23, 16], [24, 16], [25, 18], [26, 18], [27, 19], [28, 20], [29, 21], [30, 21], [31, 22], [32, 22], [33, 23], [34, 23], [35, 24], [36, 24], [37, 25], [38, 26], [39, 30], [40, 30], [41, 31], [42, 32], [43, 33], [44, 33], [45, 34], [46, 34], [47, 36], [48, 36], [49, 39], [50, 40], [51, 44], [52, 44], [53, 45], [54, 46], [55, 47], [56, 47], [57, 48], [58, 48], [59, 51], [60, 52], [61, 55], [62, 55], [63, 56], [64, 56], [65, 57], [66, 57], [67, 58], [68, 58], [69, 62], [70, 62], [71, 63], [72, 64], [73, 65], [74, 65], [75, 66], [76, 66], [77, 67], [78, 67], [79, 68], [80, 68], [81, 69], [82, 70], [83, 74], [84, 74], [85, 75], [86, 76], [87, 78], [88, 78], [89, 79], [90, 80], [91, 83], [92, 84], [93, 87], [94, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "toString", "code": "  public String toString()\n  {\n\n    StringBuffer uriSpecString = new StringBuffer();\n\n    if (m_scheme != null)\n    {\n      uriSpecString.append(m_scheme);\n      uriSpecString.append(':');\n    }\n\n    uriSpecString.append(getSchemeSpecificPart());\n\n    return uriSpecString.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [5, 7], [6, 8], [3, 9], [2, 10], [2, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 5], [8, 6], [9, 3], [10, 2], [11, 2], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "isGenericURI", "code": "  public boolean isGenericURI()\n  {\n\n    return (m_host != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isConformantSchemeName", "code": "  public static boolean isConformantSchemeName(String p_scheme)\n  {\n\n    if (p_scheme == null || p_scheme.trim().length() == 0)\n    {\n      return false;\n    }\n\n    if (!isAlpha(p_scheme.charAt(0)))\n    {\n      return false;\n    }\n\n    char testChar;\n\n    for (int i = 1; i < p_scheme.length(); i++)\n    {\n      testChar = p_scheme.charAt(i);\n\n      if (!isAlphanum(testChar) && SCHEME_CHARACTERS.indexOf(testChar) == -1)\n      {\n        return false;\n      }\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [5, 10], [2, 11], [8, 12], [4, 13], [9, 14], [5, 15], [10, 16], [10, 17], [11, 18], [2, 19], [2, 20], [13, 21], [14, 22], [15, 23], [16, 24], [16, 25], [17, 26], [11, 27], [18, 28], [18, 29], [19, 30], [25, 31], [27, 32], [28, 33], [28, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 5], [11, 2], [12, 8], [13, 4], [14, 9], [15, 5], [16, 10], [17, 10], [18, 11], [19, 2], [20, 2], [21, 13], [22, 14], [23, 15], [24, 16], [25, 16], [26, 17], [27, 11], [28, 18], [29, 18], [30, 19], [31, 25], [32, 27], [33, 28], [34, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "isWellFormedAddress", "code": "  public static boolean isWellFormedAddress(String p_address)\n  {\n\n    if (p_address == null)\n    {\n      return false;\n    }\n\n    String address = p_address.trim();\n    int addrLength = address.length();\n\n    if (addrLength == 0 || addrLength > 255)\n    {\n      return false;\n    }\n\n    if (address.startsWith(\".\") || address.startsWith(\"-\"))\n    {\n      return false;\n    }\n\n    int index = address.lastIndexOf('.');\n\n    if (address.endsWith(\".\"))\n    {\n      index = address.substring(0, index).lastIndexOf('.');\n    }\n\n    if (index + 1 < addrLength && isDigit(p_address.charAt(index + 1)))\n    {\n      char testChar;\n      int numDots = 0;\n\n      for (int i = 0; i < addrLength; i++)\n      {\n        testChar = address.charAt(i);\n\n        if (testChar == '.')\n        {\n          if (!isDigit(address.charAt(i - 1))\n                  || (i + 1 < addrLength &&!isDigit(address.charAt(i + 1))))\n          {\n            return false;\n          }\n\n          numDots++;\n        }\n        else if (!isDigit(testChar))\n        {\n          return false;\n        }\n      }\n\n      if (numDots != 3)\n      {\n        return false;\n      }\n    }\n    else\n    {\n\n      char testChar;\n\n      for (int i = 0; i < addrLength; i++)\n      {\n        testChar = address.charAt(i);\n\n        if (testChar == '.')\n        {\n          if (!isAlphanum(address.charAt(i - 1)))\n          {\n            return false;\n          }\n\n          if (i + 1 < addrLength &&!isAlphanum(address.charAt(i + 1)))\n          {\n            return false;\n          }\n        }\n        else if (!isAlphanum(testChar) && testChar != '-')\n        {\n          return false;\n        }\n      }\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [5, 14], [6, 15], [9, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [12, 23], [12, 24], [13, 25], [4, 26], [5, 27], [14, 28], [14, 29], [6, 30], [15, 31], [15, 32], [7, 33], [8, 34], [9, 35], [16, 36], [17, 37], [19, 38], [20, 39], [23, 40], [24, 41], [3, 42], [26, 43], [27, 44], [28, 45], [29, 46], [30, 47], [31, 48], [32, 49], [35, 50], [17, 51], [19, 52], [38, 53], [20, 54], [21, 55], [40, 56], [41, 57], [42, 58], [51, 59], [51, 60], [17, 61], [17, 62], [52, 63], [54, 64], [54, 65], [20, 66], [20, 67], [56, 68], [58, 69], [58, 70], [59, 71], [51, 72], [51, 73], [60, 74], [61, 75], [64, 76], [54, 77], [65, 78], [66, 79], [70, 80], [59, 81], [71, 82], [71, 83], [72, 84], [73, 85], [64, 86], [77, 87], [81, 88], [82, 89], [72, 90], [84, 91], [84, 92], [73, 93], [85, 94], [86, 95], [77, 96], [87, 97], [87, 98], [90, 99], [91, 100], [92, 101], [93, 102], [94, 103], [96, 104], [97, 105], [97, 106], [98, 107], [100, 108], [101, 109], [103, 110], [105, 111], [106, 112], [107, 113], [108, 114], [111, 115], [112, 116], [113, 117], [115, 118], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 5], [15, 6], [16, 9], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 12], [24, 12], [25, 13], [26, 4], [27, 5], [28, 14], [29, 14], [30, 6], [31, 15], [32, 15], [33, 7], [34, 8], [35, 9], [36, 16], [37, 17], [38, 19], [39, 20], [40, 23], [41, 24], [42, 3], [43, 26], [44, 27], [45, 28], [46, 29], [47, 30], [48, 31], [49, 32], [50, 35], [51, 17], [52, 19], [53, 38], [54, 20], [55, 21], [56, 40], [57, 41], [58, 42], [59, 51], [60, 51], [61, 17], [62, 17], [63, 52], [64, 54], [65, 54], [66, 20], [67, 20], [68, 56], [69, 58], [70, 58], [71, 59], [72, 51], [73, 51], [74, 60], [75, 61], [76, 64], [77, 54], [78, 65], [79, 66], [80, 70], [81, 59], [82, 71], [83, 71], [84, 72], [85, 73], [86, 64], [87, 77], [88, 81], [89, 82], [90, 72], [91, 84], [92, 84], [93, 73], [94, 85], [95, 86], [96, 77], [97, 87], [98, 87], [99, 90], [100, 91], [101, 92], [102, 93], [103, 94], [104, 96], [105, 97], [106, 97], [107, 98], [108, 100], [109, 101], [110, 103], [111, 105], [112, 106], [113, 107], [114, 108], [115, 111], [116, 112], [117, 113], [118, 115], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118]]}, {"function_name": "isDigit", "code": "  private static boolean isDigit(char p_char)\n  {\n    return p_char >= '0' && p_char <= '9';", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isHex", "code": "  private static boolean isHex(char p_char)\n  {\n    return (isDigit(p_char) || (p_char >= 'a' && p_char <= 'f')\n            || (p_char >= 'A' && p_char <= 'F'));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [5, 9], [6, 10], [7, 11], [8, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 5], [10, 6], [11, 7], [12, 8], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "isAlpha", "code": "  private static boolean isAlpha(char p_char)\n  {\n    return ((p_char >= 'a' && p_char <= 'z')\n            || (p_char >= 'A' && p_char <= 'Z'));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "isAlphanum", "code": "  private static boolean isAlphanum(char p_char)\n  {\n    return (isAlpha(p_char) || isDigit(p_char));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isReservedCharacter", "code": "  private static boolean isReservedCharacter(char p_char)\n  {\n    return RESERVED_CHARACTERS.indexOf(p_char) != -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isUnreservedCharacter", "code": "  private static boolean isUnreservedCharacter(char p_char)\n  {\n    return (isAlphanum(p_char) || MARK_CHARACTERS.indexOf(p_char) != -1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isURIString", "code": "  private static boolean isURIString(String p_uric)\n  {\n\n    if (p_uric == null)\n    {\n      return false;\n    }\n\n    int end = p_uric.length();\n    char testChar = '\\0';\n\n    for (int i = 0; i < end; i++)\n    {\n      testChar = p_uric.charAt(i);\n\n      if (testChar == '%')\n      {\n        if (i + 2 >= end ||!isHex(p_uric.charAt(i + 1))\n                ||!isHex(p_uric.charAt(i + 2)))\n        {\n          return false;\n        }\n        else\n        {\n          i += 2;\n\n          continue;\n        }\n      }\n\n      if (isReservedCharacter(testChar) || isUnreservedCharacter(testChar))\n      {\n        continue;\n      }\n      else\n      {\n        return false;\n      }\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BREAK_CONTINUE", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "RETURN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [5, 9], [2, 10], [2, 11], [3, 12], [4, 13], [5, 14], [9, 15], [10, 16], [11, 17], [2, 18], [2, 19], [14, 20], [10, 21], [10, 22], [16, 23], [16, 24], [11, 25], [17, 26], [18, 27], [21, 28], [25, 29], [25, 30], [25, 31], [29, 32], [29, 33], [25, 34], [31, 35], [32, 36], [33, 37], [33, 38], [34, 39], [36, 40], [37, 41], [38, 42], [40, 43], [41, 44], [42, 45], [44, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 5], [10, 2], [11, 2], [12, 3], [13, 4], [14, 5], [15, 9], [16, 10], [17, 11], [18, 2], [19, 2], [20, 14], [21, 10], [22, 10], [23, 16], [24, 16], [25, 11], [26, 17], [27, 18], [28, 21], [29, 25], [30, 25], [31, 25], [32, 29], [33, 29], [34, 25], [35, 31], [36, 32], [37, 33], [38, 33], [39, 34], [40, 36], [41, 37], [42, 38], [43, 40], [44, 41], [45, 42], [46, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "URI", "code": "  public URI(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "URI", "code": "  public URI(URI p_other)\n  {\n    initialize(p_other);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "URI", "code": "  public URI(String p_uriSpec) throws MalformedURIException\n  {\n    this((URI) null, p_uriSpec);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "URI", "code": "  public URI(URI p_base, String p_uriSpec) throws MalformedURIException\n  {\n    initialize(p_base, p_uriSpec);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "URI", "code": "  public URI(String p_scheme, String p_schemeSpecificPart)\n          throws MalformedURIException\n  {\n\n    if (p_scheme == null || p_scheme.trim().length() == 0)\n    {\n      throw new MalformedURIException(\n        \"Cannot construct URI with null/empty scheme!\");\n    }\n\n    if (p_schemeSpecificPart == null\n            || p_schemeSpecificPart.trim().length() == 0)\n    {\n      throw new MalformedURIException(\n        \"Cannot construct URI with null/empty scheme-specific part!\");\n    }\n\n    setScheme(p_scheme);\n    setPath(p_schemeSpecificPart);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [7, 10], [7, 11], [2, 12], [8, 13], [8, 14], [9, 15], [10, 16], [10, 17], [11, 18], [12, 19], [13, 20], [13, 21], [14, 22], [15, 23], [17, 24], [19, 25], [21, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 7], [11, 7], [12, 2], [13, 8], [14, 8], [15, 9], [16, 10], [17, 10], [18, 11], [19, 12], [20, 13], [21, 13], [22, 14], [23, 15], [24, 17], [25, 19], [26, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "URI", "code": "  public URI(String p_scheme, String p_host, String p_path, String p_queryString, String p_fragment)\n          throws MalformedURIException\n  {\n    this(p_scheme, null, p_host, -1, p_path, p_queryString, p_fragment);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "URI", "code": "  public URI(String p_scheme, String p_userinfo, String p_host, int p_port, String p_path, String p_queryString, String p_fragment)\n          throws MalformedURIException\n  {\n\n    if (p_scheme == null || p_scheme.trim().length() == 0)\n    {\n    }\n\n    if (p_host == null)\n    {\n      if (p_userinfo != null)\n      {\n        throw new MalformedURIException();\n      }\n\n      if (p_port != -1)\n      {\n        throw new MalformedURIException();\n      }\n    }\n\n    if (p_path != null)\n    {\n      if (p_path.indexOf('?') != -1 && p_queryString != null)\n      {\n        throw new MalformedURIException();\n      }\n\n      if (p_path.indexOf('#') != -1 && p_fragment != null)\n      {\n        throw new MalformedURIException();\n      }\n    }\n\n    setScheme(p_scheme);\n    setHost(p_host);\n    setPort(p_port);\n    setUserinfo(p_userinfo);\n    setPath(p_path);\n    setQueryString(p_queryString);\n    setFragment(p_fragment);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [2, 19], [3, 20], [1, 21], [1, 22], [18, 23], [2, 24], [2, 25], [19, 26], [20, 27], [20, 28], [21, 29], [22, 30], [24, 31], [25, 32], [27, 33], [27, 34], [28, 35], [21, 36], [29, 37], [29, 38], [22, 39], [30, 40], [30, 41], [24, 42], [31, 43], [25, 44], [32, 45], [34, 46], [36, 47], [37, 48], [38, 49], [38, 50], [39, 51], [40, 52], [41, 53], [41, 54], [42, 55], [44, 56], [50, 57], [54, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 2], [20, 3], [21, 1], [22, 1], [23, 18], [24, 2], [25, 2], [26, 19], [27, 20], [28, 20], [29, 21], [30, 22], [31, 24], [32, 25], [33, 27], [34, 27], [35, 28], [36, 21], [37, 29], [38, 29], [39, 22], [40, 30], [41, 30], [42, 24], [43, 31], [44, 25], [45, 32], [46, 34], [47, 36], [48, 37], [49, 38], [50, 38], [51, 39], [52, 40], [53, 41], [54, 41], [55, 42], [56, 44], [57, 50], [58, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}], "label": 1}
{"sample_id": "jedit-4.3-4829", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/ExternalNameSpace.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.ExternalNameSpace", "code": "public class ExternalNameSpace extends NameSpace\n{\n\tprivate Map externalMap;\n\n    public ExternalNameSpace() \n\t{\n\t\tthis( null, \"External Map Namespace\", null );\n\t}\n\n\t/**\n\t*/\n    public ExternalNameSpace( NameSpace parent, String name, Map externalMap ) \n\t{\n\t\tsuper( parent, name );\n\n\t\tif ( externalMap == null )\n\t\t\texternalMap = new HashMap();\n\t\t\t\n\t\tthis.externalMap = externalMap;\n\n\t}\n\n\t/**\n\t\tGet the map view of this namespace.\n\t*/\n\tpublic Map getMap() { return externalMap; }\n\n\t/**\n\t\tSet the external Map which to which this namespace synchronizes.\n\t\tThe previous external map is detached from this namespace.  Previous\n\t\tmap values are retained in the external map, but are removed from the\n\t\tBeanShell namespace.\n\t*/\n\tpublic void setMap( Map map ) \n\t{ \n\t\t// Detach any existing namespace to preserve it, then clear this\n\t\t// namespace and set the new one\n\t\tthis.externalMap = null; \n\t\tclear();\n\t\tthis.externalMap = map ; \n\t}\n\n\t/**\n\t*/\n    void setVariable( \n\t\tString name, Object value, boolean strictJava, boolean recurse ) \n\t\tthrows UtilEvalError \n\t{\n\t\tsuper.setVariable( name, value, strictJava, recurse );\n\t\tputExternalMap( name, value );\n\t}\n\n\t/**\n\t*/\n\tpublic void unsetVariable( String name )\n\t{\n\t\tsuper.unsetVariable( name );\n\t\texternalMap.remove( name );\n\t}\n\n\t/**\n\t*/\n\tpublic String [] getVariableNames() \n\t{\n\t\t// union of the names in the internal namespace and external map\n\t\tSet nameSet = new HashSet();\n\t\tString [] nsNames = super.getVariableNames();\n\t\tnameSet.addAll( Arrays.asList( nsNames ) );\n\t\tnameSet.addAll( externalMap.keySet() );\n\t\treturn (String [])nameSet.toArray( new String[0] );\n\t}\n\n\t/**\n\t*/\n\t/*\n\t\tNotes: This implmenetation of getVariableImpl handles the following\n\t\tcases:\n\t\t1) var in map not in local scope - var was added through map\n\t\t2) var in map and in local scope - var was added through namespace\n\t\t3) var not in map but in local scope - var was removed via map\n\t\t4) var not in map and not in local scope - non-existent var\n\t*/\n    protected Variable getVariableImpl( String name, boolean recurse ) \n\t\tthrows UtilEvalError\n\t{\n\t\t// check the external map for the variable name\n\t\tObject value = externalMap.get( name );\n\n\t\tVariable var;\n\t\tif ( value == null ) \n\t\t{\n\t\t\t// The var is not in external map and it should therefore not be\n\t\t\t// found in local scope (it may have been removed via the map).  \n\t\t\t// Clear it prophalactically.\n\t\t\tsuper.unsetVariable( name ); \n\n\t\t\t// Search parent for var if applicable.\n\t\t\tvar = super.getVariableImpl( name, recurse );\n\t\t} else\n\t\t{\n\t\t\t// Var in external map may be found in local scope with type and\n\t\t\t// modifier info.\n\t\t\tVariable localVar = super.getVariableImpl( name, false );\n\n\t\t\t// If not in local scope then it was added via the external map,\n\t\t\t// we'll wrap it and pass it along.  Else we'll use the local\n\t\t\t// version.\n\t\t\tif ( localVar == null ) \n\t\t\t\tvar = new Variable( name, (Class)null, value, (Modifiers)null );\n\t\t\telse\n\t\t\t\tvar = localVar;\n\t\t}\n\n\t\treturn var;\n    }\n\t\n\t/**\n\t*/\n\t/*\n\t\tNote: the meaning of getDeclaredVariables() is not entirely clear, but\n\t\tthe name (and current usage in class generation support) suggests that\n\t\tuntyped variables should not be inclueded.  Therefore we do not\n\t\tcurrently have to add the external names here.\n\t*/\n\tpublic Variable [] getDeclaredVariables() \n\t{\n\t\treturn super.getDeclaredVariables();\n\t}\n\n    /**\n    */\n    public void\tsetTypedVariable(\n\t\tString\tname, Class type, Object value,\tModifiers modifiers )\n\t\tthrows UtilEvalError \n\t{\n\t\tsuper.setTypedVariable( name, type, value, modifiers );\n\t\tputExternalMap( name, value );\n    }\n\n\t/*\n\t\tNote: we could override this method to allow bsh methods to appear in\n\t\tthe external map.\n\t*/\n    public void\tsetMethod( String name, BshMethod method )\n\t\tthrows UtilEvalError\n\t{\n\t\tsuper.setMethod( name, method );\n    }\n\n\t/*\n\t\tNote: kind of far-fetched, but... we could override this method to\n\t\tallow bsh methods to be inserted into this namespace via the map.\n\t*/\n    public BshMethod getMethod( \n\t\tString name, Class [] sig, boolean declaredOnly ) \n\t\tthrows UtilEvalError\n\t{\n\t\treturn super.getMethod( name, sig, declaredOnly );\n    }\n\n\n\t/*\n\t\tNote: this method should be overridden to add the names from the\n\t\texternal map, as is done in getVariableNames();\n\t*/\n\tprotected void getAllNamesAux( Vector vec ) \n\t{\n\t\tsuper.getAllNamesAux( vec );\n\t}\n\n\t/**\n\t\tClear all variables, methods, and imports from this namespace and clear\n\t\tall values from the external map (via Map clear()).\n\t*/\n\tpublic void clear() \n\t{\n\t\tsuper.clear();\n\t\texternalMap.clear();\n\t}\n\n\t/**\n\t\tPlace an unwrapped value in the external map.\n\t\tBeanShell primitive types are represented by their object wrappers, so\n\t\tit is not possible to differentiate between wrapper types and primitive\n\t\ttypes via the external Map.\n\t*/\n\tprotected void putExternalMap( String name, Object value ) \n\t{\n\t\tif ( value instanceof Variable )\n\t\t\ttry {\n\t\t\t\tvalue = unwrapVariable( (Variable)value );\n\t\t\t} catch ( UtilEvalError ute ) {\n\t\t\t\t// There should be no case for this.  unwrapVariable throws\n\t\t\t\t// UtilEvalError in some cases where it holds an LHS or array\n\t\t\t\t// index.\n\t\t\t\tthrow new InterpreterError(\"unexpected UtilEvalError\");\n\t\t\t}\n\n\t\tif ( value instanceof Primitive )\n\t\t\tvalue = Primitive.unwrap( (Primitive)value );\n\n\t\texternalMap.put( name, value );", "functions": [{"function_name": "getMap", "code": "\tpublic Map getMap() { return externalMap; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMap", "code": "\tpublic void setMap( Map map ) \n\t{ \n\t\t// Detach any existing namespace to preserve it, then clear this\n\t\t// namespace and set the new one\n\t\tthis.externalMap = null; \n\t\tclear();\n\t\tthis.externalMap = map ; ", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setVariable", "code": "    void setVariable( \n\t\tString name, Object value, boolean strictJava, boolean recurse ) \n\t\tthrows UtilEvalError \n\t{\n\t\tsuper.setVariable( name, value, strictJava, recurse );\n\t\tputExternalMap( name, value );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "unsetVariable", "code": "\tpublic void unsetVariable( String name )\n\t{\n\t\tsuper.unsetVariable( name );\n\t\texternalMap.remove( name );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVariableNames", "code": "\tpublic String [] getVariableNames() \n\t{\n\t\t// union of the names in the internal namespace and external map\n\t\tSet nameSet = new HashSet();\n\t\tString [] nsNames = super.getVariableNames();\n\t\tnameSet.addAll( Arrays.asList( nsNames ) );\n\t\tnameSet.addAll( externalMap.keySet() );\n\t\treturn (String [])nameSet.toArray( new String[0] );", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [4, 7], [5, 8], [3, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 4], [8, 5], [9, 3], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getVariableImpl", "code": "    protected Variable getVariableImpl( String name, boolean recurse ) \n\t\tthrows UtilEvalError\n\t{\n\t\t// check the external map for the variable name\n\t\tObject value = externalMap.get( name );\n\n\t\tVariable var;\n\t\tif ( value == null ) \n\t\t{\n\t\t\t// The var is not in external map and it should therefore not be\n\t\t\t// found in local scope (it may have been removed via the map).  \n\t\t\t// Clear it prophalactically.\n\t\t\tsuper.unsetVariable( name ); \n\n\t\t\t// Search parent for var if applicable.\n\t\t\tvar = super.getVariableImpl( name, recurse );\n\t\t} else\n\t\t{\n\t\t\t// Var in external map may be found in local scope with type and\n\t\t\t// modifier info.\n\t\t\tVariable localVar = super.getVariableImpl( name, false );\n\n\t\t\t// If not in local scope then it was added via the external map,\n\t\t\t// we'll wrap it and pass it along.  Else we'll use the local\n\t\t\t// version.\n\t\t\tif ( localVar == null ) \n\t\t\t\tvar = new Variable( name, (Class)null, value, (Modifiers)null );\n\t\t\telse\n\t\t\t\tvar = localVar;\n\t\t}\n\n\t\treturn var;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [4, 11], [8, 12], [2, 13], [8, 14], [8, 15], [12, 16], [15, 17], [9, 18], [17, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 4], [12, 8], [13, 2], [14, 8], [15, 8], [16, 12], [17, 15], [18, 9], [19, 17], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getDeclaredVariables", "code": "\tpublic Variable [] getDeclaredVariables() \n\t{\n\t\treturn super.getDeclaredVariables();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTypedVariable", "code": "    public void\tsetTypedVariable(\n\t\tString\tname, Class type, Object value,\tModifiers modifiers )\n\t\tthrows UtilEvalError \n\t{\n\t\tsuper.setTypedVariable( name, type, value, modifiers );\n\t\tputExternalMap( name, value );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setMethod", "code": "    public void\tsetMethod( String name, BshMethod method )\n\t\tthrows UtilEvalError\n\t{\n\t\tsuper.setMethod( name, method );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMethod", "code": "    public BshMethod getMethod( \n\t\tString name, Class [] sig, boolean declaredOnly ) \n\t\tthrows UtilEvalError\n\t{\n\t\treturn super.getMethod( name, sig, declaredOnly );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAllNamesAux", "code": "\tprotected void getAllNamesAux( Vector vec ) \n\t{\n\t\tsuper.getAllNamesAux( vec );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clear", "code": "\tpublic void clear() \n\t{\n\t\tsuper.clear();\n\t\texternalMap.clear();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "putExternalMap", "code": "\tprotected void putExternalMap( String name, Object value ) \n\t{\n\t\tif ( value instanceof Variable )\n\t\t\ttry {\n\t\t\t\tvalue = unwrapVariable( (Variable)value );\n\t\t\t} catch ( UtilEvalError ute ) {\n\t\t\t\t// There should be no case for this.  unwrapVariable throws\n\t\t\t\t// UtilEvalError in some cases where it holds an LHS or array\n\t\t\t\t// index.\n\t\t\t\tthrow new InterpreterError(\"unexpected UtilEvalError\");\n\t\t\t}\n\n\t\tif ( value instanceof Primitive )\n\t\t\tvalue = Primitive.unwrap( (Primitive)value );\n\n\t\texternalMap.put( name, value );", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "TRY", "BINARY_OP", "ASSIGN", "CATCH", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [1, 9], [7, 10], [9, 11], [10, 12], [7, 13], [12, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 1], [10, 7], [11, 9], [12, 10], [13, 7], [14, 12], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "ExternalNameSpace", "code": "    public ExternalNameSpace() \n\t{\n\t\tthis( null, \"External Map Namespace\", null );", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ExternalNameSpace", "code": "    public ExternalNameSpace( NameSpace parent, String name, Map externalMap ) \n\t{\n\t\tsuper( parent, name );\n\n\t\tif ( externalMap == null )\n\t\t\texternalMap = new HashMap();\n\t\t\t\n\t\tthis.externalMap = externalMap;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "xalan-2.7-8083", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/extensions/ExtensionNamespaceSupport.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionNamespaceSupport", "code": "public class ExtensionNamespaceSupport\n{\n  String m_namespace = null;\n  String m_handlerClass = null;\n  Class [] m_sig = null;  \n  Object [] m_args = null;\n \n  public ExtensionNamespaceSupport(String namespace, \n                                   String handlerClass, \n                                   Object[] constructorArgs)\n  {\n    m_namespace = namespace;\n    m_handlerClass = handlerClass;\n    m_args = constructorArgs;\n    m_sig = new Class[m_args.length];\n    for (int i = 0; i < m_args.length; i++)\n    {\n      if (m_args[i] != null)\n      {\n        m_sig = null;\n        break;\n      }\n    }\n  }\n  \n  public String getNamespace()\n  {\n    return m_namespace;\n  }\n  \n  /**\n   * Launch the ExtensionHandler that this ExtensionNamespaceSupport object defines.\n   */\n  public ExtensionHandler launch()\n    throws TransformerException\n  {\n    ExtensionHandler handler = null;\n    try\n    {\n      Class cl = ExtensionHandler.getClassForName(m_handlerClass);\n      Constructor con = null;\n      if (m_sig != null)\n        con = cl.getConstructor(m_sig);\n      {\n        Constructor[] cons = cl.getConstructors();\n        for (int i = 0; i < cons.length; i ++)\n        {\n          if (cons[i].getParameterTypes().length == m_args.length)\n          {\n            con = cons[i];\n            break;\n          }\n        }\n      }\n      if (con != null)\n        handler = (ExtensionHandler)con.newInstance(m_args);\n      else\n        throw new TransformerException(\"ExtensionHandler constructor not found\");\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException(e);\n    }\n    return handler;", "functions": [{"function_name": "getNamespace", "code": "  public String getNamespace()\n  {\n    return m_namespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "launch", "code": "  public ExtensionHandler launch()\n    throws TransformerException\n  {\n    ExtensionHandler handler = null;\n    try\n    {\n      Class cl = ExtensionHandler.getClassForName(m_handlerClass);\n      Constructor con = null;\n      if (m_sig != null)\n        con = cl.getConstructor(m_sig);\n      {\n        Constructor[] cons = cl.getConstructors();\n        for (int i = 0; i < cons.length; i ++)\n        {\n          if (cons[i].getParameterTypes().length == m_args.length)\n          {\n            con = cons[i];\n            break;\n          }\n        }\n      }\n      if (con != null)\n        handler = (ExtensionHandler)con.newInstance(m_args);\n      else\n        throw new TransformerException(\"ExtensionHandler constructor not found\");\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException(e);\n    }\n    return handler;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "IF", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [4, 9], [5, 10], [5, 11], [2, 12], [2, 13], [6, 14], [3, 15], [9, 16], [10, 17], [5, 18], [11, 19], [12, 20], [6, 21], [14, 22], [7, 23], [8, 24], [17, 25], [12, 26], [13, 27], [21, 28], [18, 29], [26, 30], [12, 31], [26, 32], [26, 33], [30, 34], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 4], [10, 5], [11, 5], [12, 2], [13, 2], [14, 6], [15, 3], [16, 9], [17, 10], [18, 5], [19, 11], [20, 12], [21, 6], [22, 14], [23, 7], [24, 8], [25, 17], [26, 12], [27, 13], [28, 21], [29, 18], [30, 26], [31, 12], [32, 26], [33, 26], [34, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "ExtensionNamespaceSupport", "code": "  public ExtensionNamespaceSupport(String namespace, \n                                   String handlerClass, \n                                   Object[] constructorArgs)\n  {\n    m_namespace = namespace;\n    m_handlerClass = handlerClass;\n    m_args = constructorArgs;\n    m_sig = new Class[m_args.length];\n    for (int i = 0; i < m_args.length; i++)\n    {\n      if (m_args[i] != null)\n      {\n        m_sig = null;\n        break;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [10, 11], [1, 12], [10, 13], [11, 14], [10, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 10], [12, 1], [13, 10], [14, 11], [15, 10], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}], "label": 1}
{"sample_id": "lucene-2.2-5109", "repo": "lucene-2.2", "project": "lucene", "version": "2.2", "file_path": "org/apache/lucene/queryParser/QueryParser.java", "language": "java", "name": "org.apache.lucene.queryParser.QueryParser", "code": "public class QueryParser implements QueryParserConstants {\n\n  private static final int CONJ_NONE   = 0;\n  private static final int CONJ_AND    = 1;\n  private static final int CONJ_OR     = 2;\n\n  private static final int MOD_NONE    = 0;\n  private static final int MOD_NOT     = 10;\n  private static final int MOD_REQ     = 11;\n\n  /** Alternative form of QueryParser.Operator.AND */\n  public static final Operator AND_OPERATOR = Operator.AND;\n  /** Alternative form of QueryParser.Operator.OR */\n  public static final Operator OR_OPERATOR = Operator.OR;\n\n  /** The actual operator that parser uses to combine query terms */\n  private Operator operator = OR_OPERATOR;\n\n  boolean lowercaseExpandedTerms = true;\n  boolean useOldRangeQuery= false;\n  boolean allowLeadingWildcard = false;\n\n  Analyzer analyzer;\n  String field;\n  int phraseSlop = 0;\n  float fuzzyMinSim = FuzzyQuery.defaultMinSimilarity;\n  int fuzzyPrefixLength = FuzzyQuery.defaultPrefixLength;\n  Locale locale = Locale.getDefault();\n\n  DateTools.Resolution dateResolution = null;\n  Map fieldToDateResolution = null;\n\n  /** The default operator for parsing queries. \n   * Use {@link QueryParser#setDefaultOperator} to change it.\n   */\n  static public final class Operator extends Parameter {\n    private Operator(String name) {\n      super(name);\n    }\n    static public final Operator OR = new Operator(\"OR\");\n    static public final Operator AND = new Operator(\"AND\");\n  }\n\n\n  /** Constructs a query parser.\n   *  @param f  the default field for query terms.\n   *  @param a   used to find terms in the query text.\n   */\n  public QueryParser(String f, Analyzer a) {\n    this(new FastCharStream(new StringReader(\"\")));\n    analyzer = a;\n    field = f;\n  }\n\n  /** Parses a query string, returning a {@link org.apache.lucene.search.Query}.\n   *  @param query  the query string to be parsed.\n   *  @throws ParseException if the parsing fails\n   */\n  public Query parse(String query) throws ParseException {\n    ReInit(new FastCharStream(new StringReader(query)));\n    try {\n      return TopLevelQuery(field);\n    }\n    catch (ParseException tme) {\n      throw new ParseException(\"Cannot parse '\" +query+ \"': \" + tme.getMessage());\n    }\n    catch (TokenMgrError tme) {\n      throw new ParseException(\"Cannot parse '\" +query+ \"': \" + tme.getMessage());\n    }\n    catch (BooleanQuery.TooManyClauses tmc) {\n      throw new ParseException(\"Cannot parse '\" +query+ \"': too many boolean clauses\");\n    }\n  }\n\n   /**\n   * @return Returns the analyzer.\n   */\n  public Analyzer getAnalyzer() {\n    return analyzer;\n  }\n\n  /**\n   * @return Returns the field.\n   */\n  public String getField() {\n    return field;\n  }\n\n   /**\n   * Get the minimal similarity for fuzzy queries.\n   */\n  public float getFuzzyMinSim() {\n      return fuzzyMinSim;\n  }\n\n  /**\n   * Set the minimum similarity for fuzzy queries.\n   * Default is 0.5f.\n   */\n  public void setFuzzyMinSim(float fuzzyMinSim) {\n      this.fuzzyMinSim = fuzzyMinSim;\n  }\n\n   /**\n   * Get the prefix length for fuzzy queries. \n   * @return Returns the fuzzyPrefixLength.\n   */\n  public int getFuzzyPrefixLength() {\n    return fuzzyPrefixLength;\n  }\n\n  /**\n   * Set the prefix length for fuzzy queries. Default is 0.\n   * @param fuzzyPrefixLength The fuzzyPrefixLength to set.\n   */\n  public void setFuzzyPrefixLength(int fuzzyPrefixLength) {\n    this.fuzzyPrefixLength = fuzzyPrefixLength;\n  }\n\n  /**\n   * Sets the default slop for phrases.  If zero, then exact phrase matches\n   * are required.  Default value is zero.\n   */\n  public void setPhraseSlop(int phraseSlop) {\n    this.phraseSlop = phraseSlop;\n  }\n\n  /**\n   * Gets the default slop for phrases.\n   */\n  public int getPhraseSlop() {\n    return phraseSlop;\n  }\n\n\n  /**\n   * Set to <code>true</code> to allow leading wildcard characters.\n   * <p>\n   * When set, <code>*</code> or <code>?</code> are allowed as \n   * the first character of a PrefixQuery and WildcardQuery.\n   * Note that this can produce very slow\n   * queries on big indexes. \n   * <p>\n   * Default: false.\n   */\n  public void setAllowLeadingWildcard(boolean allowLeadingWildcard) {\n    this.allowLeadingWildcard = allowLeadingWildcard;\n  }\n\n  /**\n   * @see #setAllowLeadingWildcard\n   */\n  public boolean getAllowLeadingWildcard() {\n    return allowLeadingWildcard;\n  }\n\n  /**\n   * Sets the boolean operator of the QueryParser.\n   * In default mode (<code>OR_OPERATOR</code>) terms without any modifiers\n   * are considered optional: for example <code>capital of Hungary</code> is equal to\n   * <code>capital OR of OR Hungary</code>.<br/>\n   * In <code>AND_OPERATOR</code> mode terms are considered to be in conjuction: the\n   * above mentioned query is parsed as <code>capital AND of AND Hungary</code>\n   */\n  public void setDefaultOperator(Operator op) {\n    this.operator = op;\n  }\n\n\n  /**\n   * Gets implicit operator setting, which will be either AND_OPERATOR\n   * or OR_OPERATOR.\n   */\n  public Operator getDefaultOperator() {\n    return operator;\n  }\n\n\n  /**\n   * Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically\n   * lower-cased or not.  Default is <code>true</code>.\n   */\n  public void setLowercaseExpandedTerms(boolean lowercaseExpandedTerms) {\n    this.lowercaseExpandedTerms = lowercaseExpandedTerms;\n  }\n\n\n  /**\n   * @see #setLowercaseExpandedTerms(boolean)\n   */\n  public boolean getLowercaseExpandedTerms() {\n    return lowercaseExpandedTerms;\n  }\n\n  /**\n   * By default QueryParser uses new ConstantScoreRangeQuery in preference to RangeQuery\n   * for range queries. This implementation is generally preferable because it \n   * a) Runs faster b) Does not have the scarcity of range terms unduly influence score \n   * c) avoids any \"TooManyBooleanClauses\" exception.\n   * However, if your application really needs to use the old-fashioned RangeQuery and the above\n   * points are not required then set this option to <code>true</code>\n   * Default is <code>false</code>.\n   */\n  public void setUseOldRangeQuery(boolean useOldRangeQuery) {\n    this.useOldRangeQuery = useOldRangeQuery;\n  }\n\n\n  /**\n   * @see #setUseOldRangeQuery(boolean)\n   */\n  public boolean getUseOldRangeQuery() {\n    return useOldRangeQuery;\n  }\n\n\n  /**\n   * Set locale used by date range parsing.\n   */\n  public void setLocale(Locale locale) {\n    this.locale = locale;\n  }\n\n  /**\n   * Returns current locale, allowing access by subclasses.\n   */\n  public Locale getLocale() {\n    return locale;\n  }\n\n  /**\n   * Sets the default date resolution used by RangeQueries for fields for which no\n   * specific date resolutions has been set. Field specific resolutions can be set\n   * with {@link #setDateResolution(String, DateTools.Resolution)}.\n   *  \n   * @param dateResolution the default date resolution to set\n   */\n  public void setDateResolution(DateTools.Resolution dateResolution) {\n    this.dateResolution = dateResolution;\n  }\n\n  /**\n   * Sets the date resolution used by RangeQueries for a specific field.\n   *  \n   * @param fieldName field for which the date resolution is to be set \n   * @param dateResolution date resolution to set\n   */\n  public void setDateResolution(String fieldName, DateTools.Resolution dateResolution) {\n    if (fieldName == null) {\n      throw new IllegalArgumentException(\"Field cannot be null.\");\n    }\n\n    if (fieldToDateResolution == null) {\n      fieldToDateResolution = new HashMap();\n    }\n\n    fieldToDateResolution.put(fieldName, dateResolution);\n  }\n\n  /**\n   * Returns the date resolution that is used by RangeQueries for the given field. \n   * Returns null, if no default or field specific date resolution has been set\n   * for the given field.\n   *\n   */\n  public DateTools.Resolution getDateResolution(String fieldName) {\n    if (fieldName == null) {\n      throw new IllegalArgumentException(\"Field cannot be null.\");\n    }\n\n    if (fieldToDateResolution == null) {\n      return this.dateResolution;\n    }\n\n    DateTools.Resolution resolution = (DateTools.Resolution) fieldToDateResolution.get(fieldName);\n    if (resolution == null) {\n      resolution = this.dateResolution;\n    }\n\n    return resolution;\n  }\n\n  protected void addClause(Vector clauses, int conj, int mods, Query q) {\n    boolean required, prohibited;\n\n    if (clauses.size() > 0 && conj == CONJ_AND) {\n      BooleanClause c = (BooleanClause) clauses.elementAt(clauses.size()-1);\n      if (!c.isProhibited())\n        c.setOccur(BooleanClause.Occur.MUST);\n    }\n\n    if (clauses.size() > 0 && operator == AND_OPERATOR && conj == CONJ_OR) {\n      BooleanClause c = (BooleanClause) clauses.elementAt(clauses.size()-1);\n      if (!c.isProhibited())\n        c.setOccur(BooleanClause.Occur.SHOULD);\n    }\n\n    if (q == null)\n      return;\n\n    if (operator == OR_OPERATOR) {\n      prohibited = (mods == MOD_NOT);\n      required = (mods == MOD_REQ);\n      if (conj == CONJ_AND && !prohibited) {\n        required = true;\n      }\n    } else {\n      prohibited = (mods == MOD_NOT);\n      required   = (!prohibited && conj != CONJ_OR);\n    }\n    if (required && !prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.MUST));\n    else if (!required && !prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.SHOULD));\n    else if (!required && prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.MUST_NOT));\n    else\n      throw new RuntimeException(\"Clause cannot be both required and prohibited\");\n  }\n\n\n  /**\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getFieldQuery(String field, String queryText)  throws ParseException {\n\n    TokenStream source = analyzer.tokenStream(field, new StringReader(queryText));\n    Vector v = new Vector();\n    org.apache.lucene.analysis.Token t;\n    int positionCount = 0;\n    boolean severalTokensAtSamePosition = false;\n\n    while (true) {\n      try {\n        t = source.next();\n      }\n      catch (IOException e) {\n        t = null;\n      }\n      if (t == null)\n        break;\n      v.addElement(t);\n      if (t.getPositionIncrement() != 0)\n        positionCount += t.getPositionIncrement();\n      else\n        severalTokensAtSamePosition = true;\n    }\n    try {\n      source.close();\n    }\n    catch (IOException e) {\n    }\n\n    if (v.size() == 0)\n      return null;\n    else if (v.size() == 1) {\n      t = (org.apache.lucene.analysis.Token) v.elementAt(0);\n      return new TermQuery(new Term(field, t.termText()));\n    } else {\n      if (severalTokensAtSamePosition) {\n        if (positionCount == 1) {\n          BooleanQuery q = new BooleanQuery(true);\n          for (int i = 0; i < v.size(); i++) {\n            t = (org.apache.lucene.analysis.Token) v.elementAt(i);\n            TermQuery currentQuery = new TermQuery(\n                new Term(field, t.termText()));\n            q.add(currentQuery, BooleanClause.Occur.SHOULD);\n          }\n          return q;\n        }\n        else {\n          MultiPhraseQuery mpq = new MultiPhraseQuery();\n          mpq.setSlop(phraseSlop);\n          List multiTerms = new ArrayList();\n          for (int i = 0; i < v.size(); i++) {\n            t = (org.apache.lucene.analysis.Token) v.elementAt(i);\n            if (t.getPositionIncrement() == 1 && multiTerms.size() > 0) {\n              mpq.add((Term[])multiTerms.toArray(new Term[0]));\n              multiTerms.clear();\n            }\n            multiTerms.add(new Term(field, t.termText()));\n          }\n          mpq.add((Term[])multiTerms.toArray(new Term[0]));\n          return mpq;\n        }\n      }\n      else {\n        PhraseQuery q = new PhraseQuery();\n        q.setSlop(phraseSlop);\n        for (int i = 0; i < v.size(); i++) {\n          q.add(new Term(field, ((org.apache.lucene.analysis.Token)\n              v.elementAt(i)).termText()));\n\n        }\n        return q;\n      }\n    }\n  }\n\n\n  /**\n   * Base implementation delegates to {@link #getFieldQuery(String,String)}.\n   * This method may be overridden, for example, to return\n   * a SpanNearQuery instead of a PhraseQuery.\n   *\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getFieldQuery(String field, String queryText, int slop)\n        throws ParseException {\n    Query query = getFieldQuery(field, queryText);\n\n    if (query instanceof PhraseQuery) {\n      ((PhraseQuery) query).setSlop(slop);\n    }\n    if (query instanceof MultiPhraseQuery) {\n      ((MultiPhraseQuery) query).setSlop(slop);\n    }\n\n    return query;\n  }\n\n\n  /**\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getRangeQuery(String field,\n                                String part1,\n                                String part2,\n                                boolean inclusive) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      part1 = part1.toLowerCase();\n      part2 = part2.toLowerCase();\n    }\n    try {\n      DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale);\n      df.setLenient(true);\n      Date d1 = df.parse(part1);\n      Date d2 = df.parse(part2);\n      if (inclusive) {\n        Calendar cal = Calendar.getInstance(locale);\n        cal.setTime(d2);\n        cal.set(Calendar.HOUR_OF_DAY, 23);\n        cal.set(Calendar.MINUTE, 59);\n        cal.set(Calendar.SECOND, 59);\n        cal.set(Calendar.MILLISECOND, 999);\n        d2 = cal.getTime();\n      }\n      DateTools.Resolution resolution = getDateResolution(field);\n      if (resolution == null) {\n        part1 = DateField.dateToString(d1);\n        part2 = DateField.dateToString(d2);\n      } else {\n        part1 = DateTools.dateToString(d1, resolution);\n        part2 = DateTools.dateToString(d2, resolution);\n      }\n    }\n    catch (Exception e) { }\n\n    if(useOldRangeQuery)\n    {\n            return new RangeQuery(new Term(field, part1),\n                          new Term(field, part2),\n                          inclusive);\n    }\n    else\n    {\n      return new ConstantScoreRangeQuery(field,part1,part2,inclusive,inclusive);\n    }\n  }\n\n  /**\n   * Factory method for generating query, given a set of clauses.\n   * By default creates a boolean query composed of clauses passed in.\n   *\n   * Can be overridden by extending classes, to modify query being\n   * returned.\n   *\n   * @param clauses Vector that contains {@link BooleanClause} instances\n   *    to join.\n   *\n   * @return Resulting {@link Query} object.\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getBooleanQuery(Vector clauses) throws ParseException {\n    return getBooleanQuery(clauses, false);\n  }\n\n  /**\n   * Factory method for generating query, given a set of clauses.\n   * By default creates a boolean query composed of clauses passed in.\n   *\n   * Can be overridden by extending classes, to modify query being\n   * returned.\n   *\n   * @param clauses Vector that contains {@link BooleanClause} instances\n   *    to join.\n   * @param disableCoord true if coord scoring should be disabled.\n   *\n   * @return Resulting {@link Query} object.\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getBooleanQuery(Vector clauses, boolean disableCoord)\n    throws ParseException\n  {\n    BooleanQuery query = new BooleanQuery(disableCoord);\n    for (int i = 0; i < clauses.size(); i++) {\n  query.add((BooleanClause)clauses.elementAt(i));\n    }\n    return query;\n  }\n\n  /**\n   * Factory method for generating a query. Called when parser\n   * parses an input term token that contains one or more wildcard\n   * characters (? and *), but is not a prefix term token (one\n   * that has just a single * character at the end)\n   *<p>\n   * Depending on settings, prefix term may be lower-cased\n   * automatically. It will not go through the default Analyzer,\n   * however, since normal Analyzers are unlikely to work properly\n   * with wildcard templates.\n   *<p>\n   * Can be overridden by extending classes, to provide custom handling for\n   * wildcard queries, which may be necessary due to missing analyzer calls.\n   *\n   * @param field Name of the field query will use.\n   * @param termStr Term token that contains one or more wild card\n   *   characters (? or *), but is not simple prefix term\n   *\n   * @return Resulting {@link Query} built for the term\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getWildcardQuery(String field, String termStr) throws ParseException\n  {\n    if (\"*\".equals(field)) {\n      if (\"*\".equals(termStr)) return new MatchAllDocsQuery();\n    }\n    if (!allowLeadingWildcard && (termStr.startsWith(\"*\") || termStr.startsWith(\"?\")))\n      throw new ParseException(\"'*' or '?' not allowed as first character in WildcardQuery\");\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new WildcardQuery(t);\n  }\n\n  /**\n   * Factory method for generating a query (similar to\n   * {@link #getWildcardQuery}). Called when parser parses an input term\n   * token that uses prefix notation; that is, contains a single '*' wildcard\n   * character as its last character. Since this is a special case\n   * of generic wildcard term, and such a query can be optimized easily,\n   * this usually results in a different query object.\n   *<p>\n   * Depending on settings, a prefix term may be lower-cased\n   * automatically. It will not go through the default Analyzer,\n   * however, since normal Analyzers are unlikely to work properly\n   * with wildcard templates.\n   *<p>\n   * Can be overridden by extending classes, to provide custom handling for\n   * wild card queries, which may be necessary due to missing analyzer calls.\n   *\n   * @param field Name of the field query will use.\n   * @param termStr Term token to use for building term for the query\n   *    (<b>without</b> trailing '*' character!)\n   *\n   * @return Resulting {@link Query} built for the term\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getPrefixQuery(String field, String termStr) throws ParseException\n  {\n    if (!allowLeadingWildcard && termStr.startsWith(\"*\"))\n      throw new ParseException(\"'*' not allowed as first character in PrefixQuery\");\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new PrefixQuery(t);\n  }\n\n\n   /**\n   * Factory method for generating a query (similar to\n   * {@link #getWildcardQuery}). Called when parser parses\n   * an input term token that has the fuzzy suffix (~) appended.\n   *\n   * @param field Name of the field query will use.\n   * @param termStr Term token to use for building term for the query\n   *\n   * @return Resulting {@link Query} built for the term\n   * @exception ParseException throw in overridden method to disallow\n   */\n  protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new FuzzyQuery(t, minSimilarity, fuzzyPrefixLength);\n  }\n\n  /**\n   * Returns a String where the escape char has been\n   * removed, or kept only once if there was a double escape.\n   * \n   * Supports escaped unicode characters, e. g. translates\n   * <code>A</code> to <code>A</code>.\n   * \n   */\n  private String discardEscapeChar(String input) throws ParseException {\n    char[] output = new char[input.length()];\n\n    int length = 0;\n\n    boolean lastCharWasEscapeChar = false;\n\n    int codePointMultiplier = 0;\n\n    int codePoint = 0;\n\n    for (int i = 0; i < input.length(); i++) {\n      char curChar = input.charAt(i);\n      if (codePointMultiplier > 0) {\n        codePoint += hexToInt(curChar) * codePointMultiplier;\n        codePointMultiplier >>>= 4;\n        if (codePointMultiplier == 0) {\n          output[length++] = (char)codePoint;\n          codePoint = 0;\n        }\n      } else if (lastCharWasEscapeChar) {\n        if (curChar == 'u') {\n          codePointMultiplier = 16 * 16 * 16;\n        } else {\n          output[length] = curChar;\n          length++;\n        }\n        lastCharWasEscapeChar = false;\n      } else {\n        if (curChar == '\\\\') {\n          lastCharWasEscapeChar = true;\n        } else {\n          output[length] = curChar;\n          length++;\n        }\n      }\n    }\n\n    if (codePointMultiplier > 0) {\n      throw new ParseException(\"Truncated unicode escape sequence.\");\n    }\n\n    if (lastCharWasEscapeChar) {\n      throw new ParseException(\"Term can not end with escape character.\");\n    }\n\n    return new String(output, 0, length);\n  }\n\n  /** Returns the numeric value of the hexadecimal character */\n  private static final int hexToInt(char c) throws ParseException {\n    if ('0' <= c && c <= '9') {\n      return c - '0';\n    } else if ('a' <= c && c <= 'f'){\n      return c - 'a' + 10;\n    } else if ('A' <= c && c <= 'F') {\n      return c - 'A' + 10;\n    } else {\n      throw new ParseException(\"None-hex character in unicode escape sequence: \" + c);\n    }\n  }\n\n  /**\n   * Returns a String where those characters that QueryParser\n   * expects to be escaped are escaped by a preceding <code>\\</code>.\n   */\n  public static String escape(String s) {\n    StringBuffer sb = new StringBuffer();\n    for (int i = 0; i < s.length(); i++) {\n      char c = s.charAt(i);\n      if (c == '\\\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')' || c == ':'\n        || c == '^' || c == '[' || c == ']' || c == '\\\"' || c == '{' || c == '}' || c == '~'\n        || c == '*' || c == '?' || c == '|' || c == '&') {\n        sb.append('\\\\');\n      }\n      sb.append(c);\n    }\n    return sb.toString();\n  }\n\n  /**\n   * Command line tool to test QueryParser, using {@link org.apache.lucene.analysis.SimpleAnalyzer}.\n   * Usage:<br>\n   * <code>java org.apache.lucene.queryParser.QueryParser &lt;input&gt;</code>\n   */\n  public static void main(String[] args) throws Exception {\n    if (args.length == 0) {\n      System.out.println(\"Usage: java org.apache.lucene.queryParser.QueryParser <input>\");\n      System.exit(0);\n    }\n    QueryParser qp = new QueryParser(\"field\",\n                           new org.apache.lucene.analysis.SimpleAnalyzer());\n    Query q = qp.parse(args[0]);\n    System.out.println(q.toString(\"field\"));\n  }\n\n  final public int Conjunction() throws ParseException {\n  int ret = CONJ_NONE;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case AND:\n    case OR:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case AND:\n        jj_consume_token(AND);\n            ret = CONJ_AND;\n        break;\n      case OR:\n        jj_consume_token(OR);\n              ret = CONJ_OR;\n        break;\n      default:\n        jj_la1[0] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      break;\n    default:\n      jj_la1[1] = jj_gen;\n      ;\n    }\n    {if (true) return ret;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public int Modifiers() throws ParseException {\n  int ret = MOD_NONE;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case NOT:\n    case PLUS:\n    case MINUS:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        jj_consume_token(PLUS);\n              ret = MOD_REQ;\n        break;\n      case MINUS:\n        jj_consume_token(MINUS);\n                 ret = MOD_NOT;\n        break;\n      case NOT:\n        jj_consume_token(NOT);\n               ret = MOD_NOT;\n        break;\n      default:\n        jj_la1[2] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      break;\n    default:\n      jj_la1[3] = jj_gen;\n      ;\n    }\n    {if (true) return ret;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public Query TopLevelQuery(String field) throws ParseException {\n        Query q;\n    q = Query(field);\n    jj_consume_token(0);\n                {if (true) return q;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public Query Query(String field) throws ParseException {\n  Vector clauses = new Vector();\n  Query q, firstQuery=null;\n  int conj, mods;\n    mods = Modifiers();\n    q = Clause(field);\n    addClause(clauses, CONJ_NONE, mods, q);\n    if (mods == MOD_NONE)\n        firstQuery=q;\n    label_1:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case AND:\n      case OR:\n      case NOT:\n      case PLUS:\n      case MINUS:\n      case LPAREN:\n      case STAR:\n      case QUOTED:\n      case TERM:\n      case PREFIXTERM:\n      case WILDTERM:\n      case RANGEIN_START:\n      case RANGEEX_START:\n      case NUMBER:\n        ;\n        break;\n      default:\n        jj_la1[4] = jj_gen;\n        break label_1;\n      }\n      conj = Conjunction();\n      mods = Modifiers();\n      q = Clause(field);\n      addClause(clauses, conj, mods, q);\n    }\n      if (clauses.size() == 1 && firstQuery != null)\n        {if (true) return firstQuery;}\n      else {\n  {if (true) return getBooleanQuery(clauses);}\n      }\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public Query Clause(String field) throws ParseException {\n  Query q;\n  Token fieldToken=null, boost=null;\n    if (jj_2_1(2)) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TERM:\n        fieldToken = jj_consume_token(TERM);\n        jj_consume_token(COLON);\n                               field=discardEscapeChar(fieldToken.image);\n        break;\n      case STAR:\n        jj_consume_token(STAR);\n        jj_consume_token(COLON);\n                      field=\"*\";\n        break;\n      default:\n        jj_la1[5] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } else {\n      ;\n    }\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case STAR:\n    case QUOTED:\n    case TERM:\n    case PREFIXTERM:\n    case WILDTERM:\n    case RANGEIN_START:\n    case RANGEEX_START:\n    case NUMBER:\n      q = Term(field);\n      break;\n    case LPAREN:\n      jj_consume_token(LPAREN);\n      q = Query(field);\n      jj_consume_token(RPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[6] = jj_gen;\n        ;\n      }\n      break;\n    default:\n      jj_la1[7] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n      if (boost != null) {\n        float f = (float)1.0;\n  try {\n    f = Float.valueOf(boost.image).floatValue();\n          q.setBoost(f);\n  } catch (Exception ignored) { }\n      }\n      {if (true) return q;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final public Query Term(String field) throws ParseException {\n  Token term, boost=null, fuzzySlop=null, goop1, goop2;\n  boolean prefix = false;\n  boolean wildcard = false;\n  boolean fuzzy = false;\n  boolean rangein = false;\n  Query q;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case STAR:\n    case TERM:\n    case PREFIXTERM:\n    case WILDTERM:\n    case NUMBER:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TERM:\n        term = jj_consume_token(TERM);\n        break;\n      case STAR:\n        term = jj_consume_token(STAR);\n                       wildcard=true;\n        break;\n      case PREFIXTERM:\n        term = jj_consume_token(PREFIXTERM);\n                             prefix=true;\n        break;\n      case WILDTERM:\n        term = jj_consume_token(WILDTERM);\n                           wildcard=true;\n        break;\n      case NUMBER:\n        term = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[8] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FUZZY_SLOP:\n        fuzzySlop = jj_consume_token(FUZZY_SLOP);\n                                fuzzy=true;\n        break;\n      default:\n        jj_la1[9] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case FUZZY_SLOP:\n          fuzzySlop = jj_consume_token(FUZZY_SLOP);\n                                                         fuzzy=true;\n          break;\n        default:\n          jj_la1[10] = jj_gen;\n          ;\n        }\n        break;\n      default:\n        jj_la1[11] = jj_gen;\n        ;\n      }\n       String termImage=discardEscapeChar(term.image);\n       if (wildcard) {\n       q = getWildcardQuery(field, termImage);\n       } else if (prefix) {\n         q = getPrefixQuery(field,\n           discardEscapeChar(term.image.substring\n          (0, term.image.length()-1)));\n       } else if (fuzzy) {\n          float fms = fuzzyMinSim;\n          try {\n            fms = Float.valueOf(fuzzySlop.image.substring(1)).floatValue();\n          } catch (Exception ignored) { }\n         if(fms < 0.0f || fms > 1.0f){\n           {if (true) throw new ParseException(\"Minimum similarity for a FuzzyQuery has to be between 0.0f and 1.0f !\");}\n         }\n         q = getFuzzyQuery(field, termImage,fms);\n       } else {\n         q = getFieldQuery(field, termImage);\n       }\n      break;\n    case RANGEIN_START:\n      jj_consume_token(RANGEIN_START);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_GOOP:\n        goop1 = jj_consume_token(RANGEIN_GOOP);\n        break;\n      case RANGEIN_QUOTED:\n        goop1 = jj_consume_token(RANGEIN_QUOTED);\n        break;\n      default:\n        jj_la1[12] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_TO:\n        jj_consume_token(RANGEIN_TO);\n        break;\n      default:\n        jj_la1[13] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_GOOP:\n        goop2 = jj_consume_token(RANGEIN_GOOP);\n        break;\n      case RANGEIN_QUOTED:\n        goop2 = jj_consume_token(RANGEIN_QUOTED);\n        break;\n      default:\n        jj_la1[14] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      jj_consume_token(RANGEIN_END);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[15] = jj_gen;\n        ;\n      }\n          if (goop1.kind == RANGEIN_QUOTED) {\n            goop1.image = goop1.image.substring(1, goop1.image.length()-1);\n          }\n          if (goop2.kind == RANGEIN_QUOTED) {\n            goop2.image = goop2.image.substring(1, goop2.image.length()-1);\n          }\n          q = getRangeQuery(field, discardEscapeChar(goop1.image), discardEscapeChar(goop2.image), true);\n      break;\n    case RANGEEX_START:\n      jj_consume_token(RANGEEX_START);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_GOOP:\n        goop1 = jj_consume_token(RANGEEX_GOOP);\n        break;\n      case RANGEEX_QUOTED:\n        goop1 = jj_consume_token(RANGEEX_QUOTED);\n        break;\n      default:\n        jj_la1[16] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_TO:\n        jj_consume_token(RANGEEX_TO);\n        break;\n      default:\n        jj_la1[17] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_GOOP:\n        goop2 = jj_consume_token(RANGEEX_GOOP);\n        break;\n      case RANGEEX_QUOTED:\n        goop2 = jj_consume_token(RANGEEX_QUOTED);\n        break;\n      default:\n        jj_la1[18] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      jj_consume_token(RANGEEX_END);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[19] = jj_gen;\n        ;\n      }\n          if (goop1.kind == RANGEEX_QUOTED) {\n            goop1.image = goop1.image.substring(1, goop1.image.length()-1);\n          }\n          if (goop2.kind == RANGEEX_QUOTED) {\n            goop2.image = goop2.image.substring(1, goop2.image.length()-1);\n          }\n\n          q = getRangeQuery(field, discardEscapeChar(goop1.image), discardEscapeChar(goop2.image), false);\n      break;\n    case QUOTED:\n      term = jj_consume_token(QUOTED);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FUZZY_SLOP:\n        fuzzySlop = jj_consume_token(FUZZY_SLOP);\n        break;\n      default:\n        jj_la1[20] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[21] = jj_gen;\n        ;\n      }\n         int s = phraseSlop;\n\n         if (fuzzySlop != null) {\n           try {\n             s = Float.valueOf(fuzzySlop.image.substring(1)).intValue();\n           }\n           catch (Exception ignored) { }\n         }\n         q = getFieldQuery(field, discardEscapeChar(term.image.substring(1, term.image.length()-1)), s);\n      break;\n    default:\n      jj_la1[22] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    if (boost != null) {\n      float f = (float) 1.0;\n      try {\n        f = Float.valueOf(boost.image).floatValue();\n      }\n      catch (Exception ignored) {\n    /* Should this be handled somehow? (defaults to \"no boost\", if\n     * boost number is invalid)\n     */\n      }\n\n      if (q != null) {\n        q.setBoost(f);\n      }\n    }\n    {if (true) return q;}\n    throw new Error(\"Missing return statement in function\");\n  }\n\n  final private boolean jj_2_1(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_1(); }\n    catch(LookaheadSuccess ls) { return true; }\n    finally { jj_save(0, xla); }\n  }\n\n  final private boolean jj_3_1() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_2()) {\n    jj_scanpos = xsp;\n    if (jj_3R_3()) return true;\n    }\n    return false;\n  }\n\n  final private boolean jj_3R_3() {\n    if (jj_scan_token(STAR)) return true;\n    if (jj_scan_token(COLON)) return true;\n    return false;\n  }\n\n  final private boolean jj_3R_2() {\n    if (jj_scan_token(TERM)) return true;\n    if (jj_scan_token(COLON)) return true;\n    return false;\n  }\n\n  public QueryParserTokenManager token_source;\n  public Token token, jj_nt;\n  private int jj_ntk;\n  private Token jj_scanpos, jj_lastpos;\n  private int jj_la;\n  public boolean lookingAhead = false;\n  private boolean jj_semLA;\n  private int jj_gen;\n  final private int[] jj_la1 = new int[23];\n  static private int[] jj_la1_0;\n  static private int[] jj_la1_1;\n  static {\n      jj_la1_0();\n      jj_la1_1();\n   }\n   private static void jj_la1_0() {\n      jj_la1_0 = new int[] {0x180,0x180,0xe00,0xe00,0x1f69f80,0x48000,0x10000,0x1f69000,0x1348000,0x80000,0x80000,0x10000,0x18000000,0x2000000,0x18000000,0x10000,0x80000000,0x20000000,0x80000000,0x10000,0x80000,0x10000,0x1f68000,};\n   }\n   private static void jj_la1_1() {\n      jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x0,0x0,0x0,0x0,};\n   }\n  final private JJCalls[] jj_2_rtns = new JJCalls[1];\n  private boolean jj_rescan = false;\n  private int jj_gc = 0;\n\n  public QueryParser(CharStream stream) {\n    token_source = new QueryParserTokenManager(stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 23; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public void ReInit(CharStream stream) {\n    token_source.ReInit(stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 23; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public QueryParser(QueryParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 23; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  public void ReInit(QueryParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 23; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n  }\n\n  final private Token jj_consume_token(int kind) throws ParseException {\n    Token oldToken;\n    if ((oldToken = token).next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    if (token.kind == kind) {\n      jj_gen++;\n      if (++jj_gc > 100) {\n        jj_gc = 0;\n        for (int i = 0; i < jj_2_rtns.length; i++) {\n          JJCalls c = jj_2_rtns[i];\n          while (c != null) {\n            if (c.gen < jj_gen) c.first = null;\n            c = c.next;\n          }\n        }\n      }\n      return token;\n    }\n    token = oldToken;\n    jj_kind = kind;\n    throw generateParseException();\n  }\n\n  static private final class LookaheadSuccess extends java.lang.Error { }\n  final private LookaheadSuccess jj_ls = new LookaheadSuccess();\n  final private boolean jj_scan_token(int kind) {\n    if (jj_scanpos == jj_lastpos) {\n      jj_la--;\n      if (jj_scanpos.next == null) {\n        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();\n      } else {\n        jj_lastpos = jj_scanpos = jj_scanpos.next;\n      }\n    } else {\n      jj_scanpos = jj_scanpos.next;\n    }\n    if (jj_rescan) {\n      int i = 0; Token tok = token;\n      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }\n      if (tok != null) jj_add_error_token(kind, i);\n    }\n    if (jj_scanpos.kind != kind) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;\n    return false;\n  }\n\n  final public Token getNextToken() {\n    if (token.next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    jj_gen++;\n    return token;\n  }\n\n  final public Token getToken(int index) {\n    Token t = lookingAhead ? jj_scanpos : token;\n    for (int i = 0; i < index; i++) {\n      if (t.next != null) t = t.next;\n      else t = t.next = token_source.getNextToken();\n    }\n    return t;\n  }\n\n  final private int jj_ntk() {\n    if ((jj_nt=token.next) == null)\n      return (jj_ntk = (token.next=token_source.getNextToken()).kind);\n    else\n      return (jj_ntk = jj_nt.kind);\n  }\n\n  private java.util.Vector jj_expentries = new java.util.Vector();\n  private int[] jj_expentry;\n  private int jj_kind = -1;\n  private int[] jj_lasttokens = new int[100];\n  private int jj_endpos;\n\n  private void jj_add_error_token(int kind, int pos) {\n    if (pos >= 100) return;\n    if (pos == jj_endpos + 1) {\n      jj_lasttokens[jj_endpos++] = kind;\n    } else if (jj_endpos != 0) {\n      jj_expentry = new int[jj_endpos];\n      for (int i = 0; i < jj_endpos; i++) {\n        jj_expentry[i] = jj_lasttokens[i];\n      }\n      boolean exists = false;\n      for (java.util.Enumeration e = jj_expentries.elements(); e.hasMoreElements();) {\n        int[] oldentry = (int[])(e.nextElement());\n        if (oldentry.length == jj_expentry.length) {\n          exists = true;\n          for (int i = 0; i < jj_expentry.length; i++) {\n            if (oldentry[i] != jj_expentry[i]) {\n              exists = false;\n              break;\n            }\n          }\n          if (exists) break;\n        }\n      }\n      if (!exists) jj_expentries.addElement(jj_expentry);\n      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;\n    }\n  }\n\n  public ParseException generateParseException() {\n    jj_expentries.removeAllElements();\n    boolean[] la1tokens = new boolean[33];\n    for (int i = 0; i < 33; i++) {\n      la1tokens[i] = false;\n    }\n    if (jj_kind >= 0) {\n      la1tokens[jj_kind] = true;\n      jj_kind = -1;\n    }\n    for (int i = 0; i < 23; i++) {\n      if (jj_la1[i] == jj_gen) {\n        for (int j = 0; j < 32; j++) {\n          if ((jj_la1_0[i] & (1<<j)) != 0) {\n            la1tokens[j] = true;\n          }\n          if ((jj_la1_1[i] & (1<<j)) != 0) {\n            la1tokens[32+j] = true;\n          }\n        }\n      }\n    }\n    for (int i = 0; i < 33; i++) {\n      if (la1tokens[i]) {\n        jj_expentry = new int[1];\n        jj_expentry[0] = i;\n        jj_expentries.addElement(jj_expentry);\n      }\n    }\n    jj_endpos = 0;\n    jj_rescan_token();\n    jj_add_error_token(0, 0);\n    int[][] exptokseq = new int[jj_expentries.size()][];\n    for (int i = 0; i < jj_expentries.size(); i++) {\n      exptokseq[i] = (int[])jj_expentries.elementAt(i);\n    }\n    return new ParseException(token, exptokseq, tokenImage);\n  }\n\n  final public void enable_tracing() {\n  }\n\n  final public void disable_tracing() {\n  }\n\n  final private void jj_rescan_token() {\n    jj_rescan = true;\n    for (int i = 0; i < 1; i++) {\n      JJCalls p = jj_2_rtns[i];\n      do {\n        if (p.gen > jj_gen) {\n          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;\n          switch (i) {\n            case 0: jj_3_1(); break;\n          }\n        }\n        p = p.next;\n      } while (p != null);\n    }\n    jj_rescan = false;\n  }\n\n  final private void jj_save(int index, int xla) {\n    JJCalls p = jj_2_rtns[index];\n    while (p.gen > jj_gen) {\n      if (p.next == null) { p = p.next = new JJCalls(); break; }\n      p = p.next;\n    }\n    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;\n  }\n\n  static final class JJCalls {\n    int gen;\n    Token first;\n    int arg;\n    JJCalls next;", "functions": [{"function_name": "parse", "code": "  public Query parse(String query) throws ParseException {\n    ReInit(new FastCharStream(new StringReader(query)));\n    try {\n      return TopLevelQuery(field);\n    }\n    catch (ParseException tme) {\n      throw new ParseException(\"Cannot parse '\" +query+ \"': \" + tme.getMessage());\n    }\n    catch (TokenMgrError tme) {\n      throw new ParseException(\"Cannot parse '\" +query+ \"': \" + tme.getMessage());\n    }\n    catch (BooleanQuery.TooManyClauses tmc) {\n      throw new ParseException(\"Cannot parse '\" +query+ \"': too many boolean clauses\");", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "CATCH", "RETURN", "CALL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [0, 7], [3, 8], [4, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [12, 16], [13, 17], [14, 18], [15, 19], [17, 20], [17, 21], [18, 22], [18, 23], [19, 24], [19, 25], [21, 26], [23, 27], [23, 28], [25, 29], [25, 30], [28, 31], [30, 32], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 0], [8, 3], [9, 4], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 12], [17, 13], [18, 14], [19, 15], [20, 17], [21, 17], [22, 18], [23, 18], [24, 19], [25, 19], [26, 21], [27, 23], [28, 23], [29, 25], [30, 25], [31, 28], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "getAnalyzer", "code": "  public Analyzer getAnalyzer() {\n    return analyzer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getField", "code": "  public String getField() {\n    return field;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFuzzyMinSim", "code": "  public float getFuzzyMinSim() {\n      return fuzzyMinSim;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFuzzyMinSim", "code": "  public void setFuzzyMinSim(float fuzzyMinSim) {\n      this.fuzzyMinSim = fuzzyMinSim;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFuzzyPrefixLength", "code": "  public int getFuzzyPrefixLength() {\n    return fuzzyPrefixLength;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFuzzyPrefixLength", "code": "  public void setFuzzyPrefixLength(int fuzzyPrefixLength) {\n    this.fuzzyPrefixLength = fuzzyPrefixLength;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPhraseSlop", "code": "  public void setPhraseSlop(int phraseSlop) {\n    this.phraseSlop = phraseSlop;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPhraseSlop", "code": "  public int getPhraseSlop() {\n    return phraseSlop;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAllowLeadingWildcard", "code": "  public void setAllowLeadingWildcard(boolean allowLeadingWildcard) {\n    this.allowLeadingWildcard = allowLeadingWildcard;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAllowLeadingWildcard", "code": "  public boolean getAllowLeadingWildcard() {\n    return allowLeadingWildcard;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDefaultOperator", "code": "  public void setDefaultOperator(Operator op) {\n    this.operator = op;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultOperator", "code": "  public Operator getDefaultOperator() {\n    return operator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLowercaseExpandedTerms", "code": "  public void setLowercaseExpandedTerms(boolean lowercaseExpandedTerms) {\n    this.lowercaseExpandedTerms = lowercaseExpandedTerms;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLowercaseExpandedTerms", "code": "  public boolean getLowercaseExpandedTerms() {\n    return lowercaseExpandedTerms;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUseOldRangeQuery", "code": "  public void setUseOldRangeQuery(boolean useOldRangeQuery) {\n    this.useOldRangeQuery = useOldRangeQuery;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUseOldRangeQuery", "code": "  public boolean getUseOldRangeQuery() {\n    return useOldRangeQuery;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLocale", "code": "  public void setLocale(Locale locale) {\n    this.locale = locale;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocale", "code": "  public Locale getLocale() {\n    return locale;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDateResolution", "code": "  public void setDateResolution(DateTools.Resolution dateResolution) {\n    this.dateResolution = dateResolution;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDateResolution", "code": "  public void setDateResolution(String fieldName, DateTools.Resolution dateResolution) {\n    if (fieldName == null) {\n      throw new IllegalArgumentException(\"Field cannot be null.\");\n    }\n\n    if (fieldToDateResolution == null) {\n      fieldToDateResolution = new HashMap();\n    }\n\n    fieldToDateResolution.put(fieldName, dateResolution);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [6, 8], [2, 9], [7, 10], [1, 11], [9, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 6], [9, 2], [10, 7], [11, 1], [12, 9], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getDateResolution", "code": "  public DateTools.Resolution getDateResolution(String fieldName) {\n    if (fieldName == null) {\n      throw new IllegalArgumentException(\"Field cannot be null.\");\n    }\n\n    if (fieldToDateResolution == null) {\n      return this.dateResolution;\n    }\n\n    DateTools.Resolution resolution = (DateTools.Resolution) fieldToDateResolution.get(fieldName);\n    if (resolution == null) {\n      resolution = this.dateResolution;\n    }\n\n    return resolution;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [5, 9], [7, 10], [4, 11], [8, 12], [5, 13], [9, 14], [2, 15], [3, 16], [13, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 5], [10, 7], [11, 4], [12, 8], [13, 5], [14, 9], [15, 2], [16, 3], [17, 13], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "addClause", "code": "  protected void addClause(Vector clauses, int conj, int mods, Query q) {\n    boolean required, prohibited;\n\n    if (clauses.size() > 0 && conj == CONJ_AND) {\n      BooleanClause c = (BooleanClause) clauses.elementAt(clauses.size()-1);\n      if (!c.isProhibited())\n        c.setOccur(BooleanClause.Occur.MUST);\n    }\n\n    if (clauses.size() > 0 && operator == AND_OPERATOR && conj == CONJ_OR) {\n      BooleanClause c = (BooleanClause) clauses.elementAt(clauses.size()-1);\n      if (!c.isProhibited())\n        c.setOccur(BooleanClause.Occur.SHOULD);\n    }\n\n    if (q == null)\n      return;\n\n    if (operator == OR_OPERATOR) {\n      prohibited = (mods == MOD_NOT);\n      required = (mods == MOD_REQ);\n      if (conj == CONJ_AND && !prohibited) {\n        required = true;\n      }\n    } else {\n      prohibited = (mods == MOD_NOT);\n      required   = (!prohibited && conj != CONJ_OR);\n    }\n    if (required && !prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.MUST));\n    else if (!required && !prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.SHOULD));\n    else if (!required && prohibited)\n      clauses.addElement(new BooleanClause(q, BooleanClause.Occur.MUST_NOT));\n    else\n      throw new RuntimeException(\"Clause cannot be both required and prohibited\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [2, 13], [3, 14], [3, 15], [4, 16], [5, 17], [11, 18], [11, 19], [1, 20], [2, 21], [15, 22], [4, 23], [4, 24], [16, 25], [16, 26], [5, 27], [5, 28], [17, 29], [17, 30], [18, 31], [18, 32], [11, 33], [20, 34], [2, 35], [2, 36], [21, 37], [2, 38], [2, 39], [23, 40], [26, 41], [26, 42], [27, 43], [30, 44], [30, 45], [31, 46], [18, 47], [33, 48], [35, 49], [36, 50], [37, 51], [38, 52], [39, 53], [23, 54], [42, 55], [42, 56], [27, 57], [46, 58], [47, 59], [49, 60], [21, 61], [24, 62], [28, 63], [61, 64], [62, 65], [63, 66], [65, 67], [65, 68], [66, 69], [66, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 2], [14, 3], [15, 3], [16, 4], [17, 5], [18, 11], [19, 11], [20, 1], [21, 2], [22, 15], [23, 4], [24, 4], [25, 16], [26, 16], [27, 5], [28, 5], [29, 17], [30, 17], [31, 18], [32, 18], [33, 11], [34, 20], [35, 2], [36, 2], [37, 21], [38, 2], [39, 2], [40, 23], [41, 26], [42, 26], [43, 27], [44, 30], [45, 30], [46, 31], [47, 18], [48, 33], [49, 35], [50, 36], [51, 37], [52, 38], [53, 39], [54, 23], [55, 42], [56, 42], [57, 27], [58, 46], [59, 47], [60, 49], [61, 21], [62, 24], [63, 28], [64, 61], [65, 62], [66, 63], [67, 65], [68, 65], [69, 66], [70, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "getFieldQuery", "code": "  protected Query getFieldQuery(String field, String queryText)  throws ParseException {\n\n    TokenStream source = analyzer.tokenStream(field, new StringReader(queryText));\n    Vector v = new Vector();\n    org.apache.lucene.analysis.Token t;\n    int positionCount = 0;\n    boolean severalTokensAtSamePosition = false;\n\n    while (true) {\n      try {\n        t = source.next();\n      }\n      catch (IOException e) {\n        t = null;\n      }\n      if (t == null)\n        break;\n      v.addElement(t);\n      if (t.getPositionIncrement() != 0)\n        positionCount += t.getPositionIncrement();\n      else\n        severalTokensAtSamePosition = true;\n    }\n    try {\n      source.close();\n    }\n    catch (IOException e) {\n    }\n\n    if (v.size() == 0)\n      return null;\n    else if (v.size() == 1) {\n      t = (org.apache.lucene.analysis.Token) v.elementAt(0);\n      return new TermQuery(new Term(field, t.termText()));\n    } else {\n      if (severalTokensAtSamePosition) {\n        if (positionCount == 1) {\n          BooleanQuery q = new BooleanQuery(true);\n          for (int i = 0; i < v.size(); i++) {\n            t = (org.apache.lucene.analysis.Token) v.elementAt(i);\n            TermQuery currentQuery = new TermQuery(\n                new Term(field, t.termText()));\n            q.add(currentQuery, BooleanClause.Occur.SHOULD);\n          }\n          return q;\n        }\n        else {\n          MultiPhraseQuery mpq = new MultiPhraseQuery();\n          mpq.setSlop(phraseSlop);\n          List multiTerms = new ArrayList();\n          for (int i = 0; i < v.size(); i++) {\n            t = (org.apache.lucene.analysis.Token) v.elementAt(i);\n            if (t.getPositionIncrement() == 1 && multiTerms.size() > 0) {\n              mpq.add((Term[])multiTerms.toArray(new Term[0]));\n              multiTerms.clear();\n            }\n            multiTerms.add(new Term(field, t.termText()));\n          }\n          mpq.add((Term[])multiTerms.toArray(new Term[0]));\n          return mpq;\n        }\n      }\n      else {\n        PhraseQuery q = new PhraseQuery();\n        q.setSlop(phraseSlop);\n        for (int i = 0; i < v.size(); i++) {\n          q.add(new Term(field, ((org.apache.lucene.analysis.Token)\n              v.elementAt(i)).termText()));\n\n        }\n        return q;", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CATCH", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "LOOP", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [11, 16], [12, 17], [13, 18], [13, 19], [2, 20], [3, 21], [3, 22], [3, 23], [4, 24], [5, 25], [7, 26], [8, 27], [11, 28], [11, 29], [16, 30], [16, 31], [21, 32], [3, 33], [22, 34], [22, 35], [23, 36], [27, 37], [29, 38], [11, 39], [21, 40], [21, 41], [32, 42], [32, 43], [35, 44], [23, 45], [28, 46], [28, 47], [28, 48], [28, 49], [38, 50], [40, 51], [41, 52], [36, 53], [45, 54], [47, 55], [28, 56], [49, 57], [50, 58], [39, 59], [53, 60], [55, 61], [48, 62], [49, 63], [49, 64], [49, 65], [49, 66], [49, 67], [49, 68], [49, 69], [57, 70], [59, 71], [47, 72], [47, 73], [49, 74], [64, 75], [49, 76], [68, 77], [72, 78], [64, 79], [75, 80], [65, 81], [66, 82], [68, 83], [77, 84], [69, 85], [74, 86], [64, 87], [79, 88], [64, 89], [64, 90], [68, 91], [68, 92], [68, 93], [85, 94], [78, 95], [87, 96], [88, 97], [88, 98], [83, 99], [86, 100], [96, 101], [79, 102], [79, 103], [97, 104], [97, 105], [98, 106], [98, 107], [89, 108], [99, 109], [92, 110], [109, 111], [103, 112], [112, 113], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 11], [17, 12], [18, 13], [19, 13], [20, 2], [21, 3], [22, 3], [23, 3], [24, 4], [25, 5], [26, 7], [27, 8], [28, 11], [29, 11], [30, 16], [31, 16], [32, 21], [33, 3], [34, 22], [35, 22], [36, 23], [37, 27], [38, 29], [39, 11], [40, 21], [41, 21], [42, 32], [43, 32], [44, 35], [45, 23], [46, 28], [47, 28], [48, 28], [49, 28], [50, 38], [51, 40], [52, 41], [53, 36], [54, 45], [55, 47], [56, 28], [57, 49], [58, 50], [59, 39], [60, 53], [61, 55], [62, 48], [63, 49], [64, 49], [65, 49], [66, 49], [67, 49], [68, 49], [69, 49], [70, 57], [71, 59], [72, 47], [73, 47], [74, 49], [75, 64], [76, 49], [77, 68], [78, 72], [79, 64], [80, 75], [81, 65], [82, 66], [83, 68], [84, 77], [85, 69], [86, 74], [87, 64], [88, 79], [89, 64], [90, 64], [91, 68], [92, 68], [93, 68], [94, 85], [95, 78], [96, 87], [97, 88], [98, 88], [99, 83], [100, 86], [101, 96], [102, 79], [103, 79], [104, 97], [105, 97], [106, 98], [107, 98], [108, 89], [109, 99], [110, 92], [111, 109], [112, 103], [113, 112], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113]]}, {"function_name": "getFieldQuery", "code": "  protected Query getFieldQuery(String field, String queryText, int slop)\n        throws ParseException {\n    Query query = getFieldQuery(field, queryText);\n\n    if (query instanceof PhraseQuery) {\n      ((PhraseQuery) query).setSlop(slop);\n    }\n    if (query instanceof MultiPhraseQuery) {\n      ((MultiPhraseQuery) query).setSlop(slop);\n    }\n\n    return query;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getRangeQuery", "code": "  protected Query getRangeQuery(String field,\n                                String part1,\n                                String part2,\n                                boolean inclusive) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      part1 = part1.toLowerCase();\n      part2 = part2.toLowerCase();\n    }\n    try {\n      DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale);\n      df.setLenient(true);\n      Date d1 = df.parse(part1);\n      Date d2 = df.parse(part2);\n      if (inclusive) {\n        Calendar cal = Calendar.getInstance(locale);\n        cal.setTime(d2);\n        cal.set(Calendar.HOUR_OF_DAY, 23);\n        cal.set(Calendar.MINUTE, 59);\n        cal.set(Calendar.SECOND, 59);\n        cal.set(Calendar.MILLISECOND, 999);\n        d2 = cal.getTime();\n      }\n      DateTools.Resolution resolution = getDateResolution(field);\n      if (resolution == null) {\n        part1 = DateField.dateToString(d1);\n        part2 = DateField.dateToString(d2);\n      } else {\n        part1 = DateTools.dateToString(d1, resolution);\n        part2 = DateTools.dateToString(d2, resolution);\n      }\n    }\n    catch (Exception e) { }\n\n    if(useOldRangeQuery)\n    {\n            return new RangeQuery(new Term(field, part1),\n                          new Term(field, part2),\n                          inclusive);\n    }\n    else\n    {\n      return new ConstantScoreRangeQuery(field,part1,part2,inclusive,inclusive);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [1, 15], [1, 16], [9, 17], [2, 18], [15, 19], [16, 20], [17, 21], [10, 22], [11, 23], [12, 24], [13, 25], [18, 26], [14, 27], [3, 28], [3, 29], [20, 30], [20, 31], [9, 32], [9, 33], [9, 34], [9, 35], [11, 36], [11, 37], [11, 38], [11, 39], [11, 40], [11, 41], [28, 42], [29, 43], [32, 44], [33, 45], [34, 46], [35, 47], [36, 48], [37, 49], [38, 50], [39, 51], [40, 52], [23, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 1], [16, 1], [17, 9], [18, 2], [19, 15], [20, 16], [21, 17], [22, 10], [23, 11], [24, 12], [25, 13], [26, 18], [27, 14], [28, 3], [29, 3], [30, 20], [31, 20], [32, 9], [33, 9], [34, 9], [35, 9], [36, 11], [37, 11], [38, 11], [39, 11], [40, 11], [41, 11], [42, 28], [43, 29], [44, 32], [45, 33], [46, 34], [47, 35], [48, 36], [49, 37], [50, 38], [51, 39], [52, 40], [53, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "getBooleanQuery", "code": "  protected Query getBooleanQuery(Vector clauses) throws ParseException {\n    return getBooleanQuery(clauses, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBooleanQuery", "code": "  protected Query getBooleanQuery(Vector clauses, boolean disableCoord)\n    throws ParseException\n  {\n    BooleanQuery query = new BooleanQuery(disableCoord);\n    for (int i = 0; i < clauses.size(); i++) {\n  query.add((BooleanClause)clauses.elementAt(i));\n    }\n    return query;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [3, 8], [2, 9], [2, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 3], [9, 2], [10, 2], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getWildcardQuery", "code": "  protected Query getWildcardQuery(String field, String termStr) throws ParseException\n  {\n    if (\"*\".equals(field)) {\n      if (\"*\".equals(termStr)) return new MatchAllDocsQuery();\n    }\n    if (!allowLeadingWildcard && (termStr.startsWith(\"*\") || termStr.startsWith(\"?\")))\n      throw new ParseException(\"'*' or '?' not allowed as first character in WildcardQuery\");\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new WildcardQuery(t);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [4, 10], [5, 11], [2, 12], [9, 13], [10, 14], [5, 15], [11, 16], [3, 17], [13, 18], [14, 19], [14, 20], [15, 21], [15, 22], [17, 23], [19, 24], [20, 25], [21, 26], [22, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 4], [11, 5], [12, 2], [13, 9], [14, 10], [15, 5], [16, 11], [17, 3], [18, 13], [19, 14], [20, 14], [21, 15], [22, 15], [23, 17], [24, 19], [25, 20], [26, 21], [27, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getPrefixQuery", "code": "  protected Query getPrefixQuery(String field, String termStr) throws ParseException\n  {\n    if (!allowLeadingWildcard && termStr.startsWith(\"*\"))\n      throw new ParseException(\"'*' not allowed as first character in PrefixQuery\");\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new PrefixQuery(t);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [4, 8], [4, 9], [2, 10], [8, 11], [9, 12], [3, 13], [11, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 4], [9, 4], [10, 2], [11, 8], [12, 9], [13, 3], [14, 11], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getFuzzyQuery", "code": "  protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws ParseException\n  {\n    if (lowercaseExpandedTerms) {\n      termStr = termStr.toLowerCase();\n    }\n    Term t = new Term(field, termStr);\n    return new FuzzyQuery(t, minSimilarity, fuzzyPrefixLength);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "discardEscapeChar", "code": "  private String discardEscapeChar(String input) throws ParseException {\n    char[] output = new char[input.length()];\n\n    int length = 0;\n\n    boolean lastCharWasEscapeChar = false;\n\n    int codePointMultiplier = 0;\n\n    int codePoint = 0;\n\n    for (int i = 0; i < input.length(); i++) {\n      char curChar = input.charAt(i);\n      if (codePointMultiplier > 0) {\n        codePoint += hexToInt(curChar) * codePointMultiplier;\n        codePointMultiplier >>>= 4;\n        if (codePointMultiplier == 0) {\n          output[length++] = (char)codePoint;\n          codePoint = 0;\n        }\n      } else if (lastCharWasEscapeChar) {\n        if (curChar == 'u') {\n          codePointMultiplier = 16 * 16 * 16;\n        } else {\n          output[length] = curChar;\n          length++;\n        }\n        lastCharWasEscapeChar = false;\n      } else {\n        if (curChar == '\\\\') {\n          lastCharWasEscapeChar = true;\n        } else {\n          output[length] = curChar;\n          length++;\n        }\n      }\n    }\n\n    if (codePointMultiplier > 0) {\n      throw new ParseException(\"Truncated unicode escape sequence.\");\n    }\n\n    if (lastCharWasEscapeChar) {\n      throw new ParseException(\"Term can not end with escape character.\");\n    }\n\n    return new String(output, 0, length);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "IF", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [3, 12], [4, 13], [11, 14], [2, 15], [3, 16], [12, 17], [4, 18], [4, 19], [13, 20], [5, 21], [6, 22], [7, 23], [8, 24], [15, 25], [16, 26], [18, 27], [18, 28], [4, 29], [9, 30], [25, 31], [26, 32], [18, 33], [28, 34], [19, 35], [27, 36], [27, 37], [33, 38], [18, 39], [18, 40], [36, 41], [27, 42], [37, 43], [38, 44], [39, 45], [40, 46], [41, 47], [42, 48], [43, 49], [33, 50], [33, 51], [46, 52], [36, 53], [36, 54], [37, 55], [37, 56], [50, 57], [54, 58], [56, 59], [59, 60], [59, 61], [61, 62], [61, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 3], [13, 4], [14, 11], [15, 2], [16, 3], [17, 12], [18, 4], [19, 4], [20, 13], [21, 5], [22, 6], [23, 7], [24, 8], [25, 15], [26, 16], [27, 18], [28, 18], [29, 4], [30, 9], [31, 25], [32, 26], [33, 18], [34, 28], [35, 19], [36, 27], [37, 27], [38, 33], [39, 18], [40, 18], [41, 36], [42, 27], [43, 37], [44, 38], [45, 39], [46, 40], [47, 41], [48, 42], [49, 43], [50, 33], [51, 33], [52, 46], [53, 36], [54, 36], [55, 37], [56, 37], [57, 50], [58, 54], [59, 56], [60, 59], [61, 59], [62, 61], [63, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "hexToInt", "code": "  private static final int hexToInt(char c) throws ParseException {\n    if ('0' <= c && c <= '9') {\n      return c - '0';\n    } else if ('a' <= c && c <= 'f'){\n      return c - 'a' + 10;\n    } else if ('A' <= c && c <= 'F') {\n      return c - 'A' + 10;\n    } else {\n      throw new ParseException(\"None-hex character in unicode escape sequence: \" + c);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [4, 8], [4, 9], [5, 10], [3, 11], [6, 12], [6, 13], [7, 14], [8, 15], [9, 16], [5, 17], [5, 18], [10, 19], [10, 20], [11, 21], [12, 22], [13, 23], [14, 24], [17, 25], [18, 26], [19, 27], [20, 28], [21, 29], [21, 30], [25, 31], [26, 32], [26, 33], [30, 34], [31, 35], [33, 36], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 4], [9, 4], [10, 5], [11, 3], [12, 6], [13, 6], [14, 7], [15, 8], [16, 9], [17, 5], [18, 5], [19, 10], [20, 10], [21, 11], [22, 12], [23, 13], [24, 14], [25, 17], [26, 18], [27, 19], [28, 20], [29, 21], [30, 21], [31, 25], [32, 26], [33, 26], [34, 30], [35, 31], [36, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "escape", "code": "  public static String escape(String s) {\n    StringBuffer sb = new StringBuffer();\n    for (int i = 0; i < s.length(); i++) {\n      char c = s.charAt(i);\n      if (c == '\\\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')' || c == ':'\n        || c == '^' || c == '[' || c == ']' || c == '\\\"' || c == '{' || c == '}' || c == '~'\n        || c == '*' || c == '?' || c == '|' || c == '&') {\n        sb.append('\\\\');\n      }\n      sb.append(c);\n    }\n    return sb.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [2, 11], [7, 12], [2, 13], [12, 14], [12, 15], [8, 16], [7, 17], [14, 18], [15, 19], [15, 20], [17, 21], [19, 22], [20, 23], [20, 24], [23, 25], [24, 26], [24, 27], [26, 28], [27, 29], [27, 30], [29, 31], [30, 32], [30, 33], [32, 34], [33, 35], [33, 36], [35, 37], [36, 38], [36, 39], [38, 40], [39, 41], [39, 42], [41, 43], [42, 44], [42, 45], [44, 46], [45, 47], [45, 48], [47, 49], [48, 50], [48, 51], [50, 52], [51, 53], [51, 54], [53, 55], [54, 56], [54, 57], [56, 58], [57, 59], [57, 60], [59, 61], [60, 62], [60, 63], [62, 64], [63, 65], [63, 66], [65, 67], [66, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 2], [12, 7], [13, 2], [14, 12], [15, 12], [16, 8], [17, 7], [18, 14], [19, 15], [20, 15], [21, 17], [22, 19], [23, 20], [24, 20], [25, 23], [26, 24], [27, 24], [28, 26], [29, 27], [30, 27], [31, 29], [32, 30], [33, 30], [34, 32], [35, 33], [36, 33], [37, 35], [38, 36], [39, 36], [40, 38], [41, 39], [42, 39], [43, 41], [44, 42], [45, 42], [46, 44], [47, 45], [48, 45], [49, 47], [50, 48], [51, 48], [52, 50], [53, 51], [54, 51], [55, 53], [56, 54], [57, 54], [58, 56], [59, 57], [60, 57], [61, 59], [62, 60], [63, 60], [64, 62], [65, 63], [66, 63], [67, 65], [68, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "main", "code": "  public static void main(String[] args) throws Exception {\n    if (args.length == 0) {\n      System.out.println(\"Usage: java org.apache.lucene.queryParser.QueryParser <input>\");\n      System.exit(0);\n    }\n    QueryParser qp = new QueryParser(\"field\",\n                           new org.apache.lucene.analysis.SimpleAnalyzer());\n    Query q = qp.parse(args[0]);\n    System.out.println(q.toString(\"field\"));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [1, 8], [2, 9], [6, 10], [7, 11], [9, 12], [9, 13], [3, 14], [3, 15], [14, 16], [15, 17], [8, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 1], [9, 2], [10, 6], [11, 7], [12, 9], [13, 9], [14, 3], [15, 3], [16, 14], [17, 15], [18, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "Conjunction", "code": "  final public int Conjunction() throws ParseException {\n  int ret = CONJ_NONE;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case AND:\n    case OR:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case AND:\n        jj_consume_token(AND);\n            ret = CONJ_AND;\n        break;\n      case OR:\n        jj_consume_token(OR);\n              ret = CONJ_OR;\n        break;\n      default:\n        jj_la1[0] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      break;\n    default:\n      jj_la1[1] = jj_gen;\n      ;\n    }\n    {if (true) return ret;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "VAR_DECL", "CALL", "IF", "COND_EXPR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [4, 7], [5, 8], [5, 9], [2, 10], [2, 11], [6, 12], [6, 13], [2, 14], [11, 15], [13, 16], [11, 17], [11, 18], [11, 19], [15, 20], [15, 21], [17, 22], [11, 23], [11, 24], [11, 25], [11, 26], [11, 27], [11, 28], [21, 29], [14, 30], [23, 31], [24, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 4], [8, 5], [9, 5], [10, 2], [11, 2], [12, 6], [13, 6], [14, 2], [15, 11], [16, 13], [17, 11], [18, 11], [19, 11], [20, 15], [21, 15], [22, 17], [23, 11], [24, 11], [25, 11], [26, 11], [27, 11], [28, 11], [29, 21], [30, 14], [31, 23], [32, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "Modifiers", "code": "  final public int Modifiers() throws ParseException {\n  int ret = MOD_NONE;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case NOT:\n    case PLUS:\n    case MINUS:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case PLUS:\n        jj_consume_token(PLUS);\n              ret = MOD_REQ;\n        break;\n      case MINUS:\n        jj_consume_token(MINUS);\n                 ret = MOD_NOT;\n        break;\n      case NOT:\n        jj_consume_token(NOT);\n               ret = MOD_NOT;\n        break;\n      default:\n        jj_la1[2] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      break;\n    default:\n      jj_la1[3] = jj_gen;\n      ;\n    }\n    {if (true) return ret;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "SWITCH", "VAR_DECL", "CALL", "IF", "COND_EXPR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [4, 7], [5, 8], [5, 9], [2, 10], [2, 11], [6, 12], [6, 13], [2, 14], [11, 15], [13, 16], [11, 17], [11, 18], [11, 19], [11, 20], [15, 21], [15, 22], [17, 23], [11, 24], [11, 25], [11, 26], [11, 27], [11, 28], [11, 29], [11, 30], [11, 31], [22, 32], [14, 33], [24, 34], [25, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 4], [8, 5], [9, 5], [10, 2], [11, 2], [12, 6], [13, 6], [14, 2], [15, 11], [16, 13], [17, 11], [18, 11], [19, 11], [20, 11], [21, 15], [22, 15], [23, 17], [24, 11], [25, 11], [26, 11], [27, 11], [28, 11], [29, 11], [30, 11], [31, 11], [32, 22], [33, 14], [34, 24], [35, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "TopLevelQuery", "code": "  final public Query TopLevelQuery(String field) throws ParseException {\n        Query q;\n    q = Query(field);\n    jj_consume_token(0);\n                {if (true) return q;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "PARAM", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [5, 10], [6, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 5], [11, 6], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "Query", "code": "  final public Query Query(String field) throws ParseException {\n  Vector clauses = new Vector();\n  Query q, firstQuery=null;\n  int conj, mods;\n    mods = Modifiers();\n    q = Clause(field);\n    addClause(clauses, CONJ_NONE, mods, q);\n    if (mods == MOD_NONE)\n        firstQuery=q;\n    label_1:\n    while (true) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case AND:\n      case OR:\n      case NOT:\n      case PLUS:\n      case MINUS:\n      case LPAREN:\n      case STAR:\n      case QUOTED:\n      case TERM:\n      case PREFIXTERM:\n      case WILDTERM:\n      case RANGEIN_START:\n      case RANGEEX_START:\n      case NUMBER:\n        ;\n        break;\n      default:\n        jj_la1[4] = jj_gen;\n        break label_1;\n      }\n      conj = Conjunction();\n      mods = Modifiers();\n      q = Clause(field);\n      addClause(clauses, conj, mods, q);\n    }\n      if (clauses.size() == 1 && firstQuery != null)\n        {if (true) return firstQuery;}\n      else {\n  {if (true) return getBooleanQuery(clauses);}\n      }\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "COND_EXPR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [0, 13], [0, 14], [0, 15], [9, 16], [2, 17], [10, 18], [10, 19], [3, 20], [4, 21], [14, 22], [15, 23], [6, 24], [7, 25], [2, 26], [17, 27], [17, 28], [18, 29], [19, 30], [19, 31], [3, 32], [3, 33], [3, 34], [3, 35], [20, 36], [26, 37], [26, 38], [33, 39], [34, 40], [35, 41], [20, 42], [20, 43], [36, 44], [36, 45], [37, 46], [20, 47], [45, 48], [47, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 4], [13, 0], [14, 0], [15, 0], [16, 9], [17, 2], [18, 10], [19, 10], [20, 3], [21, 4], [22, 14], [23, 15], [24, 6], [25, 7], [26, 2], [27, 17], [28, 17], [29, 18], [30, 19], [31, 19], [32, 3], [33, 3], [34, 3], [35, 3], [36, 20], [37, 26], [38, 26], [39, 33], [40, 34], [41, 35], [42, 20], [43, 20], [44, 36], [45, 36], [46, 37], [47, 20], [48, 45], [49, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "Clause", "code": "  final public Query Clause(String field) throws ParseException {\n  Query q;\n  Token fieldToken=null, boost=null;\n    if (jj_2_1(2)) {\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TERM:\n        fieldToken = jj_consume_token(TERM);\n        jj_consume_token(COLON);\n                               field=discardEscapeChar(fieldToken.image);\n        break;\n      case STAR:\n        jj_consume_token(STAR);\n        jj_consume_token(COLON);\n                      field=\"*\";\n        break;\n      default:\n        jj_la1[5] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n    } else {\n      ;\n    }\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case STAR:\n    case QUOTED:\n    case TERM:\n    case PREFIXTERM:\n    case WILDTERM:\n    case RANGEIN_START:\n    case RANGEEX_START:\n    case NUMBER:\n      q = Term(field);\n      break;\n    case LPAREN:\n      jj_consume_token(LPAREN);\n      q = Query(field);\n      jj_consume_token(RPAREN);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[6] = jj_gen;\n        ;\n      }\n      break;\n    default:\n      jj_la1[7] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n      if (boost != null) {\n        float f = (float)1.0;\n  try {\n    f = Float.valueOf(boost.image).floatValue();\n          q.setBoost(f);\n  } catch (Exception ignored) { }\n      }\n      {if (true) return q;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "SWITCH", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "SWITCH", "BREAK_CONTINUE", "CALL", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "ASSIGN", "COND_EXPR", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [2, 10], [3, 11], [4, 12], [8, 13], [9, 14], [9, 15], [2, 16], [2, 17], [10, 18], [3, 19], [3, 20], [3, 21], [3, 22], [11, 23], [11, 24], [4, 25], [12, 26], [5, 27], [5, 28], [16, 29], [19, 30], [3, 31], [3, 32], [21, 33], [3, 34], [3, 35], [3, 36], [3, 37], [24, 38], [25, 39], [16, 40], [16, 41], [31, 42], [21, 43], [33, 44], [33, 45], [35, 46], [37, 47], [25, 48], [25, 49], [25, 50], [39, 51], [39, 52], [41, 53], [17, 54], [21, 55], [21, 56], [21, 57], [45, 58], [48, 59], [25, 60], [25, 61], [25, 62], [25, 63], [25, 64], [25, 65], [25, 66], [25, 67], [52, 68], [53, 69], [32, 70], [56, 71], [60, 72], [62, 73], [65, 74], [67, 75], [55, 76], [61, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 2], [11, 3], [12, 4], [13, 8], [14, 9], [15, 9], [16, 2], [17, 2], [18, 10], [19, 3], [20, 3], [21, 3], [22, 3], [23, 11], [24, 11], [25, 4], [26, 12], [27, 5], [28, 5], [29, 16], [30, 19], [31, 3], [32, 3], [33, 21], [34, 3], [35, 3], [36, 3], [37, 3], [38, 24], [39, 25], [40, 16], [41, 16], [42, 31], [43, 21], [44, 33], [45, 33], [46, 35], [47, 37], [48, 25], [49, 25], [50, 25], [51, 39], [52, 39], [53, 41], [54, 17], [55, 21], [56, 21], [57, 21], [58, 45], [59, 48], [60, 25], [61, 25], [62, 25], [63, 25], [64, 25], [65, 25], [66, 25], [67, 25], [68, 52], [69, 53], [70, 32], [71, 56], [72, 60], [73, 62], [74, 65], [75, 67], [76, 55], [77, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "Term", "code": "  final public Query Term(String field) throws ParseException {\n  Token term, boost=null, fuzzySlop=null, goop1, goop2;\n  boolean prefix = false;\n  boolean wildcard = false;\n  boolean fuzzy = false;\n  boolean rangein = false;\n  Query q;\n    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n    case STAR:\n    case TERM:\n    case PREFIXTERM:\n    case WILDTERM:\n    case NUMBER:\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case TERM:\n        term = jj_consume_token(TERM);\n        break;\n      case STAR:\n        term = jj_consume_token(STAR);\n                       wildcard=true;\n        break;\n      case PREFIXTERM:\n        term = jj_consume_token(PREFIXTERM);\n                             prefix=true;\n        break;\n      case WILDTERM:\n        term = jj_consume_token(WILDTERM);\n                           wildcard=true;\n        break;\n      case NUMBER:\n        term = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[8] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FUZZY_SLOP:\n        fuzzySlop = jj_consume_token(FUZZY_SLOP);\n                                fuzzy=true;\n        break;\n      default:\n        jj_la1[9] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n        case FUZZY_SLOP:\n          fuzzySlop = jj_consume_token(FUZZY_SLOP);\n                                                         fuzzy=true;\n          break;\n        default:\n          jj_la1[10] = jj_gen;\n          ;\n        }\n        break;\n      default:\n        jj_la1[11] = jj_gen;\n        ;\n      }\n       String termImage=discardEscapeChar(term.image);\n       if (wildcard) {\n       q = getWildcardQuery(field, termImage);\n       } else if (prefix) {\n         q = getPrefixQuery(field,\n           discardEscapeChar(term.image.substring\n          (0, term.image.length()-1)));\n       } else if (fuzzy) {\n          float fms = fuzzyMinSim;\n          try {\n            fms = Float.valueOf(fuzzySlop.image.substring(1)).floatValue();\n          } catch (Exception ignored) { }\n         if(fms < 0.0f || fms > 1.0f){\n           {if (true) throw new ParseException(\"Minimum similarity for a FuzzyQuery has to be between 0.0f and 1.0f !\");}\n         }\n         q = getFuzzyQuery(field, termImage,fms);\n       } else {\n         q = getFieldQuery(field, termImage);\n       }\n      break;\n    case RANGEIN_START:\n      jj_consume_token(RANGEIN_START);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_GOOP:\n        goop1 = jj_consume_token(RANGEIN_GOOP);\n        break;\n      case RANGEIN_QUOTED:\n        goop1 = jj_consume_token(RANGEIN_QUOTED);\n        break;\n      default:\n        jj_la1[12] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_TO:\n        jj_consume_token(RANGEIN_TO);\n        break;\n      default:\n        jj_la1[13] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEIN_GOOP:\n        goop2 = jj_consume_token(RANGEIN_GOOP);\n        break;\n      case RANGEIN_QUOTED:\n        goop2 = jj_consume_token(RANGEIN_QUOTED);\n        break;\n      default:\n        jj_la1[14] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      jj_consume_token(RANGEIN_END);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[15] = jj_gen;\n        ;\n      }\n          if (goop1.kind == RANGEIN_QUOTED) {\n            goop1.image = goop1.image.substring(1, goop1.image.length()-1);\n          }\n          if (goop2.kind == RANGEIN_QUOTED) {\n            goop2.image = goop2.image.substring(1, goop2.image.length()-1);\n          }\n          q = getRangeQuery(field, discardEscapeChar(goop1.image), discardEscapeChar(goop2.image), true);\n      break;\n    case RANGEEX_START:\n      jj_consume_token(RANGEEX_START);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_GOOP:\n        goop1 = jj_consume_token(RANGEEX_GOOP);\n        break;\n      case RANGEEX_QUOTED:\n        goop1 = jj_consume_token(RANGEEX_QUOTED);\n        break;\n      default:\n        jj_la1[16] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_TO:\n        jj_consume_token(RANGEEX_TO);\n        break;\n      default:\n        jj_la1[17] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case RANGEEX_GOOP:\n        goop2 = jj_consume_token(RANGEEX_GOOP);\n        break;\n      case RANGEEX_QUOTED:\n        goop2 = jj_consume_token(RANGEEX_QUOTED);\n        break;\n      default:\n        jj_la1[18] = jj_gen;\n        jj_consume_token(-1);\n        throw new ParseException();\n      }\n      jj_consume_token(RANGEEX_END);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[19] = jj_gen;\n        ;\n      }\n          if (goop1.kind == RANGEEX_QUOTED) {\n            goop1.image = goop1.image.substring(1, goop1.image.length()-1);\n          }\n          if (goop2.kind == RANGEEX_QUOTED) {\n            goop2.image = goop2.image.substring(1, goop2.image.length()-1);\n          }\n\n          q = getRangeQuery(field, discardEscapeChar(goop1.image), discardEscapeChar(goop2.image), false);\n      break;\n    case QUOTED:\n      term = jj_consume_token(QUOTED);\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case FUZZY_SLOP:\n        fuzzySlop = jj_consume_token(FUZZY_SLOP);\n        break;\n      default:\n        jj_la1[20] = jj_gen;\n        ;\n      }\n      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n      case CARAT:\n        jj_consume_token(CARAT);\n        boost = jj_consume_token(NUMBER);\n        break;\n      default:\n        jj_la1[21] = jj_gen;\n        ;\n      }\n         int s = phraseSlop;\n\n         if (fuzzySlop != null) {\n           try {\n             s = Float.valueOf(fuzzySlop.image.substring(1)).intValue();\n           }\n           catch (Exception ignored) { }\n         }\n         q = getFieldQuery(field, discardEscapeChar(term.image.substring(1, term.image.length()-1)), s);\n      break;\n    default:\n      jj_la1[22] = jj_gen;\n      jj_consume_token(-1);\n      throw new ParseException();\n    }\n    if (boost != null) {\n      float f = (float) 1.0;\n      try {\n        f = Float.valueOf(boost.image).floatValue();\n      }\n      catch (Exception ignored) {\n    /* Should this be handled somehow? (defaults to \"no boost\", if\n     * boost number is invalid)\n     */\n      }\n\n      if (q != null) {\n        q.setBoost(f);\n      }\n    }\n    {if (true) return q;}\n    throw new Error(\"Missing return statement in function\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "BREAK_CONTINUE", "IF", "VAR_DECL", "SWITCH", "SWITCH", "BREAK_CONTINUE", "IF", "IF", "SWITCH", "SWITCH", "SWITCH", "SWITCH", "BREAK_CONTINUE", "IF", "IF", "SWITCH", "SWITCH", "SWITCH", "SWITCH", "BREAK_CONTINUE", "IF", "VAR_DECL", "SWITCH", "SWITCH", "SWITCH", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "COND_EXPR", "COND_EXPR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "COND_EXPR", "COND_EXPR", "COND_EXPR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "COND_EXPR", "COND_EXPR", "COND_EXPR", "CALL", "IF", "COND_EXPR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "IF", "CALL", "BREAK_CONTINUE", "SWITCH", "CALL", "BINARY_OP", "BREAK_CONTINUE", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "COND_EXPR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "TRY", "VAR_DECL", "ASSIGN", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "CATCH", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [2, 13], [3, 14], [11, 15], [12, 16], [12, 17], [2, 18], [2, 19], [2, 20], [13, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [3, 40], [3, 41], [3, 42], [3, 43], [3, 44], [3, 45], [3, 46], [3, 47], [14, 48], [14, 49], [5, 50], [6, 51], [7, 52], [8, 53], [9, 54], [9, 55], [18, 56], [19, 57], [22, 58], [3, 59], [3, 60], [3, 61], [24, 62], [26, 63], [27, 64], [3, 65], [3, 66], [29, 67], [30, 68], [31, 69], [3, 70], [32, 71], [33, 72], [34, 73], [3, 74], [3, 75], [36, 76], [37, 77], [38, 78], [3, 79], [39, 80], [40, 81], [41, 82], [3, 83], [43, 84], [45, 85], [46, 86], [47, 87], [49, 88], [56, 89], [19, 90], [59, 91], [61, 92], [24, 93], [62, 94], [26, 95], [63, 96], [63, 97], [27, 98], [64, 99], [64, 100], [65, 101], [66, 102], [31, 103], [69, 104], [69, 105], [32, 106], [32, 107], [32, 108], [71, 109], [71, 110], [33, 111], [72, 112], [72, 113], [34, 114], [34, 115], [34, 116], [73, 117], [73, 118], [75, 119], [38, 120], [78, 121], [78, 122], [39, 123], [39, 124], [39, 125], [80, 126], [80, 127], [40, 128], [81, 129], [81, 130], [41, 131], [41, 132], [41, 133], [82, 134], [82, 135], [84, 136], [44, 137], [45, 138], [45, 139], [85, 140], [85, 141], [46, 142], [86, 143], [86, 144], [47, 145], [47, 146], [47, 147], [47, 148], [47, 149], [47, 150], [87, 151], [87, 152], [18, 153], [90, 154], [20, 155], [92, 156], [93, 157], [26, 158], [26, 159], [26, 160], [97, 161], [27, 162], [27, 163], [100, 164], [102, 165], [102, 166], [102, 167], [29, 168], [30, 169], [31, 170], [31, 171], [31, 172], [105, 173], [106, 174], [32, 175], [32, 176], [32, 177], [32, 178], [110, 179], [33, 180], [33, 181], [113, 182], [114, 183], [34, 184], [34, 185], [34, 186], [34, 187], [118, 188], [119, 189], [119, 190], [119, 191], [36, 192], [37, 193], [38, 194], [38, 195], [38, 196], [122, 197], [123, 198], [39, 199], [39, 200], [39, 201], [39, 202], [127, 203], [40, 204], [40, 205], [130, 206], [131, 207], [41, 208], [41, 209], [41, 210], [41, 211], [135, 212], [43, 213], [45, 214], [139, 215], [45, 216], [45, 217], [141, 218], [46, 219], [46, 220], [46, 221], [144, 222], [145, 223], [47, 224], [47, 225], [47, 226], [47, 227], [47, 228], [47, 229], [47, 230], [47, 231], [47, 232], [47, 233], [152, 234], [154, 235], [60, 236], [156, 237], [93, 238], [159, 239], [163, 240], [168, 241], [169, 242], [171, 243], [175, 244], [177, 245], [178, 246], [184, 247], [186, 248], [187, 249], [192, 250], [193, 251], [195, 252], [199, 253], [201, 254], [202, 255], [208, 256], [210, 257], [211, 258], [136, 259], [136, 260], [136, 261], [84, 262], [213, 263], [139, 264], [215, 265], [215, 266], [216, 267], [220, 268], [221, 269], [224, 270], [226, 271], [227, 272], [228, 273], [229, 274], [230, 275], [231, 276], [232, 277], [233, 278], [237, 279], [237, 280], [238, 281], [241, 282], [241, 283], [242, 284], [242, 285], [250, 286], [250, 287], [251, 288], [251, 289], [136, 290], [136, 291], [259, 292], [260, 293], [262, 294], [139, 295], [139, 296], [139, 297], [266, 298], [279, 299], [279, 300], [281, 301], [281, 302], [158, 303], [162, 304], [282, 305], [282, 306], [284, 307], [284, 308], [170, 309], [176, 310], [180, 311], [185, 312], [286, 313], [286, 314], [288, 315], [288, 316], [194, 317], [200, 318], [204, 319], [209, 320], [290, 321], [291, 322], [292, 323], [292, 324], [260, 325], [294, 326], [214, 327], [296, 328], [297, 329], [219, 330], [225, 331], [301, 332], [259, 333], [323, 334], [324, 335], [325, 336], [326, 337], [333, 338], [333, 339], [336, 340], [336, 341], [337, 342], [337, 343], [295, 344], [338, 345], [340, 346], [342, 347], [342, 348], [345, 349], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 2], [14, 3], [15, 11], [16, 12], [17, 12], [18, 2], [19, 2], [20, 2], [21, 13], [22, 3], [23, 3], [24, 3], [25, 3], [26, 3], [27, 3], [28, 3], [29, 3], [30, 3], [31, 3], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 3], [41, 3], [42, 3], [43, 3], [44, 3], [45, 3], [46, 3], [47, 3], [48, 14], [49, 14], [50, 5], [51, 6], [52, 7], [53, 8], [54, 9], [55, 9], [56, 18], [57, 19], [58, 22], [59, 3], [60, 3], [61, 3], [62, 24], [63, 26], [64, 27], [65, 3], [66, 3], [67, 29], [68, 30], [69, 31], [70, 3], [71, 32], [72, 33], [73, 34], [74, 3], [75, 3], [76, 36], [77, 37], [78, 38], [79, 3], [80, 39], [81, 40], [82, 41], [83, 3], [84, 43], [85, 45], [86, 46], [87, 47], [88, 49], [89, 56], [90, 19], [91, 59], [92, 61], [93, 24], [94, 62], [95, 26], [96, 63], [97, 63], [98, 27], [99, 64], [100, 64], [101, 65], [102, 66], [103, 31], [104, 69], [105, 69], [106, 32], [107, 32], [108, 32], [109, 71], [110, 71], [111, 33], [112, 72], [113, 72], [114, 34], [115, 34], [116, 34], [117, 73], [118, 73], [119, 75], [120, 38], [121, 78], [122, 78], [123, 39], [124, 39], [125, 39], [126, 80], [127, 80], [128, 40], [129, 81], [130, 81], [131, 41], [132, 41], [133, 41], [134, 82], [135, 82], [136, 84], [137, 44], [138, 45], [139, 45], [140, 85], [141, 85], [142, 46], [143, 86], [144, 86], [145, 47], [146, 47], [147, 47], [148, 47], [149, 47], [150, 47], [151, 87], [152, 87], [153, 18], [154, 90], [155, 20], [156, 92], [157, 93], [158, 26], [159, 26], [160, 26], [161, 97], [162, 27], [163, 27], [164, 100], [165, 102], [166, 102], [167, 102], [168, 29], [169, 30], [170, 31], [171, 31], [172, 31], [173, 105], [174, 106], [175, 32], [176, 32], [177, 32], [178, 32], [179, 110], [180, 33], [181, 33], [182, 113], [183, 114], [184, 34], [185, 34], [186, 34], [187, 34], [188, 118], [189, 119], [190, 119], [191, 119], [192, 36], [193, 37], [194, 38], [195, 38], [196, 38], [197, 122], [198, 123], [199, 39], [200, 39], [201, 39], [202, 39], [203, 127], [204, 40], [205, 40], [206, 130], [207, 131], [208, 41], [209, 41], [210, 41], [211, 41], [212, 135], [213, 43], [214, 45], [215, 139], [216, 45], [217, 45], [218, 141], [219, 46], [220, 46], [221, 46], [222, 144], [223, 145], [224, 47], [225, 47], [226, 47], [227, 47], [228, 47], [229, 47], [230, 47], [231, 47], [232, 47], [233, 47], [234, 152], [235, 154], [236, 60], [237, 156], [238, 93], [239, 159], [240, 163], [241, 168], [242, 169], [243, 171], [244, 175], [245, 177], [246, 178], [247, 184], [248, 186], [249, 187], [250, 192], [251, 193], [252, 195], [253, 199], [254, 201], [255, 202], [256, 208], [257, 210], [258, 211], [259, 136], [260, 136], [261, 136], [262, 84], [263, 213], [264, 139], [265, 215], [266, 215], [267, 216], [268, 220], [269, 221], [270, 224], [271, 226], [272, 227], [273, 228], [274, 229], [275, 230], [276, 231], [277, 232], [278, 233], [279, 237], [280, 237], [281, 238], [282, 241], [283, 241], [284, 242], [285, 242], [286, 250], [287, 250], [288, 251], [289, 251], [290, 136], [291, 136], [292, 259], [293, 260], [294, 262], [295, 139], [296, 139], [297, 139], [298, 266], [299, 279], [300, 279], [301, 281], [302, 281], [303, 158], [304, 162], [305, 282], [306, 282], [307, 284], [308, 284], [309, 170], [310, 176], [311, 180], [312, 185], [313, 286], [314, 286], [315, 288], [316, 288], [317, 194], [318, 200], [319, 204], [320, 209], [321, 290], [322, 291], [323, 292], [324, 292], [325, 260], [326, 294], [327, 214], [328, 296], [329, 297], [330, 219], [331, 225], [332, 301], [333, 259], [334, 323], [335, 324], [336, 325], [337, 326], [338, 333], [339, 333], [340, 336], [341, 336], [342, 337], [343, 337], [344, 295], [345, 338], [346, 340], [347, 342], [348, 342], [349, 345], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349]]}, {"function_name": "jj_2_1", "code": "  final private boolean jj_2_1(int xla) {\n    jj_la = xla; jj_lastpos = jj_scanpos = token;\n    try { return !jj_3_1(); }\n    catch(LookaheadSuccess ls) { return true; }\n    finally { jj_save(0, xla); }", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "ASSIGN", "ASSIGN", "CALL", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [5, 10], [7, 11], [8, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 5], [11, 7], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "jj_3_1", "code": "  final private boolean jj_3_1() {\n    Token xsp;\n    xsp = jj_scanpos;\n    if (jj_3R_2()) {\n    jj_scanpos = xsp;\n    if (jj_3R_3()) return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [7, 8], [7, 9], [2, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 7], [9, 7], [10, 2], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "jj_3R_3", "code": "  final private boolean jj_3R_3() {\n    if (jj_scan_token(STAR)) return true;\n    if (jj_scan_token(COLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_3R_2", "code": "  final private boolean jj_3R_2() {\n    if (jj_scan_token(TERM)) return true;\n    if (jj_scan_token(COLON)) return true;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_la1_0", "code": "   private static void jj_la1_0() {\n      jj_la1_0 = new int[] {0x180,0x180,0xe00,0xe00,0x1f69f80,0x48000,0x10000,0x1f69000,0x1348000,0x80000,0x80000,0x10000,0x18000000,0x2000000,0x18000000,0x10000,0x80000000,0x20000000,0x80000000,0x10000,0x80000,0x10000,0x1f68000,};", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "jj_la1_1", "code": "   private static void jj_la1_1() {\n      jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x0,0x0,0x0,0x0,};", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "ReInit", "code": "  public void ReInit(CharStream stream) {\n    token_source.ReInit(stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 23; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [10, 16], [1, 17], [11, 18], [2, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [16, 10], [17, 1], [18, 11], [19, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "ReInit", "code": "  public void ReInit(QueryParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 23; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [10, 16], [1, 17], [11, 18], [2, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [16, 10], [17, 1], [18, 11], [19, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "jj_consume_token", "code": "  final private Token jj_consume_token(int kind) throws ParseException {\n    Token oldToken;\n    if ((oldToken = token).next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    if (token.kind == kind) {\n      jj_gen++;\n      if (++jj_gc > 100) {\n        jj_gc = 0;\n        for (int i = 0; i < jj_2_rtns.length; i++) {\n          JJCalls c = jj_2_rtns[i];\n          while (c != null) {\n            if (c.gen < jj_gen) c.first = null;\n            c = c.next;\n          }\n        }\n      }\n      return token;\n    }\n    token = oldToken;\n    jj_kind = kind;\n    throw generateParseException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [0, 10], [3, 11], [2, 12], [2, 13], [10, 14], [3, 15], [3, 16], [11, 17], [11, 18], [13, 19], [15, 20], [13, 21], [19, 22], [20, 23], [21, 24], [13, 25], [21, 26], [21, 27], [25, 28], [26, 29], [21, 30], [26, 31], [29, 32], [26, 33], [31, 34], [31, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 0], [11, 3], [12, 2], [13, 2], [14, 10], [15, 3], [16, 3], [17, 11], [18, 11], [19, 13], [20, 15], [21, 13], [22, 19], [23, 20], [24, 21], [25, 13], [26, 21], [27, 21], [28, 25], [29, 26], [30, 21], [31, 26], [32, 29], [33, 26], [34, 31], [35, 31], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "jj_scan_token", "code": "  final private boolean jj_scan_token(int kind) {\n    if (jj_scanpos == jj_lastpos) {\n      jj_la--;\n      if (jj_scanpos.next == null) {\n        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();\n      } else {\n        jj_lastpos = jj_scanpos = jj_scanpos.next;\n      }\n    } else {\n      jj_scanpos = jj_scanpos.next;\n    }\n    if (jj_rescan) {\n      int i = 0; Token tok = token;\n      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }\n      if (tok != null) jj_add_error_token(kind, i);\n    }\n    if (jj_scanpos.kind != kind) return true;\n    if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [3, 10], [3, 11], [5, 12], [9, 13], [9, 14], [10, 15], [4, 16], [4, 17], [4, 18], [4, 19], [5, 20], [14, 21], [16, 22], [17, 23], [5, 24], [20, 25], [16, 26], [22, 27], [23, 28], [23, 29], [19, 30], [25, 31], [17, 32], [29, 33], [20, 34], [20, 35], [34, 36], [35, 37], [37, 38], [38, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 3], [11, 3], [12, 5], [13, 9], [14, 9], [15, 10], [16, 4], [17, 4], [18, 4], [19, 4], [20, 5], [21, 14], [22, 16], [23, 17], [24, 5], [25, 20], [26, 16], [27, 22], [28, 23], [29, 23], [30, 19], [31, 25], [32, 17], [33, 29], [34, 20], [35, 20], [36, 34], [37, 35], [38, 37], [39, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getNextToken", "code": "  final public Token getNextToken() {\n    if (token.next != null) token = token.next;\n    else token = token.next = token_source.getNextToken();\n    jj_ntk = -1;\n    jj_gen++;\n    return token;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [2, 7], [4, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 2], [8, 4], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getToken", "code": "  final public Token getToken(int index) {\n    Token t = lookingAhead ? jj_scanpos : token;\n    for (int i = 0; i < index; i++) {\n      if (t.next != null) t = t.next;\n      else t = t.next = token_source.getNextToken();\n    }\n    return t;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [2, 9], [6, 10], [6, 11], [8, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 2], [10, 6], [11, 6], [12, 8], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "jj_ntk", "code": "  final private int jj_ntk() {\n    if ((jj_nt=token.next) == null)\n      return (jj_ntk = (token.next=token_source.getNextToken()).kind);\n    else\n      return (jj_ntk = jj_nt.kind);", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [4, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 4], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "jj_add_error_token", "code": "  private void jj_add_error_token(int kind, int pos) {\n    if (pos >= 100) return;\n    if (pos == jj_endpos + 1) {\n      jj_lasttokens[jj_endpos++] = kind;\n    } else if (jj_endpos != 0) {\n      jj_expentry = new int[jj_endpos];\n      for (int i = 0; i < jj_endpos; i++) {\n        jj_expentry[i] = jj_lasttokens[i];\n      }\n      boolean exists = false;\n      for (java.util.Enumeration e = jj_expentries.elements(); e.hasMoreElements();) {\n        int[] oldentry = (int[])(e.nextElement());\n        if (oldentry.length == jj_expentry.length) {\n          exists = true;\n          for (int i = 0; i < jj_expentry.length; i++) {\n            if (oldentry[i] != jj_expentry[i]) {\n              exists = false;\n              break;\n            }\n          }\n          if (exists) break;\n        }\n      }\n      if (!exists) jj_expentries.addElement(jj_expentry);\n      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LOOP", "VAR_DECL", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LOOP", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [5, 9], [6, 10], [8, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [9, 17], [1, 18], [10, 19], [12, 20], [14, 21], [16, 22], [5, 23], [12, 24], [20, 25], [13, 26], [14, 27], [14, 28], [15, 29], [27, 30], [14, 31], [16, 32], [16, 33], [27, 34], [27, 35], [24, 36], [34, 37], [35, 38], [27, 39], [28, 40], [36, 41], [36, 42], [35, 43], [39, 44], [43, 45], [35, 46], [43, 47], [43, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 5], [10, 6], [11, 8], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 9], [18, 1], [19, 10], [20, 12], [21, 14], [22, 16], [23, 5], [24, 12], [25, 20], [26, 13], [27, 14], [28, 14], [29, 15], [30, 27], [31, 14], [32, 16], [33, 16], [34, 27], [35, 27], [36, 24], [37, 34], [38, 35], [39, 27], [40, 28], [41, 36], [42, 36], [43, 35], [44, 39], [45, 43], [46, 35], [47, 43], [48, 43], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "generateParseException", "code": "  public ParseException generateParseException() {\n    jj_expentries.removeAllElements();\n    boolean[] la1tokens = new boolean[33];\n    for (int i = 0; i < 33; i++) {\n      la1tokens[i] = false;\n    }\n    if (jj_kind >= 0) {\n      la1tokens[jj_kind] = true;\n      jj_kind = -1;\n    }\n    for (int i = 0; i < 23; i++) {\n      if (jj_la1[i] == jj_gen) {\n        for (int j = 0; j < 32; j++) {\n          if ((jj_la1_0[i] & (1<<j)) != 0) {\n            la1tokens[j] = true;\n          }\n          if ((jj_la1_1[i] & (1<<j)) != 0) {\n            la1tokens[32+j] = true;\n          }\n        }\n      }\n    }\n    for (int i = 0; i < 33; i++) {\n      if (la1tokens[i]) {\n        jj_expentry = new int[1];\n        jj_expentry[0] = i;\n        jj_expentries.addElement(jj_expentry);\n      }\n    }\n    jj_endpos = 0;\n    jj_rescan_token();\n    jj_add_error_token(0, 0);\n    int[][] exptokseq = new int[jj_expentries.size()][];\n    for (int i = 0; i < jj_expentries.size(); i++) {\n      exptokseq[i] = (int[])jj_expentries.elementAt(i);\n    }\n    return new ParseException(token, exptokseq, tokenImage);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "LOOP", "IF", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [0, 12], [0, 13], [4, 14], [5, 15], [6, 16], [7, 17], [0, 18], [10, 19], [11, 20], [11, 21], [13, 22], [4, 23], [14, 24], [5, 25], [15, 26], [16, 27], [17, 28], [2, 29], [2, 30], [3, 31], [4, 32], [25, 33], [5, 34], [6, 35], [6, 36], [7, 37], [7, 38], [8, 39], [25, 40], [35, 41], [36, 42], [37, 43], [29, 44], [23, 45], [23, 46], [23, 47], [40, 48], [40, 49], [40, 50], [48, 51], [47, 52], [49, 53], [50, 54], [40, 55], [46, 56], [53, 57], [53, 58], [54, 59], [54, 60], [49, 61], [58, 62], [50, 63], [60, 64], [61, 65], [62, 66], [63, 67], [64, 68], [61, 69], [69, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 0], [13, 0], [14, 4], [15, 5], [16, 6], [17, 7], [18, 0], [19, 10], [20, 11], [21, 11], [22, 13], [23, 4], [24, 14], [25, 5], [26, 15], [27, 16], [28, 17], [29, 2], [30, 2], [31, 3], [32, 4], [33, 25], [34, 5], [35, 6], [36, 6], [37, 7], [38, 7], [39, 8], [40, 25], [41, 35], [42, 36], [43, 37], [44, 29], [45, 23], [46, 23], [47, 23], [48, 40], [49, 40], [50, 40], [51, 48], [52, 47], [53, 49], [54, 50], [55, 40], [56, 46], [57, 53], [58, 53], [59, 54], [60, 54], [61, 49], [62, 58], [63, 50], [64, 60], [65, 61], [66, 62], [67, 63], [68, 64], [69, 61], [70, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "enable_tracing", "code": "  final public void enable_tracing() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "disable_tracing", "code": "  final public void disable_tracing() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "jj_rescan_token", "code": "  final private void jj_rescan_token() {\n    jj_rescan = true;\n    for (int i = 0; i < 1; i++) {\n      JJCalls p = jj_2_rtns[i];\n      do {\n        if (p.gen > jj_gen) {\n          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;\n          switch (i) {\n            case 0: jj_3_1(); break;\n          }\n        }\n        p = p.next;\n      } while (p != null);\n    }\n    jj_rescan = false;", "ast_nodes": ["FUNC_DECL", "LOOP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "SWITCH", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 6], [1, 7], [3, 8], [4, 9], [6, 10], [1, 11], [6, 12], [10, 13], [6, 14], [12, 15], [12, 16], [12, 17], [12, 18], [16, 19], [16, 20], [17, 21], [16, 22], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 1], [7, 1], [8, 3], [9, 4], [10, 6], [11, 1], [12, 6], [13, 10], [14, 6], [15, 12], [16, 12], [17, 12], [18, 12], [19, 16], [20, 16], [21, 17], [22, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "jj_save", "code": "  final private void jj_save(int index, int xla) {\n    JJCalls p = jj_2_rtns[index];\n    while (p.gen > jj_gen) {\n      if (p.next == null) { p = p.next = new JJCalls(); break; }\n      p = p.next;\n    }\n    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [7, 9], [1, 10], [9, 11], [1, 12], [10, 13], [10, 14], [13, 15], [10, 16], [16, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 7], [10, 1], [11, 9], [12, 1], [13, 10], [14, 10], [15, 13], [16, 10], [17, 16], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "QueryParser", "code": "  public QueryParser(String f, Analyzer a) {\n    this(new FastCharStream(new StringReader(\"\")));\n    analyzer = a;\n    field = f;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "QueryParser", "code": "  public QueryParser(CharStream stream) {\n    token_source = new QueryParserTokenManager(stream);\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 23; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [9, 16], [10, 17], [1, 18], [11, 19], [2, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [16, 9], [17, 10], [18, 1], [19, 11], [20, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "QueryParser", "code": "  public QueryParser(QueryParserTokenManager tm) {\n    token_source = tm;\n    token = new Token();\n    jj_ntk = -1;\n    jj_gen = 0;\n    for (int i = 0; i < 23; i++) jj_la1[i] = -1;\n    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [8, 15], [10, 16], [1, 17], [11, 18], [2, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 8], [16, 10], [17, 1], [18, 11], [19, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 1}
{"sample_id": "camel-1.6-2860", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/builder/BuilderSupport.java", "language": "java", "name": "org.apache.camel.builder.BuilderSupport", "code": "public abstract class BuilderSupport {\n    private CamelContext context;\n    private ErrorHandlerBuilder errorHandlerBuilder;\n    private boolean inheritErrorHandler = true;\n\n    protected BuilderSupport(CamelContext context) {\n        this.context = context;\n    }\n\n    protected BuilderSupport(BuilderSupport parent) {\n        this.context = parent.getContext();\n        this.inheritErrorHandler = parent.inheritErrorHandler;\n        if (inheritErrorHandler && parent.errorHandlerBuilder != null) {\n            this.errorHandlerBuilder = parent.errorHandlerBuilder.copy();\n        }\n    }\n\n\n    /**\n     * Returns a value builder for the given header\n     */\n    public ValueBuilder header(String name) {\n        return Builder.header(name);\n    }\n\n    /**\n     * Returns a predicate and value builder for the inbound body on an exchange\n     */\n    public ValueBuilder body() {\n        return Builder.body();\n    }\n\n    /**\n     * Returns a predicate and value builder for the inbound message body as a\n     * specific type\n     */\n    public <T> ValueBuilder body(Class<T> type) {\n        return Builder.bodyAs(type);\n    }\n\n    /**\n     * Returns a predicate and value builder for the outbound body on an\n     * exchange\n     */\n    public ValueBuilder outBody() {\n        return Builder.outBody();\n    }\n\n    /**\n     * Returns a predicate and value builder for the outbound message body as a\n     * specific type\n     */\n    public <T> ValueBuilder outBody(Class<T> type) {\n        return Builder.outBodyAs(type);\n    }\n\n    /**\n     * Returns a predicate and value builder for the fault body on an\n     * exchange\n     */\n    public ValueBuilder faultBody() {\n        return Builder.faultBody();\n    }\n\n    /**\n     * Returns a predicate and value builder for the fault message body as a\n     * specific type\n     */\n    public <T> ValueBuilder faultBodyAs(Class<T> type) {\n        return Builder.faultBodyAs(type);\n    }\n\n\n    /**\n     * Returns a value builder for the given system property\n     */\n    public ValueBuilder systemProperty(String name) {\n        return Builder.systemProperty(name);\n    }\n\n    /**\n     * Returns a value builder for the given system property\n     */\n    public ValueBuilder systemProperty(String name, String defaultValue) {\n        return Builder.systemProperty(name, defaultValue);\n    }\n\n    /**\n     * Returns a constant expression value builder\n     */\n    public ValueBuilder constant(Object value) {\n        return Builder.constant(value);\n    }\n\n    /**\n     * Resolves the given URI to an endpoint\n     *\n     * @throws NoSuchEndpointException if the endpoint URI could not be resolved\n     */\n    public Endpoint endpoint(String uri) throws NoSuchEndpointException {\n        ObjectHelper.notNull(uri, \"uri\");\n        Endpoint endpoint = getContext().getEndpoint(uri);\n        if (endpoint == null) {\n            throw new NoSuchEndpointException(uri);\n        }\n        return endpoint;\n    }\n\n    /**\n     * Resolves the given URI to an endpoint of the specified type\n     *\n     * @throws NoSuchEndpointException if the endpoint URI could not be resolved\n     */\n    public <T extends Endpoint> T endpoint(String uri, Class<T> type) throws NoSuchEndpointException {\n        ObjectHelper.notNull(uri, \"uri\");\n        T endpoint = getContext().getEndpoint(uri, type);\n        if (endpoint == null) {\n            throw new NoSuchEndpointException(uri);\n        }\n        return endpoint;\n    }\n\n    /**\n     * Resolves the list of URIs into a list of {@link Endpoint} instances\n     *\n     * @throws NoSuchEndpointException if an endpoint URI could not be resolved\n     */\n    public List<Endpoint> endpoints(String... uris) throws NoSuchEndpointException {\n        List<Endpoint> endpoints = new ArrayList<Endpoint>();\n        for (String uri : uris) {\n            endpoints.add(endpoint(uri));\n        }\n        return endpoints;\n    }\n\n    /**\n     * Helper method to create a list of {@link Endpoint} instances\n     */\n    public List<Endpoint> endpoints(Endpoint... endpoints) {\n        List<Endpoint> answer = new ArrayList<Endpoint>();\n        answer.addAll(Arrays.asList(endpoints));\n        return answer;\n    }\n\n    /**\n     * Creates a disabled error handler for removing the default error handler\n     */\n    public NoErrorHandlerBuilder noErrorHandler() {\n        return new NoErrorHandlerBuilder();\n    }\n\n    /**\n     * Creates an error handler which just logs errors\n     */\n    public LoggingErrorHandlerBuilder loggingErrorHandler() {\n        return new LoggingErrorHandlerBuilder();\n    }\n\n    /**\n     * Creates an error handler which just logs errors\n     */\n    public LoggingErrorHandlerBuilder loggingErrorHandler(String log) {\n        return loggingErrorHandler(LogFactory.getLog(log));\n    }\n\n    /**\n     * Creates an error handler which just logs errors\n     */\n    public LoggingErrorHandlerBuilder loggingErrorHandler(Log log) {\n        return new LoggingErrorHandlerBuilder(log);\n    }\n\n    /**\n     * Creates an error handler which just logs errors\n     */\n    public LoggingErrorHandlerBuilder loggingErrorHandler(Log log, LoggingLevel level) {\n        return new LoggingErrorHandlerBuilder(log, level);\n    }\n\n    public DeadLetterChannelBuilder deadLetterChannel() {\n        return new DeadLetterChannelBuilder();\n    }\n\n    public DeadLetterChannelBuilder deadLetterChannel(String deadLetterUri) {\n        return deadLetterChannel(endpoint(deadLetterUri));\n    }\n\n    public DeadLetterChannelBuilder deadLetterChannel(Endpoint deadLetterEndpoint) {\n        return new DeadLetterChannelBuilder(new SendProcessor(deadLetterEndpoint));\n    }\n\n    public CamelContext getContext() {\n        return context;\n    }\n\n    public void setContext(CamelContext context) {\n        this.context = context;\n    }\n\n    public ErrorHandlerBuilder getErrorHandlerBuilder() {\n        if (errorHandlerBuilder == null) {\n            errorHandlerBuilder = createErrorHandlerBuilder();\n        }\n        return errorHandlerBuilder;\n    }\n\n    protected ErrorHandlerBuilder createErrorHandlerBuilder() {\n        if (isInheritErrorHandler()) {\n            return new DeadLetterChannelBuilder();\n        } else {\n            return new NoErrorHandlerBuilder();\n        }\n    }\n\n    /**\n     * Sets the error handler to use with processors created by this builder\n     */\n    public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder) {\n        this.errorHandlerBuilder = errorHandlerBuilder;\n    }\n\n    public boolean isInheritErrorHandler() {\n        return inheritErrorHandler;\n    }\n\n    public void setInheritErrorHandler(boolean inheritErrorHandler) {\n        this.inheritErrorHandler = inheritErrorHandler;", "functions": [{"function_name": "header", "code": "    public ValueBuilder header(String name) {\n        return Builder.header(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "body", "code": "    public ValueBuilder body() {\n        return Builder.body();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "body", "code": "    public <T> ValueBuilder body(Class<T> type) {\n        return Builder.bodyAs(type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "outBody", "code": "    public ValueBuilder outBody() {\n        return Builder.outBody();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "outBody", "code": "    public <T> ValueBuilder outBody(Class<T> type) {\n        return Builder.outBodyAs(type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "faultBody", "code": "    public ValueBuilder faultBody() {\n        return Builder.faultBody();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "faultBodyAs", "code": "    public <T> ValueBuilder faultBodyAs(Class<T> type) {\n        return Builder.faultBodyAs(type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "systemProperty", "code": "    public ValueBuilder systemProperty(String name) {\n        return Builder.systemProperty(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "systemProperty", "code": "    public ValueBuilder systemProperty(String name, String defaultValue) {\n        return Builder.systemProperty(name, defaultValue);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "constant", "code": "    public ValueBuilder constant(Object value) {\n        return Builder.constant(value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "endpoint", "code": "    public Endpoint endpoint(String uri) throws NoSuchEndpointException {\n        ObjectHelper.notNull(uri, \"uri\");\n        Endpoint endpoint = getContext().getEndpoint(uri);\n        if (endpoint == null) {\n            throw new NoSuchEndpointException(uri);\n        }\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [2, 7], [5, 8], [3, 9], [6, 10], [7, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 2], [8, 5], [9, 3], [10, 6], [11, 7], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "endpoint", "code": "    public <T extends Endpoint> T endpoint(String uri, Class<T> type) throws NoSuchEndpointException {\n        ObjectHelper.notNull(uri, \"uri\");\n        T endpoint = getContext().getEndpoint(uri, type);\n        if (endpoint == null) {\n            throw new NoSuchEndpointException(uri);\n        }\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [6, 9], [3, 10], [7, 11], [8, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 6], [10, 3], [11, 7], [12, 8], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "endpoints", "code": "    public List<Endpoint> endpoints(String... uris) throws NoSuchEndpointException {\n        List<Endpoint> endpoints = new ArrayList<Endpoint>();\n        for (String uri : uris) {\n            endpoints.add(endpoint(uri));\n        }\n        return endpoints;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "endpoints", "code": "    public List<Endpoint> endpoints(Endpoint... endpoints) {\n        List<Endpoint> answer = new ArrayList<Endpoint>();\n        answer.addAll(Arrays.asList(endpoints));\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "noErrorHandler", "code": "    public NoErrorHandlerBuilder noErrorHandler() {\n        return new NoErrorHandlerBuilder();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loggingErrorHandler", "code": "    public LoggingErrorHandlerBuilder loggingErrorHandler() {\n        return new LoggingErrorHandlerBuilder();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loggingErrorHandler", "code": "    public LoggingErrorHandlerBuilder loggingErrorHandler(String log) {\n        return loggingErrorHandler(LogFactory.getLog(log));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "loggingErrorHandler", "code": "    public LoggingErrorHandlerBuilder loggingErrorHandler(Log log) {\n        return new LoggingErrorHandlerBuilder(log);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "loggingErrorHandler", "code": "    public LoggingErrorHandlerBuilder loggingErrorHandler(Log log, LoggingLevel level) {\n        return new LoggingErrorHandlerBuilder(log, level);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "deadLetterChannel", "code": "    public DeadLetterChannelBuilder deadLetterChannel() {\n        return new DeadLetterChannelBuilder();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "deadLetterChannel", "code": "    public DeadLetterChannelBuilder deadLetterChannel(String deadLetterUri) {\n        return deadLetterChannel(endpoint(deadLetterUri));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "deadLetterChannel", "code": "    public DeadLetterChannelBuilder deadLetterChannel(Endpoint deadLetterEndpoint) {\n        return new DeadLetterChannelBuilder(new SendProcessor(deadLetterEndpoint));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getContext", "code": "    public CamelContext getContext() {\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setContext", "code": "    public void setContext(CamelContext context) {\n        this.context = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandlerBuilder", "code": "    public ErrorHandlerBuilder getErrorHandlerBuilder() {\n        if (errorHandlerBuilder == null) {\n            errorHandlerBuilder = createErrorHandlerBuilder();\n        }\n        return errorHandlerBuilder;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createErrorHandlerBuilder", "code": "    protected ErrorHandlerBuilder createErrorHandlerBuilder() {\n        if (isInheritErrorHandler()) {\n            return new DeadLetterChannelBuilder();\n        } else {\n            return new NoErrorHandlerBuilder();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setErrorHandlerBuilder", "code": "    public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder) {\n        this.errorHandlerBuilder = errorHandlerBuilder;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isInheritErrorHandler", "code": "    public boolean isInheritErrorHandler() {\n        return inheritErrorHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInheritErrorHandler", "code": "    public void setInheritErrorHandler(boolean inheritErrorHandler) {\n        this.inheritErrorHandler = inheritErrorHandler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "BuilderSupport", "code": "    protected BuilderSupport(CamelContext context) {\n        this.context = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "BuilderSupport", "code": "    protected BuilderSupport(BuilderSupport parent) {\n        this.context = parent.getContext();\n        this.inheritErrorHandler = parent.inheritErrorHandler;\n        if (inheritErrorHandler && parent.errorHandlerBuilder != null) {\n            this.errorHandlerBuilder = parent.errorHandlerBuilder.copy();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [3, 6], [5, 7], [1, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 3], [7, 5], [8, 1], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 1}
{"sample_id": "xalan-2.6-7687", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/res/XPATHErrorResources_zh_TW.java", "language": "java", "name": "org.apache.xpath.res.XPATHErrorResources_zh_TW", "code": "public class XPATHErrorResources_zh_TW extends ListResourceBundle\n{\n\n/*\n * General notes to translators:\n *\n * This file contains error and warning messages related to XPath Error\n * Handling.\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n *  8) The context node is the node in the document with respect to which an\n *     XPath expression is being evaluated.\n *\n *  9) An iterator is an object that traverses nodes in the tree, one at a time.\n *\n *  10) NCName is an XML term used to describe a name that does not contain a\n *     colon (a \"no-colon name\").\n *\n *  11) QName is an XML term meaning \"qualified name\".\n */\n\n  /** Field MAX_CODE          */\n\n  /** Field MAX_WARNING          */\n\n  /** Field MAX_OTHERS          */\n  public static final int MAX_OTHERS = 20;\n\n  /** Field MAX_MESSAGES          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * static variables\n   */\n  public static final String ERROR0000 = \"ERROR0000\";\n  public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH =\n         \"ER_CURRENT_NOT_ALLOWED_IN_MATCH\";\n  public static final String ER_CURRENT_TAKES_NO_ARGS =\n         \"ER_CURRENT_TAKES_NO_ARGS\";\n  public static final String ER_DOCUMENT_REPLACED = \"ER_DOCUMENT_REPLACED\";\n  public static final String ER_CONTEXT_HAS_NO_OWNERDOC =\n         \"ER_CONTEXT_HAS_NO_OWNERDOC\";\n  public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS =\n         \"ER_LOCALNAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS =\n         \"ER_NAMESPACEURI_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS =\n         \"ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NUMBER_HAS_TOO_MANY_ARGS =\n         \"ER_NUMBER_HAS_TOO_MANY_ARGS\";\n  public static final String ER_NAME_HAS_TOO_MANY_ARGS =\n         \"ER_NAME_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRING_HAS_TOO_MANY_ARGS =\n         \"ER_STRING_HAS_TOO_MANY_ARGS\";\n  public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS =\n         \"ER_STRINGLENGTH_HAS_TOO_MANY_ARGS\";\n  public static final String ER_TRANSLATE_TAKES_3_ARGS =\n         \"ER_TRANSLATE_TAKES_3_ARGS\";\n  public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG =\n         \"ER_UNPARSEDENTITYURI_TAKES_1_ARG\";\n  public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED =\n         \"ER_NAMESPACEAXIS_NOT_IMPLEMENTED\";\n  public static final String ER_UNKNOWN_AXIS = \"ER_UNKNOWN_AXIS\";\n  public static final String ER_UNKNOWN_MATCH_OPERATION =\n         \"ER_UNKNOWN_MATCH_OPERATION\";\n  public static final String ER_INCORRECT_ARG_LENGTH =\"ER_INCORRECT_ARG_LENGTH\";\n  public static final String ER_CANT_CONVERT_TO_NUMBER =\n         \"ER_CANT_CONVERT_TO_NUMBER\";\n  public static final String ER_CANT_CONVERT_TO_NODELIST =\n         \"ER_CANT_CONVERT_TO_NODELIST\";\n  public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST =\n         \"ER_CANT_CONVERT_TO_MUTABLENODELIST\";\n  public static final String ER_CANT_CONVERT_TO_TYPE =\"ER_CANT_CONVERT_TO_TYPE\";\n  public static final String ER_EXPECTED_MATCH_PATTERN =\n         \"ER_EXPECTED_MATCH_PATTERN\";\n  public static final String ER_COULDNOT_GET_VAR_NAMED =\n         \"ER_COULDNOT_GET_VAR_NAMED\";\n  public static final String ER_UNKNOWN_OPCODE = \"ER_UNKNOWN_OPCODE\";\n  public static final String ER_EXTRA_ILLEGAL_TOKENS =\"ER_EXTRA_ILLEGAL_TOKENS\";\n  public static final String ER_EXPECTED_DOUBLE_QUOTE =\n         \"ER_EXPECTED_DOUBLE_QUOTE\";\n  public static final String ER_EXPECTED_SINGLE_QUOTE =\n         \"ER_EXPECTED_SINGLE_QUOTE\";\n  public static final String ER_EMPTY_EXPRESSION = \"ER_EMPTY_EXPRESSION\";\n  public static final String ER_EXPECTED_BUT_FOUND = \"ER_EXPECTED_BUT_FOUND\";\n  public static final String ER_INCORRECT_PROGRAMMER_ASSERTION =\n         \"ER_INCORRECT_PROGRAMMER_ASSERTION\";\n  public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL =\n         \"ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL\";\n  public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG\";\n  public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG =\n         \"ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG\";\n  public static final String ER_PREDICATE_ILLEGAL_SYNTAX =\n         \"ER_PREDICATE_ILLEGAL_SYNTAX\";\n  public static final String ER_ILLEGAL_AXIS_NAME = \"ER_ILLEGAL_AXIS_NAME\";\n  public static final String ER_UNKNOWN_NODETYPE = \"ER_UNKNOWN_NODETYPE\";\n  public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED =\n         \"ER_PATTERN_LITERAL_NEEDS_BE_QUOTED\";\n  public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER =\n         \"ER_COULDNOT_BE_FORMATTED_TO_NUMBER\";\n  public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON =\n         \"ER_COULDNOT_CREATE_XMLPROCESSORLIAISON\";\n  public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP =\n         \"ER_DIDNOT_FIND_XPATH_SELECT_EXP\";\n  public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH =\n         \"ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH\";\n  public static final String ER_ERROR_OCCURED = \"ER_ERROR_OCCURED\";\n  public static final String ER_ILLEGAL_VARIABLE_REFERENCE =\n         \"ER_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String ER_AXES_NOT_ALLOWED = \"ER_AXES_NOT_ALLOWED\";\n  public static final String ER_KEY_HAS_TOO_MANY_ARGS =\n         \"ER_KEY_HAS_TOO_MANY_ARGS\";\n  public static final String ER_COUNT_TAKES_1_ARG = \"ER_COUNT_TAKES_1_ARG\";\n  public static final String ER_COULDNOT_FIND_FUNCTION =\n         \"ER_COULDNOT_FIND_FUNCTION\";\n  public static final String ER_UNSUPPORTED_ENCODING =\"ER_UNSUPPORTED_ENCODING\";\n  public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING =\n         \"ER_PROBLEM_IN_DTM_NEXTSIBLING\";\n  public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL =\n         \"ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL\";\n  public static final String ER_SETDOMFACTORY_NOT_SUPPORTED =\n         \"ER_SETDOMFACTORY_NOT_SUPPORTED\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_PARSE_NOT_SUPPORTED = \"ER_PARSE_NOT_SUPPORTED\";\n  public static final String ER_SAX_API_NOT_HANDLED = \"ER_SAX_API_NOT_HANDLED\";\npublic static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =\n         \"ER_IGNORABLE_WHITESPACE_NOT_HANDLED\";\n  public static final String ER_DTM_CANNOT_HANDLE_NODES =\n         \"ER_DTM_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_CANNOT_HANDLE_NODES =\n         \"ER_XERCES_CANNOT_HANDLE_NODES\";\n  public static final String ER_XERCES_PARSE_ERROR_DETAILS =\n         \"ER_XERCES_PARSE_ERROR_DETAILS\";\n  public static final String ER_XERCES_PARSE_ERROR = \"ER_XERCES_PARSE_ERROR\";\n  public static final String ER_INVALID_UTF16_SURROGATE =\n         \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_CANNOT_CREATE_URL = \"ER_CANNOT_CREATE_URL\";\n  public static final String ER_XPATH_READOBJECT = \"ER_XPATH_READOBJECT\";\n public static final String ER_FUNCTION_TOKEN_NOT_FOUND =\n         \"ER_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String ER_CANNOT_DEAL_XPATH_TYPE =\n         \"ER_CANNOT_DEAL_XPATH_TYPE\";\n  public static final String ER_NODESET_NOT_MUTABLE = \"ER_NODESET_NOT_MUTABLE\";\n  public static final String ER_NODESETDTM_NOT_MUTABLE =\n         \"ER_NODESETDTM_NOT_MUTABLE\";\n   /**  Variable not resolvable:   */\n  public static final String ER_VAR_NOT_RESOLVABLE = \"ER_VAR_NOT_RESOLVABLE\";\n   /** Null error handler  */\n public static final String ER_NULL_ERROR_HANDLER = \"ER_NULL_ERROR_HANDLER\";\n   /**  Programmer's assertion: unknown opcode  */\n  public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE =\n         \"ER_PROG_ASSERT_UNKNOWN_OPCODE\";\n   /**  0 or 1   */\n  public static final String ER_ZERO_OR_ONE = \"ER_ZERO_OR_ONE\";\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER =\n         \"ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n  public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = \"ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER\";\n   /**  fsb() not supported for XStringForChars   */\n  public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS =\n         \"ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS\";\n   /**  Could not find variable with the name of   */\n public static final String ER_COULD_NOT_FIND_VAR = \"ER_COULD_NOT_FIND_VAR\";\n   /**  XStringForChars can not take a string for an argument   */\n public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING =\n         \"ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING\";\n   /**  The FastStringBuffer argument can not be null   */\n public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL =\n         \"ER_FASTSTRINGBUFFER_CANNOT_BE_NULL\";\n   /**  2 or 3   */\n  public static final String ER_TWO_OR_THREE = \"ER_TWO_OR_THREE\";\n   /** Variable accessed before it is bound! */\n  public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND =\n         \"ER_VARIABLE_ACCESSED_BEFORE_BIND\";\n   /** XStringForFSB can not take a string for an argument! */\n public static final String ER_FSB_CANNOT_TAKE_STRING =\n         \"ER_FSB_CANNOT_TAKE_STRING\";\n   /** Error! Setting the root of a walker to null! */\n  public static final String ER_SETTING_WALKER_ROOT_TO_NULL =\n         \"ER_SETTING_WALKER_ROOT_TO_NULL\";\n   /** This NodeSetDTM can not iterate to a previous node! */\n  public static final String ER_NODESETDTM_CANNOT_ITERATE =\n         \"ER_NODESETDTM_CANNOT_ITERATE\";\n  /** This NodeSet can not iterate to a previous node! */\n public static final String ER_NODESET_CANNOT_ITERATE =\n         \"ER_NODESET_CANNOT_ITERATE\";\n  /** This NodeSetDTM can not do indexing or counting functions! */\n  public static final String ER_NODESETDTM_CANNOT_INDEX =\n         \"ER_NODESETDTM_CANNOT_INDEX\";\n  /** This NodeSet can not do indexing or counting functions! */\n  public static final String ER_NODESET_CANNOT_INDEX =\n         \"ER_NODESET_CANNOT_INDEX\";\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n  public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE =\n         \"ER_CANNOT_CALL_SETSHOULDCACHENODE\";\n  /** {0} only allows {1} arguments */\n public static final String ER_ONLY_ALLOWS = \"ER_ONLY_ALLOWS\";\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n  public static final String ER_UNKNOWN_STEP = \"ER_UNKNOWN_STEP\";\n  /** Problem with RelativeLocationPath */\n  public static final String ER_EXPECTED_REL_LOC_PATH =\n         \"ER_EXPECTED_REL_LOC_PATH\";\n  /** Problem with LocationPath */\n  public static final String ER_EXPECTED_LOC_PATH = \"ER_EXPECTED_LOC_PATH\";\n  /** Problem with Step */\n  public static final String ER_EXPECTED_LOC_STEP = \"ER_EXPECTED_LOC_STEP\";\n  /** Problem with NodeTest */\n  public static final String ER_EXPECTED_NODE_TEST = \"ER_EXPECTED_NODE_TEST\";\n  /** Expected step pattern */\n  public static final String ER_EXPECTED_STEP_PATTERN =\n        \"ER_EXPECTED_STEP_PATTERN\";\n  /** Expected relative path pattern */\n  public static final String ER_EXPECTED_REL_PATH_PATTERN =\n         \"ER_EXPECTED_REL_PATH_PATTERN\";\n  /** localname in QNAME should be a valid NCName */\n  /** prefix in QNAME should be a valid NCName */\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n  public static final String ER_CANT_CONVERT_TO_BOOLEAN =\n         \"ER_CANT_CONVERT_TO_BOOLEAN\";\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n  public static final String ER_CANT_CONVERT_TO_SINGLENODE =\n         \"ER_CANT_CONVERT_TO_SINGLENODE\";\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n  public static final String ER_CANT_GET_SNAPSHOT_LENGTH =\n         \"ER_CANT_GET_SNAPSHOT_LENGTH\";\n  /** Field ER_NON_ITERATOR_TYPE                */\n  public static final String ER_NON_ITERATOR_TYPE = \"ER_NON_ITERATOR_TYPE\";\n  /** Field ER_DOC_MUTATED                      */\n  public static final String ER_DOC_MUTATED = \"ER_DOC_MUTATED\";\n  public static final String ER_INVALID_XPATH_TYPE = \"ER_INVALID_XPATH_TYPE\";\n  public static final String ER_EMPTY_XPATH_RESULT = \"ER_EMPTY_XPATH_RESULT\";\n  public static final String ER_INCOMPATIBLE_TYPES = \"ER_INCOMPATIBLE_TYPES\";\n  public static final String ER_NULL_RESOLVER = \"ER_NULL_RESOLVER\";\n  public static final String ER_CANT_CONVERT_TO_STRING =\n         \"ER_CANT_CONVERT_TO_STRING\";\n  public static final String ER_NON_SNAPSHOT_TYPE = \"ER_NON_SNAPSHOT_TYPE\";\n  public static final String ER_WRONG_DOCUMENT = \"ER_WRONG_DOCUMENT\";\n  /* Note to translators:  The XPath expression cannot be evaluated with respect\n   * to this type of node.\n   */\n  /** Field ER_WRONG_NODETYPE                    */\n  public static final String ER_WRONG_NODETYPE = \"ER_WRONG_NODETYPE\";\n  public static final String ER_XPATH_ERROR = \"ER_XPATH_ERROR\";\n\n  public static final String WG_LOCALE_NAME_NOT_HANDLED =\n         \"WG_LOCALE_NAME_NOT_HANDLED\";\n  public static final String WG_PROPERTY_NOT_SUPPORTED =\n         \"WG_PROPERTY_NOT_SUPPORTED\";\n  public static final String WG_DONT_DO_ANYTHING_WITH_NS =\n         \"WG_DONT_DO_ANYTHING_WITH_NS\";\n  public static final String WG_SECURITY_EXCEPTION = \"WG_SECURITY_EXCEPTION\";\n  public static final String WG_QUO_NO_LONGER_DEFINED =\n         \"WG_QUO_NO_LONGER_DEFINED\";\n  public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST =\n         \"WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST\";\n  public static final String WG_FUNCTION_TOKEN_NOT_FOUND =\n         \"WG_FUNCTION_TOKEN_NOT_FOUND\";\n  public static final String WG_COULDNOT_FIND_FUNCTION =\n         \"WG_COULDNOT_FIND_FUNCTION\";\n  public static final String WG_CANNOT_MAKE_URL_FROM =\"WG_CANNOT_MAKE_URL_FROM\";\n  public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED =\n         \"WG_EXPAND_ENTITIES_NOT_SUPPORTED\";\n  public static final String WG_ILLEGAL_VARIABLE_REFERENCE =\n         \"WG_ILLEGAL_VARIABLE_REFERENCE\";\n  public static final String WG_UNSUPPORTED_ENCODING =\"WG_UNSUPPORTED_ENCODING\";\n\n\n\n  public static final Object[][] contents = {\n\n  /** Field ERROR0000          */\n\n\n  { \"ERROR0000\" , \"{0}\" },\n\n\n  /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH          */\n\n  { ER_CURRENT_NOT_ALLOWED_IN_MATCH, \"\\u5728\\u6bd4\\u5c0d\\u578b\\u6a23\\u4e2d\\u4e0d\\u5141\\u8a31\\u4f7f\\u7528 current() \\u51fd\\u6578\\uff01\" },\n\n  /** Field ER_CURRENT_TAKES_NO_ARGS          */\n\n  { ER_CURRENT_TAKES_NO_ARGS, \"current() \\u51fd\\u6578\\u4e0d\\u63a5\\u53d7\\u5f15\\u6578\\uff01\" },\n\n  /** Field ER_DOCUMENT_REPLACED          */\n  { ER_DOCUMENT_REPLACED,\n      \"document() \\u51fd\\u6578\\u5be6\\u4f5c\\u5df2\\u88ab org.apache.xalan.xslt.FuncDocument \\u53d6\\u4ee3\\uff01\"},\n\n\n  /** Field ER_CONTEXT_HAS_NO_OWNERDOC          */\n\n  { ER_CONTEXT_HAS_NO_OWNERDOC,\n      \"\\u74b0\\u5883\\u5b9a\\u7fa9\\u6c92\\u6709\\u64c1\\u6709\\u8005\\u6587\\u4ef6\\uff01\"},\n\n  /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_LOCALNAME_HAS_TOO_MANY_ARGS,\n      \"local-name() \\u6709\\u592a\\u591a\\u5f15\\u6578\\u3002\"},\n\n  /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,\n      \"namespace-uri() \\u6709\\u592a\\u591a\\u5f15\\u6578\\u3002\"},\n\n  /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS          */\n  { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,\n      \"normalize-space() \\u6709\\u592a\\u591a\\u5f15\\u6578\\u3002\"},\n\n  /** Field ER_NUMBER_HAS_TOO_MANY_ARGS          */\n\n  { ER_NUMBER_HAS_TOO_MANY_ARGS,\n      \"number() \\u6709\\u592a\\u591a\\u5f15\\u6578\\u3002\"},\n\n  /** Field ER_NAME_HAS_TOO_MANY_ARGS          */\n\n  { ER_NAME_HAS_TOO_MANY_ARGS,\n     \"name() \\u6709\\u592a\\u591a\\u5f15\\u6578\\u3002\"},\n\n  /** Field ER_STRING_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRING_HAS_TOO_MANY_ARGS,\n      \"string() \\u6709\\u592a\\u591a\\u5f15\\u6578\\u3002\"},\n\n  /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS          */\n\n  { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,\n      \"string-length() \\u6709\\u592a\\u591a\\u5f15\\u6578\\u3002\"},\n\n  /** Field ER_TRANSLATE_TAKES_3_ARGS          */\n\n  { ER_TRANSLATE_TAKES_3_ARGS,\n      \"translate() \\u51fd\\u6578\\u9700\\u8981 3 \\u500b\\u5f15\\u6578\\uff01\"},\n\n  /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */\n\n  { ER_UNPARSEDENTITYURI_TAKES_1_ARG,\n      \"unparsed-entity-uri \\u51fd\\u6578\\u53ea\\u9700\\u8981 1 \\u500b\\u5f15\\u6578\\uff01\"},\n\n  /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */\n\n  { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,\n      \"namespace axis \\u5c1a\\u672a\\u5be6\\u4f5c\\uff01\"},\n\n  /** Field ER_UNKNOWN_AXIS          */\n\n  { ER_UNKNOWN_AXIS,\n     \"\\u4e0d\\u660e\\u8ef8\\uff1a{0}\"},\n\n  /** Field ER_UNKNOWN_MATCH_OPERATION          */\n\n  { ER_UNKNOWN_MATCH_OPERATION,\n     \"\\u4e0d\\u660e\\u7684\\u6bd4\\u5c0d\\u4f5c\\u696d\\uff01\"},\n\n  /** Field ER_INCORRECT_ARG_LENGTH          */\n\n  { ER_INCORRECT_ARG_LENGTH,\n      \"processing-instruction() \\u7bc0\\u9ede\\u6e2c\\u8a66\\u7684\\u5f15\\u6578\\u9577\\u5ea6\\u4e0d\\u6b63\\u78ba\\uff01\"},\n\n  /** Field ER_CANT_CONVERT_TO_NUMBER          */\n\n  { ER_CANT_CONVERT_TO_NUMBER,\n      \"{0} \\u7121\\u6cd5\\u8f49\\u63db\\u70ba\\u6578\\u5b57\"},\n\n  /** Field ER_CANT_CONVERT_TO_NODELIST          */\n\n  { ER_CANT_CONVERT_TO_NODELIST,\n      \"{0} \\u7121\\u6cd5\\u8f49\\u63db\\u70ba NodeList\\uff01\"},\n\n  /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST          */\n\n  { ER_CANT_CONVERT_TO_MUTABLENODELIST,\n      \"{0} \\u7121\\u6cd5\\u8f49\\u63db\\u70ba NodeSetDTM\\uff01\"},\n\n  /** Field ER_CANT_CONVERT_TO_TYPE          */\n\n  { ER_CANT_CONVERT_TO_TYPE,\n      \"\\u7121\\u6cd5\\u5c07 {0} \\u8f49\\u63db\\u70ba type#{1}\"},\n\n  /** Field ER_EXPECTED_MATCH_PATTERN          */\n\n  { ER_EXPECTED_MATCH_PATTERN,\n      \"\\u539f\\u9810\\u671f\\u5728 getMatchScore \\u4e2d\\u6703\\u51fa\\u73fe\\u6bd4\\u5c0d\\u578b\\u6a23\\uff01\"},\n\n  /** Field ER_COULDNOT_GET_VAR_NAMED          */\n\n  { ER_COULDNOT_GET_VAR_NAMED,\n      \"\\u7121\\u6cd5\\u53d6\\u5f97\\u8b8a\\u6578\\u540d\\u7a31 {0}\"},\n\n  /** Field ER_UNKNOWN_OPCODE          */\n\n  { ER_UNKNOWN_OPCODE,\n     \"\\u932f\\u8aa4\\uff01\\u4e0d\\u660e\\u4f5c\\u696d\\u78bc\\uff1a{0}\"},\n\n  /** Field ER_EXTRA_ILLEGAL_TOKENS          */\n\n  { ER_EXTRA_ILLEGAL_TOKENS,\n     \"\\u984d\\u5916\\u7684\\u4e0d\\u5408\\u6cd5\\u8a18\\u865f\\uff1a{0}\"},\n\n  /** Field ER_EXPECTED_DOUBLE_QUOTE          */\n\n  { ER_EXPECTED_DOUBLE_QUOTE,\n      \"\\u62ec\\u932f\\u5f15\\u865f\\u7684\\u6587\\u5b57... \\u539f\\u9810\\u671f\\u70ba\\u96d9\\u5f15\\u865f\\uff01\"},\n\n  /** Field ER_EXPECTED_SINGLE_QUOTE          */\n\n  { ER_EXPECTED_SINGLE_QUOTE,\n      \"\\u62ec\\u932f\\u5f15\\u865f\\u7684\\u6587\\u5b57... \\u539f\\u9810\\u671f\\u70ba\\u55ae\\u5f15\\u865f\\uff01\"},\n\n  /** Field ER_EMPTY_EXPRESSION          */\n\n  { ER_EMPTY_EXPRESSION,\n     \"\\u7a7a\\u7684\\u8868\\u793a\\u5f0f\\uff01\"},\n\n  /** Field ER_EXPECTED_BUT_FOUND          */\n\n  { ER_EXPECTED_BUT_FOUND,\n     \"\\u539f\\u9810\\u671f\\u70ba {0}\\uff0c\\u537b\\u767c\\u73fe\\uff1a{1}\"},\n\n  /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */\n\n  { ER_INCORRECT_PROGRAMMER_ASSERTION,\n      \"\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u5047\\u8a2d(Programmer assertion)\\u4e0d\\u6b63\\u78ba\\uff01- {0}\"},\n\n  /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */\n\n  { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,\n      \"boolean(...) \\u5f15\\u6578\\u5728 19990709 XPath \\u521d\\u7a3f\\u4e2d\\u4e0d\\u518d\\u662f\\u53ef\\u9078\\u7528\\u7684\\u3002\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,\n      \"\\u627e\\u5230 ','\\uff0c\\u4f46\\u4e4b\\u524d\\u6c92\\u6709\\u5f15\\u6578\\uff01\"},\n\n  /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */\n\n  { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,\n      \"\\u627e\\u5230 ','\\uff0c\\u4f46\\u4e4b\\u5f8c\\u6c92\\u6709\\u5f15\\u6578\\uff01\"},\n\n  /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */\n\n  { ER_PREDICATE_ILLEGAL_SYNTAX,\n      \"'..[predicate]' \\u6216 '.[predicate]' \\u662f\\u4e0d\\u5408\\u6cd5\\u8a9e\\u6cd5\\u3002\\u8acb\\u6539\\u7528 'self::node()[predicate]'\\u3002\"},\n\n  /** Field ER_ILLEGAL_AXIS_NAME          */\n\n  { ER_ILLEGAL_AXIS_NAME,\n     \"\\u4e0d\\u5408\\u6cd5\\u8ef8\\u540d\\u7a31\\uff1a{0}\"},\n\n  /** Field ER_UNKNOWN_NODETYPE          */\n\n  { ER_UNKNOWN_NODETYPE,\n     \"\\u4e0d\\u660e\\u7bc0\\u9ede\\u985e\\u578b\\uff1a{0}\"},\n\n  /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */\n\n  { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n      \"\\u578b\\u6a23\\u6587\\u5b57 ({0}) \\u9700\\u8981\\u7528\\u5f15\\u865f\\u62ec\\u4f4f\\uff01\"},\n\n  /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */\n\n  { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,\n      \"{0} \\u7121\\u6cd5\\u683c\\u5f0f\\u5316\\u70ba\\u6578\\u5b57\\uff01\"},\n\n  /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */\n\n  { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,\n      \"\\u7121\\u6cd5\\u5efa\\u7acb XML TransformerFactory Liaison\\uff1a{0}\"},\n\n  /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */\n\n  { ER_DIDNOT_FIND_XPATH_SELECT_EXP,\n      \"\\u932f\\u8aa4\\uff01\\u6c92\\u6709\\u627e\\u5230 xpath select \\u8868\\u793a\\u5f0f (-select)\\u3002\"},\n\n  /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */\n\n  { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,\n      \"\\u932f\\u8aa4\\uff01\\u5728 OP_LOCATIONPATH \\u4e4b\\u5f8c\\u627e\\u4e0d\\u5230 ENDOP\"},\n\n  /** Field ER_ERROR_OCCURED          */\n\n  { ER_ERROR_OCCURED,\n     \"\\u767c\\u751f\\u932f\\u8aa4\\uff01\"},\n\n  /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { ER_ILLEGAL_VARIABLE_REFERENCE,\n      \"\\u63d0\\u4f9b\\u7d66\\u8b8a\\u6578\\u7684 VariableReference \\u8d85\\u51fa\\u74b0\\u5883\\u5b9a\\u7fa9\\u6216\\u6c92\\u6709\\u5b9a\\u7fa9\\uff01\\u540d\\u7a31 = {0}\"},\n\n  /** Field ER_AXES_NOT_ALLOWED          */\n\n  { ER_AXES_NOT_ALLOWED,\n      \"\\u6bd4\\u5c0d\\u578b\\u6a23\\u4e2d\\u53ea\\u63a5\\u53d7 child:: \\u4ee5\\u53ca attribute:: \\u5169\\u7a2e\\u8ef8\\uff01\\u4e0d\\u7576\\u7684\\u8ef8 = {0}\"},\n\n  /** Field ER_KEY_HAS_TOO_MANY_ARGS          */\n\n  { ER_KEY_HAS_TOO_MANY_ARGS,\n      \"key() \\u542b\\u6709\\u4e0d\\u6b63\\u78ba\\u5f15\\u6578\\u6578\\u76ee\\u3002\"},\n\n  /** Field ER_COUNT_TAKES_1_ARG          */\n\n  { ER_COUNT_TAKES_1_ARG,\n      \"count \\u51fd\\u6578\\u53ea\\u9700\\u8981\\u4e00\\u500b\\u5f15\\u6578\\uff01\"},\n\n  /** Field ER_COULDNOT_FIND_FUNCTION          */\n\n  { ER_COULDNOT_FIND_FUNCTION,\n     \"\\u627e\\u4e0d\\u5230\\u51fd\\u6578\\uff1a{0}\"},\n\n  /** Field ER_UNSUPPORTED_ENCODING          */\n\n  { ER_UNSUPPORTED_ENCODING,\n     \"\\u4e0d\\u652f\\u63f4\\u7de8\\u78bc\\uff1a{0}\"},\n\n  /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */\n\n  { ER_PROBLEM_IN_DTM_NEXTSIBLING,\n      \"getNextSibling \\u6642\\u5728 DTM \\u767c\\u751f\\u554f\\u984c... \\u5617\\u8a66\\u56de\\u5fa9\"},\n\n  /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */\n\n  { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,\n      \"\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u932f\\u8aa4\\uff1a\\u7121\\u6cd5\\u5beb\\u5165 EmptyNodeList\\u3002\"},\n\n  /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */\n\n  { ER_SETDOMFACTORY_NOT_SUPPORTED,\n      \"setDOMFactory \\u4e0d\\u53d7 XPathContext \\u652f\\u63f4\\uff01\"},\n\n  /** Field ER_PREFIX_MUST_RESOLVE          */\n\n  { ER_PREFIX_MUST_RESOLVE,\n      \"\\u5b57\\u9996\\u5fc5\\u9808\\u89e3\\u6790\\u70ba\\u540d\\u7a31\\u7a7a\\u9593\\uff1a{0}\"},\n\n  /** Field ER_PARSE_NOT_SUPPORTED          */\n\n  { ER_PARSE_NOT_SUPPORTED,\n      \"\\u5728 XPathContext \\u4e2d\\u4e0d\\u652f\\u63f4\\u5256\\u6790\\uff08InputSource \\u539f\\u59cb\\u6a94\\uff09\\uff01\\u7121\\u6cd5\\u958b\\u555f {0}\"},\n\n  /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */\n\n\n  /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */\n\n\n  /** Field ER_SAX_API_NOT_HANDLED          */\n\n  { ER_SAX_API_NOT_HANDLED,\n      \"SAX API character(char ch[]... \\u4e0d\\u80fd\\u88ab DTM \\u8655\\u7406\\uff01\"},\n\n  /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */\n\n  { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,\n      \"ignorableWhitespace(char ch[]... \\u4e0d\\u80fd\\u88ab DTM \\u8655\\u7406\\uff01\"},\n\n  /** Field ER_DTM_CANNOT_HANDLE_NODES          */\n\n  { ER_DTM_CANNOT_HANDLE_NODES,\n      \"DTMLiaison \\u4e0d\\u80fd\\u8655\\u7406 {0} \\u985e\\u578b\\u7684\\u7bc0\\u9ede\"},\n\n  /** Field ER_XERCES_CANNOT_HANDLE_NODES          */\n\n  { ER_XERCES_CANNOT_HANDLE_NODES,\n      \"DOM2Helper \\u4e0d\\u80fd\\u8655\\u7406 {0} \\u985e\\u578b\\u7684\\u7bc0\\u9ede\"},\n\n  /** Field ER_XERCES_PARSE_ERROR_DETAILS          */\n\n  { ER_XERCES_PARSE_ERROR_DETAILS,\n      \"DOM2Helper.parse \\u932f\\u8aa4\\uff1aSystemID - {0} \\u884c - {1}\"},\n\n  /** Field ER_XERCES_PARSE_ERROR          */\n\n  { ER_XERCES_PARSE_ERROR,\n     \"DOM2Helper.parse \\u932f\\u8aa4\"},\n\n  /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */\n\n\n  /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */\n\n\n  /** Field ER_INVALID_UTF16_SURROGATE          */\n\n  { ER_INVALID_UTF16_SURROGATE,\n      \"\\u5075\\u6e2c\\u5230\\u7121\\u6548\\u7684 UTF-16 \\u4ee3\\u7406\\uff1a{0}?\"},\n\n  /** Field ER_OIERROR          */\n\n  { ER_OIERROR,\n     \"IO \\u932f\\u8aa4\"},\n\n  /** Field ER_CANNOT_CREATE_URL          */\n\n  { ER_CANNOT_CREATE_URL,\n     \"\\u7121\\u6cd5\\u91dd\\u5c0d\\uff1a{0} \\u5efa\\u7acb URL\"},\n\n  /** Field ER_XPATH_READOBJECT          */\n\n  { ER_XPATH_READOBJECT,\n     \"\\u4f4d\\u65bc XPath.readObject\\uff1a{0}\"},\n\n  /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */\n\n  { ER_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\u627e\\u4e0d\\u5230\\u51fd\\u6578\\u8a18\\u865f\\u3002\"},\n\n   /**  Argument 'localName' is null  */\n\n\n   /**  Can not deal with XPath type:   */\n\n  { ER_CANNOT_DEAL_XPATH_TYPE,\n       \"\\u7121\\u6cd5\\u8655\\u7406 XPath \\u985e\\u578b\\uff1a{0}\"},\n\n   /**  This NodeSet is not mutable  */\n\n  { ER_NODESET_NOT_MUTABLE,\n       \"\\u6b64 NodeSet \\u4e0d\\u662f\\u6613\\u8b8a\\u7684\"},\n\n   /**  This NodeSetDTM is not mutable  */\n\n  { ER_NODESETDTM_NOT_MUTABLE,\n       \"\\u6b64 NodeSetDTM \\u4e0d\\u662f\\u6613\\u8b8a\\u7684\"},\n\n   /**  Variable not resolvable:   */\n\n  { ER_VAR_NOT_RESOLVABLE,\n        \"\\u8b8a\\u6578\\u7121\\u6cd5\\u89e3\\u6790\\uff1a{0}\"},\n\n   /** Null error handler  */\n\n  { ER_NULL_ERROR_HANDLER,\n        \"\\u7a7a\\u503c\\u932f\\u8aa4\\u8655\\u7406\\u7a0b\\u5f0f\"},\n\n   /**  Programmer's assertion: unknown opcode  */\n\n  { ER_PROG_ASSERT_UNKNOWN_OPCODE,\n       \"\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u7684\\u5047\\u8a2d(assertion)\\uff1a\\u4e0d\\u660e opcode\\uff1a{0}\"},\n\n   /**  0 or 1   */\n\n  { ER_ZERO_OR_ONE,\n       \"0 \\u6216 1\"},\n\n\n   /**  rtf() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"rtf() \\u4e0d\\u53d7 XRTreeFragSelectWrapper \\u652f\\u63f4\"},\n\n   /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */\n\n  { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,\n       \"asNodeIterator() \\u4e0d\\u53d7 XRTreeFragSelectWrapper \\u652f\\u63f4\"},\n\n   /**  fsb() not supported for XStringForChars   */\n\n  { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,\n       \"fsb() \\u4e0d\\u53d7 XStringForChars \\u652f\\u63f4\"},\n\n   /**  Could not find variable with the name of   */\n\n  { ER_COULD_NOT_FIND_VAR,\n      \"\\u627e\\u4e0d\\u5230\\u540d\\u7a31\\u70ba {0} \\u7684\\u8b8a\\u6578\"},\n\n   /**  XStringForChars can not take a string for an argument   */\n\n  { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,\n      \"XStringForChars \\u4e0d\\u63a5\\u53d7\\u5b57\\u4e32\\u4f5c\\u70ba\\u5f15\\u6578\"},\n\n   /**  The FastStringBuffer argument can not be null   */\n\n  { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,\n      \"FastStringBuffer \\u5f15\\u6578\\u4e0d\\u53ef\\u70ba\\u7a7a\\u503c\"},\n\n  /* MANTIS_XALAN CHANGE: BEGIN */\n   /**  2 or 3   */\n\n  { ER_TWO_OR_THREE,\n       \"2 \\u6216 3\"},\n\n   /** Variable accessed before it is bound! */\n\n  { ER_VARIABLE_ACCESSED_BEFORE_BIND,\n       \"\\u8b8a\\u6578\\u5728\\u9023\\u7d50\\u4e4b\\u524d\\u5373\\u88ab\\u5b58\\u53d6\\uff01\"},\n\n   /** XStringForFSB can not take a string for an argument! */\n\n  { ER_FSB_CANNOT_TAKE_STRING,\n       \"XStringForFSB \\u4e0d\\u53ef\\u4f7f\\u7528\\u5b57\\u4e32\\u4f5c\\u70ba\\u5f15\\u6578\\uff01\"},\n\n   /** Error! Setting the root of a walker to null! */\n\n  { ER_SETTING_WALKER_ROOT_TO_NULL,\n       \"\\n!!!! \\u932f\\u8aa4\\uff01\\u8a2d\\u5b9a Walker \\u7684\\u6839\\u76ee\\u9304\\u70ba\\u7a7a\\u503c!!!\"},\n\n   /** This NodeSetDTM can not iterate to a previous node! */\n\n  { ER_NODESETDTM_CANNOT_ITERATE,\n       \"\\u6b64 NodeSetDTM \\u4e0d\\u53ef\\u758a\\u4ee3\\u70ba\\u524d\\u4e00\\u500b\\u7bc0\\u9ede\\uff01\"},\n\n  /** This NodeSet can not iterate to a previous node! */\n\n  { ER_NODESET_CANNOT_ITERATE,\n       \"\\u6b64 NodeSet \\u4e0d\\u53ef\\u758a\\u4ee3\\u70ba\\u524d\\u4e00\\u500b\\u7bc0\\u9ede\\uff01\"},\n\n  /** This NodeSetDTM can not do indexing or counting functions! */\n\n  { ER_NODESETDTM_CANNOT_INDEX,\n       \"\\u6b64 NodeSetDTM \\u4e0d\\u53ef\\u57f7\\u884c\\u6aa2\\u7d22\\u6216\\u8a08\\u6578\\u529f\\u80fd\\uff01\"},\n\n  /** This NodeSet can not do indexing or counting functions! */\n\n  { ER_NODESET_CANNOT_INDEX,\n       \"\\u6b64 NodeSet \\u4e0d\\u53ef\\u57f7\\u884c\\u6aa2\\u7d22\\u6216\\u8a08\\u6578\\u529f\\u80fd\\uff01\"},\n\n  /** Can not call setShouldCacheNodes after nextNode has been called! */\n\n  { ER_CANNOT_CALL_SETSHOULDCACHENODE,\n       \"\\u5728\\u547c\\u53eb nextNode \\u4e4b\\u5f8c\\u4e0d\\u80fd\\u547c\\u53eb setShouldCacheNodes\\u3002\"},\n\n  /** {0} only allows {1} arguments */\n\n  { ER_ONLY_ALLOWS,\n       \"{0} \\u53ea\\u5141\\u8a31 {1} \\u5f15\\u6578\"},\n\n  /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */\n\n  { ER_UNKNOWN_STEP,\n       \"\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u5c0d\\u65bc getNextStepPos \\u7684\\u5047\\u8a2d(assertion)\\uff1a\\u4e0d\\u660e stepType\\uff1a{0}\"},\n\n\n  /** Problem with RelativeLocationPath */\n\n  { ER_EXPECTED_REL_LOC_PATH},\n\n\n  /** Problem with LocationPath */\n\n  { ER_EXPECTED_LOC_PATH,\n       \"\\u5fc5\\u9808\\u662f\\u4f4d\\u7f6e\\u8def\\u5f91\\uff0c\\u537b\\u9047\\u5230\\u4e0b\\u5217\\u8a18\\u865f\\u003a  {0}\"},\n\n\n  /** Problem with Step */\n\n  { ER_EXPECTED_LOC_STEP},\n\n\n  /** Problem with NodeTest */\n\n  { ER_EXPECTED_NODE_TEST,\n       \"\\u539f\\u9810\\u671f\\u70ba\\u7b26\\u5408 NCName:* \\u6216 QName \\u7684 node test\\u3002\"},\n\n\n  /** Expected step pattern */\n\n  { ER_EXPECTED_STEP_PATTERN,\n       \"\\u539f\\u9810\\u671f\\u70ba step pattern\\uff0c\\u4f46\\u537b\\u9047\\u5230 '/'\\u3002\"},\n\n\n  /** Expected relative path pattern */\n\n  { ER_EXPECTED_REL_PATH_PATTERN,\n       \"\\u539f\\u9810\\u671f\\u70ba\\u76f8\\u5c0d\\u7684\\u8def\\u5f91\\u578b\\u6a23\\u3002\"},\n\n\n  /** localname in QNAME should be a valid NCName */\n\n\n\n  /** prefix in QNAME should be a valid NCName */\n\n\n\n  /** Field ER_CANT_CONVERT_TO_BOOLEAN          */\n\n  { ER_CANT_CONVERT_TO_BOOLEAN,\n       \"\\u7121\\u6cd5\\u5c07 {0} \\u8f49\\u63db\\u70ba boolean\\u3002\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_SINGLENODE       */\n\n  { ER_CANT_CONVERT_TO_SINGLENODE,\n       \"\\u7121\\u6cd5\\u5c07 {0} \\u8f49\\u63db\\u70ba\\u55ae\\u4e00\\u7bc0\\u9ede\\u3002\\u6b64\\u53d6\\u5f97\\u5143\\u9069\\u7528\\u65bc ANY_UNORDERED_NODE_TYPE \\u548c FIRST_ORDERED_NODE_TYPE \\u5169\\u7a2e\\u985e\\u578b\\u3002\"},\n\n\n  /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */\n\n  { ER_CANT_GET_SNAPSHOT_LENGTH,\n       \"\\u7121\\u6cd5\\u53d6\\u5f97\\u985e\\u578b {0} \\u7684\\u77ac\\u9593\\u5feb\\u7167\\u9577\\u5ea6\\u3002\\u6b64\\u53d6\\u5f97\\u5143\\u9069\\u7528\\u65bc UNORDERED_NODE_SNAPSHOT_TYPE \\u548c ORDERED_NODE_SNAPSHOT_TYPE \\u5169\\u7a2e\\u985e\\u578b\\u3002\"},\n\n  /** Field ER_NON_ITERATOR_TYPE                */\n\n  { ER_NON_ITERATOR_TYPE,\n       \"\\u7121\\u6cd5\\u758a\\u4ee3\\u975e\\u758a\\u4ee3\\u985e\\u578b\\uff1a{0}\"},\n\n\n  /** Field ER_DOC_MUTATED                      */\n\n  { ER_DOC_MUTATED,\n       \"\\u81ea\\u50b3\\u56de\\u7d50\\u679c\\u4e4b\\u5f8c\\uff0c\\u6587\\u4ef6\\u5df2\\u7522\\u751f\\u8b8a\\u5316\\u3002\\u91cd\\u8907\\u9805\\u76ee\\u7121\\u6548\\u3002\"},\n\n  /** Field ER_INVALID_XPATH_TYPE               */\n\n  { ER_INVALID_XPATH_TYPE,\n       \"XPath \\u985e\\u578b\\u5f15\\u6578 {0} \\u7121\\u6548\"},\n\n  /** Field ER_EMPTY_XPATH_RESULT                */\n\n  { ER_EMPTY_XPATH_RESULT,\n       \"XPath \\u7d50\\u679c\\u7269\\u4ef6\\u7a7a\\u767d\"},\n\n  /** Field ER_INCOMPATIBLE_TYPES                */\n\n  { ER_INCOMPATIBLE_TYPES,\n       \"\\u50b3\\u56de\\u985e\\u578b\\uff1a{0} \\u7121\\u6cd5\\u5f37\\u5236\\u6210\\u70ba\\u6307\\u5b9a\\u7684\\u985e\\u578b\\uff1a{1}\"},\n\n  /** Field ER_NULL_RESOLVER                     */\n\n  { ER_NULL_RESOLVER,\n       \"\\u7121\\u6cd5\\u89e3\\u6790\\u542b\\u7a7a\\u503c\\u5b57\\u9996\\u89e3\\u6790\\u5668\\u7684\\u5b57\\u9996\\u3002\"},\n\n\n  /** Field ER_CANT_CONVERT_TO_STRING            */\n\n  { ER_CANT_CONVERT_TO_STRING,\n       \"\\u7121\\u6cd5\\u5c07 {0} \\u8f49\\u63db\\u70ba\\u5b57\\u4e32\\u3002\"},\n\n\n  /** Field ER_NON_SNAPSHOT_TYPE                 */\n\n  { ER_NON_SNAPSHOT_TYPE,\n       \"\\u7121\\u6cd5\\u547c\\u53eb snapshotItem \\u985e\\u578b\\uff1a{0}\\u3002\\u6b64\\u65b9\\u6cd5\\u9069\\u7528\\u65bc UNORDERED_NODE_SNAPSHOT_TYPE \\u548c ORDERED_NODE_SNAPSHOT_TYPE \\u5169\\u7a2e\\u985e\\u578b\\u3002\"},\n\n\n  /** Field ER_WRONG_DOCUMENT                    */\n\n  { ER_WRONG_DOCUMENT,\n       \"\\u74b0\\u5883\\u5b9a\\u7fa9\\u7bc0\\u9ede\\u4e0d\\u5c6c\\u65bc\\u548c\\u6b64 XPathEvaluator \\u9023\\u7d50\\u7684\\u6587\\u4ef6\\u3002\"},\n\n  /** Field ER_WRONG_NODETYPE                    */\n\n  { ER_WRONG_NODETYPE,\n       \"\\u74b0\\u5883\\u5b9a\\u7fa9\\u7bc0\\u9ede\\u985e\\u578b\\u672a\\u53d7\\u652f\\u63f4\\u3002\"},\n\n  /** Field ER_XPATH_ERROR                       */\n\n  { ER_XPATH_ERROR,\n       \"XPath \\u767c\\u751f\\u4e0d\\u660e\\u932f\\u8aa4\\u3002\"},\n\n\n\n  /** Field WG_LOCALE_NAME_NOT_HANDLED          */\n\n  { WG_LOCALE_NAME_NOT_HANDLED,\n      \"format-number \\u51fd\\u6578\\u4e2d\\u7684\\u8a9e\\u8a00\\u74b0\\u5883\\u540d\\u7a31\\u5c1a\\u672a\\u8655\\u7406\\uff01\"},\n\n  /** Field WG_PROPERTY_NOT_SUPPORTED          */\n\n  { WG_PROPERTY_NOT_SUPPORTED,\n      \"XSL \\u5167\\u5bb9\\u672a\\u53d7\\u652f\\u63f4\\uff1a{0}\"},\n\n  /** Field WG_DONT_DO_ANYTHING_WITH_NS          */\n\n  { WG_DONT_DO_ANYTHING_WITH_NS,\n      \"\\u76ee\\u524d\\u4e0d\\u8981\\u5c0d\\u5167\\u5bb9\\uff1a{1} \\u4e2d\\u7684\\u540d\\u7a31\\u7a7a\\u9593 {0} \\u505a\\u4efb\\u4f55\\u52d5\\u4f5c\"},\n\n  /** Field WG_SECURITY_EXCEPTION          */\n\n  { WG_SECURITY_EXCEPTION,\n      \"\\u5617\\u8a66\\u5b58\\u53d6 XSL \\u7cfb\\u7d71\\u5167\\u5bb9\\uff1a{0} \\u6642\\u767c\\u751f SecurityException\"},\n\n  /** Field WG_QUO_NO_LONGER_DEFINED          */\n\n  { WG_QUO_NO_LONGER_DEFINED,\n      \"XPath \\u4e2d\\u5df2\\u4e0d\\u518d\\u5b9a\\u7fa9\\u820a\\u8a9e\\u6cd5\\uff1aquo(...)\\u3002\"},\n\n  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */\n\n  { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,\n      \"XPath \\u9700\\u8981\\u884d\\u751f\\u7269\\u4ef6\\u4f86\\u5be6\\u4f5c nodeTest\\uff01\"},\n\n  /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */\n\n  { WG_FUNCTION_TOKEN_NOT_FOUND,\n      \"\\u627e\\u4e0d\\u5230\\u51fd\\u6578\\u8a18\\u865f\\u3002\"},\n\n  /** Field WG_COULDNOT_FIND_FUNCTION          */\n\n  { WG_COULDNOT_FIND_FUNCTION,\n      \"\\u627e\\u4e0d\\u5230\\u51fd\\u6578\\uff1a{0}\"},\n\n  /** Field WG_CANNOT_MAKE_URL_FROM          */\n\n  { WG_CANNOT_MAKE_URL_FROM,\n      \"\\u7121\\u6cd5\\u5f9e\\uff1a{0} \\u7522\\u751f URL\"},\n\n  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */\n\n  { WG_EXPAND_ENTITIES_NOT_SUPPORTED,\n      \"-E \\u9078\\u9805\\u4e0d\\u53d7 DTM \\u5256\\u6790\\u5668\\u652f\\u63f4\"},\n\n  /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */\n\n  { WG_ILLEGAL_VARIABLE_REFERENCE,\n      \"\\u63d0\\u4f9b\\u7d66\\u8b8a\\u6578\\u7684 VariableReference \\u8d85\\u51fa\\u74b0\\u5883\\u5b9a\\u7fa9\\u6216\\u6c92\\u6709\\u5b9a\\u7fa9\\uff01\\u540d\\u7a31 = {0}\"},\n\n  /** Field WG_UNSUPPORTED_ENCODING          */\n\n  { WG_UNSUPPORTED_ENCODING,\n     \"\\u4e0d\\u652f\\u63f4\\u7de8\\u78bc\\uff1a{0}\"},\n\n\n\n  { \"ui_language\", \"zh\"},\n  { \"help_language\", \"zh\"},\n  { \"language\", \"zh\"},\n  { \"BAD_CODE\", \"createMessage \\u7684\\u53c3\\u6578\\u8d85\\u51fa\\u754c\\u9650\"},\n  { \"FORMAT_FAILED\", \"\\u5728 messageFormat \\u547c\\u53eb\\u671f\\u9593\\u64f2\\u51fa\\u7570\\u5e38\"},\n  { \"version\", \">>>>>>> Xalan \\u7248\\u672c\"},\n  { \"version2\", \"<<<<<<<\"},\n  { \"yes\", \"yes\"},\n  { \"line\", \"\\u884c\\u865f\"},\n  { \"column\", \"\\u6b04\\u865f\"},\n  { \"xsldone\", \"XSLProcessor\\uff1a\\u5b8c\\u6210\"},\n  { \"xpath_option\", \"xpath \\u9078\\u9805\\uff1a\"},\n  { \"optionIN\", \"[-in inputXMLURL]\"},\n  { \"optionSelect\", \"[-select xpath \\u8868\\u793a\\u5f0f]\"},\n  { \"optionMatch\", \"[-match \\u7b26\\u5408\\u578b\\u6a23\\uff08\\u7528\\u65bc\\u6bd4\\u5c0d\\u8a3a\\u65b7\\uff09]\"},\n  { \"optionAnyExpr\", \"\\u6216\\u53ea\\u6709\\u4e00\\u500b xpath \\u8868\\u793a\\u5f0f\\u6703\\u57f7\\u884c\\u8a3a\\u65b7\\u50be\\u51fa\"},\n  { \"noParsermsg1\", \"XSL \\u7a0b\\u5e8f\\u6c92\\u6709\\u9806\\u5229\\u5b8c\\u6210\\u3002\"},\n  { \"noParsermsg2\", \"** \\u627e\\u4e0d\\u5230\\u5256\\u6790\\u5668 **\"},\n  { \"noParsermsg3\", \"\\u8acb\\u6aa2\\u67e5\\u985e\\u5225\\u8def\\u5f91\\u3002\"},\n  { \"noParsermsg4\", \"\\u5982\\u679c\\u60a8\\u6c92\\u6709 IBM \\u7684 XML Parser for Java\\uff0c\\u53ef\\u81ea\\u4ee5\\u4e0b\\u7db2\\u5740\\u4e0b\\u8f09\"},\n  { \"gtone\", \">1\" },\n  { \"zero\", \"0\" },\n  { \"one\", \"1\" },\n  { \"two\" , \"2\" },\n  { \"three\", \"3\" }\n\n  };\n\n\n\n  /** Field BAD_CODE          */\n  public static final String BAD_CODE = \"BAD_CODE\";\n\n  /** Field FORMAT_FAILED          */\n  public static final String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /** Field ERROR_RESOURCES          */\n  public static final String ERROR_RESOURCES =\n    \"org.apache.xpath.res.XPATHErrorResources\";\n\n  /** Field ERROR_STRING          */\n  public static final String ERROR_STRING = \"#error\";\n\n  /** Field ERROR_HEADER          */\n  public static final String ERROR_HEADER = \"\\u932f\\u8aa4\\uff1a\";\n\n  /** Field WARNING_HEADER          */\n  public static final String WARNING_HEADER = \"\\u8b66\\u544a\\uff1a\";\n\n  /** Field XSL_HEADER          */\n  public static final String XSL_HEADER = \"XSL \";\n\n  /** Field XML_HEADER          */\n  public static final String XML_HEADER = \"XML \";\n\n  /** Field QUERY_HEADER          */\n  public static final String QUERY_HEADER = \"PATTERN \";\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   * Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   * of ResourceBundle.getBundle().\n   *\n   * @param res the name of the resource to load.\n   * @param locale the locale to prefer when searching for the bundle\n   *\n   * @param className Name of local-specific subclass.\n   * @return the ResourceBundle\n   * @throws MissingResourceException\n   */\n  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"zh\", \"TW\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XPATHErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XPATHErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XPATHErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"zh\", \"TW\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "camel-1.6-2764", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/converter/jaxb/HeaderType.java", "language": "java", "name": "org.apache.camel.converter.jaxb.HeaderType", "code": "@XmlType(name = \"headerType\")\n@XmlAccessorType(value = XmlAccessType.FIELD)\npublic abstract class HeaderType {\n    @XmlAttribute\n    private String name;\n\n    public HeaderType() {\n    }\n\n    protected HeaderType(String name) {\n        this.name = name;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public abstract Object getValue();\n\n    public abstract void setValue(Object value);", "functions": [{"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getValue", "code": "    public abstract Object getValue();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setValue", "code": "    public abstract void setValue(Object value);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HeaderType", "code": "    public HeaderType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "HeaderType", "code": "    protected HeaderType(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.6-543", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/Parameter.java", "language": "java", "name": "org.apache.tools.ant.types.Parameter", "code": "public final class Parameter {\n    private String name = null;\n    private String type = null;\n    private String value = null;\n\n    public final void setName(final String name) {\n        this.name = name;\n    }\n\n    public final void setType(final String type) {\n        this.type = type;\n    }\n\n    public final void setValue(final String value) {\n        this.value = value;\n    }\n\n    public final String getName() {\n        return name;\n    }\n\n    public final String getType() {\n        return type;\n    }\n\n    public final String getValue() {\n        return value;", "functions": [{"function_name": "setName", "code": "    public final void setName(final String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setType", "code": "    public final void setType(final String type) {\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValue", "code": "    public final void setValue(final String value) {\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "    public final String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public final String getType() {\n        return type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getValue", "code": "    public final String getValue() {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8243", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/Otherwise.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Otherwise", "code": "final class Otherwise extends Instruction {\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"Otherwise\");\n\tindent(indent + IndentIncrement);\n\tdisplayContents(indent + IndentIncrement);\n    }\n\t\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\ttypeCheckContents(stable);\n\treturn Type.Void;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal Parser parser = getParser();\n\tfinal ErrorMsg err = new ErrorMsg(ErrorMsg.STRAY_OTHERWISE_ERR, this);\n\tparser.reportError(Constants.ERROR, err);", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"Otherwise\");\n\tindent(indent + IndentIncrement);\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\ttypeCheckContents(stable);\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal Parser parser = getParser();\n\tfinal ErrorMsg err = new ErrorMsg(ErrorMsg.STRAY_OTHERWISE_ERR, this);\n\tparser.reportError(Constants.ERROR, err);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "poi-2.0-5434", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/AreaFormatRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.AreaFormatRecord", "code": "public class AreaFormatRecord\n    extends Record\n{\n    public final static short      sid                             = 0x100a;\n    private  int        field_1_foregroundColor;\n    private  int        field_2_backgroundColor;\n    private  short      field_3_pattern;\n    private  short      field_4_formatFlags;\n    private  BitField   automatic                                   = new BitField(0x1);\n    private  BitField   invert                                      = new BitField(0x2);\n    private  short      field_5_forecolorIndex;\n    private  short      field_6_backcolorIndex;\n\n\n    public AreaFormatRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a AreaFormat record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x100a or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public AreaFormatRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a AreaFormat record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x100a or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public AreaFormatRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a AreaFormat record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_foregroundColor        = LittleEndian.getInt(data, pos + 0x0 + offset);\n        field_2_backgroundColor        = LittleEndian.getInt(data, pos + 0x4 + offset);\n        field_3_pattern                = LittleEndian.getShort(data, pos + 0x8 + offset);\n        field_4_formatFlags            = LittleEndian.getShort(data, pos + 0xa + offset);\n        field_5_forecolorIndex         = LittleEndian.getShort(data, pos + 0xc + offset);\n        field_6_backcolorIndex         = LittleEndian.getShort(data, pos + 0xe + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AREAFORMAT]\\n\");\n        buffer.append(\"    .foregroundColor      = \")\n            .append(\"0x\").append(HexDump.toHex(  getForegroundColor ()))\n            .append(\" (\").append( getForegroundColor() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .backgroundColor      = \")\n            .append(\"0x\").append(HexDump.toHex(  getBackgroundColor ()))\n            .append(\" (\").append( getBackgroundColor() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .pattern              = \")\n            .append(\"0x\").append(HexDump.toHex(  getPattern ()))\n            .append(\" (\").append( getPattern() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .formatFlags          = \")\n            .append(\"0x\").append(HexDump.toHex(  getFormatFlags ()))\n            .append(\" (\").append( getFormatFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .automatic                = \").append(isAutomatic()).append('\\n'); \n        buffer.append(\"         .invert                   = \").append(isInvert()).append('\\n'); \n        buffer.append(\"    .forecolorIndex       = \")\n            .append(\"0x\").append(HexDump.toHex(  getForecolorIndex ()))\n            .append(\" (\").append( getForecolorIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .backcolorIndex       = \")\n            .append(\"0x\").append(HexDump.toHex(  getBackcolorIndex ()))\n            .append(\" (\").append( getBackcolorIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/AREAFORMAT]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_foregroundColor);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_backgroundColor);\n        LittleEndian.putShort(data, 12 + offset + pos, field_3_pattern);\n        LittleEndian.putShort(data, 14 + offset + pos, field_4_formatFlags);\n        LittleEndian.putShort(data, 16 + offset + pos, field_5_forecolorIndex);\n        LittleEndian.putShort(data, 18 + offset + pos, field_6_backcolorIndex);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 4 + 4 + 2 + 2 + 2 + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        AreaFormatRecord rec = new AreaFormatRecord();\n    \n        rec.field_1_foregroundColor = field_1_foregroundColor;\n        rec.field_2_backgroundColor = field_2_backgroundColor;\n        rec.field_3_pattern = field_3_pattern;\n        rec.field_4_formatFlags = field_4_formatFlags;\n        rec.field_5_forecolorIndex = field_5_forecolorIndex;\n        rec.field_6_backcolorIndex = field_6_backcolorIndex;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the foreground color field for the AreaFormat record.\n     */\n    public int getForegroundColor()\n    {\n        return field_1_foregroundColor;\n    }\n\n    /**\n     * Set the foreground color field for the AreaFormat record.\n     */\n    public void setForegroundColor(int field_1_foregroundColor)\n    {\n        this.field_1_foregroundColor = field_1_foregroundColor;\n    }\n\n    /**\n     * Get the background color field for the AreaFormat record.\n     */\n    public int getBackgroundColor()\n    {\n        return field_2_backgroundColor;\n    }\n\n    /**\n     * Set the background color field for the AreaFormat record.\n     */\n    public void setBackgroundColor(int field_2_backgroundColor)\n    {\n        this.field_2_backgroundColor = field_2_backgroundColor;\n    }\n\n    /**\n     * Get the pattern field for the AreaFormat record.\n     */\n    public short getPattern()\n    {\n        return field_3_pattern;\n    }\n\n    /**\n     * Set the pattern field for the AreaFormat record.\n     */\n    public void setPattern(short field_3_pattern)\n    {\n        this.field_3_pattern = field_3_pattern;\n    }\n\n    /**\n     * Get the format flags field for the AreaFormat record.\n     */\n    public short getFormatFlags()\n    {\n        return field_4_formatFlags;\n    }\n\n    /**\n     * Set the format flags field for the AreaFormat record.\n     */\n    public void setFormatFlags(short field_4_formatFlags)\n    {\n        this.field_4_formatFlags = field_4_formatFlags;\n    }\n\n    /**\n     * Get the forecolor index field for the AreaFormat record.\n     */\n    public short getForecolorIndex()\n    {\n        return field_5_forecolorIndex;\n    }\n\n    /**\n     * Set the forecolor index field for the AreaFormat record.\n     */\n    public void setForecolorIndex(short field_5_forecolorIndex)\n    {\n        this.field_5_forecolorIndex = field_5_forecolorIndex;\n    }\n\n    /**\n     * Get the backcolor index field for the AreaFormat record.\n     */\n    public short getBackcolorIndex()\n    {\n        return field_6_backcolorIndex;\n    }\n\n    /**\n     * Set the backcolor index field for the AreaFormat record.\n     */\n    public void setBackcolorIndex(short field_6_backcolorIndex)\n    {\n        this.field_6_backcolorIndex = field_6_backcolorIndex;\n    }\n\n    /**\n     * Sets the automatic field value.\n     * automatic formatting\n     */\n    public void setAutomatic(boolean value)\n    {\n        field_4_formatFlags = automatic.setShortBoolean(field_4_formatFlags, value);\n    }\n\n    /**\n     * automatic formatting\n     * @return  the automatic field value.\n     */\n    public boolean isAutomatic()\n    {\n        return automatic.isSet(field_4_formatFlags);\n    }\n\n    /**\n     * Sets the invert field value.\n     * swap foreground and background colours when data is negative\n     */\n    public void setInvert(boolean value)\n    {\n        field_4_formatFlags = invert.setShortBoolean(field_4_formatFlags, value);\n    }\n\n    /**\n     * swap foreground and background colours when data is negative\n     * @return  the invert field value.\n     */\n    public boolean isInvert()\n    {\n        return invert.isSet(field_4_formatFlags);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a AreaFormat record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_foregroundColor        = LittleEndian.getInt(data, pos + 0x0 + offset);\n        field_2_backgroundColor        = LittleEndian.getInt(data, pos + 0x4 + offset);\n        field_3_pattern                = LittleEndian.getShort(data, pos + 0x8 + offset);\n        field_4_formatFlags            = LittleEndian.getShort(data, pos + 0xa + offset);\n        field_5_forecolorIndex         = LittleEndian.getShort(data, pos + 0xc + offset);\n        field_6_backcolorIndex         = LittleEndian.getShort(data, pos + 0xe + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [10, 16], [1, 17], [11, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [18, 24], [19, 25], [20, 26], [21, 27], [22, 28], [23, 29], [24, 30], [25, 31], [26, 32], [27, 33], [28, 34], [29, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 10], [17, 1], [18, 11], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [24, 18], [25, 19], [26, 20], [27, 21], [28, 22], [29, 23], [30, 24], [31, 25], [32, 26], [33, 27], [34, 28], [35, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AREAFORMAT]\\n\");\n        buffer.append(\"    .foregroundColor      = \")\n            .append(\"0x\").append(HexDump.toHex(  getForegroundColor ()))\n            .append(\" (\").append( getForegroundColor() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .backgroundColor      = \")\n            .append(\"0x\").append(HexDump.toHex(  getBackgroundColor ()))\n            .append(\" (\").append( getBackgroundColor() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .pattern              = \")\n            .append(\"0x\").append(HexDump.toHex(  getPattern ()))\n            .append(\" (\").append( getPattern() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .formatFlags          = \")\n            .append(\"0x\").append(HexDump.toHex(  getFormatFlags ()))\n            .append(\" (\").append( getFormatFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .automatic                = \").append(isAutomatic()).append('\\n'); \n        buffer.append(\"         .invert                   = \").append(isInvert()).append('\\n'); \n        buffer.append(\"    .forecolorIndex       = \")\n            .append(\"0x\").append(HexDump.toHex(  getForecolorIndex ()))\n            .append(\" (\").append( getForecolorIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .backcolorIndex       = \")\n            .append(\"0x\").append(HexDump.toHex(  getBackcolorIndex ()))\n            .append(\" (\").append( getBackcolorIndex() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/AREAFORMAT]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [4, 20], [5, 21], [6, 22], [6, 23], [6, 24], [6, 25], [6, 26], [6, 27], [7, 28], [8, 29], [8, 30], [8, 31], [8, 32], [8, 33], [8, 34], [9, 35], [9, 36], [9, 37], [10, 38], [10, 39], [10, 40], [11, 41], [12, 42], [12, 43], [12, 44], [12, 45], [12, 46], [12, 47], [13, 48], [14, 49], [14, 50], [14, 51], [14, 52], [14, 53], [14, 54], [15, 55], [16, 56], [16, 57], [16, 58], [16, 59], [16, 60], [16, 61], [17, 62], [18, 63], [18, 64], [18, 65], [18, 66], [18, 67], [18, 68], [19, 69], [2, 70], [21, 71], [23, 72], [24, 73], [25, 74], [26, 75], [27, 76], [28, 77], [30, 78], [31, 79], [32, 80], [33, 81], [34, 82], [36, 83], [37, 84], [39, 85], [40, 86], [41, 87], [43, 88], [44, 89], [45, 90], [46, 91], [47, 92], [48, 93], [50, 94], [51, 95], [52, 96], [53, 97], [54, 98], [55, 99], [57, 100], [58, 101], [59, 102], [60, 103], [61, 104], [62, 105], [64, 106], [65, 107], [66, 108], [67, 109], [68, 110], [75, 111], [81, 112], [91, 113], [97, 114], [103, 115], [109, 116], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 4], [21, 5], [22, 6], [23, 6], [24, 6], [25, 6], [26, 6], [27, 6], [28, 7], [29, 8], [30, 8], [31, 8], [32, 8], [33, 8], [34, 8], [35, 9], [36, 9], [37, 9], [38, 10], [39, 10], [40, 10], [41, 11], [42, 12], [43, 12], [44, 12], [45, 12], [46, 12], [47, 12], [48, 13], [49, 14], [50, 14], [51, 14], [52, 14], [53, 14], [54, 14], [55, 15], [56, 16], [57, 16], [58, 16], [59, 16], [60, 16], [61, 16], [62, 17], [63, 18], [64, 18], [65, 18], [66, 18], [67, 18], [68, 18], [69, 19], [70, 2], [71, 21], [72, 23], [73, 24], [74, 25], [75, 26], [76, 27], [77, 28], [78, 30], [79, 31], [80, 32], [81, 33], [82, 34], [83, 36], [84, 37], [85, 39], [86, 40], [87, 41], [88, 43], [89, 44], [90, 45], [91, 46], [92, 47], [93, 48], [94, 50], [95, 51], [96, 52], [97, 53], [98, 54], [99, 55], [100, 57], [101, 58], [102, 59], [103, 60], [104, 61], [105, 62], [106, 64], [107, 65], [108, 66], [109, 67], [110, 68], [111, 75], [112, 81], [113, 91], [114, 97], [115, 103], [116, 109], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putInt(data, 4 + offset + pos, field_1_foregroundColor);\n        LittleEndian.putInt(data, 8 + offset + pos, field_2_backgroundColor);\n        LittleEndian.putShort(data, 12 + offset + pos, field_3_pattern);\n        LittleEndian.putShort(data, 14 + offset + pos, field_4_formatFlags);\n        LittleEndian.putShort(data, 16 + offset + pos, field_5_forecolorIndex);\n        LittleEndian.putShort(data, 18 + offset + pos, field_6_backcolorIndex);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [12, 20], [13, 21], [2, 22], [14, 23], [15, 24], [16, 25], [17, 26], [18, 27], [19, 28], [12, 29], [20, 30], [21, 31], [23, 32], [24, 33], [25, 34], [26, 35], [27, 36], [28, 37], [29, 38], [29, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 12], [21, 13], [22, 2], [23, 14], [24, 15], [25, 16], [26, 17], [27, 18], [28, 19], [29, 12], [30, 20], [31, 21], [32, 23], [33, 24], [34, 25], [35, 26], [36, 27], [37, 28], [38, 29], [39, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 4 + 4 + 2 + 2 + 2 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [12, 13], [12, 14], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        AreaFormatRecord rec = new AreaFormatRecord();\n    \n        rec.field_1_foregroundColor = field_1_foregroundColor;\n        rec.field_2_backgroundColor = field_2_backgroundColor;\n        rec.field_3_pattern = field_3_pattern;\n        rec.field_4_formatFlags = field_4_formatFlags;\n        rec.field_5_forecolorIndex = field_5_forecolorIndex;\n        rec.field_6_backcolorIndex = field_6_backcolorIndex;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getForegroundColor", "code": "    public int getForegroundColor()\n    {\n        return field_1_foregroundColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setForegroundColor", "code": "    public void setForegroundColor(int field_1_foregroundColor)\n    {\n        this.field_1_foregroundColor = field_1_foregroundColor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBackgroundColor", "code": "    public int getBackgroundColor()\n    {\n        return field_2_backgroundColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBackgroundColor", "code": "    public void setBackgroundColor(int field_2_backgroundColor)\n    {\n        this.field_2_backgroundColor = field_2_backgroundColor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPattern", "code": "    public short getPattern()\n    {\n        return field_3_pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPattern", "code": "    public void setPattern(short field_3_pattern)\n    {\n        this.field_3_pattern = field_3_pattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFormatFlags", "code": "    public short getFormatFlags()\n    {\n        return field_4_formatFlags;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFormatFlags", "code": "    public void setFormatFlags(short field_4_formatFlags)\n    {\n        this.field_4_formatFlags = field_4_formatFlags;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getForecolorIndex", "code": "    public short getForecolorIndex()\n    {\n        return field_5_forecolorIndex;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setForecolorIndex", "code": "    public void setForecolorIndex(short field_5_forecolorIndex)\n    {\n        this.field_5_forecolorIndex = field_5_forecolorIndex;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBackcolorIndex", "code": "    public short getBackcolorIndex()\n    {\n        return field_6_backcolorIndex;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBackcolorIndex", "code": "    public void setBackcolorIndex(short field_6_backcolorIndex)\n    {\n        this.field_6_backcolorIndex = field_6_backcolorIndex;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutomatic", "code": "    public void setAutomatic(boolean value)\n    {\n        field_4_formatFlags = automatic.setShortBoolean(field_4_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAutomatic", "code": "    public boolean isAutomatic()\n    {\n        return automatic.isSet(field_4_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setInvert", "code": "    public void setInvert(boolean value)\n    {\n        field_4_formatFlags = invert.setShortBoolean(field_4_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isInvert", "code": "    public boolean isInvert()\n    {\n        return invert.isSet(field_4_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AreaFormatRecord", "code": "    public AreaFormatRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AreaFormatRecord", "code": "    public AreaFormatRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AreaFormatRecord", "code": "    public AreaFormatRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.1-4042", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "bsh/Name.java", "language": "java", "name": "bsh.Name", "code": "class Name implements java.io.Serializable\n{\n\t// These do not change during evaluation\n\tpublic NameSpace namespace;\n\tString value = null;\n\t\n\t// ---------------------------------------------------------\n\t// The following instance variables mutate during evaluation and should\n\t// be reset by the reset() method where necessary\n\n\t// For evaluation\n\tprivate String evalName;\t\t// text left to eval\n\tprivate Object evalBaseObject;\t// base object for current eval\n\n\tprivate int callstackDepth;\t\t// number of times eval hit 'this.caller'\n\t/** \n\t\tThe last round consume the literal 'this' reference (not super, \n\t\tglobal, or another This type var).  We use this flag to support magic\n\t\tvariables that can only be referenced through 'this.xxx', e.g.\n\t\tthis.interpreter and this.caller;\n\t*/\n\tprivate boolean literalThisReference;\n\t/** \n\t\tThe last round consume the literal 'caller' reference (not super, \n\t\tglobal, or another This type var).  This is used to limit references\n\t\tto .caller to only after a literal 'this' or compound '.caller'.\n\t*/\n\tprivate boolean literalCallerReference;\n\n\t//  \n\t//  End mutable instance variables.\n\t// ---------------------------------------------------------\n\n\n\tprivate void reset() {\n\t\tevalName = value;\n\t\tevalBaseObject = null;\n\t\tcallstackDepth = 0;\n\t\tliteralThisReference=false;\n\t\tliteralCallerReference=false;\n\t}\n\n\t/**\n\t\tThis constructor should *not* be used in general. \n\t\tUse NameSpace getNameResolver() which supports caching.\n\t\tI wish I could make this \"friendly\" to just that class.\n\t\t@see NameSpace getNameResolver().\n\t*/\n\tpublic Name(NameSpace namespace, String s)\n\t{\n\t\tthis.namespace = namespace;\n\t\tvalue = s;\n\t}\n\n\t/**\n\t\tResolve possibly complex name to an object value.\n\n\t\tThrows EvalError on various failures.\n\t\tA null object value is indicated by a Primitive.NULL.\n\t\tA return type of Primitive.VOID comes from attempting to access\n\t\tan undefined variable.\n\n\t\tSome cases:\n\t\t\tmyVariable\n\t\t\tmyVariable.foo\n\t\t\tmyVariable.foo.bar\n\t\t\tjava.awt.GridBagConstraints.BOTH\n\t\t\tmy.package.stuff.MyClass.someField.someField...\n\n\t\tInterpreter reference is necessary to allow resolution of \n\t\t\"this.interpreter\" magic field.\n\t\tCallStack reference is necessary to allow resolution of \n\t\t\"this.caller\" magic field.\n\t\t\"this.callstack\" magic field.\n\t*/\n\tpublic Object toObject( CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError\n\t{\n\t\treturn toObject( callstack, interpreter, false );\n\t}\n\n\t/**\n\t\t@see toObject()\n\t\t@param forceClass if true then resolution will only produce a class.\n\t\tThis is necessary to disambiguate in cases where the grammar knows\n\t\tthat we want a class; where in general the var path may be taken.\n\t*/\n\tsynchronized public Object toObject( \n\t\tCallStack callstack, Interpreter interpreter, boolean forceClass ) \n\t\tthrows EvalError\n\t{\n\t\treset();\n\n\t\tObject obj = null;\n\t\twhile( evalName != null )\n\t\t\tobj = consumeNextObjectField( callstack, interpreter, forceClass );\n\n\t\tif ( obj == null )\n\t\t\tthrow new InterpreterError(\"null value in toObject()\");\n\n\t\treturn obj;\n\t}\n\n\t/**\n\t\tGet next prefixed object field component\n\t*/\n\tprivate Object consumeNextObjectField( \t\n\t\tCallStack callstack, Interpreter interpreter, boolean forceClass ) \n\t\tthrows EvalError\n\t{\n\t\t/*\n\t\t\tIs it a simple variable name?\n\t\t\tDoing this first gives the correct Java precedence for vars \n\t\t\tvs. imported class names (at least in the simple case - see\n\t\t\ttests/precedence1.bsh).  It should also speed things up a bit.\n\t\t*/\n\t\tif ( (evalBaseObject == null && !isCompound(evalName) )\n\t\t\t&& !forceClass ) \n\t\t{\n\t\t\tObject obj = resolveThisFieldReference( \n\t\t\t\tcallstack, namespace, interpreter, evalName, false );\n\n\t\t\tif ( obj != Primitive.VOID ) {\n\t\t\t\tevalName = null; // finished\n\t\t\t\treturn evalBaseObject = obj;  // convention\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t\tIs it a bsh script variable reference?\n\t\t\tIf we're just starting the eval of name (no base object)\n\t\t\tor we're evaluating relative to a This reference check.\n\t\t*/\n\t\tif ( ( evalBaseObject == null || evalBaseObject instanceof This  )\n\t\t\t&& !forceClass ) \n\t\t{\n\t\t\tString varName = prefix(evalName, 1);\n\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug(\"trying to resolve variable: \" + varName);\n\t\t\tObject obj;\n\t\t\tif ( evalBaseObject == null ) {\n\t\t\t\tobj = resolveThisFieldReference( \n\t\t\t\t\tcallstack, namespace, interpreter, varName, false );\n\t\t\t} else {\n\t\t\t\t// null callstack, cannot be caller reference\n\t\t\t\tobj = resolveThisFieldReference( \n\t\t\t\t\tcallstack, ((This)evalBaseObject).namespace, \n\t\t\t\t\tinterpreter, varName, true );\n\t\t\t}\n\n\t\t\tif ( obj != Primitive.VOID ) \n\t\t\t{\n\t\t\t\t// Resolved the variable\n\t\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\t\tInterpreter.debug( \"resolved variable: \" + varName + \n\t\t\t\t\t\" in namespace: \"+namespace);\n\t\t\t\tevalName = suffix(evalName);\n\t\t\t\treturn evalBaseObject = obj;\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t\tIs it a class name?\n\t\t\tIf we're just starting eval of name try to make it, else fail.\n\t\t*/\n\t\tif ( evalBaseObject == null ) {\n\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug( \"trying class: \" + evalName);\n\t\t\t\n\t\t\t/*\n\t\t\t\tKeep adding parts until we have a class \n\t\t\t*/\n\t\t\tClass clas = null;\n\t\t\tint i = 1;\n\t\t\tfor(; i <= countParts(evalName); i++)\n\t\t\t\tif ( (clas = namespace.getClass(prefix(evalName, i))) != null )\n\t\t\t\t\tbreak;\n\t\t\n\t\t\tif( clas != null )  {\n\t\t\t\tevalName = suffix(evalName, countParts(evalName) - i);\n\t\t\t\treturn ( evalBaseObject = new ClassIdentifier(clas) );\n\t\t\t}\n\t\t\t// not a class (or variable per above)\n\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug( \"not a class, trying var prefix \"+evalName );\n\t\t}\n\n\n\t\t/*\n\t\t\tIf we didn't find a class or variable name (or prefix) above\n\t\t\tthere are two possibilities:\n\n\t\t\t- If we are a simple name then we can pass as a void variable \n\t\t\treference.\n\t\t\t- If we are compound then we must fail at this point.\n\t\t*/\n\t\tif ( evalBaseObject == null ) {\n\t\t\tif( !isCompound(evalName) ) {\n\t\t\t\tevalName = null; // finished\n\t\t\t\treturn evalBaseObject = Primitive.VOID;  // convention\n\t\t\t} else\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"Class or variable not found:\" + evalName);\n\t\t}\n\n\t\t/*\n\t\t\t--------------------------------------------------------\n\t\t\tAfter this point we're definitely evaluating relative to\n\t\t\ta base object.\n\t\t\t--------------------------------------------------------\n\t\t*/\n\n\t\t/*\n\t\t\tDo some basic validity checks.\n\t\t*/\n\n\t\tif(evalBaseObject == Primitive.NULL) // previous round produced null\n\t\t\tthrow new TargetError( \"Null Pointer while evaluating: \"\n\t\t\t\t+value, new NullPointerException() );\n\n\t\tif(evalBaseObject == Primitive.VOID) // previous round produced void\n\t\t\tthrow new EvalError(\n\t\t\t\t\"Undefined variable or class name while evaluating: \"+value);\n\n\t\tif(evalBaseObject instanceof Primitive)\n\t\t\tthrow new EvalError(\"Can't treat primitive like an object. \"+\n\t\t\t\"Error while evaluating: \"+value);\n\n\t\t/* \n\t\t\tResolve relative to a class type\n\t\t\tstatic field, inner class, ?\n\t\t*/\n\t\tif ( evalBaseObject instanceof ClassIdentifier ) \n\t\t{\n\t\t\tClass clas = ((ClassIdentifier)evalBaseObject).getTargetClass();\n\t\t\tString field = prefix(evalName, 1);\n\n\t\t\tObject obj = null;\n\t\t\t// static field?\n\t\t\ttry {\n\t\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\t\tInterpreter.debug(\"Name call to getStaticField, class: \" \n\t\t\t\t\t\t+clas+\", field:\"+field);\n\t\t\t\tobj = Reflect.getStaticField(clas, field);\n\t\t\t} catch( ReflectError e ) { \n\t\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\t\tInterpreter.debug(\"field reflect error: \"+e);\n\t\t\t}\n\n\t\t\t// inner class?\n\t\t\tif ( obj == null ) {\n\t\t\t\tString iclass = clas.getName()+\"$\"+field;\n\t\t\t\tClass c = namespace.getClass( iclass );\n\t\t\t\tif ( c != null )\n\t\t\t\t\tobj = new ClassIdentifier(c);\n\t\t\t}\n\n\t\t\tif ( obj == null )\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"No static field or inner class: \" + field + \" of \" + clas);\n\n\t\t\tevalName = suffix(evalName);\n\t\t\treturn (evalBaseObject = obj);\n\t\t}\n\n\t\t/*\n\t\t\tIf we've fallen through here we are no longer resolving to\n\t\t\ta class type.\n\t\t*/\n\t\tif ( forceClass )\n\t\t\tthrow new EvalError( value +\" does not resolve to a class name.\" );\n\n\t\t/* \n\t\t\tSome kind of field access?\n\t\t*/\n\n\t\tString field = prefix(evalName, 1);\n\n\t\t/* length access on array? */\n\t\tif(field.equals(\"length\") && evalBaseObject.getClass().isArray())\n\t\t{\n\t\t\tObject obj = new Primitive(Array.getLength(evalBaseObject));\n\t\t\tevalName = suffix(evalName);\n\t\t\treturn (evalBaseObject = obj);\n\t\t}\n\n\t\t/* check for field on object */\n\t\t// Note: could eliminate throwing the exception somehow\n\t\ttry\n\t\t{\n\t\t\tObject obj = Reflect.getObjectField(evalBaseObject, field);\n\t\t\tevalName = suffix(evalName);\n\t\t\treturn (evalBaseObject = obj);\n\t\t}\n\t\tcatch(ReflectError e) { /* not a field */ }\n\t\n\t\t// if we get here we have failed\n\t\tthrow new EvalError(\n\t\t\t\"Cannot access field: \" + field + \", on object: \" + evalBaseObject);\n\t}\n\n\t/**\n\t\tResolve a variable relative to a This reference.\n\n\t\tThis is the general variable resolution method, accomodating special\n\t\tfields from the This context.  Together the namespace and interpreter\n\t\tcomprise the This context.  The callstack, if available allows for the\n\t\tthis.caller construct.  \n\t\tOptionally interpret special \"magic\" field names: e.g. interpreter.\n\n\t\t@param callstack may be null, but this is only legitimate in special\n\t\tcases where we are sure resolution will not involve this.caller.\n\n\t\t@param namespace the namespace of the this reference (should be the\n\t\tsame as the top of the stack?\n\t*/\n\tObject resolveThisFieldReference( \n\t\tCallStack callstack, NameSpace thisNamespace, Interpreter interpreter, \n\t\tString varName, boolean specialFieldsVisible ) \n\t\tthrows EvalError\n\t{\n\t\tObject obj = null;\n\t\t// preserve the state of the last round flags until the end\n\t\tboolean \n\t\t\twasThis = false,\t\t\n\t\t\twasCaller = false;\n\n\t\tif ( varName.equals(\"this\") ) {\n\t\t\t// Hack! If the special fields are visible turn of further .this\n\t\t\t// prevent user from skipping to things like super.this.caller\n\t\t\tif ( specialFieldsVisible )\n\t\t\t\tthrow new EvalError(\"Redundant to call .this on This type\");\n\t\t\tobj = thisNamespace.getThis( interpreter );\n\t\t\twasThis = true;\n\t\t} \n\n\t\tif ( obj == null ) {\n\t\t\tif ( varName.equals(\"super\") )\n\t\t\t\tobj = thisNamespace.getSuper().getThis( interpreter );\n\t\t\telse if ( varName.equals(\"global\") )\n\t\t\t\tobj = thisNamespace.getGlobal().getThis( interpreter );\n\t\t}\n\n\t\tif ( obj == null && specialFieldsVisible ) {\n\t\t\tif (varName.equals(\"namespace\"))\n\t\t\t\tobj = thisNamespace;\n\t\t\telse if (varName.equals(\"variables\"))\n\t\t\t\tobj = thisNamespace.getVariableNames();\n\t\t\telse if (varName.equals(\"methods\"))\n\t\t\t\tobj = thisNamespace.getMethodNames();\n\t\t\telse if ( varName.equals(\"interpreter\") )\n\t\t\t\tif ( literalThisReference )\n\t\t\t\t\tobj = interpreter;\n\t\t\t\telse\n\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\t\"Can only call .interpreter on literal 'this'\");\n\t\t}\n\n\t\tif ( obj == null && specialFieldsVisible && varName.equals(\"caller\") )\n\t\t{\n\t\t\tif ( literalThisReference || literalCallerReference ) \n\t\t\t{\n\t\t\t\t// get the previous context (see notes for this class)\n\t\t\t\tif ( callstack == null )\n\t\t\t\t\tthrow new InterpreterError(\"no callstack\");\n\t\t\t\tobj = callstack.get( ++callstackDepth ).getThis( \n\t\t\t\t\tinterpreter ); \n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\"Can only call .caller on literal 'this' or literal '.caller'\");\n\n\t\t\twasCaller = true;\n\t\t}\n\n\t\tif ( obj == null && specialFieldsVisible \n\t\t\t&& varName.equals(\"callstack\") )\n\t\t{\n\t\t\tif ( literalThisReference ) \n\t\t\t{\n\t\t\t\t// get the previous context (see notes for this class)\n\t\t\t\tif ( callstack == null )\n\t\t\t\t\tthrow new InterpreterError(\"no callstack\");\n\t\t\t\tobj = callstack;\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\"Can only call .callstack on literal 'this'\");\n\t\t}\n\n\n\t\tif ( obj == null )\n\t\t\tobj = thisNamespace.getVariable(varName);\n\n\t\tliteralThisReference = wasThis;\n\t\tliteralCallerReference = wasCaller;\n\t\treturn obj;\n\t}\n\n\t/**\n\t\tCheck the cache, else use toObject() to try to resolve to a class\n\t\tidentifier.  \n\n\t\tThrows EvalError on class not found...\n\t*/\n\tsynchronized public Class toClass() throws EvalError \n\t{\n\t\treset();\n\n\t\t/* Try straightforward class name first */\n\t\tClass clas = namespace.getClass(evalName);\n\n\t\tif ( clas == null ) {\n\t\t\t/* \n\t\t\t\tTry toObject() which knows how to work through inner classes\n\t\t\t\tand see what we end up with \n\t\t\t*/\n\t\t\tObject obj = null;\n\t\t\ttry {\n\t\t\t\t// Null interpreter and callstack references.\n\t\t\t\t// class only resolution should not require them.\n\t\t\t\tobj = toObject( null, null, true );  \n\t\t\t} catch ( EvalError  e ) { }; // couldn't resolve it\n\t\t\n\t\t\tif ( obj instanceof ClassIdentifier )\n\t\t\t\tclas = ((ClassIdentifier)obj).getTargetClass();\n\t\t}\n\n\t\tif( clas == null )\n\t\t\tthrow new EvalError(\n\t\t\t\t\"Class: \" + value+ \" not found in namespace\");\n\n\t\treturn clas;\n\t}\n\n\t/*\n\t*/\n\tsynchronized public LHS toLHS( \n\t\tCallStack callstack, Interpreter interpreter )\n\t\tthrows EvalError\n\t{\n\t\treset();\n\n\t\t/* if ( Interpreter.DEBUG ) \n\t\t\tInterpreter.debug(\"Name toLHS: \"+evalName+ \" isCompound = \"\n\t\t\t+ isCompound(evalName));\n\t\t*/\n\n\t\t// variable\n\t\tif(!isCompound(evalName)) {\n\t\t\t//if ( Interpreter.DEBUG ) \n\t\t\t\t//Interpreter.debug(\"returning simple var LHS...\");\n\t\t\treturn new LHS(namespace,evalName);\n\t\t}\n\n\t\t// field\n\t\tObject obj = null;\n\t\ttry\n\t\t{\n\t\t\twhile(isCompound(evalName))\n\t\t\t\tobj = consumeNextObjectField( callstack, interpreter, false );\n\t\t}\n\t\tcatch( EvalError e )\n\t\t{\n\t\t\tthrow new EvalError(\"LHS evaluation: \" + e);\n\t\t}\n\n\t\tif ( obj == null )\n\t\t\tthrow new InterpreterError(\"internal error 2893749283\");\n\n\t\tif(obj instanceof This)\n\t\t{\n\t\t\tInterpreter.debug(\"found This reference evaluating LHS\");\n\t\t\treturn new LHS(((This)obj).namespace, evalName);\n\t\t}\n\n\t\tif(evalName != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n//System.err.println(\"Name getLHSObjectField call obj = \"\n//\t+obj+\", name=\"+evalName);\n\n\t\t\t\tif ( obj instanceof ClassIdentifier ) \n\t\t\t\t{\n\t\t\t\t\tClass clas = ((ClassIdentifier)obj).getTargetClass();\n\t\t\t\t\treturn Reflect.getLHSStaticField(clas, evalName);\n\t\t\t\t} else\n\t\t\t\t\treturn Reflect.getLHSObjectField(obj, evalName);\n\t\t\t} catch(ReflectError e)\n\t\t\t{\n\t\t\t\tthrow new EvalError(\"Field access: \"+e);\n\t\t\t}\n\t\t}\n\n\t\tthrow new InterpreterError(\"Internal error in lhs...\");\n\n\t/*\n\tThis appears to have been something very old and incorrect...\n\tI don't think we need it anymore.\n\n\t\t// We bit off our field in the very first bite\n\t\t// have to back off and make a class out of the prefix\n\t\tInterpreter.debug(\"very first field was it...\");\n\n\t\tClass clas = namespace.getClass(prefix(value));\n\t\tif(clas == null)\n\t\t\tthrow new InterpreterError(\"internal error 238974983\");\n\n\t\tString field = suffix(value, 1);\n\n\t\ttry\n\t\t{\n\t\t\treturn Reflect.getLHSStaticField(clas, field);\n\t\t}\n\t\tcatch(ReflectError e)\n\t\t{\n\t\t\tif ( Interpreter.DEBUG ) Interpreter.debug(\"reflect error:\" + e);\n\t\t\treturn null;\n\t\t}\n\t*/\n\n\t}\n\t\n\tprivate BshMethod toLocalMethod( Object [] args )\n\t{\n\t\tClass [] sig = Reflect.getTypes( args );\n\t\treturn namespace.getMethod( value, sig );\n\t}\n\n\n    /**\n\t\tInvoke the method identified by name.\n\n        Name contains a wholely unqualfied messy name; resolve it to \n\t\t( object | static prefix ) + method name and invoke.\n\n        The interpreter is necessary to support 'this.interpreter' references\n\t\tin the called code. (e.g. debug());\n\n        Some cases:\n\n            // dynamic\n            local();\n            myVariable.foo();\n            myVariable.bar.blah.foo();\n            // static\n            java.lang.Integer.getInteger(\"foo\");\n\n    */\n    public Object invokeMethod(\n\t\tInterpreter interpreter, Object[] args, CallStack callstack,\n\t\tSimpleNode callerInfo\n\t)\n        throws EvalError, ReflectError, InvocationTargetException\n    {\n        if ( !Name.isCompound(value) )\n            return invokeLocalMethod(interpreter, args, callstack, callerInfo);\n\n        // find target object\n        Name targetName = namespace.getNameResolver( Name.prefix(value));\n        String methodName = Name.suffix(value, 1);\n\n        Object obj = targetName.toObject( callstack, interpreter );\n\n\t\tif ( obj == Primitive.VOID ) \n\t\t\tthrow new EvalError( \"Attempt to invoke method: \"+methodName\n\t\t\t\t\t+\"() on undefined variable or class name: \"+targetName);\n\n        // if we've got an object, invoke the method\n        if ( !(obj instanceof Name.ClassIdentifier) ) {\n\n            if (obj instanceof Primitive) {\n\n                if (obj == Primitive.NULL)\n                    throw new TargetError( \"Null Pointer in Method Invocation\",\n\t\t\t\t\tnew NullPointerException() );\n\n                // some other primitive\n                // should avoid calling methods on primitive, as we do\n                // in Name (can't treat primitive like an object message)\n                // but the hole is useful right now.\n                interpreter.error(\"Attempt to access method on primitive...\" +\n                    \" allowing bsh.Primitive to peek through for debugging\");\n            }\n\n            // found an object and it's not an undefined variable\n            return Reflect.invokeObjectMethod(\n\t\t\t\tinterpreter, obj, methodName, args, callerInfo);\n        }\n\n        // try static method\n        if ( Interpreter.DEBUG ) \n\t\t\tInterpreter.debug(\"invokeMethod: trying static - \" + targetName);\n\n        Class clas = ((Name.ClassIdentifier)obj).getTargetClass();\n        if (clas != null)\n            return Reflect.invokeStaticMethod(clas, methodName, args);\n\n        // return null; ???\n\t\tthrow new EvalError(\"unknown target: \" + targetName);\n    }\n\n\t/**\n\t\tInvoke a locally declared method or a bsh command.\n\t\tIf the method is not already declared in the namespace then try\n\t\tto load it as a resource from the /bsh/commands path.\n\t\n\t\tNote: instead of invoking the method directly here we should probably\n\t\tcall invokeObjectMethod passing a This reference.  That would have\n\t\tthe side effect of allowing a locally defined invoke() method to\n\t\thandle undeclared method invocations just like in objects.  Not sure\n\t\tif this is desirable...  It seems that if you invoke a method directly\n\t\tin scope it should be there.\n\n\t\tKeeping this code separate allows us to differentiate between methods\n\t\tinvoked directly in scope and those invoked through object references.\n\t*/\n    public Object invokeLocalMethod( \n\t\tInterpreter interpreter, Object[] args, CallStack callstack,\n\t\tSimpleNode callerInfo\n\t)\n        throws EvalError, ReflectError, InvocationTargetException\n    {\n        if ( Interpreter.DEBUG ) \n\t\t\tInterpreter.debug(\"invoke local method: \" + value);\n\n        // Check for locally declared method\n        BshMethod meth = toLocalMethod( args );\n        if ( meth != null )\n            return meth.invokeDeclaredMethod( args, interpreter, callstack, callerInfo );\n        else\n            if ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug(\"no locally declared method: \" + value);\n\n        /*\n\t\t\tLook for scripted command as resource\n\t\t*/\n\t\t// Why not /bsh/commands here?  Why relative to Interpreter?\n        String commandName = \"commands/\" + value + \".bsh\";\n        InputStream in = Interpreter.class.getResourceAsStream(commandName);\n        if (in != null)\n        {\n            if ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug(\"loading resource: \" + commandName);\n\n\t\t\tif ( interpreter == null )\n\t\t\t\tthrow new InterpreterError(\"2234432 interpreter = null\");\n\n            interpreter.eval( \n\t\t\t\tnew InputStreamReader(in), namespace, commandName);\n\n            // try again\n            meth = toLocalMethod( args );\n            if(meth != null)\n                return meth.invokeDeclaredMethod( \n\t\t\t\t\targs, interpreter, callstack, callerInfo );\n            else\n                throw new EvalError(\"Loaded resource: \" + commandName +\n                    \"had an error or did not contain the correct method\");\n        }\n\n        // check for compiled bsh command class\n        commandName = \"bsh.commands.\" + value;\n        // create class outside of any namespace\n        Class c = BshClassManager.classForName( commandName );\n        if(c == null)\n            throw new EvalError(\"Command not found: \" + value);\n\n        // add interpereter and namespace to args list\n        Object[] invokeArgs = new Object[args.length + 2];\n        invokeArgs[0] = interpreter;\n        invokeArgs[1] = namespace;\n        System.arraycopy(args, 0, invokeArgs, 2, args.length);\n        try\n        {\n            return Reflect.invokeStaticMethod(c, \"invoke\", invokeArgs);\n        }\n        catch(ReflectError e)\n        {\n            if ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug(\"invoke command args error:\" + e);\n            // bad args\n        }\n        // try to print help\n        try\n        {\n            String s = (String)Reflect.invokeStaticMethod(c, \"usage\", null);\n            interpreter.println(s);\n            return Primitive.VOID;\n        }\n        catch(ReflectError e)\n        {\n            if ( Interpreter.DEBUG ) Interpreter.debug(\"usage threw: \" + e);\n            throw new EvalError(\"Wrong number or type of args for command\");\n        }\n    }\n\n\t// Static methods that operate on compound ('.' separated) names\n\n\tstatic boolean isCompound(String value)\n\t{\n\t\treturn countParts(value) > 1;\n\t}\n\n\tstatic int countParts(String value)\n\t{\n\t\tif(value == null)\n\t\t\treturn 0;\n\n\t\tint count = 0;\n\t\tint index = -1;\n\t\twhile((index = value.indexOf('.', index + 1)) != -1)\n\t\t\tcount++;\n\t\treturn count + 1;\n\t}\n\n\tstatic String prefix(String value)\n\t{\n\t\tif(!isCompound(value))\n\t\t\treturn null;\n\n\t\treturn prefix(value, countParts(value) - 1);\n\t}\n\n\tstatic String prefix(String value, int parts)\n\t{\n\t\tif(parts < 1)\n\t\t\treturn null;\n\n\t\tint count = 0;\n\t\tint index = -1;\n\n\t\twhile(((index = value.indexOf('.', index + 1)) != -1) && (++count < parts))\n\t\t{ ; }\n\n\t\treturn (index == -1) ? value : value.substring(0, index);\n\t}\n\n\tstatic String suffix(String name)\n\t{\n\t\tif(!isCompound(name))\n\t\t\treturn null;\n\n\t\treturn suffix(name, countParts(name) - 1);\n\t}\n\n\tpublic static String suffix(String value, int parts)\n\t{\n\t\tif(parts < 1)\n\t\t\treturn null;\n\n\t\tint count = 0;\n\t\tint index = value.length() + 1;\n\n\t\twhile(((index = value.lastIndexOf('.', index - 1)) != -1) && (++count < parts))\n\t\t{ ; }\n\n\t\treturn (index == -1) ? value : value.substring(index + 1);\n\t}\n\n\t// end compound name routines\n\n\n\tpublic String toString() { return value; }\n\n\tstatic class ClassIdentifier {\n\t\tClass clas;\n\n\t\tpublic ClassIdentifier( Class clas ) {\n\t\t\tthis.clas = clas;\n\t\t}\n\n\t\tpublic Class getTargetClass() {\n\t\t\treturn clas;\n\t\t}\n\n\t\tpublic String toString() {\n\t\t\treturn \"Class Identifier: \"+clas.getName();", "functions": [{"function_name": "reset", "code": "\tprivate void reset() {\n\t\tevalName = value;\n\t\tevalBaseObject = null;\n\t\tcallstackDepth = 0;\n\t\tliteralThisReference=false;\n\t\tliteralCallerReference=false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "toObject", "code": "\tpublic Object toObject( CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError\n\t{\n\t\treturn toObject( callstack, interpreter, false );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toObject", "code": "\tsynchronized public Object toObject( \n\t\tCallStack callstack, Interpreter interpreter, boolean forceClass ) \n\t\tthrows EvalError\n\t{\n\t\treset();\n\n\t\tObject obj = null;\n\t\twhile( evalName != null )\n\t\t\tobj = consumeNextObjectField( callstack, interpreter, forceClass );\n\n\t\tif ( obj == null )\n\t\t\tthrow new InterpreterError(\"null value in toObject()\");\n\n\t\treturn obj;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [0, 11], [8, 12], [9, 13], [3, 14], [10, 15], [4, 16], [12, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 0], [12, 8], [13, 9], [14, 3], [15, 10], [16, 4], [17, 12], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "consumeNextObjectField", "code": "\tprivate Object consumeNextObjectField( \t\n\t\tCallStack callstack, Interpreter interpreter, boolean forceClass ) \n\t\tthrows EvalError\n\t{\n\t\t/*\n\t\t\tIs it a simple variable name?\n\t\t\tDoing this first gives the correct Java precedence for vars \n\t\t\tvs. imported class names (at least in the simple case - see\n\t\t\ttests/precedence1.bsh).  It should also speed things up a bit.\n\t\t*/\n\t\tif ( (evalBaseObject == null && !isCompound(evalName) )\n\t\t\t&& !forceClass ) \n\t\t{\n\t\t\tObject obj = resolveThisFieldReference( \n\t\t\t\tcallstack, namespace, interpreter, evalName, false );\n\n\t\t\tif ( obj != Primitive.VOID ) {\n\t\t\t\tevalName = null; // finished\n\t\t\t\treturn evalBaseObject = obj;  // convention\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t\tIs it a bsh script variable reference?\n\t\t\tIf we're just starting the eval of name (no base object)\n\t\t\tor we're evaluating relative to a This reference check.\n\t\t*/\n\t\tif ( ( evalBaseObject == null || evalBaseObject instanceof This  )\n\t\t\t&& !forceClass ) \n\t\t{\n\t\t\tString varName = prefix(evalName, 1);\n\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug(\"trying to resolve variable: \" + varName);\n\t\t\tObject obj;\n\t\t\tif ( evalBaseObject == null ) {\n\t\t\t\tobj = resolveThisFieldReference( \n\t\t\t\t\tcallstack, namespace, interpreter, varName, false );\n\t\t\t} else {\n\t\t\t\t// null callstack, cannot be caller reference\n\t\t\t\tobj = resolveThisFieldReference( \n\t\t\t\t\tcallstack, ((This)evalBaseObject).namespace, \n\t\t\t\t\tinterpreter, varName, true );\n\t\t\t}\n\n\t\t\tif ( obj != Primitive.VOID ) \n\t\t\t{\n\t\t\t\t// Resolved the variable\n\t\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\t\tInterpreter.debug( \"resolved variable: \" + varName + \n\t\t\t\t\t\" in namespace: \"+namespace);\n\t\t\t\tevalName = suffix(evalName);\n\t\t\t\treturn evalBaseObject = obj;\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t\tIs it a class name?\n\t\t\tIf we're just starting eval of name try to make it, else fail.\n\t\t*/\n\t\tif ( evalBaseObject == null ) {\n\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug( \"trying class: \" + evalName);\n\t\t\t\n\t\t\t/*\n\t\t\t\tKeep adding parts until we have a class \n\t\t\t*/\n\t\t\tClass clas = null;\n\t\t\tint i = 1;\n\t\t\tfor(; i <= countParts(evalName); i++)\n\t\t\t\tif ( (clas = namespace.getClass(prefix(evalName, i))) != null )\n\t\t\t\t\tbreak;\n\t\t\n\t\t\tif( clas != null )  {\n\t\t\t\tevalName = suffix(evalName, countParts(evalName) - i);\n\t\t\t\treturn ( evalBaseObject = new ClassIdentifier(clas) );\n\t\t\t}\n\t\t\t// not a class (or variable per above)\n\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug( \"not a class, trying var prefix \"+evalName );\n\t\t}\n\n\n\t\t/*\n\t\t\tIf we didn't find a class or variable name (or prefix) above\n\t\t\tthere are two possibilities:\n\n\t\t\t- If we are a simple name then we can pass as a void variable \n\t\t\treference.\n\t\t\t- If we are compound then we must fail at this point.\n\t\t*/\n\t\tif ( evalBaseObject == null ) {\n\t\t\tif( !isCompound(evalName) ) {\n\t\t\t\tevalName = null; // finished\n\t\t\t\treturn evalBaseObject = Primitive.VOID;  // convention\n\t\t\t} else\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"Class or variable not found:\" + evalName);\n\t\t}\n\n\t\t/*\n\t\t\t--------------------------------------------------------\n\t\t\tAfter this point we're definitely evaluating relative to\n\t\t\ta base object.\n\t\t\t--------------------------------------------------------\n\t\t*/\n\n\t\t/*\n\t\t\tDo some basic validity checks.\n\t\t*/\n\n\t\tif(evalBaseObject == Primitive.NULL) // previous round produced null\n\t\t\tthrow new TargetError( \"Null Pointer while evaluating: \"\n\t\t\t\t+value, new NullPointerException() );\n\n\t\tif(evalBaseObject == Primitive.VOID) // previous round produced void\n\t\t\tthrow new EvalError(\n\t\t\t\t\"Undefined variable or class name while evaluating: \"+value);\n\n\t\tif(evalBaseObject instanceof Primitive)\n\t\t\tthrow new EvalError(\"Can't treat primitive like an object. \"+\n\t\t\t\"Error while evaluating: \"+value);\n\n\t\t/* \n\t\t\tResolve relative to a class type\n\t\t\tstatic field, inner class, ?\n\t\t*/\n\t\tif ( evalBaseObject instanceof ClassIdentifier ) \n\t\t{\n\t\t\tClass clas = ((ClassIdentifier)evalBaseObject).getTargetClass();\n\t\t\tString field = prefix(evalName, 1);\n\n\t\t\tObject obj = null;\n\t\t\t// static field?\n\t\t\ttry {\n\t\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\t\tInterpreter.debug(\"Name call to getStaticField, class: \" \n\t\t\t\t\t\t+clas+\", field:\"+field);\n\t\t\t\tobj = Reflect.getStaticField(clas, field);\n\t\t\t} catch( ReflectError e ) { \n\t\t\t\tif ( Interpreter.DEBUG ) \n\t\t\t\t\tInterpreter.debug(\"field reflect error: \"+e);\n\t\t\t}\n\n\t\t\t// inner class?\n\t\t\tif ( obj == null ) {\n\t\t\t\tString iclass = clas.getName()+\"$\"+field;\n\t\t\t\tClass c = namespace.getClass( iclass );\n\t\t\t\tif ( c != null )\n\t\t\t\t\tobj = new ClassIdentifier(c);\n\t\t\t}\n\n\t\t\tif ( obj == null )\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"No static field or inner class: \" + field + \" of \" + clas);\n\n\t\t\tevalName = suffix(evalName);\n\t\t\treturn (evalBaseObject = obj);\n\t\t}\n\n\t\t/*\n\t\t\tIf we've fallen through here we are no longer resolving to\n\t\t\ta class type.\n\t\t*/\n\t\tif ( forceClass )\n\t\t\tthrow new EvalError( value +\" does not resolve to a class name.\" );\n\n\t\t/* \n\t\t\tSome kind of field access?\n\t\t*/\n\n\t\tString field = prefix(evalName, 1);\n\n\t\t/* length access on array? */\n\t\tif(field.equals(\"length\") && evalBaseObject.getClass().isArray())\n\t\t{\n\t\t\tObject obj = new Primitive(Array.getLength(evalBaseObject));\n\t\t\tevalName = suffix(evalName);\n\t\t\treturn (evalBaseObject = obj);\n\t\t}\n\n\t\t/* check for field on object */\n\t\t// Note: could eliminate throwing the exception somehow\n\t\ttry\n\t\t{\n\t\t\tObject obj = Reflect.getObjectField(evalBaseObject, field);\n\t\t\tevalName = suffix(evalName);\n\t\t\treturn (evalBaseObject = obj);\n\t\t}\n\t\tcatch(ReflectError e) { /* not a field */ }\n\t\n\t\t// if we get here we have failed\n\t\tthrow new EvalError(\n\t\t\t\"Cannot access field: \" + field + \", on object: \" + evalBaseObject);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "TRY", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "RETURN", "IF", "IF", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "RETURN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [2, 18], [2, 19], [2, 20], [3, 21], [5, 22], [6, 23], [7, 24], [7, 25], [8, 26], [8, 27], [9, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [17, 34], [19, 35], [2, 36], [3, 37], [3, 38], [21, 39], [21, 40], [4, 41], [22, 42], [6, 43], [6, 44], [6, 45], [6, 46], [6, 47], [6, 48], [6, 49], [24, 50], [26, 51], [28, 52], [10, 53], [30, 54], [11, 55], [11, 56], [11, 57], [11, 58], [11, 59], [11, 60], [31, 61], [12, 62], [12, 63], [12, 64], [12, 65], [12, 66], [32, 67], [13, 68], [13, 69], [33, 70], [34, 71], [36, 72], [20, 73], [37, 74], [3, 75], [39, 76], [40, 77], [41, 78], [42, 79], [43, 80], [6, 81], [44, 82], [44, 83], [45, 84], [46, 85], [46, 86], [50, 87], [51, 88], [52, 89], [52, 90], [53, 91], [53, 92], [56, 93], [57, 94], [57, 95], [62, 96], [63, 97], [67, 98], [67, 99], [68, 100], [70, 101], [70, 102], [71, 103], [71, 104], [75, 105], [38, 106], [79, 107], [81, 108], [82, 109], [83, 110], [45, 111], [45, 112], [45, 113], [84, 114], [85, 115], [46, 116], [47, 117], [48, 118], [87, 119], [88, 120], [90, 121], [91, 122], [53, 123], [55, 124], [56, 125], [93, 126], [94, 127], [94, 128], [95, 129], [58, 130], [59, 131], [60, 132], [62, 133], [62, 134], [97, 135], [65, 136], [66, 137], [99, 138], [68, 139], [69, 140], [102, 141], [104, 142], [106, 143], [109, 144], [111, 145], [116, 146], [86, 147], [118, 148], [119, 149], [119, 150], [122, 151], [123, 152], [53, 153], [124, 154], [125, 155], [56, 156], [128, 157], [128, 158], [132, 159], [133, 160], [62, 161], [63, 162], [63, 163], [136, 164], [137, 165], [139, 166], [68, 167], [140, 168], [144, 169], [111, 170], [145, 171], [112, 172], [113, 173], [115, 174], [147, 175], [151, 176], [153, 177], [154, 178], [155, 179], [156, 180], [158, 181], [159, 182], [161, 183], [134, 184], [162, 185], [163, 186], [164, 187], [167, 188], [169, 189], [169, 190], [170, 191], [173, 192], [174, 193], [175, 194], [180, 195], [181, 196], [184, 197], [185, 198], [186, 199], [190, 200], [192, 201], [192, 202], [193, 203], [194, 204], [194, 205], [195, 206], [197, 207], [205, 208], [207, 209], [207, 210], [210, 211], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 2], [19, 2], [20, 2], [21, 3], [22, 5], [23, 6], [24, 7], [25, 7], [26, 8], [27, 8], [28, 9], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 17], [35, 19], [36, 2], [37, 3], [38, 3], [39, 21], [40, 21], [41, 4], [42, 22], [43, 6], [44, 6], [45, 6], [46, 6], [47, 6], [48, 6], [49, 6], [50, 24], [51, 26], [52, 28], [53, 10], [54, 30], [55, 11], [56, 11], [57, 11], [58, 11], [59, 11], [60, 11], [61, 31], [62, 12], [63, 12], [64, 12], [65, 12], [66, 12], [67, 32], [68, 13], [69, 13], [70, 33], [71, 34], [72, 36], [73, 20], [74, 37], [75, 3], [76, 39], [77, 40], [78, 41], [79, 42], [80, 43], [81, 6], [82, 44], [83, 44], [84, 45], [85, 46], [86, 46], [87, 50], [88, 51], [89, 52], [90, 52], [91, 53], [92, 53], [93, 56], [94, 57], [95, 57], [96, 62], [97, 63], [98, 67], [99, 67], [100, 68], [101, 70], [102, 70], [103, 71], [104, 71], [105, 75], [106, 38], [107, 79], [108, 81], [109, 82], [110, 83], [111, 45], [112, 45], [113, 45], [114, 84], [115, 85], [116, 46], [117, 47], [118, 48], [119, 87], [120, 88], [121, 90], [122, 91], [123, 53], [124, 55], [125, 56], [126, 93], [127, 94], [128, 94], [129, 95], [130, 58], [131, 59], [132, 60], [133, 62], [134, 62], [135, 97], [136, 65], [137, 66], [138, 99], [139, 68], [140, 69], [141, 102], [142, 104], [143, 106], [144, 109], [145, 111], [146, 116], [147, 86], [148, 118], [149, 119], [150, 119], [151, 122], [152, 123], [153, 53], [154, 124], [155, 125], [156, 56], [157, 128], [158, 128], [159, 132], [160, 133], [161, 62], [162, 63], [163, 63], [164, 136], [165, 137], [166, 139], [167, 68], [168, 140], [169, 144], [170, 111], [171, 145], [172, 112], [173, 113], [174, 115], [175, 147], [176, 151], [177, 153], [178, 154], [179, 155], [180, 156], [181, 158], [182, 159], [183, 161], [184, 134], [185, 162], [186, 163], [187, 164], [188, 167], [189, 169], [190, 169], [191, 170], [192, 173], [193, 174], [194, 175], [195, 180], [196, 181], [197, 184], [198, 185], [199, 186], [200, 190], [201, 192], [202, 192], [203, 193], [204, 194], [205, 194], [206, 195], [207, 197], [208, 205], [209, 207], [210, 207], [211, 210], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211]]}, {"function_name": "resolveThisFieldReference", "code": "\tObject resolveThisFieldReference( \n\t\tCallStack callstack, NameSpace thisNamespace, Interpreter interpreter, \n\t\tString varName, boolean specialFieldsVisible ) \n\t\tthrows EvalError\n\t{\n\t\tObject obj = null;\n\t\t// preserve the state of the last round flags until the end\n\t\tboolean \n\t\t\twasThis = false,\t\t\n\t\t\twasCaller = false;\n\n\t\tif ( varName.equals(\"this\") ) {\n\t\t\t// Hack! If the special fields are visible turn of further .this\n\t\t\t// prevent user from skipping to things like super.this.caller\n\t\t\tif ( specialFieldsVisible )\n\t\t\t\tthrow new EvalError(\"Redundant to call .this on This type\");\n\t\t\tobj = thisNamespace.getThis( interpreter );\n\t\t\twasThis = true;\n\t\t} \n\n\t\tif ( obj == null ) {\n\t\t\tif ( varName.equals(\"super\") )\n\t\t\t\tobj = thisNamespace.getSuper().getThis( interpreter );\n\t\t\telse if ( varName.equals(\"global\") )\n\t\t\t\tobj = thisNamespace.getGlobal().getThis( interpreter );\n\t\t}\n\n\t\tif ( obj == null && specialFieldsVisible ) {\n\t\t\tif (varName.equals(\"namespace\"))\n\t\t\t\tobj = thisNamespace;\n\t\t\telse if (varName.equals(\"variables\"))\n\t\t\t\tobj = thisNamespace.getVariableNames();\n\t\t\telse if (varName.equals(\"methods\"))\n\t\t\t\tobj = thisNamespace.getMethodNames();\n\t\t\telse if ( varName.equals(\"interpreter\") )\n\t\t\t\tif ( literalThisReference )\n\t\t\t\t\tobj = interpreter;\n\t\t\t\telse\n\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\t\"Can only call .interpreter on literal 'this'\");\n\t\t}\n\n\t\tif ( obj == null && specialFieldsVisible && varName.equals(\"caller\") )\n\t\t{\n\t\t\tif ( literalThisReference || literalCallerReference ) \n\t\t\t{\n\t\t\t\t// get the previous context (see notes for this class)\n\t\t\t\tif ( callstack == null )\n\t\t\t\t\tthrow new InterpreterError(\"no callstack\");\n\t\t\t\tobj = callstack.get( ++callstackDepth ).getThis( \n\t\t\t\t\tinterpreter ); \n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\"Can only call .caller on literal 'this' or literal '.caller'\");\n\n\t\t\twasCaller = true;\n\t\t}\n\n\t\tif ( obj == null && specialFieldsVisible \n\t\t\t&& varName.equals(\"callstack\") )\n\t\t{\n\t\t\tif ( literalThisReference ) \n\t\t\t{\n\t\t\t\t// get the previous context (see notes for this class)\n\t\t\t\tif ( callstack == null )\n\t\t\t\t\tthrow new InterpreterError(\"no callstack\");\n\t\t\t\tobj = callstack;\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\"Can only call .callstack on literal 'this'\");\n\t\t}\n\n\n\t\tif ( obj == null )\n\t\t\tobj = thisNamespace.getVariable(varName);\n\n\t\tliteralThisReference = wasThis;\n\t\tliteralCallerReference = wasCaller;\n\t\treturn obj;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "ASSIGN", "THROW_RAISE", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "THROW_RAISE", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [2, 17], [3, 18], [4, 19], [5, 20], [6, 21], [7, 22], [2, 23], [17, 24], [3, 25], [18, 26], [18, 27], [4, 28], [19, 29], [19, 30], [5, 31], [20, 32], [6, 33], [21, 34], [7, 35], [22, 36], [8, 37], [8, 38], [9, 39], [23, 40], [25, 41], [26, 42], [27, 43], [4, 44], [28, 45], [28, 46], [29, 47], [30, 48], [31, 49], [31, 50], [32, 51], [33, 52], [33, 53], [7, 54], [7, 55], [35, 56], [41, 57], [25, 58], [43, 59], [44, 60], [45, 61], [28, 62], [48, 63], [49, 64], [49, 65], [31, 66], [50, 67], [52, 68], [33, 69], [53, 70], [54, 71], [55, 72], [56, 73], [57, 74], [25, 75], [58, 76], [58, 77], [61, 78], [28, 79], [62, 80], [62, 81], [64, 82], [64, 83], [49, 84], [65, 85], [52, 86], [68, 87], [69, 88], [73, 89], [76, 90], [77, 91], [79, 92], [80, 93], [81, 94], [82, 95], [82, 96], [64, 97], [83, 98], [84, 99], [86, 100], [88, 101], [90, 102], [92, 103], [93, 104], [95, 105], [96, 106], [97, 107], [100, 108], [105, 109], [95, 110], [109, 111], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 2], [18, 3], [19, 4], [20, 5], [21, 6], [22, 7], [23, 2], [24, 17], [25, 3], [26, 18], [27, 18], [28, 4], [29, 19], [30, 19], [31, 5], [32, 20], [33, 6], [34, 21], [35, 7], [36, 22], [37, 8], [38, 8], [39, 9], [40, 23], [41, 25], [42, 26], [43, 27], [44, 4], [45, 28], [46, 28], [47, 29], [48, 30], [49, 31], [50, 31], [51, 32], [52, 33], [53, 33], [54, 7], [55, 7], [56, 35], [57, 41], [58, 25], [59, 43], [60, 44], [61, 45], [62, 28], [63, 48], [64, 49], [65, 49], [66, 31], [67, 50], [68, 52], [69, 33], [70, 53], [71, 54], [72, 55], [73, 56], [74, 57], [75, 25], [76, 58], [77, 58], [78, 61], [79, 28], [80, 62], [81, 62], [82, 64], [83, 64], [84, 49], [85, 65], [86, 52], [87, 68], [88, 69], [89, 73], [90, 76], [91, 77], [92, 79], [93, 80], [94, 81], [95, 82], [96, 82], [97, 64], [98, 83], [99, 84], [100, 86], [101, 88], [102, 90], [103, 92], [104, 93], [105, 95], [106, 96], [107, 97], [108, 100], [109, 105], [110, 95], [111, 109], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111]]}, {"function_name": "toClass", "code": "\tsynchronized public Class toClass() throws EvalError \n\t{\n\t\treset();\n\n\t\t/* Try straightforward class name first */\n\t\tClass clas = namespace.getClass(evalName);\n\n\t\tif ( clas == null ) {\n\t\t\t/* \n\t\t\t\tTry toObject() which knows how to work through inner classes\n\t\t\t\tand see what we end up with \n\t\t\t*/\n\t\t\tObject obj = null;\n\t\t\ttry {\n\t\t\t\t// Null interpreter and callstack references.\n\t\t\t\t// class only resolution should not require them.\n\t\t\t\tobj = toObject( null, null, true );  \n\t\t\t} catch ( EvalError  e ) { }; // couldn't resolve it\n\t\t\n\t\t\tif ( obj instanceof ClassIdentifier )\n\t\t\t\tclas = ((ClassIdentifier)obj).getTargetClass();\n\t\t}\n\n\t\tif( clas == null )\n\t\t\tthrow new EvalError(\n\t\t\t\t\"Class: \" + value+ \" not found in namespace\");\n\n\t\treturn clas;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [0, 8], [5, 9], [6, 10], [3, 11], [3, 12], [3, 13], [7, 14], [4, 15], [9, 16], [11, 17], [12, 18], [16, 19], [16, 20], [11, 21], [12, 22], [13, 23], [20, 24], [22, 25], [25, 26], [25, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 0], [9, 5], [10, 6], [11, 3], [12, 3], [13, 3], [14, 7], [15, 4], [16, 9], [17, 11], [18, 12], [19, 16], [20, 16], [21, 11], [22, 12], [23, 13], [24, 20], [25, 22], [26, 25], [27, 25], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "toLHS", "code": "\tsynchronized public LHS toLHS( \n\t\tCallStack callstack, Interpreter interpreter )\n\t\tthrows EvalError\n\t{\n\t\treset();\n\n\t\t/* if ( Interpreter.DEBUG ) \n\t\t\tInterpreter.debug(\"Name toLHS: \"+evalName+ \" isCompound = \"\n\t\t\t+ isCompound(evalName));\n\t\t*/\n\n\t\t// variable\n\t\tif(!isCompound(evalName)) {\n\t\t\t//if ( Interpreter.DEBUG ) \n\t\t\t\t//Interpreter.debug(\"returning simple var LHS...\");\n\t\t\treturn new LHS(namespace,evalName);\n\t\t}\n\n\t\t// field\n\t\tObject obj = null;\n\t\ttry\n\t\t{\n\t\t\twhile(isCompound(evalName))\n\t\t\t\tobj = consumeNextObjectField( callstack, interpreter, false );\n\t\t}\n\t\tcatch( EvalError e )\n\t\t{\n\t\t\tthrow new EvalError(\"LHS evaluation: \" + e);\n\t\t}\n\n\t\tif ( obj == null )\n\t\t\tthrow new InterpreterError(\"internal error 2893749283\");\n\n\t\tif(obj instanceof This)\n\t\t{\n\t\t\tInterpreter.debug(\"found This reference evaluating LHS\");\n\t\t\treturn new LHS(((This)obj).namespace, evalName);\n\t\t}\n\n\t\tif(evalName != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n//System.err.println(\"Name getLHSObjectField call obj = \"\n//\t+obj+\", name=\"+evalName);\n\n\t\t\t\tif ( obj instanceof ClassIdentifier ) \n\t\t\t\t{\n\t\t\t\t\tClass clas = ((ClassIdentifier)obj).getTargetClass();\n\t\t\t\t\treturn Reflect.getLHSStaticField(clas, evalName);\n\t\t\t\t} else\n\t\t\t\t\treturn Reflect.getLHSObjectField(obj, evalName);\n\t\t\t} catch(ReflectError e)\n\t\t\t{\n\t\t\t\tthrow new EvalError(\"Field access: \"+e);\n\t\t\t}\n\t\t}\n\n\t\tthrow new InterpreterError(\"Internal error in lhs...\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "IF", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CATCH", "LOOP", "CALL", "CALL", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "RETURN", "CATCH", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [4, 13], [4, 14], [5, 15], [5, 16], [7, 17], [0, 18], [10, 19], [2, 20], [11, 21], [3, 22], [13, 23], [14, 24], [15, 25], [16, 26], [6, 27], [7, 28], [20, 29], [20, 30], [22, 31], [3, 32], [23, 33], [25, 34], [16, 35], [28, 36], [29, 37], [30, 38], [30, 39], [32, 40], [34, 41], [35, 42], [37, 43], [38, 44], [30, 45], [30, 46], [41, 47], [42, 48], [43, 49], [45, 50], [49, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 4], [14, 4], [15, 5], [16, 5], [17, 7], [18, 0], [19, 10], [20, 2], [21, 11], [22, 3], [23, 13], [24, 14], [25, 15], [26, 16], [27, 6], [28, 7], [29, 20], [30, 20], [31, 22], [32, 3], [33, 23], [34, 25], [35, 16], [36, 28], [37, 29], [38, 30], [39, 30], [40, 32], [41, 34], [42, 35], [43, 37], [44, 38], [45, 30], [46, 30], [47, 41], [48, 42], [49, 43], [50, 45], [51, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "toLocalMethod", "code": "\tprivate BshMethod toLocalMethod( Object [] args )\n\t{\n\t\tClass [] sig = Reflect.getTypes( args );\n\t\treturn namespace.getMethod( value, sig );", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "invokeMethod", "code": "    public Object invokeMethod(\n\t\tInterpreter interpreter, Object[] args, CallStack callstack,\n\t\tSimpleNode callerInfo\n\t)\n        throws EvalError, ReflectError, InvocationTargetException\n    {\n        if ( !Name.isCompound(value) )\n            return invokeLocalMethod(interpreter, args, callstack, callerInfo);\n\n        // find target object\n        Name targetName = namespace.getNameResolver( Name.prefix(value));\n        String methodName = Name.suffix(value, 1);\n\n        Object obj = targetName.toObject( callstack, interpreter );\n\n\t\tif ( obj == Primitive.VOID ) \n\t\t\tthrow new EvalError( \"Attempt to invoke method: \"+methodName\n\t\t\t\t\t+\"() on undefined variable or class name: \"+targetName);\n\n        // if we've got an object, invoke the method\n        if ( !(obj instanceof Name.ClassIdentifier) ) {\n\n            if (obj instanceof Primitive) {\n\n                if (obj == Primitive.NULL)\n                    throw new TargetError( \"Null Pointer in Method Invocation\",\n\t\t\t\t\tnew NullPointerException() );\n\n                // some other primitive\n                // should avoid calling methods on primitive, as we do\n                // in Name (can't treat primitive like an object message)\n                // but the hole is useful right now.\n                interpreter.error(\"Attempt to access method on primitive...\" +\n                    \" allowing bsh.Primitive to peek through for debugging\");\n            }\n\n            // found an object and it's not an undefined variable\n            return Reflect.invokeObjectMethod(\n\t\t\t\tinterpreter, obj, methodName, args, callerInfo);\n        }\n\n        // try static method\n        if ( Interpreter.DEBUG ) \n\t\t\tInterpreter.debug(\"invokeMethod: trying static - \" + targetName);\n\n        Class clas = ((Name.ClassIdentifier)obj).getTargetClass();\n        if (clas != null)\n            return Reflect.invokeStaticMethod(clas, methodName, args);\n\n        // return null; ???\n\t\tthrow new EvalError(\"unknown target: \" + targetName);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [2, 16], [2, 17], [5, 18], [6, 19], [6, 20], [10, 21], [10, 22], [15, 23], [16, 24], [17, 25], [4, 26], [5, 27], [5, 28], [19, 29], [7, 30], [8, 31], [9, 32], [21, 33], [23, 34], [26, 35], [27, 36], [28, 37], [29, 38], [31, 39], [32, 40], [35, 41], [28, 42], [38, 43], [28, 44], [42, 45], [42, 46], [43, 47], [43, 48], [44, 49], [45, 50], [48, 51], [49, 52], [49, 53], [50, 54], [50, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 2], [17, 2], [18, 5], [19, 6], [20, 6], [21, 10], [22, 10], [23, 15], [24, 16], [25, 17], [26, 4], [27, 5], [28, 5], [29, 19], [30, 7], [31, 8], [32, 9], [33, 21], [34, 23], [35, 26], [36, 27], [37, 28], [38, 29], [39, 31], [40, 32], [41, 35], [42, 28], [43, 38], [44, 28], [45, 42], [46, 42], [47, 43], [48, 43], [49, 44], [50, 45], [51, 48], [52, 49], [53, 49], [54, 50], [55, 50], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "invokeLocalMethod", "code": "    public Object invokeLocalMethod( \n\t\tInterpreter interpreter, Object[] args, CallStack callstack,\n\t\tSimpleNode callerInfo\n\t)\n        throws EvalError, ReflectError, InvocationTargetException\n    {\n        if ( Interpreter.DEBUG ) \n\t\t\tInterpreter.debug(\"invoke local method: \" + value);\n\n        // Check for locally declared method\n        BshMethod meth = toLocalMethod( args );\n        if ( meth != null )\n            return meth.invokeDeclaredMethod( args, interpreter, callstack, callerInfo );\n        else\n            if ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug(\"no locally declared method: \" + value);\n\n        /*\n\t\t\tLook for scripted command as resource\n\t\t*/\n\t\t// Why not /bsh/commands here?  Why relative to Interpreter?\n        String commandName = \"commands/\" + value + \".bsh\";\n        InputStream in = Interpreter.class.getResourceAsStream(commandName);\n        if (in != null)\n        {\n            if ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug(\"loading resource: \" + commandName);\n\n\t\t\tif ( interpreter == null )\n\t\t\t\tthrow new InterpreterError(\"2234432 interpreter = null\");\n\n            interpreter.eval( \n\t\t\t\tnew InputStreamReader(in), namespace, commandName);\n\n            // try again\n            meth = toLocalMethod( args );\n            if(meth != null)\n                return meth.invokeDeclaredMethod( \n\t\t\t\t\targs, interpreter, callstack, callerInfo );\n            else\n                throw new EvalError(\"Loaded resource: \" + commandName +\n                    \"had an error or did not contain the correct method\");\n        }\n\n        // check for compiled bsh command class\n        commandName = \"bsh.commands.\" + value;\n        // create class outside of any namespace\n        Class c = BshClassManager.classForName( commandName );\n        if(c == null)\n            throw new EvalError(\"Command not found: \" + value);\n\n        // add interpereter and namespace to args list\n        Object[] invokeArgs = new Object[args.length + 2];\n        invokeArgs[0] = interpreter;\n        invokeArgs[1] = namespace;\n        System.arraycopy(args, 0, invokeArgs, 2, args.length);\n        try\n        {\n            return Reflect.invokeStaticMethod(c, \"invoke\", invokeArgs);\n        }\n        catch(ReflectError e)\n        {\n            if ( Interpreter.DEBUG ) \n\t\t\t\tInterpreter.debug(\"invoke command args error:\" + e);\n            // bad args\n        }\n        // try to print help\n        try\n        {\n            String s = (String)Reflect.invokeStaticMethod(c, \"usage\", null);\n            interpreter.println(s);\n            return Primitive.VOID;\n        }\n        catch(ReflectError e)\n        {\n            if ( Interpreter.DEBUG ) Interpreter.debug(\"usage threw: \" + e);\n            throw new EvalError(\"Wrong number or type of args for command\");", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "CATCH", "RETURN", "CALL", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "THROW_RAISE", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [1, 17], [1, 18], [2, 19], [2, 20], [0, 21], [0, 22], [0, 23], [4, 24], [4, 25], [0, 26], [6, 27], [9, 28], [9, 29], [9, 30], [16, 31], [16, 32], [1, 33], [19, 34], [20, 35], [21, 36], [21, 37], [24, 38], [25, 39], [5, 40], [26, 41], [6, 42], [6, 43], [6, 44], [27, 45], [7, 46], [8, 47], [29, 48], [30, 49], [10, 50], [11, 51], [31, 52], [35, 53], [3, 54], [38, 55], [41, 56], [42, 57], [42, 58], [42, 59], [6, 60], [6, 61], [43, 62], [43, 63], [47, 64], [47, 65], [28, 66], [51, 67], [52, 68], [32, 69], [18, 70], [34, 71], [22, 72], [23, 73], [54, 74], [55, 75], [57, 76], [58, 77], [59, 78], [60, 79], [61, 80], [62, 81], [63, 82], [44, 83], [65, 84], [66, 85], [67, 86], [69, 87], [70, 88], [70, 89], [71, 90], [76, 91], [81, 92], [83, 93], [85, 94], [87, 95], [90, 96], [91, 97], [91, 98], [93, 99], [98, 100], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 1], [18, 1], [19, 2], [20, 2], [21, 0], [22, 0], [23, 0], [24, 4], [25, 4], [26, 0], [27, 6], [28, 9], [29, 9], [30, 9], [31, 16], [32, 16], [33, 1], [34, 19], [35, 20], [36, 21], [37, 21], [38, 24], [39, 25], [40, 5], [41, 26], [42, 6], [43, 6], [44, 6], [45, 27], [46, 7], [47, 8], [48, 29], [49, 30], [50, 10], [51, 11], [52, 31], [53, 35], [54, 3], [55, 38], [56, 41], [57, 42], [58, 42], [59, 42], [60, 6], [61, 6], [62, 43], [63, 43], [64, 47], [65, 47], [66, 28], [67, 51], [68, 52], [69, 32], [70, 18], [71, 34], [72, 22], [73, 23], [74, 54], [75, 55], [76, 57], [77, 58], [78, 59], [79, 60], [80, 61], [81, 62], [82, 63], [83, 44], [84, 65], [85, 66], [86, 67], [87, 69], [88, 70], [89, 70], [90, 71], [91, 76], [92, 81], [93, 83], [94, 85], [95, 87], [96, 90], [97, 91], [98, 91], [99, 93], [100, 98], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100]]}, {"function_name": "isCompound", "code": "\tstatic boolean isCompound(String value)\n\t{\n\t\treturn countParts(value) > 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "countParts", "code": "\tstatic int countParts(String value)\n\t{\n\t\tif(value == null)\n\t\t\treturn 0;\n\n\t\tint count = 0;\n\t\tint index = -1;\n\t\twhile((index = value.indexOf('.', index + 1)) != -1)\n\t\t\tcount++;\n\t\treturn count + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [5, 9], [5, 10], [7, 11], [8, 12], [8, 13], [3, 14], [4, 15], [9, 16], [10, 17], [13, 18], [18, 19], [18, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 5], [10, 5], [11, 7], [12, 8], [13, 8], [14, 3], [15, 4], [16, 9], [17, 10], [18, 13], [19, 18], [20, 18], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "prefix", "code": "\tstatic String prefix(String value)\n\t{\n\t\tif(!isCompound(value))\n\t\t\treturn null;\n\n\t\treturn prefix(value, countParts(value) - 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [5, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 5], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "prefix", "code": "\tstatic String prefix(String value, int parts)\n\t{\n\t\tif(parts < 1)\n\t\t\treturn null;\n\n\t\tint count = 0;\n\t\tint index = -1;\n\n\t\twhile(((index = value.indexOf('.', index + 1)) != -1) && (++count < parts))\n\t\t{ ; }\n\n\t\treturn (index == -1) ? value : value.substring(0, index);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [5, 10], [5, 11], [8, 12], [8, 13], [9, 14], [9, 15], [3, 16], [4, 17], [10, 18], [11, 19], [12, 20], [13, 21], [15, 22], [15, 23], [23, 24], [24, 25], [24, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 5], [11, 5], [12, 8], [13, 8], [14, 9], [15, 9], [16, 3], [17, 4], [18, 10], [19, 11], [20, 12], [21, 13], [22, 15], [23, 15], [24, 23], [25, 24], [26, 24], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "suffix", "code": "\tstatic String suffix(String name)\n\t{\n\t\tif(!isCompound(name))\n\t\t\treturn null;\n\n\t\treturn suffix(name, countParts(name) - 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [5, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 5], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "suffix", "code": "\tpublic static String suffix(String value, int parts)\n\t{\n\t\tif(parts < 1)\n\t\t\treturn null;\n\n\t\tint count = 0;\n\t\tint index = value.length() + 1;\n\n\t\twhile(((index = value.lastIndexOf('.', index - 1)) != -1) && (++count < parts))\n\t\t{ ; }\n\n\t\treturn (index == -1) ? value : value.substring(index + 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [5, 10], [5, 11], [8, 12], [8, 13], [9, 14], [9, 15], [3, 16], [4, 17], [10, 18], [11, 19], [12, 20], [13, 21], [15, 22], [15, 23], [16, 24], [16, 25], [20, 26], [23, 27], [27, 28], [27, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 5], [11, 5], [12, 8], [13, 8], [14, 9], [15, 9], [16, 3], [17, 4], [18, 10], [19, 11], [20, 12], [21, 13], [22, 15], [23, 15], [24, 16], [25, 16], [26, 20], [27, 23], [28, 27], [29, 27], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "toString", "code": "\tpublic String toString() { return value; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Name", "code": "\tpublic Name(NameSpace namespace, String s)\n\t{\n\t\tthis.namespace = namespace;\n\t\tvalue = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.2-1945", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/cxf/interceptors/AbstractMessageInInterceptor.java", "language": "java", "name": "org.apache.camel.component.cxf.interceptors.AbstractMessageInInterceptor", "code": "public abstract class AbstractMessageInInterceptor<T extends Message> \n       extends AbstractPhaseInterceptor<T> {\n    private static final Logger LOG = LogUtils.getL7dLogger(AbstractMessageInInterceptor.class);\n\n    public AbstractMessageInInterceptor(String phase) {\n        super(phase);\n    }\n\n    protected boolean isRequestor(Message message) {\n        return Boolean.TRUE.equals(message.get(Message.REQUESTOR_ROLE));\n    }\n\n   \n\n    /**\n     * Infer the OperationInfo from the XML Document and get the list of \n     * parts as DOM Element\n     */\n    public void handleMessage(T message) throws Fault {\n        Logger logger = getLogger();\n        \n        if (isFaultMessage(message)) {\n            message.getInterceptorChain().abort();\n            Endpoint ep = message.getExchange().get(Endpoint.class);\n            if (ep.getInFaultObserver() != null) {\n                ep.getInFaultObserver().onMessage(message);\n                return;\n            }\n        }\n\n        Document document = createDOMMessage(message);\n        Element payloadEl = (Element)document.getChildNodes().item(0);\n        \n        Exchange ex = message.getExchange();\n        BindingOperationInfo boi = ex.get(BindingOperationInfo.class);\n        if (boi == null) {\n            BindingInfo bi = ex.get(BindingInfo.class);\n            if (bi == null) {\n                Endpoint ep = ex.get(Endpoint.class);\n                bi = ep.getEndpointInfo().getBinding();\n                ex.put(BindingInfo.class, bi);\n            }\n            if (logger.isLoggable(Level.INFO)) {\n                logger.info(\"AbstractRoutingMessageInInterceptor Infer BindingOperationInfo.\");\n            }\n            \n            boi = getBindingOperation(message, document);\n\n            if (boi == null) {\n                QName startQName = new QName(payloadEl.getNamespaceURI(), payloadEl.getLocalName());\n                \n                throw new Fault(new org.apache.cxf.common.i18n.Message(\n                                \"REQ_NOT_UNDERSTOOD\", LOG, startQName));\n            }\n            \n            if (boi != null) {\n                ex.put(BindingOperationInfo.class, boi);\n                ex.put(OperationInfo.class, boi.getOperationInfo());\n                ex.setOneWay(boi.getOperationInfo().isOneWay());\n                if (logger.isLoggable(Level.INFO)) {\n                    logger.info(\"DOMInInterceptor- BindingOperation is:\" + boi.getName());\n                }                \n            }\n        }\n\n        BindingMessageInfo bmi = isRequestor(message) ?  boi.getOutput() : boi.getInput();\n        List<Element> partList = getPartList(message, payloadEl, bmi);        \n        message.put(List.class, partList);\n        \n        Element header = getHeader(message);\n        message.put(Element.class, header);\n    }\n\n    /**\n     * This method is called to convert a incoming message format e.g Stax Stream\n     * to a DOM Tree. Default Implementation converts Stax Stream to a DOM\n     * @param inMessage\n     * @param Document\n     */\n    protected Document createDOMMessage(T message) {\n        Document doc = null;\n        try {\n            if (getLogger().isLoggable(Level.INFO)) {\n                getLogger().info(\"AbstractMessageInInterceptor Converting Stax Stream to DOM\");\n            }\n            XMLStreamReader xsr = message.getContent(XMLStreamReader.class);            \n            doc = StaxUtils.read(xsr);\n        } catch (XMLStreamException xe) {\n            throw new Fault(new org.apache.cxf.common.i18n.Message(\"STAX_READ_EXC\", LOG), xe);\n        }\n        return doc;\n    }\n    \n    protected abstract Logger getLogger();\n\n    /**\n     * This method is called on incoming to check if it is a fault.\n     * @param inMessage\n     * @param boolean\n     */\n    protected abstract boolean isFaultMessage(T message);\n\n    /**\n     * This method is called when the routing message interceptor has received a inbound message\n     * It infers the binding operation by matching the root Element with a binding operation\n     * from the service model.\n     * @param inMessage\n     * @param resultPayload\n     */\n    protected abstract BindingOperationInfo getBindingOperation(T inMessage, Document document);\n\n    /**\n     * This method is called when the routing message interceptor has intercepted a inbound\n     * message as a DOM Content.  It retreives the message parts as DOM Element\n     * and returns a List<Element>\n     * @param inMessage\n     * @param rootElement\n     * @param bindingMessageInfo\n     * @return List<Element>\n     */\n    protected abstract List<Element> getPartList(T inMessage, Element rootElement, BindingMessageInfo boi);\n\n    /**\n     * This method is called when the routing message interceptor has intercepted a inbound\n     * message as a DOM Content.  It retreives the header parts as DOM Element\n     * and returns a Element.\n     * @param inMessage\n     * @return Element\n     */\n    protected abstract Element getHeader(T inMessage);", "functions": [{"function_name": "isRequestor", "code": "    protected boolean isRequestor(Message message) {\n        return Boolean.TRUE.equals(message.get(Message.REQUESTOR_ROLE));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "handleMessage", "code": "    public void handleMessage(T message) throws Fault {\n        Logger logger = getLogger();\n        \n        if (isFaultMessage(message)) {\n            message.getInterceptorChain().abort();\n            Endpoint ep = message.getExchange().get(Endpoint.class);\n            if (ep.getInFaultObserver() != null) {\n                ep.getInFaultObserver().onMessage(message);\n                return;\n            }\n        }\n\n        Document document = createDOMMessage(message);\n        Element payloadEl = (Element)document.getChildNodes().item(0);\n        \n        Exchange ex = message.getExchange();\n        BindingOperationInfo boi = ex.get(BindingOperationInfo.class);\n        if (boi == null) {\n            BindingInfo bi = ex.get(BindingInfo.class);\n            if (bi == null) {\n                Endpoint ep = ex.get(Endpoint.class);\n                bi = ep.getEndpointInfo().getBinding();\n                ex.put(BindingInfo.class, bi);\n            }\n            if (logger.isLoggable(Level.INFO)) {\n                logger.info(\"AbstractRoutingMessageInInterceptor Infer BindingOperationInfo.\");\n            }\n            \n            boi = getBindingOperation(message, document);\n\n            if (boi == null) {\n                QName startQName = new QName(payloadEl.getNamespaceURI(), payloadEl.getLocalName());\n                \n                throw new Fault(new org.apache.cxf.common.i18n.Message(\n                                \"REQ_NOT_UNDERSTOOD\", LOG, startQName));\n            }\n            \n            if (boi != null) {\n                ex.put(BindingOperationInfo.class, boi);\n                ex.put(OperationInfo.class, boi.getOperationInfo());\n                ex.setOneWay(boi.getOperationInfo().isOneWay());\n                if (logger.isLoggable(Level.INFO)) {\n                    logger.info(\"DOMInInterceptor- BindingOperation is:\" + boi.getName());\n                }                \n            }\n        }\n\n        BindingMessageInfo bmi = isRequestor(message) ?  boi.getOutput() : boi.getInput();\n        List<Element> partList = getPartList(message, payloadEl, bmi);        \n        message.put(List.class, partList);\n        \n        Element header = getHeader(message);\n        message.put(Element.class, header);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "COND_EXPR", "IF", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [4, 14], [9, 15], [1, 16], [2, 17], [3, 18], [4, 19], [4, 20], [4, 21], [4, 22], [4, 23], [14, 24], [5, 25], [6, 26], [8, 27], [9, 28], [9, 29], [10, 30], [18, 31], [18, 32], [18, 33], [19, 34], [20, 35], [4, 36], [21, 37], [22, 38], [7, 39], [28, 40], [9, 41], [19, 42], [34, 43], [20, 44], [20, 45], [35, 46], [36, 47], [22, 48], [38, 49], [23, 50], [39, 51], [28, 52], [40, 53], [40, 54], [29, 55], [41, 56], [42, 57], [19, 58], [19, 59], [19, 60], [44, 61], [21, 62], [22, 63], [22, 64], [51, 65], [28, 66], [55, 67], [58, 68], [59, 69], [61, 70], [45, 71], [62, 72], [64, 73], [48, 74], [66, 75], [42, 76], [68, 77], [70, 78], [71, 79], [71, 80], [73, 81], [76, 82], [82, 83], [82, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 4], [15, 9], [16, 1], [17, 2], [18, 3], [19, 4], [20, 4], [21, 4], [22, 4], [23, 4], [24, 14], [25, 5], [26, 6], [27, 8], [28, 9], [29, 9], [30, 10], [31, 18], [32, 18], [33, 18], [34, 19], [35, 20], [36, 4], [37, 21], [38, 22], [39, 7], [40, 28], [41, 9], [42, 19], [43, 34], [44, 20], [45, 20], [46, 35], [47, 36], [48, 22], [49, 38], [50, 23], [51, 39], [52, 28], [53, 40], [54, 40], [55, 29], [56, 41], [57, 42], [58, 19], [59, 19], [60, 19], [61, 44], [62, 21], [63, 22], [64, 22], [65, 51], [66, 28], [67, 55], [68, 58], [69, 59], [70, 61], [71, 45], [72, 62], [73, 64], [74, 48], [75, 66], [76, 42], [77, 68], [78, 70], [79, 71], [80, 71], [81, 73], [82, 76], [83, 82], [84, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "createDOMMessage", "code": "    protected Document createDOMMessage(T message) {\n        Document doc = null;\n        try {\n            if (getLogger().isLoggable(Level.INFO)) {\n                getLogger().info(\"AbstractMessageInInterceptor Converting Stax Stream to DOM\");\n            }\n            XMLStreamReader xsr = message.getContent(XMLStreamReader.class);            \n            doc = StaxUtils.read(xsr);\n        } catch (XMLStreamException xe) {\n            throw new Fault(new org.apache.cxf.common.i18n.Message(\"STAX_READ_EXC\", LOG), xe);\n        }\n        return doc;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "CATCH", "VAR_DECL", "IF", "THROW_RAISE", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [2, 9], [7, 10], [3, 11], [8, 12], [9, 13], [6, 14], [10, 15], [12, 16], [7, 17], [16, 18], [17, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 2], [10, 7], [11, 3], [12, 8], [13, 9], [14, 6], [15, 10], [16, 12], [17, 7], [18, 16], [19, 17], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getLogger", "code": "    protected abstract Logger getLogger();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "isFaultMessage", "code": "    protected abstract boolean isFaultMessage(T message);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBindingOperation", "code": "    protected abstract BindingOperationInfo getBindingOperation(T inMessage, Document document);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPartList", "code": "    protected abstract List<Element> getPartList(T inMessage, Element rootElement, BindingMessageInfo boi);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getHeader", "code": "    protected abstract Element getHeader(T inMessage);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "AbstractMessageInInterceptor", "code": "    public AbstractMessageInInterceptor(String phase) {\n        super(phase);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.7-8325", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/SAXSourceLocator.java", "language": "java", "name": "org.apache.xml.utils.SAXSourceLocator", "code": "public class SAXSourceLocator extends LocatorImpl\n        implements SourceLocator, Serializable\n{\n    static final long serialVersionUID = 3181680946321164112L;\n  /** The SAX Locator object.\n   *  @serial\n   */\n  Locator m_locator;\n\n  /**\n   * Constructor SAXSourceLocator\n   *\n   */\n  public SAXSourceLocator(){}\n\n  /**\n   * Constructor SAXSourceLocator\n   *\n   *\n   * @param locator Source locator\n   */\n  public SAXSourceLocator(Locator locator)\n  {\n    m_locator = locator;\n    this.setColumnNumber(locator.getColumnNumber());\n    this.setLineNumber(locator.getLineNumber());\n    this.setPublicId(locator.getPublicId());\n    this.setSystemId(locator.getSystemId());\n  }\n  \n  /**\n   * Constructor SAXSourceLocator\n   *\n   *\n   * @param locator Source locator\n   */\n  public SAXSourceLocator(javax.xml.transform.SourceLocator locator)\n  {\n    m_locator = null;\n    this.setColumnNumber(locator.getColumnNumber());\n    this.setLineNumber(locator.getLineNumber());\n    this.setPublicId(locator.getPublicId());\n    this.setSystemId(locator.getSystemId());\n  }\n\n  \n  /**\n   * Constructor SAXSourceLocator\n   *\n   *\n   * @param spe SAXParseException exception.\n   */\n  public SAXSourceLocator(SAXParseException spe)\n  {\n    this.setLineNumber( spe.getLineNumber() );\n    this.setColumnNumber( spe.getColumnNumber() );\n    this.setPublicId( spe.getPublicId() );\n    this.setSystemId( spe.getSystemId() );\n  }\n  \n  /**\n   * Return the public identifier for the current document event.\n   *\n   * <p>The return value is the public identifier of the document\n   * entity or of the external parsed entity in which the markup\n   * triggering the event appears.</p>\n   *\n   * @return A string containing the public identifier, or\n   *         null if none is available.\n   * @see #getSystemId\n   */\n  public String getPublicId()\n  {\n    return (null == m_locator) ? super.getPublicId() : m_locator.getPublicId();\n  }\n\n  /**\n   * Return the system identifier for the current document event.\n   *\n   * <p>The return value is the system identifier of the document\n   * entity or of the external parsed entity in which the markup\n   * triggering the event appears.</p>\n   *\n   * <p>If the system identifier is a URL, the parser must resolve it\n   * fully before passing it to the application.</p>\n   *\n   * @return A string containing the system identifier, or null\n   *         if none is available.\n   * @see #getPublicId\n   */\n  public String getSystemId()\n  {\n    return (null == m_locator) ? super.getSystemId() : m_locator.getSystemId();\n  }\n  \n  /**\n   * Return the line number where the current document event ends.\n   *\n   * <p><strong>Warning:</strong> The return value from the method\n   * is intended only as an approximation for the sake of error\n   * reporting; it is not intended to provide sufficient information\n   * to edit the character content of the original XML document.</p>\n   *\n   * <p>The return value is an approximation of the line number\n   * in the document entity or external parsed entity where the\n   * markup triggering the event appears.</p>\n   *\n   * @return The line number, or -1 if none is available.\n   * @see #getColumnNumber\n   */\n  public int getLineNumber()\n  {\n    return (null == m_locator) ? super.getLineNumber() : m_locator.getLineNumber();\n  }\n\n  /**\n   * Return the column number where the current document event ends.\n   *\n   * <p><strong>Warning:</strong> The return value from the method\n   * is intended only as an approximation for the sake of error\n   * reporting; it is not intended to provide sufficient information\n   * to edit the character content of the original XML document.</p>\n   *\n   * <p>The return value is an approximation of the column number\n   * in the document entity or external parsed entity where the\n   * markup triggering the event appears.</p>\n   *\n   * @return The column number, or -1 if none is available.\n   * @see #getLineNumber\n   */\n  public int getColumnNumber()\n  {\n    return (null == m_locator) ? super.getColumnNumber() : m_locator.getColumnNumber();", "functions": [{"function_name": "getPublicId", "code": "  public String getPublicId()\n  {\n    return (null == m_locator) ? super.getPublicId() : m_locator.getPublicId();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSystemId", "code": "  public String getSystemId()\n  {\n    return (null == m_locator) ? super.getSystemId() : m_locator.getSystemId();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getLineNumber", "code": "  public int getLineNumber()\n  {\n    return (null == m_locator) ? super.getLineNumber() : m_locator.getLineNumber();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getColumnNumber", "code": "  public int getColumnNumber()\n  {\n    return (null == m_locator) ? super.getColumnNumber() : m_locator.getColumnNumber();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "SAXSourceLocator", "code": "  public SAXSourceLocator(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "SAXSourceLocator", "code": "  public SAXSourceLocator(Locator locator)\n  {\n    m_locator = locator;\n    this.setColumnNumber(locator.getColumnNumber());\n    this.setLineNumber(locator.getLineNumber());\n    this.setPublicId(locator.getPublicId());\n    this.setSystemId(locator.getSystemId());", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "SAXSourceLocator", "code": "  public SAXSourceLocator(javax.xml.transform.SourceLocator locator)\n  {\n    m_locator = null;\n    this.setColumnNumber(locator.getColumnNumber());\n    this.setLineNumber(locator.getLineNumber());\n    this.setPublicId(locator.getPublicId());\n    this.setSystemId(locator.getSystemId());", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "SAXSourceLocator", "code": "  public SAXSourceLocator(SAXParseException spe)\n  {\n    this.setLineNumber( spe.getLineNumber() );\n    this.setColumnNumber( spe.getColumnNumber() );\n    this.setPublicId( spe.getPublicId() );\n    this.setSystemId( spe.getSystemId() );", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 1}
{"sample_id": "camel-1.2-1639", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/spring/spi/SpringTransactionPolicy.java", "language": "java", "name": "org.apache.camel.spring.spi.SpringTransactionPolicy", "code": "public class SpringTransactionPolicy<E> implements Policy<E> {\n    private static final transient Log LOG = LogFactory.getLog(SpringTransactionPolicy.class);\n    private TransactionTemplate template;\n\n    public SpringTransactionPolicy(TransactionTemplate template) {\n        this.template = template;\n    }\n\n    public Processor wrap(Processor processor) {\n        final TransactionTemplate transactionTemplate = getTemplate();\n        if (transactionTemplate == null) {\n            LOG.warn(\"No TransactionTemplate available so transactions will not be enabled!\");\n            return processor;\n        }\n\n        TransactionInterceptor answer = new TransactionInterceptor(transactionTemplate);\n        answer.setProcessor(processor);\n        return answer;\n    }\n\n    public TransactionTemplate getTemplate() {\n        return template;\n    }\n\n    public void setTemplate(TransactionTemplate template) {\n        this.template = template;", "functions": [{"function_name": "wrap", "code": "    public Processor wrap(Processor processor) {\n        final TransactionTemplate transactionTemplate = getTemplate();\n        if (transactionTemplate == null) {\n            LOG.warn(\"No TransactionTemplate available so transactions will not be enabled!\");\n            return processor;\n        }\n\n        TransactionInterceptor answer = new TransactionInterceptor(transactionTemplate);\n        answer.setProcessor(processor);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [2, 8], [3, 9], [7, 10], [4, 11], [3, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 2], [9, 3], [10, 7], [11, 4], [12, 3], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getTemplate", "code": "    public TransactionTemplate getTemplate() {\n        return template;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTemplate", "code": "    public void setTemplate(TransactionTemplate template) {\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SpringTransactionPolicy", "code": "    public SpringTransactionPolicy(TransactionTemplate template) {\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.4-2455", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/dataset/DataSetEndpoint.java", "language": "java", "name": "org.apache.camel.component.dataset.DataSetEndpoint", "code": "public class DataSetEndpoint extends MockEndpoint implements Service {\n    private static final transient Log LOG = LogFactory.getLog(DataSetEndpoint.class);\n    private DataSet dataSet;\n    private AtomicInteger receivedCounter = new AtomicInteger();\n    private long produceDelay = -1;\n    private long consumeDelay = -1;\n    private long startTime;\n    private long preloadSize;\n\n    public DataSetEndpoint(String endpointUri, Component component, DataSet dataSet) {\n        super(endpointUri, component);\n        this.dataSet = dataSet;\n    }\n\n    public DataSetEndpoint(String endpointUri, DataSet dataSet) {\n        super(endpointUri);\n        this.dataSet = dataSet;\n    }\n\n    public static void assertEquals(String description, Object expected, Object actual, Exchange exchange) {\n        if (!ObjectHelper.equal(expected, actual)) {\n            throw new AssertionError(description + \" does not match. Expected: \" + expected + \" but was: \" + actual + \" on \" + exchange + \" with headers: \" + exchange.getIn().getHeaders());\n        }\n    }\n\n    @Override\n    public PollingConsumer<Exchange> createPollingConsumer() throws Exception {\n        return new EventDrivenPollingConsumer<Exchange>(this);\n    }\n\n    @Override\n    public Consumer<Exchange> createConsumer(Processor processor) throws Exception {\n        return new DataSetConsumer(this, processor);\n    }\n\n    @Override\n    public void reset() {\n        super.reset();\n        receivedCounter.set(0);\n    }\n\n    @Override\n    public int getReceivedCounter() {\n        return receivedCounter.get();\n    }\n\n    /**\n     * Creates a message exchange for the given index in the {@link DataSet}\n     */\n    public Exchange createExchange(long messageIndex) throws Exception {\n        Exchange exchange = createExchange();\n        getDataSet().populateMessage(exchange, messageIndex);\n\n        Message in = exchange.getIn();\n        in.setHeader(DataSet.INDEX_HEADER, messageIndex);\n\n        return exchange;\n    }\n\n    @Override\n    protected void waitForCompleteLatch() throws InterruptedException {\n        long size = getDataSet().getSize();\n        size *= 4000;\n        setResultWaitTime(size);\n        super.waitForCompleteLatch();\n    }\n\n\n    public DataSet getDataSet() {\n        return dataSet;\n    }\n\n    public void setDataSet(DataSet dataSet) {\n        this.dataSet = dataSet;\n    }\n\n    public long getPreloadSize() {\n        return preloadSize;\n    }\n\n    /**\n     * Sets how many messages should be preloaded (sent) before the route completes its initialisation\n     */\n    public void setPreloadSize(long preloadSize) {\n        this.preloadSize = preloadSize;\n    }\n\n    public long getConsumeDelay() {\n        return consumeDelay;\n    }\n\n    /**\n     * Allows a delay to be specified which causes consumers to pause - to simulate slow consumers\n     */\n    public void setConsumeDelay(long consumeDelay) {\n        this.consumeDelay = consumeDelay;\n    }\n\n    public long getProduceDelay() {\n        return produceDelay;\n    }\n\n    /**\n     * Allows a delay to be specified which causes producers to pause - to simpulate slow producers\n     */\n    public void setProduceDelay(long produceDelay) {\n        this.produceDelay = produceDelay;\n    }\n\n\n    @Override\n    protected void performAssertions(Exchange actual) throws Exception {\n        if (startTime == 0) {\n            startTime = System.currentTimeMillis();\n        }\n        int receivedCount = receivedCounter.incrementAndGet();\n        long index = receivedCount - 1;\n        Exchange expected = createExchange(index);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Received message: \" + index + \" = \" + actual);\n        }\n\n        assertMessageExpected(index, expected, actual);\n\n        if (consumeDelay > 0) {\n            Thread.sleep(consumeDelay);\n        }\n\n        long group = getDataSet().getReportCount();\n        if (receivedCount % group == 0) {\n            reportProgress(actual, receivedCount);\n        }\n    }\n\n    protected void reportProgress(Exchange actual, int receivedCount) {\n        long time = System.currentTimeMillis();\n        long elapsed = time - startTime;\n        startTime = time;\n\n        LOG.info(\"Received: \" + receivedCount + \" messages so far. Last group took: \" + elapsed + \" millis\");\n    }\n\n    protected void assertMessageExpected(long index, Exchange expected, Exchange actual) throws Exception {\n        long actualCounter = ExchangeHelper.getMandatoryHeader(actual, DataSet.INDEX_HEADER, Long.class);\n        assertEquals(\"Header: \" + DataSet.INDEX_HEADER, index, actualCounter, actual);\n\n        getDataSet().assertMessageExpected(this, expected, actual, index);\n    }\n\n    public void start() throws Exception {\n        long size = getDataSet().getSize();\n        expectedMessageCount((int) size);\n    }\n\n    public void stop() throws Exception {", "functions": [{"function_name": "assertEquals", "code": "    public static void assertEquals(String description, Object expected, Object actual, Exchange exchange) {\n        if (!ObjectHelper.equal(expected, actual)) {\n            throw new AssertionError(description + \" does not match. Expected: \" + expected + \" but was: \" + actual + \" on \" + exchange + \" with headers: \" + exchange.getIn().getHeaders());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [7, 8], [8, 9], [9, 10], [9, 11], [10, 12], [11, 13], [11, 14], [14, 15], [15, 16], [15, 17], [17, 18], [18, 19], [18, 20], [20, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 7], [9, 8], [10, 9], [11, 9], [12, 10], [13, 11], [14, 11], [15, 14], [16, 15], [17, 15], [18, 17], [19, 18], [20, 18], [21, 20], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "createPollingConsumer", "code": "    @Override\n    public PollingConsumer<Exchange> createPollingConsumer() throws Exception {\n        return new EventDrivenPollingConsumer<Exchange>(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createConsumer", "code": "    @Override\n    public Consumer<Exchange> createConsumer(Processor processor) throws Exception {\n        return new DataSetConsumer(this, processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "reset", "code": "    @Override\n    public void reset() {\n        super.reset();\n        receivedCounter.set(0);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReceivedCounter", "code": "    @Override\n    public int getReceivedCounter() {\n        return receivedCounter.get();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExchange", "code": "    public Exchange createExchange(long messageIndex) throws Exception {\n        Exchange exchange = createExchange();\n        getDataSet().populateMessage(exchange, messageIndex);\n\n        Message in = exchange.getIn();\n        in.setHeader(DataSet.INDEX_HEADER, messageIndex);\n\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [6, 8], [3, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 6], [9, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "waitForCompleteLatch", "code": "    @Override\n    protected void waitForCompleteLatch() throws InterruptedException {\n        long size = getDataSet().getSize();\n        size *= 4000;\n        setResultWaitTime(size);\n        super.waitForCompleteLatch();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getDataSet", "code": "    public DataSet getDataSet() {\n        return dataSet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDataSet", "code": "    public void setDataSet(DataSet dataSet) {\n        this.dataSet = dataSet;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPreloadSize", "code": "    public long getPreloadSize() {\n        return preloadSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPreloadSize", "code": "    public void setPreloadSize(long preloadSize) {\n        this.preloadSize = preloadSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConsumeDelay", "code": "    public long getConsumeDelay() {\n        return consumeDelay;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConsumeDelay", "code": "    public void setConsumeDelay(long consumeDelay) {\n        this.consumeDelay = consumeDelay;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProduceDelay", "code": "    public long getProduceDelay() {\n        return produceDelay;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProduceDelay", "code": "    public void setProduceDelay(long produceDelay) {\n        this.produceDelay = produceDelay;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "performAssertions", "code": "    @Override\n    protected void performAssertions(Exchange actual) throws Exception {\n        if (startTime == 0) {\n            startTime = System.currentTimeMillis();\n        }\n        int receivedCount = receivedCounter.incrementAndGet();\n        long index = receivedCount - 1;\n        Exchange expected = createExchange(index);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Received message: \" + index + \" = \" + actual);\n        }\n\n        assertMessageExpected(index, expected, actual);\n\n        if (consumeDelay > 0) {\n            Thread.sleep(consumeDelay);\n        }\n\n        long group = getDataSet().getReportCount();\n        if (receivedCount % group == 0) {\n            reportProgress(actual, receivedCount);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [0, 12], [4, 13], [8, 14], [10, 15], [10, 16], [2, 17], [11, 18], [5, 19], [6, 20], [7, 21], [14, 22], [1, 23], [17, 24], [3, 25], [4, 26], [20, 27], [8, 28], [26, 29], [28, 30], [29, 31], [31, 32], [31, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 0], [13, 4], [14, 8], [15, 10], [16, 10], [17, 2], [18, 11], [19, 5], [20, 6], [21, 7], [22, 14], [23, 1], [24, 17], [25, 3], [26, 4], [27, 20], [28, 8], [29, 26], [30, 28], [31, 29], [32, 31], [33, 31], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "reportProgress", "code": "    protected void reportProgress(Exchange actual, int receivedCount) {\n        long time = System.currentTimeMillis();\n        long elapsed = time - startTime;\n        startTime = time;\n\n        LOG.info(\"Received: \" + receivedCount + \" messages so far. Last group took: \" + elapsed + \" millis\");", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [1, 8], [2, 9], [7, 10], [7, 11], [11, 12], [12, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 1], [9, 2], [10, 7], [11, 7], [12, 11], [13, 12], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "assertMessageExpected", "code": "    protected void assertMessageExpected(long index, Exchange expected, Exchange actual) throws Exception {\n        long actualCounter = ExchangeHelper.getMandatoryHeader(actual, DataSet.INDEX_HEADER, Long.class);\n        assertEquals(\"Header: \" + DataSet.INDEX_HEADER, index, actualCounter, actual);\n\n        getDataSet().assertMessageExpected(this, expected, actual, index);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 1], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "start", "code": "    public void start() throws Exception {\n        long size = getDataSet().getSize();\n        expectedMessageCount((int) size);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "stop", "code": "    public void stop() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DataSetEndpoint", "code": "    public DataSetEndpoint(String endpointUri, Component component, DataSet dataSet) {\n        super(endpointUri, component);\n        this.dataSet = dataSet;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DataSetEndpoint", "code": "    public DataSetEndpoint(String endpointUri, DataSet dataSet) {\n        super(endpointUri);\n        this.dataSet = dataSet;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.2-1670", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/TryType.java", "language": "java", "name": "org.apache.camel.model.TryType", "code": "@XmlRootElement(name = \"try\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class TryType extends OutputType<TryType> {\n    @XmlTransient\n    private List<CatchType> catchClauses;\n    @XmlTransient\n    private FinallyType finallyClause;\n    @XmlTransient\n    private boolean initialized;\n    @XmlTransient\n    private List<ProcessorType<?>> outputsWithoutCatches;\n\n    @Override\n    public String toString() {\n        return \"Try[ \" + getOutputs() + \"]\";\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        Processor tryProcessor = createOutputsProcessor(routeContext, getOutputsWithoutCatches());\n\n        Processor finallyProcessor = null;\n        if (finallyClause != null) {\n            finallyProcessor = finallyClause.createProcessor(routeContext);\n        }\n        List<CatchProcessor> catchProcessors = new ArrayList<CatchProcessor>();\n        if (catchClauses != null) {\n            for (CatchType catchClause : catchClauses) {\n                catchProcessors.add(catchClause.createProcessor(routeContext));\n            }\n        }\n        return new TryProcessor(tryProcessor, catchProcessors, finallyProcessor);\n    }\n\n    public CatchType handle(Class<?> exceptionType) {\n        CatchType answer = new CatchType(exceptionType);\n        addOutput(answer);\n        return answer;\n    }\n\n    public FinallyType handleAll() {\n        FinallyType answer = new FinallyType();\n        addOutput(answer);\n        return answer;\n    }\n\n\n    public List<CatchType> getCatchClauses() {\n        if (catchClauses == null) {\n            checkInitialized();\n        }\n        return catchClauses;\n    }\n\n    public FinallyType getFinallyClause() {\n        if (finallyClause == null) {\n            checkInitialized();\n        }\n        return finallyClause;\n    }\n\n    public List<ProcessorType<?>> getOutputsWithoutCatches() {\n        if (outputsWithoutCatches == null) {\n            checkInitialized();\n        }\n        return outputsWithoutCatches;\n    }\n\n    public void setOutputs(List<ProcessorType<?>> outputs) {\n        initialized = false;\n        super.setOutputs(outputs);\n    }\n\n    public void addOutput(ProcessorType output) {\n        initialized = false;\n        getOutputs().add(output);\n    }\n\n    /**\n     * Checks whether or not this object has been initialized\n     */\n    protected void checkInitialized() {\n        if (!initialized) {\n            initialized = true;\n            outputsWithoutCatches = new ArrayList<ProcessorType<?>>();\n            catchClauses = new ArrayList<CatchType>();\n            finallyClause = null;\n\n            for (ProcessorType output : outputs) {\n                if (output instanceof CatchType) {\n                    catchClauses.add((CatchType)output);\n                } else if (output instanceof FinallyType) {\n                    if (finallyClause != null) {\n                        throw new IllegalArgumentException(\"Multiple finally clauses added: \" + finallyClause\n                                                           + \" and \" + output);\n                    } else {\n                        finallyClause = (FinallyType)output;\n                    }\n                } else {\n                    outputsWithoutCatches.add(output);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Try[ \" + getOutputs() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        Processor tryProcessor = createOutputsProcessor(routeContext, getOutputsWithoutCatches());\n\n        Processor finallyProcessor = null;\n        if (finallyClause != null) {\n            finallyProcessor = finallyClause.createProcessor(routeContext);\n        }\n        List<CatchProcessor> catchProcessors = new ArrayList<CatchProcessor>();\n        if (catchClauses != null) {\n            for (CatchType catchClause : catchClauses) {\n                catchProcessors.add(catchClause.createProcessor(routeContext));\n            }\n        }\n        return new TryProcessor(tryProcessor, catchProcessors, finallyProcessor);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [2, 11], [9, 12], [3, 13], [10, 14], [5, 15], [6, 16], [4, 17], [16, 18], [17, 19], [11, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 2], [12, 9], [13, 3], [14, 10], [15, 5], [16, 6], [17, 4], [18, 16], [19, 17], [20, 11], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "handle", "code": "    public CatchType handle(Class<?> exceptionType) {\n        CatchType answer = new CatchType(exceptionType);\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "handleAll", "code": "    public FinallyType handleAll() {\n        FinallyType answer = new FinallyType();\n        addOutput(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCatchClauses", "code": "    public List<CatchType> getCatchClauses() {\n        if (catchClauses == null) {\n            checkInitialized();\n        }\n        return catchClauses;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getFinallyClause", "code": "    public FinallyType getFinallyClause() {\n        if (finallyClause == null) {\n            checkInitialized();\n        }\n        return finallyClause;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getOutputsWithoutCatches", "code": "    public List<ProcessorType<?>> getOutputsWithoutCatches() {\n        if (outputsWithoutCatches == null) {\n            checkInitialized();\n        }\n        return outputsWithoutCatches;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setOutputs", "code": "    public void setOutputs(List<ProcessorType<?>> outputs) {\n        initialized = false;\n        super.setOutputs(outputs);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addOutput", "code": "    public void addOutput(ProcessorType output) {\n        initialized = false;\n        getOutputs().add(output);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "checkInitialized", "code": "    protected void checkInitialized() {\n        if (!initialized) {\n            initialized = true;\n            outputsWithoutCatches = new ArrayList<ProcessorType<?>>();\n            catchClauses = new ArrayList<CatchType>();\n            finallyClause = null;\n\n            for (ProcessorType output : outputs) {\n                if (output instanceof CatchType) {\n                    catchClauses.add((CatchType)output);\n                } else if (output instanceof FinallyType) {\n                    if (finallyClause != null) {\n                        throw new IllegalArgumentException(\"Multiple finally clauses added: \" + finallyClause\n                                                           + \" and \" + output);\n                    } else {\n                        finallyClause = (FinallyType)output;\n                    }\n                } else {\n                    outputsWithoutCatches.add(output);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [4, 9], [5, 10], [6, 11], [7, 12], [7, 13], [12, 14], [12, 15], [7, 16], [12, 17], [15, 18], [15, 19], [18, 20], [15, 21], [19, 22], [22, 23], [23, 24], [24, 25], [24, 26], [26, 27], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 4], [10, 5], [11, 6], [12, 7], [13, 7], [14, 12], [15, 12], [16, 7], [17, 12], [18, 15], [19, 15], [20, 18], [21, 15], [22, 19], [23, 22], [24, 23], [25, 24], [26, 24], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}], "label": 1}
{"sample_id": "poi-2.0-5603", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/ProtectRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.ProtectRecord", "code": "public class ProtectRecord\n    extends Record\n{\n    public final static short sid = 0x12;\n    private short             field_1_protect;\n\n    public ProtectRecord()\n    {\n    }\n\n    /**\n     * Constructs a Protect record and sets its fields appropriately.\n     *\n     * @param id id must be 0x12 or an exception will be throw upon validation\n     * @param size size the size of the data area of the record\n     * @param data data of the record (should not contain sid/len)\n     */\n\n    public ProtectRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a Protect record and sets its fields appropriately.\n     *\n     * @param id id must be 0x12 or an exception will be throw upon validation\n     * @param size size the size of the data area of the record\n     * @param data data of the record (should not contain sid/len)\n     * @param offset of the data\n     */\n\n    public ProtectRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PROTECT RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_protect = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set whether the sheet is protected or not\n     * @param protect whether to protect the sheet or not\n     */\n\n    public void setProtect(boolean protect)\n    {\n        if (protect)\n        {\n            field_1_protect = 1;\n        }\n        else\n        {\n            field_1_protect = 0;\n        }\n    }\n\n    /**\n     * get whether the sheet is protected or not\n     * @return whether to protect the sheet or not\n     */\n\n    public boolean getProtect()\n    {\n        return (field_1_protect == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PROTECT]\\n\");\n\t    buffer.append(\"    .protect         = \").append(getProtect())\n            .append(\"\\n\");\n        buffer.append(\"[/PROTECT]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_protect);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        ProtectRecord rec = new ProtectRecord();\n        rec.field_1_protect = field_1_protect;\n        return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PROTECT RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_protect = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setProtect", "code": "    public void setProtect(boolean protect)\n    {\n        if (protect)\n        {\n            field_1_protect = 1;\n        }\n        else\n        {\n            field_1_protect = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getProtect", "code": "    public boolean getProtect()\n    {\n        return (field_1_protect == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PROTECT]\\n\");\n\t    buffer.append(\"    .protect         = \").append(getProtect())\n            .append(\"\\n\");\n        buffer.append(\"[/PROTECT]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_protect);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        ProtectRecord rec = new ProtectRecord();\n        rec.field_1_protect = field_1_protect;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ProtectRecord", "code": "    public ProtectRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ProtectRecord", "code": "    public ProtectRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ProtectRecord", "code": "    public ProtectRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-3.0-6225", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/BookBoolRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.BookBoolRecord", "code": "public class BookBoolRecord\n    extends Record\n{\n    public final static short sid = 0xDA;\n    private short             field_1_save_link_values;\n\n    public BookBoolRecord()\n    {\n    }\n\n    /**\n     * Constructs a BookBoolRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0xDA or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public BookBoolRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A BOOKBOOL RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_save_link_values = in.readShort();\n    }\n\n    /**\n     * set the save ext links flag\n     *\n     * @param flag flag (0/1 -off/on)\n     */\n\n    public void setSaveLinkValues(short flag)\n    {\n        field_1_save_link_values = flag;\n    }\n\n    /**\n     * get the save ext links flag\n     *\n     * @return short 0/1 (off/on)\n     */\n\n    public short getSaveLinkValues()\n    {\n        return field_1_save_link_values;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[BOOKBOOL]\\n\");\n        buffer.append(\"    .savelinkvalues  = \")\n            .append(Integer.toHexString(getSaveLinkValues())).append(\"\\n\");\n        buffer.append(\"[/BOOKBOOL]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_save_link_values);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A BOOKBOOL RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_save_link_values = in.readShort();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSaveLinkValues", "code": "    public void setSaveLinkValues(short flag)\n    {\n        field_1_save_link_values = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSaveLinkValues", "code": "    public short getSaveLinkValues()\n    {\n        return field_1_save_link_values;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[BOOKBOOL]\\n\");\n        buffer.append(\"    .savelinkvalues  = \")\n            .append(Integer.toHexString(getSaveLinkValues())).append(\"\\n\");\n        buffer.append(\"[/BOOKBOOL]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [14, 15], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_save_link_values);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BookBoolRecord", "code": "    public BookBoolRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "BookBoolRecord", "code": "    public BookBoolRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "ant-1.7-890", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/RenameExtensions.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.RenameExtensions", "code": "public class RenameExtensions extends MatchingTask {\n\n    private String fromExtension = \"\";\n    private String toExtension = \"\";\n    private boolean replace = false;\n    private File srcDir;\n\n    private Mapper.MapperType globType;\n\n\n    /** Creates new RenameExtensions */\n    public RenameExtensions() {\n        super();\n        globType = new Mapper.MapperType();\n        globType.setValue(\"glob\");\n    }\n\n    /**\n     * The string that files must end in to be renamed\n     *\n     * @param from the extension of files being renamed.\n     */\n    public void setFromExtension(String from) {\n        fromExtension = from;\n    }\n\n    /**\n     * The string that renamed files will end with on\n     * completion\n     *\n     * @param to the extension of the renamed files.\n     */\n    public void setToExtension(String to) {\n        toExtension = to;\n    }\n\n    /**\n     * store replace attribute - this determines whether the target file\n     * should be overwritten if present\n     *\n     * @param replace if true overwrite any target files that exist.\n     */\n    public void setReplace(boolean replace) {\n        this.replace = replace;\n    }\n\n    /**\n     * Set the source dir to find the files to be renamed.\n     *\n     * @param srcDir the source directory.\n     */\n    public void setSrcDir(File srcDir) {\n        this.srcDir = srcDir;\n    }\n\n    /**\n     * Executes the task.\n     *\n     * @throws BuildException is there is a problem in the task execution.\n     */\n    public void execute() throws BuildException {\n\n        if (fromExtension == null || toExtension == null || srcDir == null) {\n            throw new BuildException(\"srcDir, fromExtension and toExtension \"\n                + \"attributes must be set!\");\n        }\n\n        log(\"DEPRECATED - The renameext task is deprecated.  Use move instead.\",\n            Project.MSG_WARN);\n        log(\"Replace this with:\", Project.MSG_INFO);\n        log(\"<move todir=\\\"\" + srcDir + \"\\\" overwrite=\\\"\" + replace + \"\\\">\",\n            Project.MSG_INFO);\n        log(\"  <fileset dir=\\\"\" + srcDir + \"\\\" />\", Project.MSG_INFO);\n        log(\"  <mapper type=\\\"glob\\\"\", Project.MSG_INFO);\n        log(\"          from=\\\"*\" + fromExtension + \"\\\"\", Project.MSG_INFO);\n        log(\"          to=\\\"*\" + toExtension + \"\\\" />\", Project.MSG_INFO);\n        log(\"</move>\", Project.MSG_INFO);\n        log(\"using the same patterns on <fileset> as you\\'ve used here\",\n            Project.MSG_INFO);\n\n        Move move = new Move();\n        move.bindToOwner(this);\n        move.setOwningTarget(getOwningTarget());\n        move.setTaskName(getTaskName());\n        move.setLocation(getLocation());\n        move.setTodir(srcDir);\n        move.setOverwrite(replace);\n\n        fileset.setDir(srcDir);\n        move.addFileset(fileset);\n\n        Mapper me = move.createMapper();\n        me.setType(globType);\n        me.setFrom(\"*\" + fromExtension);\n        me.setTo(\"*\" + toExtension);\n\n        move.execute();", "functions": [{"function_name": "setFromExtension", "code": "    public void setFromExtension(String from) {\n        fromExtension = from;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setToExtension", "code": "    public void setToExtension(String to) {\n        toExtension = to;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setReplace", "code": "    public void setReplace(boolean replace) {\n        this.replace = replace;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSrcDir", "code": "    public void setSrcDir(File srcDir) {\n        this.srcDir = srcDir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n\n        if (fromExtension == null || toExtension == null || srcDir == null) {\n            throw new BuildException(\"srcDir, fromExtension and toExtension \"\n                + \"attributes must be set!\");\n        }\n\n        log(\"DEPRECATED - The renameext task is deprecated.  Use move instead.\",\n            Project.MSG_WARN);\n        log(\"Replace this with:\", Project.MSG_INFO);\n        log(\"<move todir=\\\"\" + srcDir + \"\\\" overwrite=\\\"\" + replace + \"\\\">\",\n            Project.MSG_INFO);\n        log(\"  <fileset dir=\\\"\" + srcDir + \"\\\" />\", Project.MSG_INFO);\n        log(\"  <mapper type=\\\"glob\\\"\", Project.MSG_INFO);\n        log(\"          from=\\\"*\" + fromExtension + \"\\\"\", Project.MSG_INFO);\n        log(\"          to=\\\"*\" + toExtension + \"\\\" />\", Project.MSG_INFO);\n        log(\"</move>\", Project.MSG_INFO);\n        log(\"using the same patterns on <fileset> as you\\'ve used here\",\n            Project.MSG_INFO);\n\n        Move move = new Move();\n        move.bindToOwner(this);\n        move.setOwningTarget(getOwningTarget());\n        move.setTaskName(getTaskName());\n        move.setLocation(getLocation());\n        move.setTodir(srcDir);\n        move.setOverwrite(replace);\n\n        fileset.setDir(srcDir);\n        move.addFileset(fileset);\n\n        Mapper me = move.createMapper();\n        me.setType(globType);\n        me.setFrom(\"*\" + fromExtension);\n        me.setTo(\"*\" + toExtension);\n\n        move.execute();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [3, 25], [5, 26], [6, 27], [1, 28], [12, 29], [13, 30], [14, 31], [2, 32], [16, 33], [17, 34], [18, 35], [19, 36], [20, 37], [21, 38], [22, 39], [23, 40], [24, 41], [3, 42], [25, 43], [25, 44], [26, 45], [27, 46], [35, 47], [35, 48], [36, 49], [36, 50], [38, 51], [38, 52], [39, 53], [39, 54], [42, 55], [43, 56], [44, 57], [44, 58], [48, 59], [50, 60], [52, 61], [54, 62], [55, 63], [57, 64], [58, 65], [62, 66], [62, 67], [63, 68], [63, 69], [67, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 3], [26, 5], [27, 6], [28, 1], [29, 12], [30, 13], [31, 14], [32, 2], [33, 16], [34, 17], [35, 18], [36, 19], [37, 20], [38, 21], [39, 22], [40, 23], [41, 24], [42, 3], [43, 25], [44, 25], [45, 26], [46, 27], [47, 35], [48, 35], [49, 36], [50, 36], [51, 38], [52, 38], [53, 39], [54, 39], [55, 42], [56, 43], [57, 44], [58, 44], [59, 48], [60, 50], [61, 52], [62, 54], [63, 55], [64, 57], [65, 58], [66, 62], [67, 62], [68, 63], [69, 63], [70, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "RenameExtensions", "code": "    public RenameExtensions() {\n        super();\n        globType = new Mapper.MapperType();\n        globType.setValue(\"glob\");", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.0-3953", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/gui/TipOfTheDay.java", "language": "java", "name": "org.gjt.sp.jedit.gui.TipOfTheDay", "code": "public class TipOfTheDay extends EnhancedDialog\n{\n\t//{{{ TipOfTheDay constructor\n\tpublic TipOfTheDay(View view)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"tip.title\"),false);\n\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"tip.caption\"));\n\t\tlabel.setFont(new Font(\"SansSerif\",Font.PLAIN,24));\n\t\tlabel.setForeground(UIManager.getColor(\"Button.foreground\"));\n\t\tcontent.add(BorderLayout.NORTH,label);\n\n\t\ttipText = new JEditorPane();\n\t\ttipText.setEditable(false);\n\t\ttipText.setContentType(\"text/html\");\n\n\t\tnextTip();\n\n\t\tJScrollPane scroller = new JScrollPane(tipText);\n\t\tscroller.setPreferredSize(new Dimension(150,150));\n\t\tcontent.add(BorderLayout.CENTER,scroller);\n\n\t\tActionHandler actionHandler = new ActionHandler();\n\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\n\t\tshowNextTime = new JCheckBox(jEdit.getProperty(\"tip.show-next-time\"),\n\t\t\tjEdit.getBooleanProperty(\"tip.show\"));\n\t\tshowNextTime.addActionListener(actionHandler);\n\t\tbuttons.add(showNextTime);\n\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tbuttons.add(Box.createGlue());\n\n\t\tnextTip = new JButton(jEdit.getProperty(\"tip.next-tip\"));\n\t\tnextTip.addActionListener(actionHandler);\n\t\tbuttons.add(nextTip);\n\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\n\t\tclose = new JButton(jEdit.getProperty(\"common.close\"));\n\t\tclose.addActionListener(actionHandler);\n\t\tbuttons.add(close);\n\t\tcontent.getRootPane().setDefaultButton(close);\n\n\t\tDimension dim = nextTip.getPreferredSize();\n\t\tdim.width = Math.max(dim.width,close.getPreferredSize().width);\n\t\tnextTip.setPreferredSize(dim);\n\t\tclose.setPreferredSize(dim);\n\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tshow();\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate JCheckBox showNextTime;\n\tprivate JButton nextTip, close;\n\tprivate JEditorPane tipText;\n\tprivate int currentTip = -1;\n\t//}}}\n\n\t//{{{ nextTip() method\n\tprivate void nextTip()\n\t{\n\t\tFile[] tips = new File(MiscUtilities.constructPath(\n\t\t\tjEdit.getJEditHome(),\"doc\",\"tips\")).listFiles();\n\t\tif(tips == null || tips.length == 0)\n\t\t{\n\t\t\ttipText.setText(jEdit.getProperty(\"tip.not-found\"));\n\t\t\treturn;\n\t\t}\n\n\t\tint count = tips.length;\n\n\t\t// so that we don't see the same tip again if the user\n\t\t// clicks 'Next Tip'\n\t\tint tipToShow = currentTip;\n\t\twhile(tipToShow == currentTip || !tips[tipToShow].getName().endsWith(\".html\"))\n\t\t\ttipToShow = Math.abs(new Random().nextInt()) % count;\n\t\ttry\n\t\t{\n\t\t\ttipText.setPage(tips[tipToShow].toURL());\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,e);\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\t\t\tif(source == showNextTime)\n\t\t\t{\n\t\t\t\tjEdit.setBooleanProperty(\"tip.show\",showNextTime\n\t\t\t\t\t.isSelected());\n\t\t\t}\n\t\t\telse if(source == nextTip)\n\t\t\t\tnextTip();\n\t\t\telse if(source == close)\n\t\t\t\tdispose();", "functions": [{"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "nextTip", "code": "\tprivate void nextTip()\n\t{\n\t\tFile[] tips = new File(MiscUtilities.constructPath(\n\t\t\tjEdit.getJEditHome(),\"doc\",\"tips\")).listFiles();\n\t\tif(tips == null || tips.length == 0)\n\t\t{\n\t\t\ttipText.setText(jEdit.getProperty(\"tip.not-found\"));\n\t\t\treturn;\n\t\t}\n\n\t\tint count = tips.length;\n\n\t\t// so that we don't see the same tip again if the user\n\t\t// clicks 'Next Tip'\n\t\tint tipToShow = currentTip;\n\t\twhile(tipToShow == currentTip || !tips[tipToShow].getName().endsWith(\".html\"))\n\t\t\ttipToShow = Math.abs(new Random().nextInt()) % count;\n\t\ttry\n\t\t{\n\t\t\ttipText.setPage(tips[tipToShow].toURL());\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,e);", "ast_nodes": ["FUNC_DECL", "TRY", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CATCH", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [5, 9], [1, 10], [2, 11], [8, 12], [5, 13], [9, 14], [9, 15], [6, 16], [7, 17], [11, 18], [8, 19], [8, 20], [5, 21], [14, 22], [15, 23], [16, 24], [16, 25], [10, 26], [18, 27], [19, 28], [21, 29], [24, 30], [24, 31], [24, 32], [27, 33], [29, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 5], [10, 1], [11, 2], [12, 8], [13, 5], [14, 9], [15, 9], [16, 6], [17, 7], [18, 11], [19, 8], [20, 8], [21, 5], [22, 14], [23, 15], [24, 16], [25, 16], [26, 10], [27, 18], [28, 19], [29, 21], [30, 24], [31, 24], [32, 24], [33, 27], [34, 29], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "TipOfTheDay", "code": "\tpublic TipOfTheDay(View view)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"tip.title\"),false);\n\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"tip.caption\"));\n\t\tlabel.setFont(new Font(\"SansSerif\",Font.PLAIN,24));\n\t\tlabel.setForeground(UIManager.getColor(\"Button.foreground\"));\n\t\tcontent.add(BorderLayout.NORTH,label);\n\n\t\ttipText = new JEditorPane();\n\t\ttipText.setEditable(false);\n\t\ttipText.setContentType(\"text/html\");\n\n\t\tnextTip();\n\n\t\tJScrollPane scroller = new JScrollPane(tipText);\n\t\tscroller.setPreferredSize(new Dimension(150,150));\n\t\tcontent.add(BorderLayout.CENTER,scroller);\n\n\t\tActionHandler actionHandler = new ActionHandler();\n\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\n\t\tshowNextTime = new JCheckBox(jEdit.getProperty(\"tip.show-next-time\"),\n\t\t\tjEdit.getBooleanProperty(\"tip.show\"));\n\t\tshowNextTime.addActionListener(actionHandler);\n\t\tbuttons.add(showNextTime);\n\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tbuttons.add(Box.createGlue());\n\n\t\tnextTip = new JButton(jEdit.getProperty(\"tip.next-tip\"));\n\t\tnextTip.addActionListener(actionHandler);\n\t\tbuttons.add(nextTip);\n\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\n\t\tclose = new JButton(jEdit.getProperty(\"common.close\"));\n\t\tclose.addActionListener(actionHandler);\n\t\tbuttons.add(close);\n\t\tcontent.getRootPane().setDefaultButton(close);\n\n\t\tDimension dim = nextTip.getPreferredSize();\n\t\tdim.width = Math.max(dim.width,close.getPreferredSize().width);\n\t\tnextTip.setPreferredSize(dim);\n\t\tclose.setPreferredSize(dim);\n\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tpack();\n\t\tsetLocationRelativeTo(view);\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [15, 42], [1, 43], [16, 44], [19, 45], [20, 46], [23, 47], [24, 48], [25, 49], [28, 50], [2, 51], [3, 52], [30, 53], [4, 54], [32, 55], [33, 56], [34, 57], [36, 58], [37, 59], [5, 60], [39, 61], [6, 62], [41, 63], [42, 64], [45, 65], [46, 66], [47, 67], [49, 68], [50, 69], [50, 70], [53, 71], [53, 72], [58, 73], [59, 74], [59, 75], [60, 76], [61, 77], [61, 78], [61, 79], [61, 80], [62, 81], [65, 82], [67, 83], [69, 84], [70, 85], [76, 86], [81, 87], [81, 88], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 15], [43, 1], [44, 16], [45, 19], [46, 20], [47, 23], [48, 24], [49, 25], [50, 28], [51, 2], [52, 3], [53, 30], [54, 4], [55, 32], [56, 33], [57, 34], [58, 36], [59, 37], [60, 5], [61, 39], [62, 6], [63, 41], [64, 42], [65, 45], [66, 46], [67, 47], [68, 49], [69, 50], [70, 50], [71, 53], [72, 53], [73, 58], [74, 59], [75, 59], [76, 60], [77, 61], [78, 61], [79, 61], [80, 61], [81, 62], [82, 65], [83, 67], [84, 69], [85, 70], [86, 76], [87, 81], [88, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}], "label": 0}
{"sample_id": "xalan-2.7-8339", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xslt/SecuritySupport12.java", "language": "java", "name": "org.apache.xalan.xslt.SecuritySupport12", "code": "class SecuritySupport12 extends SecuritySupport {\n\n    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;\n            }\n        });\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;\n                }\n            });\n    }\n\n    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;\n                }\n            });\n    }\n\n    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);\n                }\n            });\n    }\n\n    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();\n        }\n    }\n\n    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;\n                }\n            });\n    }\n    \n    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());\n                }\n            })).booleanValue();\n    }\n    \n    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "functions": [{"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "COND_EXPR", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [7, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 7], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [8, 10], [10, 11], [8, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 8], [11, 10], [12, 8], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLastModified", "code": "    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "ivy-2.0-3375", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/util/Configurator.java", "language": "java", "name": "org.apache.ivy.util.Configurator", "code": "public class Configurator {\n    public static class Macro {\n        private MacroDef macrodef;\n\n        private Map attValues = new HashMap();\n\n        private Map macroRecords = new HashMap();\n\n        public Macro(MacroDef def) {\n            macrodef = def;\n        }\n\n        public void defineAttribute(String attributeName, String value) {\n            if (macrodef.getAttribute(attributeName) == null) {\n                throw new IllegalArgumentException(\"undeclared attribute \" + attributeName\n                        + \" on macro \" + macrodef.getName());\n            }\n            attValues.put(attributeName, value);\n        }\n\n        public MacroRecord recordCreateChild(String name) {\n            MacroRecord macroRecord = new MacroRecord(name);\n            List records = (List) macroRecords.get(name);\n            if (records == null) {\n                records = new ArrayList();\n                macroRecords.put(name, records);\n            }\n            records.add(macroRecord);\n            return macroRecord;\n        }\n\n        public Object play(Configurator conf) {\n            return macrodef.play(conf, attValues, macroRecords);\n        }\n\n    }\n\n    public static class Attribute {\n        private String name;\n\n        private String defaultValue;\n\n        public String getDefault() {\n            return defaultValue;\n        }\n\n        public void setDefault(String default1) {\n            defaultValue = default1;\n        }\n\n        public String getName() {\n            return name;\n        }\n\n        public void setName(String name) {\n            this.name = name;\n        }\n    }\n\n    public static class Element {\n        private String name;\n\n        private boolean optional = false;\n\n        public String getName() {\n            return name;\n        }\n\n        public void setName(String name) {\n            this.name = name;\n        }\n\n        public boolean isOptional() {\n            return optional;\n        }\n\n        public void setOptional(boolean optional) {\n            this.optional = optional;\n        }\n    }\n\n    public static class MacroRecord {\n        private String name;\n\n        private Map attributes = new LinkedHashMap();\n\n        private List children = new ArrayList();\n\n        private Object object;\n\n        public MacroRecord(String name) {\n            this.name = name;\n        }\n\n        public String getName() {\n            return name;\n        }\n\n        public void recordAttribute(String name, String value) {\n            attributes.put(name, value);\n        }\n\n        public MacroRecord recordChild(String name) {\n            MacroRecord child = new MacroRecord(name);\n            children.add(child);\n            return child;\n        }\n        \n        public MacroRecord recordChild(String name, Object object) {\n            MacroRecord child = recordChild(name);\n            child.object = object;\n            return child;\n        }\n\n        public Map getAttributes() {\n            return attributes;\n        }\n\n        public List getChildren() {\n            return children;\n        }\n\n        public Object getObject() {\n            return object;\n        }\n    }\n\n    public static class MacroDef {\n        private String name;\n\n        private Map attributes = new HashMap();\n\n        private Map elements = new HashMap();\n\n        private MacroRecord macroRecord;\n\n        public MacroDef(String macroName) {\n            name = macroName;\n        }\n\n        public Attribute getAttribute(String attributeName) {\n            return (Attribute) attributes.get(attributeName);\n        }\n\n        public Object play(Configurator conf, Map attValues, Map macroRecords) {\n            for (Iterator iter = attributes.values().iterator(); iter.hasNext();) {\n                Attribute att = (Attribute) iter.next();\n                String val = (String) attValues.get(att.getName());\n                if (val == null) {\n                    if (att.getDefault() == null) {\n                        throw new IllegalArgumentException(\"attribute \" + att.getName()\n                                + \" is required in \" + getName());\n                    } else {\n                        attValues.put(att.getName(), att.getDefault());\n                    }\n                }\n            }\n            return play(conf, macroRecord, attValues, macroRecords);\n        }\n\n        private Object play(Configurator conf, MacroRecord macroRecord, Map attValues,\n                Map childrenRecords) {\n            if (macroRecord.getObject() != null) {\n                // this is a recorded reference, we can add the referenced object directly\n                conf.addChild(macroRecord.getName(), macroRecord.getObject());\n                conf.endCreateChild();\n                return macroRecord.getObject();\n            }\n            conf.startCreateChild(macroRecord.getName());\n            Map attributes = macroRecord.getAttributes();\n            for (Iterator iter = attributes.keySet().iterator(); iter.hasNext();) {\n                String attName = (String) iter.next();\n                String attValue = replaceParam((String) attributes.get(attName), attValues);\n                conf.setAttribute(attName, attValue);\n            }\n            for (Iterator iter = macroRecord.getChildren().iterator(); iter.hasNext();) {\n                MacroRecord child = (MacroRecord) iter.next();\n                Element elt = (Element) elements.get(child.getName());\n                if (elt != null) {\n                    List elements = (List) childrenRecords.get(child.getName());\n                    if (elements != null) {\n                        for (Iterator iterator = elements.iterator(); iterator.hasNext();) {\n                            MacroRecord element = (MacroRecord) iterator.next();\n                            for (Iterator it2 = element.getChildren().iterator(); it2.hasNext();) {\n                                MacroRecord r = (MacroRecord) it2.next();\n                                play(conf, r, attValues, Collections.EMPTY_MAP);\n                            }\n                        }\n                    } else if (!elt.isOptional()) {\n                        throw new IllegalArgumentException(\n                                \"non optional element is not specified: \" + elt.getName()\n                                        + \" in macro \" + getName());\n                    }\n                    continue;\n                }\n                play(conf, child, attValues, childrenRecords);\n            }\n            return conf.endCreateChild();\n        }\n\n        private String replaceParam(String string, Map attValues) {\n            return IvyPatternHelper.substituteParams(string, attValues);\n        }\n\n        public String getName() {\n            return name;\n        }\n\n        public void addConfiguredAttribute(Attribute att) {\n            attributes.put(att.getName(), att);\n        }\n\n        public void addConfiguredElement(Element elt) {\n            elements.put(elt.getName(), elt);\n        }\n\n        public Macro createMacro() {\n            return new Macro(this);\n        }\n\n        public void addAttribute(String attName, String attDefaultValue) {\n            Attribute att = new Attribute();\n            att.setName(attName);\n            att.setDefault(attDefaultValue);\n            addConfiguredAttribute(att);\n        }\n\n        public void addElement(String elementName, boolean optional) {\n            Element elt = new Element();\n            elt.setName(elementName);\n            elt.setOptional(optional);\n            addConfiguredElement(elt);\n        }\n\n        public MacroRecord recordCreateChild(String name) {\n            macroRecord = new MacroRecord(name);\n            return macroRecord;\n        }\n    }\n\n    private static class ObjectDescriptor {\n        private Object obj;\n\n        private String objName;\n\n        private Map createMethods = new HashMap();\n\n        private Map addMethods = new HashMap();\n\n        private Map addConfiguredMethods = new HashMap();\n\n        private Map setMethods = new HashMap();\n\n        private Map typeAddMethods = new HashMap();\n\n        private Map typeAddConfiguredMethods = new HashMap();\n\n        public ObjectDescriptor(Object object, String objName) {\n            obj = object;\n            this.objName = objName;\n            Method[] methods = object.getClass().getMethods();\n            for (int i = 0; i < methods.length; i++) {\n                Method m = methods[i];\n                if (m.getName().startsWith(\"create\") && m.getParameterTypes().length == 0\n                        && !Void.TYPE.equals(m.getReturnType())) {\n                    String name = StringUtils\n                            .uncapitalize(m.getName().substring(\"create\".length()));\n                    if (name.length() == 0) {\n                        continue;\n                    }\n                    addCreateMethod(name, m);\n                } else if (m.getName().startsWith(\"addConfigured\")\n                        && m.getParameterTypes().length == 1 \n                        && Void.TYPE.equals(m.getReturnType())) {\n                    String name = StringUtils.uncapitalize(m.getName().substring(\n                        \"addConfigured\".length()));\n                    if (name.length() == 0) {\n                        addAddConfiguredMethod(m);\n                    }\n                    addAddConfiguredMethod(name, m);\n                } else if (m.getName().startsWith(\"add\")\n                        && !m.getName().startsWith(\"addConfigured\")\n                        && m.getParameterTypes().length == 1 \n                        && Void.TYPE.equals(m.getReturnType())) {\n                    String name = StringUtils.uncapitalize(m.getName().substring(\"add\".length()));\n                    if (name.length() == 0) {\n                        addAddMethod(m);\n                    }\n                    addAddMethod(name, m);\n                } else if (m.getName().startsWith(\"set\") && m.getParameterTypes().length == 1\n                        && Void.TYPE.equals(m.getReturnType())) {\n                    String name = StringUtils.uncapitalize(m.getName().substring(\"set\".length()));\n                    if (name.length() == 0) {\n                        continue;\n                    }\n                    addSetMethod(name, m);\n                }\n            }\n        }\n\n        public void addCreateMethod(String name, Method m) {\n            createMethods.put(name, m);\n        }\n\n        public void addAddMethod(String name, Method m) {\n            addMethods.put(name, m);\n        }\n\n        public void addAddConfiguredMethod(String name, Method m) {\n            addConfiguredMethods.put(name, m);\n        }\n\n        private void addAddMethod(Method m) {\n            typeAddMethods.put(m.getParameterTypes()[0], m);\n        }\n\n        private void addAddConfiguredMethod(Method m) {\n            typeAddConfiguredMethods.put(m.getParameterTypes()[0], m);\n        }\n\n        public void addSetMethod(String name, Method m) {\n            Method current = (Method) setMethods.get(name);\n            if (current != null && current.getParameterTypes()[0] == String.class) {\n                // setter methods with String attribute take precedence \n                return;\n            }\n            setMethods.put(name, m);\n        }\n\n        public Object getObject() {\n            return obj;\n        }\n\n        public Method getCreateMethod(String name) {\n            return (Method) createMethods.get(name);\n        }\n\n        public Method getAddMethod(String name) {\n            return (Method) addMethods.get(name);\n        }\n\n        public Method getAddConfiguredMethod(String name) {\n            return (Method) addConfiguredMethods.get(name);\n        }\n\n        public Method getAddMethod(Class type) {\n            return getTypeMatchingMethod(type, typeAddMethods);\n        }\n\n        public Method getAddConfiguredMethod(Class type) {\n            return getTypeMatchingMethod(type, typeAddConfiguredMethods);\n        }\n\n        private Method getTypeMatchingMethod(Class type, Map typeMethods) {\n            Method m = (Method) typeMethods.get(type);\n            if (m != null) {\n                return m;\n            }\n            for (Iterator iter = typeMethods.keySet().iterator(); iter.hasNext();) {\n                Class clss = (Class) iter.next();\n                if (clss.isAssignableFrom(type)) {\n                    return (Method) typeMethods.get(clss);\n                }\n            }\n            return null;\n        }\n\n        public Method getSetMethod(String name) {\n            return (Method) setMethods.get(name);\n        }\n\n        public String getObjectName() {\n            return objName;\n        }\n    }\n    \n    private FileResolver fileResolver = FileResolver.DEFAULT;\n\n    private Map typedefs = new HashMap();\n\n    private Map macrodefs = new HashMap();\n\n    // stack in which the top is current configured object descriptor\n    private Stack objectStack = new Stack();\n\n    private static final List TRUE_VALUES = Arrays.asList(new String[] {\"true\", \"yes\", \"on\"});\n\n    public void typeDef(String name, String className) throws ClassNotFoundException {\n        typeDef(name, Class.forName(className));\n    }\n\n    public void typeDef(String name, Class clazz) {\n        typedefs.put(name, clazz);\n    }\n\n    public void setRoot(Object root) {\n        if (root == null) {\n            throw new NullPointerException();\n        }\n        objectStack.clear();\n        setCurrent(root, null);\n    }\n\n    public void clear() {\n        objectStack.clear();\n    }\n\n    private void setCurrent(Object object, String name) {\n        objectStack.push(new ObjectDescriptor(object, name));\n    }\n\n    public Object startCreateChild(String name) {\n        if (objectStack.isEmpty()) {\n            throw new IllegalStateException(\"set root before creating child\");\n        }\n        ObjectDescriptor parentOD = (ObjectDescriptor) objectStack.peek();\n        Object parent = parentOD.getObject();\n        if (parent instanceof MacroDef) {\n            if (!\"attribute\".equals(name) && !\"element\".equals(name)) {\n                MacroRecord record = ((MacroDef) parent).recordCreateChild(name);\n                setCurrent(record, name);\n                return record;\n            }\n        }\n        if (parent instanceof Macro) {\n            MacroRecord record = ((Macro) parent).recordCreateChild(name);\n            setCurrent(record, name);\n            return record;\n        }\n        if (parent instanceof MacroRecord) {\n            MacroRecord record = ((MacroRecord) parent).recordChild(name);\n            setCurrent(record, name);\n            return record;\n        }\n        Object child = null;\n        MacroDef macrodef = (MacroDef) macrodefs.get(name);\n        if (macrodef != null) {\n            Macro macro = macrodef.createMacro();\n            setCurrent(macro, name);\n            return macro;\n        }\n        Class childClass = (Class) typedefs.get(name);\n        Method addChild = null;\n        try {\n            if (childClass != null) {\n                return addChild(parentOD, childClass, name, null);\n            } else {\n                addChild = parentOD.getCreateMethod(name);\n                if (addChild != null) {\n                    child = addChild.invoke(parent, new Object[0]);\n                    setCurrent(child, name);\n                    return child;\n                }\n                addChild = parentOD.getAddMethod(name);\n                if (addChild != null) {\n                    childClass = addChild.getParameterTypes()[0];\n                    child = childClass.newInstance();\n                    addChild.invoke(parent, new Object[] {child});\n                    setCurrent(child, name);\n                    return child;\n                }\n                addChild = parentOD.getAddConfiguredMethod(name);\n                if (addChild != null) {\n                    childClass = addChild.getParameterTypes()[0];\n                    if (Map.class == childClass) {\n                        child = new HashMap();\n                    } else {\n                        child = childClass.newInstance();\n                    }\n                    setCurrent(child, name);\n                    return child;\n                }\n            }\n        } catch (InstantiationException ex) {\n            throw new IllegalArgumentException(\"no default constructor on \" + childClass\n                    + \" for adding \" + name + \" on \" + parent.getClass());\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\"bad method found for \"\n                    + name + \" on \" + parent.getClass());\n            iae.initCause(ex);\n            throw iae;\n        }\n        throw new IllegalArgumentException(\"no appropriate method found for adding \" + name\n                + \" on \" + parent.getClass());\n    }\n\n    public void addChild(String name, Object child) {\n        if (objectStack.isEmpty()) {\n            throw new IllegalStateException(\"set root before creating child\");\n        }\n        ObjectDescriptor parentOD = (ObjectDescriptor) objectStack.peek();\n        try {\n            addChild(parentOD, child.getClass(), name, child);\n        } catch (InstantiationException ex) {\n            throw new IllegalArgumentException(\"no default constructor on \" + child.getClass()\n                    + \" for adding \" + name + \" on \" + parentOD.getObject().getClass());\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\"bad method found for \"\n                    + name + \" on \" + parentOD.getObject().getClass());\n            iae.initCause(ex);\n            throw iae;\n        }\n    }\n\n    private Object addChild(ObjectDescriptor parentOD, Class childClass, String name, Object child)\n            throws InstantiationException, IllegalAccessException, InvocationTargetException {\n        Object parent = parentOD.getObject();\n        if (parent instanceof MacroRecord) {\n            MacroRecord record = (MacroRecord) parent;\n            MacroRecord recordChild = record.recordChild(name, child);\n            setCurrent(recordChild, name);\n            return recordChild;\n        }\n        Method addChild = parentOD.getAddMethod(childClass);\n        if (addChild != null) {\n            if (child == null) {\n                child = childClass.newInstance();\n            }\n            addChild.invoke(parent, new Object[] {child});\n            setCurrent(child, name);\n            return child;\n        }\n        addChild = parentOD.getAddConfiguredMethod(childClass);\n        if (addChild != null) {\n            if (child == null) {\n                if (Map.class == childClass) {\n                    child = new HashMap();\n                } else {\n                    child = childClass.newInstance();\n                }\n            }\n            setCurrent(child, name);\n            return child;\n        }\n        throw new IllegalArgumentException(\"no appropriate method found for adding \" + name\n                + \" on \" + parent.getClass());\n    }\n\n    public boolean isTopLevelMacroRecord() {\n        if (objectStack.isEmpty()) {\n            return false;\n        }\n        ObjectDescriptor od = (ObjectDescriptor) objectStack.peek();\n        return (od.getObject() instanceof MacroDef);\n    }\n\n    public void setAttribute(String attributeName, String value) {\n        if (objectStack.isEmpty()) {\n            throw new IllegalStateException(\"set root before setting attribute\");\n        }\n        ObjectDescriptor od = (ObjectDescriptor) objectStack.peek();\n        if (od.getObject() instanceof Macro) {\n            ((Macro) od.getObject()).defineAttribute(attributeName, value);\n            return;\n        }\n        if (od.getObject() instanceof MacroRecord) {\n            ((MacroRecord) od.getObject()).recordAttribute(attributeName, value);\n            return;\n        }\n        Method m = od.getSetMethod(attributeName);\n        if (m == null) {\n            if (od.getObject() instanceof Map) {\n                ((Map) od.getObject()).put(attributeName, value);\n                return;\n            } \n            throw new IllegalArgumentException(\"no set method found for \" + attributeName + \" on \"\n                    + od.getObject().getClass());\n        }\n        Object convertedValue = null;\n        Class paramClass = m.getParameterTypes()[0];\n        try {\n            if (paramClass.equals(String.class)) {\n                convertedValue = value;\n            } else if (paramClass.equals(Boolean.class) || paramClass.equals(boolean.class)) {\n                convertedValue = Boolean.valueOf(TRUE_VALUES.contains(value));\n            } else if (paramClass.equals(Character.class) || paramClass.equals(char.class)) {\n                convertedValue = new Character(value.length() > 0 ? value.charAt(0) : ' ');\n            } else if (paramClass.equals(Short.class) || paramClass.equals(short.class)) {\n                convertedValue = Short.valueOf(value);\n            } else if (paramClass.equals(Integer.class) || paramClass.equals(int.class)) {\n                convertedValue = Integer.valueOf(value);\n            } else if (paramClass.equals(Long.class) || paramClass.equals(long.class)) {\n                convertedValue = Long.valueOf(value);\n            } else if (paramClass.equals(Class.class)) {\n                convertedValue = Class.forName(value);\n            } else if (paramClass.equals(File.class)) {\n                convertedValue = fileResolver.resolveFile(\n                                        value, od.getObjectName() + \".\" + attributeName);\n            } else {\n                convertedValue = paramClass.getConstructor(new Class[] {String.class}).newInstance(\n                    new Object[] {value});\n            }\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\"impossible to convert \"\n                    + value + \" to \" + paramClass + \" for setting \" + attributeName + \" on \"\n                    + od.getObject().getClass() + \": \" + ex.getMessage());\n            iae.initCause(ex);\n            throw iae;\n        }\n        try {\n            m.invoke(od.getObject(), new Object[] {convertedValue});\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\"impossible to set \"\n                    + attributeName + \" to \" + convertedValue + \" on \" + od.getObject().getClass());\n            iae.initCause(ex);\n            throw iae;\n        }\n    }\n\n    public void addText(String text) {\n        if (objectStack.isEmpty()) {\n            throw new IllegalStateException(\"set root before adding text\");\n        }\n        ObjectDescriptor od = (ObjectDescriptor) objectStack.peek();\n        try {\n            od.getObject().getClass().getMethod(\"addText\", new Class[] {String.class}).invoke(\n                od.getObject(), new Object[] {text});\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\n                    \"impossible to add text on \" + od.getObject().getClass());\n            iae.initCause(ex);\n            throw iae;\n        }\n    }\n\n    /**\n     * @return the finished child\n     */\n    public Object endCreateChild() {\n        if (objectStack.isEmpty()) {\n            throw new IllegalStateException(\"set root before ending child\");\n        }\n        ObjectDescriptor od = (ObjectDescriptor) objectStack.pop();\n        if (objectStack.isEmpty()) {\n            objectStack.push(od); // back to previous state\n            throw new IllegalStateException(\"cannot end root\");\n        }\n        if (od.getObject() instanceof Macro) {\n            return ((Macro) od.getObject()).play(this);\n        }\n        ObjectDescriptor parentOD = (ObjectDescriptor) objectStack.peek();\n        String name = od.getObjectName();\n        Class childClass = (Class) typedefs.get(name);\n        Method m = null;\n        if (childClass != null) {\n            m = parentOD.getAddConfiguredMethod(childClass);\n        } else {\n            m = parentOD.getAddConfiguredMethod(name);\n        }\n        try {\n            if (m != null) {\n                m.invoke(parentOD.getObject(), new Object[] {od.getObject()});\n            }\n            return od.getObject();\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\n                    \"impossible to add configured child for \" + name + \" on \"\n                            + parentOD.getObject().getClass() \n                            + \": \" + StringUtils.getErrorMessage(ex));\n            iae.initCause(ex);\n            throw iae;\n        }\n    }\n\n    public Object getCurrent() {\n        return objectStack.isEmpty() ? null : ((ObjectDescriptor) objectStack.peek()).getObject();\n    }\n\n    public int getDepth() {\n        return objectStack.size();\n    }\n\n    public MacroDef startMacroDef(String macroName) {\n        MacroDef macroDef = new MacroDef(macroName);\n        setCurrent(macroDef, macroName);\n        return macroDef;\n    }\n\n    public void addMacroAttribute(String attName, String attDefaultValue) {\n        ((MacroDef) getCurrent()).addAttribute(attName, attDefaultValue);\n    }\n\n    public void addMacroElement(String elementName, boolean optional) {\n        ((MacroDef) getCurrent()).addElement(elementName, optional);\n    }\n\n    public void endMacroDef() {\n        addConfiguredMacrodef(((MacroDef) getCurrent()));\n        objectStack.pop();\n    }\n\n    public void addConfiguredMacrodef(MacroDef macrodef) {\n        macrodefs.put(macrodef.getName(), macrodef);\n    }\n\n    public Class getTypeDef(String name) {\n        return (Class) typedefs.get(name);\n    }\n    \n    public FileResolver getFileResolver() {\n        return fileResolver;\n    }\n    \n    public void setFileResolver(FileResolver fileResolver) {\n        Checks.checkNotNull(fileResolver, \"fileResolver\");\n        this.fileResolver = fileResolver;", "functions": [{"function_name": "typeDef", "code": "    public void typeDef(String name, String className) throws ClassNotFoundException {\n        typeDef(name, Class.forName(className));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "typeDef", "code": "    public void typeDef(String name, Class clazz) {\n        typedefs.put(name, clazz);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRoot", "code": "    public void setRoot(Object root) {\n        if (root == null) {\n            throw new NullPointerException();\n        }\n        objectStack.clear();\n        setCurrent(root, null);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "clear", "code": "    public void clear() {\n        objectStack.clear();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCurrent", "code": "    private void setCurrent(Object object, String name) {\n        objectStack.push(new ObjectDescriptor(object, name));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startCreateChild", "code": "    public Object startCreateChild(String name) {\n        if (objectStack.isEmpty()) {\n            throw new IllegalStateException(\"set root before creating child\");\n        }\n        ObjectDescriptor parentOD = (ObjectDescriptor) objectStack.peek();\n        Object parent = parentOD.getObject();\n        if (parent instanceof MacroDef) {\n            if (!\"attribute\".equals(name) && !\"element\".equals(name)) {\n                MacroRecord record = ((MacroDef) parent).recordCreateChild(name);\n                setCurrent(record, name);\n                return record;\n            }\n        }\n        if (parent instanceof Macro) {\n            MacroRecord record = ((Macro) parent).recordCreateChild(name);\n            setCurrent(record, name);\n            return record;\n        }\n        if (parent instanceof MacroRecord) {\n            MacroRecord record = ((MacroRecord) parent).recordChild(name);\n            setCurrent(record, name);\n            return record;\n        }\n        Object child = null;\n        MacroDef macrodef = (MacroDef) macrodefs.get(name);\n        if (macrodef != null) {\n            Macro macro = macrodef.createMacro();\n            setCurrent(macro, name);\n            return macro;\n        }\n        Class childClass = (Class) typedefs.get(name);\n        Method addChild = null;\n        try {\n            if (childClass != null) {\n                return addChild(parentOD, childClass, name, null);\n            } else {\n                addChild = parentOD.getCreateMethod(name);\n                if (addChild != null) {\n                    child = addChild.invoke(parent, new Object[0]);\n                    setCurrent(child, name);\n                    return child;\n                }\n                addChild = parentOD.getAddMethod(name);\n                if (addChild != null) {\n                    childClass = addChild.getParameterTypes()[0];\n                    child = childClass.newInstance();\n                    addChild.invoke(parent, new Object[] {child});\n                    setCurrent(child, name);\n                    return child;\n                }\n                addChild = parentOD.getAddConfiguredMethod(name);\n                if (addChild != null) {\n                    childClass = addChild.getParameterTypes()[0];\n                    if (Map.class == childClass) {\n                        child = new HashMap();\n                    } else {\n                        child = childClass.newInstance();\n                    }\n                    setCurrent(child, name);\n                    return child;\n                }\n            }\n        } catch (InstantiationException ex) {\n            throw new IllegalArgumentException(\"no default constructor on \" + childClass\n                    + \" for adding \" + name + \" on \" + parent.getClass());\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\"bad method found for \"\n                    + name + \" on \" + parent.getClass());\n            iae.initCause(ex);\n            throw iae;\n        }\n        throw new IllegalArgumentException(\"no appropriate method found for adding \" + name\n                + \" on \" + parent.getClass());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CATCH", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "IF", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "IF", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [2, 16], [2, 17], [2, 18], [5, 19], [8, 20], [9, 21], [10, 22], [13, 23], [15, 24], [16, 25], [16, 26], [17, 27], [18, 28], [3, 29], [5, 30], [5, 31], [19, 32], [7, 33], [8, 34], [8, 35], [9, 36], [9, 37], [10, 38], [11, 39], [13, 40], [24, 41], [24, 42], [16, 43], [27, 44], [18, 45], [18, 46], [18, 47], [18, 48], [28, 49], [4, 50], [5, 51], [6, 52], [8, 53], [9, 54], [38, 55], [12, 56], [40, 57], [42, 58], [42, 59], [26, 60], [44, 61], [45, 62], [18, 63], [46, 64], [18, 65], [47, 66], [18, 67], [48, 68], [31, 69], [38, 70], [38, 71], [55, 72], [55, 73], [57, 74], [59, 75], [60, 76], [61, 77], [61, 78], [45, 79], [45, 80], [62, 81], [63, 82], [46, 83], [64, 84], [65, 85], [47, 86], [66, 87], [67, 88], [68, 89], [38, 90], [72, 91], [73, 92], [76, 93], [76, 94], [78, 95], [78, 96], [45, 97], [80, 98], [45, 99], [46, 100], [46, 101], [46, 102], [46, 103], [47, 104], [47, 105], [94, 106], [94, 107], [96, 108], [99, 109], [102, 110], [103, 111], [105, 112], [107, 113], [108, 114], [108, 115], [80, 116], [80, 117], [115, 118], [116, 119], [117, 120], [109, 121], [111, 122], [112, 123], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 2], [17, 2], [18, 2], [19, 5], [20, 8], [21, 9], [22, 10], [23, 13], [24, 15], [25, 16], [26, 16], [27, 17], [28, 18], [29, 3], [30, 5], [31, 5], [32, 19], [33, 7], [34, 8], [35, 8], [36, 9], [37, 9], [38, 10], [39, 11], [40, 13], [41, 24], [42, 24], [43, 16], [44, 27], [45, 18], [46, 18], [47, 18], [48, 18], [49, 28], [50, 4], [51, 5], [52, 6], [53, 8], [54, 9], [55, 38], [56, 12], [57, 40], [58, 42], [59, 42], [60, 26], [61, 44], [62, 45], [63, 18], [64, 46], [65, 18], [66, 47], [67, 18], [68, 48], [69, 31], [70, 38], [71, 38], [72, 55], [73, 55], [74, 57], [75, 59], [76, 60], [77, 61], [78, 61], [79, 45], [80, 45], [81, 62], [82, 63], [83, 46], [84, 64], [85, 65], [86, 47], [87, 66], [88, 67], [89, 68], [90, 38], [91, 72], [92, 73], [93, 76], [94, 76], [95, 78], [96, 78], [97, 45], [98, 80], [99, 45], [100, 46], [101, 46], [102, 46], [103, 46], [104, 47], [105, 47], [106, 94], [107, 94], [108, 96], [109, 99], [110, 102], [111, 103], [112, 105], [113, 107], [114, 108], [115, 108], [116, 80], [117, 80], [118, 115], [119, 116], [120, 117], [121, 109], [122, 111], [123, 112], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123]]}, {"function_name": "addChild", "code": "    public void addChild(String name, Object child) {\n        if (objectStack.isEmpty()) {\n            throw new IllegalStateException(\"set root before creating child\");\n        }\n        ObjectDescriptor parentOD = (ObjectDescriptor) objectStack.peek();\n        try {\n            addChild(parentOD, child.getClass(), name, child);\n        } catch (InstantiationException ex) {\n            throw new IllegalArgumentException(\"no default constructor on \" + child.getClass()\n                    + \" for adding \" + name + \" on \" + parentOD.getObject().getClass());\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\"bad method found for \"\n                    + name + \" on \" + parentOD.getObject().getClass());\n            iae.initCause(ex);\n            throw iae;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "CATCH", "CATCH", "CALL", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [6, 9], [6, 10], [7, 11], [1, 12], [3, 13], [6, 14], [11, 15], [12, 16], [2, 17], [13, 18], [10, 19], [15, 20], [18, 21], [19, 22], [20, 23], [20, 24], [22, 25], [22, 26], [23, 27], [24, 28], [24, 29], [25, 30], [26, 31], [26, 32], [29, 33], [32, 34], [33, 35], [33, 36], [36, 37], [36, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 6], [10, 6], [11, 7], [12, 1], [13, 3], [14, 6], [15, 11], [16, 12], [17, 2], [18, 13], [19, 10], [20, 15], [21, 18], [22, 19], [23, 20], [24, 20], [25, 22], [26, 22], [27, 23], [28, 24], [29, 24], [30, 25], [31, 26], [32, 26], [33, 29], [34, 32], [35, 33], [36, 33], [37, 36], [38, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "addChild", "code": "    private Object addChild(ObjectDescriptor parentOD, Class childClass, String name, Object child)\n            throws InstantiationException, IllegalAccessException, InvocationTargetException {\n        Object parent = parentOD.getObject();\n        if (parent instanceof MacroRecord) {\n            MacroRecord record = (MacroRecord) parent;\n            MacroRecord recordChild = record.recordChild(name, child);\n            setCurrent(recordChild, name);\n            return recordChild;\n        }\n        Method addChild = parentOD.getAddMethod(childClass);\n        if (addChild != null) {\n            if (child == null) {\n                child = childClass.newInstance();\n            }\n            addChild.invoke(parent, new Object[] {child});\n            setCurrent(child, name);\n            return child;\n        }\n        addChild = parentOD.getAddConfiguredMethod(childClass);\n        if (addChild != null) {\n            if (child == null) {\n                if (Map.class == childClass) {\n                    child = new HashMap();\n                } else {\n                    child = childClass.newInstance();\n                }\n            }\n            setCurrent(child, name);\n            return child;\n        }\n        throw new IllegalArgumentException(\"no appropriate method found for adding \" + name\n                + \" on \" + parent.getClass());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [0, 13], [3, 14], [5, 15], [11, 16], [2, 17], [2, 18], [12, 19], [13, 20], [3, 21], [3, 22], [14, 23], [4, 24], [5, 25], [5, 26], [5, 27], [6, 28], [16, 29], [16, 30], [2, 31], [18, 32], [3, 33], [3, 34], [22, 35], [5, 36], [30, 37], [30, 38], [18, 39], [32, 40], [35, 41], [26, 42], [38, 43], [39, 44], [22, 45], [45, 46], [39, 47], [39, 48], [47, 49], [48, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 0], [14, 3], [15, 5], [16, 11], [17, 2], [18, 2], [19, 12], [20, 13], [21, 3], [22, 3], [23, 14], [24, 4], [25, 5], [26, 5], [27, 5], [28, 6], [29, 16], [30, 16], [31, 2], [32, 18], [33, 3], [34, 3], [35, 22], [36, 5], [37, 30], [38, 30], [39, 18], [40, 32], [41, 35], [42, 26], [43, 38], [44, 39], [45, 22], [46, 45], [47, 39], [48, 39], [49, 47], [50, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "isTopLevelMacroRecord", "code": "    public boolean isTopLevelMacroRecord() {\n        if (objectStack.isEmpty()) {\n            return false;\n        }\n        ObjectDescriptor od = (ObjectDescriptor) objectStack.peek();\n        return (od.getObject() instanceof MacroDef);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "BINARY_OP", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [4, 6], [3, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 4], [7, 3], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setAttribute", "code": "    public void setAttribute(String attributeName, String value) {\n        if (objectStack.isEmpty()) {\n            throw new IllegalStateException(\"set root before setting attribute\");\n        }\n        ObjectDescriptor od = (ObjectDescriptor) objectStack.peek();\n        if (od.getObject() instanceof Macro) {\n            ((Macro) od.getObject()).defineAttribute(attributeName, value);\n            return;\n        }\n        if (od.getObject() instanceof MacroRecord) {\n            ((MacroRecord) od.getObject()).recordAttribute(attributeName, value);\n            return;\n        }\n        Method m = od.getSetMethod(attributeName);\n        if (m == null) {\n            if (od.getObject() instanceof Map) {\n                ((Map) od.getObject()).put(attributeName, value);\n                return;\n            } \n            throw new IllegalArgumentException(\"no set method found for \" + attributeName + \" on \"\n                    + od.getObject().getClass());\n        }\n        Object convertedValue = null;\n        Class paramClass = m.getParameterTypes()[0];\n        try {\n            if (paramClass.equals(String.class)) {\n                convertedValue = value;\n            } else if (paramClass.equals(Boolean.class) || paramClass.equals(boolean.class)) {\n                convertedValue = Boolean.valueOf(TRUE_VALUES.contains(value));\n            } else if (paramClass.equals(Character.class) || paramClass.equals(char.class)) {\n                convertedValue = new Character(value.length() > 0 ? value.charAt(0) : ' ');\n            } else if (paramClass.equals(Short.class) || paramClass.equals(short.class)) {\n                convertedValue = Short.valueOf(value);\n            } else if (paramClass.equals(Integer.class) || paramClass.equals(int.class)) {\n                convertedValue = Integer.valueOf(value);\n            } else if (paramClass.equals(Long.class) || paramClass.equals(long.class)) {\n                convertedValue = Long.valueOf(value);\n            } else if (paramClass.equals(Class.class)) {\n                convertedValue = Class.forName(value);\n            } else if (paramClass.equals(File.class)) {\n                convertedValue = fileResolver.resolveFile(\n                                        value, od.getObjectName() + \".\" + attributeName);\n            } else {\n                convertedValue = paramClass.getConstructor(new Class[] {String.class}).newInstance(\n                    new Object[] {value});\n            }\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\"impossible to convert \"\n                    + value + \" to \" + paramClass + \" for setting \" + attributeName + \" on \"\n                    + od.getObject().getClass() + \": \" + ex.getMessage());\n            iae.initCause(ex);\n            throw iae;\n        }\n        try {\n            m.invoke(od.getObject(), new Object[] {convertedValue});\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\"impossible to set \"\n                    + attributeName + \" to \" + convertedValue + \" on \" + od.getObject().getClass());\n            iae.initCause(ex);\n            throw iae;", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "THROW_RAISE", "VAR_DECL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "RETURN", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [2, 15], [5, 16], [7, 17], [8, 18], [10, 19], [13, 20], [13, 21], [1, 22], [14, 23], [14, 24], [15, 25], [15, 26], [3, 27], [4, 28], [5, 29], [5, 30], [16, 31], [6, 32], [7, 33], [17, 34], [8, 35], [18, 36], [10, 37], [13, 38], [22, 39], [14, 40], [25, 41], [25, 42], [29, 43], [30, 44], [9, 45], [37, 46], [21, 47], [24, 48], [41, 49], [41, 50], [42, 51], [42, 52], [15, 53], [27, 54], [43, 55], [30, 56], [44, 57], [7, 58], [8, 59], [46, 60], [47, 61], [48, 62], [49, 63], [49, 64], [50, 65], [50, 66], [25, 67], [55, 68], [55, 69], [61, 70], [61, 71], [62, 72], [62, 73], [63, 74], [63, 75], [64, 76], [64, 77], [41, 78], [67, 79], [68, 80], [69, 81], [69, 82], [30, 83], [70, 84], [71, 85], [71, 86], [73, 87], [73, 88], [74, 89], [74, 90], [75, 91], [75, 92], [49, 93], [78, 94], [79, 95], [82, 96], [86, 97], [88, 98], [88, 99], [89, 100], [89, 101], [90, 102], [90, 103], [63, 104], [93, 105], [94, 106], [97, 107], [97, 108], [98, 109], [99, 110], [99, 111], [100, 112], [74, 113], [104, 114], [106, 115], [106, 116], [106, 117], [108, 118], [111, 119], [89, 120], [113, 121], [116, 122], [117, 123], [117, 124], [119, 125], [119, 126], [100, 127], [100, 128], [120, 129], [126, 130], [127, 131], [128, 132], [130, 133], [130, 134], [131, 135], [132, 136], [134, 137], [136, 138], [138, 139], [138, 140], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 2], [16, 5], [17, 7], [18, 8], [19, 10], [20, 13], [21, 13], [22, 1], [23, 14], [24, 14], [25, 15], [26, 15], [27, 3], [28, 4], [29, 5], [30, 5], [31, 16], [32, 6], [33, 7], [34, 17], [35, 8], [36, 18], [37, 10], [38, 13], [39, 22], [40, 14], [41, 25], [42, 25], [43, 29], [44, 30], [45, 9], [46, 37], [47, 21], [48, 24], [49, 41], [50, 41], [51, 42], [52, 42], [53, 15], [54, 27], [55, 43], [56, 30], [57, 44], [58, 7], [59, 8], [60, 46], [61, 47], [62, 48], [63, 49], [64, 49], [65, 50], [66, 50], [67, 25], [68, 55], [69, 55], [70, 61], [71, 61], [72, 62], [73, 62], [74, 63], [75, 63], [76, 64], [77, 64], [78, 41], [79, 67], [80, 68], [81, 69], [82, 69], [83, 30], [84, 70], [85, 71], [86, 71], [87, 73], [88, 73], [89, 74], [90, 74], [91, 75], [92, 75], [93, 49], [94, 78], [95, 79], [96, 82], [97, 86], [98, 88], [99, 88], [100, 89], [101, 89], [102, 90], [103, 90], [104, 63], [105, 93], [106, 94], [107, 97], [108, 97], [109, 98], [110, 99], [111, 99], [112, 100], [113, 74], [114, 104], [115, 106], [116, 106], [117, 106], [118, 108], [119, 111], [120, 89], [121, 113], [122, 116], [123, 117], [124, 117], [125, 119], [126, 119], [127, 100], [128, 100], [129, 120], [130, 126], [131, 127], [132, 128], [133, 130], [134, 130], [135, 131], [136, 132], [137, 134], [138, 136], [139, 138], [140, 138], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140]]}, {"function_name": "addText", "code": "    public void addText(String text) {\n        if (objectStack.isEmpty()) {\n            throw new IllegalStateException(\"set root before adding text\");\n        }\n        ObjectDescriptor od = (ObjectDescriptor) objectStack.peek();\n        try {\n            od.getObject().getClass().getMethod(\"addText\", new Class[] {String.class}).invoke(\n                od.getObject(), new Object[] {text});\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\n                    \"impossible to add text on \" + od.getObject().getClass());\n            iae.initCause(ex);\n            throw iae;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "CATCH", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [5, 8], [1, 9], [3, 10], [5, 11], [9, 12], [9, 13], [9, 14], [2, 15], [10, 16], [8, 17], [12, 18], [13, 19], [16, 20], [17, 21], [21, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 5], [9, 1], [10, 3], [11, 5], [12, 9], [13, 9], [14, 9], [15, 2], [16, 10], [17, 8], [18, 12], [19, 13], [20, 16], [21, 17], [22, 21], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "endCreateChild", "code": "    public Object endCreateChild() {\n        if (objectStack.isEmpty()) {\n            throw new IllegalStateException(\"set root before ending child\");\n        }\n        ObjectDescriptor od = (ObjectDescriptor) objectStack.pop();\n        if (objectStack.isEmpty()) {\n            objectStack.push(od); // back to previous state\n            throw new IllegalStateException(\"cannot end root\");\n        }\n        if (od.getObject() instanceof Macro) {\n            return ((Macro) od.getObject()).play(this);\n        }\n        ObjectDescriptor parentOD = (ObjectDescriptor) objectStack.peek();\n        String name = od.getObjectName();\n        Class childClass = (Class) typedefs.get(name);\n        Method m = null;\n        if (childClass != null) {\n            m = parentOD.getAddConfiguredMethod(childClass);\n        } else {\n            m = parentOD.getAddConfiguredMethod(name);\n        }\n        try {\n            if (m != null) {\n                m.invoke(parentOD.getObject(), new Object[] {od.getObject()});\n            }\n            return od.getObject();\n        } catch (Exception ex) {\n            IllegalArgumentException iae = new IllegalArgumentException(\n                    \"impossible to add configured child for \" + name + \" on \"\n                            + parentOD.getObject().getClass() \n                            + \": \" + StringUtils.getErrorMessage(ex));\n            iae.initCause(ex);\n            throw iae;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "CATCH", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [2, 14], [7, 15], [8, 16], [10, 17], [11, 18], [11, 19], [12, 20], [13, 21], [14, 22], [3, 23], [5, 24], [7, 25], [15, 26], [8, 27], [10, 28], [11, 29], [21, 30], [2, 31], [2, 32], [4, 33], [6, 34], [27, 35], [8, 36], [9, 37], [28, 38], [19, 39], [13, 40], [31, 41], [32, 42], [25, 43], [35, 44], [38, 45], [39, 46], [40, 47], [46, 48], [46, 49], [49, 50], [49, 51], [40, 52], [51, 53], [51, 54], [53, 55], [54, 56], [54, 57], [57, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 2], [15, 7], [16, 8], [17, 10], [18, 11], [19, 11], [20, 12], [21, 13], [22, 14], [23, 3], [24, 5], [25, 7], [26, 15], [27, 8], [28, 10], [29, 11], [30, 21], [31, 2], [32, 2], [33, 4], [34, 6], [35, 27], [36, 8], [37, 9], [38, 28], [39, 19], [40, 13], [41, 31], [42, 32], [43, 25], [44, 35], [45, 38], [46, 39], [47, 40], [48, 46], [49, 46], [50, 49], [51, 49], [52, 40], [53, 51], [54, 51], [55, 53], [56, 54], [57, 54], [58, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "getCurrent", "code": "    public Object getCurrent() {\n        return objectStack.isEmpty() ? null : ((ObjectDescriptor) objectStack.peek()).getObject();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getDepth", "code": "    public int getDepth() {\n        return objectStack.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startMacroDef", "code": "    public MacroDef startMacroDef(String macroName) {\n        MacroDef macroDef = new MacroDef(macroName);\n        setCurrent(macroDef, macroName);\n        return macroDef;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addMacroAttribute", "code": "    public void addMacroAttribute(String attName, String attDefaultValue) {\n        ((MacroDef) getCurrent()).addAttribute(attName, attDefaultValue);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addMacroElement", "code": "    public void addMacroElement(String elementName, boolean optional) {\n        ((MacroDef) getCurrent()).addElement(elementName, optional);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "endMacroDef", "code": "    public void endMacroDef() {\n        addConfiguredMacrodef(((MacroDef) getCurrent()));\n        objectStack.pop();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addConfiguredMacrodef", "code": "    public void addConfiguredMacrodef(MacroDef macrodef) {\n        macrodefs.put(macrodef.getName(), macrodef);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTypeDef", "code": "    public Class getTypeDef(String name) {\n        return (Class) typedefs.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFileResolver", "code": "    public FileResolver getFileResolver() {\n        return fileResolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFileResolver", "code": "    public void setFileResolver(FileResolver fileResolver) {\n        Checks.checkNotNull(fileResolver, \"fileResolver\");\n        this.fileResolver = fileResolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.4-247", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/SendEmail.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.SendEmail", "code": "public class SendEmail extends Task {\n    private String from;\n    private String mailhost = \"localhost\";\n    private String message;\n    private String toList;\n    private String subject;\n    private Vector files = new Vector();\n  \n    /** Creates new SendEmail */\n    public SendEmail() {\n    }\n\n    /**\n     * Sets the toList parameter of this build task.\n     *\n     * @param toList Comma-separated list of email recipient addreses.\n     */\n    public void setToList(String toList) {\n        this.toList = toList;\n    }\n  \n    /**\n     * Sets the from parameter of this build task.\n     *\n     * @param from Email address of sender.\n     */\n    public void setFrom(String from) {\n        this.from = from;\n    }\n  \n    /**\n     * Sets the mailhost parameter of this build task.\n     *\n     * @param mailhost Mail host name.\n     */\n    public void setMailhost(String mailhost) {\n        this.mailhost = mailhost;\n    }\n  \n    /**\n     * Sets the message parameter of this build task.\n     *\n     * @param message Message body of this email.\n     */\n    public void setMessage(String message) {\n        this.message = message;\n    }\n  \n    /**\n     * Sets the subject parameter of this build task.\n     *\n     * @param subject Subject of this email.\n     */\n    public void setSubject(String subject) {\n        this.subject = subject;\n    }\n\n    /**\n     * Sets the file parameter of this build task.\n     *\n     * @param filenames Filenames to include as the message body of this email.\n     */\n    public void setFiles(String filenames) {\n        StringTokenizer t = new StringTokenizer(filenames, \", \");\n    \n        while (t.hasMoreTokens()) {\n            files.addElement(project.resolveFile(t.nextToken()));\n        }\n    }\n\n    /**\n     * Executes this build task.\n     *\n     * throws org.apache.tools.ant.BuildException if there is an error during task\n     *        execution.\n     */\n    public void execute() {\n        try {\n            MailMessage mailMessage = new MailMessage(mailhost);\n\n            if (from != null) {\n                mailMessage.from(from);\n            } else {\n                throw new BuildException(\"Attribute \\\"from\\\" is required.\");\n            }\n\n            if (toList != null) {\n                StringTokenizer t = new StringTokenizer(toList, \", \", false);\n\n                while (t.hasMoreTokens()) {\n                    mailMessage.to(t.nextToken());\n                }\n            } else {\n                throw new BuildException(\"Attribute \\\"toList\\\" is required.\");\n            }\n\n            if (subject != null) {\n                mailMessage.setSubject(subject);\n            }\n\n            if (!files.isEmpty()) {\n                PrintStream out = mailMessage.getPrintStream();\n\n                for (Enumeration e = files.elements(); e.hasMoreElements(); ) {\n                    File file = (File)e.nextElement();\n\n                    if (file.exists() && file.canRead()) {\n                        int bufsize = 1024;\n                        int length;\n                        byte[] buf = new byte[bufsize];\n\n                        BufferedInputStream in = null;\n                        try {\n                            in = new BufferedInputStream(\n                                new FileInputStream(file), bufsize);\n    \n                            while ((length = in.read(buf, 0, bufsize)) != -1) {\n                                out.write(buf, 0, length);\n                            }\n                        } finally {\n                            if (in != null) {\n                                in.close();\n                            }\n                        }\n\n                    } else {\n                        throw new BuildException(\"File \\\"\" + file.getName()\n                            + \"\\\" does not exist or is not readable.\");\n                    }\n                }\n            } else if (message != null) {\n                PrintStream out = mailMessage.getPrintStream();\n                out.print(message);\n            } else {\n                throw new BuildException(\"Attribute \\\"file\\\" or \\\"message\\\" is required.\");\n            }\n\n            log(\"Sending email\");\n            mailMessage.sendAndClose();\n        } catch (IOException ioe) {\n            throw new BuildException(\"IO error sending mail: \" + ioe.getMessage());", "functions": [{"function_name": "setToList", "code": "    public void setToList(String toList) {\n        this.toList = toList;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFrom", "code": "    public void setFrom(String from) {\n        this.from = from;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMailhost", "code": "    public void setMailhost(String mailhost) {\n        this.mailhost = mailhost;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMessage", "code": "    public void setMessage(String message) {\n        this.message = message;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSubject", "code": "    public void setSubject(String subject) {\n        this.subject = subject;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFiles", "code": "    public void setFiles(String filenames) {\n        StringTokenizer t = new StringTokenizer(filenames, \", \");\n    \n        while (t.hasMoreTokens()) {\n            files.addElement(project.resolveFile(t.nextToken()));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [5, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 5], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "execute", "code": "    public void execute() {\n        try {\n            MailMessage mailMessage = new MailMessage(mailhost);\n\n            if (from != null) {\n                mailMessage.from(from);\n            } else {\n                throw new BuildException(\"Attribute \\\"from\\\" is required.\");\n            }\n\n            if (toList != null) {\n                StringTokenizer t = new StringTokenizer(toList, \", \", false);\n\n                while (t.hasMoreTokens()) {\n                    mailMessage.to(t.nextToken());\n                }\n            } else {\n                throw new BuildException(\"Attribute \\\"toList\\\" is required.\");\n            }\n\n            if (subject != null) {\n                mailMessage.setSubject(subject);\n            }\n\n            if (!files.isEmpty()) {\n                PrintStream out = mailMessage.getPrintStream();\n\n                for (Enumeration e = files.elements(); e.hasMoreElements(); ) {\n                    File file = (File)e.nextElement();\n\n                    if (file.exists() && file.canRead()) {\n                        int bufsize = 1024;\n                        int length;\n                        byte[] buf = new byte[bufsize];\n\n                        BufferedInputStream in = null;\n                        try {\n                            in = new BufferedInputStream(\n                                new FileInputStream(file), bufsize);\n    \n                            while ((length = in.read(buf, 0, bufsize)) != -1) {\n                                out.write(buf, 0, length);\n                            }\n                        } finally {\n                            if (in != null) {\n                                in.close();\n                            }\n                        }\n\n                    } else {\n                        throw new BuildException(\"File \\\"\" + file.getName()\n                            + \"\\\" does not exist or is not readable.\");\n                    }\n                }\n            } else if (message != null) {\n                PrintStream out = mailMessage.getPrintStream();\n                out.print(message);\n            } else {\n                throw new BuildException(\"Attribute \\\"file\\\" or \\\"message\\\" is required.\");\n            }\n\n            log(\"Sending email\");\n            mailMessage.sendAndClose();\n        } catch (IOException ioe) {\n            throw new BuildException(\"IO error sending mail: \" + ioe.getMessage());", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "IF", "IF", "IF", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "IF", "LOOP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [1, 9], [1, 10], [3, 11], [3, 12], [4, 13], [5, 14], [6, 15], [8, 16], [10, 17], [11, 18], [3, 19], [3, 20], [13, 21], [5, 22], [5, 23], [5, 24], [14, 25], [6, 26], [15, 27], [7, 28], [16, 29], [11, 30], [11, 31], [18, 32], [19, 33], [4, 34], [22, 35], [23, 36], [26, 37], [6, 38], [29, 39], [29, 40], [30, 41], [11, 42], [19, 43], [19, 44], [20, 45], [35, 46], [24, 47], [37, 48], [41, 49], [31, 50], [43, 51], [19, 52], [23, 53], [47, 54], [47, 55], [43, 56], [43, 57], [43, 58], [43, 59], [43, 60], [43, 61], [51, 62], [51, 63], [53, 64], [56, 65], [57, 66], [57, 67], [44, 68], [65, 69], [66, 70], [67, 71], [57, 72], [58, 73], [61, 74], [69, 75], [69, 76], [70, 77], [71, 78], [71, 79], [72, 80], [76, 81], [76, 82], [66, 83], [67, 84], [79, 85], [80, 86], [84, 87], [85, 88], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 1], [10, 1], [11, 3], [12, 3], [13, 4], [14, 5], [15, 6], [16, 8], [17, 10], [18, 11], [19, 3], [20, 3], [21, 13], [22, 5], [23, 5], [24, 5], [25, 14], [26, 6], [27, 15], [28, 7], [29, 16], [30, 11], [31, 11], [32, 18], [33, 19], [34, 4], [35, 22], [36, 23], [37, 26], [38, 6], [39, 29], [40, 29], [41, 30], [42, 11], [43, 19], [44, 19], [45, 20], [46, 35], [47, 24], [48, 37], [49, 41], [50, 31], [51, 43], [52, 19], [53, 23], [54, 47], [55, 47], [56, 43], [57, 43], [58, 43], [59, 43], [60, 43], [61, 43], [62, 51], [63, 51], [64, 53], [65, 56], [66, 57], [67, 57], [68, 44], [69, 65], [70, 66], [71, 67], [72, 57], [73, 58], [74, 61], [75, 69], [76, 69], [77, 70], [78, 71], [79, 71], [80, 72], [81, 76], [82, 76], [83, 66], [84, 67], [85, 79], [86, 80], [87, 84], [88, 85], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "SendEmail", "code": "    public SendEmail() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "jedit-3.2-3698", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/textarea/Selection.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.Selection", "code": "public abstract class Selection\n{\n\t/**\n\t * Returns the start offset of this selection.\n\t */\n\tpublic int getStart()\n\t{\n\t\treturn start;\n\t}\n\n\t/**\n\t * Returns the end offset of this selection.\n\t */\n\tpublic int getEnd()\n\t{\n\t\treturn end;\n\t}\n\n\t/**\n\t * Returns the starting line number of this selection.\n\t */\n\tpublic int getStartLine()\n\t{\n\t\treturn startLine;\n\t}\n\n\t/**\n\t * Returns the ending line number of this selection.\n\t */\n\tpublic int getEndLine()\n\t{\n\t\treturn endLine;\n\t}\n\n\t/**\n\t * Returns the start offset of this selection on the specified\n\t * line.\n\t * @param buffer The buffer\n\t * @param line The line number\n\t */\n\tpublic abstract int getStart(Buffer buffer, int line);\n\n\t/**\n\t * Returns the end offset of this selection on the specified\n\t * line.\n\t * @param buffer The buffer\n\t * @param line The line number\n\t */\n\tpublic abstract int getEnd(Buffer buffer, int line);\n\n\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[start=\" + start\n\t\t\t+ \",end=\" + end + \",startLine=\" + startLine\n\t\t\t+ \",endLine=\" + endLine + \"]\";\n\t}\n\n\t// package-private members\n\tint start, end, startLine, endLine;\n\n\t// protected members\n\tprotected Selection()\n\t{\n\t}\n\n\tprotected Selection(Selection copy)\n\t{\n\t\tstart = copy.start;\n\t\tend = copy.end;\n\t}\n\n\tprotected Selection(int start, int end)\n\t{\n\t\tthis.start = start;\n\t\tthis.end = end;\n\n\t\t// setting these is handled by textArea._addToSelection();\n\t\t//this.startLine = startLine;\n\t\t//this.endLine = endLine;\n\t}\n\n\t/**\n\t * An ordinary range selection.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic static class Range extends Selection\n\t{\n\t\tpublic Range()\n\t\t{\n\t\t\tsuper();\n\t\t}\n\n\t\tpublic Range(Selection sel)\n\t\t{\n\t\t\tsuper(sel);\n\t\t}\n\n\t\tpublic Range(int start, int end)\n\t\t{\n\t\t\tsuper(start,end);\n\t\t}\n\n\t\tpublic int getStart(Buffer buffer, int line)\n\t\t{\n\t\t\tif(line == startLine)\n\t\t\t\treturn start;\n\t\t\telse\n\t\t\t{\n\t\t\t\tElement map = buffer.getDefaultRootElement();\n\t\t\t\tElement lineElement = map.getElement(line);\n\t\t\t\treturn lineElement.getStartOffset();\n\t\t\t}\n\t\t}\n\n\t\tpublic int getEnd(Buffer buffer, int line)\n\t\t{\n\t\t\tif(line == endLine)\n\t\t\t\treturn end;\n\t\t\telse\n\t\t\t{\n\t\t\t\tElement map = buffer.getDefaultRootElement();\n\t\t\t\tElement lineElement = map.getElement(line);\n\t\t\t\treturn lineElement.getEndOffset() - 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * A rectangular selection.\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic static class Rect extends Selection\n\t{\n\t\tpublic Rect()\n\t\t{\n\t\t\tsuper();\n\t\t}\n\n\t\tpublic Rect(Selection sel)\n\t\t{\n\t\t\tsuper(sel);\n\t\t}\n\n\t\tpublic Rect(int start, int end)\n\t\t{\n\t\t\tsuper(start,end);\n\t\t}\n\n\t\tpublic int getStart(Buffer buffer, int line)\n\t\t{\n\t\t\tif(line == startLine)\n\t\t\t\treturn start;\n\t\t\telse\n\t\t\t{\n\t\t\t\tElement map = buffer.getDefaultRootElement();\n\t\t\t\tint _start = start - map.getElement(startLine)\n\t\t\t\t\t.getStartOffset();\n\t\t\t\tint _end = end - map.getElement(endLine)\n\t\t\t\t\t.getStartOffset();\n\t\n\t\t\t\tElement lineElement = map.getElement(line);\n\t\t\t\treturn Math.min(lineElement.getEndOffset() - 1,\n\t\t\t\t\tlineElement.getStartOffset()\n\t\t\t\t\t+ Math.min(_start,_end));\n\t\t\t}\n\t\t}\n\n\t\tpublic int getEnd(Buffer buffer, int line)\n\t\t{\n\t\t\tif(line == endLine)\n\t\t\t\treturn end;\n\t\t\telse\n\t\t\t{\n\t\t\t\tElement map = buffer.getDefaultRootElement();\n\t\t\t\tint _start = start - map.getElement(startLine)\n\t\t\t\t\t.getStartOffset();\n\t\t\t\tint _end = end - map.getElement(endLine)\n\t\t\t\t\t.getStartOffset();\n\t\n\t\t\t\tElement lineElement = map.getElement(line);\n\t\t\t\treturn Math.min(lineElement.getEndOffset() - 1,\n\t\t\t\t\tlineElement.getStartOffset()\n\t\t\t\t\t+ Math.max(_start,_end));", "functions": [{"function_name": "getStart", "code": "\tpublic int getStart()\n\t{\n\t\treturn start;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEnd", "code": "\tpublic int getEnd()\n\t{\n\t\treturn end;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStartLine", "code": "\tpublic int getStartLine()\n\t{\n\t\treturn startLine;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEndLine", "code": "\tpublic int getEndLine()\n\t{\n\t\treturn endLine;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStart", "code": "\tpublic abstract int getStart(Buffer buffer, int line);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEnd", "code": "\tpublic abstract int getEnd(Buffer buffer, int line);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn getClass().getName() + \"[start=\" + start\n\t\t\t+ \",end=\" + end + \",startLine=\" + startLine\n\t\t\t+ \",endLine=\" + endLine + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [14, 15], [14, 16], [16, 17], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 14], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "Selection", "code": "\tprotected Selection()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "Selection", "code": "\tprotected Selection(Selection copy)\n\t{\n\t\tstart = copy.start;\n\t\tend = copy.end;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Selection", "code": "\tprotected Selection(int start, int end)\n\t{\n\t\tthis.start = start;\n\t\tthis.end = end;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.4-2501", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/http/CamelServlet.java", "language": "java", "name": "org.apache.camel.component.http.CamelServlet", "code": "public class CamelServlet extends HttpServlet {\n\n    private ConcurrentHashMap<String, HttpConsumer> consumers = new ConcurrentHashMap<String, HttpConsumer>();\n\n    public CamelServlet() {\n    }\n\n    @Override\n    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n        try {\n\n            HttpConsumer consumer = resolve(request);\n            if (consumer == null) {\n                response.sendError(HttpServletResponse.SC_NOT_FOUND);\n                return;\n            }\n\n            HttpExchange exchange = new HttpExchange(consumer.getEndpoint(), request, response);\n            consumer.getProcessor().process(exchange);\n\n\n            consumer.getBinding().writeResponse(exchange, response);\n\n        } catch (Exception e) {\n            throw new ServletException(e);\n        }\n    }\n\n    protected HttpConsumer resolve(HttpServletRequest request) {\n        String path = request.getPathInfo();\n        return consumers.get(path);\n    }\n\n    public void connect(HttpConsumer consumer) {\n        consumers.put(consumer.getPath(), consumer);\n    }\n\n    public void disconnect(HttpConsumer consumer) {\n        consumers.remove(consumer.getPath());", "functions": [{"function_name": "service", "code": "    @Override\n    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n        try {\n\n            HttpConsumer consumer = resolve(request);\n            if (consumer == null) {\n                response.sendError(HttpServletResponse.SC_NOT_FOUND);\n                return;\n            }\n\n            HttpExchange exchange = new HttpExchange(consumer.getEndpoint(), request, response);\n            consumer.getProcessor().process(exchange);\n\n\n            consumer.getBinding().writeResponse(exchange, response);\n\n        } catch (Exception e) {\n            throw new ServletException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [1, 9], [1, 10], [6, 11], [8, 12], [9, 13], [10, 14], [5, 15], [6, 16], [11, 17], [7, 18], [15, 19], [6, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 1], [10, 1], [11, 6], [12, 8], [13, 9], [14, 10], [15, 5], [16, 6], [17, 11], [18, 7], [19, 15], [20, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "resolve", "code": "    protected HttpConsumer resolve(HttpServletRequest request) {\n        String path = request.getPathInfo();\n        return consumers.get(path);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "connect", "code": "    public void connect(HttpConsumer consumer) {\n        consumers.put(consumer.getPath(), consumer);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "disconnect", "code": "    public void disconnect(HttpConsumer consumer) {\n        consumers.remove(consumer.getPath());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "CamelServlet", "code": "    public CamelServlet() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.2-4415", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/print/BufferPrinter1_3.java", "language": "java", "name": "org.gjt.sp.jedit.print.BufferPrinter1_3", "code": "public class BufferPrinter1_3\n{\n\t//{{{ getPrintJob() method\n\tprivate static PrinterJob getPrintJob()\n\t{\n\t\tjob = PrinterJob.getPrinterJob();\n\n\t\tint orientation = jEdit.getIntegerProperty(\"print.orientation\",PageFormat.PORTRAIT);\n\t\tdouble width = jEdit.getDoubleProperty(\"print.width\",0);\n\t\tdouble height = jEdit.getDoubleProperty(\"print.height\",0);\n\t\tdouble x = jEdit.getDoubleProperty(\"print.x\",0);\n\t\tdouble y = jEdit.getDoubleProperty(\"print.y\",0);\n\t\tdouble pagewidth = jEdit.getDoubleProperty(\"print.pagewidth\",0);\n\t\tdouble pageheight = jEdit.getDoubleProperty(\"print.pageheight\",0);\n\n\t\tformat = job.defaultPage();\n\t\t//format.setOrientation(PageFormat.PORTRAIT);\n\t\tif(width!=0 && height!=0 )\n\t\t{\n\t\t\tPaper pap = format.getPaper();\n\t\t\tpap.setImageableArea(x,y,width,height);\n\t\t\tpap.setSize(pagewidth,pageheight);\n\t\t\tformat.setPaper(pap);\n\t\t}\n\t\tformat.setOrientation(orientation);\n\t\treturn job;\n\n\t}//}}}\n\n\t//{{{ pageSetup() method\n\tpublic static void pageSetup(View view)\n\t{\n\t\tjob = getPrintJob();\n\n\t\tPageFormat newFormat = job.pageDialog(format);\n\t\tif(newFormat != null)\n\t\t{\n\t\t\tformat = newFormat;\n\t\t\tjEdit.setIntegerProperty(\"print.orientation\",format.getOrientation());\n\t\t\tPaper paper=format.getPaper();\n\n\t\t\tjEdit.setDoubleProperty(\"print.width\",paper.getImageableWidth());\n\t\t\tjEdit.setDoubleProperty(\"print.height\",paper.getImageableHeight());\n\t\t\tjEdit.setDoubleProperty(\"print.x\",paper.getImageableX());\n\t\t\tjEdit.setDoubleProperty(\"print.y\",paper.getImageableY());\n\t\t\tjEdit.setDoubleProperty(\"print.pagewidth\",paper.getWidth());\n\t\t\tjEdit.setDoubleProperty(\"print.pageheight\",paper.getHeight());\n\t\t}\n\t} //}}}\n\n\t//{{{ print() method\n\tpublic static void print(final View view, final Buffer buffer, boolean selection)\n\t{\n\t\tjob = getPrintJob();\n\t\tjob.setJobName(buffer.getPath());\n\t\tboolean header = jEdit.getBooleanProperty(\"print.header\");\n\t\tboolean footer = jEdit.getBooleanProperty(\"print.footer\");\n\t\tboolean lineNumbers = jEdit.getBooleanProperty(\"print.lineNumbers\");\n\t\tboolean color = jEdit.getBooleanProperty(\"print.color\");\n\t\tFont font = jEdit.getFontProperty(\"print.font\");\n\n\t\tBufferPrintable printable = new BufferPrintable(job,null,view,\n\t\t\tbuffer,font,header,footer,lineNumbers,color);\n\t\tjob.setPrintable(printable,format);\n\n\t\tif(!job.printDialog())\n\t\t\treturn;\n\n\t\tprintable.print();\n\t} //}}}\n\n\t//{{{ getPageFormat() method\n\tpublic static PageFormat getPageFormat()\n\t{\n\t\treturn format;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static PageFormat format;\n\tprivate static PrinterJob job;", "functions": [{"function_name": "getPrintJob", "code": "\tprivate static PrinterJob getPrintJob()\n\t{\n\t\tjob = PrinterJob.getPrinterJob();\n\n\t\tint orientation = jEdit.getIntegerProperty(\"print.orientation\",PageFormat.PORTRAIT);\n\t\tdouble width = jEdit.getDoubleProperty(\"print.width\",0);\n\t\tdouble height = jEdit.getDoubleProperty(\"print.height\",0);\n\t\tdouble x = jEdit.getDoubleProperty(\"print.x\",0);\n\t\tdouble y = jEdit.getDoubleProperty(\"print.y\",0);\n\t\tdouble pagewidth = jEdit.getDoubleProperty(\"print.pagewidth\",0);\n\t\tdouble pageheight = jEdit.getDoubleProperty(\"print.pageheight\",0);\n\n\t\tformat = job.defaultPage();\n\t\t//format.setOrientation(PageFormat.PORTRAIT);\n\t\tif(width!=0 && height!=0 )\n\t\t{\n\t\t\tPaper pap = format.getPaper();\n\t\t\tpap.setImageableArea(x,y,width,height);\n\t\t\tpap.setSize(pagewidth,pageheight);\n\t\t\tformat.setPaper(pap);\n\t\t}\n\t\tformat.setOrientation(orientation);\n\t\treturn job;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [0, 12], [0, 13], [2, 14], [11, 15], [11, 16], [12, 17], [3, 18], [4, 19], [5, 20], [6, 21], [7, 22], [8, 23], [9, 24], [13, 25], [2, 26], [2, 27], [2, 28], [15, 29], [16, 30], [18, 31], [18, 32], [19, 33], [19, 34], [20, 35], [20, 36], [21, 37], [21, 38], [22, 39], [22, 40], [23, 41], [23, 42], [24, 43], [14, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 0], [13, 0], [14, 2], [15, 11], [16, 11], [17, 12], [18, 3], [19, 4], [20, 5], [21, 6], [22, 7], [23, 8], [24, 9], [25, 13], [26, 2], [27, 2], [28, 2], [29, 15], [30, 16], [31, 18], [32, 18], [33, 19], [34, 19], [35, 20], [36, 20], [37, 21], [38, 21], [39, 22], [40, 22], [41, 23], [42, 23], [43, 24], [44, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "pageSetup", "code": "\tpublic static void pageSetup(View view)\n\t{\n\t\tjob = getPrintJob();\n\n\t\tPageFormat newFormat = job.pageDialog(format);\n\t\tif(newFormat != null)\n\t\t{\n\t\t\tformat = newFormat;\n\t\t\tjEdit.setIntegerProperty(\"print.orientation\",format.getOrientation());\n\t\t\tPaper paper=format.getPaper();\n\n\t\t\tjEdit.setDoubleProperty(\"print.width\",paper.getImageableWidth());\n\t\t\tjEdit.setDoubleProperty(\"print.height\",paper.getImageableHeight());\n\t\t\tjEdit.setDoubleProperty(\"print.x\",paper.getImageableX());\n\t\t\tjEdit.setDoubleProperty(\"print.y\",paper.getImageableY());\n\t\t\tjEdit.setDoubleProperty(\"print.pagewidth\",paper.getWidth());\n\t\t\tjEdit.setDoubleProperty(\"print.pageheight\",paper.getHeight());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [2, 8], [5, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [10, 18], [10, 19], [11, 20], [11, 21], [12, 22], [12, 23], [13, 24], [13, 25], [14, 26], [14, 27], [15, 28], [15, 29], [6, 30], [16, 31], [16, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 2], [9, 5], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 10], [19, 10], [20, 11], [21, 11], [22, 12], [23, 12], [24, 13], [25, 13], [26, 14], [27, 14], [28, 15], [29, 15], [30, 6], [31, 16], [32, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "print", "code": "\tpublic static void print(final View view, final Buffer buffer, boolean selection)\n\t{\n\t\tjob = getPrintJob();\n\t\tjob.setJobName(buffer.getPath());\n\t\tboolean header = jEdit.getBooleanProperty(\"print.header\");\n\t\tboolean footer = jEdit.getBooleanProperty(\"print.footer\");\n\t\tboolean lineNumbers = jEdit.getBooleanProperty(\"print.lineNumbers\");\n\t\tboolean color = jEdit.getBooleanProperty(\"print.color\");\n\t\tFont font = jEdit.getFontProperty(\"print.font\");\n\n\t\tBufferPrintable printable = new BufferPrintable(job,null,view,\n\t\t\tbuffer,font,header,footer,lineNumbers,color);\n\t\tjob.setPrintable(printable,format);\n\n\t\tif(!job.printDialog())\n\t\t\treturn;\n\n\t\tprintable.print();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [0, 14], [0, 15], [0, 16], [2, 17], [3, 18], [4, 19], [5, 20], [6, 21], [7, 22], [15, 23], [16, 24], [17, 25], [18, 26], [19, 27], [20, 28], [21, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 0], [15, 0], [16, 0], [17, 2], [18, 3], [19, 4], [20, 5], [21, 6], [22, 7], [23, 15], [24, 16], [25, 17], [26, 18], [27, 19], [28, 20], [29, 21], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getPageFormat", "code": "\tpublic static PageFormat getPageFormat()\n\t{\n\t\treturn format;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-1000", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/Exec.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Exec", "code": "public class Exec extends Task {\n    private String os;\n    private String out;\n    private File dir;\n    private String command;\n    protected PrintWriter fos = null;\n    private boolean failOnError = false;\n\n    /**\n     * Constructor for Exec.\n     * Prints a warning message to std error.\n     */\n    public Exec() {\n        System.err.println(\"As of Ant 1.2 released in October 2000, \"\n            + \"the Exec class\");\n        System.err.println(\"is considered to be dead code by the Ant \"\n            + \"developers and is unmaintained.\");\n        System.err.println(\"Don\\'t use it!\");\n    }\n\n    /**\n     * Execute the task.\n     * @throws BuildException on error\n     */\n    public void execute() throws BuildException {\n        run(command);\n    }\n\n    /**\n     * Execute the command.\n     * @param command the command to exec\n     * @return the exit value of the command\n     * @throws BuildException on error\n     */\n    protected int run(String command) throws BuildException {\n\n\n        String myos = System.getProperty(\"os.name\");\n        log(\"Myos = \" + myos, Project.MSG_VERBOSE);\n        if ((os != null) && (os.indexOf(myos) < 0)) {\n            log(\"Not found in \" + os, Project.MSG_VERBOSE);\n            return 0;\n        }\n\n        if (dir == null) {\n          dir = getProject().getBaseDir();\n        }\n\n        if (myos.toLowerCase().indexOf(\"windows\") >= 0) {\n            if (!dir.equals(getProject().resolveFile(\".\"))) {\n                if (myos.toLowerCase().indexOf(\"nt\") >= 0) {\n                    command = \"cmd /c cd \" + dir + \" && \" + command;\n                } else {\n                    String ant = getProject().getProperty(MagicNames.ANT_HOME);\n                    if (ant == null) {\n                        throw new BuildException(\"Property '\" + MagicNames.ANT_HOME + \"' not \"\n                            + \"found\", getLocation());\n                    }\n\n                    String antRun = getProject().resolveFile(ant + \"/bin/antRun.bat\").toString();\n                    command = antRun + \" \" + dir + \" \" + command;\n                }\n            }\n        } else {\n            String ant = getProject().getProperty(MagicNames.ANT_HOME);\n            if (ant == null) {\n              throw new BuildException(\"Property '\" + MagicNames.ANT_HOME + \"' not found\",\n                                       getLocation());\n            }\n            String antRun = getProject().resolveFile(ant + \"/bin/antRun\").toString();\n\n            command = antRun + \" \" + dir + \" \" + command;\n        }\n\n        try {\n            log(command, Project.MSG_VERBOSE);\n\n            Process proc = Runtime.getRuntime().exec(command);\n\n            if (out != null)  {\n                fos = new PrintWriter(new FileWriter(out));\n                log(\"Output redirected to \" + out, Project.MSG_VERBOSE);\n            }\n\n            StreamPumper inputPumper =\n                new StreamPumper(proc.getInputStream(), Project.MSG_INFO);\n            StreamPumper errorPumper =\n                new StreamPumper(proc.getErrorStream(), Project.MSG_WARN);\n\n            inputPumper.start();\n            errorPumper.start();\n\n            proc.waitFor();\n            inputPumper.join();\n            errorPumper.join();\n            proc.destroy();\n\n            logFlush();\n\n            err = proc.exitValue();\n            if (err != 0) {\n                if (failOnError) {\n                    throw new BuildException(\"Exec returned: \" + err, getLocation());\n                } else {\n                    log(\"Result: \" + err, Project.MSG_ERR);\n                }\n            }\n        } catch (IOException ioe) {\n            throw new BuildException(\"Error exec: \" + command, ioe, getLocation());\n        } catch (InterruptedException ex) {\n        }\n\n        return err;\n    }\n\n    /**\n     * Set the directory.\n     * @param d a <code>String</code> value\n     */\n    public void setDir(String d) {\n        this.dir = getProject().resolveFile(d);\n    }\n\n    /**\n     * Set the Operating System that this exec is to run in.\n     * @param os a <code>String</code> value\n     */\n    public void setOs(String os) {\n        this.os = os;\n    }\n\n    /**\n     * Set the command to exec.\n     * @param command a <code>String</code> value\n     */\n    public void setCommand(String command) {\n        this.command = command;\n    }\n\n    /**\n     * Set the output filename.\n     * @param out a <code>String</code> value\n     */\n    public void setOutput(String out) {\n        this.out = out;\n    }\n\n    /**\n     * Set the failOnError attribute.\n     * Default is false.\n     * @param fail a <code>boolean</code> value\n     */\n    public void setFailonerror(boolean fail) {\n        failOnError = fail;\n    }\n\n    /**\n     * Log an output message.\n     * @param line the line to putput\n     * @param messageLevel the level of logging - ignored\n     *                     if output is going to a file\n     */\n    protected void outputLog(String line, int messageLevel) {\n        if (fos == null) {\n            log(line, messageLevel);\n        } else {\n            fos.println(line);\n        }\n    }\n\n    /**\n     * Close output.\n     */\n    protected void logFlush() {\n        if (fos != null) {\n          fos.close();\n        }\n    }\n\n    class StreamPumper extends Thread {\n        private BufferedReader din;\n        private int messageLevel;\n        private boolean endOfStream = false;\n        private static final int SLEEP_TIME = 5;\n\n        public StreamPumper(InputStream is, int messageLevel) {\n            this.din = new BufferedReader(new InputStreamReader(is));\n            this.messageLevel = messageLevel;\n        }\n\n        public void pumpStream() throws IOException {\n            if (!endOfStream) {\n                String line = din.readLine();\n\n                if (line != null) {\n                    outputLog(line, messageLevel);\n                } else {\n                    endOfStream = true;\n                }\n            }\n        }\n\n        public void run() {\n            try {\n                try {\n                    while (!endOfStream) {\n                        pumpStream();\n                        sleep(SLEEP_TIME);\n                    }\n                } catch (InterruptedException ie) {\n                }\n                din.close();", "functions": [{"function_name": "execute", "code": "    public void execute() throws BuildException {\n        run(command);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "run", "code": "    protected int run(String command) throws BuildException {\n\n\n        String myos = System.getProperty(\"os.name\");\n        log(\"Myos = \" + myos, Project.MSG_VERBOSE);\n        if ((os != null) && (os.indexOf(myos) < 0)) {\n            log(\"Not found in \" + os, Project.MSG_VERBOSE);\n            return 0;\n        }\n\n        if (dir == null) {\n          dir = getProject().getBaseDir();\n        }\n\n        if (myos.toLowerCase().indexOf(\"windows\") >= 0) {\n            if (!dir.equals(getProject().resolveFile(\".\"))) {\n                if (myos.toLowerCase().indexOf(\"nt\") >= 0) {\n                    command = \"cmd /c cd \" + dir + \" && \" + command;\n                } else {\n                    String ant = getProject().getProperty(MagicNames.ANT_HOME);\n                    if (ant == null) {\n                        throw new BuildException(\"Property '\" + MagicNames.ANT_HOME + \"' not \"\n                            + \"found\", getLocation());\n                    }\n\n                    String antRun = getProject().resolveFile(ant + \"/bin/antRun.bat\").toString();\n                    command = antRun + \" \" + dir + \" \" + command;\n                }\n            }\n        } else {\n            String ant = getProject().getProperty(MagicNames.ANT_HOME);\n            if (ant == null) {\n              throw new BuildException(\"Property '\" + MagicNames.ANT_HOME + \"' not found\",\n                                       getLocation());\n            }\n            String antRun = getProject().resolveFile(ant + \"/bin/antRun\").toString();\n\n            command = antRun + \" \" + dir + \" \" + command;\n        }\n\n        try {\n            log(command, Project.MSG_VERBOSE);\n\n            Process proc = Runtime.getRuntime().exec(command);\n\n            if (out != null)  {\n                fos = new PrintWriter(new FileWriter(out));\n                log(\"Output redirected to \" + out, Project.MSG_VERBOSE);\n            }\n\n            StreamPumper inputPumper =\n                new StreamPumper(proc.getInputStream(), Project.MSG_INFO);\n            StreamPumper errorPumper =\n                new StreamPumper(proc.getErrorStream(), Project.MSG_WARN);\n\n            inputPumper.start();\n            errorPumper.start();\n\n            proc.waitFor();\n            inputPumper.join();\n            errorPumper.join();\n            proc.destroy();\n\n            logFlush();\n\n            err = proc.exitValue();\n            if (err != 0) {\n                if (failOnError) {\n                    throw new BuildException(\"Exec returned: \" + err, getLocation());\n                } else {\n                    log(\"Result: \" + err, Project.MSG_ERR);\n                }\n            }\n        } catch (IOException ioe) {\n            throw new BuildException(\"Error exec: \" + command, ioe, getLocation());\n        } catch (InterruptedException ex) {\n        }\n\n        return err;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "IF", "IF", "VAR_DECL", "PARAM", "CATCH", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [3, 15], [4, 16], [5, 17], [0, 18], [9, 19], [10, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [13, 29], [2, 30], [3, 31], [3, 32], [3, 33], [3, 34], [15, 35], [15, 36], [16, 37], [5, 38], [17, 39], [17, 40], [18, 41], [6, 42], [19, 43], [10, 44], [20, 45], [21, 46], [11, 47], [12, 48], [29, 49], [14, 50], [3, 51], [32, 52], [34, 53], [36, 54], [4, 55], [38, 56], [5, 57], [39, 58], [39, 59], [40, 60], [41, 61], [42, 62], [43, 63], [43, 64], [47, 65], [48, 66], [13, 67], [13, 68], [50, 69], [51, 70], [31, 71], [32, 72], [52, 73], [33, 74], [34, 75], [53, 76], [54, 77], [55, 78], [57, 79], [64, 80], [44, 81], [67, 82], [68, 83], [70, 84], [71, 85], [71, 86], [72, 87], [74, 88], [75, 89], [76, 90], [78, 91], [79, 92], [44, 93], [81, 94], [82, 95], [83, 96], [84, 97], [84, 98], [86, 99], [87, 100], [87, 101], [75, 102], [75, 103], [75, 104], [89, 105], [89, 106], [90, 107], [93, 108], [94, 109], [94, 110], [98, 111], [99, 112], [101, 113], [101, 114], [75, 115], [103, 116], [75, 117], [106, 118], [108, 119], [110, 120], [111, 121], [114, 122], [115, 123], [102, 124], [103, 125], [116, 126], [104, 127], [117, 128], [118, 129], [123, 130], [124, 131], [124, 132], [125, 133], [127, 134], [128, 135], [130, 136], [130, 137], [132, 138], [133, 139], [133, 140], [135, 141], [135, 142], [137, 143], [138, 144], [140, 145], [140, 146], [142, 147], [143, 148], [146, 149], [146, 150], [150, 151], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 3], [16, 4], [17, 5], [18, 0], [19, 9], [20, 10], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 13], [30, 2], [31, 3], [32, 3], [33, 3], [34, 3], [35, 15], [36, 15], [37, 16], [38, 5], [39, 17], [40, 17], [41, 18], [42, 6], [43, 19], [44, 10], [45, 20], [46, 21], [47, 11], [48, 12], [49, 29], [50, 14], [51, 3], [52, 32], [53, 34], [54, 36], [55, 4], [56, 38], [57, 5], [58, 39], [59, 39], [60, 40], [61, 41], [62, 42], [63, 43], [64, 43], [65, 47], [66, 48], [67, 13], [68, 13], [69, 50], [70, 51], [71, 31], [72, 32], [73, 52], [74, 33], [75, 34], [76, 53], [77, 54], [78, 55], [79, 57], [80, 64], [81, 44], [82, 67], [83, 68], [84, 70], [85, 71], [86, 71], [87, 72], [88, 74], [89, 75], [90, 76], [91, 78], [92, 79], [93, 44], [94, 81], [95, 82], [96, 83], [97, 84], [98, 84], [99, 86], [100, 87], [101, 87], [102, 75], [103, 75], [104, 75], [105, 89], [106, 89], [107, 90], [108, 93], [109, 94], [110, 94], [111, 98], [112, 99], [113, 101], [114, 101], [115, 75], [116, 103], [117, 75], [118, 106], [119, 108], [120, 110], [121, 111], [122, 114], [123, 115], [124, 102], [125, 103], [126, 116], [127, 104], [128, 117], [129, 118], [130, 123], [131, 124], [132, 124], [133, 125], [134, 127], [135, 128], [136, 130], [137, 130], [138, 132], [139, 133], [140, 133], [141, 135], [142, 135], [143, 137], [144, 138], [145, 140], [146, 140], [147, 142], [148, 143], [149, 146], [150, 146], [151, 150], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151]]}, {"function_name": "setDir", "code": "    public void setDir(String d) {\n        this.dir = getProject().resolveFile(d);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setOs", "code": "    public void setOs(String os) {\n        this.os = os;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCommand", "code": "    public void setCommand(String command) {\n        this.command = command;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutput", "code": "    public void setOutput(String out) {\n        this.out = out;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFailonerror", "code": "    public void setFailonerror(boolean fail) {\n        failOnError = fail;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "outputLog", "code": "    protected void outputLog(String line, int messageLevel) {\n        if (fos == null) {\n            log(line, messageLevel);\n        } else {\n            fos.println(line);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "logFlush", "code": "    protected void logFlush() {\n        if (fos != null) {\n          fos.close();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Exec", "code": "    public Exec() {\n        System.err.println(\"As of Ant 1.2 released in October 2000, \"\n            + \"the Exec class\");\n        System.err.println(\"is considered to be dead code by the Ant \"\n            + \"developers and is unmaintained.\");\n        System.err.println(\"Don\\'t use it!\");", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [5, 7], [5, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 5], [8, 5], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "camel-1.6-2750", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jms/requestor/PersistentReplyToRequestor.java", "language": "java", "name": "org.apache.camel.component.jms.requestor.PersistentReplyToRequestor", "code": "public class PersistentReplyToRequestor extends Requestor {\n    private String replyToSelectorValue;\n\n    public class DestinationResolverDelegate implements DestinationResolver {\n        private DestinationResolver delegate;\n        private Destination destination;\n\n        public DestinationResolverDelegate(DestinationResolver delegate) {\n            this.delegate = delegate;\n        }\n\n        public Destination resolveDestinationName(Session session, String destinationName,\n                                                  boolean pubSubDomain) throws JMSException {\n            synchronized (getOutterInstance()) {\n                try {\n                    if (destination == null) {\n                        destination = delegate.resolveDestinationName(session, destinationName, pubSubDomain);\n                        setReplyTo(destination);\n                    }\n                } finally {\n                    getOutterInstance().notifyAll();\n                }\n            }\n            return destination;\n        }\n    };\n\n    public static interface MessageSelectorComposer {\n        void addCorrelationID(String id);\n        void removeCorrelationID(String id);\n    }\n\n    public static class CamelDefaultMessageListenerContainer102 extends DefaultMessageListenerContainer102\n                                                                implements MessageSelectorComposer {\n        MessageSelectorProvider provider = new MessageSelectorProvider();\n\n        public void addCorrelationID(String id) {\n            provider.addCorrelationID(id);\n        }\n\n        public void removeCorrelationID(String id) {\n            provider.removeCorrelationID(id);\n        }\n\n        @Override\n        public void setMessageSelector(String messageSelector) {\n            throw new UnsupportedOperationException();\n        }\n\n        @Override\n        public String getMessageSelector() {\n            return provider.get();\n        }\n    }\n\n    public static class CamelDefaultMessageListenerContainer extends DefaultMessageListenerContainer\n                                                             implements MessageSelectorComposer {\n\n        MessageSelectorProvider provider = new MessageSelectorProvider();\n\n        public void addCorrelationID(String id) {\n            provider.addCorrelationID(id);\n        }\n\n        public void removeCorrelationID(String id) {\n            provider.removeCorrelationID(id);\n        }\n\n        @Override\n        public void setMessageSelector(String messageSelector) {\n            throw new UnsupportedOperationException();\n        }\n\n        @Override\n        public String getMessageSelector() {\n            return provider.get();\n        }\n    }\n\n    public PersistentReplyToRequestor(JmsConfiguration configuration,\n                                      ScheduledExecutorService executorService) {\n        super(configuration, executorService);\n    }\n\n\n    @Override\n    protected FutureHandler createFutureHandler(String correlationID) {\n        boolean dynamicSelector = getConfiguration().getReplyToDestinationSelectorName() == null;\n        if (dynamicSelector) {\n            return new PersistentReplyToFutureHandler(this, correlationID);\n        }\n        return new FutureHandler();\n    }\n\n    @Override\n    protected FutureHandler createFutureHandler(DeferredMessageSentCallback callback) {\n        boolean dynamicSelector = getConfiguration().getReplyToDestinationSelectorName() == null;\n        if (dynamicSelector) {\n            return new PersistentReplyToFutureHandler(this, callback);\n        }\n        return new FutureHandler();\n    }\n\n    @Override\n    public AbstractMessageListenerContainer createListenerContainer() {\n        JmsConfiguration config = getConfiguration();\n        String replyToSelectorName = getConfiguration().getReplyToDestinationSelectorName();\n\n        AbstractMessageListenerContainer container =\n            config.isUseVersion102()\n                    ? (replyToSelectorName != null) ? new DefaultMessageListenerContainer102()\n                           : new CamelDefaultMessageListenerContainer102()\n                    : (replyToSelectorName != null) ? new DefaultMessageListenerContainer()\n                           : new CamelDefaultMessageListenerContainer();\n\n        container.setConnectionFactory(config.getListenerConnectionFactory());\n\n        DestinationResolver resolver = config.getDestinationResolver();\n        if (resolver == null) {\n            resolver = container.getDestinationResolver();\n        }\n\n        container.setDestinationResolver(new DestinationResolverDelegate(resolver));\n        container.setDestinationName(getConfiguration().getReplyTo());\n\n        if (replyToSelectorName != null) {\n            replyToSelectorValue = \"ID:\" + new BigInteger(24 * 8, new Random()).toString(16);\n            container.setMessageSelector(replyToSelectorName + \"='\" + replyToSelectorValue + \"'\");\n        } else {\n            ((MessageSelectorComposer)container).addCorrelationID(\"ID:\" + new BigInteger(24 * 8, new Random()).toString(16));\n        }\n\n        container.setAutoStartup(true);\n        container.setMessageListener(this);\n        container.setPubSubDomain(false);\n        container.setSubscriptionDurable(false);\n        ExceptionListener exceptionListener = config.getExceptionListener();\n        if (exceptionListener != null) {\n            container.setExceptionListener(exceptionListener);\n        }\n        container.setSessionTransacted(config.isTransacted());\n        if (config.isTransacted()) {\n            container.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n        } else {\n            if (config.getAcknowledgementMode() >= 0) {\n                container.setSessionAcknowledgeMode(config.getAcknowledgementMode());\n            } else if (config.getAcknowledgementModeName() != null) {\n                container.setSessionAcknowledgeModeName(config.getAcknowledgementModeName());\n            }\n        }\n        if (container instanceof DefaultMessageListenerContainer) {\n            DefaultMessageListenerContainer defContainer = (DefaultMessageListenerContainer)container;\n            defContainer.setConcurrentConsumers(1);\n            defContainer.setCacheLevel(DefaultMessageListenerContainer.CACHE_SESSION);\n\n            if (config.getReceiveTimeout() >= 0) {\n                defContainer.setReceiveTimeout(config.getReceiveTimeout());\n            }\n            if (config.getRecoveryInterval() >= 0) {\n                defContainer.setRecoveryInterval(config.getRecoveryInterval());\n            }\n            TaskExecutor taskExecutor = config.getTaskExecutor();\n            if (taskExecutor != null) {\n                defContainer.setTaskExecutor(taskExecutor);\n            }\n            PlatformTransactionManager tm = config.getTransactionManager();\n            if (tm != null) {\n                defContainer.setTransactionManager(tm);\n            } else if (config.isTransacted()) {\n                throw new IllegalArgumentException(\"Property transacted is enabled but a transactionManager was not injected!\");\n            }\n            if (config.getTransactionName() != null) {\n                defContainer.setTransactionName(config.getTransactionName());\n            }\n            if (config.getTransactionTimeout() >= 0) {\n                defContainer.setTransactionTimeout(config.getTransactionTimeout());\n            }\n        }\n        return container;\n    }\n\n    @Override\n    public void setReplyToSelectorHeader(org.apache.camel.Message in, Message jmsIn) throws JMSException {\n        String replyToSelectorName = getConfiguration().getReplyToDestinationSelectorName();\n        if (replyToSelectorValue != null) {\n            in.setHeader(replyToSelectorName, replyToSelectorValue);\n            jmsIn.setStringProperty(replyToSelectorName, replyToSelectorValue);", "functions": [{"function_name": "createFutureHandler", "code": "    @Override\n    protected FutureHandler createFutureHandler(String correlationID) {\n        boolean dynamicSelector = getConfiguration().getReplyToDestinationSelectorName() == null;\n        if (dynamicSelector) {\n            return new PersistentReplyToFutureHandler(this, correlationID);\n        }\n        return new FutureHandler();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [6, 8], [7, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 6], [9, 7], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "createFutureHandler", "code": "    @Override\n    protected FutureHandler createFutureHandler(DeferredMessageSentCallback callback) {\n        boolean dynamicSelector = getConfiguration().getReplyToDestinationSelectorName() == null;\n        if (dynamicSelector) {\n            return new PersistentReplyToFutureHandler(this, callback);\n        }\n        return new FutureHandler();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [6, 8], [7, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 6], [9, 7], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "createListenerContainer", "code": "    @Override\n    public AbstractMessageListenerContainer createListenerContainer() {\n        JmsConfiguration config = getConfiguration();\n        String replyToSelectorName = getConfiguration().getReplyToDestinationSelectorName();\n\n        AbstractMessageListenerContainer container =\n            config.isUseVersion102()\n                    ? (replyToSelectorName != null) ? new DefaultMessageListenerContainer102()\n                           : new CamelDefaultMessageListenerContainer102()\n                    : (replyToSelectorName != null) ? new DefaultMessageListenerContainer()\n                           : new CamelDefaultMessageListenerContainer();\n\n        container.setConnectionFactory(config.getListenerConnectionFactory());\n\n        DestinationResolver resolver = config.getDestinationResolver();\n        if (resolver == null) {\n            resolver = container.getDestinationResolver();\n        }\n\n        container.setDestinationResolver(new DestinationResolverDelegate(resolver));\n        container.setDestinationName(getConfiguration().getReplyTo());\n\n        if (replyToSelectorName != null) {\n            replyToSelectorValue = \"ID:\" + new BigInteger(24 * 8, new Random()).toString(16);\n            container.setMessageSelector(replyToSelectorName + \"='\" + replyToSelectorValue + \"'\");\n        } else {\n            ((MessageSelectorComposer)container).addCorrelationID(\"ID:\" + new BigInteger(24 * 8, new Random()).toString(16));\n        }\n\n        container.setAutoStartup(true);\n        container.setMessageListener(this);\n        container.setPubSubDomain(false);\n        container.setSubscriptionDurable(false);\n        ExceptionListener exceptionListener = config.getExceptionListener();\n        if (exceptionListener != null) {\n            container.setExceptionListener(exceptionListener);\n        }\n        container.setSessionTransacted(config.isTransacted());\n        if (config.isTransacted()) {\n            container.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n        } else {\n            if (config.getAcknowledgementMode() >= 0) {\n                container.setSessionAcknowledgeMode(config.getAcknowledgementMode());\n            } else if (config.getAcknowledgementModeName() != null) {\n                container.setSessionAcknowledgeModeName(config.getAcknowledgementModeName());\n            }\n        }\n        if (container instanceof DefaultMessageListenerContainer) {\n            DefaultMessageListenerContainer defContainer = (DefaultMessageListenerContainer)container;\n            defContainer.setConcurrentConsumers(1);\n            defContainer.setCacheLevel(DefaultMessageListenerContainer.CACHE_SESSION);\n\n            if (config.getReceiveTimeout() >= 0) {\n                defContainer.setReceiveTimeout(config.getReceiveTimeout());\n            }\n            if (config.getRecoveryInterval() >= 0) {\n                defContainer.setRecoveryInterval(config.getRecoveryInterval());\n            }\n            TaskExecutor taskExecutor = config.getTaskExecutor();\n            if (taskExecutor != null) {\n                defContainer.setTaskExecutor(taskExecutor);\n            }\n            PlatformTransactionManager tm = config.getTransactionManager();\n            if (tm != null) {\n                defContainer.setTransactionManager(tm);\n            } else if (config.isTransacted()) {\n                throw new IllegalArgumentException(\"Property transacted is enabled but a transactionManager was not injected!\");\n            }\n            if (config.getTransactionName() != null) {\n                defContainer.setTransactionName(config.getTransactionName());\n            }\n            if (config.getTransactionTimeout() >= 0) {\n                defContainer.setTransactionTimeout(config.getTransactionTimeout());\n            }\n        }\n        return container;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [0, 14], [4, 15], [0, 16], [0, 17], [0, 18], [0, 19], [6, 20], [0, 21], [0, 22], [7, 23], [0, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [3, 34], [14, 35], [15, 36], [5, 37], [16, 38], [17, 39], [19, 40], [20, 41], [21, 42], [22, 43], [23, 44], [8, 45], [24, 46], [9, 47], [10, 48], [11, 49], [25, 50], [26, 51], [27, 52], [27, 53], [29, 54], [31, 55], [32, 56], [2, 57], [2, 58], [34, 59], [34, 60], [3, 61], [4, 62], [6, 63], [6, 64], [42, 65], [7, 66], [47, 67], [47, 68], [47, 69], [48, 70], [50, 71], [50, 72], [51, 73], [51, 74], [52, 75], [53, 76], [28, 77], [54, 78], [30, 79], [55, 80], [55, 81], [56, 82], [56, 83], [58, 84], [59, 85], [60, 86], [60, 87], [63, 88], [64, 89], [66, 90], [67, 91], [67, 92], [67, 93], [68, 94], [68, 95], [68, 96], [25, 97], [26, 98], [52, 99], [27, 100], [29, 101], [31, 102], [32, 103], [85, 104], [85, 105], [34, 106], [88, 107], [88, 108], [89, 109], [89, 110], [93, 111], [96, 112], [97, 113], [98, 114], [99, 115], [102, 116], [103, 117], [59, 118], [106, 119], [108, 120], [109, 121], [109, 122], [109, 123], [115, 124], [118, 125], [120, 126], [122, 127], [122, 128], [123, 129], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 0], [15, 4], [16, 0], [17, 0], [18, 0], [19, 0], [20, 6], [21, 0], [22, 0], [23, 7], [24, 0], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 3], [35, 14], [36, 15], [37, 5], [38, 16], [39, 17], [40, 19], [41, 20], [42, 21], [43, 22], [44, 23], [45, 8], [46, 24], [47, 9], [48, 10], [49, 11], [50, 25], [51, 26], [52, 27], [53, 27], [54, 29], [55, 31], [56, 32], [57, 2], [58, 2], [59, 34], [60, 34], [61, 3], [62, 4], [63, 6], [64, 6], [65, 42], [66, 7], [67, 47], [68, 47], [69, 47], [70, 48], [71, 50], [72, 50], [73, 51], [74, 51], [75, 52], [76, 53], [77, 28], [78, 54], [79, 30], [80, 55], [81, 55], [82, 56], [83, 56], [84, 58], [85, 59], [86, 60], [87, 60], [88, 63], [89, 64], [90, 66], [91, 67], [92, 67], [93, 67], [94, 68], [95, 68], [96, 68], [97, 25], [98, 26], [99, 52], [100, 27], [101, 29], [102, 31], [103, 32], [104, 85], [105, 85], [106, 34], [107, 88], [108, 88], [109, 89], [110, 89], [111, 93], [112, 96], [113, 97], [114, 98], [115, 99], [116, 102], [117, 103], [118, 59], [119, 106], [120, 108], [121, 109], [122, 109], [123, 109], [124, 115], [125, 118], [126, 120], [127, 122], [128, 122], [129, 123], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129]]}, {"function_name": "setReplyToSelectorHeader", "code": "    @Override\n    public void setReplyToSelectorHeader(org.apache.camel.Message in, Message jmsIn) throws JMSException {\n        String replyToSelectorName = getConfiguration().getReplyToDestinationSelectorName();\n        if (replyToSelectorValue != null) {\n            in.setHeader(replyToSelectorName, replyToSelectorValue);\n            jmsIn.setStringProperty(replyToSelectorName, replyToSelectorValue);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [2, 7], [1, 8], [1, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 2], [8, 1], [9, 1], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "PersistentReplyToRequestor", "code": "    public PersistentReplyToRequestor(JmsConfiguration configuration,\n                                      ScheduledExecutorService executorService) {\n        super(configuration, executorService);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1138", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKOUT.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKOUT", "code": "public class MSVSSCHECKOUT extends MSVSS {\n\n    /**\n     * Builds a command line to execute ss.\n     * @return     The constructed commandline.\n     */\n    protected Commandline buildCmdLine() {\n        Commandline commandLine = new Commandline();\n\n        if (getVsspath() == null) {\n            String msg = \"vsspath attribute must be set!\";\n            throw new BuildException(msg, getLocation());\n        }\n\n        commandLine.setExecutable(getSSCommand());\n        commandLine.createArgument().setValue(COMMAND_CHECKOUT);\n\n        commandLine.createArgument().setValue(getVsspath());\n        commandLine.createArgument().setValue(getLocalpath());\n        commandLine.createArgument().setValue(getAutoresponse());\n        commandLine.createArgument().setValue(getRecursive());\n        commandLine.createArgument().setValue(getVersionDateLabel());\n        commandLine.createArgument().setValue(getLogin());\n        commandLine.createArgument().setValue(getFileTimeStamp());\n        commandLine.createArgument().setValue(getWritableFiles());\n        commandLine.createArgument().setValue(getGetLocalCopy());\n\n        return commandLine;\n    }\n\n    /**\n     * Override the project working directory.\n     *\n     * @param   localPath   The path on disk.\n     */\n    public void setLocalpath(Path localPath) {\n        super.setInternalLocalPath(localPath.toString());\n    }\n\n    /**\n     * Check-out files recursively. Defaults to false.\n     *\n     * @param recursive  The boolean value for recursive.\n     */\n    public void setRecursive(boolean recursive) {\n        super.setInternalRecursive(recursive);\n    }\n\n    /**\n     * Version to check-out.\n     *\n     * @param  version The version to check-out.\n     *\n     * @ant.attribute group=\"vdl\"\n     */\n    public void setVersion(String version) {\n        super.setInternalVersion(version);\n    }\n\n    /**\n     * Date to check-out.\n     *\n     * @param  date The date to check-out.\n     *\n     * @ant.attribute group=\"vdl\"\n     */\n    public void setDate(String date) {\n        super.setInternalDate(date);\n    }\n\n    /**\n     * Label to check-out.\n     *\n     * @param  label The label to check-out.\n     *\n     * @ant.attribute group=\"vdl\"\n     */\n    public void setLabel(String label) {\n        super.setInternalLabel(label);\n    }\n\n    /**\n     * Autoresponce behaviour. Valid options are Y and N.\n     *\n     * @param response The auto response value.\n     */\n    public void setAutoresponse(String response) {\n        super.setInternalAutoResponse(response);\n    }\n\n    /**\n     * Date and time stamp given to the local copy. Defaults to <code>current</code>.\n     *\n     * @param timestamp     The file time stamping behaviour.\n     */\n    public void setFileTimeStamp(CurrentModUpdated timestamp) {\n        super.setInternalFileTimeStamp(timestamp);\n    }\n\n    /**\n     * Action taken when local files are writable. Defaults to <code>fail</code>.\n     * <p>\n     * Due to ss.exe returning with an exit code of '100' for both errors and when\n     * a file has been skipped, <code>failonerror</code> is set to false when using\n     * the <code>skip</code> option.\n     * </p>\n     *\n     * @param files     The writable files behaviour\n     */\n    public void setWritableFiles(WritableFiles files) {\n        super.setInternalWritableFiles(files);\n    }\n\n    /**\n     * Retrieve a local copy during a checkout. Defaults to true.\n     *\n     * @param get   The get local copy behaviour\n     */\n    public void setGetLocalCopy(boolean get) {\n        super.setInternalGetLocalCopy(get);", "functions": [{"function_name": "buildCmdLine", "code": "    protected Commandline buildCmdLine() {\n        Commandline commandLine = new Commandline();\n\n        if (getVsspath() == null) {\n            String msg = \"vsspath attribute must be set!\";\n            throw new BuildException(msg, getLocation());\n        }\n\n        commandLine.setExecutable(getSSCommand());\n        commandLine.createArgument().setValue(COMMAND_CHECKOUT);\n\n        commandLine.createArgument().setValue(getVsspath());\n        commandLine.createArgument().setValue(getLocalpath());\n        commandLine.createArgument().setValue(getAutoresponse());\n        commandLine.createArgument().setValue(getRecursive());\n        commandLine.createArgument().setValue(getVersionDateLabel());\n        commandLine.createArgument().setValue(getLogin());\n        commandLine.createArgument().setValue(getFileTimeStamp());\n        commandLine.createArgument().setValue(getWritableFiles());\n        commandLine.createArgument().setValue(getGetLocalCopy());\n\n        return commandLine;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [4, 16], [5, 17], [6, 18], [7, 19], [8, 20], [9, 21], [10, 22], [11, 23], [12, 24], [13, 25], [14, 26], [2, 27], [2, 28], [15, 29], [15, 30], [3, 31], [16, 32], [17, 33], [18, 34], [19, 35], [20, 36], [21, 37], [22, 38], [23, 39], [24, 40], [27, 41], [41, 42], [28, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 4], [17, 5], [18, 6], [19, 7], [20, 8], [21, 9], [22, 10], [23, 11], [24, 12], [25, 13], [26, 14], [27, 2], [28, 2], [29, 15], [30, 15], [31, 3], [32, 16], [33, 17], [34, 18], [35, 19], [36, 20], [37, 21], [38, 22], [39, 23], [40, 24], [41, 27], [42, 41], [43, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "setLocalpath", "code": "    public void setLocalpath(Path localPath) {\n        super.setInternalLocalPath(localPath.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRecursive", "code": "    public void setRecursive(boolean recursive) {\n        super.setInternalRecursive(recursive);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVersion", "code": "    public void setVersion(String version) {\n        super.setInternalVersion(version);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDate", "code": "    public void setDate(String date) {\n        super.setInternalDate(date);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLabel", "code": "    public void setLabel(String label) {\n        super.setInternalLabel(label);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoresponse", "code": "    public void setAutoresponse(String response) {\n        super.setInternalAutoResponse(response);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFileTimeStamp", "code": "    public void setFileTimeStamp(CurrentModUpdated timestamp) {\n        super.setInternalFileTimeStamp(timestamp);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWritableFiles", "code": "    public void setWritableFiles(WritableFiles files) {\n        super.setInternalWritableFiles(files);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setGetLocalCopy", "code": "    public void setGetLocalCopy(boolean get) {\n        super.setInternalGetLocalCopy(get);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.4-2100", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/builder/ExpressionBuilder.java", "language": "java", "name": "org.apache.camel.builder.ExpressionBuilder", "code": "public final class ExpressionBuilder {\n\n    /**\n     * Utility classes should not have a public constructor.\n     */\n    private ExpressionBuilder() {\n    }\n\n    /**\n     * Returns an expression for the header value with the given name\n     *\n     * @param headerName the name of the header the expression will return\n     * @return an expression object which will return the header value\n     */\n    public static <E extends Exchange> Expression<E> headerExpression(final String headerName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object header = exchange.getIn().getHeader(headerName);\n                if (header == null) {\n                    header = exchange.getProperty(headerName);\n                }\n                return header;\n            }\n\n            @Override\n            public String toString() {\n                return \"header(\" + headerName + \")\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for the inbound message headers\n     *\n     * @see Message#getHeaders()\n     * @return an expression object which will return the inbound headers\n     */\n    public static <E extends Exchange> Expression<E> headersExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getHeaders();\n            }\n\n            @Override\n            public String toString() {\n                return \"headers\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for the out header value with the given name\n     *\n     * @param headerName the name of the header the expression will return\n     * @return an expression object which will return the header value\n     */\n    public static <E extends Exchange> Expression<E> outHeaderExpression(final String headerName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                Object header = out.getHeader(headerName);\n                if (header == null) {\n                    header = exchange.getProperty(headerName);\n                }\n                return header;\n            }\n\n            @Override\n            public String toString() {\n                return \"outHeader(\" + headerName + \")\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for the outbound message headers\n     *\n     * @see Message#getHeaders()\n     * @return an expression object which will return the inbound headers\n     */\n    public static <E extends Exchange> Expression<E> outHeadersExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getOut().getHeaders();\n            }\n\n            @Override\n            public String toString() {\n                return \"outHeaders\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for the property value with the given name\n     *\n     * @see Exchange#getProperty(String)\n     * @param propertyName the name of the property the expression will return\n     * @return an expression object which will return the property value\n     */\n    public static <E extends Exchange> Expression<E> propertyExpression(final String propertyName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getProperty(propertyName);\n            }\n\n            @Override\n            public String toString() {\n                return \"property(\" + propertyName + \")\";\n            }\n        };\n    }\n\n\n    /**\n     * Returns an expression for the property value with the given name\n     *\n     * @see Exchange#getProperties()\n     * @return an expression object which will return the properties\n     */\n    public static <E extends Exchange> Expression<E> propertiesExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getProperties();\n            }\n\n            @Override\n            public String toString() {\n                return \"properties\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for a system property value with the given name\n     *\n     * @param propertyName the name of the system property the expression will\n     *                return\n     * @return an expression object which will return the system property value\n     */\n    public static <E extends Exchange> Expression<E> systemPropertyExpression(final String propertyName) {\n        return systemPropertyExpression(propertyName, null);\n    }\n\n    /**\n     * Returns an expression for a system property value with the given name\n     *\n     * @param propertyName the name of the system property the expression will\n     *                return\n     * @return an expression object which will return the system property value\n     */\n    public static <E extends Exchange> Expression<E> systemPropertyExpression(final String propertyName,\n                                                                              final String defaultValue) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return System.getProperty(propertyName, defaultValue);\n            }\n\n            @Override\n            public String toString() {\n                return \"systemProperty(\" + propertyName + \")\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression for the constant value\n     *\n     * @param value the value the expression will return\n     * @return an expression object which will return the constant value\n     */\n    public static <E extends Exchange> Expression<E> constantExpression(final Object value) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return value;\n            }\n\n            @Override\n            public String toString() {\n                return \"\" + value;\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the exchanges inbound message body\n     */\n    public static <E extends Exchange> Expression<E> bodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"body\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the exchanges inbound message body converted\n     * to the given type\n     */\n    public static <E extends Exchange, T> Expression<E> bodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"bodyAs[\" + type.getName() + \"]\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the out messages body\n     */\n    public static <E extends Exchange> Expression<E> outBodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                return out.getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"outBody\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the exchanges outbound message body converted\n     * to the given type\n     */\n    public static <E extends Exchange, T> Expression<E> outBodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                return out.getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"outBodyAs[\" + type.getName() + \"]\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the fault messages body\n     */\n    public static <E extends Exchange> Expression<E> faultBodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getFault().getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"faultBody\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the exchanges fault message body converted\n     * to the given type\n     */\n    public static <E extends Exchange, T> Expression<E> faultBodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getFault().getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"faultBodyAs[\" + type.getName() + \"]\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the exchange\n     */\n    public static <E extends Exchange> Expression<E> exchangeExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange;\n            }\n\n            @Override\n            public String toString() {\n                return \"exchange\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the IN message\n     */\n    public static <E extends Exchange> Expression<E> inMessageExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn();\n            }\n\n            @Override\n            public String toString() {\n                return \"inMessage\";\n            }\n        };\n    }\n\n    /**\n     * Returns the expression for the OUT message\n     */\n    public static <E extends Exchange> Expression<E> outMessageExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getOut();\n            }\n\n            @Override\n            public String toString() {\n                return \"outMessage\";\n            }\n        };\n    }\n\n    /**\n     * Returns an expression which converts the given expression to the given\n     * type\n     */\n    public static <E extends Exchange> Expression<E> convertTo(final Expression expression, final Class type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object value = expression.evaluate(exchange);\n                return exchange.getContext().getTypeConverter().convertTo(type, value);\n            }\n\n            @Override\n            public String toString() {\n                return \"\" + expression + \".convertTo(\" + type.getName() + \".class)\";\n            }\n        };\n    }\n\n    /**\n     * Returns a tokenize expression which will tokenize the string with the\n     * given token\n     */\n    public static <E extends Exchange> Expression<E> tokenizeExpression(final Expression<E> expression,\n                                                                        final String token) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                if (text == null) {\n                    return null;\n                }\n                StringTokenizer iter = new StringTokenizer(text, token);\n                List<String> answer = new ArrayList<String>();\n                while (iter.hasMoreTokens()) {\n                    answer.add(iter.nextToken());\n                }\n                return answer;\n            }\n\n            @Override\n            public String toString() {\n                return \"tokenize(\" + expression + \", \" + token + \")\";\n            }\n        };\n    }\n\n    /**\n     * Returns a tokenize expression which will tokenize the string with the\n     * given regex\n     */\n    public static <E extends Exchange> Expression<E> regexTokenize(final Expression<E> expression,\n                                                                   String regexTokenizer) {\n        final Pattern pattern = Pattern.compile(regexTokenizer);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                if (text == null) {\n                    return null;\n                }\n                return Arrays.asList(pattern.split(text));\n            }\n\n            @Override\n            public String toString() {\n                return \"regexTokenize(\" + expression + \", \" + pattern.pattern() + \")\";\n            }\n        };\n    }\n\n    /**\n     * Transforms the expression into a String then performs the regex\n     * replaceAll to transform the String and return the result\n     */\n    public static <E extends Exchange> Expression<E> regexReplaceAll(final Expression<E> expression,\n                                                                     String regex, final String replacement) {\n        final Pattern pattern = Pattern.compile(regex);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                if (text == null) {\n                    return null;\n                }\n                return pattern.matcher(text).replaceAll(replacement);\n            }\n\n            @Override\n            public String toString() {\n                return \"regexReplaceAll(\" + expression + \", \" + pattern.pattern() + \")\";\n            }\n        };\n    }\n\n    /**\n     * Transforms the expression into a String then performs the regex\n     * replaceAll to transform the String and return the result\n     */\n    public static <E extends Exchange> Expression<E> regexReplaceAll(final Expression<E> expression,\n                                                                     String regex,\n                                                                     final Expression<E> replacementExpression) {\n        final Pattern pattern = Pattern.compile(regex);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                String replacement = evaluateStringExpression(replacementExpression, exchange);\n                if (text == null || replacement == null) {\n                    return null;\n                }\n                return pattern.matcher(text).replaceAll(replacement);\n            }\n\n            @Override\n            public String toString() {\n                return \"regexReplaceAll(\" + expression + \", \" + pattern.pattern() + \")\";\n            }\n        };\n    }\n\n    /**\n     * Appends the String evaluations of the two expressions together\n     */\n    public static <E extends Exchange> Expression<E> append(final Expression<E> left,\n                                                            final Expression<E> right) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return evaluateStringExpression(left, exchange) + evaluateStringExpression(right, exchange);\n            }\n\n            @Override\n            public String toString() {\n                return \"append(\" + left + \", \" + right + \")\";\n            }\n        };\n    }\n\n    /**\n     * Evaluates the expression on the given exchange and returns the String\n     * representation\n     *\n     * @param expression the expression to evaluate\n     * @param exchange the exchange to use to evaluate the expression\n     * @return the String representation of the expression or null if it could\n     *         not be evaluated\n     */\n    public static <E extends Exchange> String evaluateStringExpression(Expression<E> expression, E exchange) {\n        Object value = expression.evaluate(exchange);\n        return exchange.getContext().getTypeConverter().convertTo(String.class, value);\n    }\n\n    /**\n     * Returns an expression for the given system property\n     */\n    public static <E extends Exchange> Expression<E> systemProperty(final String name) {\n        return systemProperty(name, null);\n    }\n\n    /**\n     * Returns an expression for the given system property\n     */\n    public static <E extends Exchange> Expression<E> systemProperty(final String name,\n                                                                    final String defaultValue) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return System.getProperty(name, defaultValue);\n            }\n        };\n    }\n\n    /**\n     * Returns an expression which returns the string concatenation value of the various\n     * expressions\n     *\n     * @param expressions the expression to be concatenated dynamically\n     * @return an expression which when evaluated will return the concatenated values\n     */\n    public static <E extends Exchange> Expression<E> concatExpression(final Collection<Expression> expressions) {\n        return concatExpression(expressions, null);\n    }\n\n    /**\n     * Returns an expression which returns the string concatenation value of the various\n     * expressions\n     *\n     * @param expressions the expression to be concatenated dynamically\n     * @param expression the text description of the expression\n     * @return an expression which when evaluated will return the concatenated values\n     */\n    public static <E extends Exchange> Expression<E> concatExpression(final Collection<Expression> expressions, final String expression) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                StringBuffer buffer = new StringBuffer();\n                for (Expression<E> expression : expressions) {\n                    String text = evaluateStringExpression(expression, exchange);\n                    if (text != null) {\n                        buffer.append(text);\n                    }\n                }\n                return buffer.toString();\n            }\n\n            @Override\n            public String toString() {\n                if (expression != null) {\n                    return expression;\n                } else {\n                    return \"concat\" + expressions;", "functions": [{"function_name": "headerExpression", "code": "    public static <E extends Exchange> Expression<E> headerExpression(final String headerName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object header = exchange.getIn().getHeader(headerName);\n                if (header == null) {\n                    header = exchange.getProperty(headerName);\n                }\n                return header;\n            }\n\n            @Override\n            public String toString() {\n                return \"header(\" + headerName + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [5, 9], [5, 10], [6, 11], [8, 12], [11, 13], [11, 14], [12, 15], [9, 16], [14, 17], [8, 18], [16, 19], [18, 20], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 5], [10, 5], [11, 6], [12, 8], [13, 11], [14, 11], [15, 12], [16, 9], [17, 14], [18, 8], [19, 16], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "headersExpression", "code": "    public static <E extends Exchange> Expression<E> headersExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getHeaders();\n            }\n\n            @Override\n            public String toString() {\n                return \"headers\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "outHeaderExpression", "code": "    public static <E extends Exchange> Expression<E> outHeaderExpression(final String headerName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                Object header = out.getHeader(headerName);\n                if (header == null) {\n                    header = exchange.getProperty(headerName);\n                }\n                return header;\n            }\n\n            @Override\n            public String toString() {\n                return \"outHeader(\" + headerName + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [6, 13], [8, 14], [10, 15], [13, 16], [13, 17], [14, 18], [9, 19], [10, 20], [15, 21], [11, 22], [17, 23], [8, 24], [20, 25], [22, 26], [24, 27], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 5], [10, 5], [11, 5], [12, 5], [13, 6], [14, 8], [15, 10], [16, 13], [17, 13], [18, 14], [19, 9], [20, 10], [21, 15], [22, 11], [23, 17], [24, 8], [25, 20], [26, 22], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "outHeadersExpression", "code": "    public static <E extends Exchange> Expression<E> outHeadersExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getOut().getHeaders();\n            }\n\n            @Override\n            public String toString() {\n                return \"outHeaders\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "propertyExpression", "code": "    public static <E extends Exchange> Expression<E> propertyExpression(final String propertyName) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getProperty(propertyName);\n            }\n\n            @Override\n            public String toString() {\n                return \"property(\" + propertyName + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "propertiesExpression", "code": "    public static <E extends Exchange> Expression<E> propertiesExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getProperties();\n            }\n\n            @Override\n            public String toString() {\n                return \"properties\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "systemPropertyExpression", "code": "    public static <E extends Exchange> Expression<E> systemPropertyExpression(final String propertyName) {\n        return systemPropertyExpression(propertyName, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "systemPropertyExpression", "code": "    public static <E extends Exchange> Expression<E> systemPropertyExpression(final String propertyName,\n                                                                              final String defaultValue) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return System.getProperty(propertyName, defaultValue);\n            }\n\n            @Override\n            public String toString() {\n                return \"systemProperty(\" + propertyName + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [7, 10], [8, 11], [10, 12], [10, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 7], [11, 8], [12, 10], [13, 10], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "constantExpression", "code": "    public static <E extends Exchange> Expression<E> constantExpression(final Object value) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return value;\n            }\n\n            @Override\n            public String toString() {\n                return \"\" + value;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "bodyExpression", "code": "    public static <E extends Exchange> Expression<E> bodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"body\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "bodyExpression", "code": "    public static <E extends Exchange, T> Expression<E> bodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn().getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"bodyAs[\" + type.getName() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [10, 13], [12, 14], [12, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 10], [14, 12], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "outBodyExpression", "code": "    public static <E extends Exchange> Expression<E> outBodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                return out.getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"outBody\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [4, 8], [4, 9], [5, 10], [6, 11], [7, 12], [7, 13], [12, 14], [8, 15], [13, 16], [15, 17], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 4], [9, 4], [10, 5], [11, 6], [12, 7], [13, 7], [14, 12], [15, 8], [16, 13], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "outBodyExpression", "code": "    public static <E extends Exchange, T> Expression<E> outBodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Message out = exchange.getOut(false);\n                if (out == null) {\n                    return null;\n                }\n                return out.getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"outBodyAs[\" + type.getName() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [5, 9], [5, 10], [6, 11], [7, 12], [8, 13], [11, 14], [11, 15], [8, 16], [13, 17], [9, 18], [15, 19], [15, 20], [16, 21], [18, 22], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 5], [10, 5], [11, 6], [12, 7], [13, 8], [14, 11], [15, 11], [16, 8], [17, 13], [18, 9], [19, 15], [20, 15], [21, 16], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "faultBodyExpression", "code": "    public static <E extends Exchange> Expression<E> faultBodyExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getFault().getBody();\n            }\n\n            @Override\n            public String toString() {\n                return \"faultBody\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "faultBodyExpression", "code": "    public static <E extends Exchange, T> Expression<E> faultBodyExpression(final Class<T> type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getFault().getBody(type);\n            }\n\n            @Override\n            public String toString() {\n                return \"faultBodyAs[\" + type.getName() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [10, 13], [12, 14], [12, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 10], [14, 12], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "exchangeExpression", "code": "    public static <E extends Exchange> Expression<E> exchangeExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange;\n            }\n\n            @Override\n            public String toString() {\n                return \"exchange\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "inMessageExpression", "code": "    public static <E extends Exchange> Expression<E> inMessageExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getIn();\n            }\n\n            @Override\n            public String toString() {\n                return \"inMessage\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "outMessageExpression", "code": "    public static <E extends Exchange> Expression<E> outMessageExpression() {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return exchange.getOut();\n            }\n\n            @Override\n            public String toString() {\n                return \"outMessage\";", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [4, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 4], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "convertTo", "code": "    public static <E extends Exchange> Expression<E> convertTo(final Expression expression, final Class type) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                Object value = expression.evaluate(exchange);\n                return exchange.getContext().getTypeConverter().convertTo(type, value);\n            }\n\n            @Override\n            public String toString() {\n                return \"\" + expression + \".convertTo(\" + type.getName() + \".class)\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [6, 10], [7, 11], [8, 12], [11, 13], [11, 14], [12, 15], [12, 16], [9, 17], [14, 18], [14, 19], [19, 20], [19, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 6], [11, 7], [12, 8], [13, 11], [14, 11], [15, 12], [16, 12], [17, 9], [18, 14], [19, 14], [20, 19], [21, 19], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "tokenizeExpression", "code": "    public static <E extends Exchange> Expression<E> tokenizeExpression(final Expression<E> expression,\n                                                                        final String token) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                if (text == null) {\n                    return null;\n                }\n                StringTokenizer iter = new StringTokenizer(text, token);\n                List<String> answer = new ArrayList<String>();\n                while (iter.hasMoreTokens()) {\n                    answer.add(iter.nextToken());\n                }\n                return answer;\n            }\n\n            @Override\n            public String toString() {\n                return \"tokenize(\" + expression + \", \" + token + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [7, 15], [9, 16], [12, 17], [15, 18], [15, 19], [10, 20], [11, 21], [12, 22], [17, 23], [13, 24], [19, 25], [9, 26], [22, 27], [25, 28], [25, 29], [26, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 7], [16, 9], [17, 12], [18, 15], [19, 15], [20, 10], [21, 11], [22, 12], [23, 17], [24, 13], [25, 19], [26, 9], [27, 22], [28, 25], [29, 25], [30, 26], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "regexTokenize", "code": "    public static <E extends Exchange> Expression<E> regexTokenize(final Expression<E> expression,\n                                                                   String regexTokenizer) {\n        final Pattern pattern = Pattern.compile(regexTokenizer);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                if (text == null) {\n                    return null;\n                }\n                return Arrays.asList(pattern.split(text));\n            }\n\n            @Override\n            public String toString() {\n                return \"regexTokenize(\" + expression + \", \" + pattern.pattern() + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "CALL", "RETURN", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [6, 9], [7, 10], [7, 11], [7, 12], [7, 13], [9, 14], [10, 15], [11, 16], [14, 17], [14, 18], [15, 19], [11, 20], [16, 21], [12, 22], [18, 23], [18, 24], [20, 25], [24, 26], [24, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [9, 6], [10, 7], [11, 7], [12, 7], [13, 7], [14, 9], [15, 10], [16, 11], [17, 14], [18, 14], [19, 15], [20, 11], [21, 16], [22, 12], [23, 18], [24, 18], [25, 20], [26, 24], [27, 24], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "regexReplaceAll", "code": "    public static <E extends Exchange> Expression<E> regexReplaceAll(final Expression<E> expression,\n                                                                     String regex, final String replacement) {\n        final Pattern pattern = Pattern.compile(regex);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                if (text == null) {\n                    return null;\n                }\n                return pattern.matcher(text).replaceAll(replacement);\n            }\n\n            @Override\n            public String toString() {\n                return \"regexReplaceAll(\" + expression + \", \" + pattern.pattern() + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "CALL", "RETURN", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [2, 9], [7, 10], [8, 11], [8, 12], [8, 13], [8, 14], [10, 15], [11, 16], [12, 17], [15, 18], [15, 19], [16, 20], [12, 21], [17, 22], [13, 23], [19, 24], [19, 25], [21, 26], [25, 27], [25, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 2], [10, 7], [11, 8], [12, 8], [13, 8], [14, 8], [15, 10], [16, 11], [17, 12], [18, 15], [19, 15], [20, 16], [21, 12], [22, 17], [23, 13], [24, 19], [25, 19], [26, 21], [27, 25], [28, 25], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "regexReplaceAll", "code": "    public static <E extends Exchange> Expression<E> regexReplaceAll(final Expression<E> expression,\n                                                                     String regex,\n                                                                     final Expression<E> replacementExpression) {\n        final Pattern pattern = Pattern.compile(regex);\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                String text = evaluateStringExpression(expression, exchange);\n                String replacement = evaluateStringExpression(replacementExpression, exchange);\n                if (text == null || replacement == null) {\n                    return null;\n                }\n                return pattern.matcher(text).replaceAll(replacement);\n            }\n\n            @Override\n            public String toString() {\n                return \"regexReplaceAll(\" + expression + \", \" + pattern.pattern() + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "CALL", "RETURN", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [2, 9], [7, 10], [8, 11], [8, 12], [8, 13], [8, 14], [8, 15], [10, 16], [11, 17], [12, 18], [16, 19], [16, 20], [17, 21], [12, 22], [18, 23], [18, 24], [13, 25], [14, 26], [20, 27], [20, 28], [22, 29], [23, 30], [24, 31], [28, 32], [28, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 2], [10, 7], [11, 8], [12, 8], [13, 8], [14, 8], [15, 8], [16, 10], [17, 11], [18, 12], [19, 16], [20, 16], [21, 17], [22, 12], [23, 18], [24, 18], [25, 13], [26, 14], [27, 20], [28, 20], [29, 22], [30, 23], [31, 24], [32, 28], [33, 28], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "append", "code": "    public static <E extends Exchange> Expression<E> append(final Expression<E> left,\n                                                            final Expression<E> right) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return evaluateStringExpression(left, exchange) + evaluateStringExpression(right, exchange);\n            }\n\n            @Override\n            public String toString() {\n                return \"append(\" + left + \", \" + right + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "RETURN", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [7, 10], [8, 11], [10, 12], [10, 13], [11, 14], [11, 15], [13, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 7], [11, 8], [12, 10], [13, 10], [14, 11], [15, 11], [16, 13], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "evaluateStringExpression", "code": "    public static <E extends Exchange> String evaluateStringExpression(Expression<E> expression, E exchange) {\n        Object value = expression.evaluate(exchange);\n        return exchange.getContext().getTypeConverter().convertTo(String.class, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "systemProperty", "code": "    public static <E extends Exchange> Expression<E> systemProperty(final String name) {\n        return systemProperty(name, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "systemProperty", "code": "    public static <E extends Exchange> Expression<E> systemProperty(final String name,\n                                                                    final String defaultValue) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                return System.getProperty(name, defaultValue);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "concatExpression", "code": "    public static <E extends Exchange> Expression<E> concatExpression(final Collection<Expression> expressions) {\n        return concatExpression(expressions, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "concatExpression", "code": "    public static <E extends Exchange> Expression<E> concatExpression(final Collection<Expression> expressions, final String expression) {\n        return new Expression<E>() {\n            public Object evaluate(E exchange) {\n                StringBuffer buffer = new StringBuffer();\n                for (Expression<E> expression : expressions) {\n                    String text = evaluateStringExpression(expression, exchange);\n                    if (text != null) {\n                        buffer.append(text);\n                    }\n                }\n                return buffer.toString();\n            }\n\n            @Override\n            public String toString() {\n                if (expression != null) {\n                    return expression;\n                } else {\n                    return \"concat\" + expressions;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "FUNC_DECL", "FUNC_DECL", "IF", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [6, 10], [6, 11], [7, 12], [8, 13], [7, 14], [7, 15], [12, 16], [9, 17], [9, 18], [10, 19], [14, 20], [17, 21], [20, 22], [21, 23], [18, 24], [17, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 6], [11, 6], [12, 7], [13, 8], [14, 7], [15, 7], [16, 12], [17, 9], [18, 9], [19, 10], [20, 14], [21, 17], [22, 20], [23, 21], [24, 18], [25, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "ExpressionBuilder", "code": "    private ExpressionBuilder() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "lucene-2.4-5131", "repo": "lucene-2.4", "project": "lucene", "version": "2.4", "file_path": "org/apache/lucene/analysis/standard/StandardTokenizer.java", "language": "java", "name": "org.apache.lucene.analysis.standard.StandardTokenizer", "code": "public class StandardTokenizer extends Tokenizer {\n  /** A private instance of the JFlex-constructed scanner */\n  private final StandardTokenizerImpl scanner;\n\n  public static final int ALPHANUM          = 0;\n  public static final int APOSTROPHE        = 1;\n  public static final int ACRONYM           = 2;\n  public static final int COMPANY           = 3;\n  public static final int EMAIL             = 4;\n  public static final int HOST              = 5;\n  public static final int NUM               = 6;\n  public static final int CJ                = 7;\n\n  /**\n   * @deprecated this solves a bug where HOSTs that end with '.' are identified\n   *             as ACRONYMs. It is deprecated and will be removed in the next\n   *             release.\n   */\n  public static final int ACRONYM_DEP       = 8;\n\n  /** String token types that correspond to token type int constants */\n  public static final String [] TOKEN_TYPES = new String [] {\n    \"<ALPHANUM>\",\n    \"<APOSTROPHE>\",\n    \"<ACRONYM>\",\n    \"<COMPANY>\",\n    \"<EMAIL>\",\n    \"<HOST>\",\n    \"<NUM>\",\n    \"<CJ>\",\n    \"<ACRONYM_DEP>\"\n  };\n\n  /** @deprecated Please use {@link #TOKEN_TYPES} instead */\n  public static final String [] tokenImage = TOKEN_TYPES;\n\n  /**\n   * Specifies whether deprecated acronyms should be replaced with HOST type.\n   * This is false by default to support backward compatibility.\n   *<p/>\n   * \n   * @deprecated this should be removed in the next release (3.0).\n   */\n  private boolean replaceInvalidAcronym = false;\n    \n  void setInput(Reader reader) {\n    this.input = reader;\n  }\n\n  private int maxTokenLength = StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH;\n\n  /** Set the max allowed token length.  Any token longer\n   *  than this is skipped. */\n  public void setMaxTokenLength(int length) {\n    this.maxTokenLength = length;\n  }\n\n  /** @see #setMaxTokenLength */\n  public int getMaxTokenLength() {\n    return maxTokenLength;\n  }\n\n    /**\n     * Creates a new instance of the {@link StandardTokenizer}. Attaches the\n     * <code>input</code> to a newly created JFlex scanner.\n     */\n    public StandardTokenizer(Reader input) {\n\t    this.input = input;\n\t    this.scanner = new StandardTokenizerImpl(input);\n    }\n\n  /**\n   * Creates a new instance of the {@link org.apache.lucene.analysis.standard.StandardTokenizer}.  Attaches\n   * the <code>input</code> to the newly created JFlex scanner.\n   *\n   * @param input The input reader\n   * @param replaceInvalidAcronym Set to true to replace mischaracterized acronyms with HOST.\n   *\n   */\n  public StandardTokenizer(Reader input, boolean replaceInvalidAcronym) {\n    this.replaceInvalidAcronym = replaceInvalidAcronym;\n    this.input = input;\n    this.scanner = new StandardTokenizerImpl(input);\n  }\n\n  /*\n   * (non-Javadoc)\n   *\n   * @see org.apache.lucene.analysis.TokenStream#next()\n   */\n  public Token next(final Token reusableToken) throws IOException {\n      assert reusableToken != null;\n      int posIncr = 1;\n\n      while(true) {\n\tint tokenType = scanner.getNextToken();\n\n\tif (tokenType == StandardTokenizerImpl.YYEOF) {\n\t    return null;\n\t}\n\n        if (scanner.yylength() <= maxTokenLength) {\n          reusableToken.clear();\n          reusableToken.setPositionIncrement(posIncr);\n          scanner.getText(reusableToken);\n          final int start = scanner.yychar();\n          reusableToken.setStartOffset(start);\n          reusableToken.setEndOffset(start+reusableToken.termLength());\n          if (tokenType == StandardTokenizerImpl.ACRONYM_DEP) {\n            if (replaceInvalidAcronym) {\n              reusableToken.setType(StandardTokenizerImpl.TOKEN_TYPES[StandardTokenizerImpl.HOST]);\n            } else {\n              reusableToken.setType(StandardTokenizerImpl.TOKEN_TYPES[StandardTokenizerImpl.ACRONYM]);\n            }\n          } else {\n            reusableToken.setType(StandardTokenizerImpl.TOKEN_TYPES[tokenType]);\n          }\n          return reusableToken;\n        } else\n          posIncr++;\n      }\n    }\n\n    /*\n     * (non-Javadoc)\n     *\n     * @see org.apache.lucene.analysis.TokenStream#reset()\n     */\n    public void reset() throws IOException {\n\tsuper.reset();\n\tscanner.yyreset(input);\n    }\n\n    public void reset(Reader reader) throws IOException {\n        input = reader;\n        reset();\n    }\n\n  /**\n   * when they should have been labeled as hosts instead.\n   * @return true if StandardTokenizer now returns these tokens as Hosts, otherwise false\n   *\n   * @deprecated Remove in 3.X and make true the only valid value\n   */\n  public boolean isReplaceInvalidAcronym() {\n    return replaceInvalidAcronym;\n  }\n\n  /**\n   *\n   * @param replaceInvalidAcronym Set to true to replace mischaracterized acronyms as HOST.\n   * @deprecated Remove in 3.X and make true the only valid value\n   *\n   */\n  public void setReplaceInvalidAcronym(boolean replaceInvalidAcronym) {\n    this.replaceInvalidAcronym = replaceInvalidAcronym;", "functions": [{"function_name": "setInput", "code": "  void setInput(Reader reader) {\n    this.input = reader;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMaxTokenLength", "code": "  public void setMaxTokenLength(int length) {\n    this.maxTokenLength = length;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaxTokenLength", "code": "  public int getMaxTokenLength() {\n    return maxTokenLength;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "next", "code": "  public Token next(final Token reusableToken) throws IOException {\n      assert reusableToken != null;\n      int posIncr = 1;\n\n      while(true) {\n\tint tokenType = scanner.getNextToken();\n\n\tif (tokenType == StandardTokenizerImpl.YYEOF) {\n\t    return null;\n\t}\n\n        if (scanner.yylength() <= maxTokenLength) {\n          reusableToken.clear();\n          reusableToken.setPositionIncrement(posIncr);\n          scanner.getText(reusableToken);\n          final int start = scanner.yychar();\n          reusableToken.setStartOffset(start);\n          reusableToken.setEndOffset(start+reusableToken.termLength());\n          if (tokenType == StandardTokenizerImpl.ACRONYM_DEP) {\n            if (replaceInvalidAcronym) {\n              reusableToken.setType(StandardTokenizerImpl.TOKEN_TYPES[StandardTokenizerImpl.HOST]);\n            } else {\n              reusableToken.setType(StandardTokenizerImpl.TOKEN_TYPES[StandardTokenizerImpl.ACRONYM]);\n            }\n          } else {\n            reusableToken.setType(StandardTokenizerImpl.TOKEN_TYPES[tokenType]);\n          }\n          return reusableToken;\n        } else\n          posIncr++;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "ASSERT", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [1, 8], [1, 9], [2, 10], [6, 11], [7, 12], [8, 13], [7, 14], [7, 15], [7, 16], [12, 17], [8, 18], [9, 19], [15, 20], [7, 21], [7, 22], [7, 23], [7, 24], [7, 25], [18, 26], [15, 27], [21, 28], [16, 29], [15, 30], [28, 31], [27, 32], [27, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 1], [9, 1], [10, 2], [11, 6], [12, 7], [13, 8], [14, 7], [15, 7], [16, 7], [17, 12], [18, 8], [19, 9], [20, 15], [21, 7], [22, 7], [23, 7], [24, 7], [25, 7], [26, 18], [27, 15], [28, 21], [29, 16], [30, 15], [31, 28], [32, 27], [33, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "reset", "code": "    public void reset() throws IOException {\n\tsuper.reset();\n\tscanner.yyreset(input);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reset", "code": "    public void reset(Reader reader) throws IOException {\n        input = reader;\n        reset();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isReplaceInvalidAcronym", "code": "  public boolean isReplaceInvalidAcronym() {\n    return replaceInvalidAcronym;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplaceInvalidAcronym", "code": "  public void setReplaceInvalidAcronym(boolean replaceInvalidAcronym) {\n    this.replaceInvalidAcronym = replaceInvalidAcronym;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "StandardTokenizer", "code": "    public StandardTokenizer(Reader input) {\n\t    this.input = input;\n\t    this.scanner = new StandardTokenizerImpl(input);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "StandardTokenizer", "code": "  public StandardTokenizer(Reader input, boolean replaceInvalidAcronym) {\n    this.replaceInvalidAcronym = replaceInvalidAcronym;\n    this.input = input;\n    this.scanner = new StandardTokenizerImpl(input);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "camel-1.4-2216", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/quartz/QuartzComponent.java", "language": "java", "name": "org.apache.camel.component.quartz.QuartzComponent", "code": "public class QuartzComponent extends DefaultComponent<QuartzExchange> {\n    private static final transient Log LOG = LogFactory.getLog(QuartzComponent.class);\n    private SchedulerFactory factory;\n    private Scheduler scheduler;\n    private Map<Trigger, JobDetail> triggers;\n\n    public QuartzComponent() {\n    }\n\n    public QuartzComponent(CamelContext context) {\n        super(context);\n    }\n\n    @Override\n    protected QuartzEndpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        QuartzEndpoint answer = new QuartzEndpoint(uri, this, getScheduler());\n\n        URI u = new URI(uri);\n        String name;\n        String group = \"Camel\";\n        String path = u.getPath();\n        CronTrigger cronTrigger = null;\n        if (path != null && path.length() > 1) {\n            if (path.startsWith(\"/\")) {\n                path = path.substring(1);\n            }\n            int idx = path.indexOf('/');\n            if (idx > 0) {\n                cronTrigger = new CronTrigger();\n                name = path.substring(0, idx);\n                String cronExpression = path.substring(idx + 1);\n                cronExpression = cronExpression.replace('/', ' ');\n                cronExpression = cronExpression.replace('$', '?');\n                LOG.debug(\"Creating cron trigger: \" + cronExpression);\n                cronTrigger.setCronExpression(cronExpression);\n                answer.setTrigger(cronTrigger);\n            } else {\n                name = path;\n            }\n            group = u.getHost();\n        } else {\n            name = u.getHost();\n        }\n        /*\n         * String[] names = ObjectHelper.splitOnCharacter(remaining, \"/\", 2); if\n         * (names[1] != null) { group = names[0]; name = names[1]; } else { name =\n         * names[0]; }\n         */\n        Trigger trigger = cronTrigger;\n        if (trigger == null) {\n            trigger = answer.getTrigger();\n        }\n        trigger.setName(name);\n        trigger.setGroup(group);\n\n        Map triggerParameters = IntrospectionSupport.extractProperties(parameters, \"trigger.\");\n        Map jobParameters = IntrospectionSupport.extractProperties(parameters, \"job.\");\n\n        setProperties(trigger, triggerParameters);\n        setProperties(answer.getJobDetail(), jobParameters);\n\n        return answer;\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        getScheduler().start();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        if (scheduler != null) {\n            scheduler.shutdown();\n        }\n        super.doStop();\n    }\n\n    public SchedulerFactory getFactory() {\n        if (factory == null) {\n            factory = createSchedulerFactory();\n        }\n        return factory;\n    }\n\n    public void setFactory(SchedulerFactory factory) {\n        this.factory = factory;\n    }\n\n    public Scheduler getScheduler() throws SchedulerException {\n        if (scheduler == null) {\n            scheduler = createScheduler();\n        }\n        return scheduler;\n    }\n\n    public void setScheduler(Scheduler scheduler) {\n        this.scheduler = scheduler;\n    }\n\n    public Map getTriggers() {\n        return triggers;\n    }\n\n    public void setTriggers(Map triggers) {\n        this.triggers = triggers;\n    }\n\n    protected SchedulerFactory createSchedulerFactory() {\n        return new StdSchedulerFactory();\n    }\n\n    protected Scheduler createScheduler() throws SchedulerException {\n        return getFactory().getScheduler();", "functions": [{"function_name": "createEndpoint", "code": "    @Override\n    protected QuartzEndpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        QuartzEndpoint answer = new QuartzEndpoint(uri, this, getScheduler());\n\n        URI u = new URI(uri);\n        String name;\n        String group = \"Camel\";\n        String path = u.getPath();\n        CronTrigger cronTrigger = null;\n        if (path != null && path.length() > 1) {\n            if (path.startsWith(\"/\")) {\n                path = path.substring(1);\n            }\n            int idx = path.indexOf('/');\n            if (idx > 0) {\n                cronTrigger = new CronTrigger();\n                name = path.substring(0, idx);\n                String cronExpression = path.substring(idx + 1);\n                cronExpression = cronExpression.replace('/', ' ');\n                cronExpression = cronExpression.replace('$', '?');\n                LOG.debug(\"Creating cron trigger: \" + cronExpression);\n                cronTrigger.setCronExpression(cronExpression);\n                answer.setTrigger(cronTrigger);\n            } else {\n                name = path;\n            }\n            group = u.getHost();\n        } else {\n            name = u.getHost();\n        }\n        /*\n         * String[] names = ObjectHelper.splitOnCharacter(remaining, \"/\", 2); if\n         * (names[1] != null) { group = names[0]; name = names[1]; } else { name =\n         * names[0]; }\n         */\n        Trigger trigger = cronTrigger;\n        if (trigger == null) {\n            trigger = answer.getTrigger();\n        }\n        trigger.setName(name);\n        trigger.setGroup(group);\n\n        Map triggerParameters = IntrospectionSupport.extractProperties(parameters, \"trigger.\");\n        Map jobParameters = IntrospectionSupport.extractProperties(parameters, \"job.\");\n\n        setProperties(trigger, triggerParameters);\n        setProperties(answer.getJobDetail(), jobParameters);\n\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [4, 20], [6, 21], [16, 22], [2, 23], [3, 24], [20, 25], [6, 26], [6, 27], [6, 28], [21, 29], [21, 30], [7, 31], [8, 32], [9, 33], [11, 34], [12, 35], [23, 36], [24, 37], [4, 38], [6, 39], [6, 40], [26, 41], [28, 42], [29, 43], [29, 44], [30, 45], [35, 46], [38, 47], [39, 48], [40, 49], [26, 50], [41, 51], [27, 52], [42, 53], [26, 54], [26, 55], [26, 56], [26, 57], [26, 58], [26, 59], [26, 60], [26, 61], [52, 62], [28, 63], [57, 64], [58, 65], [59, 66], [50, 67], [60, 68], [61, 69], [63, 70], [64, 71], [65, 72], [65, 73], [66, 74], [66, 75], [67, 76], [68, 77], [70, 78], [76, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 4], [21, 6], [22, 16], [23, 2], [24, 3], [25, 20], [26, 6], [27, 6], [28, 6], [29, 21], [30, 21], [31, 7], [32, 8], [33, 9], [34, 11], [35, 12], [36, 23], [37, 24], [38, 4], [39, 6], [40, 6], [41, 26], [42, 28], [43, 29], [44, 29], [45, 30], [46, 35], [47, 38], [48, 39], [49, 40], [50, 26], [51, 41], [52, 27], [53, 42], [54, 26], [55, 26], [56, 26], [57, 26], [58, 26], [59, 26], [60, 26], [61, 26], [62, 52], [63, 28], [64, 57], [65, 58], [66, 59], [67, 50], [68, 60], [69, 61], [70, 63], [71, 64], [72, 65], [73, 65], [74, 66], [75, 66], [76, 67], [77, 68], [78, 70], [79, 76], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        getScheduler().start();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        if (scheduler != null) {\n            scheduler.shutdown();\n        }\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFactory", "code": "    public SchedulerFactory getFactory() {\n        if (factory == null) {\n            factory = createSchedulerFactory();\n        }\n        return factory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setFactory", "code": "    public void setFactory(SchedulerFactory factory) {\n        this.factory = factory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getScheduler", "code": "    public Scheduler getScheduler() throws SchedulerException {\n        if (scheduler == null) {\n            scheduler = createScheduler();\n        }\n        return scheduler;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setScheduler", "code": "    public void setScheduler(Scheduler scheduler) {\n        this.scheduler = scheduler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTriggers", "code": "    public Map getTriggers() {\n        return triggers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTriggers", "code": "    public void setTriggers(Map triggers) {\n        this.triggers = triggers;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createSchedulerFactory", "code": "    protected SchedulerFactory createSchedulerFactory() {\n        return new StdSchedulerFactory();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createScheduler", "code": "    protected Scheduler createScheduler() throws SchedulerException {\n        return getFactory().getScheduler();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "QuartzComponent", "code": "    public QuartzComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "QuartzComponent", "code": "    public QuartzComponent(CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "velocity-1.5-6356", "repo": "velocity-1.5", "project": "velocity", "version": "1.5", "file_path": "org/apache/velocity/runtime/parser/CharStream.java", "language": "java", "name": "org.apache.velocity.runtime.parser.CharStream", "code": "public interface CharStream {\n\n  /**\n   * Returns the next character from the selected input.  The method\n   * of selecting the input is the responsibility of the class\n   * implementing this interface.  Can throw any java.io.IOException.\n   */\n  char readChar() throws java.io.IOException;\n\n  /**\n   * Returns the column position of the character last read.\n   * @deprecated \n   * @see #getEndColumn\n   */\n  int getColumn();\n\n  /**\n   * Returns the line number of the character last read.\n   * @deprecated \n   * @see #getEndLine\n   */\n  int getLine();\n\n  /**\n   * Returns the column number of the last character for current token (being\n   * matched after the last call to BeginTOken).\n   */\n  int getEndColumn();\n\n  /**\n   * Returns the line number of the last character for current token (being\n   * matched after the last call to BeginTOken).\n   */\n  int getEndLine();\n\n  /**\n   * Returns the column number of the first character for current token (being\n   * matched after the last call to BeginTOken).\n   */\n  int getBeginColumn();\n\n  /**\n   * Returns the line number of the first character for current token (being\n   * matched after the last call to BeginTOken).\n   */\n  int getBeginLine();\n\n  /**\n   * Backs up the input stream by amount steps. Lexer calls this method if it\n   * had already read some characters, but could not use them to match a\n   * (longer) token. So, they will be used again as the prefix of the next\n   * token and it is the implemetation's responsibility to do this right.\n   */\n  void backup(int amount);\n\n  /**\n   * Returns the next character that marks the beginning of the next token.\n   * All characters must remain in the buffer between two successive calls\n   * to this method to implement backup correctly.\n   */\n  char BeginToken() throws java.io.IOException;\n\n  /**\n   * Returns a string made up of characters from the marked token beginning \n   * to the current buffer position. Implementations have the choice of returning\n   * anything that they want to. For example, for efficiency, one might decide\n   * to just return null, which is a valid implementation.\n   */\n  String GetImage();\n\n  /**\n   * Returns an array of characters that make up the suffix of length 'len' for\n   * the currently matched token. This is used to build up the matched string\n   * for use in actions in the case of MORE. A simple and inefficient\n   * implementation of this is as follows :\n   *\n   *   {\n   *      String t = GetImage();\n   *      return t.substring(t.length() - len, t.length()).toCharArray();\n   *   }\n   */\n  char[] GetSuffix(int len);\n\n  /**\n   * The lexer calls this function to indicate that it is done with the stream\n   * and hence implementations can free any resources held by this class.\n   * Again, the body of this function can be just empty and it will not\n   * affect the lexer's operation.\n   */\n  void Done();", "functions": [{"function_name": "readChar", "code": "  char readChar() throws java.io.IOException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getColumn", "code": "  int getColumn();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getLine", "code": "  int getLine();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getEndColumn", "code": "  int getEndColumn();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getEndLine", "code": "  int getEndLine();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getBeginColumn", "code": "  int getBeginColumn();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getBeginLine", "code": "  int getBeginLine();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "backup", "code": "  void backup(int amount);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BeginToken", "code": "  char BeginToken() throws java.io.IOException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "GetImage", "code": "  String GetImage();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "GetSuffix", "code": "  char[] GetSuffix(int len);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "Done", "code": "  void Done();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.2-1914", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/jms/EndpointMessageListener.java", "language": "java", "name": "org.apache.camel.component.jms.EndpointMessageListener", "code": "public class EndpointMessageListener<E extends Exchange> implements MessageListener {\n    private static final transient Log LOG = LogFactory.getLog(EndpointMessageListener.class);\n    private JmsEndpoint endpoint;\n    private Processor processor;\n    private JmsBinding binding;\n    private boolean eagerLoadingOfProperties;\n\n    public EndpointMessageListener(JmsEndpoint endpoint, Processor processor) {\n        this.endpoint = endpoint;\n        this.processor = processor;\n    }\n\n    public void onMessage(Message message) {\n        try {\n\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(endpoint + \" receiving JMS message: \" + message);\n            }\n            JmsExchange exchange = createExchange(message);\n            if (eagerLoadingOfProperties) {\n                exchange.getIn().getHeaders();\n            }\n            processor.process(exchange);\n\n        } catch (Exception e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    public JmsExchange createExchange(Message message) {\n        return new JmsExchange(endpoint.getContext(), endpoint.getExchangePattern(), getBinding(), message);\n    }\n\n    public JmsBinding getBinding() {\n        if (binding == null) {\n            binding = new JmsBinding();\n        }\n        return binding;\n    }\n\n    /**\n     * Sets the binding used to convert from a Camel message to and from a JMS\n     * message\n     * \n     * @param binding the binding to use\n     */\n    public void setBinding(JmsBinding binding) {\n        this.binding = binding;\n    }\n\n    public boolean isEagerLoadingOfProperties() {\n        return eagerLoadingOfProperties;\n    }\n\n    public void setEagerLoadingOfProperties(boolean eagerLoadingOfProperties) {\n        this.eagerLoadingOfProperties = eagerLoadingOfProperties;", "functions": [{"function_name": "onMessage", "code": "    public void onMessage(Message message) {\n        try {\n\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(endpoint + \" receiving JMS message: \" + message);\n            }\n            JmsExchange exchange = createExchange(message);\n            if (eagerLoadingOfProperties) {\n                exchange.getIn().getHeaders();\n            }\n            processor.process(exchange);\n\n        } catch (Exception e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "VAR_DECL", "IF", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [1, 8], [6, 9], [7, 10], [5, 11], [4, 12], [6, 13], [12, 14], [13, 15], [15, 16], [16, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 1], [9, 6], [10, 7], [11, 5], [12, 4], [13, 6], [14, 12], [15, 13], [16, 15], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "createExchange", "code": "    public JmsExchange createExchange(Message message) {\n        return new JmsExchange(endpoint.getContext(), endpoint.getExchangePattern(), getBinding(), message);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getBinding", "code": "    public JmsBinding getBinding() {\n        if (binding == null) {\n            binding = new JmsBinding();\n        }\n        return binding;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setBinding", "code": "    public void setBinding(JmsBinding binding) {\n        this.binding = binding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isEagerLoadingOfProperties", "code": "    public boolean isEagerLoadingOfProperties() {\n        return eagerLoadingOfProperties;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEagerLoadingOfProperties", "code": "    public void setEagerLoadingOfProperties(boolean eagerLoadingOfProperties) {\n        this.eagerLoadingOfProperties = eagerLoadingOfProperties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "EndpointMessageListener", "code": "    public EndpointMessageListener(JmsEndpoint endpoint, Processor processor) {\n        this.endpoint = endpoint;\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.4-6682", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/When.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.When", "code": "final class When extends Instruction {\n\n    private Expression _test;\n    private boolean _ignore = false;\n\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"When\");\n\tindent(indent + IndentIncrement);\n\tSystem.out.print(\"test \");\n\tUtil.println(_test.toString());\n\tdisplayContents(indent + IndentIncrement);\n    }\n\t\t\n    public Expression getTest() {\n\treturn _test;\n    }\n\n    public boolean ignore() {\n\treturn(_ignore);\n    }\n\n    public void parseContents(Parser parser) {\n\t_test = parser.parseExpression(this, \"test\", null);\n\n\tObject result = _test.evaluateAtCompileTime();\n\tif (result != null && result instanceof Boolean) {\n\t    _ignore = !((Boolean) result).booleanValue();\n\t}\n\n\tparseChildren(parser);\n\n\tif (_test.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"test\");\n\t}\n    }\n\n    /**\n     * Type-check this when element. The test should always be type checked,\n     * while we do not bother with the contents if we know the test fails.\n     * This is important in cases where the \"test\" expression tests for\n     * the support of a non-available element, and the <xsl:when> body contains\n     * this non-available element.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_test.typeCheck(stable) instanceof BooleanType == false) {\n\t    _test = new CastExpr(_test, Type.Boolean);\n\t}\n\tif (!_ignore) {\n\t    typeCheckContents(stable);\n\t}\n\n\treturn Type.Void;\n    }\n\n    /**\n     * This method should never be called. An Otherwise object will explicitly\n     * translate the \"test\" expression and and contents of this element.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ErrorMsg msg = new ErrorMsg(ErrorMsg.STRAY_WHEN_ERR, this);\n\tgetParser().reportError(Constants.ERROR, msg);", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"When\");\n\tindent(indent + IndentIncrement);\n\tSystem.out.print(\"test \");\n\tUtil.println(_test.toString());\n\tdisplayContents(indent + IndentIncrement);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getTest", "code": "    public Expression getTest() {\n\treturn _test;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ignore", "code": "    public boolean ignore() {\n\treturn(_ignore);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\t_test = parser.parseExpression(this, \"test\", null);\n\n\tObject result = _test.evaluateAtCompileTime();\n\tif (result != null && result instanceof Boolean) {\n\t    _ignore = !((Boolean) result).booleanValue();\n\t}\n\n\tparseChildren(parser);\n\n\tif (_test.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"test\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [7, 9], [7, 10], [3, 11], [8, 12], [1, 13], [2, 14], [10, 15], [12, 16], [12, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 7], [10, 7], [11, 3], [12, 8], [13, 1], [14, 2], [15, 10], [16, 12], [17, 12], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_test.typeCheck(stable) instanceof BooleanType == false) {\n\t    _test = new CastExpr(_test, Type.Boolean);\n\t}\n\tif (!_ignore) {\n\t    typeCheckContents(stable);\n\t}\n\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [5, 6], [5, 7], [2, 8], [3, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 5], [7, 5], [8, 2], [9, 3], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ErrorMsg msg = new ErrorMsg(ErrorMsg.STRAY_WHEN_ERR, this);\n\tgetParser().reportError(Constants.ERROR, msg);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "camel-1.6-2755", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/SendProcessor.java", "language": "java", "name": "org.apache.camel.processor.SendProcessor", "code": "public class SendProcessor extends ServiceSupport implements AsyncProcessor, Service {\n    private static final transient Log LOG = LogFactory.getLog(SendProcessor.class);\n    private Endpoint destination;\n    private Producer producer;\n    private AsyncProcessor processor;\n    private ExchangePattern pattern;\n\n    public SendProcessor(Endpoint destination) {\n        if (destination == null) {\n            throw new IllegalArgumentException(\"Endpoint cannot be null!\");\n        }\n        this.destination = destination;\n    }\n\n    public SendProcessor(Endpoint destination, ExchangePattern pattern) {\n        this(destination);\n        this.pattern = pattern;\n    }\n\n    @Override\n    public String toString() {\n        return \"sendTo(\" + destination + (pattern != null ? \" \" + pattern : \"\") + \")\";\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        if (producer == null) {\n            if (isStopped()) {\n                LOG.warn(\"Ignoring exchange sent after processor is stopped: \" + exchange);\n            } else {\n                throw new IllegalStateException(\"No producer, this processor has not been started!\");\n            }\n        } else {\n            configureExchange(exchange);\n            producer.process(exchange);\n        }\n    }\n\n    public boolean process(Exchange exchange, AsyncCallback callback) {\n        if (producer == null) {\n            if (isStopped()) {\n                LOG.warn(\"Ignoring exchange sent after processor is stopped: \" + exchange);\n            } else {\n                exchange.setException(new IllegalStateException(\"No producer, this processor has not been started!\"));\n            }\n            callback.done(true);\n            return true;\n        } else {\n            configureExchange(exchange);\n            return processor.process(exchange, callback);\n        }\n    }\n\n    public Endpoint getDestination() {\n        return destination;\n    }\n\n    protected void doStart() throws Exception {\n        this.producer = destination.createProducer();\n        this.producer.start();\n        this.processor = AsyncProcessorTypeConverter.convert(producer);\n    }\n\n    protected void doStop() throws Exception {\n        if (producer != null) {\n            try {\n                producer.stop();\n            } finally {\n                producer = null;\n                processor = null;\n            }\n        }\n    }\n\n    protected void configureExchange(Exchange exchange) {\n        if (pattern != null) {\n            exchange.setPattern(pattern);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"sendTo(\" + destination + (pattern != null ? \" \" + pattern : \"\") + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [5, 9], [6, 10], [8, 11], [9, 12], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [9, 5], [10, 6], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        if (producer == null) {\n            if (isStopped()) {\n                LOG.warn(\"Ignoring exchange sent after processor is stopped: \" + exchange);\n            } else {\n                throw new IllegalStateException(\"No producer, this processor has not been started!\");\n            }\n        } else {\n            configureExchange(exchange);\n            producer.process(exchange);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [4, 8], [4, 9], [9, 10], [4, 11], [10, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 4], [9, 4], [10, 9], [11, 4], [12, 10], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "process", "code": "    public boolean process(Exchange exchange, AsyncCallback callback) {\n        if (producer == null) {\n            if (isStopped()) {\n                LOG.warn(\"Ignoring exchange sent after processor is stopped: \" + exchange);\n            } else {\n                exchange.setException(new IllegalStateException(\"No producer, this processor has not been started!\"));\n            }\n            callback.done(true);\n            return true;\n        } else {\n            configureExchange(exchange);\n            return processor.process(exchange, callback);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [6, 11], [1, 12], [7, 13], [12, 14], [7, 15], [7, 16], [15, 17], [16, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 6], [12, 1], [13, 7], [14, 12], [15, 7], [16, 7], [17, 15], [18, 16], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getDestination", "code": "    public Endpoint getDestination() {\n        return destination;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        this.producer = destination.createProducer();\n        this.producer.start();\n        this.processor = AsyncProcessorTypeConverter.convert(producer);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        if (producer != null) {\n            try {\n                producer.stop();\n            } finally {\n                producer = null;\n                processor = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [3, 6], [3, 7], [5, 8], [6, 9], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 3], [7, 3], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "configureExchange", "code": "    protected void configureExchange(Exchange exchange) {\n        if (pattern != null) {\n            exchange.setPattern(pattern);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "SendProcessor", "code": "    public SendProcessor(Endpoint destination) {\n        if (destination == null) {\n            throw new IllegalArgumentException(\"Endpoint cannot be null!\");\n        }\n        this.destination = destination;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "SendProcessor", "code": "    public SendProcessor(Endpoint destination, ExchangePattern pattern) {\n        this(destination);\n        this.pattern = pattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "camel-1.6-2628", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/mina/MinaPayloadHelper.java", "language": "java", "name": "org.apache.camel.component.mina.MinaPayloadHelper", "code": "public final class MinaPayloadHelper {\n    private MinaPayloadHelper() {\n    }\n\n    public static Object getIn(MinaEndpoint endpoint, Exchange exchange) {\n        if (endpoint.isTransferExchange()) {\n            return MinaPayloadHolder.marshal(exchange);\n        } else {\n            return exchange.getIn().getBody();\n        }\n    }\n\n    public static Object getOut(MinaEndpoint endpoint, Exchange exchange) {\n        if (endpoint.isTransferExchange()) {\n            return MinaPayloadHolder.marshal(exchange);\n        } else {\n            return exchange.getOut().getBody();\n        }\n    }\n\n    public static void setIn(Exchange exchange, Object payload) {\n        if (payload instanceof MinaPayloadHolder) {\n            MinaPayloadHolder.unmarshal(exchange, (MinaPayloadHolder) payload);\n        } else {\n            exchange.getIn().setBody(payload);\n        }\n    }\n\n    public static void setOut(Exchange exchange, Object payload) {\n        if (payload instanceof MinaPayloadHolder) {\n            MinaPayloadHolder.unmarshal(exchange, (MinaPayloadHolder) payload);\n        } else {\n            exchange.getOut().setHeaders(exchange.getIn().getHeaders());\n            exchange.getOut().setBody(payload);", "functions": [{"function_name": "getIn", "code": "    public static Object getIn(MinaEndpoint endpoint, Exchange exchange) {\n        if (endpoint.isTransferExchange()) {\n            return MinaPayloadHolder.marshal(exchange);\n        } else {\n            return exchange.getIn().getBody();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getOut", "code": "    public static Object getOut(MinaEndpoint endpoint, Exchange exchange) {\n        if (endpoint.isTransferExchange()) {\n            return MinaPayloadHolder.marshal(exchange);\n        } else {\n            return exchange.getOut().getBody();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setIn", "code": "    public static void setIn(Exchange exchange, Object payload) {\n        if (payload instanceof MinaPayloadHolder) {\n            MinaPayloadHolder.unmarshal(exchange, (MinaPayloadHolder) payload);\n        } else {\n            exchange.getIn().setBody(payload);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setOut", "code": "    public static void setOut(Exchange exchange, Object payload) {\n        if (payload instanceof MinaPayloadHolder) {\n            MinaPayloadHolder.unmarshal(exchange, (MinaPayloadHolder) payload);\n        } else {\n            exchange.getOut().setHeaders(exchange.getIn().getHeaders());\n            exchange.getOut().setBody(payload);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "MinaPayloadHelper", "code": "    private MinaPayloadHelper() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.7-832", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor", "code": "abstract class XalanExecutor {\n    private static final String PACKAGE =\n        \"org.apache.tools.ant.taskdefs.optional.junit.\";\n\n    /** the transformer caller */\n    protected AggregateTransformer caller;\n\n    /** set the caller for this object. */\n    private void setCaller(AggregateTransformer caller) {\n        this.caller = caller;\n    }\n\n    /** get the appropriate stream based on the format (frames/noframes) */\n    protected final OutputStream getOutputStream() throws IOException {\n        if (AggregateTransformer.FRAMES.equals(caller.format)) {\n            return new ByteArrayOutputStream();\n        } else {\n            return new BufferedOutputStream(\n                new FileOutputStream(new File(caller.toDir, \"junit-noframes.html\")));\n        }\n    }\n\n    /** override to perform transformation */\n    abstract void execute() throws Exception;\n\n    /**\n     * Create a valid Xalan executor. It checks if Xalan2 is\n     * present. If none is available, it fails.\n     * @param caller object containing the transformation information.\n     * @throws BuildException thrown if it could not find a valid xalan\n     * executor.\n     */\n    static XalanExecutor newInstance(AggregateTransformer caller)\n        throws BuildException {\n        XalanExecutor executor = null;\n        try {\n            Class clazz = Class.forName(PACKAGE + \"Xalan2Executor\");\n            executor = (XalanExecutor) clazz.newInstance();\n        } catch (Exception xsltcApacheMissing) {\n            caller.task.log(xsltcApacheMissing.toString());\n                throw new BuildException(\"Could not find xstlc nor xalan2 \"\n                                         + \"in the classpath. Check \");\n        }\n        String classNameImpl = executor.getImplementation();\n        String version = executor.getProcVersion(classNameImpl);\n        caller.task.log(\"Using \" + version, Project.MSG_VERBOSE);\n        executor.setCaller(caller);\n        return executor;\n    }\n\n    /**\n     * This methods should return the classname implementation of the\n     * underlying xslt processor\n     * @return the classname of the implementation, for example:\n     * org.apache.xalan.processor.TransformerFactoryImpl\n     * @see #getProcVersion(String)\n     */\n    protected abstract String getImplementation();\n\n    /**\n     * Try to discover the xslt processor version based on the\n     * className. There is nothing carved in stone and it can change\n     * anytime, so this is just for the sake of giving additional\n     * information if we can find it.\n     * @param classNameImpl the classname of the underlying xslt processor\n     * @return a string representing the implementation version.\n     * @throws BuildException\n     */\n    protected abstract String getProcVersion(String classNameImpl)\n        throws BuildException;\n\n    /** a bit simplistic but xsltc data are conveniently private non final */\n    protected final String getXSLTCVersion(String procVersionClassName)\n        throws ClassNotFoundException {\n        Class procVersion = Class.forName(procVersionClassName);\n        Package pkg = procVersion.getPackage();\n        return pkg.getName() + \" \" + pkg.getImplementationTitle()\n            + \" \" + pkg.getImplementationVersion();\n    }\n\n    /** pretty useful data (Xalan version information) to display. */\n    protected final String getXalanVersion(String procVersionClassName)\n        throws ClassNotFoundException {\n        Class procVersion = Class.forName(procVersionClassName);\n        String pkg = procVersion.getPackage().getName();\n        try {\n            Field f = procVersion.getField(\"S_VERSION\");\n            return pkg + \" \" + f.get(null).toString();\n        } catch (Exception e) {\n            return pkg + \" ?.?\";", "functions": [{"function_name": "setCaller", "code": "    private void setCaller(AggregateTransformer caller) {\n        this.caller = caller;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputStream", "code": "    protected final OutputStream getOutputStream() throws IOException {\n        if (AggregateTransformer.FRAMES.equals(caller.format)) {\n            return new ByteArrayOutputStream();\n        } else {\n            return new BufferedOutputStream(\n                new FileOutputStream(new File(caller.toDir, \"junit-noframes.html\")));", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "execute", "code": "    abstract void execute() throws Exception;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "newInstance", "code": "    static XalanExecutor newInstance(AggregateTransformer caller)\n        throws BuildException {\n        XalanExecutor executor = null;\n        try {\n            Class clazz = Class.forName(PACKAGE + \"Xalan2Executor\");\n            executor = (XalanExecutor) clazz.newInstance();\n        } catch (Exception xsltcApacheMissing) {\n            caller.task.log(xsltcApacheMissing.toString());\n                throw new BuildException(\"Could not find xstlc nor xalan2 \"\n                                         + \"in the classpath. Check \");\n        }\n        String classNameImpl = executor.getImplementation();\n        String version = executor.getProcVersion(classNameImpl);\n        caller.task.log(\"Using \" + version, Project.MSG_VERBOSE);\n        executor.setCaller(caller);\n        return executor;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "CALL", "CALL", "CATCH", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [4, 10], [8, 11], [2, 12], [3, 13], [9, 14], [4, 15], [5, 16], [11, 17], [14, 18], [9, 19], [10, 20], [18, 21], [19, 22], [15, 23], [20, 24], [21, 25], [21, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 4], [11, 8], [12, 2], [13, 3], [14, 9], [15, 4], [16, 5], [17, 11], [18, 14], [19, 9], [20, 10], [21, 18], [22, 19], [23, 15], [24, 20], [25, 21], [26, 21], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getImplementation", "code": "    protected abstract String getImplementation();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getProcVersion", "code": "    protected abstract String getProcVersion(String classNameImpl)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXSLTCVersion", "code": "    protected final String getXSLTCVersion(String procVersionClassName)\n        throws ClassNotFoundException {\n        Class procVersion = Class.forName(procVersionClassName);\n        Package pkg = procVersion.getPackage();\n        return pkg.getName() + \" \" + pkg.getImplementationTitle()\n            + \" \" + pkg.getImplementationVersion();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [11, 12], [11, 13], [13, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 11], [13, 11], [14, 13], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getXalanVersion", "code": "    protected final String getXalanVersion(String procVersionClassName)\n        throws ClassNotFoundException {\n        Class procVersion = Class.forName(procVersionClassName);\n        String pkg = procVersion.getPackage().getName();\n        try {\n            Field f = procVersion.getField(\"S_VERSION\");\n            return pkg + \" \" + f.get(null).toString();\n        } catch (Exception e) {\n            return pkg + \" ?.?\";", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "VAR_DECL", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [2, 10], [3, 11], [8, 12], [9, 13], [9, 14], [7, 15], [10, 16], [12, 17], [13, 18], [13, 19], [14, 20], [15, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 2], [11, 3], [12, 8], [13, 9], [14, 9], [15, 7], [16, 10], [17, 12], [18, 13], [19, 13], [20, 14], [21, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}], "label": 0}
{"sample_id": "poi-3.0-6341", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hpsf/VariantTypeException.java", "language": "java", "name": "org.apache.poi.hpsf.VariantTypeException", "code": "public abstract class VariantTypeException extends HPSFException\n{\n\n    private Object value;\n\n    private long variantType;\n\n\n\n    /**\n     * <p>Constructor.</p>\n     *\n     * @param variantType The variant type causing the problem\n     * @param value The value who's variant type causes the problem\n     * @param msg A message text describing the problem\n     */\n    public VariantTypeException(final long variantType, final Object value,\n                                final String msg)\n    {\n        super(msg);\n        this.variantType = variantType;\n        this.value = value;\n    }\n\n\n\n    /**\n     * <p>Returns the offending variant type.</p>\n     *\n     * @return the offending variant type.\n     */\n    public long getVariantType()\n    {\n        return variantType;\n    }\n\n\n\n    /**\n     * <p>Returns the value who's variant type caused the problem.</p>\n     *\n     * @return the value who's variant type caused the problem\n     */\n    public Object getValue()\n    {\n        return value;", "functions": [{"function_name": "getVariantType", "code": "    public long getVariantType()\n    {\n        return variantType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getValue", "code": "    public Object getValue()\n    {\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "VariantTypeException", "code": "    public VariantTypeException(final long variantType, final Object value,\n                                final String msg)\n    {\n        super(msg);\n        this.variantType = variantType;\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.6-7665", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/res/XMLErrorResources_pl.java", "language": "java", "name": "org.apache.xml.res.XMLErrorResources_pl", "code": "public class XMLErrorResources_pl extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 61;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 0;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 4;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Message keys\n   */\n  public static final String ER_FUNCTION_NOT_SUPPORTED = \"ER_FUNCTION_NOT_SUPPORTED\";\n  public static final String ER_CANNOT_OVERWRITE_CAUSE = \"ER_CANNOT_OVERWRITE_CAUSE\";\n  public static final String ER_NO_DEFAULT_IMPL = \"ER_NO_DEFAULT_IMPL\";\n  public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = \"ER_CHUNKEDINTARRAY_NOT_SUPPORTED\";\n  public static final String ER_OFFSET_BIGGER_THAN_SLOT = \"ER_OFFSET_BIGGER_THAN_SLOT\";\n  public static final String ER_COROUTINE_NOT_AVAIL = \"ER_COROUTINE_NOT_AVAIL\";\n  public static final String ER_COROUTINE_CO_EXIT = \"ER_COROUTINE_CO_EXIT\";\n  public static final String ER_COJOINROUTINESET_FAILED = \"ER_COJOINROUTINESET_FAILED\";\n  public static final String ER_COROUTINE_PARAM = \"ER_COROUTINE_PARAM\";\n  public static final String ER_PARSER_DOTERMINATE_ANSWERS = \"ER_PARSER_DOTERMINATE_ANSWERS\";\n  public static final String ER_NO_PARSE_CALL_WHILE_PARSING = \"ER_NO_PARSE_CALL_WHILE_PARSING\";\n  public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = \"ER_ITERATOR_CLONE_NOT_SUPPORTED\";\n  public static final String ER_UNKNOWN_AXIS_TYPE = \"ER_UNKNOWN_AXIS_TYPE\";\n  public static final String ER_AXIS_NOT_SUPPORTED = \"ER_AXIS_NOT_SUPPORTED\";\n  public static final String ER_NO_DTMIDS_AVAIL = \"ER_NO_DTMIDS_AVAIL\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_NODE_NON_NULL = \"ER_NODE_NON_NULL\";\n  public static final String ER_COULD_NOT_RESOLVE_NODE = \"ER_COULD_NOT_RESOLVE_NODE\";\n  public static final String ER_STARTPARSE_WHILE_PARSING = \"ER_STARTPARSE_WHILE_PARSING\";\n  public static final String ER_STARTPARSE_NEEDS_SAXPARSER = \"ER_STARTPARSE_NEEDS_SAXPARSER\";\n  public static final String ER_COULD_NOT_INIT_PARSER = \"ER_COULD_NOT_INIT_PARSER\";\n  public static final String ER_EXCEPTION_CREATING_POOL = \"ER_EXCEPTION_CREATING_POOL\";\n  public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = \"ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE\";\n  public static final String ER_SCHEME_REQUIRED = \"ER_SCHEME_REQUIRED\";\n  public static final String ER_NO_SCHEME_IN_URI = \"ER_NO_SCHEME_IN_URI\";\n  public static final String ER_NO_SCHEME_INURI = \"ER_NO_SCHEME_INURI\";\n  public static final String ER_PATH_INVALID_CHAR = \"ER_PATH_INVALID_CHAR\";\n  public static final String ER_SCHEME_FROM_NULL_STRING = \"ER_SCHEME_FROM_NULL_STRING\";\n  public static final String ER_SCHEME_NOT_CONFORMANT = \"ER_SCHEME_NOT_CONFORMANT\";\n  public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = \"ER_HOST_ADDRESS_NOT_WELLFORMED\";\n  public static final String ER_PORT_WHEN_HOST_NULL = \"ER_PORT_WHEN_HOST_NULL\";\n  public static final String ER_INVALID_PORT = \"ER_INVALID_PORT\";\n  public static final String ER_FRAG_FOR_GENERIC_URI =\"ER_FRAG_FOR_GENERIC_URI\";\n  public static final String ER_FRAG_WHEN_PATH_NULL = \"ER_FRAG_WHEN_PATH_NULL\";\n  public static final String ER_FRAG_INVALID_CHAR = \"ER_FRAG_INVALID_CHAR\";\n  public static final String ER_PARSER_IN_USE = \"ER_PARSER_IN_USE\";\n  public static final String ER_CANNOT_CHANGE_WHILE_PARSING = \"ER_CANNOT_CHANGE_WHILE_PARSING\";\n  public static final String ER_SELF_CAUSATION_NOT_PERMITTED = \"ER_SELF_CAUSATION_NOT_PERMITTED\";\n  public static final String ER_NO_USERINFO_IF_NO_HOST = \"ER_NO_USERINFO_IF_NO_HOST\";\n  public static final String ER_NO_PORT_IF_NO_HOST = \"ER_NO_PORT_IF_NO_HOST\";\n  public static final String ER_NO_QUERY_STRING_IN_PATH = \"ER_NO_QUERY_STRING_IN_PATH\";\n  public static final String ER_NO_FRAGMENT_STRING_IN_PATH = \"ER_NO_FRAGMENT_STRING_IN_PATH\";\n  public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = \"ER_CANNOT_INIT_URI_EMPTY_PARMS\";\n  public static final String ER_METHOD_NOT_SUPPORTED =\"ER_METHOD_NOT_SUPPORTED\";\n  public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = \"ER_INCRSAXSRCFILTER_NOT_RESTARTABLE\";\n  public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = \"ER_XMLRDR_NOT_BEFORE_STARTPARSE\";\n  public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = \"ER_AXIS_TRAVERSER_NOT_SUPPORTED\";\n  public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = \"ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER\";\n  public static final String ER_SYSTEMID_UNKNOWN = \"ER_SYSTEMID_UNKNOWN\";\n  public static final String ER_LOCATION_UNKNOWN = \"ER_LOCATION_UNKNOWN\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = \"ER_CREATEDOCUMENT_NOT_SUPPORTED\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT\";\n  public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = \"ER_CANT_OUTPUT_TEXT_BEFORE_DOC\";\n  public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = \"ER_CANT_HAVE_MORE_THAN_ONE_ROOT\";\n  public static final String ER_ARG_LOCALNAME_NULL = \"ER_ARG_LOCALNAME_NULL\";\n  public static final String ER_ARG_LOCALNAME_INVALID = \"ER_ARG_LOCALNAME_INVALID\";\n  public static final String ER_ARG_PREFIX_INVALID = \"ER_ARG_PREFIX_INVALID\";\n\n  public static final String ER_RESOURCE_COULD_NOT_FIND = \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD = \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_INVALID_UTF16_SURROGATE = \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_NAMESPACE_PREFIX = \"ER_NAMESPACE_PREFIX\";\n  public static final String ER_STRAY_ATTRIBUTE = \"ER_STRAY_ATTIRBUTE\";\n  public static final String ER_STRAY_NAMESPACE = \"ER_STRAY_NAMESPACE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE = \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = \"ER_COULD_NOT_LOAD_METHOD_PROPERTY\";\n  public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = \"ER_SERIALIZER_NOT_CONTENTHANDLER\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = \"ER_ILLEGAL_ATTRIBUTE_POSITION\";\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /** The lookup table for error messages.   */\n  public static final Object[][] contents = {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"Nieobs\\u0142ugiwana funkcja!\"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"Nie mo\\u017cna nadpisa\\u0107 przyczyny\"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"Nie znaleziono domy\\u015blnej implementacji\"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"ChunkedIntArray({0}) nie jest obecnie obs\\u0142ugiwane\"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"Przesuni\\u0119cie wi\\u0119ksze ni\\u017c szczelina\"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"Koprocedura niedost\\u0119pna, id={0}\"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager otrzyma\\u0142 \\u017c\\u0105danie co_exit()\"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"co_joinCoroutineSet() nie powiod\\u0142o si\\u0119\"},\n\n    { ER_COROUTINE_PARAM,\n      \"B\\u0142\\u0105d parametru koprocedury ({0})\"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\nNIEOCZEKIWANE: Analizator doTerminate odpowiada {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"Nie mo\\u017cna wywo\\u0142a\\u0107 parse podczas analizowania\"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"B\\u0142\\u0105d: iterator okre\\u015blonego typu dla osi {0} nie jest zaimplementowany\"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"B\\u0142\\u0105d: iterator dla osi {0} nie jest zaimplementowany\"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"Kopia iteratora nie jest obs\\u0142ugiwana\"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"Nieznany typ przej\\u015bcia osi {0}\"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"Nieobs\\u0142ugiwane przej\\u015bcie osi: {0}\"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"Nie ma wi\\u0119cej dost\\u0119pnych identyfikator\\u00f3w DTM\"},\n\n    { ER_NOT_SUPPORTED,\n      \"Nieobs\\u0142ugiwane: {0}\"},\n\n    { ER_NODE_NON_NULL,\n      \"W\\u0119ze\\u0142 musi by\\u0107 niepusty dla getDTMHandleFromNode\"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"Nie mo\\u017cna przet\\u0142umaczy\\u0107 w\\u0119z\\u0142a na uchwyt\"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"Nie mo\\u017cna wywo\\u0142a\\u0107 startParse podczas analizowania\"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse potrzebuje niepustego SAXParser\"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"nie mo\\u017cna zainicjowa\\u0107 analizatora\"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"wyj\\u0105tek podczas tworzenia nowej instancji dla puli\"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"\\u015acie\\u017cka zawiera niepoprawn\\u0105 sekwencj\\u0119 o zmienionym znaczeniu\"},\n\n    { ER_SCHEME_REQUIRED,\n       \"Schemat jest wymagany!\"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"Nie znaleziono schematu w URI {0}\"},\n\n    { ER_NO_SCHEME_INURI,\n       \"Nie znaleziono schematu w URI\"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"\\u015acie\\u017cka zawiera niepoprawny znak {0}\"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"Nie mo\\u017cna ustawi\\u0107 schematu z pustego ci\\u0105gu znak\\u00f3w\"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"Schemat nie jest zgodny.\"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"Host nie jest poprawnie skonstruowanym adresem\"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"Nie mo\\u017cna ustawi\\u0107 portu, kiedy host jest pusty\"},\n\n    { ER_INVALID_PORT,\n       \"Niepoprawny numer portu\"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"Fragment mo\\u017cna ustawi\\u0107 tylko dla og\\u00f3lnego URI\"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"Nie mo\\u017cna ustawi\\u0107 fragmentu, kiedy \\u015bcie\\u017cka jest pusta\"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"Fragment zawiera niepoprawny znak\"},\n\n    { ER_PARSER_IN_USE,\n      \"Analizator jest ju\\u017c u\\u017cywany\"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"Nie mo\\u017cna zmieni\\u0107 {0} {1} podczas analizowania\"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"Powodowanie siebie jest niedozwolone\"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"Nie mo\\u017cna poda\\u0107 informacji o u\\u017cytkowniku, je\\u015bli nie podano hosta\"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"Nie mo\\u017cna poda\\u0107 portu, je\\u015bli nie podano hosta\"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"Tekstu zapytania nie mo\\u017cna poda\\u0107 w tek\\u015bcie \\u015bcie\\u017cki i zapytania\"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"Nie mo\\u017cna poda\\u0107 fragmentu jednocze\\u015bnie w \\u015bcie\\u017cce i fragmencie\"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"Nie mo\\u017cna zainicjowa\\u0107 URI z pustymi parametrami\"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"Metoda nie jest jeszcze obs\\u0142ugiwana\"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"IncrementalSAXSource_Filter nie jest obecnie mo\\u017cliwy do ponownego uruchomienia\"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"XMLReader nie przed \\u017c\\u0105daniem startParse\"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"Nieobs\\u0142ugiwane przej\\u015bcie osi: {0}\"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"Utworzono ListingErrorHandler z pustym PrintWriter!\"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"Nieznany identyfikator systemu\"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"Po\\u0142o\\u017cenie b\\u0142\\u0119du jest nieznane\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"Przedrostek musi da\\u0107 si\\u0119 przet\\u0142umaczy\\u0107 na przestrze\\u0144 nazw: {0}\"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"Funkcja createDocument() nie jest obs\\u0142ugiwana w XPathContext!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"Potomek atrybutu nie ma dokumentu w\\u0142a\\u015bciciela!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"Potomek atrybutu nie ma elementu dokumentu w\\u0142a\\u015bciciela!\"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"Ostrze\\u017cenie: nie mo\\u017cna wyprowadzi\\u0107 tekstu przed elementem dokumentu!  Ignoruj\\u0119...\"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"Nie mo\\u017cna mie\\u0107 wi\\u0119cej ni\\u017c jeden element g\\u0142\\u00f3wny w DOM!\"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"Argument 'localName' jest pusty\"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"Nazwa lokalna w QNAME powinna by\\u0107 poprawn\\u0105 nazw\\u0105 NCName\"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"Przedrostek w QNAME powinien by\\u0107 poprawn\\u0105 nazw\\u0105 NCName\"},\n\n    { \"BAD_CODE\", \"Parametr createMessage by\\u0142 spoza zakresu\"},\n    { \"FORMAT_FAILED\", \"Podczas wywo\\u0142ania messageFormat zg\\u0142oszony zosta\\u0142 wyj\\u0105tek\"},\n    { \"line\", \"Wiersz: \"},\n    { \"column\",\"Kolumna \"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"Klasa szereguj\\u0105ca ''{0}'' nie implementuje procedury obs\\u0142ugi org.xml.sax.ContentHandler.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"Nie mo\\u017cna znale\\u017a\\u0107 zasobu [ {0} ].\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"Zas\\u00f3b [ {0} ] nie m\\u00f3g\\u0142 za\\u0142adowa\\u0107: {1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"Wielko\\u015b\\u0107 bufora <=0\" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"Wykryto niepoprawny surogat UTF-16: {0} ?\" },\n\n    {ER_OIERROR,\n      \"B\\u0142\\u0105d we/wy\" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"Nie mo\\u017cna doda\\u0107 atrybutu {0} po w\\u0119z\\u0142ach potomnych ani przed wyprodukowaniem elementu.  Atrybut zostanie zignorowany.\"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"Nie zadeklarowano przestrzeni nazw dla przedrostka ''{0}''.\" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"Atrybut ''{0}'' poza elementem.\" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"Deklaracja przestrzeni nazw ''{0}''=''{1}'' poza elementem.\" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"Nie mo\\u017cna za\\u0142adowa\\u0107 ''{0}'' (sprawd\\u017a CLASSPATH), u\\u017cywane s\\u0105 teraz warto\\u015bci domy\\u015blne\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"Nie mo\\u017cna za\\u0142adowa\\u0107 pliku w\\u0142a\\u015bciwo\\u015bci ''{0}'' dla metody wyj\\u015bciowej ''{1}'' (sprawd\\u017a CLASSPATH)\" }\n\n\n  };\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"pl\", \"PL\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"pl\", \"PL\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "poi-3.0-6241", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/AreaVPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.AreaVPtg", "code": "public class AreaVPtg\n    extends AreaPtg\n{\n    public final static short sid  = 0x45;\n\n    protected AreaVPtg() {\n    }\n\n    public AreaVPtg(short firstRow, short lastRow, short firstColumn, short lastColumn, boolean firstRowRelative, boolean lastRowRelative, boolean firstColRelative, boolean lastColRelative) {\n      super(firstRow, lastRow, firstColumn, lastColumn, firstRowRelative, lastRowRelative, firstColRelative, lastColRelative);\n    }\n\n\n    public AreaVPtg(RecordInputStream in)\n    {\n      super(in);\n    }\n\n    public String getAreaPtgName() {\n      return \"AreaVPtg\";\n    }\n\n    public Object clone() {\n      AreaVPtg ptg = new AreaVPtg();\n      ptg.setFirstRow(getFirstRow());\n      ptg.setLastRow(getLastRow());\n      ptg.setFirstColumnRaw(getFirstColumnRaw());\n      ptg.setLastColumnRaw(getLastColumnRaw());\n      ptg.setClass(ptgClass);\n      return ptg;", "functions": [{"function_name": "getAreaPtgName", "code": "    public String getAreaPtgName() {\n      return \"AreaVPtg\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clone", "code": "    public Object clone() {\n      AreaVPtg ptg = new AreaVPtg();\n      ptg.setFirstRow(getFirstRow());\n      ptg.setLastRow(getLastRow());\n      ptg.setFirstColumnRaw(getFirstColumnRaw());\n      ptg.setLastColumnRaw(getLastColumnRaw());\n      ptg.setClass(ptgClass);\n      return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [7, 11], [2, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 7], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "AreaVPtg", "code": "    protected AreaVPtg() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AreaVPtg", "code": "    public AreaVPtg(short firstRow, short lastRow, short firstColumn, short lastColumn, boolean firstRowRelative, boolean lastRowRelative, boolean firstColRelative, boolean lastColRelative) {\n      super(firstRow, lastRow, firstColumn, lastColumn, firstRowRelative, lastRowRelative, firstColRelative, lastColRelative);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "AreaVPtg", "code": "    public AreaVPtg(RecordInputStream in)\n    {\n      super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-3.0-6266", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/WSBoolRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.WSBoolRecord", "code": "public class WSBoolRecord\n    extends Record\n{\n    public final static short     sid = 0x81;\n\n    static final private BitField autobreaks          = BitFieldFactory.getInstance();\n\n    static final private BitField dialog              = BitFieldFactory.getInstance();\n    static final private BitField applystyles         = BitFieldFactory.getInstance();\n    static final private BitField rowsumsbelow        = BitFieldFactory.getInstance();\n    static final private BitField rowsumsright        = BitFieldFactory.getInstance();\n    static final private BitField fittopage           = BitFieldFactory.getInstance();\n\n    static final private BitField displayguts         = BitFieldFactory.getInstance();\n\n     \n\n    public WSBoolRecord()\n    {\n    }\n\n    /**\n     * Constructs a WSBool record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x81 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public WSBoolRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A WSBoolRECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n       byte data[] = in.readRemainder();\n        field_1_wsbool = '';\n        field_2_wsbool = '';\n\t}\n\n    /**\n     * set first byte (see bit setters)\n     */\n\n    public void setWSBool1(byte bool1)\n    {\n        field_1_wsbool = bool1;\n    }\n\n\n    /**\n     * show automatic page breaks or not\n     * @param ab  whether to show auto page breaks\n     */\n\n    public void setAutobreaks(boolean ab)\n    {\n        field_1_wsbool = autobreaks.setByteBoolean(field_1_wsbool, ab);\n    }\n\n    /**\n     * set whether sheet is a dialog sheet or not\n     * @param isDialog or not\n     */\n\n    public void setDialog(boolean isDialog)\n    {\n        field_1_wsbool = dialog.setByteBoolean(field_1_wsbool, isDialog);\n    }\n\n    /**\n     * set if row summaries appear below detail in the outline\n     * @param below or not\n     */\n\n    public void setRowSumsBelow(boolean below)\n    {\n        field_1_wsbool = rowsumsbelow.setByteBoolean(field_1_wsbool, below);\n    }\n\n    /**\n     * set if col summaries appear right of the detail in the outline\n     * @param right or not\n     */\n\n    public void setRowSumsRight(boolean right)\n    {\n        field_1_wsbool = rowsumsright.setByteBoolean(field_1_wsbool, right);\n    }\n\n\n    /**\n     * set the second byte (see bit setters)\n     */\n\n    public void setWSBool2(byte bool2)\n    {\n        field_2_wsbool = bool2;\n    }\n\n\n    /**\n     * fit to page option is on\n     * @param fit2page  fit or not\n     */\n\n    public void setFitToPage(boolean fit2page)\n    {\n        field_2_wsbool = fittopage.setByteBoolean(field_2_wsbool, fit2page);\n    }\n\n    /**\n     * set whether to display the guts or not\n     *\n     * @param guts or no guts (or glory)\n     */\n\n    public void setDisplayGuts(boolean guts)\n    {\n        field_2_wsbool = displayguts.setByteBoolean(field_2_wsbool, guts);\n    }\n\n    /**\n     * whether alternate expression evaluation is on\n     * @param altexp  alternative expression evaluation or not\n     */\n\n    public void setAlternateExpression(boolean altexp)\n    {\n        field_2_wsbool = alternateexpression.setByteBoolean(field_2_wsbool,\n                altexp);\n    }\n\n    /**\n     * whether alternative formula entry is on\n     * @param formula  alternative formulas or not\n     */\n\n    public void setAlternateFormula(boolean formula)\n    {\n        field_2_wsbool = alternateformula.setByteBoolean(field_2_wsbool,\n                formula);\n    }\n\n\n    /**\n     * get first byte (see bit getters)\n     */\n\n    public byte getWSBool1()\n    {\n        return field_1_wsbool;\n    }\n\n\n    /**\n     * show automatic page breaks or not\n     * @return whether to show auto page breaks\n     */\n\n    public boolean getAutobreaks()\n    {\n        return autobreaks.isSet(field_1_wsbool);\n    }\n\n    /**\n     * get whether sheet is a dialog sheet or not\n     * @return isDialog or not\n     */\n\n    public boolean getDialog()\n    {\n        return dialog.isSet(field_1_wsbool);\n    }\n\n    /**\n     * get if row summaries appear below detail in the outline\n     * @return below or not\n     */\n\n    public boolean getRowSumsBelow()\n    {\n        return rowsumsbelow.isSet(field_1_wsbool);\n    }\n\n    /**\n     * get if col summaries appear right of the detail in the outline\n     * @return right or not\n     */\n\n    public boolean getRowSumsRight()\n    {\n        return rowsumsright.isSet(field_1_wsbool);\n    }\n\n\n    /**\n     * get the second byte (see bit getters)\n     */\n\n    public byte getWSBool2()\n    {\n        return field_2_wsbool;\n    }\n\n\n    /**\n     * fit to page option is on\n     * @return fit or not\n     */\n\n    public boolean getFitToPage()\n    {\n        return fittopage.isSet(field_2_wsbool);\n    }\n\n    /**\n     * get whether to display the guts or not\n     *\n     * @return guts or no guts (or glory)\n     */\n\n    public boolean getDisplayGuts()\n    {\n        return displayguts.isSet(field_2_wsbool);\n    }\n\n    /**\n     * whether alternate expression evaluation is on\n     * @return alternative expression evaluation or not\n     */\n\n    public boolean getAlternateExpression()\n    {\n        return alternateexpression.isSet(field_2_wsbool);\n    }\n\n    /**\n     * whether alternative formula entry is on\n     * @return alternative formulas or not\n     */\n\n    public boolean getAlternateFormula()\n    {\n        return alternateformula.isSet(field_2_wsbool);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[WSBOOL]\\n\");\n        buffer.append(\"    .wsbool1        = \")\n            .append(Integer.toHexString(getWSBool1())).append(\"\\n\");\n        buffer.append(\"        .autobreaks = \").append(getAutobreaks())\n            .append(\"\\n\");\n        buffer.append(\"        .dialog     = \").append(getDialog())\n            .append(\"\\n\");\n        buffer.append(\"        .rowsumsbelw= \").append(getRowSumsBelow())\n            .append(\"\\n\");\n        buffer.append(\"        .rowsumsrigt= \").append(getRowSumsRight())\n            .append(\"\\n\");\n        buffer.append(\"    .wsbool2        = \")\n            .append(Integer.toHexString(getWSBool2())).append(\"\\n\");\n        buffer.append(\"        .fittopage  = \").append(getFitToPage())\n            .append(\"\\n\");\n        buffer.append(\"        .displayguts= \").append(getDisplayGuts())\n            .append(\"\\n\");\n        buffer.append(\"        .alternateex= \")\n            .append(getAlternateExpression()).append(\"\\n\");\n        buffer.append(\"        .alternatefo= \").append(getAlternateFormula())\n            .append(\"\\n\");\n        buffer.append(\"[/WSBOOL]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        data[ 5 + offset ] = getWSBool1();\n        data[ 4 + offset ] = getWSBool2();\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n      WSBoolRecord rec = new WSBoolRecord();\n      rec.field_1_wsbool = field_1_wsbool;\n      rec.field_2_wsbool = field_2_wsbool;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A WSBoolRECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n       byte data[] = in.readRemainder();\n        field_1_wsbool = '';\n        field_2_wsbool = '';", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setWSBool1", "code": "    public void setWSBool1(byte bool1)\n    {\n        field_1_wsbool = bool1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAutobreaks", "code": "    public void setAutobreaks(boolean ab)\n    {\n        field_1_wsbool = autobreaks.setByteBoolean(field_1_wsbool, ab);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDialog", "code": "    public void setDialog(boolean isDialog)\n    {\n        field_1_wsbool = dialog.setByteBoolean(field_1_wsbool, isDialog);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRowSumsBelow", "code": "    public void setRowSumsBelow(boolean below)\n    {\n        field_1_wsbool = rowsumsbelow.setByteBoolean(field_1_wsbool, below);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRowSumsRight", "code": "    public void setRowSumsRight(boolean right)\n    {\n        field_1_wsbool = rowsumsright.setByteBoolean(field_1_wsbool, right);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setWSBool2", "code": "    public void setWSBool2(byte bool2)\n    {\n        field_2_wsbool = bool2;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFitToPage", "code": "    public void setFitToPage(boolean fit2page)\n    {\n        field_2_wsbool = fittopage.setByteBoolean(field_2_wsbool, fit2page);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDisplayGuts", "code": "    public void setDisplayGuts(boolean guts)\n    {\n        field_2_wsbool = displayguts.setByteBoolean(field_2_wsbool, guts);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAlternateExpression", "code": "    public void setAlternateExpression(boolean altexp)\n    {\n        field_2_wsbool = alternateexpression.setByteBoolean(field_2_wsbool,\n                altexp);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAlternateFormula", "code": "    public void setAlternateFormula(boolean formula)\n    {\n        field_2_wsbool = alternateformula.setByteBoolean(field_2_wsbool,\n                formula);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getWSBool1", "code": "    public byte getWSBool1()\n    {\n        return field_1_wsbool;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAutobreaks", "code": "    public boolean getAutobreaks()\n    {\n        return autobreaks.isSet(field_1_wsbool);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDialog", "code": "    public boolean getDialog()\n    {\n        return dialog.isSet(field_1_wsbool);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRowSumsBelow", "code": "    public boolean getRowSumsBelow()\n    {\n        return rowsumsbelow.isSet(field_1_wsbool);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRowSumsRight", "code": "    public boolean getRowSumsRight()\n    {\n        return rowsumsright.isSet(field_1_wsbool);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWSBool2", "code": "    public byte getWSBool2()\n    {\n        return field_2_wsbool;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFitToPage", "code": "    public boolean getFitToPage()\n    {\n        return fittopage.isSet(field_2_wsbool);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDisplayGuts", "code": "    public boolean getDisplayGuts()\n    {\n        return displayguts.isSet(field_2_wsbool);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAlternateExpression", "code": "    public boolean getAlternateExpression()\n    {\n        return alternateexpression.isSet(field_2_wsbool);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAlternateFormula", "code": "    public boolean getAlternateFormula()\n    {\n        return alternateformula.isSet(field_2_wsbool);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[WSBOOL]\\n\");\n        buffer.append(\"    .wsbool1        = \")\n            .append(Integer.toHexString(getWSBool1())).append(\"\\n\");\n        buffer.append(\"        .autobreaks = \").append(getAutobreaks())\n            .append(\"\\n\");\n        buffer.append(\"        .dialog     = \").append(getDialog())\n            .append(\"\\n\");\n        buffer.append(\"        .rowsumsbelw= \").append(getRowSumsBelow())\n            .append(\"\\n\");\n        buffer.append(\"        .rowsumsrigt= \").append(getRowSumsRight())\n            .append(\"\\n\");\n        buffer.append(\"    .wsbool2        = \")\n            .append(Integer.toHexString(getWSBool2())).append(\"\\n\");\n        buffer.append(\"        .fittopage  = \").append(getFitToPage())\n            .append(\"\\n\");\n        buffer.append(\"        .displayguts= \").append(getDisplayGuts())\n            .append(\"\\n\");\n        buffer.append(\"        .alternateex= \")\n            .append(getAlternateExpression()).append(\"\\n\");\n        buffer.append(\"        .alternatefo= \").append(getAlternateFormula())\n            .append(\"\\n\");\n        buffer.append(\"[/WSBOOL]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [4, 16], [5, 17], [5, 18], [5, 19], [6, 20], [6, 21], [6, 22], [7, 23], [7, 24], [7, 25], [8, 26], [8, 27], [8, 28], [9, 29], [9, 30], [9, 31], [10, 32], [10, 33], [10, 34], [11, 35], [11, 36], [11, 37], [12, 38], [12, 39], [12, 40], [13, 41], [13, 42], [13, 43], [14, 44], [14, 45], [14, 46], [15, 47], [2, 48], [18, 49], [19, 50], [21, 51], [22, 52], [24, 53], [25, 54], [27, 55], [28, 56], [30, 57], [31, 58], [33, 59], [34, 60], [36, 61], [37, 62], [39, 63], [40, 64], [42, 65], [43, 66], [45, 67], [46, 68], [58, 69], [68, 70], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 4], [17, 5], [18, 5], [19, 5], [20, 6], [21, 6], [22, 6], [23, 7], [24, 7], [25, 7], [26, 8], [27, 8], [28, 8], [29, 9], [30, 9], [31, 9], [32, 10], [33, 10], [34, 10], [35, 11], [36, 11], [37, 11], [38, 12], [39, 12], [40, 12], [41, 13], [42, 13], [43, 13], [44, 14], [45, 14], [46, 14], [47, 15], [48, 2], [49, 18], [50, 19], [51, 21], [52, 22], [53, 24], [54, 25], [55, 27], [56, 28], [57, 30], [58, 31], [59, 33], [60, 34], [61, 36], [62, 37], [63, 39], [64, 40], [65, 42], [66, 43], [67, 45], [68, 46], [69, 58], [70, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);\n        data[ 5 + offset ] = getWSBool1();\n        data[ 4 + offset ] = getWSBool2();\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [8, 12], [7, 13], [11, 14], [12, 15], [5, 16], [6, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 8], [13, 7], [14, 11], [15, 12], [16, 5], [17, 6], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      WSBoolRecord rec = new WSBoolRecord();\n      rec.field_1_wsbool = field_1_wsbool;\n      rec.field_2_wsbool = field_2_wsbool;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "WSBoolRecord", "code": "    public WSBoolRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "WSBoolRecord", "code": "    public WSBoolRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.6-2672", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/aggregate/AggregationCollection.java", "language": "java", "name": "org.apache.camel.processor.aggregate.AggregationCollection", "code": "public interface AggregationCollection extends Collection<Exchange> {\n\n    /**\n     * Gets the correlation expression\n     */\n    Expression<Exchange> getCorrelationExpression();\n\n    /**\n     * Sets the correlation expression to be used\n     */\n    void setCorrelationExpression(Expression<Exchange> correlationExpression);\n\n    /**\n     * Gets the aggregation strategy\n     */\n    AggregationStrategy getAggregationStrategy();\n\n    /**\n     * Sets the aggregation strategy to be used\n     */\n    void setAggregationStrategy(AggregationStrategy aggregationStrategy);\n\n    /**\n     * Adds the given exchange to this collection\n     */\n    boolean add(Exchange exchange);\n\n    /**\n     * Gets the iterator to iterate this collection.\n     */\n    Iterator<Exchange> iterator();\n\n    /**\n     * Gets the size of this collection\n     */\n    int size();\n\n    /**\n     * Clears this colleciton\n     */\n    void clear();\n\n    /**\n     * A strategy method allowing derived classes such as {@link PredicateAggregationCollection}\n     * to check to see if the aggregation has completed\n     */\n    void onAggregation(Object correlationKey, Exchange newExchange);", "functions": [{"function_name": "getCorrelationExpression", "code": "    Expression<Exchange> getCorrelationExpression();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setCorrelationExpression", "code": "    void setCorrelationExpression(Expression<Exchange> correlationExpression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAggregationStrategy", "code": "    AggregationStrategy getAggregationStrategy();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setAggregationStrategy", "code": "    void setAggregationStrategy(AggregationStrategy aggregationStrategy);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "add", "code": "    boolean add(Exchange exchange);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "iterator", "code": "    Iterator<Exchange> iterator();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "size", "code": "    int size();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "clear", "code": "    void clear();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "onAggregation", "code": "    void onAggregation(Object correlationKey, Exchange newExchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1182", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/ResourceLocation.java", "language": "java", "name": "org.apache.tools.ant.types.ResourceLocation", "code": "public class ResourceLocation {\n\n    /** publicId of the dtd/entity. */\n    private String publicId = null;\n\n    /** location of the dtd/entity - a file/resource/URL. */\n    private String location = null;\n\n    /**\n     * base URL of the dtd/entity, or null. If null, the Ant project\n     * basedir is assumed.  If the location specifies a relative\n     * URL/pathname, it is resolved using the base.  The default base\n     * for an external catalog file is the directory in which it is\n     * located.\n     */\n    private URL base = null;\n\n\n    /**\n     * @param publicId uniquely identifies the resource.\n     */\n    public void setPublicId(String publicId) {\n        this.publicId = publicId;\n    }\n\n    /**\n     * @param location the location of the resource associated with the\n     *      publicId.\n     */\n    public void setLocation(String location) {\n        this.location = location;\n    }\n\n    /**\n     * @param base the base URL of the resource associated with the\n     * publicId.  If the location specifies a relative URL/pathname,\n     * it is resolved using the base.  The default base for an\n     * external catalog file is the directory in which it is located.\n     */\n    public void setBase(URL base) {\n        this.base = base;\n    }\n\n    /**\n     * @return the publicId of the resource.\n     */\n    public String getPublicId() {\n        return publicId;\n    }\n\n    /**\n     * @return the location of the resource identified by the publicId.\n     */\n    public String getLocation() {\n        return location;\n    }\n\n    /**\n     * @return the base of the resource identified by the publicId.\n     */\n    public URL getBase() {\n        return base;", "functions": [{"function_name": "setPublicId", "code": "    public void setPublicId(String publicId) {\n        this.publicId = publicId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLocation", "code": "    public void setLocation(String location) {\n        this.location = location;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBase", "code": "    public void setBase(URL base) {\n        this.base = base;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPublicId", "code": "    public String getPublicId() {\n        return publicId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocation", "code": "    public String getLocation() {\n        return location;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBase", "code": "    public URL getBase() {\n        return base;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.7-907", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/AntlibDefinition.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.AntlibDefinition", "code": "public class AntlibDefinition extends Task {\n\n    private String uri = \"\";\n    private ClassLoader antlibClassLoader;\n\n    /**\n     * The URI for this definition.\n     * If the URI is \"antlib:org.apache.tools.ant\",\n     * (this is the default uri)\n     * the uri will be set to \"\".\n     * URIs that start with \"ant:\" are reserved\n     * and are not allowed in this context.\n     * @param uri the namespace URI\n     * @throws BuildException if a reserved URI is used\n     */\n    public void setURI(String uri) throws BuildException {\n        if (uri.equals(ProjectHelper.ANT_CORE_URI)) {\n            uri = \"\";\n        }\n        if (uri.startsWith(\"ant:\")) {\n            throw new BuildException(\"Attempt to use a reserved URI \" + uri);\n        }\n        this.uri = uri;\n    }\n\n    /**\n     * The URI for this definition.\n     * @return The URI for this defintion.\n     */\n    public String getURI() {\n        return uri;\n    }\n\n    /**\n     * Set the class loader of the loading object\n     *\n     * @param classLoader a <code>ClassLoader</code> value\n     */\n    public void setAntlibClassLoader(ClassLoader classLoader) {\n        this.antlibClassLoader = classLoader;\n    }\n\n    /**\n     * The current antlib classloader\n     * @return the antlib classloader for the definition, this\n     *         is null if the definition is not used in an antlib.\n     */\n    public ClassLoader getAntlibClassLoader() {\n        return antlibClassLoader;", "functions": [{"function_name": "setURI", "code": "    public void setURI(String uri) throws BuildException {\n        if (uri.equals(ProjectHelper.ANT_CORE_URI)) {\n            uri = \"\";\n        }\n        if (uri.startsWith(\"ant:\")) {\n            throw new BuildException(\"Attempt to use a reserved URI \" + uri);\n        }\n        this.uri = uri;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [7, 9], [2, 10], [9, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 7], [10, 2], [11, 9], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getURI", "code": "    public String getURI() {\n        return uri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAntlibClassLoader", "code": "    public void setAntlibClassLoader(ClassLoader classLoader) {\n        this.antlibClassLoader = classLoader;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAntlibClassLoader", "code": "    public ClassLoader getAntlibClassLoader() {\n        return antlibClassLoader;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-2728", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jms/JmsHeaderFilterStrategy.java", "language": "java", "name": "org.apache.camel.component.jms.JmsHeaderFilterStrategy", "code": "public class JmsHeaderFilterStrategy extends DefaultHeaderFilterStrategy {\n\n    public JmsHeaderFilterStrategy() {\n        initialize();\n    }\n\n    protected void initialize() {\n        getOutFilter().add(\"JMSXUserID\");\n        getOutFilter().add(\"JMSXAppID\");\n        getOutFilter().add(\"JMSXDeliveryCount\");\n        getOutFilter().add(\"JMSXProducerTXID\");\n        getOutFilter().add(\"JMSXConsumerTXID\");\n        getOutFilter().add(\"JMSXRcvTimestamp\");\n        getOutFilter().add(\"JMSXRecvTimestamp\");\n        getOutFilter().add(\"JMSXState\");\n    }\n\n    @Override\n    protected boolean extendedFilter(Direction direction, String key, Object value) {\n        return Direction.OUT == direction\n            && !ObjectHelper.isJavaIdentifier(JmsBinding.encodeToSafeJmsHeaderName(key));", "functions": [{"function_name": "initialize", "code": "    protected void initialize() {\n        getOutFilter().add(\"JMSXUserID\");\n        getOutFilter().add(\"JMSXAppID\");\n        getOutFilter().add(\"JMSXDeliveryCount\");\n        getOutFilter().add(\"JMSXProducerTXID\");\n        getOutFilter().add(\"JMSXConsumerTXID\");\n        getOutFilter().add(\"JMSXRcvTimestamp\");\n        getOutFilter().add(\"JMSXRecvTimestamp\");\n        getOutFilter().add(\"JMSXState\");", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [5, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 4], [13, 5], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "extendedFilter", "code": "    @Override\n    protected boolean extendedFilter(Direction direction, String key, Object value) {\n        return Direction.OUT == direction\n            && !ObjectHelper.isJavaIdentifier(JmsBinding.encodeToSafeJmsHeaderName(key));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "JmsHeaderFilterStrategy", "code": "    public JmsHeaderFilterStrategy() {\n        initialize();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-3256", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/xslt/XsltComponent.java", "language": "java", "name": "org.apache.camel.component.xslt.XsltComponent", "code": "public class XsltComponent extends ResourceBasedComponent {\n    private XmlConverter xmlConverter;\n\n    public XmlConverter getXmlConverter() {\n        return xmlConverter;\n    }\n\n    public void setXmlConverter(XmlConverter xmlConverter) {\n        this.xmlConverter = xmlConverter;\n    }\n\n    protected Endpoint<Exchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        Resource resource = resolveMandatoryResource(remaining);\n        if (log.isDebugEnabled()) {\n            log.debug(this + \" using schema resource: \" + resource);\n        }\n        XsltBuilder xslt = newInstance(XsltBuilder.class);\n\n        XmlConverter converter = null;\n        String converterName = getAndRemoveParameter(parameters, \"converter\", String.class);        \n        if (converterName != null) {\n            converter = mandatoryLookup(converterName, XmlConverter.class);\n        }\n        if (converter == null) {\n            converter = getXmlConverter();\n        }\n        if (converter != null) {\n            xslt.setConverter(converter);\n        }\n        \n        String transformerFactoryClassName = getAndRemoveParameter(parameters, \"transformerFactoryClass\", String.class);\n        TransformerFactory factory = null;\n        if (transformerFactoryClassName != null) {\n            Class factoryClass = ObjectHelper.loadClass(transformerFactoryClassName);\n            if (factoryClass != null) {\n                factory = (TransformerFactory) newInstance(factoryClass);\n            } else {\n                log.warn(\"Can't find the TransformerFactoryClass with the class name \" + transformerFactoryClassName);\n            }\n        }\n        \n        String transformerFactoryName = getAndRemoveParameter(parameters, \"transformerFactory\", String.class);        \n        if (transformerFactoryName != null) {\n            factory = mandatoryLookup(transformerFactoryName, TransformerFactory.class);\n        }\n        \n        if (factory != null) {\n            xslt.getConverter().setTransformerFactory(factory);\n        }\n        xslt.setTransformerInputStream(resource.getInputStream());\n        configureXslt(xslt, uri, remaining, parameters);\n        return new ProcessorEndpoint(uri, this, xslt);\n    }\n\n    protected void configureXslt(XsltBuilder xslt, String uri, String remaining, Map parameters) throws Exception {\n        setProperties(xslt, parameters);", "functions": [{"function_name": "getXmlConverter", "code": "    public XmlConverter getXmlConverter() {\n        return xmlConverter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXmlConverter", "code": "    public void setXmlConverter(XmlConverter xmlConverter) {\n        this.xmlConverter = xmlConverter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createEndpoint", "code": "    protected Endpoint<Exchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        Resource resource = resolveMandatoryResource(remaining);\n        if (log.isDebugEnabled()) {\n            log.debug(this + \" using schema resource: \" + resource);\n        }\n        XsltBuilder xslt = newInstance(XsltBuilder.class);\n\n        XmlConverter converter = null;\n        String converterName = getAndRemoveParameter(parameters, \"converter\", String.class);        \n        if (converterName != null) {\n            converter = mandatoryLookup(converterName, XmlConverter.class);\n        }\n        if (converter == null) {\n            converter = getXmlConverter();\n        }\n        if (converter != null) {\n            xslt.setConverter(converter);\n        }\n        \n        String transformerFactoryClassName = getAndRemoveParameter(parameters, \"transformerFactoryClass\", String.class);\n        TransformerFactory factory = null;\n        if (transformerFactoryClassName != null) {\n            Class factoryClass = ObjectHelper.loadClass(transformerFactoryClassName);\n            if (factoryClass != null) {\n                factory = (TransformerFactory) newInstance(factoryClass);\n            } else {\n                log.warn(\"Can't find the TransformerFactoryClass with the class name \" + transformerFactoryClassName);\n            }\n        }\n        \n        String transformerFactoryName = getAndRemoveParameter(parameters, \"transformerFactory\", String.class);        \n        if (transformerFactoryName != null) {\n            factory = mandatoryLookup(transformerFactoryName, TransformerFactory.class);\n        }\n        \n        if (factory != null) {\n            xslt.getConverter().setTransformerFactory(factory);\n        }\n        xslt.setTransformerInputStream(resource.getInputStream());\n        configureXslt(xslt, uri, remaining, parameters);\n        return new ProcessorEndpoint(uri, this, xslt);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [1, 19], [0, 20], [0, 21], [2, 22], [3, 23], [5, 24], [8, 25], [9, 26], [10, 27], [14, 28], [21, 29], [22, 30], [23, 31], [4, 32], [5, 33], [5, 34], [24, 35], [6, 36], [7, 37], [25, 38], [26, 39], [27, 40], [11, 41], [12, 42], [13, 43], [15, 44], [2, 45], [3, 46], [32, 47], [33, 48], [37, 49], [8, 50], [9, 51], [10, 52], [41, 53], [14, 54], [45, 55], [46, 56], [48, 57], [34, 58], [51, 59], [52, 60], [54, 61], [33, 62], [33, 63], [61, 64], [62, 65], [64, 66], [65, 67], [63, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 1], [20, 0], [21, 0], [22, 2], [23, 3], [24, 5], [25, 8], [26, 9], [27, 10], [28, 14], [29, 21], [30, 22], [31, 23], [32, 4], [33, 5], [34, 5], [35, 24], [36, 6], [37, 7], [38, 25], [39, 26], [40, 27], [41, 11], [42, 12], [43, 13], [44, 15], [45, 2], [46, 3], [47, 32], [48, 33], [49, 37], [50, 8], [51, 9], [52, 10], [53, 41], [54, 14], [55, 45], [56, 46], [57, 48], [58, 34], [59, 51], [60, 52], [61, 54], [62, 33], [63, 33], [64, 61], [65, 62], [66, 64], [67, 65], [68, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "configureXslt", "code": "    protected void configureXslt(XsltBuilder xslt, String uri, String remaining, Map parameters) throws Exception {\n        setProperties(xslt, parameters);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.7-8213", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/StepIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.StepIterator", "code": "public class StepIterator extends DTMAxisIteratorBase {\n\n    /**\n     * A reference to the \"outer\" iterator.\n     */\n    protected DTMAxisIterator _source;\n\n    /**\n     * A reference to the \"inner\" iterator.\n     */\n    protected DTMAxisIterator _iterator;\n\n    /**\n     * Temp variable to store a marked position.\n     */\n    private int _pos = -1;\n\n    public StepIterator(DTMAxisIterator source, DTMAxisIterator iterator) {\n\t_source = source;\n\t_iterator = iterator;\n    }\n\n\n    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);\n    }\n\n    public DTMAxisIterator cloneIterator() {\n\t_isRestartable = false;\n\ttry {\n\t    final StepIterator clone = (StepIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._iterator = _iterator.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;\n\t}\n    }\n    \n    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(_startNode = node);\n\n\t    _iterator.setStartNode(_includeSelf ? _startNode : _source.next());\n\t    return resetPosition();\n\t}\n\treturn this;\n    }\n\n    public DTMAxisIterator reset() {\n\t_source.reset();\n\t_iterator.setStartNode(_includeSelf ? _startNode : _source.next());\n\treturn resetPosition();\n    }\n    \n    public int next() {\n\tfor (int node;;) {\n\t    if ((node = _iterator.next()) != END) {\n\t\treturn returnNode(node);\n\t    }\n\t    else if ((node = _source.next()) == END) {\n\t\treturn END;\n\t    }\n\t    else {\n\t\t_iterator.setStartNode(node);\n\t    }\n\t}\n    }\n\n    public void setMark() {\n\t_source.setMark();\n\t_iterator.setMark();\n    }\n\n    public void gotoMark() {\n\t_source.gotoMark();\n\t_iterator.gotoMark();", "functions": [{"function_name": "setRestartable", "code": "    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "cloneIterator", "code": "    public DTMAxisIterator cloneIterator() {\n\t_isRestartable = false;\n\ttry {\n\t    final StepIterator clone = (StepIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._iterator = _iterator.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "ASSIGN", "RETURN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [0, 5], [2, 6], [3, 7], [1, 8], [1, 9], [1, 10], [5, 11], [6, 12], [2, 13], [8, 14], [9, 15], [10, 16], [13, 17], [1, 0], [2, 1], [3, 1], [4, 1], [5, 0], [6, 2], [7, 3], [8, 1], [9, 1], [10, 1], [11, 5], [12, 6], [13, 2], [14, 8], [15, 9], [16, 10], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(_startNode = node);\n\n\t    _iterator.setStartNode(_includeSelf ? _startNode : _source.next());\n\t    return resetPosition();\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "CALL", "CALL", "CALL", "COND_EXPR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [6, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 6], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n\t_source.reset();\n\t_iterator.setStartNode(_includeSelf ? _startNode : _source.next());\n\treturn resetPosition();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "COND_EXPR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [3, 5], [5, 6], [1, 0], [2, 1], [3, 0], [4, 0], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "next", "code": "    public int next() {\n\tfor (int node;;) {\n\t    if ((node = _iterator.next()) != END) {\n\t\treturn returnNode(node);\n\t    }\n\t    else if ((node = _source.next()) == END) {\n\t\treturn END;\n\t    }\n\t    else {\n\t\t_iterator.setStartNode(node);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "RETURN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [2, 6], [4, 7], [3, 8], [5, 9], [6, 10], [7, 11], [3, 12], [9, 13], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 2], [7, 4], [8, 3], [9, 5], [10, 6], [11, 7], [12, 3], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_source.setMark();\n\t_iterator.setMark();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_source.gotoMark();\n\t_iterator.gotoMark();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "StepIterator", "code": "    public StepIterator(DTMAxisIterator source, DTMAxisIterator iterator) {\n\t_source = source;\n\t_iterator = iterator;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.2-1848", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/processor/aggregate/AggregationCollection.java", "language": "java", "name": "org.apache.camel.processor.aggregate.AggregationCollection", "code": "public class AggregationCollection extends AbstractCollection<Exchange> {\n    private final Expression<Exchange> correlationExpression;\n    private final AggregationStrategy aggregationStrategy;\n    private Map<Object, Exchange> map = new LinkedHashMap<Object, Exchange>();\n\n    public AggregationCollection(Expression<Exchange> correlationExpression,\n                                 AggregationStrategy aggregationStrategy) {\n        this.correlationExpression = correlationExpression;\n        this.aggregationStrategy = aggregationStrategy;\n    }\n\n    @Override\n    public boolean add(Exchange exchange) {\n        Object correlationKey = correlationExpression.evaluate(exchange);\n        Exchange oldExchange = map.get(correlationKey);\n        Exchange newExchange = exchange;\n        if (oldExchange != null) {\n            newExchange = aggregationStrategy.aggregate(oldExchange, newExchange);\n        }\n\n        if (newExchange != oldExchange) {\n            map.put(correlationKey, newExchange);\n        }\n        return true;\n    }\n\n    public Iterator<Exchange> iterator() {\n        return map.values().iterator();\n    }\n\n    public int size() {\n        return map.size();", "functions": [{"function_name": "add", "code": "    @Override\n    public boolean add(Exchange exchange) {\n        Object correlationKey = correlationExpression.evaluate(exchange);\n        Exchange oldExchange = map.get(correlationKey);\n        Exchange newExchange = exchange;\n        if (oldExchange != null) {\n            newExchange = aggregationStrategy.aggregate(oldExchange, newExchange);\n        }\n\n        if (newExchange != oldExchange) {\n            map.put(correlationKey, newExchange);\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [10, 11], [5, 12], [6, 13], [2, 14], [3, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 10], [12, 5], [13, 6], [14, 2], [15, 3], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "iterator", "code": "    public Iterator<Exchange> iterator() {\n        return map.values().iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "size", "code": "    public int size() {\n        return map.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AggregationCollection", "code": "    public AggregationCollection(Expression<Exchange> correlationExpression,\n                                 AggregationStrategy aggregationStrategy) {\n        this.correlationExpression = correlationExpression;\n        this.aggregationStrategy = aggregationStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.4-6597", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/dtm/ref/CustomStringPool.java", "language": "java", "name": "org.apache.xml.dtm.ref.CustomStringPool", "code": "public class CustomStringPool extends DTMStringPool {\n        final Hashtable m_stringToInt = new Hashtable();\n        public static final int NULL=-1;\n\n        public CustomStringPool()\n        {\n                super();\n                /*m_intToString=new Vector();\n                System.out.println(\"In constructor m_intToString is \" + \n                                                                                         ((null == m_intToString) ? \"null\" : \"not null\"));*/\n        }\n\n        public void removeAllElements()\n        {\n                m_intToString.removeAllElements();\n                if (m_stringToInt != null) \n                        m_stringToInt.clear();\n        }\n\n        /** @return string whose value is uniquely identified by this integer index.\n         * @throws java.lang.ArrayIndexOutOfBoundsException\n         *  if index doesn't map to a string.\n         * */\n        public String indexToString(int i)\n        throws java.lang.ArrayIndexOutOfBoundsException\n        {\n                return(String) m_intToString.elementAt(i);\n        }\n\n        /** @return integer index uniquely identifying the value of this string. */\n        public int stringToIndex(String s)\n        {\n                if (s==null) return NULL;\n                Integer iobj=(Integer)m_stringToInt.get(s);\n                if (iobj==null) {\n                        m_intToString.addElement(s);\n                        iobj=new Integer(m_intToString.size());\n                        m_stringToInt.put(s,iobj);\n                }\n                return iobj.intValue();", "functions": [{"function_name": "removeAllElements", "code": "        public void removeAllElements()\n        {\n                m_intToString.removeAllElements();\n                if (m_stringToInt != null) \n                        m_stringToInt.clear();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 1], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "indexToString", "code": "        public String indexToString(int i)\n        throws java.lang.ArrayIndexOutOfBoundsException\n        {\n                return(String) m_intToString.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "stringToIndex", "code": "        public int stringToIndex(String s)\n        {\n                if (s==null) return NULL;\n                Integer iobj=(Integer)m_stringToInt.get(s);\n                if (iobj==null) {\n                        m_intToString.addElement(s);\n                        iobj=new Integer(m_intToString.size());\n                        m_stringToInt.put(s,iobj);\n                }\n                return iobj.intValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [7, 10], [9, 11], [2, 12], [2, 13], [2, 14], [3, 15], [13, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 7], [11, 9], [12, 2], [13, 2], [14, 2], [15, 3], [16, 13], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "CustomStringPool", "code": "        public CustomStringPool()\n        {\n                super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-3.2-3686", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/options/ShortcutsOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.ShortcutsOptionPane", "code": "public class ShortcutsOptionPane extends AbstractOptionPane\n{\n\tpublic ShortcutsOptionPane()\n\t{\n\t\tsuper(\"shortcuts\");\n\t}\n\n\t// protected members\n\tprotected void _init()\n\t{\n\t\tallBindings = new Vector();\n\n\t\tsetLayout(new BorderLayout(12,12));\n\n\t\tinitModels();\n\n\t\tselectModel = new JComboBox(models);\n\t\tselectModel.addActionListener(new ActionHandler());\n\n\t\tBox north = Box.createHorizontalBox();\n\t\tnorth.add(new JLabel(jEdit.getProperty(\n\t\t\t\"options.shortcuts.select.label\")));\n\t\tnorth.add(Box.createHorizontalStrut(12));\n\t\tnorth.add(selectModel);\n\n\t\tkeyTable = new JTable(currentModel);\n\t\tkeyTable.getTableHeader().setReorderingAllowed(false);\n\t\tkeyTable.getTableHeader().addMouseListener(new HeaderMouseHandler());\n\t\tkeyTable.addMouseListener(new TableMouseHandler());\n\t\tDimension d = keyTable.getPreferredSize();\n\t\td.height = Math.min(d.height,200);\n\t\tJScrollPane scroller = new JScrollPane(keyTable);\n\t\tscroller.setPreferredSize(d);\n\n\t\tadd(BorderLayout.NORTH,north);\n\t\tadd(BorderLayout.CENTER,scroller);\n\t}\n\n\tprotected void _save()\n\t{\n\t\tif(keyTable.getCellEditor() != null)\n\t\t\tkeyTable.getCellEditor().stopCellEditing();\n\n\t\tEnumeration e = models.elements();\n\t\twhile(e.hasMoreElements())\n\t\t\t((ShortcutsModel)e.nextElement()).save();\n\n\t\tMacros.loadMacros();\n\t}\n\n\tprivate void initModels()\n\t{\n\t\tmodels = new Vector();\n\t\tmodels.addElement(currentModel = createModel(\"commands\",false));\n\t\tmodels.addElement(createModel(\"plugins\",true));\n\t\tmodels.addElement(createMacrosModel());\n\t}\n\n\tprivate ShortcutsModel createModel(String id, boolean pluginActions)\n\t{\n\t\tEditAction[] actions = jEdit.getActions();\n\t\tVector bindings = new Vector(actions.length);\n\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tEditAction action = actions[i];\n\t\t\tif(action.isPluginAction() != pluginActions)\n\t\t\t\tcontinue;\n\n\t\t\tString name = action.getName();\n\t\t\tString label = jEdit.getProperty(name + \".label\");\n\t\t\t// Skip certain actions this way (ENTER, TAB)\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\n\t\t\tlabel = GUIUtilities.prettifyMenuLabel(label);\n\t\t\taddBindings(name,label,bindings);\n\t\t}\n\n\t\treturn new ShortcutsModel(id,bindings);\n\t}\n\n\tprivate ShortcutsModel createMacrosModel()\n\t{\n\t\tVector bindings = new Vector();\n\t\tVector macroList = Macros.getMacroList();\n\n\t\tfor(int i = 0; i < macroList.size(); i++)\n\t\t{\n\t\t\tString name = macroList.elementAt(i).toString();\n\t\t\taddBindings(name,name,bindings);\n\t\t}\n\n\t\treturn new ShortcutsModel(\"macros\",bindings);\n\t}\n\n\tprivate void addBindings(String name, String label, Vector bindings)\n\t{\n\t\tGrabKeyDialog.KeyBinding b[] = new GrabKeyDialog.KeyBinding[2];\n\n\t\tb[0] = createBinding(name,label,\n\t\t\tjEdit.getProperty(name + \".shortcut\"));\n\t\tb[1] = createBinding(name,label,\n\t\t\tjEdit.getProperty(name + \".shortcut2\"));\n\n\t\tbindings.addElement(b);\n\t}\n\n\tprivate GrabKeyDialog.KeyBinding createBinding(String name,\n\t\tString label, String shortcut)\n\t{\n\t\tif(shortcut != null && shortcut.length() == 0)\n\t\t\tshortcut = null;\n\n\t\tGrabKeyDialog.KeyBinding binding\n\t\t\t= new GrabKeyDialog.KeyBinding(name,label,shortcut,false);\n\n\t\tallBindings.addElement(binding);\n\t\treturn binding;\n\t}\n\n\t// private members\n\tprivate JTable keyTable;\n\tprivate Vector models;\n\tprivate ShortcutsModel currentModel;\n\tprivate JComboBox selectModel;\n\tprivate Vector allBindings;\n\n\tclass HeaderMouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mouseClicked(MouseEvent evt)\n\t\t{\n\t\t\tswitch(keyTable.getTableHeader().columnAtPoint(evt.getPoint()))\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tcurrentModel.sort(0);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tcurrentModel.sort(1);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tcurrentModel.sort(2);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tclass TableMouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mouseClicked(MouseEvent evt)\n\t\t{\n\t\t\tint row = keyTable.getSelectedRow();\n\t\t\tint col = keyTable.getSelectedColumn();\n\t\t\tif(col != 0 && row != -1)\n\t\t\t{\n\t\t\t\t GrabKeyDialog gkd = new GrabKeyDialog(\n\t\t\t\t\tShortcutsOptionPane.this,\n\t\t\t\t\tcurrentModel.getBindingAt(row,col-1),\n\t\t\t\t\tallBindings);\n\t\t\t\tif(gkd.isOK())\n\t\t\t\t\tcurrentModel.setValueAt(\n\t\t\t\t\t\tgkd.getShortcut(),row,col);\n\t\t\t}\n\t\t}\n\t}\n\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tShortcutsModel newModel\n\t\t\t\t= (ShortcutsModel)selectModel.getSelectedItem();\n\n\t\t\tif(currentModel != newModel)\n\t\t\t{\n\t\t\t\tcurrentModel = newModel;\n\t\t\t\tkeyTable.setModel(currentModel);\n\t\t\t}\n\t\t}\n\t}\n\n\tclass ShortcutsModel extends AbstractTableModel\n\t{\n\t\tprivate Vector bindings;\n\t\tprivate String name;\n\n\t\tShortcutsModel(String name, Vector bindings)\n\t\t{\n\t\t\tthis.name = name;\n\t\t\tthis.bindings = bindings;\n\t\t\tsort(0);\n\t\t}\n\n\t\tpublic void sort(int col)\n\t\t{\n\t\t\tMiscUtilities.quicksort(bindings,new KeyCompare(col));\n\t\t\tfireTableDataChanged();\n\t\t}\n\n\t\tpublic int getColumnCount()\n\t\t{\n\t\t\treturn 3;\n\t\t}\n\n\t\tpublic int getRowCount()\n\t\t{\n\t\t\treturn bindings.size();\n\t\t}\n\n\t\tpublic Object getValueAt(int row, int col)\n\t\t{\n\t\t\tswitch(col)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\treturn getBindingAt(row,0).label;\n\t\t\tcase 1:\n\t\t\t\treturn getBindingAt(row,0).shortcut;\n\t\t\tcase 2:\n\t\t\t\treturn getBindingAt(row,1).shortcut;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\tpublic void setValueAt(Object value, int row, int col)\n\t\t{\n\t\t\tif(col == 0)\n\t\t\t\treturn;\n\n\t\t\tgetBindingAt(row,col-1).shortcut = (String)value;\n\n\t\t\t// redraw the whole table because a second shortcut\n\t\t\t// might have changed, too\n\t\t\tfireTableDataChanged();\n\t\t}\n\n\t\tpublic String getColumnName(int index)\n\t\t{\n\t\t\tswitch(index)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\treturn jEdit.getProperty(\"options.shortcuts.name\");\n\t\t\tcase 1:\n\t\t\t\treturn jEdit.getProperty(\"options.shortcuts.shortcut1\");\n\t\t\tcase 2:\n\t\t\t\treturn jEdit.getProperty(\"options.shortcuts.shortcut2\");\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\tpublic void save()\n\t\t{\n\t\t\tEnumeration enum1 = bindings.elements();\n\t\t\twhile(enum1.hasMoreElements())\n\t\t\t{\n\t\t\t\tGrabKeyDialog.KeyBinding binding[]\n\t\t\t\t\t= (GrabKeyDialog.KeyBinding[])\n\t\t\t\t\t\tenum1.nextElement();\n\t\t\t\tjEdit.setProperty(\n\t\t\t\t\tbinding[0].name + \".shortcut\",\n\t\t\t\t\tbinding[0].shortcut);\n\t\t\t\tjEdit.setProperty(\n\t\t\t\t\tbinding[1].name + \".shortcut2\",\n\t\t\t\t\tbinding[1].shortcut);\n\t\t\t}\n\t\t}\n\n\t\tpublic GrabKeyDialog.KeyBinding getBindingAt(int row, int nr)\n\t\t{\n\t\t\tGrabKeyDialog.KeyBinding binding[]\n\t\t\t\t= (GrabKeyDialog.KeyBinding[])\n\t\t\t\t\tbindings.elementAt(row);\n\t\t\treturn binding[nr];\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn jEdit.getProperty(\n\t\t\t\t\"options.shortcuts.select.\" + name);\n\t\t}\n\n\t\tclass KeyCompare implements MiscUtilities.Compare\n\t\t{\n\t\t\tint col;\n\n\t\t\tKeyCompare(int col)\n\t\t\t{\n\t\t\t\tthis.col = col;\n\t\t\t}\n\n\t\t\tpublic int compare(Object obj1, Object obj2)\n\t\t\t{\n\t\t\t\tGrabKeyDialog.KeyBinding[] k1\n\t\t\t\t\t= (GrabKeyDialog.KeyBinding[])obj1;\n\t\t\t\tGrabKeyDialog.KeyBinding[] k2\n\t\t\t\t\t= (GrabKeyDialog.KeyBinding[])obj2;\n\n\t\t\t\tString label1 = k1[0].label.toLowerCase();\n\t\t\t\tString label2 = k2[0].label.toLowerCase();\n\n\t\t\t\tif(col == 0)\n\t\t\t\t\treturn label1.compareTo(label2);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString shortcut1, shortcut2;\n\n\t\t\t\t\tif(col == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tshortcut1 = k1[0].shortcut;\n\t\t\t\t\t\tshortcut2 = k2[0].shortcut;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tshortcut1 = k1[1].shortcut;\n\t\t\t\t\t\tshortcut2 = k2[1].shortcut;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(shortcut1 == null && shortcut2 != null)\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\telse if(shortcut2 == null && shortcut1 != null)\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\telse if(shortcut1 == null && shortcut2 == null)\n\t\t\t\t\t\treturn label1.compareTo(label2);\n\t\t\t\t\telse\n\t\t\t\t\t\treturn shortcut1.compareTo(shortcut2);", "functions": [{"function_name": "_init", "code": "\tprotected void _init()\n\t{\n\t\tallBindings = new Vector();\n\n\t\tsetLayout(new BorderLayout(12,12));\n\n\t\tinitModels();\n\n\t\tselectModel = new JComboBox(models);\n\t\tselectModel.addActionListener(new ActionHandler());\n\n\t\tBox north = Box.createHorizontalBox();\n\t\tnorth.add(new JLabel(jEdit.getProperty(\n\t\t\t\"options.shortcuts.select.label\")));\n\t\tnorth.add(Box.createHorizontalStrut(12));\n\t\tnorth.add(selectModel);\n\n\t\tkeyTable = new JTable(currentModel);\n\t\tkeyTable.getTableHeader().setReorderingAllowed(false);\n\t\tkeyTable.getTableHeader().addMouseListener(new HeaderMouseHandler());\n\t\tkeyTable.addMouseListener(new TableMouseHandler());\n\t\tDimension d = keyTable.getPreferredSize();\n\t\td.height = Math.min(d.height,200);\n\t\tJScrollPane scroller = new JScrollPane(keyTable);\n\t\tscroller.setPreferredSize(d);\n\n\t\tadd(BorderLayout.NORTH,north);\n\t\tadd(BorderLayout.CENTER,scroller);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [1, 20], [7, 21], [2, 22], [8, 23], [9, 24], [10, 25], [11, 26], [13, 27], [14, 28], [3, 29], [15, 30], [16, 31], [18, 32], [19, 33], [21, 34], [24, 35], [25, 36], [27, 37], [28, 38], [32, 39], [32, 40], [38, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 1], [21, 7], [22, 2], [23, 8], [24, 9], [25, 10], [26, 11], [27, 13], [28, 14], [29, 3], [30, 15], [31, 16], [32, 18], [33, 19], [34, 21], [35, 24], [36, 25], [37, 27], [38, 28], [39, 32], [40, 32], [41, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "_save", "code": "\tprotected void _save()\n\t{\n\t\tif(keyTable.getCellEditor() != null)\n\t\t\tkeyTable.getCellEditor().stopCellEditing();\n\n\t\tEnumeration e = models.elements();\n\t\twhile(e.hasMoreElements())\n\t\t\t((ShortcutsModel)e.nextElement()).save();\n\n\t\tMacros.loadMacros();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [3, 8], [6, 9], [6, 10], [1, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [8, 3], [9, 6], [10, 6], [11, 1], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "initModels", "code": "\tprivate void initModels()\n\t{\n\t\tmodels = new Vector();\n\t\tmodels.addElement(currentModel = createModel(\"commands\",false));\n\t\tmodels.addElement(createModel(\"plugins\",true));\n\t\tmodels.addElement(createMacrosModel());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [6, 9], [6, 10], [7, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 6], [10, 6], [11, 7], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createModel", "code": "\tprivate ShortcutsModel createModel(String id, boolean pluginActions)\n\t{\n\t\tEditAction[] actions = jEdit.getActions();\n\t\tVector bindings = new Vector(actions.length);\n\n\t\tfor(int i = 0; i < actions.length; i++)\n\t\t{\n\t\t\tEditAction action = actions[i];\n\t\t\tif(action.isPluginAction() != pluginActions)\n\t\t\t\tcontinue;\n\n\t\t\tString name = action.getName();\n\t\t\tString label = jEdit.getProperty(name + \".label\");\n\t\t\t// Skip certain actions this way (ENTER, TAB)\n\t\t\tif(label == null)\n\t\t\t\tcontinue;\n\n\t\t\tlabel = GUIUtilities.prettifyMenuLabel(label);\n\t\t\taddBindings(name,label,bindings);\n\t\t}\n\n\t\treturn new ShortcutsModel(id,bindings);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [3, 14], [4, 15], [2, 16], [2, 17], [9, 18], [9, 19], [12, 20], [12, 21], [2, 22], [17, 23], [19, 24], [10, 25], [11, 26], [21, 27], [25, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 3], [15, 4], [16, 2], [17, 2], [18, 9], [19, 9], [20, 12], [21, 12], [22, 2], [23, 17], [24, 19], [25, 10], [26, 11], [27, 21], [28, 25], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "createMacrosModel", "code": "\tprivate ShortcutsModel createMacrosModel()\n\t{\n\t\tVector bindings = new Vector();\n\t\tVector macroList = Macros.getMacroList();\n\n\t\tfor(int i = 0; i < macroList.size(); i++)\n\t\t{\n\t\t\tString name = macroList.elementAt(i).toString();\n\t\t\taddBindings(name,name,bindings);\n\t\t}\n\n\t\treturn new ShortcutsModel(\"macros\",bindings);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [6, 9], [3, 10], [4, 11], [2, 12], [2, 13], [8, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 6], [10, 3], [11, 4], [12, 2], [13, 2], [14, 8], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "addBindings", "code": "\tprivate void addBindings(String name, String label, Vector bindings)\n\t{\n\t\tGrabKeyDialog.KeyBinding b[] = new GrabKeyDialog.KeyBinding[2];\n\n\t\tb[0] = createBinding(name,label,\n\t\t\tjEdit.getProperty(name + \".shortcut\"));\n\t\tb[1] = createBinding(name,label,\n\t\t\tjEdit.getProperty(name + \".shortcut2\"));\n\n\t\tbindings.addElement(b);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [7, 9], [8, 10], [9, 11], [1, 12], [10, 13], [6, 14], [11, 15], [7, 16], [13, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 7], [10, 8], [11, 9], [12, 1], [13, 10], [14, 6], [15, 11], [16, 7], [17, 13], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "createBinding", "code": "\tprivate GrabKeyDialog.KeyBinding createBinding(String name,\n\t\tString label, String shortcut)\n\t{\n\t\tif(shortcut != null && shortcut.length() == 0)\n\t\t\tshortcut = null;\n\n\t\tGrabKeyDialog.KeyBinding binding\n\t\t\t= new GrabKeyDialog.KeyBinding(name,label,shortcut,false);\n\n\t\tallBindings.addElement(binding);\n\t\treturn binding;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [2, 9], [3, 10], [8, 11], [8, 12], [9, 13], [10, 14], [11, 15], [11, 16], [12, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 2], [10, 3], [11, 8], [12, 8], [13, 9], [14, 10], [15, 11], [16, 11], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "ShortcutsOptionPane", "code": "\tpublic ShortcutsOptionPane()\n\t{\n\t\tsuper(\"shortcuts\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-3.0-6166", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/ddf/EscherArrayProperty.java", "language": "java", "name": "org.apache.poi.ddf.EscherArrayProperty", "code": "public class EscherArrayProperty\n        extends EscherComplexProperty\n{\n\t/**\n\t * The size of the header that goes at the\n\t *  start of the array, before the data\n\t */\n    private static final int FIXED_SIZE = 3 * 2;\n    /**\n     * Normally, the size recorded in the simple data (for the complex\n     *  data) includes the size of the header.\n     * There are a few cases when it doesn't though...\n     */\n    private boolean sizeIncludesHeaderSize = true;\n\n    /**\n     * When reading a property from data stream remeber if the complex part is empty and set this flag.\n     */\n    private boolean emptyComplexPart = false;\n\n    public EscherArrayProperty( short id, byte[] complexData )\n    {\n        super( id, checkComplexData(complexData) );\n        emptyComplexPart = complexData.length == 0;\n    }\n\n    public EscherArrayProperty( short propertyNumber, boolean isBlipId, byte[] complexData )\n    {\n        super( propertyNumber, isBlipId, checkComplexData(complexData) );\n    }\n\n    private static byte[] checkComplexData( byte[] complexData )\n    {\n        if (complexData == null || complexData.length == 0)\n            complexData = new byte[6];\n\n        return complexData;\n    }\n\n    public int getNumberOfElementsInArray()\n    {\n        return LittleEndian.getUShort( complexData, 0 );\n    }\n\n    public void setNumberOfElementsInArray( int numberOfElements )\n    {\n        int expectedArraySize = numberOfElements * getActualSizeOfElements(getSizeOfElements()) + FIXED_SIZE;\n        if ( expectedArraySize != complexData.length )\n        {\n            byte[] newArray = new byte[expectedArraySize];\n            System.arraycopy( complexData, 0, newArray, 0, complexData.length );\n            complexData = newArray;\n        }\n        LittleEndian.putShort( complexData, 0, (short) numberOfElements );\n    }\n\n    public int getNumberOfElementsInMemory()\n    {\n        return LittleEndian.getUShort( complexData, 2 );\n    }\n\n    public void setNumberOfElementsInMemory( int numberOfElements )\n    {\n        int expectedArraySize = numberOfElements * getActualSizeOfElements(getSizeOfElements()) + FIXED_SIZE;\n        if ( expectedArraySize != complexData.length )\n        {\n            byte[] newArray = new byte[expectedArraySize];\n            System.arraycopy( complexData, 0, newArray, 0, expectedArraySize );\n            complexData = newArray;\n        }\n        LittleEndian.putShort( complexData, 2, (short) numberOfElements );\n    }\n\n    public short getSizeOfElements()\n    {\n        return LittleEndian.getShort( complexData, 4 );\n    }\n\n    public void setSizeOfElements( int sizeOfElements )\n    {\n        LittleEndian.putShort( complexData, 4, (short) sizeOfElements );\n\n        int expectedArraySize = getNumberOfElementsInArray() * getActualSizeOfElements(getSizeOfElements()) + FIXED_SIZE;\n        if ( expectedArraySize != complexData.length )\n        {\n            byte[] newArray = new byte[expectedArraySize];\n            System.arraycopy( complexData, 0, newArray, 0, 6 );\n            complexData = newArray;\n        }\n    }\n\n    public byte[] getElement( int index )\n    {\n        int actualSize = getActualSizeOfElements(getSizeOfElements());\n        byte[] result = new byte[actualSize];\n        System.arraycopy(complexData, FIXED_SIZE + index * actualSize, result, 0, result.length );\n        return result;\n    }\n\n    public void setElement( int index, byte[] element )\n    {\n        int actualSize = getActualSizeOfElements(getSizeOfElements());\n        System.arraycopy( element, 0, complexData, FIXED_SIZE + index * actualSize, actualSize);\n    }\n\n    public String toString()\n    {\n        String nl = System.getProperty(\"line.separator\");\n\n        StringBuffer results = new StringBuffer();\n        results.append(\"    {EscherArrayProperty:\" + nl);\n        results.append(\"     Num Elements: \" + getNumberOfElementsInArray() + nl);\n        results.append(\"     Num Elements In Memory: \" + getNumberOfElementsInMemory() + nl);\n        results.append(\"     Size of elements: \" + getSizeOfElements() + nl);\n        for (int i = 0; i < getNumberOfElementsInArray(); i++)\n        {\n            results.append(\"     Element \" + i + \": \" + HexDump.toHex(getElement(i)) + nl);\n        }\n        results.append(\"}\" + nl);\n\n        return \"propNum: \" + getPropertyNumber()\n                + \", propName: \" + EscherProperties.getPropertyName( getPropertyNumber() )\n                + \", complex: \" + isComplex()\n                + \", blipId: \" + isBlipId()\n                + \", data: \" + nl + results.toString();\n    }\n\n    /**\n     * We have this method because the way in which arrays in escher works\n     * is screwed for seemly arbitary reasons.  While most properties are\n     * fairly consistent and have a predictable array size, escher arrays\n     * have special cases.\n     *\n     * @param data      The data array containing the escher array information\n     * @param offset    The offset into the array to start reading from.\n     * @return  the number of bytes used by this complex property.\n     */\n    public int setArrayData( byte[] data, int offset )\n    {\n        if (emptyComplexPart){\n            complexData = new byte[0];\n        } else {\n            short numElements = LittleEndian.getShort(data, offset);\n            short numReserved = LittleEndian.getShort(data, offset + 2);\n            short sizeOfElements = LittleEndian.getShort(data, offset + 4);\n\n            int arraySize = getActualSizeOfElements(sizeOfElements) * numElements;\n            if (arraySize == complexData.length) {\n                complexData = new byte[arraySize + 6];\n                sizeIncludesHeaderSize = false;\n            }\n            System.arraycopy(data, offset, complexData, 0, complexData.length );\n        }\n        return complexData.length;\n    }\n\n    /**\n     * Serializes the simple part of this property.  ie the first 6 bytes.\n     * \n     * Needs special code to handle the case when the size doesn't \n     *  include the size of the header block\n     */\n    public int serializeSimplePart( byte[] data, int pos )\n    {\n        LittleEndian.putShort(data, pos, getId());\n        int recordSize = complexData.length;\n        if(!sizeIncludesHeaderSize) {\n        \trecordSize -= 6;\n        }\n        LittleEndian.putInt(data, pos + 2, recordSize);\n        return 6;\n    }\n\n    /**\n     * Sometimes the element size is stored as a negative number.  We\n     * negate it and shift it to get the real value.\n     */\n    public static int getActualSizeOfElements(short sizeOfElements)\n    {\n        if (sizeOfElements < 0)\n            return (short) ( ( -sizeOfElements ) >> 2 );\n        else\n            return sizeOfElements;", "functions": [{"function_name": "checkComplexData", "code": "    private static byte[] checkComplexData( byte[] complexData )\n    {\n        if (complexData == null || complexData.length == 0)\n            complexData = new byte[6];\n\n        return complexData;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [4, 7], [6, 8], [7, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 4], [8, 6], [9, 7], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNumberOfElementsInArray", "code": "    public int getNumberOfElementsInArray()\n    {\n        return LittleEndian.getUShort( complexData, 0 );", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setNumberOfElementsInArray", "code": "    public void setNumberOfElementsInArray( int numberOfElements )\n    {\n        int expectedArraySize = numberOfElements * getActualSizeOfElements(getSizeOfElements()) + FIXED_SIZE;\n        if ( expectedArraySize != complexData.length )\n        {\n            byte[] newArray = new byte[expectedArraySize];\n            System.arraycopy( complexData, 0, newArray, 0, complexData.length );\n            complexData = newArray;\n        }\n        LittleEndian.putShort( complexData, 0, (short) numberOfElements );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [2, 8], [1, 9], [1, 10], [8, 11], [10, 12], [10, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 2], [9, 1], [10, 1], [11, 8], [12, 10], [13, 10], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getNumberOfElementsInMemory", "code": "    public int getNumberOfElementsInMemory()\n    {\n        return LittleEndian.getUShort( complexData, 2 );", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setNumberOfElementsInMemory", "code": "    public void setNumberOfElementsInMemory( int numberOfElements )\n    {\n        int expectedArraySize = numberOfElements * getActualSizeOfElements(getSizeOfElements()) + FIXED_SIZE;\n        if ( expectedArraySize != complexData.length )\n        {\n            byte[] newArray = new byte[expectedArraySize];\n            System.arraycopy( complexData, 0, newArray, 0, expectedArraySize );\n            complexData = newArray;\n        }\n        LittleEndian.putShort( complexData, 2, (short) numberOfElements );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [2, 8], [1, 9], [1, 10], [8, 11], [10, 12], [10, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 2], [9, 1], [10, 1], [11, 8], [12, 10], [13, 10], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getSizeOfElements", "code": "    public short getSizeOfElements()\n    {\n        return LittleEndian.getShort( complexData, 4 );", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSizeOfElements", "code": "    public void setSizeOfElements( int sizeOfElements )\n    {\n        LittleEndian.putShort( complexData, 4, (short) sizeOfElements );\n\n        int expectedArraySize = getNumberOfElementsInArray() * getActualSizeOfElements(getSizeOfElements()) + FIXED_SIZE;\n        if ( expectedArraySize != complexData.length )\n        {\n            byte[] newArray = new byte[expectedArraySize];\n            System.arraycopy( complexData, 0, newArray, 0, 6 );\n            complexData = newArray;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [2, 7], [5, 8], [1, 9], [1, 10], [7, 11], [10, 12], [10, 13], [10, 14], [11, 15], [11, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 2], [8, 5], [9, 1], [10, 1], [11, 7], [12, 10], [13, 10], [14, 10], [15, 11], [16, 11], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getElement", "code": "    public byte[] getElement( int index )\n    {\n        int actualSize = getActualSizeOfElements(getSizeOfElements());\n        byte[] result = new byte[actualSize];\n        System.arraycopy(complexData, FIXED_SIZE + index * actualSize, result, 0, result.length );\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [5, 7], [3, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 5], [8, 3], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setElement", "code": "    public void setElement( int index, byte[] element )\n    {\n        int actualSize = getActualSizeOfElements(getSizeOfElements());\n        System.arraycopy( element, 0, complexData, FIXED_SIZE + index * actualSize, actualSize);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [7, 1], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        String nl = System.getProperty(\"line.separator\");\n\n        StringBuffer results = new StringBuffer();\n        results.append(\"    {EscherArrayProperty:\" + nl);\n        results.append(\"     Num Elements: \" + getNumberOfElementsInArray() + nl);\n        results.append(\"     Num Elements In Memory: \" + getNumberOfElementsInMemory() + nl);\n        results.append(\"     Size of elements: \" + getSizeOfElements() + nl);\n        for (int i = 0; i < getNumberOfElementsInArray(); i++)\n        {\n            results.append(\"     Element \" + i + \": \" + HexDump.toHex(getElement(i)) + nl);\n        }\n        results.append(\"}\" + nl);\n\n        return \"propNum: \" + getPropertyNumber()\n                + \", propName: \" + EscherProperties.getPropertyName( getPropertyNumber() )\n                + \", complex: \" + isComplex()\n                + \", blipId: \" + isBlipId()\n                + \", data: \" + nl + results.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [0, 9], [0, 10], [0, 11], [5, 12], [5, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [11, 19], [3, 20], [4, 21], [13, 22], [14, 23], [2, 24], [2, 25], [16, 26], [17, 27], [18, 28], [19, 29], [21, 30], [22, 31], [22, 32], [24, 33], [26, 34], [26, 35], [27, 36], [27, 37], [28, 38], [28, 39], [32, 40], [32, 41], [33, 42], [41, 43], [41, 44], [42, 45], [42, 46], [44, 47], [44, 48], [45, 49], [46, 50], [46, 51], [48, 52], [48, 53], [51, 54], [53, 55], [53, 56], [55, 57], [56, 58], [56, 59], [59, 60], [59, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 0], [10, 0], [11, 0], [12, 5], [13, 5], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 11], [20, 3], [21, 4], [22, 13], [23, 14], [24, 2], [25, 2], [26, 16], [27, 17], [28, 18], [29, 19], [30, 21], [31, 22], [32, 22], [33, 24], [34, 26], [35, 26], [36, 27], [37, 27], [38, 28], [39, 28], [40, 32], [41, 32], [42, 33], [43, 41], [44, 41], [45, 42], [46, 42], [47, 44], [48, 44], [49, 45], [50, 46], [51, 46], [52, 48], [53, 48], [54, 51], [55, 53], [56, 53], [57, 55], [58, 56], [59, 56], [60, 59], [61, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "setArrayData", "code": "    public int setArrayData( byte[] data, int offset )\n    {\n        if (emptyComplexPart){\n            complexData = new byte[0];\n        } else {\n            short numElements = LittleEndian.getShort(data, offset);\n            short numReserved = LittleEndian.getShort(data, offset + 2);\n            short sizeOfElements = LittleEndian.getShort(data, offset + 4);\n\n            int arraySize = getActualSizeOfElements(sizeOfElements) * numElements;\n            if (arraySize == complexData.length) {\n                complexData = new byte[arraySize + 6];\n                sizeIncludesHeaderSize = false;\n            }\n            System.arraycopy(data, offset, complexData, 0, complexData.length );\n        }\n        return complexData.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [5, 11], [2, 12], [10, 13], [6, 14], [7, 15], [8, 16], [9, 17], [5, 18], [5, 19], [14, 20], [15, 21], [16, 22], [12, 23], [18, 24], [21, 25], [22, 26], [19, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 5], [12, 2], [13, 10], [14, 6], [15, 7], [16, 8], [17, 9], [18, 5], [19, 5], [20, 14], [21, 15], [22, 16], [23, 12], [24, 18], [25, 21], [26, 22], [27, 19], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "serializeSimplePart", "code": "    public int serializeSimplePart( byte[] data, int pos )\n    {\n        LittleEndian.putShort(data, pos, getId());\n        int recordSize = complexData.length;\n        if(!sizeIncludesHeaderSize) {\n        \trecordSize -= 6;\n        }\n        LittleEndian.putInt(data, pos + 2, recordSize);\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [7, 9], [8, 10], [9, 11], [2, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 7], [10, 8], [11, 9], [12, 2], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getActualSizeOfElements", "code": "    public static int getActualSizeOfElements(short sizeOfElements)\n    {\n        if (sizeOfElements < 0)\n            return (short) ( ( -sizeOfElements ) >> 2 );\n        else\n            return sizeOfElements;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [5, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 5], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "EscherArrayProperty", "code": "    public EscherArrayProperty( short id, byte[] complexData )\n    {\n        super( id, checkComplexData(complexData) );\n        emptyComplexPart = complexData.length == 0;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "EscherArrayProperty", "code": "    public EscherArrayProperty( short propertyNumber, boolean isBlipId, byte[] complexData )\n    {\n        super( propertyNumber, isBlipId, checkComplexData(complexData) );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.5-7260", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/operations/Variable.java", "language": "java", "name": "org.apache.xpath.operations.Variable", "code": "public class Variable extends Expression implements PathComponent\n{\n  /** Tell if fixupVariables was called.\n   *  @serial   */\n  private boolean m_fixUpWasCalled = false;\n\n  /** The qualified name of the variable.\n   *  @serial   */\n  protected QName m_qname;\n  \n  /**\n   * The index of the variable, which is either an absolute index to a \n   * global, or, if higher than the globals area, must be adjusted by adding \n   * the offset to the current stack frame.\n   */\n  protected int m_index;\n  \n  /**\n   * Set the index for the variable into the stack.  For advanced use only. You \n   * must know what you are doing to use this.\n   * \n   * @param index a global or local index.\n   */\n  public void setIndex(int index)\n  {\n  \tm_index = index;\n  }\n  \n  /**\n   * Set the index for the variable into the stack.  For advanced use only.\n   * \n   * @return index a global or local index.\n   */\n  public int getIndex()\n  {\n  \treturn m_index;\n  }\n  \n  /**\n   * Set whether or not this is a global reference.  For advanced use only.\n   * \n   * @param isGlobal true if this should be a global variable reference.\n   */\n  public void setIsGlobal(boolean isGlobal)\n  {\n  \tm_isGlobal = isGlobal;\n  }\n  \n  /**\n   * Set the index for the variable into the stack.  For advanced use only.\n   * \n   * @return true if this should be a global variable reference.\n   */\n  public boolean getGlobal()\n  {\n  \treturn m_isGlobal;\n  }\n\n  \n  \n\n  \n  protected boolean m_isGlobal = false;\n  \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_fixUpWasCalled = true;\n    int sz = vars.size();\n\n    for (int i = vars.size()-1; i >= 0; i--) \n    {\n      QName qn = (QName)vars.elementAt(i);\n      if(qn.equals(m_qname))\n      {\n        \n        if(i < globalsSize)\n        {\n          m_isGlobal = true;\n          m_index = i;\n        }\n        else\n        {\n          m_index = i-globalsSize;\n        }\n          \n        return;\n      }\n    }\n    \n    java.lang.String msg = XSLMessages.createXPATHMessage(XPATHErrorResources.ER_COULD_NOT_FIND_VAR, \n                                             new Object[]{m_qname.toString()});\n                                             \n    TransformerException te = new TransformerException(msg, this);\n                                             \n    throw new org.apache.xml.utils.WrappedRuntimeException(te);\n    \n  }\n\n\n  /**\n   * Set the qualified name of the variable.\n   *\n   * @param qname Must be a non-null reference to a qualified name.\n   */\n  public void setQName(QName qname)\n  {\n    m_qname = qname;\n  }\n  \n  /**\n   * Get the qualified name of the variable.\n   *\n   * @return A non-null reference to a qualified name.\n   */\n  public QName getQName()\n  {\n    return m_qname;\n  }\n  \n  /**\n   * Execute an expression in the XPath runtime context, and return the\n   * result of the expression.\n   *\n   *\n   * @param xctxt The XPath runtime context.\n   *\n   * @return The result of the expression in the form of a <code>XObject</code>.\n   *\n   * @throws javax.xml.transform.TransformerException if a runtime exception\n   *         occurs.\n   */\n  public XObject execute(XPathContext xctxt)\n    throws javax.xml.transform.TransformerException\n  {\n  \treturn execute(xctxt, false);\n  }\n\n\n  /**\n   * Dereference the variable, and return the reference value.  Note that lazy \n   * evaluation will occur.  If a variable within scope is not found, a warning \n   * will be sent to the error listener, and an empty nodeset will be returned.\n   *\n   *\n   * @param xctxt The runtime execution context.\n   *\n   * @return The evaluated variable, or an empty nodeset if not found.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt, boolean destructiveOK) throws javax.xml.transform.TransformerException\n  {\n  \torg.apache.xml.utils.PrefixResolver xprefixResolver = xctxt.getNamespaceContext();\n\n    if(m_fixUpWasCalled)\n    {    \n      XObject result;\n      if(m_isGlobal)\n        result = xctxt.getVarStack().getGlobalVariable(xctxt, m_index, destructiveOK);\n      else\n        result = xctxt.getVarStack().getLocalVariable(xctxt, m_index, destructiveOK);\n  \n      if (null == result)\n      {\n        warn(xctxt, XPATHErrorResources.WG_ILLEGAL_VARIABLE_REFERENCE);\n        \n        result = new XNodeSet(xctxt.getDTMManager());\n      }\n  \n      return result;\n    }\n    else\n    {\n      synchronized(this)\n      {\n      \torg.apache.xalan.templates.ElemVariable vvar= getElemVariable();\n      \tif(null != vvar)\n      \t{\n          m_index = vvar.getIndex();\n          m_isGlobal = vvar.getIsTopLevel();\n          m_fixUpWasCalled = true;\n          return execute(xctxt);\n      \t}\n      }\n    }\n  }\n  \n  /**\n   * Get the XSLT ElemVariable that this sub-expression references.  In order for \n   * this to work, the SourceLocator must be the owning ElemTemplateElement.\n   * @return The dereference to the ElemVariable, or null if not found.\n   */\n  public org.apache.xalan.templates.ElemVariable getElemVariable()\n  {\n  \t\n    \n    org.apache.xpath.ExpressionNode owner = getExpressionOwner();\n\n    if (null != owner && owner instanceof org.apache.xalan.templates.ElemTemplateElement)\n    {\n\n      org.apache.xalan.templates.ElemVariable vvar;\n\n      org.apache.xalan.templates.ElemTemplateElement prev = \n        (org.apache.xalan.templates.ElemTemplateElement) owner;\n\n      if (!(prev instanceof org.apache.xalan.templates.Stylesheet))\n      {            \n        while ( !(prev.getParentNode() instanceof org.apache.xalan.templates.Stylesheet) )\n        {\n          org.apache.xalan.templates.ElemTemplateElement savedprev = prev;\n\n          while (null != (prev = prev.getPreviousSiblingElem()))\n          {\n            if(prev instanceof org.apache.xalan.templates.ElemVariable)\n            {\n              vvar = (org.apache.xalan.templates.ElemVariable) prev;\n            \n              if (vvar.getName().equals(m_qname))\n              {\n                return vvar;\n              }\n            }\n          }\n          prev = savedprev.getParentElem();\n        }\n      }\n\n      vvar = prev.getStylesheetRoot().getVariableOrParamComposed(m_qname);\n      if (null != vvar)\n      {\n        return vvar;\n      }\n\n    }\n    return null;\n\n  }\n  \n  /**\n   * Tell if this expression returns a stable number that will not change during \n   * iterations within the expression.  This is used to determine if a proximity \n   * position predicate can indicate that no more searching has to occur.\n   * \n   *\n   * @return true if the expression represents a stable number.\n   */\n  public boolean isStableNumber()\n  {\n    return true;\n  }\n  \n  /** \n   * Get the analysis bits for this walker, as defined in the WalkerFactory.\n   * @return One of WalkerFactory#BIT_DESCENDANT, etc.\n   */\n  public int getAnalysisBits()\n  {\n  \torg.apache.xalan.templates.ElemVariable vvar = getElemVariable();\n  \tif(null != vvar)\n  \t{\n  \t\tXPath xpath = vvar.getSelect();\n  \t\tif(null != xpath)\n  \t\t{\n\t  \t\tExpression expr = xpath.getExpression();\n\t  \t\tif(null != expr && expr instanceof PathComponent)\n\t  \t\t{\n\t  \t\t\treturn ((PathComponent)expr).getAnalysisBits();\n\t  \t\t}\n  \t\t}\n  \t}\n    return WalkerFactory.BIT_FILTER;\n  }\n\n\n  /**\n   * @see XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitVariableRef(owner, this);\n  }\n\n  /**\n   * @see Expression#deepEquals(Expression)\n   */\n  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \tif(!m_qname.equals(((Variable)expr).m_qname))\n  \t\treturn false;\n  \t\t\n    if(getElemVariable() != ((Variable)expr).getElemVariable())\n    \treturn false;\n  \t\t\n  \treturn true;\n  }\n  \n  \n  /**\n   * Tell if this is a psuedo variable reference, declared by Xalan instead \n   * of by the user.\n   */\n  public boolean isPsuedoVarRef()\n  {\n  \tjava.lang.String ns = m_qname.getNamespaceURI();\n  \tif((null != ns) && ns.equals(PSUEDOVARNAMESPACE))\n  \t{\n  \t\tif(m_qname.getLocalName().startsWith(\"#\"))\n  \t\t\treturn true;\n  \t}\n  \treturn false;", "functions": [{"function_name": "setIndex", "code": "  public void setIndex(int index)\n  {\n  \tm_index = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIndex", "code": "  public int getIndex()\n  {\n  \treturn m_index;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIsGlobal", "code": "  public void setIsGlobal(boolean isGlobal)\n  {\n  \tm_isGlobal = isGlobal;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getGlobal", "code": "  public boolean getGlobal()\n  {\n  \treturn m_isGlobal;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_fixUpWasCalled = true;\n    int sz = vars.size();\n\n    for (int i = vars.size()-1; i >= 0; i--) \n    {\n      QName qn = (QName)vars.elementAt(i);\n      if(qn.equals(m_qname))\n      {\n        \n        if(i < globalsSize)\n        {\n          m_isGlobal = true;\n          m_index = i;\n        }\n        else\n        {\n          m_index = i-globalsSize;\n        }\n          \n        return;\n      }\n    }\n    \n    java.lang.String msg = XSLMessages.createXPATHMessage(XPATHErrorResources.ER_COULD_NOT_FIND_VAR, \n                                             new Object[]{m_qname.toString()});\n                                             \n    TransformerException te = new TransformerException(msg, this);\n                                             \n    throw new org.apache.xml.utils.WrappedRuntimeException(te);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [4, 9], [0, 10], [2, 11], [3, 12], [4, 13], [4, 14], [9, 15], [5, 16], [10, 17], [13, 18], [4, 19], [13, 20], [13, 21], [19, 22], [19, 23], [12, 24], [21, 25], [14, 26], [21, 27], [21, 28], [21, 29], [27, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 4], [10, 0], [11, 2], [12, 3], [13, 4], [14, 4], [15, 9], [16, 5], [17, 10], [18, 13], [19, 4], [20, 13], [21, 13], [22, 19], [23, 19], [24, 12], [25, 21], [26, 14], [27, 21], [28, 21], [29, 21], [30, 27], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "setQName", "code": "  public void setQName(QName qname)\n  {\n    m_qname = qname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getQName", "code": "  public QName getQName()\n  {\n    return m_qname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt)\n    throws javax.xml.transform.TransformerException\n  {\n  \treturn execute(xctxt, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt, boolean destructiveOK) throws javax.xml.transform.TransformerException\n  {\n  \torg.apache.xml.utils.PrefixResolver xprefixResolver = xctxt.getNamespaceContext();\n\n    if(m_fixUpWasCalled)\n    {    \n      XObject result;\n      if(m_isGlobal)\n        result = xctxt.getVarStack().getGlobalVariable(xctxt, m_index, destructiveOK);\n      else\n        result = xctxt.getVarStack().getLocalVariable(xctxt, m_index, destructiveOK);\n  \n      if (null == result)\n      {\n        warn(xctxt, XPATHErrorResources.WG_ILLEGAL_VARIABLE_REFERENCE);\n        \n        result = new XNodeSet(xctxt.getDTMManager());\n      }\n  \n      return result;\n    }\n    else\n    {\n      synchronized(this)\n      {\n      \torg.apache.xalan.templates.ElemVariable vvar= getElemVariable();\n      \tif(null != vvar)\n      \t{\n          m_index = vvar.getIndex();\n          m_isGlobal = vvar.getIsTopLevel();\n          m_fixUpWasCalled = true;\n          return execute(xctxt);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "IF", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [1, 10], [1, 11], [6, 12], [10, 13], [12, 14], [7, 15], [7, 16], [10, 17], [13, 18], [11, 19], [6, 20], [6, 21], [15, 22], [16, 23], [17, 24], [10, 25], [10, 26], [10, 27], [20, 28], [22, 29], [23, 30], [25, 31], [26, 32], [27, 33], [28, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 1], [11, 1], [12, 6], [13, 10], [14, 12], [15, 7], [16, 7], [17, 10], [18, 13], [19, 11], [20, 6], [21, 6], [22, 15], [23, 16], [24, 17], [25, 10], [26, 10], [27, 10], [28, 20], [29, 22], [30, 23], [31, 25], [32, 26], [33, 27], [34, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getElemVariable", "code": "  public org.apache.xalan.templates.ElemVariable getElemVariable()\n  {\n  \t\n    \n    org.apache.xpath.ExpressionNode owner = getExpressionOwner();\n\n    if (null != owner && owner instanceof org.apache.xalan.templates.ElemTemplateElement)\n    {\n\n      org.apache.xalan.templates.ElemVariable vvar;\n\n      org.apache.xalan.templates.ElemTemplateElement prev = \n        (org.apache.xalan.templates.ElemTemplateElement) owner;\n\n      if (!(prev instanceof org.apache.xalan.templates.Stylesheet))\n      {            \n        while ( !(prev.getParentNode() instanceof org.apache.xalan.templates.Stylesheet) )\n        {\n          org.apache.xalan.templates.ElemTemplateElement savedprev = prev;\n\n          while (null != (prev = prev.getPreviousSiblingElem()))\n          {\n            if(prev instanceof org.apache.xalan.templates.ElemVariable)\n            {\n              vvar = (org.apache.xalan.templates.ElemVariable) prev;\n            \n              if (vvar.getName().equals(m_qname))\n              {\n                return vvar;\n              }\n            }\n          }\n          prev = savedprev.getParentElem();\n        }\n      }\n\n      vvar = prev.getStylesheetRoot().getVariableOrParamComposed(m_qname);\n      if (null != vvar)\n      {\n        return vvar;\n      }\n\n    }\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LOOP", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "IF", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "CALL", "ASSIGN", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [5, 10], [5, 11], [3, 12], [6, 13], [2, 14], [7, 15], [11, 16], [6, 17], [13, 18], [14, 19], [7, 20], [19, 21], [20, 22], [20, 23], [20, 24], [22, 25], [20, 26], [23, 27], [26, 28], [23, 29], [27, 30], [27, 31], [29, 32], [30, 33], [29, 34], [34, 35], [29, 36], [34, 37], [35, 38], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 5], [11, 5], [12, 3], [13, 6], [14, 2], [15, 7], [16, 11], [17, 6], [18, 13], [19, 14], [20, 7], [21, 19], [22, 20], [23, 20], [24, 20], [25, 22], [26, 20], [27, 23], [28, 26], [29, 23], [30, 27], [31, 27], [32, 29], [33, 30], [34, 29], [35, 34], [36, 29], [37, 34], [38, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "isStableNumber", "code": "  public boolean isStableNumber()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAnalysisBits", "code": "  public int getAnalysisBits()\n  {\n  \torg.apache.xalan.templates.ElemVariable vvar = getElemVariable();\n  \tif(null != vvar)\n  \t{\n  \t\tXPath xpath = vvar.getSelect();\n  \t\tif(null != xpath)\n  \t\t{\n\t  \t\tExpression expr = xpath.getExpression();\n\t  \t\tif(null != expr && expr instanceof PathComponent)\n\t  \t\t{\n\t  \t\t\treturn ((PathComponent)expr).getAnalysisBits();\n\t  \t\t}\n  \t\t}\n  \t}\n    return WalkerFactory.BIT_FILTER;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [3, 8], [5, 9], [5, 10], [5, 11], [9, 12], [6, 13], [10, 14], [10, 15], [14, 16], [14, 17], [11, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 3], [9, 5], [10, 5], [11, 5], [12, 9], [13, 6], [14, 10], [15, 10], [16, 14], [17, 14], [18, 11], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitVariableRef(owner, this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "deepEquals", "code": "  public boolean deepEquals(Expression expr)\n  {\n  \tif(!isSameClass(expr))\n  \t\treturn false;\n  \t\t\n  \tif(!m_qname.equals(((Variable)expr).m_qname))\n  \t\treturn false;\n  \t\t\n    if(getElemVariable() != ((Variable)expr).getElemVariable())\n    \treturn false;\n  \t\t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [7, 13], [8, 14], [9, 15], [11, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 7], [14, 8], [15, 9], [16, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "isPsuedoVarRef", "code": "  public boolean isPsuedoVarRef()\n  {\n  \tjava.lang.String ns = m_qname.getNamespaceURI();\n  \tif((null != ns) && ns.equals(PSUEDOVARNAMESPACE))\n  \t{\n  \t\tif(m_qname.getLocalName().startsWith(\"#\"))\n  \t\t\treturn true;\n  \t}\n  \treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [6, 10], [6, 11], [8, 12], [10, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 6], [11, 6], [12, 8], [13, 10], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}], "label": 1}
{"sample_id": "poi-2.0-5527", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/LinkedDataFormulaField.java", "language": "java", "name": "org.apache.poi.hssf.record.LinkedDataFormulaField", "code": "public class LinkedDataFormulaField\n        implements CustomField\n{\n    Stack formulaTokens = new Stack();\n\n    public int getSize()\n    {\n        int size = 0;\n        for ( Iterator iterator = formulaTokens.iterator(); iterator.hasNext(); )\n        {\n            Ptg token = (Ptg) iterator.next();\n            size += token.getSize();\n        }\n        return size + 2;\n    }\n\n    public int fillField( byte[] data, short size, int offset )\n    {\n        short tokenSize = LittleEndian.getShort(data, offset);\n        formulaTokens = getParsedExpressionTokens(data, size, offset + 2);\n\n        return tokenSize + 2;\n    }\n\n    public void toString( StringBuffer buffer )\n    {\n        for ( int k = 0; k < formulaTokens.size(); k++ )\n        {\n            buffer.append( \"Formula \" )\n                    .append( k )\n                    .append( \"=\" )\n                    .append( formulaTokens.get( k ).toString() )\n                    .append( \"\\n\" )\n                    .append( ( (Ptg) formulaTokens.get( k ) ).toDebugString() )\n                    .append( \"\\n\" );\n        }\n    }\n\n    public String toString()\n    {\n        StringBuffer b = new StringBuffer();\n        toString( b );\n        return b.toString();\n    }\n\n    public int serializeField( int offset, byte[] data )\n    {\n        int size = getSize();\n        LittleEndian.putShort(data, offset, (short)(size - 2));\n        int pos = offset + 2;\n        for ( Iterator iterator = formulaTokens.iterator(); iterator.hasNext(); )\n        {\n            Ptg ptg = (Ptg) iterator.next();\n            ptg.writeBytes(data, pos);\n            pos += ptg.getSize();\n        }\n        return size;\n    }\n\n    public Object clone()\n    {\n        try\n        {\n            return super.clone();\n        }\n        catch ( CloneNotSupportedException e )\n        {\n            return null;\n        }\n    }\n\n    private Stack getParsedExpressionTokens( byte[] data, short size,\n                                             int offset )\n    {\n        Stack stack = new Stack();\n        int pos = offset;\n\n        while ( pos < size )\n        {\n            Ptg ptg = Ptg.createPtg( data, pos );\n            pos += ptg.getSize();\n            stack.push( ptg );\n        }\n        return stack;\n    }\n\n    public void setFormulaTokens( Stack formulaTokens )\n    {\n        this.formulaTokens = (Stack) formulaTokens.clone();\n    }\n\n    public Stack getFormulaTokens()\n    {\n        return (Stack)this.formulaTokens.clone();", "functions": [{"function_name": "getSize", "code": "    public int getSize()\n    {\n        int size = 0;\n        for ( Iterator iterator = formulaTokens.iterator(); iterator.hasNext(); )\n        {\n            Ptg token = (Ptg) iterator.next();\n            size += token.getSize();\n        }\n        return size + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [3, 8], [2, 9], [2, 10], [9, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 3], [9, 2], [10, 2], [11, 9], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "fillField", "code": "    public int fillField( byte[] data, short size, int offset )\n    {\n        short tokenSize = LittleEndian.getShort(data, offset);\n        formulaTokens = getParsedExpressionTokens(data, size, offset + 2);\n\n        return tokenSize + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [6, 8], [7, 9], [2, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 6], [9, 7], [10, 2], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "toString", "code": "    public void toString( StringBuffer buffer )\n    {\n        for ( int k = 0; k < formulaTokens.size(); k++ )\n        {\n            buffer.append( \"Formula \" )\n                    .append( k )\n                    .append( \"=\" )\n                    .append( formulaTokens.get( k ).toString() )\n                    .append( \"\\n\" )\n                    .append( ( (Ptg) formulaTokens.get( k ) ).toDebugString() )\n                    .append( \"\\n\" );", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [5, 8], [5, 9], [5, 10], [5, 11], [5, 12], [5, 13], [8, 14], [10, 15], [11, 16], [12, 17], [9, 18], [16, 19], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [8, 5], [9, 5], [10, 5], [11, 5], [12, 5], [13, 5], [14, 8], [15, 10], [16, 11], [17, 12], [18, 9], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer b = new StringBuffer();\n        toString( b );\n        return b.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "serializeField", "code": "    public int serializeField( int offset, byte[] data )\n    {\n        int size = getSize();\n        LittleEndian.putShort(data, offset, (short)(size - 2));\n        int pos = offset + 2;\n        for ( Iterator iterator = formulaTokens.iterator(); iterator.hasNext(); )\n        {\n            Ptg ptg = (Ptg) iterator.next();\n            ptg.writeBytes(data, pos);\n            pos += ptg.getSize();\n        }\n        return size;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [2, 9], [3, 10], [4, 11], [2, 12], [2, 13], [2, 14], [10, 15], [8, 16], [12, 17], [16, 18], [9, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 2], [10, 3], [11, 4], [12, 2], [13, 2], [14, 2], [15, 10], [16, 8], [17, 12], [18, 16], [19, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "clone", "code": "    public Object clone()\n    {\n        try\n        {\n            return super.clone();\n        }\n        catch ( CloneNotSupportedException e )\n        {\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getParsedExpressionTokens", "code": "    private Stack getParsedExpressionTokens( byte[] data, short size,\n                                             int offset )\n    {\n        Stack stack = new Stack();\n        int pos = offset;\n\n        while ( pos < size )\n        {\n            Ptg ptg = Ptg.createPtg( data, pos );\n            pos += ptg.getSize();\n            stack.push( ptg );\n        }\n        return stack;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [4, 10], [2, 11], [2, 12], [12, 13], [9, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 4], [11, 2], [12, 2], [13, 12], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setFormulaTokens", "code": "    public void setFormulaTokens( Stack formulaTokens )\n    {\n        this.formulaTokens = (Stack) formulaTokens.clone();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFormulaTokens", "code": "    public Stack getFormulaTokens()\n    {\n        return (Stack)this.formulaTokens.clone();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.4-118", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/ExecuteOn.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.ExecuteOn", "code": "public class ExecuteOn extends ExecTask {\n\n    protected Vector filesets = new Vector();\n    private boolean parallel = false;\n    protected String type = \"file\";\n    protected Commandline.Marker srcFilePos = null;\n    private boolean skipEmpty = false;\n    protected Commandline.Marker targetFilePos = null;\n    protected Mapper mapperElement = null;\n    protected FileNameMapper mapper = null;\n    protected File destDir = null;\n\n    /**\n     * Has &lt;srcfile&gt; been specified before &lt;targetfile&gt;\n     */\n    protected boolean srcIsFirst = true;\n\n    /**\n     * Adds a set of files (nested fileset attribute).\n     */\n    public void addFileset(FileSet set) {\n        filesets.addElement(set);\n    }\n\n    /**\n     * Shall the command work on all specified files in parallel?\n     */\n    public void setParallel(boolean parallel) {\n        this.parallel = parallel;\n    }\n\n    /**\n     * Shall the command work only on files, directories or both?\n     */\n    public void setType(FileDirBoth type) {\n        this.type = type.getValue();\n    }\n\n    /**\n     * Should empty filesets be ignored?\n     */\n    public void setSkipEmptyFilesets(boolean skip) {\n        skipEmpty = skip;\n    }\n\n    /**\n     * Set the destination directory.\n     */\n    public void setDest(File destDir) {\n        this.destDir = destDir;\n    }\n\n    /**\n     * Marker that indicates where the name of the source file should\n     * be put on the command line.\n     */\n    public Commandline.Marker createSrcfile() {\n        if (srcFilePos != null) {\n            throw new BuildException(taskType + \" doesn\\'t support multiple srcfile elements.\",\n                                     location);\n        }\n        srcFilePos = cmdl.createMarker();\n        return srcFilePos;\n    }\n\n    /**\n     * Marker that indicates where the name of the target file should\n     * be put on the command line.\n     */\n    public Commandline.Marker createTargetfile() {\n        if (targetFilePos != null) {\n            throw new BuildException(taskType + \" doesn\\'t support multiple targetfile elements.\",\n                                     location);\n        }\n        targetFilePos = cmdl.createMarker();\n        srcIsFirst = (srcFilePos != null);\n        return targetFilePos;\n    }\n\n    /**\n     * Defines the FileNameMapper to use (nested mapper element).\n     */\n    public Mapper createMapper() throws BuildException {\n        if (mapperElement != null) {\n            throw new BuildException(\"Cannot define more than one mapper\",\n                                     location);\n        }\n        mapperElement = new Mapper(project);\n        return mapperElement;\n    }\n\n    protected void checkConfiguration() {\n        if (\"execon\".equals(taskName)) {\n            log(\"!! execon is deprecated. Use apply instead. !!\");\n        }\n        \n        super.checkConfiguration();\n        if (filesets.size() == 0) {\n            throw new BuildException(\"no filesets specified\", location);\n        }\n\n        if (targetFilePos != null || mapperElement != null \n            || destDir != null) {\n\n            if (mapperElement == null) {\n                throw new BuildException(\"no mapper specified\", location);\n            }\n            if (mapperElement == null) {\n                throw new BuildException(\"no dest attribute specified\", \n                                         location);\n            }\n            mapper = mapperElement.getImplementation();\n        }\n    }\n\n    protected void runExec(Execute exe) throws BuildException {\n        try {\n\n            Vector fileNames = new Vector();\n            Vector baseDirs = new Vector();\n            for (int i=0; i<filesets.size(); i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                File base = fs.getDir(project);\n                DirectoryScanner ds = fs.getDirectoryScanner(project);\n\n                if (!\"dir\".equals(type)) {\n                    String[] s = getFiles(base, ds);\n                    for (int j=0; j<s.length; j++) {\n                        fileNames.addElement(s[j]);\n                        baseDirs.addElement(base);\n                    }\n                }\n\n                if (!\"file\".equals(type)) {\n                    String[] s = getDirs(base, ds);;\n                    for (int j=0; j<s.length; j++) {\n                        fileNames.addElement(s[j]);\n                        baseDirs.addElement(base);\n                    }\n                }\n\n                if (fileNames.size() == 0 && skipEmpty) {\n                    log(\"Skipping fileset for directory \"\n                        + base + \". It is empty.\", Project.MSG_INFO);\n                    continue;\n                }\n\n                if (!parallel) {\n                    String[] s = new String[fileNames.size()];\n                    fileNames.copyInto(s);\n                    for (int j=0; j<s.length; j++) {\n                        String[] command = getCommandline(s[j], base);\n                        log(\"Executing \" + Commandline.toString(command), \n                            Project.MSG_VERBOSE);\n                        exe.setCommandline(command);\n                        runExecute(exe);\n                    }\n                    fileNames.removeAllElements();\n                    baseDirs.removeAllElements();\n                }\n            }\n\n            if (parallel) {\n                String[] s = new String[fileNames.size()];\n                fileNames.copyInto(s);\n                File[] b = new File[baseDirs.size()];\n                baseDirs.copyInto(b);\n                String[] command = getCommandline(s, b);\n                log(\"Executing \" + Commandline.toString(command), \n                    Project.MSG_VERBOSE);\n                exe.setCommandline(command);\n                runExecute(exe);\n            }\n\n        } catch (IOException e) {\n            throw new BuildException(\"Execute failed: \" + e, e, location);\n        } finally {\n            logFlush();\n        }\n    }\n\n    /**\n     * Construct the command line for parallel execution.\n     *\n     * @param srcFiles The filenames to add to the commandline\n     * @param baseDir filenames are relative to this dir\n     */\n    protected String[] getCommandline(String[] srcFiles, File[] baseDirs) {\n        Vector targets = new Vector();\n        if (targetFilePos != null) {\n            Hashtable addedFiles = new Hashtable();\n            for (int i=0; i<srcFiles.length; i++) {\n                String[] subTargets = mapper.mapFileName(srcFiles[i]);\n                if (subTargets != null) {\n                    for (int j=0; j<subTargets.length; j++) {\n                        String name = (new File(destDir, subTargets[j])).getAbsolutePath();\n                        if (!addedFiles.contains(name)) {\n                            targets.addElement(name);\n                            addedFiles.put(name, name);\n                        }\n                    }\n                }\n            }\n        }\n        String[] targetFiles = new String[targets.size()];\n        targets.copyInto(targetFiles);\n        \n        String[] orig = cmdl.getCommandline();\n        String[] result = new String[orig.length+srcFiles.length+targetFiles.length];\n\n        int srcIndex = orig.length;\n        if (srcFilePos != null) {\n            srcIndex = srcFilePos.getPosition();\n        }\n\n        if (targetFilePos != null) {\n            int targetIndex = targetFilePos.getPosition();\n\n            if (srcIndex < targetIndex \n                || (srcIndex == targetIndex && srcIsFirst)) {\n\n                System.arraycopy(orig, 0, result, 0, srcIndex);\n                \n                System.arraycopy(orig, srcIndex, result, \n                                 srcIndex + srcFiles.length,\n                                 targetIndex - srcIndex);\n                \n                System.arraycopy(targetFiles, 0, result, \n                                 targetIndex + srcFiles.length, \n                                 targetFiles.length);\n                \n                System.arraycopy(orig, targetIndex, result, \n                                 targetIndex + srcFiles.length + targetFiles.length,\n                                 orig.length - targetIndex);\n            } else {\n                System.arraycopy(orig, 0, result, 0, targetIndex);\n                \n                System.arraycopy(targetFiles, 0, result, \n                                 targetIndex,\n                                 targetFiles.length);\n                \n                System.arraycopy(orig, targetIndex, result, \n                                 targetIndex + targetFiles.length,\n                                 srcIndex - targetIndex);\n                \n                System.arraycopy(orig, srcIndex, result, \n                                 srcIndex + srcFiles.length + targetFiles.length,\n                                 orig.length - srcIndex);\n                srcIndex += targetFiles.length;\n            }\n\n\n            System.arraycopy(orig, 0, result, 0, srcIndex);\n            System.arraycopy(orig, srcIndex, result, \n                             srcIndex + srcFiles.length,\n                             orig.length - srcIndex);\n\n        }\n\n        for (int i=0; i < srcFiles.length; i++) {\n            result[srcIndex+i] = \n                (new File(baseDirs[i], srcFiles[i])).getAbsolutePath();\n        }\n        return result;\n    }\n\n    /**\n     * Construct the command line for serial execution.\n     *\n     * @param srcFile The filename to add to the commandline\n     * @param baseDir filename is relative to this dir\n     */\n    protected String[] getCommandline(String srcFile, File baseDir) {\n        return getCommandline(new String[] {srcFile}, new File[] {baseDir});\n    }\n\n    /**\n     * Return the list of files from this DirectoryScanner that should\n     * be included on the command line.\n     */\n    protected String[] getFiles(File baseDir, DirectoryScanner ds) {\n        if (mapper != null) {\n            SourceFileScanner sfs = new SourceFileScanner(this);\n            return sfs.restrict(ds.getIncludedFiles(), baseDir, destDir, \n                                mapper);\n        } else {\n            return ds.getIncludedFiles();\n        }\n    }\n\n    /**\n     * Return the list of Directories from this DirectoryScanner that\n     * should be included on the command line.\n     */\n    protected String[] getDirs(File baseDir, DirectoryScanner ds) {\n        if (mapper != null) {\n            SourceFileScanner sfs = new SourceFileScanner(this);\n            return sfs.restrict(ds.getIncludedDirectories(), baseDir, destDir, \n                                mapper);\n        } else {\n            return ds.getIncludedDirectories();\n        }\n    }\n\n    /**\n     * Enumerated attribute with the values \"file\", \"dir\" and \"both\"\n     * for the type attribute.  \n     */\n    public static class FileDirBoth extends EnumeratedAttribute {\n        public String[] getValues() {\n            return new String[] {\"file\", \"dir\", \"both\"};", "functions": [{"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setParallel", "code": "    public void setParallel(boolean parallel) {\n        this.parallel = parallel;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setType", "code": "    public void setType(FileDirBoth type) {\n        this.type = type.getValue();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSkipEmptyFilesets", "code": "    public void setSkipEmptyFilesets(boolean skip) {\n        skipEmpty = skip;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDest", "code": "    public void setDest(File destDir) {\n        this.destDir = destDir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createSrcfile", "code": "    public Commandline.Marker createSrcfile() {\n        if (srcFilePos != null) {\n            throw new BuildException(taskType + \" doesn\\'t support multiple srcfile elements.\",\n                                     location);\n        }\n        srcFilePos = cmdl.createMarker();\n        return srcFilePos;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [4, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 4], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createTargetfile", "code": "    public Commandline.Marker createTargetfile() {\n        if (targetFilePos != null) {\n            throw new BuildException(taskType + \" doesn\\'t support multiple targetfile elements.\",\n                                     location);\n        }\n        targetFilePos = cmdl.createMarker();\n        srcIsFirst = (srcFilePos != null);\n        return targetFilePos;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [2, 8], [5, 9], [6, 10], [8, 11], [11, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 2], [9, 5], [10, 6], [11, 8], [12, 11], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createMapper", "code": "    public Mapper createMapper() throws BuildException {\n        if (mapperElement != null) {\n            throw new BuildException(\"Cannot define more than one mapper\",\n                                     location);\n        }\n        mapperElement = new Mapper(project);\n        return mapperElement;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [4, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 4], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "checkConfiguration", "code": "    protected void checkConfiguration() {\n        if (\"execon\".equals(taskName)) {\n            log(\"!! execon is deprecated. Use apply instead. !!\");\n        }\n        \n        super.checkConfiguration();\n        if (filesets.size() == 0) {\n            throw new BuildException(\"no filesets specified\", location);\n        }\n\n        if (targetFilePos != null || mapperElement != null \n            || destDir != null) {\n\n            if (mapperElement == null) {\n                throw new BuildException(\"no mapper specified\", location);\n            }\n            if (mapperElement == null) {\n                throw new BuildException(\"no dest attribute specified\", \n                                         location);\n            }\n            mapper = mapperElement.getImplementation();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [4, 9], [4, 10], [2, 11], [5, 12], [5, 13], [6, 14], [1, 15], [7, 16], [8, 17], [9, 18], [10, 19], [10, 20], [11, 21], [3, 22], [15, 23], [7, 24], [16, 25], [8, 26], [17, 27], [19, 28], [20, 29], [21, 30], [22, 31], [24, 32], [26, 33], [32, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 4], [10, 4], [11, 2], [12, 5], [13, 5], [14, 6], [15, 1], [16, 7], [17, 8], [18, 9], [19, 10], [20, 10], [21, 11], [22, 3], [23, 15], [24, 7], [25, 16], [26, 8], [27, 17], [28, 19], [29, 20], [30, 21], [31, 22], [32, 24], [33, 26], [34, 32], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "runExec", "code": "    protected void runExec(Execute exe) throws BuildException {\n        try {\n\n            Vector fileNames = new Vector();\n            Vector baseDirs = new Vector();\n            for (int i=0; i<filesets.size(); i++) {\n                FileSet fs = (FileSet) filesets.elementAt(i);\n                File base = fs.getDir(project);\n                DirectoryScanner ds = fs.getDirectoryScanner(project);\n\n                if (!\"dir\".equals(type)) {\n                    String[] s = getFiles(base, ds);\n                    for (int j=0; j<s.length; j++) {\n                        fileNames.addElement(s[j]);\n                        baseDirs.addElement(base);\n                    }\n                }\n\n                if (!\"file\".equals(type)) {\n                    String[] s = getDirs(base, ds);;\n                    for (int j=0; j<s.length; j++) {\n                        fileNames.addElement(s[j]);\n                        baseDirs.addElement(base);\n                    }\n                }\n\n                if (fileNames.size() == 0 && skipEmpty) {\n                    log(\"Skipping fileset for directory \"\n                        + base + \". It is empty.\", Project.MSG_INFO);\n                    continue;\n                }\n\n                if (!parallel) {\n                    String[] s = new String[fileNames.size()];\n                    fileNames.copyInto(s);\n                    for (int j=0; j<s.length; j++) {\n                        String[] command = getCommandline(s[j], base);\n                        log(\"Executing \" + Commandline.toString(command), \n                            Project.MSG_VERBOSE);\n                        exe.setCommandline(command);\n                        runExecute(exe);\n                    }\n                    fileNames.removeAllElements();\n                    baseDirs.removeAllElements();\n                }\n            }\n\n            if (parallel) {\n                String[] s = new String[fileNames.size()];\n                fileNames.copyInto(s);\n                File[] b = new File[baseDirs.size()];\n                baseDirs.copyInto(b);\n                String[] command = getCommandline(s, b);\n                log(\"Executing \" + Commandline.toString(command), \n                    Project.MSG_VERBOSE);\n                exe.setCommandline(command);\n                runExecute(exe);\n            }\n\n        } catch (IOException e) {\n            throw new BuildException(\"Execute failed: \" + e, e, location);\n        } finally {\n            logFlush();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "BREAK_CONTINUE", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [5, 10], [9, 11], [4, 12], [4, 13], [4, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [10, 22], [6, 23], [7, 24], [11, 25], [4, 26], [4, 27], [4, 28], [4, 29], [4, 30], [16, 31], [17, 32], [18, 33], [5, 34], [25, 35], [28, 36], [12, 37], [15, 38], [15, 39], [16, 40], [31, 41], [17, 42], [17, 43], [32, 44], [18, 45], [18, 46], [33, 47], [19, 48], [20, 49], [36, 50], [36, 51], [13, 52], [14, 53], [15, 54], [15, 55], [38, 56], [15, 57], [16, 58], [41, 59], [41, 60], [42, 61], [45, 62], [21, 63], [38, 64], [58, 65], [43, 66], [46, 67], [38, 68], [38, 69], [38, 70], [38, 71], [39, 72], [65, 73], [65, 74], [42, 75], [42, 76], [42, 77], [45, 78], [45, 79], [45, 80], [70, 81], [64, 82], [74, 83], [81, 84], [81, 85], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 5], [11, 9], [12, 4], [13, 4], [14, 4], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 5], [22, 10], [23, 6], [24, 7], [25, 11], [26, 4], [27, 4], [28, 4], [29, 4], [30, 4], [31, 16], [32, 17], [33, 18], [34, 5], [35, 25], [36, 28], [37, 12], [38, 15], [39, 15], [40, 16], [41, 31], [42, 17], [43, 17], [44, 32], [45, 18], [46, 18], [47, 33], [48, 19], [49, 20], [50, 36], [51, 36], [52, 13], [53, 14], [54, 15], [55, 15], [56, 38], [57, 15], [58, 16], [59, 41], [60, 41], [61, 42], [62, 45], [63, 21], [64, 38], [65, 58], [66, 43], [67, 46], [68, 38], [69, 38], [70, 38], [71, 38], [72, 39], [73, 65], [74, 65], [75, 42], [76, 42], [77, 42], [78, 45], [79, 45], [80, 45], [81, 70], [82, 64], [83, 74], [84, 81], [85, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "getCommandline", "code": "    protected String[] getCommandline(String[] srcFiles, File[] baseDirs) {\n        Vector targets = new Vector();\n        if (targetFilePos != null) {\n            Hashtable addedFiles = new Hashtable();\n            for (int i=0; i<srcFiles.length; i++) {\n                String[] subTargets = mapper.mapFileName(srcFiles[i]);\n                if (subTargets != null) {\n                    for (int j=0; j<subTargets.length; j++) {\n                        String name = (new File(destDir, subTargets[j])).getAbsolutePath();\n                        if (!addedFiles.contains(name)) {\n                            targets.addElement(name);\n                            addedFiles.put(name, name);\n                        }\n                    }\n                }\n            }\n        }\n        String[] targetFiles = new String[targets.size()];\n        targets.copyInto(targetFiles);\n        \n        String[] orig = cmdl.getCommandline();\n        String[] result = new String[orig.length+srcFiles.length+targetFiles.length];\n\n        int srcIndex = orig.length;\n        if (srcFilePos != null) {\n            srcIndex = srcFilePos.getPosition();\n        }\n\n        if (targetFilePos != null) {\n            int targetIndex = targetFilePos.getPosition();\n\n            if (srcIndex < targetIndex \n                || (srcIndex == targetIndex && srcIsFirst)) {\n\n                System.arraycopy(orig, 0, result, 0, srcIndex);\n                \n                System.arraycopy(orig, srcIndex, result, \n                                 srcIndex + srcFiles.length,\n                                 targetIndex - srcIndex);\n                \n                System.arraycopy(targetFiles, 0, result, \n                                 targetIndex + srcFiles.length, \n                                 targetFiles.length);\n                \n                System.arraycopy(orig, targetIndex, result, \n                                 targetIndex + srcFiles.length + targetFiles.length,\n                                 orig.length - targetIndex);\n            } else {\n                System.arraycopy(orig, 0, result, 0, targetIndex);\n                \n                System.arraycopy(targetFiles, 0, result, \n                                 targetIndex,\n                                 targetFiles.length);\n                \n                System.arraycopy(orig, targetIndex, result, \n                                 targetIndex + targetFiles.length,\n                                 srcIndex - targetIndex);\n                \n                System.arraycopy(orig, srcIndex, result, \n                                 srcIndex + srcFiles.length + targetFiles.length,\n                                 orig.length - srcIndex);\n                srcIndex += targetFiles.length;\n            }\n\n\n            System.arraycopy(orig, 0, result, 0, srcIndex);\n            System.arraycopy(orig, srcIndex, result, \n                             srcIndex + srcFiles.length,\n                             orig.length - srcIndex);\n\n        }\n\n        for (int i=0; i < srcFiles.length; i++) {\n            result[srcIndex+i] = \n                (new File(baseDirs[i], srcFiles[i])).getAbsolutePath();\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [3, 14], [4, 15], [0, 16], [9, 17], [3, 18], [3, 19], [14, 20], [15, 21], [7, 22], [9, 23], [9, 24], [17, 25], [10, 26], [2, 27], [2, 28], [3, 29], [3, 30], [18, 31], [4, 32], [6, 33], [8, 34], [23, 35], [27, 36], [29, 37], [29, 38], [30, 39], [30, 40], [31, 41], [31, 42], [19, 43], [32, 44], [33, 45], [23, 46], [23, 47], [24, 48], [36, 49], [18, 50], [18, 51], [18, 52], [18, 53], [18, 54], [18, 55], [18, 56], [18, 57], [18, 58], [41, 59], [46, 60], [23, 61], [27, 62], [51, 63], [51, 64], [52, 65], [52, 66], [53, 67], [54, 68], [54, 69], [55, 70], [55, 71], [56, 72], [56, 73], [57, 74], [57, 75], [58, 76], [58, 77], [46, 78], [60, 79], [47, 80], [64, 81], [71, 82], [78, 83], [78, 84], [78, 85], [84, 86], [78, 87], [85, 88], [84, 89], [84, 90], [88, 91], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 3], [15, 4], [16, 0], [17, 9], [18, 3], [19, 3], [20, 14], [21, 15], [22, 7], [23, 9], [24, 9], [25, 17], [26, 10], [27, 2], [28, 2], [29, 3], [30, 3], [31, 18], [32, 4], [33, 6], [34, 8], [35, 23], [36, 27], [37, 29], [38, 29], [39, 30], [40, 30], [41, 31], [42, 31], [43, 19], [44, 32], [45, 33], [46, 23], [47, 23], [48, 24], [49, 36], [50, 18], [51, 18], [52, 18], [53, 18], [54, 18], [55, 18], [56, 18], [57, 18], [58, 18], [59, 41], [60, 46], [61, 23], [62, 27], [63, 51], [64, 51], [65, 52], [66, 52], [67, 53], [68, 54], [69, 54], [70, 55], [71, 55], [72, 56], [73, 56], [74, 57], [75, 57], [76, 58], [77, 58], [78, 46], [79, 60], [80, 47], [81, 64], [82, 71], [83, 78], [84, 78], [85, 78], [86, 84], [87, 78], [88, 85], [89, 84], [90, 84], [91, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91]]}, {"function_name": "getCommandline", "code": "    protected String[] getCommandline(String srcFile, File baseDir) {\n        return getCommandline(new String[] {srcFile}, new File[] {baseDir});", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFiles", "code": "    protected String[] getFiles(File baseDir, DirectoryScanner ds) {\n        if (mapper != null) {\n            SourceFileScanner sfs = new SourceFileScanner(this);\n            return sfs.restrict(ds.getIncludedFiles(), baseDir, destDir, \n                                mapper);\n        } else {\n            return ds.getIncludedFiles();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [10, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getDirs", "code": "    protected String[] getDirs(File baseDir, DirectoryScanner ds) {\n        if (mapper != null) {\n            SourceFileScanner sfs = new SourceFileScanner(this);\n            return sfs.restrict(ds.getIncludedDirectories(), baseDir, destDir, \n                                mapper);\n        } else {\n            return ds.getIncludedDirectories();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [10, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 1}
{"sample_id": "xalan-2.7-7990", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/Whitespace.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Whitespace", "code": "final class Whitespace extends TopLevelElement {\n    public static final int USE_PREDICATE  = 0;\n    public static final int STRIP_SPACE    = 1;\n    public static final int PRESERVE_SPACE = 2;\n\n    public static final int RULE_NONE      = 0; \n\n    private String _elementList;\n    private int    _action;\n    private int    _importPrecedence;\n\n    /**\n     * Auxillary class for encapsulating a single strip/preserve rule\n     */\n    private final static class WhitespaceRule {\n\tprivate final int _action;\n\tprivate int    _type;\n\tprivate int    _priority;\n\t\n\t/**\n\t * Strip/preserve rule constructor\n\t */\n\tpublic WhitespaceRule(int action, String element, int precedence) {\n\t    _action = action;\n\n\t    final int colon = element.indexOf(':');\n\t    if (colon >= 0) {\n\t\t_namespace = element.substring(0,colon);\n\t\t_element = element.substring(colon+1,element.length());\n\t    }\n\t    else {\n\t\t_namespace = Constants.EMPTYSTRING;\n\t\t_element = element;\n\t    }\n\n\t    _priority = precedence << 2;\n\n\t    if (_element.equals(\"*\")) {\n\t\tif (_namespace == Constants.EMPTYSTRING) {\n\t\t}\n\t\telse {\n\t\t}\n\t    }\n\t    else {\n\t    }\n\t}\n\n\t/**\n\t * For sorting rules depending on priority\n\t */\n\tpublic int compareTo(WhitespaceRule other) {\n\t    return _priority < other._priority\n\t\t? -1\n\t\t: _priority > other._priority ? 1 : 0;\n\t}\n\n\tpublic int getAction() { return _action; }\n\tpublic int getStrength() { return _type; }\n\tpublic int getPriority() { return _priority; }\n\tpublic String getElement() { return _element; }\n\tpublic String getNamespace() { return _namespace; }\n    }\n\n    /**\n     * Parse the attributes of the xsl:strip/preserve-space element.\n     * The element should have not contents (ignored if any).\n     */\n    public void parseContents(Parser parser) {\n\t_action = _qname.getLocalPart().endsWith(\"strip-space\") \n\t    ? STRIP_SPACE : PRESERVE_SPACE;\n\n\t_importPrecedence = parser.getCurrentImportPrecedence();\n\n\t_elementList = getAttribute(\"elements\");\n\tif (_elementList == null || _elementList.length() == 0) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"elements\");\n\t    return;\n\t}\n\n\tfinal SymbolTable stable = parser.getSymbolTable();\n\tStringTokenizer list = new StringTokenizer(_elementList);\n\tStringBuffer elements = new StringBuffer(Constants.EMPTYSTRING);\n\n\twhile (list.hasMoreElements()) {\n\t    String token = list.nextToken();\n\t    String prefix;\n\t    String namespace;\n\t    int col;\n\n\t    if ((col = token.indexOf(':')) != -1) {\n\t\tprefix  = token.substring(0,col);\n\t    }\n\t    else {\n\t\tprefix = Constants.EMPTYSTRING;\n\t    }\n\n\t    namespace = lookupNamespace(prefix);\n\t    if (namespace != null)\n\t\telements.append(namespace+\":\"+\n\t\t\t\ttoken.substring(col+1,token.length()));\n\t    else\n\t\telements.append(token);\n\n\t    if (list.hasMoreElements())\n\t\telements.append(\" \");\n\t}\n\t_elementList = elements.toString();\n    }\n\n\n    /**\n     * De-tokenize the elements listed in the 'elements' attribute and\n     * instanciate a set of strip/preserve rules.\n     */\n    public Vector getRules() {\n\tfinal Vector rules = new Vector();\n\tfinal StringTokenizer list = new StringTokenizer(_elementList);\n\twhile (list.hasMoreElements()) {\n\t    rules.add(new WhitespaceRule(_action,\n\t\t\t\t\t list.nextToken(),\n\t\t\t\t\t _importPrecedence));\n\t}\n\treturn rules;\n    }\n    \n    \n    /**\n     * Scans through the rules vector and looks for a rule of higher\n     * priority that contradicts the current rule.\n     */\n    private static WhitespaceRule findContradictingRule(Vector rules,\n\t\t\t\t\t\t\tWhitespaceRule rule) {\n\tfor (int i = 0; i < rules.size(); i++) {\n\t    WhitespaceRule currentRule = (WhitespaceRule)rules.elementAt(i);\n\t    if (currentRule == rule) {\n\t\treturn null;\n\t    }\n\t    \n\t    /*\n\t     * See if there is a contradicting rule with higher priority.\n\t     * If the rules has the same action then this rule is redundant,\n\t     * if they have different action then this rule will never win.\n\t     */\n\t    switch (currentRule.getStrength()) {\n\t    case RULE_ALL:\n\t\treturn currentRule;\n\t\t\n\t    case RULE_ELEMENT:\n\t\tif (!rule.getElement().equals(currentRule.getElement())) {\n\t\t    break;\n\t\t}\n\t    case RULE_NAMESPACE:\n\t\tif (rule.getNamespace().equals(currentRule.getNamespace())) {\n\t\t    return currentRule;\n\t\t}\n\t\tbreak;\n\t    }\n\t}\n\treturn null;\n    }\n\n\n    /**\n     * Orders a set or rules by priority, removes redundant rules and rules\n     * that are shadowed by stronger, contradicting rules.\n     */\n    private static int prioritizeRules(Vector rules) {\n\tWhitespaceRule currentRule;\n\tint defaultAction = PRESERVE_SPACE;\n\n\tquicksort(rules, 0, rules.size()-1);\n\n\tboolean strip = false;\n\tfor (int i = 0; i < rules.size(); i++) {\n\t    currentRule = (WhitespaceRule)rules.elementAt(i);\n\t    if (currentRule.getAction() == STRIP_SPACE) {\n\t\tstrip = true;\n\t    }\n\t}\n\tif (!strip) {\n\t    rules.removeAllElements();\n\t    return PRESERVE_SPACE;\n\t}\n\n\tfor (int idx = 0; idx < rules.size(); ) {\n\t    currentRule = (WhitespaceRule)rules.elementAt(idx);\n\t\n\t    if (findContradictingRule(rules,currentRule) != null) {\n\t\trules.remove(idx);\n\t    }\n\t    else {\n\t\tif (currentRule.getStrength() == RULE_ALL) {\n\t\t    defaultAction = currentRule.getAction();\n\t\t    for (int i = idx; i < rules.size(); i++) {\n\t\t\trules.removeElementAt(i);\n\t\t    }\n\t\t}\n\t\tidx++;\n\t    }\n\t}\n\n\tif (rules.size() == 0) {\n\t    return defaultAction;\n\t}\n\n\tdo {\n\t    currentRule = (WhitespaceRule)rules.lastElement();\n\t    if (currentRule.getAction() == defaultAction) {\n\t\trules.removeElementAt(rules.size() - 1);\n\t    }\n\t    else {\n\t\tbreak;\n\t    }\n\t} while (rules.size() > 0);\n\t\n\treturn defaultAction;\n    }\n\n    public static void compileStripSpace(BranchHandle strip[], \n\t\t\t\t\t int sCount,\n\t\t\t\t\t InstructionList il) {\n\tfinal InstructionHandle target = il.append(ICONST_1);\n\til.append(IRETURN);\n\tfor (int i = 0; i < sCount; i++) {\n\t    strip[i].setTarget(target);\n\t}\n    }\n\n    public static void compilePreserveSpace(BranchHandle preserve[], \n\t\t\t\t\t    int pCount,\n\t\t\t\t\t    InstructionList il) {\n\tfinal InstructionHandle target = il.append(ICONST_0);\n\til.append(IRETURN);\n\tfor (int i = 0; i < pCount; i++) {\n\t    preserve[i].setTarget(target);\n\t}\n    }\n\n    /*\n    private static void compileDebug(ClassGenerator classGen,\n\t\t\t\t     InstructionList il) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal int prt = cpg.addMethodref(\"java/lang/System/out\",\n\t\t\t\t\t \"println\",\n\t\t\t\t\t \"(Ljava/lang/String;)V\");\n\til.append(DUP);\n\til.append(new INVOKESTATIC(prt));\n    }\n    */\n\n    /**\n     * Compiles the predicate method\n     */\n    private static void compilePredicate(Vector rules,\n\t\t\t\t\t int defaultAction,\n\t\t\t\t\t ClassGenerator classGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\n\tfinal MethodGenerator stripSpace =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL ,\n\t\t\torg.apache.bcel.generic.Type.BOOLEAN, \n\t\t\tnew org.apache.bcel.generic.Type[] {\n\t\t\t    Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t    org.apache.bcel.generic.Type.INT,\n\t\t\t    org.apache.bcel.generic.Type.INT\n\t\t\t},\n\t\t\tnew String[] { \"dom\",\"node\",\"type\" },\n\t\t\t\"stripSpace\",classGen.getClassName(),il,cpg);\n\n\tclassGen.addInterface(\"org/apache/xalan/xsltc/StripFilter\");\n\n\tfinal int paramDom = stripSpace.getLocalIndex(\"dom\");\n\tfinal int paramCurrent = stripSpace.getLocalIndex(\"node\");\n\tfinal int paramType = stripSpace.getLocalIndex(\"type\");\n\n\tBranchHandle strip[] = new BranchHandle[rules.size()];\n\tBranchHandle preserve[] = new BranchHandle[rules.size()];\n\tint sCount = 0;\n\tint pCount = 0;\n\n\tfor (int i = 0; i<rules.size(); i++) {\n\t    WhitespaceRule rule = (WhitespaceRule)rules.elementAt(i);\n\n\t    final int gns = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getNamespaceName\",\n\t\t\t\t\t\t      \"(I)Ljava/lang/String;\");\n\n\t    final int strcmp = cpg.addMethodref(\"java/lang/String\",\n\t\t\t\t\t\t\"compareTo\",\n\t\t\t\t\t\t\"(Ljava/lang/String;)I\");\n\n\t    if (rule.getStrength() == RULE_NAMESPACE) {\n\t\til.append(new ALOAD(paramDom));\n\t\til.append(new ILOAD(paramCurrent));\n\t\til.append(new INVOKEINTERFACE(gns,2));\n\t\til.append(new PUSH(cpg, rule.getNamespace()));\n\t\til.append(new INVOKEVIRTUAL(strcmp));\n\t\til.append(ICONST_0);\n\n\t\tif (rule.getAction() == STRIP_SPACE) {\n\t\t    strip[sCount++] = il.append(new IF_ICMPEQ(null));\n\t\t}\n\t\telse {\n\t\t    preserve[pCount++] = il.append(new IF_ICMPEQ(null));\n\t\t}\n\t    }\n\t    else if (rule.getStrength() == RULE_ELEMENT) {\n\t\tfinal Parser parser = classGen.getParser();\n\t\tQName qname;\n\t\tif (rule.getNamespace() != Constants.EMPTYSTRING )\n\t\t    qname = parser.getQName(rule.getNamespace(), null,\n\t\t\t\t\t    rule.getElement());\n\t\telse\n\t\t    qname = parser.getQName(rule.getElement());\n\n\t\tfinal int elementType = xsltc.registerElement(qname);\n\t\til.append(new ILOAD(paramType));\n\t\til.append(new PUSH(cpg, elementType));\n\n\t\tif (rule.getAction() == STRIP_SPACE)\n\t\t    strip[sCount++] = il.append(new IF_ICMPEQ(null));\n\t\telse\n\t\t    preserve[pCount++] = il.append(new IF_ICMPEQ(null));\n\t    }\n\t}\n\n\tif (defaultAction == STRIP_SPACE) {\n\t    compileStripSpace(strip, sCount, il);\n\t    compilePreserveSpace(preserve, pCount, il);\n\t}\n\telse {\n\t    compilePreserveSpace(preserve, pCount, il);\n\t    compileStripSpace(strip, sCount, il);\n\t}\n\n\tstripSpace.stripAttributes(true);\n\tstripSpace.setMaxLocals();\n\tstripSpace.setMaxStack();\n\tstripSpace.removeNOPs();\n\n\tclassGen.addMethod(stripSpace.getMethod());\n    }\n\n    /**\n     * Compiles the predicate method\n     */\n    private static void compileDefault(int defaultAction,\n\t\t\t\t       ClassGenerator classGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\n\tfinal MethodGenerator stripSpace =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL ,\n\t\t\torg.apache.bcel.generic.Type.BOOLEAN, \n\t\t\tnew org.apache.bcel.generic.Type[] {\n\t\t\t    Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t    org.apache.bcel.generic.Type.INT,\n\t\t\t    org.apache.bcel.generic.Type.INT\n\t\t\t},\n\t\t\tnew String[] { \"dom\",\"node\",\"type\" },\n\t\t\t\"stripSpace\",classGen.getClassName(),il,cpg);\n\n\tclassGen.addInterface(\"org/apache/xalan/xsltc/StripFilter\");\n\n\tif (defaultAction == STRIP_SPACE)\n\t    il.append(ICONST_1);\n\telse\n\t    il.append(ICONST_0);\n\til.append(IRETURN);\n\n\tstripSpace.stripAttributes(true);\n\tstripSpace.setMaxLocals();\n\tstripSpace.setMaxStack();\n\tstripSpace.removeNOPs();\n\n\tclassGen.addMethod(stripSpace.getMethod());\n    }\n\n\n    /**\n     * Takes a vector of WhitespaceRule objects and generates a predicate\n     * method. This method returns the translets default action for handling\n     * whitespace text-nodes:\n     *    - USE_PREDICATE  (run the method generated by this method)\n     *    - STRIP_SPACE    (always strip whitespace text-nodes)\n     *    - PRESERVE_SPACE (always preserve whitespace text-nodes)\n     */\n    public static int translateRules(Vector rules,\n\t\t\t\t     ClassGenerator classGen) {\n\tfinal int defaultAction = prioritizeRules(rules);\n\tif (rules.size() == 0) {\n\t    compileDefault(defaultAction,classGen);\n\t    return defaultAction;\n\t}\n\tcompilePredicate(rules, defaultAction, classGen);\n\treturn USE_PREDICATE;\n    }\n\n    /**\n     * Sorts a range of rules with regard to PRIORITY only\n     */\n    private static void quicksort(Vector rules, int p, int r) {\n\twhile (p < r) {\n\t    final int q = partition(rules, p, r);\n\t    quicksort(rules, p, q);\n\t    p = q + 1;\n\t}\n    }\n    \n    /**\n     * Used with quicksort method above\n     */\n    private static int partition(Vector rules, int p, int r) {\n\tfinal WhitespaceRule x = (WhitespaceRule)rules.elementAt((p+r) >>> 1);\n\tint i = p - 1, j = r + 1;\n\twhile (true) {\n\t    while (x.compareTo((WhitespaceRule)rules.elementAt(--j)) < 0) {\n\t    }\n\t    while (x.compareTo((WhitespaceRule)rules.elementAt(++i)) > 0) {\n\t    }\n\t    if (i < j) {\n\t\tfinal WhitespaceRule tmp = (WhitespaceRule)rules.elementAt(i);\n\t\trules.setElementAt(rules.elementAt(j), i);\n\t\trules.setElementAt(tmp, j);\n\t    }\n\t    else {\n\t\treturn j;\n\t    }\n\t}\n    }\n    \n    /**\n     * Type-check contents/attributes - nothing to do...\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n    }\n\n    /**\n     * This method should not produce any code\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {", "functions": [{"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\t_action = _qname.getLocalPart().endsWith(\"strip-space\") \n\t    ? STRIP_SPACE : PRESERVE_SPACE;\n\n\t_importPrecedence = parser.getCurrentImportPrecedence();\n\n\t_elementList = getAttribute(\"elements\");\n\tif (_elementList == null || _elementList.length() == 0) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"elements\");\n\t    return;\n\t}\n\n\tfinal SymbolTable stable = parser.getSymbolTable();\n\tStringTokenizer list = new StringTokenizer(_elementList);\n\tStringBuffer elements = new StringBuffer(Constants.EMPTYSTRING);\n\n\twhile (list.hasMoreElements()) {\n\t    String token = list.nextToken();\n\t    String prefix;\n\t    String namespace;\n\t    int col;\n\n\t    if ((col = token.indexOf(':')) != -1) {\n\t\tprefix  = token.substring(0,col);\n\t    }\n\t    else {\n\t\tprefix = Constants.EMPTYSTRING;\n\t    }\n\n\t    namespace = lookupNamespace(prefix);\n\t    if (namespace != null)\n\t\telements.append(namespace+\":\"+\n\t\t\t\ttoken.substring(col+1,token.length()));\n\t    else\n\t\telements.append(token);\n\n\t    if (list.hasMoreElements())\n\t\telements.append(\" \");\n\t}\n\t_elementList = elements.toString();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [5, 9], [0, 10], [0, 11], [0, 12], [7, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [2, 21], [3, 22], [4, 23], [5, 24], [9, 25], [9, 26], [10, 27], [11, 28], [12, 29], [14, 30], [15, 31], [1, 32], [16, 33], [5, 34], [25, 35], [25, 36], [26, 37], [27, 38], [29, 39], [14, 40], [15, 41], [15, 42], [31, 43], [32, 44], [33, 45], [33, 46], [20, 47], [34, 48], [39, 49], [40, 50], [42, 51], [16, 52], [16, 53], [46, 54], [49, 55], [51, 56], [51, 57], [53, 58], [54, 59], [56, 60], [56, 61], [57, 62], [58, 63], [61, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 5], [10, 0], [11, 0], [12, 0], [13, 7], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 2], [22, 3], [23, 4], [24, 5], [25, 9], [26, 9], [27, 10], [28, 11], [29, 12], [30, 14], [31, 15], [32, 1], [33, 16], [34, 5], [35, 25], [36, 25], [37, 26], [38, 27], [39, 29], [40, 14], [41, 15], [42, 15], [43, 31], [44, 32], [45, 33], [46, 33], [47, 20], [48, 34], [49, 39], [50, 40], [51, 42], [52, 16], [53, 16], [54, 46], [55, 49], [56, 51], [57, 51], [58, 53], [59, 54], [60, 56], [61, 56], [62, 57], [63, 58], [64, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "getRules", "code": "    public Vector getRules() {\n\tfinal Vector rules = new Vector();\n\tfinal StringTokenizer list = new StringTokenizer(_elementList);\n\twhile (list.hasMoreElements()) {\n\t    rules.add(new WhitespaceRule(_action,\n\t\t\t\t\t list.nextToken(),\n\t\t\t\t\t _importPrecedence));\n\t}\n\treturn rules;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [2, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 2], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "findContradictingRule", "code": "    private static WhitespaceRule findContradictingRule(Vector rules,\n\t\t\t\t\t\t\tWhitespaceRule rule) {\n\tfor (int i = 0; i < rules.size(); i++) {\n\t    WhitespaceRule currentRule = (WhitespaceRule)rules.elementAt(i);\n\t    if (currentRule == rule) {\n\t\treturn null;\n\t    }\n\t    \n\t    /*\n\t     * See if there is a contradicting rule with higher priority.\n\t     * If the rules has the same action then this rule is redundant,\n\t     * if they have different action then this rule will never win.\n\t     */\n\t    switch (currentRule.getStrength()) {\n\t    case RULE_ALL:\n\t\treturn currentRule;\n\t\t\n\t    case RULE_ELEMENT:\n\t\tif (!rule.getElement().equals(currentRule.getElement())) {\n\t\t    break;\n\t\t}\n\t    case RULE_NAMESPACE:\n\t\tif (rule.getNamespace().equals(currentRule.getNamespace())) {\n\t\t    return currentRule;\n\t\t}\n\t\tbreak;\n\t    }\n\t}\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "SWITCH", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "IF", "RETURN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [6, 10], [7, 11], [8, 12], [2, 13], [7, 14], [7, 15], [7, 16], [7, 17], [8, 18], [15, 19], [16, 20], [18, 21], [9, 22], [15, 23], [19, 24], [16, 25], [20, 26], [24, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 6], [11, 7], [12, 8], [13, 2], [14, 7], [15, 7], [16, 7], [17, 7], [18, 8], [19, 15], [20, 16], [21, 18], [22, 9], [23, 15], [24, 19], [25, 16], [26, 20], [27, 24], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "prioritizeRules", "code": "    private static int prioritizeRules(Vector rules) {\n\tWhitespaceRule currentRule;\n\tint defaultAction = PRESERVE_SPACE;\n\n\tquicksort(rules, 0, rules.size()-1);\n\n\tboolean strip = false;\n\tfor (int i = 0; i < rules.size(); i++) {\n\t    currentRule = (WhitespaceRule)rules.elementAt(i);\n\t    if (currentRule.getAction() == STRIP_SPACE) {\n\t\tstrip = true;\n\t    }\n\t}\n\tif (!strip) {\n\t    rules.removeAllElements();\n\t    return PRESERVE_SPACE;\n\t}\n\n\tfor (int idx = 0; idx < rules.size(); ) {\n\t    currentRule = (WhitespaceRule)rules.elementAt(idx);\n\t\n\t    if (findContradictingRule(rules,currentRule) != null) {\n\t\trules.remove(idx);\n\t    }\n\t    else {\n\t\tif (currentRule.getStrength() == RULE_ALL) {\n\t\t    defaultAction = currentRule.getAction();\n\t\t    for (int i = idx; i < rules.size(); i++) {\n\t\t\trules.removeElementAt(i);\n\t\t    }\n\t\t}\n\t\tidx++;\n\t    }\n\t}\n\n\tif (rules.size() == 0) {\n\t    return defaultAction;\n\t}\n\n\tdo {\n\t    currentRule = (WhitespaceRule)rules.lastElement();\n\t    if (currentRule.getAction() == defaultAction) {\n\t\trules.removeElementAt(rules.size() - 1);\n\t    }\n\t    else {\n\t\tbreak;\n\t    }\n\t} while (rules.size() > 0);\n\t\n\treturn defaultAction;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "LOOP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "RETURN", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LOOP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [4, 13], [6, 14], [0, 15], [2, 16], [11, 17], [11, 18], [3, 19], [12, 20], [12, 21], [4, 22], [13, 23], [5, 24], [6, 25], [14, 26], [7, 27], [15, 28], [15, 29], [16, 30], [2, 31], [22, 32], [4, 33], [4, 34], [5, 35], [25, 36], [6, 37], [6, 38], [28, 39], [28, 40], [16, 41], [30, 42], [22, 43], [32, 44], [32, 45], [36, 46], [16, 47], [31, 48], [43, 49], [22, 50], [33, 51], [25, 52], [37, 53], [47, 54], [43, 55], [49, 56], [52, 57], [54, 58], [54, 59], [55, 60], [43, 61], [60, 62], [61, 63], [55, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 4], [14, 6], [15, 0], [16, 2], [17, 11], [18, 11], [19, 3], [20, 12], [21, 12], [22, 4], [23, 13], [24, 5], [25, 6], [26, 14], [27, 7], [28, 15], [29, 15], [30, 16], [31, 2], [32, 22], [33, 4], [34, 4], [35, 5], [36, 25], [37, 6], [38, 6], [39, 28], [40, 28], [41, 16], [42, 30], [43, 22], [44, 32], [45, 32], [46, 36], [47, 16], [48, 31], [49, 43], [50, 22], [51, 33], [52, 25], [53, 37], [54, 47], [55, 43], [56, 49], [57, 52], [58, 54], [59, 54], [60, 55], [61, 43], [62, 60], [63, 61], [64, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "compileStripSpace", "code": "    public static void compileStripSpace(BranchHandle strip[], \n\t\t\t\t\t int sCount,\n\t\t\t\t\t InstructionList il) {\n\tfinal InstructionHandle target = il.append(ICONST_1);\n\til.append(IRETURN);\n\tfor (int i = 0; i < sCount; i++) {\n\t    strip[i].setTarget(target);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [1, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 1], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "compilePreserveSpace", "code": "    public static void compilePreserveSpace(BranchHandle preserve[], \n\t\t\t\t\t    int pCount,\n\t\t\t\t\t    InstructionList il) {\n\tfinal InstructionHandle target = il.append(ICONST_0);\n\til.append(IRETURN);\n\tfor (int i = 0; i < pCount; i++) {\n\t    preserve[i].setTarget(target);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [1, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 1], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "compilePredicate", "code": "    private static void compilePredicate(Vector rules,\n\t\t\t\t\t int defaultAction,\n\t\t\t\t\t ClassGenerator classGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\n\tfinal MethodGenerator stripSpace =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL ,\n\t\t\torg.apache.bcel.generic.Type.BOOLEAN, \n\t\t\tnew org.apache.bcel.generic.Type[] {\n\t\t\t    Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t    org.apache.bcel.generic.Type.INT,\n\t\t\t    org.apache.bcel.generic.Type.INT\n\t\t\t},\n\t\t\tnew String[] { \"dom\",\"node\",\"type\" },\n\t\t\t\"stripSpace\",classGen.getClassName(),il,cpg);\n\n\tclassGen.addInterface(\"org/apache/xalan/xsltc/StripFilter\");\n\n\tfinal int paramDom = stripSpace.getLocalIndex(\"dom\");\n\tfinal int paramCurrent = stripSpace.getLocalIndex(\"node\");\n\tfinal int paramType = stripSpace.getLocalIndex(\"type\");\n\n\tBranchHandle strip[] = new BranchHandle[rules.size()];\n\tBranchHandle preserve[] = new BranchHandle[rules.size()];\n\tint sCount = 0;\n\tint pCount = 0;\n\n\tfor (int i = 0; i<rules.size(); i++) {\n\t    WhitespaceRule rule = (WhitespaceRule)rules.elementAt(i);\n\n\t    final int gns = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getNamespaceName\",\n\t\t\t\t\t\t      \"(I)Ljava/lang/String;\");\n\n\t    final int strcmp = cpg.addMethodref(\"java/lang/String\",\n\t\t\t\t\t\t\"compareTo\",\n\t\t\t\t\t\t\"(Ljava/lang/String;)I\");\n\n\t    if (rule.getStrength() == RULE_NAMESPACE) {\n\t\til.append(new ALOAD(paramDom));\n\t\til.append(new ILOAD(paramCurrent));\n\t\til.append(new INVOKEINTERFACE(gns,2));\n\t\til.append(new PUSH(cpg, rule.getNamespace()));\n\t\til.append(new INVOKEVIRTUAL(strcmp));\n\t\til.append(ICONST_0);\n\n\t\tif (rule.getAction() == STRIP_SPACE) {\n\t\t    strip[sCount++] = il.append(new IF_ICMPEQ(null));\n\t\t}\n\t\telse {\n\t\t    preserve[pCount++] = il.append(new IF_ICMPEQ(null));\n\t\t}\n\t    }\n\t    else if (rule.getStrength() == RULE_ELEMENT) {\n\t\tfinal Parser parser = classGen.getParser();\n\t\tQName qname;\n\t\tif (rule.getNamespace() != Constants.EMPTYSTRING )\n\t\t    qname = parser.getQName(rule.getNamespace(), null,\n\t\t\t\t\t    rule.getElement());\n\t\telse\n\t\t    qname = parser.getQName(rule.getElement());\n\n\t\tfinal int elementType = xsltc.registerElement(qname);\n\t\til.append(new ILOAD(paramType));\n\t\til.append(new PUSH(cpg, elementType));\n\n\t\tif (rule.getAction() == STRIP_SPACE)\n\t\t    strip[sCount++] = il.append(new IF_ICMPEQ(null));\n\t\telse\n\t\t    preserve[pCount++] = il.append(new IF_ICMPEQ(null));\n\t    }\n\t}\n\n\tif (defaultAction == STRIP_SPACE) {\n\t    compileStripSpace(strip, sCount, il);\n\t    compilePreserveSpace(preserve, pCount, il);\n\t}\n\telse {\n\t    compilePreserveSpace(preserve, pCount, il);\n\t    compileStripSpace(strip, sCount, il);\n\t}\n\n\tstripSpace.stripAttributes(true);\n\tstripSpace.setMaxLocals();\n\tstripSpace.setMaxStack();\n\tstripSpace.removeNOPs();\n\n\tclassGen.addMethod(stripSpace.getMethod());", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [1, 22], [2, 23], [0, 24], [17, 25], [21, 26], [2, 27], [2, 28], [2, 29], [2, 30], [23, 31], [3, 32], [4, 33], [7, 34], [8, 35], [9, 36], [24, 37], [10, 38], [11, 39], [12, 40], [13, 41], [1, 42], [1, 43], [1, 44], [1, 45], [27, 46], [27, 47], [2, 48], [5, 49], [6, 50], [34, 51], [35, 52], [36, 53], [38, 54], [38, 55], [38, 56], [39, 57], [46, 58], [27, 59], [47, 60], [28, 61], [29, 62], [46, 63], [46, 64], [46, 65], [46, 66], [46, 67], [58, 68], [59, 69], [27, 70], [27, 71], [27, 72], [27, 73], [27, 74], [27, 75], [61, 76], [61, 77], [61, 78], [62, 79], [62, 80], [30, 81], [38, 82], [38, 83], [38, 84], [38, 85], [63, 86], [46, 87], [46, 88], [65, 89], [69, 90], [71, 91], [72, 92], [73, 93], [74, 94], [75, 95], [63, 96], [63, 97], [86, 98], [87, 99], [88, 100], [64, 101], [65, 102], [65, 103], [89, 104], [67, 105], [59, 106], [59, 107], [92, 108], [93, 109], [96, 110], [97, 111], [102, 112], [103, 113], [106, 114], [107, 115], [110, 116], [111, 117], [112, 118], [113, 119], [113, 120], [113, 121], [114, 122], [115, 123], [116, 124], [117, 125], [122, 126], [123, 127], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 1], [23, 2], [24, 0], [25, 17], [26, 21], [27, 2], [28, 2], [29, 2], [30, 2], [31, 23], [32, 3], [33, 4], [34, 7], [35, 8], [36, 9], [37, 24], [38, 10], [39, 11], [40, 12], [41, 13], [42, 1], [43, 1], [44, 1], [45, 1], [46, 27], [47, 27], [48, 2], [49, 5], [50, 6], [51, 34], [52, 35], [53, 36], [54, 38], [55, 38], [56, 38], [57, 39], [58, 46], [59, 27], [60, 47], [61, 28], [62, 29], [63, 46], [64, 46], [65, 46], [66, 46], [67, 46], [68, 58], [69, 59], [70, 27], [71, 27], [72, 27], [73, 27], [74, 27], [75, 27], [76, 61], [77, 61], [78, 61], [79, 62], [80, 62], [81, 30], [82, 38], [83, 38], [84, 38], [85, 38], [86, 63], [87, 46], [88, 46], [89, 65], [90, 69], [91, 71], [92, 72], [93, 73], [94, 74], [95, 75], [96, 63], [97, 63], [98, 86], [99, 87], [100, 88], [101, 64], [102, 65], [103, 65], [104, 89], [105, 67], [106, 59], [107, 59], [108, 92], [109, 93], [110, 96], [111, 97], [112, 102], [113, 103], [114, 106], [115, 107], [116, 110], [117, 111], [118, 112], [119, 113], [120, 113], [121, 113], [122, 114], [123, 115], [124, 116], [125, 117], [126, 122], [127, 123], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127]]}, {"function_name": "compileDefault", "code": "    private static void compileDefault(int defaultAction,\n\t\t\t\t       ClassGenerator classGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\n\tfinal MethodGenerator stripSpace =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL ,\n\t\t\torg.apache.bcel.generic.Type.BOOLEAN, \n\t\t\tnew org.apache.bcel.generic.Type[] {\n\t\t\t    Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t    org.apache.bcel.generic.Type.INT,\n\t\t\t    org.apache.bcel.generic.Type.INT\n\t\t\t},\n\t\t\tnew String[] { \"dom\",\"node\",\"type\" },\n\t\t\t\"stripSpace\",classGen.getClassName(),il,cpg);\n\n\tclassGen.addInterface(\"org/apache/xalan/xsltc/StripFilter\");\n\n\tif (defaultAction == STRIP_SPACE)\n\t    il.append(ICONST_1);\n\telse\n\t    il.append(ICONST_0);\n\til.append(IRETURN);\n\n\tstripSpace.stripAttributes(true);\n\tstripSpace.setMaxLocals();\n\tstripSpace.setMaxStack();\n\tstripSpace.removeNOPs();\n\n\tclassGen.addMethod(stripSpace.getMethod());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [0, 15], [8, 16], [12, 17], [1, 18], [1, 19], [15, 20], [2, 21], [3, 22], [4, 23], [5, 24], [21, 25], [21, 26], [21, 27], [22, 28], [21, 29], [21, 30], [21, 31], [21, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 0], [16, 8], [17, 12], [18, 1], [19, 1], [20, 15], [21, 2], [22, 3], [23, 4], [24, 5], [25, 21], [26, 21], [27, 21], [28, 22], [29, 21], [30, 21], [31, 21], [32, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "translateRules", "code": "    public static int translateRules(Vector rules,\n\t\t\t\t     ClassGenerator classGen) {\n\tfinal int defaultAction = prioritizeRules(rules);\n\tif (rules.size() == 0) {\n\t    compileDefault(defaultAction,classGen);\n\t    return defaultAction;\n\t}\n\tcompilePredicate(rules, defaultAction, classGen);\n\treturn USE_PREDICATE;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [7, 10], [3, 11], [2, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 7], [11, 3], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "quicksort", "code": "    private static void quicksort(Vector rules, int p, int r) {\n\twhile (p < r) {\n\t    final int q = partition(rules, p, r);\n\t    quicksort(rules, p, q);\n\t    p = q + 1;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [6, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 6], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "partition", "code": "    private static int partition(Vector rules, int p, int r) {\n\tfinal WhitespaceRule x = (WhitespaceRule)rules.elementAt((p+r) >>> 1);\n\tint i = p - 1, j = r + 1;\n\twhile (true) {\n\t    while (x.compareTo((WhitespaceRule)rules.elementAt(--j)) < 0) {\n\t    }\n\t    while (x.compareTo((WhitespaceRule)rules.elementAt(++i)) > 0) {\n\t    }\n\t    if (i < j) {\n\t\tfinal WhitespaceRule tmp = (WhitespaceRule)rules.elementAt(i);\n\t\trules.setElementAt(rules.elementAt(j), i);\n\t\trules.setElementAt(tmp, j);\n\t    }\n\t    else {\n\t\treturn j;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "LOOP", "LOOP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [2, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [3, 18], [8, 19], [8, 20], [14, 21], [14, 22], [15, 23], [15, 24], [18, 25], [8, 26], [8, 27], [25, 28], [25, 29], [27, 30], [22, 31], [24, 32], [20, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 2], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 3], [19, 8], [20, 8], [21, 14], [22, 14], [23, 15], [24, 15], [25, 18], [26, 8], [27, 8], [28, 25], [29, 25], [30, 27], [31, 22], [32, 24], [33, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.3-4846", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/textarea/FirstLine.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.FirstLine", "code": "class FirstLine extends Anchor\n{\n\t/** The skew is the scroll count from the beginning of the line. Used with soft wrap. */\n\tint skew;\n\n\t//{{{ FirstLine constructor\n\tFirstLine(DisplayManager displayManager,\n\t\tTextArea textArea)\n\t{\n\t\tsuper(displayManager,textArea);\n\t} //}}}\n\n\t//{{{ changed() method\n\t@Override\n\tpublic void changed()\n\t{\n\t\t//{{{ Debug code\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"changed() before: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine\n\t\t\t\t+ ':' + skew);\n\t\t} //}}}\n\n\t\tensurePhysicalLineIsVisible();\n\n\t\tint screenLines = displayManager\n\t\t\t.getScreenLineCount(physicalLine);\n\t\tif(skew >= screenLines)\n\t\t\tskew = screenLines - 1;\n\n\t\t//{{{ Debug code\n\t\tif(Debug.SCROLL_VERIFY)\n\t\t{\n\t\t\tSystem.err.println(\"SCROLL_VERIFY\");\n\t\t\tint verifyScrollLine = 0;\n\n\t\t\tfor(int i = 0; i < displayManager.getBuffer()\n\t\t\t\t.getLineCount(); i++)\n\t\t\t{\n\t\t\t\tif(!displayManager.isLineVisible(i))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif(i >= physicalLine)\n\t\t\t\t\tbreak;\n\n\t\t\t\tverifyScrollLine += displayManager\n\t\t\t\t\t.getScreenLineCount(i);\n\t\t\t}\n\n\t\t\tif(verifyScrollLine != scrollLine)\n\t\t\t{\n\t\t\t\tException ex = new Exception(scrollLine + \":\" + verifyScrollLine);\n\t\t\t\tLog.log(Log.ERROR,this,ex);\n\t\t\t}\n\t\t}\n\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"changed() after: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine\n\t\t\t\t+ ':' + skew);\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ reset() method\n\t@Override\n\tpublic void reset()\n\t{\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t\tLog.log(Log.DEBUG,this,\"reset()\");\n\n\t\tint oldPhysicalLine = physicalLine;\n\t\tphysicalLine = 0;\n\t\tscrollLine = 0;\n\n\t\tint i = displayManager.getFirstVisibleLine();\n\n\t\tfor(;;)\n\t\t{\n\t\t\tif(i >= oldPhysicalLine)\n\t\t\t\tbreak;\n\n\t\t\tscrollLine += displayManager.getScreenLineCount(i);\n\n\t\t\tint nextLine = displayManager.getNextVisibleLine(i);\n\t\t\tif(nextLine == -1)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\ti = nextLine;\n\t\t}\n\n\t\tphysicalLine = i;\n\n\t\tint screenLines = displayManager.getScreenLineCount(physicalLine);\n\t\tif(skew >= screenLines)\n\t\t\tskew = screenLines - 1;\n\n\t\ttextArea.updateScrollBar();\n\t} //}}}\n\n\t//{{{ physDown() method\n\t// scroll down by physical line amount\n\tvoid physDown(int amount, int screenAmount)\n\t{\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"physDown() start: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine);\n\t\t}\n\n\t\tskew = 0;\n\n\t\tif(!displayManager.isLineVisible(physicalLine))\n\t\t{\n\t\t\tint lastVisibleLine = displayManager.getLastVisibleLine();\n\t\t\tif(physicalLine > lastVisibleLine)\n\t\t\t\tphysicalLine = lastVisibleLine;\n\t\t\telse\n\t\t\t{\n\t\t\t\tint nextPhysicalLine = displayManager.getNextVisibleLine(physicalLine);\n\t\t\t\tamount -= nextPhysicalLine - physicalLine;\n\t\t\t\tscrollLine += displayManager.getScreenLineCount(physicalLine);\n\t\t\t\tphysicalLine = nextPhysicalLine;\n\t\t\t}\n\t\t}\n\n\t\tfor(;;)\n\t\t{\n\t\t\tint nextPhysicalLine = displayManager.getNextVisibleLine(\n\t\t\t\tphysicalLine);\n\t\t\tif(nextPhysicalLine == -1)\n\t\t\t\tbreak;\n\t\t\telse if(nextPhysicalLine > physicalLine + amount)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tscrollLine += displayManager.getScreenLineCount(physicalLine);\n\t\t\t\tamount -= nextPhysicalLine - physicalLine;\n\t\t\t\tphysicalLine = nextPhysicalLine;\n\t\t\t}\n\t\t}\n\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"physDown() end: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine);\n\t\t}\n\n\t\tcallChanged = true;\n\n\t\t// JEditTextArea.scrollTo() needs this to simplify\n\t\t// its code\n\t\tif(screenAmount < 0)\n\t\t\tscrollUp(-screenAmount);\n\t\telse if(screenAmount > 0)\n\t\t\tscrollDown(screenAmount);\n\t} //}}}\n\n\t//{{{ physUp() method\n\t// scroll up by physical line amount\n\tvoid physUp(int amount, int screenAmount)\n\t{\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"physUp() start: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine);\n\t\t}\n\n\t\tskew = 0;\n\n\t\tif(!displayManager.isLineVisible(physicalLine))\n\t\t{\n\t\t\tint firstVisibleLine = displayManager.getFirstVisibleLine();\n\t\t\tif(physicalLine < firstVisibleLine)\n\t\t\t\tphysicalLine = firstVisibleLine;\n\t\t\telse\n\t\t\t{\n\t\t\t\tint prevPhysicalLine = displayManager.getPrevVisibleLine(physicalLine);\n\t\t\t\tamount -= physicalLine - prevPhysicalLine;\n\t\t\t}\n\t\t}\n\n\t\tfor(;;)\n\t\t{\n\t\t\tint prevPhysicalLine = displayManager.getPrevVisibleLine(\n\t\t\t\tphysicalLine);\n\t\t\tif(prevPhysicalLine == -1)\n\t\t\t\tbreak;\n\t\t\telse if(prevPhysicalLine < physicalLine - amount)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tamount -= physicalLine - prevPhysicalLine;\n\t\t\t\tphysicalLine = prevPhysicalLine;\n\t\t\t\tscrollLine -= displayManager.getScreenLineCount(\n\t\t\t\t\tprevPhysicalLine);\n\t\t\t}\n\t\t}\n\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"physUp() end: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine);\n\t\t}\n\n\t\tcallChanged = true;\n\n\t\t// JEditTextArea.scrollTo() needs this to simplify\n\t\t// its code\n\t\tif(screenAmount < 0)\n\t\t\tscrollUp(-screenAmount);\n\t\telse if(screenAmount > 0)\n\t\t\tscrollDown(screenAmount);\n\t} //}}}\n\n\t//{{{ scrollDown() method\n\t// scroll down by screen line amount\n\tvoid scrollDown(int amount)\n\t{\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t\tLog.log(Log.DEBUG,this,\"scrollDown()\");\n\n\t\tensurePhysicalLineIsVisible();\n\n\t\tamount += skew;\n\n\t\tskew = 0;\n\n\t\twhile(amount > 0)\n\t\t{\n\t\t\tint screenLines = displayManager.getScreenLineCount(physicalLine);\n\t\t\tif(amount < screenLines)\n\t\t\t{\n\t\t\t\tskew = amount;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint nextLine = displayManager.getNextVisibleLine(physicalLine);\n\t\t\t\tif(nextLine == -1)\n\t\t\t\t\tbreak;\n\t\t\t\tboolean visible = displayManager.isLineVisible(physicalLine);\n\t\t\t\tphysicalLine = nextLine;\n\t\t\t\tif(visible)\n\t\t\t\t{\n\t\t\t\t\tamount -= screenLines;\n\t\t\t\t\tscrollLine += screenLines;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tcallChanged = true;\n\t} //}}}\n\n\t//{{{ scrollUp() method\n\t// scroll up by screen line amount\n\tvoid scrollUp(int amount)\n\t{\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t\tLog.log(Log.DEBUG,this,\"scrollUp() before:\" + this);\n\n\t\tensurePhysicalLineIsVisible();\n\n\t\tif(amount <= skew)\n\t\t{\n\t\t\t// the amount is less than the skew, so we stay in the same like, just going\n\t\t\t// upper\n\t\t\tskew -= amount;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// moving to the first screen line of the current physical line\n\t\t\tamount -= skew;\n\t\t\tskew = 0;\n\n\t\t\twhile(amount > 0)\n\t\t\t{\n\t\t\t\tint prevLine = displayManager.getPrevVisibleLine(physicalLine);\n\t\t\t\tif(prevLine == -1)\n\t\t\t\t\tbreak;\n\t\t\t\t// moving to the previous visible physical line\n\t\t\t\tphysicalLine = prevLine;\n\n\t\t\t\tint screenLines = displayManager.getScreenLineCount(physicalLine);\n\t\t\t\tscrollLine -= screenLines;\n\t\t\t\tif(amount < screenLines)\n\t\t\t\t{\n\t\t\t\t\tskew = screenLines - amount;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tamount -= screenLines;\n\t\t\t}\n\t\t}\n\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t\tLog.log(Log.DEBUG,this,\"scrollUp() after:\" + this);\n\t\tcallChanged = true;\n\t} //}}}\n\n\t//{{{ ensurePhysicalLineIsVisible() method\n\tvoid ensurePhysicalLineIsVisible()\n\t{\n\t\tif(!displayManager.isLineVisible(physicalLine))\n\t\t{\n\t\t\tif(physicalLine > displayManager.getLastVisibleLine())\n\t\t\t{\n\t\t\t\tphysicalLine = displayManager.getLastVisibleLine();\n\t\t\t\tscrollLine = displayManager.getScrollLineCount() - 1;\n\t\t\t}\n\t\t\telse if(physicalLine < displayManager.getFirstVisibleLine())\n\t\t\t{\n\t\t\t\tphysicalLine = displayManager.getFirstVisibleLine();\n\t\t\t\tscrollLine = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tphysicalLine = displayManager.getNextVisibleLine(physicalLine);\n\t\t\t\tscrollLine += displayManager.getScreenLineCount(physicalLine);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ toString() method\n\t@Override\n\tpublic String toString()\n\t{\n\t\treturn \"FirstLine[\"+physicalLine+','+scrollLine+','+skew+']';", "functions": [{"function_name": "changed", "code": "\t@Override\n\tpublic void changed()\n\t{\n\t\t//{{{ Debug code\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"changed() before: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine\n\t\t\t\t+ ':' + skew);\n\t\t} //}}}\n\n\t\tensurePhysicalLineIsVisible();\n\n\t\tint screenLines = displayManager\n\t\t\t.getScreenLineCount(physicalLine);\n\t\tif(skew >= screenLines)\n\t\t\tskew = screenLines - 1;\n\n\t\t//{{{ Debug code\n\t\tif(Debug.SCROLL_VERIFY)\n\t\t{\n\t\t\tSystem.err.println(\"SCROLL_VERIFY\");\n\t\t\tint verifyScrollLine = 0;\n\n\t\t\tfor(int i = 0; i < displayManager.getBuffer()\n\t\t\t\t.getLineCount(); i++)\n\t\t\t{\n\t\t\t\tif(!displayManager.isLineVisible(i))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif(i >= physicalLine)\n\t\t\t\t\tbreak;\n\n\t\t\t\tverifyScrollLine += displayManager\n\t\t\t\t\t.getScreenLineCount(i);\n\t\t\t}\n\n\t\t\tif(verifyScrollLine != scrollLine)\n\t\t\t{\n\t\t\t\tException ex = new Exception(scrollLine + \":\" + verifyScrollLine);\n\t\t\t\tLog.log(Log.ERROR,this,ex);\n\t\t\t}\n\t\t}\n\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"changed() after: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine\n\t\t\t\t+ ':' + skew);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "BINARY_OP", "CALL", "IF", "LOOP", "VAR_DECL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "VAR_DECL", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [0, 7], [2, 8], [2, 9], [2, 10], [3, 11], [4, 12], [1, 13], [8, 14], [9, 15], [2, 16], [11, 17], [5, 18], [13, 19], [8, 20], [9, 21], [9, 22], [15, 23], [10, 24], [16, 25], [17, 26], [18, 27], [19, 28], [8, 29], [9, 30], [21, 31], [21, 32], [22, 33], [22, 34], [23, 35], [9, 36], [27, 37], [28, 38], [28, 39], [20, 40], [30, 41], [37, 42], [37, 43], [39, 44], [40, 45], [43, 46], [44, 47], [44, 48], [45, 49], [46, 50], [46, 51], [48, 52], [49, 53], [51, 54], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 0], [8, 2], [9, 2], [10, 2], [11, 3], [12, 4], [13, 1], [14, 8], [15, 9], [16, 2], [17, 11], [18, 5], [19, 13], [20, 8], [21, 9], [22, 9], [23, 15], [24, 10], [25, 16], [26, 17], [27, 18], [28, 19], [29, 8], [30, 9], [31, 21], [32, 21], [33, 22], [34, 22], [35, 23], [36, 9], [37, 27], [38, 28], [39, 28], [40, 20], [41, 30], [42, 37], [43, 37], [44, 39], [45, 40], [46, 43], [47, 44], [48, 44], [49, 45], [50, 46], [51, 46], [52, 48], [53, 49], [54, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54]]}, {"function_name": "reset", "code": "\t@Override\n\tpublic void reset()\n\t{\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t\tLog.log(Log.DEBUG,this,\"reset()\");\n\n\t\tint oldPhysicalLine = physicalLine;\n\t\tphysicalLine = 0;\n\t\tscrollLine = 0;\n\n\t\tint i = displayManager.getFirstVisibleLine();\n\n\t\tfor(;;)\n\t\t{\n\t\t\tif(i >= oldPhysicalLine)\n\t\t\t\tbreak;\n\n\t\t\tscrollLine += displayManager.getScreenLineCount(i);\n\n\t\t\tint nextLine = displayManager.getNextVisibleLine(i);\n\t\t\tif(nextLine == -1)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\ti = nextLine;\n\t\t}\n\n\t\tphysicalLine = i;\n\n\t\tint screenLines = displayManager.getScreenLineCount(physicalLine);\n\t\tif(skew >= screenLines)\n\t\t\tskew = screenLines - 1;\n\n\t\ttextArea.updateScrollBar();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [3, 14], [3, 15], [3, 16], [4, 17], [10, 18], [11, 19], [6, 20], [12, 21], [14, 22], [14, 23], [3, 24], [16, 25], [16, 26], [20, 27], [21, 28], [14, 29], [23, 30], [15, 31], [24, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 3], [15, 3], [16, 3], [17, 4], [18, 10], [19, 11], [20, 6], [21, 12], [22, 14], [23, 14], [24, 3], [25, 16], [26, 16], [27, 20], [28, 21], [29, 14], [30, 23], [31, 15], [32, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "physDown", "code": "\tvoid physDown(int amount, int screenAmount)\n\t{\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"physDown() start: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine);\n\t\t}\n\n\t\tskew = 0;\n\n\t\tif(!displayManager.isLineVisible(physicalLine))\n\t\t{\n\t\t\tint lastVisibleLine = displayManager.getLastVisibleLine();\n\t\t\tif(physicalLine > lastVisibleLine)\n\t\t\t\tphysicalLine = lastVisibleLine;\n\t\t\telse\n\t\t\t{\n\t\t\t\tint nextPhysicalLine = displayManager.getNextVisibleLine(physicalLine);\n\t\t\t\tamount -= nextPhysicalLine - physicalLine;\n\t\t\t\tscrollLine += displayManager.getScreenLineCount(physicalLine);\n\t\t\t\tphysicalLine = nextPhysicalLine;\n\t\t\t}\n\t\t}\n\n\t\tfor(;;)\n\t\t{\n\t\t\tint nextPhysicalLine = displayManager.getNextVisibleLine(\n\t\t\t\tphysicalLine);\n\t\t\tif(nextPhysicalLine == -1)\n\t\t\t\tbreak;\n\t\t\telse if(nextPhysicalLine > physicalLine + amount)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tscrollLine += displayManager.getScreenLineCount(physicalLine);\n\t\t\t\tamount -= nextPhysicalLine - physicalLine;\n\t\t\t\tphysicalLine = nextPhysicalLine;\n\t\t\t}\n\t\t}\n\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"physDown() end: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine);\n\t\t}\n\n\t\tcallChanged = true;\n\n\t\t// JEditTextArea.scrollTo() needs this to simplify\n\t\t// its code\n\t\tif(screenAmount < 0)\n\t\t\tscrollUp(-screenAmount);\n\t\telse if(screenAmount > 0)\n\t\t\tscrollDown(screenAmount);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "IF", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [0, 10], [4, 11], [0, 12], [8, 13], [1, 14], [9, 15], [10, 16], [3, 17], [3, 18], [4, 19], [4, 20], [12, 21], [8, 22], [13, 23], [2, 24], [17, 25], [17, 26], [17, 27], [19, 28], [5, 29], [24, 30], [25, 31], [25, 32], [27, 33], [18, 34], [19, 35], [19, 36], [20, 37], [29, 38], [30, 39], [32, 40], [19, 41], [19, 42], [19, 43], [38, 44], [39, 45], [39, 46], [25, 47], [25, 48], [25, 49], [42, 50], [43, 51], [35, 52], [44, 53], [44, 54], [46, 55], [48, 56], [49, 57], [54, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 0], [11, 4], [12, 0], [13, 8], [14, 1], [15, 9], [16, 10], [17, 3], [18, 3], [19, 4], [20, 4], [21, 12], [22, 8], [23, 13], [24, 2], [25, 17], [26, 17], [27, 17], [28, 19], [29, 5], [30, 24], [31, 25], [32, 25], [33, 27], [34, 18], [35, 19], [36, 19], [37, 20], [38, 29], [39, 30], [40, 32], [41, 19], [42, 19], [43, 19], [44, 38], [45, 39], [46, 39], [47, 25], [48, 25], [49, 25], [50, 42], [51, 43], [52, 35], [53, 44], [54, 44], [55, 46], [56, 48], [57, 49], [58, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "physUp", "code": "\tvoid physUp(int amount, int screenAmount)\n\t{\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"physUp() start: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine);\n\t\t}\n\n\t\tskew = 0;\n\n\t\tif(!displayManager.isLineVisible(physicalLine))\n\t\t{\n\t\t\tint firstVisibleLine = displayManager.getFirstVisibleLine();\n\t\t\tif(physicalLine < firstVisibleLine)\n\t\t\t\tphysicalLine = firstVisibleLine;\n\t\t\telse\n\t\t\t{\n\t\t\t\tint prevPhysicalLine = displayManager.getPrevVisibleLine(physicalLine);\n\t\t\t\tamount -= physicalLine - prevPhysicalLine;\n\t\t\t}\n\t\t}\n\n\t\tfor(;;)\n\t\t{\n\t\t\tint prevPhysicalLine = displayManager.getPrevVisibleLine(\n\t\t\t\tphysicalLine);\n\t\t\tif(prevPhysicalLine == -1)\n\t\t\t\tbreak;\n\t\t\telse if(prevPhysicalLine < physicalLine - amount)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tamount -= physicalLine - prevPhysicalLine;\n\t\t\t\tphysicalLine = prevPhysicalLine;\n\t\t\t\tscrollLine -= displayManager.getScreenLineCount(\n\t\t\t\t\tprevPhysicalLine);\n\t\t\t}\n\t\t}\n\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"physUp() end: \"\n\t\t\t\t+ physicalLine + ':' + scrollLine);\n\t\t}\n\n\t\tcallChanged = true;\n\n\t\t// JEditTextArea.scrollTo() needs this to simplify\n\t\t// its code\n\t\tif(screenAmount < 0)\n\t\t\tscrollUp(-screenAmount);\n\t\telse if(screenAmount > 0)\n\t\t\tscrollDown(screenAmount);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "IF", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [0, 10], [4, 11], [0, 12], [8, 13], [1, 14], [9, 15], [10, 16], [3, 17], [3, 18], [4, 19], [4, 20], [12, 21], [8, 22], [13, 23], [2, 24], [17, 25], [17, 26], [17, 27], [19, 28], [5, 29], [24, 30], [25, 31], [25, 32], [27, 33], [18, 34], [19, 35], [19, 36], [20, 37], [29, 38], [30, 39], [32, 40], [19, 41], [38, 42], [39, 43], [39, 44], [25, 45], [25, 46], [25, 47], [41, 48], [35, 49], [42, 50], [42, 51], [44, 52], [45, 53], [47, 54], [51, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 0], [11, 4], [12, 0], [13, 8], [14, 1], [15, 9], [16, 10], [17, 3], [18, 3], [19, 4], [20, 4], [21, 12], [22, 8], [23, 13], [24, 2], [25, 17], [26, 17], [27, 17], [28, 19], [29, 5], [30, 24], [31, 25], [32, 25], [33, 27], [34, 18], [35, 19], [36, 19], [37, 20], [38, 29], [39, 30], [40, 32], [41, 19], [42, 38], [43, 39], [44, 39], [45, 25], [46, 25], [47, 25], [48, 41], [49, 35], [50, 42], [51, 42], [52, 44], [53, 45], [54, 47], [55, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "scrollDown", "code": "\tvoid scrollDown(int amount)\n\t{\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t\tLog.log(Log.DEBUG,this,\"scrollDown()\");\n\n\t\tensurePhysicalLineIsVisible();\n\n\t\tamount += skew;\n\n\t\tskew = 0;\n\n\t\twhile(amount > 0)\n\t\t{\n\t\t\tint screenLines = displayManager.getScreenLineCount(physicalLine);\n\t\t\tif(amount < screenLines)\n\t\t\t{\n\t\t\t\tskew = amount;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint nextLine = displayManager.getNextVisibleLine(physicalLine);\n\t\t\t\tif(nextLine == -1)\n\t\t\t\t\tbreak;\n\t\t\t\tboolean visible = displayManager.isLineVisible(physicalLine);\n\t\t\t\tphysicalLine = nextLine;\n\t\t\t\tif(visible)\n\t\t\t\t{\n\t\t\t\t\tamount -= screenLines;\n\t\t\t\t\tscrollLine += screenLines;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tcallChanged = true;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "BREAK_CONTINUE", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [4, 9], [1, 10], [1, 11], [5, 12], [6, 13], [2, 14], [10, 15], [14, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [11, 22], [10, 23], [19, 24], [19, 25], [10, 26], [18, 27], [25, 28], [20, 29], [17, 30], [17, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 4], [10, 1], [11, 1], [12, 5], [13, 6], [14, 2], [15, 10], [16, 14], [17, 10], [18, 10], [19, 10], [20, 10], [21, 10], [22, 11], [23, 10], [24, 19], [25, 19], [26, 10], [27, 18], [28, 25], [29, 20], [30, 17], [31, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "scrollUp", "code": "\tvoid scrollUp(int amount)\n\t{\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t\tLog.log(Log.DEBUG,this,\"scrollUp() before:\" + this);\n\n\t\tensurePhysicalLineIsVisible();\n\n\t\tif(amount <= skew)\n\t\t{\n\t\t\t// the amount is less than the skew, so we stay in the same like, just going\n\t\t\t// upper\n\t\t\tskew -= amount;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// moving to the first screen line of the current physical line\n\t\t\tamount -= skew;\n\t\t\tskew = 0;\n\n\t\t\twhile(amount > 0)\n\t\t\t{\n\t\t\t\tint prevLine = displayManager.getPrevVisibleLine(physicalLine);\n\t\t\t\tif(prevLine == -1)\n\t\t\t\t\tbreak;\n\t\t\t\t// moving to the previous visible physical line\n\t\t\t\tphysicalLine = prevLine;\n\n\t\t\t\tint screenLines = displayManager.getScreenLineCount(physicalLine);\n\t\t\t\tscrollLine -= screenLines;\n\t\t\t\tif(amount < screenLines)\n\t\t\t\t{\n\t\t\t\t\tskew = screenLines - amount;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tamount -= screenLines;\n\t\t\t}\n\t\t}\n\n\t\tif(Debug.SCROLL_DEBUG)\n\t\t\tLog.log(Log.DEBUG,this,\"scrollUp() after:\" + this);\n\t\tcallChanged = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LOOP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [5, 8], [1, 9], [2, 10], [3, 11], [9, 12], [10, 13], [2, 14], [2, 15], [2, 16], [11, 17], [12, 18], [10, 19], [10, 20], [10, 21], [10, 22], [13, 23], [14, 24], [17, 25], [19, 26], [10, 27], [10, 28], [21, 29], [21, 30], [19, 31], [19, 32], [20, 33], [30, 34], [22, 35], [19, 36], [36, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 5], [9, 1], [10, 2], [11, 3], [12, 9], [13, 10], [14, 2], [15, 2], [16, 2], [17, 11], [18, 12], [19, 10], [20, 10], [21, 10], [22, 10], [23, 13], [24, 14], [25, 17], [26, 19], [27, 10], [28, 10], [29, 21], [30, 21], [31, 19], [32, 19], [33, 20], [34, 30], [35, 22], [36, 19], [37, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "ensurePhysicalLineIsVisible", "code": "\tvoid ensurePhysicalLineIsVisible()\n\t{\n\t\tif(!displayManager.isLineVisible(physicalLine))\n\t\t{\n\t\t\tif(physicalLine > displayManager.getLastVisibleLine())\n\t\t\t{\n\t\t\t\tphysicalLine = displayManager.getLastVisibleLine();\n\t\t\t\tscrollLine = displayManager.getScrollLineCount() - 1;\n\t\t\t}\n\t\t\telse if(physicalLine < displayManager.getFirstVisibleLine())\n\t\t\t{\n\t\t\t\tphysicalLine = displayManager.getFirstVisibleLine();\n\t\t\t\tscrollLine = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tphysicalLine = displayManager.getNextVisibleLine(physicalLine);\n\t\t\t\tscrollLine += displayManager.getScreenLineCount(physicalLine);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [6, 8], [3, 9], [3, 10], [4, 11], [4, 12], [4, 13], [4, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [15, 22], [1, 0], [2, 1], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 6], [9, 3], [10, 3], [11, 4], [12, 4], [13, 4], [14, 4], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "toString", "code": "\t@Override\n\tpublic String toString()\n\t{\n\t\treturn \"FirstLine[\"+physicalLine+','+scrollLine+','+skew+']';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "FirstLine", "code": "\tFirstLine(DisplayManager displayManager,\n\t\tTextArea textArea)\n\t{\n\t\tsuper(displayManager,textArea);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.2-4432", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "bsh/BSHLiteral.java", "language": "java", "name": "bsh.BSHLiteral", "code": "class BSHLiteral extends SimpleNode\n{\n    public Object value;\n\n    BSHLiteral(int id) { super(id); }\n\n    public Object eval( CallStack callstack, Interpreter interpreter )\n\t\tthrows EvalError\n    {\n\t\tif ( value == null )\n\t\t\tthrow new InterpreterError(\"Null in bsh literal: \"+value);\n\n        return value;\n    }\n\n    private char getEscapeChar(char ch)\n    {\n        switch(ch)\n        {\n            case 'b':\n                ch = '\\b';\n                break;\n\n            case 't':\n                ch = '\\t';\n                break;\n\n            case 'n':\n                ch = '\\n';\n                break;\n\n            case 'f':\n                ch = '\\f';\n                break;\n\n            case 'r':\n                ch = '\\r';\n                break;\n\n            // do nothing - ch already contains correct character\n            case '\"':\n            case '\\'':\n            case '\\\\':\n                break;\n        }\n\n        return ch;\n    }\n\n    public void charSetup(String str)\n    {\n        char ch = str.charAt(0);\n        if(ch == '\\\\')\n        {\n            // get next character\n            ch = str.charAt(1);\n\n            if(Character.isDigit(ch))\n                ch = (char)Integer.parseInt(str.substring(1), 8);\n            else\n                ch = getEscapeChar(ch);\n        }\n\n        value = new Primitive(new Character(ch).charValue());\n    }\n\n    void stringSetup(String str)\n    {\n        StringBuffer buffer = new StringBuffer();\n        for(int i = 0; i < str.length(); i++)\n        {\n            char ch = str.charAt(i);\n            if(ch == '\\\\')\n            {\n                // get next character\n                ch = str.charAt(++i);\n\n                if(Character.isDigit(ch))\n                {\n                    int endPos = i;\n\n                    // check the next two characters\n                    while(endPos < i + 2)\n                    {\n                        if(Character.isDigit(str.charAt(endPos + 1)))\n                            endPos++;\n                        else\n                            break;\n                    }\n\n                    ch = (char)Integer.parseInt(str.substring(i, endPos + 1), 8);\n                    i = endPos;\n                }\n                else\n                    ch = getEscapeChar(ch);\n            }\n\n            buffer.append(ch);\n        }\n\n        value = buffer.toString();", "functions": [{"function_name": "eval", "code": "    public Object eval( CallStack callstack, Interpreter interpreter )\n\t\tthrows EvalError\n    {\n\t\tif ( value == null )\n\t\t\tthrow new InterpreterError(\"Null in bsh literal: \"+value);\n\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [6, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 6], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getEscapeChar", "code": "    private char getEscapeChar(char ch)\n    {\n        switch(ch)\n        {\n            case 'b':\n                ch = '\\b';\n                break;\n\n            case 't':\n                ch = '\\t';\n                break;\n\n            case 'n':\n                ch = '\\n';\n                break;\n\n            case 'f':\n                ch = '\\f';\n                break;\n\n            case 'r':\n                ch = '\\r';\n                break;\n\n            // do nothing - ch already contains correct character\n            case '\"':\n            case '\\'':\n            case '\\\\':\n                break;\n        }\n\n        return ch;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "PARAM", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [18, 23], [19, 24], [20, 25], [21, 26], [22, 27], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 18], [24, 19], [25, 20], [26, 21], [27, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "charSetup", "code": "    public void charSetup(String str)\n    {\n        char ch = str.charAt(0);\n        if(ch == '\\\\')\n        {\n            // get next character\n            ch = str.charAt(1);\n\n            if(Character.isDigit(ch))\n                ch = (char)Integer.parseInt(str.substring(1), 8);\n            else\n                ch = getEscapeChar(ch);\n        }\n\n        value = new Primitive(new Character(ch).charValue());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [5, 8], [2, 9], [6, 10], [7, 11], [1, 12], [9, 13], [10, 14], [7, 15], [7, 16], [12, 17], [15, 18], [17, 19], [16, 20], [20, 21], [20, 22], [22, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 5], [9, 2], [10, 6], [11, 7], [12, 1], [13, 9], [14, 10], [15, 7], [16, 7], [17, 12], [18, 15], [19, 17], [20, 16], [21, 20], [22, 20], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "stringSetup", "code": "    void stringSetup(String str)\n    {\n        StringBuffer buffer = new StringBuffer();\n        for(int i = 0; i < str.length(); i++)\n        {\n            char ch = str.charAt(i);\n            if(ch == '\\\\')\n            {\n                // get next character\n                ch = str.charAt(++i);\n\n                if(Character.isDigit(ch))\n                {\n                    int endPos = i;\n\n                    // check the next two characters\n                    while(endPos < i + 2)\n                    {\n                        if(Character.isDigit(str.charAt(endPos + 1)))\n                            endPos++;\n                        else\n                            break;\n                    }\n\n                    ch = (char)Integer.parseInt(str.substring(i, endPos + 1), 8);\n                    i = endPos;\n                }\n                else\n                    ch = getEscapeChar(ch);\n            }\n\n            buffer.append(ch);\n        }\n\n        value = buffer.toString();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [1, 8], [5, 9], [2, 10], [1, 11], [7, 12], [1, 13], [7, 14], [12, 15], [8, 16], [14, 17], [7, 18], [14, 19], [14, 20], [14, 21], [18, 22], [19, 23], [14, 24], [14, 25], [20, 26], [20, 27], [26, 28], [25, 29], [27, 30], [27, 31], [28, 32], [29, 33], [29, 34], [31, 35], [34, 36], [35, 37], [36, 38], [37, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 1], [9, 5], [10, 2], [11, 1], [12, 7], [13, 1], [14, 7], [15, 12], [16, 8], [17, 14], [18, 7], [19, 14], [20, 14], [21, 14], [22, 18], [23, 19], [24, 14], [25, 14], [26, 20], [27, 20], [28, 26], [29, 25], [30, 27], [31, 27], [32, 28], [33, 29], [34, 29], [35, 31], [36, 34], [37, 35], [38, 36], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "BSHLiteral", "code": "    BSHLiteral(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-3.2-3690", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "bsh/BSHMethodDeclaration.java", "language": "java", "name": "bsh.BSHMethodDeclaration", "code": "class BSHMethodDeclaration extends SimpleNode\n{\n\tString name;\n\tBSHFormalParameters params;\n\tBSHBlock block;\n\tObject returnType; \t// null (none), Primitive.VOID, or a Class\n\n\tBSHMethodDeclaration(int id)\n\t{\n\t\tsuper(id);\n\t}\n\n\t/**\n\t\tEvaluate the declaration of the method.  That is, determine the\n\t\tstructure of the method and install it into the caller's namespace.\n\t\n\t\tSince the structure of the method is only determined by type evaluation\n\t\t(through eval of BSHFormalParameters) we do not need the interpreter \n\t\tor callstack.\n\t*/\n\tpublic Object eval( NameSpace namespace )  \n\t\tthrows EvalError\n\t{\n\t\tif ( block == null ) \n\t\t{\n\t\t\t// We will allow methods to be re-written.\n\t\t\t/*  \n\t\t\tif( namespace has method )\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\"Method: \" + name + \" already defined in scope\", this);\n\t\t\t*/\n\n\t\t\tif(jjtGetNumChildren() == 3)\n\t\t\t{\n\t\t\t\treturnType = \n\t\t\t\t\t((BSHReturnType)jjtGetChild(0)).getReturnType( namespace );\n\t\t\t\tparams = (BSHFormalParameters)jjtGetChild(1);\n\t\t\t\tblock = (BSHBlock)jjtGetChild(2);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparams = (BSHFormalParameters)jjtGetChild(0);\n\t\t\t\tblock = (BSHBlock)jjtGetChild(1);\n\t\t\t}\n\t\t\tparams.eval( namespace );\n\n\t\t\t// if strictJava mode, check for loose parameters and return type\n\t\t\tif ( Interpreter.strictJava )\n\t\t\t{\n\t\t\t\tfor(int i=0; i<params.argTypes.length; i++)\n\t\t\t\t\tif ( params.argTypes[i] == null )\n\t\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"(Strict Java Mode) Undeclared argument type, parameter: \" +\n\t\t\t\t\t\tparams.argNames[i] + \" in method: \" \n\t\t\t\t\t\t+ name, this );\n\n\t\t\t\tif ( returnType == null )\n\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"(Strict Java Mode) Undeclared return type for method: \"\n\t\t\t\t\t\t+ name, this );\n\t\t\t}\n\t\t}\n\n\t\t// Install an *instance* of this method in the namespace.\n\t\t// See notes in BshMethod \n\n// This is not good...\n// need a way to update eval without re-installing...\n// so that we can re-eval params, etc. when classloader changes\n// look into this\n\t\tnamespace.setMethod( name, new BshMethod( this, namespace ) );\n\n\t\treturn Primitive.VOID;\n\t}\n\n\tpublic String toString() {\n\t\treturn \"MethodDeclaration: \"+name;", "functions": [{"function_name": "eval", "code": "\tpublic Object eval( NameSpace namespace )  \n\t\tthrows EvalError\n\t{\n\t\tif ( block == null ) \n\t\t{\n\t\t\t// We will allow methods to be re-written.\n\t\t\t/*  \n\t\t\tif( namespace has method )\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\"Method: \" + name + \" already defined in scope\", this);\n\t\t\t*/\n\n\t\t\tif(jjtGetNumChildren() == 3)\n\t\t\t{\n\t\t\t\treturnType = \n\t\t\t\t\t((BSHReturnType)jjtGetChild(0)).getReturnType( namespace );\n\t\t\t\tparams = (BSHFormalParameters)jjtGetChild(1);\n\t\t\t\tblock = (BSHBlock)jjtGetChild(2);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparams = (BSHFormalParameters)jjtGetChild(0);\n\t\t\t\tblock = (BSHBlock)jjtGetChild(1);\n\t\t\t}\n\t\t\tparams.eval( namespace );\n\n\t\t\t// if strictJava mode, check for loose parameters and return type\n\t\t\tif ( Interpreter.strictJava )\n\t\t\t{\n\t\t\t\tfor(int i=0; i<params.argTypes.length; i++)\n\t\t\t\t\tif ( params.argTypes[i] == null )\n\t\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"(Strict Java Mode) Undeclared argument type, parameter: \" +\n\t\t\t\t\t\tparams.argNames[i] + \" in method: \" \n\t\t\t\t\t\t+ name, this );\n\n\t\t\t\tif ( returnType == null )\n\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"(Strict Java Mode) Undeclared return type for method: \"\n\t\t\t\t\t\t+ name, this );\n\t\t\t}\n\t\t}\n\n\t\t// Install an *instance* of this method in the namespace.\n\t\t// See notes in BshMethod \n\n// This is not good...\n// need a way to update eval without re-installing...\n// so that we can re-eval params, etc. when classloader changes\n// look into this\n\t\tnamespace.setMethod( name, new BshMethod( this, namespace ) );\n\n\t\treturn Primitive.VOID;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "LOOP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [2, 7], [2, 8], [5, 9], [2, 10], [8, 11], [7, 12], [7, 13], [11, 14], [11, 15], [12, 16], [12, 17], [13, 18], [13, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [16, 25], [17, 26], [18, 27], [18, 28], [25, 29], [27, 30], [28, 31], [13, 32], [20, 33], [21, 34], [22, 35], [23, 36], [24, 37], [29, 38], [30, 39], [33, 40], [34, 41], [35, 42], [36, 43], [37, 44], [39, 45], [45, 46], [45, 47], [47, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [7, 2], [8, 2], [9, 5], [10, 2], [11, 8], [12, 7], [13, 7], [14, 11], [15, 11], [16, 12], [17, 12], [18, 13], [19, 13], [20, 8], [21, 8], [22, 8], [23, 8], [24, 8], [25, 16], [26, 17], [27, 18], [28, 18], [29, 25], [30, 27], [31, 28], [32, 13], [33, 20], [34, 21], [35, 22], [36, 23], [37, 24], [38, 29], [39, 30], [40, 33], [41, 34], [42, 35], [43, 36], [44, 37], [45, 39], [46, 45], [47, 45], [48, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "toString", "code": "\tpublic String toString() {\n\t\treturn \"MethodDeclaration: \"+name;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BSHMethodDeclaration", "code": "\tBSHMethodDeclaration(int id)\n\t{\n\t\tsuper(id);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.4-6489", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/util/ResultTreeType.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.ResultTreeType", "code": "public final class ResultTreeType extends Type {\n    private final String _methodName;\n\n    protected ResultTreeType() {\n\t_methodName = null;\n    }\n\n    public ResultTreeType(String methodName) {\n\t_methodName = methodName;\n    }\n\n    public String toString() {\n\treturn \"result-tree\";\n    }\n\n    public boolean identicalTo(Type other) {\n\treturn (other instanceof ResultTreeType);\n    }\n\n    public String toSignature() {\n\treturn DOM_INTF_SIG;\n    }\n\n    public org.apache.bcel.generic.Type toJCType() {\n\treturn Util.getJCRefType(toSignature());\n    }\n\n    public String getMethodName() {\n\treturn _methodName;\n    }\n\n    public boolean implementedAsMethod() {\n\treturn _methodName != null;\n    }\n\n    /**\n     * Translates a result tree to object of internal type <code>type</code>. \n     * The translation to int is undefined since result trees\n     * are always converted to reals in arithmetic expressions.\n     *\n     * @param classGen A BCEL class generator\n     * @param methodGen A BCEL method generator\n     * @param type An instance of the type to translate the result tree to\n     * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType)type);\n\t}\n\telse if (type == Type.Boolean) {\n\t    translateTo(classGen, methodGen, (BooleanType)type);\n\t}\n\telse if (type == Type.Real) {\n\t    translateTo(classGen, methodGen, (RealType)type);\n\t}\n\telse if (type == Type.NodeSet) {\n\t    translateTo(classGen, methodGen, (NodeSetType)type);\n\t}\n\telse if (type == Type.Reference) {\n\t    translateTo(classGen, methodGen, (ReferenceType)type);\n\t}\n\telse if (type == Type.Object) {\n\t    translateTo(classGen, methodGen, (ObjectType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n\n    /**\n     * Expects an result tree on the stack and pushes a boolean.\n     * Translates a result tree to a boolean by first converting it to string.\n     *\n     * @param classGen A BCEL class generator\n     * @param methodGen A BCEL method generator\n     * @param type An instance of BooleanType (any)\n     * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    BooleanType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n    }\n\n    /**\n     * Expects an result tree on the stack and pushes a string.\n     *\n     * @param classGen A BCEL class generator\n     * @param methodGen A BCEL method generator\n     * @param type An instance of StringType (any)\n     * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\t\n\tif (_methodName == null) {\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  \"getStringValue\", \n\t\t\t\t\t\t  \"()\"+STRING_SIG);\n\t    il.append(new INVOKEINTERFACE(index, 1));\n\t}\n\telse {\n\t    final String className = classGen.getClassName();\n\t    final int current = methodGen.getLocalIndex(\"current\");\n\t    \n\t    il.append(classGen.loadTranslet());\n\t    if (classGen.isExternal()) {\n\t\til.append(new CHECKCAST(cpg.addClass(className)));\n\t    }\n\t    il.append(DUP);\n\t    il.append(new GETFIELD(cpg.addFieldref(className, \"_dom\",\n\t\t\t\t\t\t   DOM_INTF_SIG)));\n\n\t    int index = cpg.addMethodref(STRING_VALUE_HANDLER, \"<init>\", \"()V\");\n\t    il.append(new NEW(cpg.addClass(STRING_VALUE_HANDLER)));\n\t    il.append(DUP);\n\t    il.append(DUP);\n\t    il.append(new INVOKESPECIAL(index));\n\t    \n\t    final LocalVariableGen handler =\n\t\tmethodGen.addLocalVariable(\"rt_to_string_handler\", \n\t\t\t\t\t   Util.getJCRefType(STRING_VALUE_HANDLER_SIG),\n\t\t\t\t\t   null, null);\n\t    il.append(new ASTORE(handler.getIndex()));\n\n\t    index = cpg.addMethodref(className, _methodName,\n\t\t\t\t     \"(\"+DOM_INTF_SIG+TRANSLET_OUTPUT_SIG+\")V\");\n\t    il.append(new INVOKEVIRTUAL(index));\n\t    \n\t    il.append(new ALOAD(handler.getIndex()));\n\t    index = cpg.addMethodref(STRING_VALUE_HANDLER,\n\t\t\t\t     \"getValue\",\n\t\t\t\t     \"()\" + STRING_SIG);\n\t    il.append(new INVOKEVIRTUAL(index));\n\t}\n    }\n\n    /**\n     * Expects an result tree on the stack and pushes a real.\n     * Translates a result tree into a real by first converting it to string.\n     *\n     * @param classGen A BCEL class generator\n     * @param methodGen A BCEL method generator\n     * @param type An instance of RealType (any)\n     * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    RealType type) {\n\ttranslateTo(classGen, methodGen, Type.String);\n\tType.String.translateTo(classGen, methodGen, Type.Real);\t\n    }\n\n    /**\n     * Expects a result tree on the stack and pushes a boxed result tree.\n     * Result trees are already boxed so the translation is just a NOP.\n     *\n     * @param classGen A BCEL class generator\n     * @param methodGen A BCEL method generator\n     * @param type An instance of ReferenceType (any)\n     * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ReferenceType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_methodName == null) {\n\t    il.append(NOP);\n\t}\n\telse {\n\t    LocalVariableGen domBuilder, newDom;\n\t    final String className = classGen.getClassName();\n\t    final int current = methodGen.getLocalIndex(\"current\");\n\n\t    il.append(classGen.loadTranslet());\n\t    if (classGen.isExternal()) {\n\t\til.append(new CHECKCAST(cpg.addClass(className)));\n\t    }\n\t    il.append(methodGen.loadDOM());\n\n\t    int index = cpg.addMethodref(DOM_IMPL, \"<init>\", \"(I)V\");\n\t    il.append(new NEW(cpg.addClass(DOM_IMPL)));\n\t    il.append(DUP);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, 64));\n\t    il.append(new INVOKESPECIAL(index));\n\t    \n\t    newDom = methodGen.addLocalVariable(\"rt_to_reference_dom\", \n\t\t\t\t\t\tUtil.getJCRefType(DOM_INTF_SIG),\n\t\t\t\t\t\tnull, null);\n\t    il.append(new CHECKCAST(cpg.addClass(DOM_INTF_SIG)));\n\t    il.append(new ASTORE(newDom.getIndex()));\n\n\t    index = cpg.addMethodref(DOM_IMPL,\n\t\t\t\t     \"getOutputDomBuilder\", \n\t\t\t\t     \"()\" + TRANSLET_OUTPUT_SIG);\n\t    il.append(new INVOKEVIRTUAL(index));\n\t    il.append(DUP);\n\t    il.append(DUP);\n\n\t    domBuilder =\n\t\tmethodGen.addLocalVariable(\"rt_to_reference_handler\", \n\t\t\t\t\t   Util.getJCRefType(TRANSLET_OUTPUT_SIG),\n\t\t\t\t\t   null, null);\n\t    il.append(new ASTORE(domBuilder.getIndex()));\n\n\t    index = cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE, \n\t\t\t\t\t      \"startDocument\", \"()V\");\n\t    il.append(new INVOKEINTERFACE(index, 1));\n\n\t    index = cpg.addMethodref(className,\n\t\t\t\t     _methodName,\n\t\t\t\t     \"(\"\n\t\t\t\t     + DOM_INTF_SIG\n\t\t\t\t     + TRANSLET_OUTPUT_SIG\n\t\t\t\t     +\")V\");\n\t    il.append(new INVOKEVIRTUAL(index));\n\n\t    il.append(new ALOAD(domBuilder.getIndex()));\n\t    index = cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE, \n\t\t\t\t\t      \"endDocument\", \"()V\");\n\t    il.append(new INVOKEINTERFACE(index, 1));\n\n\t    il.append(new ALOAD(newDom.getIndex()));\n\t}\n    }\n\n    /**\n     * Expects a result tree on the stack and pushes a node-set (iterator).\n     * Note that the produced iterator is an iterator for the DOM that\n     * contains the result tree, and not the DOM that is currently in use.\n     * This conversion here will therefore not directly work with elements\n     * such as <xsl:apply-templates> and <xsl:for-each> without the DOM\n     * parameter/variable being updates as well.\n     *\n     * @param classGen A BCEL class generator\n     * @param methodGen A BCEL method generator\n     * @param type An instance of NodeSetType (any)\n     * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    NodeSetType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(DUP);\n\n\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t       NAMES_INDEX,\n\t\t\t\t\t       NAMES_INDEX_SIG)));\n\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t       NAMESPACE_INDEX,\n\t\t\t\t\t       NAMESPACE_INDEX_SIG)));\n\tfinal int mapping = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"setupMapping\",\n\t\t\t\t\t\t      \"([\"+STRING_SIG+\n\t\t\t\t\t\t      \"[\"+STRING_SIG+\")V\");\n\til.append(new INVOKEINTERFACE(mapping, 3));\n\til.append(DUP);\n\n\tfinal int iter = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t   \"getChildren\",\n\t\t\t\t\t\t   \"(I)\"+NODE_ITERATOR_SIG);\n\til.append(new PUSH(cpg, DOM.ROOTNODE));\n\til.append(new INVOKEINTERFACE(iter, 2));\n    }\n\n    /**\n     * Subsume result tree into ObjectType.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ObjectType type) {\n\tmethodGen.getInstructionList().append(NOP);\t\n    }\n\n    /**\n     * Translates a result tree into a non-synthesized boolean.\n     * It does not push a 0 or a 1 but instead returns branchhandle list\n     * to be appended to the false list.\n     *\n     * @param classGen A BCEL class generator\n     * @param methodGen A BCEL method generator\n     * @param type An instance of BooleanType (any)\n     * @see org.apache.xalan.xsltc.compiler.util.Type#translateToDesynthesized\n     */\n    public FlowList translateToDesynthesized(ClassGenerator classGen, \n\t\t\t\t\t     MethodGenerator methodGen, \n\t\t\t\t\t     BooleanType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\ttranslateTo(classGen, methodGen, Type.Boolean);\n\treturn new FlowList(il.append(new IFEQ(null)));\n    }\n\n    /**\n     * Translates a result tree to a Java type denoted by <code>clazz</code>. \n     * Expects a result tree on the stack and pushes an object\n     * of the appropriate type after coercion. Result trees are translated\n     * to W3C Node or W3C NodeList and the translation is done\n     * via node-set type.\n     *\n     * @param classGen A BCEL class generator\n     * @param methodGen A BCEL method generator\n     * @param type An reference to the Class to translate to\n     * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Class clazz) {\n\tfinal String className = clazz.getName();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (className.equals(\"org.w3c.dom.Node\")) {\n\t    translateTo(classGen, methodGen, Type.NodeSet);\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE,\n\t\t\t\t\t\t  MAKE_NODE_SIG2);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse if (className.equals(\"org.w3c.dom.NodeList\")) {\n\t    translateTo(classGen, methodGen, Type.NodeSet);\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE_LIST,\n\t\t\t\t\t\t  MAKE_NODE_LIST_SIG2);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse if (className.equals(\"java.lang.Object\")) {\n\t    il.append(NOP);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), className);\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n\n    /**\n     * Translates an object of this type to its boxed representation.\n     */ \n    public void translateBox(ClassGenerator classGen,\n\t\t\t     MethodGenerator methodGen) {\n\ttranslateTo(classGen, methodGen, Type.Reference);\n    }\n\n    /**\n     * Translates an object of this type to its unboxed representation.\n     */ \n    public void translateUnBox(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tmethodGen.getInstructionList().append(NOP);\n    }\n\n    /**\n     * Returns the class name of an internal type's external representation.\n     */\n    public String getClassName() {\n\treturn(DOM_INTF);\n    }\n\n    public Instruction LOAD(int slot) {\n\treturn new ALOAD(slot);\n    }\n\t\n    public Instruction STORE(int slot) {\n\treturn new ASTORE(slot);", "functions": [{"function_name": "toString", "code": "    public String toString() {\n\treturn \"result-tree\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "identicalTo", "code": "    public boolean identicalTo(Type other) {\n\treturn (other instanceof ResultTreeType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toSignature", "code": "    public String toSignature() {\n\treturn DOM_INTF_SIG;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toJCType", "code": "    public org.apache.bcel.generic.Type toJCType() {\n\treturn Util.getJCRefType(toSignature());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMethodName", "code": "    public String getMethodName() {\n\treturn _methodName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "implementedAsMethod", "code": "    public boolean implementedAsMethod() {\n\treturn _methodName != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType)type);\n\t}\n\telse if (type == Type.Boolean) {\n\t    translateTo(classGen, methodGen, (BooleanType)type);\n\t}\n\telse if (type == Type.Real) {\n\t    translateTo(classGen, methodGen, (RealType)type);\n\t}\n\telse if (type == Type.NodeSet) {\n\t    translateTo(classGen, methodGen, (NodeSetType)type);\n\t}\n\telse if (type == Type.Reference) {\n\t    translateTo(classGen, methodGen, (ReferenceType)type);\n\t}\n\telse if (type == Type.Object) {\n\t    translateTo(classGen, methodGen, (ObjectType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [7, 9], [7, 10], [1, 11], [9, 12], [9, 13], [5, 14], [12, 15], [12, 16], [7, 17], [15, 18], [9, 19], [15, 20], [12, 21], [15, 22], [15, 23], [22, 24], [20, 25], [25, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 7], [10, 7], [11, 1], [12, 9], [13, 9], [14, 5], [15, 12], [16, 12], [17, 7], [18, 15], [19, 9], [20, 15], [21, 12], [22, 15], [23, 15], [24, 22], [25, 20], [26, 25], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    BooleanType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\t\n\tif (_methodName == null) {\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  \"getStringValue\", \n\t\t\t\t\t\t  \"()\"+STRING_SIG);\n\t    il.append(new INVOKEINTERFACE(index, 1));\n\t}\n\telse {\n\t    final String className = classGen.getClassName();\n\t    final int current = methodGen.getLocalIndex(\"current\");\n\t    \n\t    il.append(classGen.loadTranslet());\n\t    if (classGen.isExternal()) {\n\t\til.append(new CHECKCAST(cpg.addClass(className)));\n\t    }\n\t    il.append(DUP);\n\t    il.append(new GETFIELD(cpg.addFieldref(className, \"_dom\",\n\t\t\t\t\t\t   DOM_INTF_SIG)));\n\n\t    int index = cpg.addMethodref(STRING_VALUE_HANDLER, \"<init>\", \"()V\");\n\t    il.append(new NEW(cpg.addClass(STRING_VALUE_HANDLER)));\n\t    il.append(DUP);\n\t    il.append(DUP);\n\t    il.append(new INVOKESPECIAL(index));\n\t    \n\t    final LocalVariableGen handler =\n\t\tmethodGen.addLocalVariable(\"rt_to_string_handler\", \n\t\t\t\t\t   Util.getJCRefType(STRING_VALUE_HANDLER_SIG),\n\t\t\t\t\t   null, null);\n\t    il.append(new ASTORE(handler.getIndex()));\n\n\t    index = cpg.addMethodref(className, _methodName,\n\t\t\t\t     \"(\"+DOM_INTF_SIG+TRANSLET_OUTPUT_SIG+\")V\");\n\t    il.append(new INVOKEVIRTUAL(index));\n\t    \n\t    il.append(new ALOAD(handler.getIndex()));\n\t    index = cpg.addMethodref(STRING_VALUE_HANDLER,\n\t\t\t\t     \"getValue\",\n\t\t\t\t     \"()\" + STRING_SIG);\n\t    il.append(new INVOKEVIRTUAL(index));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [7, 14], [2, 15], [3, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [10, 29], [1, 30], [1, 31], [17, 32], [18, 33], [19, 34], [20, 35], [21, 36], [22, 37], [8, 38], [23, 39], [26, 40], [9, 41], [27, 42], [30, 43], [11, 44], [12, 45], [31, 46], [13, 47], [33, 48], [33, 49], [34, 50], [36, 51], [37, 52], [38, 53], [38, 54], [38, 55], [38, 56], [40, 57], [41, 58], [41, 59], [42, 60], [10, 61], [44, 62], [46, 63], [47, 64], [47, 65], [48, 66], [51, 67], [51, 68], [60, 69], [61, 70], [64, 71], [68, 72], [70, 73], [72, 74], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 7], [15, 2], [16, 3], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 10], [30, 1], [31, 1], [32, 17], [33, 18], [34, 19], [35, 20], [36, 21], [37, 22], [38, 8], [39, 23], [40, 26], [41, 9], [42, 27], [43, 30], [44, 11], [45, 12], [46, 31], [47, 13], [48, 33], [49, 33], [50, 34], [51, 36], [52, 37], [53, 38], [54, 38], [55, 38], [56, 38], [57, 40], [58, 41], [59, 41], [60, 42], [61, 10], [62, 44], [63, 46], [64, 47], [65, 47], [66, 48], [67, 51], [68, 51], [69, 60], [70, 61], [71, 64], [72, 68], [73, 70], [74, 72], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    RealType type) {\n\ttranslateTo(classGen, methodGen, Type.String);\n\tType.String.translateTo(classGen, methodGen, Type.Real);\t", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ReferenceType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (_methodName == null) {\n\t    il.append(NOP);\n\t}\n\telse {\n\t    LocalVariableGen domBuilder, newDom;\n\t    final String className = classGen.getClassName();\n\t    final int current = methodGen.getLocalIndex(\"current\");\n\n\t    il.append(classGen.loadTranslet());\n\t    if (classGen.isExternal()) {\n\t\til.append(new CHECKCAST(cpg.addClass(className)));\n\t    }\n\t    il.append(methodGen.loadDOM());\n\n\t    int index = cpg.addMethodref(DOM_IMPL, \"<init>\", \"(I)V\");\n\t    il.append(new NEW(cpg.addClass(DOM_IMPL)));\n\t    il.append(DUP);\n\t    il.append(DUP);\n\t    il.append(new PUSH(cpg, 64));\n\t    il.append(new INVOKESPECIAL(index));\n\t    \n\t    newDom = methodGen.addLocalVariable(\"rt_to_reference_dom\", \n\t\t\t\t\t\tUtil.getJCRefType(DOM_INTF_SIG),\n\t\t\t\t\t\tnull, null);\n\t    il.append(new CHECKCAST(cpg.addClass(DOM_INTF_SIG)));\n\t    il.append(new ASTORE(newDom.getIndex()));\n\n\t    index = cpg.addMethodref(DOM_IMPL,\n\t\t\t\t     \"getOutputDomBuilder\", \n\t\t\t\t     \"()\" + TRANSLET_OUTPUT_SIG);\n\t    il.append(new INVOKEVIRTUAL(index));\n\t    il.append(DUP);\n\t    il.append(DUP);\n\n\t    domBuilder =\n\t\tmethodGen.addLocalVariable(\"rt_to_reference_handler\", \n\t\t\t\t\t   Util.getJCRefType(TRANSLET_OUTPUT_SIG),\n\t\t\t\t\t   null, null);\n\t    il.append(new ASTORE(domBuilder.getIndex()));\n\n\t    index = cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE, \n\t\t\t\t\t      \"startDocument\", \"()V\");\n\t    il.append(new INVOKEINTERFACE(index, 1));\n\n\t    index = cpg.addMethodref(className,\n\t\t\t\t     _methodName,\n\t\t\t\t     \"(\"\n\t\t\t\t     + DOM_INTF_SIG\n\t\t\t\t     + TRANSLET_OUTPUT_SIG\n\t\t\t\t     +\")V\");\n\t    il.append(new INVOKEVIRTUAL(index));\n\n\t    il.append(new ALOAD(domBuilder.getIndex()));\n\t    index = cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE, \n\t\t\t\t\t      \"endDocument\", \"()V\");\n\t    il.append(new INVOKEINTERFACE(index, 1));\n\n\t    il.append(new ALOAD(newDom.getIndex()));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [7, 13], [2, 14], [3, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [9, 39], [1, 40], [1, 41], [16, 42], [17, 43], [18, 44], [19, 45], [20, 46], [21, 47], [22, 48], [23, 49], [24, 50], [25, 51], [28, 52], [29, 53], [30, 54], [31, 55], [32, 56], [33, 57], [34, 58], [37, 59], [8, 60], [38, 61], [40, 62], [10, 63], [11, 64], [42, 65], [43, 66], [44, 67], [44, 68], [45, 69], [47, 70], [48, 71], [49, 72], [49, 73], [50, 74], [51, 75], [51, 76], [51, 77], [51, 78], [53, 79], [53, 80], [54, 81], [55, 82], [56, 83], [56, 84], [56, 85], [56, 86], [58, 87], [59, 88], [60, 89], [60, 90], [9, 91], [63, 92], [70, 93], [70, 94], [79, 95], [91, 96], [94, 97], [96, 98], [97, 99], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 7], [14, 2], [15, 3], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 9], [40, 1], [41, 1], [42, 16], [43, 17], [44, 18], [45, 19], [46, 20], [47, 21], [48, 22], [49, 23], [50, 24], [51, 25], [52, 28], [53, 29], [54, 30], [55, 31], [56, 32], [57, 33], [58, 34], [59, 37], [60, 8], [61, 38], [62, 40], [63, 10], [64, 11], [65, 42], [66, 43], [67, 44], [68, 44], [69, 45], [70, 47], [71, 48], [72, 49], [73, 49], [74, 50], [75, 51], [76, 51], [77, 51], [78, 51], [79, 53], [80, 53], [81, 54], [82, 55], [83, 56], [84, 56], [85, 56], [86, 56], [87, 58], [88, 59], [89, 60], [90, 60], [91, 9], [92, 63], [93, 70], [94, 70], [95, 79], [96, 91], [97, 94], [98, 96], [99, 97], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    NodeSetType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(DUP);\n\n\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t       NAMES_INDEX,\n\t\t\t\t\t       NAMES_INDEX_SIG)));\n\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t       NAMESPACE_INDEX,\n\t\t\t\t\t       NAMESPACE_INDEX_SIG)));\n\tfinal int mapping = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"setupMapping\",\n\t\t\t\t\t\t      \"([\"+STRING_SIG+\n\t\t\t\t\t\t      \"[\"+STRING_SIG+\")V\");\n\til.append(new INVOKEINTERFACE(mapping, 3));\n\til.append(DUP);\n\n\tfinal int iter = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t   \"getChildren\",\n\t\t\t\t\t\t   \"(I)\"+NODE_ITERATOR_SIG);\n\til.append(new PUSH(cpg, DOM.ROOTNODE));\n\til.append(new INVOKEINTERFACE(iter, 2));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [8, 15], [9, 16], [1, 17], [11, 18], [2, 19], [12, 20], [13, 21], [3, 22], [4, 23], [15, 24], [17, 25], [17, 26], [18, 27], [19, 28], [19, 29], [20, 30], [21, 31], [25, 32], [28, 33], [28, 34], [34, 35], [35, 36], [35, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 8], [16, 9], [17, 1], [18, 11], [19, 2], [20, 12], [21, 13], [22, 3], [23, 4], [24, 15], [25, 17], [26, 17], [27, 18], [28, 19], [29, 19], [30, 20], [31, 21], [32, 25], [33, 28], [34, 28], [35, 34], [36, 35], [37, 35], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    ObjectType type) {\n\tmethodGen.getInstructionList().append(NOP);\t", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translateToDesynthesized", "code": "    public FlowList translateToDesynthesized(ClassGenerator classGen, \n\t\t\t\t\t     MethodGenerator methodGen, \n\t\t\t\t\t     BooleanType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\ttranslateTo(classGen, methodGen, Type.Boolean);\n\treturn new FlowList(il.append(new IFEQ(null)));", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [6, 8], [2, 9], [8, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 6], [9, 2], [10, 8], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Class clazz) {\n\tfinal String className = clazz.getName();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tif (className.equals(\"org.w3c.dom.Node\")) {\n\t    translateTo(classGen, methodGen, Type.NodeSet);\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE,\n\t\t\t\t\t\t  MAKE_NODE_SIG2);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse if (className.equals(\"org.w3c.dom.NodeList\")) {\n\t    translateTo(classGen, methodGen, Type.NodeSet);\n\t    int index = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  MAKE_NODE_LIST,\n\t\t\t\t\t\t  MAKE_NODE_LIST_SIG2);\n\t    il.append(new INVOKEINTERFACE(index, 2));\n\t}\n\telse if (className.equals(\"java.lang.Object\")) {\n\t    il.append(NOP);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), className);\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "CALL", "IF", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [8, 11], [1, 12], [9, 13], [2, 14], [3, 15], [4, 16], [10, 17], [8, 18], [11, 19], [1, 20], [1, 21], [10, 22], [17, 23], [8, 24], [8, 25], [20, 26], [12, 27], [10, 28], [10, 29], [24, 30], [18, 31], [26, 32], [28, 33], [22, 34], [30, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 8], [12, 1], [13, 9], [14, 2], [15, 3], [16, 4], [17, 10], [18, 8], [19, 11], [20, 1], [21, 1], [22, 10], [23, 17], [24, 8], [25, 8], [26, 20], [27, 12], [28, 10], [29, 10], [30, 24], [31, 18], [32, 26], [33, 28], [34, 22], [35, 30], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "translateBox", "code": "    public void translateBox(ClassGenerator classGen,\n\t\t\t     MethodGenerator methodGen) {\n\ttranslateTo(classGen, methodGen, Type.Reference);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translateUnBox", "code": "    public void translateUnBox(ClassGenerator classGen,\n\t\t\t       MethodGenerator methodGen) {\n\tmethodGen.getInstructionList().append(NOP);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getClassName", "code": "    public String getClassName() {\n\treturn(DOM_INTF);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "LOAD", "code": "    public Instruction LOAD(int slot) {\n\treturn new ALOAD(slot);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "STORE", "code": "    public Instruction STORE(int slot) {\n\treturn new ASTORE(slot);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ResultTreeType", "code": "    protected ResultTreeType() {\n\t_methodName = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ResultTreeType", "code": "    public ResultTreeType(String methodName) {\n\t_methodName = methodName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-2640", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/cxf/CxfSoapComponent.java", "language": "java", "name": "org.apache.camel.component.cxf.CxfSoapComponent", "code": "public class CxfSoapComponent extends DefaultComponent implements HeaderFilterStrategyAware {\n\n    private HeaderFilterStrategy headerFilterStrategy;\n\n    public CxfSoapComponent() {\n        setHeaderFilterStrategy(new CxfHeaderFilterStrategy());\n    }\n    \n    @Override\n    protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        Map soapProps = IntrospectionSupport.extractProperties(parameters, \"soap.\");\n        if (parameters.size() > 0) {\n            remaining += \"?\" + URISupport.createQueryString(parameters);\n        }\n        Endpoint endpoint = CamelContextHelper.getMandatoryEndpoint(getCamelContext(), remaining);\n        CxfSoapEndpoint soapEndpoint = new CxfSoapEndpoint(endpoint, getHeaderFilterStrategy());\n        setProperties(soapEndpoint, soapProps);\n        soapEndpoint.init();\n        return soapEndpoint;\n    }\n\n    @Override\n    protected boolean useIntrospectionOnEndpoint() {\n        return false;\n    }\n\n    public HeaderFilterStrategy getHeaderFilterStrategy() {\n        return headerFilterStrategy;\n    }\n\n    public void setHeaderFilterStrategy(HeaderFilterStrategy strategy) {\n        headerFilterStrategy = strategy;", "functions": [{"function_name": "createEndpoint", "code": "    @Override\n    protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        Map soapProps = IntrospectionSupport.extractProperties(parameters, \"soap.\");\n        if (parameters.size() > 0) {\n            remaining += \"?\" + URISupport.createQueryString(parameters);\n        }\n        Endpoint endpoint = CamelContextHelper.getMandatoryEndpoint(getCamelContext(), remaining);\n        CxfSoapEndpoint soapEndpoint = new CxfSoapEndpoint(endpoint, getHeaderFilterStrategy());\n        setProperties(soapEndpoint, soapProps);\n        soapEndpoint.init();\n        return soapEndpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [4, 11], [2, 12], [3, 13], [11, 14], [11, 15], [5, 16], [12, 17], [13, 18], [4, 19], [16, 20], [19, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 4], [12, 2], [13, 3], [14, 11], [15, 11], [16, 5], [17, 12], [18, 13], [19, 4], [20, 16], [21, 19], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "useIntrospectionOnEndpoint", "code": "    @Override\n    protected boolean useIntrospectionOnEndpoint() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeaderFilterStrategy", "code": "    public HeaderFilterStrategy getHeaderFilterStrategy() {\n        return headerFilterStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHeaderFilterStrategy", "code": "    public void setHeaderFilterStrategy(HeaderFilterStrategy strategy) {\n        headerFilterStrategy = strategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CxfSoapComponent", "code": "    public CxfSoapComponent() {\n        setHeaderFilterStrategy(new CxfHeaderFilterStrategy());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.5-5710", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/FooterRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.FooterRecord", "code": "public class FooterRecord\n    extends Record\n{\n    public final static short sid = 0x15;\n    private byte              field_1_footer_len;\n    private String            field_2_footer;\n\n    public FooterRecord()\n    {\n    }\n\n    /**\n     * Constructs a FooterRecord record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x15 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public FooterRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a FooterRecord record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x15 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public FooterRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A FooterRECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        if (size > 0)\n        {\n            field_1_footer_len = data[ 0 + offset ];\n                                            LittleEndian.ubyteToInt( field_1_footer_len );\n        }\n    }\n\n    /**\n     * set the length of the footer string\n     *\n     * @param len  length of the footer string\n     * @see #setFooter(String)\n     */\n\n    public void setFooterLength(byte len)\n    {\n        field_1_footer_len = len;\n    }\n\n    /**\n     * set the footer string\n     *\n     * @param footer string to display\n     * @see #setFooterLength(byte)\n     */\n\n    public void setFooter(String footer)\n    {\n        field_2_footer = footer;\n    }\n\n    /**\n     * get the length of the footer string\n     *\n     * @return length of the footer string\n     * @see #getFooter()\n     */\n\n    public short getFooterLength()\n    {\n    }\n\n    /**\n     * get the footer string\n     *\n     * @return footer string to display\n     * @see #getFooterLength()\n     */\n\n    public String getFooter()\n    {\n        return field_2_footer;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[FOOTER]\\n\");\n        buffer.append(\"    .footerlen      = \")\n            .append(Integer.toHexString(getFooterLength())).append(\"\\n\");\n        buffer.append(\"    .footer         = \").append(getFooter())\n            .append(\"\\n\");\n        buffer.append(\"[/FOOTER]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        int len = 4;\n\n        if (getFooterLength() > 0)\n        {\n        }\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,\n                              ( short ) ((len - 4) + getFooterLength()));\n        if (getFooterLength() > 0)\n        {\n            data[ 4 + offset ] = (byte)getFooterLength();\n        }\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        int retval = 4;\n\n        if (getFooterLength() > 0)\n        {\n        }\n        return retval + getFooterLength();\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      FooterRecord rec = new FooterRecord();\n      rec.field_1_footer_len = field_1_footer_len;\n      rec.field_2_footer = field_2_footer;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A FooterRECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        if (size > 0)\n        {\n            field_1_footer_len = data[ 0 + offset ];\n                                            LittleEndian.ubyteToInt( field_1_footer_len );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [1, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 1], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setFooterLength", "code": "    public void setFooterLength(byte len)\n    {\n        field_1_footer_len = len;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFooter", "code": "    public void setFooter(String footer)\n    {\n        field_2_footer = footer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFooterLength", "code": "    public short getFooterLength()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getFooter", "code": "    public String getFooter()\n    {\n        return field_2_footer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[FOOTER]\\n\");\n        buffer.append(\"    .footerlen      = \")\n            .append(Integer.toHexString(getFooterLength())).append(\"\\n\");\n        buffer.append(\"    .footer         = \").append(getFooter())\n            .append(\"\\n\");\n        buffer.append(\"[/FOOTER]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [5, 10], [5, 11], [6, 12], [6, 13], [6, 14], [7, 15], [2, 16], [10, 17], [11, 18], [13, 19], [14, 20], [20, 21], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 5], [11, 5], [12, 6], [13, 6], [14, 6], [15, 7], [16, 2], [17, 10], [18, 11], [19, 13], [20, 14], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        int len = 4;\n\n        if (getFooterLength() > 0)\n        {\n        }\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,\n                              ( short ) ((len - 4) + getFooterLength()));\n        if (getFooterLength() > 0)\n        {\n            data[ 4 + offset ] = (byte)getFooterLength();\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [0, 10], [3, 11], [8, 12], [8, 13], [9, 14], [10, 15], [11, 16], [11, 17], [4, 18], [2, 19], [9, 20], [14, 21], [15, 22], [20, 23], [20, 24], [19, 25], [24, 26], [19, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 0], [11, 3], [12, 8], [13, 8], [14, 9], [15, 10], [16, 11], [17, 11], [18, 4], [19, 2], [20, 9], [21, 14], [22, 15], [23, 20], [24, 20], [25, 19], [26, 24], [27, 19], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        int retval = 4;\n\n        if (getFooterLength() > 0)\n        {\n        }\n        return retval + getFooterLength();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [5, 7], [5, 8], [3, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 5], [8, 5], [9, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      FooterRecord rec = new FooterRecord();\n      rec.field_1_footer_len = field_1_footer_len;\n      rec.field_2_footer = field_2_footer;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "FooterRecord", "code": "    public FooterRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FooterRecord", "code": "    public FooterRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "FooterRecord", "code": "    public FooterRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.6-758", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/rmic/KaffeRmic.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.rmic.KaffeRmic", "code": "public class KaffeRmic extends DefaultRmicAdapter {\n    private static final String[] RMIC_CLASSNAMES = new String[] {\n        \"gnu.classpath.tools.rmi.rmic.RMIC\",\n        \"gnu.java.rmi.rmic.RMIC\",\n        \"kaffe.rmi.rmic.RMIC\",\n    };\n\n    /**\n     * the name of this adapter for users to select\n     */\n    public static final String COMPILER_NAME = \"kaffe\";\n\n\n    public boolean execute() throws BuildException {\n        getRmic().log(\"Using Kaffe rmic\", Project.MSG_VERBOSE);\n        Commandline cmd = setupRmicCommand();\n\n        Class c = getRmicClass();\n        if (c == null) {\n            StringBuffer buf = new StringBuffer(\"Cannot use Kaffe rmic, as it\"\n                                                + \" is not available.  None\"\n                                                + \" of \");\n            for (int i = 0; i < RMIC_CLASSNAMES.length; i++) {\n                if (i != 0) {\n                    buf.append(\", \");\n                }\n                \n                buf.append(RMIC_CLASSNAMES[i]);\n            }\n            buf.append(\" have been found. A common solution is to set the\"\n                       + \" environment variable JAVA_HOME or CLASSPATH.\");\n            throw new BuildException(buf.toString(),\n                                     getRmic().getLocation());\n        }\n\n        cmd.setExecutable(c.getName());\n        ExecuteJava ej = new ExecuteJava();\n        ej.setJavaCommand(cmd);\n        return ej.fork(getRmic()) == 0;\n    }\n\n    /**\n     * test for kaffe being on the system\n     * @return true if kaffe is on the current classpath\n     */\n    public static boolean isAvailable() {\n        return getRmicClass() != null;\n    }\n\n    /**\n     * tries to load Kaffe RMIC and falls back to the older class name\n     * if necessary.\n     *\n     * @return null if neither class can get loaded.\n     */\n    private static Class getRmicClass() {\n        for (int i = 0; i < RMIC_CLASSNAMES.length; i++) {\n            try {\n                return Class.forName(RMIC_CLASSNAMES[i]);\n            } catch (ClassNotFoundException cnfe) {\n            }\n        }\n        return null;", "functions": [{"function_name": "execute", "code": "    public boolean execute() throws BuildException {\n        getRmic().log(\"Using Kaffe rmic\", Project.MSG_VERBOSE);\n        Commandline cmd = setupRmicCommand();\n\n        Class c = getRmicClass();\n        if (c == null) {\n            StringBuffer buf = new StringBuffer(\"Cannot use Kaffe rmic, as it\"\n                                                + \" is not available.  None\"\n                                                + \" of \");\n            for (int i = 0; i < RMIC_CLASSNAMES.length; i++) {\n                if (i != 0) {\n                    buf.append(\", \");\n                }\n                \n                buf.append(RMIC_CLASSNAMES[i]);\n            }\n            buf.append(\" have been found. A common solution is to set the\"\n                       + \" environment variable JAVA_HOME or CLASSPATH.\");\n            throw new BuildException(buf.toString(),\n                                     getRmic().getLocation());\n        }\n\n        cmd.setExecutable(c.getName());\n        ExecuteJava ej = new ExecuteJava();\n        ej.setJavaCommand(cmd);\n        return ej.fork(getRmic()) == 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "THROW_RAISE", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [3, 9], [0, 10], [6, 11], [6, 12], [2, 13], [8, 14], [3, 15], [3, 16], [3, 17], [9, 18], [4, 19], [5, 20], [10, 21], [12, 22], [15, 23], [3, 24], [16, 25], [21, 26], [23, 27], [23, 28], [24, 29], [16, 30], [17, 31], [27, 32], [29, 33], [29, 34], [16, 35], [30, 36], [16, 37], [31, 38], [36, 39], [38, 40], [38, 41], [30, 42], [41, 43], [41, 44], [42, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 3], [10, 0], [11, 6], [12, 6], [13, 2], [14, 8], [15, 3], [16, 3], [17, 3], [18, 9], [19, 4], [20, 5], [21, 10], [22, 12], [23, 15], [24, 3], [25, 16], [26, 21], [27, 23], [28, 23], [29, 24], [30, 16], [31, 17], [32, 27], [33, 29], [34, 29], [35, 16], [36, 30], [37, 16], [38, 31], [39, 36], [40, 38], [41, 38], [42, 30], [43, 41], [44, 41], [45, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "isAvailable", "code": "    public static boolean isAvailable() {\n        return getRmicClass() != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getRmicClass", "code": "    private static Class getRmicClass() {\n        for (int i = 0; i < RMIC_CLASSNAMES.length; i++) {\n            try {\n                return Class.forName(RMIC_CLASSNAMES[i]);\n            } catch (ClassNotFoundException cnfe) {\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "CATCH", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [5, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [7, 5], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "poi-2.5-5873", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/poifs/property/Parent.java", "language": "java", "name": "org.apache.poi.poifs.property.Parent", "code": "public interface Parent\n    extends Child\n{\n\n    /**\n     * Get an iterator over the children of this Parent; all elements\n     * are instances of Property.\n     *\n     * @return Iterator of children; may refer to an empty collection\n     */\n\n    public Iterator getChildren();\n\n    /**\n     * Add a new child to the collection of children\n     *\n     * @param property the new child to be added; must not be null\n     *\n     * @exception IOException if the Parent already has a child with\n     *                        the same name\n     */\n\n    public void addChild(final Property property)\n        throws IOException;\n\n    /**\n     * Set the previous Child\n     *\n     * @param child the new 'previous' child; may be null, which has\n     *              the effect of saying there is no 'previous' child\n     */\n\n    public void setPreviousChild(final Child child);\n\n    /**\n     * Set the next Child\n     *\n     * @param child the new 'next' child; may be null, which has the\n     *              effect of saying there is no 'next' child\n     */\n\n    public void setNextChild(final Child child);", "functions": [{"function_name": "getChildren", "code": "    public Iterator getChildren();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "addChild", "code": "    public void addChild(final Property property)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPreviousChild", "code": "    public void setPreviousChild(final Child child);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNextChild", "code": "    public void setNextChild(final Child child);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.2-4321", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/textarea/TextAreaExtension.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.TextAreaExtension", "code": "public abstract class TextAreaExtension\n{\n\t//{{{ paintScreenLineRange() method\n\t/**\n\t * Paints a range of screen lines. The default implementation calls\n\t * {@link #paintValidLine(Graphics2D,int,int,int,int,int)} and\n\t * {@link #paintInvalidLine(Graphics2D,int,int)}.\n\t * @param gfx A graphics context\n\t * @param firstLine The first screen line\n\t * @param lastLine The last screen line\n\t * @param physicalLines The list of physical line numbers. Entries are\n\t * -1 if the screen line is out of range.\n\t * @param start An array of screen line start offsets.\n\t * @param end An array of screen line end offsets\n\t * @param y The y co-ordinate\n\t * @param lineHeight The line height\n\t * @since jEdit 4.2pre2\n\t */\n\tpublic void paintScreenLineRange(Graphics2D gfx, int firstLine,\n\t\tint lastLine, int[] physicalLines, int[] start, int[] end,\n\t\tint y, int lineHeight)\n\t{\n\t\tfor(int i = 0; i < physicalLines.length; i++)\n\t\t{\n\t\t\tint screenLine = i + firstLine;\n\t\t\tif(physicalLines[i] == -1)\n\t\t\t\tpaintInvalidLine(gfx,screenLine,y);\n\t\t\telse\n\t\t\t{\n\t\t\t\tpaintValidLine(gfx,screenLine,physicalLines[i],\n\t\t\t\t\tstart[i],end[i],y);\n\t\t\t}\n\n\t\t\ty += lineHeight;\n\t\t}\n\t} //}}}\n\n\t//{{{ paintValidLine() method\n\t/**\n\t * Called by the text area when the extension is to paint a\n\t * screen line which has an associated physical line number in\n\t * the buffer. Note that since one physical line may consist of\n\t * several screen lines due to soft wrap, the start and end\n\t * offsets of the screen line are passed in as well.\n\t *\n\t * @param gfx The graphics context\n\t * @param screenLine The screen line number\n\t * @param physicalLine The physical line number\n\t * @param start The offset where the screen line begins, from\n\t * the start of the buffer\n\t * @param end The offset where the screen line ends, from the\n\t * start of the buffer\n\t * @param y The y co-ordinate of the top of the line's\n\t * bounding box\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic void paintValidLine(Graphics2D gfx, int screenLine,\n\t\tint physicalLine, int start, int end, int y) {} //}}}\n\n\t//{{{ paintInvalidLine() method\n\t/**\n\t * Called by the text area when the extension is to paint a\n\t * screen line which is not part of the buffer. This can happen\n\t * if the buffer is shorter than the height of the text area,\n\t * for example.\n\t *\n\t * @param gfx The graphics context\n\t * @param screenLine The screen line number\n\t * @param y The y co-ordinate of the top of the line's\n\t * bounding box\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic void paintInvalidLine(Graphics2D gfx, int screenLine,\n\t\tint y) {} //}}}\n\n\t//{{{ getToolTipText() method\n\t/**\n\t * Called by the text area when the mouse hovers over the\n\t * location specified in the mouse event.\n\t *\n\t * @param x The x co-ordinate\n\t * @param y The y co-ordinate\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic String getToolTipText(int x, int y)\n\t{\n\t\treturn null;", "functions": [{"function_name": "paintScreenLineRange", "code": "\tpublic void paintScreenLineRange(Graphics2D gfx, int firstLine,\n\t\tint lastLine, int[] physicalLines, int[] start, int[] end,\n\t\tint y, int lineHeight)\n\t{\n\t\tfor(int i = 0; i < physicalLines.length; i++)\n\t\t{\n\t\t\tint screenLine = i + firstLine;\n\t\t\tif(physicalLines[i] == -1)\n\t\t\t\tpaintInvalidLine(gfx,screenLine,y);\n\t\t\telse\n\t\t\t{\n\t\t\t\tpaintValidLine(gfx,screenLine,physicalLines[i],\n\t\t\t\t\tstart[i],end[i],y);\n\t\t\t}\n\n\t\t\ty += lineHeight;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [11, 14], [1, 15], [11, 16], [14, 17], [12, 18], [11, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 11], [15, 1], [16, 11], [17, 14], [18, 12], [19, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "paintValidLine", "code": "\tpublic void paintValidLine(Graphics2D gfx, int screenLine,\n\t\tint physicalLine, int start, int end, int y) {} //}}}", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "paintInvalidLine", "code": "\tpublic void paintInvalidLine(Graphics2D gfx, int screenLine,\n\t\tint y) {} //}}}", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getToolTipText", "code": "\tpublic String getToolTipText(int x, int y)\n\t{\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.0-3753", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/options/ColorOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.ColorOptionPane", "code": "public class ColorOptionPane extends AbstractOptionPane\n{\n\tpublic static final EmptyBorder noFocusBorder = new EmptyBorder(1,1,1,1);\n\n\t//{{{ ColorOptionPane constructor\n\tpublic ColorOptionPane()\n\t{\n\t\tsuper(\"color\");\n\t} //}}}\n\n\t//{{{ Protected members\n\n\t//{{{ _init() method\n\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\t\tadd(BorderLayout.CENTER,createColorTableScroller());\n\t} //}}}\n\n\t//{{{ _save() method\n\tprotected void _save()\n\t{\n\t\tcolorModel.save();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\tprivate ColorTableModel colorModel;\n\tprivate JTable colorTable;\n\n\t//{{{ createColorTableScroller() method\n\tprivate JScrollPane createColorTableScroller()\n\t{\n\t\tcolorModel = createColorTableModel();\n\t\tcolorTable = new JTable(colorModel);\n\t\tcolorTable.setRowSelectionAllowed(false);\n\t\tcolorTable.setColumnSelectionAllowed(false);\n\t\tcolorTable.setCellSelectionEnabled(false);\n\t\tcolorTable.getTableHeader().setReorderingAllowed(false);\n\t\tcolorTable.addMouseListener(new MouseHandler());\n\t\tTableColumnModel tcm = colorTable.getColumnModel();\n \t\tTableColumn colorColumn = tcm.getColumn(1);\n\t\tcolorColumn.setCellRenderer(new ColorTableModel.ColorRenderer());\n\t\tDimension d = colorTable.getPreferredSize();\n\t\td.height = Math.min(d.height,100);\n\t\tJScrollPane scroller = new JScrollPane(colorTable);\n\t\tscroller.setPreferredSize(d);\n\t\treturn scroller;\n\t} //}}}\n\n\t//{{{ createColorTableModel() method\n\tprivate ColorTableModel createColorTableModel()\n\t{\n\t\treturn new ColorTableModel();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ MouseHandler class\n\tclass MouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mouseClicked(MouseEvent evt)\n\t\t{\n\t\t\tint row = colorTable.rowAtPoint(evt.getPoint());\n\t\t\tif(row == -1)\n\t\t\t\treturn;\n\n\t\t\tColor color = JColorChooser.showDialog(\n\t\t\t\tColorOptionPane.this,\n\t\t\t\tjEdit.getProperty(\"colorChooser.title\"),\n\t\t\t\t(Color)colorModel.getValueAt(row,1));\n\t\t\tif(color != null)\n\t\t\t\tcolorModel.setValueAt(color,row,1);", "functions": [{"function_name": "_init", "code": "\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\t\tadd(BorderLayout.CENTER,createColorTableScroller());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "_save", "code": "\tprotected void _save()\n\t{\n\t\tcolorModel.save();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createColorTableScroller", "code": "\tprivate JScrollPane createColorTableScroller()\n\t{\n\t\tcolorModel = createColorTableModel();\n\t\tcolorTable = new JTable(colorModel);\n\t\tcolorTable.setRowSelectionAllowed(false);\n\t\tcolorTable.setColumnSelectionAllowed(false);\n\t\tcolorTable.setCellSelectionEnabled(false);\n\t\tcolorTable.getTableHeader().setReorderingAllowed(false);\n\t\tcolorTable.addMouseListener(new MouseHandler());\n\t\tTableColumnModel tcm = colorTable.getColumnModel();\n \t\tTableColumn colorColumn = tcm.getColumn(1);\n\t\tcolorColumn.setCellRenderer(new ColorTableModel.ColorRenderer());\n\t\tDimension d = colorTable.getPreferredSize();\n\t\td.height = Math.min(d.height,100);\n\t\tJScrollPane scroller = new JScrollPane(colorTable);\n\t\tscroller.setPreferredSize(d);\n\t\treturn scroller;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [7, 17], [3, 18], [8, 19], [4, 20], [5, 21], [9, 22], [10, 23], [11, 24], [12, 25], [13, 26], [14, 27], [15, 28], [17, 29], [20, 30], [23, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 7], [18, 3], [19, 8], [20, 4], [21, 5], [22, 9], [23, 10], [24, 11], [25, 12], [26, 13], [27, 14], [28, 15], [29, 17], [30, 20], [31, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "createColorTableModel", "code": "\tprivate ColorTableModel createColorTableModel()\n\t{\n\t\treturn new ColorTableModel();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ColorOptionPane", "code": "\tpublic ColorOptionPane()\n\t{\n\t\tsuper(\"color\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.2-4303", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/msg/BufferUpdate.java", "language": "java", "name": "org.gjt.sp.jedit.msg.BufferUpdate", "code": "public class BufferUpdate extends EBMessage\n{\n\t//{{{ Message types\n\t/**\n\t * Buffer created.\n\t */\n\tpublic static final Object CREATED = \"CREATED\";\n\n\t/**\n\t * Buffer load started.\n\t * @since jEdit 2.6pre1\n\t */\n\tpublic static final Object LOAD_STARTED = \"LOAD_STARTED\";\n\n\t/**\n\t * Buffer loaded.\n\t */\n\tpublic static final Object LOADED = \"LOADED\";\n\n\t/**\n\t * Buffer closed.\n\t */\n\tpublic static final Object CLOSED = \"CLOSED\";\n\n\t/**\n\t * Buffer dirty changed.\n\t */\n\tpublic static final Object DIRTY_CHANGED = \"DIRTY_CHANGED\";\n\n\t/**\n\t * Buffer markers changed.\n\t */\n\tpublic static final Object MARKERS_CHANGED = \"MARKERS_CHANGED\";\n\n\t/**\n\t * Buffer saving.\n\t */\n\tpublic static final Object SAVING = \"SAVING\";\n\n\t/**\n\t * Buffer saved.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static final Object SAVED = \"SAVED\";\n\n\t/**\n\t * Properties changed.\n\t * @since jEdit 4.1pre1\n\t */\n\tpublic static final Object PROPERTIES_CHANGED = \"PROPERTIES_CHANGED\";\n\n\t/**\n\t * @deprecated No longer sent. Listen for PROPERTIES_CHANGED instead.\n\t */\n\tpublic static final Object MODE_CHANGED = \"MODE_CHANGED\";\n\t//}}}\n\n\t//{{{ BufferUpdate constructor\n\t/**\n\t * Creates a new buffer update message.\n\t * @param buffer The buffer\n\t * @param what What happened\n\t */\n\tpublic BufferUpdate(Buffer buffer, View view, Object what)\n\t{\n\t\tsuper(buffer);\n\n\t\tthis.view = view;\n\n\t\tif(what == null)\n\t\t\tthrow new NullPointerException(\"What must be non-null\");\n\n\t\tthis.what = what;\n\t} //}}}\n\n\t//{{{ getWhat() method\n\t/**\n\t * Returns what caused this buffer update.\n\t */\n\tpublic Object getWhat()\n\t{\n\t\treturn what;\n\t} //}}}\n\n\t//{{{ getBuffer() method\n\t/**\n\t * Returns the buffer involved.\n\t */\n\tpublic Buffer getBuffer()\n\t{\n\t\treturn (Buffer)getSource();\n\t} //}}}\n\n\t//{{{ getView() method\n\t/**\n\t * Returns the view involved, which may be null.\n\t */\n\tpublic View getView()\n\t{\n\t\treturn view;\n\t} //}}}\n\n\t//{{{ paramString() method\n\tpublic String paramString()\n\t{\n\t\treturn \"what=\" + what + \",view=\" + view + \",\"\n\t\t\t+ super.paramString();\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate Object what;\n\tprivate View view;", "functions": [{"function_name": "getWhat", "code": "\tpublic Object getWhat()\n\t{\n\t\treturn what;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBuffer", "code": "\tpublic Buffer getBuffer()\n\t{\n\t\treturn (Buffer)getSource();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getView", "code": "\tpublic View getView()\n\t{\n\t\treturn view;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "paramString", "code": "\tpublic String paramString()\n\t{\n\t\treturn \"what=\" + what + \",view=\" + view + \",\"", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "BufferUpdate", "code": "\tpublic BufferUpdate(Buffer buffer, View view, Object what)\n\t{\n\t\tsuper(buffer);\n\n\t\tthis.view = view;\n\n\t\tif(what == null)\n\t\t\tthrow new NullPointerException(\"What must be non-null\");\n\n\t\tthis.what = what;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "xalan-2.7-8537", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/CollatorFactoryBase.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.CollatorFactoryBase", "code": "public class CollatorFactoryBase implements CollatorFactory {\n    \n    public static final Locale DEFAULT_LOCALE = Locale.getDefault();\n    public static final Collator DEFAULT_COLLATOR = Collator.getInstance();\n    \n    public CollatorFactoryBase() {\n    }\n    \n    public Collator getCollator(String lang, String country) {\n        return Collator.getInstance(new Locale(lang, country));\n    }\n    \n    public Collator getCollator(Locale locale) {\n        if (locale == DEFAULT_LOCALE)\n            return DEFAULT_COLLATOR;\n        else\n            return Collator.getInstance(locale);", "functions": [{"function_name": "getCollator", "code": "    public Collator getCollator(String lang, String country) {\n        return Collator.getInstance(new Locale(lang, country));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getCollator", "code": "    public Collator getCollator(Locale locale) {\n        if (locale == DEFAULT_LOCALE)\n            return DEFAULT_COLLATOR;\n        else\n            return Collator.getInstance(locale);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "CollatorFactoryBase", "code": "    public CollatorFactoryBase() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.4-2075", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/cxf/CxfConsumer.java", "language": "java", "name": "org.apache.camel.component.cxf.CxfConsumer", "code": "public class CxfConsumer extends DefaultConsumer<CxfExchange> {\n    private CxfEndpoint endpoint;\n    private Server server;\n\n    public CxfConsumer(CxfEndpoint endpoint, Processor processor) throws Exception {\n\n        super(endpoint, processor);\n        Bus bus = null;\n        this.endpoint = endpoint;\n        boolean isWebServiceProvider = false;\n        if (endpoint.getApplicationContext() != null) {\n            SpringBusFactory bf = new SpringBusFactory(endpoint.getApplicationContext());\n            bus = bf.createBus();\n            if (CxfEndpointUtils.getSetDefaultBus(endpoint)) {\n                BusFactory.setDefaultBus(bus);\n            }\n        } else {\n            bus = BusFactory.getDefaultBus();\n        }\n        ServerFactoryBean svrBean = null;\n\n        if (endpoint.isSpringContextEndpoint()) {\n            CxfEndpointBean endpointBean = endpoint.getCxfEndpointBean();\n            svrBean = CxfEndpointUtils.getServerFactoryBean(endpointBean.getServiceClass());\n            isWebServiceProvider = CxfEndpointUtils.hasAnnotation(endpointBean.getServiceClass(),\n                                                                  WebServiceProvider.class);\n            endpoint.configure(svrBean);\n\n            Class serviceClass = ClassLoaderUtils.loadClass(endpoint.getServiceClass(), this.getClass());\n            svrBean = CxfEndpointUtils.getServerFactoryBean(serviceClass);\n            isWebServiceProvider = CxfEndpointUtils.hasAnnotation(serviceClass, WebServiceProvider.class);\n            svrBean.setAddress(endpoint.getAddress());\n            svrBean.setServiceClass(serviceClass);\n            if (endpoint.getServiceName() != null) {\n                svrBean.setServiceName(CxfEndpointUtils.getServiceName(endpoint));\n            }\n            if (endpoint.getPortName() != null) {\n                svrBean.setEndpointName(CxfEndpointUtils.getPortName(endpoint));\n            }\n            if (endpoint.getWsdlURL() != null) {\n                svrBean.setWsdlURL(endpoint.getWsdlURL());\n            }\n        }\n        DataFormat dataFormat = CxfEndpointUtils.getDataFormat(endpoint);\n\n        svrBean.setInvoker(new CamelInvoker(this));\n\n        if (!dataFormat.equals(DataFormat.POJO) && !isWebServiceProvider) {\n            List<AbstractFeature> features = new ArrayList<AbstractFeature>();\n\n            if (dataFormat.equals(DataFormat.PAYLOAD)) {\n                features.add(new PayLoadDataFormatFeature());\n            } else if (dataFormat.equals(DataFormat.MESSAGE)) {\n                features.add(new MessageDataFormatFeature());\n            }\n            svrBean.setFeatures(features);\n\n        }\n        svrBean.setBus(bus);\n        svrBean.setStart(false);\n        server = svrBean.create();\n\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n\n        server.start();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        server.stop();\n        super.doStop();\n    }\n\n    public CxfEndpoint getEndpoint() {\n        return endpoint;", "functions": [{"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n\n        server.start();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        server.stop();\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEndpoint", "code": "    public CxfEndpoint getEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "CxfConsumer", "code": "    public CxfConsumer(CxfEndpoint endpoint, Processor processor) throws Exception {\n\n        super(endpoint, processor);\n        Bus bus = null;\n        this.endpoint = endpoint;\n        boolean isWebServiceProvider = false;\n        if (endpoint.getApplicationContext() != null) {\n            SpringBusFactory bf = new SpringBusFactory(endpoint.getApplicationContext());\n            bus = bf.createBus();\n            if (CxfEndpointUtils.getSetDefaultBus(endpoint)) {\n                BusFactory.setDefaultBus(bus);\n            }\n        } else {\n            bus = BusFactory.getDefaultBus();\n        }\n        ServerFactoryBean svrBean = null;\n\n        if (endpoint.isSpringContextEndpoint()) {\n            CxfEndpointBean endpointBean = endpoint.getCxfEndpointBean();\n            svrBean = CxfEndpointUtils.getServerFactoryBean(endpointBean.getServiceClass());\n            isWebServiceProvider = CxfEndpointUtils.hasAnnotation(endpointBean.getServiceClass(),\n                                                                  WebServiceProvider.class);\n            endpoint.configure(svrBean);\n\n            Class serviceClass = ClassLoaderUtils.loadClass(endpoint.getServiceClass(), this.getClass());\n            svrBean = CxfEndpointUtils.getServerFactoryBean(serviceClass);\n            isWebServiceProvider = CxfEndpointUtils.hasAnnotation(serviceClass, WebServiceProvider.class);\n            svrBean.setAddress(endpoint.getAddress());\n            svrBean.setServiceClass(serviceClass);\n            if (endpoint.getServiceName() != null) {\n                svrBean.setServiceName(CxfEndpointUtils.getServiceName(endpoint));\n            }\n            if (endpoint.getPortName() != null) {\n                svrBean.setEndpointName(CxfEndpointUtils.getPortName(endpoint));\n            }\n            if (endpoint.getWsdlURL() != null) {\n                svrBean.setWsdlURL(endpoint.getWsdlURL());\n            }\n        }\n        DataFormat dataFormat = CxfEndpointUtils.getDataFormat(endpoint);\n\n        svrBean.setInvoker(new CamelInvoker(this));\n\n        if (!dataFormat.equals(DataFormat.POJO) && !isWebServiceProvider) {\n            List<AbstractFeature> features = new ArrayList<AbstractFeature>();\n\n            if (dataFormat.equals(DataFormat.PAYLOAD)) {\n                features.add(new PayLoadDataFormatFeature());\n            } else if (dataFormat.equals(DataFormat.MESSAGE)) {\n                features.add(new MessageDataFormatFeature());\n            }\n            svrBean.setFeatures(features);\n\n        }\n        svrBean.setBus(bus);\n        svrBean.setStart(false);\n        server = svrBean.create();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [0, 14], [3, 15], [5, 16], [0, 17], [10, 18], [11, 19], [1, 20], [1, 21], [13, 22], [14, 23], [2, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [4, 30], [5, 31], [5, 32], [16, 33], [16, 34], [6, 35], [7, 36], [1, 37], [20, 38], [20, 39], [25, 40], [26, 41], [27, 42], [3, 43], [3, 44], [3, 45], [3, 46], [3, 47], [3, 48], [3, 49], [5, 50], [31, 51], [5, 52], [38, 53], [21, 54], [40, 55], [40, 56], [41, 57], [41, 58], [42, 59], [42, 60], [44, 61], [45, 62], [46, 63], [28, 64], [48, 65], [49, 66], [29, 67], [50, 68], [52, 69], [32, 70], [20, 71], [25, 72], [26, 73], [27, 74], [64, 75], [65, 76], [66, 77], [31, 78], [70, 79], [38, 80], [71, 81], [72, 82], [73, 83], [74, 84], [64, 85], [80, 86], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 0], [15, 3], [16, 5], [17, 0], [18, 10], [19, 11], [20, 1], [21, 1], [22, 13], [23, 14], [24, 2], [25, 3], [26, 3], [27, 3], [28, 3], [29, 3], [30, 4], [31, 5], [32, 5], [33, 16], [34, 16], [35, 6], [36, 7], [37, 1], [38, 20], [39, 20], [40, 25], [41, 26], [42, 27], [43, 3], [44, 3], [45, 3], [46, 3], [47, 3], [48, 3], [49, 3], [50, 5], [51, 31], [52, 5], [53, 38], [54, 21], [55, 40], [56, 40], [57, 41], [58, 41], [59, 42], [60, 42], [61, 44], [62, 45], [63, 46], [64, 28], [65, 48], [66, 49], [67, 29], [68, 50], [69, 52], [70, 32], [71, 20], [72, 25], [73, 26], [74, 27], [75, 64], [76, 65], [77, 66], [78, 31], [79, 70], [80, 38], [81, 71], [82, 72], [83, 73], [84, 74], [85, 64], [86, 80], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}], "label": 0}
{"sample_id": "ant-1.7-1025", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/Exit.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Exit", "code": "public class Exit extends Task {\n\n    private static class NestedCondition extends ConditionBase implements Condition {\n        public boolean eval() {\n            if (countConditions() != 1) {\n                throw new BuildException(\n                    \"A single nested condition is required.\");\n            }\n            return ((Condition) (getConditions().nextElement())).eval();\n        }\n    }\n\n    private String message;\n    private String ifCondition, unlessCondition;\n    private NestedCondition nestedCondition;\n    private Integer status;\n\n    /**\n     * A message giving further information on why the build exited.\n     *\n     * @param value message to output\n     */\n    public void setMessage(String value) {\n        this.message = value;\n    }\n\n    /**\n     * Only fail if a property of the given name exists in the current project.\n     * @param c property name\n     */\n    public void setIf(String c) {\n        ifCondition = c;\n    }\n\n    /**\n     * Only fail if a property of the given name does not\n     * exist in the current project.\n     * @param c property name\n     */\n    public void setUnless(String c) {\n        unlessCondition = c;\n    }\n\n    /**\n     * Set the status code to associate with the thrown Exception.\n     * @param i   the <code>int</code> status\n     */\n    public void setStatus(int i) {\n        status = new Integer(i);\n    }\n\n    /**\n     * Throw a <code>BuildException</code> to exit (fail) the build.\n     * If specified, evaluate conditions:\n     * A single nested condition is accepted, but requires that the\n     * <code>if</code>/<code>unless</code> attributes be omitted.\n     * If the nested condition evaluates to true, or the\n     * ifCondition is true or unlessCondition is false, the build will exit.\n     * The error message is constructed from the text fields, from\n     * the nested condition (if specified), or finally from\n     * the if and unless parameters (if present).\n     * @throws BuildException on error\n     */\n    public void execute() throws BuildException {\n        boolean fail = (nestedConditionPresent()) ? testNestedCondition()\n                     : (testIfCondition() && testUnlessCondition());\n        if (fail) {\n            String text = null;\n            if (message != null && message.trim().length() > 0) {\n                text = message.trim();\n            } else {\n                if (ifCondition != null && ifCondition.length() > 0\n                    && getProject().getProperty(ifCondition) != null) {\n                    text = \"if=\" + ifCondition;\n                }\n                if (unlessCondition != null && unlessCondition.length() > 0\n                    && getProject().getProperty(unlessCondition) == null) {\n                    if (text == null) {\n                        text = \"\";\n                    } else {\n                        text += \" and \";\n                    }\n                    text += \"unless=\" + unlessCondition;\n                }\n                if (nestedConditionPresent()) {\n                    text = \"condition satisfied\";\n                } else {\n                    if (text == null) {\n                        text = \"No message\";\n                    }\n                }\n            }\n            log(\"failing due to \" + text, Project.MSG_DEBUG);\n            throw ((status == null) ? new BuildException(text)\n             : new ExitStatusException(text, status.intValue()));\n        }\n    }\n\n    /**\n     * Set a multiline message.\n     * @param msg the message to display\n     */\n    public void addText(String msg) {\n        if (message == null) {\n            message = \"\";\n        }\n        message += getProject().replaceProperties(msg);\n    }\n\n    /**\n     * Add a condition element.\n     * @return <code>ConditionBase</code>.\n     * @since Ant 1.6.2\n     */\n    public ConditionBase createCondition() {\n        if (nestedCondition != null) {\n            throw new BuildException(\"Only one nested condition is allowed.\");\n        }\n        nestedCondition = new NestedCondition();\n        return nestedCondition;\n    }\n\n    /**\n     * test the if condition\n     * @return true if there is no if condition, or the named property exists\n     */\n    private boolean testIfCondition() {\n        if (ifCondition == null || \"\".equals(ifCondition)) {\n            return true;\n        }\n        return getProject().getProperty(ifCondition) != null;\n    }\n\n    /**\n     * test the unless condition\n     * @return true if there is no unless condition,\n     *  or there is a named property but it doesn't exist\n     */\n    private boolean testUnlessCondition() {\n        if (unlessCondition == null || \"\".equals(unlessCondition)) {\n            return true;\n        }\n        return getProject().getProperty(unlessCondition) == null;\n    }\n\n    /**\n     * test the nested condition\n     * @return true if there is none, or it evaluates to true\n     */\n    private boolean testNestedCondition() {\n        boolean result = nestedConditionPresent();\n\n        if (result && ifCondition != null || unlessCondition != null) {\n            throw new BuildException(\"Nested conditions \"\n                + \"not permitted in conjunction with if/unless attributes\");\n        }\n\n        return result && nestedCondition.eval();\n    }\n\n    /**\n     * test whether there is a nested condition.\n     * @return <code>boolean</code>.\n     */\n    private boolean nestedConditionPresent() {\n        return (nestedCondition != null);", "functions": [{"function_name": "setMessage", "code": "    public void setMessage(String value) {\n        this.message = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setIf", "code": "    public void setIf(String c) {\n        ifCondition = c;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setUnless", "code": "    public void setUnless(String c) {\n        unlessCondition = c;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStatus", "code": "    public void setStatus(int i) {\n        status = new Integer(i);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        boolean fail = (nestedConditionPresent()) ? testNestedCondition()\n                     : (testIfCondition() && testUnlessCondition());\n        if (fail) {\n            String text = null;\n            if (message != null && message.trim().length() > 0) {\n                text = message.trim();\n            } else {\n                if (ifCondition != null && ifCondition.length() > 0\n                    && getProject().getProperty(ifCondition) != null) {\n                    text = \"if=\" + ifCondition;\n                }\n                if (unlessCondition != null && unlessCondition.length() > 0\n                    && getProject().getProperty(unlessCondition) == null) {\n                    if (text == null) {\n                        text = \"\";\n                    } else {\n                        text += \" and \";\n                    }\n                    text += \"unless=\" + unlessCondition;\n                }\n                if (nestedConditionPresent()) {\n                    text = \"condition satisfied\";\n                } else {\n                    if (text == null) {\n                        text = \"No message\";\n                    }\n                }\n            }\n            log(\"failing due to \" + text, Project.MSG_DEBUG);\n            throw ((status == null) ? new BuildException(text)\n             : new ExitStatusException(text, status.intValue()));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "THROW_RAISE", "IF", "VAR_DECL", "COND_EXPR", "COND_EXPR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [1, 8], [4, 9], [6, 10], [6, 11], [6, 12], [7, 13], [7, 14], [7, 15], [8, 16], [4, 17], [4, 18], [4, 19], [9, 20], [9, 21], [5, 22], [10, 23], [10, 24], [13, 25], [15, 26], [16, 27], [17, 28], [18, 29], [19, 30], [4, 31], [20, 32], [20, 33], [21, 34], [17, 35], [18, 36], [29, 37], [29, 38], [30, 39], [30, 40], [31, 41], [33, 42], [35, 43], [17, 44], [18, 45], [36, 46], [37, 47], [37, 48], [38, 49], [38, 50], [19, 51], [39, 52], [39, 53], [40, 54], [40, 55], [43, 56], [44, 57], [45, 58], [46, 59], [48, 60], [49, 61], [49, 62], [50, 63], [51, 64], [53, 65], [54, 66], [54, 67], [55, 68], [35, 69], [58, 70], [36, 71], [36, 72], [64, 73], [69, 74], [71, 75], [72, 76], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 1], [9, 4], [10, 6], [11, 6], [12, 6], [13, 7], [14, 7], [15, 7], [16, 8], [17, 4], [18, 4], [19, 4], [20, 9], [21, 9], [22, 5], [23, 10], [24, 10], [25, 13], [26, 15], [27, 16], [28, 17], [29, 18], [30, 19], [31, 4], [32, 20], [33, 20], [34, 21], [35, 17], [36, 18], [37, 29], [38, 29], [39, 30], [40, 30], [41, 31], [42, 33], [43, 35], [44, 17], [45, 18], [46, 36], [47, 37], [48, 37], [49, 38], [50, 38], [51, 19], [52, 39], [53, 39], [54, 40], [55, 40], [56, 43], [57, 44], [58, 45], [59, 46], [60, 48], [61, 49], [62, 49], [63, 50], [64, 51], [65, 53], [66, 54], [67, 54], [68, 55], [69, 35], [70, 58], [71, 36], [72, 36], [73, 64], [74, 69], [75, 71], [76, 72], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76]]}, {"function_name": "addText", "code": "    public void addText(String msg) {\n        if (message == null) {\n            message = \"\";\n        }\n        message += getProject().replaceProperties(msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 4], [7, 5], [8, 1], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createCondition", "code": "    public ConditionBase createCondition() {\n        if (nestedCondition != null) {\n            throw new BuildException(\"Only one nested condition is allowed.\");\n        }\n        nestedCondition = new NestedCondition();\n        return nestedCondition;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [4, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 4], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "testIfCondition", "code": "    private boolean testIfCondition() {\n        if (ifCondition == null || \"\".equals(ifCondition)) {\n            return true;\n        }\n        return getProject().getProperty(ifCondition) != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [2, 7], [4, 8], [4, 9], [6, 10], [7, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 2], [8, 4], [9, 4], [10, 6], [11, 7], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "testUnlessCondition", "code": "    private boolean testUnlessCondition() {\n        if (unlessCondition == null || \"\".equals(unlessCondition)) {\n            return true;\n        }\n        return getProject().getProperty(unlessCondition) == null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [2, 7], [4, 8], [4, 9], [6, 10], [7, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 2], [8, 4], [9, 4], [10, 6], [11, 7], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "testNestedCondition", "code": "    private boolean testNestedCondition() {\n        boolean result = nestedConditionPresent();\n\n        if (result && ifCondition != null || unlessCondition != null) {\n            throw new BuildException(\"Nested conditions \"\n                + \"not permitted in conjunction with if/unless attributes\");\n        }\n\n        return result && nestedCondition.eval();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [5, 8], [5, 9], [3, 10], [7, 11], [8, 12], [9, 13], [11, 14], [13, 15], [14, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 5], [9, 5], [10, 3], [11, 7], [12, 8], [13, 9], [14, 11], [15, 13], [16, 14], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "nestedConditionPresent", "code": "    private boolean nestedConditionPresent() {\n        return (nestedCondition != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "ant-1.4-119", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/Echo.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Echo", "code": "public class Echo extends Task {\n    protected File file = null;\n    protected boolean append = false;\n    \n    protected int logLevel = Project.MSG_WARN;   \n    \n    /**\n     * Does the work.\n     *\n     * @exception BuildException if someting goes wrong with the build\n     */\n    public void execute() throws BuildException {\n        if (file == null) {\n            log(message, logLevel);\n        } else {\n            FileWriter out = null;\n            try {\n                out = new FileWriter(file.getAbsolutePath(), append);\n                out.write(message, 0, message.length());\n            } catch (IOException ioe) {\n                throw new BuildException(ioe, location);\n            } finally {\n                if (out != null) {\n                    try {\n                        out.close();\n                    } catch (IOException ioex) {}\n                }\n            }\n        }\n    }\n\n    /**\n     * Sets the message variable.\n     *\n     * @param msg Sets the value for the message variable.\n     */\n    public void setMessage(String msg) {\n        this.message = msg;\n    }\n\n    /**\n     * Sets the file attribute.\n     */\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    /**\n     * Shall we append to an existing file?\n     */\n    public void setAppend(boolean append) {\n        this.append = append;\n    }\n\n    /**\n     * Set a multiline message.\n     */\n    public void addText(String msg) {\n        message += \n            ProjectHelper.replaceProperties(project, msg, project.getProperties());\n    }\n\n    /**\n     * Set the logging level to one of\n     * <ul>\n     *  <li>error</li>\n     *  <li>warning</li>\n     *  <li>info</li>\n     *  <li>verbose</li>\n     *  <li>debug</li>\n     * <ul>\n     * <p>The default is &quot;warning&quot; to ensure that messages are\n     * displayed by default when using the -quiet command line option.</p>\n     */\n    public void setLevel(EchoLevel echoLevel) {\n        String option = echoLevel.getValue();\n        if (option.equals(\"error\")) {\n            logLevel = Project.MSG_ERR;\n        } else if (option.equals(\"warning\")) {\n            logLevel = Project.MSG_WARN;\n        } else if (option.equals(\"info\")) {\n            logLevel = Project.MSG_INFO;\n        } else if (option.equals(\"verbose\")) {\n            logLevel = Project.MSG_VERBOSE;\n        } else {\n            logLevel = Project.MSG_DEBUG;\n        }\n    }\n\n    public static class EchoLevel extends EnumeratedAttribute {\n        public String[] getValues() {\n            return new String[] {\"error\", \"warning\", \"info\", \"verbose\", \"debug\"};", "functions": [{"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (file == null) {\n            log(message, logLevel);\n        } else {\n            FileWriter out = null;\n            try {\n                out = new FileWriter(file.getAbsolutePath(), append);\n                out.write(message, 0, message.length());\n            } catch (IOException ioe) {\n                throw new BuildException(ioe, location);\n            } finally {\n                if (out != null) {\n                    try {\n                        out.close();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CATCH", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [3, 7], [1, 8], [6, 9], [7, 10], [3, 11], [3, 12], [4, 13], [6, 14], [9, 15], [10, 16], [11, 17], [11, 18], [12, 19], [14, 20], [19, 21], [14, 22], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 3], [8, 1], [9, 6], [10, 7], [11, 3], [12, 3], [13, 4], [14, 6], [15, 9], [16, 10], [17, 11], [18, 11], [19, 12], [20, 14], [21, 19], [22, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "setMessage", "code": "    public void setMessage(String msg) {\n        this.message = msg;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAppend", "code": "    public void setAppend(boolean append) {\n        this.append = append;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addText", "code": "    public void addText(String msg) {\n        message += \n            ProjectHelper.replaceProperties(project, msg, project.getProperties());", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setLevel", "code": "    public void setLevel(EchoLevel echoLevel) {\n        String option = echoLevel.getValue();\n        if (option.equals(\"error\")) {\n            logLevel = Project.MSG_ERR;\n        } else if (option.equals(\"warning\")) {\n            logLevel = Project.MSG_WARN;\n        } else if (option.equals(\"info\")) {\n            logLevel = Project.MSG_INFO;\n        } else if (option.equals(\"verbose\")) {\n            logLevel = Project.MSG_VERBOSE;\n        } else {\n            logLevel = Project.MSG_DEBUG;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [5, 8], [2, 9], [6, 10], [6, 11], [7, 12], [1, 13], [10, 14], [11, 15], [4, 16], [14, 17], [6, 18], [10, 19], [10, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 5], [9, 2], [10, 6], [11, 6], [12, 7], [13, 1], [14, 10], [15, 11], [16, 4], [17, 14], [18, 6], [19, 10], [20, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}], "label": 0}
{"sample_id": "ant-1.4-146", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/CompileTask.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.CompileTask", "code": "public class CompileTask extends Javac {\n\n    protected Vector taskList = new Vector();\n\n    /**\n     * add a new task entry on the task list\n     */\n    public Taskdef createTaskdef() {\n        Taskdef task = new Taskdef();\n        taskList.addElement(task);\n        return task;\n    }\n    \n    /**\n     * do all the real work in init\n     */\n    public void init() {\n        log(\"!! CompileTask is deprecated. !!\");\n        log(\"Use <taskdef> elements nested into <target>s instead\");\n\n        for (Enumeration e=taskList.elements(); e.hasMoreElements(); ) {\n            Taskdef task = (Taskdef)e.nextElement();\n            String source = task.getClassname().replace('.','/') + \".java\";\n            PatternSet.NameEntry include = super.createInclude();\n            include.setName(\"**/\" + source);\n        }\n\n        super.init();        \n        super.execute();        \n\n        for (Enumeration e=taskList.elements(); e.hasMoreElements(); ) {\n            Taskdef task = (Taskdef)e.nextElement();\n            task.init();\n        }\n\n    }\n\n    /**\n     * have execute do nothing\n     */\n    public void execute() {", "functions": [{"function_name": "createTaskdef", "code": "    public Taskdef createTaskdef() {\n        Taskdef task = new Taskdef();\n        taskList.addElement(task);\n        return task;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "init", "code": "    public void init() {\n        log(\"!! CompileTask is deprecated. !!\");\n        log(\"Use <taskdef> elements nested into <target>s instead\");\n\n        for (Enumeration e=taskList.elements(); e.hasMoreElements(); ) {\n            Taskdef task = (Taskdef)e.nextElement();\n            String source = task.getClassname().replace('.','/') + \".java\";\n            PatternSet.NameEntry include = super.createInclude();\n            include.setName(\"**/\" + source);\n        }\n\n        super.init();        \n        super.execute();        \n\n        for (Enumeration e=taskList.elements(); e.hasMoreElements(); ) {\n            Taskdef task = (Taskdef)e.nextElement();\n            task.init();", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [5, 11], [6, 12], [1, 13], [1, 14], [2, 15], [2, 16], [15, 17], [9, 18], [7, 19], [17, 20], [18, 21], [18, 22], [10, 23], [22, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 1], [4, 2], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 5], [12, 6], [13, 1], [14, 1], [15, 2], [16, 2], [17, 15], [18, 9], [19, 7], [20, 17], [21, 18], [22, 18], [23, 10], [24, 22], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "execute", "code": "    public void execute() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.3-4709", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/CompletionPopup.java", "language": "java", "name": "org.gjt.sp.jedit.gui.CompletionPopup", "code": "public class CompletionPopup extends JWindow\n{\n\t//{{{ interface Candidates\n\t/**\n\t * Candidates of completion.\n\t */\n\tpublic interface Candidates\n\t{\n\t\t/**\n\t\t * Returns the number of candidates.\n\t\t */\n\t\tpublic int getSize();\n\n\t\t/**\n\t\t * Returns whether this completion is still valid.\n\t\t */\n\t\tpublic boolean isValid();\n\n\t\t/**\n\t\t * Do the completion.\n\t\t */\n\t\tpublic void complete(int index);\n\t\n\t\t/**\n\t\t * Returns a component to render a cell for the index\n\t\t * in the popup.\n\t\t */\n\t\tpublic Component getCellRenderer(JList list, int index,\n\t\t\tboolean isSelected, boolean cellHasFocus);\n\n\t\t/**\n\t\t * Returns a description text shown when the index is\n\t\t * selected in the popup, or null if no description is\n\t\t * available.\n\t\t */\n\t\tpublic String getDescription(int index);\n\t} //}}}\n\n\t//{{{ CompletionPopup constructor\n\t/**\n\t * Create a completion popup.\n\t * It is not shown until reset() method is called with valid\n\t * candidates. All key events for the view are intercepted by\n\t * this popup untill end of completion.\n\t * @since jEdit 4.3pre13\n\t */ \n\tpublic CompletionPopup(View view)\n\t{\n\t\tsuper(view);\n\t\tthis.view = view;\n\t\tthis.keyHandler = new KeyHandler();\n\t\tthis.candidates = null;\n\t\tthis.list = new JList();\n\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.setCellRenderer(new CellRenderer());\n\t\tlist.addKeyListener(keyHandler);\n\t\tlist.addMouseListener(new MouseHandler());\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setFocusTraversalKeysEnabled(false);\n\t\t// stupid scrollbar policy is an attempt to work around\n\t\t// bugs people have been seeing with IBM's JDK -- 7 Sep 2000\n\t\tJScrollPane scroller = new JScrollPane(list,\n\t\t\tScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\tScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tcontent.add(scroller, BorderLayout.CENTER);\n\t\tsetContentPane(content);\n\t\taddWindowFocusListener(new WindowFocusHandler());\n\t}\n\n\tpublic CompletionPopup(View view, Point location)\n\t{\n\t\tthis(view);\n\t\tif (location != null)\n\t\t{\n\t\t\tsetLocation(location);\n\t\t}\n\t} //}}}\n\n\t//{{{ dispose() method\n\t/**\n\t * Quit completion.\n\t */\n\tpublic void dispose()\n\t{\n\t\tif (isDisplayable())\n\t\t{\n\t\t\tif (view.getKeyEventInterceptor() == keyHandler)\n\t\t\t{\n\t\t\t\tview.setKeyEventInterceptor(null);\n\t\t\t}\n\t\t\tsuper.dispose();\n\n\t\t\t// This is a workaround to ensure setting the\n\t\t\t// focus back to the textArea. Without this, the\n\t\t\t// focus gets lost after closing the popup in\n\t\t\t// some environments. It seems to be a bug in\n\t\t\t// J2SE 1.4 or 5.0. Probably it relates to the\n\t\t\t// following one.\n\t\t\t// \"Frame does not receives focus after closing\n\t\t\t// of the owned window\"\n\t\t\t// http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4810575\n\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tview.getTextArea().requestFocus();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} //}}}\n\n\t//{{{ reset() method\n\t/**\n\t * Start completion.\n\t * @param candidates The candidates of this completion\n\t * @param active Set focus to the popup\n\t */\n\tpublic void reset(Candidates candidates, boolean active)\n\t{\n\t\tif(candidates == null || !candidates.isValid()\n\t\t\t|| candidates.getSize() <= 0)\n\t\t{\n\t\t\tdispose();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.candidates = candidates;\n\t\tlist.setModel(new CandidateListModel());\n\t\tlist.setVisibleRowCount(Math.min(candidates.getSize(),8));\n\t\tpack();\n\t\tsetLocation(fitInScreen(getLocation(null),this,\n\t\t\tview.getTextArea().getPainter().getFontMetrics().getHeight()));\n\t\tif (active)\n\t\t{\n\t\t\tsetSelectedIndex(0);\n\t\t\tGUIUtilities.requestFocus(this,list);\n\t\t}\n\t\tsetVisible(true);\n\t\tview.setKeyEventInterceptor(keyHandler);\n\t} //}}}\n\n\t//{{{ getCandidates() method\n\t/**\n\t * Current candidates of completion.\n\t */\n\tpublic Candidates getCandidates()\n\t{\n\t\treturn candidates;\n\t} //}}}\n\n\t//{{{ getSelectedIndex() method\n\t/**\n\t * Returns index of current selection.\n\t * Returns -1 if nothing is selected.\n\t */\n\tpublic int getSelectedIndex()\n\t{\n\t\treturn list.getSelectedIndex();\n\t} //}}}\n\n\t//{{{ setSelectedIndex() method\n\t/**\n\t * Set selection.\n\t */\n\tpublic void setSelectedIndex(int index)\n\t{\n\t\tif (candidates != null\n\t\t\t&& 0 <= index && index < candidates.getSize())\n\t\t{\n\t\t\tlist.setSelectedIndex(index);\n\t\t\tlist.ensureIndexIsVisible(index);\n\t\t\tString description = candidates.getDescription(index);\n\t\t\tif (description != null)\n\t\t\t{\n\t\t\t\tview.getStatus().setMessageAndClear(description);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ doSelectedCompletion() method\n\t/**\n\t * Do completion with current selection and quit.\n\t */\n\tpublic boolean doSelectedCompletion()\n\t{\n\t\tint selected = list.getSelectedIndex();\n\t\tif (candidates != null &&\n\t\t\t0 <= selected && selected < candidates.getSize())\n\t\t{\n\t\t\tcandidates.complete(selected);\n\t\t\tdispose();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ keyPressed() medhod\n\t/**\n\t * Handle key pressed events.\n\t * Override this method to make additional key handing.\n\t */\n\tprotected void keyPressed(KeyEvent e)\n\t{\n\t} //}}}\n\n\t//{{{ keyTyped() medhod\n\t/**\n\t * Handle key typed events.\n\t * Override this method to make additional key handing.\n\t */\n\tprotected void keyTyped(KeyEvent e)\n\t{\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate final View view;\n\tprivate final KeyHandler keyHandler;\n\tprivate Candidates candidates;\n\tprivate final JList list;\n\t//}}}\n\n\t//{{{ fitInScreen() method\n\tprivate static Point fitInScreen(Point p, Window w, int lineHeight)\n\t{\n\t\tRectangle screenSize = w.getGraphicsConfiguration().getBounds();\n\t\tif(p.y + w.getHeight() >= screenSize.height)\n\t\t\tp.y = p.y - w.getHeight() - lineHeight;\n\t\treturn p;\n\t} //}}}\n\n\t//{{{ moveRelative method()\n\tprivate void moveRelative(int n)\n\t{\n\t\tint selected = list.getSelectedIndex();\n\n\t\tint newSelect = selected + n;\n\t\tif (newSelect < 0)\n\t\t{\n\t\t\tnewSelect = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint numItems = list.getModel().getSize();\n\t\t\tif(numItems < 1)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(newSelect >= numItems)\n\t\t\t{\n\t\t\t\tnewSelect = numItems - 1;\n\t\t\t}\n\t\t}\n\n\t\tif(newSelect != selected)\n\t\t{\n\t\t\tsetSelectedIndex(newSelect);\n\t\t}\n\t} //}}}\n\n\t//{{{ moveRelativePages() method\n\tprivate void moveRelativePages(int n)\n\t{\n\t\tint pageSize = list.getVisibleRowCount() - 1;\n\t\tmoveRelative(pageSize * n);\n\t} //}}}\n\n\t//{{{ passKeyEventToView() method\n\tprivate void passKeyEventToView(KeyEvent e)\n\t{\n\t\t// Remove intercepter to avoid infinite recursion.\n\t\tassert (view.getKeyEventInterceptor() == keyHandler);\n\t\tview.setKeyEventInterceptor(null);\n\n\t\t// Here depends on an implementation detail.\n\t\t// Use ACTION_BAR to force processing KEY_TYPED event in\n\t\t// the implementation of gui.InputHandler.processKeyEvent().\n\t\tview.getInputHandler().processKeyEvent(e, View.ACTION_BAR, false);\n\n\t\t// Restore keyHandler only if this popup is still alive.\n\t\t// The key event might trigger dispose() of this popup.\n\t\tif (this.isDisplayable())\n\t\t{\n\t\t\tview.setKeyEventInterceptor(keyHandler);\n\t\t}\n\t} //}}}\n\n\t//{{{ CandidateListModel class\n\tprivate class CandidateListModel extends AbstractListModel\n\t{\n\t\tpublic int getSize()\n\t\t{\n\t\t\treturn candidates.getSize();\n\t\t}\n\n\t\tpublic Object getElementAt(int index)\n\t\t{\n\t\t\t// This value is not used.\n\t\t\t// The list is only rendered by components\n\t\t\t// returned by getCellRenderer().\n\t\t\treturn candidates;\n\t\t}\n\t} //}}}\n\n\t//{{{ CellRenderer class\n\tprivate class CellRenderer implements ListCellRenderer\n\t{\n\t\tpublic Component getListCellRendererComponent(JList list,\n\t\t\tObject value, int index,\n\t\t\tboolean isSelected, boolean cellHasFocus)\n\t\t{\n\t\t\treturn candidates.getCellRenderer(list, index,\n\t\t\t\tisSelected, cellHasFocus);\n\t\t}\n\t} //}}}\n\n\t//{{{ KeyHandler class\n\tprivate class KeyHandler extends KeyAdapter\n\t{\n\t\t//{{{ keyPressed() method\n\t\tpublic void keyPressed(KeyEvent e)\n\t\t{\n\t\t\tCompletionPopup.this.keyPressed(e);\n\n\t\t\tif (candidates == null || !candidates.isValid())\n\t\t\t{\n\t\t\t\tdispose();\n\t\t\t}\n\t\t\telse if (!e.isConsumed())\n\t\t\t{\n\t\t\t\tswitch(e.getKeyCode())\n\t\t\t\t{\n\t\t\t\tcase KeyEvent.VK_TAB:\n\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\tif (doSelectedCompletion())\n\t\t\t\t\t{\n\t\t\t\t\t\te.consume();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tdispose();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_ESCAPE:\n\t\t\t\t\tdispose();\n\t\t\t\t\te.consume();\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_UP:\n\t\t\t\t\tmoveRelative(-1);\n\t\t\t\t\te.consume();\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_DOWN:\n\t\t\t\t\tmoveRelative(1);\n\t\t\t\t\te.consume();\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_PAGE_UP:\n\t\t\t\t\tmoveRelativePages(-1);\n\t\t\t\t\te.consume();\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_PAGE_DOWN:\n\t\t\t\t\tmoveRelativePages(1);\n\t\t\t\t\te.consume();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif(e.isActionKey()\n\t\t\t\t\t\t|| e.isControlDown()\n\t\t\t\t\t\t|| e.isAltDown()\n\t\t\t\t\t\t|| e.isMetaDown())\n\t\t\t\t\t{\n\t\t\t\t\t\tdispose();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!e.isConsumed())\n\t\t\t{\n\t\t\t\tpassKeyEventToView(e);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ keyTyped() method\n\t\tpublic void keyTyped(KeyEvent e)\n\t\t{\n\t\t\tCompletionPopup.this.keyTyped(e);\n\n\t\t\tif (candidates == null || !candidates.isValid())\n\t\t\t{\n\t\t\t\tdispose();\n\t\t\t}\n\n\t\t\tif (!e.isConsumed())\n\t\t\t{\n\t\t\t\tpassKeyEventToView(e);\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ MouseHandler class\n\tprivate class MouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mouseClicked(MouseEvent e)\n\t\t{\n\t\t\tif (doSelectedCompletion())\n\t\t\t{\n\t\t\t\te.consume();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdispose();\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ WindowFocusHandler class\n\tprivate class WindowFocusHandler implements WindowFocusListener\n\t{\n\t\tpublic void windowGainedFocus(WindowEvent e)\n\t\t{\n\t\t}\n\n\t\tpublic void windowLostFocus(WindowEvent e)\n\t\t{\n\t\t\tdispose();", "functions": [{"function_name": "dispose", "code": "\tpublic void dispose()\n\t{\n\t\tif (isDisplayable())\n\t\t{\n\t\t\tif (view.getKeyEventInterceptor() == keyHandler)\n\t\t\t{\n\t\t\t\tview.setKeyEventInterceptor(null);\n\t\t\t}\n\t\t\tsuper.dispose();\n\n\t\t\t// This is a workaround to ensure setting the\n\t\t\t// focus back to the textArea. Without this, the\n\t\t\t// focus gets lost after closing the popup in\n\t\t\t// some environments. It seems to be a bug in\n\t\t\t// J2SE 1.4 or 5.0. Probably it relates to the\n\t\t\t// following one.\n\t\t\t// \"Frame does not receives focus after closing\n\t\t\t// of the owned window\"\n\t\t\t// http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4810575\n\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tview.getTextArea().requestFocus();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "FUNC_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [3, 9], [9, 10], [8, 11], [11, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 3], [10, 9], [11, 8], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "reset", "code": "\tpublic void reset(Candidates candidates, boolean active)\n\t{\n\t\tif(candidates == null || !candidates.isValid()\n\t\t\t|| candidates.getSize() <= 0)\n\t\t{\n\t\t\tdispose();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.candidates = candidates;\n\t\tlist.setModel(new CandidateListModel());\n\t\tlist.setVisibleRowCount(Math.min(candidates.getSize(),8));\n\t\tpack();\n\t\tsetLocation(fitInScreen(getLocation(null),this,\n\t\t\tview.getTextArea().getPainter().getFontMetrics().getHeight()));\n\t\tif (active)\n\t\t{\n\t\t\tsetSelectedIndex(0);\n\t\t\tGUIUtilities.requestFocus(this,list);\n\t\t}\n\t\tsetVisible(true);\n\t\tview.setKeyEventInterceptor(keyHandler);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [6, 13], [7, 14], [9, 15], [10, 16], [2, 17], [12, 18], [12, 19], [1, 20], [1, 21], [14, 22], [14, 23], [15, 24], [15, 25], [2, 26], [18, 27], [18, 28], [19, 29], [19, 30], [21, 31], [22, 32], [22, 33], [22, 34], [23, 35], [30, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 6], [14, 7], [15, 9], [16, 10], [17, 2], [18, 12], [19, 12], [20, 1], [21, 1], [22, 14], [23, 14], [24, 15], [25, 15], [26, 2], [27, 18], [28, 18], [29, 19], [30, 19], [31, 21], [32, 22], [33, 22], [34, 22], [35, 23], [36, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getCandidates", "code": "\tpublic Candidates getCandidates()\n\t{\n\t\treturn candidates;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSelectedIndex", "code": "\tpublic int getSelectedIndex()\n\t{\n\t\treturn list.getSelectedIndex();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSelectedIndex", "code": "\tpublic void setSelectedIndex(int index)\n\t{\n\t\tif (candidates != null\n\t\t\t&& 0 <= index && index < candidates.getSize())\n\t\t{\n\t\t\tlist.setSelectedIndex(index);\n\t\t\tlist.ensureIndexIsVisible(index);\n\t\t\tString description = candidates.getDescription(index);\n\t\t\tif (description != null)\n\t\t\t{\n\t\t\t\tview.getStatus().setMessageAndClear(description);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [1, 9], [1, 10], [6, 11], [7, 12], [7, 13], [8, 14], [5, 15], [12, 16], [13, 17], [4, 18], [18, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 1], [10, 1], [11, 6], [12, 7], [13, 7], [14, 8], [15, 5], [16, 12], [17, 13], [18, 4], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "doSelectedCompletion", "code": "\tpublic boolean doSelectedCompletion()\n\t{\n\t\tint selected = list.getSelectedIndex();\n\t\tif (candidates != null &&\n\t\t\t0 <= selected && selected < candidates.getSize())\n\t\t{\n\t\t\tcandidates.complete(selected);\n\t\t\tdispose();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [3, 9], [6, 10], [2, 11], [2, 12], [7, 13], [8, 14], [8, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 3], [10, 6], [11, 2], [12, 2], [13, 7], [14, 8], [15, 8], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "keyPressed", "code": "\tprotected void keyPressed(KeyEvent e)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "keyTyped", "code": "\tprotected void keyTyped(KeyEvent e)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fitInScreen", "code": "\tprivate static Point fitInScreen(Point p, Window w, int lineHeight)\n\t{\n\t\tRectangle screenSize = w.getGraphicsConfiguration().getBounds();\n\t\tif(p.y + w.getHeight() >= screenSize.height)\n\t\t\tp.y = p.y - w.getHeight() - lineHeight;\n\t\treturn p;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [3, 10], [8, 11], [9, 12], [10, 13], [11, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 3], [11, 8], [12, 9], [13, 10], [14, 11], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "moveRelative", "code": "\tprivate void moveRelative(int n)\n\t{\n\t\tint selected = list.getSelectedIndex();\n\n\t\tint newSelect = selected + n;\n\t\tif (newSelect < 0)\n\t\t{\n\t\t\tnewSelect = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint numItems = list.getModel().getSize();\n\t\t\tif(numItems < 1)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(newSelect >= numItems)\n\t\t\t{\n\t\t\t\tnewSelect = numItems - 1;\n\t\t\t}\n\t\t}\n\n\t\tif(newSelect != selected)\n\t\t{\n\t\t\tsetSelectedIndex(newSelect);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [7, 11], [3, 12], [4, 13], [1, 14], [8, 15], [9, 16], [2, 17], [9, 18], [16, 19], [10, 20], [17, 21], [8, 22], [20, 23], [22, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 7], [12, 3], [13, 4], [14, 1], [15, 8], [16, 9], [17, 2], [18, 9], [19, 16], [20, 10], [21, 17], [22, 8], [23, 20], [24, 22], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "moveRelativePages", "code": "\tprivate void moveRelativePages(int n)\n\t{\n\t\tint pageSize = list.getVisibleRowCount() - 1;\n\t\tmoveRelative(pageSize * n);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "passKeyEventToView", "code": "\tprivate void passKeyEventToView(KeyEvent e)\n\t{\n\t\t// Remove intercepter to avoid infinite recursion.\n\t\tassert (view.getKeyEventInterceptor() == keyHandler);\n\t\tview.setKeyEventInterceptor(null);\n\n\t\t// Here depends on an implementation detail.\n\t\t// Use ACTION_BAR to force processing KEY_TYPED event in\n\t\t// the implementation of gui.InputHandler.processKeyEvent().\n\t\tview.getInputHandler().processKeyEvent(e, View.ACTION_BAR, false);\n\n\t\t// Restore keyHandler only if this popup is still alive.\n\t\t// The key event might trigger dispose() of this popup.\n\t\tif (this.isDisplayable())\n\t\t{\n\t\t\tview.setKeyEventInterceptor(keyHandler);", "ast_nodes": ["FUNC_DECL", "IF", "ASSERT", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 7], [4, 8], [5, 9], [6, 10], [1, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 1], [8, 4], [9, 5], [10, 6], [11, 1], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "CompletionPopup", "code": "\tpublic CompletionPopup(View view)\n\t{\n\t\tsuper(view);\n\t\tthis.view = view;\n\t\tthis.keyHandler = new KeyHandler();\n\t\tthis.candidates = null;\n\t\tthis.list = new JList();\n\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.setCellRenderer(new CellRenderer());\n\t\tlist.addKeyListener(keyHandler);\n\t\tlist.addMouseListener(new MouseHandler());\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setFocusTraversalKeysEnabled(false);\n\t\t// stupid scrollbar policy is an attempt to work around\n\t\t// bugs people have been seeing with IBM's JDK -- 7 Sep 2000\n\t\tJScrollPane scroller = new JScrollPane(list,\n\t\t\tScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\tScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tcontent.add(scroller, BorderLayout.CENTER);\n\t\tsetContentPane(content);\n\t\taddWindowFocusListener(new WindowFocusHandler());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [4, 16], [1, 17], [7, 18], [2, 19], [8, 20], [10, 21], [12, 22], [13, 23], [14, 24], [19, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 4], [17, 1], [18, 7], [19, 2], [20, 8], [21, 10], [22, 12], [23, 13], [24, 14], [25, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "CompletionPopup", "code": "\tpublic CompletionPopup(View view, Point location)\n\t{\n\t\tthis(view);\n\t\tif (location != null)\n\t\t{\n\t\t\tsetLocation(location);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.4-6649", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/utils/synthetic/JavaUtils.java", "language": "java", "name": "org.apache.xml.utils.synthetic.JavaUtils", "code": "public class JavaUtils\n{\n        private static boolean cantLoadCompiler=false; \n\n        private static boolean debug = false;\n  \n        /** Control whether compilation occurs with the -g option\n         * (debugging information included in generated classfile).\n         * This is an attribute, rather than a parameter on the compile\n         * method, largely because it tends to be an all-or-nothing decision; \n         * generally you're either doing program development and want it,\n         * or running in production mode and don't. But that may not match\n         * the needs of future users...\n         * <p>\n         * TODO: Consider whether debug should be a parameter.\n         * \n         * @param boolean newDebug True to request debugging data,\n         * false to request optimized output. (It's uncommon to\n         * want both or neither!)\n         */ \n        public static void setDebug(boolean newDebug)\n        {\n            debug=newDebug;\n        }\n\n        /** Try to compile a .java file on disk. This will first attempt to\n         * use the sun.java.tools.javac() method, then (if that is unavailable)\n         * fall back upon shelling out to a command line and running javac\n         * there.\n         * <p>\n         * NOTE: This must be _compiled_ with sun.java.tools.* (tools.jar)\n         * available. We could change that to use reflection instead, if we\n         * accept some overhead... minor compared to the cost of running the\n         * compiler!\n         * <p>\n         * This has complications on some platforms. For example, under \n         * Microsoft Visual Java ++ (at least, as installed on my test system),\n         * I found that I had to specify paths to both javac and xerces.jar\n         * rather than counting on the shell's path and classpath having\n         * been set to reach these. For that reason I've parameterized this\n         * method with a few system properties, so you can adapt it to your\n         * own system's needs without modifying the code:\n         * <dl>\n         * <dt>org.apache.xml.utils.synthetic.javac\n         * <dd>Command line issued to invoke the compiler. Defaults to \"javac\",\n         * which should work in most systems. In VJ++, try setting it to\n         * \"cmd /c %JAVA_HOME%\\\\bin\\javac.exe\"\n         * <dt>org.apache.xml.utils.synthetic.moreclasspath\n         * <dd>Additional classpath, to be prepended to the one retrieved from\n         * java.class.path. Defaults to \"\" (empty). In VJ++, try setting it to\n         * point to your copy of xerces.jar, which may not be found otherwise.\n         * TODO: Reconsider prepend versus append!\n         * </dl>\n         * \n         * @param String fileName Which .java file to compile. Note that this may\n         * be relative to the \"current directory\".\n         * @param String classPath Additional places to look for classes that\n         * this .java file depends upon. Becomes the javac command's\n         * -classpath parameter value.\n         * @return boolean True iff compilation succeeded.\n         */\n        public static boolean JDKcompile(String fileName, String classPath)\n        {\n                String moreClassPath=\n                        System.getProperty(\"org.apache.xml.utils.synthetic.moreclasspath\",\"\")\n                        .trim();\n                if(moreClassPath.length()>0)\n                        classPath=moreClassPath+';'+classPath;\n                                                                                                  \n                if (debug)\n                {\n                        System.err.println (\"JavaEngine: Compiling \" + fileName);\n                        System.err.println (\"JavaEngine: Classpath is \" + classPath);\n                }\n    \n                String code_option = debug ? \"-g\" : \"-O\";\n\n            if(!cantLoadCompiler)\n                {\n                        String args[] = {\n                                code_option,\n                            \"-classpath\", classPath,\n                                fileName\n                        };\n                                \n                }\n    \n                String javac_command=\n                        System.getProperty(\"org.apache.xml.utils.synthetic.javac\",\"javac\");\n            String args[] = {\n                        javac_command,\n                        code_option,\n                        \"-classpath\", classPath,\n                        fileName\n                        };\n                try\n                {\n                        Process p=java.lang.Runtime.getRuntime().exec(args);\n                }\n                catch(IOException e)\n                {\n                        System.err.println(\"ERROR: IO exception during exec(javac).\");\n                }\n                catch(SecurityException e)\n                {\n                        System.err.println(\"ERROR: Unable to create subprocess to exec(javac).\");\n                }\n                \n                return false;\n        }\n\n  /** Subroutine: Like p.waitFor, but discards the InterruptedException\n   * and goes right back into a wait. I don't want to report compiler\n   * success or failure until it really has succeeded or failed... I think.\n   * @param Process p to be waited for\n   * @return the exitValue() of the process.\n   */\n  static int waitHardFor(java.lang.Process p)\n  {\n    boolean done=false;\n    while(!done)\n        try\n        {\n            p.waitFor();\n            done=true;\n        }\n        catch(InterruptedException e)\n        {\n            System.err.println(\"(Compiler process wait interrupted and resumed)\");\n        }\n     return ev;", "functions": [{"function_name": "setDebug", "code": "        public static void setDebug(boolean newDebug)\n        {\n            debug=newDebug;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JDKcompile", "code": "        public static boolean JDKcompile(String fileName, String classPath)\n        {\n                String moreClassPath=\n                        System.getProperty(\"org.apache.xml.utils.synthetic.moreclasspath\",\"\")\n                        .trim();\n                if(moreClassPath.length()>0)\n                        classPath=moreClassPath+';'+classPath;\n                                                                                                  \n                if (debug)\n                {\n                        System.err.println (\"JavaEngine: Compiling \" + fileName);\n                        System.err.println (\"JavaEngine: Classpath is \" + classPath);\n                }\n    \n                String code_option = debug ? \"-g\" : \"-O\";\n\n            if(!cantLoadCompiler)\n                {\n                        String args[] = {\n                                code_option,\n                            \"-classpath\", classPath,\n                                fileName\n                        };\n                                \n                }\n    \n                String javac_command=\n                        System.getProperty(\"org.apache.xml.utils.synthetic.javac\",\"javac\");\n            String args[] = {\n                        javac_command,\n                        code_option,\n                        \"-classpath\", classPath,\n                        fileName\n                        };\n                try\n                {\n                        Process p=java.lang.Runtime.getRuntime().exec(args);\n                }\n                catch(IOException e)\n                {\n                        System.err.println(\"ERROR: IO exception during exec(javac).\");\n                }\n                catch(SecurityException e)\n                {\n                        System.err.println(\"ERROR: Unable to create subprocess to exec(javac).\");\n                }\n                \n                return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "CATCH", "VAR_DECL", "BINARY_OP", "CALL", "VAR_DECL", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [2, 15], [8, 16], [4, 17], [5, 18], [6, 19], [8, 20], [16, 21], [16, 22], [9, 23], [13, 24], [14, 25], [15, 26], [3, 27], [17, 28], [17, 29], [19, 30], [19, 31], [7, 32], [7, 33], [20, 34], [23, 35], [23, 36], [23, 37], [24, 38], [25, 39], [26, 40], [32, 41], [33, 42], [34, 43], [18, 44], [41, 45], [42, 46], [43, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 2], [16, 8], [17, 4], [18, 5], [19, 6], [20, 8], [21, 16], [22, 16], [23, 9], [24, 13], [25, 14], [26, 15], [27, 3], [28, 17], [29, 17], [30, 19], [31, 19], [32, 7], [33, 7], [34, 20], [35, 23], [36, 23], [37, 23], [38, 24], [39, 25], [40, 26], [41, 32], [42, 33], [43, 34], [44, 18], [45, 41], [46, 42], [47, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "waitHardFor", "code": "  static int waitHardFor(java.lang.Process p)\n  {\n    boolean done=false;\n    while(!done)\n        try\n        {\n            p.waitFor();\n            done=true;\n        }\n        catch(InterruptedException e)\n        {\n            System.err.println(\"(Compiler process wait interrupted and resumed)\");\n        }\n     return ev;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "TRY", "CATCH", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [5, 8], [5, 9], [6, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 5], [9, 5], [10, 6], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "poi-2.5-5621", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/formula/NamePtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.NamePtg", "code": "public class NamePtg\n    extends Ptg\n{\n    public final static short sid  = 0x23;\n    private final static int  SIZE = 5;\n    private short             field_1_label_index;\n    boolean xtra=false;\n\n\n    private NamePtg() {\n    }\n\n    /** Creates new NamePtg */\n\n    public NamePtg(String name, Workbook book)\n    {\n        final short n = (short) (book.getNumNames() + 1);\n        NameRecord rec;\n        for (short i = 1; i < n; i++) {\n            rec = book.getNameRecord(i - 1);\n            if (name.equals(rec.getNameText())) {\n                field_1_label_index = i;\n                return;\n            }\n        }\n        rec = new NameRecord();\n        rec.setNameText(name);\n        rec.setNameTextLength((byte) name.length());\n        book.addName(rec);\n        field_1_label_index = n;\n    }\n\n    /** Creates new NamePtg */\n\n    public NamePtg(byte [] data, int offset)\n    {\n        offset++;\n        field_1_label_index = LittleEndian.getShort(data, offset );\n        field_2_zero        = LittleEndian.getShort(data, offset + 2);\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n        array[offset+0]= (byte) (sid + ptgClass);\n        LittleEndian.putShort(array,offset+1,field_1_label_index);\n        LittleEndian.putShort(array,offset+3, field_2_zero);\n    }\n\n    public int getSize()\n    {\n        return SIZE;\n    }\n\n    public String toFormulaString(Workbook book)\n    {\n        NameRecord rec = book.getNameRecord(field_1_label_index - 1);\n        return rec.getNameText();\n    }\n    \n    public byte getDefaultOperandClass() {return Ptg.CLASS_REF;}\n\n    public Object clone() {\n      NamePtg ptg = new NamePtg();\n      ptg.field_1_label_index = field_1_label_index;\n      ptg.field_2_zero = field_2_zero;\n      return ptg;", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[offset+0]= (byte) (sid + ptgClass);\n        LittleEndian.putShort(array,offset+1,field_1_label_index);\n        LittleEndian.putShort(array,offset+3, field_2_zero);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [6, 8], [7, 9], [5, 10], [5, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 6], [9, 7], [10, 5], [11, 5], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return SIZE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        NameRecord rec = book.getNameRecord(field_1_label_index - 1);\n        return rec.getNameText();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_REF;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      NamePtg ptg = new NamePtg();\n      ptg.field_1_label_index = field_1_label_index;\n      ptg.field_2_zero = field_2_zero;\n      return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "NamePtg", "code": "    private NamePtg() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NamePtg", "code": "    public NamePtg(String name, Workbook book)\n    {\n        final short n = (short) (book.getNumNames() + 1);\n        NameRecord rec;\n        for (short i = 1; i < n; i++) {\n            rec = book.getNameRecord(i - 1);\n            if (name.equals(rec.getNameText())) {\n                field_1_label_index = i;\n                return;\n            }\n        }\n        rec = new NameRecord();\n        rec.setNameText(name);\n        rec.setNameTextLength((byte) name.length());\n        book.addName(rec);\n        field_1_label_index = n;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [10, 12], [1, 13], [8, 14], [13, 15], [1, 16], [1, 17], [3, 18], [13, 19], [15, 20], [16, 21], [18, 22], [18, 23], [13, 24], [21, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 10], [13, 1], [14, 8], [15, 13], [16, 1], [17, 1], [18, 3], [19, 13], [20, 15], [21, 16], [22, 18], [23, 18], [24, 13], [25, 21], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "NamePtg", "code": "    public NamePtg(byte [] data, int offset)\n    {\n        offset++;\n        field_1_label_index = LittleEndian.getShort(data, offset );\n        field_2_zero        = LittleEndian.getShort(data, offset + 2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "camel-1.4-2563", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/quartz/QuartzConsumer.java", "language": "java", "name": "org.apache.camel.component.quartz.QuartzConsumer", "code": "public class QuartzConsumer extends DefaultConsumer<QuartzExchange> {\n    public QuartzConsumer(QuartzEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n    }\n\n    @Override\n    public QuartzEndpoint getEndpoint() {\n        return (QuartzEndpoint) super.getEndpoint();\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        getEndpoint().consumerStarted(this);\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        getEndpoint().consumerStopped(this);\n        super.doStop();", "functions": [{"function_name": "getEndpoint", "code": "    @Override\n    public QuartzEndpoint getEndpoint() {\n        return (QuartzEndpoint) super.getEndpoint();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        getEndpoint().consumerStarted(this);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        getEndpoint().consumerStopped(this);\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "QuartzConsumer", "code": "    public QuartzConsumer(QuartzEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1301", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/jsp/compilers/JspCompilerAdapterFactory.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.jsp.compilers.JspCompilerAdapterFactory", "code": "public final class JspCompilerAdapterFactory {\n\n    /** This is a singleton -- can't create instances!! */\n    private JspCompilerAdapterFactory() {\n    }\n\n    /**\n     * Based on the parameter passed in, this method creates the necessary\n     * factory desired.\n     *\n     * The current mapping for compiler names are as follows:\n     * <ul><li>jasper = jasper compiler (the default)\n     * <li><i>a fully quallified classname</i> = the name of a jsp compiler\n     * adapter\n     * </ul>\n     *\n     * @param compilerType either the name of the desired compiler, or the\n     * full classname of the compiler's adapter.\n     * @param task a task to log through.\n     * @return the compiler\n     * @throws BuildException if the compiler type could not be resolved into\n     * a compiler adapter.\n     */\n    public static JspCompilerAdapter getCompiler(String compilerType, Task task)\n        throws BuildException {\n        return getCompiler(compilerType, task,\n                           task.getProject().createClassLoader(null));\n    }\n\n    /**\n     * Based on the parameter passed in, this method creates the necessary\n     * factory desired.\n     *\n     * The current mapping for compiler names are as follows:\n     * <ul><li>jasper = jasper compiler (the default)\n     * <li><i>a fully quallified classname</i> = the name of a jsp compiler\n     * adapter\n     * </ul>\n     *\n     * @param compilerType either the name of the desired compiler, or the\n     * full classname of the compiler's adapter.\n     * @param task a task to log through.\n     * @param loader AntClassLoader with which the compiler should be loaded\n     * @return the compiler\n     * @throws BuildException if the compiler type could not be resolved into\n     * a compiler adapter.\n     */\n    public static JspCompilerAdapter getCompiler(String compilerType, Task task,\n                                                 AntClassLoader loader)\n        throws BuildException {\n\n        if (compilerType.equalsIgnoreCase(\"jasper\")) {\n            return new JasperC(new JspNameMangler());\n        }\n        if (compilerType.equalsIgnoreCase(\"jasper41\")) {\n            return new JasperC(new Jasper41Mangler());\n        }\n        return resolveClassName(compilerType, loader);\n    }\n\n    /**\n     * Tries to resolve the given classname into a compiler adapter.\n     * Throws a fit if it can't.\n     *\n     * @param className The fully qualified classname to be created.\n     * @param classloader Classloader with which to load the class\n     * @throws BuildException This is the fit that is thrown if className\n     * isn't an instance of JspCompilerAdapter.\n     */\n    private static JspCompilerAdapter resolveClassName(String className,\n                                                       AntClassLoader classloader)\n        throws BuildException {\n        try {\n            Class c = classloader.findClass(className);\n            Object o = c.newInstance();\n            return (JspCompilerAdapter) o;\n        } catch (ClassNotFoundException cnfe) {\n            throw new BuildException(className + \" can\\'t be found.\", cnfe);\n        } catch (ClassCastException cce) {\n            throw new BuildException(className + \" isn\\'t the classname of \"\n                                     + \"a compiler adapter.\", cce);\n        } catch (Throwable t) {\n            throw new BuildException(className + \" caused an interesting \"\n                                     + \"exception.\", t);", "functions": [{"function_name": "getCompiler", "code": "    public static JspCompilerAdapter getCompiler(String compilerType, Task task)\n        throws BuildException {\n        return getCompiler(compilerType, task,\n                           task.getProject().createClassLoader(null));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getCompiler", "code": "    public static JspCompilerAdapter getCompiler(String compilerType, Task task,\n                                                 AntClassLoader loader)\n        throws BuildException {\n\n        if (compilerType.equalsIgnoreCase(\"jasper\")) {\n            return new JasperC(new JspNameMangler());\n        }\n        if (compilerType.equalsIgnoreCase(\"jasper41\")) {\n            return new JasperC(new Jasper41Mangler());\n        }\n        return resolveClassName(compilerType, loader);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [2, 10], [8, 11], [3, 12], [9, 13], [10, 14], [12, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 2], [11, 8], [12, 3], [13, 9], [14, 10], [15, 12], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "resolveClassName", "code": "    private static JspCompilerAdapter resolveClassName(String className,\n                                                       AntClassLoader classloader)\n        throws BuildException {\n        try {\n            Class c = classloader.findClass(className);\n            Object o = c.newInstance();\n            return (JspCompilerAdapter) o;\n        } catch (ClassNotFoundException cnfe) {\n            throw new BuildException(className + \" can\\'t be found.\", cnfe);\n        } catch (ClassCastException cce) {\n            throw new BuildException(className + \" isn\\'t the classname of \"\n                                     + \"a compiler adapter.\", cce);\n        } catch (Throwable t) {\n            throw new BuildException(className + \" caused an interesting \"\n                                     + \"exception.\", t);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [5, 11], [6, 12], [10, 13], [11, 14], [12, 15], [8, 16], [9, 17], [13, 18], [14, 19], [15, 20], [18, 21], [18, 22], [19, 23], [19, 24], [20, 25], [22, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 5], [12, 6], [13, 10], [14, 11], [15, 12], [16, 8], [17, 9], [18, 13], [19, 14], [20, 15], [21, 18], [22, 18], [23, 19], [24, 19], [25, 20], [26, 22], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "JspCompilerAdapterFactory", "code": "    private JspCompilerAdapterFactory() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.2-1868", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/ToType.java", "language": "java", "name": "org.apache.camel.model.ToType", "code": "@XmlRootElement(name = \"to\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class ToType extends ProcessorType {\n    @XmlAttribute\n    private String uri;\n    @XmlAttribute\n    private String ref;\n    @XmlElementRef\n    private List<InterceptorType> interceptors = new ArrayList<InterceptorType>();\n    @XmlTransient\n    private Endpoint endpoint;\n\n    public ToType() {\n    }\n\n    public ToType(String uri) {\n        setUri(uri);\n    }\n\n    public ToType(Endpoint endpoint) {\n        setEndpoint(endpoint);\n    }\n\n    @Override\n    public String toString() {\n        return \"To[\" + getLabel() + \"]\";\n    }\n\n    @Override\n    public String getLabel() {\n        return FromType.description(getUri(), getRef(), getEndpoint());\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        Endpoint endpoint = resolveEndpoint(routeContext);\n        return new SendProcessor(endpoint);\n    }\n\n    public Endpoint resolveEndpoint(RouteContext context) {\n        if (endpoint == null) {\n            endpoint = context.resolveEndpoint(getUri(), getRef());\n        }\n        return endpoint;\n    }\n\n    public String getUri() {\n        return uri;\n    }\n\n    /**\n     * Sets the URI of the endpoint to use\n     * \n     * @param uri the endpoint URI to use\n     */\n    public void setUri(String uri) {\n        this.uri = uri;\n    }\n\n    public String getRef() {\n        return ref;\n    }\n\n    /**\n     * Sets the name of the endpoint within the registry (such as the Spring\n     * ApplicationContext or JNDI) to use\n     * \n     * @param ref the reference name to use\n     */\n    public void setRef(String ref) {\n        this.ref = ref;\n    }\n\n    public Endpoint getEndpoint() {\n        return endpoint;\n    }\n\n    public void setEndpoint(Endpoint endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    public List<ProcessorType> getOutputs() {\n        return Collections.EMPTY_LIST;\n    }\n\n    public List<InterceptorType> getInterceptors() {\n        return interceptors;\n    }\n\n    public void setInterceptors(List<InterceptorType> interceptors) {\n        this.interceptors = interceptors;\n    }\n\n\n    /**\n     * Returns the endpoint URI or the name of the reference to it\n     */\n    public Object getUriOrRef() {\n        if (ObjectHelper.isNullOrBlank(uri)) {\n            return uri;\n        }\n        else if (endpoint != null) {\n            return endpoint.getEndpointUri();\n        }\n        return ref;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"To[\" + getLabel() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getLabel", "code": "    @Override\n    public String getLabel() {\n        return FromType.description(getUri(), getRef(), getEndpoint());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        Endpoint endpoint = resolveEndpoint(routeContext);\n        return new SendProcessor(endpoint);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resolveEndpoint", "code": "    public Endpoint resolveEndpoint(RouteContext context) {\n        if (endpoint == null) {\n            endpoint = context.resolveEndpoint(getUri(), getRef());\n        }\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [6, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getUri", "code": "    public String getUri() {\n        return uri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUri", "code": "    public void setUri(String uri) {\n        this.uri = uri;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRef", "code": "    public String getRef() {\n        return ref;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRef", "code": "    public void setRef(String ref) {\n        this.ref = ref;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndpoint", "code": "    public Endpoint getEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEndpoint", "code": "    public void setEndpoint(Endpoint endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputs", "code": "    public List<ProcessorType> getOutputs() {\n        return Collections.EMPTY_LIST;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInterceptors", "code": "    public List<InterceptorType> getInterceptors() {\n        return interceptors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInterceptors", "code": "    public void setInterceptors(List<InterceptorType> interceptors) {\n        this.interceptors = interceptors;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUriOrRef", "code": "    public Object getUriOrRef() {\n        if (ObjectHelper.isNullOrBlank(uri)) {\n            return uri;\n        }\n        else if (endpoint != null) {\n            return endpoint.getEndpointUri();\n        }\n        return ref;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [2, 6], [3, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 2], [7, 3], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ToType", "code": "    public ToType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ToType", "code": "    public ToType(String uri) {\n        setUri(uri);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ToType", "code": "    public ToType(Endpoint endpoint) {\n        setEndpoint(endpoint);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.4-6739", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/dom/SingleNodeCounter.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.SingleNodeCounter", "code": "public abstract class SingleNodeCounter extends NodeCounter {\n    static private final int[] EmptyArray = new int[] { };\n    NodeIterator _countSiblings = null;\n\n    public SingleNodeCounter(Translet translet,\n\t\t\t     DOM document,\n\t\t\t     NodeIterator iterator) {\n\tsuper(translet, document, iterator);\n    }\n\n    public NodeCounter setStartNode(int node) {\n\t_node = node;\n\t_nodeType = _document.getType(node);\n\t_countSiblings = _document.getAxisIterator(PRECEDINGSIBLING);\n\treturn this;\n    }\n\n    public String getCounter() {\n\tint result;\n\tif (_value != Integer.MIN_VALUE) {\n\t    result = _value;\n\t}\n\telse {\n\t    int next = _node;\n\t    result = 0;\n\t    if (!matchesCount(next)) {\n\t\twhile ((next = _document.getParent(next)) > END) {\n\t\t    if (matchesCount(next)) {\n\t\t    }\n\t\t    if (matchesFrom(next)) {\n\t\t\tnext = END;\n\t\t    }\n\t\t}\n\t    }\n\n\t    if (next != END) {\n\t\t_countSiblings.setStartNode(next);\n\t\tdo {\n\t\t    if (matchesCount(next)) result++;\n\t\t} while ((next = _countSiblings.next()) != END);\n\t    }\n\t    else {\n\t\treturn formatNumbers(EmptyArray);\n\t    }\n\t}\n\treturn formatNumbers(result);\n    }\n\n    public static NodeCounter getDefaultNodeCounter(Translet translet,\n\t\t\t\t\t\t    DOM document,\n\t\t\t\t\t\t    NodeIterator iterator) {\n\treturn new DefaultSingleNodeCounter(translet, document, iterator);\n    }\n\n    static class DefaultSingleNodeCounter extends SingleNodeCounter {\n\tpublic DefaultSingleNodeCounter(Translet translet,\n\t\t\t\t\tDOM document, NodeIterator iterator) {\n\t    super(translet, document, iterator);\n\t}\n\n\tpublic NodeCounter setStartNode(int node) {\n\t    _node = node;\n\t    _nodeType = _document.getType(node);\n\t    _countSiblings =\n\t\t_document.getTypedAxisIterator(PRECEDINGSIBLING,\n\t\t\t\t\t       _document.getType(node));\n\t    return this;\n\t}\n\n\tpublic String getCounter() {\n\t    int result;\n\t    if (_value != Integer.MIN_VALUE) {\n\t\tresult = _value;\n\t    }\n\t    else {\n\t\tint next;\n\t\tresult = 1;\n\t\t_countSiblings.setStartNode(_node);\n\t\twhile ((next = _countSiblings.next()) != END) {\n\t\t    result++;\n\t\t}\n\t    }\n\t    return formatNumbers(result);", "functions": [{"function_name": "setStartNode", "code": "    public NodeCounter setStartNode(int node) {\n\t_node = node;\n\t_nodeType = _document.getType(node);\n\t_countSiblings = _document.getAxisIterator(PRECEDINGSIBLING);\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getCounter", "code": "    public String getCounter() {\n\tint result;\n\tif (_value != Integer.MIN_VALUE) {\n\t    result = _value;\n\t}\n\telse {\n\t    int next = _node;\n\t    result = 0;\n\t    if (!matchesCount(next)) {\n\t\twhile ((next = _document.getParent(next)) > END) {\n\t\t    if (matchesCount(next)) {\n\t\t    }\n\t\t    if (matchesFrom(next)) {\n\t\t\tnext = END;\n\t\t    }\n\t\t}\n\t    }\n\n\t    if (next != END) {\n\t\t_countSiblings.setStartNode(next);\n\t\tdo {\n\t\t    if (matchesCount(next)) result++;\n\t\t} while ((next = _countSiblings.next()) != END);\n\t    }\n\t    else {\n\t\treturn formatNumbers(EmptyArray);\n\t    }\n\t}\n\treturn formatNumbers(result);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "RETURN", "LOOP", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "ASSIGN", "IF", "IF", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [6, 9], [7, 10], [2, 11], [2, 12], [6, 13], [6, 14], [7, 15], [11, 16], [13, 17], [14, 18], [6, 19], [15, 20], [14, 21], [18, 22], [15, 23], [15, 24], [20, 25], [21, 26], [22, 27], [23, 28], [24, 29], [25, 30], [23, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 6], [10, 7], [11, 2], [12, 2], [13, 6], [14, 6], [15, 7], [16, 11], [17, 13], [18, 14], [19, 6], [20, 15], [21, 14], [22, 18], [23, 15], [24, 15], [25, 20], [26, 21], [27, 22], [28, 23], [29, 24], [30, 25], [31, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getDefaultNodeCounter", "code": "    public static NodeCounter getDefaultNodeCounter(Translet translet,\n\t\t\t\t\t\t    DOM document,\n\t\t\t\t\t\t    NodeIterator iterator) {\n\treturn new DefaultSingleNodeCounter(translet, document, iterator);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "SingleNodeCounter", "code": "    public SingleNodeCounter(Translet translet,\n\t\t\t     DOM document,\n\t\t\t     NodeIterator iterator) {\n\tsuper(translet, document, iterator);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "poi-3.0-6177", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/util/HexDump.java", "language": "java", "name": "org.apache.poi.util.HexDump", "code": "public class HexDump\n{\n    public static final String        EOL         =\n        System.getProperty(\"line.separator\");\n    private static final char         _hexcodes[] =\n    {\n        '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D',\n        'E', 'F'\n    };\n    private static final int          _shifts[]   =\n    {\n        60, 56, 52, 48, 44, 40, 36, 32, 28, 24, 20, 16, 12, 8, 4, 0\n    };\n\n\n    private HexDump()\n    {\n    }\n\n    /**\n     * dump an array of bytes to an OutputStream\n     *\n     * @param data the byte array to be dumped\n     * @param offset its offset, whatever that might mean\n     * @param stream the OutputStream to which the data is to be\n     *               written\n     * @param index initial index into the byte array\n     * @param length number of characters to output\n     *\n     * @exception IOException is thrown if anything goes wrong writing\n     *            the data to stream\n     * @exception ArrayIndexOutOfBoundsException if the index is\n     *            outside the data array's bounds\n     * @exception IllegalArgumentException if the output stream is\n     *            null\n     */\n    public synchronized static void dump(final byte [] data, final long offset,\n                            final OutputStream stream, final int index, final int length)\n            throws IOException, ArrayIndexOutOfBoundsException,\n                    IllegalArgumentException\n    {\n        if (data.length == 0)\n        {\n            stream.write( (\"No Data\" + System.getProperty( \"line.separator\")).getBytes() );\n            stream.flush();\n            return;\n        }\n        if ((index < 0) || (index >= data.length))\n        {\n            throw new ArrayIndexOutOfBoundsException(\n                \"illegal index: \" + index + \" into array of length \"\n                + data.length);\n        }\n        if (stream == null)\n        {\n            throw new IllegalArgumentException(\"cannot write to nullstream\");\n        }\n\n        long         display_offset = offset + index;\n        StringBuffer buffer         = new StringBuffer(74);\n\n\n        int data_length = Math.min(data.length,index+length);\n        for (int j = index; j < data_length; j += 16)\n        {\n            int chars_read = data_length - j;\n\n            if (chars_read > 16)\n            {\n                chars_read = 16;\n            }\n            buffer.append(\n                        dump(display_offset)\n                         ).append(' ');\n            for (int k = 0; k < 16; k++)\n            {\n                if (k < chars_read)\n                {\n                    buffer.append(dump(data[ k + j ]));\n                }\n                else\n                {\n                    buffer.append(\"  \");\n                }\n                buffer.append(' ');\n            }\n            for (int k = 0; k < chars_read; k++)\n            {\n                if ((data[ k + j ] >= ' ') && (data[ k + j ] < 127))\n                {\n                    buffer.append(( char ) data[ k + j ]);\n                }\n                else\n                {\n                    buffer.append('.');\n                }\n            }\n            buffer.append(EOL);\n            stream.write(buffer.toString().getBytes());\n            stream.flush();\n            buffer.setLength(0);\n            display_offset += chars_read;\n        }\n\n    }\n\n    /**\n     * dump an array of bytes to an OutputStream\n     *\n     * @param data the byte array to be dumped\n     * @param offset its offset, whatever that might mean\n     * @param stream the OutputStream to which the data is to be\n     *               written\n     * @param index initial index into the byte array\n     *\n     * @exception IOException is thrown if anything goes wrong writing\n     *            the data to stream\n     * @exception ArrayIndexOutOfBoundsException if the index is\n     *            outside the data array's bounds\n     * @exception IllegalArgumentException if the output stream is\n     *            null\n     */\n\n    public synchronized static void dump(final byte [] data, final long offset,\n                            final OutputStream stream, final int index)\n        throws IOException, ArrayIndexOutOfBoundsException,\n                IllegalArgumentException\n    {\n        dump(data, offset, stream, index, data.length-index);\n    }\n\n    /**\n     * dump an array of bytes to a String\n     *\n     * @param data the byte array to be dumped\n     * @param offset its offset, whatever that might mean\n     * @param index initial index into the byte array\n     *\n     * @exception ArrayIndexOutOfBoundsException if the index is\n     *            outside the data array's bounds\n     * @return output string\n     */\n    \n    public static String dump(final byte [] data, final long offset,\n                            final int index) {\n        StringBuffer buffer;\n        if ((index < 0) || (index >= data.length))\n        {\n            throw new ArrayIndexOutOfBoundsException(\n                \"illegal index: \" + index + \" into array of length \"\n                + data.length);\n        }\n        long         display_offset = offset + index;\n        buffer         = new StringBuffer(74);\n\n        for (int j = index; j < data.length; j += 16)\n        {\n            int chars_read = data.length - j;\n\n            if (chars_read > 16)\n            {\n                chars_read = 16;\n            }\n            buffer.append(dump(display_offset)).append(' ');\n            for (int k = 0; k < 16; k++)\n            {\n                if (k < chars_read)\n                {\n                    buffer.append(dump(data[ k + j ]));\n                }\n                else\n                {\n                    buffer.append(\"  \");\n                }\n                buffer.append(' ');\n            }\n            for (int k = 0; k < chars_read; k++)\n            {\n                if ((data[ k + j ] >= ' ') && (data[ k + j ] < 127))\n                {\n                    buffer.append(( char ) data[ k + j ]);\n                }\n                else\n                {\n                    buffer.append('.');\n                }\n            }\n            buffer.append(EOL);\n            display_offset += chars_read;\n        }                 \n        return buffer.toString();\n    }\n    \n\n    private static String dump(final long value)\n    {\n        StringBuffer buf = new StringBuffer();\n        buf.setLength(0);\n        for (int j = 0; j < 8; j++)\n        {\n            buf.append( _hexcodes[ (( int ) (value >> _shifts[ j + _shifts.length - 8 ])) & 15 ]);\n        }\n        return buf.toString();\n    }\n\n    private static String dump(final byte value)\n    {\n        StringBuffer buf = new StringBuffer();\n        buf.setLength(0);\n        for (int j = 0; j < 2; j++)\n        {\n            buf.append(_hexcodes[ (value >> _shifts[ j + 6 ]) & 15 ]);\n        }\n        return buf.toString();\n    }\n\n    /**\n     * Converts the parameter to a hex value.\n     *\n     * @param value     The value to convert\n     * @return          A String representing the array of bytes\n     */\n    public static String toHex(final byte[] value)\n    {\n        StringBuffer retVal = new StringBuffer();\n        retVal.append('[');\n        for(int x = 0; x < value.length; x++)\n        {\n            retVal.append(toHex(value[x]));\n            retVal.append(\", \");\n        }\n        retVal.append(']');\n        return retVal.toString();\n    }\n\n    /**\n     * <p>Converts the parameter to a hex value breaking the results into\n     * lines.</p>\n     *\n     * @param value        The value to convert\n     * @param bytesPerLine The maximum number of bytes per line. The next byte\n     *                     will be written to a new line\n     * @return             A String representing the array of bytes\n     */\n    public static String toHex(final byte[] value, final int bytesPerLine)\n    {\n        final int digits =\n            (int) Math.round(Math.log(value.length) / Math.log(10) + 0.5);\n        final StringBuffer formatString = new StringBuffer();\n        for (int i = 0; i < digits; i++)\n            formatString.append('0');\n        formatString.append(\": \");\n        final DecimalFormat format = new DecimalFormat(formatString.toString());\n        StringBuffer retVal = new StringBuffer();\n        retVal.append(format.format(0));\n        int i = -1;\n        for(int x = 0; x < value.length; x++)\n        {\n            if (++i == bytesPerLine)\n            {\n                retVal.append('\\n');\n                retVal.append(format.format(x));\n                i = 0;\n            }\n            retVal.append(toHex(value[x]));\n            retVal.append(\", \");\n        }\n        return retVal.toString();\n    }\n\n    /**\n     * Converts the parameter to a hex value.\n     *\n     * @param value     The value to convert\n     * @return          The result right padded with 0\n     */\n    public static String toHex(final short value)\n    {\n        return toHex(value, 4);\n    }\n\n    /**\n     * Converts the parameter to a hex value.\n     *\n     * @param value     The value to convert\n     * @return          The result right padded with 0\n     */\n    public static String toHex(final byte value)\n    {\n        return toHex(value, 2);\n    }\n\n    /**\n     * Converts the parameter to a hex value.\n     *\n     * @param value     The value to convert\n     * @return          The result right padded with 0\n     */\n    public static String toHex(final int value)\n    {\n        return toHex(value, 8);\n    }\n\n    /**\n     * Converts the parameter to a hex value.\n     *\n     * @param value     The value to convert\n     * @return          The result right padded with 0\n     */\n    public static String toHex(final long value)\n    {\n        return toHex(value, 16);\n    }\n\n\n    private static String toHex(final long value, final int digits)\n    {\n        StringBuffer result = new StringBuffer(digits);\n        for (int j = 0; j < digits; j++)\n        {\n            result.append( _hexcodes[ (int) ((value >> _shifts[ j + (16 - digits) ]) & 15)]);\n        }\n        return result.toString();\n    }\n\n    /**\n     * Dumps <code>bytesToDump</code> bytes to an output stream.\n     *\n     * @param in          The stream to read from\n     * @param out         The output stream\n     * @param start       The index to use as the starting position for the left hand side label\n     * @param bytesToDump The number of bytes to output.  Use -1 to read until the end of file.\n     */\n    public static void dump( InputStream in, PrintStream out, int start, int bytesToDump ) throws IOException\n    {\n        ByteArrayOutputStream buf = new ByteArrayOutputStream();\n        if (bytesToDump == -1)\n        {\n            int c = in.read();\n            while (c != -1)\n            {\n                buf.write(c);\n                c = in.read();\n            }\n        }\n        else\n        {\n            int bytesRemaining = bytesToDump;\n            while (bytesRemaining-- > 0)\n            {\n                int c = in.read();\n                if (c == -1)\n                    break;\n                else\n                    buf.write(c);\n            }\n        }\n\n        byte[] data = buf.toByteArray();\n        dump(data, 0, out, start, data.length);\n    }\n\n    public static void main(String[] args) throws Exception {\n        File file = new File(args[0]);\n        InputStream in = new BufferedInputStream(new FileInputStream(file)); \n        byte[] b = new byte[(int)file.length()];\n        in.read(b);\n        System.out.println(HexDump.dump(b, 0, 0));\n        in.close();", "functions": [{"function_name": "dump", "code": "    public synchronized static void dump(final byte [] data, final long offset,\n                            final OutputStream stream, final int index, final int length)\n            throws IOException, ArrayIndexOutOfBoundsException,\n                    IllegalArgumentException\n    {\n        if (data.length == 0)\n        {\n            stream.write( (\"No Data\" + System.getProperty( \"line.separator\")).getBytes() );\n            stream.flush();\n            return;\n        }\n        if ((index < 0) || (index >= data.length))\n        {\n            throw new ArrayIndexOutOfBoundsException(\n                \"illegal index: \" + index + \" into array of length \"\n                + data.length);\n        }\n        if (stream == null)\n        {\n            throw new IllegalArgumentException(\"cannot write to nullstream\");\n        }\n\n        long         display_offset = offset + index;\n        StringBuffer buffer         = new StringBuffer(74);\n\n\n        int data_length = Math.min(data.length,index+length);\n        for (int j = index; j < data_length; j += 16)\n        {\n            int chars_read = data_length - j;\n\n            if (chars_read > 16)\n            {\n                chars_read = 16;\n            }\n            buffer.append(\n                        dump(display_offset)\n                         ).append(' ');\n            for (int k = 0; k < 16; k++)\n            {\n                if (k < chars_read)\n                {\n                    buffer.append(dump(data[ k + j ]));\n                }\n                else\n                {\n                    buffer.append(\"  \");\n                }\n                buffer.append(' ');\n            }\n            for (int k = 0; k < chars_read; k++)\n            {\n                if ((data[ k + j ] >= ' ') && (data[ k + j ] < 127))\n                {\n                    buffer.append(( char ) data[ k + j ]);\n                }\n                else\n                {\n                    buffer.append('.');\n                }\n            }\n            buffer.append(EOL);\n            stream.write(buffer.toString().getBytes());\n            stream.flush();\n            buffer.setLength(0);\n            display_offset += chars_read;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LOOP", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [1, 14], [5, 15], [6, 16], [7, 17], [1, 18], [1, 19], [1, 20], [1, 21], [13, 22], [2, 23], [3, 24], [4, 25], [5, 26], [15, 27], [6, 28], [16, 29], [16, 30], [7, 31], [17, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [18, 38], [19, 39], [1, 40], [20, 41], [23, 42], [24, 43], [26, 44], [28, 45], [30, 46], [7, 47], [7, 48], [34, 49], [36, 50], [18, 51], [19, 52], [39, 53], [40, 54], [40, 55], [41, 56], [21, 57], [44, 58], [45, 59], [48, 60], [50, 61], [51, 62], [18, 63], [19, 64], [52, 65], [19, 66], [55, 67], [20, 68], [59, 69], [60, 70], [60, 71], [62, 72], [62, 73], [64, 74], [68, 75], [69, 76], [69, 77], [70, 78], [51, 79], [51, 80], [72, 81], [73, 82], [52, 83], [52, 84], [77, 85], [79, 86], [83, 87], [84, 88], [72, 89], [73, 90], [80, 91], [88, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 1], [15, 5], [16, 6], [17, 7], [18, 1], [19, 1], [20, 1], [21, 1], [22, 13], [23, 2], [24, 3], [25, 4], [26, 5], [27, 15], [28, 6], [29, 16], [30, 16], [31, 7], [32, 17], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 18], [39, 19], [40, 1], [41, 20], [42, 23], [43, 24], [44, 26], [45, 28], [46, 30], [47, 7], [48, 7], [49, 34], [50, 36], [51, 18], [52, 19], [53, 39], [54, 40], [55, 40], [56, 41], [57, 21], [58, 44], [59, 45], [60, 48], [61, 50], [62, 51], [63, 18], [64, 19], [65, 52], [66, 19], [67, 55], [68, 20], [69, 59], [70, 60], [71, 60], [72, 62], [73, 62], [74, 64], [75, 68], [76, 69], [77, 69], [78, 70], [79, 51], [80, 51], [81, 72], [82, 73], [83, 52], [84, 52], [85, 77], [86, 79], [87, 83], [88, 84], [89, 72], [90, 73], [91, 80], [92, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "dump", "code": "    public synchronized static void dump(final byte [] data, final long offset,\n                            final OutputStream stream, final int index)\n        throws IOException, ArrayIndexOutOfBoundsException,\n                IllegalArgumentException\n    {\n        dump(data, offset, stream, index, data.length-index);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "dump", "code": "    public static String dump(final byte [] data, final long offset,\n                            final int index) {\n        StringBuffer buffer;\n        if ((index < 0) || (index >= data.length))\n        {\n            throw new ArrayIndexOutOfBoundsException(\n                \"illegal index: \" + index + \" into array of length \"\n                + data.length);\n        }\n        long         display_offset = offset + index;\n        buffer         = new StringBuffer(74);\n\n        for (int j = index; j < data.length; j += 16)\n        {\n            int chars_read = data.length - j;\n\n            if (chars_read > 16)\n            {\n                chars_read = 16;\n            }\n            buffer.append(dump(display_offset)).append(' ');\n            for (int k = 0; k < 16; k++)\n            {\n                if (k < chars_read)\n                {\n                    buffer.append(dump(data[ k + j ]));\n                }\n                else\n                {\n                    buffer.append(\"  \");\n                }\n                buffer.append(' ');\n            }\n            for (int k = 0; k < chars_read; k++)\n            {\n                if ((data[ k + j ] >= ' ') && (data[ k + j ] < 127))\n                {\n                    buffer.append(( char ) data[ k + j ]);\n                }\n                else\n                {\n                    buffer.append('.');\n                }\n            }\n            buffer.append(EOL);\n            display_offset += chars_read;\n        }                 \n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LOOP", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [0, 12], [4, 13], [2, 14], [2, 15], [2, 16], [2, 17], [10, 18], [12, 19], [3, 20], [4, 21], [13, 22], [13, 23], [2, 24], [2, 25], [14, 26], [15, 27], [2, 28], [16, 29], [19, 30], [21, 31], [23, 32], [14, 33], [15, 34], [27, 35], [28, 36], [28, 37], [29, 38], [17, 39], [31, 40], [33, 41], [14, 42], [15, 43], [34, 44], [15, 45], [37, 46], [16, 47], [40, 48], [41, 49], [41, 50], [43, 51], [47, 52], [48, 53], [48, 54], [33, 55], [33, 56], [49, 57], [50, 58], [34, 59], [34, 60], [54, 61], [55, 62], [59, 63], [60, 64], [49, 65], [50, 66], [56, 67], [64, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 0], [13, 4], [14, 2], [15, 2], [16, 2], [17, 2], [18, 10], [19, 12], [20, 3], [21, 4], [22, 13], [23, 13], [24, 2], [25, 2], [26, 14], [27, 15], [28, 2], [29, 16], [30, 19], [31, 21], [32, 23], [33, 14], [34, 15], [35, 27], [36, 28], [37, 28], [38, 29], [39, 17], [40, 31], [41, 33], [42, 14], [43, 15], [44, 34], [45, 15], [46, 37], [47, 16], [48, 40], [49, 41], [50, 41], [51, 43], [52, 47], [53, 48], [54, 48], [55, 33], [56, 33], [57, 49], [58, 50], [59, 34], [60, 34], [61, 54], [62, 55], [63, 59], [64, 60], [65, 49], [66, 50], [67, 56], [68, 64], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "dump", "code": "    private static String dump(final long value)\n    {\n        StringBuffer buf = new StringBuffer();\n        buf.setLength(0);\n        for (int j = 0; j < 8; j++)\n        {\n            buf.append( _hexcodes[ (( int ) (value >> _shifts[ j + _shifts.length - 8 ])) & 15 ]);\n        }\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [6, 8], [7, 9], [3, 10], [2, 11], [2, 12], [11, 13], [13, 14], [13, 15], [15, 16], [16, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 6], [9, 7], [10, 3], [11, 2], [12, 2], [13, 11], [14, 13], [15, 13], [16, 15], [17, 16], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "dump", "code": "    private static String dump(final byte value)\n    {\n        StringBuffer buf = new StringBuffer();\n        buf.setLength(0);\n        for (int j = 0; j < 2; j++)\n        {\n            buf.append(_hexcodes[ (value >> _shifts[ j + 6 ]) & 15 ]);\n        }\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [6, 8], [7, 9], [3, 10], [2, 11], [2, 12], [11, 13], [13, 14], [13, 15], [15, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 6], [9, 7], [10, 3], [11, 2], [12, 2], [13, 11], [14, 13], [15, 13], [16, 15], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "toHex", "code": "    public static String toHex(final byte[] value)\n    {\n        StringBuffer retVal = new StringBuffer();\n        retVal.append('[');\n        for(int x = 0; x < value.length; x++)\n        {\n            retVal.append(toHex(value[x]));\n            retVal.append(\", \");\n        }\n        retVal.append(']');\n        return retVal.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [6, 9], [8, 10], [3, 11], [2, 12], [2, 13], [2, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 6], [10, 8], [11, 3], [12, 2], [13, 2], [14, 2], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "toHex", "code": "    public static String toHex(final byte[] value, final int bytesPerLine)\n    {\n        final int digits =\n            (int) Math.round(Math.log(value.length) / Math.log(10) + 0.5);\n        final StringBuffer formatString = new StringBuffer();\n        for (int i = 0; i < digits; i++)\n            formatString.append('0');\n        formatString.append(\": \");\n        final DecimalFormat format = new DecimalFormat(formatString.toString());\n        StringBuffer retVal = new StringBuffer();\n        retVal.append(format.format(0));\n        int i = -1;\n        for(int x = 0; x < value.length; x++)\n        {\n            if (++i == bytesPerLine)\n            {\n                retVal.append('\\n');\n                retVal.append(format.format(x));\n                i = 0;\n            }\n            retVal.append(toHex(value[x]));\n            retVal.append(\", \");\n        }\n        return retVal.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [0, 13], [0, 14], [6, 15], [2, 16], [3, 17], [13, 18], [4, 19], [5, 20], [14, 21], [6, 22], [7, 23], [2, 24], [2, 25], [16, 26], [2, 27], [18, 28], [20, 29], [22, 30], [6, 31], [8, 32], [24, 33], [25, 34], [32, 35], [16, 36], [16, 37], [16, 38], [35, 39], [35, 40], [36, 41], [37, 42], [38, 43], [40, 44], [40, 45], [44, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 0], [14, 0], [15, 6], [16, 2], [17, 3], [18, 13], [19, 4], [20, 5], [21, 14], [22, 6], [23, 7], [24, 2], [25, 2], [26, 16], [27, 2], [28, 18], [29, 20], [30, 22], [31, 6], [32, 8], [33, 24], [34, 25], [35, 32], [36, 16], [37, 16], [38, 16], [39, 35], [40, 35], [41, 36], [42, 37], [43, 38], [44, 40], [45, 40], [46, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "toHex", "code": "    public static String toHex(final short value)\n    {\n        return toHex(value, 4);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toHex", "code": "    public static String toHex(final byte value)\n    {\n        return toHex(value, 2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toHex", "code": "    public static String toHex(final int value)\n    {\n        return toHex(value, 8);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toHex", "code": "    public static String toHex(final long value)\n    {\n        return toHex(value, 16);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "toHex", "code": "    private static String toHex(final long value, final int digits)\n    {\n        StringBuffer result = new StringBuffer(digits);\n        for (int j = 0; j < digits; j++)\n        {\n            result.append( _hexcodes[ (int) ((value >> _shifts[ j + (16 - digits) ]) & 15)]);\n        }\n        return result.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [2, 9], [2, 10], [9, 11], [11, 12], [11, 13], [13, 14], [14, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 2], [10, 2], [11, 9], [12, 11], [13, 11], [14, 13], [15, 14], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "dump", "code": "    public static void dump( InputStream in, PrintStream out, int start, int bytesToDump ) throws IOException\n    {\n        ByteArrayOutputStream buf = new ByteArrayOutputStream();\n        if (bytesToDump == -1)\n        {\n            int c = in.read();\n            while (c != -1)\n            {\n                buf.write(c);\n                c = in.read();\n            }\n        }\n        else\n        {\n            int bytesRemaining = bytesToDump;\n            while (bytesRemaining-- > 0)\n            {\n                int c = in.read();\n                if (c == -1)\n                    break;\n                else\n                    buf.write(c);\n            }\n        }\n\n        byte[] data = buf.toByteArray();\n        dump(data, 0, out, start, data.length);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [8, 10], [1, 11], [2, 12], [2, 13], [2, 14], [2, 15], [9, 16], [3, 17], [12, 18], [14, 19], [12, 20], [12, 21], [18, 22], [19, 23], [15, 24], [20, 25], [20, 26], [14, 27], [14, 28], [20, 29], [26, 30], [21, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 8], [11, 1], [12, 2], [13, 2], [14, 2], [15, 2], [16, 9], [17, 3], [18, 12], [19, 14], [20, 12], [21, 12], [22, 18], [23, 19], [24, 15], [25, 20], [26, 20], [27, 14], [28, 14], [29, 20], [30, 26], [31, 21], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "main", "code": "    public static void main(String[] args) throws Exception {\n        File file = new File(args[0]);\n        InputStream in = new BufferedInputStream(new FileInputStream(file)); \n        byte[] b = new byte[(int)file.length()];\n        in.read(b);\n        System.out.println(HexDump.dump(b, 0, 0));\n        in.close();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [2, 9], [3, 10], [8, 11], [8, 12], [9, 13], [1, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 2], [10, 3], [11, 8], [12, 8], [13, 9], [14, 1], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "HexDump", "code": "    private HexDump()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "jedit-4.0-3792", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "gnu/regexp/CharIndexedReader.java", "language": "java", "name": "gnu.regexp.CharIndexedReader", "code": "class CharIndexedReader implements CharIndexed {\n    private static final int BUFFER_INCREMENT = 1024;\n    private static final int UNKNOWN = Integer.MAX_VALUE; // value for end\n    \n    private final BufferedReader br;\n    // so that we don't try to reset() right away\n    private int index = -1;\n\n    private int bufsize = BUFFER_INCREMENT;\n\n    private int end = UNKNOWN;\n\n    private char cached = OUT_OF_BOUNDS;\n\n    // Big enough for a \\r\\n pair\n    // lookBehind[0] = most recent\n    // lookBehind[1] = second most recent\n    private char[] lookBehind = new char[] { OUT_OF_BOUNDS, OUT_OF_BOUNDS }; \n  \n    CharIndexedReader(Reader reader, int index) {\n\tif (reader instanceof BufferedReader) {\n\t    br = (BufferedReader) reader; \n\t} else {\n\t    br = new BufferedReader(reader,BUFFER_INCREMENT);\n\t}\n\tnext();\n\tif (index > 0) move(index);\n    }\n    \n    private boolean next() {\n\tlookBehind[1] = lookBehind[0];\n\tlookBehind[0] = cached;\n\n\tif (end == 1) {\n\t    cached = OUT_OF_BOUNDS;\n\t    return false;\n\t}\n\tend--; // closer to end\n\t\n\ttry {\n\t    if (index != -1) {\n\t\tbr.reset();\n\t    }\n\t    int i = br.read();\n\t    br.mark(bufsize);\n\t    if (i == -1) {\n\t\tend = 1;\n\t\tcached = OUT_OF_BOUNDS;\n\t\treturn false;\n\t    }\n\n\t    // convert the byte read into a char\n\t    cached = (char) i;\n\t    index = 1;\n\t} catch (IOException e) { \n\t    e.printStackTrace();\n\t    cached = OUT_OF_BOUNDS;\n\t    return false; \n\t}\n\treturn true;\n    }\n    \n    public char charAt(int index) {\n\tif (index == 0) {\n\t    return cached;\n\t} else if (index >= end) {\n\t    return OUT_OF_BOUNDS;\n\t} else if (index >= bufsize) {\n\t    // Allocate more space in the buffer.\n\t    try {\n\t\twhile (bufsize <= index) bufsize += BUFFER_INCREMENT;\n\t\tbr.reset();\n\t\tbr.mark(bufsize);\n\t\tbr.skip(index-1);\n\t    } catch (IOException e) { }\n\t} else if (this.index != index) {\n\t    try {\n\t\tbr.reset();\n\t\tbr.skip(index-1);\n\t    } catch (IOException e) { }\n\t} else if (index == -1) {\n\t    return lookBehind[0];\n\t} else if (index == -2) {\n\t    return lookBehind[1];\n\t} else if (index < -2) {\n\t    return OUT_OF_BOUNDS;\n\t}\n\n\tchar ch = OUT_OF_BOUNDS;\n\t\n\ttry {\n\t    int i = br.read();\n\t    this.index = index+1; // this.index is index of next pos relative to charAt(0)\n\t    if (i == -1) {\n\t\t// set flag that next should fail next time?\n\t\tend = index;\n\t\treturn ch;\n\t    }\n\t    ch = (char) i;\n\t} catch (IOException ie) { }\n\t\n\treturn ch;\n    }\n    \n    public boolean move(int index) {\n\t// move read position [index] clicks from 'charAt(0)'\n\tboolean retval = true;\n\twhile (retval && (index-- > 0)) retval = next();\n\treturn retval;\n    }\n    \n    public boolean isValid() {\n\treturn (cached != OUT_OF_BOUNDS);", "functions": [{"function_name": "next", "code": "    private boolean next() {\n\tlookBehind[1] = lookBehind[0];\n\tlookBehind[0] = cached;\n\n\tif (end == 1) {\n\t    cached = OUT_OF_BOUNDS;\n\t    return false;\n\t}\n\tend--; // closer to end\n\t\n\ttry {\n\t    if (index != -1) {\n\t\tbr.reset();\n\t    }\n\t    int i = br.read();\n\t    br.mark(bufsize);\n\t    if (i == -1) {\n\t\tend = 1;\n\t\tcached = OUT_OF_BOUNDS;\n\t\treturn false;\n\t    }\n\n\t    // convert the byte read into a char\n\t    cached = (char) i;\n\t    index = 1;\n\t} catch (IOException e) { \n\t    e.printStackTrace();\n\t    cached = OUT_OF_BOUNDS;\n\t    return false; \n\t}\n\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "RETURN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [3, 9], [0, 10], [0, 11], [5, 12], [2, 13], [2, 14], [6, 15], [2, 16], [8, 17], [3, 18], [9, 19], [12, 20], [5, 21], [5, 22], [13, 23], [6, 24], [15, 25], [7, 26], [17, 27], [18, 28], [3, 29], [24, 30], [6, 31], [6, 32], [8, 33], [10, 34], [11, 35], [11, 36], [32, 37], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 3], [10, 0], [11, 0], [12, 5], [13, 2], [14, 2], [15, 6], [16, 2], [17, 8], [18, 3], [19, 9], [20, 12], [21, 5], [22, 5], [23, 13], [24, 6], [25, 15], [26, 7], [27, 17], [28, 18], [29, 3], [30, 24], [31, 6], [32, 6], [33, 8], [34, 10], [35, 11], [36, 11], [37, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "charAt", "code": "    public char charAt(int index) {\n\tif (index == 0) {\n\t    return cached;\n\t} else if (index >= end) {\n\t    return OUT_OF_BOUNDS;\n\t} else if (index >= bufsize) {\n\t    // Allocate more space in the buffer.\n\t    try {\n\t\twhile (bufsize <= index) bufsize += BUFFER_INCREMENT;\n\t\tbr.reset();\n\t\tbr.mark(bufsize);\n\t\tbr.skip(index-1);\n\t    } catch (IOException e) { }\n\t} else if (this.index != index) {\n\t    try {\n\t\tbr.reset();\n\t\tbr.skip(index-1);\n\t    } catch (IOException e) { }\n\t} else if (index == -1) {\n\t    return lookBehind[0];\n\t} else if (index == -2) {\n\t    return lookBehind[1];\n\t} else if (index < -2) {\n\t    return OUT_OF_BOUNDS;\n\t}\n\n\tchar ch = OUT_OF_BOUNDS;\n\t\n\ttry {\n\t    int i = br.read();\n\t    this.index = index+1; // this.index is index of next pos relative to charAt(0)\n\t    if (i == -1) {\n\t\t// set flag that next should fail next time?\n\t\tend = index;\n\t\treturn ch;\n\t    }\n\t    ch = (char) i;\n\t} catch (IOException ie) { }\n\t\n\treturn ch;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "PARAM", "CATCH", "IF", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "BINARY_OP", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "TRY", "IF", "BINARY_OP", "TRY", "CATCH", "LOOP", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [4, 9], [4, 10], [2, 11], [7, 12], [2, 13], [9, 14], [9, 15], [4, 16], [10, 17], [7, 18], [12, 19], [13, 20], [8, 21], [14, 22], [14, 23], [9, 24], [7, 25], [20, 26], [22, 27], [22, 28], [14, 29], [27, 30], [27, 31], [22, 32], [29, 33], [29, 34], [30, 35], [30, 36], [27, 37], [31, 38], [32, 39], [29, 40], [29, 41], [29, 42], [34, 43], [35, 44], [30, 45], [36, 46], [32, 47], [32, 48], [40, 49], [34, 50], [35, 51], [44, 52], [47, 53], [49, 54], [37, 55], [53, 56], [45, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 4], [10, 4], [11, 2], [12, 7], [13, 2], [14, 9], [15, 9], [16, 4], [17, 10], [18, 7], [19, 12], [20, 13], [21, 8], [22, 14], [23, 14], [24, 9], [25, 7], [26, 20], [27, 22], [28, 22], [29, 14], [30, 27], [31, 27], [32, 22], [33, 29], [34, 29], [35, 30], [36, 30], [37, 27], [38, 31], [39, 32], [40, 29], [41, 29], [42, 29], [43, 34], [44, 35], [45, 30], [46, 36], [47, 32], [48, 32], [49, 40], [50, 34], [51, 35], [52, 44], [53, 47], [54, 49], [55, 37], [56, 53], [57, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "move", "code": "    public boolean move(int index) {\n\t// move read position [index] clicks from 'charAt(0)'\n\tboolean retval = true;\n\twhile (retval && (index-- > 0)) retval = next();\n\treturn retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isValid", "code": "    public boolean isValid() {\n\treturn (cached != OUT_OF_BOUNDS);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CharIndexedReader", "code": "    CharIndexedReader(Reader reader, int index) {\n\tif (reader instanceof BufferedReader) {\n\t    br = (BufferedReader) reader; \n\t} else {\n\t    br = new BufferedReader(reader,BUFFER_INCREMENT);\n\t}\n\tnext();\n\tif (index > 0) move(index);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [5, 9], [2, 10], [2, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 5], [10, 2], [11, 2], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "jedit-4.0-3939", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "bsh/BshClassManager.java", "language": "java", "name": "bsh.BshClassManager", "code": "public abstract class BshClassManager\n{\n\t/** Singleton class manager */\n\tprivate static BshClassManager manager;\n\tprivate static boolean checkedForManager;\n\t// Use a hashtable as a Set...\n\tprivate static Object NOVALUE = new Object(); \n\t\n\t/**\n\t\tAn external classloader supplied by the setClassLoader() command.\n\t*/\n\tprivate static ClassLoader externalClassLoader;\n\n\t/**\n\t\tGlobal cache for things we know are classes.\n\t\tNote: these should probably be re-implemented with Soft references.\n\t\t(as opposed to strong or Weak)\n\t*/\n    protected transient static Hashtable absoluteClassCache = new Hashtable();\n\t/**\n\t\tGlobal cache for things we know are *not* classes.\n\t\tNote: these should probably be re-implemented with Soft references.\n\t\t(as opposed to strong or Weak)\n\t*/\n    protected transient static Hashtable absoluteNonClasses = new Hashtable();\n\n\t// Begin static methods\n\n\t/**\n\t\t@return the BshClassManager singleton or null, indicating no\n\t\tclass manager is available.\n\t*/\n// Note: this should probably throw Capabilities.Unavailable instead of\n// returning null\n\tpublic static BshClassManager getClassManager() \n\t{\n\t\t// Bootstrap the class manager if it exists\n\n\t\t// have we loaded it before?\n\t\tif ( !checkedForManager && manager == null )\n\t\t\t// Do we have the necessary jdk1.2 packages?\n\t\t\ttry {\n\t\t\t\tif ( plainClassForName(\"java.lang.ref.WeakReference\") != null\n\t\t\t\t\t&& plainClassForName(\"java.util.HashMap\")  != null )\n\t\t\t\t{\n\t\t\t\t\t// try to load the implementation\n\t\t\t\t\tClass bcm = plainClassForName(\n\t\t\t\t\t\t\"bsh.classpath.ClassManagerImpl\");\n\t\t\t\t\tmanager = (BshClassManager)bcm.newInstance();\n\t\t\t\t}\n\t\t\t} catch ( ClassNotFoundException e ) {\n\t\t\t\t//System.err.println(\"No class manager available.\");\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tSystem.err.println(\"Error loading classmanager: \"+e);\n\t\t\t}\n\n\t\tcheckedForManager = true;\n\t\treturn manager;\n\t}\n\n\tpublic static boolean classExists( String name ) {\n\t\treturn ( classForName( name ) != null );\n\t}\n\n\t/**\n\t\tLoad the specified class by name, taking into account added classpath\n\t\tand reloaded classes, etc.\n\t\t@return the class or null\n\t*/\n\tpublic static Class classForName( String name ) {\n\t\tBshClassManager manager = getClassManager(); // prime the singleton\n\t\tif ( manager != null )\n\t\t\treturn manager.getClassForName( name );\n\t\telse\n\t\t\ttry {\n\t\t\t\treturn plainClassForName( name );\n\t\t\t} catch ( ClassNotFoundException e ) {\n\t\t\t\treturn null;\n\t\t\t}\n\t}\n\n\t/**\n\t\tPerform a plain Class.forName() or call the externally provided\n\t\tclass loader.\n\t\tIf a BshClassManager implementation is loaded the call will be \n\t\tdelegated to it, to allow for additional hooks.\n\n\t\tThis simply wraps that bottom level class lookup call and provides a \n\t\tcentral point for monitoring and handling certain Java version \n\t\tdependent bugs, etc.\n\n\t\t@see getPlainClassForName()\n\t\t@return the class\n\t*/\n\tpublic static Class plainClassForName( String name ) \n\t\tthrows ClassNotFoundException \n\t{\n\t\ttry {\n\t\t\tClass c;\n\t\t\tif ( externalClassLoader != null )\n\t\t\t\tc = externalClassLoader.loadClass( name );\n\t\t\telse {\n\t\t\t\t// If BCM exists, delegate to it.\n\t\t\t\tBshClassManager bcm = manager; // Don't create if not there yet.\n\t\t\t\tif ( bcm != null )\n\t\t\t\t\tc = bcm.getPlainClassForName( name );\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\tc = Class.forName( name );\n\t\t\t}\n\n\t\t\tcacheClassInfo( name, c );\n\t\t\treturn c;\n\t\t/*\n\t\t\tThis is weird... jdk under Win is throwing these to\n\t\t\twarn about lower case / upper case possible mismatch.\n\t\t\te.g. bsh.console bsh.Console\n\t\t*/\n\t\t} catch ( NoClassDefFoundError e ) {\n\t\t\tcacheClassInfo( name, null ); // non-class\n\t\t\tthrow new ClassNotFoundException( e.toString() );\n\t\t}\n\t}\n\n\t/**\n\t\tCache info about whether name is a class or not.\n\t\t@param value \n\t\t\tif value is non-null, cache the class\n\t\t\tif value is null, set the flag that it is *not* a class to\n\t\t\tspeed later resolution\n\t*/\n\tpublic static void cacheClassInfo( String name, Class value ) {\n\t\tif ( value != null )\n\t\t\tabsoluteClassCache.put( name, value );\n\t\telse\n\t\t\tabsoluteNonClasses.put( name, NOVALUE );\n\t}\n\n\t/**\n\t\tClear the static caches in BshClassManager\n\t*/\n\tprotected void clearCaches() {\n    \tabsoluteNonClasses = new Hashtable();\n    \tabsoluteClassCache = new Hashtable();\n\t}\n\n\t/**\n\t\tAdd a BshClassManager.Listener to the class manager.\n\t\tThe listener is informed upon changes to the classpath.\n\t\tThis is a static convenience form of BshClassManager addListener().\n\t\tIf there is no class manager the listener will be ignored.\n\t*/\n\tpublic static void addCMListener( Listener l ) {\n\t\tgetClassManager(); // prime it\n\t\tif ( manager != null )\n\t\t\tmanager.addListener( l );\n\t}\n\n\t/**\n\t\tSet an external class loader.  BeanShell will use this at the same \n\t\tpoint it would otherwise use the plain Class.forName().\n\t\ti.e. if no explicit classpath management is done from the script\n\t\t(addClassPath(), setClassPath(), reloadClasses()) then BeanShell will\n\t\tonly use the supplied classloader.  If additional classpath management\n\t\tis done then BeanShell will perform that in addition to the supplied\n\t\texternal classloader.\n\t\tHowever BeanShell is not currently able to reload\n\t\tclasses supplied through the external classloader.\n\t*/\n\tpublic static void setClassLoader( ClassLoader externalCL ) \n\t{\n\t\texternalClassLoader = externalCL;\n\t\tBshClassManager bcm = getClassManager();\n\t\tif ( bcm != null )\n\t\t\tbcm.classLoaderChanged();\n\t}\n\n\t// end static methods\n\n\tpublic static interface Listener \n\t{\n\t\tpublic void classLoaderChanged();\n\t}\n\n\t// Begin interface methods\n\n\t/** @see classForName */\n\tpublic abstract Class getClassForName( String name );\n\n\t/** \n\t\tDelegate for plainClassForName.\n\t\t@see plainClassForName\n\t */\n\tpublic abstract Class getPlainClassForName( String name ) \n\t\tthrows ClassNotFoundException ;\n\n\tpublic abstract ClassLoader getBaseLoader();\n\n\tpublic abstract ClassLoader getLoaderForClass( String name );\n\n\tpublic abstract void addClassPath( URL path )\n\t\tthrows IOException;\n\n\t/**\n\t\tClear all loaders and start over.  No class loading.\n\t*/\n\tpublic abstract void reset();\n\n\t/**\n\t\tSet a new base classpath and create a new base classloader.\n\t\tThis means all types change. \n\t*/\n\tpublic abstract void setClassPath( URL [] cp );\n\n\t/**\n\t\tOverlay the entire path with a new class loader.\n\t\tSet the base path to the user path + base path.\n\n\t\tNo point in including the boot class path (can't reload thos).\n\t*/\n\tpublic abstract void reloadAllClasses() throws ClassPathException;\n\n\t/**\n\t\tReloading classes means creating a new classloader and using it\n\t\twhenever we are asked for classes in the appropriate space.\n\t\tFor this we use a DiscreteFilesClassLoader\n\t*/\n\tpublic abstract void reloadClasses( String [] classNames )\n\t\tthrows ClassPathException;\n\n\t/**\n\t\tReload all classes in the specified package: e.g. \"com.sun.tools\"\n\n\t\tThe special package name \"<unpackaged>\" can be used to refer \n\t\tto unpackaged classes.\n\t*/\n\tpublic abstract void reloadPackage( String pack ) \n\t\tthrows ClassPathException ;\n\n\t/**\n\t\tThis has been removed from the interface to shield the core from the\n\t\trest of the classpath package. If you need the classpath you will have\n\t\tto cast the classmanager to its impl.\n\n\t\tpublic abstract BshClassPath getClassPath() throws ClassPathException;\n\t*/\n\n\t/**\n\t\tSupport for \"import *;\"\n\t\tHide details in here as opposed to NameSpace.\n\tNote: this used to be package private...\n\t*/\n\tpublic abstract void doSuperImport() throws EvalError;\n\n\t/**\n\t\tReturn the name or null if none is found,\n\t\tThrow an ClassPathException containing detail if name is ambigous.\n\tNote: this used to be package private...\n\t*/\n\tpublic abstract String getClassNameByUnqName( String name ) \n\t\tthrows ClassPathException;\n\n\tpublic abstract void addListener( Listener l );\n\n\tpublic abstract void removeListener( Listener l );\n\n\tpublic abstract void dump( PrintWriter pw );\n\n\tprotected abstract void classLoaderChanged();", "functions": [{"function_name": "getClassManager", "code": "\tpublic static BshClassManager getClassManager() \n\t{\n\t\t// Bootstrap the class manager if it exists\n\n\t\t// have we loaded it before?\n\t\tif ( !checkedForManager && manager == null )\n\t\t\t// Do we have the necessary jdk1.2 packages?\n\t\t\ttry {\n\t\t\t\tif ( plainClassForName(\"java.lang.ref.WeakReference\") != null\n\t\t\t\t\t&& plainClassForName(\"java.util.HashMap\")  != null )\n\t\t\t\t{\n\t\t\t\t\t// try to load the implementation\n\t\t\t\t\tClass bcm = plainClassForName(\n\t\t\t\t\t\t\"bsh.classpath.ClassManagerImpl\");\n\t\t\t\t\tmanager = (BshClassManager)bcm.newInstance();\n\t\t\t\t}\n\t\t\t} catch ( ClassNotFoundException e ) {\n\t\t\t\t//System.err.println(\"No class manager available.\");\n\t\t\t} catch ( Exception e ) {\n\t\t\t\tSystem.err.println(\"Error loading classmanager: \"+e);\n\t\t\t}\n\n\t\tcheckedForManager = true;\n\t\treturn manager;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "ASSIGN", "TRY", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [3, 6], [4, 7], [4, 8], [4, 9], [5, 10], [9, 11], [10, 12], [7, 13], [9, 14], [11, 15], [11, 16], [13, 17], [9, 18], [15, 19], [15, 20], [16, 21], [16, 22], [17, 23], [14, 24], [20, 25], [22, 26], [18, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 3], [7, 4], [8, 4], [9, 4], [10, 5], [11, 9], [12, 10], [13, 7], [14, 9], [15, 11], [16, 11], [17, 13], [18, 9], [19, 15], [20, 15], [21, 16], [22, 16], [23, 17], [24, 14], [25, 20], [26, 22], [27, 18], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "classExists", "code": "\tpublic static boolean classExists( String name ) {\n\t\treturn ( classForName( name ) != null );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "classForName", "code": "\tpublic static Class classForName( String name ) {\n\t\tBshClassManager manager = getClassManager(); // prime the singleton\n\t\tif ( manager != null )\n\t\t\treturn manager.getClassForName( name );\n\t\telse\n\t\t\ttry {\n\t\t\t\treturn plainClassForName( name );\n\t\t\t} catch ( ClassNotFoundException e ) {\n\t\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "TRY", "RETURN", "BINARY_OP", "CATCH", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [5, 9], [6, 10], [2, 11], [7, 12], [8, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 5], [10, 6], [11, 2], [12, 7], [13, 8], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "plainClassForName", "code": "\tpublic static Class plainClassForName( String name ) \n\t\tthrows ClassNotFoundException \n\t{\n\t\ttry {\n\t\t\tClass c;\n\t\t\tif ( externalClassLoader != null )\n\t\t\t\tc = externalClassLoader.loadClass( name );\n\t\t\telse {\n\t\t\t\t// If BCM exists, delegate to it.\n\t\t\t\tBshClassManager bcm = manager; // Don't create if not there yet.\n\t\t\t\tif ( bcm != null )\n\t\t\t\t\tc = bcm.getPlainClassForName( name );\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\tc = Class.forName( name );\n\t\t\t}\n\n\t\t\tcacheClassInfo( name, c );\n\t\t\treturn c;\n\t\t/*\n\t\t\tThis is weird... jdk under Win is throwing these to\n\t\t\twarn about lower case / upper case possible mismatch.\n\t\t\te.g. bsh.console bsh.Console\n\t\t*/\n\t\t} catch ( NoClassDefFoundError e ) {\n\t\t\tcacheClassInfo( name, null ); // non-class\n\t\t\tthrow new ClassNotFoundException( e.toString() );", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [1, 8], [5, 9], [7, 10], [3, 11], [5, 12], [5, 13], [5, 14], [9, 15], [10, 16], [11, 17], [12, 18], [14, 19], [12, 20], [12, 21], [18, 22], [20, 23], [21, 24], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 1], [9, 5], [10, 7], [11, 3], [12, 5], [13, 5], [14, 5], [15, 9], [16, 10], [17, 11], [18, 12], [19, 14], [20, 12], [21, 12], [22, 18], [23, 20], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "cacheClassInfo", "code": "\tpublic static void cacheClassInfo( String name, Class value ) {\n\t\tif ( value != null )\n\t\t\tabsoluteClassCache.put( name, value );\n\t\telse\n\t\t\tabsoluteNonClasses.put( name, NOVALUE );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "clearCaches", "code": "\tprotected void clearCaches() {\n    \tabsoluteNonClasses = new Hashtable();\n    \tabsoluteClassCache = new Hashtable();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addCMListener", "code": "\tpublic static void addCMListener( Listener l ) {\n\t\tgetClassManager(); // prime it\n\t\tif ( manager != null )\n\t\t\tmanager.addListener( l );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setClassLoader", "code": "\tpublic static void setClassLoader( ClassLoader externalCL ) \n\t{\n\t\texternalClassLoader = externalCL;\n\t\tBshClassManager bcm = getClassManager();\n\t\tif ( bcm != null )\n\t\t\tbcm.classLoaderChanged();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [4, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 4], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getClassForName", "code": "\tpublic abstract Class getClassForName( String name );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPlainClassForName", "code": "\tpublic abstract Class getPlainClassForName( String name ) ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBaseLoader", "code": "\tpublic abstract ClassLoader getBaseLoader();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getLoaderForClass", "code": "\tpublic abstract ClassLoader getLoaderForClass( String name );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addClassPath", "code": "\tpublic abstract void addClassPath( URL path )", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reset", "code": "\tpublic abstract void reset();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setClassPath", "code": "\tpublic abstract void setClassPath( URL [] cp );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reloadAllClasses", "code": "\tpublic abstract void reloadAllClasses() throws ClassPathException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "reloadClasses", "code": "\tpublic abstract void reloadClasses( String [] classNames )", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reloadPackage", "code": "\tpublic abstract void reloadPackage( String pack ) ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doSuperImport", "code": "\tpublic abstract void doSuperImport() throws EvalError;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getClassNameByUnqName", "code": "\tpublic abstract String getClassNameByUnqName( String name ) ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addListener", "code": "\tpublic abstract void addListener( Listener l );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "removeListener", "code": "\tpublic abstract void removeListener( Listener l );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "dump", "code": "\tpublic abstract void dump( PrintWriter pw );", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "classLoaderChanged", "code": "\tprotected abstract void classLoaderChanged();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.4-6613", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/dtm/ref/DTMManagerDefault.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMManagerDefault", "code": "public class DTMManagerDefault extends DTMManager\n{\n\n  /** Set this to true if you want a dump of the DTM after creation. */\n  private static final boolean DUMPTREE = false;\n\n  /** Set this to true if you want a basic diagnostics. */\n  private static final boolean DEBUG = false;\n\n  /**\n   * Map from DTM identifier numbers to DTM objects that this manager manages.\n   * One DTM may have several prefix numbers, if extended node indexing\n   * is in use; in that case, m_dtm_offsets[] will used to control which\n   * prefix maps to which section of the DTM.\n   * \n   * This array grows as necessary; see addDTM().\n   * \n   * This array grows as necessary; see addDTM(). Growth is uncommon... but\n   * access needs to be blindingly fast since it's used in node addressing.\n   */\n  protected DTM m_dtms[] = new DTM[256];\n\t\n  /** Map from DTM identifier numbers to offsets. For small DTMs with a \n   * single identifier, this will always be 0. In overflow addressing, where\n   * additional identifiers are allocated to access nodes beyond the range of\n   * a single Node Handle, this table is used to map the handle's node field\n   * into the actual node identifier.\n   * \n   * This array grows as necessary; see addDTM().\n   * \n   * This array grows as necessary; see addDTM(). Growth is uncommon... but\n   * access needs to be blindingly fast since it's used in node addressing.\n   * (And at the moment, that includes accessing it from DTMDefaultBase,\n   * which is why this is not Protected or Private.)\n   */\n  int m_dtm_offsets[] = new int[256];\n\n  /**\n   * Add a DTM to the DTM table. This convenience call adds it as the \n   * \"base DTM ID\", with offset 0. The other version of addDTM should \n   * be used if you want to add \"extended\" DTM IDs with nonzero offsets.\n   *\n   * @param dtm Should be a valid reference to a DTM.\n   * @param id Integer DTM ID to be bound to this DTM\n   */\n  synchronized public void addDTM(DTM dtm, int id) {\taddDTM(dtm,id,0); }\n\n\t\n  /**\n   * Add a DTM to the DTM table.\n   *\n   * @param dtm Should be a valid reference to a DTM.\n   * @param id Integer DTM ID to be bound to this DTM.\n   * @param offset Integer addressing offset. The internal DTM Node ID is\n   * obtained by adding this offset to the node-number field of the \n   * public DTM Handle. For the first DTM ID accessing each DTM, this is 0;\n   * for overflow addressing it will be a multiple of 1<<IDENT_DTM_NODE_BITS.\n   */\n  synchronized public void addDTM(DTM dtm, int id, int offset)\n  {\n\t\tif(id>=IDENT_MAX_DTMS)\n\t\t{\n\t\t}\n\t\t\n\t\tint oldlen=m_dtms.length;\n\t\tif(oldlen<=id)\n\t\t{\n\t\t\tint newlen=Math.min((id+256),IDENT_MAX_DTMS);\n\n\t\t\tDTM new_m_dtms[] = new DTM[newlen];\n\t\t\tSystem.arraycopy(m_dtms,0,new_m_dtms,0,oldlen);\n\t\t\tm_dtms=new_m_dtms;\n\t\t\tint new_m_dtm_offsets[] = new int[newlen];\n\t\t\tSystem.arraycopy(m_dtm_offsets,0,new_m_dtm_offsets,0,oldlen);\n\t\t\tm_dtm_offsets=new_m_dtm_offsets;\n\t\t}\n\t\t\n    m_dtms[id] = dtm;\n\t\tm_dtm_offsets[id]=offset;\n    dtm.documentRegistration();\n  }\n\n  /**\n   * Get the first free DTM ID available. %OPT% Linear search is inefficient!\n   */\n  synchronized public int getFirstFreeDTMID()\n  {\n    int n = m_dtms.length;\n    for (int i = 1; i < n; i++)\n    {\n      if(null == m_dtms[i])\n      {\n        return i;\n      }\n    }\n  }\n\n  /**\n   * The default table for exandedNameID lookups.\n   */\n  private ExpandedNameTable m_expandedNameTable =\n    new ExpandedNameTable();\n\n  /**\n   * Constructor DTMManagerDefault\n   *\n   */\n  public DTMManagerDefault(){}\n\n\n  /**\n   * Get an instance of a DTM, loaded with the content from the\n   * specified source.  If the unique flag is true, a new instance will\n   * always be returned.  Otherwise it is up to the DTMManager to return a\n   * new instance or an instance that it already created and may be being used\n   * by someone else.\n   * \n   * A bit of magic in this implementation: If the source is null, unique is true,\n   * and incremental and doIndexing are both false, we return an instance of\n   * SAX2RTFDTM, which see.\n   * \n   * (I think more parameters will need to be added for error handling, and entity\n   * resolution, and more explicit control of the RTF situation).\n   *\n   * @param source the specification of the source object.\n   * @param unique true if the returned DTM must be unique, probably because it\n   * is going to be mutated.\n   * @param whiteSpaceFilter Enables filtering of whitespace nodes, and may\n   *                         be null.\n   * @param incremental true if the DTM should be built incrementally, if\n   *                    possible.\n   * @param doIndexing true if the caller considers it worth it to use\n   *                   indexing schemes.\n   *\n   * @return a non-null DTM reference.\n   */\n  synchronized public DTM getDTM(Source source, boolean unique,\n                                 DTMWSFilter whiteSpaceFilter,\n                                 boolean incremental, boolean doIndexing)\n  {\n\n    if(DEBUG && null != source)\n      System.out.println(\"Starting \"+\n                         (unique ? \"UNIQUE\" : \"shared\")+\n                         \" source: \"+source.getSystemId()\n                         );\n\n    XMLStringFactory xstringFactory = m_xsf;\n    int dtmPos = getFirstFreeDTMID();\n    int documentID = dtmPos << IDENT_DTM_NODE_BITS;\n\n    if ((null != source) && source instanceof DOMSource)\n    {\n      DOM2DTM dtm = new DOM2DTM(this, (DOMSource) source, documentID,\n                                whiteSpaceFilter, xstringFactory, doIndexing);\n\n      addDTM(dtm, dtmPos, 0);\n\n\n      return dtm;\n    }\n    else\n    {\n      boolean isSAXSource = (null != source)\n        ? (source instanceof SAXSource) : true;\n      boolean isStreamSource = (null != source)\n        ? (source instanceof StreamSource) : false;\n\n      if (isSAXSource || isStreamSource)\n      {\n        XMLReader reader;\n        InputSource xmlSource;\n\n        if (null == source)\n        {\n          xmlSource = null;\n          reader = null;\n        }\n        else\n        {\n          reader = getXMLReader(source);\n          xmlSource = SAXSource.sourceToInputSource(source);\n\n          String urlOfSource = xmlSource.getSystemId();\n\n          if (null != urlOfSource)\n          {\n            try\n            {\n              urlOfSource = SystemIDResolver.getAbsoluteURI(urlOfSource);\n            }\n            catch (Exception e)\n            {\n\n              System.err.println(\"Can not absolutize URL: \" + urlOfSource);\n            }\n\n            xmlSource.setSystemId(urlOfSource);\n          }\n        }\n\n        SAX2DTM dtm;\n        if(source==null && unique && !incremental && !doIndexing)\n        {\n          dtm = new SAX2RTFDTM(this, source, documentID, whiteSpaceFilter,\n                               xstringFactory, doIndexing);\n        }\n        /**************************************************************\n        else if(JKESS_XNI_EXPERIMENT && m_incremental)\n        {        \t\n          dtm = new XNI2DTM(this, source, documentID, whiteSpaceFilter,\n                            xstringFactory, doIndexing);\n        }\n        **************************************************************/\n        {\n          dtm = new SAX2DTM(this, source, documentID, whiteSpaceFilter,\n                            xstringFactory, doIndexing);\n        }\n\n        addDTM(dtm, dtmPos, 0);\n\n\n        boolean haveXercesParser =\n          (null != reader)\n          && (reader.getClass().getName().equals(\"org.apache.xerces.parsers.SAXParser\") );\n        \n        if (haveXercesParser)\n        \n        if (this.m_incremental && incremental /* || ((null == reader) && incremental) */)\n        {\n          IncrementalSAXSource coParser=null;\n\n          if (haveXercesParser)\n          {\n            try {\n              coParser=org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces.createIncrementalSAXSource();\n            }  catch( Exception ex ) {\n              ex.printStackTrace();\n              coParser=null;\n            }\n          }\n\n          if( coParser==null ) {\n            if (null == reader)\n              coParser = new IncrementalSAXSource_Filter();\n            else\n            {\n              IncrementalSAXSource_Filter filter=new IncrementalSAXSource_Filter();\n              filter.setXMLReader(reader);\n              coParser=filter;\n            }\n\n          }\n\n\t\t\t\n        /**************************************************************\n          if(JKESS_XNI_EXPERIMENT && m_incremental & \n          \tdtm instanceof XNI2DTM && \n          \tcoParser instanceof IncrementalSAXSource_Xerces)\n          {          \t\n       \t\torg.apache.xerces.xni.parser.XMLPullParserConfiguration xpc=\n       \t\t\t((IncrementalSAXSource_Xerces)coParser).getXNIParserConfiguration();\n       \t\tif(xpc!=null)\t\n          \t\t((XNI2DTM)dtm).setIncrementalXNISource(xpc);\n          \telse\n\t\t\t\tdtm.setIncrementalSAXSource(coParser);\n          } else\n          ***************************************************************/\n          \n          dtm.setIncrementalSAXSource(coParser);\n\n          if (null == xmlSource)\n          {\n\n            return dtm;\n          }\n\n          if(null == reader.getErrorHandler())\n            reader.setErrorHandler(dtm);\n          reader.setDTDHandler(dtm);\n\n          try\n          {\n\n            coParser.startParse(xmlSource);\n          }\n          catch (RuntimeException re)\n          {\n\n            dtm.clearCoRoutine();\n\n            throw re;\n          }\n          catch (Exception e)\n          {\n\n            dtm.clearCoRoutine();\n\n            throw new org.apache.xml.utils.WrappedRuntimeException(e);\n          }\n        }\n        else\n        {\n          if (null == reader)\n          {\n\n            return dtm;\n          }\n\n          reader.setContentHandler(dtm);\n          reader.setDTDHandler(dtm);\n          if(null == reader.getErrorHandler())\n            reader.setErrorHandler(dtm);\n\n          try\n          {\n            reader.setProperty();\n          }\n          catch (SAXNotRecognizedException e){}\n          catch (SAXNotSupportedException e){}\n\n          try\n          {\n            reader.parse(xmlSource);\n          }\n          catch (RuntimeException re)\n          {\n\n            dtm.clearCoRoutine();\n\n            throw re;\n          }\n          catch (Exception e)\n          {\n\n            dtm.clearCoRoutine();\n\n            throw new org.apache.xml.utils.WrappedRuntimeException(e);\n          }\n        }\n\n        if (DUMPTREE)\n        {\n          System.out.println(\"Dumping SAX2DOM\");\n          dtm.dumpDTM(System.err);\n        }\n\n        return dtm;\n      }\n      else\n      {\n\n      }\n    }\n  }\n\n  /**\n   * Given a W3C DOM node, try and return a DTM handle.\n   * Note: calling this may be non-optimal, and there is no guarantee that\n   * the node will be found in any particular DTM.\n   *\n   * @param node Non-null reference to a DOM node.\n   *\n   * @return a valid DTM handle.\n   */\n  synchronized public int getDTMHandleFromNode(org.w3c.dom.Node node)\n  {\n    if(null == node)\n\n    if (node instanceof org.apache.xml.dtm.ref.DTMNodeProxy)\n      return ((org.apache.xml.dtm.ref.DTMNodeProxy) node).getDTMNodeNumber();\n\t\t\n    else\n    {\n\t\t\tint max = m_dtms.length;\n      for(int i = 0; i < max; i++)\n        {\n          DTM thisDTM=m_dtms[i];\n          if((null != thisDTM) && thisDTM instanceof DOM2DTM)\n          {\n            int handle=((DOM2DTM)thisDTM).getHandleOfNode(node);\n            if(handle!=DTM.NULL) return handle;\n          }\n         }\n\n\n      Node root = node;\n      Node p = (root.getNodeType() == Node.ATTRIBUTE_NODE) ? ((org.w3c.dom.Attr)root).getOwnerElement() : root.getParentNode();\n      for (; p != null; p = p.getParentNode())\n      {\n        root = p;\n      }\n\n      DOM2DTM dtm = (DOM2DTM) getDTM(new javax.xml.transform.dom.DOMSource(root),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, null, true, true);\n\n      int handle;\n      \n      if(node instanceof org.apache.xml.dtm.ref.dom2dtm.DOM2DTMdefaultNamespaceDeclarationNode)\n      {\n\t\t\t\thandle=dtm.getHandleOfNode(((org.w3c.dom.Attr)node).getOwnerElement());\n\t\t\t\thandle=dtm.getAttributeNode(handle,node.getNamespaceURI(),node.getLocalName());\n      }\n      else\n\t\t\t\thandle = ((DOM2DTM)dtm).getHandleOfNode(node);\n\n      if(DTM.NULL == handle)\n\n      return handle;\n    }\n  }\n\n  /**\n   * This method returns the SAX2 parser to use with the InputSource\n   * obtained from this URI.\n   * It may return null if any SAX2-conformant XML parser can be used,\n   * or if getInputSource() will also return null. The parser must\n   * be free for use (i.e.\n   * not currently in use for another parse().\n   *\n   * @param inputSource The value returned from the URIResolver.\n   * @returns a SAX2 XMLReader to use to resolve the inputSource argument.\n   *\n   * @return non-null XMLReader reference ready to parse.\n   */\n  synchronized public XMLReader getXMLReader(Source inputSource)\n  {\n\n    try\n    {\n      XMLReader reader = (inputSource instanceof SAXSource)\n                         ? ((SAXSource) inputSource).getXMLReader() : null;\n\n      boolean isUserReader = (reader != null);\n\n      if (null == reader)\n      {\n        try\n        {\n          javax.xml.parsers.SAXParserFactory factory =\n            javax.xml.parsers.SAXParserFactory.newInstance();\n\n          factory.setNamespaceAware(true);\n\n          javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser();\n\n          reader = jaxpParser.getXMLReader();\n        }\n        catch (javax.xml.parsers.ParserConfigurationException ex)\n        {\n          throw new org.xml.sax.SAXException(ex);\n        }\n        catch (javax.xml.parsers.FactoryConfigurationError ex1)\n        {\n          throw new org.xml.sax.SAXException(ex1.toString());\n        }\n        catch (NoSuchMethodError ex2){}\n        catch (AbstractMethodError ame){}\n\n        if (null == reader)\n          reader = XMLReaderFactory.createXMLReader();\n      }\n\n      try\n      {\n               \n      }\n      catch (org.xml.sax.SAXException se)\n      {\n\n      }\n\n\n      return reader;\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new DTMException(se.getMessage(), se);\n    }\n  }\n\n  /**\n   * Return the DTM object containing a representation of this node.\n   *\n   * @param nodeHandle DTM Handle indicating which node to retrieve\n   *\n   * @return a reference to the DTM object containing this node.\n   */\n  synchronized public DTM getDTM(int nodeHandle)\n  {\n    try\n    {\n      return m_dtms[nodeHandle >>> IDENT_DTM_NODE_BITS];\n    }\n    catch(java.lang.ArrayIndexOutOfBoundsException e)\n    {\n      if(nodeHandle==DTM.NULL){}\n      else{}\n    }    \n  }\n\n  /**\n   * Given a DTM, find the ID number in the DTM tables which addresses\n   * the start of the document. If overflow addressing is in use, other\n   * DTM IDs may also be assigned to this DTM.\n   *\n   * @param dtm The DTM which (hopefully) contains this node.\n   *\n   * @return The DTM ID (as the high bits of a NodeHandle, not as our\n   * internal index), or -1 if the DTM doesn't belong to this manager.\n   */\n  synchronized public int getDTMIdentity(DTM dtm)\n  {\n\tif(dtm instanceof DTMDefaultBase)\n\t{\n\t\tDTMDefaultBase dtmdb=(DTMDefaultBase)dtm;\n\t\tif(dtmdb.getManager()==this)\n\t\t\treturn dtmdb.getDTMIDs().elementAt(0);\n\t\telse\n\t\t\treturn -1;\n\t}\n\t\t\t\t\n    int n = m_dtms.length;\n\n    for (int i = 0; i < n; i++)\n    {\n      DTM tdtm = m_dtms[i];\n\n      if (tdtm == dtm && m_dtm_offsets[i]==0)\n        return i << IDENT_DTM_NODE_BITS;\n    }\n\n    return -1;\n  }\n\n  /**\n   * Release the DTMManager's reference(s) to a DTM, making it unmanaged.\n   * This is typically done as part of returning the DTM to the heap after\n   * we're done with it.\n   *\n   * @param dtm the DTM to be released.\n   * \n   * @param shouldHardDelete If false, this call is a suggestion rather than an\n   * order, and we may not actually release the DTM. This is intended to \n   * support intelligent caching of documents... which is not implemented\n   * in this version of the DTM manager.\n   *\n   * @return true if the DTM was released, false if shouldHardDelete was set\n   * and we decided not to.\n   */\n  synchronized public boolean release(DTM dtm, boolean shouldHardDelete)\n  {\n    if(DEBUG)\n    {\n      System.out.println(\"Releasing \"+\n\t\t\t (shouldHardDelete ? \"HARD\" : \"soft\")+\n\t\t\t \" dtm=\"+\n\t\t\t dtm.getDocumentBaseURI()\n\t\t\t );\n    }\n\n    if (dtm instanceof SAX2DTM)\n    {\n      ((SAX2DTM) dtm).clearCoRoutine();\n    }\n\n\t\tif(dtm instanceof DTMDefaultBase)\n\t\t{\n\t\t\torg.apache.xml.utils.SuballocatedIntVector ids=((DTMDefaultBase)dtm).getDTMIDs();\n\t\t\tfor(int i=ids.size()-1;i>=0;--i)\n\t\t\t\tm_dtms[ids.elementAt(i)>>>DTMManager.IDENT_DTM_NODE_BITS]=null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint i = getDTMIdentity(dtm);\n\t\t    if (i >= 0)\n\t\t\t{\n\t\t\t\tm_dtms[i >>> DTMManager.IDENT_DTM_NODE_BITS] = null;\n\t\t\t}\n\t\t}\n\n    dtm.documentRelease();\n    return true;\n  }\n\n  /**\n   * Method createDocumentFragment\n   *\n   *\n   * NEEDSDOC (createDocumentFragment) @return\n   */\n  synchronized public DTM createDocumentFragment()\n  {\n\n    try\n    {\n      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n      dbf.setNamespaceAware(true);\n\n      DocumentBuilder db = dbf.newDocumentBuilder();\n      Document doc = db.newDocument();\n      Node df = doc.createDocumentFragment();\n\n      return getDTM(new DOMSource(df), true, null, false, false);\n    }\n    catch (Exception e)\n    {\n      throw new DTMException(e);\n    }\n  }\n\n  /**\n   * NEEDSDOC Method createDTMIterator\n   *\n   *\n   * NEEDSDOC @param whatToShow\n   * NEEDSDOC @param filter\n   * NEEDSDOC @param entityReferenceExpansion\n   *\n   * NEEDSDOC (createDTMIterator) @return\n   */\n  synchronized public DTMIterator createDTMIterator(int whatToShow, DTMFilter filter,\n                                       boolean entityReferenceExpansion)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;\n  }\n\n  /**\n   * NEEDSDOC Method createDTMIterator\n   *\n   *\n   * NEEDSDOC @param xpathString\n   * NEEDSDOC @param presolver\n   *\n   * NEEDSDOC (createDTMIterator) @return\n   */\n  synchronized public DTMIterator createDTMIterator(String xpathString,\n                                       PrefixResolver presolver)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;\n  }\n\n  /**\n   * NEEDSDOC Method createDTMIterator\n   *\n   *\n   * NEEDSDOC @param node\n   *\n   * NEEDSDOC (createDTMIterator) @return\n   */\n  synchronized public DTMIterator createDTMIterator(int node)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;\n  }\n\n  /**\n   * NEEDSDOC Method createDTMIterator\n   *\n   *\n   * NEEDSDOC @param xpathCompiler\n   * NEEDSDOC @param pos\n   *\n   * NEEDSDOC (createDTMIterator) @return\n   */\n  synchronized public DTMIterator createDTMIterator(Object xpathCompiler, int pos)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;\n  }\n\n  /**\n   * return the expanded name table.\n   *\n   * NEEDSDOC @param dtm\n   *\n   * NEEDSDOC ($objectName$) @return\n   */\n  public ExpandedNameTable getExpandedNameTable(DTM dtm)\n  {\n    return m_expandedNameTable;", "functions": [{"function_name": "addDTM", "code": "  synchronized public void addDTM(DTM dtm, int id) {\taddDTM(dtm,id,0); }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addDTM", "code": "  synchronized public void addDTM(DTM dtm, int id, int offset)\n  {\n\t\tif(id>=IDENT_MAX_DTMS)\n\t\t{\n\t\t}\n\t\t\n\t\tint oldlen=m_dtms.length;\n\t\tif(oldlen<=id)\n\t\t{\n\t\t\tint newlen=Math.min((id+256),IDENT_MAX_DTMS);\n\n\t\t\tDTM new_m_dtms[] = new DTM[newlen];\n\t\t\tSystem.arraycopy(m_dtms,0,new_m_dtms,0,oldlen);\n\t\t\tm_dtms=new_m_dtms;\n\t\t\tint new_m_dtm_offsets[] = new int[newlen];\n\t\t\tSystem.arraycopy(m_dtm_offsets,0,new_m_dtm_offsets,0,oldlen);\n\t\t\tm_dtm_offsets=new_m_dtm_offsets;\n\t\t}\n\t\t\n    m_dtms[id] = dtm;\n\t\tm_dtm_offsets[id]=offset;\n    dtm.documentRegistration();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [16, 19], [16, 20], [18, 21], [18, 22], [14, 23], [23, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 16], [20, 16], [21, 18], [22, 18], [23, 14], [24, 23], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "getFirstFreeDTMID", "code": "  synchronized public int getFirstFreeDTMID()\n  {\n    int n = m_dtms.length;\n    for (int i = 1; i < n; i++)\n    {\n      if(null == m_dtms[i])\n      {\n        return i;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDTM", "code": "  synchronized public DTM getDTM(Source source, boolean unique,\n                                 DTMWSFilter whiteSpaceFilter,\n                                 boolean incremental, boolean doIndexing)\n  {\n\n    if(DEBUG && null != source)\n      System.out.println(\"Starting \"+\n                         (unique ? \"UNIQUE\" : \"shared\")+\n                         \" source: \"+source.getSystemId()\n                         );\n\n    XMLStringFactory xstringFactory = m_xsf;\n    int dtmPos = getFirstFreeDTMID();\n    int documentID = dtmPos << IDENT_DTM_NODE_BITS;\n\n    if ((null != source) && source instanceof DOMSource)\n    {\n      DOM2DTM dtm = new DOM2DTM(this, (DOMSource) source, documentID,\n                                whiteSpaceFilter, xstringFactory, doIndexing);\n\n      addDTM(dtm, dtmPos, 0);\n\n\n      return dtm;\n    }\n    else\n    {\n      boolean isSAXSource = (null != source)\n        ? (source instanceof SAXSource) : true;\n      boolean isStreamSource = (null != source)\n        ? (source instanceof StreamSource) : false;\n\n      if (isSAXSource || isStreamSource)\n      {\n        XMLReader reader;\n        InputSource xmlSource;\n\n        if (null == source)\n        {\n          xmlSource = null;\n          reader = null;\n        }\n        else\n        {\n          reader = getXMLReader(source);\n          xmlSource = SAXSource.sourceToInputSource(source);\n\n          String urlOfSource = xmlSource.getSystemId();\n\n          if (null != urlOfSource)\n          {\n            try\n            {\n              urlOfSource = SystemIDResolver.getAbsoluteURI(urlOfSource);\n            }\n            catch (Exception e)\n            {\n\n              System.err.println(\"Can not absolutize URL: \" + urlOfSource);\n            }\n\n            xmlSource.setSystemId(urlOfSource);\n          }\n        }\n\n        SAX2DTM dtm;\n        if(source==null && unique && !incremental && !doIndexing)\n        {\n          dtm = new SAX2RTFDTM(this, source, documentID, whiteSpaceFilter,\n                               xstringFactory, doIndexing);\n        }\n        /**************************************************************\n        else if(JKESS_XNI_EXPERIMENT && m_incremental)\n        {        \t\n          dtm = new XNI2DTM(this, source, documentID, whiteSpaceFilter,\n                            xstringFactory, doIndexing);\n        }\n        **************************************************************/\n        {\n          dtm = new SAX2DTM(this, source, documentID, whiteSpaceFilter,\n                            xstringFactory, doIndexing);\n        }\n\n        addDTM(dtm, dtmPos, 0);\n\n\n        boolean haveXercesParser =\n          (null != reader)\n          && (reader.getClass().getName().equals(\"org.apache.xerces.parsers.SAXParser\") );\n        \n        if (haveXercesParser)\n        \n        if (this.m_incremental && incremental /* || ((null == reader) && incremental) */)\n        {\n          IncrementalSAXSource coParser=null;\n\n          if (haveXercesParser)\n          {\n            try {\n              coParser=org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces.createIncrementalSAXSource();\n            }  catch( Exception ex ) {\n              ex.printStackTrace();\n              coParser=null;\n            }\n          }\n\n          if( coParser==null ) {\n            if (null == reader)\n              coParser = new IncrementalSAXSource_Filter();\n            else\n            {\n              IncrementalSAXSource_Filter filter=new IncrementalSAXSource_Filter();\n              filter.setXMLReader(reader);\n              coParser=filter;\n            }\n\n          }\n\n\t\t\t\n        /**************************************************************\n          if(JKESS_XNI_EXPERIMENT && m_incremental & \n          \tdtm instanceof XNI2DTM && \n          \tcoParser instanceof IncrementalSAXSource_Xerces)\n          {          \t\n       \t\torg.apache.xerces.xni.parser.XMLPullParserConfiguration xpc=\n       \t\t\t((IncrementalSAXSource_Xerces)coParser).getXNIParserConfiguration();\n       \t\tif(xpc!=null)\t\n          \t\t((XNI2DTM)dtm).setIncrementalXNISource(xpc);\n          \telse\n\t\t\t\tdtm.setIncrementalSAXSource(coParser);\n          } else\n          ***************************************************************/\n          \n          dtm.setIncrementalSAXSource(coParser);\n\n          if (null == xmlSource)\n          {\n\n            return dtm;\n          }\n\n          if(null == reader.getErrorHandler())\n            reader.setErrorHandler(dtm);\n          reader.setDTDHandler(dtm);\n\n          try\n          {\n\n            coParser.startParse(xmlSource);\n          }\n          catch (RuntimeException re)\n          {\n\n            dtm.clearCoRoutine();\n\n            throw re;\n          }\n          catch (Exception e)\n          {\n\n            dtm.clearCoRoutine();\n\n            throw new org.apache.xml.utils.WrappedRuntimeException(e);\n          }\n        }\n        else\n        {\n          if (null == reader)\n          {\n\n            return dtm;\n          }\n\n          reader.setContentHandler(dtm);\n          reader.setDTDHandler(dtm);\n          if(null == reader.getErrorHandler())\n            reader.setErrorHandler(dtm);\n\n          try\n          {\n            reader.setProperty();\n          }\n          catch (SAXNotRecognizedException e){}\n          catch (SAXNotSupportedException e){}\n\n          try\n          {\n            reader.parse(xmlSource);\n          }\n          catch (RuntimeException re)\n          {\n\n            dtm.clearCoRoutine();\n\n            throw re;\n          }\n          catch (Exception e)\n          {\n\n            dtm.clearCoRoutine();\n\n            throw new org.apache.xml.utils.WrappedRuntimeException(e);\n          }\n        }\n\n        if (DUMPTREE)\n        {\n          System.out.println(\"Dumping SAX2DOM\");\n          dtm.dumpDTM(System.err);\n        }\n\n        return dtm;\n      }\n      else\n      {", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "CALL", "TRY", "TRY", "IF", "IF", "TRY", "IF", "IF", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "CATCH", "CATCH", "CATCH", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CATCH", "CATCH", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CATCH", "ASSIGN", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [5, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [11, 18], [11, 19], [2, 20], [3, 21], [5, 22], [12, 23], [13, 24], [1, 25], [19, 26], [22, 27], [23, 28], [13, 29], [13, 30], [13, 31], [13, 32], [13, 33], [13, 34], [13, 35], [13, 36], [13, 37], [14, 38], [15, 39], [25, 40], [17, 41], [27, 42], [27, 43], [31, 44], [13, 45], [33, 46], [35, 47], [38, 48], [38, 49], [38, 50], [39, 51], [39, 52], [39, 53], [43, 54], [43, 55], [44, 56], [32, 57], [45, 58], [13, 59], [46, 60], [35, 61], [35, 62], [47, 63], [50, 64], [53, 65], [55, 66], [55, 67], [30, 68], [30, 69], [44, 70], [44, 71], [44, 72], [44, 73], [44, 74], [44, 75], [44, 76], [44, 77], [44, 78], [44, 79], [57, 80], [57, 81], [59, 82], [33, 83], [60, 84], [61, 85], [35, 86], [35, 87], [35, 88], [35, 89], [66, 90], [66, 91], [69, 92], [70, 93], [70, 94], [71, 95], [71, 96], [72, 97], [44, 98], [44, 99], [73, 100], [74, 101], [74, 102], [44, 103], [75, 104], [76, 105], [44, 106], [77, 107], [81, 108], [83, 109], [84, 110], [61, 111], [85, 112], [62, 113], [86, 114], [87, 115], [88, 116], [89, 117], [93, 118], [94, 119], [70, 120], [71, 121], [72, 122], [97, 123], [97, 124], [73, 125], [100, 126], [101, 127], [102, 128], [74, 129], [75, 130], [104, 131], [104, 132], [76, 133], [105, 134], [77, 135], [107, 136], [78, 137], [79, 138], [110, 139], [61, 140], [111, 141], [118, 142], [93, 143], [94, 144], [127, 145], [101, 146], [102, 147], [135, 148], [137, 149], [111, 150], [135, 151], [135, 152], [148, 153], [137, 154], [141, 155], [150, 156], [135, 157], [135, 158], [152, 159], [149, 160], [149, 161], [154, 162], [155, 163], [151, 164], [160, 165], [163, 166], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 5], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 11], [19, 11], [20, 2], [21, 3], [22, 5], [23, 12], [24, 13], [25, 1], [26, 19], [27, 22], [28, 23], [29, 13], [30, 13], [31, 13], [32, 13], [33, 13], [34, 13], [35, 13], [36, 13], [37, 13], [38, 14], [39, 15], [40, 25], [41, 17], [42, 27], [43, 27], [44, 31], [45, 13], [46, 33], [47, 35], [48, 38], [49, 38], [50, 38], [51, 39], [52, 39], [53, 39], [54, 43], [55, 43], [56, 44], [57, 32], [58, 45], [59, 13], [60, 46], [61, 35], [62, 35], [63, 47], [64, 50], [65, 53], [66, 55], [67, 55], [68, 30], [69, 30], [70, 44], [71, 44], [72, 44], [73, 44], [74, 44], [75, 44], [76, 44], [77, 44], [78, 44], [79, 44], [80, 57], [81, 57], [82, 59], [83, 33], [84, 60], [85, 61], [86, 35], [87, 35], [88, 35], [89, 35], [90, 66], [91, 66], [92, 69], [93, 70], [94, 70], [95, 71], [96, 71], [97, 72], [98, 44], [99, 44], [100, 73], [101, 74], [102, 74], [103, 44], [104, 75], [105, 76], [106, 44], [107, 77], [108, 81], [109, 83], [110, 84], [111, 61], [112, 85], [113, 62], [114, 86], [115, 87], [116, 88], [117, 89], [118, 93], [119, 94], [120, 70], [121, 71], [122, 72], [123, 97], [124, 97], [125, 73], [126, 100], [127, 101], [128, 102], [129, 74], [130, 75], [131, 104], [132, 104], [133, 76], [134, 105], [135, 77], [136, 107], [137, 78], [138, 79], [139, 110], [140, 61], [141, 111], [142, 118], [143, 93], [144, 94], [145, 127], [146, 101], [147, 102], [148, 135], [149, 137], [150, 111], [151, 135], [152, 135], [153, 148], [154, 137], [155, 141], [156, 150], [157, 135], [158, 135], [159, 152], [160, 149], [161, 149], [162, 154], [163, 155], [164, 151], [165, 160], [166, 163], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166]]}, {"function_name": "getDTMHandleFromNode", "code": "  synchronized public int getDTMHandleFromNode(org.w3c.dom.Node node)\n  {\n    if(null == node)\n\n    if (node instanceof org.apache.xml.dtm.ref.DTMNodeProxy)\n      return ((org.apache.xml.dtm.ref.DTMNodeProxy) node).getDTMNodeNumber();\n\t\t\n    else\n    {\n\t\t\tint max = m_dtms.length;\n      for(int i = 0; i < max; i++)\n        {\n          DTM thisDTM=m_dtms[i];\n          if((null != thisDTM) && thisDTM instanceof DOM2DTM)\n          {\n            int handle=((DOM2DTM)thisDTM).getHandleOfNode(node);\n            if(handle!=DTM.NULL) return handle;\n          }\n         }\n\n\n      Node root = node;\n      Node p = (root.getNodeType() == Node.ATTRIBUTE_NODE) ? ((org.w3c.dom.Attr)root).getOwnerElement() : root.getParentNode();\n      for (; p != null; p = p.getParentNode())\n      {\n        root = p;\n      }\n\n      DOM2DTM dtm = (DOM2DTM) getDTM(new javax.xml.transform.dom.DOMSource(root),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, null, true, true);\n\n      int handle;\n      \n      if(node instanceof org.apache.xml.dtm.ref.dom2dtm.DOM2DTMdefaultNamespaceDeclarationNode)\n      {\n\t\t\t\thandle=dtm.getHandleOfNode(((org.w3c.dom.Attr)node).getOwnerElement());\n\t\t\t\thandle=dtm.getAttributeNode(handle,node.getNamespaceURI(),node.getLocalName());\n      }\n      else\n\t\t\t\thandle = ((DOM2DTM)dtm).getHandleOfNode(node);\n\n      if(DTM.NULL == handle)\n\n      return handle;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "IF", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [3, 8], [3, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [8, 17], [8, 18], [9, 19], [12, 20], [12, 21], [15, 22], [9, 23], [20, 24], [21, 25], [13, 26], [15, 27], [15, 28], [9, 29], [9, 30], [11, 31], [12, 32], [26, 33], [26, 34], [27, 35], [15, 36], [29, 37], [30, 38], [31, 39], [31, 40], [31, 41], [31, 42], [31, 43], [34, 44], [27, 45], [27, 46], [35, 47], [35, 48], [37, 49], [37, 50], [45, 51], [45, 52], [48, 53], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 3], [9, 3], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 8], [18, 8], [19, 9], [20, 12], [21, 12], [22, 15], [23, 9], [24, 20], [25, 21], [26, 13], [27, 15], [28, 15], [29, 9], [30, 9], [31, 11], [32, 12], [33, 26], [34, 26], [35, 27], [36, 15], [37, 29], [38, 30], [39, 31], [40, 31], [41, 31], [42, 31], [43, 31], [44, 34], [45, 27], [46, 27], [47, 35], [48, 35], [49, 37], [50, 37], [51, 45], [52, 45], [53, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "getXMLReader", "code": "  synchronized public XMLReader getXMLReader(Source inputSource)\n  {\n\n    try\n    {\n      XMLReader reader = (inputSource instanceof SAXSource)\n                         ? ((SAXSource) inputSource).getXMLReader() : null;\n\n      boolean isUserReader = (reader != null);\n\n      if (null == reader)\n      {\n        try\n        {\n          javax.xml.parsers.SAXParserFactory factory =\n            javax.xml.parsers.SAXParserFactory.newInstance();\n\n          factory.setNamespaceAware(true);\n\n          javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser();\n\n          reader = jaxpParser.getXMLReader();\n        }\n        catch (javax.xml.parsers.ParserConfigurationException ex)\n        {\n          throw new org.xml.sax.SAXException(ex);\n        }\n        catch (javax.xml.parsers.FactoryConfigurationError ex1)\n        {\n          throw new org.xml.sax.SAXException(ex1.toString());\n        }\n        catch (NoSuchMethodError ex2){}\n        catch (AbstractMethodError ame){}\n\n        if (null == reader)\n          reader = XMLReaderFactory.createXMLReader();\n      }\n\n      try\n      {\n               \n      }\n      catch (org.xml.sax.SAXException se)\n      {\n\n      }\n\n\n      return reader;\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new DTMException(se.getMessage(), se);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "TRY", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CATCH", "BINARY_OP", "CALL", "IF", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "CALL", "BINARY_OP", "CATCH", "CATCH", "CATCH", "CATCH", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [5, 10], [6, 11], [9, 12], [6, 13], [6, 14], [11, 15], [7, 16], [8, 17], [12, 18], [13, 19], [14, 20], [14, 21], [14, 22], [14, 23], [14, 24], [14, 25], [16, 26], [17, 27], [17, 28], [13, 29], [19, 30], [22, 31], [23, 32], [14, 33], [14, 34], [29, 35], [31, 36], [32, 37], [33, 38], [24, 39], [34, 40], [25, 41], [36, 42], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 5], [11, 6], [12, 9], [13, 6], [14, 6], [15, 11], [16, 7], [17, 8], [18, 12], [19, 13], [20, 14], [21, 14], [22, 14], [23, 14], [24, 14], [25, 14], [26, 16], [27, 17], [28, 17], [29, 13], [30, 19], [31, 22], [32, 23], [33, 14], [34, 14], [35, 29], [36, 31], [37, 32], [38, 33], [39, 24], [40, 34], [41, 25], [42, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getDTM", "code": "  synchronized public DTM getDTM(int nodeHandle)\n  {\n    try\n    {\n      return m_dtms[nodeHandle >>> IDENT_DTM_NODE_BITS];\n    }\n    catch(java.lang.ArrayIndexOutOfBoundsException e)\n    {\n      if(nodeHandle==DTM.NULL){}\n      else{}", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "IF", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [5, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 5], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDTMIdentity", "code": "  synchronized public int getDTMIdentity(DTM dtm)\n  {\n\tif(dtm instanceof DTMDefaultBase)\n\t{\n\t\tDTMDefaultBase dtmdb=(DTMDefaultBase)dtm;\n\t\tif(dtmdb.getManager()==this)\n\t\t\treturn dtmdb.getDTMIDs().elementAt(0);\n\t\telse\n\t\t\treturn -1;\n\t}\n\t\t\t\t\n    int n = m_dtms.length;\n\n    for (int i = 0; i < n; i++)\n    {\n      DTM tdtm = m_dtms[i];\n\n      if (tdtm == dtm && m_dtm_offsets[i]==0)\n        return i << IDENT_DTM_NODE_BITS;\n    }\n\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [2, 9], [2, 10], [4, 11], [4, 12], [9, 13], [9, 14], [2, 15], [11, 16], [11, 17], [11, 18], [13, 19], [14, 20], [14, 21], [16, 22], [17, 23], [18, 24], [20, 25], [23, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 2], [10, 2], [11, 4], [12, 4], [13, 9], [14, 9], [15, 2], [16, 11], [17, 11], [18, 11], [19, 13], [20, 14], [21, 14], [22, 16], [23, 17], [24, 18], [25, 20], [26, 23], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "release", "code": "  synchronized public boolean release(DTM dtm, boolean shouldHardDelete)\n  {\n    if(DEBUG)\n    {\n      System.out.println(\"Releasing \"+\n\t\t\t (shouldHardDelete ? \"HARD\" : \"soft\")+\n\t\t\t \" dtm=\"+\n\t\t\t dtm.getDocumentBaseURI()\n\t\t\t );\n    }\n\n    if (dtm instanceof SAX2DTM)\n    {\n      ((SAX2DTM) dtm).clearCoRoutine();\n    }\n\n\t\tif(dtm instanceof DTMDefaultBase)\n\t\t{\n\t\t\torg.apache.xml.utils.SuballocatedIntVector ids=((DTMDefaultBase)dtm).getDTMIDs();\n\t\t\tfor(int i=ids.size()-1;i>=0;--i)\n\t\t\t\tm_dtms[ids.elementAt(i)>>>DTMManager.IDENT_DTM_NODE_BITS]=null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint i = getDTMIdentity(dtm);\n\t\t    if (i >= 0)\n\t\t\t{\n\t\t\t\tm_dtms[i >>> DTMManager.IDENT_DTM_NODE_BITS] = null;\n\t\t\t}\n\t\t}\n\n    dtm.documentRelease();\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [3, 10], [2, 11], [2, 12], [2, 13], [2, 14], [11, 15], [13, 16], [4, 17], [15, 18], [12, 19], [13, 20], [16, 21], [17, 22], [11, 23], [20, 24], [13, 25], [22, 26], [22, 27], [23, 28], [25, 29], [25, 30], [27, 31], [27, 32], [20, 33], [32, 34], [32, 35], [23, 36], [33, 37], [34, 38], [34, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 3], [11, 2], [12, 2], [13, 2], [14, 2], [15, 11], [16, 13], [17, 4], [18, 15], [19, 12], [20, 13], [21, 16], [22, 17], [23, 11], [24, 20], [25, 13], [26, 22], [27, 22], [28, 23], [29, 25], [30, 25], [31, 27], [32, 27], [33, 20], [34, 32], [35, 32], [36, 23], [37, 33], [38, 34], [39, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "createDocumentFragment", "code": "  synchronized public DTM createDocumentFragment()\n  {\n\n    try\n    {\n      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n      dbf.setNamespaceAware(true);\n\n      DocumentBuilder db = dbf.newDocumentBuilder();\n      Document doc = db.newDocument();\n      Node df = doc.createDocumentFragment();\n\n      return getDTM(new DOMSource(df), true, null, false, false);\n    }\n    catch (Exception e)\n    {\n      throw new DTMException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [1, 10], [8, 11], [9, 12], [9, 13], [9, 14], [9, 15], [9, 16], [4, 17], [5, 18], [6, 19], [10, 20], [7, 21], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 1], [11, 8], [12, 9], [13, 9], [14, 9], [15, 9], [16, 9], [17, 4], [18, 5], [19, 6], [20, 10], [21, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createDTMIterator", "code": "  synchronized public DTMIterator createDTMIterator(int whatToShow, DTMFilter filter,\n                                       boolean entityReferenceExpansion)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createDTMIterator", "code": "  synchronized public DTMIterator createDTMIterator(String xpathString,\n                                       PrefixResolver presolver)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createDTMIterator", "code": "  synchronized public DTMIterator createDTMIterator(int node)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createDTMIterator", "code": "  synchronized public DTMIterator createDTMIterator(Object xpathCompiler, int pos)\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMManager abstract method */\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getExpandedNameTable", "code": "  public ExpandedNameTable getExpandedNameTable(DTM dtm)\n  {\n    return m_expandedNameTable;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DTMManagerDefault", "code": "  public DTMManagerDefault(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.5-7290", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/templates/AVTPart.java", "language": "java", "name": "org.apache.xalan.templates.AVTPart", "code": "public abstract class AVTPart implements java.io.Serializable, XSLTVisitable\n{\n\n  /**\n   * Construct a part.\n   */\n  public AVTPart(){}\n\n  /**\n   * Get the AVT part as the original string.\n   *\n   * @return the AVT part as the original string.\n   */\n  public abstract String getSimpleString();\n\n  /**\n   * Write the evaluated value into the given\n   * string buffer.\n   *\n   * @param xctxt The XPath context to use to evaluate this AVT.\n   * @param buf Buffer to write into.\n   * @param context The current source tree context.\n   * @param nsNode The current namespace context (stylesheet tree context).\n   * @param NodeList The current Context Node List.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public abstract void evaluate(\n    XPathContext xctxt, FastStringBuffer buf, int context,\n      org.apache.xml.utils.PrefixResolver nsNode)\n        throws javax.xml.transform.TransformerException;\n\n  /**\n   * Set the XPath support.\n   *\n   * @param support XPathContext to set. \n   */\n  public void setXPathSupport(XPathContext support){}\n  \n  /**\n   * Tell if this expression or it's subexpressions can traverse outside \n   * the current subtree.\n   * \n   * @return true if traversal outside the context node's subtree can occur.\n   */\n   public boolean canTraverseOutsideSubtree()\n   {\n    return false;\n   }\n   \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public abstract void fixupVariables(java.util.Vector vars, int globalsSize);", "functions": [{"function_name": "getSimpleString", "code": "  public abstract String getSimpleString();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "evaluate", "code": "  public abstract void evaluate(\n    XPathContext xctxt, FastStringBuffer buf, int context,\n      org.apache.xml.utils.PrefixResolver nsNode)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setXPathSupport", "code": "  public void setXPathSupport(XPathContext support){}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "canTraverseOutsideSubtree", "code": "   public boolean canTraverseOutsideSubtree()\n   {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "fixupVariables", "code": "  public abstract void fixupVariables(java.util.Vector vars, int globalsSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AVTPart", "code": "  public AVTPart(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.4-229", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/Javac.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Javac", "code": "public class Javac extends MatchingTask {\n\n    private static final String FAIL_MSG\n        = \"Compile failed, messages should have been provided.\";\n\n    private Path src;\n    private File destDir;\n    private Path compileClasspath;\n    private String encoding;\n    private boolean debug = false;\n    private boolean optimize = false;\n    private boolean deprecation = false;\n    private boolean depend = false;\n    private boolean verbose = false;\n    private String target;\n    private Path bootclasspath;\n    private Path extdirs;\n    private boolean includeAntRuntime = true;\n    private boolean includeJavaRuntime = false;\n    private boolean fork = false;\n    private boolean nowarn = false;\n    private String memoryInitialSize;\n    private String memoryMaximumSize;\n\n    protected boolean failOnError = true;\n    protected File[] compileList = new File[0];\n\n    private String source;\n    \n    /**\n     * Get the value of source.\n     * @return value of source.\n     */\n    public String getSource() {\n        return source;\n    }\n    \n    /**\n     * Set the value of source.\n     * @param v  Value to assign to source.\n     */\n    public void setSource(String  v) {\n        this.source = v;\n    }\n\n    /**\n     * Create a nested <src ...> element for multiple source path\n     * support.\n     *\n     * @return a nexted src element.\n     */\n    public Path createSrc() {\n        if (src == null) {\n            src = new Path(project);\n        }\n        return src.createPath();\n    }\n\n    /**\n     * Set the source dirs to find the source Java files.\n     */\n    public void setSrcdir(Path srcDir) {\n        if (src == null) {\n            src = srcDir;\n        } else {\n            src.append(srcDir);\n        }\n    }\n\n    /** Gets the source dirs to find the source java files. */\n    public Path getSrcdir() {\n        return src;\n    }\n\n    /**\n     * Set the destination directory into which the Java source\n     * files should be compiled.\n     */\n    public void setDestdir(File destDir) {\n        this.destDir = destDir;\n    }\n\n    /**\n     * Gets the destination directory into which the java source files\n     * should be compiled.\n     */\n    public File getDestdir() {\n        return destDir;\n    }\n\n    /**\n     * Set the classpath to be used for this compilation.\n     */\n    public void setClasspath(Path classpath) {\n        if (compileClasspath == null) {\n            compileClasspath = classpath;\n        } else {\n            compileClasspath.append(classpath);\n        }\n    }\n\n    /** Gets the classpath to be used for this compilation. */\n    public Path getClasspath() {\n        return compileClasspath;\n    }\n\n    /**\n     * Maybe creates a nested classpath element.\n     */\n    public Path createClasspath() {\n        if (compileClasspath == null) {\n            compileClasspath = new Path(project);\n        }\n        return compileClasspath.createPath();\n    }\n\n    /**\n     * Adds a reference to a CLASSPATH defined elsewhere.\n     */\n    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);\n    }\n\n    /**\n     * Sets the bootclasspath that will be used to compile the classes\n     * against.\n     */\n    public void setBootclasspath(Path bootclasspath) {\n        if (this.bootclasspath == null) {\n            this.bootclasspath = bootclasspath;\n        } else {\n            this.bootclasspath.append(bootclasspath);\n        }\n    }\n\n    /**\n     * Gets the bootclasspath that will be used to compile the classes\n     * against.\n     */\n    public Path getBootclasspath() {\n        return bootclasspath;\n    }\n\n    /**\n     * Maybe creates a nested classpath element.\n     */\n    public Path createBootclasspath() {\n        if (bootclasspath == null) {\n            bootclasspath = new Path(project);\n        }\n        return bootclasspath.createPath();\n    }\n\n    /**\n     * Adds a reference to a CLASSPATH defined elsewhere.\n     */\n    public void setBootClasspathRef(Reference r) {\n        createBootclasspath().setRefid(r);\n    }\n\n    /**\n     * Sets the extension directories that will be used during the\n     * compilation.\n     */\n    public void setExtdirs(Path extdirs) {\n        if (this.extdirs == null) {\n            this.extdirs = extdirs;\n        } else {\n            this.extdirs.append(extdirs);\n        }\n    }\n\n    /**\n     * Gets the extension directories that will be used during the\n     * compilation.\n     */\n    public Path getExtdirs() {\n        return extdirs;\n    }\n\n    /**\n     * Maybe creates a nested classpath element.\n     */\n    public Path createExtdirs() {\n        if (extdirs == null) {\n            extdirs = new Path(project);\n        }\n        return extdirs.createPath();\n    }\n\n    /**\n     * Throw a BuildException if compilation fails\n     */\n    public void setFailonerror(boolean fail) {\n        failOnError = fail;\n    }\n\n    /**\n     * Proceed if compilation fails\n     */\n    public void setProceed(boolean proceed) {\n        failOnError = !proceed;\n    }\n\n    /**\n     * Gets the failonerror flag.\n     */\n    public boolean getFailonerror() {\n        return failOnError;\n    }\n\n    /**\n     * Set the deprecation flag.\n     */\n    public void setDeprecation(boolean deprecation) {\n        this.deprecation = deprecation;\n    }\n\n    /** Gets the deprecation flag. */\n    public boolean getDeprecation() {\n        return deprecation;\n    }\n\n    /**\n     * Set the memoryInitialSize flag.\n     */\n    public void setMemoryInitialSize(String memoryInitialSize) {\n        this.memoryInitialSize = memoryInitialSize;\n    }\n\n    /** Gets the memoryInitialSize flag. */\n    public String getMemoryInitialSize() {\n        return memoryInitialSize;\n    }\n\n    /**\n     * Set the memoryMaximumSize flag.\n     */\n    public void setMemoryMaximumSize(String memoryMaximumSize) {\n        this.memoryMaximumSize = memoryMaximumSize;\n    }\n\n    /** Gets the memoryMaximumSize flag. */\n    public String getMemoryMaximumSize() {\n        return memoryMaximumSize;\n    }\n\n    /**\n     * Set the Java source file encoding name.\n     */\n    public void setEncoding(String encoding) {\n        this.encoding = encoding;\n    }\n\n    /** Gets the java source file encoding name. */\n    public String getEncoding() {\n        return encoding;\n    }\n\n    /**\n     * Set the debug flag.\n     */\n    public void setDebug(boolean debug) {\n        this.debug = debug;\n    }\n\n    /** Gets the debug flag. */\n    public boolean getDebug() {\n        return debug;\n    }\n\n    /**\n     * Set the optimize flag.\n     */\n    public void setOptimize(boolean optimize) {\n        this.optimize = optimize;\n    }\n\n    /** Gets the optimize flag. */\n    public boolean getOptimize() {\n        return optimize;\n    }\n\n    /**\n     * Set the depend flag.\n     */\n    public void setDepend(boolean depend) {\n        this.depend = depend;\n    }\n\n    /** Gets the depend flag. */\n    public boolean getDepend() {\n        return depend;\n    }\n\n    /**\n     * Set the verbose flag.\n     */\n    public void setVerbose(boolean verbose) {\n        this.verbose = verbose;\n    }\n\n    /** Gets the verbose flag. */\n    public boolean getVerbose() {\n        return verbose;\n    }\n\n    /**\n     * Sets the target VM that the classes will be compiled for. Valid\n     * strings are \"1.1\", \"1.2\", and \"1.3\".\n     */\n    public void setTarget(String target) {\n        this.target = target;\n    }\n\n    /** Gets the target VM that the classes will be compiled for. */\n    public String getTarget() {\n        return target;\n    }\n\n    /**\n     * Include ant's own classpath in this task's classpath?\n     */\n    public void setIncludeantruntime( boolean include ) {\n        includeAntRuntime = include;\n    }\n\n    /**\n     * Gets whether or not the ant classpath is to be included in the\n     * task's classpath.\n     */\n    public boolean getIncludeantruntime() {\n        return includeAntRuntime;\n    }\n\n    /**\n     * Sets whether or not to include the java runtime libraries to this\n     * task's classpath.\n     */\n    public void setIncludejavaruntime( boolean include ) {\n        includeJavaRuntime = include;\n    }\n\n    /**\n     * Gets whether or not the java runtime should be included in this\n     * task's classpath.\n     */\n    public boolean getIncludejavaruntime() {\n        return includeJavaRuntime;\n    }\n\n    /**\n     * Sets whether to fork the javac compiler.\n     */\n    public void setFork(boolean fork)\n    {\n        this.fork = fork;\n    }\n\n    /**\n     * Is this a forked invocation of JDK's javac?\n     */\n    public boolean isForkedJavac() {\n        return fork || \n            \"extJavac\".equals(project.getProperty(\"build.compiler\"));\n    }\n\n\n    /**\n     * Sets whether the -nowarn option should be used.\n     */\n    public void setNowarn(boolean flag) {\n        this.nowarn = flag;\n    }\n\n    /**\n     * Should the -nowarn option be used.\n     */\n    public boolean getNowarn() {\n        return nowarn;\n    }\n\n    /**\n     * Executes the task.\n     */\n    public void execute() throws BuildException {\n\n        if (src == null) {\n            throw new BuildException(\"srcdir attribute must be set!\", location);\n        }\n        String [] list = src.list();\n        if (list.length == 0) {\n            throw new BuildException(\"srcdir attribute must be set!\", location);\n        }\n\n        if (destDir != null && !destDir.isDirectory()) {\n            throw new BuildException(\"destination directory \\\"\" + destDir + \"\\\" does not exist or is not a directory\", location);\n        }\n\n        resetFileLists();\n        for (int i=0; i<list.length; i++) {\n            File srcDir = (File)project.resolveFile(list[i]);\n            if (!srcDir.exists()) {\n                throw new BuildException(\"srcdir \\\"\" + srcDir.getPath() + \"\\\" does not exist!\", location);\n            }\n\n            DirectoryScanner ds = this.getDirectoryScanner(srcDir);\n\n            String[] files = ds.getIncludedFiles();\n\n            scanDir(srcDir, destDir != null ? destDir : srcDir, files);\n        }\n\n\n        String compiler = project.getProperty(\"build.compiler\");\n\n        if (fork) {\n            if (compiler != null) {\n                if (isJdkCompiler(compiler)) {\n                    log(\"Since fork is true, ignoring build.compiler setting.\",\n                        Project.MSG_WARN);\n                    compiler = \"extJavac\";\n                }\n                else {\n                    log(\"Since build.compiler setting isn't classic or modern, ignoring fork setting.\", Project.MSG_WARN);\n                }\n            }\n            else {\n                compiler = \"extJavac\";\n            }\n        }\n\n        if (compiler == null) {\n            if (Project.getJavaVersion() != Project.JAVA_1_1 &&\n                Project.getJavaVersion() != Project.JAVA_1_2) {\n                compiler = \"modern\";\n            } else {\n                compiler = \"classic\";\n            }\n        }\n\n        if (compileList.length > 0) {\n\n            CompilerAdapter adapter = CompilerAdapterFactory.getCompiler(\n              compiler, this );\n            log(\"Compiling \" + compileList.length +\n                \" source file\"\n                + (compileList.length == 1 ? \"\" : \"s\")\n                + (destDir != null ? \" to \" + destDir : \"\"));\n\n            adapter.setJavac( this );\n\n            if (!adapter.execute()) {\n                if (failOnError) {\n                    throw new BuildException(FAIL_MSG, location);\n                }\n                else {\n                    log(FAIL_MSG, Project.MSG_ERR);\n                }\n            }\n        }\n    }\n\n    /**\n     * Clear the list of files to be compiled and copied..\n     */\n    protected void resetFileLists() {\n        compileList = new File[0];\n    }\n\n    /**\n     * Scans the directory looking for source files to be compiled.\n     * The results are returned in the class variable compileList\n     */\n    protected void scanDir(File srcDir, File destDir, String files[]) {\n        GlobPatternMapper m = new GlobPatternMapper();\n        m.setFrom(\"*.java\");\n        m.setTo(\"*.class\");\n        SourceFileScanner sfs = new SourceFileScanner(this);\n        File[] newFiles = sfs.restrictAsFiles(files, srcDir, destDir, m);\n\n        if (newFiles.length > 0) {\n            File[] newCompileList = new File[compileList.length +\n                newFiles.length];\n            System.arraycopy(compileList, 0, newCompileList, 0,\n                    compileList.length);\n            System.arraycopy(newFiles, 0, newCompileList,\n                    compileList.length, newFiles.length);\n            compileList = newCompileList;\n        }\n    }\n\n    /** Gets the list of files to be compiled. */\n    public File[] getFileList() {\n        return compileList;\n    }\n\n    protected boolean isJdkCompiler(String compiler) {\n        return \"modern\".equals(compiler) ||\n            \"classic\".equals(compiler) ||\n            \"javac1.1\".equals(compiler) ||\n            \"javac1.2\".equals(compiler) ||\n            \"javac1.3\".equals(compiler) ||\n            \"javac1.4\".equals(compiler);", "functions": [{"function_name": "getSource", "code": "    public String getSource() {\n        return source;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSource", "code": "    public void setSource(String  v) {\n        this.source = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createSrc", "code": "    public Path createSrc() {\n        if (src == null) {\n            src = new Path(project);\n        }\n        return src.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setSrcdir", "code": "    public void setSrcdir(Path srcDir) {\n        if (src == null) {\n            src = srcDir;\n        } else {\n            src.append(srcDir);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSrcdir", "code": "    public Path getSrcdir() {\n        return src;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDestdir", "code": "    public void setDestdir(File destDir) {\n        this.destDir = destDir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDestdir", "code": "    public File getDestdir() {\n        return destDir;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        if (compileClasspath == null) {\n            compileClasspath = classpath;\n        } else {\n            compileClasspath.append(classpath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getClasspath", "code": "    public Path getClasspath() {\n        return compileClasspath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (compileClasspath == null) {\n            compileClasspath = new Path(project);\n        }\n        return compileClasspath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBootclasspath", "code": "    public void setBootclasspath(Path bootclasspath) {\n        if (this.bootclasspath == null) {\n            this.bootclasspath = bootclasspath;\n        } else {\n            this.bootclasspath.append(bootclasspath);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getBootclasspath", "code": "    public Path getBootclasspath() {\n        return bootclasspath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createBootclasspath", "code": "    public Path createBootclasspath() {\n        if (bootclasspath == null) {\n            bootclasspath = new Path(project);\n        }\n        return bootclasspath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setBootClasspathRef", "code": "    public void setBootClasspathRef(Reference r) {\n        createBootclasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setExtdirs", "code": "    public void setExtdirs(Path extdirs) {\n        if (this.extdirs == null) {\n            this.extdirs = extdirs;\n        } else {\n            this.extdirs.append(extdirs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getExtdirs", "code": "    public Path getExtdirs() {\n        return extdirs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createExtdirs", "code": "    public Path createExtdirs() {\n        if (extdirs == null) {\n            extdirs = new Path(project);\n        }\n        return extdirs.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setFailonerror", "code": "    public void setFailonerror(boolean fail) {\n        failOnError = fail;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProceed", "code": "    public void setProceed(boolean proceed) {\n        failOnError = !proceed;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFailonerror", "code": "    public boolean getFailonerror() {\n        return failOnError;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDeprecation", "code": "    public void setDeprecation(boolean deprecation) {\n        this.deprecation = deprecation;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDeprecation", "code": "    public boolean getDeprecation() {\n        return deprecation;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMemoryInitialSize", "code": "    public void setMemoryInitialSize(String memoryInitialSize) {\n        this.memoryInitialSize = memoryInitialSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMemoryInitialSize", "code": "    public String getMemoryInitialSize() {\n        return memoryInitialSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMemoryMaximumSize", "code": "    public void setMemoryMaximumSize(String memoryMaximumSize) {\n        this.memoryMaximumSize = memoryMaximumSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMemoryMaximumSize", "code": "    public String getMemoryMaximumSize() {\n        return memoryMaximumSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEncoding", "code": "    public void setEncoding(String encoding) {\n        this.encoding = encoding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEncoding", "code": "    public String getEncoding() {\n        return encoding;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDebug", "code": "    public void setDebug(boolean debug) {\n        this.debug = debug;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDebug", "code": "    public boolean getDebug() {\n        return debug;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOptimize", "code": "    public void setOptimize(boolean optimize) {\n        this.optimize = optimize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOptimize", "code": "    public boolean getOptimize() {\n        return optimize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDepend", "code": "    public void setDepend(boolean depend) {\n        this.depend = depend;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDepend", "code": "    public boolean getDepend() {\n        return depend;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVerbose", "code": "    public void setVerbose(boolean verbose) {\n        this.verbose = verbose;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVerbose", "code": "    public boolean getVerbose() {\n        return verbose;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTarget", "code": "    public void setTarget(String target) {\n        this.target = target;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTarget", "code": "    public String getTarget() {\n        return target;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIncludeantruntime", "code": "    public void setIncludeantruntime( boolean include ) {\n        includeAntRuntime = include;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIncludeantruntime", "code": "    public boolean getIncludeantruntime() {\n        return includeAntRuntime;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIncludejavaruntime", "code": "    public void setIncludejavaruntime( boolean include ) {\n        includeJavaRuntime = include;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIncludejavaruntime", "code": "    public boolean getIncludejavaruntime() {\n        return includeJavaRuntime;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFork", "code": "    public void setFork(boolean fork)\n    {\n        this.fork = fork;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isForkedJavac", "code": "    public boolean isForkedJavac() {\n        return fork || \n            \"extJavac\".equals(project.getProperty(\"build.compiler\"));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setNowarn", "code": "    public void setNowarn(boolean flag) {\n        this.nowarn = flag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNowarn", "code": "    public boolean getNowarn() {\n        return nowarn;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n\n        if (src == null) {\n            throw new BuildException(\"srcdir attribute must be set!\", location);\n        }\n        String [] list = src.list();\n        if (list.length == 0) {\n            throw new BuildException(\"srcdir attribute must be set!\", location);\n        }\n\n        if (destDir != null && !destDir.isDirectory()) {\n            throw new BuildException(\"destination directory \\\"\" + destDir + \"\\\" does not exist or is not a directory\", location);\n        }\n\n        resetFileLists();\n        for (int i=0; i<list.length; i++) {\n            File srcDir = (File)project.resolveFile(list[i]);\n            if (!srcDir.exists()) {\n                throw new BuildException(\"srcdir \\\"\" + srcDir.getPath() + \"\\\" does not exist!\", location);\n            }\n\n            DirectoryScanner ds = this.getDirectoryScanner(srcDir);\n\n            String[] files = ds.getIncludedFiles();\n\n            scanDir(srcDir, destDir != null ? destDir : srcDir, files);\n        }\n\n\n        String compiler = project.getProperty(\"build.compiler\");\n\n        if (fork) {\n            if (compiler != null) {\n                if (isJdkCompiler(compiler)) {\n                    log(\"Since fork is true, ignoring build.compiler setting.\",\n                        Project.MSG_WARN);\n                    compiler = \"extJavac\";\n                }\n                else {\n                    log(\"Since build.compiler setting isn't classic or modern, ignoring fork setting.\", Project.MSG_WARN);\n                }\n            }\n            else {\n                compiler = \"extJavac\";\n            }\n        }\n\n        if (compiler == null) {\n            if (Project.getJavaVersion() != Project.JAVA_1_1 &&\n                Project.getJavaVersion() != Project.JAVA_1_2) {\n                compiler = \"modern\";\n            } else {\n                compiler = \"classic\";\n            }\n        }\n\n        if (compileList.length > 0) {\n\n            CompilerAdapter adapter = CompilerAdapterFactory.getCompiler(\n              compiler, this );\n            log(\"Compiling \" + compileList.length +\n                \" source file\"\n                + (compileList.length == 1 ? \"\" : \"s\")\n                + (destDir != null ? \" to \" + destDir : \"\"));\n\n            adapter.setJavac( this );\n\n            if (!adapter.execute()) {\n                if (failOnError) {\n                    throw new BuildException(FAIL_MSG, location);\n                }\n                else {\n                    log(FAIL_MSG, Project.MSG_ERR);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "LOOP", "IF", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "CALL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [5, 12], [0, 13], [6, 14], [7, 15], [9, 16], [1, 17], [1, 18], [10, 19], [2, 20], [11, 21], [3, 22], [4, 23], [5, 24], [5, 25], [5, 26], [5, 27], [6, 28], [14, 29], [14, 30], [7, 31], [15, 32], [8, 33], [9, 34], [16, 35], [17, 36], [1, 37], [1, 38], [20, 39], [22, 40], [23, 41], [5, 42], [26, 43], [5, 44], [28, 45], [30, 46], [31, 47], [34, 48], [17, 49], [38, 50], [18, 51], [39, 52], [39, 53], [22, 54], [40, 55], [42, 56], [24, 57], [26, 58], [45, 59], [47, 60], [48, 61], [50, 62], [50, 63], [20, 64], [20, 65], [52, 66], [53, 67], [22, 68], [54, 69], [56, 70], [25, 71], [58, 72], [27, 73], [59, 74], [59, 75], [49, 76], [62, 77], [62, 78], [62, 79], [63, 80], [63, 81], [64, 82], [65, 83], [68, 84], [70, 85], [72, 86], [75, 87], [49, 88], [76, 89], [78, 90], [79, 91], [80, 92], [80, 93], [80, 94], [81, 95], [81, 96], [54, 97], [54, 98], [54, 99], [86, 100], [86, 101], [94, 102], [96, 103], [97, 104], [98, 105], [99, 106], [101, 107], [101, 108], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 5], [13, 0], [14, 6], [15, 7], [16, 9], [17, 1], [18, 1], [19, 10], [20, 2], [21, 11], [22, 3], [23, 4], [24, 5], [25, 5], [26, 5], [27, 5], [28, 6], [29, 14], [30, 14], [31, 7], [32, 15], [33, 8], [34, 9], [35, 16], [36, 17], [37, 1], [38, 1], [39, 20], [40, 22], [41, 23], [42, 5], [43, 26], [44, 5], [45, 28], [46, 30], [47, 31], [48, 34], [49, 17], [50, 38], [51, 18], [52, 39], [53, 39], [54, 22], [55, 40], [56, 42], [57, 24], [58, 26], [59, 45], [60, 47], [61, 48], [62, 50], [63, 50], [64, 20], [65, 20], [66, 52], [67, 53], [68, 22], [69, 54], [70, 56], [71, 25], [72, 58], [73, 27], [74, 59], [75, 59], [76, 49], [77, 62], [78, 62], [79, 62], [80, 63], [81, 63], [82, 64], [83, 65], [84, 68], [85, 70], [86, 72], [87, 75], [88, 49], [89, 76], [90, 78], [91, 79], [92, 80], [93, 80], [94, 80], [95, 81], [96, 81], [97, 54], [98, 54], [99, 54], [100, 86], [101, 86], [102, 94], [103, 96], [104, 97], [105, 98], [106, 99], [107, 101], [108, 101], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108]]}, {"function_name": "resetFileLists", "code": "    protected void resetFileLists() {\n        compileList = new File[0];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "scanDir", "code": "    protected void scanDir(File srcDir, File destDir, String files[]) {\n        GlobPatternMapper m = new GlobPatternMapper();\n        m.setFrom(\"*.java\");\n        m.setTo(\"*.class\");\n        SourceFileScanner sfs = new SourceFileScanner(this);\n        File[] newFiles = sfs.restrictAsFiles(files, srcDir, destDir, m);\n\n        if (newFiles.length > 0) {\n            File[] newCompileList = new File[compileList.length +\n                newFiles.length];\n            System.arraycopy(compileList, 0, newCompileList, 0,\n                    compileList.length);\n            System.arraycopy(newFiles, 0, newCompileList,\n                    compileList.length, newFiles.length);\n            compileList = newCompileList;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [1, 11], [8, 12], [2, 13], [3, 14], [9, 15], [10, 16], [4, 17], [1, 18], [1, 19], [1, 20], [19, 21], [20, 22], [20, 23], [11, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 1], [12, 8], [13, 2], [14, 3], [15, 9], [16, 10], [17, 4], [18, 1], [19, 1], [20, 1], [21, 19], [22, 20], [23, 20], [24, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getFileList", "code": "    public File[] getFileList() {\n        return compileList;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isJdkCompiler", "code": "    protected boolean isJdkCompiler(String compiler) {\n        return \"modern\".equals(compiler) ||\n            \"classic\".equals(compiler) ||\n            \"javac1.1\".equals(compiler) ||\n            \"javac1.2\".equals(compiler) ||\n            \"javac1.3\".equals(compiler) ||\n            \"javac1.4\".equals(compiler);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [7, 9], [8, 10], [8, 11], [10, 12], [11, 13], [11, 14], [13, 15], [14, 16], [14, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 7], [10, 8], [11, 8], [12, 10], [13, 11], [14, 11], [15, 13], [16, 14], [17, 14], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 1}
{"sample_id": "ant-1.5-327", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/rmic/WLRmic.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.rmic.WLRmic", "code": "public class WLRmic extends DefaultRmicAdapter {\n\n    public boolean execute() throws BuildException {\n        getRmic().log(\"Using WebLogic rmic\", Project.MSG_VERBOSE);\n        Commandline cmd = setupRmicCommand(new String[] {\"-noexit\"});\n\n        AntClassLoader loader = null;\n        try {\n            Class c = null;\n            if (getRmic().getClasspath() == null) {\n                c = Class.forName(\"weblogic.rmic\");\n            } else {\n                loader = new AntClassLoader(getRmic().getProject(), \n                                            getRmic().getClasspath());\n                c = loader.loadClass(\"weblogic.rmic\");\n                AntClassLoader.initializeClass(c);\n            }\n            Method doRmic = c.getMethod(\"main\",\n                                        new Class [] { String[].class });\n            doRmic.invoke(null, new Object[] {cmd.getArguments()  });\n            return true;\n        } catch (ClassNotFoundException ex) {\n            throw new BuildException(\"Cannot use WebLogic rmic, as it is not \"\n                                     + \"available.  A common solution is to \"\n                                     + \"set the environment variable \"\n                                     + \"CLASSPATH.\", getRmic().getLocation());\n        } catch (Exception ex) {\n            if (ex instanceof BuildException) {\n                throw (BuildException) ex;\n            } else {\n                throw new BuildException(\"Error starting WebLogic rmic: \", ex,\n                                         getRmic().getLocation());\n            }\n        } finally {\n            if (loader != null) {\n                loader.cleanup();\n            }\n        }\n    }\n\n    /**\n     * Get the suffix for the rmic stub classes\n     */\n    public String getStubClassSuffix() {\n        return \"_WLStub\";\n    }\n\n    /**\n     * Get the suffix for the rmic skeleton classes\n     */\n    public String getSkelClassSuffix() {\n        return \"_WLSkel\";", "functions": [{"function_name": "execute", "code": "    public boolean execute() throws BuildException {\n        getRmic().log(\"Using WebLogic rmic\", Project.MSG_VERBOSE);\n        Commandline cmd = setupRmicCommand(new String[] {\"-noexit\"});\n\n        AntClassLoader loader = null;\n        try {\n            Class c = null;\n            if (getRmic().getClasspath() == null) {\n                c = Class.forName(\"weblogic.rmic\");\n            } else {\n                loader = new AntClassLoader(getRmic().getProject(), \n                                            getRmic().getClasspath());\n                c = loader.loadClass(\"weblogic.rmic\");\n                AntClassLoader.initializeClass(c);\n            }\n            Method doRmic = c.getMethod(\"main\",\n                                        new Class [] { String[].class });\n            doRmic.invoke(null, new Object[] {cmd.getArguments()  });\n            return true;\n        } catch (ClassNotFoundException ex) {\n            throw new BuildException(\"Cannot use WebLogic rmic, as it is not \"\n                                     + \"available.  A common solution is to \"\n                                     + \"set the environment variable \"\n                                     + \"CLASSPATH.\", getRmic().getLocation());\n        } catch (Exception ex) {\n            if (ex instanceof BuildException) {\n                throw (BuildException) ex;\n            } else {\n                throw new BuildException(\"Error starting WebLogic rmic: \", ex,\n                                         getRmic().getLocation());\n            }\n        } finally {\n            if (loader != null) {\n                loader.cleanup();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "CATCH", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [0, 11], [4, 12], [5, 13], [6, 14], [7, 15], [1, 16], [9, 17], [2, 18], [3, 19], [11, 20], [12, 21], [13, 22], [14, 23], [16, 24], [8, 25], [17, 26], [17, 27], [10, 28], [20, 29], [4, 30], [13, 31], [13, 32], [23, 33], [23, 34], [25, 35], [9, 36], [9, 37], [9, 38], [9, 39], [27, 40], [31, 41], [33, 42], [34, 43], [34, 44], [16, 45], [37, 46], [38, 47], [39, 48], [19, 49], [41, 50], [41, 51], [44, 52], [44, 53], [46, 54], [47, 55], [47, 56], [48, 57], [50, 58], [53, 59], [53, 60], [55, 61], [56, 62], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 0], [12, 4], [13, 5], [14, 6], [15, 7], [16, 1], [17, 9], [18, 2], [19, 3], [20, 11], [21, 12], [22, 13], [23, 14], [24, 16], [25, 8], [26, 17], [27, 17], [28, 10], [29, 20], [30, 4], [31, 13], [32, 13], [33, 23], [34, 23], [35, 25], [36, 9], [37, 9], [38, 9], [39, 9], [40, 27], [41, 31], [42, 33], [43, 34], [44, 34], [45, 16], [46, 37], [47, 38], [48, 39], [49, 19], [50, 41], [51, 41], [52, 44], [53, 44], [54, 46], [55, 47], [56, 47], [57, 48], [58, 50], [59, 53], [60, 53], [61, 55], [62, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "getStubClassSuffix", "code": "    public String getStubClassSuffix() {\n        return \"_WLStub\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSkelClassSuffix", "code": "    public String getSkelClassSuffix() {\n        return \"_WLSkel\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6806", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/util/VoidType.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.VoidType", "code": "public final class VoidType extends Type {\n    protected VoidType() {}\n\n    public String toString() {\n\treturn \"void\";\n    }\n\n    public boolean identicalTo(Type other) {\n\treturn this == other;\n    }\n\n    public String toSignature() {\n\treturn \"V\";\n    }\n\n    public org.apache.bcel.generic.Type toJCType() {\n    }\n\n    /**\n     * Translates a void into an object of internal type <code>type</code>.\n     * This translation is needed when calling external functions\n     * that return void.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n\n    /**\n     * Translates a void into a string by pushing the empty string ''.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(classGen.getConstantPool(), \"\"));\n    }\n\n    /**\n     * Translates an external (primitive) Java type into a void.\n     * Only an external \"void\" can be converted to this class.\n     */\n    public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t      Class clazz) {\n\tif (!clazz.getName().equals(\"void\")) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), clazz.getName());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "functions": [{"function_name": "toString", "code": "    public String toString() {\n\treturn \"void\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "identicalTo", "code": "    public boolean identicalTo(Type other) {\n\treturn this == other;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toSignature", "code": "    public String toSignature() {\n\treturn \"V\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toJCType", "code": "    public org.apache.bcel.generic.Type toJCType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [6, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 6], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(classGen.getConstantPool(), \"\"));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [6, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "translateFrom", "code": "    public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t      Class clazz) {\n\tif (!clazz.getName().equals(\"void\")) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), clazz.getName());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [7, 9], [8, 10], [6, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 7], [10, 8], [11, 6], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "VoidType", "code": "    protected VoidType() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.2-1949", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/language/IllegalSyntaxException.java", "language": "java", "name": "org.apache.camel.language.IllegalSyntaxException", "code": "public class IllegalSyntaxException extends RuntimeCamelException {\n    private final Language language;\n    private final String expression;\n\n    public IllegalSyntaxException(Language language, String expression) {\n        super(\"Illegal syntax for language: \" + language + \". Expression: \" + expression);\n        this.language = language;\n        this.expression = expression;\n    }\n\n    public String getExpression() {\n        return expression;\n    }\n\n    public Language getLanguage() {\n        return language;", "functions": [{"function_name": "getExpression", "code": "    public String getExpression() {\n        return expression;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLanguage", "code": "    public Language getLanguage() {\n        return language;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "IllegalSyntaxException", "code": "    public IllegalSyntaxException(Language language, String expression) {\n        super(\"Illegal syntax for language: \" + language + \". Expression: \" + expression);\n        this.language = language;\n        this.expression = expression;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "jedit-4.2-4324", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/gui/VariableGridLayout.java", "language": "java", "name": "org.gjt.sp.jedit.gui.VariableGridLayout", "code": "public class VariableGridLayout implements LayoutManager2, java.io.Serializable\n{\n\n\tpublic static final int FIXED_NUM_ROWS = 1;\n\tpublic static final int FIXED_NUM_COLUMNS = 2;\n\n\n\tpublic VariableGridLayout(int mode, int size, int hgap, int vgap) {\n\t\tif (mode != FIXED_NUM_ROWS && mode != FIXED_NUM_COLUMNS) {\n\t\t\tthrow new IllegalArgumentException(\"illegal mode; value is \" + mode);\n\t\t}\n\t\tif (size <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"size cannot be zero or less; value is \" + size);\n\t\t}\n\t\tif (hgap < 0) {\n\t\t\tthrow new IllegalArgumentException(\"hgap cannot be negative; value is \" + hgap);\n\t\t}\n\t\tif (vgap < 0) {\n\t\t\tthrow new IllegalArgumentException(\"vgap cannot be negative; value is \" + vgap);\n\t\t}\n\t\tthis.mode = mode;\n\t\tthis.size = size;\n\t\tthis.hgap = hgap;\n\t\tthis.vgap = vgap;\n\t}\n\n\n\t/**\n\t * Creates a variable grid layout manager with the specified mode\n\t * and zero horizontal and vertical gap.\n\t */\n\tpublic VariableGridLayout(int mode, int size) {\n\t\tthis(mode, size, 0, 0);\n\t}\n\n\n\t/**\n\t * Creates a variable grid layout manager with mode FIXED_NUM_ROWS,\n\t * number of rows == 1 and zero horizontal and vertical gap.\n\t */\n\tpublic VariableGridLayout() {\n\t\tthis(FIXED_NUM_ROWS, 1, 0, 0);\n\t}\n\n\n\t/**\n\t * Not used in this class.\n\t */\n\tpublic void addLayoutComponent(String name, Component component) { }\n\n\n\t/**\n\t * Not used in this class.\n\t */\n\tpublic void addLayoutComponent(Component component, Object constraints) { }\n\n\n\t/**\n\t * Not used in this class.\n\t */\n\tpublic void removeLayoutComponent(Component component) { }\n\n\n\t/**\n\t * Always returns 0.5.\n\t */\n\tpublic float getLayoutAlignmentX(Container container) {\n\t\treturn 0.5f;\n\t}\n\n\n\t/**\n\t * Always returns 0.5.\n\t */\n\tpublic float getLayoutAlignmentY(Container container) {\n\t\treturn 0.5f;\n\t}\n\n\n\tpublic Dimension preferredLayoutSize(Container parent) {\n\t\treturn getLayoutSize(parent, 2);\n\t}\n\n\n\tpublic Dimension minimumLayoutSize(Container parent) {\n\t\treturn getLayoutSize(parent, 0);\n\t}\n\n\n\tpublic Dimension maximumLayoutSize(Container parent) {\n\t\treturn getLayoutSize(parent, 1);\n\t}\n\n\n\tpublic void layoutContainer(Container parent) {\n\t\tsynchronized (parent.getTreeLock()) {\n\t\t\tupdate(parent);\n\n\t\t\tint ncomponents = parent.getComponentCount();\n\n\t\t\tif (ncomponents == 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Pass 1: compute preferred row heights / column widths\n\t\t\tint total_height = 0;\n\t\t\tfor (int r = 0, i = 0; r < nrows; r++) {\n\t\t\t\tfor (int c = 0; c < ncols; c++, i++) {\n\t\t\t\t\tif (i < ncomponents) {\n\t\t\t\t\t\tDimension d = parent.getComponent(i).getPreferredSize();\n\t\t\t\t\t\trow_heights[r] = Math.max(row_heights[r], d.height);\n\t\t\t\t\t\tcol_widths[c] = Math.max(col_widths[c], d.width);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttotal_height += row_heights[r];\n\t\t\t}\n\n\t\t\tint total_width = 0;\n\t\t\tfor (int c = 0; c < ncols; c++) {\n\t\t\t\ttotal_width += col_widths[c];\n\t\t\t}\n\n\t\t\t// Pass 2: redistribute free space\n\t\t\tDimension parent_size = parent.getSize();\n\t\t\tInsets insets = parent.getInsets();\n\t\t\tint free_height = parent_size.height - insets.top - insets.bottom - (nrows - 1) * vgap;\n\t\t\tint free_width = parent_size.width - insets.left - insets.right - (ncols - 1) * hgap;\n\n\t\t\tif (total_height != free_height) {\n\t\t\t\tdouble dy = (double)free_height / (double)total_height;\n\t\t\t\tfor (int r = 0; r < nrows; r++) {\n\t\t\t\t\trow_heights[r] = (int) ((double)row_heights[r] * dy);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (total_width != free_width) {\n\t\t\t\tdouble dx = ((double)free_width) / ((double)total_width);\n\t\t\t\tfor (int c = 0; c < ncols; c++) {\n\t\t\t\t\tcol_widths[c] = (int) ((double)col_widths[c] * dx);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Pass 3: layout components\n\t\t\tfor (int r = 0, y = insets.top, i = 0; r < nrows; y += row_heights[r] + vgap, r++) {\n\t\t\t\tfor (int c = 0, x = insets.left; c < ncols; x += col_widths[c] + hgap, c++, i++) {\n\t\t\t\t\tif (i < ncomponents) {\n\t\t\t\t\t\tparent.getComponent(i).setBounds(x, y, col_widths[c], row_heights[r]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} // synchronized\n\t}\n\n\n\tpublic void invalidateLayout(Container container) {}\n\n\n\t/**\n\t * Returns the string representation of this variable grid layout's values.\n\t * @return  a string representation of this variable grid layout.\n\t */\n\tpublic String toString() {\n\t\treturn getClass().getName() + \"[mode=\" + mode + \",size=\" + size\n\t\t\t   + \",hgap=\" + hgap + \",vgap=\" + vgap + \"]\";\n\t}\n\n\n\t/**\n\t * @param  which  if 0 compute minimum layout size,\n\t *\t\t\t\tif 1 compute maximum layout size,\n\t *\t\t\t\totherwise compute preferred layout size.\n\t */\n\tprivate Dimension getLayoutSize(Container parent, int which) {\n\t\tsynchronized (parent.getTreeLock()){\n\t\t\tupdate(parent);\n\n\t\t\tint ncomponents = parent.getComponentCount();\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\n\t\t\tfor (int r = 0, i = 0; r < nrows; r++) {\n\t\t\t\tint row_height = 0;\n\t\t\t\tfor (int c = 0; c < ncols; c++, i++) {\n\t\t\t\t\tif (i < ncomponents) {\n\t\t\t\t\t\tswitch (which) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getMinimumSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getMaximumSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getPreferredSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\th += row_height;\n\t\t\t}\n\n\t\t\tfor (int c = 0; c < ncols; c++) {\n\t\t\t\tint col_width = 0;\n\t\t\t\tfor (int r = 0; r < nrows; r++) {\n\t\t\t\t\tint i = r * ncols + c;\n\t\t\t\t\tif (i < ncomponents) {\n\t\t\t\t\t\tswitch (which) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getMinimumSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getMaximumSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getPreferredSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tw += col_width;\n\t\t\t}\n\n\t\t\tInsets insets = parent.getInsets();\n\t\t\treturn new Dimension(w + insets.left + insets.right + ((ncols - 1) * hgap),\n\t\t\t\t\t\t\t\t h + insets.top + insets.bottom + ((nrows - 1) * vgap));\n\t\t}\n\t}\n\n\n\tprivate void update(Container container) {\n\t\tint ncomponents = container.getComponentCount();\n\t\tint old_nrows = nrows;\n\t\tint old_ncols = ncols;\n\t\tif (this.mode == FIXED_NUM_ROWS) {\n\t\t\tnrows = this.size;\n\t\t\tncols = (ncomponents + nrows - 1) / nrows;\n\t\t} else {\n\t\t\tncols = this.size;\n\t\t\tnrows = (ncomponents + ncols - 1) / ncols;\n\t\t}\n\t\tif (old_nrows != nrows) {\n\t\t\trow_heights = new int[nrows];\n\t\t}\n\t\tif (old_ncols != ncols) {\n\t\t\tcol_widths = new int[ncols];\n\t\t}\n\t}\n\n\n\tprivate int mode;\n\tprivate int size;\n\tprivate int hgap;\n\tprivate int vgap;\n\tprivate transient int nrows = -1;\n\tprivate transient int ncols = -1;\n\tprivate transient int[] row_heights = null;\n\tprivate transient int[] col_widths = null;", "functions": [{"function_name": "addLayoutComponent", "code": "\tpublic void addLayoutComponent(String name, Component component) { }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addLayoutComponent", "code": "\tpublic void addLayoutComponent(Component component, Object constraints) { }", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeLayoutComponent", "code": "\tpublic void removeLayoutComponent(Component component) { }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLayoutAlignmentX", "code": "\tpublic float getLayoutAlignmentX(Container container) {\n\t\treturn 0.5f;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLayoutAlignmentY", "code": "\tpublic float getLayoutAlignmentY(Container container) {\n\t\treturn 0.5f;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "preferredLayoutSize", "code": "\tpublic Dimension preferredLayoutSize(Container parent) {\n\t\treturn getLayoutSize(parent, 2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "minimumLayoutSize", "code": "\tpublic Dimension minimumLayoutSize(Container parent) {\n\t\treturn getLayoutSize(parent, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "maximumLayoutSize", "code": "\tpublic Dimension maximumLayoutSize(Container parent) {\n\t\treturn getLayoutSize(parent, 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "layoutContainer", "code": "\tpublic void layoutContainer(Container parent) {\n\t\tsynchronized (parent.getTreeLock()) {\n\t\t\tupdate(parent);\n\n\t\t\tint ncomponents = parent.getComponentCount();\n\n\t\t\tif (ncomponents == 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Pass 1: compute preferred row heights / column widths\n\t\t\tint total_height = 0;\n\t\t\tfor (int r = 0, i = 0; r < nrows; r++) {\n\t\t\t\tfor (int c = 0; c < ncols; c++, i++) {\n\t\t\t\t\tif (i < ncomponents) {\n\t\t\t\t\t\tDimension d = parent.getComponent(i).getPreferredSize();\n\t\t\t\t\t\trow_heights[r] = Math.max(row_heights[r], d.height);\n\t\t\t\t\t\tcol_widths[c] = Math.max(col_widths[c], d.width);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttotal_height += row_heights[r];\n\t\t\t}\n\n\t\t\tint total_width = 0;\n\t\t\tfor (int c = 0; c < ncols; c++) {\n\t\t\t\ttotal_width += col_widths[c];\n\t\t\t}\n\n\t\t\t// Pass 2: redistribute free space\n\t\t\tDimension parent_size = parent.getSize();\n\t\t\tInsets insets = parent.getInsets();\n\t\t\tint free_height = parent_size.height - insets.top - insets.bottom - (nrows - 1) * vgap;\n\t\t\tint free_width = parent_size.width - insets.left - insets.right - (ncols - 1) * hgap;\n\n\t\t\tif (total_height != free_height) {\n\t\t\t\tdouble dy = (double)free_height / (double)total_height;\n\t\t\t\tfor (int r = 0; r < nrows; r++) {\n\t\t\t\t\trow_heights[r] = (int) ((double)row_heights[r] * dy);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (total_width != free_width) {\n\t\t\t\tdouble dx = ((double)free_width) / ((double)total_width);\n\t\t\t\tfor (int c = 0; c < ncols; c++) {\n\t\t\t\t\tcol_widths[c] = (int) ((double)col_widths[c] * dx);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Pass 3: layout components\n\t\t\tfor (int r = 0, y = insets.top, i = 0; r < nrows; y += row_heights[r] + vgap, r++) {\n\t\t\t\tfor (int c = 0, x = insets.left; c < ncols; x += col_widths[c] + hgap, c++, i++) {\n\t\t\t\t\tif (i < ncomponents) {\n\t\t\t\t\t\tparent.getComponent(i).setBounds(x, y, col_widths[c], row_heights[r]);", "ast_nodes": ["FUNC_DECL", "PARAM", "LOOP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "BINARY_OP", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [2, 17], [3, 18], [4, 19], [9, 20], [11, 21], [13, 22], [0, 23], [2, 24], [16, 25], [3, 26], [3, 27], [4, 28], [4, 29], [5, 30], [6, 31], [7, 32], [8, 33], [10, 34], [11, 35], [12, 36], [13, 37], [22, 38], [14, 39], [24, 40], [24, 41], [2, 42], [2, 43], [26, 44], [28, 45], [30, 46], [30, 47], [31, 48], [31, 49], [9, 50], [9, 51], [11, 52], [35, 53], [11, 54], [11, 55], [24, 56], [40, 57], [27, 58], [29, 59], [46, 60], [47, 61], [48, 62], [49, 63], [35, 64], [56, 65], [24, 66], [26, 67], [26, 68], [28, 69], [28, 70], [60, 71], [62, 72], [64, 73], [35, 74], [64, 75], [64, 76], [56, 77], [67, 78], [69, 79], [64, 80], [64, 81], [77, 82], [80, 83], [81, 84], [76, 85], [85, 86], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 2], [18, 3], [19, 4], [20, 9], [21, 11], [22, 13], [23, 0], [24, 2], [25, 16], [26, 3], [27, 3], [28, 4], [29, 4], [30, 5], [31, 6], [32, 7], [33, 8], [34, 10], [35, 11], [36, 12], [37, 13], [38, 22], [39, 14], [40, 24], [41, 24], [42, 2], [43, 2], [44, 26], [45, 28], [46, 30], [47, 30], [48, 31], [49, 31], [50, 9], [51, 9], [52, 11], [53, 35], [54, 11], [55, 11], [56, 24], [57, 40], [58, 27], [59, 29], [60, 46], [61, 47], [62, 48], [63, 49], [64, 35], [65, 56], [66, 24], [67, 26], [68, 26], [69, 28], [70, 28], [71, 60], [72, 62], [73, 64], [74, 35], [75, 64], [76, 64], [77, 56], [78, 67], [79, 69], [80, 64], [81, 64], [82, 77], [83, 80], [84, 81], [85, 76], [86, 85], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "invalidateLayout", "code": "\tpublic void invalidateLayout(Container container) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "\tpublic String toString() {\n\t\treturn getClass().getName() + \"[mode=\" + mode + \",size=\" + size\n\t\t\t   + \",hgap=\" + hgap + \",vgap=\" + vgap + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [14, 15], [14, 16], [16, 17], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 14], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getLayoutSize", "code": "\tprivate Dimension getLayoutSize(Container parent, int which) {\n\t\tsynchronized (parent.getTreeLock()){\n\t\t\tupdate(parent);\n\n\t\t\tint ncomponents = parent.getComponentCount();\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\n\t\t\tfor (int r = 0, i = 0; r < nrows; r++) {\n\t\t\t\tint row_height = 0;\n\t\t\t\tfor (int c = 0; c < ncols; c++, i++) {\n\t\t\t\t\tif (i < ncomponents) {\n\t\t\t\t\t\tswitch (which) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getMinimumSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getMaximumSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\trow_height = Math.max(row_height, parent.getComponent(i).getPreferredSize().height);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\th += row_height;\n\t\t\t}\n\n\t\t\tfor (int c = 0; c < ncols; c++) {\n\t\t\t\tint col_width = 0;\n\t\t\t\tfor (int r = 0; r < nrows; r++) {\n\t\t\t\t\tint i = r * ncols + c;\n\t\t\t\t\tif (i < ncomponents) {\n\t\t\t\t\t\tswitch (which) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getMinimumSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getMaximumSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tcol_width = Math.max(col_width, parent.getComponent(i).getPreferredSize().width);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tw += col_width;\n\t\t\t}\n\n\t\t\tInsets insets = parent.getInsets();\n\t\t\treturn new Dimension(w + insets.left + insets.right + ((ncols - 1) * hgap),\n\t\t\t\t\t\t\t\t h + insets.top + insets.bottom + ((nrows - 1) * vgap));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "RETURN", "VAR_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "SWITCH", "BINARY_OP", "BREAK_CONTINUE", "SWITCH", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [5, 12], [6, 13], [0, 14], [11, 15], [11, 16], [4, 17], [5, 18], [5, 19], [6, 20], [6, 21], [7, 22], [8, 23], [9, 24], [15, 25], [15, 26], [16, 27], [16, 28], [5, 29], [18, 30], [5, 31], [6, 32], [20, 33], [6, 34], [6, 35], [25, 36], [26, 37], [27, 38], [28, 39], [18, 40], [18, 41], [19, 42], [20, 43], [21, 44], [36, 45], [38, 46], [40, 47], [18, 48], [43, 49], [20, 50], [40, 51], [40, 52], [41, 53], [43, 54], [43, 55], [53, 56], [52, 57], [52, 58], [52, 59], [52, 60], [52, 61], [55, 62], [55, 63], [55, 64], [55, 65], [55, 66], [52, 67], [52, 68], [52, 69], [55, 70], [55, 71], [55, 72], [67, 73], [68, 74], [69, 75], [70, 76], [71, 77], [72, 78], [73, 79], [74, 80], [75, 81], [76, 82], [77, 83], [78, 84], [79, 85], [80, 86], [81, 87], [82, 88], [83, 89], [84, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 5], [13, 6], [14, 0], [15, 11], [16, 11], [17, 4], [18, 5], [19, 5], [20, 6], [21, 6], [22, 7], [23, 8], [24, 9], [25, 15], [26, 15], [27, 16], [28, 16], [29, 5], [30, 18], [31, 5], [32, 6], [33, 20], [34, 6], [35, 6], [36, 25], [37, 26], [38, 27], [39, 28], [40, 18], [41, 18], [42, 19], [43, 20], [44, 21], [45, 36], [46, 38], [47, 40], [48, 18], [49, 43], [50, 20], [51, 40], [52, 40], [53, 41], [54, 43], [55, 43], [56, 53], [57, 52], [58, 52], [59, 52], [60, 52], [61, 52], [62, 55], [63, 55], [64, 55], [65, 55], [66, 55], [67, 52], [68, 52], [69, 52], [70, 55], [71, 55], [72, 55], [73, 67], [74, 68], [75, 69], [76, 70], [77, 71], [78, 72], [79, 73], [80, 74], [81, 75], [82, 76], [83, 77], [84, 78], [85, 79], [86, 80], [87, 81], [88, 82], [89, 83], [90, 84], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "update", "code": "\tprivate void update(Container container) {\n\t\tint ncomponents = container.getComponentCount();\n\t\tint old_nrows = nrows;\n\t\tint old_ncols = ncols;\n\t\tif (this.mode == FIXED_NUM_ROWS) {\n\t\t\tnrows = this.size;\n\t\t\tncols = (ncomponents + nrows - 1) / nrows;\n\t\t} else {\n\t\t\tncols = this.size;\n\t\t\tnrows = (ncomponents + ncols - 1) / ncols;\n\t\t}\n\t\tif (old_nrows != nrows) {\n\t\t\trow_heights = new int[nrows];\n\t\t}\n\t\tif (old_ncols != ncols) {\n\t\t\tcol_widths = new int[ncols];", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [6, 11], [1, 12], [2, 13], [3, 14], [3, 15], [3, 16], [3, 17], [14, 18], [16, 19], [18, 20], [19, 21], [20, 22], [20, 23], [21, 24], [21, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 6], [12, 1], [13, 2], [14, 3], [15, 3], [16, 3], [17, 3], [18, 14], [19, 16], [20, 18], [21, 19], [22, 20], [23, 20], [24, 21], [25, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "VariableGridLayout", "code": "\tpublic VariableGridLayout(int mode, int size, int hgap, int vgap) {\n\t\tif (mode != FIXED_NUM_ROWS && mode != FIXED_NUM_COLUMNS) {\n\t\t\tthrow new IllegalArgumentException(\"illegal mode; value is \" + mode);\n\t\t}\n\t\tif (size <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"size cannot be zero or less; value is \" + size);\n\t\t}\n\t\tif (hgap < 0) {\n\t\t\tthrow new IllegalArgumentException(\"hgap cannot be negative; value is \" + hgap);\n\t\t}\n\t\tif (vgap < 0) {\n\t\t\tthrow new IllegalArgumentException(\"vgap cannot be negative; value is \" + vgap);\n\t\t}\n\t\tthis.mode = mode;\n\t\tthis.size = size;\n\t\tthis.hgap = hgap;\n\t\tthis.vgap = vgap;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [3, 15], [4, 16], [1, 17], [13, 18], [2, 19], [14, 20], [3, 21], [15, 22], [4, 23], [16, 24], [16, 25], [17, 26], [19, 27], [21, 28], [23, 29], [26, 30], [27, 31], [28, 32], [29, 33], [30, 34], [31, 35], [32, 36], [33, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 3], [16, 4], [17, 1], [18, 13], [19, 2], [20, 14], [21, 3], [22, 15], [23, 4], [24, 16], [25, 16], [26, 17], [27, 19], [28, 21], [29, 23], [30, 26], [31, 27], [32, 28], [33, 29], [34, 30], [35, 31], [36, 32], [37, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "VariableGridLayout", "code": "\tpublic VariableGridLayout(int mode, int size) {\n\t\tthis(mode, size, 0, 0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "VariableGridLayout", "code": "\tpublic VariableGridLayout() {\n\t\tthis(FIXED_NUM_ROWS, 1, 0, 0);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.5-7289", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/transformer/StackGuard.java", "language": "java", "name": "org.apache.xalan.transformer.StackGuard", "code": "public class StackGuard\n{\n\n  /**\n   * Used for infinite loop check. If the value is -1, do not\n   * check for infinite loops. Anyone who wants to enable that\n   * check should change the value of this variable to be the\n   * level of recursion that they want to check. Be careful setting\n   * this variable, if the number is too low, it may report an\n   * infinite loop situation, when there is none.\n   * Post version 1.0.0, we'll make this a runtime feature.\n   */\n  public static int m_recursionLimit = -1;\n  \n  TransformerImpl m_transformer;\n\n  /**\n   * Get the recursion limit.\n   * Used for infinite loop check. If the value is -1, do not\n   * check for infinite loops. Anyone who wants to enable that\n   * check should change the value of this variable to be the\n   * level of recursion that they want to check. Be careful setting\n   * this variable, if the number is too low, it may report an\n   * infinite loop situation, when there is none.\n   * Post version 1.0.0, we'll make this a runtime feature.\n   *\n   * @return The recursion limit.\n   */\n  public int getRecursionLimit()\n  {\n    return m_recursionLimit;\n  }\n\n  /**\n   * Set the recursion limit.\n   * Used for infinite loop check. If the value is -1, do not\n   * check for infinite loops. Anyone who wants to enable that\n   * check should change the value of this variable to be the\n   * level of recursion that they want to check. Be careful setting\n   * this variable, if the number is too low, it may report an\n   * infinite loop situation, when there is none.\n   * Post version 1.0.0, we'll make this a runtime feature.\n   *\n   * @param limit The recursion limit.\n   */\n  public void setRecursionLimit(int limit)\n  {\n    m_recursionLimit = limit;\n  }\n\n  /**\n   * Constructor StackGuard\n   *\n   *\n   * @param xslTemplate Current template node\n   * @param sourceXML Source Node\n   */\n  public StackGuard(TransformerImpl transformerImpl)\n  {\n    m_transformer = transformerImpl;\n  }\n\n  /**\n   * Overide equal method for StackGuard objects \n   *\n   *\n   * @param obj StackGuard object to compare\n   *\n   * @return True if the given object matches this StackGuard object\n   */\n  public int countLikeTemplates(ElemTemplate templ, int pos)\n  {\n  \tObjectStack elems = m_transformer.getCurrentTemplateElements();\n  \tint count = 1;\n    for (int i = pos-1; i >= 0; i--)\n    {\n    \tif((ElemTemplateElement)elems.elementAt(i) == templ)\n    \t\tcount++;\n    }\n\t\n    return count;\n  }\n\n  \n  /**\n   * Get the next named or match template down from and including \n   * the given position.\n   * @param pos the current index position in the stack.\n   * @return null if no matched or named template found, otherwise \n   * the next named or matched template at or below the position.\n   */\n  private ElemTemplate getNextMatchOrNamedTemplate(int pos)\n  {\n  \tObjectStack elems = m_transformer.getCurrentTemplateElements();\n    for (int i = pos; i >= 0; i--)\n    {\n    \tElemTemplateElement elem = (ElemTemplateElement) elems.elementAt(i);\n    \tif(null != elem)\n    \t{\n\t    \tif(elem.getXSLToken() == Constants.ELEMNAME_TEMPLATE)\n\t    \t{\n\t    \t\treturn (ElemTemplate)elem;\n\t    \t}\n    \t}\n    }\n  \treturn null;\n  }\n\n  /**\n   * Check if we are in an infinite loop\n   *\n   *\n   * @param guard Current StackGuard object (matching current template)  \n   *\n   * @throws TransformerException\n   */\n  public void checkForInfinateLoop() throws TransformerException\n  {\n    int nTemplates = m_transformer.getCurrentTemplateElementsCount();\n    if(nTemplates < m_recursionLimit)\n    \treturn;\n    \t\n    if(m_recursionLimit <= 0)\n    \t\n    for (int i = (nTemplates - 1); i >= m_recursionLimit; i--)\n    {\n    \tElemTemplate template = getNextMatchOrNamedTemplate(i);\n    \t\n    \tif(null == template)\n    \t\tbreak;\n    \t\t\n    \tint loopCount = countLikeTemplates(template, i);\n    \t\n    \tif (loopCount >= m_recursionLimit)\n    \t{\n    \t\t\n    \t\tString idIs = XSLMessages.createMessage(((null != template.getName()) ? \"nameIs\" : \"matchPatternIs\"), null);\n        \tObject[] msgArgs = new Object[]{ new Integer(loopCount), idIs, \n                     ((null != template.getName()) ? template.getName().toString() \n    \t\t   : template.getMatch().getPatternString()) };\n        \tString msg = XSLMessages.createMessage(\"recursionTooDeep\", msgArgs);\n\n    \t\tthrow new TransformerException(msg);", "functions": [{"function_name": "getRecursionLimit", "code": "  public int getRecursionLimit()\n  {\n    return m_recursionLimit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRecursionLimit", "code": "  public void setRecursionLimit(int limit)\n  {\n    m_recursionLimit = limit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "countLikeTemplates", "code": "  public int countLikeTemplates(ElemTemplate templ, int pos)\n  {\n  \tObjectStack elems = m_transformer.getCurrentTemplateElements();\n  \tint count = 1;\n    for (int i = pos-1; i >= 0; i--)\n    {\n    \tif((ElemTemplateElement)elems.elementAt(i) == templ)\n    \t\tcount++;\n    }\n\t\n    return count;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [3, 10], [4, 11], [8, 12], [2, 13], [13, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 3], [11, 4], [12, 8], [13, 2], [14, 13], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getNextMatchOrNamedTemplate", "code": "  private ElemTemplate getNextMatchOrNamedTemplate(int pos)\n  {\n  \tObjectStack elems = m_transformer.getCurrentTemplateElements();\n    for (int i = pos; i >= 0; i--)\n    {\n    \tElemTemplateElement elem = (ElemTemplateElement) elems.elementAt(i);\n    \tif(null != elem)\n    \t{\n\t    \tif(elem.getXSLToken() == Constants.ELEMNAME_TEMPLATE)\n\t    \t{\n\t    \t\treturn (ElemTemplate)elem;\n\t    \t}\n    \t}\n    }\n  \treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [7, 11], [7, 12], [11, 13], [12, 14], [8, 15], [12, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 7], [12, 7], [13, 11], [14, 12], [15, 8], [16, 12], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "checkForInfinateLoop", "code": "  public void checkForInfinateLoop() throws TransformerException\n  {\n    int nTemplates = m_transformer.getCurrentTemplateElementsCount();\n    if(nTemplates < m_recursionLimit)\n    \treturn;\n    \t\n    if(m_recursionLimit <= 0)\n    \t\n    for (int i = (nTemplates - 1); i >= m_recursionLimit; i--)\n    {\n    \tElemTemplate template = getNextMatchOrNamedTemplate(i);\n    \t\n    \tif(null == template)\n    \t\tbreak;\n    \t\t\n    \tint loopCount = countLikeTemplates(template, i);\n    \t\n    \tif (loopCount >= m_recursionLimit)\n    \t{\n    \t\t\n    \t\tString idIs = XSLMessages.createMessage(((null != template.getName()) ? \"nameIs\" : \"matchPatternIs\"), null);\n        \tObject[] msgArgs = new Object[]{ new Integer(loopCount), idIs, \n                     ((null != template.getName()) ? template.getName().toString() \n    \t\t   : template.getMatch().getPatternString()) };\n        \tString msg = XSLMessages.createMessage(\"recursionTooDeep\", msgArgs);\n\n    \t\tthrow new TransformerException(msg);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "LOOP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [2, 7], [4, 8], [5, 9], [3, 10], [4, 11], [4, 12], [4, 13], [4, 14], [11, 15], [13, 16], [13, 17], [4, 18], [11, 19], [11, 20], [11, 21], [11, 22], [12, 23], [17, 24], [14, 25], [18, 26], [19, 27], [20, 28], [22, 29], [28, 30], [29, 31], [29, 32], [21, 33], [21, 34], [32, 35], [32, 36], [32, 37], [33, 38], [33, 39], [33, 40], [37, 41], [37, 42], [38, 43], [39, 44], [40, 45], [40, 46], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 2], [8, 4], [9, 5], [10, 3], [11, 4], [12, 4], [13, 4], [14, 4], [15, 11], [16, 13], [17, 13], [18, 4], [19, 11], [20, 11], [21, 11], [22, 11], [23, 12], [24, 17], [25, 14], [26, 18], [27, 19], [28, 20], [29, 22], [30, 28], [31, 29], [32, 29], [33, 21], [34, 21], [35, 32], [36, 32], [37, 32], [38, 33], [39, 33], [40, 33], [41, 37], [42, 37], [43, 38], [44, 39], [45, 40], [46, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "StackGuard", "code": "  public StackGuard(TransformerImpl transformerImpl)\n  {\n    m_transformer = transformerImpl;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.5-7309", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/util/RtMethodGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.RtMethodGenerator", "code": "public final class RtMethodGenerator extends MethodGenerator {\n    private static final int HANDLER_INDEX = 2;\n    private final Instruction _astoreHandler;\n    private final Instruction _aloadHandler;\n\n    public RtMethodGenerator(int access_flags, Type return_type,\n\t\t\t     Type[] arg_types, String[] arg_names,\n\t\t\t     String method_name, String class_name,\n\t\t\t     InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_astoreHandler = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler  = new ALOAD(HANDLER_INDEX);\n    }\n\n    public int getIteratorIndex() {\n    }\n    \n    public final Instruction storeHandler() {\n\treturn _astoreHandler;\n    }\n\n    public final Instruction loadHandler() {\n\treturn _aloadHandler;\n    }\n\n    public int getLocalIndex(String name) {", "functions": [{"function_name": "getIteratorIndex", "code": "    public int getIteratorIndex() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "storeHandler", "code": "    public final Instruction storeHandler() {\n\treturn _astoreHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadHandler", "code": "    public final Instruction loadHandler() {\n\treturn _aloadHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RtMethodGenerator", "code": "    public RtMethodGenerator(int access_flags, Type return_type,\n\t\t\t     Type[] arg_types, String[] arg_names,\n\t\t\t     String method_name, String class_name,\n\t\t\t     InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_astoreHandler = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler  = new ALOAD(HANDLER_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "ant-1.6-646", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/util/TeeOutputStream.java", "language": "java", "name": "org.apache.tools.ant.util.TeeOutputStream", "code": "public class TeeOutputStream extends OutputStream {\n    private OutputStream left;\n    private OutputStream right;\n\n    /**\n     * Constructor for TeeOutputStream.\n     * @param left one of the output streams.\n     * @param right the other output stream.\n     */\n    public TeeOutputStream(OutputStream left, OutputStream right) {\n        this.left = left;\n        this.right = right;\n    }\n\n    /**\n     * Close both output streams.\n     * @throws IOException on error.\n     */\n    public void close() throws IOException {\n        try {\n            left.close();\n        } finally {\n            right.close();\n        }\n    }\n\n    /**\n     * Flush both output streams.\n     * @throws IOException on error\n     */\n    public void flush() throws IOException {\n        left.flush();\n        right.flush();\n    }\n\n    /**\n     * Write a byte array to both output streams.\n     * @param b an array of bytes.\n     * @throws IOException on error.\n     */\n    public void write(byte[] b) throws IOException {\n        left.write(b);\n        right.write(b);\n    }\n\n    /**\n     * Write a byte array to both output streams.\n     * @param b     the data.\n     * @param off   the start offset in the data.\n     * @param len   the number of bytes to write.\n     * @throws IOException on error.\n     */\n    public void write(byte[] b, int off, int len) throws IOException {\n        left.write(b, off, len);\n        right.write(b, off, len);\n    }\n\n    /**\n     * Write a byte to both output streams.\n     * @param b the byte to write.\n     * @throws IOException on error.\n     */\n    public void write(int b) throws IOException {\n        left.write(b);\n        right.write(b);", "functions": [{"function_name": "close", "code": "    public void close() throws IOException {\n        try {\n            left.close();\n        } finally {\n            right.close();", "ast_nodes": ["FUNC_DECL", "TRY", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "flush", "code": "    public void flush() throws IOException {\n        left.flush();\n        right.flush();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "write", "code": "    public void write(byte[] b) throws IOException {\n        left.write(b);\n        right.write(b);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "write", "code": "    public void write(byte[] b, int off, int len) throws IOException {\n        left.write(b, off, len);\n        right.write(b, off, len);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "write", "code": "    public void write(int b) throws IOException {\n        left.write(b);\n        right.write(b);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "TeeOutputStream", "code": "    public TeeOutputStream(OutputStream left, OutputStream right) {\n        this.left = left;\n        this.right = right;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.3-4761", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/BufferHistory.java", "language": "java", "name": "org.gjt.sp.jedit.BufferHistory", "code": "public class BufferHistory\n{\n\t//{{{ Entry class\n\t/**\n\t * Recent file list entry.\n\t */\n\tpublic static class Entry\n\t{\n\t\tpublic String path;\n\t\tpublic int caret;\n\t\tpublic String selection;\n\t\tpublic String encoding;\n\t\tpublic String mode;\n\n\t\tpublic Selection[] getSelection()\n\t\t{\n\t\t\treturn stringToSelection(selection);\n\t\t}\n\n\t\tpublic Entry(String path, int caret, String selection, String encoding, String mode)\n\t\t{\n\t\t\tthis.path = path;\n\t\t\tthis.caret = caret;\n\t\t\tthis.selection = selection;\n\t\t\tthis.encoding = encoding;\n\t\t\tthis.mode = mode;\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn path + \": \" + caret;\n\t\t}\n\t} //}}}\n\n\t//{{{ getEntry() method\n\tpublic static Entry getEntry(String path)\n\t{\n\t\thistoryLock.readLock().lock();\n\t\ttry\n\t\t{\n\t\t\tfor (Entry entry : history)\n\t\t\t{\n\t\t\t\tif(MiscUtilities.pathsEqual(entry.path,path))\n\t\t\t\t\treturn entry;\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.readLock().unlock();\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ setEntry() method\n\tpublic static void setEntry(String path, int caret, Selection[] selection,\n\t\tString encoding, String mode)\n\t{\n\t\tEntry entry = new Entry(path,caret,\n\t\t\tselectionToString(selection), encoding, mode);\n\t\thistoryLock.writeLock().lock();\n\t\ttry\n\t\t{\n\t\t\tremoveEntry(path);\n\t\t\taddEntry(entry);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.writeLock().unlock();\n\t\t}\n\t\tnotifyChange();\n\t} //}}}\n\n\t//{{{ clear() method\n\t/**\n\t * Clear the BufferHistory.\n\t * @since 4.3pre6\n\t */\n\tpublic static void clear()\n\t{\n\t\thistoryLock.writeLock().lock();\n\t\ttry\n\t\t{\n\t\t\thistory.clear();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.writeLock().unlock();\n\t\t}\n\t\tnotifyChange();\n\t} //}}}\n\n\t//{{{ getHistory() method\n\t/**\n\t * Returns the Buffer list.\n\t * @return the buffer history list\n\t * @since jEdit 4.2pre2\n\t */\n\tpublic static List<Entry> getHistory()\n\t{\n\t\t// Returns a snapshot to avoid concurrent access to the\n\t\t// history. This requires O(n) time, but it should be ok\n\t\t// because this method should be used only by external\n\t\t// O(n) operation.\n\n\t\thistoryLock.readLock().lock();\n\t\ttry\n\t\t{\n\t\t\treturn (List<Entry>)history.clone();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.readLock().unlock();\n\t\t}\n\t} //}}}\n\n\t//{{{ load() method\n\tpublic static void load()\n\t{\n\t\tif(recentXML == null)\n\t\t\treturn;\n\n\t\tif(!recentXML.fileExists())\n\t\t\treturn;\n\n\t\tLog.log(Log.MESSAGE,BufferHistory.class,\"Loading \" + recentXML);\n\n\t\tRecentHandler handler = new RecentHandler();\n\t\ttry\n\t\t{\n\t\t\trecentXML.load(handler);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,BufferHistory.class,e);\n\t\t}\n\t\ttrimToLimit(handler.result);\n\t\thistory = handler.result;\n\t} //}}}\n\n\t//{{{ save() method\n\tpublic static void save()\n\t{\n\t\tif(recentXML == null)\n\t\t\treturn;\n\n\t\tif(recentXML.hasChangedOnDisk())\n\t\t{\n\t\t\tLog.log(Log.WARNING,BufferHistory.class,recentXML\n\t\t\t\t+ \" changed on disk; will not save recent\"\n\t\t\t\t+ \" files\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.log(Log.MESSAGE,BufferHistory.class,\"Saving \" + recentXML);\n\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\tSettingsXML.Saver out = null;\n\n\t\ttry\n\t\t{\n\t\t\tout = recentXML.openSaver();\n\t\t\tout.writeXMLDeclaration();\n\n\t\t\tout.write(\"<!DOCTYPE RECENT SYSTEM \\\"recent.dtd\\\">\");\n\t\t\tout.write(lineSep);\n\t\t\tout.write(\"<RECENT>\");\n\t\t\tout.write(lineSep);\n\n\t\t\t// Make a snapshot to avoid long locking period\n\t\t\t// which may be required by file I/O.\n\t\t\tList<Entry> snapshot = getHistory();\n\n\t\t\tfor (Entry entry : snapshot)\n\t\t\t{\n\t\t\t\tout.write(\"<ENTRY>\");\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tout.write(\"<PATH>\");\n\t\t\t\tout.write(XMLUtilities.charsToEntities(entry.path,false));\n\t\t\t\tout.write(\"</PATH>\");\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tout.write(\"<CARET>\");\n\t\t\t\tout.write(String.valueOf(entry.caret));\n\t\t\t\tout.write(\"</CARET>\");\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tif(entry.selection != null\n\t\t\t\t\t&& entry.selection.length() > 0)\n\t\t\t\t{\n\t\t\t\t\tout.write(\"<SELECTION>\");\n\t\t\t\t\tout.write(entry.selection);\n\t\t\t\t\tout.write(\"</SELECTION>\");\n\t\t\t\t\tout.write(lineSep);\n\t\t\t\t}\n\n\t\t\t\tif(entry.encoding != null)\n\t\t\t\t{\n\t\t\t\t\tout.write(\"<ENCODING>\");\n\t\t\t\t\tout.write(entry.encoding);\n\t\t\t\t\tout.write(\"</ENCODING>\");\n\t\t\t\t\tout.write(lineSep);\n\t\t\t\t}\n\n\t\t\t\tif (entry.mode != null)\n\t\t\t\t{\n\t\t\t\t\tout.write(\"<MODE>\");\n\t\t\t\t\tout.write(entry.mode);\n\t\t\t\t\tout.write(\"</MODE>\");\n\t\t\t\t\tout.write(lineSep);\n\t\t\t\t}\n\n\t\t\t\tout.write(\"</ENTRY>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t}\n\n\t\t\tout.write(\"</RECENT>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tout.finish();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,BufferHistory.class,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(out);\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static LinkedList<Entry> history;\n\tprivate static ReentrantReadWriteLock historyLock;\n\tprivate static SettingsXML recentXML;\n\n\t//{{{ Class initializer\n\tstatic\n\t{\n\t\thistory = new LinkedList<Entry>();\n\t\thistoryLock = new ReentrantReadWriteLock();\n\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\trecentXML = new SettingsXML(settingsDirectory, \"recent\");\n\t\t}\n\t} //}}}\n\n\t//{{{ addEntry() method\n\tprivate static void addEntry(Entry entry)\n\t{\n\t\thistoryLock.writeLock().lock();\n\t\ttry\n\t\t{\n\t\t\thistory.addFirst(entry);\n\t\t\ttrimToLimit(history);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.writeLock().unlock();\n\t\t}\n\t} //}}}\n\n\t//{{{ removeEntry() method\n\tprivate static void removeEntry(String path)\n\t{\n\t\thistoryLock.writeLock().lock();\n\t\ttry\n\t\t{\n\t\t\tIterator<Entry> iter = history.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tEntry entry = iter.next();\n\t\t\t\tif(MiscUtilities.pathsEqual(path,entry.path))\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.writeLock().unlock();\n\t\t}\n\t} //}}}\n\n\t//{{{ selectionToString() method\n\tprivate static String selectionToString(Selection[] s)\n\t{\n\t\tif(s == null)\n\t\t\treturn null;\n\n\t\tStringBuilder buf = new StringBuilder();\n\n\t\tfor(int i = 0; i < s.length; i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(' ');\n\n\t\t\tSelection sel = s[i];\n\t\t\tif(sel instanceof Selection.Range)\n\t\t\t\tbuf.append(\"range \");\n\t\t\telse //if(sel instanceof Selection.Rect)\n\t\t\t\tbuf.append(\"rect \");\n\t\t\tbuf.append(sel.getStart());\n\t\t\tbuf.append(' ');\n\t\t\tbuf.append(sel.getEnd());\n\t\t}\n\n\t\treturn buf.toString();\n\t} //}}}\n\n\t//{{{ stringToSelection() method\n\tprivate static Selection[] stringToSelection(String s)\n\t{\n\t\tif(s == null)\n\t\t\treturn null;\n\n\t\tList<Selection> selection = new ArrayList<Selection>();\n\t\tStringTokenizer st = new StringTokenizer(s);\n\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString type = st.nextToken();\n\t\t\tint start = Integer.parseInt(st.nextToken());\n\t\t\tint end = Integer.parseInt(st.nextToken());\n\t\t\tif(end < start)\n\t\t\t{\n\t\t\t\t// I'm not sure when this can happen,\n\t\t\t\t// but it does sometimes, witness the\n\t\t\t\t// jEdit bug tracker.\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tSelection sel;\n\t\t\tif(type.equals(\"range\"))\n\t\t\t\tsel = new Selection.Range(start,end);\n\t\t\telse //if(type.equals(\"rect\"))\n\t\t\t\tsel = new Selection.Rect(start,end);\n\n\t\t\tselection.add(sel);\n\t\t}\n\n\t\tSelection[] returnValue = new Selection[selection.size()];\n\t\treturnValue = selection.toArray(returnValue);\n\t\treturn returnValue;\n\t} //}}}\n\n\t//{{{ trimToLimit() method\n\tprivate static void trimToLimit(LinkedList<Entry> list)\n\t{\n\t\tint max = jEdit.getIntegerProperty(\"recentFiles\",50);\n\t\twhile(list.size() > max)\n\t\t\tlist.removeLast();\n\t} //}}}\n\n\t//{{{ notifyChange() method\n\tprivate static void notifyChange()\n\t{\n\t\tEditBus.send(new DynamicMenuChanged(\"recent-files\"));\n\t} //}}}\n\n\t//{{{ RecentHandler class\n\tprivate static class RecentHandler extends DefaultHandler\n\t{\n\t\tpublic LinkedList<Entry> result = new LinkedList<Entry>();\n\n\t\tpublic InputSource resolveEntity(String publicId, String systemId)\n\t\t{\n\t\t\treturn XMLUtilities.findEntity(systemId, \"recent.dtd\", getClass());\n\t\t}\n\n\t\tpublic void endElement(String uri, String localName, String name)\n\t\t{\n\t\t\tif(name.equals(\"ENTRY\"))\n\t\t\t{\n\t\t\t\tresult.addLast(new Entry(\n\t\t\t\t\tpath,caret,selection,\n\t\t\t\t\tencoding,\n\t\t\t\t\tmode));\n\t\t\t\tpath = null;\n\t\t\t\tcaret = 0;\n\t\t\t\tselection = null;\n\t\t\t\tencoding = null;\n\t\t\t\tmode = null;\n\t\t\t}\n\t\t\telse if(name.equals(\"PATH\"))\n\t\t\t\tpath = charData.toString();\n\t\t\telse if(name.equals(\"CARET\"))\n\t\t\t\tcaret = Integer.parseInt(charData.toString());\n\t\t\telse if(name.equals(\"SELECTION\"))\n\t\t\t\tselection = charData.toString();\n\t\t\telse if(name.equals(\"ENCODING\"))\n\t\t\t\tencoding = charData.toString();\n\t\t\telse if(name.equals(\"MODE\"))\n\t\t\t\tmode = charData.toString();\n\t\t\tcharData.setLength(0);\n\t\t}\n\n\t\tpublic void characters(char[] ch, int start, int length)\n\t\t{\n\t\t\tcharData.append(ch,start,length);\n\t\t}\n\n\t\t// end HandlerBase implementation\n\n\t\t// private members\n\t\tprivate String path;\n\t\tprivate int caret;\n\t\tprivate String selection;\n\t\tprivate String encoding;\n\t\tprivate String mode;\n\t\tprivate StringBuilder charData = new StringBuilder();", "functions": [{"function_name": "getEntry", "code": "\tpublic static Entry getEntry(String path)\n\t{\n\t\thistoryLock.readLock().lock();\n\t\ttry\n\t\t{\n\t\t\tfor (Entry entry : history)\n\t\t\t{\n\t\t\t\tif(MiscUtilities.pathsEqual(entry.path,path))\n\t\t\t\t\treturn entry;\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.readLock().unlock();\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "LITERAL_ANCHOR", "LOOP", "CALL", "CALL", "CALL", "CALL", "IF", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [2, 7], [6, 8], [7, 9], [5, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 2], [8, 6], [9, 7], [10, 5], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setEntry", "code": "\tpublic static void setEntry(String path, int caret, Selection[] selection,\n\t\tString encoding, String mode)\n\t{\n\t\tEntry entry = new Entry(path,caret,\n\t\t\tselectionToString(selection), encoding, mode);\n\t\thistoryLock.writeLock().lock();\n\t\ttry\n\t\t{\n\t\t\tremoveEntry(path);\n\t\t\taddEntry(entry);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.writeLock().unlock();\n\t\t}\n\t\tnotifyChange();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [9, 13], [2, 14], [10, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 9], [14, 2], [15, 10], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "clear", "code": "\tpublic static void clear()\n\t{\n\t\thistoryLock.writeLock().lock();\n\t\ttry\n\t\t{\n\t\t\thistory.clear();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.writeLock().unlock();\n\t\t}\n\t\tnotifyChange();", "ast_nodes": ["FUNC_DECL", "TRY", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getHistory", "code": "\tpublic static List<Entry> getHistory()\n\t{\n\t\t// Returns a snapshot to avoid concurrent access to the\n\t\t// history. This requires O(n) time, but it should be ok\n\t\t// because this method should be used only by external\n\t\t// O(n) operation.\n\n\t\thistoryLock.readLock().lock();\n\t\ttry\n\t\t{\n\t\t\treturn (List<Entry>)history.clone();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.readLock().unlock();", "ast_nodes": ["FUNC_DECL", "TRY", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [3, 5], [4, 6], [2, 7], [1, 0], [2, 1], [3, 0], [4, 1], [5, 3], [6, 4], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "load", "code": "\tpublic static void load()\n\t{\n\t\tif(recentXML == null)\n\t\t\treturn;\n\n\t\tif(!recentXML.fileExists())\n\t\t\treturn;\n\n\t\tLog.log(Log.MESSAGE,BufferHistory.class,\"Loading \" + recentXML);\n\n\t\tRecentHandler handler = new RecentHandler();\n\t\ttry\n\t\t{\n\t\t\trecentXML.load(handler);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,BufferHistory.class,e);\n\t\t}\n\t\ttrimToLimit(handler.result);\n\t\thistory = handler.result;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "IF", "ASSIGN", "CALL", "CATCH", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [3, 9], [3, 10], [4, 11], [4, 12], [1, 13], [2, 14], [8, 15], [12, 16], [7, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 3], [10, 3], [11, 4], [12, 4], [13, 1], [14, 2], [15, 8], [16, 12], [17, 7], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "save", "code": "\tpublic static void save()\n\t{\n\t\tif(recentXML == null)\n\t\t\treturn;\n\n\t\tif(recentXML.hasChangedOnDisk())\n\t\t{\n\t\t\tLog.log(Log.WARNING,BufferHistory.class,recentXML\n\t\t\t\t+ \" changed on disk; will not save recent\"\n\t\t\t\t+ \" files\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.log(Log.MESSAGE,BufferHistory.class,\"Saving \" + recentXML);\n\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\tSettingsXML.Saver out = null;\n\n\t\ttry\n\t\t{\n\t\t\tout = recentXML.openSaver();\n\t\t\tout.writeXMLDeclaration();\n\n\t\t\tout.write(\"<!DOCTYPE RECENT SYSTEM \\\"recent.dtd\\\">\");\n\t\t\tout.write(lineSep);\n\t\t\tout.write(\"<RECENT>\");\n\t\t\tout.write(lineSep);\n\n\t\t\t// Make a snapshot to avoid long locking period\n\t\t\t// which may be required by file I/O.\n\t\t\tList<Entry> snapshot = getHistory();\n\n\t\t\tfor (Entry entry : snapshot)\n\t\t\t{\n\t\t\t\tout.write(\"<ENTRY>\");\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tout.write(\"<PATH>\");\n\t\t\t\tout.write(XMLUtilities.charsToEntities(entry.path,false));\n\t\t\t\tout.write(\"</PATH>\");\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tout.write(\"<CARET>\");\n\t\t\t\tout.write(String.valueOf(entry.caret));\n\t\t\t\tout.write(\"</CARET>\");\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tif(entry.selection != null\n\t\t\t\t\t&& entry.selection.length() > 0)\n\t\t\t\t{\n\t\t\t\t\tout.write(\"<SELECTION>\");\n\t\t\t\t\tout.write(entry.selection);\n\t\t\t\t\tout.write(\"</SELECTION>\");\n\t\t\t\t\tout.write(lineSep);\n\t\t\t\t}\n\n\t\t\t\tif(entry.encoding != null)\n\t\t\t\t{\n\t\t\t\t\tout.write(\"<ENCODING>\");\n\t\t\t\t\tout.write(entry.encoding);\n\t\t\t\t\tout.write(\"</ENCODING>\");\n\t\t\t\t\tout.write(lineSep);\n\t\t\t\t}\n\n\t\t\t\tif (entry.mode != null)\n\t\t\t\t{\n\t\t\t\t\tout.write(\"<MODE>\");\n\t\t\t\t\tout.write(entry.mode);\n\t\t\t\t\tout.write(\"</MODE>\");\n\t\t\t\t\tout.write(lineSep);\n\t\t\t\t}\n\n\t\t\t\tout.write(\"</ENTRY>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t}\n\n\t\t\tout.write(\"</RECENT>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tout.finish();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,BufferHistory.class,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(out);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "CATCH", "LOOP", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "IF", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [0, 9], [4, 10], [5, 11], [5, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [2, 23], [3, 24], [9, 25], [4, 26], [12, 27], [6, 28], [16, 29], [7, 30], [7, 31], [7, 32], [8, 33], [18, 34], [20, 35], [22, 36], [24, 37], [25, 38], [4, 39], [7, 40], [7, 41], [30, 42], [31, 43], [32, 44], [7, 45], [7, 46], [7, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 52], [7, 53], [7, 54], [39, 55], [41, 56], [42, 57], [43, 58], [44, 59], [44, 60], [46, 61], [47, 62], [48, 63], [50, 64], [51, 65], [52, 66], [54, 67], [55, 68], [55, 69], [30, 70], [30, 71], [30, 72], [30, 73], [31, 74], [31, 75], [31, 76], [31, 77], [32, 78], [32, 79], [32, 80], [32, 81], [59, 82], [59, 83], [60, 84], [65, 85], [69, 86], [71, 87], [73, 88], [75, 89], [77, 90], [79, 91], [81, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 0], [10, 4], [11, 5], [12, 5], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 2], [24, 3], [25, 9], [26, 4], [27, 12], [28, 6], [29, 16], [30, 7], [31, 7], [32, 7], [33, 8], [34, 18], [35, 20], [36, 22], [37, 24], [38, 25], [39, 4], [40, 7], [41, 7], [42, 30], [43, 31], [44, 32], [45, 7], [46, 7], [47, 7], [48, 7], [49, 7], [50, 7], [51, 7], [52, 7], [53, 7], [54, 7], [55, 39], [56, 41], [57, 42], [58, 43], [59, 44], [60, 44], [61, 46], [62, 47], [63, 48], [64, 50], [65, 51], [66, 52], [67, 54], [68, 55], [69, 55], [70, 30], [71, 30], [72, 30], [73, 30], [74, 31], [75, 31], [76, 31], [77, 31], [78, 32], [79, 32], [80, 32], [81, 32], [82, 59], [83, 59], [84, 60], [85, 65], [86, 69], [87, 71], [88, 73], [89, 75], [90, 77], [91, 79], [92, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "addEntry", "code": "\tprivate static void addEntry(Entry entry)\n\t{\n\t\thistoryLock.writeLock().lock();\n\t\ttry\n\t\t{\n\t\t\thistory.addFirst(entry);\n\t\t\ttrimToLimit(history);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.writeLock().unlock();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "removeEntry", "code": "\tprivate static void removeEntry(String path)\n\t{\n\t\thistoryLock.writeLock().lock();\n\t\ttry\n\t\t{\n\t\t\tIterator<Entry> iter = history.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tEntry entry = iter.next();\n\t\t\t\tif(MiscUtilities.pathsEqual(path,entry.path))\n\t\t\t\t{\n\t\t\t\t\titer.remove();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\thistoryLock.writeLock().unlock();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [1, 6], [3, 7], [5, 8], [6, 9], [3, 10], [3, 11], [4, 12], [10, 13], [10, 14], [11, 15], [10, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 1], [7, 3], [8, 5], [9, 6], [10, 3], [11, 3], [12, 4], [13, 10], [14, 10], [15, 11], [16, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "selectionToString", "code": "\tprivate static String selectionToString(Selection[] s)\n\t{\n\t\tif(s == null)\n\t\t\treturn null;\n\n\t\tStringBuilder buf = new StringBuilder();\n\n\t\tfor(int i = 0; i < s.length; i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(' ');\n\n\t\t\tSelection sel = s[i];\n\t\t\tif(sel instanceof Selection.Range)\n\t\t\t\tbuf.append(\"range \");\n\t\t\telse //if(sel instanceof Selection.Rect)\n\t\t\t\tbuf.append(\"rect \");\n\t\t\tbuf.append(sel.getStart());\n\t\t\tbuf.append(' ');\n\t\t\tbuf.append(sel.getEnd());\n\t\t}\n\n\t\treturn buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [2, 10], [2, 11], [2, 12], [3, 13], [8, 14], [9, 15], [2, 16], [2, 17], [2, 18], [10, 19], [12, 20], [2, 21], [16, 22], [17, 23], [18, 24], [10, 25], [10, 26], [12, 27], [20, 28], [25, 29], [26, 30], [27, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 2], [11, 2], [12, 2], [13, 3], [14, 8], [15, 9], [16, 2], [17, 2], [18, 2], [19, 10], [20, 12], [21, 2], [22, 16], [23, 17], [24, 18], [25, 10], [26, 10], [27, 12], [28, 20], [29, 25], [30, 26], [31, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "stringToSelection", "code": "\tprivate static Selection[] stringToSelection(String s)\n\t{\n\t\tif(s == null)\n\t\t\treturn null;\n\n\t\tList<Selection> selection = new ArrayList<Selection>();\n\t\tStringTokenizer st = new StringTokenizer(s);\n\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString type = st.nextToken();\n\t\t\tint start = Integer.parseInt(st.nextToken());\n\t\t\tint end = Integer.parseInt(st.nextToken());\n\t\t\tif(end < start)\n\t\t\t{\n\t\t\t\t// I'm not sure when this can happen,\n\t\t\t\t// but it does sometimes, witness the\n\t\t\t\t// jEdit bug tracker.\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tSelection sel;\n\t\t\tif(type.equals(\"range\"))\n\t\t\t\tsel = new Selection.Range(start,end);\n\t\t\telse //if(type.equals(\"rect\"))\n\t\t\t\tsel = new Selection.Rect(start,end);\n\n\t\t\tselection.add(sel);\n\t\t}\n\n\t\tSelection[] returnValue = new Selection[selection.size()];\n\t\treturnValue = selection.toArray(returnValue);\n\t\treturn returnValue;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "ASSIGN", "CALL", "RETURN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [6, 10], [6, 11], [8, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [4, 19], [5, 20], [10, 21], [11, 22], [2, 23], [3, 24], [13, 25], [15, 26], [13, 27], [13, 28], [25, 29], [15, 30], [16, 31], [17, 32], [18, 33], [27, 34], [28, 35], [31, 36], [32, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 6], [11, 6], [12, 8], [13, 3], [14, 3], [15, 3], [16, 3], [17, 3], [18, 3], [19, 4], [20, 5], [21, 10], [22, 11], [23, 2], [24, 3], [25, 13], [26, 15], [27, 13], [28, 13], [29, 25], [30, 15], [31, 16], [32, 17], [33, 18], [34, 27], [35, 28], [36, 31], [37, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "trimToLimit", "code": "\tprivate static void trimToLimit(LinkedList<Entry> list)\n\t{\n\t\tint max = jEdit.getIntegerProperty(\"recentFiles\",50);\n\t\twhile(list.size() > max)\n\t\t\tlist.removeLast();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "notifyChange", "code": "\tprivate static void notifyChange()\n\t{\n\t\tEditBus.send(new DynamicMenuChanged(\"recent-files\"));", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "jedit-4.3-4700", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/Primitive.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.Primitive", "code": "public final class Primitive implements ParserConstants, java.io.Serializable\n{\n\t/*\n\tstatic Hashtable primitiveToWrapper = new Hashtable();\n\tstatic Hashtable wrapperToPrimitive = new Hashtable();\n\tstatic {\n\t\tprimitiveToWrapper.put( Boolean.TYPE, Boolean.class );\n\t\tprimitiveToWrapper.put( Byte.TYPE, Byte.class );\n\t\tprimitiveToWrapper.put( Short.TYPE, Short.class );\n\t\tprimitiveToWrapper.put( Character.TYPE, Character.class );\n\t\tprimitiveToWrapper.put( Integer.TYPE, Integer.class );\n\t\tprimitiveToWrapper.put( Long.TYPE, Long.class );\n\t\tprimitiveToWrapper.put( Float.TYPE, Float.class );\n\t\tprimitiveToWrapper.put( Double.TYPE, Double.class );\n\t\twrapperToPrimitive.put( Boolean.class, Boolean.TYPE );\n\t\twrapperToPrimitive.put( Byte.class, Byte.TYPE );\n\t\twrapperToPrimitive.put( Short.class, Short.TYPE );\n\t\twrapperToPrimitive.put( Character.class, Character.TYPE );\n\t\twrapperToPrimitive.put( Integer.class, Integer.TYPE );\n\t\twrapperToPrimitive.put( Long.class, Long.TYPE );\n\t\twrapperToPrimitive.put( Float.class, Float.TYPE );\n\t\twrapperToPrimitive.put( Double.class, Double.TYPE );\n\t}\n\t*/\n\tstatic Hashtable wrapperMap = new Hashtable();\n\tstatic {\n\t\twrapperMap.put( Boolean.TYPE, Boolean.class );\n\t\twrapperMap.put( Byte.TYPE, Byte.class );\n\t\twrapperMap.put( Short.TYPE, Short.class );\n\t\twrapperMap.put( Character.TYPE, Character.class );\n\t\twrapperMap.put( Integer.TYPE, Integer.class );\n\t\twrapperMap.put( Long.TYPE, Long.class );\n\t\twrapperMap.put( Float.TYPE, Float.class );\n\t\twrapperMap.put( Double.TYPE, Double.class );\n\t\twrapperMap.put( Boolean.class, Boolean.TYPE );\n\t\twrapperMap.put( Byte.class, Byte.TYPE );\n\t\twrapperMap.put( Short.class, Short.TYPE );\n\t\twrapperMap.put( Character.class, Character.TYPE );\n\t\twrapperMap.put( Integer.class, Integer.TYPE );\n\t\twrapperMap.put( Long.class, Long.TYPE );\n\t\twrapperMap.put( Float.class, Float.TYPE );\n\t\twrapperMap.put( Double.class, Double.TYPE );\n\t}\n\n    /** The primitive value stored in its java.lang wrapper class */\n    private Object value;\n\n    private static class Special implements java.io.Serializable\n    {\n        private Special() { }\n\n        public static final Special NULL_VALUE = new Special();\n        public static final Special VOID_TYPE = new Special();\n    }\n\n    /*\n        NULL means \"no value\".\n        This ia a placeholder for primitive null value.\n    */\n    public static final Primitive NULL = new Primitive(Special.NULL_VALUE);\n\n    /**\n        VOID means \"no type\".\n        Strictly speaking, this makes no sense here.  But for practical\n        reasons we'll consider the lack of a type to be a special value.\n    */\n    public static final Primitive VOID = new Primitive(Special.VOID_TYPE);\n\n    // private to prevent invocation with param that isn't a primitive-wrapper\n    public Primitive( Object value )\n    {\n        if ( value == null )\n            throw new InterpreterError(\n\t\t\t\t\"Use Primitve.NULL instead of Primitive(null)\");\n\n\t\tif ( value != Special.NULL_VALUE \n\t\t\t&& value != Special.VOID_TYPE &&\n\t\t\t!isWrapperType( value.getClass() ) \n\t\t)\n            throw new InterpreterError( \"Not a wrapper type: \"+value);\n\n        this.value = value;\n    }\n\n    public Primitive(boolean value) { this(new Boolean(value)); }\n    public Primitive(byte value) { this(new Byte(value)); }\n    public Primitive(short value) { this(new Short(value)); }\n    public Primitive(char value) { this(new Character(value)); }\n    public Primitive(int value) { this(new Integer(value)); }\n    public Primitive(long value) { this(new Long(value)); }\n    public Primitive(float value) { this(new Float(value)); }\n    public Primitive(double value) { this(new Double(value)); }\n\n\t/**\n    \tReturn the primitive value stored in its java.lang wrapper class\n\t*/\n    public Object getValue()\n    {\n        if ( value == Special.NULL_VALUE )\n            return null;\n        else \n\t\tif ( value == Special.VOID_TYPE )\n                throw new InterpreterError(\"attempt to unwrap void type\");\n        else\n            return value;\n    }\n\n    public String toString()\n    {\n        if(value == Special.NULL_VALUE)\n            return \"null\";\n        else if(value == Special.VOID_TYPE)\n            return \"void\";\n        else\n            return value.toString();\n    }\n\n\t/**\n\t\tGet the corresponding Java primitive TYPE class for this Primitive.\n\t\t@return the primitive TYPE class type of the value or Void.TYPE for\n\t\tPrimitive.VOID or null value for type of Primitive.NULL\n\t*/\n    public Class getType()\n    {\n\t\tif ( this == Primitive.VOID )\n\t\t\treturn Void.TYPE;\n\n\t\t// NULL return null as type... we currently use null type to indicate \n\t\t// loose typing throughout bsh.\n\t\tif ( this == Primitive.NULL )\n\t\t\treturn null;\n\n\t\treturn unboxType( value.getClass() );\n    }\n\n\t/**\n\t\tPerform a binary operation on two Primitives or wrapper types.\n\t\tIf both original args were Primitives return a Primitive result\n\t\telse it was mixed (wrapper/primitive) return the wrapper type.\n\t\tThe exception is for boolean operations where we will return the \n\t\tprimitive type either way.\n\t*/\n    public static Object binaryOperation(\n\t\tObject obj1, Object obj2, int kind)\n        throws UtilEvalError\n    {\n\t\t// special primitive types\n        if ( obj1 == NULL || obj2 == NULL )\n            throw new UtilEvalError(\n\t\t\t\t\"Null value or 'null' literal in binary operation\");\n        if ( obj1 == VOID || obj2 == VOID )\n            throw new UtilEvalError(\n\t\t\t\"Undefined variable, class, or 'void' literal in binary operation\");\n\n\t\t// keep track of the original types\n\t\tClass lhsOrgType = obj1.getClass();\n\t\tClass rhsOrgType = obj2.getClass();\n\n\t\t// Unwrap primitives\n        if ( obj1 instanceof Primitive )\n            obj1 = ((Primitive)obj1).getValue();\n        if ( obj2 instanceof Primitive )\n            obj2 = ((Primitive)obj2).getValue();\n\n        Object[] operands = promotePrimitives(obj1, obj2);\n        Object lhs = operands[0];\n        Object rhs = operands[1];\n\n        if(lhs.getClass() != rhs.getClass())\n            throw new UtilEvalError(\"Type mismatch in operator.  \" \n\t\t\t+ lhs.getClass() + \" cannot be used with \" + rhs.getClass() );\n\n\t\tObject result;\n\t\ttry {\n\t\t\tresult = binaryOperationImpl( lhs, rhs, kind );\n\t\t} catch ( ArithmeticException e ) {\n\t\t\tthrow new UtilTargetError( \"Arithemetic Exception in binary op\", e);\n\t\t}\n\n\t\t// If both original args were Primitives return a Primitive result\n\t\t// else it was mixed (wrapper/primitive) return the wrapper type\n\t\t// Exception is for boolean result, return the primitive\n\t\tif ( (lhsOrgType == Primitive.class && rhsOrgType == Primitive.class)\n\t\t\t|| result instanceof Boolean\n\t\t)\n\t\t\treturn new Primitive( result );\n\t\telse\n\t\t\treturn result;\n    }\n\n    static Object binaryOperationImpl( Object lhs, Object rhs, int kind )\n        throws UtilEvalError\n\t{\n        if(lhs instanceof Boolean)\n            return booleanBinaryOperation((Boolean)lhs, (Boolean)rhs, kind);\n        else if(lhs instanceof Integer)\n            return intBinaryOperation( (Integer)lhs, (Integer)rhs, kind );\n        else if(lhs instanceof Long)\n            return longBinaryOperation((Long)lhs, (Long)rhs, kind);\n        else if(lhs instanceof Float)\n            return floatBinaryOperation((Float)lhs, (Float)rhs, kind);\n        else if(lhs instanceof Double)\n            return doubleBinaryOperation( (Double)lhs, (Double)rhs, kind);\n        else\n            throw new UtilEvalError(\"Invalid types in binary operator\" );\n\t}\n\n    static Boolean booleanBinaryOperation(Boolean B1, Boolean B2, int kind)\n    {\n        boolean lhs = B1.booleanValue();\n        boolean rhs = B2.booleanValue();\n\n        switch(kind)\n        {\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            case BOOL_OR:\n            case BOOL_ORX:\n                return new Boolean( lhs || rhs );\n\n            case BOOL_AND:\n            case BOOL_ANDX:\n                return new Boolean( lhs && rhs );\n\n            default:\n                throw new InterpreterError(\"unimplemented binary operator\");\n        }\n    }\n\n    // returns Object covering both Long and Boolean return types\n    static Object longBinaryOperation(Long L1, Long L2, int kind)\n    {\n        long lhs = L1.longValue();\n        long rhs = L2.longValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Long(lhs + rhs);\n\n            case MINUS:\n                return new Long(lhs - rhs);\n\n            case STAR:\n                return new Long(lhs * rhs);\n\n            case SLASH:\n                return new Long(lhs / rhs);\n\n            case MOD:\n                return new Long(lhs % rhs);\n\n            // bitwise\n            case LSHIFT:\n            case LSHIFTX:\n                return new Long(lhs << rhs);\n\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n                return new Long(lhs >> rhs);\n\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                return new Long(lhs >>> rhs);\n\n            case BIT_AND:\n            case BIT_ANDX:\n                return new Long(lhs & rhs);\n\n            case BIT_OR:\n            case BIT_ORX:\n                return new Long(lhs | rhs);\n\n            case XOR:\n                return new Long(lhs ^ rhs);\n\n            default:\n                throw new InterpreterError(\n\t\t\t\t\t\"Unimplemented binary long operator\");\n        }\n    }\n\n    // returns Object covering both Integer and Boolean return types\n    static Object intBinaryOperation(Integer I1, Integer I2, int kind)\n    {\n        int lhs = I1.intValue();\n        int rhs = I2.intValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Integer(lhs + rhs);\n\n            case MINUS:\n                return new Integer(lhs - rhs);\n\n            case STAR:\n                return new Integer(lhs * rhs);\n\n            case SLASH:\n                return new Integer(lhs / rhs);\n\n            case MOD:\n                return new Integer(lhs % rhs);\n\n            // bitwise\n            case LSHIFT:\n            case LSHIFTX:\n                return new Integer(lhs << rhs);\n\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n                return new Integer(lhs >> rhs);\n\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                return new Integer(lhs >>> rhs);\n\n            case BIT_AND:\n            case BIT_ANDX:\n                return new Integer(lhs & rhs);\n\n            case BIT_OR:\n            case BIT_ORX:\n                return new Integer(lhs | rhs);\n\n            case XOR:\n                return new Integer(lhs ^ rhs);\n\n            default:\n                throw new InterpreterError(\n\t\t\t\t\t\"Unimplemented binary integer operator\");\n        }\n    }\n\n    // returns Object covering both Double and Boolean return types\n    static Object doubleBinaryOperation(Double D1, Double D2, int kind)\n        throws UtilEvalError\n    {\n        double lhs = D1.doubleValue();\n        double rhs = D2.doubleValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Double(lhs + rhs);\n\n            case MINUS:\n                return new Double(lhs - rhs);\n\n            case STAR:\n                return new Double(lhs * rhs);\n\n            case SLASH:\n                return new Double(lhs / rhs);\n\n            case MOD:\n                return new Double(lhs % rhs);\n\n            // can't shift floating-point values\n            case LSHIFT:\n            case LSHIFTX:\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                throw new UtilEvalError(\"Can't shift doubles\");\n\n            default:\n                throw new InterpreterError(\n\t\t\t\t\t\"Unimplemented binary double operator\");\n        }\n    }\n    // returns Object covering both Long and Boolean return types\n    static Object floatBinaryOperation(Float F1, Float F2, int kind)\n        throws UtilEvalError\n    {\n        float lhs = F1.floatValue();\n        float rhs = F2.floatValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Float(lhs + rhs);\n\n            case MINUS:\n                return new Float(lhs - rhs);\n\n            case STAR:\n                return new Float(lhs * rhs);\n\n            case SLASH:\n                return new Float(lhs / rhs);\n\n            case MOD:\n                return new Float(lhs % rhs);\n\n            // can't shift floats\n            case LSHIFT:\n            case LSHIFTX:\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                throw new UtilEvalError(\"Can't shift floats \");\n\n            default:\n                throw new InterpreterError(\n\t\t\t\t\t\"Unimplemented binary float operator\");\n        }\n    }\n\n\t/**\n\t\tPromote primitive wrapper type to to Integer wrapper type\n\t*/\n    static Object promoteToInteger(Object wrapper )\n    {\n        if(wrapper instanceof Character)\n            return new Integer(((Character)wrapper).charValue());\n        else if((wrapper instanceof Byte) || (wrapper instanceof Short))\n            return new Integer(((Number)wrapper).intValue());\n\n        return wrapper;\n    }\n\n\t/**\n\t\tPromote the pair of primitives to the maximum type of the two.\n\t\te.g. [int,long]->[long,long]\n\t*/\n    static Object[] promotePrimitives(Object lhs, Object rhs)\n    {\n        lhs = promoteToInteger(lhs);\n        rhs = promoteToInteger(rhs);\n\n        if((lhs instanceof Number) && (rhs instanceof Number))\n        {\n            Number lnum = (Number)lhs;\n            Number rnum = (Number)rhs;\n\n            boolean b;\n\n            if((b = (lnum instanceof Double)) || (rnum instanceof Double))\n            {\n                if(b)\n                    rhs = new Double(rnum.doubleValue());\n                else\n                    lhs = new Double(lnum.doubleValue());\n            }\n            else if((b = (lnum instanceof Float)) || (rnum instanceof Float))\n            {\n                if(b)\n                    rhs = new Float(rnum.floatValue());\n                else\n                    lhs = new Float(lnum.floatValue());\n            }\n            else if((b = (lnum instanceof Long)) || (rnum instanceof Long))\n            {\n                if(b)\n                    rhs = new Long(rnum.longValue());\n                else\n                    lhs = new Long(lnum.longValue());\n            }\n        }\n\n        return new Object[] { lhs, rhs };\n    }\n\n    public static Primitive unaryOperation(Primitive val, int kind)\n        throws UtilEvalError\n    {\n        if (val == NULL)\n            throw new UtilEvalError(\n\t\t\t\t\"illegal use of null object or 'null' literal\");\n        if (val == VOID)\n            throw new UtilEvalError(\n\t\t\t\t\"illegal use of undefined object or 'void' literal\");\n\n        Class operandType = val.getType();\n        Object operand = promoteToInteger(val.getValue());\n\n        if ( operand instanceof Boolean )\n            return new Primitive(booleanUnaryOperation((Boolean)operand, kind));\n        else if(operand instanceof Integer)\n        {\n            int result = intUnaryOperation((Integer)operand, kind);\n\n            // ++ and -- must be cast back the original type\n            if(kind == INCR || kind == DECR)\n            {\n                if(operandType == Byte.TYPE)\n                    return new Primitive((byte)result);\n                if(operandType == Short.TYPE)\n                    return new Primitive((short)result);\n                if(operandType == Character.TYPE)\n                    return new Primitive((char)result);\n            }\n\n            return new Primitive(result);\n        }\n        else if(operand instanceof Long)\n            return new Primitive(longUnaryOperation((Long)operand, kind));\n        else if(operand instanceof Float)\n            return new Primitive(floatUnaryOperation((Float)operand, kind));\n        else if(operand instanceof Double)\n            return new Primitive(doubleUnaryOperation((Double)operand, kind));\n        else\n            throw new InterpreterError(\n\t\t\t\t\"An error occurred.  Please call technical support.\");\n    }\n\n    static boolean booleanUnaryOperation(Boolean B, int kind) \n\t\tthrows UtilEvalError\n    {\n        boolean operand = B.booleanValue();\n        switch(kind)\n        {\n            case BANG:\n                return !operand;\n            default:\n                throw new UtilEvalError(\"Operator inappropriate for boolean\");\n        }\n    }\n\n    static int intUnaryOperation(Integer I, int kind)\n    {\n        int operand = I.intValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n            case MINUS:\n                return -operand;\n            case TILDE:\n                return ~operand;\n            case INCR:\n                return operand + 1;\n            case DECR:\n                return operand - 1;\n            default:\n                throw new InterpreterError(\"bad integer unaryOperation\");\n        }\n    }\n\n    static long longUnaryOperation(Long L, int kind)\n    {\n        long operand = L.longValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n            case MINUS:\n                return -operand;\n            case TILDE:\n                return ~operand;\n            case INCR:\n                return operand + 1;\n            case DECR:\n                return operand - 1;\n            default:\n                throw new InterpreterError(\"bad long unaryOperation\");\n        }\n    }\n\n    static float floatUnaryOperation(Float F, int kind)\n    {\n        float operand = F.floatValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n            case MINUS:\n                return -operand;\n            default:\n                throw new InterpreterError(\"bad float unaryOperation\");\n        }\n    }\n\n    static double doubleUnaryOperation(Double D, int kind)\n    {\n        double operand = D.doubleValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n            case MINUS:\n                return -operand;\n            default:\n                throw new InterpreterError(\"bad double unaryOperation\");\n        }\n    }\n\n    public int intValue() throws UtilEvalError\n    {\n        if(value instanceof Number)\n            return((Number)value).intValue();\n        else\n            throw new UtilEvalError(\"Primitive not a number\");\n    }\n\n    public boolean booleanValue() throws UtilEvalError\n    {\n        if(value instanceof Boolean)\n            return((Boolean)value).booleanValue();\n        else\n            throw new UtilEvalError(\"Primitive not a boolean\");\n    }\n\n\t/**\n\t\tDetermine if this primitive is a numeric type.\n\t\ti.e. not boolean, null, or void (but including char)\n\t*/\n\tpublic boolean isNumber() {\n\t\treturn ( !(value instanceof Boolean) \n\t\t\t&& !(this == NULL) && !(this == VOID) );\n\t}\n\n    public Number numberValue() throws UtilEvalError\n    {\n\t\tObject value = this.value;\n\n\t\t// Promote character to Number type for these purposes\n\t\tif (value instanceof Character)\n\t\t\tvalue = new Integer(((Character)value).charValue());\n\n        if (value instanceof Number)\n            return (Number)value;\n        else\n            throw new UtilEvalError(\"Primitive not a number\");\n    }\n\n\t/**\n\t\tPrimitives compare equal with other Primitives containing an equal\n\t\twrapped value.\n\t*/\n\tpublic boolean equals( Object obj ) \n\t{\n\t\tif ( obj instanceof Primitive )\n\t\t\treturn ((Primitive)obj).value.equals( this.value );\n\t\telse\n\t\t\treturn false;\n\t}\n\n\t/**\n\t\tThe hash of the Primitive is tied to the hash of the wrapped value but\n\t\tshifted so that they are not the same.\n\t*/\n\tpublic int hashCode() \n\t{\n\t\treturn this.value.hashCode() * 21; // arbitrary\n\t}\n\n\t/**\n\t\tUnwrap primitive values and map voids to nulls.\n\t\tNon Primitive types remain unchanged.\n\n\t\t@param obj object type which may be bsh.Primitive\n\t\t@return corresponding \"normal\" Java type, \"unwrapping\" \n\t\t\tany bsh.Primitive types to their wrapper types.\n\t*/\n\tpublic static Object unwrap( Object obj ) \n\t{\n        // map voids to nulls for the outside world\n        if (obj == Primitive.VOID)\n            return null;\n\n        // unwrap primitives\n        if (obj instanceof Primitive)\n            return((Primitive)obj).getValue();\n        else\n            return obj;\n\t}\n\n    /*\n        Unwrap Primitive wrappers to their java.lang wrapper values.\n\t\te.g. Primitive(42) becomes Integer(42)\n\t\t@see #unwrap( Object )\n    */\n    public static Object [] unwrap( Object[] args )\n    {\n\t\tObject [] oa = new Object[ args.length ];\n        for(int i=0; i<args.length; i++)\n            oa[i] = unwrap( args[i] );\n\t\treturn oa;\n    }\n\n    /*\n    */\n    public static Object [] wrap( Object[] args, Class [] paramTypes )\n    {\n\t\tif ( args == null )\n\t\t\treturn null;\n\n\t\tObject [] oa = new Object[ args.length ];\n        for(int i=0; i<args.length; i++)\n            oa[i] = wrap( args[i], paramTypes[i] );\n\t\treturn oa;\n    }\n\n\t/**\n\t\tWrap primitive values (as indicated by type param) and nulls in the \n\t\tPrimitive class.  Values not primitive or null are left unchanged.\n\t\tPrimitive values are represented by their wrapped values in param value.\n\t\t<p/>\n\t\tThe value null is mapped to Primitive.NULL.\n\t\tAny value specified with type Void.TYPE is mapped to Primitive.VOID.\n\t*/\n    public static Object wrap(\n\t\tObject value, Class type )\n    {\n        if ( type == Void.TYPE )\n            return Primitive.VOID;\n\n        if ( value == null )\n            return Primitive.NULL;\n\n\t\tif ( type.isPrimitive() )\n\t\t\treturn new Primitive( value );\n\n\t\treturn value;\n    }\n\n\n\t/**\n\t\tGet the appropriate default value per JLS 4.5.4\n\t*/\n\tpublic static Primitive getDefaultValue( Class type )\n\t{\n\t\tif ( type == null || !type.isPrimitive() )\n\t\t\treturn Primitive.NULL;\n\t\tif ( type == Boolean.TYPE )\n\t\t\treturn new Primitive( false );\n\n\t\t// non boolean primitive, get appropriate flavor of zero\n\t\ttry {\n\t\t\treturn new Primitive((int)0).castToType( type, Types.CAST );\n\t\t} catch ( UtilEvalError e ) {\n\t\t\tthrow new InterpreterError( \"bad cast\" );\n\t\t}\n\t}\n\n\t/**\n\t\tGet the corresponding java.lang wrapper class for the primitive TYPE\n\t\tclass.\n\t\te.g.  Integer.TYPE -> Integer.class\n\t*/\n\tpublic static Class boxType( Class primitiveType )\n\t{\n\t\tClass c = (Class)wrapperMap.get( primitiveType );\n\t\tif ( c != null )\n\t\t\treturn c;\n\t\tthrow new InterpreterError( \n\t\t\t\"Not a primitive type: \"+ primitiveType );\n\t}\n\n\t/**\n\t\tGet the corresponding primitive TYPE class for the java.lang wrapper\n\t\tclass type.\n\t\te.g.  Integer.class -> Integer.TYPE\n\t*/\n\tpublic static Class unboxType( Class wrapperType )\n\t{\n\t\tClass c = (Class)wrapperMap.get( wrapperType );\n\t\tif ( c != null )\n\t\t\treturn c;\n\t\tthrow new InterpreterError( \n\t\t\t\"Not a primitive wrapper type: \"+wrapperType );\n\t}\n\n\t/**\n\t\tCast this bsh.Primitive value to a new bsh.Primitive value\n\t\tThis is usually a numeric type cast.  Other cases include:\n\t\t\tA boolean can be cast to boolen\n\t\t\tnull can be cast to any object type and remains null\n\t\t\tAttempting to cast a void causes an exception\n\t\t@param toType is the java object or primitive TYPE class\n\t*/\n\tpublic Primitive castToType( Class toType, int operation ) \n\t\tthrows UtilEvalError\n\t{\n\t\treturn castPrimitive( \n\t\t\ttoType, getType()/*fromType*/, this/*fromValue*/, \n\t\t\tfalse/*checkOnly*/, operation );\n\t}\n\n\t/*\n\t\tCast or check a cast of a primitive type to another type.\n\t\tNormally both types are primitive (e.g. numeric), but a null value\n\t\t(no type) may be cast to any type.\n\t\t<p/>\n\n\t\t@param toType is the target type of the cast.  It is normally a\n\t\tjava primitive TYPE, but in the case of a null cast can be any object\n\t\ttype.\n\n\t\t@param fromType is the java primitive TYPE type of the primitive to be\n\t\tcast or null, to indicate that the fromValue was null or void.\n\n\t\t@param fromValue is, optionally, the value to be converted.  If\n\t\tcheckOnly is true fromValue must be null.  If checkOnly is false,\n\t\tfromValue must be non-null (Primitive.NULL is of course valid).\n\t*/\n\tstatic Primitive castPrimitive( \n\t\tClass toType, Class fromType, Primitive fromValue, \n\t\tboolean checkOnly, int operation ) \n\t\tthrows UtilEvalError\n\t{\n\t\t/*\n\t\t\tLots of preconditions checked here...\n\t\t\tOnce things are running smoothly we might comment these out\n\t\t\t(That's what assertions are for).\n\t\t*/\n\t\tif ( checkOnly && fromValue != null )\n\t\t\tthrow new InterpreterError(\"bad cast param 1\");\n\t\tif ( !checkOnly && fromValue == null )\n\t\t\tthrow new InterpreterError(\"bad cast param 2\");\n\t\tif ( fromType != null && !fromType.isPrimitive() )\n\t\t\tthrow new InterpreterError(\"bad fromType:\" +fromType);\n\t\tif ( fromValue == Primitive.NULL && fromType != null )\n\t\t\tthrow new InterpreterError(\"inconsistent args 1\");\n\t\tif ( fromValue == Primitive.VOID && fromType != Void.TYPE )\n\t\t\tthrow new InterpreterError(\"inconsistent args 2\");\n\n\t\t// can't cast void to anything\n\t\tif ( fromType == Void.TYPE )\n\t\t\tif ( checkOnly )\n\t\t\t\treturn Types.INVALID_CAST;\n\t\t\telse\n\t\t\t\tthrow Types.castError( Reflect.normalizeClassName(toType), \n\t\t\t\t\t\"void value\", operation );\n\n\t\t// unwrap Primitive fromValue to its wrapper value, etc.\n\t\tObject value = null; \n\t\tif ( fromValue != null )\n\t\t\tvalue = fromValue.getValue();\n\n\t\tif ( toType.isPrimitive() )\n\t\t{\n\t\t\t// Trying to cast null to primitive type?\n\t\t\tif ( fromType == null )\n\t\t\t\tif ( checkOnly )\n\t\t\t\t\treturn Types.INVALID_CAST;\n\t\t\t\telse\n\t\t\t\t\tthrow Types.castError(\n\t\t\t\t\t\t\"primitive type:\" + toType, \"Null value\", operation );\n\n\t\t\t// fall through\n\t\t} else\n\t\t{\n\t\t\t// Trying to cast primitive to an object type\n\t\t\t// Primitive.NULL can be cast to any object type\n\t\t\tif ( fromType == null )\n\t\t\t\treturn checkOnly ? Types.VALID_CAST : \n\t\t\t\t\tPrimitive.NULL;\n\n\t\t\tif ( checkOnly )\n\t\t\t\treturn Types.INVALID_CAST;\n\t\t\telse\n\t\t\t\tthrow Types.castError(\n\t\t\t\t\t\t\"object type:\" + toType, \"primitive value\", operation);\n\t\t}\n\n\t\t// can only cast boolean to boolean\n\t\tif ( fromType == Boolean.TYPE )\n\t\t{\n\t\t\tif ( toType != Boolean.TYPE )\n\t\t\t\tif ( checkOnly )\n\t\t\t\t\treturn Types.INVALID_CAST;\n\t\t\t\telse\n\t\t\t\t\tthrow Types.castError( toType, fromType, operation );\n\n\t\t\treturn checkOnly ? Types.VALID_CAST :\n\t\t\t\tfromValue;\n\t\t}\n\n\t\t// Do numeric cast\n\n\t\t// Only allow legal Java assignment unless we're a CAST operation\n\t\tif ( operation == Types.ASSIGNMENT \n\t\t\t&& !Types.isJavaAssignable( toType, fromType ) \n\t\t) {\n\t\t\tif ( checkOnly )\n\t\t\t\treturn Types.INVALID_CAST;\n\t\t\telse\n\t\t\t\tthrow Types.castError( toType, fromType, operation );\n\t\t}\n\n\t\treturn checkOnly ? Types.VALID_CAST :\n\t\t\tnew Primitive( castWrapper(toType, value) );\n\t}\n\n\tpublic static boolean isWrapperType( Class type )\n\t{\n\t\treturn wrapperMap.get( type ) != null && !type.isPrimitive();\n\t}\n\n\t/**\n\t\tCast a primitive value represented by its java.lang wrapper type to the\n\t\tspecified java.lang wrapper type.  e.g.  Byte(5) to Integer(5) or\n\t\tInteger(5) to Byte(5) \n\t\t@param toType is the java TYPE type\n\t\t@param value is the value in java.lang wrapper.\n\t\tvalue may not be null.\n\t*/\n\tstatic Object castWrapper( \n\t\tClass toType, Object value ) \n\t{\n\t\tif ( !toType.isPrimitive() )\n\t\t\tthrow new InterpreterError(\"invalid type in castWrapper: \"+toType);\n\t\tif ( value == null )\n\t\t\tthrow new InterpreterError(\"null value in castWrapper, guard\");\n\t\tif ( value instanceof Boolean )\n\t\t{\n\t\t\tif ( toType != Boolean.TYPE )\n\t\t\t\tthrow new InterpreterError(\"bad wrapper cast of boolean\");\n\t\t\telse\n\t\t\t\treturn value;\n\t\t}\n\n\t\t// first promote char to Number type to avoid duplicating code\n\t\tif ( value instanceof Character )\n\t\t\tvalue = new Integer(((Character)value).charValue());\n\n\t\tif ( !(value instanceof Number) )\n\t\t\tthrow new InterpreterError(\"bad type in cast\");\n\n\t\tNumber number = (Number)value;\n\n\t\tif (toType == Byte.TYPE)\n\t\t\treturn new Byte(number.byteValue());\n\t\tif (toType == Short.TYPE)\n\t\t\treturn new Short(number.shortValue());\n\t\tif (toType == Character.TYPE)\n\t\t\treturn new Character((char)number.intValue());\n\t\tif (toType == Integer.TYPE)\n\t\t\treturn new Integer(number.intValue());\n\t\tif (toType == Long.TYPE)\n\t\t\treturn new Long(number.longValue());\n\t\tif (toType == Float.TYPE)\n\t\t\treturn new Float(number.floatValue());\n\t\tif (toType == Double.TYPE)\n\t\t\treturn new Double(number.doubleValue());\n\n\t\tthrow new InterpreterError(\"error in wrapper cast\");", "functions": [{"function_name": "getValue", "code": "    public Object getValue()\n    {\n        if ( value == Special.NULL_VALUE )\n            return null;\n        else \n\t\tif ( value == Special.VOID_TYPE )\n                throw new InterpreterError(\"attempt to unwrap void type\");\n        else\n            return value;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "RETURN", "BINARY_OP", "RETURN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [2, 7], [3, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 2], [8, 3], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        if(value == Special.NULL_VALUE)\n            return \"null\";\n        else if(value == Special.VOID_TYPE)\n            return \"void\";\n        else\n            return value.toString();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [2, 7], [3, 8], [5, 9], [6, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 2], [8, 3], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getType", "code": "    public Class getType()\n    {\n\t\tif ( this == Primitive.VOID )\n\t\t\treturn Void.TYPE;\n\n\t\t// NULL return null as type... we currently use null type to indicate \n\t\t// loose typing throughout bsh.\n\t\tif ( this == Primitive.NULL )\n\t\t\treturn null;\n\n\t\treturn unboxType( value.getClass() );", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [4, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 4], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "binaryOperation", "code": "    public static Object binaryOperation(\n\t\tObject obj1, Object obj2, int kind)\n        throws UtilEvalError\n    {\n\t\t// special primitive types\n        if ( obj1 == NULL || obj2 == NULL )\n            throw new UtilEvalError(\n\t\t\t\t\"Null value or 'null' literal in binary operation\");\n        if ( obj1 == VOID || obj2 == VOID )\n            throw new UtilEvalError(\n\t\t\t\"Undefined variable, class, or 'void' literal in binary operation\");\n\n\t\t// keep track of the original types\n\t\tClass lhsOrgType = obj1.getClass();\n\t\tClass rhsOrgType = obj2.getClass();\n\n\t\t// Unwrap primitives\n        if ( obj1 instanceof Primitive )\n            obj1 = ((Primitive)obj1).getValue();\n        if ( obj2 instanceof Primitive )\n            obj2 = ((Primitive)obj2).getValue();\n\n        Object[] operands = promotePrimitives(obj1, obj2);\n        Object lhs = operands[0];\n        Object rhs = operands[1];\n\n        if(lhs.getClass() != rhs.getClass())\n            throw new UtilEvalError(\"Type mismatch in operator.  \" \n\t\t\t+ lhs.getClass() + \" cannot be used with \" + rhs.getClass() );\n\n\t\tObject result;\n\t\ttry {\n\t\t\tresult = binaryOperationImpl( lhs, rhs, kind );\n\t\t} catch ( ArithmeticException e ) {\n\t\t\tthrow new UtilTargetError( \"Arithemetic Exception in binary op\", e);\n\t\t}\n\n\t\t// If both original args were Primitives return a Primitive result\n\t\t// else it was mixed (wrapper/primitive) return the wrapper type\n\t\t// Exception is for boolean result, return the primitive\n\t\tif ( (lhsOrgType == Primitive.class && rhsOrgType == Primitive.class)\n\t\t\t|| result instanceof Boolean\n\t\t)\n\t\t\treturn new Primitive( result );\n\t\telse\n\t\t\treturn result;", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CATCH", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [1, 18], [1, 19], [2, 20], [4, 21], [4, 22], [8, 23], [9, 24], [12, 25], [12, 26], [13, 27], [13, 28], [18, 29], [19, 30], [19, 31], [20, 32], [2, 33], [21, 34], [22, 35], [22, 36], [7, 37], [8, 38], [9, 39], [10, 40], [11, 41], [25, 42], [26, 43], [26, 44], [27, 45], [28, 46], [28, 47], [31, 48], [31, 49], [32, 50], [33, 51], [34, 52], [42, 53], [45, 54], [50, 55], [52, 56], [52, 57], [5, 58], [6, 59], [57, 60], [57, 61], [61, 62], [61, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 1], [19, 1], [20, 2], [21, 4], [22, 4], [23, 8], [24, 9], [25, 12], [26, 12], [27, 13], [28, 13], [29, 18], [30, 19], [31, 19], [32, 20], [33, 2], [34, 21], [35, 22], [36, 22], [37, 7], [38, 8], [39, 9], [40, 10], [41, 11], [42, 25], [43, 26], [44, 26], [45, 27], [46, 28], [47, 28], [48, 31], [49, 31], [50, 32], [51, 33], [52, 34], [53, 42], [54, 45], [55, 50], [56, 52], [57, 52], [58, 5], [59, 6], [60, 57], [61, 57], [62, 61], [63, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "binaryOperationImpl", "code": "    static Object binaryOperationImpl( Object lhs, Object rhs, int kind )\n        throws UtilEvalError\n\t{\n        if(lhs instanceof Boolean)\n            return booleanBinaryOperation((Boolean)lhs, (Boolean)rhs, kind);\n        else if(lhs instanceof Integer)\n            return intBinaryOperation( (Integer)lhs, (Integer)rhs, kind );\n        else if(lhs instanceof Long)\n            return longBinaryOperation((Long)lhs, (Long)rhs, kind);\n        else if(lhs instanceof Float)\n            return floatBinaryOperation((Float)lhs, (Float)rhs, kind);\n        else if(lhs instanceof Double)\n            return doubleBinaryOperation( (Double)lhs, (Double)rhs, kind);\n        else\n            throw new UtilEvalError(\"Invalid types in binary operator\" );", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "IF", "RETURN", "BINARY_OP", "CALL", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [5, 10], [6, 11], [8, 12], [8, 13], [8, 14], [9, 15], [12, 16], [12, 17], [12, 18], [13, 19], [16, 20], [16, 21], [16, 22], [17, 23], [20, 24], [21, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 5], [11, 6], [12, 8], [13, 8], [14, 8], [15, 9], [16, 12], [17, 12], [18, 12], [19, 13], [20, 16], [21, 16], [22, 16], [23, 17], [24, 20], [25, 21], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "booleanBinaryOperation", "code": "    static Boolean booleanBinaryOperation(Boolean B1, Boolean B2, int kind)\n    {\n        boolean lhs = B1.booleanValue();\n        boolean rhs = B2.booleanValue();\n\n        switch(kind)\n        {\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            case BOOL_OR:\n            case BOOL_ORX:\n                return new Boolean( lhs || rhs );\n\n            case BOOL_AND:\n            case BOOL_ANDX:\n                return new Boolean( lhs && rhs );\n\n            default:\n                throw new InterpreterError(\"unimplemented binary operator\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [3, 13], [7, 14], [8, 15], [9, 16], [10, 17], [11, 18], [14, 19], [15, 20], [16, 21], [17, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 3], [14, 7], [15, 8], [16, 9], [17, 10], [18, 11], [19, 14], [20, 15], [21, 16], [22, 17], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "longBinaryOperation", "code": "    static Object longBinaryOperation(Long L1, Long L2, int kind)\n    {\n        long lhs = L1.longValue();\n        long rhs = L2.longValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Long(lhs + rhs);\n\n            case MINUS:\n                return new Long(lhs - rhs);\n\n            case STAR:\n                return new Long(lhs * rhs);\n\n            case SLASH:\n                return new Long(lhs / rhs);\n\n            case MOD:\n                return new Long(lhs % rhs);\n\n            // bitwise\n            case LSHIFT:\n            case LSHIFTX:\n                return new Long(lhs << rhs);\n\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n                return new Long(lhs >> rhs);\n\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                return new Long(lhs >>> rhs);\n\n            case BIT_AND:\n            case BIT_ANDX:\n                return new Long(lhs & rhs);\n\n            case BIT_OR:\n            case BIT_ORX:\n                return new Long(lhs | rhs);\n\n            case XOR:\n                return new Long(lhs ^ rhs);\n\n            default:\n                throw new InterpreterError(\n\t\t\t\t\t\"Unimplemented binary long operator\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [2, 25], [3, 26], [7, 27], [8, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [14, 34], [15, 35], [16, 36], [17, 37], [18, 38], [19, 39], [20, 40], [21, 41], [22, 42], [23, 43], [24, 44], [27, 45], [28, 46], [29, 47], [30, 48], [31, 49], [32, 50], [33, 51], [34, 52], [35, 53], [36, 54], [37, 55], [38, 56], [39, 57], [40, 58], [41, 59], [42, 60], [43, 61], [44, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 2], [26, 3], [27, 7], [28, 8], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 14], [35, 15], [36, 16], [37, 17], [38, 18], [39, 19], [40, 20], [41, 21], [42, 22], [43, 23], [44, 24], [45, 27], [46, 28], [47, 29], [48, 30], [49, 31], [50, 32], [51, 33], [52, 34], [53, 35], [54, 36], [55, 37], [56, 38], [57, 39], [58, 40], [59, 41], [60, 42], [61, 43], [62, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "intBinaryOperation", "code": "    static Object intBinaryOperation(Integer I1, Integer I2, int kind)\n    {\n        int lhs = I1.intValue();\n        int rhs = I2.intValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Integer(lhs + rhs);\n\n            case MINUS:\n                return new Integer(lhs - rhs);\n\n            case STAR:\n                return new Integer(lhs * rhs);\n\n            case SLASH:\n                return new Integer(lhs / rhs);\n\n            case MOD:\n                return new Integer(lhs % rhs);\n\n            // bitwise\n            case LSHIFT:\n            case LSHIFTX:\n                return new Integer(lhs << rhs);\n\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n                return new Integer(lhs >> rhs);\n\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                return new Integer(lhs >>> rhs);\n\n            case BIT_AND:\n            case BIT_ANDX:\n                return new Integer(lhs & rhs);\n\n            case BIT_OR:\n            case BIT_ORX:\n                return new Integer(lhs | rhs);\n\n            case XOR:\n                return new Integer(lhs ^ rhs);\n\n            default:\n                throw new InterpreterError(\n\t\t\t\t\t\"Unimplemented binary integer operator\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [2, 25], [3, 26], [7, 27], [8, 28], [9, 29], [10, 30], [11, 31], [12, 32], [13, 33], [14, 34], [15, 35], [16, 36], [17, 37], [18, 38], [19, 39], [20, 40], [21, 41], [22, 42], [23, 43], [24, 44], [27, 45], [28, 46], [29, 47], [30, 48], [31, 49], [32, 50], [33, 51], [34, 52], [35, 53], [36, 54], [37, 55], [38, 56], [39, 57], [40, 58], [41, 59], [42, 60], [43, 61], [44, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 2], [26, 3], [27, 7], [28, 8], [29, 9], [30, 10], [31, 11], [32, 12], [33, 13], [34, 14], [35, 15], [36, 16], [37, 17], [38, 18], [39, 19], [40, 20], [41, 21], [42, 22], [43, 23], [44, 24], [45, 27], [46, 28], [47, 29], [48, 30], [49, 31], [50, 32], [51, 33], [52, 34], [53, 35], [54, 36], [55, 37], [56, 38], [57, 39], [58, 40], [59, 41], [60, 42], [61, 43], [62, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "doubleBinaryOperation", "code": "    static Object doubleBinaryOperation(Double D1, Double D2, int kind)\n        throws UtilEvalError\n    {\n        double lhs = D1.doubleValue();\n        double rhs = D2.doubleValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Double(lhs + rhs);\n\n            case MINUS:\n                return new Double(lhs - rhs);\n\n            case STAR:\n                return new Double(lhs * rhs);\n\n            case SLASH:\n                return new Double(lhs / rhs);\n\n            case MOD:\n                return new Double(lhs % rhs);\n\n            // can't shift floating-point values\n            case LSHIFT:\n            case LSHIFTX:\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                throw new UtilEvalError(\"Can't shift doubles\");\n\n            default:\n                throw new InterpreterError(\n\t\t\t\t\t\"Unimplemented binary double operator\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [2, 20], [3, 21], [7, 22], [8, 23], [9, 24], [10, 25], [11, 26], [12, 27], [13, 28], [14, 29], [15, 30], [16, 31], [17, 32], [18, 33], [19, 34], [22, 35], [23, 36], [24, 37], [25, 38], [26, 39], [27, 40], [28, 41], [29, 42], [30, 43], [31, 44], [32, 45], [33, 46], [34, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 2], [21, 3], [22, 7], [23, 8], [24, 9], [25, 10], [26, 11], [27, 12], [28, 13], [29, 14], [30, 15], [31, 16], [32, 17], [33, 18], [34, 19], [35, 22], [36, 23], [37, 24], [38, 25], [39, 26], [40, 27], [41, 28], [42, 29], [43, 30], [44, 31], [45, 32], [46, 33], [47, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "floatBinaryOperation", "code": "    static Object floatBinaryOperation(Float F1, Float F2, int kind)\n        throws UtilEvalError\n    {\n        float lhs = F1.floatValue();\n        float rhs = F2.floatValue();\n\n        switch(kind)\n        {\n            // boolean\n            case LT:\n            case LTX:\n                return new Boolean(lhs < rhs);\n\n            case GT:\n            case GTX:\n                return new Boolean(lhs > rhs);\n\n            case EQ:\n                return new Boolean(lhs == rhs);\n\n            case LE:\n            case LEX:\n                return new Boolean(lhs <= rhs);\n\n            case GE:\n            case GEX:\n                return new Boolean(lhs >= rhs);\n\n            case NE:\n                return new Boolean(lhs != rhs);\n\n            // arithmetic\n            case PLUS:\n                return new Float(lhs + rhs);\n\n            case MINUS:\n                return new Float(lhs - rhs);\n\n            case STAR:\n                return new Float(lhs * rhs);\n\n            case SLASH:\n                return new Float(lhs / rhs);\n\n            case MOD:\n                return new Float(lhs % rhs);\n\n            // can't shift floats\n            case LSHIFT:\n            case LSHIFTX:\n            case RSIGNEDSHIFT:\n            case RSIGNEDSHIFTX:\n            case RUNSIGNEDSHIFT:\n            case RUNSIGNEDSHIFTX:\n                throw new UtilEvalError(\"Can't shift floats \");\n\n            default:\n                throw new InterpreterError(\n\t\t\t\t\t\"Unimplemented binary float operator\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [2, 20], [3, 21], [7, 22], [8, 23], [9, 24], [10, 25], [11, 26], [12, 27], [13, 28], [14, 29], [15, 30], [16, 31], [17, 32], [18, 33], [19, 34], [22, 35], [23, 36], [24, 37], [25, 38], [26, 39], [27, 40], [28, 41], [29, 42], [30, 43], [31, 44], [32, 45], [33, 46], [34, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 2], [21, 3], [22, 7], [23, 8], [24, 9], [25, 10], [26, 11], [27, 12], [28, 13], [29, 14], [30, 15], [31, 16], [32, 17], [33, 18], [34, 19], [35, 22], [36, 23], [37, 24], [38, 25], [39, 26], [40, 27], [41, 28], [42, 29], [43, 30], [44, 31], [45, 32], [46, 33], [47, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "promoteToInteger", "code": "    static Object promoteToInteger(Object wrapper )\n    {\n        if(wrapper instanceof Character)\n            return new Integer(((Character)wrapper).charValue());\n        else if((wrapper instanceof Byte) || (wrapper instanceof Short))\n            return new Integer(((Number)wrapper).intValue());\n\n        return wrapper;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [4, 8], [5, 9], [7, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 4], [9, 5], [10, 7], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "promotePrimitives", "code": "    static Object[] promotePrimitives(Object lhs, Object rhs)\n    {\n        lhs = promoteToInteger(lhs);\n        rhs = promoteToInteger(rhs);\n\n        if((lhs instanceof Number) && (rhs instanceof Number))\n        {\n            Number lnum = (Number)lhs;\n            Number rnum = (Number)rhs;\n\n            boolean b;\n\n            if((b = (lnum instanceof Double)) || (rnum instanceof Double))\n            {\n                if(b)\n                    rhs = new Double(rnum.doubleValue());\n                else\n                    lhs = new Double(lnum.doubleValue());\n            }\n            else if((b = (lnum instanceof Float)) || (rnum instanceof Float))\n            {\n                if(b)\n                    rhs = new Float(rnum.floatValue());\n                else\n                    lhs = new Float(lnum.floatValue());\n            }\n            else if((b = (lnum instanceof Long)) || (rnum instanceof Long))\n            {\n                if(b)\n                    rhs = new Long(rnum.longValue());\n                else\n                    lhs = new Long(lnum.longValue());\n            }\n        }\n\n        return new Object[] { lhs, rhs };", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [5, 12], [5, 13], [6, 14], [7, 15], [8, 16], [8, 17], [16, 18], [16, 19], [8, 20], [17, 21], [17, 22], [18, 23], [16, 24], [19, 25], [19, 26], [22, 27], [18, 28], [23, 29], [23, 30], [26, 31], [20, 32], [20, 33], [30, 34], [24, 35], [24, 36], [32, 37], [33, 38], [28, 39], [28, 40], [35, 41], [36, 42], [37, 43], [38, 44], [39, 45], [40, 46], [41, 47], [42, 48], [45, 49], [46, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 5], [13, 5], [14, 6], [15, 7], [16, 8], [17, 8], [18, 16], [19, 16], [20, 8], [21, 17], [22, 17], [23, 18], [24, 16], [25, 19], [26, 19], [27, 22], [28, 18], [29, 23], [30, 23], [31, 26], [32, 20], [33, 20], [34, 30], [35, 24], [36, 24], [37, 32], [38, 33], [39, 28], [40, 28], [41, 35], [42, 36], [43, 37], [44, 38], [45, 39], [46, 40], [47, 41], [48, 42], [49, 45], [50, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "unaryOperation", "code": "    public static Primitive unaryOperation(Primitive val, int kind)\n        throws UtilEvalError\n    {\n        if (val == NULL)\n            throw new UtilEvalError(\n\t\t\t\t\"illegal use of null object or 'null' literal\");\n        if (val == VOID)\n            throw new UtilEvalError(\n\t\t\t\t\"illegal use of undefined object or 'void' literal\");\n\n        Class operandType = val.getType();\n        Object operand = promoteToInteger(val.getValue());\n\n        if ( operand instanceof Boolean )\n            return new Primitive(booleanUnaryOperation((Boolean)operand, kind));\n        else if(operand instanceof Integer)\n        {\n            int result = intUnaryOperation((Integer)operand, kind);\n\n            // ++ and -- must be cast back the original type\n            if(kind == INCR || kind == DECR)\n            {\n                if(operandType == Byte.TYPE)\n                    return new Primitive((byte)result);\n                if(operandType == Short.TYPE)\n                    return new Primitive((short)result);\n                if(operandType == Character.TYPE)\n                    return new Primitive((char)result);\n            }\n\n            return new Primitive(result);\n        }\n        else if(operand instanceof Long)\n            return new Primitive(longUnaryOperation((Long)operand, kind));\n        else if(operand instanceof Float)\n            return new Primitive(floatUnaryOperation((Float)operand, kind));\n        else if(operand instanceof Double)\n            return new Primitive(doubleUnaryOperation((Double)operand, kind));\n        else\n            throw new InterpreterError(\n\t\t\t\t\"An error occurred.  Please call technical support.\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "RETURN", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "CALL", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [4, 11], [4, 12], [5, 13], [5, 14], [8, 15], [8, 16], [9, 17], [2, 18], [3, 19], [11, 20], [13, 21], [15, 22], [15, 23], [15, 24], [8, 25], [8, 26], [8, 27], [17, 28], [18, 29], [20, 30], [21, 31], [22, 32], [22, 33], [22, 34], [23, 35], [25, 36], [26, 37], [32, 38], [32, 39], [32, 40], [33, 41], [35, 42], [26, 43], [26, 44], [26, 45], [37, 46], [37, 47], [27, 48], [38, 49], [39, 50], [41, 51], [43, 52], [43, 53], [44, 54], [44, 55], [45, 56], [45, 57], [49, 58], [50, 59], [52, 60], [54, 61], [56, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 4], [12, 4], [13, 5], [14, 5], [15, 8], [16, 8], [17, 9], [18, 2], [19, 3], [20, 11], [21, 13], [22, 15], [23, 15], [24, 15], [25, 8], [26, 8], [27, 8], [28, 17], [29, 18], [30, 20], [31, 21], [32, 22], [33, 22], [34, 22], [35, 23], [36, 25], [37, 26], [38, 32], [39, 32], [40, 32], [41, 33], [42, 35], [43, 26], [44, 26], [45, 26], [46, 37], [47, 37], [48, 27], [49, 38], [50, 39], [51, 41], [52, 43], [53, 43], [54, 44], [55, 44], [56, 45], [57, 45], [58, 49], [59, 50], [60, 52], [61, 54], [62, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "booleanUnaryOperation", "code": "    static boolean booleanUnaryOperation(Boolean B, int kind) \n\t\tthrows UtilEvalError\n    {\n        boolean operand = B.booleanValue();\n        switch(kind)\n        {\n            case BANG:\n                return !operand;\n            default:\n                throw new UtilEvalError(\"Operator inappropriate for boolean\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "intUnaryOperation", "code": "    static int intUnaryOperation(Integer I, int kind)\n    {\n        int operand = I.intValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n            case MINUS:\n                return -operand;\n            case TILDE:\n                return ~operand;\n            case INCR:\n                return operand + 1;\n            case DECR:\n                return operand - 1;\n            default:\n                throw new InterpreterError(\"bad integer unaryOperation\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [12, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 12], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "longUnaryOperation", "code": "    static long longUnaryOperation(Long L, int kind)\n    {\n        long operand = L.longValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n            case MINUS:\n                return -operand;\n            case TILDE:\n                return ~operand;\n            case INCR:\n                return operand + 1;\n            case DECR:\n                return operand - 1;\n            default:\n                throw new InterpreterError(\"bad long unaryOperation\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [6, 13], [7, 14], [12, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 6], [14, 7], [15, 12], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "floatUnaryOperation", "code": "    static float floatUnaryOperation(Float F, int kind)\n    {\n        float operand = F.floatValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n            case MINUS:\n                return -operand;\n            default:\n                throw new InterpreterError(\"bad float unaryOperation\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [5, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "doubleUnaryOperation", "code": "    static double doubleUnaryOperation(Double D, int kind)\n    {\n        double operand = D.doubleValue();\n\n        switch(kind)\n        {\n            case PLUS:\n                return operand;\n            case MINUS:\n                return -operand;\n            default:\n                throw new InterpreterError(\"bad double unaryOperation\");", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "RETURN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [5, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "intValue", "code": "    public int intValue() throws UtilEvalError\n    {\n        if(value instanceof Number)\n            return((Number)value).intValue();\n        else\n            throw new UtilEvalError(\"Primitive not a number\");", "ast_nodes": ["FUNC_DECL", "IF", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "booleanValue", "code": "    public boolean booleanValue() throws UtilEvalError\n    {\n        if(value instanceof Boolean)\n            return((Boolean)value).booleanValue();\n        else\n            throw new UtilEvalError(\"Primitive not a boolean\");", "ast_nodes": ["FUNC_DECL", "IF", "THROW_RAISE", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "isNumber", "code": "\tpublic boolean isNumber() {\n\t\treturn ( !(value instanceof Boolean) \n\t\t\t&& !(this == NULL) && !(this == VOID) );", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "numberValue", "code": "    public Number numberValue() throws UtilEvalError\n    {\n\t\tObject value = this.value;\n\n\t\t// Promote character to Number type for these purposes\n\t\tif (value instanceof Character)\n\t\t\tvalue = new Integer(((Character)value).charValue());\n\n        if (value instanceof Number)\n            return (Number)value;\n        else\n            throw new UtilEvalError(\"Primitive not a number\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "THROW_RAISE", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [4, 8], [2, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 4], [9, 2], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "equals", "code": "\tpublic boolean equals( Object obj ) \n\t{\n\t\tif ( obj instanceof Primitive )\n\t\t\treturn ((Primitive)obj).value.equals( this.value );\n\t\telse\n\t\t\treturn false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "hashCode", "code": "\tpublic int hashCode() \n\t{\n\t\treturn this.value.hashCode() * 21; // arbitrary", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "unwrap", "code": "\tpublic static Object unwrap( Object obj ) \n\t{\n        // map voids to nulls for the outside world\n        if (obj == Primitive.VOID)\n            return null;\n\n        // unwrap primitives\n        if (obj instanceof Primitive)\n            return((Primitive)obj).getValue();\n        else\n            return obj;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "unwrap", "code": "    public static Object [] unwrap( Object[] args )\n    {\n\t\tObject [] oa = new Object[ args.length ];\n        for(int i=0; i<args.length; i++)\n            oa[i] = unwrap( args[i] );\n\t\treturn oa;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [6, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 6], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "wrap", "code": "    public static Object [] wrap( Object[] args, Class [] paramTypes )\n    {\n\t\tif ( args == null )\n\t\t\treturn null;\n\n\t\tObject [] oa = new Object[ args.length ];\n        for(int i=0; i<args.length; i++)\n            oa[i] = wrap( args[i], paramTypes[i] );\n\t\treturn oa;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [4, 9], [2, 10], [8, 11], [9, 12], [10, 13], [2, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 4], [10, 2], [11, 8], [12, 9], [13, 10], [14, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "wrap", "code": "    public static Object wrap(\n\t\tObject value, Class type )\n    {\n        if ( type == Void.TYPE )\n            return Primitive.VOID;\n\n        if ( value == null )\n            return Primitive.NULL;\n\n\t\tif ( type.isPrimitive() )\n\t\t\treturn new Primitive( value );\n\n\t\treturn value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "PARAM", "PARAM", "RETURN", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [3, 10], [4, 11], [4, 12], [7, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 3], [11, 4], [12, 4], [13, 7], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getDefaultValue", "code": "\tpublic static Primitive getDefaultValue( Class type )\n\t{\n\t\tif ( type == null || !type.isPrimitive() )\n\t\t\treturn Primitive.NULL;\n\t\tif ( type == Boolean.TYPE )\n\t\t\treturn new Primitive( false );\n\n\t\t// non boolean primitive, get appropriate flavor of zero\n\t\ttry {\n\t\t\treturn new Primitive((int)0).castToType( type, Types.CAST );\n\t\t} catch ( UtilEvalError e ) {\n\t\t\tthrow new InterpreterError( \"bad cast\" );", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "PARAM", "CATCH", "RETURN", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [3, 9], [3, 10], [5, 11], [6, 12], [7, 13], [10, 14], [10, 15], [11, 16], [12, 17], [13, 18], [15, 19], [16, 20], [12, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 3], [10, 3], [11, 5], [12, 6], [13, 7], [14, 10], [15, 10], [16, 11], [17, 12], [18, 13], [19, 15], [20, 16], [21, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "boxType", "code": "\tpublic static Class boxType( Class primitiveType )\n\t{\n\t\tClass c = (Class)wrapperMap.get( primitiveType );\n\t\tif ( c != null )\n\t\t\treturn c;\n\t\tthrow new InterpreterError( \n\t\t\t\"Not a primitive type: \"+ primitiveType );", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [5, 8], [7, 9], [8, 10], [3, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 5], [9, 7], [10, 8], [11, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "unboxType", "code": "\tpublic static Class unboxType( Class wrapperType )\n\t{\n\t\tClass c = (Class)wrapperMap.get( wrapperType );\n\t\tif ( c != null )\n\t\t\treturn c;\n\t\tthrow new InterpreterError( \n\t\t\t\"Not a primitive wrapper type: \"+wrapperType );", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [5, 8], [7, 9], [8, 10], [3, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 5], [9, 7], [10, 8], [11, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "castToType", "code": "\tpublic Primitive castToType( Class toType, int operation ) \n\t\tthrows UtilEvalError\n\t{\n\t\treturn castPrimitive( \n\t\t\ttoType, getType()/*fromType*/, this/*fromValue*/, \n\t\t\tfalse/*checkOnly*/, operation );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "castPrimitive", "code": "\tstatic Primitive castPrimitive( \n\t\tClass toType, Class fromType, Primitive fromValue, \n\t\tboolean checkOnly, int operation ) \n\t\tthrows UtilEvalError\n\t{\n\t\t/*\n\t\t\tLots of preconditions checked here...\n\t\t\tOnce things are running smoothly we might comment these out\n\t\t\t(That's what assertions are for).\n\t\t*/\n\t\tif ( checkOnly && fromValue != null )\n\t\t\tthrow new InterpreterError(\"bad cast param 1\");\n\t\tif ( !checkOnly && fromValue == null )\n\t\t\tthrow new InterpreterError(\"bad cast param 2\");\n\t\tif ( fromType != null && !fromType.isPrimitive() )\n\t\t\tthrow new InterpreterError(\"bad fromType:\" +fromType);\n\t\tif ( fromValue == Primitive.NULL && fromType != null )\n\t\t\tthrow new InterpreterError(\"inconsistent args 1\");\n\t\tif ( fromValue == Primitive.VOID && fromType != Void.TYPE )\n\t\t\tthrow new InterpreterError(\"inconsistent args 2\");\n\n\t\t// can't cast void to anything\n\t\tif ( fromType == Void.TYPE )\n\t\t\tif ( checkOnly )\n\t\t\t\treturn Types.INVALID_CAST;\n\t\t\telse\n\t\t\t\tthrow Types.castError( Reflect.normalizeClassName(toType), \n\t\t\t\t\t\"void value\", operation );\n\n\t\t// unwrap Primitive fromValue to its wrapper value, etc.\n\t\tObject value = null; \n\t\tif ( fromValue != null )\n\t\t\tvalue = fromValue.getValue();\n\n\t\tif ( toType.isPrimitive() )\n\t\t{\n\t\t\t// Trying to cast null to primitive type?\n\t\t\tif ( fromType == null )\n\t\t\t\tif ( checkOnly )\n\t\t\t\t\treturn Types.INVALID_CAST;\n\t\t\t\telse\n\t\t\t\t\tthrow Types.castError(\n\t\t\t\t\t\t\"primitive type:\" + toType, \"Null value\", operation );\n\n\t\t\t// fall through\n\t\t} else\n\t\t{\n\t\t\t// Trying to cast primitive to an object type\n\t\t\t// Primitive.NULL can be cast to any object type\n\t\t\tif ( fromType == null )\n\t\t\t\treturn checkOnly ? Types.VALID_CAST : \n\t\t\t\t\tPrimitive.NULL;\n\n\t\t\tif ( checkOnly )\n\t\t\t\treturn Types.INVALID_CAST;\n\t\t\telse\n\t\t\t\tthrow Types.castError(\n\t\t\t\t\t\t\"object type:\" + toType, \"primitive value\", operation);\n\t\t}\n\n\t\t// can only cast boolean to boolean\n\t\tif ( fromType == Boolean.TYPE )\n\t\t{\n\t\t\tif ( toType != Boolean.TYPE )\n\t\t\t\tif ( checkOnly )\n\t\t\t\t\treturn Types.INVALID_CAST;\n\t\t\t\telse\n\t\t\t\t\tthrow Types.castError( toType, fromType, operation );\n\n\t\t\treturn checkOnly ? Types.VALID_CAST :\n\t\t\t\tfromValue;\n\t\t}\n\n\t\t// Do numeric cast\n\n\t\t// Only allow legal Java assignment unless we're a CAST operation\n\t\tif ( operation == Types.ASSIGNMENT \n\t\t\t&& !Types.isJavaAssignable( toType, fromType ) \n\t\t) {\n\t\t\tif ( checkOnly )\n\t\t\t\treturn Types.INVALID_CAST;\n\t\t\telse\n\t\t\t\tthrow Types.castError( toType, fromType, operation );\n\t\t}\n\n\t\treturn checkOnly ? Types.VALID_CAST :\n\t\t\tnew Primitive( castWrapper(toType, value) );", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "RETURN", "IF", "IF", "IF", "IF", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "THROW_RAISE", "RETURN", "COND_EXPR", "IF", "BINARY_OP", "THROW_RAISE", "RETURN", "RETURN", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "RETURN", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "THROW_RAISE", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [2, 19], [3, 20], [4, 21], [5, 22], [7, 23], [7, 24], [8, 25], [8, 26], [9, 27], [9, 28], [10, 29], [10, 30], [11, 31], [11, 32], [12, 33], [12, 34], [18, 35], [2, 36], [19, 37], [19, 38], [3, 39], [3, 40], [4, 41], [4, 42], [4, 43], [5, 44], [22, 45], [6, 46], [23, 47], [23, 48], [25, 49], [26, 50], [26, 51], [27, 52], [28, 53], [28, 54], [29, 55], [30, 56], [30, 57], [31, 58], [32, 59], [33, 60], [34, 61], [35, 62], [36, 63], [36, 64], [39, 65], [40, 66], [40, 67], [41, 68], [41, 69], [42, 70], [42, 71], [43, 72], [43, 73], [44, 74], [47, 75], [49, 76], [52, 77], [53, 78], [55, 79], [57, 80], [58, 81], [59, 82], [60, 83], [61, 84], [63, 85], [66, 86], [66, 87], [68, 88], [70, 89], [71, 90], [72, 91], [72, 92], [73, 93], [75, 94], [75, 95], [79, 96], [86, 97], [88, 98], [88, 99], [91, 100], [99, 101], [100, 102], [100, 103], [103, 104], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 2], [20, 3], [21, 4], [22, 5], [23, 7], [24, 7], [25, 8], [26, 8], [27, 9], [28, 9], [29, 10], [30, 10], [31, 11], [32, 11], [33, 12], [34, 12], [35, 18], [36, 2], [37, 19], [38, 19], [39, 3], [40, 3], [41, 4], [42, 4], [43, 4], [44, 5], [45, 22], [46, 6], [47, 23], [48, 23], [49, 25], [50, 26], [51, 26], [52, 27], [53, 28], [54, 28], [55, 29], [56, 30], [57, 30], [58, 31], [59, 32], [60, 33], [61, 34], [62, 35], [63, 36], [64, 36], [65, 39], [66, 40], [67, 40], [68, 41], [69, 41], [70, 42], [71, 42], [72, 43], [73, 43], [74, 44], [75, 47], [76, 49], [77, 52], [78, 53], [79, 55], [80, 57], [81, 58], [82, 59], [83, 60], [84, 61], [85, 63], [86, 66], [87, 66], [88, 68], [89, 70], [90, 71], [91, 72], [92, 72], [93, 73], [94, 75], [95, 75], [96, 79], [97, 86], [98, 88], [99, 88], [100, 91], [101, 99], [102, 100], [103, 100], [104, 103], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104]]}, {"function_name": "isWrapperType", "code": "\tpublic static boolean isWrapperType( Class type )\n\t{\n\t\treturn wrapperMap.get( type ) != null && !type.isPrimitive();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "castWrapper", "code": "\tstatic Object castWrapper( \n\t\tClass toType, Object value ) \n\t{\n\t\tif ( !toType.isPrimitive() )\n\t\t\tthrow new InterpreterError(\"invalid type in castWrapper: \"+toType);\n\t\tif ( value == null )\n\t\t\tthrow new InterpreterError(\"null value in castWrapper, guard\");\n\t\tif ( value instanceof Boolean )\n\t\t{\n\t\t\tif ( toType != Boolean.TYPE )\n\t\t\t\tthrow new InterpreterError(\"bad wrapper cast of boolean\");\n\t\t\telse\n\t\t\t\treturn value;\n\t\t}\n\n\t\t// first promote char to Number type to avoid duplicating code\n\t\tif ( value instanceof Character )\n\t\t\tvalue = new Integer(((Character)value).charValue());\n\n\t\tif ( !(value instanceof Number) )\n\t\t\tthrow new InterpreterError(\"bad type in cast\");\n\n\t\tNumber number = (Number)value;\n\n\t\tif (toType == Byte.TYPE)\n\t\t\treturn new Byte(number.byteValue());\n\t\tif (toType == Short.TYPE)\n\t\t\treturn new Short(number.shortValue());\n\t\tif (toType == Character.TYPE)\n\t\t\treturn new Character((char)number.intValue());\n\t\tif (toType == Integer.TYPE)\n\t\t\treturn new Integer(number.intValue());\n\t\tif (toType == Long.TYPE)\n\t\t\treturn new Long(number.longValue());\n\t\tif (toType == Float.TYPE)\n\t\t\treturn new Float(number.floatValue());\n\t\tif (toType == Double.TYPE)\n\t\t\treturn new Double(number.doubleValue());\n\n\t\tthrow new InterpreterError(\"error in wrapper cast\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [2, 18], [2, 19], [3, 20], [3, 21], [4, 22], [4, 23], [5, 24], [5, 25], [6, 26], [6, 27], [7, 28], [7, 29], [8, 30], [8, 31], [10, 32], [10, 33], [11, 34], [12, 35], [13, 36], [13, 37], [14, 38], [14, 39], [17, 40], [18, 41], [20, 42], [22, 43], [24, 44], [26, 45], [28, 46], [30, 47], [32, 48], [11, 49], [12, 50], [36, 51], [37, 52], [38, 53], [41, 54], [42, 55], [43, 56], [44, 57], [46, 58], [47, 59], [48, 60], [49, 61], [50, 62], [50, 63], [50, 64], [51, 65], [53, 66], [45, 67], [63, 68], [66, 69], [68, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 2], [19, 2], [20, 3], [21, 3], [22, 4], [23, 4], [24, 5], [25, 5], [26, 6], [27, 6], [28, 7], [29, 7], [30, 8], [31, 8], [32, 10], [33, 10], [34, 11], [35, 12], [36, 13], [37, 13], [38, 14], [39, 14], [40, 17], [41, 18], [42, 20], [43, 22], [44, 24], [45, 26], [46, 28], [47, 30], [48, 32], [49, 11], [50, 12], [51, 36], [52, 37], [53, 38], [54, 41], [55, 42], [56, 43], [57, 44], [58, 46], [59, 47], [60, 48], [61, 49], [62, 50], [63, 50], [64, 50], [65, 51], [66, 53], [67, 45], [68, 63], [69, 66], [70, 68], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "Primitive", "code": "    public Primitive( Object value )\n    {\n        if ( value == null )\n            throw new InterpreterError(\n\t\t\t\t\"Use Primitve.NULL instead of Primitive(null)\");\n\n\t\tif ( value != Special.NULL_VALUE \n\t\t\t&& value != Special.VOID_TYPE &&\n\t\t\t!isWrapperType( value.getClass() ) \n\t\t)\n            throw new InterpreterError( \"Not a wrapper type: \"+value);\n\n        this.value = value;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [5, 9], [6, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [11, 17], [12, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 5], [10, 6], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 11], [18, 12], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "Primitive", "code": "    public Primitive(boolean value) { this(new Boolean(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(byte value) { this(new Byte(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(short value) { this(new Short(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(char value) { this(new Character(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(int value) { this(new Integer(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(long value) { this(new Long(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(float value) { this(new Float(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Primitive", "code": "    public Primitive(double value) { this(new Double(value)); }", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.5-6996", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/objects/XStringForFSB.java", "language": "java", "name": "org.apache.xpath.objects.XStringForFSB", "code": "public class XStringForFSB extends XString\n{\n\n  /** The start position in the fsb. */\n  int m_start;\n\n  /** The length of the string. */\n  int m_length;\n\n  /** If the str() function is called, the string will be cached here. */\n  protected String m_strCache = null;\n\n  /** cached hash code */\n  protected int m_hash = 0;\n\n  /**\n   * Construct a XNodeSet object.\n   *\n   * @param val FastStringBuffer object this will wrap, must be non-null.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   */\n  public XStringForFSB(FastStringBuffer val, int start, int length)\n  {\n\n    super(val);\n\n    m_start = start;\n    m_length = length;\n\n    if (null == val)\n      throw new IllegalArgumentException(\n        XSLMessages.createXPATHMessage(XPATHErrorResources.ER_FASTSTRINGBUFFER_CANNOT_BE_NULL, null));\n  }\n\n  /**\n   * Construct a XNodeSet object.\n   *\n   * @param val String object this will wrap.\n   */\n  private XStringForFSB(String val)\n  {\n\n    super(val);\n\n    throw new IllegalArgumentException();\n  }\n\n  /**\n   * Cast result object to a string.\n   *\n   * @return The string this wraps or the empty string if null\n   */\n  public FastStringBuffer fsb()\n  {\n    return ((FastStringBuffer) m_obj);\n  }\n  \n  /**\n   * Cast result object to a string.\n   *\n   * @return The string this wraps or the empty string if null\n   */\n  public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)\n  {\n    fsb.append(str());\n  }\n\n  /**\n   * Tell if this object contains a java String object.\n   *\n   * @return true if this XMLString can return a string without creating one.\n   */\n  public boolean hasString()\n  {\n    return (null != m_strCache);\n  }\n\n\n  /**\n   * Since this object is incomplete without the length and the offset, we \n   * have to convert to a string when this function is called.\n   *\n   * @return The java String representation of this object.\n   */\n  public Object object()\n  {\n    return str();\n  }\n\n  /**\n   * Cast result object to a string.\n   *\n   * @return The string this wraps or the empty string if null\n   */\n  public String str()\n  {\n\n    if (null == m_strCache)\n    {\n      m_strCache = fsb().getString(m_start, m_length);\n\n\n    }\n\n    return m_strCache;\n  }\n\n  /**\n   * Directly call the\n   * characters method on the passed ContentHandler for the\n   * string-value. Multiple calls to the\n   * ContentHandler's characters methods may well occur for a single call to\n   * this method.\n   *\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n    fsb().sendSAXcharacters(ch, m_start, m_length);\n  }\n\n  /**\n   * Directly call the\n   * comment method on the passed LexicalHandler for the\n   * string-value.\n   *\n   * @param lh A non-null reference to a LexicalHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchAsComment(org.xml.sax.ext.LexicalHandler lh)\n          throws org.xml.sax.SAXException\n  {\n    fsb().sendSAXComment(lh, m_start, m_length);\n  }\n\n  /**\n   * Returns the length of this string.\n   *\n   * @return  the length of the sequence of characters represented by this\n   *          object.\n   */\n  public int length()\n  {\n    return m_length;\n  }\n\n  /**\n   * Returns the character at the specified index. An index ranges\n   * from <code>0</code> to <code>length() - 1</code>. The first character\n   * of the sequence is at index <code>0</code>, the next at index\n   * <code>1</code>, and so on, as for array indexing.\n   *\n   * @param      index   the index of the character.\n   * @return     the character at the specified index of this string.\n   *             The first character is at index <code>0</code>.\n   * @exception  IndexOutOfBoundsException  if the <code>index</code>\n   *             argument is negative or not less than the length of this\n   *             string.\n   */\n  public char charAt(int index)\n  {\n    return fsb().charAt(m_start + index);\n  }\n\n  /**\n   * Copies characters from this string into the destination character\n   * array.\n   *\n   * @param      srcBegin   index of the first character in the string\n   *                        to copy.\n   * @param      srcEnd     index after the last character in the string\n   *                        to copy.\n   * @param      dst        the destination array.\n   * @param      dstBegin   the start offset in the destination array.\n   * @exception IndexOutOfBoundsException If any of the following\n   *            is true:\n   *            <ul><li><code>srcBegin</code> is negative.\n   *            <li><code>srcBegin</code> is greater than <code>srcEnd</code>\n   *            <li><code>srcEnd</code> is greater than the length of this\n   *                string\n   *            <li><code>dstBegin</code> is negative\n   *            <li><code>dstBegin+(srcEnd-srcBegin)</code> is larger than\n   *                <code>dst.length</code></ul>\n   * @exception NullPointerException if <code>dst</code> is <code>null</code>\n   */\n  public void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin)\n  {\n\n    int n = srcEnd - srcBegin;\n\n    if (n > m_length)\n      n = m_length;\n\n    if (n > (dst.length - dstBegin))\n      n = (dst.length - dstBegin);\n\n    int end = srcBegin + m_start + n;\n    int d = dstBegin;\n    FastStringBuffer fsb = fsb();\n\n    for (int i = srcBegin + m_start; i < end; i++)\n    {\n      dst[d++] = fsb.charAt(i);\n    }\n  }\n\n  /**\n   * Compares this string to the specified object.\n   * The result is <code>true</code> if and only if the argument is not\n   * <code>null</code> and is a <code>String</code> object that represents\n   * the same sequence of characters as this object.\n   *\n   * @param   anObject   the object to compare this <code>String</code>\n   *                     against.\n   *\n   * NEEDSDOC @param obj2\n   * @return  <code>true</code> if the <code>String </code>are equal;\n   *          <code>false</code> otherwise.\n   * @see     java.lang.String#compareTo(java.lang.String)\n   * @see     java.lang.String#equalsIgnoreCase(java.lang.String)\n   */\n  public boolean equals(XMLString obj2)\n  {\n\n    if (this == obj2)\n    {\n      return true;\n    }\n\n    int n = m_length;\n\n    if (n == obj2.length())\n    {\n      FastStringBuffer fsb = fsb();\n      int i = m_start;\n      int j = 0;\n\n      while (n-- != 0)\n      {\n        if (fsb.charAt(i) != obj2.charAt(j))\n        {\n          return false;\n        }\n\n        i++;\n        j++;\n      }\n\n      return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Tell if two objects are functionally equal.\n   *\n   * @param obj2 Object to compare this to\n   *\n   * @return true if the two objects are equal\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean equals(XObject obj2)\n  {\n\n    if (this == obj2)\n    {\n      return true;\n    }\n    if(obj2.getType() == XObject.CLASS_NUMBER)\n    \treturn obj2.equals(this);\n\n    String str = obj2.str();\n    int n = m_length;\n\n    if (n == str.length())\n    {\n      FastStringBuffer fsb = fsb();\n      int i = m_start;\n      int j = 0;\n\n      while (n-- != 0)\n      {\n        if (fsb.charAt(i) != str.charAt(j))\n        {\n          return false;\n        }\n\n        i++;\n        j++;\n      }\n\n      return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Tell if two objects are functionally equal.\n   *\n   * @param obj2 Object to compare this to\n   *\n   * NEEDSDOC @param anotherString\n   *\n   * @return true if the two objects are equal\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean equals(String anotherString)\n  {\n\n    int n = m_length;\n\n    if (n == anotherString.length())\n    {\n      FastStringBuffer fsb = fsb();\n      int i = m_start;\n      int j = 0;\n\n      while (n-- != 0)\n      {\n        if (fsb.charAt(i) != anotherString.charAt(j))\n        {\n          return false;\n        }\n\n        i++;\n        j++;\n      }\n\n      return true;\n    }\n\n    return false;\n  }\n\n  /**\n   * Compares this string to the specified object.\n   * The result is <code>true</code> if and only if the argument is not\n   * <code>null</code> and is a <code>String</code> object that represents\n   * the same sequence of characters as this object.\n   *\n   * @param   anObject   the object to compare this <code>String</code>\n   *                     against.\n   *\n   * NEEDSDOC @param obj2\n   * @return  <code>true</code> if the <code>String </code>are equal;\n   *          <code>false</code> otherwise.\n   * @see     java.lang.String#compareTo(java.lang.String)\n   * @see     java.lang.String#equalsIgnoreCase(java.lang.String)\n   */\n  public boolean equals(Object obj2)\n  {\n\n    if (null == obj2)\n      return false;\n      \n    if(obj2 instanceof XNumber)\n    \treturn obj2.equals(this);\n\n    else if (obj2 instanceof XNodeSet)\n      return obj2.equals(this);\n    else if (obj2 instanceof XStringForFSB)\n      return equals((XMLString) this);\n    else\n      return equals(obj2.toString());\n  }\n\n  /**\n   * Compares this <code>String</code> to another <code>String</code>,\n   * ignoring case considerations.  Two strings are considered equal\n   * ignoring case if they are of the same length, and corresponding\n   * characters in the two strings are equal ignoring case.\n   *\n   * @param   anotherString   the <code>String</code> to compare this\n   *                          <code>String</code> against.\n   * @return  <code>true</code> if the argument is not <code>null</code>\n   *          and the <code>String</code>s are equal,\n   *          ignoring case; <code>false</code> otherwise.\n   * @see     #equals(Object)\n   * @see     java.lang.Character#toLowerCase(char)\n   * @see java.lang.Character#toUpperCase(char)\n   */\n  public boolean equalsIgnoreCase(String anotherString)\n  {\n    return (m_length == anotherString.length())\n           ? str().equalsIgnoreCase(anotherString) : false;\n  }\n\n  /**\n   * Compares two strings lexicographically.\n   *\n   * @param   anotherString   the <code>String</code> to be compared.\n   *\n   * NEEDSDOC @param xstr\n   * @return  the value <code>0</code> if the argument string is equal to\n   *          this string; a value less than <code>0</code> if this string\n   *          is lexicographically less than the string argument; and a\n   *          value greater than <code>0</code> if this string is\n   *          lexicographically greater than the string argument.\n   * @exception java.lang.NullPointerException if <code>anotherString</code>\n   *          is <code>null</code>.\n   */\n  public int compareTo(XMLString xstr)\n  {\n\n    int len1 = m_length;\n    int len2 = xstr.length();\n    int n = Math.min(len1, len2);\n    FastStringBuffer fsb = fsb();\n    int i = m_start;\n    int j = 0;\n\n    while (n-- != 0)\n    {\n      char c1 = fsb.charAt(i);\n      char c2 = xstr.charAt(j);\n\n      if (c1 != c2)\n      {\n        return c1 - c2;\n      }\n\n      i++;\n      j++;\n    }\n\n    return len1 - len2;\n  }\n\n  /**\n   * Compares two strings lexicographically, ignoring case considerations.\n   * This method returns an integer whose sign is that of\n   * <code>this.toUpperCase().toLowerCase().compareTo(\n   * str.toUpperCase().toLowerCase())</code>.\n   * <p>\n   * Note that this method does <em>not</em> take locale into account,\n   * and will result in an unsatisfactory ordering for certain locales.\n   * The java.text package provides <em>collators</em> to allow\n   * locale-sensitive ordering.\n   *\n   * @param   str   the <code>String</code> to be compared.\n   *\n   * NEEDSDOC @param xstr\n   * @return  a negative integer, zero, or a positive integer as the\n   *          the specified String is greater than, equal to, or less\n   *          than this String, ignoring case considerations.\n   * @see     java.text.Collator#compare(String, String)\n   * @since   1.2\n   */\n  public int compareToIgnoreCase(XMLString xstr)\n  {\n\n    int len1 = m_length;\n    int len2 = xstr.length();\n    int n = Math.min(len1, len2);\n    FastStringBuffer fsb = fsb();\n    int i = m_start;\n    int j = 0;\n\n    while (n-- != 0)\n    {\n      char c1 = Character.toLowerCase(fsb.charAt(i));\n      char c2 = Character.toLowerCase(xstr.charAt(j));\n\n      if (c1 != c2)\n      {\n        return c1 - c2;\n      }\n\n      i++;\n      j++;\n    }\n\n    return len1 - len2;\n  }\n\n  /**\n   * Returns a hashcode for this string. The hashcode for a\n   * <code>String</code> object is computed as\n   * <blockquote><pre>\n   * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]\n   * </pre></blockquote>\n   * using <code>int</code> arithmetic, where <code>s[i]</code> is the\n   * <i>i</i>th character of the string, <code>n</code> is the length of\n   * the string, and <code>^</code> indicates exponentiation.\n   * (The hash value of the empty string is zero.)\n   *\n   * @return  a hash code value for this object.\n   */\n  public int hashCode()\n  {\n    \n/*\n    int h = m_hash;\n\n    if (h == 0)\n    {\n      int off = m_start;\n      int len = m_length;\n      FastStringBuffer fsb = fsb();\n\n      for (int i = 0; i < len; i++)\n      {\n        h = 31 * h + fsb.charAt(off);\n\n        off++;\n      }\n\n      m_hash = h;\n    }\n    */\n\n  }\n\n  /**\n   * Tests if this string starts with the specified prefix beginning\n   * a specified index.\n   *\n   * @param   prefix    the prefix.\n   * @param   toffset   where to begin looking in the string.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a prefix of the substring of this object starting\n   *          at index <code>toffset</code>; <code>false</code> otherwise.\n   *          The result is <code>false</code> if <code>toffset</code> is\n   *          negative or greater than the length of this\n   *          <code>String</code> object; otherwise the result is the same\n   *          as the result of the expression\n   *          <pre>\n   *          this.subString(toffset).startsWith(prefix)\n   *          </pre>\n   * @exception java.lang.NullPointerException if <code>prefix</code> is\n   *          <code>null</code>.\n   */\n  public boolean startsWith(XMLString prefix, int toffset)\n  {\n\n    FastStringBuffer fsb = fsb();\n    int to = m_start + toffset;\n    int tlim = m_start + m_length;\n    int po = 0;\n    int pc = prefix.length();\n\n    if ((toffset < 0) || (toffset > m_length - pc))\n    {\n      return false;\n    }\n\n    while (--pc >= 0)\n    {\n      if (fsb.charAt(to) != prefix.charAt(po))\n      {\n        return false;\n      }\n\n      to++;\n      po++;\n    }\n\n    return true;\n  }\n\n  /**\n   * Tests if this string starts with the specified prefix.\n   *\n   * @param   prefix   the prefix.\n   * @return  <code>true</code> if the character sequence represented by the\n   *          argument is a prefix of the character sequence represented by\n   *          this string; <code>false</code> otherwise.\n   *          Note also that <code>true</code> will be returned if the\n   *          argument is an empty string or is equal to this\n   *          <code>String</code> object as determined by the\n   *          {@link #equals(Object)} method.\n   * @exception java.lang.NullPointerException if <code>prefix</code> is\n   *          <code>null</code>.\n   * @since   JDK1. 0\n   */\n  public boolean startsWith(XMLString prefix)\n  {\n    return startsWith(prefix, 0);\n  }\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified character. If a character with value <code>ch</code> occurs\n   * in the character sequence represented by this <code>String</code>\n   * object, then the index of the first such occurrence is returned --\n   * that is, the smallest value <i>k</i> such that:\n   * <blockquote><pre>\n   * this.charAt(<i>k</i>) == ch\n   * </pre></blockquote>\n   * is <code>true</code>. If no such character occurs in this string,\n   * then <code>-1</code> is returned.\n   *\n   * @param   ch   a character.\n   * @return  the index of the first occurrence of the character in the\n   *          character sequence represented by this object, or\n   *          <code>-1</code> if the character does not occur.\n   */\n  public int indexOf(int ch)\n  {\n    return indexOf(ch, 0);\n  }\n\n  /**\n   * Returns the index within this string of the first occurrence of the\n   * specified character, starting the search at the specified index.\n   * <p>\n   * If a character with value <code>ch</code> occurs in the character\n   * sequence represented by this <code>String</code> object at an index\n   * no smaller than <code>fromIndex</code>, then the index of the first\n   * such occurrence is returned--that is, the smallest value <i>k</i>\n   * such that:\n   * <blockquote><pre>\n   * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)\n   * </pre></blockquote>\n   * is true. If no such character occurs in this string at or after\n   * position <code>fromIndex</code>, then <code>-1</code> is returned.\n   * <p>\n   * There is no restriction on the value of <code>fromIndex</code>. If it\n   * is negative, it has the same effect as if it were zero: this entire\n   * string may be searched. If it is greater than the length of this\n   * string, it has the same effect as if it were equal to the length of\n   * this string: <code>-1</code> is returned.\n   *\n   * @param   ch          a character.\n   * @param   fromIndex   the index to start the search from.\n   * @return  the index of the first occurrence of the character in the\n   *          character sequence represented by this object that is greater\n   *          than or equal to <code>fromIndex</code>, or <code>-1</code>\n   *          if the character does not occur.\n   */\n  public int indexOf(int ch, int fromIndex)\n  {\n\n    int max = m_start + m_length;\n    FastStringBuffer fsb = fsb();\n\n    if (fromIndex < 0)\n    {\n      fromIndex = 0;\n    }\n    else if (fromIndex >= m_length)\n    {\n\n      return -1;\n    }\n\n    for (int i = m_start + fromIndex; i < max; i++)\n    {\n      if (fsb.charAt(i) == ch)\n      {\n        return i - m_start;\n      }\n    }\n\n    return -1;\n  }\n\n  /**\n   * Returns a new string that is a substring of this string. The\n   * substring begins with the character at the specified index and\n   * extends to the end of this string. <p>\n   * Examples:\n   * <blockquote><pre>\n   * \"unhappy\".substring(2) returns \"happy\"\n   * \"Harbison\".substring(3) returns \"bison\"\n   * \"emptiness\".substring(9) returns \"\" (an empty string)\n   * </pre></blockquote>\n   *\n   * @param      beginIndex   the beginning index, inclusive.\n   * @return     the specified substring.\n   * @exception  IndexOutOfBoundsException  if\n   *             <code>beginIndex</code> is negative or larger than the\n   *             length of this <code>String</code> object.\n   */\n  public XMLString substring(int beginIndex)\n  {\n\n    int len = m_length - beginIndex;\n\n    if (len <= 0)\n      return XString.EMPTYSTRING;\n    else\n    {\n      int start = m_start + beginIndex;\n\n      return new XStringForFSB(fsb(), start, len);\n    }\n  }\n\n  /**\n   * Returns a new string that is a substring of this string. The\n   * substring begins at the specified <code>beginIndex</code> and\n   * extends to the character at index <code>endIndex - 1</code>.\n   * Thus the length of the substring is <code>endIndex-beginIndex</code>.\n   *\n   * @param      beginIndex   the beginning index, inclusive.\n   * @param      endIndex     the ending index, exclusive.\n   * @return     the specified substring.\n   * @exception  IndexOutOfBoundsException  if the\n   *             <code>beginIndex</code> is negative, or\n   *             <code>endIndex</code> is larger than the length of\n   *             this <code>String</code> object, or\n   *             <code>beginIndex</code> is larger than\n   *             <code>endIndex</code>.\n   */\n  public XMLString substring(int beginIndex, int endIndex)\n  {\n\n    int len = endIndex - beginIndex;\n\n    if (len > m_length)\n      len = m_length;\n\n    if (len <= 0)\n      return XString.EMPTYSTRING;\n    else\n    {\n      int start = m_start + beginIndex;\n\n      return new XStringForFSB(fsb(), start, len);\n    }\n  }\n\n  /**\n   * Concatenates the specified string to the end of this string.\n   *\n   * @param   str   the <code>String</code> that is concatenated to the end\n   *                of this <code>String</code>.\n   * @return  a string that represents the concatenation of this object's\n   *          characters followed by the string argument's characters.\n   * @exception java.lang.NullPointerException if <code>str</code> is\n   *          <code>null</code>.\n   */\n  public XMLString concat(String str)\n  {\n\n    return new XString(str().concat(str));\n  }\n\n  /**\n   * Removes white space from both ends of this string.\n   *\n   * @return  this string, with white space removed from the front and end.\n   */\n  public XMLString trim()\n  {\n    return fixWhiteSpace(true, true, false);\n  }\n\n  /**\n   * Returns whether the specified <var>ch</var> conforms to the XML 1.0 definition\n   * the definition of <CODE>S</CODE></A> for details.\n   * @param   ch      Character to check as XML whitespace.\n   * @return          =true if <var>ch</var> is XML whitespace; otherwise =false.\n   */\n  private static boolean isSpace(char ch)\n  {\n  }\n\n  /**\n   * Conditionally trim all leading and trailing whitespace in the specified String.\n   * All strings of white space are\n   * replaced by a single space character (#x20), except spaces after punctuation which\n   * receive double spaces if doublePunctuationSpaces is true.\n   * This function may be useful to a formatter, but to get first class\n   * results, the formatter should probably do it's own white space handling\n   * based on the semantics of the formatting object.\n   *\n   * @param   trimHead    Trim leading whitespace?\n   * @param   trimTail    Trim trailing whitespace?\n   * @param   doublePunctuationSpaces    Use double spaces for punctuation?\n   * @return              The trimmed string.\n   */\n  public XMLString fixWhiteSpace(boolean trimHead, boolean trimTail,\n                                 boolean doublePunctuationSpaces)\n  {\n\n    int end = m_length + m_start;\n    char[] buf = new char[m_length];\n    FastStringBuffer fsb = fsb();\n    boolean edit = false;\n\n    /* replace S to ' '. and ' '+ -> single ' '. */\n    int d = 0;\n    boolean pres = false;\n\n    for (int s = m_start; s < end; s++)\n    {\n      char c = fsb.charAt(s);\n\n      if (isSpace(c))\n      {\n        if (!pres)\n        {\n          if (' ' != c)\n          {\n            edit = true;\n          }\n\n          buf[d++] = ' ';\n\n          if (doublePunctuationSpaces && (d != 0))\n          {\n            char prevChar = buf[d - 1];\n\n            if (!((prevChar == '.') || (prevChar == '!')\n                  || (prevChar == '?')))\n            {\n              pres = true;\n            }\n          }\n          else\n          {\n            pres = true;\n          }\n        }\n        else\n        {\n          edit = true;\n          pres = true;\n        }\n      }\n      else\n      {\n        buf[d++] = c;\n        pres = false;\n      }\n    }\n\n    if (trimTail && 1 <= d && ' ' == buf[d - 1])\n    {\n      edit = true;\n\n      d--;\n    }\n\n    int start = 0;\n\n    if (trimHead && 0 < d && ' ' == buf[0])\n    {\n      edit = true;\n\n      start++;\n    }\n\n    XMLStringFactory xsf = XMLStringFactoryImpl.getFactory();\n\n    return edit ? xsf.newstr(buf, start, d - start) : this;\n  }\n\n  /**\n   * Convert a string to a double -- Allowed input is in fixed\n   * notation ddd.fff.\n   *\n   * %OPT% CHECK PERFORMANCE against generating a Java String and\n   * converting it to double. The advantage of running in native\n   * machine code -- perhaps even microcode, on some systems -- may\n   * more than make up for the cost of allocating and discarding the\n   * additional object. We need to benchmark this. \n   *\n   * %OPT% More importantly, we need to decide whether we _care_ about\n   * the performance of this operation. Does XString.toDouble constitute\n   * any measurable percentage of our typical runtime? I suspect not!\n   *\n   * @return A double value representation of the string, or return Double.NaN \n   * if the string can not be converted.  */\n  public double toDouble()\n  {\n    if(m_length == 0)\n      return Double.NaN;\n    int i;\n    char c;\n    String valueString = fsb().getString(m_start,m_length);\n    \n    \n    for (i=0;i<m_length;i++)\n      if (!XMLCharacterRecognizer.isWhiteSpace(valueString.charAt(i)))\n        break;\n    if (valueString.charAt(i) == '-')\n      i++;\n    for (;i<m_length;i++) {\n      c = valueString.charAt(i);\n      if (c != '.' && (c < '0' || c > '9'))\n        break;\n    }   \t    \t\n    for (;i<m_length;i++)\n      if (!XMLCharacterRecognizer.isWhiteSpace(valueString.charAt(i)))\n        break;\n    if (i != m_length)\n      return Double.NaN;\n    \t\n    try {\n      return new Double(valueString).doubleValue();\n    } catch (NumberFormatException nfe) {\n      return Double.NaN;", "functions": [{"function_name": "fsb", "code": "  public FastStringBuffer fsb()\n  {\n    return ((FastStringBuffer) m_obj);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "appendToFsb", "code": "  public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)\n  {\n    fsb.append(str());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hasString", "code": "  public boolean hasString()\n  {\n    return (null != m_strCache);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "object", "code": "  public Object object()\n  {\n    return str();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "str", "code": "  public String str()\n  {\n\n    if (null == m_strCache)\n    {\n      m_strCache = fsb().getString(m_start, m_length);\n\n\n    }\n\n    return m_strCache;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "dispatchCharactersEvents", "code": "  public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n    fsb().sendSAXcharacters(ch, m_start, m_length);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispatchAsComment", "code": "  public void dispatchAsComment(org.xml.sax.ext.LexicalHandler lh)\n          throws org.xml.sax.SAXException\n  {\n    fsb().sendSAXComment(lh, m_start, m_length);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "length", "code": "  public int length()\n  {\n    return m_length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "charAt", "code": "  public char charAt(int index)\n  {\n    return fsb().charAt(m_start + index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getChars", "code": "  public void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin)\n  {\n\n    int n = srcEnd - srcBegin;\n\n    if (n > m_length)\n      n = m_length;\n\n    if (n > (dst.length - dstBegin))\n      n = (dst.length - dstBegin);\n\n    int end = srcBegin + m_start + n;\n    int d = dstBegin;\n    FastStringBuffer fsb = fsb();\n\n    for (int i = srcBegin + m_start; i < end; i++)\n    {\n      dst[d++] = fsb.charAt(i);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [5, 13], [6, 14], [2, 15], [4, 16], [5, 17], [13, 18], [6, 19], [7, 20], [1, 21], [1, 22], [16, 23], [17, 24], [21, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 5], [14, 6], [15, 2], [16, 4], [17, 5], [18, 13], [19, 6], [20, 7], [21, 1], [22, 1], [23, 16], [24, 17], [25, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "equals", "code": "  public boolean equals(XMLString obj2)\n  {\n\n    if (this == obj2)\n    {\n      return true;\n    }\n\n    int n = m_length;\n\n    if (n == obj2.length())\n    {\n      FastStringBuffer fsb = fsb();\n      int i = m_start;\n      int j = 0;\n\n      while (n-- != 0)\n      {\n        if (fsb.charAt(i) != obj2.charAt(j))\n        {\n          return false;\n        }\n\n        i++;\n        j++;\n      }\n\n      return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [7, 14], [4, 15], [9, 16], [10, 17], [15, 18], [10, 19], [17, 20], [11, 21], [13, 22], [19, 23], [19, 24], [23, 25], [23, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 7], [15, 4], [16, 9], [17, 10], [18, 15], [19, 10], [20, 17], [21, 11], [22, 13], [23, 19], [24, 19], [25, 23], [26, 23], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "equals", "code": "  public boolean equals(XObject obj2)\n  {\n\n    if (this == obj2)\n    {\n      return true;\n    }\n    if(obj2.getType() == XObject.CLASS_NUMBER)\n    \treturn obj2.equals(this);\n\n    String str = obj2.str();\n    int n = m_length;\n\n    if (n == str.length())\n    {\n      FastStringBuffer fsb = fsb();\n      int i = m_start;\n      int j = 0;\n\n      while (n-- != 0)\n      {\n        if (fsb.charAt(i) != str.charAt(j))\n        {\n          return false;\n        }\n\n        i++;\n        j++;\n      }\n\n      return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [5, 10], [5, 11], [6, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [9, 18], [4, 19], [10, 20], [11, 21], [6, 22], [13, 23], [14, 24], [22, 25], [14, 26], [24, 27], [15, 28], [17, 29], [26, 30], [26, 31], [30, 32], [30, 33], [31, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 5], [11, 5], [12, 6], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 9], [19, 4], [20, 10], [21, 11], [22, 6], [23, 13], [24, 14], [25, 22], [26, 14], [27, 24], [28, 15], [29, 17], [30, 26], [31, 26], [32, 30], [33, 30], [34, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "equals", "code": "  public boolean equals(String anotherString)\n  {\n\n    int n = m_length;\n\n    if (n == anotherString.length())\n    {\n      FastStringBuffer fsb = fsb();\n      int i = m_start;\n      int j = 0;\n\n      while (n-- != 0)\n      {\n        if (fsb.charAt(i) != anotherString.charAt(j))\n        {\n          return false;\n        }\n\n        i++;\n        j++;\n      }\n\n      return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [7, 13], [8, 14], [8, 15], [14, 16], [9, 17], [11, 18], [15, 19], [15, 20], [19, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 7], [14, 8], [15, 8], [16, 14], [17, 9], [18, 11], [19, 15], [20, 15], [21, 19], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "equals", "code": "  public boolean equals(Object obj2)\n  {\n\n    if (null == obj2)\n      return false;\n      \n    if(obj2 instanceof XNumber)\n    \treturn obj2.equals(this);\n\n    else if (obj2 instanceof XNodeSet)\n      return obj2.equals(this);\n    else if (obj2 instanceof XStringForFSB)\n      return equals((XMLString) this);\n    else\n      return equals(obj2.toString());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [4, 9], [4, 10], [4, 11], [5, 12], [7, 13], [8, 14], [9, 15], [9, 16], [9, 17], [10, 18], [15, 19], [16, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 4], [10, 4], [11, 4], [12, 5], [13, 7], [14, 8], [15, 9], [16, 9], [17, 9], [18, 10], [19, 15], [20, 16], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "equalsIgnoreCase", "code": "  public boolean equalsIgnoreCase(String anotherString)\n  {\n    return (m_length == anotherString.length())\n           ? str().equalsIgnoreCase(anotherString) : false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "compareTo", "code": "  public int compareTo(XMLString xstr)\n  {\n\n    int len1 = m_length;\n    int len2 = xstr.length();\n    int n = Math.min(len1, len2);\n    FastStringBuffer fsb = fsb();\n    int i = m_start;\n    int j = 0;\n\n    while (n-- != 0)\n    {\n      char c1 = fsb.charAt(i);\n      char c2 = xstr.charAt(j);\n\n      if (c1 != c2)\n      {\n        return c1 - c2;\n      }\n\n      i++;\n      j++;\n    }\n\n    return len1 - len2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [2, 13], [2, 14], [11, 15], [3, 16], [5, 17], [6, 18], [7, 19], [12, 20], [12, 21], [13, 22], [14, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 2], [14, 2], [15, 11], [16, 3], [17, 5], [18, 6], [19, 7], [20, 12], [21, 12], [22, 13], [23, 14], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "compareToIgnoreCase", "code": "  public int compareToIgnoreCase(XMLString xstr)\n  {\n\n    int len1 = m_length;\n    int len2 = xstr.length();\n    int n = Math.min(len1, len2);\n    FastStringBuffer fsb = fsb();\n    int i = m_start;\n    int j = 0;\n\n    while (n-- != 0)\n    {\n      char c1 = Character.toLowerCase(fsb.charAt(i));\n      char c2 = Character.toLowerCase(xstr.charAt(j));\n\n      if (c1 != c2)\n      {\n        return c1 - c2;\n      }\n\n      i++;\n      j++;\n    }\n\n    return len1 - len2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [2, 13], [2, 14], [11, 15], [3, 16], [5, 17], [6, 18], [7, 19], [12, 20], [12, 21], [13, 22], [14, 23], [21, 24], [22, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 2], [14, 2], [15, 11], [16, 3], [17, 5], [18, 6], [19, 7], [20, 12], [21, 12], [22, 13], [23, 14], [24, 21], [25, 22], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "hashCode", "code": "  public int hashCode()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "startsWith", "code": "  public boolean startsWith(XMLString prefix, int toffset)\n  {\n\n    FastStringBuffer fsb = fsb();\n    int to = m_start + toffset;\n    int tlim = m_start + m_length;\n    int po = 0;\n    int pc = prefix.length();\n\n    if ((toffset < 0) || (toffset > m_length - pc))\n    {\n      return false;\n    }\n\n    while (--pc >= 0)\n    {\n      if (fsb.charAt(to) != prefix.charAt(po))\n      {\n        return false;\n      }\n\n      to++;\n      po++;\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [2, 14], [12, 15], [3, 16], [13, 17], [13, 18], [4, 19], [5, 20], [6, 21], [7, 22], [8, 23], [14, 24], [16, 25], [17, 26], [18, 27], [14, 28], [24, 29], [24, 30], [28, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 2], [15, 12], [16, 3], [17, 13], [18, 13], [19, 4], [20, 5], [21, 6], [22, 7], [23, 8], [24, 14], [25, 16], [26, 17], [27, 18], [28, 14], [29, 24], [30, 24], [31, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "startsWith", "code": "  public boolean startsWith(XMLString prefix)\n  {\n    return startsWith(prefix, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "indexOf", "code": "  public int indexOf(int ch)\n  {\n    return indexOf(ch, 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "indexOf", "code": "  public int indexOf(int ch, int fromIndex)\n  {\n\n    int max = m_start + m_length;\n    FastStringBuffer fsb = fsb();\n\n    if (fromIndex < 0)\n    {\n      fromIndex = 0;\n    }\n    else if (fromIndex >= m_length)\n    {\n\n      return -1;\n    }\n\n    for (int i = m_start + fromIndex; i < max; i++)\n    {\n      if (fsb.charAt(i) == ch)\n      {\n        return i - m_start;\n      }\n    }\n\n    return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "ASSIGN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [3, 11], [2, 12], [10, 13], [11, 14], [4, 15], [5, 16], [12, 17], [2, 18], [10, 19], [3, 20], [12, 21], [17, 22], [19, 23], [20, 24], [21, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 3], [12, 2], [13, 10], [14, 11], [15, 4], [16, 5], [17, 12], [18, 2], [19, 10], [20, 3], [21, 12], [22, 17], [23, 19], [24, 20], [25, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "substring", "code": "  public XMLString substring(int beginIndex)\n  {\n\n    int len = m_length - beginIndex;\n\n    if (len <= 0)\n      return XString.EMPTYSTRING;\n    else\n    {\n      int start = m_start + beginIndex;\n\n      return new XStringForFSB(fsb(), start, len);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [6, 10], [10, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 6], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "substring", "code": "  public XMLString substring(int beginIndex, int endIndex)\n  {\n\n    int len = endIndex - beginIndex;\n\n    if (len > m_length)\n      len = m_length;\n\n    if (len <= 0)\n      return XString.EMPTYSTRING;\n    else\n    {\n      int start = m_start + beginIndex;\n\n      return new XStringForFSB(fsb(), start, len);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [1, 9], [1, 10], [7, 11], [2, 12], [3, 13], [9, 14], [14, 15], [10, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 1], [10, 1], [11, 7], [12, 2], [13, 3], [14, 9], [15, 14], [16, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "concat", "code": "  public XMLString concat(String str)\n  {\n\n    return new XString(str().concat(str));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "trim", "code": "  public XMLString trim()\n  {\n    return fixWhiteSpace(true, true, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isSpace", "code": "  private static boolean isSpace(char ch)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixWhiteSpace", "code": "  public XMLString fixWhiteSpace(boolean trimHead, boolean trimTail,\n                                 boolean doublePunctuationSpaces)\n  {\n\n    int end = m_length + m_start;\n    char[] buf = new char[m_length];\n    FastStringBuffer fsb = fsb();\n    boolean edit = false;\n\n    /* replace S to ' '. and ' '+ -> single ' '. */\n    int d = 0;\n    boolean pres = false;\n\n    for (int s = m_start; s < end; s++)\n    {\n      char c = fsb.charAt(s);\n\n      if (isSpace(c))\n      {\n        if (!pres)\n        {\n          if (' ' != c)\n          {\n            edit = true;\n          }\n\n          buf[d++] = ' ';\n\n          if (doublePunctuationSpaces && (d != 0))\n          {\n            char prevChar = buf[d - 1];\n\n            if (!((prevChar == '.') || (prevChar == '!')\n                  || (prevChar == '?')))\n            {\n              pres = true;\n            }\n          }\n          else\n          {\n            pres = true;\n          }\n        }\n        else\n        {\n          edit = true;\n          pres = true;\n        }\n      }\n      else\n      {\n        buf[d++] = c;\n        pres = false;\n      }\n    }\n\n    if (trimTail && 1 <= d && ' ' == buf[d - 1])\n    {\n      edit = true;\n\n      d--;\n    }\n\n    int start = 0;\n\n    if (trimHead && 0 < d && ' ' == buf[0])\n    {\n      edit = true;\n\n      start++;\n    }\n\n    XMLStringFactory xsf = XMLStringFactoryImpl.getFactory();\n\n    return edit ? xsf.newstr(buf, start, d - start) : this;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [3, 17], [5, 18], [6, 19], [16, 20], [2, 21], [17, 22], [17, 23], [4, 24], [18, 25], [18, 26], [6, 27], [6, 28], [7, 29], [8, 30], [9, 31], [10, 32], [12, 33], [20, 34], [3, 35], [22, 36], [23, 37], [5, 38], [25, 39], [26, 40], [27, 41], [35, 42], [37, 43], [38, 44], [40, 45], [27, 46], [28, 47], [22, 48], [25, 49], [27, 50], [27, 51], [49, 52], [50, 53], [46, 54], [46, 55], [46, 56], [46, 57], [54, 58], [46, 59], [55, 60], [56, 61], [57, 62], [54, 63], [54, 64], [58, 65], [59, 66], [60, 67], [54, 68], [63, 69], [65, 70], [55, 71], [68, 72], [69, 73], [69, 74], [71, 75], [63, 76], [73, 77], [74, 78], [74, 79], [76, 80], [78, 81], [79, 82], [64, 83], [83, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 3], [18, 5], [19, 6], [20, 16], [21, 2], [22, 17], [23, 17], [24, 4], [25, 18], [26, 18], [27, 6], [28, 6], [29, 7], [30, 8], [31, 9], [32, 10], [33, 12], [34, 20], [35, 3], [36, 22], [37, 23], [38, 5], [39, 25], [40, 26], [41, 27], [42, 35], [43, 37], [44, 38], [45, 40], [46, 27], [47, 28], [48, 22], [49, 25], [50, 27], [51, 27], [52, 49], [53, 50], [54, 46], [55, 46], [56, 46], [57, 46], [58, 54], [59, 46], [60, 55], [61, 56], [62, 57], [63, 54], [64, 54], [65, 58], [66, 59], [67, 60], [68, 54], [69, 63], [70, 65], [71, 55], [72, 68], [73, 69], [74, 69], [75, 71], [76, 63], [77, 73], [78, 74], [79, 74], [80, 76], [81, 78], [82, 79], [83, 64], [84, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "toDouble", "code": "  public double toDouble()\n  {\n    if(m_length == 0)\n      return Double.NaN;\n    int i;\n    char c;\n    String valueString = fsb().getString(m_start,m_length);\n    \n    \n    for (i=0;i<m_length;i++)\n      if (!XMLCharacterRecognizer.isWhiteSpace(valueString.charAt(i)))\n        break;\n    if (valueString.charAt(i) == '-')\n      i++;\n    for (;i<m_length;i++) {\n      c = valueString.charAt(i);\n      if (c != '.' && (c < '0' || c > '9'))\n        break;\n    }   \t    \t\n    for (;i<m_length;i++)\n      if (!XMLCharacterRecognizer.isWhiteSpace(valueString.charAt(i)))\n        break;\n    if (i != m_length)\n      return Double.NaN;\n    \t\n    try {\n      return new Double(valueString).doubleValue();\n    } catch (NumberFormatException nfe) {\n      return Double.NaN;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "LOOP", "LOOP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CATCH", "RETURN", "RETURN", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "RETURN", "CALL", "BREAK_CONTINUE", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [2, 13], [2, 14], [3, 15], [3, 16], [4, 17], [5, 18], [6, 19], [6, 20], [6, 21], [10, 22], [10, 23], [11, 24], [12, 25], [15, 26], [15, 27], [4, 28], [18, 29], [18, 30], [19, 31], [19, 32], [21, 33], [7, 34], [23, 35], [25, 36], [27, 37], [28, 38], [28, 39], [4, 40], [32, 41], [34, 42], [39, 43], [39, 44], [40, 45], [43, 46], [43, 47], [44, 48], [46, 49], [47, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 2], [14, 2], [15, 3], [16, 3], [17, 4], [18, 5], [19, 6], [20, 6], [21, 6], [22, 10], [23, 10], [24, 11], [25, 12], [26, 15], [27, 15], [28, 4], [29, 18], [30, 18], [31, 19], [32, 19], [33, 21], [34, 7], [35, 23], [36, 25], [37, 27], [38, 28], [39, 28], [40, 4], [41, 32], [42, 34], [43, 39], [44, 39], [45, 40], [46, 43], [47, 43], [48, 44], [49, 46], [50, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "XStringForFSB", "code": "  public XStringForFSB(FastStringBuffer val, int start, int length)\n  {\n\n    super(val);\n\n    m_start = start;\n    m_length = length;\n\n    if (null == val)\n      throw new IllegalArgumentException(\n        XSLMessages.createXPATHMessage(XPATHErrorResources.ER_FASTSTRINGBUFFER_CANNOT_BE_NULL, null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [0, 7], [0, 8], [5, 9], [6, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 0], [8, 0], [9, 5], [10, 6], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "XStringForFSB", "code": "  private XStringForFSB(String val)\n  {\n\n    super(val);\n\n    throw new IllegalArgumentException();", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.7-8060", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/trax/DOM2SAX.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.DOM2SAX", "code": "public class DOM2SAX implements XMLReader, Locator {\n\n    private final static String EMPTYSTRING = \"\";\n    private static final String XMLNS_PREFIX = \"xmlns\";\n\n    private Node _dom = null;\n    private ContentHandler _sax = null;\n    private LexicalHandler _lex = null;\n    private SAXImpl _saxImpl = null;\n    private Hashtable _nsPrefixes = new Hashtable();\n\n    public DOM2SAX(Node root) {\n\t_dom = root;\n    }\n\n    public ContentHandler getContentHandler() { \n\treturn _sax;\n    }\n\n    public void setContentHandler(ContentHandler handler) throws \n\tNullPointerException \n    {\n\t_sax = handler;\n\tif (handler instanceof LexicalHandler) {\n\t    _lex = (LexicalHandler) handler;\n\t}\n\t\n\tif (handler instanceof SAXImpl) {\n\t    _saxImpl = (SAXImpl)handler;\n\t}\n    }\n\n    /**\n     * Begin the scope of namespace prefix. Forward the event to the \n     * SAX handler only if the prefix is unknown or it is mapped to a \n     * different URI.\n     */\n    private boolean startPrefixMapping(String prefix, String uri) \n\tthrows SAXException \n    {\n\tboolean pushed = true;\n\tStack uriStack = (Stack) _nsPrefixes.get(prefix);\n\n\tif (uriStack != null) {\n\t    if (uriStack.isEmpty()) {\n\t\t_sax.startPrefixMapping(prefix, uri);\n\t\turiStack.push(uri);\n\t    }\n\t    else {\n\t\tfinal String lastUri = (String) uriStack.peek();\n\t\tif (!lastUri.equals(uri)) {\n\t\t    _sax.startPrefixMapping(prefix, uri);\n\t\t    uriStack.push(uri);\n\t\t}\n\t\telse {\n\t\t    pushed = false;\n\t\t}\n\t    }\t\n\t}\n\telse {\n\t    _sax.startPrefixMapping(prefix, uri);\n\t    _nsPrefixes.put(prefix, uriStack = new Stack());\n\t    uriStack.push(uri);\n\t}\n\treturn pushed;\n    }\n\n    /*\n     * End the scope of a name prefix by popping it from the stack and \n     * passing the event to the SAX Handler.\n     */\n    private void endPrefixMapping(String prefix) \n\tthrows SAXException\n    {\n\tfinal Stack uriStack = (Stack) _nsPrefixes.get(prefix);\n\n\tif (uriStack != null) {\n\t    _sax.endPrefixMapping(prefix);\n\t    uriStack.pop();\n\t}\n    }\n\n    /**\n     * If the DOM was created using a DOM 1.0 API, the local name may be \n     * null. If so, get the local name from the qualified name before \n     * generating the SAX event. \n     */\n    private static String getLocalName(Node node) {\n\tfinal String localName = node.getLocalName();\n\n\tif (localName == null) {\n\t    final String qname = node.getNodeName();\n\t    final int col = qname.lastIndexOf(':');\n\t    return (col > 0) ? qname.substring(col + 1) : qname;\n\t}\n\treturn localName;\n    }\n\n    public void parse(InputSource unused) throws IOException, SAXException {\n        parse(_dom);\n    }\n\n    public void parse() throws IOException, SAXException {\n\tif (_dom != null) {\n\t    boolean isIncomplete = \n\t\t(_dom.getNodeType() != org.w3c.dom.Node.DOCUMENT_NODE);\n\n\t    if (isIncomplete) {\n\t\t_sax.startDocument();\n\t\tparse(_dom);\n\t\t_sax.endDocument();\n\t    }\n\t    else {\n\t\tparse(_dom);\n\t    }\n\t}\n    }\n\n    /**\n     * Traverse the DOM and generate SAX events for a handler. A \n     * startElement() event passes all attributes, including namespace \n     * declarations. \n     */\n    private void parse(Node node) throws IOException, SAXException {\n        Node first = null;\n \tif (node == null) return;\n\n        switch (node.getNodeType()) {\n\tcase Node.DOCUMENT_FRAGMENT_NODE:\n\tcase Node.DOCUMENT_TYPE_NODE :\n\tcase Node.ENTITY_NODE :\n\tcase Node.ENTITY_REFERENCE_NODE:\n\tcase Node.NOTATION_NODE :\n\t    break;\n\tcase Node.CDATA_SECTION_NODE:\n\t    final String cdata = node.getNodeValue();\n\t    if (_lex != null) {\n\t\t_lex.startCDATA();\n\t        _sax.characters(cdata.toCharArray(), 0, cdata.length());\n\t\t_lex.endCDATA();\n \t    } \n\t    else {\n\t        _sax.characters(cdata.toCharArray(), 0, cdata.length());\n\t    }\t\n\t    break;\n\n\t    if (_lex != null) {\n\t\tfinal String value = node.getNodeValue();\n\t\t_lex.comment(value.toCharArray(), 0, value.length());\n\t    }\n\t    break;\n\tcase Node.DOCUMENT_NODE:\n\t    _sax.setDocumentLocator(this);\n\n\t    _sax.startDocument();\n\t    Node next = node.getFirstChild();\n\t    while (next != null) {\n\t\tparse(next);\n\t\tnext = next.getNextSibling();\n\t    }\n\t    _sax.endDocument();\n\t    break;\n\n\tcase Node.ELEMENT_NODE:\n\t    String prefix;\n\t    Vector pushedPrefixes = new Vector();\n\t    final AttributesImpl attrs = new AttributesImpl();\n\t    final NamedNodeMap map = node.getAttributes();\n\t    final int length = map.getLength();\n\n\t    for (int i = 0; i < length; i++) {\n\t\tfinal Node attr = map.item(i);\n\t\tfinal String qnameAttr = attr.getNodeName();\n\n\t\tif (qnameAttr.startsWith(XMLNS_PREFIX)) {\n\t\t    final String uriAttr = attr.getNodeValue();\n\t\t    final int colon = qnameAttr.lastIndexOf(':');\n\t\t    prefix = (colon > 0) ? qnameAttr.substring(colon + 1) : EMPTYSTRING;\n\t\t    if (startPrefixMapping(prefix, uriAttr)) {\n\t\t\tpushedPrefixes.addElement(prefix);\n\t\t    }\n\t\t}\n\t    }\n\n\t    for (int i = 0; i < length; i++) {\n\t\tfinal Node attr = map.item(i);\n\t\tfinal String qnameAttr = attr.getNodeName();\n\n\t\tif (!qnameAttr.startsWith(XMLNS_PREFIX)) {\n\t\t    final String uriAttr = attr.getNamespaceURI();\n\t\t    final String localNameAttr = getLocalName(attr);\n\n\t\t    if (uriAttr != null) {\t\n\t\t\tfinal int colon = qnameAttr.lastIndexOf(':');\n\t\t\tprefix = (colon > 0) ? qnameAttr.substring(0, colon) : EMPTYSTRING;\n\t\t\tif (startPrefixMapping(prefix, uriAttr)) {\n\t\t\t    pushedPrefixes.addElement(prefix);\n\t\t\t}\n\t\t    }\n\n\t\t    attrs.addAttribute(attr.getNamespaceURI(), getLocalName(attr), \n\t\t\tqnameAttr, \"CDATA\", attr.getNodeValue());\n\t\t}\n\t    }\n\n\t    final String qname = node.getNodeName();\n\t    final String uri = node.getNamespaceURI();\n\t    final String localName = getLocalName(node);\n\n\t    if (uri != null) {\t\n\t\tfinal int colon = qname.lastIndexOf(':');\n\t\tprefix = (colon > 0) ? qname.substring(0, colon) : EMPTYSTRING;\n\t\tif (startPrefixMapping(prefix, uri)) {\n\t\t    pushedPrefixes.addElement(prefix);\n\t\t}\n\t    }\n\n\t    if (_saxImpl != null) {\n\t        _saxImpl.startElement(uri, localName, qname, attrs, node);\n\t    }\n\t    else {\n\t        _sax.startElement(uri, localName, qname, attrs);\n\t    }\n\n\t    next = node.getFirstChild();\n\t    while (next != null) {\n\t\tparse(next);\n\t\tnext = next.getNextSibling();\n\t    }\n\n\t    _sax.endElement(uri, localName, qname);\n\n\t    final int nPushedPrefixes = pushedPrefixes.size();\n\t    for (int i = 0; i < nPushedPrefixes; i++) {\n\t\tendPrefixMapping((String) pushedPrefixes.elementAt(i));\n\t    }\n\t    break;\n\n\tcase Node.PROCESSING_INSTRUCTION_NODE:\n\t    _sax.processingInstruction(node.getNodeName(),\n\t\t\t\t       node.getNodeValue());\n\t    break;\n\n\tcase Node.TEXT_NODE:\n\t    final String data = node.getNodeValue();\n\t    _sax.characters(data.toCharArray(), 0, data.length());\n\t    break;\n\t}\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public DTDHandler getDTDHandler() { \n\treturn null;\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public ErrorHandler getErrorHandler() {\n\treturn null;\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public boolean getFeature(String name) throws SAXNotRecognizedException,\n\tSAXNotSupportedException\n    {\n\treturn false;\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setFeature(String name, boolean value) throws \n\tSAXNotRecognizedException, SAXNotSupportedException \n    {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void parse(String sysId) throws IOException, SAXException {\n\tthrow new IOException(\"This method is not yet implemented.\");\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setDTDHandler(DTDHandler handler) throws NullPointerException {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setEntityResolver(EntityResolver resolver) throws \n\tNullPointerException \n    {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public EntityResolver getEntityResolver() {\n\treturn null;\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setErrorHandler(ErrorHandler handler) throws \n\tNullPointerException\n    {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setProperty(String name, Object value) throws\n\tSAXNotRecognizedException, SAXNotSupportedException {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public Object getProperty(String name) throws SAXNotRecognizedException,\n\tSAXNotSupportedException\n    {\n\treturn null;\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public int getColumnNumber() { \n\treturn 0; \n    }\n    \n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public int getLineNumber() { \n\treturn 0; \n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public String getPublicId() { \n\treturn null; \n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public String getSystemId() { \n\treturn null; \n    }\n\n    private String getNodeTypeFromCode(short code) {\n\tString retval = null;\n\tswitch (code) {\n\tcase Node.ATTRIBUTE_NODE : \n\t    retval = \"ATTRIBUTE_NODE\"; break; \n\tcase Node.CDATA_SECTION_NODE :\n\t    retval = \"CDATA_SECTION_NODE\"; break; \n\tcase Node.COMMENT_NODE :\n\t    retval = \"COMMENT_NODE\"; break; \n\tcase Node.DOCUMENT_FRAGMENT_NODE :\n\t    retval = \"DOCUMENT_FRAGMENT_NODE\"; break; \n\tcase Node.DOCUMENT_NODE :\n\t    retval = \"DOCUMENT_NODE\"; break; \n\tcase Node.DOCUMENT_TYPE_NODE :\n\t    retval = \"DOCUMENT_TYPE_NODE\"; break; \n\tcase Node.ELEMENT_NODE :\n\t    retval = \"ELEMENT_NODE\"; break; \n\tcase Node.ENTITY_NODE :\n\t    retval = \"ENTITY_NODE\"; break; \n\tcase Node.ENTITY_REFERENCE_NODE :\n\t    retval = \"ENTITY_REFERENCE_NODE\"; break; \n\tcase Node.NOTATION_NODE :\n\t    retval = \"NOTATION_NODE\"; break; \n\tcase Node.PROCESSING_INSTRUCTION_NODE :\n\t    retval = \"PROCESSING_INSTRUCTION_NODE\"; break; \n\tcase Node.TEXT_NODE:\n\t    retval = \"TEXT_NODE\"; break; \n        }\n\treturn retval;", "functions": [{"function_name": "getContentHandler", "code": "    public ContentHandler getContentHandler() { \n\treturn _sax;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setContentHandler", "code": "    public void setContentHandler(ContentHandler handler) throws \n\tNullPointerException \n    {\n\t_sax = handler;\n\tif (handler instanceof LexicalHandler) {\n\t    _lex = (LexicalHandler) handler;\n\t}\n\t\n\tif (handler instanceof SAXImpl) {\n\t    _saxImpl = (SAXImpl)handler;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "startPrefixMapping", "code": "    private boolean startPrefixMapping(String prefix, String uri) \n\tthrows SAXException \n    {\n\tboolean pushed = true;\n\tStack uriStack = (Stack) _nsPrefixes.get(prefix);\n\n\tif (uriStack != null) {\n\t    if (uriStack.isEmpty()) {\n\t\t_sax.startPrefixMapping(prefix, uri);\n\t\turiStack.push(uri);\n\t    }\n\t    else {\n\t\tfinal String lastUri = (String) uriStack.peek();\n\t\tif (!lastUri.equals(uri)) {\n\t\t    _sax.startPrefixMapping(prefix, uri);\n\t\t    uriStack.push(uri);\n\t\t}\n\t\telse {\n\t\t    pushed = false;\n\t\t}\n\t    }\t\n\t}\n\telse {\n\t    _sax.startPrefixMapping(prefix, uri);\n\t    _nsPrefixes.put(prefix, uriStack = new Stack());\n\t    uriStack.push(uri);\n\t}\n\treturn pushed;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [4, 10], [2, 11], [2, 12], [2, 13], [8, 14], [3, 15], [12, 16], [8, 17], [8, 18], [16, 19], [17, 20], [8, 21], [8, 22], [17, 23], [17, 24], [17, 25], [18, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 4], [11, 2], [12, 2], [13, 2], [14, 8], [15, 3], [16, 12], [17, 8], [18, 8], [19, 16], [20, 17], [21, 8], [22, 8], [23, 17], [24, 17], [25, 17], [26, 18], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "endPrefixMapping", "code": "    private void endPrefixMapping(String prefix) \n\tthrows SAXException\n    {\n\tfinal Stack uriStack = (Stack) _nsPrefixes.get(prefix);\n\n\tif (uriStack != null) {\n\t    _sax.endPrefixMapping(prefix);\n\t    uriStack.pop();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLocalName", "code": "    private static String getLocalName(Node node) {\n\tfinal String localName = node.getLocalName();\n\n\tif (localName == null) {\n\t    final String qname = node.getNodeName();\n\t    final int col = qname.lastIndexOf(':');\n\t    return (col > 0) ? qname.substring(col + 1) : qname;\n\t}\n\treturn localName;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [3, 10], [6, 11], [11, 12], [11, 13], [7, 14], [8, 15], [12, 16], [13, 17], [14, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 3], [11, 6], [12, 11], [13, 11], [14, 7], [15, 8], [16, 12], [17, 13], [18, 14], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "parse", "code": "    public void parse(InputSource unused) throws IOException, SAXException {\n        parse(_dom);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parse", "code": "    public void parse() throws IOException, SAXException {\n\tif (_dom != null) {\n\t    boolean isIncomplete = \n\t\t(_dom.getNodeType() != org.w3c.dom.Node.DOCUMENT_NODE);\n\n\t    if (isIncomplete) {\n\t\t_sax.startDocument();\n\t\tparse(_dom);\n\t\t_sax.endDocument();\n\t    }\n\t    else {\n\t\tparse(_dom);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [4, 6], [3, 7], [3, 8], [3, 9], [3, 10], [6, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 4], [7, 3], [8, 3], [9, 3], [10, 3], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "parse", "code": "    private void parse(Node node) throws IOException, SAXException {\n        Node first = null;\n \tif (node == null) return;\n\n        switch (node.getNodeType()) {\n\tcase Node.DOCUMENT_FRAGMENT_NODE:\n\tcase Node.DOCUMENT_TYPE_NODE :\n\tcase Node.ENTITY_NODE :\n\tcase Node.ENTITY_REFERENCE_NODE:\n\tcase Node.NOTATION_NODE :\n\t    break;\n\tcase Node.CDATA_SECTION_NODE:\n\t    final String cdata = node.getNodeValue();\n\t    if (_lex != null) {\n\t\t_lex.startCDATA();\n\t        _sax.characters(cdata.toCharArray(), 0, cdata.length());\n\t\t_lex.endCDATA();\n \t    } \n\t    else {\n\t        _sax.characters(cdata.toCharArray(), 0, cdata.length());\n\t    }\t\n\t    break;\n\n\t    if (_lex != null) {\n\t\tfinal String value = node.getNodeValue();\n\t\t_lex.comment(value.toCharArray(), 0, value.length());\n\t    }\n\t    break;\n\tcase Node.DOCUMENT_NODE:\n\t    _sax.setDocumentLocator(this);\n\n\t    _sax.startDocument();\n\t    Node next = node.getFirstChild();\n\t    while (next != null) {\n\t\tparse(next);\n\t\tnext = next.getNextSibling();\n\t    }\n\t    _sax.endDocument();\n\t    break;\n\n\tcase Node.ELEMENT_NODE:\n\t    String prefix;\n\t    Vector pushedPrefixes = new Vector();\n\t    final AttributesImpl attrs = new AttributesImpl();\n\t    final NamedNodeMap map = node.getAttributes();\n\t    final int length = map.getLength();\n\n\t    for (int i = 0; i < length; i++) {\n\t\tfinal Node attr = map.item(i);\n\t\tfinal String qnameAttr = attr.getNodeName();\n\n\t\tif (qnameAttr.startsWith(XMLNS_PREFIX)) {\n\t\t    final String uriAttr = attr.getNodeValue();\n\t\t    final int colon = qnameAttr.lastIndexOf(':');\n\t\t    prefix = (colon > 0) ? qnameAttr.substring(colon + 1) : EMPTYSTRING;\n\t\t    if (startPrefixMapping(prefix, uriAttr)) {\n\t\t\tpushedPrefixes.addElement(prefix);\n\t\t    }\n\t\t}\n\t    }\n\n\t    for (int i = 0; i < length; i++) {\n\t\tfinal Node attr = map.item(i);\n\t\tfinal String qnameAttr = attr.getNodeName();\n\n\t\tif (!qnameAttr.startsWith(XMLNS_PREFIX)) {\n\t\t    final String uriAttr = attr.getNamespaceURI();\n\t\t    final String localNameAttr = getLocalName(attr);\n\n\t\t    if (uriAttr != null) {\t\n\t\t\tfinal int colon = qnameAttr.lastIndexOf(':');\n\t\t\tprefix = (colon > 0) ? qnameAttr.substring(0, colon) : EMPTYSTRING;\n\t\t\tif (startPrefixMapping(prefix, uriAttr)) {\n\t\t\t    pushedPrefixes.addElement(prefix);\n\t\t\t}\n\t\t    }\n\n\t\t    attrs.addAttribute(attr.getNamespaceURI(), getLocalName(attr), \n\t\t\tqnameAttr, \"CDATA\", attr.getNodeValue());\n\t\t}\n\t    }\n\n\t    final String qname = node.getNodeName();\n\t    final String uri = node.getNamespaceURI();\n\t    final String localName = getLocalName(node);\n\n\t    if (uri != null) {\t\n\t\tfinal int colon = qname.lastIndexOf(':');\n\t\tprefix = (colon > 0) ? qname.substring(0, colon) : EMPTYSTRING;\n\t\tif (startPrefixMapping(prefix, uri)) {\n\t\t    pushedPrefixes.addElement(prefix);\n\t\t}\n\t    }\n\n\t    if (_saxImpl != null) {\n\t        _saxImpl.startElement(uri, localName, qname, attrs, node);\n\t    }\n\t    else {\n\t        _sax.startElement(uri, localName, qname, attrs);\n\t    }\n\n\t    next = node.getFirstChild();\n\t    while (next != null) {\n\t\tparse(next);\n\t\tnext = next.getNextSibling();\n\t    }\n\n\t    _sax.endElement(uri, localName, qname);\n\n\t    final int nPushedPrefixes = pushedPrefixes.size();\n\t    for (int i = 0; i < nPushedPrefixes; i++) {\n\t\tendPrefixMapping((String) pushedPrefixes.elementAt(i));\n\t    }\n\t    break;\n\n\tcase Node.PROCESSING_INSTRUCTION_NODE:\n\t    _sax.processingInstruction(node.getNodeName(),\n\t\t\t\t       node.getNodeValue());\n\t    break;\n\n\tcase Node.TEXT_NODE:\n\t    final String data = node.getNodeValue();\n\t    _sax.characters(data.toCharArray(), 0, data.length());\n\t    break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "BREAK_CONTINUE", "VAR_DECL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LOOP", "VAR_DECL", "LOOP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BREAK_CONTINUE", "LOOP", "VAR_DECL", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "VAR_DECL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [7, 36], [3, 37], [1, 38], [1, 39], [12, 40], [1, 41], [14, 42], [1, 43], [15, 44], [16, 45], [20, 46], [21, 47], [1, 48], [28, 49], [1, 50], [1, 51], [31, 52], [33, 53], [38, 54], [38, 55], [38, 56], [9, 57], [39, 58], [39, 59], [13, 60], [42, 61], [43, 62], [44, 63], [16, 64], [16, 65], [45, 66], [17, 67], [18, 68], [19, 69], [20, 70], [20, 71], [20, 72], [21, 73], [21, 74], [21, 75], [22, 76], [23, 77], [24, 78], [25, 79], [49, 80], [29, 81], [31, 82], [52, 83], [53, 84], [34, 85], [12, 86], [12, 87], [14, 88], [14, 89], [15, 90], [15, 91], [64, 92], [16, 93], [70, 94], [20, 95], [73, 96], [21, 97], [28, 98], [28, 99], [31, 100], [33, 101], [33, 102], [33, 103], [33, 104], [88, 105], [93, 106], [65, 107], [70, 108], [70, 109], [70, 110], [71, 111], [72, 112], [73, 113], [73, 114], [73, 115], [74, 116], [75, 117], [98, 118], [100, 119], [100, 120], [100, 121], [82, 122], [101, 123], [101, 124], [101, 125], [103, 126], [103, 127], [103, 128], [86, 129], [64, 130], [106, 131], [106, 132], [107, 133], [70, 134], [108, 135], [113, 136], [73, 137], [131, 138], [132, 139], [134, 140], [134, 141], [134, 142], [134, 143], [108, 144], [108, 145], [135, 146], [109, 147], [110, 148], [137, 149], [114, 150], [115, 151], [144, 152], [108, 153], [113, 154], [149, 155], [149, 156], [150, 157], [153, 158], [145, 159], [155, 160], [156, 161], [144, 162], [158, 163], [158, 164], [159, 165], [160, 166], [163, 167], [164, 168], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 7], [37, 3], [38, 1], [39, 1], [40, 12], [41, 1], [42, 14], [43, 1], [44, 15], [45, 16], [46, 20], [47, 21], [48, 1], [49, 28], [50, 1], [51, 1], [52, 31], [53, 33], [54, 38], [55, 38], [56, 38], [57, 9], [58, 39], [59, 39], [60, 13], [61, 42], [62, 43], [63, 44], [64, 16], [65, 16], [66, 45], [67, 17], [68, 18], [69, 19], [70, 20], [71, 20], [72, 20], [73, 21], [74, 21], [75, 21], [76, 22], [77, 23], [78, 24], [79, 25], [80, 49], [81, 29], [82, 31], [83, 52], [84, 53], [85, 34], [86, 12], [87, 12], [88, 14], [89, 14], [90, 15], [91, 15], [92, 64], [93, 16], [94, 70], [95, 20], [96, 73], [97, 21], [98, 28], [99, 28], [100, 31], [101, 33], [102, 33], [103, 33], [104, 33], [105, 88], [106, 93], [107, 65], [108, 70], [109, 70], [110, 70], [111, 71], [112, 72], [113, 73], [114, 73], [115, 73], [116, 74], [117, 75], [118, 98], [119, 100], [120, 100], [121, 100], [122, 82], [123, 101], [124, 101], [125, 101], [126, 103], [127, 103], [128, 103], [129, 86], [130, 64], [131, 106], [132, 106], [133, 107], [134, 70], [135, 108], [136, 113], [137, 73], [138, 131], [139, 132], [140, 134], [141, 134], [142, 134], [143, 134], [144, 108], [145, 108], [146, 135], [147, 109], [148, 110], [149, 137], [150, 114], [151, 115], [152, 144], [153, 108], [154, 113], [155, 149], [156, 149], [157, 150], [158, 153], [159, 145], [160, 155], [161, 156], [162, 144], [163, 158], [164, 158], [165, 159], [166, 160], [167, 163], [168, 164], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168]]}, {"function_name": "getDTDHandler", "code": "    public DTDHandler getDTDHandler() { \n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandler", "code": "    public ErrorHandler getErrorHandler() {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFeature", "code": "    public boolean getFeature(String name) throws SAXNotRecognizedException,\n\tSAXNotSupportedException\n    {\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFeature", "code": "    public void setFeature(String name, boolean value) throws ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parse", "code": "    public void parse(String sysId) throws IOException, SAXException {\n\tthrow new IOException(\"This method is not yet implemented.\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDTDHandler", "code": "    public void setDTDHandler(DTDHandler handler) throws NullPointerException {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEntityResolver", "code": "    public void setEntityResolver(EntityResolver resolver) throws ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEntityResolver", "code": "    public EntityResolver getEntityResolver() {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorHandler", "code": "    public void setErrorHandler(ErrorHandler handler) throws ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProperty", "code": "    public void setProperty(String name, Object value) throws", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProperty", "code": "    public Object getProperty(String name) throws SAXNotRecognizedException,\n\tSAXNotSupportedException\n    {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getColumnNumber", "code": "    public int getColumnNumber() { \n\treturn 0; ", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLineNumber", "code": "    public int getLineNumber() { \n\treturn 0; ", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPublicId", "code": "    public String getPublicId() { \n\treturn null; ", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemId", "code": "    public String getSystemId() { \n\treturn null; ", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNodeTypeFromCode", "code": "    private String getNodeTypeFromCode(short code) {\n\tString retval = null;\n\tswitch (code) {\n\tcase Node.ATTRIBUTE_NODE : \n\t    retval = \"ATTRIBUTE_NODE\"; break; \n\tcase Node.CDATA_SECTION_NODE :\n\t    retval = \"CDATA_SECTION_NODE\"; break; \n\tcase Node.COMMENT_NODE :\n\t    retval = \"COMMENT_NODE\"; break; \n\tcase Node.DOCUMENT_FRAGMENT_NODE :\n\t    retval = \"DOCUMENT_FRAGMENT_NODE\"; break; \n\tcase Node.DOCUMENT_NODE :\n\t    retval = \"DOCUMENT_NODE\"; break; \n\tcase Node.DOCUMENT_TYPE_NODE :\n\t    retval = \"DOCUMENT_TYPE_NODE\"; break; \n\tcase Node.ELEMENT_NODE :\n\t    retval = \"ELEMENT_NODE\"; break; \n\tcase Node.ENTITY_NODE :\n\t    retval = \"ENTITY_NODE\"; break; \n\tcase Node.ENTITY_REFERENCE_NODE :\n\t    retval = \"ENTITY_REFERENCE_NODE\"; break; \n\tcase Node.NOTATION_NODE :\n\t    retval = \"NOTATION_NODE\"; break; \n\tcase Node.PROCESSING_INSTRUCTION_NODE :\n\t    retval = \"PROCESSING_INSTRUCTION_NODE\"; break; \n\tcase Node.TEXT_NODE:\n\t    retval = \"TEXT_NODE\"; break; \n        }\n\treturn retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [3, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [18, 30], [19, 31], [20, 32], [21, 33], [22, 34], [23, 35], [24, 36], [25, 37], [26, 38], [27, 39], [28, 40], [29, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 3], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 18], [31, 19], [32, 20], [33, 21], [34, 22], [35, 23], [36, 24], [37, 25], [38, 26], [39, 27], [40, 28], [41, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "DOM2SAX", "code": "    public DOM2SAX(Node root) {\n\t_dom = root;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-2735", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/cxf/invoker/InvokingContext.java", "language": "java", "name": "org.apache.camel.component.cxf.invoker.InvokingContext", "code": "public interface InvokingContext {\n\n    /**\n     * This method is called when the router is preparing an outbound message\n     * (orignated from the router's client) to be sent to the target CXF server.\n     * It sets the content in the given (out) message object.\n     */\n    void setRequestOutMessageContent(Message message, Map<Class, Object> contents);\n\n    /**\n     * This method is call when the CxfClient receives a response from a CXF server and needs\n     * to extract the response object from the message.\n     */\n    Object getResponseObject(Exchange exchange, Map<String, Object> responseContext);\n\n    /**\n     * This method is called when the routing interceptor has received a response message\n     * from the target CXF server and needs to set the response in the outgoing message\n     * that is to be sent to the client.\n     */\n    void setResponseContent(Message outMessage, Object resultPayload);\n\n    /**\n     * This method is called when the routing interceptor has intercepted a message from\n     * the client and needs to extract the request content from the message.  It retreives\n     * and receives the request content from the incoming message.\n     */\n    Map<Class, Object> getRequestContent(Message inMessage);", "functions": [{"function_name": "setRequestOutMessageContent", "code": "    void setRequestOutMessageContent(Message message, Map<Class, Object> contents);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResponseObject", "code": "    Object getResponseObject(Exchange exchange, Map<String, Object> responseContext);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setResponseContent", "code": "    void setResponseContent(Message outMessage, Object resultPayload);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRequestContent", "code": "    Map<Class, Object> getRequestContent(Message inMessage);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.3-4552", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/TextAreaDialog.java", "language": "java", "name": "org.gjt.sp.jedit.gui.TextAreaDialog", "code": "public class TextAreaDialog extends EnhancedDialog\n{\n\t//{{{ TextAreaDialog constructor\n\tpublic TextAreaDialog(Frame frame, String title, String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tinit(caption,icon,text);\n\t} //}}}\n\n\t//{{{ TextAreaDialog constructor\n\tpublic TextAreaDialog(Frame frame, String name, Throwable t)\n\t{\n\t\tthis(frame,jEdit.getProperty(name + \".title\"),\n\t\t\tjEdit.getProperty(name + \".message\"),\n\t\t\tUIManager.getIcon(\"OptionPane.errorIcon\"),\n\t\t\tMiscUtilities.throwableToString(t));\n\t} //}}}\n\n\t//{{{ TextAreaDialog constructor\n\tpublic TextAreaDialog(Dialog frame, String title, String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tinit(caption,icon,text);\n\t} //}}}\n\n\t//{{{ TextAreaDialog constructor\n\tpublic TextAreaDialog(Dialog frame, String name, Throwable t)\n\t{\n\t\tthis(frame,jEdit.getProperty(name + \".title\"),\n\t\t\tjEdit.getProperty(name + \".message\"),\n\t\t\tUIManager.getIcon(\"OptionPane.errorIcon\"),\n\t\t\tMiscUtilities.throwableToString(t));\n\t} //}}}\n\n\t//{{{ init() method\n\tprivate void init(String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tBox iconBox = new Box(BoxLayout.Y_AXIS);\n\t\ticonBox.add(new JLabel(icon));\n\t\ticonBox.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.WEST,iconBox);\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout(6,6));\n\n\t\tcenterPanel.add(BorderLayout.NORTH,\n\t\t\tGUIUtilities.createMultilineLabel(caption));\n\n\t\tJTextArea textArea = new JTextArea(10,80);\n\n\t\ttextArea.setText(text);\n\t\ttextArea.setLineWrap(true);\n\t\ttextArea.setCaretPosition(0);\n\t\tcenterPanel.add(BorderLayout.CENTER,new JScrollPane(textArea));\n\n\t\tcontent.add(BorderLayout.CENTER,centerPanel);\n\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\t\tbuttons.add(Box.createGlue());\n\t\tJButton ok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(new ActionHandler());\n\t\tbuttons.add(ok);\n\t\tbuttons.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(getParent());\n\t\tsetVisible(true);\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\t//{{{ actionPerformed() method\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tdispose();", "functions": [{"function_name": "init", "code": "\tprivate void init(String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tJPanel content = new JPanel(new BorderLayout(12,12));\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tBox iconBox = new Box(BoxLayout.Y_AXIS);\n\t\ticonBox.add(new JLabel(icon));\n\t\ticonBox.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.WEST,iconBox);\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout(6,6));\n\n\t\tcenterPanel.add(BorderLayout.NORTH,\n\t\t\tGUIUtilities.createMultilineLabel(caption));\n\n\t\tJTextArea textArea = new JTextArea(10,80);\n\n\t\ttextArea.setText(text);\n\t\ttextArea.setLineWrap(true);\n\t\ttextArea.setCaretPosition(0);\n\t\tcenterPanel.add(BorderLayout.CENTER,new JScrollPane(textArea));\n\n\t\tcontent.add(BorderLayout.CENTER,centerPanel);\n\n\t\tBox buttons = new Box(BoxLayout.X_AXIS);\n\t\tbuttons.add(Box.createGlue());\n\t\tJButton ok = new JButton(jEdit.getProperty(\"common.ok\"));\n\t\tok.addActionListener(new ActionHandler());\n\t\tbuttons.add(ok);\n\t\tbuttons.add(Box.createGlue());\n\t\tcontent.add(BorderLayout.SOUTH,buttons);\n\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(getParent());\n\t\tsetVisible(true);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [10, 30], [11, 31], [13, 32], [15, 33], [17, 34], [1, 35], [18, 36], [2, 37], [20, 38], [21, 39], [22, 40], [3, 41], [24, 42], [4, 43], [26, 44], [27, 45], [5, 46], [29, 47], [6, 48], [35, 49], [41, 50], [41, 51], [43, 52], [47, 53], [47, 54], [47, 55], [47, 56], [48, 57], [49, 58], [52, 59], [52, 60], [57, 61], [57, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 10], [31, 11], [32, 13], [33, 15], [34, 17], [35, 1], [36, 18], [37, 2], [38, 20], [39, 21], [40, 22], [41, 3], [42, 24], [43, 4], [44, 26], [45, 27], [46, 5], [47, 29], [48, 6], [49, 35], [50, 41], [51, 41], [52, 43], [53, 47], [54, 47], [55, 47], [56, 47], [57, 48], [58, 49], [59, 52], [60, 52], [61, 57], [62, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "TextAreaDialog", "code": "\tpublic TextAreaDialog(Frame frame, String title, String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tinit(caption,icon,text);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "TextAreaDialog", "code": "\tpublic TextAreaDialog(Frame frame, String name, Throwable t)\n\t{\n\t\tthis(frame,jEdit.getProperty(name + \".title\"),\n\t\t\tjEdit.getProperty(name + \".message\"),\n\t\t\tUIManager.getIcon(\"OptionPane.errorIcon\"),\n\t\t\tMiscUtilities.throwableToString(t));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "TextAreaDialog", "code": "\tpublic TextAreaDialog(Dialog frame, String title, String caption,\n\t\tIcon icon, String text)\n\t{\n\t\tsuper(frame,title,true);\n\n\t\tinit(caption,icon,text);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "TextAreaDialog", "code": "\tpublic TextAreaDialog(Dialog frame, String name, Throwable t)\n\t{\n\t\tthis(frame,jEdit.getProperty(name + \".title\"),\n\t\t\tjEdit.getProperty(name + \".message\"),\n\t\t\tUIManager.getIcon(\"OptionPane.errorIcon\"),\n\t\t\tMiscUtilities.throwableToString(t));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "poi-3.0-6067", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/EOFRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.EOFRecord", "code": "public class EOFRecord\n    extends Record\n{\n    public final static short sid = 0x0A;\n\n    public EOFRecord()\n    {\n    }\n\n    /**\n     * Constructs a EOFRecord record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x0A or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public EOFRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An EOF RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[EOF]\\n\");\n        buffer.append(\"[/EOF]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 4;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n      EOFRecord rec = new EOFRecord();\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT An EOF RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[EOF]\\n\");\n        buffer.append(\"[/EOF]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [4, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 4], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [5, 7], [6, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 5], [8, 6], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      EOFRecord rec = new EOFRecord();\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "EOFRecord", "code": "    public EOFRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "EOFRecord", "code": "    public EOFRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "jedit-3.2-3550", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "bsh/BSHArrayDimensions.java", "language": "java", "name": "bsh.BSHArrayDimensions", "code": "class BSHArrayDimensions extends SimpleNode\n{\n\tpublic Class baseType;\n    private int arrayDims;\n\n\t/** The Length in each dimension.  This value set by the eval() */\n\t// is it ok to cache this here?\n\t// it can't change, right?\n    /*transient?why?*/ \n\tpublic int [] dimensions;  \n\n    BSHArrayDimensions(int id) { super(id); }\n\n    public void addArrayDimension() { arrayDims++; }\n\n    public Object eval( \n\t\t\tClass type, CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError \n\t{\n\t\tInterpreter.debug(\"array base type = \"+type);\n\t\tbaseType = type;\n\t\treturn eval( callstack, interpreter );\n\t}\n\n\t/**\n\t\tEvaluate the structure of the array in one of two ways:\n\n\t\t\ta) an initializer exists, evaluate it and return\n\t\t\tthe fully constructed array object, also record the dimensions\n\t\t\tof that array\n\t\t\t\n\t\t\tb) evaluate and record the lengths in each dimension and \n\t\t\treturn void.\n\n\t\tThe structure of the array dims is maintained in dimensions.\n\t*/\n    public Object eval( CallStack callstack, Interpreter interpreter )  \n\t\tthrows EvalError\n    {\n\t\tSimpleNode child = (SimpleNode)jjtGetChild(0);\n\n\t\tif (child instanceof BSHArrayInitializer)\n\t\t// evaluate the initializer and the dimensions it returns\n\t\t{\n\t\t\tif ( baseType == null )\n\t\t\t\tthrow new EvalError( \n\t\t\t\t\t\"Internal Array Eval err:  unknown base type\", this);\n\n\t\t\tObject initValue = ((BSHArrayInitializer)child).eval(\n\t\t\t\tbaseType, arrayDims, callstack, interpreter);\n\n\t\t\tClass arrayClass = initValue.getClass();\n\t\t\tdimensions = new int[\n\t\t\t\tReflect.getArrayDimensions(arrayClass) ];\n\n\t\t\t// compare with number of dimensions explicitly specified\n\t\t\tif (dimensions.length != arrayDims)\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\"Incompatible initializer. Allocation calls for a \" + \n\t\t\t\tarrayDims + \" dimensional array, but initializer is a \" +\n\t\t\t\t\tdimensions.length + \" dimensional array\", this);\n\n\t\t\t// fill in dimensions[] lengths\n\t\t\tObject arraySlice = initValue;\n\t\t\tfor(int i = 0; i < dimensions.length; i++) {\n\t\t\t\tdimensions[i] = Array.getLength( arraySlice );\n\t\t\t\tif ( dimensions[i] > 0 )\n\t\t\t\t\tarraySlice = Array.get(arraySlice, 0);\n\t\t\t}\n\n\t\t\treturn initValue;\n\t\t}\n\t\telse \n\t\t// evaluate the dimensions of the array\n\t\t{\n\t\t\tdimensions = new int[ jjtGetNumChildren() ];\n\t\t\tfor(int i = 0; i < dimensions.length; i++)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tObject length = ((SimpleNode)jjtGetChild(i)).eval(\n\t\t\t\t\t\tcallstack, interpreter);\n\t\t\t\t\tdimensions[i] = ((Primitive)length).intValue();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\t\"Array index: \" + i + \n\t\t\t\t\t\t\" does not evaluate to an integer\", this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n        return Primitive.VOID;", "functions": [{"function_name": "addArrayDimension", "code": "    public void addArrayDimension() { arrayDims++; }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "eval", "code": "    public Object eval( \n\t\t\tClass type, CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError \n\t{\n\t\tInterpreter.debug(\"array base type = \"+type);\n\t\tbaseType = type;\n\t\treturn eval( callstack, interpreter );", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "eval", "code": "    public Object eval( CallStack callstack, Interpreter interpreter )  \n\t\tthrows EvalError\n    {\n\t\tSimpleNode child = (SimpleNode)jjtGetChild(0);\n\n\t\tif (child instanceof BSHArrayInitializer)\n\t\t// evaluate the initializer and the dimensions it returns\n\t\t{\n\t\t\tif ( baseType == null )\n\t\t\t\tthrow new EvalError( \n\t\t\t\t\t\"Internal Array Eval err:  unknown base type\", this);\n\n\t\t\tObject initValue = ((BSHArrayInitializer)child).eval(\n\t\t\t\tbaseType, arrayDims, callstack, interpreter);\n\n\t\t\tClass arrayClass = initValue.getClass();\n\t\t\tdimensions = new int[\n\t\t\t\tReflect.getArrayDimensions(arrayClass) ];\n\n\t\t\t// compare with number of dimensions explicitly specified\n\t\t\tif (dimensions.length != arrayDims)\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\"Incompatible initializer. Allocation calls for a \" + \n\t\t\t\tarrayDims + \" dimensional array, but initializer is a \" +\n\t\t\t\t\tdimensions.length + \" dimensional array\", this);\n\n\t\t\t// fill in dimensions[] lengths\n\t\t\tObject arraySlice = initValue;\n\t\t\tfor(int i = 0; i < dimensions.length; i++) {\n\t\t\t\tdimensions[i] = Array.getLength( arraySlice );\n\t\t\t\tif ( dimensions[i] > 0 )\n\t\t\t\t\tarraySlice = Array.get(arraySlice, 0);\n\t\t\t}\n\n\t\t\treturn initValue;\n\t\t}\n\t\telse \n\t\t// evaluate the dimensions of the array\n\t\t{\n\t\t\tdimensions = new int[ jjtGetNumChildren() ];\n\t\t\tfor(int i = 0; i < dimensions.length; i++)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tObject length = ((SimpleNode)jjtGetChild(i)).eval(\n\t\t\t\t\t\tcallstack, interpreter);\n\t\t\t\t\tdimensions[i] = ((Primitive)length).intValue();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\t\"Array index: \" + i + \n\t\t\t\t\t\t\" does not evaluate to an integer\", this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n        return Primitive.VOID;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "TRY", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [7, 15], [2, 16], [9, 17], [11, 18], [11, 19], [2, 20], [14, 21], [14, 22], [3, 23], [7, 24], [9, 25], [18, 26], [12, 27], [21, 28], [22, 29], [23, 30], [24, 31], [24, 32], [7, 33], [16, 34], [25, 35], [9, 36], [9, 37], [26, 38], [20, 39], [28, 40], [31, 41], [24, 42], [25, 43], [35, 44], [36, 45], [38, 46], [38, 47], [41, 48], [43, 49], [47, 50], [48, 51], [32, 52], [49, 53], [50, 54], [50, 55], [51, 56], [51, 57], [55, 58], [57, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 7], [16, 2], [17, 9], [18, 11], [19, 11], [20, 2], [21, 14], [22, 14], [23, 3], [24, 7], [25, 9], [26, 18], [27, 12], [28, 21], [29, 22], [30, 23], [31, 24], [32, 24], [33, 7], [34, 16], [35, 25], [36, 9], [37, 9], [38, 26], [39, 20], [40, 28], [41, 31], [42, 24], [43, 25], [44, 35], [45, 36], [46, 38], [47, 38], [48, 41], [49, 43], [50, 47], [51, 48], [52, 32], [53, 49], [54, 50], [55, 50], [56, 51], [57, 51], [58, 55], [59, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "BSHArrayDimensions", "code": "    BSHArrayDimensions(int id) { super(id); }", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-2891", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/mina/MinaConsumer.java", "language": "java", "name": "org.apache.camel.component.mina.MinaConsumer", "code": "public class MinaConsumer extends DefaultConsumer<MinaExchange> {\n    private static final transient Log LOG = LogFactory.getLog(MinaConsumer.class);\n\n    private final MinaEndpoint endpoint;\n    private final SocketAddress address;\n    private final IoAcceptor acceptor;\n    private boolean sync;\n\n    public MinaConsumer(final MinaEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n        this.address = endpoint.getAddress();\n        this.acceptor = endpoint.getAcceptor();\n        this.sync = endpoint.isSync();\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        if (LOG.isInfoEnabled()) {\n            LOG.info(\"Binding to server address: \" + address + \" using acceptor: \" + acceptor);\n        }\n\n        IoHandler handler = new ReceiveHandler();\n        acceptor.bind(address, handler, endpoint.getAcceptorConfig());\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        if (LOG.isInfoEnabled()) {\n            LOG.info(\"Unbinding from server address: \" + address + \" using acceptor: \" + acceptor);\n        }\n        acceptor.unbind(address);\n        super.doStop();\n    }\n\n    /**\n     * Handles comsuming messages and replying if the exchange is out capable.\n     */\n    private final class ReceiveHandler extends IoHandlerAdapter {\n\n        @Override\n        public void exceptionCaught(IoSession session, Throwable cause) throws Exception {\n            if (session != null) {\n                LOG.debug(\"Closing session as an exception was thrown from MINA\");\n                session.close();\n            }\n\n            throw new CamelException(cause);\n        }\n\n        @Override\n        public void messageReceived(IoSession session, Object object) throws Exception {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Received body: \" + object);\n            }\n\n            MinaExchange exchange = endpoint.createExchange(session, object);\n            if (endpoint.getCharsetName() != null) {\n                exchange.setProperty(Exchange.CHARSET_NAME, endpoint.getCharsetName());\n            }\n            getProcessor().process(exchange);\n\n            if (sync) {\n                Object body;\n                if (ExchangeHelper.isOutCapable(exchange)) {\n                    body = MinaPayloadHelper.getOut(endpoint, exchange);\n                } else {\n                    body = MinaPayloadHelper.getIn(endpoint, exchange);\n                }\n                boolean failed = exchange.isFailed();\n                if (failed && !endpoint.isTransferExchange()) {\n                    if (exchange.getException() != null) {\n                        body = exchange.getException();\n                    } else {\n                        body = exchange.getFault().getBody();\n                    }\n                }\n\n                if (body == null) {\n                    LOG.warn(\"Can not write body since its null, closing session: \" + exchange);\n                    session.close();\n                } else {\n                    if (LOG.isDebugEnabled()) {\n                        LOG.debug(\"Writing body: \" + body);\n                    }\n                    MinaHelper.writeBody(session, body, exchange);", "functions": [{"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        if (LOG.isInfoEnabled()) {\n            LOG.info(\"Binding to server address: \" + address + \" using acceptor: \" + acceptor);\n        }\n\n        IoHandler handler = new ReceiveHandler();\n        acceptor.bind(address, handler, endpoint.getAcceptorConfig());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 6], [2, 7], [7, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 1], [7, 2], [8, 7], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        if (LOG.isInfoEnabled()) {\n            LOG.info(\"Unbinding from server address: \" + address + \" using acceptor: \" + acceptor);\n        }\n        acceptor.unbind(address);\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "MinaConsumer", "code": "    public MinaConsumer(final MinaEndpoint endpoint, Processor processor) {\n        super(endpoint, processor);\n        this.endpoint = endpoint;\n        this.address = endpoint.getAddress();\n        this.acceptor = endpoint.getAcceptor();\n        this.sync = endpoint.isSync();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 0}
{"sample_id": "camel-1.4-2319", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/ThreadProcessor.java", "language": "java", "name": "org.apache.camel.processor.ThreadProcessor", "code": "public class ThreadProcessor implements AsyncProcessor, Service {\n\n    private ThreadPoolExecutor executor;\n    private long stackSize;\n    private ThreadGroup threadGroup;\n    private int priority = Thread.NORM_PRIORITY;\n    private boolean daemon = true;\n    private String name = \"Thread Processor\";\n    private BlockingQueue<Runnable> taskQueue;\n    private long keepAliveTime;\n    private int maxSize = 1;\n    private int coreSize = 1;\n    private final AtomicBoolean shutdown = new AtomicBoolean(true);\n    private boolean callerRunsWhenRejected = true;\n\n    class ProcessCall implements Runnable {\n        private final Exchange exchange;\n        private final AsyncCallback callback;\n\n        public ProcessCall(Exchange exchange, AsyncCallback callback) {\n            this.exchange = exchange;\n            this.callback = callback;\n        }\n\n        public void run() {\n            if (shutdown.get()) {\n                exchange.setException(new RejectedExecutionException());\n            }\n            callback.done(false);\n        }\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        AsyncProcessorHelper.process(this, exchange);\n    }\n\n    public boolean process(final Exchange exchange, final AsyncCallback callback) {\n        if (shutdown.get()) {\n            throw new IllegalStateException(\"ThreadProcessor is not running.\");\n        }\n        ProcessCall call = new ProcessCall(exchange, callback);\n        try {\n            executor.execute(call);\n            return false;\n        } catch (RejectedExecutionException e) {\n            if (callerRunsWhenRejected) {\n                if (shutdown.get()) {\n                    exchange.setException(new RejectedExecutionException());\n                } else {\n                    callback.done(true);\n                }\n            } else {\n                exchange.setException(e);\n            }\n            return true;\n        }\n    }\n\n    public void start() throws Exception {\n        shutdown.set(false);\n        getExecutor();\n    }\n\n    public void stop() throws Exception {\n        shutdown.set(true);\n        executor.shutdown();\n        executor.awaitTermination(0, TimeUnit.SECONDS);\n    }\n\n    public long getStackSize() {\n        return stackSize;\n    }\n\n    public void setStackSize(long stackSize) {\n        this.stackSize = stackSize;\n    }\n\n    public ThreadGroup getThreadGroup() {\n        return threadGroup;\n    }\n\n    public void setThreadGroup(ThreadGroup threadGroup) {\n        this.threadGroup = threadGroup;\n    }\n\n    public int getPriority() {\n        return priority;\n    }\n\n    public void setPriority(int priority) {\n        this.priority = priority;\n    }\n\n    public boolean isDaemon() {\n        return daemon;\n    }\n\n    public void setDaemon(boolean daemon) {\n        this.daemon = daemon;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public long getKeepAliveTime() {\n        return keepAliveTime;\n    }\n\n    public void setKeepAliveTime(long keepAliveTime) {\n        this.keepAliveTime = keepAliveTime;\n    }\n\n    public int getMaxSize() {\n        return maxSize;\n    }\n\n    public void setMaxSize(int maxSize) {\n        this.maxSize = maxSize;\n    }\n\n    public int getCoreSize() {\n        return coreSize;\n    }\n\n    public void setCoreSize(int coreSize) {\n        this.coreSize = coreSize;\n    }\n\n    public BlockingQueue<Runnable> getTaskQueue() {\n        if (taskQueue == null) {\n            taskQueue = new ArrayBlockingQueue<Runnable>(1000);\n        }\n        return taskQueue;\n    }\n\n    public void setTaskQueue(BlockingQueue<Runnable> taskQueue) {\n        this.taskQueue = taskQueue;\n    }\n\n    public ThreadPoolExecutor getExecutor() {\n        if (executor == null) {\n            executor = new ThreadPoolExecutor(getCoreSize(), getMaxSize(), getKeepAliveTime(), TimeUnit.MILLISECONDS, getTaskQueue(), new ThreadFactory() {\n                public Thread newThread(Runnable runnable) {\n                    Thread thread;\n                    if (getStackSize() > 0) {\n                        thread = new Thread(getThreadGroup(), runnable, getName(), getStackSize());\n                    } else {\n                        thread = new Thread(getThreadGroup(), runnable, getName());\n                    }\n                    thread.setDaemon(isDaemon());\n                    thread.setPriority(getPriority());\n                    return thread;\n                }\n            });\n        }\n        return executor;\n    }\n\n    public void setExecutor(ThreadPoolExecutor executor) {\n        this.executor = executor;\n    }\n\n    public boolean isCallerRunsWhenRejected() {\n        return callerRunsWhenRejected;\n    }\n\n    public void setCallerRunsWhenRejected(boolean callerRunsWhenRejected) {\n        this.callerRunsWhenRejected = callerRunsWhenRejected;", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        AsyncProcessorHelper.process(this, exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "process", "code": "    public boolean process(final Exchange exchange, final AsyncCallback callback) {\n        if (shutdown.get()) {\n            throw new IllegalStateException(\"ThreadProcessor is not running.\");\n        }\n        ProcessCall call = new ProcessCall(exchange, callback);\n        try {\n            executor.execute(call);\n            return false;\n        } catch (RejectedExecutionException e) {\n            if (callerRunsWhenRejected) {\n                if (shutdown.get()) {\n                    exchange.setException(new RejectedExecutionException());\n                } else {\n                    callback.done(true);\n                }\n            } else {\n                exchange.setException(e);\n            }\n            return true;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "PARAM", "PARAM", "CATCH", "RETURN", "CALL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [6, 9], [6, 10], [7, 11], [1, 12], [2, 13], [3, 14], [9, 15], [14, 16], [10, 17], [16, 18], [10, 19], [17, 20], [17, 21], [17, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 6], [10, 6], [11, 7], [12, 1], [13, 2], [14, 3], [15, 9], [16, 14], [17, 10], [18, 16], [19, 10], [20, 17], [21, 17], [22, 17], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "start", "code": "    public void start() throws Exception {\n        shutdown.set(false);\n        getExecutor();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "stop", "code": "    public void stop() throws Exception {\n        shutdown.set(true);\n        executor.shutdown();\n        executor.awaitTermination(0, TimeUnit.SECONDS);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getStackSize", "code": "    public long getStackSize() {\n        return stackSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStackSize", "code": "    public void setStackSize(long stackSize) {\n        this.stackSize = stackSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getThreadGroup", "code": "    public ThreadGroup getThreadGroup() {\n        return threadGroup;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setThreadGroup", "code": "    public void setThreadGroup(ThreadGroup threadGroup) {\n        this.threadGroup = threadGroup;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPriority", "code": "    public int getPriority() {\n        return priority;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPriority", "code": "    public void setPriority(int priority) {\n        this.priority = priority;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDaemon", "code": "    public boolean isDaemon() {\n        return daemon;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDaemon", "code": "    public void setDaemon(boolean daemon) {\n        this.daemon = daemon;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getKeepAliveTime", "code": "    public long getKeepAliveTime() {\n        return keepAliveTime;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setKeepAliveTime", "code": "    public void setKeepAliveTime(long keepAliveTime) {\n        this.keepAliveTime = keepAliveTime;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaxSize", "code": "    public int getMaxSize() {\n        return maxSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMaxSize", "code": "    public void setMaxSize(int maxSize) {\n        this.maxSize = maxSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCoreSize", "code": "    public int getCoreSize() {\n        return coreSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCoreSize", "code": "    public void setCoreSize(int coreSize) {\n        this.coreSize = coreSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTaskQueue", "code": "    public BlockingQueue<Runnable> getTaskQueue() {\n        if (taskQueue == null) {\n            taskQueue = new ArrayBlockingQueue<Runnable>(1000);\n        }\n        return taskQueue;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setTaskQueue", "code": "    public void setTaskQueue(BlockingQueue<Runnable> taskQueue) {\n        this.taskQueue = taskQueue;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExecutor", "code": "    public ThreadPoolExecutor getExecutor() {\n        if (executor == null) {\n            executor = new ThreadPoolExecutor(getCoreSize(), getMaxSize(), getKeepAliveTime(), TimeUnit.MILLISECONDS, getTaskQueue(), new ThreadFactory() {\n                public Thread newThread(Runnable runnable) {\n                    Thread thread;\n                    if (getStackSize() > 0) {\n                        thread = new Thread(getThreadGroup(), runnable, getName(), getStackSize());\n                    } else {\n                        thread = new Thread(getThreadGroup(), runnable, getName());\n                    }\n                    thread.setDaemon(isDaemon());\n                    thread.setPriority(getPriority());\n                    return thread;\n                }\n            });\n        }\n        return executor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [7, 12], [12, 13], [12, 14], [12, 15], [12, 16], [12, 17], [12, 18], [14, 19], [17, 20], [18, 21], [19, 22], [19, 23], [14, 24], [14, 25], [24, 26], [25, 27], [26, 28], [26, 29], [27, 30], [27, 31], [27, 32], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [8, 6], [9, 6], [10, 6], [11, 6], [12, 7], [13, 12], [14, 12], [15, 12], [16, 12], [17, 12], [18, 12], [19, 14], [20, 17], [21, 18], [22, 19], [23, 19], [24, 14], [25, 14], [26, 24], [27, 25], [28, 26], [29, 26], [30, 27], [31, 27], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "setExecutor", "code": "    public void setExecutor(ThreadPoolExecutor executor) {\n        this.executor = executor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isCallerRunsWhenRejected", "code": "    public boolean isCallerRunsWhenRejected() {\n        return callerRunsWhenRejected;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCallerRunsWhenRejected", "code": "    public void setCallerRunsWhenRejected(boolean callerRunsWhenRejected) {\n        this.callerRunsWhenRejected = callerRunsWhenRejected;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6609", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/util/TestGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.TestGenerator", "code": "public final class TestGenerator extends MethodGenerator {\n    private static int CONTEXT_NODE_INDEX = 1;\n    private static int CURRENT_NODE_INDEX = 4;\n    private static int ITERATOR_INDEX = 6;\n\n    private Instruction _aloadDom;\n    private final Instruction _iloadCurrent;\n    private final Instruction _iloadContext;\n    private final Instruction _istoreCurrent;\n    private final Instruction _istoreContext;\n    private final Instruction _astoreIterator;\n    private final Instruction _aloadIterator;\n\n    public TestGenerator(int access_flags, Type return_type,\n\t\t\t Type[] arg_types, String[] arg_names,\n\t\t\t String method_name, String class_name,\n\t\t\t InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_iloadCurrent  = new ILOAD(CURRENT_NODE_INDEX);\n\t_istoreCurrent = new ISTORE(CURRENT_NODE_INDEX);\n\t_iloadContext  = new ILOAD(CONTEXT_NODE_INDEX);\n\t_istoreContext  = new ILOAD(CONTEXT_NODE_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\t_aloadIterator  = new ALOAD(ITERATOR_INDEX);\n    }\n\n    public int getHandlerIndex() {\n    }\n\n    public int getIteratorIndex() {\n    }\n\n    public void setDomIndex(int domIndex) {\n\t_aloadDom = new ALOAD(domIndex);\n    }\n\n    public Instruction loadDOM() {\n\treturn _aloadDom;\n    }\n\n    public Instruction loadCurrentNode() {\n\treturn _iloadCurrent;\n    }\n\n    /** by default context node is the same as current node. MK437 */\n    public Instruction loadContextNode() {\n\treturn _iloadContext;\n    }\n\n    public Instruction storeContextNode() {\n\treturn _istoreContext;\n    }\n\n    public Instruction storeCurrentNode() {\n\treturn _istoreCurrent;\n    }\n\n    public Instruction storeIterator() {\n\treturn _astoreIterator;\n    }\n    \n    public Instruction loadIterator() {\n\treturn _aloadIterator;\n    }\n\n    public int getLocalIndex(String name) {\n\tif (name.equals(\"current\")) {\n\t    return CURRENT_NODE_INDEX;\n\t}\n\telse {\n\t    return super.getLocalIndex(name);", "functions": [{"function_name": "getHandlerIndex", "code": "    public int getHandlerIndex() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIteratorIndex", "code": "    public int getIteratorIndex() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setDomIndex", "code": "    public void setDomIndex(int domIndex) {\n\t_aloadDom = new ALOAD(domIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "loadDOM", "code": "    public Instruction loadDOM() {\n\treturn _aloadDom;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadCurrentNode", "code": "    public Instruction loadCurrentNode() {\n\treturn _iloadCurrent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadContextNode", "code": "    public Instruction loadContextNode() {\n\treturn _iloadContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeContextNode", "code": "    public Instruction storeContextNode() {\n\treturn _istoreContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeCurrentNode", "code": "    public Instruction storeCurrentNode() {\n\treturn _istoreCurrent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeIterator", "code": "    public Instruction storeIterator() {\n\treturn _astoreIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadIterator", "code": "    public Instruction loadIterator() {\n\treturn _aloadIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {\n\tif (name.equals(\"current\")) {\n\t    return CURRENT_NODE_INDEX;\n\t}\n\telse {\n\t    return super.getLocalIndex(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "TestGenerator", "code": "    public TestGenerator(int access_flags, Type return_type,\n\t\t\t Type[] arg_types, String[] arg_names,\n\t\t\t String method_name, String class_name,\n\t\t\t InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_iloadCurrent  = new ILOAD(CURRENT_NODE_INDEX);\n\t_istoreCurrent = new ISTORE(CURRENT_NODE_INDEX);\n\t_iloadContext  = new ILOAD(CONTEXT_NODE_INDEX);\n\t_istoreContext  = new ILOAD(CONTEXT_NODE_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\t_aloadIterator  = new ALOAD(ITERATOR_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}], "label": 0}
{"sample_id": "ivy-2.0-3480", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/cache/ParserSettingsMonitor.java", "language": "java", "name": "org.apache.ivy.core.cache.ParserSettingsMonitor", "code": "class ParserSettingsMonitor {\n\n    private ParserSettings delegatedSettings;\n    private final Map/*<String,String>*/ substitutes;\n    \n    \n    public ParserSettingsMonitor(ParserSettings settings) {\n        this.delegatedSettings = settings;\n        this.substitutes = new HashMap();\n    }\n    \n    /**\n     * @return The parser settings that must be used in place of the orignal settings\n     * The returned object delegates all the call to the original settings.\n     */\n    public ParserSettings getMonitoredSettings() {\n        return monitoredSettings;\n    }\n    \n    /**\n     * Free the ressource used during the monitoring, keeping only the info\n     * required to evaluate hasChanged.\n     */\n    public void endMonitoring() {\n        monitoredSettings = null;\n        delegatedSettings = null;\n    }\n    \n    /**\n     * Check if the newSettings is compatible with the original settings that\n     * has been monitored.  Only the info that was actually used is compared.\n     */\n    public boolean hasChanged(ParserSettings newSettings) {\n        for (Iterator it = substitutes.entrySet().iterator(); it.hasNext();) {\n            Map.Entry entry = (Entry) it.next();\n            String key = (String) entry.getKey();\n            Object oldValue = entry.getValue();                \n            String newValue = newSettings.substitute(key);\n            if (!oldValue.equals(newValue)) {\n                Message.debug(\"settings variable has changed for : \" + entry.getKey());\n                return true;\n            }\n        }\n        return false;\n    }\n    \n    \n    private ParserSettings monitoredSettings = new ParserSettings() {\n\n        public ConflictManager getConflictManager(String name) {\n            return delegatedSettings.getConflictManager(name);\n        }\n\n        public PatternMatcher getMatcher(String matcherName) {\n            return delegatedSettings.getMatcher(matcherName);\n        }\n\n        public Namespace getNamespace(String namespace) {\n            return delegatedSettings.getNamespace(namespace);\n        }\n\n        public RelativeUrlResolver getRelativeUrlResolver() {\n            return delegatedSettings.getRelativeUrlResolver();\n        }\n\n        public ResolutionCacheManager getResolutionCacheManager() {\n            return delegatedSettings.getResolutionCacheManager();\n        }\n\n        public DependencyResolver getResolver(ModuleRevisionId mRevId) {\n            return delegatedSettings.getResolver(mRevId);\n        }\n\n        public StatusManager getStatusManager() {\n            return delegatedSettings.getStatusManager();\n        }\n        \n        public File getBaseDir() {\n            return delegatedSettings.getBaseDir();\n        }\n        \n        public File resolveFile(String filename) {\n            return delegatedSettings.resolveFile(filename);\n        }\n\n        public Map substitute(Map strings) {\n            Map substituted = new LinkedHashMap();\n            for (Iterator it = strings.entrySet().iterator(); it.hasNext();) {\n                Map.Entry entry = (Map.Entry) it.next();\n                substituted.put(entry.getKey(), substitute((String) entry.getValue()));\n            }\n            return substituted;\n        }\n\n        public String substitute(String value) {\n            String r = delegatedSettings.substitute(value);\n            if (value != null && value != r) {\n                substitutes.put(value, r);\n            }\n            return r;", "functions": [{"function_name": "getMonitoredSettings", "code": "    public ParserSettings getMonitoredSettings() {\n        return monitoredSettings;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endMonitoring", "code": "    public void endMonitoring() {\n        monitoredSettings = null;\n        delegatedSettings = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "hasChanged", "code": "    public boolean hasChanged(ParserSettings newSettings) {\n        for (Iterator it = substitutes.entrySet().iterator(); it.hasNext();) {\n            Map.Entry entry = (Entry) it.next();\n            String key = (String) entry.getKey();\n            Object oldValue = entry.getValue();                \n            String newValue = newSettings.substitute(key);\n            if (!oldValue.equals(newValue)) {\n                Message.debug(\"settings variable has changed for : \" + entry.getKey());\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [6, 11], [2, 12], [6, 13], [7, 14], [8, 15], [12, 16], [13, 17], [6, 18], [9, 19], [10, 20], [18, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 6], [12, 2], [13, 6], [14, 7], [15, 8], [16, 12], [17, 13], [18, 6], [19, 9], [20, 10], [21, 18], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "ParserSettingsMonitor", "code": "    public ParserSettingsMonitor(ParserSettings settings) {\n        this.delegatedSettings = settings;\n        this.substitutes = new HashMap();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.5-257", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/tar/TarOutputStream.java", "language": "java", "name": "org.apache.tools.tar.TarOutputStream", "code": "public class TarOutputStream extends FilterOutputStream {\n    /** Fail if a long file name is required in the archive. */\n    public static final int LONGFILE_ERROR = 0;\n    \n    /** Long paths will be truncated in the archive. */\n    public static final int LONGFILE_TRUNCATE = 1;\n    \n    /** GNU tar extensions are used to store long file names in the archive. */\n    public static final int LONGFILE_GNU = 2;\n    \n    protected boolean   debug;\n    protected int       currSize;\n    protected int       currBytes;\n    protected byte[]    oneBuf;\n    protected byte[]    recordBuf;\n    protected int       assemLen;\n    protected byte[]    assemBuf;\n    protected TarBuffer buffer;\n    protected int       longFileMode = LONGFILE_ERROR;\n\n    public TarOutputStream(OutputStream os) {\n        this(os, TarBuffer.DEFAULT_BLKSIZE, TarBuffer.DEFAULT_RCDSIZE);\n    }\n\n    public TarOutputStream(OutputStream os, int blockSize) {\n        this(os, blockSize, TarBuffer.DEFAULT_RCDSIZE);\n    }\n\n    public TarOutputStream(OutputStream os, int blockSize, int recordSize) {\n        super(os);\n\n        this.buffer = new TarBuffer(os, blockSize, recordSize);\n        this.debug = false;\n        this.assemLen = 0;\n        this.assemBuf = new byte[recordSize];\n        this.recordBuf = new byte[recordSize];\n        this.oneBuf = new byte[1];\n    }\n\n    public void setLongFileMode(int longFileMode) {\n        this.longFileMode = longFileMode;\n    }\n    \n\n    /**\n     * Sets the debugging flag.\n     * \n     * @param debugF True to turn on debugging.\n     */\n    public void setDebug(boolean debugF) {\n        this.debug = debugF;\n    } \n\n    /**\n     * Sets the debugging flag in this stream's TarBuffer.\n     * \n     * @param debugF True to turn on debugging.\n     */\n    public void setBufferDebug(boolean debug) {\n        this.buffer.setDebug(debug);\n    } \n\n    /**\n     * Ends the TAR archive without closing the underlying OutputStream.\n     * The result is that the EOF record of nulls is written.\n     */\n    public void finish() throws IOException {\n        this.writeEOFRecord();\n    } \n\n    /**\n     * Ends the TAR archive and closes the underlying OutputStream.\n     * This means that finish() is called followed by calling the\n     * TarBuffer's close().\n     */\n    public void close() throws IOException {\n        this.finish();\n        this.buffer.close();\n    } \n\n    /**\n     * Get the record size being used by this stream's TarBuffer.\n     * \n     * @return The TarBuffer record size.\n     */\n    public int getRecordSize() {\n        return this.buffer.getRecordSize();\n    } \n\n    /**\n     * Put an entry on the output stream. This writes the entry's\n     * header record and positions the output stream for writing\n     * the contents of the entry. Once this method is called, the\n     * stream is ready for calls to write() to write the entry's\n     * contents. Once the contents are written, closeEntry()\n     * <B>MUST</B> be called to ensure that all buffered data\n     * is completely written to the output stream.\n     * \n     * @param entry The TarEntry to be written to the archive.\n     */\n    public void putNextEntry(TarEntry entry) throws IOException {\n        if (entry.getName().length() >= TarConstants.NAMELEN) {\n\n            if (longFileMode == LONGFILE_GNU) {\n                TarEntry longLinkEntry = new TarEntry(TarConstants.GNU_LONGLINK,\n                                                      TarConstants.LF_GNUTYPE_LONGNAME);\n                 \n                longLinkEntry.setSize(entry.getName().length() + 1);\n                putNextEntry(longLinkEntry);                                                    \n                write(entry.getName().getBytes());\n                write(0);\n                closeEntry();\n            } else if (longFileMode != LONGFILE_TRUNCATE) {\n                throw new RuntimeException(\"file name '\" + entry.getName() \n                                             + \"' is too long ( > \" \n                                             + TarConstants.NAMELEN + \" bytes)\");\n            }\n        } \n\n        entry.writeEntryHeader(this.recordBuf);\n        this.buffer.writeRecord(this.recordBuf);\n\n        this.currBytes = 0;\n\n        if (entry.isDirectory()) {\n            this.currSize = 0;\n        } else {\n            this.currSize = (int) entry.getSize();\n        }\n    } \n\n    /**\n     * Close an entry. This method MUST be called for all file\n     * entries that contain data. The reason is that we must\n     * buffer data written to the stream in order to satisfy\n     * the buffer's record based writes. Thus, there may be\n     * data fragments still being assembled that must be written\n     * to the output stream before this entry is closed and the\n     * next entry written.\n     */\n    public void closeEntry() throws IOException {\n        if (this.assemLen > 0) {\n            for (int i = this.assemLen; i < this.assemBuf.length; ++i) {\n                this.assemBuf[i] = 0;\n            }\n\n            this.buffer.writeRecord(this.assemBuf);\n\n            this.currBytes += this.assemLen;\n            this.assemLen = 0;\n        } \n\n        if (this.currBytes < this.currSize) {\n            throw new IOException(\"entry closed at '\" + this.currBytes \n                                  + \"' before the '\" + this.currSize \n                                  + \"' bytes specified in the header were written\");\n        } \n    } \n\n    /**\n     * Writes a byte to the current tar archive entry.\n     * \n     * This method simply calls read( byte[], int, int ).\n     * \n     * @param b The byte written.\n     */\n    public void write(int b) throws IOException {\n        this.oneBuf[0] = (byte) b;\n\n        this.write(this.oneBuf, 0, 1);\n    } \n\n    /**\n     * Writes bytes to the current tar archive entry.\n     * \n     * This method simply calls write( byte[], int, int ).\n     * \n     * @param wBuf The buffer to write to the archive.\n     * @return The number of bytes read, or -1 at EOF.\n     */\n    public void write(byte[] wBuf) throws IOException {\n        this.write(wBuf, 0, wBuf.length);\n    } \n\n    /**\n     * Writes bytes to the current tar archive entry. This method\n     * is aware of the current entry and will throw an exception if\n     * you attempt to write bytes past the length specified for the\n     * current entry. The method is also (painfully) aware of the\n     * record buffering required by TarBuffer, and manages buffers\n     * that are not a multiple of recordsize in length, including\n     * assembling records from small buffers.\n     * \n     * @param wBuf The buffer to write to the archive.\n     * @param wOffset The offset in the buffer from which to get bytes.\n     * @param numToWrite The number of bytes to write.\n     */\n    public void write(byte[] wBuf, int wOffset, int numToWrite) throws IOException {\n        if ((this.currBytes + numToWrite) > this.currSize) {\n            throw new IOException(\"request to write '\" + numToWrite \n                                  + \"' bytes exceeds size in header of '\" \n                                  + this.currSize + \"' bytes\");\n\n        } \n\n        if (this.assemLen > 0) {\n            if ((this.assemLen + numToWrite) >= this.recordBuf.length) {\n                int aLen = this.recordBuf.length - this.assemLen;\n\n                System.arraycopy(this.assemBuf, 0, this.recordBuf, 0, \n                                 this.assemLen);\n                System.arraycopy(wBuf, wOffset, this.recordBuf, \n                                 this.assemLen, aLen);\n                this.buffer.writeRecord(this.recordBuf);\n\n                this.currBytes += this.recordBuf.length;\n                wOffset += aLen;\n                numToWrite -= aLen;\n                this.assemLen = 0;\n            } else {\n                System.arraycopy(wBuf, wOffset, this.assemBuf, this.assemLen, \n                                 numToWrite);\n\n                wOffset += numToWrite;\n                this.assemLen += numToWrite;\n                numToWrite -= numToWrite;\n            } \n        } \n\n        while (numToWrite > 0) {\n            if (numToWrite < this.recordBuf.length) {\n                System.arraycopy(wBuf, wOffset, this.assemBuf, this.assemLen, \n                                 numToWrite);\n\n                this.assemLen += numToWrite;\n\n                break;\n            } \n\n            this.buffer.writeRecord(wBuf, wOffset);\n\n            int num = this.recordBuf.length;\n\n            this.currBytes += num;\n            numToWrite -= num;\n            wOffset += num;\n        } \n    } \n\n    /**\n     * Write an EOF (end of archive) record to the tar archive.\n     * An EOF record consists of a record of all zeros.\n     */\n    private void writeEOFRecord() throws IOException {\n        for (int i = 0; i < this.recordBuf.length; ++i) {\n            this.recordBuf[i] = 0;\n        }\n\n        this.buffer.writeRecord(this.recordBuf);", "functions": [{"function_name": "setLongFileMode", "code": "    public void setLongFileMode(int longFileMode) {\n        this.longFileMode = longFileMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDebug", "code": "    public void setDebug(boolean debugF) {\n        this.debug = debugF;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBufferDebug", "code": "    public void setBufferDebug(boolean debug) {\n        this.buffer.setDebug(debug);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "finish", "code": "    public void finish() throws IOException {\n        this.writeEOFRecord();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "close", "code": "    public void close() throws IOException {\n        this.finish();\n        this.buffer.close();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize() {\n        return this.buffer.getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "putNextEntry", "code": "    public void putNextEntry(TarEntry entry) throws IOException {\n        if (entry.getName().length() >= TarConstants.NAMELEN) {\n\n            if (longFileMode == LONGFILE_GNU) {\n                TarEntry longLinkEntry = new TarEntry(TarConstants.GNU_LONGLINK,\n                                                      TarConstants.LF_GNUTYPE_LONGNAME);\n                 \n                longLinkEntry.setSize(entry.getName().length() + 1);\n                putNextEntry(longLinkEntry);                                                    \n                write(entry.getName().getBytes());\n                write(0);\n                closeEntry();\n            } else if (longFileMode != LONGFILE_TRUNCATE) {\n                throw new RuntimeException(\"file name '\" + entry.getName() \n                                             + \"' is too long ( > \" \n                                             + TarConstants.NAMELEN + \" bytes)\");\n            }\n        } \n\n        entry.writeEntryHeader(this.recordBuf);\n        this.buffer.writeRecord(this.recordBuf);\n\n        this.currBytes = 0;\n\n        if (entry.isDirectory()) {\n            this.currSize = 0;\n        } else {\n            this.currSize = (int) entry.getSize();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [2, 7], [5, 8], [0, 9], [2, 10], [7, 11], [1, 12], [1, 13], [10, 14], [10, 15], [11, 16], [13, 17], [14, 18], [10, 19], [12, 20], [14, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [21, 27], [23, 28], [24, 29], [26, 30], [19, 31], [27, 32], [29, 33], [30, 34], [30, 35], [32, 36], [32, 37], [35, 38], [37, 39], [39, 40], [39, 41], [41, 42], [41, 43], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 2], [8, 5], [9, 0], [10, 2], [11, 7], [12, 1], [13, 1], [14, 10], [15, 10], [16, 11], [17, 13], [18, 14], [19, 10], [20, 12], [21, 14], [22, 10], [23, 10], [24, 10], [25, 10], [26, 10], [27, 21], [28, 23], [29, 24], [30, 26], [31, 19], [32, 27], [33, 29], [34, 30], [35, 30], [36, 32], [37, 32], [38, 35], [39, 37], [40, 39], [41, 39], [42, 41], [43, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "closeEntry", "code": "    public void closeEntry() throws IOException {\n        if (this.assemLen > 0) {\n            for (int i = this.assemLen; i < this.assemBuf.length; ++i) {\n                this.assemBuf[i] = 0;\n            }\n\n            this.buffer.writeRecord(this.assemBuf);\n\n            this.currBytes += this.assemLen;\n            this.assemLen = 0;\n        } \n\n        if (this.currBytes < this.currSize) {\n            throw new IOException(\"entry closed at '\" + this.currBytes \n                                  + \"' before the '\" + this.currSize \n                                  + \"' bytes specified in the header were written\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LOOP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [2, 6], [4, 7], [5, 8], [2, 9], [2, 10], [6, 11], [8, 12], [9, 13], [2, 14], [12, 15], [12, 16], [6, 17], [16, 18], [17, 19], [18, 20], [18, 21], [21, 22], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 2], [7, 4], [8, 5], [9, 2], [10, 2], [11, 6], [12, 8], [13, 9], [14, 2], [15, 12], [16, 12], [17, 6], [18, 16], [19, 17], [20, 18], [21, 18], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "write", "code": "    public void write(int b) throws IOException {\n        this.oneBuf[0] = (byte) b;\n\n        this.write(this.oneBuf, 0, 1);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "write", "code": "    public void write(byte[] wBuf) throws IOException {\n        this.write(wBuf, 0, wBuf.length);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "write", "code": "    public void write(byte[] wBuf, int wOffset, int numToWrite) throws IOException {\n        if ((this.currBytes + numToWrite) > this.currSize) {\n            throw new IOException(\"request to write '\" + numToWrite \n                                  + \"' bytes exceeds size in header of '\" \n                                  + this.currSize + \"' bytes\");\n\n        } \n\n        if (this.assemLen > 0) {\n            if ((this.assemLen + numToWrite) >= this.recordBuf.length) {\n                int aLen = this.recordBuf.length - this.assemLen;\n\n                System.arraycopy(this.assemBuf, 0, this.recordBuf, 0, \n                                 this.assemLen);\n                System.arraycopy(wBuf, wOffset, this.recordBuf, \n                                 this.assemLen, aLen);\n                this.buffer.writeRecord(this.recordBuf);\n\n                this.currBytes += this.recordBuf.length;\n                wOffset += aLen;\n                numToWrite -= aLen;\n                this.assemLen = 0;\n            } else {\n                System.arraycopy(wBuf, wOffset, this.assemBuf, this.assemLen, \n                                 numToWrite);\n\n                wOffset += numToWrite;\n                this.assemLen += numToWrite;\n                numToWrite -= numToWrite;\n            } \n        } \n\n        while (numToWrite > 0) {\n            if (numToWrite < this.recordBuf.length) {\n                System.arraycopy(wBuf, wOffset, this.assemBuf, this.assemLen, \n                                 numToWrite);\n\n                this.assemLen += numToWrite;\n\n                break;\n            } \n\n            this.buffer.writeRecord(wBuf, wOffset);\n\n            int num = this.recordBuf.length;\n\n            this.currBytes += num;\n            numToWrite -= num;\n            wOffset += num;", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [1, 10], [1, 11], [7, 12], [2, 13], [8, 14], [3, 15], [9, 16], [1, 17], [1, 18], [1, 19], [11, 20], [13, 21], [15, 22], [1, 23], [11, 24], [13, 25], [21, 26], [22, 27], [11, 28], [11, 29], [13, 30], [13, 31], [13, 32], [13, 33], [13, 34], [13, 35], [13, 36], [13, 37], [13, 38], [13, 39], [27, 40], [27, 41], [34, 42], [13, 43], [39, 44], [39, 45], [25, 46], [41, 47], [47, 48], [47, 49], [49, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 1], [11, 1], [12, 7], [13, 2], [14, 8], [15, 3], [16, 9], [17, 1], [18, 1], [19, 1], [20, 11], [21, 13], [22, 15], [23, 1], [24, 11], [25, 13], [26, 21], [27, 22], [28, 11], [29, 11], [30, 13], [31, 13], [32, 13], [33, 13], [34, 13], [35, 13], [36, 13], [37, 13], [38, 13], [39, 13], [40, 27], [41, 27], [42, 34], [43, 13], [44, 39], [45, 39], [46, 25], [47, 41], [48, 47], [49, 47], [50, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "writeEOFRecord", "code": "    private void writeEOFRecord() throws IOException {\n        for (int i = 0; i < this.recordBuf.length; ++i) {\n            this.recordBuf[i] = 0;\n        }\n\n        this.buffer.writeRecord(this.recordBuf);", "ast_nodes": ["FUNC_DECL", "LOOP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "TarOutputStream", "code": "    public TarOutputStream(OutputStream os) {\n        this(os, TarBuffer.DEFAULT_BLKSIZE, TarBuffer.DEFAULT_RCDSIZE);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "TarOutputStream", "code": "    public TarOutputStream(OutputStream os, int blockSize) {\n        this(os, blockSize, TarBuffer.DEFAULT_RCDSIZE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TarOutputStream", "code": "    public TarOutputStream(OutputStream os, int blockSize, int recordSize) {\n        super(os);\n\n        this.buffer = new TarBuffer(os, blockSize, recordSize);\n        this.debug = false;\n        this.assemLen = 0;\n        this.assemBuf = new byte[recordSize];\n        this.recordBuf = new byte[recordSize];\n        this.oneBuf = new byte[1];", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [8, 11], [9, 12], [4, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 8], [12, 9], [13, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 0}
{"sample_id": "xalan-2.4-6671", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/ElemElement.java", "language": "java", "name": "org.apache.xalan.templates.ElemElement", "code": "public class ElemElement extends ElemUse\n{\n\n  /**\n   * The name attribute is interpreted as an attribute value template.\n   * It is an error if the string that results from instantiating the\n   * attribute value template is not a QName.\n   * @serial\n   */\n  protected AVT m_name_avt = null;\n\n  /**\n   * Set the \"name\" attribute.\n   * The name attribute is interpreted as an attribute value template.\n   * It is an error if the string that results from instantiating the\n   * attribute value template is not a QName.\n   *\n   * @param v Name attribute to set for this element\n   */\n  public void setName(AVT v)\n  {\n    m_name_avt = v;\n  }\n\n  /**\n   * Get the \"name\" attribute.\n   * The name attribute is interpreted as an attribute value template.\n   * It is an error if the string that results from instantiating the\n   * attribute value template is not a QName.\n   *\n   * @return Name attribute for this element\n   */\n  public AVT getName()\n  {\n    return m_name_avt;\n  }\n\n  /**\n   * If the namespace attribute is present, then it also is interpreted\n   * as an attribute value template. The string that results from\n   * instantiating the attribute value template should be a URI reference.\n   * It is not an error if the string is not a syntactically legal URI reference.\n   * @serial\n   */\n  protected AVT m_namespace_avt = null;\n\n  /**\n   * Set the \"namespace\" attribute.\n   * If the namespace attribute is present, then it also is interpreted\n   * as an attribute value template. The string that results from\n   * instantiating the attribute value template should be a URI reference.\n   * It is not an error if the string is not a syntactically legal URI reference.\n   *\n   * @param v NameSpace attribute to set for this element\n   */\n  public void setNamespace(AVT v)\n  {\n    m_namespace_avt = v;\n  }\n\n  /**\n   * Get the \"namespace\" attribute.\n   * If the namespace attribute is present, then it also is interpreted\n   * as an attribute value template. The string that results from\n   * instantiating the attribute value template should be a URI reference.\n   * It is not an error if the string is not a syntactically legal URI reference.\n   *\n   * @return Namespace attribute for this element\n   */\n  public AVT getNamespace()\n  {\n    return m_namespace_avt;\n  }\n  \n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    \n    StylesheetRoot.ComposeState cstate = sroot.getComposeState();\n    java.util.Vector vnames = cstate.getVariableNames();\n    if(null != m_name_avt)\n      m_name_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_namespace_avt)\n      m_namespace_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n  }\n\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   * @return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_ELEMENT;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return This element's name \n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_ELEMENT_STRING;\n  }\n  \n  /**\n   * Validate that the node name is good.\n   * \n   * @param nodeName Name of the node being constructed, which may be null.\n   * \n   * @return true if the node name is valid, false otherwise.\n   */\n   protected boolean validateNodeName(String nodeName)\n   {\n    if(nodeName == null)\n      return false;\n\n    int len = nodeName.length();\n    \n    if(len == 0)\n      return false;\n      \n    int indexOfNSSep = nodeName.indexOf(':');\n\n    if(indexOfNSSep + 1 == len)\n      return false;\n      \n    if(indexOfNSSep == 0)\n      return false;\n      \n    String localName = QName.getLocalPart(nodeName);\n      \n    if(isValidNCName(localName))\n    {\n      String prefix = QName.getPrefixPart(nodeName);\n      if(prefix.length() == 0)\n        return true;\n      if(isValidNCName(prefix))\n        return true;\n    }\n\n    return false;\n   }\n   \n  /**\n   * Resolve the namespace into a prefix.  Meant to be\n   * overidded by elemAttribute if this class is derived.\n   *\n   * @param rhandler The current result tree handler.\n   * @param prefix The probable prefix if already known.\n   * @param nodeNamespace  The namespace.\n   *\n   * @return The prefix to be used.\n   */\n  protected String resolvePrefix(ResultTreeHandler rhandler,\n                                 String prefix, String nodeNamespace)\n    throws TransformerException\n  {\n\n    return prefix;\n  }\n    \n  /**\n   * Create an element in the result tree.\n   * The xsl:element element allows an element to be created with a\n   * computed name. The expanded-name of the element to be created\n   * is specified by a required name attribute and an optional namespace\n   * attribute. The content of the xsl:element element is a template\n   * for the attributes and children of the created element.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    if (TransformerImpl.S_DEBUG)\n      transformer.getTraceManager().fireTraceEvent(this);\n      \n \tResultTreeHandler rhandler = transformer.getResultTreeHandler();\n    XPathContext xctxt = transformer.getXPathContext();\n    int sourceNode = xctxt.getCurrentNode();\n    \n    \n    String nodeName = m_name_avt == null ? null : m_name_avt.evaluate(xctxt, sourceNode, this);\n\n    String prefix = null;\n    String nodeNamespace = \"\";\n\n    if ((nodeName != null) && (!m_name_avt.isSimple()) && (!validateNodeName(nodeName)))\n    {\n      transformer.getMsgMgr().warn(\n        this, XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_VALUE,\n        new Object[]{ Constants.ATTRNAME_NAME, nodeName });\n\n      nodeName = null;\n    }\n\n    else if (nodeName != null)\n    {\n      prefix = QName.getPrefixPart(nodeName);\n\n      if (null != m_namespace_avt)\n      {\n        nodeNamespace = m_namespace_avt.evaluate(xctxt, sourceNode, this);\n        if (null == nodeNamespace || \n            (prefix != null && prefix.length()>0 && nodeNamespace.length()== 0) )\n          transformer.getMsgMgr().error(\n              this, XSLTErrorResources.ER_NULL_URI_NAMESPACE);\n        else\n        {\n\n        prefix = resolvePrefix(rhandler, prefix, nodeNamespace);\n        if (null == prefix)\n          prefix = \"\";\n\n        if (prefix.length() > 0)\n          nodeName = (prefix + \":\" + QName.getLocalPart(nodeName));\n        else\n          nodeName = QName.getLocalPart(nodeName);\n        }\n      }\n\n      else    \n      {\n        try\n        {\n          nodeNamespace = getNamespaceForPrefix(prefix);\n\n\n          if ( (null == nodeNamespace) && (prefix.length() == 0) )\n            nodeNamespace = \"\";\n          else if (null == nodeNamespace)\n          {\n            transformer.getMsgMgr().warn(\n              this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX,\n              new Object[]{ prefix });\n\n            nodeName = null;\n          }\n\n        }\n        catch (Exception ex)\n        {\n          transformer.getMsgMgr().warn(\n            this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX,\n            new Object[]{ prefix });\n\n          nodeName = null;\n        }\n      }\n    }\n\n    constructNode(nodeName, prefix, nodeNamespace, transformer);\n\n    if (TransformerImpl.S_DEBUG)\n      transformer.getTraceManager().fireTraceEndEvent(this);\n  }\n  \n  /**\n   * Construct a node in the result tree.  This method is overloaded by \n   * xsl:attribute. At this class level, this method creates an element.\n   * If the node is null, we instantiate only the content of the node in accordance\n   * with section 7.1.2 of the XSLT 1.0 Recommendation.\n   *\n   * @param nodeName The name of the node, which may be <code>null</code>.  If <code>null</code>,\n   *                 only the non-attribute children of this node will be processed.\n   * @param prefix The prefix for the namespace, which may be <code>null</code>.\n   *               If not <code>null</code>, this prefix will be mapped and unmapped.\n   * @param nodeNamespace The namespace of the node, which may be not be <code>null</code>.\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  void constructNode(\n          String nodeName, String prefix, String nodeNamespace, TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    boolean shouldAddAttrs;\n\n    try\n    {\n      ResultTreeHandler rhandler = transformer.getResultTreeHandler();\n\n      if (null == nodeName)\n      {\n        shouldAddAttrs = false;\n      }\n      else\n      {\n        executeNSDecls(transformer);\n\n        if (null != prefix)\n        {\n          rhandler.startPrefixMapping(prefix, nodeNamespace, true);\n        }\n\n        rhandler.startElement(nodeNamespace, QName.getLocalPart(nodeName),\n                              nodeName, null);\n\n        super.execute(transformer);\n\n        shouldAddAttrs = true;\n      }\n\n      transformer.executeChildTemplates(this, shouldAddAttrs);\n\n      if (null != nodeName)\n      {\n        rhandler.endElement(nodeNamespace, QName.getLocalPart(nodeName),\n                            nodeName);\n        if (null != prefix)\n        {\n          rhandler.endPrefixMapping(prefix);\n        }\n        unexecuteNSDecls(transformer);\n      }\n    }\n    catch (SAXException se)\n    {\n      throw new TransformerException(se);\n    }\n  }\n  \n  /**\n   * Call the children visitors.\n   * @param visitor The visitor whose appropriate method will be called.\n   */\n  protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n  {\n  \tif(callAttrs)\n  \t{\n  \t  if(null != m_name_avt)\n  \t\tm_name_avt.callVisitors(visitor);\n  \t\t\n  \t  if(null != m_namespace_avt)\n  \t\tm_namespace_avt.callVisitors(visitor);\n  \t}\n  \t\t\n    super.callChildVisitors(visitor, callAttrs);", "functions": [{"function_name": "setName", "code": "  public void setName(AVT v)\n  {\n    m_name_avt = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "  public AVT getName()\n  {\n    return m_name_avt;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamespace", "code": "  public void setNamespace(AVT v)\n  {\n    m_namespace_avt = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamespace", "code": "  public AVT getNamespace()\n  {\n    return m_namespace_avt;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    \n    StylesheetRoot.ComposeState cstate = sroot.getComposeState();\n    java.util.Vector vnames = cstate.getVariableNames();\n    if(null != m_name_avt)\n      m_name_avt.fixupVariables(vnames, cstate.getGlobalsSize());\n    if(null != m_namespace_avt)\n      m_namespace_avt.fixupVariables(vnames, cstate.getGlobalsSize());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [6, 9], [2, 10], [7, 11], [3, 12], [4, 13], [8, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 6], [10, 2], [11, 7], [12, 3], [13, 4], [14, 8], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_ELEMENT;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_ELEMENT_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "validateNodeName", "code": "   protected boolean validateNodeName(String nodeName)\n   {\n    if(nodeName == null)\n      return false;\n\n    int len = nodeName.length();\n    \n    if(len == 0)\n      return false;\n      \n    int indexOfNSSep = nodeName.indexOf(':');\n\n    if(indexOfNSSep + 1 == len)\n      return false;\n      \n    if(indexOfNSSep == 0)\n      return false;\n      \n    String localName = QName.getLocalPart(nodeName);\n      \n    if(isValidNCName(localName))\n    {\n      String prefix = QName.getPrefixPart(nodeName);\n      if(prefix.length() == 0)\n        return true;\n      if(isValidNCName(prefix))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [4, 13], [4, 14], [5, 15], [5, 16], [7, 17], [7, 18], [9, 19], [9, 20], [2, 21], [2, 22], [2, 23], [3, 24], [13, 25], [14, 26], [15, 27], [16, 28], [6, 29], [17, 30], [18, 31], [8, 32], [19, 33], [20, 34], [21, 35], [21, 36], [22, 37], [22, 38], [28, 39], [29, 40], [35, 41], [37, 42], [38, 43], [38, 44], [23, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 4], [14, 4], [15, 5], [16, 5], [17, 7], [18, 7], [19, 9], [20, 9], [21, 2], [22, 2], [23, 2], [24, 3], [25, 13], [26, 14], [27, 15], [28, 16], [29, 6], [30, 17], [31, 18], [32, 8], [33, 19], [34, 20], [35, 21], [36, 21], [37, 22], [38, 22], [39, 28], [40, 29], [41, 35], [42, 37], [43, 38], [44, 38], [45, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "resolvePrefix", "code": "  protected String resolvePrefix(ResultTreeHandler rhandler,\n                                 String prefix, String nodeNamespace)\n    throws TransformerException\n  {\n\n    return prefix;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    if (TransformerImpl.S_DEBUG)\n      transformer.getTraceManager().fireTraceEvent(this);\n      \n \tResultTreeHandler rhandler = transformer.getResultTreeHandler();\n    XPathContext xctxt = transformer.getXPathContext();\n    int sourceNode = xctxt.getCurrentNode();\n    \n    \n    String nodeName = m_name_avt == null ? null : m_name_avt.evaluate(xctxt, sourceNode, this);\n\n    String prefix = null;\n    String nodeNamespace = \"\";\n\n    if ((nodeName != null) && (!m_name_avt.isSimple()) && (!validateNodeName(nodeName)))\n    {\n      transformer.getMsgMgr().warn(\n        this, XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_VALUE,\n        new Object[]{ Constants.ATTRNAME_NAME, nodeName });\n\n      nodeName = null;\n    }\n\n    else if (nodeName != null)\n    {\n      prefix = QName.getPrefixPart(nodeName);\n\n      if (null != m_namespace_avt)\n      {\n        nodeNamespace = m_namespace_avt.evaluate(xctxt, sourceNode, this);\n        if (null == nodeNamespace || \n            (prefix != null && prefix.length()>0 && nodeNamespace.length()== 0) )\n          transformer.getMsgMgr().error(\n              this, XSLTErrorResources.ER_NULL_URI_NAMESPACE);\n        else\n        {\n\n        prefix = resolvePrefix(rhandler, prefix, nodeNamespace);\n        if (null == prefix)\n          prefix = \"\";\n\n        if (prefix.length() > 0)\n          nodeName = (prefix + \":\" + QName.getLocalPart(nodeName));\n        else\n          nodeName = QName.getLocalPart(nodeName);\n        }\n      }\n\n      else    \n      {\n        try\n        {\n          nodeNamespace = getNamespaceForPrefix(prefix);\n\n\n          if ( (null == nodeNamespace) && (prefix.length() == 0) )\n            nodeNamespace = \"\";\n          else if (null == nodeNamespace)\n          {\n            transformer.getMsgMgr().warn(\n              this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX,\n              new Object[]{ prefix });\n\n            nodeName = null;\n          }\n\n        }\n        catch (Exception ex)\n        {\n          transformer.getMsgMgr().warn(\n            this, XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX,\n            new Object[]{ prefix });\n\n          nodeName = null;\n        }\n      }\n    }\n\n    constructNode(nodeName, prefix, nodeNamespace, transformer);\n\n    if (TransformerImpl.S_DEBUG)\n      transformer.getTraceManager().fireTraceEndEvent(this);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "IF", "LITERAL_ANCHOR", "CALL", "CATCH", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "ASSIGN", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [2, 13], [1, 14], [12, 15], [13, 16], [13, 17], [3, 18], [4, 19], [5, 20], [6, 21], [7, 22], [8, 23], [9, 24], [14, 25], [12, 26], [15, 27], [2, 28], [2, 29], [17, 30], [17, 31], [20, 32], [20, 33], [20, 34], [24, 35], [26, 36], [12, 37], [28, 38], [29, 39], [31, 40], [34, 41], [26, 42], [26, 43], [36, 44], [37, 45], [42, 46], [42, 47], [43, 48], [26, 49], [47, 50], [47, 51], [42, 52], [43, 53], [43, 54], [43, 55], [48, 56], [48, 57], [49, 58], [46, 59], [46, 60], [50, 61], [47, 62], [51, 63], [51, 64], [52, 65], [53, 66], [54, 67], [43, 68], [55, 69], [56, 70], [56, 71], [57, 72], [59, 73], [60, 74], [61, 75], [62, 76], [63, 77], [63, 78], [64, 79], [53, 80], [53, 81], [66, 82], [66, 83], [54, 84], [67, 85], [68, 86], [70, 87], [70, 88], [71, 89], [71, 90], [50, 91], [50, 92], [80, 93], [81, 94], [84, 95], [89, 96], [89, 97], [90, 98], [91, 99], [92, 100], [94, 101], [94, 102], [102, 103], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 2], [14, 1], [15, 12], [16, 13], [17, 13], [18, 3], [19, 4], [20, 5], [21, 6], [22, 7], [23, 8], [24, 9], [25, 14], [26, 12], [27, 15], [28, 2], [29, 2], [30, 17], [31, 17], [32, 20], [33, 20], [34, 20], [35, 24], [36, 26], [37, 12], [38, 28], [39, 29], [40, 31], [41, 34], [42, 26], [43, 26], [44, 36], [45, 37], [46, 42], [47, 42], [48, 43], [49, 26], [50, 47], [51, 47], [52, 42], [53, 43], [54, 43], [55, 43], [56, 48], [57, 48], [58, 49], [59, 46], [60, 46], [61, 50], [62, 47], [63, 51], [64, 51], [65, 52], [66, 53], [67, 54], [68, 43], [69, 55], [70, 56], [71, 56], [72, 57], [73, 59], [74, 60], [75, 61], [76, 62], [77, 63], [78, 63], [79, 64], [80, 53], [81, 53], [82, 66], [83, 66], [84, 54], [85, 67], [86, 68], [87, 70], [88, 70], [89, 71], [90, 71], [91, 50], [92, 50], [93, 80], [94, 81], [95, 84], [96, 89], [97, 89], [98, 90], [99, 91], [100, 92], [101, 94], [102, 94], [103, 102], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103]]}, {"function_name": "constructNode", "code": "  void constructNode(\n          String nodeName, String prefix, String nodeNamespace, TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    boolean shouldAddAttrs;\n\n    try\n    {\n      ResultTreeHandler rhandler = transformer.getResultTreeHandler();\n\n      if (null == nodeName)\n      {\n        shouldAddAttrs = false;\n      }\n      else\n      {\n        executeNSDecls(transformer);\n\n        if (null != prefix)\n        {\n          rhandler.startPrefixMapping(prefix, nodeNamespace, true);\n        }\n\n        rhandler.startElement(nodeNamespace, QName.getLocalPart(nodeName),\n                              nodeName, null);\n\n        super.execute(transformer);\n\n        shouldAddAttrs = true;\n      }\n\n      transformer.executeChildTemplates(this, shouldAddAttrs);\n\n      if (null != nodeName)\n      {\n        rhandler.endElement(nodeNamespace, QName.getLocalPart(nodeName),\n                            nodeName);\n        if (null != prefix)\n        {\n          rhandler.endPrefixMapping(prefix);\n        }\n        unexecuteNSDecls(transformer);\n      }\n    }\n    catch (SAXException se)\n    {\n      throw new TransformerException(se);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "IF", "IF", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [8, 12], [1, 13], [9, 14], [11, 15], [8, 16], [12, 17], [9, 18], [14, 19], [10, 20], [8, 21], [16, 22], [8, 23], [9, 24], [9, 25], [18, 26], [9, 27], [9, 28], [22, 29], [23, 30], [24, 31], [25, 32], [25, 33], [26, 34], [28, 35], [16, 36], [18, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 8], [13, 1], [14, 9], [15, 11], [16, 8], [17, 12], [18, 9], [19, 14], [20, 10], [21, 8], [22, 16], [23, 8], [24, 9], [25, 9], [26, 18], [27, 9], [28, 9], [29, 22], [30, 23], [31, 24], [32, 25], [33, 25], [34, 26], [35, 28], [36, 16], [37, 18], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "callChildVisitors", "code": "  protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n  {\n  \tif(callAttrs)\n  \t{\n  \t  if(null != m_name_avt)\n  \t\tm_name_avt.callVisitors(visitor);\n  \t\t\n  \t  if(null != m_namespace_avt)\n  \t\tm_namespace_avt.callVisitors(visitor);\n  \t}\n  \t\t\n    super.callChildVisitors(visitor, callAttrs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [4, 8], [6, 9], [5, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 4], [9, 6], [10, 5], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "ivy-2.0-3474", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/util/Checks.java", "language": "java", "name": "org.apache.ivy.util.Checks", "code": "public final class Checks {\n    private Checks() {\n    }\n    \n    /**\n     * Checks that an object is not null, and throw an exception if the object is null.\n     * \n     * @param o\n     *            the object to check\n     * @param objectName\n     *            the name of the object to check. This name will be used in the exception message.\n     * @throws IllegalArgumentException\n     *             if the object is null\n     */\n    public static void checkNotNull(Object o, String objectName) {\n        if (o == null) {\n            throw new IllegalArgumentException(objectName + \" must not be null\");\n        }\n    }\n\n    public static File checkAbsolute(File f, String fileName) {\n        checkNotNull(f, fileName);\n        if (!f.isAbsolute()) {\n            throw new IllegalArgumentException(fileName + \" must be absolute: \" + f.getPath());\n        }\n        return f;\n    }\n    \n    public static File checkAbsolute(String path, String fileName) {\n        checkNotNull(path, fileName);\n        File f = new File(path);\n        if (!f.isAbsolute()) {\n            throw new IllegalArgumentException(fileName + \" must be absolute: \" + path);\n        }\n        return f;", "functions": [{"function_name": "checkNotNull", "code": "    public static void checkNotNull(Object o, String objectName) {\n        if (o == null) {\n            throw new IllegalArgumentException(objectName + \" must not be null\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "checkAbsolute", "code": "    public static File checkAbsolute(File f, String fileName) {\n        checkNotNull(f, fileName);\n        if (!f.isAbsolute()) {\n            throw new IllegalArgumentException(fileName + \" must be absolute: \" + f.getPath());\n        }\n        return f;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [2, 7], [7, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 2], [8, 7], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "checkAbsolute", "code": "    public static File checkAbsolute(String path, String fileName) {\n        checkNotNull(path, fileName);\n        File f = new File(path);\n        if (!f.isAbsolute()) {\n            throw new IllegalArgumentException(fileName + \" must be absolute: \" + path);\n        }\n        return f;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [3, 9], [8, 10], [10, 11], [11, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 3], [10, 8], [11, 10], [12, 11], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "Checks", "code": "    private Checks() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.2-1816", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/jms/JmsBinding.java", "language": "java", "name": "org.apache.camel.component.jms.JmsBinding", "code": "public class JmsBinding {\n    private static final transient Log LOG = LogFactory.getLog(JmsBinding.class);\n\n    /**\n     * Extracts the body from the JMS message\n     * \n     * @param exchange\n     * @param message\n     */\n    public Object extractBodyFromJms(JmsExchange exchange, Message message) {\n        try {\n            if (message instanceof ObjectMessage) {\n                ObjectMessage objectMessage = (ObjectMessage)message;\n                return objectMessage.getObject();\n            } else if (message instanceof TextMessage) {\n                TextMessage textMessage = (TextMessage)message;\n                return textMessage.getText();\n            } else if (message instanceof MapMessage) {\n                return createMapFromMapMessage((MapMessage)message);\n            } else if (message instanceof BytesMessage || message instanceof StreamMessage) {\n                return message;\n            } else {\n                return null;\n            }\n        } catch (JMSException e) {\n            throw new RuntimeJmsException(\"Failed to extract body due to: \" + e + \". Message: \" + message, e);\n        }\n    }\n\n    /**\n     * Creates a JMS message from the Camel exchange and message\n     * \n     * @param session the JMS session used to create the message\n     * @return a newly created JMS Message instance containing the\n     * @throws JMSException if the message could not be created\n     */\n    public Message makeJmsMessage(Exchange exchange, Session session) throws JMSException {\n        Message answer = null;\n        if( exchange instanceof JmsExchange  ) {\n            JmsExchange jmsExchange = (JmsExchange)exchange;\n            answer = jmsExchange.getIn().getJmsMessage();\n        }\n        if( answer == null ) {\n            answer = createJmsMessage(exchange.getIn().getBody(), session);\n            appendJmsProperties(answer, exchange);\n        }\n        return answer;\n    }\n\n    /**\n     * Appends the JMS headers from the Camel {@link JmsMessage}\n     */\n    public void appendJmsProperties(Message jmsMessage, Exchange exchange) throws JMSException {\n        org.apache.camel.Message in = exchange.getIn();\n        Set<Map.Entry<String, Object>> entries = in.getHeaders().entrySet();\n        for (Map.Entry<String, Object> entry : entries) {\n            String headerName = entry.getKey();\n            Object headerValue = entry.getValue();\n            \n            if (headerName.startsWith(\"JMS\") && !headerName.startsWith(\"JMSX\")) {\n                if (headerName.equals(\"JMSCorrelationID\")) {\n                    jmsMessage.setJMSCorrelationID(ExchangeHelper.convertToType(exchange, String.class, headerValue));\n                }\n                else if (headerName.equals(\"JMSCorrelationID\")) {\n                    jmsMessage.setJMSCorrelationID(ExchangeHelper.convertToType(exchange, String.class, headerValue));\n                }\n                else if (headerName.equals(\"JMSReplyTo\")) {\n                    jmsMessage.setJMSReplyTo(ExchangeHelper.convertToType(exchange, Destination.class, headerValue));\n                }\n                else if (headerName.equals(\"JMSType\")) {\n                    jmsMessage.setJMSType(ExchangeHelper.convertToType(exchange, String.class, headerValue));\n                }\n                else if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Ignoring JMS header: \" + headerName + \" with value: \" + headerValue);\n                }\n            }\n            else if (shouldOutputHeader(in, headerName, headerValue)) {\n                jmsMessage.setObjectProperty(headerName, headerValue);\n            }\n        }\n    }\n\n    protected Message createJmsMessage(Object body, Session session) throws JMSException {\n        if (body instanceof String) {\n            return session.createTextMessage((String)body);\n        } else if (body instanceof Serializable) {\n            return session.createObjectMessage((Serializable)body);\n        } else {\n            return session.createMessage();\n        }\n    }\n\n    /**\n     * Extracts a {@link Map} from a {@link MapMessage}\n     */\n    public Map<String, Object> createMapFromMapMessage(MapMessage message) throws JMSException {\n        Map<String, Object> answer = new HashMap<String, Object>();\n        Enumeration names = message.getPropertyNames();\n        while (names.hasMoreElements()) {\n            String name = names.nextElement().toString();\n            Object value = message.getObject(name);\n            answer.put(name, value);\n        }\n        return answer;\n    }\n\n    /**\n     * Strategy to allow filtering of headers which are put on the JMS message\n     */\n    protected boolean shouldOutputHeader(org.apache.camel.Message camelMessage, String headerName, Object headerValue) {\n        return headerValue != null;", "functions": [{"function_name": "extractBodyFromJms", "code": "    public Object extractBodyFromJms(JmsExchange exchange, Message message) {\n        try {\n            if (message instanceof ObjectMessage) {\n                ObjectMessage objectMessage = (ObjectMessage)message;\n                return objectMessage.getObject();\n            } else if (message instanceof TextMessage) {\n                TextMessage textMessage = (TextMessage)message;\n                return textMessage.getText();\n            } else if (message instanceof MapMessage) {\n                return createMapFromMapMessage((MapMessage)message);\n            } else if (message instanceof BytesMessage || message instanceof StreamMessage) {\n                return message;\n            } else {\n                return null;\n            }\n        } catch (JMSException e) {\n            throw new RuntimeJmsException(\"Failed to extract body due to: \" + e + \". Message: \" + message, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "THROW_RAISE", "IF", "BINARY_OP", "CALL", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [6, 9], [7, 10], [7, 11], [5, 12], [5, 13], [9, 14], [10, 15], [10, 16], [7, 17], [7, 18], [12, 19], [14, 20], [15, 21], [10, 22], [17, 23], [20, 24], [20, 25], [15, 26], [15, 27], [21, 28], [21, 29], [22, 30], [25, 31], [26, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 6], [10, 7], [11, 7], [12, 5], [13, 5], [14, 9], [15, 10], [16, 10], [17, 7], [18, 7], [19, 12], [20, 14], [21, 15], [22, 10], [23, 17], [24, 20], [25, 20], [26, 15], [27, 15], [28, 21], [29, 21], [30, 22], [31, 25], [32, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "makeJmsMessage", "code": "    public Message makeJmsMessage(Exchange exchange, Session session) throws JMSException {\n        Message answer = null;\n        if( exchange instanceof JmsExchange  ) {\n            JmsExchange jmsExchange = (JmsExchange)exchange;\n            answer = jmsExchange.getIn().getJmsMessage();\n        }\n        if( answer == null ) {\n            answer = createJmsMessage(exchange.getIn().getBody(), session);\n            appendJmsProperties(answer, exchange);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [7, 9], [3, 10], [4, 11], [2, 12], [2, 13], [3, 14], [13, 15], [14, 16], [15, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 7], [10, 3], [11, 4], [12, 2], [13, 2], [14, 3], [15, 13], [16, 14], [17, 15], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "appendJmsProperties", "code": "    public void appendJmsProperties(Message jmsMessage, Exchange exchange) throws JMSException {\n        org.apache.camel.Message in = exchange.getIn();\n        Set<Map.Entry<String, Object>> entries = in.getHeaders().entrySet();\n        for (Map.Entry<String, Object> entry : entries) {\n            String headerName = entry.getKey();\n            Object headerValue = entry.getValue();\n            \n            if (headerName.startsWith(\"JMS\") && !headerName.startsWith(\"JMSX\")) {\n                if (headerName.equals(\"JMSCorrelationID\")) {\n                    jmsMessage.setJMSCorrelationID(ExchangeHelper.convertToType(exchange, String.class, headerValue));\n                }\n                else if (headerName.equals(\"JMSCorrelationID\")) {\n                    jmsMessage.setJMSCorrelationID(ExchangeHelper.convertToType(exchange, String.class, headerValue));\n                }\n                else if (headerName.equals(\"JMSReplyTo\")) {\n                    jmsMessage.setJMSReplyTo(ExchangeHelper.convertToType(exchange, Destination.class, headerValue));\n                }\n                else if (headerName.equals(\"JMSType\")) {\n                    jmsMessage.setJMSType(ExchangeHelper.convertToType(exchange, String.class, headerValue));\n                }\n                else if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Ignoring JMS header: \" + headerName + \" with value: \" + headerValue);\n                }\n            }\n            else if (shouldOutputHeader(in, headerName, headerValue)) {\n                jmsMessage.setObjectProperty(headerName, headerValue);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [3, 10], [6, 11], [6, 12], [9, 13], [11, 14], [6, 15], [12, 16], [12, 17], [7, 18], [8, 19], [15, 20], [15, 21], [16, 22], [17, 23], [11, 24], [20, 25], [20, 26], [21, 27], [25, 28], [25, 29], [26, 30], [15, 31], [28, 32], [28, 33], [29, 34], [20, 35], [31, 36], [32, 37], [33, 38], [25, 39], [35, 40], [28, 41], [39, 42], [32, 43], [41, 44], [43, 45], [45, 46], [46, 47], [46, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [10, 3], [11, 6], [12, 6], [13, 9], [14, 11], [15, 6], [16, 12], [17, 12], [18, 7], [19, 8], [20, 15], [21, 15], [22, 16], [23, 17], [24, 11], [25, 20], [26, 20], [27, 21], [28, 25], [29, 25], [30, 26], [31, 15], [32, 28], [33, 28], [34, 29], [35, 20], [36, 31], [37, 32], [38, 33], [39, 25], [40, 35], [41, 28], [42, 39], [43, 32], [44, 41], [45, 43], [46, 45], [47, 46], [48, 46], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "createJmsMessage", "code": "    protected Message createJmsMessage(Object body, Session session) throws JMSException {\n        if (body instanceof String) {\n            return session.createTextMessage((String)body);\n        } else if (body instanceof Serializable) {\n            return session.createObjectMessage((Serializable)body);\n        } else {\n            return session.createMessage();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [4, 8], [4, 9], [7, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 4], [9, 4], [10, 7], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createMapFromMapMessage", "code": "    public Map<String, Object> createMapFromMapMessage(MapMessage message) throws JMSException {\n        Map<String, Object> answer = new HashMap<String, Object>();\n        Enumeration names = message.getPropertyNames();\n        while (names.hasMoreElements()) {\n            String name = names.nextElement().toString();\n            Object value = message.getObject(name);\n            answer.put(name, value);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [3, 9], [4, 10], [2, 11], [7, 12], [8, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 3], [10, 4], [11, 2], [12, 7], [13, 8], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "shouldOutputHeader", "code": "    protected boolean shouldOutputHeader(org.apache.camel.Message camelMessage, String headerName, Object headerValue) {\n        return headerValue != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-1.5-5232", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hpsf/littleendian/DWord.java", "language": "java", "name": "org.apache.poi.hpsf.littleendian.DWord", "code": "public class DWord extends LittleEndian\n{\n\n    /**\n     * <p>Creates a {@link DWord} and reads its value from a byte\n     * array.</p>\n     *\n     * @param src The byte array to read from.\n     *\n     * @param offset The offset of the first byte to read.\n     */\n    public DWord(final byte[] src, final int offset)\n    {\n        super(src, offset);\n    }\n\n\n\n    public final static int LENGTH = 4;\n\n    public int length()\n    {\n        return LENGTH;\n    }\n\n\n\n    /**\n     * <p>Return the integral value of this {@link DWord}.</p>\n     *\n     * <p><strong>FIXME:</strong> Introduce a superclass for the\n     * numeric types and make this a method of the superclass!</p>\n     */\n    public int intValue()\n    {\n        int value = 0;\n        final int length = length();\n        for (int i = 0; i < length; i++)\n        {\n            final int b = 0xFF & bytes[i];\n            value = value << 8 | b;\n        }\n        return value;", "functions": [{"function_name": "length", "code": "    public int length()\n    {\n        return LENGTH;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "intValue", "code": "    public int intValue()\n    {\n        int value = 0;\n        final int length = length();\n        for (int i = 0; i < length; i++)\n        {\n            final int b = 0xFF & bytes[i];\n            value = value << 8 | b;\n        }\n        return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [4, 8], [2, 9], [2, 10], [9, 11], [6, 12], [11, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 4], [9, 2], [10, 2], [11, 9], [12, 6], [13, 11], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "DWord", "code": "    public DWord(final byte[] src, final int offset)\n    {\n        super(src, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.6-3100", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/util/UnsafeUriCharactersEncoder.java", "language": "java", "name": "org.apache.camel.util.UnsafeUriCharactersEncoder", "code": "public final class UnsafeUriCharactersEncoder {\n    private static BitSet unsafeCharacters;\n    private static final transient Log LOG = LogFactory.getLog(UnsafeUriCharactersEncoder.class);\n    private static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C',\n                                              'D', 'E', 'F'};\n\n    static {\n        unsafeCharacters = new BitSet(256);\n        unsafeCharacters.set(' ');\n        unsafeCharacters.set('\"');\n        unsafeCharacters.set('<');\n        unsafeCharacters.set('>');\n        unsafeCharacters.set('#');\n        unsafeCharacters.set('%');\n        unsafeCharacters.set('{');\n        unsafeCharacters.set('}');\n        unsafeCharacters.set('|');\n        unsafeCharacters.set('\\\\');\n        unsafeCharacters.set('^');\n        unsafeCharacters.set('~');\n        unsafeCharacters.set('[');\n        unsafeCharacters.set(']');\n        unsafeCharacters.set('`');\n    }\n\n    private UnsafeUriCharactersEncoder() {\n    }\n\n    public static String encode(String s) {\n        int n = s.length();\n        if (n == 0) {\n            return s;\n        }\n\n        try {\n            byte[] bytes = s.getBytes(\"UTF8\");\n            for (int i = 0;;) {\n                if (unsafeCharacters.get(bytes[i])) {\n                    break;\n                }\n                if (++i >= bytes.length) {\n                    return s;\n                }\n            }\n\n            StringBuffer sb = new StringBuffer();\n            for (byte b : bytes) {\n                if (unsafeCharacters.get(b)) {\n                    appendEscape(sb, b);\n                } else {\n                    sb.append((char)b);\n                }\n            }\n            return sb.toString();\n        } catch (UnsupportedEncodingException e) {\n            LOG.error(\"Can't encoding the uri: \", e);\n            return null;\n        }\n    }\n\n    private static void appendEscape(StringBuffer sb, byte b) {\n        sb.append('%');\n        sb.append(HEX_DIGITS[(b >> 4) & 0x0f]);\n        sb.append(HEX_DIGITS[(b >> 0) & 0x0f]);", "functions": [{"function_name": "encode", "code": "    public static String encode(String s) {\n        int n = s.length();\n        if (n == 0) {\n            return s;\n        }\n\n        try {\n            byte[] bytes = s.getBytes(\"UTF8\");\n            for (int i = 0;;) {\n                if (unsafeCharacters.get(bytes[i])) {\n                    break;\n                }\n                if (++i >= bytes.length) {\n                    return s;\n                }\n            }\n\n            StringBuffer sb = new StringBuffer();\n            for (byte b : bytes) {\n                if (unsafeCharacters.get(b)) {\n                    appendEscape(sb, b);\n                } else {\n                    sb.append((char)b);\n                }\n            }\n            return sb.toString();\n        } catch (UnsupportedEncodingException e) {\n            LOG.error(\"Can't encoding the uri: \", e);\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "CATCH", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "RETURN", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BREAK_CONTINUE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [5, 12], [6, 13], [2, 14], [11, 15], [3, 16], [12, 17], [5, 18], [7, 19], [8, 20], [9, 21], [9, 22], [10, 23], [18, 24], [19, 25], [21, 26], [22, 27], [9, 28], [23, 29], [21, 30], [22, 31], [19, 32], [19, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 5], [13, 6], [14, 2], [15, 11], [16, 3], [17, 12], [18, 5], [19, 7], [20, 8], [21, 9], [22, 9], [23, 10], [24, 18], [25, 19], [26, 21], [27, 22], [28, 9], [29, 23], [30, 21], [31, 22], [32, 19], [33, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "appendEscape", "code": "    private static void appendEscape(StringBuffer sb, byte b) {\n        sb.append('%');\n        sb.append(HEX_DIGITS[(b >> 4) & 0x0f]);\n        sb.append(HEX_DIGITS[(b >> 0) & 0x0f]);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [3, 7], [4, 8], [7, 9], [7, 10], [8, 11], [8, 12], [10, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 3], [8, 4], [9, 7], [10, 7], [11, 8], [12, 8], [13, 10], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "UnsafeUriCharactersEncoder", "code": "    private UnsafeUriCharactersEncoder() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.5-5933", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/DrawingGroupRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DrawingGroupRecord", "code": "public class DrawingGroupRecord extends AbstractEscherHolderRecord\n{\n    public static final short sid = 0xEB;\n\n    public DrawingGroupRecord()\n    {\n    }\n\n    public DrawingGroupRecord( short id, short size, byte[] data )\n    {\n        super( id, size, data );\n    }\n\n    public DrawingGroupRecord( short id, short size, byte[] data, int offset )\n    {\n        super( id, size, data, offset );\n    }\n\n    protected String getRecordName()\n    {\n        return \"MSODRAWINGGROUP\";\n    }\n\n    public short getSid()\n    {\n        return sid;", "functions": [{"function_name": "getRecordName", "code": "    protected String getRecordName()\n    {\n        return \"MSODRAWINGGROUP\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DrawingGroupRecord", "code": "    public DrawingGroupRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DrawingGroupRecord", "code": "    public DrawingGroupRecord( short id, short size, byte[] data )\n    {\n        super( id, size, data );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DrawingGroupRecord", "code": "    public DrawingGroupRecord( short id, short size, byte[] data, int offset )\n    {\n        super( id, size, data, offset );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-3.2-3719", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/pluginmgr/InstallPluginsDialog.java", "language": "java", "name": "org.gjt.sp.jedit.pluginmgr.InstallPluginsDialog", "code": "class InstallPluginsDialog extends EnhancedDialog\n{\n\tstatic final int INSTALL = 0;\n\tstatic final int UPDATE = 1;\n\n\tInstallPluginsDialog(JDialog dialog, Vector model, int mode)\n\t{\n\t\tsuper(JOptionPane.getFrameForComponent(dialog),\n\t\t\t(mode == INSTALL\n\t\t\t? jEdit.getProperty(\"install-plugins.title\")\n\t\t\t: jEdit.getProperty(\"update-plugins.title\")),true);\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"install-plugins.caption\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,0));\n\t\tcontent.add(BorderLayout.NORTH,label);\n\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.setBorder(new EmptyBorder(0,0,12,0));\n\n\t\tplugins = new JCheckBoxList(model);\n\t\tplugins.getSelectionModel().addListSelectionListener(new ListHandler());\n\t\tJScrollPane scroller = new JScrollPane(plugins);\n\t\tDimension dim = scroller.getPreferredSize();\n\t\tdim.height = 120;\n\t\tscroller.setPreferredSize(dim);\n\t\tpanel.add(BorderLayout.CENTER,scroller);\n\n\t\tJPanel panel2 = new JPanel(new BorderLayout());\n\t\tpanel2.setBorder(new EmptyBorder(6,0,0,0));\n\t\tJPanel labelBox = new JPanel(new GridLayout(\n\t\t\t(mode == UPDATE ? 6 : 5),1,0,3));\n\t\tlabelBox.setBorder(new EmptyBorder(0,0,3,12));\n\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t+ \".info.name\"),SwingConstants.RIGHT));\n\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t+ \".info.author\"),SwingConstants.RIGHT));\n\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t+ \".info.latest-version\"),SwingConstants.RIGHT));\n\t\tif(mode == UPDATE)\n\t\t{\n\t\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t\t+ \".info.installed-version\"),SwingConstants.RIGHT));\n\t\t}\n\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t+ \".info.updated\"),SwingConstants.RIGHT));\n\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t+ \".info.description\"),SwingConstants.RIGHT));\n\t\tpanel2.add(BorderLayout.WEST,labelBox);\n\n\t\tJPanel valueBox = new JPanel(new GridLayout(\n\t\t\t(mode == UPDATE ? 6 : 5),1,0,3));\n\t\tvalueBox.setBorder(new EmptyBorder(0,0,3,0));\n\t\tvalueBox.add(name = new JLabel());\n\t\tvalueBox.add(author = new JLabel());\n\t\tvalueBox.add(latestVersion = new JLabel());\n\t\tif(mode == UPDATE)\n\t\t{\n\t\t\tvalueBox.add(installedVersion = new JLabel());\n\t\t}\n\t\tvalueBox.add(updated = new JLabel());\n\t\tvalueBox.add(Box.createGlue());\n\t\tpanel2.add(BorderLayout.CENTER,valueBox);\n\n\t\tJPanel panel3 = new JPanel(new BorderLayout(0,3));\n\t\tdescription = new JTextArea(6,30);\n\t\tdescription.setEditable(false);\n\t\tdescription.setLineWrap(true);\n\t\tdescription.setWrapStyleWord(true);\n\t\tpanel3.add(BorderLayout.NORTH,new JScrollPane(description));\n\t\tif(mode == INSTALL)\n\t\t{\n\t\t\tJPanel panel4 = new JPanel(new BorderLayout(0,3));\n\n\t\t\tButtonGroup grp = new ButtonGroup();\n\t\t\tinstallUser = new JRadioButton();\n\t\t\tString settings = jEdit.getSettingsDirectory();\n\t\t\tif(settings == null)\n\t\t\t{\n\t\t\t\tsettings = jEdit.getProperty(\"install-plugins.none\");\n\t\t\t\tinstallUser.setEnabled(false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsettings = MiscUtilities.constructPath(settings,\"jars\");\n\t\t\t\tinstallUser.setEnabled(true);\n\t\t\t}\n\t\t\tString[] args = { settings };\n\t\t\tinstallUser.setText(jEdit.getProperty(\"install-plugins.user\",args));\n\t\t\tgrp.add(installUser);\n\t\t\tpanel4.add(BorderLayout.CENTER,installUser);\n\n\t\t\tinstallSystem = new JRadioButton();\n\t\t\tString jEditHome = jEdit.getJEditHome();\n\t\t\tif(jEditHome == null)\n\t\t\t{\n\t\t\t\tjEditHome = jEdit.getProperty(\"install-plugins.none\");\n\t\t\t\tinstallSystem.setEnabled(false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tjEditHome = MiscUtilities.constructPath(jEditHome,\"jars\");\n\t\t\t\tinstallSystem.setEnabled(true);\n\t\t\t}\n\t\t\targs[0] = jEditHome;\n\t\t\tinstallSystem.setText(jEdit.getProperty(\"install-plugins.system\",args));\n\t\t\tgrp.add(installSystem);\n\t\t\tpanel4.add(BorderLayout.SOUTH,installSystem);\n\n\t\t\tif(installUser.isEnabled())\n\t\t\t\tinstallUser.setSelected(true);\n\t\t\telse\n\t\t\t\tinstallSystem.setSelected(true);\n\n\t\t\tpanel3.add(BorderLayout.CENTER,panel4);\n\t\t}\n\n\t\tpanel3.add(BorderLayout.SOUTH,downloadSource = new JCheckBox(\n\t\t\tjEdit.getProperty(\"install-plugins.downloadSource\")));\n\t\tdownloadSource.setSelected(jEdit.getBooleanProperty(\"install-plugins\"\n\t\t\t+ \".downloadSource.value\"));\n\n\t\tpanel2.add(BorderLayout.SOUTH,panel3);\n\n\t\tpanel.add(BorderLayout.SOUTH,panel2);\n\n\t\tcontent.add(BorderLayout.CENTER,panel);\n\n\t\tBox box = new Box(BoxLayout.X_AXIS);\n\n\t\tbox.add(Box.createGlue());\n\t\tinstall = new JButton(jEdit.getProperty(\"install-plugins.install\"));\n\t\tinstall.setEnabled(false);\n\t\tgetRootPane().setDefaultButton(install);\n\t\tinstall.addActionListener(new ActionHandler());\n\t\tbox.add(install);\n\t\tbox.add(Box.createHorizontalStrut(6));\n\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.addActionListener(new ActionHandler());\n\t\tbox.add(cancel);\n\t\tbox.add(Box.createHorizontalStrut(6));\n\t\tbox.add(Box.createGlue());\n\n\t\tcontent.add(BorderLayout.SOUTH,box);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(dialog);\n\t\tshow();\n\t}\n\n\tpublic void ok()\n\t{\n\t\tjEdit.setBooleanProperty(\"install-plugins.downloadSource.value\",\n\t\t\tdownloadSource.isSelected());\n\t\tdispose();\n\t}\n\n\tpublic void cancel()\n\t{\n\t\tcancelled = true;\n\n\t\tdispose();\n\t}\n\n\tvoid installPlugins(Roster roster)\n\t{\n\t\tif(cancelled)\n\t\t\treturn;\n\n\t\tString installDirectory;\n\t\tif(installUser == null || installUser.isSelected())\n\t\t{\n\t\t\tinstallDirectory = MiscUtilities.constructPath(\n\t\t\t\tjEdit.getSettingsDirectory(),\"jars\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tinstallDirectory = MiscUtilities.constructPath(\n\t\t\t\tjEdit.getJEditHome(),\"jars\");\n\t\t}\n\n\t\tObject[] selected = plugins.getCheckedValues();\n\t\tfor(int i = 0; i < selected.length; i++)\n\t\t{\n\t\t\tPluginList.Plugin plugin = (PluginList.Plugin)selected[i];\n\t\t\tplugin.install(roster,installDirectory,downloadSource.isSelected());\n\t\t}\n\t}\n\n\t// private members\n\tprivate JCheckBoxList plugins;\n\tprivate JLabel name;\n\tprivate JLabel author;\n\tprivate JLabel latestVersion;\n\tprivate JLabel installedVersion;\n\tprivate JLabel updated;\n\tprivate JTextArea description;\n\tprivate JRadioButton installUser;\n\tprivate JRadioButton installSystem;\n\tprivate JCheckBox downloadSource;\n\n\tprivate JButton install;\n\tprivate JButton cancel;\n\n\tprivate boolean cancelled;\n\tprivate Thread thread;\n\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == install)\n\t\t\t\tok();\n\t\t\telse\n\t\t\t\tcancel();\n\t\t}\n\t}\n\n\tclass ListHandler implements ListSelectionListener\n\t{\n\t\tpublic void valueChanged(ListSelectionEvent evt)\n\t\t{\n\t\t\tObject selected = plugins.getSelectedValue();\n\t\t\tif(selected instanceof PluginList.Plugin)\n\t\t\t{\n\t\t\t\tinstall.setEnabled(true);\n\n\t\t\t\tPluginList.Plugin plugin = (PluginList.Plugin)selected;\n\t\t\t\tPluginList.Branch branch = plugin.getCompatibleBranch();\n\t\t\t\tname.setText(plugin.name);\n\t\t\t\tauthor.setText(plugin.author);\n\t\t\t\tif(branch.obsolete)\n\t\t\t\t\tlatestVersion.setText(jEdit.getProperty(\n\t\t\t\t\t\t\"install-plugins.info.obsolete\"));\n\t\t\t\telse\n\t\t\t\t\tlatestVersion.setText(branch.version);\n\t\t\t\tif(installedVersion != null)\n\t\t\t\t\tinstalledVersion.setText(plugin.installedVersion);\n\t\t\t\tupdated.setText(branch.date);\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\t\tfor(int i = 0; i < branch.deps.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tPluginList.Dependency dep = (PluginList.Dependency)\n\t\t\t\t\t\tbranch.deps.elementAt(i);\n\t\t\t\t\tif(dep.what.equals(\"plugin\")\n\t\t\t\t\t\t&& !dep.isSatisfied())\n\t\t\t\t\t{\n\t\t\t\t\t\tif(buf.length() != 0)\n\t\t\t\t\t\t\tbuf.append(\", \");\n\n\t\t\t\t\t\tbuf.append(dep.plugin);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tdescription.setText(plugin.description\n\t\t\t\t\t+ (buf.length() == 0 ? \"\"\n\t\t\t\t\t: jEdit.getProperty(\"install-plugins.info\"\n\t\t\t\t\t+ \".also-install\") + buf.toString()\n\t\t\t\t\t+ (branch.obsolete ? jEdit.getProperty(\n\t\t\t\t\t\"install-plugins.info.obsolete-text\") : \"\")));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinstall.setEnabled(false);\n\n\t\t\t\tname.setText(null);\n\t\t\t\tauthor.setText(null);\n\t\t\t\tlatestVersion.setText(null);\n\t\t\t\tif(installedVersion != null)\n\t\t\t\t\tinstalledVersion.setText(null);\n\t\t\t\tupdated.setText(null);\n\t\t\t\tdescription.setText(null);", "functions": [{"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tjEdit.setBooleanProperty(\"install-plugins.downloadSource.value\",\n\t\t\tdownloadSource.isSelected());\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tcancelled = true;\n\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "installPlugins", "code": "\tvoid installPlugins(Roster roster)\n\t{\n\t\tif(cancelled)\n\t\t\treturn;\n\n\t\tString installDirectory;\n\t\tif(installUser == null || installUser.isSelected())\n\t\t{\n\t\t\tinstallDirectory = MiscUtilities.constructPath(\n\t\t\t\tjEdit.getSettingsDirectory(),\"jars\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tinstallDirectory = MiscUtilities.constructPath(\n\t\t\t\tjEdit.getJEditHome(),\"jars\");\n\t\t}\n\n\t\tObject[] selected = plugins.getCheckedValues();\n\t\tfor(int i = 0; i < selected.length; i++)\n\t\t{\n\t\t\tPluginList.Plugin plugin = (PluginList.Plugin)selected[i];\n\t\t\tplugin.install(roster,installDirectory,downloadSource.isSelected());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [5, 9], [1, 10], [2, 11], [8, 12], [8, 13], [1, 14], [1, 15], [3, 16], [3, 17], [13, 18], [14, 19], [16, 20], [17, 21], [20, 22], [20, 23], [21, 24], [21, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 5], [10, 1], [11, 2], [12, 8], [13, 8], [14, 1], [15, 1], [16, 3], [17, 3], [18, 13], [19, 14], [20, 16], [21, 17], [22, 20], [23, 20], [24, 21], [25, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "InstallPluginsDialog", "code": "\tInstallPluginsDialog(JDialog dialog, Vector model, int mode)\n\t{\n\t\tsuper(JOptionPane.getFrameForComponent(dialog),\n\t\t\t(mode == INSTALL\n\t\t\t? jEdit.getProperty(\"install-plugins.title\")\n\t\t\t: jEdit.getProperty(\"update-plugins.title\")),true);\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"install-plugins.caption\"));\n\t\tlabel.setBorder(new EmptyBorder(0,0,6,0));\n\t\tcontent.add(BorderLayout.NORTH,label);\n\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.setBorder(new EmptyBorder(0,0,12,0));\n\n\t\tplugins = new JCheckBoxList(model);\n\t\tplugins.getSelectionModel().addListSelectionListener(new ListHandler());\n\t\tJScrollPane scroller = new JScrollPane(plugins);\n\t\tDimension dim = scroller.getPreferredSize();\n\t\tdim.height = 120;\n\t\tscroller.setPreferredSize(dim);\n\t\tpanel.add(BorderLayout.CENTER,scroller);\n\n\t\tJPanel panel2 = new JPanel(new BorderLayout());\n\t\tpanel2.setBorder(new EmptyBorder(6,0,0,0));\n\t\tJPanel labelBox = new JPanel(new GridLayout(\n\t\t\t(mode == UPDATE ? 6 : 5),1,0,3));\n\t\tlabelBox.setBorder(new EmptyBorder(0,0,3,12));\n\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t+ \".info.name\"),SwingConstants.RIGHT));\n\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t+ \".info.author\"),SwingConstants.RIGHT));\n\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t+ \".info.latest-version\"),SwingConstants.RIGHT));\n\t\tif(mode == UPDATE)\n\t\t{\n\t\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t\t+ \".info.installed-version\"),SwingConstants.RIGHT));\n\t\t}\n\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t+ \".info.updated\"),SwingConstants.RIGHT));\n\t\tlabelBox.add(new JLabel(jEdit.getProperty(\"install-plugins\"\n\t\t\t+ \".info.description\"),SwingConstants.RIGHT));\n\t\tpanel2.add(BorderLayout.WEST,labelBox);\n\n\t\tJPanel valueBox = new JPanel(new GridLayout(\n\t\t\t(mode == UPDATE ? 6 : 5),1,0,3));\n\t\tvalueBox.setBorder(new EmptyBorder(0,0,3,0));\n\t\tvalueBox.add(name = new JLabel());\n\t\tvalueBox.add(author = new JLabel());\n\t\tvalueBox.add(latestVersion = new JLabel());\n\t\tif(mode == UPDATE)\n\t\t{\n\t\t\tvalueBox.add(installedVersion = new JLabel());\n\t\t}\n\t\tvalueBox.add(updated = new JLabel());\n\t\tvalueBox.add(Box.createGlue());\n\t\tpanel2.add(BorderLayout.CENTER,valueBox);\n\n\t\tJPanel panel3 = new JPanel(new BorderLayout(0,3));\n\t\tdescription = new JTextArea(6,30);\n\t\tdescription.setEditable(false);\n\t\tdescription.setLineWrap(true);\n\t\tdescription.setWrapStyleWord(true);\n\t\tpanel3.add(BorderLayout.NORTH,new JScrollPane(description));\n\t\tif(mode == INSTALL)\n\t\t{\n\t\t\tJPanel panel4 = new JPanel(new BorderLayout(0,3));\n\n\t\t\tButtonGroup grp = new ButtonGroup();\n\t\t\tinstallUser = new JRadioButton();\n\t\t\tString settings = jEdit.getSettingsDirectory();\n\t\t\tif(settings == null)\n\t\t\t{\n\t\t\t\tsettings = jEdit.getProperty(\"install-plugins.none\");\n\t\t\t\tinstallUser.setEnabled(false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsettings = MiscUtilities.constructPath(settings,\"jars\");\n\t\t\t\tinstallUser.setEnabled(true);\n\t\t\t}\n\t\t\tString[] args = { settings };\n\t\t\tinstallUser.setText(jEdit.getProperty(\"install-plugins.user\",args));\n\t\t\tgrp.add(installUser);\n\t\t\tpanel4.add(BorderLayout.CENTER,installUser);\n\n\t\t\tinstallSystem = new JRadioButton();\n\t\t\tString jEditHome = jEdit.getJEditHome();\n\t\t\tif(jEditHome == null)\n\t\t\t{\n\t\t\t\tjEditHome = jEdit.getProperty(\"install-plugins.none\");\n\t\t\t\tinstallSystem.setEnabled(false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tjEditHome = MiscUtilities.constructPath(jEditHome,\"jars\");\n\t\t\t\tinstallSystem.setEnabled(true);\n\t\t\t}\n\t\t\targs[0] = jEditHome;\n\t\t\tinstallSystem.setText(jEdit.getProperty(\"install-plugins.system\",args));\n\t\t\tgrp.add(installSystem);\n\t\t\tpanel4.add(BorderLayout.SOUTH,installSystem);\n\n\t\t\tif(installUser.isEnabled())\n\t\t\t\tinstallUser.setSelected(true);\n\t\t\telse\n\t\t\t\tinstallSystem.setSelected(true);\n\n\t\t\tpanel3.add(BorderLayout.CENTER,panel4);\n\t\t}\n\n\t\tpanel3.add(BorderLayout.SOUTH,downloadSource = new JCheckBox(\n\t\t\tjEdit.getProperty(\"install-plugins.downloadSource\")));\n\t\tdownloadSource.setSelected(jEdit.getBooleanProperty(\"install-plugins\"\n\t\t\t+ \".downloadSource.value\"));\n\n\t\tpanel2.add(BorderLayout.SOUTH,panel3);\n\n\t\tpanel.add(BorderLayout.SOUTH,panel2);\n\n\t\tcontent.add(BorderLayout.CENTER,panel);\n\n\t\tBox box = new Box(BoxLayout.X_AXIS);\n\n\t\tbox.add(Box.createGlue());\n\t\tinstall = new JButton(jEdit.getProperty(\"install-plugins.install\"));\n\t\tinstall.setEnabled(false);\n\t\tgetRootPane().setDefaultButton(install);\n\t\tinstall.addActionListener(new ActionHandler());\n\t\tbox.add(install);\n\t\tbox.add(Box.createHorizontalStrut(6));\n\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.addActionListener(new ActionHandler());\n\t\tbox.add(cancel);\n\t\tbox.add(Box.createHorizontalStrut(6));\n\t\tbox.add(Box.createGlue());\n\n\t\tcontent.add(BorderLayout.SOUTH,box);\n\n\t\tpack();\n\t\tsetLocationRelativeTo(dialog);\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [2, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [4, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [0, 54], [6, 55], [0, 56], [0, 57], [0, 58], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 64], [0, 65], [0, 66], [0, 67], [0, 68], [0, 69], [0, 70], [0, 71], [0, 72], [0, 73], [21, 74], [22, 75], [24, 76], [25, 77], [26, 78], [28, 79], [29, 80], [30, 81], [31, 82], [32, 83], [1, 84], [36, 85], [37, 86], [2, 87], [2, 88], [2, 89], [2, 90], [2, 91], [2, 92], [2, 93], [2, 94], [39, 95], [40, 96], [41, 97], [42, 98], [43, 99], [3, 100], [45, 101], [46, 102], [48, 103], [49, 104], [50, 105], [51, 106], [5, 107], [53, 108], [54, 109], [56, 110], [57, 111], [58, 112], [59, 113], [7, 114], [60, 115], [8, 116], [63, 117], [9, 118], [10, 119], [64, 120], [65, 121], [66, 122], [11, 123], [68, 124], [12, 125], [70, 126], [13, 127], [72, 128], [72, 129], [72, 130], [75, 131], [77, 132], [78, 133], [82, 134], [85, 135], [86, 136], [2, 137], [87, 138], [2, 139], [2, 140], [2, 141], [2, 142], [88, 143], [2, 144], [2, 145], [2, 146], [2, 147], [91, 148], [2, 149], [99, 150], [99, 151], [100, 152], [102, 153], [4, 154], [103, 155], [104, 156], [105, 157], [106, 158], [106, 159], [106, 160], [106, 161], [107, 162], [108, 163], [109, 164], [6, 165], [110, 166], [111, 167], [112, 168], [113, 169], [113, 170], [113, 171], [113, 172], [114, 173], [115, 174], [115, 175], [115, 176], [115, 177], [116, 178], [120, 179], [122, 180], [122, 181], [122, 182], [122, 183], [123, 184], [124, 185], [124, 186], [124, 187], [124, 188], [125, 189], [126, 190], [126, 191], [126, 192], [126, 193], [127, 194], [128, 195], [129, 196], [132, 197], [134, 198], [135, 199], [135, 200], [136, 201], [87, 202], [87, 203], [141, 204], [143, 205], [89, 206], [144, 207], [147, 208], [148, 209], [92, 210], [149, 211], [93, 212], [94, 213], [152, 214], [152, 215], [154, 216], [162, 217], [162, 218], [162, 219], [162, 220], [163, 221], [164, 222], [165, 223], [166, 224], [167, 225], [168, 226], [173, 227], [173, 228], [173, 229], [173, 230], [189, 231], [201, 232], [202, 233], [203, 234], [204, 235], [88, 236], [88, 237], [88, 238], [88, 239], [208, 240], [91, 241], [91, 242], [91, 243], [91, 244], [213, 245], [216, 246], [220, 247], [220, 248], [220, 249], [221, 250], [221, 251], [222, 252], [222, 253], [223, 254], [224, 255], [224, 256], [225, 257], [225, 258], [226, 259], [226, 260], [230, 261], [230, 262], [230, 263], [142, 264], [236, 265], [237, 266], [238, 267], [239, 268], [241, 269], [242, 270], [243, 271], [244, 272], [245, 273], [245, 274], [254, 275], [266, 276], [268, 277], [270, 278], [272, 279], [275, 280], [275, 281], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 2], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 4], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 0], [55, 6], [56, 0], [57, 0], [58, 0], [59, 0], [60, 0], [61, 0], [62, 0], [63, 0], [64, 0], [65, 0], [66, 0], [67, 0], [68, 0], [69, 0], [70, 0], [71, 0], [72, 0], [73, 0], [74, 21], [75, 22], [76, 24], [77, 25], [78, 26], [79, 28], [80, 29], [81, 30], [82, 31], [83, 32], [84, 1], [85, 36], [86, 37], [87, 2], [88, 2], [89, 2], [90, 2], [91, 2], [92, 2], [93, 2], [94, 2], [95, 39], [96, 40], [97, 41], [98, 42], [99, 43], [100, 3], [101, 45], [102, 46], [103, 48], [104, 49], [105, 50], [106, 51], [107, 5], [108, 53], [109, 54], [110, 56], [111, 57], [112, 58], [113, 59], [114, 7], [115, 60], [116, 8], [117, 63], [118, 9], [119, 10], [120, 64], [121, 65], [122, 66], [123, 11], [124, 68], [125, 12], [126, 70], [127, 13], [128, 72], [129, 72], [130, 72], [131, 75], [132, 77], [133, 78], [134, 82], [135, 85], [136, 86], [137, 2], [138, 87], [139, 2], [140, 2], [141, 2], [142, 2], [143, 88], [144, 2], [145, 2], [146, 2], [147, 2], [148, 91], [149, 2], [150, 99], [151, 99], [152, 100], [153, 102], [154, 4], [155, 103], [156, 104], [157, 105], [158, 106], [159, 106], [160, 106], [161, 106], [162, 107], [163, 108], [164, 109], [165, 6], [166, 110], [167, 111], [168, 112], [169, 113], [170, 113], [171, 113], [172, 113], [173, 114], [174, 115], [175, 115], [176, 115], [177, 115], [178, 116], [179, 120], [180, 122], [181, 122], [182, 122], [183, 122], [184, 123], [185, 124], [186, 124], [187, 124], [188, 124], [189, 125], [190, 126], [191, 126], [192, 126], [193, 126], [194, 127], [195, 128], [196, 129], [197, 132], [198, 134], [199, 135], [200, 135], [201, 136], [202, 87], [203, 87], [204, 141], [205, 143], [206, 89], [207, 144], [208, 147], [209, 148], [210, 92], [211, 149], [212, 93], [213, 94], [214, 152], [215, 152], [216, 154], [217, 162], [218, 162], [219, 162], [220, 162], [221, 163], [222, 164], [223, 165], [224, 166], [225, 167], [226, 168], [227, 173], [228, 173], [229, 173], [230, 173], [231, 189], [232, 201], [233, 202], [234, 203], [235, 204], [236, 88], [237, 88], [238, 88], [239, 88], [240, 208], [241, 91], [242, 91], [243, 91], [244, 91], [245, 213], [246, 216], [247, 220], [248, 220], [249, 220], [250, 221], [251, 221], [252, 222], [253, 222], [254, 223], [255, 224], [256, 224], [257, 225], [258, 225], [259, 226], [260, 226], [261, 230], [262, 230], [263, 230], [264, 142], [265, 236], [266, 237], [267, 238], [268, 239], [269, 241], [270, 242], [271, 243], [272, 244], [273, 245], [274, 245], [275, 254], [276, 266], [277, 268], [278, 270], [279, 272], [280, 275], [281, 275], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281]]}], "label": 1}
{"sample_id": "ant-1.4-141", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/mail/MailMessage.java", "language": "java", "name": "org.apache.tools.mail.MailMessage", "code": "public class MailMessage {\n\n  String host;\n  String from;\n  Vector to, cc;\n  Hashtable headers;\n  MailPrintStream out;\n  SmtpResponseReader in;\n  Socket socket;\n\n  /**\n   * Constructs a new MailMessage to send an email.\n   * Use localhost as the mail server.\n   *\n   * @exception IOException if there's any problem contacting the mail server\n   */\n  public MailMessage() throws IOException {\n    this(\"localhost\");\n  }\n\n  /**\n   * Constructs a new MailMessage to send an email.\n   * Use the given host as the mail server.\n   *\n   * @param host the mail server to use\n   * @exception IOException if there's any problem contacting the mail server\n   */\n  public MailMessage(String host) throws IOException {\n    this.host = host;\n    to = new Vector();\n    cc = new Vector();\n    headers = new Hashtable();\n    setHeader(\"X-Mailer\", \"org.apache.tools.mail.MailMessage (jakarta.apache.org)\");\n    connect();\n    sendHelo();\n  }\n\n  /**\n   * Sets the from address.  Also sets the \"From\" header.  This method should\n   * be called only once.\n   *\n   * @exception IOException if there's any problem reported by the mail server\n   */\n  public void from(String from) throws IOException {\n    sendFrom(from);\n    this.from = from;\n  }\n\n  /**\n   * Sets the to address.  Also sets the \"To\" header.  This method may be\n   * called multiple times.\n   *\n   * @exception IOException if there's any problem reported by the mail server\n   */\n  public void to(String to) throws IOException {\n    sendRcpt(to);\n    this.to.addElement(to);\n  }\n\n  /**\n   * Sets the cc address.  Also sets the \"Cc\" header.  This method may be\n   * called multiple times.\n   *\n   * @exception IOException if there's any problem reported by the mail server\n   */\n  public void cc(String cc) throws IOException {\n    sendRcpt(cc);\n    this.cc.addElement(cc);\n  }\n\n  /**\n   * Sets the bcc address.  Does NOT set any header since it's a *blind* copy.\n   * This method may be called multiple times.\n   *\n   * @exception IOException if there's any problem reported by the mail server\n   */\n  public void bcc(String bcc) throws IOException {\n    sendRcpt(bcc);\n  }\n\n  /**\n   * Sets the subject of the mail message.  Actually sets the \"Subject\" \n   * header.\n   */\n  public void setSubject(String subj) {\n    headers.put(\"Subject\", subj);\n  }\n\n  /**\n   * Sets the named header to the given value.  RFC 822 provides the rules for\n   * what text may constitute a header name and value.\n   */\n  public void setHeader(String name, String value) {\n    headers.put(name, value);\n  }\n\n  /**\n   * Returns a PrintStream that can be used to write the body of the message.\n   * A stream is used since email bodies are byte-oriented.  A writer could \n   * be wrapped on top if necessary for internationalization.\n   *\n   * @exception IOException if there's any problem reported by the mail server\n   */\n  public PrintStream getPrintStream() throws IOException {\n    setFromHeader();\n    setToHeader();\n    setCcHeader();\n    sendData();\n    flushHeaders();\n    return out;\n  }\n\n  void setFromHeader() {\n    setHeader(\"From\", from);\n  }\n\n  void setToHeader() {\n    setHeader(\"To\", vectorToList(to));\n  }\n\n  void setCcHeader() {\n    setHeader(\"Cc\", vectorToList(cc));\n  }\n\n  String vectorToList(Vector v) {\n    StringBuffer buf = new StringBuffer();\n    Enumeration e = v.elements();\n    while (e.hasMoreElements()) {\n      buf.append(e.nextElement());\n      if (e.hasMoreElements()) {\n        buf.append(\", \");\n      }\n    }\n    return buf.toString();\n  }\n\n  void flushHeaders() throws IOException {\n    Enumeration e = headers.keys();\n    while (e.hasMoreElements()) {\n      String name = (String) e.nextElement();\n      String value = (String) headers.get(name);\n      out.println(name + \": \" + value);\n    }\n    out.println();\n    out.flush();\n  }\n\n  /**\n   * Sends the message and closes the connection to the server.\n   * The MailMessage object cannot be reused.\n   *\n   * @exception IOException if there's any problem reported by the mail server\n   */\n  public void sendAndClose() throws IOException {\n    sendDot();\n    sendQuit();\n    disconnect();\n  }\n\n  static String sanitizeAddress(String s) {\n    int paramDepth = 0;\n    int start = 0;\n    int end = 0;\n    int len = s.length();\n\n    for (int i = 0; i < len; i++) {\n      char c = s.charAt(i);\n      if (c == '(') {\n        paramDepth++;\n        if (start == 0) {\n        }\n      }\n      else if (c == ')') {\n        paramDepth--;\n        if (end == 0) {\n        }\n      }\n      else if (paramDepth == 0 && c == '<') {\n        start = i + 1;\n      }\n      else if (paramDepth == 0 && c == '>') {\n        end = i;\n      }\n    }\n\n    if (end == 0) {\n      end = len;\n    }\n\n    return s.substring(start, end);\n  }\n\n\n  void connect() throws IOException {\n    socket = new Socket(host, 25);\n    out = new MailPrintStream(\n          new BufferedOutputStream(\n          socket.getOutputStream())); \n    in = new SmtpResponseReader(socket.getInputStream());\n    getReady();\n  }\n\n  void getReady() throws IOException {\n    String response = in.getResponse();\n    int[] ok = { 220 };\n    if (!isResponseOK(response, ok)) {\n      throw new IOException(\n        \"Didn't get introduction from server: \" + response);\n    }\n  }\n\n  void sendHelo() throws IOException {\n    String local = InetAddress.getLocalHost().getHostName();\n    int[] ok = { 250 };\n    send(\"HELO \" + local, ok);\n  }\n\n  void sendFrom(String from) throws IOException {\n    int[] ok = { 250 };\n    send(\"MAIL FROM: \" + \"<\" + sanitizeAddress(from) + \">\", ok);\n  }\n\n  void sendRcpt(String rcpt) throws IOException {\n    int[] ok = { 250, 251 };\n    send(\"RCPT TO: \" + \"<\" + sanitizeAddress(rcpt) + \">\", ok);\n  }\n\n  void sendData() throws IOException {\n    int[] ok = { 354 };\n    send(\"DATA\", ok);\n  }\n\n  void sendDot() throws IOException {\n    int[] ok = { 250 };\n  }\n\n  void sendQuit() throws IOException {\n    int[] ok = { 221 };\n    send(\"QUIT\", ok);\n  }\n\n  void send(String msg, int[] ok) throws IOException {\n    String response = in.getResponse();\n    if (!isResponseOK(response, ok)) {\n      throw new IOException(\n        \"Unexpected reply to command: \" + msg + \": \" + response);\n    }\n  }\n\n  boolean isResponseOK(String response, int[] ok) {\n    for (int i = 0; i < ok.length; i++) {\n      if (response.startsWith(\"\" + ok[i])) {\n        return true;\n      }\n    }\n    return false;\n  }\n\n  void disconnect() throws IOException {\n    if (out != null) out.close(); \n    if (in != null) in.close(); \n    if (socket != null) socket.close();", "functions": [{"function_name": "from", "code": "  public void from(String from) throws IOException {\n    sendFrom(from);\n    this.from = from;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "to", "code": "  public void to(String to) throws IOException {\n    sendRcpt(to);\n    this.to.addElement(to);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "cc", "code": "  public void cc(String cc) throws IOException {\n    sendRcpt(cc);\n    this.cc.addElement(cc);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "bcc", "code": "  public void bcc(String bcc) throws IOException {\n    sendRcpt(bcc);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSubject", "code": "  public void setSubject(String subj) {\n    headers.put(\"Subject\", subj);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setHeader", "code": "  public void setHeader(String name, String value) {\n    headers.put(name, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPrintStream", "code": "  public PrintStream getPrintStream() throws IOException {\n    setFromHeader();\n    setToHeader();\n    setCcHeader();\n    sendData();\n    flushHeaders();\n    return out;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setFromHeader", "code": "  void setFromHeader() {\n    setHeader(\"From\", from);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setToHeader", "code": "  void setToHeader() {\n    setHeader(\"To\", vectorToList(to));", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setCcHeader", "code": "  void setCcHeader() {\n    setHeader(\"Cc\", vectorToList(cc));", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "vectorToList", "code": "  String vectorToList(Vector v) {\n    StringBuffer buf = new StringBuffer();\n    Enumeration e = v.elements();\n    while (e.hasMoreElements()) {\n      buf.append(e.nextElement());\n      if (e.hasMoreElements()) {\n        buf.append(\", \");\n      }\n    }\n    return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [4, 10], [8, 11], [2, 12], [12, 13], [8, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 4], [11, 8], [12, 2], [13, 12], [14, 8], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "flushHeaders", "code": "  void flushHeaders() throws IOException {\n    Enumeration e = headers.keys();\n    while (e.hasMoreElements()) {\n      String name = (String) e.nextElement();\n      String value = (String) headers.get(name);\n      out.println(name + \": \" + value);\n    }\n    out.println();\n    out.flush();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [1, 9], [9, 10], [10, 11], [6, 12], [7, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 1], [10, 9], [11, 10], [12, 6], [13, 7], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "sendAndClose", "code": "  public void sendAndClose() throws IOException {\n    sendDot();\n    sendQuit();\n    disconnect();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "sanitizeAddress", "code": "  static String sanitizeAddress(String s) {\n    int paramDepth = 0;\n    int start = 0;\n    int end = 0;\n    int len = s.length();\n\n    for (int i = 0; i < len; i++) {\n      char c = s.charAt(i);\n      if (c == '(') {\n        paramDepth++;\n        if (start == 0) {\n        }\n      }\n      else if (c == ')') {\n        paramDepth--;\n        if (end == 0) {\n        }\n      }\n      else if (paramDepth == 0 && c == '<') {\n        start = i + 1;\n      }\n      else if (paramDepth == 0 && c == '>') {\n        end = i;\n      }\n    }\n\n    if (end == 0) {\n      end = len;\n    }\n\n    return s.substring(start, end);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [10, 12], [3, 13], [3, 14], [4, 15], [5, 16], [6, 17], [7, 18], [2, 19], [13, 20], [13, 21], [3, 22], [20, 23], [20, 24], [13, 25], [21, 26], [14, 27], [23, 28], [23, 29], [20, 30], [24, 31], [25, 32], [28, 33], [29, 34], [29, 35], [30, 36], [32, 37], [33, 38], [33, 39], [23, 40], [34, 41], [35, 42], [36, 43], [28, 44], [38, 45], [39, 46], [40, 47], [47, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 10], [13, 3], [14, 3], [15, 4], [16, 5], [17, 6], [18, 7], [19, 2], [20, 13], [21, 13], [22, 3], [23, 20], [24, 20], [25, 13], [26, 21], [27, 14], [28, 23], [29, 23], [30, 20], [31, 24], [32, 25], [33, 28], [34, 29], [35, 29], [36, 30], [37, 32], [38, 33], [39, 33], [40, 23], [41, 34], [42, 35], [43, 36], [44, 28], [45, 38], [46, 39], [47, 40], [48, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "connect", "code": "  void connect() throws IOException {\n    socket = new Socket(host, 25);\n    out = new MailPrintStream(\n          new BufferedOutputStream(\n          socket.getOutputStream())); \n    in = new SmtpResponseReader(socket.getInputStream());\n    getReady();", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [5, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 5], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getReady", "code": "  void getReady() throws IOException {\n    String response = in.getResponse();\n    int[] ok = { 220 };\n    if (!isResponseOK(response, ok)) {\n      throw new IOException(\n        \"Didn't get introduction from server: \" + response);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [3, 6], [5, 7], [2, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 3], [7, 5], [8, 2], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "sendHelo", "code": "  void sendHelo() throws IOException {\n    String local = InetAddress.getLocalHost().getHostName();\n    int[] ok = { 250 };\n    send(\"HELO \" + local, ok);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [4, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [6, 4], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "sendFrom", "code": "  void sendFrom(String from) throws IOException {\n    int[] ok = { 250 };\n    send(\"MAIL FROM: \" + \"<\" + sanitizeAddress(from) + \">\", ok);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 7], [6, 8], [6, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [7, 1], [8, 6], [9, 6], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "sendRcpt", "code": "  void sendRcpt(String rcpt) throws IOException {\n    int[] ok = { 250, 251 };\n    send(\"RCPT TO: \" + \"<\" + sanitizeAddress(rcpt) + \">\", ok);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 7], [1, 8], [6, 9], [6, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [7, 1], [8, 1], [9, 6], [10, 6], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "sendData", "code": "  void sendData() throws IOException {\n    int[] ok = { 354 };\n    send(\"DATA\", ok);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [1, 0], [2, 0], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "sendDot", "code": "  void sendDot() throws IOException {\n    int[] ok = { 250 };", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "sendQuit", "code": "  void sendQuit() throws IOException {\n    int[] ok = { 221 };\n    send(\"QUIT\", ok);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [1, 0], [2, 0], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "send", "code": "  void send(String msg, int[] ok) throws IOException {\n    String response = in.getResponse();\n    if (!isResponseOK(response, ok)) {\n      throw new IOException(\n        \"Unexpected reply to command: \" + msg + \": \" + response);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [6, 8], [8, 9], [9, 10], [10, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 6], [9, 8], [10, 9], [11, 10], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "isResponseOK", "code": "  boolean isResponseOK(String response, int[] ok) {\n    for (int i = 0; i < ok.length; i++) {\n      if (response.startsWith(\"\" + ok[i])) {\n        return true;\n      }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [7, 8], [2, 9], [7, 10], [8, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 7], [9, 2], [10, 7], [11, 8], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "disconnect", "code": "  void disconnect() throws IOException {\n    if (out != null) out.close(); \n    if (in != null) in.close(); \n    if (socket != null) socket.close();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [2, 9], [5, 10], [3, 11], [6, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [9, 2], [10, 5], [11, 3], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "MailMessage", "code": "  public MailMessage() throws IOException {\n    this(\"localhost\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "MailMessage", "code": "  public MailMessage(String host) throws IOException {\n    this.host = host;\n    to = new Vector();\n    cc = new Vector();\n    headers = new Hashtable();\n    setHeader(\"X-Mailer\", \"org.apache.tools.mail.MailMessage (jakarta.apache.org)\");\n    connect();\n    sendHelo();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [4, 10], [5, 11], [6, 12], [7, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 4], [11, 5], [12, 6], [13, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 0}
{"sample_id": "jedit-4.0-3778", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "gnu/regexp/RETokenRange.java", "language": "java", "name": "gnu.regexp.RETokenRange", "code": "final class RETokenRange extends REToken {\n  private char lo, hi;\n  private boolean insens;\n\n  RETokenRange(int subIndex, char lo, char hi, boolean ins) {\n    super(subIndex);\n    this.lo = (insens = ins) ? Character.toLowerCase(lo) : lo;\n    this.hi = ins ? Character.toLowerCase(hi) : hi;\n  }\n\n  int getMinimumLength() {\n    return 1;\n  }\n\n    boolean match(CharIndexed input, REMatch mymatch) {\n\tchar c = input.charAt(mymatch.index);\n\tif (c == CharIndexed.OUT_OF_BOUNDS) return false;\n\tif (insens) c = Character.toLowerCase(c);\n\tif ((c >= lo) && (c <= hi)) {\n\t    ++mymatch.index;\n\t    return next(input, mymatch);\n\t}\n\treturn false;\n    }\n    \n  void dump(StringBuffer os) {\n    os.append(lo).append('-').append(hi);", "functions": [{"function_name": "getMinimumLength", "code": "  int getMinimumLength() {\n    return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\tchar c = input.charAt(mymatch.index);\n\tif (c == CharIndexed.OUT_OF_BOUNDS) return false;\n\tif (insens) c = Character.toLowerCase(c);\n\tif ((c >= lo) && (c <= hi)) {\n\t    ++mymatch.index;\n\t    return next(input, mymatch);\n\t}\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [4, 11], [2, 12], [9, 13], [9, 14], [3, 15], [10, 16], [5, 17], [12, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 4], [12, 2], [13, 9], [14, 9], [15, 3], [16, 10], [17, 5], [18, 12], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "dump", "code": "  void dump(StringBuffer os) {\n    os.append(lo).append('-').append(hi);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "RETokenRange", "code": "  RETokenRange(int subIndex, char lo, char hi, boolean ins) {\n    super(subIndex);\n    this.lo = (insens = ins) ? Character.toLowerCase(lo) : lo;\n    this.hi = ins ? Character.toLowerCase(hi) : hi;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [7, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [9, 7], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "ant-1.7-1080", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/Path.java", "language": "java", "name": "org.apache.tools.ant.types.Path", "code": "public class Path extends DataType implements Cloneable, ResourceCollection {\n\n    /** The system classpath as a Path object */\n    public static Path systemClasspath =\n        new Path(null, System.getProperty(\"java.class.path\"));\n\n\n    /**\n     * The system bootclasspath as a Path object.\n     *\n     * @since Ant 1.6.2\n     */\n    public static Path systemBootClasspath =\n        new Path(null, System.getProperty(\"sun.boot.class.path\"));\n\n    private static final Iterator EMPTY_ITERATOR\n        = Collections.EMPTY_SET.iterator();\n\n\n    /**\n     * Helper class, holds the nested <code>&lt;pathelement&gt;</code> values.\n     */\n    public class PathElement implements ResourceCollection {\n        private String[] parts;\n\n        /**\n         * Set the location.\n         *\n         * @param loc a <code>File</code> value\n         */\n        public void setLocation(File loc) {\n            parts = new String[] {translateFile(loc.getAbsolutePath())};\n        }\n\n        /**\n         * Set the path.\n         *\n         * @param path a <code>String</code> value\n         */\n        public void setPath(String path) {\n            parts = Path.translatePath(getProject(), path);\n        }\n\n        /**\n         * Return the converted pathelements.\n         *\n         * @return a <code>String[]</code> value\n         */\n        public String[] getParts() {\n            return parts;\n        }\n\n        /**\n         * Create an iterator.\n         * @return an iterator.\n         */\n        public Iterator iterator() {\n            return new FileResourceIterator(null, parts);\n        }\n\n        /**\n         * Check if this resource is only for filesystems.\n         * @return true.\n         */\n        public boolean isFilesystemOnly() {\n            return true;\n        }\n\n        /**\n         * Get the number of resources.\n         * @return the number of parts.\n         */\n        public int size() {\n            return parts == null ? 0 : parts.length;\n        }\n\n    }\n\n    private Boolean preserveBC;\n\n    private Union union = null;\n\n    /**\n     * Invoked by IntrospectionHelper for <code>setXXX(Path p)</code>\n     * attribute setters.\n     * @param p the <code>Project</code> for this path.\n     * @param path the <code>String</code> path definition.\n     */\n    public Path(Project p, String path) {\n        this(p);\n        createPathElement().setPath(path);\n    }\n\n    /**\n     * Construct an empty <code>Path</code>.\n     * @param project the <code>Project</code> for this path.\n     */\n    public Path(Project project) {\n        setProject(project);\n    }\n\n    /**\n     * Adds a element definition to the path.\n     * @param location the location of the element to add (must not be\n     * <code>null</code> nor empty.\n     * @throws BuildException on error\n     */\n    public void setLocation(File location) throws BuildException {\n        checkAttributesAllowed();\n        createPathElement().setLocation(location);\n    }\n\n    /**\n     * Parses a path definition and creates single PathElements.\n     * @param path the <code>String</code> path definition.\n     * @throws BuildException on error\n     */\n    public void setPath(String path) throws BuildException {\n        checkAttributesAllowed();\n        createPathElement().setPath(path);\n    }\n\n    /**\n     * Makes this instance in effect a reference to another Path instance.\n     *\n     * <p>You must not set another attribute or nest elements inside\n     * this element if you make it a reference.</p>\n     * @param r the reference to another Path\n     * @throws BuildException on error\n     */\n    public void setRefid(Reference r) throws BuildException {\n        if (union != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);\n    }\n\n    /**\n     * Creates the nested <code>&lt;pathelement&gt;</code> element.\n     * @return the <code>PathElement</code> to be configured\n     * @throws BuildException on error\n     */\n    public PathElement createPathElement() throws BuildException {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        PathElement pe = new PathElement();\n        add(pe);\n        return pe;\n    }\n\n    /**\n     * Adds a nested <code>&lt;fileset&gt;</code> element.\n     * @param fs a <code>FileSet</code> to be added to the path\n     * @throws BuildException on error\n     */\n    public void addFileset(FileSet fs) throws BuildException {\n        if (fs.getProject() == null) {\n            fs.setProject(getProject());\n        }\n        add(fs);\n    }\n\n    /**\n     * Adds a nested <code>&lt;filelist&gt;</code> element.\n     * @param fl a <code>FileList</code> to be added to the path\n     * @throws BuildException on error\n     */\n    public void addFilelist(FileList fl) throws BuildException {\n        if (fl.getProject() == null) {\n            fl.setProject(getProject());\n        }\n        add(fl);\n    }\n\n    /**\n     * Adds a nested <code>&lt;dirset&gt;</code> element.\n     * @param dset a <code>DirSet</code> to be added to the path\n     * @throws BuildException on error\n     */\n    public void addDirset(DirSet dset) throws BuildException {\n        if (dset.getProject() == null) {\n            dset.setProject(getProject());\n        }\n        add(dset);\n    }\n\n    /**\n     * Adds a nested path\n     * @param path a <code>Path</code> to be added to the path\n     * @throws BuildException on error\n     * @since Ant 1.6\n     */\n    public void add(Path path) throws BuildException {\n        if (path == this) {\n            throw circularReference();\n        }\n        if (path.getProject() == null) {\n            path.setProject(getProject());\n        }\n        add((ResourceCollection) path);\n    }\n\n    /**\n     * Add a nested <code>ResourceCollection</code>.\n     * @param c the ResourceCollection to add.\n     * @since Ant 1.7\n     */\n    public void add(ResourceCollection c) {\n        checkChildrenAllowed();\n        if (c == null) {\n            return;\n        }\n        if (union == null) {\n            union = new Union();\n            union.setProject(getProject());\n            union.setCache(false);\n        }\n        union.add(c);\n        setChecked(false);\n    }\n\n    /**\n     * Creates a nested <code>&lt;path&gt;</code> element.\n     * @return a <code>Path</code> to be configured\n     * @throws BuildException on error\n     */\n    public Path createPath() throws BuildException {\n        Path p = new Path(getProject());\n        add(p);\n        return p;\n    }\n\n    /**\n     * Append the contents of the other Path instance to this.\n     * @param other a <code>Path</code> to be added to the path\n     */\n    public void append(Path other) {\n        if (other == null) {\n            return;\n        }\n        add(other);\n    }\n\n    /**\n     * Adds the components on the given path which exist to this\n     * Path. Components that don't exist aren't added.\n     *\n     * @param source - source path whose components are examined for existence\n     */\n     public void addExisting(Path source) {\n         addExisting(source, false);\n     }\n\n    /**\n     * Same as addExisting, but support classpath behavior if tryUserDir\n     * is true. Classpaths are relative to user dir, not the project base.\n     * That used to break jspc test\n     *\n     * @param source the source path\n     * @param tryUserDir  if true try the user directory if the file is not present\n     */\n    public void addExisting(Path source, boolean tryUserDir) {\n        String[] list = source.list();\n        File userDir = (tryUserDir) ? new File(System.getProperty(\"user.dir\"))\n                : null;\n\n        for (int i = 0; i < list.length; i++) {\n            File f = resolveFile(getProject(), list[i]);\n\n            if (tryUserDir && !f.exists()) {\n                f = new File(userDir, list[i]);\n            }\n            if (f.exists()) {\n                setLocation(f);\n            } else {\n                log(\"dropping \" + f + \" from path as it doesn't exist\",\n                    Project.MSG_VERBOSE);\n            }\n        }\n    }\n\n    /**\n     * Returns all path elements defined by this and nested path objects.\n     * @return list of path elements.\n     */\n    public String[] list() {\n        if (isReference()) {\n            return ((Path) getCheckedRef()).list();\n        }\n        return assertFilesystemOnly(union) == null\n            ? new String[0] : union.list();\n    }\n\n    /**\n     * Returns a textual representation of the path, which can be used as\n     * CLASSPATH or PATH environment variable definition.\n     * @return a textual representation of the path.\n     */\n    public String toString() {\n        return isReference() ? getCheckedRef().toString()\n            : union == null ? \"\" : union.toString();\n    }\n\n    /**\n     * Splits a PATH (with : or ; as separators) into its parts.\n     * @param project the project to use\n     * @param source a <code>String</code> value\n     * @return an array of strings, one for each path element\n     */\n    public static String[] translatePath(Project project, String source) {\n        final Vector result = new Vector();\n        if (source == null) {\n            return new String[0];\n        }\n        PathTokenizer tok = new PathTokenizer(source);\n        StringBuffer element = new StringBuffer();\n        while (tok.hasMoreTokens()) {\n            String pathElement = tok.nextToken();\n            try {\n                element.append(resolveFile(project, pathElement).getPath());\n            } catch (BuildException e) {\n                project.log(\"Dropping path element \" + pathElement\n                    + \" as it is not valid relative to the project\",\n                    Project.MSG_VERBOSE);\n            }\n            for (int i = 0; i < element.length(); i++) {\n                translateFileSep(element, i);\n            }\n            result.addElement(element.toString());\n            element = new StringBuffer();\n        }\n        String[] res = new String[result.size()];\n        result.copyInto(res);\n        return res;\n    }\n\n    /**\n     * Returns its argument with all file separator characters\n     * replaced so that they match the local OS conventions.\n     * @param source the path to convert\n     * @return the converted path\n     */\n    public static String translateFile(String source) {\n        if (source == null) {\n          return \"\";\n        }\n        final StringBuffer result = new StringBuffer(source);\n        for (int i = 0; i < result.length(); i++) {\n            translateFileSep(result, i);\n        }\n        return result.toString();\n    }\n\n    /**\n     * Translates occurrences at a position of / or \\ to correct separator of the\n     * current platform and returns whether it had to do a\n     * replacement.\n     * @param buffer a buffer containing a string\n     * @param pos the position in the string buffer to convert\n     * @return true if the character was a / or \\\n     */\n    protected static boolean translateFileSep(StringBuffer buffer, int pos) {\n        if (buffer.charAt(pos) == '/' || buffer.charAt(pos) == '\\\\') {\n            buffer.setCharAt(pos, File.separatorChar);\n            return true;\n        }\n        return false;\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return number of elements as int.\n     */\n    public synchronized int size() {\n        if (isReference()) {\n            return ((Path) getCheckedRef()).size();\n        }\n        dieOnCircularReference();\n        return union == null ? 0 : assertFilesystemOnly(union).size();\n    }\n\n    /**\n     * Clone this Path.\n     * @return Path with shallowly cloned Resource children.\n     */\n    public Object clone() {\n        try {\n            Path result = (Path) super.clone();\n            result.union = union == null ? union : (Union) union.clone();\n            return result;\n        } catch (CloneNotSupportedException e) {\n            throw new BuildException(e);\n        }\n    }\n\n    /**\n     * Overrides the version of DataType to recurse on all DataType\n     * child elements that may have been added.\n     * @param stk the stack of data types to use (recursively).\n     * @param p   the project to use to dereference the references.\n     * @throws BuildException on error.\n     */\n    protected synchronized void dieOnCircularReference(Stack stk, Project p)\n        throws BuildException {\n        if (isChecked()) {\n            return;\n        }\n        if (isReference()) {\n            super.dieOnCircularReference(stk, p);\n        } else {\n            if (union != null) {\n                stk.push(union);\n                invokeCircularReferenceCheck(union, stk, p);\n                stk.pop();\n            }\n            setChecked(true);\n        }\n    }\n\n    /**\n     * Resolve a filename with Project's help - if we know one that is.\n     */\n    private static File resolveFile(Project project, String relativeName) {\n        return FileUtils.getFileUtils().resolveFile(\n            (project == null) ? null : project.getBaseDir(), relativeName);\n    }\n\n    /**\n     * Concatenates the system class path in the order specified by\n     * the ${build.sysclasspath} property - using &quot;last&quot; as\n     * default value.\n     * @return the concatenated path\n     */\n    public Path concatSystemClasspath() {\n        return concatSystemClasspath(\"last\");\n    }\n\n    /**\n     * Concatenates the system class path in the order specified by\n     * the ${build.sysclasspath} property - using the supplied value\n     * if ${build.sysclasspath} has not been set.\n     * @param defValue the order (\"first\", \"last\", \"only\")\n     * @return the concatenated path\n     */\n    public Path concatSystemClasspath(String defValue) {\n        return concatSpecialPath(defValue, Path.systemClasspath);\n    }\n\n    /**\n     * Concatenates the system boot class path in the order specified\n     * by the ${build.sysclasspath} property - using the supplied\n     * value if ${build.sysclasspath} has not been set.\n     * @param defValue the order (\"first\", \"last\", \"only\")\n     * @return the concatenated path\n     */\n    public Path concatSystemBootClasspath(String defValue) {\n        return concatSpecialPath(defValue, Path.systemBootClasspath);\n    }\n\n    /**\n     * Concatenates a class path in the order specified by the\n     * ${build.sysclasspath} property - using the supplied value if\n     * ${build.sysclasspath} has not been set.\n     */\n    private Path concatSpecialPath(String defValue, Path p) {\n        Path result = new Path(getProject());\n\n        String order = defValue;\n        if (getProject() != null) {\n            String o = getProject().getProperty(\"build.sysclasspath\");\n            if (o != null) {\n                order = o;\n            }\n        }\n        if (order.equals(\"only\")) {\n            result.addExisting(p, true);\n\n        } else if (order.equals(\"first\")) {\n            result.addExisting(p, true);\n            result.addExisting(this);\n\n        } else if (order.equals(\"ignore\")) {\n            result.addExisting(this);\n\n        } else {\n            if (!order.equals(\"last\")) {\n                log(\"invalid value for build.sysclasspath: \" + order,\n                    Project.MSG_WARN);\n            }\n            result.addExisting(this);\n            result.addExisting(p, true);\n        }\n        return result;\n    }\n\n    /**\n     * Add the Java Runtime classes to this Path instance.\n     */\n    public void addJavaRuntime() {\n        if (JavaEnvUtils.isKaffe()) {\n            File kaffeShare = new File(System.getProperty(\"java.home\")\n                                       + File.separator + \"share\"\n                                       + File.separator + \"kaffe\");\n            if (kaffeShare.isDirectory()) {\n                FileSet kaffeJarFiles = new FileSet();\n                kaffeJarFiles.setDir(kaffeShare);\n                kaffeJarFiles.setIncludes(\"*.jar\");\n                addFileset(kaffeJarFiles);\n            }\n        } else if (\"GNU libgcj\".equals(System.getProperty(\"java.vm.name\"))) {\n            addExisting(systemBootClasspath);\n        }\n\n        if (System.getProperty(\"java.vendor\").toLowerCase(Locale.US).indexOf(\"microsoft\") >= 0) {\n            FileSet msZipFiles = new FileSet();\n            msZipFiles.setDir(new File(System.getProperty(\"java.home\")\n                + File.separator + \"Packages\"));\n            msZipFiles.setIncludes(\"*.ZIP\");\n            addFileset(msZipFiles);\n        } else {\n            addExisting(new Path(null,\n                                 System.getProperty(\"java.home\")\n                                 + File.separator + \"lib\"\n                                 + File.separator + \"rt.jar\"));\n            addExisting(new Path(null,\n                                 System.getProperty(\"java.home\")\n                                 + File.separator + \"jre\"\n                                 + File.separator + \"lib\"\n                                 + File.separator + \"rt.jar\"));\n\n            String[] secJars = {\"jce\", \"jsse\"};\n            for (int i = 0; i < secJars.length; i++) {\n                addExisting(new Path(null,\n                                     System.getProperty(\"java.home\")\n                                     + File.separator + \"lib\"\n                                     + File.separator + secJars[i] + \".jar\"));\n                addExisting(new Path(null,\n                                     System.getProperty(\"java.home\")\n                                     + File.separator + \"..\"\n                                     + File.separator + \"Classes\"\n                                     + File.separator + secJars[i] + \".jar\"));\n            }\n\n            String[] ibmJars\n                = {\"core\", \"graphics\", \"security\", \"server\", \"xml\"};\n            for (int i = 0; i < ibmJars.length; i++) {\n                addExisting(new Path(null,\n                                     System.getProperty(\"java.home\")\n                                     + File.separator + \"lib\"\n                                     + File.separator + ibmJars[i] + \".jar\"));\n            }\n\n            addExisting(new Path(null,\n                                 System.getProperty(\"java.home\")\n                                 + File.separator + \"..\"\n                                 + File.separator + \"Classes\"\n                                 + File.separator + \"classes.jar\"));\n            addExisting(new Path(null,\n                                 System.getProperty(\"java.home\")\n                                 + File.separator + \"..\"\n                                 + File.separator + \"Classes\"\n                                 + File.separator + \"ui.jar\"));\n        }\n    }\n\n    /**\n     * Emulation of extdirs feature in java >= 1.2.\n     * This method adds all files in the given\n     * directories (but not in sub-directories!) to the classpath,\n     * so that you don't have to specify them all one by one.\n     * @param extdirs - Path to append files to\n     */\n    public void addExtdirs(Path extdirs) {\n        if (extdirs == null) {\n            String extProp = System.getProperty(\"java.ext.dirs\");\n            if (extProp != null) {\n                extdirs = new Path(getProject(), extProp);\n            } else {\n                return;\n            }\n        }\n\n        String[] dirs = extdirs.list();\n        for (int i = 0; i < dirs.length; i++) {\n            File dir = resolveFile(getProject(), dirs[i]);\n            if (dir.exists() && dir.isDirectory()) {\n                FileSet fs = new FileSet();\n                fs.setDir(dir);\n                fs.setIncludes(\"*\");\n                addFileset(fs);\n            }\n        }\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract. The Iterator returned\n     * will throw ConcurrentModificationExceptions if ResourceCollections\n     * are added to this container while the Iterator is in use.\n     * @return a \"fail-fast\" Iterator.\n     */\n    public final synchronized Iterator iterator() {\n        if (isReference()) {\n            return ((Path) getCheckedRef()).iterator();\n        }\n        dieOnCircularReference();\n        if (getPreserveBC()) {\n            return new FileResourceIterator(null, list());\n        }\n        return union == null ? EMPTY_ITERATOR\n            : assertFilesystemOnly(union).iterator();\n    }\n\n    /**\n     * Fulfill the ResourceCollection contract.\n     * @return whether this is a filesystem-only resource collection.\n     */\n    public synchronized boolean isFilesystemOnly() {\n        if (isReference()) {\n            return ((Path) getCheckedRef()).isFilesystemOnly();\n        }\n        dieOnCircularReference();\n        assertFilesystemOnly(union);\n        return true;\n    }\n\n    /**\n     * Verify the specified ResourceCollection is filesystem-only.\n     * @param rc the ResourceCollection to check.\n     * @throws BuildException if <code>rc</code> is not filesystem-only.\n     * @return the passed in ResourceCollection.\n     */\n    protected ResourceCollection assertFilesystemOnly(ResourceCollection rc) {\n        if (rc != null && !(rc.isFilesystemOnly())) {\n            throw new BuildException(getDataTypeName()\n                + \" allows only filesystem resources.\");\n        }\n        return rc;\n    }\n\n    /**\n     * Helps determine whether to preserve BC by calling <code>list()</code> on subclasses.\n     * The default behavior of this method is to return <code>true</code> for any subclass\n     * that implements <code>list()</code>; this can, of course, be avoided by overriding\n     * this method to return <code>false</code>. It is not expected that the result of this\n     * method should change over time, thus it is called only once.\n     * @return <code>true</code> if <code>iterator()</code> should delegate to <code>list()</code>.\n     */\n    protected boolean delegateIteratorToList() {\n        if (getClass().equals(Path.class)) {\n            return false;\n        }\n        try {\n            Method listMethod = getClass().getMethod(\"list\", (Class[]) null);\n            return !listMethod.getDeclaringClass().equals(Path.class);\n        } catch (Exception e) {\n            return false;\n        }\n    }\n\n    private synchronized boolean getPreserveBC() {\n        if (preserveBC == null) {\n            preserveBC = delegateIteratorToList() ? Boolean.TRUE : Boolean.FALSE;\n        }\n        return preserveBC.booleanValue();", "functions": [{"function_name": "setLocation", "code": "    public void setLocation(File location) throws BuildException {\n        checkAttributesAllowed();\n        createPathElement().setLocation(location);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setPath", "code": "    public void setPath(String path) throws BuildException {\n        checkAttributesAllowed();\n        createPathElement().setPath(path);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setRefid", "code": "    public void setRefid(Reference r) throws BuildException {\n        if (union != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createPathElement", "code": "    public PathElement createPathElement() throws BuildException {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        PathElement pe = new PathElement();\n        add(pe);\n        return pe;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [3, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [7, 3], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet fs) throws BuildException {\n        if (fs.getProject() == null) {\n            fs.setProject(getProject());\n        }\n        add(fs);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addFilelist", "code": "    public void addFilelist(FileList fl) throws BuildException {\n        if (fl.getProject() == null) {\n            fl.setProject(getProject());\n        }\n        add(fl);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addDirset", "code": "    public void addDirset(DirSet dset) throws BuildException {\n        if (dset.getProject() == null) {\n            dset.setProject(getProject());\n        }\n        add(dset);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "add", "code": "    public void add(Path path) throws BuildException {\n        if (path == this) {\n            throw circularReference();\n        }\n        if (path.getProject() == null) {\n            path.setProject(getProject());\n        }\n        add((ResourceCollection) path);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [5, 8], [2, 9], [1, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 5], [9, 2], [10, 1], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "add", "code": "    public void add(ResourceCollection c) {\n        checkChildrenAllowed();\n        if (c == null) {\n            return;\n        }\n        if (union == null) {\n            union = new Union();\n            union.setProject(getProject());\n            union.setCache(false);\n        }\n        union.add(c);\n        setChecked(false);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [4, 9], [6, 10], [2, 11], [7, 12], [1, 13], [1, 14], [1, 15], [13, 16], [14, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 4], [10, 6], [11, 2], [12, 7], [13, 1], [14, 1], [15, 1], [16, 13], [17, 14], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "createPath", "code": "    public Path createPath() throws BuildException {\n        Path p = new Path(getProject());\n        add(p);\n        return p;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "append", "code": "    public void append(Path other) {\n        if (other == null) {\n            return;\n        }\n        add(other);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addExisting", "code": "     public void addExisting(Path source) {\n         addExisting(source, false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addExisting", "code": "    public void addExisting(Path source, boolean tryUserDir) {\n        String[] list = source.list();\n        File userDir = (tryUserDir) ? new File(System.getProperty(\"user.dir\"))\n                : null;\n\n        for (int i = 0; i < list.length; i++) {\n            File f = resolveFile(getProject(), list[i]);\n\n            if (tryUserDir && !f.exists()) {\n                f = new File(userDir, list[i]);\n            }\n            if (f.exists()) {\n                setLocation(f);\n            } else {\n                log(\"dropping \" + f + \" from path as it doesn't exist\",\n                    Project.MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "VAR_DECL", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [3, 11], [7, 12], [8, 13], [1, 14], [10, 15], [10, 16], [13, 17], [9, 18], [16, 19], [7, 20], [7, 21], [8, 22], [18, 23], [19, 24], [20, 25], [22, 26], [25, 27], [25, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 3], [12, 7], [13, 8], [14, 1], [15, 10], [16, 10], [17, 13], [18, 9], [19, 16], [20, 7], [21, 7], [22, 8], [23, 18], [24, 19], [25, 20], [26, 22], [27, 25], [28, 25], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "list", "code": "    public String[] list() {\n        if (isReference()) {\n            return ((Path) getCheckedRef()).list();\n        }\n        return assertFilesystemOnly(union) == null\n            ? new String[0] : union.list();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [2, 7], [3, 8], [6, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 2], [8, 3], [9, 6], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "toString", "code": "    public String toString() {\n        return isReference() ? getCheckedRef().toString()\n            : union == null ? \"\" : union.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [3, 6], [3, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 3], [7, 3], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "translatePath", "code": "    public static String[] translatePath(Project project, String source) {\n        final Vector result = new Vector();\n        if (source == null) {\n            return new String[0];\n        }\n        PathTokenizer tok = new PathTokenizer(source);\n        StringBuffer element = new StringBuffer();\n        while (tok.hasMoreTokens()) {\n            String pathElement = tok.nextToken();\n            try {\n                element.append(resolveFile(project, pathElement).getPath());\n            } catch (BuildException e) {\n                project.log(\"Dropping path element \" + pathElement\n                    + \" as it is not valid relative to the project\",\n                    Project.MSG_VERBOSE);\n            }\n            for (int i = 0; i < element.length(); i++) {\n                translateFileSep(element, i);\n            }\n            result.addElement(element.toString());\n            element = new StringBuffer();\n        }\n        String[] res = new String[result.size()];\n        result.copyInto(res);\n        return res;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "LOOP", "TRY", "VAR_DECL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CATCH", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [3, 11], [6, 12], [3, 13], [3, 14], [3, 15], [4, 16], [5, 17], [6, 18], [12, 19], [7, 20], [2, 21], [3, 22], [3, 23], [13, 24], [14, 25], [22, 26], [23, 27], [24, 28], [14, 29], [15, 30], [18, 31], [13, 32], [13, 33], [25, 34], [29, 35], [34, 36], [35, 37], [36, 38], [36, 39], [39, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 3], [12, 6], [13, 3], [14, 3], [15, 3], [16, 4], [17, 5], [18, 6], [19, 12], [20, 7], [21, 2], [22, 3], [23, 3], [24, 13], [25, 14], [26, 22], [27, 23], [28, 24], [29, 14], [30, 15], [31, 18], [32, 13], [33, 13], [34, 25], [35, 29], [36, 34], [37, 35], [38, 36], [39, 36], [40, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "translateFile", "code": "    public static String translateFile(String source) {\n        if (source == null) {\n          return \"\";\n        }\n        final StringBuffer result = new StringBuffer(source);\n        for (int i = 0; i < result.length(); i++) {\n            translateFileSep(result, i);\n        }\n        return result.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [7, 9], [3, 10], [4, 11], [8, 12], [2, 13], [2, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 7], [10, 3], [11, 4], [12, 8], [13, 2], [14, 2], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "translateFileSep", "code": "    protected static boolean translateFileSep(StringBuffer buffer, int pos) {\n        if (buffer.charAt(pos) == '/' || buffer.charAt(pos) == '\\\\') {\n            buffer.setCharAt(pos, File.separatorChar);\n            return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [6, 9], [7, 10], [2, 11], [8, 12], [8, 13], [9, 14], [9, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 6], [10, 7], [11, 2], [12, 8], [13, 8], [14, 9], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "size", "code": "    public synchronized int size() {\n        if (isReference()) {\n            return ((Path) getCheckedRef()).size();\n        }\n        dieOnCircularReference();\n        return union == null ? 0 : assertFilesystemOnly(union).size();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "COND_EXPR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [3, 6], [3, 7], [3, 8], [2, 9], [6, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 3], [7, 3], [8, 3], [9, 2], [10, 6], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "clone", "code": "    public Object clone() {\n        try {\n            Path result = (Path) super.clone();\n            result.union = union == null ? union : (Union) union.clone();\n            return result;\n        } catch (CloneNotSupportedException e) {\n            throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "THROW_RAISE", "ASSIGN", "CALL", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 6], [5, 7], [6, 8], [8, 9], [8, 10], [9, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 1], [7, 5], [8, 6], [9, 8], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "dieOnCircularReference", "code": "    protected synchronized void dieOnCircularReference(Stack stk, Project p)\n        throws BuildException {\n        if (isChecked()) {\n            return;\n        }\n        if (isReference()) {\n            super.dieOnCircularReference(stk, p);\n        } else {\n            if (union != null) {\n                stk.push(union);\n                invokeCircularReferenceCheck(union, stk, p);\n                stk.pop();\n            }\n            setChecked(true);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "IF", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [1, 9], [7, 10], [9, 11], [10, 12], [7, 13], [7, 14], [7, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 1], [10, 7], [11, 9], [12, 10], [13, 7], [14, 7], [15, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "resolveFile", "code": "    private static File resolveFile(Project project, String relativeName) {\n        return FileUtils.getFileUtils().resolveFile(\n            (project == null) ? null : project.getBaseDir(), relativeName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "concatSystemClasspath", "code": "    public Path concatSystemClasspath() {\n        return concatSystemClasspath(\"last\");", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "concatSystemClasspath", "code": "    public Path concatSystemClasspath(String defValue) {\n        return concatSpecialPath(defValue, Path.systemClasspath);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "concatSystemBootClasspath", "code": "    public Path concatSystemBootClasspath(String defValue) {\n        return concatSpecialPath(defValue, Path.systemBootClasspath);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "concatSpecialPath", "code": "    private Path concatSpecialPath(String defValue, Path p) {\n        Path result = new Path(getProject());\n\n        String order = defValue;\n        if (getProject() != null) {\n            String o = getProject().getProperty(\"build.sysclasspath\");\n            if (o != null) {\n                order = o;\n            }\n        }\n        if (order.equals(\"only\")) {\n            result.addExisting(p, true);\n\n        } else if (order.equals(\"first\")) {\n            result.addExisting(p, true);\n            result.addExisting(this);\n\n        } else if (order.equals(\"ignore\")) {\n            result.addExisting(this);\n\n        } else {\n            if (!order.equals(\"last\")) {\n                log(\"invalid value for build.sysclasspath: \" + order,\n                    Project.MSG_WARN);\n            }\n            result.addExisting(this);\n            result.addExisting(p, true);\n        }\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [8, 11], [8, 12], [9, 13], [3, 14], [3, 15], [10, 16], [10, 17], [5, 18], [11, 19], [12, 20], [2, 21], [14, 22], [18, 23], [11, 24], [19, 25], [8, 26], [8, 27], [21, 28], [22, 29], [15, 30], [11, 31], [11, 32], [24, 33], [11, 34], [27, 35], [14, 36], [30, 37], [31, 38], [33, 39], [37, 40], [24, 41], [41, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 8], [12, 8], [13, 9], [14, 3], [15, 3], [16, 10], [17, 10], [18, 5], [19, 11], [20, 12], [21, 2], [22, 14], [23, 18], [24, 11], [25, 19], [26, 8], [27, 8], [28, 21], [29, 22], [30, 15], [31, 11], [32, 11], [33, 24], [34, 11], [35, 27], [36, 14], [37, 30], [38, 31], [39, 33], [40, 37], [41, 24], [42, 41], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "addJavaRuntime", "code": "    public void addJavaRuntime() {\n        if (JavaEnvUtils.isKaffe()) {\n            File kaffeShare = new File(System.getProperty(\"java.home\")\n                                       + File.separator + \"share\"\n                                       + File.separator + \"kaffe\");\n            if (kaffeShare.isDirectory()) {\n                FileSet kaffeJarFiles = new FileSet();\n                kaffeJarFiles.setDir(kaffeShare);\n                kaffeJarFiles.setIncludes(\"*.jar\");\n                addFileset(kaffeJarFiles);\n            }\n        } else if (\"GNU libgcj\".equals(System.getProperty(\"java.vm.name\"))) {\n            addExisting(systemBootClasspath);\n        }\n\n        if (System.getProperty(\"java.vendor\").toLowerCase(Locale.US).indexOf(\"microsoft\") >= 0) {\n            FileSet msZipFiles = new FileSet();\n            msZipFiles.setDir(new File(System.getProperty(\"java.home\")\n                + File.separator + \"Packages\"));\n            msZipFiles.setIncludes(\"*.ZIP\");\n            addFileset(msZipFiles);\n        } else {\n            addExisting(new Path(null,\n                                 System.getProperty(\"java.home\")\n                                 + File.separator + \"lib\"\n                                 + File.separator + \"rt.jar\"));\n            addExisting(new Path(null,\n                                 System.getProperty(\"java.home\")\n                                 + File.separator + \"jre\"\n                                 + File.separator + \"lib\"\n                                 + File.separator + \"rt.jar\"));\n\n            String[] secJars = {\"jce\", \"jsse\"};\n            for (int i = 0; i < secJars.length; i++) {\n                addExisting(new Path(null,\n                                     System.getProperty(\"java.home\")\n                                     + File.separator + \"lib\"\n                                     + File.separator + secJars[i] + \".jar\"));\n                addExisting(new Path(null,\n                                     System.getProperty(\"java.home\")\n                                     + File.separator + \"..\"\n                                     + File.separator + \"Classes\"\n                                     + File.separator + secJars[i] + \".jar\"));\n            }\n\n            String[] ibmJars\n                = {\"core\", \"graphics\", \"security\", \"server\", \"xml\"};\n            for (int i = 0; i < ibmJars.length; i++) {\n                addExisting(new Path(null,\n                                     System.getProperty(\"java.home\")\n                                     + File.separator + \"lib\"\n                                     + File.separator + ibmJars[i] + \".jar\"));\n            }\n\n            addExisting(new Path(null,\n                                 System.getProperty(\"java.home\")\n                                 + File.separator + \"..\"\n                                 + File.separator + \"Classes\"\n                                 + File.separator + \"classes.jar\"));\n            addExisting(new Path(null,\n                                 System.getProperty(\"java.home\")\n                                 + File.separator + \"..\"\n                                 + File.separator + \"Classes\"\n                                 + File.separator + \"ui.jar\"));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "IF", "CALL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [3, 11], [3, 12], [4, 13], [2, 14], [2, 15], [1, 16], [1, 17], [6, 18], [8, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [12, 25], [12, 26], [12, 27], [13, 28], [14, 29], [16, 30], [17, 31], [20, 32], [21, 33], [23, 34], [24, 35], [10, 36], [26, 37], [4, 38], [28, 39], [14, 40], [15, 41], [30, 42], [30, 43], [31, 44], [31, 45], [6, 46], [6, 47], [7, 48], [7, 49], [7, 50], [7, 51], [7, 52], [8, 53], [8, 54], [8, 55], [9, 56], [9, 57], [32, 58], [32, 59], [33, 60], [33, 61], [35, 62], [39, 63], [14, 64], [14, 65], [14, 66], [41, 67], [42, 68], [42, 69], [44, 70], [44, 71], [46, 72], [53, 73], [54, 74], [58, 75], [58, 76], [60, 77], [60, 78], [62, 79], [62, 80], [65, 81], [40, 82], [67, 83], [67, 84], [69, 85], [71, 86], [72, 87], [72, 88], [73, 89], [73, 90], [74, 91], [74, 92], [76, 93], [78, 94], [80, 95], [84, 96], [85, 97], [85, 98], [86, 99], [86, 100], [87, 101], [87, 102], [89, 103], [89, 104], [91, 105], [91, 106], [93, 107], [93, 108], [94, 109], [94, 110], [95, 111], [96, 112], [96, 113], [98, 114], [100, 115], [102, 116], [104, 117], [106, 118], [108, 119], [110, 120], [113, 121], [114, 122], [114, 123], [115, 124], [115, 125], [116, 126], [117, 127], [118, 128], [119, 129], [119, 130], [120, 131], [121, 132], [123, 133], [125, 134], [126, 135], [126, 136], [127, 137], [127, 138], [128, 139], [128, 140], [130, 141], [133, 142], [134, 143], [136, 144], [138, 145], [140, 146], [141, 147], [144, 148], [145, 149], [145, 150], [146, 151], [150, 152], [152, 153], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 3], [12, 3], [13, 4], [14, 2], [15, 2], [16, 1], [17, 1], [18, 6], [19, 8], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 12], [26, 12], [27, 12], [28, 13], [29, 14], [30, 16], [31, 17], [32, 20], [33, 21], [34, 23], [35, 24], [36, 10], [37, 26], [38, 4], [39, 28], [40, 14], [41, 15], [42, 30], [43, 30], [44, 31], [45, 31], [46, 6], [47, 6], [48, 7], [49, 7], [50, 7], [51, 7], [52, 7], [53, 8], [54, 8], [55, 8], [56, 9], [57, 9], [58, 32], [59, 32], [60, 33], [61, 33], [62, 35], [63, 39], [64, 14], [65, 14], [66, 14], [67, 41], [68, 42], [69, 42], [70, 44], [71, 44], [72, 46], [73, 53], [74, 54], [75, 58], [76, 58], [77, 60], [78, 60], [79, 62], [80, 62], [81, 65], [82, 40], [83, 67], [84, 67], [85, 69], [86, 71], [87, 72], [88, 72], [89, 73], [90, 73], [91, 74], [92, 74], [93, 76], [94, 78], [95, 80], [96, 84], [97, 85], [98, 85], [99, 86], [100, 86], [101, 87], [102, 87], [103, 89], [104, 89], [105, 91], [106, 91], [107, 93], [108, 93], [109, 94], [110, 94], [111, 95], [112, 96], [113, 96], [114, 98], [115, 100], [116, 102], [117, 104], [118, 106], [119, 108], [120, 110], [121, 113], [122, 114], [123, 114], [124, 115], [125, 115], [126, 116], [127, 117], [128, 118], [129, 119], [130, 119], [131, 120], [132, 121], [133, 123], [134, 125], [135, 126], [136, 126], [137, 127], [138, 127], [139, 128], [140, 128], [141, 130], [142, 133], [143, 134], [144, 136], [145, 138], [146, 140], [147, 141], [148, 144], [149, 145], [150, 145], [151, 146], [152, 150], [153, 152], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153]]}, {"function_name": "addExtdirs", "code": "    public void addExtdirs(Path extdirs) {\n        if (extdirs == null) {\n            String extProp = System.getProperty(\"java.ext.dirs\");\n            if (extProp != null) {\n                extdirs = new Path(getProject(), extProp);\n            } else {\n                return;\n            }\n        }\n\n        String[] dirs = extdirs.list();\n        for (int i = 0; i < dirs.length; i++) {\n            File dir = resolveFile(getProject(), dirs[i]);\n            if (dir.exists() && dir.isDirectory()) {\n                FileSet fs = new FileSet();\n                fs.setDir(dir);\n                fs.setIncludes(\"*\");\n                addFileset(fs);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [1, 8], [2, 9], [3, 10], [3, 11], [6, 12], [7, 13], [1, 14], [10, 15], [7, 16], [13, 17], [13, 18], [8, 19], [10, 20], [15, 21], [11, 22], [7, 23], [7, 24], [7, 25], [19, 26], [10, 27], [22, 28], [24, 29], [16, 30], [27, 31], [31, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 1], [9, 2], [10, 3], [11, 3], [12, 6], [13, 7], [14, 1], [15, 10], [16, 7], [17, 13], [18, 13], [19, 8], [20, 10], [21, 15], [22, 11], [23, 7], [24, 7], [25, 7], [26, 19], [27, 10], [28, 22], [29, 24], [30, 16], [31, 27], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "iterator", "code": "    public final synchronized Iterator iterator() {\n        if (isReference()) {\n            return ((Path) getCheckedRef()).iterator();\n        }\n        dieOnCircularReference();\n        if (getPreserveBC()) {\n            return new FileResourceIterator(null, list());\n        }\n        return union == null ? EMPTY_ITERATOR\n            : assertFilesystemOnly(union).iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [3, 7], [4, 8], [4, 9], [2, 10], [3, 11], [8, 12], [9, 13], [10, 14], [14, 15], [14, 16], [11, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 3], [8, 4], [9, 4], [10, 2], [11, 3], [12, 8], [13, 9], [14, 10], [15, 14], [16, 14], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "isFilesystemOnly", "code": "    public synchronized boolean isFilesystemOnly() {\n        if (isReference()) {\n            return ((Path) getCheckedRef()).isFilesystemOnly();\n        }\n        dieOnCircularReference();\n        assertFilesystemOnly(union);\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [2, 6], [2, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 2], [7, 2], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "assertFilesystemOnly", "code": "    protected ResourceCollection assertFilesystemOnly(ResourceCollection rc) {\n        if (rc != null && !(rc.isFilesystemOnly())) {\n            throw new BuildException(getDataTypeName()\n                + \" allows only filesystem resources.\");\n        }\n        return rc;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [4, 7], [5, 8], [7, 9], [8, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 4], [8, 5], [9, 7], [10, 8], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "delegateIteratorToList", "code": "    protected boolean delegateIteratorToList() {\n        if (getClass().equals(Path.class)) {\n            return false;\n        }\n        try {\n            Method listMethod = getClass().getMethod(\"list\", (Class[]) null);\n            return !listMethod.getDeclaringClass().equals(Path.class);\n        } catch (Exception e) {\n            return false;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "CATCH", "RETURN", "VAR_DECL", "CALL", "RETURN", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [4, 8], [2, 9], [6, 10], [7, 11], [8, 12], [5, 13], [9, 14], [13, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 4], [9, 2], [10, 6], [11, 7], [12, 8], [13, 5], [14, 9], [15, 13], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getPreserveBC", "code": "    private synchronized boolean getPreserveBC() {\n        if (preserveBC == null) {\n            preserveBC = delegateIteratorToList() ? Boolean.TRUE : Boolean.FALSE;\n        }\n        return preserveBC.booleanValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "Path", "code": "    public Path(Project p, String path) {\n        this(p);\n        createPathElement().setPath(path);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "Path", "code": "    public Path(Project project) {\n        setProject(project);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-2977", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/mail/MailBinding.java", "language": "java", "name": "org.apache.camel.component.mail.MailBinding", "code": "public class MailBinding {\n\n    private HeaderFilterStrategy headerFilterStrategy;\n\n    public MailBinding() {\n        headerFilterStrategy = new DefaultHeaderFilterStrategy();\n    }\n\n    public MailBinding(HeaderFilterStrategy headerFilterStrategy) {\n        this.headerFilterStrategy = headerFilterStrategy;\n    }\n\n    public void populateMailMessage(MailEndpoint endpoint, MimeMessage mimeMessage, Exchange exchange)\n        throws MessagingException, IOException {\n\n        if (hasRecipientHeaders(exchange.getIn())) {\n            setRecipientFromCamelMessage(mimeMessage, exchange, exchange.getIn());\n        } else {\n            setRecipientFromEndpointConfiguration(mimeMessage, endpoint);\n        }\n\n        if (mimeMessage.getAllRecipients() == null) {\n            throw new IllegalArgumentException(\"The mail message does not have any recipients set.\");\n        }\n\n        appendHeadersFromCamelMessage(mimeMessage, exchange, exchange.getIn());\n\n        if (empty(mimeMessage.getFrom())) {\n            String from = endpoint.getConfiguration().getFrom();\n            mimeMessage.setFrom(new InternetAddress(from));\n        }\n\n        if (exchange.getIn().hasAttachments()) {\n            appendAttachmentsFromCamel(mimeMessage, exchange.getIn(), endpoint.getConfiguration());\n        } else {\n            if (\"text/html\".equals(endpoint.getConfiguration().getContentType())) {\n                DataSource ds = new ByteArrayDataSource(exchange.getIn().getBody(String.class), \"text/html\");\n                mimeMessage.setDataHandler(new DataHandler(ds));\n            } else {\n                mimeMessage.setText(exchange.getIn().getBody(String.class));\n            }\n        }\n    }\n\n    /**\n     * Extracts the body from the Mail message\n     */\n    public Object extractBodyFromMail(MailExchange exchange, Message message) {\n        try {\n            return message.getContent();\n        } catch (Exception e) {\n            throw new RuntimeCamelException(\"Failed to extract body due to: \" + e.getMessage()\n                + \". Exchange: \" + exchange + \". Message: \" + message, e);\n        }\n    }\n\n    /**\n     * Appends the Mail headers from the Camel {@link MailMessage}\n     */\n    protected void appendHeadersFromCamelMessage(MimeMessage mimeMessage, Exchange exchange,\n                                                 org.apache.camel.Message camelMessage)\n        throws MessagingException {\n\n        for (Map.Entry<String, Object> entry : camelMessage.getHeaders().entrySet()) {\n            String headerName = entry.getKey();\n            Object headerValue = entry.getValue();\n            if (headerValue != null) {\n                if (headerFilterStrategy != null\n                        && !headerFilterStrategy.applyFilterToCamelHeaders(headerName, headerValue)) {\n\n                    if (isRecipientHeader(headerName)) {\n                        continue;\n                    }\n\n                    if (ObjectConverter.isCollection(headerValue)) {\n                        Iterator iter = ObjectConverter.iterator(headerValue);\n                        while (iter.hasNext()) {\n                            Object value = iter.next();\n                            mimeMessage.addHeader(headerName, asString(exchange, value));\n                        }\n                    } else {\n                        mimeMessage.setHeader(headerName, asString(exchange, headerValue));\n                    }\n                }\n            }\n        }\n    }\n\n    private void setRecipientFromCamelMessage(MimeMessage mimeMessage, Exchange exchange,\n                                                org.apache.camel.Message camelMessage)\n        throws MessagingException {\n\n        for (Map.Entry<String, Object> entry : camelMessage.getHeaders().entrySet()) {\n            String headerName = entry.getKey();\n            Object headerValue = entry.getValue();\n            if (headerValue != null && isRecipientHeader(headerName)) {\n                if (ObjectConverter.isCollection(headerValue)) {\n                    Iterator iter = ObjectConverter.iterator(headerValue);\n                    while (iter.hasNext()) {\n                        Object recipient = iter.next();\n                        appendRecipientToMimeMessage(mimeMessage, headerName, asString(exchange, recipient));\n                    }\n                } else {\n                    appendRecipientToMimeMessage(mimeMessage, headerName, asString(exchange, headerValue));\n                }\n            }\n        }\n    }\n\n    /**\n     * Appends the Mail headers from the endpoint configuraiton.\n     */\n    protected void setRecipientFromEndpointConfiguration(MimeMessage mimeMessage, MailEndpoint endpoint)\n        throws MessagingException {\n\n        Map<Message.RecipientType, String> recipients = endpoint.getConfiguration().getRecipients();\n        if (recipients.containsKey(Message.RecipientType.TO)) {\n            appendRecipientToMimeMessage(mimeMessage, Message.RecipientType.TO.toString(), recipients.get(Message.RecipientType.TO));\n        }\n        if (recipients.containsKey(Message.RecipientType.CC)) {\n            appendRecipientToMimeMessage(mimeMessage, Message.RecipientType.CC.toString(), recipients.get(Message.RecipientType.CC));\n        }\n        if (recipients.containsKey(Message.RecipientType.BCC)) {\n            appendRecipientToMimeMessage(mimeMessage, Message.RecipientType.BCC.toString(), recipients.get(Message.RecipientType.BCC));\n        }\n\n        String destination = endpoint.getConfiguration().getDestination();\n        if (destination != null && mimeMessage.getRecipients(Message.RecipientType.TO) == null) {\n            appendRecipientToMimeMessage(mimeMessage, Message.RecipientType.TO.toString(), destination);\n        }\n    }\n\n    /**\n     * Appends the Mail attachments from the Camel {@link MailMessage}\n     */\n    protected void appendAttachmentsFromCamel(MimeMessage mimeMessage, org.apache.camel.Message camelMessage,\n                                              MailConfiguration configuration)\n        throws MessagingException {\n\n        MimeMultipart multipart = new MimeMultipart();\n\n        multipart.setSubType(\"mixed\");\n        MimeBodyPart textBodyPart = new MimeBodyPart();\n        textBodyPart.setContent(camelMessage.getBody(String.class), configuration.getContentType());\n        multipart.addBodyPart(textBodyPart);\n\n        for (Map.Entry<String, DataHandler> entry : camelMessage.getAttachments().entrySet()) {\n            String attachmentFilename = entry.getKey();\n            DataHandler handler = entry.getValue();\n            if (handler != null) {\n                if (shouldOutputAttachment(camelMessage, attachmentFilename, handler)) {\n                    BodyPart messageBodyPart = new MimeBodyPart();\n                    messageBodyPart.setDataHandler(handler);\n                    messageBodyPart.setFileName(attachmentFilename);\n                    messageBodyPart.setDisposition(Part.ATTACHMENT);\n                    multipart.addBodyPart(messageBodyPart);\n                }\n            }\n        }\n\n        mimeMessage.setContent(multipart);\n    }\n\n    /**\n     * Strategy to allow filtering of attachments which are put on the Mail message\n     */\n    protected boolean shouldOutputAttachment(org.apache.camel.Message camelMessage, String attachmentFilename, DataHandler handler) {\n        return true;\n    }\n\n    protected Map<String, Object> extractHeadersFromMail(Message mailMessage) throws MessagingException {\n        Map<String, Object> answer = new HashMap<String, Object>();\n        Enumeration names = mailMessage.getAllHeaders();\n\n        while (names.hasMoreElements()) {\n            Header header = (Header)names.nextElement();\n            String[] value = mailMessage.getHeader(header.getName());\n            if (headerFilterStrategy != null\n                    && !headerFilterStrategy.applyFilterToExternalHeaders(header.getName(), value)) {\n                if (value.length == 1) {\n                    CollectionHelper.appendValue(answer, header.getName().toLowerCase(), value[0]);\n                } else {\n                    CollectionHelper.appendValue(answer, header.getName().toLowerCase(), value);\n                }\n            }\n        }\n\n        return answer;\n    }\n\n    private static void appendRecipientToMimeMessage(MimeMessage mimeMessage, String type, String recipient)\n        throws MessagingException {\n\n        String[] lines = recipient.split(\"[,|;]\");\n        for (String line : lines) {\n            line = line.trim();\n            mimeMessage.addRecipients(asRecipientType(type), line);\n        }\n    }\n\n    /**\n     * Does the given camel message contain any To, CC or BCC header names?\n     */\n    private static boolean hasRecipientHeaders(org.apache.camel.Message camelMessage) {\n        for (String key : camelMessage.getHeaders().keySet()) {\n            if (isRecipientHeader(key)) {\n                return true;\n            }\n        }\n        return false;\n    }\n\n    /**\n     * Is the given key a mime message recipient header (To, CC or BCC)\n     */\n    private static boolean isRecipientHeader(String key) {\n        if (Message.RecipientType.TO.toString().equalsIgnoreCase(key)) {\n            return true;\n        } else if (Message.RecipientType.CC.toString().equalsIgnoreCase(key)) {\n            return true;\n        } else if (Message.RecipientType.BCC.toString().equalsIgnoreCase(key)) {\n            return true;\n        }\n        return false;\n    }\n\n    /**\n     * Returns the RecipientType object.\n     */\n    private static Message.RecipientType asRecipientType(String type) {\n        if (Message.RecipientType.TO.toString().equalsIgnoreCase(type)) {\n            return Message.RecipientType.TO;\n        } else if (Message.RecipientType.CC.toString().equalsIgnoreCase(type)) {\n            return Message.RecipientType.CC;\n        } else if (Message.RecipientType.BCC.toString().equalsIgnoreCase(type)) {\n            return Message.RecipientType.BCC;\n        }\n        throw new IllegalArgumentException(\"Unknown recipient type: \" + type);\n    }\n\n\n    private static boolean empty(Address[] addresses) {\n        return addresses == null || addresses.length == 0;\n    }\n\n    private static String asString(Exchange exchange, Object value) {\n        return exchange.getContext().getTypeConverter().convertTo(String.class, exchange, value);", "functions": [{"function_name": "populateMailMessage", "code": "    public void populateMailMessage(MailEndpoint endpoint, MimeMessage mimeMessage, Exchange exchange)\n        throws MessagingException, IOException {\n\n        if (hasRecipientHeaders(exchange.getIn())) {\n            setRecipientFromCamelMessage(mimeMessage, exchange, exchange.getIn());\n        } else {\n            setRecipientFromEndpointConfiguration(mimeMessage, endpoint);\n        }\n\n        if (mimeMessage.getAllRecipients() == null) {\n            throw new IllegalArgumentException(\"The mail message does not have any recipients set.\");\n        }\n\n        appendHeadersFromCamelMessage(mimeMessage, exchange, exchange.getIn());\n\n        if (empty(mimeMessage.getFrom())) {\n            String from = endpoint.getConfiguration().getFrom();\n            mimeMessage.setFrom(new InternetAddress(from));\n        }\n\n        if (exchange.getIn().hasAttachments()) {\n            appendAttachmentsFromCamel(mimeMessage, exchange.getIn(), endpoint.getConfiguration());\n        } else {\n            if (\"text/html\".equals(endpoint.getConfiguration().getContentType())) {\n                DataSource ds = new ByteArrayDataSource(exchange.getIn().getBody(String.class), \"text/html\");\n                mimeMessage.setDataHandler(new DataHandler(ds));\n            } else {\n                mimeMessage.setText(exchange.getIn().getBody(String.class));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "VAR_DECL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [0, 10], [3, 11], [4, 12], [1, 13], [8, 14], [2, 15], [9, 16], [10, 17], [3, 18], [11, 19], [11, 20], [12, 21], [13, 22], [1, 23], [2, 24], [18, 25], [4, 26], [4, 27], [13, 28], [22, 29], [23, 30], [23, 31], [24, 32], [15, 33], [25, 34], [27, 35], [13, 36], [13, 37], [29, 38], [33, 39], [36, 40], [37, 41], [28, 42], [38, 43], [40, 44], [42, 45], [42, 46], [46, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 0], [11, 3], [12, 4], [13, 1], [14, 8], [15, 2], [16, 9], [17, 10], [18, 3], [19, 11], [20, 11], [21, 12], [22, 13], [23, 1], [24, 2], [25, 18], [26, 4], [27, 4], [28, 13], [29, 22], [30, 23], [31, 23], [32, 24], [33, 15], [34, 25], [35, 27], [36, 13], [37, 13], [38, 29], [39, 33], [40, 36], [41, 37], [42, 28], [43, 38], [44, 40], [45, 42], [46, 42], [47, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "extractBodyFromMail", "code": "    public Object extractBodyFromMail(MailExchange exchange, Message message) {\n        try {\n            return message.getContent();\n        } catch (Exception e) {\n            throw new RuntimeCamelException(\"Failed to extract body due to: \" + e.getMessage()\n                + \". Exchange: \" + exchange + \". Message: \" + message, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "appendHeadersFromCamelMessage", "code": "    protected void appendHeadersFromCamelMessage(MimeMessage mimeMessage, Exchange exchange,\n                                                 org.apache.camel.Message camelMessage)\n        throws MessagingException {\n\n        for (Map.Entry<String, Object> entry : camelMessage.getHeaders().entrySet()) {\n            String headerName = entry.getKey();\n            Object headerValue = entry.getValue();\n            if (headerValue != null) {\n                if (headerFilterStrategy != null\n                        && !headerFilterStrategy.applyFilterToCamelHeaders(headerName, headerValue)) {\n\n                    if (isRecipientHeader(headerName)) {\n                        continue;\n                    }\n\n                    if (ObjectConverter.isCollection(headerValue)) {\n                        Iterator iter = ObjectConverter.iterator(headerValue);\n                        while (iter.hasNext()) {\n                            Object value = iter.next();\n                            mimeMessage.addHeader(headerName, asString(exchange, value));\n                        }\n                    } else {\n                        mimeMessage.setHeader(headerName, asString(exchange, headerValue));", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [8, 10], [5, 11], [9, 12], [6, 13], [7, 14], [11, 15], [11, 16], [11, 17], [15, 18], [15, 19], [16, 20], [17, 21], [19, 22], [16, 23], [16, 24], [17, 25], [16, 26], [23, 27], [26, 28], [23, 29], [24, 30], [23, 31], [31, 32], [29, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 8], [11, 5], [12, 9], [13, 6], [14, 7], [15, 11], [16, 11], [17, 11], [18, 15], [19, 15], [20, 16], [21, 17], [22, 19], [23, 16], [24, 16], [25, 17], [26, 16], [27, 23], [28, 26], [29, 23], [30, 24], [31, 23], [32, 31], [33, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "setRecipientFromCamelMessage", "code": "    private void setRecipientFromCamelMessage(MimeMessage mimeMessage, Exchange exchange,\n                                                org.apache.camel.Message camelMessage)\n        throws MessagingException {\n\n        for (Map.Entry<String, Object> entry : camelMessage.getHeaders().entrySet()) {\n            String headerName = entry.getKey();\n            Object headerValue = entry.getValue();\n            if (headerValue != null && isRecipientHeader(headerName)) {\n                if (ObjectConverter.isCollection(headerValue)) {\n                    Iterator iter = ObjectConverter.iterator(headerValue);\n                    while (iter.hasNext()) {\n                        Object recipient = iter.next();\n                        appendRecipientToMimeMessage(mimeMessage, headerName, asString(exchange, recipient));\n                    }\n                } else {\n                    appendRecipientToMimeMessage(mimeMessage, headerName, asString(exchange, headerValue));", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [8, 10], [5, 11], [9, 12], [9, 13], [6, 14], [7, 15], [11, 16], [13, 17], [11, 18], [11, 19], [11, 20], [18, 21], [20, 22], [18, 23], [19, 24], [18, 25], [25, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 8], [11, 5], [12, 9], [13, 9], [14, 6], [15, 7], [16, 11], [17, 13], [18, 11], [19, 11], [20, 11], [21, 18], [22, 20], [23, 18], [24, 19], [25, 18], [26, 25], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "setRecipientFromEndpointConfiguration", "code": "    protected void setRecipientFromEndpointConfiguration(MimeMessage mimeMessage, MailEndpoint endpoint)\n        throws MessagingException {\n\n        Map<Message.RecipientType, String> recipients = endpoint.getConfiguration().getRecipients();\n        if (recipients.containsKey(Message.RecipientType.TO)) {\n            appendRecipientToMimeMessage(mimeMessage, Message.RecipientType.TO.toString(), recipients.get(Message.RecipientType.TO));\n        }\n        if (recipients.containsKey(Message.RecipientType.CC)) {\n            appendRecipientToMimeMessage(mimeMessage, Message.RecipientType.CC.toString(), recipients.get(Message.RecipientType.CC));\n        }\n        if (recipients.containsKey(Message.RecipientType.BCC)) {\n            appendRecipientToMimeMessage(mimeMessage, Message.RecipientType.BCC.toString(), recipients.get(Message.RecipientType.BCC));\n        }\n\n        String destination = endpoint.getConfiguration().getDestination();\n        if (destination != null && mimeMessage.getRecipients(Message.RecipientType.TO) == null) {\n            appendRecipientToMimeMessage(mimeMessage, Message.RecipientType.TO.toString(), destination);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [3, 10], [4, 11], [5, 12], [9, 13], [9, 14], [2, 15], [6, 16], [1, 17], [13, 18], [13, 19], [14, 20], [15, 21], [3, 22], [4, 23], [5, 24], [16, 25], [17, 26], [22, 27], [22, 28], [23, 29], [23, 30], [24, 31], [24, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 3], [11, 4], [12, 5], [13, 9], [14, 9], [15, 2], [16, 6], [17, 1], [18, 13], [19, 13], [20, 14], [21, 15], [22, 3], [23, 4], [24, 5], [25, 16], [26, 17], [27, 22], [28, 22], [29, 23], [30, 23], [31, 24], [32, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "appendAttachmentsFromCamel", "code": "    protected void appendAttachmentsFromCamel(MimeMessage mimeMessage, org.apache.camel.Message camelMessage,\n                                              MailConfiguration configuration)\n        throws MessagingException {\n\n        MimeMultipart multipart = new MimeMultipart();\n\n        multipart.setSubType(\"mixed\");\n        MimeBodyPart textBodyPart = new MimeBodyPart();\n        textBodyPart.setContent(camelMessage.getBody(String.class), configuration.getContentType());\n        multipart.addBodyPart(textBodyPart);\n\n        for (Map.Entry<String, DataHandler> entry : camelMessage.getAttachments().entrySet()) {\n            String attachmentFilename = entry.getKey();\n            DataHandler handler = entry.getValue();\n            if (handler != null) {\n                if (shouldOutputAttachment(camelMessage, attachmentFilename, handler)) {\n                    BodyPart messageBodyPart = new MimeBodyPart();\n                    messageBodyPart.setDataHandler(handler);\n                    messageBodyPart.setFileName(attachmentFilename);\n                    messageBodyPart.setDisposition(Part.ATTACHMENT);\n                    multipart.addBodyPart(messageBodyPart);\n                }\n            }\n        }\n\n        mimeMessage.setContent(multipart);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [1, 13], [1, 14], [9, 15], [9, 16], [2, 17], [10, 18], [3, 19], [11, 20], [14, 21], [11, 22], [20, 23], [12, 24], [13, 25], [22, 26], [22, 27], [22, 28], [22, 29], [22, 30], [22, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 1], [14, 1], [15, 9], [16, 9], [17, 2], [18, 10], [19, 3], [20, 11], [21, 14], [22, 11], [23, 20], [24, 12], [25, 13], [26, 22], [27, 22], [28, 22], [29, 22], [30, 22], [31, 22], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "shouldOutputAttachment", "code": "    protected boolean shouldOutputAttachment(org.apache.camel.Message camelMessage, String attachmentFilename, DataHandler handler) {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "extractHeadersFromMail", "code": "    protected Map<String, Object> extractHeadersFromMail(Message mailMessage) throws MessagingException {\n        Map<String, Object> answer = new HashMap<String, Object>();\n        Enumeration names = mailMessage.getAllHeaders();\n\n        while (names.hasMoreElements()) {\n            Header header = (Header)names.nextElement();\n            String[] value = mailMessage.getHeader(header.getName());\n            if (headerFilterStrategy != null\n                    && !headerFilterStrategy.applyFilterToExternalHeaders(header.getName(), value)) {\n                if (value.length == 1) {\n                    CollectionHelper.appendValue(answer, header.getName().toLowerCase(), value[0]);\n                } else {\n                    CollectionHelper.appendValue(answer, header.getName().toLowerCase(), value);\n                }\n            }\n        }\n\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [3, 10], [4, 11], [7, 12], [7, 13], [12, 14], [12, 15], [8, 16], [13, 17], [14, 18], [15, 19], [16, 20], [9, 21], [17, 22], [13, 23], [13, 24], [23, 25], [24, 26], [25, 27], [26, 28], [24, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 3], [11, 4], [12, 7], [13, 7], [14, 12], [15, 12], [16, 8], [17, 13], [18, 14], [19, 15], [20, 16], [21, 9], [22, 17], [23, 13], [24, 13], [25, 23], [26, 24], [27, 25], [28, 26], [29, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "appendRecipientToMimeMessage", "code": "    private static void appendRecipientToMimeMessage(MimeMessage mimeMessage, String type, String recipient)\n        throws MessagingException {\n\n        String[] lines = recipient.split(\"[,|;]\");\n        for (String line : lines) {\n            line = line.trim();\n            mimeMessage.addRecipients(asRecipientType(type), line);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 7], [1, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 1], [8, 1], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "hasRecipientHeaders", "code": "    private static boolean hasRecipientHeaders(org.apache.camel.Message camelMessage) {\n        for (String key : camelMessage.getHeaders().keySet()) {\n            if (isRecipientHeader(key)) {\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [5, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 5], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isRecipientHeader", "code": "    private static boolean isRecipientHeader(String key) {\n        if (Message.RecipientType.TO.toString().equalsIgnoreCase(key)) {\n            return true;\n        } else if (Message.RecipientType.CC.toString().equalsIgnoreCase(key)) {\n            return true;\n        } else if (Message.RecipientType.BCC.toString().equalsIgnoreCase(key)) {\n            return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "IF", "CALL", "RETURN", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [2, 9], [6, 10], [7, 11], [5, 12], [8, 13], [9, 14], [7, 15], [11, 16], [12, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 2], [10, 6], [11, 7], [12, 5], [13, 8], [14, 9], [15, 7], [16, 11], [17, 12], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "asRecipientType", "code": "    private static Message.RecipientType asRecipientType(String type) {\n        if (Message.RecipientType.TO.toString().equalsIgnoreCase(type)) {\n            return Message.RecipientType.TO;\n        } else if (Message.RecipientType.CC.toString().equalsIgnoreCase(type)) {\n            return Message.RecipientType.CC;\n        } else if (Message.RecipientType.BCC.toString().equalsIgnoreCase(type)) {\n            return Message.RecipientType.BCC;\n        }\n        throw new IllegalArgumentException(\"Unknown recipient type: \" + type);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "PARAM", "CALL", "IF", "CALL", "BINARY_OP", "IF", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [5, 8], [5, 9], [2, 10], [6, 11], [7, 12], [8, 13], [5, 14], [9, 15], [8, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 5], [9, 5], [10, 2], [11, 6], [12, 7], [13, 8], [14, 5], [15, 9], [16, 8], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "empty", "code": "    private static boolean empty(Address[] addresses) {\n        return addresses == null || addresses.length == 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "asString", "code": "    private static String asString(Exchange exchange, Object value) {\n        return exchange.getContext().getTypeConverter().convertTo(String.class, exchange, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "MailBinding", "code": "    public MailBinding() {\n        headerFilterStrategy = new DefaultHeaderFilterStrategy();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "MailBinding", "code": "    public MailBinding(HeaderFilterStrategy headerFilterStrategy) {\n        this.headerFilterStrategy = headerFilterStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-2.5-5818", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/AreaRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.AreaRecord", "code": "public class AreaRecord\n    extends Record\n{\n    public final static short      sid                             = 0x101A;\n    private  short      field_1_formatFlags;\n    private  BitField   stacked                                     = new BitField(0x1);\n    private  BitField   displayAsPercentage                         = new BitField(0x2);\n    private  BitField   shadow                                      = new BitField(0x4);\n\n\n    public AreaRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Area record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x101A or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public AreaRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a Area record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x101A or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public AreaRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Area record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_formatFlags            = LittleEndian.getShort(data, pos + 0x0 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AREA]\\n\");\n        buffer.append(\"    .formatFlags          = \")\n            .append(\"0x\").append(HexDump.toHex(  getFormatFlags ()))\n            .append(\" (\").append( getFormatFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .stacked                  = \").append(isStacked()).append('\\n'); \n        buffer.append(\"         .displayAsPercentage      = \").append(isDisplayAsPercentage()).append('\\n'); \n        buffer.append(\"         .shadow                   = \").append(isShadow()).append('\\n'); \n\n        buffer.append(\"[/AREA]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_formatFlags);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        AreaRecord rec = new AreaRecord();\n    \n        rec.field_1_formatFlags = field_1_formatFlags;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the format flags field for the Area record.\n     */\n    public short getFormatFlags()\n    {\n        return field_1_formatFlags;\n    }\n\n    /**\n     * Set the format flags field for the Area record.\n     */\n    public void setFormatFlags(short field_1_formatFlags)\n    {\n        this.field_1_formatFlags = field_1_formatFlags;\n    }\n\n    /**\n     * Sets the stacked field value.\n     * series is stacked\n     */\n    public void setStacked(boolean value)\n    {\n        field_1_formatFlags = stacked.setShortBoolean(field_1_formatFlags, value);\n    }\n\n    /**\n     * series is stacked\n     * @return  the stacked field value.\n     */\n    public boolean isStacked()\n    {\n        return stacked.isSet(field_1_formatFlags);\n    }\n\n    /**\n     * Sets the display as percentage field value.\n     * results displayed as percentages\n     */\n    public void setDisplayAsPercentage(boolean value)\n    {\n        field_1_formatFlags = displayAsPercentage.setShortBoolean(field_1_formatFlags, value);\n    }\n\n    /**\n     * results displayed as percentages\n     * @return  the display as percentage field value.\n     */\n    public boolean isDisplayAsPercentage()\n    {\n        return displayAsPercentage.isSet(field_1_formatFlags);\n    }\n\n    /**\n     * Sets the shadow field value.\n     * display a shadow for the chart\n     */\n    public void setShadow(boolean value)\n    {\n        field_1_formatFlags = shadow.setShortBoolean(field_1_formatFlags, value);\n    }\n\n    /**\n     * display a shadow for the chart\n     * @return  the shadow field value.\n     */\n    public boolean isShadow()\n    {\n        return shadow.isSet(field_1_formatFlags);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Area record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_formatFlags            = LittleEndian.getShort(data, pos + 0x0 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [6, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 6], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AREA]\\n\");\n        buffer.append(\"    .formatFlags          = \")\n            .append(\"0x\").append(HexDump.toHex(  getFormatFlags ()))\n            .append(\" (\").append( getFormatFlags() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"         .stacked                  = \").append(isStacked()).append('\\n'); \n        buffer.append(\"         .displayAsPercentage      = \").append(isDisplayAsPercentage()).append('\\n'); \n        buffer.append(\"         .shadow                   = \").append(isShadow()).append('\\n'); \n\n        buffer.append(\"[/AREA]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [4, 11], [5, 12], [5, 13], [5, 14], [6, 15], [6, 16], [6, 17], [7, 18], [7, 19], [7, 20], [8, 21], [9, 22], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [10, 28], [2, 29], [13, 30], [14, 31], [16, 32], [17, 33], [19, 34], [20, 35], [21, 36], [23, 37], [24, 38], [25, 39], [26, 40], [27, 41], [40, 42], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 4], [12, 5], [13, 5], [14, 5], [15, 6], [16, 6], [17, 6], [18, 7], [19, 7], [20, 7], [21, 8], [22, 9], [23, 9], [24, 9], [25, 9], [26, 9], [27, 9], [28, 10], [29, 2], [30, 13], [31, 14], [32, 16], [33, 17], [34, 19], [35, 20], [36, 21], [37, 23], [38, 24], [39, 25], [40, 26], [41, 27], [42, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_formatFlags);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [6, 9], [7, 10], [8, 11], [2, 12], [9, 13], [7, 14], [10, 15], [11, 16], [13, 17], [14, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 6], [10, 7], [11, 8], [12, 2], [13, 9], [14, 7], [15, 10], [16, 11], [17, 13], [18, 14], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        AreaRecord rec = new AreaRecord();\n    \n        rec.field_1_formatFlags = field_1_formatFlags;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFormatFlags", "code": "    public short getFormatFlags()\n    {\n        return field_1_formatFlags;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFormatFlags", "code": "    public void setFormatFlags(short field_1_formatFlags)\n    {\n        this.field_1_formatFlags = field_1_formatFlags;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStacked", "code": "    public void setStacked(boolean value)\n    {\n        field_1_formatFlags = stacked.setShortBoolean(field_1_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isStacked", "code": "    public boolean isStacked()\n    {\n        return stacked.isSet(field_1_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDisplayAsPercentage", "code": "    public void setDisplayAsPercentage(boolean value)\n    {\n        field_1_formatFlags = displayAsPercentage.setShortBoolean(field_1_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDisplayAsPercentage", "code": "    public boolean isDisplayAsPercentage()\n    {\n        return displayAsPercentage.isSet(field_1_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setShadow", "code": "    public void setShadow(boolean value)\n    {\n        field_1_formatFlags = shadow.setShortBoolean(field_1_formatFlags, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isShadow", "code": "    public boolean isShadow()\n    {\n        return shadow.isSet(field_1_formatFlags);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AreaRecord", "code": "    public AreaRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AreaRecord", "code": "    public AreaRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AreaRecord", "code": "    public AreaRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-4.3-4581", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassWriter.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.org.objectweb.asm.ClassWriter", "code": "public class ClassWriter implements ClassVisitor {\n\n  /**\n   * The type of CONSTANT_Class constant pool items.\n   */\n\n  final static int CLASS = 7;\n\n  /**\n   * The type of CONSTANT_Fieldref constant pool items.\n   */\n\n  final static int FIELD = 9;\n\n  /**\n   * The type of CONSTANT_Methodref constant pool items.\n   */\n\n  final static int METH = 10;\n\n  /**\n   * The type of CONSTANT_InterfaceMethodref constant pool items.\n   */\n\n  final static int IMETH = 11;\n\n  /**\n   * The type of CONSTANT_String constant pool items.\n   */\n\n  final static int STR = 8;\n\n  /**\n   * The type of CONSTANT_Integer constant pool items.\n   */\n\n  final static int INT = 3;\n\n  /**\n   * The type of CONSTANT_Float constant pool items.\n   */\n\n  final static int FLOAT = 4;\n\n  /**\n   * The type of CONSTANT_Long constant pool items.\n   */\n\n  final static int LONG = 5;\n\n  /**\n   * The type of CONSTANT_Double constant pool items.\n   */\n\n  final static int DOUBLE = 6;\n\n  /**\n   * The type of CONSTANT_NameAndType constant pool items.\n   */\n\n  final static int NAME_TYPE = 12;\n\n  /**\n   * The type of CONSTANT_Utf8 constant pool items.\n   */\n\n  final static int UTF8 = 1;\n\n  /**\n   * Index of the next item to be added in the constant pool.\n   */\n\n  private short index;\n\n  /**\n   * The constant pool of this class.\n   */\n\n  private ByteVector pool;\n\n  /**\n   * The constant pool's hash table data.\n   */\n\n  private Item[] table;\n\n  /**\n   * The threshold of the constant pool's hash table.\n   */\n\n  private int threshold;\n\n  /**\n   * The access flags of this class.\n   */\n\n  private int access;\n\n  /**\n   * The constant pool item that contains the internal name of this class.\n   */\n\n  private int name;\n\n  /**\n   * The constant pool item that contains the internal name of the super class\n   * of this class.\n   */\n\n  private int superName;\n\n  /**\n   * Number of interfaces implemented or extended by this class or interface.\n   */\n\n  private int interfaceCount;\n\n  /**\n   * The interfaces implemented or extended by this class or interface. More\n   * precisely, this array contains the indexes of the constant pool items\n   * that contain the internal names of these interfaces.\n   */\n\n  private int[] interfaces;\n\n  /**\n   * The constant pool item that contains the name of the source file from\n   * which this class was compiled.\n   */\n\n  private Item sourceFile;\n\n  /**\n   * Number of fields of this class.\n   */\n\n  private int fieldCount;\n\n  /**\n   * The fields of this class.\n   */\n\n  private ByteVector fields;\n\n  /**\n   * <tt>true</tt> if the maximum stack size and number of local variables must\n   * be automatically computed.\n   */\n\n  private boolean computeMaxs;\n\n  /**\n   * The methods of this class. These methods are stored in a linked list of\n   * {@link CodeWriter CodeWriter} objects, linked to each other by their {@link\n   * CodeWriter#next} field. This field stores the first element of this list.\n   */\n\n  CodeWriter firstMethod;\n\n  /**\n   * The methods of this class. These methods are stored in a linked list of\n   * {@link CodeWriter CodeWriter} objects, linked to each other by their {@link\n   * CodeWriter#next} field. This field stores the last element of this list.\n   */\n\n  CodeWriter lastMethod;\n\n  /**\n   * The number of entries in the InnerClasses attribute.\n   */\n\n  private int innerClassesCount;\n\n  /**\n   * The InnerClasses attribute.\n   */\n\n  private ByteVector innerClasses;\n\n  /**\n   * A reusable key used to look for items in the hash {@link #table table}.\n   */\n\n  Item key;\n\n  /**\n   * A reusable key used to look for items in the hash {@link #table table}.\n   */\n\n  Item key2;\n\n  /**\n   * A reusable key used to look for items in the hash {@link #table table}.\n   */\n\n  Item key3;\n\n  /**\n   * The type of instructions without any label.\n   */\n\n  final static int NOARG_INSN = 0;\n\n  /**\n   * The type of instructions with an signed byte label.\n   */\n\n  final static int SBYTE_INSN = 1;\n\n  /**\n   * The type of instructions with an signed short label.\n   */\n\n  final static int SHORT_INSN = 2;\n\n  /**\n   * The type of instructions with a local variable index label.\n   */\n\n  final static int VAR_INSN = 3;\n\n  /**\n   * The type of instructions with an implicit local variable index label.\n   */\n\n  final static int IMPLVAR_INSN = 4;\n\n  /**\n   * The type of instructions with a type descriptor argument.\n   */\n\n  final static int TYPE_INSN = 5;\n\n  /**\n   * The type of field and method invocations instructions.\n   */\n\n  final static int FIELDORMETH_INSN = 6;\n\n  /**\n   * The type of the INVOKEINTERFACE instruction.\n   */\n\n  final static int ITFMETH_INSN = 7;\n\n  /**\n   * The type of instructions with a 2 bytes bytecode offset label.\n   */\n\n  final static int LABEL_INSN = 8;\n\n  /**\n   * The type of instructions with a 4 bytes bytecode offset label.\n   */\n\n  final static int LABELW_INSN = 9;\n\n  /**\n   * The type of the LDC instruction.\n   */\n\n  final static int LDC_INSN = 10;\n\n  /**\n   * The type of the LDC_W and LDC2_W instructions.\n   */\n\n  final static int LDCW_INSN = 11;\n\n  /**\n   * The type of the IINC instruction.\n   */\n\n  final static int IINC_INSN = 12;\n\n  /**\n   * The type of the TABLESWITCH instruction.\n   */\n\n  final static int TABL_INSN = 13;\n\n  /**\n   * The type of the LOOKUPSWITCH instruction.\n   */\n\n  final static int LOOK_INSN = 14;\n\n  /**\n   * The type of the MULTIANEWARRAY instruction.\n   */\n\n  final static int MANA_INSN = 15;\n\n  /**\n   * The type of the WIDE instruction.\n   */\n\n  final static int WIDE_INSN = 16;\n\n  /**\n   * The instruction types of all JVM opcodes.\n   */\n\n  static byte[] TYPE;\n\n  // --------------------------------------------------------------------------\n  // Static initializer\n  // --------------------------------------------------------------------------\n\n  /**\n   * Computes the instruction types of JVM opcodes.\n   */\n\n  static {\n    int i;\n    byte[] b = new byte[220];\n    String s =\n      \"AAAAAAAAAAAAAAAABCKLLDDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAADDDDDEEEEEEEEE\" +\n      \"EEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAA\" +\n      \"AAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIIIDNOAAAAAAGGGGGGGHAFBFAAFFAAQPIIJJII\" +\n      \"IIIIIIIIIIIIIIII\";\n    for (i = 0; i < b.length; ++i) {\n      b[i] = (byte)(s.charAt(i) - 'A');\n    }\n    TYPE = b;\n\n    /* code to generate the above string\n\n    // SBYTE_INSN instructions\n    b[Constants.NEWARRAY] = SBYTE_INSN;\n    b[Constants.BIPUSH] = SBYTE_INSN;\n\n    // SHORT_INSN instructions\n    b[Constants.SIPUSH] = SHORT_INSN;\n\n    // (IMPL)VAR_INSN instructions\n    b[Constants.RET] = VAR_INSN;\n    for (i = Constants.ILOAD; i <= Constants.ALOAD; ++i) {\n      b[i] = VAR_INSN;\n    }\n    for (i = Constants.ISTORE; i <= Constants.ASTORE; ++i) {\n      b[i] = VAR_INSN;\n    }\n    for (i = 26; i <= 45; ++i) { // ILOAD_0 to ALOAD_3\n      b[i] = IMPLVAR_INSN;\n    }\n    for (i = 59; i <= 78; ++i) { // ISTORE_0 to ASTORE_3\n      b[i] = IMPLVAR_INSN;\n    }\n\n    // TYPE_INSN instructions\n    b[Constants.NEW] = TYPE_INSN;\n    b[Constants.ANEWARRAY] = TYPE_INSN;\n    b[Constants.CHECKCAST] = TYPE_INSN;\n    b[Constants.INSTANCEOF] = TYPE_INSN;\n\n    // (Set)FIELDORMETH_INSN instructions\n    for (i = Constants.GETSTATIC; i <= Constants.INVOKESTATIC; ++i) {\n      b[i] = FIELDORMETH_INSN;\n    }\n    b[Constants.INVOKEINTERFACE] = ITFMETH_INSN;\n\n    // LABEL(W)_INSN instructions\n    for (i = Constants.IFEQ; i <= Constants.JSR; ++i) {\n      b[i] = LABEL_INSN;\n    }\n    b[Constants.IFNULL] = LABEL_INSN;\n    b[Constants.IFNONNULL] = LABEL_INSN;\n    b[200] = LABELW_INSN; // GOTO_W\n    b[201] = LABELW_INSN; // JSR_W\n    // temporary opcodes used internally by ASM - see Label and CodeWriter\n    for (i = 202; i < 220; ++i) {\n      b[i] = LABEL_INSN;\n    }\n\n    // LDC(_W) instructions\n    b[Constants.LDC] = LDC_INSN;\n    b[19] = LDCW_INSN; // LDC_W\n    b[20] = LDCW_INSN; // LDC2_W\n\n    // special instructions\n    b[Constants.IINC] = IINC_INSN;\n    b[Constants.TABLESWITCH] = TABL_INSN;\n    b[Constants.LOOKUPSWITCH] = LOOK_INSN;\n    b[Constants.MULTIANEWARRAY] = MANA_INSN;\n    b[196] = WIDE_INSN; // WIDE\n\n    for (i = 0; i < b.length; ++i) {\n      System.err.print((char)('A' + b[i]));\n    }\n    System.err.println();\n    */\n  }\n\n  // --------------------------------------------------------------------------\n  // Constructor\n  // --------------------------------------------------------------------------\n\n  /**\n   * Constructs a new {@link ClassWriter ClassWriter} object.\n   *\n   * @param computeMaxs <tt>true</tt> if the maximum stack size and the maximum\n   *      number of local variables must be automatically computed. If this flag\n   *      is <tt>true</tt>, then the arguments of the {@link\n   *      CodeVisitor#visitMaxs visitMaxs} method of the {@link CodeVisitor\n   *      CodeVisitor} returned by the {@link #visitMethod visitMethod} method\n   *      will be ignored, and computed automatically from the signature and\n   *      the bytecode of each method.\n   */\n\n  public ClassWriter (final boolean computeMaxs) {\n    index = 1;\n    pool = new ByteVector();\n    table = new Item[64];\n    threshold = (int)(0.75d*table.length);\n    key = new Item();\n    key2 = new Item();\n    key3 = new Item();\n    this.computeMaxs = computeMaxs;\n  }\n\n  // --------------------------------------------------------------------------\n  // Implementation of the ClassVisitor interface\n  // --------------------------------------------------------------------------\n\n  public void visit (\n    final int access,\n    final String name,\n    final String superName,\n    final String[] interfaces,\n    final String sourceFile)\n  {\n    this.access = access;\n    this.name = newClass(name).index;\n    this.superName = superName == null ? 0 : newClass(superName).index;\n    if (interfaces != null && interfaces.length > 0) {\n      interfaceCount = interfaces.length;\n      this.interfaces = new int[interfaceCount];\n      for (int i = 0; i < interfaceCount; ++i) {\n        this.interfaces[i] = newClass(interfaces[i]).index;\n      }\n    }\n    if (sourceFile != null) {\n      newUTF8(\"SourceFile\");\n      this.sourceFile = newUTF8(sourceFile);\n    }\n    if ((access & Constants.ACC_DEPRECATED) != 0) {\n      newUTF8(\"Deprecated\");\n    }\n  }\n\n  public void visitInnerClass (\n    final String name,\n    final String outerName,\n    final String innerName,\n    final int access)\n  {\n    if (innerClasses == null) {\n      newUTF8(\"InnerClasses\");\n      innerClasses = new ByteVector();\n    }\n    ++innerClassesCount;\n    innerClasses.put2(name == null ? 0 : newClass(name).index);\n    innerClasses.put2(outerName == null ? 0 : newClass(outerName).index);\n    innerClasses.put2(innerName == null ? 0 : newUTF8(innerName).index);\n    innerClasses.put2(access);\n  }\n\n  public void visitField (\n    final int access,\n    final String name,\n    final String desc,\n    final Object value)\n  {\n    ++fieldCount;\n    if (fields == null) {\n      fields = new ByteVector();\n    }\n    fields.put2(access).put2(newUTF8(name).index).put2(newUTF8(desc).index);\n    int attributeCount = 0;\n    if (value != null) {\n      ++attributeCount;\n    }\n    if ((access & Constants.ACC_SYNTHETIC) != 0) {\n      ++attributeCount;\n    }\n    if ((access & Constants.ACC_DEPRECATED) != 0) {\n      ++attributeCount;\n    }\n    fields.put2(attributeCount);\n    if (value != null) {\n      fields.put2(newUTF8(\"ConstantValue\").index);\n      fields.put4(2).put2(newCst(value).index);\n    }\n    if ((access & Constants.ACC_SYNTHETIC) != 0) {\n      fields.put2(newUTF8(\"Synthetic\").index).put4(0);\n    }\n    if ((access & Constants.ACC_DEPRECATED) != 0) {\n      fields.put2(newUTF8(\"Deprecated\").index).put4(0);\n    }\n  }\n\n  public CodeVisitor visitMethod (\n    final int access,\n    final String name,\n    final String desc,\n    final String[] exceptions)\n  {\n    CodeWriter cw = new CodeWriter(this, computeMaxs);\n    cw.init(access, name, desc, exceptions);\n    return cw;\n  }\n\n  public void visitEnd () {\n  }\n\n  // --------------------------------------------------------------------------\n  // Other public methods\n  // --------------------------------------------------------------------------\n\n  /**\n   * Returns the bytecode of the class that was build with this class writer.\n   *\n   * @return the bytecode of the class that was build with this class writer.\n   */\n\n  public byte[] toByteArray () {\n    // computes the real size of the bytecode of this class\n    int size = 24 + 2*interfaceCount;\n    if (fields != null) {\n      size += fields.length;\n    }\n    int nbMethods = 0;\n    CodeWriter cb = firstMethod;\n    while (cb != null) {\n      ++nbMethods;\n      size += cb.getSize();\n      cb = cb.next;\n    }\n    size += pool.length;\n    int attributeCount = 0;\n    if (sourceFile != null) {\n      ++attributeCount;\n      size += 8;\n    }\n    if ((access & Constants.ACC_DEPRECATED) != 0) {\n      ++attributeCount;\n      size += 6;\n    }\n    if (innerClasses != null) {\n      ++attributeCount;\n      size += 8 + innerClasses.length;\n    }\n    // allocates a byte vector of this size, in order to avoid unnecessary\n    // arraycopy operations in the ByteVector.enlarge() method\n    ByteVector out = new ByteVector(size);\n    out.put4(0xCAFEBABE).put2(3).put2(45);\n    out.put2(index).putByteArray(pool.data, 0, pool.length);\n    out.put2(access).put2(name).put2(superName);\n    out.put2(interfaceCount);\n    for (int i = 0; i < interfaceCount; ++i) {\n      out.put2(interfaces[i]);\n    }\n    out.put2(fieldCount);\n    if (fields != null) {\n      out.putByteArray(fields.data, 0, fields.length);\n    }\n    out.put2(nbMethods);\n    cb = firstMethod;\n    while (cb != null) {\n      cb.put(out);\n      cb = cb.next;\n    }\n    out.put2(attributeCount);\n    if (sourceFile != null) {\n      out.put2(newUTF8(\"SourceFile\").index).put4(2).put2(sourceFile.index);\n    }\n    if ((access & Constants.ACC_DEPRECATED) != 0) {\n      out.put2(newUTF8(\"Deprecated\").index).put4(0);\n    }\n    if (innerClasses != null) {\n      out.put2(newUTF8(\"InnerClasses\").index);\n      out.put4(innerClasses.length + 2).put2(innerClassesCount);\n      out.putByteArray(innerClasses.data, 0, innerClasses.length);\n    }\n    return out.data;\n  }\n\n  // --------------------------------------------------------------------------\n  // Utility methods: constant pool management\n  // --------------------------------------------------------------------------\n\n  /**\n   * Adds a number or string constant to the constant pool of the class being\n   * build. Does nothing if the constant pool already contains a similar item.\n   *\n   * @param cst the value of the constant to be added to the constant pool. This\n   *      parameter must be an {@link java.lang.Integer Integer}, a {@link\n   *      java.lang.Float Float}, a {@link java.lang.Long Long}, a {@link\n          java.lang.Double Double} or a {@link String String}.\n   * @return a new or already existing constant item with the given value.\n   */\n\n  Item newCst (final Object cst) {\n    if (cst instanceof Integer) {\n      int val = ((Integer)cst).intValue();\n      return newInteger(val);\n    } else if (cst instanceof Float) {\n      float val = ((Float)cst).floatValue();\n      return newFloat(val);\n    } else if (cst instanceof Long) {\n      long val = ((Long)cst).longValue();\n      return newLong(val);\n    } else if (cst instanceof Double) {\n      double val = ((Double)cst).doubleValue();\n      return newDouble(val);\n    } else if (cst instanceof String) {\n      return newString((String)cst);\n    } else {\n      throw new IllegalArgumentException(\"value \" + cst);\n    }\n  }\n\n  /**\n   * Adds an UTF string to the constant pool of the class being build. Does\n   * nothing if the constant pool already contains a similar item.\n   *\n   * @param value the String value.\n   * @return a new or already existing UTF8 item.\n   */\n\n  Item newUTF8 (final String value) {\n    key.set(UTF8, value, null, null);\n    Item result = get(key);\n    if (result == null) {\n      pool.put1(UTF8).putUTF(value);\n      result = new Item(index++, key);\n      put(result);\n    }\n    return result;\n  }\n\n  /**\n   * Adds a class reference to the constant pool of the class being build. Does\n   * nothing if the constant pool already contains a similar item.\n   *\n   * @param value the internal name of the class.\n   * @return a new or already existing class reference item.\n   */\n\n  Item newClass (final String value) {\n    key2.set(CLASS, value, null, null);\n    Item result = get(key2);\n    if (result == null) {\n      pool.put12(CLASS, newUTF8(value).index);\n      result = new Item(index++, key2);\n      put(result);\n    }\n    return result;\n  }\n\n  /**\n   * Adds a field reference to the constant pool of the class being build. Does\n   * nothing if the constant pool already contains a similar item.\n   *\n   * @param owner the internal name of the field's owner class.\n   * @param name the field's name.\n   * @param desc the field's descriptor.\n   * @return a new or already existing field reference item.\n   */\n\n  Item newField (\n    final String owner,\n    final String name,\n    final String desc)\n  {\n    key3.set(FIELD, owner, name, desc);\n    Item result = get(key3);\n    if (result == null) {\n      put122(FIELD, newClass(owner).index, newNameType(name, desc).index);\n      result = new Item(index++, key3);\n      put(result);\n    }\n    return result;\n  }\n\n  /**\n   * Adds a method reference to the constant pool of the class being build. Does\n   * nothing if the constant pool already contains a similar item.\n   *\n   * @param owner the internal name of the method's owner class.\n   * @param name the method's name.\n   * @param desc the method's descriptor.\n   * @return a new or already existing method reference item.\n   */\n\n  Item newMethod (\n    final String owner,\n    final String name,\n    final String desc)\n  {\n    key3.set(METH, owner, name, desc);\n    Item result = get(key3);\n    if (result == null) {\n      put122(METH, newClass(owner).index, newNameType(name, desc).index);\n      result = new Item(index++, key3);\n      put(result);\n    }\n    return result;\n  }\n\n  /**\n   * Adds an interface method reference to the constant pool of the class being\n   * build. Does nothing if the constant pool already contains a similar item.\n   *\n   * @param ownerItf the internal name of the method's owner interface.\n   * @param name the method's name.\n   * @param desc the method's descriptor.\n   * @return a new or already existing interface method reference item.\n   */\n\n  Item newItfMethod (\n    final String ownerItf,\n    final String name,\n    final String desc)\n  {\n    key3.set(IMETH, ownerItf, name, desc);\n    Item result = get(key3);\n    if (result == null) {\n      put122(IMETH, newClass(ownerItf).index, newNameType(name, desc).index);\n      result = new Item(index++, key3);\n      put(result);\n    }\n    return result;\n  }\n\n  /**\n   * Adds an integer to the constant pool of the class being build. Does nothing\n   * if the constant pool already contains a similar item.\n   *\n   * @param value the int value.\n   * @return a new or already existing int item.\n   */\n\n  private Item newInteger (final int value) {\n    key.set(value);\n    Item result = get(key);\n    if (result == null) {\n      pool.put1(INT).put4(value);\n      result = new Item(index++, key);\n      put(result);\n    }\n    return result;\n  }\n\n  /**\n   * Adds a float to the constant pool of the class being build. Does nothing if\n   * the constant pool already contains a similar item.\n   *\n   * @param value the float value.\n   * @return a new or already existing float item.\n   */\n\n  private Item newFloat (final float value) {\n    key.set(value);\n    Item result = get(key);\n    if (result == null) {\n      pool.put1(FLOAT).put4(Float.floatToIntBits(value));\n      result = new Item(index++, key);\n      put(result);\n    }\n    return result;\n  }\n\n  /**\n   * Adds a long to the constant pool of the class being build. Does nothing if\n   * the constant pool already contains a similar item.\n   *\n   * @param value the long value.\n   * @return a new or already existing long item.\n   */\n\n  private Item newLong (final long value) {\n    key.set(value);\n    Item result = get(key);\n    if (result == null) {\n      pool.put1(LONG).put8(value);\n      result = new Item(index, key);\n      put(result);\n      index += 2;\n    }\n    return result;\n  }\n\n  /**\n   * Adds a double to the constant pool of the class being build. Does nothing\n   * if the constant pool already contains a similar item.\n   *\n   * @param value the double value.\n   * @return a new or already existing double item.\n   */\n\n  private Item newDouble (final double value) {\n    key.set(value);\n    Item result = get(key);\n    if (result == null) {\n      pool.put1(DOUBLE).put8(Double.doubleToLongBits(value));\n      result = new Item(index, key);\n      put(result);\n      index += 2;\n    }\n    return result;\n  }\n\n  /**\n   * Adds a string to the constant pool of the class being build. Does nothing\n   * if the constant pool already contains a similar item.\n   *\n   * @param value the String value.\n   * @return a new or already existing string item.\n   */\n\n  private Item newString (final String value) {\n    key2.set(STR, value, null, null);\n    Item result = get(key2);\n    if (result == null) {\n      pool.put12(STR, newUTF8(value).index);\n      result = new Item(index++, key2);\n      put(result);\n    }\n    return result;\n  }\n\n  /**\n   * Adds a name and type to the constant pool of the class being build. Does\n   * nothing if the constant pool already contains a similar item.\n   *\n   * @param name a name.\n   * @param desc a type descriptor.\n   * @return a new or already existing name and type item.\n   */\n\n  private Item newNameType (final String name, final String desc) {\n    key2.set(NAME_TYPE, name, desc, null);\n    Item result = get(key2);\n    if (result == null) {\n      put122(NAME_TYPE, newUTF8(name).index, newUTF8(desc).index);\n      result = new Item(index++, key2);\n      put(result);\n    }\n    return result;\n  }\n\n  /**\n   * Returns the constant pool's hash table item which is equal to the given\n   * item.\n   *\n   * @param key a constant pool item.\n   * @return the constant pool's hash table item which is equal to the given\n   *      item, or <tt>null</tt> if there is no such item.\n   */\n\n  private Item get (final Item key) {\n    Item tab[] = table;\n    int hashCode = key.hashCode;\n    int index = (hashCode & 0x7FFFFFFF) % tab.length;\n    for (Item i = tab[index]; i != null; i = i.next) {\n      if (i.hashCode == hashCode && key.isEqualTo(i)) {\n        return i;\n      }\n    }\n    return null;\n  }\n\n  /**\n   * Puts the given item in the constant pool's hash table. The hash table\n   * <i>must</i> not already contains this item.\n   *\n   * @param i the item to be added to the constant pool's hash table.\n   */\n\n  private void put (final Item i) {\n    if (index > threshold) {\n      int oldCapacity = table.length;\n      Item oldMap[] = table;\n      int newCapacity = oldCapacity * 2 + 1;\n      Item newMap[] = new Item[newCapacity];\n      threshold = (int)(newCapacity * 0.75);\n      table = newMap;\n      for (int j = oldCapacity; j-- > 0; ) {\n        for (Item old = oldMap[j]; old != null; ) {\n          Item e = old;\n          old = old.next;\n          int index = (e.hashCode & 0x7FFFFFFF) % newCapacity;\n          e.next = newMap[index];\n          newMap[index] = e;\n        }\n      }\n    }\n    int index = (i.hashCode & 0x7FFFFFFF) % table.length;\n    i.next = table[index];\n    table[index] = i;\n  }\n\n  /**\n   * Puts one byte and two shorts into the constant pool.\n   *\n   * @param b a byte.\n   * @param s1 a short.\n   * @param s2 another short.\n   */\n\n  private void put122 (final int b, final int s1, final int s2) {\n    pool.put12(b, s1).put2(s2);", "functions": [{"function_name": "visit", "code": "  public void visit (\n    final int access,\n    final String name,\n    final String superName,\n    final String[] interfaces,\n    final String sourceFile)\n  {\n    this.access = access;\n    this.name = newClass(name).index;\n    this.superName = superName == null ? 0 : newClass(superName).index;\n    if (interfaces != null && interfaces.length > 0) {\n      interfaceCount = interfaces.length;\n      this.interfaces = new int[interfaceCount];\n      for (int i = 0; i < interfaceCount; ++i) {\n        this.interfaces[i] = newClass(interfaces[i]).index;\n      }\n    }\n    if (sourceFile != null) {\n      newUTF8(\"SourceFile\");\n      this.sourceFile = newUTF8(sourceFile);\n    }\n    if ((access & Constants.ACC_DEPRECATED) != 0) {\n      newUTF8(\"Deprecated\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LOOP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [0, 12], [0, 13], [0, 14], [9, 15], [9, 16], [10, 17], [3, 18], [11, 19], [11, 20], [12, 21], [13, 22], [1, 23], [2, 24], [2, 25], [18, 26], [3, 27], [3, 28], [19, 29], [20, 30], [21, 31], [21, 32], [21, 33], [23, 34], [24, 35], [25, 36], [33, 37], [18, 38], [18, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 0], [13, 0], [14, 0], [15, 9], [16, 9], [17, 10], [18, 3], [19, 11], [20, 11], [21, 12], [22, 13], [23, 1], [24, 2], [25, 2], [26, 18], [27, 3], [28, 3], [29, 19], [30, 20], [31, 21], [32, 21], [33, 21], [34, 23], [35, 24], [36, 25], [37, 33], [38, 18], [39, 18], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "visitInnerClass", "code": "  public void visitInnerClass (\n    final String name,\n    final String outerName,\n    final String innerName,\n    final int access)\n  {\n    if (innerClasses == null) {\n      newUTF8(\"InnerClasses\");\n      innerClasses = new ByteVector();\n    }\n    ++innerClassesCount;\n    innerClasses.put2(name == null ? 0 : newClass(name).index);\n    innerClasses.put2(outerName == null ? 0 : newClass(outerName).index);\n    innerClasses.put2(innerName == null ? 0 : newUTF8(innerName).index);\n    innerClasses.put2(access);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "COND_EXPR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [11, 16], [11, 17], [12, 18], [12, 19], [12, 20], [13, 21], [13, 22], [13, 23], [1, 24], [1, 25], [17, 26], [20, 27], [23, 28], [24, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [16, 11], [17, 11], [18, 12], [19, 12], [20, 12], [21, 13], [22, 13], [23, 13], [24, 1], [25, 1], [26, 17], [27, 20], [28, 23], [29, 24], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "visitField", "code": "  public void visitField (\n    final int access,\n    final String name,\n    final String desc,\n    final Object value)\n  {\n    ++fieldCount;\n    if (fields == null) {\n      fields = new ByteVector();\n    }\n    fields.put2(access).put2(newUTF8(name).index).put2(newUTF8(desc).index);\n    int attributeCount = 0;\n    if (value != null) {\n      ++attributeCount;\n    }\n    if ((access & Constants.ACC_SYNTHETIC) != 0) {\n      ++attributeCount;\n    }\n    if ((access & Constants.ACC_DEPRECATED) != 0) {\n      ++attributeCount;\n    }\n    fields.put2(attributeCount);\n    if (value != null) {\n      fields.put2(newUTF8(\"ConstantValue\").index);\n      fields.put4(2).put2(newCst(value).index);\n    }\n    if ((access & Constants.ACC_SYNTHETIC) != 0) {\n      fields.put2(newUTF8(\"Synthetic\").index).put4(0);\n    }\n    if ((access & Constants.ACC_DEPRECATED) != 0) {\n      fields.put2(newUTF8(\"Deprecated\").index).put4(0);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [3, 15], [0, 16], [4, 17], [5, 18], [6, 19], [0, 20], [8, 21], [13, 22], [13, 23], [14, 24], [14, 25], [15, 26], [17, 27], [17, 28], [18, 29], [18, 30], [19, 31], [7, 32], [20, 33], [20, 34], [21, 35], [1, 36], [2, 37], [3, 38], [3, 39], [33, 40], [34, 41], [8, 42], [36, 43], [36, 44], [37, 45], [37, 46], [38, 47], [38, 48], [39, 49], [42, 50], [43, 51], [44, 52], [45, 53], [46, 54], [48, 55], [49, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 3], [16, 0], [17, 4], [18, 5], [19, 6], [20, 0], [21, 8], [22, 13], [23, 13], [24, 14], [25, 14], [26, 15], [27, 17], [28, 17], [29, 18], [30, 18], [31, 19], [32, 7], [33, 20], [34, 20], [35, 21], [36, 1], [37, 2], [38, 3], [39, 3], [40, 33], [41, 34], [42, 8], [43, 36], [44, 36], [45, 37], [46, 37], [47, 38], [48, 38], [49, 39], [50, 42], [51, 43], [52, 44], [53, 45], [54, 46], [55, 48], [56, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "visitMethod", "code": "  public CodeVisitor visitMethod (\n    final int access,\n    final String name,\n    final String desc,\n    final String[] exceptions)\n  {\n    CodeWriter cw = new CodeWriter(this, computeMaxs);\n    cw.init(access, name, desc, exceptions);\n    return cw;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "visitEnd", "code": "  public void visitEnd () {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "toByteArray", "code": "  public byte[] toByteArray () {\n    // computes the real size of the bytecode of this class\n    int size = 24 + 2*interfaceCount;\n    if (fields != null) {\n      size += fields.length;\n    }\n    int nbMethods = 0;\n    CodeWriter cb = firstMethod;\n    while (cb != null) {\n      ++nbMethods;\n      size += cb.getSize();\n      cb = cb.next;\n    }\n    size += pool.length;\n    int attributeCount = 0;\n    if (sourceFile != null) {\n      ++attributeCount;\n      size += 8;\n    }\n    if ((access & Constants.ACC_DEPRECATED) != 0) {\n      ++attributeCount;\n      size += 6;\n    }\n    if (innerClasses != null) {\n      ++attributeCount;\n      size += 8 + innerClasses.length;\n    }\n    // allocates a byte vector of this size, in order to avoid unnecessary\n    // arraycopy operations in the ByteVector.enlarge() method\n    ByteVector out = new ByteVector(size);\n    out.put4(0xCAFEBABE).put2(3).put2(45);\n    out.put2(index).putByteArray(pool.data, 0, pool.length);\n    out.put2(access).put2(name).put2(superName);\n    out.put2(interfaceCount);\n    for (int i = 0; i < interfaceCount; ++i) {\n      out.put2(interfaces[i]);\n    }\n    out.put2(fieldCount);\n    if (fields != null) {\n      out.putByteArray(fields.data, 0, fields.length);\n    }\n    out.put2(nbMethods);\n    cb = firstMethod;\n    while (cb != null) {\n      cb.put(out);\n      cb = cb.next;\n    }\n    out.put2(attributeCount);\n    if (sourceFile != null) {\n      out.put2(newUTF8(\"SourceFile\").index).put4(2).put2(sourceFile.index);\n    }\n    if ((access & Constants.ACC_DEPRECATED) != 0) {\n      out.put2(newUTF8(\"Deprecated\").index).put4(0);\n    }\n    if (innerClasses != null) {\n      out.put2(newUTF8(\"InnerClasses\").index);\n      out.put4(innerClasses.length + 2).put2(innerClassesCount);\n      out.putByteArray(innerClasses.data, 0, innerClasses.length);\n    }\n    return out.data;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "LOOP", "IF", "LOOP", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [2, 18], [3, 19], [4, 20], [0, 21], [5, 22], [0, 23], [0, 24], [6, 25], [0, 26], [7, 27], [0, 28], [0, 29], [0, 30], [0, 31], [9, 32], [10, 33], [11, 34], [0, 35], [13, 36], [16, 37], [18, 38], [19, 39], [19, 40], [20, 41], [22, 42], [25, 43], [29, 44], [29, 45], [30, 46], [31, 47], [31, 48], [31, 49], [8, 50], [32, 51], [33, 52], [33, 53], [34, 54], [12, 55], [36, 56], [15, 57], [37, 58], [17, 59], [2, 60], [2, 61], [2, 62], [3, 63], [4, 64], [5, 65], [5, 66], [6, 67], [7, 68], [7, 69], [46, 70], [48, 71], [49, 72], [9, 73], [10, 74], [11, 75], [13, 76], [13, 77], [16, 78], [59, 79], [59, 80], [60, 81], [61, 82], [61, 83], [62, 84], [63, 85], [63, 86], [64, 87], [64, 88], [64, 89], [67, 90], [73, 91], [74, 92], [75, 93], [77, 94], [79, 95], [82, 96], [84, 97], [85, 98], [86, 99], [87, 100], [89, 101], [91, 102], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 2], [19, 3], [20, 4], [21, 0], [22, 5], [23, 0], [24, 0], [25, 6], [26, 0], [27, 7], [28, 0], [29, 0], [30, 0], [31, 0], [32, 9], [33, 10], [34, 11], [35, 0], [36, 13], [37, 16], [38, 18], [39, 19], [40, 19], [41, 20], [42, 22], [43, 25], [44, 29], [45, 29], [46, 30], [47, 31], [48, 31], [49, 31], [50, 8], [51, 32], [52, 33], [53, 33], [54, 34], [55, 12], [56, 36], [57, 15], [58, 37], [59, 17], [60, 2], [61, 2], [62, 2], [63, 3], [64, 4], [65, 5], [66, 5], [67, 6], [68, 7], [69, 7], [70, 46], [71, 48], [72, 49], [73, 9], [74, 10], [75, 11], [76, 13], [77, 13], [78, 16], [79, 59], [80, 59], [81, 60], [82, 61], [83, 61], [84, 62], [85, 63], [86, 63], [87, 64], [88, 64], [89, 64], [90, 67], [91, 73], [92, 74], [93, 75], [94, 77], [95, 79], [96, 82], [97, 84], [98, 85], [99, 86], [100, 87], [101, 89], [102, 91], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102]]}, {"function_name": "newCst", "code": "  Item newCst (final Object cst) {\n    if (cst instanceof Integer) {\n      int val = ((Integer)cst).intValue();\n      return newInteger(val);\n    } else if (cst instanceof Float) {\n      float val = ((Float)cst).floatValue();\n      return newFloat(val);\n    } else if (cst instanceof Long) {\n      long val = ((Long)cst).longValue();\n      return newLong(val);\n    } else if (cst instanceof Double) {\n      double val = ((Double)cst).doubleValue();\n      return newDouble(val);\n    } else if (cst instanceof String) {\n      return newString((String)cst);\n    } else {\n      throw new IllegalArgumentException(\"value \" + cst);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [1, 8], [5, 9], [5, 10], [3, 11], [3, 12], [7, 13], [9, 14], [9, 15], [5, 16], [5, 17], [11, 18], [14, 19], [9, 20], [9, 21], [16, 22], [14, 23], [14, 24], [20, 25], [23, 26], [24, 27], [26, 28], [28, 29], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 1], [9, 5], [10, 5], [11, 3], [12, 3], [13, 7], [14, 9], [15, 9], [16, 5], [17, 5], [18, 11], [19, 14], [20, 9], [21, 9], [22, 16], [23, 14], [24, 14], [25, 20], [26, 23], [27, 24], [28, 26], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "newUTF8", "code": "  Item newUTF8 (final String value) {\n    key.set(UTF8, value, null, null);\n    Item result = get(key);\n    if (result == null) {\n      pool.put1(UTF8).putUTF(value);\n      result = new Item(index++, key);\n      put(result);\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [5, 7], [3, 8], [6, 9], [6, 10], [2, 11], [2, 12], [2, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 5], [8, 3], [9, 6], [10, 6], [11, 2], [12, 2], [13, 2], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "newClass", "code": "  Item newClass (final String value) {\n    key2.set(CLASS, value, null, null);\n    Item result = get(key2);\n    if (result == null) {\n      pool.put12(CLASS, newUTF8(value).index);\n      result = new Item(index++, key2);\n      put(result);\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [5, 7], [3, 8], [6, 9], [6, 10], [2, 11], [2, 12], [2, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 5], [8, 3], [9, 6], [10, 6], [11, 2], [12, 2], [13, 2], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "newField", "code": "  Item newField (\n    final String owner,\n    final String name,\n    final String desc)\n  {\n    key3.set(FIELD, owner, name, desc);\n    Item result = get(key3);\n    if (result == null) {\n      put122(FIELD, newClass(owner).index, newNameType(name, desc).index);\n      result = new Item(index++, key3);\n      put(result);\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [7, 9], [3, 10], [2, 11], [2, 12], [2, 13], [12, 14], [13, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 7], [10, 3], [11, 2], [12, 2], [13, 2], [14, 12], [15, 13], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newMethod", "code": "  Item newMethod (\n    final String owner,\n    final String name,\n    final String desc)\n  {\n    key3.set(METH, owner, name, desc);\n    Item result = get(key3);\n    if (result == null) {\n      put122(METH, newClass(owner).index, newNameType(name, desc).index);\n      result = new Item(index++, key3);\n      put(result);\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [7, 9], [3, 10], [2, 11], [2, 12], [2, 13], [12, 14], [13, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 7], [10, 3], [11, 2], [12, 2], [13, 2], [14, 12], [15, 13], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newItfMethod", "code": "  Item newItfMethod (\n    final String ownerItf,\n    final String name,\n    final String desc)\n  {\n    key3.set(IMETH, ownerItf, name, desc);\n    Item result = get(key3);\n    if (result == null) {\n      put122(IMETH, newClass(ownerItf).index, newNameType(name, desc).index);\n      result = new Item(index++, key3);\n      put(result);\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [7, 9], [3, 10], [2, 11], [2, 12], [2, 13], [12, 14], [13, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 7], [10, 3], [11, 2], [12, 2], [13, 2], [14, 12], [15, 13], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newInteger", "code": "  private Item newInteger (final int value) {\n    key.set(value);\n    Item result = get(key);\n    if (result == null) {\n      pool.put1(INT).put4(value);\n      result = new Item(index++, key);\n      put(result);\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [5, 7], [3, 8], [2, 9], [2, 10], [2, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 5], [8, 3], [9, 2], [10, 2], [11, 2], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "newFloat", "code": "  private Item newFloat (final float value) {\n    key.set(value);\n    Item result = get(key);\n    if (result == null) {\n      pool.put1(FLOAT).put4(Float.floatToIntBits(value));\n      result = new Item(index++, key);\n      put(result);\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [5, 7], [3, 8], [2, 9], [2, 10], [2, 11], [10, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 5], [8, 3], [9, 2], [10, 2], [11, 2], [12, 10], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "newLong", "code": "  private Item newLong (final long value) {\n    key.set(value);\n    Item result = get(key);\n    if (result == null) {\n      pool.put1(LONG).put8(value);\n      result = new Item(index, key);\n      put(result);\n      index += 2;\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [5, 7], [3, 8], [2, 9], [2, 10], [2, 11], [2, 12], [9, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 5], [8, 3], [9, 2], [10, 2], [11, 2], [12, 2], [13, 9], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "newDouble", "code": "  private Item newDouble (final double value) {\n    key.set(value);\n    Item result = get(key);\n    if (result == null) {\n      pool.put1(DOUBLE).put8(Double.doubleToLongBits(value));\n      result = new Item(index, key);\n      put(result);\n      index += 2;\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [5, 7], [3, 8], [2, 9], [2, 10], [2, 11], [2, 12], [9, 13], [11, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 5], [8, 3], [9, 2], [10, 2], [11, 2], [12, 2], [13, 9], [14, 11], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "newString", "code": "  private Item newString (final String value) {\n    key2.set(STR, value, null, null);\n    Item result = get(key2);\n    if (result == null) {\n      pool.put12(STR, newUTF8(value).index);\n      result = new Item(index++, key2);\n      put(result);\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [5, 7], [3, 8], [6, 9], [6, 10], [2, 11], [2, 12], [2, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 5], [8, 3], [9, 6], [10, 6], [11, 2], [12, 2], [13, 2], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "newNameType", "code": "  private Item newNameType (final String name, final String desc) {\n    key2.set(NAME_TYPE, name, desc, null);\n    Item result = get(key2);\n    if (result == null) {\n      put122(NAME_TYPE, newUTF8(name).index, newUTF8(desc).index);\n      result = new Item(index++, key2);\n      put(result);\n    }\n    return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [6, 8], [3, 9], [7, 10], [2, 11], [2, 12], [2, 13], [12, 14], [13, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 6], [9, 3], [10, 7], [11, 2], [12, 2], [13, 2], [14, 12], [15, 13], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "get", "code": "  private Item get (final Item key) {\n    Item tab[] = table;\n    int hashCode = key.hashCode;\n    int index = (hashCode & 0x7FFFFFFF) % tab.length;\n    for (Item i = tab[index]; i != null; i = i.next) {\n      if (i.hashCode == hashCode && key.isEqualTo(i)) {\n        return i;\n      }\n    }\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [9, 11], [3, 12], [10, 13], [12, 14], [10, 15], [13, 16], [13, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 9], [12, 3], [13, 10], [14, 12], [15, 10], [16, 13], [17, 13], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "put", "code": "  private void put (final Item i) {\n    if (index > threshold) {\n      int oldCapacity = table.length;\n      Item oldMap[] = table;\n      int newCapacity = oldCapacity * 2 + 1;\n      Item newMap[] = new Item[newCapacity];\n      threshold = (int)(newCapacity * 0.75);\n      table = newMap;\n      for (int j = oldCapacity; j-- > 0; ) {\n        for (Item old = oldMap[j]; old != null; ) {\n          Item e = old;\n          old = old.next;\n          int index = (e.hashCode & 0x7FFFFFFF) % newCapacity;\n          e.next = newMap[index];\n          newMap[index] = e;\n        }\n      }\n    }\n    int index = (i.hashCode & 0x7FFFFFFF) % table.length;\n    i.next = table[index];\n    table[index] = i;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [7, 13], [8, 14], [2, 15], [2, 16], [13, 17], [8, 18], [14, 19], [10, 20], [18, 21], [16, 22], [20, 23], [20, 24], [18, 25], [18, 26], [21, 27], [22, 28], [24, 29], [18, 30], [18, 31], [18, 32], [25, 33], [33, 34], [34, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 1], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 7], [14, 8], [15, 2], [16, 2], [17, 13], [18, 8], [19, 14], [20, 10], [21, 18], [22, 16], [23, 20], [24, 20], [25, 18], [26, 18], [27, 21], [28, 22], [29, 24], [30, 18], [31, 18], [32, 18], [33, 25], [34, 33], [35, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "put122", "code": "  private void put122 (final int b, final int s1, final int s2) {\n    pool.put12(b, s1).put2(s2);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ClassWriter", "code": "  public ClassWriter (final boolean computeMaxs) {\n    index = 1;\n    pool = new ByteVector();\n    table = new Item[64];\n    threshold = (int)(0.75d*table.length);\n    key = new Item();\n    key2 = new Item();\n    key3 = new Item();\n    this.computeMaxs = computeMaxs;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [4, 11], [5, 12], [8, 13], [9, 14], [6, 15], [7, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 4], [12, 5], [13, 8], [14, 9], [15, 6], [16, 7], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 0}
{"sample_id": "poi-1.5-5197", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/poifs/filesystem/EntryNode.java", "language": "java", "name": "org.apache.poi.poifs.filesystem.EntryNode", "code": "public abstract class EntryNode\n    implements Entry\n{\n\n    private Property      _property;\n\n    private DirectoryNode _parent;\n\n    /**\n     * create a DocumentNode. This method is not public by design; it\n     * is intended strictly for the internal use of extending classes\n     *\n     * @param property the Property for this Entry\n     * @param parent the parent of this entry\n     */\n\n    protected EntryNode(final Property property, final DirectoryNode parent)\n    {\n        _property = property;\n        _parent   = parent;\n    }\n\n    /**\n     * grant access to the property\n     *\n     * @return the property backing this entry\n     */\n\n    protected Property getProperty()\n    {\n        return _property;\n    }\n\n    /**\n     * is this the root of the tree?\n     *\n     * @return true if so, else false\n     */\n\n    protected boolean isRoot()\n    {\n\n        return (_parent == null);\n    }\n\n    /**\n     * extensions use this method to verify internal rules regarding\n     * deletion of the underlying store.\n     *\n     * @return true if it's ok to delete the underlying store, else\n     *         false\n     */\n\n    protected abstract boolean isDeleteOK();\n\n    /* ********** START implementation of Entry ********** */\n\n    /**\n     * get the name of the Entry\n     *\n     * @return name\n     */\n\n    public String getName()\n    {\n        return _property.getName();\n    }\n\n    /**\n     * is this a DirectoryEntry?\n     *\n     * @return true if the Entry is a DirectoryEntry, else false\n     */\n\n    public boolean isDirectoryEntry()\n    {\n        return false;\n    }\n\n    /**\n     * is this a DocumentEntry?\n     *\n     * @return true if the Entry is a DocumentEntry, else false\n     */\n\n    public boolean isDocumentEntry()\n    {\n        return false;\n    }\n\n    /**\n     * get this Entry's parent (the DocumentEntry that owns this\n     * Entry). All Entry objects, except the root Entry, has a parent.\n     *\n     * @return this Entry's parent; null iff this is the root Entry\n     */\n\n    public DirectoryEntry getParent()\n    {\n        return _parent;\n    }\n\n    /**\n     * Delete this Entry. This operation should succeed, but there are\n     * special circumstances when it will not:\n     *\n     * If this Entry is the root of the Entry tree, it cannot be\n     * deleted, as there is no way to create another one.\n     *\n     * If this Entry is a directory, it cannot be deleted unless it is\n     * empty.\n     *\n     * @return true if the Entry was successfully deleted, else false\n     */\n\n    public boolean delete()\n    {\n        boolean rval = false;\n\n        if ((!isRoot()) && isDeleteOK())\n        {\n            rval = _parent.deleteEntry(this);\n        }\n        return rval;\n    }\n\n    /**\n     * Rename this Entry. This operation will fail if:\n     *\n     * There is a sibling Entry (i.e., an Entry whose parent is the\n     * same as this Entry's parent) with the same name.\n     *\n     * This Entry is the root of the Entry tree. Its name is dictated\n     * by the Filesystem and many not be changed.\n     *\n     * @param newName the new name for this Entry\n     *\n     * @return true if the operation succeeded, else false\n     */\n\n    public boolean renameTo(final String newName)\n    {\n        boolean rval = false;\n\n        if (!isRoot())\n        {\n            rval = _parent.changeName(getName(), newName);\n        }\n        return rval;", "functions": [{"function_name": "getProperty", "code": "    protected Property getProperty()\n    {\n        return _property;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isRoot", "code": "    protected boolean isRoot()\n    {\n\n        return (_parent == null);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDeleteOK", "code": "    protected abstract boolean isDeleteOK();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getName", "code": "    public String getName()\n    {\n        return _property.getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDirectoryEntry", "code": "    public boolean isDirectoryEntry()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDocumentEntry", "code": "    public boolean isDocumentEntry()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParent", "code": "    public DirectoryEntry getParent()\n    {\n        return _parent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "delete", "code": "    public boolean delete()\n    {\n        boolean rval = false;\n\n        if ((!isRoot()) && isDeleteOK())\n        {\n            rval = _parent.deleteEntry(this);\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [4, 6], [3, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 4], [7, 3], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "renameTo", "code": "    public boolean renameTo(final String newName)\n    {\n        boolean rval = false;\n\n        if (!isRoot())\n        {\n            rval = _parent.changeName(getName(), newName);\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [2, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 2], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "EntryNode", "code": "    protected EntryNode(final Property property, final DirectoryNode parent)\n    {\n        _property = property;\n        _parent   = parent;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.7-8124", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/templates/AVTPartSimple.java", "language": "java", "name": "org.apache.xalan.templates.AVTPartSimple", "code": "public class AVTPartSimple extends AVTPart\n{\n    static final long serialVersionUID = -3744957690598727913L;\n\n  /**\n   * Simple string value;\n   * @serial\n   */\n  private String m_val;\n\n  /**\n   * Construct a simple AVT part.\n   * @param val A pure string section of an AVT.\n   */\n  public AVTPartSimple(String val)\n  {\n    m_val = val;\n  }\n\n  /**\n   * Get the AVT part as the original string.\n   *\n   * @return the AVT part as the original string.\n   */\n  public String getSimpleString()\n  {\n    return m_val;\n  }\n  \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n  }\n\n\n  /**\n   * Write the value into the buffer.\n   *\n   * @param xctxt An XPathContext object, providing infomation specific\n   * to this invocation and this thread. Maintains SAX state, variables, \n   * error handler and  so on, so the transformation/XPath object itself\n   * can be simultaneously invoked from multiple threads.\n   * @param buf Buffer to write into.\n   * @param context The current source tree context.\n   * @param nsNode The current namespace context (stylesheet tree context).\n   */\n  public void evaluate(XPathContext xctxt, FastStringBuffer buf,\n                       int context,\n                       org.apache.xml.utils.PrefixResolver nsNode)\n  {\n    buf.append(m_val);\n  }\n  /**\n   * @see XSLTVisitable#callVisitors(XSLTVisitor)\n   */\n  public void callVisitors(XSLTVisitor visitor)", "functions": [{"function_name": "getSimpleString", "code": "  public String getSimpleString()\n  {\n    return m_val;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "evaluate", "code": "  public void evaluate(XPathContext xctxt, FastStringBuffer buf,\n                       int context,\n                       org.apache.xml.utils.PrefixResolver nsNode)\n  {\n    buf.append(m_val);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(XSLTVisitor visitor)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "AVTPartSimple", "code": "  public AVTPartSimple(String val)\n  {\n    m_val = val;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-3.0-6130", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/AreaNVPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.AreaNVPtg", "code": "public class AreaNVPtg\n    extends AreaPtg\n{\n  public final static short sid  = 0x4D;\n\n  protected AreaNVPtg() {\n  }\n\n  public AreaNVPtg(RecordInputStream in)\n  {\n    super(in);\n  }\n\n  public void writeBytes(byte [] array, int offset) {\n    throw new RuntimeException(\"Coding Error: This method should never be called. This ptg should be converted\");\n  }\n\n  public String getAreaPtgName() {\n    return \"AreaNVPtg\";\n  }\n\n  public String toFormulaString(Workbook book)\n  {\n    throw new RuntimeException(\"Coding Error: This method should never be called. This ptg should be converted\");\n  }\n\n  public Object clone() {\n    throw new RuntimeException(\"Coding Error: This method should never be called. This ptg should be converted\");", "functions": [{"function_name": "writeBytes", "code": "  public void writeBytes(byte [] array, int offset) {\n    throw new RuntimeException(\"Coding Error: This method should never be called. This ptg should be converted\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getAreaPtgName", "code": "  public String getAreaPtgName() {\n    return \"AreaNVPtg\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toFormulaString", "code": "  public String toFormulaString(Workbook book)\n  {\n    throw new RuntimeException(\"Coding Error: This method should never be called. This ptg should be converted\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "clone", "code": "  public Object clone() {\n    throw new RuntimeException(\"Coding Error: This method should never be called. This ptg should be converted\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AreaNVPtg", "code": "  protected AreaNVPtg() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AreaNVPtg", "code": "  public AreaNVPtg(RecordInputStream in)\n  {\n    super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.2-1904", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/management/InstrumentationLifecycleStrategy.java", "language": "java", "name": "org.apache.camel.management.InstrumentationLifecycleStrategy", "code": "public class InstrumentationLifecycleStrategy implements LifecycleStrategy {\n    private static final transient Log LOG = LogFactory.getLog(InstrumentationProcessor.class);\n\n    private InstrumentationAgent agent;\n    private CamelNamingStrategy namingStrategy;\n\n    public InstrumentationLifecycleStrategy(InstrumentationAgent agent) {\n\t\tthis.agent = agent;\n        setNamingStrategy(agent.getNamingStrategy());\n    }\n\t\n\tpublic void onContextCreate(CamelContext context) {\n\t\tif (context instanceof DefaultCamelContext) {\n\t\t\ttry {\t\n\t\t\t\tDefaultCamelContext dc = (DefaultCamelContext)context;\n\t\t\t\tManagedService ms = new ManagedService(dc);\n                agent.register(ms, getNamingStrategy().getObjectName(dc));\n\t\t\t}\n\t\t\tcatch(JMException e) {\n\t\t\t\tLOG.warn(\"Could not register CamelContext MBean\", e);\n\t\t\t}\n\t\t}\n\t}\n\t\n\tpublic void onEndpointAdd(Endpoint endpoint) {\n\t\ttry {\n\t\t\tManagedEndpoint me = new ManagedEndpoint(endpoint);\n\t\t\tagent.register(me, getNamingStrategy().getObjectName(me));\n\t\t}\n\t\tcatch(JMException e) {\n\t\t\tLOG.warn(\"Could not register Endpoint MBean\", e);\n\t\t}\n\t}\n\n\tpublic void onRoutesAdd(Collection<Route> routes) {\n\t\tfor (Route route: routes) {\n\t\t\ttry {\n\t\t\t\tManagedRoute mr = new ManagedRoute(route);\n\t\t\t\tagent.register(mr, getNamingStrategy().getObjectName(mr));\n\t\t\t}\n\t\t\tcatch(JMException e) {\n\t\t\t\tLOG.warn(\"Could not register Route MBean\", e);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic void onServiceAdd(CamelContext context, Service service) {\n\t\tif (service instanceof ServiceSupport) {\n\t\t\ttry {\n\t\t\t\tManagedService ms = new ManagedService((ServiceSupport)service);\n\t\t\t\tagent.register(ms, getNamingStrategy().getObjectName(context, ms));\n\t\t\t}\n\t\t\tcatch(JMException e) {\n\t\t\t\tLOG.warn(\"Could not register Service MBean\", e);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic void beforeStartRouteType(CamelContext context, RouteType routeType) {\n\t\tPerformanceCounter mc = new PerformanceCounter();\n\t\trouteType.intercept(new InstrumentationProcessor(mc));\n\n\t\t/*\n\t\t *  Merge performance counter with the MBean it represents instead \n\t\t *  of registering a new MBean\n\t\ttry {\n\t\t\tagent.register(mc, getNamingStrategy().getObjectName(context, mc));\n\t\t}\n\t\tcatch(JMException e) {\n\t\t\tLOG.warn(\"Could not register Counter MBean\", e);\n\t\t}\n\t\t*/\n\t}\n\n    public CamelNamingStrategy getNamingStrategy() {\n        return namingStrategy;\n    }\n\n    public void setNamingStrategy(CamelNamingStrategy namingStrategy) {\n        this.namingStrategy = namingStrategy;", "functions": [{"function_name": "onContextCreate", "code": "\tpublic void onContextCreate(CamelContext context) {\n\t\tif (context instanceof DefaultCamelContext) {\n\t\t\ttry {\t\n\t\t\t\tDefaultCamelContext dc = (DefaultCamelContext)context;\n\t\t\t\tManagedService ms = new ManagedService(dc);\n                agent.register(ms, getNamingStrategy().getObjectName(dc));\n\t\t\t}\n\t\t\tcatch(JMException e) {\n\t\t\t\tLOG.warn(\"Could not register CamelContext MBean\", e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "TRY", "CATCH", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [4, 6], [4, 7], [4, 8], [5, 9], [8, 10], [6, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 4], [7, 4], [8, 4], [9, 5], [10, 8], [11, 6], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "onEndpointAdd", "code": "\tpublic void onEndpointAdd(Endpoint endpoint) {\n\t\ttry {\n\t\t\tManagedEndpoint me = new ManagedEndpoint(endpoint);\n\t\t\tagent.register(me, getNamingStrategy().getObjectName(me));\n\t\t}\n\t\tcatch(JMException e) {\n\t\t\tLOG.warn(\"Could not register Endpoint MBean\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [4, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 4], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "onRoutesAdd", "code": "\tpublic void onRoutesAdd(Collection<Route> routes) {\n\t\tfor (Route route: routes) {\n\t\t\ttry {\n\t\t\t\tManagedRoute mr = new ManagedRoute(route);\n\t\t\t\tagent.register(mr, getNamingStrategy().getObjectName(mr));\n\t\t\t}\n\t\t\tcatch(JMException e) {\n\t\t\t\tLOG.warn(\"Could not register Route MBean\", e);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "TRY", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [4, 7], [6, 8], [5, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 4], [8, 6], [9, 5], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "onServiceAdd", "code": "\tpublic void onServiceAdd(CamelContext context, Service service) {\n\t\tif (service instanceof ServiceSupport) {\n\t\t\ttry {\n\t\t\t\tManagedService ms = new ManagedService((ServiceSupport)service);\n\t\t\t\tagent.register(ms, getNamingStrategy().getObjectName(context, ms));\n\t\t\t}\n\t\t\tcatch(JMException e) {\n\t\t\t\tLOG.warn(\"Could not register Service MBean\", e);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "TRY", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [5, 7], [5, 8], [6, 9], [8, 10], [7, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 5], [8, 5], [9, 6], [10, 8], [11, 7], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "beforeStartRouteType", "code": "\tpublic void beforeStartRouteType(CamelContext context, RouteType routeType) {\n\t\tPerformanceCounter mc = new PerformanceCounter();\n\t\trouteType.intercept(new InstrumentationProcessor(mc));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNamingStrategy", "code": "    public CamelNamingStrategy getNamingStrategy() {\n        return namingStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamingStrategy", "code": "    public void setNamingStrategy(CamelNamingStrategy namingStrategy) {\n        this.namingStrategy = namingStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "InstrumentationLifecycleStrategy", "code": "    public InstrumentationLifecycleStrategy(InstrumentationAgent agent) {\n\t\tthis.agent = agent;\n        setNamingStrategy(agent.getNamingStrategy());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ivy-2.0-3433", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/util/extendable/ExtendableItem.java", "language": "java", "name": "org.apache.ivy.util.extendable.ExtendableItem", "code": "public interface ExtendableItem {\n    /**\n     * Gets the value of an attribute Can be used to access the value of a standard attribute (like\n     * organisation, revision) or of an extra attribute.\n     * \n     * @param attName\n     *            the name of the attribute to get\n     * @return the value of the attribute, null if the attribute doesn't exist\n     */\n    String getAttribute(String attName);\n\n\n    /**\n     * Gets the value of an extra attribute Can be used only to access the value of an extra\n     * attribute, not a standard one (like organisation, revision)\n     * \n     * @param attName\n     *            the name of the extra attribute to get. This name can be either qualified or\n     *            unqualified.\n     * @return the value of the attribute, null if the attribute doesn't exist\n     */\n    String getExtraAttribute(String attName);\n\n    /**\n     * Returns a Map of all attributes of this extendable item, including standard and extra ones.\n     * The Map keys are attribute names as Strings, and values are corresponding attribute values\n     * (as String too). Extra attributes are included in unqualified form only.\n     * \n     * @return A Map instance containing all the attributes and their values.\n     */\n    Map getAttributes();\n\n    \n    /**\n     * Returns a Map of all extra attributes of this extendable item. The Map keys are\n     * <b>unqualified</b> attribute names as Strings, and values are corresponding attribute values\n     * (as String too)\n     * \n     * @return A Map instance containing all the extra attributes and their values.\n     * @see #getQualifiedExtraAttributes()\n     */\n    Map getExtraAttributes();\n\n    /**\n     * Returns a Map of all extra attributes of this extendable item.\n     * <p>\n     * The Map keys are <b>qualified</b> attribute names as Strings, and values are corresponding\n     * attribute values (as String too).\n     * </p>\n     * <p>\n     * An attribute name is qualified with a namespace exactly the same way xml attributes are\n     * qualified. Thus qualified attribute names are of the form <code>prefix:name</code>\n     * </p>\n     * \n     * @return A Map instance containing all the extra attributes and their values.\n     * @see #getExtraAttributes()\n     */\n    Map getQualifiedExtraAttributes();", "functions": [{"function_name": "getAttribute", "code": "    String getAttribute(String attName);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExtraAttribute", "code": "    String getExtraAttribute(String attName);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAttributes", "code": "    Map getAttributes();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getExtraAttributes", "code": "    Map getExtraAttributes();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getQualifiedExtraAttributes", "code": "    Map getQualifiedExtraAttributes();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.1-3979", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/KeyEventWorkaround.java", "language": "java", "name": "org.gjt.sp.jedit.gui.KeyEventWorkaround", "code": "public class KeyEventWorkaround\n{\n\t//{{{ processKeyEvent() method\n\tpublic static KeyEvent processKeyEvent(KeyEvent evt)\n\t{\n\t\tint keyCode = evt.getKeyCode();\n\t\tchar ch = evt.getKeyChar();\n\n\t\tswitch(evt.getID())\n\t\t{\n\t\t//{{{ KEY_PRESSED...\n\t\tcase KeyEvent.KEY_PRESSED:\n\t\t\t// get rid of keys we never need to handle\n\t\t\tswitch(keyCode)\n\t\t\t{\n\t\t\tcase KeyEvent.VK_ALT:\n\t\t\tcase KeyEvent.VK_ALT_GRAPH:\n\t\t\tcase KeyEvent.VK_CONTROL:\n\t\t\tcase KeyEvent.VK_SHIFT:\n\t\t\tcase KeyEvent.VK_META:\n\t\t\tcase KeyEvent.VK_DEAD_GRAVE:\n\t\t\tcase KeyEvent.VK_DEAD_ACUTE:\n\t\t\tcase KeyEvent.VK_DEAD_CIRCUMFLEX:\n\t\t\tcase KeyEvent.VK_DEAD_TILDE:\n\t\t\tcase KeyEvent.VK_DEAD_MACRON:\n\t\t\tcase KeyEvent.VK_DEAD_BREVE:\n\t\t\tcase KeyEvent.VK_DEAD_ABOVEDOT:\n\t\t\tcase KeyEvent.VK_DEAD_DIAERESIS:\n\t\t\tcase KeyEvent.VK_DEAD_ABOVERING:\n\t\t\tcase KeyEvent.VK_DEAD_DOUBLEACUTE:\n\t\t\tcase KeyEvent.VK_DEAD_CARON:\n\t\t\tcase KeyEvent.VK_DEAD_CEDILLA:\n\t\t\tcase KeyEvent.VK_DEAD_OGONEK:\n\t\t\tcase KeyEvent.VK_DEAD_IOTA:\n\t\t\tcase KeyEvent.VK_DEAD_VOICED_SOUND:\n\t\t\tcase KeyEvent.VK_DEAD_SEMIVOICED_SOUND:\n\t\t\tcase '\\0':\n\t\t\t\treturn null;\n\t\t\tdefault:\n\t\t\t\tswitch(keyCode)\n\t\t\t\t{\n\t\t\t\t\tcase KeyEvent.VK_NUMPAD0:   case KeyEvent.VK_NUMPAD1:\n\t\t\t\t\tcase KeyEvent.VK_NUMPAD2:   case KeyEvent.VK_NUMPAD3:\n\t\t\t\t\tcase KeyEvent.VK_NUMPAD4:   case KeyEvent.VK_NUMPAD5:\n\t\t\t\t\tcase KeyEvent.VK_NUMPAD6:   case KeyEvent.VK_NUMPAD7:\n\t\t\t\t\tcase KeyEvent.VK_NUMPAD8:   case KeyEvent.VK_NUMPAD9:\n\t\t\t\t\tcase KeyEvent.VK_MULTIPLY:  case KeyEvent.VK_ADD:\n\t\t\t\t\t/* case KeyEvent.VK_SEPARATOR: */ case KeyEvent.VK_SUBTRACT:\n\t\t\t\t\tcase KeyEvent.VK_DECIMAL:   case KeyEvent.VK_DIVIDE:\n\t\t\t\t\t\tlast = LAST_NUMKEYPAD;\n\t\t\t\t\t\tlastKeyTime = System.currentTimeMillis();\n\t\t\t\t\t\treturn evt;\n\t\t\t\t}\n\n\t\t\t\tif(!OperatingSystem.isMacOS())\n\t\t\t\t\thandleBrokenKeys(evt,keyCode);\n\t\t\t\telse\n\t\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn evt;\n\t\t//}}}\n\t\t//{{{ KEY_TYPED...\n\t\tcase KeyEvent.KEY_TYPED:\n\t\t\t// need to let \\b through so that backspace will work\n\t\t\t// in HistoryTextFields\n\t\t\tif((ch < 0x20 || ch == 0x7f || ch == 0xff) && ch != '\\b')\n\t\t\t\treturn null;\n\n\t\t\t// \"Alt\" is the option key on MacOS, and it can generate\n\t\t\t// user input\n\t\t\tif(OperatingSystem.isMacOS())\n\t\t\t{\n\t\t\t\tif(evt.isControlDown() || evt.isMetaDown())\n\t\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif((evt.isControlDown() ^ evt.isAltDown())\n\t\t\t\t\t|| evt.isMetaDown())\n\t\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// On JDK 1.4 with Windows, some Alt-key sequences send\n\t\t\t// bullshit in a KEY_TYPED afterwards. We filter it out\n\t\t\t// here\n\t\t\tif(last == LAST_MOD)\n\t\t\t{\n\t\t\t\tswitch(ch)\n\t\t\t\t{\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'c':\n\t\t\t\tcase '!':\n\t\t\t\tcase ',':\n\t\t\t\tcase '?':\n\t\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// if the last key was a numeric keypad key\n\t\t\t// and NumLock is off, filter it out\n\t\t\tif(last == LAST_NUMKEYPAD && System.currentTimeMillis()\n\t\t\t\t- lastKeyTime < 750)\n\t\t\t{\n\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\tif((ch >= '0' && ch <= '9') || ch == '.'\n\t\t\t\t\t|| ch == '/' || ch == '*'\n\t\t\t\t\t|| ch == '-' || ch == '+')\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if the last key was a broken key, filter\n\t\t\t// out all except 'a'-'z' that occur 750 ms after.\n\t\t\telse if(last == LAST_BROKEN && System.currentTimeMillis()\n\t\t\t\t- lastKeyTime < 750 && !Character.isLetter(ch))\n\t\t\t{\n\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t// otherwise, if it was ALT, filter out everything.\n\t\t\telse if(last == LAST_ALT && System.currentTimeMillis()\n\t\t\t\t- lastKeyTime < 750)\n\t\t\t{\n\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\treturn evt;\n\t\t//}}}\n\t\t//{{{ KEY_RELEASED...\n\t\tcase KeyEvent.KEY_RELEASED:\n\t\t\tif(keyCode == KeyEvent.VK_ALT)\n\t\t\t{\n\t\t\t\t// bad workaround... on Windows JDK 1.4, some\n\t\t\t\t// Alt-sequences generate random crap afterwards\n\t\t\t\tif(OperatingSystem.isWindows()\n\t\t\t\t\t&& OperatingSystem.hasJava14())\n\t\t\t\t\tlast = LAST_MOD;\n\t\t\t}\n\t\t\treturn evt;\n\t\t//}}}\n\t\tdefault:\n\t\t\treturn evt;\n\t\t}\n\t} //}}}\n\n\t//{{{ numericKeypadKey() method\n\t/**\n\t * A workaround for non-working NumLock status in some Java versions.\n\t * @since jEdit 4.0pre8\n\t */\n\tpublic static void numericKeypadKey()\n\t{\n\t\tlast = LAST_NOTHING;\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Static variables\n\tprivate static long lastKeyTime;\n\n\tprivate static int last;\n\tprivate static final int LAST_NOTHING = 0;\n\tprivate static final int LAST_ALT = 1;\n\tprivate static final int LAST_BROKEN = 2;\n\tprivate static final int LAST_NUMKEYPAD = 3;\n\tprivate static final int LAST_MOD = 4;\n\t//}}}\n\n\t//{{{ handleBrokenKeys() method\n\tprivate static void handleBrokenKeys(KeyEvent evt, int keyCode)\n\t{\n\t\tif(evt.isAltDown() && evt.isControlDown()\n\t\t\t&& !evt.isMetaDown())\n\t\t{\n\t\t\tlast = LAST_NOTHING;\n\t\t\treturn;\n\t\t}\n\t\telse if(!(evt.isAltDown() || evt.isControlDown() || evt.isMetaDown()))\n\t\t{\n\t\t\tlast = LAST_NOTHING;\n\t\t\treturn;\n\t\t}\n\n\t\tif(evt.isAltDown())\n\t\t\tlast = LAST_ALT;\n\n\t\tswitch(keyCode)\n\t\t{\n\t\t\tcase KeyEvent.VK_LEFT:      case KeyEvent.VK_RIGHT:\n\t\t\tcase KeyEvent.VK_UP:        case KeyEvent.VK_DOWN:\n\t\t\tcase KeyEvent.VK_DELETE:    case KeyEvent.VK_BACK_SPACE:\n\t\t\tcase KeyEvent.VK_TAB:       case KeyEvent.VK_ENTER:\n\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(keyCode < KeyEvent.VK_A || keyCode > KeyEvent.VK_Z)\n\t\t\t\t\tlast = LAST_BROKEN;\n\t\t\t\telse\n\t\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\tbreak;\n\t\t}\n\n\t\tlastKeyTime = System.currentTimeMillis();", "functions": [{"function_name": "processKeyEvent", "code": "\tpublic static KeyEvent processKeyEvent(KeyEvent evt)\n\t{\n\t\tint keyCode = evt.getKeyCode();\n\t\tchar ch = evt.getKeyChar();\n\n\t\tswitch(evt.getID())\n\t\t{\n\t\t//{{{ KEY_PRESSED...\n\t\tcase KeyEvent.KEY_PRESSED:\n\t\t\t// get rid of keys we never need to handle\n\t\t\tswitch(keyCode)\n\t\t\t{\n\t\t\tcase KeyEvent.VK_ALT:\n\t\t\tcase KeyEvent.VK_ALT_GRAPH:\n\t\t\tcase KeyEvent.VK_CONTROL:\n\t\t\tcase KeyEvent.VK_SHIFT:\n\t\t\tcase KeyEvent.VK_META:\n\t\t\tcase KeyEvent.VK_DEAD_GRAVE:\n\t\t\tcase KeyEvent.VK_DEAD_ACUTE:\n\t\t\tcase KeyEvent.VK_DEAD_CIRCUMFLEX:\n\t\t\tcase KeyEvent.VK_DEAD_TILDE:\n\t\t\tcase KeyEvent.VK_DEAD_MACRON:\n\t\t\tcase KeyEvent.VK_DEAD_BREVE:\n\t\t\tcase KeyEvent.VK_DEAD_ABOVEDOT:\n\t\t\tcase KeyEvent.VK_DEAD_DIAERESIS:\n\t\t\tcase KeyEvent.VK_DEAD_ABOVERING:\n\t\t\tcase KeyEvent.VK_DEAD_DOUBLEACUTE:\n\t\t\tcase KeyEvent.VK_DEAD_CARON:\n\t\t\tcase KeyEvent.VK_DEAD_CEDILLA:\n\t\t\tcase KeyEvent.VK_DEAD_OGONEK:\n\t\t\tcase KeyEvent.VK_DEAD_IOTA:\n\t\t\tcase KeyEvent.VK_DEAD_VOICED_SOUND:\n\t\t\tcase KeyEvent.VK_DEAD_SEMIVOICED_SOUND:\n\t\t\tcase '\\0':\n\t\t\t\treturn null;\n\t\t\tdefault:\n\t\t\t\tswitch(keyCode)\n\t\t\t\t{\n\t\t\t\t\tcase KeyEvent.VK_NUMPAD0:   case KeyEvent.VK_NUMPAD1:\n\t\t\t\t\tcase KeyEvent.VK_NUMPAD2:   case KeyEvent.VK_NUMPAD3:\n\t\t\t\t\tcase KeyEvent.VK_NUMPAD4:   case KeyEvent.VK_NUMPAD5:\n\t\t\t\t\tcase KeyEvent.VK_NUMPAD6:   case KeyEvent.VK_NUMPAD7:\n\t\t\t\t\tcase KeyEvent.VK_NUMPAD8:   case KeyEvent.VK_NUMPAD9:\n\t\t\t\t\tcase KeyEvent.VK_MULTIPLY:  case KeyEvent.VK_ADD:\n\t\t\t\t\t/* case KeyEvent.VK_SEPARATOR: */ case KeyEvent.VK_SUBTRACT:\n\t\t\t\t\tcase KeyEvent.VK_DECIMAL:   case KeyEvent.VK_DIVIDE:\n\t\t\t\t\t\tlast = LAST_NUMKEYPAD;\n\t\t\t\t\t\tlastKeyTime = System.currentTimeMillis();\n\t\t\t\t\t\treturn evt;\n\t\t\t\t}\n\n\t\t\t\tif(!OperatingSystem.isMacOS())\n\t\t\t\t\thandleBrokenKeys(evt,keyCode);\n\t\t\t\telse\n\t\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn evt;\n\t\t//}}}\n\t\t//{{{ KEY_TYPED...\n\t\tcase KeyEvent.KEY_TYPED:\n\t\t\t// need to let \\b through so that backspace will work\n\t\t\t// in HistoryTextFields\n\t\t\tif((ch < 0x20 || ch == 0x7f || ch == 0xff) && ch != '\\b')\n\t\t\t\treturn null;\n\n\t\t\t// \"Alt\" is the option key on MacOS, and it can generate\n\t\t\t// user input\n\t\t\tif(OperatingSystem.isMacOS())\n\t\t\t{\n\t\t\t\tif(evt.isControlDown() || evt.isMetaDown())\n\t\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif((evt.isControlDown() ^ evt.isAltDown())\n\t\t\t\t\t|| evt.isMetaDown())\n\t\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// On JDK 1.4 with Windows, some Alt-key sequences send\n\t\t\t// bullshit in a KEY_TYPED afterwards. We filter it out\n\t\t\t// here\n\t\t\tif(last == LAST_MOD)\n\t\t\t{\n\t\t\t\tswitch(ch)\n\t\t\t\t{\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'c':\n\t\t\t\tcase '!':\n\t\t\t\tcase ',':\n\t\t\t\tcase '?':\n\t\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// if the last key was a numeric keypad key\n\t\t\t// and NumLock is off, filter it out\n\t\t\tif(last == LAST_NUMKEYPAD && System.currentTimeMillis()\n\t\t\t\t- lastKeyTime < 750)\n\t\t\t{\n\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\tif((ch >= '0' && ch <= '9') || ch == '.'\n\t\t\t\t\t|| ch == '/' || ch == '*'\n\t\t\t\t\t|| ch == '-' || ch == '+')\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if the last key was a broken key, filter\n\t\t\t// out all except 'a'-'z' that occur 750 ms after.\n\t\t\telse if(last == LAST_BROKEN && System.currentTimeMillis()\n\t\t\t\t- lastKeyTime < 750 && !Character.isLetter(ch))\n\t\t\t{\n\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t// otherwise, if it was ALT, filter out everything.\n\t\t\telse if(last == LAST_ALT && System.currentTimeMillis()\n\t\t\t\t- lastKeyTime < 750)\n\t\t\t{\n\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\treturn evt;\n\t\t//}}}\n\t\t//{{{ KEY_RELEASED...\n\t\tcase KeyEvent.KEY_RELEASED:\n\t\t\tif(keyCode == KeyEvent.VK_ALT)\n\t\t\t{\n\t\t\t\t// bad workaround... on Windows JDK 1.4, some\n\t\t\t\t// Alt-sequences generate random crap afterwards\n\t\t\t\tif(OperatingSystem.isWindows()\n\t\t\t\t\t&& OperatingSystem.hasJava14())\n\t\t\t\t\tlast = LAST_MOD;\n\t\t\t}\n\t\t\treturn evt;\n\t\t//}}}\n\t\tdefault:\n\t\t\treturn evt;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "RETURN", "RETURN", "IF", "RETURN", "IF", "IF", "IF", "IF", "RETURN", "SWITCH", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "IF", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "SWITCH", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BREAK_CONTINUE", "IF", "SWITCH", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [2, 16], [3, 17], [8, 18], [10, 19], [10, 20], [11, 21], [12, 22], [13, 23], [13, 24], [8, 25], [19, 26], [19, 27], [10, 28], [20, 29], [20, 30], [11, 31], [12, 32], [12, 33], [23, 34], [24, 35], [24, 36], [15, 37], [15, 38], [15, 39], [15, 40], [15, 41], [25, 42], [26, 43], [19, 44], [27, 45], [27, 46], [28, 47], [10, 48], [29, 49], [29, 50], [32, 51], [32, 52], [33, 53], [33, 54], [35, 55], [36, 56], [36, 57], [38, 58], [40, 59], [25, 60], [42, 61], [42, 62], [26, 63], [43, 64], [43, 65], [44, 66], [19, 67], [46, 68], [46, 69], [28, 70], [47, 71], [47, 72], [50, 73], [31, 74], [31, 75], [31, 76], [31, 77], [31, 78], [31, 79], [31, 80], [31, 81], [51, 82], [52, 83], [52, 84], [53, 85], [54, 86], [54, 87], [56, 88], [57, 89], [57, 90], [38, 91], [38, 92], [39, 93], [63, 94], [26, 95], [64, 96], [64, 97], [68, 98], [68, 99], [70, 100], [71, 101], [72, 102], [72, 103], [74, 104], [31, 105], [84, 106], [84, 107], [89, 108], [90, 109], [39, 110], [39, 111], [97, 112], [99, 113], [102, 114], [103, 115], [103, 116], [110, 117], [115, 118], [116, 119], [116, 120], [119, 121], [120, 122], [120, 123], [122, 124], [123, 125], [123, 126], [125, 127], [126, 128], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 2], [17, 3], [18, 8], [19, 10], [20, 10], [21, 11], [22, 12], [23, 13], [24, 13], [25, 8], [26, 19], [27, 19], [28, 10], [29, 20], [30, 20], [31, 11], [32, 12], [33, 12], [34, 23], [35, 24], [36, 24], [37, 15], [38, 15], [39, 15], [40, 15], [41, 15], [42, 25], [43, 26], [44, 19], [45, 27], [46, 27], [47, 28], [48, 10], [49, 29], [50, 29], [51, 32], [52, 32], [53, 33], [54, 33], [55, 35], [56, 36], [57, 36], [58, 38], [59, 40], [60, 25], [61, 42], [62, 42], [63, 26], [64, 43], [65, 43], [66, 44], [67, 19], [68, 46], [69, 46], [70, 28], [71, 47], [72, 47], [73, 50], [74, 31], [75, 31], [76, 31], [77, 31], [78, 31], [79, 31], [80, 31], [81, 31], [82, 51], [83, 52], [84, 52], [85, 53], [86, 54], [87, 54], [88, 56], [89, 57], [90, 57], [91, 38], [92, 38], [93, 39], [94, 63], [95, 26], [96, 64], [97, 64], [98, 68], [99, 68], [100, 70], [101, 71], [102, 72], [103, 72], [104, 74], [105, 31], [106, 84], [107, 84], [108, 89], [109, 90], [110, 39], [111, 39], [112, 97], [113, 99], [114, 102], [115, 103], [116, 103], [117, 110], [118, 115], [119, 116], [120, 116], [121, 119], [122, 120], [123, 120], [124, 122], [125, 123], [126, 123], [127, 125], [128, 126], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128]]}, {"function_name": "numericKeypadKey", "code": "\tpublic static void numericKeypadKey()\n\t{\n\t\tlast = LAST_NOTHING;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "handleBrokenKeys", "code": "\tprivate static void handleBrokenKeys(KeyEvent evt, int keyCode)\n\t{\n\t\tif(evt.isAltDown() && evt.isControlDown()\n\t\t\t&& !evt.isMetaDown())\n\t\t{\n\t\t\tlast = LAST_NOTHING;\n\t\t\treturn;\n\t\t}\n\t\telse if(!(evt.isAltDown() || evt.isControlDown() || evt.isMetaDown()))\n\t\t{\n\t\t\tlast = LAST_NOTHING;\n\t\t\treturn;\n\t\t}\n\n\t\tif(evt.isAltDown())\n\t\t\tlast = LAST_ALT;\n\n\t\tswitch(keyCode)\n\t\t{\n\t\t\tcase KeyEvent.VK_LEFT:      case KeyEvent.VK_RIGHT:\n\t\t\tcase KeyEvent.VK_UP:        case KeyEvent.VK_DOWN:\n\t\t\tcase KeyEvent.VK_DELETE:    case KeyEvent.VK_BACK_SPACE:\n\t\t\tcase KeyEvent.VK_TAB:       case KeyEvent.VK_ENTER:\n\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(keyCode < KeyEvent.VK_A || keyCode > KeyEvent.VK_Z)\n\t\t\t\t\tlast = LAST_BROKEN;\n\t\t\t\telse\n\t\t\t\t\tlast = LAST_NOTHING;\n\t\t\t\tbreak;\n\t\t}\n\n\t\tlastKeyTime = System.currentTimeMillis();", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "IF", "PARAM", "PARAM", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "ASSIGN", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [3, 9], [6, 10], [1, 11], [1, 12], [1, 13], [2, 14], [8, 15], [3, 16], [9, 17], [9, 18], [12, 19], [1, 20], [8, 21], [15, 22], [15, 23], [3, 24], [18, 25], [18, 26], [12, 27], [12, 28], [19, 29], [19, 30], [8, 31], [23, 32], [23, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 3], [10, 6], [11, 1], [12, 1], [13, 1], [14, 2], [15, 8], [16, 3], [17, 9], [18, 9], [19, 12], [20, 1], [21, 8], [22, 15], [23, 15], [24, 3], [25, 18], [26, 18], [27, 12], [28, 12], [29, 19], [30, 19], [31, 8], [32, 23], [33, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}], "label": 1}
{"sample_id": "jedit-4.3-4793", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/textarea/TriangleFoldPainter.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.TriangleFoldPainter", "code": "public class TriangleFoldPainter implements FoldPainter {\n\n\t// {{{ paintFoldStart()\n\tpublic void paintFoldStart(Gutter gutter, Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, boolean nextLineVisible, int y, int lineHeight,\n\t\t\tJEditBuffer buffer)\n\t{\n\t\tint _y = y + lineHeight / 2;\n\t\tgfx.setColor(gutter.getFoldColor());\n\t\tif (nextLineVisible)\n\t\t{\n\t\t\tgfx.drawLine(1,_y - 3,10,_y - 3);\n\t\t\tgfx.drawLine(2,_y - 2,9,_y - 2);\n\t\t\tgfx.drawLine(3,_y - 1,8,_y - 1);\n\t\t\tgfx.drawLine(4,_y,7,_y);\n\t\t\tgfx.drawLine(5,_y + 1,6,_y + 1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgfx.drawLine(4,_y - 5,4,_y + 4);\n\t\t\tgfx.drawLine(5,_y - 4,5,_y + 3);\n\t\t\tgfx.drawLine(6,_y - 3,6,_y + 2);\n\t\t\tgfx.drawLine(7,_y - 2,7,_y + 1);\n\t\t\tgfx.drawLine(8,_y - 1,8,_y);\n\t\t}\n\t} // }}}\n\n\t// {{{ paintFoldEnd()\n\tpublic void paintFoldEnd(Gutter gutter, Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, int y, int lineHeight, JEditBuffer buffer)\n\t{\n\t\tgfx.setColor(gutter.getFoldColor());\n\t\tint _y = y + lineHeight / 2;\n\t\tgfx.drawLine(4,_y,4,_y + 3);\n\t\tgfx.drawLine(4,_y + 3,7,_y + 3);\n\t} // }}}\n\n\t// {{{ paintFoldMiddle()\n\tpublic void paintFoldMiddle(Gutter gutter, Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, int y, int lineHeight, JEditBuffer buffer)", "functions": [{"function_name": "paintFoldStart", "code": "\tpublic void paintFoldStart(Gutter gutter, Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, boolean nextLineVisible, int y, int lineHeight,\n\t\t\tJEditBuffer buffer)\n\t{\n\t\tint _y = y + lineHeight / 2;\n\t\tgfx.setColor(gutter.getFoldColor());\n\t\tif (nextLineVisible)\n\t\t{\n\t\t\tgfx.drawLine(1,_y - 3,10,_y - 3);\n\t\t\tgfx.drawLine(2,_y - 2,9,_y - 2);\n\t\t\tgfx.drawLine(3,_y - 1,8,_y - 1);\n\t\t\tgfx.drawLine(4,_y,7,_y);\n\t\t\tgfx.drawLine(5,_y + 1,6,_y + 1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgfx.drawLine(4,_y - 5,4,_y + 4);\n\t\t\tgfx.drawLine(5,_y - 4,5,_y + 3);\n\t\t\tgfx.drawLine(6,_y - 3,6,_y + 2);\n\t\t\tgfx.drawLine(7,_y - 2,7,_y + 1);\n\t\t\tgfx.drawLine(8,_y - 1,8,_y);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [11, 12], [2, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [13, 24], [14, 25], [14, 26], [14, 27], [15, 28], [15, 29], [15, 30], [15, 31], [16, 32], [16, 33], [16, 34], [16, 35], [17, 36], [17, 37], [17, 38], [17, 39], [18, 40], [18, 41], [18, 42], [18, 43], [19, 44], [19, 45], [19, 46], [19, 47], [20, 48], [20, 49], [21, 50], [21, 51], [21, 52], [21, 53], [22, 54], [22, 55], [22, 56], [22, 57], [23, 58], [23, 59], [23, 60], [23, 61], [24, 62], [26, 63], [28, 64], [30, 65], [32, 66], [34, 67], [36, 68], [38, 69], [40, 70], [42, 71], [44, 72], [46, 73], [50, 74], [52, 75], [54, 76], [56, 77], [58, 78], [60, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 11], [13, 2], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 13], [25, 14], [26, 14], [27, 14], [28, 15], [29, 15], [30, 15], [31, 15], [32, 16], [33, 16], [34, 16], [35, 16], [36, 17], [37, 17], [38, 17], [39, 17], [40, 18], [41, 18], [42, 18], [43, 18], [44, 19], [45, 19], [46, 19], [47, 19], [48, 20], [49, 20], [50, 21], [51, 21], [52, 21], [53, 21], [54, 22], [55, 22], [56, 22], [57, 22], [58, 23], [59, 23], [60, 23], [61, 23], [62, 24], [63, 26], [64, 28], [65, 30], [66, 32], [67, 34], [68, 36], [69, 38], [70, 40], [71, 42], [72, 44], [73, 46], [74, 50], [75, 52], [76, 54], [77, 56], [78, 58], [79, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "paintFoldEnd", "code": "\tpublic void paintFoldEnd(Gutter gutter, Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, int y, int lineHeight, JEditBuffer buffer)\n\t{\n\t\tgfx.setColor(gutter.getFoldColor());\n\t\tint _y = y + lineHeight / 2;\n\t\tgfx.drawLine(4,_y,4,_y + 3);\n\t\tgfx.drawLine(4,_y + 3,7,_y + 3);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [9, 12], [9, 13], [9, 14], [9, 15], [10, 16], [10, 17], [10, 18], [1, 19], [11, 20], [12, 21], [14, 22], [16, 23], [19, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 9], [13, 9], [14, 9], [15, 9], [16, 10], [17, 10], [18, 10], [19, 1], [20, 11], [21, 12], [22, 14], [23, 16], [24, 19], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "paintFoldMiddle", "code": "\tpublic void paintFoldMiddle(Gutter gutter, Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, int y, int lineHeight, JEditBuffer buffer)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "jedit-4.3-4736", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/GUIUtilities.java", "language": "java", "name": "org.gjt.sp.jedit.GUIUtilities", "code": "public class GUIUtilities\n{\n\t//{{{ Some predefined icons\n\t/**\n\t * @deprecated Use <code>GUIUtilities.loadIcon(\"new.gif\");</code>\n\t * instead.\n\t */\n\t@Deprecated\n\tpublic static Icon NEW_BUFFER_ICON;\n\n\t/**\n\t * @deprecated Use <code>GUIUtilities.loadIcon(\"dirty.gif\");</code>\n\t * instead.\n\t */\n\t@Deprecated\n\tpublic static Icon DIRTY_BUFFER_ICON;\n\n\t/**\n\t * @deprecated Use <code>GUIUtilities.loadIcon(\"readonly.gif\");</code>\n\t * instead.\n\t */\n\t@Deprecated\n\tpublic static Icon READ_ONLY_BUFFER_ICON;\n\n\t/**\n\t * @deprecated Use <code>GUIUtilities.loadIcon(\"normal.gif\");</code>\n\t * instead.\n\t */\n\t@Deprecated\n\tpublic static Icon NORMAL_BUFFER_ICON;\n\n\t/**\n\t * @deprecated Use <code>GUIUtilities.loadIcon(\"jedit-icon.gif\");</code>\n\t * instead.\n\t */\n\t@Deprecated\n\tpublic static Icon WINDOW_ICON;\n\t//}}}\n\n\t//{{{ Icon methods\n\n\t//{{{ setIconPath() method\n\t/**\n\t * Sets the path where jEdit looks for icons.\n\t * @since jEdit 4.2pre5\n\t */\n\tpublic static void setIconPath(String iconPath)\n\t{\n\t\tGUIUtilities.iconPath = iconPath;\n\t\tif(icons != null)\n\t\t\ticons.clear();\n\t} //}}}\n\n\t//{{{ loadIcon() method\n\t/**\n\t * Loads an icon.\n\t * @param iconName The icon name\n\t * @since jEdit 2.6pre7\n\t */\n\tpublic static Icon loadIcon(String iconName)\n\t{\n\t\tif(iconName == null)\n\t\t\treturn null;\n\n\t\t// * Enable old icon naming scheme support\n\t\tif(deprecatedIcons != null && deprecatedIcons.containsKey(iconName))\n\t\t\ticonName = deprecatedIcons.get(iconName);\n\n\t\tif(icons == null)\n\t\t\ticons = new Hashtable<String, Icon>();\n\n\t\t// check if there is a cached version first\n\t\tIcon icon = icons.get(iconName);\n\t\tif(icon != null)\n\t\t\treturn icon;\n\n\t\tURL url;\n\n\t\ttry\n\t\t{\n\t\t\t// get the icon\n\t\t\tif(MiscUtilities.isURL(iconName))\n\t\t\t\turl = new URL(iconName);\n\t\t\telse\n\t\t\t\turl = new URL(iconPath + iconName);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\turl = new URL(defaultIconPath + iconName);\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,GUIUtilities.class,\n\t\t\t\t\t\"Icon not found: \" + iconName);\n\t\t\t\tLog.log(Log.ERROR,GUIUtilities.class,ex);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\ticon = new ImageIcon(url);\n\n\t\ticons.put(iconName,icon);\n\t\treturn icon;\n\t} //}}}\n\n\t//{{{ getEditorIcon() method\n\t/**\n\t * Returns the default editor window image.\n\t */\n\tpublic static Image getEditorIcon()\n\t{\n\t\treturn ((ImageIcon)loadIcon(jEdit.getProperty(\"logo.icon.medium\"))).getImage();\n\t} //}}}\n\n\t//{{{ getPluginIcon() method\n\t/**\n\t * Returns the default plugin window image.\n\t */\n\tpublic static Image getPluginIcon()\n\t{\n\t\treturn getEditorIcon();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Menus, tool bars\n\n\t//{{{ loadMenuBar() method\n\t/**\n\t * Creates a menubar. Plugins should not need to call this method.\n\t * @param name The menu bar name\n\t * @since jEdit 3.2pre5\n\t */\n\tpublic static JMenuBar loadMenuBar(String name)\n\t{\n\t\treturn loadMenuBar(jEdit.getActionContext(),name);\n\t} //}}}\n\n\t//{{{ loadMenuBar() method\n\t/**\n\t * Creates a menubar. Plugins should not need to call this method.\n\t * @param context An action context\n\t * @param name The menu bar name\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static JMenuBar loadMenuBar(ActionContext context, String name)\n\t{\n\t\tString menus = jEdit.getProperty(name);\n\t\tStringTokenizer st = new StringTokenizer(menus);\n\n\t\tJMenuBar mbar = new JMenuBar();\n\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString menuName = st.nextToken();\n\t\t\tmbar.add(loadMenu(context, menuName));\n\t\t}\n\n\t\treturn mbar;\n\t} //}}}\n\n\t//{{{ loadMenu() method\n\t/**\n\t * Creates a menu. The menu label is set from the\n\t * <code><i>name</i>.label</code> property. The menu contents is taken\n\t * from the <code><i>name</i></code> property, which is a whitespace\n\t * separated list of action names. An action name of <code>-</code>\n\t * inserts a separator in the menu.\n\t * @param name The menu name\n\t * @see #loadMenuItem(String)\n\t * @since jEdit 2.6pre2\n\t */\n\tpublic static JMenu loadMenu(String name)\n\t{\n\t\treturn loadMenu(jEdit.getActionContext(),name);\n\t} //}}}\n\n\t//{{{ loadMenu() method\n\t/**\n\t * Creates a menu. The menu label is set from the\n\t * <code><i>name</i>.label</code> property. The menu contents is taken\n\t * from the <code><i>name</i></code> property, which is a whitespace\n\t * separated list of action names. An action name of <code>-</code>\n\t * inserts a separator in the menu.\n\t * @param context An action context; either\n\t * <code>jEdit.getActionContext()</code> or\n\t * <code>VFSBrowser.getActionContext()</code>.\n\t * @param name The menu name\n\t * @see #loadMenuItem(String)\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static JMenu loadMenu(ActionContext context, String name)\n\t{\n\t\treturn new EnhancedMenu(name,\n\t\t\tjEdit.getProperty(name.concat(\".label\")),\n\t\t\tcontext);\n\t} //}}}\n\n\t//{{{ loadPopupMenu() method\n\t/**\n\t * Creates a popup menu.\n\t * @param name The menu name\n\t * @since jEdit 2.6pre2\n\t */\n\tpublic static JPopupMenu loadPopupMenu(String name, JEditTextArea textArea, MouseEvent evt)\n\t{\n\t\treturn loadPopupMenu(jEdit.getActionContext(), name, textArea, evt);\n\t} //}}}\n\n\t//{{{ loadPopupMenu() method\n\t/**\n\t * Creates a popup menu.\n\n\t * @param name The menu name\n\t * @since jEdit 2.6pre2\n\t */\n\tpublic static JPopupMenu loadPopupMenu(String name)\n\t{\n\t\treturn loadPopupMenu(jEdit.getActionContext(),name);\n\t} //}}}\n\n\t//{{{ loadPopupMenu() method\n\t/**\n\t * Creates a popup menu.\n\n\t * @param context An action context; either\n\t * <code>jEdit.getActionContext()</code> or\n\t * <code>VFSBrowser.getActionContext()</code>.\n\t * @param name The menu name\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static JPopupMenu loadPopupMenu(ActionContext context, String name)\n\t{\n\t\treturn loadPopupMenu(context, name, null, null);\n\t}\n\n\t//{{{ loadPopupMenu() method\n\t/**\n\t * Creates a popup menu.\n\t * @param context An action context; either\n\t * <code>jEdit.getActionContext()</code> or\n\t * <code>VFSBrowser.getActionContext()</code>.\n\t * @param name The menu name\n\t * @param textArea the textArea wanting to show the popup.\n\t * \tIf not null, include context menu items defined by services.\n\t * @param evt additional context info about where the mouse was when menu was requested\n\t * @since jEdit 4.3pre15\n\t */\n\tpublic static JPopupMenu loadPopupMenu(ActionContext context, String name, JEditTextArea textArea, MouseEvent evt)\n\t{\n\t\tJPopupMenu menu = new JPopupMenu();\n\n\t\tString menuItems = jEdit.getProperty(name);\n\t\tif(menuItems != null)\n\t\t{\n\t\t\tStringTokenizer st = new StringTokenizer(menuItems);\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tString menuItemName = st.nextToken();\n\t\t\t\tif(menuItemName.equals(\"-\"))\n\t\t\t\t\tmenu.addSeparator();\n\t\t\t\telse\n\t\t\t\t\tmenu.add(loadMenuItem(context,menuItemName,false));\n\t\t\t}\n\t\t}\n\t\t// load menu items defined by services\n\t\tif (textArea != null)\n\t\t{\n\t\t\tList<JMenuItem> list = GUIUtilities.getServiceContextMenuItems(textArea, evt);\n\t\t\tif (!list.isEmpty())\n\t\t\t{\n\t\t\t\tmenu.addSeparator();\n\t\t\t}\n\t\t\tfor (JMenuItem mi : list)\n\t\t\t{\n\t\t\t\tmenu.add(mi);\n\t\t\t}\n\t\t}\n\n\t\treturn menu;\n\t} //}}}\n\t//{{{ addServiceContextMenuItems() method\n\t/**\n\t * @return a list of menu items defined by services.\n\t *\n\t * @param textArea the TextArea desiring to display these menu items\n\t * @since jEdit 4.3pre15\n\t */\n\tpublic static List<JMenuItem> getServiceContextMenuItems(JEditTextArea textArea, MouseEvent evt)\n\t{\n\t\tList<JMenuItem> list = new ArrayList<JMenuItem>();\n\t\tString serviceClassName =  DynamicContextMenuService.class.getName();\n\t\tString[] menuServiceList = ServiceManager.getServiceNames(serviceClassName);\n\t\tfor (String menuServiceName : menuServiceList)\n\t\t{\n\t\t\tif (menuServiceName != null && menuServiceName.trim().length() > 0)\n\t\t\t{\n\t\t\t\tDynamicContextMenuService dcms = (DynamicContextMenuService)\n\t\t\t\t\t\tServiceManager.getService(serviceClassName, menuServiceName);\n\t\t\t\tif (dcms != null)\n\t\t\t\t{\n\t\t\t\t\tJMenuItem[] items = dcms.createMenu(textArea, evt);\n\t\t\t\t\tif (items != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tlist.addAll(Arrays.asList(items));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t} //}}}\n\n\t//{{{ loadMenuItem() method\n\t/**\n\t * Creates a menu item. The menu item is bound to the action named by\n\t * <code>name</code> with label taken from the return value of the\n\t * {@link EditAction#getLabel()} method.\n\t *\n\t * @param name The menu item name\n\t * @see #loadMenu(String)\n\t * @since jEdit 2.6pre1\n\t */\n\tpublic static JMenuItem loadMenuItem(String name)\n\t{\n\t\treturn loadMenuItem(jEdit.getActionContext(),name,true);\n\t} //}}}\n\n\t//{{{ loadMenuItem() method\n\t/**\n\t * Creates a menu item.\n\t * @param name The menu item name\n\t * @param setMnemonic True if the menu item should have a mnemonic\n\t * @since jEdit 3.1pre1\n\t */\n\tpublic static JMenuItem loadMenuItem(String name, boolean setMnemonic)\n\t{\n\t\treturn loadMenuItem(jEdit.getActionContext(),name,setMnemonic);\n\t} //}}}\n\n\t//{{{ loadMenuItem() method\n\t/**\n\t * Creates a menu item.\n\t * @param context An action context; either\n\t * <code>jEdit.getActionContext()</code> or\n\t * <code>VFSBrowser.getActionContext()</code>.\n\t * @param name The menu item name\n\t * @param setMnemonic True if the menu item should have a mnemonic\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static JMenuItem loadMenuItem(ActionContext context, String name,\n\t\tboolean setMnemonic)\n\t{\n\t\tif(name.charAt(0) == '%')\n\t\t\treturn loadMenu(context,name.substring(1));\n\n\t\treturn _loadMenuItem(name, context, setMnemonic);\n\t} //}}}\n\n\t//{{{ loadMenuItem(EditAction, boolean)\n\tpublic static JMenuItem loadMenuItem(EditAction editAction,\n\t\tboolean setMnemonic)\n\t{\n\t\tString name = editAction.getName();\n\t\tActionContext context = jEdit.getActionContext();\n\n\t\treturn _loadMenuItem(name, context, setMnemonic);\n\t} //}}}\n\n\t//{{{ loadToolBar() method\n\t/**\n\t * Creates a toolbar.\n\t * @param name The toolbar name\n\t * @since jEdit 4.2pre2\n\t */\n\tpublic static Container loadToolBar(String name)\n\t{\n\t\treturn loadToolBar(jEdit.getActionContext(),name);\n\t} //}}}\n\n\t//{{{ loadToolBar() method\n\t/**\n\t * Creates a toolbar.\n\t * @param context An action context; either\n\t * <code>jEdit.getActionContext()</code> or\n\t * <code>VFSBrowser.getActionContext()</code>.\n\t * @param name The toolbar name\n\t * @since jEdit 4.2pre2\n\t */\n\tpublic static Container loadToolBar(ActionContext context, String name)\n\t{\n\t\tJPanel toolBar = new JPanel(new BorderLayout());\n\t\tJToolBar toolB = new JToolBar();\n\t\ttoolB.setFloatable(false);\n\t\ttoolB.setMargin(new Insets(0,0,0,0));\n\n\t\tString buttons = jEdit.getProperty(name);\n\t\tif(buttons != null)\n\t\t{\n\t\t\tStringTokenizer st = new StringTokenizer(buttons);\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tString button = st.nextToken();\n\t\t\t\tif(button.equals(\"-\"))\n\t\t\t\t{\n\t\t\t\t\ttoolB.addSeparator(new Dimension(12,12));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJButton b = loadToolButton(context,button);\n\t\t\t\t\tif(b != null)\n\t\t\t\t\t\ttoolB.add(b);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttoolBar.add(toolB);\n\t\treturn toolBar;\n\t} //}}}\n\n\t//{{{ loadToolButton() method\n\t/**\n\t * Loads a tool bar button. The tooltip is constructed from\n\t * the <code><i>name</i>.label</code> and\n\t * <code><i>name</i>.shortcut</code> properties and the icon is loaded\n\t * from the resource named '/org/gjt/sp/jedit/icons/' suffixed\n\t * with the value of the <code><i>name</i>.icon</code> property.\n\t * @param name The name of the button\n\t */\n\tpublic static EnhancedButton loadToolButton(String name)\n\t{\n\t\treturn loadToolButton(jEdit.getActionContext(),name);\n\t} //}}}\n\n\t//{{{ loadToolButton() method\n\t/**\n\t * Loads a tool bar button. The tooltip is constructed from\n\t * the <code><i>name</i>.label</code> and\n\t * <code><i>name</i>.shortcut</code> properties and the icon is loaded\n\t * from the resource named '/org/gjt/sp/jedit/icons/' suffixed\n\t * with the value of the <code><i>name</i>.icon</code> property.\n\t * @param context An action context; either\n\t * <code>jEdit.getActionContext()</code> or\n\t * <code>VFSBrowser.getActionContext()</code>.\n\t * @param name The name of the button\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static EnhancedButton loadToolButton(ActionContext context,\n\t\tString name)\n\t{\n\t\tString label = jEdit.getProperty(name + \".label\");\n\n\t\tif(label == null)\n\t\t\tlabel = name;\n\n\t\tIcon icon;\n\t\tString iconName = jEdit.getProperty(name + \".icon\");\n\t\tif(iconName == null)\n\t\t\ticon = loadIcon(jEdit.getProperty(\"broken-image.icon\"));\n\t\telse\n\t\t{\n\t\t\ticon = loadIcon(iconName);\n\t\t\tif(icon == null)\n\t\t\t\ticon = loadIcon(jEdit.getProperty(\"broken-image.icon\"));\n\t\t}\n\n\t\tString toolTip = prettifyMenuLabel(label);\n\t\tString shortcutLabel = getShortcutLabel(name);\n\t\tif(shortcutLabel != null)\n\t\t{\n\t\t\ttoolTip = toolTip + \" (\" + shortcutLabel + ')';\n\t\t}\n\n\t\tEnhancedButton b = new EnhancedButton(icon,toolTip,name,context);\n\t\tb.setPreferredSize(new Dimension(32,32));\n\t\treturn b;\n\t} //}}}\n\n\t//{{{ prettifyMenuLabel() method\n\t/**\n\t * `Prettifies' a menu item label by removing the `$' sign. This\n\t * can be used to process the contents of an <i>action</i>.label\n\t * property.\n\t */\n\tpublic static String prettifyMenuLabel(String label)\n\t{\n\t\tint index = label.indexOf('$');\n\t\tif(index != -1)\n\t\t{\n\t\t\tlabel = label.substring(0,index)\n\t\t\t\t.concat(label.substring(index + 1));\n\t\t}\n\t\treturn label;\n\t} //}}}\n\n\t//{{{ getShortcutLabel() method\n\t/**\n\t * Returns a label string to show users what shortcut are\n\t * assigned to the action.\n\t */\n\tpublic static String getShortcutLabel(String action)\n\t{\n\t\tif(action == null)\n\t\t\treturn null;\n\t\telse\n\t\t{\n\t\t\tString shortcut1 = jEdit.getProperty(action + \".shortcut\");\n\t\t\tString shortcut2 = jEdit.getProperty(action + \".shortcut2\");\n\n\t\t\tif(shortcut1 == null || shortcut1.length() == 0)\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn shortcut1;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut1 + \" or \" + shortcut2;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//}}}\n\n\t//{{{ Canned dialog boxes\n\n\t//{{{ message() method\n\t/**\n\t * Displays a dialog box.\n\t * The title of the dialog is fetched from\n\t * the <code><i>name</i>.title</code> property. The message is fetched\n\t * from the <code><i>name</i>.message</code> property. The message\n\t * is formatted by the property manager with <code>args</code> as\n\t * positional parameters.\n\t * @param comp The component to display the dialog for\n\t * @param name The name of the dialog\n\t * @param args Positional parameters to be substituted into the\n\t * message text\n\t */\n\tpublic static void message(Component comp, String name, Object[] args)\n\t{\n\t\thideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,\n\t\t\tjEdit.getProperty(name.concat(\".message\"),args),\n\t\t\tjEdit.getProperty(name.concat(\".title\"),args),\n\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t} //}}}\n\n\t//{{{ error() method\n\t/**\n\t * Displays an error dialog box.\n\t * The title of the dialog is fetched from\n\t * the <code><i>name</i>.title</code> property. The message is fetched\n\t * from the <code><i>name</i>.message</code> property. The message\n\t * is formatted by the property manager with <code>args</code> as\n\t * positional parameters.\n\t * @param comp The component to display the dialog for\n\t * @param name The name of the dialog\n\t * @param args Positional parameters to be substituted into the\n\t * message text\n\t */\n\tpublic static void error(Component comp, String name, Object[] args)\n\t{\n\t\thideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,\n\t\t\tjEdit.getProperty(name.concat(\".message\"),args),\n\t\t\tjEdit.getProperty(name.concat(\".title\"),args),\n\t\t\tJOptionPane.ERROR_MESSAGE);\n\t} //}}}\n\n\t//{{{ input() method\n\t/**\n\t * Displays an input dialog box and returns any text the user entered.\n\t * The title of the dialog is fetched from\n\t * the <code><i>name</i>.title</code> property. The message is fetched\n\t * from the <code><i>name</i>.message</code> property.\n\t * @param comp The component to display the dialog for\n\t * @param name The name of the dialog\n\t * @param def The text to display by default in the input field\n\t */\n\tpublic static String input(Component comp, String name, Object def)\n\t{\n\t\treturn input(comp,name,null,def);\n\t} //}}}\n\n\t//{{{ inputProperty() method\n\t/**\n\t * Displays an input dialog box and returns any text the user entered.\n\t * The title of the dialog is fetched from\n\t * the <code><i>name</i>.title</code> property. The message is fetched\n\t * from the <code><i>name</i>.message</code> property.\n\t * @param comp The component to display the dialog for\n\t * @param name The name of the dialog\n\t * @param def The property whose text to display in the input field\n\t */\n\tpublic static String inputProperty(Component comp, String name,\n\t\tString def)\n\t{\n\t\treturn inputProperty(comp,name,null,def);\n\t} //}}}\n\n\t//{{{ input() method\n\t/**\n\t * Displays an input dialog box and returns any text the user entered.\n\t * The title of the dialog is fetched from\n\t * the <code><i>name</i>.title</code> property. The message is fetched\n\t * from the <code><i>name</i>.message</code> property.\n\t * @param comp The component to display the dialog for\n\t * @param name The name of the dialog\n\t * @param def The text to display by default in the input field\n\t * @param args Positional parameters to be substituted into the\n\t * message text\n\t * @since jEdit 3.1pre3\n\t */\n\tpublic static String input(Component comp, String name,\n\t\tObject[] args, Object def)\n\t{\n\t\thideSplashScreen();\n\n\t\tString retVal = (String)JOptionPane.showInputDialog(comp,\n\t\t\tjEdit.getProperty(name.concat(\".message\"),args),\n\t\t\tjEdit.getProperty(name.concat(\".title\")),\n\t\t\tJOptionPane.QUESTION_MESSAGE,null,null,def);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ inputProperty() method\n\t/**\n\t * Displays an input dialog box and returns any text the user entered.\n\t * The title of the dialog is fetched from\n\t * the <code><i>name</i>.title</code> property. The message is fetched\n\t * from the <code><i>name</i>.message</code> property.\n\t * @param comp The component to display the dialog for\n\t * @param name The name of the dialog\n\t * @param args Positional parameters to be substituted into the\n\t * message text\n\t * @param def The property whose text to display in the input field\n\t * @since jEdit 3.1pre3\n\t */\n\tpublic static String inputProperty(Component comp, String name,\n\t\tObject[] args, String def)\n\t{\n\t\thideSplashScreen();\n\n\t\tString retVal = (String)JOptionPane.showInputDialog(comp,\n\t\t\tjEdit.getProperty(name.concat(\".message\"),args),\n\t\t\tjEdit.getProperty(name.concat(\".title\")),\n\t\t\tJOptionPane.QUESTION_MESSAGE,\n\t\t\tnull,null,jEdit.getProperty(def));\n\t\tif(retVal != null)\n\t\t\tjEdit.setProperty(def,retVal);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ confirm() method\n\t/**\n\t * Displays a confirm dialog box and returns the button pushed by the\n\t * user. The title of the dialog is fetched from the\n\t * <code><i>name</i>.title</code> property. The message is fetched\n\t * from the <code><i>name</i>.message</code> property.\n\t * @param comp The component to display the dialog for\n\t * @param name The name of the dialog\n\t * @param args Positional parameters to be substituted into the\n\t * message text\n\t * @param buttons The buttons to display - for example,\n\t * JOptionPane.YES_NO_CANCEL_OPTION\n\t * @param type The dialog type - for example,\n\t * JOptionPane.WARNING_MESSAGE\n\t * @since jEdit 3.1pre3\n\t */\n\tpublic static int confirm(Component comp, String name,\n\t\tObject[] args, int buttons, int type)\n\t{\n\t\thideSplashScreen();\n\n\t\treturn JOptionPane.showConfirmDialog(comp,\n\t\t\tjEdit.getProperty(name + \".message\",args),\n\t\t\tjEdit.getProperty(name + \".title\"),buttons,type);\n\t} //}}}\n\n\t//{{{ listConfirm() method\n\t/**\n\t * Displays a confirm dialog box and returns the button pushed by the\n\t * user. The title of the dialog is fetched from the\n\t * <code><i>name</i>.title</code> property. The message is fetched\n\t * from the <code><i>name</i>.message</code> property. The dialog\n\t * also shows a list of entries given by the <code>listModel</code>\n\t * parameter.\n\t * @param comp the parent component\n\t * @param name the name of the confirm dialog\n\t * @param args the for the message\n\t * @param listModel the items in the list\n\t * @return an integer indicating the option selected by the user\n\t * @since jEdit 4.3pre1\n\t */\n\tpublic static int listConfirm(Component comp, String name, String[] args,\n\t\tObject[] listModel)\n\t{\n\t\tJList list = new JList(listModel);\n\t\tlist.setVisibleRowCount(8);\n\n\t\tObject[] message = {\n\t\t\tjEdit.getProperty(name + \".message\",args),\n\t\t\tnew JScrollPane(list)\n\t\t};\n\n\t\treturn JOptionPane.showConfirmDialog(comp,\n\t\t\tmessage,\n\t\t\tjEdit.getProperty(name + \".title\"),\n\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t} //}}}\n\n\t//{{{ listConfirm() method\n\t/**\n\t * Displays a confirm dialog box and returns the button pushed by the\n\t * user. The title of the dialog is fetched from the\n\t * <code><i>name</i>.title</code> property. The message is fetched\n\t * from the <code><i>name</i>.message</code> property. The dialog\n\t * also shows a list of entries given by the <code>listModel</code>\n\t * parameter.\n\t * @param comp the parent component\n\t * @param name the name of the confirm dialog\n\t * @param args the for the message\n\t * @param listModel the items in the list\n\t * @param selectedItems give an empty list, it will contains in return the selected items\n\t * @return an integer indicating the option selected by the user\n\t * @since jEdit 4.3pre12\n\t */\n\tpublic static int listConfirm(Component comp, String name, String[] args,\n\t\tObject[] listModel, List selectedItems)\n\t{\n\t\tJList list = new JList(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n\t\tlist.setVisibleRowCount(8);\n\t\tlist.addSelectionInterval(0,listModel.length - 1);\n\n\t\tObject[] message = {\n\t\t\tjEdit.getProperty(name + \".message\",args),\n\t\t\tnew JScrollPane(list)\n\t\t};\n\n\t\tint ret = JOptionPane.showConfirmDialog(comp,\n\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\tjEdit.getProperty(name + \".title\"),\n\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\tObject[] selectedValues = list.getSelectedValues();\n\t\tselectedItems.addAll(Arrays.asList(selectedValues));\n\t\treturn ret;\n\t} //}}}\n\n\t//{{{ showVFSFileDialog() methods\n\t/**\n\t * Displays a VFS file selection dialog box.\n\t * @param view The view, should be non-null\n\t * @param path The initial directory to display. May be null\n\t * @param type The dialog type. One of\n\t * {@link org.gjt.sp.jedit.browser.VFSBrowser#OPEN_DIALOG},\n\t * {@link org.gjt.sp.jedit.browser.VFSBrowser#SAVE_DIALOG}, or\n\t * {@link org.gjt.sp.jedit.browser.VFSBrowser#CHOOSE_DIRECTORY_DIALOG}.\n\t * @param multipleSelection True if multiple selection should be allowed\n\t * @return The selected file(s)\n\t * @since jEdit 2.6pre2\n\t */\n\tpublic static String[] showVFSFileDialog(View view, String path,\n\t\tint type, boolean multipleSelection)\n\t{\n\t\t// the view should not be null, but some plugins might do this\n\t\tif(view == null)\n\t\t{\n\t\t\tLog.log(Log.WARNING,GUIUtilities.class,\n\t\t\t\"showVFSFileDialog(): given null view, assuming jEdit.getActiveView()\");\n\t\t\tview = jEdit.getActiveView();\n\t\t}\n\n\t\thideSplashScreen();\n\n\t\tVFSFileChooserDialog fileChooser = new VFSFileChooserDialog(\n\t\t\tview,path,type,multipleSelection);\n\t\treturn fileChooser.getSelectedFiles();\n\t}\n\n\t/**\n\t * Displays a VFS file selection dialog box.\n\t * This version can specify a dialog as the parent instead\n\t * of the view.\n\t * @param view The view, should be non-null\n\t * @param path The initial directory to display. May be null\n\t * @param type The dialog type. One of\n\t * {@link org.gjt.sp.jedit.browser.VFSBrowser#OPEN_DIALOG},\n\t * {@link org.gjt.sp.jedit.browser.VFSBrowser#SAVE_DIALOG}, or\n\t * {@link org.gjt.sp.jedit.browser.VFSBrowser#CHOOSE_DIRECTORY_DIALOG}.\n\t * @param multipleSelection True if multiple selection should be allowed\n\t * @return The selected file(s)\n\t * @since jEdit 4.3pre10\n\t */\n\tpublic static String[] showVFSFileDialog(Dialog parent, View view,\n\t\tString path, int type, boolean multipleSelection)\n\t{\n\t\thideSplashScreen();\n\n\t\tVFSFileChooserDialog fileChooser = new VFSFileChooserDialog(\n\t\t\tparent, view, path, type, multipleSelection, true);\n\t\treturn fileChooser.getSelectedFiles();\n\t}\n\n\t/**\n\t * Displays a VFS file selection dialog box.\n\t * This version can specify a frame as the parent instead\n\t * of the view.\n\t * @param parent The parent frame\n\t * @param view The view, should be non-null\n\t * @param path The initial directory to display. May be null\n\t * @param type The dialog type. One of\n\t * {@link org.gjt.sp.jedit.browser.VFSBrowser#OPEN_DIALOG},\n\t * {@link org.gjt.sp.jedit.browser.VFSBrowser#SAVE_DIALOG}, or\n\t * {@link org.gjt.sp.jedit.browser.VFSBrowser#CHOOSE_DIRECTORY_DIALOG}.\n\t * @param multipleSelection True if multiple selection should be allowed\n\t * @return The selected file(s)\n\t * @since jEdit 4.3pre10\n\t */\n\tpublic static String[] showVFSFileDialog(Frame parent, View view,\n\t\tString path, int type, boolean multipleSelection)\n\t{\n\t\thideSplashScreen();\n\t\tVFSFileChooserDialog fileChooser = new VFSFileChooserDialog(\n\t\t\tparent, view, path, type, multipleSelection, true);\n\t\treturn fileChooser.getSelectedFiles();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Colors and styles\n\n\t//{{{ parseColor() method\n\t/**\n\t * Converts a color name to a color object. The name must either be\n\t * a known string, such as `red', `green', etc (complete list is in\n\t * the <code>java.awt.Color</code> class) or a hex color value\n\t * prefixed with `#', for example `#ff0088'.\n\t * @param name The color name\n\t */\n\tpublic static Color parseColor(String name)\n\t{\n\t\treturn SyntaxUtilities.parseColor(name, Color.black);\n\t} //}}}\n\n\t//{{{ parseColor() method\n\t/**\n\t * @deprecated use {@link SyntaxUtilities#parseColor(String,Color)}\n\t */\n\t@Deprecated\n\tpublic static Color parseColor(String name, Color defaultColor)\n\t{\n\t\treturn SyntaxUtilities.parseColor(name, defaultColor);\n\t} //}}}\n\n\t//{{{ getColorHexString() method\n\t/**\n\t * Converts a color object to its hex value. The hex value\n\t * prefixed is with `#', for example `#ff0088'.\n\t * @param c The color object\n\t * @deprecated use {@link SyntaxUtilities#parseStyle(String,String,int,boolean)}\n\t */\n\t@Deprecated\n\tpublic static String getColorHexString(Color c)\n\t{\n\t\treturn SyntaxUtilities.getColorHexString(c);\n\t} //}}}\n\n\t//{{{ parseStyle() method\n\t/**\n\t * Converts a style string to a style object.\n\t * @param str The style string\n\t * @param family Style strings only specify font style, not font family\n\t * @param size Style strings only specify font style, not font family\n\t * @exception IllegalArgumentException if the style is invalid\n\t * @since jEdit 3.2pre6\n\t */\n\tpublic static SyntaxStyle parseStyle(String str, String family, int size)\n\t\tthrows IllegalArgumentException\n\t{\n\t\treturn SyntaxUtilities.parseStyle(str,family,size,true);\n\t} //}}}\n\n\t//{{{ parseStyle() method\n\t/**\n\t * Converts a style string to a style object.\n\t * @param str The style string\n\t * @param family Style strings only specify font style, not font family\n\t * @param size Style strings only specify font style, not font family\n\t * @param color If false, the styles will be monochrome\n\t * @exception IllegalArgumentException if the style is invalid\n\t * @since jEdit 4.0pre4\n\t * @deprecated use {@link SyntaxUtilities#parseStyle(String,String,int,boolean)}\n\t */\n\t@Deprecated\n\tpublic static SyntaxStyle parseStyle(String str, String family, int size,\n\t\tboolean color)\n\t\tthrows IllegalArgumentException\n\t{\n\t\treturn SyntaxUtilities.parseStyle(str,family,size,color);\n\t} //}}}\n\n\t//{{{ getStyleString() method\n\t/**\n\t * Converts a style into it's string representation.\n\t * @param style The style\n\t */\n\tpublic static String getStyleString(SyntaxStyle style)\n\t{\n\t\tStringBuilder buf = new StringBuilder();\n\n\t\tif (style.getForegroundColor() != null)\n\t\t{\n\t\t\tbuf.append(\"color:\").append(SyntaxUtilities.getColorHexString(style.getForegroundColor()));\n\t\t}\n\n\t\tif (style.getBackgroundColor() != null)\n\t\t{\n\t\t\tbuf.append(\" bgColor:\").append(SyntaxUtilities.getColorHexString(style.getBackgroundColor()));\n\t\t}\n\n\t\tFont font = style.getFont();\n\t\tif (!font.isPlain())\n\t\t{\n\t\t\tbuf.append(\" style:\");\n\t\t\tif (font.isItalic())\n\t\t\t\tbuf.append('i');\n\t\t\tif (font.isBold())\n\t\t\t\tbuf.append('b');\n\t\t}\n\n\t\treturn buf.toString();\n\t} //}}}\n\n\t//{{{ loadStyles() method\n\t/**\n\t * Loads the syntax styles from the properties, giving them the specified\n\t * base font family and size.\n\t * @param family The font family\n\t * @param size The font size\n\t * @since jEdit 3.2pre6\n\t * @deprecated use {@link SyntaxUtilities#loadStyles(String,int)}\n\t */\n\t@Deprecated\n\tpublic static SyntaxStyle[] loadStyles(String family, int size)\n\t{\n\t\treturn SyntaxUtilities.loadStyles(family,size,true);\n\t}\n\n\t/**\n\t * Loads the syntax styles from the properties, giving them the specified\n\t * base font family and size.\n\t * @param family The font family\n\t * @param size The font size\n\t * @param color If false, the styles will be monochrome\n\t * @since jEdit 4.0pre4\n\t * @deprecated use {@link SyntaxUtilities#loadStyles(String,int,boolean)}\n\t */\n\t@Deprecated\n\tpublic static SyntaxStyle[] loadStyles(String family, int size, boolean color)\n\t{\n\t\treturn SyntaxUtilities.loadStyles(family, size, color);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Loading, saving window geometry\n\n\t//{{{ loadGeometry() method\n\t/**\n\t * Loads a windows's geometry from the properties.\n\t * The geometry is loaded from the <code><i>name</i>.x</code>,\n\t * <code><i>name</i>.y</code>, <code><i>name</i>.width</code> and\n\t * <code><i>name</i>.height</code> properties.\n\t *\n\t * @param win The window to load geometry from\n\t * @param parent The parent frame to be relative to.\n\t * @param name The name of the window\n\t */\n\tpublic static void loadGeometry(Window win, Container parent, String name )\n\t{\n\t\tDimension size = win.getSize();\n\t\tint width = jEdit.getIntegerProperty(name + \".width\", size.width);\n\t\tint height = jEdit.getIntegerProperty(name + \".height\", size.height);\n\t\tint x = jEdit.getIntegerProperty(name + \".x\",50);\n\t\tint y = jEdit.getIntegerProperty(name + \".y\",50);\n\t\tif(parent != null)\n\t\t{\n\t\t\tPoint location = parent.getLocation();\n\t\t\tx = location.x + x;\n\t\t\ty = location.y + y;\n\t\t}\n\n\t\tint extState = jEdit.getIntegerProperty(name + \".extendedState\", Frame.NORMAL);\n\n\t\tRectangle desired = new Rectangle(x,y,width,height);\n\t\ttry\n\t\t{\n\t\t\tif(!Debug.DISABLE_MULTIHEAD)\n\t\t\t\tadjustForScreenBounds(desired);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t/* Workaround for OS X bug. */\n\t\t\tLog.log(Log.ERROR,GUIUtilities.class,e);\n\t\t}\n\n\t\tif(OperatingSystem.isX11() && Debug.GEOMETRY_WORKAROUND)\n\t\t\tnew UnixWorkaround(win,name,desired,extState);\n\t\telse\n\t\t{\n\t\t\twin.setBounds(desired);\n\t\t\tif(win instanceof Frame)\n\t\t\t\t((Frame)win).setExtendedState(extState);\n\t\t}\n\n\t} //}}}\n\n\t//{{{ loadGeometry() method\n\t/**\n\t * Loads a windows's geometry from the properties.\n\t * The geometry is loaded from the <code><i>name</i>.x</code>,\n\t * <code><i>name</i>.y</code>, <code><i>name</i>.width</code> and\n\t * <code><i>name</i>.height</code> properties.\n\t *\n\t * @param win The window to load geometry from\n\t * @param name The name of the window\n\t */\n\tpublic static void loadGeometry(Window win, String name)\n\t{\n\t\tloadGeometry(win, win.getParent(), name);\n\t} //}}}\n\n\t//{{{ adjustForScreenBounds() method\n\t/**\n\t * Gives a rectangle the specified bounds, ensuring it is within the\n\t * screen bounds.\n\t * @since jEdit 4.2pre3\n\t */\n\tpublic static void adjustForScreenBounds(Rectangle desired)\n\t{\n\t\t// Make sure the window is displayed in visible region\n\t\tRectangle osbounds = OperatingSystem.getScreenBounds(desired);\n\n\t\tif (desired.width > osbounds.width)\n\t\t{\n\t\t\tdesired.width = osbounds.width;\n\t\t}\n\t\tif (desired.x < osbounds.x)\n\t\t{\n\t\t\tdesired.x = osbounds.x;\n\t\t}\n\t\tif (desired.x + desired.width > osbounds.x + osbounds.width)\n\t\t{\n\t\t\tdesired.x = osbounds.x + osbounds.width - desired.width;\n\t\t}\n\t\tif (desired.height > osbounds.height)\n\t\t{\n\t\t\tdesired.height = osbounds.height;\n\t\t}\n\t\tif (desired.y < osbounds.y)\n\t\t{\n\t\t\tdesired.y = osbounds.y;\n\t\t}\n\t\tif (desired.y + desired.height > osbounds.y + osbounds.height)\n\t\t{\n\t\t\tdesired.y = osbounds.y + osbounds.height - desired.height;\n\t\t}\n\t} //}}}\n\n\t//{{{ UnixWorkaround class\n\tpublic static class UnixWorkaround\n\t{\n\t\tWindow win;\n\t\tString name;\n\t\tRectangle desired;\n\t\tRectangle required;\n\t\tlong start;\n\t\tboolean windowOpened;\n\n\t\t//{{{ UnixWorkaround constructor\n\t\tpublic UnixWorkaround(Window win, String name, Rectangle desired,\n\t\t\tint extState)\n\t\t{\n\t\t\tthis.win = win;\n\t\t\tthis.name = name;\n\t\t\tthis.desired = desired;\n\n\t\t\tint adjust_x = jEdit.getIntegerProperty(name + \".dx\",0);\n\t\t\tint adjust_y = jEdit.getIntegerProperty(name + \".dy\",0);\n\t\t\tint adjust_width = jEdit.getIntegerProperty(name + \".d-width\",0);\n\t\t\tint adjust_height = jEdit.getIntegerProperty(name + \".d-height\",0);\n\n\t\t\trequired = new Rectangle(\n\t\t\t\tdesired.x - adjust_x,\n\t\t\t\tdesired.y - adjust_y,\n\t\t\t\tdesired.width - adjust_width,\n\t\t\t\tdesired.height - adjust_height);\n\n\t\t\tLog.log(Log.DEBUG,GUIUtilities.class,\"Window \" + name\n\t\t\t\t+ \": desired geometry is \" + desired);\n\t\t\tLog.log(Log.DEBUG,GUIUtilities.class,\"Window \" + name\n\t\t\t\t+ \": setting geometry to \" + required);\n\n\t\t\tstart = System.currentTimeMillis();\n\n\t\t\twin.setBounds(required);\n\t\t\tif(win instanceof Frame)\n\t\t\t\t((Frame)win).setExtendedState(extState);\n\n\t\t\twin.addComponentListener(new ComponentHandler());\n\t\t\twin.addWindowListener(new WindowHandler());\n\t\t} //}}}\n\n\t\t//{{{ ComponentHandler class\n\t\tprivate class ComponentHandler extends ComponentAdapter\n\t\t{\n\t\t\t//{{{ componentMoved() method\n\t\t\t@Override\n\t\t\tpublic void componentMoved(ComponentEvent evt)\n\t\t\t{\n\t\t\t\tif(System.currentTimeMillis() - start < 1000L)\n\t\t\t\t{\n\t\t\t\t\tRectangle r = win.getBounds();\n\t\t\t\t\tif(!windowOpened && r.equals(required))\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\tif(!r.equals(desired))\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.log(Log.DEBUG,GUIUtilities.class,\n\t\t\t\t\t\t\t\"Window resize blocked: \" + win.getBounds());\n\t\t\t\t\t\twin.setBounds(desired);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twin.removeComponentListener(this);\n\t\t\t} //}}}\n\n\t\t\t//{{{ componentResized() method\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent evt)\n\t\t\t{\n\t\t\t\tif(System.currentTimeMillis() - start < 1000L)\n\t\t\t\t{\n\t\t\t\t\tRectangle r = win.getBounds();\n\t\t\t\t\tif(!windowOpened && r.equals(required))\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\tif(!r.equals(desired))\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.log(Log.DEBUG,GUIUtilities.class,\n\t\t\t\t\t\t\t\"Window resize blocked: \" + win.getBounds());\n\t\t\t\t\t\twin.setBounds(desired);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twin.removeComponentListener(this);\n\t\t\t} //}}}\n\t\t} //}}}\n\n\t\t//{{{ WindowHandler class\n\t\tprivate class WindowHandler extends WindowAdapter\n\t\t{\n\t\t\t//{{{ windowOpened() method\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent evt)\n\t\t\t{\n\t\t\t\twindowOpened = true;\n\n\t\t\t\tRectangle r = win.getBounds();\n\t\t\t\tLog.log(Log.DEBUG,GUIUtilities.class,\"Window \"\n\t\t\t\t\t+ name + \": bounds after opening: \" + r);\n\n\t\t\t\tjEdit.setIntegerProperty(name + \".dx\",\n\t\t\t\t\tr.x - required.x);\n\t\t\t\tjEdit.setIntegerProperty(name + \".dy\",\n\t\t\t\t\tr.y - required.y);\n\t\t\t\tjEdit.setIntegerProperty(name + \".d-width\",\n\t\t\t\t\tr.width - required.width);\n\t\t\t\tjEdit.setIntegerProperty(name + \".d-height\",\n\t\t\t\t\tr.height - required.height);\n\n\t\t\t\twin.removeWindowListener(this);\n\t\t\t} //}}}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ saveGeometry() method\n\t/**\n\t * Saves a window's geometry to the properties.\n\t * The geometry is saved to the <code><i>name</i>.x</code>,\n\t * <code><i>name</i>.y</code>, <code><i>name</i>.width</code> and\n\t * <code><i>name</i>.height</code> properties.<br />\n\t * For Frame's and descendents use {@link #addSizeSaver(Frame,String)} to save the sizes\n\t * correct even if the Frame is in maximized or iconified state.\n\t * @param win The window to load geometry from\n\t * @param name The name of the window\n\t * @see #addSizeSaver(Frame,String)\n\t */\n\tpublic static void saveGeometry(Window win, String name)\n\t{\n\t\tsaveGeometry (win, win.getParent(), name);\n\t} //}}}\n\n\t//{{{ saveGeometry() method\n\t/**\n\t * Saves a window's geometry to the properties.\n\t * The geometry is saved to the <code><i>name</i>.x</code>,\n\t * <code><i>name</i>.y</code>, <code><i>name</i>.width</code> and\n\t * <code><i>name</i>.height</code> properties.<br />\n\t * For Frame's and descendents use {@link #addSizeSaver(Frame,Container,String)} to save the sizes\n\t * correct even if the Frame is in maximized or iconified state.\n\t * @param win The window to load geometry from\n\t * @param parent The parent frame to be relative to.\n\t * @param name The name of the window\n\t * @see #addSizeSaver(Frame,Container,String)\n\t */\n\tpublic static void saveGeometry(Window win, Container parent, String name)\n\t{\n\t\tif(win instanceof Frame)\n\t\t{\n\t\t\tjEdit.setIntegerProperty(name + \".extendedState\",\n\t\t\t\t((Frame)win).getExtendedState());\n\t\t}\n\n\t\tRectangle bounds = win.getBounds();\n\t\tint x = bounds.x;\n\t\tint y = bounds.y;\n\t\tif (parent != null)\n\t\t{\n\t\t\tRectangle parentBounds = parent.getBounds();\n\t\t\tx -= parentBounds.x;\n\t\t\ty -= parentBounds.y;\n\t\t}\n\t\tjEdit.setIntegerProperty(name + \".x\",x);\n\t\tjEdit.setIntegerProperty(name + \".y\",y);\n\t\tjEdit.setIntegerProperty(name + \".width\", bounds.width);\n\t\tjEdit.setIntegerProperty(name + \".height\", bounds.height);\n\t} //}}}\n\n\t//{{{ centerOnScreen() method\n\t/**\n\t * Centers the given window on the screen. This method is needed because\n\t * JDK 1.3 does not have a <code>JWindow.setLocationRelativeTo()</code>\n\t * method.\n\t * @since jEdit 4.2pre3\n\t * @deprecated use {@link javax.swing.JWindow#setLocationRelativeTo(java.awt.Component)}\n\t */\n\t@Deprecated\n\tpublic static void centerOnScreen(Window win)\n\t{\n\t\tGraphicsDevice gd = GraphicsEnvironment\n\t\t\t.getLocalGraphicsEnvironment()\n\t\t\t.getDefaultScreenDevice();\n\t\tRectangle gcbounds = gd.getDefaultConfiguration().getBounds();\n\t\tint x = gcbounds.x + (gcbounds.width - win.getWidth()) / 2;\n\t\tint y = gcbounds.y + (gcbounds.height - win.getHeight()) / 2;\n\t\twin.setLocation(x,y);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ hideSplashScreen() method\n\t/**\n\t * Ensures that the splash screen is not visible. This should be\n\t * called before displaying any dialog boxes or windows at\n\t * startup.\n\t */\n\tpublic static void hideSplashScreen()\n\t{\n\t\tif(splash != null)\n\t\t{\n\t\t\tsplash.dispose();\n\t\t\tsplash = null;\n\t\t}\n\t} //}}}\n\n\t//{{{ createMultilineLabel() method\n\t/**\n\t * Creates a component that displays a multiple line message. This\n\t * is implemented by assembling a number of <code>JLabels</code> in\n\t * a <code>JPanel</code>.\n\t * @param str The string, with lines delimited by newline\n\t * (<code>\\n</code>) characters.\n\t * @since jEdit 4.1pre3\n\t */\n\tpublic static JComponent createMultilineLabel(String str)\n\t{\n\t\tJPanel panel = new JPanel(new VariableGridLayout(\n\t\t\tVariableGridLayout.FIXED_NUM_COLUMNS,1,1,1));\n\t\tint lastOffset = 0;\n\t\twhile(true)\n\t\t{\n\t\t\tint index = str.indexOf('\\n',lastOffset);\n\t\t\tif(index == -1)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tpanel.add(new JLabel(str.substring(lastOffset,index)));\n\t\t\t\tlastOffset = index + 1;\n\t\t\t}\n\t\t}\n\n\t\tif(lastOffset != str.length())\n\t\t\tpanel.add(new JLabel(str.substring(lastOffset)));\n\n\t\treturn panel;\n\t} //}}}\n\n\t//{{{ requestFocus() method\n\t/**\n\t * Focuses on the specified component as soon as the window becomes\n\t * active.\n\t * @param win The window\n\t * @param comp The component\n\t */\n\tpublic static void requestFocus(final Window win, final Component comp)\n\t{\n\t\twin.addWindowFocusListener(new WindowAdapter()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void windowGainedFocus(WindowEvent evt)\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcomp.requestFocusInWindow();\n\t\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\twin.removeWindowFocusListener(this);\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ isPopupTrigger() method\n\t/**\n\t * Returns if the specified event is the popup trigger event.\n\t * This implements precisely defined behavior, as opposed to\n\t * MouseEvent.isPopupTrigger().\n\t * @param evt The event\n\t * @since jEdit 3.2pre8\n\t */\n\tpublic static boolean isPopupTrigger(MouseEvent evt)\n\t{\n\t\treturn TextAreaMouseHandler.isRightButton(evt.getModifiers());\n\t} //}}}\n\n\t//{{{ isMiddleButton() method\n\t/**\n\t * @param modifiers The modifiers flag from a mouse event\n\t * @since jEdit 4.1pre9\n\t */\n\tpublic static boolean isMiddleButton(int modifiers)\n\t{\n\t\treturn TextAreaMouseHandler.isMiddleButton(modifiers);\n\t} //}}}\n\n\t//{{{ isRightButton() method\n\t/**\n\t * @param modifiers The modifiers flag from a mouse event\n\t * @since jEdit 4.1pre9\n\t */\n\tpublic static boolean isRightButton(int modifiers)\n\t{\n\t\treturn TextAreaMouseHandler.isRightButton(modifiers);\n\t} //}}}\n\n\t//{{{ getScreenBounds() method\n\t/**\n\t * Returns the screen bounds, taking into account multi-screen\n\t * environments.\n\t * @since jEdit 4.3pre18\n\t */\n\tpublic static Rectangle getScreenBounds()\n\t{\n\t\tRectangle bounds = GraphicsEnvironment.getLocalGraphicsEnvironment().\n\t\t\tgetMaximumWindowBounds();\n\t\tGraphicsDevice [] devices = GraphicsEnvironment.\n\t\t\tgetLocalGraphicsEnvironment().getScreenDevices();\n\t\tif (devices.length > 1)\n\t\t{\n\t\t\tfor (GraphicsDevice device: devices)\n\t\t\t{\n\t\t\t\tfor (GraphicsConfiguration config: device.getConfigurations())\n\t\t\t\t\tbounds = bounds.union(config.getBounds());\n\t\t\t}\n\t\t}\n\t\treturn bounds;\n\t}\n\n\t//{{{ showPopupMenu() method\n\t/**\n\t * Shows the specified popup menu, ensuring it is displayed within\n\t * the bounds of the screen.\n\t * @param popup The popup menu\n\t * @param comp The component to show it for\n\t * @param x The x co-ordinate\n\t * @param y The y co-ordinate\n\t * @since jEdit 4.0pre1\n\t * @see javax.swing.JComponent#setComponentPopupMenu(javax.swing.JPopupMenu) setComponentPopupMenu\n\t * which works better and is simpler to use: you don't have to write the code to\n\t * show/hide popups in response to mouse events anymore.\n\t */\n\tpublic static void showPopupMenu(JPopupMenu popup, Component comp,\n\t\tint x, int y)\n\t{\n\t\tshowPopupMenu(popup,comp,x,y,true);\n\t} //}}}\n\n\t//{{{ showPopupMenu() method\n\t/**\n\t * Shows the specified popup menu, ensuring it is displayed within\n\t * the bounds of the screen.\n\t * @param popup The popup menu\n\t * @param comp The component to show it for\n\t * @param x The x co-ordinate\n\t * @param y The y co-ordinate\n\t * @param point If true, then the popup originates from a single point;\n\t * otherwise it will originate from the component itself. This affects\n\t * positioning in the case where the popup does not fit onscreen.\n\t *\n\t * @since jEdit 4.1pre1\n\t */\n\tpublic static void showPopupMenu(JPopupMenu popup, Component comp,\n\t\tint x, int y, boolean point)\n\t{\n\t\tint offsetX = 0;\n\t\tint offsetY = 0;\n\n\t\tint extraOffset = point ? 1 : 0;\n\n\t\tComponent win = comp;\n\t\twhile(!(win instanceof Window || win == null))\n\t\t{\n\t\t\toffsetX += win.getX();\n\t\t\toffsetY += win.getY();\n\t\t\twin = win.getParent();\n\t\t}\n\n\t\tif(win != null)\n\t\t{\n\t\t\tDimension size = popup.getPreferredSize();\n\n\t\t\tRectangle screenSize = getScreenBounds();\n\n\t\t\tif(x + offsetX + size.width + win.getX() > screenSize.width\n\t\t\t\t&& x + offsetX + win.getX() >= size.width)\n\t\t\t{\n\t\t\t\t//System.err.println(\"x overflow\");\n\t\t\t\tif(point)\n\t\t\t\t\tx -= size.width + extraOffset;\n\t\t\t\telse\n\t\t\t\t\tx = win.getWidth() - size.width - offsetX + extraOffset;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx += extraOffset;\n\t\t\t}\n\n\t\t\t//System.err.println(\"y=\" + y + \",offsetY=\" + offsetY\n\t\t\t//\t+ \",size.height=\" + size.height\n\t\t\t//\t+ \",win.height=\" + win.getHeight());\n\t\t\tif(y + offsetY + size.height + win.getY() > screenSize.height\n\t\t\t\t&& y + offsetY + win.getY() >= size.height)\n\t\t\t{\n\t\t\t\tif(point)\n\t\t\t\t\ty = win.getHeight() - size.height - offsetY + extraOffset;\n\t\t\t\telse\n\t\t\t\t\ty = -size.height - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ty += extraOffset;\n\t\t\t}\n\n\t\t\tpopup.show(comp,x,y);\n\t\t}\n\t\telse\n\t\t\tpopup.show(comp,x + extraOffset,y + extraOffset);\n\n\t} //}}}\n\n\t//{{{ isAncestorOf() method\n\t/**\n\t * Returns if the first component is an ancestor of the\n\t * second by traversing up the component hierarchy.\n\t *\n\t * @param comp1 The ancestor\n\t * @param comp2 The component to check\n\t * @since jEdit 4.1pre5\n\t */\n\tpublic static boolean isAncestorOf(Component comp1, Component comp2)\n\t{\n\t\twhile(comp2 != null)\n\t\t{\n\t\t\tif(comp1 == comp2)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tcomp2 = comp2.getParent();\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ getParentDialog() method\n\t/**\n\t * Traverses the given component's parent tree looking for an\n\t * instance of JDialog, and return it. If not found, return null.\n\t * @param c The component\n\t */\n\tpublic static JDialog getParentDialog(Component c)\n\t{\n\t\treturn (JDialog) SwingUtilities.getAncestorOfClass(JDialog.class, c);\n\t} //}}}\n\n\t//{{{ getComponentParent() method\n\t/**\n\t * Finds a parent of the specified component.\n\t * @param comp The component\n\t * @param clazz Looks for a parent with this class (exact match, not\n\t * derived).\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static Component getComponentParent(Component comp, Class clazz)\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tif(comp == null)\n\t\t\t\tbreak;\n\n\t\t\tif(comp instanceof JComponent)\n\t\t\t{\n\t\t\t\tComponent real = (Component)((JComponent)comp)\n\t\t\t\t\t.getClientProperty(\"KORTE_REAL_FRAME\");\n\t\t\t\tif(real != null)\n\t\t\t\t\tcomp = real;\n\t\t\t}\n\n\t\t\tif(comp.getClass().equals(clazz))\n\t\t\t\treturn comp;\n\t\t\telse if(comp instanceof JPopupMenu)\n\t\t\t\tcomp = ((JPopupMenu)comp).getInvoker();\n\t\t\telse if(comp instanceof FloatingWindowContainer)\n\t\t\t{\n\t\t\t\tcomp = ((FloatingWindowContainer)comp)\n\t\t\t\t\t.getDockableWindowManager();\n\t\t\t}\n\t\t\telse\n\t\t\t\tcomp = comp.getParent();\n\t\t}\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ setEnabledRecursively() method\n\t/**\n\t * Call setEnabled() recursively on the container and its descendants.\n\t * @param c The container\n\t * @param enabled The enabled state to set\n\t * @since jEdit 4.3pre17\n\t */\n\tpublic static void setEnabledRecursively(Container c, boolean enabled)\n\t{\n\t\tfor (Component child: c.getComponents())\n\t\t{\n\t\t\tif (child instanceof Container)\n\t\t\t\tsetEnabledRecursively((Container)child, enabled);\n\t\t\telse\n\t\t\t\tchild.setEnabled(enabled);\n\t\t}\n\t\tc.setEnabled(enabled);\n\t} //}}}\n\n\t//{{{ getView() method\n\t/**\n\t * Finds the view parent of the specified component.\n\t * @since jEdit 4.0pre2\n\t */\n\tpublic static View getView(Component comp)\n\t{\n\t\treturn (View)getComponentParent(comp,View.class);\n\t} //}}}\n\n\t//{{{ addSizeSaver() method\n\t/**\n\t* Adds a SizeSaver to the specified Frame. For non-Frame's use {@link #saveGeometry(Window,String)}\n\t *\n\t * @param frame The Frame for which to save the size\n\t * @param name The prefix for the settings\n\t * @since jEdit 4.3pre6\n\t * @see #saveGeometry(Window,String)\n\t */\n\tpublic static void addSizeSaver(Frame frame, String name)\n\t{\n\t\taddSizeSaver(frame,frame.getParent(),name);\n\t} //}}}\n\n\t//{{{ addSizeSaver() method\n\t/**\n\t * Adds a SizeSaver to the specified Frame. For non-Frame's use {@link #saveGeometry(Window,Container,String)}\n\t *\n\t * @param frame The Frame for which to save the size\n\t * @param parent The parent to be relative to\n\t * @param name The prefix for the settings\n\t * @since jEdit 4.3pre7\n\t * @see #saveGeometry(Window,Container,String)\n\t */\n\tpublic static void addSizeSaver(Frame frame, Container parent, String name)\n\t{\n\t\tSizeSaver ss = new SizeSaver(frame,parent,name);\n\t\tframe.addWindowStateListener(ss);\n\t\tframe.addComponentListener(ss);\n\t} //}}}\n\n\t//{{{ initContinuousLayout() method\n\t/**\n\t * Init the continuous layout flag using the jEdit's property\n\t * appearance.continuousLayout\n\t *\n\t * @param split the split. It must never be null\n\t * @since jEdit 4.3pre9\n\t */\n\tpublic static void initContinuousLayout(JSplitPane split)\n\t{\n\t\tboolean continuousLayout = split.isContinuousLayout();\n\t\tif (continuousLayout != jEdit.getBooleanProperty(\"appearance.continuousLayout\"))\n\t\t\tsplit.setContinuousLayout(!continuousLayout);\n\t} //}}}\n\n\t//{{{ Package-private members\n\n\t//{{{ initializeDeprecatedIcons() method\n\t/**\n\t * Initializes a list of mappings between old icon names and new names\n\t */\n\tprivate static void initializeDeprecatedIcons()\n\t{\n\t\tdeprecatedIcons.put(\"File.png\",       \"16x16/mimetypes/text-x-generic.png\");\n\t\tdeprecatedIcons.put(\"Folder.png\",     \"16x16/places/folder.png\");\n\t\tdeprecatedIcons.put(\"OpenFolder.png\", \"16x16/status/folder-open.png\");\n\t\tdeprecatedIcons.put(\"OpenFile.png\",   \"16x16/actions/edit-select-all.png\");\n\t\tdeprecatedIcons.put(\"ReloadSmall.png\",\"16x16/actions/view-refresh.png\");\n\t\tdeprecatedIcons.put(\"DriveSmall.png\", \"16x16/devices/drive-harddisk.png\");\n\t\tdeprecatedIcons.put(\"New.png\",        \"22x22/actions/document-new.png\");\n\t\tdeprecatedIcons.put(\"NewDir.png\",     \"22x22/actions/folder-new.png\");\n\t\tdeprecatedIcons.put(\"Reload.png\",     \"22x22/actions/view-refresh.png\");\n\t\tdeprecatedIcons.put(\"Load.png\",       \"22x22/places/plugins.png\");\n\t\tdeprecatedIcons.put(\"Save.png\",       \"22x22/actions/document-save.png\");\n\t\tdeprecatedIcons.put(\"SaveAs.png\",     \"22x22/actions/document-save-as.png\");\n\t\tdeprecatedIcons.put(\"SaveAll.png\",    \"22x22/actions/document-save-all.png\");\n\t\tdeprecatedIcons.put(\"Open.png\",       \"22x22/actions/document-open.png\");\n\t\tdeprecatedIcons.put(\"Print.png\",      \"22x22/actions/document-print.png\");\n\t\tdeprecatedIcons.put(\"Drive.png\",      \"22x22/devices/drive-harddisk.png\");\n\t\tdeprecatedIcons.put(\"Clear.png\",      \"22x22/actions/edit-clear.png\");\n\t\tdeprecatedIcons.put(\"Run.png\",        \"22x22/actions/application-run.png\");\n\t\tdeprecatedIcons.put(\"RunAgain.png\",   \"22x22/actions/application-run-again.png\");\n\t\tdeprecatedIcons.put(\"RunToBuffer.png\",  \"22x22/actions/run-to-buffer.png\");\n\t\tdeprecatedIcons.put(\"CopyToBuffer.png\", \"22x22/actions/copy-to-buffer.png\");\n\t\tdeprecatedIcons.put(\"Plus.png\",       \"22x22/actions/list-add.png\");\n\t\tdeprecatedIcons.put(\"Minus.png\",      \"22x22/actions/list-remove.png\");\n\t\tdeprecatedIcons.put(\"Find.png\",       \"22x22/actions/edit-find.png\");\n\t\tdeprecatedIcons.put(\"FindAgain.png\",  \"22x22/actions/edit-find-next.png\");\n\t\tdeprecatedIcons.put(\"FindInDir.png\",  \"22x22/actions/edit-find-in-folder.png\");\n\t\tdeprecatedIcons.put(\"Parse.png\",      \"22x22/actions/document-reload2.png\");\n\t\tdeprecatedIcons.put(\"Delete.png\",     \"22x22/actions/edit-delete.png\");\n\t\tdeprecatedIcons.put(\"Paste.png\",      \"22x22/actions/edit-paste.png\");\n\t\tdeprecatedIcons.put(\"Cut.png\",        \"22x22/actions/edit-cut.png\");\n\t\tdeprecatedIcons.put(\"Copy.png\",       \"22x22/actions/edit-copy.png\");\n\t\tdeprecatedIcons.put(\"Undo.png\",       \"22x22/actions/edit-undo.png\");\n\t\tdeprecatedIcons.put(\"Redo.png\",       \"22x22/actions/edit-redo.png\");\n\t\tdeprecatedIcons.put(\"CurrentDir.png\", \"22x22/status/folder-visiting.png\");\n\t\tdeprecatedIcons.put(\"ParentDir.png\",  \"22x22/actions/go-parent.png\");\n\t\tdeprecatedIcons.put(\"PageSetup.png\",  \"22x22/actions/printer-setup.png\");\n\t\tdeprecatedIcons.put(\"Plugins.png\",    \"22x22/apps/system-installer.png\");\n\t\tdeprecatedIcons.put(\"Floppy.png\",     \"22x22/devices/media-floppy.png\");\n\t\tdeprecatedIcons.put(\"Stop.png\",       \"22x22/actions/process-stop.png\");\n\t\tdeprecatedIcons.put(\"Cancel.png\",     \"22x22/actions/process-stop.png\");\n\t\tdeprecatedIcons.put(\"Home.png\",       \"22x22/actions/go-home.png\");\n\t\tdeprecatedIcons.put(\"Help.png\",       \"22x22/apps/help-browser.png\");\n\t\tdeprecatedIcons.put(\"Properties.png\", \"22x22/actions/document-properties.png\");\n\t\tdeprecatedIcons.put(\"Preferences.png\",\"22x22/categories/preferences-system.png\");\n\t\tdeprecatedIcons.put(\"ZoomIn.png\",     \"22x22/actions/zoom-in.png\");\n\t\tdeprecatedIcons.put(\"ZoomOut.png\",    \"22x22/actions/zoom-out.png\");\n\t\tdeprecatedIcons.put(\"BrokenImage.png\",\"22x22/status/image-missing.png\");\n\t\tdeprecatedIcons.put(\"AdjustWidth.png\",\"22x22/actions/resize-horisontal.png\");\n\t\tdeprecatedIcons.put(\"ToolbarMenu.gif\",\"ToolbarMenu.gif\");\n\n\t\tdeprecatedIcons.put(\"Play.png\",\"22x22/actions/media-playback-start.png\");\n\t\tdeprecatedIcons.put(\"Pause.png\",\"22x22/actions/media-playback-pause.png\");\n\n\t\tdeprecatedIcons.put(\"MultipleResults.png\", \"22x22/actions/edit-find-multiple.png\");\n\t\tdeprecatedIcons.put(\"SingleResult.png\",    \"22x22/actions/edit-find-single.png\");\n\n\t\tdeprecatedIcons.put(\"NextFile.png\",    \"22x22/go-last.png\");\n\t\tdeprecatedIcons.put(\"PreviousFile.png\",\"22x22/go-first.png\");\n\n\t\tdeprecatedIcons.put(\"closebox.gif\",   \"10x10/actions/close.png\");\n\t\tdeprecatedIcons.put(\"normal.gif\",   \"10x10/status/document-unmodified.png\");\n\t\tdeprecatedIcons.put(\"readonly.gif\",   \"10x10/emblem/emblem-readonly.png\");\n\t\tdeprecatedIcons.put(\"dirty.gif\",    \"10x10/status/document-modified.png\");\n\t\tdeprecatedIcons.put(\"new.gif\",    \"10x10/status/document-new.png\");\n\n\t\tdeprecatedIcons.put(\"ArrowU.png\", \"22x22/actions/go-up.png\");\n\t\tdeprecatedIcons.put(\"ArrowR.png\", \"22x22/actions/go-next.png\");\n\t\tdeprecatedIcons.put(\"ArrowD.png\", \"22x22/actions/go-down.png\");\n\t\tdeprecatedIcons.put(\"ArrowL.png\", \"22x22/actions/go-previous.png\");\n\t\tdeprecatedIcons.put(\"arrow1.png\", \"16x16/actions/group-expand.png\");\n\t\tdeprecatedIcons.put(\"arrow2.png\", \"16x16/actions/group-collapse.png\");\n\n\t\tdeprecatedIcons.put(\"NewView.png\", \"22x22/actions/window-new.png\");\n\t\tdeprecatedIcons.put(\"UnSplit.png\", \"22x22/actions/window-unsplit.png\");\n\t\tdeprecatedIcons.put(\"SplitVertical.png\", \"22x22/actions/window-split-vertical.png\");\n\t\tdeprecatedIcons.put(\"SplitHorizontal.png\", \"22x22/actions/window-split-horizontal.png\");\n\n\t\tdeprecatedIcons.put(\"ButtonProperties.png\", \"22x22/actions/document-properties.png\");\n\n\t}\n\t//}}}\n\n\t//{{{ init() method\n\tstatic void init()\n\t{\n\t\tinitializeDeprecatedIcons();\n\n\t\t// Load the icon theme but fallback on the old icons\n\t\tString theme = jEdit.getProperty(\"icon-theme\", \"tango\");\n\t\tLog.log(Log.DEBUG, GUIUtilities.class, \"Icon theme set to: \"+theme);\n\t\tsetIconPath(\"jeditresource:/org/gjt/sp/jedit/icons/themes/\" + theme + '/');\n\t\tLog.log(Log.DEBUG, GUIUtilities.class, \"Loading icon theme from: \"+iconPath);\n\n\t\t// don't do this in static{} since we need jEdit.initMisc()\n\t\t// run first so we have the jeditresource: protocol\n\t\tNEW_BUFFER_ICON = loadIcon(\"new.gif\");\n\t\tDIRTY_BUFFER_ICON = loadIcon(\"dirty.gif\");\n\t\tREAD_ONLY_BUFFER_ICON = loadIcon(\"readonly.gif\");\n\t\tNORMAL_BUFFER_ICON = loadIcon(\"normal.gif\");\n\t\tWINDOW_ICON = loadIcon(jEdit.getProperty(\"logo.icon.medium\"));\n\t} //}}}\n\n\t//{{{ showSplashScreen() method\n\tstatic void showSplashScreen()\n\t{\n\t\tsplash = new SplashScreen();\n\t} //}}}\n\n\t//{{{ advanceSplashProgress() method\n\tstatic void advanceSplashProgress()\n\t{\n\t\tif(splash != null)\n\t\t\tsplash.advance();\n\t} //}}}\n\n\t//{{{ advanceSplashProgress() method\n\tstatic void advanceSplashProgress(String label)\n\t{\n\t\tif(splash != null)\n\t\t\tsplash.advance(label);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\tprivate static SplashScreen splash;\n\tprivate static Map<String, Icon> icons;\n\tprivate static String iconPath = \"jeditresource:/org/gjt/sp/jedit/icons/themes/\";\n\tprivate static final String defaultIconPath = \"jeditresource:/org/gjt/sp/jedit/icons/themes/\";\n\tprivate static final HashMap<String, String> deprecatedIcons = new HashMap<String, String>();\n\n\t//{{{ _loadMenuItem() method\n\tprivate static JMenuItem _loadMenuItem(String name, ActionContext context, boolean setMnemonic)\n\t{\n\n\t\tString label = jEdit.getProperty(name + \".label\");\n\t\tif (label == null)\n\t\t{\n\t\t\tlabel = name;\n\t\t}\n\t\tchar mnemonic;\n\t\tint index = label.indexOf('$');\n\t\tif (index != -1 && label.length() - index > 1)\n\t\t{\n\t\t\tmnemonic = Character.toLowerCase(label.charAt(index + 1));\n\t\t\tlabel = label.substring(0, index).concat(label.substring(++index));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmnemonic = '\\0';\n\t\t}\n\t\tJMenuItem mi;\n\t\tif (jEdit.getBooleanProperty(name + \".toggle\"))\n\t\t{\n\t\t\tmi = new EnhancedCheckBoxMenuItem(label, name, context);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmi = new EnhancedMenuItem(label, name, context);\n\t\t}\n\t\tif (!OperatingSystem.isMacOS() && setMnemonic && mnemonic != '\\0')\n\t\t{\n\t\t\tmi.setMnemonic(mnemonic);\n\t\t}\n\t\tIcon itemIcon = loadIcon(jEdit.getProperty(name + \".icon.small\"));\n\t\tif(itemIcon != null)\n\t\t{\n\t\t\tmi.setIcon(itemIcon);\n\t\t}\n\n\t\treturn mi;\n\t} //}}}\n\n\tprivate GUIUtilities() {}\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ SizeSaver class\n\t/**\n\t * A combined ComponentListener and WindowStateListener to continually save a Frames size.<br />\n\t * For non-Frame's use {@link GUIUtilities#saveGeometry(Window,String)}\n\t *\n\t * @author Björn Kautler\n\t * @version $Id: GUIUtilities.java 16406 2009-10-22 20:42:36Z shlomy $\n\t * @since jEdit 4.3pre6\n\t * @see GUIUtilities#saveGeometry(Window,Container,String)\n\t */\n\tprivate static class SizeSaver extends ComponentAdapter implements WindowStateListener\n\t{\n\t\tprivate Frame frame;\n\t\tprivate Container parent;\n\t\tprivate String name;\n\n\t\t//{{{ SizeSaver constructors\n\t\t/**\n\t\t * Constructs a new SizeSaver.\n\t\t *\n\t\t * @param frame The Frame for which to save the size\n\t\t * @param parent The parent to be relative to.\n\t\t * @param name The prefix for the settings\n\t\t */\n\t\tSizeSaver(Frame frame, Container parent, String name)\n\t\t{\n\t\t\tif (frame == null || name == null)\n\t\t\t{\n\t\t\t\tthrow new NullPointerException();\n\t\t\t}\n\t\t\tthis.frame = frame;\n\t\t\tthis.parent = parent;\n\t\t\tthis.name = name;\n\t\t} //}}}\n\n\t\t//{{{ windowStateChanged() method\n\t\tpublic void windowStateChanged(WindowEvent wse)\n\t\t{\n\t\t\tint extendedState = wse.getNewState();\n\t\t\tjEdit.setIntegerProperty(name + \".extendedState\",extendedState);\n\t\t\tRectangle bounds = frame.getBounds();\n\t\t\tsave(extendedState, bounds);\n\t\t} //}}}\n\n\t\t//{{{ save() method\n\t\tprivate void save(int extendedState, Rectangle bounds)\n\t\t{\n\t\t\tswitch (extendedState)\n\t\t\t{\n\t\t\t\tcase Frame.MAXIMIZED_VERT:\n\t\t\t\t\tjEdit.setIntegerProperty(name + \".x\",bounds.x);\n\t\t\t\t\tjEdit.setIntegerProperty(name + \".width\",bounds.width);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase Frame.MAXIMIZED_HORIZ:\n\t\t\t\t\tjEdit.setIntegerProperty(name + \".y\",bounds.y);\n\t\t\t\t\tjEdit.setIntegerProperty(name + \".height\",bounds.height);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase Frame.NORMAL:\n\t\t\t\t\tsaveGeometry(frame,parent,name );\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ componentResized() method\n\t\t@Override\n\t\tpublic void componentResized(ComponentEvent ce)\n\t\t{\n\t\t\tcomponentMoved(ce);\n\t\t} //}}}\n\n\t\t//{{{ componentMoved() method\n\t\t@Override\n\t\tpublic void componentMoved(ComponentEvent ce)\n\t\t{\n\t\t\tfinal Rectangle bounds = frame.getBounds();\n\t\t\tfinal Runnable sizeSaver = new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tint extendedState = frame.getExtendedState();\n\t\t\t\t\tsave(extendedState, bounds);\n\t\t\t\t}\n\t\t\t};\n\t\t\tnew Thread(\"Sizesavingdelay\")\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tThread.sleep(500L);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException ie)\n\t\t\t\t\t{\n\t\t\t\t\t}\n\t\t\t\t\tSwingUtilities.invokeLater(sizeSaver);\n\t\t\t\t}\n\t\t\t}.start();", "functions": [{"function_name": "setIconPath", "code": "\tpublic static void setIconPath(String iconPath)\n\t{\n\t\tGUIUtilities.iconPath = iconPath;\n\t\tif(icons != null)\n\t\t\ticons.clear();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "loadIcon", "code": "\tpublic static Icon loadIcon(String iconName)\n\t{\n\t\tif(iconName == null)\n\t\t\treturn null;\n\n\t\t// * Enable old icon naming scheme support\n\t\tif(deprecatedIcons != null && deprecatedIcons.containsKey(iconName))\n\t\t\ticonName = deprecatedIcons.get(iconName);\n\n\t\tif(icons == null)\n\t\t\ticons = new Hashtable<String, Icon>();\n\n\t\t// check if there is a cached version first\n\t\tIcon icon = icons.get(iconName);\n\t\tif(icon != null)\n\t\t\treturn icon;\n\n\t\tURL url;\n\n\t\ttry\n\t\t{\n\t\t\t// get the icon\n\t\t\tif(MiscUtilities.isURL(iconName))\n\t\t\t\turl = new URL(iconName);\n\t\t\telse\n\t\t\t\turl = new URL(iconPath + iconName);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\turl = new URL(defaultIconPath + iconName);\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,GUIUtilities.class,\n\t\t\t\t\t\"Icon not found: \" + iconName);\n\t\t\t\tLog.log(Log.ERROR,GUIUtilities.class,ex);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\ticon = new ImageIcon(url);\n\n\t\ticons.put(iconName,icon);\n\t\treturn icon;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "IF", "PARAM", "CALL", "ASSIGN", "CATCH", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "TRY", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [2, 13], [4, 14], [4, 15], [6, 16], [7, 17], [8, 18], [8, 19], [11, 20], [12, 21], [13, 22], [15, 23], [5, 24], [6, 25], [16, 26], [7, 27], [17, 28], [17, 29], [18, 30], [19, 31], [21, 32], [13, 33], [13, 34], [25, 35], [27, 36], [29, 37], [32, 38], [21, 39], [33, 40], [34, 41], [38, 42], [32, 43], [32, 44], [39, 45], [40, 46], [44, 47], [45, 48], [47, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 2], [14, 4], [15, 4], [16, 6], [17, 7], [18, 8], [19, 8], [20, 11], [21, 12], [22, 13], [23, 15], [24, 5], [25, 6], [26, 16], [27, 7], [28, 17], [29, 17], [30, 18], [31, 19], [32, 21], [33, 13], [34, 13], [35, 25], [36, 27], [37, 29], [38, 32], [39, 21], [40, 33], [41, 34], [42, 38], [43, 32], [44, 32], [45, 39], [46, 40], [47, 44], [48, 45], [49, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "getEditorIcon", "code": "\tpublic static Image getEditorIcon()\n\t{\n\t\treturn ((ImageIcon)loadIcon(jEdit.getProperty(\"logo.icon.medium\"))).getImage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getPluginIcon", "code": "\tpublic static Image getPluginIcon()\n\t{\n\t\treturn getEditorIcon();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadMenuBar", "code": "\tpublic static JMenuBar loadMenuBar(String name)\n\t{\n\t\treturn loadMenuBar(jEdit.getActionContext(),name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "loadMenuBar", "code": "\tpublic static JMenuBar loadMenuBar(ActionContext context, String name)\n\t{\n\t\tString menus = jEdit.getProperty(name);\n\t\tStringTokenizer st = new StringTokenizer(menus);\n\n\t\tJMenuBar mbar = new JMenuBar();\n\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString menuName = st.nextToken();\n\t\t\tmbar.add(loadMenu(context, menuName));\n\t\t}\n\n\t\treturn mbar;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [3, 10], [4, 11], [5, 12], [2, 13], [13, 14], [9, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 3], [11, 4], [12, 5], [13, 2], [14, 13], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "loadMenu", "code": "\tpublic static JMenu loadMenu(String name)\n\t{\n\t\treturn loadMenu(jEdit.getActionContext(),name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "loadMenu", "code": "\tpublic static JMenu loadMenu(ActionContext context, String name)\n\t{\n\t\treturn new EnhancedMenu(name,\n\t\t\tjEdit.getProperty(name.concat(\".label\")),\n\t\t\tcontext);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "loadPopupMenu", "code": "\tpublic static JPopupMenu loadPopupMenu(String name, JEditTextArea textArea, MouseEvent evt)\n\t{\n\t\treturn loadPopupMenu(jEdit.getActionContext(), name, textArea, evt);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "loadPopupMenu", "code": "\tpublic static JPopupMenu loadPopupMenu(String name)\n\t{\n\t\treturn loadPopupMenu(jEdit.getActionContext(),name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "loadPopupMenu", "code": "\tpublic static JPopupMenu loadPopupMenu(ActionContext context, String name)\n\t{\n\t\treturn loadPopupMenu(context, name, null, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "loadPopupMenu", "code": "\tpublic static JPopupMenu loadPopupMenu(ActionContext context, String name, JEditTextArea textArea, MouseEvent evt)\n\t{\n\t\tJPopupMenu menu = new JPopupMenu();\n\n\t\tString menuItems = jEdit.getProperty(name);\n\t\tif(menuItems != null)\n\t\t{\n\t\t\tStringTokenizer st = new StringTokenizer(menuItems);\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tString menuItemName = st.nextToken();\n\t\t\t\tif(menuItemName.equals(\"-\"))\n\t\t\t\t\tmenu.addSeparator();\n\t\t\t\telse\n\t\t\t\t\tmenu.add(loadMenuItem(context,menuItemName,false));\n\t\t\t}\n\t\t}\n\t\t// load menu items defined by services\n\t\tif (textArea != null)\n\t\t{\n\t\t\tList<JMenuItem> list = GUIUtilities.getServiceContextMenuItems(textArea, evt);\n\t\t\tif (!list.isEmpty())\n\t\t\t{\n\t\t\t\tmenu.addSeparator();\n\t\t\t}\n\t\t\tfor (JMenuItem mi : list)\n\t\t\t{\n\t\t\t\tmenu.add(mi);\n\t\t\t}\n\t\t}\n\n\t\treturn menu;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [3, 11], [2, 12], [2, 13], [2, 14], [10, 15], [3, 16], [3, 17], [11, 18], [4, 19], [5, 20], [13, 21], [16, 22], [14, 23], [16, 24], [16, 25], [17, 26], [12, 27], [13, 28], [24, 29], [24, 30], [24, 31], [29, 32], [25, 33], [30, 34], [34, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 3], [12, 2], [13, 2], [14, 2], [15, 10], [16, 3], [17, 3], [18, 11], [19, 4], [20, 5], [21, 13], [22, 16], [23, 14], [24, 16], [25, 16], [26, 17], [27, 12], [28, 13], [29, 24], [30, 24], [31, 24], [32, 29], [33, 25], [34, 30], [35, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getServiceContextMenuItems", "code": "\tpublic static List<JMenuItem> getServiceContextMenuItems(JEditTextArea textArea, MouseEvent evt)\n\t{\n\t\tList<JMenuItem> list = new ArrayList<JMenuItem>();\n\t\tString serviceClassName =  DynamicContextMenuService.class.getName();\n\t\tString[] menuServiceList = ServiceManager.getServiceNames(serviceClassName);\n\t\tfor (String menuServiceName : menuServiceList)\n\t\t{\n\t\t\tif (menuServiceName != null && menuServiceName.trim().length() > 0)\n\t\t\t{\n\t\t\t\tDynamicContextMenuService dcms = (DynamicContextMenuService)\n\t\t\t\t\t\tServiceManager.getService(serviceClassName, menuServiceName);\n\t\t\t\tif (dcms != null)\n\t\t\t\t{\n\t\t\t\t\tJMenuItem[] items = dcms.createMenu(textArea, evt);\n\t\t\t\t\tif (items != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tlist.addAll(Arrays.asList(items));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [5, 11], [8, 12], [8, 13], [8, 14], [12, 15], [12, 16], [13, 17], [15, 18], [15, 19], [16, 20], [13, 21], [13, 22], [17, 23], [19, 24], [21, 25], [14, 26], [25, 27], [22, 28], [21, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 5], [12, 8], [13, 8], [14, 8], [15, 12], [16, 12], [17, 13], [18, 15], [19, 15], [20, 16], [21, 13], [22, 13], [23, 17], [24, 19], [25, 21], [26, 14], [27, 25], [28, 22], [29, 21], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "loadMenuItem", "code": "\tpublic static JMenuItem loadMenuItem(String name)\n\t{\n\t\treturn loadMenuItem(jEdit.getActionContext(),name,true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "loadMenuItem", "code": "\tpublic static JMenuItem loadMenuItem(String name, boolean setMnemonic)\n\t{\n\t\treturn loadMenuItem(jEdit.getActionContext(),name,setMnemonic);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "loadMenuItem", "code": "\tpublic static JMenuItem loadMenuItem(ActionContext context, String name,\n\t\tboolean setMnemonic)\n\t{\n\t\tif(name.charAt(0) == '%')\n\t\t\treturn loadMenu(context,name.substring(1));\n\n\t\treturn _loadMenuItem(name, context, setMnemonic);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [8, 10], [8, 11], [9, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 8], [11, 8], [12, 9], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "loadMenuItem", "code": "\tpublic static JMenuItem loadMenuItem(EditAction editAction,\n\t\tboolean setMnemonic)\n\t{\n\t\tString name = editAction.getName();\n\t\tActionContext context = jEdit.getActionContext();\n\n\t\treturn _loadMenuItem(name, context, setMnemonic);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "loadToolBar", "code": "\tpublic static Container loadToolBar(String name)\n\t{\n\t\treturn loadToolBar(jEdit.getActionContext(),name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "loadToolBar", "code": "\tpublic static Container loadToolBar(ActionContext context, String name)\n\t{\n\t\tJPanel toolBar = new JPanel(new BorderLayout());\n\t\tJToolBar toolB = new JToolBar();\n\t\ttoolB.setFloatable(false);\n\t\ttoolB.setMargin(new Insets(0,0,0,0));\n\n\t\tString buttons = jEdit.getProperty(name);\n\t\tif(buttons != null)\n\t\t{\n\t\t\tStringTokenizer st = new StringTokenizer(buttons);\n\t\t\twhile(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tString button = st.nextToken();\n\t\t\t\tif(button.equals(\"-\"))\n\t\t\t\t{\n\t\t\t\t\ttoolB.addSeparator(new Dimension(12,12));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJButton b = loadToolButton(context,button);\n\t\t\t\t\tif(b != null)\n\t\t\t\t\t\ttoolB.add(b);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttoolBar.add(toolB);\n\t\treturn toolBar;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [0, 10], [0, 11], [2, 12], [2, 13], [9, 14], [3, 15], [10, 16], [11, 17], [4, 18], [5, 19], [12, 20], [16, 21], [16, 22], [16, 23], [16, 24], [19, 25], [12, 26], [12, 27], [13, 28], [26, 29], [26, 30], [26, 31], [29, 32], [27, 33], [30, 34], [26, 35], [30, 36], [34, 37], [31, 38], [35, 39], [39, 40], [39, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 0], [11, 0], [12, 2], [13, 2], [14, 9], [15, 3], [16, 10], [17, 11], [18, 4], [19, 5], [20, 12], [21, 16], [22, 16], [23, 16], [24, 16], [25, 19], [26, 12], [27, 12], [28, 13], [29, 26], [30, 26], [31, 26], [32, 29], [33, 27], [34, 30], [35, 26], [36, 30], [37, 34], [38, 31], [39, 35], [40, 39], [41, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "loadToolButton", "code": "\tpublic static EnhancedButton loadToolButton(String name)\n\t{\n\t\treturn loadToolButton(jEdit.getActionContext(),name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "loadToolButton", "code": "\tpublic static EnhancedButton loadToolButton(ActionContext context,\n\t\tString name)\n\t{\n\t\tString label = jEdit.getProperty(name + \".label\");\n\n\t\tif(label == null)\n\t\t\tlabel = name;\n\n\t\tIcon icon;\n\t\tString iconName = jEdit.getProperty(name + \".icon\");\n\t\tif(iconName == null)\n\t\t\ticon = loadIcon(jEdit.getProperty(\"broken-image.icon\"));\n\t\telse\n\t\t{\n\t\t\ticon = loadIcon(iconName);\n\t\t\tif(icon == null)\n\t\t\t\ticon = loadIcon(jEdit.getProperty(\"broken-image.icon\"));\n\t\t}\n\n\t\tString toolTip = prettifyMenuLabel(label);\n\t\tString shortcutLabel = getShortcutLabel(name);\n\t\tif(shortcutLabel != null)\n\t\t{\n\t\t\ttoolTip = toolTip + \" (\" + shortcutLabel + ')';\n\t\t}\n\n\t\tEnhancedButton b = new EnhancedButton(icon,toolTip,name,context);\n\t\tb.setPreferredSize(new Dimension(32,32));\n\t\treturn b;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [6, 15], [9, 16], [13, 17], [2, 18], [14, 19], [4, 20], [5, 21], [6, 22], [6, 23], [15, 24], [7, 25], [9, 26], [16, 27], [10, 28], [17, 29], [17, 30], [3, 31], [22, 32], [6, 33], [23, 34], [25, 35], [28, 36], [31, 37], [22, 38], [32, 39], [33, 40], [34, 41], [35, 42], [36, 43], [37, 44], [37, 45], [38, 46], [41, 47], [45, 48], [46, 49], [48, 50], [49, 51], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 6], [16, 9], [17, 13], [18, 2], [19, 14], [20, 4], [21, 5], [22, 6], [23, 6], [24, 15], [25, 7], [26, 9], [27, 16], [28, 10], [29, 17], [30, 17], [31, 3], [32, 22], [33, 6], [34, 23], [35, 25], [36, 28], [37, 31], [38, 22], [39, 32], [40, 33], [41, 34], [42, 35], [43, 36], [44, 37], [45, 37], [46, 38], [47, 41], [48, 45], [49, 46], [50, 48], [51, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51]]}, {"function_name": "prettifyMenuLabel", "code": "\tpublic static String prettifyMenuLabel(String label)\n\t{\n\t\tint index = label.indexOf('$');\n\t\tif(index != -1)\n\t\t{\n\t\t\tlabel = label.substring(0,index)\n\t\t\t\t.concat(label.substring(index + 1));\n\t\t}\n\t\treturn label;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [7, 9], [8, 10], [10, 11], [10, 12], [12, 13], [13, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 7], [10, 8], [11, 10], [12, 10], [13, 12], [14, 13], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getShortcutLabel", "code": "\tpublic static String getShortcutLabel(String action)\n\t{\n\t\tif(action == null)\n\t\t\treturn null;\n\t\telse\n\t\t{\n\t\t\tString shortcut1 = jEdit.getProperty(action + \".shortcut\");\n\t\t\tString shortcut2 = jEdit.getProperty(action + \".shortcut2\");\n\n\t\t\tif(shortcut1 == null || shortcut1.length() == 0)\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn null;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(shortcut2 == null || shortcut2.length() == 0)\n\t\t\t\t\treturn shortcut1;\n\t\t\t\telse\n\t\t\t\t\treturn shortcut1 + \" or \" + shortcut2;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [4, 9], [5, 10], [5, 11], [5, 12], [10, 13], [10, 14], [6, 15], [7, 16], [11, 17], [11, 18], [11, 19], [12, 20], [12, 21], [12, 22], [13, 23], [13, 24], [14, 25], [15, 26], [16, 27], [17, 28], [19, 29], [19, 30], [21, 31], [22, 32], [22, 33], [26, 34], [27, 35], [28, 36], [29, 37], [29, 38], [30, 39], [32, 40], [32, 41], [33, 42], [36, 43], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 4], [10, 5], [11, 5], [12, 5], [13, 10], [14, 10], [15, 6], [16, 7], [17, 11], [18, 11], [19, 11], [20, 12], [21, 12], [22, 12], [23, 13], [24, 13], [25, 14], [26, 15], [27, 16], [28, 17], [29, 19], [30, 19], [31, 21], [32, 22], [33, 22], [34, 26], [35, 27], [36, 28], [37, 29], [38, 29], [39, 30], [40, 32], [41, 32], [42, 33], [43, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "message", "code": "\tpublic static void message(Component comp, String name, Object[] args)\n\t{\n\t\thideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,\n\t\t\tjEdit.getProperty(name.concat(\".message\"),args),\n\t\t\tjEdit.getProperty(name.concat(\".title\"),args),\n\t\t\tJOptionPane.INFORMATION_MESSAGE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [4, 7], [6, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 4], [8, 6], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "error", "code": "\tpublic static void error(Component comp, String name, Object[] args)\n\t{\n\t\thideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,\n\t\t\tjEdit.getProperty(name.concat(\".message\"),args),\n\t\t\tjEdit.getProperty(name.concat(\".title\"),args),\n\t\t\tJOptionPane.ERROR_MESSAGE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [4, 7], [6, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 4], [8, 6], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "input", "code": "\tpublic static String input(Component comp, String name, Object def)\n\t{\n\t\treturn input(comp,name,null,def);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "inputProperty", "code": "\tpublic static String inputProperty(Component comp, String name,\n\t\tString def)\n\t{\n\t\treturn inputProperty(comp,name,null,def);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "input", "code": "\tpublic static String input(Component comp, String name,\n\t\tObject[] args, Object def)\n\t{\n\t\thideSplashScreen();\n\n\t\tString retVal = (String)JOptionPane.showInputDialog(comp,\n\t\t\tjEdit.getProperty(name.concat(\".message\"),args),\n\t\t\tjEdit.getProperty(name.concat(\".title\")),\n\t\t\tJOptionPane.QUESTION_MESSAGE,null,null,def);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [8, 9], [8, 10], [8, 11], [8, 12], [11, 13], [12, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 8], [10, 8], [11, 8], [12, 8], [13, 11], [14, 12], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "inputProperty", "code": "\tpublic static String inputProperty(Component comp, String name,\n\t\tObject[] args, String def)\n\t{\n\t\thideSplashScreen();\n\n\t\tString retVal = (String)JOptionPane.showInputDialog(comp,\n\t\t\tjEdit.getProperty(name.concat(\".message\"),args),\n\t\t\tjEdit.getProperty(name.concat(\".title\")),\n\t\t\tJOptionPane.QUESTION_MESSAGE,\n\t\t\tnull,null,jEdit.getProperty(def));\n\t\tif(retVal != null)\n\t\t\tjEdit.setProperty(def,retVal);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [0, 9], [2, 10], [8, 11], [3, 12], [12, 13], [12, 14], [12, 15], [12, 16], [12, 17], [16, 18], [17, 19], [18, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 0], [10, 2], [11, 8], [12, 3], [13, 12], [14, 12], [15, 12], [16, 12], [17, 12], [18, 16], [19, 17], [20, 18], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "confirm", "code": "\tpublic static int confirm(Component comp, String name,\n\t\tObject[] args, int buttons, int type)\n\t{\n\t\thideSplashScreen();\n\n\t\treturn JOptionPane.showConfirmDialog(comp,\n\t\t\tjEdit.getProperty(name + \".message\",args),\n\t\t\tjEdit.getProperty(name + \".title\"),buttons,type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [7, 9], [7, 10], [9, 11], [10, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 7], [10, 7], [11, 9], [12, 10], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "listConfirm", "code": "\tpublic static int listConfirm(Component comp, String name, String[] args,\n\t\tObject[] listModel)\n\t{\n\t\tJList list = new JList(listModel);\n\t\tlist.setVisibleRowCount(8);\n\n\t\tObject[] message = {\n\t\t\tjEdit.getProperty(name + \".message\",args),\n\t\t\tnew JScrollPane(list)\n\t\t};\n\n\t\treturn JOptionPane.showConfirmDialog(comp,\n\t\t\tmessage,\n\t\t\tjEdit.getProperty(name + \".title\"),\n\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\tJOptionPane.QUESTION_MESSAGE);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [8, 10], [9, 11], [3, 12], [10, 13], [2, 14], [2, 15], [13, 16], [15, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 8], [11, 9], [12, 3], [13, 10], [14, 2], [15, 2], [16, 13], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "listConfirm", "code": "\tpublic static int listConfirm(Component comp, String name, String[] args,\n\t\tObject[] listModel, List selectedItems)\n\t{\n\t\tJList list = new JList(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n\t\tlist.setVisibleRowCount(8);\n\t\tlist.addSelectionInterval(0,listModel.length - 1);\n\n\t\tObject[] message = {\n\t\t\tjEdit.getProperty(name + \".message\",args),\n\t\t\tnew JScrollPane(list)\n\t\t};\n\n\t\tint ret = JOptionPane.showConfirmDialog(comp,\n\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\tjEdit.getProperty(name + \".title\"),\n\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\tObject[] selectedValues = list.getSelectedValues();\n\t\tselectedItems.addAll(Arrays.asList(selectedValues));\n\t\treturn ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [11, 15], [2, 16], [3, 17], [12, 18], [12, 19], [13, 20], [5, 21], [17, 22], [4, 23], [4, 24], [18, 25], [22, 26], [24, 27], [26, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 11], [16, 2], [17, 3], [18, 12], [19, 12], [20, 13], [21, 5], [22, 17], [23, 4], [24, 4], [25, 18], [26, 22], [27, 24], [28, 26], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "showVFSFileDialog", "code": "\tpublic static String[] showVFSFileDialog(View view, String path,\n\t\tint type, boolean multipleSelection)\n\t{\n\t\t// the view should not be null, but some plugins might do this\n\t\tif(view == null)\n\t\t{\n\t\t\tLog.log(Log.WARNING,GUIUtilities.class,\n\t\t\t\"showVFSFileDialog(): given null view, assuming jEdit.getActiveView()\");\n\t\t\tview = jEdit.getActiveView();\n\t\t}\n\n\t\thideSplashScreen();\n\n\t\tVFSFileChooserDialog fileChooser = new VFSFileChooserDialog(\n\t\t\tview,path,type,multipleSelection);\n\t\treturn fileChooser.getSelectedFiles();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [3, 10], [2, 11], [10, 12], [3, 13], [3, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 3], [11, 2], [12, 10], [13, 3], [14, 3], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "showVFSFileDialog", "code": "\tpublic static String[] showVFSFileDialog(Dialog parent, View view,\n\t\tString path, int type, boolean multipleSelection)\n\t{\n\t\thideSplashScreen();\n\n\t\tVFSFileChooserDialog fileChooser = new VFSFileChooserDialog(\n\t\t\tparent, view, path, type, multipleSelection, true);\n\t\treturn fileChooser.getSelectedFiles();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "showVFSFileDialog", "code": "\tpublic static String[] showVFSFileDialog(Frame parent, View view,\n\t\tString path, int type, boolean multipleSelection)\n\t{\n\t\thideSplashScreen();\n\t\tVFSFileChooserDialog fileChooser = new VFSFileChooserDialog(\n\t\t\tparent, view, path, type, multipleSelection, true);\n\t\treturn fileChooser.getSelectedFiles();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [2, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 2], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "parseColor", "code": "\tpublic static Color parseColor(String name)\n\t{\n\t\treturn SyntaxUtilities.parseColor(name, Color.black);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "parseColor", "code": "\t@Deprecated\n\tpublic static Color parseColor(String name, Color defaultColor)\n\t{\n\t\treturn SyntaxUtilities.parseColor(name, defaultColor);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getColorHexString", "code": "\t@Deprecated\n\tpublic static String getColorHexString(Color c)\n\t{\n\t\treturn SyntaxUtilities.getColorHexString(c);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "parseStyle", "code": "\tpublic static SyntaxStyle parseStyle(String str, String family, int size)\n\t\tthrows IllegalArgumentException\n\t{\n\t\treturn SyntaxUtilities.parseStyle(str,family,size,true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parseStyle", "code": "\t@Deprecated\n\tpublic static SyntaxStyle parseStyle(String str, String family, int size,\n\t\tboolean color)\n\t\tthrows IllegalArgumentException\n\t{\n\t\treturn SyntaxUtilities.parseStyle(str,family,size,color);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getStyleString", "code": "\tpublic static String getStyleString(SyntaxStyle style)\n\t{\n\t\tStringBuilder buf = new StringBuilder();\n\n\t\tif (style.getForegroundColor() != null)\n\t\t{\n\t\t\tbuf.append(\"color:\").append(SyntaxUtilities.getColorHexString(style.getForegroundColor()));\n\t\t}\n\n\t\tif (style.getBackgroundColor() != null)\n\t\t{\n\t\t\tbuf.append(\" bgColor:\").append(SyntaxUtilities.getColorHexString(style.getBackgroundColor()));\n\t\t}\n\n\t\tFont font = style.getFont();\n\t\tif (!font.isPlain())\n\t\t{\n\t\t\tbuf.append(\" style:\");\n\t\t\tif (font.isItalic())\n\t\t\t\tbuf.append('i');\n\t\t\tif (font.isBold())\n\t\t\t\tbuf.append('b');\n\t\t}\n\n\t\treturn buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [5, 11], [2, 12], [2, 13], [3, 14], [10, 15], [10, 16], [11, 17], [11, 18], [6, 19], [12, 20], [13, 21], [2, 22], [4, 23], [5, 24], [12, 25], [13, 26], [22, 27], [23, 28], [23, 29], [24, 30], [24, 31], [25, 32], [26, 33], [29, 34], [31, 35], [34, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 5], [12, 2], [13, 2], [14, 3], [15, 10], [16, 10], [17, 11], [18, 11], [19, 6], [20, 12], [21, 13], [22, 2], [23, 4], [24, 5], [25, 12], [26, 13], [27, 22], [28, 23], [29, 23], [30, 24], [31, 24], [32, 25], [33, 26], [34, 29], [35, 31], [36, 34], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "loadStyles", "code": "\t@Deprecated\n\tpublic static SyntaxStyle[] loadStyles(String family, int size)\n\t{\n\t\treturn SyntaxUtilities.loadStyles(family,size,true);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "loadStyles", "code": "\t@Deprecated\n\tpublic static SyntaxStyle[] loadStyles(String family, int size, boolean color)\n\t{\n\t\treturn SyntaxUtilities.loadStyles(family, size, color);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "loadGeometry", "code": "\tpublic static void loadGeometry(Window win, Container parent, String name )\n\t{\n\t\tDimension size = win.getSize();\n\t\tint width = jEdit.getIntegerProperty(name + \".width\", size.width);\n\t\tint height = jEdit.getIntegerProperty(name + \".height\", size.height);\n\t\tint x = jEdit.getIntegerProperty(name + \".x\",50);\n\t\tint y = jEdit.getIntegerProperty(name + \".y\",50);\n\t\tif(parent != null)\n\t\t{\n\t\t\tPoint location = parent.getLocation();\n\t\t\tx = location.x + x;\n\t\t\ty = location.y + y;\n\t\t}\n\n\t\tint extState = jEdit.getIntegerProperty(name + \".extendedState\", Frame.NORMAL);\n\n\t\tRectangle desired = new Rectangle(x,y,width,height);\n\t\ttry\n\t\t{\n\t\t\tif(!Debug.DISABLE_MULTIHEAD)\n\t\t\t\tadjustForScreenBounds(desired);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t/* Workaround for OS X bug. */\n\t\t\tLog.log(Log.ERROR,GUIUtilities.class,e);\n\t\t}\n\n\t\tif(OperatingSystem.isX11() && Debug.GEOMETRY_WORKAROUND)\n\t\t\tnew UnixWorkaround(win,name,desired,extState);\n\t\telse\n\t\t{\n\t\t\twin.setBounds(desired);\n\t\t\tif(win instanceof Frame)\n\t\t\t\t((Frame)win).setExtendedState(extState);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "IF", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [2, 16], [5, 17], [1, 18], [1, 19], [14, 20], [3, 21], [4, 22], [5, 23], [17, 24], [6, 25], [7, 26], [8, 27], [9, 28], [10, 29], [18, 30], [1, 31], [15, 32], [16, 33], [22, 34], [5, 35], [5, 36], [25, 37], [25, 38], [26, 39], [26, 40], [27, 41], [28, 42], [34, 43], [35, 44], [36, 45], [23, 46], [38, 47], [40, 48], [41, 49], [42, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 2], [17, 5], [18, 1], [19, 1], [20, 14], [21, 3], [22, 4], [23, 5], [24, 17], [25, 6], [26, 7], [27, 8], [28, 9], [29, 10], [30, 18], [31, 1], [32, 15], [33, 16], [34, 22], [35, 5], [36, 5], [37, 25], [38, 25], [39, 26], [40, 26], [41, 27], [42, 28], [43, 34], [44, 35], [45, 36], [46, 23], [47, 38], [48, 40], [49, 41], [50, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "loadGeometry", "code": "\tpublic static void loadGeometry(Window win, String name)\n\t{\n\t\tloadGeometry(win, win.getParent(), name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "adjustForScreenBounds", "code": "\tpublic static void adjustForScreenBounds(Rectangle desired)\n\t{\n\t\t// Make sure the window is displayed in visible region\n\t\tRectangle osbounds = OperatingSystem.getScreenBounds(desired);\n\n\t\tif (desired.width > osbounds.width)\n\t\t{\n\t\t\tdesired.width = osbounds.width;\n\t\t}\n\t\tif (desired.x < osbounds.x)\n\t\t{\n\t\t\tdesired.x = osbounds.x;\n\t\t}\n\t\tif (desired.x + desired.width > osbounds.x + osbounds.width)\n\t\t{\n\t\t\tdesired.x = osbounds.x + osbounds.width - desired.width;\n\t\t}\n\t\tif (desired.height > osbounds.height)\n\t\t{\n\t\t\tdesired.height = osbounds.height;\n\t\t}\n\t\tif (desired.y < osbounds.y)\n\t\t{\n\t\t\tdesired.y = osbounds.y;\n\t\t}\n\t\tif (desired.y + desired.height > osbounds.y + osbounds.height)\n\t\t{\n\t\t\tdesired.y = osbounds.y + osbounds.height - desired.height;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [5, 13], [6, 14], [9, 15], [9, 16], [12, 17], [12, 18], [7, 19], [1, 20], [2, 21], [3, 22], [4, 23], [5, 24], [6, 25], [20, 26], [23, 27], [26, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 4], [13, 5], [14, 6], [15, 9], [16, 9], [17, 12], [18, 12], [19, 7], [20, 1], [21, 2], [22, 3], [23, 4], [24, 5], [25, 6], [26, 20], [27, 23], [28, 26], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "saveGeometry", "code": "\tpublic static void saveGeometry(Window win, String name)\n\t{\n\t\tsaveGeometry (win, win.getParent(), name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "saveGeometry", "code": "\tpublic static void saveGeometry(Window win, Container parent, String name)\n\t{\n\t\tif(win instanceof Frame)\n\t\t{\n\t\t\tjEdit.setIntegerProperty(name + \".extendedState\",\n\t\t\t\t((Frame)win).getExtendedState());\n\t\t}\n\n\t\tRectangle bounds = win.getBounds();\n\t\tint x = bounds.x;\n\t\tint y = bounds.y;\n\t\tif (parent != null)\n\t\t{\n\t\t\tRectangle parentBounds = parent.getBounds();\n\t\t\tx -= parentBounds.x;\n\t\t\ty -= parentBounds.y;\n\t\t}\n\t\tjEdit.setIntegerProperty(name + \".x\",x);\n\t\tjEdit.setIntegerProperty(name + \".y\",y);\n\t\tjEdit.setIntegerProperty(name + \".width\", bounds.width);\n\t\tjEdit.setIntegerProperty(name + \".height\", bounds.height);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [5, 14], [9, 15], [10, 16], [11, 17], [12, 18], [1, 19], [13, 20], [4, 21], [15, 22], [16, 23], [17, 24], [18, 25], [1, 26], [1, 27], [5, 28], [19, 29], [28, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 5], [15, 9], [16, 10], [17, 11], [18, 12], [19, 1], [20, 13], [21, 4], [22, 15], [23, 16], [24, 17], [25, 18], [26, 1], [27, 1], [28, 5], [29, 19], [30, 28], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "centerOnScreen", "code": "\t@Deprecated\n\tpublic static void centerOnScreen(Window win)\n\t{\n\t\tGraphicsDevice gd = GraphicsEnvironment\n\t\t\t.getLocalGraphicsEnvironment()\n\t\t\t.getDefaultScreenDevice();\n\t\tRectangle gcbounds = gd.getDefaultConfiguration().getBounds();\n\t\tint x = gcbounds.x + (gcbounds.width - win.getWidth()) / 2;\n\t\tint y = gcbounds.y + (gcbounds.height - win.getHeight()) / 2;\n\t\twin.setLocation(x,y);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [4, 10], [7, 11], [8, 12], [9, 13], [10, 14], [11, 15], [11, 16], [12, 17], [12, 18], [16, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 4], [11, 7], [12, 8], [13, 9], [14, 10], [15, 11], [16, 11], [17, 12], [18, 12], [19, 16], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "hideSplashScreen", "code": "\tpublic static void hideSplashScreen()\n\t{\n\t\tif(splash != null)\n\t\t{\n\t\t\tsplash.dispose();\n\t\t\tsplash = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createMultilineLabel", "code": "\tpublic static JComponent createMultilineLabel(String str)\n\t{\n\t\tJPanel panel = new JPanel(new VariableGridLayout(\n\t\t\tVariableGridLayout.FIXED_NUM_COLUMNS,1,1,1));\n\t\tint lastOffset = 0;\n\t\twhile(true)\n\t\t{\n\t\t\tint index = str.indexOf('\\n',lastOffset);\n\t\t\tif(index == -1)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tpanel.add(new JLabel(str.substring(lastOffset,index)));\n\t\t\t\tlastOffset = index + 1;\n\t\t\t}\n\t\t}\n\n\t\tif(lastOffset != str.length())\n\t\t\tpanel.add(new JLabel(str.substring(lastOffset)));\n\n\t\treturn panel;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [2, 9], [7, 10], [3, 11], [3, 12], [4, 13], [5, 14], [9, 15], [11, 16], [11, 17], [14, 18], [15, 19], [17, 20], [12, 21], [18, 22], [18, 23], [18, 24], [11, 25], [11, 26], [21, 27], [25, 28], [26, 29], [28, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 2], [10, 7], [11, 3], [12, 3], [13, 4], [14, 5], [15, 9], [16, 11], [17, 11], [18, 14], [19, 15], [20, 17], [21, 12], [22, 18], [23, 18], [24, 18], [25, 11], [26, 11], [27, 21], [28, 25], [29, 26], [30, 28], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "requestFocus", "code": "\tpublic static void requestFocus(final Window win, final Component comp)\n\t{\n\t\twin.addWindowFocusListener(new WindowAdapter()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void windowGainedFocus(WindowEvent evt)\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcomp.requestFocusInWindow();\n\t\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\twin.removeWindowFocusListener(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "isPopupTrigger", "code": "\tpublic static boolean isPopupTrigger(MouseEvent evt)\n\t{\n\t\treturn TextAreaMouseHandler.isRightButton(evt.getModifiers());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isMiddleButton", "code": "\tpublic static boolean isMiddleButton(int modifiers)\n\t{\n\t\treturn TextAreaMouseHandler.isMiddleButton(modifiers);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isRightButton", "code": "\tpublic static boolean isRightButton(int modifiers)\n\t{\n\t\treturn TextAreaMouseHandler.isRightButton(modifiers);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getScreenBounds", "code": "\tpublic static Rectangle getScreenBounds()\n\t{\n\t\tRectangle bounds = GraphicsEnvironment.getLocalGraphicsEnvironment().\n\t\t\tgetMaximumWindowBounds();\n\t\tGraphicsDevice [] devices = GraphicsEnvironment.\n\t\t\tgetLocalGraphicsEnvironment().getScreenDevices();\n\t\tif (devices.length > 1)\n\t\t{\n\t\t\tfor (GraphicsDevice device: devices)\n\t\t\t{\n\t\t\t\tfor (GraphicsConfiguration config: device.getConfigurations())\n\t\t\t\t\tbounds = bounds.union(config.getBounds());\n\t\t\t}\n\t\t}\n\t\treturn bounds;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LOOP", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [3, 8], [4, 9], [8, 10], [9, 11], [6, 12], [12, 13], [12, 14], [13, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 3], [9, 4], [10, 8], [11, 9], [12, 6], [13, 12], [14, 12], [15, 13], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "showPopupMenu", "code": "\tpublic static void showPopupMenu(JPopupMenu popup, Component comp,\n\t\tint x, int y)\n\t{\n\t\tshowPopupMenu(popup,comp,x,y,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "showPopupMenu", "code": "\tpublic static void showPopupMenu(JPopupMenu popup, Component comp,\n\t\tint x, int y, boolean point)\n\t{\n\t\tint offsetX = 0;\n\t\tint offsetY = 0;\n\n\t\tint extraOffset = point ? 1 : 0;\n\n\t\tComponent win = comp;\n\t\twhile(!(win instanceof Window || win == null))\n\t\t{\n\t\t\toffsetX += win.getX();\n\t\t\toffsetY += win.getY();\n\t\t\twin = win.getParent();\n\t\t}\n\n\t\tif(win != null)\n\t\t{\n\t\t\tDimension size = popup.getPreferredSize();\n\n\t\t\tRectangle screenSize = getScreenBounds();\n\n\t\t\tif(x + offsetX + size.width + win.getX() > screenSize.width\n\t\t\t\t&& x + offsetX + win.getX() >= size.width)\n\t\t\t{\n\t\t\t\t//System.err.println(\"x overflow\");\n\t\t\t\tif(point)\n\t\t\t\t\tx -= size.width + extraOffset;\n\t\t\t\telse\n\t\t\t\t\tx = win.getWidth() - size.width - offsetX + extraOffset;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx += extraOffset;\n\t\t\t}\n\n\t\t\t//System.err.println(\"y=\" + y + \",offsetY=\" + offsetY\n\t\t\t//\t+ \",size.height=\" + size.height\n\t\t\t//\t+ \",win.height=\" + win.getHeight());\n\t\t\tif(y + offsetY + size.height + win.getY() > screenSize.height\n\t\t\t\t&& y + offsetY + win.getY() >= size.height)\n\t\t\t{\n\t\t\t\tif(point)\n\t\t\t\t\ty = win.getHeight() - size.height - offsetY + extraOffset;\n\t\t\t\telse\n\t\t\t\t\ty = -size.height - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ty += extraOffset;\n\t\t\t}\n\n\t\t\tpopup.show(comp,x,y);\n\t\t}\n\t\telse\n\t\t\tpopup.show(comp,x + extraOffset,y + extraOffset);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [12, 19], [13, 20], [13, 21], [4, 22], [5, 23], [6, 24], [14, 25], [14, 26], [1, 27], [15, 28], [16, 29], [2, 30], [2, 31], [2, 32], [20, 33], [22, 34], [22, 35], [15, 36], [28, 37], [28, 38], [16, 39], [29, 40], [29, 41], [17, 42], [18, 43], [30, 44], [31, 45], [32, 46], [15, 47], [37, 48], [38, 49], [16, 50], [40, 51], [41, 52], [36, 53], [36, 54], [48, 55], [48, 56], [49, 57], [49, 58], [39, 59], [39, 60], [51, 61], [51, 62], [52, 63], [52, 64], [53, 65], [54, 66], [58, 67], [59, 68], [60, 69], [64, 70], [65, 71], [66, 72], [68, 73], [72, 74], [73, 75], [74, 76], [75, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 12], [20, 13], [21, 13], [22, 4], [23, 5], [24, 6], [25, 14], [26, 14], [27, 1], [28, 15], [29, 16], [30, 2], [31, 2], [32, 2], [33, 20], [34, 22], [35, 22], [36, 15], [37, 28], [38, 28], [39, 16], [40, 29], [41, 29], [42, 17], [43, 18], [44, 30], [45, 31], [46, 32], [47, 15], [48, 37], [49, 38], [50, 16], [51, 40], [52, 41], [53, 36], [54, 36], [55, 48], [56, 48], [57, 49], [58, 49], [59, 39], [60, 39], [61, 51], [62, 51], [63, 52], [64, 52], [65, 53], [66, 54], [67, 58], [68, 59], [69, 60], [70, 64], [71, 65], [72, 66], [73, 68], [74, 72], [75, 73], [76, 74], [77, 75], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "isAncestorOf", "code": "\tpublic static boolean isAncestorOf(Component comp1, Component comp2)\n\t{\n\t\twhile(comp2 != null)\n\t\t{\n\t\t\tif(comp1 == comp2)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tcomp2 = comp2.getParent();\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [7, 10], [7, 11], [9, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 7], [11, 7], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getParentDialog", "code": "\tpublic static JDialog getParentDialog(Component c)\n\t{\n\t\treturn (JDialog) SwingUtilities.getAncestorOfClass(JDialog.class, c);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getComponentParent", "code": "\tpublic static Component getComponentParent(Component comp, Class clazz)\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tif(comp == null)\n\t\t\t\tbreak;\n\n\t\t\tif(comp instanceof JComponent)\n\t\t\t{\n\t\t\t\tComponent real = (Component)((JComponent)comp)\n\t\t\t\t\t.getClientProperty(\"KORTE_REAL_FRAME\");\n\t\t\t\tif(real != null)\n\t\t\t\t\tcomp = real;\n\t\t\t}\n\n\t\t\tif(comp.getClass().equals(clazz))\n\t\t\t\treturn comp;\n\t\t\telse if(comp instanceof JPopupMenu)\n\t\t\t\tcomp = ((JPopupMenu)comp).getInvoker();\n\t\t\telse if(comp instanceof FloatingWindowContainer)\n\t\t\t{\n\t\t\t\tcomp = ((FloatingWindowContainer)comp)\n\t\t\t\t\t.getDockableWindowManager();\n\t\t\t}\n\t\t\telse\n\t\t\t\tcomp = comp.getParent();\n\t\t}\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "IF", "IF", "RETURN", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [7, 10], [7, 11], [7, 12], [8, 13], [9, 14], [9, 15], [10, 16], [10, 17], [12, 18], [8, 19], [8, 20], [15, 21], [16, 22], [10, 23], [19, 24], [16, 25], [19, 26], [24, 27], [25, 28], [16, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 7], [11, 7], [12, 7], [13, 8], [14, 9], [15, 9], [16, 10], [17, 10], [18, 12], [19, 8], [20, 8], [21, 15], [22, 16], [23, 10], [24, 19], [25, 16], [26, 19], [27, 24], [28, 25], [29, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "setEnabledRecursively", "code": "\tpublic static void setEnabledRecursively(Container c, boolean enabled)\n\t{\n\t\tfor (Component child: c.getComponents())\n\t\t{\n\t\t\tif (child instanceof Container)\n\t\t\t\tsetEnabledRecursively((Container)child, enabled);\n\t\t\telse\n\t\t\t\tchild.setEnabled(enabled);\n\t\t}\n\t\tc.setEnabled(enabled);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getView", "code": "\tpublic static View getView(Component comp)\n\t{\n\t\treturn (View)getComponentParent(comp,View.class);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addSizeSaver", "code": "\tpublic static void addSizeSaver(Frame frame, String name)\n\t{\n\t\taddSizeSaver(frame,frame.getParent(),name);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "addSizeSaver", "code": "\tpublic static void addSizeSaver(Frame frame, Container parent, String name)\n\t{\n\t\tSizeSaver ss = new SizeSaver(frame,parent,name);\n\t\tframe.addWindowStateListener(ss);\n\t\tframe.addComponentListener(ss);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "initContinuousLayout", "code": "\tpublic static void initContinuousLayout(JSplitPane split)\n\t{\n\t\tboolean continuousLayout = split.isContinuousLayout();\n\t\tif (continuousLayout != jEdit.getBooleanProperty(\"appearance.continuousLayout\"))\n\t\t\tsplit.setContinuousLayout(!continuousLayout);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "initializeDeprecatedIcons", "code": "\tprivate static void initializeDeprecatedIcons()\n\t{\n\t\tdeprecatedIcons.put(\"File.png\",       \"16x16/mimetypes/text-x-generic.png\");\n\t\tdeprecatedIcons.put(\"Folder.png\",     \"16x16/places/folder.png\");\n\t\tdeprecatedIcons.put(\"OpenFolder.png\", \"16x16/status/folder-open.png\");\n\t\tdeprecatedIcons.put(\"OpenFile.png\",   \"16x16/actions/edit-select-all.png\");\n\t\tdeprecatedIcons.put(\"ReloadSmall.png\",\"16x16/actions/view-refresh.png\");\n\t\tdeprecatedIcons.put(\"DriveSmall.png\", \"16x16/devices/drive-harddisk.png\");\n\t\tdeprecatedIcons.put(\"New.png\",        \"22x22/actions/document-new.png\");\n\t\tdeprecatedIcons.put(\"NewDir.png\",     \"22x22/actions/folder-new.png\");\n\t\tdeprecatedIcons.put(\"Reload.png\",     \"22x22/actions/view-refresh.png\");\n\t\tdeprecatedIcons.put(\"Load.png\",       \"22x22/places/plugins.png\");\n\t\tdeprecatedIcons.put(\"Save.png\",       \"22x22/actions/document-save.png\");\n\t\tdeprecatedIcons.put(\"SaveAs.png\",     \"22x22/actions/document-save-as.png\");\n\t\tdeprecatedIcons.put(\"SaveAll.png\",    \"22x22/actions/document-save-all.png\");\n\t\tdeprecatedIcons.put(\"Open.png\",       \"22x22/actions/document-open.png\");\n\t\tdeprecatedIcons.put(\"Print.png\",      \"22x22/actions/document-print.png\");\n\t\tdeprecatedIcons.put(\"Drive.png\",      \"22x22/devices/drive-harddisk.png\");\n\t\tdeprecatedIcons.put(\"Clear.png\",      \"22x22/actions/edit-clear.png\");\n\t\tdeprecatedIcons.put(\"Run.png\",        \"22x22/actions/application-run.png\");\n\t\tdeprecatedIcons.put(\"RunAgain.png\",   \"22x22/actions/application-run-again.png\");\n\t\tdeprecatedIcons.put(\"RunToBuffer.png\",  \"22x22/actions/run-to-buffer.png\");\n\t\tdeprecatedIcons.put(\"CopyToBuffer.png\", \"22x22/actions/copy-to-buffer.png\");\n\t\tdeprecatedIcons.put(\"Plus.png\",       \"22x22/actions/list-add.png\");\n\t\tdeprecatedIcons.put(\"Minus.png\",      \"22x22/actions/list-remove.png\");\n\t\tdeprecatedIcons.put(\"Find.png\",       \"22x22/actions/edit-find.png\");\n\t\tdeprecatedIcons.put(\"FindAgain.png\",  \"22x22/actions/edit-find-next.png\");\n\t\tdeprecatedIcons.put(\"FindInDir.png\",  \"22x22/actions/edit-find-in-folder.png\");\n\t\tdeprecatedIcons.put(\"Parse.png\",      \"22x22/actions/document-reload2.png\");\n\t\tdeprecatedIcons.put(\"Delete.png\",     \"22x22/actions/edit-delete.png\");\n\t\tdeprecatedIcons.put(\"Paste.png\",      \"22x22/actions/edit-paste.png\");\n\t\tdeprecatedIcons.put(\"Cut.png\",        \"22x22/actions/edit-cut.png\");\n\t\tdeprecatedIcons.put(\"Copy.png\",       \"22x22/actions/edit-copy.png\");\n\t\tdeprecatedIcons.put(\"Undo.png\",       \"22x22/actions/edit-undo.png\");\n\t\tdeprecatedIcons.put(\"Redo.png\",       \"22x22/actions/edit-redo.png\");\n\t\tdeprecatedIcons.put(\"CurrentDir.png\", \"22x22/status/folder-visiting.png\");\n\t\tdeprecatedIcons.put(\"ParentDir.png\",  \"22x22/actions/go-parent.png\");\n\t\tdeprecatedIcons.put(\"PageSetup.png\",  \"22x22/actions/printer-setup.png\");\n\t\tdeprecatedIcons.put(\"Plugins.png\",    \"22x22/apps/system-installer.png\");\n\t\tdeprecatedIcons.put(\"Floppy.png\",     \"22x22/devices/media-floppy.png\");\n\t\tdeprecatedIcons.put(\"Stop.png\",       \"22x22/actions/process-stop.png\");\n\t\tdeprecatedIcons.put(\"Cancel.png\",     \"22x22/actions/process-stop.png\");\n\t\tdeprecatedIcons.put(\"Home.png\",       \"22x22/actions/go-home.png\");\n\t\tdeprecatedIcons.put(\"Help.png\",       \"22x22/apps/help-browser.png\");\n\t\tdeprecatedIcons.put(\"Properties.png\", \"22x22/actions/document-properties.png\");\n\t\tdeprecatedIcons.put(\"Preferences.png\",\"22x22/categories/preferences-system.png\");\n\t\tdeprecatedIcons.put(\"ZoomIn.png\",     \"22x22/actions/zoom-in.png\");\n\t\tdeprecatedIcons.put(\"ZoomOut.png\",    \"22x22/actions/zoom-out.png\");\n\t\tdeprecatedIcons.put(\"BrokenImage.png\",\"22x22/status/image-missing.png\");\n\t\tdeprecatedIcons.put(\"AdjustWidth.png\",\"22x22/actions/resize-horisontal.png\");\n\t\tdeprecatedIcons.put(\"ToolbarMenu.gif\",\"ToolbarMenu.gif\");\n\n\t\tdeprecatedIcons.put(\"Play.png\",\"22x22/actions/media-playback-start.png\");\n\t\tdeprecatedIcons.put(\"Pause.png\",\"22x22/actions/media-playback-pause.png\");\n\n\t\tdeprecatedIcons.put(\"MultipleResults.png\", \"22x22/actions/edit-find-multiple.png\");\n\t\tdeprecatedIcons.put(\"SingleResult.png\",    \"22x22/actions/edit-find-single.png\");\n\n\t\tdeprecatedIcons.put(\"NextFile.png\",    \"22x22/go-last.png\");\n\t\tdeprecatedIcons.put(\"PreviousFile.png\",\"22x22/go-first.png\");\n\n\t\tdeprecatedIcons.put(\"closebox.gif\",   \"10x10/actions/close.png\");\n\t\tdeprecatedIcons.put(\"normal.gif\",   \"10x10/status/document-unmodified.png\");\n\t\tdeprecatedIcons.put(\"readonly.gif\",   \"10x10/emblem/emblem-readonly.png\");\n\t\tdeprecatedIcons.put(\"dirty.gif\",    \"10x10/status/document-modified.png\");\n\t\tdeprecatedIcons.put(\"new.gif\",    \"10x10/status/document-new.png\");\n\n\t\tdeprecatedIcons.put(\"ArrowU.png\", \"22x22/actions/go-up.png\");\n\t\tdeprecatedIcons.put(\"ArrowR.png\", \"22x22/actions/go-next.png\");\n\t\tdeprecatedIcons.put(\"ArrowD.png\", \"22x22/actions/go-down.png\");\n\t\tdeprecatedIcons.put(\"ArrowL.png\", \"22x22/actions/go-previous.png\");\n\t\tdeprecatedIcons.put(\"arrow1.png\", \"16x16/actions/group-expand.png\");\n\t\tdeprecatedIcons.put(\"arrow2.png\", \"16x16/actions/group-collapse.png\");\n\n\t\tdeprecatedIcons.put(\"NewView.png\", \"22x22/actions/window-new.png\");\n\t\tdeprecatedIcons.put(\"UnSplit.png\", \"22x22/actions/window-unsplit.png\");\n\t\tdeprecatedIcons.put(\"SplitVertical.png\", \"22x22/actions/window-split-vertical.png\");\n\t\tdeprecatedIcons.put(\"SplitHorizontal.png\", \"22x22/actions/window-split-horizontal.png\");\n\n\t\tdeprecatedIcons.put(\"ButtonProperties.png\", \"22x22/actions/document-properties.png\");", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [0, 54], [0, 55], [0, 56], [0, 57], [0, 58], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 64], [0, 65], [0, 66], [0, 67], [0, 68], [0, 69], [0, 70], [0, 71], [1, 72], [1, 73], [2, 74], [2, 75], [3, 76], [3, 77], [4, 78], [4, 79], [5, 80], [5, 81], [6, 82], [6, 83], [7, 84], [7, 85], [8, 86], [8, 87], [9, 88], [9, 89], [10, 90], [10, 91], [11, 92], [11, 93], [12, 94], [12, 95], [13, 96], [13, 97], [14, 98], [14, 99], [15, 100], [15, 101], [16, 102], [16, 103], [17, 104], [17, 105], [18, 106], [18, 107], [19, 108], [19, 109], [20, 110], [20, 111], [21, 112], [21, 113], [22, 114], [22, 115], [23, 116], [23, 117], [24, 118], [24, 119], [25, 120], [25, 121], [26, 122], [26, 123], [27, 124], [27, 125], [28, 126], [28, 127], [29, 128], [29, 129], [30, 130], [30, 131], [31, 132], [31, 133], [32, 134], [32, 135], [33, 136], [33, 137], [34, 138], [34, 139], [35, 140], [35, 141], [36, 142], [36, 143], [37, 144], [37, 145], [38, 146], [38, 147], [39, 148], [39, 149], [40, 150], [40, 151], [41, 152], [41, 153], [42, 154], [42, 155], [43, 156], [43, 157], [44, 158], [44, 159], [45, 160], [45, 161], [46, 162], [46, 163], [47, 164], [47, 165], [48, 166], [48, 167], [49, 168], [49, 169], [50, 170], [50, 171], [51, 172], [51, 173], [52, 174], [52, 175], [53, 176], [53, 177], [54, 178], [54, 179], [55, 180], [55, 181], [56, 182], [56, 183], [57, 184], [57, 185], [58, 186], [58, 187], [59, 188], [59, 189], [60, 190], [60, 191], [61, 192], [61, 193], [62, 194], [62, 195], [63, 196], [63, 197], [64, 198], [64, 199], [65, 200], [65, 201], [66, 202], [66, 203], [67, 204], [67, 205], [68, 206], [68, 207], [69, 208], [69, 209], [70, 210], [70, 211], [71, 212], [71, 213], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 0], [55, 0], [56, 0], [57, 0], [58, 0], [59, 0], [60, 0], [61, 0], [62, 0], [63, 0], [64, 0], [65, 0], [66, 0], [67, 0], [68, 0], [69, 0], [70, 0], [71, 0], [72, 1], [73, 1], [74, 2], [75, 2], [76, 3], [77, 3], [78, 4], [79, 4], [80, 5], [81, 5], [82, 6], [83, 6], [84, 7], [85, 7], [86, 8], [87, 8], [88, 9], [89, 9], [90, 10], [91, 10], [92, 11], [93, 11], [94, 12], [95, 12], [96, 13], [97, 13], [98, 14], [99, 14], [100, 15], [101, 15], [102, 16], [103, 16], [104, 17], [105, 17], [106, 18], [107, 18], [108, 19], [109, 19], [110, 20], [111, 20], [112, 21], [113, 21], [114, 22], [115, 22], [116, 23], [117, 23], [118, 24], [119, 24], [120, 25], [121, 25], [122, 26], [123, 26], [124, 27], [125, 27], [126, 28], [127, 28], [128, 29], [129, 29], [130, 30], [131, 30], [132, 31], [133, 31], [134, 32], [135, 32], [136, 33], [137, 33], [138, 34], [139, 34], [140, 35], [141, 35], [142, 36], [143, 36], [144, 37], [145, 37], [146, 38], [147, 38], [148, 39], [149, 39], [150, 40], [151, 40], [152, 41], [153, 41], [154, 42], [155, 42], [156, 43], [157, 43], [158, 44], [159, 44], [160, 45], [161, 45], [162, 46], [163, 46], [164, 47], [165, 47], [166, 48], [167, 48], [168, 49], [169, 49], [170, 50], [171, 50], [172, 51], [173, 51], [174, 52], [175, 52], [176, 53], [177, 53], [178, 54], [179, 54], [180, 55], [181, 55], [182, 56], [183, 56], [184, 57], [185, 57], [186, 58], [187, 58], [188, 59], [189, 59], [190, 60], [191, 60], [192, 61], [193, 61], [194, 62], [195, 62], [196, 63], [197, 63], [198, 64], [199, 64], [200, 65], [201, 65], [202, 66], [203, 66], [204, 67], [205, 67], [206, 68], [207, 68], [208, 69], [209, 69], [210, 70], [211, 70], [212, 71], [213, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213]]}, {"function_name": "init", "code": "\tstatic void init()\n\t{\n\t\tinitializeDeprecatedIcons();\n\n\t\t// Load the icon theme but fallback on the old icons\n\t\tString theme = jEdit.getProperty(\"icon-theme\", \"tango\");\n\t\tLog.log(Log.DEBUG, GUIUtilities.class, \"Icon theme set to: \"+theme);\n\t\tsetIconPath(\"jeditresource:/org/gjt/sp/jedit/icons/themes/\" + theme + '/');\n\t\tLog.log(Log.DEBUG, GUIUtilities.class, \"Loading icon theme from: \"+iconPath);\n\n\t\t// don't do this in static{} since we need jEdit.initMisc()\n\t\t// run first so we have the jeditresource: protocol\n\t\tNEW_BUFFER_ICON = loadIcon(\"new.gif\");\n\t\tDIRTY_BUFFER_ICON = loadIcon(\"dirty.gif\");\n\t\tREAD_ONLY_BUFFER_ICON = loadIcon(\"readonly.gif\");\n\t\tNORMAL_BUFFER_ICON = loadIcon(\"normal.gif\");\n\t\tWINDOW_ICON = loadIcon(jEdit.getProperty(\"logo.icon.medium\"));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [3, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [9, 18], [1, 19], [11, 20], [12, 21], [13, 22], [14, 23], [15, 24], [16, 25], [17, 26], [17, 27], [18, 28], [19, 29], [19, 30], [20, 31], [27, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 3], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 9], [19, 1], [20, 11], [21, 12], [22, 13], [23, 14], [24, 15], [25, 16], [26, 17], [27, 17], [28, 18], [29, 19], [30, 19], [31, 20], [32, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "showSplashScreen", "code": "\tstatic void showSplashScreen()\n\t{\n\t\tsplash = new SplashScreen();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "advanceSplashProgress", "code": "\tstatic void advanceSplashProgress()\n\t{\n\t\tif(splash != null)\n\t\t\tsplash.advance();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "advanceSplashProgress", "code": "\tstatic void advanceSplashProgress(String label)\n\t{\n\t\tif(splash != null)\n\t\t\tsplash.advance(label);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "_loadMenuItem", "code": "\tprivate static JMenuItem _loadMenuItem(String name, ActionContext context, boolean setMnemonic)\n\t{\n\n\t\tString label = jEdit.getProperty(name + \".label\");\n\t\tif (label == null)\n\t\t{\n\t\t\tlabel = name;\n\t\t}\n\t\tchar mnemonic;\n\t\tint index = label.indexOf('$');\n\t\tif (index != -1 && label.length() - index > 1)\n\t\t{\n\t\t\tmnemonic = Character.toLowerCase(label.charAt(index + 1));\n\t\t\tlabel = label.substring(0, index).concat(label.substring(++index));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmnemonic = '\\0';\n\t\t}\n\t\tJMenuItem mi;\n\t\tif (jEdit.getBooleanProperty(name + \".toggle\"))\n\t\t{\n\t\t\tmi = new EnhancedCheckBoxMenuItem(label, name, context);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmi = new EnhancedMenuItem(label, name, context);\n\t\t}\n\t\tif (!OperatingSystem.isMacOS() && setMnemonic && mnemonic != '\\0')\n\t\t{\n\t\t\tmi.setMnemonic(mnemonic);\n\t\t}\n\t\tIcon itemIcon = loadIcon(jEdit.getProperty(name + \".icon.small\"));\n\t\tif(itemIcon != null)\n\t\t{\n\t\t\tmi.setIcon(itemIcon);\n\t\t}\n\n\t\treturn mi;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [4, 16], [5, 17], [7, 18], [10, 19], [15, 20], [3, 21], [16, 22], [16, 23], [17, 24], [18, 25], [18, 26], [8, 27], [19, 28], [11, 29], [2, 30], [21, 31], [4, 32], [22, 33], [23, 34], [5, 35], [5, 36], [24, 37], [7, 38], [7, 39], [7, 40], [25, 41], [25, 42], [26, 43], [27, 44], [10, 45], [29, 46], [31, 47], [35, 48], [36, 49], [38, 50], [39, 51], [40, 52], [42, 53], [46, 54], [47, 55], [51, 56], [51, 57], [52, 58], [57, 59], [58, 60], [60, 61], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 4], [17, 5], [18, 7], [19, 10], [20, 15], [21, 3], [22, 16], [23, 16], [24, 17], [25, 18], [26, 18], [27, 8], [28, 19], [29, 11], [30, 2], [31, 21], [32, 4], [33, 22], [34, 23], [35, 5], [36, 5], [37, 24], [38, 7], [39, 7], [40, 7], [41, 25], [42, 25], [43, 26], [44, 27], [45, 10], [46, 29], [47, 31], [48, 35], [49, 36], [50, 38], [51, 39], [52, 40], [53, 42], [54, 46], [55, 47], [56, 51], [57, 51], [58, 52], [59, 57], [60, 58], [61, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61]]}, {"function_name": "GUIUtilities", "code": "\tprivate GUIUtilities() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.3-4750", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/menu/DirectoryProvider.java", "language": "java", "name": "org.gjt.sp.jedit.menu.DirectoryProvider", "code": "public class DirectoryProvider implements DynamicMenuProvider\n{\n\t//{{{ DirectoryProvider constructor\n\tpublic DirectoryProvider(String dir)\n\t{\n\t\tthis.dir = dir;\n\t} //}}}\n\n\t//{{{ updateEveryTime() method\n\tpublic boolean updateEveryTime()\n\t{\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ update() method\n\tpublic void update(JMenu menu)\n\t{\n\t\tfinal View view = GUIUtilities.getView(menu);\n\n\t\tString path;\n\t\tif(dir == null)\n\t\t{\n\t\t\tpath = view.getBuffer().getDirectory();\n\t\t}\n\t\telse\n\t\t\tpath = dir;\n\n\t\tJMenuItem mi = new JMenuItem(path + ':');\n\t\tmi.setActionCommand(path);\n\t\tmi.setIcon(FileCellRenderer.openDirIcon);\n\n\t\t//{{{ ActionListeners\n\t\tActionListener fileListener = new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tjEdit.openFile(view,evt.getActionCommand());\n\t\t\t}\n\t\t};\n\n\t\tActionListener dirListener = new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tVFSBrowser.browseDirectory(view,\n\t\t\t\t\tevt.getActionCommand());\n\t\t\t}\n\t\t}; //}}}\n\n\t\tmi.addActionListener(dirListener);\n\n\t\tmenu.add(mi);\n\t\tmenu.addSeparator();\n\n\t\tif(dir == null && !(view.getBuffer().getVFS() instanceof FileVFS))\n\t\t{\n\t\t\tmi = new JMenuItem(jEdit.getProperty(\n\t\t\t\t\"directory.not-local\"));\n\t\t\tmi.setEnabled(false);\n\t\t\tmenu.add(mi);\n\t\t\treturn;\n\t\t}\n\n\t\tFile directory = new File(path);\n\n\t\tJMenu current = menu;\n\n\t\t// for filtering out backups\n\t\tString backupPrefix = jEdit.getProperty(\"backup.prefix\");\n\t\tString backupSuffix = jEdit.getProperty(\"backup.suffix\");\n\n\t\tFile[] list = directory.listFiles();\n\t\tif(list == null || list.length == 0)\n\t\t{\n\t\t\tmi = new JMenuItem(jEdit.getProperty(\n\t\t\t\t\"directory.no-files\"));\n\t\t\tmi.setEnabled(false);\n\t\t\tmenu.add(mi);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint maxItems = jEdit.getIntegerProperty(\"menu.spillover\",20);\n\n\t\t\tArrays.sort(list,\n\t\t\t\tnew StandardUtilities.StringCompare<File>(true));\n\t\t\tfor(int i = 0; i < list.length; i++)\n\t\t\t{\n\t\t\t\tFile file = list[i];\n\n\t\t\t\tString name = file.getName();\n\n\t\t\t\t// skip marker files\n\t\t\t\tif(name.endsWith(\".marks\"))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// skip autosave files\n\t\t\t\tif(name.startsWith(\"#\") && name.endsWith(\"#\"))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// skip backup files\n\t\t\t\tif((backupPrefix.length() != 0\n\t\t\t\t\t&& name.startsWith(backupPrefix))\n\t\t\t\t\t|| (backupSuffix.length() != 0\n\t\t\t\t\t&& name.endsWith(backupSuffix)))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// skip directories\n\t\t\t\t//if(file.isDirectory())\n\t\t\t\t//\tcontinue;\n\n\t\t\t\tmi = new JMenuItem(name);\n\t\t\t\tmi.setActionCommand(file.getPath());\n\t\t\t\tmi.addActionListener(file.isDirectory()\n\t\t\t\t\t? dirListener\n\t\t\t\t\t: fileListener);\n\t\t\t\tmi.setIcon(file.isDirectory()\n\t\t\t\t\t? FileCellRenderer.dirIcon\n\t\t\t\t\t: FileCellRenderer.fileIcon);\n\n\t\t\t\tif(current.getItemCount() >= maxItems && i != list.length - 1)\n\t\t\t\t{\n\t\t\t\t\t//current.addSeparator();\n\t\t\t\t\tJMenu newCurrent = new JMenu(\n\t\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\t\"common.more\"));\n\t\t\t\t\tcurrent.add(newCurrent);\n\t\t\t\t\tcurrent = newCurrent;\n\t\t\t\t}\n\t\t\t\tcurrent.add(mi);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate final String dir;", "functions": [{"function_name": "updateEveryTime", "code": "\tpublic boolean updateEveryTime()\n\t{\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "update", "code": "\tpublic void update(JMenu menu)\n\t{\n\t\tfinal View view = GUIUtilities.getView(menu);\n\n\t\tString path;\n\t\tif(dir == null)\n\t\t{\n\t\t\tpath = view.getBuffer().getDirectory();\n\t\t}\n\t\telse\n\t\t\tpath = dir;\n\n\t\tJMenuItem mi = new JMenuItem(path + ':');\n\t\tmi.setActionCommand(path);\n\t\tmi.setIcon(FileCellRenderer.openDirIcon);\n\n\t\t//{{{ ActionListeners\n\t\tActionListener fileListener = new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tjEdit.openFile(view,evt.getActionCommand());\n\t\t\t}\n\t\t};\n\n\t\tActionListener dirListener = new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tVFSBrowser.browseDirectory(view,\n\t\t\t\t\tevt.getActionCommand());\n\t\t\t}\n\t\t}; //}}}\n\n\t\tmi.addActionListener(dirListener);\n\n\t\tmenu.add(mi);\n\t\tmenu.addSeparator();\n\n\t\tif(dir == null && !(view.getBuffer().getVFS() instanceof FileVFS))\n\t\t{\n\t\t\tmi = new JMenuItem(jEdit.getProperty(\n\t\t\t\t\"directory.not-local\"));\n\t\t\tmi.setEnabled(false);\n\t\t\tmenu.add(mi);\n\t\t\treturn;\n\t\t}\n\n\t\tFile directory = new File(path);\n\n\t\tJMenu current = menu;\n\n\t\t// for filtering out backups\n\t\tString backupPrefix = jEdit.getProperty(\"backup.prefix\");\n\t\tString backupSuffix = jEdit.getProperty(\"backup.suffix\");\n\n\t\tFile[] list = directory.listFiles();\n\t\tif(list == null || list.length == 0)\n\t\t{\n\t\t\tmi = new JMenuItem(jEdit.getProperty(\n\t\t\t\t\"directory.no-files\"));\n\t\t\tmi.setEnabled(false);\n\t\t\tmenu.add(mi);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint maxItems = jEdit.getIntegerProperty(\"menu.spillover\",20);\n\n\t\t\tArrays.sort(list,\n\t\t\t\tnew StandardUtilities.StringCompare<File>(true));\n\t\t\tfor(int i = 0; i < list.length; i++)\n\t\t\t{\n\t\t\t\tFile file = list[i];\n\n\t\t\t\tString name = file.getName();\n\n\t\t\t\t// skip marker files\n\t\t\t\tif(name.endsWith(\".marks\"))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// skip autosave files\n\t\t\t\tif(name.startsWith(\"#\") && name.endsWith(\"#\"))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// skip backup files\n\t\t\t\tif((backupPrefix.length() != 0\n\t\t\t\t\t&& name.startsWith(backupPrefix))\n\t\t\t\t\t|| (backupSuffix.length() != 0\n\t\t\t\t\t&& name.endsWith(backupSuffix)))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// skip directories\n\t\t\t\t//if(file.isDirectory())\n\t\t\t\t//\tcontinue;\n\n\t\t\t\tmi = new JMenuItem(name);\n\t\t\t\tmi.setActionCommand(file.getPath());\n\t\t\t\tmi.addActionListener(file.isDirectory()\n\t\t\t\t\t? dirListener\n\t\t\t\t\t: fileListener);\n\t\t\t\tmi.setIcon(file.isDirectory()\n\t\t\t\t\t? FileCellRenderer.dirIcon\n\t\t\t\t\t: FileCellRenderer.fileIcon);\n\n\t\t\t\tif(current.getItemCount() >= maxItems && i != list.length - 1)\n\t\t\t\t{\n\t\t\t\t\t//current.addSeparator();\n\t\t\t\t\tJMenu newCurrent = new JMenu(\n\t\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\t\"common.more\"));\n\t\t\t\t\tcurrent.add(newCurrent);\n\t\t\t\t\tcurrent = newCurrent;\n\t\t\t\t}\n\t\t\t\tcurrent.add(mi);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "FUNC_DECL", "BINARY_OP", "ASSIGN", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [7, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [11, 22], [1, 23], [1, 24], [15, 25], [15, 26], [2, 27], [3, 28], [4, 29], [6, 30], [7, 31], [16, 32], [16, 33], [8, 34], [9, 35], [10, 36], [11, 37], [22, 38], [13, 39], [23, 40], [1, 41], [1, 42], [1, 43], [1, 44], [25, 45], [26, 46], [28, 47], [29, 48], [7, 49], [7, 50], [7, 51], [32, 52], [33, 53], [34, 54], [35, 55], [36, 56], [11, 57], [23, 58], [23, 59], [23, 60], [23, 61], [23, 62], [23, 63], [41, 64], [24, 65], [43, 66], [44, 67], [50, 68], [51, 69], [52, 70], [54, 71], [55, 72], [56, 73], [57, 74], [23, 75], [58, 76], [23, 77], [23, 78], [23, 79], [23, 80], [59, 81], [59, 82], [60, 83], [60, 84], [61, 85], [61, 86], [23, 87], [64, 88], [65, 89], [65, 90], [67, 91], [69, 92], [54, 93], [55, 94], [74, 95], [58, 96], [76, 97], [76, 98], [77, 99], [78, 100], [79, 101], [80, 102], [82, 103], [82, 104], [84, 105], [84, 106], [86, 107], [62, 108], [91, 109], [92, 110], [93, 111], [94, 112], [58, 113], [58, 114], [97, 115], [98, 116], [99, 117], [100, 118], [103, 119], [103, 120], [104, 121], [104, 122], [105, 123], [106, 124], [96, 125], [115, 126], [120, 127], [120, 128], [122, 129], [122, 130], [125, 131], [131, 132], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 7], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 11], [23, 1], [24, 1], [25, 15], [26, 15], [27, 2], [28, 3], [29, 4], [30, 6], [31, 7], [32, 16], [33, 16], [34, 8], [35, 9], [36, 10], [37, 11], [38, 22], [39, 13], [40, 23], [41, 1], [42, 1], [43, 1], [44, 1], [45, 25], [46, 26], [47, 28], [48, 29], [49, 7], [50, 7], [51, 7], [52, 32], [53, 33], [54, 34], [55, 35], [56, 36], [57, 11], [58, 23], [59, 23], [60, 23], [61, 23], [62, 23], [63, 23], [64, 41], [65, 24], [66, 43], [67, 44], [68, 50], [69, 51], [70, 52], [71, 54], [72, 55], [73, 56], [74, 57], [75, 23], [76, 58], [77, 23], [78, 23], [79, 23], [80, 23], [81, 59], [82, 59], [83, 60], [84, 60], [85, 61], [86, 61], [87, 23], [88, 64], [89, 65], [90, 65], [91, 67], [92, 69], [93, 54], [94, 55], [95, 74], [96, 58], [97, 76], [98, 76], [99, 77], [100, 78], [101, 79], [102, 80], [103, 82], [104, 82], [105, 84], [106, 84], [107, 86], [108, 62], [109, 91], [110, 92], [111, 93], [112, 94], [113, 58], [114, 58], [115, 97], [116, 98], [117, 99], [118, 100], [119, 103], [120, 103], [121, 104], [122, 104], [123, 105], [124, 106], [125, 96], [126, 115], [127, 120], [128, 120], [129, 122], [130, 122], [131, 125], [132, 131], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132]]}, {"function_name": "DirectoryProvider", "code": "\tpublic DirectoryProvider(String dir)\n\t{\n\t\tthis.dir = dir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6625", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/ElemExtensionCall.java", "language": "java", "name": "org.apache.xalan.templates.ElemExtensionCall", "code": "public class ElemExtensionCall extends ElemLiteralResult\n{\n\n  /** The Namespace URI for this extension call element.\n   *  @serial          */\n  String m_extns;\n\n  /** Language used by extension.\n   *  @serial          */\n  String m_lang;\n\n  /** URL pointing to extension.\n   *  @serial          */\n  String m_srcURL;\n\n  /** Source for script.\n   *  @serial          */\n  String m_scriptSrc;\n\n  /** Declaration for Extension element. \n   *  @serial          */\n  ElemExtensionDecl m_decl = null;\n\n  /**\n   * Get an int constant identifying the type of element.\n   * @see org.apache.xalan.templates.Constants\n   *\n   *@return The token ID for this element\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_EXTENSIONCALL;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The element's name\n   */\n\n\n  /**\n   * This function is called after everything else has been\n   * recomposed, and allows the template to set remaining\n   * values that may be based on some other property that\n   * depends on recomposition.\n   */\n  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    m_extns = this.getNamespace();   \n    m_decl = getElemExtensionDecl(sroot, m_extns);\n    if (m_decl == null)\n      sroot.getExtensionNamespacesManager().registerExtension(m_extns);\n  }\n \n  /**\n   * Return the ElemExtensionDecl for this extension element \n   *\n   *\n   * @param stylesheet Stylesheet root associated with this extension element\n   * @param namespace Namespace associated with this extension element\n   *\n   * @return the ElemExtensionDecl for this extension element. \n   */\n  private ElemExtensionDecl getElemExtensionDecl(StylesheetRoot stylesheet,\n          String namespace)\n  {\n\n    ElemExtensionDecl decl = null;\n    int n = stylesheet.getGlobalImportCount();\n\n    for (int i = 0; i < n; i++)\n    {\n      Stylesheet imported = stylesheet.getGlobalImport(i);\n\n      for (ElemTemplateElement child = imported.getFirstChildElem();\n              child != null; child = child.getNextSiblingElem())\n      {\n        if (Constants.ELEMNAME_EXTENSIONDECL == child.getXSLToken())\n        {\n          decl = (ElemExtensionDecl) child;\n\n          String prefix = decl.getPrefix();\n          String declNamespace = child.getNamespaceForPrefix(prefix);\n\n          if (namespace.equals(declNamespace))\n          {\n            return decl;\n          }\n        }\n      }\n    }\n\n    return decl;\n  }\n  \n  /**\n   * Execute the fallbacks when an extension is not available.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void executeFallbacks(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n    for (ElemTemplateElement child = m_firstChild; child != null;\n             child = child.m_nextSibling)\n    {\n      if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK)\n      {\n        try\n        {\n          transformer.pushElemTemplateElement(child);\n          ((ElemFallback) child).executeFallback(transformer);\n        }\n        finally\n        {\n          transformer.popElemTemplateElement();\n        }\n      }\n    }\n\n  }\n\n\n  /**\n   * Execute an extension.\n   *\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @throws TransformerException\n   */\n  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    try\n    {\n      transformer.getResultTreeHandler().flushPending();\n\n      ExtensionsTable etable = transformer.getExtensionsTable();\n      ExtensionHandler nsh = etable.get(m_extns);\n\n      if (null == nsh)\n      {\n        executeFallbacks(transformer);\n        return;\n      }\n\n      try\n      {\n        nsh.processElement(this.getLocalName(), this, transformer,\n                           getStylesheet(), this);\n      }\n      catch (Exception e)\n      {\n\n        String msg = e.getMessage();\n        \n        TransformerException te;\n        if(e instanceof TransformerException)\n        {\n          te = (TransformerException)e;\n        }\n        else\n        {\n          if(null != msg)\n            te = new TransformerException(e);\n          \n        }\n        if(null == te.getLocator())\n          te.setLocator(this);\n\n        if (null != msg)\n        {\n          if (msg.indexOf(\"fatal\") >= 0)\n          {\n            transformer.getErrorListener().fatalError(te);\n          }\n          else if(e instanceof RuntimeException){}      \n          else{\n            transformer.getErrorListener().warning(te);\n\t\t  }\n        }\n              \n\n        executeFallbacks(\n          transformer);\n      }\n    }\n    catch(org.xml.sax.SAXException se)\n    {\n      transformer.getErrorListener().fatalError(new TransformerException(se));\n    }\n  }\n\n  /**\n   * Return the raw value of the attribute.\n   *\n   * @param rawName Raw name of the attribute to get\n   *\n   * @return the raw value of the attribute or null if not found\n   */\n  public String getAttribute(String rawName)\n  {\n\n    AVT avt = getLiteralResultAttribute(rawName);\n\n    if ((null != avt) && avt.getRawName().equals(rawName))\n    {\n      return avt.getSimpleString();\n    }\n\n    return null;\n  }\n\n  /**\n   * Return the value of the attribute interpreted as an Attribute\n   * Value Template (in other words, you can use curly expressions\n   *\n   * @param rawName Raw name of the attribute to get\n   * @param transformer non-null reference to the the current transform-time state.\n   *\n   * @return the value of the attribute\n   *\n   * @throws TransformerException\n   */\n  public String getAttribute(\n          String rawName, org.w3c.dom.Node sourceNode, TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    AVT avt = getLiteralResultAttribute(rawName);\n\n    if ((null != avt) && avt.getRawName().equals(rawName))\n    {\n      XPathContext xctxt = transformer.getXPathContext();\n\n      return avt.evaluate(xctxt, \n            xctxt.getDTMHandleFromNode(sourceNode), \n            this);\n    }\n\n    return null;\n  }\n  \n  /**\n   * Accept a visitor and call the appropriate method \n   * for this class.\n   * \n   * @param visitor The visitor whose appropriate method will be called.\n   * @return true if the children of the object should be visited.\n   */\n  protected boolean accept(XSLTVisitor visitor)\n  {\n  \treturn visitor.visitExtensionElement(this);", "functions": [{"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_EXTENSIONCALL;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "compose", "code": "  public void compose(StylesheetRoot sroot) throws TransformerException\n  {\n    super.compose(sroot);\n    m_extns = this.getNamespace();   \n    m_decl = getElemExtensionDecl(sroot, m_extns);\n    if (m_decl == null)\n      sroot.getExtensionNamespacesManager().registerExtension(m_extns);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [6, 9], [5, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 6], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getElemExtensionDecl", "code": "  private ElemExtensionDecl getElemExtensionDecl(StylesheetRoot stylesheet,\n          String namespace)\n  {\n\n    ElemExtensionDecl decl = null;\n    int n = stylesheet.getGlobalImportCount();\n\n    for (int i = 0; i < n; i++)\n    {\n      Stylesheet imported = stylesheet.getGlobalImport(i);\n\n      for (ElemTemplateElement child = imported.getFirstChildElem();\n              child != null; child = child.getNextSiblingElem())\n      {\n        if (Constants.ELEMNAME_EXTENSIONDECL == child.getXSLToken())\n        {\n          decl = (ElemExtensionDecl) child;\n\n          String prefix = decl.getPrefix();\n          String declNamespace = child.getNamespaceForPrefix(prefix);\n\n          if (namespace.equals(declNamespace))\n          {\n            return decl;\n          }\n        }\n      }\n    }\n\n    return decl;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [3, 10], [4, 11], [8, 12], [8, 13], [2, 14], [8, 15], [12, 16], [13, 17], [9, 18], [15, 19], [8, 20], [15, 21], [15, 22], [15, 23], [19, 24], [21, 25], [15, 26], [21, 27], [22, 28], [23, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 3], [11, 4], [12, 8], [13, 8], [14, 2], [15, 8], [16, 12], [17, 13], [18, 9], [19, 15], [20, 8], [21, 15], [22, 15], [23, 15], [24, 19], [25, 21], [26, 15], [27, 21], [28, 22], [29, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "executeFallbacks", "code": "  public void executeFallbacks(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n    for (ElemTemplateElement child = m_firstChild; child != null;\n             child = child.m_nextSibling)\n    {\n      if (child.getXSLToken() == Constants.ELEMNAME_FALLBACK)\n      {\n        try\n        {\n          transformer.pushElemTemplateElement(child);\n          ((ElemFallback) child).executeFallback(transformer);\n        }\n        finally\n        {\n          transformer.popElemTemplateElement();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [7, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 7], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "execute", "code": "  public void execute(\n          TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    try\n    {\n      transformer.getResultTreeHandler().flushPending();\n\n      ExtensionsTable etable = transformer.getExtensionsTable();\n      ExtensionHandler nsh = etable.get(m_extns);\n\n      if (null == nsh)\n      {\n        executeFallbacks(transformer);\n        return;\n      }\n\n      try\n      {\n        nsh.processElement(this.getLocalName(), this, transformer,\n                           getStylesheet(), this);\n      }\n      catch (Exception e)\n      {\n\n        String msg = e.getMessage();\n        \n        TransformerException te;\n        if(e instanceof TransformerException)\n        {\n          te = (TransformerException)e;\n        }\n        else\n        {\n          if(null != msg)\n            te = new TransformerException(e);\n          \n        }\n        if(null == te.getLocator())\n          te.setLocator(this);\n\n        if (null != msg)\n        {\n          if (msg.indexOf(\"fatal\") >= 0)\n          {\n            transformer.getErrorListener().fatalError(te);\n          }\n          else if(e instanceof RuntimeException){}      \n          else{\n            transformer.getErrorListener().warning(te);\n\t\t  }\n        }\n              \n\n        executeFallbacks(\n          transformer);\n      }\n    }\n    catch(org.xml.sax.SAXException se)\n    {\n      transformer.getErrorListener().fatalError(new TransformerException(se));", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "TRY", "IF", "VAR_DECL", "VAR_DECL", "CATCH", "BINARY_OP", "CALL", "CALL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [3, 11], [8, 12], [8, 13], [8, 14], [8, 15], [8, 16], [4, 17], [5, 18], [9, 19], [6, 20], [7, 21], [10, 22], [11, 23], [8, 24], [12, 25], [13, 26], [14, 27], [17, 28], [5, 29], [23, 30], [12, 31], [25, 32], [13, 33], [26, 34], [26, 35], [14, 36], [16, 37], [17, 38], [31, 39], [31, 40], [36, 41], [14, 42], [39, 43], [40, 44], [40, 45], [36, 46], [41, 47], [31, 48], [45, 49], [46, 50], [39, 51], [48, 52], [51, 53], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 3], [12, 8], [13, 8], [14, 8], [15, 8], [16, 8], [17, 4], [18, 5], [19, 9], [20, 6], [21, 7], [22, 10], [23, 11], [24, 8], [25, 12], [26, 13], [27, 14], [28, 17], [29, 5], [30, 23], [31, 12], [32, 25], [33, 13], [34, 26], [35, 26], [36, 14], [37, 16], [38, 17], [39, 31], [40, 31], [41, 36], [42, 14], [43, 39], [44, 40], [45, 40], [46, 36], [47, 41], [48, 31], [49, 45], [50, 46], [51, 39], [52, 48], [53, 51], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "getAttribute", "code": "  public String getAttribute(String rawName)\n  {\n\n    AVT avt = getLiteralResultAttribute(rawName);\n\n    if ((null != avt) && avt.getRawName().equals(rawName))\n    {\n      return avt.getSimpleString();\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [6, 9], [3, 10], [7, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 6], [10, 3], [11, 7], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getAttribute", "code": "  public String getAttribute(\n          String rawName, org.w3c.dom.Node sourceNode, TransformerImpl transformer)\n            throws TransformerException\n  {\n\n    AVT avt = getLiteralResultAttribute(rawName);\n\n    if ((null != avt) && avt.getRawName().equals(rawName))\n    {\n      XPathContext xctxt = transformer.getXPathContext();\n\n      return avt.evaluate(xctxt, \n            xctxt.getDTMHandleFromNode(sourceNode), \n            this);\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [8, 11], [8, 12], [3, 13], [9, 14], [11, 15], [12, 16], [14, 17], [10, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 8], [12, 8], [13, 3], [14, 9], [15, 11], [16, 12], [17, 14], [18, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "accept", "code": "  protected boolean accept(XSLTVisitor visitor)\n  {\n  \treturn visitor.visitExtensionElement(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "ant-1.5-317", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/zip/UnrecognizedExtraField.java", "language": "java", "name": "org.apache.tools.zip.UnrecognizedExtraField", "code": "public class UnrecognizedExtraField implements ZipExtraField {\n\n    /**\n     * The Header-ID.\n     *\n     * @since 1.1\n     */\n    private ZipShort headerId;\n\n    public void setHeaderId(ZipShort headerId) {\n        this.headerId = headerId;\n    }\n\n    public ZipShort getHeaderId() {\n        return headerId;\n    }\n\n    /**\n     * Extra field data in local file data - without\n     * Header-ID or length specifier.\n     *\n     * @since 1.1\n     */\n    private byte[] localData;\n\n    public void setLocalFileDataData(byte[] data) {\n        localData = data;\n    }\n\n    public ZipShort getLocalFileDataLength() {\n        return new ZipShort(localData.length);\n    }\n\n    public byte[] getLocalFileDataData() {\n        return localData;\n    }\n\n    /**\n     * Extra field data in central directory - without\n     * Header-ID or length specifier.\n     *\n     * @since 1.1\n     */\n    private byte[] centralData;\n\n    public void setCentralDirectoryData(byte[] data) {\n        centralData = data;\n    }\n\n    public ZipShort getCentralDirectoryLength() {\n        if (centralData != null) {\n            return new ZipShort(centralData.length);\n        }\n        return getLocalFileDataLength();\n    }\n\n    public byte[] getCentralDirectoryData() {\n        if (centralData != null) {\n            return centralData;\n        }\n        return getLocalFileDataData();\n    }\n\n    public void parseFromLocalFileData(byte[] data, int offset, int length) {\n        byte[] tmp = new byte[length];\n        System.arraycopy(data, offset, tmp, 0, length);\n        setLocalFileDataData(tmp);", "functions": [{"function_name": "setHeaderId", "code": "    public void setHeaderId(ZipShort headerId) {\n        this.headerId = headerId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeaderId", "code": "    public ZipShort getHeaderId() {\n        return headerId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLocalFileDataData", "code": "    public void setLocalFileDataData(byte[] data) {\n        localData = data;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalFileDataLength", "code": "    public ZipShort getLocalFileDataLength() {\n        return new ZipShort(localData.length);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalFileDataData", "code": "    public byte[] getLocalFileDataData() {\n        return localData;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCentralDirectoryData", "code": "    public void setCentralDirectoryData(byte[] data) {\n        centralData = data;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCentralDirectoryLength", "code": "    public ZipShort getCentralDirectoryLength() {\n        if (centralData != null) {\n            return new ZipShort(centralData.length);\n        }\n        return getLocalFileDataLength();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getCentralDirectoryData", "code": "    public byte[] getCentralDirectoryData() {\n        if (centralData != null) {\n            return centralData;\n        }\n        return getLocalFileDataData();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "parseFromLocalFileData", "code": "    public void parseFromLocalFileData(byte[] data, int offset, int length) {\n        byte[] tmp = new byte[length];\n        System.arraycopy(data, offset, tmp, 0, length);\n        setLocalFileDataData(tmp);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "camel-1.2-1715", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/impl/BinaryPredicateSupport.java", "language": "java", "name": "org.apache.camel.impl.BinaryPredicateSupport", "code": "public abstract class BinaryPredicateSupport<E extends Exchange> implements Predicate<E> {\n\n    private final Expression<E> left;\n    private final Expression<E> right;\n\n    protected BinaryPredicateSupport(Expression<E> left, Expression<E> right) {\n        notNull(left, \"left\");\n        notNull(right, \"right\");\n\n        this.left = left;\n        this.right = right;\n    }\n\n    @Override\n    public String toString() {\n        return left + \" \" + getOperationText() + \" \" + right;\n    }\n\n    public boolean matches(E exchange) {\n        Object leftValue = left.evaluate(exchange);\n        Object rightValue = right.evaluate(exchange);\n        return matches(exchange, leftValue, rightValue);\n    }\n\n    public void assertMatches(String text, E exchange) {\n        Object leftValue = left.evaluate(exchange);\n        Object rightValue = right.evaluate(exchange);\n        if (!matches(exchange, leftValue, rightValue)) {\n            throw new AssertionError(text + assertionFailureMessage(exchange, leftValue, rightValue));\n        }\n    }\n\n    protected abstract boolean matches(E exchange, Object leftValue, Object rightValue);\n\n    protected abstract String getOperationText();\n\n    protected String assertionFailureMessage(E exchange, Object leftValue, Object rightValue) {\n        return this + \" failed on \" + exchange + \" with left value <\" + leftValue + \"> right value <\"\n               + rightValue + \">\";", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return left + \" \" + getOperationText() + \" \" + right;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "matches", "code": "    public boolean matches(E exchange) {\n        Object leftValue = left.evaluate(exchange);\n        Object rightValue = right.evaluate(exchange);\n        return matches(exchange, leftValue, rightValue);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "assertMatches", "code": "    public void assertMatches(String text, E exchange) {\n        Object leftValue = left.evaluate(exchange);\n        Object rightValue = right.evaluate(exchange);\n        if (!matches(exchange, leftValue, rightValue)) {\n            throw new AssertionError(text + assertionFailureMessage(exchange, leftValue, rightValue));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [3, 9], [7, 10], [10, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 3], [10, 7], [11, 10], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "matches", "code": "    protected abstract boolean matches(E exchange, Object leftValue, Object rightValue);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getOperationText", "code": "    protected abstract String getOperationText();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "assertionFailureMessage", "code": "    protected String assertionFailureMessage(E exchange, Object leftValue, Object rightValue) {\n        return this + \" failed on \" + exchange + \" with left value <\" + leftValue + \"> right value <\"\n               + rightValue + \">\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "BinaryPredicateSupport", "code": "    protected BinaryPredicateSupport(Expression<E> left, Expression<E> right) {\n        notNull(left, \"left\");\n        notNull(right, \"right\");\n\n        this.left = left;\n        this.right = right;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ivy-2.0-3438", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/namespace/MRIDTransformationRule.java", "language": "java", "name": "org.apache.ivy.plugins.namespace.MRIDTransformationRule", "code": "public class MRIDTransformationRule implements NamespaceTransformer {\n    private static class MridRuleMatcher {\n        private static final String[] TYPES = new String[] {\"o\", \"m\", \"b\", \"r\"};\n\n        private Matcher[] matchers = new Matcher[TYPES.length];\n\n        public boolean match(MRIDRule src, ModuleRevisionId mrid) {\n            //CheckStyle:MagicNumber| OFF\n            matchers[0] = Pattern.compile(getPattern(src.getOrg()))\n                    .matcher(mrid.getOrganisation());\n            if (!matchers[0].matches()) {\n                return false;\n            }\n            matchers[1] = Pattern.compile(getPattern(src.getModule())).matcher(mrid.getName());\n            if (!matchers[1].matches()) {\n                return false;\n            }\n            if (mrid.getBranch() == null) {\n                matchers[2] = null;\n            } else {\n                matchers[2] = Pattern.compile(getPattern(src.getBranch())).matcher(\n                    mrid.getBranch());\n                if (!matchers[2].matches()) {\n                    return false;\n                }\n            }\n            matchers[3] = Pattern.compile(getPattern(src.getRev())).matcher(mrid.getRevision());\n            if (!matchers[3].matches()) {\n                return false;\n            }\n\n            return true;\n            //CheckStyle:MagicNumber| ON\n        }\n\n        public ModuleRevisionId apply(MRIDRule dest, ModuleRevisionId mrid) {\n            String org = applyRules(dest.getOrg(), \"o\");\n            String mod = applyRules(dest.getModule(), \"m\");\n            String branch = applyRules(dest.getBranch(), \"b\");\n            String rev = applyRules(dest.getRev(), \"r\");\n\n            return ModuleRevisionId.newInstance(org, mod, branch, rev, \n                                                mrid.getQualifiedExtraAttributes());\n        }\n\n        private String applyRules(String str, String type) {\n            for (int i = 0; i < TYPES.length; i++) {\n                str = applyTypeRule(str, TYPES[i], type, matchers[i]);\n            }\n            return str;\n        }\n\n        private String applyTypeRule(String rule, String type, String ruleType, Matcher m) {\n            if (m == null) {\n                return rule;\n            }\n            String res = rule == null ? \"$\" + ruleType + \"0\" : rule;\n            for (int i = 0; i < TYPES.length; i++) {\n                if (TYPES[i].equals(type)) {\n                    res = res.replaceAll(\"([^\\\\\\\\])\\\\$\" + type, \"$1\\\\$\");\n                    res = res.replaceAll(\"^\\\\$\" + type, \"\\\\$\");\n                } else {\n                    res = res.replaceAll(\"([^\\\\\\\\])\\\\$\" + TYPES[i], \"$1\\\\\\\\\\\\$\" + TYPES[i]);\n                    res = res.replaceAll(\"^\\\\$\" + TYPES[i], \"\\\\\\\\\\\\$\" + TYPES[i]);\n                }\n            }\n\n            StringBuffer sb = new StringBuffer();\n            m.reset();\n            m.find();\n            m.appendReplacement(sb, res);\n\n            String str = sb.toString();\n            // null rule not replaced, let it be null\n            if (rule == null && (\"$\" + ruleType + \"0\").equals(str)) {\n                return null;\n            }\n\n            return str;\n        }\n\n        private String getPattern(String p) {\n            return p == null ? \".*\" : p;\n        }\n    }\n\n    private List src = new ArrayList();\n\n    private MRIDRule dest;\n\n    public void addSrc(MRIDRule src) {\n        this.src.add(src);\n    }\n\n    public void addDest(MRIDRule dest) {\n        if (this.dest != null) {\n            throw new IllegalArgumentException(\"only one dest is allowed per mapping\");\n        }\n        this.dest = dest;\n    }\n\n    public ModuleRevisionId transform(ModuleRevisionId mrid) {\n        MridRuleMatcher matcher = new MridRuleMatcher();\n        for (Iterator iter = src.iterator(); iter.hasNext();) {\n            MRIDRule rule = (MRIDRule) iter.next();\n            if (matcher.match(rule, mrid)) {\n                ModuleRevisionId destMrid = matcher.apply(dest, mrid);\n                Message.debug(\"found matching namespace rule: \" + rule + \". Applied \" + dest\n                        + \" on \" + mrid + \". Transformed to \" + destMrid);\n                return destMrid;\n            }\n        }\n        return mrid;\n    }\n\n    public boolean isIdentity() {\n        return false;", "functions": [{"function_name": "addSrc", "code": "    public void addSrc(MRIDRule src) {\n        this.src.add(src);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addDest", "code": "    public void addDest(MRIDRule dest) {\n        if (this.dest != null) {\n            throw new IllegalArgumentException(\"only one dest is allowed per mapping\");\n        }\n        this.dest = dest;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "transform", "code": "    public ModuleRevisionId transform(ModuleRevisionId mrid) {\n        MridRuleMatcher matcher = new MridRuleMatcher();\n        for (Iterator iter = src.iterator(); iter.hasNext();) {\n            MRIDRule rule = (MRIDRule) iter.next();\n            if (matcher.match(rule, mrid)) {\n                ModuleRevisionId destMrid = matcher.apply(dest, mrid);\n                Message.debug(\"found matching namespace rule: \" + rule + \". Applied \" + dest\n                        + \" on \" + mrid + \". Transformed to \" + destMrid);\n                return destMrid;\n            }\n        }\n        return mrid;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "RETURN", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [3, 8], [6, 9], [2, 10], [6, 11], [6, 12], [6, 13], [7, 14], [13, 15], [12, 16], [15, 17], [17, 18], [17, 19], [19, 20], [20, 21], [20, 22], [22, 23], [23, 24], [23, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 3], [9, 6], [10, 2], [11, 6], [12, 6], [13, 6], [14, 7], [15, 13], [16, 12], [17, 15], [18, 17], [19, 17], [20, 19], [21, 20], [22, 20], [23, 22], [24, 23], [25, 23], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "isIdentity", "code": "    public boolean isIdentity() {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7897", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/TestSeq.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.TestSeq", "code": "final class TestSeq {\n\n    /**\n     * Integer code for the kernel type of this test sequence\n     */\n    private int _kernelType;\n\n    /**\n     * Vector of all patterns in the test sequence. May include\n     * patterns with \"*\", \"@*\" or \"node()\" kernel.\n     */\n    private Vector _patterns = null;\n\n    /**\n     * A reference to the Mode object.\n     */\n    private Mode _mode = null;\n\n    /**\n     * Default template for this test sequence\n     */\n    private Template _default = null;\n\n    /**\n     * Instruction list representing this test sequence.\n     */\n    private InstructionList _instructionList;\n\n    /**\n     * Cached handle to avoid compiling more than once.\n     */\n    private InstructionHandle _start = null;\n\n    /**\n     * Creates a new test sequence given a set of patterns and a mode.\n     */\n    public TestSeq(Vector patterns, Mode mode) {\n\tthis(patterns, -2, mode);\n    }\n\n    public TestSeq(Vector patterns, int kernelType, Mode mode) {\n\t_patterns = patterns;\n\t_kernelType = kernelType;\n\t_mode = mode;\n    }\n\n    /**\n     * Returns a string representation of this test sequence. Notice\n     * that test sequences are mutable, so the value returned by this\n     * method is different before and after calling reduce().\n     */\n    public String toString() {\n\tfinal int count = _patterns.size();\n\tfinal StringBuffer result = new StringBuffer();\n\n\tfor (int i = 0; i < count; i++) {\n\t    final LocationPathPattern pattern =\n\t\t(LocationPathPattern) _patterns.elementAt(i);\n\n\t    if (i == 0) {\n\t\tresult.append(\"Testseq for kernel \" + _kernelType)\n\t\t      .append('\\n');\n\t    }\n\t    result.append(\"   pattern \" + i + \": \")\n\t          .append(pattern.toString())\n\t\t  .append('\\n');\n\t}\n\treturn result.toString();\n    }\n\n    /**\n     * Returns the instruction list for this test sequence\n     */\n    public InstructionList getInstructionList() {\n\treturn _instructionList;\n    }\n\n    /**\n     * Return the highest priority for a pattern in this test\n     * sequence. This is either the priority of the first or\n     * of the default pattern.\n     */\n    public double getPriority() {\n\tfinal Template template = (_patterns.size() == 0) ? _default \n\t    : ((Pattern) _patterns.elementAt(0)).getTemplate();\n\treturn template.getPriority();\n    }\n\n    /**\n     * Returns the position of the highest priority pattern in \n     * this test sequence.\n     */\n    public int getPosition() {\n\tfinal Template template = (_patterns.size() == 0) ? _default \n\t    : ((Pattern) _patterns.elementAt(0)).getTemplate();\n\treturn template.getPosition();\n    }\n\n    /**\n     * Reduce the patterns in this test sequence. Creates a new\n     * vector of patterns and sets the default pattern if it\n     * finds a patterns that is fully reduced.\n     */\n    public void reduce() {\n\tfinal Vector newPatterns = new Vector();\n\n\tfinal int count = _patterns.size();\n\tfor (int i = 0; i < count; i++) {\n\t    final LocationPathPattern pattern =\n\t\t(LocationPathPattern)_patterns.elementAt(i);\n\t\t\n\t    pattern.reduceKernelPattern();\n\t\t\t\n\t    if (pattern.isWildcard()) {\n\t\t_default = pattern.getTemplate();\n\t    }\n\t    else {\n\t\tnewPatterns.addElement(pattern);\n\t    }\n\t}\n\t_patterns = newPatterns;\n    }\n\n    /**\n     * Returns, by reference, the templates that are included in \n     * this test sequence. Note that a single template can occur \n     * in several test sequences if its pattern is a union.\n     */\n    public void findTemplates(Dictionary templates) {\n\tif (_default != null) {\n\t    templates.put(_default, this);\n\t}\n\tfor (int i = 0; i < _patterns.size(); i++) {\n\t    final LocationPathPattern pattern =\n\t\t(LocationPathPattern)_patterns.elementAt(i);\n\t    templates.put(pattern.getTemplate(), this);\n\t}\n    }\n\n    /**\n     * Get the instruction handle to a template's code. This is \n     * used when a single template occurs in several test \n     * sequences; that is, if its pattern is a union of patterns \n     * (e.g. match=\"A/B | A/C\").\n     */\n    private InstructionHandle getTemplateHandle(Template template) {\n\treturn (InstructionHandle)_mode.getTemplateInstructionHandle(template);\n    }\n\n    /**\n     * Returns pattern n in this test sequence\n     */\n    private LocationPathPattern getPattern(int n) {\n\treturn (LocationPathPattern)_patterns.elementAt(n);\n    }\n\n    /**\n     * Compile the code for this test sequence. Compile patterns \n     * from highest to lowest priority. Note that since patterns \n     * can be share by multiple test sequences, instruction lists \n     * must be copied before backpatching.\n     */\n    public InstructionHandle compile(ClassGenerator classGen,\n\t\t\t\t     MethodGenerator methodGen,\n\t\t\t\t     InstructionHandle continuation) \n    {\n\tif (_start != null) {\n\t    return _start;\n\t}\n\n\tfinal int count = _patterns.size();\n\tif (count == 0) {\n\t    return (_start = getTemplateHandle(_default));\n\t}\n\n\tInstructionHandle fail = (_default == null) ? continuation\n\t    : getTemplateHandle(_default);\n\t\n\tfor (int n = count - 1; n >= 0; n--) {\n\t    final LocationPathPattern pattern = getPattern(n);\n\t    final Template template = pattern.getTemplate();\n\t    final InstructionList il = new InstructionList();\n\n\t    il.append(methodGen.loadCurrentNode());\n\n\t    InstructionList ilist = _mode.getInstructionList(pattern);\n\t    if (ilist == null) {\n\t\tilist = pattern.compile(classGen, methodGen);\n\t\t_mode.addInstructionList(pattern, ilist);\n\t    }\n\n\t    InstructionList copyOfilist = ilist.copy();\n\n\t    FlowList trueList = pattern.getTrueList();\n\t    if (trueList != null) {\n\t\ttrueList = trueList.copyAndRedirect(ilist, copyOfilist);\n\t    }\n\t    FlowList falseList = pattern.getFalseList();\n\t    if (falseList != null) {\n\t\tfalseList = falseList.copyAndRedirect(ilist, copyOfilist);\n\t    }\n\n\t    il.append(copyOfilist);\n\n\t    final InstructionHandle gtmpl = getTemplateHandle(template);\n\t    final InstructionHandle success = il.append(new GOTO_W(gtmpl));\n\n\t    if (trueList != null) {\n\t\ttrueList.backPatch(success);\n\t    }\n\t    if (falseList != null) {\n\t\tfalseList.backPatch(fail);\n\t    } \n\n\t    fail = il.getStart();\n\n\t    if (_instructionList != null) {\n\t\til.append(_instructionList);\n\t    }\n\n\t    _instructionList = il;\n\t}\n\treturn (_start = fail);", "functions": [{"function_name": "toString", "code": "    public String toString() {\n\tfinal int count = _patterns.size();\n\tfinal StringBuffer result = new StringBuffer();\n\n\tfor (int i = 0; i < count; i++) {\n\t    final LocationPathPattern pattern =\n\t\t(LocationPathPattern) _patterns.elementAt(i);\n\n\t    if (i == 0) {\n\t\tresult.append(\"Testseq for kernel \" + _kernelType)\n\t\t      .append('\\n');\n\t    }\n\t    result.append(\"   pattern \" + i + \": \")\n\t          .append(pattern.toString())\n\t\t  .append('\\n');\n\t}\n\treturn result.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [3, 9], [4, 10], [2, 11], [7, 12], [2, 13], [11, 14], [11, 15], [11, 16], [12, 17], [14, 18], [14, 19], [15, 20], [16, 21], [7, 22], [8, 23], [19, 24], [22, 25], [22, 26], [25, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 3], [10, 4], [11, 2], [12, 7], [13, 2], [14, 11], [15, 11], [16, 11], [17, 12], [18, 14], [19, 14], [20, 15], [21, 16], [22, 7], [23, 8], [24, 19], [25, 22], [26, 22], [27, 25], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "getInstructionList", "code": "    public InstructionList getInstructionList() {\n\treturn _instructionList;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPriority", "code": "    public double getPriority() {\n\tfinal Template template = (_patterns.size() == 0) ? _default \n\t    : ((Pattern) _patterns.elementAt(0)).getTemplate();\n\treturn template.getPriority();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getPosition", "code": "    public int getPosition() {\n\tfinal Template template = (_patterns.size() == 0) ? _default \n\t    : ((Pattern) _patterns.elementAt(0)).getTemplate();\n\treturn template.getPosition();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [4, 6], [5, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 4], [7, 5], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "reduce", "code": "    public void reduce() {\n\tfinal Vector newPatterns = new Vector();\n\n\tfinal int count = _patterns.size();\n\tfor (int i = 0; i < count; i++) {\n\t    final LocationPathPattern pattern =\n\t\t(LocationPathPattern)_patterns.elementAt(i);\n\t\t\n\t    pattern.reduceKernelPattern();\n\t\t\t\n\t    if (pattern.isWildcard()) {\n\t\t_default = pattern.getTemplate();\n\t    }\n\t    else {\n\t\tnewPatterns.addElement(pattern);\n\t    }\n\t}\n\t_patterns = newPatterns;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [6, 10], [1, 11], [1, 12], [6, 13], [6, 14], [7, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 6], [11, 1], [12, 1], [13, 6], [14, 6], [15, 7], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "findTemplates", "code": "    public void findTemplates(Dictionary templates) {\n\tif (_default != null) {\n\t    templates.put(_default, this);\n\t}\n\tfor (int i = 0; i < _patterns.size(); i++) {\n\t    final LocationPathPattern pattern =\n\t\t(LocationPathPattern)_patterns.elementAt(i);\n\t    templates.put(pattern.getTemplate(), this);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 9], [1, 10], [2, 11], [9, 12], [6, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 4], [8, 5], [9, 1], [10, 1], [11, 2], [12, 9], [13, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getTemplateHandle", "code": "    private InstructionHandle getTemplateHandle(Template template) {\n\treturn (InstructionHandle)_mode.getTemplateInstructionHandle(template);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getPattern", "code": "    private LocationPathPattern getPattern(int n) {\n\treturn (LocationPathPattern)_patterns.elementAt(n);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "compile", "code": "    public InstructionHandle compile(ClassGenerator classGen,\n\t\t\t\t     MethodGenerator methodGen,\n\t\t\t\t     InstructionHandle continuation) \n    {\n\tif (_start != null) {\n\t    return _start;\n\t}\n\n\tfinal int count = _patterns.size();\n\tif (count == 0) {\n\t    return (_start = getTemplateHandle(_default));\n\t}\n\n\tInstructionHandle fail = (_default == null) ? continuation\n\t    : getTemplateHandle(_default);\n\t\n\tfor (int n = count - 1; n >= 0; n--) {\n\t    final LocationPathPattern pattern = getPattern(n);\n\t    final Template template = pattern.getTemplate();\n\t    final InstructionList il = new InstructionList();\n\n\t    il.append(methodGen.loadCurrentNode());\n\n\t    InstructionList ilist = _mode.getInstructionList(pattern);\n\t    if (ilist == null) {\n\t\tilist = pattern.compile(classGen, methodGen);\n\t\t_mode.addInstructionList(pattern, ilist);\n\t    }\n\n\t    InstructionList copyOfilist = ilist.copy();\n\n\t    FlowList trueList = pattern.getTrueList();\n\t    if (trueList != null) {\n\t\ttrueList = trueList.copyAndRedirect(ilist, copyOfilist);\n\t    }\n\t    FlowList falseList = pattern.getFalseList();\n\t    if (falseList != null) {\n\t\tfalseList = falseList.copyAndRedirect(ilist, copyOfilist);\n\t    }\n\n\t    il.append(copyOfilist);\n\n\t    final InstructionHandle gtmpl = getTemplateHandle(template);\n\t    final InstructionHandle success = il.append(new GOTO_W(gtmpl));\n\n\t    if (trueList != null) {\n\t\ttrueList.backPatch(success);\n\t    }\n\t    if (falseList != null) {\n\t\tfalseList.backPatch(fail);\n\t    } \n\n\t    fail = il.getStart();\n\n\t    if (_instructionList != null) {\n\t\til.append(_instructionList);\n\t    }\n\n\t    _instructionList = il;\n\t}\n\treturn (_start = fail);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "COND_EXPR", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [4, 12], [6, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [11, 29], [3, 30], [4, 31], [12, 32], [5, 33], [6, 34], [13, 35], [2, 36], [14, 37], [2, 38], [15, 39], [16, 40], [2, 41], [19, 42], [21, 43], [24, 44], [2, 45], [2, 46], [30, 47], [30, 48], [31, 49], [37, 50], [38, 51], [39, 52], [40, 53], [17, 54], [18, 55], [42, 56], [20, 57], [43, 58], [22, 59], [23, 60], [44, 61], [25, 62], [45, 63], [26, 64], [27, 65], [28, 66], [46, 67], [48, 68], [49, 69], [14, 70], [15, 71], [16, 72], [54, 73], [19, 74], [21, 75], [24, 76], [24, 77], [74, 78], [75, 79], [77, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 4], [13, 6], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 11], [30, 3], [31, 4], [32, 12], [33, 5], [34, 6], [35, 13], [36, 2], [37, 14], [38, 2], [39, 15], [40, 16], [41, 2], [42, 19], [43, 21], [44, 24], [45, 2], [46, 2], [47, 30], [48, 30], [49, 31], [50, 37], [51, 38], [52, 39], [53, 40], [54, 17], [55, 18], [56, 42], [57, 20], [58, 43], [59, 22], [60, 23], [61, 44], [62, 25], [63, 45], [64, 26], [65, 27], [66, 28], [67, 46], [68, 48], [69, 49], [70, 14], [71, 15], [72, 16], [73, 54], [74, 19], [75, 21], [76, 24], [77, 24], [78, 74], [79, 75], [80, 77], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "TestSeq", "code": "    public TestSeq(Vector patterns, Mode mode) {\n\tthis(patterns, -2, mode);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "TestSeq", "code": "    public TestSeq(Vector patterns, int kernelType, Mode mode) {\n\t_patterns = patterns;\n\t_kernelType = kernelType;\n\t_mode = mode;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "xalan-2.4-6448", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/trace/TracerEvent.java", "language": "java", "name": "org.apache.xalan.trace.TracerEvent", "code": "public class TracerEvent implements java.util.EventListener\n{\n\n  /**\n   * The node in the style tree where the event occurs.\n   */\n  public final ElemTemplateElement m_styleNode;\n\n  /**\n   * The XSLT processor instance.\n   */\n  public final TransformerImpl m_processor;\n\n  /**\n   * The current context node.\n   */\n  public final Node m_sourceNode;\n\n  /**\n   * The current mode.\n   */\n  public final QName m_mode;\n\n  /**\n   * Create an event originating at the given node of the style tree.\n   * @param processor The XSLT TransformerFactory.\n   * @param sourceNode The current context node.\n   * @param mode The current mode.\n   * @param m_styleNode node in the style tree reference for the event.\n   * Should not be null.  That is not enforced.\n   * @param styleNode The stylesheet element that is executing.\n   */\n  public TracerEvent(TransformerImpl processor, Node sourceNode, QName mode,\n                     ElemTemplateElement styleNode)\n  {\n\n    this.m_processor = processor;\n    this.m_sourceNode = sourceNode;\n    this.m_mode = mode;\n    this.m_styleNode = styleNode;\n  }\n\n  /**\n   * Returns a string representation of the node.\n   * The string returned for elements will contain the element name\n   * and any attributes enclosed in angle brackets.\n   * The string returned for attributes will be of form, \"name=value.\"\n   *\n   * @param n any DOM node. Must not be null.\n   *\n   * @return a string representation of the given node.\n   */\n  public static String printNode(Node n)\n  {\n\n    String r = n.hashCode() + \" \";\n\n    if (n instanceof Element)\n    {\n      r += \"<\" + n.getNodeName();\n\n      Node c = n.getFirstChild();\n\n      while (null != c)\n      {\n        if (c instanceof Attr)\n        {\n          r += printNode(c) + \" \";\n        }\n\n        c = c.getNextSibling();\n      }\n\n      r += \">\";\n    }\n    else\n    {\n      if (n instanceof Attr)\n      {\n        r += n.getNodeName() + \"=\" + n.getNodeValue();\n      }\n      else\n      {\n        r += n.getNodeName();\n      }\n    }\n\n    return r;\n  }\n\n  /**\n   * Returns a string representation of the node list.\n   * The string will contain the list of nodes inside square braces.\n   * Elements will contain the element name\n   * and any attributes enclosed in angle brackets.\n   * Attributes will be of form, \"name=value.\"\n   *\n   * @param l any DOM node list. Must not be null.\n   *\n   * @return a string representation of the given node list.\n   */\n  public static String printNodeList(NodeList l)\n  {\n\n    String r = l.hashCode() + \"[\";\n    int len = l.getLength() - 1;\n    int i = 0;\n\n    while (i < len)\n    {\n      Node n = l.item(i);\n\n      if (null != n)\n      {\n        r += printNode(n) + \", \";\n      }\n\n      ++i;\n    }\n\n    if (i == len)\n    {\n      Node n = l.item(len);\n\n      if (null != n)\n      {\n        r += printNode(n);\n      }\n    }\n\n    return r + \"]\";", "functions": [{"function_name": "printNode", "code": "  public static String printNode(Node n)\n  {\n\n    String r = n.hashCode() + \" \";\n\n    if (n instanceof Element)\n    {\n      r += \"<\" + n.getNodeName();\n\n      Node c = n.getFirstChild();\n\n      while (null != c)\n      {\n        if (c instanceof Attr)\n        {\n          r += printNode(c) + \" \";\n        }\n\n        c = c.getNextSibling();\n      }\n\n      r += \">\";\n    }\n    else\n    {\n      if (n instanceof Attr)\n      {\n        r += n.getNodeName() + \"=\" + n.getNodeValue();\n      }\n      else\n      {\n        r += n.getNodeName();\n      }\n    }\n\n    return r;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [3, 9], [6, 10], [2, 11], [7, 12], [2, 13], [9, 14], [9, 15], [11, 16], [7, 17], [12, 18], [8, 19], [13, 20], [6, 21], [6, 22], [7, 23], [17, 24], [20, 25], [20, 26], [21, 27], [22, 28], [23, 29], [28, 30], [28, 31], [17, 32], [31, 33], [31, 34], [32, 35], [35, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 3], [10, 6], [11, 2], [12, 7], [13, 2], [14, 9], [15, 9], [16, 11], [17, 7], [18, 12], [19, 8], [20, 13], [21, 6], [22, 6], [23, 7], [24, 17], [25, 20], [26, 20], [27, 21], [28, 22], [29, 23], [30, 28], [31, 28], [32, 17], [33, 31], [34, 31], [35, 32], [36, 35], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "printNodeList", "code": "  public static String printNodeList(NodeList l)\n  {\n\n    String r = l.hashCode() + \"[\";\n    int len = l.getLength() - 1;\n    int i = 0;\n\n    while (i < len)\n    {\n      Node n = l.item(i);\n\n      if (null != n)\n      {\n        r += printNode(n) + \", \";\n      }\n\n      ++i;\n    }\n\n    if (i == len)\n    {\n      Node n = l.item(len);\n\n      if (null != n)\n      {\n        r += printNode(n);\n      }\n    }\n\n    return r + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [8, 11], [2, 12], [2, 13], [3, 14], [3, 15], [4, 16], [5, 17], [6, 18], [12, 19], [14, 20], [17, 21], [17, 22], [18, 23], [18, 24], [19, 25], [13, 26], [20, 27], [15, 28], [12, 29], [14, 30], [29, 31], [30, 32], [32, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 8], [12, 2], [13, 2], [14, 3], [15, 3], [16, 4], [17, 5], [18, 6], [19, 12], [20, 14], [21, 17], [22, 17], [23, 18], [24, 18], [25, 19], [26, 13], [27, 20], [28, 15], [29, 12], [30, 14], [31, 29], [32, 30], [33, 32], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "TracerEvent", "code": "  public TracerEvent(TransformerImpl processor, Node sourceNode, QName mode,\n                     ElemTemplateElement styleNode)\n  {\n\n    this.m_processor = processor;\n    this.m_sourceNode = sourceNode;\n    this.m_mode = mode;\n    this.m_styleNode = styleNode;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "xalan-2.6-7758", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/objects/XNull.java", "language": "java", "name": "org.apache.xpath.objects.XNull", "code": "public class XNull extends XNodeSet\n{\n\n  /**\n   * Create an XObject.\n   */\n  public XNull()\n  {\n    super();\n  }\n\n  /**\n   * Tell what kind of class this is.\n   *\n   * @return type CLASS_NULL\n   */\n  public int getType()\n  {\n    return CLASS_NULL;\n  }\n\n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return type string \"#CLASS_NULL\"\n   */\n  public String getTypeString()\n  {\n    return \"#CLASS_NULL\";\n  }\n\n  /**\n   * Cast result object to a number.\n   * \n   * @return 0.0\n   */\n\n  public double num()\n  {\n    return 0.0;\n  }\n\n  /**\n   * Cast result object to a boolean.\n   *\n   * @return false\n   */\n  public boolean bool()\n  {\n    return false;\n  }\n\n  /**\n   * Cast result object to a string.\n   *\n   * @return empty string \"\"\n   */\n  public String str()\n  {\n    return \"\";\n  }\n\n  /**\n   * Cast result object to a result tree fragment.\n   *\n   * @param support XPath context to use for the conversion\n   *\n   * @return The object as a result tree fragment.\n   */\n  public int rtf(XPathContext support)\n  {\n    return DTM.NULL;\n  }\n\n\n  /**\n   * Tell if two objects are functionally equal.\n   *\n   * @param obj2 Object to compare this to\n   *\n   * @return True if the given object is of type CLASS_NULL\n   */\n  public boolean equals(XObject obj2)\n  {\n    return obj2.getType() == CLASS_NULL;", "functions": [{"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_NULL;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"#CLASS_NULL\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "num", "code": "  public double num()\n  {\n    return 0.0;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "bool", "code": "  public boolean bool()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "str", "code": "  public String str()\n  {\n    return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "rtf", "code": "  public int rtf(XPathContext support)\n  {\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "equals", "code": "  public boolean equals(XObject obj2)\n  {\n    return obj2.getType() == CLASS_NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "XNull", "code": "  public XNull()\n  {\n    super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.6-2657", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/language/simple/AbstractSimpleLanguage.java", "language": "java", "name": "org.apache.camel.language.simple.AbstractSimpleLanguage", "code": "public abstract class AbstractSimpleLanguage implements Language {\n    \n    public Predicate<Exchange> createPredicate(String expression) {\n        return PredicateBuilder.toPredicate(createExpression(expression));\n    }\n\n    public Expression<Exchange> createExpression(String expression) {\n        if (expression.indexOf(\"${\") >= 0) {\n            return createComplexExpression(expression);\n        }\n        return createSimpleExpression(expression);\n    }\n\n    protected Expression<Exchange> createComplexExpression(String expression) {\n        List<Expression> results = new ArrayList<Expression>();\n\n        int pivot = 0;\n        int size = expression.length();\n        while (pivot < size) {\n            int idx = expression.indexOf(\"${\", pivot);\n            if (idx < 0) {\n                results.add(createConstantExpression(expression, pivot, size));\n                break;\n            } else {\n                if (pivot < idx) {\n                    results.add(createConstantExpression(expression, pivot, idx));\n                }\n                pivot = idx + 2;\n                int endIdx = expression.indexOf(\"}\", pivot);\n                if (endIdx < 0) {\n                    throw new IllegalArgumentException(\"Expecting } but found end of string for simple expression: \" + expression);\n                }\n                String simpleText = expression.substring(pivot, endIdx);\n\n                Expression simpleExpression = createSimpleExpression(simpleText);\n                results.add(simpleExpression);\n                pivot = endIdx + 1;\n            }\n        }\n        return ExpressionBuilder.concatExpression(results, expression);\n    }\n\n    protected Expression createConstantExpression(String expression, int start, int end) {\n        return ExpressionBuilder.constantExpression(expression.substring(start, end));\n    }\n\n    /**\n     * Creates the simple expression based on the extracted content from the ${ } place holders\n     *\n     * @param expression  the content between ${ and }\n     * @return the expression\n     */\n    protected abstract <E extends Exchange> Expression<Exchange> createSimpleExpression(String expression);\n\n    protected String ifStartsWithReturnRemainder(String prefix, String text) {\n        if (text.startsWith(prefix)) {\n            String remainder = text.substring(prefix.length());\n            if (remainder.length() > 0) {\n                return remainder;\n            }\n        }\n        return null;", "functions": [{"function_name": "createPredicate", "code": "    public Predicate<Exchange> createPredicate(String expression) {\n        return PredicateBuilder.toPredicate(createExpression(expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createExpression", "code": "    public Expression<Exchange> createExpression(String expression) {\n        if (expression.indexOf(\"${\") >= 0) {\n            return createComplexExpression(expression);\n        }\n        return createSimpleExpression(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createComplexExpression", "code": "    protected Expression<Exchange> createComplexExpression(String expression) {\n        List<Expression> results = new ArrayList<Expression>();\n\n        int pivot = 0;\n        int size = expression.length();\n        while (pivot < size) {\n            int idx = expression.indexOf(\"${\", pivot);\n            if (idx < 0) {\n                results.add(createConstantExpression(expression, pivot, size));\n                break;\n            } else {\n                if (pivot < idx) {\n                    results.add(createConstantExpression(expression, pivot, idx));\n                }\n                pivot = idx + 2;\n                int endIdx = expression.indexOf(\"}\", pivot);\n                if (endIdx < 0) {\n                    throw new IllegalArgumentException(\"Expecting } but found end of string for simple expression: \" + expression);\n                }\n                String simpleText = expression.substring(pivot, endIdx);\n\n                Expression simpleExpression = createSimpleExpression(simpleText);\n                results.add(simpleExpression);\n                pivot = endIdx + 1;\n            }\n        }\n        return ExpressionBuilder.concatExpression(results, expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [3, 11], [4, 12], [5, 13], [9, 14], [9, 15], [9, 16], [9, 17], [9, 18], [9, 19], [9, 20], [14, 21], [10, 22], [9, 23], [9, 24], [17, 25], [9, 26], [19, 27], [9, 28], [22, 29], [23, 30], [15, 31], [16, 32], [17, 33], [25, 34], [18, 35], [26, 36], [28, 37], [30, 38], [33, 39], [35, 40], [36, 41], [19, 42], [39, 43], [42, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 3], [12, 4], [13, 5], [14, 9], [15, 9], [16, 9], [17, 9], [18, 9], [19, 9], [20, 9], [21, 14], [22, 10], [23, 9], [24, 9], [25, 17], [26, 9], [27, 19], [28, 9], [29, 22], [30, 23], [31, 15], [32, 16], [33, 17], [34, 25], [35, 18], [36, 26], [37, 28], [38, 30], [39, 33], [40, 35], [41, 36], [42, 19], [43, 39], [44, 42], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "createConstantExpression", "code": "    protected Expression createConstantExpression(String expression, int start, int end) {\n        return ExpressionBuilder.constantExpression(expression.substring(start, end));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createSimpleExpression", "code": "    protected abstract <E extends Exchange> Expression<Exchange> createSimpleExpression(String expression);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ifStartsWithReturnRemainder", "code": "    protected String ifStartsWithReturnRemainder(String prefix, String text) {\n        if (text.startsWith(prefix)) {\n            String remainder = text.substring(prefix.length());\n            if (remainder.length() > 0) {\n                return remainder;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [7, 9], [7, 10], [9, 11], [9, 12], [8, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 7], [10, 7], [11, 9], [12, 9], [13, 8], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "camel-1.0-1597", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/builder/FromBuilder.java", "language": "java", "name": "org.apache.camel.builder.FromBuilder", "code": "public class FromBuilder extends BuilderSupport implements ProcessorFactory {\n    public static final String DEFAULT_TRACE_CATEGORY = \"org.apache.camel.TRACE\";\n    private RouteBuilder builder;\n    private Endpoint from;\n    private List<Processor> processors = new ArrayList<Processor>();\n    private List<ProcessorFactory> processFactories = new ArrayList<ProcessorFactory>();\n    private FromBuilder routeBuilder;\n\n    public FromBuilder(RouteBuilder builder, Endpoint from) {\n        super(builder);\n        this.builder = builder;\n        this.from = from;\n    }\n\n    public FromBuilder(FromBuilder parent) {\n        super(parent);\n        this.builder = parent.getBuilder();\n        this.from = parent.getFrom();\n    }\n\n    /**\n     * Sends the exchange to the given endpoint URI\n     */\n    @Fluent\n    public ProcessorFactory to(@FluentArg(\"uri\")String uri) {\n        return to(endpoint(uri));\n    }\n\n    /**\n     * Sends the exchange to the given endpoint\n     */\n    @Fluent\n    public ProcessorFactory to(@FluentArg(\"ref\")Endpoint endpoint) {\n        ToBuilder answer = new ToBuilder(this, endpoint);\n        addProcessBuilder(answer);\n        return answer;\n    }\n\n    /**\n     * Sends the exchange to a list of endpoints using the {@link MulticastProcessor} pattern\n     */\n    @Fluent\n    public ProcessorFactory to(String... uris) {\n        return to(endpoints(uris));\n    }\n\n    /**\n     * Sends the exchange to a list of endpoints using the {@link MulticastProcessor} pattern\n     */\n    @Fluent\n    public ProcessorFactory to(\n            @FluentArg(value = \"endpoint\", attribute = false, element = true)\n            Endpoint... endpoints) {\n        return to(endpoints(endpoints));\n    }\n\n    /**\n     * Sends the exchange to a list of endpoint using the {@link MulticastProcessor} pattern\n     */\n    @Fluent\n    public ProcessorFactory to(@FluentArg(value = \"endpoint\", attribute = false, element = true)\n    Collection<Endpoint> endpoints) {\n        return addProcessBuilder(new MulticastBuilder(this, endpoints));\n    }\n\n    /**\n     * Creates a {@link Pipeline} of the list of endpoints so that the message will get processed by each endpoint in turn\n     * and for request/response the output of one endpoint will be the input of the next endpoint\n     */\n    @Fluent\n    public ProcessorFactory pipeline(@FluentArg(\"uris\")String... uris) {\n        return pipeline(endpoints(uris));\n    }\n\n    /**\n     * Creates a {@link Pipeline} of the list of endpoints so that the message will get processed by each endpoint in turn\n     * and for request/response the output of one endpoint will be the input of the next endpoint\n     */\n    @Fluent\n    public ProcessorFactory pipeline(@FluentArg(\"endpoints\")Endpoint... endpoints) {\n        return pipeline(endpoints(endpoints));\n    }\n\n    /**\n     * Creates a {@link Pipeline} of the list of endpoints so that the message will get processed by each endpoint in turn\n     * and for request/response the output of one endpoint will be the input of the next endpoint\n     */\n    @Fluent\n    public ProcessorFactory pipeline(@FluentArg(\"endpoints\")Collection<Endpoint> endpoints) {\n        return addProcessBuilder(new PipelineBuilder(this, endpoints));\n    }\n\n    /**\n     * Creates an {@link IdempotentConsumer} to avoid duplicate messages\n     */\n    @Fluent\n    public IdempotentConsumerBuilder idempotentConsumer(\n            @FluentArg(\"messageIdExpression\")Expression messageIdExpression,\n            @FluentArg(\"MessageIdRepository\")MessageIdRepository messageIdRepository) {\n        return (IdempotentConsumerBuilder) addProcessBuilder(new IdempotentConsumerBuilder(this, messageIdExpression, messageIdRepository));\n    }\n\n    /**\n     * Creates a predicate which is applied and only if it is true then\n     * the exchange is forwarded to the destination\n     *\n     * @return the builder for a predicate\n     */\n    @Fluent\n    public FilterBuilder filter(\n            @FluentArg(value = \"predicate\", element = true)\n            Predicate predicate) {\n        FilterBuilder answer = new FilterBuilder(this, predicate);\n        addProcessBuilder(answer);\n        return answer;\n    }\n\n    /**\n     * Creates a choice of one or more predicates with an otherwise clause\n     *\n     * @return the builder for a choice expression\n     */\n    @Fluent(nestedActions = true)\n    public ChoiceBuilder choice() {\n        ChoiceBuilder answer = new ChoiceBuilder(this);\n        addProcessBuilder(answer);\n        return answer;\n    }\n\n    /**\n     *\n     * @param receipients is the builder of the expression used in the {@link RecipientList} to decide the destinations\n     */\n    @Fluent\n    public RecipientListBuilder recipientList(\n            @FluentArg(value = \"recipients\", element = true)\n            Expression receipients) {\n        RecipientListBuilder answer = new RecipientListBuilder(this, receipients);\n        addProcessBuilder(answer);\n        return answer;\n    }\n\n    /**\n     * where an expression is evaluated to iterate through each of the parts of a message and then each part is then send to some endpoint.\n     *\n     * @param receipients the expression on which to split\n     * @return the builder\n     */\n    @Fluent\n    public SplitterBuilder splitter(@FluentArg(value = \"recipients\", element = true)Expression receipients) {\n        SplitterBuilder answer = new SplitterBuilder(this, receipients);\n        addProcessBuilder(answer);\n        return answer;\n    }\n\n    /**\n     * where an expression is evaluated to be able to compare the message exchanges to reorder them. e.g. you\n     * may wish to sort by some header\n     *\n     * @param expression the expression on which to compare messages in order\n     * @return the builder\n     */\n    public ResequencerBuilder resequencer(Expression<Exchange> expression) {\n        return resequencer(Collections.<Expression<Exchange>>singletonList(expression));\n    }\n\n    /**\n     * where a list of expressions are evaluated to be able to compare the message exchanges to reorder them. e.g. you\n     * may wish to sort by some headers\n     *\n     * @param expressions the expressions on which to compare messages in order\n     * @return the builder\n     */\n    @Fluent\n    public ResequencerBuilder resequencer(@FluentArg(value = \"expressions\")List<Expression<Exchange>> expressions) {\n        ResequencerBuilder answer = new ResequencerBuilder(this, expressions);\n        setRouteBuilder(answer);\n        return answer;\n    }\n\n    /**\n     * where a list of expressions are evaluated to be able to compare the message exchanges to reorder them. e.g. you\n     * may wish to sort by some headers\n     *\n     * @param expressions the expressions on which to compare messages in order\n     * @return the builder\n     */\n    @Fluent\n    public ResequencerBuilder resequencer(Expression<Exchange>... expressions) {\n        List<Expression<Exchange>> list = new ArrayList<Expression<Exchange>>();\n        for (Expression<Exchange> expression : expressions) {\n            list.add(expression);\n        }\n        return resequencer(list);\n    }\n\n    /**\n     * Installs the given error handler builder\n     *\n     * @param errorHandlerBuilder the error handler to be used by default for all child routes\n     * @return the current builder with the error handler configured\n     */\n    @Fluent\n    public FromBuilder errorHandler(@FluentArg(\"handler\")ErrorHandlerBuilder errorHandlerBuilder) {\n        setErrorHandlerBuilder(errorHandlerBuilder);\n        return this;\n    }\n\n    /**\n     * Configures whether or not the error handler is inherited by every processing node (or just the top most one)\n     *\n     * @param condition the falg as to whether error handlers should be inherited or not\n     * @return the current builder\n     */\n    @Fluent\n    public FromBuilder inheritErrorHandler(@FluentArg(\"condition\")boolean condition) {\n        setInheritErrorHandler(condition);\n        return this;\n    }\n\n    @Fluent(nestedActions = true)\n    public InterceptorBuilder intercept() {\n        InterceptorBuilder answer = new InterceptorBuilder(this);\n        addProcessBuilder(answer);\n        return answer;\n    }\n\n    /**\n     * Trace logs the exchange before it goes to the next processing step using the {@link #DEFAULT_TRACE_CATEGORY} logging\n     * category.\n     *\n     * @return\n     */\n    @Fluent\n    public FromBuilder trace() {\n        return trace(DEFAULT_TRACE_CATEGORY);\n    }\n\n    /**\n     * Trace logs the exchange before it goes to the next processing step using the specified logging\n     * category.\n     *\n     * @param category the logging category trace messages will sent to.\n     * @return\n     */\n    @Fluent\n    public FromBuilder trace(@FluentArg(\"category\")String category) {\n        final Log log = LogFactory.getLog(category);\n        return intercept(new DelegateProcessor() {\n            @Override\n            public void process(Exchange exchange) throws Exception {\n                log.trace(exchange);\n                processNext(exchange);\n            }\n        });\n    }\n\n    @Fluent\n    public FromBuilder intercept(@FluentArg(\"interceptor\")DelegateProcessor interceptor) {\n        InterceptorBuilder answer = new InterceptorBuilder(this);\n        answer.add(interceptor);\n        addProcessBuilder(answer);\n        return answer.target();\n    }\n\n    @Fluent(nestedActions = true)\n    public PolicyBuilder policies() {\n        PolicyBuilder answer = new PolicyBuilder(this);\n        addProcessBuilder(answer);\n        return answer;\n    }\n\n    @Fluent\n    public FromBuilder policy(@FluentArg(\"policy\")Policy policy) {\n        PolicyBuilder answer = new PolicyBuilder(this);\n        answer.add(policy);\n        addProcessBuilder(answer);\n        return answer.target();\n    }\n\n\n    /**\n     * Adds the custom processor to this destination which could be a final destination, or could be a transformation in a pipeline\n     */\n    @Fluent\n    public FromBuilder process(@FluentArg(\"ref\")Processor processor) {\n        addProcessorBuilder(processor);\n        return this;\n    }\n\n    /**\n     * Adds a processor which sets the body on the IN message\n     */\n    @Fluent\n    public FromBuilder setBody(Expression expression) {\n        addProcessorBuilder(ProcessorBuilder.setBody(expression));\n        return this;\n    }\n\n    /**\n     * Adds a processor which sets the body on the OUT message\n     */\n    @Fluent\n    public FromBuilder setOutBody(Expression expression) {\n        addProcessorBuilder(ProcessorBuilder.setOutBody(expression));\n        return this;\n    }\n\n    /**\n     * Adds a processor which sets the header on the IN message\n     */\n    @Fluent\n    public FromBuilder setHeader(String name, Expression expression) {\n        addProcessorBuilder(ProcessorBuilder.setHeader(name, expression));\n        return this;\n    }\n\n    /**\n     * Adds a processor which sets the header on the OUT message\n     */\n    @Fluent\n    public FromBuilder setOutHeader(String name, Expression expression) {\n        addProcessorBuilder(ProcessorBuilder.setOutHeader(name, expression));\n        return this;\n    }\n\n    /**\n     * Adds a processor which sets the exchange property\n     */\n    @Fluent\n    public FromBuilder setProperty(String name, Expression expression) {\n        addProcessorBuilder(ProcessorBuilder.setProperty(name, expression));\n        return this;\n    }\n\n    /**\n     * Converts the IN message body to the specified type\n     */\n    @Fluent\n    public FromBuilder convertBodyTo(Class type) {\n        addProcessorBuilder(ProcessorBuilder.setBody(Builder.body().convertTo(type)));\n        return this;\n    }\n\n    /**\n     * Converts the OUT message body to the specified type\n     */\n    @Fluent\n    public FromBuilder convertOutBodyTo(Class type) {\n        addProcessorBuilder(ProcessorBuilder.setOutBody(Builder.outBody().convertTo(type)));\n        return this;\n    }\n\n    public RouteBuilder getBuilder() {\n        return builder;\n    }\n\n    public Endpoint getFrom() {\n        return from;\n    }\n\n    public List<Processor> getProcessors() {\n        return processors;\n    }\n\n    public ProcessorFactory addProcessBuilder(ProcessorFactory processFactory) {\n        processFactories.add(processFactory);\n        return processFactory;\n    }\n\n    protected void addProcessorBuilder(Processor processor) {\n        addProcessBuilder(new ConstantProcessorBuilder(processor));\n    }\n\n    public void addProcessor(Processor processor) {\n        processors.add(processor);\n    }\n\n    public Route createRoute() throws Exception {\n        if (routeBuilder != null) {\n            return routeBuilder.createRoute();\n        }\n        Processor processor = createProcessor();\n        if (processor == null) {\n            throw new IllegalArgumentException(\"No processor created for: \" + this);\n        }\n        return new EventDrivenConsumerRoute(getFrom(), processor);\n    }\n\n    public Processor createProcessor() throws Exception {\n        List<Processor> answer = new ArrayList<Processor>();\n\n        for (ProcessorFactory processFactory : processFactories) {\n            Processor processor = makeProcessor(processFactory);\n            if (processor == null) {\n                throw new IllegalArgumentException(\"No processor created for processBuilder: \" + processFactory);\n            }\n            answer.add(processor);\n        }\n        if (answer.size() == 0) {\n            return null;\n        }\n        Processor processor = null;\n        if (answer.size() == 1) {\n            processor = answer.get(0);\n        }\n        else {\n            processor = new CompositeProcessor(answer);\n        }\n        return processor;\n    }\n\n    /**\n     * Creates the processor and wraps it in any necessary interceptors and error handlers\n     */\n    protected Processor makeProcessor(ProcessorFactory processFactory) throws Exception {\n        Processor processor = processFactory.createProcessor();\n        processor = wrapProcessor(processor);\n        return wrapInErrorHandler(processor);\n    }\n\n    /**\n     * A strategy method to allow newly created processors to be wrapped in an error handler. This feature\n     * could be disabled for child builders such as {@link IdempotentConsumerBuilder} which will rely on the\n     * {@link FromBuilder} to perform the error handling to avoid doubly-wrapped processors with 2 nested error handlers\n     */\n    protected Processor wrapInErrorHandler(Processor processor) throws Exception {\n        return getErrorHandlerBuilder().createErrorHandler(processor);\n    }\n\n    /**\n     * A strategy method which allows derived classes to wrap the child processor in some kind of interceptor such as\n     * a filter for the {@link IdempotentConsumerBuilder}.\n     *\n     * @param processor the processor which can be wrapped\n     * @return the original processor or a new wrapped interceptor\n     */\n    protected Processor wrapProcessor(Processor processor) {\n        return processor;\n    }\n\n    protected FromBuilder getRouteBuilder() {\n        return routeBuilder;\n    }\n\n    protected void setRouteBuilder(FromBuilder routeBuilder) {\n        this.routeBuilder = routeBuilder;", "functions": [{"function_name": "to", "code": "    @Fluent\n    public ProcessorFactory to(@FluentArg(\"uri\")String uri) {\n        return to(endpoint(uri));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "to", "code": "    @Fluent\n    public ProcessorFactory to(@FluentArg(\"ref\")Endpoint endpoint) {\n        ToBuilder answer = new ToBuilder(this, endpoint);\n        addProcessBuilder(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "to", "code": "    @Fluent\n    public ProcessorFactory to(String... uris) {\n        return to(endpoints(uris));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "to", "code": "    @Fluent\n    public ProcessorFactory to(\n            @FluentArg(value = \"endpoint\", attribute = false, element = true)\n            Endpoint... endpoints) {\n        return to(endpoints(endpoints));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "to", "code": "    @Fluent\n    public ProcessorFactory to(@FluentArg(value = \"endpoint\", attribute = false, element = true)\n    Collection<Endpoint> endpoints) {\n        return addProcessBuilder(new MulticastBuilder(this, endpoints));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [3, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "pipeline", "code": "    @Fluent\n    public ProcessorFactory pipeline(@FluentArg(\"uris\")String... uris) {\n        return pipeline(endpoints(uris));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "pipeline", "code": "    @Fluent\n    public ProcessorFactory pipeline(@FluentArg(\"endpoints\")Endpoint... endpoints) {\n        return pipeline(endpoints(endpoints));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "pipeline", "code": "    @Fluent\n    public ProcessorFactory pipeline(@FluentArg(\"endpoints\")Collection<Endpoint> endpoints) {\n        return addProcessBuilder(new PipelineBuilder(this, endpoints));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "idempotentConsumer", "code": "    @Fluent\n    public IdempotentConsumerBuilder idempotentConsumer(\n            @FluentArg(\"messageIdExpression\")Expression messageIdExpression,\n            @FluentArg(\"MessageIdRepository\")MessageIdRepository messageIdRepository) {\n        return (IdempotentConsumerBuilder) addProcessBuilder(new IdempotentConsumerBuilder(this, messageIdExpression, messageIdRepository));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "filter", "code": "    @Fluent\n    public FilterBuilder filter(\n            @FluentArg(value = \"predicate\", element = true)\n            Predicate predicate) {\n        FilterBuilder answer = new FilterBuilder(this, predicate);\n        addProcessBuilder(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "choice", "code": "    @Fluent(nestedActions = true)\n    public ChoiceBuilder choice() {\n        ChoiceBuilder answer = new ChoiceBuilder(this);\n        addProcessBuilder(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "recipientList", "code": "    @Fluent\n    public RecipientListBuilder recipientList(\n            @FluentArg(value = \"recipients\", element = true)\n            Expression receipients) {\n        RecipientListBuilder answer = new RecipientListBuilder(this, receipients);\n        addProcessBuilder(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "splitter", "code": "    @Fluent\n    public SplitterBuilder splitter(@FluentArg(value = \"recipients\", element = true)Expression receipients) {\n        SplitterBuilder answer = new SplitterBuilder(this, receipients);\n        addProcessBuilder(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "resequencer", "code": "    public ResequencerBuilder resequencer(Expression<Exchange> expression) {\n        return resequencer(Collections.<Expression<Exchange>>singletonList(expression));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "resequencer", "code": "    @Fluent\n    public ResequencerBuilder resequencer(@FluentArg(value = \"expressions\")List<Expression<Exchange>> expressions) {\n        ResequencerBuilder answer = new ResequencerBuilder(this, expressions);\n        setRouteBuilder(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "resequencer", "code": "    @Fluent\n    public ResequencerBuilder resequencer(Expression<Exchange>... expressions) {\n        List<Expression<Exchange>> list = new ArrayList<Expression<Exchange>>();\n        for (Expression<Exchange> expression : expressions) {\n            list.add(expression);\n        }\n        return resequencer(list);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "errorHandler", "code": "    @Fluent\n    public FromBuilder errorHandler(@FluentArg(\"handler\")ErrorHandlerBuilder errorHandlerBuilder) {\n        setErrorHandlerBuilder(errorHandlerBuilder);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "inheritErrorHandler", "code": "    @Fluent\n    public FromBuilder inheritErrorHandler(@FluentArg(\"condition\")boolean condition) {\n        setInheritErrorHandler(condition);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "intercept", "code": "    @Fluent(nestedActions = true)\n    public InterceptorBuilder intercept() {\n        InterceptorBuilder answer = new InterceptorBuilder(this);\n        addProcessBuilder(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "trace", "code": "    @Fluent\n    public FromBuilder trace() {\n        return trace(DEFAULT_TRACE_CATEGORY);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "trace", "code": "    @Fluent\n    public FromBuilder trace(@FluentArg(\"category\")String category) {\n        final Log log = LogFactory.getLog(category);\n        return intercept(new DelegateProcessor() {\n            @Override\n            public void process(Exchange exchange) throws Exception {\n                log.trace(exchange);\n                processNext(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [4, 6], [2, 7], [6, 8], [8, 9], [8, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 4], [7, 2], [8, 6], [9, 8], [10, 8], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "intercept", "code": "    @Fluent\n    public FromBuilder intercept(@FluentArg(\"interceptor\")DelegateProcessor interceptor) {\n        InterceptorBuilder answer = new InterceptorBuilder(this);\n        answer.add(interceptor);\n        addProcessBuilder(answer);\n        return answer.target();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [3, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 3], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "policies", "code": "    @Fluent(nestedActions = true)\n    public PolicyBuilder policies() {\n        PolicyBuilder answer = new PolicyBuilder(this);\n        addProcessBuilder(answer);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "policy", "code": "    @Fluent\n    public FromBuilder policy(@FluentArg(\"policy\")Policy policy) {\n        PolicyBuilder answer = new PolicyBuilder(this);\n        answer.add(policy);\n        addProcessBuilder(answer);\n        return answer.target();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [3, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 3], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "process", "code": "    @Fluent\n    public FromBuilder process(@FluentArg(\"ref\")Processor processor) {\n        addProcessorBuilder(processor);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setBody", "code": "    @Fluent\n    public FromBuilder setBody(Expression expression) {\n        addProcessorBuilder(ProcessorBuilder.setBody(expression));\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setOutBody", "code": "    @Fluent\n    public FromBuilder setOutBody(Expression expression) {\n        addProcessorBuilder(ProcessorBuilder.setOutBody(expression));\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setHeader", "code": "    @Fluent\n    public FromBuilder setHeader(String name, Expression expression) {\n        addProcessorBuilder(ProcessorBuilder.setHeader(name, expression));\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setOutHeader", "code": "    @Fluent\n    public FromBuilder setOutHeader(String name, Expression expression) {\n        addProcessorBuilder(ProcessorBuilder.setOutHeader(name, expression));\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setProperty", "code": "    @Fluent\n    public FromBuilder setProperty(String name, Expression expression) {\n        addProcessorBuilder(ProcessorBuilder.setProperty(name, expression));\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "convertBodyTo", "code": "    @Fluent\n    public FromBuilder convertBodyTo(Class type) {\n        addProcessorBuilder(ProcessorBuilder.setBody(Builder.body().convertTo(type)));\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "convertOutBodyTo", "code": "    @Fluent\n    public FromBuilder convertOutBodyTo(Class type) {\n        addProcessorBuilder(ProcessorBuilder.setOutBody(Builder.outBody().convertTo(type)));\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getBuilder", "code": "    public RouteBuilder getBuilder() {\n        return builder;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFrom", "code": "    public Endpoint getFrom() {\n        return from;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProcessors", "code": "    public List<Processor> getProcessors() {\n        return processors;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addProcessBuilder", "code": "    public ProcessorFactory addProcessBuilder(ProcessorFactory processFactory) {\n        processFactories.add(processFactory);\n        return processFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addProcessorBuilder", "code": "    protected void addProcessorBuilder(Processor processor) {\n        addProcessBuilder(new ConstantProcessorBuilder(processor));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addProcessor", "code": "    public void addProcessor(Processor processor) {\n        processors.add(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createRoute", "code": "    public Route createRoute() throws Exception {\n        if (routeBuilder != null) {\n            return routeBuilder.createRoute();\n        }\n        Processor processor = createProcessor();\n        if (processor == null) {\n            throw new IllegalArgumentException(\"No processor created for: \" + this);\n        }\n        return new EventDrivenConsumerRoute(getFrom(), processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [5, 8], [2, 9], [6, 10], [3, 11], [4, 12], [7, 13], [9, 14], [12, 15], [14, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 5], [9, 2], [10, 6], [11, 3], [12, 4], [13, 7], [14, 9], [15, 12], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "createProcessor", "code": "    public Processor createProcessor() throws Exception {\n        List<Processor> answer = new ArrayList<Processor>();\n\n        for (ProcessorFactory processFactory : processFactories) {\n            Processor processor = makeProcessor(processFactory);\n            if (processor == null) {\n                throw new IllegalArgumentException(\"No processor created for processBuilder: \" + processFactory);\n            }\n            answer.add(processor);\n        }\n        if (answer.size() == 0) {\n            return null;\n        }\n        Processor processor = null;\n        if (answer.size() == 1) {\n            processor = answer.get(0);\n        }\n        else {\n            processor = new CompositeProcessor(answer);\n        }\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [7, 9], [7, 10], [3, 11], [4, 12], [8, 13], [8, 14], [5, 15], [5, 16], [6, 17], [2, 18], [2, 19], [12, 20], [5, 21], [15, 22], [18, 23], [19, 24], [15, 25], [22, 26], [16, 27], [24, 28], [25, 29], [29, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 7], [10, 7], [11, 3], [12, 4], [13, 8], [14, 8], [15, 5], [16, 5], [17, 6], [18, 2], [19, 2], [20, 12], [21, 5], [22, 15], [23, 18], [24, 19], [25, 15], [26, 22], [27, 16], [28, 24], [29, 25], [30, 29], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "makeProcessor", "code": "    protected Processor makeProcessor(ProcessorFactory processFactory) throws Exception {\n        Processor processor = processFactory.createProcessor();\n        processor = wrapProcessor(processor);\n        return wrapInErrorHandler(processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "wrapInErrorHandler", "code": "    protected Processor wrapInErrorHandler(Processor processor) throws Exception {\n        return getErrorHandlerBuilder().createErrorHandler(processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "wrapProcessor", "code": "    protected Processor wrapProcessor(Processor processor) {\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRouteBuilder", "code": "    protected FromBuilder getRouteBuilder() {\n        return routeBuilder;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRouteBuilder", "code": "    protected void setRouteBuilder(FromBuilder routeBuilder) {\n        this.routeBuilder = routeBuilder;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FromBuilder", "code": "    public FromBuilder(RouteBuilder builder, Endpoint from) {\n        super(builder);\n        this.builder = builder;\n        this.from = from;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "FromBuilder", "code": "    public FromBuilder(FromBuilder parent) {\n        super(parent);\n        this.builder = parent.getBuilder();\n        this.from = parent.getFrom();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.7-8434", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/serializer/SecuritySupport12.java", "language": "java", "name": "org.apache.xml.serializer.SecuritySupport12", "code": "class SecuritySupport12 extends SecuritySupport {\n\n    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;\n            }\n        });\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;\n                }\n            });\n    }\n\n    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;\n                }\n            });\n    }\n\n    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);\n                }\n            });\n    }\n\n    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();\n        }\n    }\n\n    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;\n                }\n            });\n    }\n    \n    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());\n                }\n            })).booleanValue();\n    }\n    \n    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "functions": [{"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "COND_EXPR", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [7, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 7], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [8, 10], [10, 11], [8, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 8], [11, 10], [12, 8], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLastModified", "code": "    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "ant-1.5-350", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/Touch.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Touch", "code": "public class Touch extends Task {\n\n    private File file;              \n    private long millis = -1;\n    private String dateTime;\n    private Vector filesets = new Vector();\n    private FileUtils fileUtils;\n\n    public Touch() {\n        fileUtils = FileUtils.newFileUtils();\n    }\n\n    /**\n     * Sets a single source file to touch.  If the file does not exist\n     * an empty file will be created.\n     */\n    public void setFile(File file) {\n        this.file = file;\n    }\n\n    /**\n     * the new modification time of the file\n     * in milliseconds since midnight Jan 1 1970.\n     * Optional, default=now\n     */\n    public void setMillis(long millis) {\n        this.millis = millis;\n    }\n\n    /**\n     * the new modification time of the file\n     * in the format MM/DD/YYYY HH:MM AM <i>or</i> PM;\n     * Optional, default=now\n     */\n    public void setDatetime(String dateTime) {\n        this.dateTime = dateTime;\n    }\n\n    /**\n     * Add a set of files to touch\n     */\n    public void addFileset(FileSet set) {\n        filesets.addElement(set);\n    }\n\n    /**\n     * Execute the touch operation.\n     */\n    public void execute() throws BuildException {\n        long savedMillis = millis;\n\n        if (file == null && filesets.size() == 0) {\n            throw \n                new BuildException(\"Specify at least one source - a file or \"\n                                   + \"a fileset.\");\n        }\n\n        if (file != null && file.exists() && file.isDirectory()) {\n            throw new BuildException(\"Use a fileset to touch directories.\");\n        }\n\n        try {\n            if (dateTime != null) {\n                DateFormat df = \n                    DateFormat.getDateTimeInstance(DateFormat.SHORT,\n                                                   DateFormat.SHORT,\n                                                   Locale.US);\n                try {\n                    setMillis(df.parse(dateTime).getTime());\n                    if (millis < 0) {\n                        throw new BuildException(\"Date of \" + dateTime\n                                                 + \" results in negative \"\n                                                 + \"milliseconds value \"\n                                                 + \"relative to epoch \"\n                                                 + \"(January 1, 1970, \"\n                                                 + \"00:00:00 GMT).\");\n                    }\n                } catch (ParseException pe) {\n                    throw new BuildException(pe.getMessage(), pe, location);\n                }\n            }\n\n            touch();\n        } finally {\n            millis = savedMillis;\n        }\n    }\n\n    /**\n     * Does the actual work. Entry point for Untar and Expand as well.\n     */\n    protected void touch() throws BuildException {\n        if (file != null) {\n            if (!file.exists()) {\n                log(\"Creating \" + file, Project.MSG_INFO);\n                try {\n                    fileUtils.createNewFile(file);\n                } catch (IOException ioe) {\n                    throw new BuildException(\"Could not create \" + file, ioe, \n                                             location);\n                }\n            }\n        }\n\n        if (millis >= 0 && \n            JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n            log(\"modification time of files cannot be set in JDK 1.1\",\n                Project.MSG_WARN);\n            return;\n        } \n\n        boolean resetMillis = false;\n        if (millis < 0) {\n            resetMillis = true;\n            millis = System.currentTimeMillis();\n        }\n\n        if (file != null) {\n            touch(file);\n        }\n\n        for (int i = 0; i < filesets.size(); i++) {\n            FileSet fs = (FileSet) filesets.elementAt(i);\n            DirectoryScanner ds = fs.getDirectoryScanner(project);\n            File fromDir = fs.getDir(project);\n\n            String[] srcFiles = ds.getIncludedFiles();\n            String[] srcDirs = ds.getIncludedDirectories();\n\n            for (int j = 0; j < srcFiles.length ; j++) {\n                touch(new File(fromDir, srcFiles[j]));\n            }\n         \n            for (int j = 0; j < srcDirs.length ; j++) {\n                touch(new File(fromDir, srcDirs[j]));\n            }\n        }\n\n        if (resetMillis) {\n            millis = -1;\n        }\n    }\n\n    protected void touch(File file) throws BuildException {\n        if (!file.canWrite()) {\n            throw new BuildException(\"Can not change modification date of \"\n                                     + \"read-only file \" + file);\n        }\n\n        if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n            return;\n        }\n\n        fileUtils.setFileLastModified(file, millis);", "functions": [{"function_name": "setFile", "code": "    public void setFile(File file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMillis", "code": "    public void setMillis(long millis) {\n        this.millis = millis;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setDatetime", "code": "    public void setDatetime(String dateTime) {\n        this.dateTime = dateTime;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        filesets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        long savedMillis = millis;\n\n        if (file == null && filesets.size() == 0) {\n            throw \n                new BuildException(\"Specify at least one source - a file or \"\n                                   + \"a fileset.\");\n        }\n\n        if (file != null && file.exists() && file.isDirectory()) {\n            throw new BuildException(\"Use a fileset to touch directories.\");\n        }\n\n        try {\n            if (dateTime != null) {\n                DateFormat df = \n                    DateFormat.getDateTimeInstance(DateFormat.SHORT,\n                                                   DateFormat.SHORT,\n                                                   Locale.US);\n                try {\n                    setMillis(df.parse(dateTime).getTime());\n                    if (millis < 0) {\n                        throw new BuildException(\"Date of \" + dateTime\n                                                 + \" results in negative \"\n                                                 + \"milliseconds value \"\n                                                 + \"relative to epoch \"\n                                                 + \"(January 1, 1970, \"\n                                                 + \"00:00:00 GMT).\");\n                    }\n                } catch (ParseException pe) {\n                    throw new BuildException(pe.getMessage(), pe, location);\n                }\n            }\n\n            touch();\n        } finally {\n            millis = savedMillis;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [1, 8], [1, 9], [5, 10], [2, 11], [6, 12], [6, 13], [3, 14], [7, 15], [7, 16], [5, 17], [5, 18], [10, 19], [11, 20], [13, 21], [13, 22], [14, 23], [15, 24], [15, 25], [16, 26], [17, 27], [17, 28], [20, 29], [22, 30], [23, 31], [27, 32], [28, 33], [17, 34], [18, 35], [31, 36], [31, 37], [32, 38], [28, 39], [33, 40], [34, 41], [38, 42], [39, 43], [41, 44], [43, 45], [45, 46], [45, 47], [47, 48], [47, 49], [49, 50], [49, 51], [51, 52], [51, 53], [53, 54], [53, 55], [55, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 1], [9, 1], [10, 5], [11, 2], [12, 6], [13, 6], [14, 3], [15, 7], [16, 7], [17, 5], [18, 5], [19, 10], [20, 11], [21, 13], [22, 13], [23, 14], [24, 15], [25, 15], [26, 16], [27, 17], [28, 17], [29, 20], [30, 22], [31, 23], [32, 27], [33, 28], [34, 17], [35, 18], [36, 31], [37, 31], [38, 32], [39, 28], [40, 33], [41, 34], [42, 38], [43, 39], [44, 41], [45, 43], [46, 45], [47, 45], [48, 47], [49, 47], [50, 49], [51, 49], [52, 51], [53, 51], [54, 53], [55, 53], [56, 55], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "touch", "code": "    protected void touch() throws BuildException {\n        if (file != null) {\n            if (!file.exists()) {\n                log(\"Creating \" + file, Project.MSG_INFO);\n                try {\n                    fileUtils.createNewFile(file);\n                } catch (IOException ioe) {\n                    throw new BuildException(\"Could not create \" + file, ioe, \n                                             location);\n                }\n            }\n        }\n\n        if (millis >= 0 && \n            JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n            log(\"modification time of files cannot be set in JDK 1.1\",\n                Project.MSG_WARN);\n            return;\n        } \n\n        boolean resetMillis = false;\n        if (millis < 0) {\n            resetMillis = true;\n            millis = System.currentTimeMillis();\n        }\n\n        if (file != null) {\n            touch(file);\n        }\n\n        for (int i = 0; i < filesets.size(); i++) {\n            FileSet fs = (FileSet) filesets.elementAt(i);\n            DirectoryScanner ds = fs.getDirectoryScanner(project);\n            File fromDir = fs.getDir(project);\n\n            String[] srcFiles = ds.getIncludedFiles();\n            String[] srcDirs = ds.getIncludedDirectories();\n\n            for (int j = 0; j < srcFiles.length ; j++) {\n                touch(new File(fromDir, srcFiles[j]));\n            }\n         \n            for (int j = 0; j < srcDirs.length ; j++) {\n                touch(new File(fromDir, srcDirs[j]));\n            }\n        }\n\n        if (resetMillis) {\n            millis = -1;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "IF", "IF", "VAR_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [6, 11], [7, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [8, 20], [9, 21], [10, 22], [5, 23], [6, 24], [11, 25], [11, 26], [7, 27], [12, 28], [1, 29], [13, 30], [14, 31], [2, 32], [3, 33], [4, 34], [4, 35], [6, 36], [26, 37], [27, 38], [29, 39], [15, 40], [16, 41], [17, 42], [18, 43], [34, 44], [35, 45], [36, 46], [27, 47], [13, 48], [13, 49], [14, 50], [14, 51], [19, 52], [47, 53], [27, 54], [48, 55], [50, 56], [53, 57], [47, 58], [54, 59], [57, 60], [59, 61], [60, 62], [62, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 6], [12, 7], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 8], [21, 9], [22, 10], [23, 5], [24, 6], [25, 11], [26, 11], [27, 7], [28, 12], [29, 1], [30, 13], [31, 14], [32, 2], [33, 3], [34, 4], [35, 4], [36, 6], [37, 26], [38, 27], [39, 29], [40, 15], [41, 16], [42, 17], [43, 18], [44, 34], [45, 35], [46, 36], [47, 27], [48, 13], [49, 13], [50, 14], [51, 14], [52, 19], [53, 47], [54, 27], [55, 48], [56, 50], [57, 53], [58, 47], [59, 54], [60, 57], [61, 59], [62, 60], [63, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "touch", "code": "    protected void touch(File file) throws BuildException {\n        if (!file.canWrite()) {\n            throw new BuildException(\"Can not change modification date of \"\n                                     + \"read-only file \" + file);\n        }\n\n        if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n            return;\n        }\n\n        fileUtils.setFileLastModified(file, millis);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "CALL", "CALL", "RETURN", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [8, 9], [9, 10], [10, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 8], [10, 9], [11, 10], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "Touch", "code": "    public Touch() {\n        fileUtils = FileUtils.newFileUtils();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.2-1983", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/mock/AssertionClause.java", "language": "java", "name": "org.apache.camel.component.mock.AssertionClause", "code": "public abstract class AssertionClause<E extends Exchange> implements Runnable {\n\n    private List<Predicate<E>> predicates = new ArrayList<Predicate<E>>();\n\n\n    /**\n     * Adds the given predicate to this assertion clause\n     */\n    public AssertionClause<E> predicate(Predicate<E> predicate) {\n        addPredicate(predicate);\n        return this;\n    }\n\n    /**\n     * Returns a predicate and value builder for headers on an exchange\n     */\n\n    public ValueBuilder<E> header(String name) {\n        Expression<E> expression = headerExpression(name);\n        return new PredicateValueBuilder(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the inbound body on an exchange\n     */\n\n    public PredicateValueBuilder body() {\n        Expression<E> expression = bodyExpression();\n        return new PredicateValueBuilder(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the inbound message body as a\n     * specific type\n     */\n\n    public <T> PredicateValueBuilder bodyAs(Class<T> type) {\n        Expression<E> expression = bodyExpression(type);\n        return new PredicateValueBuilder(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the outbound body on an\n     * exchange\n     */\n\n    public PredicateValueBuilder outBody() {\n        Expression<E> expression = bodyExpression();\n        return new PredicateValueBuilder(expression);\n    }\n\n    /**\n     * Returns a predicate and value builder for the outbound message body as a\n     * specific type\n     */\n\n    public <T> PredicateValueBuilder outBody(Class<T> type) {\n        Expression<E> expression = bodyExpression(type);\n        return new PredicateValueBuilder(expression);\n    }\n\n    /**\n     * Performs any assertions on the given exchange\n     */\n    protected void applyAssertionOn(MockEndpoint endpoint, int index, E exchange) {\n        for (Predicate<E> predicate : predicates) {\n            predicate.assertMatches(endpoint.getEndpointUri() + \" \", exchange);\n        }\n    }\n\n    protected void addPredicate(Predicate<E> predicate) {\n        predicates.add(predicate);\n    }\n\n    public class PredicateValueBuilder extends ValueBuilder<E> {\n\n        public PredicateValueBuilder(Expression<E> expression) {\n            super(expression);\n        }\n\n        protected Predicate<E> onNewPredicate(Predicate<E> predicate) {\n            addPredicate(predicate);\n            return predicate;", "functions": [{"function_name": "predicate", "code": "    public AssertionClause<E> predicate(Predicate<E> predicate) {\n        addPredicate(predicate);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "header", "code": "    public ValueBuilder<E> header(String name) {\n        Expression<E> expression = headerExpression(name);\n        return new PredicateValueBuilder(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "body", "code": "    public PredicateValueBuilder body() {\n        Expression<E> expression = bodyExpression();\n        return new PredicateValueBuilder(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "bodyAs", "code": "    public <T> PredicateValueBuilder bodyAs(Class<T> type) {\n        Expression<E> expression = bodyExpression(type);\n        return new PredicateValueBuilder(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "outBody", "code": "    public PredicateValueBuilder outBody() {\n        Expression<E> expression = bodyExpression();\n        return new PredicateValueBuilder(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "outBody", "code": "    public <T> PredicateValueBuilder outBody(Class<T> type) {\n        Expression<E> expression = bodyExpression(type);\n        return new PredicateValueBuilder(expression);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "applyAssertionOn", "code": "    protected void applyAssertionOn(MockEndpoint endpoint, int index, E exchange) {\n        for (Predicate<E> predicate : predicates) {\n            predicate.assertMatches(endpoint.getEndpointUri() + \" \", exchange);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "addPredicate", "code": "    protected void addPredicate(Predicate<E> predicate) {\n        predicates.add(predicate);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "log4j-1.2-5012", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/Category.java", "language": "java", "name": "org.apache.log4j.Category", "code": "public class Category implements AppenderAttachable {\n\n  /**\n     The hierarchy where categories are attached to by default.\n  */\n  //static\n  //public\n  //final Hierarchy defaultHierarchy = new Hierarchy(new\n  //\t\t\t\t\t   RootCategory(Level.DEBUG));\n\n  /**\n     The name of this category.\n  */\n  protected String   name;\n\n  /**\n     The assigned level of this category.  The\n     <code>level</code> variable need not be assigned a value in\n     which case it is inherited form the hierarchy.  */\n  volatile protected Level level;\n\n  /**\n     The parent of this category. All categories have at least one\n     ancestor which is the root category. */\n  volatile protected Category parent;\n\n  /**\n     The fully qualified name of the Category class. See also the\n     getFQCN method. */\n  private static final String FQCN = Category.class.getName();\n\n  protected ResourceBundle resourceBundle;\n\n  // Categories need to know what Hierarchy they are in\n  protected LoggerRepository repository;\n\n\n  AppenderAttachableImpl aai;\n\n  /** Additivity is set to true by default, that is children inherit\n      the appenders of their ancestors by default. If this variable is\n      set to <code>false</code> then the appenders found in the\n      ancestors of this category are not used. However, the children\n      of this category will inherit its appenders, unless the children\n      have their additivity flag set to <code>false</code> too. See\n      the user manual for more details. */\n  protected boolean additive = true;\n\n  /**\n     This constructor created a new <code>Category</code> instance and\n     sets its name.\n\n     <p>It is intended to be used by sub-classes only. You should not\n     create categories directly.\n\n     @param name The name of the category.\n  */\n  protected\n  Category(String name) {\n    this.name = name;\n  }\n\n  /**\n     Add <code>newAppender</code> to the list of appenders of this\n     Category instance.\n\n     <p>If <code>newAppender</code> is already in the list of\n     appenders, then it won't be added again.\n  */\n  synchronized\n  public\n  void addAppender(Appender newAppender) {\n    if(aai == null) {\n      aai = new AppenderAttachableImpl();\n    }\n    aai.addAppender(newAppender);\n    repository.fireAddAppenderEvent(this, newAppender);\n  }\n\n  /**\n     If <code>assertion</code> parameter is <code>false</code>, then\n     logs <code>msg</code> as an {@link #error(Object) error} statement.\n\n     <p>The <code>assert</code> method has been renamed to\n     <code>assertLog</code> because <code>assert</code> is a language\n     reserved word in JDK 1.4.\n\n     @param assertion\n     @param msg The message to print if <code>assertion</code> is\n     false.\n\n     @since 1.2 */\n  public\n  void assertLog(boolean assertion, String msg) {\n    if(!assertion)\n      this.error(msg);\n  }\n\n\n  /**\n     Call the appenders in the hierrachy starting at\n     <code>this</code>.  If no appenders could be found, emit a\n     warning.\n\n     <p>This method calls all the appenders inherited from the\n     hierarchy circumventing any evaluation of whether to log or not\n     to log the particular log request.\n\n     @param event the event to log.  */\n  public\n  void callAppenders(LoggingEvent event) {\n    int writes = 0;\n\n    for(Category c = this; c != null; c=c.parent) {\n      // Protected against simultaneous call to addAppender, removeAppender,...\n      synchronized(c) {\n\tif(c.aai != null) {\n\t  writes += c.aai.appendLoopOnAppenders(event);\n\t}\n\tif(!c.additive) {\n\t  break;\n\t}\n      }\n    }\n\n    if(writes == 0) {\n      repository.emitNoAppenderWarning(this);\n    }\n  }\n\n  /**\n     Close all attached appenders implementing the AppenderAttachable\n     interface.\n     @since 1.0\n  */\n  synchronized\n  void closeNestedAppenders() {\n    Enumeration enumeration = this.getAllAppenders();\n    if(enumeration != null) {\n      while(enumeration.hasMoreElements()) {\n\tAppender a = (Appender) enumeration.nextElement();\n\tif(a instanceof AppenderAttachable) {\n\t  a.close();\n\t}\n      }\n    }\n  }\n\n  /**\n    Log a message object with the {@link Level#DEBUG DEBUG} level.\n\n    <p>This method first checks if this category is <code>DEBUG</code>\n    enabled by comparing the level of this category with the {@link\n    Level#DEBUG DEBUG} level. If this category is\n    <code>DEBUG</code> enabled, then it converts the message object\n    (passed as parameter) to a string by invoking the appropriate\n    {@link org.apache.log4j.or.ObjectRenderer}. It then proceeds to call all the\n    registered appenders in this category and also higher in the\n    hierarchy depending on the value of the additivity flag.\n\n    <p><b>WARNING</b> Note that passing a {@link Throwable} to this\n    method will print the name of the <code>Throwable</code> but no\n    stack trace. To print a stack trace use the {@link #debug(Object,\n    Throwable)} form instead.\n\n    @param message the message object to log. */\n  public\n  void debug(Object message) {\n    if(repository.isDisabled(Level.DEBUG_INT))\n      return;\n    if(Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel())) {\n      forcedLog(FQCN, Level.DEBUG, message, null);\n    }\n  }\n\n\n  /**\n   Log a message object with the <code>DEBUG</code> level including\n   the stack trace of the {@link Throwable} <code>t</code> passed as\n   parameter.\n\n   <p>See {@link #debug(Object)} form for more detailed information.\n\n   @param message the message object to log.\n   @param t the exception to log, including its stack trace.  */\n  public\n  void debug(Object message, Throwable t) {\n    if(repository.isDisabled(Level.DEBUG_INT))\n      return;\n    if(Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.DEBUG, message, t);\n  }\n\n  /**\n    Log a message object with the {@link Level#ERROR ERROR} Level.\n\n    <p>This method first checks if this category is <code>ERROR</code>\n    enabled by comparing the level of this category with {@link\n    Level#ERROR ERROR} Level. If this category is <code>ERROR</code>\n    enabled, then it converts the message object passed as parameter\n    to a string by invoking the appropriate {@link\n    org.apache.log4j.or.ObjectRenderer}. It proceeds to call all the\n    registered appenders in this category and also higher in the\n    hierarchy depending on the value of the additivity flag.\n\n    <p><b>WARNING</b> Note that passing a {@link Throwable} to this\n    method will print the name of the <code>Throwable</code> but no\n    stack trace. To print a stack trace use the {@link #error(Object,\n    Throwable)} form instead.\n\n    @param message the message object to log */\n  public\n  void error(Object message) {\n    if(repository.isDisabled(Level.ERROR_INT))\n      return;\n    if(Level.ERROR.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.ERROR, message, null);\n  }\n\n  /**\n   Log a message object with the <code>ERROR</code> level including\n   the stack trace of the {@link Throwable} <code>t</code> passed as\n   parameter.\n\n   <p>See {@link #error(Object)} form for more detailed information.\n\n   @param message the message object to log.\n   @param t the exception to log, including its stack trace.  */\n  public\n  void error(Object message, Throwable t) {\n    if(repository.isDisabled(Level.ERROR_INT))\n      return;\n    if(Level.ERROR.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.ERROR, message, t);\n\n  }\n\n\n  /**\n     If the named category exists (in the default hierarchy) then it\n     returns a reference to the category, otherwise it returns\n     <code>null</code>.\n\n     @deprecated Please use {@link LogManager#exists} instead.\n\n     @since 0.8.5 */\n  public\n  static\n  Logger exists(String name) {\n    return LogManager.exists(name);\n  }\n\n  /**\n    Log a message object with the {@link Level#FATAL FATAL} Level.\n\n    <p>This method first checks if this category is <code>FATAL</code>\n    enabled by comparing the level of this category with {@link\n    Level#FATAL FATAL} Level. If the category is <code>FATAL</code>\n    enabled, then it converts the message object passed as parameter\n    to a string by invoking the appropriate\n    {@link org.apache.log4j.or.ObjectRenderer}. It\n    proceeds to call all the registered appenders in this category and\n    also higher in the hierarchy depending on the value of the\n    additivity flag.\n\n    <p><b>WARNING</b> Note that passing a {@link Throwable} to this\n    method will print the name of the Throwable but no stack trace. To\n    print a stack trace use the {@link #fatal(Object, Throwable)} form\n    instead.\n\n    @param message the message object to log */\n  public\n  void fatal(Object message) {\n    if(repository.isDisabled(Level.FATAL_INT))\n      return;\n    if(Level.FATAL.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.FATAL, message, null);\n  }\n\n  /**\n   Log a message object with the <code>FATAL</code> level including\n   the stack trace of the {@link Throwable} <code>t</code> passed as\n   parameter.\n\n   <p>See {@link #fatal(Object)} for more detailed information.\n\n   @param message the message object to log.\n   @param t the exception to log, including its stack trace.  */\n  public\n  void fatal(Object message, Throwable t) {\n    if(repository.isDisabled(Level.FATAL_INT))\n      return;\n    if(Level.FATAL.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.FATAL, message, t);\n  }\n\n\n  /**\n     This method creates a new logging event and logs the event\n     without further checks.  */\n  protected\n  void forcedLog(String fqcn, Priority level, Object message, Throwable t) {\n    callAppenders(new LoggingEvent(fqcn, this, level, message, t));\n  }\n\n\n  /**\n     Get the additivity flag for this Category instance.\n  */\n  public\n  boolean getAdditivity() {\n    return additive;\n  }\n\n  /**\n     Get the appenders contained in this category as an {@link\n     Enumeration}. If no appenders can be found, then a {@link NullEnumeration}\n     is returned.\n\n     @return Enumeration An enumeration of the appenders in this category.  */\n  synchronized\n  public\n  Enumeration getAllAppenders() {\n    if(aai == null)\n      return NullEnumeration.getInstance();\n    else\n      return aai.getAllAppenders();\n  }\n\n  /**\n     Look for the appender named as <code>name</code>.\n\n     <p>Return the appender with that name if in the list. Return\n     <code>null</code> otherwise.  */\n  synchronized\n  public\n  Appender getAppender(String name) {\n     if(aai == null || name == null)\n      return null;\n\n     return aai.getAppender(name);\n  }\n\n  /**\n     Starting from this category, search the category hierarchy for a\n     non-null level and return it. Otherwise, return the level of the\n     root category.\n\n     <p>The Category class is designed so that this method executes as\n     quickly as possible.\n   */\n  public\n  Level getEffectiveLevel() {\n    for(Category c = this; c != null; c=c.parent) {\n      if(c.level != null)\n\treturn c.level;\n    }\n    return null; // If reached will cause an NullPointerException.\n  }\n\n  /**\n    *\n    * @deprecated Please use the the {@link #getEffectiveLevel} method\n    * instead.  \n    * */\n  public\n  Priority getChainedPriority() {\n    for(Category c = this; c != null; c=c.parent) {\n      if(c.level != null)\n\treturn c.level;\n    }\n    return null; // If reached will cause an NullPointerException.\n  }\n\n\n  /**\n     Returns all the currently defined categories in the default\n     hierarchy as an {@link java.util.Enumeration Enumeration}.\n\n     <p>The root category is <em>not</em> included in the returned\n     {@link Enumeration}.\n\n     @deprecated Please use {@link LogManager#getCurrentLoggers()} instead.\n  */\n  public\n  static\n  Enumeration getCurrentCategories() {\n    return LogManager.getCurrentLoggers();\n  }\n\n\n  /**\n     Return the default Hierarchy instance.\n\n     @deprecated Please use {@link LogManager#getLoggerRepository()} instead.\n\n     @since 1.0\n   */\n  public\n  static\n  LoggerRepository getDefaultHierarchy() {\n    return LogManager.getLoggerRepository();\n  }\n\n  /**\n     Return the the {@link Hierarchy} where this <code>Category</code>\n     instance is attached.\n\n     @deprecated Please use {@link #getLoggerRepository} instead.\n\n     @since 1.1 */\n  public\n  LoggerRepository  getHierarchy() {\n    return repository;\n  }\n\n  /**\n     Return the the {@link LoggerRepository} where this\n     <code>Category</code> is attached.\n\n     @since 1.2 */\n  public\n  LoggerRepository  getLoggerRepository() {\n    return repository;\n  }\n\n\n /**\n  * @deprecated Make sure to use {@link Logger#getLogger(String)} instead.\n  */\n  public\n  static\n  Category getInstance(String name) {\n    return LogManager.getLogger(name);\n  }\n\n /**\n  * @deprecated Please make sure to use {@link Logger#getLogger(Class)} instead.\n  */ \n  public\n  static\n  Category getInstance(Class clazz) {\n    return LogManager.getLogger(clazz);\n  }\n\n\n  /**\n     Return the category name.  */\n  public\n  final\n  String getName() {\n    return name;\n  }\n\n\n  /**\n     Returns the parent of this category. Note that the parent of a\n     given category may change during the lifetime of the category.\n\n     <p>The root category will return <code>null</code>.\n\n     @since 1.2\n  */\n  final\n  public\n  Category getParent() {\n    return this.parent;\n  }\n\n\n  /**\n     Returns the assigned {@link Level}, if any, for this Category.\n\n     @return Level - the assigned Level, can be <code>null</code>.\n  */\n  final\n  public\n  Level getLevel() {\n    return this.level;\n  }\n\n  /**\n     @deprecated Please use {@link #getLevel} instead.\n  */\n  final\n  public\n  Level getPriority() {\n    return this.level;\n  }\n\n\n  /**\n   *  @deprecated Please use {@link Logger#getRootLogger()} instead.\n   */\n  final\n  public\n  static\n  Category getRoot() {\n    return LogManager.getRootLogger();\n  }\n\n  /**\n     Return the <em>inherited</em> {@link ResourceBundle} for this\n     category.\n\n     <p>This method walks the hierarchy to find the appropriate\n     resource bundle. It will return the resource bundle attached to\n     the closest ancestor of this category, much like the way\n     priorities are searched. In case there is no bundle in the\n     hierarchy then <code>null</code> is returned.\n\n     @since 0.9.0 */\n  public\n  ResourceBundle getResourceBundle() {\n    for(Category c = this; c != null; c=c.parent) {\n      if(c.resourceBundle != null)\n\treturn c.resourceBundle;\n    }\n    // It might be the case that there is no resource bundle\n    return null;\n  }\n\n  /**\n     Returns the string resource coresponding to <code>key</code> in\n     this category's inherited resource bundle. See also {@link\n     #getResourceBundle}.\n\n     <p>If the resource cannot be found, then an {@link #error error}\n     message will be logged complaining about the missing resource.\n  */\n  protected\n  String getResourceBundleString(String key) {\n    ResourceBundle rb = getResourceBundle();\n    // This is one of the rare cases where we can use logging in order\n    // to report errors from within log4j.\n    if(rb == null) {\n      //if(!hierarchy.emittedNoResourceBundleWarning) {\n      //error(\"No resource bundle has been set for category \"+name);\n      //hierarchy.emittedNoResourceBundleWarning = true;\n      //}\n      return null;\n    }\n    else {\n      try {\n\treturn rb.getString(key);\n      }\n      catch(MissingResourceException mre) {\n\terror(\"No resource is associated with key \\\"\"+key+\"\\\".\");\n\treturn null;\n      }\n    }\n  }\n\n  /**\n    Log a message object with the {@link Level#INFO INFO} Level.\n\n    <p>This method first checks if this category is <code>INFO</code>\n    enabled by comparing the level of this category with {@link\n    Level#INFO INFO} Level. If the category is <code>INFO</code>\n    enabled, then it converts the message object passed as parameter\n    to a string by invoking the appropriate\n    {@link org.apache.log4j.or.ObjectRenderer}. It\n    proceeds to call all the registered appenders in this category and\n    also higher in the hierarchy depending on the value of the\n    additivity flag.\n\n    <p><b>WARNING</b> Note that passing a {@link Throwable} to this\n    method will print the name of the Throwable but no stack trace. To\n    print a stack trace use the {@link #info(Object, Throwable)} form\n    instead.\n\n    @param message the message object to log */\n  public\n  void info(Object message) {\n    if(repository.isDisabled(Level.INFO_INT))\n      return;\n    if(Level.INFO.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.INFO, message, null);\n  }\n\n  /**\n   Log a message object with the <code>INFO</code> level including\n   the stack trace of the {@link Throwable} <code>t</code> passed as\n   parameter.\n\n   <p>See {@link #info(Object)} for more detailed information.\n\n   @param message the message object to log.\n   @param t the exception to log, including its stack trace.  */\n  public\n  void info(Object message, Throwable t) {\n    if(repository.isDisabled(Level.INFO_INT))\n      return;\n    if(Level.INFO.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.INFO, message, t);\n  }\n\n  /**\n     Is the appender passed as parameter attached to this category?\n   */\n  public\n  boolean isAttached(Appender appender) {\n    if(appender == null || aai == null)\n      return false;\n    else {\n      return aai.isAttached(appender);\n    }\n  }\n\n  /**\n    *  Check whether this category is enabled for the <code>DEBUG</code>\n    *  Level.\n    *\n    *  <p> This function is intended to lessen the computational cost of\n    *  disabled log debug statements.\n    *\n    *  <p> For some <code>cat</code> Category object, when you write,\n    *  <pre>\n    *      cat.debug(\"This is entry number: \" + i );\n    *  </pre>\n    *\n    *  <p>You incur the cost constructing the message, concatenatiion in\n    *  this case, regardless of whether the message is logged or not.\n    *\n    *  <p>If you are worried about speed, then you should write\n    *  <pre>\n    * \t if(cat.isDebugEnabled()) {\n    * \t   cat.debug(\"This is entry number: \" + i );\n    * \t }\n    *  </pre>\n    *\n    *  <p>This way you will not incur the cost of parameter\n    *  construction if debugging is disabled for <code>cat</code>. On\n    *  the other hand, if the <code>cat</code> is debug enabled, you\n    *  will incur the cost of evaluating whether the category is debug\n    *  enabled twice. Once in <code>isDebugEnabled</code> and once in\n    *  the <code>debug</code>.  This is an insignificant overhead\n    *  since evaluating a category takes about 1%% of the time it\n    *  takes to actually log.\n    *\n    *  @return boolean - <code>true</code> if this category is debug\n    *  enabled, <code>false</code> otherwise.\n    *   */\n  public\n  boolean isDebugEnabled() {\n    if(repository.isDisabled( Level.DEBUG_INT))\n      return false;\n    return Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel());\n  }\n\n  /**\n     Check whether this category is enabled for a given {@link\n     Level} passed as parameter.\n\n     See also {@link #isDebugEnabled}.\n\n     @return boolean True if this category is enabled for <code>level</code>.\n  */\n  public\n  boolean isEnabledFor(Priority level) {\n    if(repository.isDisabled(level.level))\n      return false;\n    return level.isGreaterOrEqual(this.getEffectiveLevel());\n  }\n\n  /**\n    Check whether this category is enabled for the info Level.\n    See also {@link #isDebugEnabled}.\n\n    @return boolean - <code>true</code> if this category is enabled\n    for level info, <code>false</code> otherwise.\n  */\n  public\n  boolean isInfoEnabled() {\n    if(repository.isDisabled(Level.INFO_INT))\n      return false;\n    return Level.INFO.isGreaterOrEqual(this.getEffectiveLevel());\n  }\n\n\n  /**\n     Log a localized message. The user supplied parameter\n     <code>key</code> is replaced by its localized version from the\n     resource bundle.\n\n     @see #setResourceBundle\n\n     @since 0.8.4 */\n  public\n  void l7dlog(Priority priority, String key, Throwable t) {\n    if(repository.isDisabled(priority.level)) {\n      return;\n    }\n    if(priority.isGreaterOrEqual(this.getEffectiveLevel())) {\n      String msg = getResourceBundleString(key);\n      // if message corresponding to 'key' could not be found in the\n      // resource bundle, then default to 'key'.\n      if(msg == null) {\n\tmsg = key;\n      }\n      forcedLog(FQCN, priority, msg, t);\n    }\n  }\n  /**\n     Log a localized and parameterized message. First, the user\n     supplied <code>key</code> is searched in the resource\n     bundle. Next, the resulting pattern is formatted using\n     {@link java.text.MessageFormat#format(String,Object[])} method with the\n     user supplied object array <code>params</code>.\n\n     @since 0.8.4\n  */\n  public\n  void l7dlog(Priority priority, String key,  Object[] params, Throwable t) {\n    if(repository.isDisabled(priority.level)) {\n      return;\n    }\n    if(priority.isGreaterOrEqual(this.getEffectiveLevel())) {\n      String pattern = getResourceBundleString(key);\n      String msg;\n      if(pattern == null)\n\tmsg = key;\n      else\n\tmsg = java.text.MessageFormat.format(pattern, params);\n      forcedLog(FQCN, priority, msg, t);\n    }\n  }\n\n  /**\n     This generic form is intended to be used by wrappers.\n   */\n  public\n  void log(Priority priority, Object message, Throwable t) {\n    if(repository.isDisabled(priority.level)) {\n      return;\n    }\n    if(priority.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, priority, message, t);\n  }\n\n /**\n    This generic form is intended to be used by wrappers.\n */\n  public\n  void log(Priority priority, Object message) {\n    if(repository.isDisabled(priority.level)) {\n      return;\n    }\n    if(priority.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, priority, message, null);\n  }\n\n  /**\n\n     This is the most generic printing method. It is intended to be\n     invoked by <b>wrapper</b> classes.\n\n     @param callerFQCN The wrapper class' fully qualified class name.\n     @param level The level of the logging request.\n     @param message The message of the logging request.\n     @param t The throwable of the logging request, may be null.  */\n  public\n  void log(String callerFQCN, Priority level, Object message, Throwable t) {\n    if(repository.isDisabled(level.level)) {\n      return;\n    }\n    if(level.isGreaterOrEqual(this.getEffectiveLevel())) {\n      forcedLog(callerFQCN, level, message, t);\n    }\n  }\n\n    /**\n      *  LoggerRepository forgot the fireRemoveAppenderEvent method,\n      *     if using the stock Hierarchy implementation, then call its fireRemove.\n      *     Custom repositories can implement HierarchyEventListener if they\n      *     want remove notifications.\n     * @param appender appender, may be null.\n     */\n   private void fireRemoveAppenderEvent(final Appender appender) {\n       if (appender != null) {\n         if (repository instanceof Hierarchy) {\n           ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);\n         } else if (repository instanceof HierarchyEventListener) {\n             ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);\n         }\n       }\n   }\n\n  /**\n     Remove all previously added appenders from this Category\n     instance.\n\n     <p>This is useful when re-reading configuration information.\n  */\n  synchronized\n  public\n  void removeAllAppenders() {\n    if(aai != null) {\n      Vector appenders = new Vector();\n      for (Enumeration iter = aai.getAllAppenders(); iter != null && iter.hasMoreElements();) {\n          appenders.add(iter.nextElement());\n      }\n      aai.removeAllAppenders();\n      for(Enumeration iter = appenders.elements(); iter.hasMoreElements();) {\n          fireRemoveAppenderEvent((Appender) iter.nextElement());\n      }\n      aai = null;\n    }\n  }\n\n\n  /**\n     Remove the appender passed as parameter form the list of appenders.\n\n     @since 0.8.2\n  */\n  synchronized\n  public\n  void removeAppender(Appender appender) {\n    if(appender == null || aai == null)\n      return;\n    boolean wasAttached = aai.isAttached(appender);\n    aai.removeAppender(appender);\n    if (wasAttached) {\n        fireRemoveAppenderEvent(appender);\n    }\n  }\n\n  /**\n     Remove the appender with the name passed as parameter form the\n     list of appenders.\n\n     @since 0.8.2 */\n  synchronized\n  public\n  void removeAppender(String name) {\n    if(name == null || aai == null) return;\n    Appender appender = aai.getAppender(name);\n    aai.removeAppender(name);\n    if (appender != null) {\n        fireRemoveAppenderEvent(appender);\n    }\n  }\n\n  /**\n     Set the additivity flag for this Category instance.\n     @since 0.8.1\n   */\n  public\n  void setAdditivity(boolean additive) {\n    this.additive = additive;\n  }\n\n  /**\n     Only the Hiearchy class can set the hiearchy of a\n     category. Default package access is MANDATORY here.  */\n  final\n  void setHierarchy(LoggerRepository repository) {\n    this.repository = repository;\n  }\n\n  /**\n     Set the level of this Category. If you are passing any of\n     <code>Level.DEBUG</code>, <code>Level.INFO</code>,\n     <code>Level.WARN</code>, <code>Level.ERROR</code>,\n     <code>Level.FATAL</code> as a parameter, you need to case them as\n     Level.\n\n     <p>As in <pre> &nbsp;&nbsp;&nbsp;logger.setLevel((Level) Level.DEBUG); </pre>\n\n\n     <p>Null values are admitted.  */\n  public\n  void setLevel(Level level) {\n    this.level = level;\n  }\n\n\n  /**\n     Set the level of this Category.\n\n     <p>Null values are admitted.\n\n     @deprecated Please use {@link #setLevel} instead.\n  */\n  public\n  void setPriority(Priority priority) {\n    this.level = (Level) priority;\n  }\n\n\n  /**\n     Set the resource bundle to be used with localized logging\n     methods {@link #l7dlog(Priority,String,Throwable)} and {@link\n     #l7dlog(Priority,String,Object[],Throwable)}.\n\n     @since 0.8.4\n   */\n  public\n  void setResourceBundle(ResourceBundle bundle) {\n    resourceBundle = bundle;\n  }\n\n  /**\n     Calling this method will <em>safely</em> close and remove all\n     appenders in all the categories including root contained in the\n     default hierachy.\n\n     <p>Some appenders such as {@link org.apache.log4j.net.SocketAppender}\n     and {@link AsyncAppender} need to be closed before the\n     application exists. Otherwise, pending logging events might be\n     lost.\n\n     <p>The <code>shutdown</code> method is careful to close nested\n     appenders before closing regular appenders. This is allows\n     configurations where a regular appender is attached to a category\n     and again to a nested appender.\n\n     @deprecated Please use {@link LogManager#shutdown()} instead.\n\n     @since 1.0\n  */\n  public\n  static\n  void shutdown() {\n    LogManager.shutdown();\n  }\n\n\n  /**\n    Log a message object with the {@link Level#WARN WARN} Level.\n\n    <p>This method first checks if this category is <code>WARN</code>\n    enabled by comparing the level of this category with {@link\n    Level#WARN WARN} Level. If the category is <code>WARN</code>\n    enabled, then it converts the message object passed as parameter\n    to a string by invoking the appropriate\n    {@link org.apache.log4j.or.ObjectRenderer}. It\n    proceeds to call all the registered appenders in this category and\n    also higher in the hieararchy depending on the value of the\n    additivity flag.\n\n    <p><b>WARNING</b> Note that passing a {@link Throwable} to this\n    method will print the name of the Throwable but no stack trace. To\n    print a stack trace use the {@link #warn(Object, Throwable)} form\n    instead.  <p>\n\n    @param message the message object to log.  */\n  public\n  void warn(Object message) {\n    if(repository.isDisabled( Level.WARN_INT))\n      return;\n\n    if(Level.WARN.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.WARN, message, null);\n  }\n\n  /**\n   Log a message with the <code>WARN</code> level including the\n   stack trace of the {@link Throwable} <code>t</code> passed as\n   parameter.\n\n   <p>See {@link #warn(Object)} for more detailed information.\n\n   @param message the message object to log.\n   @param t the exception to log, including its stack trace.  */\n  public\n  void warn(Object message, Throwable t) {\n    if(repository.isDisabled(Level.WARN_INT))\n      return;\n    if(Level.WARN.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.WARN, message, t);", "functions": [{"function_name": "addAppender", "code": "  void addAppender(Appender newAppender) {\n    if(aai == null) {\n      aai = new AppenderAttachableImpl();\n    }\n    aai.addAppender(newAppender);\n    repository.fireAddAppenderEvent(this, newAppender);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "assertLog", "code": "  void assertLog(boolean assertion, String msg) {\n    if(!assertion)\n      this.error(msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "callAppenders", "code": "  void callAppenders(LoggingEvent event) {\n    int writes = 0;\n\n    for(Category c = this; c != null; c=c.parent) {\n      // Protected against simultaneous call to addAppender, removeAppender,...\n      synchronized(c) {\n\tif(c.aai != null) {\n\t  writes += c.aai.appendLoopOnAppenders(event);\n\t}\n\tif(!c.additive) {\n\t  break;\n\t}\n      }\n    }\n\n    if(writes == 0) {\n      repository.emitNoAppenderWarning(this);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "IF", "BINARY_OP", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [5, 8], [7, 9], [3, 10], [1, 11], [2, 12], [2, 13], [13, 14], [12, 15], [14, 16], [13, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 5], [9, 7], [10, 3], [11, 1], [12, 2], [13, 2], [14, 13], [15, 12], [16, 14], [17, 13], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "closeNestedAppenders", "code": "  void closeNestedAppenders() {\n    Enumeration enumeration = this.getAllAppenders();\n    if(enumeration != null) {\n      while(enumeration.hasMoreElements()) {\n\tAppender a = (Appender) enumeration.nextElement();\n\tif(a instanceof AppenderAttachable) {\n\t  a.close();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [2, 7], [4, 8], [4, 9], [8, 10], [8, 11], [9, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 2], [8, 4], [9, 4], [10, 8], [11, 8], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "debug", "code": "  void debug(Object message) {\n    if(repository.isDisabled(Level.DEBUG_INT))\n      return;\n    if(Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel())) {\n      forcedLog(FQCN, Level.DEBUG, message, null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [4, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 4], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "debug", "code": "  void debug(Object message, Throwable t) {\n    if(repository.isDisabled(Level.DEBUG_INT))\n      return;\n    if(Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.DEBUG, message, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "error", "code": "  void error(Object message) {\n    if(repository.isDisabled(Level.ERROR_INT))\n      return;\n    if(Level.ERROR.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.ERROR, message, null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [7, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 7], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "error", "code": "  void error(Object message, Throwable t) {\n    if(repository.isDisabled(Level.ERROR_INT))\n      return;\n    if(Level.ERROR.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.ERROR, message, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "exists", "code": "  Logger exists(String name) {\n    return LogManager.exists(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "fatal", "code": "  void fatal(Object message) {\n    if(repository.isDisabled(Level.FATAL_INT))\n      return;\n    if(Level.FATAL.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.FATAL, message, null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [7, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 7], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "fatal", "code": "  void fatal(Object message, Throwable t) {\n    if(repository.isDisabled(Level.FATAL_INT))\n      return;\n    if(Level.FATAL.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.FATAL, message, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "forcedLog", "code": "  void forcedLog(String fqcn, Priority level, Object message, Throwable t) {\n    callAppenders(new LoggingEvent(fqcn, this, level, message, t));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getAdditivity", "code": "  boolean getAdditivity() {\n    return additive;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAllAppenders", "code": "  Enumeration getAllAppenders() {\n    if(aai == null)\n      return NullEnumeration.getInstance();\n    else\n      return aai.getAllAppenders();", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getAppender", "code": "  Appender getAppender(String name) {\n     if(aai == null || name == null)\n      return null;\n\n     return aai.getAppender(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getEffectiveLevel", "code": "  Level getEffectiveLevel() {\n    for(Category c = this; c != null; c=c.parent) {\n      if(c.level != null)\n\treturn c.level;\n    }\n    return null; // If reached will cause an NullPointerException.", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getChainedPriority", "code": "  Priority getChainedPriority() {\n    for(Category c = this; c != null; c=c.parent) {\n      if(c.level != null)\n\treturn c.level;\n    }\n    return null; // If reached will cause an NullPointerException.", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getCurrentCategories", "code": "  Enumeration getCurrentCategories() {\n    return LogManager.getCurrentLoggers();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDefaultHierarchy", "code": "  LoggerRepository getDefaultHierarchy() {\n    return LogManager.getLoggerRepository();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHierarchy", "code": "  LoggerRepository  getHierarchy() {\n    return repository;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLoggerRepository", "code": "  LoggerRepository  getLoggerRepository() {\n    return repository;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getInstance", "code": "  Category getInstance(String name) {\n    return LogManager.getLogger(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getInstance", "code": "  Category getInstance(Class clazz) {\n    return LogManager.getLogger(clazz);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getName", "code": "  String getName() {\n    return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getParent", "code": "  Category getParent() {\n    return this.parent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLevel", "code": "  Level getLevel() {\n    return this.level;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPriority", "code": "  Level getPriority() {\n    return this.level;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRoot", "code": "  Category getRoot() {\n    return LogManager.getRootLogger();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResourceBundle", "code": "  ResourceBundle getResourceBundle() {\n    for(Category c = this; c != null; c=c.parent) {\n      if(c.resourceBundle != null)\n\treturn c.resourceBundle;\n    }\n    // It might be the case that there is no resource bundle\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getResourceBundleString", "code": "  String getResourceBundleString(String key) {\n    ResourceBundle rb = getResourceBundle();\n    // This is one of the rare cases where we can use logging in order\n    // to report errors from within log4j.\n    if(rb == null) {\n      //if(!hierarchy.emittedNoResourceBundleWarning) {\n      //error(\"No resource bundle has been set for category \"+name);\n      //hierarchy.emittedNoResourceBundleWarning = true;\n      //}\n      return null;\n    }\n    else {\n      try {\n\treturn rb.getString(key);\n      }\n      catch(MissingResourceException mre) {\n\terror(\"No resource is associated with key \\\"\"+key+\"\\\".\");\n\treturn null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "TRY", "RETURN", "LITERAL_ANCHOR", "CALL", "CATCH", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [5, 10], [6, 11], [9, 12], [10, 13], [12, 14], [9, 15], [15, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 5], [11, 6], [12, 9], [13, 10], [14, 12], [15, 9], [16, 15], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "info", "code": "  void info(Object message) {\n    if(repository.isDisabled(Level.INFO_INT))\n      return;\n    if(Level.INFO.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.INFO, message, null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [7, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 7], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "info", "code": "  void info(Object message, Throwable t) {\n    if(repository.isDisabled(Level.INFO_INT))\n      return;\n    if(Level.INFO.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.INFO, message, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isAttached", "code": "  boolean isAttached(Appender appender) {\n    if(appender == null || aai == null)\n      return false;\n    else {\n      return aai.isAttached(appender);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [5, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 5], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "isDebugEnabled", "code": "  boolean isDebugEnabled() {\n    if(repository.isDisabled( Level.DEBUG_INT))\n      return false;\n    return Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [3, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isEnabledFor", "code": "  boolean isEnabledFor(Priority level) {\n    if(repository.isDisabled(level.level))\n      return false;\n    return level.isGreaterOrEqual(this.getEffectiveLevel());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isInfoEnabled", "code": "  boolean isInfoEnabled() {\n    if(repository.isDisabled(Level.INFO_INT))\n      return false;\n    return Level.INFO.isGreaterOrEqual(this.getEffectiveLevel());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [3, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "l7dlog", "code": "  void l7dlog(Priority priority, String key, Throwable t) {\n    if(repository.isDisabled(priority.level)) {\n      return;\n    }\n    if(priority.isGreaterOrEqual(this.getEffectiveLevel())) {\n      String msg = getResourceBundleString(key);\n      // if message corresponding to 'key' could not be found in the\n      // resource bundle, then default to 'key'.\n      if(msg == null) {\n\tmsg = key;\n      }\n      forcedLog(FQCN, priority, msg, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "IF", "VAR_DECL", "RETURN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [1, 9], [2, 10], [1, 11], [8, 12], [6, 13], [12, 14], [9, 15], [8, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 1], [10, 2], [11, 1], [12, 8], [13, 6], [14, 12], [15, 9], [16, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "l7dlog", "code": "  void l7dlog(Priority priority, String key,  Object[] params, Throwable t) {\n    if(repository.isDisabled(priority.level)) {\n      return;\n    }\n    if(priority.isGreaterOrEqual(this.getEffectiveLevel())) {\n      String pattern = getResourceBundleString(key);\n      String msg;\n      if(pattern == null)\n\tmsg = key;\n      else\n\tmsg = java.text.MessageFormat.format(pattern, params);\n      forcedLog(FQCN, priority, msg, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "RETURN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [1, 9], [1, 10], [1, 11], [2, 12], [1, 13], [9, 14], [7, 15], [9, 16], [9, 17], [14, 18], [11, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 1], [10, 1], [11, 1], [12, 2], [13, 1], [14, 9], [15, 7], [16, 9], [17, 9], [18, 14], [19, 11], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "log", "code": "  void log(Priority priority, Object message, Throwable t) {\n    if(repository.isDisabled(priority.level)) {\n      return;\n    }\n    if(priority.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, priority, message, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [2, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 2], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "log", "code": "  void log(Priority priority, Object message) {\n    if(repository.isDisabled(priority.level)) {\n      return;\n    }\n    if(priority.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, priority, message, null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [7, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 7], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "log", "code": "  void log(String callerFQCN, Priority level, Object message, Throwable t) {\n    if(repository.isDisabled(level.level)) {\n      return;\n    }\n    if(level.isGreaterOrEqual(this.getEffectiveLevel())) {\n      forcedLog(callerFQCN, level, message, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [1, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 1], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "fireRemoveAppenderEvent", "code": "   private void fireRemoveAppenderEvent(final Appender appender) {\n       if (appender != null) {\n         if (repository instanceof Hierarchy) {\n           ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);\n         } else if (repository instanceof HierarchyEventListener) {\n             ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "removeAllAppenders", "code": "  void removeAllAppenders() {\n    if(aai != null) {\n      Vector appenders = new Vector();\n      for (Enumeration iter = aai.getAllAppenders(); iter != null && iter.hasMoreElements();) {\n          appenders.add(iter.nextElement());\n      }\n      aai.removeAllAppenders();\n      for(Enumeration iter = appenders.elements(); iter.hasMoreElements();) {\n          fireRemoveAppenderEvent((Appender) iter.nextElement());\n      }\n      aai = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LOOP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [1, 7], [3, 8], [1, 9], [4, 10], [7, 11], [10, 12], [10, 13], [5, 14], [3, 15], [3, 16], [4, 17], [13, 18], [4, 19], [17, 20], [15, 21], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 1], [8, 3], [9, 1], [10, 4], [11, 7], [12, 10], [13, 10], [14, 5], [15, 3], [16, 3], [17, 4], [18, 13], [19, 4], [20, 17], [21, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "removeAppender", "code": "  void removeAppender(Appender appender) {\n    if(appender == null || aai == null)\n      return;\n    boolean wasAttached = aai.isAttached(appender);\n    aai.removeAppender(appender);\n    if (wasAttached) {\n        fireRemoveAppenderEvent(appender);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [2, 8], [7, 9], [7, 10], [1, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 2], [9, 7], [10, 7], [11, 1], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "removeAppender", "code": "  void removeAppender(String name) {\n    if(name == null || aai == null) return;\n    Appender appender = aai.getAppender(name);\n    aai.removeAppender(name);\n    if (appender != null) {\n        fireRemoveAppenderEvent(appender);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [3, 7], [3, 8], [5, 9], [2, 10], [8, 11], [8, 12], [1, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 3], [8, 3], [9, 5], [10, 2], [11, 8], [12, 8], [13, 1], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setAdditivity", "code": "  void setAdditivity(boolean additive) {\n    this.additive = additive;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHierarchy", "code": "  void setHierarchy(LoggerRepository repository) {\n    this.repository = repository;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLevel", "code": "  void setLevel(Level level) {\n    this.level = level;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPriority", "code": "  void setPriority(Priority priority) {\n    this.level = (Level) priority;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setResourceBundle", "code": "  void setResourceBundle(ResourceBundle bundle) {\n    resourceBundle = bundle;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "shutdown", "code": "  void shutdown() {\n    LogManager.shutdown();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "warn", "code": "  void warn(Object message) {\n    if(repository.isDisabled( Level.WARN_INT))\n      return;\n\n    if(Level.WARN.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.WARN, message, null);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [7, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 7], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "warn", "code": "  void warn(Object message, Throwable t) {\n    if(repository.isDisabled(Level.WARN_INT))\n      return;\n    if(Level.WARN.isGreaterOrEqual(this.getEffectiveLevel()))\n      forcedLog(FQCN, Level.WARN, message, t);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "Category", "code": "  Category(String name) {\n    this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-3.0-6026", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/BeginRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.BeginRecord", "code": "public class BeginRecord\n    extends Record\n{\n    public static final short sid = 0x1033;\n\n    public BeginRecord()\n    {\n    }\n\n    /**\n     * Constructs a BeginRecord record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x1033 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public BeginRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A BEGIN RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[BEGIN]\\n\");\n        buffer.append(\"[/BEGIN]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 4;\n    }\n\n    public short getSid()\n    {\n        return sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A BEGIN RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[BEGIN]\\n\");\n        buffer.append(\"[/BEGIN]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [4, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 4], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [5, 7], [6, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 5], [8, 6], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BeginRecord", "code": "    public BeginRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "BeginRecord", "code": "    public BeginRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "jedit-4.1-3998", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/HistoryModel.java", "language": "java", "name": "org.gjt.sp.jedit.gui.HistoryModel", "code": "public class HistoryModel\n{\n\t//{{{ HistoryModel constructor\n\t/**\n\t * Creates a new history list. Calling this is normally not\n\t * necessary.\n\t */\n\tpublic HistoryModel(String name)\n\t{\n\t\tthis.name = name;\n\n\t\tmax = jEdit.getIntegerProperty(\"history\",25);\n\t\tdata = new Vector(max);\n\t} //}}}\n\n\t//{{{ addItem() method\n\t/**\n\t * Adds an item to the end of this history list, trimming the list\n\t * to the maximum number of items if necessary.\n\t * @param text The item\n\t */\n\tpublic void addItem(String text)\n\t{\n\t\tif(text == null || text.length() == 0)\n\t\t\treturn;\n\n\t\tint index = data.indexOf(text);\n\t\tif(index != -1)\n\t\t\tdata.removeElementAt(index);\n\n\t\tdata.insertElementAt(text,0);\n\n\t\twhile(getSize() > max)\n\t\t\tdata.removeElementAt(data.size() - 1);\n\t} //}}}\n\n\t//{{{ getItem() method\n\t/**\n\t * Returns an item from the history list.\n\t * @param index The index\n\t */\n\tpublic String getItem(int index)\n\t{\n\t\treturn (String)data.elementAt(index);\n\t} //}}}\n\n\t//{{{ getSize() method\n\t/**\n\t * Returns the number of elements in this history list.\n\t */\n\tpublic int getSize()\n\t{\n\t\treturn data.size();\n\t} //}}}\n\n\t//{{{ getName() method\n\t/**\n\t * Returns the name of this history list. This can be passed\n\t * to the HistoryTextField constructor.\n\t */\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ getModel() method\n\t/**\n\t * Returns a named model. If the specified model does not\n\t * already exist, it will be created.\n\t * @param name The model name\n\t */\n\tpublic static HistoryModel getModel(String name)\n\t{\n\t\tif(models == null)\n\t\t\tmodels = new Hashtable();\n\n\t\tHistoryModel model = (HistoryModel)models.get(name);\n\t\tif(model == null)\n\t\t{\n\t\t\tmodel = new HistoryModel(name);\n\t\t\tmodels.put(name,model);\n\t\t}\n\n\t\treturn model;\n\t} //}}}\n\n\t//{{{ loadHistory() method\n\t/**\n\t * Loads the history from the specified file.\n\t *\n\t * jEdit calls this method on startup.\n\t * @param The file\n\t */\n\tpublic static void loadHistory(File file)\n\t{\n\t\tif(models == null)\n\t\t\tmodels = new Hashtable();\n\n\t\ttry\n\t\t{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(file));\n\n\t\t\tHistoryModel currentModel = null;\n\t\t\tString line;\n\n\t\t\twhile((line = in.readLine()) != null)\n\t\t\t{\n\t\t\t\tif(line.startsWith(\"[\") && line.endsWith(\"]\"))\n\t\t\t\t{\n\t\t\t\t\tif(currentModel != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tmodels.put(currentModel.getName(),\n\t\t\t\t\t\t\tcurrentModel);\n\t\t\t\t\t}\n\t\t\t\t\tcurrentModel = new HistoryModel(line\n\t\t\t\t\t\t.substring(1,line.length() - 1));\n\t\t\t\t}\n\t\t\t\telse if(currentModel == null)\n\t\t\t\t{\n\t\t\t\t\tthrow new IOException(\"History data starts\"\n\t\t\t\t\t\t+ \" before model name\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcurrentModel.data.addElement(MiscUtilities\n\t\t\t\t\t\t.escapesToChars(line));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(currentModel != null)\n\t\t\t{\n\t\t\t\tmodels.put(currentModel.getName(),currentModel);\n\t\t\t}\n\n\t\t\tin.close();\n\t\t}\n\t\tcatch(FileNotFoundException fnf)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,HistoryModel.class,fnf);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,HistoryModel.class,io);\n\t\t}\n\t} //}}}\n\n\t//{{{ saveHistory() method\n\t/**\n\t * Saves the history to the specified file.\n\t *\n\t * jEdit calls this method when it is exiting.\n\t * @param file The file\n\t */\n\tpublic static void saveHistory(File file)\n\t{\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\t\ttry\n\t\t{\n\t\t\tBufferedWriter out = new BufferedWriter(\n\t\t\t\tnew FileWriter(file));\n\n\t\t\tif(models == null)\n\t\t\t{\n\t\t\t\tout.close();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tEnumeration modelEnum = models.elements();\n\t\t\twhile(modelEnum.hasMoreElements())\n\t\t\t{\n\t\t\t\tHistoryModel model = (HistoryModel)modelEnum\n\t\t\t\t\t.nextElement();\n\n\t\t\t\tout.write('[');\n\t\t\t\tout.write(model.getName());\n\t\t\t\tout.write(']');\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tfor(int i = 0; i < model.getSize(); i++)\n\t\t\t\t{\n\t\t\t\t\tout.write(MiscUtilities.charsToEscapes(\n\t\t\t\t\t\tmodel.getItem(i),\n\t\t\t\t\t\tTO_ESCAPE));\n\t\t\t\t\tout.write(lineSep);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tout.close();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,HistoryModel.class,io);\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static final String TO_ESCAPE = \"\\n\\t\\\\\\\"'[]\";\n\tprivate String name;\n\tprivate int max;\n\tprivate Vector data;\n\tprivate static Hashtable models;", "functions": [{"function_name": "addItem", "code": "\tpublic void addItem(String text)\n\t{\n\t\tif(text == null || text.length() == 0)\n\t\t\treturn;\n\n\t\tint index = data.indexOf(text);\n\t\tif(index != -1)\n\t\t\tdata.removeElementAt(index);\n\n\t\tdata.insertElementAt(text,0);\n\n\t\twhile(getSize() > max)\n\t\t\tdata.removeElementAt(data.size() - 1);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [4, 9], [4, 10], [1, 11], [6, 12], [7, 13], [2, 14], [8, 15], [3, 16], [10, 17], [10, 18], [11, 19], [17, 20], [17, 21], [18, 22], [19, 23], [19, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 4], [10, 4], [11, 1], [12, 6], [13, 7], [14, 2], [15, 8], [16, 3], [17, 10], [18, 10], [19, 11], [20, 17], [21, 17], [22, 18], [23, 19], [24, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getItem", "code": "\tpublic String getItem(int index)\n\t{\n\t\treturn (String)data.elementAt(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSize", "code": "\tpublic int getSize()\n\t{\n\t\treturn data.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getModel", "code": "\tpublic static HistoryModel getModel(String name)\n\t{\n\t\tif(models == null)\n\t\t\tmodels = new Hashtable();\n\n\t\tHistoryModel model = (HistoryModel)models.get(name);\n\t\tif(model == null)\n\t\t{\n\t\t\tmodel = new HistoryModel(name);\n\t\t\tmodels.put(name,model);\n\t\t}\n\n\t\treturn model;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [6, 8], [4, 9], [7, 10], [2, 11], [2, 12], [3, 13], [9, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 6], [9, 4], [10, 7], [11, 2], [12, 2], [13, 3], [14, 9], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "loadHistory", "code": "\tpublic static void loadHistory(File file)\n\t{\n\t\tif(models == null)\n\t\t\tmodels = new Hashtable();\n\n\t\ttry\n\t\t{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(file));\n\n\t\t\tHistoryModel currentModel = null;\n\t\t\tString line;\n\n\t\t\twhile((line = in.readLine()) != null)\n\t\t\t{\n\t\t\t\tif(line.startsWith(\"[\") && line.endsWith(\"]\"))\n\t\t\t\t{\n\t\t\t\t\tif(currentModel != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tmodels.put(currentModel.getName(),\n\t\t\t\t\t\t\tcurrentModel);\n\t\t\t\t\t}\n\t\t\t\t\tcurrentModel = new HistoryModel(line\n\t\t\t\t\t\t.substring(1,line.length() - 1));\n\t\t\t\t}\n\t\t\t\telse if(currentModel == null)\n\t\t\t\t{\n\t\t\t\t\tthrow new IOException(\"History data starts\"\n\t\t\t\t\t\t+ \" before model name\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcurrentModel.data.addElement(MiscUtilities\n\t\t\t\t\t\t.escapesToChars(line));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(currentModel != null)\n\t\t\t{\n\t\t\t\tmodels.put(currentModel.getName(),currentModel);\n\t\t\t}\n\n\t\t\tin.close();\n\t\t}\n\t\tcatch(FileNotFoundException fnf)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,HistoryModel.class,fnf);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,HistoryModel.class,io);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "CATCH", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [1, 12], [6, 13], [7, 14], [2, 15], [11, 16], [4, 17], [5, 18], [13, 19], [7, 20], [14, 21], [14, 22], [9, 23], [10, 24], [15, 25], [6, 26], [20, 27], [20, 28], [22, 29], [24, 30], [26, 31], [27, 32], [20, 33], [28, 34], [28, 35], [27, 36], [32, 37], [20, 38], [33, 39], [34, 40], [35, 41], [27, 42], [36, 43], [38, 44], [39, 45], [42, 46], [43, 47], [44, 48], [33, 49], [47, 50], [47, 51], [48, 52], [48, 53], [49, 54], [52, 55], [52, 56], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 1], [13, 6], [14, 7], [15, 2], [16, 11], [17, 4], [18, 5], [19, 13], [20, 7], [21, 14], [22, 14], [23, 9], [24, 10], [25, 15], [26, 6], [27, 20], [28, 20], [29, 22], [30, 24], [31, 26], [32, 27], [33, 20], [34, 28], [35, 28], [36, 27], [37, 32], [38, 20], [39, 33], [40, 34], [41, 35], [42, 27], [43, 36], [44, 38], [45, 39], [46, 42], [47, 43], [48, 44], [49, 33], [50, 47], [51, 47], [52, 48], [53, 48], [54, 49], [55, 52], [56, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "saveHistory", "code": "\tpublic static void saveHistory(File file)\n\t{\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\t\ttry\n\t\t{\n\t\t\tBufferedWriter out = new BufferedWriter(\n\t\t\t\tnew FileWriter(file));\n\n\t\t\tif(models == null)\n\t\t\t{\n\t\t\t\tout.close();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tEnumeration modelEnum = models.elements();\n\t\t\twhile(modelEnum.hasMoreElements())\n\t\t\t{\n\t\t\t\tHistoryModel model = (HistoryModel)modelEnum\n\t\t\t\t\t.nextElement();\n\n\t\t\t\tout.write('[');\n\t\t\t\tout.write(model.getName());\n\t\t\t\tout.write(']');\n\t\t\t\tout.write(lineSep);\n\n\t\t\t\tfor(int i = 0; i < model.getSize(); i++)\n\t\t\t\t{\n\t\t\t\t\tout.write(MiscUtilities.charsToEscapes(\n\t\t\t\t\t\tmodel.getItem(i),\n\t\t\t\t\t\tTO_ESCAPE));\n\t\t\t\t\tout.write(lineSep);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tout.close();\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tLog.log(Log.ERROR,HistoryModel.class,io);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LOOP", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [7, 11], [2, 12], [4, 13], [5, 14], [5, 15], [6, 16], [7, 17], [11, 18], [8, 19], [12, 20], [14, 21], [5, 22], [5, 23], [5, 24], [5, 25], [7, 26], [19, 27], [21, 28], [23, 29], [24, 30], [25, 31], [14, 32], [14, 33], [14, 34], [15, 35], [33, 36], [36, 37], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 7], [12, 2], [13, 4], [14, 5], [15, 5], [16, 6], [17, 7], [18, 11], [19, 8], [20, 12], [21, 14], [22, 5], [23, 5], [24, 5], [25, 5], [26, 7], [27, 19], [28, 21], [29, 23], [30, 24], [31, 25], [32, 14], [33, 14], [34, 14], [35, 15], [36, 33], [37, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "HistoryModel", "code": "\tpublic HistoryModel(String name)\n\t{\n\t\tthis.name = name;\n\n\t\tmax = jEdit.getIntegerProperty(\"history\",25);\n\t\tdata = new Vector(max);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [6, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "xalan-2.7-8330", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xslt/ObjectFactory.java", "language": "java", "name": "org.apache.xalan.xslt.ObjectFactory", "code": "class ObjectFactory {\n\n\n    private static final String DEFAULT_PROPERTIES_FILENAME =\n                                                     \"xalan.properties\";\n\n    private static final String SERVICES_PATH = \"META-INF/services/\";\n\n    /** Set to true for debugging */\n    private static final boolean DEBUG = false;\n\n    /** cache the contents of the xalan.properties file.\n     *  Until an attempt has been made to read this file, this will\n     * be null; if the file does not exist or we encounter some other error\n     * during the read, this will be empty.\n     */\n    private static Properties fXalanProperties = null;\n\n    /***\n     * Cache the time stamp of the xalan.properties file so\n     * that we know if it's been modified and can invalidate\n     * the cache when necessary.\n     */\n    private static long fLastModified = -1;\n\n\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);\n\t\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return instance of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);\n        }\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object of factory, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);\n\t}\n    /**\n     * Finds the implementation Class object in the specified order.  The\n     * specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return Class object that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);\n        }\n\t}\n    /**\n     * Finds the name of the required implementation class in the specified\n     * order.  The specified order is the following:\n     * <ol>\n     *  <li>query the system property using <code>System.getProperty</code>\n     *  <li>read <code>$java.home/lib/<i>propertiesFilename</i></code> file\n     *  <li>read <code>META-INF/services/<i>factoryId</i></code> file\n     *  <li>use fallback classname\n     * </ol>\n     *\n     * @return name of class that provides factory service, never null\n     *\n     * @param factoryId             Name of the factory to find, same as\n     *                              a property name\n     * @param propertiesFilename The filename in the $java.home/lib directory\n     *                           of the properties file.  If none specified,\n     *                           ${java.home}/lib/xalan.properties will be used.\n     * @param fallbackClassName     Implementation class name, if nothing else\n     *                              is found.  Use null to mean no fallback.\n     *\n     * @exception ObjectFactory.ConfigurationError\n     */\n    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                FileInputStream fis = null;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        fis = ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                    }\n\t        } catch (Exception x) {\n\t            fXalanProperties = null;\n\t            fLastModified = -1;\n\t        }\n                finally {\n                    if (fis != null) {\n                        try {\n                            fis.close();\n                        }\n                        catch (IOException exc) {}\n                    }\n                }\t            \n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }\n        } else {\n            FileInputStream fis = null;\n            try {\n                fis = ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n            finally {\n                if (fis != null) {\n                    try {\n                        fis.close();\n                    }\n                    catch (IOException exc) {}\n                }\n            }               \n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);\n\t}\n\n    /** Prints a message to standard error if debugging is enabled. */\n    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);\n        }\n\t}\n    /**\n     * Figure out which ClassLoader to use.  For JDK 1.2 and later use\n     * the context ClassLoader.\n     */\n    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;\n\t}\n    /**\n     * Create an instance of a class using the specified ClassLoader\n     */ \n    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);\n        }\n    }\n\n    /**\n     * Find a Class using the specified ClassLoader\n     */ \n    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n                if (security != null){\n                    final int lastDot = className.lastIndexOf(\".\");\n                    String packageName = className;\n                    if (lastDot != -1) packageName = className.substring(0, lastDot);\n                    security.checkPackageAccess(packageName);\n                 }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;\n    }\n\n    /**\n     * Find the name of service provider using Jar Service Provider Mechanism\n     *\n     * @return instance of provider class if found or null\n     */\n    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n        } catch (IOException x) {\n            return null;\n        }\n        finally {\n            try {\n                rd.close();\n            }\n            catch (IOException exc) {}\n        }          \n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;\n    }\n\n\n    /**\n     * A configuration error.\n     */\n    static class ConfigurationError \n        extends Error {\n                static final long serialVersionUID = 2276082712114762609L;\n\n        /** Exception. */\n        private Exception exception;\n\n\n        /**\n         * Construct a new instance with the specified detail string and\n         * exception.\n         */\n        ConfigurationError(String msg, Exception x) {\n            super(msg);\n            this.exception = x;\n\t\t}\n\n        /** Returns the exception associated to this error. */\n        Exception getException() {\n            return exception;", "functions": [{"function_name": "createObject", "code": "    static Object createObject(String factoryId, String fallbackClassName)\n        throws ConfigurationError {\n        return createObject(factoryId, null, fallbackClassName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createObject", "code": "    static Object createObject(String factoryId, \n                                      String propertiesFilename,\n                                      String fallbackClassName)\n        throws ConfigurationError\n    {\n        Class factoryClass = lookUpFactoryClass(factoryId,\n                                                propertiesFilename,\n                                                fallbackClassName);\n\n        if (factoryClass == null) {\n            throw new ConfigurationError(\n                \"Provider for \" + factoryId + \" cannot be found\", null);\n        }\n\n        try{\n            Object instance = factoryClass.newInstance();\n            debugPrintln(\"created new instance of factory \" + factoryId);\n            return instance;\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider for factory \" + factoryId\n                    + \" could not be instantiated: \" + x, x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [2, 10], [7, 11], [1, 12], [2, 13], [10, 14], [3, 15], [11, 16], [12, 17], [9, 18], [13, 19], [16, 20], [17, 21], [19, 22], [19, 23], [20, 24], [23, 25], [23, 26], [24, 27], [24, 28], [26, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 2], [11, 7], [12, 1], [13, 2], [14, 10], [15, 3], [16, 11], [17, 12], [18, 9], [19, 13], [20, 16], [21, 17], [22, 19], [23, 19], [24, 20], [25, 23], [26, 23], [27, 24], [28, 24], [29, 26], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId) \n        throws ConfigurationError\n    {\n        return lookUpFactoryClass(factoryId, null, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookUpFactoryClass", "code": "    static Class lookUpFactoryClass(String factoryId,\n                                           String propertiesFilename,\n                                           String fallbackClassName)\n        throws ConfigurationError\n    {\n        String factoryClassName = lookUpFactoryClassName(factoryId,\n                                                         propertiesFilename,\n                                                         fallbackClassName);\n        ClassLoader cl = findClassLoader();\n\n        if (factoryClassName == null) {\n            factoryClassName = fallbackClassName;\n        }\n\n        try{\n            Class providerClass = findProviderClass(factoryClassName,\n                                                    cl,\n                                                    true);\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return providerClass;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + factoryClassName + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \"+factoryClassName+\" could not be instantiated: \"+x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [8, 13], [9, 14], [1, 15], [12, 16], [3, 17], [4, 18], [13, 19], [14, 20], [15, 21], [11, 22], [2, 23], [19, 24], [20, 25], [21, 26], [22, 27], [24, 28], [25, 29], [25, 30], [26, 31], [26, 32], [28, 33], [28, 34], [30, 35], [32, 36], [34, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 8], [14, 9], [15, 1], [16, 12], [17, 3], [18, 4], [19, 13], [20, 14], [21, 15], [22, 11], [23, 2], [24, 19], [25, 20], [26, 21], [27, 22], [28, 24], [29, 25], [30, 25], [31, 26], [32, 26], [33, 28], [34, 28], [35, 30], [36, 32], [37, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "lookUpFactoryClassName", "code": "    static String lookUpFactoryClassName(String factoryId,\n                                                String propertiesFilename,\n                                                String fallbackClassName)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        try {\n            String systemProp = ss.getSystemProperty(factoryId);\n            if (systemProp != null) {\n                debugPrintln(\"found system property, value=\" + systemProp);\n                return systemProp;\n            }\n        } catch (SecurityException se) {\n        }\n\n        String factoryClassName = null;\n        if (propertiesFilename == null) {\n            File propertiesFile = null;\n            boolean propertiesFileExists = false;\n            try {\n                String javah = ss.getSystemProperty(\"java.home\");\n                propertiesFilename = javah + File.separator +\n                    \"lib\" + File.separator + DEFAULT_PROPERTIES_FILENAME;\n                propertiesFile = new File(propertiesFilename);\n                propertiesFileExists = ss.getFileExists(propertiesFile);\n            } catch (SecurityException e) {\n                fLastModified = -1;\n                fXalanProperties = null;\n            }\n\n            synchronized (ObjectFactory.class) {\n                boolean loadProperties = false;\n                FileInputStream fis = null;\n                try {\n                    if(fLastModified >= 0) {\n                        if(propertiesFileExists &&\n                                (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) {\n                            loadProperties = true;\n                        } else {\n                            if(!propertiesFileExists) {\n                                fLastModified = -1;\n                                fXalanProperties = null;\n\t\t\t\t\t\t\t}\n                        }\n                    } else {\n                        if(propertiesFileExists) {\n                            loadProperties = true;\n                            fLastModified = ss.getLastModified(propertiesFile);\n\t\t\t\t\t\t}\n                    }\n                    if(loadProperties) {\n                        fXalanProperties = new Properties();\n                        fis = ss.getFileInputStream(propertiesFile);\n                        fXalanProperties.load(fis);\n                    }\n\t        } catch (Exception x) {\n\t            fXalanProperties = null;\n\t            fLastModified = -1;\n\t        }\n                finally {\n                    if (fis != null) {\n                        try {\n                            fis.close();\n                        }\n                        catch (IOException exc) {}\n                    }\n                }\t            \n            }\n            if(fXalanProperties != null) {\n                factoryClassName = fXalanProperties.getProperty(factoryId);\n            }\n        } else {\n            FileInputStream fis = null;\n            try {\n                fis = ss.getFileInputStream(new File(propertiesFilename));\n                Properties props = new Properties();\n                props.load(fis);\n                factoryClassName = props.getProperty(factoryId);\n            } catch (Exception x) {\n            }\n            finally {\n                if (fis != null) {\n                    try {\n                        fis.close();\n                    }\n                    catch (IOException exc) {}\n                }\n            }               \n        }\n        if (factoryClassName != null) {\n            debugPrintln(\"found in \" + propertiesFilename + \", value=\"\n                          + factoryClassName);\n            return factoryClassName;\n        }\n\n        return findJarServiceProviderName(factoryId);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "IF", "CATCH", "VAR_DECL", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CATCH", "IF", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [5, 13], [5, 14], [5, 15], [2, 16], [11, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [12, 24], [4, 25], [14, 26], [6, 27], [2, 28], [18, 29], [18, 30], [18, 31], [20, 32], [3, 33], [3, 34], [3, 35], [21, 36], [21, 37], [14, 38], [26, 39], [15, 40], [28, 41], [29, 42], [18, 43], [18, 44], [18, 45], [19, 46], [32, 47], [33, 48], [33, 49], [33, 50], [33, 51], [21, 52], [21, 53], [21, 54], [22, 55], [23, 56], [14, 57], [41, 58], [29, 59], [42, 60], [43, 61], [31, 62], [45, 63], [20, 64], [48, 65], [51, 66], [34, 67], [35, 68], [36, 69], [36, 70], [52, 71], [53, 72], [54, 73], [37, 74], [57, 75], [58, 76], [58, 77], [59, 78], [63, 79], [64, 80], [48, 81], [65, 82], [49, 83], [49, 84], [51, 85], [51, 86], [66, 87], [69, 88], [70, 89], [73, 90], [74, 91], [75, 92], [77, 93], [59, 94], [81, 95], [83, 96], [84, 97], [50, 98], [50, 99], [50, 100], [86, 101], [90, 102], [81, 103], [99, 104], [100, 105], [86, 106], [101, 107], [102, 108], [102, 109], [85, 110], [85, 111], [86, 112], [107, 113], [110, 114], [111, 115], [112, 116], [113, 117], [106, 118], [106, 119], [118, 120], [119, 121], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 5], [14, 5], [15, 5], [16, 2], [17, 11], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 12], [25, 4], [26, 14], [27, 6], [28, 2], [29, 18], [30, 18], [31, 18], [32, 20], [33, 3], [34, 3], [35, 3], [36, 21], [37, 21], [38, 14], [39, 26], [40, 15], [41, 28], [42, 29], [43, 18], [44, 18], [45, 18], [46, 19], [47, 32], [48, 33], [49, 33], [50, 33], [51, 33], [52, 21], [53, 21], [54, 21], [55, 22], [56, 23], [57, 14], [58, 41], [59, 29], [60, 42], [61, 43], [62, 31], [63, 45], [64, 20], [65, 48], [66, 51], [67, 34], [68, 35], [69, 36], [70, 36], [71, 52], [72, 53], [73, 54], [74, 37], [75, 57], [76, 58], [77, 58], [78, 59], [79, 63], [80, 64], [81, 48], [82, 65], [83, 49], [84, 49], [85, 51], [86, 51], [87, 66], [88, 69], [89, 70], [90, 73], [91, 74], [92, 75], [93, 77], [94, 59], [95, 81], [96, 83], [97, 84], [98, 50], [99, 50], [100, 50], [101, 86], [102, 90], [103, 81], [104, 99], [105, 100], [106, 86], [107, 101], [108, 102], [109, 102], [110, 85], [111, 85], [112, 86], [113, 107], [114, 110], [115, 111], [116, 112], [117, 113], [118, 106], [119, 106], [120, 118], [121, 119], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121]]}, {"function_name": "debugPrintln", "code": "    private static void debugPrintln(String msg) {\n        if (DEBUG) {\n            System.err.println(\"JAXP: \" + msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "findClassLoader", "code": "    static ClassLoader findClassLoader()\n        throws ConfigurationError\n    { \n        SecuritySupport ss = SecuritySupport.getInstance();\n\n        ClassLoader context = ss.getContextClassLoader();\n        ClassLoader system = ss.getSystemClassLoader();\n\n        ClassLoader chain = system;\n        while (true) {\n            if (context == chain) {\n                ClassLoader current = ObjectFactory.class.getClassLoader();\n\n                chain = system;\n                while (true) {\n                    if (current == chain) {\n                        return system;\n                    }\n                    if (chain == null) {\n                        break;\n                    }\n                    chain = ss.getParentClassLoader(chain);\n                }\n\n                return current;\n            }\n\n            if (chain == null) {\n                break;\n            }\n\n            chain = ss.getParentClassLoader(chain);\n        };\n\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "IF", "IF", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [4, 10], [5, 11], [6, 12], [2, 13], [8, 14], [9, 15], [13, 16], [8, 17], [14, 18], [9, 19], [9, 20], [9, 21], [20, 22], [9, 23], [20, 24], [20, 25], [21, 26], [20, 27], [24, 28], [25, 29], [27, 30], [24, 31], [28, 32], [25, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 4], [11, 5], [12, 6], [13, 2], [14, 8], [15, 9], [16, 13], [17, 8], [18, 14], [19, 9], [20, 9], [21, 9], [22, 20], [23, 9], [24, 20], [25, 20], [26, 21], [27, 20], [28, 24], [29, 25], [30, 27], [31, 24], [32, 28], [33, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "newInstance", "code": "    static Object newInstance(String className, ClassLoader cl,\n                                      boolean doFallback)\n        throws ConfigurationError\n    {\n        try{\n            Class providerClass = findProviderClass(className, cl, doFallback);\n            Object instance = providerClass.newInstance();\n            debugPrintln(\"created new instance of \" + providerClass +\n                   \" using ClassLoader: \" + cl);\n            return instance;\n        } catch (ClassNotFoundException x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" not found\", x);\n        } catch (Exception x) {\n            throw new ConfigurationError(\n                \"Provider \" + className + \" could not be instantiated: \" + x,\n                x);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [6, 11], [1, 12], [10, 13], [11, 14], [12, 15], [8, 16], [9, 17], [13, 18], [14, 19], [15, 20], [18, 21], [19, 22], [19, 23], [20, 24], [20, 25], [21, 26], [21, 27], [23, 28], [25, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 6], [12, 1], [13, 10], [14, 11], [15, 12], [16, 8], [17, 9], [18, 13], [19, 14], [20, 15], [21, 18], [22, 19], [23, 19], [24, 20], [25, 20], [26, 21], [27, 21], [28, 23], [29, 25], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "findProviderClass", "code": "    static Class findProviderClass(String className, ClassLoader cl,\n                                           boolean doFallback)\n        throws ClassNotFoundException, ConfigurationError\n    {   \n        SecurityManager security = System.getSecurityManager();\n        try{\n                if (security != null){\n                    final int lastDot = className.lastIndexOf(\".\");\n                    String packageName = className;\n                    if (lastDot != -1) packageName = className.substring(0, lastDot);\n                    security.checkPackageAccess(packageName);\n                 }   \n        }catch(SecurityException e){\n            throw e;\n        }\n        \n        Class providerClass;\n        if (cl == null) {\n            providerClass = Class.forName(className);\n        } else {\n            try {\n                providerClass = cl.loadClass(className);\n            } catch (ClassNotFoundException x) {\n                if (doFallback) {\n                    ClassLoader current = ObjectFactory.class.getClassLoader();\n                    if (current == null) {\n                        providerClass = Class.forName(className);\n                    } else if (cl != current) {\n                        cl = current;\n                        providerClass = cl.loadClass(className);\n                    } else {\n                        throw x;\n                    }\n                } else {\n                    throw x;\n                }\n            }\n        }\n\n        return providerClass;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "IF", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CATCH", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [4, 10], [4, 11], [2, 12], [9, 13], [10, 14], [11, 15], [5, 16], [12, 17], [2, 18], [11, 19], [11, 20], [11, 21], [15, 22], [17, 23], [12, 24], [18, 25], [11, 26], [19, 27], [24, 28], [19, 29], [27, 30], [21, 31], [23, 32], [23, 33], [23, 34], [29, 35], [31, 36], [33, 37], [33, 38], [35, 39], [37, 40], [38, 41], [34, 42], [37, 43], [33, 44], [37, 45], [37, 46], [44, 47], [45, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 4], [11, 4], [12, 2], [13, 9], [14, 10], [15, 11], [16, 5], [17, 12], [18, 2], [19, 11], [20, 11], [21, 11], [22, 15], [23, 17], [24, 12], [25, 18], [26, 11], [27, 19], [28, 24], [29, 19], [30, 27], [31, 21], [32, 23], [33, 23], [34, 23], [35, 29], [36, 31], [37, 33], [38, 33], [39, 35], [40, 37], [41, 38], [42, 34], [43, 37], [44, 33], [45, 37], [46, 37], [47, 44], [48, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "findJarServiceProviderName", "code": "    private static String findJarServiceProviderName(String factoryId)\n    {\n        SecuritySupport ss = SecuritySupport.getInstance();\n        String serviceId = SERVICES_PATH + factoryId;\n        InputStream is = null;\n\n        ClassLoader cl = findClassLoader();\n\n        is = ss.getResourceAsStream(cl, serviceId);\n\n        if (is == null) {\n            ClassLoader current = ObjectFactory.class.getClassLoader();\n            if (cl != current) {\n                cl = current;\n                is = ss.getResourceAsStream(cl, serviceId);\n            }\n        }\n\n        if (is == null) {\n            return null;\n        }\n\n        debugPrintln(\"found jar resource=\" + serviceId +\n               \" using ClassLoader: \" + cl);\n\n        BufferedReader rd;\n        try {\n            rd = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n        } catch (java.io.UnsupportedEncodingException e) {\n            rd = new BufferedReader(new InputStreamReader(is));\n        }\n        \n        String factoryClassName = null;\n        try {\n            factoryClassName = rd.readLine();\n        } catch (IOException x) {\n            return null;\n        }\n        finally {\n            try {\n                rd.close();\n            }\n            catch (IOException exc) {}\n        }          \n\n        if (factoryClassName != null &&\n            ! \"\".equals(factoryClassName)) {\n            debugPrintln(\"found in resource, value=\"\n                   + factoryClassName);\n\n            return factoryClassName;\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "TRY", "CATCH", "CATCH", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CATCH", "RETURN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [3, 16], [3, 17], [5, 18], [0, 19], [7, 20], [8, 21], [0, 22], [2, 23], [15, 24], [15, 25], [16, 26], [17, 27], [3, 28], [4, 29], [5, 30], [19, 31], [7, 32], [20, 33], [8, 34], [8, 35], [21, 36], [22, 37], [9, 38], [10, 39], [11, 40], [12, 41], [2, 42], [24, 43], [25, 44], [16, 45], [27, 46], [28, 47], [18, 48], [30, 49], [31, 50], [32, 51], [34, 52], [42, 53], [48, 54], [49, 55], [50, 56], [50, 57], [35, 58], [53, 59], [54, 60], [55, 61], [57, 62], [34, 63], [34, 64], [63, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 3], [17, 3], [18, 5], [19, 0], [20, 7], [21, 8], [22, 0], [23, 2], [24, 15], [25, 15], [26, 16], [27, 17], [28, 3], [29, 4], [30, 5], [31, 19], [32, 7], [33, 20], [34, 8], [35, 8], [36, 21], [37, 22], [38, 9], [39, 10], [40, 11], [41, 12], [42, 2], [43, 24], [44, 25], [45, 16], [46, 27], [47, 28], [48, 18], [49, 30], [50, 31], [51, 32], [52, 34], [53, 42], [54, 48], [55, 49], [56, 50], [57, 50], [58, 35], [59, 53], [60, 54], [61, 55], [62, 57], [63, 34], [64, 34], [65, 63], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}], "label": 1}
{"sample_id": "camel-1.4-2360", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/language/juel/JuelExpression.java", "language": "java", "name": "org.apache.camel.language.juel.JuelExpression", "code": "public class JuelExpression extends ExpressionSupport<Exchange> {\n    private final String expression;\n    private final Class<?> type;\n    private ExpressionFactory expressionFactory;\n    private Properties expressionFactoryProperties;\n\n    public JuelExpression(String expression, Class<?> type) {\n        this.expression = expression;\n        this.type = type;\n    }\n\n    public static JuelExpression el(String expression) {\n        return new JuelExpression(expression, Object.class);\n    }\n\n    public Object evaluate(Exchange exchange) {\n        ELContext context = populateContext(createContext(), exchange);\n        ValueExpression valueExpression = getExpressionFactory().createValueExpression(context, expression, type);\n        return valueExpression.getValue(context);\n    }\n\n    public ExpressionFactory getExpressionFactory() {\n        if (expressionFactory == null) {\n            Properties properties = getExpressionFactoryProperties();\n            expressionFactory = ExpressionFactory.newInstance(properties);\n        }\n        return expressionFactory;\n    }\n\n    public void setExpressionFactory(ExpressionFactory expressionFactory) {\n        this.expressionFactory = expressionFactory;\n    }\n\n    public Properties getExpressionFactoryProperties() {\n        if (expressionFactoryProperties == null) {\n            expressionFactoryProperties = new Properties();\n            populateDefaultExpressionProperties(expressionFactoryProperties);\n        }\n        return expressionFactoryProperties;\n    }\n\n    public void setExpressionFactoryProperties(Properties expressionFactoryProperties) {\n        this.expressionFactoryProperties = expressionFactoryProperties;\n    }\n\n    protected ELContext populateContext(ELContext context, Exchange exchange) {\n        setVariable(context, \"exchange\", exchange, Exchange.class);\n        setVariable(context, \"in\", exchange.getIn(), Message.class);\n        Message out = exchange.getOut(false);\n        setVariable(context, \"out\", out, Message.class);\n        return context;\n    }\n\n    /**\n     * A Strategy Method to populate the default properties used to create the expression factory\n     */\n    protected void populateDefaultExpressionProperties(Properties properties) {\n        properties.setProperty(\"javax.el.methodInvocations\", \"true\");\n    }\n\n    protected void setVariable(ELContext context, String name, Object value, Class<?> type) {\n        ValueExpression valueExpression = getExpressionFactory().createValueExpression(value, type);\n        SimpleContext simpleContext = (SimpleContext) context;\n        simpleContext.setVariable(name, valueExpression);\n    }\n\n    /**\n     * Factory method to create the EL context\n     */\n    protected ELContext createContext() {\n        ELResolver resolver = new CompositeELResolver() {\n            {\n                add(new ArrayELResolver(false));\n                add(new ListELResolver(false));\n                add(new MapELResolver(false));\n                add(new ResourceBundleELResolver());\n                add(new BeanAndMethodELResolver());\n            }\n        };\n        return new SimpleContext(resolver);\n    }\n\n    protected String assertionFailureMessage(Exchange exchange) {\n        return expression;", "functions": [{"function_name": "el", "code": "    public static JuelExpression el(String expression) {\n        return new JuelExpression(expression, Object.class);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "evaluate", "code": "    public Object evaluate(Exchange exchange) {\n        ELContext context = populateContext(createContext(), exchange);\n        ValueExpression valueExpression = getExpressionFactory().createValueExpression(context, expression, type);\n        return valueExpression.getValue(context);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [6, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 6], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getExpressionFactory", "code": "    public ExpressionFactory getExpressionFactory() {\n        if (expressionFactory == null) {\n            Properties properties = getExpressionFactoryProperties();\n            expressionFactory = ExpressionFactory.newInstance(properties);\n        }\n        return expressionFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [2, 6], [6, 7], [4, 8], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 2], [7, 6], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setExpressionFactory", "code": "    public void setExpressionFactory(ExpressionFactory expressionFactory) {\n        this.expressionFactory = expressionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExpressionFactoryProperties", "code": "    public Properties getExpressionFactoryProperties() {\n        if (expressionFactoryProperties == null) {\n            expressionFactoryProperties = new Properties();\n            populateDefaultExpressionProperties(expressionFactoryProperties);\n        }\n        return expressionFactoryProperties;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setExpressionFactoryProperties", "code": "    public void setExpressionFactoryProperties(Properties expressionFactoryProperties) {\n        this.expressionFactoryProperties = expressionFactoryProperties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "populateContext", "code": "    protected ELContext populateContext(ELContext context, Exchange exchange) {\n        setVariable(context, \"exchange\", exchange, Exchange.class);\n        setVariable(context, \"in\", exchange.getIn(), Message.class);\n        Message out = exchange.getOut(false);\n        setVariable(context, \"out\", out, Message.class);\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [2, 9], [6, 10], [6, 11], [7, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [9, 2], [10, 6], [11, 6], [12, 7], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "populateDefaultExpressionProperties", "code": "    protected void populateDefaultExpressionProperties(Properties properties) {\n        properties.setProperty(\"javax.el.methodInvocations\", \"true\");", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [1, 0], [2, 0], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setVariable", "code": "    protected void setVariable(ELContext context, String name, Object value, Class<?> type) {\n        ValueExpression valueExpression = getExpressionFactory().createValueExpression(value, type);\n        SimpleContext simpleContext = (SimpleContext) context;\n        simpleContext.setVariable(name, valueExpression);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createContext", "code": "    protected ELContext createContext() {\n        ELResolver resolver = new CompositeELResolver() {\n            {\n                add(new ArrayELResolver(false));\n                add(new ListELResolver(false));\n                add(new MapELResolver(false));\n                add(new ResourceBundleELResolver());\n                add(new BeanAndMethodELResolver());\n            }\n        };\n        return new SimpleContext(resolver);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "assertionFailureMessage", "code": "    protected String assertionFailureMessage(Exchange exchange) {\n        return expression;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JuelExpression", "code": "    public JuelExpression(String expression, Class<?> type) {\n        this.expression = expression;\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ivy-2.0-3429", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/plugins/resolver/CacheResolver.java", "language": "java", "name": "org.apache.ivy.plugins.resolver.CacheResolver", "code": "public class CacheResolver extends FileSystemResolver {\n    public CacheResolver() {\n    }\n\n    public CacheResolver(ResolverSettings settings) {\n        setSettings(settings);\n        setName(\"cache\");\n    }\n\n    public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data)\n            throws ParseException {\n        clearIvyAttempts();\n\n        ModuleRevisionId mrid = dd.getDependencyRevisionId();\n        // check revision\n\n        ResolvedModuleRevision rmr = getRepositoryCacheManager()\n            .findModuleInCache(dd, mrid, getCacheOptions(data), null);\n        if (rmr != null) {\n            Message.verbose(\"\\t\" + getName() + \": revision in cache: \" + mrid);\n            return rmr;\n        } else if (!getSettings().getVersionMatcher().isDynamic(mrid)) {\n            Message.verbose(\"\\t\" + getName() + \": no ivy file in cache found for \" + mrid);\n            return null;\n        } else {\n            ensureConfigured();\n            ResolvedResource ivyRef = findIvyFileRef(dd, data);\n            if (ivyRef != null) {\n                Message.verbose(\"\\t\" + getName() + \": found ivy file in cache for \" + mrid);\n                Message.verbose(\"\\t\\t=> \" + ivyRef);\n\n                ModuleRevisionId resolvedMrid = ModuleRevisionId.newInstance(mrid, ivyRef\n                        .getRevision());\n                IvyNode node = data.getNode(resolvedMrid);\n                if (node != null && node.getModuleRevision() != null) {\n                    // this revision has already be resolved : return it\n                    Message.verbose(\"\\t\" + getName() + \": revision already resolved: \"\n                            + resolvedMrid);\n                    return node.getModuleRevision();\n                }\n                rmr = getRepositoryCacheManager().findModuleInCache(\n                        dd.clone(ModuleRevisionId.newInstance(\n                            dd.getDependencyRevisionId(), ivyRef.getRevision())),\n                        dd.getDependencyRevisionId(),\n                        getCacheOptions(data), null);\n                if (rmr != null) {\n                    Message.verbose(\"\\t\" + getName() + \": revision in cache: \" + resolvedMrid);\n                    return rmr;\n                } else {\n                    Message.error(\"\\t\" + getName()\n                            + \": inconsistent cache: clean it and resolve again\");\n                    return null;\n                }\n            } else {\n                Message.verbose(\"\\t\" + getName() + \": no ivy file in cache found for \" + mrid);\n                return null;\n            }\n        }\n    }\n\n    public DownloadReport download(Artifact[] artifacts, DownloadOptions options) {\n        clearArtifactAttempts();\n        DownloadReport dr = new DownloadReport();\n        for (int i = 0; i < artifacts.length; i++) {\n            final ArtifactDownloadReport adr = new ArtifactDownloadReport(artifacts[i]);\n            dr.addArtifactReport(adr);\n            ResolvedResource artifactRef = getArtifactRef(artifacts[i], null);\n            if (artifactRef != null) {\n                Message.verbose(\"\\t[NOT REQUIRED] \" + artifacts[i]);\n                ArtifactOrigin origin = new ArtifactOrigin(\n                    artifacts[i], true, artifactRef.getResource().getName());\n                File archiveFile = ((FileResource) artifactRef.getResource()).getFile();\n                adr.setDownloadStatus(DownloadStatus.NO);\n                adr.setSize(archiveFile.length());\n                adr.setArtifactOrigin(origin);\n                adr.setLocalFile(archiveFile);\n            } else {\n                adr.setDownloadStatus(DownloadStatus.FAILED);\n            }\n        }\n        return dr;\n    }\n\n    public boolean exists(Artifact artifact) {\n        ensureConfigured();\n        return super.exists(artifact);\n    }\n    \n    public ArtifactOrigin locate(Artifact artifact) {\n        ensureConfigured();\n        return super.locate(artifact);\n    }\n\n    public void publish(Artifact artifact, File src, boolean overwrite) throws IOException {\n        ensureConfigured();\n        super.publish(artifact, src, overwrite);\n    }\n\n    public OrganisationEntry[] listOrganisations() {\n        ensureConfigured();\n        return super.listOrganisations();\n    }\n\n    public ModuleEntry[] listModules(OrganisationEntry org) {\n        ensureConfigured();\n        return super.listModules(org);\n    }\n\n    public RevisionEntry[] listRevisions(ModuleEntry module) {\n        ensureConfigured();\n        return super.listRevisions(module);\n    }\n\n    public void dumpSettings() {\n        Message.verbose(\"\\t\" + getName() + \" [cache]\");\n    }\n\n    private void ensureConfigured() {\n        if (getIvyPatterns().isEmpty()) {\n            setIvyPatterns(new ArrayList());\n            setArtifactPatterns(new ArrayList());\n            RepositoryCacheManager[] caches = getSettings().getRepositoryCacheManagers();\n            for (int i = 0; i < caches.length; i++) {\n                if (caches[i] instanceof DefaultRepositoryCacheManager) {\n                    DefaultRepositoryCacheManager c = (DefaultRepositoryCacheManager) caches[i];\n                    addIvyPattern(c.getBasedir().getAbsolutePath() + \"/\" + c.getIvyPattern());\n                    addArtifactPattern(\n                        c.getBasedir().getAbsolutePath() + \"/\" + c.getArtifactPattern());\n                } else {\n                    Message.verbose(\n                        caches[i] + \": cache implementation is not a DefaultRepositoryCacheManager:\"\n                        + \" unable to configure cache resolver with it\");\n                }\n            }\n        }\n    }\n\n    public String getTypeName() {\n        return \"cache\";", "functions": [{"function_name": "getDependency", "code": "    public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data)\n            throws ParseException {\n        clearIvyAttempts();\n\n        ModuleRevisionId mrid = dd.getDependencyRevisionId();\n        // check revision\n\n        ResolvedModuleRevision rmr = getRepositoryCacheManager()\n            .findModuleInCache(dd, mrid, getCacheOptions(data), null);\n        if (rmr != null) {\n            Message.verbose(\"\\t\" + getName() + \": revision in cache: \" + mrid);\n            return rmr;\n        } else if (!getSettings().getVersionMatcher().isDynamic(mrid)) {\n            Message.verbose(\"\\t\" + getName() + \": no ivy file in cache found for \" + mrid);\n            return null;\n        } else {\n            ensureConfigured();\n            ResolvedResource ivyRef = findIvyFileRef(dd, data);\n            if (ivyRef != null) {\n                Message.verbose(\"\\t\" + getName() + \": found ivy file in cache for \" + mrid);\n                Message.verbose(\"\\t\\t=> \" + ivyRef);\n\n                ModuleRevisionId resolvedMrid = ModuleRevisionId.newInstance(mrid, ivyRef\n                        .getRevision());\n                IvyNode node = data.getNode(resolvedMrid);\n                if (node != null && node.getModuleRevision() != null) {\n                    // this revision has already be resolved : return it\n                    Message.verbose(\"\\t\" + getName() + \": revision already resolved: \"\n                            + resolvedMrid);\n                    return node.getModuleRevision();\n                }\n                rmr = getRepositoryCacheManager().findModuleInCache(\n                        dd.clone(ModuleRevisionId.newInstance(\n                            dd.getDependencyRevisionId(), ivyRef.getRevision())),\n                        dd.getDependencyRevisionId(),\n                        getCacheOptions(data), null);\n                if (rmr != null) {\n                    Message.verbose(\"\\t\" + getName() + \": revision in cache: \" + resolvedMrid);\n                    return rmr;\n                } else {\n                    Message.error(\"\\t\" + getName()\n                            + \": inconsistent cache: clean it and resolve again\");\n                    return null;\n                }\n            } else {\n                Message.verbose(\"\\t\" + getName() + \": no ivy file in cache found for \" + mrid);\n                return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [6, 9], [1, 10], [7, 11], [2, 12], [3, 13], [6, 14], [6, 15], [6, 16], [9, 17], [9, 18], [1, 19], [12, 20], [14, 21], [6, 22], [16, 23], [6, 24], [19, 25], [20, 26], [20, 27], [14, 28], [14, 29], [14, 30], [14, 31], [14, 32], [21, 33], [15, 34], [24, 35], [25, 36], [28, 37], [14, 38], [29, 39], [14, 40], [30, 41], [14, 42], [14, 43], [35, 44], [36, 45], [36, 46], [38, 47], [29, 48], [29, 49], [39, 50], [40, 51], [30, 52], [41, 53], [41, 54], [31, 55], [32, 56], [42, 57], [43, 58], [44, 59], [44, 60], [46, 61], [46, 62], [47, 63], [48, 64], [29, 65], [29, 66], [51, 67], [52, 68], [30, 69], [53, 70], [53, 71], [54, 72], [56, 73], [57, 74], [58, 75], [60, 76], [60, 77], [63, 78], [63, 79], [65, 80], [66, 81], [67, 82], [67, 83], [67, 84], [67, 85], [69, 86], [75, 87], [75, 88], [79, 89], [79, 90], [80, 91], [80, 92], [81, 93], [85, 94], [86, 95], [88, 96], [88, 97], [92, 98], [92, 99], [93, 100], [93, 101], [94, 102], [94, 103], [95, 104], [95, 105], [101, 106], [101, 107], [105, 108], [105, 109], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 6], [10, 1], [11, 7], [12, 2], [13, 3], [14, 6], [15, 6], [16, 6], [17, 9], [18, 9], [19, 1], [20, 12], [21, 14], [22, 6], [23, 16], [24, 6], [25, 19], [26, 20], [27, 20], [28, 14], [29, 14], [30, 14], [31, 14], [32, 14], [33, 21], [34, 15], [35, 24], [36, 25], [37, 28], [38, 14], [39, 29], [40, 14], [41, 30], [42, 14], [43, 14], [44, 35], [45, 36], [46, 36], [47, 38], [48, 29], [49, 29], [50, 39], [51, 40], [52, 30], [53, 41], [54, 41], [55, 31], [56, 32], [57, 42], [58, 43], [59, 44], [60, 44], [61, 46], [62, 46], [63, 47], [64, 48], [65, 29], [66, 29], [67, 51], [68, 52], [69, 30], [70, 53], [71, 53], [72, 54], [73, 56], [74, 57], [75, 58], [76, 60], [77, 60], [78, 63], [79, 63], [80, 65], [81, 66], [82, 67], [83, 67], [84, 67], [85, 67], [86, 69], [87, 75], [88, 75], [89, 79], [90, 79], [91, 80], [92, 80], [93, 81], [94, 85], [95, 86], [96, 88], [97, 88], [98, 92], [99, 92], [100, 93], [101, 93], [102, 94], [103, 94], [104, 95], [105, 95], [106, 101], [107, 101], [108, 105], [109, 105], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109]]}, {"function_name": "download", "code": "    public DownloadReport download(Artifact[] artifacts, DownloadOptions options) {\n        clearArtifactAttempts();\n        DownloadReport dr = new DownloadReport();\n        for (int i = 0; i < artifacts.length; i++) {\n            final ArtifactDownloadReport adr = new ArtifactDownloadReport(artifacts[i]);\n            dr.addArtifactReport(adr);\n            ResolvedResource artifactRef = getArtifactRef(artifacts[i], null);\n            if (artifactRef != null) {\n                Message.verbose(\"\\t[NOT REQUIRED] \" + artifacts[i]);\n                ArtifactOrigin origin = new ArtifactOrigin(\n                    artifacts[i], true, artifactRef.getResource().getName());\n                File archiveFile = ((FileResource) artifactRef.getResource()).getFile();\n                adr.setDownloadStatus(DownloadStatus.NO);\n                adr.setSize(archiveFile.length());\n                adr.setArtifactOrigin(origin);\n                adr.setLocalFile(archiveFile);\n            } else {\n                adr.setDownloadStatus(DownloadStatus.FAILED);\n            }\n        }\n        return dr;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [2, 9], [2, 10], [3, 11], [8, 12], [2, 13], [2, 14], [8, 15], [8, 16], [12, 17], [9, 18], [10, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [8, 25], [18, 26], [23, 27], [16, 28], [25, 29], [15, 30], [28, 31], [28, 32], [29, 33], [31, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 2], [10, 2], [11, 3], [12, 8], [13, 2], [14, 2], [15, 8], [16, 8], [17, 12], [18, 9], [19, 10], [20, 8], [21, 8], [22, 8], [23, 8], [24, 8], [25, 8], [26, 18], [27, 23], [28, 16], [29, 25], [30, 15], [31, 28], [32, 28], [33, 29], [34, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "exists", "code": "    public boolean exists(Artifact artifact) {\n        ensureConfigured();\n        return super.exists(artifact);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "locate", "code": "    public ArtifactOrigin locate(Artifact artifact) {\n        ensureConfigured();\n        return super.locate(artifact);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "publish", "code": "    public void publish(Artifact artifact, File src, boolean overwrite) throws IOException {\n        ensureConfigured();\n        super.publish(artifact, src, overwrite);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "listOrganisations", "code": "    public OrganisationEntry[] listOrganisations() {\n        ensureConfigured();\n        return super.listOrganisations();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "listModules", "code": "    public ModuleEntry[] listModules(OrganisationEntry org) {\n        ensureConfigured();\n        return super.listModules(org);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "listRevisions", "code": "    public RevisionEntry[] listRevisions(ModuleEntry module) {\n        ensureConfigured();\n        return super.listRevisions(module);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dumpSettings", "code": "    public void dumpSettings() {\n        Message.verbose(\"\\t\" + getName() + \" [cache]\");", "ast_nodes": ["FUNC_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "ensureConfigured", "code": "    private void ensureConfigured() {\n        if (getIvyPatterns().isEmpty()) {\n            setIvyPatterns(new ArrayList());\n            setArtifactPatterns(new ArrayList());\n            RepositoryCacheManager[] caches = getSettings().getRepositoryCacheManagers();\n            for (int i = 0; i < caches.length; i++) {\n                if (caches[i] instanceof DefaultRepositoryCacheManager) {\n                    DefaultRepositoryCacheManager c = (DefaultRepositoryCacheManager) caches[i];\n                    addIvyPattern(c.getBasedir().getAbsolutePath() + \"/\" + c.getIvyPattern());\n                    addArtifactPattern(\n                        c.getBasedir().getAbsolutePath() + \"/\" + c.getArtifactPattern());\n                } else {\n                    Message.verbose(\n                        caches[i] + \": cache implementation is not a DefaultRepositoryCacheManager:\"\n                        + \" unable to configure cache resolver with it\");", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [3, 9], [4, 10], [7, 11], [8, 12], [9, 13], [3, 14], [10, 15], [9, 16], [9, 17], [9, 18], [9, 19], [17, 20], [18, 21], [19, 22], [20, 23], [20, 24], [21, 25], [21, 26], [22, 27], [22, 28], [24, 29], [26, 30], [26, 31], [28, 32], [28, 33], [31, 34], [33, 35], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 3], [10, 4], [11, 7], [12, 8], [13, 9], [14, 3], [15, 10], [16, 9], [17, 9], [18, 9], [19, 9], [20, 17], [21, 18], [22, 19], [23, 20], [24, 20], [25, 21], [26, 21], [27, 22], [28, 22], [29, 24], [30, 26], [31, 26], [32, 28], [33, 28], [34, 31], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getTypeName", "code": "    public String getTypeName() {\n        return \"cache\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "CacheResolver", "code": "    public CacheResolver() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "CacheResolver", "code": "    public CacheResolver(ResolverSettings settings) {\n        setSettings(settings);\n        setName(\"cache\");", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "ant-1.5-469", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/types/FileList.java", "language": "java", "name": "org.apache.tools.ant.types.FileList", "code": "public class FileList extends DataType {\n    \n    private Vector filenames = new Vector();\n    private File dir;\n\n    public FileList() {\n        super();\n    }\n\n    protected FileList(FileList filelist) {\n        this.dir       = filelist.dir;\n        this.filenames = filelist.filenames;\n        setProject(filelist.getProject());\n    }\n\n    /**\n     * Makes this instance in effect a reference to another FileList\n     * instance.\n     *\n     * <p>You must not set another attribute or nest elements inside\n     * this element if you make it a reference.</p> \n     */\n    public void setRefid(Reference r) throws BuildException {\n        if ((dir != null) || (filenames.size() != 0)) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);\n    }\n\n    public void setDir(File dir) throws BuildException {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.dir = dir;\n    }\n\n    public File getDir(Project p) {\n        if (isReference()) {\n            return getRef(p).getDir(p);\n        }\n        return dir;\n    }\n\n    public void setFiles(String filenames) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (filenames != null && filenames.length() > 0) {\n            StringTokenizer tok = new StringTokenizer(filenames, \", \\t\\n\\r\\f\", false);\n            while (tok.hasMoreTokens()) {\n               this.filenames.addElement(tok.nextToken());\n            }\n        }\n    }\n\n    /**\n     * Returns the list of files represented by this FileList.\n     */\n    public String[] getFiles(Project p) {\n        if (isReference()) {\n            return getRef(p).getFiles(p);\n        }\n\n        if (dir == null) {\n            throw new BuildException(\"No directory specified for filelist.\");\n        }\n\n        if (filenames.size() == 0) {\n            throw new BuildException(\"No files specified for filelist.\");\n        }\n\n        String[] result = new String[filenames.size()];\n        filenames.copyInto(result);\n        return result;\n    }\n    \n    /**\n     * Performs the check for circular references and returns the\n     * referenced FileList.  \n     */\n    protected FileList getRef(Project p) {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, p);\n        }\n        \n        Object o = ref.getReferencedObject(p);\n        if (!(o instanceof FileList)) {\n            String msg = ref.getRefId() + \" doesn\\'t denote a filelist\";\n            throw new BuildException(msg);\n        } else {\n            return (FileList) o;", "functions": [{"function_name": "setRefid", "code": "    public void setRefid(Reference r) throws BuildException {\n        if ((dir != null) || (filenames.size() != 0)) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [5, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 5], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setDir", "code": "    public void setDir(File dir) throws BuildException {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.dir = dir;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getDir", "code": "    public File getDir(Project p) {\n        if (isReference()) {\n            return getRef(p).getDir(p);\n        }\n        return dir;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setFiles", "code": "    public void setFiles(String filenames) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (filenames != null && filenames.length() > 0) {\n            StringTokenizer tok = new StringTokenizer(filenames, \", \\t\\n\\r\\f\", false);\n            while (tok.hasMoreTokens()) {\n               this.filenames.addElement(tok.nextToken());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [4, 9], [2, 10], [6, 11], [8, 12], [8, 13], [9, 14], [10, 15], [7, 16], [16, 17], [16, 18], [6, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 4], [10, 2], [11, 6], [12, 8], [13, 8], [14, 9], [15, 10], [16, 7], [17, 16], [18, 16], [19, 6], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getFiles", "code": "    public String[] getFiles(Project p) {\n        if (isReference()) {\n            return getRef(p).getFiles(p);\n        }\n\n        if (dir == null) {\n            throw new BuildException(\"No directory specified for filelist.\");\n        }\n\n        if (filenames.size() == 0) {\n            throw new BuildException(\"No files specified for filelist.\");\n        }\n\n        String[] result = new String[filenames.size()];\n        filenames.copyInto(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [4, 9], [5, 10], [3, 11], [8, 12], [8, 13], [4, 14], [9, 15], [5, 16], [2, 17], [11, 18], [14, 19], [16, 20], [18, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 4], [10, 5], [11, 3], [12, 8], [13, 8], [14, 4], [15, 9], [16, 5], [17, 2], [18, 11], [19, 14], [20, 16], [21, 18], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getRef", "code": "    protected FileList getRef(Project p) {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, p);\n        }\n        \n        Object o = ref.getReferencedObject(p);\n        if (!(o instanceof FileList)) {\n            String msg = ref.getRefId() + \" doesn\\'t denote a filelist\";\n            throw new BuildException(msg);\n        } else {\n            return (FileList) o;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "THROW_RAISE", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [3, 10], [7, 11], [3, 12], [3, 13], [8, 14], [10, 15], [14, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 3], [11, 7], [12, 3], [13, 3], [14, 8], [15, 10], [16, 14], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "FileList", "code": "    public FileList() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FileList", "code": "    protected FileList(FileList filelist) {\n        this.dir       = filelist.dir;\n        this.filenames = filelist.filenames;\n        setProject(filelist.getProject());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.6-7720", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/res/XMLErrorResources_pt_BR.java", "language": "java", "name": "org.apache.xml.res.XMLErrorResources_pt_BR", "code": "public class XMLErrorResources_pt_BR extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 61;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 0;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 4;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Message keys\n   */\n  public static final String ER_FUNCTION_NOT_SUPPORTED = \"ER_FUNCTION_NOT_SUPPORTED\";\n  public static final String ER_CANNOT_OVERWRITE_CAUSE = \"ER_CANNOT_OVERWRITE_CAUSE\";\n  public static final String ER_NO_DEFAULT_IMPL = \"ER_NO_DEFAULT_IMPL\";\n  public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = \"ER_CHUNKEDINTARRAY_NOT_SUPPORTED\";\n  public static final String ER_OFFSET_BIGGER_THAN_SLOT = \"ER_OFFSET_BIGGER_THAN_SLOT\";\n  public static final String ER_COROUTINE_NOT_AVAIL = \"ER_COROUTINE_NOT_AVAIL\";\n  public static final String ER_COROUTINE_CO_EXIT = \"ER_COROUTINE_CO_EXIT\";\n  public static final String ER_COJOINROUTINESET_FAILED = \"ER_COJOINROUTINESET_FAILED\";\n  public static final String ER_COROUTINE_PARAM = \"ER_COROUTINE_PARAM\";\n  public static final String ER_PARSER_DOTERMINATE_ANSWERS = \"ER_PARSER_DOTERMINATE_ANSWERS\";\n  public static final String ER_NO_PARSE_CALL_WHILE_PARSING = \"ER_NO_PARSE_CALL_WHILE_PARSING\";\n  public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = \"ER_ITERATOR_CLONE_NOT_SUPPORTED\";\n  public static final String ER_UNKNOWN_AXIS_TYPE = \"ER_UNKNOWN_AXIS_TYPE\";\n  public static final String ER_AXIS_NOT_SUPPORTED = \"ER_AXIS_NOT_SUPPORTED\";\n  public static final String ER_NO_DTMIDS_AVAIL = \"ER_NO_DTMIDS_AVAIL\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_NODE_NON_NULL = \"ER_NODE_NON_NULL\";\n  public static final String ER_COULD_NOT_RESOLVE_NODE = \"ER_COULD_NOT_RESOLVE_NODE\";\n  public static final String ER_STARTPARSE_WHILE_PARSING = \"ER_STARTPARSE_WHILE_PARSING\";\n  public static final String ER_STARTPARSE_NEEDS_SAXPARSER = \"ER_STARTPARSE_NEEDS_SAXPARSER\";\n  public static final String ER_COULD_NOT_INIT_PARSER = \"ER_COULD_NOT_INIT_PARSER\";\n  public static final String ER_EXCEPTION_CREATING_POOL = \"ER_EXCEPTION_CREATING_POOL\";\n  public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = \"ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE\";\n  public static final String ER_SCHEME_REQUIRED = \"ER_SCHEME_REQUIRED\";\n  public static final String ER_NO_SCHEME_IN_URI = \"ER_NO_SCHEME_IN_URI\";\n  public static final String ER_NO_SCHEME_INURI = \"ER_NO_SCHEME_INURI\";\n  public static final String ER_PATH_INVALID_CHAR = \"ER_PATH_INVALID_CHAR\";\n  public static final String ER_SCHEME_FROM_NULL_STRING = \"ER_SCHEME_FROM_NULL_STRING\";\n  public static final String ER_SCHEME_NOT_CONFORMANT = \"ER_SCHEME_NOT_CONFORMANT\";\n  public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = \"ER_HOST_ADDRESS_NOT_WELLFORMED\";\n  public static final String ER_PORT_WHEN_HOST_NULL = \"ER_PORT_WHEN_HOST_NULL\";\n  public static final String ER_INVALID_PORT = \"ER_INVALID_PORT\";\n  public static final String ER_FRAG_FOR_GENERIC_URI =\"ER_FRAG_FOR_GENERIC_URI\";\n  public static final String ER_FRAG_WHEN_PATH_NULL = \"ER_FRAG_WHEN_PATH_NULL\";\n  public static final String ER_FRAG_INVALID_CHAR = \"ER_FRAG_INVALID_CHAR\";\n  public static final String ER_PARSER_IN_USE = \"ER_PARSER_IN_USE\";\n  public static final String ER_CANNOT_CHANGE_WHILE_PARSING = \"ER_CANNOT_CHANGE_WHILE_PARSING\";\n  public static final String ER_SELF_CAUSATION_NOT_PERMITTED = \"ER_SELF_CAUSATION_NOT_PERMITTED\";\n  public static final String ER_NO_USERINFO_IF_NO_HOST = \"ER_NO_USERINFO_IF_NO_HOST\";\n  public static final String ER_NO_PORT_IF_NO_HOST = \"ER_NO_PORT_IF_NO_HOST\";\n  public static final String ER_NO_QUERY_STRING_IN_PATH = \"ER_NO_QUERY_STRING_IN_PATH\";\n  public static final String ER_NO_FRAGMENT_STRING_IN_PATH = \"ER_NO_FRAGMENT_STRING_IN_PATH\";\n  public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = \"ER_CANNOT_INIT_URI_EMPTY_PARMS\";\n  public static final String ER_METHOD_NOT_SUPPORTED =\"ER_METHOD_NOT_SUPPORTED\";\n  public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = \"ER_INCRSAXSRCFILTER_NOT_RESTARTABLE\";\n  public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = \"ER_XMLRDR_NOT_BEFORE_STARTPARSE\";\n  public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = \"ER_AXIS_TRAVERSER_NOT_SUPPORTED\";\n  public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = \"ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER\";\n  public static final String ER_SYSTEMID_UNKNOWN = \"ER_SYSTEMID_UNKNOWN\";\n  public static final String ER_LOCATION_UNKNOWN = \"ER_LOCATION_UNKNOWN\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = \"ER_CREATEDOCUMENT_NOT_SUPPORTED\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT\";\n  public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = \"ER_CANT_OUTPUT_TEXT_BEFORE_DOC\";\n  public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = \"ER_CANT_HAVE_MORE_THAN_ONE_ROOT\";\n  public static final String ER_ARG_LOCALNAME_NULL = \"ER_ARG_LOCALNAME_NULL\";\n  public static final String ER_ARG_LOCALNAME_INVALID = \"ER_ARG_LOCALNAME_INVALID\";\n  public static final String ER_ARG_PREFIX_INVALID = \"ER_ARG_PREFIX_INVALID\";\n\n  public static final String ER_RESOURCE_COULD_NOT_FIND = \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD = \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_INVALID_UTF16_SURROGATE = \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_NAMESPACE_PREFIX = \"ER_NAMESPACE_PREFIX\";\n  public static final String ER_STRAY_ATTRIBUTE = \"ER_STRAY_ATTIRBUTE\";\n  public static final String ER_STRAY_NAMESPACE = \"ER_STRAY_NAMESPACE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE = \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = \"ER_COULD_NOT_LOAD_METHOD_PROPERTY\";\n  public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = \"ER_SERIALIZER_NOT_CONTENTHANDLER\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = \"ER_ILLEGAL_ATTRIBUTE_POSITION\";\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /** The lookup table for error messages.   */\n  public static final Object[][] contents = {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"Fun\\u00e7\\u00e3o n\\u00e3o suportada!\"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"Imposs\\u00edvel sobrepor causa\"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"Nenhuma implementa\\u00e7\\u00e3o padr\\u00e3o encontrada\"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"ChunkedIntArray({0}) n\\u00e3o suportado atualmente\"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"Deslocamento maior que slot\"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"Co-rotina n\\u00e3o dispon\\u00edvel, id={0}\"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager recebido para pedido co_exit()\"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"Falha de co_joinCoroutineSet()\"},\n\n    { ER_COROUTINE_PARAM,\n      \"Erro de par\\u00e2metro coroutine ({0})\"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\nINESPERADO: doTerminate do analizador respondeu {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"parse n\\u00e3o pode ser chamado durante an\\u00e1lise\"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Erro: digitado repetidor para eixo {0} n\\u00e3o implementado\"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"Erro: repetidor para eixo {0} n\\u00e3o implementado\"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"Clone de repetidor n\\u00e3o suportado\"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"Tipo de passagem de eixo desconhecida: {0}\"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"Atravessador de eixo n\\u00e3o suportado: {0}\"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"N\\u00e3o existem mais IDs de DTM dispon\\u00edveis\"},\n\n    { ER_NOT_SUPPORTED,\n      \"N\\u00e3o suportado: {0}\"},\n\n    { ER_NODE_NON_NULL,\n      \"O n\\u00f3 n\\u00e3o deve ser nulo para getDTMHandleFromNode\"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"N\\u00e3o foi poss\\u00edvel resolver o n\\u00f3 para um identificador\"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"startParse n\\u00e3o pode ser chamado durante an\\u00e1lise\"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse precisa de um SAXParser n\\u00e3o-nulo\"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"n\\u00e3o foi poss\\u00edvel inicializar analisador com\"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"exce\\u00e7\\u00e3o ao criar nova inst\\u00e2ncia para o conjunto\"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"O caminho cont\\u00e9m seq\\u00fc\\u00eancia de escape inv\\u00e1lida\"},\n\n    { ER_SCHEME_REQUIRED,\n       \"O esquema \\u00e9 obrigat\\u00f3rio!\"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"Nenhum esquema encontrado no URI: {0}\"},\n\n    { ER_NO_SCHEME_INURI,\n       \"Nenhum esquema encontrado no URI\"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"O caminho cont\\u00e9m caractere inv\\u00e1lido: {0}\"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"Imposs\\u00edvel definir esquema a partir da cadeia nula\"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"O esquema n\\u00e3o est\\u00e1 em conformidade.\"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"O host n\\u00e3o \\u00e9 um endere\\u00e7o formado corretamente\"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"A porta n\\u00e3o pode ser definida quando o host \\u00e9 nulo\"},\n\n    { ER_INVALID_PORT,\n       \"N\\u00famero de porta inv\\u00e1lido\"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"O fragmento s\\u00f3 pode ser definido para um URI gen\\u00e9rico\"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"O fragmento n\\u00e3o pode ser definido quando o caminho \\u00e9 nulo\"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"O fragmento cont\\u00e9m caractere inv\\u00e1lido\"},\n\n    { ER_PARSER_IN_USE,\n      \"O analisador j\\u00e1 est\\u00e1 sendo utilizado\"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"Imposs\\u00edvel alterar {0} {1} durante an\\u00e1lise\"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"Auto-causa\\u00e7\\u00e3o n\\u00e3o permitida\"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"Userinfo n\\u00e3o pode ser especificado se host n\\u00e3o for especificado\"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"Port n\\u00e3o pode ser especificado se host n\\u00e3o for especificado\"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"A cadeia de consulta n\\u00e3o pode ser especificada na cadeia de consulta e caminho\"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"O fragmento n\\u00e3o pode ser especificado no caminho e fragmento\"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"Imposs\\u00edvel inicializar URI com par\\u00e2metros vazios\"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"M\\u00e9todo ainda n\\u00e3o suportado\"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"IncrementalSAXSource_Filter atualmente n\\u00e3o reinicializ\\u00e1vel\"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"XMLReader n\\u00e3o antes do pedido startParse\"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"Atravessador de eixo n\\u00e3o suportado: {0}\"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"ListingErrorHandler criado com nulo PrintWriter!\"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"SystemId Desconhecido\"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"Localiza\\u00e7\\u00e3o de erro desconhecido\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"O prefixo deve ser resolvido para um namespace: {0}\"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"createDocument() n\\u00e3o suportado em XPathContext!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"O atributo child n\\u00e3o possui um documento do propriet\\u00e1rio!\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"O atributo child n\\u00e3o possui um elemento de documento do propriet\\u00e1rio!\"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"Aviso: imposs\\u00edvel emitir texto antes do elemento document! Ignorando...\"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"Imposs\\u00edvel ter mais de uma raiz em um DOM!\"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"O argumento 'localName' \\u00e9 nulo\"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"Localname em QNAME deve ser um NCName v\\u00e1lido\"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"O prefixo em QNAME deve ser um NCName v\\u00e1lido\"},\n\n    { \"BAD_CODE\", \"O par\\u00e2metro para createMessage estava fora dos limites\"},\n    { \"FORMAT_FAILED\", \"Exce\\u00e7\\u00e3o emitida durante chamada messageFormat\"},\n    { \"line\", \"Linha n\\u00b0\"},\n    { \"column\",\"Coluna n\\u00b0\"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"A classe de serializador ''{0}'' n\\u00e3o implementa org.xml.sax.ContentHandler.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"O recurso [ {0} ] n\\u00e3o p\\u00f4de ser encontrado.\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"O recurso [ {0} ] n\\u00e3o p\\u00f4de carregar: {1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"Tamanho do buffer <=0\" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"Detectado substituto UTF-16 inv\\u00e1lido: {0} ?\" },\n\n    {ER_OIERROR,\n      \"Erro de E/S\" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"Imposs\\u00edvel incluir atributo {0} depois de n\\u00f3s filhos ou antes da gera\\u00e7\\u00e3o de um elemento. O atributo ser\\u00e1 ignorado.\"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"Namespace para prefixo ''{0}'' n\\u00e3o foi declarado. \" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"Atributo ''{0}'' fora do elemento. \" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"Declara\\u00e7\\u00e3o de namespace ''{0}''=''{1}'' fora do elemento. \" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"N\\u00e3o foi poss\\u00edvel carregar ''{0}'' (verifique CLASSPATH), utilizando agora somente os padr\\u00f5es\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"N\\u00e3o foi poss\\u00edvel carregar o arquivo de propriedade ''{0}'' para o m\\u00e9todo de sa\\u00edda ''{1}'' (verifique CLASSPATH)\" }\n\n\n  };\n\n  /**\n   * Get the association list.\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return contents;\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"pt\", \"BR\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return contents;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadResourceBundle", "code": "  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"pt\", \"BR\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "xalan-2.5-7025", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/util/TestGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.TestGenerator", "code": "public final class TestGenerator extends MethodGenerator {\n    private static int CONTEXT_NODE_INDEX = 1;\n    private static int CURRENT_NODE_INDEX = 4;\n    private static int ITERATOR_INDEX = 6;\n\n    private Instruction _aloadDom;\n    private final Instruction _iloadCurrent;\n    private final Instruction _iloadContext;\n    private final Instruction _istoreCurrent;\n    private final Instruction _istoreContext;\n    private final Instruction _astoreIterator;\n    private final Instruction _aloadIterator;\n\n    public TestGenerator(int access_flags, Type return_type,\n\t\t\t Type[] arg_types, String[] arg_names,\n\t\t\t String method_name, String class_name,\n\t\t\t InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_iloadCurrent  = new ILOAD(CURRENT_NODE_INDEX);\n\t_istoreCurrent = new ISTORE(CURRENT_NODE_INDEX);\n\t_iloadContext  = new ILOAD(CONTEXT_NODE_INDEX);\n\t_istoreContext  = new ILOAD(CONTEXT_NODE_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\t_aloadIterator  = new ALOAD(ITERATOR_INDEX);\n    }\n\n    public int getHandlerIndex() {\n    }\n\n    public int getIteratorIndex() {\n    }\n\n    public void setDomIndex(int domIndex) {\n\t_aloadDom = new ALOAD(domIndex);\n    }\n\n    public Instruction loadDOM() {\n\treturn _aloadDom;\n    }\n\n    public Instruction loadCurrentNode() {\n\treturn _iloadCurrent;\n    }\n\n    /** by default context node is the same as current node. MK437 */\n    public Instruction loadContextNode() {\n\treturn _iloadContext;\n    }\n\n    public Instruction storeContextNode() {\n\treturn _istoreContext;\n    }\n\n    public Instruction storeCurrentNode() {\n\treturn _istoreCurrent;\n    }\n\n    public Instruction storeIterator() {\n\treturn _astoreIterator;\n    }\n    \n    public Instruction loadIterator() {\n\treturn _aloadIterator;\n    }\n\n    public int getLocalIndex(String name) {\n\tif (name.equals(\"current\")) {\n\t    return CURRENT_NODE_INDEX;\n\t}\n\telse {\n\t    return super.getLocalIndex(name);", "functions": [{"function_name": "getHandlerIndex", "code": "    public int getHandlerIndex() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIteratorIndex", "code": "    public int getIteratorIndex() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setDomIndex", "code": "    public void setDomIndex(int domIndex) {\n\t_aloadDom = new ALOAD(domIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "loadDOM", "code": "    public Instruction loadDOM() {\n\treturn _aloadDom;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadCurrentNode", "code": "    public Instruction loadCurrentNode() {\n\treturn _iloadCurrent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadContextNode", "code": "    public Instruction loadContextNode() {\n\treturn _iloadContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeContextNode", "code": "    public Instruction storeContextNode() {\n\treturn _istoreContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeCurrentNode", "code": "    public Instruction storeCurrentNode() {\n\treturn _istoreCurrent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeIterator", "code": "    public Instruction storeIterator() {\n\treturn _astoreIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadIterator", "code": "    public Instruction loadIterator() {\n\treturn _aloadIterator;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {\n\tif (name.equals(\"current\")) {\n\t    return CURRENT_NODE_INDEX;\n\t}\n\telse {\n\t    return super.getLocalIndex(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "TestGenerator", "code": "    public TestGenerator(int access_flags, Type return_type,\n\t\t\t Type[] arg_types, String[] arg_names,\n\t\t\t String method_name, String class_name,\n\t\t\t InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_iloadCurrent  = new ILOAD(CURRENT_NODE_INDEX);\n\t_istoreCurrent = new ISTORE(CURRENT_NODE_INDEX);\n\t_iloadContext  = new ILOAD(CONTEXT_NODE_INDEX);\n\t_istoreContext  = new ILOAD(CONTEXT_NODE_INDEX);\n\t_astoreIterator = new ASTORE(ITERATOR_INDEX);\n\t_aloadIterator  = new ALOAD(ITERATOR_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}], "label": 0}
{"sample_id": "camel-1.2-1879", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/builder/script/ScriptBuilder.java", "language": "java", "name": "org.apache.camel.builder.script.ScriptBuilder", "code": "public class ScriptBuilder<E extends Exchange> implements Expression<E>, Predicate<E>, Processor {\n    private static final transient Log LOG = LogFactory.getLog(ScriptBuilder.class);\n\n    private String scriptEngineName;\n    private Resource scriptResource;\n    private String scriptText;\n    private ScriptEngine engine;\n    private CompiledScript compiledScript;\n\n    public ScriptBuilder(String scriptEngineName) {\n        this.scriptEngineName = scriptEngineName;\n    }\n\n    public ScriptBuilder(String scriptEngineName, String scriptText) {\n        this(scriptEngineName);\n        this.scriptText = scriptText;\n    }\n\n    public ScriptBuilder(String scriptEngineName, Resource scriptResource) {\n        this(scriptEngineName);\n        this.scriptResource = scriptResource;\n    }\n\n    @Override\n    public String toString() {\n        return getScriptDescription();\n    }\n\n    public Object evaluate(E exchange) {\n        return evaluateScript(exchange);\n    }\n\n    public boolean matches(E exchange) {\n        Object scriptValue = evaluateScript(exchange);\n        return matches(exchange, scriptValue);\n    }\n\n    public void assertMatches(String text, E exchange) throws AssertionError {\n        Object scriptValue = evaluateScript(exchange);\n        if (!matches(exchange, scriptValue)) {\n            throw new AssertionError(this + \" failed on \" + exchange + \" as script returned <\" + scriptValue + \">\");\n        }\n    }\n\n    public void process(Exchange exchange) {\n        evaluateScript(exchange);\n    }\n\n\n    /**\n     * Sets the attribute on the context so that it is available to the script\n     * as a variable in the {@link ScriptContext#ENGINE_SCOPE}\n     * \n     * @param name the name of the attribute\n     * @param value the attribute value\n     * @return this builder\n     */\n    public ScriptBuilder attribute(String name, Object value) {\n        getScriptContext().setAttribute(name, value, ScriptContext.ENGINE_SCOPE);\n        return this;\n    }\n\n\n    /**\n     * Creates a script builder for the named language and script contents\n     * \n     * @param language the language to use for the script\n     * @param scriptText the script text to be evaluted\n     * @return the builder\n     */\n    public static ScriptBuilder script(String language, String scriptText) {\n        return new ScriptBuilder(language, scriptText);\n    }\n\n    /**\n     * Creates a script builder for the named language and script\n     * \n     * @{link Resource}\n     * @param language the language to use for the script\n     * @param scriptResource the resource used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder script(String language, Resource scriptResource) {\n        return new ScriptBuilder(language, scriptResource);\n    }\n\n    /**\n     * Creates a script builder for the named language and script\n     * \n     * @{link File}\n     * @param language the language to use for the script\n     * @param scriptFile the file used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder script(String language, File scriptFile) {\n        return new ScriptBuilder(language, new FileSystemResource(scriptFile));\n    }\n\n    /**\n     * Creates a script builder for the named language and script\n     * \n     * @{link URL}\n     * @param language the language to use for the script\n     * @param scriptURL the URL used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder script(String language, URL scriptURL) {\n        return new ScriptBuilder(language, new UrlResource(scriptURL));\n    }\n\n\n    /**\n     * Creates a script builder for the groovy script contents\n     * \n     * @param scriptText the script text to be evaluted\n     * @return the builder\n     */\n    public static ScriptBuilder groovy(String scriptText) {\n        return new ScriptBuilder(\"groovy\", scriptText);\n    }\n\n    /**\n     * Creates a script builder for the groovy script\n     * \n     * @{link Resource}\n     * @param scriptResource the resource used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder groovy(Resource scriptResource) {\n        return new ScriptBuilder(\"groovy\", scriptResource);\n    }\n\n    /**\n     * Creates a script builder for the groovy script\n     * \n     * @{link File}\n     * @param scriptFile the file used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder groovy(File scriptFile) {\n        return new ScriptBuilder(\"groovy\", new FileSystemResource(scriptFile));\n    }\n\n    /**\n     * Creates a script builder for the groovy script\n     * \n     * @{link URL}\n     * @param scriptURL the URL used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder groovy(URL scriptURL) {\n        return new ScriptBuilder(\"groovy\", new UrlResource(scriptURL));\n    }\n\n\n    /**\n     * Creates a script builder for the JavaScript/ECMAScript script contents\n     * \n     * @param scriptText the script text to be evaluted\n     * @return the builder\n     */\n    public static ScriptBuilder javaScript(String scriptText) {\n        return new ScriptBuilder(\"js\", scriptText);\n    }\n\n    /**\n     * Creates a script builder for the JavaScript/ECMAScript script\n     * \n     * @{link Resource}\n     * @param scriptResource the resource used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder javaScript(Resource scriptResource) {\n        return new ScriptBuilder(\"js\", scriptResource);\n    }\n\n    /**\n     * Creates a script builder for the JavaScript/ECMAScript script\n     * \n     * @{link File}\n     * @param scriptFile the file used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder javaScript(File scriptFile) {\n        return new ScriptBuilder(\"js\", new FileSystemResource(scriptFile));\n    }\n\n    /**\n     * Creates a script builder for the JavaScript/ECMAScript script\n     * \n     * @{link URL}\n     * @param scriptURL the URL used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder javaScript(URL scriptURL) {\n        return new ScriptBuilder(\"js\", new UrlResource(scriptURL));\n    }\n\n\n    /**\n     * Creates a script builder for the PHP script contents\n     * \n     * @param scriptText the script text to be evaluted\n     * @return the builder\n     */\n    public static ScriptBuilder php(String scriptText) {\n        return new ScriptBuilder(\"php\", scriptText);\n    }\n\n    /**\n     * Creates a script builder for the PHP script\n     * \n     * @{link Resource}\n     * @param scriptResource the resource used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder php(Resource scriptResource) {\n        return new ScriptBuilder(\"php\", scriptResource);\n    }\n\n    /**\n     * Creates a script builder for the PHP script\n     * \n     * @{link File}\n     * @param scriptFile the file used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder php(File scriptFile) {\n        return new ScriptBuilder(\"php\", new FileSystemResource(scriptFile));\n    }\n\n    /**\n     * Creates a script builder for the PHP script\n     * \n     * @{link URL}\n     * @param scriptURL the URL used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder php(URL scriptURL) {\n        return new ScriptBuilder(\"php\", new UrlResource(scriptURL));\n    }\n\n\n    /**\n     * Creates a script builder for the Python script contents\n     * \n     * @param scriptText the script text to be evaluted\n     * @return the builder\n     */\n    public static ScriptBuilder python(String scriptText) {\n        return new ScriptBuilder(\"python\", scriptText);\n    }\n\n    /**\n     * Creates a script builder for the Python script\n     * \n     * @{link Resource}\n     * @param scriptResource the resource used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder python(Resource scriptResource) {\n        return new ScriptBuilder(\"python\", scriptResource);\n    }\n\n    /**\n     * Creates a script builder for the Python script\n     * \n     * @{link File}\n     * @param scriptFile the file used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder python(File scriptFile) {\n        return new ScriptBuilder(\"python\", new FileSystemResource(scriptFile));\n    }\n\n    /**\n     * Creates a script builder for the Python script\n     * \n     * @{link URL}\n     * @param scriptURL the URL used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder python(URL scriptURL) {\n        return new ScriptBuilder(\"python\", new UrlResource(scriptURL));\n    }\n\n\n    /**\n     * Creates a script builder for the Ruby/JRuby script contents\n     * \n     * @param scriptText the script text to be evaluted\n     * @return the builder\n     */\n    public static ScriptBuilder ruby(String scriptText) {\n        return new ScriptBuilder(\"jruby\", scriptText);\n    }\n\n    /**\n     * Creates a script builder for the Ruby/JRuby script\n     * \n     * @{link Resource}\n     * @param scriptResource the resource used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder ruby(Resource scriptResource) {\n        return new ScriptBuilder(\"jruby\", scriptResource);\n    }\n\n    /**\n     * Creates a script builder for the Ruby/JRuby script\n     * \n     * @{link File}\n     * @param scriptFile the file used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder ruby(File scriptFile) {\n        return new ScriptBuilder(\"jruby\", new FileSystemResource(scriptFile));\n    }\n\n    /**\n     * Creates a script builder for the Ruby/JRuby script\n     * \n     * @{link URL}\n     * @param scriptURL the URL used to load the script\n     * @return the builder\n     */\n    public static ScriptBuilder ruby(URL scriptURL) {\n        return new ScriptBuilder(\"jruby\", new UrlResource(scriptURL));\n    }\n\n    public ScriptEngine getEngine() {\n        checkInitialised();\n        if (engine == null) {\n            throw new IllegalArgumentException(\"No script engine could be created for: \" + getScriptEngineName());\n        }\n        return engine;\n    }\n\n    public CompiledScript getCompiledScript() {\n        return compiledScript;\n    }\n\n    public String getScriptText() {\n        return scriptText;\n    }\n\n    public void setScriptText(String scriptText) {\n        this.scriptText = scriptText;\n    }\n\n    public String getScriptEngineName() {\n        return scriptEngineName;\n    }\n\n    /**\n     * Returns a description of the script\n     * \n     * @return the script description\n     */\n    public String getScriptDescription() {\n        if (scriptText != null) {\n            return scriptEngineName + \": \" + scriptText;\n        } else if (scriptResource != null) {\n            return scriptEngineName + \": \" + scriptResource.getDescription();\n        } else {\n            return scriptEngineName + \": null script\";\n        }\n    }\n\n    /**\n     * Access the script context so that it can be configured such as adding\n     * attributes\n     */\n    public ScriptContext getScriptContext() {\n        return getEngine().getContext();\n    }\n\n    /**\n     * Sets the context to use by the script\n     */\n    public void setScriptContext(ScriptContext scriptContext) {\n        getEngine().setContext(scriptContext);\n    }\n\n    public Resource getScriptResource() {\n        return scriptResource;\n    }\n\n    public void setScriptResource(Resource scriptResource) {\n        this.scriptResource = scriptResource;\n    }\n\n    protected void checkInitialised() {\n        if (scriptText == null && scriptResource == null) {\n            throw new IllegalArgumentException(\"Neither scriptText or scriptResource are specified\");\n        }\n        if (engine == null) {\n            engine = createScriptEngine();\n        }\n        if (compiledScript == null) {\n            if (engine instanceof Compilable) {\n                compileScript((Compilable)engine);\n            }\n        }\n    }\n\n    protected boolean matches(E exchange, Object scriptValue) {\n        return ObjectConverter.toBoolean(scriptValue);\n    }\n\n    protected ScriptEngine createScriptEngine() {\n        ScriptEngineManager manager = new ScriptEngineManager();\n        return manager.getEngineByName(scriptEngineName);\n    }\n\n    protected void compileScript(Compilable compilable) {\n        try {\n            if (scriptText != null) {\n                compiledScript = compilable.compile(scriptText);\n            } else if (scriptResource != null) {\n                compiledScript = compilable.compile(createScriptReader());\n            }\n        } catch (ScriptException e) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Script compile failed: \" + e, e);\n            }\n            throw createScriptCompileException(e);\n        } catch (IOException e) {\n            throw createScriptCompileException(e);\n        }\n    }\n\n    protected synchronized Object evaluateScript(Exchange exchange) {\n        try {\n            getScriptContext();\n            populateBindings(getEngine(), exchange);\n            return runScript();\n        } catch (ScriptException e) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Script evaluation failed: \" + e, e);\n            }\n            throw createScriptEvaluationException(e.getCause());\n        } catch (IOException e) {\n            throw createScriptEvaluationException(e);\n        }\n    }\n\n    protected Object runScript() throws ScriptException, IOException {\n        checkInitialised();\n        if (compiledScript != null) {\n            return compiledScript.eval();\n        } else {\n            if (scriptText != null) {\n                return getEngine().eval(scriptText);\n            } else {\n                return getEngine().eval(createScriptReader());\n            }\n        }\n    }\n\n    protected void populateBindings(ScriptEngine engine, Exchange exchange) {\n        ScriptContext context = engine.getContext();\n        int scope = ScriptContext.ENGINE_SCOPE;\n        context.setAttribute(\"context\", exchange.getContext(), scope);\n        context.setAttribute(\"exchange\", exchange, scope);\n        context.setAttribute(\"request\", exchange.getIn(), scope);\n        context.setAttribute(\"response\", exchange.getOut(), scope);\n    }\n\n    protected InputStreamReader createScriptReader() throws IOException {\n        return new InputStreamReader(scriptResource.getInputStream());\n    }\n\n    protected ScriptEvaluationException createScriptCompileException(Exception e) {\n        return new ScriptEvaluationException(\"Failed to compile: \" + getScriptDescription() + \". Cause: \" + e, e);\n    }\n\n    protected ScriptEvaluationException createScriptEvaluationException(Throwable e) {\n        return new ScriptEvaluationException(\"Failed to evaluate: \" + getScriptDescription() + \". Cause: \" + e, e);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return getScriptDescription();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "evaluate", "code": "    public Object evaluate(E exchange) {\n        return evaluateScript(exchange);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "matches", "code": "    public boolean matches(E exchange) {\n        Object scriptValue = evaluateScript(exchange);\n        return matches(exchange, scriptValue);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "assertMatches", "code": "    public void assertMatches(String text, E exchange) throws AssertionError {\n        Object scriptValue = evaluateScript(exchange);\n        if (!matches(exchange, scriptValue)) {\n            throw new AssertionError(this + \" failed on \" + exchange + \" as script returned <\" + scriptValue + \">\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [12, 13], [12, 14], [14, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [13, 12], [14, 12], [15, 14], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) {\n        evaluateScript(exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "attribute", "code": "    public ScriptBuilder attribute(String name, Object value) {\n        getScriptContext().setAttribute(name, value, ScriptContext.ENGINE_SCOPE);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "script", "code": "    public static ScriptBuilder script(String language, String scriptText) {\n        return new ScriptBuilder(language, scriptText);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "script", "code": "    public static ScriptBuilder script(String language, Resource scriptResource) {\n        return new ScriptBuilder(language, scriptResource);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "script", "code": "    public static ScriptBuilder script(String language, File scriptFile) {\n        return new ScriptBuilder(language, new FileSystemResource(scriptFile));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "script", "code": "    public static ScriptBuilder script(String language, URL scriptURL) {\n        return new ScriptBuilder(language, new UrlResource(scriptURL));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "groovy", "code": "    public static ScriptBuilder groovy(String scriptText) {\n        return new ScriptBuilder(\"groovy\", scriptText);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "groovy", "code": "    public static ScriptBuilder groovy(Resource scriptResource) {\n        return new ScriptBuilder(\"groovy\", scriptResource);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "groovy", "code": "    public static ScriptBuilder groovy(File scriptFile) {\n        return new ScriptBuilder(\"groovy\", new FileSystemResource(scriptFile));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "groovy", "code": "    public static ScriptBuilder groovy(URL scriptURL) {\n        return new ScriptBuilder(\"groovy\", new UrlResource(scriptURL));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "javaScript", "code": "    public static ScriptBuilder javaScript(String scriptText) {\n        return new ScriptBuilder(\"js\", scriptText);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "javaScript", "code": "    public static ScriptBuilder javaScript(Resource scriptResource) {\n        return new ScriptBuilder(\"js\", scriptResource);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "javaScript", "code": "    public static ScriptBuilder javaScript(File scriptFile) {\n        return new ScriptBuilder(\"js\", new FileSystemResource(scriptFile));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "javaScript", "code": "    public static ScriptBuilder javaScript(URL scriptURL) {\n        return new ScriptBuilder(\"js\", new UrlResource(scriptURL));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "php", "code": "    public static ScriptBuilder php(String scriptText) {\n        return new ScriptBuilder(\"php\", scriptText);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "php", "code": "    public static ScriptBuilder php(Resource scriptResource) {\n        return new ScriptBuilder(\"php\", scriptResource);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "php", "code": "    public static ScriptBuilder php(File scriptFile) {\n        return new ScriptBuilder(\"php\", new FileSystemResource(scriptFile));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "php", "code": "    public static ScriptBuilder php(URL scriptURL) {\n        return new ScriptBuilder(\"php\", new UrlResource(scriptURL));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "python", "code": "    public static ScriptBuilder python(String scriptText) {\n        return new ScriptBuilder(\"python\", scriptText);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "python", "code": "    public static ScriptBuilder python(Resource scriptResource) {\n        return new ScriptBuilder(\"python\", scriptResource);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "python", "code": "    public static ScriptBuilder python(File scriptFile) {\n        return new ScriptBuilder(\"python\", new FileSystemResource(scriptFile));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "python", "code": "    public static ScriptBuilder python(URL scriptURL) {\n        return new ScriptBuilder(\"python\", new UrlResource(scriptURL));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ruby", "code": "    public static ScriptBuilder ruby(String scriptText) {\n        return new ScriptBuilder(\"jruby\", scriptText);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ruby", "code": "    public static ScriptBuilder ruby(Resource scriptResource) {\n        return new ScriptBuilder(\"jruby\", scriptResource);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ruby", "code": "    public static ScriptBuilder ruby(File scriptFile) {\n        return new ScriptBuilder(\"jruby\", new FileSystemResource(scriptFile));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ruby", "code": "    public static ScriptBuilder ruby(URL scriptURL) {\n        return new ScriptBuilder(\"jruby\", new UrlResource(scriptURL));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getEngine", "code": "    public ScriptEngine getEngine() {\n        checkInitialised();\n        if (engine == null) {\n            throw new IllegalArgumentException(\"No script engine could be created for: \" + getScriptEngineName());\n        }\n        return engine;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [0, 4], [2, 5], [3, 6], [5, 7], [7, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 2], [4, 0], [5, 2], [6, 3], [7, 5], [8, 7], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getCompiledScript", "code": "    public CompiledScript getCompiledScript() {\n        return compiledScript;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getScriptText", "code": "    public String getScriptText() {\n        return scriptText;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setScriptText", "code": "    public void setScriptText(String scriptText) {\n        this.scriptText = scriptText;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getScriptEngineName", "code": "    public String getScriptEngineName() {\n        return scriptEngineName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getScriptDescription", "code": "    public String getScriptDescription() {\n        if (scriptText != null) {\n            return scriptEngineName + \": \" + scriptText;\n        } else if (scriptResource != null) {\n            return scriptEngineName + \": \" + scriptResource.getDescription();\n        } else {\n            return scriptEngineName + \": null script\";", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [3, 6], [2, 7], [2, 8], [4, 9], [5, 10], [7, 11], [8, 12], [10, 13], [11, 14], [12, 15], [12, 16], [13, 17], [16, 18], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 3], [7, 2], [8, 2], [9, 4], [10, 5], [11, 7], [12, 8], [13, 10], [14, 11], [15, 12], [16, 12], [17, 13], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getScriptContext", "code": "    public ScriptContext getScriptContext() {\n        return getEngine().getContext();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setScriptContext", "code": "    public void setScriptContext(ScriptContext scriptContext) {\n        getEngine().setContext(scriptContext);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getScriptResource", "code": "    public Resource getScriptResource() {\n        return scriptResource;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setScriptResource", "code": "    public void setScriptResource(Resource scriptResource) {\n        this.scriptResource = scriptResource;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "checkInitialised", "code": "    protected void checkInitialised() {\n        if (scriptText == null && scriptResource == null) {\n            throw new IllegalArgumentException(\"Neither scriptText or scriptResource are specified\");\n        }\n        if (engine == null) {\n            engine = createScriptEngine();\n        }\n        if (compiledScript == null) {\n            if (engine instanceof Compilable) {\n                compileScript((Compilable)engine);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [5, 9], [3, 10], [6, 11], [6, 12], [7, 13], [2, 14], [10, 15], [11, 16], [12, 17], [14, 18], [15, 19], [7, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [9, 5], [10, 3], [11, 6], [12, 6], [13, 7], [14, 2], [15, 10], [16, 11], [17, 12], [18, 14], [19, 15], [20, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "matches", "code": "    protected boolean matches(E exchange, Object scriptValue) {\n        return ObjectConverter.toBoolean(scriptValue);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createScriptEngine", "code": "    protected ScriptEngine createScriptEngine() {\n        ScriptEngineManager manager = new ScriptEngineManager();\n        return manager.getEngineByName(scriptEngineName);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "compileScript", "code": "    protected void compileScript(Compilable compilable) {\n        try {\n            if (scriptText != null) {\n                compiledScript = compilable.compile(scriptText);\n            } else if (scriptResource != null) {\n                compiledScript = compilable.compile(createScriptReader());\n            }\n        } catch (ScriptException e) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Script compile failed: \" + e, e);\n            }\n            throw createScriptCompileException(e);\n        } catch (IOException e) {\n            throw createScriptCompileException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "IF", "THROW_RAISE", "THROW_RAISE", "IF", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [5, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [14, 16], [5, 17], [8, 18], [9, 19], [17, 20], [18, 21], [19, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 5], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 14], [17, 5], [18, 8], [19, 9], [20, 17], [21, 18], [22, 19], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "evaluateScript", "code": "    protected synchronized Object evaluateScript(Exchange exchange) {\n        try {\n            getScriptContext();\n            populateBindings(getEngine(), exchange);\n            return runScript();\n        } catch (ScriptException e) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Script evaluation failed: \" + e, e);\n            }\n            throw createScriptEvaluationException(e.getCause());\n        } catch (IOException e) {\n            throw createScriptEvaluationException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "RETURN", "THROW_RAISE", "THROW_RAISE", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [4, 8], [5, 9], [1, 10], [1, 11], [6, 12], [7, 13], [8, 14], [10, 15], [13, 16], [8, 17], [17, 18], [18, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 4], [9, 5], [10, 1], [11, 1], [12, 6], [13, 7], [14, 8], [15, 10], [16, 13], [17, 8], [18, 17], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "runScript", "code": "    protected Object runScript() throws ScriptException, IOException {\n        checkInitialised();\n        if (compiledScript != null) {\n            return compiledScript.eval();\n        } else {\n            if (scriptText != null) {\n                return getEngine().eval(scriptText);\n            } else {\n                return getEngine().eval(createScriptReader());", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "IF", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [2, 6], [4, 7], [5, 8], [4, 9], [4, 10], [7, 11], [9, 12], [10, 13], [12, 14], [13, 15], [14, 16], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 2], [7, 4], [8, 5], [9, 4], [10, 4], [11, 7], [12, 9], [13, 10], [14, 12], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "populateBindings", "code": "    protected void populateBindings(ScriptEngine engine, Exchange exchange) {\n        ScriptContext context = engine.getContext();\n        int scope = ScriptContext.ENGINE_SCOPE;\n        context.setAttribute(\"context\", exchange.getContext(), scope);\n        context.setAttribute(\"exchange\", exchange, scope);\n        context.setAttribute(\"request\", exchange.getIn(), scope);\n        context.setAttribute(\"response\", exchange.getOut(), scope);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [5, 10], [6, 11], [6, 12], [7, 13], [8, 14], [8, 15], [2, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 5], [11, 6], [12, 6], [13, 7], [14, 8], [15, 8], [16, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "createScriptReader", "code": "    protected InputStreamReader createScriptReader() throws IOException {\n        return new InputStreamReader(scriptResource.getInputStream());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createScriptCompileException", "code": "    protected ScriptEvaluationException createScriptCompileException(Exception e) {\n        return new ScriptEvaluationException(\"Failed to compile: \" + getScriptDescription() + \". Cause: \" + e, e);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createScriptEvaluationException", "code": "    protected ScriptEvaluationException createScriptEvaluationException(Throwable e) {\n        return new ScriptEvaluationException(\"Failed to evaluate: \" + getScriptDescription() + \". Cause: \" + e, e);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ScriptBuilder", "code": "    public ScriptBuilder(String scriptEngineName) {\n        this.scriptEngineName = scriptEngineName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ScriptBuilder", "code": "    public ScriptBuilder(String scriptEngineName, String scriptText) {\n        this(scriptEngineName);\n        this.scriptText = scriptText;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ScriptBuilder", "code": "    public ScriptBuilder(String scriptEngineName, Resource scriptResource) {\n        this(scriptEngineName);\n        this.scriptResource = scriptResource;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.4-2238", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/util/FactoryFinder.java", "language": "java", "name": "org.apache.camel.util.FactoryFinder", "code": "public class FactoryFinder {\n    private final String path;\n    private final ConcurrentHashMap classMap = new ConcurrentHashMap();\n\n    public FactoryFinder() {\n        this(\"META-INF/services/org/apache/camel/\");\n    }\n\n    public FactoryFinder(String path) {\n        this.path = path;\n    }\n\n    /**\n     * Creates a new instance of the given key\n     *\n     * @param key is the key to add to the path to find a text file containing\n     *            the factory name\n     * @return a newly created instance\n     */\n    public Object newInstance(String key) throws IllegalAccessException, InstantiationException, IOException,\n        ClassNotFoundException {\n        return newInstance(key, (String)null);\n    }\n\n    public Object newInstance(String key, String propertyPrefix) throws IllegalAccessException,\n        InstantiationException, IOException, ClassNotFoundException {\n        Class clazz = findClass(key, propertyPrefix);\n        return clazz.newInstance();\n    }\n\n    public Object newInstance(String key, Injector injector) throws IOException, ClassNotFoundException {\n        return newInstance(key, injector, (String)null);\n    }\n\n    public Object newInstance(String key, Injector injector, String propertyPrefix) throws IOException,\n        ClassNotFoundException {\n        Class type = findClass(key, propertyPrefix);\n        return injector.newInstance(type);\n    }\n\n    public <T> T newInstance(String key, Injector injector, Class<T> expectedType) throws IOException,\n        ClassNotFoundException {\n        return newInstance(key, injector, null, expectedType);\n    }\n\n    public <T> T newInstance(String key, Injector injector, String propertyPrefix, Class<T> expectedType)\n        throws IOException, ClassNotFoundException {\n        Class type = findClass(key, propertyPrefix);\n        Object value = injector.newInstance(type);\n        if (expectedType.isInstance(value)) {\n            return expectedType.cast(value);\n        } else {\n            throw new ClassCastException(\"Not instanceof \" + expectedType.getName() + \" value: \" + value);\n        }\n    }\n\n    public <T> List<T> newInstances(String key, Injector injector, Class<T> type) throws IOException,\n        ClassNotFoundException {\n        List<Class> list = findClasses(key);\n        List<T> answer = new ArrayList<T>(list.size());\n        answer.add(newInstance(key, injector, type));\n        return answer;\n    }\n\n    public Class findClass(String key) throws ClassNotFoundException, IOException {\n        return findClass(key, null);\n    }\n\n    public Class findClass(String key, String propertyPrefix) throws ClassNotFoundException, IOException {\n        if (propertyPrefix == null) {\n            propertyPrefix = \"\";\n        }\n\n        Class clazz = (Class)classMap.get(propertyPrefix + key);\n        if (clazz == null) {\n            clazz = newInstance(doFindFactoryProperties(key), propertyPrefix);\n            classMap.put(propertyPrefix + key, clazz);\n        }\n        return clazz;\n    }\n\n    public List<Class> findClasses(String key) throws ClassNotFoundException, IOException {\n        return findClasses(key, null);\n    }\n\n    public List<Class> findClasses(String key, String propertyPrefix) throws ClassNotFoundException,\n        IOException {\n        Class type = findClass(key, propertyPrefix);\n        return Collections.singletonList(type);\n    }\n\n    public String getPath() {\n        return path;\n    }\n\n    private Class newInstance(Properties properties, String propertyPrefix) throws ClassNotFoundException,\n        IOException {\n\n        String className = properties.getProperty(propertyPrefix + \"class\");\n        if (className == null) {\n            throw new IOException(\"Expected property is missing: \" + propertyPrefix + \"class\");\n        }\n\n        return ObjectHelper.loadClass(className);\n    }\n\n    private Properties doFindFactoryProperties(String key) throws IOException {\n        String uri = path + key;\n\n        InputStream in = ObjectHelper.loadResourceAsStream(uri);\n        if (in == null) {\n            throw new NoFactoryAvailableException(uri);\n        }\n\n        BufferedInputStream reader = null;\n        try {\n            reader = new BufferedInputStream(in);\n            Properties properties = new Properties();\n            properties.load(reader);\n            return properties;\n        } finally {\n            ObjectHelper.close(reader, key, null);\n            ObjectHelper.close(in, key, null);", "functions": [{"function_name": "newInstance", "code": "    public Object newInstance(String key) throws IllegalAccessException, InstantiationException, IOException,\n        ClassNotFoundException {\n        return newInstance(key, (String)null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "newInstance", "code": "    public Object newInstance(String key, String propertyPrefix) throws IllegalAccessException,\n        InstantiationException, IOException, ClassNotFoundException {\n        Class clazz = findClass(key, propertyPrefix);\n        return clazz.newInstance();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "newInstance", "code": "    public Object newInstance(String key, Injector injector) throws IOException, ClassNotFoundException {\n        return newInstance(key, injector, (String)null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "newInstance", "code": "    public Object newInstance(String key, Injector injector, String propertyPrefix) throws IOException,\n        ClassNotFoundException {\n        Class type = findClass(key, propertyPrefix);\n        return injector.newInstance(type);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "newInstance", "code": "    public <T> T newInstance(String key, Injector injector, Class<T> expectedType) throws IOException,\n        ClassNotFoundException {\n        return newInstance(key, injector, null, expectedType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "newInstance", "code": "    public <T> T newInstance(String key, Injector injector, String propertyPrefix, Class<T> expectedType)\n        throws IOException, ClassNotFoundException {\n        Class type = findClass(key, propertyPrefix);\n        Object value = injector.newInstance(type);\n        if (expectedType.isInstance(value)) {\n            return expectedType.cast(value);\n        } else {\n            throw new ClassCastException(\"Not instanceof \" + expectedType.getName() + \" value: \" + value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [9, 13], [10, 14], [13, 15], [15, 16], [16, 17], [16, 18], [18, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 9], [14, 10], [15, 13], [16, 15], [17, 16], [18, 16], [19, 18], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "newInstances", "code": "    public <T> List<T> newInstances(String key, Injector injector, Class<T> type) throws IOException,\n        ClassNotFoundException {\n        List<Class> list = findClasses(key);\n        List<T> answer = new ArrayList<T>(list.size());\n        answer.add(newInstance(key, injector, type));\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [2, 9], [3, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [9, 2], [10, 3], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "findClass", "code": "    public Class findClass(String key) throws ClassNotFoundException, IOException {\n        return findClass(key, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "findClass", "code": "    public Class findClass(String key, String propertyPrefix) throws ClassNotFoundException, IOException {\n        if (propertyPrefix == null) {\n            propertyPrefix = \"\";\n        }\n\n        Class clazz = (Class)classMap.get(propertyPrefix + key);\n        if (clazz == null) {\n            clazz = newInstance(doFindFactoryProperties(key), propertyPrefix);\n            classMap.put(propertyPrefix + key, clazz);\n        }\n        return clazz;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [7, 9], [8, 10], [2, 11], [2, 12], [3, 13], [4, 14], [11, 15], [12, 16], [13, 17], [14, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 7], [10, 8], [11, 2], [12, 2], [13, 3], [14, 4], [15, 11], [16, 12], [17, 13], [18, 14], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "findClasses", "code": "    public List<Class> findClasses(String key) throws ClassNotFoundException, IOException {\n        return findClasses(key, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "findClasses", "code": "    public List<Class> findClasses(String key, String propertyPrefix) throws ClassNotFoundException,\n        IOException {\n        Class type = findClass(key, propertyPrefix);\n        return Collections.singletonList(type);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getPath", "code": "    public String getPath() {\n        return path;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "newInstance", "code": "    private Class newInstance(Properties properties, String propertyPrefix) throws ClassNotFoundException,\n        IOException {\n\n        String className = properties.getProperty(propertyPrefix + \"class\");\n        if (className == null) {\n            throw new IOException(\"Expected property is missing: \" + propertyPrefix + \"class\");\n        }\n\n        return ObjectHelper.loadClass(className);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [3, 10], [8, 11], [10, 12], [11, 13], [12, 14], [13, 15], [13, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 3], [11, 8], [12, 10], [13, 11], [14, 12], [15, 13], [16, 13], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "doFindFactoryProperties", "code": "    private Properties doFindFactoryProperties(String key) throws IOException {\n        String uri = path + key;\n\n        InputStream in = ObjectHelper.loadResourceAsStream(uri);\n        if (in == null) {\n            throw new NoFactoryAvailableException(uri);\n        }\n\n        BufferedInputStream reader = null;\n        try {\n            reader = new BufferedInputStream(in);\n            Properties properties = new Properties();\n            properties.load(reader);\n            return properties;\n        } finally {\n            ObjectHelper.close(reader, key, null);\n            ObjectHelper.close(in, key, null);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "RETURN", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [3, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [9, 16], [4, 17], [5, 18], [10, 19], [11, 20], [8, 21], [13, 22], [15, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 3], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 9], [17, 4], [18, 5], [19, 10], [20, 11], [21, 8], [22, 13], [23, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "FactoryFinder", "code": "    public FactoryFinder() {\n        this(\"META-INF/services/org/apache/camel/\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FactoryFinder", "code": "    public FactoryFinder(String path) {\n        this.path = path;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.7-1093", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.ssh.ScpFromMessage", "code": "public class ScpFromMessage extends AbstractSshMessage {\n\n    private static final int HUNDRED_KILOBYTES = 102400;\n    private static final byte LINE_FEED = 0x0a;\n    private static final int BUFFER_SIZE = 1024;\n\n    private String remoteFile;\n    private File localFile;\n    private boolean isRecursive = false;\n\n    /**\n     * Constructor for ScpFromMessage\n     * @param session the ssh session to use\n     */\n    public ScpFromMessage(Session session) {\n        super(session);\n    }\n\n    /**\n     * Constructor for ScpFromMessage\n     * @param verbose if true do verbose logging\n     * @param session the ssh session to use\n     * @since Ant 1.7\n     */\n    public ScpFromMessage(boolean verbose, Session session) {\n        super(verbose, session);\n    }\n\n    /**\n     * Constructor for ScpFromMessage.\n     * @param verbose if true log extra information\n     * @param session the Scp session to use\n     * @param aRemoteFile the remote file name\n     * @param aLocalFile  the local file\n     * @param recursive   if true use recursion (-r option to scp)\n     * @since Ant 1.6.2\n     */\n    public ScpFromMessage(boolean verbose,\n                          Session session,\n                          String aRemoteFile,\n                          File aLocalFile,\n                          boolean recursive) {\n        super(verbose, session);\n        this.remoteFile = aRemoteFile;\n        this.localFile = aLocalFile;\n        this.isRecursive = recursive;\n    }\n\n    /**\n     * Constructor for ScpFromMessage.\n     * @param session the Scp session to use\n     * @param aRemoteFile the remote file name\n     * @param aLocalFile  the local file\n     * @param recursive   if true use recursion (-r option to scp)\n     */\n    public ScpFromMessage(Session session,\n                           String aRemoteFile,\n                           File aLocalFile,\n                           boolean recursive) {\n        this(false, session, aRemoteFile, aLocalFile, recursive);\n    }\n\n    /**\n     * Carry out the transfer.\n     * @throws IOException on i/o errors\n     * @throws JSchException on errors detected by scp\n     */\n    public void execute() throws IOException, JSchException {\n        String command = \"scp -f \";\n        if (isRecursive) {\n            command += \"-r \";\n        }\n        command += remoteFile;\n        Channel channel = openExecChannel(command);\n        try {\n            OutputStream out = channel.getOutputStream();\n            InputStream in = channel.getInputStream();\n\n            channel.connect();\n\n            sendAck(out);\n            startRemoteCpProtocol(in, out, localFile);\n        } finally {\n            if (channel != null) {\n                channel.disconnect();\n            }\n        }\n        log(\"done\\n\");\n    }\n\n    private void startRemoteCpProtocol(InputStream in,\n                                       OutputStream out,\n                                       File localFile) throws IOException {\n        File startFile = localFile;\n        while (true) {\n            ByteArrayOutputStream stream = new ByteArrayOutputStream();\n            while (true) {\n                int read = in.read();\n                if (read < 0) {\n                    return;\n                }\n                if ((byte) read == LINE_FEED) {\n                    break;\n                }\n                stream.write(read);\n            }\n            String serverResponse = stream.toString(\"UTF-8\");\n            if (serverResponse.charAt(0) == 'C') {\n                parseAndFetchFile(serverResponse, startFile, out, in);\n            } else if (serverResponse.charAt(0) == 'D') {\n                startFile = parseAndCreateDirectory(serverResponse,\n                        startFile);\n                sendAck(out);\n            } else if (serverResponse.charAt(0) == 'E') {\n                startFile = startFile.getParentFile();\n                sendAck(out);\n            } else if (serverResponse.charAt(0) == '\\01'\n                    || serverResponse.charAt(0) == '\\02') {\n                throw new IOException(serverResponse.substring(1));\n            }\n        }\n    }\n\n    private File parseAndCreateDirectory(String serverResponse,\n                                         File localFile) {\n        int start = serverResponse.indexOf(\" \");\n        start = serverResponse.indexOf(\" \", start + 1);\n        String directoryName = serverResponse.substring(start + 1);\n        if (localFile.isDirectory()) {\n            File dir = new File(localFile, directoryName);\n            dir.mkdir();\n            log(\"Creating: \" + dir);\n            return dir;\n        }\n        return null;\n    }\n\n    private void parseAndFetchFile(String serverResponse,\n                                   File localFile,\n                                   OutputStream out,\n                                   InputStream in) throws IOException {\n        int start = 0;\n        int end = serverResponse.indexOf(\" \", start + 1);\n        start = end + 1;\n        end = serverResponse.indexOf(\" \", start + 1);\n        long filesize = Long.parseLong(serverResponse.substring(start, end));\n        String filename = serverResponse.substring(end + 1);\n        log(\"Receiving: \" + filename + \" : \" + filesize);\n        File transferFile = (localFile.isDirectory())\n                ? new File(localFile, filename)\n                : localFile;\n        fetchFile(transferFile, filesize, out, in);\n        waitForAck(in);\n        sendAck(out);\n    }\n\n    private void fetchFile(File localFile,\n                            long filesize,\n                            OutputStream out,\n                            InputStream in) throws IOException {\n        byte[] buf = new byte[BUFFER_SIZE];\n        sendAck(out);\n\n        FileOutputStream fos = new FileOutputStream(localFile);\n        int length;\n        long totalLength = 0;\n        long startTime = System.currentTimeMillis();\n\n        boolean trackProgress = getVerbose() && filesize > HUNDRED_KILOBYTES;\n        long initFilesize = filesize;\n        int percentTransmitted = 0;\n\n        try {\n            while (true) {\n                length = in.read(buf, 0,\n                                 (BUFFER_SIZE < filesize) ? BUFFER_SIZE\n                                                          : (int) filesize);\n                if (length < 0) {\n                    throw new EOFException(\"Unexpected end of stream.\");\n                }\n                fos.write(buf, 0, length);\n                filesize -= length;\n                totalLength += length;\n                if (filesize == 0) {\n                    break;\n                }\n\n                if (trackProgress) {\n                    percentTransmitted = trackProgress(initFilesize,\n                                                       totalLength,\n                                                       percentTransmitted);\n                }\n            }\n        } finally {\n            long endTime = System.currentTimeMillis();\n            logStats(startTime, endTime, totalLength);\n            fos.flush();\n            fos.close();", "functions": [{"function_name": "execute", "code": "    public void execute() throws IOException, JSchException {\n        String command = \"scp -f \";\n        if (isRecursive) {\n            command += \"-r \";\n        }\n        command += remoteFile;\n        Channel channel = openExecChannel(command);\n        try {\n            OutputStream out = channel.getOutputStream();\n            InputStream in = channel.getInputStream();\n\n            channel.connect();\n\n            sendAck(out);\n            startRemoteCpProtocol(in, out, localFile);\n        } finally {\n            if (channel != null) {\n                channel.disconnect();\n            }\n        }\n        log(\"done\\n\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [0, 9], [5, 10], [6, 11], [1, 12], [1, 13], [1, 14], [2, 15], [4, 16], [11, 17], [7, 18], [8, 19], [3, 20], [6, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 0], [10, 5], [11, 6], [12, 1], [13, 1], [14, 1], [15, 2], [16, 4], [17, 11], [18, 7], [19, 8], [20, 3], [21, 6], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "startRemoteCpProtocol", "code": "    private void startRemoteCpProtocol(InputStream in,\n                                       OutputStream out,\n                                       File localFile) throws IOException {\n        File startFile = localFile;\n        while (true) {\n            ByteArrayOutputStream stream = new ByteArrayOutputStream();\n            while (true) {\n                int read = in.read();\n                if (read < 0) {\n                    return;\n                }\n                if ((byte) read == LINE_FEED) {\n                    break;\n                }\n                stream.write(read);\n            }\n            String serverResponse = stream.toString(\"UTF-8\");\n            if (serverResponse.charAt(0) == 'C') {\n                parseAndFetchFile(serverResponse, startFile, out, in);\n            } else if (serverResponse.charAt(0) == 'D') {\n                startFile = parseAndCreateDirectory(serverResponse,\n                        startFile);\n                sendAck(out);\n            } else if (serverResponse.charAt(0) == 'E') {\n                startFile = startFile.getParentFile();\n                sendAck(out);\n            } else if (serverResponse.charAt(0) == '\\01'\n                    || serverResponse.charAt(0) == '\\02') {\n                throw new IOException(serverResponse.substring(1));", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "RETURN", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [7, 12], [9, 13], [11, 14], [11, 15], [12, 16], [12, 17], [8, 18], [9, 19], [9, 20], [9, 21], [10, 22], [14, 23], [14, 24], [15, 25], [15, 26], [7, 27], [17, 28], [18, 29], [9, 30], [19, 31], [20, 32], [23, 33], [24, 34], [24, 35], [11, 36], [11, 37], [26, 38], [19, 39], [20, 40], [32, 41], [21, 42], [23, 43], [33, 44], [33, 45], [14, 46], [14, 47], [35, 48], [37, 49], [43, 50], [44, 51], [44, 52], [45, 53], [45, 54], [47, 55], [50, 56], [52, 57], [54, 58], [56, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 7], [13, 9], [14, 11], [15, 11], [16, 12], [17, 12], [18, 8], [19, 9], [20, 9], [21, 9], [22, 10], [23, 14], [24, 14], [25, 15], [26, 15], [27, 7], [28, 17], [29, 18], [30, 9], [31, 19], [32, 20], [33, 23], [34, 24], [35, 24], [36, 11], [37, 11], [38, 26], [39, 19], [40, 20], [41, 32], [42, 21], [43, 23], [44, 33], [45, 33], [46, 14], [47, 14], [48, 35], [49, 37], [50, 43], [51, 44], [52, 44], [53, 45], [54, 45], [55, 47], [56, 50], [57, 52], [58, 54], [59, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "parseAndCreateDirectory", "code": "    private File parseAndCreateDirectory(String serverResponse,\n                                         File localFile) {\n        int start = serverResponse.indexOf(\" \");\n        start = serverResponse.indexOf(\" \", start + 1);\n        String directoryName = serverResponse.substring(start + 1);\n        if (localFile.isDirectory()) {\n            File dir = new File(localFile, directoryName);\n            dir.mkdir();\n            log(\"Creating: \" + dir);\n            return dir;\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [0, 9], [2, 10], [2, 11], [3, 12], [9, 13], [4, 14], [2, 15], [2, 16], [12, 17], [13, 18], [13, 19], [14, 20], [15, 21], [11, 22], [17, 23], [18, 24], [21, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 0], [10, 2], [11, 2], [12, 3], [13, 9], [14, 4], [15, 2], [16, 2], [17, 12], [18, 13], [19, 13], [20, 14], [21, 15], [22, 11], [23, 17], [24, 18], [25, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "parseAndFetchFile", "code": "    private void parseAndFetchFile(String serverResponse,\n                                   File localFile,\n                                   OutputStream out,\n                                   InputStream in) throws IOException {\n        int start = 0;\n        int end = serverResponse.indexOf(\" \", start + 1);\n        start = end + 1;\n        end = serverResponse.indexOf(\" \", start + 1);\n        long filesize = Long.parseLong(serverResponse.substring(start, end));\n        String filename = serverResponse.substring(end + 1);\n        log(\"Receiving: \" + filename + \" : \" + filesize);\n        File transferFile = (localFile.isDirectory())\n                ? new File(localFile, filename)\n                : localFile;\n        fetchFile(transferFile, filesize, out, in);\n        waitForAck(in);\n        sendAck(out);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "COND_EXPR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [13, 17], [2, 18], [3, 19], [14, 20], [15, 21], [4, 22], [5, 23], [16, 24], [16, 25], [17, 26], [18, 27], [19, 28], [20, 29], [20, 30], [21, 31], [22, 32], [22, 33], [26, 34], [26, 35], [27, 36], [29, 37], [32, 38], [35, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 13], [18, 2], [19, 3], [20, 14], [21, 15], [22, 4], [23, 5], [24, 16], [25, 16], [26, 17], [27, 18], [28, 19], [29, 20], [30, 20], [31, 21], [32, 22], [33, 22], [34, 26], [35, 26], [36, 27], [37, 29], [38, 32], [39, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "fetchFile", "code": "    private void fetchFile(File localFile,\n                            long filesize,\n                            OutputStream out,\n                            InputStream in) throws IOException {\n        byte[] buf = new byte[BUFFER_SIZE];\n        sendAck(out);\n\n        FileOutputStream fos = new FileOutputStream(localFile);\n        int length;\n        long totalLength = 0;\n        long startTime = System.currentTimeMillis();\n\n        boolean trackProgress = getVerbose() && filesize > HUNDRED_KILOBYTES;\n        long initFilesize = filesize;\n        int percentTransmitted = 0;\n\n        try {\n            while (true) {\n                length = in.read(buf, 0,\n                                 (BUFFER_SIZE < filesize) ? BUFFER_SIZE\n                                                          : (int) filesize);\n                if (length < 0) {\n                    throw new EOFException(\"Unexpected end of stream.\");\n                }\n                fos.write(buf, 0, length);\n                filesize -= length;\n                totalLength += length;\n                if (filesize == 0) {\n                    break;\n                }\n\n                if (trackProgress) {\n                    percentTransmitted = trackProgress(initFilesize,\n                                                       totalLength,\n                                                       percentTransmitted);\n                }\n            }\n        } finally {\n            long endTime = System.currentTimeMillis();\n            logStats(startTime, endTime, totalLength);\n            fos.flush();\n            fos.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "VAR_DECL", "LOOP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [1, 15], [0, 16], [1, 17], [1, 18], [1, 19], [15, 20], [2, 21], [4, 22], [5, 23], [6, 24], [8, 25], [14, 26], [15, 27], [15, 28], [15, 29], [22, 30], [22, 31], [28, 32], [15, 33], [15, 34], [15, 35], [29, 36], [15, 37], [28, 38], [32, 39], [35, 40], [29, 41], [36, 42], [37, 43], [27, 44], [41, 45], [43, 46], [43, 47], [44, 48], [45, 49], [46, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 1], [16, 0], [17, 1], [18, 1], [19, 1], [20, 15], [21, 2], [22, 4], [23, 5], [24, 6], [25, 8], [26, 14], [27, 15], [28, 15], [29, 15], [30, 22], [31, 22], [32, 28], [33, 15], [34, 15], [35, 15], [36, 29], [37, 15], [38, 28], [39, 32], [40, 35], [41, 29], [42, 36], [43, 37], [44, 27], [45, 41], [46, 43], [47, 43], [48, 44], [49, 45], [50, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "ScpFromMessage", "code": "    public ScpFromMessage(Session session) {\n        super(session);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ScpFromMessage", "code": "    public ScpFromMessage(boolean verbose, Session session) {\n        super(verbose, session);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ScpFromMessage", "code": "    public ScpFromMessage(boolean verbose,\n                          Session session,\n                          String aRemoteFile,\n                          File aLocalFile,\n                          boolean recursive) {\n        super(verbose, session);\n        this.remoteFile = aRemoteFile;\n        this.localFile = aLocalFile;\n        this.isRecursive = recursive;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "ScpFromMessage", "code": "    public ScpFromMessage(Session session,\n                           String aRemoteFile,\n                           File aLocalFile,\n                           boolean recursive) {\n        this(false, session, aRemoteFile, aLocalFile, recursive);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "jedit-4.1-4136", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/options/ContextOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.ContextOptionPane", "code": "public class ContextOptionPane extends AbstractOptionPane\n{\n\tpublic ContextOptionPane()\n\t{\n\t\tsuper(\"context\");\n\t}\n\n\t// protected members\n\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\n\t\tJLabel caption = new JLabel(jEdit.getProperty(\n\t\t\t\"options.context.caption\"));\n\t\tadd(BorderLayout.NORTH,caption);\n\n\t\tString contextMenu = jEdit.getProperty(\"view.context\");\n\t\tStringTokenizer st = new StringTokenizer(contextMenu);\n\t\tlistModel = new DefaultListModel();\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString actionName = (String)st.nextToken();\n\t\t\tif(actionName.equals(\"-\"))\n\t\t\t\tlistModel.addElement(new ContextOptionPane.MenuItem(\"-\",\"-\"));\n\t\t\telse\n\t\t\t{\n\t\t\t\tEditAction action = jEdit.getAction(actionName);\n\t\t\t\tif(action == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tString label = action.getLabel();\n\t\t\t\tif(label == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tlistModel.addElement(new ContextOptionPane.MenuItem(actionName,label));\n\t\t\t}\n\t\t}\n\t\tlist = new JList(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.addListSelectionListener(new ListHandler());\n\n\t\tadd(BorderLayout.CENTER,new JScrollPane(list));\n\n\t\tJPanel buttons = new JPanel();\n\t\tbuttons.setBorder(new EmptyBorder(3,0,0,0));\n\t\tbuttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tadd = new RolloverButton(GUIUtilities.loadIcon(\"Plus.png\"));\n\t\tadd.setToolTipText(jEdit.getProperty(\"options.context.add\"));\n\t\tadd.addActionListener(actionHandler);\n\t\tbuttons.add(add);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tremove = new RolloverButton(GUIUtilities.loadIcon(\"Minus.png\"));\n\t\tremove.setToolTipText(jEdit.getProperty(\"options.context.remove\"));\n\t\tremove.addActionListener(actionHandler);\n\t\tbuttons.add(remove);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveUp = new RolloverButton(GUIUtilities.loadIcon(\"ArrowU.png\"));\n\t\tmoveUp.setToolTipText(jEdit.getProperty(\"options.context.moveUp\"));\n\t\tmoveUp.addActionListener(actionHandler);\n\t\tbuttons.add(moveUp);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveDown = new RolloverButton(GUIUtilities.loadIcon(\"ArrowD.png\"));\n\t\tmoveDown.setToolTipText(jEdit.getProperty(\"options.context.moveDown\"));\n\t\tmoveDown.addActionListener(actionHandler);\n\t\tbuttons.add(moveDown);\n\t\tbuttons.add(Box.createGlue());\n\n\t\tupdateButtons();\n\t\tadd(BorderLayout.SOUTH,buttons);\n\t}\n\n\tstatic class MenuItemCompare implements MiscUtilities.Compare\n\t{\n\t\tpublic int compare(Object obj1, Object obj2)\n\t\t{\n\t\t\treturn MiscUtilities.compareStrings(\n\t\t\t\t((MenuItem)obj1).label,\n\t\t\t\t((MenuItem)obj2).label,\n\t\t\t\ttrue);\n\t\t}\n\t}\n\n\tprotected void _save()\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor(int i = 0; i < listModel.getSize(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(' ');\n\t\t\tbuf.append(((MenuItem)listModel.elementAt(i)).actionName);\n\t\t}\n\t\tjEdit.setProperty(\"view.context\",buf.toString());\n\t}\n\n\t// private members\n\tprivate DefaultListModel listModel;\n\tprivate JList list;\n\tprivate JButton add;\n\tprivate JButton remove;\n\tprivate JButton moveUp, moveDown;\n\n\tprivate void updateButtons()\n\t{\n\t\tint index = list.getSelectedIndex();\n\t\tremove.setEnabled(index != -1 && listModel.getSize() != 0);\n\t\tmoveUp.setEnabled(index > 0);\n\t\tmoveDown.setEnabled(index != -1 && index != listModel.getSize() - 1);\n\t}\n\n\tstatic class MenuItem\n\t{\n\t\tString actionName;\n\t\tString label;\n\n\t\tMenuItem(String actionName, String label)\n\t\t{\n\t\t\tthis.actionName = actionName;\n\t\t\tthis.label = GUIUtilities.prettifyMenuLabel(label);\n\t\t}\n\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn label;\n\t\t}\n\t}\n\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\n\t\t\tif(source == add)\n\t\t\t{\n\t\t\t\tContextAddDialog dialog = new ContextAddDialog(\n\t\t\t\t\tContextOptionPane.this);\n\t\t\t\tString selection = dialog.getSelection();\n\t\t\t\tif(selection == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tif(index == -1)\n\t\t\t\t\tindex = listModel.getSize();\n\t\t\t\telse\n\t\t\t\t\tindex++;\n\n\t\t\t\tMenuItem menuItem;\n\t\t\t\tif(selection.equals(\"-\"))\n\t\t\t\t\tmenuItem = new ContextOptionPane.MenuItem(\"-\",\"-\");\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmenuItem = new ContextOptionPane.MenuItem(selection,\n\t\t\t\t\t\tjEdit.getAction(selection)\n\t\t\t\t\t\t.getLabel());\n\t\t\t\t}\n\n\t\t\t\tlistModel.insertElementAt(menuItem,index);\n\t\t\t\tlist.setSelectedIndex(index);\n\t\t\t\tlist.ensureIndexIsVisible(index);\n\t\t\t}\n\t\t\telse if(source == remove)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tupdateButtons();\n\t\t\t}\n\t\t\telse if(source == moveUp)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tObject selected = list.getSelectedValue();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tlistModel.insertElementAt(selected,index-1);\n\t\t\t\tlist.setSelectedIndex(index-1);\n\t\t\t\tlist.ensureIndexIsVisible(index - 1);\n\t\t\t}\n\t\t\telse if(source == moveDown)\n\t\t\t{\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tObject selected = list.getSelectedValue();\n\t\t\t\tlistModel.removeElementAt(index);\n\t\t\t\tlistModel.insertElementAt(selected,index+1);\n\t\t\t\tlist.setSelectedIndex(index+1);\n\t\t\t\tlist.ensureIndexIsVisible(index+1);\n\t\t\t}\n\t\t}\n\t}\n\n\tclass ListHandler implements ListSelectionListener\n\t{\n\t\tpublic void valueChanged(ListSelectionEvent evt)\n\t\t{\n\t\t\tupdateButtons();", "functions": [{"function_name": "_init", "code": "\tprotected void _init()\n\t{\n\t\tsetLayout(new BorderLayout());\n\n\t\tJLabel caption = new JLabel(jEdit.getProperty(\n\t\t\t\"options.context.caption\"));\n\t\tadd(BorderLayout.NORTH,caption);\n\n\t\tString contextMenu = jEdit.getProperty(\"view.context\");\n\t\tStringTokenizer st = new StringTokenizer(contextMenu);\n\t\tlistModel = new DefaultListModel();\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString actionName = (String)st.nextToken();\n\t\t\tif(actionName.equals(\"-\"))\n\t\t\t\tlistModel.addElement(new ContextOptionPane.MenuItem(\"-\",\"-\"));\n\t\t\telse\n\t\t\t{\n\t\t\t\tEditAction action = jEdit.getAction(actionName);\n\t\t\t\tif(action == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tString label = action.getLabel();\n\t\t\t\tif(label == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tlistModel.addElement(new ContextOptionPane.MenuItem(actionName,label));\n\t\t\t}\n\t\t}\n\t\tlist = new JList(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.addListSelectionListener(new ListHandler());\n\n\t\tadd(BorderLayout.CENTER,new JScrollPane(list));\n\n\t\tJPanel buttons = new JPanel();\n\t\tbuttons.setBorder(new EmptyBorder(3,0,0,0));\n\t\tbuttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tadd = new RolloverButton(GUIUtilities.loadIcon(\"Plus.png\"));\n\t\tadd.setToolTipText(jEdit.getProperty(\"options.context.add\"));\n\t\tadd.addActionListener(actionHandler);\n\t\tbuttons.add(add);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tremove = new RolloverButton(GUIUtilities.loadIcon(\"Minus.png\"));\n\t\tremove.setToolTipText(jEdit.getProperty(\"options.context.remove\"));\n\t\tremove.addActionListener(actionHandler);\n\t\tbuttons.add(remove);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveUp = new RolloverButton(GUIUtilities.loadIcon(\"ArrowU.png\"));\n\t\tmoveUp.setToolTipText(jEdit.getProperty(\"options.context.moveUp\"));\n\t\tmoveUp.addActionListener(actionHandler);\n\t\tbuttons.add(moveUp);\n\t\tbuttons.add(Box.createHorizontalStrut(6));\n\t\tmoveDown = new RolloverButton(GUIUtilities.loadIcon(\"ArrowD.png\"));\n\t\tmoveDown.setToolTipText(jEdit.getProperty(\"options.context.moveDown\"));\n\t\tmoveDown.addActionListener(actionHandler);\n\t\tbuttons.add(moveDown);\n\t\tbuttons.add(Box.createGlue());\n\n\t\tupdateButtons();\n\t\tadd(BorderLayout.SOUTH,buttons);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [3, 35], [0, 36], [0, 37], [0, 38], [9, 39], [12, 40], [13, 41], [14, 42], [17, 43], [18, 44], [19, 45], [22, 46], [23, 47], [24, 48], [27, 49], [28, 50], [1, 51], [29, 52], [30, 53], [2, 54], [31, 55], [32, 56], [34, 57], [3, 58], [3, 59], [36, 60], [4, 61], [5, 62], [6, 63], [38, 64], [40, 65], [41, 66], [42, 67], [43, 68], [44, 69], [45, 70], [46, 71], [47, 72], [48, 73], [49, 74], [50, 75], [53, 76], [53, 77], [53, 78], [53, 79], [58, 80], [62, 81], [63, 82], [66, 83], [69, 84], [72, 85], [75, 86], [58, 87], [58, 88], [58, 89], [58, 90], [58, 91], [80, 92], [82, 93], [58, 94], [87, 95], [87, 96], [89, 97], [89, 98], [91, 99], [59, 100], [94, 101], [96, 102], [88, 103], [98, 104], [90, 105], [99, 106], [99, 107], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 3], [36, 0], [37, 0], [38, 0], [39, 9], [40, 12], [41, 13], [42, 14], [43, 17], [44, 18], [45, 19], [46, 22], [47, 23], [48, 24], [49, 27], [50, 28], [51, 1], [52, 29], [53, 30], [54, 2], [55, 31], [56, 32], [57, 34], [58, 3], [59, 3], [60, 36], [61, 4], [62, 5], [63, 6], [64, 38], [65, 40], [66, 41], [67, 42], [68, 43], [69, 44], [70, 45], [71, 46], [72, 47], [73, 48], [74, 49], [75, 50], [76, 53], [77, 53], [78, 53], [79, 53], [80, 58], [81, 62], [82, 63], [83, 66], [84, 69], [85, 72], [86, 75], [87, 58], [88, 58], [89, 58], [90, 58], [91, 58], [92, 80], [93, 82], [94, 58], [95, 87], [96, 87], [97, 89], [98, 89], [99, 91], [100, 59], [101, 94], [102, 96], [103, 88], [104, 98], [105, 90], [106, 99], [107, 99], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107]]}, {"function_name": "_save", "code": "\tprotected void _save()\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor(int i = 0; i < listModel.getSize(); i++)\n\t\t{\n\t\t\tif(i != 0)\n\t\t\t\tbuf.append(' ');\n\t\t\tbuf.append(((MenuItem)listModel.elementAt(i)).actionName);\n\t\t}\n\t\tjEdit.setProperty(\"view.context\",buf.toString());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [3, 6], [1, 7], [4, 8], [2, 9], [1, 10], [7, 11], [1, 12], [7, 13], [11, 14], [10, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 3], [7, 1], [8, 4], [9, 2], [10, 1], [11, 7], [12, 1], [13, 7], [14, 11], [15, 10], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "updateButtons", "code": "\tprivate void updateButtons()\n\t{\n\t\tint index = list.getSelectedIndex();\n\t\tremove.setEnabled(index != -1 && listModel.getSize() != 0);\n\t\tmoveUp.setEnabled(index > 0);\n\t\tmoveDown.setEnabled(index != -1 && index != listModel.getSize() - 1);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [1, 8], [5, 9], [5, 10], [6, 11], [7, 12], [7, 13], [9, 14], [10, 15], [12, 16], [12, 17], [13, 18], [14, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 1], [9, 5], [10, 5], [11, 6], [12, 7], [13, 7], [14, 9], [15, 10], [16, 12], [17, 12], [18, 13], [19, 14], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "ContextOptionPane", "code": "\tpublic ContextOptionPane()\n\t{\n\t\tsuper(\"context\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.7-8531", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/utils/res/StringArrayWrapper.java", "language": "java", "name": "org.apache.xml.utils.res.StringArrayWrapper", "code": "public class StringArrayWrapper {\n    private String[] m_string;\n    \n    public StringArrayWrapper(String[] arg){\n        m_string = arg;\n    }\n    \n    public String getString(int index){\n        return m_string[index];\n    }\n    \n    public int getLength(){\n        return m_string.length;", "functions": [{"function_name": "getString", "code": "    public String getString(int index){\n        return m_string[index];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLength", "code": "    public int getLength(){\n        return m_string.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "StringArrayWrapper", "code": "    public StringArrayWrapper(String[] arg){\n        m_string = arg;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.7-1099", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/unix/Chgrp.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.unix.Chgrp", "code": "public class Chgrp extends AbstractAccessTask {\n\n    private boolean haveGroup = false;\n\n    /**\n     * Chgrp task for setting unix group of a file.\n     */\n    public Chgrp() {\n        super.setExecutable(\"chgrp\");\n    }\n\n    /**\n     * Set the group atribute.\n     *\n     * @param group    The new group for the file(s) or directory(ies)\n     */\n    public void setGroup(String group) {\n        createArg().setValue(group);\n        haveGroup = true;\n    }\n\n    /**\n     * Ensure that all the required arguments and other conditions have\n     * been set.\n     */\n    protected void checkConfiguration() {\n        if (!haveGroup) {\n            throw new BuildException(\"Required attribute group not set in \"\n                                     + \"chgrp\", getLocation());\n        }\n        super.checkConfiguration();\n    }\n\n    /**\n     * We don't want to expose the executable atribute, so overide it.\n     *\n     * @param e User supplied executable that we won't accept.\n     */\n    public void setExecutable(String e) {\n        throw new BuildException(getTaskType()\n                                 + \" doesn\\'t support the executable\"\n                                 + \" attribute\", getLocation());", "functions": [{"function_name": "setGroup", "code": "    public void setGroup(String group) {\n        createArg().setValue(group);\n        haveGroup = true;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "checkConfiguration", "code": "    protected void checkConfiguration() {\n        if (!haveGroup) {\n            throw new BuildException(\"Required attribute group not set in \"\n                                     + \"chgrp\", getLocation());\n        }\n        super.checkConfiguration();", "ast_nodes": ["FUNC_DECL", "IF", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setExecutable", "code": "    public void setExecutable(String e) {\n        throw new BuildException(getTaskType()\n                                 + \" doesn\\'t support the executable\"\n                                 + \" attribute\", getLocation());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "Chgrp", "code": "    public Chgrp() {\n        super.setExecutable(\"chgrp\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.0-1507", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/component/rmi/RmiEndpoint.java", "language": "java", "name": "org.apache.camel.component.rmi.RmiEndpoint", "code": "public class RmiEndpoint extends DefaultEndpoint<PojoExchange> {\n\n\tprivate List<Class> remoteInterfaces;\n\tprivate ClassLoader classLoader;\n\tprivate URI uri;\n\tprivate int port;\n\n\tprotected RmiEndpoint(String endpointUri, RmiComponent component) throws URISyntaxException {\n\t\tsuper(endpointUri, component);\n\t\tthis.uri = new URI(endpointUri);\n\t}\n\n\tpublic boolean isSingleton() {\n\t\treturn false;\n\t}\n\n\tpublic PojoExchange createExchange() {\n\t\treturn new PojoExchange(getContext());\n\t}\n\n\tpublic Consumer<PojoExchange> createConsumer(Processor processor) throws Exception {\n\t\tif( remoteInterfaces == null || remoteInterfaces.size()==0 )\n\t\t\tthrow new RuntimeCamelException(\"To create an RMI consumer, the RMI endpoint's remoteInterfaces property must be be configured.\");\n\t\treturn new RmiConsumer(this, processor);\n\t}\n\n\tpublic Producer<PojoExchange> createProducer() throws Exception {\n\t\treturn new RmiProducer(this);\n\t}\n\n\tpublic String getName() {\n\t\tString path = uri.getPath();\n\t\tif( path == null )\n\t\t\tpath = uri.getSchemeSpecificPart();\n\t\treturn path;\n\t}\n\n\tpublic Registry getRegistry() throws RemoteException {\n\t\tif( uri.getHost()!=null ) {\n\t\t\tif( uri.getPort() == -1 ) {\n\t\t\t\treturn LocateRegistry.getRegistry(uri.getHost());\n\t\t\t} else {\n\t\t\t\treturn LocateRegistry.getRegistry(uri.getHost(), uri.getPort());\t\t\t\t\n\t\t\t}\n\t\t} else {\n\t\t\treturn LocateRegistry.getRegistry();\n\t\t}\n\t}\n\n\tpublic List<Class> getRemoteInterfaces() {\n\t\treturn remoteInterfaces;\n\t}\n\n\tpublic void setRemoteInterfaces(List<Class> remoteInterfaces) {\n\t\tthis.remoteInterfaces = remoteInterfaces;\n\t\tif( classLoader== null && !remoteInterfaces.isEmpty() ) {\n\t\t\tclassLoader = remoteInterfaces.get(0).getClassLoader();\n\t\t}\n\t}\n\tpublic void setRemoteInterfaces(Class... remoteInterfaces) {\n\t\tsetRemoteInterfaces(Arrays.asList(remoteInterfaces));\t\t\n\t}\n\n\tpublic ClassLoader getClassLoader() {\n\t\treturn classLoader;\n\t}\n\tpublic void setClassLoader(ClassLoader classLoader) {\n\t\tthis.classLoader = classLoader;\n\t}\n\n\tpublic int getPort() {\n\t\treturn port;\n\t}\n\n\tpublic void setPort(int port) {\n\t\tthis.port = port;", "functions": [{"function_name": "isSingleton", "code": "\tpublic boolean isSingleton() {\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExchange", "code": "\tpublic PojoExchange createExchange() {\n\t\treturn new PojoExchange(getContext());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createConsumer", "code": "\tpublic Consumer<PojoExchange> createConsumer(Processor processor) throws Exception {\n\t\tif( remoteInterfaces == null || remoteInterfaces.size()==0 )\n\t\t\tthrow new RuntimeCamelException(\"To create an RMI consumer, the RMI endpoint's remoteInterfaces property must be be configured.\");\n\t\treturn new RmiConsumer(this, processor);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [6, 9], [7, 10], [8, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 6], [10, 7], [11, 8], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createProducer", "code": "\tpublic Producer<PojoExchange> createProducer() throws Exception {\n\t\treturn new RmiProducer(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "\tpublic String getName() {\n\t\tString path = uri.getPath();\n\t\tif( path == null )\n\t\t\tpath = uri.getSchemeSpecificPart();\n\t\treturn path;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [3, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 3], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getRegistry", "code": "\tpublic Registry getRegistry() throws RemoteException {\n\t\tif( uri.getHost()!=null ) {\n\t\t\tif( uri.getPort() == -1 ) {\n\t\t\t\treturn LocateRegistry.getRegistry(uri.getHost());\n\t\t\t} else {\n\t\t\t\treturn LocateRegistry.getRegistry(uri.getHost(), uri.getPort());\t\t\t\t\n\t\t\t}\n\t\t} else {\n\t\t\treturn LocateRegistry.getRegistry();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [3, 7], [4, 8], [4, 9], [4, 10], [8, 11], [8, 12], [9, 13], [10, 14], [13, 15], [13, 16], [14, 17], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 3], [8, 4], [9, 4], [10, 4], [11, 8], [12, 8], [13, 9], [14, 10], [15, 13], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getRemoteInterfaces", "code": "\tpublic List<Class> getRemoteInterfaces() {\n\t\treturn remoteInterfaces;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRemoteInterfaces", "code": "\tpublic void setRemoteInterfaces(List<Class> remoteInterfaces) {\n\t\tthis.remoteInterfaces = remoteInterfaces;\n\t\tif( classLoader== null && !remoteInterfaces.isEmpty() ) {\n\t\t\tclassLoader = remoteInterfaces.get(0).getClassLoader();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [3, 6], [1, 7], [6, 8], [7, 9], [9, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 3], [7, 1], [8, 6], [9, 7], [10, 9], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setRemoteInterfaces", "code": "\tpublic void setRemoteInterfaces(Class... remoteInterfaces) {\n\t\tsetRemoteInterfaces(Arrays.asList(remoteInterfaces));\t\t", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getClassLoader", "code": "\tpublic ClassLoader getClassLoader() {\n\t\treturn classLoader;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setClassLoader", "code": "\tpublic void setClassLoader(ClassLoader classLoader) {\n\t\tthis.classLoader = classLoader;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPort", "code": "\tpublic int getPort() {\n\t\treturn port;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPort", "code": "\tpublic void setPort(int port) {\n\t\tthis.port = port;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RmiEndpoint", "code": "\tprotected RmiEndpoint(String endpointUri, RmiComponent component) throws URISyntaxException {\n\t\tsuper(endpointUri, component);\n\t\tthis.uri = new URI(endpointUri);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.4-2235", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/dataset/DataSet.java", "language": "java", "name": "org.apache.camel.component.dataset.DataSet", "code": "public interface DataSet {\n\n    String INDEX_HEADER = \"camelDataSetIndex\";\n\n    /**\n     * Populates a message exchange when using the DataSet as a source of messages\n     *\n     * @param exchange\n     */\n    void populateMessage(Exchange exchange, long messageIndex) throws Exception;\n\n    /**\n     * Returns the size of the dataset\n     */\n    long getSize();\n\n    /**\n     * Asserts that the expected message has been received for the given index\n     */\n    void assertMessageExpected(DataSetEndpoint dataSetEndpoint, Exchange expected, Exchange actual, long index) throws Exception;\n\n    /**\n     * Returns the number of messages which should be received before reporting on the progress of the test\n     */\n    long getReportCount();", "functions": [{"function_name": "populateMessage", "code": "    void populateMessage(Exchange exchange, long messageIndex) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSize", "code": "    long getSize();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "assertMessageExpected", "code": "    void assertMessageExpected(DataSetEndpoint dataSetEndpoint, Exchange expected, Exchange actual, long index) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getReportCount", "code": "    long getReportCount();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.7-8200", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/res/XMLErrorResources_zh_CN.java", "language": "java", "name": "org.apache.xml.res.XMLErrorResources_zh_CN", "code": "public class XMLErrorResources_zh_CN extends ListResourceBundle\n{\n\n/*\n * This file contains error and warning messages related to Xalan Error\n * Handling.\n *\n *  General notes to translators:\n *\n *  1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of\n *     components.\n *     XSLT is an acronym for \"XML Stylesheet Language: Transformations\".\n *     XSLTC is an acronym for XSLT Compiler.\n *\n *  2) A stylesheet is a description of how to transform an input XML document\n *     into a resultant XML document (or HTML document or text).  The\n *     stylesheet itself is described in the form of an XML document.\n *\n *  3) A template is a component of a stylesheet that is used to match a\n *     particular portion of an input document and specifies the form of the\n *     corresponding portion of the output document.\n *\n *  4) An element is a mark-up tag in an XML document; an attribute is a\n *     modifier on the tag.  For example, in <elem attr='val' attr2='val2'>\n *     \"elem\" is an element name, \"attr\" and \"attr2\" are attribute names with\n *     the values \"val\" and \"val2\", respectively.\n *\n *  5) A namespace declaration is a special attribute that is used to associate\n *     a prefix with a URI (the namespace).  The meanings of element names and\n *     attribute names that use that prefix are defined with respect to that\n *     namespace.\n *\n *  6) \"Translet\" is an invented term that describes the class file that\n *     results from compiling an XML stylesheet into a Java class.\n *\n *  7) XPath is a specification that describes a notation for identifying\n *     nodes in a tree-structured representation of an XML document.  An\n *     instance of that notation is referred to as an XPath expression.\n *\n */\n\n  /** Maximum error messages, this is needed to keep track of the number of messages.    */\n  public static final int MAX_CODE = 61;\n\n  /** Maximum warnings, this is needed to keep track of the number of warnings.          */\n  public static final int MAX_WARNING = 0;\n\n  /** Maximum misc strings.   */\n  public static final int MAX_OTHERS = 4;\n\n  /** Maximum total warnings and error messages.          */\n  public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;\n\n\n  /*\n   * Message keys\n   */\n  public static final String ER_FUNCTION_NOT_SUPPORTED = \"ER_FUNCTION_NOT_SUPPORTED\";\n  public static final String ER_CANNOT_OVERWRITE_CAUSE = \"ER_CANNOT_OVERWRITE_CAUSE\";\n  public static final String ER_NO_DEFAULT_IMPL = \"ER_NO_DEFAULT_IMPL\";\n  public static final String ER_CHUNKEDINTARRAY_NOT_SUPPORTED = \"ER_CHUNKEDINTARRAY_NOT_SUPPORTED\";\n  public static final String ER_OFFSET_BIGGER_THAN_SLOT = \"ER_OFFSET_BIGGER_THAN_SLOT\";\n  public static final String ER_COROUTINE_NOT_AVAIL = \"ER_COROUTINE_NOT_AVAIL\";\n  public static final String ER_COROUTINE_CO_EXIT = \"ER_COROUTINE_CO_EXIT\";\n  public static final String ER_COJOINROUTINESET_FAILED = \"ER_COJOINROUTINESET_FAILED\";\n  public static final String ER_COROUTINE_PARAM = \"ER_COROUTINE_PARAM\";\n  public static final String ER_PARSER_DOTERMINATE_ANSWERS = \"ER_PARSER_DOTERMINATE_ANSWERS\";\n  public static final String ER_NO_PARSE_CALL_WHILE_PARSING = \"ER_NO_PARSE_CALL_WHILE_PARSING\";\n  public static final String ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_AXIS_NOT_IMPLEMENTED = \"ER_ITERATOR_AXIS_NOT_IMPLEMENTED\";\n  public static final String ER_ITERATOR_CLONE_NOT_SUPPORTED = \"ER_ITERATOR_CLONE_NOT_SUPPORTED\";\n  public static final String ER_UNKNOWN_AXIS_TYPE = \"ER_UNKNOWN_AXIS_TYPE\";\n  public static final String ER_AXIS_NOT_SUPPORTED = \"ER_AXIS_NOT_SUPPORTED\";\n  public static final String ER_NO_DTMIDS_AVAIL = \"ER_NO_DTMIDS_AVAIL\";\n  public static final String ER_NOT_SUPPORTED = \"ER_NOT_SUPPORTED\";\n  public static final String ER_NODE_NON_NULL = \"ER_NODE_NON_NULL\";\n  public static final String ER_COULD_NOT_RESOLVE_NODE = \"ER_COULD_NOT_RESOLVE_NODE\";\n  public static final String ER_STARTPARSE_WHILE_PARSING = \"ER_STARTPARSE_WHILE_PARSING\";\n  public static final String ER_STARTPARSE_NEEDS_SAXPARSER = \"ER_STARTPARSE_NEEDS_SAXPARSER\";\n  public static final String ER_COULD_NOT_INIT_PARSER = \"ER_COULD_NOT_INIT_PARSER\";\n  public static final String ER_EXCEPTION_CREATING_POOL = \"ER_EXCEPTION_CREATING_POOL\";\n  public static final String ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = \"ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE\";\n  public static final String ER_SCHEME_REQUIRED = \"ER_SCHEME_REQUIRED\";\n  public static final String ER_NO_SCHEME_IN_URI = \"ER_NO_SCHEME_IN_URI\";\n  public static final String ER_NO_SCHEME_INURI = \"ER_NO_SCHEME_INURI\";\n  public static final String ER_PATH_INVALID_CHAR = \"ER_PATH_INVALID_CHAR\";\n  public static final String ER_SCHEME_FROM_NULL_STRING = \"ER_SCHEME_FROM_NULL_STRING\";\n  public static final String ER_SCHEME_NOT_CONFORMANT = \"ER_SCHEME_NOT_CONFORMANT\";\n  public static final String ER_HOST_ADDRESS_NOT_WELLFORMED = \"ER_HOST_ADDRESS_NOT_WELLFORMED\";\n  public static final String ER_PORT_WHEN_HOST_NULL = \"ER_PORT_WHEN_HOST_NULL\";\n  public static final String ER_INVALID_PORT = \"ER_INVALID_PORT\";\n  public static final String ER_FRAG_FOR_GENERIC_URI =\"ER_FRAG_FOR_GENERIC_URI\";\n  public static final String ER_FRAG_WHEN_PATH_NULL = \"ER_FRAG_WHEN_PATH_NULL\";\n  public static final String ER_FRAG_INVALID_CHAR = \"ER_FRAG_INVALID_CHAR\";\n  public static final String ER_PARSER_IN_USE = \"ER_PARSER_IN_USE\";\n  public static final String ER_CANNOT_CHANGE_WHILE_PARSING = \"ER_CANNOT_CHANGE_WHILE_PARSING\";\n  public static final String ER_SELF_CAUSATION_NOT_PERMITTED = \"ER_SELF_CAUSATION_NOT_PERMITTED\";\n  public static final String ER_NO_USERINFO_IF_NO_HOST = \"ER_NO_USERINFO_IF_NO_HOST\";\n  public static final String ER_NO_PORT_IF_NO_HOST = \"ER_NO_PORT_IF_NO_HOST\";\n  public static final String ER_NO_QUERY_STRING_IN_PATH = \"ER_NO_QUERY_STRING_IN_PATH\";\n  public static final String ER_NO_FRAGMENT_STRING_IN_PATH = \"ER_NO_FRAGMENT_STRING_IN_PATH\";\n  public static final String ER_CANNOT_INIT_URI_EMPTY_PARMS = \"ER_CANNOT_INIT_URI_EMPTY_PARMS\";\n  public static final String ER_METHOD_NOT_SUPPORTED =\"ER_METHOD_NOT_SUPPORTED\";\n  public static final String ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = \"ER_INCRSAXSRCFILTER_NOT_RESTARTABLE\";\n  public static final String ER_XMLRDR_NOT_BEFORE_STARTPARSE = \"ER_XMLRDR_NOT_BEFORE_STARTPARSE\";\n  public static final String ER_AXIS_TRAVERSER_NOT_SUPPORTED = \"ER_AXIS_TRAVERSER_NOT_SUPPORTED\";\n  public static final String ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = \"ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER\";\n  public static final String ER_SYSTEMID_UNKNOWN = \"ER_SYSTEMID_UNKNOWN\";\n  public static final String ER_LOCATION_UNKNOWN = \"ER_LOCATION_UNKNOWN\";\n  public static final String ER_PREFIX_MUST_RESOLVE = \"ER_PREFIX_MUST_RESOLVE\";\n  public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED = \"ER_CREATEDOCUMENT_NOT_SUPPORTED\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT\";\n  public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = \"ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT\";\n  public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC = \"ER_CANT_OUTPUT_TEXT_BEFORE_DOC\";\n  public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT = \"ER_CANT_HAVE_MORE_THAN_ONE_ROOT\";\n  public static final String ER_ARG_LOCALNAME_NULL = \"ER_ARG_LOCALNAME_NULL\";\n  public static final String ER_ARG_LOCALNAME_INVALID = \"ER_ARG_LOCALNAME_INVALID\";\n  public static final String ER_ARG_PREFIX_INVALID = \"ER_ARG_PREFIX_INVALID\";\n\n  public static final String ER_RESOURCE_COULD_NOT_FIND = \"ER_RESOURCE_COULD_NOT_FIND\";\n  public static final String ER_RESOURCE_COULD_NOT_LOAD = \"ER_RESOURCE_COULD_NOT_LOAD\";\n  public static final String ER_BUFFER_SIZE_LESSTHAN_ZERO = \"ER_BUFFER_SIZE_LESSTHAN_ZERO\";\n  public static final String ER_INVALID_UTF16_SURROGATE = \"ER_INVALID_UTF16_SURROGATE\";\n  public static final String ER_OIERROR = \"ER_OIERROR\";\n  public static final String ER_NAMESPACE_PREFIX = \"ER_NAMESPACE_PREFIX\";\n  public static final String ER_STRAY_ATTRIBUTE = \"ER_STRAY_ATTIRBUTE\";\n  public static final String ER_STRAY_NAMESPACE = \"ER_STRAY_NAMESPACE\";\n  public static final String ER_COULD_NOT_LOAD_RESOURCE = \"ER_COULD_NOT_LOAD_RESOURCE\";\n  public static final String ER_COULD_NOT_LOAD_METHOD_PROPERTY = \"ER_COULD_NOT_LOAD_METHOD_PROPERTY\";\n  public static final String ER_SERIALIZER_NOT_CONTENTHANDLER = \"ER_SERIALIZER_NOT_CONTENTHANDLER\";\n  public static final String ER_ILLEGAL_ATTRIBUTE_POSITION = \"ER_ILLEGAL_ATTRIBUTE_POSITION\";\n\n  /*\n   * Now fill in the message text.\n   * Then fill in the message text for that message code in the\n   * array. Use the new error code as the index into the array.\n   */\n\n\n  /**\n   * Get the lookup table for error messages\n   *\n   * @return The association list.\n   */\n  public Object[][] getContents()\n  {\n    return new Object[][] {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u51fd\\u6570\\uff01\"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"\\u65e0\\u6cd5\\u8986\\u76d6\\u539f\\u56e0\"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"\\u627e\\u4e0d\\u5230\\u7f3a\\u7701\\u5b9e\\u73b0\"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"\\u5f53\\u524d\\u4e0d\\u652f\\u6301 ChunkedIntArray({0})\"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"\\u504f\\u79fb\\u5927\\u4e8e\\u69fd\"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"\\u534f\\u540c\\u7a0b\\u5e8f\\u4e0d\\u53ef\\u7528\\uff0cid={0}\"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager \\u63a5\\u6536\\u5230 co_exit() \\u8bf7\\u6c42\"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"co_joinCoroutineSet() \\u5931\\u8d25\"},\n\n    { ER_COROUTINE_PARAM,\n      \"\\u534f\\u540c\\u7a0b\\u5e8f\\u53c2\\u6570\\u9519\\u8bef\\uff08{0}\\uff09\"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\n\\u610f\\u5916\\uff1a\\u89e3\\u6790\\u5668 doTerminate \\u5e94\\u7b54 {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"\\u5206\\u6790\\u65f6\\u53ef\\u80fd\\u6ca1\\u6709\\u8c03\\u7528 parse\"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"\\u9519\\u8bef\\uff1a\\u6ca1\\u6709\\u5b9e\\u73b0\\u4e3a\\u8f74 {0} \\u8f93\\u5165\\u7684\\u8fed\\u4ee3\\u5668\"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"\\u9519\\u8bef\\uff1a\\u6ca1\\u6709\\u5b9e\\u73b0\\u8f74 {0} \\u7684\\u8fed\\u4ee3\\u5668\"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u8fed\\u4ee3\\u5668\\u514b\\u9686\"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"\\u672a\\u77e5\\u7684\\u8f74\\u904d\\u5386\\u7c7b\\u578b\\uff1a{0}\"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u8f74\\u904d\\u5386\\u7a0b\\u5e8f\\uff1a{0}\"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"\\u65e0\\u66f4\\u591a\\u7684 DTM \\u6807\\u8bc6\\u53ef\\u7528\"},\n\n    { ER_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\uff1a{0}\"},\n\n    { ER_NODE_NON_NULL,\n      \"\\u8282\\u70b9\\u5bf9\\u4e8e getDTMHandleFromNode \\u5fc5\\u987b\\u662f\\u975e\\u7a7a\\u7684\"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"\\u65e0\\u6cd5\\u5c06\\u8282\\u70b9\\u89e3\\u6790\\u5230\\u53e5\\u67c4\"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"\\u5206\\u6790\\u65f6\\u53ef\\u80fd\\u6ca1\\u6709\\u8c03\\u7528 startParse\"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse \\u9700\\u8981\\u975e\\u7a7a\\u7684 SAXParser\"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"\\u65e0\\u6cd5\\u7528\\u4ee5\\u4e0b\\u5de5\\u5177\\u521d\\u59cb\\u5316\\u89e3\\u6790\\u5668\"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"\\u4e3a\\u6c60\\u521b\\u5efa\\u65b0\\u5b9e\\u4f8b\\u65f6\\u53d1\\u751f\\u5f02\\u5e38\"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"\\u8def\\u5f84\\u5305\\u542b\\u65e0\\u6548\\u7684\\u8f6c\\u4e49\\u5e8f\\u5217\"},\n\n    { ER_SCHEME_REQUIRED,\n       \"\\u6a21\\u5f0f\\u662f\\u5fc5\\u9700\\u7684\\uff01\"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"\\u5728 URI \\u4e2d\\u627e\\u4e0d\\u5230\\u6a21\\u5f0f\\uff1a{0}\"},\n\n    { ER_NO_SCHEME_INURI,\n       \"URI \\u4e2d\\u672a\\u627e\\u5230\\u6a21\\u5f0f\"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"\\u8def\\u5f84\\u5305\\u542b\\u975e\\u6cd5\\u5b57\\u7b26\\uff1a{0}\"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"\\u65e0\\u6cd5\\u4ece\\u7a7a\\u5b57\\u7b26\\u4e32\\u8bbe\\u7f6e\\u6a21\\u5f0f\"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"\\u6a21\\u5f0f\\u4e0d\\u4e00\\u81f4\\u3002\"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"\\u4e3b\\u673a\\u4e0d\\u662f\\u683c\\u5f0f\\u826f\\u597d\\u7684\\u5730\\u5740\"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"\\u4e3b\\u673a\\u4e3a\\u7a7a\\u65f6\\uff0c\\u65e0\\u6cd5\\u8bbe\\u7f6e\\u7aef\\u53e3\"},\n\n    { ER_INVALID_PORT,\n       \"\\u65e0\\u6548\\u7684\\u7aef\\u53e3\\u53f7\"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"\\u53ea\\u80fd\\u4e3a\\u4e00\\u822c URI \\u8bbe\\u7f6e\\u7247\\u6bb5\"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"\\u8def\\u5f84\\u4e3a\\u7a7a\\u65f6\\uff0c\\u65e0\\u6cd5\\u8bbe\\u7f6e\\u7247\\u6bb5\"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"\\u7247\\u6bb5\\u5305\\u542b\\u65e0\\u6548\\u7684\\u5b57\\u7b26\"},\n\n    { ER_PARSER_IN_USE,\n      \"\\u89e3\\u6790\\u5668\\u5df2\\u5728\\u4f7f\\u7528\"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"\\u5206\\u6790\\u65f6\\u65e0\\u6cd5\\u66f4\\u6539 {0} {1}\"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"\\u4e0d\\u5141\\u8bb8\\u81ea\\u6210\\u56e0\\u679c\\u5173\\u7cfb\"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"\\u5982\\u679c\\u6ca1\\u6709\\u6307\\u5b9a\\u4e3b\\u673a\\uff0c\\u5219\\u4e0d\\u53ef\\u4ee5\\u6307\\u5b9a Userinfo\"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"\\u5982\\u679c\\u6ca1\\u6709\\u6307\\u5b9a\\u4e3b\\u673a\\uff0c\\u5219\\u4e0d\\u53ef\\u4ee5\\u6307\\u5b9a\\u7aef\\u53e3\"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"\\u8def\\u5f84\\u548c\\u67e5\\u8be2\\u5b57\\u7b26\\u4e32\\u4e2d\\u4e0d\\u80fd\\u6307\\u5b9a\\u67e5\\u8be2\\u5b57\\u7b26\\u4e32\"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"\\u8def\\u5f84\\u548c\\u7247\\u6bb5\\u4e2d\\u90fd\\u65e0\\u6cd5\\u6307\\u5b9a\\u7247\\u6bb5\"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"\\u65e0\\u6cd5\\u4ee5\\u7a7a\\u53c2\\u6570\\u521d\\u59cb\\u5316 URI\"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"\\u5c1a\\u4e0d\\u652f\\u6301\\u65b9\\u6cd5\"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"\\u5f53\\u524d\\u4e0d\\u53ef\\u91cd\\u65b0\\u542f\\u52a8 IncrementalSAXSource_Filter\"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"XMLReader \\u4e0d\\u5728 startParse \\u8bf7\\u6c42\\u4e4b\\u524d\"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u8f74\\u904d\\u5386\\u7a0b\\u5e8f\\uff1a{0}\"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"\\u4ee5\\u7a7a\\u7684 PrintWriter \\u521b\\u5efa\\u4e86 ListingErrorHandler\\uff01\"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"SystemId \\u672a\\u77e5\"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"\\u9519\\u8bef\\u4f4d\\u7f6e\\u672a\\u77e5\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"\\u524d\\u7f00\\u5fc5\\u987b\\u89e3\\u6790\\u4e3a\\u540d\\u79f0\\u7a7a\\u95f4\\uff1a{0}\"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"XPathContext \\u4e2d\\u4e0d\\u652f\\u6301 createDocument ()\\uff01\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"\\u5b50\\u5c5e\\u6027\\u6ca1\\u6709\\u6240\\u6709\\u8005\\u6587\\u6863\\uff01\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"\\u5b50\\u5c5e\\u6027\\u6ca1\\u6709\\u6240\\u6709\\u8005\\u6587\\u6863\\u5143\\u7d20\\uff01\"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"\\u8b66\\u544a\\uff1a\\u65e0\\u6cd5\\u8f93\\u51fa document \\u5143\\u7d20\\u524d\\u7684\\u6587\\u672c\\uff01\\u5ffd\\u7565...\"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"DOM \\u4e0a\\u4e0d\\u80fd\\u6709\\u591a\\u4e2a\\u6839\\uff01\"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"\\u81ea\\u53d8\\u91cf\\u201clocalName\\u201d\\u4e3a\\u7a7a\"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"QNAME \\u4e2d\\u7684\\u672c\\u5730\\u540d\\u5e94\\u5f53\\u662f\\u6709\\u6548\\u7684 NCName\"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"QNAME \\u4e2d\\u7684\\u524d\\u7f00\\u5e94\\u5f53\\u662f\\u6709\\u6548\\u7684 NCName\"},\n\n    { \"BAD_CODE\", \"createMessage \\u7684\\u53c2\\u6570\\u8d85\\u51fa\\u8303\\u56f4\"},\n    { \"FORMAT_FAILED\", \"\\u5728 messageFormat \\u8c03\\u7528\\u8fc7\\u7a0b\\u4e2d\\u629b\\u51fa\\u7684\\u5f02\\u5e38\"},\n    { \"line\", \"\\u884c\\u53f7\"},\n    { \"column\",\"\\u5217\\u53f7\"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"\\u4e32\\u884c\\u5668\\u7c7b\\u201c{0}\\u201d\\u4e0d\\u5b9e\\u73b0 org.xml.sax.ContentHandler.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"\\u627e\\u4e0d\\u5230\\u8d44\\u6e90 [ {0} ]\\u3002\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"\\u8d44\\u6e90 [ {0} ] \\u65e0\\u6cd5\\u88c5\\u5165\\uff1a{1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"\\u7f13\\u51b2\\u533a\\u5927\\u5c0f <=0\" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"\\u68c0\\u6d4b\\u5230\\u65e0\\u6548\\u7684 UTF-16 \\u66ff\\u4ee3\\u8005\\uff1a{0}\\uff1f\" },\n\n    {ER_OIERROR,\n      \"IO \\u9519\\u8bef\" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"\\u5728\\u751f\\u6210\\u5b50\\u8282\\u70b9\\u4e4b\\u540e\\u6216\\u5728\\u751f\\u6210\\u5143\\u7d20\\u4e4b\\u524d\\u65e0\\u6cd5\\u6dfb\\u52a0\\u5c5e\\u6027 {0}\\u3002\\u5c06\\u5ffd\\u7565\\u5c5e\\u6027\\u3002\"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"\\u6ca1\\u6709\\u8bf4\\u660e\\u540d\\u79f0\\u7a7a\\u95f4\\u524d\\u7f00\\u201c{0}\\u201d\\u3002\" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"\\u5c5e\\u6027\\u201c{0}\\u201d\\u5728\\u5143\\u7d20\\u5916\\u3002\" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"\\u540d\\u79f0\\u7a7a\\u95f4\\u8bf4\\u660e\\u201c{0}\\u201d=\\u201c{1}\\u201d\\u5728\\u5143\\u7d20\\u5916\\u3002\" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"\\u65e0\\u6cd5\\u88c5\\u5165\\u201c{0}\\u201d\\uff08\\u68c0\\u67e5 CLASSPATH\\uff09\\uff0c\\u73b0\\u5728\\u53ea\\u4f7f\\u7528\\u7f3a\\u7701\\u503c\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"\\u65e0\\u6cd5\\u4e3a\\u8f93\\u51fa\\u65b9\\u6cd5\\u201c{1}\\u201d\\u88c5\\u8f7d\\u5c5e\\u6027\\u6587\\u4ef6\\u201c{0}\\u201d\\uff08\\u68c0\\u67e5 CLASSPATH\\uff09\" }\n\n\n  };\n  }\n\n  /**\n   *   Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   *   of ResourceBundle.getBundle().\n   *\n   *   @param className the name of the class that implements the resource bundle.\n   *   @return the ResourceBundle\n   *   @throws MissingResourceException\n   */\n  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"zh\", \"CN\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"\\u65e0\\u6cd5\\u88c5\\u5165\\u4efb\\u4f55\\u8d44\\u6e90\\u5305\\u3002\", className, \"\");\n      }\n    }\n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which canbe appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "getContents", "code": "  public Object[][] getContents()\n  {\n    return new Object[][] {\n\n  /** Error message ID that has a null message, but takes in a single object.    */\n    {\"ER0000\" , \"{0}\" },\n\n    { ER_FUNCTION_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u51fd\\u6570\\uff01\"},\n\n    { ER_CANNOT_OVERWRITE_CAUSE,\n      \"\\u65e0\\u6cd5\\u8986\\u76d6\\u539f\\u56e0\"},\n\n    { ER_NO_DEFAULT_IMPL,\n      \"\\u627e\\u4e0d\\u5230\\u7f3a\\u7701\\u5b9e\\u73b0\"},\n\n    { ER_CHUNKEDINTARRAY_NOT_SUPPORTED,\n      \"\\u5f53\\u524d\\u4e0d\\u652f\\u6301 ChunkedIntArray({0})\"},\n\n    { ER_OFFSET_BIGGER_THAN_SLOT,\n      \"\\u504f\\u79fb\\u5927\\u4e8e\\u69fd\"},\n\n    { ER_COROUTINE_NOT_AVAIL,\n      \"\\u534f\\u540c\\u7a0b\\u5e8f\\u4e0d\\u53ef\\u7528\\uff0cid={0}\"},\n\n    { ER_COROUTINE_CO_EXIT,\n      \"CoroutineManager \\u63a5\\u6536\\u5230 co_exit() \\u8bf7\\u6c42\"},\n\n    { ER_COJOINROUTINESET_FAILED,\n      \"co_joinCoroutineSet() \\u5931\\u8d25\"},\n\n    { ER_COROUTINE_PARAM,\n      \"\\u534f\\u540c\\u7a0b\\u5e8f\\u53c2\\u6570\\u9519\\u8bef\\uff08{0}\\uff09\"},\n\n    { ER_PARSER_DOTERMINATE_ANSWERS,\n      \"\\n\\u610f\\u5916\\uff1a\\u89e3\\u6790\\u5668 doTerminate \\u5e94\\u7b54 {0}\"},\n\n    { ER_NO_PARSE_CALL_WHILE_PARSING,\n      \"\\u5206\\u6790\\u65f6\\u53ef\\u80fd\\u6ca1\\u6709\\u8c03\\u7528 parse\"},\n\n    { ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"\\u9519\\u8bef\\uff1a\\u6ca1\\u6709\\u5b9e\\u73b0\\u4e3a\\u8f74 {0} \\u8f93\\u5165\\u7684\\u8fed\\u4ee3\\u5668\"},\n\n    { ER_ITERATOR_AXIS_NOT_IMPLEMENTED,\n      \"\\u9519\\u8bef\\uff1a\\u6ca1\\u6709\\u5b9e\\u73b0\\u8f74 {0} \\u7684\\u8fed\\u4ee3\\u5668\"},\n\n    { ER_ITERATOR_CLONE_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u8fed\\u4ee3\\u5668\\u514b\\u9686\"},\n\n    { ER_UNKNOWN_AXIS_TYPE,\n      \"\\u672a\\u77e5\\u7684\\u8f74\\u904d\\u5386\\u7c7b\\u578b\\uff1a{0}\"},\n\n    { ER_AXIS_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u8f74\\u904d\\u5386\\u7a0b\\u5e8f\\uff1a{0}\"},\n\n    { ER_NO_DTMIDS_AVAIL,\n      \"\\u65e0\\u66f4\\u591a\\u7684 DTM \\u6807\\u8bc6\\u53ef\\u7528\"},\n\n    { ER_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\uff1a{0}\"},\n\n    { ER_NODE_NON_NULL,\n      \"\\u8282\\u70b9\\u5bf9\\u4e8e getDTMHandleFromNode \\u5fc5\\u987b\\u662f\\u975e\\u7a7a\\u7684\"},\n\n    { ER_COULD_NOT_RESOLVE_NODE,\n      \"\\u65e0\\u6cd5\\u5c06\\u8282\\u70b9\\u89e3\\u6790\\u5230\\u53e5\\u67c4\"},\n\n    { ER_STARTPARSE_WHILE_PARSING,\n       \"\\u5206\\u6790\\u65f6\\u53ef\\u80fd\\u6ca1\\u6709\\u8c03\\u7528 startParse\"},\n\n    { ER_STARTPARSE_NEEDS_SAXPARSER,\n       \"startParse \\u9700\\u8981\\u975e\\u7a7a\\u7684 SAXParser\"},\n\n    { ER_COULD_NOT_INIT_PARSER,\n       \"\\u65e0\\u6cd5\\u7528\\u4ee5\\u4e0b\\u5de5\\u5177\\u521d\\u59cb\\u5316\\u89e3\\u6790\\u5668\"},\n\n    { ER_EXCEPTION_CREATING_POOL,\n       \"\\u4e3a\\u6c60\\u521b\\u5efa\\u65b0\\u5b9e\\u4f8b\\u65f6\\u53d1\\u751f\\u5f02\\u5e38\"},\n\n    { ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,\n       \"\\u8def\\u5f84\\u5305\\u542b\\u65e0\\u6548\\u7684\\u8f6c\\u4e49\\u5e8f\\u5217\"},\n\n    { ER_SCHEME_REQUIRED,\n       \"\\u6a21\\u5f0f\\u662f\\u5fc5\\u9700\\u7684\\uff01\"},\n\n    { ER_NO_SCHEME_IN_URI,\n       \"\\u5728 URI \\u4e2d\\u627e\\u4e0d\\u5230\\u6a21\\u5f0f\\uff1a{0}\"},\n\n    { ER_NO_SCHEME_INURI,\n       \"URI \\u4e2d\\u672a\\u627e\\u5230\\u6a21\\u5f0f\"},\n\n    { ER_PATH_INVALID_CHAR,\n       \"\\u8def\\u5f84\\u5305\\u542b\\u975e\\u6cd5\\u5b57\\u7b26\\uff1a{0}\"},\n\n    { ER_SCHEME_FROM_NULL_STRING,\n       \"\\u65e0\\u6cd5\\u4ece\\u7a7a\\u5b57\\u7b26\\u4e32\\u8bbe\\u7f6e\\u6a21\\u5f0f\"},\n\n    { ER_SCHEME_NOT_CONFORMANT,\n       \"\\u6a21\\u5f0f\\u4e0d\\u4e00\\u81f4\\u3002\"},\n\n    { ER_HOST_ADDRESS_NOT_WELLFORMED,\n       \"\\u4e3b\\u673a\\u4e0d\\u662f\\u683c\\u5f0f\\u826f\\u597d\\u7684\\u5730\\u5740\"},\n\n    { ER_PORT_WHEN_HOST_NULL,\n       \"\\u4e3b\\u673a\\u4e3a\\u7a7a\\u65f6\\uff0c\\u65e0\\u6cd5\\u8bbe\\u7f6e\\u7aef\\u53e3\"},\n\n    { ER_INVALID_PORT,\n       \"\\u65e0\\u6548\\u7684\\u7aef\\u53e3\\u53f7\"},\n\n    { ER_FRAG_FOR_GENERIC_URI,\n       \"\\u53ea\\u80fd\\u4e3a\\u4e00\\u822c URI \\u8bbe\\u7f6e\\u7247\\u6bb5\"},\n\n    { ER_FRAG_WHEN_PATH_NULL,\n       \"\\u8def\\u5f84\\u4e3a\\u7a7a\\u65f6\\uff0c\\u65e0\\u6cd5\\u8bbe\\u7f6e\\u7247\\u6bb5\"},\n\n    { ER_FRAG_INVALID_CHAR,\n       \"\\u7247\\u6bb5\\u5305\\u542b\\u65e0\\u6548\\u7684\\u5b57\\u7b26\"},\n\n    { ER_PARSER_IN_USE,\n      \"\\u89e3\\u6790\\u5668\\u5df2\\u5728\\u4f7f\\u7528\"},\n\n    { ER_CANNOT_CHANGE_WHILE_PARSING,\n      \"\\u5206\\u6790\\u65f6\\u65e0\\u6cd5\\u66f4\\u6539 {0} {1}\"},\n\n    { ER_SELF_CAUSATION_NOT_PERMITTED,\n      \"\\u4e0d\\u5141\\u8bb8\\u81ea\\u6210\\u56e0\\u679c\\u5173\\u7cfb\"},\n\n    { ER_NO_USERINFO_IF_NO_HOST,\n      \"\\u5982\\u679c\\u6ca1\\u6709\\u6307\\u5b9a\\u4e3b\\u673a\\uff0c\\u5219\\u4e0d\\u53ef\\u4ee5\\u6307\\u5b9a Userinfo\"},\n\n    { ER_NO_PORT_IF_NO_HOST,\n      \"\\u5982\\u679c\\u6ca1\\u6709\\u6307\\u5b9a\\u4e3b\\u673a\\uff0c\\u5219\\u4e0d\\u53ef\\u4ee5\\u6307\\u5b9a\\u7aef\\u53e3\"},\n\n    { ER_NO_QUERY_STRING_IN_PATH,\n      \"\\u8def\\u5f84\\u548c\\u67e5\\u8be2\\u5b57\\u7b26\\u4e32\\u4e2d\\u4e0d\\u80fd\\u6307\\u5b9a\\u67e5\\u8be2\\u5b57\\u7b26\\u4e32\"},\n\n    { ER_NO_FRAGMENT_STRING_IN_PATH,\n      \"\\u8def\\u5f84\\u548c\\u7247\\u6bb5\\u4e2d\\u90fd\\u65e0\\u6cd5\\u6307\\u5b9a\\u7247\\u6bb5\"},\n\n    { ER_CANNOT_INIT_URI_EMPTY_PARMS,\n      \"\\u65e0\\u6cd5\\u4ee5\\u7a7a\\u53c2\\u6570\\u521d\\u59cb\\u5316 URI\"},\n\n    { ER_METHOD_NOT_SUPPORTED,\n      \"\\u5c1a\\u4e0d\\u652f\\u6301\\u65b9\\u6cd5\"},\n\n    { ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,\n      \"\\u5f53\\u524d\\u4e0d\\u53ef\\u91cd\\u65b0\\u542f\\u52a8 IncrementalSAXSource_Filter\"},\n\n    { ER_XMLRDR_NOT_BEFORE_STARTPARSE,\n      \"XMLReader \\u4e0d\\u5728 startParse \\u8bf7\\u6c42\\u4e4b\\u524d\"},\n\n    { ER_AXIS_TRAVERSER_NOT_SUPPORTED,\n      \"\\u4e0d\\u652f\\u6301\\u8f74\\u904d\\u5386\\u7a0b\\u5e8f\\uff1a{0}\"},\n\n    { ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,\n      \"\\u4ee5\\u7a7a\\u7684 PrintWriter \\u521b\\u5efa\\u4e86 ListingErrorHandler\\uff01\"},\n\n    { ER_SYSTEMID_UNKNOWN,\n      \"SystemId \\u672a\\u77e5\"},\n\n    { ER_LOCATION_UNKNOWN,\n      \"\\u9519\\u8bef\\u4f4d\\u7f6e\\u672a\\u77e5\"},\n\n    { ER_PREFIX_MUST_RESOLVE,\n      \"\\u524d\\u7f00\\u5fc5\\u987b\\u89e3\\u6790\\u4e3a\\u540d\\u79f0\\u7a7a\\u95f4\\uff1a{0}\"},\n\n    { ER_CREATEDOCUMENT_NOT_SUPPORTED,\n      \"XPathContext \\u4e2d\\u4e0d\\u652f\\u6301 createDocument ()\\uff01\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT,\n      \"\\u5b50\\u5c5e\\u6027\\u6ca1\\u6709\\u6240\\u6709\\u8005\\u6587\\u6863\\uff01\"},\n\n    { ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,\n      \"\\u5b50\\u5c5e\\u6027\\u6ca1\\u6709\\u6240\\u6709\\u8005\\u6587\\u6863\\u5143\\u7d20\\uff01\"},\n\n    { ER_CANT_OUTPUT_TEXT_BEFORE_DOC,\n      \"\\u8b66\\u544a\\uff1a\\u65e0\\u6cd5\\u8f93\\u51fa document \\u5143\\u7d20\\u524d\\u7684\\u6587\\u672c\\uff01\\u5ffd\\u7565...\"},\n\n    { ER_CANT_HAVE_MORE_THAN_ONE_ROOT,\n      \"DOM \\u4e0a\\u4e0d\\u80fd\\u6709\\u591a\\u4e2a\\u6839\\uff01\"},\n\n    { ER_ARG_LOCALNAME_NULL,\n       \"\\u81ea\\u53d8\\u91cf\\u201clocalName\\u201d\\u4e3a\\u7a7a\"},\n\n    { ER_ARG_LOCALNAME_INVALID,\n       \"QNAME \\u4e2d\\u7684\\u672c\\u5730\\u540d\\u5e94\\u5f53\\u662f\\u6709\\u6548\\u7684 NCName\"},\n\n    { ER_ARG_PREFIX_INVALID,\n       \"QNAME \\u4e2d\\u7684\\u524d\\u7f00\\u5e94\\u5f53\\u662f\\u6709\\u6548\\u7684 NCName\"},\n\n    { \"BAD_CODE\", \"createMessage \\u7684\\u53c2\\u6570\\u8d85\\u51fa\\u8303\\u56f4\"},\n    { \"FORMAT_FAILED\", \"\\u5728 messageFormat \\u8c03\\u7528\\u8fc7\\u7a0b\\u4e2d\\u629b\\u51fa\\u7684\\u5f02\\u5e38\"},\n    { \"line\", \"\\u884c\\u53f7\"},\n    { \"column\",\"\\u5217\\u53f7\"},\n\n    {ER_SERIALIZER_NOT_CONTENTHANDLER,\n      \"\\u4e32\\u884c\\u5668\\u7c7b\\u201c{0}\\u201d\\u4e0d\\u5b9e\\u73b0 org.xml.sax.ContentHandler.\"},\n\n    {ER_RESOURCE_COULD_NOT_FIND,\n      \"\\u627e\\u4e0d\\u5230\\u8d44\\u6e90 [ {0} ]\\u3002\\n {1}\" },\n\n    {ER_RESOURCE_COULD_NOT_LOAD,\n      \"\\u8d44\\u6e90 [ {0} ] \\u65e0\\u6cd5\\u88c5\\u5165\\uff1a{1} \\n {2} \\t {3}\" },\n\n    {ER_BUFFER_SIZE_LESSTHAN_ZERO,\n      \"\\u7f13\\u51b2\\u533a\\u5927\\u5c0f <=0\" },\n\n    {ER_INVALID_UTF16_SURROGATE,\n      \"\\u68c0\\u6d4b\\u5230\\u65e0\\u6548\\u7684 UTF-16 \\u66ff\\u4ee3\\u8005\\uff1a{0}\\uff1f\" },\n\n    {ER_OIERROR,\n      \"IO \\u9519\\u8bef\" },\n\n    {ER_ILLEGAL_ATTRIBUTE_POSITION,\n      \"\\u5728\\u751f\\u6210\\u5b50\\u8282\\u70b9\\u4e4b\\u540e\\u6216\\u5728\\u751f\\u6210\\u5143\\u7d20\\u4e4b\\u524d\\u65e0\\u6cd5\\u6dfb\\u52a0\\u5c5e\\u6027 {0}\\u3002\\u5c06\\u5ffd\\u7565\\u5c5e\\u6027\\u3002\"},\n\n      /*\n       * Note to translators:  The stylesheet contained a reference to a\n       * namespace prefix that was undefined.  The value of the substitution\n       * text is the name of the prefix.\n       */\n    {ER_NAMESPACE_PREFIX,\n      \"\\u6ca1\\u6709\\u8bf4\\u660e\\u540d\\u79f0\\u7a7a\\u95f4\\u524d\\u7f00\\u201c{0}\\u201d\\u3002\" },\n      /*\n       * Note to translators:  This message is reported if the stylesheet\n       * being processed attempted to construct an XML document with an\n       * attribute in a place other than on an element.  The substitution text\n       * specifies the name of the attribute.\n       */\n    {ER_STRAY_ATTRIBUTE,\n      \"\\u5c5e\\u6027\\u201c{0}\\u201d\\u5728\\u5143\\u7d20\\u5916\\u3002\" },\n\n      /*\n       * Note to translators:  As with the preceding message, a namespace\n       * declaration has the form of an attribute and is only permitted to\n       * appear on an element.  The substitution text {0} is the namespace\n       * prefix and {1} is the URI that was being used in the erroneous\n       * namespace declaration.\n       */\n    {ER_STRAY_NAMESPACE,\n      \"\\u540d\\u79f0\\u7a7a\\u95f4\\u8bf4\\u660e\\u201c{0}\\u201d=\\u201c{1}\\u201d\\u5728\\u5143\\u7d20\\u5916\\u3002\" },\n\n    {ER_COULD_NOT_LOAD_RESOURCE,\n      \"\\u65e0\\u6cd5\\u88c5\\u5165\\u201c{0}\\u201d\\uff08\\u68c0\\u67e5 CLASSPATH\\uff09\\uff0c\\u73b0\\u5728\\u53ea\\u4f7f\\u7528\\u7f3a\\u7701\\u503c\"},\n\n    {ER_COULD_NOT_LOAD_METHOD_PROPERTY,\n      \"\\u65e0\\u6cd5\\u4e3a\\u8f93\\u51fa\\u65b9\\u6cd5\\u201c{1}\\u201d\\u88c5\\u8f7d\\u5c5e\\u6027\\u6587\\u4ef6\\u201c{0}\\u201d\\uff08\\u68c0\\u67e5 CLASSPATH\\uff09\" }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69], [1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81], [1, 82], [1, 83], [1, 84], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 1], [40, 1], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 1], [52, 1], [53, 1], [54, 1], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 1], [61, 1], [62, 1], [63, 1], [64, 1], [65, 1], [66, 1], [67, 1], [68, 1], [69, 1], [70, 1], [71, 1], [72, 1], [73, 1], [74, 1], [75, 1], [76, 1], [77, 1], [78, 1], [79, 1], [80, 1], [81, 1], [82, 1], [83, 1], [84, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "loadResourceBundle", "code": "  public static final XMLErrorResources loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n    String suffix = getResourceSuffix(locale);\n\n    try\n    {\n\n      return (XMLErrorResources) ResourceBundle.getBundle(className\n              + suffix, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      try{\n\n        return (XMLErrorResources) ResourceBundle.getBundle(className,\n                new Locale(\"zh\", \"CN\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"\\u65e0\\u6cd5\\u88c5\\u5165\\u4efb\\u4f55\\u8d44\\u6e90\\u5305\\u3002\", className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "TRY", "CALL", "CALL", "CATCH", "RETURN", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [3, 9], [7, 10], [7, 11], [6, 12], [10, 13], [12, 14], [13, 15], [11, 16], [15, 17], [15, 18], [16, 19], [19, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 3], [10, 7], [11, 7], [12, 6], [13, 10], [14, 12], [15, 13], [16, 11], [17, 15], [18, 15], [19, 16], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 1}
{"sample_id": "log4j-1.2-4992", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/helpers/QuietWriter.java", "language": "java", "name": "org.apache.log4j.helpers.QuietWriter", "code": "public class QuietWriter extends FilterWriter {\n\n  protected ErrorHandler errorHandler;\n\n  public\n  QuietWriter(Writer writer, ErrorHandler errorHandler) {\n    super(writer);\n    setErrorHandler(errorHandler);\n  }\n\n  public\n  void write(String string) {\n    if (string != null) {\n    \ttry {\n      \t\tout.write(string);\n    \t} catch(Exception e) {\n      \t\terrorHandler.error(\"Failed to write [\"+string+\"].\", e, \n\t\t\t \tErrorCode.WRITE_FAILURE);\n\t    }\n    }\n  }\n\n  public\n  void flush() {\n    try {\n      out.flush();\n    } catch(Exception e) {\n      errorHandler.error(\"Failed to flush writer,\", e, \n\t\t\t ErrorCode.FLUSH_FAILURE);\n    }\t\n  }\n\n\n  public\n  void setErrorHandler(ErrorHandler eh) {\n    if(eh == null) {\n      // This is a programming error on the part of the enclosing appender.\n      throw new IllegalArgumentException(\"Attempted to set null ErrorHandler.\");\n    } else { \n      this.errorHandler = eh;", "functions": [{"function_name": "write", "code": "  void write(String string) {\n    if (string != null) {\n    \ttry {\n      \t\tout.write(string);\n    \t} catch(Exception e) {\n      \t\terrorHandler.error(\"Failed to write [\"+string+\"].\", e, \n\t\t\t \tErrorCode.WRITE_FAILURE);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [4, 7], [6, 8], [8, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 4], [8, 6], [9, 8], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "flush", "code": "  void flush() {\n    try {\n      out.flush();\n    } catch(Exception e) {\n      errorHandler.error(\"Failed to flush writer,\", e, \n\t\t\t ErrorCode.FLUSH_FAILURE);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setErrorHandler", "code": "  void setErrorHandler(ErrorHandler eh) {\n    if(eh == null) {\n      // This is a programming error on the part of the enclosing appender.\n      throw new IllegalArgumentException(\"Attempted to set null ErrorHandler.\");\n    } else { \n      this.errorHandler = eh;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [4, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "QuietWriter", "code": "  QuietWriter(Writer writer, ErrorHandler errorHandler) {\n    super(writer);\n    setErrorHandler(errorHandler);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.7-7982", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/TransletException.java", "language": "java", "name": "org.apache.xalan.xsltc.TransletException", "code": "public final class TransletException extends SAXException {\n    static final long serialVersionUID = -878916829521217293L;\n\n    public TransletException() {\n\tsuper(\"Translet error\");\n    }\n    \n    public TransletException(Exception e) {\n\tsuper(e.toString());\n    }\n    \n    public TransletException(String message) {\n\tsuper(message);", "functions": [{"function_name": "TransletException", "code": "    public TransletException() {\n\tsuper(\"Translet error\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "TransletException", "code": "    public TransletException(Exception e) {\n\tsuper(e.toString());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TransletException", "code": "    public TransletException(String message) {\n\tsuper(message);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "jedit-4.3-4781", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/textarea/TextAreaPainter.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.TextAreaPainter", "code": "public class TextAreaPainter extends JComponent implements TabExpander\n{\n\t//{{{ Layers\n\t/**\n\t * The lowest possible layer.\n\t * @see #addExtension(int,TextAreaExtension)\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static final int LOWEST_LAYER = Integer.MIN_VALUE;\n\n\t/**\n\t * Below selection layer. The JDiff plugin will use this.\n\t * @see #addExtension(int,TextAreaExtension)\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static final int BACKGROUND_LAYER = -60;\n\n\t/**\n\t * The line highlight and collapsed fold highlight layer.\n\t * @see #addExtension(int,TextAreaExtension)\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static final int LINE_BACKGROUND_LAYER = -50;\n\n\t/**\n\t * Below selection layer.\n\t * @see #addExtension(int,TextAreaExtension)\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static final int BELOW_SELECTION_LAYER = -40;\n\n\t/**\n\t * Selection layer. Most extensions will be above this layer, but some\n\t * (eg, JDiff) will want to be below the selection.\n\t * @see #addExtension(int,TextAreaExtension)\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static final int SELECTION_LAYER = -30;\n\n\t/**\n\t * Wrap guide layer. Most extensions will be above this layer.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static final int WRAP_GUIDE_LAYER = -20;\n\n\t/**\n\t * Below most extensions layer.\n\t * @see #addExtension(int,TextAreaExtension)\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static final int BELOW_MOST_EXTENSIONS_LAYER = -10;\n\n\t/**\n\t * Default extension layer. This is above the wrap guide but below the\n\t * structure highlight.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static final int DEFAULT_LAYER = 0;\n\n\t/**\n\t * Block caret layer. Most extensions will be below this layer.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static final int BLOCK_CARET_LAYER = 50;\n\n\t/**\n\t * Bracket highlight layer. Most extensions will be below this layer.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static final int BRACKET_HIGHLIGHT_LAYER = 100;\n\n\t/**\n\t * Text layer. Most extensions will be below this layer.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static final int TEXT_LAYER = 200;\n\n\t/**\n\t * Caret layer. Most extensions will be below this layer.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic static final int CARET_LAYER = 300;\n\n\t/**\n\t * Highest possible layer.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic static final int HIGHEST_LAYER = Integer.MAX_VALUE;\n\t//}}}\n\n\t//{{{ setBounds() method\n\t/**\n\t * It is a bad idea to override this, but we need to get the component\n\t * event before the first repaint.\n\t */\n\t@Override\n\tpublic void setBounds(int x, int y, int width, int height)\n\t{\n\t\tif(x == getX() && y == getY() && width == getWidth()\n\t\t\t&& height == getHeight())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.setBounds(x,y,width,height);\n\n\t\ttextArea.recalculateVisibleLines();\n\t\tif(!textArea.getBuffer().isLoading())\n\t\t\ttextArea.recalculateLastPhysicalLine();\n\t\ttextArea.propertiesChanged();\n\t\ttextArea.updateMaxHorizontalScrollWidth();\n\t\ttextArea.scrollBarsInitialized = true;\n\t} //}}}\n\n\t//{{{ getFocusTraversalKeysEnabled() method\n\t/**\n\t * Makes the tab key work in Java 1.4.\n\t * @since jEdit 3.2pre4\n\t */\n\t@Override\n\tpublic boolean getFocusTraversalKeysEnabled()\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ Getters and setters\n\n\t//{{{ getStyles() method\n\t/**\n\t * Returns the syntax styles used to paint colorized text. Entry <i>n</i>\n\t * will be used to paint tokens with id = <i>n</i>.\n\t * @return an array of SyntaxStyles\n\t * @see org.gjt.sp.jedit.syntax.Token\n\t */\n\tpublic final SyntaxStyle[] getStyles()\n\t{\n\t\treturn styles;\n\t} //}}}\n\n\t//{{{ setStyles() method\n\t/**\n\t * Sets the syntax styles used to paint colorized text. Entry <i>n</i>\n\t * will be used to paint tokens with id = <i>n</i>.\n\t * @param styles The syntax styles\n\t * @see org.gjt.sp.jedit.syntax.Token\n\t */\n\tpublic final void setStyles(SyntaxStyle[] styles)\n\t{\n\t\t// assumed this is called after a font render context is set up.\n\t\t// changing font render context settings without a setStyles()\n\t\t// call will not reset cached monospaced font info.\n\t\tfonts.clear();\n\n\t\tthis.styles = styles;\n\t\tstyles[Token.NULL] = new SyntaxStyle(getForeground(),null,getFont());\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ getCaretColor() method\n\t/**\n\t * Returns the caret color.\n\t */\n\tpublic final Color getCaretColor()\n\t{\n\t\treturn caretColor;\n\t} //}}}\n\n\t//{{{ setCaretColor() method\n\t/**\n\t * Sets the caret color.\n\t * @param caretColor The caret color\n\t */\n\tpublic final void setCaretColor(Color caretColor)\n\t{\n\t\tthis.caretColor = caretColor;\n\t\tif(textArea.getBuffer() != null)\n\t\t\ttextArea.invalidateLine(textArea.getCaretLine());\n\t} //}}}\n\n\t//{{{ getSelectionColor() method\n\t/**\n\t * Returns the selection color.\n\t */\n\tpublic final Color getSelectionColor()\n\t{\n\t\treturn selectionColor;\n\t} //}}}\n\n\t//{{{ setSelectionColor() method\n\t/**\n\t * Sets the selection color.\n\t * @param selectionColor The selection color\n\t */\n\tpublic final void setSelectionColor(Color selectionColor)\n\t{\n\t\tthis.selectionColor = selectionColor;\n\t\ttextArea.repaint();\n\t} //}}}\n\n\t//{{{ getMultipleSelectionColor() method\n\t/**\n\t * Returns the multiple selection color.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic final Color getMultipleSelectionColor()\n\t{\n\t\treturn multipleSelectionColor;\n\t} //}}}\n\n\t//{{{ setMultipleSelectionColor() method\n\t/**\n\t * Sets the multiple selection color.\n\t * @param multipleSelectionColor The multiple selection color\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic final void setMultipleSelectionColor(Color multipleSelectionColor)\n\t{\n\t\tthis.multipleSelectionColor = multipleSelectionColor;\n\t\ttextArea.repaint();\n\t} //}}}\n\n\t//{{{ getLineHighlightColor() method\n\t/**\n\t * Returns the line highlight color.\n\t */\n\tpublic final Color getLineHighlightColor()\n\t{\n\t\treturn lineHighlightColor;\n\t} //}}}\n\n\t//{{{ setLineHighlightColor() method\n\t/**\n\t * Sets the line highlight color.\n\t * @param lineHighlightColor The line highlight color\n\t */\n\tpublic final void setLineHighlightColor(Color lineHighlightColor)\n\t{\n\t\tthis.lineHighlightColor = lineHighlightColor;\n\t\tif(textArea.getBuffer() != null)\n\t\t\ttextArea.invalidateLine(textArea.getCaretLine());\n\t} //}}}\n\n\t//{{{ isLineHighlightEnabled() method\n\t/**\n\t * Returns true if line highlight is enabled, false otherwise.\n\t */\n\tpublic final boolean isLineHighlightEnabled()\n\t{\n\t\treturn lineHighlight;\n\t} //}}}\n\n\t//{{{ setLineHighlightEnabled() method\n\t/**\n\t * Enables or disables current line highlighting.\n\t * @param lineHighlight True if current line highlight should be enabled,\n\t * false otherwise\n\t */\n\tpublic final void setLineHighlightEnabled(boolean lineHighlight)\n\t{\n\t\tthis.lineHighlight = lineHighlight;\n\t\ttextArea.repaint();\n\t} //}}}\n\n\t//{{{ getStructureHighlightColor() method\n\t/**\n\t * Returns the structure highlight color.\n\t * @since jEdit 4.2pre3\n\t */\n\tpublic final Color getStructureHighlightColor()\n\t{\n\t\treturn structureHighlightColor;\n\t} //}}}\n\n\t//{{{ setStructureHighlightColor() method\n\t/**\n\t * Sets the structure highlight color.\n\t * @param structureHighlightColor The bracket highlight color\n\t * @since jEdit 4.2pre3\n\t */\n\tpublic final void setStructureHighlightColor(\n\t\tColor structureHighlightColor)\n\t{\n\t\tthis.structureHighlightColor = structureHighlightColor;\n\t\ttextArea.invalidateStructureMatch();\n\t} //}}}\n\n\t//{{{ isStructureHighlightEnabled() method\n\t/**\n\t * Returns true if structure highlighting is enabled, false otherwise.\n\t * @since jEdit 4.2pre3\n\t */\n\tpublic final boolean isStructureHighlightEnabled()\n\t{\n\t\treturn structureHighlight;\n\t} //}}}\n\n\t//{{{ setStructureHighlightEnabled() method\n\t/**\n\t * Enables or disables structure highlighting.\n\t * @param structureHighlight True if structure highlighting should be\n\t * enabled, false otherwise\n\t * @since jEdit 4.2pre3\n\t */\n\tpublic final void setStructureHighlightEnabled(boolean structureHighlight)\n\t{\n\t\tthis.structureHighlight = structureHighlight;\n\t\ttextArea.invalidateStructureMatch();\n\t} //}}}\n\n\t//{{{ isBlockCaretEnabled() method\n\t/**\n\t * Returns true if the caret should be drawn as a block, false otherwise.\n\t */\n\tpublic final boolean isBlockCaretEnabled()\n\t{\n\t\treturn blockCaret;\n\t} //}}}\n\n\t//{{{ setBlockCaretEnabled() method\n\t/**\n\t * Sets if the caret should be drawn as a block, false otherwise.\n\t * @param blockCaret True if the caret should be drawn as a block,\n\t * false otherwise.\n\t */\n\tpublic final void setBlockCaretEnabled(boolean blockCaret)\n\t{\n\t\tthis.blockCaret = blockCaret;\n\t\textensionMgr.removeExtension(caretExtension);\n\t\tif(blockCaret)\n\t\t\taddExtension(BLOCK_CARET_LAYER,caretExtension);\n\t\telse\n\t\t\taddExtension(CARET_LAYER,caretExtension);\n\t\tif(textArea.getBuffer() != null)\n\t\t\ttextArea.invalidateLine(textArea.getCaretLine());\n\t} //}}}\n\n\t//{{{ isThickCaretEnabled() method\n\t/**\n\t * Returns true if the caret should be drawn with a thick line, false otherwise.\n\t * @since jEdit 4.3pre15\n\t */\n\tpublic final boolean isThickCaretEnabled()\n\t{\n\t\treturn thickCaret;\n\t} //}}}\n\n\t//{{{ setThickCaretEnabled() method\n\t/**\n\t * Sets if the caret should be drawn with a thick line.\n\t * @param thickCaret\n\t *     True if the caret should be drawn as a block, false otherwise.\n\t * @since jEdit 4.3pre15\n\t */\n\tpublic final void setThickCaretEnabled(boolean thickCaret)\n\t{\n\t\tthis.thickCaret = thickCaret;\n\t\tif(textArea.getBuffer() != null)\n\t\t\ttextArea.invalidateLine(textArea.getCaretLine());\n\t} //}}}\n\n\t//{{{ getEOLMarkerColor() method\n\t/**\n\t * Returns the EOL marker color.\n\t */\n\tpublic final Color getEOLMarkerColor()\n\t{\n\t\treturn eolMarkerColor;\n\t} //}}}\n\n\t//{{{ setEOLMarkerColor() method\n\t/**\n\t * Sets the EOL marker color.\n\t * @param eolMarkerColor The EOL marker color\n\t */\n\tpublic final void setEOLMarkerColor(Color eolMarkerColor)\n\t{\n\t\tthis.eolMarkerColor = eolMarkerColor;\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ getEOLMarkersPainted() method\n\t/**\n\t * Returns true if EOL markers are drawn, false otherwise.\n\t */\n\tpublic final boolean getEOLMarkersPainted()\n\t{\n\t\treturn eolMarkers;\n\t} //}}}\n\n\t//{{{ setEOLMarkersPainted() method\n\t/**\n\t * Sets if EOL markers are to be drawn.\n\t * @param eolMarkers True if EOL markers should be drawn, false otherwise\n\t */\n\tpublic final void setEOLMarkersPainted(boolean eolMarkers)\n\t{\n\t\tthis.eolMarkers = eolMarkers;\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ getWrapGuideColor() method\n\t/**\n\t * Returns the wrap guide color.\n\t */\n\tpublic final Color getWrapGuideColor()\n\t{\n\t\treturn wrapGuideColor;\n\t} //}}}\n\n\t//{{{ setWrapGuideColor() method\n\t/**\n\t * Sets the wrap guide color.\n\t * @param wrapGuideColor The wrap guide color\n\t */\n\tpublic final void setWrapGuideColor(Color wrapGuideColor)\n\t{\n\t\tthis.wrapGuideColor = wrapGuideColor;\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ isWrapGuidePainted() method\n\t/**\n\t * Returns true if the wrap guide is drawn, false otherwise.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic final boolean isWrapGuidePainted()\n\t{\n\t\treturn wrapGuide;\n\t} //}}}\n\n\t//{{{ setWrapGuidePainted() method\n\t/**\n\t * Sets if the wrap guide is to be drawn.\n\t * @param wrapGuide True if the wrap guide should be drawn, false otherwise\n\t */\n\tpublic final void setWrapGuidePainted(boolean wrapGuide)\n\t{\n\t\tthis.wrapGuide = wrapGuide;\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ getFoldLineStyle() method\n\t/**\n\t * Returns the fold line style. The first element is the style for\n\t * lines with a fold level greater than 3. The remaining elements\n\t * are for fold levels 1 to 3.\n\t */\n\tpublic final SyntaxStyle[] getFoldLineStyle()\n\t{\n\t\treturn foldLineStyle;\n\t} //}}}\n\n\t//{{{ setFoldLineStyle() method\n\t/**\n\t * Sets the fold line style. The first element is the style for\n\t * lines with a fold level greater than 3. The remaining elements\n\t * are for fold levels 1 to 3.\n\t * @param foldLineStyle The fold line style\n\t */\n\tpublic final void setFoldLineStyle(SyntaxStyle[] foldLineStyle)\n\t{\n\t\tthis.foldLineStyle = foldLineStyle;\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ setAntiAliasEnabled() method\n\t/**\n\t * @deprecated use setAntiAlias(AntiAlias newMode)\n\t */\n\t@Deprecated\n\tpublic void setAntiAliasEnabled(boolean isEnabled)\n\t{\n\t\tsetAntiAlias(new AntiAlias(isEnabled));\n\t}\n\t/**\n\t * As of jEdit 4.3pre4, a new JDK 1.6 subpixel antialias mode is supported.\n\t *\n\t * @since jEdit 4.2pre4\n\t */\n\tpublic void setAntiAlias(AntiAlias newValue)\n\t{\n\t\tantiAlias = newValue;\n\t\tupdateRenderingHints();\n\t} //}}}\n\n\t/**\n\t * @return the AntiAlias value that is currently used for TextAreas.\n\t * @since jedit 4.3pre4\n\t */\n\tpublic AntiAlias getAntiAlias()\n\t{\n\t\treturn antiAlias;\n\t}\n\n\t//{{{ isAntiAliasEnabled() method\n\t/**\n\t * Returns if anti-aliasing is enabled.\n\t * @since jEdit 3.2pre6\n\t * @deprecated - use @ref getAntiAlias()\n\t */\n\t@Deprecated\n\tpublic boolean isAntiAliasEnabled()\n\t{\n\t\treturn antiAlias.val() > 0;\n\t} //}}}\n\n\t//{{{ setFractionalFontMetricsEnabled() method\n\t/**\n\t * Sets if fractional font metrics should be enabled. Has no effect when\n\t * running on Java 1.1.\n\t * @since jEdit 3.2pre6\n\t */\n\tpublic void setFractionalFontMetricsEnabled(boolean fracFontMetrics)\n\t{\n\t\tthis.fracFontMetrics = fracFontMetrics;\n\t\tupdateRenderingHints();\n\t} //}}}\n\n\t//{{{ isFractionalFontMetricsEnabled() method\n\t/**\n\t * Returns if fractional font metrics are enabled.\n\t * @since jEdit 3.2pre6\n\t */\n\tpublic boolean isFractionalFontMetricsEnabled()\n\t{\n\t\treturn fracFontMetrics;\n\t} //}}}\n\n\t//{{{ getFontRenderContext() method\n\t/**\n\t * Returns the font render context.\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic FontRenderContext getFontRenderContext()\n\t{\n\t\treturn fontRenderContext;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ addExtension() method\n\t/**\n\t * Adds a text area extension, which can perform custom painting and\n\t * tool tip handling.\n\t * @param extension The extension\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic void addExtension(TextAreaExtension extension)\n\t{\n\t\textensionMgr.addExtension(DEFAULT_LAYER,extension);\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ addExtension() method\n\t/**\n\t * Adds a text area extension, which can perform custom painting and\n\t * tool tip handling.\n\t * @param layer The layer to add the extension to. Note that more than\n\t * extension can share the same layer.\n\t * @param extension The extension\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic void addExtension(int layer, TextAreaExtension extension)\n\t{\n\t\textensionMgr.addExtension(layer,extension);\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ removeExtension() method\n\t/**\n\t * Removes a text area extension. It will no longer be asked to\n\t * perform custom painting and tool tip handling.\n\t * @param extension The extension\n\t * @since jEdit 4.0pre4\n\t */\n\tpublic void removeExtension(TextAreaExtension extension)\n\t{\n\t\textensionMgr.removeExtension(extension);\n\t\trepaint();\n\t} //}}}\n\n\t//{{{ getExtensions() method\n\t/**\n\t * Returns an array of registered text area extensions. Useful for\n\t * debugging purposes.\n\t * @since jEdit 4.1pre5\n\t */\n\tpublic TextAreaExtension[] getExtensions()\n\t{\n\t\treturn extensionMgr.getExtensions();\n\t} //}}}\n\n\t//{{{ getToolTipText() method\n\t/**\n\t * Returns the tool tip to display at the specified location.\n\t * @param evt The mouse event\n\t */\n\t@Override\n\tpublic String getToolTipText(MouseEvent evt)\n\t{\n\t\tif(textArea.getBuffer().isLoading())\n\t\t\treturn null;\n\n\t\treturn extensionMgr.getToolTipText(evt.getX(),evt.getY());\n\t} //}}}\n\n\t//{{{ getFontMetrics() method\n\t/**\n\t * Returns the font metrics used by this component.\n\t */\n\tpublic FontMetrics getFontMetrics()\n\t{\n\t\treturn fm;\n\t} //}}}\n\n\t//{{{ setFont() method\n\t/**\n\t * Sets the font for this component. This is overridden to update the\n\t * cached font metrics and to recalculate which lines are visible.\n\t * @param font The font\n\t */\n\t@Override\n\tpublic void setFont(Font font)\n\t{\n\t\tsuper.setFont(font);\n\t\tfm = getFontMetrics(font);\n\t\ttextArea.recalculateVisibleLines();\n\t\tif(textArea.getBuffer() != null\n\t\t\t&& !textArea.getBuffer().isLoading())\n\t\t\ttextArea.recalculateLastPhysicalLine();\n\t\t//textArea.propertiesChanged();\n\t} //}}}\n\n\t//{{{ getStringWidth() method\n\t/**\n\t * Returns the width of the given string, in pixels, using the text\n\t * area's current font.\n\t *\n\t * @since jEdit 4.2final\n\t */\n\tpublic float getStringWidth(String str)\n\t{\n\t\tif(textArea.charWidth != 0)\n\t\t\treturn textArea.charWidth * str.length();\n\t\telse\n\t\t{\n\t\t\treturn (float)getFont().getStringBounds(\n\t\t\t\tstr,getFontRenderContext()).getWidth();\n\t\t}\n\t} //}}}\n\n\t//{{{ update() method\n\t/**\n\t * Repaints the text.\n\t * @param _gfx The graphics context\n\t */\n\t@Override\n\tpublic void update(Graphics _gfx)\n\t{\n\t\tpaint(_gfx);\n\t} //}}}\n\n\t//{{{ paint() method\n\t/**\n\t * Repaints the text.\n\t * @param _gfx The graphics context\n\t */\n\t@Override\n\tpublic void paint(Graphics _gfx)\n\t{\n\t\tassert _gfx instanceof Graphics2D;\n\t\tGraphics2D gfx = (Graphics2D)_gfx;\n\t\tgfx.setRenderingHints(renderingHints);\n\t\tfontRenderContext = gfx.getFontRenderContext();\n\n\t\tRectangle clipRect = gfx.getClipBounds();\n\t\tint lineHeight = fm.getHeight();\n\t\tif(lineHeight == 0 || textArea.getBuffer().isLoading())\n\t\t{\n\t\t\tgfx.setColor(getBackground());\n\t\t\tgfx.fillRect(clipRect.x,clipRect.y,clipRect.width,clipRect.height);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlong prepareTime = System.nanoTime();\n\t\t\t// Because the clipRect's height is usually an even multiple\n\t\t\t// of the font height, we subtract 1 from it, otherwise one\n\t\t\t// too many lines will always be painted.\n\t\t\tint firstLine = clipRect.y / lineHeight;\n\t\t\tint lastLine = (clipRect.y + clipRect.height - 1) / lineHeight;\n\t\t\tgfx.setColor(getBackground());\n\t\t\tgfx.setFont(getFont());\n\t\t\tprepareTime = System.nanoTime() - prepareTime;\n\n\t\t\tlong linesTime = System.nanoTime();\n\t\t\tint numLines = lastLine - firstLine + 1;\n\t\t\tint y = firstLine * lineHeight;\n\t\t\tgfx.fillRect(0,y,getWidth(),numLines * lineHeight);\n\t\t\textensionMgr.paintScreenLineRange(textArea,gfx,\n\t\t\t\tfirstLine,lastLine,y,lineHeight);\n\t\t\tlinesTime = System.nanoTime() - linesTime;\n\n\t\t\tif(Debug.PAINT_TIMER && numLines >= 1)\n\t\t\t\tLog.log(Log.DEBUG,this,\"repainting \" + numLines + \" lines took \" + prepareTime + \"/\" + linesTime + \" ns\");\n\t\t}\n\n\t\ttextArea.updateMaxHorizontalScrollWidth();\n\t} //}}}\n\n\t//{{{ nextTabStop() method\n\t/**\n\t * Implementation of TabExpander interface. Returns next tab stop after\n\t * a specified point.\n\t * @param x The x co-ordinate\n\t * @param tabOffset Ignored\n\t * @return The next tab stop after <i>x</i>\n\t */\n\tpublic float nextTabStop(float x, int tabOffset)\n\t{\n\t\tint ntabs = (int)(x / textArea.tabSize);\n\t\treturn (ntabs + 1) * textArea.tabSize;\n\t} //}}}\n\n\t//{{{ getPreferredSize() method\n\t/**\n\t * Returns the painter's preferred size.\n\t */\n\t@Override\n\tpublic Dimension getPreferredSize()\n\t{\n\t\tDimension dim = new Dimension();\n\n\t\tchar[] foo = new char[80];\n\t\tfor(int i = 0; i < foo.length; i++)\n\t\t\tfoo[i] = ' ';\n\t\tdim.width = (int)getStringWidth(new String(foo));\n\t\tdim.height = fm.getHeight() * 25;\n\t\treturn dim;\n\t} //}}}\n\n\t//{{{ getMinimumSize() method\n\t/**\n\t * Returns the painter's minimum size.\n\t */\n\t@Override\n\tpublic Dimension getMinimumSize()\n\t{\n\t\treturn getPreferredSize();\n\t} //}}}\n\n\t//{{{ Package-private members\n\n\t//{{{ Instance variables\n\t/* package-private since they are accessed by inner classes and we\n\t * want this to be fast */\n\tTextArea textArea;\n\n\tSyntaxStyle[] styles;\n\tColor caretColor;\n\tColor selectionColor;\n\tColor multipleSelectionColor;\n\tColor lineHighlightColor;\n\tColor structureHighlightColor;\n\tColor eolMarkerColor;\n\tColor wrapGuideColor;\n\n\tSyntaxStyle[] foldLineStyle;\n\n\tboolean blockCaret;\n\tboolean thickCaret;\n\tboolean lineHighlight;\n\tboolean structureHighlight;\n\tboolean eolMarkers;\n\tboolean wrapGuide;\n\tAntiAlias antiAlias;\n\tboolean fracFontMetrics;\n\tRenderingHints renderingHints;\n\t// should try to use this as little as possible.\n\tFontMetrics fm;\n\t//}}}\n\n\t//{{{ TextAreaPainter constructor\n\t/**\n\t * Creates a new painter. Do not create instances of this class\n\t * directly.\n\t */\n\tTextAreaPainter(TextArea textArea)\n\t{\n\t\tenableEvents(AWTEvent.FOCUS_EVENT_MASK\n\t\t\t| AWTEvent.KEY_EVENT_MASK\n\t\t\t| AWTEvent.MOUSE_EVENT_MASK);\n\n\t\tthis.textArea = textArea;\n\t\tantiAlias = new AntiAlias(0);\n\t\tfonts = new HashMap();\n\t\textensionMgr = new ExtensionManager();\n\n\t\tsetAutoscrolls(true);\n\t\tsetOpaque(true);\n\t\tsetRequestFocusEnabled(false);\n\t\tsetDoubleBuffered(false);\n\n\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));\n\n\t\tfontRenderContext = new FontRenderContext(null,false,false);\n\n\t\taddExtension(LINE_BACKGROUND_LAYER,new PaintLineBackground());\n\t\taddExtension(SELECTION_LAYER,new PaintSelection());\n\t\taddExtension(WRAP_GUIDE_LAYER,new PaintWrapGuide());\n\t\taddExtension(BRACKET_HIGHLIGHT_LAYER,new StructureMatcher\n\t\t\t.Highlight(textArea));\n\t\taddExtension(TEXT_LAYER,new PaintText());\n\t\tcaretExtension = new PaintCaret();\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate final ExtensionManager extensionMgr;\n\tprivate final PaintCaret caretExtension;\n\tprivate FontRenderContext fontRenderContext;\n\tprivate final Map fonts;\n\t//}}}\n\n\tprivate static Object sm_hrgbRender;\n\tprivate static Constructor<FontRenderContext> sm_frcConstructor;\n\n\tstatic\n\t{\n\t\ttry\n\t\t{\n\t\t\tField f = RenderingHints.class.getField(\"VALUE_TEXT_ANTIALIAS_LCD_HRGB\");\n\t\t\tsm_hrgbRender = f.get(null);\n\t\t\tClass[] fracFontMetricsTypeList = {AffineTransform.class, Object.class, Object.class};\n\t\t\tsm_frcConstructor = FontRenderContext.class.getConstructor(fracFontMetricsTypeList);\n\t\t}\n\t\tcatch (NullPointerException npe) {}\n\t\tcatch (SecurityException se) {}\n\t\tcatch (NoSuchFieldException nsfe) {}\n\t\tcatch (IllegalArgumentException iae) {}\n\t\tcatch (IllegalAccessException iae) {}\n\t\tcatch (NoSuchMethodException nsme) {}\n\t}\n\t//{{{ updateRenderingHints() method\n\tprivate void updateRenderingHints()\n\t{\n\t\tMap<RenderingHints.Key,Object> hints = new HashMap<RenderingHints.Key,Object>();\n\n\t\thints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n\t\t\tfracFontMetrics ? RenderingHints.VALUE_FRACTIONALMETRICS_ON\n\t\t\t\t: RenderingHints.VALUE_FRACTIONALMETRICS_OFF);\n\n\t\tif (antiAlias.val() == 0)\n\t\t{\n\t\t\thints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);\n\t\t\thints.put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);\n\t\t\tfontRenderContext = new FontRenderContext(null, antiAlias.val() > 0, fracFontMetrics);\n\t\t}\n\t\t/** LCD HRGB mode - works with JRE 1.6 only, which is why we use reflection */\n\t\telse if (antiAlias.val() == 2 && sm_hrgbRender != null )\n\t\t{\n\t\t\thints.put(RenderingHints.KEY_TEXT_ANTIALIASING, sm_hrgbRender);\n\t\t\tObject fontRenderHint = fracFontMetrics ?\n\t\t\t\tRenderingHints.VALUE_FRACTIONALMETRICS_ON :\n\t\t\t\tRenderingHints.VALUE_FRACTIONALMETRICS_OFF;\n\t\t\tObject[] paramList = {null, sm_hrgbRender, fontRenderHint};\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfontRenderContext = sm_frcConstructor.newInstance(paramList);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tfontRenderContext = new FontRenderContext(null, antiAlias.val() > 0, fracFontMetrics);\n\t\t\t}\n\t\t}\n\t\telse /** Standard Antialias Version */\n\t\t{\n\t\t\thints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\thints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\thints.put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t\t\tfontRenderContext = new FontRenderContext(null, antiAlias.val() > 0, fracFontMetrics);\n\t\t}\n\n\t\trenderingHints = new RenderingHints(hints);\n\n\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ PaintLineBackground class\n\tprivate class PaintLineBackground extends TextAreaExtension\n\t{\n\t\t//{{{ shouldPaintLineHighlight() method\n\t\tprivate boolean shouldPaintLineHighlight(int caret, int start, int end)\n\t\t{\n\t\t\tif(!isLineHighlightEnabled()\n\t\t\t\t|| caret < start || caret >= end)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tint count = textArea.getSelectionCount();\n\t\t\tif(count == 1)\n\t\t\t{\n\t\t\t\tSelection s = textArea.getSelection(0);\n\t\t\t\treturn s.getStartLine() == s.getEndLine();\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn count == 0;\n\t\t} //}}}\n\n\t\t//{{{ paintValidLine() method\n\t\t@Override\n\t\tpublic void paintValidLine(Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, int start, int end, int y)\n\t\t{\n\t\t\t// minimise access$ methods\n\t\t\tTextArea textArea = TextAreaPainter.this.textArea;\n\t\t\tJEditBuffer buffer = textArea.getBuffer();\n\n\t\t\t//{{{ Paint line highlight and collapsed fold highlight\n\t\t\tboolean collapsedFold =\n\t\t\t\tphysicalLine < buffer.getLineCount() - 1\n\t\t\t\t&& buffer.isFoldStart(physicalLine)\n\t\t\t\t&& !textArea.displayManager\n\t\t\t\t.isLineVisible(physicalLine + 1);\n\n\t\t\tSyntaxStyle foldLineStyle = null;\n\t\t\tif(collapsedFold)\n\t\t\t{\n\t\t\t\tint level = buffer.getFoldLevel(physicalLine + 1);\n\t\t\t\tif(buffer.getFoldHandler() instanceof IndentFoldHandler)\n\t\t\t\t\tlevel = Math.max(1,level / buffer.getIndentSize());\n\t\t\t\tif(level > 3)\n\t\t\t\t\tlevel = 0;\n\t\t\t\tfoldLineStyle = TextAreaPainter.this.foldLineStyle[level];\n\t\t\t}\n\n\t\t\tint caret = textArea.getCaretPosition();\n\t\t\tboolean paintLineHighlight = shouldPaintLineHighlight(\n\t\t\t\tcaret,start,end);\n\n\t\t\tColor bgColor;\n\t\t\tif(paintLineHighlight)\n\t\t\t\tbgColor = lineHighlightColor;\n\t\t\telse if(collapsedFold)\n\t\t\t{\n\t\t\t\tbgColor = foldLineStyle.getBackgroundColor();\n\t\t\t\tif(bgColor == null)\n\t\t\t\t\tbgColor = getBackground();\n\t\t\t}\n\t\t\telse\n\t\t\t\tbgColor = getBackground();\n\n\t\t\tif(paintLineHighlight || collapsedFold)\n\t\t\t{\n\t\t\t\tgfx.setColor(bgColor);\n\t\t\t\tgfx.fillRect(0,y,getWidth(),fm.getHeight());\n\t\t\t} //}}}\n\n\t\t\t//{{{ Paint token backgrounds\n\t\t\tChunkCache.LineInfo lineInfo = textArea.chunkCache\n\t\t\t\t.getLineInfo(screenLine);\n\n\t\t\tif(lineInfo.chunks != null)\n\t\t\t{\n\t\t\t\tfloat baseLine = y + fm.getHeight()\n\t\t\t\t\t- (fm.getLeading()+1) - fm.getDescent();\n\t\t\t\tChunk.paintChunkBackgrounds(\n\t\t\t\t\tlineInfo.chunks,gfx,\n\t\t\t\t\ttextArea.getHorizontalOffset(),\n\t\t\t\t\tbaseLine);\n\t\t\t} //}}}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ PaintSelection class\n\tprivate class PaintSelection extends TextAreaExtension\n\t{\n\t\t//{{{ paintValidLine() method\n\t\t@Override\n\t\tpublic void paintValidLine(Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, int start, int end, int y)\n\t\t{\n\t\t\tif(textArea.getSelectionCount() == 0)\n\t\t\t\treturn;\n\n\t\t\tgfx.setColor(textArea.isMultipleSelectionEnabled()\n\t\t\t\t? getMultipleSelectionColor()\n\t\t\t\t: getSelectionColor());\n\n\t\t\tIterator<Selection> iter = textArea.getSelectionIterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tSelection s = iter.next();\n\t\t\t\tpaintSelection(gfx,screenLine,physicalLine,y,s);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ paintSelection() method\n\t\tprivate void paintSelection(Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, int y, Selection s)\n\t\t{\n\t\t\tint[] selectionStartAndEnd\n\t\t\t\t= textArea.selectionManager\n\t\t\t\t.getSelectionStartAndEnd(\n\t\t\t\tscreenLine,physicalLine,s);\n\t\t\tif(selectionStartAndEnd == null)\n\t\t\t\treturn;\n\n\t\t\tint x1 = selectionStartAndEnd[0];\n\t\t\tint x2 = selectionStartAndEnd[1];\n\n\t\t\tgfx.fillRect(x1,y,x2 - x1,fm.getHeight());\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ PaintWrapGuide class\n\tprivate class PaintWrapGuide extends TextAreaExtension\n\t{\n\t\t@Override\n\t\tpublic void paintScreenLineRange(Graphics2D gfx, int firstLine,\n\t\t\tint lastLine, int[] physicalLines, int[] start,\n\t\t\tint[] end, int y, int lineHeight)\n\t\t{\n\t\t\tif(textArea.wrapMargin != 0\n\t\t\t\t&& !textArea.wrapToWidth\n\t\t\t\t&& isWrapGuidePainted())\n\t\t\t{\n\t\t\t\tgfx.setColor(getWrapGuideColor());\n\t\t\t\tint x = textArea.getHorizontalOffset()\n\t\t\t\t\t+ textArea.wrapMargin;\n\t\t\t\tgfx.drawLine(x,y,x,y + (lastLine - firstLine\n\t\t\t\t\t+ 1) * lineHeight);\n\t\t\t}\n\t\t}\n\n\t\t@Override\n\t\tpublic String getToolTipText(int x, int y)\n\t\t{\n\t\t\tif(textArea.wrapMargin != 0\n\t\t\t\t&& !textArea.wrapToWidth\n\t\t\t\t&& isWrapGuidePainted())\n\t\t\t{\n\t\t\t\tint wrapGuidePos = textArea.wrapMargin\n\t\t\t\t\t+ textArea.getHorizontalOffset();\n\t\t\t\tif(Math.abs(x - wrapGuidePos) < 5)\n\t\t\t\t{\n\t\t\t\t\treturn String.valueOf(textArea.getBuffer()\n\t\t\t\t\t\t.getProperty(\"maxLineLen\"));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\t} //}}}\n\n\t//{{{ PaintText class\n\tprivate class PaintText extends TextAreaExtension\n\t{\n\t\t@Override\n\t\tpublic void paintValidLine(Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, int start, int end, int y)\n\t\t{\n\t\t\tChunkCache.LineInfo lineInfo = textArea.chunkCache\n\t\t\t\t.getLineInfo(screenLine);\n\n\t\t\tFont defaultFont = getFont();\n\t\t\tColor defaultColor = getForeground();\n\n\t\t\tgfx.setFont(defaultFont);\n\t\t\tgfx.setColor(defaultColor);\n\n\t\t\tint x = textArea.getHorizontalOffset();\n\t\t\tint originalX = x;\n\n\t\t\tfloat baseLine = y + fm.getHeight()\n\t\t\t\t- (fm.getLeading()+1) - fm.getDescent();\n\n\t\t\tif(lineInfo.chunks != null)\n\t\t\t{\n\t\t\t\tx += Chunk.paintChunkList(lineInfo.chunks,\n\t\t\t\t\tgfx,textArea.getHorizontalOffset(),\n\t\t\t\t\tbaseLine,!Debug.DISABLE_GLYPH_VECTOR);\n\t\t\t}\n\n\t\t\tJEditBuffer buffer = textArea.getBuffer();\n\n\t\t\tif(!lineInfo.lastSubregion)\n\t\t\t{\n\t\t\t\tgfx.setFont(defaultFont);\n\t\t\t\tgfx.setColor(eolMarkerColor);\n\t\t\t\tgfx.drawString(\":\",Math.max(x,\n\t\t\t\t\ttextArea.getHorizontalOffset()\n\t\t\t\t\t+ textArea.wrapMargin + textArea.charWidth),\n\t\t\t\t\tbaseLine);\n\t\t\t\tx += textArea.charWidth;\n\t\t\t}\n\t\t\telse if(physicalLine < buffer.getLineCount() - 1\n\t\t\t\t&& buffer.isFoldStart(physicalLine)\n\t\t\t\t&& !textArea.displayManager\n\t\t\t\t.isLineVisible(physicalLine + 1))\n\t\t\t{\n\t\t\t\tint level = buffer.getFoldLevel(physicalLine + 1);\n\t\t\t\tif(buffer.getFoldHandler() instanceof IndentFoldHandler)\n\t\t\t\t\tlevel = Math.max(1,level / buffer.getIndentSize());\n\t\t\t\tif(level > 3)\n\t\t\t\t\tlevel = 0;\n\t\t\t\tSyntaxStyle foldLineStyle = TextAreaPainter.this.foldLineStyle[level];\n\n\t\t\t\tFont font = foldLineStyle.getFont();\n\t\t\t\tgfx.setFont(font);\n\t\t\t\tgfx.setColor(foldLineStyle.getForegroundColor());\n\n\t\t\t\tint nextLine;\n\t\t\t\tint nextScreenLine = screenLine + 1;\n\t\t\t\tif(nextScreenLine < textArea.getVisibleLines())\n\t\t\t\t{\n\t\t\t\t\tnextLine = textArea.chunkCache.getLineInfo(nextScreenLine)\n\t\t\t\t\t\t.physicalLine;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tnextLine = textArea.displayManager\n\t\t\t\t\t\t.getNextVisibleLine(physicalLine);\n\t\t\t\t}\n\n\t\t\t\tif(nextLine == -1)\n\t\t\t\t\tnextLine = textArea.getLineCount();\n\n\t\t\t\tint count = nextLine - physicalLine - 1;\n\t\t\t\tString str = \" [\" + count + \" lines]\";\n\n\t\t\t\tfloat width = getStringWidth(str);\n\n\t\t\t\tgfx.drawString(str,x,baseLine);\n\t\t\t\tx += width;\n\t\t\t}\n\t\t\telse if(eolMarkers)\n\t\t\t{\n\t\t\t\tgfx.setFont(defaultFont);\n\t\t\t\tgfx.setColor(eolMarkerColor);\n\t\t\t\tgfx.drawString(\".\",x,baseLine);\n\t\t\t\tx += textArea.charWidth;\n\t\t\t}\n\n\t\t\tlineInfo.width = x - originalX;\n\t\t}\n\t} //}}}\n\n\t//{{{ PaintCaret class\n\tprivate class PaintCaret extends TextAreaExtension\n\t{\n\t\t@Override\n\t\tpublic void paintValidLine(Graphics2D gfx, int screenLine,\n\t\t\tint physicalLine, int start, int end, int y)\n\t\t{\n\t\t\tif(!textArea.isCaretVisible())\n\t\t\t\treturn;\n\n\t\t\tint caret = textArea.getCaretPosition();\n\t\t\tif(caret < start || caret >= end)\n\t\t\t\treturn;\n\n\t\t\tint offset = caret - textArea.getLineStartOffset(physicalLine);\n\t\t\ttextArea.offsetToXY(physicalLine,\n\t\t\t\t\t    offset, textArea.offsetXY);\n\t\t\tint caretX = textArea.offsetXY.x;\n\t\t\tint lineHeight = fm.getHeight();\n\n\t\t\tgfx.setColor(caretColor);\n\n\t\t\tif(textArea.isOverwriteEnabled())\n\t\t\t{\n\t\t\t\tgfx.drawLine(caretX,y + lineHeight - 1,\n\t\t\t\t\t     caretX + textArea.charWidth,\n\t\t\t\t\t     y + lineHeight - 1);\n\t\t\t}\n\t\t\telse if(blockCaret)\n\t\t\t\tgfx.drawRect(caretX,y,textArea.charWidth - 1,\n\t\t\t\t\t     lineHeight - 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (thickCaret)\n\t\t\t\t\tgfx.drawRect(caretX, y,\n\t\t\t\t\t\t1, lineHeight - 1);\n\t\t\t\telse\n\t\t\t\t\tgfx.drawLine(caretX,y,\n\t\t\t\t\t\tcaretX,y + lineHeight - 1);", "functions": [{"function_name": "setBounds", "code": "\t@Override\n\tpublic void setBounds(int x, int y, int width, int height)\n\t{\n\t\tif(x == getX() && y == getY() && width == getWidth()\n\t\t\t&& height == getHeight())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.setBounds(x,y,width,height);\n\n\t\ttextArea.recalculateVisibleLines();\n\t\tif(!textArea.getBuffer().isLoading())\n\t\t\ttextArea.recalculateLastPhysicalLine();\n\t\ttextArea.propertiesChanged();\n\t\ttextArea.updateMaxHorizontalScrollWidth();\n\t\ttextArea.scrollBarsInitialized = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [2, 12], [7, 13], [1, 14], [10, 15], [2, 16], [12, 17], [12, 18], [17, 19], [18, 20], [18, 21], [20, 22], [21, 23], [21, 24], [23, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 2], [13, 7], [14, 1], [15, 10], [16, 2], [17, 12], [18, 12], [19, 17], [20, 18], [21, 18], [22, 20], [23, 21], [24, 21], [25, 23], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getFocusTraversalKeysEnabled", "code": "\t@Override\n\tpublic boolean getFocusTraversalKeysEnabled()\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStyles", "code": "\tpublic final SyntaxStyle[] getStyles()\n\t{\n\t\treturn styles;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStyles", "code": "\tpublic final void setStyles(SyntaxStyle[] styles)\n\t{\n\t\t// assumed this is called after a font render context is set up.\n\t\t// changing font render context settings without a setStyles()\n\t\t// call will not reset cached monospaced font info.\n\t\tfonts.clear();\n\n\t\tthis.styles = styles;\n\t\tstyles[Token.NULL] = new SyntaxStyle(getForeground(),null,getFont());\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [6, 7], [6, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 6], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getCaretColor", "code": "\tpublic final Color getCaretColor()\n\t{\n\t\treturn caretColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCaretColor", "code": "\tpublic final void setCaretColor(Color caretColor)\n\t{\n\t\tthis.caretColor = caretColor;\n\t\tif(textArea.getBuffer() != null)\n\t\t\ttextArea.invalidateLine(textArea.getCaretLine());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [3, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 3], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSelectionColor", "code": "\tpublic final Color getSelectionColor()\n\t{\n\t\treturn selectionColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSelectionColor", "code": "\tpublic final void setSelectionColor(Color selectionColor)\n\t{\n\t\tthis.selectionColor = selectionColor;\n\t\ttextArea.repaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMultipleSelectionColor", "code": "\tpublic final Color getMultipleSelectionColor()\n\t{\n\t\treturn multipleSelectionColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMultipleSelectionColor", "code": "\tpublic final void setMultipleSelectionColor(Color multipleSelectionColor)\n\t{\n\t\tthis.multipleSelectionColor = multipleSelectionColor;\n\t\ttextArea.repaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLineHighlightColor", "code": "\tpublic final Color getLineHighlightColor()\n\t{\n\t\treturn lineHighlightColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLineHighlightColor", "code": "\tpublic final void setLineHighlightColor(Color lineHighlightColor)\n\t{\n\t\tthis.lineHighlightColor = lineHighlightColor;\n\t\tif(textArea.getBuffer() != null)\n\t\t\ttextArea.invalidateLine(textArea.getCaretLine());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [3, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 3], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isLineHighlightEnabled", "code": "\tpublic final boolean isLineHighlightEnabled()\n\t{\n\t\treturn lineHighlight;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLineHighlightEnabled", "code": "\tpublic final void setLineHighlightEnabled(boolean lineHighlight)\n\t{\n\t\tthis.lineHighlight = lineHighlight;\n\t\ttextArea.repaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStructureHighlightColor", "code": "\tpublic final Color getStructureHighlightColor()\n\t{\n\t\treturn structureHighlightColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStructureHighlightColor", "code": "\tpublic final void setStructureHighlightColor(\n\t\tColor structureHighlightColor)\n\t{\n\t\tthis.structureHighlightColor = structureHighlightColor;\n\t\ttextArea.invalidateStructureMatch();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isStructureHighlightEnabled", "code": "\tpublic final boolean isStructureHighlightEnabled()\n\t{\n\t\treturn structureHighlight;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStructureHighlightEnabled", "code": "\tpublic final void setStructureHighlightEnabled(boolean structureHighlight)\n\t{\n\t\tthis.structureHighlight = structureHighlight;\n\t\ttextArea.invalidateStructureMatch();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isBlockCaretEnabled", "code": "\tpublic final boolean isBlockCaretEnabled()\n\t{\n\t\treturn blockCaret;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBlockCaretEnabled", "code": "\tpublic final void setBlockCaretEnabled(boolean blockCaret)\n\t{\n\t\tthis.blockCaret = blockCaret;\n\t\textensionMgr.removeExtension(caretExtension);\n\t\tif(blockCaret)\n\t\t\taddExtension(BLOCK_CARET_LAYER,caretExtension);\n\t\telse\n\t\t\taddExtension(CARET_LAYER,caretExtension);\n\t\tif(textArea.getBuffer() != null)\n\t\t\ttextArea.invalidateLine(textArea.getCaretLine());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [4, 8], [4, 9], [2, 10], [2, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 4], [9, 4], [10, 2], [11, 2], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "isThickCaretEnabled", "code": "\tpublic final boolean isThickCaretEnabled()\n\t{\n\t\treturn thickCaret;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setThickCaretEnabled", "code": "\tpublic final void setThickCaretEnabled(boolean thickCaret)\n\t{\n\t\tthis.thickCaret = thickCaret;\n\t\tif(textArea.getBuffer() != null)\n\t\t\ttextArea.invalidateLine(textArea.getCaretLine());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [3, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 3], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getEOLMarkerColor", "code": "\tpublic final Color getEOLMarkerColor()\n\t{\n\t\treturn eolMarkerColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEOLMarkerColor", "code": "\tpublic final void setEOLMarkerColor(Color eolMarkerColor)\n\t{\n\t\tthis.eolMarkerColor = eolMarkerColor;\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEOLMarkersPainted", "code": "\tpublic final boolean getEOLMarkersPainted()\n\t{\n\t\treturn eolMarkers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEOLMarkersPainted", "code": "\tpublic final void setEOLMarkersPainted(boolean eolMarkers)\n\t{\n\t\tthis.eolMarkers = eolMarkers;\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getWrapGuideColor", "code": "\tpublic final Color getWrapGuideColor()\n\t{\n\t\treturn wrapGuideColor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWrapGuideColor", "code": "\tpublic final void setWrapGuideColor(Color wrapGuideColor)\n\t{\n\t\tthis.wrapGuideColor = wrapGuideColor;\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isWrapGuidePainted", "code": "\tpublic final boolean isWrapGuidePainted()\n\t{\n\t\treturn wrapGuide;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWrapGuidePainted", "code": "\tpublic final void setWrapGuidePainted(boolean wrapGuide)\n\t{\n\t\tthis.wrapGuide = wrapGuide;\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFoldLineStyle", "code": "\tpublic final SyntaxStyle[] getFoldLineStyle()\n\t{\n\t\treturn foldLineStyle;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFoldLineStyle", "code": "\tpublic final void setFoldLineStyle(SyntaxStyle[] foldLineStyle)\n\t{\n\t\tthis.foldLineStyle = foldLineStyle;\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAntiAliasEnabled", "code": "\t@Deprecated\n\tpublic void setAntiAliasEnabled(boolean isEnabled)\n\t{\n\t\tsetAntiAlias(new AntiAlias(isEnabled));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAntiAlias", "code": "\tpublic void setAntiAlias(AntiAlias newValue)\n\t{\n\t\tantiAlias = newValue;\n\t\tupdateRenderingHints();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAntiAlias", "code": "\tpublic AntiAlias getAntiAlias()\n\t{\n\t\treturn antiAlias;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isAntiAliasEnabled", "code": "\t@Deprecated\n\tpublic boolean isAntiAliasEnabled()\n\t{\n\t\treturn antiAlias.val() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setFractionalFontMetricsEnabled", "code": "\tpublic void setFractionalFontMetricsEnabled(boolean fracFontMetrics)\n\t{\n\t\tthis.fracFontMetrics = fracFontMetrics;\n\t\tupdateRenderingHints();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isFractionalFontMetricsEnabled", "code": "\tpublic boolean isFractionalFontMetricsEnabled()\n\t{\n\t\treturn fracFontMetrics;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFontRenderContext", "code": "\tpublic FontRenderContext getFontRenderContext()\n\t{\n\t\treturn fontRenderContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addExtension", "code": "\tpublic void addExtension(TextAreaExtension extension)\n\t{\n\t\textensionMgr.addExtension(DEFAULT_LAYER,extension);\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addExtension", "code": "\tpublic void addExtension(int layer, TextAreaExtension extension)\n\t{\n\t\textensionMgr.addExtension(layer,extension);\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeExtension", "code": "\tpublic void removeExtension(TextAreaExtension extension)\n\t{\n\t\textensionMgr.removeExtension(extension);\n\t\trepaint();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getExtensions", "code": "\tpublic TextAreaExtension[] getExtensions()\n\t{\n\t\treturn extensionMgr.getExtensions();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getToolTipText", "code": "\t@Override\n\tpublic String getToolTipText(MouseEvent evt)\n\t{\n\t\tif(textArea.getBuffer().isLoading())\n\t\t\treturn null;\n\n\t\treturn extensionMgr.getToolTipText(evt.getX(),evt.getY());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [4, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 4], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getFontMetrics", "code": "\tpublic FontMetrics getFontMetrics()\n\t{\n\t\treturn fm;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFont", "code": "\t@Override\n\tpublic void setFont(Font font)\n\t{\n\t\tsuper.setFont(font);\n\t\tfm = getFontMetrics(font);\n\t\ttextArea.recalculateVisibleLines();\n\t\tif(textArea.getBuffer() != null\n\t\t\t&& !textArea.getBuffer().isLoading())\n\t\t\ttextArea.recalculateLastPhysicalLine();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [1, 6], [3, 7], [3, 8], [5, 9], [7, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 1], [7, 3], [8, 3], [9, 5], [10, 7], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getStringWidth", "code": "\tpublic float getStringWidth(String str)\n\t{\n\t\tif(textArea.charWidth != 0)\n\t\t\treturn textArea.charWidth * str.length();\n\t\telse\n\t\t{\n\t\t\treturn (float)getFont().getStringBounds(\n\t\t\t\tstr,getFontRenderContext()).getWidth();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [6, 8], [5, 9], [9, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 6], [9, 5], [10, 9], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "update", "code": "\t@Override\n\tpublic void update(Graphics _gfx)\n\t{\n\t\tpaint(_gfx);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "paint", "code": "\t@Override\n\tpublic void paint(Graphics _gfx)\n\t{\n\t\tassert _gfx instanceof Graphics2D;\n\t\tGraphics2D gfx = (Graphics2D)_gfx;\n\t\tgfx.setRenderingHints(renderingHints);\n\t\tfontRenderContext = gfx.getFontRenderContext();\n\n\t\tRectangle clipRect = gfx.getClipBounds();\n\t\tint lineHeight = fm.getHeight();\n\t\tif(lineHeight == 0 || textArea.getBuffer().isLoading())\n\t\t{\n\t\t\tgfx.setColor(getBackground());\n\t\t\tgfx.fillRect(clipRect.x,clipRect.y,clipRect.width,clipRect.height);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlong prepareTime = System.nanoTime();\n\t\t\t// Because the clipRect's height is usually an even multiple\n\t\t\t// of the font height, we subtract 1 from it, otherwise one\n\t\t\t// too many lines will always be painted.\n\t\t\tint firstLine = clipRect.y / lineHeight;\n\t\t\tint lastLine = (clipRect.y + clipRect.height - 1) / lineHeight;\n\t\t\tgfx.setColor(getBackground());\n\t\t\tgfx.setFont(getFont());\n\t\t\tprepareTime = System.nanoTime() - prepareTime;\n\n\t\t\tlong linesTime = System.nanoTime();\n\t\t\tint numLines = lastLine - firstLine + 1;\n\t\t\tint y = firstLine * lineHeight;\n\t\t\tgfx.fillRect(0,y,getWidth(),numLines * lineHeight);\n\t\t\textensionMgr.paintScreenLineRange(textArea,gfx,\n\t\t\t\tfirstLine,lastLine,y,lineHeight);\n\t\t\tlinesTime = System.nanoTime() - linesTime;\n\n\t\t\tif(Debug.PAINT_TIMER && numLines >= 1)\n\t\t\t\tLog.log(Log.DEBUG,this,\"repainting \" + numLines + \" lines took \" + prepareTime + \"/\" + linesTime + \" ns\");\n\t\t}\n\n\t\ttextArea.updateMaxHorizontalScrollWidth();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSERT", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [5, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [8, 19], [8, 20], [2, 21], [3, 22], [9, 23], [12, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [19, 33], [20, 34], [12, 35], [24, 36], [25, 37], [27, 38], [27, 39], [27, 40], [13, 41], [14, 42], [15, 43], [28, 44], [29, 45], [30, 46], [16, 47], [17, 48], [18, 49], [32, 50], [35, 51], [36, 52], [37, 53], [42, 54], [42, 55], [44, 56], [47, 57], [51, 58], [51, 59], [57, 60], [57, 61], [59, 62], [62, 63], [62, 64], [64, 65], [65, 66], [65, 67], [67, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 5], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 8], [20, 8], [21, 2], [22, 3], [23, 9], [24, 12], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 19], [34, 20], [35, 12], [36, 24], [37, 25], [38, 27], [39, 27], [40, 27], [41, 13], [42, 14], [43, 15], [44, 28], [45, 29], [46, 30], [47, 16], [48, 17], [49, 18], [50, 32], [51, 35], [52, 36], [53, 37], [54, 42], [55, 42], [56, 44], [57, 47], [58, 51], [59, 51], [60, 57], [61, 57], [62, 59], [63, 62], [64, 62], [65, 64], [66, 65], [67, 65], [68, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "nextTabStop", "code": "\tpublic float nextTabStop(float x, int tabOffset)\n\t{\n\t\tint ntabs = (int)(x / textArea.tabSize);\n\t\treturn (ntabs + 1) * textArea.tabSize;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [6, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 6], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getPreferredSize", "code": "\t@Override\n\tpublic Dimension getPreferredSize()\n\t{\n\t\tDimension dim = new Dimension();\n\n\t\tchar[] foo = new char[80];\n\t\tfor(int i = 0; i < foo.length; i++)\n\t\t\tfoo[i] = ' ';\n\t\tdim.width = (int)getStringWidth(new String(foo));\n\t\tdim.height = fm.getHeight() * 25;\n\t\treturn dim;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [5, 8], [2, 9], [4, 10], [8, 11], [8, 12], [6, 13], [9, 14], [2, 15], [3, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 5], [9, 2], [10, 4], [11, 8], [12, 8], [13, 6], [14, 9], [15, 2], [16, 3], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getMinimumSize", "code": "\t@Override\n\tpublic Dimension getMinimumSize()\n\t{\n\t\treturn getPreferredSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "updateRenderingHints", "code": "\tprivate void updateRenderingHints()\n\t{\n\t\tMap<RenderingHints.Key,Object> hints = new HashMap<RenderingHints.Key,Object>();\n\n\t\thints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n\t\t\tfracFontMetrics ? RenderingHints.VALUE_FRACTIONALMETRICS_ON\n\t\t\t\t: RenderingHints.VALUE_FRACTIONALMETRICS_OFF);\n\n\t\tif (antiAlias.val() == 0)\n\t\t{\n\t\t\thints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);\n\t\t\thints.put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);\n\t\t\tfontRenderContext = new FontRenderContext(null, antiAlias.val() > 0, fracFontMetrics);\n\t\t}\n\t\t/** LCD HRGB mode - works with JRE 1.6 only, which is why we use reflection */\n\t\telse if (antiAlias.val() == 2 && sm_hrgbRender != null )\n\t\t{\n\t\t\thints.put(RenderingHints.KEY_TEXT_ANTIALIASING, sm_hrgbRender);\n\t\t\tObject fontRenderHint = fracFontMetrics ?\n\t\t\t\tRenderingHints.VALUE_FRACTIONALMETRICS_ON :\n\t\t\t\tRenderingHints.VALUE_FRACTIONALMETRICS_OFF;\n\t\t\tObject[] paramList = {null, sm_hrgbRender, fontRenderHint};\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfontRenderContext = sm_frcConstructor.newInstance(paramList);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tfontRenderContext = new FontRenderContext(null, antiAlias.val() > 0, fracFontMetrics);\n\t\t\t}\n\t\t}\n\t\telse /** Standard Antialias Version */\n\t\t{\n\t\t\thints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\thints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\thints.put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t\t\tfontRenderContext = new FontRenderContext(null, antiAlias.val() > 0, fracFontMetrics);\n\t\t}\n\n\t\trenderingHints = new RenderingHints(hints);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "ASSIGN", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "TRY", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [3, 7], [4, 8], [5, 9], [5, 10], [6, 11], [2, 12], [4, 13], [4, 14], [4, 15], [8, 16], [8, 17], [1, 18], [1, 19], [1, 20], [4, 21], [4, 22], [4, 23], [4, 24], [13, 25], [4, 26], [16, 27], [17, 28], [17, 29], [18, 30], [21, 31], [13, 32], [15, 33], [30, 34], [30, 35], [31, 36], [31, 37], [25, 38], [32, 39], [14, 40], [34, 41], [34, 42], [36, 43], [36, 44], [38, 45], [45, 46], [45, 47], [46, 48], [46, 49], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 3], [8, 4], [9, 5], [10, 5], [11, 6], [12, 2], [13, 4], [14, 4], [15, 4], [16, 8], [17, 8], [18, 1], [19, 1], [20, 1], [21, 4], [22, 4], [23, 4], [24, 4], [25, 13], [26, 4], [27, 16], [28, 17], [29, 17], [30, 18], [31, 21], [32, 13], [33, 15], [34, 30], [35, 30], [36, 31], [37, 31], [38, 25], [39, 32], [40, 14], [41, 34], [42, 34], [43, 36], [44, 36], [45, 38], [46, 45], [47, 45], [48, 46], [49, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "TextAreaPainter", "code": "\tTextAreaPainter(TextArea textArea)\n\t{\n\t\tenableEvents(AWTEvent.FOCUS_EVENT_MASK\n\t\t\t| AWTEvent.KEY_EVENT_MASK\n\t\t\t| AWTEvent.MOUSE_EVENT_MASK);\n\n\t\tthis.textArea = textArea;\n\t\tantiAlias = new AntiAlias(0);\n\t\tfonts = new HashMap();\n\t\textensionMgr = new ExtensionManager();\n\n\t\tsetAutoscrolls(true);\n\t\tsetOpaque(true);\n\t\tsetRequestFocusEnabled(false);\n\t\tsetDoubleBuffered(false);\n\n\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));\n\n\t\tfontRenderContext = new FontRenderContext(null,false,false);\n\n\t\taddExtension(LINE_BACKGROUND_LAYER,new PaintLineBackground());\n\t\taddExtension(SELECTION_LAYER,new PaintSelection());\n\t\taddExtension(WRAP_GUIDE_LAYER,new PaintWrapGuide());\n\t\taddExtension(BRACKET_HIGHLIGHT_LAYER,new StructureMatcher\n\t\t\t.Highlight(textArea));\n\t\taddExtension(TEXT_LAYER,new PaintText());\n\t\tcaretExtension = new PaintCaret();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [2, 19], [3, 20], [4, 21], [5, 22], [6, 23], [7, 24], [8, 25], [9, 26], [10, 27], [11, 28], [12, 29], [13, 30], [14, 31], [15, 32], [16, 33], [18, 34], [25, 35], [25, 36], [25, 37], [33, 38], [34, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 2], [20, 3], [21, 4], [22, 5], [23, 6], [24, 7], [25, 8], [26, 9], [27, 10], [28, 11], [29, 12], [30, 13], [31, 14], [32, 15], [33, 16], [34, 18], [35, 25], [36, 25], [37, 25], [38, 33], [39, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}], "label": 1}
{"sample_id": "xalan-2.4-6579", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/runtime/AbstractTranslet.java", "language": "java", "name": "org.apache.xalan.xsltc.runtime.AbstractTranslet", "code": "public abstract class AbstractTranslet implements Translet {\n\n    public String  _version = \"1.0\";\n    public String  _method = null;\n    public String  _encoding = \"UTF-8\";\n    public boolean _omitHeader = false;\n    public String  _standalone = null;\n    public String  _doctypePublic = null;\n    public String  _doctypeSystem = null;\n    public boolean _indent = false;\n    public String  _mediaType = null;\n    public Hashtable _cdata = null;\n\n    protected String[] namesArray;\n    protected String[] namespaceArray;\n\n    protected StringValueHandler stringValueHandler = new StringValueHandler();\n\n    private final static String EMPTYSTRING = \"\";\n\n    \n    /************************************************************************\n     * Debugging\n     ************************************************************************/\n    public void printInternalState() {\n\tSystem.out.println(\"-------------------------------------\");\n\tSystem.out.println(\"AbstractTranslet this = \" + this);\n\tSystem.out.println(\"pbase = \" + pbase);\n\tSystem.out.println(\"vframe = \" + pframe);\n\tSystem.out.println(\"paramsStack.size() = \" + paramsStack.size());\n\tSystem.out.println(\"namesArray.size = \" + namesArray.length);\n\tSystem.out.println(\"namespaceArray.size = \" + namespaceArray.length);\n\tSystem.out.println(\"\");\n\tSystem.out.println(\"Total memory = \" + Runtime.getRuntime().totalMemory());\n    }\n\n    /**\n     * Wrap the initial input DOM in a dom adapter. This adapter is wrapped in\n     * a DOM multiplexer if the document() function is used (handled by compiled\n     * code in the translet - see compiler/Stylesheet.compileTransform()).\n     */\n    public final DOMAdapter makeDOMAdapter(DOM dom)\n\tthrows TransletException {\n\tif (dom instanceof DOMImpl)\n\t    return new DOMAdapter((DOMImpl)dom, namesArray, namespaceArray);\n\tBasisLibrary.runTimeError(BasisLibrary.DOM_ADAPTER_INIT_ERR);\n\treturn null;\n    }\n\n    /************************************************************************\n     * Parameter handling\n     ************************************************************************/\n\n    protected int pbase = 0, pframe = 0;\n    protected ArrayList paramsStack = new ArrayList();\n\n    /**\n     * Push a new parameter frame.\n     */\n    public final void pushParamFrame() {\n\tparamsStack.add(pframe, new Integer(pbase));\n\tpbase = ++pframe;\n    }\n\n    /**\n     * Pop the topmost parameter frame.\n     */\n    public final void popParamFrame() {\n\tif (pbase > 0) {\n\t    final int oldpbase = ((Integer)paramsStack.get(--pbase)).intValue();\n\t    for (int i = pframe - 1; i >= pbase; i--) {\n\t\tparamsStack.remove(i);\n\t    }\n\t    pframe = pbase; pbase = oldpbase;\n\t}\n    }\n\n    /**\n     * Add a new global parameter if not already in the current frame.\n     */\n    public final Object addParameter(String name, Object value) {\n\tname = BasisLibrary.replace(name, \".-\", \n\t\t\t\t    new String[] { \"$dot$\", \"$dash$\" });\n\treturn addParameter(name, value, false);\n    }\n\n    /**\n     * Add a new global or local parameter if not already in the current frame.\n     * The 'isDefault' parameter is set to true if the value passed is the\n     * default value from the <xsl:parameter> element's select attribute or\n     * element body.\n     */\n    public final Object addParameter(String name, Object value, \n\tboolean isDefault) \n    {\n\tfor (int i = pframe - 1; i >= pbase; i--) {\n\t    final Parameter param = (Parameter) paramsStack.get(i);\n\n\t    if (param._name.equals(name)) {\n\t\tif (param._isDefault || !isDefault) {\n\t\t    param._value = value;\n\t\t    param._isDefault = isDefault;\n\t\t    return value;\n\t\t}\n\t\treturn param._value;\n\t    }\n\t}\n\n\tparamsStack.add(pframe++, new Parameter(name, value, isDefault));\n\treturn value;\n    }\n\n    /**\n     * Clears the parameter stack.\n     */\n    public void clearParameters() {  \n\tpbase = pframe = 0;\n\tparamsStack.clear();\n    }\n\n    /**\n     * Get the value of a parameter from the current frame or\n     * <tt>null</tt> if undefined.\n     */\n    public final Object getParameter(String name) {\n\tfor (int i = pframe - 1; i >= pbase; i--) {\n\t    final Parameter param = (Parameter)paramsStack.get(i);\n\t    if (param._name.equals(name)) return param._value;\n\t}\n\treturn null;\n    }\n\n    /************************************************************************\n     * Message handling - implementation of <xsl:message>\n     ************************************************************************/\n\n    private MessageHandler _msgHandler = null;\n\n    /**\n     * Set the translet's message handler - must implement MessageHandler\n     */\n    public final void setMessageHandler(MessageHandler handler) {\n\t_msgHandler = handler;\n    }\n\n    /**\n     * Pass a message to the message handler - used by Message class.\n     */\n    public final void displayMessage(String msg) {\n\tif (_msgHandler == null) {\n            System.err.println(msg);\n\t}\n\telse {\n\t    _msgHandler.displayMessage(msg);\n\t}\n    }\n\n    /************************************************************************\n     * Decimal number format symbol handling\n     ************************************************************************/\n\n    public Hashtable _formatSymbols = null;\n\n    /**\n     * Adds a DecimalFormat object to the _formatSymbols hashtable.\n     * The entry is created with the input DecimalFormatSymbols.\n     */\n    public void addDecimalFormat(String name, DecimalFormatSymbols symbols) {\n\tif (_formatSymbols == null) _formatSymbols = new Hashtable();\n\n\tif (name == null) name = EMPTYSTRING;\n\n\tfinal DecimalFormat df = new DecimalFormat();\n\tif (symbols != null) {\n\t    df.setDecimalFormatSymbols(symbols);\n\t}\n\t_formatSymbols.put(name, df);\n    }\n\n    /**\n     * Retrieves a named DecimalFormat object from _formatSymbols hashtable.\n     */\n    public final DecimalFormat getDecimalFormat(String name) {\n\n\tif (_formatSymbols != null) {\n\t    if (name == null) name = EMPTYSTRING;\n\n\t    DecimalFormat df = (DecimalFormat)_formatSymbols.get(name);\n\t    if (df == null) df = (DecimalFormat)_formatSymbols.get(EMPTYSTRING);\n\t    return df;\n\t}\n\treturn(null);\n    }\n\n    /************************************************************************\n     * Unparsed entity URI handling - implements unparsed-entity-uri()\n     ************************************************************************/\n\n    public Hashtable _unparsedEntities = null;\n\n    /**\n     * Get the value of an unparsed entity URI.\n     * This method is used by the compiler/UnparsedEntityUriCall class.\n     */\n    public final String getUnparsedEntity(String name) {\n\tfinal String uri = (String)_unparsedEntities.get(name);\n\treturn uri == null ? EMPTYSTRING : uri;\n    }\n\n    /**\n     * Add an unparsed entity URI. The URI/value pairs are passed from the\n     * DOM builder to the translet.\n     */\n    public final void addUnparsedEntity(String name, String uri) {\n\tif (_unparsedEntities == null)\n\t    _unparsedEntities = new Hashtable();\n\tif (_unparsedEntities.containsKey(name) == false)\n\t    _unparsedEntities.put(name, uri);\n    }\n    \n    /**\n     * Add an unparsed entity URI. The URI/value pairs are passed from the\n     * DOM builder to the translet.\n     */\n    public final void setUnparsedEntityURIs(Hashtable table) {\n\tif (_unparsedEntities == null)\n\t    _unparsedEntities = table;\n\telse {\n\t    Enumeration keys = table.keys();\n\t    while (keys.hasMoreElements()) {\n\t\tString name = (String)keys.nextElement();\n\t\t_unparsedEntities.put(name,table.get(name));\n\t    }\n\t}\n    }\n\n    /**\n     * The DTD monitor used by the DOM builder scans the input document DTD\n     * for unparsed entity URIs. These are passed to the translet using\n     * this method.\n     */\n    public final void setDTDMonitor(DTDMonitor monitor) {\n\tsetUnparsedEntityURIs(monitor.getUnparsedEntityURIs());\n    }\n\n    /************************************************************************\n     * Index(es) for <xsl:key> / key() / id()\n     ************************************************************************/\n\n    private Hashtable _keyIndexes = null;\n    private KeyIndex  _emptyKeyIndex = new KeyIndex(1);\n    private int       _indexSize = 0;\n\n    /**\n     * This method is used to pass the largest DOM size to the translet.\n     * Needed to make sure that the translet can index the whole DOM.\n     */\n    public void setIndexSize(int size) {\n\tif (size > _indexSize) _indexSize = size;\n    }\n\n    /**\n     * Creates a KeyIndex object of the desired size - don't want to resize!!!\n     */\n    public KeyIndex createKeyIndex() {\n\treturn(new KeyIndex(_indexSize));\n    }\n\n    /**\n     * Adds a value to a key/id index\n     *   @name is the name of the index (the key or ##id)\n     *   @node is the node id of the node to insert\n     *   @value is the value that will look up the node in the given index\n     */\n    public void buildKeyIndex(String name, int node, Object value) {\n\tif (_keyIndexes == null) _keyIndexes = new Hashtable();\n\t\n\tKeyIndex index = (KeyIndex)_keyIndexes.get(name);\n\tif (index == null) {\n\t    _keyIndexes.put(name, index = new KeyIndex(_indexSize));\n\t}\n\tindex.add(value, node);\n    }\n\n    /**\n     * Returns the index for a given key (or id).\n     * The index implements our internal iterator interface\n     */\n    public KeyIndex getKeyIndex(String name) {\n\tif (_keyIndexes == null) return(_emptyKeyIndex);\n\n\tfinal KeyIndex index = (KeyIndex)_keyIndexes.get(name);\n\n\tif (index == null) return(_emptyKeyIndex);\n\n\treturn(index);\n    }\n\n    /**\n     * This method builds key indexes - it is overridden in the compiled\n     * translet in cases where the <xsl:key> element is used\n     */\n    public void buildKeys(DOM document, NodeIterator iterator,\n\t\t\t  TransletOutputHandler handler,\n\t\t\t  int root) throws TransletException {\n    }\n\n    /************************************************************************\n     * DOM cache handling\n     ************************************************************************/\n\n    private DOMCache _domCache = null;\n\n    /**\n     * Sets the DOM cache used for additional documents loaded using the\n     * document() function.\n     */\n    public void setDOMCache(DOMCache cache) {\n\t_domCache = cache;\n    }\n\n    /**\n     * Returns the DOM cache used for this translet. Used by the LoadDocument\n     * class (if present) when the document() function is used.\n     */\n    public DOMCache getDOMCache() {\n\treturn(_domCache);\n    }\n\n    /************************************************************************\n     * Multiple output document extension.\n     * See compiler/TransletOutput for actual implementation.\n     ************************************************************************/\n\n    public TransletOutputHandler openOutputHandler(String filename) \n\tthrows TransletException \n    {\n\ttry {\n\t    final TransletOutputHandlerFactory factory \n\t\t= TransletOutputHandlerFactory.newInstance();\n\n\t    factory.setEncoding(_encoding);\n\t    factory.setOutputMethod(_method);\n\t    factory.setWriter(new FileWriter(filename));\n\t    factory.setOutputType(TransletOutputHandlerFactory.STREAM);\n\n\t    final TransletOutputHandler handler \n\t\t= factory.getTransletOutputHandler();\n\n\t    transferOutputSettings(handler);\n\t    handler.startDocument();\n\t    return handler;\n\t}\n\tcatch (Exception e) {\n\t    throw new TransletException(e);\n\t}\n    }\n\n    public void closeOutputHandler(TransletOutputHandler handler) {\n\ttry {\n\t    handler.endDocument();\n\t    handler.close();\n\t}\n\tcatch (Exception e) {\n\t}\n    }\n\n    /************************************************************************\n     * Native API transformation methods - _NOT_ JAXP/TrAX\n     ************************************************************************/\n\n    /**\n     * Main transform() method - this is overridden by the compiled translet\n     */\n    public abstract void transform(DOM document, NodeIterator iterator,\n\t\t\t\t   TransletOutputHandler handler)\n\tthrows TransletException;\n\n    /**\n     * Calls transform() with a given output handler\n     */\n    public final void transform(DOM document, TransletOutputHandler handler) \n\tthrows TransletException {\n\ttransform(document, document.getIterator(), handler);\n    }\n\t\n    /**\n     * Used by some compiled code as a shortcut for passing strings to the\n     * output handler\n     */\n    public final void characters(final String string,\n\t\t\t\t TransletOutputHandler handler) \n\tthrows TransletException {\n\tfinal int length = string.length();\n\thandler.characters(string.toCharArray(), 0, length);\n    }\n\n    /**\n     * Add's a name of an element whose text contents should be output as CDATA\n     */\n    public void addCdataElement(String name) {\n\tif (_cdata == null) _cdata = new Hashtable();\n\t_cdata.put(name, name);\n    }\n\n    /**\n     * Transfer the output settings to the output post-processor\n     */\n    protected void transferOutputSettings(TransletOutputHandler handler) {\n\tif (_method != null) {\n\t    if (_method.equals(\"xml\")) {\n\t        if (_standalone != null) {\n\t\t    handler.setStandalone(_standalone);\n\t\t}\n\t\tif (_omitHeader) {\n\t\t    handler.omitHeader(true);\n\t\t}\n\t\thandler.setCdataElements(_cdata);\n\t\tif (_version != null) {\n\t\t    handler.setVersion(_version);\n\t\t}\n\t\thandler.setIndent(_indent);\n\t\tif (_doctypeSystem != null) {\n\t\t    handler.setDoctype(_doctypeSystem, _doctypePublic);\n\t\t}\n\t    }\n\t    else if (_method.equals(\"html\")) {\n\t\thandler.setIndent(_indent);\n\t\thandler.setDoctype(_doctypeSystem, _doctypePublic);\n\t\tif (_mediaType != null) {\n\t\t    handler.setMediaType(_mediaType);\n\t\t}\n\t    }\n\t}\n\telse {\n\t    handler.setCdataElements(_cdata);\n\t    if (_version != null) {\n\t\thandler.setVersion(_version);\n\t    }\n\t    if (_standalone != null) {\n\t\thandler.setStandalone(_standalone);\n\t    }\n\t    if (_omitHeader) {\n\t\thandler.omitHeader(true);\n\t    }\n\t    handler.setIndent(_indent);\n\t    handler.setDoctype(_doctypeSystem, _doctypePublic);\n\t}\n    }\n\n    private Hashtable _auxClasses = null;\n\n    public void addAuxiliaryClass(Class auxClass) {\n\tif (_auxClasses == null) _auxClasses = new Hashtable();\n\t_auxClasses.put(auxClass.getName(), auxClass);\n    }\n\n    public Class getAuxiliaryClass(String className) {\n\tif (_auxClasses == null) return null;\n\treturn((Class)_auxClasses.get(className));\n    }\n\n    public String[] getNamesArray() {\n\treturn namesArray;\n    }\n    public String[] getNamespaceArray() {\n\treturn namespaceArray;", "functions": [{"function_name": "printInternalState", "code": "    public void printInternalState() {\n\tSystem.out.println(\"-------------------------------------\");\n\tSystem.out.println(\"AbstractTranslet this = \" + this);\n\tSystem.out.println(\"pbase = \" + pbase);\n\tSystem.out.println(\"vframe = \" + pframe);\n\tSystem.out.println(\"paramsStack.size() = \" + paramsStack.size());\n\tSystem.out.println(\"namesArray.size = \" + namesArray.length);\n\tSystem.out.println(\"namespaceArray.size = \" + namespaceArray.length);\n\tSystem.out.println(\"\");\n\tSystem.out.println(\"Total memory = \" + Runtime.getRuntime().totalMemory());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [9, 18], [10, 19], [10, 20], [12, 21], [13, 22], [14, 23], [14, 24], [15, 25], [16, 26], [17, 27], [19, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 9], [19, 10], [20, 10], [21, 12], [22, 13], [23, 14], [24, 14], [25, 15], [26, 16], [27, 17], [28, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "makeDOMAdapter", "code": "    public final DOMAdapter makeDOMAdapter(DOM dom)\n\tthrows TransletException {\n\tif (dom instanceof DOMImpl)\n\t    return new DOMAdapter((DOMImpl)dom, namesArray, namespaceArray);\n\tBasisLibrary.runTimeError(BasisLibrary.DOM_ADAPTER_INIT_ERR);\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [2, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 2], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "pushParamFrame", "code": "    public final void pushParamFrame() {\n\tparamsStack.add(pframe, new Integer(pbase));\n\tpbase = ++pframe;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "popParamFrame", "code": "    public final void popParamFrame() {\n\tif (pbase > 0) {\n\t    final int oldpbase = ((Integer)paramsStack.get(--pbase)).intValue();\n\t    for (int i = pframe - 1; i >= pbase; i--) {\n\t\tparamsStack.remove(i);\n\t    }\n\t    pframe = pbase; pbase = oldpbase;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 6], [1, 7], [3, 8], [3, 9], [3, 10], [4, 11], [10, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 1], [7, 1], [8, 3], [9, 3], [10, 3], [11, 4], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "addParameter", "code": "    public final Object addParameter(String name, Object value) {\n\tname = BasisLibrary.replace(name, \".-\", \n\t\t\t\t    new String[] { \"$dot$\", \"$dash$\" });\n\treturn addParameter(name, value, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [5, 7], [7, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [7, 5], [8, 7], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addParameter", "code": "    public final Object addParameter(String name, Object value, \n\tboolean isDefault) \n    {\n\tfor (int i = pframe - 1; i >= pbase; i--) {\n\t    final Parameter param = (Parameter) paramsStack.get(i);\n\n\t    if (param._name.equals(name)) {\n\t\tif (param._isDefault || !isDefault) {\n\t\t    param._value = value;\n\t\t    param._isDefault = isDefault;\n\t\t    return value;\n\t\t}\n\t\treturn param._value;\n\t    }\n\t}\n\n\tparamsStack.add(pframe++, new Parameter(name, value, isDefault));\n\treturn value;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [6, 8], [2, 9], [2, 10], [9, 11], [2, 12], [9, 13], [9, 14], [12, 15], [14, 16], [10, 17], [14, 18], [14, 19], [14, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 6], [9, 2], [10, 2], [11, 9], [12, 2], [13, 9], [14, 9], [15, 12], [16, 14], [17, 10], [18, 14], [19, 14], [20, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "clearParameters", "code": "    public void clearParameters() {  \n\tpbase = pframe = 0;\n\tparamsStack.clear();", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getParameter", "code": "    public final Object getParameter(String name) {\n\tfor (int i = pframe - 1; i >= pbase; i--) {\n\t    final Parameter param = (Parameter)paramsStack.get(i);\n\t    if (param._name.equals(name)) return param._value;\n\t}\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [6, 8], [6, 9], [2, 10], [10, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 6], [9, 6], [10, 2], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setMessageHandler", "code": "    public final void setMessageHandler(MessageHandler handler) {\n\t_msgHandler = handler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "displayMessage", "code": "    public final void displayMessage(String msg) {\n\tif (_msgHandler == null) {\n            System.err.println(msg);\n\t}\n\telse {\n\t    _msgHandler.displayMessage(msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addDecimalFormat", "code": "    public void addDecimalFormat(String name, DecimalFormatSymbols symbols) {\n\tif (_formatSymbols == null) _formatSymbols = new Hashtable();\n\n\tif (name == null) name = EMPTYSTRING;\n\n\tfinal DecimalFormat df = new DecimalFormat();\n\tif (symbols != null) {\n\t    df.setDecimalFormatSymbols(symbols);\n\t}\n\t_formatSymbols.put(name, df);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [4, 10], [8, 11], [2, 12], [3, 13], [9, 14], [4, 15], [10, 16], [1, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 4], [11, 8], [12, 2], [13, 3], [14, 9], [15, 4], [16, 10], [17, 1], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getDecimalFormat", "code": "    public final DecimalFormat getDecimalFormat(String name) {\n\n\tif (_formatSymbols != null) {\n\t    if (name == null) name = EMPTYSTRING;\n\n\t    DecimalFormat df = (DecimalFormat)_formatSymbols.get(name);\n\t    if (df == null) df = (DecimalFormat)_formatSymbols.get(EMPTYSTRING);\n\t    return df;\n\t}\n\treturn(null);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [5, 10], [7, 11], [9, 12], [7, 13], [11, 14], [9, 15], [12, 16], [8, 17], [13, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 5], [11, 7], [12, 9], [13, 7], [14, 11], [15, 9], [16, 12], [17, 8], [18, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getUnparsedEntity", "code": "    public final String getUnparsedEntity(String name) {\n\tfinal String uri = (String)_unparsedEntities.get(name);\n\treturn uri == null ? EMPTYSTRING : uri;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addUnparsedEntity", "code": "    public final void addUnparsedEntity(String name, String uri) {\n\tif (_unparsedEntities == null)\n\t    _unparsedEntities = new Hashtable();\n\tif (_unparsedEntities.containsKey(name) == false)\n\t    _unparsedEntities.put(name, uri);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [5, 8], [5, 9], [2, 10], [6, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 5], [9, 5], [10, 2], [11, 6], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setUnparsedEntityURIs", "code": "    public final void setUnparsedEntityURIs(Hashtable table) {\n\tif (_unparsedEntities == null)\n\t    _unparsedEntities = table;\n\telse {\n\t    Enumeration keys = table.keys();\n\t    while (keys.hasMoreElements()) {\n\t\tString name = (String)keys.nextElement();\n\t\t_unparsedEntities.put(name,table.get(name));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [4, 8], [4, 9], [5, 10], [4, 11], [11, 12], [9, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 4], [9, 4], [10, 5], [11, 4], [12, 11], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "setDTDMonitor", "code": "    public final void setDTDMonitor(DTDMonitor monitor) {\n\tsetUnparsedEntityURIs(monitor.getUnparsedEntityURIs());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIndexSize", "code": "    public void setIndexSize(int size) {\n\tif (size > _indexSize) _indexSize = size;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createKeyIndex", "code": "    public KeyIndex createKeyIndex() {\n\treturn(new KeyIndex(_indexSize));", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "buildKeyIndex", "code": "    public void buildKeyIndex(String name, int node, Object value) {\n\tif (_keyIndexes == null) _keyIndexes = new Hashtable();\n\t\n\tKeyIndex index = (KeyIndex)_keyIndexes.get(name);\n\tif (index == null) {\n\t    _keyIndexes.put(name, index = new KeyIndex(_indexSize));\n\t}\n\tindex.add(value, node);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [8, 10], [3, 11], [9, 12], [1, 13], [2, 14], [11, 15], [13, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 8], [11, 3], [12, 9], [13, 1], [14, 2], [15, 11], [16, 13], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getKeyIndex", "code": "    public KeyIndex getKeyIndex(String name) {\n\tif (_keyIndexes == null) return(_emptyKeyIndex);\n\n\tfinal KeyIndex index = (KeyIndex)_keyIndexes.get(name);\n\n\tif (index == null) return(_emptyKeyIndex);\n\n\treturn(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [4, 8], [4, 9], [7, 10], [9, 11], [3, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 4], [9, 4], [10, 7], [11, 9], [12, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "buildKeys", "code": "    public void buildKeys(DOM document, NodeIterator iterator,\n\t\t\t  TransletOutputHandler handler,\n\t\t\t  int root) throws TransletException {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDOMCache", "code": "    public void setDOMCache(DOMCache cache) {\n\t_domCache = cache;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDOMCache", "code": "    public DOMCache getDOMCache() {\n\treturn(_domCache);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "openOutputHandler", "code": "    public TransletOutputHandler openOutputHandler(String filename) \n\tthrows TransletException \n    {\n\ttry {\n\t    final TransletOutputHandlerFactory factory \n\t\t= TransletOutputHandlerFactory.newInstance();\n\n\t    factory.setEncoding(_encoding);\n\t    factory.setOutputMethod(_method);\n\t    factory.setWriter(new FileWriter(filename));\n\t    factory.setOutputType(TransletOutputHandlerFactory.STREAM);\n\n\t    final TransletOutputHandler handler \n\t\t= factory.getTransletOutputHandler();\n\n\t    transferOutputSettings(handler);\n\t    handler.startDocument();\n\t    return handler;\n\t}\n\tcatch (Exception e) {\n\t    throw new TransletException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [7, 14], [5, 15], [11, 16], [6, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 7], [15, 5], [16, 11], [17, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "closeOutputHandler", "code": "    public void closeOutputHandler(TransletOutputHandler handler) {\n\ttry {\n\t    handler.endDocument();\n\t    handler.close();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "transform", "code": "    public abstract void transform(DOM document, NodeIterator iterator,\n\t\t\t\t   TransletOutputHandler handler)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "transform", "code": "    public final void transform(DOM document, TransletOutputHandler handler) \n\tthrows TransletException {\n\ttransform(document, document.getIterator(), handler);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "characters", "code": "    public final void characters(final String string,\n\t\t\t\t TransletOutputHandler handler) \n\tthrows TransletException {\n\tfinal int length = string.length();\n\thandler.characters(string.toCharArray(), 0, length);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [4, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 4], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addCdataElement", "code": "    public void addCdataElement(String name) {\n\tif (_cdata == null) _cdata = new Hashtable();\n\t_cdata.put(name, name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "transferOutputSettings", "code": "    protected void transferOutputSettings(TransletOutputHandler handler) {\n\tif (_method != null) {\n\t    if (_method.equals(\"xml\")) {\n\t        if (_standalone != null) {\n\t\t    handler.setStandalone(_standalone);\n\t\t}\n\t\tif (_omitHeader) {\n\t\t    handler.omitHeader(true);\n\t\t}\n\t\thandler.setCdataElements(_cdata);\n\t\tif (_version != null) {\n\t\t    handler.setVersion(_version);\n\t\t}\n\t\thandler.setIndent(_indent);\n\t\tif (_doctypeSystem != null) {\n\t\t    handler.setDoctype(_doctypeSystem, _doctypePublic);\n\t\t}\n\t    }\n\t    else if (_method.equals(\"html\")) {\n\t\thandler.setIndent(_indent);\n\t\thandler.setDoctype(_doctypeSystem, _doctypePublic);\n\t\tif (_mediaType != null) {\n\t\t    handler.setMediaType(_mediaType);\n\t\t}\n\t    }\n\t}\n\telse {\n\t    handler.setCdataElements(_cdata);\n\t    if (_version != null) {\n\t\thandler.setVersion(_version);\n\t    }\n\t    if (_standalone != null) {\n\t\thandler.setStandalone(_standalone);\n\t    }\n\t    if (_omitHeader) {\n\t\thandler.omitHeader(true);\n\t    }\n\t    handler.setIndent(_indent);\n\t    handler.setDoctype(_doctypeSystem, _doctypePublic);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [1, 9], [1, 10], [5, 11], [6, 12], [1, 13], [7, 14], [7, 15], [11, 16], [12, 17], [14, 18], [7, 19], [7, 20], [7, 21], [7, 22], [15, 23], [4, 24], [5, 25], [6, 26], [14, 27], [18, 28], [19, 29], [7, 30], [20, 31], [7, 32], [22, 33], [24, 34], [27, 35], [14, 36], [14, 37], [29, 38], [31, 39], [33, 40], [35, 41], [19, 42], [20, 43], [21, 44], [22, 45], [27, 46], [44, 47], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 1], [10, 1], [11, 5], [12, 6], [13, 1], [14, 7], [15, 7], [16, 11], [17, 12], [18, 14], [19, 7], [20, 7], [21, 7], [22, 7], [23, 15], [24, 4], [25, 5], [26, 6], [27, 14], [28, 18], [29, 19], [30, 7], [31, 20], [32, 7], [33, 22], [34, 24], [35, 27], [36, 14], [37, 14], [38, 29], [39, 31], [40, 33], [41, 35], [42, 19], [43, 20], [44, 21], [45, 22], [46, 27], [47, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "addAuxiliaryClass", "code": "    public void addAuxiliaryClass(Class auxClass) {\n\tif (_auxClasses == null) _auxClasses = new Hashtable();\n\t_auxClasses.put(auxClass.getName(), auxClass);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [4, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 4], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getAuxiliaryClass", "code": "    public Class getAuxiliaryClass(String className) {\n\tif (_auxClasses == null) return null;\n\treturn((Class)_auxClasses.get(className));", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNamesArray", "code": "    public String[] getNamesArray() {\n\treturn namesArray;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNamespaceArray", "code": "    public String[] getNamespaceArray() {\n\treturn namespaceArray;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.2-1799", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/jms/JmsConfiguration.java", "language": "java", "name": "org.apache.camel.component.jms.JmsConfiguration", "code": "public class JmsConfiguration implements Cloneable {\n    protected static final String TRANSACTED = \"TRANSACTED\";\n    protected static final String CLIENT_ACKNOWLEDGE = \"CLIENT_ACKNOWLEDGE\";\n    protected static final String AUTO_ACKNOWLEDGE = \"AUTO_ACKNOWLEDGE\";\n    protected static final String DUPS_OK_ACKNOWLEDGE = \"DUPS_OK_ACKNOWLEDGE\";\n\n    private JmsOperations jmsOperations;\n    private DestinationResolver destinationResolver;\n    private ConnectionFactory connectionFactory;\n    private ConnectionFactory templateConnectionFactory;\n    private ConnectionFactory listenerConnectionFactory;\n    private int acknowledgementMode = -1;\n    private String acknowledgementModeName = null;\n    private ExceptionListener exceptionListener;\n    private ConsumerType consumerType = ConsumerType.Default;\n    private boolean autoStartup = true;\n    private boolean acceptMessagesWhileStopping;\n    private String clientId;\n    private String durableSubscriptionName;\n    private boolean subscriptionDurable;\n    private boolean exposeListenerSession = true;\n    private TaskExecutor taskExecutor;\n    private boolean pubSubNoLocal;\n    private int concurrentConsumers = 1;\n    private int maxMessagesPerTask = 1;\n    private ServerSessionFactory serverSessionFactory;\n    private int cacheLevel = -1;\n    private String cacheLevelName = \"CACHE_CONNECTION\";\n    private long recoveryInterval = -1;\n    private long receiveTimeout = -1;\n    private int idleTaskExecutionLimit = 1;\n    private int maxConcurrentConsumers = 1;\n    private boolean useVersion102;\n    private boolean explicitQosEnabled;\n    private boolean deliveryPersistent = true;\n    private long timeToLive = -1;\n    private MessageConverter messageConverter;\n    private boolean messageIdEnabled = true;\n    private boolean messageTimestampEnabled = true;\n    private int priority = -1;\n    private boolean transacted;\n    private PlatformTransactionManager transactionManager;\n    private String transactionName;\n    private int transactionTimeout = -1;\n    private boolean preserveMessageQos;\n\n    public JmsConfiguration() {\n    }\n\n    public JmsConfiguration(ConnectionFactory connectionFactory) {\n        this.connectionFactory = connectionFactory;\n    }\n\n    /**\n     * Returns a copy of this configuration\n     */\n    public JmsConfiguration copy() {\n        try {\n            return (JmsConfiguration)clone();\n        } catch (CloneNotSupportedException e) {\n            throw new RuntimeCamelException(e);\n        }\n    }\n\n    public JmsOperations createJmsOperations(boolean pubSubDomain, String destination) {\n        \n        if ( jmsOperations !=null ) {\n            return jmsOperations;\n        }\n        \n        ConnectionFactory factory = getTemplateConnectionFactory();\n\n        JmsTemplate template = useVersion102 ? new JmsTemplate102(factory, pubSubDomain) {\n            /**\n             * Override so we can support preserving the Qos settings that have\n             * been set on the message.\n             */\n            @Override\n            protected void doSend(MessageProducer producer, Message message) throws JMSException {\n                if (preserveMessageQos) {\n                    long ttl = message.getJMSExpiration();\n                    if (ttl != 0) {\n                        ttl = ttl - System.currentTimeMillis();\n                        if (ttl <= 0) {\n                            ttl = 1;\n                        }\n                    }\n                    if (isPubSubDomain()) {\n                        ((TopicPublisher)producer).publish(message, message.getJMSDeliveryMode(), message.getJMSPriority(), ttl);\n                    } else {\n                        ((QueueSender)producer).send(message, message.getJMSDeliveryMode(), message.getJMSPriority(), ttl);\n                    }\n                } else {\n                    super.doSend(producer, message);\n                }\n            }\n        } : new JmsTemplate(factory) {\n            /**\n             * Override so we can support preserving the Qos settings that have\n             * been set on the message.\n             */\n            @Override\n            protected void doSend(MessageProducer producer, Message message) throws JMSException {\n                if (preserveMessageQos) {\n                    long ttl = message.getJMSExpiration();\n                    if (ttl != 0) {\n                        ttl = ttl - System.currentTimeMillis();\n                        if (ttl <= 0) {\n                            ttl = 1;\n                        }\n                    }\n                    producer.send(message, message.getJMSDeliveryMode(), message.getJMSPriority(), ttl);\n                } else {\n                    super.doSend(producer, message);\n                }\n            }\n        };\n        \n        template.setPubSubDomain(pubSubDomain);\n        if( destinationResolver!=null ) {\n            template.setDestinationResolver(destinationResolver);\n        }\n        template.setDefaultDestinationName(destination);\n        \n        template.setExplicitQosEnabled(explicitQosEnabled);\n        template.setDeliveryPersistent(deliveryPersistent);\n        if (messageConverter != null) {\n            template.setMessageConverter(messageConverter);\n        }\n        template.setMessageIdEnabled(messageIdEnabled);\n        template.setMessageTimestampEnabled(messageTimestampEnabled);\n        if (priority >= 0) {\n            template.setPriority(priority);\n        }\n        template.setPubSubNoLocal(pubSubNoLocal);\n        if (receiveTimeout >= 0) {\n            template.setReceiveTimeout(receiveTimeout);\n        }\n        if (timeToLive >= 0) {\n            template.setTimeToLive(timeToLive);\n        }\n\n        template.setSessionTransacted(transacted);\n        if (transacted) {\n            template.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n        }\n        else {\n            if (acknowledgementMode >= 0) {\n                template.setSessionAcknowledgeMode(acknowledgementMode);\n            } else if (acknowledgementModeName != null) {\n                template.setSessionAcknowledgeModeName(acknowledgementModeName);\n            }\n        }\n        return template;\n    }\n\n    public AbstractMessageListenerContainer createMessageListenerContainer() {\n        AbstractMessageListenerContainer container = chooseMessageListenerContainerImplementation();\n        configureMessageListenerContainer(container);\n        return container;\n    }\n\n    protected void configureMessageListenerContainer(AbstractMessageListenerContainer container) {\n        container.setConnectionFactory(getListenerConnectionFactory());\n        if( destinationResolver!=null ) {\n            container.setDestinationResolver(destinationResolver);\n        }\n        if (autoStartup) {\n            container.setAutoStartup(true);\n        }\n        if (clientId != null) {\n            container.setClientId(clientId);\n        }\n        container.setSubscriptionDurable(subscriptionDurable);\n        if (durableSubscriptionName != null) {\n            container.setDurableSubscriptionName(durableSubscriptionName);\n        }\n\n        if (durableSubscriptionName != null && clientId != null) {\n            container.setSubscriptionDurable(true);\n        }\n\n        if (exceptionListener != null) {\n            container.setExceptionListener(exceptionListener);\n        }\n\n        container.setAcceptMessagesWhileStopping(acceptMessagesWhileStopping);\n        container.setExposeListenerSession(exposeListenerSession);\n        container.setSessionTransacted(transacted);\n        if (transacted) {\n            container.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n        }\n        else {\n            if (acknowledgementMode >= 0) {\n                container.setSessionAcknowledgeMode(acknowledgementMode);\n            } else if (acknowledgementModeName != null) {\n                container.setSessionAcknowledgeModeName(acknowledgementModeName);\n            }\n        }\n\n        if (container instanceof DefaultMessageListenerContainer) {\n            DefaultMessageListenerContainer listenerContainer = (DefaultMessageListenerContainer)container;\n            if (concurrentConsumers >= 0) {\n                listenerContainer.setConcurrentConsumers(concurrentConsumers);\n            }\n\n            if (cacheLevel >= 0) {\n                listenerContainer.setCacheLevel(cacheLevel);\n            } else if (cacheLevelName != null) {\n                listenerContainer.setCacheLevelName(cacheLevelName);\n            } else {\n                listenerContainer.setCacheLevel(DefaultMessageListenerContainer.CACHE_CONSUMER);\n            }\n\n            if (idleTaskExecutionLimit >= 0) {\n                listenerContainer.setIdleTaskExecutionLimit(idleTaskExecutionLimit);\n            }\n            if (maxConcurrentConsumers >= 0) {\n                listenerContainer.setMaxConcurrentConsumers(maxConcurrentConsumers);\n            }\n            if (maxMessagesPerTask >= 0) {\n                listenerContainer.setMaxMessagesPerTask(maxMessagesPerTask);\n            }\n            listenerContainer.setPubSubNoLocal(pubSubNoLocal);\n            if (receiveTimeout >= 0) {\n                listenerContainer.setReceiveTimeout(receiveTimeout);\n            }\n            if (recoveryInterval >= 0) {\n                listenerContainer.setRecoveryInterval(recoveryInterval);\n            }\n            if (taskExecutor != null) {\n                listenerContainer.setTaskExecutor(taskExecutor);\n            }\n            if (transactionManager != null) {\n                listenerContainer.setTransactionManager(transactionManager);\n            }\n            else if (transacted) {\n                throw new IllegalArgumentException(\"Property transacted is enabled but a transactionManager was not injected!\");\n            }\n            if (transactionName != null) {\n                listenerContainer.setTransactionName(transactionName);\n            }\n            if (transactionTimeout >= 0) {\n                listenerContainer.setTransactionTimeout(transactionTimeout);\n            }\n        } else if (container instanceof ServerSessionMessageListenerContainer) {\n            ServerSessionMessageListenerContainer listenerContainer = (ServerSessionMessageListenerContainer)container;\n            if (maxMessagesPerTask >= 0) {\n                listenerContainer.setMaxMessagesPerTask(maxMessagesPerTask);\n            }\n            if (serverSessionFactory != null) {\n                listenerContainer.setServerSessionFactory(serverSessionFactory);\n            }\n        } else if (container instanceof SimpleMessageListenerContainer) {\n            SimpleMessageListenerContainer listenerContainer = (SimpleMessageListenerContainer)container;\n            if (concurrentConsumers >= 0) {\n                listenerContainer.setConcurrentConsumers(concurrentConsumers);\n            }\n            listenerContainer.setPubSubNoLocal(pubSubNoLocal);\n            if (taskExecutor != null) {\n                listenerContainer.setTaskExecutor(taskExecutor);\n            }\n        }\n    }\n\n    public ConnectionFactory getConnectionFactory() {\n        if (connectionFactory == null) {\n            connectionFactory = createConnectionFactory();\n        }\n        return connectionFactory;\n    }\n\n    /**\n     * Sets the default connection factory to be used if a connection factory is\n     * not specified for either\n     * {@link #setTemplateConnectionFactory(ConnectionFactory)} or\n     * {@link #setListenerConnectionFactory(ConnectionFactory)}\n     * \n     * @param connectionFactory the default connection factory to use\n     */\n    public void setConnectionFactory(ConnectionFactory connectionFactory) {\n        this.connectionFactory = connectionFactory;\n    }\n\n    public ConnectionFactory getListenerConnectionFactory() {\n        if (listenerConnectionFactory == null) {\n            listenerConnectionFactory = createListenerConnectionFactory();\n        }\n        return listenerConnectionFactory;\n    }\n\n    /**\n     * Sets the connection factory to be used for consuming messages via the\n     * {@link #createMessageListenerContainer()}\n     * \n     * @param listenerConnectionFactory the connection factory to use for\n     *                consuming messages\n     */\n    public void setListenerConnectionFactory(ConnectionFactory listenerConnectionFactory) {\n        this.listenerConnectionFactory = listenerConnectionFactory;\n    }\n\n    public ConnectionFactory getTemplateConnectionFactory() {\n        if (templateConnectionFactory == null) {\n            templateConnectionFactory = createTemplateConnectionFactory();\n        }\n        return templateConnectionFactory;\n    }\n\n    /**\n     * Sets the connection factory to be used for sending messages via the\n     * {@link JmsTemplate} via {@link #createJmsOperations(boolean, String)}\n     * \n     * @param templateConnectionFactory the connection factory for sending\n     *                messages\n     */\n    public void setTemplateConnectionFactory(ConnectionFactory templateConnectionFactory) {\n        this.templateConnectionFactory = templateConnectionFactory;\n    }\n\n    public boolean isUseVersion102() {\n        return useVersion102;\n    }\n\n    public void setUseVersion102(boolean useVersion102) {\n        this.useVersion102 = useVersion102;\n    }\n\n    public boolean isAutoStartup() {\n        return autoStartup;\n    }\n\n    public void setAutoStartup(boolean autoStartup) {\n        this.autoStartup = autoStartup;\n    }\n\n    public boolean isAcceptMessagesWhileStopping() {\n        return acceptMessagesWhileStopping;\n    }\n\n    public void setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) {\n        this.acceptMessagesWhileStopping = acceptMessagesWhileStopping;\n    }\n\n    public String getClientId() {\n        return clientId;\n    }\n\n    public void setClientId(String consumerClientId) {\n        this.clientId = consumerClientId;\n    }\n\n    public String getDurableSubscriptionName() {\n        return durableSubscriptionName;\n    }\n\n    public void setDurableSubscriptionName(String durableSubscriptionName) {\n        this.durableSubscriptionName = durableSubscriptionName;\n    }\n\n    public ExceptionListener getExceptionListener() {\n        return exceptionListener;\n    }\n\n    public void setExceptionListener(ExceptionListener exceptionListener) {\n        this.exceptionListener = exceptionListener;\n    }\n\n    public boolean isSubscriptionDurable() {\n        return subscriptionDurable;\n    }\n\n    public void setSubscriptionDurable(boolean subscriptionDurable) {\n        this.subscriptionDurable = subscriptionDurable;\n    }\n\n    public String getAcknowledgementModeName() {\n        return acknowledgementModeName;\n    }\n\n    public void setAcknowledgementModeName(String consumerAcknowledgementMode) {\n        this.acknowledgementModeName = consumerAcknowledgementMode;\n        this.acknowledgementMode = -1;\n    }\n\n    public boolean isExposeListenerSession() {\n        return exposeListenerSession;\n    }\n\n    public void setExposeListenerSession(boolean exposeListenerSession) {\n        this.exposeListenerSession = exposeListenerSession;\n    }\n\n    public TaskExecutor getTaskExecutor() {\n        return taskExecutor;\n    }\n\n    public void setTaskExecutor(TaskExecutor taskExecutor) {\n        this.taskExecutor = taskExecutor;\n    }\n\n    public boolean isPubSubNoLocal() {\n        return pubSubNoLocal;\n    }\n\n    public void setPubSubNoLocal(boolean pubSubNoLocal) {\n        this.pubSubNoLocal = pubSubNoLocal;\n    }\n\n    public int getConcurrentConsumers() {\n        return concurrentConsumers;\n    }\n\n    public void setConcurrentConsumers(int concurrentConsumers) {\n        this.concurrentConsumers = concurrentConsumers;\n    }\n\n    public int getMaxMessagesPerTask() {\n        return maxMessagesPerTask;\n    }\n\n    public void setMaxMessagesPerTask(int maxMessagesPerTask) {\n        this.maxMessagesPerTask = maxMessagesPerTask;\n    }\n\n    public ServerSessionFactory getServerSessionFactory() {\n        return serverSessionFactory;\n    }\n\n    public void setServerSessionFactory(ServerSessionFactory serverSessionFactory) {\n        this.serverSessionFactory = serverSessionFactory;\n    }\n\n    public int getCacheLevel() {\n        return cacheLevel;\n    }\n\n    public void setCacheLevel(int cacheLevel) {\n        this.cacheLevel = cacheLevel;\n    }\n\n    public String getCacheLevelName() {\n        return cacheLevelName;\n    }\n\n    public void setCacheLevelName(String cacheName) {\n        this.cacheLevelName = cacheName;\n    }\n\n    public long getRecoveryInterval() {\n        return recoveryInterval;\n    }\n\n    public void setRecoveryInterval(long recoveryInterval) {\n        this.recoveryInterval = recoveryInterval;\n    }\n\n    public long getReceiveTimeout() {\n        return receiveTimeout;\n    }\n\n    public void setReceiveTimeout(long receiveTimeout) {\n        this.receiveTimeout = receiveTimeout;\n    }\n\n    public PlatformTransactionManager getTransactionManager() {\n        return transactionManager;\n    }\n\n    public void setTransactionManager(PlatformTransactionManager transactionManager) {\n        this.transactionManager = transactionManager;\n    }\n\n    public String getTransactionName() {\n        return transactionName;\n    }\n\n    public void setTransactionName(String transactionName) {\n        this.transactionName = transactionName;\n    }\n\n    public int getTransactionTimeout() {\n        return transactionTimeout;\n    }\n\n    public void setTransactionTimeout(int transactionTimeout) {\n        this.transactionTimeout = transactionTimeout;\n    }\n\n    public int getIdleTaskExecutionLimit() {\n        return idleTaskExecutionLimit;\n    }\n\n    public void setIdleTaskExecutionLimit(int idleTaskExecutionLimit) {\n        this.idleTaskExecutionLimit = idleTaskExecutionLimit;\n    }\n\n    public int getMaxConcurrentConsumers() {\n        return maxConcurrentConsumers;\n    }\n\n    public void setMaxConcurrentConsumers(int maxConcurrentConsumers) {\n        this.maxConcurrentConsumers = maxConcurrentConsumers;\n    }\n\n    public boolean isExplicitQosEnabled() {\n        return explicitQosEnabled;\n    }\n\n    public void setExplicitQosEnabled(boolean explicitQosEnabled) {\n        this.explicitQosEnabled = explicitQosEnabled;\n    }\n\n    public boolean isDeliveryPersistent() {\n        return deliveryPersistent;\n    }\n\n    public void setDeliveryPersistent(boolean deliveryPersistent) {\n        this.deliveryPersistent = deliveryPersistent;\n    }\n\n    public long getTimeToLive() {\n        return timeToLive;\n    }\n\n    public void setTimeToLive(long timeToLive) {\n        this.timeToLive = timeToLive;\n    }\n\n    public MessageConverter getMessageConverter() {\n        return messageConverter;\n    }\n\n    public void setMessageConverter(MessageConverter messageConverter) {\n        this.messageConverter = messageConverter;\n    }\n\n    public boolean isMessageIdEnabled() {\n        return messageIdEnabled;\n    }\n\n    public void setMessageIdEnabled(boolean messageIdEnabled) {\n        this.messageIdEnabled = messageIdEnabled;\n    }\n\n    public boolean isMessageTimestampEnabled() {\n        return messageTimestampEnabled;\n    }\n\n    public void setMessageTimestampEnabled(boolean messageTimestampEnabled) {\n        this.messageTimestampEnabled = messageTimestampEnabled;\n    }\n\n    public int getPriority() {\n        return priority;\n    }\n\n    public void setPriority(int priority) {\n        this.priority = priority;\n    }\n\n    public ConsumerType getConsumerType() {\n        return consumerType;\n    }\n\n    public void setConsumerType(ConsumerType consumerType) {\n        this.consumerType = consumerType;\n    }\n\n    public int getAcknowledgementMode() {\n        return acknowledgementMode;\n    }\n\n    public void setAcknowledgementMode(int consumerAcknowledgementMode) {\n        this.acknowledgementMode = consumerAcknowledgementMode;\n        this.acknowledgementModeName = null;\n    }\n\n    public boolean isTransacted() {\n        return transacted;\n    }\n\n    public void setTransacted(boolean consumerTransacted) {\n        this.transacted = consumerTransacted;\n    }\n\n    protected AbstractMessageListenerContainer chooseMessageListenerContainerImplementation() {\n        switch (consumerType) {\n        case Simple:\n            return isUseVersion102() ? new SimpleMessageListenerContainer102() : new SimpleMessageListenerContainer();\n        case ServerSessionPool:\n            return isUseVersion102() ? new ServerSessionMessageListenerContainer102() : new ServerSessionMessageListenerContainer();\n        case Default:\n            return isUseVersion102() ? new DefaultMessageListenerContainer102() : new DefaultMessageListenerContainer();\n        default:\n            throw new IllegalArgumentException(\"Unknown consumer type: \" + consumerType);\n        }\n    }\n\n    /**\n     * Factory method which allows derived classes to customize the lazy\n     * creation\n     */\n    protected ConnectionFactory createConnectionFactory() {\n        ObjectHelper.notNull(connectionFactory, \"connectionFactory\");\n        return null;\n    }\n\n    /**\n     * Factory method which allows derived classes to customize the lazy\n     * creation\n     */\n    protected ConnectionFactory createListenerConnectionFactory() {\n        return getConnectionFactory();\n    }\n\n    /**\n     * Factory method which allows derived classes to customize the lazy\n     * creation\n     */\n    protected ConnectionFactory createTemplateConnectionFactory() {\n        return getConnectionFactory();\n    }\n\n    public boolean isPreserveMessageQos() {\n        return preserveMessageQos;\n    }\n\n    /**\n     * Set to true if you want to send message using the QoS settings specified \n     * on the message.  Normally the QoS settings used are the one configured\n     * on this Object.\n     * \n     * @param preserveMessageQos\n     */\n    public void setPreserveMessageQos(boolean preserveMessageQos) {\n        this.preserveMessageQos = preserveMessageQos;\n    }\n\n    public JmsOperations getJmsOperations() {\n        return jmsOperations;\n    }\n\n    public void setJmsOperations(JmsOperations jmsOperations) {\n        this.jmsOperations = jmsOperations;\n    }\n\n    public DestinationResolver getDestinationResolver() {\n        return destinationResolver;\n    }\n\n    public void setDestinationResolver(DestinationResolver destinationResolver) {\n        this.destinationResolver = destinationResolver;", "functions": [{"function_name": "copy", "code": "    public JmsConfiguration copy() {\n        try {\n            return (JmsConfiguration)clone();\n        } catch (CloneNotSupportedException e) {\n            throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [3, 6], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createJmsOperations", "code": "    public JmsOperations createJmsOperations(boolean pubSubDomain, String destination) {\n        \n        if ( jmsOperations !=null ) {\n            return jmsOperations;\n        }\n        \n        ConnectionFactory factory = getTemplateConnectionFactory();\n\n        JmsTemplate template = useVersion102 ? new JmsTemplate102(factory, pubSubDomain) {\n            /**\n             * Override so we can support preserving the Qos settings that have\n             * been set on the message.\n             */\n            @Override\n            protected void doSend(MessageProducer producer, Message message) throws JMSException {\n                if (preserveMessageQos) {\n                    long ttl = message.getJMSExpiration();\n                    if (ttl != 0) {\n                        ttl = ttl - System.currentTimeMillis();\n                        if (ttl <= 0) {\n                            ttl = 1;\n                        }\n                    }\n                    if (isPubSubDomain()) {\n                        ((TopicPublisher)producer).publish(message, message.getJMSDeliveryMode(), message.getJMSPriority(), ttl);\n                    } else {\n                        ((QueueSender)producer).send(message, message.getJMSDeliveryMode(), message.getJMSPriority(), ttl);\n                    }\n                } else {\n                    super.doSend(producer, message);\n                }\n            }\n        } : new JmsTemplate(factory) {\n            /**\n             * Override so we can support preserving the Qos settings that have\n             * been set on the message.\n             */\n            @Override\n            protected void doSend(MessageProducer producer, Message message) throws JMSException {\n                if (preserveMessageQos) {\n                    long ttl = message.getJMSExpiration();\n                    if (ttl != 0) {\n                        ttl = ttl - System.currentTimeMillis();\n                        if (ttl <= 0) {\n                            ttl = 1;\n                        }\n                    }\n                    producer.send(message, message.getJMSDeliveryMode(), message.getJMSPriority(), ttl);\n                } else {\n                    super.doSend(producer, message);\n                }\n            }\n        };\n        \n        template.setPubSubDomain(pubSubDomain);\n        if( destinationResolver!=null ) {\n            template.setDestinationResolver(destinationResolver);\n        }\n        template.setDefaultDestinationName(destination);\n        \n        template.setExplicitQosEnabled(explicitQosEnabled);\n        template.setDeliveryPersistent(deliveryPersistent);\n        if (messageConverter != null) {\n            template.setMessageConverter(messageConverter);\n        }\n        template.setMessageIdEnabled(messageIdEnabled);\n        template.setMessageTimestampEnabled(messageTimestampEnabled);\n        if (priority >= 0) {\n            template.setPriority(priority);\n        }\n        template.setPubSubNoLocal(pubSubNoLocal);\n        if (receiveTimeout >= 0) {\n            template.setReceiveTimeout(receiveTimeout);\n        }\n        if (timeToLive >= 0) {\n            template.setTimeToLive(timeToLive);\n        }\n\n        template.setSessionTransacted(transacted);\n        if (transacted) {\n            template.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n        }\n        else {\n            if (acknowledgementMode >= 0) {\n                template.setSessionAcknowledgeMode(acknowledgementMode);\n            } else if (acknowledgementModeName != null) {\n                template.setSessionAcknowledgeModeName(acknowledgementModeName);\n            }\n        }\n        return template;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "FUNC_DECL", "FUNC_DECL", "LITERAL_ANCHOR", "CALL", "IF", "PARAM", "PARAM", "IF", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [4, 15], [0, 16], [5, 17], [0, 18], [0, 19], [6, 20], [0, 21], [0, 22], [0, 23], [7, 24], [0, 25], [10, 26], [2, 27], [14, 28], [15, 29], [17, 30], [20, 31], [24, 32], [8, 33], [9, 34], [10, 35], [26, 36], [27, 37], [27, 38], [2, 39], [3, 40], [4, 41], [5, 42], [6, 43], [7, 44], [33, 45], [33, 46], [37, 47], [38, 48], [45, 49], [46, 50], [47, 51], [27, 52], [49, 53], [49, 54], [49, 55], [50, 56], [50, 57], [50, 58], [37, 59], [53, 60], [53, 61], [56, 62], [56, 63], [56, 64], [53, 65], [60, 66], [62, 67], [63, 68], [65, 69], [65, 70], [60, 71], [66, 72], [61, 73], [63, 74], [68, 75], [64, 76], [71, 77], [60, 78], [74, 79], [63, 80], [77, 81], [78, 82], [79, 83], [80, 84], [71, 85], [82, 86], [74, 87], [84, 88], [85, 89], [87, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 4], [16, 0], [17, 5], [18, 0], [19, 0], [20, 6], [21, 0], [22, 0], [23, 0], [24, 7], [25, 0], [26, 10], [27, 2], [28, 14], [29, 15], [30, 17], [31, 20], [32, 24], [33, 8], [34, 9], [35, 10], [36, 26], [37, 27], [38, 27], [39, 2], [40, 3], [41, 4], [42, 5], [43, 6], [44, 7], [45, 33], [46, 33], [47, 37], [48, 38], [49, 45], [50, 46], [51, 47], [52, 27], [53, 49], [54, 49], [55, 49], [56, 50], [57, 50], [58, 50], [59, 37], [60, 53], [61, 53], [62, 56], [63, 56], [64, 56], [65, 53], [66, 60], [67, 62], [68, 63], [69, 65], [70, 65], [71, 60], [72, 66], [73, 61], [74, 63], [75, 68], [76, 64], [77, 71], [78, 60], [79, 74], [80, 63], [81, 77], [82, 78], [83, 79], [84, 80], [85, 71], [86, 82], [87, 74], [88, 84], [89, 85], [90, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "createMessageListenerContainer", "code": "    public AbstractMessageListenerContainer createMessageListenerContainer() {\n        AbstractMessageListenerContainer container = chooseMessageListenerContainerImplementation();\n        configureMessageListenerContainer(container);\n        return container;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "configureMessageListenerContainer", "code": "    protected void configureMessageListenerContainer(AbstractMessageListenerContainer container) {\n        container.setConnectionFactory(getListenerConnectionFactory());\n        if( destinationResolver!=null ) {\n            container.setDestinationResolver(destinationResolver);\n        }\n        if (autoStartup) {\n            container.setAutoStartup(true);\n        }\n        if (clientId != null) {\n            container.setClientId(clientId);\n        }\n        container.setSubscriptionDurable(subscriptionDurable);\n        if (durableSubscriptionName != null) {\n            container.setDurableSubscriptionName(durableSubscriptionName);\n        }\n\n        if (durableSubscriptionName != null && clientId != null) {\n            container.setSubscriptionDurable(true);\n        }\n\n        if (exceptionListener != null) {\n            container.setExceptionListener(exceptionListener);\n        }\n\n        container.setAcceptMessagesWhileStopping(acceptMessagesWhileStopping);\n        container.setExposeListenerSession(exposeListenerSession);\n        container.setSessionTransacted(transacted);\n        if (transacted) {\n            container.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);\n        }\n        else {\n            if (acknowledgementMode >= 0) {\n                container.setSessionAcknowledgeMode(acknowledgementMode);\n            } else if (acknowledgementModeName != null) {\n                container.setSessionAcknowledgeModeName(acknowledgementModeName);\n            }\n        }\n\n        if (container instanceof DefaultMessageListenerContainer) {\n            DefaultMessageListenerContainer listenerContainer = (DefaultMessageListenerContainer)container;\n            if (concurrentConsumers >= 0) {\n                listenerContainer.setConcurrentConsumers(concurrentConsumers);\n            }\n\n            if (cacheLevel >= 0) {\n                listenerContainer.setCacheLevel(cacheLevel);\n            } else if (cacheLevelName != null) {\n                listenerContainer.setCacheLevelName(cacheLevelName);\n            } else {\n                listenerContainer.setCacheLevel(DefaultMessageListenerContainer.CACHE_CONSUMER);\n            }\n\n            if (idleTaskExecutionLimit >= 0) {\n                listenerContainer.setIdleTaskExecutionLimit(idleTaskExecutionLimit);\n            }\n            if (maxConcurrentConsumers >= 0) {\n                listenerContainer.setMaxConcurrentConsumers(maxConcurrentConsumers);\n            }\n            if (maxMessagesPerTask >= 0) {\n                listenerContainer.setMaxMessagesPerTask(maxMessagesPerTask);\n            }\n            listenerContainer.setPubSubNoLocal(pubSubNoLocal);\n            if (receiveTimeout >= 0) {\n                listenerContainer.setReceiveTimeout(receiveTimeout);\n            }\n            if (recoveryInterval >= 0) {\n                listenerContainer.setRecoveryInterval(recoveryInterval);\n            }\n            if (taskExecutor != null) {\n                listenerContainer.setTaskExecutor(taskExecutor);\n            }\n            if (transactionManager != null) {\n                listenerContainer.setTransactionManager(transactionManager);\n            }\n            else if (transacted) {\n                throw new IllegalArgumentException(\"Property transacted is enabled but a transactionManager was not injected!\");\n            }\n            if (transactionName != null) {\n                listenerContainer.setTransactionName(transactionName);\n            }\n            if (transactionTimeout >= 0) {\n                listenerContainer.setTransactionTimeout(transactionTimeout);\n            }\n        } else if (container instanceof ServerSessionMessageListenerContainer) {\n            ServerSessionMessageListenerContainer listenerContainer = (ServerSessionMessageListenerContainer)container;\n            if (maxMessagesPerTask >= 0) {\n                listenerContainer.setMaxMessagesPerTask(maxMessagesPerTask);\n            }\n            if (serverSessionFactory != null) {\n                listenerContainer.setServerSessionFactory(serverSessionFactory);\n            }\n        } else if (container instanceof SimpleMessageListenerContainer) {\n            SimpleMessageListenerContainer listenerContainer = (SimpleMessageListenerContainer)container;\n            if (concurrentConsumers >= 0) {\n                listenerContainer.setConcurrentConsumers(concurrentConsumers);\n            }\n            listenerContainer.setPubSubNoLocal(pubSubNoLocal);\n            if (taskExecutor != null) {\n                listenerContainer.setTaskExecutor(taskExecutor);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [0, 12], [0, 13], [0, 14], [3, 15], [4, 16], [5, 17], [0, 18], [6, 19], [8, 20], [0, 21], [10, 22], [10, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [2, 36], [15, 37], [16, 38], [16, 39], [17, 40], [19, 41], [20, 42], [21, 43], [22, 44], [10, 45], [10, 46], [10, 47], [24, 48], [25, 49], [26, 50], [26, 51], [27, 52], [28, 53], [29, 54], [1, 55], [30, 56], [31, 57], [32, 58], [33, 59], [33, 60], [34, 61], [36, 62], [36, 63], [2, 64], [3, 65], [4, 66], [38, 67], [39, 68], [5, 69], [6, 70], [7, 71], [8, 72], [22, 73], [22, 74], [22, 75], [45, 76], [46, 77], [48, 78], [49, 79], [51, 80], [52, 81], [53, 82], [54, 83], [56, 84], [57, 85], [58, 86], [59, 87], [60, 88], [61, 89], [62, 90], [63, 91], [66, 92], [71, 93], [73, 94], [22, 95], [74, 96], [76, 97], [77, 98], [24, 99], [25, 100], [50, 101], [26, 102], [27, 103], [28, 104], [29, 105], [30, 106], [31, 107], [32, 108], [87, 109], [33, 110], [34, 111], [90, 112], [36, 113], [94, 114], [96, 115], [45, 116], [46, 117], [101, 118], [59, 119], [59, 120], [62, 121], [73, 122], [74, 123], [118, 124], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 0], [13, 0], [14, 0], [15, 3], [16, 4], [17, 5], [18, 0], [19, 6], [20, 8], [21, 0], [22, 10], [23, 10], [24, 1], [25, 1], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 2], [37, 15], [38, 16], [39, 16], [40, 17], [41, 19], [42, 20], [43, 21], [44, 22], [45, 10], [46, 10], [47, 10], [48, 24], [49, 25], [50, 26], [51, 26], [52, 27], [53, 28], [54, 29], [55, 1], [56, 30], [57, 31], [58, 32], [59, 33], [60, 33], [61, 34], [62, 36], [63, 36], [64, 2], [65, 3], [66, 4], [67, 38], [68, 39], [69, 5], [70, 6], [71, 7], [72, 8], [73, 22], [74, 22], [75, 22], [76, 45], [77, 46], [78, 48], [79, 49], [80, 51], [81, 52], [82, 53], [83, 54], [84, 56], [85, 57], [86, 58], [87, 59], [88, 60], [89, 61], [90, 62], [91, 63], [92, 66], [93, 71], [94, 73], [95, 22], [96, 74], [97, 76], [98, 77], [99, 24], [100, 25], [101, 50], [102, 26], [103, 27], [104, 28], [105, 29], [106, 30], [107, 31], [108, 32], [109, 87], [110, 33], [111, 34], [112, 90], [113, 36], [114, 94], [115, 96], [116, 45], [117, 46], [118, 101], [119, 59], [120, 59], [121, 62], [122, 73], [123, 74], [124, 118], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124]]}, {"function_name": "getConnectionFactory", "code": "    public ConnectionFactory getConnectionFactory() {\n        if (connectionFactory == null) {\n            connectionFactory = createConnectionFactory();\n        }\n        return connectionFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setConnectionFactory", "code": "    public void setConnectionFactory(ConnectionFactory connectionFactory) {\n        this.connectionFactory = connectionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getListenerConnectionFactory", "code": "    public ConnectionFactory getListenerConnectionFactory() {\n        if (listenerConnectionFactory == null) {\n            listenerConnectionFactory = createListenerConnectionFactory();\n        }\n        return listenerConnectionFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setListenerConnectionFactory", "code": "    public void setListenerConnectionFactory(ConnectionFactory listenerConnectionFactory) {\n        this.listenerConnectionFactory = listenerConnectionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTemplateConnectionFactory", "code": "    public ConnectionFactory getTemplateConnectionFactory() {\n        if (templateConnectionFactory == null) {\n            templateConnectionFactory = createTemplateConnectionFactory();\n        }\n        return templateConnectionFactory;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setTemplateConnectionFactory", "code": "    public void setTemplateConnectionFactory(ConnectionFactory templateConnectionFactory) {\n        this.templateConnectionFactory = templateConnectionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isUseVersion102", "code": "    public boolean isUseVersion102() {\n        return useVersion102;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUseVersion102", "code": "    public void setUseVersion102(boolean useVersion102) {\n        this.useVersion102 = useVersion102;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAutoStartup", "code": "    public boolean isAutoStartup() {\n        return autoStartup;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoStartup", "code": "    public void setAutoStartup(boolean autoStartup) {\n        this.autoStartup = autoStartup;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAcceptMessagesWhileStopping", "code": "    public boolean isAcceptMessagesWhileStopping() {\n        return acceptMessagesWhileStopping;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAcceptMessagesWhileStopping", "code": "    public void setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) {\n        this.acceptMessagesWhileStopping = acceptMessagesWhileStopping;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getClientId", "code": "    public String getClientId() {\n        return clientId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setClientId", "code": "    public void setClientId(String consumerClientId) {\n        this.clientId = consumerClientId;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDurableSubscriptionName", "code": "    public String getDurableSubscriptionName() {\n        return durableSubscriptionName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDurableSubscriptionName", "code": "    public void setDurableSubscriptionName(String durableSubscriptionName) {\n        this.durableSubscriptionName = durableSubscriptionName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExceptionListener", "code": "    public ExceptionListener getExceptionListener() {\n        return exceptionListener;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExceptionListener", "code": "    public void setExceptionListener(ExceptionListener exceptionListener) {\n        this.exceptionListener = exceptionListener;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSubscriptionDurable", "code": "    public boolean isSubscriptionDurable() {\n        return subscriptionDurable;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSubscriptionDurable", "code": "    public void setSubscriptionDurable(boolean subscriptionDurable) {\n        this.subscriptionDurable = subscriptionDurable;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAcknowledgementModeName", "code": "    public String getAcknowledgementModeName() {\n        return acknowledgementModeName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAcknowledgementModeName", "code": "    public void setAcknowledgementModeName(String consumerAcknowledgementMode) {\n        this.acknowledgementModeName = consumerAcknowledgementMode;\n        this.acknowledgementMode = -1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isExposeListenerSession", "code": "    public boolean isExposeListenerSession() {\n        return exposeListenerSession;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExposeListenerSession", "code": "    public void setExposeListenerSession(boolean exposeListenerSession) {\n        this.exposeListenerSession = exposeListenerSession;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTaskExecutor", "code": "    public TaskExecutor getTaskExecutor() {\n        return taskExecutor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTaskExecutor", "code": "    public void setTaskExecutor(TaskExecutor taskExecutor) {\n        this.taskExecutor = taskExecutor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isPubSubNoLocal", "code": "    public boolean isPubSubNoLocal() {\n        return pubSubNoLocal;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPubSubNoLocal", "code": "    public void setPubSubNoLocal(boolean pubSubNoLocal) {\n        this.pubSubNoLocal = pubSubNoLocal;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConcurrentConsumers", "code": "    public int getConcurrentConsumers() {\n        return concurrentConsumers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConcurrentConsumers", "code": "    public void setConcurrentConsumers(int concurrentConsumers) {\n        this.concurrentConsumers = concurrentConsumers;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaxMessagesPerTask", "code": "    public int getMaxMessagesPerTask() {\n        return maxMessagesPerTask;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMaxMessagesPerTask", "code": "    public void setMaxMessagesPerTask(int maxMessagesPerTask) {\n        this.maxMessagesPerTask = maxMessagesPerTask;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getServerSessionFactory", "code": "    public ServerSessionFactory getServerSessionFactory() {\n        return serverSessionFactory;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setServerSessionFactory", "code": "    public void setServerSessionFactory(ServerSessionFactory serverSessionFactory) {\n        this.serverSessionFactory = serverSessionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCacheLevel", "code": "    public int getCacheLevel() {\n        return cacheLevel;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCacheLevel", "code": "    public void setCacheLevel(int cacheLevel) {\n        this.cacheLevel = cacheLevel;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCacheLevelName", "code": "    public String getCacheLevelName() {\n        return cacheLevelName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCacheLevelName", "code": "    public void setCacheLevelName(String cacheName) {\n        this.cacheLevelName = cacheName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRecoveryInterval", "code": "    public long getRecoveryInterval() {\n        return recoveryInterval;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRecoveryInterval", "code": "    public void setRecoveryInterval(long recoveryInterval) {\n        this.recoveryInterval = recoveryInterval;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReceiveTimeout", "code": "    public long getReceiveTimeout() {\n        return receiveTimeout;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReceiveTimeout", "code": "    public void setReceiveTimeout(long receiveTimeout) {\n        this.receiveTimeout = receiveTimeout;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTransactionManager", "code": "    public PlatformTransactionManager getTransactionManager() {\n        return transactionManager;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransactionManager", "code": "    public void setTransactionManager(PlatformTransactionManager transactionManager) {\n        this.transactionManager = transactionManager;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTransactionName", "code": "    public String getTransactionName() {\n        return transactionName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransactionName", "code": "    public void setTransactionName(String transactionName) {\n        this.transactionName = transactionName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTransactionTimeout", "code": "    public int getTransactionTimeout() {\n        return transactionTimeout;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransactionTimeout", "code": "    public void setTransactionTimeout(int transactionTimeout) {\n        this.transactionTimeout = transactionTimeout;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIdleTaskExecutionLimit", "code": "    public int getIdleTaskExecutionLimit() {\n        return idleTaskExecutionLimit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIdleTaskExecutionLimit", "code": "    public void setIdleTaskExecutionLimit(int idleTaskExecutionLimit) {\n        this.idleTaskExecutionLimit = idleTaskExecutionLimit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaxConcurrentConsumers", "code": "    public int getMaxConcurrentConsumers() {\n        return maxConcurrentConsumers;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMaxConcurrentConsumers", "code": "    public void setMaxConcurrentConsumers(int maxConcurrentConsumers) {\n        this.maxConcurrentConsumers = maxConcurrentConsumers;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isExplicitQosEnabled", "code": "    public boolean isExplicitQosEnabled() {\n        return explicitQosEnabled;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExplicitQosEnabled", "code": "    public void setExplicitQosEnabled(boolean explicitQosEnabled) {\n        this.explicitQosEnabled = explicitQosEnabled;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDeliveryPersistent", "code": "    public boolean isDeliveryPersistent() {\n        return deliveryPersistent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDeliveryPersistent", "code": "    public void setDeliveryPersistent(boolean deliveryPersistent) {\n        this.deliveryPersistent = deliveryPersistent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTimeToLive", "code": "    public long getTimeToLive() {\n        return timeToLive;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeToLive", "code": "    public void setTimeToLive(long timeToLive) {\n        this.timeToLive = timeToLive;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMessageConverter", "code": "    public MessageConverter getMessageConverter() {\n        return messageConverter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessageConverter", "code": "    public void setMessageConverter(MessageConverter messageConverter) {\n        this.messageConverter = messageConverter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isMessageIdEnabled", "code": "    public boolean isMessageIdEnabled() {\n        return messageIdEnabled;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessageIdEnabled", "code": "    public void setMessageIdEnabled(boolean messageIdEnabled) {\n        this.messageIdEnabled = messageIdEnabled;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isMessageTimestampEnabled", "code": "    public boolean isMessageTimestampEnabled() {\n        return messageTimestampEnabled;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMessageTimestampEnabled", "code": "    public void setMessageTimestampEnabled(boolean messageTimestampEnabled) {\n        this.messageTimestampEnabled = messageTimestampEnabled;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPriority", "code": "    public int getPriority() {\n        return priority;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPriority", "code": "    public void setPriority(int priority) {\n        this.priority = priority;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConsumerType", "code": "    public ConsumerType getConsumerType() {\n        return consumerType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConsumerType", "code": "    public void setConsumerType(ConsumerType consumerType) {\n        this.consumerType = consumerType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAcknowledgementMode", "code": "    public int getAcknowledgementMode() {\n        return acknowledgementMode;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAcknowledgementMode", "code": "    public void setAcknowledgementMode(int consumerAcknowledgementMode) {\n        this.acknowledgementMode = consumerAcknowledgementMode;\n        this.acknowledgementModeName = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isTransacted", "code": "    public boolean isTransacted() {\n        return transacted;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTransacted", "code": "    public void setTransacted(boolean consumerTransacted) {\n        this.transacted = consumerTransacted;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "chooseMessageListenerContainerImplementation", "code": "    protected AbstractMessageListenerContainer chooseMessageListenerContainerImplementation() {\n        switch (consumerType) {\n        case Simple:\n            return isUseVersion102() ? new SimpleMessageListenerContainer102() : new SimpleMessageListenerContainer();\n        case ServerSessionPool:\n            return isUseVersion102() ? new ServerSessionMessageListenerContainer102() : new ServerSessionMessageListenerContainer();\n        case Default:\n            return isUseVersion102() ? new DefaultMessageListenerContainer102() : new DefaultMessageListenerContainer();\n        default:\n            throw new IllegalArgumentException(\"Unknown consumer type: \" + consumerType);", "ast_nodes": ["FUNC_DECL", "SWITCH", "THROW_RAISE", "RETURN", "RETURN", "RETURN", "CALL", "COND_EXPR", "COND_EXPR", "COND_EXPR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [7, 12], [7, 13], [8, 14], [8, 15], [8, 16], [9, 17], [9, 18], [9, 19], [10, 20], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 3], [8, 4], [9, 5], [10, 6], [11, 7], [12, 7], [13, 7], [14, 8], [15, 8], [16, 8], [17, 9], [18, 9], [19, 9], [20, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "createConnectionFactory", "code": "    protected ConnectionFactory createConnectionFactory() {\n        ObjectHelper.notNull(connectionFactory, \"connectionFactory\");\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [3, 4], [1, 0], [2, 1], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createListenerConnectionFactory", "code": "    protected ConnectionFactory createListenerConnectionFactory() {\n        return getConnectionFactory();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createTemplateConnectionFactory", "code": "    protected ConnectionFactory createTemplateConnectionFactory() {\n        return getConnectionFactory();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isPreserveMessageQos", "code": "    public boolean isPreserveMessageQos() {\n        return preserveMessageQos;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPreserveMessageQos", "code": "    public void setPreserveMessageQos(boolean preserveMessageQos) {\n        this.preserveMessageQos = preserveMessageQos;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getJmsOperations", "code": "    public JmsOperations getJmsOperations() {\n        return jmsOperations;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setJmsOperations", "code": "    public void setJmsOperations(JmsOperations jmsOperations) {\n        this.jmsOperations = jmsOperations;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDestinationResolver", "code": "    public DestinationResolver getDestinationResolver() {\n        return destinationResolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDestinationResolver", "code": "    public void setDestinationResolver(DestinationResolver destinationResolver) {\n        this.destinationResolver = destinationResolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JmsConfiguration", "code": "    public JmsConfiguration() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "JmsConfiguration", "code": "    public JmsConfiguration(ConnectionFactory connectionFactory) {\n        this.connectionFactory = connectionFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6633", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/lib/ExsltMath.java", "language": "java", "name": "org.apache.xalan.lib.ExsltMath", "code": "public class ExsltMath\n{\n  /**\n   * The math:max function returns the maximum value of the nodes passed as the argument. \n   * The maximum value is defined as follows. The node set passed as an argument is sorted \n   * in descending order as it would be by xsl:sort with a data type of number. The maximum \n   * is the result of converting the string value of the first node in this sorted list to \n   * a number using the number function. \n   * \n   * If the node set is empty, or if the result of converting the string values of any of the \n   * nodes to a number is NaN, then NaN is returned.\n   * \n   * @param expCon is passed in by the Xalan extension processor\n   * @param ni The NodeIterator for the node-set to be evaluated.\n   * \n   * @return String representation of the maximum value found, NaN if any node cannot be \n   * converted to a number.\n   * \n   */\n  public static String max (ExpressionContext expCon, NodeIterator ni)\n  {\n    NodeSet ns = new NodeSet(ni);\n    Node maxNode = null;\n    double m = Double.MIN_VALUE;\n    for (int i = 0; i < ns.getLength(); i++)\n    {\n      Node n = ns.elementAt(i);\n      double d = expCon.toNumber(n);\n      if (Double.isNaN(d))\n        return \"NaN\";\n      else if (d > m)\n      {\n        m = d;\n        maxNode = n;\n      }\n    }\n    return expCon.toString(maxNode);      \n  }\n\n  /**\n   * The math:min function returns the minimum value of the nodes passed as the argument. \n   * The minimum value is defined as follows. The node set passed as an argument is sorted \n   * in ascending order as it would be by xsl:sort with a data type of number. The minimum \n   * is the result of converting the string value of the first node in this sorted list to \n   * a number using the number function. \n   * \n   * If the node set is empty, or if the result of converting the string values of any of \n   * the nodes to a number is NaN, then NaN is returned.\n   * \n   * @param expCon is passed in by the Xalan extension processor\n   * @param ni The NodeIterator for the node-set to be evaluated.\n   * \n   * @return String representation of the minimum value found, NaN if any node cannot be \n   * converted to a number.\n   * \n   */\n  public static String min (ExpressionContext expCon, NodeIterator ni)\n  {\n    NodeSet ns = new NodeSet(ni);\n    Node minNode = null;\n    double m = Double.MAX_VALUE;\n    for (int i = 0; i < ns.getLength(); i++)\n    {\n      Node n = ns.elementAt(i);\n      double d = expCon.toNumber(n);\n      if (Double.isNaN(d))\n        return \"NaN\";\n      else if (d < m)\n      {\n        m = d;\n        minNode = n;\n      }\n    }\n    return expCon.toString(minNode);\n  }\n  \n  /**\n   * The math:highest function returns the nodes in the node set whose value is the maximum \n   * value for the node set. The maximum value for the node set is the same as the value as \n   * calculated by math:max. A node has this maximum value if the result of converting its \n   * string value to a number as if by the number function is equal to the maximum value, \n   * where the equality comparison is defined as a numerical comparison using the = operator.\n   * \n   * If any of the nodes in the node set has a non-numeric value, the math:max function will \n   * return NaN. The definition numeric comparisons entails that NaN != NaN. Therefore if any \n   * of the nodes in the node set has a non-numeric value, math:highest will return an empty \n   * node set. \n   * \n   * @param expCon is passed in by the Xalan extension processor\n   * @param ni The NodeIterator for the node-set to be evaluated.\n   * \n   * @return node-set with nodes containing the maximum value found, an empty node-set\n   * if any node cannot be converted to a number.\n   */\n  public static NodeSet highest (ExpressionContext expCon, NodeIterator ni)\n    throws java.lang.CloneNotSupportedException\n  {    \n    NodeSet ns = new NodeSet(ni);\n    NodeIterator niClone = ns.cloneWithReset();\n    double high = new Double(max(expCon, niClone)).doubleValue();\n    NodeSet highNodes = new NodeSet();\n    highNodes.setShouldCacheNodes(true);\n    \n    if (Double.isNaN(high))\n    \n     for (int i = 0; i < ns.getLength(); i++)\n    {\n      Node n = ns.elementAt(i);\n      double d = expCon.toNumber(n); \n      if (d == high)\n      highNodes.addElement(n);\n    }\n    return highNodes;\n  }\n  \n  /**\n   * The math:lowest function returns the nodes in the node set whose value is the minimum value \n   * for the node set. The minimum value for the node set is the same as the value as calculated \n   * by math:min. A node has this minimum value if the result of converting its string value to \n   * a number as if by the number function is equal to the minimum value, where the equality \n   * comparison is defined as a numerical comparison using the = operator.\n   * \n   * If any of the nodes in the node set has a non-numeric value, the math:min function will return \n   * NaN. The definition numeric comparisons entails that NaN != NaN. Therefore if any of the nodes \n   * in the node set has a non-numeric value, math:lowest will return an empty node set.\n   * \n   * @param expCon is passed in by the Xalan extension processor\n   * @param ni The NodeIterator for the node-set to be evaluated.\n   * \n   * @return node-set with nodes containing the minimum value found, an empty node-set\n   * if any node cannot be converted to a number.\n   * \n   */\n  public static NodeSet lowest (ExpressionContext expCon, NodeIterator ni)\n    throws java.lang.CloneNotSupportedException\n  {\n    NodeSet ns = new NodeSet(ni);\n    NodeIterator niClone = ns.cloneWithReset();\n    double low = new Double(min(expCon, niClone)).doubleValue();\n\n    NodeSet lowNodes = new NodeSet();\n    lowNodes.setShouldCacheNodes(true);\n    \n    if (Double.isNaN(low))\n    \n     for (int i = 0; i < ns.getLength(); i++)\n    {\n      Node n = ns.elementAt(i);\n      double d = expCon.toNumber(n); \n      if (d == low)\n      lowNodes.addElement(n);\n    }\n    return lowNodes;", "functions": [{"function_name": "max", "code": "  public static String max (ExpressionContext expCon, NodeIterator ni)\n  {\n    NodeSet ns = new NodeSet(ni);\n    Node maxNode = null;\n    double m = Double.MIN_VALUE;\n    for (int i = 0; i < ns.getLength(); i++)\n    {\n      Node n = ns.elementAt(i);\n      double d = expCon.toNumber(n);\n      if (Double.isNaN(d))\n        return \"NaN\";\n      else if (d > m)\n      {\n        m = d;\n        maxNode = n;\n      }\n    }\n    return expCon.toString(maxNode);      ", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [9, 13], [4, 14], [5, 15], [10, 16], [10, 17], [10, 18], [2, 19], [16, 20], [17, 21], [11, 22], [12, 23], [16, 24], [16, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 9], [14, 4], [15, 5], [16, 10], [17, 10], [18, 10], [19, 2], [20, 16], [21, 17], [22, 11], [23, 12], [24, 16], [25, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "min", "code": "  public static String min (ExpressionContext expCon, NodeIterator ni)\n  {\n    NodeSet ns = new NodeSet(ni);\n    Node minNode = null;\n    double m = Double.MAX_VALUE;\n    for (int i = 0; i < ns.getLength(); i++)\n    {\n      Node n = ns.elementAt(i);\n      double d = expCon.toNumber(n);\n      if (Double.isNaN(d))\n        return \"NaN\";\n      else if (d < m)\n      {\n        m = d;\n        minNode = n;\n      }\n    }\n    return expCon.toString(minNode);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [9, 13], [4, 14], [5, 15], [10, 16], [10, 17], [10, 18], [2, 19], [16, 20], [17, 21], [11, 22], [12, 23], [16, 24], [16, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 9], [14, 4], [15, 5], [16, 10], [17, 10], [18, 10], [19, 2], [20, 16], [21, 17], [22, 11], [23, 12], [24, 16], [25, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "highest", "code": "  public static NodeSet highest (ExpressionContext expCon, NodeIterator ni)\n    throws java.lang.CloneNotSupportedException\n  {    \n    NodeSet ns = new NodeSet(ni);\n    NodeIterator niClone = ns.cloneWithReset();\n    double high = new Double(max(expCon, niClone)).doubleValue();\n    NodeSet highNodes = new NodeSet();\n    highNodes.setShouldCacheNodes(true);\n    \n    if (Double.isNaN(high))\n    \n     for (int i = 0; i < ns.getLength(); i++)\n    {\n      Node n = ns.elementAt(i);\n      double d = expCon.toNumber(n); \n      if (d == high)\n      highNodes.addElement(n);\n    }\n    return highNodes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LOOP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [0, 11], [9, 12], [11, 13], [3, 14], [4, 15], [5, 16], [6, 17], [9, 18], [9, 19], [9, 20], [12, 21], [15, 22], [15, 23], [18, 24], [9, 25], [18, 26], [19, 27], [20, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 0], [12, 9], [13, 11], [14, 3], [15, 4], [16, 5], [17, 6], [18, 9], [19, 9], [20, 9], [21, 12], [22, 15], [23, 15], [24, 18], [25, 9], [26, 18], [27, 19], [28, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "lowest", "code": "  public static NodeSet lowest (ExpressionContext expCon, NodeIterator ni)\n    throws java.lang.CloneNotSupportedException\n  {\n    NodeSet ns = new NodeSet(ni);\n    NodeIterator niClone = ns.cloneWithReset();\n    double low = new Double(min(expCon, niClone)).doubleValue();\n\n    NodeSet lowNodes = new NodeSet();\n    lowNodes.setShouldCacheNodes(true);\n    \n    if (Double.isNaN(low))\n    \n     for (int i = 0; i < ns.getLength(); i++)\n    {\n      Node n = ns.elementAt(i);\n      double d = expCon.toNumber(n); \n      if (d == low)\n      lowNodes.addElement(n);\n    }\n    return lowNodes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LOOP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [0, 11], [9, 12], [11, 13], [3, 14], [4, 15], [5, 16], [6, 17], [9, 18], [9, 19], [9, 20], [12, 21], [15, 22], [15, 23], [18, 24], [9, 25], [18, 26], [19, 27], [20, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 0], [12, 9], [13, 11], [14, 3], [15, 4], [16, 5], [17, 6], [18, 9], [19, 9], [20, 9], [21, 12], [22, 15], [23, 15], [24, 18], [25, 9], [26, 18], [27, 19], [28, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}], "label": 1}
{"sample_id": "ivy-2.0-3399", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/retrieve/RetrieveOptions.java", "language": "java", "name": "org.apache.ivy.core.retrieve.RetrieveOptions", "code": "public class RetrieveOptions extends LogOptions {\n    /**\n     * The names of configurations to retrieve. If the array consists only of '*', then all\n     * configurations of the module will be retrieved.\n     */\n    private String[] confs = new String[] {\"*\"};\n\n    /**\n     * The pattern to which ivy files should be retrieved. If destIvyPattern is null no ivy files\n     * will be copied.\n     */\n    private String destIvyPattern = null;\n\n    /**\n     * The filter to apply before retrieving artifacts.\n     */\n    private Filter artifactFilter = FilterHelper.NO_FILTER;\n\n    /**\n     * True if a synchronisation of the destination directory should be done, false if a simple copy\n     * is enough. Synchronisation means that after the retrieve only files which have been retrieved\n     * will be present in the destination directory, which means that some files may be deleted.\n     */\n    private boolean sync = false;\n\n    /**\n     * True if the original files should be used insteaad of their cache copy.\n     */\n    private boolean useOrigin = false;\n\n    /**\n     * True if symbolic links should be created instead of plain copy. Works only on OS supporting\n     * symbolic links.\n     */\n    private boolean makeSymlinks = false;\n\n    /**\n     * The id used to store the resolve information.\n     */\n    private String resolveId;\n\n    public Filter getArtifactFilter() {\n        return artifactFilter;\n    }\n\n    public RetrieveOptions setArtifactFilter(Filter artifactFilter) {\n        this.artifactFilter = artifactFilter;\n        return this;\n    }\n\n    public String[] getConfs() {\n        return confs;\n    }\n\n    public RetrieveOptions setConfs(String[] confs) {\n        this.confs = confs;\n        return this;\n    }\n\n    public String getDestIvyPattern() {\n        return destIvyPattern;\n    }\n\n    public RetrieveOptions setDestIvyPattern(String destIvyPattern) {\n        this.destIvyPattern = destIvyPattern;\n        return this;\n    }\n\n    public boolean isMakeSymlinks() {\n        return makeSymlinks;\n    }\n\n    public RetrieveOptions setMakeSymlinks(boolean makeSymlinks) {\n        this.makeSymlinks = makeSymlinks;\n        return this;\n    }\n\n    public boolean isSync() {\n        return sync;\n    }\n\n    public RetrieveOptions setSync(boolean sync) {\n        this.sync = sync;\n        return this;\n    }\n\n    public boolean isUseOrigin() {\n        return useOrigin;\n    }\n\n    public RetrieveOptions setUseOrigin(boolean useOrigin) {\n        this.useOrigin = useOrigin;\n        return this;\n    }\n\n    public String getResolveId() {\n        return resolveId;\n    }\n\n    public RetrieveOptions setResolveId(String resolveId) {\n        this.resolveId = resolveId;\n        return this;", "functions": [{"function_name": "getArtifactFilter", "code": "    public Filter getArtifactFilter() {\n        return artifactFilter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setArtifactFilter", "code": "    public RetrieveOptions setArtifactFilter(Filter artifactFilter) {\n        this.artifactFilter = artifactFilter;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getConfs", "code": "    public String[] getConfs() {\n        return confs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConfs", "code": "    public RetrieveOptions setConfs(String[] confs) {\n        this.confs = confs;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDestIvyPattern", "code": "    public String getDestIvyPattern() {\n        return destIvyPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDestIvyPattern", "code": "    public RetrieveOptions setDestIvyPattern(String destIvyPattern) {\n        this.destIvyPattern = destIvyPattern;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isMakeSymlinks", "code": "    public boolean isMakeSymlinks() {\n        return makeSymlinks;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMakeSymlinks", "code": "    public RetrieveOptions setMakeSymlinks(boolean makeSymlinks) {\n        this.makeSymlinks = makeSymlinks;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isSync", "code": "    public boolean isSync() {\n        return sync;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSync", "code": "    public RetrieveOptions setSync(boolean sync) {\n        this.sync = sync;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isUseOrigin", "code": "    public boolean isUseOrigin() {\n        return useOrigin;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUseOrigin", "code": "    public RetrieveOptions setUseOrigin(boolean useOrigin) {\n        this.useOrigin = useOrigin;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResolveId", "code": "    public String getResolveId() {\n        return resolveId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResolveId", "code": "    public RetrieveOptions setResolveId(String resolveId) {\n        this.resolveId = resolveId;\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "poi-2.5-5802", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/ddf/EscherBlipRecord.java", "language": "java", "name": "org.apache.poi.ddf.EscherBlipRecord", "code": "public class EscherBlipRecord\n        extends EscherRecord\n{\n    public static final short  RECORD_ID_START    = (short) 0xF018;\n    public static final short  RECORD_ID_END      = (short) 0xF117;\n    public static final String RECORD_DESCRIPTION = \"msofbtBlip\";\n    private static final int   HEADER_SIZE               = 8;\n\n    private              byte[] field_1_secondaryUID;\n    private              int    field_2_cacheOfSize;\n    private              int    field_3_boundaryTop;\n    private              int    field_4_boundaryLeft;\n    private              int    field_5_boundaryWidth;\n    private              int    field_6_boundaryHeight;\n    private              int    field_7_width;\n    private              int    field_8_height;\n    private              int    field_9_cacheOfSavedSize;\n    private              byte   field_10_compressionFlag;\n    private              byte   field_11_filter;\n    private              byte[] field_12_data;\n\n\n    /**\n     * This method deserializes the record from a byte array.\n     *\n     * @param data          The byte array containing the escher record information\n     * @param offset        The starting offset into <code>data</code>.\n     * @param recordFactory May be null since this is not a container record.\n     * @return The number of bytes read from the byte array.\n     */\n    public int fillFields( byte[] data, int offset,\n                              EscherRecordFactory recordFactory\n                              )\n    {\n        int bytesAfterHeader = readHeader( data, offset );\n        int pos              = offset + HEADER_SIZE;\n\n        int size = 0;\n        field_1_secondaryUID = new byte[16];\n        System.arraycopy( data, pos + size, field_1_secondaryUID, 0, 16 ); size += 16;\n        field_2_cacheOfSize      =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_3_boundaryTop      =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_4_boundaryLeft     =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_5_boundaryWidth    =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_6_boundaryHeight   =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_7_width            =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_8_height           =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_9_cacheOfSavedSize =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_10_compressionFlag = data[pos + size]; size++;\n        field_11_filter          = data[pos + size]; size++;\n\n        int bytesRemaining = bytesAfterHeader - size;\n        field_12_data = new byte[bytesRemaining];\n        System.arraycopy(data, pos + size, field_12_data, 0, bytesRemaining);\n\n        return bytesRemaining + HEADER_SIZE + bytesAfterHeader;\n    }\n\n\n    /**\n     * This method serializes this escher record into a byte array.\n     *\n     * @param offset   The offset into <code>data</code> to start writing the record data to.\n     * @param data     The byte array to serialize to.\n     * @param listener A listener to retrieve start and end callbacks.  Use a <code>NullEscherSerailizationListener</code> to ignore these events.\n     * @return The number of bytes written.\n     *\n     * @see NullEscherSerializationListener\n     */\n    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize(offset, getRecordId(), this);\n\n        LittleEndian.putShort( data, offset, getOptions() );\n        LittleEndian.putShort( data, offset + 2, getRecordId() );\n        int remainingBytes = field_12_data.length + 36;\n        LittleEndian.putInt( data, offset + 4, remainingBytes );\n\n        int pos = offset + HEADER_SIZE;\n        System.arraycopy(field_1_secondaryUID, 0, data, pos, 16 ); pos += 16;\n        LittleEndian.putInt( data, pos, field_2_cacheOfSize); pos += 4;\n        LittleEndian.putInt( data, pos, field_3_boundaryTop); pos += 4;\n        LittleEndian.putInt( data, pos, field_4_boundaryLeft); pos += 4;\n        LittleEndian.putInt( data, pos, field_5_boundaryWidth); pos += 4;\n        LittleEndian.putInt( data, pos, field_6_boundaryHeight); pos += 4;\n        LittleEndian.putInt( data, pos, field_7_width); pos += 4;\n        LittleEndian.putInt( data, pos, field_8_height); pos += 4;\n        LittleEndian.putInt( data, pos, field_9_cacheOfSavedSize); pos += 4;\n        data[pos++] = field_10_compressionFlag;\n        data[pos++] = field_11_filter;\n        System.arraycopy(field_12_data, 0, data, pos, field_12_data.length); pos += field_12_data.length;\n\n        listener.afterRecordSerialize(pos, getRecordId(), pos - offset, this);\n        return pos - offset;\n    }\n\n    /**\n     * Returns the number of bytes that are required to serialize this record.\n     *\n     * @return Number of bytes\n     */\n    public int getRecordSize()\n    {\n        return 58 + field_12_data.length;\n    }\n\n    /**\n     * The short name for this record\n     */\n    public String getRecordName()\n    {\n        return \"Blip\";\n    }\n\n    /**\n     * Retrieve the secondary UID\n     */\n    public byte[] getSecondaryUID()\n    {\n        return field_1_secondaryUID;\n    }\n\n    /**\n     * Set the secondary UID\n     */\n    public void setSecondaryUID( byte[] field_1_secondaryUID )\n    {\n        this.field_1_secondaryUID = field_1_secondaryUID;\n    }\n\n    /**\n     * Retrieve the cache of the metafile size\n     */\n    public int getCacheOfSize()\n    {\n        return field_2_cacheOfSize;\n    }\n\n    /**\n     * Set the cache of the metafile size\n     */\n    public void setCacheOfSize( int field_2_cacheOfSize )\n    {\n        this.field_2_cacheOfSize = field_2_cacheOfSize;\n    }\n\n    /**\n     * Retrieve the top boundary of the metafile drawing commands\n     */\n    public int getBoundaryTop()\n    {\n        return field_3_boundaryTop;\n    }\n\n    /**\n     * Set the top boundary of the metafile drawing commands\n     */\n    public void setBoundaryTop( int field_3_boundaryTop )\n    {\n        this.field_3_boundaryTop = field_3_boundaryTop;\n    }\n\n    /**\n     * Retrieve the left boundary of the metafile drawing commands\n     */\n    public int getBoundaryLeft()\n    {\n        return field_4_boundaryLeft;\n    }\n\n    /**\n     * Set the left boundary of the metafile drawing commands\n     */\n    public void setBoundaryLeft( int field_4_boundaryLeft )\n    {\n        this.field_4_boundaryLeft = field_4_boundaryLeft;\n    }\n\n    /**\n     * Retrieve the boundary width of the metafile drawing commands\n     */\n    public int getBoundaryWidth()\n    {\n        return field_5_boundaryWidth;\n    }\n\n    /**\n     * Set the boundary width of the metafile drawing commands\n     */\n    public void setBoundaryWidth( int field_5_boundaryWidth )\n    {\n        this.field_5_boundaryWidth = field_5_boundaryWidth;\n    }\n\n    /**\n     * Retrieve the boundary height of the metafile drawing commands\n     */\n    public int getBoundaryHeight()\n    {\n        return field_6_boundaryHeight;\n    }\n\n    /**\n     * Set the boundary height of the metafile drawing commands\n     */\n    public void setBoundaryHeight( int field_6_boundaryHeight )\n    {\n        this.field_6_boundaryHeight = field_6_boundaryHeight;\n    }\n\n    /**\n     * Retrieve the width of the metafile in EMU's (English Metric Units).\n     */\n    public int getWidth()\n    {\n        return field_7_width;\n    }\n\n    /**\n     * Set the width of the metafile in EMU's (English Metric Units).\n     */\n    public void setWidth( int width )\n    {\n        this.field_7_width = width;\n    }\n\n    /**\n     * Retrieve the height of the metafile in EMU's (English Metric Units).\n     */\n    public int getHeight()\n    {\n        return field_8_height;\n    }\n\n    /**\n     * Set the height of the metafile in EMU's (English Metric Units).\n     */\n    public void setHeight( int height )\n    {\n        this.field_8_height = height;\n    }\n\n    /**\n     * Retrieve the cache of the saved size\n     */\n    public int getCacheOfSavedSize()\n    {\n        return field_9_cacheOfSavedSize;\n    }\n\n    /**\n     * Set the cache of the saved size\n     */\n    public void setCacheOfSavedSize( int field_9_cacheOfSavedSize )\n    {\n        this.field_9_cacheOfSavedSize = field_9_cacheOfSavedSize;\n    }\n\n    /**\n     * Is the contents of the blip compressed?\n     */\n    public byte getCompressionFlag()\n    {\n        return field_10_compressionFlag;\n    }\n\n    /**\n     * Set whether the contents of the blip is compressed\n     */\n    public void setCompressionFlag( byte field_10_compressionFlag )\n    {\n        this.field_10_compressionFlag = field_10_compressionFlag;\n    }\n\n    /**\n     * Filter should always be 0\n     */\n    public byte getFilter()\n    {\n        return field_11_filter;\n    }\n\n    /**\n     * Filter should always be 0\n     */\n    public void setFilter( byte field_11_filter )\n    {\n        this.field_11_filter = field_11_filter;\n    }\n\n    /**\n     * The BLIP data\n     */\n    public byte[] getData()\n    {\n        return field_12_data;\n    }\n\n    /**\n     * The BLIP data\n     */\n    public void setData( byte[] field_12_data )\n    {\n        this.field_12_data = field_12_data;\n    }\n\n    /**\n     * The string representation of this record.\n     *\n     * @return A string\n     */\n    public String toString()\n    {\n        String nl = System.getProperty( \"line.separator\" );\n\n        String extraData;\n        ByteArrayOutputStream b = new ByteArrayOutputStream();\n        try\n        {\n            HexDump.dump( this.field_12_data, 0, b, 0 );\n            extraData = b.toString();\n        }\n        catch ( Exception e )\n        {\n            extraData = e.toString();\n        }\n        return getClass().getName() + \":\" + nl +\n                \"  RecordId: 0x\" + HexDump.toHex( getRecordId() ) + nl +\n                \"  Options: 0x\" + HexDump.toHex( getOptions() ) + nl +\n                \"  Secondary UID: \" + HexDump.toHex( field_1_secondaryUID ) + nl +\n                \"  CacheOfSize: \" + field_2_cacheOfSize + nl +\n                \"  BoundaryTop: \" + field_3_boundaryTop + nl +\n                \"  BoundaryLeft: \" + field_4_boundaryLeft + nl +\n                \"  BoundaryWidth: \" + field_5_boundaryWidth + nl +\n                \"  BoundaryHeight: \" + field_6_boundaryHeight + nl +\n                \"  X: \" + field_7_width + nl +\n                \"  Y: \" + field_8_height + nl +\n                \"  CacheOfSavedSize: \" + field_9_cacheOfSavedSize + nl +\n                \"  CompressionFlag: \" + field_10_compressionFlag + nl +\n                \"  Filter: \" + field_11_filter + nl +\n                \"  Data:\" + nl + extraData;\n    }\n\n    /**\n     * Compress the contents of the provided array\n     *\n     * @param data An uncompressed byte array\n     * @see DeflaterOutputStream#write(int b)\n     */\n    public static byte[] compress( byte[] data )\n    {\n        ByteArrayOutputStream out                  = new ByteArrayOutputStream();\n        DeflaterOutputStream  deflaterOutputStream = new DeflaterOutputStream( out );\n        try\n        {\n            for ( int i = 0; i < data.length; i++ )\n                deflaterOutputStream.write( data[i] );\n        }\n        catch ( IOException e )\n        {\n            throw new RecordFormatException( e.toString() );\n        }\n\n        return out.toByteArray();\n    }\n\n    /**\n     * Decompresses a byte array.\n     *\n     * @param data   The compressed byte array\n     * @param pos    The starting position into the byte array\n     * @param length The number of compressed bytes to decompress\n     * @return An uncompressed byte array\n     * @see InflaterInputStream#read\n     */\n    public static byte[] decompress( byte[] data, int pos, int length )\n    {\n        byte[] compressedData = new byte[length];\n        System.arraycopy( data, pos + 50, compressedData, 0, length );\n        InputStream           compressedInputStream = new ByteArrayInputStream( compressedData );\n        InflaterInputStream   inflaterInputStream   = new InflaterInputStream( compressedInputStream );\n        ByteArrayOutputStream out                   = new ByteArrayOutputStream();\n        int                   c;\n        try\n        {\n            while ( ( c = inflaterInputStream.read() ) != -1 )\n                out.write( c );\n        }\n        catch ( IOException e )\n        {\n            throw new RecordFormatException( e.toString() );\n        }\n        return out.toByteArray();", "functions": [{"function_name": "fillFields", "code": "    public int fillFields( byte[] data, int offset,\n                              EscherRecordFactory recordFactory\n                              )\n    {\n        int bytesAfterHeader = readHeader( data, offset );\n        int pos              = offset + HEADER_SIZE;\n\n        int size = 0;\n        field_1_secondaryUID = new byte[16];\n        System.arraycopy( data, pos + size, field_1_secondaryUID, 0, 16 ); size += 16;\n        field_2_cacheOfSize      =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_3_boundaryTop      =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_4_boundaryLeft     =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_5_boundaryWidth    =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_6_boundaryHeight   =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_7_width            =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_8_height           =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_9_cacheOfSavedSize =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_10_compressionFlag = data[pos + size]; size++;\n        field_11_filter          = data[pos + size]; size++;\n\n        int bytesRemaining = bytesAfterHeader - size;\n        field_12_data = new byte[bytesRemaining];\n        System.arraycopy(data, pos + size, field_12_data, 0, bytesRemaining);\n\n        return bytesRemaining + HEADER_SIZE + bytesAfterHeader;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [9, 33], [10, 34], [10, 35], [2, 36], [14, 37], [15, 38], [16, 39], [17, 40], [18, 41], [19, 42], [20, 43], [21, 44], [22, 45], [23, 46], [24, 47], [25, 48], [26, 49], [27, 50], [28, 51], [29, 52], [30, 53], [31, 54], [31, 55], [31, 56], [3, 57], [4, 58], [5, 59], [38, 60], [40, 61], [42, 62], [44, 63], [46, 64], [48, 65], [50, 66], [52, 67], [32, 68], [12, 69], [13, 70], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 9], [34, 10], [35, 10], [36, 2], [37, 14], [38, 15], [39, 16], [40, 17], [41, 18], [42, 19], [43, 20], [44, 21], [45, 22], [46, 23], [47, 24], [48, 25], [49, 26], [50, 27], [51, 28], [52, 29], [53, 30], [54, 31], [55, 31], [56, 31], [57, 3], [58, 4], [59, 5], [60, 38], [61, 40], [62, 42], [63, 44], [64, 46], [65, 48], [66, 50], [67, 52], [68, 32], [69, 12], [70, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize(offset, getRecordId(), this);\n\n        LittleEndian.putShort( data, offset, getOptions() );\n        LittleEndian.putShort( data, offset + 2, getRecordId() );\n        int remainingBytes = field_12_data.length + 36;\n        LittleEndian.putInt( data, offset + 4, remainingBytes );\n\n        int pos = offset + HEADER_SIZE;\n        System.arraycopy(field_1_secondaryUID, 0, data, pos, 16 ); pos += 16;\n        LittleEndian.putInt( data, pos, field_2_cacheOfSize); pos += 4;\n        LittleEndian.putInt( data, pos, field_3_boundaryTop); pos += 4;\n        LittleEndian.putInt( data, pos, field_4_boundaryLeft); pos += 4;\n        LittleEndian.putInt( data, pos, field_5_boundaryWidth); pos += 4;\n        LittleEndian.putInt( data, pos, field_6_boundaryHeight); pos += 4;\n        LittleEndian.putInt( data, pos, field_7_width); pos += 4;\n        LittleEndian.putInt( data, pos, field_8_height); pos += 4;\n        LittleEndian.putInt( data, pos, field_9_cacheOfSavedSize); pos += 4;\n        data[pos++] = field_10_compressionFlag;\n        data[pos++] = field_11_filter;\n        System.arraycopy(field_12_data, 0, data, pos, field_12_data.length); pos += field_12_data.length;\n\n        listener.afterRecordSerialize(pos, getRecordId(), pos - offset, this);\n        return pos - offset;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [8, 35], [8, 36], [10, 37], [13, 38], [15, 39], [17, 40], [19, 41], [21, 42], [23, 43], [25, 44], [27, 45], [29, 46], [30, 47], [30, 48], [2, 49], [31, 50], [3, 51], [32, 52], [32, 53], [33, 54], [34, 55], [50, 56], [51, 57], [53, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 8], [36, 8], [37, 10], [38, 13], [39, 15], [40, 17], [41, 19], [42, 21], [43, 23], [44, 25], [45, 27], [46, 29], [47, 30], [48, 30], [49, 2], [50, 31], [51, 3], [52, 32], [53, 32], [54, 33], [55, 34], [56, 50], [57, 51], [58, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 58 + field_12_data.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRecordName", "code": "    public String getRecordName()\n    {\n        return \"Blip\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSecondaryUID", "code": "    public byte[] getSecondaryUID()\n    {\n        return field_1_secondaryUID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSecondaryUID", "code": "    public void setSecondaryUID( byte[] field_1_secondaryUID )\n    {\n        this.field_1_secondaryUID = field_1_secondaryUID;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCacheOfSize", "code": "    public int getCacheOfSize()\n    {\n        return field_2_cacheOfSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCacheOfSize", "code": "    public void setCacheOfSize( int field_2_cacheOfSize )\n    {\n        this.field_2_cacheOfSize = field_2_cacheOfSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBoundaryTop", "code": "    public int getBoundaryTop()\n    {\n        return field_3_boundaryTop;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBoundaryTop", "code": "    public void setBoundaryTop( int field_3_boundaryTop )\n    {\n        this.field_3_boundaryTop = field_3_boundaryTop;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBoundaryLeft", "code": "    public int getBoundaryLeft()\n    {\n        return field_4_boundaryLeft;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBoundaryLeft", "code": "    public void setBoundaryLeft( int field_4_boundaryLeft )\n    {\n        this.field_4_boundaryLeft = field_4_boundaryLeft;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBoundaryWidth", "code": "    public int getBoundaryWidth()\n    {\n        return field_5_boundaryWidth;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBoundaryWidth", "code": "    public void setBoundaryWidth( int field_5_boundaryWidth )\n    {\n        this.field_5_boundaryWidth = field_5_boundaryWidth;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBoundaryHeight", "code": "    public int getBoundaryHeight()\n    {\n        return field_6_boundaryHeight;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBoundaryHeight", "code": "    public void setBoundaryHeight( int field_6_boundaryHeight )\n    {\n        this.field_6_boundaryHeight = field_6_boundaryHeight;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWidth", "code": "    public int getWidth()\n    {\n        return field_7_width;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWidth", "code": "    public void setWidth( int width )\n    {\n        this.field_7_width = width;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeight", "code": "    public int getHeight()\n    {\n        return field_8_height;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHeight", "code": "    public void setHeight( int height )\n    {\n        this.field_8_height = height;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCacheOfSavedSize", "code": "    public int getCacheOfSavedSize()\n    {\n        return field_9_cacheOfSavedSize;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCacheOfSavedSize", "code": "    public void setCacheOfSavedSize( int field_9_cacheOfSavedSize )\n    {\n        this.field_9_cacheOfSavedSize = field_9_cacheOfSavedSize;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCompressionFlag", "code": "    public byte getCompressionFlag()\n    {\n        return field_10_compressionFlag;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCompressionFlag", "code": "    public void setCompressionFlag( byte field_10_compressionFlag )\n    {\n        this.field_10_compressionFlag = field_10_compressionFlag;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFilter", "code": "    public byte getFilter()\n    {\n        return field_11_filter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFilter", "code": "    public void setFilter( byte field_11_filter )\n    {\n        this.field_11_filter = field_11_filter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getData", "code": "    public byte[] getData()\n    {\n        return field_12_data;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setData", "code": "    public void setData( byte[] field_12_data )\n    {\n        this.field_12_data = field_12_data;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        String nl = System.getProperty( \"line.separator\" );\n\n        String extraData;\n        ByteArrayOutputStream b = new ByteArrayOutputStream();\n        try\n        {\n            HexDump.dump( this.field_12_data, 0, b, 0 );\n            extraData = b.toString();\n        }\n        catch ( Exception e )\n        {\n            extraData = e.toString();\n        }\n        return getClass().getName() + \":\" + nl +\n                \"  RecordId: 0x\" + HexDump.toHex( getRecordId() ) + nl +\n                \"  Options: 0x\" + HexDump.toHex( getOptions() ) + nl +\n                \"  Secondary UID: \" + HexDump.toHex( field_1_secondaryUID ) + nl +\n                \"  CacheOfSize: \" + field_2_cacheOfSize + nl +\n                \"  BoundaryTop: \" + field_3_boundaryTop + nl +\n                \"  BoundaryLeft: \" + field_4_boundaryLeft + nl +\n                \"  BoundaryWidth: \" + field_5_boundaryWidth + nl +\n                \"  BoundaryHeight: \" + field_6_boundaryHeight + nl +\n                \"  X: \" + field_7_width + nl +\n                \"  Y: \" + field_8_height + nl +\n                \"  CacheOfSavedSize: \" + field_9_cacheOfSavedSize + nl +\n                \"  CompressionFlag: \" + field_10_compressionFlag + nl +\n                \"  Filter: \" + field_11_filter + nl +\n                \"  Data:\" + nl + extraData;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CATCH", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [6, 8], [2, 9], [2, 10], [3, 11], [5, 12], [8, 13], [7, 14], [9, 15], [10, 16], [10, 17], [12, 18], [13, 19], [13, 20], [14, 21], [20, 22], [22, 23], [23, 24], [23, 25], [25, 26], [26, 27], [27, 28], [27, 29], [29, 30], [30, 31], [31, 32], [31, 33], [33, 34], [34, 35], [35, 36], [35, 37], [37, 38], [38, 39], [39, 40], [39, 41], [41, 42], [42, 43], [43, 44], [43, 45], [45, 46], [46, 47], [47, 48], [47, 49], [49, 50], [50, 51], [51, 52], [51, 53], [53, 54], [54, 55], [55, 56], [55, 57], [57, 58], [58, 59], [59, 60], [59, 61], [61, 62], [62, 63], [62, 64], [64, 65], [64, 66], [66, 67], [67, 68], [67, 69], [68, 70], [69, 71], [69, 72], [72, 73], [73, 74], [73, 75], [74, 76], [75, 77], [75, 78], [78, 79], [79, 80], [79, 81], [81, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 6], [9, 2], [10, 2], [11, 3], [12, 5], [13, 8], [14, 7], [15, 9], [16, 10], [17, 10], [18, 12], [19, 13], [20, 13], [21, 14], [22, 20], [23, 22], [24, 23], [25, 23], [26, 25], [27, 26], [28, 27], [29, 27], [30, 29], [31, 30], [32, 31], [33, 31], [34, 33], [35, 34], [36, 35], [37, 35], [38, 37], [39, 38], [40, 39], [41, 39], [42, 41], [43, 42], [44, 43], [45, 43], [46, 45], [47, 46], [48, 47], [49, 47], [50, 49], [51, 50], [52, 51], [53, 51], [54, 53], [55, 54], [56, 55], [57, 55], [58, 57], [59, 58], [60, 59], [61, 59], [62, 61], [63, 62], [64, 62], [65, 64], [66, 64], [67, 66], [68, 67], [69, 67], [70, 68], [71, 69], [72, 69], [73, 72], [74, 73], [75, 73], [76, 74], [77, 75], [78, 75], [79, 78], [80, 79], [81, 79], [82, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "compress", "code": "    public static byte[] compress( byte[] data )\n    {\n        ByteArrayOutputStream out                  = new ByteArrayOutputStream();\n        DeflaterOutputStream  deflaterOutputStream = new DeflaterOutputStream( out );\n        try\n        {\n            for ( int i = 0; i < data.length; i++ )\n                deflaterOutputStream.write( data[i] );\n        }\n        catch ( IOException e )\n        {\n            throw new RecordFormatException( e.toString() );\n        }\n\n        return out.toByteArray();", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CATCH", "LOOP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [8, 10], [3, 11], [4, 12], [9, 13], [8, 14], [13, 15], [8, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 8], [11, 3], [12, 4], [13, 9], [14, 8], [15, 13], [16, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "decompress", "code": "    public static byte[] decompress( byte[] data, int pos, int length )\n    {\n        byte[] compressedData = new byte[length];\n        System.arraycopy( data, pos + 50, compressedData, 0, length );\n        InputStream           compressedInputStream = new ByteArrayInputStream( compressedData );\n        InflaterInputStream   inflaterInputStream   = new InflaterInputStream( compressedInputStream );\n        ByteArrayOutputStream out                   = new ByteArrayOutputStream();\n        int                   c;\n        try\n        {\n            while ( ( c = inflaterInputStream.read() ) != -1 )\n                out.write( c );\n        }\n        catch ( IOException e )\n        {\n            throw new RecordFormatException( e.toString() );\n        }\n        return out.toByteArray();", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "LOOP", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [2, 13], [0, 14], [12, 15], [13, 16], [4, 17], [5, 18], [6, 19], [14, 20], [14, 21], [15, 22], [13, 23], [16, 24], [16, 25], [21, 26], [22, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 2], [14, 0], [15, 12], [16, 13], [17, 4], [18, 5], [19, 6], [20, 14], [21, 14], [22, 15], [23, 13], [24, 16], [25, 16], [26, 21], [27, 22], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}], "label": 0}
{"sample_id": "jedit-4.2-4497", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "bsh/SimpleNode.java", "language": "java", "name": "bsh.SimpleNode", "code": "class SimpleNode implements Node \n{\n\tpublic static SimpleNode JAVACODE =\n\t\tnew SimpleNode( -1 ) {\n\t\t\tpublic String getSourceFile() {\n\t\t\t\treturn \"<Called from Java Code>\";\n\t\t\t}\n\n\t\t\tpublic int getLineNumber() {\n\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\tpublic String getText()  {\n\t\t\t\treturn \"<Compiled Java Code>\";\n\t\t\t}\n\t\t};\n\n\tprotected Node parent;\n\tprotected Node[] children;\n\tprotected int id;\n\tToken firstToken, lastToken;\n\n\t/** the source of the text from which this was parsed */\n\tString sourceFile;\n\n\tpublic SimpleNode(int i) {\n\t\tid = i;\n\t}\n\n\tpublic void jjtOpen() { }\n\tpublic void jjtClose() { }\n\n\tpublic void jjtSetParent(Node n) { parent = n; }\n\tpublic Node jjtGetParent() { return parent; }\n\t//public SimpleNode getParent() { return (SimpleNode)parent; }\n\n\tpublic void jjtAddChild(Node n, int i)\n\t{\n\t\tif (children == null)\n\t\t\tchildren = new Node[i + 1];\n\t\telse\n\t\t\tif (i >= children.length)\n\t\t\t{\n\t\t\t\tNode c[] = new Node[i + 1];\n\t\t\t\tSystem.arraycopy(children, 0, c, 0, children.length);\n\t\t\t\tchildren = c;\n\t\t\t}\n\n\t\tchildren[i] = n;\n\t}\n\n\tpublic Node jjtGetChild(int i) { \n\t\treturn children[i]; \n\t}\n\tpublic SimpleNode getChild( int i ) {\n\t\treturn (SimpleNode)jjtGetChild(i);\n\t}\n\n\tpublic int jjtGetNumChildren() {\n\t\treturn (children == null) ? 0 : children.length;\n\t}\n\n\t/*\n\t\tYou can override these two methods in subclasses of SimpleNode to\n\t\tcustomize the way the node appears when the tree is dumped.  If\n\t\tyour output uses more than one line you should override\n\t\ttoString(String), otherwise overriding toString() is probably all\n\t\tyou need to do.\n\t*/\n\tpublic String toString() { return ParserTreeConstants.jjtNodeName[id]; }\n\tpublic String toString(String prefix) { return prefix + toString(); }\n\n\t/*\n\t\tOverride this method if you want to customize how the node dumps\n\t\tout its children.\n\t*/\n\tpublic void dump(String prefix)\n\t{\n\t\tSystem.out.println(toString(prefix));\n\t\tif(children != null)\n\t\t{\n\t\t\tfor(int i = 0; i < children.length; ++i)\n\t\t\t{\n\t\t\t\tSimpleNode n = (SimpleNode)children[i];\n\t\t\t\tif (n != null)\n\t\t\t\t{\n\t\t\t\t\tn.dump(prefix + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t//  ---- BeanShell specific stuff hereafter ----  //\n\n\t/**\n\t\tDetach this node from its parent.\n\t\tThis is primarily useful in node serialization.\n\t\t(see BSHMethodDeclaration)\n\t*/\n\tpublic void prune() {\n\t\tjjtSetParent( null );\n\t}\n\n\t/**\n\t\tThis is the general signature for evaluation of a node.\n\t*/\n\tpublic Object eval( CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError\n\t{\n\t\tthrow new InterpreterError(\n\t\t\t\"Unimplemented or inappropriate for \" + getClass().getName() );\n\t}\n\n\t/**\n\t\tSet the name of the source file (or more generally source) of\n\t\tthe text from which this node was parsed.\n\t*/\n\tpublic void setSourceFile( String sourceFile ) {\n\t\tthis.sourceFile = sourceFile;\n\t}\n\n\t/**\n\t\tGet the name of the source file (or more generally source) of\n\t\tthe text from which this node was parsed.\n\t\tThis will recursively search up the chain of parent nodes until\n\t\ta source is found or return a string indicating that the source\n\t\tis unknown.\n\t*/\n\tpublic String getSourceFile() {\n\t\tif ( sourceFile == null )\n\t\t\tif ( parent != null )\n\t\t\t\treturn ((SimpleNode)parent).getSourceFile();\n\t\t\telse\n\t\t\t\treturn \"<unknown file>\";\n\t\telse\n\t\t\treturn sourceFile;\n\t}\n\n\t/**\n\t\tGet the line number of the starting token\n\t*/\n\tpublic int getLineNumber() {\n\t\treturn firstToken.beginLine;\n\t}\n\n\t/**\n\t\tGet the ending line number of the starting token\n\tpublic int getEndLineNumber() {\n\t\treturn lastToken.endLine;\n\t}\n\t*/\n\n\t/**\n\t\tGet the text of the tokens comprising this node.\n\t*/\n\tpublic String getText() \n\t{\n\t\tStringBuffer text = new StringBuffer();\n\t\tToken t = firstToken;\n\t\twhile ( t!=null ) {\n\t\t\ttext.append(t.image);\n\t\t\tif ( !t.image.equals(\".\") )\n\t\t\t\ttext.append(\" \");\n\t\t\tif ( t==lastToken ||\n\t\t\t\tt.image.equals(\"{\") || t.image.equals(\";\") )\n\t\t\t\tbreak;\n\t\t\tt=t.next;\n\t\t}\n\t\t\t\n\t\treturn text.toString();", "functions": [{"function_name": "jjtOpen", "code": "\tpublic void jjtOpen() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "jjtClose", "code": "\tpublic void jjtClose() { }", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "jjtSetParent", "code": "\tpublic void jjtSetParent(Node n) { parent = n; }", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "jjtGetParent", "code": "\tpublic Node jjtGetParent() { return parent; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "jjtAddChild", "code": "\tpublic void jjtAddChild(Node n, int i)\n\t{\n\t\tif (children == null)\n\t\t\tchildren = new Node[i + 1];\n\t\telse\n\t\t\tif (i >= children.length)\n\t\t\t{\n\t\t\t\tNode c[] = new Node[i + 1];\n\t\t\t\tSystem.arraycopy(children, 0, c, 0, children.length);\n\t\t\t\tchildren = c;\n\t\t\t}\n\n\t\tchildren[i] = n;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [6, 9], [5, 10], [5, 11], [5, 12], [8, 13], [12, 14], [12, 15], [13, 16], [10, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 6], [10, 5], [11, 5], [12, 5], [13, 8], [14, 12], [15, 12], [16, 13], [17, 10], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "jjtGetChild", "code": "\tpublic Node jjtGetChild(int i) { \n\t\treturn children[i]; ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getChild", "code": "\tpublic SimpleNode getChild( int i ) {\n\t\treturn (SimpleNode)jjtGetChild(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "jjtGetNumChildren", "code": "\tpublic int jjtGetNumChildren() {\n\t\treturn (children == null) ? 0 : children.length;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toString", "code": "\tpublic String toString() { return ParserTreeConstants.jjtNodeName[id]; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "\tpublic String toString(String prefix) { return prefix + toString(); }", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "dump", "code": "\tpublic void dump(String prefix)\n\t{\n\t\tSystem.out.println(toString(prefix));\n\t\tif(children != null)\n\t\t{\n\t\t\tfor(int i = 0; i < children.length; ++i)\n\t\t\t{\n\t\t\t\tSimpleNode n = (SimpleNode)children[i];\n\t\t\t\tif (n != null)\n\t\t\t\t{\n\t\t\t\t\tn.dump(prefix + \" \");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [4, 7], [5, 8], [5, 9], [5, 10], [9, 11], [5, 12], [11, 13], [9, 14], [14, 15], [15, 16], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 4], [8, 5], [9, 5], [10, 5], [11, 9], [12, 5], [13, 11], [14, 9], [15, 14], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "prune", "code": "\tpublic void prune() {\n\t\tjjtSetParent( null );", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "eval", "code": "\tpublic Object eval( CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError\n\t{\n\t\tthrow new InterpreterError(\n\t\t\t\"Unimplemented or inappropriate for \" + getClass().getName() );", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setSourceFile", "code": "\tpublic void setSourceFile( String sourceFile ) {\n\t\tthis.sourceFile = sourceFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSourceFile", "code": "\tpublic String getSourceFile() {\n\t\tif ( sourceFile == null )\n\t\t\tif ( parent != null )\n\t\t\t\treturn ((SimpleNode)parent).getSourceFile();\n\t\t\telse\n\t\t\t\treturn \"<unknown file>\";\n\t\telse\n\t\t\treturn sourceFile;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "IF", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [3, 6], [3, 7], [4, 8], [5, 9], [7, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 3], [7, 3], [8, 4], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getLineNumber", "code": "\tpublic int getLineNumber() {\n\t\treturn firstToken.beginLine;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getText", "code": "\tpublic String getText() \n\t{\n\t\tStringBuffer text = new StringBuffer();\n\t\tToken t = firstToken;\n\t\twhile ( t!=null ) {\n\t\t\ttext.append(t.image);\n\t\t\tif ( !t.image.equals(\".\") )\n\t\t\t\ttext.append(\" \");\n\t\t\tif ( t==lastToken ||\n\t\t\t\tt.image.equals(\"{\") || t.image.equals(\";\") )\n\t\t\t\tbreak;\n\t\t\tt=t.next;\n\t\t}\n\t\t\t\n\t\treturn text.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [4, 10], [2, 11], [7, 12], [7, 13], [8, 14], [2, 15], [13, 16], [13, 17], [8, 18], [14, 19], [16, 20], [17, 21], [17, 22], [18, 23], [21, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 4], [11, 2], [12, 7], [13, 7], [14, 8], [15, 2], [16, 13], [17, 13], [18, 8], [19, 14], [20, 16], [21, 17], [22, 17], [23, 18], [24, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "SimpleNode", "code": "\tpublic SimpleNode(int i) {\n\t\tid = i;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.5-432", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/types/Mapper.java", "language": "java", "name": "org.apache.tools.ant.types.Mapper", "code": "public class Mapper extends DataType implements Cloneable {\n\n    protected MapperType type = null;\n\n    public Mapper(Project p) {\n        setProject(p);\n    }\n\n    /**\n     * Set the type of FileNameMapper to use.\n     */\n    public void setType(MapperType type) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.type = type;\n    }\n\n    protected String classname = null;\n\n    /**\n     * Set the class name of the FileNameMapper to use.\n     */\n    public void setClassname(String classname) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.classname = classname;\n    }\n\n    protected Path classpath = null;\n\n    /**\n     * Set the classpath to load the FileNameMapper through (attribute).\n     */\n    public void setClasspath(Path classpath) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);\n        }\n    }\n\n    /**\n     * Set the classpath to load the FileNameMapper through (nested element).\n     */\n    public Path createClasspath() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (this.classpath == null) {\n            this.classpath = new Path(getProject());\n        }\n        return this.classpath.createPath();\n    }\n\n    /**\n     * Set the classpath to load the FileNameMapper through via\n     * reference (attribute).\n     */\n    public void setClasspathRef(Reference r) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        createClasspath().setRefid(r);\n    }\n\n    protected String from = null;\n\n    /**\n     * Set the argument to FileNameMapper.setFrom\n     */\n    public void setFrom(String from) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.from = from;\n    }\n\n    protected String to = null;\n\n    /**\n     * Set the argument to FileNameMapper.setTo\n     */\n    public void setTo(String to) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.to = to;\n    }\n\n    /**\n     * Make this Mapper instance a reference to another Mapper.\n     *\n     * <p>You must not set any other attribute if you make it a\n     * reference.</p>\n     */\n    public void setRefid(Reference r) throws BuildException {\n        if (type != null || from != null || to != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);\n    }\n\n    /**\n     * Returns a fully configured FileNameMapper implementation.\n     */\n    public FileNameMapper getImplementation() throws BuildException {\n        if (isReference()) {\n            return getRef().getImplementation();\n        }\n        \n        if (type == null && classname == null) {\n            throw new BuildException(\"one of the attributes type or classname is required\");\n        }\n\n        if (type != null && classname != null) {\n            throw new BuildException(\"must not specify both type and classname attribute\");\n        }\n\n        try {\n            if (type != null) {\n                classname = type.getImplementation();\n            }\n\n            Class c = null;\n            if (classpath == null) {\n                c = Class.forName(classname);\n            } else {\n                AntClassLoader al = new AntClassLoader(getProject(), \n                                                       classpath);\n                c = al.loadClass(classname);\n                AntClassLoader.initializeClass(c);\n            }\n            \n            FileNameMapper m = (FileNameMapper) c.newInstance();\n            m.setFrom(from);\n            m.setTo(to);\n            return m;\n        } catch (BuildException be) {\n            throw be;\n        } catch (Throwable t) {\n            throw new BuildException(t);\n        } finally {\n            if (type != null) {\n                classname = null;\n            }\n        }\n    }\n        \n    /**\n     * Performs the check for circular references and returns the\n     * referenced Mapper.  \n     */\n    protected Mapper getRef() {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, getProject());\n        }\n        \n        Object o = ref.getReferencedObject(getProject());\n        if (!(o instanceof Mapper)) {\n            String msg = ref.getRefId() + \" doesn\\'t denote a mapper\";\n            throw new BuildException(msg);\n        } else {\n            return (Mapper) o;\n        }\n    }\n\n    /**\n     * Class as Argument to FileNameMapper.setType.\n     */\n    public static class MapperType extends EnumeratedAttribute {\n        private Properties implementations;\n\n        public MapperType() {\n            implementations = new Properties();\n            implementations.put(\"identity\", \n                                \"org.apache.tools.ant.util.IdentityMapper\");\n            implementations.put(\"flatten\", \n                                \"org.apache.tools.ant.util.FlatFileNameMapper\");\n            implementations.put(\"glob\", \n                                \"org.apache.tools.ant.util.GlobPatternMapper\");\n            implementations.put(\"merge\", \n                                \"org.apache.tools.ant.util.MergingMapper\");\n            implementations.put(\"regexp\", \n                                \"org.apache.tools.ant.util.RegexpPatternMapper\");\n            implementations.put(\"package\", \n                                \"org.apache.tools.ant.util.PackageNameMapper\");\n        }\n\n        public String[] getValues() {\n            return new String[] {\"identity\", \"flatten\", \"glob\", \n                                 \"merge\", \"regexp\", \"package\"};\n        }\n\n        public String getImplementation() {\n            return implementations.getProperty(getValue());", "functions": [{"function_name": "setType", "code": "    public void setType(MapperType type) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.type = type;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setClassname", "code": "    public void setClassname(String classname) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.classname = classname;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setClasspath", "code": "    public void setClasspath(Path classpath) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (this.classpath == null) {\n            this.classpath = classpath;\n        } else {\n            this.classpath.append(classpath);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [1, 8], [7, 9], [1, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 1], [9, 7], [10, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "createClasspath", "code": "    public Path createClasspath() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        if (this.classpath == null) {\n            this.classpath = new Path(getProject());\n        }\n        return this.classpath.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 6], [4, 7], [3, 8], [2, 9], [8, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 1], [7, 4], [8, 3], [9, 2], [10, 8], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setClasspathRef", "code": "    public void setClasspathRef(Reference r) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        createClasspath().setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setFrom", "code": "    public void setFrom(String from) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.from = from;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setTo", "code": "    public void setTo(String to) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        this.to = to;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setRefid", "code": "    public void setRefid(Reference r) throws BuildException {\n        if (type != null || from != null || to != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [5, 8], [6, 9], [6, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 5], [9, 6], [10, 6], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getImplementation", "code": "    public FileNameMapper getImplementation() throws BuildException {\n        if (isReference()) {\n            return getRef().getImplementation();\n        }\n        \n        if (type == null && classname == null) {\n            throw new BuildException(\"one of the attributes type or classname is required\");\n        }\n\n        if (type != null && classname != null) {\n            throw new BuildException(\"must not specify both type and classname attribute\");\n        }\n\n        try {\n            if (type != null) {\n                classname = type.getImplementation();\n            }\n\n            Class c = null;\n            if (classpath == null) {\n                c = Class.forName(classname);\n            } else {\n                AntClassLoader al = new AntClassLoader(getProject(), \n                                                       classpath);\n                c = al.loadClass(classname);\n                AntClassLoader.initializeClass(c);\n            }\n            \n            FileNameMapper m = (FileNameMapper) c.newInstance();\n            m.setFrom(from);\n            m.setTo(to);\n            return m;\n        } catch (BuildException be) {\n            throw be;\n        } catch (Throwable t) {\n            throw new BuildException(t);\n        } finally {\n            if (type != null) {\n                classname = null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "IF", "IF", "CATCH", "CATCH", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [2, 13], [3, 14], [4, 15], [5, 16], [6, 17], [7, 18], [1, 19], [1, 20], [10, 21], [12, 22], [2, 23], [13, 24], [13, 25], [3, 26], [14, 27], [14, 28], [4, 29], [16, 30], [17, 31], [10, 32], [21, 33], [11, 34], [22, 35], [23, 36], [24, 37], [25, 38], [26, 39], [27, 40], [28, 41], [29, 42], [5, 43], [9, 44], [10, 45], [10, 46], [10, 47], [12, 48], [36, 49], [39, 50], [42, 51], [43, 52], [46, 53], [32, 54], [47, 55], [48, 56], [54, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 2], [14, 3], [15, 4], [16, 5], [17, 6], [18, 7], [19, 1], [20, 1], [21, 10], [22, 12], [23, 2], [24, 13], [25, 13], [26, 3], [27, 14], [28, 14], [29, 4], [30, 16], [31, 17], [32, 10], [33, 21], [34, 11], [35, 22], [36, 23], [37, 24], [38, 25], [39, 26], [40, 27], [41, 28], [42, 29], [43, 5], [44, 9], [45, 10], [46, 10], [47, 10], [48, 12], [49, 36], [50, 39], [51, 42], [52, 43], [53, 46], [54, 32], [55, 47], [56, 48], [57, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "getRef", "code": "    protected Mapper getRef() {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, getProject());\n        }\n        \n        Object o = ref.getReferencedObject(getProject());\n        if (!(o instanceof Mapper)) {\n            String msg = ref.getRefId() + \" doesn\\'t denote a mapper\";\n            throw new BuildException(msg);\n        } else {\n            return (Mapper) o;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "RETURN", "THROW_RAISE", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [6, 10], [8, 11], [3, 12], [3, 13], [7, 14], [12, 15], [9, 16], [14, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 6], [11, 8], [12, 3], [13, 3], [14, 7], [15, 12], [16, 9], [17, 14], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "Mapper", "code": "    public Mapper(Project p) {\n        setProject(p);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.2-1748", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/bam/processor/JpaBamProcessorSupport.java", "language": "java", "name": "org.apache.camel.bam.processor.JpaBamProcessorSupport", "code": "public class JpaBamProcessorSupport<T> extends BamProcessorSupport<T> {\n    private static final transient Log LOG = LogFactory.getLog(JpaBamProcessorSupport.class);\n    \n    private ActivityRules activityRules;\n    private JpaTemplate template;\n    private String findByKeyQuery;\n    private String keyPropertyName = \"correlationKey\";\n    private boolean correlationKeyIsPrimary = true;\n\n    public JpaBamProcessorSupport(TransactionTemplate transactionTemplate, JpaTemplate template, Expression<Exchange> correlationKeyExpression, ActivityRules activityRules, Class<T> entitytype) {\n        super(transactionTemplate, correlationKeyExpression, entitytype);\n        this.activityRules = activityRules;\n        this.template = template;\n    }\n\n    public JpaBamProcessorSupport(TransactionTemplate transactionTemplate, JpaTemplate template, Expression<Exchange> correlationKeyExpression, ActivityRules activityRules) {\n        super(transactionTemplate, correlationKeyExpression);\n        this.activityRules = activityRules;\n        this.template = template;\n    }\n\n    public String getFindByKeyQuery() {\n        if (findByKeyQuery == null) {\n            findByKeyQuery = createFindByKeyQuery();\n        }\n        return findByKeyQuery;\n    }\n\n    public void setFindByKeyQuery(String findByKeyQuery) {\n        this.findByKeyQuery = findByKeyQuery;\n    }\n\n    public ActivityRules getActivityRules() {\n        return activityRules;\n    }\n\n    public void setActivityRules(ActivityRules activityRules) {\n        this.activityRules = activityRules;\n    }\n\n    public String getKeyPropertyName() {\n        return keyPropertyName;\n    }\n\n    public void setKeyPropertyName(String keyPropertyName) {\n        this.keyPropertyName = keyPropertyName;\n    }\n\n    public JpaTemplate getTemplate() {\n        return template;\n    }\n\n    public void setTemplate(JpaTemplate template) {\n        this.template = template;\n    }\n\n    public boolean isCorrelationKeyIsPrimary() {\n        return correlationKeyIsPrimary;\n    }\n\n    public void setCorrelationKeyIsPrimary(boolean correlationKeyIsPrimary) {\n        this.correlationKeyIsPrimary = correlationKeyIsPrimary;\n    }\n\n    protected T loadEntity(Exchange exchange, Object key) throws Exception {\n        T entity = findEntityByCorrelationKey(key);\n        if (entity == null) {\n            entity = createEntity(exchange, key);\n            setKeyProperty(entity, key);\n            ProcessDefinition definition = ProcessDefinition.getRefreshedProcessDefinition(template, getActivityRules().getProcessRules().getProcessDefinition());\n            setProcessDefinitionProperty(entity, definition);\n            template.persist(entity);\n\n            LOG.debug(\"About to flush on entity: \" + entity + \" with key: \" + key);\n            template.flush();\n        }\n        return entity;\n    }\n\n    protected T findEntityByCorrelationKey(Object key) {\n        if (isCorrelationKeyIsPrimary()) {\n            return template.find(getEntityType(), key);\n        }\n        else {\n            List<T> list = template.find(getFindByKeyQuery(), key);\n            if (list.isEmpty()) {\n                return null;\n            }\n            else {\n                return list.get(0);\n            }\n        }\n    }\n\n    protected Class getKeyType() {\n        try {\n            Method getter = IntrospectionSupport.getPropertyGetter(getEntityType(), getKeyPropertyName());\n            return getter.getReturnType();\n        }\n        catch (NoSuchMethodException e) {\n            LOG.warn(\"no such getter for: \" + getKeyPropertyName() + \" on \" + getEntityType() + \". Reason: \" + e, e);\n            return null;\n        }\n    }\n    /**\n     * Sets the key property on the new entity\n     */\n    protected void setKeyProperty(T entity, Object key) throws Exception {\n        IntrospectionSupport.setProperty(entity, getKeyPropertyName(), key);\n    }\n\n    protected void setProcessDefinitionProperty(T entity, ProcessDefinition processDefinition) throws Exception {\n        IntrospectionSupport.setProperty(entity, \"processDefinition\", processDefinition);\n    }\n\n    /**\n     * Create a new instance of the entity for the given key\n     */\n    protected T createEntity(Exchange exchange, Object key) {\n        return (T) exchange.getContext().getInjector().newInstance(getEntityType());\n    }\n\n    protected void processEntity(Exchange exchange, T entity) throws Exception {\n        if (entity instanceof Processor) {\n            Processor processor = (Processor) entity;\n            processor.process(exchange);\n        }\n        else {\n            throw new IllegalArgumentException(\"No processor defined for this route\");\n        }\n    }\n\n    protected String createFindByKeyQuery() {\n        return \"select x from \" + getEntityType().getName() + \" x where x.\" + getKeyPropertyName() + \" = ?1\";", "functions": [{"function_name": "getFindByKeyQuery", "code": "    public String getFindByKeyQuery() {\n        if (findByKeyQuery == null) {\n            findByKeyQuery = createFindByKeyQuery();\n        }\n        return findByKeyQuery;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setFindByKeyQuery", "code": "    public void setFindByKeyQuery(String findByKeyQuery) {\n        this.findByKeyQuery = findByKeyQuery;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActivityRules", "code": "    public ActivityRules getActivityRules() {\n        return activityRules;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setActivityRules", "code": "    public void setActivityRules(ActivityRules activityRules) {\n        this.activityRules = activityRules;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getKeyPropertyName", "code": "    public String getKeyPropertyName() {\n        return keyPropertyName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setKeyPropertyName", "code": "    public void setKeyPropertyName(String keyPropertyName) {\n        this.keyPropertyName = keyPropertyName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTemplate", "code": "    public JpaTemplate getTemplate() {\n        return template;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTemplate", "code": "    public void setTemplate(JpaTemplate template) {\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isCorrelationKeyIsPrimary", "code": "    public boolean isCorrelationKeyIsPrimary() {\n        return correlationKeyIsPrimary;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCorrelationKeyIsPrimary", "code": "    public void setCorrelationKeyIsPrimary(boolean correlationKeyIsPrimary) {\n        this.correlationKeyIsPrimary = correlationKeyIsPrimary;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadEntity", "code": "    protected T loadEntity(Exchange exchange, Object key) throws Exception {\n        T entity = findEntityByCorrelationKey(key);\n        if (entity == null) {\n            entity = createEntity(exchange, key);\n            setKeyProperty(entity, key);\n            ProcessDefinition definition = ProcessDefinition.getRefreshedProcessDefinition(template, getActivityRules().getProcessRules().getProcessDefinition());\n            setProcessDefinitionProperty(entity, definition);\n            template.persist(entity);\n\n            LOG.debug(\"About to flush on entity: \" + entity + \" with key: \" + key);\n            template.flush();\n        }\n        return entity;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [11, 16], [7, 17], [15, 18], [16, 19], [17, 20], [19, 21], [19, 22], [20, 23], [20, 24], [22, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 11], [17, 7], [18, 15], [19, 16], [20, 17], [21, 19], [22, 19], [23, 20], [24, 20], [25, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "findEntityByCorrelationKey", "code": "    protected T findEntityByCorrelationKey(Object key) {\n        if (isCorrelationKeyIsPrimary()) {\n            return template.find(getEntityType(), key);\n        }\n        else {\n            List<T> list = template.find(getFindByKeyQuery(), key);\n            if (list.isEmpty()) {\n                return null;\n            }\n            else {\n                return list.get(0);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "VAR_DECL", "RETURN", "CALL", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [4, 7], [6, 8], [4, 9], [4, 10], [5, 11], [8, 12], [9, 13], [10, 14], [11, 15], [13, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 4], [8, 6], [9, 4], [10, 4], [11, 5], [12, 8], [13, 9], [14, 10], [15, 11], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getKeyType", "code": "    protected Class getKeyType() {\n        try {\n            Method getter = IntrospectionSupport.getPropertyGetter(getEntityType(), getKeyPropertyName());\n            return getter.getReturnType();\n        }\n        catch (NoSuchMethodException e) {\n            LOG.warn(\"no such getter for: \" + getKeyPropertyName() + \" on \" + getEntityType() + \". Reason: \" + e, e);\n            return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [5, 7], [2, 8], [4, 9], [8, 10], [9, 11], [9, 12], [10, 13], [13, 14], [13, 15], [15, 16], [15, 17], [17, 18], [17, 19], [19, 20], [19, 21], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 5], [8, 2], [9, 4], [10, 8], [11, 9], [12, 9], [13, 10], [14, 13], [15, 13], [16, 15], [17, 15], [18, 17], [19, 17], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setKeyProperty", "code": "    protected void setKeyProperty(T entity, Object key) throws Exception {\n        IntrospectionSupport.setProperty(entity, getKeyPropertyName(), key);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setProcessDefinitionProperty", "code": "    protected void setProcessDefinitionProperty(T entity, ProcessDefinition processDefinition) throws Exception {\n        IntrospectionSupport.setProperty(entity, \"processDefinition\", processDefinition);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createEntity", "code": "    protected T createEntity(Exchange exchange, Object key) {\n        return (T) exchange.getContext().getInjector().newInstance(getEntityType());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "processEntity", "code": "    protected void processEntity(Exchange exchange, T entity) throws Exception {\n        if (entity instanceof Processor) {\n            Processor processor = (Processor) entity;\n            processor.process(exchange);\n        }\n        else {\n            throw new IllegalArgumentException(\"No processor defined for this route\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createFindByKeyQuery", "code": "    protected String createFindByKeyQuery() {\n        return \"select x from \" + getEntityType().getName() + \" x where x.\" + getKeyPropertyName() + \" = ?1\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [9, 11], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "JpaBamProcessorSupport", "code": "    public JpaBamProcessorSupport(TransactionTemplate transactionTemplate, JpaTemplate template, Expression<Exchange> correlationKeyExpression, ActivityRules activityRules, Class<T> entitytype) {\n        super(transactionTemplate, correlationKeyExpression, entitytype);\n        this.activityRules = activityRules;\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "JpaBamProcessorSupport", "code": "    public JpaBamProcessorSupport(TransactionTemplate transactionTemplate, JpaTemplate template, Expression<Exchange> correlationKeyExpression, ActivityRules activityRules) {\n        super(transactionTemplate, correlationKeyExpression);\n        this.activityRules = activityRules;\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "ivy-2.0-3473", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/event/FilteredIvyListener.java", "language": "java", "name": "org.apache.ivy.core.event.FilteredIvyListener", "code": "public class FilteredIvyListener implements IvyListener {\n    private IvyListener listener;\n\n    private Filter filter;\n\n    public FilteredIvyListener(IvyListener listener, Filter filter) {\n        this.listener = listener;\n        this.filter = filter;\n    }\n\n    public IvyListener getIvyListener() {\n        return listener;\n    }\n\n    public Filter getFilter() {\n        return filter;\n    }\n\n    public void progress(IvyEvent event) {\n        if (filter.accept(event)) {\n            listener.progress(event);", "functions": [{"function_name": "getIvyListener", "code": "    public IvyListener getIvyListener() {\n        return listener;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFilter", "code": "    public Filter getFilter() {\n        return filter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "progress", "code": "    public void progress(IvyEvent event) {\n        if (filter.accept(event)) {\n            listener.progress(event);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 0], [2, 0], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "FilteredIvyListener", "code": "    public FilteredIvyListener(IvyListener listener, Filter filter) {\n        this.listener = listener;\n        this.filter = filter;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.4-6666", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/util/RtMethodGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.RtMethodGenerator", "code": "public final class RtMethodGenerator extends MethodGenerator {\n    private static final int HANDLER_INDEX = 2;\n    private final Instruction _astoreHandler;\n    private final Instruction _aloadHandler;\n\n    public RtMethodGenerator(int access_flags, Type return_type,\n\t\t\t     Type[] arg_types, String[] arg_names,\n\t\t\t     String method_name, String class_name,\n\t\t\t     InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_astoreHandler = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler  = new ALOAD(HANDLER_INDEX);\n    }\n\n    public int getIteratorIndex() {\n    }\n    \n    public final Instruction storeHandler() {\n\treturn _astoreHandler;\n    }\n\n    public final Instruction loadHandler() {\n\treturn _aloadHandler;\n    }\n\n    public int getLocalIndex(String name) {", "functions": [{"function_name": "getIteratorIndex", "code": "    public int getIteratorIndex() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "storeHandler", "code": "    public final Instruction storeHandler() {\n\treturn _astoreHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadHandler", "code": "    public final Instruction loadHandler() {\n\treturn _aloadHandler;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RtMethodGenerator", "code": "    public RtMethodGenerator(int access_flags, Type return_type,\n\t\t\t     Type[] arg_types, String[] arg_names,\n\t\t\t     String method_name, String class_name,\n\t\t\t     InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_astoreHandler = new ASTORE(HANDLER_INDEX);\n\t_aloadHandler  = new ALOAD(HANDLER_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "poi-3.0-6242", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/ArrayPtgV.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.ArrayPtgV", "code": "public class ArrayPtgV extends ArrayPtg\n{\n    public final static byte sid  = 0x40;\n\n    protected ArrayPtgV() {\n    }\n\n    public ArrayPtgV(RecordInputStream in)\n    {\n    \tsuper(in);\n    }\n    \n    public Object clone() {\n      ArrayPtgV ptg = new ArrayPtgV();\n      ptg.field_1_reserved = field_1_reserved;\n      ptg.field_2_reserved = field_2_reserved;\n      ptg.field_3_reserved = field_3_reserved;\n      ptg.field_4_reserved = field_4_reserved;\n      ptg.field_5_reserved = field_5_reserved;\n      ptg.field_6_reserved = field_6_reserved;\n      ptg.field_7_reserved = field_7_reserved;\n      \n      ptg.token_1_columns = token_1_columns;\n      ptg.token_2_rows = token_2_rows;\n      ptg.token_3_arrayValues = new Object[getColumnCount()][getRowCount()];\n      for (int x=0;x<getColumnCount();x++) {\n      \tfor (int y=0;y<getRowCount();y++) {\n      \t\tptg.token_3_arrayValues[x][y] = token_3_arrayValues[x][y];\n      \t}\n      }      \n      ptg.setClass(ptgClass);\n      return ptg;", "functions": [{"function_name": "clone", "code": "    public Object clone() {\n      ArrayPtgV ptg = new ArrayPtgV();\n      ptg.field_1_reserved = field_1_reserved;\n      ptg.field_2_reserved = field_2_reserved;\n      ptg.field_3_reserved = field_3_reserved;\n      ptg.field_4_reserved = field_4_reserved;\n      ptg.field_5_reserved = field_5_reserved;\n      ptg.field_6_reserved = field_6_reserved;\n      ptg.field_7_reserved = field_7_reserved;\n      \n      ptg.token_1_columns = token_1_columns;\n      ptg.token_2_rows = token_2_rows;\n      ptg.token_3_arrayValues = new Object[getColumnCount()][getRowCount()];\n      for (int x=0;x<getColumnCount();x++) {\n      \tfor (int y=0;y<getRowCount();y++) {\n      \t\tptg.token_3_arrayValues[x][y] = token_3_arrayValues[x][y];\n      \t}\n      }      \n      ptg.setClass(ptgClass);\n      return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [5, 17], [3, 18], [16, 19], [2, 20], [6, 21], [6, 22], [19, 23], [16, 24], [16, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 5], [18, 3], [19, 16], [20, 2], [21, 6], [22, 6], [23, 19], [24, 16], [25, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "ArrayPtgV", "code": "    protected ArrayPtgV() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ArrayPtgV", "code": "    public ArrayPtgV(RecordInputStream in)\n    {\n    \tsuper(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.6-725", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/RecorderEntry.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.RecorderEntry", "code": "public class RecorderEntry implements BuildLogger, SubBuildListener {\n\n\n    /** The name of the file associated with this recorder entry.  */\n    private String filename = null;\n    /** The state of the recorder (recorder on or off).  */\n    private boolean record = true;\n    /** The current verbosity level to record at.  */\n    private int loglevel = Project.MSG_INFO;\n    /** The output PrintStream to record to.  */\n    private PrintStream out = null;\n    /** The start time of the last know target.  */\n    private long targetStartTime = 0L;\n    /** Strip task banners if true.  */\n    private boolean emacsMode = false;\n    /** project instance the recorder is associated with */\n    private Project project;\n\n\n    /**\n     * @param name The name of this recorder (used as the filename).\n     */\n    protected RecorderEntry(String name) {\n        targetStartTime = System.currentTimeMillis();\n        filename = name;\n    }\n\n\n    /**\n     * @return the name of the file the output is sent to.\n     */\n    public String getFilename() {\n        return filename;\n    }\n\n\n    /**\n     * Turns off or on this recorder.\n     *\n     * @param state true for on, false for off, null for no change.\n     */\n    public void setRecordState(Boolean state) {\n        if (state != null) {\n            flush();\n            record = state.booleanValue();\n        }\n    }\n\n\n    public void buildStarted(BuildEvent event) {\n        log(\"> BUILD STARTED\", Project.MSG_DEBUG);\n    }\n\n\n    public void buildFinished(BuildEvent event) {\n        log(\"< BUILD FINISHED\", Project.MSG_DEBUG);\n\n        if (record && out != null) {\n            Throwable error = event.getException();\n\n            if (error == null) {\n                out.println(StringUtils.LINE_SEP + \"BUILD SUCCESSFUL\");\n            } else {\n                out.println(StringUtils.LINE_SEP + \"BUILD FAILED\"\n                            + StringUtils.LINE_SEP);\n                error.printStackTrace(out);\n            }\n        }\n        cleanup();\n    }\n\n    /**\n     * Cleans up any resources held by this recorder entry at the end\n     * of a subbuild if it has been created for the subbuild's project\n     * instance.\n     *\n     * @param event the buildFinished event\n     *\n     * @since Ant 1.6.2\n     */\n    public void subBuildFinished(BuildEvent event) {\n        if (event.getProject() == project) {\n            cleanup();\n        }\n    }\n\n    /**\n     * Empty implementation to satisfy the BuildListener interface.\n     *\n     * @param event the buildStarted event\n     *\n     * @since Ant 1.6.2\n     */\n    public void subBuildStarted(BuildEvent event) {\n    }\n\n\n    public void targetStarted(BuildEvent event) {\n        log(\">> TARGET STARTED -- \" + event.getTarget(), Project.MSG_DEBUG);\n        log(StringUtils.LINE_SEP + event.getTarget().getName() + \":\",\n            Project.MSG_INFO);\n        targetStartTime = System.currentTimeMillis();\n    }\n\n\n    public void targetFinished(BuildEvent event) {\n        log(\"<< TARGET FINISHED -- \" + event.getTarget(), Project.MSG_DEBUG);\n\n        String time = formatTime(System.currentTimeMillis() - targetStartTime);\n\n        log(event.getTarget() + \":  duration \" + time, Project.MSG_VERBOSE);\n        flush();\n    }\n\n\n    public void taskStarted(BuildEvent event) {\n        log(\">>> TASK STARTED -- \" + event.getTask(), Project.MSG_DEBUG);\n    }\n\n\n    public void taskFinished(BuildEvent event) {\n        log(\"<<< TASK FINISHED -- \" + event.getTask(), Project.MSG_DEBUG);\n        flush();\n    }\n\n\n    public void messageLogged(BuildEvent event) {\n        log(\"--- MESSAGE LOGGED\", Project.MSG_DEBUG);\n\n        StringBuffer buf = new StringBuffer();\n\n        if (event.getTask() != null) {\n            String name = event.getTask().getTaskName();\n\n            if (!emacsMode) {\n                String label = \"[\" + name + \"] \";\n                int size = DefaultLogger.LEFT_COLUMN_SIZE - label.length();\n\n                for (int i = 0; i < size; i++) {\n                    buf.append(\" \");\n                }\n                buf.append(label);\n            }\n        }\n        buf.append(event.getMessage());\n\n        log(buf.toString(), event.getPriority());\n    }\n\n\n    /**\n     * The thing that actually sends the information to the output.\n     *\n     * @param mesg The message to log.\n     * @param level The verbosity level of the message.\n     */\n    private void log(String mesg, int level) {\n        if (record && (level <= loglevel) && out != null) {\n            out.println(mesg);\n        }\n    }\n    \n    private void flush() {\n        if (record && out != null) {\n            out.flush();\n        }\n    }\n\n\n    public void setMessageOutputLevel(int level) {\n        if (level >= Project.MSG_ERR && level <= Project.MSG_DEBUG) {\n            loglevel = level;\n        }\n    }\n\n\n    public void setOutputPrintStream(PrintStream output) {\n        closeFile();\n        out = output;\n    }\n\n\n    public void setEmacsMode(boolean emacsMode) {\n        this.emacsMode = emacsMode;\n    }\n\n\n    public void setErrorPrintStream(PrintStream err) {\n        setOutputPrintStream(err);\n    }\n\n\n    private static String formatTime(long millis) {\n        long seconds = millis / 1000;\n        long minutes = seconds / 60;\n\n\n        if (minutes > 0) {\n            return Long.toString(minutes) + \" minute\"\n                 + (minutes == 1 ? \" \" : \"s \")\n                 + Long.toString(seconds % 60) + \" second\"\n                 + (seconds % 60 == 1 ? \"\" : \"s\");\n        } else {\n            return Long.toString(seconds) + \" second\"\n                 + (seconds % 60 == 1 ? \"\" : \"s\");\n        }\n\n    }\n\n    /**\n     * Set the project associated with this recorder entry.\n     *\n     * @param project the project instance\n     *\n     * @since 1.6.2\n     */\n    public void setProject(Project project) {\n        this.project = project;\n        if (project != null) {\n            project.addBuildListener(this);\n        }\n    }\n\n    /**\n     * @since 1.6.2\n     */\n    public void cleanup() {\n        closeFile();\n        if (project != null) {\n            project.removeBuildListener(this);\n        }\n        project = null;\n    }\n    \n    /**\n     * Initially opens the file associated with this recorder.\n     * Used by Recorder.\n     * @param append Indicates if output must be appended to the logfile or that\n     * the logfile should be overwritten.\n     * @throws BuildException\n     * @since 1.6.3\n     */\n    void openFile(boolean append) throws BuildException {\n        openFileImpl(append);\n    }\n\n    /**\n     * Closes the file associated with this recorder.\n     * Used by Recorder.\n     * @since 1.6.3\n     */\n    void closeFile() {\n        if (out != null) {\n            out.close();\n            out = null;\n        }\n    }\n    \n    /**\n     * Re-opens the file associated with this recorder.\n     * Used by Recorder.\n     * @throws BuildException\n     * @since 1.6.3\n     */\n    void reopenFile() throws BuildException {\n        openFileImpl(true);\n    }\n\n    private void openFileImpl(boolean append) throws BuildException {\n        if (out == null) {\n            try {\n                out = new PrintStream(new FileOutputStream(filename, append));\n            } catch (IOException ioe) {\n                throw new BuildException(\"Problems opening file using a \" +\n                        \"recorder entry\", ioe);", "functions": [{"function_name": "getFilename", "code": "    public String getFilename() {\n        return filename;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRecordState", "code": "    public void setRecordState(Boolean state) {\n        if (state != null) {\n            flush();\n            record = state.booleanValue();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {\n        log(\"> BUILD STARTED\", Project.MSG_DEBUG);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        log(\"< BUILD FINISHED\", Project.MSG_DEBUG);\n\n        if (record && out != null) {\n            Throwable error = event.getException();\n\n            if (error == null) {\n                out.println(StringUtils.LINE_SEP + \"BUILD SUCCESSFUL\");\n            } else {\n                out.println(StringUtils.LINE_SEP + \"BUILD FAILED\"\n                            + StringUtils.LINE_SEP);\n                error.printStackTrace(out);\n            }\n        }\n        cleanup();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [8, 11], [10, 12], [7, 13], [6, 14], [6, 15], [6, 16], [15, 17], [16, 18], [17, 19], [18, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 8], [12, 10], [13, 7], [14, 6], [15, 6], [16, 6], [17, 15], [18, 16], [19, 17], [20, 18], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "subBuildFinished", "code": "    public void subBuildFinished(BuildEvent event) {\n        if (event.getProject() == project) {\n            cleanup();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "subBuildStarted", "code": "    public void subBuildStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {\n        log(\">> TARGET STARTED -- \" + event.getTarget(), Project.MSG_DEBUG);\n        log(StringUtils.LINE_SEP + event.getTarget().getName() + \":\",\n            Project.MSG_INFO);\n        targetStartTime = System.currentTimeMillis();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [6, 8], [6, 9], [7, 10], [7, 11], [9, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 6], [9, 6], [10, 7], [11, 7], [12, 9], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {\n        log(\"<< TARGET FINISHED -- \" + event.getTarget(), Project.MSG_DEBUG);\n\n        String time = formatTime(System.currentTimeMillis() - targetStartTime);\n\n        log(event.getTarget() + \":  duration \" + time, Project.MSG_VERBOSE);\n        flush();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 7], [5, 8], [6, 9], [7, 10], [8, 11], [8, 12], [9, 13], [9, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 1], [8, 5], [9, 6], [10, 7], [11, 8], [12, 8], [13, 9], [14, 9], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {\n        log(\">>> TASK STARTED -- \" + event.getTask(), Project.MSG_DEBUG);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {\n        log(\"<<< TASK FINISHED -- \" + event.getTask(), Project.MSG_DEBUG);\n        flush();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {\n        log(\"--- MESSAGE LOGGED\", Project.MSG_DEBUG);\n\n        StringBuffer buf = new StringBuffer();\n\n        if (event.getTask() != null) {\n            String name = event.getTask().getTaskName();\n\n            if (!emacsMode) {\n                String label = \"[\" + name + \"] \";\n                int size = DefaultLogger.LEFT_COLUMN_SIZE - label.length();\n\n                for (int i = 0; i < size; i++) {\n                    buf.append(\" \");\n                }\n                buf.append(label);\n            }\n        }\n        buf.append(event.getMessage());\n\n        log(buf.toString(), event.getPriority());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [4, 8], [4, 9], [5, 10], [1, 11], [1, 12], [6, 13], [6, 14], [2, 15], [7, 16], [11, 17], [11, 18], [11, 19], [12, 20], [11, 21], [17, 22], [20, 23], [18, 24], [19, 25], [17, 26], [17, 27], [24, 28], [25, 29], [25, 30], [26, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 4], [9, 4], [10, 5], [11, 1], [12, 1], [13, 6], [14, 6], [15, 2], [16, 7], [17, 11], [18, 11], [19, 11], [20, 12], [21, 11], [22, 17], [23, 20], [24, 18], [25, 19], [26, 17], [27, 17], [28, 24], [29, 25], [30, 25], [31, 26], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "log", "code": "    private void log(String mesg, int level) {\n        if (record && (level <= loglevel) && out != null) {\n            out.println(mesg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 1], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "flush", "code": "    private void flush() {\n        if (record && out != null) {\n            out.flush();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setMessageOutputLevel", "code": "    public void setMessageOutputLevel(int level) {\n        if (level >= Project.MSG_ERR && level <= Project.MSG_DEBUG) {\n            loglevel = level;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOutputPrintStream", "code": "    public void setOutputPrintStream(PrintStream output) {\n        closeFile();\n        out = output;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setEmacsMode", "code": "    public void setEmacsMode(boolean emacsMode) {\n        this.emacsMode = emacsMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorPrintStream", "code": "    public void setErrorPrintStream(PrintStream err) {\n        setOutputPrintStream(err);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "formatTime", "code": "    private static String formatTime(long millis) {\n        long seconds = millis / 1000;\n        long minutes = seconds / 60;\n\n\n        if (minutes > 0) {\n            return Long.toString(minutes) + \" minute\"\n                 + (minutes == 1 ? \" \" : \"s \")\n                 + Long.toString(seconds % 60) + \" second\"\n                 + (seconds % 60 == 1 ? \"\" : \"s\");\n        } else {\n            return Long.toString(seconds) + \" second\"\n                 + (seconds % 60 == 1 ? \"\" : \"s\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [2, 9], [3, 10], [6, 11], [7, 12], [9, 13], [10, 14], [11, 15], [11, 16], [12, 17], [12, 18], [15, 19], [15, 20], [15, 21], [16, 22], [16, 23], [17, 24], [17, 25], [17, 26], [18, 27], [18, 28], [21, 29], [21, 30], [26, 31], [26, 32], [28, 33], [28, 34], [30, 35], [32, 36], [33, 37], [34, 38], [34, 39], [37, 40], [38, 41], [38, 42], [38, 43], [39, 44], [39, 45], [43, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 2], [10, 3], [11, 6], [12, 7], [13, 9], [14, 10], [15, 11], [16, 11], [17, 12], [18, 12], [19, 15], [20, 15], [21, 15], [22, 16], [23, 16], [24, 17], [25, 17], [26, 17], [27, 18], [28, 18], [29, 21], [30, 21], [31, 26], [32, 26], [33, 28], [34, 28], [35, 30], [36, 32], [37, 33], [38, 34], [39, 34], [40, 37], [41, 38], [42, 38], [43, 38], [44, 39], [45, 39], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "setProject", "code": "    public void setProject(Project project) {\n        this.project = project;\n        if (project != null) {\n            project.addBuildListener(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "cleanup", "code": "    public void cleanup() {\n        closeFile();\n        if (project != null) {\n            project.removeBuildListener(this);\n        }\n        project = null;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [3, 6], [1, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 3], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "openFile", "code": "    void openFile(boolean append) throws BuildException {\n        openFileImpl(append);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "closeFile", "code": "    void closeFile() {\n        if (out != null) {\n            out.close();\n            out = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "reopenFile", "code": "    void reopenFile() throws BuildException {\n        openFileImpl(true);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "openFileImpl", "code": "    private void openFileImpl(boolean append) throws BuildException {\n        if (out == null) {\n            try {\n                out = new PrintStream(new FileOutputStream(filename, append));\n            } catch (IOException ioe) {\n                throw new BuildException(\"Problems opening file using a \" +\n                        \"recorder entry\", ioe);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [6, 7], [4, 8], [7, 9], [8, 10], [9, 11], [10, 12], [11, 13], [11, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 6], [8, 4], [9, 7], [10, 8], [11, 9], [12, 10], [13, 11], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "RecorderEntry", "code": "    protected RecorderEntry(String name) {\n        targetStartTime = System.currentTimeMillis();\n        filename = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.4-6578", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/Key.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Key", "code": "final class Key extends TopLevelElement {\n\n\n    /**\n     * Parse the <xsl:key> element and attributes\n     * @param parser A reference to the stylesheet parser\n     */\n    public void parseContents(Parser parser) {\n\n\t_name = parser.getQNameIgnoreDefaultNs(getAttribute(\"name\"));\n\t_match = parser.parsePattern(this, \"match\", null);\n\t_use = parser.parseExpression(this, \"use\", null);\n\n        if (_name == null) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\n\t    return;\n        }\n        if (_match.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"match\");\n\t    return;\n        }\n        if (_use.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"use\");\n\t    return;\n        }\n    }\n\n    /**\n     * Returns a String-representation of this key's name\n     * @return The key's name (from the <xsl:key> elements 'name' attribute).\n     */\n    public String getName() {\n\treturn _name.toString();\n    }\n\n    /**\n     * Run type check on the \"use\" attribute and make sure it is something\n     * we can use to extract some value from nodes.\n     * @param stable The stylesheet parser's symbol table\n     * @return The data-type of this key (always void)\n     * @throws TypeCheckError If the use attribute does not represent a string,\n     *   a node-set or a number\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_match.typeCheck(stable);\n\t_useType = _use.typeCheck(stable);\n\n\tif (_useType instanceof NodeType) {\n\t    _use = new CastExpr(_use, Type.String);\n\t    _useType = Type.String;\n\t}\n\n\tif (!(_useType instanceof StringType) &&\n\t    !(_useType instanceof NodeSetType) &&\n\t    !(_useType instanceof RealType)) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.KEY_USE_ATTR_ERR, this);\n\t    throw new TypeCheckError(err);\n\t}\n\n\treturn Type.Void;\n    }\n\n    /**\n     * This method is called if the \"use\" attribute of the key contains a\n     * node set. In this case we must traverse all nodes in the set and\n     * create one entry in this key's index for each node in the set.\n     * @param classGen The Java class generator\n     * @param methodGen The method generator\n     */\n    public void traverseNodeSet(ClassGenerator classGen,\n\t\t\t\tMethodGenerator methodGen,\n\t\t\t\tint buildKeyIndex) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tfinal int getNodeValue = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\t   \"getNodeValue\",\n\t\t\t\t\t\t\t   \"(I)\"+STRING_SIG);\n\n\tfinal LocalVariableGen parentNode =\n\t    methodGen.addLocalVariable(\"parentNode\",\n\t\t\t\t       Util.getJCRefType(\"I\"),\n\t\t\t\t       il.getEnd(), null);\n\n\til.append(new ISTORE(parentNode.getIndex()));\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.loadIterator());\n\n\t_use.translate(classGen, methodGen);\n\t_use.startResetIterator(classGen, methodGen);\n\til.append(methodGen.storeIterator());\n\n\tfinal BranchHandle nextNode = il.append(new GOTO(null));\n\tfinal InstructionHandle loop = il.append(NOP);\n\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg, _name.toString()));\n\til.append(new ILOAD(parentNode.getIndex()));\n\n\til.append(methodGen.loadDOM());\n\til.append(methodGen.loadCurrentNode());\n\til.append(new INVOKEINTERFACE(getNodeValue, 2));\n\n\til.append(new INVOKEVIRTUAL(buildKeyIndex));\n\n\tnextNode.setTarget(il.append(methodGen.loadIterator()));\n\til.append(methodGen.nextNode());\n\n\til.append(DUP);\n\til.append(methodGen.storeCurrentNode());\n\n\til.append(methodGen.storeIterator());\n\til.append(methodGen.storeCurrentNode());\n    }\n\n    /**\n     * Gather all nodes that match the expression in the attribute \"match\"\n     * and add one (or more) entries in this key's index.\n     * @param classGen The Java class generator\n     * @param methodGen The method generator\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int current = methodGen.getLocalIndex(\"current\");\n\n\tfinal int key = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"buildKeyIndex\",\n\t\t\t\t\t \"(\"+STRING_SIG+\"I\"+OBJECT_SIG+\")V\");\n\n\tfinal int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  \"getAxisIterator\",\n\t\t\t\t\t\t  \"(I)\"+NODE_ITERATOR_SIG);\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.loadIterator());\n\n\til.append(methodGen.loadDOM());\t\n\til.append(new PUSH(cpg,Axis.DESCENDANT));\n\til.append(new INVOKEINTERFACE(git, 2));\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.setStartNode());\n\til.append(methodGen.storeIterator());\n\n\tfinal BranchHandle nextNode = il.append(new GOTO(null));\n\tfinal InstructionHandle loop = il.append(NOP);\n\n\til.append(methodGen.loadCurrentNode());\n\t_match.translate(classGen, methodGen);\n\tfinal BranchHandle skipNode = il.append(new IFEQ(null));\n\t\n\tif (_useType instanceof RealType) {\n\t    final int dbl = cpg.addMethodref(DOUBLE_CLASS,\"<init>\", \"(D)V\");\n\n\t    il.append(classGen.loadTranslet());\n\t    il.append(new PUSH(cpg, _name.toString()));\n\t    il.append(methodGen.loadCurrentNode());\n\t    il.append(new NEW(cpg.addClass(DOUBLE_CLASS)));\n\t    il.append(DUP);\n\t    _use.translate(classGen,methodGen);\n\t    il.append(new INVOKESPECIAL(dbl));\n\t    il.append(new INVOKEVIRTUAL(key));\n\n\t}\n\telse if (_useType instanceof StringType) {\n\t    il.append(classGen.loadTranslet());\n\t    il.append(new PUSH(cpg, _name.toString()));\n\t    il.append(methodGen.loadCurrentNode());\n\t    _use.translate(classGen,methodGen);\n\t    il.append(new INVOKEVIRTUAL(key));\n\t}\n\telse {\n\t    il.append(methodGen.loadCurrentNode());\n\t    traverseNodeSet(classGen,methodGen,key);\n\t}\n\t\n\tfinal InstructionHandle skip = il.append(NOP);\n\t\n\til.append(methodGen.loadIterator());\n\til.append(methodGen.nextNode());\n\til.append(DUP);\n\til.append(methodGen.storeCurrentNode());\n\til.append(new IFNE(loop));\n\n\til.append(methodGen.storeIterator());\n\til.append(methodGen.storeCurrentNode());\n\t\n\tnextNode.setTarget(skip);\n\tskipNode.setTarget(skip);", "functions": [{"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\n\t_name = parser.getQNameIgnoreDefaultNs(getAttribute(\"name\"));\n\t_match = parser.parsePattern(this, \"match\", null);\n\t_use = parser.parseExpression(this, \"use\", null);\n\n        if (_name == null) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"name\");\n\t    return;\n        }\n        if (_match.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"match\");\n\t    return;\n        }\n        if (_use.isDummy()) {\n\t    reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, \"use\");\n\t    return;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "RETURN", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [7, 14], [8, 15], [9, 16], [10, 17], [1, 18], [2, 19], [3, 20], [15, 21], [15, 22], [16, 23], [16, 24], [17, 25], [18, 26], [19, 27], [20, 28], [25, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 7], [15, 8], [16, 9], [17, 10], [18, 1], [19, 2], [20, 3], [21, 15], [22, 15], [23, 16], [24, 16], [25, 17], [26, 18], [27, 19], [28, 20], [29, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getName", "code": "    public String getName() {\n\treturn _name.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_match.typeCheck(stable);\n\t_useType = _use.typeCheck(stable);\n\n\tif (_useType instanceof NodeType) {\n\t    _use = new CastExpr(_use, Type.String);\n\t    _useType = Type.String;\n\t}\n\n\tif (!(_useType instanceof StringType) &&\n\t    !(_useType instanceof NodeSetType) &&\n\t    !(_useType instanceof RealType)) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.KEY_USE_ATTR_ERR, this);\n\t    throw new TypeCheckError(err);\n\t}\n\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [0, 7], [0, 8], [2, 9], [2, 10], [5, 11], [5, 12], [7, 13], [9, 14], [12, 15], [12, 16], [3, 17], [3, 18], [10, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 0], [8, 0], [9, 2], [10, 2], [11, 5], [12, 5], [13, 7], [14, 9], [15, 12], [16, 12], [17, 3], [18, 3], [19, 10], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "traverseNodeSet", "code": "    public void traverseNodeSet(ClassGenerator classGen,\n\t\t\t\tMethodGenerator methodGen,\n\t\t\t\tint buildKeyIndex) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\tfinal int getNodeValue = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\t   \"getNodeValue\",\n\t\t\t\t\t\t\t   \"(I)\"+STRING_SIG);\n\n\tfinal LocalVariableGen parentNode =\n\t    methodGen.addLocalVariable(\"parentNode\",\n\t\t\t\t       Util.getJCRefType(\"I\"),\n\t\t\t\t       il.getEnd(), null);\n\n\til.append(new ISTORE(parentNode.getIndex()));\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.loadIterator());\n\n\t_use.translate(classGen, methodGen);\n\t_use.startResetIterator(classGen, methodGen);\n\til.append(methodGen.storeIterator());\n\n\tfinal BranchHandle nextNode = il.append(new GOTO(null));\n\tfinal InstructionHandle loop = il.append(NOP);\n\n\til.append(classGen.loadTranslet());\n\til.append(new PUSH(cpg, _name.toString()));\n\til.append(new ILOAD(parentNode.getIndex()));\n\n\til.append(methodGen.loadDOM());\n\til.append(methodGen.loadCurrentNode());\n\til.append(new INVOKEINTERFACE(getNodeValue, 2));\n\n\til.append(new INVOKEVIRTUAL(buildKeyIndex));\n\n\tnextNode.setTarget(il.append(methodGen.loadIterator()));\n\til.append(methodGen.nextNode());\n\n\til.append(DUP);\n\til.append(methodGen.storeCurrentNode());\n\n\til.append(methodGen.storeIterator());\n\til.append(methodGen.storeCurrentNode());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [10, 29], [11, 30], [12, 31], [14, 32], [15, 33], [16, 34], [17, 35], [18, 36], [19, 37], [20, 38], [21, 39], [22, 40], [1, 41], [2, 42], [23, 43], [26, 44], [27, 45], [28, 46], [3, 47], [4, 48], [5, 49], [6, 50], [33, 51], [35, 52], [38, 53], [39, 54], [42, 55], [46, 56], [47, 57], [47, 58], [47, 59], [47, 60], [48, 61], [48, 62], [55, 63], [59, 64], [61, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 10], [30, 11], [31, 12], [32, 14], [33, 15], [34, 16], [35, 17], [36, 18], [37, 19], [38, 20], [39, 21], [40, 22], [41, 1], [42, 2], [43, 23], [44, 26], [45, 27], [46, 28], [47, 3], [48, 4], [49, 5], [50, 6], [51, 33], [52, 35], [53, 38], [54, 39], [55, 42], [56, 46], [57, 47], [58, 47], [59, 47], [60, 47], [61, 48], [62, 48], [63, 55], [64, 59], [65, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int current = methodGen.getLocalIndex(\"current\");\n\n\tfinal int key = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t \"buildKeyIndex\",\n\t\t\t\t\t \"(\"+STRING_SIG+\"I\"+OBJECT_SIG+\")V\");\n\n\tfinal int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  \"getAxisIterator\",\n\t\t\t\t\t\t  \"(I)\"+NODE_ITERATOR_SIG);\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.loadIterator());\n\n\til.append(methodGen.loadDOM());\t\n\til.append(new PUSH(cpg,Axis.DESCENDANT));\n\til.append(new INVOKEINTERFACE(git, 2));\n\n\til.append(methodGen.loadCurrentNode());\n\til.append(methodGen.setStartNode());\n\til.append(methodGen.storeIterator());\n\n\tfinal BranchHandle nextNode = il.append(new GOTO(null));\n\tfinal InstructionHandle loop = il.append(NOP);\n\n\til.append(methodGen.loadCurrentNode());\n\t_match.translate(classGen, methodGen);\n\tfinal BranchHandle skipNode = il.append(new IFEQ(null));\n\t\n\tif (_useType instanceof RealType) {\n\t    final int dbl = cpg.addMethodref(DOUBLE_CLASS,\"<init>\", \"(D)V\");\n\n\t    il.append(classGen.loadTranslet());\n\t    il.append(new PUSH(cpg, _name.toString()));\n\t    il.append(methodGen.loadCurrentNode());\n\t    il.append(new NEW(cpg.addClass(DOUBLE_CLASS)));\n\t    il.append(DUP);\n\t    _use.translate(classGen,methodGen);\n\t    il.append(new INVOKESPECIAL(dbl));\n\t    il.append(new INVOKEVIRTUAL(key));\n\n\t}\n\telse if (_useType instanceof StringType) {\n\t    il.append(classGen.loadTranslet());\n\t    il.append(new PUSH(cpg, _name.toString()));\n\t    il.append(methodGen.loadCurrentNode());\n\t    _use.translate(classGen,methodGen);\n\t    il.append(new INVOKEVIRTUAL(key));\n\t}\n\telse {\n\t    il.append(methodGen.loadCurrentNode());\n\t    traverseNodeSet(classGen,methodGen,key);\n\t}\n\t\n\tfinal InstructionHandle skip = il.append(NOP);\n\t\n\til.append(methodGen.loadIterator());\n\til.append(methodGen.nextNode());\n\til.append(DUP);\n\til.append(methodGen.storeCurrentNode());\n\til.append(new IFNE(loop));\n\n\til.append(methodGen.storeIterator());\n\til.append(methodGen.storeCurrentNode());\n\t\n\tnextNode.setTarget(skip);\n\tskipNode.setTarget(skip);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [2, 22], [2, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [15, 34], [16, 35], [17, 36], [18, 37], [20, 38], [21, 39], [1, 40], [22, 41], [2, 42], [3, 43], [25, 44], [4, 45], [5, 46], [26, 47], [27, 48], [28, 49], [29, 50], [30, 51], [31, 52], [32, 53], [33, 54], [6, 55], [7, 56], [8, 57], [9, 58], [10, 59], [2, 60], [2, 61], [2, 62], [2, 63], [2, 64], [2, 65], [2, 66], [2, 67], [43, 68], [46, 69], [50, 70], [55, 71], [55, 72], [56, 73], [56, 74], [57, 75], [22, 76], [22, 77], [22, 78], [22, 79], [22, 80], [22, 81], [22, 82], [60, 83], [61, 84], [64, 85], [65, 86], [66, 87], [67, 88], [42, 89], [68, 90], [69, 91], [71, 92], [73, 93], [73, 94], [77, 95], [78, 96], [80, 97], [81, 98], [82, 99], [85, 100], [87, 101], [89, 102], [89, 103], [94, 104], [98, 105], [104, 106], [104, 107], [107, 108], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 2], [23, 2], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 15], [35, 16], [36, 17], [37, 18], [38, 20], [39, 21], [40, 1], [41, 22], [42, 2], [43, 3], [44, 25], [45, 4], [46, 5], [47, 26], [48, 27], [49, 28], [50, 29], [51, 30], [52, 31], [53, 32], [54, 33], [55, 6], [56, 7], [57, 8], [58, 9], [59, 10], [60, 2], [61, 2], [62, 2], [63, 2], [64, 2], [65, 2], [66, 2], [67, 2], [68, 43], [69, 46], [70, 50], [71, 55], [72, 55], [73, 56], [74, 56], [75, 57], [76, 22], [77, 22], [78, 22], [79, 22], [80, 22], [81, 22], [82, 22], [83, 60], [84, 61], [85, 64], [86, 65], [87, 66], [88, 67], [89, 42], [90, 68], [91, 69], [92, 71], [93, 73], [94, 73], [95, 77], [96, 78], [97, 80], [98, 81], [99, 82], [100, 85], [101, 87], [102, 89], [103, 89], [104, 94], [105, 98], [106, 104], [107, 104], [108, 107], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108]]}], "label": 1}
{"sample_id": "xalan-2.4-6638", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/templates/XMLNSDecl.java", "language": "java", "name": "org.apache.xalan.templates.XMLNSDecl", "code": "public class XMLNSDecl\n{\n\n  /**\n   * Constructor XMLNSDecl\n   *\n   * @param prefix non-null reference to prefix, using \"\" for default namespace.\n   * @param uri non-null reference to namespace URI.\n   * @param isExcluded true if this namespace declaration should normally be excluded.\n   */\n  public XMLNSDecl(String prefix, String uri, boolean isExcluded)\n  {\n\n    m_prefix = prefix;\n    m_uri = uri;\n    m_isExcluded = isExcluded;\n  }\n\n  /** non-null reference to prefix, using \"\" for default namespace.\n   *  @serial */\n  private String m_prefix;\n\n  /**\n   * Return the prefix.\n   * @return The prefix that is associated with this URI, or null\n   * if the XMLNSDecl is declaring the default namespace.\n   */\n  public String getPrefix()\n  {\n    return m_prefix;\n  }\n\n  /** non-null reference to namespace URI.\n   *  @serial  */\n  private String m_uri;\n\n  /**\n   * Return the URI.\n   * @return The URI that is associated with this declaration.\n   */\n  public String getURI()\n  {\n    return m_uri;\n  }\n\n  /** true if this namespace declaration should normally be excluded.\n   *  @serial  */\n  private boolean m_isExcluded;\n\n  /**\n   * Tell if this declaration should be excluded from the\n   * result namespace.\n   *\n   * @return true if this namespace declaration should normally be excluded.\n   */\n  public boolean getIsExcluded()\n  {\n    return m_isExcluded;", "functions": [{"function_name": "getPrefix", "code": "  public String getPrefix()\n  {\n    return m_prefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getURI", "code": "  public String getURI()\n  {\n    return m_uri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIsExcluded", "code": "  public boolean getIsExcluded()\n  {\n    return m_isExcluded;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XMLNSDecl", "code": "  public XMLNSDecl(String prefix, String uri, boolean isExcluded)\n  {\n\n    m_prefix = prefix;\n    m_uri = uri;\n    m_isExcluded = isExcluded;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.7-8326", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/extensions/ExtensionHandlerGeneral.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionHandlerGeneral", "code": "public class ExtensionHandlerGeneral extends ExtensionHandler\n{\n\n  /** script source to run (if any)      */\n  private String m_scriptSrc;   \n\n  /** URL of source of script (if any)         */\n  private String m_scriptSrcURL;  \n\n  /** functions of namespace        */\n  private Hashtable m_functions = new Hashtable();  \n\n  /** elements of namespace         */\n  private Hashtable m_elements = new Hashtable();   \n\n\n  /** BSF manager used to run scripts */\n  private Object m_engine;\n\n  /** Engine call to invoke scripts */\n  private Method m_engineCall = null;\n\n\n  /** BSFManager package name */\n  private static String BSF_MANAGER ;\n  \n  /** Default BSFManager name */\n  private static final String DEFAULT_BSF_MANAGER = \"org.apache.bsf.BSFManager\";\n  \n  /** Property name to load the BSFManager class */\n  private static final String propName = \"org.apache.xalan.extensions.bsf.BSFManager\";\n  \n  /** Integer Zero */\n  private static final Integer ZEROINT = new Integer(0);\n\n  static{\n          BSF_MANAGER =  ObjectFactory.lookUpFactoryClassName(propName, null, null);\n \n          if (BSF_MANAGER == null){\n                  BSF_MANAGER = DEFAULT_BSF_MANAGER;               \n          }          \n  }\n\n  /**\n   * Construct a new extension namespace handler given all the information\n   * needed.\n   *\n   * @param namespaceUri the extension namespace URI that I'm implementing\n   * @param elemNames Vector of element names\n   * @param funcNames    string containing list of functions of extension NS\n   * @param scriptLang Scripting language of implementation\n   * @param scriptSrcURL URL of source script\n   * @param scriptSrc    the actual script code (if any)\n   * @param systemId\n   *\n   * @throws TransformerException\n   */\n  public ExtensionHandlerGeneral(\n          String namespaceUri, StringVector elemNames, StringVector funcNames, String scriptLang, String scriptSrcURL, String scriptSrc, String systemId)\n            throws TransformerException\n  {\n\n    super(namespaceUri, scriptLang);\n\n    if (elemNames != null)\n    {\n      Object junk = new Object();\n      int n = elemNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = elemNames.elementAt(i);\n\n      }\n    }\n\n    if (funcNames != null)\n    {\n      Object junk = new Object();\n      int n = funcNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = funcNames.elementAt(i);\n\n      }\n    }\n\n    m_scriptSrcURL = scriptSrcURL;\n    m_scriptSrc = scriptSrc;\n\n    if (m_scriptSrcURL != null)\n    {\n      URL url = null;\n      try{\n        url = new URL(m_scriptSrcURL);\n      }\n      catch (java.net.MalformedURLException mue)\n      {\n        int indexOfColon = m_scriptSrcURL.indexOf(':');\n        int indexOfSlash = m_scriptSrcURL.indexOf('/');\n\n        if ((indexOfColon != -1) && (indexOfSlash != -1)\n            && (indexOfColon < indexOfSlash))\n        {\n          url = null;\n        }\n        else\n        {\n          try{\n            url = new URL(new URL(SystemIDResolver.getAbsoluteURI(systemId)), m_scriptSrcURL);          \n          }        \n          catch (java.net.MalformedURLException mue2)\n          {\n          }\n        }\n      }\n      if (url != null)\n      {\n        try\n        {\n          URLConnection uc = url.openConnection();\n          InputStream is = uc.getInputStream();\n          byte []bArray = new byte[uc.getContentLength()];\n          is.read(bArray);\n          m_scriptSrc = new String(bArray);\n          \n        }\n        catch (IOException ioe)\n        {\n        }\n      }\n      \n    }\n\n    Object manager = null;\n    try\n    {\n      manager = ObjectFactory.newInstance(\n        BSF_MANAGER, ObjectFactory.findClassLoader(), true);\n    }\n    catch (ObjectFactory.ConfigurationError e)\n    {\n      e.printStackTrace();\n    }\n\n    if (manager == null)\n    {\n    }\n\n    try\n    {\n      Method loadScriptingEngine = manager.getClass()\n        .getMethod(\"loadScriptingEngine\", new Class[]{ String.class });\n\n      m_engine = loadScriptingEngine.invoke(manager,\n        new Object[]{ scriptLang });\n\n      Method engineExec = m_engine.getClass().getMethod(\"exec\",\n        new Class[]{ String.class, Integer.TYPE, Integer.TYPE, Object.class });\n\n      engineExec.invoke(m_engine,\n        new Object[]{ \"XalanScript\", ZEROINT, ZEROINT, m_scriptSrc });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();\n\n    }\n  }\n\n  /**\n   * Tests whether a certain function name is known within this namespace.\n   * @param function name of the function being tested\n   * @return true if its known, false if not.\n   */\n  public boolean isFunctionAvailable(String function)\n  {\n    return (m_functions.get(function) != null);\n  }\n\n  /**\n   * Tests whether a certain element name is known within this namespace.\n   * @param element name of the element being tested\n   * @return true if its known, false if not.\n   */\n  public boolean isElementAvailable(String element)\n  {\n    return (m_elements.get(element) != null);\n  }\n\n  /**\n   * Process a call to a function.\n   *\n   * @param funcName Function name.\n   * @param args     The arguments of the function call.\n   * @param methodKey A key that uniquely identifies this class and method call.\n   * @param exprContext The context in which this expression is being executed.\n   *\n   * @return the return value of the function evaluation.\n   *\n   * @throws TransformerException          if parsing trouble\n   */\n  public Object callFunction(\n          String funcName, Vector args, Object methodKey, ExpressionContext exprContext)\n            throws TransformerException\n  {\n\n    Object[] argArray;\n\n    try\n    {\n      argArray = new Object[args.size()];\n\n      for (int i = 0; i < argArray.length; i++)\n      {\n        Object o = args.elementAt(i);\n\n        argArray[i] = (o instanceof XObject) ? ((XObject) o).object() : o;\n        o = argArray[i];\n        if(null != o && o instanceof DTMIterator)\n        {\n          argArray[i] = new DTMNodeList((DTMIterator)o);\n        }\n      }\n\n      if (m_engineCall == null) {\n        m_engineCall = m_engine.getClass().getMethod(\"call\",\n          new Class[]{ Object.class, String.class, Object[].class });\n      }\n\n      return m_engineCall.invoke(m_engine,\n        new Object[]{ null, funcName, argArray });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();\n\n      String msg = e.getMessage();\n\n      if (null != msg)\n      {\n        if (msg.startsWith(\"Stopping after fatal error:\"))\n        {\n          msg = msg.substring(\"Stopping after fatal error:\".length());\n        }\n\n        throw new TransformerException(e);\n      }\n      else\n      {\n\n      }\n    }\n  }\n\n  /**\n   * Process a call to an XPath extension function\n   *\n   * @param extFunction The XPath extension function\n   * @param args The arguments of the function call.\n   * @param exprContext The context in which this expression is being executed.\n   * @return the return value of the function evaluation.\n   * @throws TransformerException\n   */\n  public Object callFunction(FuncExtFunction extFunction,\n                             Vector args,\n                             ExpressionContext exprContext)\n      throws TransformerException\n  {\n    return callFunction(extFunction.getFunctionName(), args, \n                        extFunction.getMethodKey(), exprContext);\n  }\n\n  /**\n   * Process a call to this extension namespace via an element. As a side\n   * effect, the results are sent to the TransformerImpl's result tree.\n   *\n   * @param localPart      Element name's local part.\n   * @param element        The extension element being processed.\n   * @param transformer      Handle to TransformerImpl.\n   * @param stylesheetTree The compiled stylesheet tree.\n   * @param methodKey A key that uniquely identifies this class and method call.\n   *\n   * @throws XSLProcessorException thrown if something goes wrong\n   *            while running the extension handler.\n   * @throws MalformedURLException if loading trouble\n   * @throws FileNotFoundException if loading trouble\n   * @throws IOException           if loading trouble\n   * @throws TransformerException          if parsing trouble\n   */\n  public void processElement(\n          String localPart, ElemTemplateElement element, TransformerImpl transformer, \n          Stylesheet stylesheetTree, Object methodKey)\n            throws TransformerException, IOException\n  {\n\n    Object result = null;\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, stylesheetTree);\n\n    try\n    {\n      Vector argv = new Vector(2);\n\n      argv.addElement(xpc);\n      argv.addElement(element);\n\n      result = callFunction(localPart, argv, methodKey,\n                            transformer.getXPathContext().getExpressionContext());\n    }\n    catch (XPathProcessorException e)\n    {\n\n      throw new TransformerException(e.getMessage(), e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree(stylesheetTree, result);", "functions": [{"function_name": "isFunctionAvailable", "code": "  public boolean isFunctionAvailable(String function)\n  {\n    return (m_functions.get(function) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isElementAvailable", "code": "  public boolean isElementAvailable(String element)\n  {\n    return (m_elements.get(element) != null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "callFunction", "code": "  public Object callFunction(\n          String funcName, Vector args, Object methodKey, ExpressionContext exprContext)\n            throws TransformerException\n  {\n\n    Object[] argArray;\n\n    try\n    {\n      argArray = new Object[args.size()];\n\n      for (int i = 0; i < argArray.length; i++)\n      {\n        Object o = args.elementAt(i);\n\n        argArray[i] = (o instanceof XObject) ? ((XObject) o).object() : o;\n        o = argArray[i];\n        if(null != o && o instanceof DTMIterator)\n        {\n          argArray[i] = new DTMNodeList((DTMIterator)o);\n        }\n      }\n\n      if (m_engineCall == null) {\n        m_engineCall = m_engine.getClass().getMethod(\"call\",\n          new Class[]{ Object.class, String.class, Object[].class });\n      }\n\n      return m_engineCall.invoke(m_engine,\n        new Object[]{ null, funcName, argArray });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();\n\n      String msg = e.getMessage();\n\n      if (null != msg)\n      {\n        if (msg.startsWith(\"Stopping after fatal error:\"))\n        {\n          msg = msg.substring(\"Stopping after fatal error:\".length());\n        }\n\n        throw new TransformerException(e);\n      }\n      else\n      {", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "THROW_RAISE", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [7, 11], [7, 12], [8, 13], [9, 14], [10, 15], [1, 16], [11, 17], [7, 18], [14, 19], [10, 20], [10, 21], [11, 22], [11, 23], [17, 24], [12, 25], [9, 26], [20, 27], [10, 28], [10, 29], [10, 30], [16, 31], [22, 32], [23, 33], [13, 34], [26, 35], [27, 36], [27, 37], [29, 38], [21, 39], [33, 40], [35, 41], [20, 42], [37, 43], [38, 44], [23, 45], [41, 46], [42, 47], [45, 48], [48, 49], [49, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 7], [12, 7], [13, 8], [14, 9], [15, 10], [16, 1], [17, 11], [18, 7], [19, 14], [20, 10], [21, 10], [22, 11], [23, 11], [24, 17], [25, 12], [26, 9], [27, 20], [28, 10], [29, 10], [30, 10], [31, 16], [32, 22], [33, 23], [34, 13], [35, 26], [36, 27], [37, 27], [38, 29], [39, 21], [40, 33], [41, 35], [42, 20], [43, 37], [44, 38], [45, 23], [46, 41], [47, 42], [48, 45], [49, 48], [50, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "callFunction", "code": "  public Object callFunction(FuncExtFunction extFunction,\n                             Vector args,\n                             ExpressionContext exprContext)\n      throws TransformerException\n  {\n    return callFunction(extFunction.getFunctionName(), args, \n                        extFunction.getMethodKey(), exprContext);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "processElement", "code": "  public void processElement(\n          String localPart, ElemTemplateElement element, TransformerImpl transformer, \n          Stylesheet stylesheetTree, Object methodKey)\n            throws TransformerException, IOException\n  {\n\n    Object result = null;\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, stylesheetTree);\n\n    try\n    {\n      Vector argv = new Vector(2);\n\n      argv.addElement(xpc);\n      argv.addElement(element);\n\n      result = callFunction(localPart, argv, methodKey,\n                            transformer.getXPathContext().getExpressionContext());\n    }\n    catch (XPathProcessorException e)\n    {\n\n      throw new TransformerException(e.getMessage(), e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree(stylesheetTree, result);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [10, 13], [11, 14], [2, 15], [2, 16], [2, 17], [3, 18], [4, 19], [1, 20], [14, 21], [15, 22], [12, 23], [21, 24], [22, 25], [23, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 10], [14, 11], [15, 2], [16, 2], [17, 2], [18, 3], [19, 4], [20, 1], [21, 14], [22, 15], [23, 12], [24, 21], [25, 22], [26, 23], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "ExtensionHandlerGeneral", "code": "  public ExtensionHandlerGeneral(\n          String namespaceUri, StringVector elemNames, StringVector funcNames, String scriptLang, String scriptSrcURL, String scriptSrc, String systemId)\n            throws TransformerException\n  {\n\n    super(namespaceUri, scriptLang);\n\n    if (elemNames != null)\n    {\n      Object junk = new Object();\n      int n = elemNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = elemNames.elementAt(i);\n\n      }\n    }\n\n    if (funcNames != null)\n    {\n      Object junk = new Object();\n      int n = funcNames.size();\n\n      for (int i = 0; i < n; i++)\n      {\n        String tok = funcNames.elementAt(i);\n\n      }\n    }\n\n    m_scriptSrcURL = scriptSrcURL;\n    m_scriptSrc = scriptSrc;\n\n    if (m_scriptSrcURL != null)\n    {\n      URL url = null;\n      try{\n        url = new URL(m_scriptSrcURL);\n      }\n      catch (java.net.MalformedURLException mue)\n      {\n        int indexOfColon = m_scriptSrcURL.indexOf(':');\n        int indexOfSlash = m_scriptSrcURL.indexOf('/');\n\n        if ((indexOfColon != -1) && (indexOfSlash != -1)\n            && (indexOfColon < indexOfSlash))\n        {\n          url = null;\n        }\n        else\n        {\n          try{\n            url = new URL(new URL(SystemIDResolver.getAbsoluteURI(systemId)), m_scriptSrcURL);          \n          }        \n          catch (java.net.MalformedURLException mue2)\n          {\n          }\n        }\n      }\n      if (url != null)\n      {\n        try\n        {\n          URLConnection uc = url.openConnection();\n          InputStream is = uc.getInputStream();\n          byte []bArray = new byte[uc.getContentLength()];\n          is.read(bArray);\n          m_scriptSrc = new String(bArray);\n          \n        }\n        catch (IOException ioe)\n        {\n        }\n      }\n      \n    }\n\n    Object manager = null;\n    try\n    {\n      manager = ObjectFactory.newInstance(\n        BSF_MANAGER, ObjectFactory.findClassLoader(), true);\n    }\n    catch (ObjectFactory.ConfigurationError e)\n    {\n      e.printStackTrace();\n    }\n\n    if (manager == null)\n    {\n    }\n\n    try\n    {\n      Method loadScriptingEngine = manager.getClass()\n        .getMethod(\"loadScriptingEngine\", new Class[]{ String.class });\n\n      m_engine = loadScriptingEngine.invoke(manager,\n        new Object[]{ scriptLang });\n\n      Method engineExec = m_engine.getClass().getMethod(\"exec\",\n        new Class[]{ String.class, Integer.TYPE, Integer.TYPE, Object.class });\n\n      engineExec.invoke(m_engine,\n        new Object[]{ \"XalanScript\", ZEROINT, ZEROINT, m_scriptSrc });\n    }\n    catch (Exception e)\n    {\n      e.printStackTrace();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "TRY", "VAR_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CATCH", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CATCH", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "TRY", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [1, 16], [1, 17], [2, 18], [3, 19], [5, 20], [0, 21], [0, 22], [6, 23], [7, 24], [1, 25], [1, 26], [18, 27], [3, 28], [4, 29], [5, 30], [5, 31], [5, 32], [20, 33], [6, 34], [6, 35], [6, 36], [23, 37], [7, 38], [7, 39], [7, 40], [24, 41], [15, 42], [16, 43], [26, 44], [17, 45], [19, 46], [28, 47], [30, 48], [31, 49], [34, 50], [38, 51], [43, 52], [45, 53], [47, 54], [47, 55], [30, 56], [48, 57], [49, 58], [49, 59], [49, 60], [31, 61], [32, 62], [34, 63], [35, 64], [36, 65], [38, 66], [39, 67], [40, 68], [25, 69], [52, 70], [53, 71], [56, 72], [56, 73], [56, 74], [56, 75], [58, 76], [61, 77], [34, 78], [38, 79], [56, 80], [56, 81], [58, 82], [76, 83], [76, 84], [59, 85], [60, 86], [63, 87], [66, 88], [80, 89], [74, 90], [75, 91], [82, 92], [58, 93], [84, 94], [84, 95], [85, 96], [86, 97], [73, 98], [82, 99], [93, 100], [94, 101], [95, 102], [99, 103], [103, 104], [104, 105], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 1], [17, 1], [18, 2], [19, 3], [20, 5], [21, 0], [22, 0], [23, 6], [24, 7], [25, 1], [26, 1], [27, 18], [28, 3], [29, 4], [30, 5], [31, 5], [32, 5], [33, 20], [34, 6], [35, 6], [36, 6], [37, 23], [38, 7], [39, 7], [40, 7], [41, 24], [42, 15], [43, 16], [44, 26], [45, 17], [46, 19], [47, 28], [48, 30], [49, 31], [50, 34], [51, 38], [52, 43], [53, 45], [54, 47], [55, 47], [56, 30], [57, 48], [58, 49], [59, 49], [60, 49], [61, 31], [62, 32], [63, 34], [64, 35], [65, 36], [66, 38], [67, 39], [68, 40], [69, 25], [70, 52], [71, 53], [72, 56], [73, 56], [74, 56], [75, 56], [76, 58], [77, 61], [78, 34], [79, 38], [80, 56], [81, 56], [82, 58], [83, 76], [84, 76], [85, 59], [86, 60], [87, 63], [88, 66], [89, 80], [90, 74], [91, 75], [92, 82], [93, 58], [94, 84], [95, 84], [96, 85], [97, 86], [98, 73], [99, 82], [100, 93], [101, 94], [102, 95], [103, 99], [104, 103], [105, 104], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105]]}], "label": 1}
{"sample_id": "camel-1.2-1757", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/impl/DefaultPollingEndpoint.java", "language": "java", "name": "org.apache.camel.impl.DefaultPollingEndpoint", "code": "public abstract class DefaultPollingEndpoint<E extends Exchange> extends ScheduledPollEndpoint<E>  {\n\n    protected DefaultPollingEndpoint(String endpointUri, Component component) {\n        super(endpointUri, component);\n    }\n\n    protected DefaultPollingEndpoint(String endpointUri, CamelContext context) {\n        super(endpointUri, context);\n    }\n\n    public Consumer<E> createConsumer(Processor processor) throws Exception {\n        DefaultScheduledPollConsumer result = new DefaultScheduledPollConsumer(this, processor);\n        configureConsumer(result);\n        return result;", "functions": [{"function_name": "createConsumer", "code": "    public Consumer<E> createConsumer(Processor processor) throws Exception {\n        DefaultScheduledPollConsumer result = new DefaultScheduledPollConsumer(this, processor);\n        configureConsumer(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DefaultPollingEndpoint", "code": "    protected DefaultPollingEndpoint(String endpointUri, Component component) {\n        super(endpointUri, component);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DefaultPollingEndpoint", "code": "    protected DefaultPollingEndpoint(String endpointUri, CamelContext context) {\n        super(endpointUri, context);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7657", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/util/VoidType.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.VoidType", "code": "public final class VoidType extends Type {\n    protected VoidType() {}\n\n    public String toString() {\n\treturn \"void\";\n    }\n\n    public boolean identicalTo(Type other) {\n\treturn this == other;\n    }\n\n    public String toSignature() {\n\treturn \"V\";\n    }\n\n    public org.apache.bcel.generic.Type toJCType() {\n    }\n\n    public Instruction POP() {\n        return NOP;\n    }\n\n    /**\n     * Translates a void into an object of internal type <code>type</code>.\n     * This translation is needed when calling external functions\n     * that return void.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n\n    /**\n     * Translates a void into a string by pushing the empty string ''.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t    StringType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(classGen.getConstantPool(), \"\"));\n    }\n\n    /**\n     * Translates an external (primitive) Java type into a void.\n     * Only an external \"void\" can be converted to this class.\n     */\n    public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t      Class clazz) {\n\tif (!clazz.getName().equals(\"void\")) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), clazz.getName());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "functions": [{"function_name": "toString", "code": "    public String toString() {\n\treturn \"void\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "identicalTo", "code": "    public boolean identicalTo(Type other) {\n\treturn this == other;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toSignature", "code": "    public String toSignature() {\n\treturn \"V\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toJCType", "code": "    public org.apache.bcel.generic.Type toJCType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "POP", "code": "    public Instruction POP() {\n        return NOP;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [6, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 6], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t    StringType type) {\n\tfinal InstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(classGen.getConstantPool(), \"\"));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [6, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "translateFrom", "code": "    public void translateFrom(ClassGenerator classGen, MethodGenerator methodGen,\n\t\t\t      Class clazz) {\n\tif (!clazz.getName().equals(\"void\")) {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), clazz.getName());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [7, 9], [8, 10], [6, 11], [11, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 7], [10, 8], [11, 6], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "VoidType", "code": "    protected VoidType() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-3.2-3597", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/search/SearchAndReplace.java", "language": "java", "name": "org.gjt.sp.jedit.search.SearchAndReplace", "code": "public class SearchAndReplace\n{\n\t/**\n\t * Sets the current search string.\n\t * @param search The new search string\n\t */\n\tpublic static void setSearchString(String search)\n\t{\n\t\tif(search.equals(SearchAndReplace.search))\n\t\t\treturn;\n\n\t\tSearchAndReplace.search = search;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t}\n\n\t/**\n\t * Returns the current search string.\n\t */\n\tpublic static String getSearchString()\n\t{\n\t\treturn search;\n\t}\n\n\t/**\n\t * Sets the current replacement string.\n\t * @param search The new replacement string\n\t */\n\tpublic static void setReplaceString(String replace)\n\t{\n\t\tif(replace.equals(SearchAndReplace.replace))\n\t\t\treturn;\n\n\t\tSearchAndReplace.replace = replace;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t}\n\n\t/**\n\t * Returns the current replacement string.\n\t */\n\tpublic static String getReplaceString()\n\t{\n\t\treturn replace;\n\t}\n\n\t/**\n\t * Sets the ignore case flag.\n\t * @param ignoreCase True if searches should be case insensitive,\n\t * false otherwise\n\t */\n\tpublic static void setIgnoreCase(boolean ignoreCase)\n\t{\n\t\tif(ignoreCase == SearchAndReplace.ignoreCase)\n\t\t\treturn;\n\n\t\tSearchAndReplace.ignoreCase = ignoreCase;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t}\n\n\t/**\n\t * Returns the state of the ignore case flag.\n\t * @return True if searches should be case insensitive,\n\t * false otherwise\n\t */\n\tpublic static boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;\n\t}\n\n\t/**\n\t * Sets the state of the regular expression flag.\n\t * @param regexp True if regular expression searches should be\n\t * performed\n\t */\n\tpublic static void setRegexp(boolean regexp)\n\t{\n\t\tif(regexp == SearchAndReplace.regexp)\n\t\t\treturn;\n\n\t\tSearchAndReplace.regexp = regexp;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t}\n\n\t/**\n\t * Returns the state of the regular expression flag.\n\t * @return True if regular expression searches should be performed\n\t */\n\tpublic static boolean getRegexp()\n\t{\n\t\treturn regexp;\n\t}\n\n\t/**\n\t * Sets the reverse search flag. Note that currently, only literal\n\t * reverse searches are supported.\n\t * @param reverse True if searches should go backwards,\n\t * false otherwise\n\t */\n\tpublic static void setReverseSearch(boolean reverse)\n\t{\n\t\tif(reverse == SearchAndReplace.reverse)\n\t\t\treturn;\n\n\t\tSearchAndReplace.reverse = reverse;\n\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t}\n\n\t/**\n\t * Returns the state of the reverse search flag.\n\t * @return True if searches should go backwards,\n\t * false otherwise\n\t */\n\tpublic static boolean getReverseSearch()\n\t{\n\t\treturn reverse;\n\t}\n\n\t/**\n\t * Sets the state of the BeanShell replace flag.\n\t * @param regexp True if the replace string is a BeanShell expression\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static void setBeanShellReplace(boolean beanshell)\n\t{\n\t\tif(beanshell == SearchAndReplace.beanshell)\n\t\t\treturn;\n\n\t\tSearchAndReplace.beanshell = beanshell;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t}\n\n\t/**\n\t * Returns the state of the BeanShell replace flag.\n\t * @return True if the replace string is a BeanShell expression\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static boolean getBeanShellReplace()\n\t{\n\t\treturn beanshell;\n\t}\n\n\t/**\n\t * Sets the state of the auto wrap around flag.\n\t * @param wrap If true, the 'continue search from start' dialog\n\t * will not be displayed\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static void setAutoWrapAround(boolean wrap)\n\t{\n\t\tif(wrap == SearchAndReplace.wrap)\n\t\t\treturn;\n\n\t\tSearchAndReplace.wrap = wrap;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t}\n\n\t/**\n\t * Returns the state of the auto wrap around flag.\n\t * @param wrap If true, the 'continue search from start' dialog\n\t * will not be displayed\n\t * @since jEdit 3.2pre2\n\t */\n\tpublic static boolean getAutoWrapAround()\n\t{\n\t\treturn wrap;\n\t}\n\n\t/**\n\t * Sets the current search string matcher. Note that calling\n\t * <code>setSearchString</code>, <code>setReplaceString</code>,\n\t * <code>setIgnoreCase</code> or <code>setRegExp</code> will\n\t * reset the matcher to the default.\n\t */\n\tpublic static void setSearchMatcher(SearchMatcher matcher)\n\t{\n\t\tSearchAndReplace.matcher = matcher;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t}\n\n\t/**\n\t * Returns the current search string matcher.\n\t * @exception IllegalArgumentException if regular expression search\n\t * is enabled, the search string or replacement string is invalid\n\t */\n\tpublic static SearchMatcher getSearchMatcher()\n\t\tthrows Exception\n\t{\n\t\treturn getSearchMatcher(true);\n\t}\n\n\t/**\n\t * Returns the current search string matcher.\n\t * @param reverseOK Replacement commands need a non-reversed matcher,\n\t * so they set this to false\n\t * @exception IllegalArgumentException if regular expression search\n\t * is enabled, the search string or replacement string is invalid\n\t */\n\tpublic static SearchMatcher getSearchMatcher(boolean reverseOK)\n\t\tthrows Exception\n\t{\n\t\treverseOK &= (fileset instanceof CurrentBufferSet);\n\n\t\tif(matcher != null && (reverseOK || !reverse))\n\t\t\treturn matcher;\n\n\t\tif(search == null || \"\".equals(search))\n\t\t\treturn null;\n\n\t\t// replace must not be null\n\t\tString replace = (SearchAndReplace.replace == null ? \"\" : SearchAndReplace.replace);\n\n\t\tString replaceMethod;\n\t\tif(beanshell && replace.length() != 0)\n\t\t{\n\t\t\treplaceMethod = BeanShell.cacheBlock(\"replace\",\"return (\"\n\t\t\t\t+ replace + \");\",false);\n\t\t}\n\t\telse\n\t\t\treplaceMethod = null;\n\n\t\tif(regexp)\n\t\t\tmatcher = new RESearchMatcher(search,replace,ignoreCase,\n\t\t\t\tbeanshell,replaceMethod);\n\t\telse\n\t\t{\n\t\t\tmatcher = new BoyerMooreSearchMatcher(search,replace,\n\t\t\t\tignoreCase,reverse && reverseOK,beanshell,\n\t\t\t\treplaceMethod);\n\t\t}\n\n\t\treturn matcher;\n\t}\n\n\t/**\n\t * Sets the current search file set.\n\t * @param fileset The file set to perform searches in\n\t */\n\tpublic static void setSearchFileSet(SearchFileSet fileset)\n\t{\n\t\tSearchAndReplace.fileset = fileset;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));\n\t}\n\n\t/**\n\t * Returns the current search file set.\n\t */\n\tpublic static SearchFileSet getSearchFileSet()\n\t{\n\t\treturn fileset;\n\t}\n\n\t/**\n\t * Performs a HyperSearch.\n\t * @param view The view\n\t * @since jEdit 2.7pre3\n\t */\n\tpublic static boolean hyperSearch(View view)\n\t{\n\t\trecord(view,\"hyperSearch(view)\",false,true);\n\n\t\tview.getDockableWindowManager().addDockableWindow(\n\t\t\tHyperSearchResults.NAME);\n\t\tfinal HyperSearchResults results = (HyperSearchResults)\n\t\t\tview.getDockableWindowManager()\n\t\t\t.getDockableWindow(HyperSearchResults.NAME);\n\t\tresults.searchStarted();\n\n\t\ttry\n\t\t{\n\t\t\tVFSManager.runInWorkThread(new HyperSearchRequest(view,\n\t\t\t\tgetSearchMatcher(false),results));\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(view,\"searcherror\",args);\n\t\t\treturn false;\n\t\t}\n\t}\n\n\t/**\n\t * Finds the next occurance of the search string.\n\t * @param view The view\n\t * @return True if the operation was successful, false otherwise\n\t */\n\tpublic static boolean find(View view)\n\t{\n\t\tboolean repeat = false;\n\t\tBuffer buffer = fileset.getNextBuffer(view,null);\n\n\t\ttry\n\t\t{\n\t\t\tSearchMatcher matcher = getSearchMatcher(true);\n\t\t\tif(matcher == null)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\trecord(view,\"find(view)\",false,true);\n\n\t\t\tview.showWaitCursor();\n\nloop:\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\twhile(buffer != null)\n\t\t\t\t{\n\t\t\t\t\t// Wait for the buffer to load\n\t\t\t\t\tif(!buffer.isLoaded())\n\t\t\t\t\t\tVFSManager.waitForRequests();\n\n\t\t\t\t\tint start;\n\n\t\t\t\t\tif(view.getBuffer() == buffer && !repeat)\n\t\t\t\t\t{\n\t\t\t\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\t\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\t\t\t\ttextArea.getCaretPosition());\n\t\t\t\t\t\tif(s == null)\n\t\t\t\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\t\t\t\telse if(reverse)\n\t\t\t\t\t\t\tstart = s.getStart();\n\t\t\t\t\t\telse \n\t\t\t\t\t\t\tstart = s.getEnd();\n\t\t\t\t\t}\n\t\t\t\t\telse if(reverse)\n\t\t\t\t\t\tstart = buffer.getLength();\n\t\t\t\t\telse\n\t\t\t\t\t\tstart = 0;\n\n\t\t\t\t\tif(find(view,buffer,start))\n\t\t\t\t\t\treturn true;\n\n\t\t\t\t\tbuffer = fileset.getNextBuffer(view,buffer);\n\t\t\t\t}\n\n\t\t\t\tif(repeat)\n\t\t\t\t{\n\t\t\t\t\t// no point showing this dialog box twice\n\t\t\t\t\tview.getToolkit().beep();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t/* Don't do this when playing a macro */\n\t\t\t\tif(BeanShell.isScriptRunning())\n\t\t\t\t\tbreak loop;\n\n\t\t\t\tboolean restart;\n\t\t\t\tif(wrap)\n\t\t\t\t{\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\"view.status.auto-wrap\"));\n\t\t\t\t\trestart = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tInteger[] args = { new Integer(reverse ? 1 : 0) };\n\t\t\t\t\tint result = GUIUtilities.confirm(view,\n\t\t\t\t\t\t\"keepsearching\",args,\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\trestart = (result == JOptionPane.YES_OPTION);\n\t\t\t\t}\n\n\t\t\t\tif(restart)\n\t\t\t\t{\n\t\t\t\t\t// start search from beginning\n\t\t\t\t\tbuffer = fileset.getFirstBuffer(view);\n\t\t\t\t\trepeat = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tbreak loop;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(view,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t * Finds the next instance of the search string in the specified\n\t * buffer.\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @param start Location where to start the search\n\t */\n\tpublic static boolean find(final View view, final Buffer buffer, final int start)\n\t\tthrows Exception\n\t{\n\t\tSearchMatcher matcher = getSearchMatcher(true);\n\n\t\tSegment text = new Segment();\n\t\tif(reverse)\n\t\t\tbuffer.getText(0,start,text);\n\t\telse\n\t\t\tbuffer.getText(start,buffer.getLength() - start,text);\n\n\t\tint[] match = matcher.nextMatch(text);\n\t\tif(match != null)\n\t\t{\n\t\t\tfileset.matchFound(buffer);\n\t\t\tview.setBuffer(buffer);\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\tint matchStart = (reverse ? 0 : start);\n\t\t\ttextArea.setSelection(new Selection.Range(\n\t\t\t\tmatchStart + match[0],\n\t\t\t\tmatchStart + match[1]));\n\t\t\ttextArea.moveCaretPosition(matchStart + match[1]);\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}\n\n\t/**\n\t * Replaces the current selection with the replacement string.\n\t * @param view The view\n\t * @return True if the operation was successful, false otherwise\n\t */\n\tpublic static boolean replace(View view)\n\t{\n\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\tSelection[] selection = textArea.getSelection();\n\t\tif(selection.length == 0)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t}\n\n\t\trecord(view,\"replace(view)\",true,false);\n\n\t\tBuffer buffer = view.getBuffer();\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tint retVal = 0;\n\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\n\t\t\t\t/* if an occurence occurs at the\n\t\t\t\tbeginning of the selection, the\n\t\t\t\tselection start will get moved.\n\t\t\t\tthis sucks, so we hack to avoid it. */\n\t\t\t\tint start = s.getStart();\n\n\t\t\t\tretVal += _replace(view,buffer,\n\t\t\t\t\ts.getStart(),s.getEnd());\n\n\t\t\t\t// this has no effect if the selection\n\t\t\t\t// no longer exists\n\t\t\t\ttextArea.removeFromSelection(s);\n\t\t\t\tif(s instanceof Selection.Range)\n\t\t\t\t{\n\t\t\t\t\ttextArea.addToSelection(new Selection.Range(\n\t\t\t\t\t\tstart,s.getEnd()));\n\t\t\t\t}\n\t\t\t\telse if(s instanceof Selection.Rect)\n\t\t\t\t{\n\t\t\t\t\ttextArea.addToSelection(new Selection.Rect(\n\t\t\t\t\t\tstart,s.getEnd()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(retVal == 0)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(view,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t * Replaces text in the specified range with the replacement string.\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @param start The start offset\n\t * @param end The end offset\n\t * @return True if the operation was successful, false otherwise\n\t */\n\tpublic static boolean replace(View view, Buffer buffer, int start, int end)\n\t{\n\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\ttry\n\t\t{\n\t\t\tint retVal = 0;\n\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tretVal += _replace(view,buffer,start,end);\n\n\t\t\tif(retVal != 0)\n\t\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(view,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t * Replaces all occurances of the search string with the replacement\n\t * string.\n\t * @param view The view\n\t */\n\tpublic static boolean replaceAll(View view)\n\t{\n\t\tint fileCount = 0;\n\t\tint occurCount = 0;\n\n\t\trecord(view,\"replaceAll(view)\",true,true);\n\n\t\tview.showWaitCursor();\n\n\t\ttry\n\t\t{\n\t\t\tBuffer buffer = fileset.getFirstBuffer(view);\n\t\t\tdo\n\t\t\t{\n\t\t\t\t// Wait for buffer to finish loading\n\t\t\t\tif(buffer.isPerformingIO())\n\t\t\t\t\tVFSManager.waitForRequests();\n\n\t\t\t\t// Leave buffer in a consistent state if\n\t\t\t\t// an error occurs\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tbuffer.beginCompoundEdit();\n\t\t\t\t\tint retVal = _replace(view,buffer,\n\t\t\t\t\t\t0,buffer.getLength());\n\t\t\t\t\tif(retVal != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfileCount++;\n\t\t\t\t\t\toccurCount += retVal;\n\t\t\t\t\t\tfileset.matchFound(buffer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile((buffer = fileset.getNextBuffer(view,buffer)) != null);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(view,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\t/* Don't do this when playing a macro, cos it's annoying */\n\t\tif(!BeanShell.isScriptRunning())\n\t\t{\n\t\t\tObject[] args = { new Integer(occurCount),\n\t\t\t\tnew Integer(fileCount) };\n\t\t\tview.getStatus().setMessageAndClear(jEdit.getProperty(\n\t\t\t\t\"view.status.replace-all\",args));\n\t\t}\n\n\t\treturn (fileCount != 0);\n\t}\n\n\t/**\n\t * Loads search and replace state from the properties.\n\t */\n\tpublic static void load()\n\t{\n\t\tsearch = jEdit.getProperty(\"search.find.value\");\n\t\treplace = jEdit.getProperty(\"search.replace.value\");\n\t\tignoreCase = jEdit.getBooleanProperty(\"search.ignoreCase.toggle\");\n\t\tregexp = jEdit.getBooleanProperty(\"search.regexp.toggle\");\n\t\treverse = jEdit.getBooleanProperty(\"search.reverse.toggle\");\n\t\tbeanshell = jEdit.getBooleanProperty(\"search.beanshell.toggle\");\n\t\twrap = jEdit.getBooleanProperty(\"search.wrap.toggle\");\n\n\t\tString filesetCode = jEdit.getProperty(\"search.fileset.value\");\n\t\tif(filesetCode != null)\n\t\t{\n\t\t\tfileset = (SearchFileSet)BeanShell.eval(null,filesetCode,true);\n\t\t}\n\n\t\tif(fileset == null)\n\t\t\tfileset = new CurrentBufferSet();\n\t}\n\n\t/**\n\t * Saves search and replace state to the properties.\n\t */\n\tpublic static void save()\n\t{\n\t\tjEdit.setProperty(\"search.find.value\",search);\n\t\tjEdit.setProperty(\"search.replace.value\",replace);\n\t\tjEdit.setBooleanProperty(\"search.ignoreCase.toggle\",ignoreCase);\n\t\tjEdit.setBooleanProperty(\"search.regexp.toggle\",regexp);\n\t\tjEdit.setBooleanProperty(\"search.reverse.toggle\",reverse);\n\t\tjEdit.setBooleanProperty(\"search.beanshell.toggle\",beanshell);\n\t\tjEdit.setBooleanProperty(\"search.wrap.toggle\",wrap);\n\n\t\tString code = fileset.getCode();\n\t\tif(code != null)\n\t\t\tjEdit.setProperty(\"search.fileset.value\",code);\n\t\telse\n\t\t\tjEdit.unsetProperty(\"search.fileset.value\");\n\t}\n\n\t// private members\n\tprivate static String search;\n\tprivate static String replace;\n\tprivate static boolean regexp;\n\tprivate static boolean ignoreCase;\n\tprivate static boolean reverse;\n\tprivate static boolean beanshell;\n\tprivate static boolean wrap;\n\tprivate static SearchMatcher matcher;\n\tprivate static SearchFileSet fileset;\n\n\tprivate static void record(View view, String action,\n\t\tboolean replaceAction, boolean recordFileSet)\n\t{\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\tif(recorder != null)\n\t\t{\n\t\t\trecorder.record(\"SearchAndReplace.setSearchString(\\\"\"\n\t\t\t\t+ MiscUtilities.charsToEscapes(search) + \"\\\");\");\n\n\t\t\tif(replaceAction)\n\t\t\t{\n\t\t\t\trecorder.record(\"SearchAndReplace.setReplaceString(\\\"\"\n\t\t\t\t\t+ MiscUtilities.charsToEscapes(replace) + \"\\\");\");\n\t\t\t\trecorder.record(\"SearchAndReplace.setBeanShellReplace(\"\n\t\t\t\t\t+ beanshell + \");\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// only record this if doing a find next\n\t\t\t\trecorder.record(\"SearchAndReplace.setAutoWrapAround(\"\n\t\t\t\t\t+ wrap + \");\");\n\t\t\t\trecorder.record(\"SearchAndReplace.setReverseSearch(\"\n\t\t\t\t\t+ reverse + \");\");\n\t\t\t}\n\n\t\t\trecorder.record(\"SearchAndReplace.setIgnoreCase(\"\n\t\t\t\t+ ignoreCase + \");\");\n\t\t\trecorder.record(\"SearchAndReplace.setRegexp(\"\n\t\t\t\t+ regexp + \");\");\n\n\t\t\tif(recordFileSet)\n\t\t\t{\n\t\t\t\trecorder.record(\"SearchAndReplace.setSearchFileSet(\"\n\t\t\t\t\t+ fileset.getCode() + \");\");\n\t\t\t}\n\n\t\t\trecorder.record(\"SearchAndReplace.\" + action + \";\");\n\t\t}\n\t}\n\n\t/**\n\t * Replaces all occurances of the search string with the replacement\n\t * string.\n\t * @param view The view\n\t * @param buffer The buffer\n\t * @param start The start offset\n\t * @param end The end offset\n\t * @return True if the replace operation was successful, false\n\t * if no matches were found\n\t */\n\tprivate static int _replace(View view, Buffer buffer,\n\t\tint start, int end) throws Exception\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\treturn 0;\n\n\t\tSearchMatcher matcher = getSearchMatcher(false);\n\t\tif(matcher == null)\n\t\t\treturn 0;\n\n\t\tint occurCount = 0;\n\n\t\tSegment text = new Segment();\n\t\tint offset = start;\nloop:\t\tfor(;;)\n\t\t{\n\t\t\tbuffer.getText(offset,end - offset,text);\n\t\t\tint[] occur = matcher.nextMatch(text);\n\t\t\tif(occur == null)\n\t\t\t\tbreak loop;\n\t\t\tint _start = occur[0];\n\t\t\tint _length = occur[1] - occur[0];\n\n\t\t\tString found = new String(text.array,text.offset + _start,_length);\n\t\t\tString subst = matcher.substitute(found);\n\n\t\t\tif(subst != null)\n\t\t\t{\n\t\t\t\tbuffer.remove(offset + _start,_length);\n\t\t\t\tbuffer.insertString(offset + _start,subst,null);\n\t\t\t\toccurCount++;\n\t\t\t\toffset += _start + subst.length();\n\t\t\t\tend += (subst.length() - found.length());\n\t\t\t}\n\t\t\telse\n\t\t\t\toffset += _start + _length;\n\t\t}\n\n\t\treturn occurCount;", "functions": [{"function_name": "setSearchString", "code": "\tpublic static void setSearchString(String search)\n\t{\n\t\tif(search.equals(SearchAndReplace.search))\n\t\t\treturn;\n\n\t\tSearchAndReplace.search = search;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getSearchString", "code": "\tpublic static String getSearchString()\n\t{\n\t\treturn search;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReplaceString", "code": "\tpublic static void setReplaceString(String replace)\n\t{\n\t\tif(replace.equals(SearchAndReplace.replace))\n\t\t\treturn;\n\n\t\tSearchAndReplace.replace = replace;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getReplaceString", "code": "\tpublic static String getReplaceString()\n\t{\n\t\treturn replace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreCase", "code": "\tpublic static void setIgnoreCase(boolean ignoreCase)\n\t{\n\t\tif(ignoreCase == SearchAndReplace.ignoreCase)\n\t\t\treturn;\n\n\t\tSearchAndReplace.ignoreCase = ignoreCase;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getIgnoreCase", "code": "\tpublic static boolean getIgnoreCase()\n\t{\n\t\treturn ignoreCase;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRegexp", "code": "\tpublic static void setRegexp(boolean regexp)\n\t{\n\t\tif(regexp == SearchAndReplace.regexp)\n\t\t\treturn;\n\n\t\tSearchAndReplace.regexp = regexp;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getRegexp", "code": "\tpublic static boolean getRegexp()\n\t{\n\t\treturn regexp;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReverseSearch", "code": "\tpublic static void setReverseSearch(boolean reverse)\n\t{\n\t\tif(reverse == SearchAndReplace.reverse)\n\t\t\treturn;\n\n\t\tSearchAndReplace.reverse = reverse;\n\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getReverseSearch", "code": "\tpublic static boolean getReverseSearch()\n\t{\n\t\treturn reverse;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBeanShellReplace", "code": "\tpublic static void setBeanShellReplace(boolean beanshell)\n\t{\n\t\tif(beanshell == SearchAndReplace.beanshell)\n\t\t\treturn;\n\n\t\tSearchAndReplace.beanshell = beanshell;\n\t\tmatcher = null;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [3, 8], [4, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 3], [9, 4], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getBeanShellReplace", "code": "\tpublic static boolean getBeanShellReplace()\n\t{\n\t\treturn beanshell;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAutoWrapAround", "code": "\tpublic static void setAutoWrapAround(boolean wrap)\n\t{\n\t\tif(wrap == SearchAndReplace.wrap)\n\t\t\treturn;\n\n\t\tSearchAndReplace.wrap = wrap;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [3, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 3], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getAutoWrapAround", "code": "\tpublic static boolean getAutoWrapAround()\n\t{\n\t\treturn wrap;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSearchMatcher", "code": "\tpublic static void setSearchMatcher(SearchMatcher matcher)\n\t{\n\t\tSearchAndReplace.matcher = matcher;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSearchMatcher", "code": "\tpublic static SearchMatcher getSearchMatcher()\n\t\tthrows Exception\n\t{\n\t\treturn getSearchMatcher(true);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSearchMatcher", "code": "\tpublic static SearchMatcher getSearchMatcher(boolean reverseOK)\n\t\tthrows Exception\n\t{\n\t\treverseOK &= (fileset instanceof CurrentBufferSet);\n\n\t\tif(matcher != null && (reverseOK || !reverse))\n\t\t\treturn matcher;\n\n\t\tif(search == null || \"\".equals(search))\n\t\t\treturn null;\n\n\t\t// replace must not be null\n\t\tString replace = (SearchAndReplace.replace == null ? \"\" : SearchAndReplace.replace);\n\n\t\tString replaceMethod;\n\t\tif(beanshell && replace.length() != 0)\n\t\t{\n\t\t\treplaceMethod = BeanShell.cacheBlock(\"replace\",\"return (\"\n\t\t\t\t+ replace + \");\",false);\n\t\t}\n\t\telse\n\t\t\treplaceMethod = null;\n\n\t\tif(regexp)\n\t\t\tmatcher = new RESearchMatcher(search,replace,ignoreCase,\n\t\t\t\tbeanshell,replaceMethod);\n\t\telse\n\t\t{\n\t\t\tmatcher = new BoyerMooreSearchMatcher(search,replace,\n\t\t\t\tignoreCase,reverse && reverseOK,beanshell,\n\t\t\t\treplaceMethod);\n\t\t}\n\n\t\treturn matcher;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [6, 10], [6, 11], [7, 12], [7, 13], [0, 14], [2, 15], [3, 16], [9, 17], [5, 18], [10, 19], [11, 20], [11, 21], [13, 22], [13, 23], [14, 24], [2, 25], [15, 26], [16, 27], [3, 28], [17, 29], [17, 30], [18, 31], [18, 32], [20, 33], [21, 34], [23, 35], [25, 36], [28, 37], [32, 38], [36, 39], [37, 40], [37, 41], [37, 42], [41, 43], [41, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 6], [11, 6], [12, 7], [13, 7], [14, 0], [15, 2], [16, 3], [17, 9], [18, 5], [19, 10], [20, 11], [21, 11], [22, 13], [23, 13], [24, 14], [25, 2], [26, 15], [27, 16], [28, 3], [29, 17], [30, 17], [31, 18], [32, 18], [33, 20], [34, 21], [35, 23], [36, 25], [37, 28], [38, 32], [39, 36], [40, 37], [41, 37], [42, 37], [43, 41], [44, 41], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "setSearchFileSet", "code": "\tpublic static void setSearchFileSet(SearchFileSet fileset)\n\t{\n\t\tSearchAndReplace.fileset = fileset;\n\n\t\tEditBus.send(new SearchSettingsChanged(null));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSearchFileSet", "code": "\tpublic static SearchFileSet getSearchFileSet()\n\t{\n\t\treturn fileset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hyperSearch", "code": "\tpublic static boolean hyperSearch(View view)\n\t{\n\t\trecord(view,\"hyperSearch(view)\",false,true);\n\n\t\tview.getDockableWindowManager().addDockableWindow(\n\t\t\tHyperSearchResults.NAME);\n\t\tfinal HyperSearchResults results = (HyperSearchResults)\n\t\t\tview.getDockableWindowManager()\n\t\t\t.getDockableWindow(HyperSearchResults.NAME);\n\t\tresults.searchStarted();\n\n\t\ttry\n\t\t{\n\t\t\tVFSManager.runInWorkThread(new HyperSearchRequest(view,\n\t\t\t\tgetSearchMatcher(false),results));\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(view,\"searcherror\",args);\n\t\t\treturn false;", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "RETURN", "CALL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [0, 7], [0, 8], [4, 9], [4, 10], [4, 11], [5, 12], [1, 13], [7, 14], [8, 15], [8, 16], [8, 17], [9, 18], [4, 19], [10, 20], [4, 21], [13, 22], [2, 23], [19, 24], [10, 25], [20, 26], [22, 27], [23, 28], [25, 29], [11, 30], [27, 31], [20, 32], [25, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 0], [8, 0], [9, 4], [10, 4], [11, 4], [12, 5], [13, 1], [14, 7], [15, 8], [16, 8], [17, 8], [18, 9], [19, 4], [20, 10], [21, 4], [22, 13], [23, 2], [24, 19], [25, 10], [26, 20], [27, 22], [28, 23], [29, 25], [30, 11], [31, 27], [32, 20], [33, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "find", "code": "\tpublic static boolean find(View view)\n\t{\n\t\tboolean repeat = false;\n\t\tBuffer buffer = fileset.getNextBuffer(view,null);\n\n\t\ttry\n\t\t{\n\t\t\tSearchMatcher matcher = getSearchMatcher(true);\n\t\t\tif(matcher == null)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\trecord(view,\"find(view)\",false,true);\n\n\t\t\tview.showWaitCursor();\n\nloop:\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\twhile(buffer != null)\n\t\t\t\t{\n\t\t\t\t\t// Wait for the buffer to load\n\t\t\t\t\tif(!buffer.isLoaded())\n\t\t\t\t\t\tVFSManager.waitForRequests();\n\n\t\t\t\t\tint start;\n\n\t\t\t\t\tif(view.getBuffer() == buffer && !repeat)\n\t\t\t\t\t{\n\t\t\t\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\t\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\t\t\t\ttextArea.getCaretPosition());\n\t\t\t\t\t\tif(s == null)\n\t\t\t\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\t\t\t\telse if(reverse)\n\t\t\t\t\t\t\tstart = s.getStart();\n\t\t\t\t\t\telse \n\t\t\t\t\t\t\tstart = s.getEnd();\n\t\t\t\t\t}\n\t\t\t\t\telse if(reverse)\n\t\t\t\t\t\tstart = buffer.getLength();\n\t\t\t\t\telse\n\t\t\t\t\t\tstart = 0;\n\n\t\t\t\t\tif(find(view,buffer,start))\n\t\t\t\t\t\treturn true;\n\n\t\t\t\t\tbuffer = fileset.getNextBuffer(view,buffer);\n\t\t\t\t}\n\n\t\t\t\tif(repeat)\n\t\t\t\t{\n\t\t\t\t\t// no point showing this dialog box twice\n\t\t\t\t\tview.getToolkit().beep();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t/* Don't do this when playing a macro */\n\t\t\t\tif(BeanShell.isScriptRunning())\n\t\t\t\t\tbreak loop;\n\n\t\t\t\tboolean restart;\n\t\t\t\tif(wrap)\n\t\t\t\t{\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\"view.status.auto-wrap\"));\n\t\t\t\t\trestart = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tInteger[] args = { new Integer(reverse ? 1 : 0) };\n\t\t\t\t\tint result = GUIUtilities.confirm(view,\n\t\t\t\t\t\t\"keepsearching\",args,\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\trestart = (result == JOptionPane.YES_OPTION);\n\t\t\t\t}\n\n\t\t\t\tif(restart)\n\t\t\t\t{\n\t\t\t\t\t// start search from beginning\n\t\t\t\t\tbuffer = fileset.getFirstBuffer(view);\n\t\t\t\t\trepeat = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tbreak loop;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(view,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CATCH", "LOOP", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "IF", "VAR_DECL", "IF", "IF", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "CALL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [7, 12], [7, 13], [2, 14], [2, 15], [9, 16], [3, 17], [4, 18], [7, 19], [12, 20], [7, 21], [8, 22], [8, 23], [8, 24], [8, 25], [8, 26], [8, 27], [15, 28], [15, 29], [15, 30], [9, 31], [16, 32], [10, 33], [17, 34], [19, 35], [12, 36], [20, 37], [22, 38], [25, 39], [25, 40], [27, 41], [31, 42], [9, 43], [33, 44], [36, 45], [13, 46], [23, 47], [23, 48], [26, 49], [27, 50], [27, 51], [27, 52], [27, 53], [41, 54], [43, 55], [20, 56], [22, 57], [22, 58], [23, 59], [23, 60], [23, 61], [49, 62], [26, 63], [27, 64], [50, 65], [50, 66], [51, 67], [51, 68], [53, 69], [36, 70], [57, 71], [58, 72], [59, 73], [47, 74], [60, 75], [61, 76], [63, 77], [64, 78], [65, 79], [51, 80], [51, 81], [51, 82], [68, 83], [53, 84], [74, 85], [48, 86], [76, 87], [67, 88], [67, 89], [80, 90], [80, 91], [83, 92], [86, 93], [87, 94], [88, 95], [89, 96], [80, 97], [91, 98], [81, 99], [82, 100], [93, 101], [93, 102], [90, 103], [90, 104], [97, 105], [99, 106], [103, 107], [104, 108], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 7], [13, 7], [14, 2], [15, 2], [16, 9], [17, 3], [18, 4], [19, 7], [20, 12], [21, 7], [22, 8], [23, 8], [24, 8], [25, 8], [26, 8], [27, 8], [28, 15], [29, 15], [30, 15], [31, 9], [32, 16], [33, 10], [34, 17], [35, 19], [36, 12], [37, 20], [38, 22], [39, 25], [40, 25], [41, 27], [42, 31], [43, 9], [44, 33], [45, 36], [46, 13], [47, 23], [48, 23], [49, 26], [50, 27], [51, 27], [52, 27], [53, 27], [54, 41], [55, 43], [56, 20], [57, 22], [58, 22], [59, 23], [60, 23], [61, 23], [62, 49], [63, 26], [64, 27], [65, 50], [66, 50], [67, 51], [68, 51], [69, 53], [70, 36], [71, 57], [72, 58], [73, 59], [74, 47], [75, 60], [76, 61], [77, 63], [78, 64], [79, 65], [80, 51], [81, 51], [82, 51], [83, 68], [84, 53], [85, 74], [86, 48], [87, 76], [88, 67], [89, 67], [90, 80], [91, 80], [92, 83], [93, 86], [94, 87], [95, 88], [96, 89], [97, 80], [98, 91], [99, 81], [100, 82], [101, 93], [102, 93], [103, 90], [104, 90], [105, 97], [106, 99], [107, 103], [108, 104], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108]]}, {"function_name": "find", "code": "\tpublic static boolean find(final View view, final Buffer buffer, final int start)\n\t\tthrows Exception\n\t{\n\t\tSearchMatcher matcher = getSearchMatcher(true);\n\n\t\tSegment text = new Segment();\n\t\tif(reverse)\n\t\t\tbuffer.getText(0,start,text);\n\t\telse\n\t\t\tbuffer.getText(start,buffer.getLength() - start,text);\n\n\t\tint[] match = matcher.nextMatch(text);\n\t\tif(match != null)\n\t\t{\n\t\t\tfileset.matchFound(buffer);\n\t\t\tview.setBuffer(buffer);\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\tint matchStart = (reverse ? 0 : start);\n\t\t\ttextArea.setSelection(new Selection.Range(\n\t\t\t\tmatchStart + match[0],\n\t\t\t\tmatchStart + match[1]));\n\t\t\ttextArea.moveCaretPosition(matchStart + match[1]);\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [9, 11], [1, 12], [1, 13], [1, 14], [10, 15], [2, 16], [3, 17], [3, 18], [4, 19], [5, 20], [12, 21], [1, 22], [1, 23], [1, 24], [1, 25], [17, 26], [18, 27], [20, 28], [22, 29], [23, 30], [13, 31], [14, 32], [26, 33], [30, 34], [30, 35], [31, 36], [29, 37], [34, 38], [35, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 9], [12, 1], [13, 1], [14, 1], [15, 10], [16, 2], [17, 3], [18, 3], [19, 4], [20, 5], [21, 12], [22, 1], [23, 1], [24, 1], [25, 1], [26, 17], [27, 18], [28, 20], [29, 22], [30, 23], [31, 13], [32, 14], [33, 26], [34, 30], [35, 30], [36, 31], [37, 29], [38, 34], [39, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "replace", "code": "\tpublic static boolean replace(View view)\n\t{\n\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\tSelection[] selection = textArea.getSelection();\n\t\tif(selection.length == 0)\n\t\t{\n\t\t\tview.getToolkit().beep();\n\t\t\treturn false;\n\t\t}\n\n\t\trecord(view,\"replace(view)\",true,false);\n\n\t\tBuffer buffer = view.getBuffer();\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tint retVal = 0;\n\n\t\t\tfor(int i = 0; i < selection.length; i++)\n\t\t\t{\n\t\t\t\tSelection s = selection[i];\n\n\t\t\t\t/* if an occurence occurs at the\n\t\t\t\tbeginning of the selection, the\n\t\t\t\tselection start will get moved.\n\t\t\t\tthis sucks, so we hack to avoid it. */\n\t\t\t\tint start = s.getStart();\n\n\t\t\t\tretVal += _replace(view,buffer,\n\t\t\t\t\ts.getStart(),s.getEnd());\n\n\t\t\t\t// this has no effect if the selection\n\t\t\t\t// no longer exists\n\t\t\t\ttextArea.removeFromSelection(s);\n\t\t\t\tif(s instanceof Selection.Range)\n\t\t\t\t{\n\t\t\t\t\ttextArea.addToSelection(new Selection.Range(\n\t\t\t\t\t\tstart,s.getEnd()));\n\t\t\t\t}\n\t\t\t\telse if(s instanceof Selection.Rect)\n\t\t\t\t{\n\t\t\t\t\ttextArea.addToSelection(new Selection.Rect(\n\t\t\t\t\t\tstart,s.getEnd()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(retVal == 0)\n\t\t\t{\n\t\t\t\tview.getToolkit().beep();\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(view,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CATCH", "RETURN", "IF", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [0, 14], [4, 15], [2, 16], [9, 17], [9, 18], [10, 19], [11, 20], [12, 21], [2, 22], [3, 23], [14, 24], [14, 25], [14, 26], [4, 27], [15, 28], [5, 29], [6, 30], [9, 31], [17, 32], [9, 33], [11, 34], [20, 35], [12, 36], [12, 37], [12, 38], [13, 39], [27, 40], [4, 41], [31, 42], [17, 43], [32, 44], [34, 45], [11, 46], [36, 47], [36, 48], [12, 49], [12, 50], [12, 51], [41, 52], [43, 53], [18, 54], [46, 55], [47, 56], [50, 57], [37, 58], [32, 59], [36, 60], [57, 61], [57, 62], [43, 63], [47, 64], [60, 65], [64, 66], [65, 67], [66, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 0], [15, 4], [16, 2], [17, 9], [18, 9], [19, 10], [20, 11], [21, 12], [22, 2], [23, 3], [24, 14], [25, 14], [26, 14], [27, 4], [28, 15], [29, 5], [30, 6], [31, 9], [32, 17], [33, 9], [34, 11], [35, 20], [36, 12], [37, 12], [38, 12], [39, 13], [40, 27], [41, 4], [42, 31], [43, 17], [44, 32], [45, 34], [46, 11], [47, 36], [48, 36], [49, 12], [50, 12], [51, 12], [52, 41], [53, 43], [54, 18], [55, 46], [56, 47], [57, 50], [58, 37], [59, 32], [60, 36], [61, 57], [62, 57], [63, 43], [64, 47], [65, 60], [66, 64], [67, 65], [68, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "replace", "code": "\tpublic static boolean replace(View view, Buffer buffer, int start, int end)\n\t{\n\t\tJEditTextArea textArea = view.getTextArea();\n\n\t\ttry\n\t\t{\n\t\t\tint retVal = 0;\n\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\tretVal += _replace(view,buffer,start,end);\n\n\t\t\tif(retVal != 0)\n\t\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(view,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [9, 13], [9, 14], [10, 15], [10, 16], [2, 17], [2, 18], [3, 19], [9, 20], [13, 21], [9, 22], [15, 23], [16, 24], [17, 25], [11, 26], [20, 27], [13, 28], [21, 29], [28, 30], [14, 31], [21, 32], [28, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 9], [14, 9], [15, 10], [16, 10], [17, 2], [18, 2], [19, 3], [20, 9], [21, 13], [22, 9], [23, 15], [24, 16], [25, 17], [26, 11], [27, 20], [28, 13], [29, 21], [30, 28], [31, 14], [32, 21], [33, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "replaceAll", "code": "\tpublic static boolean replaceAll(View view)\n\t{\n\t\tint fileCount = 0;\n\t\tint occurCount = 0;\n\n\t\trecord(view,\"replaceAll(view)\",true,true);\n\n\t\tview.showWaitCursor();\n\n\t\ttry\n\t\t{\n\t\t\tBuffer buffer = fileset.getFirstBuffer(view);\n\t\t\tdo\n\t\t\t{\n\t\t\t\t// Wait for buffer to finish loading\n\t\t\t\tif(buffer.isPerformingIO())\n\t\t\t\t\tVFSManager.waitForRequests();\n\n\t\t\t\t// Leave buffer in a consistent state if\n\t\t\t\t// an error occurs\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tbuffer.beginCompoundEdit();\n\t\t\t\t\tint retVal = _replace(view,buffer,\n\t\t\t\t\t\t0,buffer.getLength());\n\t\t\t\t\tif(retVal != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfileCount++;\n\t\t\t\t\t\toccurCount += retVal;\n\t\t\t\t\t\tfileset.matchFound(buffer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile((buffer = fileset.getNextBuffer(view,buffer)) != null);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,SearchAndReplace.class,e);\n\t\t\tObject[] args = { e.getMessage() };\n\t\t\tif(args[0] == null)\n\t\t\t\targs[0] = e.toString();\n\t\t\tGUIUtilities.error(view,\"searcherror\",args);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tview.hideWaitCursor();\n\t\t}\n\n\t\t/* Don't do this when playing a macro, cos it's annoying */\n\t\tif(!BeanShell.isScriptRunning())\n\t\t{\n\t\t\tObject[] args = { new Integer(occurCount),\n\t\t\t\tnew Integer(fileCount) };\n\t\t\tview.getStatus().setMessageAndClear(jEdit.getProperty(\n\t\t\t\t\"view.status.replace-all\",args));\n\t\t}\n\n\t\treturn (fileCount != 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CATCH", "LOOP", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "TRY", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [3, 10], [3, 11], [0, 12], [0, 13], [7, 14], [2, 15], [3, 16], [9, 17], [9, 18], [10, 19], [13, 20], [13, 21], [13, 22], [4, 23], [5, 24], [2, 25], [9, 26], [17, 27], [9, 28], [10, 29], [10, 30], [19, 31], [19, 32], [11, 33], [25, 34], [26, 35], [17, 36], [27, 37], [29, 38], [29, 39], [30, 40], [32, 41], [34, 42], [15, 43], [15, 44], [36, 45], [18, 46], [29, 47], [38, 48], [29, 49], [30, 50], [42, 51], [27, 52], [48, 53], [39, 54], [36, 55], [38, 56], [38, 57], [54, 58], [54, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 3], [11, 3], [12, 0], [13, 0], [14, 7], [15, 2], [16, 3], [17, 9], [18, 9], [19, 10], [20, 13], [21, 13], [22, 13], [23, 4], [24, 5], [25, 2], [26, 9], [27, 17], [28, 9], [29, 10], [30, 10], [31, 19], [32, 19], [33, 11], [34, 25], [35, 26], [36, 17], [37, 27], [38, 29], [39, 29], [40, 30], [41, 32], [42, 34], [43, 15], [44, 15], [45, 36], [46, 18], [47, 29], [48, 38], [49, 29], [50, 30], [51, 42], [52, 27], [53, 48], [54, 39], [55, 36], [56, 38], [57, 38], [58, 54], [59, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "load", "code": "\tpublic static void load()\n\t{\n\t\tsearch = jEdit.getProperty(\"search.find.value\");\n\t\treplace = jEdit.getProperty(\"search.replace.value\");\n\t\tignoreCase = jEdit.getBooleanProperty(\"search.ignoreCase.toggle\");\n\t\tregexp = jEdit.getBooleanProperty(\"search.regexp.toggle\");\n\t\treverse = jEdit.getBooleanProperty(\"search.reverse.toggle\");\n\t\tbeanshell = jEdit.getBooleanProperty(\"search.beanshell.toggle\");\n\t\twrap = jEdit.getBooleanProperty(\"search.wrap.toggle\");\n\n\t\tString filesetCode = jEdit.getProperty(\"search.fileset.value\");\n\t\tif(filesetCode != null)\n\t\t{\n\t\t\tfileset = (SearchFileSet)BeanShell.eval(null,filesetCode,true);\n\t\t}\n\n\t\tif(fileset == null)\n\t\t\tfileset = new CurrentBufferSet();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [4, 14], [5, 15], [3, 16], [6, 17], [7, 18], [8, 19], [9, 20], [10, 21], [11, 22], [12, 23], [13, 24], [2, 25], [16, 26], [17, 27], [18, 28], [19, 29], [20, 30], [21, 31], [22, 32], [23, 33], [25, 34], [34, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 4], [15, 5], [16, 3], [17, 6], [18, 7], [19, 8], [20, 9], [21, 10], [22, 11], [23, 12], [24, 13], [25, 2], [26, 16], [27, 17], [28, 18], [29, 19], [30, 20], [31, 21], [32, 22], [33, 23], [34, 25], [35, 34], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "save", "code": "\tpublic static void save()\n\t{\n\t\tjEdit.setProperty(\"search.find.value\",search);\n\t\tjEdit.setProperty(\"search.replace.value\",replace);\n\t\tjEdit.setBooleanProperty(\"search.ignoreCase.toggle\",ignoreCase);\n\t\tjEdit.setBooleanProperty(\"search.regexp.toggle\",regexp);\n\t\tjEdit.setBooleanProperty(\"search.reverse.toggle\",reverse);\n\t\tjEdit.setBooleanProperty(\"search.beanshell.toggle\",beanshell);\n\t\tjEdit.setBooleanProperty(\"search.wrap.toggle\",wrap);\n\n\t\tString code = fileset.getCode();\n\t\tif(code != null)\n\t\t\tjEdit.setProperty(\"search.fileset.value\",code);\n\t\telse\n\t\t\tjEdit.unsetProperty(\"search.fileset.value\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [1, 12], [3, 13], [2, 14], [4, 15], [5, 16], [6, 17], [7, 18], [8, 19], [9, 20], [10, 21], [11, 22], [12, 23], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 1], [13, 3], [14, 2], [15, 4], [16, 5], [17, 6], [18, 7], [19, 8], [20, 9], [21, 10], [22, 11], [23, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "record", "code": "\tprivate static void record(View view, String action,\n\t\tboolean replaceAction, boolean recordFileSet)\n\t{\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\tif(recorder != null)\n\t\t{\n\t\t\trecorder.record(\"SearchAndReplace.setSearchString(\\\"\"\n\t\t\t\t+ MiscUtilities.charsToEscapes(search) + \"\\\");\");\n\n\t\t\tif(replaceAction)\n\t\t\t{\n\t\t\t\trecorder.record(\"SearchAndReplace.setReplaceString(\\\"\"\n\t\t\t\t\t+ MiscUtilities.charsToEscapes(replace) + \"\\\");\");\n\t\t\t\trecorder.record(\"SearchAndReplace.setBeanShellReplace(\"\n\t\t\t\t\t+ beanshell + \");\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// only record this if doing a find next\n\t\t\t\trecorder.record(\"SearchAndReplace.setAutoWrapAround(\"\n\t\t\t\t\t+ wrap + \");\");\n\t\t\t\trecorder.record(\"SearchAndReplace.setReverseSearch(\"\n\t\t\t\t\t+ reverse + \");\");\n\t\t\t}\n\n\t\t\trecorder.record(\"SearchAndReplace.setIgnoreCase(\"\n\t\t\t\t+ ignoreCase + \");\");\n\t\t\trecorder.record(\"SearchAndReplace.setRegexp(\"\n\t\t\t\t+ regexp + \");\");\n\n\t\t\tif(recordFileSet)\n\t\t\t{\n\t\t\t\trecorder.record(\"SearchAndReplace.setSearchFileSet(\"\n\t\t\t\t\t+ fileset.getCode() + \");\");\n\t\t\t}\n\n\t\t\trecorder.record(\"SearchAndReplace.\" + action + \";\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [7, 10], [2, 11], [1, 12], [1, 13], [1, 14], [1, 15], [12, 16], [13, 17], [14, 18], [15, 19], [16, 20], [16, 21], [8, 22], [17, 23], [17, 24], [18, 25], [18, 26], [9, 27], [9, 28], [9, 29], [9, 30], [19, 31], [19, 32], [21, 33], [22, 34], [24, 35], [26, 36], [27, 37], [28, 38], [29, 39], [30, 40], [32, 41], [32, 42], [34, 43], [34, 44], [37, 45], [37, 46], [38, 47], [38, 48], [39, 49], [39, 50], [40, 51], [40, 52], [44, 53], [44, 54], [46, 55], [48, 56], [50, 57], [52, 58], [52, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 7], [11, 2], [12, 1], [13, 1], [14, 1], [15, 1], [16, 12], [17, 13], [18, 14], [19, 15], [20, 16], [21, 16], [22, 8], [23, 17], [24, 17], [25, 18], [26, 18], [27, 9], [28, 9], [29, 9], [30, 9], [31, 19], [32, 19], [33, 21], [34, 22], [35, 24], [36, 26], [37, 27], [38, 28], [39, 29], [40, 30], [41, 32], [42, 32], [43, 34], [44, 34], [45, 37], [46, 37], [47, 38], [48, 38], [49, 39], [50, 39], [51, 40], [52, 40], [53, 44], [54, 44], [55, 46], [56, 48], [57, 50], [58, 52], [59, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}, {"function_name": "_replace", "code": "\tprivate static int _replace(View view, Buffer buffer,\n\t\tint start, int end) throws Exception\n\t{\n\t\tif(!buffer.isEditable())\n\t\t\treturn 0;\n\n\t\tSearchMatcher matcher = getSearchMatcher(false);\n\t\tif(matcher == null)\n\t\t\treturn 0;\n\n\t\tint occurCount = 0;\n\n\t\tSegment text = new Segment();\n\t\tint offset = start;\nloop:\t\tfor(;;)\n\t\t{\n\t\t\tbuffer.getText(offset,end - offset,text);\n\t\t\tint[] occur = matcher.nextMatch(text);\n\t\t\tif(occur == null)\n\t\t\t\tbreak loop;\n\t\t\tint _start = occur[0];\n\t\t\tint _length = occur[1] - occur[0];\n\n\t\t\tString found = new String(text.array,text.offset + _start,_length);\n\t\t\tString subst = matcher.substitute(found);\n\n\t\t\tif(subst != null)\n\t\t\t{\n\t\t\t\tbuffer.remove(offset + _start,_length);\n\t\t\t\tbuffer.insertString(offset + _start,subst,null);\n\t\t\t\toccurCount++;\n\t\t\t\toffset += _start + subst.length();\n\t\t\t\tend += (subst.length() - found.length());\n\t\t\t}\n\t\t\telse\n\t\t\t\toffset += _start + _length;\n\t\t}\n\n\t\treturn occurCount;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "RETURN", "BINARY_OP", "RETURN", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [6, 13], [6, 14], [8, 15], [8, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [4, 24], [5, 25], [13, 26], [14, 27], [7, 28], [15, 29], [17, 30], [22, 31], [22, 32], [2, 33], [28, 34], [17, 35], [30, 36], [18, 37], [19, 38], [20, 39], [32, 40], [23, 41], [33, 42], [35, 43], [17, 44], [17, 45], [17, 46], [17, 47], [38, 48], [44, 49], [45, 50], [46, 51], [46, 52], [47, 53], [21, 54], [49, 55], [49, 56], [50, 57], [39, 58], [39, 59], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 6], [14, 6], [15, 8], [16, 8], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 4], [25, 5], [26, 13], [27, 14], [28, 7], [29, 15], [30, 17], [31, 22], [32, 22], [33, 2], [34, 28], [35, 17], [36, 30], [37, 18], [38, 19], [39, 20], [40, 32], [41, 23], [42, 33], [43, 35], [44, 17], [45, 17], [46, 17], [47, 17], [48, 38], [49, 44], [50, 45], [51, 46], [52, 46], [53, 47], [54, 21], [55, 49], [56, 49], [57, 50], [58, 39], [59, 39], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59]]}], "label": 1}
{"sample_id": "xalan-2.4-6548", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/runtime/output/StreamHTMLOutput.java", "language": "java", "name": "org.apache.xalan.xsltc.runtime.output.StreamHTMLOutput", "code": "public class StreamHTMLOutput extends StreamOutput {\n\n    private static final String HREF_STR = \"href\";\n    private static final String CITE_STR = \"cite\";\n    private static final String SRC_STR  = \"src\";\n\n    private static final Hashtable _emptyElements = new Hashtable();\n    private static final String[] tags = { \"area\", \"base\", \"basefont\", \"br\",\n\t\t\t\t\t   \"col\", \"frame\", \"hr\", \"img\", \"input\",\n\t\t\t\t\t   \"isindex\", \"link\", \"meta\", \"param\" };\n    static {\n        for (int i = 0; i < tags.length; i++) {\n            _emptyElements.put(tags[i], \"\");\n\t}\n    }\n\n    private boolean _headTagOpen = false;\n    private boolean _inStyleScript = false;\n    private String  _mediaType     = \"text/html\";\n\n    public StreamHTMLOutput(StreamOutput output) {\n\tsuper(output);\n    }\n\n    public StreamHTMLOutput(Writer writer, String encoding) {\n\tsuper(writer, encoding);\n    }\n\n    public StreamHTMLOutput(OutputStream out, String encoding) \n\tthrows IOException\n    {\n\tsuper(out, encoding);\n    }\n\n    public void startDocument() throws TransletException { \n    }\n\n    public void endDocument() throws TransletException { \n\toutputBuffer();\n    }\n\n    public void startElement(String elementName) throws TransletException { \n\tif (_startTagOpen) {\n\t    closeStartTag();\n\t}\n\n\tif (_firstElement) {\n\t    if (_doctypeSystem != null || _doctypePublic != null) {\n\t\tappendDTD(elementName);\n\t    }\n\t    _firstElement = false;\n\t}\n\n\tif (_indent) {\n\t    if (!_emptyElements.containsKey(elementName.toLowerCase())) {\n\t\tindent(_lineFeedNextStartTag);\n\t\t_lineFeedNextStartTag = true;\n\t\t_indentNextEndTag = false;\n\t    }\n\t    _indentLevel++;\n\t}\n\n\t_buffer.append('<').append(elementName);\n\t_startTagOpen = true;\n\t_indentNextEndTag = false;\n\n\tif (elementName.equalsIgnoreCase(\"head\")) {\n\t    _headTagOpen = true;\n\t}\n\telse if (elementName.equalsIgnoreCase(\"style\") || \n\t\t elementName.equalsIgnoreCase(\"script\")) \n\t{\n\t    _inStyleScript = true;\n\t}\n    }\n\n    public void endElement(String elementName) \n\tthrows TransletException \n    { \n\tif (_inStyleScript && \n\t    (elementName.equalsIgnoreCase(\"style\") || \n\t     elementName.equalsIgnoreCase(\"script\"))) \n\t{\n\t    _inStyleScript = false;\n\t}\n\n\tif (_startTagOpen) {\n\t    appendAttributes();\n\t    if (_emptyElements.containsKey(elementName.toLowerCase())) {\n\t\t_buffer.append('>');\n\t    }\n\t    else {\n\t\tcloseStartTag();\n\t\t_buffer.append(\"</\").append(elementName).append('>');\n\t    }\n\t    _startTagOpen = false;\n\n\t    if (_indent) {\n\t\t_indentLevel--;\n\t\t_indentNextEndTag = true;\n\t    }\n\t}\n\telse {\n\t    if (_indent) {\n\t\t_indentLevel--;\n\n\t\tif (_indentNextEndTag) {\n\t\t    indent(_indentNextEndTag);\n\t\t    _indentNextEndTag = true;\n\t\t    _lineFeedNextStartTag = true;\n\t\t}\n\t    }\n\t    _buffer.append(\"</\").append(elementName).append('>');\n\t    _indentNextEndTag = true;\n\t}\n    }\n\n    public void characters(String characters)\n\tthrows TransletException \n    { \n\tif (_startTagOpen) {\n\t    closeStartTag();\n\t}\n\n\tif (_escaping && !_inStyleScript) {\n\t    escapeCharacters(characters.toCharArray(), 0, characters.length());\n\t}\n\telse {\n\t    _buffer.append(characters);\n\t}\n    }\n\n    public void characters(char[] characters, int offset, int length)\n\tthrows TransletException \n    { \n\tif (_startTagOpen) {\n\t    closeStartTag();\n\t}\n\n\tif (_escaping && !_inStyleScript) {\n\t    escapeCharacters(characters, offset, length);\n\t}\n\telse {\n\t    _buffer.append(characters, offset, length);\n\t}\n    }\n\n    public void attribute(String name, String value)\n\tthrows TransletException \n    { \n\tif (_startTagOpen) {\n\t    int k;\n\t    Attribute attr;\n\n\t    if (name.equalsIgnoreCase(HREF_STR) || \n\t\tname.equalsIgnoreCase(SRC_STR)  || \n\t\tname.equals(CITE_STR)) \n\t    {\n\t\tattr = new Attribute(name, escapeURL(value));\n\t    }\n\t    else {\n\t\tattr = new Attribute(name, escapeNonURL(value));\n\t    }\n\n\t    if ((k = _attributes.indexOf(attr)) >= 0) {\n\t\t_attributes.setElementAt(attr, k);\n\t    }\n\t    else {\n\t\t_attributes.add(attr);\n\t    }\n\t}\n    }\n\n    public void comment(String comment) throws TransletException { \n\tif (_startTagOpen) {\n\t    closeStartTag();\n\t}\n\tappendComment(comment);\n    }\n\n    public void processingInstruction(String target, String data)\n\tthrows TransletException \n    { \n\tif (_startTagOpen) {\n\t    closeStartTag();\n\t}\n\n\tif (_firstElement) {\n\t    if (_doctypeSystem != null || _doctypePublic != null) {\n\t\tappendDTD(\"html\");\n\t    }\n\t    _firstElement = false;\n\t}\n\n\t_buffer.append(\"<?\").append(target).append(' ')\n\t    .append(data).append('>');\n    }\n\n    public boolean setEscaping(boolean escape) throws TransletException \n    { \n\tfinal boolean temp = _escaping;\n\t_escaping = escape;\n\treturn temp; \n    }\n\n    public void close() { \n\ttry {\n\t    _writer.close();\n\t}\n\tcatch (Exception e) {\n\t}\n    }\n\n    public void namespace(String prefix, String uri) throws TransletException \n    { \n    }\n\n    public void setCdataElements(Hashtable elements) { \n    }\n\n    public void setType(int type) { \n    }\n\n    /**\n     * Set the output media type - only relevant for HTML output\n     */\n    public void setMediaType(String mediaType) {\n\t_mediaType = mediaType;\n    }\n\n    /**\n     * Escape non ASCII characters (> u007F) as &#XXX; entities.\n     */\n    private String escapeNonURL(String base) {\n\tfinal int length = base.length();\n\tfinal StringBuffer result = new StringBuffer();\n\n        for (int i = 0; i < length; i++){\n\t    final char ch = base.charAt(i);\n\n\t    if ((ch >= '\\u007F' && ch < '\\u00A0') ||\n\t\t(_is8859Encoded && ch > '\\u00FF'))\n\t    {\n\t        result.append(CHAR_ESC_START)\n\t\t      .append(Integer.toString((int) ch))\n\t\t      .append(';');\n\t    }\n\t    else {\n\t        result.append(ch); \n\t    } \n  \t}\n\treturn result.toString();\n    }\n\n    /**\n     * This method escapes special characters used in HTML attribute values\n     */\n    private String escapeURL(String base) {\n\tfinal char[] chs = base.toCharArray();\n\tfinal StringBuffer result = new StringBuffer();\n\n\tfinal int length = chs.length;\n        for (int i = 0; i < length; i++) {\n\t    final char ch = chs[i];\n\n\t    if (ch <= 0x20) {\n\t\tresult.append('%').append(makeHHString(ch));\n\t    } \n\t    else if (ch > '\\u007F') {\n\t\tresult.append('%')\n\t\t      .append(makeHHString((ch >> 6) | 0xC0))\n\t\t      .append('%')\n\t\t      .append(makeHHString((ch & 0x3F) | 0x80));\n\t    }\n\t    else {\n\t        switch (ch) {\n\t\t    case '\\u007F' :\n\t\t    case '\\u007B' :\n\t\t    case '\\u007D' :\n\t\t    case '\\u007C' :\n\t\t    case '\\\\'     :\n\t\t    case '\\t'     :\n\t\t    case '\\u005E' :\n\t\t    case '\\u007E' :\n\t\t    case '\\u005B' :\n\t\t    case '\\u005D' :\n\t\t    case '\\u0060' :\n\t\t    case '\\u0020' :\n\t\t        result.append('%')\n\t\t              .append(Integer.toHexString((int) ch));\n\t\t        break;\n\t\t    case '\"':\n\t\t\tresult.append(\"%22\");\n\t\t\tbreak;\n\t\t    default:\t\n\t\t        result.append(ch); \n\t\t\tbreak;\n\t        }\n\t    } \n  \t}\n\treturn result.toString();\n    }\n\n    private String makeHHString(int i) {\n\tfinal String s = Integer.toHexString(i).toUpperCase();\n\treturn (s.length() == 1) ? \"0\" + s : s;\n    }\n\n    /**\n     * Emit HTML meta info\n     */\n    private void appendHeader() {\n\t_buffer.append(\"<meta http-equiv=\\\"Content-Type\\\" content=\\\"\")\n\t       .append(_mediaType).append(\"; charset=\")\n\t       .append(_encoding).append(\"\\\">\");\n    }\n\n    protected void closeStartTag() throws TransletException {\n\tsuper.closeStartTag();\n\n\tif (_headTagOpen) {\n\t    appendHeader();\n\t    _headTagOpen = false;\n\t}\n    } \n\n    /**\n     * This method escapes special characters used in text nodes\n     */\n    protected void escapeCharacters(char[] ch, int off, int len) {\n\tint limit = off + len;\n\tint offset = off;\n\n\tif (limit > ch.length) {\n\t    limit = ch.length;\n\t}\n\n\tfor (int i = off; i < limit; i++) {\n\t    final char current = ch[i];\n\n\t    switch (current) {\n\t    case '&':\n\t\t_buffer.append(ch, offset, i - offset).append(AMP);\n\t\toffset = i + 1;\n\t\tbreak;\n\t    case '<':\n\t\t_buffer.append(ch, offset, i - offset).append(LT);\n\t\toffset = i + 1;\n\t\tbreak;\n\t    case '>':\n\t\t_buffer.append(ch, offset, i - offset).append(GT);\n\t\toffset = i + 1;\n\t\tbreak;\n\t    case '\\u00A0':\n\t\t_buffer.append(ch, offset, i - offset).append(NBSP);\n\t\toffset = i + 1;\n\t\tbreak;\n\t    default:\n\t\tif ((current >= '\\u007F' && current < '\\u00A0') ||\n\t\t    (_is8859Encoded && current > '\\u00FF'))\n\t\t{\n\t\t    _buffer.append(ch, offset, i - offset)\n\t\t\t   .append(CHAR_ESC_START)\n\t\t\t   .append(Integer.toString((int)ch[i]))\n\t\t\t   .append(';');\n\t\t    offset = i + 1;\n\t\t}\n\t    }\n\t}\n\tif (offset < limit) {\n\t    _buffer.append(ch, offset, limit - offset);", "functions": [{"function_name": "startDocument", "code": "    public void startDocument() throws TransletException { ", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endDocument", "code": "    public void endDocument() throws TransletException { \n\toutputBuffer();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startElement", "code": "    public void startElement(String elementName) throws TransletException { \n\tif (_startTagOpen) {\n\t    closeStartTag();\n\t}\n\n\tif (_firstElement) {\n\t    if (_doctypeSystem != null || _doctypePublic != null) {\n\t\tappendDTD(elementName);\n\t    }\n\t    _firstElement = false;\n\t}\n\n\tif (_indent) {\n\t    if (!_emptyElements.containsKey(elementName.toLowerCase())) {\n\t\tindent(_lineFeedNextStartTag);\n\t\t_lineFeedNextStartTag = true;\n\t\t_indentNextEndTag = false;\n\t    }\n\t    _indentLevel++;\n\t}\n\n\t_buffer.append('<').append(elementName);\n\t_startTagOpen = true;\n\t_indentNextEndTag = false;\n\n\tif (elementName.equalsIgnoreCase(\"head\")) {\n\t    _headTagOpen = true;\n\t}\n\telse if (elementName.equalsIgnoreCase(\"style\") || \n\t\t elementName.equalsIgnoreCase(\"script\")) \n\t{\n\t    _inStyleScript = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "IF", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [0, 9], [0, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [10, 16], [2, 17], [3, 18], [11, 19], [11, 20], [1, 21], [17, 22], [3, 23], [18, 24], [4, 25], [6, 26], [19, 27], [20, 28], [21, 29], [22, 30], [23, 31], [24, 32], [24, 33], [26, 34], [17, 35], [17, 36], [17, 37], [18, 38], [32, 39], [33, 40], [35, 41], [36, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 0], [10, 0], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 10], [17, 2], [18, 3], [19, 11], [20, 11], [21, 1], [22, 17], [23, 3], [24, 18], [25, 4], [26, 6], [27, 19], [28, 20], [29, 21], [30, 22], [31, 23], [32, 24], [33, 24], [34, 26], [35, 17], [36, 17], [37, 17], [38, 18], [39, 32], [40, 33], [41, 35], [42, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "endElement", "code": "    public void endElement(String elementName) \n\tthrows TransletException \n    { \n\tif (_inStyleScript && \n\t    (elementName.equalsIgnoreCase(\"style\") || \n\t     elementName.equalsIgnoreCase(\"script\"))) \n\t{\n\t    _inStyleScript = false;\n\t}\n\n\tif (_startTagOpen) {\n\t    appendAttributes();\n\t    if (_emptyElements.containsKey(elementName.toLowerCase())) {\n\t\t_buffer.append('>');\n\t    }\n\t    else {\n\t\tcloseStartTag();\n\t\t_buffer.append(\"</\").append(elementName).append('>');\n\t    }\n\t    _startTagOpen = false;\n\n\t    if (_indent) {\n\t\t_indentLevel--;\n\t\t_indentNextEndTag = true;\n\t    }\n\t}\n\telse {\n\t    if (_indent) {\n\t\t_indentLevel--;\n\n\t\tif (_indentNextEndTag) {\n\t\t    indent(_indentNextEndTag);\n\t\t    _indentNextEndTag = true;\n\t\t    _lineFeedNextStartTag = true;\n\t\t}\n\t    }\n\t    _buffer.append(\"</\").append(elementName).append('>');\n\t    _indentNextEndTag = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "IF", "IF", "IF", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [1, 6], [1, 7], [4, 8], [1, 9], [1, 10], [1, 11], [7, 12], [1, 13], [2, 14], [8, 15], [8, 16], [9, 17], [10, 18], [10, 19], [10, 20], [5, 21], [11, 22], [12, 23], [14, 24], [15, 25], [16, 26], [19, 27], [6, 28], [7, 29], [7, 30], [7, 31], [28, 32], [29, 33], [29, 34], [29, 35], [31, 36], [21, 37], [21, 38], [21, 39], [34, 40], [37, 41], [38, 42], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [6, 1], [7, 1], [8, 4], [9, 1], [10, 1], [11, 1], [12, 7], [13, 1], [14, 2], [15, 8], [16, 8], [17, 9], [18, 10], [19, 10], [20, 10], [21, 5], [22, 11], [23, 12], [24, 14], [25, 15], [26, 16], [27, 19], [28, 6], [29, 7], [30, 7], [31, 7], [32, 28], [33, 29], [34, 29], [35, 29], [36, 31], [37, 21], [38, 21], [39, 21], [40, 34], [41, 37], [42, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "characters", "code": "    public void characters(String characters)\n\tthrows TransletException \n    { \n\tif (_startTagOpen) {\n\t    closeStartTag();\n\t}\n\n\tif (_escaping && !_inStyleScript) {\n\t    escapeCharacters(characters.toCharArray(), 0, characters.length());\n\t}\n\telse {\n\t    _buffer.append(characters);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [6, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 6], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "characters", "code": "    public void characters(char[] characters, int offset, int length)\n\tthrows TransletException \n    { \n\tif (_startTagOpen) {\n\t    closeStartTag();\n\t}\n\n\tif (_escaping && !_inStyleScript) {\n\t    escapeCharacters(characters, offset, length);\n\t}\n\telse {\n\t    _buffer.append(characters, offset, length);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "attribute", "code": "    public void attribute(String name, String value)\n\tthrows TransletException \n    { \n\tif (_startTagOpen) {\n\t    int k;\n\t    Attribute attr;\n\n\t    if (name.equalsIgnoreCase(HREF_STR) || \n\t\tname.equalsIgnoreCase(SRC_STR)  || \n\t\tname.equals(CITE_STR)) \n\t    {\n\t\tattr = new Attribute(name, escapeURL(value));\n\t    }\n\t    else {\n\t\tattr = new Attribute(name, escapeNonURL(value));\n\t    }\n\n\t    if ((k = _attributes.indexOf(attr)) >= 0) {\n\t\t_attributes.setElementAt(attr, k);\n\t    }\n\t    else {\n\t\t_attributes.add(attr);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [8, 10], [8, 11], [9, 12], [9, 13], [4, 14], [4, 15], [11, 16], [5, 17], [5, 18], [13, 19], [13, 20], [17, 21], [18, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 8], [11, 8], [12, 9], [13, 9], [14, 4], [15, 4], [16, 11], [17, 5], [18, 5], [19, 13], [20, 13], [21, 17], [22, 18], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "comment", "code": "    public void comment(String comment) throws TransletException { \n\tif (_startTagOpen) {\n\t    closeStartTag();\n\t}\n\tappendComment(comment);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processingInstruction", "code": "    public void processingInstruction(String target, String data)\n\tthrows TransletException \n    { \n\tif (_startTagOpen) {\n\t    closeStartTag();\n\t}\n\n\tif (_firstElement) {\n\t    if (_doctypeSystem != null || _doctypePublic != null) {\n\t\tappendDTD(\"html\");\n\t    }\n\t    _firstElement = false;\n\t}\n\n\t_buffer.append(\"<?\").append(target).append(' ')\n\t    .append(data).append('>');", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [5, 7], [5, 8], [5, 9], [5, 10], [1, 11], [7, 12], [9, 13], [1, 14], [11, 15], [2, 16], [14, 17], [15, 18], [15, 19], [11, 20], [18, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 5], [8, 5], [9, 5], [10, 5], [11, 1], [12, 7], [13, 9], [14, 1], [15, 11], [16, 2], [17, 14], [18, 15], [19, 15], [20, 11], [21, 18], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "setEscaping", "code": "    public boolean setEscaping(boolean escape) throws TransletException \n    { \n\tfinal boolean temp = _escaping;\n\t_escaping = escape;\n\treturn temp; ", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "close", "code": "    public void close() { \n\ttry {\n\t    _writer.close();", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "namespace", "code": "    public void namespace(String prefix, String uri) throws TransletException ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCdataElements", "code": "    public void setCdataElements(Hashtable elements) { ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setType", "code": "    public void setType(int type) { ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMediaType", "code": "    public void setMediaType(String mediaType) {\n\t_mediaType = mediaType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "escapeNonURL", "code": "    private String escapeNonURL(String base) {\n\tfinal int length = base.length();\n\tfinal StringBuffer result = new StringBuffer();\n\n        for (int i = 0; i < length; i++){\n\t    final char ch = base.charAt(i);\n\n\t    if ((ch >= '\\u007F' && ch < '\\u00A0') ||\n\t\t(_is8859Encoded && ch > '\\u00FF'))\n\t    {\n\t        result.append(CHAR_ESC_START)\n\t\t      .append(Integer.toString((int) ch))\n\t\t      .append(';');\n\t    }\n\t    else {\n\t        result.append(ch); \n\t    } \n  \t}\n\treturn result.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [3, 10], [4, 11], [8, 12], [2, 13], [12, 14], [12, 15], [9, 16], [8, 17], [8, 18], [14, 19], [15, 20], [15, 21], [18, 22], [18, 23], [19, 24], [20, 25], [21, 26], [22, 27], [23, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 3], [11, 4], [12, 8], [13, 2], [14, 12], [15, 12], [16, 9], [17, 8], [18, 8], [19, 14], [20, 15], [21, 15], [22, 18], [23, 18], [24, 19], [25, 20], [26, 21], [27, 22], [28, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "escapeURL", "code": "    private String escapeURL(String base) {\n\tfinal char[] chs = base.toCharArray();\n\tfinal StringBuffer result = new StringBuffer();\n\n\tfinal int length = chs.length;\n        for (int i = 0; i < length; i++) {\n\t    final char ch = chs[i];\n\n\t    if (ch <= 0x20) {\n\t\tresult.append('%').append(makeHHString(ch));\n\t    } \n\t    else if (ch > '\\u007F') {\n\t\tresult.append('%')\n\t\t      .append(makeHHString((ch >> 6) | 0xC0))\n\t\t      .append('%')\n\t\t      .append(makeHHString((ch & 0x3F) | 0x80));\n\t    }\n\t    else {\n\t        switch (ch) {\n\t\t    case '\\u007F' :\n\t\t    case '\\u007B' :\n\t\t    case '\\u007D' :\n\t\t    case '\\u007C' :\n\t\t    case '\\\\'     :\n\t\t    case '\\t'     :\n\t\t    case '\\u005E' :\n\t\t    case '\\u007E' :\n\t\t    case '\\u005B' :\n\t\t    case '\\u005D' :\n\t\t    case '\\u0060' :\n\t\t    case '\\u0020' :\n\t\t        result.append('%')\n\t\t              .append(Integer.toHexString((int) ch));\n\t\t        break;\n\t\t    case '\"':\n\t\t\tresult.append(\"%22\");\n\t\t\tbreak;\n\t\t    default:\t\n\t\t        result.append(ch); \n\t\t\tbreak;\n\t        }\n\t    } \n  \t}\n\treturn result.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [4, 11], [5, 12], [9, 13], [9, 14], [2, 15], [13, 16], [14, 17], [13, 18], [16, 19], [9, 20], [13, 21], [20, 22], [20, 23], [18, 24], [18, 25], [18, 26], [18, 27], [18, 28], [18, 29], [18, 30], [18, 31], [18, 32], [18, 33], [18, 34], [18, 35], [18, 36], [18, 37], [18, 38], [18, 39], [21, 40], [21, 41], [21, 42], [21, 43], [23, 44], [18, 45], [18, 46], [18, 47], [41, 48], [42, 49], [43, 50], [46, 51], [47, 52], [47, 53], [48, 54], [50, 55], [53, 56], [54, 57], [54, 58], [55, 59], [55, 60], [58, 61], [60, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 4], [12, 5], [13, 9], [14, 9], [15, 2], [16, 13], [17, 14], [18, 13], [19, 16], [20, 9], [21, 13], [22, 20], [23, 20], [24, 18], [25, 18], [26, 18], [27, 18], [28, 18], [29, 18], [30, 18], [31, 18], [32, 18], [33, 18], [34, 18], [35, 18], [36, 18], [37, 18], [38, 18], [39, 18], [40, 21], [41, 21], [42, 21], [43, 21], [44, 23], [45, 18], [46, 18], [47, 18], [48, 41], [49, 42], [50, 43], [51, 46], [52, 47], [53, 47], [54, 48], [55, 50], [56, 53], [57, 54], [58, 54], [59, 55], [60, 55], [61, 58], [62, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "makeHHString", "code": "    private String makeHHString(int i) {\n\tfinal String s = Integer.toHexString(i).toUpperCase();\n\treturn (s.length() == 1) ? \"0\" + s : s;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [5, 8], [6, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 5], [9, 6], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "appendHeader", "code": "    private void appendHeader() {\n\t_buffer.append(\"<meta http-equiv=\\\"Content-Type\\\" content=\\\"\")\n\t       .append(_mediaType).append(\"; charset=\")\n\t       .append(_encoding).append(\"\\\">\");", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [5, 8], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "closeStartTag", "code": "    protected void closeStartTag() throws TransletException {\n\tsuper.closeStartTag();\n\n\tif (_headTagOpen) {\n\t    appendHeader();\n\t    _headTagOpen = false;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "escapeCharacters", "code": "    protected void escapeCharacters(char[] ch, int off, int len) {\n\tint limit = off + len;\n\tint offset = off;\n\n\tif (limit > ch.length) {\n\t    limit = ch.length;\n\t}\n\n\tfor (int i = off; i < limit; i++) {\n\t    final char current = ch[i];\n\n\t    switch (current) {\n\t    case '&':\n\t\t_buffer.append(ch, offset, i - offset).append(AMP);\n\t\toffset = i + 1;\n\t\tbreak;\n\t    case '<':\n\t\t_buffer.append(ch, offset, i - offset).append(LT);\n\t\toffset = i + 1;\n\t\tbreak;\n\t    case '>':\n\t\t_buffer.append(ch, offset, i - offset).append(GT);\n\t\toffset = i + 1;\n\t\tbreak;\n\t    case '\\u00A0':\n\t\t_buffer.append(ch, offset, i - offset).append(NBSP);\n\t\toffset = i + 1;\n\t\tbreak;\n\t    default:\n\t\tif ((current >= '\\u007F' && current < '\\u00A0') ||\n\t\t    (_is8859Encoded && current > '\\u00FF'))\n\t\t{\n\t\t    _buffer.append(ch, offset, i - offset)\n\t\t\t   .append(CHAR_ESC_START)\n\t\t\t   .append(Integer.toString((int)ch[i]))\n\t\t\t   .append(';');\n\t\t    offset = i + 1;\n\t\t}\n\t    }\n\t}\n\tif (offset < limit) {\n\t    _buffer.append(ch, offset, limit - offset);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [2, 12], [2, 13], [5, 14], [1, 15], [3, 16], [15, 17], [12, 18], [12, 19], [12, 20], [12, 21], [12, 22], [12, 23], [12, 24], [12, 25], [12, 26], [18, 27], [12, 28], [12, 29], [12, 30], [12, 31], [12, 32], [12, 33], [12, 34], [12, 35], [27, 36], [27, 37], [28, 38], [29, 39], [29, 40], [30, 41], [31, 42], [31, 43], [32, 44], [33, 45], [33, 46], [34, 47], [35, 48], [35, 49], [18, 50], [18, 51], [36, 52], [37, 53], [37, 54], [38, 55], [41, 56], [44, 57], [47, 58], [50, 59], [51, 60], [51, 61], [51, 62], [51, 63], [52, 64], [53, 65], [54, 66], [59, 67], [61, 68], [62, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 2], [13, 2], [14, 5], [15, 1], [16, 3], [17, 15], [18, 12], [19, 12], [20, 12], [21, 12], [22, 12], [23, 12], [24, 12], [25, 12], [26, 12], [27, 18], [28, 12], [29, 12], [30, 12], [31, 12], [32, 12], [33, 12], [34, 12], [35, 12], [36, 27], [37, 27], [38, 28], [39, 29], [40, 29], [41, 30], [42, 31], [43, 31], [44, 32], [45, 33], [46, 33], [47, 34], [48, 35], [49, 35], [50, 18], [51, 18], [52, 36], [53, 37], [54, 37], [55, 38], [56, 41], [57, 44], [58, 47], [59, 50], [60, 51], [61, 51], [62, 51], [63, 51], [64, 52], [65, 53], [66, 54], [67, 59], [68, 61], [69, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "StreamHTMLOutput", "code": "    public StreamHTMLOutput(StreamOutput output) {\n\tsuper(output);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "StreamHTMLOutput", "code": "    public StreamHTMLOutput(Writer writer, String encoding) {\n\tsuper(writer, encoding);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "StreamHTMLOutput", "code": "    public StreamHTMLOutput(OutputStream out, String encoding) \n\tthrows IOException\n    {\n\tsuper(out, encoding);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.7-8256", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/processor/TransformerFactoryImpl.java", "language": "java", "name": "org.apache.xalan.processor.TransformerFactoryImpl", "code": "public class TransformerFactoryImpl extends SAXTransformerFactory\n{\n  /** \n   * The path/filename of the property file: XSLTInfo.properties  \n   * Maintenance note: see also\n   * <code>org.apache.xpath.functions.FuncSystemProperty.XSLT_PROPERTIES</code>\n   */\n  public static final String XSLT_PROPERTIES =\n    \"org/apache/xalan/res/XSLTInfo.properties\";\n\n  /**\n   * <p>State of secure processing feature.</p>\n   */\n  private boolean m_isSecureProcessing = false;\n\n  /**\n   * Constructor TransformerFactoryImpl\n   *\n   */\n  public TransformerFactoryImpl()\n  {\n  }\n\n  /** Static string to be used for incremental feature */\n  public static final String FEATURE_INCREMENTAL = '';\n\n  /** Static string to be used for optimize feature */\n  public static final String FEATURE_OPTIMIZE = '';\n\n  /** Static string to be used for source_location feature */\n  public static final String FEATURE_SOURCE_LOCATION =\n                             XalanProperties.SOURCE_LOCATION;\n\n  public javax.xml.transform.Templates processFromNode(Node node)\n          throws TransformerConfigurationException\n  {\n\n    try\n    {\n      TemplatesHandler builder = newTemplatesHandler();\n      TreeWalker walker = new TreeWalker(builder,\n                                         new org.apache.xml.utils.DOM2Helper(),\n                                         builder.getSystemId());\n\n      walker.traverse(node);\n\n      return builder.getTemplates();\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      if (m_errorListener != null)\n      {\n        try\n        {\n          m_errorListener.fatalError(new TransformerException(se));\n        }\n        catch (TransformerConfigurationException ex)\n        {\n          throw ex;\n        }\n        catch (TransformerException ex)\n        {\n          throw new TransformerConfigurationException(ex);\n        }\n\n        return null;\n      }\n      else\n      {\n\n        throw new TransformerConfigurationException(XSLMessages.createMessage(XSLTErrorResources.ER_PROCESSFROMNODE_FAILED, null), se); \n      }\n    }\n    catch (TransformerConfigurationException tce)\n    {\n      throw tce;\n    }\n   /* catch (TransformerException tce)\n    {\n      throw new TransformerConfigurationException(tce.getMessage(), tce);\n    }*/\n    catch (Exception e)\n    {\n      if (m_errorListener != null)\n      {\n        try\n        {\n          m_errorListener.fatalError(new TransformerException(e));\n        }\n        catch (TransformerConfigurationException ex)\n        {\n          throw ex;\n        }\n        catch (TransformerException ex)\n        {\n          throw new TransformerConfigurationException(ex);\n        }\n\n        return null;\n      }\n      else\n      {\n      }\n    }\n  }\n\n  /**\n   * The systemID that was specified in\n   * processFromNode(Node node, String systemID).\n   */\n  private String m_DOMsystemID = null;\n\n  /**\n   * The systemID that was specified in\n   * processFromNode(Node node, String systemID).\n   *\n   * @return The systemID, or null.\n   */\n  String getDOMsystemID()\n  {\n    return m_DOMsystemID;\n  }\n\n  /**\n   * Process the stylesheet from a DOM tree, if the\n   * feature.\n   *\n   * @param node A DOM tree which must contain\n   * valid transform instructions that this processor understands.\n   * @param systemID The systemID from where xsl:includes and xsl:imports\n   * should be resolved from.\n   *\n   * @return A Templates object capable of being used for transformation purposes.\n   *\n   * @throws TransformerConfigurationException\n   */\n  javax.xml.transform.Templates processFromNode(Node node, String systemID)\n          throws TransformerConfigurationException\n  {\n\n    m_DOMsystemID = systemID;\n\n    return processFromNode(node);\n  }\n\n  /**\n   * Get InputSource specification(s) that are associated with the\n   * given document specified in the source param,\n   * via the xml-stylesheet processing instruction\n   * the given criteria.  Note that it is possible to return several stylesheets\n   * that match the criteria, in which case they are applied as if they were\n   * a list of imports or cascades.\n   *\n   * <p>Note that DOM2 has it's own mechanism for discovering stylesheets.\n   * Therefore, there isn't a DOM version of this method.</p>\n   *\n   *\n   * @param source The XML source that is to be searched.\n   * @param media The media attribute to be matched.  May be null, in which\n   *              case the prefered templates will be used (i.e. alternate = no).\n   * @param title The value of the title attribute to match.  May be null.\n   * @param charset The value of the charset attribute to match.  May be null.\n   *\n   * @return A Source object capable of being used to create a Templates object.\n   *\n   * @throws TransformerConfigurationException\n   */\n  public Source getAssociatedStylesheet(\n          Source source, String media, String title, String charset)\n            throws TransformerConfigurationException\n  {\n\n    String baseID;\n    InputSource isource = null;\n    Node node = null;\n    XMLReader reader = null;\n\n    if (source instanceof DOMSource)\n    {\n      DOMSource dsource = (DOMSource) source;\n\n      node = dsource.getNode();\n      baseID = dsource.getSystemId();\n    }\n    else\n    {\n      isource = SAXSource.sourceToInputSource(source);\n      baseID = isource.getSystemId();\n    }\n\n    StylesheetPIHandler handler = new StylesheetPIHandler(baseID, media,\n                                    title, charset);\n    \n    if (m_uriResolver != null) \n    {\n      handler.setURIResolver(m_uriResolver); \n    }\n\n    try\n    {\n      if (null != node)\n      {\n        TreeWalker walker = new TreeWalker(handler, new org.apache.xml.utils.DOM2Helper(), baseID);\n\n        walker.traverse(node);\n      }\n      else\n      {\n\n        try\n        {\n          javax.xml.parsers.SAXParserFactory factory =\n            javax.xml.parsers.SAXParserFactory.newInstance();\n\n          factory.setNamespaceAware(true);\n\n          if (m_isSecureProcessing)\n          {\n            try\n            {\n              factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n            }\n            catch (org.xml.sax.SAXException e) {}\n          }\n\n          javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser();\n\n          reader = jaxpParser.getXMLReader();\n        }\n        catch (javax.xml.parsers.ParserConfigurationException ex)\n        {\n          throw new org.xml.sax.SAXException(ex);\n        }\n        catch (javax.xml.parsers.FactoryConfigurationError ex1)\n        {\n          throw new org.xml.sax.SAXException(ex1.toString());\n        }\n        catch (NoSuchMethodError ex2){}\n        catch (AbstractMethodError ame){}\n\n        if (null == reader)\n        {\n          reader = XMLReaderFactory.createXMLReader();\n        }\n\n        reader.setContentHandler(handler);\n        reader.parse(isource);\n      }\n    }\n    catch (StopParseException spe)\n    {\n\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerConfigurationException(\n        \"getAssociatedStylesheets failed\", se);\n    }\n    catch (IOException ioe)\n    {\n      throw new TransformerConfigurationException(\n        \"getAssociatedStylesheets failed\", ioe);\n    }\n\n    return handler.getAssociatedStylesheet();\n  }\n\n  /**\n   * Create a new Transformer object that performs a copy\n   * of the source to the result.\n   *\n   * @return A Transformer object that may be used to perform a transformation\n   * in a single thread, never null.\n   *\n   * @throws TransformerConfigurationException May throw this during\n   *            the parse when it is constructing the\n   *            Templates object and fails.\n   */\n  public TemplatesHandler newTemplatesHandler()\n          throws TransformerConfigurationException\n  {\n    return new StylesheetHandler(this);\n  }\n\n  /**\n   * <p>Set a feature for this <code>TransformerFactory</code> and <code>Transformer</code>s\n   * or <code>Template</code>s created by this factory.</p>\n   * \n   * <p>\n   * Feature names are fully qualified {@link java.net.URI}s.\n   * Implementations may define their own features.\n   * An {@link TransformerConfigurationException} is thrown if this <code>TransformerFactory</code> or the\n   * <code>Transformer</code>s or <code>Template</code>s it creates cannot support the feature.\n   * It is possible for an <code>TransformerFactory</code> to expose a feature value but be unable to change its state.\n   * </p>\n   * \n   * <p>See {@link javax.xml.transform.TransformerFactory} for full documentation of specific features.</p>\n   * \n   * @param name Feature name.\n   * @param value Is feature state <code>true</code> or <code>false</code>.\n   *  \n   * @throws TransformerConfigurationException if this <code>TransformerFactory</code>\n   *   or the <code>Transformer</code>s or <code>Template</code>s it creates cannot support this feature.\n   * @throws NullPointerException If the <code>name</code> parameter is null.\n   */\n  public void setFeature(String name, boolean value)\n\t  throws TransformerConfigurationException {\n  \n  \tif (name == null) {\n  \t    throw new NullPointerException(\n                  XSLMessages.createMessage(\n                      XSLTErrorResources.ER_SET_FEATURE_NULL_NAME, null));    \n  \t}\n  \t\t\n  \tif (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {\n  \t    m_isSecureProcessing = value;\t\t\t\n  \t}\n  \telse\n    {\n      throw new TransformerConfigurationException(\n          XSLMessages.createMessage(\n            XSLTErrorResources.ER_UNSUPPORTED_FEATURE, \n            new Object[] {name}));\n    }\n  }\n\n  /**\n   * Look up the value of a feature.\n   * <p>The feature name is any fully-qualified URI.  It is\n   * possible for an TransformerFactory to recognize a feature name but\n   * to be unable to return its value; this is especially true\n   * in the case of an adapter for a SAX1 Parser, which has\n   * no way of knowing whether the underlying parser is\n   * validating, for example.</p>\n   *\n   * @param name The feature name, which is a fully-qualified URI.\n   * @return The current state of the feature (true or false).\n   */\n  public boolean getFeature(String name) {\n  \t\n    if (name == null) \n    {\n    \tthrow new NullPointerException(\n            XSLMessages.createMessage(\n            XSLTErrorResources.ER_GET_FEATURE_NULL_NAME, null));    \n    }\n\t  \t\n    if ((DOMResult.FEATURE == name) || (DOMSource.FEATURE == name)\n            || (SAXResult.FEATURE == name) || (SAXSource.FEATURE == name)\n            || (StreamResult.FEATURE == name)\n            || (StreamSource.FEATURE == name)\n            || (SAXTransformerFactory.FEATURE == name)\n            || (SAXTransformerFactory.FEATURE_XMLFILTER == name))\n      return true;\n    else if ((DOMResult.FEATURE.equals(name))\n             || (DOMSource.FEATURE.equals(name))\n             || (SAXResult.FEATURE.equals(name))\n             || (SAXSource.FEATURE.equals(name))\n             || (StreamResult.FEATURE.equals(name))\n             || (StreamSource.FEATURE.equals(name))\n             || (SAXTransformerFactory.FEATURE.equals(name))\n             || (SAXTransformerFactory.FEATURE_XMLFILTER.equals(name)))\n      return true;\t      \n    else if (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING))\n      return m_isSecureProcessing;\n    else      \n      return false;\n  }\n  \n  /**\n   * Flag set by FEATURE_OPTIMIZE.\n   * This feature specifies whether to Optimize stylesheet processing. By\n   * default it is set to true.\n   */\n  private boolean m_optimize = true;\n  \n  /** Flag set by FEATURE_SOURCE_LOCATION.\n   * This feature specifies whether the transformation phase should\n   * keep track of line and column numbers for the input source\n   * document. Note that this works only when that\n   * information is available from the source -- in other words, if you\n   * pass in a DOM, there's little we can do for you.\n   * \n   * The default is false. Setting it true may significantly\n   * increase storage cost per node. \n   */\n  private boolean m_source_location = false;\n  \n  /**\n   * Flag set by FEATURE_INCREMENTAL.\n   * This feature specifies whether to produce output incrementally, rather than\n   * waiting to finish parsing the input before generating any output. By \n   * default this attribute is set to false. \n   */\n  private boolean m_incremental = false;\n  \n  /**\n   * Allows the user to set specific attributes on the underlying\n   * implementation.\n   *\n   * @param name The name of the attribute.\n   * @param value The value of the attribute; Boolean or String=\"true\"|\"false\"\n   *\n   * @throws IllegalArgumentException thrown if the underlying\n   * implementation doesn't recognize the attribute.\n   */\n  public void setAttribute(String name, Object value)\n          throws IllegalArgumentException\n  {\n    if (name.equals(FEATURE_INCREMENTAL))\n    {\n      if(value instanceof Boolean)\n      {\n        m_incremental = ((Boolean)value).booleanValue();\n      }\n      else if(value instanceof String)\n      {\n        m_incremental = (new Boolean((String)value)).booleanValue();\n      }\n      else\n      {\n      }\n\t}\n    else if (name.equals(FEATURE_OPTIMIZE))\n    {\n      if(value instanceof Boolean)\n      {\n        m_optimize = ((Boolean)value).booleanValue();\n      }\n      else if(value instanceof String)\n      {\n        m_optimize = (new Boolean((String)value)).booleanValue();\n      }\n      else\n      {\n      }\n    }\n    \n    else if(name.equals(FEATURE_SOURCE_LOCATION))\n    {\n      if(value instanceof Boolean)\n      {\n        m_source_location = ((Boolean)value).booleanValue();\n      }\n      else if(value instanceof String)\n      {\n        m_source_location = (new Boolean((String)value)).booleanValue();\n      }\n      else\n      {\n      }\n    }\n    \n    else\n    {\n    }\n  }\n\n  /**\n   * Allows the user to retrieve specific attributes on the underlying\n   * implementation.\n   *\n   * @param name The name of the attribute.\n   * @return value The value of the attribute.\n   *\n   * @throws IllegalArgumentException thrown if the underlying\n   * implementation doesn't recognize the attribute.\n   */\n  public Object getAttribute(String name) throws IllegalArgumentException\n  {\n    if (name.equals(FEATURE_INCREMENTAL))\n    {\n      return new Boolean(m_incremental);            \n    }\n    else if (name.equals(FEATURE_OPTIMIZE))\n    {\n      return new Boolean(m_optimize);\n    }\n    else if (name.equals(FEATURE_SOURCE_LOCATION))\n    {\n      return new Boolean(m_source_location);\n    }\n    else{}\n  }\n\n  /**\n   * Create an XMLFilter that uses the given source as the\n   * transformation instructions.\n   *\n   * @param src The source of the transformation instructions.\n   *\n   * @return An XMLFilter object, or null if this feature is not supported.\n   *\n   * @throws TransformerConfigurationException\n   */\n  public XMLFilter newXMLFilter(Source src)\n          throws TransformerConfigurationException\n  {\n\n    Templates templates = newTemplates(src);\n    if( templates==null ) return null;\n    \n    return newXMLFilter(templates);\n  }\n\n  /**\n   * Create an XMLFilter that uses the given source as the\n   * transformation instructions.\n   *\n   * @param templates non-null reference to Templates object.\n   *\n   * @return An XMLFilter object, or null if this feature is not supported.\n   *\n   * @throws TransformerConfigurationException\n   */\n  public XMLFilter newXMLFilter(Templates templates)\n          throws TransformerConfigurationException\n  {\n    try \n    {\n      return new TrAXFilter(templates);\n    } \n    catch( TransformerConfigurationException ex ) \n    {\n      if( m_errorListener != null) \n      {\n        try \n        {\n          m_errorListener.fatalError( ex );\n          return null;\n        } \n        catch( TransformerConfigurationException ex1 ) \n        {\n          throw ex1;\n        }\n        catch( TransformerException ex1 ) \n        {\n          throw new TransformerConfigurationException(ex1);\n        }\n      }\n      throw ex;\n    }\n  }\n\n  /**\n   * Get a TransformerHandler object that can process SAX\n   * ContentHandler events into a Result, based on the transformation\n   * instructions specified by the argument.\n   *\n   * @param src The source of the transformation instructions.\n   *\n   * @return TransformerHandler ready to transform SAX events.\n   *\n   * @throws TransformerConfigurationException\n   */\n  public TransformerHandler newTransformerHandler(Source src)\n          throws TransformerConfigurationException\n  {\n\n    Templates templates = newTemplates(src);\n    if( templates==null ) return null;\n    \n    return newTransformerHandler(templates);\n  }\n\n  /**\n   * Get a TransformerHandler object that can process SAX\n   * ContentHandler events into a Result, based on the Templates argument.\n   *\n   * @param templates The source of the transformation instructions.\n   *\n   * @return TransformerHandler ready to transform SAX events.\n   * @throws TransformerConfigurationException\n   */\n  public TransformerHandler newTransformerHandler(Templates templates)\n          throws TransformerConfigurationException\n  {\n    try {\n      TransformerImpl transformer =\n        (TransformerImpl) templates.newTransformer();\n      transformer.setURIResolver(m_uriResolver);\n      TransformerHandler th =\n        (TransformerHandler) transformer.getInputContentHandler(true);\n\n      return th;\n    } \n    catch( TransformerConfigurationException ex ) \n    {\n      if( m_errorListener != null ) \n      {\n        try \n        {\n          m_errorListener.fatalError( ex );\n          return null;\n        } \n        catch (TransformerConfigurationException ex1 ) \n        {\n          throw ex1;\n        }\n        catch (TransformerException ex1 ) \n        {\n          throw new TransformerConfigurationException(ex1);\n        }\n      }\n      \n      throw ex;\n    }\n    \n  }\n\n\n  /**\n   * Get a TransformerHandler object that can process SAX\n   * ContentHandler events into a Result.\n   *\n   * @return TransformerHandler ready to transform SAX events.\n   *\n   * @throws TransformerConfigurationException\n   */\n  public TransformerHandler newTransformerHandler()\n          throws TransformerConfigurationException\n  {\n    return new TransformerIdentityImpl(m_isSecureProcessing);\n  }\n\n  /**\n   * Process the source into a Transformer object.  Care must\n   * be given to know that this object can not be used concurrently\n   * in multiple threads.\n   *\n   * @param source An object that holds a URL, input stream, etc.\n   *\n   * @return A Transformer object capable of\n   * being used for transformation purposes in a single thread.\n   *\n   * @throws TransformerConfigurationException May throw this during the parse when it\n   *            is constructing the Templates object and fails.\n   */\n  public Transformer newTransformer(Source source)\n          throws TransformerConfigurationException\n  {\n    try \n    {\n      Templates tmpl=newTemplates( source );\n      /* this can happen if an ErrorListener is present and it doesn't\n         throw any exception in fatalError. \n         The spec says: \"a Transformer must use this interface\n         instead of throwing an exception\" - the newTemplates() does\n         that, and returns null.\n      */\n      if( tmpl==null ) return null;\n      Transformer transformer = tmpl.newTransformer();\n      transformer.setURIResolver(m_uriResolver);\n      return transformer;\n    } \n    catch( TransformerConfigurationException ex ) \n    {\n      if( m_errorListener != null ) \n      {\n        try \n        {\n          m_errorListener.fatalError( ex );\n          return null;\n        } \n        catch( TransformerConfigurationException ex1 ) \n        {\n          throw ex1;\n        }\n        catch( TransformerException ex1 ) \n        {\n          throw new TransformerConfigurationException( ex1 );\n        }\n      }\n      throw ex;\n    }\n  }\n\n  /**\n   * Create a new Transformer object that performs a copy\n   * of the source to the result.\n   *\n   * @return A Transformer object capable of\n   * being used for transformation purposes in a single thread.\n   *\n   * @throws TransformerConfigurationException May throw this during\n   *            the parse when it is constructing the\n   *            Templates object and it fails.\n   */\n  public Transformer newTransformer() throws TransformerConfigurationException\n  {\n      return new TransformerIdentityImpl(m_isSecureProcessing);\n  }\n\n  /**\n   * Process the source into a Templates object, which is likely\n   * a compiled representation of the source. This Templates object\n   * may then be used concurrently across multiple threads.  Creating\n   * a Templates object allows the TransformerFactory to do detailed\n   * performance optimization of transformation instructions, without\n   * penalizing runtime transformation.\n   *\n   * @param source An object that holds a URL, input stream, etc.\n   * @return A Templates object capable of being used for transformation purposes.\n   *\n   * @throws TransformerConfigurationException May throw this during the parse when it\n   *            is constructing the Templates object and fails.\n   */\n  public Templates newTemplates(Source source)\n          throws TransformerConfigurationException\n  {\n\n    String baseID = source.getSystemId();\n\n    if (null != baseID) {\n       baseID = SystemIDResolver.getAbsoluteURI(baseID);\n    }\n\n\n    if (source instanceof DOMSource)\n    {\n      DOMSource dsource = (DOMSource) source;\n      Node node = dsource.getNode();\n\n      if (null != node)\n        return processFromNode(node, baseID);\n      else\n      {\n        String messageStr = XSLMessages.createMessage(\n          XSLTErrorResources.ER_ILLEGAL_DOMSOURCE_INPUT, null);\n\n        throw new IllegalArgumentException(messageStr);\n      }\n    }\n\n    TemplatesHandler builder = newTemplatesHandler();\n    builder.setSystemId(baseID);\n    \n    try\n    {\n      InputSource isource = SAXSource.sourceToInputSource(source);\n      isource.setSystemId(baseID);\n      XMLReader reader = null;\n\n      if (source instanceof SAXSource)\n        reader = ((SAXSource) source).getXMLReader();\n        \n      if (null == reader)\n      {\n\n        try\n        {\n          javax.xml.parsers.SAXParserFactory factory =\n            javax.xml.parsers.SAXParserFactory.newInstance();\n\n          factory.setNamespaceAware(true);\n\n          if (m_isSecureProcessing)\n          {\n            try\n            {\n              factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n            }\n            catch (org.xml.sax.SAXException se) {}\n          }\n\n          javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser();\n\n          reader = jaxpParser.getXMLReader();\n        }\n        catch (javax.xml.parsers.ParserConfigurationException ex)\n        {\n          throw new org.xml.sax.SAXException(ex);\n        }\n        catch (javax.xml.parsers.FactoryConfigurationError ex1)\n        {\n          throw new org.xml.sax.SAXException(ex1.toString());\n        }\n        catch (NoSuchMethodError ex2){}\n        catch (AbstractMethodError ame){}\n      }\n\n      if (null == reader)\n        reader = XMLReaderFactory.createXMLReader();\n\n      reader.setContentHandler(builder);\n      reader.parse(isource);\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      if (m_errorListener != null)\n      {\n        try\n        {\n          m_errorListener.fatalError(new TransformerException(se));\n        }\n        catch (TransformerConfigurationException ex1)\n        {\n          throw ex1;\n        }\n        catch (TransformerException ex1)\n        {\n          throw new TransformerConfigurationException(ex1);\n        }\n      }\n      else\n      {\n        throw new TransformerConfigurationException(se.getMessage(), se);\n      }\n    }\n    catch (Exception e)\n    {\n      if (m_errorListener != null)\n      {\n        try\n        {\n          m_errorListener.fatalError(new TransformerException(e));\n          return null;\n        }\n        catch (TransformerConfigurationException ex1)\n        {\n          throw ex1;\n        }\n        catch (TransformerException ex1)\n        {\n          throw new TransformerConfigurationException(ex1);\n        }\n      }\n      else\n      {\n        throw new TransformerConfigurationException(e.getMessage(), e);\n      }\n    }\n\n    return builder.getTemplates();\n  }\n\n  /**\n   * The object that implements the URIResolver interface,\n   * or null.\n   */\n  URIResolver m_uriResolver;\n\n  /**\n   * Set an object that will be used to resolve URIs used in\n   * xsl:import, etc.  This will be used as the default for the\n   * transformation.\n   * @param resolver An object that implements the URIResolver interface,\n   * or null.\n   */\n  public void setURIResolver(URIResolver resolver)\n  {\n    m_uriResolver = resolver;\n  }\n\n  /**\n   * Get the object that will be used to resolve URIs used in\n   * xsl:import, etc.  This will be used as the default for the\n   * transformation.\n   *\n   * @return The URIResolver that was set with setURIResolver.\n   */\n  public URIResolver getURIResolver()\n  {\n    return m_uriResolver;\n  }\n\n  /** The error listener.   */\n  private ErrorListener m_errorListener = new org.apache.xml.utils.DefaultErrorHandler(false);\n\n  /**\n   * Get the error listener in effect for the TransformerFactory.\n   *\n   * @return A non-null reference to an error listener.\n   */\n  public ErrorListener getErrorListener()\n  {\n    return m_errorListener;\n  }\n\n  /**\n   * Set an error listener for the TransformerFactory.\n   *\n   * @param listener Must be a non-null reference to an ErrorListener.\n   *\n   * @throws IllegalArgumentException if the listener argument is null.\n   */\n  public void setErrorListener(ErrorListener listener)\n          throws IllegalArgumentException\n  {\n\n    if (null == listener)\n      throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_ERRORLISTENER, null));\n\n    m_errorListener = listener;\n  }\n  \n  /**\n   * Return the state of the secure processing feature.\n   * \n   * @return state of the secure processing feature.\n   */\n  public boolean isSecureProcessing()\n  {\n    return m_isSecureProcessing;", "functions": [{"function_name": "processFromNode", "code": "  public javax.xml.transform.Templates processFromNode(Node node)\n          throws TransformerConfigurationException\n  {\n\n    try\n    {\n      TemplatesHandler builder = newTemplatesHandler();\n      TreeWalker walker = new TreeWalker(builder,\n                                         new org.apache.xml.utils.DOM2Helper(),\n                                         builder.getSystemId());\n\n      walker.traverse(node);\n\n      return builder.getTemplates();\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      if (m_errorListener != null)\n      {\n        try\n        {\n          m_errorListener.fatalError(new TransformerException(se));\n        }\n        catch (TransformerConfigurationException ex)\n        {\n          throw ex;\n        }\n        catch (TransformerException ex)\n        {\n          throw new TransformerConfigurationException(ex);\n        }\n\n        return null;\n      }\n      else\n      {\n\n        throw new TransformerConfigurationException(XSLMessages.createMessage(XSLTErrorResources.ER_PROCESSFROMNODE_FAILED, null), se); \n      }\n    }\n    catch (TransformerConfigurationException tce)\n    {\n      throw tce;\n    }\n   /* catch (TransformerException tce)\n    {\n      throw new TransformerConfigurationException(tce.getMessage(), tce);\n    }*/\n    catch (Exception e)\n    {\n      if (m_errorListener != null)\n      {\n        try\n        {\n          m_errorListener.fatalError(new TransformerException(e));\n        }\n        catch (TransformerConfigurationException ex)\n        {\n          throw ex;\n        }\n        catch (TransformerException ex)\n        {\n          throw new TransformerConfigurationException(ex);\n        }\n\n        return null;\n      }\n      else\n      {", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "THROW_RAISE", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "RETURN", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CATCH", "CATCH", "CALL", "LITERAL_ANCHOR", "CATCH", "CATCH", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 13], [9, 14], [11, 15], [7, 16], [8, 17], [9, 18], [9, 19], [14, 20], [11, 21], [11, 22], [11, 23], [15, 24], [16, 25], [16, 26], [18, 27], [19, 28], [19, 29], [21, 30], [22, 31], [23, 32], [23, 33], [28, 34], [29, 35], [19, 36], [30, 37], [32, 38], [33, 39], [23, 40], [34, 41], [36, 42], [37, 43], [38, 44], [40, 45], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 4], [11, 5], [12, 6], [13, 1], [14, 9], [15, 11], [16, 7], [17, 8], [18, 9], [19, 9], [20, 14], [21, 11], [22, 11], [23, 11], [24, 15], [25, 16], [26, 16], [27, 18], [28, 19], [29, 19], [30, 21], [31, 22], [32, 23], [33, 23], [34, 28], [35, 29], [36, 19], [37, 30], [38, 32], [39, 33], [40, 23], [41, 34], [42, 36], [43, 37], [44, 38], [45, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "getDOMsystemID", "code": "  String getDOMsystemID()\n  {\n    return m_DOMsystemID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "processFromNode", "code": "  javax.xml.transform.Templates processFromNode(Node node, String systemID)\n          throws TransformerConfigurationException\n  {\n\n    m_DOMsystemID = systemID;\n\n    return processFromNode(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getAssociatedStylesheet", "code": "  public Source getAssociatedStylesheet(\n          Source source, String media, String title, String charset)\n            throws TransformerConfigurationException\n  {\n\n    String baseID;\n    InputSource isource = null;\n    Node node = null;\n    XMLReader reader = null;\n\n    if (source instanceof DOMSource)\n    {\n      DOMSource dsource = (DOMSource) source;\n\n      node = dsource.getNode();\n      baseID = dsource.getSystemId();\n    }\n    else\n    {\n      isource = SAXSource.sourceToInputSource(source);\n      baseID = isource.getSystemId();\n    }\n\n    StylesheetPIHandler handler = new StylesheetPIHandler(baseID, media,\n                                    title, charset);\n    \n    if (m_uriResolver != null) \n    {\n      handler.setURIResolver(m_uriResolver); \n    }\n\n    try\n    {\n      if (null != node)\n      {\n        TreeWalker walker = new TreeWalker(handler, new org.apache.xml.utils.DOM2Helper(), baseID);\n\n        walker.traverse(node);\n      }\n      else\n      {\n\n        try\n        {\n          javax.xml.parsers.SAXParserFactory factory =\n            javax.xml.parsers.SAXParserFactory.newInstance();\n\n          factory.setNamespaceAware(true);\n\n          if (m_isSecureProcessing)\n          {\n            try\n            {\n              factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n            }\n            catch (org.xml.sax.SAXException e) {}\n          }\n\n          javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser();\n\n          reader = jaxpParser.getXMLReader();\n        }\n        catch (javax.xml.parsers.ParserConfigurationException ex)\n        {\n          throw new org.xml.sax.SAXException(ex);\n        }\n        catch (javax.xml.parsers.FactoryConfigurationError ex1)\n        {\n          throw new org.xml.sax.SAXException(ex1.toString());\n        }\n        catch (NoSuchMethodError ex2){}\n        catch (AbstractMethodError ame){}\n\n        if (null == reader)\n        {\n          reader = XMLReaderFactory.createXMLReader();\n        }\n\n        reader.setContentHandler(handler);\n        reader.parse(isource);\n      }\n    }\n    catch (StopParseException spe)\n    {\n\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      throw new TransformerConfigurationException(\n        \"getAssociatedStylesheets failed\", se);\n    }\n    catch (IOException ioe)\n    {\n      throw new TransformerConfigurationException(\n        \"getAssociatedStylesheets failed\", ioe);\n    }\n\n    return handler.getAssociatedStylesheet();", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "CATCH", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CATCH", "CATCH", "CATCH", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [1, 14], [2, 15], [2, 16], [2, 17], [2, 18], [3, 19], [5, 20], [15, 21], [16, 22], [18, 23], [19, 24], [4, 25], [5, 26], [6, 27], [7, 28], [8, 29], [21, 30], [22, 31], [18, 32], [18, 33], [18, 34], [23, 35], [3, 36], [5, 37], [5, 38], [5, 39], [5, 40], [30, 41], [31, 42], [18, 43], [18, 44], [32, 45], [33, 46], [33, 47], [33, 48], [33, 49], [33, 50], [33, 51], [33, 52], [18, 53], [37, 54], [38, 55], [39, 56], [40, 57], [45, 58], [48, 59], [49, 60], [33, 61], [33, 62], [34, 63], [32, 64], [59, 65], [60, 66], [61, 67], [50, 68], [51, 69], [62, 70], [52, 71], [63, 72], [64, 73], [65, 74], [69, 75], [69, 76], [76, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 1], [15, 2], [16, 2], [17, 2], [18, 2], [19, 3], [20, 5], [21, 15], [22, 16], [23, 18], [24, 19], [25, 4], [26, 5], [27, 6], [28, 7], [29, 8], [30, 21], [31, 22], [32, 18], [33, 18], [34, 18], [35, 23], [36, 3], [37, 5], [38, 5], [39, 5], [40, 5], [41, 30], [42, 31], [43, 18], [44, 18], [45, 32], [46, 33], [47, 33], [48, 33], [49, 33], [50, 33], [51, 33], [52, 33], [53, 18], [54, 37], [55, 38], [56, 39], [57, 40], [58, 45], [59, 48], [60, 49], [61, 33], [62, 33], [63, 34], [64, 32], [65, 59], [66, 60], [67, 61], [68, 50], [69, 51], [70, 62], [71, 52], [72, 63], [73, 64], [74, 65], [75, 69], [76, 69], [77, 76], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "newTemplatesHandler", "code": "  public TemplatesHandler newTemplatesHandler()\n          throws TransformerConfigurationException\n  {\n    return new StylesheetHandler(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFeature", "code": "  public void setFeature(String name, boolean value)\n\t  throws TransformerConfigurationException {\n  \n  \tif (name == null) {\n  \t    throw new NullPointerException(\n                  XSLMessages.createMessage(\n                      XSLTErrorResources.ER_SET_FEATURE_NULL_NAME, null));    \n  \t}\n  \t\t\n  \tif (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {\n  \t    m_isSecureProcessing = value;\t\t\t\n  \t}\n  \telse\n    {\n      throw new TransformerConfigurationException(\n          XSLMessages.createMessage(\n            XSLTErrorResources.ER_UNSUPPORTED_FEATURE, \n            new Object[] {name}));", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [2, 8], [6, 9], [7, 10], [1, 11], [8, 12], [10, 13], [12, 14], [14, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 2], [9, 6], [10, 7], [11, 1], [12, 8], [13, 10], [14, 12], [15, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFeature", "code": "  public boolean getFeature(String name) {\n  \t\n    if (name == null) \n    {\n    \tthrow new NullPointerException(\n            XSLMessages.createMessage(\n            XSLTErrorResources.ER_GET_FEATURE_NULL_NAME, null));    \n    }\n\t  \t\n    if ((DOMResult.FEATURE == name) || (DOMSource.FEATURE == name)\n            || (SAXResult.FEATURE == name) || (SAXSource.FEATURE == name)\n            || (StreamResult.FEATURE == name)\n            || (StreamSource.FEATURE == name)\n            || (SAXTransformerFactory.FEATURE == name)\n            || (SAXTransformerFactory.FEATURE_XMLFILTER == name))\n      return true;\n    else if ((DOMResult.FEATURE.equals(name))\n             || (DOMSource.FEATURE.equals(name))\n             || (SAXResult.FEATURE.equals(name))\n             || (SAXSource.FEATURE.equals(name))\n             || (StreamResult.FEATURE.equals(name))\n             || (StreamSource.FEATURE.equals(name))\n             || (SAXTransformerFactory.FEATURE.equals(name))\n             || (SAXTransformerFactory.FEATURE_XMLFILTER.equals(name)))\n      return true;\t      \n    else if (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING))\n      return m_isSecureProcessing;\n    else      \n      return false;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [4, 8], [4, 9], [4, 10], [5, 11], [6, 12], [6, 13], [2, 14], [7, 15], [8, 16], [8, 17], [8, 18], [9, 19], [10, 20], [10, 21], [13, 22], [13, 23], [14, 24], [16, 25], [21, 26], [21, 27], [23, 28], [23, 29], [24, 30], [27, 31], [27, 32], [29, 33], [29, 34], [30, 35], [32, 36], [32, 37], [34, 38], [34, 39], [37, 40], [37, 41], [39, 42], [39, 43], [41, 44], [41, 45], [43, 46], [43, 47], [45, 48], [45, 49], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 4], [9, 4], [10, 4], [11, 5], [12, 6], [13, 6], [14, 2], [15, 7], [16, 8], [17, 8], [18, 8], [19, 9], [20, 10], [21, 10], [22, 13], [23, 13], [24, 14], [25, 16], [26, 21], [27, 21], [28, 23], [29, 23], [30, 24], [31, 27], [32, 27], [33, 29], [34, 29], [35, 30], [36, 32], [37, 32], [38, 34], [39, 34], [40, 37], [41, 37], [42, 39], [43, 39], [44, 41], [45, 41], [46, 43], [47, 43], [48, 45], [49, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "setAttribute", "code": "  public void setAttribute(String name, Object value)\n          throws IllegalArgumentException\n  {\n    if (name.equals(FEATURE_INCREMENTAL))\n    {\n      if(value instanceof Boolean)\n      {\n        m_incremental = ((Boolean)value).booleanValue();\n      }\n      else if(value instanceof String)\n      {\n        m_incremental = (new Boolean((String)value)).booleanValue();\n      }\n      else\n      {\n      }\n\t}\n    else if (name.equals(FEATURE_OPTIMIZE))\n    {\n      if(value instanceof Boolean)\n      {\n        m_optimize = ((Boolean)value).booleanValue();\n      }\n      else if(value instanceof String)\n      {\n        m_optimize = (new Boolean((String)value)).booleanValue();\n      }\n      else\n      {\n      }\n    }\n    \n    else if(name.equals(FEATURE_SOURCE_LOCATION))\n    {\n      if(value instanceof Boolean)\n      {\n        m_source_location = ((Boolean)value).booleanValue();\n      }\n      else if(value instanceof String)\n      {\n        m_source_location = (new Boolean((String)value)).booleanValue();\n      }\n      else\n      {\n      }\n    }\n    \n    else\n    {", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "CALL", "IF", "CALL", "IF", "CALL", "IF", "IF", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [6, 9], [4, 10], [8, 11], [8, 12], [6, 13], [10, 14], [10, 15], [11, 16], [13, 17], [13, 18], [14, 19], [8, 20], [17, 21], [10, 22], [11, 23], [13, 24], [14, 25], [23, 26], [17, 27], [25, 28], [26, 29], [27, 30], [28, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 6], [10, 4], [11, 8], [12, 8], [13, 6], [14, 10], [15, 10], [16, 11], [17, 13], [18, 13], [19, 14], [20, 8], [21, 17], [22, 10], [23, 11], [24, 13], [25, 14], [26, 23], [27, 17], [28, 25], [29, 26], [30, 27], [31, 28], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "getAttribute", "code": "  public Object getAttribute(String name) throws IllegalArgumentException\n  {\n    if (name.equals(FEATURE_INCREMENTAL))\n    {\n      return new Boolean(m_incremental);            \n    }\n    else if (name.equals(FEATURE_OPTIMIZE))\n    {\n      return new Boolean(m_optimize);\n    }\n    else if (name.equals(FEATURE_SOURCE_LOCATION))\n    {\n      return new Boolean(m_source_location);\n    }\n    else{}", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "CALL", "IF", "CALL", "RETURN", "CALL", "RETURN", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [5, 8], [3, 9], [7, 10], [5, 11], [9, 12], [11, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 5], [9, 3], [10, 7], [11, 5], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "newXMLFilter", "code": "  public XMLFilter newXMLFilter(Source src)\n          throws TransformerConfigurationException\n  {\n\n    Templates templates = newTemplates(src);\n    if( templates==null ) return null;\n    \n    return newXMLFilter(templates);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [3, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "newXMLFilter", "code": "  public XMLFilter newXMLFilter(Templates templates)\n          throws TransformerConfigurationException\n  {\n    try \n    {\n      return new TrAXFilter(templates);\n    } \n    catch( TransformerConfigurationException ex ) \n    {\n      if( m_errorListener != null) \n      {\n        try \n        {\n          m_errorListener.fatalError( ex );\n          return null;\n        } \n        catch( TransformerConfigurationException ex1 ) \n        {\n          throw ex1;\n        }\n        catch( TransformerException ex1 ) \n        {\n          throw new TransformerConfigurationException(ex1);\n        }\n      }\n      throw ex;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "IF", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "CATCH", "RETURN", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [6, 8], [6, 9], [8, 10], [9, 11], [9, 12], [9, 13], [11, 14], [12, 15], [13, 16], [9, 17], [14, 18], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [8, 6], [9, 6], [10, 8], [11, 9], [12, 9], [13, 9], [14, 11], [15, 12], [16, 13], [17, 9], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "newTransformerHandler", "code": "  public TransformerHandler newTransformerHandler(Source src)\n          throws TransformerConfigurationException\n  {\n\n    Templates templates = newTemplates(src);\n    if( templates==null ) return null;\n    \n    return newTransformerHandler(templates);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [3, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "newTransformerHandler", "code": "  public TransformerHandler newTransformerHandler(Templates templates)\n          throws TransformerConfigurationException\n  {\n    try {\n      TransformerImpl transformer =\n        (TransformerImpl) templates.newTransformer();\n      transformer.setURIResolver(m_uriResolver);\n      TransformerHandler th =\n        (TransformerHandler) transformer.getInputContentHandler(true);\n\n      return th;\n    } \n    catch( TransformerConfigurationException ex ) \n    {\n      if( m_errorListener != null ) \n      {\n        try \n        {\n          m_errorListener.fatalError( ex );\n          return null;\n        } \n        catch (TransformerConfigurationException ex1 ) \n        {\n          throw ex1;\n        }\n        catch (TransformerException ex1 ) \n        {\n          throw new TransformerConfigurationException(ex1);\n        }\n      }\n      \n      throw ex;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "IF", "CALL", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "CATCH", "RETURN", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [3, 8], [1, 9], [8, 10], [8, 11], [10, 12], [5, 13], [6, 14], [11, 15], [11, 16], [11, 17], [13, 18], [15, 19], [16, 20], [17, 21], [11, 22], [19, 23], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 3], [9, 1], [10, 8], [11, 8], [12, 10], [13, 5], [14, 6], [15, 11], [16, 11], [17, 11], [18, 13], [19, 15], [20, 16], [21, 17], [22, 11], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "newTransformerHandler", "code": "  public TransformerHandler newTransformerHandler()\n          throws TransformerConfigurationException\n  {\n    return new TransformerIdentityImpl(m_isSecureProcessing);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "newTransformer", "code": "  public Transformer newTransformer(Source source)\n          throws TransformerConfigurationException\n  {\n    try \n    {\n      Templates tmpl=newTemplates( source );\n      /* this can happen if an ErrorListener is present and it doesn't\n         throw any exception in fatalError. \n         The spec says: \"a Transformer must use this interface\n         instead of throwing an exception\" - the newTemplates() does\n         that, and returns null.\n      */\n      if( tmpl==null ) return null;\n      Transformer transformer = tmpl.newTransformer();\n      transformer.setURIResolver(m_uriResolver);\n      return transformer;\n    } \n    catch( TransformerConfigurationException ex ) \n    {\n      if( m_errorListener != null ) \n      {\n        try \n        {\n          m_errorListener.fatalError( ex );\n          return null;\n        } \n        catch( TransformerConfigurationException ex1 ) \n        {\n          throw ex1;\n        }\n        catch( TransformerException ex1 ) \n        {\n          throw new TransformerConfigurationException( ex1 );\n        }\n      }\n      throw ex;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "THROW_RAISE", "IF", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "CATCH", "CATCH", "RETURN", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [3, 9], [1, 10], [6, 11], [6, 12], [9, 13], [5, 14], [11, 15], [12, 16], [7, 17], [9, 18], [13, 19], [18, 20], [18, 21], [18, 22], [20, 23], [21, 24], [22, 25], [18, 26], [23, 27], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 3], [10, 1], [11, 6], [12, 6], [13, 9], [14, 5], [15, 11], [16, 12], [17, 7], [18, 9], [19, 13], [20, 18], [21, 18], [22, 18], [23, 20], [24, 21], [25, 22], [26, 18], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "newTransformer", "code": "  public Transformer newTransformer() throws TransformerConfigurationException\n  {\n      return new TransformerIdentityImpl(m_isSecureProcessing);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "newTemplates", "code": "  public Templates newTemplates(Source source)\n          throws TransformerConfigurationException\n  {\n\n    String baseID = source.getSystemId();\n\n    if (null != baseID) {\n       baseID = SystemIDResolver.getAbsoluteURI(baseID);\n    }\n\n\n    if (source instanceof DOMSource)\n    {\n      DOMSource dsource = (DOMSource) source;\n      Node node = dsource.getNode();\n\n      if (null != node)\n        return processFromNode(node, baseID);\n      else\n      {\n        String messageStr = XSLMessages.createMessage(\n          XSLTErrorResources.ER_ILLEGAL_DOMSOURCE_INPUT, null);\n\n        throw new IllegalArgumentException(messageStr);\n      }\n    }\n\n    TemplatesHandler builder = newTemplatesHandler();\n    builder.setSystemId(baseID);\n    \n    try\n    {\n      InputSource isource = SAXSource.sourceToInputSource(source);\n      isource.setSystemId(baseID);\n      XMLReader reader = null;\n\n      if (source instanceof SAXSource)\n        reader = ((SAXSource) source).getXMLReader();\n        \n      if (null == reader)\n      {\n\n        try\n        {\n          javax.xml.parsers.SAXParserFactory factory =\n            javax.xml.parsers.SAXParserFactory.newInstance();\n\n          factory.setNamespaceAware(true);\n\n          if (m_isSecureProcessing)\n          {\n            try\n            {\n              factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n            }\n            catch (org.xml.sax.SAXException se) {}\n          }\n\n          javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser();\n\n          reader = jaxpParser.getXMLReader();\n        }\n        catch (javax.xml.parsers.ParserConfigurationException ex)\n        {\n          throw new org.xml.sax.SAXException(ex);\n        }\n        catch (javax.xml.parsers.FactoryConfigurationError ex1)\n        {\n          throw new org.xml.sax.SAXException(ex1.toString());\n        }\n        catch (NoSuchMethodError ex2){}\n        catch (AbstractMethodError ame){}\n      }\n\n      if (null == reader)\n        reader = XMLReaderFactory.createXMLReader();\n\n      reader.setContentHandler(builder);\n      reader.parse(isource);\n    }\n    catch (org.xml.sax.SAXException se)\n    {\n      if (m_errorListener != null)\n      {\n        try\n        {\n          m_errorListener.fatalError(new TransformerException(se));\n        }\n        catch (TransformerConfigurationException ex1)\n        {\n          throw ex1;\n        }\n        catch (TransformerException ex1)\n        {\n          throw new TransformerConfigurationException(ex1);\n        }\n      }\n      else\n      {\n        throw new TransformerConfigurationException(se.getMessage(), se);\n      }\n    }\n    catch (Exception e)\n    {\n      if (m_errorListener != null)\n      {\n        try\n        {\n          m_errorListener.fatalError(new TransformerException(e));\n          return null;\n        }\n        catch (TransformerConfigurationException ex1)\n        {\n          throw ex1;\n        }\n        catch (TransformerException ex1)\n        {\n          throw new TransformerConfigurationException(ex1);\n        }\n      }\n      else\n      {\n        throw new TransformerConfigurationException(e.getMessage(), e);\n      }\n    }\n\n    return builder.getTemplates();", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CATCH", "CATCH", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "THROW_RAISE", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "TRY", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "CATCH", "CATCH", "VAR_DECL", "IF", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "CATCH", "RETURN", "CALL", "CATCH", "CATCH", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [0, 16], [4, 17], [5, 18], [9, 19], [10, 20], [2, 21], [2, 22], [11, 23], [12, 24], [13, 25], [2, 26], [3, 27], [4, 28], [4, 29], [4, 30], [18, 31], [6, 32], [19, 33], [20, 34], [11, 35], [23, 36], [12, 37], [24, 38], [13, 39], [14, 40], [15, 41], [28, 42], [28, 43], [5, 44], [19, 45], [19, 46], [33, 47], [20, 48], [20, 49], [34, 50], [35, 51], [37, 52], [37, 53], [37, 54], [37, 55], [37, 56], [37, 57], [37, 58], [28, 59], [28, 60], [42, 61], [43, 62], [29, 63], [44, 64], [45, 65], [46, 66], [46, 67], [46, 68], [48, 69], [49, 70], [49, 71], [54, 72], [55, 73], [37, 74], [37, 75], [59, 76], [65, 77], [66, 78], [67, 79], [68, 80], [46, 81], [69, 82], [70, 83], [71, 84], [49, 85], [72, 86], [73, 87], [74, 88], [56, 89], [57, 90], [75, 91], [58, 92], [60, 93], [78, 94], [81, 95], [83, 96], [85, 97], [86, 98], [90, 99], [93, 100], [90, 101], [101, 102], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 0], [17, 4], [18, 5], [19, 9], [20, 10], [21, 2], [22, 2], [23, 11], [24, 12], [25, 13], [26, 2], [27, 3], [28, 4], [29, 4], [30, 4], [31, 18], [32, 6], [33, 19], [34, 20], [35, 11], [36, 23], [37, 12], [38, 24], [39, 13], [40, 14], [41, 15], [42, 28], [43, 28], [44, 5], [45, 19], [46, 19], [47, 33], [48, 20], [49, 20], [50, 34], [51, 35], [52, 37], [53, 37], [54, 37], [55, 37], [56, 37], [57, 37], [58, 37], [59, 28], [60, 28], [61, 42], [62, 43], [63, 29], [64, 44], [65, 45], [66, 46], [67, 46], [68, 46], [69, 48], [70, 49], [71, 49], [72, 54], [73, 55], [74, 37], [75, 37], [76, 59], [77, 65], [78, 66], [79, 67], [80, 68], [81, 46], [82, 69], [83, 70], [84, 71], [85, 49], [86, 72], [87, 73], [88, 74], [89, 56], [90, 57], [91, 75], [92, 58], [93, 60], [94, 78], [95, 81], [96, 83], [97, 85], [98, 86], [99, 90], [100, 93], [101, 90], [102, 101], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102]]}, {"function_name": "setURIResolver", "code": "  public void setURIResolver(URIResolver resolver)\n  {\n    m_uriResolver = resolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getURIResolver", "code": "  public URIResolver getURIResolver()\n  {\n    return m_uriResolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getErrorListener", "code": "  public ErrorListener getErrorListener()\n  {\n    return m_errorListener;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorListener", "code": "  public void setErrorListener(ErrorListener listener)\n          throws IllegalArgumentException\n  {\n\n    if (null == listener)\n      throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_ERRORLISTENER, null));\n\n    m_errorListener = listener;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isSecureProcessing", "code": "  public boolean isSecureProcessing()\n  {\n    return m_isSecureProcessing;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "TransformerFactoryImpl", "code": "  public TransformerFactoryImpl()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.4-2406", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/DelegateProcessor.java", "language": "java", "name": "org.apache.camel.processor.DelegateProcessor", "code": "public class DelegateProcessor extends ServiceSupport implements Processor {\n    protected Processor processor;\n\n    public DelegateProcessor() {\n    }\n\n    public DelegateProcessor(Processor processor) {\n        if (processor == this) {\n            throw new IllegalArgumentException(\"Recursive DelegateProcessor!\");\n        }\n        this.processor = processor;\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        processNext(exchange);\n    }\n\n    protected void processNext(Exchange exchange) throws Exception {\n        if (processor != null) {\n            processor.process(exchange);\n        }\n    }\n\n    @Override\n    public String toString() {\n        return \"Delegate(\" + processor + \")\";\n    }\n\n    public Processor getProcessor() {\n        return processor;\n    }\n\n    public void setProcessor(Processor processor) {\n        this.processor = processor;\n    }\n\n    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processor);\n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processor);\n    }\n\n    /**\n     * Proceed with the underlying delegated processor\n     */\n    public void proceed(Exchange exchange) throws Exception {\n        processNext(exchange);", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        processNext(exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "processNext", "code": "    protected void processNext(Exchange exchange) throws Exception {\n        if (processor != null) {\n            processor.process(exchange);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Delegate(\" + processor + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getProcessor", "code": "    public Processor getProcessor() {\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessor", "code": "    public void setProcessor(Processor processor) {\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processor);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processor);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "proceed", "code": "    public void proceed(Exchange exchange) throws Exception {\n        processNext(exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DelegateProcessor", "code": "    public DelegateProcessor() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DelegateProcessor", "code": "    public DelegateProcessor(Processor processor) {\n        if (processor == this) {\n            throw new IllegalArgumentException(\"Recursive DelegateProcessor!\");\n        }\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "jedit-4.2-4436", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/EditBus.java", "language": "java", "name": "org.gjt.sp.jedit.EditBus", "code": "public class EditBus\n{\n\t//{{{ addToBus() method\n\t/**\n\t * Adds a component to the bus. It will receive all messages sent\n\t * on the bus.\n\t *\n\t * @param comp The component to add\n\t */\n\tpublic static void addToBus(EBComponent comp)\n\t{\n\t\tsynchronized(components)\n\t\t{\n\t\t\tcomponents.add(comp);\n\t\t\tcopyComponents = null;\n\t\t}\n\t} //}}}\n\n\t//{{{ removeFromBus() method\n\t/**\n\t * Removes a component from the bus.\n\t * @param comp The component to remove\n\t */\n\tpublic static void removeFromBus(EBComponent comp)\n\t{\n\t\tsynchronized(components)\n\t\t{\n\t\t\tcomponents.remove(comp);\n\t\t\tcopyComponents = null;\n\t\t}\n\t} //}}}\n\n\t//{{{ getComponents() method\n\t/**\n\t * Returns an array of all components connected to the bus.\n\t */\n\tpublic static EBComponent[] getComponents()\n\t{\n\t\tsynchronized(components)\n\t\t{\n\t\t\tif (copyComponents == null)\n\t\t\t{\n\t\t\t\tcopyComponents = (EBComponent[])components.toArray(\n\t\t\t\t\tnew EBComponent[components.size()]);\n\t\t\t}\n\t\t\treturn copyComponents;\n\t\t}\n\t} //}}}\n\n\t//{{{ send() method\n\t/**\n\t * Sends a message to all components on the bus in turn.\n\t * @param message The message\n\t */\n\tpublic static void send(EBMessage message)\n\t{\n\t\tLog.log(Log.DEBUG,EditBus.class,message.toString());\n\n\t\t// To avoid any problems if components are added or removed\n\t\t// while the message is being sent\n\t\tEBComponent[] comps = getComponents();\n\n\t\tfor(int i = 0; i < comps.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tEBComponent comp = comps[i];\n\t\t\t\tif(Debug.EB_TIMER)\n\t\t\t\t{\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tcomp.handleMessage(message);\n\t\t\t\t\tlong time = (System.currentTimeMillis() - start);\n\t\t\t\t\tif(time != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.log(Log.DEBUG,EditBus.class,comp + \": \" + time + \" ms\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomps[i].handleMessage(message);\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,EditBus.class,\"Exception\"\n\t\t\t\t\t+ \" while sending message on EditBus:\");\n\t\t\t\tLog.log(Log.ERROR,EditBus.class,t);\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static ArrayList components = new ArrayList();\n\tprivate static EBComponent[] copyComponents;\n\n\t// can't create new instances\n\tprivate EditBus() {}", "functions": [{"function_name": "addToBus", "code": "\tpublic static void addToBus(EBComponent comp)\n\t{\n\t\tsynchronized(components)\n\t\t{\n\t\t\tcomponents.add(comp);\n\t\t\tcopyComponents = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeFromBus", "code": "\tpublic static void removeFromBus(EBComponent comp)\n\t{\n\t\tsynchronized(components)\n\t\t{\n\t\t\tcomponents.remove(comp);\n\t\t\tcopyComponents = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getComponents", "code": "\tpublic static EBComponent[] getComponents()\n\t{\n\t\tsynchronized(components)\n\t\t{\n\t\t\tif (copyComponents == null)\n\t\t\t{\n\t\t\t\tcopyComponents = (EBComponent[])components.toArray(\n\t\t\t\t\tnew EBComponent[components.size()]);\n\t\t\t}\n\t\t\treturn copyComponents;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "send", "code": "\tpublic static void send(EBMessage message)\n\t{\n\t\tLog.log(Log.DEBUG,EditBus.class,message.toString());\n\n\t\t// To avoid any problems if components are added or removed\n\t\t// while the message is being sent\n\t\tEBComponent[] comps = getComponents();\n\n\t\tfor(int i = 0; i < comps.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tEBComponent comp = comps[i];\n\t\t\t\tif(Debug.EB_TIMER)\n\t\t\t\t{\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tcomp.handleMessage(message);\n\t\t\t\t\tlong time = (System.currentTimeMillis() - start);\n\t\t\t\t\tif(time != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.log(Log.DEBUG,EditBus.class,comp + \": \" + time + \" ms\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomps[i].handleMessage(message);\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,EditBus.class,\"Exception\"\n\t\t\t\t\t+ \" while sending message on EditBus:\");\n\t\t\t\tLog.log(Log.ERROR,EditBus.class,t);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "TRY", "CALL", "CALL", "CATCH", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [1, 12], [9, 13], [9, 14], [10, 15], [10, 16], [10, 17], [14, 18], [10, 19], [15, 20], [10, 21], [18, 22], [18, 23], [20, 24], [16, 25], [17, 26], [15, 27], [25, 28], [27, 29], [29, 30], [29, 31], [31, 32], [32, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 1], [13, 9], [14, 9], [15, 10], [16, 10], [17, 10], [18, 14], [19, 10], [20, 15], [21, 10], [22, 18], [23, 18], [24, 20], [25, 16], [26, 17], [27, 15], [28, 25], [29, 27], [30, 29], [31, 29], [32, 31], [33, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "EditBus", "code": "\tprivate EditBus() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.2-4271", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/browser/VFSFileChooserDialog.java", "language": "java", "name": "org.gjt.sp.jedit.browser.VFSFileChooserDialog", "code": "public class VFSFileChooserDialog extends EnhancedDialog\n{\n\t//{{{ VFSFileChooserDialog constructor\n\tpublic VFSFileChooserDialog(View view, String path,\n\t\tint mode, boolean multipleSelection)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"vfs.browser.title\"),true);\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tString name;\n\t\tif(mode == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\tname = null;\n\t\telse if(path == null || path.endsWith(File.separator)\n\t\t\t|| path.endsWith(\"/\"))\n\t\t{\n\t\t\tname = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\tname = vfs.getFileName(path);\n\t\t\tpath = vfs.getParentOfPath(path);\n\t\t}\n\n\t\tbrowser = new VFSBrowser(view,path,mode,multipleSelection,null);\n\t\tbrowser.getBrowserView().getTable().setRequestFocusEnabled(false);\n\t\tbrowser.getBrowserView().getParentDirectoryList()\n\t\t\t.setRequestFocusEnabled(false);\n\t\t/* browser.getBrowserView().getTable().addKeyListener(new KeyHandler()); */\n\t\tbrowser.addBrowserListener(new BrowserHandler());\n\t\tcontent.add(BorderLayout.CENTER,browser);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,0,0,0));\n\n\t\tfilenameField = new VFSFileNameField(browser,null);\n\t\tfilenameField.setText(name);\n\t\tfilenameField.selectAll();\n\t\tBox box = new Box(BoxLayout.Y_AXIS);\n\t\tbox.add(Box.createGlue());\n\t\tbox.add(filenameField);\n\t\tbox.add(Box.createGlue());\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"vfs.browser.dialog.filename\"));\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\n\t\t\t\"vfs.browser.dialog.filename.mnemonic\").charAt(0));\n\t\tlabel.setLabelFor(filenameField);\n\t\tpanel.add(label);\n\t\tpanel.add(Box.createHorizontalStrut(12));\n\n\t\tpanel.add(box);\n\n\t\tpanel.add(Box.createHorizontalStrut(12));\n\n\t\tGUIUtilities.requestFocus(this,filenameField);\n\n\t\tok = new JButton();\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tswitch(mode)\n\t\t{\n\t\tcase VFSBrowser.OPEN_DIALOG:\n\t\tcase VFSBrowser.BROWSER_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.open\"));\n\t\t\tbreak;\n\t\tcase VFSBrowser.CHOOSE_DIRECTORY_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.choose-dir\"));\n\t\t\t// so that it doesn't resize...\n\t\t\tDimension dim = ok.getPreferredSize();\n\t\t\tok.setPreferredSize(dim);\n\t\t\tbreak;\n\t\tcase VFSBrowser.SAVE_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.save\"));\n\t\t\tbreak;\n\t\t}\n\n\t\tok.addActionListener(new ActionHandler());\n\t\tpanel.add(ok);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.addActionListener(new ActionHandler());\n\t\tpanel.add(cancel);\n\n\t\tcontent.add(BorderLayout.SOUTH,panel);\n\n\t\tVFSManager.getIOThreadPool().addProgressListener(\n\t\t\tworkThreadHandler = new WorkThreadHandler());\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,\"vfs.browser.dialog\");\n\t\tsetVisible(true);\n\t} //}}}\n\n\t//{{{ dispose() method\n\tpublic void dispose()\n\t{\n\t\tGUIUtilities.saveGeometry(this,\"vfs.browser.dialog\");\n\t\tVFSManager.getIOThreadPool().removeProgressListener(workThreadHandler);\n\t\tsuper.dispose();\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\tVFS.DirectoryEntry[] files = browser.getSelectedFiles();\n\t\tfilename = filenameField.getText();\n\n\t\tif(files.length != 0)\n\t\t{\n\t\t\tbrowser.filesActivated(VFSBrowser.M_OPEN,false);\n\t\t\treturn;\n\t\t}\n\t\telse if(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG\n\t\t\t&& (filename == null || filename.length() == 0))\n\t\t{\n\t\t\tisOK = true;\n\t\t\tdispose();\n\t\t\treturn;\n\t\t}\n\t\telse if(filename == null || filename.length() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tString bufferDir = browser.getView().getBuffer()\n\t\t\t.getDirectory();\n\t\tif(filename.equals(\"-\"))\n\t\t\tfilename = bufferDir;\n\t\telse if(filename.startsWith(\"-/\")\n\t\t\t|| filename.startsWith(\"-\" + File.separator))\n\t\t{\n\t\t\tfilename = MiscUtilities.constructPath(\n\t\t\t\tbufferDir,filename.substring(2));\n\t\t}\n\n\t\tfinal int[] type = { -1 };\n\t\tfinal String path = MiscUtilities.constructPath(\n\t\t\tbrowser.getDirectory(),filename);\n\t\tfinal VFS vfs = VFSManager.getVFSForPath(path);\n\t\tObject session = vfs.createVFSSession(path,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tVFSManager.runInWorkThread(new GetFileTypeRequest(\n\t\t\tvfs,session,path,type));\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tswitch(type[0])\n\t\t\t\t{\n\t\t\t\tcase VFS.DirectoryEntry.FILE:\n\t\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tif(vfs instanceof FileVFS)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(doFileExistsWarning(path))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tisOK = true;\n\t\t\t\t\tif(browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t\t\t\t{\n\t\t\t\t\t\tHashtable props = new Hashtable();\n\t\t\t\t\t\tprops.put(Buffer.ENCODING,browser.currentEncoding);\n\t\t\t\t\t\tjEdit.openFile(browser.getView(),\n\t\t\t\t\t\t\tbrowser.getDirectory(),\n\t\t\t\t\t\t\tpath,false,props);\n\t\t\t\t\t}\n\t\t\t\t\tdispose();\n\t\t\t\t\tbreak;\n\t\t\t\tcase VFS.DirectoryEntry.DIRECTORY:\n\t\t\t\tcase VFS.DirectoryEntry.FILESYSTEM:\n\t\t\t\t\tbrowser.setDirectory(path);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ getSelectedFiles() method\n\tpublic String[] getSelectedFiles()\n\t{\n\t\tif(!isOK)\n\t\t\treturn null;\n\n\t\t//String filename = filenameField.getText();\n\n\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\treturn new String[] { browser.getDirectory() };\n\t\t}\n\t\telse if(filename != null && filename.length() != 0)\n\t\t{\n\t\t\tString path = browser.getDirectory();\n\t\t\treturn new String[] { MiscUtilities.constructPath(\n\t\t\t\tpath,filename) };\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVector vector = new Vector();\n\t\t\tVFS.DirectoryEntry[] selectedFiles = browser.getSelectedFiles();\n\t\t\tfor(int i = 0; i < selectedFiles.length; i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = selectedFiles[i];\n\t\t\t\tif(file.type == VFS.DirectoryEntry.FILE)\n\t\t\t\t\tvector.addElement(file.path);\n\t\t\t}\n\t\t\tString[] retVal = new String[vector.size()];\n\t\t\tvector.copyInto(retVal);\n\t\t\treturn retVal;\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate VFSBrowser browser;\n\tprivate VFSFileNameField filenameField;\n\tprivate String filename;\n\tprivate JButton ok;\n\tprivate JButton cancel;\n\tprivate boolean isOK;\n\tprivate WorkThreadHandler workThreadHandler;\n\t//}}}\n\n\t//{{{ doFileExistsWarning() method\n\tprivate boolean doFileExistsWarning(String filename)\n\t{\n\t\tif(browser.getMode() == VFSBrowser.SAVE_DIALOG\n\t\t\t&& new File(filename).exists())\n\t\t{\n\t\t\tString[] args = { MiscUtilities.getFileName(filename) };\n\t\t\tint result = GUIUtilities.confirm(browser,\n\t\t\t\t\"fileexists\",args,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == ok)\n\t\t\t{\n\t\t\t\tif(!browser.getDirectory().equals(\n\t\t\t\t\tbrowser.getDirectoryField().getText()))\n\t\t\t\t{\n\t\t\t\t\tbrowser.setDirectory(browser.getDirectoryField().getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tok();\n\t\t\t}\n\t\t\telse if(evt.getSource() == cancel)\n\t\t\t\tcancel();\n\t\t}\n\t} //}}}\n\n\t//{{{ BrowserHandler class\n\tclass BrowserHandler implements BrowserListener\n\t{\n\t\t//{{{ filesSelected() method\n\t\tpublic void filesSelected(VFSBrowser browser, VFS.DirectoryEntry[] files)\n\t\t{\n\t\t\tif(files.length == 0)\n\t\t\t{\n\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t{\n\t\t\t\t\tok.setText(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.browser.dialog.choose-dir\"));\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(files.length == 1)\n\t\t\t{\n\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t{\n\t\t\t\t\tok.setText(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.browser.dialog.open\"));\n\t\t\t\t}\n\n\t\t\t\tVFS.DirectoryEntry file = files[0];\n\t\t\t\tif(file.type == VFS.DirectoryEntry.FILE)\n\t\t\t\t{\n\t\t\t\t\tString path = file.path;\n\t\t\t\t\tString directory = browser.getDirectory();\n\t\t\t\t\tString parent = MiscUtilities\n\t\t\t\t\t\t.getParentOfPath(path);\n\t\t\t\t\tif(VFSBrowser.pathsEqual(parent,directory))\n\t\t\t\t\t\tpath = file.name;\n\n\t\t\t\t\tfilenameField.setText(path);\n\t\t\t\t\tfilenameField.selectAll();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t{\n\t\t\t\t\tok.setText(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.browser.dialog.open\"));\n\t\t\t\t}\n\n\t\t\t\tfilenameField.setText(null);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ filesActivated() method\n\t\tpublic void filesActivated(VFSBrowser browser, VFS.DirectoryEntry[] files)\n\t\t{\n\t\t\tfilenameField.selectAll();\n\n\t\t\tif(files.length == 0)\n\t\t\t{\n\t\t\t\t// user pressed enter when the vfs table or\n\t\t\t\t// file name field has focus, with nothing\n\t\t\t\t// selected.\n\t\t\t\tok();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tif(files[i].type == VFS.DirectoryEntry.FILE)\n\t\t\t\t{\n\t\t\t\t\tString path = files[i].path;\n\t\t\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\t\t\tif(browser.getMode() == VFSBrowser.SAVE_DIALOG\n\t\t\t\t\t\t&& vfs instanceof FileVFS)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(doFileExistsWarning(path))\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tisOK = true;\n\t\t\t\t\tfilenameField.setText(null);\n\t\t\t\t\tif(browser.getMode() != VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t\t{\n\t\t\t\t\t\tdispose();\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ KeyHandler class\n\tclass KeyHandler extends KeyAdapter\n\t{\n\t\tpublic void keyTyped(KeyEvent evt)\n\t\t{\n\t\t\tswitch(evt.getKeyChar())\n\t\t\t{\n\t\t\tcase '/':\n\t\t\tcase '-':\n\t\t\tcase '~':\n\t\t\t\tfilenameField.processKeyEvent(evt);\n\t\t\t\tfilenameField.requestFocus();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ WorkThreadListener class\n\tclass WorkThreadHandler implements WorkThreadProgressListener\n\t{\n\t\t//{{{ statusUpdate() method\n\t\tpublic void statusUpdate(final WorkThreadPool threadPool,\n\t\t\tfinal int threadIndex)\n\t\t{\n\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tint requestCount = threadPool.getRequestCount();\n\t\t\t\t\tif(requestCount == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tgetContentPane().setCursor(\n\t\t\t\t\t\t\tCursor.getDefaultCursor());\n\t\t\t\t\t}\n\t\t\t\t\telse if(requestCount >= 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tgetContentPane().setCursor(\n\t\t\t\t\t\t\tCursor.getPredefinedCursor(\n\t\t\t\t\t\t\tCursor.WAIT_CURSOR));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} //}}}\n\n\t\t//{{{ progressUpdate() method\n\t\tpublic void progressUpdate(WorkThreadPool threadPool, int threadIndex)\n\t\t{\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ GetFileTypeRequest class\n\tclass GetFileTypeRequest implements Runnable\n\t{\n\t\tVFS    vfs;\n\t\tObject session;\n\t\tString path;\n\t\tint[]  type;\n\n\t\tGetFileTypeRequest(VFS vfs, Object session,\n\t\t\tString path, int[] type)\n\t\t{\n\t\t\tthis.vfs     = vfs;\n\t\t\tthis.session = session;\n\t\t\tthis.path    = path;\n\t\t\tthis.type    = type;\n\t\t}\n\n\t\tpublic void run()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry entry\n\t\t\t\t\t= vfs._getDirectoryEntry(\n\t\t\t\t\t\tsession,\n\t\t\t\t\t\tpath,\n\t\t\t\t\t\tbrowser);\n\t\t\t\tif(entry == null)\n\t\t\t\t{\n\t\t\t\t\t// non-existent file\n\t\t\t\t\ttype[0] = VFS.DirectoryEntry.FILE;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttype[0] = entry.type;\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t\tVFSManager.error(browser,path,\n\t\t\t\t\t\"ioerror\",\n\t\t\t\t\tnew String[]\n\t\t\t\t\t{ e.toString() });\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tvfs._endVFSSession(\n\t\t\t\t\t\tsession,\n\t\t\t\t\t\tbrowser);\n\t\t\t\t}\n\t\t\t\tcatch(IOException e)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t\t\tVFSManager.error(browser,path,\n\t\t\t\t\t\t\"ioerror\",\n\t\t\t\t\t\tnew String[]\n\t\t\t\t\t\t{ e.toString() });\n\t\t\t\t\treturn;", "functions": [{"function_name": "dispose", "code": "\tpublic void dispose()\n\t{\n\t\tGUIUtilities.saveGeometry(this,\"vfs.browser.dialog\");\n\t\tVFSManager.getIOThreadPool().removeProgressListener(workThreadHandler);\n\t\tsuper.dispose();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tVFS.DirectoryEntry[] files = browser.getSelectedFiles();\n\t\tfilename = filenameField.getText();\n\n\t\tif(files.length != 0)\n\t\t{\n\t\t\tbrowser.filesActivated(VFSBrowser.M_OPEN,false);\n\t\t\treturn;\n\t\t}\n\t\telse if(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG\n\t\t\t&& (filename == null || filename.length() == 0))\n\t\t{\n\t\t\tisOK = true;\n\t\t\tdispose();\n\t\t\treturn;\n\t\t}\n\t\telse if(filename == null || filename.length() == 0)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tString bufferDir = browser.getView().getBuffer()\n\t\t\t.getDirectory();\n\t\tif(filename.equals(\"-\"))\n\t\t\tfilename = bufferDir;\n\t\telse if(filename.startsWith(\"-/\")\n\t\t\t|| filename.startsWith(\"-\" + File.separator))\n\t\t{\n\t\t\tfilename = MiscUtilities.constructPath(\n\t\t\t\tbufferDir,filename.substring(2));\n\t\t}\n\n\t\tfinal int[] type = { -1 };\n\t\tfinal String path = MiscUtilities.constructPath(\n\t\t\tbrowser.getDirectory(),filename);\n\t\tfinal VFS vfs = VFSManager.getVFSForPath(path);\n\t\tObject session = vfs.createVFSSession(path,this);\n\t\tif(session == null)\n\t\t\treturn;\n\n\t\tVFSManager.runInWorkThread(new GetFileTypeRequest(\n\t\t\tvfs,session,path,type));\n\t\tVFSManager.runInAWTThread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tswitch(type[0])\n\t\t\t\t{\n\t\t\t\tcase VFS.DirectoryEntry.FILE:\n\t\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tif(vfs instanceof FileVFS)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(doFileExistsWarning(path))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tisOK = true;\n\t\t\t\t\tif(browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t\t\t\t{\n\t\t\t\t\t\tHashtable props = new Hashtable();\n\t\t\t\t\t\tprops.put(Buffer.ENCODING,browser.currentEncoding);\n\t\t\t\t\t\tjEdit.openFile(browser.getView(),\n\t\t\t\t\t\t\tbrowser.getDirectory(),\n\t\t\t\t\t\t\tpath,false,props);\n\t\t\t\t\t}\n\t\t\t\t\tdispose();\n\t\t\t\t\tbreak;\n\t\t\t\tcase VFS.DirectoryEntry.DIRECTORY:\n\t\t\t\tcase VFS.DirectoryEntry.FILESYSTEM:\n\t\t\t\t\tbrowser.setDirectory(path);\n\t\t\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "FUNC_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "SWITCH", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [6, 14], [6, 15], [8, 16], [8, 17], [0, 18], [10, 19], [11, 20], [13, 21], [2, 22], [3, 23], [4, 24], [14, 25], [6, 26], [15, 27], [7, 28], [16, 29], [16, 30], [8, 31], [17, 32], [18, 33], [9, 34], [19, 35], [24, 36], [5, 37], [25, 38], [25, 39], [28, 40], [28, 41], [29, 42], [16, 43], [30, 44], [30, 45], [8, 46], [35, 47], [14, 48], [38, 49], [39, 50], [29, 51], [42, 52], [42, 53], [16, 54], [16, 55], [44, 56], [44, 57], [45, 58], [46, 59], [48, 60], [49, 61], [29, 62], [52, 63], [52, 64], [53, 65], [55, 66], [56, 67], [56, 68], [57, 69], [47, 70], [47, 71], [47, 72], [47, 73], [47, 74], [60, 75], [62, 76], [47, 77], [47, 78], [72, 79], [47, 80], [73, 81], [74, 82], [74, 83], [47, 84], [75, 85], [72, 86], [79, 87], [80, 88], [73, 89], [83, 90], [72, 91], [72, 92], [89, 93], [89, 94], [91, 95], [91, 96], [91, 97], [86, 98], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 6], [15, 6], [16, 8], [17, 8], [18, 0], [19, 10], [20, 11], [21, 13], [22, 2], [23, 3], [24, 4], [25, 14], [26, 6], [27, 15], [28, 7], [29, 16], [30, 16], [31, 8], [32, 17], [33, 18], [34, 9], [35, 19], [36, 24], [37, 5], [38, 25], [39, 25], [40, 28], [41, 28], [42, 29], [43, 16], [44, 30], [45, 30], [46, 8], [47, 35], [48, 14], [49, 38], [50, 39], [51, 29], [52, 42], [53, 42], [54, 16], [55, 16], [56, 44], [57, 44], [58, 45], [59, 46], [60, 48], [61, 49], [62, 29], [63, 52], [64, 52], [65, 53], [66, 55], [67, 56], [68, 56], [69, 57], [70, 47], [71, 47], [72, 47], [73, 47], [74, 47], [75, 60], [76, 62], [77, 47], [78, 47], [79, 72], [80, 47], [81, 73], [82, 74], [83, 74], [84, 47], [85, 75], [86, 72], [87, 79], [88, 80], [89, 73], [90, 83], [91, 72], [92, 72], [93, 89], [94, 89], [95, 91], [96, 91], [97, 91], [98, 86], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSelectedFiles", "code": "\tpublic String[] getSelectedFiles()\n\t{\n\t\tif(!isOK)\n\t\t\treturn null;\n\n\t\t//String filename = filenameField.getText();\n\n\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\treturn new String[] { browser.getDirectory() };\n\t\t}\n\t\telse if(filename != null && filename.length() != 0)\n\t\t{\n\t\t\tString path = browser.getDirectory();\n\t\t\treturn new String[] { MiscUtilities.constructPath(\n\t\t\t\tpath,filename) };\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVector vector = new Vector();\n\t\t\tVFS.DirectoryEntry[] selectedFiles = browser.getSelectedFiles();\n\t\t\tfor(int i = 0; i < selectedFiles.length; i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = selectedFiles[i];\n\t\t\t\tif(file.type == VFS.DirectoryEntry.FILE)\n\t\t\t\t\tvector.addElement(file.path);\n\t\t\t}\n\t\t\tString[] retVal = new String[vector.size()];\n\t\t\tvector.copyInto(retVal);\n\t\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [5, 9], [3, 10], [3, 11], [3, 12], [3, 13], [3, 14], [3, 15], [3, 16], [6, 17], [6, 18], [3, 19], [12, 20], [17, 21], [17, 22], [18, 23], [12, 24], [12, 25], [13, 26], [14, 27], [16, 28], [7, 29], [11, 30], [24, 31], [12, 32], [15, 33], [24, 34], [1, 0], [2, 0], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [9, 5], [10, 3], [11, 3], [12, 3], [13, 3], [14, 3], [15, 3], [16, 3], [17, 6], [18, 6], [19, 3], [20, 12], [21, 17], [22, 17], [23, 18], [24, 12], [25, 12], [26, 13], [27, 14], [28, 16], [29, 7], [30, 11], [31, 24], [32, 12], [33, 15], [34, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "doFileExistsWarning", "code": "\tprivate boolean doFileExistsWarning(String filename)\n\t{\n\t\tif(browser.getMode() == VFSBrowser.SAVE_DIALOG\n\t\t\t&& new File(filename).exists())\n\t\t{\n\t\t\tString[] args = { MiscUtilities.getFileName(filename) };\n\t\t\tint result = GUIUtilities.confirm(browser,\n\t\t\t\t\"fileexists\",args,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [5, 10], [6, 11], [6, 12], [9, 13], [10, 14], [11, 15], [7, 16], [16, 17], [8, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 5], [11, 6], [12, 6], [13, 9], [14, 10], [15, 11], [16, 7], [17, 16], [18, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "VFSFileChooserDialog", "code": "\tpublic VFSFileChooserDialog(View view, String path,\n\t\tint mode, boolean multipleSelection)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"vfs.browser.title\"),true);\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tString name;\n\t\tif(mode == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\tname = null;\n\t\telse if(path == null || path.endsWith(File.separator)\n\t\t\t|| path.endsWith(\"/\"))\n\t\t{\n\t\t\tname = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\tname = vfs.getFileName(path);\n\t\t\tpath = vfs.getParentOfPath(path);\n\t\t}\n\n\t\tbrowser = new VFSBrowser(view,path,mode,multipleSelection,null);\n\t\tbrowser.getBrowserView().getTable().setRequestFocusEnabled(false);\n\t\tbrowser.getBrowserView().getParentDirectoryList()\n\t\t\t.setRequestFocusEnabled(false);\n\t\t/* browser.getBrowserView().getTable().addKeyListener(new KeyHandler()); */\n\t\tbrowser.addBrowserListener(new BrowserHandler());\n\t\tcontent.add(BorderLayout.CENTER,browser);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,0,0,0));\n\n\t\tfilenameField = new VFSFileNameField(browser,null);\n\t\tfilenameField.setText(name);\n\t\tfilenameField.selectAll();\n\t\tBox box = new Box(BoxLayout.Y_AXIS);\n\t\tbox.add(Box.createGlue());\n\t\tbox.add(filenameField);\n\t\tbox.add(Box.createGlue());\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"vfs.browser.dialog.filename\"));\n\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\n\t\t\t\"vfs.browser.dialog.filename.mnemonic\").charAt(0));\n\t\tlabel.setLabelFor(filenameField);\n\t\tpanel.add(label);\n\t\tpanel.add(Box.createHorizontalStrut(12));\n\n\t\tpanel.add(box);\n\n\t\tpanel.add(Box.createHorizontalStrut(12));\n\n\t\tGUIUtilities.requestFocus(this,filenameField);\n\n\t\tok = new JButton();\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tswitch(mode)\n\t\t{\n\t\tcase VFSBrowser.OPEN_DIALOG:\n\t\tcase VFSBrowser.BROWSER_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.open\"));\n\t\t\tbreak;\n\t\tcase VFSBrowser.CHOOSE_DIRECTORY_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.choose-dir\"));\n\t\t\t// so that it doesn't resize...\n\t\t\tDimension dim = ok.getPreferredSize();\n\t\t\tok.setPreferredSize(dim);\n\t\t\tbreak;\n\t\tcase VFSBrowser.SAVE_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.save\"));\n\t\t\tbreak;\n\t\t}\n\n\t\tok.addActionListener(new ActionHandler());\n\t\tpanel.add(ok);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.addActionListener(new ActionHandler());\n\t\tpanel.add(cancel);\n\n\t\tcontent.add(BorderLayout.SOUTH,panel);\n\n\t\tVFSManager.getIOThreadPool().addProgressListener(\n\t\t\tworkThreadHandler = new WorkThreadHandler());\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,\"vfs.browser.dialog\");\n\t\tsetVisible(true);", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "VAR_DECL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [5, 45], [5, 46], [0, 47], [0, 48], [0, 49], [0, 50], [12, 51], [13, 52], [15, 53], [18, 54], [19, 55], [20, 56], [22, 57], [1, 58], [1, 59], [1, 60], [1, 61], [23, 62], [24, 63], [26, 64], [28, 65], [31, 66], [2, 67], [32, 68], [34, 69], [3, 70], [37, 71], [38, 72], [39, 73], [4, 74], [41, 75], [42, 76], [42, 77], [43, 78], [43, 79], [44, 80], [45, 81], [5, 82], [48, 83], [7, 84], [50, 85], [53, 86], [55, 87], [56, 88], [1, 89], [1, 90], [1, 91], [1, 92], [64, 93], [65, 94], [66, 95], [66, 96], [67, 97], [71, 98], [72, 99], [72, 100], [72, 101], [72, 102], [76, 103], [78, 104], [80, 105], [45, 106], [81, 107], [81, 108], [82, 109], [83, 110], [83, 111], [83, 112], [83, 113], [84, 114], [86, 115], [87, 116], [89, 117], [60, 118], [91, 119], [92, 120], [96, 121], [97, 122], [45, 123], [45, 124], [45, 125], [107, 126], [108, 127], [108, 128], [117, 129], [119, 130], [120, 131], [123, 132], [124, 133], [106, 134], [125, 135], [128, 136], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 5], [46, 5], [47, 0], [48, 0], [49, 0], [50, 0], [51, 12], [52, 13], [53, 15], [54, 18], [55, 19], [56, 20], [57, 22], [58, 1], [59, 1], [60, 1], [61, 1], [62, 23], [63, 24], [64, 26], [65, 28], [66, 31], [67, 2], [68, 32], [69, 34], [70, 3], [71, 37], [72, 38], [73, 39], [74, 4], [75, 41], [76, 42], [77, 42], [78, 43], [79, 43], [80, 44], [81, 45], [82, 5], [83, 48], [84, 7], [85, 50], [86, 53], [87, 55], [88, 56], [89, 1], [90, 1], [91, 1], [92, 1], [93, 64], [94, 65], [95, 66], [96, 66], [97, 67], [98, 71], [99, 72], [100, 72], [101, 72], [102, 72], [103, 76], [104, 78], [105, 80], [106, 45], [107, 81], [108, 81], [109, 82], [110, 83], [111, 83], [112, 83], [113, 83], [114, 84], [115, 86], [116, 87], [117, 89], [118, 60], [119, 91], [120, 92], [121, 96], [122, 97], [123, 45], [124, 45], [125, 45], [126, 107], [127, 108], [128, 108], [129, 117], [130, 119], [131, 120], [132, 123], [133, 124], [134, 106], [135, 125], [136, 128], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136]]}], "label": 1}
{"sample_id": "xalan-2.7-8499", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/lib/ExsltMath.java", "language": "java", "name": "org.apache.xalan.lib.ExsltMath", "code": "public class ExsltMath extends ExsltBase\n{\n  private static String PI = \"3.1415926535897932384626433832795028841971693993751\";\n  private static String E  = \"2.71828182845904523536028747135266249775724709369996\";\n  private static String SQRRT2 = \"1.41421356237309504880168872420969807856967187537694\";\n  private static String LN2 = \"0.69314718055994530941723212145817656807550013436025\";\n  private static String LN10 = \"2.302585092994046\";\n  private static String LOG2E = \"1.4426950408889633\";\n  private static String SQRT1_2 = \"0.7071067811865476\";\n\t\n  /**\n   * The math:max function returns the maximum value of the nodes passed as the argument. \n   * The maximum value is defined as follows. The node set passed as an argument is sorted \n   * in descending order as it would be by xsl:sort with a data type of number. The maximum \n   * is the result of converting the string value of the first node in this sorted list to \n   * a number using the number function. \n   * <p>\n   * If the node set is empty, or if the result of converting the string values of any of the \n   * nodes to a number is NaN, then NaN is returned.\n   * \n   * @param nl The NodeList for the node-set to be evaluated.\n   * \n   * @return the maximum value found, NaN if any node cannot be converted to a number.\n   * \n   */\n  public static double max (NodeList nl)\n  {\n    if (nl == null || nl.getLength() == 0)\n      return Double.NaN;\n      \n    double m = - Double.MAX_VALUE;\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node n = nl.item(i);\n      double d = toNumber(n);\n      if (Double.isNaN(d))\n        return Double.NaN;\n      else if (d > m)\n        m = d;\n    }\n  \t\n    return m;  \t\n  }\n\n  /**\n   * The math:min function returns the minimum value of the nodes passed as the argument. \n   * The minimum value is defined as follows. The node set passed as an argument is sorted \n   * in ascending order as it would be by xsl:sort with a data type of number. The minimum \n   * is the result of converting the string value of the first node in this sorted list to \n   * a number using the number function. \n   * <p>\n   * If the node set is empty, or if the result of converting the string values of any of \n   * the nodes to a number is NaN, then NaN is returned.\n   * \n   * @param nl The NodeList for the node-set to be evaluated.\n   * \n   * @return the minimum value found, NaN if any node cannot be converted to a number.\n   * \n   */\n  public static double min (NodeList nl)\n  {\n    if (nl == null || nl.getLength() == 0)\n      return Double.NaN;\n\n    double m = Double.MAX_VALUE;\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node n = nl.item(i);\n      double d = toNumber(n);\n      if (Double.isNaN(d))\n        return Double.NaN;\n      else if (d < m)\n        m = d;\n    }\n    \n    return m;\n  }\n  \n  /**\n   * The math:highest function returns the nodes in the node set whose value is the maximum \n   * value for the node set. The maximum value for the node set is the same as the value as \n   * calculated by math:max. A node has this maximum value if the result of converting its \n   * string value to a number as if by the number function is equal to the maximum value, \n   * where the equality comparison is defined as a numerical comparison using the = operator.\n   * <p>\n   * If any of the nodes in the node set has a non-numeric value, the math:max function will \n   * return NaN. The definition numeric comparisons entails that NaN != NaN. Therefore if any \n   * of the nodes in the node set has a non-numeric value, math:highest will return an empty \n   * node set. \n   * \n   * @param nl The NodeList for the node-set to be evaluated.\n   * \n   * @return node-set with nodes containing the maximum value found, an empty node-set\n   * if any node cannot be converted to a number.\n   */\n  public static NodeList highest (NodeList nl)\n  {        \n    double maxValue = max(nl);\n\n    NodeSet highNodes = new NodeSet();\n    highNodes.setShouldCacheNodes(true);    \n    \n    if (Double.isNaN(maxValue))\n    \n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node n = nl.item(i);\n      double d = toNumber(n); \n      if (d == maxValue)\n        highNodes.addElement(n);\n    }\n    return highNodes;\n  }\n  \n  /**\n   * The math:lowest function returns the nodes in the node set whose value is the minimum value \n   * for the node set. The minimum value for the node set is the same as the value as calculated \n   * by math:min. A node has this minimum value if the result of converting its string value to \n   * a number as if by the number function is equal to the minimum value, where the equality \n   * comparison is defined as a numerical comparison using the = operator.\n   * <p>\n   * If any of the nodes in the node set has a non-numeric value, the math:min function will return \n   * NaN. The definition numeric comparisons entails that NaN != NaN. Therefore if any of the nodes \n   * in the node set has a non-numeric value, math:lowest will return an empty node set.\n   * \n   * @param nl The NodeList for the node-set to be evaluated.\n   * \n   * @return node-set with nodes containing the minimum value found, an empty node-set\n   * if any node cannot be converted to a number.\n   * \n   */\n  public static NodeList lowest (NodeList nl)\n  {\n    double minValue = min(nl);\n\n    NodeSet lowNodes = new NodeSet();\n    lowNodes.setShouldCacheNodes(true);\n    \n    if (Double.isNaN(minValue))\n    \n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node n = nl.item(i);\n      double d = toNumber(n); \n      if (d == minValue)\n        lowNodes.addElement(n);\n    }\n    return lowNodes;\n  }\n  \n  /**\n   * The math:abs function returns the absolute value of a number.\n   *\n   * @param num A number\n   * @return The absolute value of the number\n   */\n   public static double abs(double num)\n   {\n     return Math.abs(num);\n   }\n\n  /**\n   * The math:acos function returns the arccosine value of a number.\n   *\n   * @param num A number\n   * @return The arccosine value of the number\n   */\n   public static double acos(double num)\n   {\n     return Math.acos(num);\n   }\n\n  /**\n   * The math:asin function returns the arcsine value of a number. \n   *\n   * @param num A number\n   * @return The arcsine value of the number\n   */\n   public static double asin(double num)\n   {\n     return Math.asin(num);\n   }\n\n  /**\n   * The math:atan function returns the arctangent value of a number. \n   *\n   * @param num A number\n   * @return The arctangent value of the number\n   */\n   public static double atan(double num)\n   {\n     return Math.atan(num);\n   }\n  \n  /**\n   * The math:atan2 function returns the angle ( in radians ) from the X axis to a point (y,x). \n   *\n   * @param num1 The X axis value\n   * @param num2 The Y axis value\n   * @return The angle (in radians) from the X axis to a point (y,x)\n   */\n   public static double atan2(double num1, double num2)\n   {\n     return Math.atan2(num1, num2);\n   }\n\n  /**\n   * The math:cos function returns cosine of the passed argument. \n   *\n   * @param num A number\n   * @return The cosine value of the number\n   */\n   public static double cos(double num)\n   {\n     return Math.cos(num);\n   }\n\n  /**\n   * The math:exp function returns e (the base of natural logarithms) raised to a power. \n   *\n   * @param num A number\n   * @return The value of e raised to the given power\n   */\n   public static double exp(double num)\n   {\n     return Math.exp(num);\n   }\n\n  /**\n   * The math:log function returns the natural logarithm of a number. \n   *\n   * @param num A number\n   * @return The natural logarithm of the number\n   */\n   public static double log(double num)\n   {\n     return Math.log(num);\n   }\n\n  /**\n   * The math:power function returns the value of a base expression taken to a specified power. \n   *\n   * @param num1 The base\n   * @param num2 The power\n   * @return The value of the base expression taken to the specified power\n   */\n   public static double power(double num1, double num2)\n   {\n     return Math.pow(num1, num2);\n   }\n\n  /**\n   * The math:random function returns a random number from 0 to 1. \n   *\n   * @return A random double from 0 to 1\n   */\n   public static double random()\n   {\n     return Math.random();\n   }\n\n  /**\n   * The math:sin function returns the sine of the number. \n   *\n   * @param num A number\n   * @return The sine value of the number\n   */\n   public static double sin(double num)\n   {\n     return Math.sin(num);\n   }\n\n  /**\n   * The math:sqrt function returns the square root of a number. \n   *\n   * @param num A number\n   * @return The square root of the number\n   */\n   public static double sqrt(double num)\n   {\n     return Math.sqrt(num);\n   }\n\n  /**\n   * The math:tan function returns the tangent of the number passed as an argument. \n   *\n   * @param num A number\n   * @return The tangent value of the number\n   */\n   public static double tan(double num)\n   {\n     return Math.tan(num);\n   }\n\n  /**\n   * The math:constant function returns the specified constant to a set precision. \n   * The possible constants are:\n   * <pre>\n   *  PI\n   *  E\n   *  SQRRT2\n   *  LN2\n   *  LN10\n   *  LOG2E\n   *  SQRT1_2\n   * </pre>\n   * @param name The name of the constant\n   * @param precision The precision\n   * @return The value of the specified constant to the given precision\n   */\n   public static double constant(String name, double precision)\n   {\n     String value = null;\n     if (name.equals(\"PI\"))\n       value = PI;\n     else if (name.equals(\"E\"))\n       value = E;\n     else if (name.equals(\"SQRRT2\"))\n       value = SQRRT2;\n     else if (name.equals(\"LN2\"))\n       value = LN2;\n     else if (name.equals(\"LN10\"))\n       value = LN10;\n     else if (name.equals(\"LOG2E\"))\n       value = LOG2E;\n     else if (name.equals(\"SQRT1_2\"))\n       value = SQRT1_2;\n     \n     if (value != null)\n     {\n       int bits = new Double(precision).intValue();\n       \n       if (bits <= value.length())\n         value = value.substring(0, bits);\n         \n       return new Double(value).doubleValue();\n     }\n     else\n       return Double.NaN;", "functions": [{"function_name": "max", "code": "  public static double max (NodeList nl)\n  {\n    if (nl == null || nl.getLength() == 0)\n      return Double.NaN;\n      \n    double m = - Double.MAX_VALUE;\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node n = nl.item(i);\n      double d = toNumber(n);\n      if (Double.isNaN(d))\n        return Double.NaN;\n      else if (d > m)\n        m = d;\n    }\n  \t\n    return m;  \t", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [4, 8], [2, 9], [2, 10], [2, 11], [6, 12], [8, 13], [8, 14], [9, 15], [9, 16], [9, 17], [2, 18], [13, 19], [13, 20], [14, 21], [15, 22], [10, 23], [11, 24], [15, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 4], [9, 2], [10, 2], [11, 2], [12, 6], [13, 8], [14, 8], [15, 9], [16, 9], [17, 9], [18, 2], [19, 13], [20, 13], [21, 14], [22, 15], [23, 10], [24, 11], [25, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "min", "code": "  public static double min (NodeList nl)\n  {\n    if (nl == null || nl.getLength() == 0)\n      return Double.NaN;\n\n    double m = Double.MAX_VALUE;\n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node n = nl.item(i);\n      double d = toNumber(n);\n      if (Double.isNaN(d))\n        return Double.NaN;\n      else if (d < m)\n        m = d;\n    }\n    \n    return m;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [4, 7], [4, 8], [2, 9], [2, 10], [2, 11], [6, 12], [8, 13], [8, 14], [9, 15], [9, 16], [9, 17], [2, 18], [13, 19], [13, 20], [14, 21], [15, 22], [10, 23], [11, 24], [15, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 4], [8, 4], [9, 2], [10, 2], [11, 2], [12, 6], [13, 8], [14, 8], [15, 9], [16, 9], [17, 9], [18, 2], [19, 13], [20, 13], [21, 14], [22, 15], [23, 10], [24, 11], [25, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "highest", "code": "  public static NodeList highest (NodeList nl)\n  {        \n    double maxValue = max(nl);\n\n    NodeSet highNodes = new NodeSet();\n    highNodes.setShouldCacheNodes(true);    \n    \n    if (Double.isNaN(maxValue))\n    \n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node n = nl.item(i);\n      double d = toNumber(n); \n      if (d == maxValue)\n        highNodes.addElement(n);\n    }\n    return highNodes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LOOP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [0, 8], [6, 9], [8, 10], [3, 11], [4, 12], [6, 13], [6, 14], [6, 15], [9, 16], [13, 17], [6, 18], [13, 19], [14, 20], [15, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 0], [9, 6], [10, 8], [11, 3], [12, 4], [13, 6], [14, 6], [15, 6], [16, 9], [17, 13], [18, 6], [19, 13], [20, 14], [21, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "lowest", "code": "  public static NodeList lowest (NodeList nl)\n  {\n    double minValue = min(nl);\n\n    NodeSet lowNodes = new NodeSet();\n    lowNodes.setShouldCacheNodes(true);\n    \n    if (Double.isNaN(minValue))\n    \n    for (int i = 0; i < nl.getLength(); i++)\n    {\n      Node n = nl.item(i);\n      double d = toNumber(n); \n      if (d == minValue)\n        lowNodes.addElement(n);\n    }\n    return lowNodes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LOOP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [0, 8], [6, 9], [8, 10], [3, 11], [4, 12], [6, 13], [6, 14], [6, 15], [9, 16], [13, 17], [6, 18], [13, 19], [14, 20], [15, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 0], [9, 6], [10, 8], [11, 3], [12, 4], [13, 6], [14, 6], [15, 6], [16, 9], [17, 13], [18, 6], [19, 13], [20, 14], [21, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "abs", "code": "   public static double abs(double num)\n   {\n     return Math.abs(num);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "acos", "code": "   public static double acos(double num)\n   {\n     return Math.acos(num);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "asin", "code": "   public static double asin(double num)\n   {\n     return Math.asin(num);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "atan", "code": "   public static double atan(double num)\n   {\n     return Math.atan(num);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "atan2", "code": "   public static double atan2(double num1, double num2)\n   {\n     return Math.atan2(num1, num2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "cos", "code": "   public static double cos(double num)\n   {\n     return Math.cos(num);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "exp", "code": "   public static double exp(double num)\n   {\n     return Math.exp(num);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "log", "code": "   public static double log(double num)\n   {\n     return Math.log(num);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "power", "code": "   public static double power(double num1, double num2)\n   {\n     return Math.pow(num1, num2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "random", "code": "   public static double random()\n   {\n     return Math.random();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "sin", "code": "   public static double sin(double num)\n   {\n     return Math.sin(num);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "sqrt", "code": "   public static double sqrt(double num)\n   {\n     return Math.sqrt(num);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "tan", "code": "   public static double tan(double num)\n   {\n     return Math.tan(num);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "constant", "code": "   public static double constant(String name, double precision)\n   {\n     String value = null;\n     if (name.equals(\"PI\"))\n       value = PI;\n     else if (name.equals(\"E\"))\n       value = E;\n     else if (name.equals(\"SQRRT2\"))\n       value = SQRRT2;\n     else if (name.equals(\"LN2\"))\n       value = LN2;\n     else if (name.equals(\"LN10\"))\n       value = LN10;\n     else if (name.equals(\"LOG2E\"))\n       value = LOG2E;\n     else if (name.equals(\"SQRT1_2\"))\n       value = SQRT1_2;\n     \n     if (value != null)\n     {\n       int bits = new Double(precision).intValue();\n       \n       if (bits <= value.length())\n         value = value.substring(0, bits);\n         \n       return new Double(value).doubleValue();\n     }\n     else\n       return Double.NaN;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "RETURN", "BINARY_OP", "IF", "CALL", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [2, 9], [1, 10], [1, 11], [1, 12], [7, 13], [8, 14], [8, 15], [2, 16], [9, 17], [3, 18], [10, 19], [11, 20], [14, 21], [14, 22], [8, 23], [15, 24], [19, 25], [11, 26], [20, 27], [12, 28], [21, 29], [21, 30], [14, 31], [22, 32], [26, 33], [28, 34], [29, 35], [29, 36], [21, 37], [30, 38], [33, 39], [35, 40], [35, 41], [29, 42], [36, 43], [40, 44], [35, 45], [41, 46], [40, 47], [44, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 2], [10, 1], [11, 1], [12, 1], [13, 7], [14, 8], [15, 8], [16, 2], [17, 9], [18, 3], [19, 10], [20, 11], [21, 14], [22, 14], [23, 8], [24, 15], [25, 19], [26, 11], [27, 20], [28, 12], [29, 21], [30, 21], [31, 14], [32, 22], [33, 26], [34, 28], [35, 29], [36, 29], [37, 21], [38, 30], [39, 33], [40, 35], [41, 35], [42, 29], [43, 36], [44, 40], [45, 35], [46, 41], [47, 40], [48, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}], "label": 1}
{"sample_id": "xalan-2.4-6757", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xpath/objects/XNumber.java", "language": "java", "name": "org.apache.xpath.objects.XNumber", "code": "public class XNumber extends XObject\n{\n\n  /** Value of the XNumber object.\n   *  @serial         */\n  double m_val;\n\n  /**\n   * Construct a XNodeSet object.\n   *\n   * @param d Value of the object\n   */\n  public XNumber(double d)\n  {\n    super();\n\n    m_val = d;\n  }\n  \n  /**\n   * Construct a XNodeSet object.\n   *\n   * @param d Value of the object\n   */\n  public XNumber(Number num)\n  {\n\n    super();\n\n    m_val = num.doubleValue();\n    m_obj = num;\n  }\n\n  /**\n   * Tell that this is a CLASS_NUMBER.\n   *\n   * @return node type CLASS_NUMBER \n   */\n  public int getType()\n  {\n    return CLASS_NUMBER;\n  }\n\n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return type string \"#NUMBER\" \n   */\n  public String getTypeString()\n  {\n    return \"#NUMBER\";\n  }\n\n  /**\n   * Cast result object to a number.\n   *\n   * @return the value of the XNumber object\n   */\n  public double num()\n  {\n    return m_val;\n  }\n  \n  /**\n   * Evaluate expression to a number.\n   *\n   * @return 0.0\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public double num(XPathContext xctxt) \n    throws javax.xml.transform.TransformerException\n  {\n\n    return m_val;\n  }\n\n  /**\n   * Cast result object to a boolean.\n   *\n   * @return false if the value is NaN or equal to 0.0\n   */\n  public boolean bool()\n  {\n    return (Double.isNaN(m_val) || (m_val == 0.0)) ? false : true;\n  }\n\n\n  /**\n   * Cast result object to a string.\n   *\n   * @return \"NaN\" if the number is NaN, Infinity or -Infinity if\n   * the number is infinite or the string value of the number.\n   */\n  public String str()\n  {\n\n    if (Double.isNaN(m_val))\n    {\n      return \"NaN\";\n    }\n    else if (Double.isInfinite(m_val))\n    {\n      if (m_val > 0)\n        return \"Infinity\";\n      else\n        return \"-Infinity\";\n    }\n\n    double num = m_val;\n    String s = Double.toString(num);\n    int len = s.length();\n\n    if (s.charAt(len - 2) == '.' && s.charAt(len - 1) == '0')\n    {\n      s = s.substring(0, len - 2);\n\n      if (s.equals(\"-0\"))\n        return \"0\";\n\n      return s;\n    }\n\n    int e = s.indexOf('E');\n\n    if (e < 0)\n      return s;\n\n    int exp = Integer.parseInt(s.substring(e + 1));\n    String sign;\n\n    if (s.charAt(0) == '-')\n    {\n      sign = \"-\";\n      s = s.substring(1);\n\n      --e;\n    }\n    else\n      sign = \"\";\n\n    int nDigits = e - 2;\n\n    if (exp >= nDigits)\n      return sign + s.substring(0, 1) + s.substring(2, e)\n             + zeros(exp - nDigits);\n\n    if (exp > 0)\n      return sign + s.substring(0, 1) + s.substring(2, 2 + exp) + \".\"\n             + s.substring(2 + exp, e);\n\n    return sign + \"0.\" + zeros(-1 - exp) + s.substring(0, 1)\n           + s.substring(2, e);\n  }\n\n\n  /**\n   * Return a string of '0' of the given length\n   *\n   *\n   * @param n Length of the string to be returned\n   *\n   * @return a string of '0' with the given length\n   */\n  static private String zeros(int n)\n  {\n    if (n < 1)\n      return \"\";\n\n    char[] buf = new char[n];\n\n    for (int i = 0; i < n; i++)\n    {\n      buf[i] = '0';\n    }\n\n    return new String(buf);\n  }\n\n  /**\n   * Return a java object that's closest to the representation\n   * that should be handed to an extension.\n   *\n   * @return The value of this XNumber as a Double object\n   */\n  public Object object()\n  {\n    if(null == m_obj)\n      m_obj = new Double(m_val);\n    return m_obj;\n  }\n\n  /**\n   * Tell if two objects are functionally equal.\n   *\n   * @param obj2 Object to compare this to\n   *\n   * @return true if the two objects are equal \n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean equals(XObject obj2)\n  {\n\n    int t = obj2.getType();\n    try\n    {\n\t    if (t == XObject.CLASS_NODESET)\n\t      return obj2.equals(this);\n\t    else if(t == XObject.CLASS_BOOLEAN)\n\t      return obj2.bool() == bool();\n\t\telse\n\t       return m_val == obj2.num();\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);\n    }\n  }\n  \n  /**\n   * Tell if this expression returns a stable number that will not change during \n   * iterations within the expression.  This is used to determine if a proximity \n   * position predicate can indicate that no more searching has to occur.\n   * \n   *\n   * @return true if the expression represents a stable number.\n   */\n  public boolean isStableNumber()\n  {\n    return true;\n  }\n  \n  /**\n   * @see XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitNumberLiteral(owner, this);", "functions": [{"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_NUMBER;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"#NUMBER\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "num", "code": "  public double num()\n  {\n    return m_val;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "num", "code": "  public double num(XPathContext xctxt) \n    throws javax.xml.transform.TransformerException\n  {\n\n    return m_val;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "bool", "code": "  public boolean bool()\n  {\n    return (Double.isNaN(m_val) || (m_val == 0.0)) ? false : true;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [5, 7], [6, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "str", "code": "  public String str()\n  {\n\n    if (Double.isNaN(m_val))\n    {\n      return \"NaN\";\n    }\n    else if (Double.isInfinite(m_val))\n    {\n      if (m_val > 0)\n        return \"Infinity\";\n      else\n        return \"-Infinity\";\n    }\n\n    double num = m_val;\n    String s = Double.toString(num);\n    int len = s.length();\n\n    if (s.charAt(len - 2) == '.' && s.charAt(len - 1) == '0')\n    {\n      s = s.substring(0, len - 2);\n\n      if (s.equals(\"-0\"))\n        return \"0\";\n\n      return s;\n    }\n\n    int e = s.indexOf('E');\n\n    if (e < 0)\n      return s;\n\n    int exp = Integer.parseInt(s.substring(e + 1));\n    String sign;\n\n    if (s.charAt(0) == '-')\n    {\n      sign = \"-\";\n      s = s.substring(1);\n\n      --e;\n    }\n    else\n      sign = \"\";\n\n    int nDigits = e - 2;\n\n    if (exp >= nDigits)\n      return sign + s.substring(0, 1) + s.substring(2, e)\n             + zeros(exp - nDigits);\n\n    if (exp > 0)\n      return sign + s.substring(0, 1) + s.substring(2, 2 + exp) + \".\"\n             + s.substring(2 + exp, e);\n\n    return sign + \"0.\" + zeros(-1 - exp) + s.substring(0, 1)\n           + s.substring(2, e);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [2, 16], [2, 17], [3, 18], [3, 19], [5, 20], [8, 21], [8, 22], [10, 23], [14, 24], [14, 25], [15, 26], [15, 27], [16, 28], [17, 29], [18, 30], [4, 31], [5, 32], [20, 33], [20, 34], [7, 35], [22, 36], [9, 37], [10, 38], [10, 39], [23, 40], [23, 41], [11, 42], [12, 43], [24, 44], [14, 45], [26, 46], [27, 47], [27, 48], [28, 49], [28, 50], [30, 51], [30, 52], [31, 53], [32, 54], [5, 55], [5, 56], [34, 57], [35, 58], [37, 59], [39, 60], [39, 61], [10, 62], [40, 63], [40, 64], [41, 65], [41, 66], [24, 67], [45, 68], [47, 69], [47, 70], [48, 71], [48, 72], [49, 73], [50, 74], [50, 75], [51, 76], [52, 77], [52, 78], [55, 79], [56, 80], [58, 81], [60, 82], [61, 83], [62, 84], [64, 85], [66, 86], [67, 87], [67, 88], [67, 89], [71, 90], [72, 91], [73, 92], [75, 93], [75, 94], [77, 95], [78, 96], [79, 97], [81, 98], [84, 99], [84, 100], [85, 101], [86, 102], [87, 103], [88, 104], [89, 105], [90, 106], [93, 107], [93, 108], [94, 109], [96, 110], [96, 111], [99, 112], [107, 113], [109, 114], [109, 115], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 2], [17, 2], [18, 3], [19, 3], [20, 5], [21, 8], [22, 8], [23, 10], [24, 14], [25, 14], [26, 15], [27, 15], [28, 16], [29, 17], [30, 18], [31, 4], [32, 5], [33, 20], [34, 20], [35, 7], [36, 22], [37, 9], [38, 10], [39, 10], [40, 23], [41, 23], [42, 11], [43, 12], [44, 24], [45, 14], [46, 26], [47, 27], [48, 27], [49, 28], [50, 28], [51, 30], [52, 30], [53, 31], [54, 32], [55, 5], [56, 5], [57, 34], [58, 35], [59, 37], [60, 39], [61, 39], [62, 10], [63, 40], [64, 40], [65, 41], [66, 41], [67, 24], [68, 45], [69, 47], [70, 47], [71, 48], [72, 48], [73, 49], [74, 50], [75, 50], [76, 51], [77, 52], [78, 52], [79, 55], [80, 56], [81, 58], [82, 60], [83, 61], [84, 62], [85, 64], [86, 66], [87, 67], [88, 67], [89, 67], [90, 71], [91, 72], [92, 73], [93, 75], [94, 75], [95, 77], [96, 78], [97, 79], [98, 81], [99, 84], [100, 84], [101, 85], [102, 86], [103, 87], [104, 88], [105, 89], [106, 90], [107, 93], [108, 93], [109, 94], [110, 96], [111, 96], [112, 99], [113, 107], [114, 109], [115, 109], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115]]}, {"function_name": "zeros", "code": "  static private String zeros(int n)\n  {\n    if (n < 1)\n      return \"\";\n\n    char[] buf = new char[n];\n\n    for (int i = 0; i < n; i++)\n    {\n      buf[i] = '0';\n    }\n\n    return new String(buf);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [8, 10], [9, 11], [2, 12], [2, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 8], [11, 9], [12, 2], [13, 2], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "object", "code": "  public Object object()\n  {\n    if(null == m_obj)\n      m_obj = new Double(m_val);\n    return m_obj;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "equals", "code": "  public boolean equals(XObject obj2)\n  {\n\n    int t = obj2.getType();\n    try\n    {\n\t    if (t == XObject.CLASS_NODESET)\n\t      return obj2.equals(this);\n\t    else if(t == XObject.CLASS_BOOLEAN)\n\t      return obj2.bool() == bool();\n\t\telse\n\t       return m_val == obj2.num();\n    }\n    catch(javax.xml.transform.TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "IF", "THROW_RAISE", "IF", "RETURN", "BINARY_OP", "CALL", "CALL", "RETURN", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [5, 9], [2, 10], [6, 11], [7, 12], [7, 13], [7, 14], [8, 15], [12, 16], [13, 17], [16, 18], [17, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 5], [10, 2], [11, 6], [12, 7], [13, 7], [14, 7], [15, 8], [16, 12], [17, 13], [18, 16], [19, 17], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "isStableNumber", "code": "  public boolean isStableNumber()\n  {\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tvisitor.visitNumberLiteral(owner, this);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "XNumber", "code": "  public XNumber(double d)\n  {\n    super();\n\n    m_val = d;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "XNumber", "code": "  public XNumber(Number num)\n  {\n\n    super();\n\n    m_val = num.doubleValue();\n    m_obj = num;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-4.3-4607", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/textarea/JEditTextArea.java", "language": "java", "name": "org.gjt.sp.jedit.textarea.JEditTextArea", "code": "public class JEditTextArea extends TextArea\n{\n\n\t//{{{ JEditTextArea constructor\n\t/**\n\t * Creates a new JEditTextArea.\n\t */\n\tpublic JEditTextArea(View view)\n\t{\n\t\tsuper(jEdit.getPropertyManager(), view);\n\t\tenableEvents(AWTEvent.FOCUS_EVENT_MASK | AWTEvent.KEY_EVENT_MASK);\n\t\tthis.view = view;\n\t} //}}}\n\n\t//{{{ getFoldPainter() method\n\t@Override\n\tpublic FoldPainter getFoldPainter()\n\t{\n\t\tFoldPainter foldPainter = (FoldPainter) ServiceManager.getService(\n\t\t\t\tFOLD_PAINTER_SERVICE, getFoldPainterName());\n\t\tif (foldPainter == null)\n\t\t\tfoldPainter = (FoldPainter) ServiceManager.getService(\n\t\t\t\tFOLD_PAINTER_SERVICE,\n\t\t\t\tDEFAULT_FOLD_PAINTER_SERVICE);\n\t\treturn foldPainter;\n\t} //}}}\n\n\t//{{{ smartHome() method\n\t/**\n\t * On subsequent invocations, first moves the caret to the first\n\t * non-whitespace character of the line, then the beginning of the\n\t * line, then to the first visible line.\n\t * @since jEdit 2.7pre2\n\t */\n\t@Override\n\tpublic void smartHome(boolean select)\n\t{\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\tswitch(view.getInputHandler().getLastActionCount())\n\t\t{\n\t\tcase 1:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToStartOfWhiteSpace(\" + select + \");\");\n\n\t\t\tgoToStartOfWhiteSpace(select);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToStartOfLine(\" + select + \");\");\n\n\t\t\tgoToStartOfLine(select);\n\t\t\tbreak;\n\t\tdefault: //case 3:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToFirstVisibleLine(\" + select + \");\");\n\n\t\t\tgoToFirstVisibleLine(select);\n\t\t\tbreak;\n\t\t}\n\t} //}}}\n\n\t//{{{ smartEnd() method\n\t/**\n\t * On subsequent invocations, first moves the caret to the last\n\t * non-whitespace character of the line, then the end of the\n\t * line, then to the last visible line.\n\t * @since jEdit 2.7pre2\n\t */\n\t@Override\n\tpublic void smartEnd(boolean select)\n\t{\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\tswitch(view.getInputHandler().getLastActionCount())\n\t\t{\n\t\tcase 1:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToEndOfWhiteSpace(\" + select + \");\");\n\n\t\t\tgoToEndOfWhiteSpace(select);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToEndOfLine(\" + select + \");\");\n\n\t\t\tgoToEndOfLine(select);\n\t\t\tbreak;\n\t\tdefault: //case 3:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToLastVisibleLine(\" + select + \");\");\n\t\t\tgoToLastVisibleLine(select);\n\t\t\tbreak;\n\t\t}\n\t} //}}}\n\n\t// {{{ overrides from the base class that are EditBus  aware\n\tpublic void goToBufferEnd(boolean select)\n\t{\n\t\tEditBus.send(new PositionChanging(this));\n\t\tsuper.goToBufferEnd(select);\n\t}\n\n\t//{{{ goToMatchingBracket() method\n\t/**\n\t * Moves the caret to the bracket matching the one before the caret.\n\t * Also sends PositionChanging if it goes somewhere.\n\t * @since jEdit 4.3pre18\n\t */\n\tpublic void goToMatchingBracket()\n\t{\n\t\tif(getLineLength(caretLine) != 0)\n\t\t{\n\t\t\tint dot = caret - getLineStartOffset(caretLine);\n\n\t\t\tint bracket = TextUtilities.findMatchingBracket(\n\t\t\t\tbuffer,caretLine,Math.max(0,dot - 1));\n\t\t\tif(bracket != -1)\n\t\t\t{\n\t\t\t\tEditBus.send(new PositionChanging(this));\n\t\t\t\tselectNone();\n\t\t\t\tmoveCaretPosition(bracket + 1,false);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tgetToolkit().beep();\n\t} //}}}\n\n\n\tpublic void goToBufferStart(boolean select)\n\t{\n\t\tEditBus.send(new PositionChanging(this));\n\t\tsuper.goToBufferStart(select);\n\t} // }}}\n\n\t// {{{ replaceSelection(String)\n\t@Override\n\tpublic int replaceSelection(String selectedText)\n\t{\n\t\tEditBus.send(new PositionChanging(this));\n\t\treturn super.replaceSelection(selectedText);\n\t}//}}}\n\n\t//{{{ showGoToLineDialog() method\n\t/**\n\t * Displays the 'go to line' dialog box, and moves the caret to the\n\t * specified line number.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void showGoToLineDialog()\n\t{\n\t\tString line = GUIUtilities.input(view,\"goto-line\",null);\n\t\tif(line == null)\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\tint lineNumber = Integer.parseInt(line) - 1;\n\t\t\tEditBus.send(new PositionChanging(this));\n\t\t\tsetCaretPosition(getLineStartOffset(lineNumber));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tgetToolkit().beep();\n\t\t}\n\t} //}}}\n\n\t//{{{ userInput() method\n\t/**\n\t * Handles the insertion of the specified character. It performs the\n\t * following operations in addition to TextArea#userInput(char):\n\t * <ul>\n\t * <li>Inserting a space with automatic abbrev expansion enabled will\n\t * try to expand the abbrev\n\t * </ul>\n\t *\n\t * @param ch The character\n\t * @since jEdit 2.7pre3\n\t */\n\t@Override\n\tpublic void userInput(char ch)\n\t{\n\t\tif(ch == ' ' && Abbrevs.getExpandOnInput()\n\t\t\t&& Abbrevs.expandAbbrev(view,false))\n\t\t\treturn;\n\n\t\tsuper.userInput(ch);\n\t} //}}}\n\n\t//{{{ addExplicitFold() method\n\t/**\n\t * Surrounds the selection with explicit fold markers.\n\t * @since jEdit 4.0pre3\n\t */\n\t@Override\n\tpublic void addExplicitFold()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsuper.addExplicitFold();\n\t\t}\n\t\tcatch (TextAreaException e)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"folding-not-explicit\",null);\n\t\t}\n\t} //}}}\n\n\t//{{{ formatParagraph() method\n\t/**\n\t * Formats the paragraph containing the caret.\n\t * @since jEdit 2.7pre2\n\t */\n\t@Override\n\tpublic void formatParagraph()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsuper.formatParagraph();\n\t\t}\n\t\tcatch (TextAreaException e)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"format-maxlinelen\",null);\n\t\t}\n\t} //}}}\n\n\t//{{{ doWordCount() method\n\tprotected static void doWordCount(View view, String text)\n\t{\n\t\tchar[] chars = text.toCharArray();\n\t\tint characters = chars.length;\n\t\tint words = 0;\n\t\tint lines = 1;\n\n\t\tboolean word = true;\n\t\tfor(int i = 0; i < chars.length; i++)\n\t\t{\n\t\t\tswitch(chars[i])\n\t\t\t{\n\t\t\tcase '\\r': case '\\n':\n\t\t\t\tlines++;\n\t\t\tcase ' ': case '\\t':\n\t\t\t\tword = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(word)\n\t\t\t\t{\n\t\t\t\t\twords++;\n\t\t\t\t\tword = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObject[] args = { characters, words, lines };\n\t\tGUIUtilities.message(view,\"wordcount\",args);\n\t} //}}}\n\n\t//{{{ showWordCountDialog() method\n\t/**\n\t * Displays the 'word count' dialog box.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void showWordCountDialog()\n\t{\n\t\tString selection = getSelectedText();\n\t\tif(selection != null)\n\t\t{\n\t\t\tdoWordCount(view,selection);\n\t\t\treturn;\n\t\t}\n\n\t\tdoWordCount(view,buffer.getText(0,buffer.getLength()));\n\t} //}}}\n\n\t//{{{ Getters and setters\n\n\t//{{{ getView() method\n\t/**\n\t * Returns this text area's view.\n\t * @since jEdit 4.2pre5\n\t */\n\tpublic View getView()\n\t{\n\t\treturn view;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Deprecated methods\n\n\t//{{{ getSelectionStart() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getStart()</code> method\n\t */\n\t@Deprecated\n\tpublic final int getSelectionStart()\n\t{\n\t\tif(getSelectionCount() != 1)\n\t\t\treturn caret;\n\n\t\treturn getSelection(0).getStart();\n\t} //}}}\n\n\t//{{{ getSelectionStart() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getStart(int)</code> method\n\t */\n\t@Deprecated\n\tpublic int getSelectionStart(int line)\n\t{\n\t\tif(getSelectionCount() != 1)\n\t\t\treturn caret;\n\n\t\treturn getSelection(0).getStart(buffer,line);\n\t} //}}}\n\n\t//{{{ getSelectionStartLine() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getStartLine()</code> method\n\t */\n\t@Deprecated\n\tpublic final int getSelectionStartLine()\n\t{\n\t\tif(getSelectionCount() != 1)\n\t\t\treturn caret;\n\n\t\treturn getSelection(0).getStartLine();\n\t} //}}}\n\n\t//{{{ setSelectionStart() method\n\t/**\n\t * @deprecated Do not use.\n\t */\n\t@Deprecated\n\tpublic final void setSelectionStart(int selectionStart)\n\t{\n\t\tint selectionEnd = getSelectionCount() == 1 ? getSelection(0).getEnd() : caret;\n\t\tsetSelection(new Selection.Range(selectionStart, selectionEnd));\n\t\tmoveCaretPosition(selectionEnd,true);\n\t} //}}}\n\n\t//{{{ getSelectionEnd() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getEnd()</code> method\n\t */\n\t@Deprecated\n\tpublic final int getSelectionEnd()\n\t{\n\t\treturn getSelectionCount() == 1 ? getSelection(0).getEnd() : caret;\n\n\t} //}}}\n\n\t//{{{ getSelectionEnd() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getEnd(int)</code> method\n\t */\n\t@Deprecated\n\tpublic int getSelectionEnd(int line)\n\t{\n\t\tif(getSelectionCount() != 1)\n\t\t\treturn caret;\n\n\t\treturn getSelection(0).getEnd(buffer,line);\n\t} //}}}\n\n\t//{{{ getSelectionEndLine() method\n\t/**\n\t * @deprecated Instead, obtain a Selection instance using\n\t * any means, and call its <code>getEndLine()</code> method\n\t */\n\t@Deprecated\n\tpublic final int getSelectionEndLine()\n\t{\n\t\tif(getSelectionCount() != 1)\n\t\t\treturn caret;\n\n\t\treturn getSelection(0).getEndLine();\n\t} //}}}\n\n\t//{{{ setSelectionEnd() method\n\t/**\n\t * @deprecated Do not use.\n\t */\n\t@Deprecated\n\tpublic final void setSelectionEnd(int selectionEnd)\n\t{\n\t\tint selectionStart = getSelectionCount() == 1 ?\tgetSelection(0).getStart() : caret;\n\t\tsetSelection(new Selection.Range(selectionStart, selectionEnd));\n\t\tmoveCaretPosition(selectionEnd,true);\n\t} //}}}\n\n\t//{{{ select() method\n\t/**\n\t * @deprecated Instead, call either <code>addToSelection()</code>,\n\t * or <code>setSelection()</code> with a new Selection instance.\n\t */\n\t@Deprecated\n\tpublic void select(int start, int end)\n\t{\n\t\tsetSelection(new Selection.Range(start, end));\n\t\tmoveCaretPosition(end,true);\n\t} //}}}\n\n\t//{{{ select() method\n\t/**\n\t * @deprecated Instead, call either <code>addToSelection()</code>,\n\t * or <code>setSelection()</code> with a new Selection instance.\n\t */\n\t@Deprecated\n\tpublic void select(int start, int end, boolean doElectricScroll)\n\t{\n\t\tselectNone();\n\n\t\tint newStart, newEnd;\n\t\tif(start < end)\n\t\t{\n\t\t\tnewStart = start;\n\t\t\tnewEnd = end;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewStart = end;\n\t\t\tnewEnd = start;\n\t\t}\n\n\t\tsetSelection(new Selection.Range(newStart,newEnd));\n\t\tmoveCaretPosition(end,doElectricScroll);\n\t} //}}}\n\n\t//{{{ isSelectionRectangular() method\n\t/**\n\t * @deprecated Instead, check if the appropriate Selection\n\t * is an instance of the Selection.Rect class.\n\t */\n\t@Deprecated\n\tpublic boolean isSelectionRectangular()\n\t{\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\treturn s != null && s instanceof Selection.Rect;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate View view;\n\t//}}}\n\t//}}}\n\n\t//{{{ Fold painters\n\t/**\n\t * Fold painter service.\n\t * @since jEdit 4.3pre16\n\t */\n\tpublic static final String FOLD_PAINTER_PROPERTY = \"foldPainter\";\n\tpublic static final String FOLD_PAINTER_SERVICE = \"org.gjt.sp.jedit.textarea.FoldPainter\";\n\tpublic static final String DEFAULT_FOLD_PAINTER_SERVICE = \"Triangle\";\n\n\t//{{{ getFoldPainterService() method\n\tpublic static String getFoldPainterName()\n\t{\n\t\treturn jEdit.getProperty(FOLD_PAINTER_PROPERTY, DEFAULT_FOLD_PAINTER_SERVICE);\n\t} //}}}\n\n\t//}}} Fold painters\n\n\t//{{{ handlePopupTrigger() method\n\t/**\n\t * Do the same thing as right-clicking on the text area. The Gestures\n\t * plugin uses this API.\n\t * @since jEdit 4.2pre13\n\t */\n\t@Override\n\tpublic void handlePopupTrigger(MouseEvent evt)\n\t{\n\n\t\tif(popup.isVisible())\n\t\t\tpopup.setVisible(false);\n\t\telse\n\t\t{\n\t\t\t// Rebuild popup menu every time the menu is requested.\n\t\t\tcreatePopupMenu(evt);\n\n\t\t\tint x = evt.getX();\n\t\t\tint y = evt.getY();\n\n\t\t\tint dragStart = xyToOffset(x,y,\n\t\t\t\t!(painter.isBlockCaretEnabled()\n\t\t\t\t|| isOverwriteEnabled()));\n\n\t\t\tif(getSelectionCount() == 0 || multi)\n\t\t\t\tmoveCaretPosition(dragStart,false);\n\t\t\tGUIUtilities.showPopupMenu(popup,painter,x,y);\n\t\t}\n\t} //}}}\n\n\t//{{{ createPopupMenu() method\n\t/**\n\t * Creates the popup menu.\n\t * @since 4.3pre15\n\t */\n\t@Override\n\tpublic void createPopupMenu(MouseEvent evt)\n\t{\n\t\tpopup = GUIUtilities.loadPopupMenu(\"view.context\", this, evt);\n\t\tJMenuItem customize = new JMenuItem(jEdit.getProperty(\n\t\t\t\"view.context.customize\"));\n\t\tcustomize.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tnew GlobalOptions(view,\"context\");\n\t\t\t}\n\t\t});\n\t\tpopup.addSeparator();\n\t\tpopup.add(customize);\n\t} //}}}\n\n\t//{{{ showPopupMenu() method\n\t/**\n\t * Shows the popup menu below the current caret position.\n\t * @since 4.3pre10\n\t */\n\t@Override\n\tpublic void showPopupMenu()\n\t{\n\t\tif (!popup.isVisible() && hasFocus())\n\t\t{\n\t\t\tPoint caretPos = offsetToXY(getCaretPosition());\n\t\t\tif (caretPos != null)\n\t\t\t{\n\t\t\t\t// Open the context menu below the caret\n\t\t\t\tint charHeight = getPainter().getFontMetrics().getHeight();\n\t\t\t\tGUIUtilities.showPopupMenu(popup,\n\t\t\t\t\tpainter,caretPos.x,caretPos.y + charHeight,true);", "functions": [{"function_name": "getFoldPainter", "code": "\t@Override\n\tpublic FoldPainter getFoldPainter()\n\t{\n\t\tFoldPainter foldPainter = (FoldPainter) ServiceManager.getService(\n\t\t\t\tFOLD_PAINTER_SERVICE, getFoldPainterName());\n\t\tif (foldPainter == null)\n\t\t\tfoldPainter = (FoldPainter) ServiceManager.getService(\n\t\t\t\tFOLD_PAINTER_SERVICE,\n\t\t\t\tDEFAULT_FOLD_PAINTER_SERVICE);\n\t\treturn foldPainter;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [3, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 3], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "smartHome", "code": "\t@Override\n\tpublic void smartHome(boolean select)\n\t{\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\tswitch(view.getInputHandler().getLastActionCount())\n\t\t{\n\t\tcase 1:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToStartOfWhiteSpace(\" + select + \");\");\n\n\t\t\tgoToStartOfWhiteSpace(select);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToStartOfLine(\" + select + \");\");\n\n\t\t\tgoToStartOfLine(select);\n\t\t\tbreak;\n\t\tdefault: //case 3:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToFirstVisibleLine(\" + select + \");\");\n\n\t\t\tgoToFirstVisibleLine(select);\n\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "CALL", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [4, 13], [2, 14], [1, 15], [6, 16], [1, 17], [8, 18], [1, 19], [11, 20], [6, 21], [16, 22], [8, 23], [18, 24], [11, 25], [20, 26], [21, 27], [23, 28], [25, 29], [27, 30], [27, 31], [28, 32], [28, 33], [29, 34], [29, 35], [31, 36], [33, 37], [35, 38], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 4], [14, 2], [15, 1], [16, 6], [17, 1], [18, 8], [19, 1], [20, 11], [21, 6], [22, 16], [23, 8], [24, 18], [25, 11], [26, 20], [27, 21], [28, 23], [29, 25], [30, 27], [31, 27], [32, 28], [33, 28], [34, 29], [35, 29], [36, 31], [37, 33], [38, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "smartEnd", "code": "\t@Override\n\tpublic void smartEnd(boolean select)\n\t{\n\t\tMacros.Recorder recorder = view.getMacroRecorder();\n\n\t\tswitch(view.getInputHandler().getLastActionCount())\n\t\t{\n\t\tcase 1:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToEndOfWhiteSpace(\" + select + \");\");\n\n\t\t\tgoToEndOfWhiteSpace(select);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToEndOfLine(\" + select + \");\");\n\n\t\t\tgoToEndOfLine(select);\n\t\t\tbreak;\n\t\tdefault: //case 3:\n\t\t\tif(recorder != null)\n\t\t\t\trecorder.record(\"textArea.goToLastVisibleLine(\" + select + \");\");\n\t\t\tgoToLastVisibleLine(select);\n\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "SWITCH", "VAR_DECL", "PARAM", "CALL", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [4, 13], [2, 14], [1, 15], [6, 16], [1, 17], [8, 18], [1, 19], [11, 20], [6, 21], [16, 22], [8, 23], [18, 24], [11, 25], [20, 26], [21, 27], [23, 28], [25, 29], [27, 30], [27, 31], [28, 32], [28, 33], [29, 34], [29, 35], [31, 36], [33, 37], [35, 38], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 4], [14, 2], [15, 1], [16, 6], [17, 1], [18, 8], [19, 1], [20, 11], [21, 6], [22, 16], [23, 8], [24, 18], [25, 11], [26, 20], [27, 21], [28, 23], [29, 25], [30, 27], [31, 27], [32, 28], [33, 28], [34, 29], [35, 29], [36, 31], [37, 33], [38, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "goToBufferEnd", "code": "\tpublic void goToBufferEnd(boolean select)\n\t{\n\t\tEditBus.send(new PositionChanging(this));\n\t\tsuper.goToBufferEnd(select);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "goToMatchingBracket", "code": "\tpublic void goToMatchingBracket()\n\t{\n\t\tif(getLineLength(caretLine) != 0)\n\t\t{\n\t\t\tint dot = caret - getLineStartOffset(caretLine);\n\n\t\t\tint bracket = TextUtilities.findMatchingBracket(\n\t\t\t\tbuffer,caretLine,Math.max(0,dot - 1));\n\t\t\tif(bracket != -1)\n\t\t\t{\n\t\t\t\tEditBus.send(new PositionChanging(this));\n\t\t\t\tselectNone();\n\t\t\t\tmoveCaretPosition(bracket + 1,false);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [1, 7], [3, 8], [3, 9], [5, 10], [5, 11], [10, 12], [6, 13], [7, 14], [5, 15], [5, 16], [5, 17], [13, 18], [14, 19], [15, 20], [15, 21], [17, 22], [18, 23], [18, 24], [21, 25], [23, 26], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 1], [8, 3], [9, 3], [10, 5], [11, 5], [12, 10], [13, 6], [14, 7], [15, 5], [16, 5], [17, 5], [18, 13], [19, 14], [20, 15], [21, 15], [22, 17], [23, 18], [24, 18], [25, 21], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "goToBufferStart", "code": "\tpublic void goToBufferStart(boolean select)\n\t{\n\t\tEditBus.send(new PositionChanging(this));\n\t\tsuper.goToBufferStart(select);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "replaceSelection", "code": "\t@Override\n\tpublic int replaceSelection(String selectedText)\n\t{\n\t\tEditBus.send(new PositionChanging(this));\n\t\treturn super.replaceSelection(selectedText);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "showGoToLineDialog", "code": "\tpublic void showGoToLineDialog()\n\t{\n\t\tString line = GUIUtilities.input(view,\"goto-line\",null);\n\t\tif(line == null)\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\tint lineNumber = Integer.parseInt(line) - 1;\n\t\t\tEditBus.send(new PositionChanging(this));\n\t\t\tsetCaretPosition(getLineStartOffset(lineNumber));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "CATCH", "VAR_DECL", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [2, 7], [1, 8], [1, 9], [7, 10], [3, 11], [4, 12], [8, 13], [9, 14], [5, 15], [11, 16], [11, 17], [12, 18], [15, 19], [15, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 2], [8, 1], [9, 1], [10, 7], [11, 3], [12, 4], [13, 8], [14, 9], [15, 5], [16, 11], [17, 11], [18, 12], [19, 15], [20, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "userInput", "code": "\t@Override\n\tpublic void userInput(char ch)\n\t{\n\t\tif(ch == ' ' && Abbrevs.getExpandOnInput()\n\t\t\t&& Abbrevs.expandAbbrev(view,false))\n\t\t\treturn;\n\n\t\tsuper.userInput(ch);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [4, 6], [5, 7], [6, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 4], [7, 5], [8, 6], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "addExplicitFold", "code": "\t@Override\n\tpublic void addExplicitFold()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsuper.addExplicitFold();\n\t\t}\n\t\tcatch (TextAreaException e)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"folding-not-explicit\",null);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "formatParagraph", "code": "\t@Override\n\tpublic void formatParagraph()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsuper.formatParagraph();\n\t\t}\n\t\tcatch (TextAreaException e)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"format-maxlinelen\",null);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "doWordCount", "code": "\tprotected static void doWordCount(View view, String text)\n\t{\n\t\tchar[] chars = text.toCharArray();\n\t\tint characters = chars.length;\n\t\tint words = 0;\n\t\tint lines = 1;\n\n\t\tboolean word = true;\n\t\tfor(int i = 0; i < chars.length; i++)\n\t\t{\n\t\t\tswitch(chars[i])\n\t\t\t{\n\t\t\tcase '\\r': case '\\n':\n\t\t\t\tlines++;\n\t\t\tcase ' ': case '\\t':\n\t\t\t\tword = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(word)\n\t\t\t\t{\n\t\t\t\t\twords++;\n\t\t\t\t\tword = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObject[] args = { characters, words, lines };\n\t\tGUIUtilities.message(view,\"wordcount\",args);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "SWITCH", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [10, 12], [2, 13], [3, 14], [4, 15], [5, 16], [7, 17], [2, 18], [13, 19], [13, 20], [13, 21], [13, 22], [13, 23], [13, 24], [13, 25], [13, 26], [26, 27], [20, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 10], [13, 2], [14, 3], [15, 4], [16, 5], [17, 7], [18, 2], [19, 13], [20, 13], [21, 13], [22, 13], [23, 13], [24, 13], [25, 13], [26, 13], [27, 26], [28, 20], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "showWordCountDialog", "code": "\tpublic void showWordCountDialog()\n\t{\n\t\tString selection = getSelectedText();\n\t\tif(selection != null)\n\t\t{\n\t\t\tdoWordCount(view,selection);\n\t\t\treturn;\n\t\t}\n\n\t\tdoWordCount(view,buffer.getText(0,buffer.getLength()));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [4, 7], [2, 8], [5, 9], [5, 10], [1, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 4], [8, 2], [9, 5], [10, 5], [11, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getView", "code": "\tpublic View getView()\n\t{\n\t\treturn view;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSelectionStart", "code": "\t@Deprecated\n\tpublic final int getSelectionStart()\n\t{\n\t\tif(getSelectionCount() != 1)\n\t\t\treturn caret;\n\n\t\treturn getSelection(0).getStart();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [3, 6], [3, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 3], [7, 3], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getSelectionStart", "code": "\t@Deprecated\n\tpublic int getSelectionStart(int line)\n\t{\n\t\tif(getSelectionCount() != 1)\n\t\t\treturn caret;\n\n\t\treturn getSelection(0).getStart(buffer,line);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [4, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 4], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getSelectionStartLine", "code": "\t@Deprecated\n\tpublic final int getSelectionStartLine()\n\t{\n\t\tif(getSelectionCount() != 1)\n\t\t\treturn caret;\n\n\t\treturn getSelection(0).getStartLine();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [3, 6], [3, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 3], [7, 3], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setSelectionStart", "code": "\t@Deprecated\n\tpublic final void setSelectionStart(int selectionStart)\n\t{\n\t\tint selectionEnd = getSelectionCount() == 1 ? getSelection(0).getEnd() : caret;\n\t\tsetSelection(new Selection.Range(selectionStart, selectionEnd));\n\t\tmoveCaretPosition(selectionEnd,true);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 7], [7, 8], [7, 9], [8, 10], [8, 11], [9, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 1], [8, 7], [9, 7], [10, 8], [11, 8], [12, 9], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getSelectionEnd", "code": "\t@Deprecated\n\tpublic final int getSelectionEnd()\n\t{\n\t\treturn getSelectionCount() == 1 ? getSelection(0).getEnd() : caret;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSelectionEnd", "code": "\t@Deprecated\n\tpublic int getSelectionEnd(int line)\n\t{\n\t\tif(getSelectionCount() != 1)\n\t\t\treturn caret;\n\n\t\treturn getSelection(0).getEnd(buffer,line);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [4, 7], [4, 8], [6, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 4], [8, 4], [9, 6], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getSelectionEndLine", "code": "\t@Deprecated\n\tpublic final int getSelectionEndLine()\n\t{\n\t\tif(getSelectionCount() != 1)\n\t\t\treturn caret;\n\n\t\treturn getSelection(0).getEndLine();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [3, 6], [3, 7], [5, 8], [5, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 3], [7, 3], [8, 5], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setSelectionEnd", "code": "\t@Deprecated\n\tpublic final void setSelectionEnd(int selectionEnd)\n\t{\n\t\tint selectionStart = getSelectionCount() == 1 ?\tgetSelection(0).getStart() : caret;\n\t\tsetSelection(new Selection.Range(selectionStart, selectionEnd));\n\t\tmoveCaretPosition(selectionEnd,true);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 7], [7, 8], [7, 9], [8, 10], [8, 11], [9, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [7, 1], [8, 7], [9, 7], [10, 8], [11, 8], [12, 9], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "select", "code": "\t@Deprecated\n\tpublic void select(int start, int end)\n\t{\n\t\tsetSelection(new Selection.Range(start, end));\n\t\tmoveCaretPosition(end,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "select", "code": "\t@Deprecated\n\tpublic void select(int start, int end, boolean doElectricScroll)\n\t{\n\t\tselectNone();\n\n\t\tint newStart, newEnd;\n\t\tif(start < end)\n\t\t{\n\t\t\tnewStart = start;\n\t\t\tnewEnd = end;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewStart = end;\n\t\t\tnewEnd = start;\n\t\t}\n\n\t\tsetSelection(new Selection.Range(newStart,newEnd));\n\t\tmoveCaretPosition(end,doElectricScroll);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [7, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 7], [11, 1], [12, 1], [13, 1], [14, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isSelectionRectangular", "code": "\t@Deprecated\n\tpublic boolean isSelectionRectangular()\n\t{\n\t\tSelection s = getSelectionAtOffset(caret);\n\t\treturn s != null && s instanceof Selection.Rect;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFoldPainterName", "code": "\tpublic static String getFoldPainterName()\n\t{\n\t\treturn jEdit.getProperty(FOLD_PAINTER_PROPERTY, DEFAULT_FOLD_PAINTER_SERVICE);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "handlePopupTrigger", "code": "\t@Override\n\tpublic void handlePopupTrigger(MouseEvent evt)\n\t{\n\n\t\tif(popup.isVisible())\n\t\t\tpopup.setVisible(false);\n\t\telse\n\t\t{\n\t\t\t// Rebuild popup menu every time the menu is requested.\n\t\t\tcreatePopupMenu(evt);\n\n\t\t\tint x = evt.getX();\n\t\t\tint y = evt.getY();\n\n\t\t\tint dragStart = xyToOffset(x,y,\n\t\t\t\t!(painter.isBlockCaretEnabled()\n\t\t\t\t|| isOverwriteEnabled()));\n\n\t\t\tif(getSelectionCount() == 0 || multi)\n\t\t\t\tmoveCaretPosition(dragStart,false);\n\t\t\tGUIUtilities.showPopupMenu(popup,painter,x,y);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [1, 11], [8, 12], [4, 13], [10, 14], [5, 15], [6, 16], [7, 17], [13, 18], [14, 19], [14, 20], [15, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 1], [12, 8], [13, 4], [14, 10], [15, 5], [16, 6], [17, 7], [18, 13], [19, 14], [20, 14], [21, 15], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "createPopupMenu", "code": "\t@Override\n\tpublic void createPopupMenu(MouseEvent evt)\n\t{\n\t\tpopup = GUIUtilities.loadPopupMenu(\"view.context\", this, evt);\n\t\tJMenuItem customize = new JMenuItem(jEdit.getProperty(\n\t\t\t\"view.context.customize\"));\n\t\tcustomize.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tnew GlobalOptions(view,\"context\");\n\t\t\t}\n\t\t});\n\t\tpopup.addSeparator();\n\t\tpopup.add(customize);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL", "LITERAL_ANCHOR", "PARAM", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [5, 7], [1, 8], [6, 9], [7, 10], [8, 11], [9, 12], [10, 13], [11, 14], [10, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 5], [8, 1], [9, 6], [10, 7], [11, 8], [12, 9], [13, 10], [14, 11], [15, 10], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "showPopupMenu", "code": "\t@Override\n\tpublic void showPopupMenu()\n\t{\n\t\tif (!popup.isVisible() && hasFocus())\n\t\t{\n\t\t\tPoint caretPos = offsetToXY(getCaretPosition());\n\t\t\tif (caretPos != null)\n\t\t\t{\n\t\t\t\t// Open the context menu below the caret\n\t\t\t\tint charHeight = getPainter().getFontMetrics().getHeight();\n\t\t\t\tGUIUtilities.showPopupMenu(popup,\n\t\t\t\t\tpainter,caretPos.x,caretPos.y + charHeight,true);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [2, 6], [3, 7], [3, 8], [7, 9], [4, 10], [3, 11], [10, 12], [11, 13], [11, 14], [8, 15], [15, 16], [15, 17], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 2], [7, 3], [8, 3], [9, 7], [10, 4], [11, 3], [12, 10], [13, 11], [14, 11], [15, 8], [16, 15], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "JEditTextArea", "code": "\tpublic JEditTextArea(View view)\n\t{\n\t\tsuper(jEdit.getPropertyManager(), view);\n\t\tenableEvents(AWTEvent.FOCUS_EVENT_MASK | AWTEvent.KEY_EVENT_MASK);\n\t\tthis.view = view;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-3.2-3565", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/EditPane.java", "language": "java", "name": "org.gjt.sp.jedit.EditPane", "code": "public class EditPane extends JPanel implements EBComponent\n{\n\t/**\n\t * Returns the view containing this edit pane.\n\t * @since jEdit 2.5pre2\n\t */\n\tpublic View getView()\n\t{\n\t\treturn view;\n\t}\n\n\t/**\n\t * Returns the current buffer.\n\t * @since jEdit 2.5pre2\n\t */\n\tpublic Buffer getBuffer()\n\t{\n\t\treturn buffer;\n\t}\n\n\t/**\n\t * Sets the current buffer.\n\t * @param buffer The buffer to edit.\n\t * @since jEdit 2.5pre2\n\t */\n\tpublic void setBuffer(final Buffer buffer)\n\t{\n\t\tif(this.buffer == buffer)\n\t\t\treturn;\n\n\t\tif(buffer.isClosed())\n\t\t\tthrow new InternalError(buffer + \" has been closed\");\n\n\t\tbuffer.endCompoundEdit();\n\n\t\trecentBuffer = this.buffer;\n\t\tif(recentBuffer != null)\n\t\t\tsaveCaretInfo();\n\t\tthis.buffer = buffer;\n\n\t\ttextArea.setBuffer(buffer);\n\n\t\tif(!init)\n\t\t{\n\t\t\tview.updateTitle();\n\n\t\t\tif(bufferSwitcher != null)\n\t\t\t{\n\t\t\t\tif(bufferSwitcher.getSelectedItem() != buffer)\n\t\t\t\t\tbufferSwitcher.setSelectedItem(buffer);\n\t\t\t}\n\n\t\t\tEditBus.send(new EditPaneUpdate(this,EditPaneUpdate\n\t\t\t\t.BUFFER_CHANGED));\n\t\t}\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\t// only do this if we are the current edit pane\n\t\t\t\tif(view.getEditPane() == EditPane.this\n\t\t\t\t\t&& (bufferSwitcher == null\n\t\t\t\t\t|| !bufferSwitcher.isPopupVisible()))\n\t\t\t\t{\n\t\t\t\t\tfocusOnTextArea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// Only do this after all I/O requests are complete\n\t\tRunnable runnable = new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tloadCaretInfo();\n\t\t\t\tbuffer.checkModTime(view);\n\t\t\t}\n\t\t};\n\n\t\tif(buffer.isPerformingIO())\n\t\t\tVFSManager.runInAWTThread(runnable);\n\t\telse\n\t\t\trunnable.run();\n\t}\n\n\t/**\n\t * Selects the previous buffer.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void prevBuffer()\n\t{\n\t\tBuffer buffer = this.buffer.getPrev();\n\t\tif(buffer == null)\n\t\t\tsetBuffer(jEdit.getLastBuffer());\n\t\telse\n\t\t\tsetBuffer(buffer);\n\t}\n\n\t/**\n\t * Selects the next buffer.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void nextBuffer()\n\t{\n\t\tBuffer buffer = this.buffer.getNext();\n\t\tif(buffer == null)\n\t\t\tsetBuffer(jEdit.getFirstBuffer());\n\t\telse\n\t\t\tsetBuffer(buffer);\n\t}\n\n\t/**\n\t * Selects the most recently edited buffer.\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic void recentBuffer()\n\t{\n\t\tif(recentBuffer != null)\n\t\t\tsetBuffer(recentBuffer);\n\t\telse\n\t\t\tgetToolkit().beep();\n\t}\n\n\t/**\n\t * Sets the focus onto the text area.\n\t * @since jEdit 2.5pre2\n\t */\n\tpublic void focusOnTextArea()\n\t{\n\t\ttextArea.grabFocus();\n\t\t// trying to work around buggy focus handling in some\n\t\t// Java versions\n//\t\tif(!textArea.hasFocus())\n//\t\t{\n//\t\t\ttextArea.processFocusEvent(new FocusEvent(textArea,\n//\t\t\t\tFocusEvent.FOCUS_GAINED));\n//\t\t}\n\t}\n\n\t/**\n\t * Returns the view's text area.\n\t * @since jEdit 2.5pre2\n\t */\n\tpublic JEditTextArea getTextArea()\n\t{\n\t\treturn textArea;\n\t}\n\n\t/**\n\t * Saves the caret information to the current buffer.\n\t * @since jEdit 2.5pre2\n\t */\n\tpublic void saveCaretInfo()\n\t{\n\t\tbuffer.putProperty(Buffer.CARET,new Integer(\n\t\t\ttextArea.getCaretPosition()));\n\n\t\tSelection[] selection = textArea.getSelection();\n\t\tif(selection != null)\n\t\t\tbuffer.putProperty(Buffer.SELECTION,selection);\n\n\t\tbuffer.putProperty(Buffer.SCROLL_VERT,new Integer(\n\t\t\ttextArea.getFirstLine()));\n\t\tbuffer.putProperty(Buffer.SCROLL_HORIZ,new Integer(\n\t\t\ttextArea.getHorizontalOffset()));\n\t}\n\n\t/**\n\t * Loads the caret information from the curret buffer.\n\t * @since jEdit 2.5pre2\n\t */\n\tpublic void loadCaretInfo()\n\t{\n\t\tInteger caret = (Integer)buffer.getProperty(Buffer.CARET);\n\t\tSelection[] selection = (Selection[])buffer.getProperty(Buffer.SELECTION);\n\n\t\tInteger firstLine = (Integer)buffer.getProperty(Buffer.SCROLL_VERT);\n\t\tInteger horizontalOffset = (Integer)buffer.getProperty(Buffer.SCROLL_HORIZ);\n\n\t\tif(caret != null)\n\t\t{\n\t\t\ttextArea.setCaretPosition(Math.min(caret.intValue(),\n\t\t\t\tbuffer.getLength()));\n\t\t}\n\n\t\tif(selection != null)\n\t\t\ttextArea.setSelection(selection);\n\n\t\tif(firstLine != null)\n\t\t\ttextArea.setFirstLine(firstLine.intValue());\n\n\t\tif(horizontalOffset != null)\n\t\t\ttextArea.setHorizontalOffset(horizontalOffset.intValue());\n\t}\n\n\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof PropertiesChanged)\n\t\t{\n\t\t\tpropertiesChanged();\n\t\t\tloadBufferSwitcher();\n\t\t}\n\t\telse if(msg instanceof BufferUpdate)\n\t\t\thandleBufferUpdate((BufferUpdate)msg);\n\t}\n\n\t/**\n\t * Returns 0,0 for split pane compatibility.\n\t */\n\tpublic final Dimension getMinimumSize()\n\t{\n\t\treturn new Dimension(0,0);\n\t}\n\n\t// package-private members\n\tEditPane(View view, Buffer buffer)\n\t{\n\t\tsuper(new BorderLayout());\n\n\t\tinit = true;\n\n\t\tthis.view = view;\n\n\t\tEditBus.addToBus(this);\n\n\t\ttextArea = new JEditTextArea(view);\n\n\t\tadd(BorderLayout.CENTER,textArea);\n\t\tmarkerHighlight = new MarkerHighlight();\n\t\ttextArea.getGutter().addCustomHighlight(markerHighlight);\n\n\t\tpropertiesChanged();\n\n\t\tif(buffer == null)\n\t\t\tsetBuffer(jEdit.getFirstBuffer());\n\t\telse\n\t\t\tsetBuffer(buffer);\n\n\t\tloadBufferSwitcher();\n\n\t\tinit = false;\n\t}\n\n\tvoid close()\n\t{\n\t\tsaveCaretInfo();\n\t\tEditBus.send(new EditPaneUpdate(this,EditPaneUpdate.DESTROYED));\n\t\tEditBus.removeFromBus(this);\n\t}\n\n\t// private members\n\tprivate boolean init;\n\tprivate View view;\n\tprivate Buffer buffer;\n\tprivate Buffer recentBuffer;\n\tprivate BufferSwitcher bufferSwitcher;\n\tprivate JEditTextArea textArea;\n\tprivate MarkerHighlight markerHighlight;\n\n\tprivate void propertiesChanged()\n\t{\n\t\tTextAreaPainter painter = textArea.getPainter();\n\n\t\tpainter.setFont(UIManager.getFont(\"TextArea.font\"));\n\t\tpainter.setBracketHighlightEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.bracketHighlight\"));\n\t\tpainter.setBracketHighlightColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.bracketHighlightColor\")));\n\t\tpainter.setEOLMarkersPainted(jEdit.getBooleanProperty(\n\t\t\t\"view.eolMarkers\"));\n\t\tpainter.setEOLMarkerColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.eolMarkerColor\")));\n\t\tpainter.setWrapGuidePainted(jEdit.getBooleanProperty(\n\t\t\t\"view.wrapGuide\"));\n\t\tpainter.setWrapGuideColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.wrapGuideColor\")));\n\t\tpainter.setCaretColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.caretColor\")));\n\t\tpainter.setSelectionColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.selectionColor\")));\n\t\tpainter.setBackground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.bgColor\")));\n\t\tpainter.setForeground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.fgColor\")));\n\t\tpainter.setBlockCaretEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.blockCaret\"));\n\t\tpainter.setLineHighlightEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.lineHighlight\"));\n\t\tpainter.setLineHighlightColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.lineHighlightColor\")));\n\t\tpainter.setAntiAliasEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.antiAlias\"));\n\t\tpainter.setFractionalFontMetricsEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.fracFontMetrics\"));\n\t\tpainter.setStyles(GUIUtilities.loadStyles(jEdit.getProperty(\"view.font\"),\n\t\t\tInteger.parseInt(jEdit.getProperty(\"view.fontsize\"))));\n\n\t\tGutter gutter = textArea.getGutter();\n\t\tgutter.setExpanded(jEdit.getBooleanProperty(\n\t\t\t\"view.gutter.lineNumbers\"));\n\t\ttry\n\t\t{\n\t\t\tint interval = Integer.parseInt(jEdit.getProperty(\n\t\t\t\t\"view.gutter.highlightInterval\"));\n\t\t\tgutter.setHighlightInterval(interval);\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\t// retain the default highlight interval\n\t\t}\n\t\tgutter.setCurrentLineHighlightEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.gutter.highlightCurrentLine\"));\n\t\tgutter.setBackground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.bgColor\")));\n\t\tgutter.setForeground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.fgColor\")));\n\t\tgutter.setHighlightedForeground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.highlightColor\")));\n\t\tgutter.setFoldColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.foldColor\")));\n\t\tmarkerHighlight.setMarkerHighlightColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.markerColor\")));\n\t\tmarkerHighlight.setHighlightEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.gutter.markerHighlight\"));\n\t\tgutter.setCurrentLineForeground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.currentLineColor\")));\n\t\tString alignment = jEdit.getProperty(\n\t\t\t\"view.gutter.numberAlignment\");\n\t\tif (\"right\".equals(alignment))\n\t\t{\n\t\t\tgutter.setLineNumberAlignment(Gutter.RIGHT);\n\t\t}\n\t\telse if (\"center\".equals(alignment))\n\t\t{\n\t\t\tgutter.setLineNumberAlignment(Gutter.CENTER);\n\t\t}\n\t\telse // left == default case\n\t\t{\n\t\t\tgutter.setLineNumberAlignment(Gutter.LEFT);\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tString fontname = jEdit.getProperty(\"view.gutter.font\");\n\t\t\tint fontsize = Integer.parseInt(jEdit.getProperty(\n\t\t\t\t\"view.gutter.fontsize\"));\n\t\t\tint fontstyle = Integer.parseInt(jEdit.getProperty(\n\t\t\t\t\"view.gutter.fontstyle\"));\n\t\t\tgutter.setFont(new Font(fontname,fontstyle,fontsize));\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\t// retain the default font\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tint width = Integer.parseInt(jEdit.getProperty(\n\t\t\t\t\"view.gutter.borderWidth\"));\n\t\t\tgutter.setBorder(width, GUIUtilities.parseColor(\n\t\t\t\tjEdit.getProperty(\"view.gutter.focusBorderColor\")),\n\t\t\t\tGUIUtilities.parseColor(jEdit.getProperty(\n\t\t\t\t\"view.gutter.noFocusBorderColor\")),\n\t\t\t\ttextArea.getPainter().getBackground());\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\t// retain the default border\n\t\t}\n\n\t\ttextArea.setCaretBlinkEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.caretBlink\"));\n\n\t\ttry\n\t\t{\n\t\t\ttextArea.setElectricScroll(Integer.parseInt(jEdit\n\t\t\t\t.getProperty(\"view.electricBorders\")));\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\ttextArea.setElectricScroll(0);\n\t\t}\n\n\t\t// Set up the right-click popup menu\n\t\ttextArea.setRightClickPopup(GUIUtilities\n\t\t\t.loadPopupMenu(\"view.context\"));\n\n\t\ttextArea.setMiddleMousePasteEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.middleMousePaste\"));\n\t}\n\n\tprivate void loadBufferSwitcher()\n\t{\n\t\tif(jEdit.getBooleanProperty(\"view.showBufferSwitcher\"))\n\t\t{\n\t\t\tif(bufferSwitcher == null)\n\t\t\t{\n\t\t\t\tbufferSwitcher = new BufferSwitcher(this);\n\t\t\t\tadd(BorderLayout.NORTH,bufferSwitcher);\n\t\t\t\tbufferSwitcher.updateBufferList();\n\t\t\t\trevalidate();\n\t\t\t}\n\t\t}\n\t\telse if(bufferSwitcher != null)\n\t\t{\n\t\t\tremove(bufferSwitcher);\n\t\t\trevalidate();\n\t\t\tbufferSwitcher = null;\n\t\t}\n\t}\n\n\tprivate void handleBufferUpdate(BufferUpdate msg)\n\t{\n\t\tBuffer _buffer = msg.getBuffer();\n\t\tif(msg.getWhat() == BufferUpdate.CREATED)\n\t\t{\n\t\t\tif(bufferSwitcher != null)\n\t\t\t\tbufferSwitcher.updateBufferList();\n\n\t\t\t/* When closing the last buffer, the BufferUpdate.CLOSED\n\t\t\t * handler doesn't call setBuffer(), because null buffers\n\t\t\t * are not supported. Instead, it waits for the subsequent\n\t\t\t * 'Untitled' file creation. */\n\t\t\tif(buffer.isClosed())\n\t\t\t\tsetBuffer(jEdit.getFirstBuffer());\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.CLOSED)\n\t\t{\n\t\t\tif(bufferSwitcher != null)\n\t\t\t\tbufferSwitcher.updateBufferList();\n\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\tBuffer newBuffer = (recentBuffer != null ?\n\t\t\t\t\trecentBuffer : _buffer.getPrev());\n\t\t\t\tif(newBuffer != null && !newBuffer.isClosed())\n\t\t\t\t\tsetBuffer(newBuffer);\n\t\t\t\telse if(jEdit.getBufferCount() != 0)\n\t\t\t\t\tsetBuffer(jEdit.getFirstBuffer());\n\n\t\t\t\trecentBuffer = null;\n\t\t\t}\n\t\t\telse if(_buffer == recentBuffer)\n\t\t\t\trecentBuffer = null;\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.LOAD_STARTED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\ttextArea.setCaretPosition(0);\n\t\t\t\ttextArea.getPainter().repaint();\n\t\t\t}\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.DIRTY_CHANGED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\tif(bufferSwitcher != null)\n\t\t\t\t{\n\t\t\t\t\tif(buffer.isDirty())\n\t\t\t\t\t\tbufferSwitcher.repaint();\n\t\t\t\t\telse\n\t\t\t\t\t\tbufferSwitcher.updateBufferList();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.LOADED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\ttextArea.repaint();\n\t\t\t\ttextArea.updateScrollBars();\n\t\t\t\tif(bufferSwitcher != null)\n\t\t\t\t\tbufferSwitcher.updateBufferList();\n\n\t\t\t\tif(view.getEditPane() == this)\n\t\t\t\t{\n\t\t\t\t\tStatusBar status = view.getStatus();\n\t\t\t\t\tstatus.repaintCaretStatus();\n\t\t\t\t\tstatus.updateBufferStatus();\n\t\t\t\t\tstatus.updateMiscStatus();\n\t\t\t\t}\n\n\t\t\t\tloadCaretInfo();\n\t\t\t}\n\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.MARKERS_CHANGED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t\ttextArea.getGutter().repaint();\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.MODE_CHANGED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\ttextArea.getPainter().repaint();\n\n\t\t\t\tif(view.getEditPane() == this)\n\t\t\t\t\tview.getStatus().updateBufferStatus();\n\t\t\t}\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.ENCODING_CHANGED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\tif(view.getEditPane() == this)\n\t\t\t\t\tview.getStatus().updateBufferStatus();", "functions": [{"function_name": "getView", "code": "\tpublic View getView()\n\t{\n\t\treturn view;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBuffer", "code": "\tpublic Buffer getBuffer()\n\t{\n\t\treturn buffer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBuffer", "code": "\tpublic void setBuffer(final Buffer buffer)\n\t{\n\t\tif(this.buffer == buffer)\n\t\t\treturn;\n\n\t\tif(buffer.isClosed())\n\t\t\tthrow new InternalError(buffer + \" has been closed\");\n\n\t\tbuffer.endCompoundEdit();\n\n\t\trecentBuffer = this.buffer;\n\t\tif(recentBuffer != null)\n\t\t\tsaveCaretInfo();\n\t\tthis.buffer = buffer;\n\n\t\ttextArea.setBuffer(buffer);\n\n\t\tif(!init)\n\t\t{\n\t\t\tview.updateTitle();\n\n\t\t\tif(bufferSwitcher != null)\n\t\t\t{\n\t\t\t\tif(bufferSwitcher.getSelectedItem() != buffer)\n\t\t\t\t\tbufferSwitcher.setSelectedItem(buffer);\n\t\t\t}\n\n\t\t\tEditBus.send(new EditPaneUpdate(this,EditPaneUpdate\n\t\t\t\t.BUFFER_CHANGED));\n\t\t}\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\t// only do this if we are the current edit pane\n\t\t\t\tif(view.getEditPane() == EditPane.this\n\t\t\t\t\t&& (bufferSwitcher == null\n\t\t\t\t\t|| !bufferSwitcher.isPopupVisible()))\n\t\t\t\t{\n\t\t\t\t\tfocusOnTextArea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// Only do this after all I/O requests are complete\n\t\tRunnable runnable = new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tloadCaretInfo();\n\t\t\t\tbuffer.checkModTime(view);\n\t\t\t}\n\t\t};\n\n\t\tif(buffer.isPerformingIO())\n\t\t\tVFSManager.runInAWTThread(runnable);\n\t\telse\n\t\t\trunnable.run();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "PARAM", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "THROW_RAISE", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "FUNC_DECL", "FUNC_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [0, 10], [0, 11], [4, 12], [0, 13], [0, 14], [5, 15], [5, 16], [6, 17], [6, 18], [1, 19], [1, 20], [2, 21], [9, 22], [3, 23], [4, 24], [12, 25], [15, 26], [21, 27], [22, 28], [3, 29], [23, 30], [3, 31], [26, 32], [28, 33], [29, 34], [23, 35], [30, 36], [32, 37], [27, 38], [27, 39], [33, 40], [35, 41], [40, 42], [40, 43], [35, 44], [41, 45], [33, 46], [42, 47], [42, 48], [43, 49], [48, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 0], [11, 0], [12, 4], [13, 0], [14, 0], [15, 5], [16, 5], [17, 6], [18, 6], [19, 1], [20, 1], [21, 2], [22, 9], [23, 3], [24, 4], [25, 12], [26, 15], [27, 21], [28, 22], [29, 3], [30, 23], [31, 3], [32, 26], [33, 28], [34, 29], [35, 23], [36, 30], [37, 32], [38, 27], [39, 27], [40, 33], [41, 35], [42, 40], [43, 40], [44, 35], [45, 41], [46, 33], [47, 42], [48, 42], [49, 43], [50, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "prevBuffer", "code": "\tpublic void prevBuffer()\n\t{\n\t\tBuffer buffer = this.buffer.getPrev();\n\t\tif(buffer == null)\n\t\t\tsetBuffer(jEdit.getLastBuffer());\n\t\telse\n\t\t\tsetBuffer(buffer);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "nextBuffer", "code": "\tpublic void nextBuffer()\n\t{\n\t\tBuffer buffer = this.buffer.getNext();\n\t\tif(buffer == null)\n\t\t\tsetBuffer(jEdit.getFirstBuffer());\n\t\telse\n\t\t\tsetBuffer(buffer);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "recentBuffer", "code": "\tpublic void recentBuffer()\n\t{\n\t\tif(recentBuffer != null)\n\t\t\tsetBuffer(recentBuffer);\n\t\telse\n\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "focusOnTextArea", "code": "\tpublic void focusOnTextArea()\n\t{\n\t\ttextArea.grabFocus();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTextArea", "code": "\tpublic JEditTextArea getTextArea()\n\t{\n\t\treturn textArea;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "saveCaretInfo", "code": "\tpublic void saveCaretInfo()\n\t{\n\t\tbuffer.putProperty(Buffer.CARET,new Integer(\n\t\t\ttextArea.getCaretPosition()));\n\n\t\tSelection[] selection = textArea.getSelection();\n\t\tif(selection != null)\n\t\t\tbuffer.putProperty(Buffer.SELECTION,selection);\n\n\t\tbuffer.putProperty(Buffer.SCROLL_VERT,new Integer(\n\t\t\ttextArea.getFirstLine()));\n\t\tbuffer.putProperty(Buffer.SCROLL_HORIZ,new Integer(\n\t\t\ttextArea.getHorizontalOffset()));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [3, 7], [4, 8], [1, 9], [5, 10], [2, 11], [6, 12], [7, 13], [8, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 3], [8, 4], [9, 1], [10, 5], [11, 2], [12, 6], [13, 7], [14, 8], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "loadCaretInfo", "code": "\tpublic void loadCaretInfo()\n\t{\n\t\tInteger caret = (Integer)buffer.getProperty(Buffer.CARET);\n\t\tSelection[] selection = (Selection[])buffer.getProperty(Buffer.SELECTION);\n\n\t\tInteger firstLine = (Integer)buffer.getProperty(Buffer.SCROLL_VERT);\n\t\tInteger horizontalOffset = (Integer)buffer.getProperty(Buffer.SCROLL_HORIZ);\n\n\t\tif(caret != null)\n\t\t{\n\t\t\ttextArea.setCaretPosition(Math.min(caret.intValue(),\n\t\t\t\tbuffer.getLength()));\n\t\t}\n\n\t\tif(selection != null)\n\t\t\ttextArea.setSelection(selection);\n\n\t\tif(firstLine != null)\n\t\t\ttextArea.setFirstLine(firstLine.intValue());\n\n\t\tif(horizontalOffset != null)\n\t\t\ttextArea.setHorizontalOffset(horizontalOffset.intValue());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [1, 13], [9, 14], [2, 15], [10, 16], [3, 17], [11, 18], [12, 19], [13, 20], [15, 21], [4, 22], [5, 23], [6, 24], [7, 25], [8, 26], [22, 27], [27, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 4], [13, 1], [14, 9], [15, 2], [16, 10], [17, 3], [18, 11], [19, 12], [20, 13], [21, 15], [22, 4], [23, 5], [24, 6], [25, 7], [26, 8], [27, 22], [28, 27], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "handleMessage", "code": "\tpublic void handleMessage(EBMessage msg)\n\t{\n\t\tif(msg instanceof PropertiesChanged)\n\t\t{\n\t\t\tpropertiesChanged();\n\t\t\tloadBufferSwitcher();\n\t\t}\n\t\telse if(msg instanceof BufferUpdate)\n\t\t\thandleBufferUpdate((BufferUpdate)msg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [1, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getMinimumSize", "code": "\tpublic final Dimension getMinimumSize()\n\t{\n\t\treturn new Dimension(0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "close", "code": "\tvoid close()\n\t{\n\t\tsaveCaretInfo();\n\t\tEditBus.send(new EditPaneUpdate(this,EditPaneUpdate.DESTROYED));\n\t\tEditBus.removeFromBus(this);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "propertiesChanged", "code": "\tprivate void propertiesChanged()\n\t{\n\t\tTextAreaPainter painter = textArea.getPainter();\n\n\t\tpainter.setFont(UIManager.getFont(\"TextArea.font\"));\n\t\tpainter.setBracketHighlightEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.bracketHighlight\"));\n\t\tpainter.setBracketHighlightColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.bracketHighlightColor\")));\n\t\tpainter.setEOLMarkersPainted(jEdit.getBooleanProperty(\n\t\t\t\"view.eolMarkers\"));\n\t\tpainter.setEOLMarkerColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.eolMarkerColor\")));\n\t\tpainter.setWrapGuidePainted(jEdit.getBooleanProperty(\n\t\t\t\"view.wrapGuide\"));\n\t\tpainter.setWrapGuideColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.wrapGuideColor\")));\n\t\tpainter.setCaretColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.caretColor\")));\n\t\tpainter.setSelectionColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.selectionColor\")));\n\t\tpainter.setBackground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.bgColor\")));\n\t\tpainter.setForeground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.fgColor\")));\n\t\tpainter.setBlockCaretEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.blockCaret\"));\n\t\tpainter.setLineHighlightEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.lineHighlight\"));\n\t\tpainter.setLineHighlightColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.lineHighlightColor\")));\n\t\tpainter.setAntiAliasEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.antiAlias\"));\n\t\tpainter.setFractionalFontMetricsEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.fracFontMetrics\"));\n\t\tpainter.setStyles(GUIUtilities.loadStyles(jEdit.getProperty(\"view.font\"),\n\t\t\tInteger.parseInt(jEdit.getProperty(\"view.fontsize\"))));\n\n\t\tGutter gutter = textArea.getGutter();\n\t\tgutter.setExpanded(jEdit.getBooleanProperty(\n\t\t\t\"view.gutter.lineNumbers\"));\n\t\ttry\n\t\t{\n\t\t\tint interval = Integer.parseInt(jEdit.getProperty(\n\t\t\t\t\"view.gutter.highlightInterval\"));\n\t\t\tgutter.setHighlightInterval(interval);\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\t// retain the default highlight interval\n\t\t}\n\t\tgutter.setCurrentLineHighlightEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.gutter.highlightCurrentLine\"));\n\t\tgutter.setBackground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.bgColor\")));\n\t\tgutter.setForeground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.fgColor\")));\n\t\tgutter.setHighlightedForeground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.highlightColor\")));\n\t\tgutter.setFoldColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.foldColor\")));\n\t\tmarkerHighlight.setMarkerHighlightColor(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.markerColor\")));\n\t\tmarkerHighlight.setHighlightEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.gutter.markerHighlight\"));\n\t\tgutter.setCurrentLineForeground(GUIUtilities.parseColor(\n\t\t\tjEdit.getProperty(\"view.gutter.currentLineColor\")));\n\t\tString alignment = jEdit.getProperty(\n\t\t\t\"view.gutter.numberAlignment\");\n\t\tif (\"right\".equals(alignment))\n\t\t{\n\t\t\tgutter.setLineNumberAlignment(Gutter.RIGHT);\n\t\t}\n\t\telse if (\"center\".equals(alignment))\n\t\t{\n\t\t\tgutter.setLineNumberAlignment(Gutter.CENTER);\n\t\t}\n\t\telse // left == default case\n\t\t{\n\t\t\tgutter.setLineNumberAlignment(Gutter.LEFT);\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tString fontname = jEdit.getProperty(\"view.gutter.font\");\n\t\t\tint fontsize = Integer.parseInt(jEdit.getProperty(\n\t\t\t\t\"view.gutter.fontsize\"));\n\t\t\tint fontstyle = Integer.parseInt(jEdit.getProperty(\n\t\t\t\t\"view.gutter.fontstyle\"));\n\t\t\tgutter.setFont(new Font(fontname,fontstyle,fontsize));\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\t// retain the default font\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tint width = Integer.parseInt(jEdit.getProperty(\n\t\t\t\t\"view.gutter.borderWidth\"));\n\t\t\tgutter.setBorder(width, GUIUtilities.parseColor(\n\t\t\t\tjEdit.getProperty(\"view.gutter.focusBorderColor\")),\n\t\t\t\tGUIUtilities.parseColor(jEdit.getProperty(\n\t\t\t\t\"view.gutter.noFocusBorderColor\")),\n\t\t\t\ttextArea.getPainter().getBackground());\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\t// retain the default border\n\t\t}\n\n\t\ttextArea.setCaretBlinkEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.caretBlink\"));\n\n\t\ttry\n\t\t{\n\t\t\ttextArea.setElectricScroll(Integer.parseInt(jEdit\n\t\t\t\t.getProperty(\"view.electricBorders\")));\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\ttextArea.setElectricScroll(0);\n\t\t}\n\n\t\t// Set up the right-click popup menu\n\t\ttextArea.setRightClickPopup(GUIUtilities\n\t\t\t.loadPopupMenu(\"view.context\"));\n\n\t\ttextArea.setMiddleMousePasteEnabled(jEdit.getBooleanProperty(\n\t\t\t\"view.middleMousePaste\"));", "ast_nodes": ["FUNC_DECL", "TRY", "TRY", "TRY", "IF", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CATCH", "CALL", "CATCH", "VAR_DECL", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [0, 12], [2, 13], [2, 14], [3, 15], [3, 16], [3, 17], [3, 18], [4, 19], [4, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [6, 29], [6, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [9, 49], [10, 50], [1, 51], [12, 52], [2, 53], [3, 54], [19, 55], [20, 56], [5, 57], [21, 58], [22, 59], [23, 60], [24, 61], [25, 62], [26, 63], [27, 64], [28, 65], [6, 66], [31, 67], [7, 68], [32, 69], [33, 70], [34, 71], [35, 72], [36, 73], [37, 74], [38, 75], [39, 76], [40, 77], [41, 78], [42, 79], [43, 80], [44, 81], [45, 82], [46, 83], [47, 84], [48, 85], [8, 86], [49, 87], [50, 88], [11, 89], [51, 90], [52, 91], [53, 92], [53, 93], [53, 94], [14, 95], [54, 96], [16, 97], [17, 98], [18, 99], [55, 100], [4, 101], [57, 102], [58, 103], [59, 104], [60, 105], [61, 106], [62, 107], [63, 108], [64, 109], [65, 110], [30, 111], [67, 112], [69, 113], [69, 114], [70, 115], [71, 116], [72, 117], [73, 118], [74, 119], [75, 120], [76, 121], [77, 122], [78, 123], [79, 124], [80, 125], [81, 126], [82, 127], [83, 128], [84, 129], [85, 130], [89, 131], [90, 132], [92, 133], [93, 134], [94, 135], [95, 136], [97, 137], [98, 138], [99, 139], [19, 140], [19, 141], [103, 142], [105, 143], [106, 144], [107, 145], [108, 146], [109, 147], [111, 148], [113, 149], [114, 150], [117, 151], [120, 152], [121, 153], [122, 154], [123, 155], [124, 156], [126, 157], [128, 158], [132, 159], [134, 160], [135, 161], [136, 162], [137, 163], [138, 164], [148, 165], [149, 166], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 0], [13, 2], [14, 2], [15, 3], [16, 3], [17, 3], [18, 3], [19, 4], [20, 4], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 6], [30, 6], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 9], [50, 10], [51, 1], [52, 12], [53, 2], [54, 3], [55, 19], [56, 20], [57, 5], [58, 21], [59, 22], [60, 23], [61, 24], [62, 25], [63, 26], [64, 27], [65, 28], [66, 6], [67, 31], [68, 7], [69, 32], [70, 33], [71, 34], [72, 35], [73, 36], [74, 37], [75, 38], [76, 39], [77, 40], [78, 41], [79, 42], [80, 43], [81, 44], [82, 45], [83, 46], [84, 47], [85, 48], [86, 8], [87, 49], [88, 50], [89, 11], [90, 51], [91, 52], [92, 53], [93, 53], [94, 53], [95, 14], [96, 54], [97, 16], [98, 17], [99, 18], [100, 55], [101, 4], [102, 57], [103, 58], [104, 59], [105, 60], [106, 61], [107, 62], [108, 63], [109, 64], [110, 65], [111, 30], [112, 67], [113, 69], [114, 69], [115, 70], [116, 71], [117, 72], [118, 73], [119, 74], [120, 75], [121, 76], [122, 77], [123, 78], [124, 79], [125, 80], [126, 81], [127, 82], [128, 83], [129, 84], [130, 85], [131, 89], [132, 90], [133, 92], [134, 93], [135, 94], [136, 95], [137, 97], [138, 98], [139, 99], [140, 19], [141, 19], [142, 103], [143, 105], [144, 106], [145, 107], [146, 108], [147, 109], [148, 111], [149, 113], [150, 114], [151, 117], [152, 120], [153, 121], [154, 122], [155, 123], [156, 124], [157, 126], [158, 128], [159, 132], [160, 134], [161, 135], [162, 136], [163, 137], [164, 138], [165, 148], [166, 149], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166]]}, {"function_name": "loadBufferSwitcher", "code": "\tprivate void loadBufferSwitcher()\n\t{\n\t\tif(jEdit.getBooleanProperty(\"view.showBufferSwitcher\"))\n\t\t{\n\t\t\tif(bufferSwitcher == null)\n\t\t\t{\n\t\t\t\tbufferSwitcher = new BufferSwitcher(this);\n\t\t\t\tadd(BorderLayout.NORTH,bufferSwitcher);\n\t\t\t\tbufferSwitcher.updateBufferList();\n\t\t\t\trevalidate();\n\t\t\t}\n\t\t}\n\t\telse if(bufferSwitcher != null)\n\t\t{\n\t\t\tremove(bufferSwitcher);\n\t\t\trevalidate();\n\t\t\tbufferSwitcher = null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 5], [3, 6], [4, 7], [5, 8], [2, 9], [2, 10], [2, 11], [8, 12], [9, 13], [5, 14], [5, 15], [5, 16], [5, 17], [17, 18], [1, 0], [2, 1], [3, 1], [4, 2], [5, 1], [6, 3], [7, 4], [8, 5], [9, 2], [10, 2], [11, 2], [12, 8], [13, 9], [14, 5], [15, 5], [16, 5], [17, 5], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "handleBufferUpdate", "code": "\tprivate void handleBufferUpdate(BufferUpdate msg)\n\t{\n\t\tBuffer _buffer = msg.getBuffer();\n\t\tif(msg.getWhat() == BufferUpdate.CREATED)\n\t\t{\n\t\t\tif(bufferSwitcher != null)\n\t\t\t\tbufferSwitcher.updateBufferList();\n\n\t\t\t/* When closing the last buffer, the BufferUpdate.CLOSED\n\t\t\t * handler doesn't call setBuffer(), because null buffers\n\t\t\t * are not supported. Instead, it waits for the subsequent\n\t\t\t * 'Untitled' file creation. */\n\t\t\tif(buffer.isClosed())\n\t\t\t\tsetBuffer(jEdit.getFirstBuffer());\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.CLOSED)\n\t\t{\n\t\t\tif(bufferSwitcher != null)\n\t\t\t\tbufferSwitcher.updateBufferList();\n\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\tBuffer newBuffer = (recentBuffer != null ?\n\t\t\t\t\trecentBuffer : _buffer.getPrev());\n\t\t\t\tif(newBuffer != null && !newBuffer.isClosed())\n\t\t\t\t\tsetBuffer(newBuffer);\n\t\t\t\telse if(jEdit.getBufferCount() != 0)\n\t\t\t\t\tsetBuffer(jEdit.getFirstBuffer());\n\n\t\t\t\trecentBuffer = null;\n\t\t\t}\n\t\t\telse if(_buffer == recentBuffer)\n\t\t\t\trecentBuffer = null;\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.LOAD_STARTED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\ttextArea.setCaretPosition(0);\n\t\t\t\ttextArea.getPainter().repaint();\n\t\t\t}\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.DIRTY_CHANGED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\tif(bufferSwitcher != null)\n\t\t\t\t{\n\t\t\t\t\tif(buffer.isDirty())\n\t\t\t\t\t\tbufferSwitcher.repaint();\n\t\t\t\t\telse\n\t\t\t\t\t\tbufferSwitcher.updateBufferList();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.LOADED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\ttextArea.repaint();\n\t\t\t\ttextArea.updateScrollBars();\n\t\t\t\tif(bufferSwitcher != null)\n\t\t\t\t\tbufferSwitcher.updateBufferList();\n\n\t\t\t\tif(view.getEditPane() == this)\n\t\t\t\t{\n\t\t\t\t\tStatusBar status = view.getStatus();\n\t\t\t\t\tstatus.repaintCaretStatus();\n\t\t\t\t\tstatus.updateBufferStatus();\n\t\t\t\t\tstatus.updateMiscStatus();\n\t\t\t\t}\n\n\t\t\t\tloadCaretInfo();\n\t\t\t}\n\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.MARKERS_CHANGED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t\ttextArea.getGutter().repaint();\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.MODE_CHANGED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\ttextArea.getPainter().repaint();\n\n\t\t\t\tif(view.getEditPane() == this)\n\t\t\t\t\tview.getStatus().updateBufferStatus();\n\t\t\t}\n\t\t}\n\t\telse if(msg.getWhat() == BufferUpdate.ENCODING_CHANGED)\n\t\t{\n\t\t\tif(_buffer == buffer)\n\t\t\t{\n\t\t\t\tif(view.getEditPane() == this)\n\t\t\t\t\tview.getStatus().updateBufferStatus();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "IF", "CALL", "CALL", "IF", "BINARY_OP", "IF", "IF", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "IF", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "COND_EXPR", "BINARY_OP", "IF", "CALL", "BINARY_OP", "IF", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [1, 9], [5, 10], [2, 11], [6, 12], [6, 13], [4, 14], [4, 15], [7, 16], [8, 17], [9, 18], [12, 19], [12, 20], [6, 21], [13, 22], [14, 23], [14, 24], [15, 25], [8, 26], [9, 27], [18, 28], [19, 29], [19, 30], [12, 31], [20, 32], [21, 33], [23, 34], [14, 35], [14, 36], [15, 37], [25, 38], [26, 39], [29, 40], [29, 41], [19, 42], [30, 43], [31, 44], [23, 45], [14, 46], [35, 47], [35, 48], [40, 49], [40, 50], [29, 51], [41, 52], [42, 53], [31, 54], [21, 55], [21, 56], [45, 57], [46, 58], [47, 59], [35, 60], [48, 61], [48, 62], [36, 63], [49, 64], [40, 65], [50, 66], [51, 67], [42, 68], [42, 69], [54, 70], [55, 71], [56, 72], [47, 73], [59, 74], [59, 75], [62, 76], [63, 77], [63, 78], [49, 79], [64, 80], [65, 81], [51, 82], [42, 83], [68, 84], [69, 85], [42, 86], [42, 87], [54, 88], [70, 89], [73, 90], [78, 91], [79, 92], [65, 93], [82, 94], [68, 95], [84, 96], [69, 97], [85, 98], [88, 99], [79, 100], [93, 101], [65, 102], [68, 103], [68, 104], [68, 105], [88, 106], [88, 107], [100, 108], [93, 109], [101, 110], [102, 111], [95, 112], [100, 113], [108, 114], [109, 115], [113, 116], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 1], [10, 5], [11, 2], [12, 6], [13, 6], [14, 4], [15, 4], [16, 7], [17, 8], [18, 9], [19, 12], [20, 12], [21, 6], [22, 13], [23, 14], [24, 14], [25, 15], [26, 8], [27, 9], [28, 18], [29, 19], [30, 19], [31, 12], [32, 20], [33, 21], [34, 23], [35, 14], [36, 14], [37, 15], [38, 25], [39, 26], [40, 29], [41, 29], [42, 19], [43, 30], [44, 31], [45, 23], [46, 14], [47, 35], [48, 35], [49, 40], [50, 40], [51, 29], [52, 41], [53, 42], [54, 31], [55, 21], [56, 21], [57, 45], [58, 46], [59, 47], [60, 35], [61, 48], [62, 48], [63, 36], [64, 49], [65, 40], [66, 50], [67, 51], [68, 42], [69, 42], [70, 54], [71, 55], [72, 56], [73, 47], [74, 59], [75, 59], [76, 62], [77, 63], [78, 63], [79, 49], [80, 64], [81, 65], [82, 51], [83, 42], [84, 68], [85, 69], [86, 42], [87, 42], [88, 54], [89, 70], [90, 73], [91, 78], [92, 79], [93, 65], [94, 82], [95, 68], [96, 84], [97, 69], [98, 85], [99, 88], [100, 79], [101, 93], [102, 65], [103, 68], [104, 68], [105, 68], [106, 88], [107, 88], [108, 100], [109, 93], [110, 101], [111, 102], [112, 95], [113, 100], [114, 108], [115, 109], [116, 113], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116]]}, {"function_name": "EditPane", "code": "\tEditPane(View view, Buffer buffer)\n\t{\n\t\tsuper(new BorderLayout());\n\n\t\tinit = true;\n\n\t\tthis.view = view;\n\n\t\tEditBus.addToBus(this);\n\n\t\ttextArea = new JEditTextArea(view);\n\n\t\tadd(BorderLayout.CENTER,textArea);\n\t\tmarkerHighlight = new MarkerHighlight();\n\t\ttextArea.getGutter().addCustomHighlight(markerHighlight);\n\n\t\tpropertiesChanged();\n\n\t\tif(buffer == null)\n\t\t\tsetBuffer(jEdit.getFirstBuffer());\n\t\telse\n\t\t\tsetBuffer(buffer);\n\n\t\tloadBufferSwitcher();\n\n\t\tinit = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [4, 16], [1, 17], [1, 18], [6, 19], [8, 20], [9, 21], [11, 22], [14, 23], [18, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 4], [17, 1], [18, 1], [19, 6], [20, 8], [21, 9], [22, 11], [23, 14], [24, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}], "label": 1}
{"sample_id": "ant-1.6-541", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/TaskAdapter.java", "language": "java", "name": "org.apache.tools.ant.TaskAdapter", "code": "public class TaskAdapter extends Task implements TypeAdapter {\n\n    /** Object to act as a proxy for. */\n    private Object proxy;\n\n    /**\n     * Checks whether or not a class is suitable to be adapted by TaskAdapter.\n     *\n     * This only checks conditions which are additionally required for\n     * tasks adapted by TaskAdapter. Thus, this method should be called by\n     * Project.checkTaskClass.\n     *\n     * Throws a BuildException and logs as Project.MSG_ERR for\n     * conditions that will cause the task execution to fail.\n     * Logs other suspicious conditions with Project.MSG_WARN.\n     *\n     * @param taskClass Class to test for suitability.\n     *                  Must not be <code>null</code>.\n     * @param project   Project to log warnings/errors to.\n     *                  Must not be <code>null</code>.\n     *\n     * @see Project#checkTaskClass(Class)\n     */\n    public static void checkTaskClass(final Class taskClass,\n                                      final Project project) {\n        try {\n            final Method executeM = taskClass.getMethod(\"execute\", null);\n            if (!Void.TYPE.equals(executeM.getReturnType())) {\n                final String message = \"return type of execute() should be \"\n                    + \"void but was \\\"\" + executeM.getReturnType() + \"\\\" in \"\n                    + taskClass;\n                project.log(message, Project.MSG_WARN);\n            }\n        } catch (NoSuchMethodException e) {\n            final String message = \"No public execute() in \" + taskClass;\n            project.log(message, Project.MSG_ERR);\n            throw new BuildException(message);\n        } catch (LinkageError e) {\n            String message = \"Could not load \" + taskClass + \": \" + e;\n            project.log(message, Project.MSG_ERR);\n            throw new BuildException(message, e);\n        }\n    }\n\n    /**\n     * check if the proxy class is a valid class to use\n     * with this adapter.\n     * the class must have a public no-arg \"execute()\" method.\n     * @param proxyClass the class to check\n     */\n    public void checkProxyClass(Class proxyClass) {\n        checkTaskClass(proxyClass, getProject());\n    }\n\n    /**\n     * Executes the proxied task.\n     *\n     * @exception BuildException if the project could not be set\n     * or the method could not be executed.\n     */\n    public void execute() throws BuildException {\n        Method setProjectM = null;\n        try {\n            Class c = proxy.getClass();\n            setProjectM =\n                c.getMethod(\"setProject\", new Class[] {Project.class});\n            if (setProjectM != null) {\n                setProjectM.invoke(proxy, new Object[] {getProject()});\n            }\n        } catch (NoSuchMethodException e) {\n        } catch (Exception ex) {\n            log(\"Error setting project in \" + proxy.getClass(),\n                Project.MSG_ERR);\n            throw new BuildException(ex);\n        }\n\n\n        Method executeM = null;\n        try {\n            Class c = proxy.getClass();\n            executeM = c.getMethod(\"execute\", new Class[0]);\n            if (executeM == null) {\n                log(\"No public execute() in \" + proxy.getClass(),\n                    Project.MSG_ERR);\n                throw new BuildException(\"No public execute() in \"\n                    + proxy.getClass());\n            }\n            executeM.invoke(proxy, null);\n            return;\n        } catch (java.lang.reflect.InvocationTargetException ie) {\n            log(\"Error in \" + proxy.getClass(), Project.MSG_VERBOSE);\n            Throwable t = ie.getTargetException();\n            if (t instanceof BuildException) {\n                throw ((BuildException) t);\n            } else {\n                throw new BuildException(t);\n            }\n        } catch (Exception ex) {\n            log(\"Error in \" + proxy.getClass(), Project.MSG_VERBOSE);\n            throw new BuildException(ex);\n        }\n\n    }\n\n    /**\n     * Sets the target object to proxy for.\n     *\n     * @param o The target object. Must not be <code>null</code>.\n     */\n    public void setProxy(Object o) {\n        this.proxy = o;\n    }\n\n    /**\n     * Returns the target object being proxied.\n     *\n     * @return the target proxy object\n     */\n    public Object getProxy() {\n        return proxy;", "functions": [{"function_name": "checkTaskClass", "code": "    public static void checkTaskClass(final Class taskClass,\n                                      final Project project) {\n        try {\n            final Method executeM = taskClass.getMethod(\"execute\", null);\n            if (!Void.TYPE.equals(executeM.getReturnType())) {\n                final String message = \"return type of execute() should be \"\n                    + \"void but was \\\"\" + executeM.getReturnType() + \"\\\" in \"\n                    + taskClass;\n                project.log(message, Project.MSG_WARN);\n            }\n        } catch (NoSuchMethodException e) {\n            final String message = \"No public execute() in \" + taskClass;\n            project.log(message, Project.MSG_ERR);\n            throw new BuildException(message);\n        } catch (LinkageError e) {\n            String message = \"Could not load \" + taskClass + \": \" + e;\n            project.log(message, Project.MSG_ERR);\n            throw new BuildException(message, e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [4, 9], [5, 10], [5, 11], [6, 12], [8, 13], [4, 14], [10, 15], [5, 16], [6, 17], [12, 18], [7, 19], [9, 20], [11, 21], [6, 22], [19, 23], [19, 24], [20, 25], [21, 26], [17, 27], [25, 28], [25, 29], [27, 30], [29, 31], [30, 32], [30, 33], [33, 34], [33, 35], [35, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 4], [10, 5], [11, 5], [12, 6], [13, 8], [14, 4], [15, 10], [16, 5], [17, 6], [18, 12], [19, 7], [20, 9], [21, 11], [22, 6], [23, 19], [24, 19], [25, 20], [26, 21], [27, 17], [28, 25], [29, 25], [30, 27], [31, 29], [32, 30], [33, 30], [34, 33], [35, 33], [36, 35], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "checkProxyClass", "code": "    public void checkProxyClass(Class proxyClass) {\n        checkTaskClass(proxyClass, getProject());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        Method setProjectM = null;\n        try {\n            Class c = proxy.getClass();\n            setProjectM =\n                c.getMethod(\"setProject\", new Class[] {Project.class});\n            if (setProjectM != null) {\n                setProjectM.invoke(proxy, new Object[] {getProject()});\n            }\n        } catch (NoSuchMethodException e) {\n        } catch (Exception ex) {\n            log(\"Error setting project in \" + proxy.getClass(),\n                Project.MSG_ERR);\n            throw new BuildException(ex);\n        }\n\n\n        Method executeM = null;\n        try {\n            Class c = proxy.getClass();\n            executeM = c.getMethod(\"execute\", new Class[0]);\n            if (executeM == null) {\n                log(\"No public execute() in \" + proxy.getClass(),\n                    Project.MSG_ERR);\n                throw new BuildException(\"No public execute() in \"\n                    + proxy.getClass());\n            }\n            executeM.invoke(proxy, null);\n            return;\n        } catch (java.lang.reflect.InvocationTargetException ie) {\n            log(\"Error in \" + proxy.getClass(), Project.MSG_VERBOSE);\n            Throwable t = ie.getTargetException();\n            if (t instanceof BuildException) {\n                throw ((BuildException) t);\n            } else {\n                throw new BuildException(t);\n            }\n        } catch (Exception ex) {\n            log(\"Error in \" + proxy.getClass(), Project.MSG_VERBOSE);\n            throw new BuildException(ex);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "CATCH", "CATCH", "RETURN", "IF", "VAR_DECL", "CATCH", "CATCH", "IF", "VAR_DECL", "THROW_RAISE", "IF", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [3, 12], [3, 13], [5, 14], [6, 15], [6, 16], [1, 17], [8, 18], [1, 19], [2, 20], [10, 21], [12, 22], [3, 23], [4, 24], [14, 25], [5, 26], [15, 27], [6, 28], [17, 29], [8, 30], [18, 31], [19, 32], [9, 33], [21, 34], [10, 35], [22, 36], [23, 37], [13, 38], [26, 39], [15, 40], [15, 41], [16, 42], [28, 43], [30, 44], [8, 45], [32, 46], [35, 47], [12, 48], [37, 49], [39, 50], [39, 51], [40, 52], [43, 53], [43, 54], [44, 55], [45, 56], [32, 57], [47, 58], [47, 59], [55, 60], [55, 61], [56, 62], [56, 63], [48, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 3], [13, 3], [14, 5], [15, 6], [16, 6], [17, 1], [18, 8], [19, 1], [20, 2], [21, 10], [22, 12], [23, 3], [24, 4], [25, 14], [26, 5], [27, 15], [28, 6], [29, 17], [30, 8], [31, 18], [32, 19], [33, 9], [34, 21], [35, 10], [36, 22], [37, 23], [38, 13], [39, 26], [40, 15], [41, 15], [42, 16], [43, 28], [44, 30], [45, 8], [46, 32], [47, 35], [48, 12], [49, 37], [50, 39], [51, 39], [52, 40], [53, 43], [54, 43], [55, 44], [56, 45], [57, 32], [58, 47], [59, 47], [60, 55], [61, 55], [62, 56], [63, 56], [64, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "setProxy", "code": "    public void setProxy(Object o) {\n        this.proxy = o;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProxy", "code": "    public Object getProxy() {\n        return proxy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "poi-2.5-5631", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/DBCellRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DBCellRecord", "code": "public class DBCellRecord\n    extends Record\n{\n    public final static short sid = 0xd7;\n    private int               field_1_row_offset;\n    private short[]           field_2_cell_offsets;\n\n    public DBCellRecord()\n    {\n    }\n\n    /**\n     * Constructs a DBCellRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0xd7 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public DBCellRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a DBCellRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0xd7 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public DBCellRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A valid DBCell RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_row_offset   = LittleEndian.getUShort(data, 0 + offset);\n        field_2_cell_offsets = new short[ (size - 4) / 2 ];\n        int element = 0;\n\n        for (int k = 4; k < data.length; k += 2)\n        {\n            field_2_cell_offsets[ element++ ] = LittleEndian.getShort(data,\n                    k + offset);\n        }\n    }\n\n    /**\n     * sets offset from the start of this DBCellRecord to the start of the first cell in\n     * the next DBCell block.\n     *\n     * @param offset    offset to the start of the first cell in the next DBCell block\n     */\n\n    public void setRowOffset(int offset)\n    {\n        field_1_row_offset = offset;\n    }\n\n    public void addCellOffset(short offset)\n    {\n        if (field_2_cell_offsets == null)\n        {\n            field_2_cell_offsets = new short[ 1 ];\n        }\n        else\n        {\n            short[] temp = new short[ field_2_cell_offsets.length + 1 ];\n\n            System.arraycopy(field_2_cell_offsets, 0, temp, 0,\n                             field_2_cell_offsets.length);\n            field_2_cell_offsets = temp;\n        }\n        field_2_cell_offsets[ field_2_cell_offsets.length - 1 ] = offset;\n    }\n\n    /**\n     * gets offset from the start of this DBCellRecord to the start of the first cell in\n     * the next DBCell block.\n     *\n     * @return rowoffset to the start of the first cell in the next DBCell block\n     */\n\n    public int getRowOffset()\n    {\n        return field_1_row_offset;\n    }\n\n    /**\n     * return the cell offset in the array\n     *\n     * @param index of the cell offset to retrieve\n     * @return celloffset from the celloffset array\n     */\n\n    public short getCellOffsetAt(int index)\n    {\n        return field_2_cell_offsets[ index ];\n    }\n\n    /**\n     * get the number of cell offsets in the celloffset array\n     *\n     * @return number of cell offsets\n     */\n\n    public int getNumCellOffsets()\n    {\n        return field_2_cell_offsets.length;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DBCELL]\\n\");\n        buffer.append(\"    .rowoffset       = \")\n            .append(Integer.toHexString(getRowOffset())).append(\"\\n\");\n        for (int k = 0; k < getNumCellOffsets(); k++)\n        {\n            buffer.append(\"    .cell_\" + k + \"          = \")\n                .append(Integer.toHexString(getCellOffsetAt(k))).append(\"\\n\");\n        }\n        buffer.append(\"[/DBCELL]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        if (field_2_cell_offsets == null)\n        {\n            field_2_cell_offsets = new short[ 0 ];\n        }\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,\n                              (( short ) (4 + (getNumCellOffsets() * 2))));\n        LittleEndian.putInt(data, 4 + offset, getRowOffset());\n        for (int k = 0; k < getNumCellOffsets(); k++)\n        {\n            LittleEndian.putShort(data, 8 + k + offset, getCellOffsetAt(k));\n        }\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 8 + (getNumCellOffsets() * 2);\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public boolean isInValueSection()\n    {\n        return true;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A valid DBCell RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_row_offset   = LittleEndian.getUShort(data, 0 + offset);\n        field_2_cell_offsets = new short[ (size - 4) / 2 ];\n        int element = 0;\n\n        for (int k = 4; k < data.length; k += 2)\n        {\n            field_2_cell_offsets[ element++ ] = LittleEndian.getShort(data,\n                    k + offset);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [0, 8], [0, 9], [6, 10], [2, 11], [9, 12], [1, 13], [1, 14], [8, 15], [12, 16], [13, 17], [15, 18], [15, 19], [16, 20], [17, 21], [19, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 0], [9, 0], [10, 6], [11, 2], [12, 9], [13, 1], [14, 1], [15, 8], [16, 12], [17, 13], [18, 15], [19, 15], [20, 16], [21, 17], [22, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "setRowOffset", "code": "    public void setRowOffset(int offset)\n    {\n        field_1_row_offset = offset;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addCellOffset", "code": "    public void addCellOffset(short offset)\n    {\n        if (field_2_cell_offsets == null)\n        {\n            field_2_cell_offsets = new short[ 1 ];\n        }\n        else\n        {\n            short[] temp = new short[ field_2_cell_offsets.length + 1 ];\n\n            System.arraycopy(field_2_cell_offsets, 0, temp, 0,\n                             field_2_cell_offsets.length);\n            field_2_cell_offsets = temp;\n        }\n        field_2_cell_offsets[ field_2_cell_offsets.length - 1 ] = offset;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [3, 10], [8, 11], [8, 12], [10, 13], [5, 14], [9, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 3], [11, 8], [12, 8], [13, 10], [14, 5], [15, 9], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getRowOffset", "code": "    public int getRowOffset()\n    {\n        return field_1_row_offset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCellOffsetAt", "code": "    public short getCellOffsetAt(int index)\n    {\n        return field_2_cell_offsets[ index ];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNumCellOffsets", "code": "    public int getNumCellOffsets()\n    {\n        return field_2_cell_offsets.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DBCELL]\\n\");\n        buffer.append(\"    .rowoffset       = \")\n            .append(Integer.toHexString(getRowOffset())).append(\"\\n\");\n        for (int k = 0; k < getNumCellOffsets(); k++)\n        {\n            buffer.append(\"    .cell_\" + k + \"          = \")\n                .append(Integer.toHexString(getCellOffsetAt(k))).append(\"\\n\");\n        }\n        buffer.append(\"[/DBCELL]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [7, 12], [7, 13], [8, 14], [3, 15], [2, 16], [2, 17], [12, 18], [13, 19], [16, 20], [16, 21], [16, 22], [19, 23], [20, 24], [20, 25], [21, 26], [22, 27], [25, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 7], [13, 7], [14, 8], [15, 3], [16, 2], [17, 2], [18, 12], [19, 13], [20, 16], [21, 16], [22, 16], [23, 19], [24, 20], [25, 20], [26, 21], [27, 22], [28, 25], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        if (field_2_cell_offsets == null)\n        {\n            field_2_cell_offsets = new short[ 0 ];\n        }\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset,\n                              (( short ) (4 + (getNumCellOffsets() * 2))));\n        LittleEndian.putInt(data, 4 + offset, getRowOffset());\n        for (int k = 0; k < getNumCellOffsets(); k++)\n        {\n            LittleEndian.putShort(data, 8 + k + offset, getCellOffsetAt(k));\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [0, 10], [3, 11], [7, 12], [8, 13], [8, 14], [9, 15], [10, 16], [11, 17], [2, 18], [2, 19], [14, 20], [9, 21], [15, 22], [16, 23], [3, 24], [18, 25], [18, 26], [21, 27], [21, 28], [26, 29], [27, 30], [27, 31], [24, 32], [29, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 0], [11, 3], [12, 7], [13, 8], [14, 8], [15, 9], [16, 10], [17, 11], [18, 2], [19, 2], [20, 14], [21, 9], [22, 15], [23, 16], [24, 3], [25, 18], [26, 18], [27, 21], [28, 21], [29, 26], [30, 27], [31, 27], [32, 24], [33, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 8 + (getNumCellOffsets() * 2);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isInValueSection", "code": "    public boolean isInValueSection()\n    {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DBCellRecord", "code": "    public DBCellRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DBCellRecord", "code": "    public DBCellRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DBCellRecord", "code": "    public DBCellRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "xalan-2.4-6503", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/utils/synthetic/SynthesisException.java", "language": "java", "name": "org.apache.xml.utils.synthetic.SynthesisException", "code": "public class SynthesisException extends Exception\n{\n\n  /** Field code.\n   *  @serial          */\n  int code;\n\n\n  /** Field SYNTAX          */\n  public static final int SYNTAX = 0;\n\n  /** Field UNSUPPORTED          */\n  public static final int UNSUPPORTED = 1;\n\n  /** Field REIFIED          */\n  public static final int REIFIED = 2;\n\n  /** Field UNREIFIED          */\n  public static final int UNREIFIED = 3;\n\n  /** Field WRONG_OWNER          */\n  public static final int WRONG_OWNER = 4;\n\n  /** Field errToString          */\n  public static final String[] errToString = {\n    \"(Syntax error; specific message should be passed in)\",\n    \"Feature not yet supported\",\n    \"Can't change features of 'real' class\",\n    \"Can't yet instantiate/invoke without 'real' class\",\n    \"Can't add Member to an object other than its declarer\", };\n\n  /**\n   * Constructor SynthesisException\n   *\n   *\n   * @param code\n   */\n  public SynthesisException(int code)\n  {\n\n    super(errToString[code]);\n\n    this.code = code;\n  }\n\n  /**\n   * Constructor SynthesisException\n   *\n   *\n   * @param code\n   * @param msg\n   */\n  public SynthesisException(int code, String msg)\n  {\n\n    super(msg);\n\n    this.code = code;\n  }\n\n  /**\n   * Method getCode \n   *\n   *\n   */\n  int getCode()\n  {\n    return code;", "functions": [{"function_name": "getCode", "code": "  int getCode()\n  {\n    return code;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SynthesisException", "code": "  public SynthesisException(int code)\n  {\n\n    super(errToString[code]);\n\n    this.code = code;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SynthesisException", "code": "  public SynthesisException(int code, String msg)\n  {\n\n    super(msg);\n\n    this.code = code;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "poi-2.5-5637", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/usermodel/HSSFWorkbook.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFWorkbook", "code": "public class HSSFWorkbook\n        extends java.lang.Object\n{\n    private static final int DEBUG = POILogger.DEBUG;\n\n    /**\n     * used for compile-time performance/memory optimization.  This determines the\n     * initial capacity for the sheet collection.  Its currently set to 3.\n     * Changing it in this release will decrease performance\n     * since you're never allowed to have more or less than three sheets!\n     */\n\n    public final static int INITIAL_CAPACITY = 3;\n\n    /**\n     * this is the reference to the low level Workbook object\n     */\n\n    private Workbook workbook;\n\n    /**\n     * this holds the HSSFSheet objects attached to this workbook\n     */\n\n    private ArrayList sheets;\n\n    /**\n     * this holds the HSSFName objects attached to this workbook\n     */\n\n    private ArrayList names;\n\n    /**\n     * holds whether or not to preserve other nodes in the POIFS.  Used\n     * for macros and embedded objects.\n     */\n    private boolean   preserveNodes;\n\n    /**\n     * if you do preserve the nodes, you'll need to hold the whole POIFS in\n     * memory.\n     */\n    private POIFSFileSystem poifs;\n\n    /**\n     * Used to keep track of the data formatter so that all\n     * createDataFormatter calls return the same one for a given\n     * book.  This ensures that updates from one places is visible\n     * someplace else.\n     */\n    private HSSFDataFormat formatter;\n\n    private static POILogger log = POILogFactory.getLogger(HSSFWorkbook.class);\n\n    /**\n     * Creates new HSSFWorkbook from scratch (start here!)\n     *\n     */\n\n    public HSSFWorkbook()\n    {\n        workbook = Workbook.createWorkbook();\n        sheets = new ArrayList(INITIAL_CAPACITY);\n        names  = new ArrayList(INITIAL_CAPACITY);\n    }\n\n    public HSSFWorkbook(POIFSFileSystem fs) throws IOException {\n      this(fs,true);\n    }\n\n    /**\n     * given a POI POIFSFileSystem object, read in its Workbook and populate the high and\n     * low level models.  If you're reading in a workbook...start here.\n     *\n     * @param fs the POI filesystem that contains the Workbook stream.\n     * @param preserveNodes whether to preseve other nodes, such as\n     *        macros.  This takes more memory, so only say yes if you\n     *        need to.\n     * @see org.apache.poi.poifs.filesystem.POIFSFileSystem\n     * @exception IOException if the stream cannot be read\n     */\n\n    public HSSFWorkbook(POIFSFileSystem fs, boolean preserveNodes)\n            throws IOException\n    {\n        this.preserveNodes = preserveNodes;\n\n        if (preserveNodes) {\n           this.poifs = fs;\n        }\n\n        sheets = new ArrayList(INITIAL_CAPACITY);\n        names  = new ArrayList(INITIAL_CAPACITY);\n\n        InputStream stream = fs.createDocumentInputStream(\"Workbook\");\n\n        EventRecordFactory factory = new EventRecordFactory();\n\n\n\n        List records = RecordFactory.createRecords(stream);\n\n        workbook = Workbook.createWorkbook(records);\n        setPropertiesFromWorkbook(workbook);\n        int recOffset = workbook.getNumRecords();\n        int sheetNum = 0;\n\n        while (recOffset < records.size())\n        {\n            Sheet sheet = Sheet.createSheet(records, sheetNum++, recOffset );\n\n            recOffset = sheet.getEofLoc()+1;\n            sheet.convertLabelRecords();\n            HSSFSheet hsheet = new HSSFSheet(workbook, sheet);\n\n            sheets.add(hsheet);\n\n        }\n\n        for (int i = 0 ; i < workbook.getNumNames() ; ++i){\n            HSSFName name = new HSSFName(workbook, workbook.getNameRecord(i));\n            names.add(name);\n        }\n    }\n\n     public HSSFWorkbook(InputStream s) throws IOException {\n         this(s,true);\n     }\n\n    /**\n     * Companion to HSSFWorkbook(POIFSFileSystem), this constructs the POI filesystem around your\n     * inputstream.\n     *\n     * @param s  the POI filesystem that contains the Workbook stream.\n     * @param preserveNodes whether to preseve other nodes, such as\n     *        macros.  This takes more memory, so only say yes if you\n     *        need to.\n     * @see org.apache.poi.poifs.filesystem.POIFSFileSystem\n     * @see #HSSFWorkbook(POIFSFileSystem)\n     * @exception IOException if the stream cannot be read\n     */\n\n    public HSSFWorkbook(InputStream s, boolean preserveNodes)\n            throws IOException\n    {\n        this(new POIFSFileSystem(s), preserveNodes);\n    }\n\n    /**\n     * used internally to set the workbook properties.\n     */\n\n    private void setPropertiesFromWorkbook(Workbook book)\n    {\n        this.workbook = book;\n\n    }\n\n    /**\n     * sets the order of appearance for a given sheet.\n     *\n     * @param sheetname the name of the sheet to reorder\n     * @param pos the position that we want to insert the sheet into (0 based)\n     */\n\n    public void setSheetOrder(String sheetname, int pos ) {\n        workbook.setSheetOrder(sheetname, pos);\n    }\n\n    public final static byte ENCODING_COMPRESSED_UNICODE = 0;\n    public final static byte ENCODING_UTF_16             = 1;\n\n\n    /**\n     * set the sheet name. \n     * Will throw IllegalArgumentException if the name is greater than 31 chars\n     * or contains /\\?*[]\n     * @param sheet number (0 based)\n     * @param sheet name\n     */\n\n    public void setSheetName(int sheet, String name)\n    {\n        workbook.setSheetName( sheet, name, ENCODING_COMPRESSED_UNICODE );\n    }\n\n    public void setSheetName( int sheet, String name, short encoding )\n    {\n        if (sheet > (sheets.size() - 1))\n        {\n            throw new RuntimeException(\"Sheet out of bounds\");\n        }\n\n        switch ( encoding ) {\n        case ENCODING_COMPRESSED_UNICODE:\n        case ENCODING_UTF_16:\n            break;\n\n        default:\n            throw new RuntimeException( \"Unsupported encoding\" );\n        }\n\n        workbook.setSheetName( sheet, name, encoding );\n    }\n\n    /**\n     * get the sheet name\n     * @param sheet Number\n     * @return Sheet name\n     */\n\n    public String getSheetName(int sheet)\n    {\n        if (sheet > (sheets.size() - 1))\n        {\n            throw new RuntimeException(\"Sheet out of bounds\");\n        }\n        return workbook.getSheetName(sheet);\n    }\n\n    /*\n     * get the sheet's index\n     * @param name  sheet name\n     * @return sheet index or -1 if it was not found.\n     */\n\n    /** Returns the index of the sheet by his name\n     * @param name the sheet name\n     * @return index of the sheet (0 based)\n     */\n    public int getSheetIndex(String name)\n    {\n        int retval = workbook.getSheetIndex(name);\n\n        return retval;\n    }\n\n    /**\n     * create an HSSFSheet for this HSSFWorkbook, adds it to the sheets and returns\n     * the high level representation.  Use this to create new sheets.\n     *\n     * @return HSSFSheet representing the new sheet.\n     */\n\n    public HSSFSheet createSheet()\n    {\n\n        HSSFSheet sheet = new HSSFSheet(workbook);\n\n        sheets.add(sheet);\n        workbook.setSheetName(sheets.size() - 1,\n                \"Sheet\" + (sheets.size() - 1));\n        WindowTwoRecord windowTwo = (WindowTwoRecord) sheet.getSheet().findFirstRecordBySid(WindowTwoRecord.sid);\n        windowTwo.setSelected(sheets.size() == 1);\n        windowTwo.setPaged(sheets.size() == 1);\n        return sheet;\n    }\n\n    /**\n     * create an HSSFSheet from an existing sheet in the HSSFWorkbook.\n     *\n     * @return HSSFSheet representing the cloned sheet.\n     */\n\n    public HSSFSheet cloneSheet(int sheetNum) {\n      HSSFSheet srcSheet = (HSSFSheet)sheets.get(sheetNum);\n      String srcName = workbook.getSheetName(sheetNum);\n      if (srcSheet != null) {\n        HSSFSheet clonedSheet = srcSheet.cloneSheet(workbook);\n        WindowTwoRecord windowTwo = (WindowTwoRecord) clonedSheet.getSheet().findFirstRecordBySid(WindowTwoRecord.sid);\n        windowTwo.setSelected(sheets.size() == 1);\n        windowTwo.setPaged(sheets.size() == 1);\n\n        sheets.add(clonedSheet);\n        if (srcName.length()<28) {\n            workbook.setSheetName(sheets.size()-1, srcName+\"(2)\");\n        }else {\n            workbook.setSheetName(sheets.size()-1,srcName.substring(0,28)+\"(2)\");\n        }\n        return clonedSheet;\n      }\n      return null;\n    }\n\n    /**\n     * create an HSSFSheet for this HSSFWorkbook, adds it to the sheets and returns\n     * the high level representation.  Use this to create new sheets.\n     *\n     * @param sheetname     sheetname to set for the sheet.\n     * @return HSSFSheet representing the new sheet.\n     */\n\n    public HSSFSheet createSheet(String sheetname)\n    {\n\n        HSSFSheet sheet = new HSSFSheet(workbook);\n\n        sheets.add(sheet);\n        workbook.setSheetName(sheets.size() - 1, sheetname);\n        WindowTwoRecord windowTwo = (WindowTwoRecord) sheet.getSheet().findFirstRecordBySid(WindowTwoRecord.sid);\n        windowTwo.setSelected(sheets.size() == 1);\n        windowTwo.setPaged(sheets.size() == 1);\n        return sheet;\n    }\n\n    /**\n     * get the number of spreadsheets in the workbook (this will be three after serialization)\n     * @return number of sheets\n     */\n\n    public int getNumberOfSheets()\n    {\n        return sheets.size();\n    }\n\n    /**\n     * Get the HSSFSheet object at the given index.\n     * @param index of the sheet number (0-based physical & logical)\n     * @return HSSFSheet at the provided index\n     */\n\n    public HSSFSheet getSheetAt(int index)\n    {\n        return (HSSFSheet) sheets.get(index);\n    }\n\n    /**\n     * Get sheet with the given name\n     * @param name of the sheet\n     * @return HSSFSheet with the name provided or null if it does not exist\n     */\n\n    public HSSFSheet getSheet(String name)\n    {\n        HSSFSheet retval = null;\n\n        for (int k = 0; k < sheets.size(); k++)\n        {\n            String sheetname = workbook.getSheetName(k);\n\n            if (sheetname.equals(name))\n            {\n                retval = (HSSFSheet) sheets.get(k);\n            }\n        }\n        return retval;\n    }\n\n    /**\n     * removes sheet at the given index\n     * @param index of the sheet  (0-based)\n     */\n\n    public void removeSheetAt(int index)\n    {\n        sheets.remove(index);\n        workbook.removeSheet(index);\n    }\n\n    /**\n     * determine whether the Excel GUI will backup the workbook when saving.\n     *\n     * @param backupValue   true to indicate a backup will be performed.\n     */\n\n    public void setBackupFlag(boolean backupValue)\n    {\n        BackupRecord backupRecord = workbook.getBackupRecord();\n\n        backupRecord.setBackup(backupValue ? (short) 1\n                : (short) 0);\n    }\n\n    /**\n     * determine whether the Excel GUI will backup the workbook when saving.\n     *\n     * @return the current setting for backups.\n     */\n\n    public boolean getBackupFlag()\n    {\n        BackupRecord backupRecord = workbook.getBackupRecord();\n\n        return (backupRecord.getBackup() == 0) ? false\n                : true;\n    }\n\n    /**\n     * Sets the repeating rows and columns for a sheet (as found in\n     * File->PageSetup->Sheet).  This is function is included in the workbook\n     * because it creates/modifies name records which are stored at the\n     * workbook level.\n     * <p>\n     * To set just repeating columns:\n     * <pre>\n     *  workbook.setRepeatingRowsAndColumns(0,0,1,-1-1);\n     * </pre>\n     * To set just repeating rows:\n     * <pre>\n     *  workbook.setRepeatingRowsAndColumns(0,-1,-1,0,4);\n     * </pre>\n     * To remove all repeating rows and columns for a sheet.\n     * <pre>\n     *  workbook.setRepeatingRowsAndColumns(0,-1,-1,-1,-1);\n     * </pre>\n     *\n     * @param sheetIndex    0 based index to sheet.\n     * @param startColumn   0 based start of repeating columns.\n     * @param endColumn     0 based end of repeating columns.\n     * @param startRow      0 based start of repeating rows.\n     * @param endRow        0 based end of repeating rows.\n     */\n    public void setRepeatingRowsAndColumns(int sheetIndex,\n                                           int startColumn, int endColumn,\n                                           int startRow, int endRow)\n    {\n        if (startColumn == -1 && endColumn != -1) throw new IllegalArgumentException(\"Invalid column range specification\");\n        if (startRow == -1 && endRow != -1) throw new IllegalArgumentException(\"Invalid row range specification\");\n        if (startColumn < -1 || startColumn >= 0xFF) throw new IllegalArgumentException(\"Invalid column range specification\");\n        if (endColumn < -1 || endColumn >= 0xFF) throw new IllegalArgumentException(\"Invalid column range specification\");\n        if (startRow < -1 || startRow > 65535) throw new IllegalArgumentException(\"Invalid row range specification\");\n        if (endRow < -1 || endRow > 65535) throw new IllegalArgumentException(\"Invalid row range specification\");\n        if (startColumn > endColumn) throw new IllegalArgumentException(\"Invalid column range specification\");\n        if (startRow > endRow) throw new IllegalArgumentException(\"Invalid row range specification\");\n\n        HSSFSheet sheet = getSheetAt(sheetIndex);\n        short externSheetIndex = getWorkbook().checkExternSheet(sheetIndex);\n\n        boolean settingRowAndColumn =\n                startColumn != -1 && endColumn != -1 && startRow != -1 && endRow != -1;\n        boolean removingRange =\n                startColumn == -1 && endColumn == -1 && startRow == -1 && endRow == -1;\n\n        boolean isNewRecord = false;\n        NameRecord nameRecord;\n        nameRecord = findExistingRowColHeaderNameRecord(sheetIndex);\n        if (removingRange )\n        {\n            if (nameRecord != null)\n                workbook.removeName(findExistingRowColHeaderNameRecordIdx(sheetIndex+1));\n            return;\n        }\n        if ( nameRecord == null )\n        {\n            nameRecord = workbook.createBuiltInName(NameRecord.BUILTIN_PRINT_TITLE, sheetIndex+1);\n            isNewRecord = true;\n        }\n\n        short definitionTextLength = settingRowAndColumn ? (short)0x001a : (short)0x000b;\n        nameRecord.setDefinitionTextLength(definitionTextLength);\n\n        Stack ptgs = new Stack();\n\n        if (settingRowAndColumn)\n        {\n            MemFuncPtg memFuncPtg = new MemFuncPtg();\n            memFuncPtg.setLenRefSubexpression(23);\n            ptgs.add(memFuncPtg);\n        }\n        if (startColumn >= 0)\n        {\n            Area3DPtg area3DPtg1 = new Area3DPtg();\n            area3DPtg1.setExternSheetIndex(externSheetIndex);\n            area3DPtg1.setFirstColumn((short)startColumn);\n            area3DPtg1.setLastColumn((short)endColumn);\n            area3DPtg1.setFirstRow((short)0);\n            area3DPtg1.setLastRow((short)0xFFFF);\n            ptgs.add(area3DPtg1);\n        }\n        if (startRow >= 0)\n        {\n            Area3DPtg area3DPtg2 = new Area3DPtg();\n            area3DPtg2.setExternSheetIndex(externSheetIndex);\n            area3DPtg2.setFirstColumn((short)0);\n            area3DPtg2.setLastColumn((short)0x00FF);\n            area3DPtg2.setFirstRow((short)startRow);\n            area3DPtg2.setLastRow((short)endRow);\n            ptgs.add(area3DPtg2);\n        }\n        if (settingRowAndColumn)\n        {\n            UnionPtg unionPtg = new UnionPtg();\n            ptgs.add(unionPtg);\n        }\n        nameRecord.setNameDefinition(ptgs);\n\n        if (isNewRecord)\n        {\n            HSSFName newName = new HSSFName(workbook, nameRecord);\n            names.add(newName);\n        }\n\n        HSSFPrintSetup printSetup = sheet.getPrintSetup();\n        printSetup.setValidSettings(false);\n\n        WindowTwoRecord w2 = (WindowTwoRecord) sheet.getSheet().findFirstRecordBySid(WindowTwoRecord.sid);\n        w2.setPaged(true);\n    }\n\n    private NameRecord findExistingRowColHeaderNameRecord( int sheetIndex )\n    {\n        int index = findExistingRowColHeaderNameRecordIdx(sheetIndex);\n        if (index == -1)\n            return null;\n        else\n            return (NameRecord)workbook.findNextRecordBySid(NameRecord.sid, index);\n    }\n\n    private int findExistingRowColHeaderNameRecordIdx( int sheetIndex )\n    {\n        int index = 0;\n        NameRecord r = null;\n        while ((r = (NameRecord) workbook.findNextRecordBySid(NameRecord.sid, index)) != null)\n        {\n            int nameRecordSheetIndex = workbook.getSheetIndexFromExternSheetIndex(r.getEqualsToIndexToSheet() - 1);\n            if (isRowColHeaderRecord( r ) && nameRecordSheetIndex == sheetIndex)\n            {\n                return index;\n            }\n            index++;\n        }\n\n        return -1;\n    }\n\n    private boolean isRowColHeaderRecord( NameRecord r )\n    {\n        return r.getOptionFlag() == 0x20 && (\"\" + ((char)7)).equals(r.getNameText());\n    }\n\n    /**\n     * create a new Font and add it to the workbook's font table\n     * @return new font object\n     */\n\n    public HSSFFont createFont()\n    {\n        FontRecord font = workbook.createNewFont();\n        short fontindex = (short) (getNumberOfFonts() - 1);\n\n        if (fontindex > 3)\n        {\n        }\n        HSSFFont retval = new HSSFFont(fontindex, font);\n\n        return retval;\n    }\n\n    /**\n     * Finds a font that matches the one with the supplied attributes\n     */\n    public HSSFFont findFont(short boldWeight, short color, short fontHeight,\n                             String name, boolean italic, boolean strikeout,\n                             short typeOffset, byte underline)\n    {\n        for (short i = 0; i < workbook.getNumberOfFontRecords(); i++)\n        {\n            if (i == 4)\n                continue;\n\n            FontRecord font = workbook.getFontRecordAt(i);\n            HSSFFont hssfFont = new HSSFFont(i, font);\n            if (hssfFont.getBoldweight() == boldWeight\n                    && hssfFont.getColor() == color\n                    && hssfFont.getFontHeight() == fontHeight\n                    && hssfFont.getFontName().equals(name)\n                    && hssfFont.getItalic() == italic\n                    && hssfFont.getStrikeout() == strikeout\n                    && hssfFont.getTypeOffset() == typeOffset\n                    && hssfFont.getUnderline() == underline)\n            {\n                return hssfFont;\n            }\n        }\n\n        return null;\n    }\n\n    /**\n     * get the number of fonts in the font table\n     * @return number of fonts\n     */\n\n    public short getNumberOfFonts()\n    {\n        return (short) workbook.getNumberOfFontRecords();\n    }\n\n    /**\n     * get the font at the given index number\n     * @param idx  index number\n     * @return HSSFFont at the index\n     */\n\n    public HSSFFont getFontAt(short idx)\n    {\n        FontRecord font = workbook.getFontRecordAt(idx);\n        HSSFFont retval = new HSSFFont(idx, font);\n\n        return retval;\n    }\n\n    /**\n     * create a new Cell style and add it to the workbook's style table\n     * @return the new Cell Style object\n     */\n\n    public HSSFCellStyle createCellStyle()\n    {\n        ExtendedFormatRecord xfr = workbook.createCellXF();\n        short index = (short) (getNumCellStyles() - 1);\n        HSSFCellStyle style = new HSSFCellStyle(index, xfr);\n\n        return style;\n    }\n\n    /**\n     * get the number of styles the workbook contains\n     * @return count of cell styles\n     */\n\n    public short getNumCellStyles()\n    {\n        return (short) workbook.getNumExFormats();\n    }\n\n    /**\n     * get the cell style object at the given index\n     * @param idx  index within the set of styles\n     * @return HSSFCellStyle object at the index\n     */\n\n    public HSSFCellStyle getCellStyleAt(short idx)\n    {\n        ExtendedFormatRecord xfr = workbook.getExFormatAt(idx);\n        HSSFCellStyle style = new HSSFCellStyle(idx, xfr);\n\n        return style;\n    }\n\n    /**\n     * Method write - write out this workbook to an Outputstream.  Constructs\n     * a new POI POIFSFileSystem, passes in the workbook binary representation  and\n     * writes it out.\n     *\n     * @param stream - the java OutputStream you wish to write the XLS to\n     *\n     * @exception IOException if anything can't be written.\n     * @see org.apache.poi.poifs.filesystem.POIFSFileSystem\n     */\n\n    public void write(OutputStream stream)\n            throws IOException\n    {\n        byte[] bytes = getBytes();\n        POIFSFileSystem fs = new POIFSFileSystem();\n\n        fs.createDocument(new ByteArrayInputStream(bytes), \"Workbook\");\n\n        if (preserveNodes) {\n            List excepts = new ArrayList(1);\n            excepts.add(\"Workbook\");\n            copyNodes(this.poifs,fs,excepts);\n        }\n        fs.writeFilesystem(stream);\n    }\n\n    /**\n     * Method getBytes - get the bytes of just the HSSF portions of the XLS file.\n     * Use this to construct a POI POIFSFileSystem yourself.\n     *\n     *\n     * @return byte[] array containing the binary representation of this workbook and all contained\n     *         sheets, rows, cells, etc.\n     *\n     * @see org.apache.poi.hssf.model.Workbook\n     * @see org.apache.poi.hssf.model.Sheet\n     */\n\n    public byte[] getBytes()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"HSSFWorkbook.getBytes()\");\n\n        for (int k = 0; k < sheets.size(); k++)\n            ((HSSFSheet) sheets.get(k)).getSheet().preSerialize();\n\n        int wbsize = workbook.getSize();\n\n        int totalsize = wbsize;\n\n        for (int k = 0; k < sheets.size(); k++)\n        {\n            workbook.setSheetBof(k, totalsize);\n            totalsize += ((HSSFSheet) sheets.get(k)).getSheet().getSize();\n        }\n\n\n/*        if (totalsize < 4096)\n        {\n            totalsize = 4096;\n        }*/\n        byte[] retval = new byte[totalsize];\n        int pos = workbook.serialize(0, retval);\n\n        for (int k = 0; k < sheets.size(); k++)\n        {\n\n            pos += ((HSSFSheet) sheets.get(k)).getSheet().serialize(pos);\n        }\n/*        for (int k = pos; k < totalsize; k++)\n        {\n            retval[k] = 0;\n        }*/\n        return retval;\n    }\n\n    public int addSSTString(String string)\n    {\n        return workbook.addSSTString(string);\n    }\n\n    public String getSSTString(int index)\n    {\n        return workbook.getSSTString(index);\n    }\n\n    Workbook getWorkbook()\n    {\n        return workbook;\n    }\n\n    /** gets the total number of named ranges in the workboko\n     * @return number of named ranges\n     */\n    public int getNumberOfNames(){\n        int result = names.size();\n        return result;\n    }\n\n    /** gets the Named range\n     * @param index position of the named range\n     * @return named range high level\n     */\n    public HSSFName getNameAt(int index){\n        HSSFName result = (HSSFName) names.get(index);\n\n        return result;\n    }\n\n    /** gets the named range name\n     * @param index the named range index (0 based)\n     * @return named range name\n     */\n    public String getNameName(int index){\n        String result = getNameAt(index).getNameName();\n\n        return result;\n    }\n\n\t/**\n\t * Sets the printarea for the sheet provided\n\t * <p>\n\t * i.e. Reference = $A$1:$B$2\n\t * @param sheetIndex Zero-based sheet index (0 Represents the first sheet to keep consistent with java)\n\t * @param reference Valid name Reference for the Print Area\n\t */\n\tpublic void setPrintArea(int sheetIndex, String reference)\n\t{\n\t\tNameRecord name = workbook.getSpecificBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);\n\n\n\t\tif (name == null)\n\t\t\tname = workbook.createBuiltInName(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);\n\n\t    short externSheetIndex = getWorkbook().checkExternSheet(sheetIndex);\n\t\tname.setExternSheetNumber(externSheetIndex);\n\t\tname.setAreaReference(reference);\n\n\n\t}\n\n\t/**\n\t * For the Convenience of Java Programmers maintaining pointers.\n\t * @see setPrintArea(int, String)\n\t * @param sheetIndex Zero-based sheet index (0 = First Sheet)\n\t * @param startColumn Column to begin printarea\n\t * @param endColumn Column to end the printarea\n\t * @param startRow Row to begin the printarea\n\t * @param endRow Row to end the printarea\n\t */\n\tpublic void setPrintArea(int sheetIndex, int startColumn, int endColumn,\n\t\t\t\t\t\t\t  int startRow, int endRow) {\n\n\t\tCellReference cell = new CellReference(startRow, startColumn, true, true);\n\t\tString reference = cell.toString();\n\n\t\tcell = new CellReference(endRow, endColumn, true, true);\n\t\treference = reference+\":\"+cell.toString();\n\n\t\tsetPrintArea(sheetIndex, reference);\n\t}\n\n\n\t/**\n\t * Retrieves the reference for the printarea of the specified sheet, the sheet name is appended to the reference even if it was not specified.\n\t * @param sheetIndex Zero-based sheet index (0 Represents the first sheet to keep consistent with java)\n\t * @return String Null if no print area has been defined\n\t */\n\tpublic String getPrintArea(int sheetIndex)\n\t{\n\t\tNameRecord name = workbook.getSpecificBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);\n\t\tif (name == null) return null;\n\n\t\treturn name.getAreaReference(workbook);\n\t}\n\n    /**\n     * Delete the printarea for the sheet specified\n     * @param sheetIndex Zero-based sheet index (0 = First Sheet)\n     */\n    public void removePrintArea(int sheetIndex) {\n    \tgetWorkbook().removeBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);\n    }\n\n    /** creates a new named range and add it to the model\n     * @return named range high level\n     */\n    public HSSFName createName(){\n        NameRecord nameRecord = workbook.createName();\n\n        HSSFName newName = new HSSFName(workbook, nameRecord);\n\n        names.add(newName);\n\n        return newName;\n    }\n\n    /** gets the named range index by his name\n     * @param name named range name\n     * @return named range index\n     */\n    public int getNameIndex(String name)\n    {\n        int retval = -1;\n\n        for (int k = 0; k < names.size(); k++)\n        {\n            String nameName = getNameName(k);\n\n            if (nameName.equals(name))\n            {\n                retval = k;\n                break;\n            }\n        }\n        return retval;\n    }\n\n\n    /** remove the named range by his index\n     * @param index named range index (0 based)\n     */\n    public void removeName(int index){\n        names.remove(index);\n        workbook.removeName(index);\n    }\n\n    /**\n     * Returns the instance of HSSFDataFormat for this workbook.\n     * @return the HSSFDataFormat object\n     * @see org.apache.poi.hssf.record.FormatRecord\n     * @see org.apache.poi.hssf.record.Record\n     */\n    public HSSFDataFormat createDataFormat() {\n\tif (formatter == null)\n\t    formatter = new HSSFDataFormat(workbook);\n\treturn formatter;\n    }\n\n    /** remove the named range by his name\n     * @param name named range name\n     */\n    public void removeName(String name){\n        int index = getNameIndex(name);\n\n        removeName(index);\n\n    }\n\n    public HSSFPalette getCustomPalette()\n    {\n        return new HSSFPalette(workbook.getCustomPalette());\n    }\n\n   /**\n    * Copies nodes from one POIFS to the other minus the excepts\n    * @param source is the source POIFS to copy from\n    * @param target is the target POIFS to copy to\n    * @param excepts is a list of Strings specifying what nodes NOT to copy\n    */\n   private void copyNodes(POIFSFileSystem source, POIFSFileSystem target,\n                          List excepts) throws IOException {\n\n      DirectoryEntry root = source.getRoot();\n      DirectoryEntry newRoot = target.getRoot();\n\n      Iterator entries = root.getEntries();\n\n      while (entries.hasNext()) {\n         Entry entry = (Entry)entries.next();\n         if (!isInList(entry.getName(), excepts)) {\n             copyNodeRecursively(entry,newRoot);\n         }\n      }\n   }\n\n   private boolean isInList(String entry, List list) {\n       for (int k = 0; k < list.size(); k++) {\n          if (list.get(k).equals(entry)) {\n            return true;\n          }\n       }\n       return false;\n   }\n\n   private void copyNodeRecursively(Entry entry, DirectoryEntry target)\n   throws IOException {\n       DirectoryEntry newTarget = null;\n       if (entry.isDirectoryEntry()) {\n           newTarget = target.createDirectory(entry.getName());\n           Iterator entries = ((DirectoryEntry)entry).getEntries();\n\n           while (entries.hasNext()) {\n              copyNodeRecursively((Entry)entries.next(),newTarget);\n           }\n       } else {\n         DocumentEntry dentry = (DocumentEntry)entry;\n         DocumentInputStream dstream = new DocumentInputStream(dentry);\n         target.createDocument(dentry.getName(),dstream);\n         dstream.close();\n       }\n   }\n\n    /** Test only. Do not use */\n    public void insertChartRecord()\n    {\n        int loc = workbook.findFirstRecordLocBySid(SSTRecord.sid);\n        byte[] data = {\n           (byte)0x0F, (byte)0x00, (byte)0x00, (byte)0xF0, (byte)0x52,\n           (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,\n           (byte)0x06, (byte)0xF0, (byte)0x18, (byte)0x00, (byte)0x00,\n           (byte)0x00, (byte)0x01, (byte)0x08, (byte)0x00, (byte)0x00,\n           (byte)0x02, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x02,\n           (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x01, (byte)0x00,\n           (byte)0x00, (byte)0x00, (byte)0x01, (byte)0x00, (byte)0x00,\n           (byte)0x00, (byte)0x03, (byte)0x00, (byte)0x00, (byte)0x00,\n           (byte)0x33, (byte)0x00, (byte)0x0B, (byte)0xF0, (byte)0x12,\n           (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xBF, (byte)0x00,\n           (byte)0x08, (byte)0x00, (byte)0x08, (byte)0x00, (byte)0x81,\n           (byte)0x01, (byte)0x09, (byte)0x00, (byte)0x00, (byte)0x08,\n           (byte)0xC0, (byte)0x01, (byte)0x40, (byte)0x00, (byte)0x00,\n           (byte)0x08, (byte)0x40, (byte)0x00, (byte)0x1E, (byte)0xF1,\n           (byte)0x10, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0D,\n           (byte)0x00, (byte)0x00, (byte)0x08, (byte)0x0C, (byte)0x00,\n           (byte)0x00, (byte)0x08, (byte)0x17, (byte)0x00, (byte)0x00,\n           (byte)0x08, (byte)0xF7, (byte)0x00, (byte)0x00, (byte)0x10,\n        };\n        UnknownRecord r = new UnknownRecord((short)0x00EB,(short)0x005a, data);\n        workbook.getRecords().add(loc, r);", "functions": [{"function_name": "setPropertiesFromWorkbook", "code": "    private void setPropertiesFromWorkbook(Workbook book)\n    {\n        this.workbook = book;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSheetOrder", "code": "    public void setSheetOrder(String sheetname, int pos ) {\n        workbook.setSheetOrder(sheetname, pos);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSheetName", "code": "    public void setSheetName(int sheet, String name)\n    {\n        workbook.setSheetName( sheet, name, ENCODING_COMPRESSED_UNICODE );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSheetName", "code": "    public void setSheetName( int sheet, String name, short encoding )\n    {\n        if (sheet > (sheets.size() - 1))\n        {\n            throw new RuntimeException(\"Sheet out of bounds\");\n        }\n\n        switch ( encoding ) {\n        case ENCODING_COMPRESSED_UNICODE:\n        case ENCODING_UTF_16:\n            break;\n\n        default:\n            throw new RuntimeException( \"Unsupported encoding\" );\n        }\n\n        workbook.setSheetName( sheet, name, encoding );", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "BREAK_CONTINUE", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 8], [1, 9], [2, 10], [7, 11], [8, 12], [10, 13], [11, 14], [11, 15], [12, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 1], [9, 1], [10, 2], [11, 7], [12, 8], [13, 10], [14, 11], [15, 11], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getSheetName", "code": "    public String getSheetName(int sheet)\n    {\n        if (sheet > (sheets.size() - 1))\n        {\n            throw new RuntimeException(\"Sheet out of bounds\");\n        }\n        return workbook.getSheetName(sheet);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [7, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [9, 7], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getSheetIndex", "code": "    public int getSheetIndex(String name)\n    {\n        int retval = workbook.getSheetIndex(name);\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createSheet", "code": "    public HSSFSheet createSheet()\n    {\n\n        HSSFSheet sheet = new HSSFSheet(workbook);\n\n        sheets.add(sheet);\n        workbook.setSheetName(sheets.size() - 1,\n                \"Sheet\" + (sheets.size() - 1));\n        WindowTwoRecord windowTwo = (WindowTwoRecord) sheet.getSheet().findFirstRecordBySid(WindowTwoRecord.sid);\n        windowTwo.setSelected(sheets.size() == 1);\n        windowTwo.setPaged(sheets.size() == 1);\n        return sheet;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [6, 10], [6, 11], [3, 12], [8, 13], [8, 14], [9, 15], [9, 16], [2, 17], [10, 18], [10, 19], [11, 20], [11, 21], [17, 22], [18, 23], [18, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 6], [11, 6], [12, 3], [13, 8], [14, 8], [15, 9], [16, 9], [17, 2], [18, 10], [19, 10], [20, 11], [21, 11], [22, 17], [23, 18], [24, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "cloneSheet", "code": "    public HSSFSheet cloneSheet(int sheetNum) {\n      HSSFSheet srcSheet = (HSSFSheet)sheets.get(sheetNum);\n      String srcName = workbook.getSheetName(sheetNum);\n      if (srcSheet != null) {\n        HSSFSheet clonedSheet = srcSheet.cloneSheet(workbook);\n        WindowTwoRecord windowTwo = (WindowTwoRecord) clonedSheet.getSheet().findFirstRecordBySid(WindowTwoRecord.sid);\n        windowTwo.setSelected(sheets.size() == 1);\n        windowTwo.setPaged(sheets.size() == 1);\n\n        sheets.add(clonedSheet);\n        if (srcName.length()<28) {\n            workbook.setSheetName(sheets.size()-1, srcName+\"(2)\");\n        }else {\n            workbook.setSheetName(sheets.size()-1,srcName.substring(0,28)+\"(2)\");\n        }\n        return clonedSheet;\n      }\n      return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [7, 12], [3, 13], [9, 14], [2, 15], [2, 16], [2, 17], [4, 18], [14, 19], [14, 20], [16, 21], [17, 22], [11, 23], [9, 24], [9, 25], [21, 26], [21, 27], [22, 28], [22, 29], [10, 30], [24, 31], [24, 32], [25, 33], [25, 34], [30, 35], [31, 36], [31, 37], [32, 38], [32, 39], [33, 40], [34, 41], [34, 42], [37, 43], [37, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 7], [13, 3], [14, 9], [15, 2], [16, 2], [17, 2], [18, 4], [19, 14], [20, 14], [21, 16], [22, 17], [23, 11], [24, 9], [25, 9], [26, 21], [27, 21], [28, 22], [29, 22], [30, 10], [31, 24], [32, 24], [33, 25], [34, 25], [35, 30], [36, 31], [37, 31], [38, 32], [39, 32], [40, 33], [41, 34], [42, 34], [43, 37], [44, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "createSheet", "code": "    public HSSFSheet createSheet(String sheetname)\n    {\n\n        HSSFSheet sheet = new HSSFSheet(workbook);\n\n        sheets.add(sheet);\n        workbook.setSheetName(sheets.size() - 1, sheetname);\n        WindowTwoRecord windowTwo = (WindowTwoRecord) sheet.getSheet().findFirstRecordBySid(WindowTwoRecord.sid);\n        windowTwo.setSelected(sheets.size() == 1);\n        windowTwo.setPaged(sheets.size() == 1);\n        return sheet;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [7, 11], [3, 12], [9, 13], [9, 14], [10, 15], [10, 16], [2, 17], [11, 18], [11, 19], [17, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 7], [12, 3], [13, 9], [14, 9], [15, 10], [16, 10], [17, 2], [18, 11], [19, 11], [20, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getNumberOfSheets", "code": "    public int getNumberOfSheets()\n    {\n        return sheets.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSheetAt", "code": "    public HSSFSheet getSheetAt(int index)\n    {\n        return (HSSFSheet) sheets.get(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSheet", "code": "    public HSSFSheet getSheet(String name)\n    {\n        HSSFSheet retval = null;\n\n        for (int k = 0; k < sheets.size(); k++)\n        {\n            String sheetname = workbook.getSheetName(k);\n\n            if (sheetname.equals(name))\n            {\n                retval = (HSSFSheet) sheets.get(k);\n            }\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [6, 10], [2, 11], [7, 12], [6, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 6], [11, 2], [12, 7], [13, 6], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "removeSheetAt", "code": "    public void removeSheetAt(int index)\n    {\n        sheets.remove(index);\n        workbook.removeSheet(index);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setBackupFlag", "code": "    public void setBackupFlag(boolean backupValue)\n    {\n        BackupRecord backupRecord = workbook.getBackupRecord();\n\n        backupRecord.setBackup(backupValue ? (short) 1\n                : (short) 0);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [4, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 4], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getBackupFlag", "code": "    public boolean getBackupFlag()\n    {\n        BackupRecord backupRecord = workbook.getBackupRecord();\n\n        return (backupRecord.getBackup() == 0) ? false\n                : true;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [2, 7], [6, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 2], [8, 6], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setRepeatingRowsAndColumns", "code": "    public void setRepeatingRowsAndColumns(int sheetIndex,\n                                           int startColumn, int endColumn,\n                                           int startRow, int endRow)\n    {\n        if (startColumn == -1 && endColumn != -1) throw new IllegalArgumentException(\"Invalid column range specification\");\n        if (startRow == -1 && endRow != -1) throw new IllegalArgumentException(\"Invalid row range specification\");\n        if (startColumn < -1 || startColumn >= 0xFF) throw new IllegalArgumentException(\"Invalid column range specification\");\n        if (endColumn < -1 || endColumn >= 0xFF) throw new IllegalArgumentException(\"Invalid column range specification\");\n        if (startRow < -1 || startRow > 65535) throw new IllegalArgumentException(\"Invalid row range specification\");\n        if (endRow < -1 || endRow > 65535) throw new IllegalArgumentException(\"Invalid row range specification\");\n        if (startColumn > endColumn) throw new IllegalArgumentException(\"Invalid column range specification\");\n        if (startRow > endRow) throw new IllegalArgumentException(\"Invalid row range specification\");\n\n        HSSFSheet sheet = getSheetAt(sheetIndex);\n        short externSheetIndex = getWorkbook().checkExternSheet(sheetIndex);\n\n        boolean settingRowAndColumn =\n                startColumn != -1 && endColumn != -1 && startRow != -1 && endRow != -1;\n        boolean removingRange =\n                startColumn == -1 && endColumn == -1 && startRow == -1 && endRow == -1;\n\n        boolean isNewRecord = false;\n        NameRecord nameRecord;\n        nameRecord = findExistingRowColHeaderNameRecord(sheetIndex);\n        if (removingRange )\n        {\n            if (nameRecord != null)\n                workbook.removeName(findExistingRowColHeaderNameRecordIdx(sheetIndex+1));\n            return;\n        }\n        if ( nameRecord == null )\n        {\n            nameRecord = workbook.createBuiltInName(NameRecord.BUILTIN_PRINT_TITLE, sheetIndex+1);\n            isNewRecord = true;\n        }\n\n        short definitionTextLength = settingRowAndColumn ? (short)0x001a : (short)0x000b;\n        nameRecord.setDefinitionTextLength(definitionTextLength);\n\n        Stack ptgs = new Stack();\n\n        if (settingRowAndColumn)\n        {\n            MemFuncPtg memFuncPtg = new MemFuncPtg();\n            memFuncPtg.setLenRefSubexpression(23);\n            ptgs.add(memFuncPtg);\n        }\n        if (startColumn >= 0)\n        {\n            Area3DPtg area3DPtg1 = new Area3DPtg();\n            area3DPtg1.setExternSheetIndex(externSheetIndex);\n            area3DPtg1.setFirstColumn((short)startColumn);\n            area3DPtg1.setLastColumn((short)endColumn);\n            area3DPtg1.setFirstRow((short)0);\n            area3DPtg1.setLastRow((short)0xFFFF);\n            ptgs.add(area3DPtg1);\n        }\n        if (startRow >= 0)\n        {\n            Area3DPtg area3DPtg2 = new Area3DPtg();\n            area3DPtg2.setExternSheetIndex(externSheetIndex);\n            area3DPtg2.setFirstColumn((short)0);\n            area3DPtg2.setLastColumn((short)0x00FF);\n            area3DPtg2.setFirstRow((short)startRow);\n            area3DPtg2.setLastRow((short)endRow);\n            ptgs.add(area3DPtg2);\n        }\n        if (settingRowAndColumn)\n        {\n            UnionPtg unionPtg = new UnionPtg();\n            ptgs.add(unionPtg);\n        }\n        nameRecord.setNameDefinition(ptgs);\n\n        if (isNewRecord)\n        {\n            HSSFName newName = new HSSFName(workbook, nameRecord);\n            names.add(newName);\n        }\n\n        HSSFPrintSetup printSetup = sheet.getPrintSetup();\n        printSetup.setValidSettings(false);\n\n        WindowTwoRecord w2 = (WindowTwoRecord) sheet.getSheet().findFirstRecordBySid(WindowTwoRecord.sid);\n        w2.setPaged(true);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "RETURN", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [5, 34], [6, 35], [0, 36], [10, 37], [0, 38], [18, 39], [18, 40], [19, 41], [19, 42], [20, 43], [20, 44], [21, 45], [21, 46], [22, 47], [22, 48], [23, 49], [23, 50], [24, 51], [24, 52], [25, 53], [25, 54], [31, 55], [32, 56], [2, 57], [3, 58], [4, 59], [5, 60], [34, 61], [6, 62], [35, 63], [7, 64], [8, 65], [9, 66], [37, 67], [11, 68], [11, 69], [38, 70], [13, 71], [14, 72], [15, 73], [16, 74], [17, 75], [39, 76], [41, 77], [43, 78], [44, 79], [44, 80], [45, 81], [46, 82], [46, 83], [47, 84], [48, 85], [48, 86], [49, 87], [50, 88], [50, 89], [51, 90], [52, 91], [52, 92], [53, 93], [54, 94], [54, 95], [1, 96], [3, 97], [4, 98], [5, 99], [5, 100], [5, 101], [5, 102], [5, 103], [5, 104], [6, 105], [6, 106], [6, 107], [6, 108], [6, 109], [6, 110], [7, 111], [7, 112], [10, 113], [10, 114], [69, 115], [72, 116], [72, 117], [73, 118], [73, 119], [74, 120], [76, 121], [77, 122], [78, 123], [79, 124], [80, 125], [81, 126], [82, 127], [83, 128], [84, 129], [85, 130], [86, 131], [87, 132], [88, 133], [89, 134], [90, 135], [91, 136], [92, 137], [93, 138], [94, 139], [95, 140], [96, 141], [58, 142], [59, 143], [60, 144], [62, 145], [112, 146], [64, 147], [66, 148], [66, 149], [113, 150], [114, 151], [69, 152], [115, 153], [116, 154], [117, 155], [117, 156], [118, 157], [119, 158], [119, 159], [102, 160], [103, 161], [106, 162], [107, 163], [151, 164], [152, 165], [155, 166], [156, 167], [156, 168], [158, 169], [159, 170], [159, 171], [164, 172], [165, 173], [167, 174], [168, 175], [170, 176], [171, 177], [173, 178], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 5], [35, 6], [36, 0], [37, 10], [38, 0], [39, 18], [40, 18], [41, 19], [42, 19], [43, 20], [44, 20], [45, 21], [46, 21], [47, 22], [48, 22], [49, 23], [50, 23], [51, 24], [52, 24], [53, 25], [54, 25], [55, 31], [56, 32], [57, 2], [58, 3], [59, 4], [60, 5], [61, 34], [62, 6], [63, 35], [64, 7], [65, 8], [66, 9], [67, 37], [68, 11], [69, 11], [70, 38], [71, 13], [72, 14], [73, 15], [74, 16], [75, 17], [76, 39], [77, 41], [78, 43], [79, 44], [80, 44], [81, 45], [82, 46], [83, 46], [84, 47], [85, 48], [86, 48], [87, 49], [88, 50], [89, 50], [90, 51], [91, 52], [92, 52], [93, 53], [94, 54], [95, 54], [96, 1], [97, 3], [98, 4], [99, 5], [100, 5], [101, 5], [102, 5], [103, 5], [104, 5], [105, 6], [106, 6], [107, 6], [108, 6], [109, 6], [110, 6], [111, 7], [112, 7], [113, 10], [114, 10], [115, 69], [116, 72], [117, 72], [118, 73], [119, 73], [120, 74], [121, 76], [122, 77], [123, 78], [124, 79], [125, 80], [126, 81], [127, 82], [128, 83], [129, 84], [130, 85], [131, 86], [132, 87], [133, 88], [134, 89], [135, 90], [136, 91], [137, 92], [138, 93], [139, 94], [140, 95], [141, 96], [142, 58], [143, 59], [144, 60], [145, 62], [146, 112], [147, 64], [148, 66], [149, 66], [150, 113], [151, 114], [152, 69], [153, 115], [154, 116], [155, 117], [156, 117], [157, 118], [158, 119], [159, 119], [160, 102], [161, 103], [162, 106], [163, 107], [164, 151], [165, 152], [166, 155], [167, 156], [168, 156], [169, 158], [170, 159], [171, 159], [172, 164], [173, 165], [174, 167], [175, 168], [176, 170], [177, 171], [178, 173], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178]]}, {"function_name": "findExistingRowColHeaderNameRecord", "code": "    private NameRecord findExistingRowColHeaderNameRecord( int sheetIndex )\n    {\n        int index = findExistingRowColHeaderNameRecordIdx(sheetIndex);\n        if (index == -1)\n            return null;\n        else\n            return (NameRecord)workbook.findNextRecordBySid(NameRecord.sid, index);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [6, 8], [2, 9], [4, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 6], [9, 2], [10, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "findExistingRowColHeaderNameRecordIdx", "code": "    private int findExistingRowColHeaderNameRecordIdx( int sheetIndex )\n    {\n        int index = 0;\n        NameRecord r = null;\n        while ((r = (NameRecord) workbook.findNextRecordBySid(NameRecord.sid, index)) != null)\n        {\n            int nameRecordSheetIndex = workbook.getSheetIndexFromExternSheetIndex(r.getEqualsToIndexToSheet() - 1);\n            if (isRowColHeaderRecord( r ) && nameRecordSheetIndex == sheetIndex)\n            {\n                return index;\n            }\n            index++;\n        }\n\n        return -1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [7, 10], [7, 11], [3, 12], [4, 13], [8, 14], [8, 15], [14, 16], [14, 17], [9, 18], [11, 19], [18, 20], [20, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 7], [11, 7], [12, 3], [13, 4], [14, 8], [15, 8], [16, 14], [17, 14], [18, 9], [19, 11], [20, 18], [21, 20], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "isRowColHeaderRecord", "code": "    private boolean isRowColHeaderRecord( NameRecord r )\n    {\n        return r.getOptionFlag() == 0x20 && (\"\" + ((char)7)).equals(r.getNameText());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [4, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "createFont", "code": "    public HSSFFont createFont()\n    {\n        FontRecord font = workbook.createNewFont();\n        short fontindex = (short) (getNumberOfFonts() - 1);\n\n        if (fontindex > 3)\n        {\n        }\n        HSSFFont retval = new HSSFFont(fontindex, font);\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [2, 7], [6, 8], [5, 9], [4, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 2], [8, 6], [9, 5], [10, 4], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "findFont", "code": "    public HSSFFont findFont(short boldWeight, short color, short fontHeight,\n                             String name, boolean italic, boolean strikeout,\n                             short typeOffset, byte underline)\n    {\n        for (short i = 0; i < workbook.getNumberOfFontRecords(); i++)\n        {\n            if (i == 4)\n                continue;\n\n            FontRecord font = workbook.getFontRecordAt(i);\n            HSSFFont hssfFont = new HSSFFont(i, font);\n            if (hssfFont.getBoldweight() == boldWeight\n                    && hssfFont.getColor() == color\n                    && hssfFont.getFontHeight() == fontHeight\n                    && hssfFont.getFontName().equals(name)\n                    && hssfFont.getItalic() == italic\n                    && hssfFont.getStrikeout() == strikeout\n                    && hssfFont.getTypeOffset() == typeOffset\n                    && hssfFont.getUnderline() == underline)\n            {\n                return hssfFont;\n            }\n        }\n\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [12, 17], [13, 18], [16, 19], [16, 20], [2, 21], [13, 22], [18, 23], [18, 24], [14, 25], [15, 26], [20, 27], [23, 28], [24, 29], [24, 30], [29, 31], [30, 32], [30, 33], [32, 34], [33, 35], [33, 36], [35, 37], [36, 38], [36, 39], [38, 40], [39, 41], [39, 42], [41, 43], [42, 44], [42, 45], [44, 46], [45, 47], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 12], [18, 13], [19, 16], [20, 16], [21, 2], [22, 13], [23, 18], [24, 18], [25, 14], [26, 15], [27, 20], [28, 23], [29, 24], [30, 24], [31, 29], [32, 30], [33, 30], [34, 32], [35, 33], [36, 33], [37, 35], [38, 36], [39, 36], [40, 38], [41, 39], [42, 39], [43, 41], [44, 42], [45, 42], [46, 44], [47, 45], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "getNumberOfFonts", "code": "    public short getNumberOfFonts()\n    {\n        return (short) workbook.getNumberOfFontRecords();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFontAt", "code": "    public HSSFFont getFontAt(short idx)\n    {\n        FontRecord font = workbook.getFontRecordAt(idx);\n        HSSFFont retval = new HSSFFont(idx, font);\n\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createCellStyle", "code": "    public HSSFCellStyle createCellStyle()\n    {\n        ExtendedFormatRecord xfr = workbook.createCellXF();\n        short index = (short) (getNumCellStyles() - 1);\n        HSSFCellStyle style = new HSSFCellStyle(index, xfr);\n\n        return style;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [3, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [7, 3], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getNumCellStyles", "code": "    public short getNumCellStyles()\n    {\n        return (short) workbook.getNumExFormats();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCellStyleAt", "code": "    public HSSFCellStyle getCellStyleAt(short idx)\n    {\n        ExtendedFormatRecord xfr = workbook.getExFormatAt(idx);\n        HSSFCellStyle style = new HSSFCellStyle(idx, xfr);\n\n        return style;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "write", "code": "    public void write(OutputStream stream)\n            throws IOException\n    {\n        byte[] bytes = getBytes();\n        POIFSFileSystem fs = new POIFSFileSystem();\n\n        fs.createDocument(new ByteArrayInputStream(bytes), \"Workbook\");\n\n        if (preserveNodes) {\n            List excepts = new ArrayList(1);\n            excepts.add(\"Workbook\");\n            copyNodes(this.poifs,fs,excepts);\n        }\n        fs.writeFilesystem(stream);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [6, 8], [6, 9], [2, 10], [3, 11], [1, 12], [1, 13], [13, 14], [7, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 6], [9, 6], [10, 2], [11, 3], [12, 1], [13, 1], [14, 13], [15, 7], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getBytes", "code": "    public byte[] getBytes()\n    {\n        if (log.check( POILogger.DEBUG ))\n            log.log(DEBUG, \"HSSFWorkbook.getBytes()\");\n\n        for (int k = 0; k < sheets.size(); k++)\n            ((HSSFSheet) sheets.get(k)).getSheet().preSerialize();\n\n        int wbsize = workbook.getSize();\n\n        int totalsize = wbsize;\n\n        for (int k = 0; k < sheets.size(); k++)\n        {\n            workbook.setSheetBof(k, totalsize);\n            totalsize += ((HSSFSheet) sheets.get(k)).getSheet().getSize();\n        }\n\n\n/*        if (totalsize < 4096)\n        {\n            totalsize = 4096;\n        }*/\n        byte[] retval = new byte[totalsize];\n        int pos = workbook.serialize(0, retval);\n\n        for (int k = 0; k < sheets.size(); k++)\n        {\n\n            pos += ((HSSFSheet) sheets.get(k)).getSheet().serialize(pos);\n        }\n/*        for (int k = pos; k < totalsize; k++)\n        {\n            retval[k] = 0;\n        }*/\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [5, 11], [8, 12], [9, 13], [10, 14], [3, 15], [11, 16], [7, 17], [12, 18], [9, 19], [2, 20], [2, 21], [15, 22], [5, 23], [5, 24], [5, 25], [8, 26], [8, 27], [19, 28], [20, 29], [23, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 5], [12, 8], [13, 9], [14, 10], [15, 3], [16, 11], [17, 7], [18, 12], [19, 9], [20, 2], [21, 2], [22, 15], [23, 5], [24, 5], [25, 5], [26, 8], [27, 8], [28, 19], [29, 20], [30, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "addSSTString", "code": "    public int addSSTString(String string)\n    {\n        return workbook.addSSTString(string);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSSTString", "code": "    public String getSSTString(int index)\n    {\n        return workbook.getSSTString(index);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getWorkbook", "code": "    Workbook getWorkbook()\n    {\n        return workbook;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNumberOfNames", "code": "    public int getNumberOfNames(){\n        int result = names.size();\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNameAt", "code": "    public HSSFName getNameAt(int index){\n        HSSFName result = (HSSFName) names.get(index);\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNameName", "code": "    public String getNameName(int index){\n        String result = getNameAt(index).getNameName();\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setPrintArea", "code": "\tpublic void setPrintArea(int sheetIndex, String reference)\n\t{\n\t\tNameRecord name = workbook.getSpecificBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);\n\n\n\t\tif (name == null)\n\t\t\tname = workbook.createBuiltInName(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);\n\n\t    short externSheetIndex = getWorkbook().checkExternSheet(sheetIndex);\n\t\tname.setExternSheetNumber(externSheetIndex);\n\t\tname.setAreaReference(reference);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 9], [2, 10], [8, 11], [3, 12], [9, 13], [10, 14], [12, 15], [14, 16], [15, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 1], [10, 2], [11, 8], [12, 3], [13, 9], [14, 10], [15, 12], [16, 14], [17, 15], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setPrintArea", "code": "\tpublic void setPrintArea(int sheetIndex, int startColumn, int endColumn,\n\t\t\t\t\t\t\t  int startRow, int endRow) {\n\n\t\tCellReference cell = new CellReference(startRow, startColumn, true, true);\n\t\tString reference = cell.toString();\n\n\t\tcell = new CellReference(endRow, endColumn, true, true);\n\t\treference = reference+\":\"+cell.toString();\n\n\t\tsetPrintArea(sheetIndex, reference);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [9, 11], [10, 12], [1, 13], [2, 14], [11, 15], [11, 16], [12, 17], [12, 18], [14, 19], [14, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 9], [12, 10], [13, 1], [14, 2], [15, 11], [16, 11], [17, 12], [18, 12], [19, 14], [20, 14], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getPrintArea", "code": "\tpublic String getPrintArea(int sheetIndex)\n\t{\n\t\tNameRecord name = workbook.getSpecificBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);\n\t\tif (name == null) return null;\n\n\t\treturn name.getAreaReference(workbook);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [3, 10], [10, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 3], [11, 10], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "removePrintArea", "code": "    public void removePrintArea(int sheetIndex) {\n    \tgetWorkbook().removeBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createName", "code": "    public HSSFName createName(){\n        NameRecord nameRecord = workbook.createName();\n\n        HSSFName newName = new HSSFName(workbook, nameRecord);\n\n        names.add(newName);\n\n        return newName;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNameIndex", "code": "    public int getNameIndex(String name)\n    {\n        int retval = -1;\n\n        for (int k = 0; k < names.size(); k++)\n        {\n            String nameName = getNameName(k);\n\n            if (nameName.equals(name))\n            {\n                retval = k;\n                break;\n            }\n        }\n        return retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [3, 9], [6, 10], [2, 11], [6, 12], [7, 13], [6, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 3], [10, 6], [11, 2], [12, 6], [13, 7], [14, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "removeName", "code": "    public void removeName(int index){\n        names.remove(index);\n        workbook.removeName(index);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createDataFormat", "code": "    public HSSFDataFormat createDataFormat() {\n\tif (formatter == null)\n\t    formatter = new HSSFDataFormat(workbook);\n\treturn formatter;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "removeName", "code": "    public void removeName(String name){\n        int index = getNameIndex(name);\n\n        removeName(index);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCustomPalette", "code": "    public HSSFPalette getCustomPalette()\n    {\n        return new HSSFPalette(workbook.getCustomPalette());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "copyNodes", "code": "   private void copyNodes(POIFSFileSystem source, POIFSFileSystem target,\n                          List excepts) throws IOException {\n\n      DirectoryEntry root = source.getRoot();\n      DirectoryEntry newRoot = target.getRoot();\n\n      Iterator entries = root.getEntries();\n\n      while (entries.hasNext()) {\n         Entry entry = (Entry)entries.next();\n         if (!isInList(entry.getName(), excepts)) {\n             copyNodeRecursively(entry,newRoot);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [4, 13], [9, 14], [14, 15], [9, 16], [10, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 4], [14, 9], [15, 14], [16, 9], [17, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "isInList", "code": "   private boolean isInList(String entry, List list) {\n       for (int k = 0; k < list.size(); k++) {\n          if (list.get(k).equals(entry)) {\n            return true;\n          }\n       }\n       return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [2, 10], [7, 11], [9, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 2], [11, 7], [12, 9], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "copyNodeRecursively", "code": "   private void copyNodeRecursively(Entry entry, DirectoryEntry target)\n   throws IOException {\n       DirectoryEntry newTarget = null;\n       if (entry.isDirectoryEntry()) {\n           newTarget = target.createDirectory(entry.getName());\n           Iterator entries = ((DirectoryEntry)entry).getEntries();\n\n           while (entries.hasNext()) {\n              copyNodeRecursively((Entry)entries.next(),newTarget);\n           }\n       } else {\n         DocumentEntry dentry = (DocumentEntry)entry;\n         DocumentInputStream dstream = new DocumentInputStream(dentry);\n         target.createDocument(dentry.getName(),dstream);\n         dstream.close();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 10], [1, 11], [1, 12], [8, 13], [1, 14], [12, 15], [6, 16], [14, 17], [8, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 2], [11, 1], [12, 1], [13, 8], [14, 1], [15, 12], [16, 6], [17, 14], [18, 8], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "insertChartRecord", "code": "    public void insertChartRecord()\n    {\n        int loc = workbook.findFirstRecordLocBySid(SSTRecord.sid);\n        byte[] data = {\n           (byte)0x0F, (byte)0x00, (byte)0x00, (byte)0xF0, (byte)0x52,\n           (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,\n           (byte)0x06, (byte)0xF0, (byte)0x18, (byte)0x00, (byte)0x00,\n           (byte)0x00, (byte)0x01, (byte)0x08, (byte)0x00, (byte)0x00,\n           (byte)0x02, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x02,\n           (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x01, (byte)0x00,\n           (byte)0x00, (byte)0x00, (byte)0x01, (byte)0x00, (byte)0x00,\n           (byte)0x00, (byte)0x03, (byte)0x00, (byte)0x00, (byte)0x00,\n           (byte)0x33, (byte)0x00, (byte)0x0B, (byte)0xF0, (byte)0x12,\n           (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xBF, (byte)0x00,\n           (byte)0x08, (byte)0x00, (byte)0x08, (byte)0x00, (byte)0x81,\n           (byte)0x01, (byte)0x09, (byte)0x00, (byte)0x00, (byte)0x08,\n           (byte)0xC0, (byte)0x01, (byte)0x40, (byte)0x00, (byte)0x00,\n           (byte)0x08, (byte)0x40, (byte)0x00, (byte)0x1E, (byte)0xF1,\n           (byte)0x10, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0D,\n           (byte)0x00, (byte)0x00, (byte)0x08, (byte)0x0C, (byte)0x00,\n           (byte)0x00, (byte)0x08, (byte)0x17, (byte)0x00, (byte)0x00,\n           (byte)0x08, (byte)0xF7, (byte)0x00, (byte)0x00, (byte)0x10,\n        };\n        UnknownRecord r = new UnknownRecord((short)0x00EB,(short)0x005a, data);\n        workbook.getRecords().add(loc, r);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [3, 7], [6, 8], [6, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [2, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [2, 30], [2, 31], [2, 32], [2, 33], [2, 34], [2, 35], [2, 36], [2, 37], [2, 38], [2, 39], [2, 40], [2, 41], [2, 42], [2, 43], [2, 44], [2, 45], [2, 46], [2, 47], [2, 48], [2, 49], [2, 50], [2, 51], [2, 52], [2, 53], [2, 54], [2, 55], [2, 56], [2, 57], [2, 58], [2, 59], [2, 60], [2, 61], [2, 62], [2, 63], [2, 64], [2, 65], [2, 66], [2, 67], [2, 68], [2, 69], [2, 70], [2, 71], [2, 72], [2, 73], [2, 74], [2, 75], [2, 76], [2, 77], [2, 78], [2, 79], [2, 80], [2, 81], [2, 82], [2, 83], [2, 84], [2, 85], [2, 86], [2, 87], [2, 88], [2, 89], [2, 90], [2, 91], [2, 92], [2, 93], [2, 94], [2, 95], [2, 96], [2, 97], [2, 98], [2, 99], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [7, 3], [8, 6], [9, 6], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 2], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2], [32, 2], [33, 2], [34, 2], [35, 2], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2], [43, 2], [44, 2], [45, 2], [46, 2], [47, 2], [48, 2], [49, 2], [50, 2], [51, 2], [52, 2], [53, 2], [54, 2], [55, 2], [56, 2], [57, 2], [58, 2], [59, 2], [60, 2], [61, 2], [62, 2], [63, 2], [64, 2], [65, 2], [66, 2], [67, 2], [68, 2], [69, 2], [70, 2], [71, 2], [72, 2], [73, 2], [74, 2], [75, 2], [76, 2], [77, 2], [78, 2], [79, 2], [80, 2], [81, 2], [82, 2], [83, 2], [84, 2], [85, 2], [86, 2], [87, 2], [88, 2], [89, 2], [90, 2], [91, 2], [92, 2], [93, 2], [94, 2], [95, 2], [96, 2], [97, 2], [98, 2], [99, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99]]}, {"function_name": "HSSFWorkbook", "code": "    public HSSFWorkbook()\n    {\n        workbook = Workbook.createWorkbook();\n        sheets = new ArrayList(INITIAL_CAPACITY);\n        names  = new ArrayList(INITIAL_CAPACITY);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "HSSFWorkbook", "code": "    public HSSFWorkbook(POIFSFileSystem fs) throws IOException {\n      this(fs,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFWorkbook", "code": "    public HSSFWorkbook(POIFSFileSystem fs, boolean preserveNodes)\n            throws IOException\n    {\n        this.preserveNodes = preserveNodes;\n\n        if (preserveNodes) {\n           this.poifs = fs;\n        }\n\n        sheets = new ArrayList(INITIAL_CAPACITY);\n        names  = new ArrayList(INITIAL_CAPACITY);\n\n        InputStream stream = fs.createDocumentInputStream(\"Workbook\");\n\n        EventRecordFactory factory = new EventRecordFactory();\n\n\n\n        List records = RecordFactory.createRecords(stream);\n\n        workbook = Workbook.createWorkbook(records);\n        setPropertiesFromWorkbook(workbook);\n        int recOffset = workbook.getNumRecords();\n        int sheetNum = 0;\n\n        while (recOffset < records.size())\n        {\n            Sheet sheet = Sheet.createSheet(records, sheetNum++, recOffset );\n\n            recOffset = sheet.getEofLoc()+1;\n            sheet.convertLabelRecords();\n            HSSFSheet hsheet = new HSSFSheet(workbook, sheet);\n\n            sheets.add(hsheet);\n\n        }\n\n        for (int i = 0 ; i < workbook.getNumNames() ; ++i){\n            HSSFName name = new HSSFName(workbook, workbook.getNameRecord(i));\n            names.add(name);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "VAR_DECL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [11, 19], [2, 20], [2, 21], [12, 22], [3, 23], [4, 24], [14, 25], [5, 26], [6, 27], [7, 28], [15, 29], [16, 30], [1, 31], [1, 32], [2, 33], [2, 34], [2, 35], [28, 36], [8, 37], [18, 38], [20, 39], [35, 40], [21, 41], [38, 42], [40, 43], [40, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 11], [20, 2], [21, 2], [22, 12], [23, 3], [24, 4], [25, 14], [26, 5], [27, 6], [28, 7], [29, 15], [30, 16], [31, 1], [32, 1], [33, 2], [34, 2], [35, 2], [36, 28], [37, 8], [38, 18], [39, 20], [40, 35], [41, 21], [42, 38], [43, 40], [44, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "HSSFWorkbook", "code": "     public HSSFWorkbook(InputStream s) throws IOException {\n         this(s,true);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "HSSFWorkbook", "code": "    public HSSFWorkbook(InputStream s, boolean preserveNodes)\n            throws IOException\n    {\n        this(new POIFSFileSystem(s), preserveNodes);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "poi-3.0-6046", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/DeltaRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.DeltaRecord", "code": "public class DeltaRecord\n    extends Record\n{\n    public final static short  sid           = 0x10;\n\n    private double             field_1_max_change;\n\n    public DeltaRecord()\n    {\n    }\n\n    /**\n     * Constructs a Delta record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x10 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public DeltaRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A DELTA RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_max_change = in.readDouble();\n    }\n\n    /**\n     * set the maximum change\n     * @param maxChange - maximum rounding error\n     */\n\n    public void setMaxChange(double maxChange)\n    {\n        field_1_max_change = maxChange;\n    }\n\n    /**\n     * get the maximum change\n     * @return maxChange - maximum rounding error\n     */\n\n    public double getMaxChange()\n    {\n        return field_1_max_change;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DELTA]\\n\");\n        buffer.append(\"    .maxchange      = \").append(getMaxChange())\n            .append(\"\\n\");\n        buffer.append(\"[/DELTA]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x8);\n        LittleEndian.putDouble(data, 4 + offset, getMaxChange());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 12;\n    }\n\n    public short getSid()\n    {\n        return sid;\n    }\n\n    public Object clone() {\n      DeltaRecord rec = new DeltaRecord();\n      rec.field_1_max_change = field_1_max_change;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A DELTA RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_max_change = in.readDouble();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMaxChange", "code": "    public void setMaxChange(double maxChange)\n    {\n        field_1_max_change = maxChange;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaxChange", "code": "    public double getMaxChange()\n    {\n        return field_1_max_change;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[DELTA]\\n\");\n        buffer.append(\"    .maxchange      = \").append(getMaxChange())\n            .append(\"\\n\");\n        buffer.append(\"[/DELTA]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, ( short ) 0x8);\n        LittleEndian.putDouble(data, 4 + offset, getMaxChange());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [6, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 6], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 12;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      DeltaRecord rec = new DeltaRecord();\n      rec.field_1_max_change = field_1_max_change;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DeltaRecord", "code": "    public DeltaRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DeltaRecord", "code": "    public DeltaRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "poi-3.0-6106", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/IntersectionPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.IntersectionPtg", "code": "public class IntersectionPtg extends OperationPtg\n{\n    public final static byte sid  = 0x0f;\n\n\n    public IntersectionPtg()\n    {\n    }\n\n    public IntersectionPtg(RecordInputStream in)\n    {\n    }\n\n\n    public int getSize()\n    {\n        return 1;\n    }\n\n    public void writeBytes( byte[] array, int offset )\n    {\n        array[ offset + 0 ] = sid;\n    }\n\n    public Object clone()\n    {\n        return new IntersectionPtg();\n    }\n\n    public int getType()\n    {\n        return TYPE_BINARY;\n    }\n\n    /** Implementation of method from Ptg */\n    public String toFormulaString(Workbook book)\n    {\n        return \" \";\n    }\n\n\n    /** implementation of method from OperationsPtg*/\n    public String toFormulaString(String[] operands)\n    {\n         StringBuffer buffer = new StringBuffer();\n\n         buffer.append(operands[ 0 ]);\n         buffer.append(\" \");\n         buffer.append(operands[ 1 ]);\n         return buffer.toString();\n     }\n\n    public int getNumberOfOperands()\n    {\n        return 2;", "functions": [{"function_name": "getSize", "code": "    public int getSize()\n    {\n        return 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "writeBytes", "code": "    public void writeBytes( byte[] array, int offset )\n    {\n        array[ offset + 0 ] = sid;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "clone", "code": "    public Object clone()\n    {\n        return new IntersectionPtg();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "    public int getType()\n    {\n        return TYPE_BINARY;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \" \";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(String[] operands)\n    {\n         StringBuffer buffer = new StringBuffer();\n\n         buffer.append(operands[ 0 ]);\n         buffer.append(\" \");\n         buffer.append(operands[ 1 ]);\n         return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [6, 8], [2, 9], [5, 10], [7, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 6], [9, 2], [10, 5], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getNumberOfOperands", "code": "    public int getNumberOfOperands()\n    {\n        return 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "IntersectionPtg", "code": "    public IntersectionPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "IntersectionPtg", "code": "    public IntersectionPtg(RecordInputStream in)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.5-365", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/condition/Equals.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.condition.Equals", "code": "public class Equals implements Condition {\n\n    private String arg1, arg2;\n    private boolean trim = false;\n    private boolean caseSensitive = true;\n\n    public void setArg1(String a1) {\n        arg1 = a1;\n    }\n\n    public void setArg2(String a2) {\n        arg2 = a2;\n    }\n\n    /**\n     * Should we want to trim the arguments before comparing them?\n     *\n     * @since Revision: 1.3, Ant 1.5\n     */\n    public void setTrim(boolean b) {\n        trim = b;\n    }\n\n    /**\n     * Should the comparison be case sensitive?\n     *\n     * @since Revision: 1.3, Ant 1.5\n     */\n    public void setCasesensitive(boolean b) {\n        caseSensitive = b;\n    }\n\n    public boolean eval() throws BuildException {\n        if (arg1 == null || arg2 == null) {\n            throw new BuildException(\"both arg1 and arg2 are required in \"\n                                     + \"equals\");\n        }\n\n        if (trim) {\n            arg1 = arg1.trim();\n            arg2 = arg2.trim();\n        }\n        \n        return caseSensitive ? arg1.equals(arg2) : arg1.equalsIgnoreCase(arg2);", "functions": [{"function_name": "setArg1", "code": "    public void setArg1(String a1) {\n        arg1 = a1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setArg2", "code": "    public void setArg2(String a2) {\n        arg2 = a2;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTrim", "code": "    public void setTrim(boolean b) {\n        trim = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCasesensitive", "code": "    public void setCasesensitive(boolean b) {\n        caseSensitive = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "eval", "code": "    public boolean eval() throws BuildException {\n        if (arg1 == null || arg2 == null) {\n            throw new BuildException(\"both arg1 and arg2 are required in \"\n                                     + \"equals\");\n        }\n\n        if (trim) {\n            arg1 = arg1.trim();\n            arg2 = arg2.trim();\n        }\n        \n        return caseSensitive ? arg1.equals(arg2) : arg1.equalsIgnoreCase(arg2);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "COND_EXPR", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [4, 6], [4, 7], [3, 8], [5, 9], [5, 10], [2, 11], [2, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [18, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 4], [7, 4], [8, 3], [9, 5], [10, 5], [11, 2], [12, 2], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 18], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}], "label": 0}
{"sample_id": "jedit-4.3-4757", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/org/objectweb/asm/ClassVisitor.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.org.objectweb.asm.ClassVisitor", "code": "public interface ClassVisitor {\n\n  /**\n   * Visits the header of the class.\n   *\n   * @param access the class's access flags (see {@link Constants}). This\n   *      parameter also indicates if the class is deprecated.\n   * @param name the internal name of the class (see {@link Type#getInternalName\n   *      getInternalName}).\n   * @param superName the internal of name of the super class (see {@link\n   *      Type#getInternalName getInternalName}). For interfaces, the super\n   *      class is {@link Object}. May be <tt>null</tt>, but only for the {@link\n   *      Object java.lang.Object} class.\n   * @param interfaces the internal names of the class's interfaces (see {@link\n   *      Type#getInternalName getInternalName}). May be <tt>null</tt>.\n   * @param sourceFile the name of the source file from which this class was\n   *      compiled. May be <tt>null</tt>.\n   */\n\n  void visit (\n    int access,\n    String name,\n    String superName,\n    String[] interfaces,\n    String sourceFile);\n\n  /**\n   * Visits information about an inner class. This inner class is not\n   * necessarily a member of the class being visited.\n   *\n   * @param name the internal name of an inner class (see {@link\n   *      Type#getInternalName getInternalName}).\n   * @param outerName the internal name of the class to which the inner class\n   *      belongs (see {@link Type#getInternalName getInternalName}). May be\n   *      <tt>null</tt>.\n   * @param innerName the (simple) name of the inner class inside its enclosing\n   *      class. May be <tt>null</tt> for anonymous inner classes.\n   * @param access the access flags of the inner class as originally declared\n   *      in the enclosing class.\n   */\n\n  void visitInnerClass (\n    String name,\n    String outerName,\n    String innerName,\n    int access);\n\n  /**\n   * Visits a field of the class.\n   *\n   * @param access the field's access flags (see {@link Constants}). This\n   *      parameter also indicates if the field is synthetic and/or deprecated.\n   * @param name the field's name.\n   * @param desc the field's descriptor (see {@link Type Type}).\n   * @param value the field's initial value. This parameter, which may be\n   *      <tt>null</tt> if the field does not have an initial value, must be an\n   *      {@link java.lang.Integer Integer}, a {@link java.lang.Float Float}, a\n   *      {@link java.lang.Long Long}, a {@link java.lang.Double Double} or a\n   *      {@link String String}.\n   */\n\n  void visitField (int access, String name, String desc, Object value);\n\n  /**\n   * Visits a method of the class. This method <i>must</i> return a new\n   * {@link CodeVisitor CodeVisitor} instance (or <tt>null</tt>) each time it\n   * is called, i.e., it should not return a previously returned visitor.\n   *\n   * @param access the method's access flags (see {@link Constants}). This\n   *      parameter also indicates if the method is synthetic and/or deprecated.\n   * @param name the method's name.\n   * @param desc the method's descriptor (see {@link Type Type}).\n   * @param exceptions the internal names of the method's exception\n   *      classes (see {@link Type#getInternalName getInternalName}). May be\n   *      <tt>null</tt>.\n   * @return an object to visit the byte code of the method, or <tt>null</tt> if\n   *      this class visitor is not interested in visiting the code of this\n   *      method.\n   */\n\n  CodeVisitor visitMethod (\n    int access,\n    String name,\n    String desc,\n    String[] exceptions);\n\n  /**\n   * Visits the end of the class. This method, which is the last one to be\n   * called, is used to inform the visitor that all the fields and methods of\n   * the class have been visited.\n   */\n\n  void visitEnd ();", "functions": [{"function_name": "visit", "code": "  void visit (\n    int access,\n    String name,\n    String superName,\n    String[] interfaces,\n    String sourceFile);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "visitInnerClass", "code": "  void visitInnerClass (\n    String name,\n    String outerName,\n    String innerName,\n    int access);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "visitField", "code": "  void visitField (int access, String name, String desc, Object value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "visitMethod", "code": "  CodeVisitor visitMethod (\n    int access,\n    String name,\n    String desc,\n    String[] exceptions);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "visitEnd", "code": "  void visitEnd ();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.5-5922", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/poifs/storage/BlockAllocationTableWriter.java", "language": "java", "name": "org.apache.poi.poifs.storage.BlockAllocationTableWriter", "code": "public class BlockAllocationTableWriter\n    implements BlockWritable, BATManaged\n{\n    private IntList    _entries;\n    private BATBlock[] _blocks;\n    private int        _start_block;\n\n    /**\n     * create a BlockAllocationTableWriter\n     */\n\n    public BlockAllocationTableWriter()\n    {\n        _start_block = POIFSConstants.END_OF_CHAIN;\n        _entries     = new IntList();\n        _blocks      = new BATBlock[ 0 ];\n    }\n\n    /**\n     * Create the BATBlocks we need\n     *\n     * @return start block index of BAT blocks\n     */\n\n    public int createBlocks()\n    {\n        int xbat_blocks = 0;\n        int bat_blocks  = 0;\n\n        while (true)\n        {\n            int calculated_bat_blocks  =\n                BATBlock.calculateStorageRequirements(bat_blocks\n                                                      + xbat_blocks\n                                                      + _entries.size());\n            int calculated_xbat_blocks =\n                HeaderBlockWriter\n                    .calculateXBATStorageRequirements(calculated_bat_blocks);\n\n            if ((bat_blocks == calculated_bat_blocks)\n                    && (xbat_blocks == calculated_xbat_blocks))\n            {\n\n                break;\n            }\n            else\n            {\n                bat_blocks  = calculated_bat_blocks;\n                xbat_blocks = calculated_xbat_blocks;\n            }\n        }\n        int startBlock = allocateSpace(bat_blocks);\n\n        allocateSpace(xbat_blocks);\n        simpleCreateBlocks();\n        return startBlock;\n    }\n\n    /**\n     * Allocate space for a block of indices\n     *\n     * @param blockCount the number of blocks to allocate space for\n     *\n     * @return the starting index of the blocks\n     */\n\n    public int allocateSpace(final int blockCount)\n    {\n        int startBlock = _entries.size();\n\n        if (blockCount > 0)\n        {\n            int limit = blockCount - 1;\n            int index = startBlock + 1;\n\n            for (int k = 0; k < limit; k++)\n            {\n                _entries.add(index++);\n            }\n            _entries.add(POIFSConstants.END_OF_CHAIN);\n        }\n        return startBlock;\n    }\n\n    /**\n     * get the starting block\n     *\n     * @return the starting block index\n     */\n\n    public int getStartBlock()\n    {\n        return _start_block;\n    }\n\n    /**\n     * create the BATBlocks\n     */\n\n    void simpleCreateBlocks()\n    {\n        _blocks = BATBlock.createBATBlocks(_entries.toArray());\n    }\n\n    /* ********** START implementation of BlockWritable ********** */\n\n    /**\n     * Write the storage to an OutputStream\n     *\n     * @param stream the OutputStream to which the stored data should\n     *               be written\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream\n     */\n\n    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        for (int j = 0; j < _blocks.length; j++)\n        {\n            _blocks[ j ].writeBlocks(stream);\n        }\n    }\n\n    /* **********  END  implementation of BlockWritable ********** */\n    /* ********** START implementation of BATManaged ********** */\n\n    /**\n     * Return the number of BigBlock's this instance uses\n     *\n     * @return count of BigBlock instances\n     */\n\n    public int countBlocks()\n    {\n        return _blocks.length;\n    }\n\n    /**\n     * Set the start block for this instance\n     *\n     * @param index index into the array of BigBlock instances making\n     *              up the the filesystem\n     *\n     * @param start_block\n     */\n\n    public void setStartBlock(int start_block)\n    {\n        _start_block = start_block;", "functions": [{"function_name": "createBlocks", "code": "    public int createBlocks()\n    {\n        int xbat_blocks = 0;\n        int bat_blocks  = 0;\n\n        while (true)\n        {\n            int calculated_bat_blocks  =\n                BATBlock.calculateStorageRequirements(bat_blocks\n                                                      + xbat_blocks\n                                                      + _entries.size());\n            int calculated_xbat_blocks =\n                HeaderBlockWriter\n                    .calculateXBATStorageRequirements(calculated_bat_blocks);\n\n            if ((bat_blocks == calculated_bat_blocks)\n                    && (xbat_blocks == calculated_xbat_blocks))\n            {\n\n                break;\n            }\n            else\n            {\n                bat_blocks  = calculated_bat_blocks;\n                xbat_blocks = calculated_xbat_blocks;\n            }\n        }\n        int startBlock = allocateSpace(bat_blocks);\n\n        allocateSpace(xbat_blocks);\n        simpleCreateBlocks();\n        return startBlock;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [2, 9], [3, 10], [3, 11], [3, 12], [4, 13], [5, 14], [10, 15], [10, 16], [15, 17], [15, 18], [11, 19], [12, 20], [10, 21], [10, 22], [20, 23], [23, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 2], [10, 3], [11, 3], [12, 3], [13, 4], [14, 5], [15, 10], [16, 10], [17, 15], [18, 15], [19, 11], [20, 12], [21, 10], [22, 10], [23, 20], [24, 23], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "allocateSpace", "code": "    public int allocateSpace(final int blockCount)\n    {\n        int startBlock = _entries.size();\n\n        if (blockCount > 0)\n        {\n            int limit = blockCount - 1;\n            int index = startBlock + 1;\n\n            for (int k = 0; k < limit; k++)\n            {\n                _entries.add(index++);\n            }\n            _entries.add(POIFSConstants.END_OF_CHAIN);\n        }\n        return startBlock;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [3, 10], [2, 11], [6, 12], [7, 13], [8, 14], [6, 15], [6, 16], [13, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 3], [11, 2], [12, 6], [13, 7], [14, 8], [15, 6], [16, 6], [17, 13], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getStartBlock", "code": "    public int getStartBlock()\n    {\n        return _start_block;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "simpleCreateBlocks", "code": "    void simpleCreateBlocks()\n    {\n        _blocks = BATBlock.createBATBlocks(_entries.toArray());", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "writeBlocks", "code": "    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        for (int j = 0; j < _blocks.length; j++)\n        {\n            _blocks[ j ].writeBlocks(stream);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "countBlocks", "code": "    public int countBlocks()\n    {\n        return _blocks.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStartBlock", "code": "    public void setStartBlock(int start_block)\n    {\n        _start_block = start_block;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "BlockAllocationTableWriter", "code": "    public BlockAllocationTableWriter()\n    {\n        _start_block = POIFSConstants.END_OF_CHAIN;\n        _entries     = new IntList();\n        _blocks      = new BATBlock[ 0 ];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "ant-1.6-764", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/util/WeakishReference.java", "language": "java", "name": "org.apache.tools.ant.util.WeakishReference", "code": "public abstract class WeakishReference  {\n\n    private static Constructor referenceConstructor;\n\n    private final static String WEAK_REFERENCE_NAME\n        = \"org.apache.tools.ant.util.optional.WeakishReference12\";\n\n    /**\n     * create the appropriate type of reference for the java version\n     * @param object\n     * @return reference to the Object.\n     */\n    public static WeakishReference createReference(Object object) {\n        if (referenceConstructor == null) {\n            createReferenceConstructor();\n        }\n        try {\n            return (WeakishReference) referenceConstructor\n                        .newInstance(new Object[]{object});\n        } catch (Exception e) {\n            throw new BuildException(\"while creating a weakish reference\", e);\n        }\n    }\n\n    /**\n     * create the appropriate constructor method for the\n     */\n    private static void createReferenceConstructor() {\n        Class[] ctor = new Class[]{Object.class};\n        try {\n            referenceConstructor = HardReference.class.getConstructor(ctor);\n        } catch (NoSuchMethodException e) {\n            throw new BuildException(\"when creating a Hard Reference constructor\", e);\n        }\n        if (!JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n            try {\n                Class clazz = Class.forName(WEAK_REFERENCE_NAME);\n                referenceConstructor = clazz.getConstructor(ctor);\n            } catch (ClassNotFoundException e) {\n            } catch (NoSuchMethodException e) {\n            }\n        }\n    }\n\n\n    /**\n     * Returns this reference object's referent.  If this reference object has\n     * been cleared, then this method returns <code>null</code>.\n     *\n     * @return\t The object to which this reference refers, or\n     *\t\t <code>null</code> if this reference object has been cleared\n     */\n    public abstract Object get();\n\n    /**\n     * A hard reference for Java 1.1\n     */\n    public static class HardReference extends WeakishReference {\n        private Object object;\n\n        /**\n         * construct\n         * @param object\n         */\n        public HardReference(Object object) {\n            this.object = object;\n        }\n\n        /**\n         * Returns this reference object's referent.\n         */\n        public Object get() {\n            return object;", "functions": [{"function_name": "createReference", "code": "    public static WeakishReference createReference(Object object) {\n        if (referenceConstructor == null) {\n            createReferenceConstructor();\n        }\n        try {\n            return (WeakishReference) referenceConstructor\n                        .newInstance(new Object[]{object});\n        } catch (Exception e) {\n            throw new BuildException(\"while creating a weakish reference\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "CATCH", "RETURN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [4, 7], [6, 8], [7, 9], [5, 10], [2, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 4], [8, 6], [9, 7], [10, 5], [11, 2], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createReferenceConstructor", "code": "    private static void createReferenceConstructor() {\n        Class[] ctor = new Class[]{Object.class};\n        try {\n            referenceConstructor = HardReference.class.getConstructor(ctor);\n        } catch (NoSuchMethodException e) {\n            throw new BuildException(\"when creating a Hard Reference constructor\", e);\n        }\n        if (!JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n            try {\n                Class clazz = Class.forName(WEAK_REFERENCE_NAME);\n                referenceConstructor = clazz.getConstructor(ctor);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "CALL", "CATCH", "TRY", "THROW_RAISE", "ASSIGN", "CATCH", "CATCH", "VAR_DECL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [5, 7], [2, 8], [6, 9], [6, 10], [6, 11], [7, 12], [8, 13], [6, 14], [12, 15], [14, 16], [11, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 5], [8, 2], [9, 6], [10, 6], [11, 6], [12, 7], [13, 8], [14, 6], [15, 12], [16, 14], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "get", "code": "    public abstract Object get();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.5-7282", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/Mode.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Mode", "code": "final class Mode implements Constants {\n\n    /**\n     * The name of this mode as defined in the stylesheet.\n     */\n    private final QName _name;\n\n    /**\n     * A reference to the stylesheet object that owns this mode.\n     */\n    private final Stylesheet _stylesheet; \n\n    /**\n     * The name of the method in which this mode is compiled.\n     */\n    private final String _methodName;\n\n    /**\n     * A vector of all the templates in this mode.\n     */\n    private Vector _templates; \n\n    /**\n     * Group for patterns with node()-type kernel and child axis.\n     */\n    private Vector _childNodeGroup = null;\n\n    /**\n     * Test sequence for patterns with node()-type kernel and child axis.\n     */\n    private TestSeq _childNodeTestSeq = null;\n\n    /**\n     * Group for patterns with node()-type kernel and attribute axis.\n     */\n    private Vector _attribNodeGroup = null;\n\n    /**\n     * Test sequence for patterns with node()-type kernel and attribute axis.\n     */\n    private TestSeq _attribNodeTestSeq = null;\n    \n    /**\n     * Group for patterns with id() or key()-type kernel.\n     */\n    private Vector _idxGroup = null;\n\n    /**\n     * Test sequence for patterns with id() or key()-type kernel.\n     */\n    private TestSeq _idxTestSeq = null;\n\n    /**\n     * Group for patterns with any other kernel type.\n     */\n    private Vector[] _patternGroups;\n\n    /**\n     * Test sequence for patterns with any other kernel type.\n     */\n    private TestSeq[] _testSeq;\n\n    /**\n     * A mapping between patterns and instruction lists used by \n     * test sequences to avoid compiling the same pattern multiple \n     * times. Note that patterns whose kernels are \"*\", \"node()\" \n     * and \"@*\" can between shared by test sequences.\n     */\n    private Hashtable _preCompiled = new Hashtable();\n\n    /**\n     * A mapping between templates and test sequences.\n     */\n    private Hashtable _neededTemplates = new Hashtable();\n\n    /**\n     * A mapping between named templates and Mode objects.\n     */\n    private Hashtable _namedTemplates = new Hashtable();\n\n    /**\n     * A mapping between templates and instruction handles.\n     */\n    private Hashtable _templateIHs = new Hashtable();\n\n    /**\n     * A mapping between templates and instruction lists.\n     */\n    private Hashtable _templateILs = new Hashtable();\n\n    /**\n     * A reference to the pattern matching the root node.\n     */\n    private LocationPathPattern _rootPattern = null;\n\n    /**\n     * Stores ranges of template precendences for the compilation \n     * of apply-imports (a Hashtable for historical reasons).\n     */\n    private Hashtable _importLevels = null;\n\n    /**\n     * A mapping between key names and keys.\n     */\n    private Hashtable _keys = null;\n\n    /**\n     * Variable index for the current node used in code generation.\n     */\n    private int _currentIndex;\n\n    /**\n     * Creates a new Mode.\n     *\n     * @param name A textual representation of the mode's QName\n     * @param stylesheet The Stylesheet in which the mode occured\n     * @param suffix A suffix to append to the method name for this mode\n     *               (normally a sequence number - still in a String).\n     */\n    public Mode(QName name, Stylesheet stylesheet, String suffix) {\n\t_name = name;\n\t_stylesheet = stylesheet;\n\t_methodName = APPLY_TEMPLATES + suffix;\n\t_templates = new Vector();\n\t_patternGroups = new Vector[32];\n    }\n\n    /**\n     * Returns the name of the method (_not_ function) that will be \n     * compiled for this mode. Normally takes the form 'applyTemplates()' \n     * or * 'applyTemplates2()'.\n     *\n     * @return Method name for this mode\n     */\n    public String functionName() {\n\treturn _methodName;\n    }\n\n    public String functionName(int min, int max) {\n\tif (_importLevels == null) {\n\t    _importLevels = new Hashtable();\n\t}\n\t_importLevels.put(new Integer(max), new Integer(min));\n\treturn _methodName + '_' + max;\n    }\n\n    /**\n     * Add a pre-compiled pattern to this mode. \n     */\n    public void addInstructionList(Pattern pattern, \n\tInstructionList ilist) \n    {\n\t_preCompiled.put(pattern, ilist);\n    }\n\n    /**\n     * Get the instruction list for a pre-compiled pattern. Used by \n     * test sequences to avoid compiling patterns more than once.\n     */\n    public InstructionList getInstructionList(Pattern pattern) {\n\treturn (InstructionList) _preCompiled.get(pattern);\n    }\n\n    /**\n     * Shortcut to get the class compiled for this mode (will be inlined).\n     */\n    private String getClassName() {\n\treturn _stylesheet.getClassName();\n    }\n\n    public Stylesheet getStylesheet() {\n\treturn _stylesheet;\n    }\n\n    public void addTemplate(Template template) {\n\t_templates.addElement(template);\n    }\n\n    private Vector quicksort(Vector templates, int p, int r) {\n\tif (p < r) {\n\t    final int q = partition(templates, p, r);\n\t    quicksort(templates, p, q);\n\t    quicksort(templates, q + 1, r);\n\t}\n\treturn templates;\n    }\n    \n    private int partition(Vector templates, int p, int r) {\n\tfinal Template x = (Template)templates.elementAt(p);\n\tint i = p - 1;\n\tint j = r + 1;\n\twhile (true) {\n\t    while (x.compareTo((Template)templates.elementAt(--j)) > 0);\n\t    while (x.compareTo((Template)templates.elementAt(++i)) < 0);\n\t    if (i < j) {\n\t\ttemplates.set(j, templates.set(i, templates.elementAt(j)));\n\t    }\n\t    else {\n\t\treturn j;\n\t    }\n\t}\n    }\n\n    /**\n     * Process all the test patterns in this mode\n     */\n    public void processPatterns(Hashtable keys) {\n\t_keys = keys;\n\n/*\nSystem.out.println(\"Before Sort \" + _name);\nfor (int i = 0; i < _templates.size(); i++) {\n    System.out.println(\"name = \" + ((Template)_templates.elementAt(i)).getName());\n    System.out.println(\"pattern = \" + ((Template)_templates.elementAt(i)).getPattern());\n    System.out.println(\"priority = \" + ((Template)_templates.elementAt(i)).getPriority());\n    System.out.println(\"position = \" + ((Template)_templates.elementAt(i)).getPosition());\n}\n*/\n\n\t_templates = quicksort(_templates, 0, _templates.size() - 1);\n\n/*\nSystem.out.println(\"\\n After Sort \" + _name);\nfor (int i = 0; i < _templates.size(); i++) {\n    System.out.println(\"name = \" + ((Template)_templates.elementAt(i)).getName());\n    System.out.println(\"pattern = \" + ((Template)_templates.elementAt(i)).getPattern());\n    System.out.println(\"priority = \" + ((Template)_templates.elementAt(i)).getPriority());\n    System.out.println(\"position = \" + ((Template)_templates.elementAt(i)).getPosition());\n}\n*/\n\n\tfinal Enumeration templates = _templates.elements();\n\twhile (templates.hasMoreElements()) {\n\t    final Template template = (Template)templates.nextElement();\n\n\t    /* \n\t     * Add this template to a table of named templates if it has a name.\n\t     * If there are multiple templates with the same name, all but one\n\t     * (the one with highest priority) will be disabled.\n\t     */\n\t    if (template.isNamed() && !template.disabled()) {\n\t\t_namedTemplates.put(template, this);\n\t    }\n\n\t    final Pattern pattern = template.getPattern();\n\t    if (pattern != null) {\n\t\tflattenAlternative(pattern, template, keys);\n\t    }\n\t}\n\tprepareTestSequences();\n    }\n\n    /**\n     * This method will break up alternative patterns (ie. unions of patterns,\n     * such as match=\"A/B | C/B\") and add the basic patterns to their\n     * respective pattern groups.\n     */\n    private void flattenAlternative(Pattern pattern,\n\t\t\t\t    Template template,\n\t\t\t\t    Hashtable keys) {\n\tif (pattern instanceof IdKeyPattern) {\n\t    final IdKeyPattern idkey = (IdKeyPattern)pattern;\n\t    idkey.setTemplate(template);\n\t    if (_idxGroup == null) _idxGroup = new Vector();\n\t    _idxGroup.add(pattern);\n\t}\n\telse if (pattern instanceof AlternativePattern) {\n\t    final AlternativePattern alt = (AlternativePattern)pattern;\n\t    flattenAlternative(alt.getLeft(), template, keys);\n\t    flattenAlternative(alt.getRight(), template, keys);\n\t}\n\telse if (pattern instanceof LocationPathPattern) {\n\t    final LocationPathPattern lpp = (LocationPathPattern)pattern;\n\t    lpp.setTemplate(template);\n\t    addPatternToGroup(lpp);\n\t}\n    }\n\n    /**\n     * Group patterns by NodeTests of their last Step\n     * Keep them sorted by priority within group\n     */\n    private void addPatternToGroup(final LocationPathPattern lpp) {\n\tif (lpp instanceof IdKeyPattern) {\n\t    addPattern(-1, lpp);\n\t}\n\telse {\n\t    final StepPattern kernel = lpp.getKernelPattern();\n\t    if (kernel != null) {\n\t\taddPattern(kernel.getNodeType(), lpp);\n\t    }\n\t    else if (_rootPattern == null ||\n\t\t     lpp.noSmallerThan(_rootPattern)) {\n\t\t_rootPattern = lpp;\n\t    }\n\t}\n    }\n\n    /**\n     * Adds a pattern to a pattern group\n     */\n    private void addPattern(int kernelType, LocationPathPattern pattern) {\n\tfinal int oldLength = _patternGroups.length;\n\tif (kernelType >= oldLength) {\n\t    Vector[] newGroups = new Vector[kernelType * 2];\n\t    System.arraycopy(_patternGroups, 0, newGroups, 0, oldLength);\n\t    _patternGroups = newGroups;\n\t}\n\t\n\tVector patterns;\n\n\tif (kernelType == DOM.NO_TYPE) {\n\t    if (pattern.getAxis() == Axis.ATTRIBUTE) {\n\t\tpatterns = (_attribNodeGroup == null) ?\n\t\t    (_attribNodeGroup = new Vector(2)) : _attribNodeGroup;\n\t    }\n\t    else {\n\t\tpatterns = (_childNodeGroup == null) ?\n\t\t    (_childNodeGroup = new Vector(2)) : _childNodeGroup;\n\t    }\n\t}\n\telse {\n\t    patterns = (_patternGroups[kernelType] == null) ?\n\t\t(_patternGroups[kernelType] = new Vector(2)) : \n\t\t_patternGroups[kernelType];\n\t}\n\n\tif (patterns.size() == 0) {\n\t    patterns.addElement(pattern);\n\t}\n\telse {\n\t    boolean inserted = false;\n\t    for (int i = 0; i < patterns.size(); i++) {\n\t\tfinal LocationPathPattern lppToCompare =\n\t\t    (LocationPathPattern)patterns.elementAt(i);\n\n\t\tif (pattern.noSmallerThan(lppToCompare)) {\n\t\t    inserted = true;\n\t\t    patterns.insertElementAt(pattern, i);\n\t\t    break;\n\t\t}\n\t    }\n\t    if (inserted == false) {\n\t\tpatterns.addElement(pattern);\n\t    }\n\t}\n    }\n    \n    /**\n     * Complete test sequences of a given type by adding all patterns\n     * from a given group.\n     */\n    private void completeTestSequences(int nodeType, Vector patterns) {\n\tif (patterns != null) {\n\t    if (_patternGroups[nodeType] == null) {\n\t\t_patternGroups[nodeType] = patterns;\n\t    }\n\t    else {\n\t\tfinal int m = patterns.size();\n\t\tfor (int j = 0; j < m; j++) {\n\t\t    addPattern(nodeType, \n\t\t\t(LocationPathPattern) patterns.elementAt(j));\n\t\t}\n\t    }\n\t}\n    }\n\n    /**\n     * Build test sequences. The first step is to complete the test sequences \n     * by including patterns of \"*\" and \"node()\" kernel to all element test \n     * sequences, and of \"@*\" to all attribute test sequences.\n     */\n    private void prepareTestSequences() {\n\tfinal Vector starGroup = _patternGroups[DTM.ELEMENT_NODE];\n\tfinal Vector atStarGroup = _patternGroups[DTM.ATTRIBUTE_NODE];\n\n\tcompleteTestSequences(DTM.TEXT_NODE, _childNodeGroup);\n\t\n\tcompleteTestSequences(DTM.ELEMENT_NODE, _childNodeGroup);\n\t\n\tcompleteTestSequences(DTM.PROCESSING_INSTRUCTION_NODE, _childNodeGroup);\n\t\n\tcompleteTestSequences(DTM.COMMENT_NODE, _childNodeGroup);\n\t\n\tcompleteTestSequences(DTM.ATTRIBUTE_NODE, _attribNodeGroup);\n\n\tfinal Vector names = _stylesheet.getXSLTC().getNamesIndex();\n\tif (starGroup != null || atStarGroup != null || \n\t    _childNodeGroup != null || _attribNodeGroup != null) \n\t{\n\t    final int n = _patternGroups.length;\n\n\t    for (int i = DTM.NTYPES; i < n; i++) {\n\t\tif (_patternGroups[i] == null) continue;\n\n\t\tfinal String name = (String) names.elementAt(i - DTM.NTYPES);\n\n\t\tif (isAttributeName(name)) {\n\t\t    completeTestSequences(i, atStarGroup);\n\n\t\t    completeTestSequences(i, _attribNodeGroup);\n\t\t}\n\t\telse {\n\t\t    completeTestSequences(i, starGroup);\n\n\t\t    completeTestSequences(i, _childNodeGroup);\n\t\t}\n\t    }\n\t}\n\n\t_testSeq = new TestSeq[DTM.NTYPES + names.size()];\n\t\n\tfinal int n = _patternGroups.length;\n\tfor (int i = 0; i < n; i++) {\n\t    final Vector patterns = _patternGroups[i];\n\t    if (patterns != null) {\n\t\tfinal TestSeq testSeq = new TestSeq(patterns, i, this);\n\t\ttestSeq.reduce();\n\t\t_testSeq[i] = testSeq;\n\t\ttestSeq.findTemplates(_neededTemplates);\n\t    }\n\t}\n\n\tif (_childNodeGroup != null && _childNodeGroup.size() > 0) {\n\t    _childNodeTestSeq = new TestSeq(_childNodeGroup, -1, this);\n\t    _childNodeTestSeq.reduce();\n\t    _childNodeTestSeq.findTemplates(_neededTemplates);\n\t}\n\n/*\n\tif (_attribNodeGroup != null && _attribNodeGroup.size() > 0) {\n\t    _attribNodeTestSeq = new TestSeq(_attribNodeGroup, -1, this);\n\t    _attribNodeTestSeq.reduce();\n\t    _attribNodeTestSeq.findTemplates(_neededTemplates);\n\t}\n*/\n\n\tif (_idxGroup != null && _idxGroup.size() > 0) {\n\t    _idxTestSeq = new TestSeq(_idxGroup, this);\n\t    _idxTestSeq.reduce();\n\t    _idxTestSeq.findTemplates(_neededTemplates);\n\t}\n\t\n\tif (_rootPattern != null) {\n\t    _neededTemplates.put(_rootPattern.getTemplate(), this);\n\t}\n    }\n\n    private void compileNamedTemplate(Template template,\n\t\t\t\t      ClassGenerator classGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tString methodName = Util.escape(template.getName().toString());\n\n\tfinal NamedMethodGenerator methodGen =\n\t    new NamedMethodGenerator(ACC_PUBLIC,\n\t\t\t\t     org.apache.bcel.generic.Type.VOID,\n\t\t\t\t     new org.apache.bcel.generic.Type[] {\n\t\t\t\t\t Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t\t\t Util.getJCRefType(NODE_ITERATOR_SIG),\n\t\t\t\t\t Util.getJCRefType(TRANSLET_OUTPUT_SIG),\n\t\t\t\t\t org.apache.bcel.generic.Type.INT\n\t\t\t\t     },\n\t\t\t\t     new String[] {\n\t\t\t\t\t DOCUMENT_PNAME,\n\t\t\t\t\t ITERATOR_PNAME,\n\t\t\t\t\t TRANSLET_OUTPUT_PNAME,\n\t\t\t\t\t NODE_PNAME\n\t\t\t\t     },\n\t\t\t\t     methodName,\n\t\t\t\t     getClassName(),\n\t\t\t\t     il, cpg);\n\t\n\til.append(template.compile(classGen, methodGen));\n\til.append(RETURN);\n\t\n\tmethodGen.stripAttributes(true);\n\tmethodGen.setMaxLocals();\n\tmethodGen.setMaxStack();\n\tmethodGen.removeNOPs();\n\tclassGen.addMethod(methodGen.getMethod());\n    }\n\n    private void compileTemplates(ClassGenerator classGen,\n\t\t\t\t  MethodGenerator methodGen,\n\t\t\t\t  InstructionHandle next) \n    {\n        Enumeration templates = _namedTemplates.keys();\n        while (templates.hasMoreElements()) {\n            final Template template = (Template)templates.nextElement();\n            compileNamedTemplate(template, classGen);\n        }\n\n\ttemplates = _neededTemplates.keys();\n\twhile (templates.hasMoreElements()) {\n\t    final Template template = (Template)templates.nextElement();\n\t    if (template.hasContents()) {\n\t\tInstructionList til = template.compile(classGen, methodGen);\n\t\ttil.append(new GOTO_W(next));\n\t\t_templateILs.put(template, til);\n\t\t_templateIHs.put(template, til.getStart());\n\t    }\n\t    else {\n\t\t_templateIHs.put(template, next);\n\t    }\n\t}\n    }\n\t\n    private void appendTemplateCode(InstructionList body) {\n\tfinal Enumeration templates = _neededTemplates.keys();\n\twhile (templates.hasMoreElements()) {\n\t    final Object iList =\n\t\t_templateILs.get(templates.nextElement());\n\t    if (iList != null) {\n\t\tbody.append((InstructionList)iList);\n\t    }\n\t}\n    }\n\n    private void appendTestSequences(InstructionList body) {\n\tfinal int n = _testSeq.length;\n\tfor (int i = 0; i < n; i++) {\n\t    final TestSeq testSeq = _testSeq[i];\n\t    if (testSeq != null) {\n\t\tInstructionList il = testSeq.getInstructionList();\n\t\tif (il != null)\n\t\t    body.append(il);\n\t    }\n\t}\n    }\n\n    public static void compileGetChildren(ClassGenerator classGen,\n\t\t\t\t\t  MethodGenerator methodGen,\n\t\t\t\t\t  int node) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  GET_CHILDREN,\n\t\t\t\t\t\t  GET_CHILDREN_SIG);\n\til.append(methodGen.loadDOM());\n\til.append(new ILOAD(node));\n\til.append(new INVOKEINTERFACE(git, 2));\n    }\n\n    /**\n     * Compiles the default handling for DOM elements: traverse all children\n     */\n    private InstructionList compileDefaultRecursion(ClassGenerator classGen,\n\t\t\t\t\t\t    MethodGenerator methodGen,\n\t\t\t\t\t\t    InstructionHandle next) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tfinal String applyTemplatesSig = classGen.getApplyTemplatesSig();\n\tfinal int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  GET_CHILDREN,\n\t\t\t\t\t\t  GET_CHILDREN_SIG);\n\tfinal int applyTemplates = cpg.addMethodref(getClassName(),\n\t\t\t\t\t\t    functionName(),\n\t\t\t\t\t\t    applyTemplatesSig);\n\til.append(classGen.loadTranslet());\n\til.append(methodGen.loadDOM());\n\t\n\til.append(methodGen.loadDOM());\n\til.append(new ILOAD(_currentIndex));\n\til.append(new INVOKEINTERFACE(git, 2));\n\til.append(methodGen.loadHandler());\n\til.append(new INVOKEVIRTUAL(applyTemplates));\n\til.append(new GOTO_W(next));\n\treturn il;\n    }\n\n    /**\n     * Compiles the default action for DOM text nodes and attribute nodes:\n     * output the node's text value\n     */\n    private InstructionList compileDefaultText(ClassGenerator classGen,\n\t\t\t\t\t       MethodGenerator methodGen,\n\t\t\t\t\t       InstructionHandle next) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\n\tfinal int chars = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t    CHARACTERS,\n\t\t\t\t\t\t    CHARACTERS_SIG);\n\til.append(methodGen.loadDOM());\n\til.append(new ILOAD(_currentIndex));\n\til.append(methodGen.loadHandler());\n\til.append(new INVOKEINTERFACE(chars, 3));\n\til.append(new GOTO_W(next));\n\treturn il;\n    }\n\n    private InstructionList compileNamespaces(ClassGenerator classGen,\n\t\t\t\t\t      MethodGenerator methodGen,\n\t\t\t\t\t      boolean[] isNamespace,\n\t\t\t\t\t      boolean[] isAttribute,\n\t\t\t\t\t      boolean attrFlag,\n\t\t\t\t\t      InstructionHandle defaultTarget) {\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\n\tfinal Vector namespaces = xsltc.getNamespaceIndex();\n\tfinal Vector names = xsltc.getNamesIndex();\n\tfinal int namespaceCount = namespaces.size() + 1;\n\tfinal int namesCount = names.size();\n\n\tfinal InstructionList il = new InstructionList();\n\tfinal int[] types = new int[namespaceCount];\n\tfinal InstructionHandle[] targets = new InstructionHandle[types.length];\n\n\tif (namespaceCount > 0) {\n\t    boolean compiled = false;\n\n\t    for (int i = 0; i < namespaceCount; i++) {\n\t\ttargets[i] = defaultTarget;\n\t\ttypes[i] = i;\n\t    }\n\n\t    for (int i = DTM.NTYPES; i < (DTM.NTYPES+namesCount); i++) {\n\t\tif ((isNamespace[i]) && (isAttribute[i] == attrFlag)) {\n\t\t    String name = (String)names.elementAt(i-DTM.NTYPES);\n\t\t    String namespace = name.substring(0,name.lastIndexOf(':'));\n\t\t    final int type = xsltc.registerNamespace(namespace);\n\t\t    \n\t\t    if ((i < _testSeq.length) &&\n\t\t\t(_testSeq[i] != null)) {\n\t\t\ttargets[type] =\n\t\t\t    (_testSeq[i]).compile(classGen,\n\t\t\t\t\t\t       methodGen,\n\t\t\t\t\t\t       defaultTarget);\n\t\t\tcompiled = true;\n\t\t    }\n\t\t}\n\t    }\n\n\t    if (!compiled) return(null);\n\t\t\n\t    final int getNS = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\t\"getNamespaceType\",\n\t\t\t\t\t\t\t\"(I)I\");\n\t    il.append(methodGen.loadDOM());\n\t    il.append(new ILOAD(_currentIndex));\n\t    il.append(new INVOKEINTERFACE(getNS, 2));\n\t    il.append(new SWITCH(types, targets, defaultTarget));\n\t    return(il);\n\t}\n\telse {\n\t    return(null);\n\t}\n    }\n\n   /**\n     * Compiles the applyTemplates() method and adds it to the translet.\n     * This is the main dispatch method.\n     */\n    public void compileApplyTemplates(ClassGenerator classGen) {\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal Vector names = xsltc.getNamesIndex();\n\n\tfinal org.apache.bcel.generic.Type[] argTypes =\n\t    new org.apache.bcel.generic.Type[3];\n\targTypes[0] = Util.getJCRefType(DOM_INTF_SIG);\n\targTypes[1] = Util.getJCRefType(NODE_ITERATOR_SIG);\n\targTypes[2] = Util.getJCRefType(TRANSLET_OUTPUT_SIG);\n\t\n\tfinal String[] argNames = new String[3];\n\targNames[0] = DOCUMENT_PNAME;\n\targNames[1] = ITERATOR_PNAME;\n\targNames[2] = TRANSLET_OUTPUT_PNAME;\n\n\tfinal InstructionList mainIL = new InstructionList();\n\tfinal MethodGenerator methodGen =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL, \n\t\t\t\torg.apache.bcel.generic.Type.VOID,\n\t\t\t\targTypes, argNames, functionName(),\n\t\t\t\tgetClassName(), mainIL,\n\t\t\t\tclassGen.getConstantPool());\n\tmethodGen.addException(\"org.apache.xalan.xsltc.TransletException\");\n\n\tfinal LocalVariableGen current;\n\tcurrent = methodGen.addLocalVariable2(\"current\",\n\t\t\t\t\t      org.apache.bcel.generic.Type.INT,\n\t\t\t\t\t      mainIL.getEnd());\n\t_currentIndex = current.getIndex();\n\n\tfinal InstructionList body = new InstructionList();\n\tbody.append(NOP);\n\n\tfinal InstructionList ilLoop = new InstructionList();\n\tilLoop.append(methodGen.loadIterator());\n\tilLoop.append(methodGen.nextNode());\n\tilLoop.append(DUP);\n\tilLoop.append(new ISTORE(_currentIndex));\n\n        final BranchHandle ifeq = ilLoop.append(new IFLT(null));\n\tfinal BranchHandle loop = ilLoop.append(new GOTO_W(null));\n\tfinal InstructionHandle ihLoop = ilLoop.getStart();\n\n\tInstructionList ilRecurse =\n\t    compileDefaultRecursion(classGen, methodGen, ihLoop);\n\tInstructionHandle ihRecurse = ilRecurse.getStart();\n\n\tInstructionList ilText =\n\t    compileDefaultText(classGen, methodGen, ihLoop);\n\tInstructionHandle ihText = ilText.getStart();\n\n\tfinal int[] types = new int[DTM.NTYPES + names.size()];\n\tfor (int i = 0; i < types.length; i++) {\n\t    types[i] = i;\n\t}\n\n\tfinal boolean[] isAttribute = new boolean[types.length];\n\tfinal boolean[] isNamespace = new boolean[types.length];\n\tfor (int i = 0; i < names.size(); i++) {\n\t    final String name = (String)names.elementAt(i);\n\t    isAttribute[i + DTM.NTYPES] = isAttributeName(name);\n\t    isNamespace[i + DTM.NTYPES] = isNamespaceName(name);\n\t}\n\n\tcompileTemplates(classGen, methodGen, ihLoop);\n\n\tfinal TestSeq elemTest = _testSeq[DTM.ELEMENT_NODE];\n\tInstructionHandle ihElem = ihRecurse;\n\tif (elemTest != null)\n\t    ihElem = elemTest.compile(classGen, methodGen, ihRecurse);\n\n\tfinal TestSeq attrTest = _testSeq[DTM.ATTRIBUTE_NODE];\n\tInstructionHandle ihAttr = ihText;\n\tif (attrTest != null)\n\t    ihAttr = attrTest.compile(classGen, methodGen, ihAttr);\n\n\tInstructionList ilKey = null;\n\tif (_idxTestSeq != null) {\n\t    loop.setTarget(_idxTestSeq.compile(classGen, methodGen, body.getStart()));\n\t    ilKey = _idxTestSeq.getInstructionList();\n\t}\n\telse {\n\t    loop.setTarget(body.getStart());\n\t}\n\n\tif (_childNodeTestSeq != null) {\n\t    double nodePrio = _childNodeTestSeq.getPriority();\n\t    int    nodePos  = _childNodeTestSeq.getPosition();\n\t    double elemPrio = (0 - Double.MAX_VALUE);\n\t    int    elemPos  = Integer.MIN_VALUE;\n\n\t    if (elemTest != null) {\n\t\telemPrio = elemTest.getPriority();\n\t\telemPos  = elemTest.getPosition();\n\t    }\n\t    if (elemPrio == Double.NaN || elemPrio < nodePrio || \n\t\t(elemPrio == nodePrio && elemPos < nodePos)) \n\t    {\n\t\tihElem = _childNodeTestSeq.compile(classGen, methodGen, ihLoop);\n\t    }\n\n\t    final TestSeq textTest = _testSeq[DTM.TEXT_NODE];\n\t    double textPrio = (0 - Double.MAX_VALUE);\n\t    int    textPos  = Integer.MIN_VALUE;\n\n\t    if (textTest != null) {\n\t\ttextPrio = textTest.getPriority();\n\t\ttextPos  = textTest.getPosition();\n\t    }\n\t    if (textPrio == Double.NaN || textPrio < nodePrio ||\n\t        (textPrio == nodePrio && textPos < nodePos)) \n\t    {\n\t\tihText = _childNodeTestSeq.compile(classGen, methodGen, ihLoop);\n\t\t_testSeq[DTM.TEXT_NODE] = _childNodeTestSeq;\n\t    }\n\t}\n\n\tInstructionHandle elemNamespaceHandle = ihElem;\n\tInstructionList nsElem = compileNamespaces(classGen, methodGen,\n\t\t\t\t\t\t   isNamespace, isAttribute,\n\t\t\t\t\t\t   false, ihElem);\n\tif (nsElem != null) elemNamespaceHandle = nsElem.getStart();\n\n\tInstructionHandle attrNamespaceHandle = ihAttr;\n\tInstructionList nsAttr = compileNamespaces(classGen, methodGen,\n\t\t\t\t\t\t   isNamespace, isAttribute,\n\t\t\t\t\t\t   true, ihAttr);\n\tif (nsAttr != null) attrNamespaceHandle = nsAttr.getStart();\n\n\tfinal InstructionHandle[] targets = new InstructionHandle[types.length];\n\tfor (int i = DTM.NTYPES; i < targets.length; i++) {\n\t    final TestSeq testSeq = _testSeq[i];\n\t    if (isNamespace[i]) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = attrNamespaceHandle;\n\t\telse\n\t\t    targets[i] = elemNamespaceHandle;\n\t    }\n\t    else if (testSeq != null) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t attrNamespaceHandle);\n\t\telse\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t elemNamespaceHandle);\n\t    }\n\t    else {\n\t\ttargets[i] = ihLoop;\n\t    }\n\t}\n\n\n\ttargets[DTM.ROOT_NODE] = _rootPattern != null\n\t    ? getTemplateInstructionHandle(_rootPattern.getTemplate())\n\t    : ihRecurse;\n\n\ttargets[DTM.DOCUMENT_NODE] = _rootPattern != null\n\t    ? getTemplateInstructionHandle(_rootPattern.getTemplate())\n\t    : ihRecurse;\n\n\ttargets[DTM.TEXT_NODE] = _testSeq[DTM.TEXT_NODE] != null\n\t    ? _testSeq[DTM.TEXT_NODE].compile(classGen, methodGen, ihText)\n\t    : ihText;\n\n\ttargets[DTM.NAMESPACE_NODE] = ihLoop;\n\n\ttargets[DTM.ELEMENT_NODE] = elemNamespaceHandle;\n\n\ttargets[DTM.ATTRIBUTE_NODE] = attrNamespaceHandle;\n\n\tInstructionHandle ihPI = ihLoop;\n\tif (_childNodeTestSeq != null) ihPI = ihElem;\n\tif (_testSeq[DTM.PROCESSING_INSTRUCTION_NODE] != null)\n\t    targets[DTM.PROCESSING_INSTRUCTION_NODE] =\n\t\t_testSeq[DTM.PROCESSING_INSTRUCTION_NODE].\n\t\tcompile(classGen, methodGen, ihPI);\n\telse\n\t    targets[DTM.PROCESSING_INSTRUCTION_NODE] = ihPI;\n\t\n\tInstructionHandle ihComment = ihLoop;\n\tif (_childNodeTestSeq != null) ihComment = ihElem;\n\ttargets[DTM.COMMENT_NODE] = _testSeq[DTM.COMMENT_NODE] != null\n\t    ? _testSeq[DTM.COMMENT_NODE].compile(classGen, methodGen, ihComment)\n\t    : ihComment;\n\t    \n\ttargets[DTM.CDATA_SECTION_NODE] = ihLoop;\n\n\ttargets[DTM.DOCUMENT_FRAGMENT_NODE] = ihLoop;\n\t\n\ttargets[DTM.DOCUMENT_TYPE_NODE] = ihLoop;\n\n\ttargets[DTM.ENTITY_NODE] = ihLoop;\n\n\ttargets[DTM.ENTITY_REFERENCE_NODE] = ihLoop;\n\t\n\ttargets[DTM.NOTATION_NODE] = ihLoop;\n\n\n\tfor (int i = DTM.NTYPES; i < targets.length; i++) {\n\t    final TestSeq testSeq = _testSeq[i];\n\t    if ((testSeq == null) || (isNamespace[i])) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = attrNamespaceHandle;\n\t\telse\n\t\t    targets[i] = elemNamespaceHandle;\n\t    }\n\t    else {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t attrNamespaceHandle);\n\t\telse\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t elemNamespaceHandle);\n\t    }\n\t}\n\n\tif (ilKey != null) body.insert(ilKey);\n\n\tfinal int getType = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getExpandedTypeID\",\n                                                      \"(I)I\");\n\tbody.append(methodGen.loadDOM());\n\tbody.append(new ILOAD(_currentIndex));\n\tbody.append(new INVOKEINTERFACE(getType, 2));\n\n\tInstructionHandle disp = body.append(new SWITCH(types, targets, ihLoop));\n\n\tappendTestSequences(body);\n\tappendTemplateCode(body);\n\n\tif (nsElem != null) body.append(nsElem);\n\tif (nsAttr != null) body.append(nsAttr);\n\n\tbody.append(ilRecurse);\n\tbody.append(ilText);\n\n\tmainIL.append(new GOTO_W(ihLoop));\n\tmainIL.append(body);\n\tmainIL.append(ilLoop);\n\n\tpeepHoleOptimization(methodGen);\n\tmethodGen.stripAttributes(true);\n\t\n\tmethodGen.setMaxLocals();\n\tmethodGen.setMaxStack();\n\tmethodGen.removeNOPs();\n\tclassGen.addMethod(methodGen.getMethod());\n\n\tif (_importLevels != null) {\n\t    Enumeration levels = _importLevels.keys();\n\t    while (levels.hasMoreElements()) {\n\t\tInteger max = (Integer)levels.nextElement();\n\t\tInteger min = (Integer)_importLevels.get(max);\n\t\tcompileApplyImports(classGen, min.intValue(), max.intValue());\n\t    }\n\t}\n    }\n\n    private void compileTemplateCalls(ClassGenerator classGen,\n\t\t\t\t      MethodGenerator methodGen,\n\t\t\t\t      InstructionHandle next, int min, int max){\n        Enumeration templates = _neededTemplates.keys();\n\twhile (templates.hasMoreElements()) {\n\t    final Template template = (Template)templates.nextElement();\n\t    final int prec = template.getImportPrecedence();\n\t    if ((prec >= min) && (prec < max)) {\n\t\tif (template.hasContents()) {\n\t\t    InstructionList til = template.compile(classGen, methodGen);\n\t\t    til.append(new GOTO_W(next));\n\t\t    _templateILs.put(template, til);\n\t\t    _templateIHs.put(template, til.getStart());\n\t\t}\n\t\telse {\n\t\t    _templateIHs.put(template, next);\n\t\t}\n\t    }\n\t}\n    }\n\n\n    public void compileApplyImports(ClassGenerator classGen, int min, int max) {\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal Vector names      = xsltc.getNamesIndex();\n\n\t_namedTemplates = new Hashtable();\n\t_neededTemplates = new Hashtable();\n\t_templateIHs = new Hashtable();\n\t_templateILs = new Hashtable();\n\t_patternGroups = new Vector[32];\n\t_rootPattern = null;\n\n\tVector oldTemplates = _templates;\n\n\t_templates = new Vector();\n\tfinal Enumeration templates = oldTemplates.elements();\n\twhile (templates.hasMoreElements()) {\n\t    final Template template = (Template)templates.nextElement();\n\t    final int prec = template.getImportPrecedence();\n\t    if ((prec >= min) && (prec < max)) addTemplate(template);\n\t}\n\n\tprocessPatterns(_keys);\n\n\tfinal org.apache.bcel.generic.Type[] argTypes =\n\t    new org.apache.bcel.generic.Type[3];\n\targTypes[0] = Util.getJCRefType(DOM_INTF_SIG);\n\targTypes[1] = Util.getJCRefType(NODE_ITERATOR_SIG);\n\targTypes[2] = Util.getJCRefType(TRANSLET_OUTPUT_SIG);\n\n\tfinal String[] argNames = new String[3];\n\targNames[0] = DOCUMENT_PNAME;\n\targNames[1] = ITERATOR_PNAME;\n\targNames[2] = TRANSLET_OUTPUT_PNAME;\n\n\tfinal InstructionList mainIL = new InstructionList();\n\tfinal MethodGenerator methodGen =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL, \n\t\t\t\torg.apache.bcel.generic.Type.VOID,\n\t\t\t\targTypes, argNames, functionName()+'_'+max,\n\t\t\t\tgetClassName(), mainIL,\n\t\t\t\tclassGen.getConstantPool());\n\tmethodGen.addException(\"org.apache.xalan.xsltc.TransletException\");\n\n\tfinal LocalVariableGen current;\n\tcurrent = methodGen.addLocalVariable2(\"current\",\n\t\t\t\t\t      org.apache.bcel.generic.Type.INT,\n\t\t\t\t\t      mainIL.getEnd());\n\t_currentIndex = current.getIndex();\n\n\tfinal InstructionList body = new InstructionList();\n\tbody.append(NOP);\n\n\tfinal InstructionList ilLoop = new InstructionList();\n\tilLoop.append(methodGen.loadIterator());\n\tilLoop.append(methodGen.nextNode());\n\tilLoop.append(DUP);\n\tilLoop.append(new ISTORE(_currentIndex));\n\n        final BranchHandle ifeq = ilLoop.append(new IFLT(null));\n\tfinal BranchHandle loop = ilLoop.append(new GOTO_W(null));\n\tfinal InstructionHandle ihLoop = ilLoop.getStart();\n\n\tInstructionList ilRecurse =\n\t    compileDefaultRecursion(classGen, methodGen, ihLoop);\n\tInstructionHandle ihRecurse = ilRecurse.getStart();\n\n\tInstructionList ilText =\n\t    compileDefaultText(classGen, methodGen, ihLoop);\n\tInstructionHandle ihText = ilText.getStart();\n\n\tfinal int[] types = new int[DTM.NTYPES + names.size()];\n\tfor (int i = 0; i < types.length; i++) {\n\t    types[i] = i;\n\t}\n\n\tfinal boolean[] isAttribute = new boolean[types.length];\n\tfinal boolean[] isNamespace = new boolean[types.length];\n\tfor (int i = 0; i < names.size(); i++) {\n\t    final String name = (String)names.elementAt(i);\n\t    isAttribute[i+DTM.NTYPES] = isAttributeName(name);\n\t    isNamespace[i+DTM.NTYPES] = isNamespaceName(name);\n\t}\n\n\tcompileTemplateCalls(classGen, methodGen, ihLoop, min, max);\n\n\tfinal TestSeq elemTest = _testSeq[DTM.ELEMENT_NODE];\n\tInstructionHandle ihElem = ihRecurse;\n\tif (elemTest != null) {\n\t    ihElem = elemTest.compile(classGen, methodGen, ihLoop);\n\t}\n\n\tfinal TestSeq attrTest = _testSeq[DTM.ATTRIBUTE_NODE];\n\tInstructionHandle ihAttr = ihLoop;\n\tif (attrTest != null) {\n\t    ihAttr = attrTest.compile(classGen, methodGen, ihAttr);\n\t}\n\n\tInstructionList ilKey = null;\n\tif (_idxTestSeq != null) {\n\t    loop.setTarget(_idxTestSeq.compile(classGen, methodGen, body.getStart()));\n\t    ilKey = _idxTestSeq.getInstructionList();\n\t}\n\telse {\n\t    loop.setTarget(body.getStart());\n\t}\n\n\tif (_childNodeTestSeq != null) {\n\t    double nodePrio = _childNodeTestSeq.getPriority();\n\t    int    nodePos  = _childNodeTestSeq.getPosition();\n\t    double elemPrio = (0 - Double.MAX_VALUE);\n\t    int    elemPos  = Integer.MIN_VALUE;\n\n\t    if (elemTest != null) {\n\t\telemPrio = elemTest.getPriority();\n\t\telemPos  = elemTest.getPosition();\n\t    }\n\n\t    if (elemPrio == Double.NaN || elemPrio < nodePrio || \n\t\t(elemPrio == nodePrio && elemPos < nodePos)) \n\t    {\n\t\tihElem = _childNodeTestSeq.compile(classGen, methodGen, ihLoop);\n\t    }\n\n\t    final TestSeq textTest = _testSeq[DTM.TEXT_NODE];\n\t    double textPrio = (0 - Double.MAX_VALUE);\n\t    int    textPos  = Integer.MIN_VALUE;\n\n\t    if (textTest != null) {\n\t\ttextPrio = textTest.getPriority();\n\t\ttextPos  = textTest.getPosition();\n\t    }\n\n\t    if (textPrio == Double.NaN || textPrio < nodePrio ||\n\t        (textPrio == nodePrio && textPos < nodePos)) \n\t    {\n\t\tihText = _childNodeTestSeq.compile(classGen, methodGen, ihLoop);\n\t\t_testSeq[DTM.TEXT_NODE] = _childNodeTestSeq;\n\t    }\n\t}\n\n\tInstructionHandle elemNamespaceHandle = ihElem;\n\tInstructionList nsElem = compileNamespaces(classGen, methodGen,\n\t\t\t\t\t\t   isNamespace, isAttribute,\n\t\t\t\t\t\t   false, ihElem);\n\tif (nsElem != null) elemNamespaceHandle = nsElem.getStart();\n\n\tInstructionList nsAttr = compileNamespaces(classGen, methodGen,\n\t\t\t\t\t\t   isNamespace, isAttribute,\n\t\t\t\t\t\t   true, ihAttr);\n\tInstructionHandle attrNamespaceHandle = ihAttr;\n\tif (nsAttr != null) attrNamespaceHandle = nsAttr.getStart();\n\n\tfinal InstructionHandle[] targets = new InstructionHandle[types.length];\n\tfor (int i = DTM.NTYPES; i < targets.length; i++) {\n\t    final TestSeq testSeq = _testSeq[i];\n\t    if (isNamespace[i]) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = attrNamespaceHandle;\n\t\telse\n\t\t    targets[i] = elemNamespaceHandle;\n\t    }\n\t    else if (testSeq != null) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t attrNamespaceHandle);\n\t\telse{\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t elemNamespaceHandle);\n\t    }\n\t    \n\t\ttargets[i] = ihLoop;\n\t    }\n\t}\n\n\ttargets[DTM.ROOT_NODE] = _rootPattern != null\n\t    ? getTemplateInstructionHandle(_rootPattern.getTemplate())\n\t    : ihRecurse;\n\ttargets[DTM.DOCUMENT_NODE] = _rootPattern != null\n\t    ? getTemplateInstructionHandle(_rootPattern.getTemplate()): ihRecurse;\n\t\n\ttargets[DTM.TEXT_NODE] = _testSeq[DTM.TEXT_NODE] != null\n\t    ? _testSeq[DTM.TEXT_NODE].compile(classGen, methodGen, ihText)\n\t    : ihText;\n\n\ttargets[DTM.NAMESPACE_NODE] = ihLoop;\n\n\ttargets[DTM.ELEMENT_NODE] = elemNamespaceHandle;\n\n\ttargets[DTM.ATTRIBUTE_NODE] = attrNamespaceHandle;\n\n\tInstructionHandle ihPI = ihLoop;\n\tif (_childNodeTestSeq != null) ihPI = ihElem;\n\tif (_testSeq[DTM.PROCESSING_INSTRUCTION_NODE] != null) {\n\t    targets[DTM.PROCESSING_INSTRUCTION_NODE] =\n\t\t_testSeq[DTM.PROCESSING_INSTRUCTION_NODE].\n\t\tcompile(classGen, methodGen, ihPI);\n\t}\n\telse {\n\t    targets[DTM.PROCESSING_INSTRUCTION_NODE] = ihPI;\n\t}\n\t\n\tInstructionHandle ihComment = ihLoop;\n\tif (_childNodeTestSeq != null) ihComment = ihElem;\n\ttargets[DTM.COMMENT_NODE] = _testSeq[DTM.COMMENT_NODE] != null\n\t    ? _testSeq[DTM.COMMENT_NODE].compile(classGen, methodGen, ihComment)\n\t    : ihComment;\n\t    \n\ttargets[DTM.CDATA_SECTION_NODE] = ihLoop;\n\n\ttargets[DTM.DOCUMENT_FRAGMENT_NODE] = ihLoop;\n\t\n\ttargets[DTM.DOCUMENT_TYPE_NODE] = ihLoop;\n\n\ttargets[DTM.ENTITY_NODE] = ihLoop;\n\n\ttargets[DTM.ENTITY_REFERENCE_NODE] = ihLoop;\n\t\n\ttargets[DTM.NOTATION_NODE] = ihLoop;\n\n\n\n\tfor (int i = DTM.NTYPES; i < targets.length; i++) {\n\t    final TestSeq testSeq = _testSeq[i];\n\t    if ((testSeq == null) || (isNamespace[i])) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = attrNamespaceHandle;\n\t\telse\n\t\t    targets[i] = elemNamespaceHandle;\n\t    }\n\t    else {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t attrNamespaceHandle);\n\t\telse\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t elemNamespaceHandle);\n\t    }\n\t}\n\n\tif (ilKey != null) body.insert(ilKey);\n\n\tfinal int getType = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getExpandedTypeID\",\n                                                      \"(I)I\");\n\tbody.append(methodGen.loadDOM());\n\tbody.append(new ILOAD(_currentIndex));\n\tbody.append(new INVOKEINTERFACE(getType, 2));\n\n\tInstructionHandle disp = body.append(new SWITCH(types,targets,ihLoop));\n\n\tappendTestSequences(body);\n\tappendTemplateCode(body);\n\n\tif (nsElem != null) body.append(nsElem);\n\tif (nsAttr != null) body.append(nsAttr);\n\n\tbody.append(ilRecurse);\n\tbody.append(ilText);\n\n\tmainIL.append(new GOTO_W(ihLoop));\n\tmainIL.append(body);\n\tmainIL.append(ilLoop);\n\n\tpeepHoleOptimization(methodGen);\n\tmethodGen.stripAttributes(true);\n\t\n\tmethodGen.setMaxLocals();\n\tmethodGen.setMaxStack();\n\tmethodGen.removeNOPs();\n\tclassGen.addMethod(methodGen.getMethod());\n\n\t_templates = oldTemplates;\n    }\n\n    /**\n     * Peephole optimization: Remove sequences of [ALOAD, POP].\n     */\n    private void peepHoleOptimization(MethodGenerator methodGen) {\n    InstructionList il = methodGen.getInstructionList();\n    InstructionFinder find = new InstructionFinder(il);\n\tInstructionHandle ih;\n\tString pattern;\n\n\tpattern = \"`ALOAD'`POP'`Instruction'\";\n\tfor(Iterator iter=find.search(pattern); iter.hasNext();){\n\t    InstructionHandle[] match = (InstructionHandle[])iter.next();\n\t    try {\n\t\tif ((!match[0].hasTargeters()) && (!match[1].hasTargeters())) {\n                    il.delete(match[0], match[1]);\n                }\n\t    }\n\t    catch (TargetLostException e) {\n            }\n\t}\n\tpattern = \"`ILOAD'`ALOAD'`SWAP'`Instruction'\";\n\tfor(Iterator iter=find.search(pattern); iter.hasNext();){\n            InstructionHandle[] match = (InstructionHandle[])iter.next();\n            try {\n                org.apache.bcel.generic.Instruction iload;\n                org.apache.bcel.generic.Instruction aload;\n                if ((!match[0].hasTargeters()) &&\n                    (!match[1].hasTargeters()) &&\n                    (!match[2].hasTargeters())) {\n                    iload = match[0].getInstruction();\n                    aload = match[1].getInstruction();\n                    il.insert(match[0], aload);\n                    il.insert(match[0], iload);\n                    il.delete(match[0], match[2]);\n                }\n            }\n            catch (TargetLostException e) {\n            }\n        }\n        \n\tpattern = \"`ALOAD_1'`ALOAD_1'`Instruction'\";\n        for(Iterator iter=find.search(pattern); iter.hasNext();){\n            InstructionHandle[] match = (InstructionHandle[])iter.next();\n            try {\n\t        org.apache.bcel.generic.Instruction iload;\n                org.apache.bcel.generic.Instruction aload;\n                if ((!match[0].hasTargeters()) && (!match[1].hasTargeters())) {\n                    il.insert(match[1], new DUP());\n                    il.delete(match[1]);\n                }\n            }\n            catch (TargetLostException e) {\n            }\n        }\n        \n    }\n\n    public InstructionHandle getTemplateInstructionHandle(Template template) {\n\treturn (InstructionHandle)_templateIHs.get(template);\n    }\n\n    /**\n     * Auxiliary method to determine if a qname is an attribute.\n     */\n    private static boolean isAttributeName(String qname) {\n\tfinal int col = qname.lastIndexOf(':') + 1;\n\treturn (qname.charAt(col) == '@');\n    }\n\n    /**\n     * Auxiliary method to determine if a qname is a namespace \n     * qualified \"*\".\n     */\n    private static boolean isNamespaceName(String qname) {\n\tfinal int col = qname.lastIndexOf(':');\n\treturn (col > -1 && qname.charAt(qname.length()-1) == '*');", "functions": [{"function_name": "functionName", "code": "    public String functionName() {\n\treturn _methodName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "functionName", "code": "    public String functionName(int min, int max) {\n\tif (_importLevels == null) {\n\t    _importLevels = new Hashtable();\n\t}\n\t_importLevels.put(new Integer(max), new Integer(min));\n\treturn _methodName + '_' + max;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [5, 8], [6, 9], [6, 10], [7, 11], [8, 12], [2, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 5], [9, 6], [10, 6], [11, 7], [12, 8], [13, 2], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addInstructionList", "code": "    public void addInstructionList(Pattern pattern, \n\tInstructionList ilist) \n    {\n\t_preCompiled.put(pattern, ilist);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getInstructionList", "code": "    public InstructionList getInstructionList(Pattern pattern) {\n\treturn (InstructionList) _preCompiled.get(pattern);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getClassName", "code": "    private String getClassName() {\n\treturn _stylesheet.getClassName();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheet", "code": "    public Stylesheet getStylesheet() {\n\treturn _stylesheet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addTemplate", "code": "    public void addTemplate(Template template) {\n\t_templates.addElement(template);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "quicksort", "code": "    private Vector quicksort(Vector templates, int p, int r) {\n\tif (p < r) {\n\t    final int q = partition(templates, p, r);\n\t    quicksort(templates, p, q);\n\t    quicksort(templates, q + 1, r);\n\t}\n\treturn templates;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [8, 10], [7, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 8], [11, 7], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "partition", "code": "    private int partition(Vector templates, int p, int r) {\n\tfinal Template x = (Template)templates.elementAt(p);\n\tint i = p - 1;\n\tint j = r + 1;\n\twhile (true) {\n\t    while (x.compareTo((Template)templates.elementAt(--j)) > 0);\n\t    while (x.compareTo((Template)templates.elementAt(++i)) < 0);\n\t    if (i < j) {\n\t\ttemplates.set(j, templates.set(i, templates.elementAt(j)));\n\t    }\n\t    else {\n\t\treturn j;", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "IF", "LOOP", "LOOP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [3, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [4, 19], [9, 20], [15, 21], [15, 22], [16, 23], [16, 24], [9, 25], [25, 26], [22, 27], [24, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 3], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 4], [20, 9], [21, 15], [22, 15], [23, 16], [24, 16], [25, 9], [26, 25], [27, 22], [28, 24], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "processPatterns", "code": "    public void processPatterns(Hashtable keys) {\n\t_keys = keys;\n\n/*\nSystem.out.println(\"Before Sort \" + _name);\nfor (int i = 0; i < _templates.size(); i++) {\n    System.out.println(\"name = \" + ((Template)_templates.elementAt(i)).getName());\n    System.out.println(\"pattern = \" + ((Template)_templates.elementAt(i)).getPattern());\n    System.out.println(\"priority = \" + ((Template)_templates.elementAt(i)).getPriority());\n    System.out.println(\"position = \" + ((Template)_templates.elementAt(i)).getPosition());\n}\n*/\n\n\t_templates = quicksort(_templates, 0, _templates.size() - 1);\n\n/*\nSystem.out.println(\"\\n After Sort \" + _name);\nfor (int i = 0; i < _templates.size(); i++) {\n    System.out.println(\"name = \" + ((Template)_templates.elementAt(i)).getName());\n    System.out.println(\"pattern = \" + ((Template)_templates.elementAt(i)).getPattern());\n    System.out.println(\"priority = \" + ((Template)_templates.elementAt(i)).getPriority());\n    System.out.println(\"position = \" + ((Template)_templates.elementAt(i)).getPosition());\n}\n*/\n\n\tfinal Enumeration templates = _templates.elements();\n\twhile (templates.hasMoreElements()) {\n\t    final Template template = (Template)templates.nextElement();\n\n\t    /* \n\t     * Add this template to a table of named templates if it has a name.\n\t     * If there are multiple templates with the same name, all but one\n\t     * (the one with highest priority) will be disabled.\n\t     */\n\t    if (template.isNamed() && !template.disabled()) {\n\t\t_namedTemplates.put(template, this);\n\t    }\n\n\t    final Pattern pattern = template.getPattern();\n\t    if (pattern != null) {\n\t\tflattenAlternative(pattern, template, keys);\n\t    }\n\t}\n\tprepareTestSequences();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [6, 13], [8, 14], [10, 15], [13, 16], [13, 17], [14, 18], [9, 19], [15, 20], [15, 21], [16, 22], [16, 23], [8, 24], [10, 25], [11, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 6], [14, 8], [15, 10], [16, 13], [17, 13], [18, 14], [19, 9], [20, 15], [21, 15], [22, 16], [23, 16], [24, 8], [25, 10], [26, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "flattenAlternative", "code": "    private void flattenAlternative(Pattern pattern,\n\t\t\t\t    Template template,\n\t\t\t\t    Hashtable keys) {\n\tif (pattern instanceof IdKeyPattern) {\n\t    final IdKeyPattern idkey = (IdKeyPattern)pattern;\n\t    idkey.setTemplate(template);\n\t    if (_idxGroup == null) _idxGroup = new Vector();\n\t    _idxGroup.add(pattern);\n\t}\n\telse if (pattern instanceof AlternativePattern) {\n\t    final AlternativePattern alt = (AlternativePattern)pattern;\n\t    flattenAlternative(alt.getLeft(), template, keys);\n\t    flattenAlternative(alt.getRight(), template, keys);\n\t}\n\telse if (pattern instanceof LocationPathPattern) {\n\t    final LocationPathPattern lpp = (LocationPathPattern)pattern;\n\t    lpp.setTemplate(template);\n\t    addPatternToGroup(lpp);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [1, 9], [1, 10], [7, 11], [5, 12], [1, 13], [9, 14], [1, 15], [7, 16], [5, 17], [5, 18], [9, 19], [14, 20], [7, 21], [7, 22], [17, 23], [18, 24], [19, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 1], [10, 1], [11, 7], [12, 5], [13, 1], [14, 9], [15, 1], [16, 7], [17, 5], [18, 5], [19, 9], [20, 14], [21, 7], [22, 7], [23, 17], [24, 18], [25, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "addPatternToGroup", "code": "    private void addPatternToGroup(final LocationPathPattern lpp) {\n\tif (lpp instanceof IdKeyPattern) {\n\t    addPattern(-1, lpp);\n\t}\n\telse {\n\t    final StepPattern kernel = lpp.getKernelPattern();\n\t    if (kernel != null) {\n\t\taddPattern(kernel.getNodeType(), lpp);\n\t    }\n\t    else if (_rootPattern == null ||\n\t\t     lpp.noSmallerThan(_rootPattern)) {\n\t\t_rootPattern = lpp;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [6, 9], [7, 10], [5, 11], [8, 12], [9, 13], [9, 14], [4, 15], [6, 16], [14, 17], [15, 18], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 6], [10, 7], [11, 5], [12, 8], [13, 9], [14, 9], [15, 4], [16, 6], [17, 14], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "addPattern", "code": "    private void addPattern(int kernelType, LocationPathPattern pattern) {\n\tfinal int oldLength = _patternGroups.length;\n\tif (kernelType >= oldLength) {\n\t    Vector[] newGroups = new Vector[kernelType * 2];\n\t    System.arraycopy(_patternGroups, 0, newGroups, 0, oldLength);\n\t    _patternGroups = newGroups;\n\t}\n\t\n\tVector patterns;\n\n\tif (kernelType == DOM.NO_TYPE) {\n\t    if (pattern.getAxis() == Axis.ATTRIBUTE) {\n\t\tpatterns = (_attribNodeGroup == null) ?\n\t\t    (_attribNodeGroup = new Vector(2)) : _attribNodeGroup;\n\t    }\n\t    else {\n\t\tpatterns = (_childNodeGroup == null) ?\n\t\t    (_childNodeGroup = new Vector(2)) : _childNodeGroup;\n\t    }\n\t}\n\telse {\n\t    patterns = (_patternGroups[kernelType] == null) ?\n\t\t(_patternGroups[kernelType] = new Vector(2)) : \n\t\t_patternGroups[kernelType];\n\t}\n\n\tif (patterns.size() == 0) {\n\t    patterns.addElement(pattern);\n\t}\n\telse {\n\t    boolean inserted = false;\n\t    for (int i = 0; i < patterns.size(); i++) {\n\t\tfinal LocationPathPattern lppToCompare =\n\t\t    (LocationPathPattern)patterns.elementAt(i);\n\n\t\tif (pattern.noSmallerThan(lppToCompare)) {\n\t\t    inserted = true;\n\t\t    patterns.insertElementAt(pattern, i);\n\t\t    break;\n\t\t}\n\t    }\n\t    if (inserted == false) {\n\t\tpatterns.addElement(pattern);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "BREAK_CONTINUE", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [4, 10], [1, 11], [1, 12], [1, 13], [8, 14], [8, 15], [2, 16], [4, 17], [11, 18], [12, 19], [1, 20], [2, 21], [16, 22], [4, 23], [4, 24], [18, 25], [12, 26], [12, 27], [19, 28], [13, 29], [21, 30], [22, 31], [24, 32], [24, 33], [11, 34], [26, 35], [12, 36], [30, 37], [30, 38], [16, 39], [16, 40], [17, 41], [26, 42], [37, 43], [38, 44], [39, 45], [40, 46], [41, 47], [26, 48], [26, 49], [27, 50], [43, 51], [45, 52], [45, 53], [46, 54], [46, 55], [49, 56], [52, 57], [53, 58], [54, 59], [55, 60], [57, 61], [59, 62], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 4], [11, 1], [12, 1], [13, 1], [14, 8], [15, 8], [16, 2], [17, 4], [18, 11], [19, 12], [20, 1], [21, 2], [22, 16], [23, 4], [24, 4], [25, 18], [26, 12], [27, 12], [28, 19], [29, 13], [30, 21], [31, 22], [32, 24], [33, 24], [34, 11], [35, 26], [36, 12], [37, 30], [38, 30], [39, 16], [40, 16], [41, 17], [42, 26], [43, 37], [44, 38], [45, 39], [46, 40], [47, 41], [48, 26], [49, 26], [50, 27], [51, 43], [52, 45], [53, 45], [54, 46], [55, 46], [56, 49], [57, 52], [58, 53], [59, 54], [60, 55], [61, 57], [62, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "completeTestSequences", "code": "    private void completeTestSequences(int nodeType, Vector patterns) {\n\tif (patterns != null) {\n\t    if (_patternGroups[nodeType] == null) {\n\t\t_patternGroups[nodeType] = patterns;\n\t    }\n\t    else {\n\t\tfinal int m = patterns.size();\n\t\tfor (int j = 0; j < m; j++) {\n\t\t    addPattern(nodeType, \n\t\t\t(LocationPathPattern) patterns.elementAt(j));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [5, 9], [7, 10], [8, 11], [5, 12], [9, 13], [8, 14], [8, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 5], [10, 7], [11, 8], [12, 5], [13, 9], [14, 8], [15, 8], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "prepareTestSequences", "code": "    private void prepareTestSequences() {\n\tfinal Vector starGroup = _patternGroups[DTM.ELEMENT_NODE];\n\tfinal Vector atStarGroup = _patternGroups[DTM.ATTRIBUTE_NODE];\n\n\tcompleteTestSequences(DTM.TEXT_NODE, _childNodeGroup);\n\t\n\tcompleteTestSequences(DTM.ELEMENT_NODE, _childNodeGroup);\n\t\n\tcompleteTestSequences(DTM.PROCESSING_INSTRUCTION_NODE, _childNodeGroup);\n\t\n\tcompleteTestSequences(DTM.COMMENT_NODE, _childNodeGroup);\n\t\n\tcompleteTestSequences(DTM.ATTRIBUTE_NODE, _attribNodeGroup);\n\n\tfinal Vector names = _stylesheet.getXSLTC().getNamesIndex();\n\tif (starGroup != null || atStarGroup != null || \n\t    _childNodeGroup != null || _attribNodeGroup != null) \n\t{\n\t    final int n = _patternGroups.length;\n\n\t    for (int i = DTM.NTYPES; i < n; i++) {\n\t\tif (_patternGroups[i] == null) continue;\n\n\t\tfinal String name = (String) names.elementAt(i - DTM.NTYPES);\n\n\t\tif (isAttributeName(name)) {\n\t\t    completeTestSequences(i, atStarGroup);\n\n\t\t    completeTestSequences(i, _attribNodeGroup);\n\t\t}\n\t\telse {\n\t\t    completeTestSequences(i, starGroup);\n\n\t\t    completeTestSequences(i, _childNodeGroup);\n\t\t}\n\t    }\n\t}\n\n\t_testSeq = new TestSeq[DTM.NTYPES + names.size()];\n\t\n\tfinal int n = _patternGroups.length;\n\tfor (int i = 0; i < n; i++) {\n\t    final Vector patterns = _patternGroups[i];\n\t    if (patterns != null) {\n\t\tfinal TestSeq testSeq = new TestSeq(patterns, i, this);\n\t\ttestSeq.reduce();\n\t\t_testSeq[i] = testSeq;\n\t\ttestSeq.findTemplates(_neededTemplates);\n\t    }\n\t}\n\n\tif (_childNodeGroup != null && _childNodeGroup.size() > 0) {\n\t    _childNodeTestSeq = new TestSeq(_childNodeGroup, -1, this);\n\t    _childNodeTestSeq.reduce();\n\t    _childNodeTestSeq.findTemplates(_neededTemplates);\n\t}\n\n/*\n\tif (_attribNodeGroup != null && _attribNodeGroup.size() > 0) {\n\t    _attribNodeTestSeq = new TestSeq(_attribNodeGroup, -1, this);\n\t    _attribNodeTestSeq.reduce();\n\t    _attribNodeTestSeq.findTemplates(_neededTemplates);\n\t}\n*/\n\n\tif (_idxGroup != null && _idxGroup.size() > 0) {\n\t    _idxTestSeq = new TestSeq(_idxGroup, this);\n\t    _idxTestSeq.reduce();\n\t    _idxTestSeq.findTemplates(_neededTemplates);\n\t}\n\t\n\tif (_rootPattern != null) {\n\t    _neededTemplates.put(_rootPattern.getTemplate(), this);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [3, 12], [4, 13], [0, 14], [6, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [10, 21], [11, 22], [11, 23], [12, 24], [12, 25], [4, 26], [4, 27], [6, 28], [6, 29], [15, 30], [15, 31], [7, 32], [1, 33], [2, 34], [2, 35], [2, 36], [22, 37], [22, 38], [23, 39], [3, 40], [3, 41], [3, 42], [24, 43], [24, 44], [25, 45], [26, 46], [4, 47], [14, 48], [28, 49], [30, 50], [31, 51], [31, 52], [32, 53], [33, 54], [36, 55], [42, 56], [26, 57], [46, 58], [48, 59], [28, 60], [28, 61], [28, 62], [51, 63], [52, 64], [52, 65], [56, 66], [26, 67], [26, 68], [26, 69], [60, 70], [62, 71], [62, 72], [64, 73], [65, 74], [57, 75], [72, 76], [60, 77], [60, 78], [60, 79], [60, 80], [61, 81], [81, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 3], [13, 4], [14, 0], [15, 6], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 10], [22, 11], [23, 11], [24, 12], [25, 12], [26, 4], [27, 4], [28, 6], [29, 6], [30, 15], [31, 15], [32, 7], [33, 1], [34, 2], [35, 2], [36, 2], [37, 22], [38, 22], [39, 23], [40, 3], [41, 3], [42, 3], [43, 24], [44, 24], [45, 25], [46, 26], [47, 4], [48, 14], [49, 28], [50, 30], [51, 31], [52, 31], [53, 32], [54, 33], [55, 36], [56, 42], [57, 26], [58, 46], [59, 48], [60, 28], [61, 28], [62, 28], [63, 51], [64, 52], [65, 52], [66, 56], [67, 26], [68, 26], [69, 26], [70, 60], [71, 62], [72, 62], [73, 64], [74, 65], [75, 57], [76, 72], [77, 60], [78, 60], [79, 60], [80, 60], [81, 61], [82, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "compileNamedTemplate", "code": "    private void compileNamedTemplate(Template template,\n\t\t\t\t      ClassGenerator classGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tString methodName = Util.escape(template.getName().toString());\n\n\tfinal NamedMethodGenerator methodGen =\n\t    new NamedMethodGenerator(ACC_PUBLIC,\n\t\t\t\t     org.apache.bcel.generic.Type.VOID,\n\t\t\t\t     new org.apache.bcel.generic.Type[] {\n\t\t\t\t\t Util.getJCRefType(DOM_INTF_SIG),\n\t\t\t\t\t Util.getJCRefType(NODE_ITERATOR_SIG),\n\t\t\t\t\t Util.getJCRefType(TRANSLET_OUTPUT_SIG),\n\t\t\t\t\t org.apache.bcel.generic.Type.INT\n\t\t\t\t     },\n\t\t\t\t     new String[] {\n\t\t\t\t\t DOCUMENT_PNAME,\n\t\t\t\t\t ITERATOR_PNAME,\n\t\t\t\t\t TRANSLET_OUTPUT_PNAME,\n\t\t\t\t\t NODE_PNAME\n\t\t\t\t     },\n\t\t\t\t     methodName,\n\t\t\t\t     getClassName(),\n\t\t\t\t     il, cpg);\n\t\n\til.append(template.compile(classGen, methodGen));\n\til.append(RETURN);\n\t\n\tmethodGen.stripAttributes(true);\n\tmethodGen.setMaxLocals();\n\tmethodGen.setMaxStack();\n\tmethodGen.removeNOPs();\n\tclassGen.addMethod(methodGen.getMethod());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [7, 14], [11, 15], [13, 16], [1, 17], [2, 18], [3, 19], [4, 20], [17, 21], [18, 22], [22, 23], [17, 24], [17, 25], [17, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 7], [15, 11], [16, 13], [17, 1], [18, 2], [19, 3], [20, 4], [21, 17], [22, 18], [23, 22], [24, 17], [25, 17], [26, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "compileTemplates", "code": "    private void compileTemplates(ClassGenerator classGen,\n\t\t\t\t  MethodGenerator methodGen,\n\t\t\t\t  InstructionHandle next) \n    {\n        Enumeration templates = _namedTemplates.keys();\n        while (templates.hasMoreElements()) {\n            final Template template = (Template)templates.nextElement();\n            compileNamedTemplate(template, classGen);\n        }\n\n\ttemplates = _neededTemplates.keys();\n\twhile (templates.hasMoreElements()) {\n\t    final Template template = (Template)templates.nextElement();\n\t    if (template.hasContents()) {\n\t\tInstructionList til = template.compile(classGen, methodGen);\n\t\ttil.append(new GOTO_W(next));\n\t\t_templateILs.put(template, til);\n\t\t_templateIHs.put(template, til.getStart());\n\t    }\n\t    else {\n\t\t_templateIHs.put(template, next);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "IF", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [2, 9], [1, 10], [1, 11], [8, 12], [2, 13], [3, 14], [10, 15], [2, 16], [10, 17], [10, 18], [10, 19], [10, 20], [10, 21], [11, 22], [13, 23], [19, 24], [21, 25], [17, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 2], [10, 1], [11, 1], [12, 8], [13, 2], [14, 3], [15, 10], [16, 2], [17, 10], [18, 10], [19, 10], [20, 10], [21, 10], [22, 11], [23, 13], [24, 19], [25, 21], [26, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "appendTemplateCode", "code": "    private void appendTemplateCode(InstructionList body) {\n\tfinal Enumeration templates = _neededTemplates.keys();\n\twhile (templates.hasMoreElements()) {\n\t    final Object iList =\n\t\t_templateILs.get(templates.nextElement());\n\t    if (iList != null) {\n\t\tbody.append((InstructionList)iList);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [5, 8], [8, 9], [6, 10], [5, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 5], [9, 8], [10, 6], [11, 5], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "appendTestSequences", "code": "    private void appendTestSequences(InstructionList body) {\n\tfinal int n = _testSeq.length;\n\tfor (int i = 0; i < n; i++) {\n\t    final TestSeq testSeq = _testSeq[i];\n\t    if (testSeq != null) {\n\t\tInstructionList il = testSeq.getInstructionList();\n\t\tif (il != null)\n\t\t    body.append(il);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [1, 8], [5, 9], [5, 10], [7, 11], [9, 12], [9, 13], [12, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 1], [9, 5], [10, 5], [11, 7], [12, 9], [13, 9], [14, 12], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "compileGetChildren", "code": "    public static void compileGetChildren(ClassGenerator classGen,\n\t\t\t\t\t  MethodGenerator methodGen,\n\t\t\t\t\t  int node) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  GET_CHILDREN,\n\t\t\t\t\t\t  GET_CHILDREN_SIG);\n\til.append(methodGen.loadDOM());\n\til.append(new ILOAD(node));\n\til.append(new INVOKEINTERFACE(git, 2));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [7, 10], [8, 11], [9, 12], [1, 13], [2, 14], [3, 15], [10, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 7], [11, 8], [12, 9], [13, 1], [14, 2], [15, 3], [16, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "compileDefaultRecursion", "code": "    private InstructionList compileDefaultRecursion(ClassGenerator classGen,\n\t\t\t\t\t\t    MethodGenerator methodGen,\n\t\t\t\t\t\t    InstructionHandle next) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\tfinal String applyTemplatesSig = classGen.getApplyTemplatesSig();\n\tfinal int git = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t  GET_CHILDREN,\n\t\t\t\t\t\t  GET_CHILDREN_SIG);\n\tfinal int applyTemplates = cpg.addMethodref(getClassName(),\n\t\t\t\t\t\t    functionName(),\n\t\t\t\t\t\t    applyTemplatesSig);\n\til.append(classGen.loadTranslet());\n\til.append(methodGen.loadDOM());\n\t\n\til.append(methodGen.loadDOM());\n\til.append(new ILOAD(_currentIndex));\n\til.append(new INVOKEINTERFACE(git, 2));\n\til.append(methodGen.loadHandler());\n\til.append(new INVOKEVIRTUAL(applyTemplates));\n\til.append(new GOTO_W(next));\n\treturn il;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [10, 18], [11, 19], [12, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [2, 26], [3, 27], [4, 28], [5, 29], [6, 30], [21, 31], [26, 32], [26, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 10], [19, 11], [20, 12], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 2], [27, 3], [28, 4], [29, 5], [30, 6], [31, 21], [32, 26], [33, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "compileDefaultText", "code": "    private InstructionList compileDefaultText(ClassGenerator classGen,\n\t\t\t\t\t       MethodGenerator methodGen,\n\t\t\t\t\t       InstructionHandle next) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = new InstructionList();\n\n\tfinal int chars = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t    CHARACTERS,\n\t\t\t\t\t\t    CHARACTERS_SIG);\n\til.append(methodGen.loadDOM());\n\til.append(new ILOAD(_currentIndex));\n\til.append(methodGen.loadHandler());\n\til.append(new INVOKEINTERFACE(chars, 3));\n\til.append(new GOTO_W(next));\n\treturn il;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [2, 18], [3, 19], [4, 20], [14, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 2], [19, 3], [20, 4], [21, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "compileNamespaces", "code": "    private InstructionList compileNamespaces(ClassGenerator classGen,\n\t\t\t\t\t      MethodGenerator methodGen,\n\t\t\t\t\t      boolean[] isNamespace,\n\t\t\t\t\t      boolean[] isAttribute,\n\t\t\t\t\t      boolean attrFlag,\n\t\t\t\t\t      InstructionHandle defaultTarget) {\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\n\tfinal Vector namespaces = xsltc.getNamespaceIndex();\n\tfinal Vector names = xsltc.getNamesIndex();\n\tfinal int namespaceCount = namespaces.size() + 1;\n\tfinal int namesCount = names.size();\n\n\tfinal InstructionList il = new InstructionList();\n\tfinal int[] types = new int[namespaceCount];\n\tfinal InstructionHandle[] targets = new InstructionHandle[types.length];\n\n\tif (namespaceCount > 0) {\n\t    boolean compiled = false;\n\n\t    for (int i = 0; i < namespaceCount; i++) {\n\t\ttargets[i] = defaultTarget;\n\t\ttypes[i] = i;\n\t    }\n\n\t    for (int i = DTM.NTYPES; i < (DTM.NTYPES+namesCount); i++) {\n\t\tif ((isNamespace[i]) && (isAttribute[i] == attrFlag)) {\n\t\t    String name = (String)names.elementAt(i-DTM.NTYPES);\n\t\t    String namespace = name.substring(0,name.lastIndexOf(':'));\n\t\t    final int type = xsltc.registerNamespace(namespace);\n\t\t    \n\t\t    if ((i < _testSeq.length) &&\n\t\t\t(_testSeq[i] != null)) {\n\t\t\ttargets[type] =\n\t\t\t    (_testSeq[i]).compile(classGen,\n\t\t\t\t\t\t       methodGen,\n\t\t\t\t\t\t       defaultTarget);\n\t\t\tcompiled = true;\n\t\t    }\n\t\t}\n\t    }\n\n\t    if (!compiled) return(null);\n\t\t\n\t    final int getNS = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t\t\"getNamespaceType\",\n\t\t\t\t\t\t\t\"(I)I\");\n\t    il.append(methodGen.loadDOM());\n\t    il.append(new ILOAD(_currentIndex));\n\t    il.append(new INVOKEINTERFACE(getNS, 2));\n\t    il.append(new SWITCH(types, targets, defaultTarget));\n\t    return(il);\n\t}\n\telse {\n\t    return(null);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "IF", "LOOP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [17, 25], [4, 26], [5, 27], [6, 28], [7, 29], [8, 30], [9, 31], [10, 32], [18, 33], [1, 34], [1, 35], [1, 36], [1, 37], [21, 38], [22, 39], [23, 40], [28, 41], [28, 42], [32, 43], [34, 44], [35, 45], [36, 46], [37, 47], [20, 48], [38, 49], [22, 50], [39, 51], [24, 52], [45, 53], [48, 54], [48, 55], [50, 56], [23, 57], [23, 58], [23, 59], [50, 60], [50, 61], [50, 62], [50, 63], [56, 64], [60, 65], [65, 66], [65, 67], [61, 68], [62, 69], [60, 70], [60, 71], [66, 72], [69, 73], [69, 74], [63, 75], [70, 76], [73, 77], [75, 78], [71, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 17], [26, 4], [27, 5], [28, 6], [29, 7], [30, 8], [31, 9], [32, 10], [33, 18], [34, 1], [35, 1], [36, 1], [37, 1], [38, 21], [39, 22], [40, 23], [41, 28], [42, 28], [43, 32], [44, 34], [45, 35], [46, 36], [47, 37], [48, 20], [49, 38], [50, 22], [51, 39], [52, 24], [53, 45], [54, 48], [55, 48], [56, 50], [57, 23], [58, 23], [59, 23], [60, 50], [61, 50], [62, 50], [63, 50], [64, 56], [65, 60], [66, 65], [67, 65], [68, 61], [69, 62], [70, 60], [71, 60], [72, 66], [73, 69], [74, 69], [75, 63], [76, 70], [77, 73], [78, 75], [79, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "compileApplyTemplates", "code": "    public void compileApplyTemplates(ClassGenerator classGen) {\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal Vector names = xsltc.getNamesIndex();\n\n\tfinal org.apache.bcel.generic.Type[] argTypes =\n\t    new org.apache.bcel.generic.Type[3];\n\targTypes[0] = Util.getJCRefType(DOM_INTF_SIG);\n\targTypes[1] = Util.getJCRefType(NODE_ITERATOR_SIG);\n\targTypes[2] = Util.getJCRefType(TRANSLET_OUTPUT_SIG);\n\t\n\tfinal String[] argNames = new String[3];\n\targNames[0] = DOCUMENT_PNAME;\n\targNames[1] = ITERATOR_PNAME;\n\targNames[2] = TRANSLET_OUTPUT_PNAME;\n\n\tfinal InstructionList mainIL = new InstructionList();\n\tfinal MethodGenerator methodGen =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL, \n\t\t\t\torg.apache.bcel.generic.Type.VOID,\n\t\t\t\targTypes, argNames, functionName(),\n\t\t\t\tgetClassName(), mainIL,\n\t\t\t\tclassGen.getConstantPool());\n\tmethodGen.addException(\"org.apache.xalan.xsltc.TransletException\");\n\n\tfinal LocalVariableGen current;\n\tcurrent = methodGen.addLocalVariable2(\"current\",\n\t\t\t\t\t      org.apache.bcel.generic.Type.INT,\n\t\t\t\t\t      mainIL.getEnd());\n\t_currentIndex = current.getIndex();\n\n\tfinal InstructionList body = new InstructionList();\n\tbody.append(NOP);\n\n\tfinal InstructionList ilLoop = new InstructionList();\n\tilLoop.append(methodGen.loadIterator());\n\tilLoop.append(methodGen.nextNode());\n\tilLoop.append(DUP);\n\tilLoop.append(new ISTORE(_currentIndex));\n\n        final BranchHandle ifeq = ilLoop.append(new IFLT(null));\n\tfinal BranchHandle loop = ilLoop.append(new GOTO_W(null));\n\tfinal InstructionHandle ihLoop = ilLoop.getStart();\n\n\tInstructionList ilRecurse =\n\t    compileDefaultRecursion(classGen, methodGen, ihLoop);\n\tInstructionHandle ihRecurse = ilRecurse.getStart();\n\n\tInstructionList ilText =\n\t    compileDefaultText(classGen, methodGen, ihLoop);\n\tInstructionHandle ihText = ilText.getStart();\n\n\tfinal int[] types = new int[DTM.NTYPES + names.size()];\n\tfor (int i = 0; i < types.length; i++) {\n\t    types[i] = i;\n\t}\n\n\tfinal boolean[] isAttribute = new boolean[types.length];\n\tfinal boolean[] isNamespace = new boolean[types.length];\n\tfor (int i = 0; i < names.size(); i++) {\n\t    final String name = (String)names.elementAt(i);\n\t    isAttribute[i + DTM.NTYPES] = isAttributeName(name);\n\t    isNamespace[i + DTM.NTYPES] = isNamespaceName(name);\n\t}\n\n\tcompileTemplates(classGen, methodGen, ihLoop);\n\n\tfinal TestSeq elemTest = _testSeq[DTM.ELEMENT_NODE];\n\tInstructionHandle ihElem = ihRecurse;\n\tif (elemTest != null)\n\t    ihElem = elemTest.compile(classGen, methodGen, ihRecurse);\n\n\tfinal TestSeq attrTest = _testSeq[DTM.ATTRIBUTE_NODE];\n\tInstructionHandle ihAttr = ihText;\n\tif (attrTest != null)\n\t    ihAttr = attrTest.compile(classGen, methodGen, ihAttr);\n\n\tInstructionList ilKey = null;\n\tif (_idxTestSeq != null) {\n\t    loop.setTarget(_idxTestSeq.compile(classGen, methodGen, body.getStart()));\n\t    ilKey = _idxTestSeq.getInstructionList();\n\t}\n\telse {\n\t    loop.setTarget(body.getStart());\n\t}\n\n\tif (_childNodeTestSeq != null) {\n\t    double nodePrio = _childNodeTestSeq.getPriority();\n\t    int    nodePos  = _childNodeTestSeq.getPosition();\n\t    double elemPrio = (0 - Double.MAX_VALUE);\n\t    int    elemPos  = Integer.MIN_VALUE;\n\n\t    if (elemTest != null) {\n\t\telemPrio = elemTest.getPriority();\n\t\telemPos  = elemTest.getPosition();\n\t    }\n\t    if (elemPrio == Double.NaN || elemPrio < nodePrio || \n\t\t(elemPrio == nodePrio && elemPos < nodePos)) \n\t    {\n\t\tihElem = _childNodeTestSeq.compile(classGen, methodGen, ihLoop);\n\t    }\n\n\t    final TestSeq textTest = _testSeq[DTM.TEXT_NODE];\n\t    double textPrio = (0 - Double.MAX_VALUE);\n\t    int    textPos  = Integer.MIN_VALUE;\n\n\t    if (textTest != null) {\n\t\ttextPrio = textTest.getPriority();\n\t\ttextPos  = textTest.getPosition();\n\t    }\n\t    if (textPrio == Double.NaN || textPrio < nodePrio ||\n\t        (textPrio == nodePrio && textPos < nodePos)) \n\t    {\n\t\tihText = _childNodeTestSeq.compile(classGen, methodGen, ihLoop);\n\t\t_testSeq[DTM.TEXT_NODE] = _childNodeTestSeq;\n\t    }\n\t}\n\n\tInstructionHandle elemNamespaceHandle = ihElem;\n\tInstructionList nsElem = compileNamespaces(classGen, methodGen,\n\t\t\t\t\t\t   isNamespace, isAttribute,\n\t\t\t\t\t\t   false, ihElem);\n\tif (nsElem != null) elemNamespaceHandle = nsElem.getStart();\n\n\tInstructionHandle attrNamespaceHandle = ihAttr;\n\tInstructionList nsAttr = compileNamespaces(classGen, methodGen,\n\t\t\t\t\t\t   isNamespace, isAttribute,\n\t\t\t\t\t\t   true, ihAttr);\n\tif (nsAttr != null) attrNamespaceHandle = nsAttr.getStart();\n\n\tfinal InstructionHandle[] targets = new InstructionHandle[types.length];\n\tfor (int i = DTM.NTYPES; i < targets.length; i++) {\n\t    final TestSeq testSeq = _testSeq[i];\n\t    if (isNamespace[i]) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = attrNamespaceHandle;\n\t\telse\n\t\t    targets[i] = elemNamespaceHandle;\n\t    }\n\t    else if (testSeq != null) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t attrNamespaceHandle);\n\t\telse\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t elemNamespaceHandle);\n\t    }\n\t    else {\n\t\ttargets[i] = ihLoop;\n\t    }\n\t}\n\n\n\ttargets[DTM.ROOT_NODE] = _rootPattern != null\n\t    ? getTemplateInstructionHandle(_rootPattern.getTemplate())\n\t    : ihRecurse;\n\n\ttargets[DTM.DOCUMENT_NODE] = _rootPattern != null\n\t    ? getTemplateInstructionHandle(_rootPattern.getTemplate())\n\t    : ihRecurse;\n\n\ttargets[DTM.TEXT_NODE] = _testSeq[DTM.TEXT_NODE] != null\n\t    ? _testSeq[DTM.TEXT_NODE].compile(classGen, methodGen, ihText)\n\t    : ihText;\n\n\ttargets[DTM.NAMESPACE_NODE] = ihLoop;\n\n\ttargets[DTM.ELEMENT_NODE] = elemNamespaceHandle;\n\n\ttargets[DTM.ATTRIBUTE_NODE] = attrNamespaceHandle;\n\n\tInstructionHandle ihPI = ihLoop;\n\tif (_childNodeTestSeq != null) ihPI = ihElem;\n\tif (_testSeq[DTM.PROCESSING_INSTRUCTION_NODE] != null)\n\t    targets[DTM.PROCESSING_INSTRUCTION_NODE] =\n\t\t_testSeq[DTM.PROCESSING_INSTRUCTION_NODE].\n\t\tcompile(classGen, methodGen, ihPI);\n\telse\n\t    targets[DTM.PROCESSING_INSTRUCTION_NODE] = ihPI;\n\t\n\tInstructionHandle ihComment = ihLoop;\n\tif (_childNodeTestSeq != null) ihComment = ihElem;\n\ttargets[DTM.COMMENT_NODE] = _testSeq[DTM.COMMENT_NODE] != null\n\t    ? _testSeq[DTM.COMMENT_NODE].compile(classGen, methodGen, ihComment)\n\t    : ihComment;\n\t    \n\ttargets[DTM.CDATA_SECTION_NODE] = ihLoop;\n\n\ttargets[DTM.DOCUMENT_FRAGMENT_NODE] = ihLoop;\n\t\n\ttargets[DTM.DOCUMENT_TYPE_NODE] = ihLoop;\n\n\ttargets[DTM.ENTITY_NODE] = ihLoop;\n\n\ttargets[DTM.ENTITY_REFERENCE_NODE] = ihLoop;\n\t\n\ttargets[DTM.NOTATION_NODE] = ihLoop;\n\n\n\tfor (int i = DTM.NTYPES; i < targets.length; i++) {\n\t    final TestSeq testSeq = _testSeq[i];\n\t    if ((testSeq == null) || (isNamespace[i])) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = attrNamespaceHandle;\n\t\telse\n\t\t    targets[i] = elemNamespaceHandle;\n\t    }\n\t    else {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t attrNamespaceHandle);\n\t\telse\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t elemNamespaceHandle);\n\t    }\n\t}\n\n\tif (ilKey != null) body.insert(ilKey);\n\n\tfinal int getType = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getExpandedTypeID\",\n                                                      \"(I)I\");\n\tbody.append(methodGen.loadDOM());\n\tbody.append(new ILOAD(_currentIndex));\n\tbody.append(new INVOKEINTERFACE(getType, 2));\n\n\tInstructionHandle disp = body.append(new SWITCH(types, targets, ihLoop));\n\n\tappendTestSequences(body);\n\tappendTemplateCode(body);\n\n\tif (nsElem != null) body.append(nsElem);\n\tif (nsAttr != null) body.append(nsAttr);\n\n\tbody.append(ilRecurse);\n\tbody.append(ilText);\n\n\tmainIL.append(new GOTO_W(ihLoop));\n\tmainIL.append(body);\n\tmainIL.append(ilLoop);\n\n\tpeepHoleOptimization(methodGen);\n\tmethodGen.stripAttributes(true);\n\t\n\tmethodGen.setMaxLocals();\n\tmethodGen.setMaxStack();\n\tmethodGen.removeNOPs();\n\tclassGen.addMethod(methodGen.getMethod());\n\n\tif (_importLevels != null) {\n\t    Enumeration levels = _importLevels.keys();\n\t    while (levels.hasMoreElements()) {\n\t\tInteger max = (Integer)levels.nextElement();\n\t\tInteger min = (Integer)_importLevels.get(max);\n\t\tcompileApplyImports(classGen, min.intValue(), max.intValue());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "COND_EXPR", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "IF", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [1, 53], [0, 54], [0, 55], [0, 56], [0, 57], [0, 58], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 64], [2, 65], [3, 66], [0, 67], [0, 68], [0, 69], [0, 70], [0, 71], [6, 72], [7, 73], [0, 74], [0, 75], [0, 76], [0, 77], [0, 78], [0, 79], [0, 80], [8, 81], [10, 82], [11, 83], [0, 84], [0, 85], [0, 86], [0, 87], [0, 88], [0, 89], [13, 90], [15, 91], [18, 92], [21, 93], [22, 94], [24, 95], [27, 96], [0, 97], [30, 98], [33, 99], [0, 100], [0, 101], [0, 102], [0, 103], [0, 104], [0, 105], [0, 106], [0, 107], [0, 108], [0, 109], [0, 110], [0, 111], [0, 112], [0, 113], [1, 114], [1, 115], [53, 116], [54, 117], [58, 118], [62, 119], [2, 120], [65, 121], [3, 122], [66, 123], [4, 124], [69, 125], [70, 126], [71, 127], [5, 128], [6, 129], [72, 130], [7, 131], [7, 132], [80, 133], [8, 134], [81, 135], [10, 136], [10, 137], [82, 138], [11, 139], [83, 140], [87, 141], [88, 142], [89, 143], [13, 144], [13, 145], [15, 146], [91, 147], [16, 148], [18, 149], [92, 150], [19, 151], [21, 152], [21, 153], [21, 154], [21, 155], [21, 156], [21, 157], [21, 158], [21, 159], [21, 160], [21, 161], [21, 162], [93, 163], [94, 164], [23, 165], [24, 166], [95, 167], [27, 168], [96, 169], [30, 170], [98, 171], [35, 172], [36, 173], [37, 174], [38, 175], [39, 176], [40, 177], [41, 178], [100, 179], [102, 180], [103, 181], [42, 182], [43, 183], [105, 184], [106, 185], [107, 186], [45, 187], [46, 188], [111, 189], [112, 190], [113, 191], [49, 192], [50, 193], [51, 194], [114, 195], [124, 196], [125, 197], [128, 198], [128, 199], [131, 200], [133, 201], [141, 202], [142, 203], [142, 204], [143, 205], [143, 206], [144, 207], [146, 208], [148, 209], [149, 210], [151, 211], [152, 212], [153, 213], [157, 214], [158, 215], [22, 216], [22, 217], [22, 218], [166, 219], [168, 220], [30, 221], [30, 222], [30, 223], [33, 224], [33, 225], [34, 226], [177, 227], [178, 228], [185, 229], [185, 230], [187, 231], [187, 232], [187, 233], [187, 234], [47, 235], [48, 236], [194, 237], [114, 238], [114, 239], [115, 240], [131, 241], [131, 242], [200, 243], [133, 244], [201, 245], [137, 246], [141, 247], [202, 248], [203, 249], [204, 250], [205, 251], [206, 252], [207, 253], [144, 254], [212, 255], [212, 256], [213, 257], [155, 258], [214, 259], [214, 260], [215, 261], [160, 262], [161, 263], [162, 264], [216, 265], [217, 266], [218, 267], [221, 268], [222, 269], [226, 270], [227, 271], [228, 272], [108, 273], [109, 274], [110, 275], [111, 276], [112, 277], [113, 278], [114, 279], [243, 280], [207, 281], [253, 282], [152, 283], [152, 284], [255, 285], [255, 286], [256, 287], [256, 288], [153, 289], [153, 290], [258, 291], [157, 292], [259, 293], [259, 294], [260, 295], [260, 296], [158, 297], [158, 298], [262, 299], [267, 300], [170, 301], [279, 302], [279, 303], [241, 304], [241, 305], [242, 306], [242, 307], [207, 308], [254, 309], [254, 310], [284, 311], [289, 312], [290, 313], [292, 314], [297, 315], [298, 316], [221, 317], [222, 318], [238, 319], [239, 320], [304, 321], [305, 322], [281, 323], [281, 324], [323, 325], [324, 326], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 1], [54, 0], [55, 0], [56, 0], [57, 0], [58, 0], [59, 0], [60, 0], [61, 0], [62, 0], [63, 0], [64, 0], [65, 2], [66, 3], [67, 0], [68, 0], [69, 0], [70, 0], [71, 0], [72, 6], [73, 7], [74, 0], [75, 0], [76, 0], [77, 0], [78, 0], [79, 0], [80, 0], [81, 8], [82, 10], [83, 11], [84, 0], [85, 0], [86, 0], [87, 0], [88, 0], [89, 0], [90, 13], [91, 15], [92, 18], [93, 21], [94, 22], [95, 24], [96, 27], [97, 0], [98, 30], [99, 33], [100, 0], [101, 0], [102, 0], [103, 0], [104, 0], [105, 0], [106, 0], [107, 0], [108, 0], [109, 0], [110, 0], [111, 0], [112, 0], [113, 0], [114, 1], [115, 1], [116, 53], [117, 54], [118, 58], [119, 62], [120, 2], [121, 65], [122, 3], [123, 66], [124, 4], [125, 69], [126, 70], [127, 71], [128, 5], [129, 6], [130, 72], [131, 7], [132, 7], [133, 80], [134, 8], [135, 81], [136, 10], [137, 10], [138, 82], [139, 11], [140, 83], [141, 87], [142, 88], [143, 89], [144, 13], [145, 13], [146, 15], [147, 91], [148, 16], [149, 18], [150, 92], [151, 19], [152, 21], [153, 21], [154, 21], [155, 21], [156, 21], [157, 21], [158, 21], [159, 21], [160, 21], [161, 21], [162, 21], [163, 93], [164, 94], [165, 23], [166, 24], [167, 95], [168, 27], [169, 96], [170, 30], [171, 98], [172, 35], [173, 36], [174, 37], [175, 38], [176, 39], [177, 40], [178, 41], [179, 100], [180, 102], [181, 103], [182, 42], [183, 43], [184, 105], [185, 106], [186, 107], [187, 45], [188, 46], [189, 111], [190, 112], [191, 113], [192, 49], [193, 50], [194, 51], [195, 114], [196, 124], [197, 125], [198, 128], [199, 128], [200, 131], [201, 133], [202, 141], [203, 142], [204, 142], [205, 143], [206, 143], [207, 144], [208, 146], [209, 148], [210, 149], [211, 151], [212, 152], [213, 153], [214, 157], [215, 158], [216, 22], [217, 22], [218, 22], [219, 166], [220, 168], [221, 30], [222, 30], [223, 30], [224, 33], [225, 33], [226, 34], [227, 177], [228, 178], [229, 185], [230, 185], [231, 187], [232, 187], [233, 187], [234, 187], [235, 47], [236, 48], [237, 194], [238, 114], [239, 114], [240, 115], [241, 131], [242, 131], [243, 200], [244, 133], [245, 201], [246, 137], [247, 141], [248, 202], [249, 203], [250, 204], [251, 205], [252, 206], [253, 207], [254, 144], [255, 212], [256, 212], [257, 213], [258, 155], [259, 214], [260, 214], [261, 215], [262, 160], [263, 161], [264, 162], [265, 216], [266, 217], [267, 218], [268, 221], [269, 222], [270, 226], [271, 227], [272, 228], [273, 108], [274, 109], [275, 110], [276, 111], [277, 112], [278, 113], [279, 114], [280, 243], [281, 207], [282, 253], [283, 152], [284, 152], [285, 255], [286, 255], [287, 256], [288, 256], [289, 153], [290, 153], [291, 258], [292, 157], [293, 259], [294, 259], [295, 260], [296, 260], [297, 158], [298, 158], [299, 262], [300, 267], [301, 170], [302, 279], [303, 279], [304, 241], [305, 241], [306, 242], [307, 242], [308, 207], [309, 254], [310, 254], [311, 284], [312, 289], [313, 290], [314, 292], [315, 297], [316, 298], [317, 221], [318, 222], [319, 238], [320, 239], [321, 304], [322, 305], [323, 281], [324, 281], [325, 323], [326, 324], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326]]}, {"function_name": "compileTemplateCalls", "code": "    private void compileTemplateCalls(ClassGenerator classGen,\n\t\t\t\t      MethodGenerator methodGen,\n\t\t\t\t      InstructionHandle next, int min, int max){\n        Enumeration templates = _neededTemplates.keys();\n\twhile (templates.hasMoreElements()) {\n\t    final Template template = (Template)templates.nextElement();\n\t    final int prec = template.getImportPrecedence();\n\t    if ((prec >= min) && (prec < max)) {\n\t\tif (template.hasContents()) {\n\t\t    InstructionList til = template.compile(classGen, methodGen);\n\t\t    til.append(new GOTO_W(next));\n\t\t    _templateILs.put(template, til);\n\t\t    _templateIHs.put(template, til.getStart());\n\t\t}\n\t\telse {\n\t\t    _templateIHs.put(template, next);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [9, 13], [9, 14], [13, 15], [13, 16], [10, 17], [14, 18], [11, 19], [14, 20], [14, 21], [14, 22], [14, 23], [14, 24], [22, 25], [24, 26], [20, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 9], [14, 9], [15, 13], [16, 13], [17, 10], [18, 14], [19, 11], [20, 14], [21, 14], [22, 14], [23, 14], [24, 14], [25, 22], [26, 24], [27, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "compileApplyImports", "code": "    public void compileApplyImports(ClassGenerator classGen, int min, int max) {\n\tfinal XSLTC xsltc = classGen.getParser().getXSLTC();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal Vector names      = xsltc.getNamesIndex();\n\n\t_namedTemplates = new Hashtable();\n\t_neededTemplates = new Hashtable();\n\t_templateIHs = new Hashtable();\n\t_templateILs = new Hashtable();\n\t_patternGroups = new Vector[32];\n\t_rootPattern = null;\n\n\tVector oldTemplates = _templates;\n\n\t_templates = new Vector();\n\tfinal Enumeration templates = oldTemplates.elements();\n\twhile (templates.hasMoreElements()) {\n\t    final Template template = (Template)templates.nextElement();\n\t    final int prec = template.getImportPrecedence();\n\t    if ((prec >= min) && (prec < max)) addTemplate(template);\n\t}\n\n\tprocessPatterns(_keys);\n\n\tfinal org.apache.bcel.generic.Type[] argTypes =\n\t    new org.apache.bcel.generic.Type[3];\n\targTypes[0] = Util.getJCRefType(DOM_INTF_SIG);\n\targTypes[1] = Util.getJCRefType(NODE_ITERATOR_SIG);\n\targTypes[2] = Util.getJCRefType(TRANSLET_OUTPUT_SIG);\n\n\tfinal String[] argNames = new String[3];\n\targNames[0] = DOCUMENT_PNAME;\n\targNames[1] = ITERATOR_PNAME;\n\targNames[2] = TRANSLET_OUTPUT_PNAME;\n\n\tfinal InstructionList mainIL = new InstructionList();\n\tfinal MethodGenerator methodGen =\n\t    new MethodGenerator(ACC_PUBLIC | ACC_FINAL, \n\t\t\t\torg.apache.bcel.generic.Type.VOID,\n\t\t\t\targTypes, argNames, functionName()+'_'+max,\n\t\t\t\tgetClassName(), mainIL,\n\t\t\t\tclassGen.getConstantPool());\n\tmethodGen.addException(\"org.apache.xalan.xsltc.TransletException\");\n\n\tfinal LocalVariableGen current;\n\tcurrent = methodGen.addLocalVariable2(\"current\",\n\t\t\t\t\t      org.apache.bcel.generic.Type.INT,\n\t\t\t\t\t      mainIL.getEnd());\n\t_currentIndex = current.getIndex();\n\n\tfinal InstructionList body = new InstructionList();\n\tbody.append(NOP);\n\n\tfinal InstructionList ilLoop = new InstructionList();\n\tilLoop.append(methodGen.loadIterator());\n\tilLoop.append(methodGen.nextNode());\n\tilLoop.append(DUP);\n\tilLoop.append(new ISTORE(_currentIndex));\n\n        final BranchHandle ifeq = ilLoop.append(new IFLT(null));\n\tfinal BranchHandle loop = ilLoop.append(new GOTO_W(null));\n\tfinal InstructionHandle ihLoop = ilLoop.getStart();\n\n\tInstructionList ilRecurse =\n\t    compileDefaultRecursion(classGen, methodGen, ihLoop);\n\tInstructionHandle ihRecurse = ilRecurse.getStart();\n\n\tInstructionList ilText =\n\t    compileDefaultText(classGen, methodGen, ihLoop);\n\tInstructionHandle ihText = ilText.getStart();\n\n\tfinal int[] types = new int[DTM.NTYPES + names.size()];\n\tfor (int i = 0; i < types.length; i++) {\n\t    types[i] = i;\n\t}\n\n\tfinal boolean[] isAttribute = new boolean[types.length];\n\tfinal boolean[] isNamespace = new boolean[types.length];\n\tfor (int i = 0; i < names.size(); i++) {\n\t    final String name = (String)names.elementAt(i);\n\t    isAttribute[i+DTM.NTYPES] = isAttributeName(name);\n\t    isNamespace[i+DTM.NTYPES] = isNamespaceName(name);\n\t}\n\n\tcompileTemplateCalls(classGen, methodGen, ihLoop, min, max);\n\n\tfinal TestSeq elemTest = _testSeq[DTM.ELEMENT_NODE];\n\tInstructionHandle ihElem = ihRecurse;\n\tif (elemTest != null) {\n\t    ihElem = elemTest.compile(classGen, methodGen, ihLoop);\n\t}\n\n\tfinal TestSeq attrTest = _testSeq[DTM.ATTRIBUTE_NODE];\n\tInstructionHandle ihAttr = ihLoop;\n\tif (attrTest != null) {\n\t    ihAttr = attrTest.compile(classGen, methodGen, ihAttr);\n\t}\n\n\tInstructionList ilKey = null;\n\tif (_idxTestSeq != null) {\n\t    loop.setTarget(_idxTestSeq.compile(classGen, methodGen, body.getStart()));\n\t    ilKey = _idxTestSeq.getInstructionList();\n\t}\n\telse {\n\t    loop.setTarget(body.getStart());\n\t}\n\n\tif (_childNodeTestSeq != null) {\n\t    double nodePrio = _childNodeTestSeq.getPriority();\n\t    int    nodePos  = _childNodeTestSeq.getPosition();\n\t    double elemPrio = (0 - Double.MAX_VALUE);\n\t    int    elemPos  = Integer.MIN_VALUE;\n\n\t    if (elemTest != null) {\n\t\telemPrio = elemTest.getPriority();\n\t\telemPos  = elemTest.getPosition();\n\t    }\n\n\t    if (elemPrio == Double.NaN || elemPrio < nodePrio || \n\t\t(elemPrio == nodePrio && elemPos < nodePos)) \n\t    {\n\t\tihElem = _childNodeTestSeq.compile(classGen, methodGen, ihLoop);\n\t    }\n\n\t    final TestSeq textTest = _testSeq[DTM.TEXT_NODE];\n\t    double textPrio = (0 - Double.MAX_VALUE);\n\t    int    textPos  = Integer.MIN_VALUE;\n\n\t    if (textTest != null) {\n\t\ttextPrio = textTest.getPriority();\n\t\ttextPos  = textTest.getPosition();\n\t    }\n\n\t    if (textPrio == Double.NaN || textPrio < nodePrio ||\n\t        (textPrio == nodePrio && textPos < nodePos)) \n\t    {\n\t\tihText = _childNodeTestSeq.compile(classGen, methodGen, ihLoop);\n\t\t_testSeq[DTM.TEXT_NODE] = _childNodeTestSeq;\n\t    }\n\t}\n\n\tInstructionHandle elemNamespaceHandle = ihElem;\n\tInstructionList nsElem = compileNamespaces(classGen, methodGen,\n\t\t\t\t\t\t   isNamespace, isAttribute,\n\t\t\t\t\t\t   false, ihElem);\n\tif (nsElem != null) elemNamespaceHandle = nsElem.getStart();\n\n\tInstructionList nsAttr = compileNamespaces(classGen, methodGen,\n\t\t\t\t\t\t   isNamespace, isAttribute,\n\t\t\t\t\t\t   true, ihAttr);\n\tInstructionHandle attrNamespaceHandle = ihAttr;\n\tif (nsAttr != null) attrNamespaceHandle = nsAttr.getStart();\n\n\tfinal InstructionHandle[] targets = new InstructionHandle[types.length];\n\tfor (int i = DTM.NTYPES; i < targets.length; i++) {\n\t    final TestSeq testSeq = _testSeq[i];\n\t    if (isNamespace[i]) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = attrNamespaceHandle;\n\t\telse\n\t\t    targets[i] = elemNamespaceHandle;\n\t    }\n\t    else if (testSeq != null) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t attrNamespaceHandle);\n\t\telse{\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t elemNamespaceHandle);\n\t    }\n\t    \n\t\ttargets[i] = ihLoop;\n\t    }\n\t}\n\n\ttargets[DTM.ROOT_NODE] = _rootPattern != null\n\t    ? getTemplateInstructionHandle(_rootPattern.getTemplate())\n\t    : ihRecurse;\n\ttargets[DTM.DOCUMENT_NODE] = _rootPattern != null\n\t    ? getTemplateInstructionHandle(_rootPattern.getTemplate()): ihRecurse;\n\t\n\ttargets[DTM.TEXT_NODE] = _testSeq[DTM.TEXT_NODE] != null\n\t    ? _testSeq[DTM.TEXT_NODE].compile(classGen, methodGen, ihText)\n\t    : ihText;\n\n\ttargets[DTM.NAMESPACE_NODE] = ihLoop;\n\n\ttargets[DTM.ELEMENT_NODE] = elemNamespaceHandle;\n\n\ttargets[DTM.ATTRIBUTE_NODE] = attrNamespaceHandle;\n\n\tInstructionHandle ihPI = ihLoop;\n\tif (_childNodeTestSeq != null) ihPI = ihElem;\n\tif (_testSeq[DTM.PROCESSING_INSTRUCTION_NODE] != null) {\n\t    targets[DTM.PROCESSING_INSTRUCTION_NODE] =\n\t\t_testSeq[DTM.PROCESSING_INSTRUCTION_NODE].\n\t\tcompile(classGen, methodGen, ihPI);\n\t}\n\telse {\n\t    targets[DTM.PROCESSING_INSTRUCTION_NODE] = ihPI;\n\t}\n\t\n\tInstructionHandle ihComment = ihLoop;\n\tif (_childNodeTestSeq != null) ihComment = ihElem;\n\ttargets[DTM.COMMENT_NODE] = _testSeq[DTM.COMMENT_NODE] != null\n\t    ? _testSeq[DTM.COMMENT_NODE].compile(classGen, methodGen, ihComment)\n\t    : ihComment;\n\t    \n\ttargets[DTM.CDATA_SECTION_NODE] = ihLoop;\n\n\ttargets[DTM.DOCUMENT_FRAGMENT_NODE] = ihLoop;\n\t\n\ttargets[DTM.DOCUMENT_TYPE_NODE] = ihLoop;\n\n\ttargets[DTM.ENTITY_NODE] = ihLoop;\n\n\ttargets[DTM.ENTITY_REFERENCE_NODE] = ihLoop;\n\t\n\ttargets[DTM.NOTATION_NODE] = ihLoop;\n\n\n\n\tfor (int i = DTM.NTYPES; i < targets.length; i++) {\n\t    final TestSeq testSeq = _testSeq[i];\n\t    if ((testSeq == null) || (isNamespace[i])) {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = attrNamespaceHandle;\n\t\telse\n\t\t    targets[i] = elemNamespaceHandle;\n\t    }\n\t    else {\n\t\tif (isAttribute[i])\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t attrNamespaceHandle);\n\t\telse\n\t\t    targets[i] = testSeq.compile(classGen, methodGen,\n\t\t\t\t\t\t elemNamespaceHandle);\n\t    }\n\t}\n\n\tif (ilKey != null) body.insert(ilKey);\n\n\tfinal int getType = cpg.addInterfaceMethodref(DOM_INTF,\n\t\t\t\t\t\t      \"getExpandedTypeID\",\n                                                      \"(I)I\");\n\tbody.append(methodGen.loadDOM());\n\tbody.append(new ILOAD(_currentIndex));\n\tbody.append(new INVOKEINTERFACE(getType, 2));\n\n\tInstructionHandle disp = body.append(new SWITCH(types,targets,ihLoop));\n\n\tappendTestSequences(body);\n\tappendTemplateCode(body);\n\n\tif (nsElem != null) body.append(nsElem);\n\tif (nsAttr != null) body.append(nsAttr);\n\n\tbody.append(ilRecurse);\n\tbody.append(ilText);\n\n\tmainIL.append(new GOTO_W(ihLoop));\n\tmainIL.append(body);\n\tmainIL.append(ilLoop);\n\n\tpeepHoleOptimization(methodGen);\n\tmethodGen.stripAttributes(true);\n\t\n\tmethodGen.setMaxLocals();\n\tmethodGen.setMaxStack();\n\tmethodGen.removeNOPs();\n\tclassGen.addMethod(methodGen.getMethod());\n\n\t_templates = oldTemplates;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "COND_EXPR", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49], [0, 50], [0, 51], [0, 52], [0, 53], [0, 54], [0, 55], [0, 56], [0, 57], [0, 58], [0, 59], [0, 60], [0, 61], [0, 62], [0, 63], [0, 64], [0, 65], [0, 66], [0, 67], [0, 68], [1, 69], [2, 70], [0, 71], [0, 72], [0, 73], [0, 74], [0, 75], [5, 76], [6, 77], [0, 78], [0, 79], [0, 80], [0, 81], [0, 82], [0, 83], [0, 84], [7, 85], [9, 86], [10, 87], [0, 88], [0, 89], [0, 90], [0, 91], [0, 92], [0, 93], [12, 94], [14, 95], [17, 96], [20, 97], [21, 98], [23, 99], [26, 100], [0, 101], [29, 102], [32, 103], [0, 104], [0, 105], [0, 106], [0, 107], [0, 108], [0, 109], [0, 110], [0, 111], [0, 112], [0, 113], [0, 114], [0, 115], [0, 116], [0, 117], [0, 118], [48, 119], [0, 120], [0, 121], [0, 122], [0, 123], [0, 124], [0, 125], [0, 126], [58, 127], [62, 128], [66, 129], [1, 130], [69, 131], [2, 132], [70, 133], [3, 134], [73, 135], [74, 136], [75, 137], [4, 138], [5, 139], [76, 140], [6, 141], [6, 142], [84, 143], [7, 144], [85, 145], [86, 146], [10, 147], [87, 148], [91, 149], [92, 150], [93, 151], [12, 152], [12, 153], [14, 154], [95, 155], [16, 156], [17, 157], [96, 158], [18, 159], [20, 160], [20, 161], [20, 162], [20, 163], [20, 164], [20, 165], [20, 166], [20, 167], [20, 168], [20, 169], [20, 170], [97, 171], [98, 172], [22, 173], [99, 174], [100, 175], [29, 176], [102, 177], [34, 178], [35, 179], [36, 180], [37, 181], [38, 182], [39, 183], [40, 184], [104, 185], [106, 186], [107, 187], [41, 188], [42, 189], [109, 190], [110, 191], [111, 192], [44, 193], [45, 194], [115, 195], [116, 196], [117, 197], [48, 198], [48, 199], [48, 200], [49, 201], [120, 202], [121, 203], [123, 204], [124, 205], [125, 206], [126, 207], [51, 208], [52, 209], [53, 210], [134, 211], [135, 212], [138, 213], [138, 214], [141, 215], [143, 216], [9, 217], [9, 218], [149, 219], [150, 220], [150, 221], [151, 222], [151, 223], [152, 224], [154, 225], [156, 226], [157, 227], [159, 228], [160, 229], [161, 230], [165, 231], [166, 232], [21, 233], [21, 234], [21, 235], [23, 236], [26, 237], [29, 238], [29, 239], [29, 240], [32, 241], [32, 242], [33, 243], [183, 244], [184, 245], [191, 246], [191, 247], [193, 248], [193, 249], [193, 250], [193, 251], [46, 252], [47, 253], [198, 254], [122, 255], [210, 256], [141, 257], [141, 258], [215, 259], [143, 260], [216, 261], [149, 262], [219, 263], [220, 264], [221, 265], [222, 266], [223, 267], [224, 268], [152, 269], [229, 270], [229, 271], [230, 272], [163, 273], [231, 274], [231, 275], [232, 276], [168, 277], [169, 278], [170, 279], [233, 280], [234, 281], [235, 282], [236, 283], [237, 284], [238, 285], [239, 286], [243, 287], [244, 288], [245, 289], [250, 290], [112, 291], [113, 292], [114, 293], [115, 294], [116, 295], [117, 296], [198, 297], [254, 298], [254, 299], [199, 300], [259, 301], [218, 302], [224, 303], [268, 304], [160, 305], [160, 306], [270, 307], [270, 308], [271, 309], [271, 310], [161, 311], [161, 312], [273, 313], [165, 314], [274, 315], [274, 316], [275, 317], [275, 318], [166, 319], [166, 320], [277, 321], [282, 322], [176, 323], [290, 324], [290, 325], [200, 326], [257, 327], [257, 328], [258, 329], [258, 330], [224, 331], [269, 332], [269, 333], [306, 334], [311, 335], [312, 336], [314, 337], [319, 338], [320, 339], [238, 340], [239, 341], [327, 342], [328, 343], [303, 344], [303, 345], [344, 346], [345, 347], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 0], [52, 0], [53, 0], [54, 0], [55, 0], [56, 0], [57, 0], [58, 0], [59, 0], [60, 0], [61, 0], [62, 0], [63, 0], [64, 0], [65, 0], [66, 0], [67, 0], [68, 0], [69, 1], [70, 2], [71, 0], [72, 0], [73, 0], [74, 0], [75, 0], [76, 5], [77, 6], [78, 0], [79, 0], [80, 0], [81, 0], [82, 0], [83, 0], [84, 0], [85, 7], [86, 9], [87, 10], [88, 0], [89, 0], [90, 0], [91, 0], [92, 0], [93, 0], [94, 12], [95, 14], [96, 17], [97, 20], [98, 21], [99, 23], [100, 26], [101, 0], [102, 29], [103, 32], [104, 0], [105, 0], [106, 0], [107, 0], [108, 0], [109, 0], [110, 0], [111, 0], [112, 0], [113, 0], [114, 0], [115, 0], [116, 0], [117, 0], [118, 0], [119, 48], [120, 0], [121, 0], [122, 0], [123, 0], [124, 0], [125, 0], [126, 0], [127, 58], [128, 62], [129, 66], [130, 1], [131, 69], [132, 2], [133, 70], [134, 3], [135, 73], [136, 74], [137, 75], [138, 4], [139, 5], [140, 76], [141, 6], [142, 6], [143, 84], [144, 7], [145, 85], [146, 86], [147, 10], [148, 87], [149, 91], [150, 92], [151, 93], [152, 12], [153, 12], [154, 14], [155, 95], [156, 16], [157, 17], [158, 96], [159, 18], [160, 20], [161, 20], [162, 20], [163, 20], [164, 20], [165, 20], [166, 20], [167, 20], [168, 20], [169, 20], [170, 20], [171, 97], [172, 98], [173, 22], [174, 99], [175, 100], [176, 29], [177, 102], [178, 34], [179, 35], [180, 36], [181, 37], [182, 38], [183, 39], [184, 40], [185, 104], [186, 106], [187, 107], [188, 41], [189, 42], [190, 109], [191, 110], [192, 111], [193, 44], [194, 45], [195, 115], [196, 116], [197, 117], [198, 48], [199, 48], [200, 48], [201, 49], [202, 120], [203, 121], [204, 123], [205, 124], [206, 125], [207, 126], [208, 51], [209, 52], [210, 53], [211, 134], [212, 135], [213, 138], [214, 138], [215, 141], [216, 143], [217, 9], [218, 9], [219, 149], [220, 150], [221, 150], [222, 151], [223, 151], [224, 152], [225, 154], [226, 156], [227, 157], [228, 159], [229, 160], [230, 161], [231, 165], [232, 166], [233, 21], [234, 21], [235, 21], [236, 23], [237, 26], [238, 29], [239, 29], [240, 29], [241, 32], [242, 32], [243, 33], [244, 183], [245, 184], [246, 191], [247, 191], [248, 193], [249, 193], [250, 193], [251, 193], [252, 46], [253, 47], [254, 198], [255, 122], [256, 210], [257, 141], [258, 141], [259, 215], [260, 143], [261, 216], [262, 149], [263, 219], [264, 220], [265, 221], [266, 222], [267, 223], [268, 224], [269, 152], [270, 229], [271, 229], [272, 230], [273, 163], [274, 231], [275, 231], [276, 232], [277, 168], [278, 169], [279, 170], [280, 233], [281, 234], [282, 235], [283, 236], [284, 237], [285, 238], [286, 239], [287, 243], [288, 244], [289, 245], [290, 250], [291, 112], [292, 113], [293, 114], [294, 115], [295, 116], [296, 117], [297, 198], [298, 254], [299, 254], [300, 199], [301, 259], [302, 218], [303, 224], [304, 268], [305, 160], [306, 160], [307, 270], [308, 270], [309, 271], [310, 271], [311, 161], [312, 161], [313, 273], [314, 165], [315, 274], [316, 274], [317, 275], [318, 275], [319, 166], [320, 166], [321, 277], [322, 282], [323, 176], [324, 290], [325, 290], [326, 200], [327, 257], [328, 257], [329, 258], [330, 258], [331, 224], [332, 269], [333, 269], [334, 306], [335, 311], [336, 312], [337, 314], [338, 319], [339, 320], [340, 238], [341, 239], [342, 327], [343, 328], [344, 303], [345, 303], [346, 344], [347, 345], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347]]}, {"function_name": "peepHoleOptimization", "code": "    private void peepHoleOptimization(MethodGenerator methodGen) {\n    InstructionList il = methodGen.getInstructionList();\n    InstructionFinder find = new InstructionFinder(il);\n\tInstructionHandle ih;\n\tString pattern;\n\n\tpattern = \"`ALOAD'`POP'`Instruction'\";\n\tfor(Iterator iter=find.search(pattern); iter.hasNext();){\n\t    InstructionHandle[] match = (InstructionHandle[])iter.next();\n\t    try {\n\t\tif ((!match[0].hasTargeters()) && (!match[1].hasTargeters())) {\n                    il.delete(match[0], match[1]);\n                }\n\t    }\n\t    catch (TargetLostException e) {\n            }\n\t}\n\tpattern = \"`ILOAD'`ALOAD'`SWAP'`Instruction'\";\n\tfor(Iterator iter=find.search(pattern); iter.hasNext();){\n            InstructionHandle[] match = (InstructionHandle[])iter.next();\n            try {\n                org.apache.bcel.generic.Instruction iload;\n                org.apache.bcel.generic.Instruction aload;\n                if ((!match[0].hasTargeters()) &&\n                    (!match[1].hasTargeters()) &&\n                    (!match[2].hasTargeters())) {\n                    iload = match[0].getInstruction();\n                    aload = match[1].getInstruction();\n                    il.insert(match[0], aload);\n                    il.insert(match[0], iload);\n                    il.delete(match[0], match[2]);\n                }\n            }\n            catch (TargetLostException e) {\n            }\n        }\n        \n\tpattern = \"`ALOAD_1'`ALOAD_1'`Instruction'\";\n        for(Iterator iter=find.search(pattern); iter.hasNext();){\n            InstructionHandle[] match = (InstructionHandle[])iter.next();\n            try {\n\t        org.apache.bcel.generic.Instruction iload;\n                org.apache.bcel.generic.Instruction aload;\n                if ((!match[0].hasTargeters()) && (!match[1].hasTargeters())) {\n                    il.insert(match[1], new DUP());\n                    il.delete(match[1]);", "ast_nodes": ["FUNC_DECL", "LOOP", "LOOP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CATCH", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [2, 11], [0, 12], [3, 13], [0, 14], [1, 15], [1, 16], [10, 17], [2, 18], [2, 19], [12, 20], [3, 21], [3, 22], [14, 23], [6, 24], [7, 25], [15, 26], [15, 27], [15, 28], [15, 29], [1, 30], [18, 31], [18, 32], [18, 33], [18, 34], [2, 35], [21, 36], [21, 37], [3, 38], [27, 39], [32, 40], [37, 41], [16, 42], [40, 43], [19, 44], [22, 45], [27, 46], [27, 47], [32, 48], [32, 49], [32, 50], [32, 51], [32, 52], [37, 53], [47, 54], [51, 55], [52, 56], [46, 57], [47, 58], [48, 59], [48, 60], [49, 61], [50, 62], [51, 63], [52, 64], [53, 65], [53, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 2], [12, 0], [13, 3], [14, 0], [15, 1], [16, 1], [17, 10], [18, 2], [19, 2], [20, 12], [21, 3], [22, 3], [23, 14], [24, 6], [25, 7], [26, 15], [27, 15], [28, 15], [29, 15], [30, 1], [31, 18], [32, 18], [33, 18], [34, 18], [35, 2], [36, 21], [37, 21], [38, 3], [39, 27], [40, 32], [41, 37], [42, 16], [43, 40], [44, 19], [45, 22], [46, 27], [47, 27], [48, 32], [49, 32], [50, 32], [51, 32], [52, 32], [53, 37], [54, 47], [55, 51], [56, 52], [57, 46], [58, 47], [59, 48], [60, 48], [61, 49], [62, 50], [63, 51], [64, 52], [65, 53], [66, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "getTemplateInstructionHandle", "code": "    public InstructionHandle getTemplateInstructionHandle(Template template) {\n\treturn (InstructionHandle)_templateIHs.get(template);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAttributeName", "code": "    private static boolean isAttributeName(String qname) {\n\tfinal int col = qname.lastIndexOf(':') + 1;\n\treturn (qname.charAt(col) == '@');", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [7, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 7], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isNamespaceName", "code": "    private static boolean isNamespaceName(String qname) {\n\tfinal int col = qname.lastIndexOf(':');\n\treturn (col > -1 && qname.charAt(qname.length()-1) == '*');", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [5, 8], [5, 9], [6, 10], [7, 11], [9, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 5], [9, 5], [10, 6], [11, 7], [12, 9], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "Mode", "code": "    public Mode(QName name, Stylesheet stylesheet, String suffix) {\n\t_name = name;\n\t_stylesheet = stylesheet;\n\t_methodName = APPLY_TEMPLATES + suffix;\n\t_templates = new Vector();\n\t_patternGroups = new Vector[32];", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [5, 9], [6, 10], [4, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 5], [10, 6], [11, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "xalan-2.6-7542", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/trax/DOM2TO.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.DOM2TO", "code": "public class DOM2TO implements XMLReader, Locator {\n\n    private final static String EMPTYSTRING = \"\";\n    private static final String XMLNS_PREFIX = \"xmlns\";\n\n    /**\n     * A reference to the DOM to be traversed.\n     */\n    private Node _dom;\n\n    /**\n     * A reference to the output handler receiving the events.\n     */\n    private SerializationHandler _handler;\n\n    public DOM2TO(Node root, SerializationHandler handler) {\n\t_dom = root;\n\t_handler = handler;\n    }\n\n    public ContentHandler getContentHandler() { \n\treturn null;\n    }\n\n    public void setContentHandler(ContentHandler handler) {\n    }\n\n    public void parse(InputSource unused) throws IOException, SAXException {\n        parse(_dom);\n    }\n\n    public void parse() throws IOException, SAXException {\n\tif (_dom != null) {\n\t    boolean isIncomplete = \n\t\t(_dom.getNodeType() != org.w3c.dom.Node.DOCUMENT_NODE);\n\n\t    if (isIncomplete) {\n\t\t_handler.startDocument();\n\t\tparse(_dom);\n\t\t_handler.endDocument();\n\t    }\n\t    else {\n\t\tparse(_dom);\n\t    }\n\t}\n    }\n\n    /**\n     * Traverse the DOM and generate TO events for a handler. Notice that \n     * we need to handle implicit namespace declarations too.\n     */\n    private void parse(Node node) \n\tthrows IOException, SAXException \n    {\n \tif (node == null) return;\n\n        switch (node.getNodeType()) {\n\tcase Node.DOCUMENT_TYPE_NODE :\n\tcase Node.ENTITY_NODE :\n\tcase Node.ENTITY_REFERENCE_NODE:\n\tcase Node.NOTATION_NODE :\n\t    break;\n\tcase Node.CDATA_SECTION_NODE:\n\t    _handler.startCDATA();\n\t    _handler.characters(node.getNodeValue());\n\t    _handler.endCDATA();\n\t    break;\n\n\t    _handler.comment(node.getNodeValue());\n\t    break;\n\n\tcase Node.DOCUMENT_NODE:\n\t    _handler.startDocument();\n\t    Node next = node.getFirstChild();\n\t    while (next != null) {\n\t\tparse(next);\n\t\tnext = next.getNextSibling();\n\t    }\n\t    _handler.endDocument();\n\t    break;\n\n\tcase Node.DOCUMENT_FRAGMENT_NODE:\n\t    next = node.getFirstChild();\n\t    while (next != null) {\n\t\tparse(next);\n\t\tnext = next.getNextSibling();\n\t    }\n\t    break;\n\n\tcase Node.ELEMENT_NODE:\n\t    final String qname = node.getNodeName();\n\t    _handler.startElement(null, null, qname);\n\n\t    String prefix;\n\t    final NamedNodeMap map = node.getAttributes();\n\t    final int length = map.getLength();\n\n            NamespaceMappings nm = new NamespaceMappings();\n\t    for (int i = 0; i < length; i++) {\n\t\tint colon;\n\t\tfinal Node attr = map.item(i);\n\t\tfinal String qnameAttr = attr.getNodeName();\n\n\t\tif (qnameAttr.startsWith(XMLNS_PREFIX)) {\n\t\t    final String uriAttr = attr.getNodeValue();\n\t\t    colon = qnameAttr.lastIndexOf(':');\n\t\t    prefix = (colon > 0) ? qnameAttr.substring(colon + 1) \n\t\t\t: EMPTYSTRING;\n\t\t    _handler.namespaceAfterStartElement(prefix, uriAttr);\n\t\t}\n\t\telse {\n\t\t    final String uriAttr = attr.getNamespaceURI();\n\t\t    if (uriAttr != null && !uriAttr.equals(EMPTYSTRING) ) {\t\n\t\t\tcolon = qnameAttr.lastIndexOf(':');\n                           \n                        String newPrefix = nm.lookupPrefix(uriAttr);\n                        if (newPrefix == null) \n                            newPrefix = nm.generateNextPrefix();\n\t\t\tprefix = (colon > 0) ? qnameAttr.substring(0, colon) \n\t\t\t    : newPrefix;\n\t\t\t_handler.namespaceAfterStartElement(prefix, uriAttr);\n\t\t        _handler.addAttribute((prefix + \":\" + qnameAttr)\n                            , attr.getNodeValue());\n\t\t    } else {\n                         _handler.addAttribute(qnameAttr, attr.getNodeValue());\n                    }\n                }\n\t    }\n\n\t    final String uri = node.getNamespaceURI();\n            final String localName = node.getLocalName();\n\n\t    if (uri != null) {\t\n\t\tfinal int colon = qname.lastIndexOf(':');\n\t\tprefix = (colon > 0) ? qname.substring(0, colon) : EMPTYSTRING;\n\t\t_handler.namespaceAfterStartElement(prefix, uri);\n\t    }else {\n                  if (uri == null  && localName != null) {\n \t\t     prefix = EMPTYSTRING;\n\t\t     _handler.namespaceAfterStartElement(prefix, EMPTYSTRING);\n                 }\n            }\n\n\t    next = node.getFirstChild();\n\t    while (next != null) {\n\t\tparse(next);\n\t\tnext = next.getNextSibling();\n\t    }\n\n\t    _handler.endElement(qname);\n\t    break;\n\n\tcase Node.PROCESSING_INSTRUCTION_NODE:\n\t    _handler.processingInstruction(node.getNodeName(),\n\t\t\t\t\t   node.getNodeValue());\n\t    break;\n\n\tcase Node.TEXT_NODE:\n\t    _handler.characters(node.getNodeValue());\n\t    break;\n\t}\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public DTDHandler getDTDHandler() { \n\treturn null;\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public ErrorHandler getErrorHandler() {\n\treturn null;\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public boolean getFeature(String name) throws SAXNotRecognizedException,\n\tSAXNotSupportedException\n    {\n\treturn false;\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setFeature(String name, boolean value) throws \n\tSAXNotRecognizedException, SAXNotSupportedException \n    {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void parse(String sysId) throws IOException, SAXException {\n\tthrow new IOException(\"This method is not yet implemented.\");\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setDTDHandler(DTDHandler handler) throws NullPointerException {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setEntityResolver(EntityResolver resolver) throws \n\tNullPointerException \n    {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public EntityResolver getEntityResolver() {\n\treturn null;\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setErrorHandler(ErrorHandler handler) throws \n\tNullPointerException\n    {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public void setProperty(String name, Object value) throws\n\tSAXNotRecognizedException, SAXNotSupportedException {\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public Object getProperty(String name) throws SAXNotRecognizedException,\n\tSAXNotSupportedException\n    {\n\treturn null;\n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public int getColumnNumber() { \n\treturn 0; \n    }\n    \n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public int getLineNumber() { \n\treturn 0; \n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public String getPublicId() { \n\treturn null; \n    }\n\n    /**\n     * This class is only used internally so this method should never \n     * be called.\n     */\n    public String getSystemId() { \n\treturn null; \n    }\n\n    private String getNodeTypeFromCode(short code) {\n\tString retval = null;\n\tswitch (code) {\n\tcase Node.ATTRIBUTE_NODE : \n\t    retval = \"ATTRIBUTE_NODE\"; break; \n\tcase Node.CDATA_SECTION_NODE :\n\t    retval = \"CDATA_SECTION_NODE\"; break; \n\tcase Node.COMMENT_NODE :\n\t    retval = \"COMMENT_NODE\"; break; \n\tcase Node.DOCUMENT_FRAGMENT_NODE :\n\t    retval = \"DOCUMENT_FRAGMENT_NODE\"; break; \n\tcase Node.DOCUMENT_NODE :\n\t    retval = \"DOCUMENT_NODE\"; break; \n\tcase Node.DOCUMENT_TYPE_NODE :\n\t    retval = \"DOCUMENT_TYPE_NODE\"; break; \n\tcase Node.ELEMENT_NODE :\n\t    retval = \"ELEMENT_NODE\"; break; \n\tcase Node.ENTITY_NODE :\n\t    retval = \"ENTITY_NODE\"; break; \n\tcase Node.ENTITY_REFERENCE_NODE :\n\t    retval = \"ENTITY_REFERENCE_NODE\"; break; \n\tcase Node.NOTATION_NODE :\n\t    retval = \"NOTATION_NODE\"; break; \n\tcase Node.PROCESSING_INSTRUCTION_NODE :\n\t    retval = \"PROCESSING_INSTRUCTION_NODE\"; break; \n\tcase Node.TEXT_NODE:\n\t    retval = \"TEXT_NODE\"; break; \n        }\n\treturn retval;", "functions": [{"function_name": "getContentHandler", "code": "    public ContentHandler getContentHandler() { \n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setContentHandler", "code": "    public void setContentHandler(ContentHandler handler) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parse", "code": "    public void parse(InputSource unused) throws IOException, SAXException {\n        parse(_dom);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parse", "code": "    public void parse() throws IOException, SAXException {\n\tif (_dom != null) {\n\t    boolean isIncomplete = \n\t\t(_dom.getNodeType() != org.w3c.dom.Node.DOCUMENT_NODE);\n\n\t    if (isIncomplete) {\n\t\t_handler.startDocument();\n\t\tparse(_dom);\n\t\t_handler.endDocument();\n\t    }\n\t    else {\n\t\tparse(_dom);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [4, 6], [3, 7], [3, 8], [3, 9], [3, 10], [6, 11], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 4], [7, 3], [8, 3], [9, 3], [10, 3], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "parse", "code": "    private void parse(Node node) \n\tthrows IOException, SAXException \n    {\n \tif (node == null) return;\n\n        switch (node.getNodeType()) {\n\tcase Node.DOCUMENT_TYPE_NODE :\n\tcase Node.ENTITY_NODE :\n\tcase Node.ENTITY_REFERENCE_NODE:\n\tcase Node.NOTATION_NODE :\n\t    break;\n\tcase Node.CDATA_SECTION_NODE:\n\t    _handler.startCDATA();\n\t    _handler.characters(node.getNodeValue());\n\t    _handler.endCDATA();\n\t    break;\n\n\t    _handler.comment(node.getNodeValue());\n\t    break;\n\n\tcase Node.DOCUMENT_NODE:\n\t    _handler.startDocument();\n\t    Node next = node.getFirstChild();\n\t    while (next != null) {\n\t\tparse(next);\n\t\tnext = next.getNextSibling();\n\t    }\n\t    _handler.endDocument();\n\t    break;\n\n\tcase Node.DOCUMENT_FRAGMENT_NODE:\n\t    next = node.getFirstChild();\n\t    while (next != null) {\n\t\tparse(next);\n\t\tnext = next.getNextSibling();\n\t    }\n\t    break;\n\n\tcase Node.ELEMENT_NODE:\n\t    final String qname = node.getNodeName();\n\t    _handler.startElement(null, null, qname);\n\n\t    String prefix;\n\t    final NamedNodeMap map = node.getAttributes();\n\t    final int length = map.getLength();\n\n            NamespaceMappings nm = new NamespaceMappings();\n\t    for (int i = 0; i < length; i++) {\n\t\tint colon;\n\t\tfinal Node attr = map.item(i);\n\t\tfinal String qnameAttr = attr.getNodeName();\n\n\t\tif (qnameAttr.startsWith(XMLNS_PREFIX)) {\n\t\t    final String uriAttr = attr.getNodeValue();\n\t\t    colon = qnameAttr.lastIndexOf(':');\n\t\t    prefix = (colon > 0) ? qnameAttr.substring(colon + 1) \n\t\t\t: EMPTYSTRING;\n\t\t    _handler.namespaceAfterStartElement(prefix, uriAttr);\n\t\t}\n\t\telse {\n\t\t    final String uriAttr = attr.getNamespaceURI();\n\t\t    if (uriAttr != null && !uriAttr.equals(EMPTYSTRING) ) {\t\n\t\t\tcolon = qnameAttr.lastIndexOf(':');\n                           \n                        String newPrefix = nm.lookupPrefix(uriAttr);\n                        if (newPrefix == null) \n                            newPrefix = nm.generateNextPrefix();\n\t\t\tprefix = (colon > 0) ? qnameAttr.substring(0, colon) \n\t\t\t    : newPrefix;\n\t\t\t_handler.namespaceAfterStartElement(prefix, uriAttr);\n\t\t        _handler.addAttribute((prefix + \":\" + qnameAttr)\n                            , attr.getNodeValue());\n\t\t    } else {\n                         _handler.addAttribute(qnameAttr, attr.getNodeValue());\n                    }\n                }\n\t    }\n\n\t    final String uri = node.getNamespaceURI();\n            final String localName = node.getLocalName();\n\n\t    if (uri != null) {\t\n\t\tfinal int colon = qname.lastIndexOf(':');\n\t\tprefix = (colon > 0) ? qname.substring(0, colon) : EMPTYSTRING;\n\t\t_handler.namespaceAfterStartElement(prefix, uri);\n\t    }else {\n                  if (uri == null  && localName != null) {\n \t\t     prefix = EMPTYSTRING;\n\t\t     _handler.namespaceAfterStartElement(prefix, EMPTYSTRING);\n                 }\n            }\n\n\t    next = node.getFirstChild();\n\t    while (next != null) {\n\t\tparse(next);\n\t\tnext = next.getNextSibling();\n\t    }\n\n\t    _handler.endElement(qname);\n\t    break;\n\n\tcase Node.PROCESSING_INSTRUCTION_NODE:\n\t    _handler.processingInstruction(node.getNodeName(),\n\t\t\t\t\t   node.getNodeValue());\n\t    break;\n\n\tcase Node.TEXT_NODE:\n\t    _handler.characters(node.getNodeValue());\n\t    break;", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BREAK_CONTINUE", "LOOP", "BREAK_CONTINUE", "LOOP", "VAR_DECL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "COND_EXPR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [6, 28], [1, 29], [1, 30], [1, 31], [10, 32], [1, 33], [11, 34], [14, 35], [1, 36], [21, 37], [1, 38], [1, 39], [23, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45], [29, 46], [30, 47], [30, 48], [32, 49], [33, 50], [11, 51], [11, 52], [34, 53], [12, 54], [13, 55], [14, 56], [14, 57], [14, 58], [14, 59], [15, 60], [16, 61], [17, 62], [36, 63], [36, 64], [19, 65], [37, 66], [38, 67], [40, 68], [24, 69], [42, 70], [44, 71], [10, 72], [10, 73], [51, 74], [11, 75], [11, 76], [56, 77], [14, 78], [21, 79], [21, 80], [23, 81], [23, 82], [72, 83], [74, 84], [74, 85], [76, 86], [52, 87], [56, 88], [56, 89], [56, 90], [57, 91], [58, 92], [79, 93], [81, 94], [51, 95], [51, 96], [84, 97], [85, 98], [86, 99], [86, 100], [87, 101], [88, 102], [56, 103], [56, 104], [56, 105], [99, 106], [100, 107], [88, 108], [88, 109], [102, 110], [102, 111], [89, 112], [104, 113], [105, 114], [90, 115], [88, 116], [88, 117], [88, 118], [88, 119], [108, 120], [88, 121], [111, 122], [113, 123], [113, 124], [114, 125], [116, 126], [117, 127], [117, 128], [119, 129], [108, 130], [120, 131], [109, 132], [121, 133], [123, 134], [124, 135], [128, 136], [129, 137], [129, 138], [130, 139], [133, 140], [134, 141], [136, 142], [137, 143], [138, 144], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 6], [29, 1], [30, 1], [31, 1], [32, 10], [33, 1], [34, 11], [35, 14], [36, 1], [37, 21], [38, 1], [39, 1], [40, 23], [41, 1], [42, 1], [43, 1], [44, 1], [45, 1], [46, 29], [47, 30], [48, 30], [49, 32], [50, 33], [51, 11], [52, 11], [53, 34], [54, 12], [55, 13], [56, 14], [57, 14], [58, 14], [59, 14], [60, 15], [61, 16], [62, 17], [63, 36], [64, 36], [65, 19], [66, 37], [67, 38], [68, 40], [69, 24], [70, 42], [71, 44], [72, 10], [73, 10], [74, 51], [75, 11], [76, 11], [77, 56], [78, 14], [79, 21], [80, 21], [81, 23], [82, 23], [83, 72], [84, 74], [85, 74], [86, 76], [87, 52], [88, 56], [89, 56], [90, 56], [91, 57], [92, 58], [93, 79], [94, 81], [95, 51], [96, 51], [97, 84], [98, 85], [99, 86], [100, 86], [101, 87], [102, 88], [103, 56], [104, 56], [105, 56], [106, 99], [107, 100], [108, 88], [109, 88], [110, 102], [111, 102], [112, 89], [113, 104], [114, 105], [115, 90], [116, 88], [117, 88], [118, 88], [119, 88], [120, 108], [121, 88], [122, 111], [123, 113], [124, 113], [125, 114], [126, 116], [127, 117], [128, 117], [129, 119], [130, 108], [131, 120], [132, 109], [133, 121], [134, 123], [135, 124], [136, 128], [137, 129], [138, 129], [139, 130], [140, 133], [141, 134], [142, 136], [143, 137], [144, 138], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144]]}, {"function_name": "getDTDHandler", "code": "    public DTDHandler getDTDHandler() { \n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandler", "code": "    public ErrorHandler getErrorHandler() {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFeature", "code": "    public boolean getFeature(String name) throws SAXNotRecognizedException,\n\tSAXNotSupportedException\n    {\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFeature", "code": "    public void setFeature(String name, boolean value) throws ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parse", "code": "    public void parse(String sysId) throws IOException, SAXException {\n\tthrow new IOException(\"This method is not yet implemented.\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setDTDHandler", "code": "    public void setDTDHandler(DTDHandler handler) throws NullPointerException {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEntityResolver", "code": "    public void setEntityResolver(EntityResolver resolver) throws ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEntityResolver", "code": "    public EntityResolver getEntityResolver() {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setErrorHandler", "code": "    public void setErrorHandler(ErrorHandler handler) throws ", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProperty", "code": "    public void setProperty(String name, Object value) throws", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProperty", "code": "    public Object getProperty(String name) throws SAXNotRecognizedException,\n\tSAXNotSupportedException\n    {\n\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getColumnNumber", "code": "    public int getColumnNumber() { \n\treturn 0; ", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLineNumber", "code": "    public int getLineNumber() { \n\treturn 0; ", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPublicId", "code": "    public String getPublicId() { \n\treturn null; ", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemId", "code": "    public String getSystemId() { \n\treturn null; ", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNodeTypeFromCode", "code": "    private String getNodeTypeFromCode(short code) {\n\tString retval = null;\n\tswitch (code) {\n\tcase Node.ATTRIBUTE_NODE : \n\t    retval = \"ATTRIBUTE_NODE\"; break; \n\tcase Node.CDATA_SECTION_NODE :\n\t    retval = \"CDATA_SECTION_NODE\"; break; \n\tcase Node.COMMENT_NODE :\n\t    retval = \"COMMENT_NODE\"; break; \n\tcase Node.DOCUMENT_FRAGMENT_NODE :\n\t    retval = \"DOCUMENT_FRAGMENT_NODE\"; break; \n\tcase Node.DOCUMENT_NODE :\n\t    retval = \"DOCUMENT_NODE\"; break; \n\tcase Node.DOCUMENT_TYPE_NODE :\n\t    retval = \"DOCUMENT_TYPE_NODE\"; break; \n\tcase Node.ELEMENT_NODE :\n\t    retval = \"ELEMENT_NODE\"; break; \n\tcase Node.ENTITY_NODE :\n\t    retval = \"ENTITY_NODE\"; break; \n\tcase Node.ENTITY_REFERENCE_NODE :\n\t    retval = \"ENTITY_REFERENCE_NODE\"; break; \n\tcase Node.NOTATION_NODE :\n\t    retval = \"NOTATION_NODE\"; break; \n\tcase Node.PROCESSING_INSTRUCTION_NODE :\n\t    retval = \"PROCESSING_INSTRUCTION_NODE\"; break; \n\tcase Node.TEXT_NODE:\n\t    retval = \"TEXT_NODE\"; break; \n        }\n\treturn retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "VAR_DECL", "PARAM", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [2, 16], [3, 17], [2, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [2, 27], [2, 28], [2, 29], [18, 30], [19, 31], [20, 32], [21, 33], [22, 34], [23, 35], [24, 36], [25, 37], [26, 38], [27, 39], [28, 40], [29, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 2], [17, 3], [18, 2], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 18], [31, 19], [32, 20], [33, 21], [34, 22], [35, 23], [36, 24], [37, 25], [38, 26], [39, 27], [40, 28], [41, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "DOM2TO", "code": "    public DOM2TO(Node root, SerializationHandler handler) {\n\t_dom = root;\n\t_handler = handler;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.2-1698", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/model/FromType.java", "language": "java", "name": "org.apache.camel.model.FromType", "code": "@XmlRootElement(name = \"from\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class FromType {\n    @XmlAttribute\n    private String uri;\n    @XmlAttribute\n    private String ref;\n    @XmlTransient\n    private Endpoint endpoint;\n\n    public FromType() {\n    }\n\n    public FromType(String uri) {\n        setUri(uri);\n    }\n\n    public FromType(Endpoint endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    @Override\n    public String toString() {\n        return \"From[\" + getLabel() + \"]\";\n    }\n\n    public String getLabel() {\n        return description(getUri(), getRef(), getEndpoint());\n    }\n\n    public Endpoint resolveEndpoint(RouteContext context) {\n        if (endpoint == null) {\n            endpoint = context.resolveEndpoint(getUri(), getRef());\n        }\n        return endpoint;\n    }\n\n    public String getUri() {\n        return uri;\n    }\n\n    /**\n     * Sets the URI of the endpoint to use\n     * \n     * @param uri the endpoint URI to use\n     */\n    public void setUri(String uri) {\n        this.uri = uri;\n    }\n\n    public String getRef() {\n        return ref;\n    }\n\n    /**\n     * Sets the name of the endpoint within the registry (such as the Spring\n     * ApplicationContext or JNDI) to use\n     * \n     * @param ref the reference name to use\n     */\n    public void setRef(String ref) {\n        this.ref = ref;\n    }\n\n    public Endpoint getEndpoint() {\n        return endpoint;\n    }\n\n    public void setEndpoint(Endpoint endpoint) {\n        this.endpoint = endpoint;\n    }\n\n    /**\n     * Returns the endpoint URI or the name of the reference to it\n     */\n    public Object getUriOrRef() {\n        if (ObjectHelper.isNullOrBlank(uri)) {\n            return uri;\n        }\n        else if (endpoint != null) {\n            return endpoint.getEndpointUri();\n        }\n        return ref;\n    }\n\n    protected static String description(String uri, String ref, Endpoint endpoint) {\n        if (ref != null) {\n            return \"ref:\" + ref;\n        } else if (endpoint != null) {\n            return endpoint.getEndpointUri();\n        } else if (uri != null) {\n            return uri;\n        } else {\n            return \"no uri or ref supplied!\";", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"From[\" + getLabel() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getLabel", "code": "    public String getLabel() {\n        return description(getUri(), getRef(), getEndpoint());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resolveEndpoint", "code": "    public Endpoint resolveEndpoint(RouteContext context) {\n        if (endpoint == null) {\n            endpoint = context.resolveEndpoint(getUri(), getRef());\n        }\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [6, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getUri", "code": "    public String getUri() {\n        return uri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUri", "code": "    public void setUri(String uri) {\n        this.uri = uri;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRef", "code": "    public String getRef() {\n        return ref;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRef", "code": "    public void setRef(String ref) {\n        this.ref = ref;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndpoint", "code": "    public Endpoint getEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setEndpoint", "code": "    public void setEndpoint(Endpoint endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUriOrRef", "code": "    public Object getUriOrRef() {\n        if (ObjectHelper.isNullOrBlank(uri)) {\n            return uri;\n        }\n        else if (endpoint != null) {\n            return endpoint.getEndpointUri();\n        }\n        return ref;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [2, 6], [3, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 2], [7, 3], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "description", "code": "    protected static String description(String uri, String ref, Endpoint endpoint) {\n        if (ref != null) {\n            return \"ref:\" + ref;\n        } else if (endpoint != null) {\n            return endpoint.getEndpointUri();\n        } else if (uri != null) {\n            return uri;\n        } else {\n            return \"no uri or ref supplied!\";", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [1, 9], [6, 10], [7, 11], [5, 12], [8, 13], [9, 14], [7, 15], [7, 16], [11, 17], [12, 18], [14, 19], [15, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 1], [10, 6], [11, 7], [12, 5], [13, 8], [14, 9], [15, 7], [16, 7], [17, 11], [18, 12], [19, 14], [20, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "FromType", "code": "    public FromType() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FromType", "code": "    public FromType(String uri) {\n        setUri(uri);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FromType", "code": "    public FromType(Endpoint endpoint) {\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.0-3804", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/search/BufferListSet.java", "language": "java", "name": "org.gjt.sp.jedit.search.BufferListSet", "code": "public abstract class BufferListSet implements SearchFileSet\n{\n\t//{{{ getFirstFile() method\n\tpublic String getFirstFile(View view)\n\t{\n\t\tif(files == null)\n\t\t\tfiles = _getFiles();\n\n\t\tif(files == null || files.length == 0)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn files[0];\n\t} //}}}\n\n\t//{{{ getNextFile() method\n\tpublic String getNextFile(View view, String file)\n\t{\n\t\tif(files == null)\n\t\t\tfiles = _getFiles();\n\n\t\tif(files == null || files.length == 0)\n\t\t\treturn null;\n\n\t\tif(file == null)\n\t\t{\n\t\t\tfile = view.getBuffer().getPath();\n\n\t\t\tfor(int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tif(files[i].equals(file))\n\t\t\t\t\treturn file;\n\t\t\t}\n\n\t\t\treturn getFirstFile(view);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// -1 so that the last isn't checked\n\t\t\tfor(int i = 0; i < files.length - 1; i++)\n\t\t\t{\n\t\t\t\tif(files[i].equals(file))\n\t\t\t\t\treturn files[i+1];\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\t} //}}}\n\n\t//{{{ getFiles() method\n\tpublic String[] getFiles(View view)\n\t{\n\t\tif(files == null)\n\t\t\tfiles = _getFiles();\n\n\t\tif(files == null || files.length == 0)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn files;\n\t} //}}}\n\n\t//{{{ getFileCount() method\n\tpublic int getFileCount()\n\t{\n\t\tif(files == null)\n\t\t\tfiles = _getFiles();\n\n\t\tif(files == null)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn files.length;\n\t} //}}}\n\n\t//{{{ getCode() method\n\tpublic String getCode()\n\t{\n\t\t// not supported for arbitriary filesets\n\t\treturn null;\n\t} //}}}\n\n\tprotected abstract String[] _getFiles();\n\n\tprivate String[] files;", "functions": [{"function_name": "getFirstFile", "code": "\tpublic String getFirstFile(View view)\n\t{\n\t\tif(files == null)\n\t\t\tfiles = _getFiles();\n\n\t\tif(files == null || files.length == 0)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn files[0];", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [7, 12], [9, 13], [10, 14], [11, 15], [4, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 7], [13, 9], [14, 10], [15, 11], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getNextFile", "code": "\tpublic String getNextFile(View view, String file)\n\t{\n\t\tif(files == null)\n\t\t\tfiles = _getFiles();\n\n\t\tif(files == null || files.length == 0)\n\t\t\treturn null;\n\n\t\tif(file == null)\n\t\t{\n\t\t\tfile = view.getBuffer().getPath();\n\n\t\t\tfor(int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tif(files[i].equals(file))\n\t\t\t\t\treturn file;\n\t\t\t}\n\n\t\t\treturn getFirstFile(view);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// -1 so that the last isn't checked\n\t\t\tfor(int i = 0; i < files.length - 1; i++)\n\t\t\t{\n\t\t\t\tif(files[i].equals(file))\n\t\t\t\t\treturn files[i+1];\n\t\t\t}\n\n\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "LOOP", "RETURN", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [1, 10], [1, 11], [1, 12], [1, 13], [6, 14], [7, 15], [8, 16], [8, 17], [3, 18], [9, 19], [10, 20], [11, 21], [12, 22], [13, 23], [1, 24], [16, 25], [17, 26], [18, 27], [11, 28], [21, 29], [13, 30], [24, 31], [28, 32], [29, 33], [11, 34], [30, 35], [13, 36], [31, 37], [28, 38], [30, 39], [32, 40], [40, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 1], [11, 1], [12, 1], [13, 1], [14, 6], [15, 7], [16, 8], [17, 8], [18, 3], [19, 9], [20, 10], [21, 11], [22, 12], [23, 13], [24, 1], [25, 16], [26, 17], [27, 18], [28, 11], [29, 21], [30, 13], [31, 24], [32, 28], [33, 29], [34, 11], [35, 30], [36, 13], [37, 31], [38, 28], [39, 30], [40, 32], [41, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "getFiles", "code": "\tpublic String[] getFiles(View view)\n\t{\n\t\tif(files == null)\n\t\t\tfiles = _getFiles();\n\n\t\tif(files == null || files.length == 0)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn files;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [7, 12], [9, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 7], [13, 9], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFileCount", "code": "\tpublic int getFileCount()\n\t{\n\t\tif(files == null)\n\t\t\tfiles = _getFiles();\n\n\t\tif(files == null)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn files.length;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [2, 6], [4, 7], [5, 8], [2, 9], [6, 10], [9, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 2], [7, 4], [8, 5], [9, 2], [10, 6], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getCode", "code": "\tpublic String getCode()\n\t{\n\t\t// not supported for arbitriary filesets\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "_getFiles", "code": "\tprotected abstract String[] _getFiles();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "xalan-2.5-7036", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/extensions/ExtensionHandlerJavaClass.java", "language": "java", "name": "org.apache.xalan.extensions.ExtensionHandlerJavaClass", "code": "public class ExtensionHandlerJavaClass extends ExtensionHandlerJava\n{\n\n  private Class m_classObj = null;\n\n  /**\n   * Provides a default Instance for use by elements that need to call \n   * an instance method.\n   */\n\n  private Object m_defaultInstance = null;\n\n\n  /**\n   * Construct a new extension namespace handler given all the information\n   * needed. \n   * @param namespaceUri the extension namespace URI that I'm implementing\n   * @param scriptLang   language of code implementing the extension\n   * @param className    the fully qualified class name of the class\n   */\n  public ExtensionHandlerJavaClass(String namespaceUri,\n                                   String scriptLang,\n                                   String className)\n  {\n    super(namespaceUri, scriptLang, className);\n    try\n    {\n      m_classObj = getClassForName(className);\n    }\n    catch (ClassNotFoundException e)\n    {\n    }\n  }\n\n\n  /**\n   * Tests whether a certain function name is known within this namespace.\n   * Simply looks for a method with the appropriate name.  There is\n   * no information regarding the arguments to the function call or\n   * whether the method implementing the function is a static method or\n   * an instance method.\n   * @param function name of the function being tested\n   * @return true if its known, false if not.\n   */\n\n  public boolean isFunctionAvailable(String function) \n  {\n    Method[] methods = m_classObj.getMethods();\n    int nMethods = methods.length;\n    for (int i = 0; i < nMethods; i++)\n    {\n      if (methods[i].getName().equals(function))\n        return true;\n    }\n    return false;\n  }\n\n\n  /**\n   * Tests whether a certain element name is known within this namespace.\n   * Looks for a method with the appropriate name and signature.\n   * This method examines both static and instance methods.\n   * @param element name of the element being tested\n   * @return true if its known, false if not.\n   */\n\n  public boolean isElementAvailable(String element) \n  {\n    Method[] methods = m_classObj.getMethods();\n    int nMethods = methods.length;\n    for (int i = 0; i < nMethods; i++)\n    {\n      if (methods[i].getName().equals(element))\n      {\n        Class[] paramTypes = methods[i].getParameterTypes();\n        if ( (paramTypes.length == 2)\n          && paramTypes[0].isAssignableFrom(\n                                     org.apache.xalan.extensions.XSLProcessorContext.class)\n          && paramTypes[1].isAssignableFrom(org.apache.xalan.templates.ElemExtensionCall.class) )\n        {\n          return true;\n        }\n      }\n    }\n    return false;\n  }\n  \n  /**\n   * Process a call to a function in the java class represented by\n   * this <code>ExtensionHandlerJavaClass<code>.\n   * There are three possible types of calls:\n   * <pre>\n   *   Constructor:\n   *     classns:new(arg1, arg2, ...)\n   *\n   *   Static method:\n   *     classns:method(arg1, arg2, ...)\n   *\n   *   Instance method:\n   *     classns:method(obj, arg1, arg2, ...)\n   * </pre>\n   * We use the following rules to determine the type of call made:\n   * <ol type=\"1\">\n   * <li>If the function name is \"new\", call the best constructor for\n   *     class represented by the namespace URI</li>\n   * <li>If the first argument to the function is of the class specified\n   *     in the namespace or is a subclass of that class, look for the best\n   *     method of the class specified in the namespace with the specified\n   *     arguments.  Compare all static and instance methods with the correct\n   *     method name.  For static methods, use all arguments in the compare.\n   *     For instance methods, use all arguments after the first.</li>\n   * <li>Otherwise, select the best static or instance method matching\n   *     all of the arguments.  If the best method is an instance method,\n   *     call the function using a default object, creating it if needed.</li>\n   * </ol>\n   *\n   * @param funcName Function name.\n   * @param args     The arguments of the function call.\n   * @param methodKey A key that uniquely identifies this class and method call.\n   * @param exprContext The context in which this expression is being executed.\n   * @return the return value of the function evaluation.\n   * @throws TransformerException\n   */\n\n  public Object callFunction (String funcName, \n                              Vector args, \n                              Object methodKey,\n                              ExpressionContext exprContext)\n    throws TransformerException \n  {\n\n    Object[] methodArgs;\n    Object[][] convertedArgs;\n    Class[] paramTypes;\n\n    try\n    {\n\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        Constructor c = (Constructor) getFromCache(methodKey, null, methodArgs);\n        if (c != null)\n        {\n          try\n          {\n            paramTypes = c.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            return c.newInstance(convertedArgs[0]);\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        \n        c = MethodResolver.getConstructor(m_classObj, \n                                          methodArgs,\n                                          convertedArgs,\n                                          exprContext);\n        putToCache(methodKey, null, methodArgs, c);\n        return c.newInstance(convertedArgs[0]);\n      }\n\n      else\n      {\n\n        int resolveType;\n        Object targetObject = null;\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        Method m = (Method) getFromCache(methodKey, null, methodArgs);\n        if (m != null)\n        {\n          try\n          {\n            paramTypes = m.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            if (Modifier.isStatic(m.getModifiers()))\n              return m.invoke(null, convertedArgs[0]);\n            else\n            {\n              int nTargetArgs = convertedArgs[0].length;\n              if (ExpressionContext.class.isAssignableFrom(paramTypes[0]))\n                nTargetArgs--;\n              if (methodArgs.length <= nTargetArgs)\n                return m.invoke(m_defaultInstance, convertedArgs[0]);\n              else  \n              {\n                targetObject = methodArgs[0];\n                \n                if (targetObject instanceof XObject)\n                  targetObject = ((XObject) targetObject).object();\n                  \n                return m.invoke(targetObject, convertedArgs[0]);\n              }\n            }\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n\n        if (args.size() > 0)\n        {\n          targetObject = methodArgs[0];\n\n          if (targetObject instanceof XObject)\n            targetObject = ((XObject) targetObject).object();\n\n          if (m_classObj.isAssignableFrom(targetObject.getClass()))\n            resolveType = MethodResolver.DYNAMIC;\n          else\n            resolveType = MethodResolver.STATIC_AND_INSTANCE;\n        }\n        else\n        {\n          targetObject = null;\n          resolveType = MethodResolver.STATIC_AND_INSTANCE;\n        }\n\n        m = MethodResolver.getMethod(m_classObj,\n                                     funcName,\n                                     methodArgs, \n                                     convertedArgs,\n                                     exprContext,\n                                     resolveType);\n        putToCache(methodKey, null, methodArgs, m);\n\n          return m.invoke(targetObject, convertedArgs[0]);\n        {\n          if (Modifier.isStatic(m.getModifiers()))\n            return m.invoke(null, convertedArgs[0]);\n          else\n          {\n            if (null == m_defaultInstance)\n            {\n              m_defaultInstance = m_classObj.newInstance();\n            }\n            return m.invoke(m_defaultInstance, convertedArgs[0]);\n          }  \n        }\n\n      }\n    }\n    catch (InvocationTargetException ite)\n    {\n      Throwable resultException = ite;\n      Throwable targetException = ite.getTargetException();\n \n      if (targetException instanceof TransformerException)\n        throw ((TransformerException)targetException);\n      else if (targetException != null)\n        resultException = targetException;\n            \n      throw new TransformerException(resultException);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException(e);\n    }\n  }\n\n  /**\n   * Process a call to an XPath extension function\n   *\n   * @param extFunction The XPath extension function\n   * @param args The arguments of the function call.\n   * @param exprContext The context in which this expression is being executed.\n   * @return the return value of the function evaluation.\n   * @throws TransformerException\n   */\n  public Object callFunction(FuncExtFunction extFunction,\n                             Vector args,\n                             ExpressionContext exprContext)\n      throws TransformerException\n  {\n    return callFunction(extFunction.getFunctionName(), args, \n                        extFunction.getMethodKey(), exprContext);\n  }\n\n  /**\n   * Process a call to this extension namespace via an element. As a side\n   * effect, the results are sent to the TransformerImpl's result tree. \n   * We invoke the static or instance method in the class represented by\n   * by the namespace URI.  If we don't already have an instance of this class,\n   * we create one upon the first call.\n   *\n   * @param localPart      Element name's local part.\n   * @param element        The extension element being processed.\n   * @param transformer      Handle to TransformerImpl.\n   * @param stylesheetTree The compiled stylesheet tree.\n   * @param sourceTree     The root of the source tree (but don't assume\n   *                       it's a Document).\n   * @param sourceNode     The current context node.\n   * @param mode           The current mode.\n   * @param methodKey      A key that uniquely identifies this element call.\n   * @throws IOException           if loading trouble\n   * @throws TransformerException          if parsing trouble\n   */\n\n  public void processElement(String localPart,\n                             ElemTemplateElement element,\n                             TransformerImpl transformer,\n                             Stylesheet stylesheetTree,\n                             Object methodKey)\n    throws TransformerException, IOException\n  {\n    Object result = null;\n\n    Method m = (Method) getFromCache(methodKey, null, null);\n    if (null == m)\n    {\n      try\n      {\n        m = MethodResolver.getElementMethod(m_classObj, localPart);\n        if ( (null == m_defaultInstance) && !Modifier.isStatic(m.getModifiers()) )\n          m_defaultInstance = m_classObj.newInstance();\n      }\n      catch (Exception e)\n      {\n        throw new TransformerException (e.getMessage (), e);\n      }\n      putToCache(methodKey, null, null, m);\n    }\n\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, \n                                                      stylesheetTree);\n\n    try\n    {\n      result = m.invoke(m_defaultInstance, new Object[] {xpc, element});\n    }\n    catch (InvocationTargetException e)\n    {\n      Throwable targetException = e.getTargetException();\n      \n      if (targetException instanceof TransformerException)\n        throw (TransformerException)targetException;\n      else if (targetException != null)\n        throw new TransformerException (targetException.getMessage (), targetException);\n      else\n        throw new TransformerException (e.getMessage (), e);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException (e.getMessage (), e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree (stylesheetTree, result);", "functions": [{"function_name": "isFunctionAvailable", "code": "  public boolean isFunctionAvailable(String function) \n  {\n    Method[] methods = m_classObj.getMethods();\n    int nMethods = methods.length;\n    for (int i = 0; i < nMethods; i++)\n    {\n      if (methods[i].getName().equals(function))\n        return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [8, 10], [2, 11], [10, 12], [8, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 8], [11, 2], [12, 10], [13, 8], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isElementAvailable", "code": "  public boolean isElementAvailable(String element) \n  {\n    Method[] methods = m_classObj.getMethods();\n    int nMethods = methods.length;\n    for (int i = 0; i < nMethods; i++)\n    {\n      if (methods[i].getName().equals(element))\n      {\n        Class[] paramTypes = methods[i].getParameterTypes();\n        if ( (paramTypes.length == 2)\n          && paramTypes[0].isAssignableFrom(\n                                     org.apache.xalan.extensions.XSLProcessorContext.class)\n          && paramTypes[1].isAssignableFrom(org.apache.xalan.templates.ElemExtensionCall.class) )\n        {\n          return true;\n        }\n      }\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [2, 10], [8, 11], [8, 12], [8, 13], [8, 14], [11, 15], [11, 16], [15, 17], [16, 18], [15, 19], [17, 20], [12, 21], [15, 22], [17, 23], [20, 24], [17, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 2], [11, 8], [12, 8], [13, 8], [14, 8], [15, 11], [16, 11], [17, 15], [18, 16], [19, 15], [20, 17], [21, 12], [22, 15], [23, 17], [24, 20], [25, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "callFunction", "code": "  public Object callFunction (String funcName, \n                              Vector args, \n                              Object methodKey,\n                              ExpressionContext exprContext)\n    throws TransformerException \n  {\n\n    Object[] methodArgs;\n    Object[][] convertedArgs;\n    Class[] paramTypes;\n\n    try\n    {\n\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        Constructor c = (Constructor) getFromCache(methodKey, null, methodArgs);\n        if (c != null)\n        {\n          try\n          {\n            paramTypes = c.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            return c.newInstance(convertedArgs[0]);\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        \n        c = MethodResolver.getConstructor(m_classObj, \n                                          methodArgs,\n                                          convertedArgs,\n                                          exprContext);\n        putToCache(methodKey, null, methodArgs, c);\n        return c.newInstance(convertedArgs[0]);\n      }\n\n      else\n      {\n\n        int resolveType;\n        Object targetObject = null;\n        methodArgs = new Object[args.size()];\n        convertedArgs = new Object[1][];\n        for (int i = 0; i < methodArgs.length; i++)\n        {\n          methodArgs[i] = args.elementAt(i);\n        }\n        Method m = (Method) getFromCache(methodKey, null, methodArgs);\n        if (m != null)\n        {\n          try\n          {\n            paramTypes = m.getParameterTypes();\n            MethodResolver.convertParams(methodArgs, convertedArgs, paramTypes, exprContext);\n            if (Modifier.isStatic(m.getModifiers()))\n              return m.invoke(null, convertedArgs[0]);\n            else\n            {\n              int nTargetArgs = convertedArgs[0].length;\n              if (ExpressionContext.class.isAssignableFrom(paramTypes[0]))\n                nTargetArgs--;\n              if (methodArgs.length <= nTargetArgs)\n                return m.invoke(m_defaultInstance, convertedArgs[0]);\n              else  \n              {\n                targetObject = methodArgs[0];\n                \n                if (targetObject instanceof XObject)\n                  targetObject = ((XObject) targetObject).object();\n                  \n                return m.invoke(targetObject, convertedArgs[0]);\n              }\n            }\n          }\n          catch (InvocationTargetException ite)\n          {\n            throw ite;\n          }\n          catch(Exception e)\n          {\n          }\n        }\n\n        if (args.size() > 0)\n        {\n          targetObject = methodArgs[0];\n\n          if (targetObject instanceof XObject)\n            targetObject = ((XObject) targetObject).object();\n\n          if (m_classObj.isAssignableFrom(targetObject.getClass()))\n            resolveType = MethodResolver.DYNAMIC;\n          else\n            resolveType = MethodResolver.STATIC_AND_INSTANCE;\n        }\n        else\n        {\n          targetObject = null;\n          resolveType = MethodResolver.STATIC_AND_INSTANCE;\n        }\n\n        m = MethodResolver.getMethod(m_classObj,\n                                     funcName,\n                                     methodArgs, \n                                     convertedArgs,\n                                     exprContext,\n                                     resolveType);\n        putToCache(methodKey, null, methodArgs, m);\n\n          return m.invoke(targetObject, convertedArgs[0]);\n        {\n          if (Modifier.isStatic(m.getModifiers()))\n            return m.invoke(null, convertedArgs[0]);\n          else\n          {\n            if (null == m_defaultInstance)\n            {\n              m_defaultInstance = m_classObj.newInstance();\n            }\n            return m.invoke(m_defaultInstance, convertedArgs[0]);\n          }  \n        }\n\n      }\n    }\n    catch (InvocationTargetException ite)\n    {\n      Throwable resultException = ite;\n      Throwable targetException = ite.getTargetException();\n \n      if (targetException instanceof TransformerException)\n        throw ((TransformerException)targetException);\n      else if (targetException != null)\n        resultException = targetException;\n            \n      throw new TransformerException(resultException);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "IF", "VAR_DECL", "LOOP", "THROW_RAISE", "THROW_RAISE", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "IF", "THROW_RAISE", "BINARY_OP", "RETURN", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CATCH", "CATCH", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CATCH", "CATCH", "IF", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "THROW_RAISE", "RETURN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [9, 14], [10, 15], [10, 16], [10, 17], [10, 18], [11, 19], [13, 20], [1, 21], [1, 22], [14, 23], [15, 24], [16, 25], [16, 26], [16, 27], [11, 28], [11, 29], [11, 30], [11, 31], [11, 32], [11, 33], [11, 34], [11, 35], [11, 36], [19, 37], [25, 38], [17, 39], [11, 40], [28, 41], [11, 42], [11, 43], [29, 44], [30, 45], [32, 46], [11, 47], [11, 48], [35, 49], [11, 50], [11, 51], [36, 52], [36, 53], [36, 54], [12, 55], [13, 56], [13, 57], [21, 58], [22, 59], [25, 60], [38, 61], [40, 62], [40, 63], [42, 64], [43, 65], [29, 66], [29, 67], [44, 68], [44, 69], [30, 70], [45, 71], [33, 72], [50, 73], [51, 74], [53, 75], [54, 76], [36, 77], [36, 78], [55, 79], [56, 80], [40, 81], [40, 82], [62, 83], [63, 84], [29, 85], [29, 86], [66, 87], [67, 88], [29, 89], [70, 90], [70, 91], [70, 92], [31, 93], [32, 94], [32, 95], [47, 96], [48, 97], [78, 98], [81, 99], [82, 100], [83, 101], [41, 102], [86, 103], [66, 104], [66, 105], [87, 106], [67, 107], [91, 108], [92, 109], [92, 110], [70, 111], [70, 112], [93, 113], [94, 114], [49, 115], [100, 116], [92, 117], [92, 118], [92, 119], [109, 120], [110, 121], [112, 122], [76, 123], [82, 124], [83, 125], [89, 126], [117, 127], [117, 128], [118, 129], [120, 130], [99, 131], [124, 132], [117, 133], [117, 134], [127, 135], [133, 136], [134, 137], [117, 138], [120, 139], [134, 140], [129, 141], [119, 142], [135, 143], [136, 144], [138, 145], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 9], [15, 10], [16, 10], [17, 10], [18, 10], [19, 11], [20, 13], [21, 1], [22, 1], [23, 14], [24, 15], [25, 16], [26, 16], [27, 16], [28, 11], [29, 11], [30, 11], [31, 11], [32, 11], [33, 11], [34, 11], [35, 11], [36, 11], [37, 19], [38, 25], [39, 17], [40, 11], [41, 28], [42, 11], [43, 11], [44, 29], [45, 30], [46, 32], [47, 11], [48, 11], [49, 35], [50, 11], [51, 11], [52, 36], [53, 36], [54, 36], [55, 12], [56, 13], [57, 13], [58, 21], [59, 22], [60, 25], [61, 38], [62, 40], [63, 40], [64, 42], [65, 43], [66, 29], [67, 29], [68, 44], [69, 44], [70, 30], [71, 45], [72, 33], [73, 50], [74, 51], [75, 53], [76, 54], [77, 36], [78, 36], [79, 55], [80, 56], [81, 40], [82, 40], [83, 62], [84, 63], [85, 29], [86, 29], [87, 66], [88, 67], [89, 29], [90, 70], [91, 70], [92, 70], [93, 31], [94, 32], [95, 32], [96, 47], [97, 48], [98, 78], [99, 81], [100, 82], [101, 83], [102, 41], [103, 86], [104, 66], [105, 66], [106, 87], [107, 67], [108, 91], [109, 92], [110, 92], [111, 70], [112, 70], [113, 93], [114, 94], [115, 49], [116, 100], [117, 92], [118, 92], [119, 92], [120, 109], [121, 110], [122, 112], [123, 76], [124, 82], [125, 83], [126, 89], [127, 117], [128, 117], [129, 118], [130, 120], [131, 99], [132, 124], [133, 117], [134, 117], [135, 127], [136, 133], [137, 134], [138, 117], [139, 120], [140, 134], [141, 129], [142, 119], [143, 135], [144, 136], [145, 138], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145]]}, {"function_name": "callFunction", "code": "  public Object callFunction(FuncExtFunction extFunction,\n                             Vector args,\n                             ExpressionContext exprContext)\n      throws TransformerException\n  {\n    return callFunction(extFunction.getFunctionName(), args, \n                        extFunction.getMethodKey(), exprContext);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "processElement", "code": "  public void processElement(String localPart,\n                             ElemTemplateElement element,\n                             TransformerImpl transformer,\n                             Stylesheet stylesheetTree,\n                             Object methodKey)\n    throws TransformerException, IOException\n  {\n    Object result = null;\n\n    Method m = (Method) getFromCache(methodKey, null, null);\n    if (null == m)\n    {\n      try\n      {\n        m = MethodResolver.getElementMethod(m_classObj, localPart);\n        if ( (null == m_defaultInstance) && !Modifier.isStatic(m.getModifiers()) )\n          m_defaultInstance = m_classObj.newInstance();\n      }\n      catch (Exception e)\n      {\n        throw new TransformerException (e.getMessage (), e);\n      }\n      putToCache(methodKey, null, null, m);\n    }\n\n    XSLProcessorContext xpc = new XSLProcessorContext(transformer, \n                                                      stylesheetTree);\n\n    try\n    {\n      result = m.invoke(m_defaultInstance, new Object[] {xpc, element});\n    }\n    catch (InvocationTargetException e)\n    {\n      Throwable targetException = e.getTargetException();\n      \n      if (targetException instanceof TransformerException)\n        throw (TransformerException)targetException;\n      else if (targetException != null)\n        throw new TransformerException (targetException.getMessage (), targetException);\n      else\n        throw new TransformerException (e.getMessage (), e);\n    }\n    catch (Exception e)\n    {\n      throw new TransformerException (e.getMessage (), e);\n    }\n\n    if (result != null)\n    {\n      xpc.outputToResultTree (stylesheetTree, result);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CATCH", "CATCH", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "IF", "VAR_DECL", "ASSIGN", "CALL", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CATCH", "IF", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [2, 14], [4, 15], [12, 16], [13, 17], [14, 18], [14, 19], [2, 20], [3, 21], [4, 22], [15, 23], [6, 24], [1, 25], [17, 26], [18, 27], [18, 28], [18, 29], [20, 30], [4, 31], [22, 32], [22, 33], [5, 34], [26, 35], [27, 36], [27, 37], [27, 38], [19, 39], [31, 40], [31, 41], [32, 42], [33, 43], [22, 44], [34, 45], [34, 46], [36, 47], [37, 48], [38, 49], [42, 50], [33, 51], [43, 52], [43, 53], [44, 54], [47, 55], [48, 56], [50, 57], [51, 58], [52, 59], [53, 60], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 2], [15, 4], [16, 12], [17, 13], [18, 14], [19, 14], [20, 2], [21, 3], [22, 4], [23, 15], [24, 6], [25, 1], [26, 17], [27, 18], [28, 18], [29, 18], [30, 20], [31, 4], [32, 22], [33, 22], [34, 5], [35, 26], [36, 27], [37, 27], [38, 27], [39, 19], [40, 31], [41, 31], [42, 32], [43, 33], [44, 22], [45, 34], [46, 34], [47, 36], [48, 37], [49, 38], [50, 42], [51, 33], [52, 43], [53, 43], [54, 44], [55, 47], [56, 48], [57, 50], [58, 51], [59, 52], [60, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "ExtensionHandlerJavaClass", "code": "  public ExtensionHandlerJavaClass(String namespaceUri,\n                                   String scriptLang,\n                                   String className)\n  {\n    super(namespaceUri, scriptLang, className);\n    try\n    {\n      m_classObj = getClassForName(className);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "PARAM", "CATCH", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "camel-1.4-2548", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/impl/DefaultConsumer.java", "language": "java", "name": "org.apache.camel.impl.DefaultConsumer", "code": "public class DefaultConsumer<E extends Exchange> extends ServiceSupport implements Consumer<E> {\n    private Endpoint<E> endpoint;\n    private Processor processor;\n    private AsyncProcessor asyncProcessor;\n    private ExceptionHandler exceptionHandler;\n\n    public DefaultConsumer(Endpoint<E> endpoint, Processor processor) {\n        this.endpoint = endpoint;\n        this.processor = processor;\n    }\n\n    @Override\n    public String toString() {\n        return \"Consumer on \" + endpoint;\n    }\n\n    public Endpoint<E> getEndpoint() {\n        return endpoint;\n    }\n\n    public Processor getProcessor() {\n        return processor;\n    }\n\n    /**\n     * Provides an {@link AsyncProcessor} interface to the configured\n     * processor on the consumer.  If the processor does not implement\n     * the interface, it will be adapted so that it does.  \n     */\n    public AsyncProcessor getAsyncProcessor() {\n        if (asyncProcessor == null) {\n            asyncProcessor = AsyncProcessorTypeConverter.convert(processor);\n        }\n        return asyncProcessor;\n    }\n\n    public ExceptionHandler getExceptionHandler() {\n        if (exceptionHandler == null) {\n            exceptionHandler = new LoggingExceptionHandler(getClass());\n        }\n        return exceptionHandler;\n    }\n\n    public void setExceptionHandler(ExceptionHandler exceptionHandler) {\n        this.exceptionHandler = exceptionHandler;\n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processor);\n    }\n\n    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processor);\n    }\n\n    /**\n     * Handles the given exception using the {@link #getExceptionHandler()}\n     * \n     * @param t the exception to handle\n     */\n    protected void handleException(Throwable t) {\n        getExceptionHandler().handleException(t);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Consumer on \" + endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getEndpoint", "code": "    public Endpoint<E> getEndpoint() {\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProcessor", "code": "    public Processor getProcessor() {\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getAsyncProcessor", "code": "    public AsyncProcessor getAsyncProcessor() {\n        if (asyncProcessor == null) {\n            asyncProcessor = AsyncProcessorTypeConverter.convert(processor);\n        }\n        return asyncProcessor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getExceptionHandler", "code": "    public ExceptionHandler getExceptionHandler() {\n        if (exceptionHandler == null) {\n            exceptionHandler = new LoggingExceptionHandler(getClass());\n        }\n        return exceptionHandler;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setExceptionHandler", "code": "    public void setExceptionHandler(ExceptionHandler exceptionHandler) {\n        this.exceptionHandler = exceptionHandler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(processor);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ServiceHelper.startServices(processor);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "handleException", "code": "    protected void handleException(Throwable t) {\n        getExceptionHandler().handleException(t);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "DefaultConsumer", "code": "    public DefaultConsumer(Endpoint<E> endpoint, Processor processor) {\n        this.endpoint = endpoint;\n        this.processor = processor;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-4.1-4069", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/browser/VFSFileChooserDialog.java", "language": "java", "name": "org.gjt.sp.jedit.browser.VFSFileChooserDialog", "code": "public class VFSFileChooserDialog extends EnhancedDialog\n{\n\t//{{{ VFSFileChooserDialog constructor\n\tpublic VFSFileChooserDialog(View view, String path,\n\t\tint mode, boolean multipleSelection)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"vfs.browser.title\"),true);\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tString name;\n\t\tif(mode == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\tname = null;\n\t\telse if(path == null || path.endsWith(File.separator)\n\t\t\t|| path.endsWith(\"/\"))\n\t\t{\n\t\t\tname = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\tname = vfs.getFileName(path);\n\t\t\tpath = vfs.getParentOfPath(path);\n\t\t}\n\n\t\tbrowser = new VFSBrowser(view,path,mode,multipleSelection,true);\n\t\tbrowser.addBrowserListener(new BrowserHandler());\n\t\tcontent.add(BorderLayout.CENTER,browser);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,0,0,0));\n\n\t\tfilenameField = new JTextField();\n\t\tfilenameField.setText(name);\n\t\tfilenameField.addKeyListener(new KeyHandler());\n\t\tfilenameField.selectAll();\n\t\tDimension dim = filenameField.getPreferredSize();\n\t\tdim.width = Integer.MAX_VALUE;\n\t\tfilenameField.setMaximumSize(dim);\n\t\tBox box = new Box(BoxLayout.Y_AXIS);\n\t\tbox.add(Box.createGlue());\n\t\tbox.add(filenameField);\n\t\tbox.add(Box.createGlue());\n\n\t\tif(mode != VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\tJLabel label = new JLabel(jEdit.getProperty(\"vfs.browser.dialog.filename\"));\n\t\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\n\t\t\t\t\"vfs.browser.dialog.filename.mnemonic\").charAt(0));\n\t\t\tlabel.setLabelFor(filenameField);\n\t\t\tpanel.add(label);\n\t\t\tpanel.add(Box.createHorizontalStrut(12));\n\n\t\t\tpanel.add(box);\n\n\t\t\tpanel.add(Box.createHorizontalStrut(12));\n\t\t}\n\t\telse\n\t\t\tpanel.add(Box.createGlue());\n\n\t\tif(mode == VFSBrowser.BROWSER || mode == VFSBrowser.OPEN_DIALOG\n\t\t\t|| mode == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\tGUIUtilities.requestFocus(this,browser.getBrowserView()\n\t\t\t\t.getDefaultFocusComponent());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGUIUtilities.requestFocus(this,filenameField);\n\t\t}\n\n\t\tok = new JButton();\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tswitch(mode)\n\t\t{\n\t\tcase VFSBrowser.OPEN_DIALOG:\n\t\tcase VFSBrowser.BROWSER_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.open\"));\n\t\t\tbreak;\n\t\tcase VFSBrowser.CHOOSE_DIRECTORY_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.choose-dir\"));\n\t\t\t// so that it doesn't resize...\n\t\t\tdim = ok.getPreferredSize();\n\t\t\tok.setPreferredSize(dim);\n\t\t\tbreak;\n\t\tcase VFSBrowser.SAVE_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.save\"));\n\t\t\tbreak;\n\t\t}\n\n\t\tok.addActionListener(new ActionHandler());\n\t\tpanel.add(ok);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.addActionListener(new ActionHandler());\n\t\tpanel.add(cancel);\n\n\t\tcontent.add(BorderLayout.SOUTH,panel);\n\n\t\tVFSManager.getIOThreadPool().addProgressListener(\n\t\t\tworkThreadHandler = new WorkThreadHandler());\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,\"vfs.browser.dialog\");\n\t\tshow();\n\t} //}}}\n\n\t//{{{ dispose() method\n\tpublic void dispose()\n\t{\n\t\tGUIUtilities.saveGeometry(this,\"vfs.browser.dialog\");\n\t\tVFSManager.getIOThreadPool().removeProgressListener(workThreadHandler);\n\t\tsuper.dispose();\n\t} //}}}\n\n\t//{{{ ok() method\n\tpublic void ok()\n\t{\n\t\tVFS.DirectoryEntry[] files = browser.getSelectedFiles();\n\n\t\tString directory = browser.getDirectory();\n\t\tfilename = filenameField.getText();\n\n\t\tif(files.length == 0)\n\t\t{\n\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t{\n\t\t\t\tfilename = browser.getDirectory();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(filename.length() == 0)\n\t\t\t\t{\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t\t\t{\n\t\t\t\t\tHashtable props = new Hashtable();\n\t\t\t\t\tprops.put(Buffer.ENCODING,browser.currentEncoding);\n\t\t\t\t\tjEdit.openFile(browser.getView(),\n\t\t\t\t\t\tbrowser.getDirectory(),\n\t\t\t\t\t\tfilename,false,props);\n\t\t\t\t\tdispose();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = files[i];\n\t\t\t\tif(file.type == VFS.DirectoryEntry.FILESYSTEM\n\t\t\t\t\t|| file.type == VFS.DirectoryEntry.DIRECTORY)\n\t\t\t\t{\n\t\t\t\t\tbrowser.setDirectory(file.path);\n\t\t\t\t\tif(file.name.equals(filename))\n\t\t\t\t\t\tfilenameField.setText(null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(browser.getMode() == VFSBrowser.SAVE_DIALOG\n\t\t\t\t\t&& (filename == null || filename.length() == 0))\n\t\t\t\t\tfilename = file.path;\n\t\t\t}\n\t\t}\n\n\t\tif(browser.getMode() == VFSBrowser.SAVE_DIALOG)\n\t\t{\n\t\t\tif(!MiscUtilities.isURL(directory)\n\t\t\t\t&& !MiscUtilities.isURL(filename))\n\t\t\t{\n\t\t\t\tfilename = MiscUtilities.constructPath(directory,\n\t\t\t\t\tMiscUtilities.canonPath(filename));\n\n\t\t\t\tif(doFileExistsWarning(filename))\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\telse if(browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t{\n\t\t\tbrowser.filesActivated(VFSBrowser.M_OPEN,false);\n\t\t}\n\n\t\tisOK = true;\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ cancel() method\n\tpublic void cancel()\n\t{\n\t\tdispose();\n\t} //}}}\n\n\t//{{{ getSelectedFiles() method\n\tpublic String[] getSelectedFiles()\n\t{\n\t\tif(!isOK)\n\t\t\treturn null;\n\n\t\tif(filename != null && filename.length() != 0)\n\t\t{\n\t\t\tString path = browser.getDirectory();\n\t\t\treturn new String[] { MiscUtilities.constructPath(\n\t\t\t\tpath,filename) };\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVector vector = new Vector();\n\t\t\tVFS.DirectoryEntry[] selectedFiles = browser.getSelectedFiles();\n\t\t\tfor(int i = 0; i < selectedFiles.length; i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file =  selectedFiles[i];\n\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t{\n\t\t\t\t\tif(file.type != VFS.DirectoryEntry.FILE)\n\t\t\t\t\t\tvector.addElement(file.path);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(file.type == VFS.DirectoryEntry.FILE)\n\t\t\t\t\t\tvector.addElement(file.path);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] retVal = new String[vector.size()];\n\t\t\tvector.copyInto(retVal);\n\t\t\treturn retVal;\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate VFSBrowser browser;\n\tprivate JTextField filenameField;\n\tprivate String filename;\n\tprivate JButton ok;\n\tprivate JButton cancel;\n\tprivate boolean isOK;\n\tprivate WorkThreadHandler workThreadHandler;\n\t//}}}\n\n\t//{{{ doFileExistsWarning() method\n\tprivate boolean doFileExistsWarning(String filename)\n\t{\n\t\tif(new File(filename).exists())\n\t\t{\n\t\t\tString[] args = { MiscUtilities.getFileName(filename) };\n\t\t\tint result = GUIUtilities.confirm(browser,\n\t\t\t\t\"fileexists\",args,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == ok)\n\t\t\t{\n\t\t\t\tif(!browser.getDirectory().equals(\n\t\t\t\t\tbrowser.getDirectoryField().getText()))\n\t\t\t\t{\n\t\t\t\t\tbrowser.setDirectory(browser.getDirectoryField().getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tok();\n\t\t\t}\n\t\t\telse if(evt.getSource() == cancel)\n\t\t\t\tcancel();\n\t\t}\n\t} //}}}\n\n\t//{{{ BrowserHandler class\n\tclass BrowserHandler implements BrowserListener\n\t{\n\t\t//{{{ filesSelected() method\n\t\tpublic void filesSelected(VFSBrowser browser, VFS.DirectoryEntry[] files)\n\t\t{\n\t\t\tif(files.length == 0)\n\t\t\t{\n\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t{\n\t\t\t\t\tok.setText(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.browser.dialog.choose-dir\"));\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(files.length == 1)\n\t\t\t{\n\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t{\n\t\t\t\t\tok.setText(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.browser.dialog.open\"));\n\t\t\t\t}\n\n\t\t\t\tVFS.DirectoryEntry file = files[0];\n\t\t\t\tif(file.type == VFS.DirectoryEntry.FILE)\n\t\t\t\t{\n\t\t\t\t\tString path = file.path;\n\t\t\t\t\tString directory = browser.getDirectory();\n\t\t\t\t\tVFS vfs = VFSManager.getVFSForPath(directory);\n\t\t\t\t\tString parent = vfs.getParentOfPath(path);\n\t\t\t\t\tif(parent.endsWith(\"/\") || parent.endsWith(File.separator))\n\t\t\t\t\t\tparent = parent.substring(0,parent.length() - 1);\n\t\t\t\t\tif(parent.equals(directory))\n\t\t\t\t\t\tpath = file.name;\n\n\t\t\t\t\tfilenameField.setText(path);\n\t\t\t\t\tfilenameField.selectAll();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t{\n\t\t\t\t\tok.setText(jEdit.getProperty(\n\t\t\t\t\t\t\"vfs.browser.dialog.open\"));\n\t\t\t\t}\n\n\t\t\t\tfilenameField.setText(null);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ filesActivated() method\n\t\tpublic void filesActivated(VFSBrowser browser, VFS.DirectoryEntry[] files)\n\t\t{\n\t\t\tfor(int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = files[i];\n\t\t\t\tif(file.type == VFS.DirectoryEntry.FILESYSTEM\n\t\t\t\t\t|| file.type == VFS.DirectoryEntry.DIRECTORY)\n\t\t\t\t{\n\t\t\t\t\tif(file.name.equals(filenameField.getText()))\n\t\t\t\t\t\tfilenameField.setText(null);\n\n\t\t\t\t\t// the browser will list the directory\n\t\t\t\t\t// in question, so just return\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t\t\tdispose();\n\t\t\telse\n\t\t\t\tok();\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ KeyHandler class\n\tclass KeyHandler extends KeyAdapter\n\t{\n\t\t//{{{ keyPressed() method\n\t\tpublic void keyPressed(KeyEvent evt)\n\t\t{\n\t\t\tswitch(evt.getKeyCode())\n\t\t\t{\n\t\t\tcase KeyEvent.VK_LEFT:\n\t\t\t\tif(filenameField.getCaretPosition() == 0)\n\t\t\t\t\tbrowser.getBrowserView().getTree().processKeyEvent(evt);\n\t\t\t\tbreak;\n\t\t\tcase KeyEvent.VK_UP:\n\t\t\tcase KeyEvent.VK_DOWN:\n\t\t\t\tbrowser.getBrowserView().getTree().processKeyEvent(evt);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ keyTyped() method\n\t\tpublic void keyTyped(KeyEvent evt)\n\t\t{\n\t\t\tchar ch = evt.getKeyChar();\n\t\t\tif(ch < 0x20 || ch == 0x7f || ch == 0xff)\n\t\t\t\treturn;\n\n\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tString currentText = filenameField.getText();\n\t\t\t\t\tint caret = filenameField.getCaretPosition();\n\n\t\t\t\t\tBrowserView view = browser.getBrowserView();\n\t\t\t\t\tview.selectNone();\n\t\t\t\t\tview.getTree().doTypeSelect(\n\t\t\t\t\t\tcurrentText,\n\t\t\t\t\t\tfalse);\n\t\t\t\t\tVFS.DirectoryEntry[] files =\n\t\t\t\t\t\tview.getSelectedFiles();\n\t\t\t\t\tif(files.length != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tString path = files[0].path;\n\t\t\t\t\t\tString name = files[0].name;\n\t\t\t\t\t\tString parent = MiscUtilities.getParentOfPath(path);\n\t\t\t\t\t\tif(parent.endsWith(\"/\") || parent.endsWith(File.separator))\n\t\t\t\t\t\t\tparent = parent.substring(0,parent.length() - 1);\n\n\t\t\t\t\t\tString newText;\n\t\t\t\t\t\tif(MiscUtilities.isAbsolutePath(currentText)\n\t\t\t\t\t\t\t&& !currentText.startsWith(browser.getDirectory()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnewText = path;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(MiscUtilities.isAbsolutePath(currentText))\n\t\t\t\t\t\t\t\tcaret -= MiscUtilities.getParentOfPath(currentText).length();\n\t\t\t\t\t\t\tif(parent.equals(browser.getDirectory()))\n\t\t\t\t\t\t\t\tnewText = name;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcaret += parent.length() + 1;\n\t\t\t\t\t\t\t\tnewText = path;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfilenameField.setText(newText);\n\t\t\t\t\t\tfilenameField.setCaretPosition(\n\t\t\t\t\t\t\tnewText.length());\n\t\t\t\t\t\tfilenameField.moveCaretPosition(\n\t\t\t\t\t\t\tcaret);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ WorkThreadListener implementation\n\tclass WorkThreadHandler implements WorkThreadProgressListener\n\t{\n\t\t//{{{ statusUpdate() method\n\t\tpublic void statusUpdate(WorkThreadPool threadPool, int threadIndex)\n\t\t{\n\t\t\t// synchronize with hide/showWaitCursor()\n\t\t\tsynchronized(VFSFileChooserDialog.this)\n\t\t\t{\n\t\t\t\tint requestCount = threadPool.getRequestCount();\n\t\t\t\tif(requestCount == 0)\n\t\t\t\t{\n\t\t\t\t\tgetContentPane().setCursor(\n\t\t\t\t\t\tCursor.getDefaultCursor());\n\t\t\t\t}\n\t\t\t\telse if(requestCount >= 1)\n\t\t\t\t{\n\t\t\t\t\tgetContentPane().setCursor(\n\t\t\t\t\t\tCursor.getPredefinedCursor(\n\t\t\t\t\t\tCursor.WAIT_CURSOR));\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ progressUpdate() method\n\t\tpublic void progressUpdate(WorkThreadPool threadPool, int threadIndex)", "functions": [{"function_name": "dispose", "code": "\tpublic void dispose()\n\t{\n\t\tGUIUtilities.saveGeometry(this,\"vfs.browser.dialog\");\n\t\tVFSManager.getIOThreadPool().removeProgressListener(workThreadHandler);\n\t\tsuper.dispose();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ok", "code": "\tpublic void ok()\n\t{\n\t\tVFS.DirectoryEntry[] files = browser.getSelectedFiles();\n\n\t\tString directory = browser.getDirectory();\n\t\tfilename = filenameField.getText();\n\n\t\tif(files.length == 0)\n\t\t{\n\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t{\n\t\t\t\tfilename = browser.getDirectory();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(filename.length() == 0)\n\t\t\t\t{\n\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t\t\t{\n\t\t\t\t\tHashtable props = new Hashtable();\n\t\t\t\t\tprops.put(Buffer.ENCODING,browser.currentEncoding);\n\t\t\t\t\tjEdit.openFile(browser.getView(),\n\t\t\t\t\t\tbrowser.getDirectory(),\n\t\t\t\t\t\tfilename,false,props);\n\t\t\t\t\tdispose();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = files[i];\n\t\t\t\tif(file.type == VFS.DirectoryEntry.FILESYSTEM\n\t\t\t\t\t|| file.type == VFS.DirectoryEntry.DIRECTORY)\n\t\t\t\t{\n\t\t\t\t\tbrowser.setDirectory(file.path);\n\t\t\t\t\tif(file.name.equals(filename))\n\t\t\t\t\t\tfilenameField.setText(null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(browser.getMode() == VFSBrowser.SAVE_DIALOG\n\t\t\t\t\t&& (filename == null || filename.length() == 0))\n\t\t\t\t\tfilename = file.path;\n\t\t\t}\n\t\t}\n\n\t\tif(browser.getMode() == VFSBrowser.SAVE_DIALOG)\n\t\t{\n\t\t\tif(!MiscUtilities.isURL(directory)\n\t\t\t\t&& !MiscUtilities.isURL(filename))\n\t\t\t{\n\t\t\t\tfilename = MiscUtilities.constructPath(directory,\n\t\t\t\t\tMiscUtilities.canonPath(filename));\n\n\t\t\t\tif(doFileExistsWarning(filename))\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\telse if(browser.getMode() == VFSBrowser.BROWSER_DIALOG)\n\t\t{\n\t\t\tbrowser.filesActivated(VFSBrowser.M_OPEN,false);\n\t\t}\n\n\t\tisOK = true;\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "IF", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LOOP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "CALL", "IF", "VAR_DECL", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "RETURN", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [2, 9], [0, 10], [6, 11], [7, 12], [1, 13], [8, 14], [2, 15], [2, 16], [9, 17], [10, 18], [3, 19], [4, 20], [12, 21], [13, 22], [15, 23], [16, 24], [7, 25], [13, 26], [22, 27], [22, 28], [15, 29], [15, 30], [16, 31], [24, 32], [25, 33], [26, 34], [26, 35], [13, 36], [29, 37], [29, 38], [15, 39], [31, 40], [31, 41], [16, 42], [36, 43], [37, 44], [29, 45], [29, 46], [38, 47], [38, 48], [40, 49], [31, 50], [41, 51], [41, 52], [42, 53], [43, 54], [37, 55], [44, 56], [44, 57], [46, 58], [29, 59], [40, 60], [40, 61], [49, 62], [31, 63], [56, 64], [56, 65], [57, 66], [46, 67], [40, 68], [40, 69], [40, 70], [63, 71], [64, 72], [64, 73], [65, 74], [67, 75], [69, 76], [69, 77], [69, 78], [61, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 2], [10, 0], [11, 6], [12, 7], [13, 1], [14, 8], [15, 2], [16, 2], [17, 9], [18, 10], [19, 3], [20, 4], [21, 12], [22, 13], [23, 15], [24, 16], [25, 7], [26, 13], [27, 22], [28, 22], [29, 15], [30, 15], [31, 16], [32, 24], [33, 25], [34, 26], [35, 26], [36, 13], [37, 29], [38, 29], [39, 15], [40, 31], [41, 31], [42, 16], [43, 36], [44, 37], [45, 29], [46, 29], [47, 38], [48, 38], [49, 40], [50, 31], [51, 41], [52, 41], [53, 42], [54, 43], [55, 37], [56, 44], [57, 44], [58, 46], [59, 29], [60, 40], [61, 40], [62, 49], [63, 31], [64, 56], [65, 56], [66, 57], [67, 46], [68, 40], [69, 40], [70, 40], [71, 63], [72, 64], [73, 64], [74, 65], [75, 67], [76, 69], [77, 69], [78, 69], [79, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "cancel", "code": "\tpublic void cancel()\n\t{\n\t\tdispose();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSelectedFiles", "code": "\tpublic String[] getSelectedFiles()\n\t{\n\t\tif(!isOK)\n\t\t\treturn null;\n\n\t\tif(filename != null && filename.length() != 0)\n\t\t{\n\t\t\tString path = browser.getDirectory();\n\t\t\treturn new String[] { MiscUtilities.constructPath(\n\t\t\t\tpath,filename) };\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVector vector = new Vector();\n\t\t\tVFS.DirectoryEntry[] selectedFiles = browser.getSelectedFiles();\n\t\t\tfor(int i = 0; i < selectedFiles.length; i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file =  selectedFiles[i];\n\t\t\t\tif(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\t\t{\n\t\t\t\t\tif(file.type != VFS.DirectoryEntry.FILE)\n\t\t\t\t\t\tvector.addElement(file.path);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(file.type == VFS.DirectoryEntry.FILE)\n\t\t\t\t\t\tvector.addElement(file.path);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] retVal = new String[vector.size()];\n\t\t\tvector.copyInto(retVal);\n\t\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [3, 12], [3, 13], [4, 14], [1, 15], [7, 16], [12, 17], [12, 18], [13, 19], [7, 20], [7, 21], [8, 22], [9, 23], [11, 24], [6, 25], [20, 26], [7, 27], [10, 28], [20, 29], [20, 30], [26, 31], [29, 32], [30, 33], [29, 34], [30, 35], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 3], [13, 3], [14, 4], [15, 1], [16, 7], [17, 12], [18, 12], [19, 13], [20, 7], [21, 7], [22, 8], [23, 9], [24, 11], [25, 6], [26, 20], [27, 7], [28, 10], [29, 20], [30, 20], [31, 26], [32, 29], [33, 30], [34, 29], [35, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "doFileExistsWarning", "code": "\tprivate boolean doFileExistsWarning(String filename)\n\t{\n\t\tif(new File(filename).exists())\n\t\t{\n\t\t\tString[] args = { MiscUtilities.getFileName(filename) };\n\t\t\tint result = GUIUtilities.confirm(browser,\n\t\t\t\t\"fileexists\",args,\n\t\t\t\tJOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\tif(result != JOptionPane.YES_OPTION)\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [6, 10], [6, 11], [10, 12], [7, 13], [13, 14], [8, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 6], [11, 6], [12, 10], [13, 7], [14, 13], [15, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "VFSFileChooserDialog", "code": "\tpublic VFSFileChooserDialog(View view, String path,\n\t\tint mode, boolean multipleSelection)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"vfs.browser.title\"),true);\n\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,12,12,12));\n\t\tsetContentPane(content);\n\n\t\tString name;\n\t\tif(mode == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t\tname = null;\n\t\telse if(path == null || path.endsWith(File.separator)\n\t\t\t|| path.endsWith(\"/\"))\n\t\t{\n\t\t\tname = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVFS vfs = VFSManager.getVFSForPath(path);\n\t\t\tname = vfs.getFileName(path);\n\t\t\tpath = vfs.getParentOfPath(path);\n\t\t}\n\n\t\tbrowser = new VFSBrowser(view,path,mode,multipleSelection,true);\n\t\tbrowser.addBrowserListener(new BrowserHandler());\n\t\tcontent.add(BorderLayout.CENTER,browser);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));\n\t\tpanel.setBorder(new EmptyBorder(12,0,0,0));\n\n\t\tfilenameField = new JTextField();\n\t\tfilenameField.setText(name);\n\t\tfilenameField.addKeyListener(new KeyHandler());\n\t\tfilenameField.selectAll();\n\t\tDimension dim = filenameField.getPreferredSize();\n\t\tdim.width = Integer.MAX_VALUE;\n\t\tfilenameField.setMaximumSize(dim);\n\t\tBox box = new Box(BoxLayout.Y_AXIS);\n\t\tbox.add(Box.createGlue());\n\t\tbox.add(filenameField);\n\t\tbox.add(Box.createGlue());\n\n\t\tif(mode != VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\tJLabel label = new JLabel(jEdit.getProperty(\"vfs.browser.dialog.filename\"));\n\t\t\tlabel.setDisplayedMnemonic(jEdit.getProperty(\n\t\t\t\t\"vfs.browser.dialog.filename.mnemonic\").charAt(0));\n\t\t\tlabel.setLabelFor(filenameField);\n\t\t\tpanel.add(label);\n\t\t\tpanel.add(Box.createHorizontalStrut(12));\n\n\t\t\tpanel.add(box);\n\n\t\t\tpanel.add(Box.createHorizontalStrut(12));\n\t\t}\n\t\telse\n\t\t\tpanel.add(Box.createGlue());\n\n\t\tif(mode == VFSBrowser.BROWSER || mode == VFSBrowser.OPEN_DIALOG\n\t\t\t|| mode == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)\n\t\t{\n\t\t\tGUIUtilities.requestFocus(this,browser.getBrowserView()\n\t\t\t\t.getDefaultFocusComponent());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGUIUtilities.requestFocus(this,filenameField);\n\t\t}\n\n\t\tok = new JButton();\n\t\tgetRootPane().setDefaultButton(ok);\n\n\t\tswitch(mode)\n\t\t{\n\t\tcase VFSBrowser.OPEN_DIALOG:\n\t\tcase VFSBrowser.BROWSER_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.open\"));\n\t\t\tbreak;\n\t\tcase VFSBrowser.CHOOSE_DIRECTORY_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.choose-dir\"));\n\t\t\t// so that it doesn't resize...\n\t\t\tdim = ok.getPreferredSize();\n\t\t\tok.setPreferredSize(dim);\n\t\t\tbreak;\n\t\tcase VFSBrowser.SAVE_DIALOG:\n\t\t\tok.setText(jEdit.getProperty(\"vfs.browser.dialog.save\"));\n\t\t\tbreak;\n\t\t}\n\n\t\tok.addActionListener(new ActionHandler());\n\t\tpanel.add(ok);\n\t\tpanel.add(Box.createHorizontalStrut(6));\n\t\tcancel = new JButton(jEdit.getProperty(\"common.cancel\"));\n\t\tcancel.addActionListener(new ActionHandler());\n\t\tpanel.add(cancel);\n\n\t\tcontent.add(BorderLayout.SOUTH,panel);\n\n\t\tVFSManager.getIOThreadPool().addProgressListener(\n\t\t\tworkThreadHandler = new WorkThreadHandler());\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,\"vfs.browser.dialog\");\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "SWITCH", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [2, 27], [3, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [7, 43], [7, 44], [0, 45], [0, 46], [0, 47], [0, 48], [15, 49], [17, 50], [20, 51], [21, 52], [22, 53], [24, 54], [1, 55], [1, 56], [1, 57], [25, 58], [26, 59], [27, 60], [27, 61], [3, 62], [3, 63], [29, 64], [31, 65], [4, 66], [5, 67], [35, 68], [37, 69], [38, 70], [39, 71], [6, 72], [41, 73], [42, 74], [43, 75], [7, 76], [46, 77], [9, 78], [48, 79], [50, 80], [52, 81], [53, 82], [1, 83], [1, 84], [1, 85], [1, 86], [1, 87], [2, 88], [2, 89], [61, 90], [61, 91], [62, 92], [3, 93], [3, 94], [3, 95], [3, 96], [3, 97], [3, 98], [70, 99], [70, 100], [70, 101], [70, 102], [74, 103], [43, 104], [75, 105], [75, 106], [76, 107], [77, 108], [77, 109], [77, 110], [77, 111], [78, 112], [80, 113], [81, 114], [83, 115], [85, 116], [86, 117], [87, 118], [89, 119], [93, 120], [95, 121], [98, 122], [63, 123], [43, 124], [43, 125], [43, 126], [105, 127], [106, 128], [106, 129], [115, 130], [117, 131], [118, 132], [119, 133], [120, 134], [121, 135], [122, 136], [122, 137], [123, 138], [124, 139], [125, 140], [104, 141], [126, 142], [129, 143], [137, 144], [138, 145], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 2], [28, 3], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 7], [44, 7], [45, 0], [46, 0], [47, 0], [48, 0], [49, 15], [50, 17], [51, 20], [52, 21], [53, 22], [54, 24], [55, 1], [56, 1], [57, 1], [58, 25], [59, 26], [60, 27], [61, 27], [62, 3], [63, 3], [64, 29], [65, 31], [66, 4], [67, 5], [68, 35], [69, 37], [70, 38], [71, 39], [72, 6], [73, 41], [74, 42], [75, 43], [76, 7], [77, 46], [78, 9], [79, 48], [80, 50], [81, 52], [82, 53], [83, 1], [84, 1], [85, 1], [86, 1], [87, 1], [88, 2], [89, 2], [90, 61], [91, 61], [92, 62], [93, 3], [94, 3], [95, 3], [96, 3], [97, 3], [98, 3], [99, 70], [100, 70], [101, 70], [102, 70], [103, 74], [104, 43], [105, 75], [106, 75], [107, 76], [108, 77], [109, 77], [110, 77], [111, 77], [112, 78], [113, 80], [114, 81], [115, 83], [116, 85], [117, 86], [118, 87], [119, 89], [120, 93], [121, 95], [122, 98], [123, 63], [124, 43], [125, 43], [126, 43], [127, 105], [128, 106], [129, 106], [130, 115], [131, 117], [132, 118], [133, 119], [134, 120], [135, 121], [136, 122], [137, 122], [138, 123], [139, 124], [140, 125], [141, 104], [142, 126], [143, 129], [144, 137], [145, 138], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145]]}], "label": 1}
{"sample_id": "xalan-2.6-7730", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/cmdline/SecuritySupport12.java", "language": "java", "name": "org.apache.xalan.xsltc.cmdline.SecuritySupport12", "code": "class SecuritySupport12 extends SecuritySupport {\n\n    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;\n            }\n        });\n    }\n\n    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;\n                }\n            });\n    }\n\n    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;\n                }\n            });\n    }\n\n    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);\n                }\n            });\n    }\n\n    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();\n        }\n    }\n\n    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;\n                }\n            });\n    }\n    \n    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());\n                }\n            })).booleanValue();\n    }\n    \n    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "functions": [{"function_name": "getContextClassLoader", "code": "    ClassLoader getContextClassLoader() {\n        return (ClassLoader)\n                AccessController.doPrivileged(new PrivilegedAction() {\n            public Object run() {\n                ClassLoader cl = null;\n                try {\n                    cl = Thread.currentThread().getContextClassLoader();\n                } catch (SecurityException ex) { }\n                return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [11, 12], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSystemClassLoader", "code": "    ClassLoader getSystemClassLoader() {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader cl = null;\n                    try {\n                        cl = ClassLoader.getSystemClassLoader();\n                    } catch (SecurityException ex) {}\n                    return cl;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [4, 6], [4, 7], [6, 8], [6, 9], [7, 10], [9, 11], [1, 0], [2, 1], [3, 2], [4, 3], [5, 4], [6, 4], [7, 4], [8, 6], [9, 6], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getParentClassLoader", "code": "    ClassLoader getParentClassLoader(final ClassLoader cl) {\n        return (ClassLoader)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    ClassLoader parent = null;\n                    try {\n                        parent = cl.getParent();\n                    } catch (SecurityException ex) {}\n\n                    return (parent == cl) ? null : parent;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "COND_EXPR", "CATCH", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [6, 9], [7, 10], [9, 11], [9, 12], [7, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 6], [10, 7], [11, 9], [12, 9], [13, 7], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getSystemProperty", "code": "    String getSystemProperty(final String propName) {\n        return (String)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return System.getProperty(propName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getFileInputStream", "code": "    FileInputStream getFileInputStream(final File file)\n        throws FileNotFoundException\n    {\n        try {\n            return (FileInputStream)\n                AccessController.doPrivileged(new PrivilegedExceptionAction() {\n                    public Object run() throws FileNotFoundException {\n                        return new FileInputStream(file);\n                    }\n                });\n        } catch (PrivilegedActionException e) {\n            throw (FileNotFoundException)e.getException();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [8, 9], [9, 10], [10, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 8], [10, 9], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getResourceAsStream", "code": "    InputStream getResourceAsStream(final ClassLoader cl,\n                                           final String name)\n    {\n        return (InputStream)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    InputStream ris;\n                    if (cl == null) {\n                        ris = ClassLoader.getSystemResourceAsStream(name);\n                    } else {\n                        ris = cl.getResourceAsStream(name);\n                    }\n                    return ris;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [5, 6], [6, 7], [6, 8], [6, 9], [8, 10], [10, 11], [8, 12], [8, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 5], [7, 6], [8, 6], [9, 6], [10, 8], [11, 10], [12, 8], [13, 8], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getFileExists", "code": "    boolean getFileExists(final File f) {\n    return ((Boolean)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Boolean(f.exists());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLastModified", "code": "    long getLastModified(final File f) {\n    return ((Long)\n            AccessController.doPrivileged(new PrivilegedAction() {\n                public Object run() {\n                    return new Long(f.lastModified());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ant-1.6-563", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/taskdefs/GenerateKey.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.GenerateKey", "code": "public class GenerateKey extends Task {\n\n    public static class DnameParam {\n        private String name;\n        private String value;\n\n        public void setName(String name) {\n            this.name = name;\n        }\n\n        public String getName() {\n            return name;\n        }\n\n        public void setValue(String value) {\n            this.value = value;\n        }\n\n        public String getValue() {\n            return value;\n        }\n    }\n\n    public static class DistinguishedName {\n        private Vector params = new Vector();\n\n        public Object createParam() {\n            DnameParam param = new DnameParam();\n            params.addElement(param);\n\n            return param;\n        }\n\n        public Enumeration getParams() {\n            return params.elements();\n        }\n\n        public String toString() {\n            final int size = params.size();\n            final StringBuffer sb = new StringBuffer();\n            boolean firstPass = true;\n\n            for (int i = 0; i < size; i++) {\n                if (!firstPass) {\n                    sb.append(\" ,\");\n                }\n                firstPass = false;\n\n                final DnameParam param = (DnameParam) params.elementAt(i);\n                sb.append(encode(param.getName()));\n                sb.append('=');\n                sb.append(encode(param.getValue()));\n            }\n\n            return sb.toString();\n        }\n\n        public String encode(final String string) {\n            int end = string.indexOf(',');\n\n            if (-1 == end) {\n              return string;\n            }\n\n            final StringBuffer sb = new StringBuffer();\n\n            int start = 0;\n\n            while (-1 != end) {\n                sb.append(string.substring(start, end));\n                sb.append(\"\\\\,\");\n                start = end + 1;\n                end = string.indexOf(',', start);\n            }\n\n            sb.append(string.substring(start));\n\n            return sb.toString();\n        }\n    }\n\n    /**\n     * The alias of signer.\n     */\n    protected String alias;\n\n    /**\n     * The name of keystore file.\n     */\n    protected String keystore;\n    protected String storepass;\n    protected String storetype;\n    protected String keypass;\n\n    protected String sigalg;\n    protected String keyalg;\n    protected String dname;\n    protected DistinguishedName expandedDname;\n    protected int keysize;\n    protected int validity;\n    protected boolean verbose;\n\n    /**\n     * Distinguished name list.\n     *\n     * @return Distinguished name container.\n     * @throws BuildException If specified more than once or dname\n     *                        attribute is used.\n     */\n    public DistinguishedName createDname() throws BuildException {\n        if (null != expandedDname) {\n            throw new BuildException(\"DName sub-element can only be \"\n                                     + \"specified once.\");\n        }\n        if (null != dname) {\n            throw new BuildException(\"It is not possible to specify dname \"\n                                    + \" both as attribute and element.\");\n        }\n        expandedDname = new DistinguishedName();\n        return expandedDname;\n    }\n\n    /**\n     * The distinguished name for entity.\n     *\n     * @param dname distinguished name\n     */\n    public void setDname(final String dname) {\n        if (null != expandedDname) {\n            throw new BuildException(\"It is not possible to specify dname \"\n                                    + \" both as attribute and element.\");\n        }\n        this.dname = dname;\n    }\n\n    /**\n     * The alias to add under.\n     *\n     * @param alias alias to add under\n     */\n    public void setAlias(final String alias) {\n        this.alias = alias;\n    }\n\n    /**\n     * Keystore location.\n     *\n     * @param keystore location\n     */\n    public void setKeystore(final String keystore) {\n        this.keystore = keystore;\n    }\n\n    /**\n     * Password for keystore integrity.\n     * Must be at least 6 characters long.\n     * @param storepass password\n     */\n    public void setStorepass(final String storepass) {\n        this.storepass = storepass;\n    }\n\n    /**\n     * Keystore type.\n     *\n     * @param storetype type\n     */\n    public void setStoretype(final String storetype) {\n        this.storetype = storetype;\n    }\n\n    /**\n     * Password for private key (if different).\n     *\n     * @param keypass password\n     */\n    public void setKeypass(final String keypass) {\n        this.keypass = keypass;\n    }\n\n    /**\n     * The algorithm to use in signing.\n     *\n     * @param sigalg algorithm\n     */\n    public void setSigalg(final String sigalg) {\n        this.sigalg = sigalg;\n    }\n\n    /**\n     * The method to use when generating name-value pair.\n     * @param keyalg algorithm\n     */\n    public void setKeyalg(final String keyalg) {\n        this.keyalg = keyalg;\n    }\n\n    /**\n     * Indicates the size of key generated.\n     *\n     * @param keysize size of key\n     * @throws BuildException If not an Integer\n     * @todo Could convert this to a plain Integer setter.\n     */\n    public void setKeysize(final String keysize) throws BuildException {\n        try {\n            this.keysize = Integer.parseInt(keysize);\n        } catch (final NumberFormatException nfe) {\n            throw new BuildException(\"KeySize attribute should be a integer\");\n        }\n    }\n\n    /**\n     * Indicates how many days certificate is valid.\n     *\n     * @param validity days valid\n     * @throws BuildException If not an Integer\n     */\n    public void setValidity(final String validity) throws BuildException {\n        try {\n            this.validity = Integer.parseInt(validity);\n        } catch (final NumberFormatException nfe) {\n            throw new BuildException(\"Validity attribute should be a integer\");\n        }\n    }\n\n    /**\n     * If true, verbose output when signing.\n     * @param verbose verbose or not\n     */\n    public void setVerbose(final boolean verbose) {\n        this.verbose = verbose;\n    }\n\n    public void execute() throws BuildException {\n        if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n            throw new BuildException(\"The genkey task is only available on JDK\"\n                                     + \" versions 1.2 or greater\");\n        }\n\n        if (null == alias) {\n            throw new BuildException(\"alias attribute must be set\");\n        }\n\n        if (null == storepass) {\n            throw new BuildException(\"storepass attribute must be set\");\n        }\n\n        if (null == dname && null == expandedDname) {\n            throw new BuildException(\"dname must be set\");\n        }\n\n        final StringBuffer sb = new StringBuffer();\n\n        sb.append(\"-genkey \");\n\n        if (verbose) {\n            sb.append(\"-v \");\n        }\n\n        sb.append(\"-alias \\\"\");\n        sb.append(alias);\n        sb.append(\"\\\" \");\n\n        if (null != dname) {\n            sb.append(\"-dname \\\"\");\n            sb.append(dname);\n            sb.append(\"\\\" \");\n        }\n\n        if (null != expandedDname) {\n            sb.append(\"-dname \\\"\");\n            sb.append(expandedDname);\n            sb.append(\"\\\" \");\n        }\n\n        if (null != keystore) {\n            sb.append(\"-keystore \\\"\");\n            sb.append(keystore);\n            sb.append(\"\\\" \");\n        }\n\n        if (null != storepass) {\n            sb.append(\"-storepass \\\"\");\n            sb.append(storepass);\n            sb.append(\"\\\" \");\n        }\n\n        if (null != storetype) {\n            sb.append(\"-storetype \\\"\");\n            sb.append(storetype);\n            sb.append(\"\\\" \");\n        }\n\n        sb.append(\"-keypass \\\"\");\n        if (null != keypass) {\n            sb.append(keypass);\n        } else {\n            sb.append(storepass);\n        }\n        sb.append(\"\\\" \");\n\n        if (null != sigalg) {\n            sb.append(\"-sigalg \\\"\");\n            sb.append(sigalg);\n            sb.append(\"\\\" \");\n        }\n\n        if (null != keyalg) {\n            sb.append(\"-keyalg \\\"\");\n            sb.append(keyalg);\n            sb.append(\"\\\" \");\n        }\n\n\n        if (0 < keysize) {\n            sb.append(\"-keysize \\\"\");\n            sb.append(keysize);\n            sb.append(\"\\\" \");\n        }\n\n        if (0 < validity) {\n            sb.append(\"-validity \\\"\");\n            sb.append(validity);\n            sb.append(\"\\\" \");\n        }\n\n        log(\"Generating Key for \" + alias);\n        final ExecTask cmd = (ExecTask) getProject().createTask(\"exec\");\n        cmd.setExecutable(JavaEnvUtils.getJdkExecutable(\"keytool\"));\n        Commandline.Argument arg = cmd.createArg();\n        arg.setLine(sb.toString());\n        cmd.setFailonerror(true);\n        cmd.setTaskName(getTaskName());\n        cmd.execute();", "functions": [{"function_name": "createDname", "code": "    public DistinguishedName createDname() throws BuildException {\n        if (null != expandedDname) {\n            throw new BuildException(\"DName sub-element can only be \"\n                                     + \"specified once.\");\n        }\n        if (null != dname) {\n            throw new BuildException(\"It is not possible to specify dname \"\n                                    + \" both as attribute and element.\");\n        }\n        expandedDname = new DistinguishedName();\n        return expandedDname;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [4, 7], [2, 8], [5, 9], [3, 10], [6, 11], [8, 12], [10, 13], [12, 14], [13, 15], [14, 16], [14, 17], [15, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 4], [8, 2], [9, 5], [10, 3], [11, 6], [12, 8], [13, 10], [14, 12], [15, 13], [16, 14], [17, 14], [18, 15], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setDname", "code": "    public void setDname(final String dname) {\n        if (null != expandedDname) {\n            throw new BuildException(\"It is not possible to specify dname \"\n                                    + \" both as attribute and element.\");\n        }\n        this.dname = dname;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [8, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setAlias", "code": "    public void setAlias(final String alias) {\n        this.alias = alias;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setKeystore", "code": "    public void setKeystore(final String keystore) {\n        this.keystore = keystore;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStorepass", "code": "    public void setStorepass(final String storepass) {\n        this.storepass = storepass;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setStoretype", "code": "    public void setStoretype(final String storetype) {\n        this.storetype = storetype;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setKeypass", "code": "    public void setKeypass(final String keypass) {\n        this.keypass = keypass;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSigalg", "code": "    public void setSigalg(final String sigalg) {\n        this.sigalg = sigalg;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setKeyalg", "code": "    public void setKeyalg(final String keyalg) {\n        this.keyalg = keyalg;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setKeysize", "code": "    public void setKeysize(final String keysize) throws BuildException {\n        try {\n            this.keysize = Integer.parseInt(keysize);\n        } catch (final NumberFormatException nfe) {\n            throw new BuildException(\"KeySize attribute should be a integer\");", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setValidity", "code": "    public void setValidity(final String validity) throws BuildException {\n        try {\n            this.validity = Integer.parseInt(validity);\n        } catch (final NumberFormatException nfe) {\n            throw new BuildException(\"Validity attribute should be a integer\");", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setVerbose", "code": "    public void setVerbose(final boolean verbose) {\n        this.verbose = verbose;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n            throw new BuildException(\"The genkey task is only available on JDK\"\n                                     + \" versions 1.2 or greater\");\n        }\n\n        if (null == alias) {\n            throw new BuildException(\"alias attribute must be set\");\n        }\n\n        if (null == storepass) {\n            throw new BuildException(\"storepass attribute must be set\");\n        }\n\n        if (null == dname && null == expandedDname) {\n            throw new BuildException(\"dname must be set\");\n        }\n\n        final StringBuffer sb = new StringBuffer();\n\n        sb.append(\"-genkey \");\n\n        if (verbose) {\n            sb.append(\"-v \");\n        }\n\n        sb.append(\"-alias \\\"\");\n        sb.append(alias);\n        sb.append(\"\\\" \");\n\n        if (null != dname) {\n            sb.append(\"-dname \\\"\");\n            sb.append(dname);\n            sb.append(\"\\\" \");\n        }\n\n        if (null != expandedDname) {\n            sb.append(\"-dname \\\"\");\n            sb.append(expandedDname);\n            sb.append(\"\\\" \");\n        }\n\n        if (null != keystore) {\n            sb.append(\"-keystore \\\"\");\n            sb.append(keystore);\n            sb.append(\"\\\" \");\n        }\n\n        if (null != storepass) {\n            sb.append(\"-storepass \\\"\");\n            sb.append(storepass);\n            sb.append(\"\\\" \");\n        }\n\n        if (null != storetype) {\n            sb.append(\"-storetype \\\"\");\n            sb.append(storetype);\n            sb.append(\"\\\" \");\n        }\n\n        sb.append(\"-keypass \\\"\");\n        if (null != keypass) {\n            sb.append(keypass);\n        } else {\n            sb.append(storepass);\n        }\n        sb.append(\"\\\" \");\n\n        if (null != sigalg) {\n            sb.append(\"-sigalg \\\"\");\n            sb.append(sigalg);\n            sb.append(\"\\\" \");\n        }\n\n        if (null != keyalg) {\n            sb.append(\"-keyalg \\\"\");\n            sb.append(keyalg);\n            sb.append(\"\\\" \");\n        }\n\n\n        if (0 < keysize) {\n            sb.append(\"-keysize \\\"\");\n            sb.append(keysize);\n            sb.append(\"\\\" \");\n        }\n\n        if (0 < validity) {\n            sb.append(\"-validity \\\"\");\n            sb.append(validity);\n            sb.append(\"\\\" \");\n        }\n\n        log(\"Generating Key for \" + alias);\n        final ExecTask cmd = (ExecTask) getProject().createTask(\"exec\");\n        cmd.setExecutable(JavaEnvUtils.getJdkExecutable(\"keytool\"));\n        Commandline.Argument arg = cmd.createArg();\n        arg.setLine(sb.toString());\n        cmd.setFailonerror(true);\n        cmd.setTaskName(getTaskName());\n        cmd.execute();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [3, 25], [4, 26], [5, 27], [6, 28], [0, 29], [7, 30], [0, 31], [8, 32], [9, 33], [10, 34], [11, 35], [12, 36], [0, 37], [0, 38], [0, 39], [0, 40], [15, 41], [16, 42], [17, 43], [18, 44], [20, 45], [21, 46], [22, 47], [1, 48], [23, 49], [24, 50], [25, 51], [26, 52], [27, 53], [28, 54], [29, 55], [30, 56], [31, 57], [32, 58], [33, 59], [34, 60], [35, 61], [36, 62], [37, 63], [39, 64], [40, 65], [14, 66], [15, 67], [41, 68], [41, 69], [16, 70], [42, 71], [17, 72], [43, 73], [18, 74], [49, 75], [2, 76], [50, 77], [3, 78], [3, 79], [3, 80], [4, 81], [4, 82], [4, 83], [5, 84], [5, 85], [5, 86], [6, 87], [6, 88], [6, 89], [7, 90], [7, 91], [8, 92], [8, 93], [8, 94], [9, 95], [9, 96], [9, 97], [10, 98], [10, 99], [10, 100], [11, 101], [11, 102], [11, 103], [12, 104], [12, 105], [12, 106], [13, 107], [67, 108], [68, 109], [69, 110], [70, 111], [72, 112], [74, 113], [76, 114], [78, 115], [80, 116], [81, 117], [83, 118], [84, 119], [86, 120], [87, 121], [89, 122], [92, 123], [94, 124], [95, 125], [97, 126], [98, 127], [100, 128], [101, 129], [103, 130], [104, 131], [106, 132], [107, 133], [108, 134], [111, 135], [112, 136], [113, 137], [114, 138], [137, 139], [137, 140], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 3], [26, 4], [27, 5], [28, 6], [29, 0], [30, 7], [31, 0], [32, 8], [33, 9], [34, 10], [35, 11], [36, 12], [37, 0], [38, 0], [39, 0], [40, 0], [41, 15], [42, 16], [43, 17], [44, 18], [45, 20], [46, 21], [47, 22], [48, 1], [49, 23], [50, 24], [51, 25], [52, 26], [53, 27], [54, 28], [55, 29], [56, 30], [57, 31], [58, 32], [59, 33], [60, 34], [61, 35], [62, 36], [63, 37], [64, 39], [65, 40], [66, 14], [67, 15], [68, 41], [69, 41], [70, 16], [71, 42], [72, 17], [73, 43], [74, 18], [75, 49], [76, 2], [77, 50], [78, 3], [79, 3], [80, 3], [81, 4], [82, 4], [83, 4], [84, 5], [85, 5], [86, 5], [87, 6], [88, 6], [89, 6], [90, 7], [91, 7], [92, 8], [93, 8], [94, 8], [95, 9], [96, 9], [97, 9], [98, 10], [99, 10], [100, 10], [101, 11], [102, 11], [103, 11], [104, 12], [105, 12], [106, 12], [107, 13], [108, 67], [109, 68], [110, 69], [111, 70], [112, 72], [113, 74], [114, 76], [115, 78], [116, 80], [117, 81], [118, 83], [119, 84], [120, 86], [121, 87], [122, 89], [123, 92], [124, 94], [125, 95], [126, 97], [127, 98], [128, 100], [129, 101], [130, 103], [131, 104], [132, 106], [133, 107], [134, 108], [135, 111], [136, 112], [137, 113], [138, 114], [139, 137], [140, 137], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140]]}], "label": 0}
{"sample_id": "jedit-4.3-4697", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/Capabilities.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.Capabilities", "code": "public class Capabilities \n{\n\tprivate static boolean accessibility = false;\n\n\tpublic static boolean haveSwing() {\n\t\t// classExists caches info for us\n\t\treturn classExists( \"javax.swing.JButton\" );\n\t}\n\n\tpublic static boolean canGenerateInterfaces() {\n\t\t// classExists caches info for us\n\t\treturn classExists( \"java.lang.reflect.Proxy\" );\n\t}\n\n\t/**\n\t\tIf accessibility is enabled\n\t\tdetermine if the accessibility mechanism exists and if we have\n\t\tthe optional bsh package to use it.\n\t\tNote that even if both are true it does not necessarily mean that we \n\t\thave runtime permission to access the fields... Java security has\n\t \ta say in it.\n\t\t@see org.gjt.sp.jedit.bsh.ReflectManager\n\t*/\n\tpublic static boolean haveAccessibility() \n\t{\n\t\treturn accessibility;\n\t}\n\n\tpublic static void setAccessibility( boolean b ) \n\t\tthrows Unavailable\n\t{ \n\t\tif ( b == false )\n\t\t{\n\t\t\taccessibility = false;\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !classExists( \"java.lang.reflect.AccessibleObject\" )\n\t\t\t|| !classExists(\"org.gjt.sp.jedit.bsh.reflect.ReflectManagerImpl\")  \n\t\t)\n\t\t\tthrow new Unavailable( \"Accessibility unavailable\" );\n\n\t\t// test basic access\n\t\ttry {\n\t\t\tString.class.getDeclaredMethods();\n\t\t} catch ( SecurityException e ) {\n\t\t\tthrow new Unavailable(\"Accessibility unavailable: \"+e);\n\t\t}\n\n\t\taccessibility = true; \n\t}\n\n\tprivate static Hashtable classes = new Hashtable();\n\t/**\n\t\tUse direct Class.forName() to test for the existence of a class.\n\t\tWe should not use BshClassManager here because:\n\t\t\ta) the systems using these tests would probably not load the\n\t\t\tclasses through it anyway.\n\t\t\tb) bshclassmanager is heavy and touches other class files.  \n\t\t\tthis capabilities code must be light enough to be used by any\n\t\t\tsystem **including the remote applet**.\n\t*/\n\tpublic static boolean classExists( String name ) \n\t{\n\t\tObject c = classes.get( name );\n\n\t\tif ( c == null ) {\n\t\t\ttry {\n\t\t\t\t/*\n\t\t\t\t\tNote: do *not* change this to \n\t\t\t\t\tBshClassManager plainClassForName() or equivalent.\n\t\t\t\t\tThis class must not touch any other bsh classes.\n\t\t\t\t*/\n\t\t\t\tc = Class.forName( name );\n\t\t\t} catch ( ClassNotFoundException e ) { }\n\n\t\t\tif ( c != null )\n\t\t\t\tclasses.put(c,\"unused\");\n\t\t}\n\n\t\treturn c != null;\n\t}\n\n\t/**\n\t\tAn attempt was made to use an unavailable capability supported by\n\t\tan optional package.  The normal operation is to test before attempting\n\t\tto use these packages... so this is runtime exception.\n\t*/\n\tpublic static class Unavailable extends UtilEvalError\n\t{\n\t\tpublic Unavailable(String s ){ super(s); }", "functions": [{"function_name": "haveSwing", "code": "\tpublic static boolean haveSwing() {\n\t\t// classExists caches info for us\n\t\treturn classExists( \"javax.swing.JButton\" );", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "canGenerateInterfaces", "code": "\tpublic static boolean canGenerateInterfaces() {\n\t\t// classExists caches info for us\n\t\treturn classExists( \"java.lang.reflect.Proxy\" );", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "haveAccessibility", "code": "\tpublic static boolean haveAccessibility() \n\t{\n\t\treturn accessibility;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAccessibility", "code": "\tpublic static void setAccessibility( boolean b ) \n\t\tthrows Unavailable\n\t{ \n\t\tif ( b == false )\n\t\t{\n\t\t\taccessibility = false;\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !classExists( \"java.lang.reflect.AccessibleObject\" )\n\t\t\t|| !classExists(\"org.gjt.sp.jedit.bsh.reflect.ReflectManagerImpl\")  \n\t\t)\n\t\t\tthrow new Unavailable( \"Accessibility unavailable\" );\n\n\t\t// test basic access\n\t\ttry {\n\t\t\tString.class.getDeclaredMethods();\n\t\t} catch ( SecurityException e ) {\n\t\t\tthrow new Unavailable(\"Accessibility unavailable: \"+e);\n\t\t}\n\n\t\taccessibility = true; ", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "PARAM", "ASSIGN", "CATCH", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [3, 9], [5, 10], [6, 11], [1, 12], [7, 13], [8, 14], [8, 15], [3, 16], [9, 17], [11, 18], [13, 19], [14, 20], [15, 21], [3, 22], [18, 23], [22, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 3], [10, 5], [11, 6], [12, 1], [13, 7], [14, 8], [15, 8], [16, 3], [17, 9], [18, 11], [19, 13], [20, 14], [21, 15], [22, 3], [23, 18], [24, 22], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "classExists", "code": "\tpublic static boolean classExists( String name ) \n\t{\n\t\tObject c = classes.get( name );\n\n\t\tif ( c == null ) {\n\t\t\ttry {\n\t\t\t\t/*\n\t\t\t\t\tNote: do *not* change this to \n\t\t\t\t\tBshClassManager plainClassForName() or equivalent.\n\t\t\t\t\tThis class must not touch any other bsh classes.\n\t\t\t\t*/\n\t\t\t\tc = Class.forName( name );\n\t\t\t} catch ( ClassNotFoundException e ) { }\n\n\t\t\tif ( c != null )\n\t\t\t\tclasses.put(c,\"unused\");\n\t\t}\n\n\t\treturn c != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "TRY", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CATCH", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [2, 9], [6, 10], [3, 11], [8, 12], [9, 13], [8, 14], [12, 15], [9, 16], [14, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 2], [10, 6], [11, 3], [12, 8], [13, 9], [14, 8], [15, 12], [16, 9], [17, 14], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}], "label": 0}
{"sample_id": "camel-1.6-2776", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/restlet/RestletConsumer.java", "language": "java", "name": "org.apache.camel.component.restlet.RestletConsumer", "code": "public class RestletConsumer extends DefaultConsumer {\n    private static final Log LOG = LogFactory.getLog(RestletConsumer.class);\n    private Restlet restlet;\n\n    public RestletConsumer(Endpoint endpoint, Processor processor) \n        throws Exception {\n        super(endpoint, processor);\n        \n        restlet = new Restlet() {\n            @Override\n            public void handle(Request request, Response response) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Consumer restlet handle request method: \" + request.getMethod());\n                }\n                \n                try {\n                    Exchange exchange = getEndpoint().createExchange();\n                    RestletBinding binding = ((RestletEndpoint)getEndpoint()).getRestletBinding();\n                    binding.populateExchangeFromRestletRequest(request, exchange);\n                    getProcessor().process(exchange);\n                    binding.populateRestletResponseFromExchange(exchange, response);\n                } catch (Exception e) {\n                    throw new RuntimeCamelException(e);\n                }\n            }\n        };\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        ((RestletEndpoint)getEndpoint()).connect(this);\n    }\n\n    @Override\n    public void doStop() throws Exception {\n        ((RestletEndpoint)getEndpoint()).disconnect(this);\n        super.doStop();\n    }\n\n    public Restlet getRestlet() {\n        return restlet;", "functions": [{"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        ((RestletEndpoint)getEndpoint()).connect(this);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStop", "code": "    @Override\n    public void doStop() throws Exception {\n        ((RestletEndpoint)getEndpoint()).disconnect(this);\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRestlet", "code": "    public Restlet getRestlet() {\n        return restlet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RestletConsumer", "code": "    public RestletConsumer(Endpoint endpoint, Processor processor) \n        throws Exception {\n        super(endpoint, processor);\n        \n        restlet = new Restlet() {\n            @Override\n            public void handle(Request request, Response response) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Consumer restlet handle request method: \" + request.getMethod());\n                }\n                \n                try {\n                    Exchange exchange = getEndpoint().createExchange();\n                    RestletBinding binding = ((RestletEndpoint)getEndpoint()).getRestletBinding();\n                    binding.populateExchangeFromRestletRequest(request, exchange);\n                    getProcessor().process(exchange);\n                    binding.populateRestletResponseFromExchange(exchange, response);\n                } catch (Exception e) {\n                    throw new RuntimeCamelException(e);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [5, 6], [5, 7], [5, 8], [5, 9], [6, 10], [6, 11], [6, 12], [7, 13], [10, 14], [6, 15], [6, 16], [6, 17], [14, 18], [16, 19], [12, 20], [7, 21], [11, 22], [20, 23], [21, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 5], [7, 5], [8, 5], [9, 5], [10, 6], [11, 6], [12, 6], [13, 7], [14, 10], [15, 6], [16, 6], [17, 6], [18, 14], [19, 16], [20, 12], [21, 7], [22, 11], [23, 20], [24, 21], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}], "label": 0}
{"sample_id": "camel-1.4-2438", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/file/FileComponent.java", "language": "java", "name": "org.apache.camel.component.file.FileComponent", "code": "public class FileComponent extends DefaultComponent<FileExchange> {\n\n    /**\n     * Header key holding the value: the fixed filename to use for producing files.\n     */\n    public static final String HEADER_FILE_NAME = \"org.apache.camel.file.name\";\n\n\n    /**\n     * Header key holding the value: absolute filepath for the actual file produced.\n     * Value is set automatically by Camel\n     */\n    public static final String HEADER_FILE_NAME_PRODUCED = \"org.apache.camel.file.name.produced\";\n\n    public FileComponent() {\n    }\n\n    public FileComponent(CamelContext context) {\n        super(context);\n    }\n\n    protected Endpoint<FileExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        File file = new File(remaining);\n        FileEndpoint result = new FileEndpoint(file, uri, this);\n        setProperties(result, parameters);\n        return result;", "functions": [{"function_name": "createEndpoint", "code": "    protected Endpoint<FileExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        File file = new File(remaining);\n        FileEndpoint result = new FileEndpoint(file, uri, this);\n        setProperties(result, parameters);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "FileComponent", "code": "    public FileComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "FileComponent", "code": "    public FileComponent(CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.5-7258", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/XMLStringFactoryDefault.java", "language": "java", "name": "org.apache.xml.utils.XMLStringFactoryDefault", "code": "public class XMLStringFactoryDefault extends XMLStringFactory\n{\n  private static final XMLStringDefault EMPTY_STR = new XMLStringDefault(\"\");\n  \n  /**\n   * Create a new XMLString from a Java string.\n   *\n   *\n   * @param string Java String reference, which must be non-null.\n   *\n   * @return An XMLString object that wraps the String reference.\n   */\n  public XMLString newstr(String string)\n  {\n    return new XMLStringDefault(string);\n  }\n\n  /**\n   * Create a XMLString from a FastStringBuffer.\n   *\n   *\n   * @param fsb FastStringBuffer reference, which must be non-null.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   *\n   * @return An XMLString object that wraps the FastStringBuffer reference.\n   */\n  public XMLString newstr(FastStringBuffer fsb, int start, int length)\n  {\n    return new XMLStringDefault(fsb.getString(start, length));\n  }\n\n  /**\n   * Create a XMLString from a FastStringBuffer.\n   *\n   *\n   * @param string FastStringBuffer reference, which must be non-null.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   *\n   * @return An XMLString object that wraps the FastStringBuffer reference.\n   */\n  public XMLString newstr(char[] string, int start, int length)\n  {\n    return new XMLStringDefault(new String(string, start, length));\n  }\n                                   \n  /**\n   * Get a cheap representation of an empty string.\n   * \n   * @return An non-null reference to an XMLString that represents \"\".\n   */\n  public XMLString emptystr()\n  {\n    return EMPTY_STR;", "functions": [{"function_name": "newstr", "code": "  public XMLString newstr(String string)\n  {\n    return new XMLStringDefault(string);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "newstr", "code": "  public XMLString newstr(FastStringBuffer fsb, int start, int length)\n  {\n    return new XMLStringDefault(fsb.getString(start, length));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "newstr", "code": "  public XMLString newstr(char[] string, int start, int length)\n  {\n    return new XMLStringDefault(new String(string, start, length));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "emptystr", "code": "  public XMLString emptystr()\n  {\n    return EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.6-3159", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/impl/DefaultComponent.java", "language": "java", "name": "org.apache.camel.impl.DefaultComponent", "code": "public abstract class DefaultComponent<E extends Exchange> extends ServiceSupport implements Component<E> {\n    private static final transient Log LOG = LogFactory.getLog(DefaultComponent.class);\n\n    private int defaultThreadPoolSize = 5;\n    private CamelContext camelContext;\n    private ScheduledExecutorService executorService;\n    \n    public DefaultComponent() {\n    }\n\n    public DefaultComponent(CamelContext context) {\n        this.camelContext = context;\n    }\n\n    public Endpoint<E> createEndpoint(String uri) throws Exception {\n        ObjectHelper.notNull(getCamelContext(), \"camelContext\");\n        URI u = new URI(UnsafeUriCharactersEncoder.encode(uri));\n        String path = u.getSchemeSpecificPart();\n\n            path = path.substring(2);\n\n        int idx = path.indexOf('?');\n        if (idx > 0) {\n            path = path.substring(0, idx);\n        }\n        Map parameters = URISupport.parseParameters(u);\n\n        validateURI(uri, path, parameters);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Creating endpoint uri=[\" + uri + \"], path=[\" + path + \"], parameters=[\" + parameters + \"]\");\n        }\n        Endpoint<E> endpoint = createEndpoint(uri, path, parameters);\n        if (endpoint == null) {\n            return null;\n        }\n\n        if (parameters != null) {\n            endpoint.configureProperties(parameters);\n            if (useIntrospectionOnEndpoint()) {\n                setProperties(endpoint, parameters);\n            }\n\n            if (!endpoint.isLenientProperties() && parameters.size() > 0) {\n                throw new ResolveEndpointFailedException(uri, \"There are \" + parameters.size()\n                    + \" parameters that couldn't be set on the endpoint.\"\n                    + \" Check the uri if the parameters are spelt correctly and that they are properties of the endpoint.\"\n                    + \" Unknown parameters=[\" + parameters + \"]\");\n            }\n        }\n\n        return endpoint;\n    }\n\n    /**\n     * Strategy for validation of the uri when creating the endpoint.\n     *\n     * @param uri        the uri - the uri the end user provided untouched\n     * @param path       the path - part after the scheme\n     * @param parameters the parameters, an empty map if no parameters given\n     * @throws ResolveEndpointFailedException should be thrown if the URI validation failed\n     */\n    protected void validateURI(String uri, String path, Map parameters) throws ResolveEndpointFailedException {\n        if (uri.contains(\"&\") && !uri.contains(\"?\")) {\n            throw new ResolveEndpointFailedException(uri, \"Invalid uri syntax: no ? marker however the uri \"\n                + \"has & parameter separators. Check the uri if its missing a ? marker.\");\n        }\n\n        if (uri.contains(\"&&\")) {\n            throw new ResolveEndpointFailedException(uri, \"Invalid uri syntax: Double && marker found. \"\n                + \"Check the uri and remove the duplicate & marker.\");\n        }\n    }\n\n    public CamelContext getCamelContext() {\n        return camelContext;\n    }\n\n    public void setCamelContext(CamelContext context) {\n        this.camelContext = context;\n    }\n\n    public ScheduledExecutorService getExecutorService() {\n        if (executorService == null) {\n            executorService = createExecutorService();\n        }\n        return executorService;\n    }\n\n    public void setExecutorService(ScheduledExecutorService executorService) {\n        this.executorService = executorService;\n    }\n    \n    /**\n     * A factory method to create a default thread pool and executor\n     */\n    protected ScheduledExecutorService createExecutorService() {\n        return new ScheduledThreadPoolExecutor(defaultThreadPoolSize, new ThreadFactory() {\n            int counter;\n\n            public synchronized Thread newThread(Runnable runnable) {\n                Thread thread = new Thread(runnable);\n                thread.setName(\"Thread: \" + (++counter) + \" \" + DefaultComponent.this.toString());\n                return thread;\n            }\n        });\n    }\n\n    protected void doStart() throws Exception {\n        ObjectHelper.notNull(getCamelContext(), \"camelContext\");\n    }\n\n    protected void doStop() throws Exception {\n        if (executorService != null) {\n            executorService.shutdown();\n        }\n    }\n\n    /**\n     * A factory method allowing derived components to create a new endpoint\n     * from the given URI, remaining path and optional parameters\n     *\n     * @param uri the full URI of the endpoint\n     * @param remaining the remaining part of the URI without the query\n     *                parameters or component prefix\n     * @param parameters the optional parameters passed in\n     * @return a newly created endpoint or null if the endpoint cannot be\n     *         created based on the inputs\n     */\n    protected abstract Endpoint<E> createEndpoint(String uri, String remaining, Map parameters)\n        throws Exception;\n\n    /**\n     * Sets the bean properties on the given bean\n     */\n    protected void setProperties(Object bean, Map parameters) throws Exception {\n        IntrospectionSupport.setProperties(getCamelContext().getTypeConverter(), bean, parameters);\n    }\n\n    /**\n     * Derived classes may wish to overload this to prevent the default introspection of URI parameters\n     * on the created Endpoint instance\n     */\n    protected boolean useIntrospectionOnEndpoint() {\n        return true;\n    }\n\n\n\n    /**\n     * Converts the given value to the requested type\n     */\n    public <T> T convertTo(Class<T> type, Object value) {\n        return CamelContextHelper.convertTo(getCamelContext(), type, value);\n    }\n\n    /**\n     * Converts the given value to the specified type throwing an {@link IllegalArgumentException}\n     * if the value could not be converted to a non null value\n     */\n    public  <T> T mandatoryConvertTo(Class<T> type, Object value) {\n        return CamelContextHelper.mandatoryConvertTo(getCamelContext(), type, value);\n    }\n\n    /**\n     * Creates a new instance of the given type using the {@link Injector} on the given\n     * {@link CamelContext}\n     */\n    public  <T> T newInstance(Class<T> beanType) {\n        return getCamelContext().getInjector().newInstance(beanType);\n    }\n\n    /**\n     * Look up the given named bean in the {@link Registry} on the\n     * {@link CamelContext}\n     */\n    public Object lookup(String name) {\n        return getCamelContext().getRegistry().lookup(name);\n    }\n\n    /**\n     * Look up the given named bean of the given type in the {@link Registry} on the\n     * {@link CamelContext}\n     */\n    public <T> T lookup(String name, Class<T> beanType) {\n        return getCamelContext().getRegistry().lookup(name, beanType);\n    }\n\n    /**\n     * Look up the given named bean in the {@link Registry} on the\n     * {@link CamelContext} or throws\n     */\n    public Object mandatoryLookup(String name) {\n        return CamelContextHelper.mandatoryLookup(getCamelContext(), name);\n    }\n\n    /**\n     * Look up the given named bean of the given type in the {@link Registry} on the\n     * {@link CamelContext}\n     */\n    public <T> T mandatoryLookup(String name, Class<T> beanType) {\n        return CamelContextHelper.mandatoryLookup(getCamelContext(), name, beanType);\n    }\n\n    /**\n     * Gets the parameter and remove it from the parameter map.\n     * \n     * @param parameters  the parameters\n     * @param key        the key\n     * @param type       the requested type to convert the value from the parameter\n     * @return  the converted value parameter, <tt>null</tt> if parameter does not exists.\n     */\n    public <T> T getAndRemoveParameter(Map parameters, String key, Class<T> type) {\n        return getAndRemoveParameter(parameters, key, type, null);\n    }\n\n    /**\n     * Gets the parameter and remove it from the parameter map.\n     *\n     * @param parameters     the parameters\n     * @param key           the key\n     * @param type          the requested type to convert the value from the parameter\n     * @param defaultValue  use this default value if the parameter does not contain the key\n     * @return  the converted value parameter\n     */\n    public <T> T getAndRemoveParameter(Map parameters, String key, Class<T> type, T defaultValue) {\n        Object value = parameters.remove(key);\n        if (value == null) {\n            value = defaultValue;\n        }\n        if (value == null) {\n            return null;\n        }\n        return convertTo(type, value);", "functions": [{"function_name": "createEndpoint", "code": "    public Endpoint<E> createEndpoint(String uri) throws Exception {\n        ObjectHelper.notNull(getCamelContext(), \"camelContext\");\n        URI u = new URI(UnsafeUriCharactersEncoder.encode(uri));\n        String path = u.getSchemeSpecificPart();\n\n            path = path.substring(2);\n\n        int idx = path.indexOf('?');\n        if (idx > 0) {\n            path = path.substring(0, idx);\n        }\n        Map parameters = URISupport.parseParameters(u);\n\n        validateURI(uri, path, parameters);\n\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Creating endpoint uri=[\" + uri + \"], path=[\" + path + \"], parameters=[\" + parameters + \"]\");\n        }\n        Endpoint<E> endpoint = createEndpoint(uri, path, parameters);\n        if (endpoint == null) {\n            return null;\n        }\n\n        if (parameters != null) {\n            endpoint.configureProperties(parameters);\n            if (useIntrospectionOnEndpoint()) {\n                setProperties(endpoint, parameters);\n            }\n\n            if (!endpoint.isLenientProperties() && parameters.size() > 0) {\n                throw new ResolveEndpointFailedException(uri, \"There are \" + parameters.size()\n                    + \" parameters that couldn't be set on the endpoint.\"\n                    + \" Check the uri if the parameters are spelt correctly and that they are properties of the endpoint.\"\n                    + \" Unknown parameters=[\" + parameters + \"]\");\n            }\n        }\n\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "IF", "IF", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [2, 12], [3, 13], [5, 14], [0, 15], [7, 16], [0, 17], [0, 18], [2, 19], [2, 20], [12, 21], [3, 22], [13, 23], [4, 24], [6, 25], [16, 26], [8, 27], [17, 28], [9, 29], [10, 30], [18, 31], [18, 32], [19, 33], [20, 34], [2, 35], [22, 36], [5, 37], [7, 38], [27, 39], [28, 40], [30, 41], [19, 42], [33, 43], [33, 44], [37, 45], [38, 46], [42, 47], [43, 48], [43, 49], [20, 50], [45, 51], [45, 52], [46, 53], [47, 54], [52, 55], [54, 56], [54, 57], [55, 58], [55, 59], [57, 60], [59, 61], [60, 62], [60, 63], [61, 64], [61, 65], [63, 66], [63, 67], [65, 68], [67, 69], [67, 70], [70, 71], [70, 72], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 2], [13, 3], [14, 5], [15, 0], [16, 7], [17, 0], [18, 0], [19, 2], [20, 2], [21, 12], [22, 3], [23, 13], [24, 4], [25, 6], [26, 16], [27, 8], [28, 17], [29, 9], [30, 10], [31, 18], [32, 18], [33, 19], [34, 20], [35, 2], [36, 22], [37, 5], [38, 7], [39, 27], [40, 28], [41, 30], [42, 19], [43, 33], [44, 33], [45, 37], [46, 38], [47, 42], [48, 43], [49, 43], [50, 20], [51, 45], [52, 45], [53, 46], [54, 47], [55, 52], [56, 54], [57, 54], [58, 55], [59, 55], [60, 57], [61, 59], [62, 60], [63, 60], [64, 61], [65, 61], [66, 63], [67, 63], [68, 65], [69, 67], [70, 67], [71, 70], [72, 70], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72]]}, {"function_name": "validateURI", "code": "    protected void validateURI(String uri, String path, Map parameters) throws ResolveEndpointFailedException {\n        if (uri.contains(\"&\") && !uri.contains(\"?\")) {\n            throw new ResolveEndpointFailedException(uri, \"Invalid uri syntax: no ? marker however the uri \"\n                + \"has & parameter separators. Check the uri if its missing a ? marker.\");\n        }\n\n        if (uri.contains(\"&&\")) {\n            throw new ResolveEndpointFailedException(uri, \"Invalid uri syntax: Double && marker found. \"\n                + \"Check the uri and remove the duplicate & marker.\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [6, 9], [2, 10], [7, 11], [7, 12], [8, 13], [10, 14], [11, 15], [12, 16], [13, 17], [14, 18], [17, 19], [17, 20], [18, 21], [18, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 6], [10, 2], [11, 7], [12, 7], [13, 8], [14, 10], [15, 11], [16, 12], [17, 13], [18, 14], [19, 17], [20, 17], [21, 18], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getCamelContext", "code": "    public CamelContext getCamelContext() {\n        return camelContext;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCamelContext", "code": "    public void setCamelContext(CamelContext context) {\n        this.camelContext = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExecutorService", "code": "    public ScheduledExecutorService getExecutorService() {\n        if (executorService == null) {\n            executorService = createExecutorService();\n        }\n        return executorService;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExecutorService", "code": "    public void setExecutorService(ScheduledExecutorService executorService) {\n        this.executorService = executorService;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExecutorService", "code": "    protected ScheduledExecutorService createExecutorService() {\n        return new ScheduledThreadPoolExecutor(defaultThreadPoolSize, new ThreadFactory() {\n            int counter;\n\n            public synchronized Thread newThread(Runnable runnable) {\n                Thread thread = new Thread(runnable);\n                thread.setName(\"Thread: \" + (++counter) + \" \" + DefaultComponent.this.toString());\n                return thread;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL", "FUNC_DECL", "VAR_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [3, 5], [4, 6], [4, 7], [4, 8], [4, 9], [9, 10], [7, 11], [10, 12], [10, 13], [12, 14], [12, 15], [15, 16], [1, 0], [2, 1], [3, 2], [4, 3], [5, 3], [6, 4], [7, 4], [8, 4], [9, 4], [10, 9], [11, 7], [12, 10], [13, 10], [14, 12], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ObjectHelper.notNull(getCamelContext(), \"camelContext\");", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        if (executorService != null) {\n            executorService.shutdown();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createEndpoint", "code": "    protected abstract Endpoint<E> createEndpoint(String uri, String remaining, Map parameters)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setProperties", "code": "    protected void setProperties(Object bean, Map parameters) throws Exception {\n        IntrospectionSupport.setProperties(getCamelContext().getTypeConverter(), bean, parameters);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "useIntrospectionOnEndpoint", "code": "    protected boolean useIntrospectionOnEndpoint() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "convertTo", "code": "    public <T> T convertTo(Class<T> type, Object value) {\n        return CamelContextHelper.convertTo(getCamelContext(), type, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "mandatoryConvertTo", "code": "    public  <T> T mandatoryConvertTo(Class<T> type, Object value) {\n        return CamelContextHelper.mandatoryConvertTo(getCamelContext(), type, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "newInstance", "code": "    public  <T> T newInstance(Class<T> beanType) {\n        return getCamelContext().getInjector().newInstance(beanType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookup", "code": "    public Object lookup(String name) {\n        return getCamelContext().getRegistry().lookup(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lookup", "code": "    public <T> T lookup(String name, Class<T> beanType) {\n        return getCamelContext().getRegistry().lookup(name, beanType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "mandatoryLookup", "code": "    public Object mandatoryLookup(String name) {\n        return CamelContextHelper.mandatoryLookup(getCamelContext(), name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "mandatoryLookup", "code": "    public <T> T mandatoryLookup(String name, Class<T> beanType) {\n        return CamelContextHelper.mandatoryLookup(getCamelContext(), name, beanType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getAndRemoveParameter", "code": "    public <T> T getAndRemoveParameter(Map parameters, String key, Class<T> type) {\n        return getAndRemoveParameter(parameters, key, type, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getAndRemoveParameter", "code": "    public <T> T getAndRemoveParameter(Map parameters, String key, Class<T> type, T defaultValue) {\n        Object value = parameters.remove(key);\n        if (value == null) {\n            value = defaultValue;\n        }\n        if (value == null) {\n            return null;\n        }\n        return convertTo(type, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [2, 12], [10, 13], [11, 14], [4, 15], [12, 16], [3, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 2], [13, 10], [14, 11], [15, 4], [16, 12], [17, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "DefaultComponent", "code": "    public DefaultComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DefaultComponent", "code": "    public DefaultComponent(CamelContext context) {\n        this.camelContext = context;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-2.0-5418", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/BOFRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.BOFRecord", "code": "public class BOFRecord\n    extends Record\n{\n\n    /**\n     * for BIFF8 files the BOF is 0x809.  For earlier versions it was 0x09 or 0x(biffversion)09\n     */\n\n    public final static short sid = 0x809;\n    private short             field_1_version;\n    private short             field_2_type;\n    private short             field_3_build;\n    private short             field_4_year;\n    private int               field_5_history;\n    private int               field_6_rversion;\n\n    /**\n     * suggested default (0x06 - BIFF8)\n     */\n\n    public final static short VERSION             = 0x06;\n\n    /**\n     * suggested default 0x10d3\n     */\n\n    public final static short BUILD               = 0x10d3;\n\n    /**\n     * suggested default  0x07CC (1996)\n     */\n\n\n    /**\n     * suggested default for a normal sheet (0x41)\n     */\n\n    public final static short HISTORY_MASK        = 0x41;\n    public final static short TYPE_WORKBOOK       = 0x05;\n    public final static short TYPE_VB_MODULE      = 0x06;\n    public final static short TYPE_WORKSHEET      = 0x10;\n    public final static short TYPE_CHART          = 0x20;\n    public final static short TYPE_EXCEL_4_MACRO  = 0x40;\n    public final static short TYPE_WORKSPACE_FILE = 0x100;\n\n    /**\n     * Constructs an empty BOFRecord with no fields set.\n     */\n\n    public BOFRecord()\n    {\n    }\n\n    /**\n     * Constructs a BOFRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0x809 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public BOFRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n\n    }\n\n    /**\n     * Constructs a BOFRecord and sets its fields appropriately\n     *\n     * @param id     id must be 0x809 or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset the offset of the record's data\n     */\n\n    public BOFRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A BOF RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_version  = LittleEndian.getShort(data, 0 + offset);\n        field_2_type     = LittleEndian.getShort(data, 2 + offset);\n        field_3_build    = LittleEndian.getShort(data, 4 + offset);\n        field_4_year     = LittleEndian.getShort(data, 6 + offset);\n        field_5_history  = LittleEndian.getInt(data, 8 + offset);\n        field_6_rversion = LittleEndian.getInt(data, 12 + offset);\n    }\n\n    /**\n     * Version number - for BIFF8 should be 0x06\n     * @see #VERSION\n     * @param short version to be set\n     */\n\n    public void setVersion(short version)\n    {\n        field_1_version = version;\n    }\n\n    /**\n     * type of object this marks\n     * @see #TYPE_WORKBOOK\n     * @see #TYPE_VB_MODULE\n     * @see #TYPE_WORKSHEET\n     * @see #TYPE_CHART\n     * @see #TYPE_EXCEL_4_MACRO\n     * @see #TYPE_WORKSPACE_FILE\n     * @param short type to be set\n     */\n\n    public void setType(short type)\n    {\n        field_2_type = type;\n    }\n\n    /**\n     * build that wrote this file\n     * @see #BUILD\n     * @param short build number to set\n     */\n\n    public void setBuild(short build)\n    {\n        field_3_build = build;\n    }\n\n    /**\n     * Year of the build that wrote this file\n     * @see #BUILD_YEAR\n     * @param short build year to set\n     */\n\n    public void setBuildYear(short year)\n    {\n        field_4_year = year;\n    }\n\n    /**\n     * set the history bit mask (not very useful)\n     * @see #HISTORY_MASK\n     * @param int bitmask to set for the history\n     */\n\n    public void setHistoryBitMask(int bitmask)\n    {\n        field_5_history = bitmask;\n    }\n\n    /**\n     * set the minimum version required to read this file\n     *\n     * @see #VERSION\n     * @param int version to set\n     */\n\n    public void setRequiredVersion(int version)\n    {\n        field_6_rversion = version;\n    }\n\n    /**\n     * Version number - for BIFF8 should be 0x06\n     * @see #VERSION\n     * @return short version number of the generator of this file\n     */\n\n    public short getVersion()\n    {\n        return field_1_version;\n    }\n\n    /**\n     * type of object this marks\n     * @see #TYPE_WORKBOOK\n     * @see #TYPE_VB_MODULE\n     * @see #TYPE_WORKSHEET\n     * @see #TYPE_CHART\n     * @see #TYPE_EXCEL_4_MACRO\n     * @see #TYPE_WORKSPACE_FILE\n     * @return short type of object\n     */\n\n    public short getType()\n    {\n        return field_2_type;\n    }\n\n    /**\n     * get the build that wrote this file\n     * @see #BUILD\n     * @return short build number of the generator of this file\n     */\n\n    public short getBuild()\n    {\n        return field_3_build;\n    }\n\n    /**\n     * Year of the build that wrote this file\n     * @see #BUILD_YEAR\n     * @return short build year of the generator of this file\n     */\n\n    public short getBuildYear()\n    {\n        return field_4_year;\n    }\n\n    /**\n     * get the history bit mask (not very useful)\n     * @see #HISTORY_MASK\n     * @return int bitmask showing the history of the file (who cares!)\n     */\n\n    public int getHistoryBitMask()\n    {\n        return field_5_history;\n    }\n\n    /**\n     * get the minimum version required to read this file\n     *\n     * @see #VERSION\n     * @return int least version that can read the file\n     */\n\n    public int getRequiredVersion()\n    {\n        return field_6_rversion;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[BOF RECORD]\\n\");\n        buffer.append(\"    .version         = \")\n            .append(Integer.toHexString(getVersion())).append(\"\\n\");\n        buffer.append(\"    .type            = \")\n            .append(Integer.toHexString(getType())).append(\"\\n\");\n        buffer.append(\"    .build           = \")\n            .append(Integer.toHexString(getBuild())).append(\"\\n\");\n        buffer.append(\"    .buildyear       = \").append(getBuildYear())\n            .append(\"\\n\");\n        buffer.append(\"    .history         = \")\n            .append(Integer.toHexString(getHistoryBitMask())).append(\"\\n\");\n        buffer.append(\"    .requiredversion = \")\n            .append(Integer.toHexString(getRequiredVersion())).append(\"\\n\");\n        buffer.append(\"[/BOF RECORD]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getVersion());\n        LittleEndian.putShort(data, 6 + offset, getType());\n        LittleEndian.putShort(data, 8 + offset, getBuild());\n        LittleEndian.putShort(data, 10 + offset, getBuildYear());\n        LittleEndian.putInt(data, 12 + offset, getHistoryBitMask());\n        LittleEndian.putInt(data, 16 + offset, getRequiredVersion());\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 20;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n      BOFRecord rec = new BOFRecord();\n      rec.field_1_version = field_1_version;\n      rec.field_2_type = field_2_type;\n      rec.field_3_build = field_3_build;\n      rec.field_4_year = field_4_year;\n      rec.field_5_history = field_5_history;\n      rec.field_6_rversion = field_6_rversion;\n      return rec;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A BOF RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_version  = LittleEndian.getShort(data, 0 + offset);\n        field_2_type     = LittleEndian.getShort(data, 2 + offset);\n        field_3_build    = LittleEndian.getShort(data, 4 + offset);\n        field_4_year     = LittleEndian.getShort(data, 6 + offset);\n        field_5_history  = LittleEndian.getInt(data, 8 + offset);\n        field_6_rversion = LittleEndian.getInt(data, 12 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [6, 12], [7, 13], [8, 14], [9, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [15, 21], [16, 22], [17, 23], [18, 24], [19, 25], [20, 26], [21, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 6], [13, 7], [14, 8], [15, 9], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 15], [22, 16], [23, 17], [24, 18], [25, 19], [26, 20], [27, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "setVersion", "code": "    public void setVersion(short version)\n    {\n        field_1_version = version;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setType", "code": "    public void setType(short type)\n    {\n        field_2_type = type;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBuild", "code": "    public void setBuild(short build)\n    {\n        field_3_build = build;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setBuildYear", "code": "    public void setBuildYear(short year)\n    {\n        field_4_year = year;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setHistoryBitMask", "code": "    public void setHistoryBitMask(int bitmask)\n    {\n        field_5_history = bitmask;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRequiredVersion", "code": "    public void setRequiredVersion(int version)\n    {\n        field_6_rversion = version;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVersion", "code": "    public short getVersion()\n    {\n        return field_1_version;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getType", "code": "    public short getType()\n    {\n        return field_2_type;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBuild", "code": "    public short getBuild()\n    {\n        return field_3_build;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBuildYear", "code": "    public short getBuildYear()\n    {\n        return field_4_year;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHistoryBitMask", "code": "    public int getHistoryBitMask()\n    {\n        return field_5_history;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRequiredVersion", "code": "    public int getRequiredVersion()\n    {\n        return field_6_rversion;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[BOF RECORD]\\n\");\n        buffer.append(\"    .version         = \")\n            .append(Integer.toHexString(getVersion())).append(\"\\n\");\n        buffer.append(\"    .type            = \")\n            .append(Integer.toHexString(getType())).append(\"\\n\");\n        buffer.append(\"    .build           = \")\n            .append(Integer.toHexString(getBuild())).append(\"\\n\");\n        buffer.append(\"    .buildyear       = \").append(getBuildYear())\n            .append(\"\\n\");\n        buffer.append(\"    .history         = \")\n            .append(Integer.toHexString(getHistoryBitMask())).append(\"\\n\");\n        buffer.append(\"    .requiredversion = \")\n            .append(Integer.toHexString(getRequiredVersion())).append(\"\\n\");\n        buffer.append(\"[/BOF RECORD]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [4, 12], [5, 13], [5, 14], [5, 15], [6, 16], [6, 17], [6, 18], [7, 19], [7, 20], [7, 21], [8, 22], [8, 23], [8, 24], [9, 25], [9, 26], [9, 27], [10, 28], [10, 29], [10, 30], [11, 31], [2, 32], [14, 33], [15, 34], [17, 35], [18, 36], [20, 37], [21, 38], [23, 39], [24, 40], [26, 41], [27, 42], [29, 43], [30, 44], [34, 45], [36, 46], [40, 47], [42, 48], [44, 49], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 4], [13, 5], [14, 5], [15, 5], [16, 6], [17, 6], [18, 6], [19, 7], [20, 7], [21, 7], [22, 8], [23, 8], [24, 8], [25, 9], [26, 9], [27, 9], [28, 10], [29, 10], [30, 10], [31, 11], [32, 2], [33, 14], [34, 15], [35, 17], [36, 18], [37, 20], [38, 21], [39, 23], [40, 24], [41, 26], [42, 27], [43, 29], [44, 30], [45, 34], [46, 36], [47, 40], [48, 42], [49, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, getVersion());\n        LittleEndian.putShort(data, 6 + offset, getType());\n        LittleEndian.putShort(data, 8 + offset, getBuild());\n        LittleEndian.putShort(data, 10 + offset, getBuildYear());\n        LittleEndian.putInt(data, 12 + offset, getHistoryBitMask());\n        LittleEndian.putInt(data, 16 + offset, getRequiredVersion());\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [5, 13], [5, 14], [6, 15], [6, 16], [7, 17], [7, 18], [8, 19], [8, 20], [9, 21], [9, 22], [10, 23], [10, 24], [11, 25], [12, 26], [14, 27], [16, 28], [18, 29], [20, 30], [22, 31], [24, 32], [25, 33], [26, 34], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 5], [14, 5], [15, 6], [16, 6], [17, 7], [18, 7], [19, 8], [20, 8], [21, 9], [22, 9], [23, 10], [24, 10], [25, 11], [26, 12], [27, 14], [28, 16], [29, 18], [30, 20], [31, 22], [32, 24], [33, 25], [34, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 20;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      BOFRecord rec = new BOFRecord();\n      rec.field_1_version = field_1_version;\n      rec.field_2_type = field_2_type;\n      rec.field_3_build = field_3_build;\n      rec.field_4_year = field_4_year;\n      rec.field_5_history = field_5_history;\n      rec.field_6_rversion = field_6_rversion;\n      return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "BOFRecord", "code": "    public BOFRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "BOFRecord", "code": "    public BOFRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BOFRecord", "code": "    public BOFRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-3.0-6340", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/TabIdRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.TabIdRecord", "code": "public class TabIdRecord\n    extends Record\n{\n    public final static short sid = 0x13d;\n    public short[]            field_1_tabids;\n\n    public TabIdRecord()\n    {\n    }\n\n    /**\n     * Constructs a TabID record and sets its fields appropriately.\n     *\n     * @param id     id must be 0x13d or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public TabIdRecord(RecordInputStream in)\n    {\n        super(in);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A TABID RECORD\");\n        }\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n        field_1_tabids = new short[ in.remaining() / 2 ];\n        for (int k = 0; k < field_1_tabids.length; k++)\n        {\n            field_1_tabids[ k ] = in.readShort();\n        }\n    }\n\n    /**\n     * set the tab array.  (0,1,2).\n     * @param array of tab id's {0,1,2}\n     */\n\n    public void setTabIdArray(short [] array)\n    {\n        field_1_tabids = array;\n    }\n\n    /**\n     * get the tab array.  (0,1,2).\n     * @return array of tab id's {0,1,2}\n     */\n\n    public short [] getTabIdArray()\n    {\n        return field_1_tabids;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[TABID]\\n\");\n        buffer.append(\"    .elements        = \").append(field_1_tabids.length)\n            .append(\"\\n\");\n        for (int k = 0; k < field_1_tabids.length; k++)\n        {\n            buffer.append(\"    .element_\" + k + \"       = \")\n                .append(field_1_tabids[ k ]).append(\"\\n\");\n        }\n        buffer.append(\"[/TABID]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        short[] tabids     = getTabIdArray();\n        short   length     = ( short ) (tabids.length * 2);\n        int     byteoffset = 4;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n\n        for (int k = 0; k < (length / 2); k++)\n        {\n            LittleEndian.putShort(data, byteoffset + offset, tabids[ k ]);\n            byteoffset += 2;\n        }\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 4 + (getTabIdArray().length * 2);\n    }\n\n    public short getSid()\n    {\n        return sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A TABID RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n        field_1_tabids = new short[ in.remaining() / 2 ];\n        for (int k = 0; k < field_1_tabids.length; k++)\n        {\n            field_1_tabids[ k ] = in.readShort();", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 6], [4, 7], [5, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 1], [7, 4], [8, 5], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setTabIdArray", "code": "    public void setTabIdArray(short [] array)\n    {\n        field_1_tabids = array;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTabIdArray", "code": "    public short [] getTabIdArray()\n    {\n        return field_1_tabids;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[TABID]\\n\");\n        buffer.append(\"    .elements        = \").append(field_1_tabids.length)\n            .append(\"\\n\");\n        for (int k = 0; k < field_1_tabids.length; k++)\n        {\n            buffer.append(\"    .element_\" + k + \"       = \")\n                .append(field_1_tabids[ k ]).append(\"\\n\");\n        }\n        buffer.append(\"[/TABID]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [0, 7], [0, 8], [5, 9], [7, 10], [7, 11], [7, 12], [8, 13], [3, 14], [2, 15], [2, 16], [11, 17], [15, 18], [15, 19], [15, 20], [18, 21], [18, 22], [19, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [7, 0], [8, 0], [9, 5], [10, 7], [11, 7], [12, 7], [13, 8], [14, 3], [15, 2], [16, 2], [17, 11], [18, 15], [19, 15], [20, 15], [21, 18], [22, 18], [23, 19], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        short[] tabids     = getTabIdArray();\n        short   length     = ( short ) (tabids.length * 2);\n        int     byteoffset = 4;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n\n        for (int k = 0; k < (length / 2); k++)\n        {\n            LittleEndian.putShort(data, byteoffset + offset, tabids[ k ]);\n            byteoffset += 2;\n        }\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [0, 10], [0, 11], [9, 12], [10, 13], [11, 14], [3, 15], [5, 16], [2, 17], [2, 18], [12, 19], [2, 20], [13, 21], [14, 22], [4, 23], [17, 24], [18, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 0], [11, 0], [12, 9], [13, 10], [14, 11], [15, 3], [16, 5], [17, 2], [18, 2], [19, 12], [20, 2], [21, 13], [22, 14], [23, 4], [24, 17], [25, 18], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4 + (getTabIdArray().length * 2);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "TabIdRecord", "code": "    public TabIdRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "TabIdRecord", "code": "    public TabIdRecord(RecordInputStream in)\n    {\n        super(in);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "xalan-2.6-7846", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/FunctionAvailableCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.FunctionAvailableCall", "code": "final class FunctionAvailableCall extends FunctionCall {\n\n    private Expression _arg; \n    private String     _nameOfFunct = null; \n    private String     _namespaceOfFunct = null; \t\n    private boolean    _isFunctionAvailable = false; \n\n    /**\n     * Constructs a FunctionAvailableCall FunctionCall. Takes the\n     * function name qname, for example, 'function-available', and \n     * a list of arguments where the arguments must be instances of \n     * LiteralExpression. \n     */\n    public FunctionAvailableCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n\t_arg = (Expression)arguments.elementAt(0);\n\t_type = null; \n\n        if (_arg instanceof LiteralExpr) {\n\t    LiteralExpr arg = (LiteralExpr) _arg;\n            _namespaceOfFunct = arg.getNamespace();\n            _nameOfFunct = arg.getValue();\n\n            if (!isInternalNamespace()) {\n              _isFunctionAvailable = hasMethods();\n            }\n        }\n    }\n\n    /**\n     * Argument of function-available call must be literal, typecheck\n     * returns the type of function-available to be boolean.  \n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_type != null) {\n\t   return _type;\n\t}\n\tif (_arg instanceof LiteralExpr) {\n\t    return _type = Type.Boolean;\n\t}\n\tErrorMsg err = new ErrorMsg(ErrorMsg.NEED_LITERAL_ERR,\n\t\t\t\"function-available\", this);\n\tthrow new TypeCheckError(err);\n    }\n\n    /**\n     * Returns an object representing the compile-time evaluation \n     * of an expression. We are only using this for function-available\n     * and element-available at this time.\n     */\n    public Object evaluateAtCompileTime() {\n\treturn getResult() ? Boolean.TRUE : Boolean.FALSE;\n    }\n\n    /**\n     * for external java functions only: reports on whether or not\n     * the specified method is found in the specifed class. \n     */\n    private boolean hasMethods() {\n\tLiteralExpr arg = (LiteralExpr)_arg;\n\t\n\tString className = getClassNameFromUri(_namespaceOfFunct);\n\t\n\tString methodName = null;\n\tint colonIndex = _nameOfFunct.indexOf(\":\");\n\tif (colonIndex > 0) {\n\t  String functionName = _nameOfFunct.substring(colonIndex+1);\n\t  int lastDotIndex = functionName.lastIndexOf('.');\n\t  if (lastDotIndex > 0) {\n\t    methodName = functionName.substring(lastDotIndex+1);\n\t    if (className != null && !className.equals(\"\"))\n\t      className = className + \".\" + functionName.substring(0, lastDotIndex);\n\t    else\n\t      className = functionName.substring(0, lastDotIndex);\n\t  }\n\t  else\n\t    methodName = functionName;\n\t}\n\telse\n\t  methodName = _nameOfFunct;\n\t  \n\tif (className == null || methodName == null) {\n\t    return false;\n\t}\n\t\n\tif (methodName.indexOf('-') > 0)\n\t  methodName = replaceDash(methodName);\n\n\ttry {\n            final Class clazz = ObjectFactory.findProviderClass(\n                className, ObjectFactory.findClassLoader(), true);\n\n\t    if (clazz == null) {\n\t    \treturn false;\n\t    }\n\n\t    final Method[] methods = clazz.getMethods();\n\n\t    for (int i = 0; i < methods.length; i++) {\n\t\tfinal int mods = methods[i].getModifiers();\n\n\t\tif (Modifier.isPublic(mods) && Modifier.isStatic(mods)\n\t\t\t&& methods[i].getName().equals(methodName))\n\t\t{\n\t\t    return true;\n\t\t}\n\t    }\n\t}\n\tcatch (ClassNotFoundException e) {\n\t  return false;\n\t}\n        return false;   \n    }\n\n    /**\n     * Reports on whether the function specified in the argument to\n     * xslt function 'function-available' was found.\n     */\n    public boolean getResult() {\n\tif (_nameOfFunct == null) { \n\t    return false;\n\t}\n\n        if (isInternalNamespace()) {\n            final Parser parser = getParser();\n            _isFunctionAvailable = \n\t\tparser.functionSupported(Util.getLocalName(_nameOfFunct));\n        }\n \treturn _isFunctionAvailable;\n    }\n    \n    /**\n     * Return true if the namespace uri is null or it is the XSLTC translet uri.\n     */\n    private boolean isInternalNamespace() {\n    \treturn (_namespaceOfFunct == null ||\n            _namespaceOfFunct.equals(EMPTYSTRING) ||\n\t    _namespaceOfFunct.equals(TRANSLET_URI));\n    }\n\n    /**\n     * Calls to 'function-available' are resolved at compile time since \n     * the namespaces declared in the stylsheet are not available at run\n     * time. Consequently, arguments to this function must be literals.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tmethodGen.getInstructionList().append(new PUSH(cpg, getResult()));", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_type != null) {\n\t   return _type;\n\t}\n\tif (_arg instanceof LiteralExpr) {\n\t    return _type = Type.Boolean;\n\t}\n\tErrorMsg err = new ErrorMsg(ErrorMsg.NEED_LITERAL_ERR,\n\t\t\t\"function-available\", this);\n\tthrow new TypeCheckError(err);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [2, 9], [3, 10], [4, 11], [8, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 2], [10, 3], [11, 4], [12, 8], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "evaluateAtCompileTime", "code": "    public Object evaluateAtCompileTime() {\n\treturn getResult() ? Boolean.TRUE : Boolean.FALSE;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hasMethods", "code": "    private boolean hasMethods() {\n\tLiteralExpr arg = (LiteralExpr)_arg;\n\t\n\tString className = getClassNameFromUri(_namespaceOfFunct);\n\t\n\tString methodName = null;\n\tint colonIndex = _nameOfFunct.indexOf(\":\");\n\tif (colonIndex > 0) {\n\t  String functionName = _nameOfFunct.substring(colonIndex+1);\n\t  int lastDotIndex = functionName.lastIndexOf('.');\n\t  if (lastDotIndex > 0) {\n\t    methodName = functionName.substring(lastDotIndex+1);\n\t    if (className != null && !className.equals(\"\"))\n\t      className = className + \".\" + functionName.substring(0, lastDotIndex);\n\t    else\n\t      className = functionName.substring(0, lastDotIndex);\n\t  }\n\t  else\n\t    methodName = functionName;\n\t}\n\telse\n\t  methodName = _nameOfFunct;\n\t  \n\tif (className == null || methodName == null) {\n\t    return false;\n\t}\n\t\n\tif (methodName.indexOf('-') > 0)\n\t  methodName = replaceDash(methodName);\n\n\ttry {\n            final Class clazz = ObjectFactory.findProviderClass(\n                className, ObjectFactory.findClassLoader(), true);\n\n\t    if (clazz == null) {\n\t    \treturn false;\n\t    }\n\n\t    final Method[] methods = clazz.getMethods();\n\n\t    for (int i = 0; i < methods.length; i++) {\n\t\tfinal int mods = methods[i].getModifiers();\n\n\t\tif (Modifier.isPublic(mods) && Modifier.isStatic(mods)\n\t\t\t&& methods[i].getName().equals(methodName))\n\t\t{\n\t\t    return true;\n\t\t}\n\t    }\n\t}\n\tcatch (ClassNotFoundException e) {\n\t  return false;\n\t}\n        return false;   ", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CATCH", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [3, 16], [4, 17], [5, 18], [11, 19], [12, 20], [14, 21], [3, 22], [16, 23], [16, 24], [4, 25], [17, 26], [17, 27], [5, 28], [5, 29], [5, 30], [5, 31], [18, 32], [6, 33], [7, 34], [8, 35], [19, 36], [12, 37], [12, 38], [13, 39], [14, 40], [21, 41], [15, 42], [22, 43], [24, 44], [25, 45], [26, 46], [27, 47], [29, 48], [33, 49], [37, 50], [12, 51], [40, 52], [42, 53], [42, 54], [29, 55], [29, 56], [48, 57], [30, 58], [31, 59], [37, 60], [50, 61], [56, 62], [29, 63], [58, 64], [59, 65], [60, 66], [50, 67], [50, 68], [61, 69], [61, 70], [38, 71], [56, 72], [56, 73], [62, 74], [62, 75], [63, 76], [65, 77], [72, 78], [73, 79], [74, 80], [75, 81], [76, 82], [78, 83], [79, 84], [79, 85], [82, 86], [84, 87], [85, 88], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 3], [17, 4], [18, 5], [19, 11], [20, 12], [21, 14], [22, 3], [23, 16], [24, 16], [25, 4], [26, 17], [27, 17], [28, 5], [29, 5], [30, 5], [31, 5], [32, 18], [33, 6], [34, 7], [35, 8], [36, 19], [37, 12], [38, 12], [39, 13], [40, 14], [41, 21], [42, 15], [43, 22], [44, 24], [45, 25], [46, 26], [47, 27], [48, 29], [49, 33], [50, 37], [51, 12], [52, 40], [53, 42], [54, 42], [55, 29], [56, 29], [57, 48], [58, 30], [59, 31], [60, 37], [61, 50], [62, 56], [63, 29], [64, 58], [65, 59], [66, 60], [67, 50], [68, 50], [69, 61], [70, 61], [71, 38], [72, 56], [73, 56], [74, 62], [75, 62], [76, 63], [77, 65], [78, 72], [79, 73], [80, 74], [81, 75], [82, 76], [83, 78], [84, 79], [85, 79], [86, 82], [87, 84], [88, 85], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "getResult", "code": "    public boolean getResult() {\n\tif (_nameOfFunct == null) { \n\t    return false;\n\t}\n\n        if (isInternalNamespace()) {\n            final Parser parser = getParser();\n            _isFunctionAvailable = \n\t\tparser.functionSupported(Util.getLocalName(_nameOfFunct));\n        }\n \treturn _isFunctionAvailable;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "BINARY_OP", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [2, 6], [3, 7], [5, 8], [2, 9], [7, 10], [9, 11], [6, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 2], [7, 3], [8, 5], [9, 2], [10, 7], [11, 9], [12, 6], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "isInternalNamespace", "code": "    private boolean isInternalNamespace() {\n    \treturn (_namespaceOfFunct == null ||\n            _namespaceOfFunct.equals(EMPTYSTRING) ||\n\t    _namespaceOfFunct.equals(TRANSLET_URI));", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tmethodGen.getInstructionList().append(new PUSH(cpg, getResult()));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "FunctionAvailableCall", "code": "    public FunctionAvailableCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n\t_arg = (Expression)arguments.elementAt(0);\n\t_type = null; \n\n        if (_arg instanceof LiteralExpr) {\n\t    LiteralExpr arg = (LiteralExpr) _arg;\n            _namespaceOfFunct = arg.getNamespace();\n            _nameOfFunct = arg.getValue();\n\n            if (!isInternalNamespace()) {\n              _isFunctionAvailable = hasMethods();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [1, 8], [5, 9], [7, 10], [1, 11], [1, 12], [6, 13], [11, 14], [12, 15], [13, 16], [7, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 1], [9, 5], [10, 7], [11, 1], [12, 1], [13, 6], [14, 11], [15, 12], [16, 13], [17, 7], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}], "label": 0}
{"sample_id": "ant-1.5-440", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/rmic/RmicAdapterFactory.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.rmic.RmicAdapterFactory", "code": "public class RmicAdapterFactory {\n\n    /** This is a singleton -- can't create instances!! */\n    private RmicAdapterFactory() {\n    }\n\n    /**\n     * Based on the parameter passed in, this method creates the necessary\n     * factory desired.\n     *\n     * <p>The current mapping for rmic names are as follows:</p>\n     * <ul><li>sun = SUN's rmic\n     * <li>kaffe = Kaffe's rmic\n     * <li><i>a fully quallified classname</i> = the name of a rmic\n     * adapter\n     * </ul>\n     *\n     * @param rmicType either the name of the desired rmic, or the\n     * full classname of the rmic's adapter.\n     * @param task a task to log through.\n     * @throws BuildException if the rmic type could not be resolved into\n     * a rmic adapter.\n     */\n    public static RmicAdapter getRmic(String rmicType, Task task) \n        throws BuildException {\n        if (rmicType.equalsIgnoreCase(\"sun\")) {\n            return new SunRmic();\n        } else if (rmicType.equalsIgnoreCase(\"kaffe\")) {\n            return new KaffeRmic();\n        } else if (rmicType.equalsIgnoreCase(\"weblogic\")) {\n            return new WLRmic();\n        }\n        return resolveClassName(rmicType);\n    }\n\n    /**\n     * Tries to resolve the given classname into a rmic adapter.\n     * Throws a fit if it can't.\n     *\n     * @param className The fully qualified classname to be created.\n     * @throws BuildException This is the fit that is thrown if className\n     * isn't an instance of RmicAdapter.\n     */\n    private static RmicAdapter resolveClassName(String className)\n        throws BuildException {\n        try {\n            Class c = Class.forName(className);\n            Object o = c.newInstance();\n            return (RmicAdapter) o;\n        } catch (ClassNotFoundException cnfe) {\n            throw new BuildException(className + \" can\\'t be found.\", cnfe);\n        } catch (ClassCastException cce) {\n            throw new BuildException(className + \" isn\\'t the classname of \"\n                                     + \"a rmic adapter.\", cce);\n        } catch (Throwable t) {\n            throw new BuildException(className + \" caused an interesting \"\n                                     + \"exception.\", t);", "functions": [{"function_name": "getRmic", "code": "    public static RmicAdapter getRmic(String rmicType, Task task) \n        throws BuildException {\n        if (rmicType.equalsIgnoreCase(\"sun\")) {\n            return new SunRmic();\n        } else if (rmicType.equalsIgnoreCase(\"kaffe\")) {\n            return new KaffeRmic();\n        } else if (rmicType.equalsIgnoreCase(\"weblogic\")) {\n            return new WLRmic();\n        }\n        return resolveClassName(rmicType);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "CALL", "IF", "CALL", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [6, 9], [2, 10], [7, 11], [8, 12], [6, 13], [9, 14], [10, 15], [8, 16], [12, 17], [13, 18], [16, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 6], [10, 2], [11, 7], [12, 8], [13, 6], [14, 9], [15, 10], [16, 8], [17, 12], [18, 13], [19, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "resolveClassName", "code": "    private static RmicAdapter resolveClassName(String className)\n        throws BuildException {\n        try {\n            Class c = Class.forName(className);\n            Object o = c.newInstance();\n            return (RmicAdapter) o;\n        } catch (ClassNotFoundException cnfe) {\n            throw new BuildException(className + \" can\\'t be found.\", cnfe);\n        } catch (ClassCastException cce) {\n            throw new BuildException(className + \" isn\\'t the classname of \"\n                                     + \"a rmic adapter.\", cce);\n        } catch (Throwable t) {\n            throw new BuildException(className + \" caused an interesting \"\n                                     + \"exception.\", t);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CATCH", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [4, 10], [5, 11], [9, 12], [10, 13], [11, 14], [7, 15], [8, 16], [12, 17], [13, 18], [14, 19], [17, 20], [17, 21], [18, 22], [18, 23], [19, 24], [21, 25], [23, 26], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 4], [11, 5], [12, 9], [13, 10], [14, 11], [15, 7], [16, 8], [17, 12], [18, 13], [19, 14], [20, 17], [21, 17], [22, 18], [23, 18], [24, 19], [25, 21], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "RmicAdapterFactory", "code": "    private RmicAdapterFactory() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-2.5-5831", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/record/TextObjectRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.TextObjectRecord", "code": "public class TextObjectRecord\n        extends TextObjectBaseRecord\n{\n    HSSFRichTextString str = new HSSFRichTextString( \"\" );\n\n    public TextObjectRecord()\n    {\n    }\n\n    public TextObjectRecord( short id, short size, byte[] data )\n    {\n        super( id, size, data );\n    }\n\n    public TextObjectRecord( short id, short size, byte[] data, int offset )\n    {\n        super( id, size, data, offset );\n    }\n\n    public int getRecordSize()\n    {\n        int continue1Size = 0;\n        int continue2Size = 0;\n        if (str.length() != 0)\n        {\n            continue1Size = str.length() * 2 + 1 + 4;\n            continue2Size = (str.numFormattingRuns() + 1) * 8 + 4;\n        }\n        return super.getRecordSize() + continue1Size + continue2Size;\n    }\n\n    public int serialize( int offset, byte[] data )\n    {\n        HSSFRichTextString temp = str;\n        str = new HSSFRichTextString(\"\");\n        int bytesWritten1 = super.serialize( offset, data );\n        str = temp;\n\n        int pos = offset + bytesWritten1;\n        if ( str.toString().equals( \"\" ) == false )\n        {\n            ContinueRecord c1 = createContinue1();\n            ContinueRecord c2 = createContinue2();\n            int bytesWritten2 = c1.serialize( pos, data );\n            pos += bytesWritten2;\n            int bytesWritten3 = c2.serialize( pos, data );\n            pos += bytesWritten3;\n\n            int size = bytesWritten1 + bytesWritten2 + bytesWritten3;\n            if ( size != getRecordSize() )\n                throw new RecordFormatException(size + \" bytes written but getRecordSize() reports \" + getRecordSize());\n            return size;\n        }\n        if ( bytesWritten1 != getRecordSize() )\n            throw new RecordFormatException(bytesWritten1 + \" bytes written but getRecordSize() reports \" + getRecordSize());\n        return bytesWritten1;\n    }\n\n    private ContinueRecord createContinue1()\n    {\n        ContinueRecord c1 = new ContinueRecord();\n        byte[] c1Data = new byte[str.length() * 2 + 1];\n        try\n        {\n            c1Data[0] = 1;\n            System.arraycopy( str.toString().getBytes( \"UTF-16LE\" ), 0, c1Data, 1, str.length() * 2 );\n        }\n        catch ( UnsupportedEncodingException e )\n        {\n            throw new RuntimeException( e.getMessage() );\n        }\n        c1.setData( c1Data );\n        return c1;\n    }\n\n    private ContinueRecord createContinue2()\n    {\n        ContinueRecord c2 = new ContinueRecord();\n        byte[] c2Data = new byte[str.numFormattingRuns() * 8 + 8];\n        int pos = 0;\n        for ( int i = 0; i < str.numFormattingRuns(); i++ )\n        {\n            LittleEndian.putShort( c2Data, pos, (short) str.getIndexOfFormattingRun( i ) );\n            pos += 2;\n            LittleEndian.putShort( c2Data, pos, str.getFontOfFormattingRun( i ) == str.NO_FONT ? 0 : str.getFontOfFormattingRun( i ) );\n            pos += 2;\n        }\n        LittleEndian.putShort( c2Data, pos, (short) str.length() );\n        pos += 2;\n        LittleEndian.putShort( c2Data, pos, (short) 0 );\n        pos += 2;\n\n        c2.setData( c2Data );\n\n        return c2;\n    }\n\n    public void processContinueRecord( byte[] data )\n    {\n        if ( continueRecordCount == 0 )\n            processRawString( data );\n        else\n            processFontRuns( data );\n        continueRecordCount++;\n    }\n\n    private void processFontRuns( byte[] data )\n    {\n        int pos = 0;\n        do\n        {\n            short index = LittleEndian.getShort( data, pos );\n            pos += 2;\n            short iFont = LittleEndian.getShort( data, pos );\n            pos += 2;\n\n            if ( index >= str.length() )\n                break;\n            str.applyFont( index, str.length(), iFont );\n        }\n        while ( true );\n    }\n\n    private void processRawString( byte[] data )\n    {\n        String s;\n        int pos = 0;\n        byte compressByte = data[pos++];\n        boolean isCompressed = compressByte == 0;\n        try\n        {\n            if ( isCompressed )\n            {\n                s = new String( data, pos, getTextLength(), StringUtil.getPreferredEncoding() );\n            }\n            else\n            {\n                s = new String( data, pos, getTextLength() * 2, \"UTF-16LE\" );\n            }\n        }\n        catch ( UnsupportedEncodingException e )\n        {\n            throw new RuntimeException( e.getMessage() );\n        }\n        str = new HSSFRichTextString( s );\n    }\n\n    public HSSFRichTextString getStr()\n    {\n        return str;\n    }\n\n    public void setStr( HSSFRichTextString str )\n    {\n        this.str = str;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append( \"[TXO]\\n\" );\n        buffer.append( \"    .options              = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getOptions() ) )\n                .append( \" (\" ).append( getOptions() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"         .reserved1                = \" ).append( isReserved1() ).append( '\\n' );\n        buffer.append( \"         .HorizontalTextAlignment     = \" ).append( getHorizontalTextAlignment() ).append( '\\n' );\n        buffer.append( \"         .VerticalTextAlignment     = \" ).append( getVerticalTextAlignment() ).append( '\\n' );\n        buffer.append( \"         .reserved2                = \" ).append( getReserved2() ).append( '\\n' );\n        buffer.append( \"         .textLocked               = \" ).append( isTextLocked() ).append( '\\n' );\n        buffer.append( \"         .reserved3                = \" ).append( getReserved3() ).append( '\\n' );\n        buffer.append( \"    .textOrientation      = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getTextOrientation() ) )\n                .append( \" (\" ).append( getTextOrientation() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved4            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved4() ) )\n                .append( \" (\" ).append( getReserved4() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved5            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved5() ) )\n                .append( \" (\" ).append( getReserved5() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved6            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved6() ) )\n                .append( \" (\" ).append( getReserved6() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .textLength           = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getTextLength() ) )\n                .append( \" (\" ).append( getTextLength() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved7            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved7() ) )\n                .append( \" (\" ).append( getReserved7() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n\n        buffer.append( \"    .string = \" ).append(str).append('\\n');\n\n        buffer.append( \"[/TXO]\\n\" );\n        return buffer.toString();", "functions": [{"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        int continue1Size = 0;\n        int continue2Size = 0;\n        if (str.length() != 0)\n        {\n            continue1Size = str.length() * 2 + 1 + 4;\n            continue2Size = (str.numFormattingRuns() + 1) * 8 + 4;\n        }\n        return super.getRecordSize() + continue1Size + continue2Size;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [6, 8], [6, 9], [3, 10], [4, 11], [2, 12], [2, 13], [12, 14], [13, 15], [14, 16], [14, 17], [15, 18], [15, 19], [17, 20], [17, 21], [19, 22], [19, 23], [21, 24], [21, 25], [23, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 6], [9, 6], [10, 3], [11, 4], [12, 2], [13, 2], [14, 12], [15, 13], [16, 14], [17, 14], [18, 15], [19, 15], [20, 17], [21, 17], [22, 19], [23, 19], [24, 21], [25, 21], [26, 23], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data )\n    {\n        HSSFRichTextString temp = str;\n        str = new HSSFRichTextString(\"\");\n        int bytesWritten1 = super.serialize( offset, data );\n        str = temp;\n\n        int pos = offset + bytesWritten1;\n        if ( str.toString().equals( \"\" ) == false )\n        {\n            ContinueRecord c1 = createContinue1();\n            ContinueRecord c2 = createContinue2();\n            int bytesWritten2 = c1.serialize( pos, data );\n            pos += bytesWritten2;\n            int bytesWritten3 = c2.serialize( pos, data );\n            pos += bytesWritten3;\n\n            int size = bytesWritten1 + bytesWritten2 + bytesWritten3;\n            if ( size != getRecordSize() )\n                throw new RecordFormatException(size + \" bytes written but getRecordSize() reports \" + getRecordSize());\n            return size;\n        }\n        if ( bytesWritten1 != getRecordSize() )\n            throw new RecordFormatException(bytesWritten1 + \" bytes written but getRecordSize() reports \" + getRecordSize());\n        return bytesWritten1;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [3, 11], [0, 12], [0, 13], [9, 14], [10, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [11, 23], [11, 24], [4, 25], [13, 26], [14, 27], [17, 28], [17, 29], [3, 30], [3, 31], [24, 32], [26, 33], [27, 34], [27, 35], [28, 36], [29, 37], [18, 38], [19, 39], [20, 40], [21, 41], [22, 42], [32, 43], [35, 44], [36, 45], [38, 46], [45, 47], [45, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 3], [12, 0], [13, 0], [14, 9], [15, 10], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 11], [24, 11], [25, 4], [26, 13], [27, 14], [28, 17], [29, 17], [30, 3], [31, 3], [32, 24], [33, 26], [34, 27], [35, 27], [36, 28], [37, 29], [38, 18], [39, 19], [40, 20], [41, 21], [42, 22], [43, 32], [44, 35], [45, 36], [46, 38], [47, 45], [48, 45], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "createContinue1", "code": "    private ContinueRecord createContinue1()\n    {\n        ContinueRecord c1 = new ContinueRecord();\n        byte[] c1Data = new byte[str.length() * 2 + 1];\n        try\n        {\n            c1Data[0] = 1;\n            System.arraycopy( str.toString().getBytes( \"UTF-16LE\" ), 0, c1Data, 1, str.length() * 2 );\n        }\n        catch ( UnsupportedEncodingException e )\n        {\n            throw new RuntimeException( e.getMessage() );\n        }\n        c1.setData( c1Data );\n        return c1;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CATCH", "THROW_RAISE", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [2, 8], [2, 9], [4, 10], [7, 11], [8, 12], [8, 13], [8, 14], [8, 15], [9, 16], [3, 17], [11, 18], [12, 19], [12, 20], [15, 21], [17, 22], [17, 23], [21, 24], [9, 25], [23, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 2], [9, 2], [10, 4], [11, 7], [12, 8], [13, 8], [14, 8], [15, 8], [16, 9], [17, 3], [18, 11], [19, 12], [20, 12], [21, 15], [22, 17], [23, 17], [24, 21], [25, 9], [26, 23], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "createContinue2", "code": "    private ContinueRecord createContinue2()\n    {\n        ContinueRecord c2 = new ContinueRecord();\n        byte[] c2Data = new byte[str.numFormattingRuns() * 8 + 8];\n        int pos = 0;\n        for ( int i = 0; i < str.numFormattingRuns(); i++ )\n        {\n            LittleEndian.putShort( c2Data, pos, (short) str.getIndexOfFormattingRun( i ) );\n            pos += 2;\n            LittleEndian.putShort( c2Data, pos, str.getFontOfFormattingRun( i ) == str.NO_FONT ? 0 : str.getFontOfFormattingRun( i ) );\n            pos += 2;\n        }\n        LittleEndian.putShort( c2Data, pos, (short) str.length() );\n        pos += 2;\n        LittleEndian.putShort( c2Data, pos, (short) 0 );\n        pos += 2;\n\n        c2.setData( c2Data );\n\n        return c2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [7, 12], [9, 13], [11, 14], [3, 15], [5, 16], [8, 17], [10, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [4, 24], [19, 25], [20, 26], [21, 27], [24, 28], [24, 29], [26, 30], [26, 31], [26, 32], [22, 33], [29, 34], [29, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 7], [13, 9], [14, 11], [15, 3], [16, 5], [17, 8], [18, 10], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 4], [25, 19], [26, 20], [27, 21], [28, 24], [29, 24], [30, 26], [31, 26], [32, 26], [33, 22], [34, 29], [35, 29], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "processContinueRecord", "code": "    public void processContinueRecord( byte[] data )\n    {\n        if ( continueRecordCount == 0 )\n            processRawString( data );\n        else\n            processFontRuns( data );\n        continueRecordCount++;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "processFontRuns", "code": "    private void processFontRuns( byte[] data )\n    {\n        int pos = 0;\n        do\n        {\n            short index = LittleEndian.getShort( data, pos );\n            pos += 2;\n            short iFont = LittleEndian.getShort( data, pos );\n            pos += 2;\n\n            if ( index >= str.length() )\n                break;\n            str.applyFont( index, str.length(), iFont );\n        }\n        while ( true );", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [1, 9], [5, 10], [5, 11], [1, 12], [1, 13], [9, 14], [11, 15], [12, 16], [6, 17], [13, 18], [7, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 1], [10, 5], [11, 5], [12, 1], [13, 1], [14, 9], [15, 11], [16, 12], [17, 6], [18, 13], [19, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "processRawString", "code": "    private void processRawString( byte[] data )\n    {\n        String s;\n        int pos = 0;\n        byte compressByte = data[pos++];\n        boolean isCompressed = compressByte == 0;\n        try\n        {\n            if ( isCompressed )\n            {\n                s = new String( data, pos, getTextLength(), StringUtil.getPreferredEncoding() );\n            }\n            else\n            {\n                s = new String( data, pos, getTextLength() * 2, \"UTF-16LE\" );\n            }\n        }\n        catch ( UnsupportedEncodingException e )\n        {\n            throw new RuntimeException( e.getMessage() );\n        }\n        str = new HSSFRichTextString( s );", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CATCH", "IF", "CALL", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [7, 10], [8, 11], [2, 12], [4, 13], [11, 14], [12, 15], [14, 16], [9, 17], [9, 18], [17, 19], [18, 20], [19, 21], [19, 22], [20, 23], [20, 24], [22, 25], [22, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 7], [11, 8], [12, 2], [13, 4], [14, 11], [15, 12], [16, 14], [17, 9], [18, 9], [19, 17], [20, 18], [21, 19], [22, 19], [23, 20], [24, 20], [25, 22], [26, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getStr", "code": "    public HSSFRichTextString getStr()\n    {\n        return str;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStr", "code": "    public void setStr( HSSFRichTextString str )\n    {\n        this.str = str;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append( \"[TXO]\\n\" );\n        buffer.append( \"    .options              = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getOptions() ) )\n                .append( \" (\" ).append( getOptions() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"         .reserved1                = \" ).append( isReserved1() ).append( '\\n' );\n        buffer.append( \"         .HorizontalTextAlignment     = \" ).append( getHorizontalTextAlignment() ).append( '\\n' );\n        buffer.append( \"         .VerticalTextAlignment     = \" ).append( getVerticalTextAlignment() ).append( '\\n' );\n        buffer.append( \"         .reserved2                = \" ).append( getReserved2() ).append( '\\n' );\n        buffer.append( \"         .textLocked               = \" ).append( isTextLocked() ).append( '\\n' );\n        buffer.append( \"         .reserved3                = \" ).append( getReserved3() ).append( '\\n' );\n        buffer.append( \"    .textOrientation      = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getTextOrientation() ) )\n                .append( \" (\" ).append( getTextOrientation() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved4            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved4() ) )\n                .append( \" (\" ).append( getReserved4() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved5            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved5() ) )\n                .append( \" (\" ).append( getReserved5() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved6            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved6() ) )\n                .append( \" (\" ).append( getReserved6() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .textLength           = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getTextLength() ) )\n                .append( \" (\" ).append( getTextLength() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved7            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved7() ) )\n                .append( \" (\" ).append( getReserved7() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n\n        buffer.append( \"    .string = \" ).append(str).append('\\n');\n\n        buffer.append( \"[/TXO]\\n\" );\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [4, 27], [5, 28], [5, 29], [5, 30], [6, 31], [7, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [8, 38], [9, 39], [9, 40], [9, 41], [9, 42], [9, 43], [9, 44], [10, 45], [11, 46], [11, 47], [11, 48], [11, 49], [11, 50], [11, 51], [12, 52], [13, 53], [13, 54], [13, 55], [13, 56], [13, 57], [13, 58], [14, 59], [15, 60], [15, 61], [15, 62], [15, 63], [15, 64], [15, 65], [16, 66], [17, 67], [17, 68], [17, 69], [17, 70], [17, 71], [17, 72], [18, 73], [18, 74], [18, 75], [19, 76], [19, 77], [19, 78], [20, 79], [20, 80], [20, 81], [21, 82], [21, 83], [21, 84], [22, 85], [22, 86], [22, 87], [23, 88], [23, 89], [23, 90], [24, 91], [25, 92], [25, 93], [25, 94], [25, 95], [25, 96], [25, 97], [26, 98], [2, 99], [29, 100], [31, 101], [33, 102], [34, 103], [35, 104], [36, 105], [37, 106], [38, 107], [40, 108], [41, 109], [42, 110], [43, 111], [44, 112], [45, 113], [47, 114], [48, 115], [49, 116], [50, 117], [51, 118], [52, 119], [54, 120], [55, 121], [56, 122], [57, 123], [58, 124], [59, 125], [61, 126], [62, 127], [63, 128], [64, 129], [65, 130], [66, 131], [68, 132], [69, 133], [70, 134], [71, 135], [72, 136], [74, 137], [75, 138], [77, 139], [78, 140], [80, 141], [81, 142], [83, 143], [84, 144], [86, 145], [87, 146], [89, 147], [90, 148], [91, 149], [93, 150], [94, 151], [95, 152], [96, 153], [97, 154], [105, 155], [111, 156], [117, 157], [123, 158], [129, 159], [135, 160], [153, 161], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 4], [28, 5], [29, 5], [30, 5], [31, 6], [32, 7], [33, 7], [34, 7], [35, 7], [36, 7], [37, 7], [38, 8], [39, 9], [40, 9], [41, 9], [42, 9], [43, 9], [44, 9], [45, 10], [46, 11], [47, 11], [48, 11], [49, 11], [50, 11], [51, 11], [52, 12], [53, 13], [54, 13], [55, 13], [56, 13], [57, 13], [58, 13], [59, 14], [60, 15], [61, 15], [62, 15], [63, 15], [64, 15], [65, 15], [66, 16], [67, 17], [68, 17], [69, 17], [70, 17], [71, 17], [72, 17], [73, 18], [74, 18], [75, 18], [76, 19], [77, 19], [78, 19], [79, 20], [80, 20], [81, 20], [82, 21], [83, 21], [84, 21], [85, 22], [86, 22], [87, 22], [88, 23], [89, 23], [90, 23], [91, 24], [92, 25], [93, 25], [94, 25], [95, 25], [96, 25], [97, 25], [98, 26], [99, 2], [100, 29], [101, 31], [102, 33], [103, 34], [104, 35], [105, 36], [106, 37], [107, 38], [108, 40], [109, 41], [110, 42], [111, 43], [112, 44], [113, 45], [114, 47], [115, 48], [116, 49], [117, 50], [118, 51], [119, 52], [120, 54], [121, 55], [122, 56], [123, 57], [124, 58], [125, 59], [126, 61], [127, 62], [128, 63], [129, 64], [130, 65], [131, 66], [132, 68], [133, 69], [134, 70], [135, 71], [136, 72], [137, 74], [138, 75], [139, 77], [140, 78], [141, 80], [142, 81], [143, 83], [144, 84], [145, 86], [146, 87], [147, 89], [148, 90], [149, 91], [150, 93], [151, 94], [152, 95], [153, 96], [154, 97], [155, 105], [156, 111], [157, 117], [158, 123], [159, 129], [160, 135], [161, 153], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161]]}, {"function_name": "TextObjectRecord", "code": "    public TextObjectRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "TextObjectRecord", "code": "    public TextObjectRecord( short id, short size, byte[] data )\n    {\n        super( id, size, data );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "TextObjectRecord", "code": "    public TextObjectRecord( short id, short size, byte[] data, int offset )\n    {\n        super( id, size, data, offset );", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "poi-3.0-5974", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/poifs/storage/PropertyBlock.java", "language": "java", "name": "org.apache.poi.poifs.storage.PropertyBlock", "code": "public class PropertyBlock\n    extends BigBlock\n{\n    private static final int _properties_per_block =\n        POIFSConstants.BIG_BLOCK_SIZE / POIFSConstants.PROPERTY_SIZE;\n    private Property[]       _properties;\n\n    /**\n     * Create a single instance initialized with default values\n     *\n     * @param properties the properties to be inserted\n     * @param offset the offset into the properties array\n     */\n\n    private PropertyBlock(final Property [] properties, final int offset)\n    {\n        _properties = new Property[ _properties_per_block ];\n        for (int j = 0; j < _properties_per_block; j++)\n        {\n            _properties[ j ] = properties[ j + offset ];\n        }\n    }\n\n    /**\n     * Create an array of PropertyBlocks from an array of Property\n     * instances, creating empty Property instances to make up any\n     * shortfall\n     *\n     * @param properties the Property instances to be converted into\n     *                   PropertyBlocks, in a java List\n     *\n     * @return the array of newly created PropertyBlock instances\n     */\n\n    public static BlockWritable [] createPropertyBlockArray(\n            final List properties)\n    {\n        int        block_count   =\n            (properties.size() + _properties_per_block - 1)\n            / _properties_per_block;\n        Property[] to_be_written =\n            new Property[ block_count * _properties_per_block ];\n\n        System.arraycopy(properties.toArray(new Property[ 0 ]), 0,\n                         to_be_written, 0, properties.size());\n        for (int j = properties.size(); j < to_be_written.length; j++)\n        {\n\n            to_be_written[ j ] = new Property()\n            {\n                protected void preWrite()\n                {\n                }\n\n                public boolean isDirectory()\n                {\n                    return false;\n                }\n            };\n        }\n        BlockWritable[] rvalue = new BlockWritable[ block_count ];\n\n        for (int j = 0; j < block_count; j++)\n        {\n            rvalue[ j ] = new PropertyBlock(to_be_written,\n                                            j * _properties_per_block);\n        }\n        return rvalue;\n    }\n\n    /* ********** START extension of BigBlock ********** */\n\n    /**\n     * Write the block's data to an OutputStream\n     *\n     * @param stream the OutputStream to which the stored data should\n     *               be written\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream\n     */\n\n    void writeData(final OutputStream stream)\n        throws IOException\n    {\n        for (int j = 0; j < _properties_per_block; j++)\n        {\n            _properties[ j ].writeData(stream);", "functions": [{"function_name": "createPropertyBlockArray", "code": "    public static BlockWritable [] createPropertyBlockArray(\n            final List properties)\n    {\n        int        block_count   =\n            (properties.size() + _properties_per_block - 1)\n            / _properties_per_block;\n        Property[] to_be_written =\n            new Property[ block_count * _properties_per_block ];\n\n        System.arraycopy(properties.toArray(new Property[ 0 ]), 0,\n                         to_be_written, 0, properties.size());\n        for (int j = properties.size(); j < to_be_written.length; j++)\n        {\n\n            to_be_written[ j ] = new Property()\n            {\n                protected void preWrite()\n                {\n                }\n\n                public boolean isDirectory()\n                {\n                    return false;\n                }\n            };\n        }\n        BlockWritable[] rvalue = new BlockWritable[ block_count ];\n\n        for (int j = 0; j < block_count; j++)\n        {\n            rvalue[ j ] = new PropertyBlock(to_be_written,\n                                            j * _properties_per_block);\n        }\n        return rvalue;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "FUNC_DECL", "FUNC_DECL", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [4, 9], [0, 10], [10, 11], [10, 12], [10, 13], [10, 14], [6, 15], [2, 16], [2, 17], [4, 18], [4, 19], [5, 20], [15, 21], [16, 22], [18, 23], [14, 24], [21, 25], [21, 26], [22, 27], [23, 28], [23, 29], [26, 30], [28, 31], [31, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 4], [10, 0], [11, 10], [12, 10], [13, 10], [14, 10], [15, 6], [16, 2], [17, 2], [18, 4], [19, 4], [20, 5], [21, 15], [22, 16], [23, 18], [24, 14], [25, 21], [26, 21], [27, 22], [28, 23], [29, 23], [30, 26], [31, 28], [32, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "writeData", "code": "    void writeData(final OutputStream stream)\n        throws IOException\n    {\n        for (int j = 0; j < _properties_per_block; j++)\n        {\n            _properties[ j ].writeData(stream);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "PropertyBlock", "code": "    private PropertyBlock(final Property [] properties, final int offset)\n    {\n        _properties = new Property[ _properties_per_block ];\n        for (int j = 0; j < _properties_per_block; j++)\n        {\n            _properties[ j ] = properties[ j + offset ];", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 1}
{"sample_id": "poi-1.5-5166", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/PrecisionRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.PrecisionRecord", "code": "public class PrecisionRecord\n    extends Record\n{\n    public final static short sid = 0xE;\n    public short              field_1_precision;\n\n    public PrecisionRecord()\n    {\n    }\n\n    /**\n     * Constructs a Precision record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xe or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public PrecisionRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a Precision record and sets its fields appropriately.\n     *\n     * @param id     id must be 0xe or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record\n     */\n\n    public PrecisionRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PRECISION RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_precision = LittleEndian.getShort(data, 0 + offset);\n    }\n\n    /**\n     * set whether to use full precision or just skew all you figures all to hell.\n     *\n     * @param fullprecision - or not\n     */\n\n    public void setFullPrecision(boolean fullprecision)\n    {\n        if (fullprecision == true)\n        {\n            field_1_precision = 1;\n        }\n        else\n        {\n            field_1_precision = 0;\n        }\n    }\n\n    /**\n     * get whether to use full precision or just skew all you figures all to hell.\n     *\n     * @return fullprecision - or not\n     */\n\n    public boolean getFullPrecision()\n    {\n        return (field_1_precision == 1);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PRECISION]\\n\");\n        buffer.append(\"    .precision       = \").append(getFullPrecision())\n            .append(\"\\n\");\n        buffer.append(\"[/PRECISION]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_precision);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 6;\n    }\n\n    public short getSid()\n    {\n        return this.sid;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A PRECISION RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field_1_precision = LittleEndian.getShort(data, 0 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setFullPrecision", "code": "    public void setFullPrecision(boolean fullprecision)\n    {\n        if (fullprecision == true)\n        {\n            field_1_precision = 1;\n        }\n        else\n        {\n            field_1_precision = 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getFullPrecision", "code": "    public boolean getFullPrecision()\n    {\n        return (field_1_precision == 1);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PRECISION]\\n\");\n        buffer.append(\"    .precision       = \").append(getFullPrecision())\n            .append(\"\\n\");\n        buffer.append(\"[/PRECISION]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [5, 9], [5, 10], [6, 11], [2, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 5], [10, 5], [11, 6], [12, 2], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putShort(data, 4 + offset, field_1_precision);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [5, 8], [6, 9], [7, 10], [8, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 5], [9, 6], [10, 7], [11, 8], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 6;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "PrecisionRecord", "code": "    public PrecisionRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PrecisionRecord", "code": "    public PrecisionRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "PrecisionRecord", "code": "    public PrecisionRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.6-7698", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/templates/FuncFormatNumb.java", "language": "java", "name": "org.apache.xalan.templates.FuncFormatNumb", "code": "public class FuncFormatNumb extends Function3Args\n{\n\n  /**\n   * Execute the function.  The function must return\n   * a valid object.\n   * @param xctxt The current execution context.\n   * @return A valid XObject.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    ElemTemplateElement templElem =\n      (ElemTemplateElement) xctxt.getNamespaceContext();\n    StylesheetRoot ss = templElem.getStylesheetRoot();\n    java.text.DecimalFormat formatter = null;\n    java.text.DecimalFormatSymbols dfs = null;\n    double num = getArg0().execute(xctxt).num();\n    String patternStr = getArg1().execute(xctxt).str();\n\n    if (patternStr.indexOf(0x00A4) > 0)\n\n    try\n    {\n      Expression arg2Expr = getArg2();\n\n      if (null != arg2Expr)\n      {\n        String dfName = arg2Expr.execute(xctxt).str();\n        QName qname = new QName(dfName, xctxt.getNamespaceContext());\n\n        dfs = ss.getDecimalFormatComposed(qname);\n\n        if (null == dfs)\n        {\n          warn(xctxt, XSLTErrorResources.WG_NO_DECIMALFORMAT_DECLARATION);\n\n        }\n        else\n        {\n\n          formatter = new java.text.DecimalFormat();\n\n          formatter.setDecimalFormatSymbols(dfs);\n          formatter.applyLocalizedPattern(patternStr);\n        }\n      }\n\n      if (null == formatter)\n      {\n\n        dfs = ss.getDecimalFormatComposed(new QName(\"\"));\n\n        if (dfs != null)\n        {\n          formatter = new java.text.DecimalFormat();\n\n          formatter.setDecimalFormatSymbols(dfs);\n          formatter.applyLocalizedPattern(patternStr);\n        }\n        else\n        {\n          dfs = new java.text.DecimalFormatSymbols(java.util.Locale.US);\n\n          dfs.setInfinity(Constants.ATTRVAL_INFINITY);\n          dfs.setNaN(Constants.ATTRVAL_NAN);\n\n          formatter = new java.text.DecimalFormat();\n\n          formatter.setDecimalFormatSymbols(dfs);\n\n          if (null != patternStr)\n            formatter.applyLocalizedPattern(patternStr);\n        }\n      }\n\n      return new XString(formatter.format(num));\n    }\n    catch (Exception iae)\n    {\n      templElem.error(XSLTErrorResources.ER_MALFORMED_FORMAT_STRING,\n                      new Object[]{ patternStr });\n\n      return XString.EMPTYSTRING;\n\n    }\n  }\n\n  /**\n   * Warn the user of a problem.\n   *\n   * @param xctxt The XPath runtime state.\n   * @param msg Warning message key\n   * @param args Arguments to be used in warning message\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public void warn(XPathContext xctxt, String msg, Object args[])\n          throws javax.xml.transform.TransformerException\n  {\n\n    String formattedMsg = XSLMessages.createWarning(msg, args);\n    ErrorListener errHandler = xctxt.getErrorListener();\n\n    errHandler.warning(new TransformerException(formattedMsg,\n                                             (SAXSourceLocator)xctxt.getSAXLocator()));\n  }\n\n  /**\n   * Overide the superclass method to allow one or two arguments. \n   *\n   *\n   * @param argNum Number of arguments passed in\n   *\n   * @throws WrongNumberArgsException\n   */\n  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if ((argNum > 3) || (argNum < 2))\n      reportWrongNumberArgs();\n  }\n\n  /**\n   * Constructs and throws a WrongNumberArgException with the appropriate\n   * message for this function object.\n   *\n   * @throws WrongNumberArgsException\n   */\n  protected void reportWrongNumberArgs() throws WrongNumberArgsException {", "functions": [{"function_name": "execute", "code": "  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException\n  {\n\n    ElemTemplateElement templElem =\n      (ElemTemplateElement) xctxt.getNamespaceContext();\n    StylesheetRoot ss = templElem.getStylesheetRoot();\n    java.text.DecimalFormat formatter = null;\n    java.text.DecimalFormatSymbols dfs = null;\n    double num = getArg0().execute(xctxt).num();\n    String patternStr = getArg1().execute(xctxt).str();\n\n    if (patternStr.indexOf(0x00A4) > 0)\n\n    try\n    {\n      Expression arg2Expr = getArg2();\n\n      if (null != arg2Expr)\n      {\n        String dfName = arg2Expr.execute(xctxt).str();\n        QName qname = new QName(dfName, xctxt.getNamespaceContext());\n\n        dfs = ss.getDecimalFormatComposed(qname);\n\n        if (null == dfs)\n        {\n          warn(xctxt, XSLTErrorResources.WG_NO_DECIMALFORMAT_DECLARATION);\n\n        }\n        else\n        {\n\n          formatter = new java.text.DecimalFormat();\n\n          formatter.setDecimalFormatSymbols(dfs);\n          formatter.applyLocalizedPattern(patternStr);\n        }\n      }\n\n      if (null == formatter)\n      {\n\n        dfs = ss.getDecimalFormatComposed(new QName(\"\"));\n\n        if (dfs != null)\n        {\n          formatter = new java.text.DecimalFormat();\n\n          formatter.setDecimalFormatSymbols(dfs);\n          formatter.applyLocalizedPattern(patternStr);\n        }\n        else\n        {\n          dfs = new java.text.DecimalFormatSymbols(java.util.Locale.US);\n\n          dfs.setInfinity(Constants.ATTRVAL_INFINITY);\n          dfs.setNaN(Constants.ATTRVAL_NAN);\n\n          formatter = new java.text.DecimalFormat();\n\n          formatter.setDecimalFormatSymbols(dfs);\n\n          if (null != patternStr)\n            formatter.applyLocalizedPattern(patternStr);\n        }\n      }\n\n      return new XString(formatter.format(num));\n    }\n    catch (Exception iae)\n    {\n      templElem.error(XSLTErrorResources.ER_MALFORMED_FORMAT_STRING,\n                      new Object[]{ patternStr });\n\n      return XString.EMPTYSTRING;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "TRY", "BINARY_OP", "CATCH", "RETURN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [1, 10], [9, 11], [9, 12], [9, 13], [9, 14], [9, 15], [10, 16], [10, 17], [2, 18], [3, 19], [4, 20], [5, 21], [6, 22], [11, 23], [12, 24], [13, 25], [14, 26], [17, 27], [18, 28], [18, 29], [19, 30], [19, 31], [7, 32], [11, 33], [24, 34], [13, 35], [25, 36], [14, 37], [14, 38], [14, 39], [26, 40], [15, 41], [35, 42], [13, 43], [37, 44], [14, 45], [35, 46], [42, 47], [43, 48], [44, 49], [45, 50], [38, 51], [39, 52], [46, 53], [35, 54], [35, 55], [35, 56], [35, 57], [35, 58], [35, 59], [35, 60], [35, 61], [48, 62], [37, 63], [37, 64], [37, 65], [37, 66], [51, 67], [52, 68], [46, 69], [53, 70], [55, 71], [58, 72], [61, 73], [62, 74], [65, 75], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 1], [11, 9], [12, 9], [13, 9], [14, 9], [15, 9], [16, 10], [17, 10], [18, 2], [19, 3], [20, 4], [21, 5], [22, 6], [23, 11], [24, 12], [25, 13], [26, 14], [27, 17], [28, 18], [29, 18], [30, 19], [31, 19], [32, 7], [33, 11], [34, 24], [35, 13], [36, 25], [37, 14], [38, 14], [39, 14], [40, 26], [41, 15], [42, 35], [43, 13], [44, 37], [45, 14], [46, 35], [47, 42], [48, 43], [49, 44], [50, 45], [51, 38], [52, 39], [53, 46], [54, 35], [55, 35], [56, 35], [57, 35], [58, 35], [59, 35], [60, 35], [61, 35], [62, 48], [63, 37], [64, 37], [65, 37], [66, 37], [67, 51], [68, 52], [69, 46], [70, 53], [71, 55], [72, 58], [73, 61], [74, 62], [75, 65], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "warn", "code": "  public void warn(XPathContext xctxt, String msg, Object args[])\n          throws javax.xml.transform.TransformerException\n  {\n\n    String formattedMsg = XSLMessages.createWarning(msg, args);\n    ErrorListener errHandler = xctxt.getErrorListener();\n\n    errHandler.warning(new TransformerException(formattedMsg,\n                                             (SAXSourceLocator)xctxt.getSAXLocator()));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [1, 8], [2, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 1], [9, 2], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "checkNumberArgs", "code": "  public void checkNumberArgs(int argNum) throws WrongNumberArgsException\n  {\n    if ((argNum > 3) || (argNum < 2))\n      reportWrongNumberArgs();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "reportWrongNumberArgs", "code": "  protected void reportWrongNumberArgs() throws WrongNumberArgsException {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "ant-1.4-234", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/ConditionTask.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.ConditionTask", "code": "public class ConditionTask extends ConditionBase {\n\n    private String property;\n    private String value = \"true\";\n\n    /**\n     * The name of the property to set. Required.\n     *\n     * @since 1.1\n     */\n    public void setProperty(String p) {property = p;}\n\n    /**\n     * The value for the property to set. Defaults to \"true\".\n     *\n     * @since 1.1\n     */\n    public void setValue(String v) {value = v;}\n\n    /**\n     * See whether our nested condition holds and set the property.\n     *\n     * @since 1.1\n     */\n    public void execute() throws BuildException {\n        if (countConditions() > 1) {\n            throw new BuildException(\"You must not nest more than one condition into <condition>\");\n        }\n        if (countConditions() < 1) {\n            throw new BuildException(\"You must nest a condition into <condition>\");\n        }\n        Condition c = (Condition) getConditions().nextElement();\n        if (c.eval()) {\n            getProject().setProperty(property, value);", "functions": [{"function_name": "setProperty", "code": "    public void setProperty(String p) {property = p;}", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setValue", "code": "    public void setValue(String v) {value = v;}", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (countConditions() > 1) {\n            throw new BuildException(\"You must not nest more than one condition into <condition>\");\n        }\n        if (countConditions() < 1) {\n            throw new BuildException(\"You must nest a condition into <condition>\");\n        }\n        Condition c = (Condition) getConditions().nextElement();\n        if (c.eval()) {\n            getProject().setProperty(property, value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [3, 8], [6, 9], [6, 10], [4, 11], [7, 12], [7, 13], [1, 14], [2, 15], [8, 16], [11, 17], [14, 18], [15, 19], [16, 20], [17, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 3], [9, 6], [10, 6], [11, 4], [12, 7], [13, 7], [14, 1], [15, 2], [16, 8], [17, 11], [18, 14], [19, 15], [20, 16], [21, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}], "label": 1}
{"sample_id": "jedit-4.3-4710", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/Mode.java", "language": "java", "name": "org.gjt.sp.jedit.Mode", "code": "public class Mode\n{\n\t//{{{ Mode constructor\n\t/**\n\t * Creates a new edit mode.\n\t *\n\t * @param name The name used in mode listings and to query mode\n\t * properties\n\t * @see #getProperty(String)\n\t */\n\tpublic Mode(String name)\n\t{\n\t\tthis.name = name;\n\t\tthis.ignoreWhitespace = true;\n\t\tprops = new Hashtable<String, Object>();\n\t} //}}}\n\n\t//{{{ init() method\n\t/**\n\t * Initializes the edit mode. Should be called after all properties\n\t * are loaded and set.\n\t */\n\tpublic void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tString filenameGlob = (String)getProperty(\"filenameGlob\");\n\t\t\tif(filenameGlob != null && filenameGlob.length() != 0)\n\t\t\t{\n\t\t\t\tfilenameRE = Pattern.compile(StandardUtilities.globToRE(filenameGlob),\n\t\t\t\t\t\t\t     Pattern.CASE_INSENSITIVE);\n\t\t\t}\n\n\t\t\tString firstlineGlob = (String)getProperty(\"firstlineGlob\");\n\t\t\tif(firstlineGlob != null && firstlineGlob.length() != 0)\n\t\t\t{\n\t\t\t\tfirstlineRE = Pattern.compile(StandardUtilities.globToRE(firstlineGlob),\n\t\t\t\t\t\t\t      Pattern.CASE_INSENSITIVE);\n\t\t\t}\n\t\t}\n\t\tcatch(PatternSyntaxException re)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Invalid filename/firstline\"\n\t\t\t\t+ \" globs in mode \" + name);\n\t\t\tLog.log(Log.ERROR,this,re);\n\t\t}\n\n\t\t// Fix for this bug:\n\t\t// -- Put a mode into the user dir with the same name as one\n\t\t//    on the system dir.\n\t\t// -- Reload edit modes.\n\t\t// -- Old mode from system dir still used for highlighting\n\t\t//    until jEdit restart.\n\t\tmarker = null;\n\t} //}}}\n\n\t//{{{ getTokenMarker() method\n\t/**\n\t * Returns the token marker for this mode.\n\t */\n\tpublic TokenMarker getTokenMarker()\n\t{\n\t\tloadIfNecessary();\n\t\treturn marker;\n\t} //}}}\n\n\t//{{{ setTokenMarker() method\n\t/**\n\t * Sets the token marker for this mode.\n\t * @param marker The new token marker\n\t */\n\tpublic void setTokenMarker(TokenMarker marker)\n\t{\n\t\tthis.marker = marker;\n\t} //}}}\n\n\t//{{{ loadIfNecessary() method\n\t/**\n\t * Loads the mode from disk if it hasn't been loaded already.\n\t * @since jEdit 2.5pre3\n\t */\n\tpublic void loadIfNecessary()\n\t{\n\t\tif(marker == null)\n\t\t{\n\t\t\tModeProvider.instance.loadMode(this);\n\t\t\tif (marker == null)\n\t\t\t\tLog.log(Log.ERROR, this, \"Mode not correctly loaded, token marker is still null\");\n\t\t}\n\t} //}}}\n\n\t//{{{ getProperty() method\n\t/**\n\t * Returns a mode property.\n\t * @param key The property name\n\t *\n\t * @since jEdit 2.2pre1\n\t */\n\tpublic Object getProperty(String key)\n\t{\n\t\tObject value = props.get(key);\n\t\tif(value != null)\n\t\t\treturn value;\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getBooleanProperty() method\n\t/**\n\t * Returns the value of a boolean property.\n\t * @param key The property name\n\t *\n\t * @since jEdit 2.5pre3\n\t */\n\tpublic boolean getBooleanProperty(String key)\n\t{\n\t\tObject value = getProperty(key);\n\t\treturn StandardUtilities.getBoolean(value, false);\n\t} //}}}\n\n\t//{{{ setProperty() method\n\t/**\n\t * Sets a mode property.\n\t * @param key The property name\n\t * @param value The property value\n\t */\n\tpublic void setProperty(String key, Object value)\n\t{\n\t\tprops.put(key,value);\n\t} //}}}\n\n\t//{{{ unsetProperty() method\n\t/**\n\t * Unsets a mode property.\n\t * @param key The property name\n\t * @since jEdit 3.2pre3\n\t */\n\tpublic void unsetProperty(String key)\n\t{\n\t\tprops.remove(key);\n\t} //}}}\n\n\t//{{{ setProperties() method\n\t/**\n\t * Should only be called by <code>XModeHandler</code>.\n\t * @since jEdit 4.0pre3\n\t */\n\tpublic void setProperties(Map props)\n\t{\n\t\tif(props == null)\n\t\t\tprops = new Hashtable<String, Object>();\n\n\t\tignoreWhitespace = !\"false\".equalsIgnoreCase(\n\t\t\t\t\t(String)props.get(\"ignoreWhitespace\"));\n\n\t\t// need to carry over file name and first line globs because they are\n\t\t// not given to us by the XMode handler, but instead are filled in by\n\t\t// the catalog loader.\n\t\tString filenameGlob = (String)this.props.get(\"filenameGlob\");\n\t\tString firstlineGlob = (String)this.props.get(\"firstlineGlob\");\n\t\tString filename = (String)this.props.get(\"file\");\n\t\tthis.props = props;\n\t\tif(filenameGlob != null)\n\t\t\tprops.put(\"filenameGlob\",filenameGlob);\n\t\tif(firstlineGlob != null)\n\t\t\tprops.put(\"firstlineGlob\",firstlineGlob);\n\t\tif(filename != null)\n\t\t\tprops.put(\"file\",filename);\n\t} //}}}\n\n\t//{{{ accept() method\n\t/**\n\t * Returns true if the edit mode is suitable for editing the specified\n\t * file. The buffer name and first line is checked against the\n\t * file name and first line globs, respectively.\n\t * @param fileName The buffer's name\n\t * @param firstLine The first line of the buffer\n\t *\n\t * @since jEdit 3.2pre3\n\t */\n\tpublic boolean accept(String fileName, String firstLine)\n\t{\n\t\treturn acceptFilename(fileName) || acceptFirstLine(firstLine);\n\t} //}}}\n\n\t//{{{ acceptFilename() method\n\t/**\n\t * Returns true if the buffer name matches the file name glob.\n\t * @param fileName The buffer's name\n\t * @return true if the file name matches the file name glob.\n\t * @since jEdit 4.3pre18\n\t */\n\tpublic boolean acceptFilename(String fileName)\n\t{\n\t\treturn filenameRE != null && filenameRE.matcher(fileName).matches();\n\t} //}}}\n\n\t//{{{ acceptFirstLine() method\n\t/**\n\t * Returns true if the first line matches the first line glob.\n\t * @param firstLine The first line of the buffer\n\t * @return true if the first line matches the first line glob.\n\t * @since jEdit 4.3pre18\n\t */\n\tpublic boolean acceptFirstLine(String firstLine)\n\t{\n\t\treturn firstlineRE != null && firstlineRE.matcher(firstLine).matches();\n\t} //}}}\n\n\t//{{{ getName() method\n\t/**\n\t * Returns the internal name of this edit mode.\n\t */\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ toString() method\n\t/**\n\t * Returns a string representation of this edit mode.\n\t */\n\tpublic String toString()\n\t{\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ getIgnoreWhitespace() method\n\tpublic boolean getIgnoreWhitespace()\n\t{\n\t\treturn ignoreWhitespace;\n\t} //}}}\n\n\t//{{{ Indent rules\n\n\tpublic synchronized List<IndentRule> getIndentRules()\n\t{\n\t\tif (indentRules == null)\n\t\t{\n\t\t\tinitIndentRules();\n\t\t}\n\t\treturn indentRules;\n\t}\n\n\tpublic synchronized boolean isElectricKey(char ch)\n\t{\n\t\tif (electricKeys == null)\n\t\t{\n\t\t\tString[] props = {\n\t\t\t\t\"indentOpenBrackets\",\n\t\t\t\t\"indentCloseBrackets\",\n\t\t\t\t\"electricKeys\"\n\t\t\t};\n\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\tfor(int i = 0; i < props.length; i++)\n\t\t\t{\n\t\t\t\tString prop = (String) getProperty(props[i]);\n\t\t\t\tif (prop != null)\n\t\t\t\t\tbuf.append(prop);\n\t\t\t}\n\n\t\t\telectricKeys = buf.toString();\n\t\t}\n\n\t\treturn (electricKeys.indexOf(ch) >= 0);\n\t}\n\n\tprivate void initIndentRules()\n\t{\n\t\tList<IndentRule> rules = new LinkedList<IndentRule>();\n\n\t\tString[] regexpProps = {\n\t\t\t\"indentNextLine\",\n\t\t\t\"indentNextLines\"\n\t\t};\n\n\t\tfor(int i = 0; i < regexpProps.length; i++)\n\t\t{\n\t\t\tIndentRule rule = createRegexpIndentRule(regexpProps[i]);\n\t\t\tif(rule != null)\n\t\t\t\trules.add(rule);\n\t\t}\n\n\t\tString[] bracketProps = {\n\t\t\t\"indentOpenBracket\",\n\t\t\t\"indentCloseBracket\",\n\t\t\t\"unalignedOpenBracket\",\n\t\t\t\"unalignedCloseBracket\",\n\t\t};\n\n\t\tfor(int i = 0; i < bracketProps.length; i++)\n\t\t{\n\t\t\tcreateBracketIndentRules(bracketProps[i], rules);\n\t\t}\n\n\t\tString[] finalProps = {\n\t\t\t\"unindentThisLine\",\n\t\t\t\"unindentNextLines\"\n\t\t};\n\n\t\tfor(int i = 0; i < finalProps.length; i++)\n\t\t{\n\t\t\tIndentRule rule = createRegexpIndentRule(finalProps[i]);\n\t\t\tif(rule != null)\n\t\t\t\trules.add(rule);\n\t\t}\n\n\t\tif (getBooleanProperty(\"deepIndent\"))\n\t\t{\n\t\t\tString unalignedOpenBrackets = (String) getProperty(\"unalignedOpenBrackets\");\n\t\t\tif (unalignedOpenBrackets != null)\n\t\t\t{\n\t\t\t\tfor (int i = 0 ; i < unalignedOpenBrackets.length();i++)\n\t\t\t\t{\n\t\t\t\t\tchar openChar = unalignedOpenBrackets.charAt(i);\n\t\t\t\t\tchar closeChar = TextUtilities.getComplementaryBracket(openChar, null);\n\t\t\t\t\tif (closeChar != '\\0')\n\t\t\t\t\t\trules.add(new DeepIndentRule(openChar, closeChar));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!getIgnoreWhitespace())\n\t\t\trules.add(new WhitespaceRule());\n\n\t\tindentRules = Collections.unmodifiableList(rules);\n\t}\n\n\tprivate IndentRule createRegexpIndentRule(String prop)\n\t{\n\t\tString value = (String) getProperty(prop);\n\n\t\ttry\n\t\t{\n\t\t\tif(value != null)\n\t\t\t{\n\t\t\t\tMethod m = IndentRuleFactory.class.getMethod(\n\t\t\t\t\tprop,new Class[] { String.class });\n\t\t\t\treturn (IndentRule)m.invoke(null, value);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Bad indent rule \" + prop\n\t\t\t\t+ '=' + value + ':');\n\t\t\tLog.log(Log.ERROR,this,e);\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tprivate void createBracketIndentRules(String prop,\n\t\t\t\t\t\tList<IndentRule> rules)\n\t{\n\t\tString value = (String) getProperty(prop + 's');\n\n\t\ttry\n\t\t{\n\t\t\tif(value != null)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < value.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tchar ch = value.charAt(i);\n\n\t\t\t\t\tMethod m = IndentRuleFactory.class.getMethod(\n\t\t\t\t\t\tprop,new Class[] { char.class });\n\t\t\t\t\trules.add((IndentRule) m.invoke(null, ch));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Bad indent rule \" + prop\n\t\t\t\t+ '=' + value + ':');\n\t\t\tLog.log(Log.ERROR,this,e);\n\t\t}\n\t}\n\n\t//}}}\n\n\t//{{{ Private members\n\tprotected String name;\n\tprotected Map<String, Object> props;\n\tprivate Pattern firstlineRE;\n\tprivate Pattern filenameRE;\n\tprotected TokenMarker marker;\n\tprivate List<IndentRule> indentRules;\n\tprivate String electricKeys;\n\tprivate boolean ignoreWhitespace;", "functions": [{"function_name": "init", "code": "\tpublic void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tString filenameGlob = (String)getProperty(\"filenameGlob\");\n\t\t\tif(filenameGlob != null && filenameGlob.length() != 0)\n\t\t\t{\n\t\t\t\tfilenameRE = Pattern.compile(StandardUtilities.globToRE(filenameGlob),\n\t\t\t\t\t\t\t     Pattern.CASE_INSENSITIVE);\n\t\t\t}\n\n\t\t\tString firstlineGlob = (String)getProperty(\"firstlineGlob\");\n\t\t\tif(firstlineGlob != null && firstlineGlob.length() != 0)\n\t\t\t{\n\t\t\t\tfirstlineRE = Pattern.compile(StandardUtilities.globToRE(firstlineGlob),\n\t\t\t\t\t\t\t      Pattern.CASE_INSENSITIVE);\n\t\t\t}\n\t\t}\n\t\tcatch(PatternSyntaxException re)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Invalid filename/firstline\"\n\t\t\t\t+ \" globs in mode \" + name);\n\t\t\tLog.log(Log.ERROR,this,re);\n\t\t}\n\n\t\t// Fix for this bug:\n\t\t// -- Put a mode into the user dir with the same name as one\n\t\t//    on the system dir.\n\t\t// -- Reload edit modes.\n\t\t// -- Old mode from system dir still used for highlighting\n\t\t//    until jEdit restart.\n\t\tmarker = null;", "ast_nodes": ["FUNC_DECL", "TRY", "ASSIGN", "CATCH", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [4, 9], [6, 10], [3, 11], [3, 12], [9, 13], [9, 14], [10, 15], [10, 16], [12, 17], [4, 18], [13, 19], [13, 20], [14, 21], [5, 22], [6, 23], [15, 24], [15, 25], [16, 26], [7, 27], [17, 28], [18, 29], [22, 30], [23, 31], [27, 32], [28, 33], [28, 34], [29, 35], [31, 36], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 4], [10, 6], [11, 3], [12, 3], [13, 9], [14, 9], [15, 10], [16, 10], [17, 12], [18, 4], [19, 13], [20, 13], [21, 14], [22, 5], [23, 6], [24, 15], [25, 15], [26, 16], [27, 7], [28, 17], [29, 18], [30, 22], [31, 23], [32, 27], [33, 28], [34, 28], [35, 29], [36, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "getTokenMarker", "code": "\tpublic TokenMarker getTokenMarker()\n\t{\n\t\tloadIfNecessary();\n\t\treturn marker;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTokenMarker", "code": "\tpublic void setTokenMarker(TokenMarker marker)\n\t{\n\t\tthis.marker = marker;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "loadIfNecessary", "code": "\tpublic void loadIfNecessary()\n\t{\n\t\tif(marker == null)\n\t\t{\n\t\t\tModeProvider.instance.loadMode(this);\n\t\t\tif (marker == null)\n\t\t\t\tLog.log(Log.ERROR, this, \"Mode not correctly loaded, token marker is still null\");", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [1, 6], [3, 7], [5, 8], [7, 9], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 1], [7, 3], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getProperty", "code": "\tpublic Object getProperty(String key)\n\t{\n\t\tObject value = props.get(key);\n\t\tif(value != null)\n\t\t\treturn value;\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [7, 8], [3, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 7], [9, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getBooleanProperty", "code": "\tpublic boolean getBooleanProperty(String key)\n\t{\n\t\tObject value = getProperty(key);\n\t\treturn StandardUtilities.getBoolean(value, false);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setProperty", "code": "\tpublic void setProperty(String key, Object value)\n\t{\n\t\tprops.put(key,value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "unsetProperty", "code": "\tpublic void unsetProperty(String key)\n\t{\n\t\tprops.remove(key);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperties", "code": "\tpublic void setProperties(Map props)\n\t{\n\t\tif(props == null)\n\t\t\tprops = new Hashtable<String, Object>();\n\n\t\tignoreWhitespace = !\"false\".equalsIgnoreCase(\n\t\t\t\t\t(String)props.get(\"ignoreWhitespace\"));\n\n\t\t// need to carry over file name and first line globs because they are\n\t\t// not given to us by the XMode handler, but instead are filled in by\n\t\t// the catalog loader.\n\t\tString filenameGlob = (String)this.props.get(\"filenameGlob\");\n\t\tString firstlineGlob = (String)this.props.get(\"firstlineGlob\");\n\t\tString filename = (String)this.props.get(\"file\");\n\t\tthis.props = props;\n\t\tif(filenameGlob != null)\n\t\t\tprops.put(\"filenameGlob\",filenameGlob);\n\t\tif(firstlineGlob != null)\n\t\t\tprops.put(\"firstlineGlob\",firstlineGlob);\n\t\tif(filename != null)\n\t\t\tprops.put(\"file\",filename);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [0, 12], [0, 13], [7, 14], [1, 15], [9, 16], [2, 17], [10, 18], [3, 19], [11, 20], [13, 21], [7, 22], [14, 23], [15, 24], [17, 25], [19, 26], [21, 27], [22, 28], [4, 29], [5, 30], [6, 31], [29, 32], [30, 33], [31, 34], [27, 35], [35, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 0], [13, 0], [14, 7], [15, 1], [16, 9], [17, 2], [18, 10], [19, 3], [20, 11], [21, 13], [22, 7], [23, 14], [24, 15], [25, 17], [26, 19], [27, 21], [28, 22], [29, 4], [30, 5], [31, 6], [32, 29], [33, 30], [34, 31], [35, 27], [36, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "accept", "code": "\tpublic boolean accept(String fileName, String firstLine)\n\t{\n\t\treturn acceptFilename(fileName) || acceptFirstLine(firstLine);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "acceptFilename", "code": "\tpublic boolean acceptFilename(String fileName)\n\t{\n\t\treturn filenameRE != null && filenameRE.matcher(fileName).matches();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "acceptFirstLine", "code": "\tpublic boolean acceptFirstLine(String firstLine)\n\t{\n\t\treturn firstlineRE != null && firstlineRE.matcher(firstLine).matches();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIgnoreWhitespace", "code": "\tpublic boolean getIgnoreWhitespace()\n\t{\n\t\treturn ignoreWhitespace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIndentRules", "code": "\tpublic synchronized List<IndentRule> getIndentRules()\n\t{\n\t\tif (indentRules == null)\n\t\t{\n\t\t\tinitIndentRules();\n\t\t}\n\t\treturn indentRules;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "isElectricKey", "code": "\tpublic synchronized boolean isElectricKey(char ch)\n\t{\n\t\tif (electricKeys == null)\n\t\t{\n\t\t\tString[] props = {\n\t\t\t\t\"indentOpenBrackets\",\n\t\t\t\t\"indentCloseBrackets\",\n\t\t\t\t\"electricKeys\"\n\t\t\t};\n\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\tfor(int i = 0; i < props.length; i++)\n\t\t\t{\n\t\t\t\tString prop = (String) getProperty(props[i]);\n\t\t\t\tif (prop != null)\n\t\t\t\t\tbuf.append(prop);\n\t\t\t}\n\n\t\t\telectricKeys = buf.toString();\n\t\t}\n\n\t\treturn (electricKeys.indexOf(ch) >= 0);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [2, 8], [2, 9], [2, 10], [5, 11], [2, 12], [8, 13], [12, 14], [8, 15], [8, 16], [9, 17], [15, 18], [8, 19], [10, 20], [10, 21], [10, 22], [15, 23], [18, 24], [16, 25], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 2], [9, 2], [10, 2], [11, 5], [12, 2], [13, 8], [14, 12], [15, 8], [16, 8], [17, 9], [18, 15], [19, 8], [20, 10], [21, 10], [22, 10], [23, 15], [24, 18], [25, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "initIndentRules", "code": "\tprivate void initIndentRules()\n\t{\n\t\tList<IndentRule> rules = new LinkedList<IndentRule>();\n\n\t\tString[] regexpProps = {\n\t\t\t\"indentNextLine\",\n\t\t\t\"indentNextLines\"\n\t\t};\n\n\t\tfor(int i = 0; i < regexpProps.length; i++)\n\t\t{\n\t\t\tIndentRule rule = createRegexpIndentRule(regexpProps[i]);\n\t\t\tif(rule != null)\n\t\t\t\trules.add(rule);\n\t\t}\n\n\t\tString[] bracketProps = {\n\t\t\t\"indentOpenBracket\",\n\t\t\t\"indentCloseBracket\",\n\t\t\t\"unalignedOpenBracket\",\n\t\t\t\"unalignedCloseBracket\",\n\t\t};\n\n\t\tfor(int i = 0; i < bracketProps.length; i++)\n\t\t{\n\t\t\tcreateBracketIndentRules(bracketProps[i], rules);\n\t\t}\n\n\t\tString[] finalProps = {\n\t\t\t\"unindentThisLine\",\n\t\t\t\"unindentNextLines\"\n\t\t};\n\n\t\tfor(int i = 0; i < finalProps.length; i++)\n\t\t{\n\t\t\tIndentRule rule = createRegexpIndentRule(finalProps[i]);\n\t\t\tif(rule != null)\n\t\t\t\trules.add(rule);\n\t\t}\n\n\t\tif (getBooleanProperty(\"deepIndent\"))\n\t\t{\n\t\t\tString unalignedOpenBrackets = (String) getProperty(\"unalignedOpenBrackets\");\n\t\t\tif (unalignedOpenBrackets != null)\n\t\t\t{\n\t\t\t\tfor (int i = 0 ; i < unalignedOpenBrackets.length();i++)\n\t\t\t\t{\n\t\t\t\t\tchar openChar = unalignedOpenBrackets.charAt(i);\n\t\t\t\t\tchar closeChar = TextUtilities.getComplementaryBracket(openChar, null);\n\t\t\t\t\tif (closeChar != '\\0')\n\t\t\t\t\t\trules.add(new DeepIndentRule(openChar, closeChar));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!getIgnoreWhitespace())\n\t\t\trules.add(new WhitespaceRule());\n\n\t\tindentRules = Collections.unmodifiableList(rules);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [3, 13], [5, 14], [7, 15], [10, 16], [1, 17], [2, 18], [2, 19], [12, 20], [3, 21], [3, 22], [7, 23], [7, 24], [9, 25], [17, 26], [18, 27], [21, 28], [3, 29], [4, 30], [4, 31], [5, 32], [5, 33], [6, 34], [6, 35], [6, 36], [6, 37], [23, 38], [7, 39], [8, 40], [8, 41], [18, 42], [27, 43], [21, 44], [28, 45], [22, 46], [23, 47], [38, 48], [24, 49], [42, 50], [19, 51], [42, 52], [42, 53], [42, 54], [50, 55], [51, 56], [52, 57], [42, 58], [52, 59], [57, 60], [53, 61], [54, 62], [59, 63], [61, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 3], [14, 5], [15, 7], [16, 10], [17, 1], [18, 2], [19, 2], [20, 12], [21, 3], [22, 3], [23, 7], [24, 7], [25, 9], [26, 17], [27, 18], [28, 21], [29, 3], [30, 4], [31, 4], [32, 5], [33, 5], [34, 6], [35, 6], [36, 6], [37, 6], [38, 23], [39, 7], [40, 8], [41, 8], [42, 18], [43, 27], [44, 21], [45, 28], [46, 22], [47, 23], [48, 38], [49, 24], [50, 42], [51, 19], [52, 42], [53, 42], [54, 42], [55, 50], [56, 51], [57, 52], [58, 42], [59, 52], [60, 57], [61, 53], [62, 54], [63, 59], [64, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "createRegexpIndentRule", "code": "\tprivate IndentRule createRegexpIndentRule(String prop)\n\t{\n\t\tString value = (String) getProperty(prop);\n\n\t\ttry\n\t\t{\n\t\t\tif(value != null)\n\t\t\t{\n\t\t\t\tMethod m = IndentRuleFactory.class.getMethod(\n\t\t\t\t\tprop,new Class[] { String.class });\n\t\t\t\treturn (IndentRule)m.invoke(null, value);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Bad indent rule \" + prop\n\t\t\t\t+ '=' + value + ':');\n\t\t\tLog.log(Log.ERROR,this,e);\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CATCH", "IF", "BINARY_OP", "CALL", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [7, 8], [6, 9], [6, 10], [7, 11], [7, 12], [8, 13], [3, 14], [10, 15], [15, 16], [15, 17], [11, 18], [12, 19], [17, 20], [18, 21], [20, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 7], [9, 6], [10, 6], [11, 7], [12, 7], [13, 8], [14, 3], [15, 10], [16, 15], [17, 15], [18, 11], [19, 12], [20, 17], [21, 18], [22, 20], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "createBracketIndentRules", "code": "\tprivate void createBracketIndentRules(String prop,\n\t\t\t\t\t\tList<IndentRule> rules)\n\t{\n\t\tString value = (String) getProperty(prop + 's');\n\n\t\ttry\n\t\t{\n\t\t\tif(value != null)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < value.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tchar ch = value.charAt(i);\n\n\t\t\t\t\tMethod m = IndentRuleFactory.class.getMethod(\n\t\t\t\t\t\tprop,new Class[] { char.class });\n\t\t\t\t\trules.add((IndentRule) m.invoke(null, ch));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,\"Bad indent rule \" + prop\n\t\t\t\t+ '=' + value + ':');\n\t\t\tLog.log(Log.ERROR,this,e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "CATCH", "IF", "BINARY_OP", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [5, 8], [5, 9], [6, 10], [7, 11], [2, 12], [9, 13], [10, 14], [12, 15], [13, 16], [13, 17], [10, 18], [10, 19], [14, 20], [15, 21], [17, 22], [10, 23], [10, 24], [22, 25], [22, 26], [18, 27], [19, 28], [26, 29], [23, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [8, 5], [9, 5], [10, 6], [11, 7], [12, 2], [13, 9], [14, 10], [15, 12], [16, 13], [17, 13], [18, 10], [19, 10], [20, 14], [21, 15], [22, 17], [23, 10], [24, 10], [25, 22], [26, 22], [27, 18], [28, 19], [29, 26], [30, 23], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "Mode", "code": "\tpublic Mode(String name)\n\t{\n\t\tthis.name = name;\n\t\tthis.ignoreWhitespace = true;\n\t\tprops = new Hashtable<String, Object>();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.5-7078", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/Comment.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Comment", "code": "final class Comment extends Instruction {\n\n    public void parseContents(Parser parser) {\n\tparseChildren(parser);\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\ttypeCheckContents(stable);\n\treturn Type.String;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadHandler());\n\n\til.append(classGen.loadTranslet());\n\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t       \"stringValueHandler\",\n\t\t\t\t\t       STRING_VALUE_HANDLER_SIG)));\n\til.append(DUP);\n\til.append(methodGen.storeHandler());\n\n\ttranslateContents(classGen, methodGen);\n\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(STRING_VALUE_HANDLER,\n\t\t\t\t\t\t     \"getValue\",\n\t\t\t\t\t\t     \"()\" + STRING_SIG)));\n\tfinal int comment =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"comment\", \n\t\t\t\t      \"(\" + STRING_SIG + \")V\");\n\til.append(new INVOKEINTERFACE(comment, 2));\n\til.append(methodGen.storeHandler());", "functions": [{"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tparseChildren(parser);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\ttypeCheckContents(stable);\n\treturn Type.String;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(methodGen.loadHandler());\n\n\til.append(classGen.loadTranslet());\n\til.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,\n\t\t\t\t\t       \"stringValueHandler\",\n\t\t\t\t\t       STRING_VALUE_HANDLER_SIG)));\n\til.append(DUP);\n\til.append(methodGen.storeHandler());\n\n\ttranslateContents(classGen, methodGen);\n\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(STRING_VALUE_HANDLER,\n\t\t\t\t\t\t     \"getValue\",\n\t\t\t\t\t\t     \"()\" + STRING_SIG)));\n\tfinal int comment =\n\t    cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,\n\t\t\t\t      \"comment\", \n\t\t\t\t      \"(\" + STRING_SIG + \")V\");\n\til.append(new INVOKEINTERFACE(comment, 2));\n\til.append(methodGen.storeHandler());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [6, 15], [7, 16], [1, 17], [8, 18], [10, 19], [12, 20], [13, 21], [14, 22], [2, 23], [3, 24], [16, 25], [17, 26], [17, 27], [18, 28], [20, 29], [26, 30], [26, 31], [28, 32], [28, 33], [29, 34], [31, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 6], [16, 7], [17, 1], [18, 8], [19, 10], [20, 12], [21, 13], [22, 14], [23, 2], [24, 3], [25, 16], [26, 17], [27, 17], [28, 18], [29, 20], [30, 26], [31, 26], [32, 28], [33, 28], [34, 29], [35, 31], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}], "label": 0}
{"sample_id": "xalan-2.7-8110", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/dom/SimpleResultTreeImpl.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.SimpleResultTreeImpl", "code": "public class SimpleResultTreeImpl extends EmptySerializer implements DOM, DTM\n{\n    \n    /**\n     * The SimpleIterator is designed to support the nodeset() extension function. It has\n     * a traversal direction parameter. The DOWN direction is used for child and descendant\n     * axes, while the UP direction is used for parent and ancestor axes.\n     *\n     * This iterator only handles two nodes (RTF_ROOT and RTF_TEXT). If the type is set,\n     * it will also match the node type with the given type.\n     */\n    public final class SimpleIterator extends DTMAxisIteratorBase\n    {\n        static final int DIRECTION_UP = 0;\n        static final int DIRECTION_DOWN = 1;\n        static final int NO_TYPE = -1;\n        \n        int _direction = DIRECTION_DOWN;\n        \n        int _type = NO_TYPE;\n        int _currentNode;\n        \n        public SimpleIterator()\n        {\n        }\n        \n        public SimpleIterator(int direction)\n        {\n            _direction = direction;\n        }\n        \n        public SimpleIterator(int direction, int type)\n        {\n             _direction = direction;\n             _type = type;\n        }\n        \n        public int next()\n        {\n            if (_direction == DIRECTION_DOWN) {                \n                while (_currentNode < NUMBER_OF_NODES) {\n                    if (_type != NO_TYPE) {\n                        if ((_currentNode == RTF_ROOT && _type == DTM.ROOT_NODE)\n                            || (_currentNode == RTF_TEXT && _type == DTM.TEXT_NODE))\n                            return returnNode(getNodeHandle(_currentNode++));\n                        else\n                            _currentNode++;\n                    }\n                    else\n                        return returnNode(getNodeHandle(_currentNode++));\n                }\n                \n                return END;\n            }\n            else {                \n                while (_currentNode >= 0) {\n                    if (_type != NO_TYPE) {\n                        if ((_currentNode == RTF_ROOT && _type == DTM.ROOT_NODE)\n                            || (_currentNode == RTF_TEXT && _type == DTM.TEXT_NODE))\n                            return returnNode(getNodeHandle(_currentNode--));\n                        else\n                            _currentNode--;\n                    }\n                    else\n                        return returnNode(getNodeHandle(_currentNode--));\n                }\n                \n                return END;\n            }\n        }\n                \n        public DTMAxisIterator setStartNode(int nodeHandle)\n        {\n            int nodeID = getNodeIdent(nodeHandle);\n            _startNode = nodeID;\n            \n            if (!_includeSelf && nodeID != DTM.NULL) {\n                if (_direction == DIRECTION_DOWN)\n                    nodeID++;\n                else if (_direction == DIRECTION_UP)\n                    nodeID--;\n            }\n            \n            _currentNode = nodeID;\n            return this;\n        }\n                \n        public void setMark()\n        {\n            _markedNode = _currentNode;\n        }\n        \n        public void gotoMark()\n        {\n            _currentNode = _markedNode;\n        }\n\t}  \n    \n    /**\n     * The SingletonIterator is used for the self axis.\n     */\n    public final class SingletonIterator extends DTMAxisIteratorBase\n    {\n        static final int NO_TYPE = -1;\n        int _type = NO_TYPE;\n        int _currentNode;\n        \n        public SingletonIterator()\n        {\n        }\n        \n        public SingletonIterator(int type)\n        {\n            _type = type;\n        }\n        \n        public void setMark()\n        {\n            _markedNode = _currentNode;\n        }\n        \n        public void gotoMark()\n        {\n            _currentNode = _markedNode;\n        }\n\n        public DTMAxisIterator setStartNode(int nodeHandle)\n        {\n            _currentNode = _startNode = getNodeIdent(nodeHandle);\n            return this;\n        }\n        \n        public int next()\n        {\n            if (_currentNode == END)\n                return END;\n            \n            _currentNode = END;\n            \n            if (_type != NO_TYPE) {\n                if ((_currentNode == RTF_ROOT && _type == DTM.ROOT_NODE)\n                    || (_currentNode == RTF_TEXT && _type == DTM.TEXT_NODE))\n                    return getNodeHandle(_currentNode);\n            }\n            else\n                return getNodeHandle(_currentNode);\n            \n            return END;                \n        }\n\t}  \n\n    private final static DTMAxisIterator EMPTY_ITERATOR =\n        new DTMAxisIteratorBase() {\n            public DTMAxisIterator reset() { return this; }\n            public DTMAxisIterator setStartNode(int node) { return this; }\n            public int next() { return DTM.NULL; }\n            public void setMark() {}\n            public void gotoMark() {}\n            public int getLast() { return 0; }\n            public int getPosition() { return 0; }\n            public DTMAxisIterator cloneIterator() { return this; }\n            public void setRestartable(boolean isRestartable) { }\n        };\n    \n    \n    public static final int RTF_ROOT = 0;\n    \n    public static final int RTF_TEXT = 1;\n    \n    public static final int NUMBER_OF_NODES = 2;\n    \n    private static int _documentURIIndex = 0;\n    \n    private static final String EMPTY_STR = \"\";\n    \n    private String _text;\n    \n    protected String[] _textArray;\n    \n    protected XSLTCDTMManager _dtmManager;\n    \n    protected int _size = 0;\n    \n    private int _documentID;\n\n    private BitArray _dontEscape = null;\n    \n    private boolean _escaping = true;\n    \n    public SimpleResultTreeImpl(XSLTCDTMManager dtmManager, int documentID)\n    {\n        _dtmManager = dtmManager;\n        _documentID = documentID;\n        _textArray = new String[4];\n    }\n    \n    public DTMManagerDefault getDTMManager()\n    {\n        return _dtmManager;\t\n    }\n    \n    public int getDocument()\n    {\n        return _documentID;\n    }\n\n    public String getStringValue()\n    {\n        return _text;\n    }\n    \n    public DTMAxisIterator getIterator()\n    {\n        return new SingletonIterator(getDocument());\n    }\n\t\n    public DTMAxisIterator getChildren(final int node)\n    {\n        return new SimpleIterator().setStartNode(node);\n    }\n    \n    public DTMAxisIterator getTypedChildren(final int type)\n    {\n        return new SimpleIterator(SimpleIterator.DIRECTION_DOWN, type);\n    }\n    \n    public DTMAxisIterator getAxisIterator(final int axis)\n    {\n        switch (axis)\n        {\n            case Axis.CHILD:\n            case Axis.DESCENDANT:\n                return new SimpleIterator(SimpleIterator.DIRECTION_DOWN);\n            case Axis.PARENT:\n            case Axis.ANCESTOR:\n                return new SimpleIterator(SimpleIterator.DIRECTION_UP);\n            case Axis.ANCESTORORSELF:\n                return (new SimpleIterator(SimpleIterator.DIRECTION_UP)).includeSelf();\n            case Axis.DESCENDANTORSELF:\n                return (new SimpleIterator(SimpleIterator.DIRECTION_DOWN)).includeSelf();\n            case Axis.SELF:\n                return new SingletonIterator();\n            default:\n                return EMPTY_ITERATOR;\n        }\n    }\n    \n    public DTMAxisIterator getTypedAxisIterator(final int axis, final int type)\n    {\n        switch (axis)\n        {\n            case Axis.CHILD:\n            case Axis.DESCENDANT:\n                return new SimpleIterator(SimpleIterator.DIRECTION_DOWN, type);\n            case Axis.PARENT:\n            case Axis.ANCESTOR:\n                return new SimpleIterator(SimpleIterator.DIRECTION_UP, type);\n            case Axis.ANCESTORORSELF:\n                return (new SimpleIterator(SimpleIterator.DIRECTION_UP, type)).includeSelf();\n            case Axis.DESCENDANTORSELF:\n                return (new SimpleIterator(SimpleIterator.DIRECTION_DOWN, type)).includeSelf();\n            case Axis.SELF:\n                return new SingletonIterator(type);\n            default:\n                return EMPTY_ITERATOR;\n        }\n    }\n    \n    public DTMAxisIterator getNthDescendant(int node, int n, boolean includeself)\n    {\n        return null; \n    }\n    \n    public DTMAxisIterator getNamespaceAxisIterator(final int axis, final int ns)\n    {\n        return null;\n    }\n    \n    public DTMAxisIterator getNodeValueIterator(DTMAxisIterator iter, int returnType,\n\t\t\t\t\t     String value, boolean op)\n    {\n        return null;\n    }\n    \n    public DTMAxisIterator orderNodes(DTMAxisIterator source, int node)\n    {\n        return source;\n    }\n    \n    public String getNodeName(final int node)\n    {\n        if (getNodeIdent(node) == RTF_TEXT)\n            return \"#text\";\n        else\n            return EMPTY_STR;\n    }\n    \n    public String getNodeNameX(final int node)\n    {\n        return EMPTY_STR;\n    }\n    \n    public String getNamespaceName(final int node)\n    {\n        return EMPTY_STR;\n    }\n    \n    public int getExpandedTypeID(final int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        if (nodeID == RTF_TEXT)\n            return DTM.TEXT_NODE;\n        else if (nodeID == RTF_ROOT)\n            return DTM.ROOT_NODE;\n        else\n            return DTM.NULL;\n    }\n    \n    public int getNamespaceType(final int node)\n    {\n        return 0;\n    }\n    \n    public int getParent(final int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        return (nodeID == RTF_TEXT) ? getNodeHandle(RTF_ROOT) : DTM.NULL;            \n    }\n    \n    public int getAttributeNode(final int gType, final int element)\n    {\n        return DTM.NULL;\n    }\n    \n    public String getStringValueX(final int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        if (nodeID == RTF_ROOT || nodeID == RTF_TEXT)\n            return _text;\n        else\n            return EMPTY_STR;\n    }\n    \n    public void copy(final int node, SerializationHandler handler)\n\tthrows TransletException\n    {\n        characters(node, handler);\n    }\n    \n    public void copy(DTMAxisIterator nodes, SerializationHandler handler)\n\tthrows TransletException\n    {\n        int node;\n        while ((node = nodes.next()) != DTM.NULL)\n        {\n            copy(node, handler);\n        }\n    }\n    \n    public String shallowCopy(final int node, SerializationHandler handler)\n\tthrows TransletException\n    {\n        characters(node, handler);\n        return null;\n    }\n    \n    public boolean lessThan(final int node1, final int node2)\n    {\n        if (node1 == DTM.NULL) {\n            return false;\n        }\n        else if (node2 == DTM.NULL) {\n            return true;\n        }\n        else\n            return (node1 < node2);\n    }\n    \n    /**\n     * Dispatch the character content of a node to an output handler.\n     *\n     * The escape setting should be taken care of when outputting to\n     * a handler.\n     */\n    public void characters(final int node, SerializationHandler handler)\n        throws TransletException\n    {\n        int nodeID = getNodeIdent(node);\n        if (nodeID == RTF_ROOT || nodeID == RTF_TEXT) {\n            boolean escapeBit = false;\n            boolean oldEscapeSetting = false;\n\n            try {\n                for (int i = 0; i < _size; i++) {\n\n                    if (_dontEscape != null) {\n                        escapeBit = _dontEscape.getBit(i);\n                        if (escapeBit) {\n                            oldEscapeSetting = handler.setEscaping(false);\n                        }\n                    }\n                \n                    handler.characters(_textArray[i]);\n                \n                    if (escapeBit) {\n                        handler.setEscaping(oldEscapeSetting);\n                    }\n                }\n            } catch (SAXException e) {\n                throw new TransletException(e);\n            }\n        }\n    }\n    \n    public Node makeNode(int index)\n    {\n        return null;\n    }\n    \n    public Node makeNode(DTMAxisIterator iter)\n    {\n        return null;\n    }\n    \n    public NodeList makeNodeList(int index)\n    {\n        return null;\n    }\n    \n    public NodeList makeNodeList(DTMAxisIterator iter)\n    {\n        return null;\n    }\n    \n    public String getLanguage(int node)\n    {\n        return null;\n    }\n    \n    public int getSize()\n    {\n        return 2;\n    }\n    \n    public String getDocumentURI(int node)\n    {\n        return \"simple_rtf\" + _documentURIIndex++;\n    }\n    \n    public void setFilter(StripFilter filter)\n    {\n    }\n    \n    public void setupMapping(String[] names, String[] uris, int[] types, String[] namespaces)\n    {\n    }\n    \n    public boolean isElement(final int node)\n    {\n        return false;\n    }\n    \n    public boolean isAttribute(final int node)\n    {\n        return false;\n    }\n    \n    public String lookupNamespace(int node, String prefix)\n\tthrows TransletException\n    {\n        return null;\n    }\n    \n    /**\n     * Return the node identity from a node handle.\n     */\n    public int getNodeIdent(final int nodehandle)\n    {\n        return (nodehandle != DTM.NULL) ? (nodehandle - _documentID) : DTM.NULL;\n    }\n    \n    /**\n     * Return the node handle from a node identity.\n     */\n    public int getNodeHandle(final int nodeId)\n    {\n        return (nodeId != DTM.NULL) ? (nodeId + _documentID) : DTM.NULL;\n    }\n    \n    public DOM getResultTreeFrag(int initialSize, int rtfType)\n    {\n        return null;\n    }\n    \n    public DOM getResultTreeFrag(int initialSize, int rtfType, boolean addToManager)\n    {\n        return null;\n    }\n    \n    public SerializationHandler getOutputDomBuilder()\n    {\n        return this;\n    }\n    \n    public int getNSType(int node)\n    {\n        return 0;\n    }\n    \n    public String getUnparsedEntityURI(String name)\n    {\n        return null;\n    }\n    \n    public Hashtable getElementsWithIDs()\n    {\n        return null;\n    }\n\n    /** Implementation of the SerializationHandler interfaces **/\n    \n    /**\n     * We only need to override the endDocument, characters, and \n     * setEscaping interfaces. A simple RTF does not have element\n     * nodes. We do not need to touch startElement and endElement.\n     */\n    \n    public void startDocument() throws SAXException\n    {\n    \n    }\n    \n    public void endDocument() throws SAXException\n    {\n        if (_size == 1)\n            _text = _textArray[0];\n        else {\n            StringBuffer buffer = new StringBuffer();\n            for (int i = 0; i < _size; i++) {\n                buffer.append(_textArray[i]);\n            }\n            _text = buffer.toString();\n        }\n    }\n\n    public void characters(String str) throws SAXException\n    {\n        if (_size >= _textArray.length) {\n            String[] newTextArray = new String[_textArray.length * 2];\n            System.arraycopy(_textArray, 0, newTextArray, 0, _textArray.length);\n            _textArray = newTextArray;\n        }\n        \n        if (!_escaping) {\n            if (_dontEscape == null) {\n                _dontEscape = new BitArray(8);\n            }\n            \n            if (_size >= _dontEscape.size())\n                _dontEscape.resize(_dontEscape.size() * 2);\n            \n            _dontEscape.setBit(_size);\n        }\n        \n        _textArray[_size++] = str;\n    }\n    \n    public void characters(char[] ch, int offset, int length)\n\tthrows SAXException\n    {\n        if (_size >= _textArray.length) {\n            String[] newTextArray = new String[_textArray.length * 2];\n            System.arraycopy(_textArray, 0, newTextArray, 0, _textArray.length);\n            _textArray = newTextArray;\n        }\n\n        if (!_escaping) {\n            if (_dontEscape == null) {\n                _dontEscape = new BitArray(8);\n            }\n            \n            if (_size >= _dontEscape.size())\n                _dontEscape.resize(_dontEscape.size() * 2);\n            \n            _dontEscape.setBit(_size);\n        }\n       \n        _textArray[_size++] = new String(ch, offset, length);\n        \n    }\n    \n    public boolean setEscaping(boolean escape) throws SAXException\n    {\n        final boolean temp = _escaping;\n        _escaping = escape; \n        return temp;\n    }\n        \n    /** Implementation of the DTM interfaces **/\n    \n    /**\n     * The DTM interfaces are not used in this class. Implementing the DTM\n     * interface is a requirement from MultiDOM. If we have a better way\n     * of handling multiple documents, we can get rid of the DTM dependency.\n     *\n     * The following interfaces are just placeholders. The implementation\n     * does not have an impact because they will not be used.\n     */\n     \n    public void setFeature(String featureId, boolean state)\n    {\n    }\n    \n    public void setProperty(String property, Object value)\n    {\n    }\n    \n    public DTMAxisTraverser getAxisTraverser(final int axis)\n    {\n        return null;\n    }\n    \n    public boolean hasChildNodes(int nodeHandle)\n    {\n        return (getNodeIdent(nodeHandle) == RTF_ROOT);\n    }\n    \n    public int getFirstChild(int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        if (nodeID == RTF_ROOT)\n            return getNodeHandle(RTF_TEXT);\n        else\n            return DTM.NULL;\n    }\n    \n    public int getLastChild(int nodeHandle)\n    {\n        return getFirstChild(nodeHandle);\n    }\n    \n    public int getAttributeNode(int elementHandle, String namespaceURI, String name)\n    {\n        return DTM.NULL;\n    }\n    \n    public int getFirstAttribute(int nodeHandle)\n    {\n        return DTM.NULL;\n    }\n    \n    public int getFirstNamespaceNode(int nodeHandle, boolean inScope)\n    {\n        return DTM.NULL;\n    }\n    \n    public int getNextSibling(int nodeHandle)\n    {\n        return DTM.NULL;\n    }\n    \n    public int getPreviousSibling(int nodeHandle)\n    {\n        return DTM.NULL;\n    }\n    \n    public int getNextAttribute(int nodeHandle)\n    {\n        return DTM.NULL;\n    }\n    \n    public int getNextNamespaceNode(int baseHandle, int namespaceHandle,\n                                  boolean inScope)\n    {\n        return DTM.NULL;\n    }\n    \n    public int getOwnerDocument(int nodeHandle)\n    {\n        return getDocument();\n    }\n    \n    public int getDocumentRoot(int nodeHandle)\n    {\n        return getDocument();\n    }\n    \n    public XMLString getStringValue(int nodeHandle)\n    {\n        return new XMLStringDefault(getStringValueX(nodeHandle));\n    }\n    \n    public int getStringValueChunkCount(int nodeHandle)\n    {\n        return 0;\n    }\n    \n    public char[] getStringValueChunk(int nodeHandle, int chunkIndex,\n                                    int[] startAndLen)\n    {\n        return null;\n    }\n    \n    public int getExpandedTypeID(String namespace, String localName, int type)\n    {\n        return DTM.NULL;\n    }\n    \n    public String getLocalNameFromExpandedNameID(int ExpandedNameID)\n    {\n        return EMPTY_STR;\n    }\n    \n    public String getNamespaceFromExpandedNameID(int ExpandedNameID)\n    {\n        return EMPTY_STR;\n    }\n    \n    public String getLocalName(int nodeHandle)\n    {\n        return EMPTY_STR;\n    }\n    \n    public String getPrefix(int nodeHandle)\n    {\n        return null;\n    }\n    \n    public String getNamespaceURI(int nodeHandle)\n    {\n        return EMPTY_STR;\n    }\n    \n    public String getNodeValue(int nodeHandle)\n    {\n        return (getNodeIdent(nodeHandle) == RTF_TEXT) ? _text : null;\n    }\n    \n    public short getNodeType(int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        if (nodeID == RTF_TEXT)\n            return DTM.TEXT_NODE;\n        else if (nodeID == RTF_ROOT)\n            return DTM.ROOT_NODE;\n        else\n            return DTM.NULL;\n        \n    }\n    \n    public short getLevel(int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        if (nodeID == RTF_TEXT)\n            return 2;\n        else if (nodeID == RTF_ROOT)\n            return 1;\n        else\n            return DTM.NULL;            \n    }\n    \n    public boolean isSupported(String feature, String version)\n    {\n        return false;\n    }\n    \n    public String getDocumentBaseURI()\n    {\n        return EMPTY_STR;\n    }\n    \n    public void setDocumentBaseURI(String baseURI)\n    {\n    }\n    \n    public String getDocumentSystemIdentifier(int nodeHandle)\n    {\n        return null;\n    }\n    \n    public String getDocumentEncoding(int nodeHandle)\n    {\n        return null;\n    }\n    \n    public String getDocumentStandalone(int nodeHandle)\n    {\n        return null;\n    }\n    \n    public String getDocumentVersion(int documentHandle)\n    {\n        return null;\n    }\n    \n    public boolean getDocumentAllDeclarationsProcessed()\n    {\n        return false;\n    }\n    \n    public String getDocumentTypeDeclarationSystemIdentifier()\n    {\n        return null;\n    }\n    \n    public String getDocumentTypeDeclarationPublicIdentifier()\n    {\n        return null;\n    }\n    \n    public int getElementById(String elementId)\n    {\n        return DTM.NULL;\n    }\n        \n    public boolean supportsPreStripping()\n    {\n        return false;\n    }\n    \n    public boolean isNodeAfter(int firstNodeHandle, int secondNodeHandle)\n    {\n        return lessThan(firstNodeHandle, secondNodeHandle);\n    }\n    \n    public boolean isCharacterElementContentWhitespace(int nodeHandle)\n    {\n        return false;\n    }\n    \n    public boolean isDocumentAllDeclarationsProcessed(int documentHandle)\n    {\n        return false;\n    }\n    \n    public boolean isAttributeSpecified(int attributeHandle)\n    {\n        return false;\n    }\n    \n    public void dispatchCharactersEvents(\n        int nodeHandle,\n        org.xml.sax.ContentHandler ch,\n        boolean normalize)\n          throws org.xml.sax.SAXException\n    {\n    }\n    \n    public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n      throws org.xml.sax.SAXException\n    {\n    }\n    \n    public org.w3c.dom.Node getNode(int nodeHandle)\n    {\n        return makeNode(nodeHandle);\n    }\n    \n    public boolean needsTwoThreads()\n    {\n        return false;\n    }\n    \n    public org.xml.sax.ContentHandler getContentHandler()\n    {\n        return null;\n    }\n    \n    public org.xml.sax.ext.LexicalHandler getLexicalHandler()\n    {\n        return null;\n    }\n    \n    public org.xml.sax.EntityResolver getEntityResolver()\n    {\n        return null;\n    }\n    \n    public org.xml.sax.DTDHandler getDTDHandler()\n    {\n        return null;\n    }\n    \n    public org.xml.sax.ErrorHandler getErrorHandler()\n    {\n        return null;\n    }\n    \n    public org.xml.sax.ext.DeclHandler getDeclHandler()\n    {\n        return null;\n    }\n    \n    public void appendChild(int newChild, boolean clone, boolean cloneDepth)\n    {\n    }\n    \n    public void appendTextChild(String str)\n    {\n    }\n    \n    public SourceLocator getSourceLocatorFor(int node)\n    {\n    \treturn null;\n    }\n    \n    public void documentRegistration()\n    {\n    }\n    \n    public void documentRelease()\n    {\n    }\n\n    public void migrateTo(DTMManager manager)", "functions": [{"function_name": "getDTMManager", "code": "    public DTMManagerDefault getDTMManager()\n    {\n        return _dtmManager;\t", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocument", "code": "    public int getDocument()\n    {\n        return _documentID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStringValue", "code": "    public String getStringValue()\n    {\n        return _text;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getIterator", "code": "    public DTMAxisIterator getIterator()\n    {\n        return new SingletonIterator(getDocument());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getChildren", "code": "    public DTMAxisIterator getChildren(final int node)\n    {\n        return new SimpleIterator().setStartNode(node);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getTypedChildren", "code": "    public DTMAxisIterator getTypedChildren(final int type)\n    {\n        return new SimpleIterator(SimpleIterator.DIRECTION_DOWN, type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAxisIterator", "code": "    public DTMAxisIterator getAxisIterator(final int axis)\n    {\n        switch (axis)\n        {\n            case Axis.CHILD:\n            case Axis.DESCENDANT:\n                return new SimpleIterator(SimpleIterator.DIRECTION_DOWN);\n            case Axis.PARENT:\n            case Axis.ANCESTOR:\n                return new SimpleIterator(SimpleIterator.DIRECTION_UP);\n            case Axis.ANCESTORORSELF:\n                return (new SimpleIterator(SimpleIterator.DIRECTION_UP)).includeSelf();\n            case Axis.DESCENDANTORSELF:\n                return (new SimpleIterator(SimpleIterator.DIRECTION_DOWN)).includeSelf();\n            case Axis.SELF:\n                return new SingletonIterator();\n            default:\n                return EMPTY_ITERATOR;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [4, 9], [5, 10], [6, 11], [7, 12], [8, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 4], [10, 5], [11, 6], [12, 7], [13, 8], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getTypedAxisIterator", "code": "    public DTMAxisIterator getTypedAxisIterator(final int axis, final int type)\n    {\n        switch (axis)\n        {\n            case Axis.CHILD:\n            case Axis.DESCENDANT:\n                return new SimpleIterator(SimpleIterator.DIRECTION_DOWN, type);\n            case Axis.PARENT:\n            case Axis.ANCESTOR:\n                return new SimpleIterator(SimpleIterator.DIRECTION_UP, type);\n            case Axis.ANCESTORORSELF:\n                return (new SimpleIterator(SimpleIterator.DIRECTION_UP, type)).includeSelf();\n            case Axis.DESCENDANTORSELF:\n                return (new SimpleIterator(SimpleIterator.DIRECTION_DOWN, type)).includeSelf();\n            case Axis.SELF:\n                return new SingletonIterator(type);\n            default:\n                return EMPTY_ITERATOR;", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getNthDescendant", "code": "    public DTMAxisIterator getNthDescendant(int node, int n, boolean includeself)\n    {\n        return null; ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getNamespaceAxisIterator", "code": "    public DTMAxisIterator getNamespaceAxisIterator(final int axis, final int ns)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNodeValueIterator", "code": "    public DTMAxisIterator getNodeValueIterator(DTMAxisIterator iter, int returnType,\n\t\t\t\t\t     String value, boolean op)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "orderNodes", "code": "    public DTMAxisIterator orderNodes(DTMAxisIterator source, int node)\n    {\n        return source;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNodeName", "code": "    public String getNodeName(final int node)\n    {\n        if (getNodeIdent(node) == RTF_TEXT)\n            return \"#text\";\n        else\n            return EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNodeNameX", "code": "    public String getNodeNameX(final int node)\n    {\n        return EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamespaceName", "code": "    public String getNamespaceName(final int node)\n    {\n        return EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExpandedTypeID", "code": "    public int getExpandedTypeID(final int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        if (nodeID == RTF_TEXT)\n            return DTM.TEXT_NODE;\n        else if (nodeID == RTF_ROOT)\n            return DTM.ROOT_NODE;\n        else\n            return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getNamespaceType", "code": "    public int getNamespaceType(final int node)\n    {\n        return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getParent", "code": "    public int getParent(final int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        return (nodeID == RTF_TEXT) ? getNodeHandle(RTF_ROOT) : DTM.NULL;            ", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "CALL", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getAttributeNode", "code": "    public int getAttributeNode(final int gType, final int element)\n    {\n        return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStringValueX", "code": "    public String getStringValueX(final int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        if (nodeID == RTF_ROOT || nodeID == RTF_TEXT)\n            return _text;\n        else\n            return EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [6, 7], [6, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 6], [8, 6], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "copy", "code": "    public void copy(final int node, SerializationHandler handler)\n\tthrows TransletException\n    {\n        characters(node, handler);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "copy", "code": "    public void copy(DTMAxisIterator nodes, SerializationHandler handler)\n\tthrows TransletException\n    {\n        int node;\n        while ((node = nodes.next()) != DTM.NULL)\n        {\n            copy(node, handler);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "shallowCopy", "code": "    public String shallowCopy(final int node, SerializationHandler handler)\n\tthrows TransletException\n    {\n        characters(node, handler);\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "lessThan", "code": "    public boolean lessThan(final int node1, final int node2)\n    {\n        if (node1 == DTM.NULL) {\n            return false;\n        }\n        else if (node2 == DTM.NULL) {\n            return true;\n        }\n        else\n            return (node1 < node2);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [1, 8], [6, 9], [4, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 1], [9, 6], [10, 4], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "characters", "code": "    public void characters(final int node, SerializationHandler handler)\n        throws TransletException\n    {\n        int nodeID = getNodeIdent(node);\n        if (nodeID == RTF_ROOT || nodeID == RTF_TEXT) {\n            boolean escapeBit = false;\n            boolean oldEscapeSetting = false;\n\n            try {\n                for (int i = 0; i < _size; i++) {\n\n                    if (_dontEscape != null) {\n                        escapeBit = _dontEscape.getBit(i);\n                        if (escapeBit) {\n                            oldEscapeSetting = handler.setEscaping(false);\n                        }\n                    }\n                \n                    handler.characters(_textArray[i]);\n                \n                    if (escapeBit) {\n                        handler.setEscaping(oldEscapeSetting);\n                    }\n                }\n            } catch (SAXException e) {\n                throw new TransletException(e);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "CATCH", "LOOP", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [5, 9], [5, 10], [2, 11], [6, 12], [6, 13], [12, 14], [13, 15], [7, 16], [8, 17], [14, 18], [13, 19], [13, 20], [13, 21], [20, 22], [13, 23], [20, 24], [22, 25], [19, 26], [20, 27], [27, 28], [24, 29], [29, 30], [30, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 5], [10, 5], [11, 2], [12, 6], [13, 6], [14, 12], [15, 13], [16, 7], [17, 8], [18, 14], [19, 13], [20, 13], [21, 13], [22, 20], [23, 13], [24, 20], [25, 22], [26, 19], [27, 20], [28, 27], [29, 24], [30, 29], [31, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "makeNode", "code": "    public Node makeNode(int index)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "makeNode", "code": "    public Node makeNode(DTMAxisIterator iter)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "makeNodeList", "code": "    public NodeList makeNodeList(int index)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "makeNodeList", "code": "    public NodeList makeNodeList(DTMAxisIterator iter)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getLanguage", "code": "    public String getLanguage(int node)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentURI", "code": "    public String getDocumentURI(int node)\n    {\n        return \"simple_rtf\" + _documentURIIndex++;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setFilter", "code": "    public void setFilter(StripFilter filter)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setupMapping", "code": "    public void setupMapping(String[] names, String[] uris, int[] types, String[] namespaces)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isElement", "code": "    public boolean isElement(final int node)\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAttribute", "code": "    public boolean isAttribute(final int node)\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "lookupNamespace", "code": "    public String lookupNamespace(int node, String prefix)\n\tthrows TransletException\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNodeIdent", "code": "    public int getNodeIdent(final int nodehandle)\n    {\n        return (nodehandle != DTM.NULL) ? (nodehandle - _documentID) : DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getNodeHandle", "code": "    public int getNodeHandle(final int nodeId)\n    {\n        return (nodeId != DTM.NULL) ? (nodeId + _documentID) : DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getResultTreeFrag", "code": "    public DOM getResultTreeFrag(int initialSize, int rtfType)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getResultTreeFrag", "code": "    public DOM getResultTreeFrag(int initialSize, int rtfType, boolean addToManager)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getOutputDomBuilder", "code": "    public SerializationHandler getOutputDomBuilder()\n    {\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNSType", "code": "    public int getNSType(int node)\n    {\n        return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getUnparsedEntityURI", "code": "    public String getUnparsedEntityURI(String name)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getElementsWithIDs", "code": "    public Hashtable getElementsWithIDs()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startDocument", "code": "    public void startDocument() throws SAXException", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "endDocument", "code": "    public void endDocument() throws SAXException\n    {\n        if (_size == 1)\n            _text = _textArray[0];\n        else {\n            StringBuffer buffer = new StringBuffer();\n            for (int i = 0; i < _size; i++) {\n                buffer.append(_textArray[i]);\n            }\n            _text = buffer.toString();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LOOP", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [2, 6], [1, 7], [3, 8], [7, 9], [4, 10], [3, 11], [3, 12], [5, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 2], [7, 1], [8, 3], [9, 7], [10, 4], [11, 3], [12, 3], [13, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "characters", "code": "    public void characters(String str) throws SAXException\n    {\n        if (_size >= _textArray.length) {\n            String[] newTextArray = new String[_textArray.length * 2];\n            System.arraycopy(_textArray, 0, newTextArray, 0, _textArray.length);\n            _textArray = newTextArray;\n        }\n        \n        if (!_escaping) {\n            if (_dontEscape == null) {\n                _dontEscape = new BitArray(8);\n            }\n            \n            if (_size >= _dontEscape.size())\n                _dontEscape.resize(_dontEscape.size() * 2);\n            \n            _dontEscape.setBit(_size);\n        }\n        \n        _textArray[_size++] = str;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "ASSIGN", "BINARY_OP", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 6], [1, 7], [2, 8], [1, 9], [6, 10], [7, 11], [2, 12], [2, 13], [6, 14], [10, 15], [11, 16], [13, 17], [13, 18], [14, 19], [7, 20], [8, 21], [19, 22], [19, 23], [20, 24], [21, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 1], [7, 1], [8, 2], [9, 1], [10, 6], [11, 7], [12, 2], [13, 2], [14, 6], [15, 10], [16, 11], [17, 13], [18, 13], [19, 14], [20, 7], [21, 8], [22, 19], [23, 19], [24, 20], [25, 21], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "characters", "code": "    public void characters(char[] ch, int offset, int length)\n\tthrows SAXException\n    {\n        if (_size >= _textArray.length) {\n            String[] newTextArray = new String[_textArray.length * 2];\n            System.arraycopy(_textArray, 0, newTextArray, 0, _textArray.length);\n            _textArray = newTextArray;\n        }\n\n        if (!_escaping) {\n            if (_dontEscape == null) {\n                _dontEscape = new BitArray(8);\n            }\n            \n            if (_size >= _dontEscape.size())\n                _dontEscape.resize(_dontEscape.size() * 2);\n            \n            _dontEscape.setBit(_size);\n        }\n       \n        _textArray[_size++] = new String(ch, offset, length);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "IF", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [6, 8], [1, 9], [1, 10], [2, 11], [1, 12], [9, 13], [10, 14], [2, 15], [2, 16], [9, 17], [13, 18], [14, 19], [16, 20], [16, 21], [17, 22], [10, 23], [11, 24], [22, 25], [22, 26], [23, 27], [24, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 6], [9, 1], [10, 1], [11, 2], [12, 1], [13, 9], [14, 10], [15, 2], [16, 2], [17, 9], [18, 13], [19, 14], [20, 16], [21, 16], [22, 17], [23, 10], [24, 11], [25, 22], [26, 22], [27, 23], [28, 24], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "setEscaping", "code": "    public boolean setEscaping(boolean escape) throws SAXException\n    {\n        final boolean temp = _escaping;\n        _escaping = escape; \n        return temp;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setFeature", "code": "    public void setFeature(String featureId, boolean state)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProperty", "code": "    public void setProperty(String property, Object value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAxisTraverser", "code": "    public DTMAxisTraverser getAxisTraverser(final int axis)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "hasChildNodes", "code": "    public boolean hasChildNodes(int nodeHandle)\n    {\n        return (getNodeIdent(nodeHandle) == RTF_ROOT);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFirstChild", "code": "    public int getFirstChild(int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        if (nodeID == RTF_ROOT)\n            return getNodeHandle(RTF_TEXT);\n        else\n            return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [5, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 5], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getLastChild", "code": "    public int getLastChild(int nodeHandle)\n    {\n        return getFirstChild(nodeHandle);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAttributeNode", "code": "    public int getAttributeNode(int elementHandle, String namespaceURI, String name)\n    {\n        return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getFirstAttribute", "code": "    public int getFirstAttribute(int nodeHandle)\n    {\n        return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFirstNamespaceNode", "code": "    public int getFirstNamespaceNode(int nodeHandle, boolean inScope)\n    {\n        return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNextSibling", "code": "    public int getNextSibling(int nodeHandle)\n    {\n        return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPreviousSibling", "code": "    public int getPreviousSibling(int nodeHandle)\n    {\n        return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNextAttribute", "code": "    public int getNextAttribute(int nodeHandle)\n    {\n        return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNextNamespaceNode", "code": "    public int getNextNamespaceNode(int baseHandle, int namespaceHandle,\n                                  boolean inScope)\n    {\n        return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getOwnerDocument", "code": "    public int getOwnerDocument(int nodeHandle)\n    {\n        return getDocument();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentRoot", "code": "    public int getDocumentRoot(int nodeHandle)\n    {\n        return getDocument();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStringValue", "code": "    public XMLString getStringValue(int nodeHandle)\n    {\n        return new XMLStringDefault(getStringValueX(nodeHandle));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getStringValueChunkCount", "code": "    public int getStringValueChunkCount(int nodeHandle)\n    {\n        return 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getStringValueChunk", "code": "    public char[] getStringValueChunk(int nodeHandle, int chunkIndex,\n                                    int[] startAndLen)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getExpandedTypeID", "code": "    public int getExpandedTypeID(String namespace, String localName, int type)\n    {\n        return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLocalNameFromExpandedNameID", "code": "    public String getLocalNameFromExpandedNameID(int ExpandedNameID)\n    {\n        return EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamespaceFromExpandedNameID", "code": "    public String getNamespaceFromExpandedNameID(int ExpandedNameID)\n    {\n        return EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalName", "code": "    public String getLocalName(int nodeHandle)\n    {\n        return EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPrefix", "code": "    public String getPrefix(int nodeHandle)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNamespaceURI", "code": "    public String getNamespaceURI(int nodeHandle)\n    {\n        return EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNodeValue", "code": "    public String getNodeValue(int nodeHandle)\n    {\n        return (getNodeIdent(nodeHandle) == RTF_TEXT) ? _text : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNodeType", "code": "    public short getNodeType(int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        if (nodeID == RTF_TEXT)\n            return DTM.TEXT_NODE;\n        else if (nodeID == RTF_ROOT)\n            return DTM.ROOT_NODE;\n        else\n            return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getLevel", "code": "    public short getLevel(int nodeHandle)\n    {\n        int nodeID = getNodeIdent(nodeHandle);\n        if (nodeID == RTF_TEXT)\n            return 2;\n        else if (nodeID == RTF_ROOT)\n            return 1;\n        else\n            return DTM.NULL;            ", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [4, 9], [5, 10], [2, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 4], [10, 5], [11, 2], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "isSupported", "code": "    public boolean isSupported(String feature, String version)\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDocumentBaseURI", "code": "    public String getDocumentBaseURI()\n    {\n        return EMPTY_STR;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDocumentBaseURI", "code": "    public void setDocumentBaseURI(String baseURI)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentSystemIdentifier", "code": "    public String getDocumentSystemIdentifier(int nodeHandle)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentEncoding", "code": "    public String getDocumentEncoding(int nodeHandle)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentStandalone", "code": "    public String getDocumentStandalone(int nodeHandle)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentVersion", "code": "    public String getDocumentVersion(int documentHandle)\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDocumentAllDeclarationsProcessed", "code": "    public boolean getDocumentAllDeclarationsProcessed()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentTypeDeclarationSystemIdentifier", "code": "    public String getDocumentTypeDeclarationSystemIdentifier()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDocumentTypeDeclarationPublicIdentifier", "code": "    public String getDocumentTypeDeclarationPublicIdentifier()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getElementById", "code": "    public int getElementById(String elementId)\n    {\n        return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "supportsPreStripping", "code": "    public boolean supportsPreStripping()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isNodeAfter", "code": "    public boolean isNodeAfter(int firstNodeHandle, int secondNodeHandle)\n    {\n        return lessThan(firstNodeHandle, secondNodeHandle);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "isCharacterElementContentWhitespace", "code": "    public boolean isCharacterElementContentWhitespace(int nodeHandle)\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDocumentAllDeclarationsProcessed", "code": "    public boolean isDocumentAllDeclarationsProcessed(int documentHandle)\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isAttributeSpecified", "code": "    public boolean isAttributeSpecified(int attributeHandle)\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispatchCharactersEvents", "code": "    public void dispatchCharactersEvents(\n        int nodeHandle,\n        org.xml.sax.ContentHandler ch,\n        boolean normalize)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispatchToEvents", "code": "    public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNode", "code": "    public org.w3c.dom.Node getNode(int nodeHandle)\n    {\n        return makeNode(nodeHandle);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "needsTwoThreads", "code": "    public boolean needsTwoThreads()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getContentHandler", "code": "    public org.xml.sax.ContentHandler getContentHandler()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLexicalHandler", "code": "    public org.xml.sax.ext.LexicalHandler getLexicalHandler()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEntityResolver", "code": "    public org.xml.sax.EntityResolver getEntityResolver()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDTDHandler", "code": "    public org.xml.sax.DTDHandler getDTDHandler()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorHandler", "code": "    public org.xml.sax.ErrorHandler getErrorHandler()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDeclHandler", "code": "    public org.xml.sax.ext.DeclHandler getDeclHandler()\n    {\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "appendChild", "code": "    public void appendChild(int newChild, boolean clone, boolean cloneDepth)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "appendTextChild", "code": "    public void appendTextChild(String str)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSourceLocatorFor", "code": "    public SourceLocator getSourceLocatorFor(int node)\n    {\n    \treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "documentRegistration", "code": "    public void documentRegistration()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "documentRelease", "code": "    public void documentRelease()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "migrateTo", "code": "    public void migrateTo(DTMManager manager)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SimpleResultTreeImpl", "code": "    public SimpleResultTreeImpl(XSLTCDTMManager dtmManager, int documentID)\n    {\n        _dtmManager = dtmManager;\n        _documentID = documentID;\n        _textArray = new String[4];", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "jedit-4.0-3755", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/proto/jeditresource/PluginResURLConnection.java", "language": "java", "name": "org.gjt.sp.jedit.proto.jeditresource.PluginResURLConnection", "code": "public class PluginResURLConnection extends URLConnection\n{\n\tpublic PluginResURLConnection(URL url)\n\t\tthrows IOException\n\t{\n\t\tsuper(url);\n\n\t\tString file = url.getFile();\n\n\t\tint index = file.indexOf('!',0);\n\t\tif(index == -1)\n\t\t{\n\t\t\tplugin = null;\n\t\t\tresource = file;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint start;\n\t\t\tif(file.charAt(0) == '/')\n\t\t\t\tstart = 1;\n\t\t\telse\n\t\t\t\tstart = 0;\n\n\t\t\tplugin = file.substring(start,index);\n\t\t\tresource = file.substring(index + 1);\n\t\t}\n\n\t\tif(plugin != null && resource.startsWith(\"/\"))\n\t\t\tresource = resource.substring(1);\n\t}\n\n\tpublic void connect() throws IOException\n\t{\n\t\tif(!connected)\n\t\t{\n\t\t\tif(plugin == null)\n\t\t\t{\n\t\t\t\tin = jEdit.class.getResourceAsStream(resource);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tEditPlugin.JAR[] plugins = jEdit.getPluginJARs();\n\t\t\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t\t\t{\n\t\t\t\t\tEditPlugin.JAR jar = plugins[i];\n\t\t\t\t\tif(MiscUtilities.getFileName(jar.getPath())\n\t\t\t\t\t\t.equalsIgnoreCase(plugin))\n\t\t\t\t\t{\n\t\t\t\t\t\tin = jar.getClassLoader()\n\t\t\t\t\t\t\t.getResourceAsStream(\n\t\t\t\t\t\t\tresource);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(in == null)\n\t\t\t{\n\t\t\t\tthrow new IOException(\"Resource not found: \"\n\t\t\t\t\t+ resource);\n\t\t\t}\n\n\t\t\tconnected = true;\n\t\t}\n\t}\n\n\tpublic InputStream getInputStream()\n\t\tthrows IOException\n\t{\n\t\tconnect();\n\t\treturn in;\n\t}\n\n\tpublic String getHeaderField(String name)\n\t{\n\t\tif(name.equals(\"content-type\"))\n\t\t{\n\t\t\tString lcResource = resource.toLowerCase();\n\t\t\tif(lcResource.endsWith(\".html\"))\n\t\t\t\treturn \"text/html\";\n\t\t\telse if(lcResource.endsWith(\".txt\"))\n\t\t\t\treturn \"text/plain\";\n\t\t\telse if(lcResource.endsWith(\".rtf\"))\n\t\t\t\treturn \"text/rtf\";\n\t\t\telse if(lcResource.endsWith(\".gif\"))\n\t\t\t\treturn \"image/gif\";\n\t\t\telse if(lcResource.endsWith(\".jpg\")\n\t\t\t\t|| lcResource.endsWith(\".jpeg\"))\n\t\t\t\treturn \"image/jpeg\";\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t\treturn null;\n\t}\n\n\t// private members\n\tprivate InputStream in;\n\tprivate String plugin;\n\tprivate String resource;", "functions": [{"function_name": "connect", "code": "\tpublic void connect() throws IOException\n\t{\n\t\tif(!connected)\n\t\t{\n\t\t\tif(plugin == null)\n\t\t\t{\n\t\t\t\tin = jEdit.class.getResourceAsStream(resource);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tEditPlugin.JAR[] plugins = jEdit.getPluginJARs();\n\t\t\t\tfor(int i = 0; i < plugins.length; i++)\n\t\t\t\t{\n\t\t\t\t\tEditPlugin.JAR jar = plugins[i];\n\t\t\t\t\tif(MiscUtilities.getFileName(jar.getPath())\n\t\t\t\t\t\t.equalsIgnoreCase(plugin))\n\t\t\t\t\t{\n\t\t\t\t\t\tin = jar.getClassLoader()\n\t\t\t\t\t\t\t.getResourceAsStream(\n\t\t\t\t\t\t\tresource);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(in == null)\n\t\t\t{\n\t\t\t\tthrow new IOException(\"Resource not found: \"\n\t\t\t\t\t+ resource);\n\t\t\t}\n\n\t\t\tconnected = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [2, 8], [5, 9], [3, 10], [3, 11], [6, 12], [8, 13], [10, 14], [3, 15], [13, 16], [10, 17], [10, 18], [11, 19], [15, 20], [16, 21], [17, 22], [10, 23], [17, 24], [22, 25], [22, 26], [17, 27], [27, 28], [28, 29], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 2], [9, 5], [10, 3], [11, 3], [12, 6], [13, 8], [14, 10], [15, 3], [16, 13], [17, 10], [18, 10], [19, 11], [20, 15], [21, 16], [22, 17], [23, 10], [24, 17], [25, 22], [26, 22], [27, 17], [28, 27], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getInputStream", "code": "\tpublic InputStream getInputStream()\n\t\tthrows IOException\n\t{\n\t\tconnect();\n\t\treturn in;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeaderField", "code": "\tpublic String getHeaderField(String name)\n\t{\n\t\tif(name.equals(\"content-type\"))\n\t\t{\n\t\t\tString lcResource = resource.toLowerCase();\n\t\t\tif(lcResource.endsWith(\".html\"))\n\t\t\t\treturn \"text/html\";\n\t\t\telse if(lcResource.endsWith(\".txt\"))\n\t\t\t\treturn \"text/plain\";\n\t\t\telse if(lcResource.endsWith(\".rtf\"))\n\t\t\t\treturn \"text/rtf\";\n\t\t\telse if(lcResource.endsWith(\".gif\"))\n\t\t\t\treturn \"image/gif\";\n\t\t\telse if(lcResource.endsWith(\".jpg\")\n\t\t\t\t|| lcResource.endsWith(\".jpeg\"))\n\t\t\t\treturn \"image/jpeg\";\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "RETURN", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "RETURN", "CALL", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [1, 7], [4, 8], [6, 9], [6, 10], [6, 11], [9, 12], [9, 13], [9, 14], [10, 15], [11, 16], [7, 17], [12, 18], [12, 19], [12, 20], [13, 21], [14, 22], [18, 23], [18, 24], [18, 25], [19, 26], [20, 27], [23, 28], [23, 29], [23, 30], [24, 31], [25, 32], [28, 33], [29, 34], [30, 35], [30, 36], [35, 37], [36, 38], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 1], [8, 4], [9, 6], [10, 6], [11, 6], [12, 9], [13, 9], [14, 9], [15, 10], [16, 11], [17, 7], [18, 12], [19, 12], [20, 12], [21, 13], [22, 14], [23, 18], [24, 18], [25, 18], [26, 19], [27, 20], [28, 23], [29, 23], [30, 23], [31, 24], [32, 25], [33, 28], [34, 29], [35, 30], [36, 30], [37, 35], [38, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "PluginResURLConnection", "code": "\tpublic PluginResURLConnection(URL url)\n\t\tthrows IOException\n\t{\n\t\tsuper(url);\n\n\t\tString file = url.getFile();\n\n\t\tint index = file.indexOf('!',0);\n\t\tif(index == -1)\n\t\t{\n\t\t\tplugin = null;\n\t\t\tresource = file;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint start;\n\t\t\tif(file.charAt(0) == '/')\n\t\t\t\tstart = 1;\n\t\t\telse\n\t\t\t\tstart = 0;\n\n\t\t\tplugin = file.substring(start,index);\n\t\t\tresource = file.substring(index + 1);\n\t\t}\n\n\t\tif(plugin != null && resource.startsWith(\"/\"))\n\t\t\tresource = resource.substring(1);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [1, 8], [6, 9], [6, 10], [2, 11], [2, 12], [7, 13], [3, 14], [4, 15], [8, 16], [9, 17], [10, 18], [2, 19], [2, 20], [11, 21], [2, 22], [2, 23], [14, 24], [14, 25], [16, 26], [19, 27], [20, 28], [11, 29], [11, 30], [21, 31], [21, 32], [23, 33], [27, 34], [29, 35], [30, 36], [32, 37], [34, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 1], [9, 6], [10, 6], [11, 2], [12, 2], [13, 7], [14, 3], [15, 4], [16, 8], [17, 9], [18, 10], [19, 2], [20, 2], [21, 11], [22, 2], [23, 2], [24, 14], [25, 14], [26, 16], [27, 19], [28, 20], [29, 11], [30, 11], [31, 21], [32, 21], [33, 23], [34, 27], [35, 29], [36, 30], [37, 32], [38, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}], "label": 1}
{"sample_id": "camel-1.6-2609", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/jetty/JettyHttpComponent.java", "language": "java", "name": "org.apache.camel.component.jetty.JettyHttpComponent", "code": "public class JettyHttpComponent extends HttpComponent {\n\n    class ConnectorRef {\n        Connector connector;\n        CamelServlet servlet;\n        int refCount;\n\n        public ConnectorRef(Connector connector, CamelServlet servlet) {\n            this.connector = connector;\n            this.servlet = servlet;\n            increment();\n        }\n\n        public int increment() {\n            return ++refCount;\n        }\n\n        public int decrement() {\n            return --refCount;\n        }\n    }\n    \n    private static final transient Log LOG = LogFactory.getLog(JettyHttpComponent.class);\n    \n    protected Server server;\n    protected HashMap<String, ConnectorRef> connectors = new HashMap<String, ConnectorRef>();    \n    protected String sslKeyPassword;\n    protected String sslPassword;\n    protected String sslKeystore;\n    protected SslSocketConnector sslSocketConnector;\n\n    @Override\n    protected Endpoint<HttpExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        uri = uri.startsWith(\"jetty:\") ? remaining : uri;\n\n        HttpClientParams params = new HttpClientParams();\n        IntrospectionSupport.setProperties(params, parameters, \"httpClient.\");   \n\n        configureParameters(parameters);\n\n        URI httpUri = URISupport.createRemainingURI(new URI(uri), parameters);\n        uri = httpUri.toString();\n\n        JettyHttpEndpoint result = new JettyHttpEndpoint(this, uri, httpUri, params, getHttpConnectionManager(), httpClientConfigurer);\n        if (httpBinding != null) {\n            result.setBinding(httpBinding);\n        }\n        setProperties(result, parameters);\n        return result;\n    }\n\n    /**\n     * Connects the URL specified on the endpoint to the specified processor.\n     *\n     * @throws Exception\n     */\n    @Override\n    public void connect(HttpConsumer consumer) throws Exception {\n        JettyHttpEndpoint endpoint = (JettyHttpEndpoint)consumer.getEndpoint();\n        String connectorKey = getConnectorKey(endpoint);\n\n        synchronized (connectors) {\n            ConnectorRef connectorRef = connectors.get(connectorKey);\n            if (connectorRef == null) {\n                Connector connector;\n                if (\"https\".equals(endpoint.getProtocol())) {\n                    connector = getSslSocketConnector();\n                } else {\n                    connector = new SelectChannelConnector();\n                }\n                connector.setPort(endpoint.getPort());\n                connector.setHost(endpoint.getHttpUri().getHost());\n                if (\"localhost\".equalsIgnoreCase(endpoint.getHttpUri().getHost())) {\n                    LOG.warn(\"You use localhost interface! It means that no external connections will be available. Don't you want to use 0.0.0.0 instead (all network interfaces)?\");\n                }\n                getServer().addConnector(connector);\n\n                connectorRef = new ConnectorRef(connector, createServletForConnector(connector));\n                connector.start();\n                \n                connectors.put(connectorKey, connectorRef);\n                \n            } else {\n                connectorRef.increment();\n            }\n            if (endpoint.isSessionSupport()) {\n                enableSessionSupport();\n            }\n            connectorRef.servlet.connect(consumer);\n        }\n    }\n\n    private void enableSessionSupport() throws Exception {\n        Context context = (Context)getServer().getChildHandlerByClass(Context.class);\n        if (context.getSessionHandler() == null) {\n            SessionHandler sessionHandler = new SessionHandler();\n            context.setSessionHandler(sessionHandler);\n            if (context.isStarted()) {\n                context.stop();\n                context.start();\n            }\n        }\n\n    }\n\n    /**\n     * Disconnects the URL specified on the endpoint from the specified\n     * processor.\n     */\n    @Override\n    public void disconnect(HttpConsumer consumer) throws Exception {\n        HttpEndpoint endpoint = consumer.getEndpoint();\n        String connectorKey = getConnectorKey(endpoint);\n        \n        synchronized (connectors) {\n            ConnectorRef connectorRef = connectors.get(connectorKey);\n            if (connectorRef != null) {\n                connectorRef.servlet.disconnect(consumer);\n                if (connectorRef.decrement() == 0) {\n                    getServer().removeConnector(connectorRef.connector);\n                    connectorRef.connector.stop();\n                    connectors.remove(connectorKey);\n                }\n            }\n        }\n    }\n    \n    private String getConnectorKey(HttpEndpoint endpoint) {\n        return endpoint.getProtocol() + \":\" + endpoint.getHttpUri().getHost() + \":\" + endpoint.getPort();\n    }\n\n\n    public Server getServer() throws Exception {\n        if (server == null) {\n            server = createServer();\n        }\n        return server;\n    }\n\n    public void setServer(Server server) {\n        this.server = server;\n    }\n\n    public String getSslKeyPassword() {\n        return sslKeyPassword;\n    }\n\n    public void setSslKeyPassword(String sslKeyPassword) {\n        this.sslKeyPassword = sslKeyPassword;\n    }\n\n    public String getSslPassword() {\n        return sslPassword;\n    }\n\n    public void setSslPassword(String sslPassword) {\n        this.sslPassword = sslPassword;\n    }\n\n    public void setKeystore(String sslKeystore) {\n        this.sslKeystore = sslKeystore;\n    }\n\n    public String getKeystore() {\n        return sslKeystore;\n    }\n\n    public synchronized SslSocketConnector getSslSocketConnector() {\n        if (sslSocketConnector == null) {\n            sslSocketConnector = new SslSocketConnector();\n            sslSocketConnector.setPassword(sslPassword);\n            sslSocketConnector.setKeyPassword(sslKeyPassword);\n            if (sslKeystore != null) {\n                sslSocketConnector.setKeystore(sslKeystore);\n            }\n        }\n        return sslSocketConnector;\n    }\n\n    public void setSslSocketConnector(SslSocketConnector connector) {\n        sslSocketConnector = connector;\n    }\n\n    protected CamelServlet createServletForConnector(Connector connector) throws Exception {\n        CamelServlet camelServlet = new CamelContinuationServlet();\n        \n        Context context = new Context(server, \"/\", Context.NO_SECURITY | Context.NO_SESSIONS);\n        context.setConnectorNames(new String[] {connector.getName()});\n\n        ServletHolder holder = new ServletHolder();\n        holder.setServlet(camelServlet);\n        context.addServlet(holder, \"/*\");\n        connector.start();\n        context.start();\n        \n\n        return camelServlet;\n    }\n    \n\n    protected Server createServer() throws Exception {\n        Server server = new Server();\n        ContextHandlerCollection collection = new ContextHandlerCollection();\n        collection.setServer(server);\n        server.addHandler(collection);\n        server.start();\n\n        return server;\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        for (ConnectorRef connectorRef : connectors.values()) {\n            connectorRef.connector.stop();            \n        }\n        connectors.clear();\n\n        if (server != null) {\n            server.stop();\n        }\n        \n        super.doStop();", "functions": [{"function_name": "createEndpoint", "code": "    @Override\n    protected Endpoint<HttpExchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {\n        uri = uri.startsWith(\"jetty:\") ? remaining : uri;\n\n        HttpClientParams params = new HttpClientParams();\n        IntrospectionSupport.setProperties(params, parameters, \"httpClient.\");   \n\n        configureParameters(parameters);\n\n        URI httpUri = URISupport.createRemainingURI(new URI(uri), parameters);\n        uri = httpUri.toString();\n\n        JettyHttpEndpoint result = new JettyHttpEndpoint(this, uri, httpUri, params, getHttpConnectionManager(), httpClientConfigurer);\n        if (httpBinding != null) {\n            result.setBinding(httpBinding);\n        }\n        setProperties(result, parameters);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [0, 12], [0, 13], [0, 14], [10, 15], [3, 16], [11, 17], [4, 18], [13, 19], [5, 20], [14, 21], [2, 22], [16, 23], [18, 24], [21, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 0], [13, 0], [14, 0], [15, 10], [16, 3], [17, 11], [18, 4], [19, 13], [20, 5], [21, 14], [22, 2], [23, 16], [24, 18], [25, 21], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "connect", "code": "    @Override\n    public void connect(HttpConsumer consumer) throws Exception {\n        JettyHttpEndpoint endpoint = (JettyHttpEndpoint)consumer.getEndpoint();\n        String connectorKey = getConnectorKey(endpoint);\n\n        synchronized (connectors) {\n            ConnectorRef connectorRef = connectors.get(connectorKey);\n            if (connectorRef == null) {\n                Connector connector;\n                if (\"https\".equals(endpoint.getProtocol())) {\n                    connector = getSslSocketConnector();\n                } else {\n                    connector = new SelectChannelConnector();\n                }\n                connector.setPort(endpoint.getPort());\n                connector.setHost(endpoint.getHttpUri().getHost());\n                if (\"localhost\".equalsIgnoreCase(endpoint.getHttpUri().getHost())) {\n                    LOG.warn(\"You use localhost interface! It means that no external connections will be available. Don't you want to use 0.0.0.0 instead (all network interfaces)?\");\n                }\n                getServer().addConnector(connector);\n\n                connectorRef = new ConnectorRef(connector, createServletForConnector(connector));\n                connector.start();\n                \n                connectors.put(connectorKey, connectorRef);\n                \n            } else {\n                connectorRef.increment();\n            }\n            if (endpoint.isSessionSupport()) {\n                enableSessionSupport();\n            }\n            connectorRef.servlet.connect(consumer);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "IF", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [5, 9], [1, 10], [5, 11], [5, 12], [5, 13], [9, 14], [6, 15], [2, 16], [4, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [11, 23], [5, 24], [5, 25], [12, 26], [21, 27], [22, 28], [23, 29], [24, 30], [25, 31], [26, 32], [27, 33], [11, 34], [29, 35], [30, 36], [12, 37], [12, 38], [32, 39], [34, 40], [35, 41], [37, 42], [38, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 5], [10, 1], [11, 5], [12, 5], [13, 5], [14, 9], [15, 6], [16, 2], [17, 4], [18, 5], [19, 5], [20, 5], [21, 5], [22, 5], [23, 11], [24, 5], [25, 5], [26, 12], [27, 21], [28, 22], [29, 23], [30, 24], [31, 25], [32, 26], [33, 27], [34, 11], [35, 29], [36, 30], [37, 12], [38, 12], [39, 32], [40, 34], [41, 35], [42, 37], [43, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "enableSessionSupport", "code": "    private void enableSessionSupport() throws Exception {\n        Context context = (Context)getServer().getChildHandlerByClass(Context.class);\n        if (context.getSessionHandler() == null) {\n            SessionHandler sessionHandler = new SessionHandler();\n            context.setSessionHandler(sessionHandler);\n            if (context.isStarted()) {\n                context.stop();\n                context.start();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [4, 8], [1, 9], [2, 10], [5, 11], [10, 12], [4, 13], [4, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 4], [9, 1], [10, 2], [11, 5], [12, 10], [13, 4], [14, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "disconnect", "code": "    @Override\n    public void disconnect(HttpConsumer consumer) throws Exception {\n        HttpEndpoint endpoint = consumer.getEndpoint();\n        String connectorKey = getConnectorKey(endpoint);\n        \n        synchronized (connectors) {\n            ConnectorRef connectorRef = connectors.get(connectorKey);\n            if (connectorRef != null) {\n                connectorRef.servlet.disconnect(consumer);\n                if (connectorRef.decrement() == 0) {\n                    getServer().removeConnector(connectorRef.connector);\n                    connectorRef.connector.stop();\n                    connectors.remove(connectorKey);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 7], [2, 8], [4, 9], [6, 10], [5, 11], [9, 12], [4, 13], [12, 14], [12, 15], [9, 16], [9, 17], [9, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 1], [8, 2], [9, 4], [10, 6], [11, 5], [12, 9], [13, 4], [14, 12], [15, 12], [16, 9], [17, 9], [18, 9], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getConnectorKey", "code": "    private String getConnectorKey(HttpEndpoint endpoint) {\n        return endpoint.getProtocol() + \":\" + endpoint.getHttpUri().getHost() + \":\" + endpoint.getPort();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [7, 9], [8, 10], [9, 11], [9, 12], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [9, 7], [10, 8], [11, 9], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getServer", "code": "    public Server getServer() throws Exception {\n        if (server == null) {\n            server = createServer();\n        }\n        return server;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setServer", "code": "    public void setServer(Server server) {\n        this.server = server;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSslKeyPassword", "code": "    public String getSslKeyPassword() {\n        return sslKeyPassword;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSslKeyPassword", "code": "    public void setSslKeyPassword(String sslKeyPassword) {\n        this.sslKeyPassword = sslKeyPassword;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSslPassword", "code": "    public String getSslPassword() {\n        return sslPassword;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setSslPassword", "code": "    public void setSslPassword(String sslPassword) {\n        this.sslPassword = sslPassword;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setKeystore", "code": "    public void setKeystore(String sslKeystore) {\n        this.sslKeystore = sslKeystore;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getKeystore", "code": "    public String getKeystore() {\n        return sslKeystore;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSslSocketConnector", "code": "    public synchronized SslSocketConnector getSslSocketConnector() {\n        if (sslSocketConnector == null) {\n            sslSocketConnector = new SslSocketConnector();\n            sslSocketConnector.setPassword(sslPassword);\n            sslSocketConnector.setKeyPassword(sslKeyPassword);\n            if (sslKeystore != null) {\n                sslSocketConnector.setKeystore(sslKeystore);\n            }\n        }\n        return sslSocketConnector;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [2, 7], [2, 8], [2, 9], [6, 10], [9, 11], [4, 12], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 2], [8, 2], [9, 2], [10, 6], [11, 9], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setSslSocketConnector", "code": "    public void setSslSocketConnector(SslSocketConnector connector) {\n        sslSocketConnector = connector;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createServletForConnector", "code": "    protected CamelServlet createServletForConnector(Connector connector) throws Exception {\n        CamelServlet camelServlet = new CamelContinuationServlet();\n        \n        Context context = new Context(server, \"/\", Context.NO_SECURITY | Context.NO_SESSIONS);\n        context.setConnectorNames(new String[] {connector.getName()});\n\n        ServletHolder holder = new ServletHolder();\n        holder.setServlet(camelServlet);\n        context.addServlet(holder, \"/*\");\n        connector.start();\n        context.start();\n        \n\n        return camelServlet;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [8, 11], [2, 12], [3, 13], [4, 14], [13, 15], [13, 16], [10, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 8], [12, 2], [13, 3], [14, 4], [15, 13], [16, 13], [17, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "createServer", "code": "    protected Server createServer() throws Exception {\n        Server server = new Server();\n        ContextHandlerCollection collection = new ContextHandlerCollection();\n        collection.setServer(server);\n        server.addHandler(collection);\n        server.start();\n\n        return server;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        for (ConnectorRef connectorRef : connectors.values()) {\n            connectorRef.connector.stop();            \n        }\n        connectors.clear();\n\n        if (server != null) {\n            server.stop();\n        }\n        \n        super.doStop();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [2, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 2], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ant-1.7-1316", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/pvcs/Pvcs.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs", "code": "public class Pvcs extends org.apache.tools.ant.Task {\n    private static final int POS_1 = 1;\n    private static final int POS_2 = 2;\n    private static final int POS_3 = 3;\n\n    private String pvcsbin;\n    private String repository;\n    private String pvcsProject;\n    private Vector pvcsProjects;\n    private String workspace;\n    private String force;\n    private String promotiongroup;\n    private String label;\n    private String revision;\n    private boolean ignorerc;\n    private boolean updateOnly;\n    private String filenameFormat;\n    private String lineStart;\n    private String userId;\n    private String config;\n    /**\n     * Constant for the thing to execute\n     */\n    private static final String PCLI_EXE = \"pcli\";\n\n    /*\n     * Constant for the PCLI listversionedfiles recursive i a format \"get\" understands\n     */\n\n    /**\n     * Constant for the thing to execute\n     */\n    private static final String GET_EXE = \"get\";\n\n\n    /**\n     * Run the command.\n     * @param cmd the command line to use.\n     * @param out the output stream handler to use.\n     * @return the exit code of the command.\n     */\n    protected int runCmd(Commandline cmd, ExecuteStreamHandler out) {\n        try {\n            Project aProj = getProject();\n            Execute exe = new Execute(out);\n            exe.setAntRun(aProj);\n            exe.setWorkingDirectory(aProj.getBaseDir());\n            exe.setCommandline(cmd.getCommandline());\n            return exe.execute();\n        } catch (java.io.IOException e) {\n            String msg = \"Failed executing: \" + cmd.toString()\n                + \". Exception: \" + e.getMessage();\n            throw new BuildException(msg, getLocation());\n        }\n    }\n\n    private String getExecutable(String exe) {\n        StringBuffer correctedExe = new StringBuffer();\n        if (getPvcsbin() != null) {\n            if (pvcsbin.endsWith(File.separator)) {\n                correctedExe.append(pvcsbin);\n            } else {\n                correctedExe.append(pvcsbin).append(File.separator);\n            }\n        }\n        return correctedExe.append(exe).toString();\n    }\n\n    /**\n     * @exception org.apache.tools.ant.BuildException Something is stopping the build...\n     */\n    public void execute() throws org.apache.tools.ant.BuildException {\n        int result = 0;\n\n        if (repository == null || repository.trim().equals(\"\")) {\n            throw new BuildException(\"Required argument repository not specified\");\n        }\n\n        Commandline commandLine = new Commandline();\n        commandLine.setExecutable(getExecutable(PCLI_EXE));\n\n        commandLine.createArgument().setValue(\"lvf\");\n        commandLine.createArgument().setValue(\"-z\");\n        commandLine.createArgument().setValue(\"-aw\");\n        if (getWorkspace() != null) {\n            commandLine.createArgument().setValue(\"-sp\" + getWorkspace());\n        }\n        commandLine.createArgument().setValue(\"-pr\" + getRepository());\n\n        String uid = getUserId();\n\n        if (uid != null) {\n            commandLine.createArgument().setValue(\"-id\" + uid);\n        }\n\n        if (getPvcsproject() == null && getPvcsprojects().isEmpty()) {\n            pvcsProject = \"/\";\n        }\n\n        if (getPvcsproject() != null) {\n            commandLine.createArgument().setValue(getPvcsproject());\n        }\n        if (!getPvcsprojects().isEmpty()) {\n            Enumeration e = getPvcsprojects().elements();\n            while (e.hasMoreElements()) {\n                String projectName = ((PvcsProject) e.nextElement()).getName();\n                if (projectName == null || (projectName.trim()).equals(\"\")) {\n                    throw new BuildException(\"name is a required attribute \"\n                        + \"of pvcsproject\");\n                }\n                commandLine.createArgument().setValue(projectName);\n            }\n        }\n\n        File tmp = null;\n        File tmp2 = null;\n        try {\n            Random rand = new Random(System.currentTimeMillis());\n            tmp = new File(\"pvcs_ant_\" + rand.nextLong() + \".log\");\n            FileOutputStream fos = new FileOutputStream(tmp);\n            tmp2 = new File(\"pvcs_ant_\" + rand.nextLong() + \".log\");\n            log(commandLine.describeCommand(), Project.MSG_VERBOSE);\n            try {\n                result = runCmd(commandLine,\n                                new PumpStreamHandler(fos,\n                                    new LogOutputStream(this,\n                                                        Project.MSG_WARN)));\n            } finally {\n                fos.close();\n            }\n\n            if (Execute.isFailure(result) && !ignorerc) {\n                String msg = \"Failed executing: \" + commandLine.toString();\n                throw new BuildException(msg, getLocation());\n            }\n\n            if (!tmp.exists()) {\n                throw new BuildException(\"Communication between ant and pvcs \"\n                    + \"failed. No output generated from executing PVCS \"\n                    + \"commandline interface \\\"pcli\\\" and \\\"get\\\"\");\n            }\n\n            log(\"Creating folders\", Project.MSG_INFO);\n            createFolders(tmp);\n\n            massagePCLI(tmp, tmp2);\n\n            commandLine.clearArgs();\n            commandLine.setExecutable(getExecutable(GET_EXE));\n\n            if (getConfig() != null && getConfig().length() > 0) {\n                commandLine.createArgument().setValue(\"-c\" + getConfig());\n            }\n\n            if (getForce() != null && getForce().equals(\"yes\")) {\n                commandLine.createArgument().setValue(\"-Y\");\n            } else {\n                commandLine.createArgument().setValue(\"-N\");\n            }\n\n            if (getPromotiongroup() != null) {\n                commandLine.createArgument().setValue(\"-G\"\n                    + getPromotiongroup());\n            } else {\n                if (getLabel() != null) {\n                    commandLine.createArgument().setValue(\"-v\" + getLabel());\n                } else {\n                    if (getRevision() != null) {\n                        commandLine.createArgument().setValue(\"-r\"\n                            + getRevision());\n                    }\n                }\n            }\n\n            if (updateOnly) {\n                commandLine.createArgument().setValue(\"-U\");\n            }\n\n            commandLine.createArgument().setValue(\"@\" + tmp2.getAbsolutePath());\n            log(\"Getting files\", Project.MSG_INFO);\n            log(\"Executing \" + commandLine.toString(), Project.MSG_VERBOSE);\n            result = runCmd(commandLine,\n                new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));\n            if (result != 0 && !ignorerc) {\n                String msg = \"Failed executing: \" + commandLine.toString()\n                    + \". Return code was \" + result;\n                throw new BuildException(msg, getLocation());\n            }\n\n        } catch (FileNotFoundException e) {\n            String msg = \"Failed executing: \" + commandLine.toString()\n                + \". Exception: \" + e.getMessage();\n            throw new BuildException(msg, getLocation());\n        } catch (IOException e) {\n            String msg = \"Failed executing: \" + commandLine.toString()\n                + \". Exception: \" + e.getMessage();\n            throw new BuildException(msg, getLocation());\n        } catch (ParseException e) {\n            String msg = \"Failed executing: \" + commandLine.toString()\n                + \". Exception: \" + e.getMessage();\n            throw new BuildException(msg, getLocation());\n        } finally {\n            if (tmp != null) {\n                tmp.delete();\n            }\n            if (tmp2 != null) {\n                tmp2.delete();\n            }\n        }\n    }\n\n    /**\n     * Parses the file and creates the folders specified in the output section\n     */\n    private void createFolders(File file) throws IOException, ParseException {\n        BufferedReader in = null;\n        try {\n            in = new BufferedReader(new FileReader(file));\n            MessageFormat mf = new MessageFormat(getFilenameFormat());\n            String line = in.readLine();\n            while (line != null) {\n                log(\"Considering \\\"\" + line + \"\\\"\", Project.MSG_VERBOSE);\n                   if((line.length() > POS_3 && line.startsWith(\"\\\"\")\n                        && Character.isLetter(line.charAt(POS_1))\n                        && String.valueOf(line.charAt(POS_2)).equals(\":\")\n                        && String.valueOf(line.charAt(POS_3)).equals(\"\\\\\"))) {\n                    Object[] objs = mf.parse(line);\n                    String f = (String) objs[1];\n                    int index = f.lastIndexOf(File.separator);\n                    if (index > -1) {\n                        File dir = new File(f.substring(0, index));\n                        if (!dir.exists()) {\n                            log(\"Creating \" + dir.getAbsolutePath(),\n                                Project.MSG_VERBOSE);\n                            if (dir.mkdirs()) {\n                                log(\"Created \" + dir.getAbsolutePath(),\n                                    Project.MSG_INFO);\n                            } else {\n                                log(\"Failed to create \"\n                                    + dir.getAbsolutePath(),\n                                    Project.MSG_INFO);\n                            }\n                        } else {\n                            log(dir.getAbsolutePath() + \" exists. Skipping\",\n                                Project.MSG_VERBOSE);\n                        }\n                    } else {\n                        log(\"File separator problem with \" + line,\n                            Project.MSG_WARN);\n                    }\n                } else {\n                    log(\"Skipped \\\"\" + line + \"\\\"\", Project.MSG_VERBOSE);\n                }\n                line = in.readLine();\n            }\n        } finally {\n            if (in != null) {\n                in.close();\n            }\n        }\n    }\n\n\n    /**\n     * Simple hack to handle the PVCS command-line tools botch when\n     * handling UNC notation.\n     * @throws IOException if there is an error.\n     */\n    private void massagePCLI(File in, File out)\n        throws IOException {\n        BufferedReader inReader = null;\n        BufferedWriter outWriter = null;\n        try {\n            inReader = new BufferedReader(new FileReader(in));\n            outWriter = new BufferedWriter(new FileWriter(out));\n            String s = null;\n            while ((s = inReader.readLine()) != null) {\n                String sNormal = s.replace('\\\\', '/');\n                outWriter.write(sNormal);\n                outWriter.newLine();\n            }\n        } finally {\n            if (inReader != null) {\n                inReader.close();\n            }\n            if (outWriter != null) {\n                outWriter.close();\n            }\n        }\n    }\n\n    /**\n     * Get network name of the PVCS repository\n     * @return String\n     */\n    public String getRepository() {\n        return repository;\n    }\n\n    /**\n     *  The filenameFormat attribute defines a MessageFormat string used\n     *  to parse the output of the pcli command.  It defaults to\n     *  <code>{0}-arc({1})</code>.  Repositories where the archive\n     *   extension is not  -arc should set this.\n     * @return the filename format attribute.\n     */\n    public String getFilenameFormat() {\n        return filenameFormat;\n    }\n\n    /**\n     * The format of the folder names; optional.\n     * This must be in a format suitable for\n     * <code>java.text.MessageFormat</code>.\n     *  Index 1 of the format will be used as the file name.\n     *  Defaults to <code>{0}-arc({1})</code>\n     * @param f the format to use.\n     */\n    public void setFilenameFormat(String f) {\n        filenameFormat = f;\n    }\n\n    /**\n\n     * The lineStart attribute is used to parse the output of the pcli\n     * command. It defaults to <code>&quot;P:</code>.  The parser already\n     * knows about / and \\\\, this property is useful in cases where the\n     * repository is accessed on a Windows platform via a drive letter\n     * mapping.\n     * @return the lineStart attribute.\n     */\n    public String getLineStart() {\n        return lineStart;\n    }\n\n    /**\n     * What a valid return value from PVCS looks like\n     *  when it describes a file.  Defaults to <code>&quot;P:</code>.\n     * If you are not using an UNC name for your repository and the\n     * drive letter <code>P</code> is incorrect for your setup, you may\n     * need to change this value, UNC names will always be\n     * accepted.\n     * @param l the value to use.\n     */\n    public void setLineStart(String l) {\n        lineStart = l;\n    }\n\n    /**\n     * The network name of the PVCS repository; required.\n     * @param repo String\n     */\n    public void setRepository(String repo) {\n        repository = repo;\n    }\n\n    /**\n     * Get name of the project in the PVCS repository\n     * @return String\n     */\n    public String getPvcsproject() {\n        return pvcsProject;\n    }\n\n    /**\n     * The project within the PVCS repository to extract files from;\n     * optional, default &quot;/&quot;\n     * @param prj String\n     */\n    public void setPvcsproject(String prj) {\n        pvcsProject = prj;\n    }\n\n    /**\n     * Get name of the project in the PVCS repository\n     * @return Vector\n     */\n    public Vector getPvcsprojects() {\n        return pvcsProjects;\n    }\n\n    /**\n     * Get name of the workspace to store the retrieved files\n     * @return String\n     */\n    public String getWorkspace() {\n        return workspace;\n    }\n\n    /**\n     * Workspace to use; optional.\n     * By specifying a workspace, the files are extracted to that location.\n     * A PVCS workspace is a name for a location of the workfiles and\n     * isn't as such the location itself.\n     * You define the location for a workspace using the PVCS GUI clients.\n     * If this isn't specified the default workspace for the current user is used.\n     * @param ws String\n     */\n    public void setWorkspace(String ws) {\n        workspace = ws;\n    }\n\n    /**\n     * Get name of the PVCS bin directory\n     * @return String\n     */\n    public String getPvcsbin() {\n        return pvcsbin;\n    }\n\n    /**\n     * Specifies the location of the PVCS bin directory; optional if on the PATH.\n     * On some systems the PVCS executables <i>pcli</i>\n     * and <i>get</i> are not found in the PATH. In such cases this attribute\n     * should be set to the bin directory of the PVCS installation containing\n     * the executables mentioned before. If this attribute isn't specified the\n     * tag expects the executables to be found using the PATH environment variable.\n     * @param bin PVCS bin directory\n     * @todo use a File setter and resolve paths.\n     */\n    public void setPvcsbin(String bin) {\n        pvcsbin = bin;\n    }\n\n    /**\n     * Get value of force\n     * @return String\n     */\n    public String getForce() {\n        return force;\n    }\n\n    /**\n     * Specifies the value of the force argument; optional.\n     * If set to <i>yes</i> all files that exists and are\n     * writable are overwritten. Default <i>no</i> causes the files\n     * that are writable to be ignored. This stops the PVCS command\n     * <i>get</i> to stop asking questions!\n     * @todo make a boolean setter\n     * @param f String (yes/no)\n     */\n    public void setForce(String f) {\n        if (f != null && f.equalsIgnoreCase(\"yes\")) {\n            force = \"yes\";\n        } else {\n            force = \"no\";\n        }\n    }\n\n    /**\n     * Get value of promotiongroup\n     * @return String\n     */\n    public String getPromotiongroup() {\n        return promotiongroup;\n    }\n\n    /**\n     * Specifies the name of the promotiongroup argument\n     * @param w String\n     */\n    public void setPromotiongroup(String w) {\n        promotiongroup = w;\n    }\n\n    /**\n     * Get value of label\n     * @return String\n     */\n    public String getLabel() {\n        return label;\n    }\n\n    /**\n     * Only files marked with this label are extracted; optional.\n     * @param l String\n     */\n    public void setLabel(String l) {\n        label = l;\n    }\n\n    /**\n     * Get value of revision\n     * @return String\n     */\n    public String getRevision() {\n        return revision;\n    }\n\n    /**\n     * Only files with this revision are extract; optional.\n     * @param r String\n     */\n    public void setRevision(String r) {\n        revision = r;\n    }\n\n    /**\n     * Get value of ignorereturncode\n     * @return String\n     */\n    public boolean getIgnoreReturnCode() {\n        return ignorerc;\n    }\n\n    /**\n     * If set to true the return value from executing the pvcs\n     * commands are ignored; optional, default false.\n     * @param b a <code>boolean</code> value.\n     */\n    public void setIgnoreReturnCode(boolean b) {\n        ignorerc = b;\n    }\n\n    /**\n     * Specify a project within the PVCS repository to extract files from.\n     * @param p the pvcs project to use.\n     */\n    public void addPvcsproject(PvcsProject p) {\n        pvcsProjects.addElement(p);\n    }\n\n    /**\n     * get the updateOnly attribute.\n     * @return the updateOnly attribute.\n     */\n    public boolean getUpdateOnly() {\n        return updateOnly;\n    }\n\n    /**\n     * If set to <i>true</i> files are fetched only if\n     * newer than existing local files; optional, default false.\n     * @param l a <code>boolean</code> value.\n     */\n    public void setUpdateOnly(boolean l) {\n        updateOnly = l;\n    }\n\n    /**\n     * returns the path of the configuration file to be used\n     * @return the path of the config file\n     */\n    public String getConfig() {\n        return config;\n    }\n\n    /**\n     * Sets a configuration file other than the default to be used.\n     * These files have a .cfg extension and are often found in archive or pvcsprop folders.\n     * @param f config file - can be given absolute or relative to ant basedir\n     */\n    public void setConfig(File f) {\n        config = f.toString();\n    }\n\n\n    /**\n     * Get the userid.\n     * @return the userid.\n     */\n    public String getUserId() {\n        return userId;\n    }\n\n    /**\n     * User ID\n     * @param u the value to use.\n     */\n    public void setUserId(String u) {\n        userId = u;\n    }\n\n    /**\n     * Creates a Pvcs object\n     */\n    public Pvcs() {\n        super();\n        pvcsProject = null;\n        pvcsProjects = new Vector();\n        workspace = null;\n        repository = null;\n        pvcsbin = null;\n        force = null;\n        promotiongroup = null;\n        label = null;\n        ignorerc = false;\n        updateOnly = false;\n        lineStart = \"\\\"P:\";\n        filenameFormat = \"{0}-arc({1})\";", "functions": [{"function_name": "runCmd", "code": "    protected int runCmd(Commandline cmd, ExecuteStreamHandler out) {\n        try {\n            Project aProj = getProject();\n            Execute exe = new Execute(out);\n            exe.setAntRun(aProj);\n            exe.setWorkingDirectory(aProj.getBaseDir());\n            exe.setCommandline(cmd.getCommandline());\n            return exe.execute();\n        } catch (java.io.IOException e) {\n            String msg = \"Failed executing: \" + cmd.toString()\n                + \". Exception: \" + e.getMessage();\n            throw new BuildException(msg, getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [4, 9], [5, 10], [1, 11], [1, 12], [1, 13], [8, 14], [11, 15], [12, 16], [6, 17], [7, 18], [14, 19], [9, 20], [20, 21], [20, 22], [22, 23], [22, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 4], [10, 5], [11, 1], [12, 1], [13, 1], [14, 8], [15, 11], [16, 12], [17, 6], [18, 7], [19, 14], [20, 9], [21, 20], [22, 20], [23, 22], [24, 22], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "getExecutable", "code": "    private String getExecutable(String exe) {\n        StringBuffer correctedExe = new StringBuffer();\n        if (getPvcsbin() != null) {\n            if (pvcsbin.endsWith(File.separator)) {\n                correctedExe.append(pvcsbin);\n            } else {\n                correctedExe.append(pvcsbin).append(File.separator);\n            }\n        }\n        return correctedExe.append(exe).toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [6, 9], [6, 10], [3, 11], [8, 12], [8, 13], [8, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 6], [10, 6], [11, 3], [12, 8], [13, 8], [14, 8], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "execute", "code": "    public void execute() throws org.apache.tools.ant.BuildException {\n        int result = 0;\n\n        if (repository == null || repository.trim().equals(\"\")) {\n            throw new BuildException(\"Required argument repository not specified\");\n        }\n\n        Commandline commandLine = new Commandline();\n        commandLine.setExecutable(getExecutable(PCLI_EXE));\n\n        commandLine.createArgument().setValue(\"lvf\");\n        commandLine.createArgument().setValue(\"-z\");\n        commandLine.createArgument().setValue(\"-aw\");\n        if (getWorkspace() != null) {\n            commandLine.createArgument().setValue(\"-sp\" + getWorkspace());\n        }\n        commandLine.createArgument().setValue(\"-pr\" + getRepository());\n\n        String uid = getUserId();\n\n        if (uid != null) {\n            commandLine.createArgument().setValue(\"-id\" + uid);\n        }\n\n        if (getPvcsproject() == null && getPvcsprojects().isEmpty()) {\n            pvcsProject = \"/\";\n        }\n\n        if (getPvcsproject() != null) {\n            commandLine.createArgument().setValue(getPvcsproject());\n        }\n        if (!getPvcsprojects().isEmpty()) {\n            Enumeration e = getPvcsprojects().elements();\n            while (e.hasMoreElements()) {\n                String projectName = ((PvcsProject) e.nextElement()).getName();\n                if (projectName == null || (projectName.trim()).equals(\"\")) {\n                    throw new BuildException(\"name is a required attribute \"\n                        + \"of pvcsproject\");\n                }\n                commandLine.createArgument().setValue(projectName);\n            }\n        }\n\n        File tmp = null;\n        File tmp2 = null;\n        try {\n            Random rand = new Random(System.currentTimeMillis());\n            tmp = new File(\"pvcs_ant_\" + rand.nextLong() + \".log\");\n            FileOutputStream fos = new FileOutputStream(tmp);\n            tmp2 = new File(\"pvcs_ant_\" + rand.nextLong() + \".log\");\n            log(commandLine.describeCommand(), Project.MSG_VERBOSE);\n            try {\n                result = runCmd(commandLine,\n                                new PumpStreamHandler(fos,\n                                    new LogOutputStream(this,\n                                                        Project.MSG_WARN)));\n            } finally {\n                fos.close();\n            }\n\n            if (Execute.isFailure(result) && !ignorerc) {\n                String msg = \"Failed executing: \" + commandLine.toString();\n                throw new BuildException(msg, getLocation());\n            }\n\n            if (!tmp.exists()) {\n                throw new BuildException(\"Communication between ant and pvcs \"\n                    + \"failed. No output generated from executing PVCS \"\n                    + \"commandline interface \\\"pcli\\\" and \\\"get\\\"\");\n            }\n\n            log(\"Creating folders\", Project.MSG_INFO);\n            createFolders(tmp);\n\n            massagePCLI(tmp, tmp2);\n\n            commandLine.clearArgs();\n            commandLine.setExecutable(getExecutable(GET_EXE));\n\n            if (getConfig() != null && getConfig().length() > 0) {\n                commandLine.createArgument().setValue(\"-c\" + getConfig());\n            }\n\n            if (getForce() != null && getForce().equals(\"yes\")) {\n                commandLine.createArgument().setValue(\"-Y\");\n            } else {\n                commandLine.createArgument().setValue(\"-N\");\n            }\n\n            if (getPromotiongroup() != null) {\n                commandLine.createArgument().setValue(\"-G\"\n                    + getPromotiongroup());\n            } else {\n                if (getLabel() != null) {\n                    commandLine.createArgument().setValue(\"-v\" + getLabel());\n                } else {\n                    if (getRevision() != null) {\n                        commandLine.createArgument().setValue(\"-r\"\n                            + getRevision());\n                    }\n                }\n            }\n\n            if (updateOnly) {\n                commandLine.createArgument().setValue(\"-U\");\n            }\n\n            commandLine.createArgument().setValue(\"@\" + tmp2.getAbsolutePath());\n            log(\"Getting files\", Project.MSG_INFO);\n            log(\"Executing \" + commandLine.toString(), Project.MSG_VERBOSE);\n            result = runCmd(commandLine,\n                new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));\n            if (result != 0 && !ignorerc) {\n                String msg = \"Failed executing: \" + commandLine.toString()\n                    + \". Return code was \" + result;\n                throw new BuildException(msg, getLocation());\n            }\n\n        } catch (FileNotFoundException e) {\n            String msg = \"Failed executing: \" + commandLine.toString()\n                + \". Exception: \" + e.getMessage();\n            throw new BuildException(msg, getLocation());\n        } catch (IOException e) {\n            String msg = \"Failed executing: \" + commandLine.toString()\n                + \". Exception: \" + e.getMessage();\n            throw new BuildException(msg, getLocation());\n        } catch (ParseException e) {\n            String msg = \"Failed executing: \" + commandLine.toString()\n                + \". Exception: \" + e.getMessage();\n            throw new BuildException(msg, getLocation());\n        } finally {\n            if (tmp != null) {\n                tmp.delete();\n            }\n            if (tmp2 != null) {\n                tmp2.delete();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "CATCH", "CATCH", "CATCH", "IF", "IF", "IF", "IF", "IF", "IF", "IF", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [4, 28], [5, 29], [6, 30], [7, 31], [0, 32], [9, 33], [0, 34], [0, 35], [0, 36], [0, 37], [11, 38], [13, 39], [14, 40], [15, 41], [15, 42], [16, 43], [16, 44], [17, 45], [17, 46], [18, 47], [1, 48], [1, 49], [1, 50], [1, 51], [20, 52], [21, 53], [22, 54], [1, 55], [1, 56], [1, 57], [1, 58], [1, 59], [23, 60], [24, 61], [1, 62], [1, 63], [1, 64], [2, 65], [3, 66], [4, 67], [4, 68], [28, 69], [29, 70], [29, 71], [30, 72], [30, 73], [31, 74], [8, 75], [32, 76], [33, 77], [33, 78], [34, 79], [35, 80], [36, 81], [37, 82], [10, 83], [11, 84], [38, 85], [38, 86], [12, 87], [39, 88], [40, 89], [41, 90], [43, 91], [45, 92], [18, 93], [18, 94], [47, 95], [48, 96], [49, 97], [50, 98], [51, 99], [20, 100], [52, 101], [52, 102], [53, 103], [53, 104], [54, 105], [54, 106], [55, 107], [59, 108], [23, 109], [24, 110], [24, 111], [61, 112], [25, 113], [25, 114], [62, 115], [63, 116], [26, 117], [64, 118], [27, 119], [67, 120], [5, 121], [6, 122], [72, 123], [73, 124], [73, 125], [7, 126], [76, 127], [9, 128], [79, 129], [80, 130], [81, 131], [84, 132], [85, 133], [86, 134], [13, 135], [14, 136], [90, 137], [42, 138], [91, 139], [44, 140], [92, 141], [46, 142], [93, 143], [95, 144], [96, 145], [97, 146], [97, 147], [99, 148], [19, 149], [100, 150], [20, 151], [21, 152], [21, 153], [103, 154], [104, 155], [104, 156], [22, 157], [105, 158], [105, 159], [106, 160], [106, 161], [109, 162], [110, 163], [114, 164], [116, 165], [118, 166], [119, 167], [67, 168], [67, 169], [68, 170], [121, 171], [122, 172], [126, 173], [127, 174], [127, 175], [128, 176], [132, 177], [133, 178], [138, 179], [138, 180], [140, 181], [140, 182], [142, 183], [142, 184], [143, 185], [94, 186], [148, 187], [148, 188], [149, 189], [100, 190], [150, 191], [150, 192], [151, 193], [152, 194], [153, 195], [154, 196], [157, 197], [159, 198], [162, 199], [163, 200], [111, 201], [164, 202], [165, 203], [165, 204], [166, 205], [166, 206], [67, 207], [168, 208], [170, 209], [171, 210], [173, 211], [176, 212], [180, 213], [180, 214], [182, 215], [182, 216], [184, 217], [184, 218], [186, 219], [189, 220], [190, 221], [100, 222], [193, 223], [194, 224], [195, 225], [197, 226], [199, 227], [199, 228], [201, 229], [201, 230], [202, 231], [204, 232], [204, 233], [206, 234], [206, 235], [207, 236], [168, 237], [208, 238], [208, 239], [211, 240], [212, 241], [212, 242], [214, 243], [214, 244], [216, 245], [216, 246], [218, 247], [218, 248], [219, 249], [219, 250], [221, 251], [221, 252], [222, 253], [223, 254], [223, 255], [226, 256], [226, 257], [228, 258], [228, 259], [237, 260], [238, 261], [239, 262], [169, 263], [250, 264], [250, 265], [190, 266], [253, 267], [260, 268], [261, 269], [266, 270], [267, 271], [267, 272], [268, 273], [268, 274], [270, 275], [275, 276], [275, 277], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 1], [28, 4], [29, 5], [30, 6], [31, 7], [32, 0], [33, 9], [34, 0], [35, 0], [36, 0], [37, 0], [38, 11], [39, 13], [40, 14], [41, 15], [42, 15], [43, 16], [44, 16], [45, 17], [46, 17], [47, 18], [48, 1], [49, 1], [50, 1], [51, 1], [52, 20], [53, 21], [54, 22], [55, 1], [56, 1], [57, 1], [58, 1], [59, 1], [60, 23], [61, 24], [62, 1], [63, 1], [64, 1], [65, 2], [66, 3], [67, 4], [68, 4], [69, 28], [70, 29], [71, 29], [72, 30], [73, 30], [74, 31], [75, 8], [76, 32], [77, 33], [78, 33], [79, 34], [80, 35], [81, 36], [82, 37], [83, 10], [84, 11], [85, 38], [86, 38], [87, 12], [88, 39], [89, 40], [90, 41], [91, 43], [92, 45], [93, 18], [94, 18], [95, 47], [96, 48], [97, 49], [98, 50], [99, 51], [100, 20], [101, 52], [102, 52], [103, 53], [104, 53], [105, 54], [106, 54], [107, 55], [108, 59], [109, 23], [110, 24], [111, 24], [112, 61], [113, 25], [114, 25], [115, 62], [116, 63], [117, 26], [118, 64], [119, 27], [120, 67], [121, 5], [122, 6], [123, 72], [124, 73], [125, 73], [126, 7], [127, 76], [128, 9], [129, 79], [130, 80], [131, 81], [132, 84], [133, 85], [134, 86], [135, 13], [136, 14], [137, 90], [138, 42], [139, 91], [140, 44], [141, 92], [142, 46], [143, 93], [144, 95], [145, 96], [146, 97], [147, 97], [148, 99], [149, 19], [150, 100], [151, 20], [152, 21], [153, 21], [154, 103], [155, 104], [156, 104], [157, 22], [158, 105], [159, 105], [160, 106], [161, 106], [162, 109], [163, 110], [164, 114], [165, 116], [166, 118], [167, 119], [168, 67], [169, 67], [170, 68], [171, 121], [172, 122], [173, 126], [174, 127], [175, 127], [176, 128], [177, 132], [178, 133], [179, 138], [180, 138], [181, 140], [182, 140], [183, 142], [184, 142], [185, 143], [186, 94], [187, 148], [188, 148], [189, 149], [190, 100], [191, 150], [192, 150], [193, 151], [194, 152], [195, 153], [196, 154], [197, 157], [198, 159], [199, 162], [200, 163], [201, 111], [202, 164], [203, 165], [204, 165], [205, 166], [206, 166], [207, 67], [208, 168], [209, 170], [210, 171], [211, 173], [212, 176], [213, 180], [214, 180], [215, 182], [216, 182], [217, 184], [218, 184], [219, 186], [220, 189], [221, 190], [222, 100], [223, 193], [224, 194], [225, 195], [226, 197], [227, 199], [228, 199], [229, 201], [230, 201], [231, 202], [232, 204], [233, 204], [234, 206], [235, 206], [236, 207], [237, 168], [238, 208], [239, 208], [240, 211], [241, 212], [242, 212], [243, 214], [244, 214], [245, 216], [246, 216], [247, 218], [248, 218], [249, 219], [250, 219], [251, 221], [252, 221], [253, 222], [254, 223], [255, 223], [256, 226], [257, 226], [258, 228], [259, 228], [260, 237], [261, 238], [262, 239], [263, 169], [264, 250], [265, 250], [266, 190], [267, 253], [268, 260], [269, 261], [270, 266], [271, 267], [272, 267], [273, 268], [274, 268], [275, 270], [276, 275], [277, 275], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277]]}, {"function_name": "createFolders", "code": "    private void createFolders(File file) throws IOException, ParseException {\n        BufferedReader in = null;\n        try {\n            in = new BufferedReader(new FileReader(file));\n            MessageFormat mf = new MessageFormat(getFilenameFormat());\n            String line = in.readLine();\n            while (line != null) {\n                log(\"Considering \\\"\" + line + \"\\\"\", Project.MSG_VERBOSE);\n                   if((line.length() > POS_3 && line.startsWith(\"\\\"\")\n                        && Character.isLetter(line.charAt(POS_1))\n                        && String.valueOf(line.charAt(POS_2)).equals(\":\")\n                        && String.valueOf(line.charAt(POS_3)).equals(\"\\\\\"))) {\n                    Object[] objs = mf.parse(line);\n                    String f = (String) objs[1];\n                    int index = f.lastIndexOf(File.separator);\n                    if (index > -1) {\n                        File dir = new File(f.substring(0, index));\n                        if (!dir.exists()) {\n                            log(\"Creating \" + dir.getAbsolutePath(),\n                                Project.MSG_VERBOSE);\n                            if (dir.mkdirs()) {\n                                log(\"Created \" + dir.getAbsolutePath(),\n                                    Project.MSG_INFO);\n                            } else {\n                                log(\"Failed to create \"\n                                    + dir.getAbsolutePath(),\n                                    Project.MSG_INFO);\n                            }\n                        } else {\n                            log(dir.getAbsolutePath() + \" exists. Skipping\",\n                                Project.MSG_VERBOSE);\n                        }\n                    } else {\n                        log(\"File separator problem with \" + line,\n                            Project.MSG_WARN);\n                    }\n                } else {\n                    log(\"Skipped \\\"\" + line + \"\\\"\", Project.MSG_VERBOSE);\n                }\n                line = in.readLine();\n            }\n        } finally {\n            if (in != null) {\n                in.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [2, 11], [8, 12], [5, 13], [9, 14], [6, 15], [7, 16], [10, 17], [4, 18], [5, 19], [13, 20], [5, 21], [16, 22], [17, 23], [19, 24], [13, 25], [13, 26], [13, 27], [13, 28], [20, 29], [20, 30], [21, 31], [13, 32], [25, 33], [29, 34], [29, 35], [30, 36], [30, 37], [31, 38], [31, 39], [32, 40], [25, 41], [25, 42], [33, 43], [26, 44], [28, 45], [35, 46], [36, 47], [36, 48], [37, 49], [37, 50], [39, 51], [40, 52], [40, 53], [25, 54], [41, 55], [48, 56], [49, 57], [50, 58], [50, 59], [53, 60], [54, 61], [41, 62], [42, 63], [58, 64], [59, 65], [61, 66], [41, 67], [62, 68], [41, 69], [63, 70], [27, 71], [67, 72], [69, 73], [70, 74], [72, 75], [72, 76], [62, 77], [62, 78], [73, 79], [73, 80], [77, 81], [78, 82], [81, 83], [81, 84], [82, 85], [82, 86], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 2], [12, 8], [13, 5], [14, 9], [15, 6], [16, 7], [17, 10], [18, 4], [19, 5], [20, 13], [21, 5], [22, 16], [23, 17], [24, 19], [25, 13], [26, 13], [27, 13], [28, 13], [29, 20], [30, 20], [31, 21], [32, 13], [33, 25], [34, 29], [35, 29], [36, 30], [37, 30], [38, 31], [39, 31], [40, 32], [41, 25], [42, 25], [43, 33], [44, 26], [45, 28], [46, 35], [47, 36], [48, 36], [49, 37], [50, 37], [51, 39], [52, 40], [53, 40], [54, 25], [55, 41], [56, 48], [57, 49], [58, 50], [59, 50], [60, 53], [61, 54], [62, 41], [63, 42], [64, 58], [65, 59], [66, 61], [67, 41], [68, 62], [69, 41], [70, 63], [71, 27], [72, 67], [73, 69], [74, 70], [75, 72], [76, 72], [77, 62], [78, 62], [79, 73], [80, 73], [81, 77], [82, 78], [83, 81], [84, 81], [85, 82], [86, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86]]}, {"function_name": "massagePCLI", "code": "    private void massagePCLI(File in, File out)\n        throws IOException {\n        BufferedReader inReader = null;\n        BufferedWriter outWriter = null;\n        try {\n            inReader = new BufferedReader(new FileReader(in));\n            outWriter = new BufferedWriter(new FileWriter(out));\n            String s = null;\n            while ((s = inReader.readLine()) != null) {\n                String sNormal = s.replace('\\\\', '/');\n                outWriter.write(sNormal);\n                outWriter.newLine();\n            }\n        } finally {\n            if (inReader != null) {\n                inReader.close();\n            }\n            if (outWriter != null) {\n                outWriter.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "IF", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [7, 11], [8, 12], [1, 13], [1, 14], [2, 15], [3, 16], [10, 17], [11, 18], [8, 19], [12, 20], [12, 21], [9, 22], [13, 23], [14, 24], [6, 25], [7, 26], [8, 27], [8, 28], [21, 29], [23, 30], [24, 31], [19, 32], [32, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 7], [12, 8], [13, 1], [14, 1], [15, 2], [16, 3], [17, 10], [18, 11], [19, 8], [20, 12], [21, 12], [22, 9], [23, 13], [24, 14], [25, 6], [26, 7], [27, 8], [28, 8], [29, 21], [30, 23], [31, 24], [32, 19], [33, 32], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "getRepository", "code": "    public String getRepository() {\n        return repository;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getFilenameFormat", "code": "    public String getFilenameFormat() {\n        return filenameFormat;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFilenameFormat", "code": "    public void setFilenameFormat(String f) {\n        filenameFormat = f;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLineStart", "code": "    public String getLineStart() {\n        return lineStart;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLineStart", "code": "    public void setLineStart(String l) {\n        lineStart = l;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setRepository", "code": "    public void setRepository(String repo) {\n        repository = repo;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPvcsproject", "code": "    public String getPvcsproject() {\n        return pvcsProject;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPvcsproject", "code": "    public void setPvcsproject(String prj) {\n        pvcsProject = prj;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPvcsprojects", "code": "    public Vector getPvcsprojects() {\n        return pvcsProjects;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getWorkspace", "code": "    public String getWorkspace() {\n        return workspace;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWorkspace", "code": "    public void setWorkspace(String ws) {\n        workspace = ws;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPvcsbin", "code": "    public String getPvcsbin() {\n        return pvcsbin;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPvcsbin", "code": "    public void setPvcsbin(String bin) {\n        pvcsbin = bin;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getForce", "code": "    public String getForce() {\n        return force;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setForce", "code": "    public void setForce(String f) {\n        if (f != null && f.equalsIgnoreCase(\"yes\")) {\n            force = \"yes\";\n        } else {\n            force = \"no\";", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getPromotiongroup", "code": "    public String getPromotiongroup() {\n        return promotiongroup;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPromotiongroup", "code": "    public void setPromotiongroup(String w) {\n        promotiongroup = w;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLabel", "code": "    public String getLabel() {\n        return label;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLabel", "code": "    public void setLabel(String l) {\n        label = l;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRevision", "code": "    public String getRevision() {\n        return revision;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRevision", "code": "    public void setRevision(String r) {\n        revision = r;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIgnoreReturnCode", "code": "    public boolean getIgnoreReturnCode() {\n        return ignorerc;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIgnoreReturnCode", "code": "    public void setIgnoreReturnCode(boolean b) {\n        ignorerc = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addPvcsproject", "code": "    public void addPvcsproject(PvcsProject p) {\n        pvcsProjects.addElement(p);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUpdateOnly", "code": "    public boolean getUpdateOnly() {\n        return updateOnly;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUpdateOnly", "code": "    public void setUpdateOnly(boolean l) {\n        updateOnly = l;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConfig", "code": "    public String getConfig() {\n        return config;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConfig", "code": "    public void setConfig(File f) {\n        config = f.toString();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getUserId", "code": "    public String getUserId() {\n        return userId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUserId", "code": "    public void setUserId(String u) {\n        userId = u;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Pvcs", "code": "    public Pvcs() {\n        super();\n        pvcsProject = null;\n        pvcsProjects = new Vector();\n        workspace = null;\n        repository = null;\n        pvcsbin = null;\n        force = null;\n        promotiongroup = null;\n        label = null;\n        ignorerc = false;\n        updateOnly = false;\n        lineStart = \"\\\"P:\";\n        filenameFormat = \"{0}-arc({1})\";", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [1, 13], [2, 14], [3, 15], [4, 16], [5, 17], [6, 18], [7, 19], [8, 20], [9, 21], [10, 22], [11, 23], [12, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 1], [14, 2], [15, 3], [16, 4], [17, 5], [18, 6], [19, 7], [20, 8], [21, 9], [22, 10], [23, 11], [24, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}], "label": 0}
{"sample_id": "ant-1.7-931", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.ssh.AbstractSshMessage", "code": "public abstract class AbstractSshMessage {\n    private static final double ONE_SECOND = 1000.0;\n\n    private Session session;\n    private boolean verbose;\n    private LogListener listener = new LogListener() {\n        public void log(String message) {\n        }\n    };\n\n    /**\n     * Constructor for AbstractSshMessage\n     * @param session the ssh session to use\n     */\n    public AbstractSshMessage(Session session) {\n        this(false, session);\n    }\n\n    /**\n     * Constructor for AbstractSshMessage\n     * @param verbose if true do verbose logging\n     * @param session the ssh session to use\n     * @since Ant 1.6.2\n     */\n    public AbstractSshMessage(boolean verbose, Session session) {\n        this.verbose = verbose;\n        this.session = session;\n    }\n\n    /**\n     * Open an ssh channel.\n     * @param command the command to use\n     * @return the channel\n     * @throws JSchException on error\n     */\n    protected Channel openExecChannel(String command) throws JSchException {\n        ChannelExec channel = (ChannelExec) session.openChannel(\"exec\");\n        channel.setCommand(command);\n\n        return channel;\n    }\n\n    /**\n     * Open an ssh sftp channel.\n     * @return the channel\n     * @throws JSchException on error\n     */\n    protected ChannelSftp openSftpChannel() throws JSchException {\n        ChannelSftp channel = (ChannelSftp) session.openChannel(\"sftp\");\n\n        return channel;\n    }\n\n    /**\n     * Send an ack.\n     * @param out the output stream to use\n     * @throws IOException on error\n     */\n    protected void sendAck(OutputStream out) throws IOException {\n        byte[] buf = new byte[1];\n        buf[0] = 0;\n        out.write(buf);\n        out.flush();\n    }\n\n    /**\n     * Reads the response, throws a BuildException if the response\n     * indicates an error.\n     * @param in the input stream to use\n     * @throws IOException on I/O error\n     * @throws BuildException on other errors\n     */\n    protected void waitForAck(InputStream in)\n        throws IOException, BuildException {\n        int b = in.read();\n\n\n        if (b == -1) {\n            throw new BuildException(\"No response from server\");\n        } else if (b != 0) {\n            StringBuffer sb = new StringBuffer();\n\n            int c = in.read();\n            while (c > 0 && c != '\\n') {\n                sb.append((char) c);\n                c = in.read();\n            }\n\n            if (b == 1) {\n                throw new BuildException(\"server indicated an error: \"\n                                         + sb.toString());\n            } else if (b == 2) {\n                throw new BuildException(\"server indicated a fatal error: \"\n                                         + sb.toString());\n            } else {\n                throw new BuildException(\"unknown response, code \" + b\n                                         + \" message: \" + sb.toString());\n            }\n        }\n    }\n\n    /**\n     * Carry out the transfer.\n     * @throws IOException on I/O errors\n     * @throws JSchException on ssh errors\n     */\n    public abstract void execute() throws IOException, JSchException;\n\n    /**\n     * Set a log listener.\n     * @param aListener the log listener\n     */\n    public void setLogListener(LogListener aListener) {\n        listener = aListener;\n    }\n\n    /**\n     * Log a message to the log listener.\n     * @param message the message to log\n     */\n    protected void log(String message) {\n        listener.log(message);\n    }\n\n    /**\n     * Log transfer stats to the log listener.\n     * @param timeStarted the time started\n     * @param timeEnded   the finishing time\n     * @param totalLength the total length\n     */\n    protected void logStats(long timeStarted,\n                             long timeEnded,\n                             long totalLength) {\n        double duration = (timeEnded - timeStarted) / ONE_SECOND;\n        NumberFormat format = NumberFormat.getNumberInstance();\n        format.setMaximumFractionDigits(2);\n        format.setMinimumFractionDigits(1);\n        listener.log(\"File transfer time: \" + format.format(duration)\n            + \" Average Rate: \" + format.format(totalLength / duration)\n            + \" B/s\");\n    }\n\n    /**\n     * Is the verbose attribute set.\n     * @return true if the verbose attribute is set\n     * @since Ant 1.6.2\n     */\n    protected final boolean getVerbose() {\n        return verbose;\n    }\n\n    /**\n     * Track progress every 10% if 100kb < filesize < 1mb. For larger\n     * files track progress for every percent transmitted.\n     * @param filesize the size of the file been transmitted\n     * @param totalLength the total transmission size\n     * @param percentTransmitted the current percent transmitted\n     * @return the percent that the file is of the total\n     */\n    protected final int trackProgress(long filesize, long totalLength,\n                                      int percentTransmitted) {\n\n        int percent = (int) Math.round(Math.floor((totalLength\n                                                   / (double) filesize) * 100));\n\n        if (percent > percentTransmitted) {\n            if (filesize < 1048576) {\n                if (percent % 10 == 0) {\n                    if (percent == 100) {\n                        System.out.println(\" 100%\");\n                    } else {\n                        System.out.print(\"*\");\n                    }\n                }\n            } else {\n                if (percent == 50) {\n                    System.out.println(\" 50%\");\n                } else if (percent == 100) {\n                    System.out.println(\" 100%\");\n                } else {\n                    System.out.print(\".\");\n                }\n            }\n        }\n\n        return percent;\n    }\n\n    private ProgressMonitor monitor = null;\n\n    /**\n     * Get the progress monitor.\n     * @return the progress monitor.\n     */\n    protected SftpProgressMonitor getProgressMonitor() {\n        if (monitor == null) {\n            monitor = new ProgressMonitor();\n        }\n        return monitor;\n    }\n\n    private class ProgressMonitor implements SftpProgressMonitor {\n        private long initFileSize = 0;\n        private long totalLength = 0;\n        private int percentTransmitted = 0;\n\n        public void init(int op, String src, String dest, long max) {\n            initFileSize = max;\n            totalLength = 0;\n            percentTransmitted = 0;\n        }\n\n        public boolean count(long len) {\n            totalLength += len;\n            percentTransmitted = trackProgress(initFileSize,\n                                               totalLength,\n                                               percentTransmitted);\n            return true;\n        }\n\n        public void end() {\n        }\n\n        public long getTotalLength() {\n            return totalLength;", "functions": [{"function_name": "openExecChannel", "code": "    protected Channel openExecChannel(String command) throws JSchException {\n        ChannelExec channel = (ChannelExec) session.openChannel(\"exec\");\n        channel.setCommand(command);\n\n        return channel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "openSftpChannel", "code": "    protected ChannelSftp openSftpChannel() throws JSchException {\n        ChannelSftp channel = (ChannelSftp) session.openChannel(\"sftp\");\n\n        return channel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "sendAck", "code": "    protected void sendAck(OutputStream out) throws IOException {\n        byte[] buf = new byte[1];\n        buf[0] = 0;\n        out.write(buf);\n        out.flush();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "waitForAck", "code": "    protected void waitForAck(InputStream in)\n        throws IOException, BuildException {\n        int b = in.read();\n\n\n        if (b == -1) {\n            throw new BuildException(\"No response from server\");\n        } else if (b != 0) {\n            StringBuffer sb = new StringBuffer();\n\n            int c = in.read();\n            while (c > 0 && c != '\\n') {\n                sb.append((char) c);\n                c = in.read();\n            }\n\n            if (b == 1) {\n                throw new BuildException(\"server indicated an error: \"\n                                         + sb.toString());\n            } else if (b == 2) {\n                throw new BuildException(\"server indicated a fatal error: \"\n                                         + sb.toString());\n            } else {\n                throw new BuildException(\"unknown response, code \" + b\n                                         + \" message: \" + sb.toString());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [2, 9], [4, 10], [4, 11], [4, 12], [4, 13], [6, 14], [7, 15], [10, 16], [10, 17], [11, 18], [15, 19], [16, 20], [10, 21], [17, 22], [18, 23], [18, 24], [12, 25], [13, 26], [16, 27], [16, 28], [20, 29], [21, 30], [11, 31], [11, 32], [23, 33], [24, 34], [27, 35], [28, 36], [30, 37], [31, 38], [35, 39], [36, 40], [37, 41], [37, 42], [39, 43], [39, 44], [40, 45], [40, 46], [44, 47], [44, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 2], [10, 4], [11, 4], [12, 4], [13, 4], [14, 6], [15, 7], [16, 10], [17, 10], [18, 11], [19, 15], [20, 16], [21, 10], [22, 17], [23, 18], [24, 18], [25, 12], [26, 13], [27, 16], [28, 16], [29, 20], [30, 21], [31, 11], [32, 11], [33, 23], [34, 24], [35, 27], [36, 28], [37, 30], [38, 31], [39, 35], [40, 36], [41, 37], [42, 37], [43, 39], [44, 39], [45, 40], [46, 40], [47, 44], [48, 44], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "execute", "code": "    public abstract void execute() throws IOException, JSchException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setLogListener", "code": "    public void setLogListener(LogListener aListener) {\n        listener = aListener;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "log", "code": "    protected void log(String message) {\n        listener.log(message);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "logStats", "code": "    protected void logStats(long timeStarted,\n                             long timeEnded,\n                             long totalLength) {\n        double duration = (timeEnded - timeStarted) / ONE_SECOND;\n        NumberFormat format = NumberFormat.getNumberInstance();\n        format.setMaximumFractionDigits(2);\n        format.setMinimumFractionDigits(1);\n        listener.log(\"File transfer time: \" + format.format(duration)\n            + \" Average Rate: \" + format.format(totalLength / duration)\n            + \" B/s\");", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [6, 9], [7, 10], [8, 11], [1, 12], [2, 13], [9, 14], [9, 15], [13, 16], [15, 17], [15, 18], [17, 19], [18, 20], [18, 21], [21, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 6], [10, 7], [11, 8], [12, 1], [13, 2], [14, 9], [15, 9], [16, 13], [17, 15], [18, 15], [19, 17], [20, 18], [21, 18], [22, 21], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getVerbose", "code": "    protected final boolean getVerbose() {\n        return verbose;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "trackProgress", "code": "    protected final int trackProgress(long filesize, long totalLength,\n                                      int percentTransmitted) {\n\n        int percent = (int) Math.round(Math.floor((totalLength\n                                                   / (double) filesize) * 100));\n\n        if (percent > percentTransmitted) {\n            if (filesize < 1048576) {\n                if (percent % 10 == 0) {\n                    if (percent == 100) {\n                        System.out.println(\" 100%\");\n                    } else {\n                        System.out.print(\"*\");\n                    }\n                }\n            } else {\n                if (percent == 50) {\n                    System.out.println(\" 50%\");\n                } else if (percent == 100) {\n                    System.out.println(\" 100%\");\n                } else {\n                    System.out.print(\".\");\n                }\n            }\n        }\n\n        return percent;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [8, 9], [3, 10], [8, 11], [8, 12], [9, 13], [10, 14], [11, 15], [11, 16], [12, 17], [14, 18], [15, 19], [16, 20], [12, 21], [17, 22], [17, 23], [18, 24], [18, 25], [19, 26], [11, 27], [21, 28], [23, 29], [15, 30], [15, 31], [27, 32], [28, 33], [30, 34], [31, 35], [21, 36], [21, 37], [36, 38], [37, 39], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 8], [10, 3], [11, 8], [12, 8], [13, 9], [14, 10], [15, 11], [16, 11], [17, 12], [18, 14], [19, 15], [20, 16], [21, 12], [22, 17], [23, 17], [24, 18], [25, 18], [26, 19], [27, 11], [28, 21], [29, 23], [30, 15], [31, 15], [32, 27], [33, 28], [34, 30], [35, 31], [36, 21], [37, 21], [38, 36], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "getProgressMonitor", "code": "    protected SftpProgressMonitor getProgressMonitor() {\n        if (monitor == null) {\n            monitor = new ProgressMonitor();\n        }\n        return monitor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "AbstractSshMessage", "code": "    public AbstractSshMessage(Session session) {\n        this(false, session);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AbstractSshMessage", "code": "    public AbstractSshMessage(boolean verbose, Session session) {\n        this.verbose = verbose;\n        this.session = session;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.4-2587", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/jetty/JettyHttpProducer.java", "language": "java", "name": "org.apache.camel.component.jetty.JettyHttpProducer", "code": "public class JettyHttpProducer extends DefaultProducer<HttpExchange> implements Producer<HttpExchange>, AsyncProcessor {\n\n    private final class CamelContentExchange extends ContentExchange {\n\n        private final AsyncCallback callback;\n        private final Exchange exchange;\n        private HttpFields responseFields;\n\n        private CamelContentExchange(Exchange exchange, AsyncCallback callback) {\n            this.exchange = exchange;\n            this.callback = callback;\n            responseFields = new HttpFields();\n        }\n\n        protected void onResponseComplete() throws IOException {\n            super.onRequestComplete();\n            try {\n                Message out = exchange.getOut(true);\n                out.setBody(getResponseContent());\n                for (Iterator i = responseFields.getFields(); i.hasNext();) {\n                    Field field = (Field)i.next();\n                    out.setHeader(field.getName(), field.getValue());\n                }\n            } catch (Throwable e) {\n                exchange.setException(e);\n            }\n            callback.done(false);\n        }\n\n        public HttpFields getResponseFields() {\n            return responseFields;\n        }\n\n        protected void onResponsetHeader(Buffer name, Buffer value) throws IOException {\n            responseFields.add(name, value);\n        }\n\n    }\n\n    private HttpClient httpClient;\n    private String address;\n\n    public JettyHttpProducer(HttpEndpoint endpoint) {\n        super(endpoint);\n        httpClient = ((JettyHttpComponent)endpoint.getComponent()).getHttpClient();\n\n        address = endpoint.getHttpUri().toString();\n\n        HttpURI uri = new HttpURI(address);\n        if (uri.getCompletePath() == null) {\n            address += \"/\";\n        }\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        final CountDownLatch latch = new CountDownLatch(1);\n        process(exchange, new AsyncCallback() {\n            public void done(boolean sync) {\n                latch.countDown();\n            }\n        });\n        latch.await();\n    }\n\n    public boolean process(final Exchange exchange, final AsyncCallback callback) {\n\n        ContentExchange jettyExchange = new CamelContentExchange(exchange, callback);\n\n        jettyExchange.setURL(address);\n\n        Message in = exchange.getIn();\n        InputStream is = in.getBody(InputStream.class);\n        if (is != null) {\n            jettyExchange.setMethod(HttpMethods.POST);\n            jettyExchange.setRequestContentSource(is);\n        } else {\n            Buffer buffer = in.getBody(Buffer.class);\n            if (buffer != null) {\n                jettyExchange.setMethod(HttpMethods.POST);\n                jettyExchange.setRequestContent(buffer);\n            } else {\n                jettyExchange.setMethod(HttpMethods.GET);\n            }\n        }\n\n        HttpBinding binding = ((HttpEndpoint)getEndpoint()).getBinding();\n        for (String name : in.getHeaders().keySet()) {\n            String value = in.getHeader(name, String.class);\n            if (\"Content-Type\".equals(name)) {\n                jettyExchange.setRequestContentType(value);\n            } else if (binding.shouldHeaderBePropagated(name, value)) {\n                jettyExchange.addRequestHeader(name, value);\n            }\n        }\n        try {\n            httpClient.send(jettyExchange);\n        } catch (IOException e) {\n            exchange.setException(e);\n            return true;\n        }\n        return false;", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        final CountDownLatch latch = new CountDownLatch(1);\n        process(exchange, new AsyncCallback() {\n            public void done(boolean sync) {\n                latch.countDown();\n            }\n        });\n        latch.await();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "LITERAL_ANCHOR", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 6], [5, 7], [6, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 1], [7, 5], [8, 6], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "process", "code": "    public boolean process(final Exchange exchange, final AsyncCallback callback) {\n\n        ContentExchange jettyExchange = new CamelContentExchange(exchange, callback);\n\n        jettyExchange.setURL(address);\n\n        Message in = exchange.getIn();\n        InputStream is = in.getBody(InputStream.class);\n        if (is != null) {\n            jettyExchange.setMethod(HttpMethods.POST);\n            jettyExchange.setRequestContentSource(is);\n        } else {\n            Buffer buffer = in.getBody(Buffer.class);\n            if (buffer != null) {\n                jettyExchange.setMethod(HttpMethods.POST);\n                jettyExchange.setRequestContent(buffer);\n            } else {\n                jettyExchange.setMethod(HttpMethods.GET);\n            }\n        }\n\n        HttpBinding binding = ((HttpEndpoint)getEndpoint()).getBinding();\n        for (String name : in.getHeaders().keySet()) {\n            String value = in.getHeader(name, String.class);\n            if (\"Content-Type\".equals(name)) {\n                jettyExchange.setRequestContentType(value);\n            } else if (binding.shouldHeaderBePropagated(name, value)) {\n                jettyExchange.addRequestHeader(name, value);\n            }\n        }\n        try {\n            httpClient.send(jettyExchange);\n        } catch (IOException e) {\n            exchange.setException(e);\n            return true;\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "BINARY_OP", "CALL", "RETURN", "CALL", "IF", "VAR_DECL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [5, 13], [0, 14], [12, 15], [2, 16], [3, 17], [3, 18], [3, 19], [5, 20], [5, 21], [13, 22], [6, 23], [7, 24], [8, 25], [15, 26], [12, 27], [17, 28], [17, 29], [19, 30], [4, 31], [20, 32], [5, 33], [5, 34], [28, 35], [29, 36], [18, 37], [32, 38], [21, 39], [17, 40], [20, 41], [20, 42], [20, 43], [28, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 5], [14, 0], [15, 12], [16, 2], [17, 3], [18, 3], [19, 3], [20, 5], [21, 5], [22, 13], [23, 6], [24, 7], [25, 8], [26, 15], [27, 12], [28, 17], [29, 17], [30, 19], [31, 4], [32, 20], [33, 5], [34, 5], [35, 28], [36, 29], [37, 18], [38, 32], [39, 21], [40, 17], [41, 20], [42, 20], [43, 20], [44, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "JettyHttpProducer", "code": "    public JettyHttpProducer(HttpEndpoint endpoint) {\n        super(endpoint);\n        httpClient = ((JettyHttpComponent)endpoint.getComponent()).getHttpClient();\n\n        address = endpoint.getHttpUri().toString();\n\n        HttpURI uri = new HttpURI(address);\n        if (uri.getCompletePath() == null) {\n            address += \"/\";", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [4, 7], [4, 8], [2, 9], [5, 10], [1, 11], [10, 12], [6, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 4], [8, 4], [9, 2], [10, 5], [11, 1], [12, 10], [13, 6], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "xalan-2.4-6733", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/UnresolvedRef.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.UnresolvedRef", "code": "final class UnresolvedRef extends VariableRefBase {\n\n    private QName           _variableName = null;\n    private VariableRefBase _ref = null;\n    private VariableBase    _var = null;\n    private Stylesheet      _sheet = null;\n\n    public UnresolvedRef(QName name) {\n\tsuper();\n\t_variableName = name;\n\t_sheet = getStylesheet();\n    }\n\n    public QName getName() {\n\treturn(_variableName);\n    }\n\n    private ErrorMsg reportError() {\n\tErrorMsg err = new ErrorMsg(ErrorMsg.VARIABLE_UNDEF_ERR,\n\t\t\t\t    _variableName, this);\n\tgetParser().reportError(Constants.ERROR, err);\n\treturn(err);\n    }\n\n    private VariableRefBase resolve(Parser parser, SymbolTable stable) {\n\tVariableBase ref = parser.lookupVariable(_variableName);\n\tif (ref == null) ref = (VariableBase)stable.lookupName(_variableName);\n\tif (ref == null) {\n\t    reportError();\n\t    return null;\n\t}\n\t\n\tif ((_var = findParentVariable()) != null) _var.addDependency(ref);\n\n\tif (ref instanceof Variable)\n\t    return(new VariableRef((Variable)ref));\n\telse if (ref instanceof Param)\n\t    return(new ParameterRef((Param)ref));\n\telse\n\t    return null;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_ref != null) {\n\t    final String name = _variableName.toString();\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.CIRCULAR_VARIABLE_ERR,\n\t\t\t\t\tname, this);\n\t}\n\tif ((_ref = resolve(getParser(), stable)) != null) {\n\t    return (_type = _ref.typeCheck(stable));\n\t}\n\tthrow new TypeCheckError(reportError());\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tif (_ref != null)\n\t    _ref.translate(classGen, methodGen);\n\telse\n\t    reportError();\n    }\n\n    public String toString() {\n\treturn \"unresolved-ref()\";", "functions": [{"function_name": "getName", "code": "    public QName getName() {\n\treturn(_variableName);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reportError", "code": "    private ErrorMsg reportError() {\n\tErrorMsg err = new ErrorMsg(ErrorMsg.VARIABLE_UNDEF_ERR,\n\t\t\t\t    _variableName, this);\n\tgetParser().reportError(Constants.ERROR, err);\n\treturn(err);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "resolve", "code": "    private VariableRefBase resolve(Parser parser, SymbolTable stable) {\n\tVariableBase ref = parser.lookupVariable(_variableName);\n\tif (ref == null) ref = (VariableBase)stable.lookupName(_variableName);\n\tif (ref == null) {\n\t    reportError();\n\t    return null;\n\t}\n\t\n\tif ((_var = findParentVariable()) != null) _var.addDependency(ref);\n\n\tif (ref instanceof Variable)\n\t    return(new VariableRef((Variable)ref));\n\telse if (ref instanceof Param)\n\t    return(new ParameterRef((Param)ref));\n\telse\n\t    return null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [4, 13], [8, 14], [8, 15], [8, 16], [9, 17], [2, 18], [11, 19], [11, 20], [3, 21], [12, 22], [4, 23], [13, 24], [5, 25], [14, 26], [15, 27], [20, 28], [21, 29], [3, 30], [23, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 4], [14, 8], [15, 8], [16, 8], [17, 9], [18, 2], [19, 11], [20, 11], [21, 3], [22, 12], [23, 4], [24, 13], [25, 5], [26, 14], [27, 15], [28, 20], [29, 21], [30, 3], [31, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_ref != null) {\n\t    final String name = _variableName.toString();\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.CIRCULAR_VARIABLE_ERR,\n\t\t\t\t\tname, this);\n\t}\n\tif ((_ref = resolve(getParser(), stable)) != null) {\n\t    return (_type = _ref.typeCheck(stable));\n\t}\n\tthrow new TypeCheckError(reportError());", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "ASSIGN", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [5, 8], [2, 9], [6, 10], [6, 11], [3, 12], [3, 13], [7, 14], [9, 15], [11, 16], [15, 17], [16, 18], [12, 19], [13, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 5], [9, 2], [10, 6], [11, 6], [12, 3], [13, 3], [14, 7], [15, 9], [16, 11], [17, 15], [18, 16], [19, 12], [20, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tif (_ref != null)\n\t    _ref.translate(classGen, methodGen);\n\telse\n\t    reportError();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"unresolved-ref()\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "UnresolvedRef", "code": "    public UnresolvedRef(QName name) {\n\tsuper();\n\t_variableName = name;\n\t_sheet = getStylesheet();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.4-2154", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/Component.java", "language": "java", "name": "org.apache.camel.Component", "code": "public interface Component<E extends Exchange> {\n\n    /**\n     * Returns the context\n     * \n     * @return the context of this component\n     */\n    CamelContext getCamelContext();\n\n    /**\n     * The {@link CamelContext} is injected into the component when it is added\n     * to it\n     */\n    void setCamelContext(CamelContext context);\n\n    /**\n     * Attempt to resolve an endpoint for the given URI if the component is\n     * capable of handling the URI\n     * \n     * @param uri the URI to create\n     * @return a newly created endpoint or null if this component cannot create\n     *         instances of the given uri\n     */\n    Endpoint<E> createEndpoint(String uri) throws Exception;", "functions": [{"function_name": "getCamelContext", "code": "    CamelContext getCamelContext();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setCamelContext", "code": "    void setCamelContext(CamelContext context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createEndpoint", "code": "    Endpoint<E> createEndpoint(String uri) throws Exception;", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "ant-1.5-287", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/ManifestTask.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.ManifestTask", "code": "public class ManifestTask extends Task {\n\n    /**\n     * Holds the real data.\n     */\n    private Manifest nestedManifest = new Manifest();\n\n    /**\n     * The file to which the manifest should be written when used as a task\n     */\n    private File manifestFile;\n\n    /**\n     * The mode with which the manifest file is written\n     */\n    private Mode mode;\n\n    /** \n     * The encoding of the manifest file\n     */\n    private String encoding;\n    \n    /**\n     * Helper class for Manifest's mode attribute.\n     */\n    public static class Mode extends EnumeratedAttribute {\n        /**\n         * Get Allowed values for the mode attribute.\n         *\n         * @return a String array of the allowed values.\n         */\n        public String[] getValues() {\n            return new String[] {\"update\", \"replace\"};\n        }\n    }\n\n    public ManifestTask() {\n        mode = new Mode();\n        mode.setValue(\"replace\");\n    }\n\n    /**\n     * Add a section to the manifest\n     *\n     * @param section the manifest section to be added\n     *\n     * @exception ManifestException if the secti0on is not valid.\n     */\n    public void addConfiguredSection(Manifest.Section section)\n         throws ManifestException {\n        nestedManifest.addConfiguredSection(section);\n    }\n\n    /**\n     * Add an attribute to the manifest - it is added to the main section.\n     *\n     * @param attribute the attribute to be added.\n     *\n     * @exception ManifestException if the attribute is not valid.\n     */\n    public void addConfiguredAttribute(Manifest.Attribute attribute)\n         throws ManifestException {\n        nestedManifest.addConfiguredAttribute(attribute);\n    }\n\n    /**\n     * The name of the manifest file to create/update.\n     * Required if used as a task.\n     * @param f the Manifest file to be written\n     */\n    public void setFile(File f) {\n        manifestFile = f;\n    }\n\n    /**\n     * The encoding to use for reading in an existing manifest file\n     * @param encoding the maniofets file encoding.\n     */\n    public void setEncoding(String encoding) {\n        this.encoding = encoding;\n    }\n\n    /**\n     * Update policy: either \"update\" or \"replace\"; default is \"replace\".\n     * @param m the mode value - update or replace.\n     */\n    public void setMode(Mode m) {\n        mode = m;\n    }\n\n    /**\n     * Create or update the Manifest when used as a task.\n     *\n     * @throws BuildException if the manifest cannot be written.\n     */\n    public void execute() throws BuildException {\n        if (manifestFile == null) {\n            throw new BuildException(\"the file attribute is required\");\n        }\n\n        Manifest toWrite = Manifest.getDefaultManifest();\n        Manifest current = null;\n        BuildException error = null;\n\n        if (manifestFile.exists()) {\n            FileInputStream fis = null;\n            InputStreamReader isr = null;\n            try {\n                fis = new FileInputStream(manifestFile);\n                if (encoding == null) {\n                    isr = new InputStreamReader(fis, \"UTF-8\");\n                } else {\n                    isr = new InputStreamReader(fis, encoding);\n                }\n                current = new Manifest(isr);\n            } catch (ManifestException m) {\n                error = new BuildException(\"Existing manifest \" + manifestFile\n                                           + \" is invalid\", m, location);\n            } catch (IOException e) {\n                error = new BuildException(\"Failed to read \" + manifestFile,\n                                           e, location);\n            } finally {\n                if (isr != null) {\n                    try {\n                        isr.close();\n                    } catch (IOException e) {}\n                }\n            }\n        }\n\n        try {\n            if (mode.getValue().equals(\"update\") && manifestFile.exists()) {\n                if (current != null) {\n                    toWrite.merge(current);\n                } else if (error != null) {\n                    throw error;\n                }\n            }\n\n            toWrite.merge(nestedManifest);\n        } catch (ManifestException m) {\n            throw new BuildException(\"Manifest is invalid\", m, location);\n        }\n\n        if (toWrite.equals(current)) {\n            log(\"Manifest has not changed, do not recreate\",\n                Project.MSG_VERBOSE);\n            return;\n        }\n\n        PrintWriter w = null;\n        try {\n            FileOutputStream fos = new FileOutputStream(manifestFile);\n            OutputStreamWriter osw = new OutputStreamWriter(fos, \"UTF-8\");\n            w = new PrintWriter(osw);\n            toWrite.write(w);\n        } catch (IOException e) {\n            throw new BuildException(\"Failed to write \" + manifestFile,\n                                     e, location);\n        } finally {\n            if (w != null) {\n                w.close();", "functions": [{"function_name": "addConfiguredSection", "code": "    public void addConfiguredSection(Manifest.Section section)\n         throws ManifestException {\n        nestedManifest.addConfiguredSection(section);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addConfiguredAttribute", "code": "    public void addConfiguredAttribute(Manifest.Attribute attribute)\n         throws ManifestException {\n        nestedManifest.addConfiguredAttribute(attribute);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFile", "code": "    public void setFile(File f) {\n        manifestFile = f;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setEncoding", "code": "    public void setEncoding(String encoding) {\n        this.encoding = encoding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMode", "code": "    public void setMode(Mode m) {\n        mode = m;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (manifestFile == null) {\n            throw new BuildException(\"the file attribute is required\");\n        }\n\n        Manifest toWrite = Manifest.getDefaultManifest();\n        Manifest current = null;\n        BuildException error = null;\n\n        if (manifestFile.exists()) {\n            FileInputStream fis = null;\n            InputStreamReader isr = null;\n            try {\n                fis = new FileInputStream(manifestFile);\n                if (encoding == null) {\n                    isr = new InputStreamReader(fis, \"UTF-8\");\n                } else {\n                    isr = new InputStreamReader(fis, encoding);\n                }\n                current = new Manifest(isr);\n            } catch (ManifestException m) {\n                error = new BuildException(\"Existing manifest \" + manifestFile\n                                           + \" is invalid\", m, location);\n            } catch (IOException e) {\n                error = new BuildException(\"Failed to read \" + manifestFile,\n                                           e, location);\n            } finally {\n                if (isr != null) {\n                    try {\n                        isr.close();\n                    } catch (IOException e) {}\n                }\n            }\n        }\n\n        try {\n            if (mode.getValue().equals(\"update\") && manifestFile.exists()) {\n                if (current != null) {\n                    toWrite.merge(current);\n                } else if (error != null) {\n                    throw error;\n                }\n            }\n\n            toWrite.merge(nestedManifest);\n        } catch (ManifestException m) {\n            throw new BuildException(\"Manifest is invalid\", m, location);\n        }\n\n        if (toWrite.equals(current)) {\n            log(\"Manifest has not changed, do not recreate\",\n                Project.MSG_VERBOSE);\n            return;\n        }\n\n        PrintWriter w = null;\n        try {\n            FileOutputStream fos = new FileOutputStream(manifestFile);\n            OutputStreamWriter osw = new OutputStreamWriter(fos, \"UTF-8\");\n            w = new PrintWriter(osw);\n            toWrite.write(w);\n        } catch (IOException e) {\n            throw new BuildException(\"Failed to write \" + manifestFile,\n                                     e, location);\n        } finally {\n            if (w != null) {\n                w.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "CATCH", "VAR_DECL", "VAR_DECL", "CALL", "CATCH", "IF", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "THROW_RAISE", "CALL", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "IF", "CATCH", "CATCH", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [1, 12], [1, 13], [3, 14], [4, 15], [4, 16], [5, 17], [9, 18], [10, 19], [11, 20], [1, 21], [1, 22], [2, 23], [3, 24], [15, 25], [4, 26], [16, 27], [5, 28], [5, 29], [5, 30], [6, 31], [7, 32], [8, 33], [9, 34], [18, 35], [19, 36], [20, 37], [22, 38], [12, 39], [13, 40], [3, 41], [25, 42], [16, 43], [27, 44], [27, 45], [28, 46], [28, 47], [28, 48], [28, 49], [34, 50], [10, 51], [37, 52], [39, 53], [41, 54], [42, 55], [43, 56], [43, 57], [45, 58], [46, 59], [28, 60], [49, 61], [28, 62], [29, 63], [30, 64], [50, 65], [52, 66], [56, 67], [57, 68], [58, 69], [46, 70], [59, 71], [47, 72], [48, 73], [60, 74], [61, 75], [62, 76], [56, 77], [67, 78], [43, 79], [70, 80], [72, 81], [73, 82], [49, 83], [49, 84], [70, 85], [81, 86], [82, 87], [83, 88], [84, 89], [86, 90], [87, 91], [87, 92], [89, 93], [92, 94], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 1], [13, 1], [14, 3], [15, 4], [16, 4], [17, 5], [18, 9], [19, 10], [20, 11], [21, 1], [22, 1], [23, 2], [24, 3], [25, 15], [26, 4], [27, 16], [28, 5], [29, 5], [30, 5], [31, 6], [32, 7], [33, 8], [34, 9], [35, 18], [36, 19], [37, 20], [38, 22], [39, 12], [40, 13], [41, 3], [42, 25], [43, 16], [44, 27], [45, 27], [46, 28], [47, 28], [48, 28], [49, 28], [50, 34], [51, 10], [52, 37], [53, 39], [54, 41], [55, 42], [56, 43], [57, 43], [58, 45], [59, 46], [60, 28], [61, 49], [62, 28], [63, 29], [64, 30], [65, 50], [66, 52], [67, 56], [68, 57], [69, 58], [70, 46], [71, 59], [72, 47], [73, 48], [74, 60], [75, 61], [76, 62], [77, 56], [78, 67], [79, 43], [80, 70], [81, 72], [82, 73], [83, 49], [84, 49], [85, 70], [86, 81], [87, 82], [88, 83], [89, 84], [90, 86], [91, 87], [92, 87], [93, 89], [94, 92], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94]]}, {"function_name": "ManifestTask", "code": "    public ManifestTask() {\n        mode = new Mode();\n        mode.setValue(\"replace\");", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-3.2-3650", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/options/TextAreaOptionPane.java", "language": "java", "name": "org.gjt.sp.jedit.options.TextAreaOptionPane", "code": "public class TextAreaOptionPane extends AbstractOptionPane\n{\n\tpublic TextAreaOptionPane()\n\t{\n\t\tsuper(\"textarea\");\n\t}\n\n\tpublic void _init()\n\t{\n\t\t/* Font */\n\t\tString _fontFamily = jEdit.getProperty(\"view.font\");\n\t\tint _fontStyle;\n\t\ttry\n\t\t{\n\t\t\t_fontStyle = Integer.parseInt(jEdit.getProperty(\"view.fontstyle\"));\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\t_fontStyle = Font.PLAIN;\n\t\t}\n\t\tint _fontSize;\n\t\ttry\n\t\t{\n\t\t\t_fontSize = Integer.parseInt(jEdit.getProperty(\"view.fontsize\"));\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\t_fontSize = 14;\n\t\t}\n\t\tfont = new FontSelector(new Font(_fontFamily,_fontStyle,_fontSize));\n\n\t\taddComponent(jEdit.getProperty(\"options.textarea.font\"),font);\n\n\t\t/* Line highlight */\n\t\tlineHighlight = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".lineHighlight\"));\n\t\tlineHighlight.setSelected(jEdit.getBooleanProperty(\"view.lineHighlight\"));\n\t\taddComponent(lineHighlight);\n\n\t\t/* Bracket highlight */\n\t\tbracketHighlight = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".bracketHighlight\"));\n\t\tbracketHighlight.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.bracketHighlight\"));\n\t\taddComponent(bracketHighlight);\n\n\t\t/* EOL markers */\n\t\teolMarkers = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".eolMarkers\"));\n\t\teolMarkers.setSelected(jEdit.getBooleanProperty(\"view.eolMarkers\"));\n\t\taddComponent(eolMarkers);\n\n\t\t/* Wrap guide */\n\t\twrapGuide = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".wrapGuide\"));\n\t\twrapGuide.setSelected(jEdit.getBooleanProperty(\"view.wrapGuide\"));\n\t\taddComponent(wrapGuide);\n\n\t\t/* Blinking caret */\n\t\tblinkCaret = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".blinkCaret\"));\n\t\tblinkCaret.setSelected(jEdit.getBooleanProperty(\"view.caretBlink\"));\n\t\taddComponent(blinkCaret);\n\n\t\t/* Block caret */\n\t\tblockCaret = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".blockCaret\"));\n\t\tblockCaret.setSelected(jEdit.getBooleanProperty(\"view.blockCaret\"));\n\t\taddComponent(blockCaret);\n\n\t\t/* Electric borders */\n\t\telectricBorders = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".electricBorders\"));\n\t\telectricBorders.setSelected(!\"0\".equals(jEdit.getProperty(\n\t\t\t\"view.electricBorders\")));\n\t\taddComponent(electricBorders);\n\n\t\t/* Smart home/end */\n\t\thomeEnd = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".homeEnd\"));\n\t\thomeEnd.setSelected(jEdit.getBooleanProperty(\"view.homeEnd\"));\n\t\taddComponent(homeEnd);\n\n\t\t/* Middle mouse button click pastes % register */\n\t\tmiddleMousePaste = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".middleMousePaste\"));\n\t\tmiddleMousePaste.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.middleMousePaste\"));\n\t\taddComponent(middleMousePaste);\n\n\t\t/* Anti-aliasing */\n\t\tantiAlias = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".antiAlias\"));\n\t\tantiAlias.setSelected(jEdit.getBooleanProperty(\"view.antiAlias\"));\n\n\t\t/* Fractional font metrics */\n\t\tfracFontMetrics = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".fracFontMetrics\"));\n\t\tfracFontMetrics.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.fracFontMetrics\"));\n\n\t\tif(System.getProperty(\"java.version\").compareTo(\"1.2\") >= 0)\n\t\t{\n\t\t\taddComponent(antiAlias);\n\t\t\taddComponent(fracFontMetrics);\n\t\t}\n\t}\n\n\tpublic void _save()\n\t{\n\t\tFont _font = font.getFont();\n\t\tjEdit.setProperty(\"view.font\",_font.getFamily());\n\t\tjEdit.setProperty(\"view.fontsize\",String.valueOf(_font.getSize()));\n\t\tjEdit.setProperty(\"view.fontstyle\",String.valueOf(_font.getStyle()));\n\n\t\tjEdit.setBooleanProperty(\"view.lineHighlight\",lineHighlight\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.bracketHighlight\",bracketHighlight\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.eolMarkers\",eolMarkers\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.wrapGuide\",wrapGuide\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.caretBlink\",blinkCaret.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.blockCaret\",blockCaret.isSelected());\n\t\tjEdit.setProperty(\"view.electricBorders\",electricBorders\n\t\t\t.isSelected() ? \"3\" : \"0\");\n\t\tjEdit.setBooleanProperty(\"view.homeEnd\",homeEnd.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.middleMousePaste\",\n\t\t\tmiddleMousePaste.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.antiAlias\",antiAlias.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.fracFontMetrics\",fracFontMetrics.isSelected());\n\t}\n\n\t// private members\n\tprivate FontSelector font;\n\tprivate JCheckBox lineHighlight;\n\tprivate JCheckBox bracketHighlight;\n\tprivate JCheckBox eolMarkers;\n\tprivate JCheckBox wrapGuide;\n\tprivate JCheckBox blinkCaret;\n\tprivate JCheckBox blockCaret;\n\tprivate JCheckBox electricBorders;\n\tprivate JCheckBox homeEnd;\n\tprivate JCheckBox middleMousePaste;\n\tprivate JCheckBox antiAlias;\n\tprivate JCheckBox fracFontMetrics;", "functions": [{"function_name": "_init", "code": "\tpublic void _init()\n\t{\n\t\t/* Font */\n\t\tString _fontFamily = jEdit.getProperty(\"view.font\");\n\t\tint _fontStyle;\n\t\ttry\n\t\t{\n\t\t\t_fontStyle = Integer.parseInt(jEdit.getProperty(\"view.fontstyle\"));\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\t_fontStyle = Font.PLAIN;\n\t\t}\n\t\tint _fontSize;\n\t\ttry\n\t\t{\n\t\t\t_fontSize = Integer.parseInt(jEdit.getProperty(\"view.fontsize\"));\n\t\t}\n\t\tcatch(NumberFormatException nf)\n\t\t{\n\t\t\t_fontSize = 14;\n\t\t}\n\t\tfont = new FontSelector(new Font(_fontFamily,_fontStyle,_fontSize));\n\n\t\taddComponent(jEdit.getProperty(\"options.textarea.font\"),font);\n\n\t\t/* Line highlight */\n\t\tlineHighlight = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".lineHighlight\"));\n\t\tlineHighlight.setSelected(jEdit.getBooleanProperty(\"view.lineHighlight\"));\n\t\taddComponent(lineHighlight);\n\n\t\t/* Bracket highlight */\n\t\tbracketHighlight = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".bracketHighlight\"));\n\t\tbracketHighlight.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.bracketHighlight\"));\n\t\taddComponent(bracketHighlight);\n\n\t\t/* EOL markers */\n\t\teolMarkers = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".eolMarkers\"));\n\t\teolMarkers.setSelected(jEdit.getBooleanProperty(\"view.eolMarkers\"));\n\t\taddComponent(eolMarkers);\n\n\t\t/* Wrap guide */\n\t\twrapGuide = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".wrapGuide\"));\n\t\twrapGuide.setSelected(jEdit.getBooleanProperty(\"view.wrapGuide\"));\n\t\taddComponent(wrapGuide);\n\n\t\t/* Blinking caret */\n\t\tblinkCaret = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".blinkCaret\"));\n\t\tblinkCaret.setSelected(jEdit.getBooleanProperty(\"view.caretBlink\"));\n\t\taddComponent(blinkCaret);\n\n\t\t/* Block caret */\n\t\tblockCaret = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".blockCaret\"));\n\t\tblockCaret.setSelected(jEdit.getBooleanProperty(\"view.blockCaret\"));\n\t\taddComponent(blockCaret);\n\n\t\t/* Electric borders */\n\t\telectricBorders = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".electricBorders\"));\n\t\telectricBorders.setSelected(!\"0\".equals(jEdit.getProperty(\n\t\t\t\"view.electricBorders\")));\n\t\taddComponent(electricBorders);\n\n\t\t/* Smart home/end */\n\t\thomeEnd = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".homeEnd\"));\n\t\thomeEnd.setSelected(jEdit.getBooleanProperty(\"view.homeEnd\"));\n\t\taddComponent(homeEnd);\n\n\t\t/* Middle mouse button click pastes % register */\n\t\tmiddleMousePaste = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".middleMousePaste\"));\n\t\tmiddleMousePaste.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.middleMousePaste\"));\n\t\taddComponent(middleMousePaste);\n\n\t\t/* Anti-aliasing */\n\t\tantiAlias = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".antiAlias\"));\n\t\tantiAlias.setSelected(jEdit.getBooleanProperty(\"view.antiAlias\"));\n\n\t\t/* Fractional font metrics */\n\t\tfracFontMetrics = new JCheckBox(jEdit.getProperty(\"options.textarea\"\n\t\t\t+ \".fracFontMetrics\"));\n\t\tfracFontMetrics.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.fracFontMetrics\"));\n\n\t\tif(System.getProperty(\"java.version\").compareTo(\"1.2\") >= 0)\n\t\t{\n\t\t\taddComponent(antiAlias);\n\t\t\taddComponent(fracFontMetrics);", "ast_nodes": ["FUNC_DECL", "IF", "TRY", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CATCH", "CATCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [2, 41], [4, 42], [7, 43], [7, 44], [8, 45], [9, 46], [10, 47], [11, 48], [13, 49], [14, 50], [16, 51], [17, 52], [19, 53], [20, 54], [22, 55], [23, 56], [25, 57], [26, 58], [28, 59], [29, 60], [31, 61], [32, 62], [34, 63], [35, 64], [37, 65], [38, 66], [39, 67], [40, 68], [2, 69], [4, 70], [6, 71], [1, 72], [1, 73], [44, 74], [44, 75], [45, 76], [46, 77], [47, 78], [48, 79], [49, 80], [50, 81], [51, 82], [52, 83], [53, 84], [54, 85], [55, 86], [56, 87], [57, 88], [58, 89], [59, 90], [60, 91], [61, 92], [62, 93], [63, 94], [64, 95], [65, 96], [66, 97], [67, 98], [68, 99], [41, 100], [69, 101], [42, 102], [70, 103], [71, 104], [75, 105], [77, 106], [79, 107], [81, 108], [83, 109], [84, 110], [85, 111], [87, 112], [89, 113], [91, 114], [93, 115], [95, 116], [97, 117], [100, 118], [101, 119], [103, 120], [106, 121], [106, 122], [107, 123], [107, 124], [108, 125], [108, 126], [109, 127], [109, 128], [110, 129], [111, 130], [111, 131], [112, 132], [112, 133], [113, 134], [113, 135], [114, 136], [114, 137], [115, 138], [115, 139], [116, 140], [116, 141], [117, 142], [117, 143], [119, 144], [120, 145], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 2], [42, 4], [43, 7], [44, 7], [45, 8], [46, 9], [47, 10], [48, 11], [49, 13], [50, 14], [51, 16], [52, 17], [53, 19], [54, 20], [55, 22], [56, 23], [57, 25], [58, 26], [59, 28], [60, 29], [61, 31], [62, 32], [63, 34], [64, 35], [65, 37], [66, 38], [67, 39], [68, 40], [69, 2], [70, 4], [71, 6], [72, 1], [73, 1], [74, 44], [75, 44], [76, 45], [77, 46], [78, 47], [79, 48], [80, 49], [81, 50], [82, 51], [83, 52], [84, 53], [85, 54], [86, 55], [87, 56], [88, 57], [89, 58], [90, 59], [91, 60], [92, 61], [93, 62], [94, 63], [95, 64], [96, 65], [97, 66], [98, 67], [99, 68], [100, 41], [101, 69], [102, 42], [103, 70], [104, 71], [105, 75], [106, 77], [107, 79], [108, 81], [109, 83], [110, 84], [111, 85], [112, 87], [113, 89], [114, 91], [115, 93], [116, 95], [117, 97], [118, 100], [119, 101], [120, 103], [121, 106], [122, 106], [123, 107], [124, 107], [125, 108], [126, 108], [127, 109], [128, 109], [129, 110], [130, 111], [131, 111], [132, 112], [133, 112], [134, 113], [135, 113], [136, 114], [137, 114], [138, 115], [139, 115], [140, 116], [141, 116], [142, 117], [143, 117], [144, 119], [145, 120], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145]]}, {"function_name": "_save", "code": "\tpublic void _save()\n\t{\n\t\tFont _font = font.getFont();\n\t\tjEdit.setProperty(\"view.font\",_font.getFamily());\n\t\tjEdit.setProperty(\"view.fontsize\",String.valueOf(_font.getSize()));\n\t\tjEdit.setProperty(\"view.fontstyle\",String.valueOf(_font.getStyle()));\n\n\t\tjEdit.setBooleanProperty(\"view.lineHighlight\",lineHighlight\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.bracketHighlight\",bracketHighlight\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.eolMarkers\",eolMarkers\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.wrapGuide\",wrapGuide\n\t\t\t.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.caretBlink\",blinkCaret.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.blockCaret\",blockCaret.isSelected());\n\t\tjEdit.setProperty(\"view.electricBorders\",electricBorders\n\t\t\t.isSelected() ? \"3\" : \"0\");\n\t\tjEdit.setBooleanProperty(\"view.homeEnd\",homeEnd.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.middleMousePaste\",\n\t\t\tmiddleMousePaste.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.antiAlias\",antiAlias.isSelected());\n\t\tjEdit.setBooleanProperty(\"view.fracFontMetrics\",fracFontMetrics.isSelected());", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [2, 16], [2, 17], [3, 18], [3, 19], [4, 20], [4, 21], [5, 22], [5, 23], [6, 24], [6, 25], [7, 26], [7, 27], [8, 28], [8, 29], [9, 30], [9, 31], [10, 32], [10, 33], [11, 34], [11, 35], [12, 36], [12, 37], [13, 38], [13, 39], [14, 40], [14, 41], [15, 42], [15, 43], [1, 44], [24, 45], [24, 46], [24, 47], [38, 48], [40, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 2], [17, 2], [18, 3], [19, 3], [20, 4], [21, 4], [22, 5], [23, 5], [24, 6], [25, 6], [26, 7], [27, 7], [28, 8], [29, 8], [30, 9], [31, 9], [32, 10], [33, 10], [34, 11], [35, 11], [36, 12], [37, 12], [38, 13], [39, 13], [40, 14], [41, 14], [42, 15], [43, 15], [44, 1], [45, 24], [46, 24], [47, 24], [48, 38], [49, 40], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "TextAreaOptionPane", "code": "\tpublic TextAreaOptionPane()\n\t{\n\t\tsuper(\"textarea\");", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.6-7582", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/DTMDefaultBaseTraversers.java", "language": "java", "name": "org.apache.xml.dtm.ref.DTMDefaultBaseTraversers", "code": "public abstract class DTMDefaultBaseTraversers extends DTMDefaultBase\n{\n\n  /**\n   * Construct a DTMDefaultBaseTraversers object from a DOM node.\n   *\n   * @param mgr The DTMManager who owns this DTM.\n   * @param domSource the DOM source that this DTM will wrap.\n   * @param source The object that is used to specify the construction source.\n   * @param dtmIdentity The DTM identity ID for this DTM.\n   * @param whiteSpaceFilter The white space filter for this DTM, which may\n   *                         be null.\n   * @param xstringfactory The factory to use for creating XMLStrings.\n   * @param doIndexing true if the caller considers it worth it to use\n   *                   indexing schemes.\n   */\n  public DTMDefaultBaseTraversers(DTMManager mgr, Source source,\n                                  int dtmIdentity,\n                                  DTMWSFilter whiteSpaceFilter,\n                                  XMLStringFactory xstringfactory,\n                                  boolean doIndexing)\n  {\n    super(mgr, source, dtmIdentity, whiteSpaceFilter, xstringfactory,\n          doIndexing);\n  }\n\n  /**\n   * Construct a DTMDefaultBaseTraversers object from a DOM node.\n   *\n   * @param mgr The DTMManager who owns this DTM.\n   * @param domSource the DOM source that this DTM will wrap.\n   * @param source The object that is used to specify the construction source.\n   * @param dtmIdentity The DTM identity ID for this DTM.\n   * @param whiteSpaceFilter The white space filter for this DTM, which may\n   *                         be null.\n   * @param xstringfactory The factory to use for creating XMLStrings.\n   * @param doIndexing true if the caller considers it worth it to use\n   *                   indexing schemes.\n   * @param blocksize The block size of the DTM.\n   * @param usePrevsib true if we want to build the previous sibling node array.\n   * @param newNameTable true if we want to use a new ExpandedNameTable for this DTM.\n   */\n  public DTMDefaultBaseTraversers(DTMManager mgr, Source source,\n                                  int dtmIdentity,\n                                  DTMWSFilter whiteSpaceFilter,\n                                  XMLStringFactory xstringfactory,\n                                  boolean doIndexing,\n                                  int blocksize,\n                                  boolean usePrevsib,\n                                  boolean newNameTable)\n  {\n    super(mgr, source, dtmIdentity, whiteSpaceFilter, xstringfactory,\n          doIndexing, blocksize, usePrevsib, newNameTable);\n  }\n\n  /**\n   * This returns a stateless \"traverser\", that can navigate\n   * over an XPath axis, though perhaps not in document order.\n   *\n   * @param axis One of Axes.ANCESTORORSELF, etc.\n   *\n   * @return A DTMAxisTraverser, or null if the given axis isn't supported.\n   */\n  public DTMAxisTraverser getAxisTraverser(final int axis)\n  {\n\n    DTMAxisTraverser traverser;\n\n    if (true){\n      m_traversers = new DTMAxisTraverser[Axis.names.length];\n      traverser = null;\n    }\n    else\n    {\n\n      if (traverser != null)\n        return traverser;\n    }\n\n    switch(axis){\n    case Axis.ANCESTOR :\n      traverser = new AncestorTraverser();\n      break;\n    case Axis.ANCESTORORSELF :\n      traverser = new AncestorOrSelfTraverser();\n      break;\n    case Axis.ATTRIBUTE :\n      traverser = new AttributeTraverser();\n      break;\n    case Axis.CHILD :\n      traverser = new ChildTraverser();\n      break;\n    case Axis.DESCENDANT :\n      traverser = new DescendantTraverser();\n      break;\n    case Axis.DESCENDANTORSELF :\n      traverser = new DescendantOrSelfTraverser();\n      break;\n    case Axis.FOLLOWING :\n      traverser = new FollowingTraverser();\n      break;\n    case Axis.FOLLOWINGSIBLING :\n      traverser = new FollowingSiblingTraverser();\n      break;\n    case Axis.NAMESPACE :\n      traverser = new NamespaceTraverser();\n      break;\n    case Axis.NAMESPACEDECLS :\n      traverser = new NamespaceDeclsTraverser();\n      break;\n    case Axis.PARENT :\n      traverser = new ParentTraverser();\n      break;\n    case Axis.PRECEDING :\n      traverser = new PrecedingTraverser();\n      break;\n    case Axis.PRECEDINGSIBLING :\n      traverser = new PrecedingSiblingTraverser();\n      break;\n    case Axis.SELF :\n      traverser = new SelfTraverser();\n      break;\n    case Axis.ALL :\n      traverser = new AllFromRootTraverser();\n      break;\n    case Axis.ALLFROMNODE :\n      traverser = new AllFromNodeTraverser();\n      break;\n    case Axis.PRECEDINGANDANCESTOR :\n      traverser = new PrecedingAndAncestorTraverser();\n      break;\n    case Axis.DESCENDANTSFROMROOT :\n      traverser = new DescendantFromRootTraverser();\n      break;\n    case Axis.DESCENDANTSORSELFFROMROOT :\n      traverser = new DescendantOrSelfFromRootTraverser();\n      break;\n    case Axis.ROOT :\n      traverser = new RootTraverser();\n      break;\n    case Axis.FILTEREDLIST :\n    default :\n    }\n\n    if (null == traverser)\n      throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_AXIS_TRAVERSER_NOT_SUPPORTED, new Object[]{Axis.names[axis]}));\n\n    m_traversers[axis] = traverser;\n\n    return traverser;\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class AncestorTraverser extends DTMAxisTraverser\n  {\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node if this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n\t\t\treturn getParent(current);\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n      current = makeNodeIdentity(current);\n\n      while (DTM.NULL != (current = m_parent.elementAt(current)))\n      {\n        if (m_exptype.elementAt(current) == expandedTypeID)\n          return makeNodeHandle(current);\n      }\n\n      return NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class AncestorOrSelfTraverser extends AncestorTraverser\n  {\n\n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  To see if\n     * the self node should be processed, use this function.\n     *\n     * @param context The context node of this traversal.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context)\n    {\n      return context;\n    }\n\n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  To see if\n     * the self node should be processed, use this function.  If the context\n     * node does not match the expanded type ID, this function will return\n     * false.\n     *\n     * @param context The context node of this traversal.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context, int expandedTypeID)\n    {\n\t\t\treturn (getExpandedTypeID(context) == expandedTypeID)\n             ? context : next(context, context, expandedTypeID);\n    }\n  }\n\n  /**\n   * Implements traversal of the Attribute access\n   */\n  private class AttributeTraverser extends DTMAxisTraverser\n  {\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n      return (context == current)\n             ? getFirstAttribute(context) : getNextAttribute(current);\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n\n      current = (context == current)\n                ? getFirstAttribute(context) : getNextAttribute(current);\n\n      do\n      {\n        if (getExpandedTypeID(current) == expandedTypeID)\n          return current;\n      }\n      while (DTM.NULL != (current = getNextAttribute(current)));\n\n      return NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class ChildTraverser extends DTMAxisTraverser\n  {\n    \n    /**\n     * Get the next indexed node that matches the expanded type ID.  Before \n     * calling this function, one should first call \n     * {@link #isIndexed(int) isIndexed} to make sure that the index can \n     * contain nodes that match the given expanded type ID.\n     *\n     * @param axisRoot The root identity of the axis.\n     * @param nextPotential The node found must match or occur after this node.\n     * @param expandedTypeID The expanded type ID for the request.\n     *\n     * @return The node ID or NULL if not found.\n     */\n    protected int getNextIndexed(int axisRoot, int nextPotential,\n                                 int expandedTypeID)\n    {\n\n      int nsIndex = m_expandedNameTable.getNamespaceID(expandedTypeID);\n      int lnIndex = m_expandedNameTable.getLocalNameID(expandedTypeID);\n\n      for (; ; ) \n      {\n        int nextID = findElementFromIndex(nsIndex, lnIndex, nextPotential);\n\n        if (NOTPROCESSED != nextID)\n        {\n          int parentID = m_parent.elementAt(nextID);\n          \n          if(parentID == axisRoot)\n            return nextID;\n          \n          if(parentID < axisRoot)\n              return NULL;\n          \n          do\n          {\n            parentID = m_parent.elementAt(parentID);\n            if(parentID < axisRoot)\n              return NULL;\n          }\n            while(parentID > axisRoot);\n          \n          nextPotential = nextID+1;\n          continue;\n        }\n\n        nextNode();\n        \n        if(!(m_nextsib.elementAt(axisRoot) == NOTPROCESSED))\n          break;\n      }\n\n      return DTM.NULL;\n    }\n        \n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  So to traverse \n     * an axis, the first function must be used to get the first node.\n     *\n     * <p>This method needs to be overloaded only by those axis that process\n     * the self node. <\\p>\n     *\n     * @param context The context node of this traversal. This is the point\n     * that the traversal starts from.\n     * @return the first node in the traversal.\n     */\n    public int first(int context)\n    {\n      return getFirstChild(context);\n    }\n  \n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  So to traverse \n     * an axis, the first function must be used to get the first node.\n     *\n     * <p>This method needs to be overloaded only by those axis that process\n     * the self node. <\\p>\n     *\n     * @param context The context node of this traversal. This is the point\n     * of origin for the traversal -- its \"root node\" or starting point.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context, int expandedTypeID)\n    {\n      if(true)\n      {\n        int identity = makeNodeIdentity(context);\n        \n        int firstMatch = getNextIndexed(identity, _firstch(identity),\n                                 expandedTypeID);\n       \n        return makeNodeHandle(firstMatch);\n      }\n      else\n      {\n        for (int current = _firstch(makeNodeIdentity(context)); \n             DTM.NULL != current; \n             current = _nextsib(current)) \n        {\n          if (m_exptype.elementAt(current) == expandedTypeID)\n              return makeNodeHandle(current);\n        }\n        return NULL;\n      }\n    }\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n      return getNextSibling(current);\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n      for (current = _nextsib(makeNodeIdentity(current)); \n           DTM.NULL != current; \n           current = _nextsib(current)) \n      {\n        if (m_exptype.elementAt(current) == expandedTypeID)\n            return makeNodeHandle(current);\n      }\n      \n      return NULL;\n    }\n  }\n\n  /**\n   * Super class for derived classes that want a convenient way to access \n   * the indexing mechanism.\n   */\n  private abstract class IndexedDTMAxisTraverser extends DTMAxisTraverser\n  {\n\n    /**\n     * Tell if the indexing is on and the given expanded type ID matches \n     * what is in the indexes.  Derived classes should call this before \n     * calling {@link #getNextIndexed(int, int, int) getNextIndexed} method.\n     *\n     * @param expandedTypeID The expanded type ID being requested.\n     *\n     * @return true if it is OK to call the \n     *         {@link #getNextIndexed(int, int, int) getNextIndexed} method.\n     */\n    protected final boolean isIndexed(int expandedTypeID)\n    {\n      return (m_indexing\n              && ExpandedNameTable.ELEMENT\n                 == m_expandedNameTable.getType(expandedTypeID)); \n    }\n\n    /**\n     * Tell if a node is outside the axis being traversed.  This method must be \n     * implemented by derived classes, and must be robust enough to handle any \n     * node that occurs after the axis root.\n     *\n     * @param axisRoot The root identity of the axis.\n     * @param identity The node in question.\n     *\n     * @return true if the given node falls outside the axis being traversed.\n     */\n    protected abstract boolean isAfterAxis(int axisRoot, int identity);\n\n    /**\n     * Tell if the axis has been fully processed to tell if a the wait for \n     * an arriving node should terminate.  This method must be implemented \n     * be a derived class.\n     *\n     * @param axisRoot The root identity of the axis.\n     *\n     * @return true if the axis has been fully processed.\n     */\n    protected abstract boolean axisHasBeenProcessed(int axisRoot);\n\n    /**\n     * Get the next indexed node that matches the expanded type ID.  Before \n     * calling this function, one should first call \n     * {@link #isIndexed(int) isIndexed} to make sure that the index can \n     * contain nodes that match the given expanded type ID.\n     *\n     * @param axisRoot The root identity of the axis.\n     * @param nextPotential The node found must match or occur after this node.\n     * @param expandedTypeID The expanded type ID for the request.\n     *\n     * @return The node ID or NULL if not found.\n     */\n    protected int getNextIndexed(int axisRoot, int nextPotential,\n                                 int expandedTypeID)\n    {\n\n      int nsIndex = m_expandedNameTable.getNamespaceID(expandedTypeID);\n      int lnIndex = m_expandedNameTable.getLocalNameID(expandedTypeID);\n\n      while(true)\n      {\n        int next = findElementFromIndex(nsIndex, lnIndex, nextPotential);\n\n        if (NOTPROCESSED != next)\n        {\n          if (isAfterAxis(axisRoot, next))\n            return NULL;\n\n          return next;\n        }\n        else if(axisHasBeenProcessed(axisRoot))\n          break;\n\n        nextNode();\n      }\n\n      return DTM.NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class DescendantTraverser extends IndexedDTMAxisTraverser\n  {\n    /**\n     * Get the first potential identity that can be returned.  This should \n     * be overridded by classes that need to return the self node.\n     *\n     * @param identity The node identity of the root context of the traversal.\n     *\n     * @return The first potential node that can be in the traversal.\n     */\n    protected int getFirstPotential(int identity)\n    {\n      return identity + 1;\n    }\n    \n    /**\n     * Tell if the axis has been fully processed to tell if a the wait for \n     * an arriving node should terminate.\n     *\n     * @param axisRoot The root identity of the axis.\n     *\n     * @return true if the axis has been fully processed.\n     */\n    protected boolean axisHasBeenProcessed(int axisRoot)\n    {\n      return !(m_nextsib.elementAt(axisRoot) == NOTPROCESSED);\n    }\n    \n    /**\n     * Get the subtree root identity from the handle that was passed in by \n     * the caller.  Derived classes may override this to change the root \n     * context of the traversal.\n     * \n     * @param handle handle to the root context.\n     * @return identity of the root of the subtree.\n     */\n    protected int getSubtreeRoot(int handle)\n    {\n      return makeNodeIdentity(handle);\n    }\n\n    /**\n     * Tell if this node identity is a descendant.  Assumes that\n     * the node info for the element has already been obtained.\n     *\n     * %REVIEW% This is really parentFollowsRootInDocumentOrder ...\n     * which fails if the parent starts after the root ends.\n     * May be sufficient for this class's logic, but misleadingly named!\n     *\n     * @param subtreeRootIdentity The root context of the subtree in question.\n     * @param identity The index number of the node in question.\n     * @return true if the index is a descendant of _startNode.\n     */\n    protected boolean isDescendant(int subtreeRootIdentity, int identity)\n    {\n      return _parent(identity) >= subtreeRootIdentity;\n    }\n\n    /**\n     * Tell if a node is outside the axis being traversed.  This method must be \n     * implemented by derived classes, and must be robust enough to handle any \n     * node that occurs after the axis root.\n     *\n     * @param axisRoot The root identity of the axis.\n     * @param identity The node in question.\n     *\n     * @return true if the given node falls outside the axis being traversed.\n     */\n    protected boolean isAfterAxis(int axisRoot, int identity)\n    {   \n      do\n      {\n        if(identity == axisRoot)\n          return false;\n        identity = m_parent.elementAt(identity);\n      }\n        while(identity >= axisRoot);\n        \n      return true;\n    }\n\n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  So to traverse\n     * an axis, the first function must be used to get the first node.\n     *\n     * <p>This method needs to be overloaded only by those axis that process\n     * the self node. <\\p>\n     *\n     * @param context The context node of this traversal. This is the point\n     * of origin for the traversal -- its \"root node\" or starting point.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context, int expandedTypeID)\n    {\n\n      if (isIndexed(expandedTypeID))\n      {\n        int identity = getSubtreeRoot(context);\n        int firstPotential = getFirstPotential(identity);\n\n        return makeNodeHandle(getNextIndexed(identity, firstPotential, expandedTypeID));\n      }\n\n      return next(context, context, expandedTypeID);\n    }\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n\n      int subtreeRootIdent = getSubtreeRoot(context);\n\n      for (current = makeNodeIdentity(current) + 1; ; current++)\n      {\n\n        if (!isDescendant(subtreeRootIdent, current))\n          return NULL;\n\n        if (ATTRIBUTE_NODE == type || NAMESPACE_NODE == type)\n          continue;\n\n      }\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n\n      int subtreeRootIdent = getSubtreeRoot(context);\n\n      current = makeNodeIdentity(current) + 1;\n\n      if (isIndexed(expandedTypeID))\n      {\n        return makeNodeHandle(getNextIndexed(subtreeRootIdent, current, expandedTypeID));\n      }\n\n      for (; ; current++)\n      {\n\n        if (!isDescendant(subtreeRootIdent, current))\n          return NULL;\n\n        if (exptype != expandedTypeID)\n          continue;\n\n      }\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class DescendantOrSelfTraverser extends DescendantTraverser\n  {\n\n    /**\n     * Get the first potential identity that can be returned, which is the \n     * axis context, in this case.\n     *\n     * @param identity The node identity of the root context of the traversal.\n     *\n     * @return The axis context.\n     */\n    protected int getFirstPotential(int identity)\n    {\n      return identity;\n    }\n\n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  To see if\n     * the self node should be processed, use this function.\n     *\n     * @param context The context node of this traversal.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context)\n    {\n      return context;\n    }\n  }\n\n  /**\n   * Implements traversal of the entire subtree, including the root node.\n   */\n  private class AllFromNodeTraverser extends DescendantOrSelfTraverser\n  {\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n\n      int subtreeRootIdent = makeNodeIdentity(context);\n\n      for (current = makeNodeIdentity(current) + 1; ; current++)\n      {\n\n        if (!isDescendant(subtreeRootIdent, current))\n          return NULL;\n\n      }\n    }\n  }\n\n  /**\n   * Implements traversal of the following access, in document order.\n   */\n  private class FollowingTraverser extends DescendantTraverser\n  {\n\n    /**\n     * Get the first of the following.\n     *\n     * @param context The context node of this traversal. This is the point\n     * that the traversal starts from.\n     * @return the first node in the traversal.\n     */\n    public int first(int context)\n    {\n\t\t\tcontext=makeNodeIdentity(context);\n\n      int first;\n      int type = _type(context);\n\n      if ((DTM.ATTRIBUTE_NODE == type) || (DTM.NAMESPACE_NODE == type))\n      {\n        context = _parent(context);\n        first = _firstch(context);\n\n        if (NULL != first)\n          return makeNodeHandle(first);\n      }\n\n      do\n      {\n        first = _nextsib(context);\n\n        if (NULL == first)\n          context = _parent(context);\n      }\n      while (NULL == first && NULL != context);\n\n      return makeNodeHandle(first);\n    }\n\n    /**\n     * Get the first of the following.\n     *\n     * @param context The context node of this traversal. This is the point\n     * of origin for the traversal -- its \"root node\" or starting point.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context, int expandedTypeID)\n    {\n      int first;\n      int type = getNodeType(context);\n\n      if ((DTM.ATTRIBUTE_NODE == type) || (DTM.NAMESPACE_NODE == type))\n      {\n        context = getParent(context);\n        first = getFirstChild(context);\n\n        if (NULL != first)\n        {\n          if (getExpandedTypeID(first) == expandedTypeID)\n            return first;\n          else\n            return next(context, first, expandedTypeID);\n        }\n      }\n\n      do\n      {\n        first = getNextSibling(context);\n\n        if (NULL == first)\n          context = getParent(context);\n        else\n        {\n          if (getExpandedTypeID(first) == expandedTypeID)\n            return first;\n          else\n            return next(context, first, expandedTypeID);\n        }\n      }\n      while (NULL == first && NULL != context);\n\n      return first;\n    }\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n\t\t\tcurrent=makeNodeIdentity(current);\n\n      while (true)\n      {\n\n\n        if (NULL == type)\n          return NULL;\n\n        if (ATTRIBUTE_NODE == type || NAMESPACE_NODE == type)\n          continue;\n\n      }\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n\t\t\tcurrent=makeNodeIdentity(current);\n\n      while (true)\n      {\n        current++;\n\n\n        if (NULL == etype)\n          return NULL;\n\n        if (etype != expandedTypeID)\n          continue;\n\n      }\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class FollowingSiblingTraverser extends DTMAxisTraverser\n  {\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n      return getNextSibling(current);\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n\n      while (DTM.NULL != (current = getNextSibling(current)))\n      {\n        if (getExpandedTypeID(current) == expandedTypeID)\n          return current;\n      }\n\n      return NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class NamespaceDeclsTraverser extends DTMAxisTraverser\n  {\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n\n      return (context == current)\n             ? getFirstNamespaceNode(context, false)\n             : getNextNamespaceNode(context, current, false);\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n\n      current = (context == current)\n                ? getFirstNamespaceNode(context, false)\n                : getNextNamespaceNode(context, current, false);\n\n      do\n      {\n        if (getExpandedTypeID(current) == expandedTypeID)\n          return current;\n      }\n      while (DTM.NULL\n             != (current = getNextNamespaceNode(context, current, false)));\n\n      return NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class NamespaceTraverser extends DTMAxisTraverser\n  {\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n\n      return (context == current)\n             ? getFirstNamespaceNode(context, true)\n             : getNextNamespaceNode(context, current, true);\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n\n      current = (context == current)\n                ? getFirstNamespaceNode(context, true)\n                : getNextNamespaceNode(context, current, true);\n\n      do\n      {\n        if (getExpandedTypeID(current) == expandedTypeID)\n          return current;\n      }\n      while (DTM.NULL\n             != (current = getNextNamespaceNode(context, current, true)));\n\n      return NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class ParentTraverser extends DTMAxisTraverser\n  {\n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  So to traverse \n     * an axis, the first function must be used to get the first node.\n     *\n     * <p>This method needs to be overloaded only by those axis that process\n     * the self node. <\\p>\n     *\n     * @param context The context node of this traversal. This is the point\n     * that the traversal starts from.\n     * @return the first node in the traversal.\n     */\n    public int first(int context)\n    {\n      return getParent(context);\n    }\n  \n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  So to traverse \n     * an axis, the first function must be used to get the first node.\n     *\n     * <p>This method needs to be overloaded only by those axis that process\n     * the self node. <\\p>\n     *\n     * @param context The context node of this traversal. This is the point\n     * of origin for the traversal -- its \"root node\" or starting point.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int current, int expandedTypeID)\n    {\n      current = makeNodeIdentity(current);\n\n      while (NULL != (current = m_parent.elementAt(current)))\n      {\n        if (m_exptype.elementAt(current) == expandedTypeID)\n          return makeNodeHandle(current);\n      }\n\n      return NULL;\n    }\n\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n\n      return NULL;\n    }\n    \n\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n\n      return NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class PrecedingTraverser extends DTMAxisTraverser\n  {\n\n    /**\n     * Tell if the current identity is an ancestor of the context identity.\n     * This is an expensive operation, made worse by the stateless traversal.\n     * But the preceding axis is used fairly infrequently.\n     *\n     * @param contextIdent The context node of the axis traversal.\n     * @param currentIdent The node in question.\n     * @return true if the currentIdent node is an ancestor of contextIdent.\n     */\n    protected boolean isAncestor(int contextIdent, int currentIdent)\n    {\n      for (contextIdent = m_parent.elementAt(contextIdent); DTM.NULL != contextIdent;\n              contextIdent = m_parent.elementAt(contextIdent))\n      {\n        if (contextIdent == currentIdent)\n          return true;\n      }\n\n      return false;\n    }\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n      int subtreeRootIdent = makeNodeIdentity(context);\n\n      for (current = makeNodeIdentity(current) - 1; current >= 0; current--)\n      {\n        short type = _type(current);\n\n        if (ATTRIBUTE_NODE == type || NAMESPACE_NODE == type\n                || isAncestor(subtreeRootIdent, current))\n          continue;\n\n      }\n\n      return NULL;\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n      int subtreeRootIdent = makeNodeIdentity(context);\n\n      for (current = makeNodeIdentity(current) - 1; current >= 0; current--)\n      {\n        int exptype = m_exptype.elementAt(current);\n\n        if (exptype != expandedTypeID\n                || isAncestor(subtreeRootIdent, current))\n          continue;\n\n      }\n\n      return NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor and the Preceding axis,\n   * in reverse document order.\n   */\n  private class PrecedingAndAncestorTraverser extends DTMAxisTraverser\n  {\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n      int subtreeRootIdent = makeNodeIdentity(context );\n\n      for (current = makeNodeIdentity(current) - 1; current >= 0; current--)\n      {\n        short type = _type(current);\n\n        if (ATTRIBUTE_NODE == type || NAMESPACE_NODE == type)\n          continue;\n\n      }\n\n      return NULL;\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n      int subtreeRootIdent = makeNodeIdentity(context);\n\n      for (current = makeNodeIdentity(current) - 1; current >= 0; current--)\n      {\n        int exptype = m_exptype.elementAt(current);\n\n        if (exptype != expandedTypeID)\n          continue;\n\n      }\n\n      return NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class PrecedingSiblingTraverser extends DTMAxisTraverser\n  {\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n      return getPreviousSibling(current);\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n\n      while (DTM.NULL != (current = getPreviousSibling(current)))\n      {\n        if (getExpandedTypeID(current) == expandedTypeID)\n          return current;\n      }\n\n      return NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Self axis.\n   */\n  private class SelfTraverser extends DTMAxisTraverser\n  {\n\n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  To see if\n     * the self node should be processed, use this function.\n     *\n     * @param context The context node of this traversal.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context)\n    {\n      return context;\n    }\n\n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  To see if\n     * the self node should be processed, use this function.  If the context\n     * node does not match the expanded type ID, this function will return\n     * false.\n     *\n     * @param context The context node of this traversal.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context, int expandedTypeID)\n    {\n      return (getExpandedTypeID(context) == expandedTypeID) ? context : NULL;\n    }\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return Always return NULL for this axis.\n     */\n    public int next(int context, int current)\n    {\n      return NULL;\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n      return NULL;\n    }\n  }\n\n  /**\n   * Implements traversal of the Ancestor access, in reverse document order.\n   */\n  private class AllFromRootTraverser extends AllFromNodeTraverser\n  {\n\n    /**\n     * Return the root.\n     *\n     * @param context The context node of this traversal.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context)\n    {\n      return getDocumentRoot(context);\n    }\n\n    /**\n     * Return the root if it matches the expanded type ID.\n     *\n     * @param context The context node of this traversal.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context, int expandedTypeID)\n    {\n      return (getExpandedTypeID(getDocumentRoot(context)) == expandedTypeID)\n             ? context : next(context, context, expandedTypeID);\n    }\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current)\n    {\n      int subtreeRootIdent = makeNodeIdentity(context);\n\n      for (current = makeNodeIdentity(current) + 1; ; current++)\n      {\n        if (type == NULL)\n          return NULL;\n\n      }\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n      int subtreeRootIdent = makeNodeIdentity(context);\n\n      for (current = makeNodeIdentity(current) + 1; ; current++)\n      {\n\n        if (exptype == NULL)\n          return NULL;\n\n        if (exptype != expandedTypeID)\n          continue;\n\n      }\n    }\n  }\n\n  /**\n   * Implements traversal of the Self axis.\n   */\n  private class RootTraverser extends AllFromRootTraverser\n  {\n    /**\n     * Return the root if it matches the expanded type ID,\n     * else return null (nothing found)\n     *\n     * @param context The context node of this traversal.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context, int expandedTypeID)\n    {\n      int root=getDocumentRoot(context);\n      return (getExpandedTypeID(root) == expandedTypeID)\n\t? root : NULL;\n    }\n\n    /**\n     * Traverse to the next node after the current node.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     *\n     * @return Always return NULL for this axis.\n     */\n    public int next(int context, int current)\n    {\n      return NULL;\n    }\n\n    /**\n     * Traverse to the next node after the current node that is matched\n     * by the expanded type ID.\n     *\n     * @param context The context node of this iteration.\n     * @param current The current node of the iteration.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the next node in the iteration, or DTM.NULL.\n     */\n    public int next(int context, int current, int expandedTypeID)\n    {\n      return NULL;\n    }\n  }\n\n  /**\n   * A non-xpath axis, returns all nodes that aren't namespaces or attributes,\n   * from and including the root.\n   */\n  private class DescendantOrSelfFromRootTraverser extends DescendantTraverser\n  {\n\n    /**\n     * Get the first potential identity that can be returned, which is the axis \n     * root context in this case.\n     *\n     * @param identity The node identity of the root context of the traversal.\n     *\n     * @return The identity argument.\n     */\n    protected int getFirstPotential(int identity)\n    {\n      return identity;\n    }\n\n    /**\n     * Get the first potential identity that can be returned.\n     * @param handle handle to the root context.\n     * @return identity of the root of the subtree.\n     */\n    protected int getSubtreeRoot(int handle)\n    {\n      return makeNodeIdentity(getDocument());\n    }\n\n    /**\n     * Return the root.\n     *\n     * @param context The context node of this traversal.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context)\n    {\n      return getDocumentRoot(context);\n    }\n    \n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  So to traverse\n     * an axis, the first function must be used to get the first node.\n     *\n     * <p>This method needs to be overloaded only by those axis that process\n     * the self node. <\\p>\n     *\n     * @param context The context node of this traversal. This is the point\n     * of origin for the traversal -- its \"root node\" or starting point.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context, int expandedTypeID)\n    {\n      if (isIndexed(expandedTypeID))\n      {\n        int identity = 0;\n        int firstPotential = getFirstPotential(identity);\n\n        return makeNodeHandle(getNextIndexed(identity, firstPotential, expandedTypeID));\n      }\n\n      int root = first(context); \n      return next(root, root, expandedTypeID);\n    }\n  }\n  \n  /**\n   * A non-xpath axis, returns all nodes that aren't namespaces or attributes,\n   * from but not including the root.\n   */\n  private class DescendantFromRootTraverser extends DescendantTraverser\n  {\n\n    /**\n     * Get the first potential identity that can be returned, which is the axis \n     * root context in this case.\n     *\n     * @param identity The node identity of the root context of the traversal.\n     *\n     * @return The identity argument.\n     */\n    protected int getFirstPotential(int identity)\n    {\n      return _firstch(0);\n    }\n\n    /**\n     * Get the first potential identity that can be returned.\n     * @param handle handle to the root context.\n     * @return identity of the root of the subtree.\n     */\n    protected int getSubtreeRoot(int handle)\n    {\n      return 0;\n    }\n\n    /**\n     * Return the root.\n     *\n     * @param context The context node of this traversal.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context)\n    {\n      return makeNodeHandle(_firstch(0));\n    }\n    \n    /**\n     * By the nature of the stateless traversal, the context node can not be\n     * returned or the iteration will go into an infinate loop.  So to traverse\n     * an axis, the first function must be used to get the first node.\n     *\n     * <p>This method needs to be overloaded only by those axis that process\n     * the self node. <\\p>\n     *\n     * @param context The context node of this traversal. This is the point\n     * of origin for the traversal -- its \"root node\" or starting point.\n     * @param expandedTypeID The expanded type ID that must match.\n     *\n     * @return the first node in the traversal.\n     */\n    public int first(int context, int expandedTypeID)\n    {\n      if (isIndexed(expandedTypeID))\n      {\n        int identity = 0; \n        int firstPotential = getFirstPotential(identity);\n\n        return makeNodeHandle(getNextIndexed(identity, firstPotential, expandedTypeID));\n      }\n\n      int root = getDocumentRoot(context); \n      return next(root, root, expandedTypeID);", "functions": [{"function_name": "getAxisTraverser", "code": "  public DTMAxisTraverser getAxisTraverser(final int axis)\n  {\n\n    DTMAxisTraverser traverser;\n\n    if (true){\n      m_traversers = new DTMAxisTraverser[Axis.names.length];\n      traverser = null;\n    }\n    else\n    {\n\n      if (traverser != null)\n        return traverser;\n    }\n\n    switch(axis){\n    case Axis.ANCESTOR :\n      traverser = new AncestorTraverser();\n      break;\n    case Axis.ANCESTORORSELF :\n      traverser = new AncestorOrSelfTraverser();\n      break;\n    case Axis.ATTRIBUTE :\n      traverser = new AttributeTraverser();\n      break;\n    case Axis.CHILD :\n      traverser = new ChildTraverser();\n      break;\n    case Axis.DESCENDANT :\n      traverser = new DescendantTraverser();\n      break;\n    case Axis.DESCENDANTORSELF :\n      traverser = new DescendantOrSelfTraverser();\n      break;\n    case Axis.FOLLOWING :\n      traverser = new FollowingTraverser();\n      break;\n    case Axis.FOLLOWINGSIBLING :\n      traverser = new FollowingSiblingTraverser();\n      break;\n    case Axis.NAMESPACE :\n      traverser = new NamespaceTraverser();\n      break;\n    case Axis.NAMESPACEDECLS :\n      traverser = new NamespaceDeclsTraverser();\n      break;\n    case Axis.PARENT :\n      traverser = new ParentTraverser();\n      break;\n    case Axis.PRECEDING :\n      traverser = new PrecedingTraverser();\n      break;\n    case Axis.PRECEDINGSIBLING :\n      traverser = new PrecedingSiblingTraverser();\n      break;\n    case Axis.SELF :\n      traverser = new SelfTraverser();\n      break;\n    case Axis.ALL :\n      traverser = new AllFromRootTraverser();\n      break;\n    case Axis.ALLFROMNODE :\n      traverser = new AllFromNodeTraverser();\n      break;\n    case Axis.PRECEDINGANDANCESTOR :\n      traverser = new PrecedingAndAncestorTraverser();\n      break;\n    case Axis.DESCENDANTSFROMROOT :\n      traverser = new DescendantFromRootTraverser();\n      break;\n    case Axis.DESCENDANTSORSELFFROMROOT :\n      traverser = new DescendantOrSelfFromRootTraverser();\n      break;\n    case Axis.ROOT :\n      traverser = new RootTraverser();\n      break;\n    case Axis.FILTEREDLIST :\n    default :\n    }\n\n    if (null == traverser)\n      throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_AXIS_TRAVERSER_NOT_SUPPORTED, new Object[]{Axis.names[axis]}));\n\n    m_traversers[axis] = traverser;\n\n    return traverser;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "SWITCH", "IF", "VAR_DECL", "PARAM", "ASSIGN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "RETURN", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [4, 10], [8, 11], [9, 12], [3, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [3, 31], [3, 32], [4, 33], [11, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [3, 40], [3, 41], [3, 42], [3, 43], [3, 44], [3, 45], [3, 46], [3, 47], [3, 48], [3, 49], [3, 50], [3, 51], [3, 52], [3, 53], [3, 54], [33, 55], [33, 56], [4, 57], [4, 58], [35, 59], [36, 60], [37, 61], [38, 62], [39, 63], [40, 64], [41, 65], [42, 66], [43, 67], [44, 68], [45, 69], [46, 70], [47, 71], [48, 72], [49, 73], [50, 74], [51, 75], [52, 76], [53, 77], [54, 78], [56, 79], [57, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 4], [11, 8], [12, 9], [13, 3], [14, 3], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 3], [25, 3], [26, 3], [27, 3], [28, 3], [29, 3], [30, 3], [31, 3], [32, 3], [33, 4], [34, 11], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 3], [41, 3], [42, 3], [43, 3], [44, 3], [45, 3], [46, 3], [47, 3], [48, 3], [49, 3], [50, 3], [51, 3], [52, 3], [53, 3], [54, 3], [55, 33], [56, 33], [57, 4], [58, 4], [59, 35], [60, 36], [61, 37], [62, 38], [63, 39], [64, 40], [65, 41], [66, 42], [67, 43], [68, 44], [69, 45], [70, 46], [71, 47], [72, 48], [73, 49], [74, 50], [75, 51], [76, 52], [77, 53], [78, 54], [79, 56], [80, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "DTMDefaultBaseTraversers", "code": "  public DTMDefaultBaseTraversers(DTMManager mgr, Source source,\n                                  int dtmIdentity,\n                                  DTMWSFilter whiteSpaceFilter,\n                                  XMLStringFactory xstringfactory,\n                                  boolean doIndexing)\n  {\n    super(mgr, source, dtmIdentity, whiteSpaceFilter, xstringfactory,\n          doIndexing);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "DTMDefaultBaseTraversers", "code": "  public DTMDefaultBaseTraversers(DTMManager mgr, Source source,\n                                  int dtmIdentity,\n                                  DTMWSFilter whiteSpaceFilter,\n                                  XMLStringFactory xstringfactory,\n                                  boolean doIndexing,\n                                  int blocksize,\n                                  boolean usePrevsib,\n                                  boolean newNameTable)\n  {\n    super(mgr, source, dtmIdentity, whiteSpaceFilter, xstringfactory,\n          doIndexing, blocksize, usePrevsib, newNameTable);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}], "label": 1}
{"sample_id": "poi-1.5-5341", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hssf/record/ChartFormatRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.ChartFormatRecord", "code": "public class ChartFormatRecord\n    extends Record\n{\n    public static final short sid = 0x1014;\n\n    private int               field3_width;\n    private int               field4_height;\n    private short             field5_grbit;\n    private BitField          varyDisplayPattern = new BitField(0x01);\n\n    public ChartFormatRecord()\n    {\n    }\n\n    /**\n     * Constructs a ChartFormatRecord record and sets its fields appropriately.\n     *\n     * @param id    id must equal the sid or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public ChartFormatRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    }\n\n    /**\n     * Constructs a ChartFormatRecord record and sets its fields appropriately.\n     *\n     * @param id    id must equal the sid or an exception will be throw upon validation\n     * @param size  the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public ChartFormatRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    }\n\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A CHARTFORMAT RECORD\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field1_x_position = LittleEndian.getInt(data, 0 + offset);\n        field2_y_position = LittleEndian.getInt(data, 4 + offset);\n        field3_width      = LittleEndian.getInt(data, 8 + offset);\n        field4_height     = LittleEndian.getInt(data, 12 + offset);\n        field5_grbit      = LittleEndian.getShort(data, 16 + offset);\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[CHARTFORMAT]\\n\");\n        buffer.append(\"    .xPosition       = \").append(getXPosition())\n            .append(\"\\n\");\n        buffer.append(\"    .yPosition       = \").append(getYPosition())\n            .append(\"\\n\");\n        buffer.append(\"    .width           = \").append(getWidth())\n            .append(\"\\n\");\n        buffer.append(\"    .height          = \").append(getHeight())\n            .append(\"\\n\");\n        buffer.append(\"    .grBit           = \")\n            .append(Integer.toHexString(field5_grbit)).append(\"\\n\");\n        buffer.append(\"[/CHARTFORMAT]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putInt(data, 4 + offset, getXPosition());\n        LittleEndian.putInt(data, 8 + offset, getYPosition());\n        LittleEndian.putInt(data, 12 + offset, getWidth());\n        LittleEndian.putInt(data, 16 + offset, getHeight());\n        LittleEndian.putShort(data, 20 + offset, field5_grbit);\n        return getRecordSize();\n    }\n\n    public int getRecordSize()\n    {\n        return 22;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public int getXPosition()\n    {\n        return field1_x_position;\n    }\n\n    public void setXPosition(int xPosition)\n    {\n        this.field1_x_position = xPosition;\n    }\n\n    public int getYPosition()\n    {\n        return field2_y_position;\n    }\n\n    public void setYPosition(int yPosition)\n    {\n        this.field2_y_position = yPosition;\n    }\n\n    public int getWidth()\n    {\n        return field3_width;\n    }\n\n    public void setWidth(int width)\n    {\n        this.field3_width = width;\n    }\n\n    public int getHeight()\n    {\n        return field4_height;\n    }\n\n    public void setHeight(int height)\n    {\n        this.field4_height = height;\n    }\n\n    public boolean getVaryDisplayPattern()\n    {\n        return varyDisplayPattern.isSet(field5_grbit);\n    }\n\n    public void setVaryDisplayPattern(boolean value)\n    {\n        field5_grbit = varyDisplayPattern.setShortBoolean(field5_grbit,\n                value);", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"NOT A CHARTFORMAT RECORD\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n        field1_x_position = LittleEndian.getInt(data, 0 + offset);\n        field2_y_position = LittleEndian.getInt(data, 4 + offset);\n        field3_width      = LittleEndian.getInt(data, 8 + offset);\n        field4_height     = LittleEndian.getInt(data, 12 + offset);\n        field5_grbit      = LittleEndian.getShort(data, 16 + offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [16, 21], [17, 22], [18, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [21, 16], [22, 17], [23, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[CHARTFORMAT]\\n\");\n        buffer.append(\"    .xPosition       = \").append(getXPosition())\n            .append(\"\\n\");\n        buffer.append(\"    .yPosition       = \").append(getYPosition())\n            .append(\"\\n\");\n        buffer.append(\"    .width           = \").append(getWidth())\n            .append(\"\\n\");\n        buffer.append(\"    .height          = \").append(getHeight())\n            .append(\"\\n\");\n        buffer.append(\"    .grBit           = \")\n            .append(Integer.toHexString(field5_grbit)).append(\"\\n\");\n        buffer.append(\"[/CHARTFORMAT]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [4, 11], [5, 12], [5, 13], [5, 14], [6, 15], [6, 16], [6, 17], [7, 18], [7, 19], [7, 20], [8, 21], [8, 22], [8, 23], [9, 24], [9, 25], [9, 26], [10, 27], [2, 28], [13, 29], [14, 30], [16, 31], [17, 32], [19, 33], [20, 34], [22, 35], [23, 36], [25, 37], [26, 38], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 4], [12, 5], [13, 5], [14, 5], [15, 6], [16, 6], [17, 6], [18, 7], [19, 7], [20, 7], [21, 8], [22, 8], [23, 8], [24, 9], [25, 9], [26, 9], [27, 10], [28, 2], [29, 13], [30, 14], [31, 16], [32, 17], [33, 19], [34, 20], [35, 22], [36, 23], [37, 25], [38, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte [] data)\n    {\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset);\n        LittleEndian.putInt(data, 4 + offset, getXPosition());\n        LittleEndian.putInt(data, 8 + offset, getYPosition());\n        LittleEndian.putInt(data, 12 + offset, getWidth());\n        LittleEndian.putInt(data, 16 + offset, getHeight());\n        LittleEndian.putShort(data, 20 + offset, field5_grbit);\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [5, 12], [6, 13], [6, 14], [7, 15], [7, 16], [8, 17], [8, 18], [9, 19], [9, 20], [10, 21], [11, 22], [12, 23], [14, 24], [16, 25], [18, 26], [20, 27], [21, 28], [22, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 5], [13, 6], [14, 6], [15, 7], [16, 7], [17, 8], [18, 8], [19, 9], [20, 9], [21, 10], [22, 11], [23, 12], [24, 14], [25, 16], [26, 18], [27, 20], [28, 21], [29, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 22;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXPosition", "code": "    public int getXPosition()\n    {\n        return field1_x_position;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setXPosition", "code": "    public void setXPosition(int xPosition)\n    {\n        this.field1_x_position = xPosition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getYPosition", "code": "    public int getYPosition()\n    {\n        return field2_y_position;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setYPosition", "code": "    public void setYPosition(int yPosition)\n    {\n        this.field2_y_position = yPosition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWidth", "code": "    public int getWidth()\n    {\n        return field3_width;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWidth", "code": "    public void setWidth(int width)\n    {\n        this.field3_width = width;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeight", "code": "    public int getHeight()\n    {\n        return field4_height;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHeight", "code": "    public void setHeight(int height)\n    {\n        this.field4_height = height;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVaryDisplayPattern", "code": "    public boolean getVaryDisplayPattern()\n    {\n        return varyDisplayPattern.isSet(field5_grbit);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVaryDisplayPattern", "code": "    public void setVaryDisplayPattern(boolean value)\n    {\n        field5_grbit = varyDisplayPattern.setShortBoolean(field5_grbit,\n                value);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ChartFormatRecord", "code": "    public ChartFormatRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "ChartFormatRecord", "code": "    public ChartFormatRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ChartFormatRecord", "code": "    public ChartFormatRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "xalan-2.4-6520", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/BooleanCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.BooleanCall", "code": "final class BooleanCall extends FunctionCall {\n\n    private Expression _arg = null;\n\n    public BooleanCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n\t_arg = argument(0);\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_arg.typeCheck(stable);\n\treturn _type = Type.Boolean;\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\t_arg.translate(classGen, methodGen);\n\tfinal Type targ = _arg.getType();\n\tif (!targ.identicalTo(Type.Boolean)) {\n\t    _arg.startResetIterator(classGen, methodGen);\n\t    targ.translateTo(classGen, methodGen, Type.Boolean);", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\t_arg.typeCheck(stable);\n\treturn _type = Type.Boolean;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 0], [2, 0], [3, 1], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\t_arg.translate(classGen, methodGen);\n\tfinal Type targ = _arg.getType();\n\tif (!targ.identicalTo(Type.Boolean)) {\n\t    _arg.startResetIterator(classGen, methodGen);\n\t    targ.translateTo(classGen, methodGen, Type.Boolean);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [1, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 1], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "BooleanCall", "code": "    public BooleanCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n\t_arg = argument(0);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "poi-3.0-6020", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/util/LongField.java", "language": "java", "name": "org.apache.poi.util.LongField", "code": "public class LongField\n    implements FixedField\n{\n    private long      _value;\n    private final int _offset;\n\n    /**\n     * construct the LongField with its offset into its containing\n     * byte array\n     *\n     * @param offset of the field within its byte array\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public LongField(final int offset)\n        throws ArrayIndexOutOfBoundsException\n    {\n        if (offset < 0)\n        {\n            throw new ArrayIndexOutOfBoundsException(\"Illegal offset: \"\n                                                     + offset);\n        }\n        _offset = offset;\n    }\n\n    /**\n     * construct the LongField with its offset into its containing\n     * byte array and initialize its value\n     *\n     * @param offset of the field within its byte array\n     * @param value the initial value\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public LongField(final int offset, final long value)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value);\n    }\n\n    /**\n     * Construct the LongField with its offset into its containing\n     * byte array and initialize its value from its byte array\n     *\n     * @param offset of the field within its byte array\n     * @param data the byte array to read the value from\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is not\n     *            within the range of 0..(data.length - 1)\n     */\n\n    public LongField(final int offset, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        readFromBytes(data);\n    }\n\n    /**\n     * construct the LongField with its offset into its containing\n     * byte array, initialize its value, and write the value to a byte\n     * array\n     *\n     * @param offset of the field within its byte array\n     * @param value the initial value\n     * @param data the byte array to write the value to\n     *\n     * @exception ArrayIndexOutOfBoundsException if offset is negative\n     */\n\n    public LongField(final int offset, final long value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value, data);\n    }\n\n    /**\n     * get the LongField's current value\n     *\n     * @return current value\n     */\n\n    public long get()\n    {\n        return _value;\n    }\n\n    /**\n     * set the LongField's current value\n     *\n     * @param value to be set\n     */\n\n    public void set(final long value)\n    {\n        _value = value;\n    }\n\n    /**\n     * set the LongField's current value and write it to a byte array\n     *\n     * @param value to be set\n     * @param data the byte array to write the value to\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of range\n     */\n\n    public void set(final long value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = value;\n        writeToBytes(data);\n    }\n\n    /* ********** START implementation of FixedField ********** */\n\n    /**\n     * set the value from its offset into an array of bytes\n     *\n     * @param data the byte array from which the value is to be read\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of range\n     */\n\n    public void readFromBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = LittleEndian.getLong(data, _offset);\n    }\n\n    /**\n     * set the value from an InputStream\n     *\n     * @param stream the InputStream from which the value is to be\n     *               read\n     *\n     * @exception BufferUnderrunException if there is not enough data\n     *            available from the InputStream\n     * @exception IOException if an IOException is thrown from reading\n     *            the InputStream\n     */\n\n    public void readFromStream(final InputStream stream)\n        throws IOException, BufferUnderrunException\n    {\n        _value = LittleEndian.readLong(stream);\n    }\n\n    /**\n     * write the value out to an array of bytes at the appropriate\n     * offset\n     *\n     * @param data the array of bytes to which the value is to be\n     *             written\n     *\n     * @exception ArrayIndexOutOfBoundsException if the offset is out\n     *            of range\n     */\n\n    public void writeToBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        LittleEndian.putLong(data, _offset, _value);\n    }\n\n    /**\n     * return the value as a String\n     *\n     * @return the value as a String\n     */\n\n    public String toString()\n    {\n        return String.valueOf(_value);", "functions": [{"function_name": "get", "code": "    public long get()\n    {\n        return _value;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "set", "code": "    public void set(final long value)\n    {\n        _value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "set", "code": "    public void set(final long value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = value;\n        writeToBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "readFromBytes", "code": "    public void readFromBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        _value = LittleEndian.getLong(data, _offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "readFromStream", "code": "    public void readFromStream(final InputStream stream)\n        throws IOException, BufferUnderrunException\n    {\n        _value = LittleEndian.readLong(stream);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "writeToBytes", "code": "    public void writeToBytes(final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        LittleEndian.putLong(data, _offset, _value);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        return String.valueOf(_value);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LongField", "code": "    public LongField(final int offset)\n        throws ArrayIndexOutOfBoundsException\n    {\n        if (offset < 0)\n        {\n            throw new ArrayIndexOutOfBoundsException(\"Illegal offset: \"\n                                                     + offset);\n        }\n        _offset = offset;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "LongField", "code": "    public LongField(final int offset, final long value)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LongField", "code": "    public LongField(final int offset, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        readFromBytes(data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "LongField", "code": "    public LongField(final int offset, final long value, final byte [] data)\n        throws ArrayIndexOutOfBoundsException\n    {\n        this(offset);\n        set(value, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-2689", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/bean/ConstantBeanHolder.java", "language": "java", "name": "org.apache.camel.component.bean.ConstantBeanHolder", "code": "public class ConstantBeanHolder implements BeanHolder {\n    private final Object bean;\n    private Processor processor;\n    private BeanInfo beanInfo;\n\n    public ConstantBeanHolder(Object bean, BeanInfo beanInfo) {\n        this.bean = bean;\n        this.beanInfo = beanInfo;\n        try {\n            this.processor = CamelContextHelper.convertTo(beanInfo.getCamelContext(), Processor.class, bean);\n        } catch (NoTypeConversionAvailableException ex) {\n            this.processor = null;\n        }\n    }\n\n    public ConstantBeanHolder(Object bean, CamelContext context) {\n        this(bean, new BeanInfo(context, bean.getClass()));\n    }\n    public ConstantBeanHolder(Object bean, CamelContext context, ParameterMappingStrategy parameterMappingStrategy) {\n        this(bean, new BeanInfo(context, bean.getClass(), parameterMappingStrategy));\n    }\n\n    @Override\n    public String toString() {\n        return bean.toString();\n    }\n\n    public Object getBean()  {\n        return bean;\n    }\n\n    public Processor getProcessor() {\n        return processor;\n    }\n\n    public BeanInfo getBeanInfo() {\n        return beanInfo;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return bean.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBean", "code": "    public Object getBean()  {\n        return bean;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProcessor", "code": "    public Processor getProcessor() {\n        return processor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getBeanInfo", "code": "    public BeanInfo getBeanInfo() {\n        return beanInfo;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ConstantBeanHolder", "code": "    public ConstantBeanHolder(Object bean, BeanInfo beanInfo) {\n        this.bean = bean;\n        this.beanInfo = beanInfo;\n        try {\n            this.processor = CamelContextHelper.convertTo(beanInfo.getCamelContext(), Processor.class, bean);\n        } catch (NoTypeConversionAvailableException ex) {\n            this.processor = null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [4, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 4], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "ConstantBeanHolder", "code": "    public ConstantBeanHolder(Object bean, CamelContext context) {\n        this(bean, new BeanInfo(context, bean.getClass()));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ConstantBeanHolder", "code": "    public ConstantBeanHolder(Object bean, CamelContext context, ParameterMappingStrategy parameterMappingStrategy) {\n        this(bean, new BeanInfo(context, bean.getClass(), parameterMappingStrategy));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "camel-1.6-2980", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/component/cxf/interceptors/SoapMessageInInterceptor.java", "language": "java", "name": "org.apache.camel.component.cxf.interceptors.SoapMessageInInterceptor", "code": "public class SoapMessageInInterceptor extends AbstractMessageInInterceptor<SoapMessage> {\n    private static final Logger LOG = LogUtils.getL7dLogger(SoapMessageInInterceptor.class);\n\n    public SoapMessageInInterceptor() {\n        super(Phase.READ);\n    }\n\n    protected Logger getLogger() {\n        return LOG;\n    }\n\n    protected boolean isFaultMessage(SoapMessage message) {\n        return false;\n    }\n\n    protected BindingOperationInfo getBindingOperation(SoapMessage message, Document doc) {\n        Exchange ex = message.getExchange();\n        SoapBindingInfo soapBinding = (SoapBindingInfo)ex.get(BindingInfo.class);\n\n        Element payloadEl = (Element)doc.getChildNodes().item(0);\n        QName startQName = new QName(payloadEl.getNamespaceURI(), payloadEl.getLocalName());\n\n        boolean client = isRequestor(message);\n\n        List<BindingOperationInfo> boiList = new ArrayList<BindingOperationInfo>();\n        for (BindingOperationInfo boi : soapBinding.getOperations()) {\n            String style = soapBinding.getStyle(boi.getOperationInfo());\n            QName rootName = null;\n            if (\"rpc\".equals(style)) {\n                rootName = boi.getOperationInfo().getName();\n            } else {\n                BindingMessageInfo bmi = client ?  boi.getOutput() : boi.getInput();\n                if (bmi != null) {\n                    Collection<MessagePartInfo> bodyParts = bmi.getMessageParts();\n                    if (bodyParts.size() == 1) {\n                        MessagePartInfo p = bodyParts.iterator().next();\n                        rootName = p.getConcreteName();\n                    }\n                }\n            }\n\n            if (startQName.equals(rootName)) {\n                boiList.add(boi);\n            }\n        }\n\n        if (boiList.size() > 1\n            && LOG.isLoggable(Level.INFO)) {\n            LOG.info(\"Mulitple matching BindingOperationIno found in Binding.\");\n        }\n\n        return boiList.size() != 1 ? null : boiList.get(0);\n    }\n\n    protected List<Element> getPartList(SoapMessage inMessage, Element rootNode, BindingMessageInfo bmi) {\n        List<Element> partList = new ArrayList<Element>();\n        Exchange ex = inMessage.getExchange();\n        SoapBindingInfo soapBinding = (SoapBindingInfo)ex.get(BindingInfo.class);\n\n        String style = soapBinding.getStyle(bmi.getBindingOperation().getOperationInfo());\n        if (\"rpc\".equals(style)) {\n            rootNode = (Element)DOMUtils.getChild(rootNode, Node.ELEMENT_NODE);\n        }\n        partList.add(rootNode);\n        return partList;", "functions": [{"function_name": "getLogger", "code": "    protected Logger getLogger() {\n        return LOG;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isFaultMessage", "code": "    protected boolean isFaultMessage(SoapMessage message) {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getBindingOperation", "code": "    protected BindingOperationInfo getBindingOperation(SoapMessage message, Document doc) {\n        Exchange ex = message.getExchange();\n        SoapBindingInfo soapBinding = (SoapBindingInfo)ex.get(BindingInfo.class);\n\n        Element payloadEl = (Element)doc.getChildNodes().item(0);\n        QName startQName = new QName(payloadEl.getNamespaceURI(), payloadEl.getLocalName());\n\n        boolean client = isRequestor(message);\n\n        List<BindingOperationInfo> boiList = new ArrayList<BindingOperationInfo>();\n        for (BindingOperationInfo boi : soapBinding.getOperations()) {\n            String style = soapBinding.getStyle(boi.getOperationInfo());\n            QName rootName = null;\n            if (\"rpc\".equals(style)) {\n                rootName = boi.getOperationInfo().getName();\n            } else {\n                BindingMessageInfo bmi = client ?  boi.getOutput() : boi.getInput();\n                if (bmi != null) {\n                    Collection<MessagePartInfo> bodyParts = bmi.getMessageParts();\n                    if (bodyParts.size() == 1) {\n                        MessagePartInfo p = bodyParts.iterator().next();\n                        rootName = p.getConcreteName();\n                    }\n                }\n            }\n\n            if (startQName.equals(rootName)) {\n                boiList.add(boi);\n            }\n        }\n\n        if (boiList.size() > 1\n            && LOG.isLoggable(Level.INFO)) {\n            LOG.info(\"Mulitple matching BindingOperationIno found in Binding.\");\n        }\n\n        return boiList.size() != 1 ? null : boiList.get(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "COND_EXPR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [12, 14], [12, 15], [12, 16], [13, 17], [13, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 23], [4, 24], [5, 25], [6, 26], [9, 27], [14, 28], [16, 29], [16, 30], [2, 31], [18, 32], [18, 33], [19, 34], [20, 35], [26, 36], [26, 37], [7, 38], [8, 39], [31, 40], [20, 41], [20, 42], [35, 43], [21, 44], [22, 45], [38, 46], [19, 47], [41, 48], [20, 49], [45, 50], [46, 51], [41, 52], [41, 53], [48, 54], [42, 55], [49, 56], [52, 57], [55, 58], [55, 59], [56, 60], [52, 61], [57, 62], [57, 63], [53, 64], [52, 65], [65, 66], [61, 67], [67, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 12], [15, 12], [16, 12], [17, 13], [18, 13], [19, 3], [20, 3], [21, 3], [22, 3], [23, 3], [24, 4], [25, 5], [26, 6], [27, 9], [28, 14], [29, 16], [30, 16], [31, 2], [32, 18], [33, 18], [34, 19], [35, 20], [36, 26], [37, 26], [38, 7], [39, 8], [40, 31], [41, 20], [42, 20], [43, 35], [44, 21], [45, 22], [46, 38], [47, 19], [48, 41], [49, 20], [50, 45], [51, 46], [52, 41], [53, 41], [54, 48], [55, 42], [56, 49], [57, 52], [58, 55], [59, 55], [60, 56], [61, 52], [62, 57], [63, 57], [64, 53], [65, 52], [66, 65], [67, 61], [68, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "getPartList", "code": "    protected List<Element> getPartList(SoapMessage inMessage, Element rootNode, BindingMessageInfo bmi) {\n        List<Element> partList = new ArrayList<Element>();\n        Exchange ex = inMessage.getExchange();\n        SoapBindingInfo soapBinding = (SoapBindingInfo)ex.get(BindingInfo.class);\n\n        String style = soapBinding.getStyle(bmi.getBindingOperation().getOperationInfo());\n        if (\"rpc\".equals(style)) {\n            rootNode = (Element)DOMUtils.getChild(rootNode, Node.ELEMENT_NODE);\n        }\n        partList.add(rootNode);\n        return partList;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [11, 12], [3, 13], [5, 14], [6, 15], [2, 16], [13, 17], [4, 18], [17, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 11], [13, 3], [14, 5], [15, 6], [16, 2], [17, 13], [18, 4], [19, 17], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "SoapMessageInInterceptor", "code": "    public SoapMessageInInterceptor() {\n        super(Phase.READ);", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.4-2192", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/language/groovy/GroovyRouteBuilder.java", "language": "java", "name": "org.apache.camel.language.groovy.GroovyRouteBuilder", "code": "public abstract class GroovyRouteBuilder extends RouteBuilder {\n    public GroovyRouteBuilder() {\n        init();\n    }\n\n    public GroovyRouteBuilder(CamelContext context) {\n        super(context);\n        init();\n    }\n\n    private void init() {\n        ClassLoader loader = getClass().getClassLoader();\n        GroovyShell shell = new GroovyShell(loader);\n        shell.evaluate(loader.getResourceAsStream(\"org/apache/camel/language/groovy/ConfigureCamel.groovy\"));", "functions": [{"function_name": "init", "code": "    private void init() {\n        ClassLoader loader = getClass().getClassLoader();\n        GroovyShell shell = new GroovyShell(loader);\n        shell.evaluate(loader.getResourceAsStream(\"org/apache/camel/language/groovy/ConfigureCamel.groovy\"));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [2, 6], [4, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 2], [7, 4], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "GroovyRouteBuilder", "code": "    public GroovyRouteBuilder() {\n        init();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "GroovyRouteBuilder", "code": "    public GroovyRouteBuilder(CamelContext context) {\n        super(context);\n        init();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.6-735", "repo": "ant-1.6", "project": "ant", "version": "1.6", "file_path": "org/apache/tools/ant/types/PatternSet.java", "language": "java", "name": "org.apache.tools.ant.types.PatternSet", "code": "public class PatternSet extends DataType implements Cloneable {\n    private Vector includeList = new Vector();\n    private Vector excludeList = new Vector();\n    private Vector includesFileList = new Vector();\n    private Vector excludesFileList = new Vector();\n\n    /**\n     * inner class to hold a name on list.  \"If\" and \"Unless\" attributes\n     * may be used to invalidate the entry based on the existence of a\n     * property (typically set thru the use of the Available task).\n     */\n    public class NameEntry {\n        private String name;\n        private String ifCond;\n        private String unlessCond;\n\n        /**\n         * Sets the name pattern.\n         *\n         * @param name The pattern string.\n         */\n        public void setName(String name) {\n            this.name = name;\n        }\n\n        /**\n         * Sets the if attribute. This attribute and the \"unless\"\n         * attribute are used to validate the name, based in the\n         * existence of the property.\n         *\n         * @param cond A property name. If this property is not\n         *             present, the name is invalid.\n         */\n        public void setIf(String cond) {\n            ifCond = cond;\n        }\n\n        /**\n         * Sets the unless attribute. This attribute and the \"if\"\n         * attribute are used to validate the name, based in the\n         * existence of the property.\n         *\n         * @param cond A property name. If this property is\n         *             present, the name is invalid.\n         */\n        public void setUnless(String cond) {\n            unlessCond = cond;\n        }\n\n        /**\n         * @return the name attribute.\n         */\n        public String getName() {\n            return name;\n        }\n\n        /**\n         * This validates the name - checks the if and unless\n         * properties.\n         *\n         * @param p the current project, used to check the presence or\n         *          absence of a property.\n         * @return  the name attribute or null if the \"if\" or \"unless\"\n         *          properties are not/are set.\n         */\n        public String evalName(Project p) {\n            return valid(p) ? name : null;\n        }\n\n        private boolean valid(Project p) {\n            if (ifCond != null && p.getProperty(ifCond) == null) {\n                return false;\n            } else if (unlessCond != null && p.getProperty(unlessCond) != null) {\n                return false;\n            }\n            return true;\n        }\n\n        /**\n         * @return a printable form of this object.\n         */\n        public String toString() {\n            if (name == null) {\n                throw new BuildException(\n                    \"Missing attribute \\\"name\\\" for a pattern\");\n            }\n            StringBuffer buf = new StringBuffer(name);\n            if ((ifCond != null) || (unlessCond != null)) {\n                buf.append(\":\");\n                String connector = \"\";\n\n                if (ifCond != null) {\n                    buf.append(\"if->\");\n                    buf.append(ifCond);\n                    connector = \";\";\n                }\n                if (unlessCond != null) {\n                    buf.append(connector);\n                    buf.append(\"unless->\");\n                    buf.append(unlessCond);\n                }\n            }\n\n            return buf.toString();\n        }\n    }\n\n    /**\n     * Creates a new <code>PatternSet</code> instance.\n     */\n    public PatternSet() {\n        super();\n    }\n\n    /**\n     * Makes this instance in effect a reference to another PatternSet\n     * instance.\n     *\n     * <p>You must not set another attribute or nest elements inside\n     * this element if you make it a reference.</p>\n     * @param r the reference to another patternset.\n     * @throws BuildException on error.\n     */\n    public void setRefid(Reference r) throws BuildException {\n        if (!includeList.isEmpty() || !excludeList.isEmpty()) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);\n    }\n\n    /**\n     * This is a patternset nested element.\n     *\n     * @param p a configured patternset nested element.\n     */\n    public void addConfiguredPatternset(PatternSet p) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n\n        String[] nestedIncludes = p.getIncludePatterns(getProject());\n        String[] nestedExcludes = p.getExcludePatterns(getProject());\n\n        if (nestedIncludes != null) {\n            for (int i = 0; i < nestedIncludes.length; i++) {\n                createInclude().setName(nestedIncludes[i]);\n            }\n        }\n\n        if (nestedExcludes != null) {\n            for (int i = 0; i < nestedExcludes.length; i++) {\n                createExclude().setName(nestedExcludes[i]);\n            }\n        }\n    }\n\n    /**\n     * add a name entry on the include list\n     * @return a nested include element to be configured.\n     */\n    public NameEntry createInclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(includeList);\n    }\n\n    /**\n     * add a name entry on the include files list\n     * @return a nested includesfile element to be configured.\n     */\n    public NameEntry createIncludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(includesFileList);\n    }\n\n    /**\n     * add a name entry on the exclude list\n     * @return a nested exclude element to be configured.\n     */\n    public NameEntry createExclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(excludeList);\n    }\n\n    /**\n     * add a name entry on the exclude files list\n     * @return a nested excludesfile element to be configured.\n     */\n    public NameEntry createExcludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(excludesFileList);\n    }\n\n    /**\n     * Appends <code>includes</code> to the current list of include patterns.\n     * Patterns may be separated by a comma or a space.\n     *\n     * @param includes the string containing the include patterns\n     */\n    public void setIncludes(String includes) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (includes != null && includes.length() > 0) {\n            StringTokenizer tok = new StringTokenizer(includes, \", \", false);\n            while (tok.hasMoreTokens()) {\n                createInclude().setName(tok.nextToken());\n            }\n        }\n    }\n\n    /**\n     * Appends <code>excludes</code> to the current list of exclude patterns.\n     * Patterns may be separated by a comma or a space.\n     *\n     * @param excludes the string containing the exclude patterns\n     */\n    public void setExcludes(String excludes) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (excludes != null && excludes.length() > 0) {\n            StringTokenizer tok = new StringTokenizer(excludes, \", \", false);\n            while (tok.hasMoreTokens()) {\n                createExclude().setName(tok.nextToken());\n            }\n        }\n    }\n\n    /**\n     * add a name entry to the given list\n     */\n    private NameEntry addPatternToList(Vector list) {\n        NameEntry result = new NameEntry();\n        list.addElement(result);\n        return result;\n    }\n\n    /**\n     * Sets the name of the file containing the includes patterns.\n     *\n     * @param includesFile The file to fetch the include patterns from.\n     * @throws BuildException on error.\n     */\n     public void setIncludesfile(File includesFile) throws BuildException {\n         if (isReference()) {\n             throw tooManyAttributes();\n         }\n         createIncludesFile().setName(includesFile.getAbsolutePath());\n     }\n\n    /**\n     * Sets the name of the file containing the excludes patterns.\n     *\n     * @param excludesFile The file to fetch the exclude patterns from.\n     * @throws BuildException on error.\n     */\n     public void setExcludesfile(File excludesFile) throws BuildException {\n         if (isReference()) {\n             throw tooManyAttributes();\n         }\n         createExcludesFile().setName(excludesFile.getAbsolutePath());\n     }\n\n    /**\n     *  Reads path matching patterns from a file and adds them to the\n     *  includes or excludes list (as appropriate).\n     */\n    private void readPatterns(File patternfile, Vector patternlist, Project p)\n        throws BuildException {\n\n        BufferedReader patternReader = null;\n        try {\n            patternReader =\n                new BufferedReader(new FileReader(patternfile));\n\n            String line = patternReader.readLine();\n            while (line != null) {\n                if (line.length() > 0) {\n                    line = p.replaceProperties(line);\n                    addPatternToList(patternlist).setName(line);\n                }\n                line = patternReader.readLine();\n            }\n        } catch (IOException ioe)  {\n            String msg = \"An error occurred while reading from pattern file: \"\n                + patternfile;\n            throw new BuildException(msg, ioe);\n        } finally {\n            if (null != patternReader) {\n                try {\n                    patternReader.close();\n                } catch (IOException ioe) {\n                }\n            }\n        }\n    }\n\n    /**\n     * Adds the patterns of the other instance to this set.\n     * @param other the other PatternSet instance.\n     * @param p the current project.\n     */\n    public void append(PatternSet other, Project p) {\n        if (isReference()) {\n            throw new BuildException(\"Cannot append to a reference\");\n        }\n\n        String[] incl = other.getIncludePatterns(p);\n        if (incl != null) {\n            for (int i = 0; i < incl.length; i++) {\n                createInclude().setName(incl[i]);\n            }\n        }\n\n        String[] excl = other.getExcludePatterns(p);\n        if (excl != null) {\n            for (int i = 0; i < excl.length; i++) {\n                createExclude().setName(excl[i]);\n            }\n        }\n    }\n\n    /**\n     * Returns the filtered include patterns.\n     * @param p the current project.\n     * @return the filtered included patterns.\n     */\n    public String[] getIncludePatterns(Project p) {\n        if (isReference()) {\n            return getRef(p).getIncludePatterns(p);\n        } else {\n            readFiles(p);\n            return makeArray(includeList, p);\n        }\n    }\n\n    /**\n     * Returns the filtered include patterns.\n     * @param p the current project.\n     * @return the filtered excluded patterns.\n     */\n    public String[] getExcludePatterns(Project p) {\n        if (isReference()) {\n            return getRef(p).getExcludePatterns(p);\n        } else {\n            readFiles(p);\n            return makeArray(excludeList, p);\n        }\n    }\n\n    /**\n     * helper for FileSet.\n     */\n    boolean hasPatterns(Project p) {\n        if (isReference()) {\n            return getRef(p).hasPatterns(p);\n        } else {\n            return includesFileList.size() > 0 || excludesFileList.size() > 0\n                || includeList.size() > 0 || excludeList.size() > 0;\n        }\n    }\n\n    /**\n     * Performs the check for circular references and returns the\n     * referenced PatternSet.\n     */\n    private PatternSet getRef(Project p) {\n        if (!isChecked()) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, p);\n        }\n\n        Object o = getRefid().getReferencedObject(p);\n        if (!(o instanceof PatternSet)) {\n            String msg = getRefid().getRefId() + \" doesn\\'t denote a patternset\";\n            throw new BuildException(msg);\n        } else {\n            return (PatternSet) o;\n        }\n    }\n\n    /**\n     * Convert a vector of NameEntry elements into an array of Strings.\n     */\n    private String[] makeArray(Vector list, Project p) {\n        if (list.size() == 0) {\n          return null;\n        }\n\n        Vector tmpNames = new Vector();\n        for (Enumeration e = list.elements(); e.hasMoreElements();) {\n            NameEntry ne = (NameEntry) e.nextElement();\n            String pattern = ne.evalName(p);\n            if (pattern != null && pattern.length() > 0) {\n                tmpNames.addElement(pattern);\n            }\n        }\n\n        String[] result = new String[tmpNames.size()];\n        tmpNames.copyInto(result);\n        return result;\n    }\n\n    /**\n     * Read includesfile ot excludesfile if not already done so.\n     */\n    private void readFiles(Project p) {\n        if (includesFileList.size() > 0) {\n            Enumeration e = includesFileList.elements();\n            while (e.hasMoreElements()) {\n                NameEntry ne = (NameEntry) e.nextElement();\n                String fileName = ne.evalName(p);\n                if (fileName != null) {\n                    File inclFile = p.resolveFile(fileName);\n                    if (!inclFile.exists()) {\n                        throw new BuildException(\"Includesfile \"\n                                                 + inclFile.getAbsolutePath()\n                                                 + \" not found.\");\n                    }\n                    readPatterns(inclFile, includeList, p);\n                }\n            }\n            includesFileList.removeAllElements();\n        }\n\n        if (excludesFileList.size() > 0) {\n            Enumeration e = excludesFileList.elements();\n            while (e.hasMoreElements()) {\n                NameEntry ne = (NameEntry) e.nextElement();\n                String fileName = ne.evalName(p);\n                if (fileName != null) {\n                    File exclFile = p.resolveFile(fileName);\n                    if (!exclFile.exists()) {\n                        throw new BuildException(\"Excludesfile \"\n                                                 + exclFile.getAbsolutePath()\n                                                 + \" not found.\");\n                    }\n                    readPatterns(exclFile, excludeList, p);\n                }\n            }\n            excludesFileList.removeAllElements();\n        }\n    }\n\n    /**\n     * @return a printable form of this object.\n     */\n    public String toString() {\n        return \"patternSet{ includes: \" + includeList\n                + \" excludes: \" + excludeList + \" }\";\n    }\n\n    /**\n     * @since Ant 1.6\n     * @return a clone of this patternset.\n     */\n    public Object clone() {\n        if (isReference()) {\n            return getRef(getProject()).clone();\n        } else {\n            try {\n                PatternSet ps = (PatternSet) super.clone();\n                ps.includeList = (Vector) includeList.clone();\n                ps.excludeList = (Vector) excludeList.clone();\n                ps.includesFileList = (Vector) includesFileList.clone();\n                ps.excludesFileList = (Vector) excludesFileList.clone();\n                return ps;\n            } catch (CloneNotSupportedException e) {\n                throw new BuildException(e);", "functions": [{"function_name": "setRefid", "code": "    public void setRefid(Reference r) throws BuildException {\n        if (!includeList.isEmpty() || !excludeList.isEmpty()) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "addConfiguredPatternset", "code": "    public void addConfiguredPatternset(PatternSet p) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n\n        String[] nestedIncludes = p.getIncludePatterns(getProject());\n        String[] nestedExcludes = p.getExcludePatterns(getProject());\n\n        if (nestedIncludes != null) {\n            for (int i = 0; i < nestedIncludes.length; i++) {\n                createInclude().setName(nestedIncludes[i]);\n            }\n        }\n\n        if (nestedExcludes != null) {\n            for (int i = 0; i < nestedExcludes.length; i++) {\n                createExclude().setName(nestedExcludes[i]);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [5, 9], [1, 10], [7, 11], [2, 12], [8, 13], [3, 14], [4, 15], [5, 16], [10, 17], [12, 18], [14, 19], [15, 20], [16, 21], [10, 22], [10, 23], [12, 24], [12, 25], [22, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 5], [10, 1], [11, 7], [12, 2], [13, 8], [14, 3], [15, 4], [16, 5], [17, 10], [18, 12], [19, 14], [20, 15], [21, 16], [22, 10], [23, 10], [24, 12], [25, 12], [26, 22], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "createInclude", "code": "    public NameEntry createInclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(includeList);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createIncludesFile", "code": "    public NameEntry createIncludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(includesFileList);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createExclude", "code": "    public NameEntry createExclude() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(excludeList);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "createExcludesFile", "code": "    public NameEntry createExcludesFile() {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        return addPatternToList(excludesFileList);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setIncludes", "code": "    public void setIncludes(String includes) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (includes != null && includes.length() > 0) {\n            StringTokenizer tok = new StringTokenizer(includes, \", \", false);\n            while (tok.hasMoreTokens()) {\n                createInclude().setName(tok.nextToken());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [4, 9], [2, 10], [6, 11], [8, 12], [8, 13], [9, 14], [10, 15], [7, 16], [6, 17], [16, 18], [16, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 4], [10, 2], [11, 6], [12, 8], [13, 8], [14, 9], [15, 10], [16, 7], [17, 6], [18, 16], [19, 16], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setExcludes", "code": "    public void setExcludes(String excludes) {\n        if (isReference()) {\n            throw tooManyAttributes();\n        }\n        if (excludes != null && excludes.length() > 0) {\n            StringTokenizer tok = new StringTokenizer(excludes, \", \", false);\n            while (tok.hasMoreTokens()) {\n                createExclude().setName(tok.nextToken());", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [4, 9], [2, 10], [6, 11], [8, 12], [8, 13], [9, 14], [10, 15], [7, 16], [6, 17], [16, 18], [16, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 4], [10, 2], [11, 6], [12, 8], [13, 8], [14, 9], [15, 10], [16, 7], [17, 6], [18, 16], [19, 16], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "addPatternToList", "code": "    private NameEntry addPatternToList(Vector list) {\n        NameEntry result = new NameEntry();\n        list.addElement(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setIncludesfile", "code": "     public void setIncludesfile(File includesFile) throws BuildException {\n         if (isReference()) {\n             throw tooManyAttributes();\n         }\n         createIncludesFile().setName(includesFile.getAbsolutePath());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setExcludesfile", "code": "     public void setExcludesfile(File excludesFile) throws BuildException {\n         if (isReference()) {\n             throw tooManyAttributes();\n         }\n         createExcludesFile().setName(excludesFile.getAbsolutePath());", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "readPatterns", "code": "    private void readPatterns(File patternfile, Vector patternlist, Project p)\n        throws BuildException {\n\n        BufferedReader patternReader = null;\n        try {\n            patternReader =\n                new BufferedReader(new FileReader(patternfile));\n\n            String line = patternReader.readLine();\n            while (line != null) {\n                if (line.length() > 0) {\n                    line = p.replaceProperties(line);\n                    addPatternToList(patternlist).setName(line);\n                }\n                line = patternReader.readLine();\n            }\n        } catch (IOException ioe)  {\n            String msg = \"An error occurred while reading from pattern file: \"\n                + patternfile;\n            throw new BuildException(msg, ioe);\n        } finally {\n            if (null != patternReader) {\n                try {\n                    patternReader.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "CATCH", "LOOP", "VAR_DECL", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [6, 10], [7, 11], [7, 12], [8, 13], [1, 14], [2, 15], [6, 16], [10, 17], [11, 18], [8, 19], [13, 20], [9, 21], [14, 22], [16, 23], [12, 24], [8, 25], [19, 26], [22, 27], [16, 28], [24, 29], [25, 30], [26, 31], [26, 32], [19, 33], [19, 34], [33, 35], [34, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 6], [11, 7], [12, 7], [13, 8], [14, 1], [15, 2], [16, 6], [17, 10], [18, 11], [19, 8], [20, 13], [21, 9], [22, 14], [23, 16], [24, 12], [25, 8], [26, 19], [27, 22], [28, 16], [29, 24], [30, 25], [31, 26], [32, 26], [33, 19], [34, 19], [35, 33], [36, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "append", "code": "    public void append(PatternSet other, Project p) {\n        if (isReference()) {\n            throw new BuildException(\"Cannot append to a reference\");\n        }\n\n        String[] incl = other.getIncludePatterns(p);\n        if (incl != null) {\n            for (int i = 0; i < incl.length; i++) {\n                createInclude().setName(incl[i]);\n            }\n        }\n\n        String[] excl = other.getExcludePatterns(p);\n        if (excl != null) {\n            for (int i = 0; i < excl.length; i++) {\n                createExclude().setName(excl[i]);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [5, 10], [1, 11], [8, 12], [2, 13], [3, 14], [9, 15], [4, 16], [5, 17], [11, 18], [14, 19], [17, 20], [20, 21], [11, 22], [11, 23], [14, 24], [14, 25], [22, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 5], [11, 1], [12, 8], [13, 2], [14, 3], [15, 9], [16, 4], [17, 5], [18, 11], [19, 14], [20, 17], [21, 20], [22, 11], [23, 11], [24, 14], [25, 14], [26, 22], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getIncludePatterns", "code": "    public String[] getIncludePatterns(Project p) {\n        if (isReference()) {\n            return getRef(p).getIncludePatterns(p);\n        } else {\n            readFiles(p);\n            return makeArray(includeList, p);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getExcludePatterns", "code": "    public String[] getExcludePatterns(Project p) {\n        if (isReference()) {\n            return getRef(p).getExcludePatterns(p);\n        } else {\n            readFiles(p);\n            return makeArray(excludeList, p);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "RETURN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 1], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "hasPatterns", "code": "    boolean hasPatterns(Project p) {\n        if (isReference()) {\n            return getRef(p).hasPatterns(p);\n        } else {\n            return includesFileList.size() > 0 || excludesFileList.size() > 0\n                || includeList.size() > 0 || excludeList.size() > 0;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "RETURN", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [6, 9], [7, 10], [8, 11], [8, 12], [9, 13], [9, 14], [13, 15], [13, 16], [14, 17], [14, 18], [17, 19], [17, 20], [18, 21], [18, 22], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 6], [10, 7], [11, 8], [12, 8], [13, 9], [14, 9], [15, 13], [16, 13], [17, 14], [18, 14], [19, 17], [20, 17], [21, 18], [22, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getRef", "code": "    private PatternSet getRef(Project p) {\n        if (!isChecked()) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, p);\n        }\n\n        Object o = getRefid().getReferencedObject(p);\n        if (!(o instanceof PatternSet)) {\n            String msg = getRefid().getRefId() + \" doesn\\'t denote a patternset\";\n            throw new BuildException(msg);\n        } else {\n            return (PatternSet) o;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "RETURN", "THROW_RAISE", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [1, 7], [1, 8], [1, 9], [2, 10], [3, 11], [8, 12], [10, 13], [3, 14], [3, 15], [9, 16], [11, 17], [16, 18], [16, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 1], [8, 1], [9, 1], [10, 2], [11, 3], [12, 8], [13, 10], [14, 3], [15, 3], [16, 9], [17, 11], [18, 16], [19, 16], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "makeArray", "code": "    private String[] makeArray(Vector list, Project p) {\n        if (list.size() == 0) {\n          return null;\n        }\n\n        Vector tmpNames = new Vector();\n        for (Enumeration e = list.elements(); e.hasMoreElements();) {\n            NameEntry ne = (NameEntry) e.nextElement();\n            String pattern = ne.evalName(p);\n            if (pattern != null && pattern.length() > 0) {\n                tmpNames.addElement(pattern);\n            }\n        }\n\n        String[] result = new String[tmpNames.size()];\n        tmpNames.copyInto(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [3, 9], [5, 10], [3, 11], [3, 12], [3, 13], [4, 14], [5, 15], [10, 16], [10, 17], [2, 18], [11, 19], [3, 20], [15, 21], [19, 22], [19, 23], [12, 24], [11, 25], [22, 26], [22, 27], [23, 28], [13, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 3], [10, 5], [11, 3], [12, 3], [13, 3], [14, 4], [15, 5], [16, 10], [17, 10], [18, 2], [19, 11], [20, 3], [21, 15], [22, 19], [23, 19], [24, 12], [25, 11], [26, 22], [27, 22], [28, 23], [29, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "readFiles", "code": "    private void readFiles(Project p) {\n        if (includesFileList.size() > 0) {\n            Enumeration e = includesFileList.elements();\n            while (e.hasMoreElements()) {\n                NameEntry ne = (NameEntry) e.nextElement();\n                String fileName = ne.evalName(p);\n                if (fileName != null) {\n                    File inclFile = p.resolveFile(fileName);\n                    if (!inclFile.exists()) {\n                        throw new BuildException(\"Includesfile \"\n                                                 + inclFile.getAbsolutePath()\n                                                 + \" not found.\");\n                    }\n                    readPatterns(inclFile, includeList, p);\n                }\n            }\n            includesFileList.removeAllElements();\n        }\n\n        if (excludesFileList.size() > 0) {\n            Enumeration e = excludesFileList.elements();\n            while (e.hasMoreElements()) {\n                NameEntry ne = (NameEntry) e.nextElement();\n                String fileName = ne.evalName(p);\n                if (fileName != null) {\n                    File exclFile = p.resolveFile(fileName);\n                    if (!exclFile.exists()) {\n                        throw new BuildException(\"Excludesfile \"\n                                                 + exclFile.getAbsolutePath()\n                                                 + \" not found.\");\n                    }\n                    readPatterns(exclFile, excludeList, p);\n                }\n            }\n            excludesFileList.removeAllElements();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [1, 7], [4, 8], [4, 9], [2, 10], [2, 11], [5, 12], [5, 13], [1, 14], [6, 15], [2, 16], [10, 17], [6, 18], [6, 19], [6, 20], [7, 21], [10, 22], [10, 23], [10, 24], [11, 25], [18, 26], [22, 27], [18, 28], [18, 29], [26, 30], [19, 31], [22, 32], [22, 33], [27, 34], [23, 35], [18, 36], [28, 37], [20, 38], [22, 39], [32, 40], [24, 41], [28, 42], [29, 43], [32, 44], [33, 45], [42, 46], [44, 47], [46, 48], [47, 49], [48, 50], [48, 51], [49, 52], [49, 53], [51, 54], [51, 55], [53, 56], [53, 57], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 1], [8, 4], [9, 4], [10, 2], [11, 2], [12, 5], [13, 5], [14, 1], [15, 6], [16, 2], [17, 10], [18, 6], [19, 6], [20, 6], [21, 7], [22, 10], [23, 10], [24, 10], [25, 11], [26, 18], [27, 22], [28, 18], [29, 18], [30, 26], [31, 19], [32, 22], [33, 22], [34, 27], [35, 23], [36, 18], [37, 28], [38, 20], [39, 22], [40, 32], [41, 24], [42, 28], [43, 29], [44, 32], [45, 33], [46, 42], [47, 44], [48, 46], [49, 47], [50, 48], [51, 48], [52, 49], [53, 49], [54, 51], [55, 51], [56, 53], [57, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}, {"function_name": "toString", "code": "    public String toString() {\n        return \"patternSet{ includes: \" + includeList\n                + \" excludes: \" + excludeList + \" }\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "clone", "code": "    public Object clone() {\n        if (isReference()) {\n            return getRef(getProject()).clone();\n        } else {\n            try {\n                PatternSet ps = (PatternSet) super.clone();\n                ps.includeList = (Vector) includeList.clone();\n                ps.excludeList = (Vector) excludeList.clone();\n                ps.includesFileList = (Vector) includesFileList.clone();\n                ps.excludesFileList = (Vector) excludesFileList.clone();\n                return ps;\n            } catch (CloneNotSupportedException e) {\n                throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "TRY", "RETURN", "CATCH", "RETURN", "VAR_DECL", "CALL", "THROW_RAISE", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [3, 6], [3, 7], [4, 8], [5, 9], [3, 10], [3, 11], [3, 12], [3, 13], [8, 14], [8, 15], [9, 16], [10, 17], [11, 18], [12, 19], [13, 20], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 3], [7, 3], [8, 4], [9, 5], [10, 3], [11, 3], [12, 3], [13, 3], [14, 8], [15, 8], [16, 9], [17, 10], [18, 11], [19, 12], [20, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "PatternSet", "code": "    public PatternSet() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "ant-1.7-1090", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/perforce/P4Base.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.perforce.P4Base", "code": "public abstract class P4Base extends org.apache.tools.ant.Task {\n    /**Perl5 regexp in Java - cool eh? */\n    protected Perl5Util util = null;\n    /** The OS shell to use (cmd.exe or /bin/sh) */\n    protected String shell;\n\n    /** Perforce Server Port (eg KM01:1666) */\n    protected String P4Port = \"\";\n    /** Perforce Client (eg myclientspec) */\n    protected String P4Client = \"\";\n    /** Perforce User (eg fbloggs) */\n    protected String P4User = \"\";\n    protected String P4View = \"\";\n\n    /** Keep going or fail on error - defaults to fail. */\n    protected boolean failOnError = true;\n\n    /** Perforce 'global' opts.\n     * Forms half of low level API */\n    protected String P4Opts = \"\";\n    /** Perforce command opts.\n     * Forms half of low level API */\n    protected String P4CmdOpts = \"\";\n\n    /** Set by the task or a handler to indicate that the task has failed.  BuildExceptions\n     * can also be thrown to indicate failure. */\n    private boolean inError = false;\n\n    /** If inError is set, then errorMessage needs to contain the reason why. */\n    private String errorMessage = \"\";\n\n\n    /**\n     * gets whether or not the task has encountered an error\n     * @return error flag\n     * @since ant 1.6\n     */\n    public boolean getInError() {\n        return inError;\n    }\n\n    /**\n     * sets the error flag on the task\n     * @param inError if true an error has been encountered by the handler\n     * @since ant 1.6\n     */\n    public void setInError(boolean inError) {\n        this.inError = inError;\n    }\n\n    /**\n     * gets the error message recorded by the Perforce handler\n     * @return error message\n     */\n    public String getErrorMessage() {\n        return errorMessage;\n    }\n\n    /**\n     * sets the error message\n     * @param errorMessage line of error output\n     */\n    public void setErrorMessage(String errorMessage) {\n        this.errorMessage = errorMessage;\n    }\n\n    /**\n     * The p4d server and port to connect to;\n     * optional, default \"perforce:1666\"\n     *\n     * @param p4Port the port one wants to set such as localhost:1666\n     */\n    public void setPort(String p4Port) {\n        this.P4Port = \"-p\" + p4Port;\n    }\n\n    /**\n     * The p4 client spec to use;\n     * optional, defaults to the current user\n     *\n     * @param p4Client the name of the Perforce client spec\n     */\n    public void setClient(String p4Client) {\n        this.P4Client = \"-c\" + p4Client;\n    }\n\n    /**\n     * The p4 username;\n     * optional, defaults to the current user\n     *\n     * @param p4User the user name\n     */\n    public void setUser(String p4User) {\n        this.P4User = \"-u\" + p4User;\n    }\n    /**\n     * Set global P4 options; Used on all\n     * of the Perforce tasks.\n     *\n     * @param p4Opts global options, to use a specific P4Config file for instance\n     */\n    public void setGlobalopts(String p4Opts) {\n        this.P4Opts = p4Opts;\n    }\n    /**\n     * The client, branch or label view to operate upon;\n     *\n     * the view is required for the following tasks :\n     * <ul>\n     * <li>p4delete</li>\n     * <li>p4edit</li>\n     * <li>p4reopen</li>\n     * <li>p4resolve</li>\n     * </ul>\n     *\n     * @param p4View the view one wants to use\n     */\n    public void setView(String p4View) {\n        this.P4View = p4View;\n    }\n\n    /**\n     * Set extra command options; only used on some\n     * of the Perforce tasks.\n     *\n     * @param p4CmdOpts  command line options going after the particular\n     * Perforce command\n     */\n    public void setCmdopts(String p4CmdOpts) {\n        this.P4CmdOpts = p4CmdOpts;\n    }\n\n    /**\n     * whether to stop the build (true, default)\n     * or keep going if an error is returned from the p4 command\n     * @param fail indicates whether one wants to fail the build if an error comes from the\n     * Perforce command\n     */\n    public void setFailonerror(boolean fail) {\n        failOnError = fail;\n    }\n    /**\n     *  sets attributes Port, Client, User from properties\n     *  if these properties are defined.\n     *  Called automatically by UnknownElement\n     *  @see org.apache.tools.ant.UnknownElement\n     *  <table>\n     *  <tr><th>Property</th><th>Attribute</th></tr>\n     *  <tr><td>p4.port</td><td>Port</td></tr>\n     *  <tr><td>p4.client</td><td>Client</td></tr>\n     *  <tr><td>p4.user</td><td>User</td></tr>\n     *  </table>\n     */\n    public void init() {\n\n        util = new Perl5Util();\n\n        String tmpprop;\n        if ((tmpprop = getProject().getProperty(\"p4.port\")) != null) {\n            setPort(tmpprop);\n        }\n        if ((tmpprop = getProject().getProperty(\"p4.client\")) != null) {\n            setClient(tmpprop);\n        }\n        if ((tmpprop = getProject().getProperty(\"p4.user\")) != null) {\n            setUser(tmpprop);\n        }\n    }\n    /**\n    *  no usages found for this method\n    *  runs a Perforce command without a handler\n    * @param command the command that one wants to execute\n    * @throws BuildException if failonerror is set and the command fails\n    */\n    protected void execP4Command(String command) throws BuildException {\n        execP4Command(command, null);\n    }\n\n    /**\n     * Execute P4 command assembled by subclasses.\n     *\n     * @param command The command to run\n     * @param handler A P4Handler to process any input and output\n     *\n     * @throws BuildException if failonerror has been set to true\n     */\n    protected void execP4Command(String command, P4Handler handler) throws BuildException {\n        try {\n            inError = false;\n            errorMessage = \"\";\n            Commandline commandline = new Commandline();\n            commandline.setExecutable(\"p4\");\n\n            if (P4Port != null && P4Port.length() != 0) {\n                commandline.createArgument().setValue(P4Port);\n            }\n            if (P4User != null && P4User.length() != 0) {\n                commandline.createArgument().setValue(P4User);\n            }\n            if (P4Client != null && P4Client.length() != 0) {\n                commandline.createArgument().setValue(P4Client);\n            }\n            if (P4Opts != null && P4Opts.length() != 0) {\n                commandline.createArgument().setLine(P4Opts);\n            }\n            commandline.createArgument().setLine(command);\n\n            log(commandline.describeCommand(), Project.MSG_VERBOSE);\n\n            if (handler == null) {\n                handler = new SimpleP4OutputHandler(this);\n            }\n\n            Execute exe = new Execute(handler, null);\n\n            exe.setAntRun(getProject());\n\n            exe.setCommandline(commandline.getCommandline());\n\n            try {\n                exe.execute();\n\n                if (inError && failOnError) {\n                    throw new BuildException(errorMessage);\n                }\n            } catch (IOException e) {\n                throw new BuildException(e);\n            } finally {\n                try {\n                    handler.stop();\n                } catch (Exception e) {\n                    log(\"Error stopping execution framework: \" + e.toString(),\n                        Project.MSG_ERR);\n                }\n            }\n\n\n        } catch (Exception e) {\n            String failMsg = \"Problem exec'ing P4 command: \" + e.getMessage();\n            if (failOnError) {\n                if (e instanceof BuildException) {\n                    throw (BuildException) e;\n                } else {\n                    throw new BuildException(failMsg, e);\n                }\n            } else {\n                log(failMsg, Project.MSG_ERR);", "functions": [{"function_name": "getInError", "code": "    public boolean getInError() {\n        return inError;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInError", "code": "    public void setInError(boolean inError) {\n        this.inError = inError;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorMessage", "code": "    public String getErrorMessage() {\n        return errorMessage;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorMessage", "code": "    public void setErrorMessage(String errorMessage) {\n        this.errorMessage = errorMessage;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setPort", "code": "    public void setPort(String p4Port) {\n        this.P4Port = \"-p\" + p4Port;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setClient", "code": "    public void setClient(String p4Client) {\n        this.P4Client = \"-c\" + p4Client;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setUser", "code": "    public void setUser(String p4User) {\n        this.P4User = \"-u\" + p4User;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setGlobalopts", "code": "    public void setGlobalopts(String p4Opts) {\n        this.P4Opts = p4Opts;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setView", "code": "    public void setView(String p4View) {\n        this.P4View = p4View;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setCmdopts", "code": "    public void setCmdopts(String p4CmdOpts) {\n        this.P4CmdOpts = p4CmdOpts;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setFailonerror", "code": "    public void setFailonerror(boolean fail) {\n        failOnError = fail;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "init", "code": "    public void init() {\n\n        util = new Perl5Util();\n\n        String tmpprop;\n        if ((tmpprop = getProject().getProperty(\"p4.port\")) != null) {\n            setPort(tmpprop);\n        }\n        if ((tmpprop = getProject().getProperty(\"p4.client\")) != null) {\n            setClient(tmpprop);\n        }\n        if ((tmpprop = getProject().getProperty(\"p4.user\")) != null) {\n            setUser(tmpprop);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [0, 8], [5, 9], [5, 10], [6, 11], [6, 12], [7, 13], [7, 14], [8, 15], [1, 16], [10, 17], [2, 18], [12, 19], [3, 20], [14, 21], [17, 22], [19, 23], [21, 24], [22, 25], [23, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 0], [9, 5], [10, 5], [11, 6], [12, 6], [13, 7], [14, 7], [15, 8], [16, 1], [17, 10], [18, 2], [19, 12], [20, 3], [21, 14], [22, 17], [23, 19], [24, 21], [25, 22], [26, 23], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "execP4Command", "code": "    protected void execP4Command(String command) throws BuildException {\n        execP4Command(command, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execP4Command", "code": "    protected void execP4Command(String command, P4Handler handler) throws BuildException {\n        try {\n            inError = false;\n            errorMessage = \"\";\n            Commandline commandline = new Commandline();\n            commandline.setExecutable(\"p4\");\n\n            if (P4Port != null && P4Port.length() != 0) {\n                commandline.createArgument().setValue(P4Port);\n            }\n            if (P4User != null && P4User.length() != 0) {\n                commandline.createArgument().setValue(P4User);\n            }\n            if (P4Client != null && P4Client.length() != 0) {\n                commandline.createArgument().setValue(P4Client);\n            }\n            if (P4Opts != null && P4Opts.length() != 0) {\n                commandline.createArgument().setLine(P4Opts);\n            }\n            commandline.createArgument().setLine(command);\n\n            log(commandline.describeCommand(), Project.MSG_VERBOSE);\n\n            if (handler == null) {\n                handler = new SimpleP4OutputHandler(this);\n            }\n\n            Execute exe = new Execute(handler, null);\n\n            exe.setAntRun(getProject());\n\n            exe.setCommandline(commandline.getCommandline());\n\n            try {\n                exe.execute();\n\n                if (inError && failOnError) {\n                    throw new BuildException(errorMessage);\n                }\n            } catch (IOException e) {\n                throw new BuildException(e);\n            } finally {\n                try {\n                    handler.stop();\n                } catch (Exception e) {\n                    log(\"Error stopping execution framework: \" + e.toString(),\n                        Project.MSG_ERR);\n                }\n            }\n\n\n        } catch (Exception e) {\n            String failMsg = \"Problem exec'ing P4 command: \" + e.getMessage();\n            if (failOnError) {\n                if (e instanceof BuildException) {\n                    throw (BuildException) e;\n                } else {\n                    throw new BuildException(failMsg, e);\n                }\n            } else {\n                log(failMsg, Project.MSG_ERR);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "TRY", "VAR_DECL", "IF", "IF", "IF", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "TRY", "CATCH", "IF", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CATCH", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [4, 13], [4, 14], [5, 15], [5, 16], [5, 17], [1, 18], [1, 19], [7, 20], [1, 21], [1, 22], [8, 23], [9, 24], [10, 25], [11, 26], [1, 27], [1, 28], [1, 29], [15, 30], [16, 31], [17, 32], [5, 33], [18, 34], [19, 35], [6, 36], [20, 37], [21, 38], [22, 39], [23, 40], [23, 41], [24, 42], [24, 43], [25, 44], [25, 45], [26, 46], [26, 47], [27, 48], [12, 49], [28, 50], [29, 51], [13, 52], [14, 53], [15, 54], [31, 55], [17, 56], [36, 57], [7, 58], [8, 59], [40, 60], [40, 61], [41, 62], [9, 63], [42, 64], [42, 65], [43, 66], [10, 67], [44, 68], [44, 69], [45, 70], [11, 71], [46, 72], [46, 73], [47, 74], [13, 75], [52, 76], [53, 77], [53, 78], [30, 79], [56, 80], [58, 81], [59, 82], [63, 83], [67, 84], [71, 85], [52, 86], [52, 87], [79, 88], [86, 89], [88, 90], [88, 91], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 4], [14, 4], [15, 5], [16, 5], [17, 5], [18, 1], [19, 1], [20, 7], [21, 1], [22, 1], [23, 8], [24, 9], [25, 10], [26, 11], [27, 1], [28, 1], [29, 1], [30, 15], [31, 16], [32, 17], [33, 5], [34, 18], [35, 19], [36, 6], [37, 20], [38, 21], [39, 22], [40, 23], [41, 23], [42, 24], [43, 24], [44, 25], [45, 25], [46, 26], [47, 26], [48, 27], [49, 12], [50, 28], [51, 29], [52, 13], [53, 14], [54, 15], [55, 31], [56, 17], [57, 36], [58, 7], [59, 8], [60, 40], [61, 40], [62, 41], [63, 9], [64, 42], [65, 42], [66, 43], [67, 10], [68, 44], [69, 44], [70, 45], [71, 11], [72, 46], [73, 46], [74, 47], [75, 13], [76, 52], [77, 53], [78, 53], [79, 30], [80, 56], [81, 58], [82, 59], [83, 63], [84, 67], [85, 71], [86, 52], [87, 52], [88, 79], [89, 86], [90, 88], [91, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91]]}], "label": 0}
{"sample_id": "ant-1.7-1209", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/Recorder.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Recorder", "code": "public class Recorder extends Task implements SubBuildListener {\n\n\n    /** The name of the file to record to. */\n    private String filename = null;\n    /**\n     * Whether or not to append. Need Boolean to record an unset state (null).\n     */\n    private Boolean append = null;\n    /**\n     * Whether to start or stop recording. Need Boolean to record an unset\n     * state (null).\n     */\n    private Boolean start = null;\n    /** The level to log at. A level of -1 means not initialized yet. */\n    private int loglevel = -1;\n    /** Strip task banners if true.  */\n    private boolean emacsMode = false;\n    /** The list of recorder entries. */\n    private static Hashtable recorderEntries = new Hashtable();\n\n\n    /**\n     * Overridden so we can add the task as build listener.\n     *\n     * @since Ant 1.7\n     */\n    public void init() {\n        getProject().addBuildListener(this);\n    }\n\n\n    /**\n     * Sets the name of the file to log to, and the name of the recorder\n     * entry.\n     *\n     * @param fname File name of logfile.\n     */\n    public void setName(String fname) {\n        filename = fname;\n    }\n\n\n    /**\n     * Sets the action for the associated recorder entry.\n     *\n     * @param action The action for the entry to take: start or stop.\n     */\n    public void setAction(ActionChoices action) {\n        if (action.getValue().equalsIgnoreCase(\"start\")) {\n            start = Boolean.TRUE;\n        } else {\n            start = Boolean.FALSE;\n        }\n    }\n\n\n    /**\n     * Whether or not the logger should append to a previous file.\n     * @param append if true, append to a previous file.\n     */\n    public void setAppend(boolean append) {\n        this.append = (append ? Boolean.TRUE : Boolean.FALSE);\n    }\n\n\n    /**\n     * Set emacs mode.\n     * @param emacsMode if true use emacs mode\n     */\n    public void setEmacsMode(boolean emacsMode) {\n        this.emacsMode = emacsMode;\n    }\n\n\n    /**\n     * Sets the level to which this recorder entry should log to.\n     * @param level the level to set.\n     * @see VerbosityLevelChoices\n     */\n    public void setLoglevel(VerbosityLevelChoices level) {\n        loglevel = level.getLevel();\n    }\n\n\n    /**\n     * The main execution.\n     * @throws BuildException on error\n     */\n    public void execute() throws BuildException {\n        if (filename == null) {\n            throw new BuildException(\"No filename specified\");\n        }\n\n        getProject().log(\"setting a recorder for name \" + filename,\n            Project.MSG_DEBUG);\n\n        RecorderEntry recorder = getRecorder(filename, getProject());\n        recorder.setMessageOutputLevel(loglevel);\n        recorder.setEmacsMode(emacsMode);\n        if (start != null) {\n            if (start.booleanValue()) {\n                recorder.reopenFile();\n                recorder.setRecordState(start);\n            } else {\n                recorder.setRecordState(start);\n                recorder.closeFile();\n            }\n        }\n    }\n\n\n    /**\n     * A list of possible values for the <code>setAction()</code> method.\n     * Possible values include: start and stop.\n     */\n    public static class ActionChoices extends EnumeratedAttribute {\n        private static final String[] VALUES = {\"start\", \"stop\"};\n\n        /**\n         * @see EnumeratedAttribute#getValues()\n         */\n        /** {@inheritDoc}. */\n        public String[] getValues() {\n            return VALUES;\n        }\n    }\n\n\n    /**\n     * A list of possible values for the <code>setLoglevel()</code> method.\n     * Possible values include: error, warn, info, verbose, debug.\n     */\n    public static class VerbosityLevelChoices extends LogLevel {\n    }\n\n\n    /**\n     * Gets the recorder that's associated with the passed in name. If the\n     * recorder doesn't exist, then a new one is created.\n     * @param name the name of the recoder\n     * @param proj the current project\n     * @return a recorder\n     * @throws BuildException on error\n     */\n    protected RecorderEntry getRecorder(String name, Project proj)\n         throws BuildException {\n        Object o = recorderEntries.get(name);\n        RecorderEntry entry;\n\n        if (o == null) {\n            entry = new RecorderEntry(name);\n\n            if (append == null) {\n                entry.openFile(false);\n            } else {\n                entry.openFile(append.booleanValue());\n            }\n            entry.setProject(proj);\n            recorderEntries.put(name, entry);\n        } else {\n            entry = (RecorderEntry) o;\n        }\n        return entry;\n    }\n\n    /**\n     * Empty implementation required by SubBuildListener interface.\n     * @param event ignored.\n     * @since Ant 1.7\n     */\n    public void buildStarted(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation required by SubBuildListener interface.\n     * @param event ignored.\n     * @since Ant 1.7\n     */\n    public void subBuildStarted(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation required by SubBuildListener interface.\n     * @param event ignored.\n     * @since Ant 1.7\n     */\n    public void targetStarted(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation required by SubBuildListener interface.\n     * @param event ignored.\n     * @since Ant 1.7\n     */\n    public void targetFinished(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation required by SubBuildListener interface.\n     * @param event ignored.\n     * @since Ant 1.7\n     */\n    public void taskStarted(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation required by SubBuildListener interface.\n     * @param event ignored.\n     * @since Ant 1.7\n     */\n    public void taskFinished(BuildEvent event) {\n    }\n\n    /**\n     * Empty implementation required by SubBuildListener interface.\n     * @param event ignored.\n     * @since Ant 1.7\n     */\n    public void messageLogged(BuildEvent event) {\n    }\n\n    /**\n     * Cleans recorder registry.\n     * @param event ignored.\n     * @since Ant 1.7\n     */\n    public void buildFinished(BuildEvent event) {\n        cleanup();\n    }\n\n    /**\n     * Cleans recorder registry, if this is the subbuild the task has\n     * been created in.\n     * @param event ignored.\n     * @since Ant 1.7\n     */\n    public void subBuildFinished(BuildEvent event) {\n        if (event.getProject() == getProject()) {\n            cleanup();\n        }\n    }\n\n    /**\n     * cleans recorder registry and removes itself from BuildListener list.\n     *\n     * @since Ant 1.7\n     */\n    private void cleanup() {\n        recorderEntries.clear();\n        getProject().removeBuildListener(this);", "functions": [{"function_name": "init", "code": "    public void init() {\n        getProject().addBuildListener(this);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setName", "code": "    public void setName(String fname) {\n        filename = fname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAction", "code": "    public void setAction(ActionChoices action) {\n        if (action.getValue().equalsIgnoreCase(\"start\")) {\n            start = Boolean.TRUE;\n        } else {\n            start = Boolean.FALSE;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [4, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setAppend", "code": "    public void setAppend(boolean append) {\n        this.append = (append ? Boolean.TRUE : Boolean.FALSE);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "COND_EXPR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setEmacsMode", "code": "    public void setEmacsMode(boolean emacsMode) {\n        this.emacsMode = emacsMode;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLoglevel", "code": "    public void setLoglevel(VerbosityLevelChoices level) {\n        loglevel = level.getLevel();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (filename == null) {\n            throw new BuildException(\"No filename specified\");\n        }\n\n        getProject().log(\"setting a recorder for name \" + filename,\n            Project.MSG_DEBUG);\n\n        RecorderEntry recorder = getRecorder(filename, getProject());\n        recorder.setMessageOutputLevel(loglevel);\n        recorder.setEmacsMode(emacsMode);\n        if (start != null) {\n            if (start.booleanValue()) {\n                recorder.reopenFile();\n                recorder.setRecordState(start);\n            } else {\n                recorder.setRecordState(start);\n                recorder.closeFile();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [3, 8], [1, 9], [4, 10], [2, 11], [7, 12], [3, 13], [8, 14], [9, 15], [11, 16], [12, 17], [13, 18], [17, 19], [18, 20], [9, 21], [9, 22], [9, 23], [9, 24], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 3], [9, 1], [10, 4], [11, 2], [12, 7], [13, 3], [14, 8], [15, 9], [16, 11], [17, 12], [18, 13], [19, 17], [20, 18], [21, 9], [22, 9], [23, 9], [24, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getRecorder", "code": "    protected RecorderEntry getRecorder(String name, Project proj)\n         throws BuildException {\n        Object o = recorderEntries.get(name);\n        RecorderEntry entry;\n\n        if (o == null) {\n            entry = new RecorderEntry(name);\n\n            if (append == null) {\n                entry.openFile(false);\n            } else {\n                entry.openFile(append.booleanValue());\n            }\n            entry.setProject(proj);\n            recorderEntries.put(name, entry);\n        } else {\n            entry = (RecorderEntry) o;\n        }\n        return entry;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [4, 10], [2, 11], [2, 12], [2, 13], [8, 14], [2, 15], [14, 16], [15, 17], [8, 18], [8, 19], [18, 20], [19, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 4], [11, 2], [12, 2], [13, 2], [14, 8], [15, 2], [16, 14], [17, 15], [18, 8], [19, 8], [20, 18], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "buildStarted", "code": "    public void buildStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "subBuildStarted", "code": "    public void subBuildStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "targetStarted", "code": "    public void targetStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "targetFinished", "code": "    public void targetFinished(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskStarted", "code": "    public void taskStarted(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "taskFinished", "code": "    public void taskFinished(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "messageLogged", "code": "    public void messageLogged(BuildEvent event) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "buildFinished", "code": "    public void buildFinished(BuildEvent event) {\n        cleanup();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "subBuildFinished", "code": "    public void subBuildFinished(BuildEvent event) {\n        if (event.getProject() == getProject()) {\n            cleanup();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "cleanup", "code": "    private void cleanup() {\n        recorderEntries.clear();\n        getProject().removeBuildListener(this);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.6-7361", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/util/ObjectType.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.ObjectType", "code": "public final class ObjectType extends Type {\n    \n    private String _javaClassName = \"java.lang.Object\";\n    private Class  _clazz = java.lang.Object.class;\n\n    /**\n     * Used to represent a Java Class type such is required to support \n     * non-static java functions. \n     * @param javaClassName name of the class such as 'com.foo.Processor'\n     */\n    protected ObjectType(String javaClassName) {\n\t_javaClassName = javaClassName;\n\n\ttry {\n          _clazz = ObjectFactory.findProviderClass(\n            javaClassName, ObjectFactory.findClassLoader(), true);\n\t}\n\tcatch (ClassNotFoundException e) {\n\t  _clazz = null;\n\t}\n    }\n    \n    protected ObjectType(Class clazz) {\n        _clazz = clazz;\n        _javaClassName = clazz.getName();\t\n    }\n\n    public int hashCode() {\n        return toString().hashCode();\n    }\n\n    public boolean equals(Object obj) {\n        return (obj instanceof ObjectType);\n    }\n\n    public String getJavaClassName() {\n\treturn _javaClassName;\n    }\n    \n    public Class getJavaClass() {\n        return _clazz;\t\n    }\n\n    public String toString() {\n\treturn _javaClassName;\n    }\n\n    public boolean identicalTo(Type other) {\n\treturn this == other;\n    }\n\n    public String toSignature() {\n\tfinal StringBuffer result = new StringBuffer(\"L\");\n\tresult.append(_javaClassName.replace('.', '/')).append(';');\n\treturn result.toString();\n    }\n\n    public org.apache.bcel.generic.Type toJCType() {\n\treturn Util.getJCRefType(toSignature());\n    }\n\n    /**\n     * Translates a void into an object of internal type <code>type</code>.\n     * This translation is needed when calling external functions\n     * that return void.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\n\t}\n    }\n\n    /**\n     * Expects an integer on the stack and pushes its string value by calling\n     * <code>Integer.toString(int i)</code>.\n     *\n     * @see\torg.apache.xalan.xsltc.compiler.util.Type#translateTo\n     */\n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(DUP);\n\tfinal BranchHandle ifNull = il.append(new IFNULL(null));\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(_javaClassName,\n\t\t\t\t\t\t    \"toString\",\n\t\t\t\t\t\t    \"()\" + STRING_SIG)));\n\tfinal BranchHandle gotobh = il.append(new GOTO(null));\n\tifNull.setTarget(il.append(POP));\n\til.append(new PUSH(cpg, \"\"));\n\tgotobh.setTarget(il.append(NOP));\n    }\n\n    /**\n     * Translates an object of this type to the external (Java) type denoted\n     * by <code>clazz</code>. This method is used to translate parameters \n     * when external functions are called.\n     */ \n    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Class clazz) {\n        if (clazz.isAssignableFrom(_clazz))\n\t    methodGen.getInstructionList().append(NOP);\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t       toString(), clazz.getClass().toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\t  \t\n\t}\n    }\n\t\n    /**\n     * Translates an external Java type into an Object type \n     */\n    public void translateFrom(ClassGenerator classGen, \n\t\t\t      MethodGenerator methodGen, Class clazz) {\n\tmethodGen.getInstructionList().append(NOP);\n    }\n\n    public Instruction LOAD(int slot) {\n\treturn new ALOAD(slot);\n    }\n\t\n    public Instruction STORE(int slot) {\n\treturn new ASTORE(slot);", "functions": [{"function_name": "hashCode", "code": "    public int hashCode() {\n        return toString().hashCode();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "equals", "code": "    public boolean equals(Object obj) {\n        return (obj instanceof ObjectType);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getJavaClassName", "code": "    public String getJavaClassName() {\n\treturn _javaClassName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getJavaClass", "code": "    public Class getJavaClass() {\n        return _clazz;\t", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn _javaClassName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "identicalTo", "code": "    public boolean identicalTo(Type other) {\n\treturn this == other;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toSignature", "code": "    public String toSignature() {\n\tfinal StringBuffer result = new StringBuffer(\"L\");\n\tresult.append(_javaClassName.replace('.', '/')).append(';');\n\treturn result.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [4, 5], [4, 6], [2, 7], [5, 8], [5, 9], [6, 10], [7, 11], [1, 0], [2, 0], [3, 1], [4, 0], [5, 4], [6, 4], [7, 2], [8, 5], [9, 5], [10, 6], [11, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "toJCType", "code": "    public org.apache.bcel.generic.Type toJCType() {\n\treturn Util.getJCRefType(toSignature());", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Type type) {\n\tif (type == Type.String) {\n\t    translateTo(classGen, methodGen, (StringType) type);\n\t}\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t\t\ttoString(), type.toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [6, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 6], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    StringType type) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\n\til.append(DUP);\n\tfinal BranchHandle ifNull = il.append(new IFNULL(null));\n\til.append(new INVOKEVIRTUAL(cpg.addMethodref(_javaClassName,\n\t\t\t\t\t\t    \"toString\",\n\t\t\t\t\t\t    \"()\" + STRING_SIG)));\n\tfinal BranchHandle gotobh = il.append(new GOTO(null));\n\tifNull.setTarget(il.append(POP));\n\til.append(new PUSH(cpg, \"\"));\n\tgotobh.setTarget(il.append(NOP));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [8, 13], [9, 14], [10, 15], [1, 16], [11, 17], [2, 18], [3, 19], [4, 20], [14, 21], [16, 22], [17, 23], [18, 24], [22, 25], [23, 26], [23, 27], [24, 28], [26, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 8], [14, 9], [15, 10], [16, 1], [17, 11], [18, 2], [19, 3], [20, 4], [21, 14], [22, 16], [23, 17], [24, 18], [25, 22], [26, 23], [27, 23], [28, 24], [29, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "translateTo", "code": "    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, \n\t\t\t    Class clazz) {\n        if (clazz.isAssignableFrom(_clazz))\n\t    methodGen.getInstructionList().append(NOP);\n\telse {\n\t    ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,\n\t\t\t       toString(), clazz.getClass().toString());\n\t    classGen.getParser().reportError(Constants.FATAL, err);\t  \t", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [7, 9], [8, 10], [6, 11], [11, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 7], [10, 8], [11, 6], [12, 11], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "translateFrom", "code": "    public void translateFrom(ClassGenerator classGen, \n\t\t\t      MethodGenerator methodGen, Class clazz) {\n\tmethodGen.getInstructionList().append(NOP);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "LOAD", "code": "    public Instruction LOAD(int slot) {\n\treturn new ALOAD(slot);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "STORE", "code": "    public Instruction STORE(int slot) {\n\treturn new ASTORE(slot);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ObjectType", "code": "    protected ObjectType(String javaClassName) {\n\t_javaClassName = javaClassName;\n\n\ttry {\n          _clazz = ObjectFactory.findProviderClass(\n            javaClassName, ObjectFactory.findClassLoader(), true);\n\t}\n\tcatch (ClassNotFoundException e) {\n\t  _clazz = null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [3, 6], [5, 7], [6, 8], [7, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [6, 3], [7, 5], [8, 6], [9, 7], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "ObjectType", "code": "    protected ObjectType(Class clazz) {\n        _clazz = clazz;\n        _javaClassName = clazz.getName();\t", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-3.2-3611", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "bsh/LHS.java", "language": "java", "name": "bsh.LHS", "code": "class LHS implements ParserConstants, java.io.Serializable\n{\n\tNameSpace nameSpace;\n\n\tstatic final int\n\t\tVARIABLE = 0,\n\t\tFIELD = 1,\n\t\tPROPERTY = 2,\n\t\tINDEX = 3;\n\n\tint type;\n\n\tString varName;\n\tString propName;\n\tField field;\n\tObject object;\n\tint index;\n\n\tLHS(NameSpace nameSpace, String varName)\n\t{\n\t\ttype = VARIABLE;\n\t\tthis.varName = varName;\n\t\tthis.nameSpace = nameSpace;\n\t}\n\n\t// Static field\n\tLHS(Field field)\n\t{\n\t\ttype = FIELD;\n\t\tthis.object = null;\n\t\tthis.field = field;\n\t}\n\n\t// Object field\n\tLHS(Object object, Field field)\n\t{\n\t\tif(object == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = FIELD;\n\t\tthis.object = object;\n\t\tthis.field = field;\n\t}\n\n\t// Object property\n\tLHS(Object object, String propName)\n\t{\n\t\tif(object == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = PROPERTY;\n\t\tthis.object = object;\n\t\tthis.propName = propName;\n\t}\n\n\t// Array index\n\tLHS(Object array, int index)\n\t{\n\t\tif(array == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = INDEX;\n\t\tthis.object = array;\n\t\tthis.index = index;\n\t}\n\n\tpublic Object getValue() throws EvalError\n\t{\n\t\tif(type == VARIABLE)\n\t\t\treturn nameSpace.getVariable(varName);\n\t\telse if (type == FIELD)\n\t\t\ttry {\n\t\t\t\treturn field.get(object);\n\t\t\t}\n\t\t\tcatch(IllegalAccessException e2) {\n\t\t\t\tthrow new EvalError(\"Can't read field: \" + field);\n\t\t\t}\n\t\telse if(type == PROPERTY)\n\t\t\ttry {\n\t\t\t\treturn Reflect.getObjectProperty(object, propName);\n\t\t\t}\n\t\t\tcatch(ReflectError e) {\n\t\t\t\tInterpreter.debug(e.getMessage());\n\t\t\t\tthrow new EvalError(\"No such property: \" + propName);\n\t\t\t}\n\t\telse if(type == INDEX)\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Reflect.getIndex(object, index);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tthrow new EvalError(\"Array access: \" + e);\n\t\t\t}\n\n\t\tthrow new InterpreterError(\"LHS type\");\n\t}\n\n\tpublic Object assign( Object val ) throws EvalError\n\t{\n\t\tif ( type == VARIABLE )\n\t\t\tnameSpace.setVariable(varName, val);\n\t\telse \n\t\tif ( type == FIELD )\n\t\t\ttry {\n\t\t\t\tif(val instanceof Primitive)\n\t\t\t\t\tval = ((Primitive)val).getValue();\n\n\t\t\t\tfield.set(object, val);\n\t\t\t\treturn val;\n\t\t\t}\n\t\t\tcatch( NullPointerException e) {   \n    \t\t\tthrow new EvalError(\n\t\t\t\t\t\"LHS (\"+field.getName()+\") not a static field.\");\n\t\t\t}     \n   \t\t\tcatch( IllegalAccessException e2) {   \n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"LHS (\"+field.getName()+\") can't access field.\");\n\t\t\t}     \n\t\t\tcatch( IllegalArgumentException e3) {\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"Argument type mismatch. \"\n\t\t\t\t\t+ (val == null ? \"null\" : val.getClass().getName())\n\t\t\t\t\t+ \" not assignable to field \"+field.getName());\n\t\t\t}\n\n\t\telse if(type == PROPERTY)\n\t\t\tif ( object instanceof Hashtable )\n\t\t\t\t((Hashtable)object).put(propName, val);\n\t\t\telse\n\t\t\t\ttry {\n\t\t\t\t\tReflect.setObjectProperty(object, propName, val);\n\t\t\t\t}\n\t\t\t\tcatch(ReflectError e) {\n\t\t\t\t\tInterpreter.debug(\"Assignment: \" + e.getMessage());\n\t\t\t\t\tthrow new EvalError(\"No such property: \" + propName);\n\t\t\t\t}\n\t\telse if(type == INDEX)\n\t\t\ttry {\n\t\t\t\tReflect.setIndex(object, index, val);\n\t\t\t} catch(TargetError e1) { // pass along target error\n\t\t\t\tthrow e1;\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new EvalError(\"Assignment: \" + e.getMessage());\n\t\t\t}\n\n\t\treturn val;\n\t}\n\n\tpublic String toString() { return \"LHS\"; }", "functions": [{"function_name": "getValue", "code": "\tpublic Object getValue() throws EvalError\n\t{\n\t\tif(type == VARIABLE)\n\t\t\treturn nameSpace.getVariable(varName);\n\t\telse if (type == FIELD)\n\t\t\ttry {\n\t\t\t\treturn field.get(object);\n\t\t\t}\n\t\t\tcatch(IllegalAccessException e2) {\n\t\t\t\tthrow new EvalError(\"Can't read field: \" + field);\n\t\t\t}\n\t\telse if(type == PROPERTY)\n\t\t\ttry {\n\t\t\t\treturn Reflect.getObjectProperty(object, propName);\n\t\t\t}\n\t\t\tcatch(ReflectError e) {\n\t\t\t\tInterpreter.debug(e.getMessage());\n\t\t\t\tthrow new EvalError(\"No such property: \" + propName);\n\t\t\t}\n\t\telse if(type == INDEX)\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn Reflect.getIndex(object, index);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tthrow new EvalError(\"Array access: \" + e);\n\t\t\t}\n\n\t\tthrow new InterpreterError(\"LHS type\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "CALL", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "TRY", "BINARY_OP", "CALL", "IF", "TRY", "BINARY_OP", "CATCH", "RETURN", "TRY", "BINARY_OP", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [2, 6], [3, 7], [4, 8], [4, 9], [4, 10], [5, 11], [8, 12], [8, 13], [8, 14], [9, 15], [9, 16], [12, 17], [12, 18], [13, 19], [13, 20], [15, 21], [16, 22], [17, 23], [17, 24], [19, 25], [20, 26], [21, 27], [23, 28], [24, 29], [25, 30], [19, 31], [27, 32], [28, 33], [30, 34], [31, 35], [32, 36], [33, 37], [34, 38], [37, 39], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 2], [7, 3], [8, 4], [9, 4], [10, 4], [11, 5], [12, 8], [13, 8], [14, 8], [15, 9], [16, 9], [17, 12], [18, 12], [19, 13], [20, 13], [21, 15], [22, 16], [23, 17], [24, 17], [25, 19], [26, 20], [27, 21], [28, 23], [29, 24], [30, 25], [31, 19], [32, 27], [33, 28], [34, 30], [35, 31], [36, 32], [37, 33], [38, 34], [39, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39]]}, {"function_name": "assign", "code": "\tpublic Object assign( Object val ) throws EvalError\n\t{\n\t\tif ( type == VARIABLE )\n\t\t\tnameSpace.setVariable(varName, val);\n\t\telse \n\t\tif ( type == FIELD )\n\t\t\ttry {\n\t\t\t\tif(val instanceof Primitive)\n\t\t\t\t\tval = ((Primitive)val).getValue();\n\n\t\t\t\tfield.set(object, val);\n\t\t\t\treturn val;\n\t\t\t}\n\t\t\tcatch( NullPointerException e) {   \n    \t\t\tthrow new EvalError(\n\t\t\t\t\t\"LHS (\"+field.getName()+\") not a static field.\");\n\t\t\t}     \n   \t\t\tcatch( IllegalAccessException e2) {   \n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"LHS (\"+field.getName()+\") can't access field.\");\n\t\t\t}     \n\t\t\tcatch( IllegalArgumentException e3) {\n\t\t\t\tthrow new EvalError(\n\t\t\t\t\t\"Argument type mismatch. \"\n\t\t\t\t\t+ (val == null ? \"null\" : val.getClass().getName())\n\t\t\t\t\t+ \" not assignable to field \"+field.getName());\n\t\t\t}\n\n\t\telse if(type == PROPERTY)\n\t\t\tif ( object instanceof Hashtable )\n\t\t\t\t((Hashtable)object).put(propName, val);\n\t\t\telse\n\t\t\t\ttry {\n\t\t\t\t\tReflect.setObjectProperty(object, propName, val);\n\t\t\t\t}\n\t\t\t\tcatch(ReflectError e) {\n\t\t\t\t\tInterpreter.debug(\"Assignment: \" + e.getMessage());\n\t\t\t\t\tthrow new EvalError(\"No such property: \" + propName);\n\t\t\t\t}\n\t\telse if(type == INDEX)\n\t\t\ttry {\n\t\t\t\tReflect.setIndex(object, index, val);\n\t\t\t} catch(TargetError e1) { // pass along target error\n\t\t\t\tthrow e1;\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new EvalError(\"Assignment: \" + e.getMessage());\n\t\t\t}\n\n\t\treturn val;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "IF", "BINARY_OP", "IF", "TRY", "BINARY_OP", "CALL", "IF", "IF", "BINARY_OP", "CATCH", "CATCH", "CATCH", "RETURN", "IF", "TRY", "BINARY_OP", "TRY", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "CALL", "BINARY_OP", "CATCH", "CATCH", "CATCH", "CALL", "CALL", "CALL", "ASSIGN", "THROW_RAISE", "THROW_RAISE", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [4, 7], [4, 8], [2, 9], [6, 10], [6, 11], [6, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [10, 18], [10, 19], [11, 20], [11, 21], [13, 22], [14, 23], [15, 24], [7, 25], [17, 26], [18, 27], [18, 28], [20, 29], [22, 30], [23, 31], [24, 32], [17, 33], [27, 34], [28, 35], [18, 36], [29, 37], [20, 38], [30, 39], [31, 40], [32, 41], [34, 42], [37, 43], [29, 44], [39, 45], [39, 46], [40, 47], [40, 48], [41, 49], [41, 50], [42, 51], [43, 52], [44, 53], [46, 54], [46, 55], [48, 56], [48, 57], [50, 58], [50, 59], [51, 60], [51, 61], [52, 62], [53, 63], [53, 64], [55, 65], [55, 66], [65, 67], [65, 68], [65, 69], [67, 70], [69, 71], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 4], [8, 4], [9, 2], [10, 6], [11, 6], [12, 6], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 10], [19, 10], [20, 11], [21, 11], [22, 13], [23, 14], [24, 15], [25, 7], [26, 17], [27, 18], [28, 18], [29, 20], [30, 22], [31, 23], [32, 24], [33, 17], [34, 27], [35, 28], [36, 18], [37, 29], [38, 20], [39, 30], [40, 31], [41, 32], [42, 34], [43, 37], [44, 29], [45, 39], [46, 39], [47, 40], [48, 40], [49, 41], [50, 41], [51, 42], [52, 43], [53, 44], [54, 46], [55, 46], [56, 48], [57, 48], [58, 50], [59, 50], [60, 51], [61, 51], [62, 52], [63, 53], [64, 53], [65, 55], [66, 55], [67, 65], [68, 65], [69, 65], [70, 67], [71, 69], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71]]}, {"function_name": "toString", "code": "\tpublic String toString() { return \"LHS\"; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "LHS", "code": "\tLHS(NameSpace nameSpace, String varName)\n\t{\n\t\ttype = VARIABLE;\n\t\tthis.varName = varName;\n\t\tthis.nameSpace = nameSpace;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "LHS", "code": "\tLHS(Field field)\n\t{\n\t\ttype = FIELD;\n\t\tthis.object = null;\n\t\tthis.field = field;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "LHS", "code": "\tLHS(Object object, Field field)\n\t{\n\t\tif(object == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = FIELD;\n\t\tthis.object = object;\n\t\tthis.field = field;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "LHS", "code": "\tLHS(Object object, String propName)\n\t{\n\t\tif(object == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = PROPERTY;\n\t\tthis.object = object;\n\t\tthis.propName = propName;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "LHS", "code": "\tLHS(Object array, int index)\n\t{\n\t\tif(array == null)\n\t\t\tthrow new NullPointerException(\"constructed empty LHS\");\n\n\t\ttype = INDEX;\n\t\tthis.object = array;\n\t\tthis.index = index;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "xalan-2.6-7803", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/utils/XMLChar.java", "language": "java", "name": "org.apache.xml.utils.XMLChar", "code": "public class XMLChar {\n\n\n    /** Character flags. */\n    public static final byte[] CHARS = new byte[1 << 16];\n\n    /** Valid character mask. */\n    public static final int MASK_VALID = 0x01;\n\n    /** Space character mask. */\n    public static final int MASK_SPACE = 0x02;\n\n    /** Name start character mask. */\n    public static final int MASK_NAME_START = 0x04;\n\n    /** Name character mask. */\n    public static final int MASK_NAME = 0x08;\n\n    /** Pubid character mask. */\n    public static final int MASK_PUBID = 0x10;\n    \n    /** \n     * Content character mask. Special characters are those that can\n     * be considered the start of markup, such as '&lt;' and '&amp;'. \n     * The various newline characters are considered special as well.\n     * All other valid XML characters can be considered content.\n     * <p>\n     * This is an optimization for the inner loop of character scanning.\n     */\n    public static final int MASK_CONTENT = 0x20;\n\n    /** NCName start character mask. */\n    public static final int MASK_NCNAME_START = 0x40;\n\n    /** NCName character mask. */\n    public static final int MASK_NCNAME = 0x80;\n\n\n    static {\n        \n\n        int charRange[] = { \n            0x0009, 0x000A, 0x000D, 0x000D, 0x0020, 0xD7FF, 0xE000, 0xFFFD,\n        };\n\n\n        int spaceChar[] = { \n            0x0020, 0x0009, 0x000D, 0x000A,\n        };\n\n\n        int nameChar[] = { \n        };\n\n\n        int nameStartChar[] = { \n        };\n\n\n        int pubidChar[] = {\n            0x000A, 0x000D, 0x0020, 0x0021, 0x0023, 0x0024, 0x0025, 0x003D,\n            0x005F\n        };\n\n        int pubidRange[] = {\n            0x0027, 0x003B, 0x003F, 0x005A, 0x0061, 0x007A\n        };\n\n\n        int letterRange[] = {\n            0x0041, 0x005A, 0x0061, 0x007A, 0x00C0, 0x00D6, 0x00D8, 0x00F6,\n            0x00F8, 0x0131, 0x0134, 0x013E, 0x0141, 0x0148, 0x014A, 0x017E,\n            0x0180, 0x01C3, 0x01CD, 0x01F0, 0x01F4, 0x01F5, 0x01FA, 0x0217,\n            0x0250, 0x02A8, 0x02BB, 0x02C1, 0x0388, 0x038A, 0x038E, 0x03A1,\n            0x03A3, 0x03CE, 0x03D0, 0x03D6, 0x03E2, 0x03F3, 0x0401, 0x040C,\n            0x040E, 0x044F, 0x0451, 0x045C, 0x045E, 0x0481, 0x0490, 0x04C4,\n            0x04C7, 0x04C8, 0x04CB, 0x04CC, 0x04D0, 0x04EB, 0x04EE, 0x04F5,\n            0x04F8, 0x04F9, 0x0531, 0x0556, 0x0561, 0x0586, 0x05D0, 0x05EA,\n            0x05F0, 0x05F2, 0x0621, 0x063A, 0x0641, 0x064A, 0x0671, 0x06B7,\n            0x06BA, 0x06BE, 0x06C0, 0x06CE, 0x06D0, 0x06D3, 0x06E5, 0x06E6,\n            0x0905, 0x0939, 0x0958, 0x0961, 0x0985, 0x098C, 0x098F, 0x0990,\n            0x0993, 0x09A8, 0x09AA, 0x09B0, 0x09B6, 0x09B9, 0x09DC, 0x09DD,\n            0x09DF, 0x09E1, 0x09F0, 0x09F1, 0x0A05, 0x0A0A, 0x0A0F, 0x0A10,\n            0x0A13, 0x0A28, 0x0A2A, 0x0A30, 0x0A32, 0x0A33, 0x0A35, 0x0A36,\n            0x0A38, 0x0A39, 0x0A59, 0x0A5C, 0x0A72, 0x0A74, 0x0A85, 0x0A8B,\n            0x0A8F, 0x0A91, 0x0A93, 0x0AA8, 0x0AAA, 0x0AB0, 0x0AB2, 0x0AB3,\n            0x0AB5, 0x0AB9, 0x0B05, 0x0B0C, 0x0B0F, 0x0B10, 0x0B13, 0x0B28,\n            0x0B2A, 0x0B30, 0x0B32, 0x0B33, 0x0B36, 0x0B39, 0x0B5C, 0x0B5D,\n            0x0B5F, 0x0B61, 0x0B85, 0x0B8A, 0x0B8E, 0x0B90, 0x0B92, 0x0B95,\n            0x0B99, 0x0B9A, 0x0B9E, 0x0B9F, 0x0BA3, 0x0BA4, 0x0BA8, 0x0BAA,\n            0x0BAE, 0x0BB5, 0x0BB7, 0x0BB9, 0x0C05, 0x0C0C, 0x0C0E, 0x0C10,\n            0x0C12, 0x0C28, 0x0C2A, 0x0C33, 0x0C35, 0x0C39, 0x0C60, 0x0C61,\n            0x0C85, 0x0C8C, 0x0C8E, 0x0C90, 0x0C92, 0x0CA8, 0x0CAA, 0x0CB3,\n            0x0CB5, 0x0CB9, 0x0CE0, 0x0CE1, 0x0D05, 0x0D0C, 0x0D0E, 0x0D10,\n            0x0D12, 0x0D28, 0x0D2A, 0x0D39, 0x0D60, 0x0D61, 0x0E01, 0x0E2E,\n            0x0E32, 0x0E33, 0x0E40, 0x0E45, 0x0E81, 0x0E82, 0x0E87, 0x0E88,\n            0x0E94, 0x0E97, 0x0E99, 0x0E9F, 0x0EA1, 0x0EA3, 0x0EAA, 0x0EAB,\n            0x0EAD, 0x0EAE, 0x0EB2, 0x0EB3, 0x0EC0, 0x0EC4, 0x0F40, 0x0F47,\n            0x0F49, 0x0F69, 0x10A0, 0x10C5, 0x10D0, 0x10F6, 0x1102, 0x1103,\n            0x1105, 0x1107, 0x110B, 0x110C, 0x110E, 0x1112, 0x1154, 0x1155,\n            0x115F, 0x1161, 0x116D, 0x116E, 0x1172, 0x1173, 0x11AE, 0x11AF,\n            0x11B7, 0x11B8, 0x11BC, 0x11C2, 0x1E00, 0x1E9B, 0x1EA0, 0x1EF9,\n            0x1F00, 0x1F15, 0x1F18, 0x1F1D, 0x1F20, 0x1F45, 0x1F48, 0x1F4D,\n            0x1F50, 0x1F57, 0x1F5F, 0x1F7D, 0x1F80, 0x1FB4, 0x1FB6, 0x1FBC,\n            0x1FC2, 0x1FC4, 0x1FC6, 0x1FCC, 0x1FD0, 0x1FD3, 0x1FD6, 0x1FDB,\n            0x1FE0, 0x1FEC, 0x1FF2, 0x1FF4, 0x1FF6, 0x1FFC, 0x212A, 0x212B,\n            0x2180, 0x2182, 0x3041, 0x3094, 0x30A1, 0x30FA, 0x3105, 0x312C,\n            0xAC00, 0xD7A3,\n            0x3021, 0x3029, 0x4E00, 0x9FA5,\n        };\n        int letterChar[] = {\n            0x0386, 0x038C, 0x03DA, 0x03DC, 0x03DE, 0x03E0, 0x0559, 0x06D5,\n            0x093D, 0x09B2, 0x0A5E, 0x0A8D, 0x0ABD, 0x0AE0, 0x0B3D, 0x0B9C,\n            0x0CDE, 0x0E30, 0x0E84, 0x0E8A, 0x0E8D, 0x0EA5, 0x0EA7, 0x0EB0,\n            0x0EBD, 0x1100, 0x1109, 0x113C, 0x113E, 0x1140, 0x114C, 0x114E,\n            0x1150, 0x1159, 0x1163, 0x1165, 0x1167, 0x1169, 0x1175, 0x119E,\n            0x11A8, 0x11AB, 0x11BA, 0x11EB, 0x11F0, 0x11F9, 0x1F59, 0x1F5B,\n            0x1F5D, 0x1FBE, 0x2126, 0x212E,\n            0x3007,\n        };\n\n\n        int combiningCharRange[] = {\n            0x0300, 0x0345, 0x0360, 0x0361, 0x0483, 0x0486, 0x0591, 0x05A1,\n            0x05A3, 0x05B9, 0x05BB, 0x05BD, 0x05C1, 0x05C2, 0x064B, 0x0652,\n            0x06D6, 0x06DC, 0x06DD, 0x06DF, 0x06E0, 0x06E4, 0x06E7, 0x06E8,\n            0x06EA, 0x06ED, 0x0901, 0x0903, 0x093E, 0x094C, 0x0951, 0x0954,\n            0x0962, 0x0963, 0x0981, 0x0983, 0x09C0, 0x09C4, 0x09C7, 0x09C8,\n            0x09CB, 0x09CD, 0x09E2, 0x09E3, 0x0A40, 0x0A42, 0x0A47, 0x0A48,\n            0x0A4B, 0x0A4D, 0x0A70, 0x0A71, 0x0A81, 0x0A83, 0x0ABE, 0x0AC5,\n            0x0AC7, 0x0AC9, 0x0ACB, 0x0ACD, 0x0B01, 0x0B03, 0x0B3E, 0x0B43,\n            0x0B47, 0x0B48, 0x0B4B, 0x0B4D, 0x0B56, 0x0B57, 0x0B82, 0x0B83,\n            0x0BBE, 0x0BC2, 0x0BC6, 0x0BC8, 0x0BCA, 0x0BCD, 0x0C01, 0x0C03,\n            0x0C3E, 0x0C44, 0x0C46, 0x0C48, 0x0C4A, 0x0C4D, 0x0C55, 0x0C56,\n            0x0C82, 0x0C83, 0x0CBE, 0x0CC4, 0x0CC6, 0x0CC8, 0x0CCA, 0x0CCD,\n            0x0CD5, 0x0CD6, 0x0D02, 0x0D03, 0x0D3E, 0x0D43, 0x0D46, 0x0D48,\n            0x0D4A, 0x0D4D, 0x0E34, 0x0E3A, 0x0E47, 0x0E4E, 0x0EB4, 0x0EB9,\n            0x0EBB, 0x0EBC, 0x0EC8, 0x0ECD, 0x0F18, 0x0F19, 0x0F71, 0x0F84,\n            0x0F86, 0x0F8B, 0x0F90, 0x0F95, 0x0F99, 0x0FAD, 0x0FB1, 0x0FB7,\n            0x20D0, 0x20DC, 0x302A, 0x302F,\n        };\n\n        int combiningCharChar[] = {\n            0x05BF, 0x05C4, 0x0670, 0x093C, 0x094D, 0x09BC, 0x09BE, 0x09BF,\n            0x09D7, 0x0A02, 0x0A3C, 0x0A3E, 0x0A3F, 0x0ABC, 0x0B3C, 0x0BD7,\n            0x0D57, 0x0E31, 0x0EB1, 0x0F35, 0x0F37, 0x0F39, 0x0F3E, 0x0F3F,\n            0x0F97, 0x0FB9, 0x20E1, 0x3099, 0x309A,\n        };\n\n\n        int digitRange[] = {\n            0x0030, 0x0039, 0x0660, 0x0669, 0x06F0, 0x06F9, 0x0966, 0x096F,\n            0x09E6, 0x09EF, 0x0A66, 0x0A6F, 0x0AE6, 0x0AEF, 0x0B66, 0x0B6F,\n            0x0BE7, 0x0BEF, 0x0C66, 0x0C6F, 0x0CE6, 0x0CEF, 0x0D66, 0x0D6F,\n            0x0E50, 0x0E59, 0x0ED0, 0x0ED9, 0x0F20, 0x0F29,\n        };\n\n\n        int extenderRange[] = {\n            0x3031, 0x3035, 0x309D, 0x309E, 0x30FC, 0x30FE,\n        };\n\n        int extenderChar[] = {\n            0x00B7, 0x02D0, 0x02D1, 0x0387, 0x0640, 0x0E46, 0x0EC6, 0x3005,\n        };\n\n\n        int specialChar[] = {\n            '<', '&', '\\n', '\\r', ']',\n        };\n\n\n        for (int i = 0; i < charRange.length; i += 2) {\n            for (int j = charRange[i]; j <= charRange[i + 1]; j++) {\n                CHARS[j] |= MASK_VALID | MASK_CONTENT;\n            }\n        }\n\n        for (int i = 0; i < specialChar.length; i++) {\n            CHARS[specialChar[i]] = (byte)(CHARS[specialChar[i]] & ~MASK_CONTENT);\n        }\n\n        for (int i = 0; i < spaceChar.length; i++) {\n            CHARS[spaceChar[i]] |= MASK_SPACE;\n        }\n\n        for (int i = 0; i < nameStartChar.length; i++) {\n            CHARS[nameStartChar[i]] |= MASK_NAME_START | MASK_NAME | \n                                       MASK_NCNAME_START | MASK_NCNAME;\n        }\n        for (int i = 0; i < letterRange.length; i += 2) {\n            for (int j = letterRange[i]; j <= letterRange[i + 1]; j++) {\n                CHARS[j] |= MASK_NAME_START | MASK_NAME |\n                            MASK_NCNAME_START | MASK_NCNAME;\n            }\n        }\n        for (int i = 0; i < letterChar.length; i++) {\n            CHARS[letterChar[i]] |= MASK_NAME_START | MASK_NAME |\n                                    MASK_NCNAME_START | MASK_NCNAME;\n        }\n\n        for (int i = 0; i < nameChar.length; i++) {\n            CHARS[nameChar[i]] |= MASK_NAME | MASK_NCNAME;\n        }\n        for (int i = 0; i < digitRange.length; i += 2) {\n            for (int j = digitRange[i]; j <= digitRange[i + 1]; j++) {\n                CHARS[j] |= MASK_NAME | MASK_NCNAME;\n            }\n        }\n        for (int i = 0; i < combiningCharRange.length; i += 2) {\n            for (int j = combiningCharRange[i]; j <= combiningCharRange[i + 1]; j++) {\n                CHARS[j] |= MASK_NAME | MASK_NCNAME;\n            }\n        }\n        for (int i = 0; i < combiningCharChar.length; i++) {\n            CHARS[combiningCharChar[i]] |= MASK_NAME | MASK_NCNAME;\n        }\n        for (int i = 0; i < extenderRange.length; i += 2) {\n            for (int j = extenderRange[i]; j <= extenderRange[i + 1]; j++) {\n                CHARS[j] |= MASK_NAME | MASK_NCNAME;\n            }\n        }\n        for (int i = 0; i < extenderChar.length; i++) {\n            CHARS[extenderChar[i]] |= MASK_NAME | MASK_NCNAME;\n        }\n\n        CHARS[':'] &= ~(MASK_NCNAME_START | MASK_NCNAME);\n\n        for (int i = 0; i < pubidChar.length; i++) {\n            CHARS[pubidChar[i]] |= MASK_PUBID;\n        }\n        for (int i = 0; i < pubidRange.length; i += 2) {\n            for (int j = pubidRange[i]; j <= pubidRange[i + 1]; j++) {\n                CHARS[j] |= MASK_PUBID;\n            }\n        }\n\t}\n\n\n    /**\n     * Returns true if the specified character is a supplemental character.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isSupplemental(int c) {\n        return (c >= 0x10000 && c <= 0x10FFFF);\n    }\n\n    /**\n     * Returns true the supplemental character corresponding to the given\n     * surrogates.\n     *\n     * @param h The high surrogate.\n     * @param l The low surrogate.\n     */\n    public static int supplemental(char h, char l) {\n        return (h - 0xD800) * 0x400 + (l - 0xDC00) + 0x10000;\n    }\n\n    /**\n     * Returns the high surrogate of a supplemental character\n     *\n     * @param c The supplemental character to \"split\".\n     */\n    public static char highSurrogate(int c) {\n        return (char) (((c - 0x00010000) >> 10) + 0xD800);\n    }\n\n    /**\n     * Returns the low surrogate of a supplemental character\n     *\n     * @param c The supplemental character to \"split\".\n     */\n    public static char lowSurrogate(int c) {\n        return (char) (((c - 0x00010000) & 0x3FF) + 0xDC00);\n    }\n\n    /**\n     * Returns whether the given character is a high surrogate\n     *\n     * @param c The character to check.\n     */\n    public static boolean isHighSurrogate(int c) {\n        return (0xD800 <= c && c <= 0xDBFF);\n    }\n\n    /**\n     * Returns whether the given character is a low surrogate\n     *\n     * @param c The character to check.\n     */\n    public static boolean isLowSurrogate(int c) {\n        return (0xDC00 <= c && c <= 0xDFFF);\n    }\n\n\n    /**\n     * Returns true if the specified character is valid. This method\n     * also checks the surrogate character range from 0x10000 to 0x10FFFF.\n     * <p>\n     * If the program chooses to apply the mask directly to the\n     * <code>CHARS</code> array, then they are responsible for checking\n     * the surrogate character range.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isValid(int c) {\n        return (c < 0x10000 && (CHARS[c] & MASK_VALID) != 0) ||\n               (0x10000 <= c && c <= 0x10FFFF);\n\t}\n    /**\n     * Returns true if the specified character is invalid.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isInvalid(int c) {\n        return !isValid(c);\n\t}\n    /**\n     * Returns true if the specified character can be considered content.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isContent(int c) {\n        return (c < 0x10000 && (CHARS[c] & MASK_CONTENT) != 0) ||\n               (0x10000 <= c && c <= 0x10FFFF);\n\t}\n    /**\n     * Returns true if the specified character can be considered markup.\n     * Markup characters include '&lt;', '&amp;', and '%'.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isMarkup(int c) {\n        return c == '<' || c == '&' || c == '%';\n\t}\n    /**\n     * Returns true if the specified character is a space character\n     * as defined by production [3] in the XML 1.0 specification.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isSpace(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_SPACE) != 0;\n\t}\n    /**\n     * Returns true if the specified character is a valid name start\n     * character as defined by production [5] in the XML 1.0\n     * specification.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isNameStart(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_NAME_START) != 0;\n\t}\n    /**\n     * Returns true if the specified character is a valid name\n     * character as defined by production [4] in the XML 1.0\n     * specification.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isName(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_NAME) != 0;\n\t}\n    /**\n     * Returns true if the specified character is a valid NCName start\n     * character as defined by production [4] in Namespaces in XML\n     * recommendation.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isNCNameStart(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_NCNAME_START) != 0;\n\t}\n    /**\n     * Returns true if the specified character is a valid NCName\n     * character as defined by production [5] in Namespaces in XML\n     * recommendation.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isNCName(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_NCNAME) != 0;\n\t}\n    /**\n     * Returns true if the specified character is a valid Pubid\n     * character as defined by production [13] in the XML 1.0\n     * specification.\n     *\n     * @param c The character to check.\n     */\n    public static boolean isPubid(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_PUBID) != 0;\n\t}\n    /*\n     * [5] Name ::= (Letter | '_' | ':') (NameChar)*\n     */\n    /**\n     * Check to see if a string is a valid Name according to [5]\n     * in the XML 1.0 Recommendation\n     *\n     * @param name string to check\n     * @return true if name is a valid Name\n     */\n    public static boolean isValidName(String name) {\n        if (name.length() == 0)\n            return false;\n        char ch = name.charAt(0);\n        if( isNameStart(ch) == false)\n           return false;\n        for (int i = 1; i < name.length(); i++ ) {\n           ch = name.charAt(i);\n           if( isName( ch ) == false ){\n              return false;\n           }\n        }\n        return true;\n    }\n\n    /*\n     * from the namespace rec\n     * [4] NCName ::= (Letter | '_') (NCNameChar)*\n     */\n    /**\n     * Check to see if a string is a valid NCName according to [4]\n     * from the XML Namespaces 1.0 Recommendation\n     *\n     * @param name string to check\n     * @return true if name is a valid NCName\n     */\n    public static boolean isValidNCName(String ncName) {\n        if (ncName.length() == 0)\n            return false;\n        char ch = ncName.charAt(0);\n        if( isNCNameStart(ch) == false)\n           return false;\n        for (int i = 1; i < ncName.length(); i++ ) {\n           ch = ncName.charAt(i);\n           if( isNCName( ch ) == false ){\n              return false;\n           }\n        }\n        return true;\n\t}\n    /*\n     * [7] Nmtoken ::= (NameChar)+\n     */\n    /**\n     * Check to see if a string is a valid Nmtoken according to [7]\n     * in the XML 1.0 Recommendation\n     *\n     * @param nmtoken string to check\n     * @return true if nmtoken is a valid Nmtoken \n     */\n    public static boolean isValidNmtoken(String nmtoken) {\n        if (nmtoken.length() == 0)\n            return false;\n        for (int i = 0; i < nmtoken.length(); i++ ) {\n           char ch = nmtoken.charAt(i);\n           if(  ! isName( ch ) ){\n              return false;\n           }\n        }\n        return true;\n\t}\n\n\n\n\n\n    /**\n     * Returns true if the encoding name is a valid IANA encoding.\n     * This method does not verify that there is a decoder available\n     * for this encoding, only that the characters are valid for an\n     * IANA encoding name.\n     *\n     * @param ianaEncoding The IANA encoding name.\n     */\n    public static boolean isValidIANAEncoding(String ianaEncoding) {\n        if (ianaEncoding != null) {\n            int length = ianaEncoding.length();\n            if (length > 0) {\n                char c = ianaEncoding.charAt(0);\n                if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) {\n                    for (int i = 1; i < length; i++) {\n                        c = ianaEncoding.charAt(i);\n                        if ((c < 'A' || c > 'Z') && (c < 'a' || c > 'z') &&\n                            (c < '0' || c > '9') && c != '.' && c != '_' &&\n                            c != '-') {\n                            return false;\n                        }\n                    }\n                    return true;\n                }\n            }\n        }\n        return false;\n\t}\n    /**\n     * Returns true if the encoding name is a valid Java encoding.\n     * This method does not verify that there is a decoder available\n     * for this encoding, only that the characters are valid for an\n     * Java encoding name.\n     *\n     * @param javaEncoding The Java encoding name.\n     */\n    public static boolean isValidJavaEncoding(String javaEncoding) {\n        if (javaEncoding != null) {\n            int length = javaEncoding.length();\n            if (length > 0) {\n                for (int i = 1; i < length; i++) {\n                    char c = javaEncoding.charAt(i);\n                    if ((c < 'A' || c > 'Z') && (c < 'a' || c > 'z') &&\n                        (c < '0' || c > '9') && c != '.' && c != '_' &&\n                        c != '-') {\n                        return false;\n                    }\n                }\n                return true;\n            }\n        }\n        return false;\n    }\n   /**\n     * Simple check to determine if qname is legal. If it returns false\n     * then <param>str</param> is illegal; if it returns true then \n     * <param>str</param> is legal.\n     */\n    public static boolean isValidQName(String str) {\n       \n       final int colon = str.indexOf(':');\n       \n       if (colon == 0 || colon == str.length() - 1) {\n           return false;\n       }       \n       \n       if (colon > 0) {\n           final String prefix = str.substring(0,colon);\n           final String localPart = str.substring(colon+1);\n           return isValidNCName(prefix) && isValidNCName(localPart);\n       }\n       else {\n           return isValidNCName(str);", "functions": [{"function_name": "isSupplemental", "code": "    public static boolean isSupplemental(int c) {\n        return (c >= 0x10000 && c <= 0x10FFFF);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "supplemental", "code": "    public static int supplemental(char h, char l) {\n        return (h - 0xD800) * 0x400 + (l - 0xDC00) + 0x10000;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [6, 7], [6, 8], [7, 9], [8, 10], [8, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 6], [8, 6], [9, 7], [10, 8], [11, 8], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "highSurrogate", "code": "    public static char highSurrogate(int c) {\n        return (char) (((c - 0x00010000) >> 10) + 0xD800);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "lowSurrogate", "code": "    public static char lowSurrogate(int c) {\n        return (char) (((c - 0x00010000) & 0x3FF) + 0xDC00);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isHighSurrogate", "code": "    public static boolean isHighSurrogate(int c) {\n        return (0xD800 <= c && c <= 0xDBFF);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isLowSurrogate", "code": "    public static boolean isLowSurrogate(int c) {\n        return (0xDC00 <= c && c <= 0xDFFF);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isValid", "code": "    public static boolean isValid(int c) {\n        return (c < 0x10000 && (CHARS[c] & MASK_VALID) != 0) ||\n               (0x10000 <= c && c <= 0x10FFFF);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [5, 9], [6, 10], [7, 11], [8, 12], [8, 13], [9, 14], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 5], [10, 6], [11, 7], [12, 8], [13, 8], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isInvalid", "code": "    public static boolean isInvalid(int c) {\n        return !isValid(c);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isContent", "code": "    public static boolean isContent(int c) {\n        return (c < 0x10000 && (CHARS[c] & MASK_CONTENT) != 0) ||\n               (0x10000 <= c && c <= 0x10FFFF);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [5, 9], [6, 10], [7, 11], [8, 12], [8, 13], [9, 14], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 5], [10, 6], [11, 7], [12, 8], [13, 8], [14, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "isMarkup", "code": "    public static boolean isMarkup(int c) {\n        return c == '<' || c == '&' || c == '%';", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [5, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [8, 5], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isSpace", "code": "    public static boolean isSpace(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_SPACE) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isNameStart", "code": "    public static boolean isNameStart(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_NAME_START) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isName", "code": "    public static boolean isName(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_NAME) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isNCNameStart", "code": "    public static boolean isNCNameStart(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_NCNAME_START) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isNCName", "code": "    public static boolean isNCName(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_NCNAME) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isPubid", "code": "    public static boolean isPubid(int c) {\n        return c < 0x10000 && (CHARS[c] & MASK_PUBID) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "isValidName", "code": "    public static boolean isValidName(String name) {\n        if (name.length() == 0)\n            return false;\n        char ch = name.charAt(0);\n        if( isNameStart(ch) == false)\n           return false;\n        for (int i = 1; i < name.length(); i++ ) {\n           ch = name.charAt(i);\n           if( isName( ch ) == false ){\n              return false;\n           }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [3, 10], [5, 11], [5, 12], [2, 13], [8, 14], [9, 15], [10, 16], [10, 17], [4, 18], [11, 19], [12, 20], [12, 21], [13, 22], [2, 23], [2, 24], [18, 25], [13, 26], [22, 27], [22, 28], [23, 29], [26, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 3], [11, 5], [12, 5], [13, 2], [14, 8], [15, 9], [16, 10], [17, 10], [18, 4], [19, 11], [20, 12], [21, 12], [22, 13], [23, 2], [24, 2], [25, 18], [26, 13], [27, 22], [28, 22], [29, 23], [30, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "isValidNCName", "code": "    public static boolean isValidNCName(String ncName) {\n        if (ncName.length() == 0)\n            return false;\n        char ch = ncName.charAt(0);\n        if( isNCNameStart(ch) == false)\n           return false;\n        for (int i = 1; i < ncName.length(); i++ ) {\n           ch = ncName.charAt(i);\n           if( isNCName( ch ) == false ){\n              return false;\n           }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [3, 10], [5, 11], [5, 12], [2, 13], [8, 14], [9, 15], [10, 16], [10, 17], [4, 18], [11, 19], [12, 20], [12, 21], [13, 22], [2, 23], [2, 24], [18, 25], [13, 26], [22, 27], [22, 28], [23, 29], [26, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 3], [11, 5], [12, 5], [13, 2], [14, 8], [15, 9], [16, 10], [17, 10], [18, 4], [19, 11], [20, 12], [21, 12], [22, 13], [23, 2], [24, 2], [25, 18], [26, 13], [27, 22], [28, 22], [29, 23], [30, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "isValidNmtoken", "code": "    public static boolean isValidNmtoken(String nmtoken) {\n        if (nmtoken.length() == 0)\n            return false;\n        for (int i = 0; i < nmtoken.length(); i++ ) {\n           char ch = nmtoken.charAt(i);\n           if(  ! isName( ch ) ){\n              return false;\n           }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [3, 8], [2, 9], [2, 10], [6, 11], [7, 12], [8, 13], [8, 14], [9, 15], [2, 16], [9, 17], [10, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 3], [9, 2], [10, 2], [11, 6], [12, 7], [13, 8], [14, 8], [15, 9], [16, 2], [17, 9], [18, 10], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "isValidIANAEncoding", "code": "    public static boolean isValidIANAEncoding(String ianaEncoding) {\n        if (ianaEncoding != null) {\n            int length = ianaEncoding.length();\n            if (length > 0) {\n                char c = ianaEncoding.charAt(0);\n                if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) {\n                    for (int i = 1; i < length; i++) {\n                        c = ianaEncoding.charAt(i);\n                        if ((c < 'A' || c > 'Z') && (c < 'a' || c > 'z') &&\n                            (c < '0' || c > '9') && c != '.' && c != '_' &&\n                            c != '-') {\n                            return false;\n                        }\n                    }\n                    return true;\n                }\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LOOP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [9, 12], [7, 13], [10, 14], [10, 15], [10, 16], [14, 17], [14, 18], [11, 19], [15, 20], [16, 21], [17, 22], [17, 23], [18, 24], [18, 25], [19, 26], [16, 27], [22, 28], [23, 29], [24, 30], [25, 31], [27, 32], [16, 33], [16, 34], [27, 35], [32, 36], [32, 37], [33, 38], [35, 39], [36, 40], [37, 41], [37, 42], [41, 43], [42, 44], [42, 45], [44, 46], [45, 47], [45, 48], [47, 49], [47, 50], [48, 51], [48, 52], [49, 53], [50, 54], [51, 55], [51, 56], [52, 57], [52, 58], [55, 59], [56, 60], [57, 61], [58, 62], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 9], [13, 7], [14, 10], [15, 10], [16, 10], [17, 14], [18, 14], [19, 11], [20, 15], [21, 16], [22, 17], [23, 17], [24, 18], [25, 18], [26, 19], [27, 16], [28, 22], [29, 23], [30, 24], [31, 25], [32, 27], [33, 16], [34, 16], [35, 27], [36, 32], [37, 32], [38, 33], [39, 35], [40, 36], [41, 37], [42, 37], [43, 41], [44, 42], [45, 42], [46, 44], [47, 45], [48, 45], [49, 47], [50, 47], [51, 48], [52, 48], [53, 49], [54, 50], [55, 51], [56, 51], [57, 52], [58, 52], [59, 55], [60, 56], [61, 57], [62, 58], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62]]}, {"function_name": "isValidJavaEncoding", "code": "    public static boolean isValidJavaEncoding(String javaEncoding) {\n        if (javaEncoding != null) {\n            int length = javaEncoding.length();\n            if (length > 0) {\n                for (int i = 1; i < length; i++) {\n                    char c = javaEncoding.charAt(i);\n                    if ((c < 'A' || c > 'Z') && (c < 'a' || c > 'z') &&\n                        (c < '0' || c > '9') && c != '.' && c != '_' &&\n                        c != '-') {\n                        return false;\n                    }\n                }\n                return true;\n            }\n        }\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [9, 12], [7, 13], [10, 14], [11, 15], [11, 16], [11, 17], [16, 18], [11, 19], [16, 20], [18, 21], [18, 22], [17, 23], [20, 24], [21, 25], [22, 26], [22, 27], [26, 28], [27, 29], [27, 30], [29, 31], [30, 32], [30, 33], [32, 34], [32, 35], [33, 36], [33, 37], [34, 38], [35, 39], [36, 40], [36, 41], [37, 42], [37, 43], [40, 44], [41, 45], [42, 46], [43, 47], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 9], [13, 7], [14, 10], [15, 11], [16, 11], [17, 11], [18, 16], [19, 11], [20, 16], [21, 18], [22, 18], [23, 17], [24, 20], [25, 21], [26, 22], [27, 22], [28, 26], [29, 27], [30, 27], [31, 29], [32, 30], [33, 30], [34, 32], [35, 32], [36, 33], [37, 33], [38, 34], [39, 35], [40, 36], [41, 36], [42, 37], [43, 37], [44, 40], [45, 41], [46, 42], [47, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47]]}, {"function_name": "isValidQName", "code": "    public static boolean isValidQName(String str) {\n       \n       final int colon = str.indexOf(':');\n       \n       if (colon == 0 || colon == str.length() - 1) {\n           return false;\n       }       \n       \n       if (colon > 0) {\n           final String prefix = str.substring(0,colon);\n           final String localPart = str.substring(colon+1);\n           return isValidNCName(prefix) && isValidNCName(localPart);\n       }\n       else {\n           return isValidNCName(str);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [2, 12], [6, 13], [6, 14], [3, 15], [7, 16], [8, 17], [12, 18], [13, 19], [14, 20], [15, 21], [17, 22], [17, 23], [9, 24], [10, 25], [19, 26], [19, 27], [24, 28], [25, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 2], [13, 6], [14, 6], [15, 3], [16, 7], [17, 8], [18, 12], [19, 13], [20, 14], [21, 15], [22, 17], [23, 17], [24, 9], [25, 10], [26, 19], [27, 19], [28, 24], [29, 25], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}], "label": 1}
{"sample_id": "xalan-2.4-6659", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/lib/ExsltSets.java", "language": "java", "name": "org.apache.xalan.lib.ExsltSets", "code": "public class ExsltSets\n{   \n  /**\n   * The set:leading function returns the nodes in the node set passed as the first argument that\n   * precede, in document order, the first node in the node set passed as the second argument. If\n   * the first node in the second node set is not contained in the first node set, then an empty\n   * node set is returned. If the second node set is empty, then the first node set is returned.\n   * \n   * @param ni1 NodeIterator for first node-set.\n   * @param ni2 NodeIterator for second node-set.\n   * @return a node-set containing the nodes in ni1 that precede in document order the first\n   * node in ni2; an empty node-set if the first node in ni2 is not in ni1; all of ni1 if n12\n   * is empty.\n   * \n   */\n  public static NodeSet leading (NodeIterator ni1, NodeIterator ni2)\n  {\n    NodeSet ns1 = new NodeSet(ni1);\n    NodeSet ns2 = new NodeSet(ni2);\n    NodeSet leadNodes = new NodeSet();\n    if (ns2.getLength() == 0)\n      return ns1;\n    Node endNode = ns2.elementAt(0);\n    if (!ns1.contains(endNode))\n    for (int i = 0; i < ns1.getLength(); i++)\n    {\n      Node testNode = ns1.elementAt(i);\n      if (DOMHelper.isNodeAfter(testNode, endNode) \n          && !(DOMHelper.isNodeTheSame(testNode, endNode)))\n        leadNodes.addElement(testNode);\n    }\n    return leadNodes;\n  }\n  \n  /**\n   * The set:trailing function returns the nodes in the node set passed as the first argument that \n   * follow, in document order, the first node in the node set passed as the second argument. If \n   * the first node in the second node set is not contained in the first node set, then an empty \n   * node set is returned. If the second node set is empty, then the first node set is returned. \n   * \n   * @param ni1 NodeIterator for first node-set.\n   * @param ni2 NodeIterator for second node-set.\n   * @return a node-set containing the nodes in ni1 that follow in document order the first\n   * node in ni2; an empty node-set if the first node in ni2 is not in ni1; all of ni1 if ni2\n   * is empty.\n   * \n   */\n  public static NodeSet trailing (NodeIterator ni1, NodeIterator ni2)\n  {\n    NodeSet ns1 = new NodeSet(ni1);\n    NodeSet ns2 = new NodeSet(ni2);\n    NodeSet trailNodes = new NodeSet();\n    if (ns2.getLength() == 0)\n      return ns1;\n    Node startNode = ns2.elementAt(0);\n    if (!ns1.contains(startNode))\n    for (int i = 0; i < ns1.getLength(); i++)\n    {\n      Node testNode = ns1.elementAt(i);\n      if (DOMHelper.isNodeAfter(startNode, testNode) \n          && !(DOMHelper.isNodeTheSame(startNode, testNode)))\n        trailNodes.addElement(testNode);          \n    }\n    return trailNodes;\n  }\n  \n  /**\n   * The set:intersection function returns a node set comprising the nodes that are within \n   * both the node sets passed as arguments to it.\n   * \n   * @param ni1 NodeIterator for first node-set.\n   * @param ni2 NodeIterator for second node-set.\n   * @return a NodeSet containing the nodes in ni1 that are also\n   * in ni2.\n   * \n   * Note: Already implemented in the xalan namespace.\n   * \n   */\n  public static NodeSet intersection(NodeIterator ni1, NodeIterator ni2)\n          throws javax.xml.transform.TransformerException\n  {\n    return Extensions.intersection(ni1, ni2);\n  }\n  \n  /**\n   * The set:difference function returns the difference between two node sets - those nodes that \n   * are in the node set passed as the first argument that are not in the node set passed as the \n   * second argument.\n   * \n   * @param ni1 NodeIterator for first node-set.\n   * @param ni2 NodeIterator for second node-set.\n   * @return a NodeSet containing the nodes in ni1 that are not\n   * in ni2.\n   * \n   * Note: Already implemented in the xalan namespace.\n   * \n   */\n  public static NodeSet difference(NodeIterator ni1, NodeIterator ni2)\n          throws javax.xml.transform.TransformerException\n  {\n    return Extensions.difference(ni1, ni2);\n  }\n  \n  /**\n   * The set:distinct function returns a subset of the nodes contained in the node-set NS passed \n   * as the first argument. Specifically, it selects a node N if there is no node in NS that has \n   * the same string value as N, and that precedes N in document order. \n   * \n   * @param myContext Passed in by Xalan extension processor.\n   * @param ni NodeIterator for node-set.\n   * @return a NodeSet with nodes from ni containing distinct string values.\n   * In other words, if more than one node in ni contains the same string value,\n   * only include the first such node found.\n   * \n   * Note: Already implemented in the xalan namespace.\n   * \n   */\n  public static NodeSet distinct(ExpressionContext myContext, NodeIterator ni)\n          throws javax.xml.transform.TransformerException\n  {\n    return Extensions.distinct(myContext, ni);\n  }\n  \n  /**\n   * The set:has-same-node function returns true if the node set passed as the first argument shares \n   * any nodes with the node set passed as the second argument. If there are no nodes that are in both\n   * node sets, then it returns false. \n   * \n   * The Xalan extensions MethodResolver converts 'has-same-node' to 'hasSameNode'.\n   * \n   * Note: Not to be confused with hasSameNodes in the Xalan namespace, which returns true if\n   * the two node sets contain the exactly the same nodes (perhaps in a different order), \n   * otherwise false.\n   * \n   */\n  public static boolean hasSameNode(NodeIterator ni1, NodeIterator ni2)\n  {\n    \n    NodeSet ns1 = new NodeSet(ni1);\n    NodeSet ns2 = new NodeSet(ni2);\n\n    for (int i = 0; i < ns1.getLength(); i++)\n    {\n      if (ns2.contains(ns1.elementAt(i)))\n        return true;\n    }\n    return false;", "functions": [{"function_name": "leading", "code": "  public static NodeSet leading (NodeIterator ni1, NodeIterator ni2)\n  {\n    NodeSet ns1 = new NodeSet(ni1);\n    NodeSet ns2 = new NodeSet(ni2);\n    NodeSet leadNodes = new NodeSet();\n    if (ns2.getLength() == 0)\n      return ns1;\n    Node endNode = ns2.elementAt(0);\n    if (!ns1.contains(endNode))\n    for (int i = 0; i < ns1.getLength(); i++)\n    {\n      Node testNode = ns1.elementAt(i);\n      if (DOMHelper.isNodeAfter(testNode, endNode) \n          && !(DOMHelper.isNodeTheSame(testNode, endNode)))\n        leadNodes.addElement(testNode);\n    }\n    return leadNodes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LOOP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [4, 12], [4, 13], [10, 14], [3, 15], [13, 16], [13, 17], [5, 18], [6, 19], [7, 20], [10, 21], [10, 22], [14, 23], [15, 24], [21, 25], [10, 26], [21, 27], [25, 28], [25, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 4], [13, 4], [14, 10], [15, 3], [16, 13], [17, 13], [18, 5], [19, 6], [20, 7], [21, 10], [22, 10], [23, 14], [24, 15], [25, 21], [26, 10], [27, 21], [28, 25], [29, 25], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "trailing", "code": "  public static NodeSet trailing (NodeIterator ni1, NodeIterator ni2)\n  {\n    NodeSet ns1 = new NodeSet(ni1);\n    NodeSet ns2 = new NodeSet(ni2);\n    NodeSet trailNodes = new NodeSet();\n    if (ns2.getLength() == 0)\n      return ns1;\n    Node startNode = ns2.elementAt(0);\n    if (!ns1.contains(startNode))\n    for (int i = 0; i < ns1.getLength(); i++)\n    {\n      Node testNode = ns1.elementAt(i);\n      if (DOMHelper.isNodeAfter(startNode, testNode) \n          && !(DOMHelper.isNodeTheSame(startNode, testNode)))\n        trailNodes.addElement(testNode);          \n    }\n    return trailNodes;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LOOP", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [2, 11], [4, 12], [4, 13], [10, 14], [3, 15], [13, 16], [13, 17], [5, 18], [6, 19], [7, 20], [10, 21], [10, 22], [14, 23], [15, 24], [21, 25], [10, 26], [21, 27], [25, 28], [25, 29], [22, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 2], [12, 4], [13, 4], [14, 10], [15, 3], [16, 13], [17, 13], [18, 5], [19, 6], [20, 7], [21, 10], [22, 10], [23, 14], [24, 15], [25, 21], [26, 10], [27, 21], [28, 25], [29, 25], [30, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "intersection", "code": "  public static NodeSet intersection(NodeIterator ni1, NodeIterator ni2)\n          throws javax.xml.transform.TransformerException\n  {\n    return Extensions.intersection(ni1, ni2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "difference", "code": "  public static NodeSet difference(NodeIterator ni1, NodeIterator ni2)\n          throws javax.xml.transform.TransformerException\n  {\n    return Extensions.difference(ni1, ni2);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "distinct", "code": "  public static NodeSet distinct(ExpressionContext myContext, NodeIterator ni)\n          throws javax.xml.transform.TransformerException\n  {\n    return Extensions.distinct(myContext, ni);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "hasSameNode", "code": "  public static boolean hasSameNode(NodeIterator ni1, NodeIterator ni2)\n  {\n    \n    NodeSet ns1 = new NodeSet(ni1);\n    NodeSet ns2 = new NodeSet(ni2);\n\n    for (int i = 0; i < ns1.getLength(); i++)\n    {\n      if (ns2.contains(ns1.elementAt(i)))\n        return true;\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [8, 10], [3, 11], [4, 12], [9, 13], [9, 14], [2, 15], [13, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 8], [11, 3], [12, 4], [13, 9], [14, 9], [15, 2], [16, 13], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 0}
{"sample_id": "xalan-2.7-8385", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/axes/FilterExprWalker.java", "language": "java", "name": "org.apache.xpath.axes.FilterExprWalker", "code": "public class FilterExprWalker extends AxesWalker\n{\n    static final long serialVersionUID = 5457182471424488375L;\n\n  /**\n   * Construct a FilterExprWalker using a LocPathIterator.\n   *\n   * @param locPathIterator non-null reference to the parent iterator.\n   */\n  public FilterExprWalker(WalkingIterator locPathIterator)\n  {\n    super(locPathIterator, Axis.FILTEREDLIST);\n  }\n\n  /**\n   * Init a FilterExprWalker.\n   *\n   * @param compiler non-null reference to the Compiler that is constructing.\n   * @param opPos positive opcode position for this step.\n   * @param stepType The type of step.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public void init(Compiler compiler, int opPos, int stepType)\n          throws javax.xml.transform.TransformerException\n  {\n\n    super.init(compiler, opPos, stepType);\n\n    switch (stepType)\n    {\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_EXTFUNCTION :\n    \tm_mustHardReset = true;\n    case OpCodes.OP_GROUP :\n    case OpCodes.OP_VARIABLE :\n      m_expr = compiler.compile(opPos);\n      m_expr.exprSetParent(this);\n      if(m_expr instanceof org.apache.xpath.operations.Variable)\n      {\n      \tm_canDetachNodeset = false;\n      }\n      break;\n    default :\n      m_expr = compiler.compile(opPos + 2);\n      m_expr.exprSetParent(this);\n    }\n  }\n  \n  /**\n   * Detaches the walker from the set which it iterated over, releasing\n   * any computational resources and placing the iterator in the INVALID\n   * state.\n   */\n  public void detach()\n  {  \n  \tsuper.detach();\n  \tif (m_canDetachNodeset)\n  \t{\n  \t  m_exprObj.detach();\n  \t}\n  \tm_exprObj = null;\n  }\n\n  /**\n   *  Set the root node of the TreeWalker.\n   *\n   * @param root non-null reference to the root, or starting point of \n   *        the query.\n   */\n  public void setRoot(int root)\n  {\n\n    super.setRoot(root);\n\n  \tm_exprObj = FilterExprIteratorSimple.executeFilterExpr(root, \n  \t                  m_lpi.getXPathContext(), m_lpi.getPrefixResolver(), \n  \t                  m_lpi.getIsTopLevel(), m_lpi.m_stackFrame, m_expr);\n\n  }\n\n  /**\n   * Get a cloned FilterExprWalker.\n   *\n   * @return A new FilterExprWalker that can be used without mutating this one.\n   *\n   * @throws CloneNotSupportedException\n   */\n  public Object clone() throws CloneNotSupportedException\n  {\n\n    FilterExprWalker clone = (FilterExprWalker) super.clone();\n\n    if (null != m_exprObj)\n      clone.m_exprObj = (XNodeSet) m_exprObj.clone();\n\n    return clone;\n  }\n  \n  /**\n   * This method needs to override AxesWalker.acceptNode because FilterExprWalkers\n   * don't need to, and shouldn't, do a node test.\n   * @param n  The node to check to see if it passes the filter or not.\n   * @return  a constant to determine whether the node is accepted,\n   *   rejected, or skipped, as defined  above .\n   */\n  public short acceptNode(int n)\n  {\n\n    try\n    {\n      if (getPredicateCount() > 0)\n      {\n        countProximityPosition(0);\n\n        if (!executePredicates(n, m_lpi.getXPathContext()))\n          return DTMIterator.FILTER_SKIP;\n      }\n\n      return DTMIterator.FILTER_ACCEPT;\n    }\n    catch (javax.xml.transform.TransformerException se)\n    {\n      throw new RuntimeException(se.getMessage());\n    }\n  }\n\n  /**\n   *  Moves the <code>TreeWalker</code> to the next visible node in document\n   * order relative to the current node, and returns the new node. If the\n   * current node has no next node,  or if the search for nextNode attempts\n   * to step upward from the TreeWalker's root node, returns\n   * <code>null</code> , and retains the current node.\n   * @return  The new node, or <code>null</code> if the current node has no\n   *   next node  in the TreeWalker's logical view.\n   */\n  public int getNextNode()\n  {\n\n    if (null != m_exprObj)\n    {\n       int next = m_exprObj.nextNode();\n       return next;\n    }\n    else\n      return DTM.NULL;\n  }\n  \n  /**\n   * Get the index of the last node that can be itterated to.\n   *\n   *\n   * @param xctxt XPath runtime context.\n   *\n   * @return the index of the last node that can be itterated to.\n   */\n  public int getLastPos(XPathContext xctxt)\n  {\n    return m_exprObj.getLength();\n  }\n  \n  /** The contained expression. Should be non-null.\n   *  @serial   */\n  private Expression m_expr;\n\n  /** The result of executing m_expr.  Needs to be deep cloned on clone op.  */\n  transient private XNodeSet m_exprObj;\n  \n  private boolean m_mustHardReset = false;\n  private boolean m_canDetachNodeset = true;\n\n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n    m_expr.fixupVariables(vars, globalsSize);\n  }\n  \n  /**\n   * Get the inner contained expression of this filter.\n   */\n  public Expression getInnerExpression()\n  {\n  \treturn m_expr;\n  }\n  \n  /**\n   * Set the inner contained expression of this filter.\n   */\n  public void setInnerExpression(Expression expr)\n  {\n  \texpr.exprSetParent(this);\n  \tm_expr = expr;\n  }\n\n  \n  /** \n   * Get the analysis bits for this walker, as defined in the WalkerFactory.\n   * @return One of WalkerFactory#BIT_DESCENDANT, etc.\n   */\n  public int getAnalysisBits()\n  {\n      if (null != m_expr && m_expr instanceof PathComponent)\n      {\n        return ((PathComponent) m_expr).getAnalysisBits();\n      }\n      return WalkerFactory.BIT_FILTER;\n  }\n  \n  /**\n   * Returns true if all the nodes in the iteration well be returned in document \n   * order.\n   * Warning: This can only be called after setRoot has been called!\n   * \n   * @return true as a default.\n   */\n  public boolean isDocOrdered()\n  {\n    return m_exprObj.isDocOrdered();\n  }\n  \n  /**\n   * Returns the axis being iterated, if it is known.\n   * \n   * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple \n   * types.\n   */\n  public int getAxis()\n  {\n    return m_exprObj.getAxis();\n  }\n  \n  class filterExprOwner implements ExpressionOwner\n  {\n      /**\n     * @see ExpressionOwner#getExpression()\n     */\n    public Expression getExpression()\n    {\n      return m_expr;\n    }\n\n    /**\n     * @see ExpressionOwner#setExpression(Expression)\n     */\n    public void setExpression(Expression exp)\n    {\n    \texp.exprSetParent(FilterExprWalker.this);\n    \tm_expr = exp;\n    }\n  }\n  \n\t/**\n\t * This will traverse the heararchy, calling the visitor for \n\t * each member.  If the called visitor method returns \n\t * false, the subtree should not be called.\n\t * \n\t * @param visitor The visitor whose appropriate method will be called.\n\t */\n\tpublic void callPredicateVisitors(XPathVisitor visitor)\n\t{\n\t  m_expr.callVisitors(new filterExprOwner(), visitor);\n\t  \n\t  super.callPredicateVisitors(visitor);\n\t} \n\n\n    /**\n     * @see Expression#deepEquals(Expression)\n     */\n    public boolean deepEquals(Expression expr)\n    {\n      if (!super.deepEquals(expr))\n                return false;\n\n      FilterExprWalker walker = (FilterExprWalker)expr;\n      if(!m_expr.deepEquals(walker.m_expr))\n      \treturn false;\n\n      return true;", "functions": [{"function_name": "init", "code": "  public void init(Compiler compiler, int opPos, int stepType)\n          throws javax.xml.transform.TransformerException\n  {\n\n    super.init(compiler, opPos, stepType);\n\n    switch (stepType)\n    {\n    case OpCodes.OP_FUNCTION :\n    case OpCodes.OP_EXTFUNCTION :\n    \tm_mustHardReset = true;\n    case OpCodes.OP_GROUP :\n    case OpCodes.OP_VARIABLE :\n      m_expr = compiler.compile(opPos);\n      m_expr.exprSetParent(this);\n      if(m_expr instanceof org.apache.xpath.operations.Variable)\n      {\n      \tm_canDetachNodeset = false;\n      }\n      break;\n    default :\n      m_expr = compiler.compile(opPos + 2);\n      m_expr.exprSetParent(this);", "ast_nodes": ["FUNC_DECL", "SWITCH", "PARAM", "PARAM", "PARAM", "BREAK_CONTINUE", "IF", "CALL", "ASSIGN", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [6, 9], [1, 10], [1, 11], [1, 12], [8, 13], [11, 14], [12, 15], [13, 16], [6, 17], [16, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 6], [10, 1], [11, 1], [12, 1], [13, 8], [14, 11], [15, 12], [16, 13], [17, 6], [18, 16], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "detach", "code": "  public void detach()\n  {  \n  \tsuper.detach();\n  \tif (m_canDetachNodeset)\n  \t{\n  \t  m_exprObj.detach();\n  \t}\n  \tm_exprObj = null;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [1, 0], [2, 0], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setRoot", "code": "  public void setRoot(int root)\n  {\n\n    super.setRoot(root);\n\n  \tm_exprObj = FilterExprIteratorSimple.executeFilterExpr(root, \n  \t                  m_lpi.getXPathContext(), m_lpi.getPrefixResolver(), \n  \t                  m_lpi.getIsTopLevel(), m_lpi.m_stackFrame, m_expr);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "clone", "code": "  public Object clone() throws CloneNotSupportedException\n  {\n\n    FilterExprWalker clone = (FilterExprWalker) super.clone();\n\n    if (null != m_exprObj)\n      clone.m_exprObj = (XNodeSet) m_exprObj.clone();\n\n    return clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "acceptNode", "code": "  public short acceptNode(int n)\n  {\n\n    try\n    {\n      if (getPredicateCount() > 0)\n      {\n        countProximityPosition(0);\n\n        if (!executePredicates(n, m_lpi.getXPathContext()))\n          return DTMIterator.FILTER_SKIP;\n      }\n\n      return DTMIterator.FILTER_ACCEPT;\n    }\n    catch (javax.xml.transform.TransformerException se)\n    {\n      throw new RuntimeException(se.getMessage());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [6, 8], [5, 9], [7, 10], [7, 11], [8, 12], [9, 13], [9, 14], [5, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 6], [9, 5], [10, 7], [11, 7], [12, 8], [13, 9], [14, 9], [15, 5], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getNextNode", "code": "  public int getNextNode()\n  {\n\n    if (null != m_exprObj)\n    {\n       int next = m_exprObj.nextNode();\n       return next;\n    }\n    else\n      return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getLastPos", "code": "  public int getLastPos(XPathContext xctxt)\n  {\n    return m_exprObj.getLength();", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    super.fixupVariables(vars, globalsSize);\n    m_expr.fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getInnerExpression", "code": "  public Expression getInnerExpression()\n  {\n  \treturn m_expr;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInnerExpression", "code": "  public void setInnerExpression(Expression expr)\n  {\n  \texpr.exprSetParent(this);\n  \tm_expr = expr;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getAnalysisBits", "code": "  public int getAnalysisBits()\n  {\n      if (null != m_expr && m_expr instanceof PathComponent)\n      {\n        return ((PathComponent) m_expr).getAnalysisBits();\n      }\n      return WalkerFactory.BIT_FILTER;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isDocOrdered", "code": "  public boolean isDocOrdered()\n  {\n    return m_exprObj.isDocOrdered();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAxis", "code": "  public int getAxis()\n  {\n    return m_exprObj.getAxis();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "callPredicateVisitors", "code": "\tpublic void callPredicateVisitors(XPathVisitor visitor)\n\t{\n\t  m_expr.callVisitors(new filterExprOwner(), visitor);\n\t  \n\t  super.callPredicateVisitors(visitor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "deepEquals", "code": "    public boolean deepEquals(Expression expr)\n    {\n      if (!super.deepEquals(expr))\n                return false;\n\n      FilterExprWalker walker = (FilterExprWalker)expr;\n      if(!m_expr.deepEquals(walker.m_expr))\n      \treturn false;\n\n      return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [4, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 4], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "FilterExprWalker", "code": "  public FilterExprWalker(WalkingIterator locPathIterator)\n  {\n    super(locPathIterator, Axis.FILTEREDLIST);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.2-1872", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/jmx/JMXEndpoint.java", "language": "java", "name": "org.apache.camel.component.jmx.JMXEndpoint", "code": "public class JMXEndpoint extends DefaultEndpoint<JMXExchange> {\n\n    private static final Log LOG = LogFactory.getLog(JMXEndpoint.class);\n    private String name;\n    private ObjectName ourName;\n    private String observedObjectName;\n    private String attributeName;\n    private long granularityPeriod = 5000;\n    private Number threshold;\n    private Number offset;\n    private MBeanServer mbeanServer;\n    private CounterMonitor counterMonitor = new CounterMonitor();\n\n    protected JMXEndpoint(String endpointUri, JMXComponent component) {\n        super(endpointUri, component);\n        observedObjectName = endpointUri;\n    }\n\n    /**\n     * @return a Producer\n     * @throws Exception\n     * @see org.apache.camel.Endpoint#createProducer()\n     */\n    public Producer<JMXExchange> createProducer() throws Exception {\n        throw new RuntimeException(\"Not supported\");\n    }\n\n    /**\n     * @param proc\n     * @return a Consumer\n     * @throws Exception\n     * @see org.apache.camel.Endpoint#createConsumer(org.apache.camel.Processor)\n     */\n    public Consumer<JMXExchange> createConsumer(Processor proc) throws Exception {\n        ObjectName observedName = new ObjectName(observedObjectName);\n        if (name == null) {\n            String type = observedName.getKeyProperty(\"type\");\n            type = type != null ? type : \"UNKNOWN\";\n            name = mbeanServer.getDefaultDomain() + \":type=CounterMonitor_\" + type;\n        }\n        JMXConsumer result = new JMXConsumer(this, proc);\n        ourName = new ObjectName(name);\n        counterMonitor.setNotify(true);\n        counterMonitor.addObservedObject(observedName);\n        counterMonitor.setObservedAttribute(attributeName);\n        counterMonitor.setGranularityPeriod(granularityPeriod);\n        counterMonitor.setDifferenceMode(false);\n        counterMonitor.setInitThreshold(threshold);\n        counterMonitor.setOffset(offset);\n        mbeanServer.registerMBean(counterMonitor, ourName);\n        mbeanServer.addNotificationListener(ourName, result, null, new Object());\n        return result;\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public JMXExchange createExchange(Notification notification) {\n        return new JMXExchange(getContext(), getExchangePattern(), notification);\n    }\n\n    public JMXExchange createExchange() {\n        return new JMXExchange(getContext(), getExchangePattern(), null);\n    }\n\n    public JMXExchange createExchange(ExchangePattern pattern) {\n        return new JMXExchange(getContext(), pattern, null);\n    }\n\n    public String getAttributeName() {\n        return attributeName;\n    }\n\n    public void setAttributeName(String attributeName) {\n        this.attributeName = attributeName;\n    }\n\n    public long getGranularityPeriod() {\n        return granularityPeriod;\n    }\n\n    public void setGranularityPeriod(long granularityPeriod) {\n        this.granularityPeriod = granularityPeriod;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public Number getOffset() {\n        return offset;\n    }\n\n    public void setOffset(Number offset) {\n        this.offset = offset;\n    }\n\n    public Number getThreshold() {\n        return threshold;\n    }\n\n    public void setThreshold(Number threshold) {\n        this.threshold = threshold;\n    }\n\n    public MBeanServer getMbeanServer() {\n        return mbeanServer;\n    }\n\n    public void setMbeanServer(MBeanServer mbeanServer) {\n        this.mbeanServer = mbeanServer;", "functions": [{"function_name": "createProducer", "code": "    public Producer<JMXExchange> createProducer() throws Exception {\n        throw new RuntimeException(\"Not supported\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createConsumer", "code": "    public Consumer<JMXExchange> createConsumer(Processor proc) throws Exception {\n        ObjectName observedName = new ObjectName(observedObjectName);\n        if (name == null) {\n            String type = observedName.getKeyProperty(\"type\");\n            type = type != null ? type : \"UNKNOWN\";\n            name = mbeanServer.getDefaultDomain() + \":type=CounterMonitor_\" + type;\n        }\n        JMXConsumer result = new JMXConsumer(this, proc);\n        ourName = new ObjectName(name);\n        counterMonitor.setNotify(true);\n        counterMonitor.addObservedObject(observedName);\n        counterMonitor.setObservedAttribute(attributeName);\n        counterMonitor.setGranularityPeriod(granularityPeriod);\n        counterMonitor.setDifferenceMode(false);\n        counterMonitor.setInitThreshold(threshold);\n        counterMonitor.setOffset(offset);\n        mbeanServer.registerMBean(counterMonitor, ourName);\n        mbeanServer.addNotificationListener(ourName, result, null, new Object());\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "COND_EXPR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [3, 16], [6, 17], [6, 18], [10, 19], [14, 20], [15, 21], [2, 22], [3, 23], [16, 24], [4, 25], [3, 26], [3, 27], [26, 28], [27, 29], [23, 30], [28, 31], [29, 32], [29, 33], [30, 34], [31, 35], [31, 36], [33, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 3], [17, 6], [18, 6], [19, 10], [20, 14], [21, 15], [22, 2], [23, 3], [24, 16], [25, 4], [26, 3], [27, 3], [28, 26], [29, 27], [30, 23], [31, 28], [32, 29], [33, 29], [34, 30], [35, 31], [36, 31], [37, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExchange", "code": "    public JMXExchange createExchange(Notification notification) {\n        return new JMXExchange(getContext(), getExchangePattern(), notification);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createExchange", "code": "    public JMXExchange createExchange() {\n        return new JMXExchange(getContext(), getExchangePattern(), null);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "createExchange", "code": "    public JMXExchange createExchange(ExchangePattern pattern) {\n        return new JMXExchange(getContext(), pattern, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getAttributeName", "code": "    public String getAttributeName() {\n        return attributeName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAttributeName", "code": "    public void setAttributeName(String attributeName) {\n        this.attributeName = attributeName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getGranularityPeriod", "code": "    public long getGranularityPeriod() {\n        return granularityPeriod;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setGranularityPeriod", "code": "    public void setGranularityPeriod(long granularityPeriod) {\n        this.granularityPeriod = granularityPeriod;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOffset", "code": "    public Number getOffset() {\n        return offset;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOffset", "code": "    public void setOffset(Number offset) {\n        this.offset = offset;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getThreshold", "code": "    public Number getThreshold() {\n        return threshold;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setThreshold", "code": "    public void setThreshold(Number threshold) {\n        this.threshold = threshold;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMbeanServer", "code": "    public MBeanServer getMbeanServer() {\n        return mbeanServer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMbeanServer", "code": "    public void setMbeanServer(MBeanServer mbeanServer) {\n        this.mbeanServer = mbeanServer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JMXEndpoint", "code": "    protected JMXEndpoint(String endpointUri, JMXComponent component) {\n        super(endpointUri, component);\n        observedObjectName = endpointUri;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "xalan-2.4-6588", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/RealExpr.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.RealExpr", "code": "final class RealExpr extends Expression {\n    private double _value;\n\n    public RealExpr(double value) {\n\t_value = value;\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn _type = Type.Real;\n    }\n\n    public String toString() {\n\treturn \"real-expr(\" + _value + ')';\n    }\n\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn _type = Type.Real;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    public String toString() {\n\treturn \"real-expr(\" + _value + ')';", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tConstantPoolGen cpg = classGen.getConstantPool();\n\tInstructionList il = methodGen.getInstructionList();\n\til.append(new PUSH(cpg, _value));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "RealExpr", "code": "    public RealExpr(double value) {\n\t_value = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "log4j-1.2-4998", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/spi/ErrorHandler.java", "language": "java", "name": "org.apache.log4j.spi.ErrorHandler", "code": "public interface ErrorHandler extends OptionHandler {\n\n  /**\n     Add a reference to a logger to which the failing appender might\n     be attached to. The failing appender will be searched and\n     replaced only in the loggers you add through this method.\n\n     @param logger One of the loggers that will be searched for the failing\n     appender in view of replacement.\n     \n     @since 1.2 */\n  void setLogger(Logger logger);\n\n\n  /**\n     Equivalent to the {@link #error(String, Exception, int,\n     LoggingEvent event)} with the the event parameteter set to\n     <code>null</code>.\n     \n  */\n  void error(String message, Exception e, int errorCode);\n\n  /**\n     This method is normally used to just print the error message\n     passed as a parameter.       \n  */\n  void error(String message);\n\n  /**\n     This method is invoked to handle the error.\n\n     @param message The message assoicated with the error.\n     @param e The Exption that was thrown when the error occured.\n     @param errorCode The error code associated with the error. \n     @param event The logging event that the failing appender is asked\n            to log.\n\n     @since 1.2 */\n  void error(String message, Exception e, int errorCode, LoggingEvent event);\n  \n  /**\n     Set the appender for which errors are handled. This method is\n     usually called when the error handler is configured.\n     \n     @since 1.2 */\n  void setAppender(Appender appender);\n\n  /**\n     Set the appender to falkback upon in case of failure.\n     \n     @since 1.2 */\n  void setBackupAppender(Appender appender);", "functions": [{"function_name": "setLogger", "code": "  void setLogger(Logger logger);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "error", "code": "  void error(String message, Exception e, int errorCode);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "error", "code": "  void error(String message);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "error", "code": "  void error(String message, Exception e, int errorCode, LoggingEvent event);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setAppender", "code": "  void setAppender(Appender appender);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBackupAppender", "code": "  void setBackupAppender(Appender appender);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 1}
{"sample_id": "camel-1.2-1766", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/bam/model/ProcessInstance.java", "language": "java", "name": "org.apache.camel.bam.model.ProcessInstance", "code": "@Entity\npublic class ProcessInstance  {\n    private static final transient Log LOG = LogFactory.getLog(ProcessInstance.class);\n    private ProcessDefinition processDefinition;\n    private Collection<ActivityState> activityStates = new HashSet<ActivityState>();\n    private String correlationKey;\n    private Date timeStarted;\n    private Date timeCompleted;\n\n    public ProcessInstance() {\n        setTimeStarted(new Date());\n    }\n\n    public String toString() {\n        return \"ProcessInstance[\" + getCorrelationKey() + \"]\";\n    }\n\n    @Id\n    public String getCorrelationKey() {\n        return correlationKey;\n    }\n\n    public void setCorrelationKey(String correlationKey) {\n        this.correlationKey = correlationKey;\n    }\n\n    @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST })\n    public ProcessDefinition getProcessDefinition() {\n        return processDefinition;\n    }\n\n    public void setProcessDefinition(ProcessDefinition processDefinition) {\n        this.processDefinition = processDefinition;\n    }\n\n    @OneToMany(mappedBy = \"processInstance\", fetch = FetchType.LAZY, cascade = {CascadeType.ALL })\n    public Collection<ActivityState> getActivityStates() {\n        return activityStates;\n    }\n\n    public void setActivityStates(Collection<ActivityState> activityStates) {\n        this.activityStates = activityStates;\n    }\n\n\n    @Transient\n    public boolean isStarted() {\n        return timeStarted != null;\n    }\n\n    @Transient\n    public boolean isCompleted() {\n        return timeCompleted != null;\n    }\n\n    @Temporal(TemporalType.TIME)\n    public Date getTimeStarted() {\n        return timeStarted;\n    }\n\n    public void setTimeStarted(Date timeStarted) {\n        this.timeStarted = timeStarted;\n    }\n\n    @Temporal(TemporalType.TIME)\n    public Date getTimeCompleted() {\n        return timeCompleted;\n    }\n\n    public void setTimeCompleted(Date timeCompleted) {\n        this.timeCompleted = timeCompleted;\n\t}\n    /**\n     * Returns the activity state for the given activity\n     *\n     * @param activityRules the activity to find the state for\n     * @return the activity state or null if no state could be found for the\n     *         given activity\n     */\n    public ActivityState getActivityState(ActivityRules activityRules) {\n        for (ActivityState activityState : getActivityStates()) {\n            if (activityState.isActivity(activityRules)) {\n                return activityState;\n            }\n        }\n        return null;\n    }\n\n    public ActivityState getOrCreateActivityState(ActivityRules activityRules) {\n        ActivityState state = getActivityState(activityRules);\n\n        if (state == null) {\n            state = createActivityState();\n            state.setProcessInstance(this);\n            state.setActivityDefinition(activityRules.getActivityDefinition());\n        }\n\n        return state;\n    }\n\n    protected ActivityState createActivityState() {\n        return new ActivityState();", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        return \"ProcessInstance[\" + getCorrelationKey() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getCorrelationKey", "code": "    @Id\n    public String getCorrelationKey() {\n        return correlationKey;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCorrelationKey", "code": "    public void setCorrelationKey(String correlationKey) {\n        this.correlationKey = correlationKey;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getProcessDefinition", "code": "    @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST })\n    public ProcessDefinition getProcessDefinition() {\n        return processDefinition;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setProcessDefinition", "code": "    public void setProcessDefinition(ProcessDefinition processDefinition) {\n        this.processDefinition = processDefinition;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActivityStates", "code": "    @OneToMany(mappedBy = \"processInstance\", fetch = FetchType.LAZY, cascade = {CascadeType.ALL })\n    public Collection<ActivityState> getActivityStates() {\n        return activityStates;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setActivityStates", "code": "    public void setActivityStates(Collection<ActivityState> activityStates) {\n        this.activityStates = activityStates;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isStarted", "code": "    @Transient\n    public boolean isStarted() {\n        return timeStarted != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isCompleted", "code": "    @Transient\n    public boolean isCompleted() {\n        return timeCompleted != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTimeStarted", "code": "    @Temporal(TemporalType.TIME)\n    public Date getTimeStarted() {\n        return timeStarted;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeStarted", "code": "    public void setTimeStarted(Date timeStarted) {\n        this.timeStarted = timeStarted;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTimeCompleted", "code": "    @Temporal(TemporalType.TIME)\n    public Date getTimeCompleted() {\n        return timeCompleted;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeCompleted", "code": "    public void setTimeCompleted(Date timeCompleted) {\n        this.timeCompleted = timeCompleted;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActivityState", "code": "    public ActivityState getActivityState(ActivityRules activityRules) {\n        for (ActivityState activityState : getActivityStates()) {\n            if (activityState.isActivity(activityRules)) {\n                return activityState;\n            }\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "RETURN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getOrCreateActivityState", "code": "    public ActivityState getOrCreateActivityState(ActivityRules activityRules) {\n        ActivityState state = getActivityState(activityRules);\n\n        if (state == null) {\n            state = createActivityState();\n            state.setProcessInstance(this);\n            state.setActivityDefinition(activityRules.getActivityDefinition());\n        }\n\n        return state;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [3, 7], [2, 8], [2, 9], [2, 10], [8, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 3], [8, 2], [9, 2], [10, 2], [11, 8], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "createActivityState", "code": "    protected ActivityState createActivityState() {\n        return new ActivityState();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ProcessInstance", "code": "    public ProcessInstance() {\n        setTimeStarted(new Date());", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-777", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/selectors/Date.java", "language": "java", "name": "org.apache.tools.ant.types.resources.selectors.Date", "code": "public class Date implements ResourceSelector {\n    private static final String MILLIS_OR_DATETIME\n        = \"Either the millis or the datetime attribute must be set.\";\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n\n    private Long millis = null;\n    private String dateTime = null;\n    private String pattern = null;\n    private TimeComparison when = TimeComparison.EQUAL;\n    private long granularity = FILE_UTILS.getFileTimestampGranularity();\n\n    /**\n     * Set the date/time in milliseconds since 1970.\n     * @param m the number of millis.\n     */\n    public synchronized void setMillis(long m) {\n        millis = new Long(m);\n    }\n\n    /**\n     * Get the date/time in ms.\n     * @return long number of millis since 1970.\n     */\n    public synchronized long getMillis() {\n        return millis == null ? -1L : millis.longValue();\n    }\n\n    /**\n     * Set the date and time as a String.\n     * @param s the date & time to use.\n     */\n    public synchronized void setDateTime(String s) {\n        dateTime = s;\n        millis = null;\n    }\n\n    /**\n     * Get the date & time in String format.\n     * @return a String representing a date & time.\n     */\n    public synchronized String getDatetime() {\n        return dateTime;\n    }\n\n    /**\n     * Set the granularity to use for this ResourceSelector.\n     * @param g the timestamp granularity.\n     */\n    public synchronized void setGranularity(long g) {\n        granularity = g;\n    }\n\n    /**\n     * Get the timestamp granularity used by this ResourceSelector.\n     * @return the long granularity.\n     */\n    public synchronized long getGranularity() {\n        return granularity;\n    }\n\n    /**\n     * Set the optional pattern to use with the datetime attribute.\n     * @param p the SimpleDateFormat-compatible pattern string.\n     */\n    public synchronized void setPattern(String p) {\n        pattern = p;\n    }\n\n    /**\n     * Get the pattern for use with the datetime attribute.\n     * @return a SimpleDateFormat-compatible pattern string.\n     */\n    public synchronized String getPattern() {\n        return pattern;\n    }\n\n    /**\n     * Set the comparison mode.\n     * @param c a TimeComparison object.\n     */\n    public synchronized void setWhen(TimeComparison c) {\n        when = c;\n    }\n\n    /**\n     * Get the comparison mode.\n     * @return a TimeComparison object.\n     */\n    public synchronized TimeComparison getWhen() {\n        return when;\n    }\n\n    /**\n     * Return true if this Resource is selected.\n     * @param r the Resource to check.\n     * @return whether the Resource was selected.\n     */\n    public synchronized boolean isSelected(Resource r) {\n        if (dateTime == null && millis == null) {\n            throw new BuildException(MILLIS_OR_DATETIME);\n        }\n        if (millis == null) {\n            DateFormat df = ((pattern == null)\n                ? DateFormat.getDateTimeInstance(\n                    DateFormat.SHORT, DateFormat.SHORT, Locale.US)\n                : new SimpleDateFormat(pattern));\n            try {\n                long m = df.parse(dateTime).getTime();\n                if (m < 0) {\n                    throw new BuildException(\"Date of \" + dateTime\n                        + \" results in negative milliseconds value\"\n                        + \" relative to epoch (January 1, 1970, 00:00:00 GMT).\");\n                }\n                setMillis(m);\n            } catch (ParseException pe) {\n                throw new BuildException(\"Date of \" + dateTime\n                        + \" Cannot be parsed correctly. It should be in\"\n                        + (pattern == null\n                        ? \" MM/DD/YYYY HH:MM AM_PM\" : pattern) + \" format.\");\n            }\n        }\n        return when.evaluate(r.getLastModified(), millis.longValue(), granularity);", "functions": [{"function_name": "setMillis", "code": "    public synchronized void setMillis(long m) {\n        millis = new Long(m);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getMillis", "code": "    public synchronized long getMillis() {\n        return millis == null ? -1L : millis.longValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setDateTime", "code": "    public synchronized void setDateTime(String s) {\n        dateTime = s;\n        millis = null;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getDatetime", "code": "    public synchronized String getDatetime() {\n        return dateTime;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setGranularity", "code": "    public synchronized void setGranularity(long g) {\n        granularity = g;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getGranularity", "code": "    public synchronized long getGranularity() {\n        return granularity;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPattern", "code": "    public synchronized void setPattern(String p) {\n        pattern = p;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPattern", "code": "    public synchronized String getPattern() {\n        return pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setWhen", "code": "    public synchronized void setWhen(TimeComparison c) {\n        when = c;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getWhen", "code": "    public synchronized TimeComparison getWhen() {\n        return when;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isSelected", "code": "    public synchronized boolean isSelected(Resource r) {\n        if (dateTime == null && millis == null) {\n            throw new BuildException(MILLIS_OR_DATETIME);\n        }\n        if (millis == null) {\n            DateFormat df = ((pattern == null)\n                ? DateFormat.getDateTimeInstance(\n                    DateFormat.SHORT, DateFormat.SHORT, Locale.US)\n                : new SimpleDateFormat(pattern));\n            try {\n                long m = df.parse(dateTime).getTime();\n                if (m < 0) {\n                    throw new BuildException(\"Date of \" + dateTime\n                        + \" results in negative milliseconds value\"\n                        + \" relative to epoch (January 1, 1970, 00:00:00 GMT).\");\n                }\n                setMillis(m);\n            } catch (ParseException pe) {\n                throw new BuildException(\"Date of \" + dateTime\n                        + \" Cannot be parsed correctly. It should be in\"\n                        + (pattern == null\n                        ? \" MM/DD/YYYY HH:MM AM_PM\" : pattern) + \" format.\");\n            }\n        }\n        return when.evaluate(r.getLastModified(), millis.longValue(), granularity);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "BINARY_OP", "COND_EXPR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [5, 8], [5, 9], [2, 10], [2, 11], [6, 12], [3, 13], [7, 14], [7, 15], [10, 16], [10, 17], [10, 18], [13, 19], [14, 20], [15, 21], [16, 22], [10, 23], [17, 24], [11, 25], [22, 26], [17, 27], [24, 28], [18, 29], [25, 30], [25, 31], [25, 32], [26, 33], [27, 34], [29, 35], [32, 36], [33, 37], [33, 38], [34, 39], [38, 40], [38, 41], [39, 42], [39, 43], [40, 44], [40, 45], [41, 46], [41, 47], [43, 48], [43, 49], [45, 50], [47, 51], [49, 52], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 5], [9, 5], [10, 2], [11, 2], [12, 6], [13, 3], [14, 7], [15, 7], [16, 10], [17, 10], [18, 10], [19, 13], [20, 14], [21, 15], [22, 16], [23, 10], [24, 17], [25, 11], [26, 22], [27, 17], [28, 24], [29, 18], [30, 25], [31, 25], [32, 25], [33, 26], [34, 27], [35, 29], [36, 32], [37, 33], [38, 33], [39, 34], [40, 38], [41, 38], [42, 39], [43, 39], [44, 40], [45, 40], [46, 41], [47, 41], [48, 43], [49, 43], [50, 45], [51, 47], [52, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52]]}], "label": 0}
{"sample_id": "camel-1.2-1613", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/file/strategy/DefaultFileRenamer.java", "language": "java", "name": "org.apache.camel.component.file.strategy.DefaultFileRenamer", "code": "public class DefaultFileRenamer implements FileRenamer {\n\t\n\tprivate static final boolean ON_WINDOWS = System.getProperty(\"os.name\").startsWith(\"Windows\");\n\t\n    private String namePrefix;\n    private String namePostfix;\n\n    public DefaultFileRenamer() {\n    }\n\n    public DefaultFileRenamer(String namePrefix, String namePostfix) {\n        this.namePrefix = namePrefix;\n        this.namePostfix = namePostfix;\n    }\n\n    public File renameFile(File file) {\n        File parent = file.getParentFile();\n        String name = renameFileName(file);\n        \n            return new File(name);\n                \n        return new File(parent, name);\n    }\n\n    public String getNamePostfix() {\n        return namePostfix;\n    }\n\n    /**\n     * Sets the name postfix appended to moved files. For example\n     * to rename all the files from * to *.done set this value to \".done\"\n     */\n    public void setNamePostfix(String namePostfix) {\n        this.namePostfix = namePostfix;\n    }\n\n    public String getNamePrefix() {\n        return namePrefix;\n    }\n\n    /**\n     * Sets the name prefix appended to moved files. For example\n     * to move processed files into a hidden directory called \".camel\"\n     * set this value to \".camel/\"\n     */\n    public void setNamePrefix(String namePrefix) {\n        this.namePrefix = namePrefix;\n    }\n\n\n    protected String renameFileName(File file) {\n        StringBuffer buffer = new StringBuffer();\n        if (namePrefix != null) {\n            buffer.append(namePrefix);\n        }\n        buffer.append(file.getName());\n        if (namePostfix != null) {\n            buffer.append(namePostfix);\n        }\n        return buffer.toString();", "functions": [{"function_name": "renameFile", "code": "    public File renameFile(File file) {\n        File parent = file.getParentFile();\n        String name = renameFileName(file);\n        \n            return new File(name);\n                \n        return new File(parent, name);", "ast_nodes": ["FUNC_DECL", "RETURN", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getNamePostfix", "code": "    public String getNamePostfix() {\n        return namePostfix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamePostfix", "code": "    public void setNamePostfix(String namePostfix) {\n        this.namePostfix = namePostfix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamePrefix", "code": "    public String getNamePrefix() {\n        return namePrefix;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNamePrefix", "code": "    public void setNamePrefix(String namePrefix) {\n        this.namePrefix = namePrefix;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "renameFileName", "code": "    protected String renameFileName(File file) {\n        StringBuffer buffer = new StringBuffer();\n        if (namePrefix != null) {\n            buffer.append(namePrefix);\n        }\n        buffer.append(file.getName());\n        if (namePostfix != null) {\n            buffer.append(namePostfix);\n        }\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [3, 9], [7, 10], [8, 11], [9, 12], [4, 13], [2, 14], [3, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 3], [10, 7], [11, 8], [12, 9], [13, 4], [14, 2], [15, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "DefaultFileRenamer", "code": "    public DefaultFileRenamer() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "DefaultFileRenamer", "code": "    public DefaultFileRenamer(String namePrefix, String namePostfix) {\n        this.namePrefix = namePrefix;\n        this.namePostfix = namePostfix;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.6-2834", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/impl/DefaultRouteContext.java", "language": "java", "name": "org.apache.camel.impl.DefaultRouteContext", "code": "public class DefaultRouteContext implements RouteContext {\n    private RouteType route;\n    private FromType from;\n    private Collection<Route> routes;\n    private Endpoint<? extends Exchange> endpoint;\n    private List<Processor> eventDrivenProcessors = new ArrayList<Processor>();\n    private Interceptor lastInterceptor;\n    private CamelContext camelContext;\n    private List<InterceptStrategy> interceptStrategies = new ArrayList<InterceptStrategy>();\n    private ErrorHandlerWrappingStrategy errorHandlerWrappingStrategy;\n    private boolean routeAdded;\n\n    public DefaultRouteContext(RouteType route, FromType from, Collection<Route> routes) {\n        this.route = route;\n        this.from = from;\n        this.routes = routes;\n    }\n\n    /**\n     * Only used for lazy construction from inside ExpressionType\n     */\n    public DefaultRouteContext(CamelContext camelContext) {\n        this.camelContext = camelContext;\n        routes = new ArrayList<Route>();\n        route = new RouteType(\"temporary\");\n    }\n\n    public Endpoint<? extends Exchange> getEndpoint() {\n        if (endpoint == null) {\n            endpoint = from.resolveEndpoint(this);\n        }\n        return endpoint;\n    }\n\n    public FromType getFrom() {\n        return from;\n    }\n\n    public RouteType getRoute() {\n        return route;\n    }\n\n    public CamelContext getCamelContext() {\n        if (camelContext == null) {\n            camelContext = getRoute().getCamelContext();\n        }\n        return camelContext;\n    }\n\n    public Processor createProcessor(ProcessorType node) throws Exception {\n        return node.createOutputsProcessor(this);\n    }\n\n    public Endpoint<? extends Exchange> resolveEndpoint(String uri) {\n        return route.resolveEndpoint(uri);\n    }\n\n    public Endpoint<? extends Exchange> resolveEndpoint(String uri, String ref) {\n        Endpoint<? extends Exchange> endpoint = null;\n        if (uri != null) {\n            endpoint = resolveEndpoint(uri);\n            if (endpoint == null) {\n                throw new NoSuchEndpointException(uri);\n            }\n        }\n        if (ref != null) {\n            endpoint = lookup(ref, Endpoint.class);\n            if (endpoint == null) {\n                throw new NoSuchEndpointException(\"ref:\" + ref);\n            }\n        }\n        if (endpoint == null) {\n            throw new IllegalArgumentException(\"Either 'uri' or 'ref' must be specified on: \" + this);\n        } else {\n            return endpoint;\n        }\n    }\n\n    public <T> T lookup(String name, Class<T> type) {\n        return getCamelContext().getRegistry().lookup(name, type);\n    }\n\n    public void commit() {\n        if (!eventDrivenProcessors.isEmpty()) {\n            Processor processor = Pipeline.newInstance(eventDrivenProcessors);\n\n            final AsyncProcessor asyncProcessor = AsyncProcessorTypeConverter.convert(processor);\n            Processor unitOfWorkProcessor = new UnitOfWorkProcessor(asyncProcessor);\n\n            Route edcr = new EventDrivenConsumerRoute(getEndpoint(), unitOfWorkProcessor);\n            edcr.getProperties().put(Route.ID_PROPERTY, route.idOrCreate());\n            edcr.getProperties().put(Route.PARENT_PROPERTY, Integer.toHexString(route.hashCode()));\n            if (route.getGroup() != null) {\n                edcr.getProperties().put(Route.GROUP_PROPERTY, route.getGroup());\n            }\n            routes.add(edcr);\n        }\n    }\n\n    public void addEventDrivenProcessor(Processor processor) {\n        eventDrivenProcessors.add(processor);\n    }\n\n    public void intercept(Intercept interceptor) {\n/*\n        InterceptorRef block = new InterceptorRef(interceptor);\n        RouteType route = getRoute();\n        List<ProcessorType<?>> list = route.getOutputs();\n        for (ProcessorType<?> processorType : list) {\n            block.addOutput(processorType);\n        }\n        route.clearOutput();\n        route.intercept(block);\n*/\n\n        lastInterceptor = (Interceptor)interceptor;\n    }\n\n    public Processor createProceedProcessor() {\n        if (lastInterceptor == null) {\n            throw new IllegalArgumentException(\"Cannot proceed() from outside of an interceptor!\");\n        } else {\n            return new ProceedProcessor(lastInterceptor);\n        }\n    }\n\n    public List<InterceptStrategy> getInterceptStrategies() {\n        return interceptStrategies;\n    }\n\n    public void setInterceptStrategies(List<InterceptStrategy> interceptStrategies) {\n        this.interceptStrategies = interceptStrategies;\n    }\n\n    public void addInterceptStrategy(InterceptStrategy interceptStrategy) {\n        getInterceptStrategies().add(interceptStrategy);\n    }\n\n    public ErrorHandlerWrappingStrategy getErrorHandlerWrappingStrategy() {\n        return errorHandlerWrappingStrategy;\n    }\n\n    public void setErrorHandlerWrappingStrategy(ErrorHandlerWrappingStrategy strategy) {\n        errorHandlerWrappingStrategy = strategy;\n        \n    }\n\n    public boolean isRouteAdded() {\n        return routeAdded;\n    }\n\n    public void setIsRouteAdded(boolean b) {\n        routeAdded = b;\n        \n    }\n\n    public DataFormatType getDataFormat(String ref) {\n        Map<String, DataFormatType> dataFormats = getCamelContext().getDataFormats();\n        if (dataFormats != null) {\n            return dataFormats.get(ref);\n        } else {\n            return null;", "functions": [{"function_name": "getEndpoint", "code": "    public Endpoint<? extends Exchange> getEndpoint() {\n        if (endpoint == null) {\n            endpoint = from.resolveEndpoint(this);\n        }\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getFrom", "code": "    public FromType getFrom() {\n        return from;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRoute", "code": "    public RouteType getRoute() {\n        return route;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getCamelContext", "code": "    public CamelContext getCamelContext() {\n        if (camelContext == null) {\n            camelContext = getRoute().getCamelContext();\n        }\n        return camelContext;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "createProcessor", "code": "    public Processor createProcessor(ProcessorType node) throws Exception {\n        return node.createOutputsProcessor(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "resolveEndpoint", "code": "    public Endpoint<? extends Exchange> resolveEndpoint(String uri) {\n        return route.resolveEndpoint(uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "resolveEndpoint", "code": "    public Endpoint<? extends Exchange> resolveEndpoint(String uri, String ref) {\n        Endpoint<? extends Exchange> endpoint = null;\n        if (uri != null) {\n            endpoint = resolveEndpoint(uri);\n            if (endpoint == null) {\n                throw new NoSuchEndpointException(uri);\n            }\n        }\n        if (ref != null) {\n            endpoint = lookup(ref, Endpoint.class);\n            if (endpoint == null) {\n                throw new NoSuchEndpointException(\"ref:\" + ref);\n            }\n        }\n        if (endpoint == null) {\n            throw new IllegalArgumentException(\"Either 'uri' or 'ref' must be specified on: \" + this);\n        } else {\n            return endpoint;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "THROW_RAISE", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [1, 10], [1, 11], [7, 12], [2, 13], [8, 14], [3, 15], [9, 16], [4, 17], [11, 18], [13, 19], [2, 20], [15, 21], [3, 22], [18, 23], [13, 24], [19, 25], [20, 26], [15, 27], [21, 28], [22, 29], [23, 30], [24, 31], [27, 32], [31, 33], [33, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 1], [11, 1], [12, 7], [13, 2], [14, 8], [15, 3], [16, 9], [17, 4], [18, 11], [19, 13], [20, 2], [21, 15], [22, 3], [23, 18], [24, 13], [25, 19], [26, 20], [27, 15], [28, 21], [29, 22], [30, 23], [31, 24], [32, 27], [33, 31], [34, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "lookup", "code": "    public <T> T lookup(String name, Class<T> type) {\n        return getCamelContext().getRegistry().lookup(name, type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "commit", "code": "    public void commit() {\n        if (!eventDrivenProcessors.isEmpty()) {\n            Processor processor = Pipeline.newInstance(eventDrivenProcessors);\n\n            final AsyncProcessor asyncProcessor = AsyncProcessorTypeConverter.convert(processor);\n            Processor unitOfWorkProcessor = new UnitOfWorkProcessor(asyncProcessor);\n\n            Route edcr = new EventDrivenConsumerRoute(getEndpoint(), unitOfWorkProcessor);\n            edcr.getProperties().put(Route.ID_PROPERTY, route.idOrCreate());\n            edcr.getProperties().put(Route.PARENT_PROPERTY, Integer.toHexString(route.hashCode()));\n            if (route.getGroup() != null) {\n                edcr.getProperties().put(Route.GROUP_PROPERTY, route.getGroup());\n            }\n            routes.add(edcr);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [3, 9], [1, 10], [1, 11], [9, 12], [9, 13], [10, 14], [11, 15], [4, 16], [5, 17], [6, 18], [7, 19], [3, 20], [14, 21], [15, 22], [16, 23], [20, 24], [21, 25], [24, 26], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 3], [10, 1], [11, 1], [12, 9], [13, 9], [14, 10], [15, 11], [16, 4], [17, 5], [18, 6], [19, 7], [20, 3], [21, 14], [22, 15], [23, 16], [24, 20], [25, 21], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "addEventDrivenProcessor", "code": "    public void addEventDrivenProcessor(Processor processor) {\n        eventDrivenProcessors.add(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "intercept", "code": "    public void intercept(Intercept interceptor) {\n/*\n        InterceptorRef block = new InterceptorRef(interceptor);\n        RouteType route = getRoute();\n        List<ProcessorType<?>> list = route.getOutputs();\n        for (ProcessorType<?> processorType : list) {\n            block.addOutput(processorType);\n        }\n        route.clearOutput();\n        route.intercept(block);\n*/\n\n        lastInterceptor = (Interceptor)interceptor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProceedProcessor", "code": "    public Processor createProceedProcessor() {\n        if (lastInterceptor == null) {\n            throw new IllegalArgumentException(\"Cannot proceed() from outside of an interceptor!\");\n        } else {\n            return new ProceedProcessor(lastInterceptor);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "RETURN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [4, 7], [7, 8], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 4], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getInterceptStrategies", "code": "    public List<InterceptStrategy> getInterceptStrategies() {\n        return interceptStrategies;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInterceptStrategies", "code": "    public void setInterceptStrategies(List<InterceptStrategy> interceptStrategies) {\n        this.interceptStrategies = interceptStrategies;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addInterceptStrategy", "code": "    public void addInterceptStrategy(InterceptStrategy interceptStrategy) {\n        getInterceptStrategies().add(interceptStrategy);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getErrorHandlerWrappingStrategy", "code": "    public ErrorHandlerWrappingStrategy getErrorHandlerWrappingStrategy() {\n        return errorHandlerWrappingStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setErrorHandlerWrappingStrategy", "code": "    public void setErrorHandlerWrappingStrategy(ErrorHandlerWrappingStrategy strategy) {\n        errorHandlerWrappingStrategy = strategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isRouteAdded", "code": "    public boolean isRouteAdded() {\n        return routeAdded;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIsRouteAdded", "code": "    public void setIsRouteAdded(boolean b) {\n        routeAdded = b;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDataFormat", "code": "    public DataFormatType getDataFormat(String ref) {\n        Map<String, DataFormatType> dataFormats = getCamelContext().getDataFormats();\n        if (dataFormats != null) {\n            return dataFormats.get(ref);\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [6, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 6], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "DefaultRouteContext", "code": "    public DefaultRouteContext(RouteType route, FromType from, Collection<Route> routes) {\n        this.route = route;\n        this.from = from;\n        this.routes = routes;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "DefaultRouteContext", "code": "    public DefaultRouteContext(CamelContext camelContext) {\n        this.camelContext = camelContext;\n        routes = new ArrayList<Route>();\n        route = new RouteType(\"temporary\");", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [3, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "ivy-2.0-3467", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/event/EventManager.java", "language": "java", "name": "org.apache.ivy.core.event.EventManager", "code": "public class EventManager implements TransferListener {\n\n    private EventListenerList listeners = new EventListenerList();\n\n    public void addIvyListener(IvyListener listener) {\n        listeners.add(IvyListener.class, listener);\n    }\n\n    public void addIvyListener(IvyListener listener, String eventName) {\n        addIvyListener(listener, new IvyEventFilter(eventName, null, null));\n    }\n\n    public void addIvyListener(IvyListener listener, Filter filter) {\n        listeners.add(IvyListener.class, new FilteredIvyListener(listener, filter));\n    }\n\n    public void removeIvyListener(IvyListener listener) {\n        listeners.remove(IvyListener.class, listener);\n        IvyListener[] listeners = (IvyListener[]) this.listeners.getListeners(IvyListener.class);\n        for (int i = 0; i < listeners.length; i++) {\n            if (listeners[i] instanceof FilteredIvyListener) {\n                if (listener.equals(((FilteredIvyListener) listeners[i]).getIvyListener())) {\n                    this.listeners.remove(IvyListener.class, listeners[i]);\n                }\n            }\n        }\n    }\n\n    public boolean hasIvyListener(IvyListener listener) {\n        return Arrays.asList(listeners.getListeners(IvyListener.class)).contains(listener);\n    }\n\n    public void fireIvyEvent(IvyEvent evt) {\n        Object[] listeners = this.listeners.getListenerList();\n        for (int i = listeners.length - 2; i >= 0; i -= 2) {\n            if (listeners[i] == IvyListener.class) {\n                ((IvyListener) listeners[i + 1]).progress(evt);\n            }\n        }\n    }\n\n    public void addTransferListener(TransferListener listener) {\n        listeners.add(TransferListener.class, listener);\n    }\n\n    public void removeTransferListener(TransferListener listener) {\n        listeners.remove(TransferListener.class, listener);\n    }\n\n    public boolean hasTransferListener(TransferListener listener) {\n        return Arrays.asList(listeners.getListeners(TransferListener.class)).contains(listener);\n    }\n\n    protected void fireTransferEvent(TransferEvent evt) {\n        Object[] listeners = this.listeners.getListenerList();\n        for (int i = listeners.length - 2; i >= 0; i -= 2) {\n            if (listeners[i] == TransferListener.class) {\n                ((TransferListener) listeners[i + 1]).transferProgress(evt);\n            }\n        }\n    }\n\n    public void transferProgress(TransferEvent evt) {\n        fireTransferEvent(evt);\n        fireIvyEvent(evt);", "functions": [{"function_name": "addIvyListener", "code": "    public void addIvyListener(IvyListener listener) {\n        listeners.add(IvyListener.class, listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addIvyListener", "code": "    public void addIvyListener(IvyListener listener, String eventName) {\n        addIvyListener(listener, new IvyEventFilter(eventName, null, null));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addIvyListener", "code": "    public void addIvyListener(IvyListener listener, Filter filter) {\n        listeners.add(IvyListener.class, new FilteredIvyListener(listener, filter));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeIvyListener", "code": "    public void removeIvyListener(IvyListener listener) {\n        listeners.remove(IvyListener.class, listener);\n        IvyListener[] listeners = (IvyListener[]) this.listeners.getListeners(IvyListener.class);\n        for (int i = 0; i < listeners.length; i++) {\n            if (listeners[i] instanceof FilteredIvyListener) {\n                if (listener.equals(((FilteredIvyListener) listeners[i]).getIvyListener())) {\n                    this.listeners.remove(IvyListener.class, listeners[i]);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [6, 7], [1, 8], [6, 9], [2, 10], [9, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 6], [8, 1], [9, 6], [10, 2], [11, 9], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "hasIvyListener", "code": "    public boolean hasIvyListener(IvyListener listener) {\n        return Arrays.asList(listeners.getListeners(IvyListener.class)).contains(listener);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "fireIvyEvent", "code": "    public void fireIvyEvent(IvyEvent evt) {\n        Object[] listeners = this.listeners.getListenerList();\n        for (int i = listeners.length - 2; i >= 0; i -= 2) {\n            if (listeners[i] == IvyListener.class) {\n                ((IvyListener) listeners[i + 1]).progress(evt);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [1, 10], [2, 11], [10, 12], [6, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 1], [11, 2], [12, 10], [13, 6], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "addTransferListener", "code": "    public void addTransferListener(TransferListener listener) {\n        listeners.add(TransferListener.class, listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "removeTransferListener", "code": "    public void removeTransferListener(TransferListener listener) {\n        listeners.remove(TransferListener.class, listener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasTransferListener", "code": "    public boolean hasTransferListener(TransferListener listener) {\n        return Arrays.asList(listeners.getListeners(TransferListener.class)).contains(listener);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "fireTransferEvent", "code": "    protected void fireTransferEvent(TransferEvent evt) {\n        Object[] listeners = this.listeners.getListenerList();\n        for (int i = listeners.length - 2; i >= 0; i -= 2) {\n            if (listeners[i] == TransferListener.class) {\n                ((TransferListener) listeners[i + 1]).transferProgress(evt);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [1, 10], [2, 11], [10, 12], [6, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 1], [11, 2], [12, 10], [13, 6], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "transferProgress", "code": "    public void transferProgress(TransferEvent evt) {\n        fireTransferEvent(evt);\n        fireIvyEvent(evt);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.5-7299", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xpath/axes/OneStepIteratorForward.java", "language": "java", "name": "org.apache.xpath.axes.OneStepIteratorForward", "code": "public class OneStepIteratorForward extends ChildTestIterator\n{\n  /** The traversal axis from where the nodes will be filtered. */\n  protected int m_axis = -1;\n\n  /**\n   * Create a OneStepIterator object.\n   *\n   * @param compiler A reference to the Compiler that contains the op map.\n   * @param opPos The position within the op map, which contains the\n   * location path expression for this itterator.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  OneStepIteratorForward(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis);\n    int firstStepPos = compiler.getFirstChildPos(opPos);\n    \n    m_axis = WalkerFactory.getAxisFromStep(compiler, firstStepPos);\n    \n  }\n    \n  /**\n   * Create a OneStepIterator object that will just traverse the self axes.\n   * \n   * @param axis One of the org.apache.xml.dtm.Axis integers.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public OneStepIteratorForward(int axis)\n  {\n    super(null);\n    \n    m_axis = axis;\n    int whatToShow = DTMFilter.SHOW_ALL;\n    initNodeTest(whatToShow);\n  }\n\n  \n\n  \n  /**\n   * Initialize the context values for this expression\n   * after it is cloned.\n   *\n   * @param execContext The XPath runtime context for this\n   * transformation.\n   */\n  public void setRoot(int context, Object environment)\n  {\n    super.setRoot(context, environment);\n    m_traverser = m_cdtm.getAxisTraverser(m_axis);\n    \n  }\n  \n  \n  /**\n   * Get the next node via getFirstAttribute && getNextAttribute.\n   */\n  protected int getNextNode()\n  {\n    m_lastFetched = (DTM.NULL == m_lastFetched)\n                     ? m_traverser.first(m_context)\n                     : m_traverser.next(m_context, m_lastFetched);\n    return m_lastFetched;\n  }\n  \n  /**\n   * Returns the axis being iterated, if it is known.\n   * \n   * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple \n   * types.\n   */\n  public int getAxis()\n  {\n    return m_axis;\n  }\n\n  /**\n   * @see Expression#deepEquals(Expression)\n   */\n  public boolean deepEquals(Expression expr)\n  {\n  \tif(!super.deepEquals(expr))\n  \t\treturn false;\n  \t\t\n  \tif(m_axis != ((OneStepIteratorForward)expr).m_axis)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "functions": [{"function_name": "setRoot", "code": "  public void setRoot(int context, Object environment)\n  {\n    super.setRoot(context, environment);\n    m_traverser = m_cdtm.getAxisTraverser(m_axis);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getNextNode", "code": "  protected int getNextNode()\n  {\n    m_lastFetched = (DTM.NULL == m_lastFetched)\n                     ? m_traverser.first(m_context)\n                     : m_traverser.next(m_context, m_lastFetched);\n    return m_lastFetched;", "ast_nodes": ["FUNC_DECL", "RETURN", "ASSIGN", "COND_EXPR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [3, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getAxis", "code": "  public int getAxis()\n  {\n    return m_axis;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "deepEquals", "code": "  public boolean deepEquals(Expression expr)\n  {\n  \tif(!super.deepEquals(expr))\n  \t\treturn false;\n  \t\t\n  \tif(m_axis != ((OneStepIteratorForward)expr).m_axis)\n  \t\treturn false;\n  \t\t\n  \treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [3, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 3], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "OneStepIteratorForward", "code": "  OneStepIteratorForward(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis);\n    int firstStepPos = compiler.getFirstChildPos(opPos);\n    \n    m_axis = WalkerFactory.getAxisFromStep(compiler, firstStepPos);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "OneStepIteratorForward", "code": "  public OneStepIteratorForward(int axis)\n  {\n    super(null);\n    \n    m_axis = axis;\n    int whatToShow = DTMFilter.SHOW_ALL;\n    initNodeTest(whatToShow);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "xalan-2.7-8304", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/compiler/XPathParser.java", "language": "java", "name": "org.apache.xpath.compiler.XPathParser", "code": "public class XPathParser\n{\n\tstatic public final String CONTINUE_AFTER_FATAL_ERROR=\"CONTINUE_AFTER_FATAL_ERROR\";\n\n  /**\n   * The XPath to be processed.\n   */\n  private OpMap m_ops;\n\n  /**\n   * The next token in the pattern.\n   */\n  transient String m_token;\n\n  /**\n   * The first char in m_token, the theory being that this\n   * is an optimization because we won't have to do charAt(0) as\n   * often.\n   */\n  transient char m_tokenChar = 0;\n\n  /**\n   * The position in the token queue is tracked by m_queueMark.\n   */\n  int m_queueMark = 0;\n\n  /**\n   * Results from checking FilterExpr syntax\n   */\n  protected final static int FILTER_MATCH_FAILED     = 0;\n  protected final static int FILTER_MATCH_PRIMARY    = 1;\n  protected final static int FILTER_MATCH_PREDICATES = 2;\n\n  /**\n   * The parser constructor.\n   */\n  public XPathParser(ErrorListener errorListener, javax.xml.transform.SourceLocator sourceLocator)\n  {\n    m_errorListener = errorListener;\n    m_sourceLocator = sourceLocator;\n  }\n\n  /**\n   * The prefix resolver to map prefixes to namespaces in the OpMap.\n   */\n  PrefixResolver m_namespaceContext;\n\n  /**\n   * Given an string, init an XPath object for selections,\n   * in order that a parse doesn't\n   * have to be done each time the expression is evaluated.\n   * \n   * @param compiler The compiler object.\n   * @param expression A string conforming to the XPath grammar.\n   * @param namespaceContext An object that is able to resolve prefixes in\n   * the XPath to namespaces.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public void initXPath(\n          Compiler compiler, String expression, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    m_ops = compiler;\n    m_namespaceContext = namespaceContext;\n    m_functionTable = compiler.getFunctionTable();\n\n    Lexer lexer = new Lexer(compiler, namespaceContext, this);\n\n    lexer.tokenize(expression);\n\n    m_ops.setOp(0,OpCodes.OP_XPATH);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH,2);\n    \n    \n\ttry {\n\n      nextToken();\n      Expr();\n\n      if (null != m_token)\n      {\n        String extraTokens = \"\";\n\n        while (null != m_token)\n        {\n          extraTokens += \"'\" + m_token + \"'\";\n\n          nextToken();\n\n          if (null != m_token)\n            extraTokens += \", \";\n        }\n\n        error(XPATHErrorResources.ER_EXTRA_ILLEGAL_TOKENS);\n      }\n\n    } \n    catch (org.apache.xpath.XPathProcessorException e)\n    {\n\t  if(CONTINUE_AFTER_FATAL_ERROR.equals(e.getMessage()))\n\t  {\n\t\tinitXPath(compiler, \"/..\",  namespaceContext);\n\t  }\n\t  else\n\t\tthrow e;\n    }\n\n    compiler.shrink();\n  }\n\n  /**\n   * Given an string, init an XPath object for pattern matches,\n   * in order that a parse doesn't\n   * have to be done each time the expression is evaluated.\n   * @param compiler The XPath object to be initialized.\n   * @param expression A String representing the XPath.\n   * @param namespaceContext An object that is able to resolve prefixes in\n   * the XPath to namespaces.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public void initMatchPattern(\n          Compiler compiler, String expression, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    m_ops = compiler;\n    m_namespaceContext = namespaceContext;\n    m_functionTable = compiler.getFunctionTable();\n\n    Lexer lexer = new Lexer(compiler, namespaceContext, this);\n\n    lexer.tokenize(expression);\n\n    m_ops.setOp(0, OpCodes.OP_MATCHPATTERN);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, 2);\n\n    nextToken();\n    Pattern();\n\n    if (null != m_token)\n    {\n      String extraTokens = \"\";\n\n      while (null != m_token)\n      {\n        extraTokens += \"'\" + m_token + \"'\";\n\n        nextToken();\n\n        if (null != m_token)\n          extraTokens += \", \";\n      }\n\n      error(XPATHErrorResources.ER_EXTRA_ILLEGAL_TOKENS);\n    }\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH)+1);\n\n    m_ops.shrink();\n  }\n\n  /** The error listener where syntax errors are to be sent.\n   */\n  private ErrorListener m_errorListener;\n  \n  /** The source location of the XPath. */\n  javax.xml.transform.SourceLocator m_sourceLocator;\n  \n  /** The table contains build-in functions and customized functions */\n  private FunctionTable m_functionTable;\n\n  /**\n   * Allow an application to register an error event handler, where syntax \n   * errors will be sent.  If the error listener is not set, syntax errors \n   * will be sent to System.err.\n   * \n   * @param handler Reference to error listener where syntax errors will be \n   *                sent.\n   */\n  public void setErrorHandler(ErrorListener handler)\n  {\n    m_errorListener = handler;\n  }\n\n  /**\n   * Return the current error listener.\n   *\n   * @return The error listener, which should not normally be null, but may be.\n   */\n  public ErrorListener getErrorListener()\n  {\n    return m_errorListener;\n  }\n\n  /**\n   * Check whether m_token matches the target string. \n   *\n   * @param s A string reference or null.\n   *\n   * @return If m_token is null, returns false (or true if s is also null), or \n   * return true if the current token matches the string, else false.\n   */\n  final boolean tokenIs(String s)\n  {\n    return (m_token != null) ? (m_token.equals(s)) : (s == null);\n  }\n\n  /**\n   * Check whether m_tokenChar==c. \n   *\n   * @param c A character to be tested.\n   *\n   * @return If m_token is null, returns false, or return true if c matches \n   *         the current token.\n   */\n  final boolean tokenIs(char c)\n  {\n    return (m_token != null) ? (m_tokenChar == c) : false;\n  }\n\n  /**\n   * Look ahead of the current token in order to\n   * make a branching decision.\n   *\n   * @param c the character to be tested for.\n   * @param n number of tokens to look ahead.  Must be\n   * greater than 1.\n   *\n   * @return true if the next token matches the character argument.\n   */\n  final boolean lookahead(char c, int n)\n  {\n\n    int pos = (m_queueMark + n);\n    boolean b;\n\n    if ((pos <= m_ops.getTokenQueueSize()) && (pos > 0)\n            && (m_ops.getTokenQueueSize() != 0))\n    {\n      String tok = ((String) m_ops.m_tokenQueue.elementAt(pos - 1));\n\n      b = (tok.length() == 1) ? (tok.charAt(0) == c) : false;\n    }\n    else\n    {\n      b = false;\n    }\n\n    return b;\n  }\n\n  /**\n   * Look behind the first character of the current token in order to\n   * make a branching decision.\n   * \n   * @param c the character to compare it to.\n   * @param n number of tokens to look behind.  Must be\n   * greater than 1.  Note that the look behind terminates\n   * at either the beginning of the string or on a '|'\n   * character.  Because of this, this method should only\n   * be used for pattern matching.\n   *\n   * @return true if the token behind the current token matches the character \n   *         argument.\n   */\n  private final boolean lookbehind(char c, int n)\n  {\n\n    boolean isToken;\n    int lookBehindPos = m_queueMark - (n + 1);\n\n    if (lookBehindPos >= 0)\n    {\n      String lookbehind = (String) m_ops.m_tokenQueue.elementAt(lookBehindPos);\n\n      if (lookbehind.length() == 1)\n      {\n        char c0 = (lookbehind == null) ? '|' : lookbehind.charAt(0);\n\n        isToken = (c0 == '|') ? false : (c0 == c);\n      }\n      else\n      {\n        isToken = false;\n      }\n    }\n    else\n    {\n      isToken = false;\n    }\n\n    return isToken;\n  }\n\n  /**\n   * look behind the current token in order to\n   * see if there is a useable token.\n   * \n   * @param n number of tokens to look behind.  Must be\n   * greater than 1.  Note that the look behind terminates\n   * at either the beginning of the string or on a '|'\n   * character.  Because of this, this method should only\n   * be used for pattern matching.\n   * \n   * @return true if look behind has a token, false otherwise.\n   */\n  private final boolean lookbehindHasToken(int n)\n  {\n\n    boolean hasToken;\n\n    if ((m_queueMark - n) > 0)\n    {\n      String lookbehind = (String) m_ops.m_tokenQueue.elementAt(m_queueMark - (n - 1));\n      char c0 = (lookbehind == null) ? '|' : lookbehind.charAt(0);\n\n      hasToken = (c0 == '|') ? false : true;\n    }\n    else\n    {\n      hasToken = false;\n    }\n\n    return hasToken;\n  }\n\n  /**\n   * Look ahead of the current token in order to\n   * make a branching decision.\n   * \n   * @param s the string to compare it to.\n   * @param n number of tokens to lookahead.  Must be\n   * greater than 1.\n   *\n   * @return true if the token behind the current token matches the string \n   *         argument.\n   */\n  private final boolean lookahead(String s, int n)\n  {\n\n    boolean isToken;\n\n    if ((m_queueMark + n) <= m_ops.getTokenQueueSize())\n    {\n      String lookahead = (String) m_ops.m_tokenQueue.elementAt(m_queueMark + (n - 1));\n\n      isToken = (lookahead != null) ? lookahead.equals(s) : (s == null);\n    }\n    else\n    {\n      isToken = (null == s);\n    }\n\n    return isToken;\n  }\n\n  /**\n   * Retrieve the next token from the command and\n   * store it in m_token string.\n   */\n  private final void nextToken()\n  {\n\n    if (m_queueMark < m_ops.getTokenQueueSize())\n    {\n      m_token = (String) m_ops.m_tokenQueue.elementAt(m_queueMark++);\n      m_tokenChar = m_token.charAt(0);\n    }\n    else\n    {\n      m_token = null;\n      m_tokenChar = 0;\n    }\n  }\n\n  /**\n   * Retrieve a token relative to the current token.\n   * \n   * @param i Position relative to current token.\n   *\n   * @return The string at the given index, or null if the index is out \n   *         of range.\n   */\n  private final String getTokenRelative(int i)\n  {\n\n    String tok;\n    int relative = m_queueMark + i;\n\n    if ((relative > 0) && (relative < m_ops.getTokenQueueSize()))\n    {\n      tok = (String) m_ops.m_tokenQueue.elementAt(relative);\n    }\n    else\n    {\n      tok = null;\n    }\n\n    return tok;\n  }\n\n  /**\n   * Retrieve the previous token from the command and\n   * store it in m_token string.\n   */\n  private final void prevToken()\n  {\n\n    if (m_queueMark > 0)\n    {\n      m_queueMark--;\n\n      m_token = (String) m_ops.m_tokenQueue.elementAt(m_queueMark);\n      m_tokenChar = m_token.charAt(0);\n    }\n    else\n    {\n      m_token = null;\n      m_tokenChar = 0;\n    }\n  }\n\n  /**\n   * Consume an expected token, throwing an exception if it\n   * isn't there.\n   *\n   * @param expected The string to be expected.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  private final void consumeExpected(String expected)\n          throws javax.xml.transform.TransformerException\n  {\n\n    if (tokenIs(expected))\n    {\n      nextToken();\n    }\n    else\n    {\n      error(XPATHErrorResources.ER_EXPECTED_BUT_FOUND, new Object[]{ expected});\n\n\t\tthrow new XPathProcessorException(CONTINUE_AFTER_FATAL_ERROR);\n\t}\n  }\n\n  /**\n   * Consume an expected token, throwing an exception if it\n   * isn't there.\n   *\n   * @param expected the character to be expected.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  private final void consumeExpected(char expected)\n          throws javax.xml.transform.TransformerException\n  {\n\n    if (tokenIs(expected))\n    {\n      nextToken();\n    }\n    else\n    {\n      error(XPATHErrorResources.ER_EXPECTED_BUT_FOUND,\n            new Object[]{ String.valueOf(expected)});\n\n\t\tthrow new XPathProcessorException(CONTINUE_AFTER_FATAL_ERROR);\n    }\n  }\n\n  /**\n   * Warn the user of a problem.\n   *\n   * @param msg An error msgkey that corresponds to one of the constants found \n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is \n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which \n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to \n   *                              throw an exception.\n   */\n  void warn(String msg, Object[] args) throws TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHWarning(msg, args);\n    ErrorListener ehandler = this.getErrorListener();\n\n    if (null != ehandler)\n    {\n      ehandler.warning(new TransformerException(fmsg, m_sourceLocator));\n    }\n    else\n    {\n      System.err.println(fmsg);\n    }\n  }\n\n  /**\n   * Notify the user of an assertion error, and probably throw an\n   * exception.\n   *\n   * @param b  If false, a runtime exception will be thrown.\n   * @param msg The assertion message, which should be informative.\n   * \n   * @throws RuntimeException if the b argument is false.\n   */\n  private void assertion(boolean b, String msg)\n  {\n\n    if (!b)\n    {\n      String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ msg });\n\n      throw new RuntimeException(fMsg);\n    }\n  }\n\n  /**\n   * Notify the user of an error, and probably throw an\n   * exception.\n   *\n   * @param msg An error msgkey that corresponds to one of the constants found \n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is \n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which \n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to \n   *                              throw an exception.\n   */\n  void error(String msg, Object[] args) throws TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHMessage(msg, args);\n    ErrorListener ehandler = this.getErrorListener();\n\n    TransformerException te = new TransformerException(fmsg, m_sourceLocator);\n    if (null != ehandler)\n    {\n      ehandler.fatalError(te);\n    }\n    else\n    {\n      throw te;\n    }\n  }\n\n  /**\n   * This method is added to support DOM 3 XPath API.\n   * <p>\n   * This method is exactly like error(String, Object[]); except that\n   * the underlying TransformerException is \n   * XpathStylesheetDOM3Exception (which extends TransformerException).\n   * <p>\n   * So older XPath code in Xalan is not affected by this. To older XPath code\n   * the behavior of whether error() or errorForDOM3() is called because it is\n   * always catching TransformerException objects and is oblivious to\n   * the new subclass of XPathStylesheetDOM3Exception. Older XPath code \n   * runs as before.\n   * <p>\n   * However, newer DOM3 XPath code upon catching a TransformerException can\n   * can check if the exception is an instance of XPathStylesheetDOM3Exception\n   * and take appropriate action.\n   * \n   * @param msg An error msgkey that corresponds to one of the constants found \n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is \n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which \n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to \n   *                              throw an exception.\n   */\n  void errorForDOM3(String msg, Object[] args) throws TransformerException\n  {\n\n\tString fmsg = XSLMessages.createXPATHMessage(msg, args);\n\tErrorListener ehandler = this.getErrorListener();\n\n\tTransformerException te = new XPathStylesheetDOM3Exception(fmsg, m_sourceLocator);\n\tif (null != ehandler)\n\t{\n\t  ehandler.fatalError(te);\n\t}\n\telse\n\t{\n\t  throw te;\n\t}\n  }\n  /**\n   * Dump the remaining token queue.\n   * Thanks to Craig for this.\n   *\n   * @return A dump of the remaining token queue, which may be appended to \n   *         an error message.\n   */\n  protected String dumpRemainingTokenQueue()\n  {\n\n    int q = m_queueMark;\n    String returnMsg;\n\n    if (q < m_ops.getTokenQueueSize())\n    {\n      String msg = \"\\n Remaining tokens: (\";\n\n      while (q < m_ops.getTokenQueueSize())\n      {\n        String t = (String) m_ops.m_tokenQueue.elementAt(q++);\n\n        msg += (\" '\" + t + \"'\");\n      }\n\n      returnMsg = msg + \")\";\n    }\n    else\n    {\n      returnMsg = \"\";\n    }\n\n    return returnMsg;\n  }\n\n  /**\n   * Given a string, return the corresponding function token.\n   *\n   * @param key A local name of a function.\n   *\n   * @return   The function ID, which may correspond to one of the FUNC_XXX \n   *    values found in {@link org.apache.xpath.compiler.FunctionTable}, but may \n   *    be a value installed by an external module.\n   */\n  final int getFunctionToken(String key)\n  {\n\n    int tok;\n    \n    Object id;\n\n    try\n    {\n      id = Keywords.lookupNodeTest(key);\n      if (null == id) id = m_functionTable.getFunctionID(key);\n      tok = ((Integer) id).intValue();\n    }\n    catch (NullPointerException npe)\n    {\n      tok = -1;\n    }\n    catch (ClassCastException cce)\n    {\n      tok = -1;\n    }\n\n    return tok;\n  }\n\n  /**\n   * Insert room for operation.  This will NOT set\n   * the length value of the operation, but will update\n   * the length value for the total expression.\n   *\n   * @param pos The position where the op is to be inserted.\n   * @param length The length of the operation space in the op map.\n   * @param op The op code to the inserted.\n   */\n  void insertOp(int pos, int length, int op)\n  {\n\n    int totalLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    for (int i = totalLen - 1; i >= pos; i--)\n    {\n      m_ops.setOp(i + length, m_ops.getOp(i));\n    }\n\n    m_ops.setOp(pos,op);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH,totalLen + length);\n  }\n\n  /**\n   * Insert room for operation.  This WILL set\n   * the length value of the operation, and will update\n   * the length value for the total expression.\n   *\n   * @param length The length of the operation.\n   * @param op The op code to the inserted.\n   */\n  void appendOp(int length, int op)\n  {\n\n    int totalLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    m_ops.setOp(totalLen, op);\n    m_ops.setOp(totalLen + OpMap.MAPINDEX_LENGTH, length);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, totalLen + length);\n  }\n\n\n  /**\n   *\n   *\n   * Expr  ::=  OrExpr\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void Expr() throws javax.xml.transform.TransformerException\n  {\n    OrExpr();\n  }\n\n  /**\n   *\n   *\n   * OrExpr  ::=  AndExpr\n   * | OrExpr 'or' AndExpr\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void OrExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    AndExpr();\n\n    if ((null != m_token) && tokenIs(\"or\"))\n    {\n      nextToken();\n      insertOp(opPos, 2, OpCodes.OP_OR);\n      OrExpr();\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n    }\n  }\n\n  /**\n   *\n   *\n   * AndExpr  ::=  EqualityExpr\n   * | AndExpr 'and' EqualityExpr\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void AndExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    EqualityExpr(-1);\n\n    if ((null != m_token) && tokenIs(\"and\"))\n    {\n      nextToken();\n      insertOp(opPos, 2, OpCodes.OP_AND);\n      AndExpr();\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n    }\n  }\n\n  /**\n   *\n   * @returns an Object which is either a String, a Number, a Boolean, or a vector\n   * of nodes.\n   *\n   * EqualityExpr  ::=  RelationalExpr\n   * | EqualityExpr '=' RelationalExpr\n   *\n   *\n   * @param addPos Position where expression is to be added, or -1 for append.\n   *\n   * @return the position at the end of the equality expression.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected int EqualityExpr(int addPos) throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if (-1 == addPos)\n      addPos = opPos;\n\n    RelationalExpr(-1);\n\n    if (null != m_token)\n    {\n      if (tokenIs('!') && lookahead('=', 1))\n      {\n        nextToken();\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_NOTEQUALS);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = EqualityExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs('='))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_EQUALS);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = EqualityExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n    }\n\n    return addPos;\n  }\n\n  /**\n   * .\n   * @returns an Object which is either a String, a Number, a Boolean, or a vector\n   * of nodes.\n   *\n   * RelationalExpr  ::=  AdditiveExpr\n   * | RelationalExpr '<' AdditiveExpr\n   * | RelationalExpr '>' AdditiveExpr\n   * | RelationalExpr '<=' AdditiveExpr\n   * | RelationalExpr '>=' AdditiveExpr\n   *\n   *\n   * @param addPos Position where expression is to be added, or -1 for append.\n   *\n   * @return the position at the end of the relational expression.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected int RelationalExpr(int addPos) throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if (-1 == addPos)\n      addPos = opPos;\n\n    AdditiveExpr(-1);\n\n    if (null != m_token)\n    {\n      if (tokenIs('<'))\n      {\n        nextToken();\n\n        if (tokenIs('='))\n        {\n          nextToken();\n          insertOp(addPos, 2, OpCodes.OP_LTE);\n        }\n        else\n        {\n          insertOp(addPos, 2, OpCodes.OP_LT);\n        }\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = RelationalExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH, \n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs('>'))\n      {\n        nextToken();\n\n        if (tokenIs('='))\n        {\n          nextToken();\n          insertOp(addPos, 2, OpCodes.OP_GTE);\n        }\n        else\n        {\n          insertOp(addPos, 2, OpCodes.OP_GT);\n        }\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = RelationalExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n    }\n\n    return addPos;\n  }\n\n  /**\n   * This has to handle construction of the operations so that they are evaluated\n   * in pre-fix order.  So, for 9+7-6, instead of |+|9|-|7|6|, this needs to be\n   * evaluated as |-|+|9|7|6|.\n   *\n   * AdditiveExpr  ::=  MultiplicativeExpr\n   * | AdditiveExpr '+' MultiplicativeExpr\n   * | AdditiveExpr '-' MultiplicativeExpr\n   *\n   *\n   * @param addPos Position where expression is to be added, or -1 for append.\n   *\n   * @return the position at the end of the equality expression.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected int AdditiveExpr(int addPos) throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if (-1 == addPos)\n      addPos = opPos;\n\n    MultiplicativeExpr(-1);\n\n    if (null != m_token)\n    {\n      if (tokenIs('+'))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_PLUS);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = AdditiveExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs('-'))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_MINUS);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = AdditiveExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH, \n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n    }\n\n    return addPos;\n  }\n\n  /**\n   * This has to handle construction of the operations so that they are evaluated\n   * in pre-fix order.  So, for 9+7-6, instead of |+|9|-|7|6|, this needs to be\n   * evaluated as |-|+|9|7|6|.\n   *\n   * MultiplicativeExpr  ::=  UnaryExpr\n   * | MultiplicativeExpr MultiplyOperator UnaryExpr\n   * | MultiplicativeExpr 'div' UnaryExpr\n   * | MultiplicativeExpr 'mod' UnaryExpr\n   * | MultiplicativeExpr 'quo' UnaryExpr\n   *\n   * @param addPos Position where expression is to be added, or -1 for append.\n   *\n   * @return the position at the end of the equality expression.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected int MultiplicativeExpr(int addPos) throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if (-1 == addPos)\n      addPos = opPos;\n\n    UnaryExpr();\n\n    if (null != m_token)\n    {\n      if (tokenIs('*'))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_MULT);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = MultiplicativeExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs(\"div\"))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_DIV);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = MultiplicativeExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs(\"mod\"))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_MOD);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = MultiplicativeExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs(\"quo\"))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_QUO);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = MultiplicativeExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n    }\n\n    return addPos;\n  }\n\n  /**\n   *\n   * UnaryExpr  ::=  UnionExpr\n   * | '-' UnaryExpr\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void UnaryExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n    boolean isNeg = false;\n\n    if (m_tokenChar == '-')\n    {\n      nextToken();\n      appendOp(2, OpCodes.OP_NEG);\n\n      isNeg = true;\n    }\n\n    UnionExpr();\n\n    if (isNeg)\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n  }\n\n  /**\n   *\n   * StringExpr  ::=  Expr\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void StringExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_STRING);\n    Expr();\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n  }\n\n  /**\n   *\n   *\n   * StringExpr  ::=  Expr\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void BooleanExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_BOOL);\n    Expr();\n\n    int opLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos;\n\n    if (opLen == 2)\n    {\n    }\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH, opLen);\n  }\n\n  /**\n   *\n   *\n   * NumberExpr  ::=  Expr\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void NumberExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_NUMBER);\n    Expr();\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n  }\n\n  /**\n   * The context of the right hand side expressions is the context of the\n   * left hand side expression. The results of the right hand side expressions\n   * are node sets. The result of the left hand side UnionExpr is the union\n   * of the results of the right hand side expressions.\n   *\n   *\n   * UnionExpr    ::=    PathExpr\n   * | UnionExpr '|' PathExpr\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void UnionExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n    boolean continueOrLoop = true;\n    boolean foundUnion = false;\n\n    do\n    {\n      PathExpr();\n\n      if (tokenIs('|'))\n      {\n        if (false == foundUnion)\n        {\n          foundUnion = true;\n\n          insertOp(opPos, 2, OpCodes.OP_UNION);\n        }\n\n        nextToken();\n      }\n      else\n      {\n        break;\n      }\n\n    }\n    while (continueOrLoop);\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n  }\n\n  /**\n   * PathExpr  ::=  LocationPath\n   * | FilterExpr\n   * | FilterExpr '/' RelativeLocationPath\n   *\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void PathExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    int filterExprMatch = FilterExpr();\n\n    if (filterExprMatch != FILTER_MATCH_FAILED)\n    {\n      boolean locationPathStarted = (filterExprMatch==FILTER_MATCH_PREDICATES);\n\n      if (tokenIs('/'))\n      {\n        nextToken();\n\n        if (!locationPathStarted)\n        {\n          insertOp(opPos, 2, OpCodes.OP_LOCATIONPATH);\n\n          locationPathStarted = true;\n        }\n\n        if (!RelativeLocationPath())\n        {\n          error(XPATHErrorResources.ER_EXPECTED_REL_LOC_PATH, null);\n        }\n\n      }\n\n      if (locationPathStarted)\n      {\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n        m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n        m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n      }\n    }\n    else\n    {\n      LocationPath();\n    }\n  }\n\n  /**\n   *\n   *\n   * FilterExpr  ::=  PrimaryExpr\n   * | FilterExpr Predicate\n   *\n   * @throws XSLProcessorException thrown if the active ProblemListener and XPathContext decide\n   * the error condition is severe enough to halt processing.\n   *\n   * @return  FILTER_MATCH_PREDICATES, if this method successfully matched a\n   *          FilterExpr with one or more Predicates;\n   *          FILTER_MATCH_PRIMARY, if this method successfully matched a\n   *          FilterExpr that was just a PrimaryExpr; or\n   *          FILTER_MATCH_FAILED, if this method did not match a FilterExpr\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected int FilterExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    int filterMatch;\n\n    if (PrimaryExpr())\n    {\n      if (tokenIs('['))\n      {\n\n        insertOp(opPos, 2, OpCodes.OP_LOCATIONPATH);\n\n        while (tokenIs('['))\n        {\n          Predicate();\n        }\n\n        filterMatch = FILTER_MATCH_PREDICATES;\n      }\n      else\n      {\n        filterMatch = FILTER_MATCH_PRIMARY;\n      }\n    }\n    else\n    {\n      filterMatch = FILTER_MATCH_FAILED;\n    }\n\n    return filterMatch;\n\n    /*\n     * if(tokenIs('['))\n     * {\n     *   Predicate();\n     *   m_ops.m_opMap[opPos + OpMap.MAPINDEX_LENGTH] = m_ops.m_opMap[OpMap.MAPINDEX_LENGTH] - opPos;\n     * }\n     */\n  }\n\n  /**\n   *\n   * PrimaryExpr  ::=  VariableReference\n   * | '(' Expr ')'\n   * | Literal\n   * | Number\n   * | FunctionCall\n   *\n   * @return true if this method successfully matched a PrimaryExpr\n   *\n   * @throws javax.xml.transform.TransformerException\n   *\n   */\n  protected boolean PrimaryExpr() throws javax.xml.transform.TransformerException\n  {\n\n    boolean matchFound;\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if ((m_tokenChar == '\\'') || (m_tokenChar == '\"'))\n    {\n      appendOp(2, OpCodes.OP_LITERAL);\n      Literal();\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH, \n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      matchFound = true;\n    }\n    else if (m_tokenChar == '$')\n    {\n      appendOp(2, OpCodes.OP_VARIABLE);\n      QName();\n      \n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      matchFound = true;\n    }\n    else if (m_tokenChar == '(')\n    {\n      nextToken();\n      appendOp(2, OpCodes.OP_GROUP);\n      Expr();\n      consumeExpected(')');\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      matchFound = true;\n    }\n    else if ((null != m_token) && ((('.' == m_tokenChar) && (m_token.length() > 1) && Character.isDigit(\n            m_token.charAt(1))) || Character.isDigit(m_tokenChar)))\n    {\n      appendOp(2, OpCodes.OP_NUMBERLIT);\n      Number();\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      matchFound = true;\n    }\n    else if (lookahead('(', 1) || (lookahead(':', 1) && lookahead('(', 3)))\n    {\n      matchFound = FunctionCall();\n    }\n    else\n    {\n      matchFound = false;\n    }\n\n    return matchFound;\n  }\n\n  /**\n   *\n   * Argument    ::=    Expr\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void Argument() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_ARGUMENT);\n    Expr();\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n  }\n\n  /**\n   *\n   * FunctionCall    ::=    FunctionName '(' ( Argument ( ',' Argument)*)? ')'\n   *\n   * @return true if, and only if, a FunctionCall was matched\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected boolean FunctionCall() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if (lookahead(':', 1))\n    {\n      appendOp(4, OpCodes.OP_EXTFUNCTION);\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 1, m_queueMark - 1);\n\n      nextToken();\n      consumeExpected(':');\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 2, m_queueMark - 1);\n\n      nextToken();\n    }\n    else\n    {\n      int funcTok = getFunctionToken(m_token);\n\n      if (-1 == funcTok)\n      {\n        error(XPATHErrorResources.ER_COULDNOT_FIND_FUNCTION);\n      }\n\n      switch (funcTok)\n      {\n      case OpCodes.NODETYPE_PI :\n      case OpCodes.NODETYPE_COMMENT :\n      case OpCodes.NODETYPE_TEXT :\n      case OpCodes.NODETYPE_NODE :\n        return false;\n      default :\n        appendOp(3, OpCodes.OP_FUNCTION);\n\n        m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 1, funcTok);\n      }\n\n      nextToken();\n    }\n\n    consumeExpected('(');\n\n    while (!tokenIs(')') && m_token != null)\n    {\n      if (tokenIs(','))\n      {\n      }\n\n      Argument();\n\n      if (!tokenIs(')'))\n      {\n        consumeExpected(',');\n\n        if (tokenIs(')'))\n        {\n          error(XPATHErrorResources.ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG);\n        }\n      }\n    }\n\n    consumeExpected(')');\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH,m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH, \n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n    return true;\n  }\n\n\n  /**\n   *\n   * LocationPath ::= RelativeLocationPath\n   * | AbsoluteLocationPath\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void LocationPath() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_LOCATIONPATH);\n\n    boolean seenSlash = tokenIs('/');\n\n    if (seenSlash)\n    {\n      appendOp(4, OpCodes.FROM_ROOT);\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2, 4);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_ROOT);\n\n      nextToken();\n    } else if (m_token == null) {\n      error(XPATHErrorResources.ER_EXPECTED_LOC_PATH_AT_END_EXPR, null);\n    }\n\n    if (m_token != null)\n    {\n      if (!RelativeLocationPath() && !seenSlash)\n      {\n        error(XPATHErrorResources.ER_EXPECTED_LOC_PATH, \n              new Object [] {m_token});\n      }\n    }\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH,m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n  }\n\n  /**\n   *\n   * RelativeLocationPath ::= Step\n   * | RelativeLocationPath '/' Step\n   * | AbbreviatedRelativeLocationPath\n   *\n   * @returns true if, and only if, a RelativeLocationPath was matched\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected boolean RelativeLocationPath()\n               throws javax.xml.transform.TransformerException\n  {\n    if (!Step())\n    {\n      return false;\n    }\n\n    while (tokenIs('/'))\n    {\n      nextToken();\n\n      if (!Step())\n      {\n        error(XPATHErrorResources.ER_EXPECTED_LOC_STEP, null);\n      }\n    }\n\n    return true;\n  }\n\n  /**\n   *\n   * Step    ::=    Basis Predicate\n   * | AbbreviatedStep\n   *\n   * @returns false if step was empty (or only a '/'); true, otherwise\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected boolean Step() throws javax.xml.transform.TransformerException\n  {\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    boolean doubleSlash = tokenIs('/');\n\n    if (doubleSlash)\n    {\n      nextToken();\n\n      appendOp(2, OpCodes.FROM_DESCENDANTS_OR_SELF);\n\n\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH,m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.NODETYPE_NODE);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH,m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 1,\n          m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n    }\n\n    if (tokenIs(\".\"))\n    {\n      nextToken();\n\n      if (tokenIs('['))\n      {\n      }\n\n      appendOp(4, OpCodes.FROM_SELF);\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2,4);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_NODE);\n    }\n    else if (tokenIs(\"..\"))\n    {\n      nextToken();\n      appendOp(4, OpCodes.FROM_PARENT);\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2,4);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_NODE);\n    }\n\n    else if (tokenIs('*') || tokenIs('@') || tokenIs('_')\n             || (m_token!= null && Character.isLetter(m_token.charAt(0))))\n    {\n      Basis();\n\n      while (tokenIs('['))\n      {\n        Predicate();\n      }\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos); \n    }\n    else\n    {\n      if (doubleSlash)\n      {\n        error(XPATHErrorResources.ER_EXPECTED_LOC_STEP, null);\n      }\n\n      return false;\n    }\n\n    return true;\n  }\n\n  /**\n   *\n   * Basis    ::=    AxisName '::' NodeTest\n   * | AbbreviatedBasis\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void Basis() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n    int axesType;\n\n    if (lookahead(\"::\", 1))\n    {\n      axesType = AxisName();\n\n      nextToken();\n      nextToken();\n    }\n    else if (tokenIs('@'))\n    {\n      axesType = OpCodes.FROM_ATTRIBUTES;\n\n      appendOp(2, axesType);\n      nextToken();\n    }\n    else\n    {\n      axesType = OpCodes.FROM_CHILDREN;\n\n      appendOp(2, axesType);\n    }\n\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n    NodeTest(axesType);\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 1,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n   }\n\n  /**\n   *\n   * Basis    ::=    AxisName '::' NodeTest\n   * | AbbreviatedBasis\n   *\n   * @return FROM_XXX axes type, found in {@link org.apache.xpath.compiler.Keywords}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected int AxisName() throws javax.xml.transform.TransformerException\n  {\n\n    Object val = Keywords.getAxisName(m_token);\n\n    if (null == val)\n    {\n      error(XPATHErrorResources.ER_ILLEGAL_AXIS_NAME);\n    }\n\n    int axesType = ((Integer) val).intValue();\n\n    appendOp(2, axesType);\n\n    return axesType;\n  }\n\n  /**\n   *\n   * NodeTest    ::=    WildcardName\n   * | NodeType '(' ')'\n   * | 'processing-instruction' '(' Literal ')'\n   *\n   * @param axesType FROM_XXX axes type, found in {@link org.apache.xpath.compiler.Keywords}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void NodeTest(int axesType) throws javax.xml.transform.TransformerException\n  {\n\n    if (lookahead('(', 1))\n    {\n      Object nodeTestOp = Keywords.getNodeType(m_token);\n\n      if (null == nodeTestOp)\n      {\n        error(XPATHErrorResources.ER_UNKNOWN_NODETYPE);\n      }\n      else\n      {\n        nextToken();\n\n        int nt = ((Integer) nodeTestOp).intValue();\n\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), nt);\n        m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n        consumeExpected('(');\n\n        if (OpCodes.NODETYPE_PI == nt)\n        {\n          if (!tokenIs(')'))\n          {\n            Literal();\n          }\n        }\n\n        consumeExpected(')');\n      }\n    }\n    else\n    {\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.NODENAME);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      if (lookahead(':', 1))\n      {\n        if (tokenIs('*'))\n        {\n          m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ELEMWILDCARD);\n        }\n        else\n        {\n          m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n\n          if (!Character.isLetter(m_tokenChar) && !tokenIs('_'))\n          {\n            error(XPATHErrorResources.ER_EXPECTED_NODE_TEST, null);\n          }\n        }\n\n        nextToken();\n        consumeExpected(':');\n      }\n      else\n      {\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.EMPTY);\n      }\n\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      if (tokenIs('*'))\n      {\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ELEMWILDCARD);\n      }\n      else\n      {\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n\n        if (!Character.isLetter(m_tokenChar) && !tokenIs('_'))\n        {\n          error(XPATHErrorResources.ER_EXPECTED_NODE_TEST, null);\n        }\n      }\n\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      nextToken();\n    }\n  }\n\n  /**\n   *\n   * Predicate ::= '[' PredicateExpr ']'\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void Predicate() throws javax.xml.transform.TransformerException\n  {\n\n    if (tokenIs('['))\n    {\n      nextToken();\n      PredicateExpr();\n      consumeExpected(']');\n    }\n  }\n\n  /**\n   *\n   * PredicateExpr ::= Expr\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void PredicateExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_PREDICATE);\n    Expr();\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n  }\n\n  /**\n   * QName ::=  (Prefix ':')? LocalPart\n   * Prefix ::=  NCName\n   * LocalPart ::=  NCName\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void QName() throws javax.xml.transform.TransformerException\n  {\n    if(lookahead(':', 1))\n    {\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      nextToken();\n      consumeExpected(':');\n    }\n    else\n    {\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.EMPTY);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n    }\n    \n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n    nextToken();\n  }\n\n  /**\n   * NCName ::=  (Letter | '_') (NCNameChar)\n   * NCNameChar ::=  Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender\n   */\n  protected void NCName()\n  {\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n    nextToken();\n  }\n\n  /**\n   * The value of the Literal is the sequence of characters inside\n   * the \" or ' characters>.\n   *\n   * Literal  ::=  '\"' [^\"]* '\"'\n   * | \"'\" [^']* \"'\"\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void Literal() throws javax.xml.transform.TransformerException\n  {\n\n    int last = m_token.length() - 1;\n    char c0 = m_tokenChar;\n    char cX = m_token.charAt(last);\n\n    if (((c0 == '\\\"') && (cX == '\\\"')) || ((c0 == '\\'') && (cX == '\\'')))\n    {\n\n      int tokenQueuePos = m_queueMark - 1;\n\n      m_ops.m_tokenQueue.setElementAt(null,tokenQueuePos);\n\n      Object obj = new XString(m_token.substring(1, last));\n\n      m_ops.m_tokenQueue.setElementAt(obj,tokenQueuePos);\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), tokenQueuePos);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      nextToken();\n    }\n    else\n    {\n      error(XPATHErrorResources.ER_PATTERN_LITERAL_NEEDS_BE_QUOTED);\n    }\n  }\n\n  /**\n   *\n   * Number ::= [0-9]+('.'[0-9]+)? | '.'[0-9]+\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void Number() throws javax.xml.transform.TransformerException\n  {\n\n    if (null != m_token)\n    {\n\n      double num;\n\n      try\n      {\n      \tif ((m_token.indexOf('e') > -1)||(m_token.indexOf('E') > -1))\n      \t\tthrow new NumberFormatException();\n        num = Double.valueOf(m_token).doubleValue();\n      }\n      catch (NumberFormatException nfe)\n      {\n\n        error(XPATHErrorResources.ER_COULDNOT_BE_FORMATTED_TO_NUMBER);\n      }\n\n      m_ops.m_tokenQueue.setElementAt(new XNumber(num),m_queueMark - 1);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      nextToken();\n    }\n  }\n\n\n  /**\n   *\n   * Pattern  ::=  LocationPathPattern\n   * | Pattern '|' LocationPathPattern\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void Pattern() throws javax.xml.transform.TransformerException\n  {\n\n    while (true)\n    {\n      LocationPathPattern();\n\n      if (tokenIs('|'))\n      {\n        nextToken();\n      }\n      else\n      {\n        break;\n      }\n    }\n  }\n\n  /**\n   *\n   *\n   * LocationPathPattern  ::=  '/' RelativePathPattern?\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void LocationPathPattern() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    final int RELATIVE_PATH_NOT_PERMITTED = 0;\n    final int RELATIVE_PATH_PERMITTED     = 1;\n    final int RELATIVE_PATH_REQUIRED      = 2;\n\n    int relativePathStatus = RELATIVE_PATH_NOT_PERMITTED;\n\n    appendOp(2, OpCodes.OP_LOCATIONPATHPATTERN);\n\n    if (lookahead('(', 1)\n            && (tokenIs(Keywords.FUNC_ID_STRING)\n                || tokenIs(Keywords.FUNC_KEY_STRING)))\n    {\n      IdKeyPattern();\n\n      if (tokenIs('/'))\n      {\n        nextToken();\n\n        if (tokenIs('/'))\n        {\n          appendOp(4, OpCodes.MATCH_ANY_ANCESTOR);\n\n          nextToken();\n        }\n        else\n        {\n          appendOp(4, OpCodes.MATCH_IMMEDIATE_ANCESTOR);\n        }\n\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2, 4);\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_FUNCTEST);\n\n        relativePathStatus = RELATIVE_PATH_REQUIRED;\n      }\n    }\n    else if (tokenIs('/'))\n    {\n      if (lookahead('/', 1))\n      {\n        appendOp(4, OpCodes.MATCH_ANY_ANCESTOR);\n        \n        nextToken();\n\n        relativePathStatus = RELATIVE_PATH_REQUIRED;\n      }\n      else\n      {\n        appendOp(4, OpCodes.FROM_ROOT);\n\n        relativePathStatus = RELATIVE_PATH_PERMITTED;\n      }\n\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2, 4);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_ROOT);\n\n      nextToken();\n    }\n    else\n    {\n      relativePathStatus = RELATIVE_PATH_REQUIRED;\n    }\n\n    if (relativePathStatus != RELATIVE_PATH_NOT_PERMITTED)\n    {\n      if (!tokenIs('|') && (null != m_token))\n      {\n        RelativePathPattern();\n      }\n      else if (relativePathStatus == RELATIVE_PATH_REQUIRED)\n      {\n        error(XPATHErrorResources.ER_EXPECTED_REL_PATH_PATTERN, null);\n      }\n    }\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n  }\n\n  /**\n   *\n   * IdKeyPattern  ::=  'id' '(' Literal ')'\n   * | 'key' '(' Literal ',' Literal ')'\n   * (Also handle doc())\n   *\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void IdKeyPattern() throws javax.xml.transform.TransformerException\n  {\n    FunctionCall();\n  }\n\n  /**\n   *\n   * RelativePathPattern  ::=  StepPattern\n   * | RelativePathPattern '/' StepPattern\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected void RelativePathPattern()\n              throws javax.xml.transform.TransformerException\n  {\n\n    boolean trailingSlashConsumed = StepPattern(false);\n\n    while (tokenIs('/'))\n    {\n      nextToken();\n\n      trailingSlashConsumed = StepPattern(!trailingSlashConsumed);\n    }\n  }\n\n  /**\n   *\n   * StepPattern  ::=  AbbreviatedNodeTestStep\n   *\n   * @param isLeadingSlashPermitted a boolean indicating whether a slash can\n   *        appear at the start of this step\n   *\n   * @return boolean indicating whether a slash following the step was consumed\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected boolean StepPattern(boolean isLeadingSlashPermitted)\n            throws javax.xml.transform.TransformerException\n  {\n    return AbbreviatedNodeTestStep(isLeadingSlashPermitted);\n  }\n\n  /**\n   *\n   * AbbreviatedNodeTestStep    ::=    '@'? NodeTest Predicate\n   *\n   * @param isLeadingSlashPermitted a boolean indicating whether a slash can\n   *        appear at the start of this step\n   *\n   * @return boolean indicating whether a slash following the step was consumed\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected boolean AbbreviatedNodeTestStep(boolean isLeadingSlashPermitted)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n    int axesType;\n\n    int matchTypePos = -1;\n\n    if (tokenIs('@'))\n    {\n      axesType = OpCodes.MATCH_ATTRIBUTE;\n\n      appendOp(2, axesType);\n      nextToken();\n    }\n    else if (this.lookahead(\"::\", 1))\n    {\n      if (tokenIs(\"attribute\"))\n      {\n        axesType = OpCodes.MATCH_ATTRIBUTE;\n\n        appendOp(2, axesType);\n      }\n      else if (tokenIs(\"child\"))\n      {\n        matchTypePos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n        axesType = OpCodes.MATCH_IMMEDIATE_ANCESTOR;\n\n        appendOp(2, axesType);\n      }\n      else\n      {\n        axesType = -1;\n\n        this.error(XPATHErrorResources.ER_AXES_NOT_ALLOWED,\n                   new Object[]{ this.m_token });\n      }\n\n      nextToken();\n      nextToken();\n    }\n    else if (tokenIs('/'))\n    {\n      if (!isLeadingSlashPermitted)\n      {\n        error(XPATHErrorResources.ER_EXPECTED_STEP_PATTERN, null);\n      }\n      axesType = OpCodes.MATCH_ANY_ANCESTOR;\n\n      appendOp(2, axesType);\n      nextToken();\n    }\n    else\n    {\n      matchTypePos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n      axesType = OpCodes.MATCH_IMMEDIATE_ANCESTOR;\n\n      appendOp(2, axesType);\n    }\n\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n    NodeTest(axesType);\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 1,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n    while (tokenIs('['))\n    {\n      Predicate();\n    }\n\n    boolean trailingSlashConsumed;\n\n    if ((matchTypePos > -1) && tokenIs('/') && lookahead('/', 1))\n    {\n      m_ops.setOp(matchTypePos, OpCodes.MATCH_ANY_ANCESTOR);\n\n      nextToken();\n\n      trailingSlashConsumed = true;\n    }\n    else\n    {\n      trailingSlashConsumed = false;\n    }\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n    return trailingSlashConsumed;", "functions": [{"function_name": "initXPath", "code": "  public void initXPath(\n          Compiler compiler, String expression, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    m_ops = compiler;\n    m_namespaceContext = namespaceContext;\n    m_functionTable = compiler.getFunctionTable();\n\n    Lexer lexer = new Lexer(compiler, namespaceContext, this);\n\n    lexer.tokenize(expression);\n\n    m_ops.setOp(0,OpCodes.OP_XPATH);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH,2);\n    \n    \n\ttry {\n\n      nextToken();\n      Expr();\n\n      if (null != m_token)\n      {\n        String extraTokens = \"\";\n\n        while (null != m_token)\n        {\n          extraTokens += \"'\" + m_token + \"'\";\n\n          nextToken();\n\n          if (null != m_token)\n            extraTokens += \", \";\n        }\n\n        error(XPATHErrorResources.ER_EXTRA_ILLEGAL_TOKENS);\n      }\n\n    } \n    catch (org.apache.xpath.XPathProcessorException e)\n    {\n\t  if(CONTINUE_AFTER_FATAL_ERROR.equals(e.getMessage()))\n\t  {\n\t\tinitXPath(compiler, \"/..\",  namespaceContext);\n\t  }\n\t  else\n\t\tthrow e;\n    }\n\n    compiler.shrink();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CATCH", "IF", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [7, 15], [8, 16], [1, 17], [1, 18], [9, 19], [10, 20], [2, 21], [12, 22], [15, 23], [15, 24], [8, 25], [8, 26], [16, 27], [24, 28], [8, 29], [25, 30], [15, 31], [25, 32], [30, 33], [26, 34], [31, 35], [32, 36], [25, 37], [25, 38], [32, 39], [36, 40], [38, 41], [39, 42], [41, 43], [41, 44], [44, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 7], [16, 8], [17, 1], [18, 1], [19, 9], [20, 10], [21, 2], [22, 12], [23, 15], [24, 15], [25, 8], [26, 8], [27, 16], [28, 24], [29, 8], [30, 25], [31, 15], [32, 25], [33, 30], [34, 26], [35, 31], [36, 32], [37, 25], [38, 25], [39, 32], [40, 36], [41, 38], [42, 39], [43, 41], [44, 41], [45, 44], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "initMatchPattern", "code": "  public void initMatchPattern(\n          Compiler compiler, String expression, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    m_ops = compiler;\n    m_namespaceContext = namespaceContext;\n    m_functionTable = compiler.getFunctionTable();\n\n    Lexer lexer = new Lexer(compiler, namespaceContext, this);\n\n    lexer.tokenize(expression);\n\n    m_ops.setOp(0, OpCodes.OP_MATCHPATTERN);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, 2);\n\n    nextToken();\n    Pattern();\n\n    if (null != m_token)\n    {\n      String extraTokens = \"\";\n\n      while (null != m_token)\n      {\n        extraTokens += \"'\" + m_token + \"'\";\n\n        nextToken();\n\n        if (null != m_token)\n          extraTokens += \", \";\n      }\n\n      error(XPATHErrorResources.ER_EXTRA_ILLEGAL_TOKENS);\n    }\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH)+1);\n\n    m_ops.shrink();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [7, 18], [8, 19], [1, 20], [1, 21], [9, 22], [12, 23], [13, 24], [2, 25], [15, 26], [18, 27], [18, 28], [1, 29], [20, 30], [20, 31], [30, 32], [21, 33], [31, 34], [20, 35], [20, 36], [31, 37], [34, 38], [36, 39], [37, 40], [39, 41], [39, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 7], [19, 8], [20, 1], [21, 1], [22, 9], [23, 12], [24, 13], [25, 2], [26, 15], [27, 18], [28, 18], [29, 1], [30, 20], [31, 20], [32, 30], [33, 21], [34, 31], [35, 20], [36, 20], [37, 31], [38, 34], [39, 36], [40, 37], [41, 39], [42, 39], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "setErrorHandler", "code": "  public void setErrorHandler(ErrorListener handler)\n  {\n    m_errorListener = handler;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorListener", "code": "  public ErrorListener getErrorListener()\n  {\n    return m_errorListener;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "tokenIs", "code": "  final boolean tokenIs(String s)\n  {\n    return (m_token != null) ? (m_token.equals(s)) : (s == null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [4, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 4], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "tokenIs", "code": "  final boolean tokenIs(char c)\n  {\n    return (m_token != null) ? (m_tokenChar == c) : false;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "lookahead", "code": "  final boolean lookahead(char c, int n)\n  {\n\n    int pos = (m_queueMark + n);\n    boolean b;\n\n    if ((pos <= m_ops.getTokenQueueSize()) && (pos > 0)\n            && (m_ops.getTokenQueueSize() != 0))\n    {\n      String tok = ((String) m_ops.m_tokenQueue.elementAt(pos - 1));\n\n      b = (tok.length() == 1) ? (tok.charAt(0) == c) : false;\n    }\n    else\n    {\n      b = false;\n    }\n\n    return b;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [7, 10], [4, 11], [2, 12], [2, 13], [9, 14], [9, 15], [10, 16], [10, 17], [12, 18], [13, 19], [16, 20], [17, 21], [19, 22], [19, 23], [19, 24], [8, 25], [23, 26], [24, 27], [24, 28], [25, 29], [26, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 7], [11, 4], [12, 2], [13, 2], [14, 9], [15, 9], [16, 10], [17, 10], [18, 12], [19, 13], [20, 16], [21, 17], [22, 19], [23, 19], [24, 19], [25, 8], [26, 23], [27, 24], [28, 24], [29, 25], [30, 26], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "lookbehind", "code": "  private final boolean lookbehind(char c, int n)\n  {\n\n    boolean isToken;\n    int lookBehindPos = m_queueMark - (n + 1);\n\n    if (lookBehindPos >= 0)\n    {\n      String lookbehind = (String) m_ops.m_tokenQueue.elementAt(lookBehindPos);\n\n      if (lookbehind.length() == 1)\n      {\n        char c0 = (lookbehind == null) ? '|' : lookbehind.charAt(0);\n\n        isToken = (c0 == '|') ? false : (c0 == c);\n      }\n      else\n      {\n        isToken = false;\n      }\n    }\n    else\n    {\n      isToken = false;\n    }\n\n    return isToken;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [3, 11], [2, 12], [8, 13], [11, 14], [12, 15], [8, 16], [13, 17], [13, 18], [14, 19], [8, 20], [8, 21], [9, 22], [20, 23], [21, 24], [16, 25], [24, 26], [24, 27], [24, 28], [25, 29], [25, 30], [25, 31], [28, 32], [29, 33], [31, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 3], [12, 2], [13, 8], [14, 11], [15, 12], [16, 8], [17, 13], [18, 13], [19, 14], [20, 8], [21, 8], [22, 9], [23, 20], [24, 21], [25, 16], [26, 24], [27, 24], [28, 24], [29, 25], [30, 25], [31, 25], [32, 28], [33, 29], [34, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "lookbehindHasToken", "code": "  private final boolean lookbehindHasToken(int n)\n  {\n\n    boolean hasToken;\n\n    if ((m_queueMark - n) > 0)\n    {\n      String lookbehind = (String) m_ops.m_tokenQueue.elementAt(m_queueMark - (n - 1));\n      char c0 = (lookbehind == null) ? '|' : lookbehind.charAt(0);\n\n      hasToken = (c0 == '|') ? false : true;\n    }\n    else\n    {\n      hasToken = false;\n    }\n\n    return hasToken;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [2, 10], [2, 11], [10, 12], [11, 13], [6, 14], [13, 15], [13, 16], [13, 17], [14, 18], [14, 19], [14, 20], [7, 21], [17, 22], [18, 23], [20, 24], [21, 25], [25, 26], [26, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 2], [11, 2], [12, 10], [13, 11], [14, 6], [15, 13], [16, 13], [17, 13], [18, 14], [19, 14], [20, 14], [21, 7], [22, 17], [23, 18], [24, 20], [25, 21], [26, 25], [27, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "lookahead", "code": "  private final boolean lookahead(String s, int n)\n  {\n\n    boolean isToken;\n\n    if ((m_queueMark + n) <= m_ops.getTokenQueueSize())\n    {\n      String lookahead = (String) m_ops.m_tokenQueue.elementAt(m_queueMark + (n - 1));\n\n      isToken = (lookahead != null) ? lookahead.equals(s) : (s == null);\n    }\n    else\n    {\n      isToken = (null == s);\n    }\n\n    return isToken;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [6, 9], [2, 10], [2, 11], [10, 12], [11, 13], [12, 14], [13, 15], [13, 16], [13, 17], [7, 18], [15, 19], [17, 20], [18, 21], [21, 22], [22, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 6], [10, 2], [11, 2], [12, 10], [13, 11], [14, 12], [15, 13], [16, 13], [17, 13], [18, 7], [19, 15], [20, 17], [21, 18], [22, 21], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "nextToken", "code": "  private final void nextToken()\n  {\n\n    if (m_queueMark < m_ops.getTokenQueueSize())\n    {\n      m_token = (String) m_ops.m_tokenQueue.elementAt(m_queueMark++);\n      m_tokenChar = m_token.charAt(0);\n    }\n    else\n    {\n      m_token = null;\n      m_tokenChar = 0;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [10, 11], [7, 12], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getTokenRelative", "code": "  private final String getTokenRelative(int i)\n  {\n\n    String tok;\n    int relative = m_queueMark + i;\n\n    if ((relative > 0) && (relative < m_ops.getTokenQueueSize()))\n    {\n      tok = (String) m_ops.m_tokenQueue.elementAt(relative);\n    }\n    else\n    {\n      tok = null;\n    }\n\n    return tok;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [6, 8], [3, 9], [2, 10], [2, 11], [7, 12], [8, 13], [10, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 6], [9, 3], [10, 2], [11, 2], [12, 7], [13, 8], [14, 10], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "prevToken", "code": "  private final void prevToken()\n  {\n\n    if (m_queueMark > 0)\n    {\n      m_queueMark--;\n\n      m_token = (String) m_ops.m_tokenQueue.elementAt(m_queueMark);\n      m_tokenChar = m_token.charAt(0);\n    }\n    else\n    {\n      m_token = null;\n      m_tokenChar = 0;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [6, 10], [10, 11], [7, 12], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 6], [11, 10], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "consumeExpected", "code": "  private final void consumeExpected(String expected)\n          throws javax.xml.transform.TransformerException\n  {\n\n    if (tokenIs(expected))\n    {\n      nextToken();\n    }\n    else\n    {\n      error(XPATHErrorResources.ER_EXPECTED_BUT_FOUND, new Object[]{ expected});\n\n\t\tthrow new XPathProcessorException(CONTINUE_AFTER_FATAL_ERROR);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 6], [1, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 1], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "consumeExpected", "code": "  private final void consumeExpected(char expected)\n          throws javax.xml.transform.TransformerException\n  {\n\n    if (tokenIs(expected))\n    {\n      nextToken();\n    }\n    else\n    {\n      error(XPATHErrorResources.ER_EXPECTED_BUT_FOUND,\n            new Object[]{ String.valueOf(expected)});\n\n\t\tthrow new XPathProcessorException(CONTINUE_AFTER_FATAL_ERROR);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 1], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "warn", "code": "  void warn(String msg, Object[] args) throws TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHWarning(msg, args);\n    ErrorListener ehandler = this.getErrorListener();\n\n    if (null != ehandler)\n    {\n      ehandler.warning(new TransformerException(fmsg, m_sourceLocator));\n    }\n    else\n    {\n      System.err.println(fmsg);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [3, 8], [1, 9], [1, 10], [2, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 3], [9, 1], [10, 1], [11, 2], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "assertion", "code": "  private void assertion(boolean b, String msg)\n  {\n\n    if (!b)\n    {\n      String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ msg });\n\n      throw new RuntimeException(fMsg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "THROW_RAISE", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "error", "code": "  void error(String msg, Object[] args) throws TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHMessage(msg, args);\n    ErrorListener ehandler = this.getErrorListener();\n\n    TransformerException te = new TransformerException(fmsg, m_sourceLocator);\n    if (null != ehandler)\n    {\n      ehandler.fatalError(te);\n    }\n    else\n    {\n      throw te;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [2, 10], [4, 11], [1, 12], [3, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 2], [11, 4], [12, 1], [13, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "errorForDOM3", "code": "  void errorForDOM3(String msg, Object[] args) throws TransformerException\n  {\n\n\tString fmsg = XSLMessages.createXPATHMessage(msg, args);\n\tErrorListener ehandler = this.getErrorListener();\n\n\tTransformerException te = new XPathStylesheetDOM3Exception(fmsg, m_sourceLocator);\n\tif (null != ehandler)\n\t{\n\t  ehandler.fatalError(te);\n\t}\n\telse\n\t{\n\t  throw te;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [2, 10], [4, 11], [1, 12], [3, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 2], [11, 4], [12, 1], [13, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "dumpRemainingTokenQueue", "code": "  protected String dumpRemainingTokenQueue()\n  {\n\n    int q = m_queueMark;\n    String returnMsg;\n\n    if (q < m_ops.getTokenQueueSize())\n    {\n      String msg = \"\\n Remaining tokens: (\";\n\n      while (q < m_ops.getTokenQueueSize())\n      {\n        String t = (String) m_ops.m_tokenQueue.elementAt(q++);\n\n        msg += (\" '\" + t + \"'\");\n      }\n\n      returnMsg = msg + \")\";\n    }\n    else\n    {\n      returnMsg = \"\";\n    }\n\n    return returnMsg;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [5, 8], [2, 9], [2, 10], [6, 11], [9, 12], [10, 13], [6, 14], [11, 15], [7, 16], [13, 17], [6, 18], [18, 19], [19, 20], [19, 21], [14, 22], [21, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 5], [9, 2], [10, 2], [11, 6], [12, 9], [13, 10], [14, 6], [15, 11], [16, 7], [17, 13], [18, 6], [19, 18], [20, 19], [21, 19], [22, 14], [23, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "getFunctionToken", "code": "  final int getFunctionToken(String key)\n  {\n\n    int tok;\n    \n    Object id;\n\n    try\n    {\n      id = Keywords.lookupNodeTest(key);\n      if (null == id) id = m_functionTable.getFunctionID(key);\n      tok = ((Integer) id).intValue();\n    }\n    catch (NullPointerException npe)\n    {\n      tok = -1;\n    }\n    catch (ClassCastException cce)\n    {\n      tok = -1;\n    }\n\n    return tok;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "CATCH", "IF", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [8, 10], [2, 11], [6, 12], [7, 13], [8, 14], [10, 15], [11, 16], [12, 17], [13, 18], [14, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 8], [11, 2], [12, 6], [13, 7], [14, 8], [15, 10], [16, 11], [17, 12], [18, 13], [19, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "insertOp", "code": "  void insertOp(int pos, int length, int op)\n  {\n\n    int totalLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    for (int i = totalLen - 1; i >= pos; i--)\n    {\n      m_ops.setOp(i + length, m_ops.getOp(i));\n    }\n\n    m_ops.setOp(pos,op);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH,totalLen + length);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [6, 9], [2, 10], [1, 11], [1, 12], [11, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 6], [10, 2], [11, 1], [12, 1], [13, 11], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "appendOp", "code": "  void appendOp(int length, int op)\n  {\n\n    int totalLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    m_ops.setOp(totalLen, op);\n    m_ops.setOp(totalLen + OpMap.MAPINDEX_LENGTH, length);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, totalLen + length);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [4, 7], [5, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 4], [8, 5], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "Expr", "code": "  protected void Expr() throws javax.xml.transform.TransformerException\n  {\n    OrExpr();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "OrExpr", "code": "  protected void OrExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    AndExpr();\n\n    if ((null != m_token) && tokenIs(\"or\"))\n    {\n      nextToken();\n      insertOp(opPos, 2, OpCodes.OP_OR);\n      OrExpr();\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [3, 6], [2, 7], [1, 8], [1, 9], [1, 10], [1, 11], [5, 12], [6, 13], [8, 14], [8, 15], [10, 16], [14, 17], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 3], [7, 2], [8, 1], [9, 1], [10, 1], [11, 1], [12, 5], [13, 6], [14, 8], [15, 8], [16, 10], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "AndExpr", "code": "  protected void AndExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    EqualityExpr(-1);\n\n    if ((null != m_token) && tokenIs(\"and\"))\n    {\n      nextToken();\n      insertOp(opPos, 2, OpCodes.OP_AND);\n      AndExpr();\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [3, 6], [4, 7], [2, 8], [1, 9], [1, 10], [1, 11], [1, 12], [5, 13], [6, 14], [9, 15], [9, 16], [11, 17], [15, 18], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 3], [7, 4], [8, 2], [9, 1], [10, 1], [11, 1], [12, 1], [13, 5], [14, 6], [15, 9], [16, 9], [17, 11], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "EqualityExpr", "code": "  protected int EqualityExpr(int addPos) throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if (-1 == addPos)\n      addPos = opPos;\n\n    RelationalExpr(-1);\n\n    if (null != m_token)\n    {\n      if (tokenIs('!') && lookahead('=', 1))\n      {\n        nextToken();\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_NOTEQUALS);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = EqualityExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs('='))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_EQUALS);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = EqualityExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n    }\n\n    return addPos;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [3, 8], [2, 9], [6, 10], [7, 11], [3, 12], [8, 13], [4, 14], [9, 15], [9, 16], [15, 17], [9, 18], [16, 19], [16, 20], [15, 21], [17, 22], [9, 23], [9, 24], [9, 25], [9, 26], [9, 27], [9, 28], [19, 29], [19, 30], [20, 31], [15, 32], [15, 33], [15, 34], [15, 35], [15, 36], [23, 37], [24, 38], [24, 39], [25, 40], [18, 41], [26, 42], [32, 43], [33, 44], [33, 45], [34, 46], [21, 47], [35, 48], [38, 49], [41, 50], [44, 51], [47, 52], [49, 53], [51, 54], [53, 55], [53, 56], [54, 57], [54, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 3], [9, 2], [10, 6], [11, 7], [12, 3], [13, 8], [14, 4], [15, 9], [16, 9], [17, 15], [18, 9], [19, 16], [20, 16], [21, 15], [22, 17], [23, 9], [24, 9], [25, 9], [26, 9], [27, 9], [28, 9], [29, 19], [30, 19], [31, 20], [32, 15], [33, 15], [34, 15], [35, 15], [36, 15], [37, 23], [38, 24], [39, 24], [40, 25], [41, 18], [42, 26], [43, 32], [44, 33], [45, 33], [46, 34], [47, 21], [48, 35], [49, 38], [50, 41], [51, 44], [52, 47], [53, 49], [54, 51], [55, 53], [56, 53], [57, 54], [58, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "RelationalExpr", "code": "  protected int RelationalExpr(int addPos) throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if (-1 == addPos)\n      addPos = opPos;\n\n    AdditiveExpr(-1);\n\n    if (null != m_token)\n    {\n      if (tokenIs('<'))\n      {\n        nextToken();\n\n        if (tokenIs('='))\n        {\n          nextToken();\n          insertOp(addPos, 2, OpCodes.OP_LTE);\n        }\n        else\n        {\n          insertOp(addPos, 2, OpCodes.OP_LT);\n        }\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = RelationalExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH, \n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs('>'))\n      {\n        nextToken();\n\n        if (tokenIs('='))\n        {\n          nextToken();\n          insertOp(addPos, 2, OpCodes.OP_GTE);\n        }\n        else\n        {\n          insertOp(addPos, 2, OpCodes.OP_GT);\n        }\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = RelationalExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n    }\n\n    return addPos;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "VAR_DECL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [3, 8], [2, 9], [6, 10], [7, 11], [3, 12], [8, 13], [4, 14], [9, 15], [9, 16], [15, 17], [9, 18], [9, 19], [16, 20], [15, 21], [15, 22], [17, 23], [9, 24], [9, 25], [9, 26], [19, 27], [9, 28], [15, 29], [15, 30], [15, 31], [22, 32], [15, 33], [24, 34], [25, 35], [25, 36], [26, 37], [18, 38], [27, 39], [29, 40], [30, 41], [30, 42], [31, 43], [21, 44], [32, 45], [35, 46], [38, 47], [19, 48], [19, 49], [19, 50], [41, 51], [44, 52], [22, 53], [22, 54], [22, 55], [46, 56], [48, 57], [49, 58], [51, 59], [53, 60], [54, 61], [56, 62], [56, 63], [59, 64], [59, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 3], [9, 2], [10, 6], [11, 7], [12, 3], [13, 8], [14, 4], [15, 9], [16, 9], [17, 15], [18, 9], [19, 9], [20, 16], [21, 15], [22, 15], [23, 17], [24, 9], [25, 9], [26, 9], [27, 19], [28, 9], [29, 15], [30, 15], [31, 15], [32, 22], [33, 15], [34, 24], [35, 25], [36, 25], [37, 26], [38, 18], [39, 27], [40, 29], [41, 30], [42, 30], [43, 31], [44, 21], [45, 32], [46, 35], [47, 38], [48, 19], [49, 19], [50, 19], [51, 41], [52, 44], [53, 22], [54, 22], [55, 22], [56, 46], [57, 48], [58, 49], [59, 51], [60, 53], [61, 54], [62, 56], [63, 56], [64, 59], [65, 59], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "AdditiveExpr", "code": "  protected int AdditiveExpr(int addPos) throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if (-1 == addPos)\n      addPos = opPos;\n\n    MultiplicativeExpr(-1);\n\n    if (null != m_token)\n    {\n      if (tokenIs('+'))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_PLUS);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = AdditiveExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs('-'))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_MINUS);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = AdditiveExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH, \n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n    }\n\n    return addPos;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [3, 8], [2, 9], [6, 10], [7, 11], [3, 12], [8, 13], [4, 14], [9, 15], [9, 16], [15, 17], [9, 18], [16, 19], [15, 20], [17, 21], [9, 22], [9, 23], [9, 24], [9, 25], [9, 26], [15, 27], [15, 28], [15, 29], [15, 30], [15, 31], [22, 32], [23, 33], [23, 34], [24, 35], [18, 36], [25, 37], [27, 38], [28, 39], [28, 40], [29, 41], [20, 42], [30, 43], [33, 44], [36, 45], [39, 46], [42, 47], [44, 48], [46, 49], [48, 50], [48, 51], [49, 52], [49, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 3], [9, 2], [10, 6], [11, 7], [12, 3], [13, 8], [14, 4], [15, 9], [16, 9], [17, 15], [18, 9], [19, 16], [20, 15], [21, 17], [22, 9], [23, 9], [24, 9], [25, 9], [26, 9], [27, 15], [28, 15], [29, 15], [30, 15], [31, 15], [32, 22], [33, 23], [34, 23], [35, 24], [36, 18], [37, 25], [38, 27], [39, 28], [40, 28], [41, 29], [42, 20], [43, 30], [44, 33], [45, 36], [46, 39], [47, 42], [48, 44], [49, 46], [50, 48], [51, 48], [52, 49], [53, 49], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "MultiplicativeExpr", "code": "  protected int MultiplicativeExpr(int addPos) throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if (-1 == addPos)\n      addPos = opPos;\n\n    UnaryExpr();\n\n    if (null != m_token)\n    {\n      if (tokenIs('*'))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_MULT);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = MultiplicativeExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs(\"div\"))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_DIV);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = MultiplicativeExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs(\"mod\"))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_MOD);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = MultiplicativeExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n      else if (tokenIs(\"quo\"))\n      {\n        nextToken();\n        insertOp(addPos, 2, OpCodes.OP_QUO);\n\n        int opPlusLeftHandLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - addPos;\n\n        addPos = MultiplicativeExpr(addPos);\n        m_ops.setOp(addPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(addPos + opPlusLeftHandLen + 1) + opPlusLeftHandLen);\n        addPos += 2;\n      }\n    }\n\n    return addPos;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "IF", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [3, 8], [2, 9], [6, 10], [3, 11], [8, 12], [4, 13], [9, 14], [9, 15], [14, 16], [14, 17], [9, 18], [15, 19], [16, 20], [16, 21], [14, 22], [17, 23], [9, 24], [9, 25], [9, 26], [9, 27], [9, 28], [20, 29], [16, 30], [21, 31], [14, 32], [14, 33], [14, 34], [14, 35], [14, 36], [24, 37], [25, 38], [25, 39], [26, 40], [18, 41], [27, 42], [20, 43], [29, 44], [16, 45], [16, 46], [16, 47], [16, 48], [16, 49], [32, 50], [33, 51], [33, 52], [34, 53], [22, 54], [35, 55], [38, 56], [41, 57], [20, 58], [20, 59], [20, 60], [20, 61], [20, 62], [45, 63], [46, 64], [46, 65], [47, 66], [30, 67], [48, 68], [51, 69], [54, 70], [56, 71], [58, 72], [59, 73], [59, 74], [60, 75], [43, 76], [61, 77], [64, 78], [67, 79], [69, 80], [71, 81], [71, 82], [73, 83], [76, 84], [78, 85], [80, 86], [80, 87], [83, 88], [85, 89], [85, 90], [88, 91], [88, 92], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 3], [9, 2], [10, 6], [11, 3], [12, 8], [13, 4], [14, 9], [15, 9], [16, 14], [17, 14], [18, 9], [19, 15], [20, 16], [21, 16], [22, 14], [23, 17], [24, 9], [25, 9], [26, 9], [27, 9], [28, 9], [29, 20], [30, 16], [31, 21], [32, 14], [33, 14], [34, 14], [35, 14], [36, 14], [37, 24], [38, 25], [39, 25], [40, 26], [41, 18], [42, 27], [43, 20], [44, 29], [45, 16], [46, 16], [47, 16], [48, 16], [49, 16], [50, 32], [51, 33], [52, 33], [53, 34], [54, 22], [55, 35], [56, 38], [57, 41], [58, 20], [59, 20], [60, 20], [61, 20], [62, 20], [63, 45], [64, 46], [65, 46], [66, 47], [67, 30], [68, 48], [69, 51], [70, 54], [71, 56], [72, 58], [73, 59], [74, 59], [75, 60], [76, 43], [77, 61], [78, 64], [79, 67], [80, 69], [81, 71], [82, 71], [83, 73], [84, 76], [85, 78], [86, 80], [87, 80], [88, 83], [89, 85], [90, 85], [91, 88], [92, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92]]}, {"function_name": "UnaryExpr", "code": "  protected void UnaryExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n    boolean isNeg = false;\n\n    if (m_tokenChar == '-')\n    {\n      nextToken();\n      appendOp(2, OpCodes.OP_NEG);\n\n      isNeg = true;\n    }\n\n    UnionExpr();\n\n    if (isNeg)\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 7], [6, 8], [3, 9], [4, 10], [7, 11], [7, 12], [2, 13], [2, 14], [2, 15], [11, 16], [13, 17], [14, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 1], [8, 6], [9, 3], [10, 4], [11, 7], [12, 7], [13, 2], [14, 2], [15, 2], [16, 11], [17, 13], [18, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "StringExpr", "code": "  protected void StringExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_STRING);\n    Expr();\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [4, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 4], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "BooleanExpr", "code": "  protected void BooleanExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_BOOL);\n    Expr();\n\n    int opLen = m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos;\n\n    if (opLen == 2)\n    {\n    }\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH, opLen);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [4, 8], [5, 9], [2, 10], [7, 11], [3, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 4], [9, 5], [10, 2], [11, 7], [12, 3], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "NumberExpr", "code": "  protected void NumberExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_NUMBER);\n    Expr();\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [4, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 4], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "UnionExpr", "code": "  protected void UnionExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n    boolean continueOrLoop = true;\n    boolean foundUnion = false;\n\n    do\n    {\n      PathExpr();\n\n      if (tokenIs('|'))\n      {\n        if (false == foundUnion)\n        {\n          foundUnion = true;\n\n          insertOp(opPos, 2, OpCodes.OP_UNION);\n        }\n\n        nextToken();\n      }\n      else\n      {\n        break;\n      }\n\n    }\n    while (continueOrLoop);\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BREAK_CONTINUE", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [5, 7], [1, 8], [2, 9], [3, 10], [4, 11], [6, 12], [8, 13], [1, 14], [8, 15], [8, 16], [13, 17], [8, 18], [16, 19], [19, 20], [16, 21], [16, 22], [21, 23], [22, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 5], [8, 1], [9, 2], [10, 3], [11, 4], [12, 6], [13, 8], [14, 1], [15, 8], [16, 8], [17, 13], [18, 8], [19, 16], [20, 19], [21, 16], [22, 16], [23, 21], [24, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "PathExpr", "code": "  protected void PathExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    int filterExprMatch = FilterExpr();\n\n    if (filterExprMatch != FILTER_MATCH_FAILED)\n    {\n      boolean locationPathStarted = (filterExprMatch==FILTER_MATCH_PREDICATES);\n\n      if (tokenIs('/'))\n      {\n        nextToken();\n\n        if (!locationPathStarted)\n        {\n          insertOp(opPos, 2, OpCodes.OP_LOCATIONPATH);\n\n          locationPathStarted = true;\n        }\n\n        if (!RelativeLocationPath())\n        {\n          error(XPATHErrorResources.ER_EXPECTED_REL_LOC_PATH, null);\n        }\n\n      }\n\n      if (locationPathStarted)\n      {\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n        m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n        m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n      }\n    }\n    else\n    {\n      LocationPath();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [1, 10], [6, 11], [6, 12], [6, 13], [11, 14], [7, 15], [5, 16], [5, 17], [5, 18], [12, 19], [6, 20], [16, 21], [16, 22], [17, 23], [18, 24], [21, 25], [23, 26], [23, 27], [12, 28], [13, 29], [13, 30], [28, 31], [29, 32], [30, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 1], [11, 6], [12, 6], [13, 6], [14, 11], [15, 7], [16, 5], [17, 5], [18, 5], [19, 12], [20, 6], [21, 16], [22, 16], [23, 17], [24, 18], [25, 21], [26, 23], [27, 23], [28, 12], [29, 13], [30, 13], [31, 28], [32, 29], [33, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "FilterExpr", "code": "  protected int FilterExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    int filterMatch;\n\n    if (PrimaryExpr())\n    {\n      if (tokenIs('['))\n      {\n\n        insertOp(opPos, 2, OpCodes.OP_LOCATIONPATH);\n\n        while (tokenIs('['))\n        {\n          Predicate();\n        }\n\n        filterMatch = FILTER_MATCH_PREDICATES;\n      }\n      else\n      {\n        filterMatch = FILTER_MATCH_PRIMARY;\n      }\n    }\n    else\n    {\n      filterMatch = FILTER_MATCH_FAILED;\n    }\n\n    return filterMatch;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "CALL", "ASSIGN", "CALL", "LOOP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [4, 7], [2, 8], [6, 9], [6, 10], [9, 11], [6, 12], [6, 13], [10, 14], [6, 15], [14, 16], [15, 17], [10, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 4], [8, 2], [9, 6], [10, 6], [11, 9], [12, 6], [13, 6], [14, 10], [15, 6], [16, 14], [17, 15], [18, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "PrimaryExpr", "code": "  protected boolean PrimaryExpr() throws javax.xml.transform.TransformerException\n  {\n\n    boolean matchFound;\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if ((m_tokenChar == '\\'') || (m_tokenChar == '\"'))\n    {\n      appendOp(2, OpCodes.OP_LITERAL);\n      Literal();\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH, \n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      matchFound = true;\n    }\n    else if (m_tokenChar == '$')\n    {\n      appendOp(2, OpCodes.OP_VARIABLE);\n      QName();\n      \n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      matchFound = true;\n    }\n    else if (m_tokenChar == '(')\n    {\n      nextToken();\n      appendOp(2, OpCodes.OP_GROUP);\n      Expr();\n      consumeExpected(')');\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      matchFound = true;\n    }\n    else if ((null != m_token) && ((('.' == m_tokenChar) && (m_token.length() > 1) && Character.isDigit(\n            m_token.charAt(1))) || Character.isDigit(m_tokenChar)))\n    {\n      appendOp(2, OpCodes.OP_NUMBERLIT);\n      Number();\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      matchFound = true;\n    }\n    else if (lookahead('(', 1) || (lookahead(':', 1) && lookahead('(', 3)))\n    {\n      matchFound = FunctionCall();\n    }\n    else\n    {\n      matchFound = false;\n    }\n\n    return matchFound;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [5, 8], [6, 9], [6, 10], [3, 11], [7, 12], [7, 13], [8, 14], [2, 15], [2, 16], [2, 17], [2, 18], [9, 19], [10, 20], [12, 21], [12, 22], [13, 23], [5, 24], [5, 25], [5, 26], [5, 27], [15, 28], [16, 29], [16, 30], [18, 31], [21, 32], [22, 33], [22, 34], [7, 35], [7, 36], [7, 37], [7, 38], [7, 39], [7, 40], [24, 41], [25, 42], [25, 43], [27, 44], [29, 45], [32, 46], [32, 47], [12, 48], [12, 49], [12, 50], [12, 51], [33, 52], [33, 53], [34, 54], [35, 55], [36, 56], [36, 57], [37, 58], [39, 59], [42, 60], [21, 61], [21, 62], [46, 63], [46, 64], [47, 65], [47, 66], [48, 67], [49, 68], [49, 69], [51, 70], [53, 71], [53, 72], [56, 73], [61, 74], [62, 75], [63, 76], [63, 77], [64, 78], [64, 79], [68, 80], [71, 81], [72, 82], [72, 83], [81, 84], [82, 85], [82, 86], [83, 87], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 5], [9, 6], [10, 6], [11, 3], [12, 7], [13, 7], [14, 8], [15, 2], [16, 2], [17, 2], [18, 2], [19, 9], [20, 10], [21, 12], [22, 12], [23, 13], [24, 5], [25, 5], [26, 5], [27, 5], [28, 15], [29, 16], [30, 16], [31, 18], [32, 21], [33, 22], [34, 22], [35, 7], [36, 7], [37, 7], [38, 7], [39, 7], [40, 7], [41, 24], [42, 25], [43, 25], [44, 27], [45, 29], [46, 32], [47, 32], [48, 12], [49, 12], [50, 12], [51, 12], [52, 33], [53, 33], [54, 34], [55, 35], [56, 36], [57, 36], [58, 37], [59, 39], [60, 42], [61, 21], [62, 21], [63, 46], [64, 46], [65, 47], [66, 47], [67, 48], [68, 49], [69, 49], [70, 51], [71, 53], [72, 53], [73, 56], [74, 61], [75, 62], [76, 63], [77, 63], [78, 64], [79, 64], [80, 68], [81, 71], [82, 72], [83, 72], [84, 81], [85, 82], [86, 82], [87, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87]]}, {"function_name": "Argument", "code": "  protected void Argument() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_ARGUMENT);\n    Expr();\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [4, 7], [1, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 4], [8, 1], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "FunctionCall", "code": "  protected boolean FunctionCall() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    if (lookahead(':', 1))\n    {\n      appendOp(4, OpCodes.OP_EXTFUNCTION);\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 1, m_queueMark - 1);\n\n      nextToken();\n      consumeExpected(':');\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 2, m_queueMark - 1);\n\n      nextToken();\n    }\n    else\n    {\n      int funcTok = getFunctionToken(m_token);\n\n      if (-1 == funcTok)\n      {\n        error(XPATHErrorResources.ER_COULDNOT_FIND_FUNCTION);\n      }\n\n      switch (funcTok)\n      {\n      case OpCodes.NODETYPE_PI :\n      case OpCodes.NODETYPE_COMMENT :\n      case OpCodes.NODETYPE_TEXT :\n      case OpCodes.NODETYPE_NODE :\n        return false;\n      default :\n        appendOp(3, OpCodes.OP_FUNCTION);\n\n        m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 1, funcTok);\n      }\n\n      nextToken();\n    }\n\n    consumeExpected('(');\n\n    while (!tokenIs(')') && m_token != null)\n    {\n      if (tokenIs(','))\n      {\n      }\n\n      Argument();\n\n      if (!tokenIs(')'))\n      {\n        consumeExpected(',');\n\n        if (tokenIs(')'))\n        {\n          error(XPATHErrorResources.ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG);\n        }\n      }\n    }\n\n    consumeExpected(')');\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH,m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH, \n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "SWITCH", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [0, 11], [3, 12], [6, 13], [6, 14], [7, 15], [8, 16], [9, 17], [2, 18], [2, 19], [10, 20], [10, 21], [11, 22], [3, 23], [3, 24], [3, 25], [12, 26], [12, 27], [4, 28], [13, 29], [15, 30], [15, 31], [18, 32], [2, 33], [19, 34], [20, 35], [21, 36], [3, 37], [24, 38], [3, 39], [3, 40], [3, 41], [3, 42], [3, 43], [3, 44], [18, 45], [32, 46], [34, 47], [23, 48], [38, 49], [25, 50], [40, 51], [40, 52], [41, 53], [43, 54], [43, 55], [44, 56], [45, 57], [18, 58], [23, 59], [23, 60], [48, 61], [24, 62], [51, 63], [52, 64], [52, 65], [54, 66], [55, 67], [55, 68], [57, 69], [58, 70], [59, 71], [60, 72], [45, 73], [71, 74], [71, 75], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [11, 0], [12, 3], [13, 6], [14, 6], [15, 7], [16, 8], [17, 9], [18, 2], [19, 2], [20, 10], [21, 10], [22, 11], [23, 3], [24, 3], [25, 3], [26, 12], [27, 12], [28, 4], [29, 13], [30, 15], [31, 15], [32, 18], [33, 2], [34, 19], [35, 20], [36, 21], [37, 3], [38, 24], [39, 3], [40, 3], [41, 3], [42, 3], [43, 3], [44, 3], [45, 18], [46, 32], [47, 34], [48, 23], [49, 38], [50, 25], [51, 40], [52, 40], [53, 41], [54, 43], [55, 43], [56, 44], [57, 45], [58, 18], [59, 23], [60, 23], [61, 48], [62, 24], [63, 51], [64, 52], [65, 52], [66, 54], [67, 55], [68, 55], [69, 57], [70, 58], [71, 59], [72, 60], [73, 45], [74, 71], [75, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75]]}, {"function_name": "LocationPath", "code": "  protected void LocationPath() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_LOCATIONPATH);\n\n    boolean seenSlash = tokenIs('/');\n\n    if (seenSlash)\n    {\n      appendOp(4, OpCodes.FROM_ROOT);\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2, 4);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_ROOT);\n\n      nextToken();\n    } else if (m_token == null) {\n      error(XPATHErrorResources.ER_EXPECTED_LOC_PATH_AT_END_EXPR, null);\n    }\n\n    if (m_token != null)\n    {\n      if (!RelativeLocationPath() && !seenSlash)\n      {\n        error(XPATHErrorResources.ER_EXPECTED_LOC_PATH, \n              new Object [] {m_token});\n      }\n    }\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH,m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [0, 10], [5, 11], [5, 12], [6, 13], [7, 14], [1, 15], [8, 16], [9, 17], [3, 18], [10, 19], [4, 20], [11, 21], [13, 22], [13, 23], [15, 24], [17, 25], [2, 26], [2, 27], [2, 28], [2, 29], [18, 30], [24, 31], [9, 32], [27, 33], [28, 34], [28, 35], [29, 36], [15, 37], [32, 38], [33, 39], [33, 40], [35, 41], [35, 42], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 0], [11, 5], [12, 5], [13, 6], [14, 7], [15, 1], [16, 8], [17, 9], [18, 3], [19, 10], [20, 4], [21, 11], [22, 13], [23, 13], [24, 15], [25, 17], [26, 2], [27, 2], [28, 2], [29, 2], [30, 18], [31, 24], [32, 9], [33, 27], [34, 28], [35, 28], [36, 29], [37, 15], [38, 32], [39, 33], [40, 33], [41, 35], [42, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "RelativeLocationPath", "code": "  protected boolean RelativeLocationPath()\n               throws javax.xml.transform.TransformerException\n  {\n    if (!Step())\n    {\n      return false;\n    }\n\n    while (tokenIs('/'))\n    {\n      nextToken();\n\n      if (!Step())\n      {\n        error(XPATHErrorResources.ER_EXPECTED_LOC_STEP, null);\n      }\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [2, 7], [5, 8], [3, 9], [7, 10], [2, 11], [9, 12], [7, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 2], [8, 5], [9, 3], [10, 7], [11, 2], [12, 9], [13, 7], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "Step", "code": "  protected boolean Step() throws javax.xml.transform.TransformerException\n  {\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    boolean doubleSlash = tokenIs('/');\n\n    if (doubleSlash)\n    {\n      nextToken();\n\n      appendOp(2, OpCodes.FROM_DESCENDANTS_OR_SELF);\n\n\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH,m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.NODETYPE_NODE);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH,m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 1,\n          m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n          m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n      opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n    }\n\n    if (tokenIs(\".\"))\n    {\n      nextToken();\n\n      if (tokenIs('['))\n      {\n      }\n\n      appendOp(4, OpCodes.FROM_SELF);\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2,4);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_NODE);\n    }\n    else if (tokenIs(\"..\"))\n    {\n      nextToken();\n      appendOp(4, OpCodes.FROM_PARENT);\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2,4);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_NODE);\n    }\n\n    else if (tokenIs('*') || tokenIs('@') || tokenIs('_')\n             || (m_token!= null && Character.isLetter(m_token.charAt(0))))\n    {\n      Basis();\n\n      while (tokenIs('['))\n      {\n        Predicate();\n      }\n\n      m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n        m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos); \n    }\n    else\n    {\n      if (doubleSlash)\n      {\n        error(XPATHErrorResources.ER_EXPECTED_LOC_STEP, null);\n      }\n\n      return false;\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "IF", "CALL", "IF", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "IF", "LOOP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [7, 10], [2, 11], [8, 12], [4, 13], [5, 14], [9, 15], [10, 16], [2, 17], [2, 18], [2, 19], [11, 20], [2, 21], [3, 22], [3, 23], [3, 24], [3, 25], [3, 26], [3, 27], [3, 28], [3, 29], [13, 30], [9, 31], [9, 32], [9, 33], [15, 34], [15, 35], [7, 36], [7, 37], [7, 38], [7, 39], [17, 40], [18, 41], [18, 42], [19, 43], [20, 44], [22, 45], [23, 46], [23, 47], [24, 48], [24, 49], [25, 50], [26, 51], [27, 52], [28, 53], [31, 54], [9, 55], [33, 56], [9, 57], [34, 58], [34, 59], [35, 60], [35, 61], [36, 62], [37, 63], [37, 64], [38, 65], [40, 66], [40, 67], [42, 68], [42, 69], [46, 70], [48, 71], [49, 72], [49, 73], [50, 74], [50, 75], [52, 76], [52, 77], [55, 78], [55, 79], [56, 80], [58, 81], [59, 82], [60, 83], [61, 84], [61, 85], [62, 86], [62, 87], [64, 88], [64, 89], [32, 90], [78, 91], [33, 92], [81, 93], [84, 94], [85, 95], [90, 96], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 7], [11, 2], [12, 8], [13, 4], [14, 5], [15, 9], [16, 10], [17, 2], [18, 2], [19, 2], [20, 11], [21, 2], [22, 3], [23, 3], [24, 3], [25, 3], [26, 3], [27, 3], [28, 3], [29, 3], [30, 13], [31, 9], [32, 9], [33, 9], [34, 15], [35, 15], [36, 7], [37, 7], [38, 7], [39, 7], [40, 17], [41, 18], [42, 18], [43, 19], [44, 20], [45, 22], [46, 23], [47, 23], [48, 24], [49, 24], [50, 25], [51, 26], [52, 27], [53, 28], [54, 31], [55, 9], [56, 33], [57, 9], [58, 34], [59, 34], [60, 35], [61, 35], [62, 36], [63, 37], [64, 37], [65, 38], [66, 40], [67, 40], [68, 42], [69, 42], [70, 46], [71, 48], [72, 49], [73, 49], [74, 50], [75, 50], [76, 52], [77, 52], [78, 55], [79, 55], [80, 56], [81, 58], [82, 59], [83, 60], [84, 61], [85, 61], [86, 62], [87, 62], [88, 64], [89, 64], [90, 32], [91, 78], [92, 33], [93, 81], [94, 84], [95, 85], [96, 90], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96]]}, {"function_name": "Basis", "code": "  protected void Basis() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n    int axesType;\n\n    if (lookahead(\"::\", 1))\n    {\n      axesType = AxisName();\n\n      nextToken();\n      nextToken();\n    }\n    else if (tokenIs('@'))\n    {\n      axesType = OpCodes.FROM_ATTRIBUTES;\n\n      appendOp(2, axesType);\n      nextToken();\n    }\n    else\n    {\n      axesType = OpCodes.FROM_CHILDREN;\n\n      appendOp(2, axesType);\n    }\n\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n    NodeTest(axesType);\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 1,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [4, 9], [4, 10], [6, 11], [7, 12], [8, 13], [8, 14], [3, 15], [9, 16], [10, 17], [10, 18], [11, 19], [11, 20], [12, 21], [1, 22], [1, 23], [1, 24], [7, 25], [7, 26], [7, 27], [7, 28], [7, 29], [24, 30], [25, 31], [28, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 4], [10, 4], [11, 6], [12, 7], [13, 8], [14, 8], [15, 3], [16, 9], [17, 10], [18, 10], [19, 11], [20, 11], [21, 12], [22, 1], [23, 1], [24, 1], [25, 7], [26, 7], [27, 7], [28, 7], [29, 7], [30, 24], [31, 25], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "AxisName", "code": "  protected int AxisName() throws javax.xml.transform.TransformerException\n  {\n\n    Object val = Keywords.getAxisName(m_token);\n\n    if (null == val)\n    {\n      error(XPATHErrorResources.ER_ILLEGAL_AXIS_NAME);\n    }\n\n    int axesType = ((Integer) val).intValue();\n\n    appendOp(2, axesType);\n\n    return axesType;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [5, 7], [6, 8], [4, 9], [3, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 5], [8, 6], [9, 4], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "NodeTest", "code": "  protected void NodeTest(int axesType) throws javax.xml.transform.TransformerException\n  {\n\n    if (lookahead('(', 1))\n    {\n      Object nodeTestOp = Keywords.getNodeType(m_token);\n\n      if (null == nodeTestOp)\n      {\n        error(XPATHErrorResources.ER_UNKNOWN_NODETYPE);\n      }\n      else\n      {\n        nextToken();\n\n        int nt = ((Integer) nodeTestOp).intValue();\n\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), nt);\n        m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n        consumeExpected('(');\n\n        if (OpCodes.NODETYPE_PI == nt)\n        {\n          if (!tokenIs(')'))\n          {\n            Literal();\n          }\n        }\n\n        consumeExpected(')');\n      }\n    }\n    else\n    {\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.NODENAME);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      if (lookahead(':', 1))\n      {\n        if (tokenIs('*'))\n        {\n          m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ELEMWILDCARD);\n        }\n        else\n        {\n          m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n\n          if (!Character.isLetter(m_tokenChar) && !tokenIs('_'))\n          {\n            error(XPATHErrorResources.ER_EXPECTED_NODE_TEST, null);\n          }\n        }\n\n        nextToken();\n        consumeExpected(':');\n      }\n      else\n      {\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.EMPTY);\n      }\n\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      if (tokenIs('*'))\n      {\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ELEMWILDCARD);\n      }\n      else\n      {\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n\n        if (!Character.isLetter(m_tokenChar) && !tokenIs('_'))\n        {\n          error(XPATHErrorResources.ER_EXPECTED_NODE_TEST, null);\n        }\n      }\n\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      nextToken();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "IF", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [3, 9], [1, 10], [1, 11], [4, 12], [1, 13], [5, 14], [1, 15], [1, 16], [6, 17], [11, 18], [4, 19], [12, 20], [13, 21], [5, 22], [14, 23], [14, 24], [15, 25], [16, 26], [6, 27], [6, 28], [17, 29], [7, 30], [18, 31], [18, 32], [19, 33], [4, 34], [4, 35], [21, 36], [21, 37], [5, 38], [5, 39], [5, 40], [22, 41], [25, 42], [25, 43], [6, 44], [27, 45], [6, 46], [6, 47], [6, 48], [6, 49], [6, 50], [33, 51], [33, 52], [34, 53], [34, 54], [35, 55], [38, 56], [39, 57], [22, 58], [41, 59], [44, 60], [27, 61], [46, 62], [47, 63], [48, 64], [19, 65], [51, 66], [53, 67], [58, 68], [22, 69], [22, 70], [61, 71], [63, 72], [63, 73], [65, 74], [68, 75], [68, 76], [69, 77], [69, 78], [70, 79], [71, 80], [58, 81], [75, 82], [77, 83], [61, 84], [81, 85], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 3], [10, 1], [11, 1], [12, 4], [13, 1], [14, 5], [15, 1], [16, 1], [17, 6], [18, 11], [19, 4], [20, 12], [21, 13], [22, 5], [23, 14], [24, 14], [25, 15], [26, 16], [27, 6], [28, 6], [29, 17], [30, 7], [31, 18], [32, 18], [33, 19], [34, 4], [35, 4], [36, 21], [37, 21], [38, 5], [39, 5], [40, 5], [41, 22], [42, 25], [43, 25], [44, 6], [45, 27], [46, 6], [47, 6], [48, 6], [49, 6], [50, 6], [51, 33], [52, 33], [53, 34], [54, 34], [55, 35], [56, 38], [57, 39], [58, 22], [59, 41], [60, 44], [61, 27], [62, 46], [63, 47], [64, 48], [65, 19], [66, 51], [67, 53], [68, 58], [69, 22], [70, 22], [71, 61], [72, 63], [73, 63], [74, 65], [75, 68], [76, 68], [77, 69], [78, 69], [79, 70], [80, 71], [81, 58], [82, 75], [83, 77], [84, 61], [85, 81], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}, {"function_name": "Predicate", "code": "  protected void Predicate() throws javax.xml.transform.TransformerException\n  {\n\n    if (tokenIs('['))\n    {\n      nextToken();\n      PredicateExpr();\n      consumeExpected(']');", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [1, 6], [4, 7], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 1], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "PredicateExpr", "code": "  protected void PredicateExpr() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    appendOp(2, OpCodes.OP_PREDICATE);\n    Expr();\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [4, 10], [6, 11], [1, 12], [7, 13], [9, 14], [9, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 4], [11, 6], [12, 1], [13, 7], [14, 9], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "QName", "code": "  protected void QName() throws javax.xml.transform.TransformerException\n  {\n    if(lookahead(':', 1))\n    {\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      nextToken();\n      consumeExpected(':');\n    }\n    else\n    {\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.EMPTY);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n    }\n    \n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n    nextToken();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [4, 7], [4, 8], [5, 9], [5, 10], [6, 11], [6, 12], [7, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [14, 20], [15, 21], [16, 22], [18, 23], [19, 24], [19, 25], [20, 26], [20, 27], [23, 28], [23, 29], [24, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 4], [8, 4], [9, 5], [10, 5], [11, 6], [12, 6], [13, 7], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 14], [21, 15], [22, 16], [23, 18], [24, 19], [25, 19], [26, 20], [27, 20], [28, 23], [29, 23], [30, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "NCName", "code": "  protected void NCName()\n  {\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n    nextToken();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [3, 6], [4, 7], [4, 8], [5, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 3], [7, 4], [8, 4], [9, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "Literal", "code": "  protected void Literal() throws javax.xml.transform.TransformerException\n  {\n\n    int last = m_token.length() - 1;\n    char c0 = m_tokenChar;\n    char cX = m_token.charAt(last);\n\n    if (((c0 == '\\\"') && (cX == '\\\"')) || ((c0 == '\\'') && (cX == '\\'')))\n    {\n\n      int tokenQueuePos = m_queueMark - 1;\n\n      m_ops.m_tokenQueue.setElementAt(null,tokenQueuePos);\n\n      Object obj = new XString(m_token.substring(1, last));\n\n      m_ops.m_tokenQueue.setElementAt(obj,tokenQueuePos);\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), tokenQueuePos);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      nextToken();\n    }\n    else\n    {\n      error(XPATHErrorResources.ER_PATTERN_LITERAL_NEEDS_BE_QUOTED);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [5, 9], [2, 10], [4, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [8, 18], [8, 19], [9, 20], [9, 21], [11, 22], [11, 23], [14, 24], [15, 25], [6, 26], [17, 27], [7, 28], [18, 29], [19, 30], [20, 31], [21, 32], [24, 33], [24, 34], [26, 35], [28, 36], [35, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 5], [10, 2], [11, 4], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 8], [19, 8], [20, 9], [21, 9], [22, 11], [23, 11], [24, 14], [25, 15], [26, 6], [27, 17], [28, 7], [29, 18], [30, 19], [31, 20], [32, 21], [33, 24], [34, 24], [35, 26], [36, 28], [37, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "Number", "code": "  protected void Number() throws javax.xml.transform.TransformerException\n  {\n\n    if (null != m_token)\n    {\n\n      double num;\n\n      try\n      {\n      \tif ((m_token.indexOf('e') > -1)||(m_token.indexOf('E') > -1))\n      \t\tthrow new NumberFormatException();\n        num = Double.valueOf(m_token).doubleValue();\n      }\n      catch (NumberFormatException nfe)\n      {\n\n        error(XPATHErrorResources.ER_COULDNOT_BE_FORMATTED_TO_NUMBER);\n      }\n\n      m_ops.m_tokenQueue.setElementAt(new XNumber(num),m_queueMark - 1);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), m_queueMark - 1);\n      m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n      nextToken();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CATCH", "IF", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "ASSIGN", "THROW_RAISE", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [1, 6], [1, 7], [1, 8], [1, 9], [3, 10], [3, 11], [7, 12], [8, 13], [8, 14], [9, 15], [9, 16], [3, 17], [11, 18], [11, 19], [12, 20], [12, 21], [13, 22], [15, 23], [10, 24], [17, 25], [18, 26], [19, 27], [19, 28], [25, 29], [27, 30], [27, 31], [28, 32], [28, 33], [31, 34], [33, 35], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 1], [7, 1], [8, 1], [9, 1], [10, 3], [11, 3], [12, 7], [13, 8], [14, 8], [15, 9], [16, 9], [17, 3], [18, 11], [19, 11], [20, 12], [21, 12], [22, 13], [23, 15], [24, 10], [25, 17], [26, 18], [27, 19], [28, 19], [29, 25], [30, 27], [31, 27], [32, 28], [33, 28], [34, 31], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "Pattern", "code": "  protected void Pattern() throws javax.xml.transform.TransformerException\n  {\n\n    while (true)\n    {\n      LocationPathPattern();\n\n      if (tokenIs('|'))\n      {\n        nextToken();\n      }\n      else\n      {\n        break;", "ast_nodes": ["FUNC_DECL", "LOOP", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [1, 5], [3, 6], [4, 7], [3, 8], [1, 0], [2, 1], [3, 1], [4, 3], [5, 1], [6, 3], [7, 4], [8, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "LocationPathPattern", "code": "  protected void LocationPathPattern() throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n\n    final int RELATIVE_PATH_NOT_PERMITTED = 0;\n    final int RELATIVE_PATH_PERMITTED     = 1;\n    final int RELATIVE_PATH_REQUIRED      = 2;\n\n    int relativePathStatus = RELATIVE_PATH_NOT_PERMITTED;\n\n    appendOp(2, OpCodes.OP_LOCATIONPATHPATTERN);\n\n    if (lookahead('(', 1)\n            && (tokenIs(Keywords.FUNC_ID_STRING)\n                || tokenIs(Keywords.FUNC_KEY_STRING)))\n    {\n      IdKeyPattern();\n\n      if (tokenIs('/'))\n      {\n        nextToken();\n\n        if (tokenIs('/'))\n        {\n          appendOp(4, OpCodes.MATCH_ANY_ANCESTOR);\n\n          nextToken();\n        }\n        else\n        {\n          appendOp(4, OpCodes.MATCH_IMMEDIATE_ANCESTOR);\n        }\n\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2, 4);\n        m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_FUNCTEST);\n\n        relativePathStatus = RELATIVE_PATH_REQUIRED;\n      }\n    }\n    else if (tokenIs('/'))\n    {\n      if (lookahead('/', 1))\n      {\n        appendOp(4, OpCodes.MATCH_ANY_ANCESTOR);\n        \n        nextToken();\n\n        relativePathStatus = RELATIVE_PATH_REQUIRED;\n      }\n      else\n      {\n        appendOp(4, OpCodes.FROM_ROOT);\n\n        relativePathStatus = RELATIVE_PATH_PERMITTED;\n      }\n\n\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2, 4);\n      m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_ROOT);\n\n      nextToken();\n    }\n    else\n    {\n      relativePathStatus = RELATIVE_PATH_REQUIRED;\n    }\n\n    if (relativePathStatus != RELATIVE_PATH_NOT_PERMITTED)\n    {\n      if (!tokenIs('|') && (null != m_token))\n      {\n        RelativePathPattern();\n      }\n      else if (relativePathStatus == RELATIVE_PATH_REQUIRED)\n      {\n        error(XPATHErrorResources.ER_EXPECTED_REL_PATH_PATTERN, null);\n      }\n    }\n\n    m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), OpCodes.ENDOP);\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [2, 13], [0, 14], [8, 15], [8, 16], [9, 17], [10, 18], [1, 19], [12, 20], [2, 21], [13, 22], [13, 23], [14, 24], [4, 25], [5, 26], [6, 27], [7, 28], [15, 29], [17, 30], [17, 31], [19, 32], [19, 33], [12, 34], [20, 35], [21, 36], [2, 37], [22, 38], [22, 39], [23, 40], [23, 41], [32, 42], [33, 43], [33, 44], [12, 45], [12, 46], [12, 47], [12, 48], [34, 49], [21, 50], [36, 51], [19, 52], [43, 53], [44, 54], [47, 55], [48, 56], [48, 57], [49, 58], [49, 59], [21, 60], [21, 61], [21, 62], [50, 63], [21, 64], [32, 65], [55, 66], [55, 67], [57, 68], [57, 69], [34, 70], [34, 71], [34, 72], [34, 73], [34, 74], [61, 75], [62, 76], [62, 77], [63, 78], [65, 79], [71, 80], [74, 81], [75, 82], [75, 83], [77, 84], [77, 85], [50, 86], [50, 87], [50, 88], [86, 89], [88, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 2], [14, 0], [15, 8], [16, 8], [17, 9], [18, 10], [19, 1], [20, 12], [21, 2], [22, 13], [23, 13], [24, 14], [25, 4], [26, 5], [27, 6], [28, 7], [29, 15], [30, 17], [31, 17], [32, 19], [33, 19], [34, 12], [35, 20], [36, 21], [37, 2], [38, 22], [39, 22], [40, 23], [41, 23], [42, 32], [43, 33], [44, 33], [45, 12], [46, 12], [47, 12], [48, 12], [49, 34], [50, 21], [51, 36], [52, 19], [53, 43], [54, 44], [55, 47], [56, 48], [57, 48], [58, 49], [59, 49], [60, 21], [61, 21], [62, 21], [63, 50], [64, 21], [65, 32], [66, 55], [67, 55], [68, 57], [69, 57], [70, 34], [71, 34], [72, 34], [73, 34], [74, 34], [75, 61], [76, 62], [77, 62], [78, 63], [79, 65], [80, 71], [81, 74], [82, 75], [83, 75], [84, 77], [85, 77], [86, 50], [87, 50], [88, 50], [89, 86], [90, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "IdKeyPattern", "code": "  protected void IdKeyPattern() throws javax.xml.transform.TransformerException\n  {\n    FunctionCall();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RelativePathPattern", "code": "  protected void RelativePathPattern()\n              throws javax.xml.transform.TransformerException\n  {\n\n    boolean trailingSlashConsumed = StepPattern(false);\n\n    while (tokenIs('/'))\n    {\n      nextToken();\n\n      trailingSlashConsumed = StepPattern(!trailingSlashConsumed);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [1, 6], [1, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [6, 1], [7, 1], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "StepPattern", "code": "  protected boolean StepPattern(boolean isLeadingSlashPermitted)\n            throws javax.xml.transform.TransformerException\n  {\n    return AbbreviatedNodeTestStep(isLeadingSlashPermitted);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AbbreviatedNodeTestStep", "code": "  protected boolean AbbreviatedNodeTestStep(boolean isLeadingSlashPermitted)\n            throws javax.xml.transform.TransformerException\n  {\n\n    int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n    int axesType;\n\n    int matchTypePos = -1;\n\n    if (tokenIs('@'))\n    {\n      axesType = OpCodes.MATCH_ATTRIBUTE;\n\n      appendOp(2, axesType);\n      nextToken();\n    }\n    else if (this.lookahead(\"::\", 1))\n    {\n      if (tokenIs(\"attribute\"))\n      {\n        axesType = OpCodes.MATCH_ATTRIBUTE;\n\n        appendOp(2, axesType);\n      }\n      else if (tokenIs(\"child\"))\n      {\n        matchTypePos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n        axesType = OpCodes.MATCH_IMMEDIATE_ANCESTOR;\n\n        appendOp(2, axesType);\n      }\n      else\n      {\n        axesType = -1;\n\n        this.error(XPATHErrorResources.ER_AXES_NOT_ALLOWED,\n                   new Object[]{ this.m_token });\n      }\n\n      nextToken();\n      nextToken();\n    }\n    else if (tokenIs('/'))\n    {\n      if (!isLeadingSlashPermitted)\n      {\n        error(XPATHErrorResources.ER_EXPECTED_STEP_PATTERN, null);\n      }\n      axesType = OpCodes.MATCH_ANY_ANCESTOR;\n\n      appendOp(2, axesType);\n      nextToken();\n    }\n    else\n    {\n      matchTypePos = m_ops.getOp(OpMap.MAPINDEX_LENGTH);\n      axesType = OpCodes.MATCH_IMMEDIATE_ANCESTOR;\n\n      appendOp(2, axesType);\n    }\n\n    m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n    NodeTest(axesType);\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH + 1,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n    while (tokenIs('['))\n    {\n      Predicate();\n    }\n\n    boolean trailingSlashConsumed;\n\n    if ((matchTypePos > -1) && tokenIs('/') && lookahead('/', 1))\n    {\n      m_ops.setOp(matchTypePos, OpCodes.MATCH_ANY_ANCESTOR);\n\n      nextToken();\n\n      trailingSlashConsumed = true;\n    }\n    else\n    {\n      trailingSlashConsumed = false;\n    }\n\n    m_ops.setOp(opPos + OpMap.MAPINDEX_LENGTH,\n      m_ops.getOp(OpMap.MAPINDEX_LENGTH) - opPos);\n\n    return trailingSlashConsumed;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [4, 12], [0, 13], [0, 14], [0, 15], [5, 16], [5, 17], [10, 18], [10, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [15, 25], [16, 26], [17, 27], [6, 28], [8, 29], [18, 30], [2, 31], [2, 32], [2, 33], [2, 34], [20, 35], [20, 36], [21, 37], [21, 38], [4, 39], [23, 40], [24, 41], [24, 42], [25, 43], [25, 44], [26, 45], [16, 46], [16, 47], [5, 48], [5, 49], [5, 50], [31, 51], [32, 52], [37, 53], [38, 54], [26, 55], [45, 56], [16, 57], [16, 58], [46, 59], [46, 60], [47, 61], [47, 62], [49, 63], [26, 64], [26, 65], [26, 66], [26, 67], [26, 68], [26, 69], [59, 70], [60, 71], [64, 72], [66, 73], [68, 74], [70, 75], [46, 76], [46, 77], [55, 78], [59, 79], [59, 80], [59, 81], [59, 82], [76, 83], [78, 84], [59, 85], [79, 86], [80, 87], [82, 88], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 4], [13, 0], [14, 0], [15, 0], [16, 5], [17, 5], [18, 10], [19, 10], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 15], [26, 16], [27, 17], [28, 6], [29, 8], [30, 18], [31, 2], [32, 2], [33, 2], [34, 2], [35, 20], [36, 20], [37, 21], [38, 21], [39, 4], [40, 23], [41, 24], [42, 24], [43, 25], [44, 25], [45, 26], [46, 16], [47, 16], [48, 5], [49, 5], [50, 5], [51, 31], [52, 32], [53, 37], [54, 38], [55, 26], [56, 45], [57, 16], [58, 16], [59, 46], [60, 46], [61, 47], [62, 47], [63, 49], [64, 26], [65, 26], [66, 26], [67, 26], [68, 26], [69, 26], [70, 59], [71, 60], [72, 64], [73, 66], [74, 68], [75, 70], [76, 46], [77, 46], [78, 55], [79, 59], [80, 59], [81, 59], [82, 59], [83, 76], [84, 78], [85, 59], [86, 79], [87, 80], [88, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "XPathParser", "code": "  public XPathParser(ErrorListener errorListener, javax.xml.transform.SourceLocator sourceLocator)\n  {\n    m_errorListener = errorListener;\n    m_sourceLocator = sourceLocator;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "ant-1.5-270", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/Sequential.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Sequential", "code": "public class Sequential extends Task\n                        implements TaskContainer {\n\n    /** Optional Vector holding the nested tasks */\n    private Vector nestedTasks = new Vector();\n\n    /**\n     * Override {@link org.apache.tools.ant.Task#maybeConfigure\n     * maybeConfigure} in a way that leaves the nested tasks\n     * unconfigured until they get executed.\n     *\n     * @since Ant 1.5\n     */\n    public void maybeConfigure() throws BuildException {\n        if (isInvalid()) {\n            super.maybeConfigure();\n        } else {\n            getRuntimeConfigurableWrapper().maybeConfigure(getProject(), false);\n        }\n    }\n\n    /**\n     * Add a nested task to Sequential.\n     * <p>\n     * @param nestedTask  Nested task to execute Sequential\n     * <p>\n     */\n    public void addTask(Task nestedTask) {\n        nestedTasks.addElement(nestedTask);\n    }\n\n    /**\n     * Execute all nestedTasks.\n     */\n    public void execute() throws BuildException {\n        for (Enumeration e = nestedTasks.elements(); e.hasMoreElements();) {\n            Task nestedTask = (Task) e.nextElement();\n            nestedTask.perform();", "functions": [{"function_name": "maybeConfigure", "code": "    public void maybeConfigure() throws BuildException {\n        if (isInvalid()) {\n            super.maybeConfigure();\n        } else {\n            getRuntimeConfigurableWrapper().maybeConfigure(getProject(), false);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 1], [3, 1], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "addTask", "code": "    public void addTask(Task nestedTask) {\n        nestedTasks.addElement(nestedTask);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        for (Enumeration e = nestedTasks.elements(); e.hasMoreElements();) {\n            Task nestedTask = (Task) e.nextElement();\n            nestedTask.perform();", "ast_nodes": ["FUNC_DECL", "LOOP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [3, 6], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "ivy-2.0-3462", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/ant/AddPathTask.java", "language": "java", "name": "org.apache.ivy.ant.AddPathTask", "code": "public class AddPathTask extends Task {\n    private String toPath;\n\n    private boolean first = false;\n\n    private Path toAdd;\n\n    public String getTopath() {\n        return toPath;\n    }\n\n    public void setTopath(String toPath) {\n        this.toPath = toPath;\n    }\n\n    public void setProject(Project project) {\n        super.setProject(project);\n        toAdd = new Path(project);\n    }\n\n    public void execute() throws BuildException {\n        Object element = getProject().getReference(toPath);\n        if (element == null) {\n            throw new BuildException(\"destination path not found: \" + toPath);\n        }\n        if (!(element instanceof Path)) {\n            throw new BuildException(\"destination path is not a path: \" + element.getClass());\n        }\n        Path dest = (Path) element;\n        if (first) {\n            // now way to add path elements at te beginning of the existing path: we do the opposite\n            // and replace the reference\n            toAdd.append(dest);\n            getProject().addReference(toPath, toAdd);\n        } else {\n            dest.append(toAdd);\n        }\n    }\n\n    public void add(Path path) throws BuildException {\n        toAdd.add(path);\n    }\n\n    public void addDirset(DirSet dset) throws BuildException {\n        toAdd.addDirset(dset);\n    }\n\n    public void addFilelist(FileList fl) throws BuildException {\n        toAdd.addFilelist(fl);\n    }\n\n    public void addFileset(FileSet fs) throws BuildException {\n        toAdd.addFileset(fs);\n    }\n\n    public Path createPath() throws BuildException {\n        return toAdd.createPath();\n    }\n\n    public PathElement createPathElement() throws BuildException {\n        return toAdd.createPathElement();\n    }\n\n    public boolean isFirst() {\n        return first;\n    }\n\n    public void setFirst(boolean first) {\n        this.first = first;", "functions": [{"function_name": "getTopath", "code": "    public String getTopath() {\n        return toPath;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTopath", "code": "    public void setTopath(String toPath) {\n        this.toPath = toPath;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setProject", "code": "    public void setProject(Project project) {\n        super.setProject(project);\n        toAdd = new Path(project);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "execute", "code": "    public void execute() throws BuildException {\n        Object element = getProject().getReference(toPath);\n        if (element == null) {\n            throw new BuildException(\"destination path not found: \" + toPath);\n        }\n        if (!(element instanceof Path)) {\n            throw new BuildException(\"destination path is not a path: \" + element.getClass());\n        }\n        Path dest = (Path) element;\n        if (first) {\n            // now way to add path elements at te beginning of the existing path: we do the opposite\n            // and replace the reference\n            toAdd.append(dest);\n            getProject().addReference(toPath, toAdd);\n        } else {\n            dest.append(toAdd);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [3, 8], [4, 9], [7, 10], [5, 11], [1, 12], [1, 13], [1, 14], [8, 15], [9, 16], [11, 17], [13, 18], [15, 19], [16, 20], [19, 21], [19, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 3], [9, 4], [10, 7], [11, 5], [12, 1], [13, 1], [14, 1], [15, 8], [16, 9], [17, 11], [18, 13], [19, 15], [20, 16], [21, 19], [22, 19], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "add", "code": "    public void add(Path path) throws BuildException {\n        toAdd.add(path);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addDirset", "code": "    public void addDirset(DirSet dset) throws BuildException {\n        toAdd.addDirset(dset);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFilelist", "code": "    public void addFilelist(FileList fl) throws BuildException {\n        toAdd.addFilelist(fl);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet fs) throws BuildException {\n        toAdd.addFileset(fs);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createPath", "code": "    public Path createPath() throws BuildException {\n        return toAdd.createPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createPathElement", "code": "    public PathElement createPathElement() throws BuildException {\n        return toAdd.createPathElement();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFirst", "code": "    public boolean isFirst() {\n        return first;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFirst", "code": "    public void setFirst(boolean first) {\n        this.first = first;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-1354", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/mail/SmtpResponseReader.java", "language": "java", "name": "org.apache.tools.mail.SmtpResponseReader", "code": "public class SmtpResponseReader {\n    protected BufferedReader reader = null;\n    private StringBuffer result = new StringBuffer();\n\n    /**\n     * Wrap this input stream.\n     * @param in the stream to wrap.\n     */\n    public SmtpResponseReader(InputStream in) {\n        reader = new BufferedReader(new InputStreamReader(in));\n    }\n\n    /**\n     * Read until the server indicates that the response is complete.\n     *\n     * @return Responsecode (3 digits) + Blank + Text from all\n     *         response line concatenated (with blanks replacing the \\r\\n\n     *         sequences).\n     * @throws IOException on error.\n     */\n    public String getResponse() throws IOException {\n        result.setLength(0);\n        String line = reader.readLine();\n        if (line != null && line.length() >= 3) {\n            result.append(line.substring(0, 3));\n            result.append(\" \");\n        }\n\n        while (line != null) {\n            append(line);\n            if (!hasMoreLines(line)) {\n                break;\n            }\n            line = reader.readLine();\n        }\n        return result.toString().trim();\n    }\n\n    /**\n     * Closes the underlying stream.\n     * @throws IOException on error.\n     */\n    public void close() throws IOException {\n        reader.close();\n    }\n\n    /**\n     * Should we expect more input?\n     * @param line the line to check.\n     * @return true if there are more lines to check.\n     */\n    protected boolean hasMoreLines(String line) {\n        return line.length() > 3 && line.charAt(3) == '-';\n    }\n\n    /**\n     * Append the text from this line of the resonse.\n     */\n    private void append(String line) {\n        if (line.length() > 4) {\n            result.append(line.substring(4));\n            result.append(\" \");", "functions": [{"function_name": "getResponse", "code": "    public String getResponse() throws IOException {\n        result.setLength(0);\n        String line = reader.readLine();\n        if (line != null && line.length() >= 3) {\n            result.append(line.substring(0, 3));\n            result.append(\" \");\n        }\n\n        while (line != null) {\n            append(line);\n            if (!hasMoreLines(line)) {\n                break;\n            }\n            line = reader.readLine();\n        }\n        return result.toString().trim();", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [0, 8], [5, 9], [2, 10], [6, 11], [7, 12], [7, 13], [4, 14], [8, 15], [2, 16], [10, 17], [2, 18], [3, 19], [3, 20], [12, 21], [12, 22], [13, 23], [16, 24], [10, 25], [19, 26], [20, 27], [27, 28], [27, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 0], [9, 5], [10, 2], [11, 6], [12, 7], [13, 7], [14, 4], [15, 8], [16, 2], [17, 10], [18, 2], [19, 3], [20, 3], [21, 12], [22, 12], [23, 13], [24, 16], [25, 10], [26, 19], [27, 20], [28, 27], [29, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "close", "code": "    public void close() throws IOException {\n        reader.close();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "hasMoreLines", "code": "    protected boolean hasMoreLines(String line) {\n        return line.length() > 3 && line.charAt(3) == '-';", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [4, 7], [5, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 4], [8, 5], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "append", "code": "    private void append(String line) {\n        if (line.length() > 4) {\n            result.append(line.substring(4));\n            result.append(\" \");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [1, 7], [6, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [7, 1], [8, 6], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "SmtpResponseReader", "code": "    public SmtpResponseReader(InputStream in) {\n        reader = new BufferedReader(new InputStreamReader(in));", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.2-1763", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/file/remote/SftpProducer.java", "language": "java", "name": "org.apache.camel.component.file.remote.SftpProducer", "code": "public class SftpProducer extends RemoteFileProducer<RemoteFileExchange> {\n    SftpEndpoint endpoint;\n    private final ChannelSftp channel;\n\n    public SftpProducer(SftpEndpoint endpoint, ChannelSftp channelSftp) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        this.channel = channelSftp;\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        process(endpoint.createExchange(exchange));\n    }\n\n    public void process(RemoteFileExchange exchange) throws Exception {\n        InputStream payload = exchange.getIn().getBody(InputStream.class);\n        final String endpointFile = endpoint.getConfiguration().getFile();\n        channel.cd(endpointFile);\n        String fileName = createFileName(exchange.getIn(), endpoint.getConfiguration());\n        buildDirectory(channel, fileName.substring(0, fileName.lastIndexOf('/')));\n        try {\n            channel.put(payload, fileName);\n        } catch (SftpException e) {\n            throw new RuntimeCamelException(\"error sending file\", e);\n        }\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        channel.disconnect();\n        super.doStop();\n    }\n\n    protected static boolean buildDirectory(ChannelSftp sftpClient, String dirName) throws IOException {\n        boolean atLeastOneSuccess = false;\n        final StringBuilder sb = new StringBuilder(dirName.length());\n        final String[] dirs = dirName.split(\"\\\\/\");\n        for (String dir : dirs) {\n            sb.append('/').append(dir);\n            try {\n                sftpClient.mkdir(sb.toString());\n                if (!atLeastOneSuccess) {\n                    atLeastOneSuccess = true;\n                }\n            } catch (SftpException e) {\n            }\n        }\n        return atLeastOneSuccess;", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        process(endpoint.createExchange(exchange));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "process", "code": "    public void process(RemoteFileExchange exchange) throws Exception {\n        InputStream payload = exchange.getIn().getBody(InputStream.class);\n        final String endpointFile = endpoint.getConfiguration().getFile();\n        channel.cd(endpointFile);\n        String fileName = createFileName(exchange.getIn(), endpoint.getConfiguration());\n        buildDirectory(channel, fileName.substring(0, fileName.lastIndexOf('/')));\n        try {\n            channel.put(payload, fileName);\n        } catch (SftpException e) {\n            throw new RuntimeCamelException(\"error sending file\", e);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [6, 9], [1, 10], [7, 11], [2, 12], [3, 13], [4, 14], [9, 15], [11, 16], [11, 17], [12, 18], [12, 19], [13, 20], [14, 21], [15, 22], [16, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 6], [10, 1], [11, 7], [12, 2], [13, 3], [14, 4], [15, 9], [16, 11], [17, 11], [18, 12], [19, 12], [20, 13], [21, 14], [22, 15], [23, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        channel.disconnect();\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "buildDirectory", "code": "    protected static boolean buildDirectory(ChannelSftp sftpClient, String dirName) throws IOException {\n        boolean atLeastOneSuccess = false;\n        final StringBuilder sb = new StringBuilder(dirName.length());\n        final String[] dirs = dirName.split(\"\\\\/\");\n        for (String dir : dirs) {\n            sb.append('/').append(dir);\n            try {\n                sftpClient.mkdir(sb.toString());\n                if (!atLeastOneSuccess) {\n                    atLeastOneSuccess = true;\n                }\n            } catch (SftpException e) {\n            }\n        }\n        return atLeastOneSuccess;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "TRY", "CALL", "CALL", "LITERAL_ANCHOR", "CATCH", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [5, 11], [8, 12], [8, 13], [2, 14], [9, 15], [10, 16], [8, 17], [14, 18], [14, 19], [17, 20], [13, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 5], [12, 8], [13, 8], [14, 2], [15, 9], [16, 10], [17, 8], [18, 14], [19, 14], [20, 17], [21, 13], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "SftpProducer", "code": "    public SftpProducer(SftpEndpoint endpoint, ChannelSftp channelSftp) {\n        super(endpoint);\n        this.endpoint = endpoint;\n        this.channel = channelSftp;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.3-4877", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/FilePropertiesDialog.java", "language": "java", "name": "org.gjt.sp.jedit.gui.FilePropertiesDialog", "code": "public class FilePropertiesDialog extends EnhancedDialog\n{\n\tprivate final VFSBrowser browser;\n\tprivate final VFSFile[] selectedFiles;\n\tprivate final LocalFile local;\n\n\t//{{{ FilePropertiesDialog(View view, VFSBrowser browser) constructor\n\t/**\n\t * The FilePropertiesDialog's constructor\n\t * @param view The view\n\t * @param browser The VFSBrowser\n\t */\n\tpublic FilePropertiesDialog(View view, VFSBrowser browser, VFSFile[] files)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"vfs.browser.properties.title\"),true);\n\t\tGUIUtilities.loadGeometry(this,\"propdialog\");\n\n\t\tthis.browser = browser;\n\n\t\tif (files.length > 0)\n\t\t\tselectedFiles = files;\n\t\telse\n\t\t\tselectedFiles = browser.getSelectedFiles();\n\t\tlocal = (LocalFile) selectedFiles[0];\n\t\tcreateAndShowGUI();\n\t} //}}}\n\n\t//{{{ addComponentsToPane() method\n\tpublic void addComponentsToPane()\n\t{\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,5,0,5));\n\t\tsetContentPane(content);\n\n\t\tif (selectedFiles.length == 1)\n\t\t{\n\t\t\tcontent.add(BorderLayout.NORTH, createNorthPanel());\n\t\t\tcontent.add(BorderLayout.CENTER, createCenterPanel());\n\t\t\tcontent.add(BorderLayout.SOUTH, createSouthPanel());\n\t\t}\n\t\telse if(selectedFiles.length > 1)\n\t\t{\n\t\t\tcontent.add(BorderLayout.NORTH, createNorthPanelAll());\n\t\t\tcontent.add(BorderLayout.CENTER, createCenterPanelAll());\n\t\t\tcontent.add(BorderLayout.SOUTH, createSouthPanelAll());\n\t\t}\n\t} //}}}\n\n\t//{{{createNorthPanelAll() method\n\tpublic JPanel createNorthPanelAll()\n\t{\n\t\tJPanel northPanel = new JPanel(new BorderLayout());\n\n\t\tinfoIcon = new JLabel();\n\t\tinfoIcon.setIcon(UIManager.getIcon(\"OptionPane.informationIcon\"));\n\t\tnorthPanel.add(BorderLayout.WEST, infoIcon);\n\n\t\tint filesCounter = 0;\n\t\tint directoriesCounter = 0;\n\t\tfor(int i=0;i<selectedFiles.length;i++)\n\t\t{\n\t\t\tif(selectedFiles[i].getType() == VFSFile.DIRECTORY)\n\t\t\t{\n\t\t\t\tdirectoriesCounter++;\n\t\t\t}\n\t\t\telse if(selectedFiles[i].getType() == VFSFile.FILE)\n\t\t\t{\n\t\t\t\tfilesCounter++;\n\t\t\t}\n\t\t}\n\t\tJPanel nameField = new JPanel();\n\t\tnameField.add(new JLabel(jEdit.getProperty(\"fileprop.selectedFiles\")+\": \"+filesCounter+\", \"+\n\t\t\t\t\t\t\tjEdit.getProperty(\"fileprop.selectedDirectories\")+\": \"+directoriesCounter));\n\n\t\tnorthPanel.add(BorderLayout.CENTER, nameField);\n\t\tnorthPanel.add(BorderLayout.SOUTH, new JPanel());\n\n\t\treturn northPanel;\n\t} //}}}\n\n\t//{{{createCenterPanelAll() method\n\tpublic JPanel createCenterPanelAll()\n\t{\n\t\tlong filesSize = 0L;\n\t\tJPanel centerPanel = new JPanel(new BorderLayout());\n\n\t\tfor (int i=0;i<selectedFiles.length;i++)\n\t\t{\n\t\t\tif(selectedFiles[i].getType() == VFSFile.DIRECTORY)\n\t\t\t{\n\t\t\t\tFile ioFile = new File(selectedFiles[i].getPath());\n\t\t\t\tfilesSize += IOUtilities.fileLength(ioFile);\n\t\t\t}\n\t\t\telse if(selectedFiles[i].getType() == VFSFile.FILE)\n\t\t\t{\n\t\t\t\tfilesSize += selectedFiles[i].getLength();\n\t\t\t}\n\t\t}\n\n\t\tJPanel propField = new JPanel();\n\t\tpropField.setLayout(new GridLayout(2, 1));\n\t\tString path = local.getPath();\n\t\tif(OperatingSystem.isWindows() || OperatingSystem.isWindows9x() || OperatingSystem.isWindowsNT())\n\t\t{\n\t\t\tpath = path.substring(0, path.lastIndexOf(92)); // 92 = '\\'\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpath = path.substring(0, path.lastIndexOf('/'));\n\t\t}\n\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.path\")+\": \"+path));\n\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.size\")+\": \"+MiscUtilities.formatFileSize(filesSize)));\n\t\tBorder etch = BorderFactory.createEtchedBorder();\n\t\tpropField.setBorder(BorderFactory.createTitledBorder(etch, jEdit.getProperty(\"fileprop.properties\")));\n\t\tcenterPanel.add(BorderLayout.CENTER, propField);\n\n\t\treturn centerPanel;\n\t} //}}}\n\n\t//{{{ createSouthPanelAll() method\n\tpublic JPanel createSouthPanelAll()\n\t{\n\t\tButtonActionHandler actionHandler = new ButtonActionHandler();\n\t\tJPanel southPanel = new JPanel(new BorderLayout());\n\n\t\tJPanel buttonsField = new JPanel();\n\t\tokButton = new JButton(jEdit.getProperty(\"fileprop.okBtn\"));\n\t\tbuttonsField.add(okButton);\n\t\tokButton.addActionListener(actionHandler);\n\t\tcancelButton = new JButton(jEdit.getProperty(\"fileprop.cancelBtn\"));\n\t\tbuttonsField.add(cancelButton);\n\t\tcancelButton.addActionListener(actionHandler);\n\n\t\tsouthPanel.add(BorderLayout.EAST, buttonsField);\n\n\t\treturn southPanel;\n\t} //}}}\n\n\t//{{{ createNorthPanel() method\n\tpublic JPanel createNorthPanel()\n\t{\n\t\tJPanel northPanel = new JPanel(new BorderLayout());\n\n\t\tinfoIcon = new JLabel();\n\t\tinfoIcon.setIcon(UIManager.getIcon(\"OptionPane.informationIcon\"));\n\t\tnorthPanel.add(BorderLayout.WEST, infoIcon);\n\n\t\tJPanel nameField = new JPanel();\n\t\tnameField.add(new JLabel(jEdit.getProperty(\"fileprop.name\")+\": \"));\n\t\tnameTextField = new JTextField(local.getName(), 20);\n\t\tnameField.add(nameTextField);\n\t\tnorthPanel.add(BorderLayout.CENTER, nameField);\n\t\tnorthPanel.add(BorderLayout.SOUTH, new JPanel());\n\n\t\treturn northPanel;\n\t} //}}}\n\n\t//{{{ createCenterPanel() method\n\tpublic JPanel createCenterPanel()\n\t{\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm\");\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout());\n\n\t\tJPanel propField = new JPanel();\n\t\tpropField.setLayout(new GridLayout(4, 1));\n\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.name\")+\": \"+local.getName()));\n\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.path\")+\": \"+local.getPath()));\n\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.lastmod\")+\": \"+sdf.format(new Date(local.getModified()))));\n\t\tif(local.getType() == VFSFile.DIRECTORY)\n\t\t{\n\t\t\tFile ioFile = new File(local.getPath());\n\t\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.size\")+\": \"+MiscUtilities.formatFileSize(IOUtilities.fileLength(ioFile))));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.size\")+\": \"+MiscUtilities.formatFileSize(local.getLength())));\n\t\t}\n\t\tBorder etch = BorderFactory.createEtchedBorder();\n\t\tpropField.setBorder(BorderFactory.createTitledBorder(etch, jEdit.getProperty(\"fileprop.properties\")));\n\t\tcenterPanel.add(BorderLayout.CENTER, propField);\n\n\t\tJPanel attributeField = new JPanel();\n\t\tattributeField.setLayout(new GridLayout(1, 2));\n\t\treadable = new JCheckBox(jEdit.getProperty(\"fileprop.readable\"));\n\t\treadable.setSelected(local.isReadable());\n\t\treadable.setEnabled(false);\n\t\tattributeField.add(readable);\n\n\t\twrite = new JCheckBox(jEdit.getProperty(\"fileprop.writeable\"));\n\t\twrite.setSelected(local.isWriteable());\n\t\twrite.setEnabled(false);\n\t\tattributeField.add(write);\n\t\tattributeField.setBorder(BorderFactory.createTitledBorder(etch, jEdit.getProperty(\"fileprop.attribute\")));\n\t\tcenterPanel.add(BorderLayout.SOUTH, attributeField);\n\n\t\treturn centerPanel;\n\t} //}}}\n\n\t//{{{ createSouthPanel() method\n\tpublic JPanel createSouthPanel()\n\t{\n\t\tButtonActionHandler actionHandler = new ButtonActionHandler();\n\t\tJPanel southPanel = new JPanel(new BorderLayout());\n\n\t\tJPanel buttonsField = new JPanel();\n\t\tokButton = new JButton(jEdit.getProperty(\"fileprop.okBtn\"));\n\t\tbuttonsField.add(okButton);\n\t\tokButton.addActionListener(actionHandler);\n\t\tcancelButton = new JButton(jEdit.getProperty(\"fileprop.cancelBtn\"));\n\t\tbuttonsField.add(cancelButton);\n\t\tcancelButton.addActionListener(actionHandler);\n\n\t\tsouthPanel.add(BorderLayout.EAST, buttonsField);\n\n\t\treturn southPanel;\n\t} //}}}\n\n\t//{{{ ok() method\n\t@Override\n\tpublic void ok()\n\t{\n\t\tif(nameTextField != null)\n\t\t{\n\t\t\tbrowser.rename(browser.getSelectedFiles()[0].getPath(), nameTextField.getText());\n\t\t}\n\n\t\tGUIUtilities.saveGeometry(this,\"propdialog\");\n\t\tsetVisible(false);\n\t} //}}}\n\n\t//{{{ cancel() method\n\t@Override\n\tpublic void cancel()\n\t{\n\t\tGUIUtilities.saveGeometry(this,\"propdialog\");\n\t\tsetVisible(false);\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate JButton okButton;\n\tprivate JButton cancelButton;\n\tprivate JTextField nameTextField;\n\tprivate JLabel infoIcon;\n\tprivate JCheckBox readable;\n\tprivate JCheckBox write;\n\n\t//{{{ createAndShowGUI() method\n\tprivate void createAndShowGUI()\n\t{\n\t\taddComponentsToPane();\n\t\tpack();\n\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tsetFocusable(true);\n\t\ttoFront();\n\t\trequestFocus();\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\t} //}}}\n\n\t//{{{ ButtonActionHandler class\n\tprivate class ButtonActionHandler implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\n\n\t\t\tif(source == okButton)\n\t\t\t{\n\t\t\t\tok();\n\t\t\t}\n\t\t\telse if(source == cancelButton)\n\t\t\t{\n\t\t\t\tcancel();", "functions": [{"function_name": "addComponentsToPane", "code": "\tpublic void addComponentsToPane()\n\t{\n\t\tJPanel content = new JPanel(new BorderLayout());\n\t\tcontent.setBorder(new EmptyBorder(12,5,0,5));\n\t\tsetContentPane(content);\n\n\t\tif (selectedFiles.length == 1)\n\t\t{\n\t\t\tcontent.add(BorderLayout.NORTH, createNorthPanel());\n\t\t\tcontent.add(BorderLayout.CENTER, createCenterPanel());\n\t\t\tcontent.add(BorderLayout.SOUTH, createSouthPanel());\n\t\t}\n\t\telse if(selectedFiles.length > 1)\n\t\t{\n\t\t\tcontent.add(BorderLayout.NORTH, createNorthPanelAll());\n\t\t\tcontent.add(BorderLayout.CENTER, createCenterPanelAll());\n\t\t\tcontent.add(BorderLayout.SOUTH, createSouthPanelAll());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [0, 6], [3, 7], [4, 8], [6, 9], [2, 10], [7, 11], [1, 12], [1, 13], [1, 14], [9, 15], [9, 16], [9, 17], [9, 18], [10, 19], [3, 20], [3, 21], [3, 22], [12, 23], [13, 24], [14, 25], [20, 26], [21, 27], [22, 28], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 0], [7, 3], [8, 4], [9, 6], [10, 2], [11, 7], [12, 1], [13, 1], [14, 1], [15, 9], [16, 9], [17, 9], [18, 9], [19, 10], [20, 3], [21, 3], [22, 3], [23, 12], [24, 13], [25, 14], [26, 20], [27, 21], [28, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "createNorthPanelAll", "code": "\tpublic JPanel createNorthPanelAll()\n\t{\n\t\tJPanel northPanel = new JPanel(new BorderLayout());\n\n\t\tinfoIcon = new JLabel();\n\t\tinfoIcon.setIcon(UIManager.getIcon(\"OptionPane.informationIcon\"));\n\t\tnorthPanel.add(BorderLayout.WEST, infoIcon);\n\n\t\tint filesCounter = 0;\n\t\tint directoriesCounter = 0;\n\t\tfor(int i=0;i<selectedFiles.length;i++)\n\t\t{\n\t\t\tif(selectedFiles[i].getType() == VFSFile.DIRECTORY)\n\t\t\t{\n\t\t\t\tdirectoriesCounter++;\n\t\t\t}\n\t\t\telse if(selectedFiles[i].getType() == VFSFile.FILE)\n\t\t\t{\n\t\t\t\tfilesCounter++;\n\t\t\t}\n\t\t}\n\t\tJPanel nameField = new JPanel();\n\t\tnameField.add(new JLabel(jEdit.getProperty(\"fileprop.selectedFiles\")+\": \"+filesCounter+\", \"+\n\t\t\t\t\t\t\tjEdit.getProperty(\"fileprop.selectedDirectories\")+\": \"+directoriesCounter));\n\n\t\tnorthPanel.add(BorderLayout.CENTER, nameField);\n\t\tnorthPanel.add(BorderLayout.SOUTH, new JPanel());\n\n\t\treturn northPanel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [0, 11], [0, 12], [0, 13], [7, 14], [9, 15], [2, 16], [3, 17], [4, 18], [5, 19], [12, 20], [13, 21], [6, 22], [15, 23], [17, 24], [17, 25], [3, 26], [20, 27], [22, 28], [23, 29], [24, 30], [29, 31], [29, 32], [25, 33], [32, 34], [32, 35], [30, 36], [34, 37], [35, 38], [35, 39], [39, 40], [40, 41], [40, 42], [42, 43], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 0], [12, 0], [13, 0], [14, 7], [15, 9], [16, 2], [17, 3], [18, 4], [19, 5], [20, 12], [21, 13], [22, 6], [23, 15], [24, 17], [25, 17], [26, 3], [27, 20], [28, 22], [29, 23], [30, 24], [31, 29], [32, 29], [33, 25], [34, 32], [35, 32], [36, 30], [37, 34], [38, 35], [39, 35], [40, 39], [41, 40], [42, 40], [43, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "createCenterPanelAll", "code": "\tpublic JPanel createCenterPanelAll()\n\t{\n\t\tlong filesSize = 0L;\n\t\tJPanel centerPanel = new JPanel(new BorderLayout());\n\n\t\tfor (int i=0;i<selectedFiles.length;i++)\n\t\t{\n\t\t\tif(selectedFiles[i].getType() == VFSFile.DIRECTORY)\n\t\t\t{\n\t\t\t\tFile ioFile = new File(selectedFiles[i].getPath());\n\t\t\t\tfilesSize += IOUtilities.fileLength(ioFile);\n\t\t\t}\n\t\t\telse if(selectedFiles[i].getType() == VFSFile.FILE)\n\t\t\t{\n\t\t\t\tfilesSize += selectedFiles[i].getLength();\n\t\t\t}\n\t\t}\n\n\t\tJPanel propField = new JPanel();\n\t\tpropField.setLayout(new GridLayout(2, 1));\n\t\tString path = local.getPath();\n\t\tif(OperatingSystem.isWindows() || OperatingSystem.isWindows9x() || OperatingSystem.isWindowsNT())\n\t\t{\n\t\t\tpath = path.substring(0, path.lastIndexOf(92)); // 92 = '\\'\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpath = path.substring(0, path.lastIndexOf('/'));\n\t\t}\n\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.path\")+\": \"+path));\n\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.size\")+\": \"+MiscUtilities.formatFileSize(filesSize)));\n\t\tBorder etch = BorderFactory.createEtchedBorder();\n\t\tpropField.setBorder(BorderFactory.createTitledBorder(etch, jEdit.getProperty(\"fileprop.properties\")));\n\t\tcenterPanel.add(BorderLayout.CENTER, propField);\n\n\t\treturn centerPanel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [3, 13], [0, 14], [6, 15], [10, 16], [2, 17], [11, 18], [12, 19], [13, 20], [13, 21], [4, 22], [14, 23], [5, 24], [6, 25], [7, 26], [8, 27], [16, 28], [18, 29], [19, 30], [3, 31], [3, 32], [21, 33], [21, 34], [23, 35], [23, 36], [25, 37], [25, 38], [6, 39], [26, 40], [28, 41], [29, 42], [29, 43], [30, 44], [31, 45], [32, 46], [37, 47], [25, 48], [43, 49], [43, 50], [44, 51], [44, 52], [45, 53], [45, 54], [46, 55], [46, 56], [25, 57], [38, 58], [50, 59], [52, 60], [53, 61], [55, 62], [37, 63], [47, 64], [57, 65], [48, 66], [63, 67], [66, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 3], [14, 0], [15, 6], [16, 10], [17, 2], [18, 11], [19, 12], [20, 13], [21, 13], [22, 4], [23, 14], [24, 5], [25, 6], [26, 7], [27, 8], [28, 16], [29, 18], [30, 19], [31, 3], [32, 3], [33, 21], [34, 21], [35, 23], [36, 23], [37, 25], [38, 25], [39, 6], [40, 26], [41, 28], [42, 29], [43, 29], [44, 30], [45, 31], [46, 32], [47, 37], [48, 25], [49, 43], [50, 43], [51, 44], [52, 44], [53, 45], [54, 45], [55, 46], [56, 46], [57, 25], [58, 38], [59, 50], [60, 52], [61, 53], [62, 55], [63, 37], [64, 47], [65, 57], [66, 48], [67, 63], [68, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "createSouthPanelAll", "code": "\tpublic JPanel createSouthPanelAll()\n\t{\n\t\tButtonActionHandler actionHandler = new ButtonActionHandler();\n\t\tJPanel southPanel = new JPanel(new BorderLayout());\n\n\t\tJPanel buttonsField = new JPanel();\n\t\tokButton = new JButton(jEdit.getProperty(\"fileprop.okBtn\"));\n\t\tbuttonsField.add(okButton);\n\t\tokButton.addActionListener(actionHandler);\n\t\tcancelButton = new JButton(jEdit.getProperty(\"fileprop.cancelBtn\"));\n\t\tbuttonsField.add(cancelButton);\n\t\tcancelButton.addActionListener(actionHandler);\n\n\t\tsouthPanel.add(BorderLayout.EAST, buttonsField);\n\n\t\treturn southPanel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [8, 12], [11, 13], [2, 14], [3, 15], [4, 16], [12, 17], [13, 18], [15, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 8], [13, 11], [14, 2], [15, 3], [16, 4], [17, 12], [18, 13], [19, 15], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "createNorthPanel", "code": "\tpublic JPanel createNorthPanel()\n\t{\n\t\tJPanel northPanel = new JPanel(new BorderLayout());\n\n\t\tinfoIcon = new JLabel();\n\t\tinfoIcon.setIcon(UIManager.getIcon(\"OptionPane.informationIcon\"));\n\t\tnorthPanel.add(BorderLayout.WEST, infoIcon);\n\n\t\tJPanel nameField = new JPanel();\n\t\tnameField.add(new JLabel(jEdit.getProperty(\"fileprop.name\")+\": \"));\n\t\tnameTextField = new JTextField(local.getName(), 20);\n\t\tnameField.add(nameTextField);\n\t\tnorthPanel.add(BorderLayout.CENTER, nameField);\n\t\tnorthPanel.add(BorderLayout.SOUTH, new JPanel());\n\n\t\treturn northPanel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [4, 12], [7, 13], [8, 14], [2, 15], [10, 16], [11, 17], [3, 18], [13, 19], [13, 20], [14, 21], [16, 22], [18, 23], [21, 24], [21, 25], [25, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 4], [13, 7], [14, 8], [15, 2], [16, 10], [17, 11], [18, 3], [19, 13], [20, 13], [21, 14], [22, 16], [23, 18], [24, 21], [25, 21], [26, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "createCenterPanel", "code": "\tpublic JPanel createCenterPanel()\n\t{\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm\");\n\n\t\tJPanel centerPanel = new JPanel(new BorderLayout());\n\n\t\tJPanel propField = new JPanel();\n\t\tpropField.setLayout(new GridLayout(4, 1));\n\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.name\")+\": \"+local.getName()));\n\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.path\")+\": \"+local.getPath()));\n\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.lastmod\")+\": \"+sdf.format(new Date(local.getModified()))));\n\t\tif(local.getType() == VFSFile.DIRECTORY)\n\t\t{\n\t\t\tFile ioFile = new File(local.getPath());\n\t\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.size\")+\": \"+MiscUtilities.formatFileSize(IOUtilities.fileLength(ioFile))));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpropField.add(new JLabel(jEdit.getProperty(\"fileprop.size\")+\": \"+MiscUtilities.formatFileSize(local.getLength())));\n\t\t}\n\t\tBorder etch = BorderFactory.createEtchedBorder();\n\t\tpropField.setBorder(BorderFactory.createTitledBorder(etch, jEdit.getProperty(\"fileprop.properties\")));\n\t\tcenterPanel.add(BorderLayout.CENTER, propField);\n\n\t\tJPanel attributeField = new JPanel();\n\t\tattributeField.setLayout(new GridLayout(1, 2));\n\t\treadable = new JCheckBox(jEdit.getProperty(\"fileprop.readable\"));\n\t\treadable.setSelected(local.isReadable());\n\t\treadable.setEnabled(false);\n\t\tattributeField.add(readable);\n\n\t\twrite = new JCheckBox(jEdit.getProperty(\"fileprop.writeable\"));\n\t\twrite.setSelected(local.isWriteable());\n\t\twrite.setEnabled(false);\n\t\tattributeField.add(write);\n\t\tattributeField.setBorder(BorderFactory.createTitledBorder(etch, jEdit.getProperty(\"fileprop.attribute\")));\n\t\tcenterPanel.add(BorderLayout.SOUTH, attributeField);\n\n\t\treturn centerPanel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [4, 21], [0, 22], [0, 23], [0, 24], [0, 25], [9, 26], [11, 27], [12, 28], [13, 29], [15, 30], [16, 31], [17, 32], [18, 33], [2, 34], [20, 35], [3, 36], [4, 37], [21, 38], [22, 39], [23, 40], [24, 41], [25, 42], [5, 43], [6, 44], [7, 45], [26, 46], [29, 47], [32, 48], [33, 49], [33, 50], [35, 51], [4, 52], [4, 53], [39, 54], [40, 55], [41, 56], [42, 57], [42, 58], [44, 59], [45, 60], [46, 61], [47, 62], [48, 63], [51, 64], [52, 65], [53, 66], [37, 67], [54, 68], [54, 69], [55, 70], [55, 71], [56, 72], [56, 73], [65, 74], [66, 75], [67, 76], [68, 77], [69, 78], [69, 79], [71, 80], [71, 81], [73, 82], [73, 83], [74, 84], [74, 85], [75, 86], [75, 87], [77, 88], [79, 89], [81, 90], [83, 91], [84, 92], [85, 93], [85, 94], [86, 95], [87, 96], [87, 97], [94, 98], [97, 99], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 4], [22, 0], [23, 0], [24, 0], [25, 0], [26, 9], [27, 11], [28, 12], [29, 13], [30, 15], [31, 16], [32, 17], [33, 18], [34, 2], [35, 20], [36, 3], [37, 4], [38, 21], [39, 22], [40, 23], [41, 24], [42, 25], [43, 5], [44, 6], [45, 7], [46, 26], [47, 29], [48, 32], [49, 33], [50, 33], [51, 35], [52, 4], [53, 4], [54, 39], [55, 40], [56, 41], [57, 42], [58, 42], [59, 44], [60, 45], [61, 46], [62, 47], [63, 48], [64, 51], [65, 52], [66, 53], [67, 37], [68, 54], [69, 54], [70, 55], [71, 55], [72, 56], [73, 56], [74, 65], [75, 66], [76, 67], [77, 68], [78, 69], [79, 69], [80, 71], [81, 71], [82, 73], [83, 73], [84, 74], [85, 74], [86, 75], [87, 75], [88, 77], [89, 79], [90, 81], [91, 83], [92, 84], [93, 85], [94, 85], [95, 86], [96, 87], [97, 87], [98, 94], [99, 97], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99]]}, {"function_name": "createSouthPanel", "code": "\tpublic JPanel createSouthPanel()\n\t{\n\t\tButtonActionHandler actionHandler = new ButtonActionHandler();\n\t\tJPanel southPanel = new JPanel(new BorderLayout());\n\n\t\tJPanel buttonsField = new JPanel();\n\t\tokButton = new JButton(jEdit.getProperty(\"fileprop.okBtn\"));\n\t\tbuttonsField.add(okButton);\n\t\tokButton.addActionListener(actionHandler);\n\t\tcancelButton = new JButton(jEdit.getProperty(\"fileprop.cancelBtn\"));\n\t\tbuttonsField.add(cancelButton);\n\t\tcancelButton.addActionListener(actionHandler);\n\n\t\tsouthPanel.add(BorderLayout.EAST, buttonsField);\n\n\t\treturn southPanel;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [8, 12], [11, 13], [2, 14], [3, 15], [4, 16], [12, 17], [13, 18], [15, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 8], [13, 11], [14, 2], [15, 3], [16, 4], [17, 12], [18, 13], [19, 15], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "ok", "code": "\t@Override\n\tpublic void ok()\n\t{\n\t\tif(nameTextField != null)\n\t\t{\n\t\t\tbrowser.rename(browser.getSelectedFiles()[0].getPath(), nameTextField.getText());\n\t\t}\n\n\t\tGUIUtilities.saveGeometry(this,\"propdialog\");\n\t\tsetVisible(false);", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 8], [8, 9], [8, 10], [10, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 4], [8, 1], [9, 8], [10, 8], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "cancel", "code": "\t@Override\n\tpublic void cancel()\n\t{\n\t\tGUIUtilities.saveGeometry(this,\"propdialog\");\n\t\tsetVisible(false);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createAndShowGUI", "code": "\tprivate void createAndShowGUI()\n\t{\n\t\taddComponentsToPane();\n\t\tpack();\n\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tsetFocusable(true);\n\t\ttoFront();\n\t\trequestFocus();\n\t\tsetResizable(false);\n\t\tsetVisible(true);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [5, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "FilePropertiesDialog", "code": "\tpublic FilePropertiesDialog(View view, VFSBrowser browser, VFSFile[] files)\n\t{\n\t\tsuper(view,jEdit.getProperty(\"vfs.browser.properties.title\"),true);\n\t\tGUIUtilities.loadGeometry(this,\"propdialog\");\n\n\t\tthis.browser = browser;\n\n\t\tif (files.length > 0)\n\t\t\tselectedFiles = files;\n\t\telse\n\t\t\tselectedFiles = browser.getSelectedFiles();\n\t\tlocal = (LocalFile) selectedFiles[0];\n\t\tcreateAndShowGUI();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [7, 14], [9, 15], [11, 16], [12, 17], [6, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 7], [15, 9], [16, 11], [17, 12], [18, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}], "label": 0}
{"sample_id": "ant-1.7-1125", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resolver/ApacheCatalog.java", "language": "java", "name": "org.apache.tools.ant.types.resolver.ApacheCatalog", "code": "public class ApacheCatalog extends Catalog {\n\n    /** The resolver object to callback. */\n    private ApacheCatalogResolver resolver = null;\n\n    /**\n     * <p>Create a new ApacheCatalog instance.</p>\n     *\n     * <p>This method overrides the superclass method of the same name\n     *  in order to set the resolver object for callbacks.  The reason\n     *  we have to do this is that internally Catalog creates a new\n     *  instance of itself for each external catalog file processed.\n     *  That is, if two external catalog files are processed, there\n     *  will be a total of two ApacheCatalog instances, and so on.</p>\n     * @return the catalog.\n     */\n    protected Catalog newCatalog() {\n        ApacheCatalog cat = (ApacheCatalog) super.newCatalog();\n        cat.setResolver(resolver);\n        return cat;\n    }\n\n    /**\n     * Set the resolver object to callback.\n     * @param resolver the apache catalog resolver.\n     */\n    public void setResolver(ApacheCatalogResolver resolver) {\n        this.resolver = resolver;\n    }\n\n    /**\n     * <p>This method overrides the superclass method of the same name\n     * in order to add catalog entries back to the controlling\n     * XMLCatalog instance.  In this way, we can add classpath lookup\n     * for these entries.</p>\n     *\n     * <p>When we add an external catalog file, the entries inside it\n     * get parsed by this method.  Therefore, we override it to add\n     * each of them back to the controlling XMLCatalog instance.  This\n     * is done by performing a callback to the ApacheCatalogResolver,\n     * which in turn calls the XMLCatalog.</p>\n     *\n     * <p>XMLCatalog currently only understands <code>PUBLIC</code>\n     * and <code>URI</code> entry types, so we ignore the other types.</p>\n     *\n     * @param entry The CatalogEntry to process.\n     */\n    public void addEntry(CatalogEntry entry) {\n\n        int type = entry.getEntryType();\n\n        if (type == PUBLIC) {\n\n            String publicid = PublicId.normalize(entry.getEntryArg(0));\n            String systemid = normalizeURI(entry.getEntryArg(1));\n\n            if (resolver == null) {\n                catalogManager.debug\n                    .message(1, \"Internal Error: null ApacheCatalogResolver\");\n            } else {\n                resolver.addPublicEntry(publicid, systemid, base);\n            }\n\n        } else if (type == URI) {\n\n            String uri = normalizeURI(entry.getEntryArg(0));\n            String altURI = normalizeURI(entry.getEntryArg(1));\n\n            if (resolver == null) {\n                catalogManager.debug\n                    .message(1, \"Internal Error: null ApacheCatalogResolver\");\n            } else {\n                resolver.addURIEntry(uri, altURI, base);\n            }\n\n        }\n\n        super.addEntry(entry);", "functions": [{"function_name": "newCatalog", "code": "    protected Catalog newCatalog() {\n        ApacheCatalog cat = (ApacheCatalog) super.newCatalog();\n        cat.setResolver(resolver);\n        return cat;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setResolver", "code": "    public void setResolver(ApacheCatalogResolver resolver) {\n        this.resolver = resolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addEntry", "code": "    public void addEntry(CatalogEntry entry) {\n\n        int type = entry.getEntryType();\n\n        if (type == PUBLIC) {\n\n            String publicid = PublicId.normalize(entry.getEntryArg(0));\n            String systemid = normalizeURI(entry.getEntryArg(1));\n\n            if (resolver == null) {\n                catalogManager.debug\n                    .message(1, \"Internal Error: null ApacheCatalogResolver\");\n            } else {\n                resolver.addPublicEntry(publicid, systemid, base);\n            }\n\n        } else if (type == URI) {\n\n            String uri = normalizeURI(entry.getEntryArg(0));\n            String altURI = normalizeURI(entry.getEntryArg(1));\n\n            if (resolver == null) {\n                catalogManager.debug\n                    .message(1, \"Internal Error: null ApacheCatalogResolver\");\n            } else {\n                resolver.addURIEntry(uri, altURI, base);\n            }\n\n        }\n\n        super.addEntry(entry);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [2, 10], [4, 11], [4, 12], [4, 13], [7, 14], [11, 15], [14, 16], [8, 17], [9, 18], [15, 19], [12, 20], [13, 21], [7, 22], [7, 23], [17, 24], [18, 25], [11, 26], [11, 27], [20, 28], [21, 29], [23, 30], [23, 31], [24, 32], [25, 33], [27, 34], [27, 35], [28, 36], [29, 37], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 2], [11, 4], [12, 4], [13, 4], [14, 7], [15, 11], [16, 14], [17, 8], [18, 9], [19, 15], [20, 12], [21, 13], [22, 7], [23, 7], [24, 17], [25, 18], [26, 11], [27, 11], [28, 20], [29, 21], [30, 23], [31, 23], [32, 24], [33, 25], [34, 27], [35, 27], [36, 28], [37, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}], "label": 0}
{"sample_id": "camel-1.4-2257", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/jms/JmsComponent.java", "language": "java", "name": "org.apache.camel.component.jms.JmsComponent", "code": "public class JmsComponent extends DefaultComponent<JmsExchange> implements ApplicationContextAware {\n\n    private static final transient Log LOG = LogFactory.getLog(JmsComponent.class);\n    private static final String DEFAULT_QUEUE_BROWSE_STRATEGY = \"org.apache.camel.component.jms.DefaultQueueBrowseStrategy\";\n    private JmsConfiguration configuration;\n    private ApplicationContext applicationContext;\n    private Requestor requestor;\n    private QueueBrowseStrategy queueBrowseStrategy;\n    private boolean attemptedToCreateQueueBrowserStrategy;\n\n    public JmsComponent() {\n    }\n\n    public JmsComponent(JmsConfiguration configuration) {\n        this.configuration = configuration;\n    }\n\n    public JmsComponent(CamelContext context) {\n        super(context);\n    }\n\n    /**\n     * Static builder method\n     */\n    public static JmsComponent jmsComponent() {\n        return new JmsComponent();\n    }\n\n    /**\n     * Static builder method\n     */\n    public static JmsComponent jmsComponent(JmsConfiguration configuration) {\n        return new JmsComponent(configuration);\n    }\n\n    /**\n     * Static builder method\n     */\n    public static JmsComponent jmsComponent(ConnectionFactory connectionFactory) {\n        return jmsComponent(new JmsConfiguration(connectionFactory));\n    }\n\n    /**\n     * Static builder method\n     */\n    public static JmsComponent jmsComponentClientAcknowledge(ConnectionFactory connectionFactory) {\n        JmsConfiguration template = new JmsConfiguration(connectionFactory);\n        template.setAcknowledgementMode(Session.CLIENT_ACKNOWLEDGE);\n        return jmsComponent(template);\n    }\n\n    /**\n     * Static builder method\n     */\n    public static JmsComponent jmsComponentAutoAcknowledge(ConnectionFactory connectionFactory) {\n        JmsConfiguration template = new JmsConfiguration(connectionFactory);\n        template.setAcknowledgementMode(Session.AUTO_ACKNOWLEDGE);\n        return jmsComponent(template);\n    }\n\n    public static JmsComponent jmsComponentTransacted(ConnectionFactory connectionFactory) {\n        JmsTransactionManager transactionManager = new JmsTransactionManager();\n        transactionManager.setConnectionFactory(connectionFactory);\n        return jmsComponentTransacted(connectionFactory, transactionManager);\n    }\n\n    public static JmsComponent jmsComponentTransacted(ConnectionFactory connectionFactory,\n                                                      PlatformTransactionManager transactionManager) {\n        JmsConfiguration template = new JmsConfiguration(connectionFactory);\n        template.setTransactionManager(transactionManager);\n        template.setTransacted(true);\n        return jmsComponent(template);\n    }\n\n\n    public JmsConfiguration getConfiguration() {\n        if (configuration == null) {\n            configuration = createConfiguration();\n\n            if (applicationContext != null) {\n                Map beansOfType = applicationContext.getBeansOfType(ConnectionFactory.class);\n                if (!beansOfType.isEmpty()) {\n                    ConnectionFactory cf = (ConnectionFactory)beansOfType.values().iterator().next();\n                    configuration.setConnectionFactory(cf);\n                }\n                beansOfType = applicationContext.getBeansOfType(DestinationResolver.class);\n                if (!beansOfType.isEmpty()) {\n                    DestinationResolver destinationResolver = (DestinationResolver)beansOfType.values()\n                        .iterator().next();\n                    configuration.setDestinationResolver(destinationResolver);\n                }\n            }\n        }\n        return configuration;\n    }\n\n    /**\n     * Sets the JMS configuration\n     *\n     * @param configuration the configuration to use by default for endpoints\n     */\n    public void setConfiguration(JmsConfiguration configuration) {\n        this.configuration = configuration;\n    }\n\n    public void setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) {\n        getConfiguration().setAcceptMessagesWhileStopping(acceptMessagesWhileStopping);\n    }\n\n    public void setAcknowledgementMode(int consumerAcknowledgementMode) {\n        getConfiguration().setAcknowledgementMode(consumerAcknowledgementMode);\n    }\n\n    public void setAcknowledgementModeName(String consumerAcknowledgementMode) {\n        getConfiguration().setAcknowledgementModeName(consumerAcknowledgementMode);\n    }\n\n    public void setAutoStartup(boolean autoStartup) {\n        getConfiguration().setAutoStartup(autoStartup);\n    }\n\n    public void setCacheLevel(int cacheLevel) {\n        getConfiguration().setCacheLevel(cacheLevel);\n    }\n\n    public void setCacheLevelName(String cacheName) {\n        getConfiguration().setCacheLevelName(cacheName);\n    }\n\n    public void setClientId(String consumerClientId) {\n        getConfiguration().setClientId(consumerClientId);\n    }\n\n    public void setConcurrentConsumers(int concurrentConsumers) {\n        getConfiguration().setConcurrentConsumers(concurrentConsumers);\n    }\n\n    public void setConnectionFactory(ConnectionFactory connectionFactory) {\n        getConfiguration().setConnectionFactory(connectionFactory);\n    }\n\n    public void setConsumerType(ConsumerType consumerType) {\n        getConfiguration().setConsumerType(consumerType);\n    }\n\n    public void setDeliveryPersistent(boolean deliveryPersistent) {\n        getConfiguration().setDeliveryPersistent(deliveryPersistent);\n    }\n\n    public void setDurableSubscriptionName(String durableSubscriptionName) {\n        getConfiguration().setDurableSubscriptionName(durableSubscriptionName);\n    }\n\n    public void setExceptionListener(ExceptionListener exceptionListener) {\n        getConfiguration().setExceptionListener(exceptionListener);\n    }\n\n    public void setExplicitQosEnabled(boolean explicitQosEnabled) {\n        getConfiguration().setExplicitQosEnabled(explicitQosEnabled);\n    }\n\n    public void setExposeListenerSession(boolean exposeListenerSession) {\n        getConfiguration().setExposeListenerSession(exposeListenerSession);\n    }\n\n    public void setIdleTaskExecutionLimit(int idleTaskExecutionLimit) {\n        getConfiguration().setIdleTaskExecutionLimit(idleTaskExecutionLimit);\n    }\n\n    public void setMaxConcurrentConsumers(int maxConcurrentConsumers) {\n        getConfiguration().setMaxConcurrentConsumers(maxConcurrentConsumers);\n    }\n\n    public void setMaxMessagesPerTask(int maxMessagesPerTask) {\n        getConfiguration().setMaxMessagesPerTask(maxMessagesPerTask);\n    }\n\n    public void setMessageConverter(MessageConverter messageConverter) {\n        getConfiguration().setMessageConverter(messageConverter);\n    }\n\n    public void setMessageIdEnabled(boolean messageIdEnabled) {\n        getConfiguration().setMessageIdEnabled(messageIdEnabled);\n    }\n\n    public void setMessageTimestampEnabled(boolean messageTimestampEnabled) {\n        getConfiguration().setMessageTimestampEnabled(messageTimestampEnabled);\n    }\n\n    public void setAlwaysCopyMessage(boolean alwaysCopyMessage) {\n        getConfiguration().setAlwaysCopyMessage(alwaysCopyMessage);\n    }\n\n    public void setUseMessageIDAsCorrelationID(boolean useMessageIDAsCorrelationID) {\n        getConfiguration().setUseMessageIDAsCorrelationID(useMessageIDAsCorrelationID);\n    }\n\n    public void setPriority(int priority) {\n        getConfiguration().setPriority(priority);\n    }\n\n    public void setPubSubNoLocal(boolean pubSubNoLocal) {\n        getConfiguration().setPubSubNoLocal(pubSubNoLocal);\n    }\n\n    public void setReceiveTimeout(long receiveTimeout) {\n        getConfiguration().setReceiveTimeout(receiveTimeout);\n    }\n\n    public void setRecoveryInterval(long recoveryInterval) {\n        getConfiguration().setRecoveryInterval(recoveryInterval);\n    }\n\n    public void setServerSessionFactory(ServerSessionFactory serverSessionFactory) {\n        getConfiguration().setServerSessionFactory(serverSessionFactory);\n    }\n\n    public void setSubscriptionDurable(boolean subscriptionDurable) {\n        getConfiguration().setSubscriptionDurable(subscriptionDurable);\n    }\n\n    public void setTaskExecutor(TaskExecutor taskExecutor) {\n        getConfiguration().setTaskExecutor(taskExecutor);\n    }\n\n    public void setTimeToLive(long timeToLive) {\n        getConfiguration().setTimeToLive(timeToLive);\n    }\n\n    public void setTransacted(boolean consumerTransacted) {\n        getConfiguration().setTransacted(consumerTransacted);\n    }\n\n    public void setTransactionManager(PlatformTransactionManager transactionManager) {\n        getConfiguration().setTransactionManager(transactionManager);\n    }\n\n    public void setTransactionName(String transactionName) {\n        getConfiguration().setTransactionName(transactionName);\n    }\n\n    public void setTransactionTimeout(int transactionTimeout) {\n        getConfiguration().setTransactionTimeout(transactionTimeout);\n    }\n\n    public void setUseVersion102(boolean useVersion102) {\n        getConfiguration().setUseVersion102(useVersion102);\n    }\n\n    public void setJmsOperations(JmsOperations jmsOperations) {\n        getConfiguration().setJmsOperations(jmsOperations);\n    }\n\n    public void setDestinationResolver(DestinationResolver destinationResolver) {\n        getConfiguration().setDestinationResolver(destinationResolver);\n    }\n\n    public synchronized Requestor getRequestor() throws Exception {\n        if (requestor == null) {\n            requestor = new Requestor(getConfiguration(), getExecutorService());\n            requestor.start();\n        }\n        return requestor;\n    }\n\n    public void setRequestor(Requestor requestor) {\n        this.requestor = requestor;\n    }\n\n    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n        this.applicationContext = applicationContext;\n    }\n\n    public QueueBrowseStrategy getQueueBrowseStrategy() {\n        if (queueBrowseStrategy == null) {\n            if (!attemptedToCreateQueueBrowserStrategy) {\n                attemptedToCreateQueueBrowserStrategy = true;\n                try {\n                    queueBrowseStrategy = tryCreateDefaultQueueBrowseStrategy();\n                } catch (Throwable e) {\n                    LOG.warn(\"Could not instantiate the QueueBrowseStrategy are you using Spring 2.0.x\"\n                        + \" by any chance? Error: \" + e, e);\n                }\n            }\n        }\n        return queueBrowseStrategy;\n    }\n\n    public void setQueueBrowseStrategy(QueueBrowseStrategy queueBrowseStrategy) {\n        this.queueBrowseStrategy = queueBrowseStrategy;\n    }\n\n\n    @Override\n    protected void doStop() throws Exception {\n        if (requestor != null) {\n            requestor.stop();\n        }\n        super.doStop();\n    }\n\n    @Override\n    protected Endpoint<JmsExchange> createEndpoint(String uri, String remaining, Map parameters)\n        throws Exception {\n\n        boolean pubSubDomain = false;\n        boolean tempDestination = false;\n        if (remaining.startsWith(JmsConfiguration.QUEUE_PREFIX)) {\n            pubSubDomain = false;\n            remaining = removeStartingCharacters(remaining.substring(JmsConfiguration.QUEUE_PREFIX.length()), '/');\n        } else if (remaining.startsWith(JmsConfiguration.TOPIC_PREFIX)) {\n            pubSubDomain = true;\n            remaining = removeStartingCharacters(remaining.substring(JmsConfiguration.TOPIC_PREFIX.length()), '/');\n        } else if (remaining.startsWith(JmsConfiguration.TEMP_QUEUE_PREFIX)) {\n            pubSubDomain = false;\n            tempDestination = true;\n            remaining = removeStartingCharacters(remaining.substring(JmsConfiguration.TEMP_QUEUE_PREFIX.length()), '/');\n        } else if (remaining.startsWith(JmsConfiguration.TEMP_TOPIC_PREFIX)) {\n            pubSubDomain = true;\n            tempDestination = true;\n            remaining = removeStartingCharacters(remaining.substring(JmsConfiguration.TEMP_TOPIC_PREFIX.length()), '/');\n        }\n\n        final String subject = convertPathToActualDestination(remaining, parameters);\n\n        JmsConfiguration newConfiguration = getConfiguration().copy();\n        JmsEndpoint endpoint;\n        if (pubSubDomain) {\n            if (tempDestination) {\n                endpoint = new JmsTemporaryTopicEndpoint(uri, this, subject, newConfiguration);\n            } else {\n                endpoint = new JmsEndpoint(uri, this, subject, pubSubDomain, newConfiguration);\n            }\n        } else {\n            QueueBrowseStrategy strategy = getQueueBrowseStrategy();\n            if (tempDestination) {\n                endpoint = new JmsTemporaryQueueEndpoint(uri, this, subject, newConfiguration, strategy);\n            } else {\n                endpoint = new JmsQueueEndpoint(uri, this, subject, newConfiguration, strategy);\n            }\n        }\n\n        String selector = getAndRemoveParameter(parameters, \"selector\", String.class);\n        if (selector != null) {\n            endpoint.setSelector(selector);\n        }\n        setProperties(endpoint.getConfiguration(), parameters);\n        return endpoint;\n    }\n\n    /**\n     * A strategy method allowing the URI destination to be translated into the\n     * actual JMS destination name (say by looking up in JNDI or something)\n     */\n    protected String convertPathToActualDestination(String path, Map parameters) {\n        return path;\n    }\n\n    /**\n     * Factory method to create the default configuration instance\n     *\n     * @return a newly created configuration object which can then be further\n     *         customized\n     */\n    protected JmsConfiguration createConfiguration() {\n        return new JmsConfiguration();\n    }\n\n    /**\n     * Attempts to instantiate the default {@link QueueBrowseStrategy} which\n     * should work fine if Spring 2.5.x or later is on the classpath but this\n     * will fail if 2.0.x are on the classpath. We can continue to operate on\n     * this version we just cannot support the browseable queues supported by\n     * {@link JmsQueueEndpoint}\n     *\n     * @return the queue browse strategy or null if it cannot be supported\n     */\n    protected static QueueBrowseStrategy tryCreateDefaultQueueBrowseStrategy() {\n        Class<?> type = ObjectHelper.loadClass(DEFAULT_QUEUE_BROWSE_STRATEGY);\n        if (type == null) {\n            LOG.warn(\"Could not load class: \" + DEFAULT_QUEUE_BROWSE_STRATEGY\n                     + \" maybe you are on Spring 2.0.x?\");\n            return null;\n        } else {\n            return (QueueBrowseStrategy)ObjectHelper.newInstance(type);", "functions": [{"function_name": "jmsComponent", "code": "    public static JmsComponent jmsComponent() {\n        return new JmsComponent();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "jmsComponent", "code": "    public static JmsComponent jmsComponent(JmsConfiguration configuration) {\n        return new JmsComponent(configuration);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "jmsComponent", "code": "    public static JmsComponent jmsComponent(ConnectionFactory connectionFactory) {\n        return jmsComponent(new JmsConfiguration(connectionFactory));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "jmsComponentClientAcknowledge", "code": "    public static JmsComponent jmsComponentClientAcknowledge(ConnectionFactory connectionFactory) {\n        JmsConfiguration template = new JmsConfiguration(connectionFactory);\n        template.setAcknowledgementMode(Session.CLIENT_ACKNOWLEDGE);\n        return jmsComponent(template);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jmsComponentAutoAcknowledge", "code": "    public static JmsComponent jmsComponentAutoAcknowledge(ConnectionFactory connectionFactory) {\n        JmsConfiguration template = new JmsConfiguration(connectionFactory);\n        template.setAcknowledgementMode(Session.AUTO_ACKNOWLEDGE);\n        return jmsComponent(template);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jmsComponentTransacted", "code": "    public static JmsComponent jmsComponentTransacted(ConnectionFactory connectionFactory) {\n        JmsTransactionManager transactionManager = new JmsTransactionManager();\n        transactionManager.setConnectionFactory(connectionFactory);\n        return jmsComponentTransacted(connectionFactory, transactionManager);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "jmsComponentTransacted", "code": "    public static JmsComponent jmsComponentTransacted(ConnectionFactory connectionFactory,\n                                                      PlatformTransactionManager transactionManager) {\n        JmsConfiguration template = new JmsConfiguration(connectionFactory);\n        template.setTransactionManager(transactionManager);\n        template.setTransacted(true);\n        return jmsComponent(template);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [6, 8], [2, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 6], [9, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getConfiguration", "code": "    public JmsConfiguration getConfiguration() {\n        if (configuration == null) {\n            configuration = createConfiguration();\n\n            if (applicationContext != null) {\n                Map beansOfType = applicationContext.getBeansOfType(ConnectionFactory.class);\n                if (!beansOfType.isEmpty()) {\n                    ConnectionFactory cf = (ConnectionFactory)beansOfType.values().iterator().next();\n                    configuration.setConnectionFactory(cf);\n                }\n                beansOfType = applicationContext.getBeansOfType(DestinationResolver.class);\n                if (!beansOfType.isEmpty()) {\n                    DestinationResolver destinationResolver = (DestinationResolver)beansOfType.values()\n                        .iterator().next();\n                    configuration.setDestinationResolver(destinationResolver);\n                }\n            }\n        }\n        return configuration;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [2, 7], [4, 8], [4, 9], [4, 10], [6, 11], [7, 12], [8, 13], [4, 14], [9, 15], [8, 16], [14, 17], [9, 18], [10, 19], [8, 20], [9, 21], [16, 22], [18, 23], [22, 24], [22, 25], [23, 26], [23, 27], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 2], [8, 4], [9, 4], [10, 4], [11, 6], [12, 7], [13, 8], [14, 4], [15, 9], [16, 8], [17, 14], [18, 9], [19, 10], [20, 8], [21, 9], [22, 16], [23, 18], [24, 22], [25, 22], [26, 23], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "setConfiguration", "code": "    public void setConfiguration(JmsConfiguration configuration) {\n        this.configuration = configuration;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAcceptMessagesWhileStopping", "code": "    public void setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) {\n        getConfiguration().setAcceptMessagesWhileStopping(acceptMessagesWhileStopping);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAcknowledgementMode", "code": "    public void setAcknowledgementMode(int consumerAcknowledgementMode) {\n        getConfiguration().setAcknowledgementMode(consumerAcknowledgementMode);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAcknowledgementModeName", "code": "    public void setAcknowledgementModeName(String consumerAcknowledgementMode) {\n        getConfiguration().setAcknowledgementModeName(consumerAcknowledgementMode);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAutoStartup", "code": "    public void setAutoStartup(boolean autoStartup) {\n        getConfiguration().setAutoStartup(autoStartup);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setCacheLevel", "code": "    public void setCacheLevel(int cacheLevel) {\n        getConfiguration().setCacheLevel(cacheLevel);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setCacheLevelName", "code": "    public void setCacheLevelName(String cacheName) {\n        getConfiguration().setCacheLevelName(cacheName);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setClientId", "code": "    public void setClientId(String consumerClientId) {\n        getConfiguration().setClientId(consumerClientId);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setConcurrentConsumers", "code": "    public void setConcurrentConsumers(int concurrentConsumers) {\n        getConfiguration().setConcurrentConsumers(concurrentConsumers);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setConnectionFactory", "code": "    public void setConnectionFactory(ConnectionFactory connectionFactory) {\n        getConfiguration().setConnectionFactory(connectionFactory);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setConsumerType", "code": "    public void setConsumerType(ConsumerType consumerType) {\n        getConfiguration().setConsumerType(consumerType);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDeliveryPersistent", "code": "    public void setDeliveryPersistent(boolean deliveryPersistent) {\n        getConfiguration().setDeliveryPersistent(deliveryPersistent);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDurableSubscriptionName", "code": "    public void setDurableSubscriptionName(String durableSubscriptionName) {\n        getConfiguration().setDurableSubscriptionName(durableSubscriptionName);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setExceptionListener", "code": "    public void setExceptionListener(ExceptionListener exceptionListener) {\n        getConfiguration().setExceptionListener(exceptionListener);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setExplicitQosEnabled", "code": "    public void setExplicitQosEnabled(boolean explicitQosEnabled) {\n        getConfiguration().setExplicitQosEnabled(explicitQosEnabled);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setExposeListenerSession", "code": "    public void setExposeListenerSession(boolean exposeListenerSession) {\n        getConfiguration().setExposeListenerSession(exposeListenerSession);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setIdleTaskExecutionLimit", "code": "    public void setIdleTaskExecutionLimit(int idleTaskExecutionLimit) {\n        getConfiguration().setIdleTaskExecutionLimit(idleTaskExecutionLimit);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMaxConcurrentConsumers", "code": "    public void setMaxConcurrentConsumers(int maxConcurrentConsumers) {\n        getConfiguration().setMaxConcurrentConsumers(maxConcurrentConsumers);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMaxMessagesPerTask", "code": "    public void setMaxMessagesPerTask(int maxMessagesPerTask) {\n        getConfiguration().setMaxMessagesPerTask(maxMessagesPerTask);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMessageConverter", "code": "    public void setMessageConverter(MessageConverter messageConverter) {\n        getConfiguration().setMessageConverter(messageConverter);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMessageIdEnabled", "code": "    public void setMessageIdEnabled(boolean messageIdEnabled) {\n        getConfiguration().setMessageIdEnabled(messageIdEnabled);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMessageTimestampEnabled", "code": "    public void setMessageTimestampEnabled(boolean messageTimestampEnabled) {\n        getConfiguration().setMessageTimestampEnabled(messageTimestampEnabled);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setAlwaysCopyMessage", "code": "    public void setAlwaysCopyMessage(boolean alwaysCopyMessage) {\n        getConfiguration().setAlwaysCopyMessage(alwaysCopyMessage);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setUseMessageIDAsCorrelationID", "code": "    public void setUseMessageIDAsCorrelationID(boolean useMessageIDAsCorrelationID) {\n        getConfiguration().setUseMessageIDAsCorrelationID(useMessageIDAsCorrelationID);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setPriority", "code": "    public void setPriority(int priority) {\n        getConfiguration().setPriority(priority);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setPubSubNoLocal", "code": "    public void setPubSubNoLocal(boolean pubSubNoLocal) {\n        getConfiguration().setPubSubNoLocal(pubSubNoLocal);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setReceiveTimeout", "code": "    public void setReceiveTimeout(long receiveTimeout) {\n        getConfiguration().setReceiveTimeout(receiveTimeout);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setRecoveryInterval", "code": "    public void setRecoveryInterval(long recoveryInterval) {\n        getConfiguration().setRecoveryInterval(recoveryInterval);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setServerSessionFactory", "code": "    public void setServerSessionFactory(ServerSessionFactory serverSessionFactory) {\n        getConfiguration().setServerSessionFactory(serverSessionFactory);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setSubscriptionDurable", "code": "    public void setSubscriptionDurable(boolean subscriptionDurable) {\n        getConfiguration().setSubscriptionDurable(subscriptionDurable);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setTaskExecutor", "code": "    public void setTaskExecutor(TaskExecutor taskExecutor) {\n        getConfiguration().setTaskExecutor(taskExecutor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setTimeToLive", "code": "    public void setTimeToLive(long timeToLive) {\n        getConfiguration().setTimeToLive(timeToLive);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setTransacted", "code": "    public void setTransacted(boolean consumerTransacted) {\n        getConfiguration().setTransacted(consumerTransacted);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setTransactionManager", "code": "    public void setTransactionManager(PlatformTransactionManager transactionManager) {\n        getConfiguration().setTransactionManager(transactionManager);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setTransactionName", "code": "    public void setTransactionName(String transactionName) {\n        getConfiguration().setTransactionName(transactionName);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setTransactionTimeout", "code": "    public void setTransactionTimeout(int transactionTimeout) {\n        getConfiguration().setTransactionTimeout(transactionTimeout);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setUseVersion102", "code": "    public void setUseVersion102(boolean useVersion102) {\n        getConfiguration().setUseVersion102(useVersion102);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setJmsOperations", "code": "    public void setJmsOperations(JmsOperations jmsOperations) {\n        getConfiguration().setJmsOperations(jmsOperations);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setDestinationResolver", "code": "    public void setDestinationResolver(DestinationResolver destinationResolver) {\n        getConfiguration().setDestinationResolver(destinationResolver);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRequestor", "code": "    public synchronized Requestor getRequestor() throws Exception {\n        if (requestor == null) {\n            requestor = new Requestor(getConfiguration(), getExecutorService());\n            requestor.start();\n        }\n        return requestor;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [6, 7], [7, 8], [7, 9], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 6], [8, 7], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setRequestor", "code": "    public void setRequestor(Requestor requestor) {\n        this.requestor = requestor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setApplicationContext", "code": "    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n        this.applicationContext = applicationContext;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getQueueBrowseStrategy", "code": "    public QueueBrowseStrategy getQueueBrowseStrategy() {\n        if (queueBrowseStrategy == null) {\n            if (!attemptedToCreateQueueBrowserStrategy) {\n                attemptedToCreateQueueBrowserStrategy = true;\n                try {\n                    queueBrowseStrategy = tryCreateDefaultQueueBrowseStrategy();\n                } catch (Throwable e) {\n                    LOG.warn(\"Could not instantiate the QueueBrowseStrategy are you using Spring 2.0.x\"\n                        + \" by any chance? Error: \" + e, e);\n                }\n            }\n        }\n        return queueBrowseStrategy;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "TRY", "CATCH", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [4, 8], [6, 9], [8, 10], [7, 11], [9, 12], [11, 13], [13, 14], [14, 15], [14, 16], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [8, 4], [9, 6], [10, 8], [11, 7], [12, 9], [13, 11], [14, 13], [15, 14], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setQueueBrowseStrategy", "code": "    public void setQueueBrowseStrategy(QueueBrowseStrategy queueBrowseStrategy) {\n        this.queueBrowseStrategy = queueBrowseStrategy;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        if (requestor != null) {\n            requestor.stop();\n        }\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 0], [2, 1], [3, 2], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createEndpoint", "code": "    @Override\n    protected Endpoint<JmsExchange> createEndpoint(String uri, String remaining, Map parameters)\n        throws Exception {\n\n        boolean pubSubDomain = false;\n        boolean tempDestination = false;\n        if (remaining.startsWith(JmsConfiguration.QUEUE_PREFIX)) {\n            pubSubDomain = false;\n            remaining = removeStartingCharacters(remaining.substring(JmsConfiguration.QUEUE_PREFIX.length()), '/');\n        } else if (remaining.startsWith(JmsConfiguration.TOPIC_PREFIX)) {\n            pubSubDomain = true;\n            remaining = removeStartingCharacters(remaining.substring(JmsConfiguration.TOPIC_PREFIX.length()), '/');\n        } else if (remaining.startsWith(JmsConfiguration.TEMP_QUEUE_PREFIX)) {\n            pubSubDomain = false;\n            tempDestination = true;\n            remaining = removeStartingCharacters(remaining.substring(JmsConfiguration.TEMP_QUEUE_PREFIX.length()), '/');\n        } else if (remaining.startsWith(JmsConfiguration.TEMP_TOPIC_PREFIX)) {\n            pubSubDomain = true;\n            tempDestination = true;\n            remaining = removeStartingCharacters(remaining.substring(JmsConfiguration.TEMP_TOPIC_PREFIX.length()), '/');\n        }\n\n        final String subject = convertPathToActualDestination(remaining, parameters);\n\n        JmsConfiguration newConfiguration = getConfiguration().copy();\n        JmsEndpoint endpoint;\n        if (pubSubDomain) {\n            if (tempDestination) {\n                endpoint = new JmsTemporaryTopicEndpoint(uri, this, subject, newConfiguration);\n            } else {\n                endpoint = new JmsEndpoint(uri, this, subject, pubSubDomain, newConfiguration);\n            }\n        } else {\n            QueueBrowseStrategy strategy = getQueueBrowseStrategy();\n            if (tempDestination) {\n                endpoint = new JmsTemporaryQueueEndpoint(uri, this, subject, newConfiguration, strategy);\n            } else {\n                endpoint = new JmsQueueEndpoint(uri, this, subject, newConfiguration, strategy);\n            }\n        }\n\n        String selector = getAndRemoveParameter(parameters, \"selector\", String.class);\n        if (selector != null) {\n            endpoint.setSelector(selector);\n        }\n        setProperties(endpoint.getConfiguration(), parameters);\n        return endpoint;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "CALL", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [8, 16], [8, 17], [14, 18], [15, 19], [3, 20], [4, 21], [4, 22], [4, 23], [6, 24], [7, 25], [16, 26], [16, 27], [9, 28], [10, 29], [2, 30], [20, 31], [24, 32], [26, 33], [26, 34], [8, 35], [8, 36], [22, 37], [33, 38], [16, 39], [16, 40], [35, 41], [36, 42], [21, 43], [21, 44], [23, 45], [23, 46], [26, 47], [26, 48], [26, 49], [39, 50], [40, 51], [41, 52], [41, 53], [43, 54], [44, 55], [45, 56], [46, 57], [33, 58], [33, 59], [33, 60], [47, 61], [48, 62], [49, 63], [50, 64], [50, 65], [53, 66], [58, 67], [59, 68], [60, 69], [61, 70], [61, 71], [65, 72], [67, 73], [67, 74], [71, 75], [74, 76], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 8], [17, 8], [18, 14], [19, 15], [20, 3], [21, 4], [22, 4], [23, 4], [24, 6], [25, 7], [26, 16], [27, 16], [28, 9], [29, 10], [30, 2], [31, 20], [32, 24], [33, 26], [34, 26], [35, 8], [36, 8], [37, 22], [38, 33], [39, 16], [40, 16], [41, 35], [42, 36], [43, 21], [44, 21], [45, 23], [46, 23], [47, 26], [48, 26], [49, 26], [50, 39], [51, 40], [52, 41], [53, 41], [54, 43], [55, 44], [56, 45], [57, 46], [58, 33], [59, 33], [60, 33], [61, 47], [62, 48], [63, 49], [64, 50], [65, 50], [66, 53], [67, 58], [68, 59], [69, 60], [70, 61], [71, 61], [72, 65], [73, 67], [74, 67], [75, 71], [76, 74], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76]]}, {"function_name": "convertPathToActualDestination", "code": "    protected String convertPathToActualDestination(String path, Map parameters) {\n        return path;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createConfiguration", "code": "    protected JmsConfiguration createConfiguration() {\n        return new JmsConfiguration();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "tryCreateDefaultQueueBrowseStrategy", "code": "    protected static QueueBrowseStrategy tryCreateDefaultQueueBrowseStrategy() {\n        Class<?> type = ObjectHelper.loadClass(DEFAULT_QUEUE_BROWSE_STRATEGY);\n        if (type == null) {\n            LOG.warn(\"Could not load class: \" + DEFAULT_QUEUE_BROWSE_STRATEGY\n                     + \" maybe you are on Spring 2.0.x?\");\n            return null;\n        } else {\n            return (QueueBrowseStrategy)ObjectHelper.newInstance(type);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [2, 7], [5, 8], [1, 9], [4, 10], [9, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 2], [8, 5], [9, 1], [10, 4], [11, 9], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "JmsComponent", "code": "    public JmsComponent() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "JmsComponent", "code": "    public JmsComponent(JmsConfiguration configuration) {\n        this.configuration = configuration;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "JmsComponent", "code": "    public JmsComponent(CamelContext context) {\n        super(context);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.0-3905", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "gnu/regexp/CharIndexedString.java", "language": "java", "name": "gnu.regexp.CharIndexedString", "code": "class CharIndexedString implements CharIndexed, Serializable {\n    private String s;\n    private int anchor;\n    private int len;\n    \n    CharIndexedString(String str, int index) {\n\ts = str;\n\tlen = s.length();\n\tanchor = index;\n    }\n\n    public char charAt(int index) {\n\tint pos = anchor + index;\n\treturn ((pos < len) && (pos >= 0)) ? s.charAt(pos) : OUT_OF_BOUNDS;\n    }\n    \n    public boolean isValid() {\n\treturn (anchor < len);\n    }\n    \n    public boolean move(int index) {\n\treturn ((anchor += index) < len);", "functions": [{"function_name": "charAt", "code": "    public char charAt(int index) {\n\tint pos = anchor + index;\n\treturn ((pos < len) && (pos >= 0)) ? s.charAt(pos) : OUT_OF_BOUNDS;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "COND_EXPR", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [6, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 6], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isValid", "code": "    public boolean isValid() {\n\treturn (anchor < len);", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "move", "code": "    public boolean move(int index) {\n\treturn ((anchor += index) < len);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "CharIndexedString", "code": "    CharIndexedString(String str, int index) {\n\ts = str;\n\tlen = s.length();\n\tanchor = index;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "poi-2.0-5370", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/AxisRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.AxisRecord", "code": "public class AxisRecord\n    extends Record\n{\n    public final static short      sid                             = 0x101d;\n    private  short      field_1_axisType;\n    public final static short       AXIS_TYPE_CATEGORY_OR_X_AXIS   = 0;\n    public final static short       AXIS_TYPE_VALUE_AXIS           = 1;\n    public final static short       AXIS_TYPE_SERIES_AXIS          = 2;\n    private  int        field_2_reserved1;\n    private  int        field_3_reserved2;\n    private  int        field_4_reserved3;\n    private  int        field_5_reserved4;\n\n\n    public AxisRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Axis record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x101d or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public AxisRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a Axis record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x101d or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public AxisRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Axis record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_axisType               = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_reserved1              = LittleEndian.getInt(data, pos + 0x2 + offset);\n        field_3_reserved2              = LittleEndian.getInt(data, pos + 0x6 + offset);\n        field_4_reserved3              = LittleEndian.getInt(data, pos + 0xa + offset);\n        field_5_reserved4              = LittleEndian.getInt(data, pos + 0xe + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AXIS]\\n\");\n        buffer.append(\"    .axisType             = \")\n            .append(\"0x\").append(HexDump.toHex(  getAxisType ()))\n            .append(\" (\").append( getAxisType() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .reserved1            = \")\n            .append(\"0x\").append(HexDump.toHex(  getReserved1 ()))\n            .append(\" (\").append( getReserved1() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .reserved2            = \")\n            .append(\"0x\").append(HexDump.toHex(  getReserved2 ()))\n            .append(\" (\").append( getReserved2() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .reserved3            = \")\n            .append(\"0x\").append(HexDump.toHex(  getReserved3 ()))\n            .append(\" (\").append( getReserved3() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .reserved4            = \")\n            .append(\"0x\").append(HexDump.toHex(  getReserved4 ()))\n            .append(\" (\").append( getReserved4() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/AXIS]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_axisType);\n        LittleEndian.putInt(data, 6 + offset + pos, field_2_reserved1);\n        LittleEndian.putInt(data, 10 + offset + pos, field_3_reserved2);\n        LittleEndian.putInt(data, 14 + offset + pos, field_4_reserved3);\n        LittleEndian.putInt(data, 18 + offset + pos, field_5_reserved4);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2 + 4 + 4 + 4 + 4;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        AxisRecord rec = new AxisRecord();\n    \n        rec.field_1_axisType = field_1_axisType;\n        rec.field_2_reserved1 = field_2_reserved1;\n        rec.field_3_reserved2 = field_3_reserved2;\n        rec.field_4_reserved3 = field_4_reserved3;\n        rec.field_5_reserved4 = field_5_reserved4;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the axis type field for the Axis record.\n     *\n     * @return  One of \n     *        AXIS_TYPE_CATEGORY_OR_X_AXIS\n     *        AXIS_TYPE_VALUE_AXIS\n     *        AXIS_TYPE_SERIES_AXIS\n     */\n    public short getAxisType()\n    {\n        return field_1_axisType;\n    }\n\n    /**\n     * Set the axis type field for the Axis record.\n     *\n     * @param field_1_axisType\n     *        One of \n     *        AXIS_TYPE_CATEGORY_OR_X_AXIS\n     *        AXIS_TYPE_VALUE_AXIS\n     *        AXIS_TYPE_SERIES_AXIS\n     */\n    public void setAxisType(short field_1_axisType)\n    {\n        this.field_1_axisType = field_1_axisType;\n    }\n\n    /**\n     * Get the reserved1 field for the Axis record.\n     */\n    public int getReserved1()\n    {\n        return field_2_reserved1;\n    }\n\n    /**\n     * Set the reserved1 field for the Axis record.\n     */\n    public void setReserved1(int field_2_reserved1)\n    {\n        this.field_2_reserved1 = field_2_reserved1;\n    }\n\n    /**\n     * Get the reserved2 field for the Axis record.\n     */\n    public int getReserved2()\n    {\n        return field_3_reserved2;\n    }\n\n    /**\n     * Set the reserved2 field for the Axis record.\n     */\n    public void setReserved2(int field_3_reserved2)\n    {\n        this.field_3_reserved2 = field_3_reserved2;\n    }\n\n    /**\n     * Get the reserved3 field for the Axis record.\n     */\n    public int getReserved3()\n    {\n        return field_4_reserved3;\n    }\n\n    /**\n     * Set the reserved3 field for the Axis record.\n     */\n    public void setReserved3(int field_4_reserved3)\n    {\n        this.field_4_reserved3 = field_4_reserved3;\n    }\n\n    /**\n     * Get the reserved4 field for the Axis record.\n     */\n    public int getReserved4()\n    {\n        return field_5_reserved4;\n    }\n\n    /**\n     * Set the reserved4 field for the Axis record.\n     */\n    public void setReserved4(int field_5_reserved4)\n    {\n        this.field_5_reserved4 = field_5_reserved4;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Axis record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_axisType               = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_reserved1              = LittleEndian.getInt(data, pos + 0x2 + offset);\n        field_3_reserved2              = LittleEndian.getInt(data, pos + 0x6 + offset);\n        field_4_reserved3              = LittleEndian.getInt(data, pos + 0xa + offset);\n        field_5_reserved4              = LittleEndian.getInt(data, pos + 0xe + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [1, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [21, 26], [22, 27], [23, 28], [24, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 1], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [26, 21], [27, 22], [28, 23], [29, 24], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[AXIS]\\n\");\n        buffer.append(\"    .axisType             = \")\n            .append(\"0x\").append(HexDump.toHex(  getAxisType ()))\n            .append(\" (\").append( getAxisType() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .reserved1            = \")\n            .append(\"0x\").append(HexDump.toHex(  getReserved1 ()))\n            .append(\" (\").append( getReserved1() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .reserved2            = \")\n            .append(\"0x\").append(HexDump.toHex(  getReserved2 ()))\n            .append(\" (\").append( getReserved2() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .reserved3            = \")\n            .append(\"0x\").append(HexDump.toHex(  getReserved3 ()))\n            .append(\" (\").append( getReserved3() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .reserved4            = \")\n            .append(\"0x\").append(HexDump.toHex(  getReserved4 ()))\n            .append(\" (\").append( getReserved4() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/AXIS]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [4, 16], [5, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [7, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 30], [9, 31], [10, 32], [10, 33], [10, 34], [10, 35], [10, 36], [10, 37], [11, 38], [12, 39], [12, 40], [12, 41], [12, 42], [12, 43], [12, 44], [13, 45], [14, 46], [14, 47], [14, 48], [14, 49], [14, 50], [14, 51], [15, 52], [2, 53], [17, 54], [19, 55], [20, 56], [21, 57], [22, 58], [23, 59], [24, 60], [26, 61], [27, 62], [28, 63], [29, 64], [30, 65], [31, 66], [33, 67], [34, 68], [35, 69], [36, 70], [37, 71], [38, 72], [40, 73], [41, 74], [42, 75], [43, 76], [44, 77], [45, 78], [47, 79], [48, 80], [49, 81], [50, 82], [51, 83], [58, 84], [64, 85], [70, 86], [76, 87], [82, 88], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 4], [17, 5], [18, 6], [19, 6], [20, 6], [21, 6], [22, 6], [23, 6], [24, 7], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 8], [31, 9], [32, 10], [33, 10], [34, 10], [35, 10], [36, 10], [37, 10], [38, 11], [39, 12], [40, 12], [41, 12], [42, 12], [43, 12], [44, 12], [45, 13], [46, 14], [47, 14], [48, 14], [49, 14], [50, 14], [51, 14], [52, 15], [53, 2], [54, 17], [55, 19], [56, 20], [57, 21], [58, 22], [59, 23], [60, 24], [61, 26], [62, 27], [63, 28], [64, 29], [65, 30], [66, 31], [67, 33], [68, 34], [69, 35], [70, 36], [71, 37], [72, 38], [73, 40], [74, 41], [75, 42], [76, 43], [77, 44], [78, 45], [79, 47], [80, 48], [81, 49], [82, 50], [83, 51], [84, 58], [85, 64], [86, 70], [87, 76], [88, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_axisType);\n        LittleEndian.putInt(data, 6 + offset + pos, field_2_reserved1);\n        LittleEndian.putInt(data, 10 + offset + pos, field_3_reserved2);\n        LittleEndian.putInt(data, 14 + offset + pos, field_4_reserved3);\n        LittleEndian.putInt(data, 18 + offset + pos, field_5_reserved4);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [6, 13], [7, 14], [8, 15], [9, 16], [10, 17], [11, 18], [12, 19], [2, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [11, 26], [18, 27], [19, 28], [21, 29], [22, 30], [23, 31], [24, 32], [25, 33], [26, 34], [26, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 6], [14, 7], [15, 8], [16, 9], [17, 10], [18, 11], [19, 12], [20, 2], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 11], [27, 18], [28, 19], [29, 21], [30, 22], [31, 23], [32, 24], [33, 25], [34, 26], [35, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2 + 4 + 4 + 4 + 4;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        AxisRecord rec = new AxisRecord();\n    \n        rec.field_1_axisType = field_1_axisType;\n        rec.field_2_reserved1 = field_2_reserved1;\n        rec.field_3_reserved2 = field_3_reserved2;\n        rec.field_4_reserved3 = field_4_reserved3;\n        rec.field_5_reserved4 = field_5_reserved4;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getAxisType", "code": "    public short getAxisType()\n    {\n        return field_1_axisType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setAxisType", "code": "    public void setAxisType(short field_1_axisType)\n    {\n        this.field_1_axisType = field_1_axisType;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReserved1", "code": "    public int getReserved1()\n    {\n        return field_2_reserved1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReserved1", "code": "    public void setReserved1(int field_2_reserved1)\n    {\n        this.field_2_reserved1 = field_2_reserved1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReserved2", "code": "    public int getReserved2()\n    {\n        return field_3_reserved2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReserved2", "code": "    public void setReserved2(int field_3_reserved2)\n    {\n        this.field_3_reserved2 = field_3_reserved2;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReserved3", "code": "    public int getReserved3()\n    {\n        return field_4_reserved3;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReserved3", "code": "    public void setReserved3(int field_4_reserved3)\n    {\n        this.field_4_reserved3 = field_4_reserved3;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getReserved4", "code": "    public int getReserved4()\n    {\n        return field_5_reserved4;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setReserved4", "code": "    public void setReserved4(int field_5_reserved4)\n    {\n        this.field_5_reserved4 = field_5_reserved4;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "AxisRecord", "code": "    public AxisRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "AxisRecord", "code": "    public AxisRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "AxisRecord", "code": "    public AxisRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.2-4462", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/syntax/XModeHandler.java", "language": "java", "name": "org.gjt.sp.jedit.syntax.XModeHandler", "code": "public abstract class XModeHandler extends HandlerBase\n{\n\t//{{{ XModeHandler constructor\n\tpublic XModeHandler (String modeName)\n\t{\n\t\tthis.modeName = modeName;\n\t\tmarker = new TokenMarker();\n\t\tmarker.addRuleSet(new ParserRuleSet(modeName,\"MAIN\"));\n\t\tstateStack = new Stack();\n\n\t\t// default value\n\t\tlastNoWordSep = \"_\";\n\t} //}}}\n\n\t//{{{ resolveEntity() method\n\tpublic Object resolveEntity(String publicId, String systemId)\n\t{\n\t\tif(\"xmode.dtd\".equals(systemId))\n\t\t{\n\t\t\t// this will result in a slight speed up, since we\n\t\t\t// don't need to read the DTD anyway, as AElfred is\n\t\t\t// non-validating\n\t\t\treturn new StringReader(\"<!-- -->\");\n\n\t\t\t/* try\n\t\t\t{\n\t\t\t\treturn new BufferedReader(new InputStreamReader(\n\t\t\t\t\tgetClass().getResourceAsStream(\n\t\t\t\t\t\"/org/gjt/sp/jedit/syntax/xmode.dtd\")));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\terror(\"dtd\",e);\n\t\t\t} */\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ attribute() method\n\tpublic void attribute(String aname, String value, boolean isSpecified)\n\t{\n\t\taname = (aname == null) ? null : aname.intern();\n\n\t\tif (aname == \"NAME\")\n\t\t{\n\t\t\tpropName = value;\n\t\t}\n\t\telse if (aname == \"VALUE\")\n\t\t{\n\t\t\tpropValue = value;\n\t\t}\n\t\telse if (aname == \"TYPE\")\n\t\t{\n\t\t\tlastTokenID = Token.stringToToken(value);\n\t\t\tif(lastTokenID == -1)\n\t\t\t\terror(\"token-invalid\",value);\n\t\t}\n\t\telse if (aname == \"AT_LINE_START\")\n\t\t{\n\t\t\tlastAtLineStart = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"AT_WHITESPACE_END\")\n\t\t{\n\t\t\tlastAtWhitespaceEnd = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"AT_WORD_START\")\n\t\t{\n\t\t\tlastAtWordStart = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"NO_LINE_BREAK\")\n\t\t{\n\t\t\tlastNoLineBreak = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"NO_WORD_BREAK\")\n\t\t{\n\t\t\tlastNoWordBreak = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"NO_ESCAPE\")\n\t\t{\n\t\t\tlastNoEscape = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"EXCLUDE_MATCH\")\n\t\t{\n\t\t\tlastExcludeMatch = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"IGNORE_CASE\")\n\t\t{\n\t\t\tlastIgnoreCase = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\ttrue;\n\t\t}\n\t\telse if (aname == \"HIGHLIGHT_DIGITS\")\n\t\t{\n\t\t\tlastHighlightDigits = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"DIGIT_RE\")\n\t\t{\n\t\t\tlastDigitRE = value;\n\t\t}\n\t\telse if (aname == \"NO_WORD_SEP\")\n\t\t{\n\t\t\tif(isSpecified)\n\t\t\t\tlastNoWordSep = value;\n\t\t}\n\t\telse if (aname == \"AT_CHAR\")\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (isSpecified) termChar =\n\t\t\t\t\tInteger.parseInt(value);\n\t\t\t}\n\t\t\tcatch (NumberFormatException e)\n\t\t\t{\n\t\t\t\terror(\"termchar-invalid\",value);\n\t\t\t\ttermChar = -1;\n\t\t\t}\n\t\t}\n\t\telse if (aname == \"ESCAPE\")\n\t\t{\n\t\t\tlastEscape = value;\n\t\t}\n\t\telse if (aname == \"SET\")\n\t\t{\n\t\t\tlastSetName = value;\n\t\t}\n\t\telse if (aname == \"DELEGATE\")\n\t\t{\n\t\t\tString delegateMode, delegateSetName;\n\n\t\t\tif(value != null)\n\t\t\t{\n\t\t\t\tint index = value.indexOf(\"::\");\n\n\t\t\t\tif(index != -1)\n\t\t\t\t{\n\t\t\t\t\tdelegateMode = value.substring(0,index);\n\t\t\t\t\tdelegateSetName = value.substring(index + 2);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdelegateMode = modeName;\n\t\t\t\t\tdelegateSetName = value;\n\t\t\t\t}\n\n\t\t\t\tTokenMarker delegateMarker = getTokenMarker(delegateMode);\n\t\t\t\tif(delegateMarker == null)\n\t\t\t\t\terror(\"delegate-invalid\",value);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlastDelegateSet = delegateMarker\n\t\t\t\t\t\t.getRuleSet(delegateSetName);\n\t\t\t\t\tif(delegateMarker == marker\n\t\t\t\t\t\t&& lastDelegateSet == null)\n\t\t\t\t\t{\n\t\t\t\t\t\t// stupid hack to handle referencing\n\t\t\t\t\t\t// a rule set that is defined later!\n\t\t\t\t\t\tlastDelegateSet = new ParserRuleSet(\n\t\t\t\t\t\t\tdelegateMode,\n\t\t\t\t\t\t\tdelegateSetName);\n\t\t\t\t\t\tlastDelegateSet.setDefault(Token.INVALID);\n\t\t\t\t\t\tmarker.addRuleSet(lastDelegateSet);\n\t\t\t\t\t}\n\t\t\t\t\telse if(lastDelegateSet == null)\n\t\t\t\t\t\terror(\"delegate-invalid\",value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (aname == \"DEFAULT\")\n\t\t{\n\t\t\tlastDefaultID = Token.stringToToken(value);\n\t\t\tif(lastDefaultID == -1)\n\t\t\t{\n\t\t\t\terror(\"token-invalid\",value);\n\t\t\t\tlastDefaultID = Token.NULL;\n\t\t\t}\n\t\t}\n\t\telse if (aname == \"HASH_CHAR\")\n\t\t{\n\t\t\tif(value.length() != 1)\n\t\t\t{\n\t\t\t\terror(\"hash-char-invalid\",value);\n\t\t\t\tlastDefaultID = Token.NULL;\n\t\t\t}\n\t\t\telse\n\t\t\t\tlastHashChar = value.charAt(0);\n\t\t}\n\t} //}}}\n\n\t//{{{ doctypeDecl() method\n\tpublic void doctypeDecl(String name, String publicId,\n\t\tString systemId) throws Exception\n\t{\n\t\tif (\"MODE\".equalsIgnoreCase(name)) return;\n\n\t\terror(\"doctype-invalid\",name);\n\t} //}}}\n\n\t//{{{ charData() method\n\tpublic void charData(char[] c, int off, int len)\n\t{\n\t\tString tag = peekElement();\n\t\tString text = new String(c, off, len);\n\n\t\tif (tag == \"EOL_SPAN\" ||\n\t\t\ttag == \"EOL_SPAN_REGEXP\" ||\n\t\t\ttag == \"MARK_PREVIOUS\" ||\n\t\t\ttag == \"MARK_FOLLOWING\" ||\n\t\t\ttag == \"SEQ\" ||\n\t\t\ttag == \"SEQ_REGEXP\" ||\n\t\t\ttag == \"BEGIN\"\n\t\t)\n\t\t{\n\t\t\tlastStart = text;\n\t\t\tlastStartPosMatch = ((lastAtLineStart ? ParserRule.AT_LINE_START : 0)\n\t\t\t\t| (lastAtWhitespaceEnd ? ParserRule.AT_WHITESPACE_END : 0)\n\t\t\t\t| (lastAtWordStart ? ParserRule.AT_WORD_START : 0));\n\t\t\tlastAtLineStart = false;\n\t\t\tlastAtWordStart = false;\n\t\t\tlastAtWhitespaceEnd = false;\n\t\t}\n\t\telse if (tag == \"END\")\n\t\t{\n\t\t\tlastEnd = text;\n\t\t\tlastEndPosMatch = ((lastAtLineStart ? ParserRule.AT_LINE_START : 0)\n\t\t\t\t| (lastAtWhitespaceEnd ? ParserRule.AT_WHITESPACE_END : 0)\n\t\t\t\t| (lastAtWordStart ? ParserRule.AT_WORD_START : 0));\n\t\t\tlastAtLineStart = false;\n\t\t\tlastAtWordStart = false;\n\t\t\tlastAtWhitespaceEnd = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlastKeyword = text;\n\t\t}\n\t} //}}}\n\n\t//{{{ startElement() method\n\tpublic void startElement (String tag)\n\t{\n\t\ttag = pushElement(tag);\n\n\t\tif (tag == \"WHITESPACE\")\n\t\t{\n\t\t\tLog.log(Log.WARNING,this,modeName + \": WHITESPACE rule \"\n\t\t\t\t+ \"no longer needed\");\n\t\t}\n\t\telse if (tag == \"KEYWORDS\")\n\t\t{\n\t\t\tkeywords = new KeywordMap(rules.getIgnoreCase());\n\t\t}\n\t\telse if (tag == \"RULES\")\n\t\t{\n\t\t\tif(lastSetName == null)\n\t\t\t\tlastSetName = \"MAIN\";\n\t\t\trules = marker.getRuleSet(lastSetName);\n\t\t\tif(rules == null)\n\t\t\t{\n\t\t\t\trules = new ParserRuleSet(modeName,lastSetName);\n\t\t\t\tmarker.addRuleSet(rules);\n\t\t\t}\n\t\t\trules.setIgnoreCase(lastIgnoreCase);\n\t\t\trules.setHighlightDigits(lastHighlightDigits);\n\t\t\tif(lastDigitRE != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\trules.setDigitRegexp(new RE(lastDigitRE,\n\t\t\t\t\t\tlastIgnoreCase\n\t\t\t\t\t\t? RE.REG_ICASE : 0,\n\t\t\t\t\t\tParserRule.RE_SYNTAX_JEDIT));\n\t\t\t\t}\n\t\t\t\tcatch(REException e)\n\t\t\t\t{\n\t\t\t\t\terror(\"regexp\",e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(lastEscape != null)\n\t\t\t\trules.setEscapeRule(ParserRule.createEscapeRule(lastEscape));\n\t\t\trules.setDefault(lastDefaultID);\n\t\t\trules.setNoWordSep(lastNoWordSep);\n\t\t}\n\t} //}}}\n\n\t//{{{ endElement() method\n\tpublic void endElement (String name)\n\t{\n\t\tif (name == null) return;\n\n\t\tString tag = popElement();\n\n\t\tif (name.equals(tag))\n\t\t{\n\t\t\t//{{{ PROPERTY\n\t\t\tif (tag == \"PROPERTY\")\n\t\t\t{\n\t\t\t\tprops.put(propName,propValue);\n\t\t\t} //}}}\n\t\t\t//{{{ PROPS\n\t\t\telse if (tag == \"PROPS\")\n\t\t\t{\n\t\t\t\tif(peekElement().equals(\"RULES\"))\n\t\t\t\t\trules.setProperties(props);\n\t\t\t\telse\n\t\t\t\t\tmodeProps = props;\n\n\t\t\t\tprops = new Hashtable();\n\t\t\t} //}}}\n\t\t\t//{{{ RULES\n\t\t\telse if (tag == \"RULES\")\n\t\t\t{\n\t\t\t\trules.setKeywords(keywords);\n\t\t\t\tkeywords = null;\n\t\t\t\tlastSetName = null;\n\t\t\t\tlastEscape = null;\n\t\t\t\tlastIgnoreCase = true;\n\t\t\t\tlastHighlightDigits = false;\n\t\t\t\tlastDigitRE = null;\n\t\t\t\tlastDefaultID = Token.NULL;\n\t\t\t\tlastNoWordSep = \"_\";\n\t\t\t\trules = null;\n\t\t\t} //}}}\n\t\t\t//{{{ IMPORT\n\t\t\telse if (tag == \"IMPORT\")\n\t\t\t{\n\t\t\t\trules.addRuleSet(lastDelegateSet);\n\t\t\t\tlastDelegateSet = null;\n\t\t\t} //}}}\n\t\t\t//{{{ TERMINATE\n\t\t\telse if (tag == \"TERMINATE\")\n\t\t\t{\n\t\t\t\trules.setTerminateChar(termChar);\n\t\t\t\ttermChar = -1;\n\t\t\t} //}}}\n\t\t\t//{{{ SEQ\n\t\t\telse if (tag == \"SEQ\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"SEQ\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trules.addRule(ParserRule.createSequenceRule(\n\t\t\t\t\tlastStartPosMatch,lastStart,lastDelegateSet,\n\t\t\t\t\tlastTokenID));\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ SEQ_REGEXP\n\t\t\telse if (tag == \"SEQ_REGEXP\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"SEQ_REGEXP\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\trules.addRule(ParserRule.createRegexpSequenceRule(\n\t\t\t\t\t\tlastHashChar,lastStartPosMatch,\n\t\t\t\t\t\tlastStart,lastDelegateSet,lastTokenID,\n\t\t\t\t\t\tlastIgnoreCase));\n\t\t\t\t}\n\t\t\t\tcatch(REException re)\n\t\t\t\t{\n\t\t\t\t\terror(\"regexp\",re);\n\t\t\t\t}\n\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ SPAN\n\t\t\telse if (tag == \"SPAN\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"BEGIN\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif(lastEnd == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"END\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trules.addRule(ParserRule\n\t\t\t\t\t.createSpanRule(\n\t\t\t\t\tlastStartPosMatch,lastStart,\n\t\t\t\t\tlastEndPosMatch,lastEnd,\n\t\t\t\t\tlastDelegateSet,\n\t\t\t\t\tlastTokenID,lastExcludeMatch,\n\t\t\t\t\tlastNoLineBreak,\n\t\t\t\t\tlastNoWordBreak,\n\t\t\t\t\tlastNoEscape));\n\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ SPAN_REGEXP\n\t\t\telse if (tag == \"SPAN_REGEXP\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"BEGIN\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif(lastEnd == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"END\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\trules.addRule(ParserRule\n\t\t\t\t\t\t.createRegexpSpanRule(\n\t\t\t\t\t\tlastHashChar,\n\t\t\t\t\t\tlastStartPosMatch,lastStart,\n\t\t\t\t\t\tlastEndPosMatch,lastEnd,\n\t\t\t\t\t\tlastDelegateSet,\n\t\t\t\t\t\tlastTokenID,\n\t\t\t\t\t\tlastExcludeMatch,\n\t\t\t\t\t\tlastNoLineBreak,\n\t\t\t\t\t\tlastNoWordBreak,\n\t\t\t\t\t\tlastIgnoreCase,\n\t\t\t\t\t\tlastNoEscape));\n\t\t\t\t}\n\t\t\t\tcatch(REException re)\n\t\t\t\t{\n\t\t\t\t\terror(\"regexp\",re);\n\t\t\t\t}\n\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ EOL_SPAN\n\t\t\telse if (tag == \"EOL_SPAN\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"EOL_SPAN\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trules.addRule(ParserRule.createEOLSpanRule(\n\t\t\t\t\tlastStartPosMatch,lastStart,\n\t\t\t\t\tlastDelegateSet,lastTokenID,\n\t\t\t\t\tlastExcludeMatch));\n\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ EOL_SPAN_REGEXP\n\t\t\telse if (tag == \"EOL_SPAN_REGEXP\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"EOL_SPAN_REGEXP\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\trules.addRule(ParserRule.createRegexpEOLSpanRule(\n\t\t\t\t\t\tlastHashChar,lastStartPosMatch,lastStart,\n\t\t\t\t\t\tlastDelegateSet,lastTokenID,\n\t\t\t\t\t\tlastExcludeMatch,lastIgnoreCase));\n\t\t\t\t}\n\t\t\t\tcatch(REException re)\n\t\t\t\t{\n\t\t\t\t\terror(\"regexp\",re);\n\t\t\t\t}\n\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ MARK_FOLLOWING\n\t\t\telse if (tag == \"MARK_FOLLOWING\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"MARK_FOLLOWING\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trules.addRule(ParserRule\n\t\t\t\t\t.createMarkFollowingRule(\n\t\t\t\t\tlastStartPosMatch,lastStart,\n\t\t\t\t\tlastTokenID,lastExcludeMatch));\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ MARK_PREVIOUS\n\t\t\telse if (tag == \"MARK_PREVIOUS\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"MARK_PREVIOUS\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trules.addRule(ParserRule\n\t\t\t\t\t.createMarkPreviousRule(\n\t\t\t\t\tlastStartPosMatch,lastStart,\n\t\t\t\t\tlastTokenID,lastExcludeMatch));\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ Keywords\n\t\t\telse\n\t\t\t{\n\t\t\t\tbyte token = Token.stringToToken(tag);\n\t\t\t\tif(token != -1)\n\t\t\t\t\taddKeyword(lastKeyword,token);\n\t\t\t} //}}}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// can't happen\n\t\t\tthrow new InternalError();\n\t\t}\n\t} //}}}\n\n\t//{{{ startDocument() method\n\tpublic void startDocument()\n\t{\n\t\tprops = new Hashtable();\n\n\t\tpushElement(null);\n\t} //}}}\n\n\t//{{{ endDocument() method\n\tpublic void endDocument()\n\t{\n\t\tParserRuleSet[] rulesets = marker.getRuleSets();\n\t\tfor(int i = 0; i < rulesets.length; i++)\n\t\t{\n\t\t\trulesets[i].resolveImports();\n\t\t}\n\t} //}}}\n\n\t//{{{ getTokenMarker() method\n\tpublic TokenMarker getTokenMarker()\n\t{\n\t\treturn marker;\n\t} //}}}\n\n\t//{{{ getModeProperties() method\n\tpublic Hashtable getModeProperties()\n\t{\n\t\treturn modeProps;\n\t} //}}}\n\n\t//{{{ Protected members\n\n\t//{{{ error() method\n\t/**\n\t * Reports an error.\n\t * You must override this method so that the mode loader can do error\n\t * reporting.\n\t * @param msg The error type\n\t * @param subst A <code>String</code> or a <code>Throwable</code>\n\t * containing specific information\n\t * @since jEdit 4.2pre1\n\t */\n\tprotected abstract void error(String msg, Object subst);\n\t//}}}\n\n\t//{{{ getTokenMarker() method\n\t/**\n\t * Returns the token marker for the given mode.\n\t * You must override this method so that the mode loader can resolve\n\t * delegate targets.\n\t * @param mode The mode name\n\t * @since jEdit 4.2pre1\n\t */\n\tprotected abstract TokenMarker getTokenMarker(String mode);\n\t//}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate String modeName;\n\tprivate TokenMarker marker;\n\tprivate KeywordMap keywords;\n\tprivate Stack stateStack;\n\tprivate String propName;\n\tprivate String propValue;\n\tprivate Hashtable props;\n\tprivate Hashtable modeProps;\n\tprivate String lastStart;\n\tprivate String lastEnd;\n\tprivate String lastKeyword;\n\tprivate String lastSetName;\n\tprivate String lastEscape;\n\tprivate ParserRuleSet lastDelegateSet;\n\tprivate String lastNoWordSep;\n\tprivate ParserRuleSet rules;\n\tprivate byte lastDefaultID = Token.NULL;\n\tprivate byte lastTokenID;\n\tprivate int termChar = -1;\n\tprivate boolean lastNoLineBreak;\n\tprivate boolean lastNoWordBreak;\n\tprivate boolean lastExcludeMatch;\n\tprivate boolean lastIgnoreCase = true;\n\tprivate boolean lastHighlightDigits;\n\tprivate boolean lastAtLineStart;\n\tprivate boolean lastAtWhitespaceEnd;\n\tprivate boolean lastAtWordStart;\n\tprivate boolean lastNoEscape;\n\tprivate int lastStartPosMatch;\n\tprivate int lastEndPosMatch;\n\tprivate String lastDigitRE;\n\tprivate char lastHashChar;\n\t//}}}\n\n\t//{{{ reset() method\n\tprivate void reset()\n\t{\n\t\tlastHashChar = '\\0';\n\t\tlastStartPosMatch = 0;\n\t\tlastStart = null;\n\t\tlastEndPosMatch = 0;\n\t\tlastEnd = null;\n\t\tlastDelegateSet = null;\n\t\tlastTokenID = Token.NULL;\n\t\tlastExcludeMatch = false;\n\t\tlastNoLineBreak = false;\n\t\tlastNoWordBreak = false;\n\t\tlastNoEscape = false;\n\t} //}}}\n\n\t//{{{ addKeyword() method\n\tprivate void addKeyword(String k, byte id)\n\t{\n\t\tif(k == null)\n\t\t{\n\t\t\terror(\"empty-keyword\",null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (keywords == null) return;\n\t\tkeywords.add(k,id);\n\t} //}}}\n\n\t//{{{ pushElement() method\n\tprivate String pushElement(String name)\n\t{\n\t\tname = (name == null) ? null : name.intern();\n\n\t\tstateStack.push(name);\n\n\t\treturn name;\n\t} //}}}\n\n\t//{{{ peekElement() method\n\tprivate String peekElement()\n\t{\n\t\treturn (String) stateStack.peek();\n\t} //}}}\n\n\t//{{{ popElement() method\n\tprivate String popElement()\n\t{\n\t\treturn (String) stateStack.pop();", "functions": [{"function_name": "resolveEntity", "code": "\tpublic Object resolveEntity(String publicId, String systemId)\n\t{\n\t\tif(\"xmode.dtd\".equals(systemId))\n\t\t{\n\t\t\t// this will result in a slight speed up, since we\n\t\t\t// don't need to read the DTD anyway, as AElfred is\n\t\t\t// non-validating\n\t\t\treturn new StringReader(\"<!-- -->\");\n\n\t\t\t/* try\n\t\t\t{\n\t\t\t\treturn new BufferedReader(new InputStreamReader(\n\t\t\t\t\tgetClass().getResourceAsStream(\n\t\t\t\t\t\"/org/gjt/sp/jedit/syntax/xmode.dtd\")));\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\terror(\"dtd\",e);\n\t\t\t} */\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "attribute", "code": "\tpublic void attribute(String aname, String value, boolean isSpecified)\n\t{\n\t\taname = (aname == null) ? null : aname.intern();\n\n\t\tif (aname == \"NAME\")\n\t\t{\n\t\t\tpropName = value;\n\t\t}\n\t\telse if (aname == \"VALUE\")\n\t\t{\n\t\t\tpropValue = value;\n\t\t}\n\t\telse if (aname == \"TYPE\")\n\t\t{\n\t\t\tlastTokenID = Token.stringToToken(value);\n\t\t\tif(lastTokenID == -1)\n\t\t\t\terror(\"token-invalid\",value);\n\t\t}\n\t\telse if (aname == \"AT_LINE_START\")\n\t\t{\n\t\t\tlastAtLineStart = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"AT_WHITESPACE_END\")\n\t\t{\n\t\t\tlastAtWhitespaceEnd = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"AT_WORD_START\")\n\t\t{\n\t\t\tlastAtWordStart = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"NO_LINE_BREAK\")\n\t\t{\n\t\t\tlastNoLineBreak = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"NO_WORD_BREAK\")\n\t\t{\n\t\t\tlastNoWordBreak = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"NO_ESCAPE\")\n\t\t{\n\t\t\tlastNoEscape = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"EXCLUDE_MATCH\")\n\t\t{\n\t\t\tlastExcludeMatch = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"IGNORE_CASE\")\n\t\t{\n\t\t\tlastIgnoreCase = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\ttrue;\n\t\t}\n\t\telse if (aname == \"HIGHLIGHT_DIGITS\")\n\t\t{\n\t\t\tlastHighlightDigits = (isSpecified) ? (value.equals(\"TRUE\")) :\n\t\t\t\tfalse;\n\t\t}\n\t\telse if (aname == \"DIGIT_RE\")\n\t\t{\n\t\t\tlastDigitRE = value;\n\t\t}\n\t\telse if (aname == \"NO_WORD_SEP\")\n\t\t{\n\t\t\tif(isSpecified)\n\t\t\t\tlastNoWordSep = value;\n\t\t}\n\t\telse if (aname == \"AT_CHAR\")\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (isSpecified) termChar =\n\t\t\t\t\tInteger.parseInt(value);\n\t\t\t}\n\t\t\tcatch (NumberFormatException e)\n\t\t\t{\n\t\t\t\terror(\"termchar-invalid\",value);\n\t\t\t\ttermChar = -1;\n\t\t\t}\n\t\t}\n\t\telse if (aname == \"ESCAPE\")\n\t\t{\n\t\t\tlastEscape = value;\n\t\t}\n\t\telse if (aname == \"SET\")\n\t\t{\n\t\t\tlastSetName = value;\n\t\t}\n\t\telse if (aname == \"DELEGATE\")\n\t\t{\n\t\t\tString delegateMode, delegateSetName;\n\n\t\t\tif(value != null)\n\t\t\t{\n\t\t\t\tint index = value.indexOf(\"::\");\n\n\t\t\t\tif(index != -1)\n\t\t\t\t{\n\t\t\t\t\tdelegateMode = value.substring(0,index);\n\t\t\t\t\tdelegateSetName = value.substring(index + 2);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdelegateMode = modeName;\n\t\t\t\t\tdelegateSetName = value;\n\t\t\t\t}\n\n\t\t\t\tTokenMarker delegateMarker = getTokenMarker(delegateMode);\n\t\t\t\tif(delegateMarker == null)\n\t\t\t\t\terror(\"delegate-invalid\",value);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlastDelegateSet = delegateMarker\n\t\t\t\t\t\t.getRuleSet(delegateSetName);\n\t\t\t\t\tif(delegateMarker == marker\n\t\t\t\t\t\t&& lastDelegateSet == null)\n\t\t\t\t\t{\n\t\t\t\t\t\t// stupid hack to handle referencing\n\t\t\t\t\t\t// a rule set that is defined later!\n\t\t\t\t\t\tlastDelegateSet = new ParserRuleSet(\n\t\t\t\t\t\t\tdelegateMode,\n\t\t\t\t\t\t\tdelegateSetName);\n\t\t\t\t\t\tlastDelegateSet.setDefault(Token.INVALID);\n\t\t\t\t\t\tmarker.addRuleSet(lastDelegateSet);\n\t\t\t\t\t}\n\t\t\t\t\telse if(lastDelegateSet == null)\n\t\t\t\t\t\terror(\"delegate-invalid\",value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (aname == \"DEFAULT\")\n\t\t{\n\t\t\tlastDefaultID = Token.stringToToken(value);\n\t\t\tif(lastDefaultID == -1)\n\t\t\t{\n\t\t\t\terror(\"token-invalid\",value);\n\t\t\t\tlastDefaultID = Token.NULL;\n\t\t\t}\n\t\t}\n\t\telse if (aname == \"HASH_CHAR\")\n\t\t{\n\t\t\tif(value.length() != 1)\n\t\t\t{\n\t\t\t\terror(\"hash-char-invalid\",value);\n\t\t\t\tlastDefaultID = Token.NULL;\n\t\t\t}\n\t\t\telse\n\t\t\t\tlastHashChar = value.charAt(0);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CATCH", "IF", "ASSIGN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "IF", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [0, 7], [5, 8], [5, 9], [6, 10], [7, 11], [8, 12], [8, 13], [9, 14], [1, 15], [11, 16], [11, 17], [11, 18], [12, 19], [12, 20], [8, 21], [13, 22], [5, 23], [18, 24], [19, 25], [19, 26], [20, 27], [21, 28], [8, 29], [25, 30], [25, 31], [26, 32], [12, 33], [21, 34], [28, 35], [29, 36], [30, 37], [30, 38], [31, 39], [19, 40], [33, 41], [34, 42], [37, 43], [37, 44], [38, 45], [25, 46], [40, 47], [41, 48], [41, 49], [43, 50], [43, 51], [44, 52], [30, 53], [46, 54], [47, 55], [47, 56], [49, 57], [50, 58], [50, 59], [51, 60], [37, 61], [53, 62], [54, 63], [54, 64], [56, 65], [58, 66], [58, 67], [59, 68], [43, 69], [61, 70], [62, 71], [62, 72], [64, 73], [66, 74], [66, 75], [67, 76], [50, 77], [69, 78], [70, 79], [70, 80], [72, 81], [74, 82], [74, 83], [75, 84], [58, 85], [77, 86], [78, 87], [78, 88], [80, 89], [82, 90], [82, 91], [83, 92], [66, 93], [85, 94], [86, 95], [86, 96], [88, 97], [90, 98], [90, 99], [82, 100], [91, 101], [74, 102], [93, 103], [94, 104], [94, 105], [96, 106], [98, 107], [98, 108], [90, 109], [99, 110], [103, 111], [103, 112], [105, 113], [107, 114], [107, 115], [108, 116], [109, 117], [109, 118], [100, 119], [112, 120], [114, 121], [114, 122], [115, 123], [98, 124], [121, 125], [121, 126], [114, 127], [114, 128], [122, 129], [107, 130], [117, 131], [117, 132], [118, 133], [125, 134], [121, 135], [126, 136], [127, 137], [131, 138], [132, 139], [133, 140], [125, 141], [134, 142], [135, 143], [121, 144], [127, 145], [127, 146], [127, 147], [127, 148], [137, 149], [141, 150], [143, 151], [144, 152], [145, 153], [147, 154], [141, 155], [150, 156], [150, 157], [135, 158], [135, 159], [145, 160], [145, 161], [153, 162], [146, 163], [154, 164], [148, 165], [155, 166], [141, 167], [141, 168], [159, 169], [160, 170], [160, 171], [145, 172], [161, 173], [147, 174], [147, 175], [147, 176], [147, 177], [165, 178], [166, 179], [168, 180], [170, 181], [171, 182], [171, 183], [172, 184], [176, 185], [177, 186], [170, 187], [181, 188], [160, 189], [160, 190], [160, 191], [182, 192], [185, 193], [186, 194], [187, 195], [191, 196], [193, 197], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 0], [8, 5], [9, 5], [10, 6], [11, 7], [12, 8], [13, 8], [14, 9], [15, 1], [16, 11], [17, 11], [18, 11], [19, 12], [20, 12], [21, 8], [22, 13], [23, 5], [24, 18], [25, 19], [26, 19], [27, 20], [28, 21], [29, 8], [30, 25], [31, 25], [32, 26], [33, 12], [34, 21], [35, 28], [36, 29], [37, 30], [38, 30], [39, 31], [40, 19], [41, 33], [42, 34], [43, 37], [44, 37], [45, 38], [46, 25], [47, 40], [48, 41], [49, 41], [50, 43], [51, 43], [52, 44], [53, 30], [54, 46], [55, 47], [56, 47], [57, 49], [58, 50], [59, 50], [60, 51], [61, 37], [62, 53], [63, 54], [64, 54], [65, 56], [66, 58], [67, 58], [68, 59], [69, 43], [70, 61], [71, 62], [72, 62], [73, 64], [74, 66], [75, 66], [76, 67], [77, 50], [78, 69], [79, 70], [80, 70], [81, 72], [82, 74], [83, 74], [84, 75], [85, 58], [86, 77], [87, 78], [88, 78], [89, 80], [90, 82], [91, 82], [92, 83], [93, 66], [94, 85], [95, 86], [96, 86], [97, 88], [98, 90], [99, 90], [100, 82], [101, 91], [102, 74], [103, 93], [104, 94], [105, 94], [106, 96], [107, 98], [108, 98], [109, 90], [110, 99], [111, 103], [112, 103], [113, 105], [114, 107], [115, 107], [116, 108], [117, 109], [118, 109], [119, 100], [120, 112], [121, 114], [122, 114], [123, 115], [124, 98], [125, 121], [126, 121], [127, 114], [128, 114], [129, 122], [130, 107], [131, 117], [132, 117], [133, 118], [134, 125], [135, 121], [136, 126], [137, 127], [138, 131], [139, 132], [140, 133], [141, 125], [142, 134], [143, 135], [144, 121], [145, 127], [146, 127], [147, 127], [148, 127], [149, 137], [150, 141], [151, 143], [152, 144], [153, 145], [154, 147], [155, 141], [156, 150], [157, 150], [158, 135], [159, 135], [160, 145], [161, 145], [162, 153], [163, 146], [164, 154], [165, 148], [166, 155], [167, 141], [168, 141], [169, 159], [170, 160], [171, 160], [172, 145], [173, 161], [174, 147], [175, 147], [176, 147], [177, 147], [178, 165], [179, 166], [180, 168], [181, 170], [182, 171], [183, 171], [184, 172], [185, 176], [186, 177], [187, 170], [188, 181], [189, 160], [190, 160], [191, 160], [192, 182], [193, 185], [194, 186], [195, 187], [196, 191], [197, 193], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197]]}, {"function_name": "doctypeDecl", "code": "\tpublic void doctypeDecl(String name, String publicId,\n\t\tString systemId) throws Exception\n\t{\n\t\tif (\"MODE\".equalsIgnoreCase(name)) return;\n\n\t\terror(\"doctype-invalid\",name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "charData", "code": "\tpublic void charData(char[] c, int off, int len)\n\t{\n\t\tString tag = peekElement();\n\t\tString text = new String(c, off, len);\n\n\t\tif (tag == \"EOL_SPAN\" ||\n\t\t\ttag == \"EOL_SPAN_REGEXP\" ||\n\t\t\ttag == \"MARK_PREVIOUS\" ||\n\t\t\ttag == \"MARK_FOLLOWING\" ||\n\t\t\ttag == \"SEQ\" ||\n\t\t\ttag == \"SEQ_REGEXP\" ||\n\t\t\ttag == \"BEGIN\"\n\t\t)\n\t\t{\n\t\t\tlastStart = text;\n\t\t\tlastStartPosMatch = ((lastAtLineStart ? ParserRule.AT_LINE_START : 0)\n\t\t\t\t| (lastAtWhitespaceEnd ? ParserRule.AT_WHITESPACE_END : 0)\n\t\t\t\t| (lastAtWordStart ? ParserRule.AT_WORD_START : 0));\n\t\t\tlastAtLineStart = false;\n\t\t\tlastAtWordStart = false;\n\t\t\tlastAtWhitespaceEnd = false;\n\t\t}\n\t\telse if (tag == \"END\")\n\t\t{\n\t\t\tlastEnd = text;\n\t\t\tlastEndPosMatch = ((lastAtLineStart ? ParserRule.AT_LINE_START : 0)\n\t\t\t\t| (lastAtWhitespaceEnd ? ParserRule.AT_WHITESPACE_END : 0)\n\t\t\t\t| (lastAtWordStart ? ParserRule.AT_WORD_START : 0));\n\t\t\tlastAtLineStart = false;\n\t\t\tlastAtWordStart = false;\n\t\t\tlastAtWhitespaceEnd = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlastKeyword = text;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [8, 11], [2, 12], [3, 13], [9, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [10, 20], [11, 21], [11, 22], [7, 23], [7, 24], [7, 25], [7, 26], [7, 27], [7, 28], [15, 29], [16, 30], [17, 31], [18, 32], [21, 33], [22, 34], [22, 35], [24, 36], [25, 37], [26, 38], [27, 39], [32, 40], [32, 41], [34, 42], [35, 43], [35, 44], [39, 45], [39, 46], [40, 47], [41, 48], [41, 49], [43, 50], [44, 51], [44, 52], [45, 53], [46, 54], [46, 55], [48, 56], [49, 57], [51, 58], [52, 59], [52, 60], [54, 61], [55, 62], [59, 63], [60, 64], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 8], [12, 2], [13, 3], [14, 9], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 10], [21, 11], [22, 11], [23, 7], [24, 7], [25, 7], [26, 7], [27, 7], [28, 7], [29, 15], [30, 16], [31, 17], [32, 18], [33, 21], [34, 22], [35, 22], [36, 24], [37, 25], [38, 26], [39, 27], [40, 32], [41, 32], [42, 34], [43, 35], [44, 35], [45, 39], [46, 39], [47, 40], [48, 41], [49, 41], [50, 43], [51, 44], [52, 44], [53, 45], [54, 46], [55, 46], [56, 48], [57, 49], [58, 51], [59, 52], [60, 52], [61, 54], [62, 55], [63, 59], [64, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64]]}, {"function_name": "startElement", "code": "\tpublic void startElement (String tag)\n\t{\n\t\ttag = pushElement(tag);\n\n\t\tif (tag == \"WHITESPACE\")\n\t\t{\n\t\t\tLog.log(Log.WARNING,this,modeName + \": WHITESPACE rule \"\n\t\t\t\t+ \"no longer needed\");\n\t\t}\n\t\telse if (tag == \"KEYWORDS\")\n\t\t{\n\t\t\tkeywords = new KeywordMap(rules.getIgnoreCase());\n\t\t}\n\t\telse if (tag == \"RULES\")\n\t\t{\n\t\t\tif(lastSetName == null)\n\t\t\t\tlastSetName = \"MAIN\";\n\t\t\trules = marker.getRuleSet(lastSetName);\n\t\t\tif(rules == null)\n\t\t\t{\n\t\t\t\trules = new ParserRuleSet(modeName,lastSetName);\n\t\t\t\tmarker.addRuleSet(rules);\n\t\t\t}\n\t\t\trules.setIgnoreCase(lastIgnoreCase);\n\t\t\trules.setHighlightDigits(lastHighlightDigits);\n\t\t\tif(lastDigitRE != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\trules.setDigitRegexp(new RE(lastDigitRE,\n\t\t\t\t\t\tlastIgnoreCase\n\t\t\t\t\t\t? RE.REG_ICASE : 0,\n\t\t\t\t\t\tParserRule.RE_SYNTAX_JEDIT));\n\t\t\t\t}\n\t\t\t\tcatch(REException e)\n\t\t\t\t{\n\t\t\t\t\terror(\"regexp\",e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(lastEscape != null)\n\t\t\t\trules.setEscapeRule(ParserRule.createEscapeRule(lastEscape));\n\t\t\trules.setDefault(lastDefaultID);\n\t\t\trules.setNoWordSep(lastNoWordSep);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "IF", "IF", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [0, 5], [3, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [1, 12], [6, 13], [6, 14], [6, 15], [6, 16], [10, 17], [3, 18], [12, 19], [6, 20], [6, 21], [13, 22], [14, 23], [6, 24], [6, 25], [15, 26], [6, 27], [16, 28], [18, 29], [19, 30], [19, 31], [13, 32], [22, 33], [14, 34], [23, 35], [26, 36], [27, 37], [16, 38], [28, 39], [29, 40], [31, 41], [32, 42], [34, 43], [15, 44], [15, 45], [38, 46], [34, 47], [45, 48], [43, 49], [47, 50], [49, 51], [50, 52], [52, 53], [1, 0], [2, 0], [3, 1], [4, 1], [5, 0], [6, 3], [7, 3], [8, 4], [9, 5], [10, 6], [11, 7], [12, 1], [13, 6], [14, 6], [15, 6], [16, 6], [17, 10], [18, 3], [19, 12], [20, 6], [21, 6], [22, 13], [23, 14], [24, 6], [25, 6], [26, 15], [27, 6], [28, 16], [29, 18], [30, 19], [31, 19], [32, 13], [33, 22], [34, 14], [35, 23], [36, 26], [37, 27], [38, 16], [39, 28], [40, 29], [41, 31], [42, 32], [43, 34], [44, 15], [45, 15], [46, 38], [47, 34], [48, 45], [49, 43], [50, 47], [51, 49], [52, 50], [53, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "endElement", "code": "\tpublic void endElement (String name)\n\t{\n\t\tif (name == null) return;\n\n\t\tString tag = popElement();\n\n\t\tif (name.equals(tag))\n\t\t{\n\t\t\t//{{{ PROPERTY\n\t\t\tif (tag == \"PROPERTY\")\n\t\t\t{\n\t\t\t\tprops.put(propName,propValue);\n\t\t\t} //}}}\n\t\t\t//{{{ PROPS\n\t\t\telse if (tag == \"PROPS\")\n\t\t\t{\n\t\t\t\tif(peekElement().equals(\"RULES\"))\n\t\t\t\t\trules.setProperties(props);\n\t\t\t\telse\n\t\t\t\t\tmodeProps = props;\n\n\t\t\t\tprops = new Hashtable();\n\t\t\t} //}}}\n\t\t\t//{{{ RULES\n\t\t\telse if (tag == \"RULES\")\n\t\t\t{\n\t\t\t\trules.setKeywords(keywords);\n\t\t\t\tkeywords = null;\n\t\t\t\tlastSetName = null;\n\t\t\t\tlastEscape = null;\n\t\t\t\tlastIgnoreCase = true;\n\t\t\t\tlastHighlightDigits = false;\n\t\t\t\tlastDigitRE = null;\n\t\t\t\tlastDefaultID = Token.NULL;\n\t\t\t\tlastNoWordSep = \"_\";\n\t\t\t\trules = null;\n\t\t\t} //}}}\n\t\t\t//{{{ IMPORT\n\t\t\telse if (tag == \"IMPORT\")\n\t\t\t{\n\t\t\t\trules.addRuleSet(lastDelegateSet);\n\t\t\t\tlastDelegateSet = null;\n\t\t\t} //}}}\n\t\t\t//{{{ TERMINATE\n\t\t\telse if (tag == \"TERMINATE\")\n\t\t\t{\n\t\t\t\trules.setTerminateChar(termChar);\n\t\t\t\ttermChar = -1;\n\t\t\t} //}}}\n\t\t\t//{{{ SEQ\n\t\t\telse if (tag == \"SEQ\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"SEQ\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trules.addRule(ParserRule.createSequenceRule(\n\t\t\t\t\tlastStartPosMatch,lastStart,lastDelegateSet,\n\t\t\t\t\tlastTokenID));\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ SEQ_REGEXP\n\t\t\telse if (tag == \"SEQ_REGEXP\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"SEQ_REGEXP\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\trules.addRule(ParserRule.createRegexpSequenceRule(\n\t\t\t\t\t\tlastHashChar,lastStartPosMatch,\n\t\t\t\t\t\tlastStart,lastDelegateSet,lastTokenID,\n\t\t\t\t\t\tlastIgnoreCase));\n\t\t\t\t}\n\t\t\t\tcatch(REException re)\n\t\t\t\t{\n\t\t\t\t\terror(\"regexp\",re);\n\t\t\t\t}\n\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ SPAN\n\t\t\telse if (tag == \"SPAN\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"BEGIN\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif(lastEnd == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"END\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trules.addRule(ParserRule\n\t\t\t\t\t.createSpanRule(\n\t\t\t\t\tlastStartPosMatch,lastStart,\n\t\t\t\t\tlastEndPosMatch,lastEnd,\n\t\t\t\t\tlastDelegateSet,\n\t\t\t\t\tlastTokenID,lastExcludeMatch,\n\t\t\t\t\tlastNoLineBreak,\n\t\t\t\t\tlastNoWordBreak,\n\t\t\t\t\tlastNoEscape));\n\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ SPAN_REGEXP\n\t\t\telse if (tag == \"SPAN_REGEXP\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"BEGIN\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif(lastEnd == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"END\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\trules.addRule(ParserRule\n\t\t\t\t\t\t.createRegexpSpanRule(\n\t\t\t\t\t\tlastHashChar,\n\t\t\t\t\t\tlastStartPosMatch,lastStart,\n\t\t\t\t\t\tlastEndPosMatch,lastEnd,\n\t\t\t\t\t\tlastDelegateSet,\n\t\t\t\t\t\tlastTokenID,\n\t\t\t\t\t\tlastExcludeMatch,\n\t\t\t\t\t\tlastNoLineBreak,\n\t\t\t\t\t\tlastNoWordBreak,\n\t\t\t\t\t\tlastIgnoreCase,\n\t\t\t\t\t\tlastNoEscape));\n\t\t\t\t}\n\t\t\t\tcatch(REException re)\n\t\t\t\t{\n\t\t\t\t\terror(\"regexp\",re);\n\t\t\t\t}\n\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ EOL_SPAN\n\t\t\telse if (tag == \"EOL_SPAN\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"EOL_SPAN\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trules.addRule(ParserRule.createEOLSpanRule(\n\t\t\t\t\tlastStartPosMatch,lastStart,\n\t\t\t\t\tlastDelegateSet,lastTokenID,\n\t\t\t\t\tlastExcludeMatch));\n\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ EOL_SPAN_REGEXP\n\t\t\telse if (tag == \"EOL_SPAN_REGEXP\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"EOL_SPAN_REGEXP\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\trules.addRule(ParserRule.createRegexpEOLSpanRule(\n\t\t\t\t\t\tlastHashChar,lastStartPosMatch,lastStart,\n\t\t\t\t\t\tlastDelegateSet,lastTokenID,\n\t\t\t\t\t\tlastExcludeMatch,lastIgnoreCase));\n\t\t\t\t}\n\t\t\t\tcatch(REException re)\n\t\t\t\t{\n\t\t\t\t\terror(\"regexp\",re);\n\t\t\t\t}\n\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ MARK_FOLLOWING\n\t\t\telse if (tag == \"MARK_FOLLOWING\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"MARK_FOLLOWING\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trules.addRule(ParserRule\n\t\t\t\t\t.createMarkFollowingRule(\n\t\t\t\t\tlastStartPosMatch,lastStart,\n\t\t\t\t\tlastTokenID,lastExcludeMatch));\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ MARK_PREVIOUS\n\t\t\telse if (tag == \"MARK_PREVIOUS\")\n\t\t\t{\n\t\t\t\tif(lastStart == null)\n\t\t\t\t{\n\t\t\t\t\terror(\"empty-tag\",\"MARK_PREVIOUS\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\trules.addRule(ParserRule\n\t\t\t\t\t.createMarkPreviousRule(\n\t\t\t\t\tlastStartPosMatch,lastStart,\n\t\t\t\t\tlastTokenID,lastExcludeMatch));\n\t\t\t\treset();\n\t\t\t} //}}}\n\t\t\t//{{{ Keywords\n\t\t\telse\n\t\t\t{\n\t\t\t\tbyte token = Token.stringToToken(tag);\n\t\t\t\tif(token != -1)\n\t\t\t\t\taddKeyword(lastKeyword,token);\n\t\t\t} //}}}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// can't happen\n\t\t\tthrow new InternalError();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "THROW_RAISE", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "TRY", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CATCH", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "TRY", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CATCH", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "BINARY_OP", "TRY", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CATCH", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [3, 7], [1, 8], [1, 9], [2, 10], [7, 11], [8, 12], [9, 13], [9, 14], [13, 15], [13, 16], [14, 17], [15, 18], [15, 19], [13, 20], [16, 21], [9, 22], [18, 23], [18, 24], [19, 25], [13, 26], [20, 27], [23, 28], [23, 29], [24, 30], [15, 31], [15, 32], [15, 33], [15, 34], [15, 35], [15, 36], [15, 37], [15, 38], [15, 39], [15, 40], [26, 41], [20, 42], [20, 43], [27, 44], [28, 45], [28, 46], [29, 47], [18, 48], [18, 49], [31, 50], [32, 51], [34, 52], [35, 53], [36, 54], [37, 55], [38, 56], [39, 57], [44, 58], [45, 59], [45, 60], [28, 61], [46, 62], [23, 63], [23, 64], [48, 65], [59, 66], [59, 67], [45, 68], [45, 69], [60, 70], [28, 71], [28, 72], [61, 73], [63, 74], [66, 75], [66, 76], [59, 77], [59, 78], [67, 79], [45, 80], [68, 81], [69, 82], [72, 83], [61, 84], [73, 85], [75, 86], [75, 87], [66, 88], [66, 89], [66, 90], [76, 91], [59, 92], [59, 93], [77, 94], [78, 95], [68, 96], [69, 97], [82, 98], [61, 99], [86, 100], [86, 101], [75, 102], [87, 103], [66, 104], [88, 105], [89, 106], [90, 107], [93, 108], [77, 109], [94, 110], [78, 111], [95, 112], [81, 113], [96, 114], [69, 115], [99, 116], [99, 117], [100, 118], [100, 119], [86, 120], [86, 121], [101, 122], [75, 123], [75, 124], [102, 125], [88, 126], [89, 127], [106, 128], [90, 129], [107, 130], [77, 131], [78, 132], [113, 133], [115, 134], [115, 135], [118, 136], [100, 137], [119, 138], [86, 139], [120, 140], [121, 141], [124, 142], [102, 143], [125, 144], [105, 145], [126, 146], [89, 147], [90, 148], [131, 149], [131, 150], [132, 151], [132, 152], [118, 153], [118, 154], [118, 155], [136, 156], [100, 157], [100, 158], [137, 159], [120, 160], [121, 161], [141, 162], [102, 163], [145, 164], [147, 165], [147, 166], [148, 167], [148, 168], [153, 169], [118, 170], [118, 171], [155, 172], [158, 173], [137, 174], [159, 175], [140, 176], [160, 177], [121, 178], [163, 179], [163, 180], [153, 181], [169, 182], [154, 183], [171, 184], [155, 185], [172, 186], [137, 187], [176, 188], [178, 189], [178, 190], [155, 191], [187, 192], [187, 193], [191, 194], [191, 195], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 3], [8, 1], [9, 1], [10, 2], [11, 7], [12, 8], [13, 9], [14, 9], [15, 13], [16, 13], [17, 14], [18, 15], [19, 15], [20, 13], [21, 16], [22, 9], [23, 18], [24, 18], [25, 19], [26, 13], [27, 20], [28, 23], [29, 23], [30, 24], [31, 15], [32, 15], [33, 15], [34, 15], [35, 15], [36, 15], [37, 15], [38, 15], [39, 15], [40, 15], [41, 26], [42, 20], [43, 20], [44, 27], [45, 28], [46, 28], [47, 29], [48, 18], [49, 18], [50, 31], [51, 32], [52, 34], [53, 35], [54, 36], [55, 37], [56, 38], [57, 39], [58, 44], [59, 45], [60, 45], [61, 28], [62, 46], [63, 23], [64, 23], [65, 48], [66, 59], [67, 59], [68, 45], [69, 45], [70, 60], [71, 28], [72, 28], [73, 61], [74, 63], [75, 66], [76, 66], [77, 59], [78, 59], [79, 67], [80, 45], [81, 68], [82, 69], [83, 72], [84, 61], [85, 73], [86, 75], [87, 75], [88, 66], [89, 66], [90, 66], [91, 76], [92, 59], [93, 59], [94, 77], [95, 78], [96, 68], [97, 69], [98, 82], [99, 61], [100, 86], [101, 86], [102, 75], [103, 87], [104, 66], [105, 88], [106, 89], [107, 90], [108, 93], [109, 77], [110, 94], [111, 78], [112, 95], [113, 81], [114, 96], [115, 69], [116, 99], [117, 99], [118, 100], [119, 100], [120, 86], [121, 86], [122, 101], [123, 75], [124, 75], [125, 102], [126, 88], [127, 89], [128, 106], [129, 90], [130, 107], [131, 77], [132, 78], [133, 113], [134, 115], [135, 115], [136, 118], [137, 100], [138, 119], [139, 86], [140, 120], [141, 121], [142, 124], [143, 102], [144, 125], [145, 105], [146, 126], [147, 89], [148, 90], [149, 131], [150, 131], [151, 132], [152, 132], [153, 118], [154, 118], [155, 118], [156, 136], [157, 100], [158, 100], [159, 137], [160, 120], [161, 121], [162, 141], [163, 102], [164, 145], [165, 147], [166, 147], [167, 148], [168, 148], [169, 153], [170, 118], [171, 118], [172, 155], [173, 158], [174, 137], [175, 159], [176, 140], [177, 160], [178, 121], [179, 163], [180, 163], [181, 153], [182, 169], [183, 154], [184, 171], [185, 155], [186, 172], [187, 137], [188, 176], [189, 178], [190, 178], [191, 155], [192, 187], [193, 187], [194, 191], [195, 191], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195]]}, {"function_name": "startDocument", "code": "\tpublic void startDocument()\n\t{\n\t\tprops = new Hashtable();\n\n\t\tpushElement(null);", "ast_nodes": ["FUNC_DECL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "endDocument", "code": "\tpublic void endDocument()\n\t{\n\t\tParserRuleSet[] rulesets = marker.getRuleSets();\n\t\tfor(int i = 0; i < rulesets.length; i++)\n\t\t{\n\t\t\trulesets[i].resolveImports();", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 5], [1, 6], [1, 0], [2, 0], [3, 1], [4, 2], [5, 1], [6, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getTokenMarker", "code": "\tpublic TokenMarker getTokenMarker()\n\t{\n\t\treturn marker;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getModeProperties", "code": "\tpublic Hashtable getModeProperties()\n\t{\n\t\treturn modeProps;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "error", "code": "\tprotected abstract void error(String msg, Object subst);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTokenMarker", "code": "\tprotected abstract TokenMarker getTokenMarker(String mode);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reset", "code": "\tprivate void reset()\n\t{\n\t\tlastHashChar = '\\0';\n\t\tlastStartPosMatch = 0;\n\t\tlastStart = null;\n\t\tlastEndPosMatch = 0;\n\t\tlastEnd = null;\n\t\tlastDelegateSet = null;\n\t\tlastTokenID = Token.NULL;\n\t\tlastExcludeMatch = false;\n\t\tlastNoLineBreak = false;\n\t\tlastNoWordBreak = false;\n\t\tlastNoEscape = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [2, 13], [3, 14], [4, 15], [6, 16], [7, 17], [8, 18], [9, 19], [10, 20], [11, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 2], [14, 3], [15, 4], [16, 6], [17, 7], [18, 8], [19, 9], [20, 10], [21, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "addKeyword", "code": "\tprivate void addKeyword(String k, byte id)\n\t{\n\t\tif(k == null)\n\t\t{\n\t\t\terror(\"empty-keyword\",null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (keywords == null) return;\n\t\tkeywords.add(k,id);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [7, 9], [2, 10], [8, 11], [2, 12], [12, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 7], [10, 2], [11, 8], [12, 2], [13, 12], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "pushElement", "code": "\tprivate String pushElement(String name)\n\t{\n\t\tname = (name == null) ? null : name.intern();\n\n\t\tstateStack.push(name);\n\n\t\treturn name;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "ASSIGN", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [5, 6], [5, 7], [5, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 5], [7, 5], [8, 5], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "peekElement", "code": "\tprivate String peekElement()\n\t{\n\t\treturn (String) stateStack.peek();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "popElement", "code": "\tprivate String popElement()\n\t{\n\t\treturn (String) stateStack.pop();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "XModeHandler", "code": "\tpublic XModeHandler (String modeName)\n\t{\n\t\tthis.modeName = modeName;\n\t\tmarker = new TokenMarker();\n\t\tmarker.addRuleSet(new ParserRuleSet(modeName,\"MAIN\"));\n\t\tstateStack = new Stack();\n\n\t\t// default value\n\t\tlastNoWordSep = \"_\";", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [5, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 5], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 1}
{"sample_id": "ant-1.5-283", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/Concat.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Concat", "code": "public class Concat extends Task {\n\n\n    /**\n     * The destination of the stream. If <code>null</code>, the system\n     * console is used.\n     */\n    private File destinationFile = null;\n\n    /**\n     * Whether or not the stream should be appended if the destination file \n     * exists.\n     * Defaults to <code>false</code>.\n     */\n    private boolean append = false;\n\n    /**\n     * Stores the input file encoding.\n     */\n    private String encoding = null;\n\n\n    /**\n     * This buffer stores the text within the 'concat' element.\n     */\n    private StringBuffer textBuffer;\n\n    /**\n     * Stores a collection of file sets and/or file lists, used to\n     * select multiple files for concatenation.\n     */\n\n\n    /**\n     * Public, no-argument constructor. Required by Ant.\n     */\n    public Concat() {}\n\n\n    /**\n     * Sets the destination file, or uses the console if not specified.\n     */\n    public void setDestfile(File destinationFile) {\n        this.destinationFile = destinationFile;\n    }\n\n    /**\n     * Sets the behavior when the destination file exists. If set to\n     * <code>true</code> the stream data will be appended to the\n     * existing file, otherwise the existing file will be\n     * overwritten. Defaults to <code>false</code>.\n     */\n    public void setAppend(boolean append) {\n        this.append = append;\n    }\n\n    /**\n     * Sets the encoding for the input files, used when displaying the\n     * data via the console.\n     */\n    public void setEncoding(String encoding) {\n        this.encoding = encoding;\n    }\n\n\n    /**\n     * Set of files to concatenate.\n     */\n    public void addFileset(FileSet set) {\n        fileSets.addElement(set);\n    }\n\n    /**\n     * List of files to concatenate.\n     */\n    public void addFilelist(FileList list) {\n        fileSets.addElement(list);\n    }\n\n    /**\n     * This method adds text which appears in the 'concat' element.\n     */\n    public void addText(String text) {\n        if (textBuffer == null) {\n            textBuffer = new StringBuffer(text.length());\n        }\n\n        textBuffer.append(text);\n    }\n\n    /**\n     * This method performs the concatenation.\n     */\n    public void execute() \n        throws BuildException {\n\n        sanitizeText();\n\n        if (fileSets.size() == 0 && textBuffer == null) {\n            throw new BuildException(\"At least one file \" + \n                                     \"must be provided, or \" + \n                                     \"some text.\");\n        }\n\n        if (fileSets.size() > 0 && textBuffer != null) {\n            throw new BuildException(\"Cannot include inline text \" + \n                                     \"when using filesets.\");\n        }\n\n        boolean savedAppend = append;\n        try {\n            for (Enumeration e = fileSets.elements(); e.hasMoreElements();) {\n                \n                File fileSetBase = null;\n                \n                String[] srcFiles = null;\n                \n                Object next = e.nextElement();\n                \n                if (next instanceof FileSet) {\n                    \n                    FileSet fileSet = (FileSet) next;\n                    \n                    DirectoryScanner scanner = \n                        fileSet.getDirectoryScanner(getProject());\n                    \n                    fileSetBase = fileSet.getDir(getProject());\n                    \n                    srcFiles = scanner.getIncludedFiles();\n                    \n                } else if (next instanceof FileList) {\n                    \n                    FileList fileList = (FileList) next;\n                    \n                    fileSetBase = fileList.getDir(getProject());\n                    \n                    srcFiles = fileList.getFiles(getProject());\n                    \n                }\n\n                if (srcFiles != null) {\n                    catFiles(fileSetBase, srcFiles);\n                } else {\n                    log(\"Warning: Concat received empty fileset.\", \n                        Project.MSG_WARN);\n                }\n            }\n        } finally {\n            append = savedAppend;\n        }\n        \n        catText();\n    }\n\n    /**\n     * Reset state to default.\n     */\n    public void reset() {\n        append = false;\n        destinationFile = null;\n        encoding = null;\n        fileSets = new Vector();\n    }\n\n    /**\n     * This method concatenates a series of files to a single\n     * destination.\n     *\n     * @param base the base directory for the list of file names.\n     *\n     * @param files the names of the files to be concatenated,\n     * relative to the <code>base</code>.\n     */\n    private void catFiles(File base, String[] files) {\n\n        Vector inputFileNames = new Vector();\n        for (int i = 0; i < files.length; i++) {\n\n            File current = new File(base, files[i]);\n\n            if (!current.exists()) {\n                log(\"File \" + current + \" does not exist.\", \n                    Project.MSG_ERR);\n                continue;\n            }\n\n            inputFileNames.addElement(current.getAbsolutePath());\n        }\n\n        final int len = inputFileNames.size();\n        if (len == 0) {\n            log(\"Warning: Could not find any of the files specified \" +\n                \"in concat task.\", Project.MSG_WARN);\n            return;\n        }\n\n        String[] input = new String[len];\n        inputFileNames.copyInto(input);\n\n        if (encoding == null) {\n            OutputStream os = null;\n            InputStream is = null;\n\n            try {\n\n                if (destinationFile == null) {\n                    os = new LogOutputStream(this, Project.MSG_WARN);\n                } else {\n                    os = \n                        new FileOutputStream(destinationFile.getAbsolutePath(),\n                                             append);\n                    \n                    append = true;\n                }\n            \n                for (int i = 0; i < len; i++) {\n\n                    if (destinationFile != null &&\n                        destinationFile.getAbsolutePath().equals(input[i])) {\n                        throw new BuildException(\"Input file \\\"\" \n                            + destinationFile.getName() \n                            + \"\\\" is the same as the output file.\");\n                    }\n\n                    is = new FileInputStream(input[i]);\n                    byte[] buffer = new byte[8192];\n                    while (true) {\n                        int bytesRead = is.read(buffer);\n                            break;\n                        }\n                        \n                        os.write(buffer, 0, bytesRead);\n                    }\n                    os.flush();\n                    is.close();\n                    is = null;\n                \n            } catch (IOException ioex) {\n                throw new BuildException(\"Error while concatenating: \"\n                                         + ioex.getMessage(), ioex);\n            } finally {\n                if (is != null) {\n                    try {\n                        is.close();\n                    } catch (Exception ignore) {}\n                }\n                if (os != null) {\n                    try {\n                        os.close();\n                    } catch (Exception ignore) {}\n                }\n            }\n\n\n            Writer out = null;\n            BufferedReader in = null;\n\n            try {\n                if (destinationFile == null) {\n                    out = new OutputStreamWriter(\n                              new LogOutputStream(this, Project.MSG_WARN));\n                } else {\n                    out = new OutputStreamWriter(\n                              new FileOutputStream(destinationFile\n                                                   .getAbsolutePath(),\n                                                   append),\n                              encoding);\n                    \n                    append = true;\n                }\n\n                for (int i = 0; i < len; i++) {\n                    in = new BufferedReader(\n                            new InputStreamReader(new FileInputStream(input[i]), \n                                encoding));\n\n                    String line;\n                    char[] buffer = new char[4096];\n                    while (true) {\n                        int charsRead = in.read(buffer);\n                            break;\n                        }\n                        \n                        out.write(buffer, 0, charsRead);\n                    }\n                    out.flush();\n                    in.close();\n                    in = null;\n                \n            } catch (IOException ioe) {\n                throw new BuildException(\"Error while concatenating: \" \n                                         + ioe.getMessage(), ioe);\n            } finally {\n                if (in != null) {\n                    try {\n                        in.close();\n                    } catch (Exception ignore) {}\n                }\n                if (out != null) {\n                    try {\n                        out.close();\n                    } catch (Exception ignore) {}\n                }\n            }\n        }\n    }\n\n    /**\n     * This method concatenates the text which was added inside the\n     * 'concat' tags. If the text between the tags consists only of\n     * whitespace characters, it is ignored.\n     */\n    private void catText() {\n\n        if (textBuffer == null) {\n            return;\n        }\n\n        String text = textBuffer.toString();\n\n        text = ProjectHelper.replaceProperties(getProject(), text,\n                                               getProject().getProperties());\n\n        FileWriter writer = null;\n        if (destinationFile != null) {\n            try {\n                writer = new FileWriter(destinationFile.getAbsolutePath(), \n                                        append);\n            } catch (IOException ioe) {\n                throw new BuildException(\"Error creating destination \" + \n                                         \"file.\", ioe);\n            }\n        }\n\n        BufferedReader reader = null;\n        try {\n            reader = new BufferedReader(new StringReader(text));\n\n            String line;\n            while ((line = reader.readLine()) != null) {\n                if (destinationFile == null) {\n                    log(line, Project.MSG_WARN);\n                } else {\n                    writer.write(line);\n                    writer.write(StringUtils.LINE_SEP);\n                    writer.flush();\n                }\n            }\n\n        } catch (IOException ioe) {\n            throw new BuildException(\"Error while concatenating \" + \n                                     \"text.\", ioe);\n        } finally {\n            if (reader != null) {\n                try {\n                    reader.close();\n                } catch (Exception ignore) {}\n            }\n\n            if (writer != null) {\n                try {\n                    writer.close();\n                } catch (Exception ignore) {}\n            }\n        }\n    }\n\n    /**\n     * Treat empty nested text as no text.\n     *\n     * <p>Depending on the XML parser, addText may have been called\n     * for &quot;ignorable whitespace&quot; as well.</p>\n     */\n    private void sanitizeText() {\n        if (textBuffer != null) {\n            if (textBuffer.toString().trim().length() == 0) {\n                textBuffer = null;", "functions": [{"function_name": "setDestfile", "code": "    public void setDestfile(File destinationFile) {\n        this.destinationFile = destinationFile;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setAppend", "code": "    public void setAppend(boolean append) {\n        this.append = append;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setEncoding", "code": "    public void setEncoding(String encoding) {\n        this.encoding = encoding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFileset", "code": "    public void addFileset(FileSet set) {\n        fileSets.addElement(set);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFilelist", "code": "    public void addFilelist(FileList list) {\n        fileSets.addElement(list);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addText", "code": "    public void addText(String text) {\n        if (textBuffer == null) {\n            textBuffer = new StringBuffer(text.length());\n        }\n\n        textBuffer.append(text);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "execute", "code": "    public void execute() \n        throws BuildException {\n\n        sanitizeText();\n\n        if (fileSets.size() == 0 && textBuffer == null) {\n            throw new BuildException(\"At least one file \" + \n                                     \"must be provided, or \" + \n                                     \"some text.\");\n        }\n\n        if (fileSets.size() > 0 && textBuffer != null) {\n            throw new BuildException(\"Cannot include inline text \" + \n                                     \"when using filesets.\");\n        }\n\n        boolean savedAppend = append;\n        try {\n            for (Enumeration e = fileSets.elements(); e.hasMoreElements();) {\n                \n                File fileSetBase = null;\n                \n                String[] srcFiles = null;\n                \n                Object next = e.nextElement();\n                \n                if (next instanceof FileSet) {\n                    \n                    FileSet fileSet = (FileSet) next;\n                    \n                    DirectoryScanner scanner = \n                        fileSet.getDirectoryScanner(getProject());\n                    \n                    fileSetBase = fileSet.getDir(getProject());\n                    \n                    srcFiles = scanner.getIncludedFiles();\n                    \n                } else if (next instanceof FileList) {\n                    \n                    FileList fileList = (FileList) next;\n                    \n                    fileSetBase = fileList.getDir(getProject());\n                    \n                    srcFiles = fileList.getFiles(getProject());\n                    \n                }\n\n                if (srcFiles != null) {\n                    catFiles(fileSetBase, srcFiles);\n                } else {\n                    log(\"Warning: Concat received empty fileset.\", \n                        Project.MSG_WARN);\n                }\n            }\n        } finally {\n            append = savedAppend;\n        }\n        \n        catText();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "IF", "CALL", "LOOP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "IF", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [0, 9], [1, 10], [6, 11], [3, 12], [7, 13], [7, 14], [4, 15], [8, 16], [8, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [12, 23], [13, 24], [14, 25], [14, 26], [15, 27], [16, 28], [17, 29], [17, 30], [18, 31], [19, 32], [19, 33], [6, 34], [23, 35], [27, 36], [31, 37], [32, 38], [19, 39], [19, 40], [20, 41], [21, 42], [22, 43], [35, 44], [35, 45], [36, 46], [36, 47], [18, 48], [18, 49], [32, 50], [19, 51], [19, 52], [47, 53], [47, 54], [48, 55], [32, 56], [32, 57], [51, 58], [52, 59], [39, 60], [56, 61], [57, 62], [59, 63], [60, 64], [61, 65], [62, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 0], [10, 1], [11, 6], [12, 3], [13, 7], [14, 7], [15, 4], [16, 8], [17, 8], [18, 6], [19, 6], [20, 6], [21, 6], [22, 6], [23, 12], [24, 13], [25, 14], [26, 14], [27, 15], [28, 16], [29, 17], [30, 17], [31, 18], [32, 19], [33, 19], [34, 6], [35, 23], [36, 27], [37, 31], [38, 32], [39, 19], [40, 19], [41, 20], [42, 21], [43, 22], [44, 35], [45, 35], [46, 36], [47, 36], [48, 18], [49, 18], [50, 32], [51, 19], [52, 19], [53, 47], [54, 47], [55, 48], [56, 32], [57, 32], [58, 51], [59, 52], [60, 39], [61, 56], [62, 57], [63, 59], [64, 60], [65, 61], [66, 62], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "reset", "code": "    public void reset() {\n        append = false;\n        destinationFile = null;\n        encoding = null;\n        fileSets = new Vector();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "catFiles", "code": "    private void catFiles(File base, String[] files) {\n\n        Vector inputFileNames = new Vector();\n        for (int i = 0; i < files.length; i++) {\n\n            File current = new File(base, files[i]);\n\n            if (!current.exists()) {\n                log(\"File \" + current + \" does not exist.\", \n                    Project.MSG_ERR);\n                continue;\n            }\n\n            inputFileNames.addElement(current.getAbsolutePath());\n        }\n\n        final int len = inputFileNames.size();\n        if (len == 0) {\n            log(\"Warning: Could not find any of the files specified \" +\n                \"in concat task.\", Project.MSG_WARN);\n            return;\n        }\n\n        String[] input = new String[len];\n        inputFileNames.copyInto(input);\n\n        if (encoding == null) {\n            OutputStream os = null;\n            InputStream is = null;\n\n            try {\n\n                if (destinationFile == null) {\n                    os = new LogOutputStream(this, Project.MSG_WARN);\n                } else {\n                    os = \n                        new FileOutputStream(destinationFile.getAbsolutePath(),\n                                             append);\n                    \n                    append = true;\n                }\n            \n                for (int i = 0; i < len; i++) {\n\n                    if (destinationFile != null &&\n                        destinationFile.getAbsolutePath().equals(input[i])) {\n                        throw new BuildException(\"Input file \\\"\" \n                            + destinationFile.getName() \n                            + \"\\\" is the same as the output file.\");\n                    }\n\n                    is = new FileInputStream(input[i]);\n                    byte[] buffer = new byte[8192];\n                    while (true) {\n                        int bytesRead = is.read(buffer);\n                            break;\n                        }\n                        \n                        os.write(buffer, 0, bytesRead);\n                    }\n                    os.flush();\n                    is.close();\n                    is = null;\n                \n            } catch (IOException ioex) {\n                throw new BuildException(\"Error while concatenating: \"\n                                         + ioex.getMessage(), ioex);\n            } finally {\n                if (is != null) {\n                    try {\n                        is.close();\n                    } catch (Exception ignore) {}\n                }\n                if (os != null) {\n                    try {\n                        os.close();\n                    } catch (Exception ignore) {}\n                }\n            }\n\n\n            Writer out = null;\n            BufferedReader in = null;\n\n            try {\n                if (destinationFile == null) {\n                    out = new OutputStreamWriter(\n                              new LogOutputStream(this, Project.MSG_WARN));\n                } else {\n                    out = new OutputStreamWriter(\n                              new FileOutputStream(destinationFile\n                                                   .getAbsolutePath(),\n                                                   append),\n                              encoding);\n                    \n                    append = true;\n                }\n\n                for (int i = 0; i < len; i++) {\n                    in = new BufferedReader(\n                            new InputStreamReader(new FileInputStream(input[i]), \n                                encoding));\n\n                    String line;\n                    char[] buffer = new char[4096];\n                    while (true) {\n                        int charsRead = in.read(buffer);\n                            break;\n                        }\n                        \n                        out.write(buffer, 0, charsRead);\n                    }\n                    out.flush();\n                    in.close();\n                    in = null;\n                \n            } catch (IOException ioe) {\n                throw new BuildException(\"Error while concatenating: \" \n                                         + ioe.getMessage(), ioe);\n            } finally {\n                if (in != null) {\n                    try {\n                        in.close();\n                    } catch (Exception ignore) {}\n                }\n                if (out != null) {\n                    try {\n                        out.close();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "TRY", "VAR_DECL", "VAR_DECL", "TRY", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "CALL", "IF", "IF", "CATCH", "LOOP", "IF", "IF", "IF", "CATCH", "LOOP", "IF", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BREAK_CONTINUE", "CALL", "TRY", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LOOP", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "CATCH", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "CATCH", "CATCH", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BREAK_CONTINUE", "VAR_DECL", "CALL", "THROW_RAISE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [3, 11], [5, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [9, 19], [3, 20], [11, 21], [4, 22], [5, 23], [5, 24], [6, 25], [13, 26], [13, 27], [13, 28], [13, 29], [13, 30], [16, 31], [16, 32], [16, 33], [16, 34], [16, 35], [3, 36], [5, 37], [23, 38], [5, 39], [26, 40], [27, 41], [28, 42], [13, 43], [13, 44], [13, 45], [29, 46], [30, 47], [14, 48], [15, 49], [31, 50], [32, 51], [33, 52], [16, 53], [16, 54], [16, 55], [34, 56], [35, 57], [17, 58], [18, 59], [36, 60], [37, 61], [23, 62], [24, 63], [26, 64], [40, 65], [27, 66], [41, 67], [42, 68], [43, 69], [29, 70], [29, 71], [29, 72], [47, 73], [31, 74], [50, 75], [32, 76], [51, 77], [52, 78], [53, 79], [34, 80], [34, 81], [34, 82], [57, 83], [60, 84], [60, 85], [23, 86], [64, 87], [66, 88], [68, 89], [29, 90], [70, 91], [29, 92], [29, 93], [30, 94], [30, 95], [30, 96], [74, 97], [76, 98], [78, 99], [34, 100], [80, 101], [34, 102], [82, 103], [34, 104], [35, 105], [35, 106], [35, 107], [86, 108], [64, 109], [66, 110], [89, 111], [89, 112], [90, 113], [70, 114], [70, 115], [92, 116], [94, 117], [95, 118], [96, 119], [74, 120], [76, 121], [99, 122], [99, 123], [100, 124], [80, 125], [80, 126], [102, 127], [82, 128], [103, 129], [103, 130], [105, 131], [106, 132], [107, 133], [108, 134], [108, 135], [71, 136], [116, 137], [118, 138], [119, 139], [81, 140], [128, 141], [129, 142], [130, 143], [132, 144], [135, 145], [115, 146], [137, 147], [138, 148], [126, 149], [141, 150], [150, 151], [150, 152], [152, 153], [152, 154], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 3], [12, 5], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 9], [20, 3], [21, 11], [22, 4], [23, 5], [24, 5], [25, 6], [26, 13], [27, 13], [28, 13], [29, 13], [30, 13], [31, 16], [32, 16], [33, 16], [34, 16], [35, 16], [36, 3], [37, 5], [38, 23], [39, 5], [40, 26], [41, 27], [42, 28], [43, 13], [44, 13], [45, 13], [46, 29], [47, 30], [48, 14], [49, 15], [50, 31], [51, 32], [52, 33], [53, 16], [54, 16], [55, 16], [56, 34], [57, 35], [58, 17], [59, 18], [60, 36], [61, 37], [62, 23], [63, 24], [64, 26], [65, 40], [66, 27], [67, 41], [68, 42], [69, 43], [70, 29], [71, 29], [72, 29], [73, 47], [74, 31], [75, 50], [76, 32], [77, 51], [78, 52], [79, 53], [80, 34], [81, 34], [82, 34], [83, 57], [84, 60], [85, 60], [86, 23], [87, 64], [88, 66], [89, 68], [90, 29], [91, 70], [92, 29], [93, 29], [94, 30], [95, 30], [96, 30], [97, 74], [98, 76], [99, 78], [100, 34], [101, 80], [102, 34], [103, 82], [104, 34], [105, 35], [106, 35], [107, 35], [108, 86], [109, 64], [110, 66], [111, 89], [112, 89], [113, 90], [114, 70], [115, 70], [116, 92], [117, 94], [118, 95], [119, 96], [120, 74], [121, 76], [122, 99], [123, 99], [124, 100], [125, 80], [126, 80], [127, 102], [128, 82], [129, 103], [130, 103], [131, 105], [132, 106], [133, 107], [134, 108], [135, 108], [136, 71], [137, 116], [138, 118], [139, 119], [140, 81], [141, 128], [142, 129], [143, 130], [144, 132], [145, 135], [146, 115], [147, 137], [148, 138], [149, 126], [150, 141], [151, 150], [152, 150], [153, 152], [154, 152], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154]]}, {"function_name": "catText", "code": "    private void catText() {\n\n        if (textBuffer == null) {\n            return;\n        }\n\n        String text = textBuffer.toString();\n\n        text = ProjectHelper.replaceProperties(getProject(), text,\n                                               getProject().getProperties());\n\n        FileWriter writer = null;\n        if (destinationFile != null) {\n            try {\n                writer = new FileWriter(destinationFile.getAbsolutePath(), \n                                        append);\n            } catch (IOException ioe) {\n                throw new BuildException(\"Error creating destination \" + \n                                         \"file.\", ioe);\n            }\n        }\n\n        BufferedReader reader = null;\n        try {\n            reader = new BufferedReader(new StringReader(text));\n\n            String line;\n            while ((line = reader.readLine()) != null) {\n                if (destinationFile == null) {\n                    log(line, Project.MSG_WARN);\n                } else {\n                    writer.write(line);\n                    writer.write(StringUtils.LINE_SEP);\n                    writer.flush();\n                }\n            }\n\n        } catch (IOException ioe) {\n            throw new BuildException(\"Error while concatenating \" + \n                                     \"text.\", ioe);\n        } finally {\n            if (reader != null) {\n                try {\n                    reader.close();\n                } catch (Exception ignore) {}\n            }\n\n            if (writer != null) {\n                try {\n                    writer.close();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "CATCH", "LOOP", "VAR_DECL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CATCH", "CALL", "CALL", "CATCH", "CATCH", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [3, 12], [0, 13], [6, 14], [7, 15], [8, 16], [9, 17], [10, 18], [1, 19], [2, 20], [3, 21], [12, 22], [4, 23], [13, 24], [5, 25], [6, 26], [14, 27], [7, 28], [15, 29], [8, 30], [16, 31], [17, 32], [10, 33], [18, 34], [18, 35], [19, 36], [21, 37], [24, 38], [24, 39], [28, 40], [30, 41], [32, 42], [33, 43], [35, 44], [36, 45], [37, 46], [21, 47], [38, 48], [28, 49], [30, 50], [42, 51], [42, 52], [43, 53], [46, 54], [47, 55], [33, 56], [33, 57], [33, 58], [33, 59], [54, 60], [55, 61], [60, 62], [60, 63], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 3], [13, 0], [14, 6], [15, 7], [16, 8], [17, 9], [18, 10], [19, 1], [20, 2], [21, 3], [22, 12], [23, 4], [24, 13], [25, 5], [26, 6], [27, 14], [28, 7], [29, 15], [30, 8], [31, 16], [32, 17], [33, 10], [34, 18], [35, 18], [36, 19], [37, 21], [38, 24], [39, 24], [40, 28], [41, 30], [42, 32], [43, 33], [44, 35], [45, 36], [46, 37], [47, 21], [48, 38], [49, 28], [50, 30], [51, 42], [52, 42], [53, 43], [54, 46], [55, 47], [56, 33], [57, 33], [58, 33], [59, 33], [60, 54], [61, 55], [62, 60], [63, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63]]}, {"function_name": "sanitizeText", "code": "    private void sanitizeText() {\n        if (textBuffer != null) {\n            if (textBuffer.toString().trim().length() == 0) {\n                textBuffer = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [5, 6], [5, 7], [3, 8], [7, 9], [7, 10], [8, 11], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 5], [7, 5], [8, 3], [9, 7], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "Concat", "code": "    public Concat() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "jedit-4.0-3912", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/browser/BrowserView.java", "language": "java", "name": "org.gjt.sp.jedit.browser.BrowserView", "code": "public class BrowserView extends JPanel\n{\n\t//{{{ BrowserView constructor\n\tpublic BrowserView(VFSBrowser browser, final boolean splitHorizontally)\n\t{\n\t\tthis.browser = browser;\n\t\tthis.splitHorizontally = splitHorizontally;\n\n\t\tparentModel = new DefaultListModel();\n\t\tparentDirectories = new JList(parentModel);\n\n\t\tparentDirectories.getSelectionModel().setSelectionMode(\n\t\t\tTreeSelectionModel.SINGLE_TREE_SELECTION);\n\n\t\tparentDirectories.setCellRenderer(new ParentDirectoryRenderer());\n\t\tparentDirectories.setVisibleRowCount(5);\n\t\tparentDirectories.addMouseListener(new MouseHandler());\n\n\t\trootNode = new DefaultMutableTreeNode(null,true);\n\t\tmodel = new DefaultTreeModel(rootNode,true);\n\n\t\ttree = new BrowserJTree(model);\n\t\ttree.setCellRenderer(renderer);\n\t\ttree.setEditable(false);\n\t\ttree.addTreeExpansionListener(new TreeHandler());\n\t\ttree.putClientProperty(\"JTree.lineStyle\", \"Angled\");\n\t\ttree.setRootVisible(false);\n\t\ttree.setShowsRootHandles(true);\n\t\ttree.setVisibleRowCount(12);\n\n\t\tfinal JScrollPane parentScroller = new JScrollPane(parentDirectories);\n\t\tparentScroller.setMinimumSize(new Dimension(0,0));\n\t\tJScrollPane treeScroller = new JScrollPane(tree);\n\t\ttreeScroller.setMinimumSize(new Dimension(0,0));\n\t\tsplitPane = new JSplitPane( \n\t\t\tsplitHorizontally ? JSplitPane.HORIZONTAL_SPLIT : JSplitPane.VERTICAL_SPLIT,\n\t\t\tparentScroller,treeScroller);\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tString prop = splitHorizontally ? \"vfs.browser.horizontalSplitter\" : \"vfs.browser.splitter\";\n\t\t\t\tint loc = jEdit.getIntegerProperty(prop,-1);\n\t\t\t\tif(loc == -1)\n\t\t\t\t\tloc = parentScroller.getPreferredSize().height;\n\n\t\t\t\tsplitPane.setDividerLocation(loc);\n\t\t\t\tparentDirectories.ensureIndexIsVisible(\n\t\t\t\t\tparentDirectories.getModel()\n\t\t\t\t\t.getSize());\n\t\t\t}\n\t\t});\n\n\t\ttmpExpanded = new Hashtable();\n\n\t\tif(browser.isMultipleSelectionEnabled())\n\t\t\ttree.getSelectionModel().setSelectionMode(\n\t\t\t\tTreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);\n\t\telse\n\t\t\ttree.getSelectionModel().setSelectionMode(\n\t\t\t\tTreeSelectionModel.SINGLE_TREE_SELECTION);\n\n\t\tsetLayout(new BorderLayout());\n\n\t\tadd(BorderLayout.CENTER,splitPane);\n\n\t\tpropertiesChanged();\n\t} //}}}\n\n\t//{{{ requestDefaultFocus() method\n\tpublic boolean requestDefaultFocus()\n\t{\n\t\ttree.requestFocus();\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ removeNotify() method\n\tpublic void removeNotify()\n\t{\n\t\tString prop = splitHorizontally ? \"vfs.browser.horizontalSplitter\" : \"vfs.browser.splitter\";\n\t\tjEdit.setIntegerProperty(prop,splitPane.getDividerLocation());\n\n\t\tsuper.removeNotify();\n\t} //}}}\n\n\t//{{{ getSelectedFiles() method\n\tpublic VFS.DirectoryEntry[] getSelectedFiles()\n\t{\n\t\tVector selected = new Vector(tree.getSelectionCount());\n\t\tTreePath[] paths = tree.getSelectionPaths();\n\t\tif(paths == null)\n\t\t\treturn new VFS.DirectoryEntry[0];\n\n\t\tfor(int i = 0; i < paths.length; i++)\n\t\t{\n\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)\n\t\t\t\tpaths[i].getLastPathComponent();\n\t\t\tObject obj = treeNode.getUserObject();\n\t\t\tif(obj instanceof VFS.DirectoryEntry)\n\t\t\t\tselected.addElement(obj);\n\t\t}\n\n\t\tVFS.DirectoryEntry[] retVal = new VFS.DirectoryEntry[selected.size()];\n\t\tselected.copyInto(retVal);\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ selectNone() method\n\tpublic void selectNone()\n\t{\n\t\ttree.setSelectionPaths(new TreePath[0]);\n\t} //}}}\n\n\t//{{{ directoryLoaded() method\n\tpublic void directoryLoaded(DefaultMutableTreeNode node,\n\t\tString path, Vector directory)\n\t{\n\t\tif(node == rootNode)\n\t\t{\n\t\t\tparentModel.removeAllElements();\n\t\t\tString parent = path;\n\n\t\t\tif(parent.length() != 1 && (parent.endsWith(\"/\")\n\t\t\t\t|| parent.endsWith(File.separator)))\n\t\t\t\tparent = parent.substring(0,parent.length() - 1);\n\n\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\tparentModel.insertElementAt(parent,0);\n\t\t\t\tString newParent = MiscUtilities.getParentOfPath(parent);\n\t\t\t\tif(newParent.length() != 1 && (newParent.endsWith(\"/\")\n\t\t\t\t\t|| newParent.endsWith(File.separator)))\n\t\t\t\t\tnewParent = newParent.substring(0,newParent.length() - 1);\n\n\t\t\t\tif(newParent == null || parent.equals(newParent))\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tparent = newParent;\n\t\t\t}\n\n\t\t\tint index = parentModel.getSize() - 1;\n\t\t\tparentDirectories.setSelectedIndex(index);\n\t\t\tparentDirectories.ensureIndexIsVisible(parentModel.getSize() - 1);\n\t\t}\n\n\t\tnode.removeAllChildren();\n\n\t\tVector toExpand = new Vector();\n\n\t\tif(directory != null)\n\t\t{\n\t\t\tfor(int i = 0; i < directory.size(); i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)\n\t\t\t\t\tdirectory.elementAt(i);\n\t\t\t\tboolean allowsChildren = (file.type != VFS.DirectoryEntry.FILE);\n\t\t\t\tDefaultMutableTreeNode newNode = new DefaultMutableTreeNode(file,allowsChildren);\n\t\t\t\tnode.add(newNode);\n\t\t\t\tif(tmpExpanded.get(file.path) != null)\n\t\t\t\t\ttoExpand.addElement(new TreePath(newNode.getPath()));\n\t\t\t}\n\t\t}\n\n\t\t// fire events\n\t\tmodel.reload(node);\n\t\ttree.expandPath(new TreePath(node.getPath()));\n\n\t\t// expand branches that were expanded before\n\t\tfor(int i = 0; i < toExpand.size(); i++)\n\t\t{\n\t\t\tTreePath treePath = (TreePath)toExpand.elementAt(i);\n\t\t\ttree.expandPath(treePath);\n\t\t}\n\n\t\ttimer.stop();\n\t\ttypeSelectBuffer.setLength(0);\n\t} //}}}\n\n\t//{{{ updateFileView() method\n\tpublic void updateFileView()\n\t{\n\t\ttree.repaint();\n\t} //}}}\n\n\t//{{{ loadDirectory() method\n\tpublic void loadDirectory(String path)\n\t{\n\t\t// called by VFSBrowser.setDirectory()\n\t\ttmpExpanded.clear();\n\t\tloadDirectory(rootNode,path,false);\n\t} //}}}\n\n\t//{{{ maybeReloadDirectory() method\n\tpublic void maybeReloadDirectory(String path)\n\t{\n\t\ttmpExpanded.clear();\n\n\t\t// because this method is called for *every* VFS update,\n\t\t// we don't want to scan the tree all the time. So we\n\t\t// use the following algorithm to determine if the path\n\t\t// might be part of the tree:\n\t\t// - if the path starts with the browser's current directory,\n\t\t//   we do the tree scan\n\t\t// - if the browser's directory is 'favorites:' -- we have to\n\t\t//   do the tree scan, as every path can appear under the\n\t\t//   favorites list\n\t\t// - if the browser's directory is 'roots:' and path is on\n\t\t//   the local filesystem, do a tree scan\n\t\tString browserDir = browser.getDirectory();\n\t\tif(browserDir.startsWith(FavoritesVFS.PROTOCOL))\n\t\t\tmaybeReloadDirectory(rootNode,path);\n\t\telse if(browserDir.startsWith(FileRootsVFS.PROTOCOL))\n\t\t{\n\t\t\tif(!MiscUtilities.isURL(path) || MiscUtilities.getProtocolOfURL(path)\n\t\t\t\t.equals(\"file\"))\n\t\t\t\tmaybeReloadDirectory(rootNode,path);\n\t\t}\n\t\telse if(path.startsWith(browserDir))\n\t\t\tmaybeReloadDirectory(rootNode,path);\n\t} //}}}\n\n\t//{{{ getDefaultFocusComponent() method\n\tpublic Component getDefaultFocusComponent()\n\t{\n\t\treturn tree;\n\t} //}}}\n\n\t//{{{ propertiesChanged() method\n\tpublic void propertiesChanged()\n\t{\n\t\tshowIcons = jEdit.getBooleanProperty(\"vfs.browser.showIcons\");\n\t\trenderer.propertiesChanged();\n\n\t\ttree.setRowHeight(renderer.getTreeCellRendererComponent(\n\t\t\ttree,new DefaultMutableTreeNode(\"foo\"),\n\t\t\tfalse,false,false,0,false).getSize().height);\n\n\t\tsplitPane.setBorder(null);\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate VFSBrowser browser;\n\n\tprivate JSplitPane splitPane;\n\tprivate JList parentDirectories;\n\tprivate DefaultListModel parentModel;\n\tprivate JTree tree;\n\tprivate Hashtable tmpExpanded;\n\tprivate DefaultTreeModel model;\n\tprivate DefaultMutableTreeNode rootNode;\n\tprivate BrowserCommandsMenu popup;\n\tprivate boolean showIcons;\n\tprivate boolean splitHorizontally;\n\n\tprivate FileCellRenderer renderer = new FileCellRenderer();\n\n\tprivate StringBuffer typeSelectBuffer = new StringBuffer();\n\tprivate Timer timer = new Timer(0,new ClearTypeSelect());\n\t//}}}\n\n\t//{{{ maybeReloadDirectory() method\n\tprivate boolean maybeReloadDirectory(DefaultMutableTreeNode node, String path)\n\t{\n\t\t// nodes which are not expanded need not be checked\n\t\tif(!tree.isExpanded(new TreePath(node.getPath())))\n\t\t\treturn false;\n\n\t\tif(node == rootNode && path.equals(browser.getDirectory()))\n\t\t{\n\t\t\tloadDirectory(rootNode,path,false);\n\t\t\treturn true;\n\t\t}\n\n\t\tObject userObject = node.getUserObject();\n\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t{\n\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)userObject;\n\n\t\t\t// we don't need to do anything with files!\n\t\t\tif(file.type == VFS.DirectoryEntry.FILE)\n\t\t\t\treturn false;\n\n\t\t\tif(path.equals(file.path))\n\t\t\t{\n\t\t\t\tloadDirectory(node,path,false);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif(node.getChildCount() != 0)\n\t\t{\n\t\t\tEnumeration children = node.children();\n\t\t\twhile(children.hasMoreElements())\n\t\t\t{\n\t\t\t\tDefaultMutableTreeNode child = (DefaultMutableTreeNode)\n\t\t\t\t\tchildren.nextElement();\n\t\t\t\tif(maybeReloadDirectory(child,path))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ loadDirectory() method\n\tprivate void loadDirectory(DefaultMutableTreeNode node, String path,\n\t\tboolean showLoading)\n\t{\n\t\tint rowCount = tree.getRowCount();\n\t\tfor(int i = 0; i < rowCount; i++)\n\t\t{\n\t\t\tTreePath treePath = tree.getPathForRow(i);\n\t\t\tif(tree.isExpanded(treePath))\n\t\t\t{\n\t\t\t\tDefaultMutableTreeNode _node = (DefaultMutableTreeNode)\n\t\t\t\t\ttreePath.getLastPathComponent();\n\t\t\t\tVFS.DirectoryEntry file = ((VFS.DirectoryEntry)\n\t\t\t\t\t_node.getUserObject());\n\n\t\t\t\ttmpExpanded.put(file.path,file.path);\n\t\t\t}\n\t\t}\n\n\t\tif(node == rootNode)\n\t\t{\n\t\t\tparentModel.removeAllElements();\n\t\t\tparentModel.addElement(new LoadingPlaceholder());\n\t\t}\n\n\t\tif(showLoading)\n\t\t{\n\t\t\tnode.removeAllChildren();\n\t\t\tnode.add(new DefaultMutableTreeNode(new LoadingPlaceholder(),false));\n\t\t\tmodel.reload(node);\n\t\t}\n\n\t\tbrowser.loadDirectory(node,path,node == rootNode);\n\t} //}}}\n\n\t//{{{ showFilePopup() method\n\tprivate void showFilePopup(VFS.DirectoryEntry file, Point point)\n\t{\n\t\tpopup = new BrowserCommandsMenu(browser,file);\n\t\tGUIUtilities.showPopupMenu(popup,tree,point.x+1,point.y+1);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ ClearTypeSelect\n\tclass ClearTypeSelect implements ActionListener\n\t{\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\ttypeSelectBuffer.setLength(0);\n\t\t\tbrowser.filesSelected();\n\t\t}\n\t} //}}}\n\n\t//{{{ ParentDirectoryRenderer class\n\tclass ParentDirectoryRenderer extends DefaultListCellRenderer\n\t{\n\t\tFont plainFont, boldFont;\n\n\t\tParentDirectoryRenderer()\n\t\t{\n\t\t\tplainFont = UIManager.getFont(\"Tree.font\");\n\t\t\tboldFont = new Font(plainFont.getName(),Font.BOLD,plainFont.getSize());\n\t\t}\n\n\t\tpublic Component getListCellRendererComponent(\n\t\t\tJList list,\n\t\t\tObject value,\n\t\t\tint index,\n\t\t\tboolean isSelected,\n\t\t\tboolean cellHasFocus)\n\t\t{\n\t\t\tsuper.getListCellRendererComponent(list,value,index,\n\t\t\t\tisSelected,cellHasFocus);\n\n\t\t\tParentDirectoryRenderer.this.setBorder(new EmptyBorder(\n\t\t\t\t1,index * 10 + 1,1,1));\n\n\t\t\tif(value instanceof LoadingPlaceholder)\n\t\t\t{\n\t\t\t\tParentDirectoryRenderer.this.setFont(plainFont);\n\n\t\t\t\tsetIcon(showIcons ? FileCellRenderer.loadingIcon : null);\n\t\t\t\tsetText(jEdit.getProperty(\"vfs.browser.tree.loading\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tParentDirectoryRenderer.this.setFont(boldFont);\n\n\t\t\t\tsetIcon(showIcons ? FileCellRenderer.openDirIcon : null);\n\t\t\t\tsetText(MiscUtilities.getFileName(value.toString()));\n\t\t\t}\n\n\t\t\treturn this;\n\t\t}\n\t} //}}}\n\n\t//{{{ MouseHandler class\n\tclass MouseHandler extends MouseAdapter\n\t{\n\t\tpublic void mouseClicked(MouseEvent evt)\n\t\t{\n\t\t\t// ignore double clicks\n\t\t\tif(evt.getClickCount() == 2)\n\t\t\t\treturn;\n\n\t\t\tint row = parentDirectories.locationToIndex(evt.getPoint());\n\t\t\tif(row != -1)\n\t\t\t{\n\t\t\t\tObject obj = parentModel.getElementAt(row);\n\t\t\t\tif(obj instanceof String)\n\t\t\t\t{\n\t\t\t\t\tbrowser.setDirectory((String)obj);\n\t\t\t\t\trequestDefaultFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ BrowserJTree class\n\tclass BrowserJTree extends JTree\n\t{\n\t\t//{{{ BrowserJTree constructor\n\t\tBrowserJTree(TreeModel model)\n\t\t{\n\t\t\tsuper(model);\n\t\t\tToolTipManager.sharedInstance().registerComponent(this);\n\t\t} //}}}\n\n\t\t//{{{ getToolTipText() method\n\t\tpublic final String getToolTipText(MouseEvent evt)\n\t\t{\n\t\t\tTreePath path = getPathForLocation(evt.getX(), evt.getY());\n\t\t\tif(path != null)\n\t\t\t{\n\t\t\t\tRectangle cellRect = getPathBounds(path);\n\t\t\t\tif(cellRect != null && !cellRectIsVisible(cellRect))\n\t\t\t\t\treturn path.getLastPathComponent().toString();\n\t\t\t}\n\t\t\treturn null;\n\t\t} //}}}\n\n\t\t//{{{ getToolTipLocation() method\n\t\tpublic final Point getToolTipLocation(MouseEvent evt)\n\t\t{\n\t\t\tTreePath path = getPathForLocation(evt.getX(), evt.getY());\n\t\t\tif(path != null)\n\t\t\t{\n\t\t\t\tRectangle cellRect = getPathBounds(path);\n\t\t\t\tif(cellRect != null && !cellRectIsVisible(cellRect))\n\t\t\t\t{\n\t\t\t\t\treturn new Point(cellRect.x + (showIcons ? 14 : - 4),\n\t\t\t\t\t\tcellRect.y);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t} //}}}\n\n\t\t//{{{ processKeyEvent() method\n\t\tprotected void processKeyEvent(KeyEvent evt)\n\t\t{\n\t\t\t// could make things somewhat easier...\n\t\t\t// ... but KeyEventWorkaround 'output contract' will\n\t\t\t// change in 4.1, so not a good idea\n\t\t\t//evt = KeyEventWorkaround.processKeyEvent(evt);\n\t\t\t//if(evt == null)\n\t\t\t//\treturn;\n\n\t\t\tif(evt.getID() == KeyEvent.KEY_PRESSED)\n\t\t\t{\n\t\t\t\tswitch(evt.getKeyCode())\n\t\t\t\t{\n\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\tbrowser.filesActivated(evt.isShiftDown(),false);\n\t\t\t\t\tevt.consume();\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.VK_LEFT:\n\t\t\t\t\tString directory = browser.getDirectory();\n\t\t\t\t\tbrowser.setDirectory(MiscUtilities\n\t\t\t\t\t\t.getParentOfPath(directory));\n\t\t\t\t\tevt.consume();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(evt.getID() == KeyEvent.KEY_TYPED)\n\t\t\t{\n\t\t\t\tif(evt.isControlDown() || evt.isAltDown()\n\t\t\t\t\t|| evt.isMetaDown())\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tswitch(evt.getKeyChar())\n\t\t\t\t{\n\t\t\t\tcase '~':\n\t\t\t\t\tbrowser.setDirectory(System.getProperty(\"user.home\"));\n\t\t\t\t\tbreak;\n\t\t\t\tcase '/':\n\t\t\t\t\tbrowser.rootDirectory();\n\t\t\t\t\tbreak;\n\t\t\t\tcase '-':\n\t\t\t\t\tView view = browser.getView();\n\t\t\t\t\tBuffer buffer = view.getBuffer();\n\t\t\t\t\tbrowser.setDirectory(MiscUtilities.getParentOfPath(\n\t\t\t\t\t\tbuffer.getPath()));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\ttypeSelectBuffer.append(evt.getKeyChar());\n\t\t\t\t\tdoTypeSelect(typeSelectBuffer.toString());\n\n\t\t\t\t\ttimer.stop();\n\t\t\t\t\ttimer.setInitialDelay(750);\n\t\t\t\t\ttimer.setRepeats(false);\n\t\t\t\t\ttimer.start();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(!evt.isConsumed())\n\t\t\t\tsuper.processKeyEvent(evt);\n\t\t} //}}}\n\n\t\t//{{{ processMouseEvent() method\n\t\tprotected void processMouseEvent(MouseEvent evt)\n\t\t{\n\t\t\tToolTipManager ttm = ToolTipManager.sharedInstance();\n\n\t\t\tswitch(evt.getID())\n\t\t\t{\n\t\t\t//{{{ MOUSE_ENTERED...\n\t\t\tcase MouseEvent.MOUSE_ENTERED:\n\t\t\t\ttoolTipInitialDelay = ttm.getInitialDelay();\n\t\t\t\ttoolTipReshowDelay = ttm.getReshowDelay();\n\t\t\t\tttm.setInitialDelay(200);\n\t\t\t\tttm.setReshowDelay(0);\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak; //}}}\n\t\t\t//{{{ MOUSE_EXITED...\n\t\t\tcase MouseEvent.MOUSE_EXITED:\n\t\t\t\tttm.setInitialDelay(toolTipInitialDelay);\n\t\t\t\tttm.setReshowDelay(toolTipReshowDelay);\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak; //}}}\n\t\t\t//{{{ MOUSE_CLICKED...\n\t\t\tcase MouseEvent.MOUSE_CLICKED:\n\t\t\t\tif((evt.getModifiers() & MouseEvent.BUTTON2_MASK) != 0)\n\t\t\t\t{\n\t\t\t\t\tTreePath path = getPathForLocation(evt.getX(),evt.getY());\n\t\t\t\t\tif(path == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(!isPathSelected(path))\n\t\t\t\t\t\tsetSelectionPath(path);\n\n\t\t\t\t\tbrowser.filesActivated(evt.isShiftDown(),true);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0)\n\t\t\t\t{\n\t\t\t\t\tTreePath path = getPathForLocation(evt.getX(),evt.getY());\n\t\t\t\t\tif(path == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(!isPathSelected(path))\n\t\t\t\t\t\tsetSelectionPath(path);\n\n\t\t\t\t\tif(evt.getClickCount() == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tbrowser.filesSelected();\n\t\t\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\t\t}\n\t\t\t\t\tif(evt.getClickCount() == 2)\n\t\t\t\t\t{\n\t\t\t\t\t\t// don't pass double-clicks to tree, otherwise\n\t\t\t\t\t\t// directory nodes will be expanded and we don't\n\t\t\t\t\t\t// want that\n\t\t\t\t\t\tbrowser.filesActivated(evt.isShiftDown(),true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(GUIUtilities.isPopupTrigger(evt))\n\t\t\t\t\t; // do nothing\n\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak; //}}}\n\t\t\t//{{{ MOUSE_PRESSED...\n\t\t\tcase MouseEvent.MOUSE_PRESSED:\n\t\t\t\tif((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0)\n\t\t\t\t{\n\t\t\t\t\tif(popup != null && popup.isVisible())\n\t\t\t\t\t\tpopup.setVisible(false);\n\n\t\t\t\t\tif(evt.getClickCount() == 2)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(GUIUtilities.isPopupTrigger(evt))\n\t\t\t\t{\n\t\t\t\t\tif(popup != null && popup.isVisible())\n\t\t\t\t\t{\n\t\t\t\t\t\tpopup.setVisible(false);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tTreePath path = getPathForLocation(evt.getX(),evt.getY());\n\t\t\t\t\tif(path == null)\n\t\t\t\t\t\tshowFilePopup(null,evt.getPoint());\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tsetSelectionPath(path);\n\t\t\t\t\t\tbrowser.filesSelected();\n\n\t\t\t\t\t\tObject userObject = ((DefaultMutableTreeNode)path\n\t\t\t\t\t\t\t.getLastPathComponent()).getUserObject();\n\t\t\t\t\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)\n\t\t\t\t\t\t\t\tuserObject;\n\t\t\t\t\t\t\tshowFilePopup(file,evt.getPoint());\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tshowFilePopup(null,evt.getPoint());\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak; //}}}\n\t\t\t//{{{ MOUSE_RELEASED...\n\t\t\tcase MouseEvent.MOUSE_RELEASED:\n\t\t\t\tif(evt.getClickCount() != 2)\n\t\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak; //}}}\n\t\t\tdefault:\n\t\t\t\tsuper.processMouseEvent(evt);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate int toolTipInitialDelay = -1;\n\t\tprivate int toolTipReshowDelay = -1;\n\n\t\t//{{{ cellRectIsVisible() method\n\t\tprivate boolean cellRectIsVisible(Rectangle cellRect)\n\t\t{\n\t\t\tRectangle vr = BrowserJTree.this.getVisibleRect();\n\t\t\treturn vr.contains(cellRect.x,cellRect.y) &&\n\t\t\t\tvr.contains(cellRect.x + cellRect.width,\n\t\t\t\tcellRect.y + cellRect.height);\n\t\t} //}}}\n\n\t\t//{{{ doTypeSelect() method\n\t\tprivate void doTypeSelect(String str)\n\t\t{\n\t\t\tif(getSelectionCount() == 0)\n\t\t\t\tdoTypeSelect(str,0,getRowCount());\n\t\t\telse\n\t\t\t{\n\t\t\t\tint start = getMaxSelectionRow();\n\t\t\t\tboolean retVal = doTypeSelect(str,start,getRowCount());\n\n\t\t\t\tif(!retVal)\n\t\t\t\t{\n\t\t\t\t\t// scan from selection to end failed, so\n\t\t\t\t\t// scan from start to selection\n\t\t\t\t\tdoTypeSelect(str,0,start);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ doTypeSelect() method\n\t\tprivate boolean doTypeSelect(String str, int start, int end)\n\t\t{\n\t\t\tfor(int i = start; i < end; i++)\n\t\t\t{\n\t\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)\n\t\t\t\t\tgetPathForRow(i).getLastPathComponent();\n\t\t\t\tObject obj = treeNode.getUserObject();\n\t\t\t\tif(obj instanceof VFS.DirectoryEntry)\n\t\t\t\t{\n\t\t\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)obj;\n\t\t\t\t\tif(file.name.regionMatches(true,0,str,0,str.length()))\n\t\t\t\t\t{\n\t\t\t\t\t\tsetSelectionRow(i);\n\t\t\t\t\t\tscrollRowToVisible(i);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t} //}}}\n\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ TreeHandler class\n\tclass TreeHandler implements TreeExpansionListener\n\t{\n\t\t//{{{ treeExpanded() method\n\t\tpublic void treeExpanded(TreeExpansionEvent evt)\n\t\t{\n\t\t\tTreePath path = evt.getPath();\n\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)\n\t\t\t\tpath.getLastPathComponent();\n\t\t\tObject userObject = treeNode.getUserObject();\n\t\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t\t{\n\t\t\t\tloadDirectory(treeNode,((VFS.DirectoryEntry)\n\t\t\t\t\tuserObject).path,true);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ treeCollapsed() method\n\t\tpublic void treeCollapsed(TreeExpansionEvent evt)\n\t\t{\n\t\t\tTreePath path = evt.getPath();\n\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)\n\t\t\t\tpath.getLastPathComponent();\n\t\t\tif(treeNode.getUserObject() instanceof VFS.DirectoryEntry)\n\t\t\t{\n\t\t\t\t// we add the placeholder so that the node has\n\t\t\t\t// 1 child (otherwise the user won't be able to\n\t\t\t\t// expand it again)\n\t\t\t\ttreeNode.removeAllChildren();\n\t\t\t\ttreeNode.add(new DefaultMutableTreeNode(new LoadingPlaceholder(),false));\n\t\t\t\tmodel.reload(treeNode);\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\tstatic class LoadingPlaceholder {}", "functions": [{"function_name": "requestDefaultFocus", "code": "\tpublic boolean requestDefaultFocus()\n\t{\n\t\ttree.requestFocus();\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "removeNotify", "code": "\tpublic void removeNotify()\n\t{\n\t\tString prop = splitHorizontally ? \"vfs.browser.horizontalSplitter\" : \"vfs.browser.splitter\";\n\t\tjEdit.setIntegerProperty(prop,splitPane.getDividerLocation());\n\n\t\tsuper.removeNotify();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 2], [4, 1], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSelectedFiles", "code": "\tpublic VFS.DirectoryEntry[] getSelectedFiles()\n\t{\n\t\tVector selected = new Vector(tree.getSelectionCount());\n\t\tTreePath[] paths = tree.getSelectionPaths();\n\t\tif(paths == null)\n\t\t\treturn new VFS.DirectoryEntry[0];\n\n\t\tfor(int i = 0; i < paths.length; i++)\n\t\t{\n\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)\n\t\t\t\tpaths[i].getLastPathComponent();\n\t\t\tObject obj = treeNode.getUserObject();\n\t\t\tif(obj instanceof VFS.DirectoryEntry)\n\t\t\t\tselected.addElement(obj);\n\t\t}\n\n\t\tVFS.DirectoryEntry[] retVal = new VFS.DirectoryEntry[selected.size()];\n\t\tselected.copyInto(retVal);\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [4, 9], [4, 10], [3, 11], [3, 12], [3, 13], [10, 14], [5, 15], [6, 16], [2, 17], [11, 18], [3, 19], [9, 20], [16, 21], [11, 22], [12, 23], [13, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 4], [10, 4], [11, 3], [12, 3], [13, 3], [14, 10], [15, 5], [16, 6], [17, 2], [18, 11], [19, 3], [20, 9], [21, 16], [22, 11], [23, 12], [24, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "selectNone", "code": "\tpublic void selectNone()\n\t{\n\t\ttree.setSelectionPaths(new TreePath[0]);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "directoryLoaded", "code": "\tpublic void directoryLoaded(DefaultMutableTreeNode node,\n\t\tString path, Vector directory)\n\t{\n\t\tif(node == rootNode)\n\t\t{\n\t\t\tparentModel.removeAllElements();\n\t\t\tString parent = path;\n\n\t\t\tif(parent.length() != 1 && (parent.endsWith(\"/\")\n\t\t\t\t|| parent.endsWith(File.separator)))\n\t\t\t\tparent = parent.substring(0,parent.length() - 1);\n\n\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\tparentModel.insertElementAt(parent,0);\n\t\t\t\tString newParent = MiscUtilities.getParentOfPath(parent);\n\t\t\t\tif(newParent.length() != 1 && (newParent.endsWith(\"/\")\n\t\t\t\t\t|| newParent.endsWith(File.separator)))\n\t\t\t\t\tnewParent = newParent.substring(0,newParent.length() - 1);\n\n\t\t\t\tif(newParent == null || parent.equals(newParent))\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tparent = newParent;\n\t\t\t}\n\n\t\t\tint index = parentModel.getSize() - 1;\n\t\t\tparentDirectories.setSelectedIndex(index);\n\t\t\tparentDirectories.ensureIndexIsVisible(parentModel.getSize() - 1);\n\t\t}\n\n\t\tnode.removeAllChildren();\n\n\t\tVector toExpand = new Vector();\n\n\t\tif(directory != null)\n\t\t{\n\t\t\tfor(int i = 0; i < directory.size(); i++)\n\t\t\t{\n\t\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)\n\t\t\t\t\tdirectory.elementAt(i);\n\t\t\t\tboolean allowsChildren = (file.type != VFS.DirectoryEntry.FILE);\n\t\t\t\tDefaultMutableTreeNode newNode = new DefaultMutableTreeNode(file,allowsChildren);\n\t\t\t\tnode.add(newNode);\n\t\t\t\tif(tmpExpanded.get(file.path) != null)\n\t\t\t\t\ttoExpand.addElement(new TreePath(newNode.getPath()));\n\t\t\t}\n\t\t}\n\n\t\t// fire events\n\t\tmodel.reload(node);\n\t\ttree.expandPath(new TreePath(node.getPath()));\n\n\t\t// expand branches that were expanded before\n\t\tfor(int i = 0; i < toExpand.size(); i++)\n\t\t{\n\t\t\tTreePath treePath = (TreePath)toExpand.elementAt(i);\n\t\t\ttree.expandPath(treePath);\n\t\t}\n\n\t\ttimer.stop();\n\t\ttypeSelectBuffer.setLength(0);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "IF", "IF", "VAR_DECL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [0, 12], [2, 13], [0, 14], [4, 15], [8, 16], [1, 17], [10, 18], [11, 19], [2, 20], [13, 21], [3, 22], [4, 23], [4, 24], [4, 25], [4, 26], [1, 27], [1, 28], [19, 29], [20, 30], [4, 31], [4, 32], [25, 33], [4, 34], [20, 35], [20, 36], [20, 37], [20, 38], [30, 39], [31, 40], [23, 41], [24, 42], [24, 43], [24, 44], [25, 45], [33, 46], [33, 47], [17, 48], [35, 49], [20, 50], [20, 51], [40, 52], [40, 53], [41, 54], [41, 55], [42, 56], [42, 57], [43, 58], [24, 59], [45, 60], [46, 61], [46, 62], [47, 63], [47, 64], [35, 65], [49, 66], [49, 67], [36, 68], [37, 69], [42, 70], [57, 71], [57, 72], [43, 73], [58, 74], [58, 75], [44, 76], [59, 77], [60, 78], [60, 79], [62, 80], [65, 81], [38, 82], [72, 83], [73, 84], [74, 85], [74, 86], [75, 87], [75, 88], [78, 89], [78, 90], [81, 91], [84, 92], [84, 93], [86, 94], [92, 95], [92, 96], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 0], [13, 2], [14, 0], [15, 4], [16, 8], [17, 1], [18, 10], [19, 11], [20, 2], [21, 13], [22, 3], [23, 4], [24, 4], [25, 4], [26, 4], [27, 1], [28, 1], [29, 19], [30, 20], [31, 4], [32, 4], [33, 25], [34, 4], [35, 20], [36, 20], [37, 20], [38, 20], [39, 30], [40, 31], [41, 23], [42, 24], [43, 24], [44, 24], [45, 25], [46, 33], [47, 33], [48, 17], [49, 35], [50, 20], [51, 20], [52, 40], [53, 40], [54, 41], [55, 41], [56, 42], [57, 42], [58, 43], [59, 24], [60, 45], [61, 46], [62, 46], [63, 47], [64, 47], [65, 35], [66, 49], [67, 49], [68, 36], [69, 37], [70, 42], [71, 57], [72, 57], [73, 43], [74, 58], [75, 58], [76, 44], [77, 59], [78, 60], [79, 60], [80, 62], [81, 65], [82, 38], [83, 72], [84, 73], [85, 74], [86, 74], [87, 75], [88, 75], [89, 78], [90, 78], [91, 81], [92, 84], [93, 84], [94, 86], [95, 92], [96, 92], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96]]}, {"function_name": "updateFileView", "code": "\tpublic void updateFileView()\n\t{\n\t\ttree.repaint();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "loadDirectory", "code": "\tpublic void loadDirectory(String path)\n\t{\n\t\t// called by VFSBrowser.setDirectory()\n\t\ttmpExpanded.clear();\n\t\tloadDirectory(rootNode,path,false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "maybeReloadDirectory", "code": "\tpublic void maybeReloadDirectory(String path)\n\t{\n\t\ttmpExpanded.clear();\n\n\t\t// because this method is called for *every* VFS update,\n\t\t// we don't want to scan the tree all the time. So we\n\t\t// use the following algorithm to determine if the path\n\t\t// might be part of the tree:\n\t\t// - if the path starts with the browser's current directory,\n\t\t//   we do the tree scan\n\t\t// - if the browser's directory is 'favorites:' -- we have to\n\t\t//   do the tree scan, as every path can appear under the\n\t\t//   favorites list\n\t\t// - if the browser's directory is 'roots:' and path is on\n\t\t//   the local filesystem, do a tree scan\n\t\tString browserDir = browser.getDirectory();\n\t\tif(browserDir.startsWith(FavoritesVFS.PROTOCOL))\n\t\t\tmaybeReloadDirectory(rootNode,path);\n\t\telse if(browserDir.startsWith(FileRootsVFS.PROTOCOL))\n\t\t{\n\t\t\tif(!MiscUtilities.isURL(path) || MiscUtilities.getProtocolOfURL(path)\n\t\t\t\t.equals(\"file\"))\n\t\t\t\tmaybeReloadDirectory(rootNode,path);\n\t\t}\n\t\telse if(path.startsWith(browserDir))\n\t\t\tmaybeReloadDirectory(rootNode,path);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [4, 8], [1, 9], [2, 10], [7, 11], [4, 12], [7, 13], [12, 14], [12, 15], [14, 16], [14, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 4], [9, 1], [10, 2], [11, 7], [12, 4], [13, 7], [14, 12], [15, 12], [16, 14], [17, 14], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getDefaultFocusComponent", "code": "\tpublic Component getDefaultFocusComponent()\n\t{\n\t\treturn tree;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "propertiesChanged", "code": "\tpublic void propertiesChanged()\n\t{\n\t\tshowIcons = jEdit.getBooleanProperty(\"vfs.browser.showIcons\");\n\t\trenderer.propertiesChanged();\n\n\t\ttree.setRowHeight(renderer.getTreeCellRendererComponent(\n\t\t\ttree,new DefaultMutableTreeNode(\"foo\"),\n\t\t\tfalse,false,false,0,false).getSize().height);\n\n\t\tsplitPane.setBorder(null);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [4, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 14], [7, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 4], [8, 6], [9, 6], [10, 6], [11, 6], [12, 6], [13, 6], [14, 6], [15, 7], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "maybeReloadDirectory", "code": "\tprivate boolean maybeReloadDirectory(DefaultMutableTreeNode node, String path)\n\t{\n\t\t// nodes which are not expanded need not be checked\n\t\tif(!tree.isExpanded(new TreePath(node.getPath())))\n\t\t\treturn false;\n\n\t\tif(node == rootNode && path.equals(browser.getDirectory()))\n\t\t{\n\t\t\tloadDirectory(rootNode,path,false);\n\t\t\treturn true;\n\t\t}\n\n\t\tObject userObject = node.getUserObject();\n\t\tif(userObject instanceof VFS.DirectoryEntry)\n\t\t{\n\t\t\tVFS.DirectoryEntry file = (VFS.DirectoryEntry)userObject;\n\n\t\t\t// we don't need to do anything with files!\n\t\t\tif(file.type == VFS.DirectoryEntry.FILE)\n\t\t\t\treturn false;\n\n\t\t\tif(path.equals(file.path))\n\t\t\t{\n\t\t\t\tloadDirectory(node,path,false);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif(node.getChildCount() != 0)\n\t\t{\n\t\t\tEnumeration children = node.children();\n\t\t\twhile(children.hasMoreElements())\n\t\t\t{\n\t\t\t\tDefaultMutableTreeNode child = (DefaultMutableTreeNode)\n\t\t\t\t\tchildren.nextElement();\n\t\t\t\tif(maybeReloadDirectory(child,path))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [3, 11], [5, 12], [6, 13], [6, 14], [2, 15], [2, 16], [10, 17], [10, 18], [3, 19], [3, 20], [3, 21], [4, 22], [5, 23], [12, 24], [12, 25], [13, 26], [14, 27], [15, 28], [19, 29], [20, 30], [20, 31], [23, 32], [5, 33], [24, 34], [27, 35], [15, 36], [15, 37], [16, 38], [19, 39], [30, 40], [33, 41], [36, 42], [36, 43], [39, 44], [19, 45], [42, 46], [45, 47], [37, 48], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 3], [12, 5], [13, 6], [14, 6], [15, 2], [16, 2], [17, 10], [18, 10], [19, 3], [20, 3], [21, 3], [22, 4], [23, 5], [24, 12], [25, 12], [26, 13], [27, 14], [28, 15], [29, 19], [30, 20], [31, 20], [32, 23], [33, 5], [34, 24], [35, 27], [36, 15], [37, 15], [38, 16], [39, 19], [40, 30], [41, 33], [42, 36], [43, 36], [44, 39], [45, 19], [46, 42], [47, 45], [48, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48]]}, {"function_name": "loadDirectory", "code": "\tprivate void loadDirectory(DefaultMutableTreeNode node, String path,\n\t\tboolean showLoading)\n\t{\n\t\tint rowCount = tree.getRowCount();\n\t\tfor(int i = 0; i < rowCount; i++)\n\t\t{\n\t\t\tTreePath treePath = tree.getPathForRow(i);\n\t\t\tif(tree.isExpanded(treePath))\n\t\t\t{\n\t\t\t\tDefaultMutableTreeNode _node = (DefaultMutableTreeNode)\n\t\t\t\t\ttreePath.getLastPathComponent();\n\t\t\t\tVFS.DirectoryEntry file = ((VFS.DirectoryEntry)\n\t\t\t\t\t_node.getUserObject());\n\n\t\t\t\ttmpExpanded.put(file.path,file.path);\n\t\t\t}\n\t\t}\n\n\t\tif(node == rootNode)\n\t\t{\n\t\t\tparentModel.removeAllElements();\n\t\t\tparentModel.addElement(new LoadingPlaceholder());\n\t\t}\n\n\t\tif(showLoading)\n\t\t{\n\t\t\tnode.removeAllChildren();\n\t\t\tnode.add(new DefaultMutableTreeNode(new LoadingPlaceholder(),false));\n\t\t\tmodel.reload(node);\n\t\t}\n\n\t\tbrowser.loadDirectory(node,path,node == rootNode);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [8, 11], [3, 12], [3, 13], [4, 14], [1, 15], [1, 16], [1, 17], [2, 18], [2, 19], [12, 20], [3, 21], [16, 22], [18, 23], [12, 24], [12, 25], [13, 26], [22, 27], [22, 28], [12, 29], [24, 30], [25, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 8], [12, 3], [13, 3], [14, 4], [15, 1], [16, 1], [17, 1], [18, 2], [19, 2], [20, 12], [21, 3], [22, 16], [23, 18], [24, 12], [25, 12], [26, 13], [27, 22], [28, 22], [29, 12], [30, 24], [31, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "showFilePopup", "code": "\tprivate void showFilePopup(VFS.DirectoryEntry file, Point point)\n\t{\n\t\tpopup = new BrowserCommandsMenu(browser,file);\n\t\tGUIUtilities.showPopupMenu(popup,tree,point.x+1,point.y+1);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "BrowserView", "code": "\tpublic BrowserView(VFSBrowser browser, final boolean splitHorizontally)\n\t{\n\t\tthis.browser = browser;\n\t\tthis.splitHorizontally = splitHorizontally;\n\n\t\tparentModel = new DefaultListModel();\n\t\tparentDirectories = new JList(parentModel);\n\n\t\tparentDirectories.getSelectionModel().setSelectionMode(\n\t\t\tTreeSelectionModel.SINGLE_TREE_SELECTION);\n\n\t\tparentDirectories.setCellRenderer(new ParentDirectoryRenderer());\n\t\tparentDirectories.setVisibleRowCount(5);\n\t\tparentDirectories.addMouseListener(new MouseHandler());\n\n\t\trootNode = new DefaultMutableTreeNode(null,true);\n\t\tmodel = new DefaultTreeModel(rootNode,true);\n\n\t\ttree = new BrowserJTree(model);\n\t\ttree.setCellRenderer(renderer);\n\t\ttree.setEditable(false);\n\t\ttree.addTreeExpansionListener(new TreeHandler());\n\t\ttree.putClientProperty(\"JTree.lineStyle\", \"Angled\");\n\t\ttree.setRootVisible(false);\n\t\ttree.setShowsRootHandles(true);\n\t\ttree.setVisibleRowCount(12);\n\n\t\tfinal JScrollPane parentScroller = new JScrollPane(parentDirectories);\n\t\tparentScroller.setMinimumSize(new Dimension(0,0));\n\t\tJScrollPane treeScroller = new JScrollPane(tree);\n\t\ttreeScroller.setMinimumSize(new Dimension(0,0));\n\t\tsplitPane = new JSplitPane( \n\t\t\tsplitHorizontally ? JSplitPane.HORIZONTAL_SPLIT : JSplitPane.VERTICAL_SPLIT,\n\t\t\tparentScroller,treeScroller);\n\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tString prop = splitHorizontally ? \"vfs.browser.horizontalSplitter\" : \"vfs.browser.splitter\";\n\t\t\t\tint loc = jEdit.getIntegerProperty(prop,-1);\n\t\t\t\tif(loc == -1)\n\t\t\t\t\tloc = parentScroller.getPreferredSize().height;\n\n\t\t\t\tsplitPane.setDividerLocation(loc);\n\t\t\t\tparentDirectories.ensureIndexIsVisible(\n\t\t\t\t\tparentDirectories.getModel()\n\t\t\t\t\t.getSize());\n\t\t\t}\n\t\t});\n\n\t\ttmpExpanded = new Hashtable();\n\n\t\tif(browser.isMultipleSelectionEnabled())\n\t\t\ttree.getSelectionModel().setSelectionMode(\n\t\t\t\tTreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);\n\t\telse\n\t\t\ttree.getSelectionModel().setSelectionMode(\n\t\t\t\tTreeSelectionModel.SINGLE_TREE_SELECTION);\n\n\t\tsetLayout(new BorderLayout());\n\n\t\tadd(BorderLayout.CENTER,splitPane);\n\n\t\tpropertiesChanged();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [8, 33], [1, 34], [1, 35], [10, 36], [11, 37], [12, 38], [13, 39], [2, 40], [14, 41], [3, 42], [15, 43], [16, 44], [17, 45], [18, 46], [18, 47], [19, 48], [20, 49], [22, 50], [23, 51], [24, 52], [25, 53], [26, 54], [27, 55], [28, 56], [29, 57], [30, 58], [34, 59], [35, 60], [37, 61], [38, 62], [39, 63], [39, 64], [41, 65], [41, 66], [51, 67], [52, 68], [52, 69], [61, 70], [61, 71], [61, 72], [61, 73], [61, 74], [70, 75], [73, 76], [70, 77], [75, 78], [71, 79], [72, 80], [76, 81], [77, 82], [79, 83], [80, 84], [80, 85], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 8], [34, 1], [35, 1], [36, 10], [37, 11], [38, 12], [39, 13], [40, 2], [41, 14], [42, 3], [43, 15], [44, 16], [45, 17], [46, 18], [47, 18], [48, 19], [49, 20], [50, 22], [51, 23], [52, 24], [53, 25], [54, 26], [55, 27], [56, 28], [57, 29], [58, 30], [59, 34], [60, 35], [61, 37], [62, 38], [63, 39], [64, 39], [65, 41], [66, 41], [67, 51], [68, 52], [69, 52], [70, 61], [71, 61], [72, 61], [73, 61], [74, 61], [75, 70], [76, 73], [77, 70], [78, 75], [79, 71], [80, 72], [81, 76], [82, 77], [83, 79], [84, 80], [85, 80], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85]]}], "label": 1}
{"sample_id": "ant-1.5-393", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/types/RegularExpression.java", "language": "java", "name": "org.apache.tools.ant.types.RegularExpression", "code": "public class RegularExpression extends DataType {\n    /** Name of this data type */\n    public static final String DATA_TYPE_NAME = \"regexp\";\n\n    private static final RegexpFactory factory = new RegexpFactory();\n\n    private Regexp regexp;\n\n    public RegularExpression() {\n        this.regexp = factory.newRegexp();\n    }\n\n    public void setPattern(String pattern) {\n        this.regexp.setPattern(pattern);\n    }\n\n    /***\n     * Gets the pattern string for this RegularExpression in the\n     * given project.\n     */\n    public String getPattern(Project p) {\n        if (isReference()) {\n            return getRef(p).getPattern(p);\n        }\n\n        return regexp.getPattern();\n    }\n\n    public Regexp getRegexp(Project p) {\n        if (isReference()) {\n            return getRef(p).getRegexp(p);\n        }\n        return this.regexp;\n    }\n\n    /***\n     * Get the RegularExpression this reference refers to in\n     * the given project.  Check for circular references too\n     */\n    public RegularExpression getRef(Project p) {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, p);\n        }\n\n        \n        Object o = ref.getReferencedObject(p);\n        if (!(o instanceof RegularExpression)) {\n            String msg = ref.getRefId() + \" doesn\\'t denote a \" \n                + DATA_TYPE_NAME;\n            throw new BuildException(msg);\n        } else {\n            return (RegularExpression) o;", "functions": [{"function_name": "setPattern", "code": "    public void setPattern(String pattern) {\n        this.regexp.setPattern(pattern);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPattern", "code": "    public String getPattern(Project p) {\n        if (isReference()) {\n            return getRef(p).getPattern(p);\n        }\n\n        return regexp.getPattern();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getRegexp", "code": "    public Regexp getRegexp(Project p) {\n        if (isReference()) {\n            return getRef(p).getRegexp(p);\n        }\n        return this.regexp;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getRef", "code": "    public RegularExpression getRef(Project p) {\n        if (!checked) {\n            Stack stk = new Stack();\n            stk.push(this);\n            dieOnCircularReference(stk, p);\n        }\n\n        \n        Object o = ref.getReferencedObject(p);\n        if (!(o instanceof RegularExpression)) {\n            String msg = ref.getRefId() + \" doesn\\'t denote a \" \n                + DATA_TYPE_NAME;\n            throw new BuildException(msg);\n        } else {\n            return (RegularExpression) o;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "THROW_RAISE", "VAR_DECL", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [3, 10], [7, 11], [3, 12], [3, 13], [8, 14], [10, 15], [14, 16], [16, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 3], [11, 7], [12, 3], [13, 3], [14, 8], [15, 10], [16, 14], [17, 16], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "RegularExpression", "code": "    public RegularExpression() {\n        this.regexp = factory.newRegexp();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.1-4033", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/buffer/RootElement.java", "language": "java", "name": "org.gjt.sp.jedit.buffer.RootElement", "code": "public class RootElement implements Element\n{\n\t//{{{ RootElement constructor\n\tpublic RootElement(Buffer buffer)\n\t{\n\t\tthis.buffer = buffer;\n\t} //}}}\n\n\t//{{{ getDocument() method\n\tpublic Document getDocument()\n\t{\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getParentElement() method\n\tpublic Element getParentElement()\n\t{\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getName() method\n\tpublic String getName()\n\t{\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getAttributes() method\n\tpublic AttributeSet getAttributes()\n\t{\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getStartOffset() method\n\tpublic int getStartOffset()\n\t{\n\t\treturn 0;\n\t} //}}}\n\n\t//{{{ getEndOffset() method\n\tpublic int getEndOffset()\n\t{\n\t\treturn buffer.getLength() + 1;\n\t} //}}}\n\n\t//{{{ getElementIndex() method\n\tpublic int getElementIndex(int offset)\n\t{\n\t\treturn buffer.getLineOfOffset(offset);\n\t} //}}}\n\n\t//{{{ getElementCount() method\n\tpublic int getElementCount()\n\t{\n\t\treturn buffer.getLineCount();\n\t} //}}}\n\n\t//{{{ getElement() method\n\tpublic Element getElement(int line)\n\t{\n\t\treturn new LineElement(buffer,line);\n\t} //}}}\n\n\t//{{{ isLeaf() method\n\tpublic boolean isLeaf()\n\t{\n\t\treturn false;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate Buffer buffer;", "functions": [{"function_name": "getDocument", "code": "\tpublic Document getDocument()\n\t{\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParentElement", "code": "\tpublic Element getParentElement()\n\t{\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getName", "code": "\tpublic String getName()\n\t{\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getAttributes", "code": "\tpublic AttributeSet getAttributes()\n\t{\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStartOffset", "code": "\tpublic int getStartOffset()\n\t{\n\t\treturn 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEndOffset", "code": "\tpublic int getEndOffset()\n\t{\n\t\treturn buffer.getLength() + 1;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getElementIndex", "code": "\tpublic int getElementIndex(int offset)\n\t{\n\t\treturn buffer.getLineOfOffset(offset);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getElementCount", "code": "\tpublic int getElementCount()\n\t{\n\t\treturn buffer.getLineCount();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getElement", "code": "\tpublic Element getElement(int line)\n\t{\n\t\treturn new LineElement(buffer,line);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isLeaf", "code": "\tpublic boolean isLeaf()\n\t{\n\t\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RootElement", "code": "\tpublic RootElement(Buffer buffer)\n\t{\n\t\tthis.buffer = buffer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "jedit-4.3-4825", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/Registers.java", "language": "java", "name": "org.gjt.sp.jedit.Registers", "code": "public class Registers\n{\n\t//{{{ copy() method\n\t/**\n\t * Copies the text selected in the text area into the specified register.\n\t * This will replace the existing contents of the designated register.\n\t *\n\t * @param textArea The text area\n\t * @param register The register\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void copy(TextArea textArea, char register)\n\t{\n\t\tString selection = textArea.getSelectedText();\n\t\tif(selection == null)\n\t\t\treturn;\n\n\t\tsetRegister(register,selection);\n\t\tHistoryModel.getModel(\"clipboard\").addItem(selection);\n\n\t} //}}}\n\n\t//{{{ cut() method\n\t/**\n\t * Copies the text selected in the text area into the specified\n\t * register, and then removes it from the buffer.\n\t *\n\t * @param textArea The text area\n\t * @param register The register\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void cut(TextArea textArea, char register)\n\t{\n\t\tif(textArea.isEditable())\n\t\t{\n\t\t\tString selection = textArea.getSelectedText();\n\t\t\tif(selection == null)\n\t\t\t\treturn;\n\n\t\t\tsetRegister(register,selection);\n\t\t\tHistoryModel.getModel(\"clipboard\").addItem(selection);\n\n\t\t\ttextArea.setSelectedText(\"\");\n\t\t}\n\t\telse\n\t\t\ttextArea.getToolkit().beep();\n\t} //}}}\n\n\t//{{{ append() method\n\t/**\n\t * Appends the text selected in the text area to the specified register,\n\t * with a newline between the old and new text.\n\t * @param textArea The text area\n\t * @param register The register\n\t */\n\tpublic static void append(TextArea textArea, char register)\n\t{\n\t\tappend(textArea,register,\"\\n\",false);\n\t} //}}}\n\n\t//{{{ append() method\n\t/**\n\t * Appends the text selected in the text area to the specified register.\n\t * @param textArea The text area\n\t * @param register The register\n\t * @param separator The separator to insert between the old and new text\n\t */\n\tpublic static void append(TextArea textArea, char register,\n\t\tString separator)\n\t{\n\t\tappend(textArea,register,separator,false);\n\t} //}}}\n\n\t//{{{ append() method\n\t/**\n\t * Appends the text selected in the  text area to the specified register.\n\t * @param textArea The text area\n\t * @param register The register\n\t * @param separator The text to insert between the old and new text\n\t * @param cut Should the current selection be removed?\n\t * @since jEdit 3.2pre1\n\t */\n\tpublic static void append(TextArea textArea, char register,\n\t\tString separator, boolean cut)\n\t{\n\t\tif(cut && !textArea.isEditable())\n\t\t{\n\t\t\ttextArea.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tString selection = textArea.getSelectedText();\n\t\tif(selection == null)\n\t\t\treturn;\n\n\t\tRegister reg = getRegister(register);\n\n\t\tif(reg != null)\n\t\t{\n\t\t\tString registerContents = reg.toString();\n\t\t\tif(registerContents != null)\n\t\t\t{\n\t\t\t\tif(registerContents.endsWith(separator))\n\t\t\t\t\tselection = registerContents + selection;\n\t\t\t\telse\n\t\t\t\t\tselection = registerContents + separator + selection;\n\t\t\t}\n\t\t}\n\n\t\tsetRegister(register,selection);\n\t\tHistoryModel.getModel(\"clipboard\").addItem(selection);\n\n\t\tif(cut)\n\t\t\ttextArea.setSelectedText(\"\");\n\t} //}}}\n\n\t//{{{ paste() methods\n\t/**\n\t * Insets the contents of the specified register into the text area.\n\t * @param textArea The text area\n\t * @param register The register\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void paste(TextArea textArea, char register)\n\t{\n\t\tpaste(textArea,register,false);\n\t}\n\n\t/**\n\t * Inserts the contents of the specified register into the text area.\n\t * @param textArea The text area\n\t * @param register The register\n\t * @param vertical Vertical (columnar) paste\n\t * @since jEdit 4.1pre1\n\t */\n\tpublic static void paste(TextArea textArea, char register,\n\t\tboolean vertical)\n\t{\n\t\tif(!textArea.isEditable())\n\t\t{\n\t\t\ttextArea.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tRegister reg = getRegister(register);\n\n\t\tif(reg == null)\n\t\t{\n\t\t\ttextArea.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tString selection = reg.toString();\n\t\tif(selection == null)\n\t\t{\n\t\t\ttextArea.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\t\tJEditBuffer buffer = textArea.getBuffer();\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t/* vertical paste */\n\t\t\tif(vertical && textArea.getSelectionCount() == 0)\n\t\t\t{\n\t\t\t\tint caret = textArea.getCaretPosition();\n\t\t\t\tint caretLine = textArea.getCaretLine();\n\t\t\t\tSelection.Rect rect = new Selection.Rect(\n\t\t\t\t\tcaretLine,caret,caretLine,caret);\n\t\t\t\ttextArea.setSelectedText(rect,selection);\n\t\t\t\tcaretLine = textArea.getCaretLine();\n\n\t\t\t\tif(caretLine != textArea.getLineCount() - 1)\n\t\t\t\t{\n\n\t\t\t\t\tint startColumn = rect.getStartColumn(\n\t\t\t\t\t\tbuffer);\n\t\t\t\t\tint offset = buffer\n\t\t\t\t\t\t.getOffsetOfVirtualColumn(\n\t\t\t\t\t\tcaretLine + 1,startColumn,null);\n\t\t\t\t\tif(offset == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tbuffer.insertAtColumn(caretLine + 1,startColumn,\"\");\n\t\t\t\t\t\ttextArea.setCaretPosition(\n\t\t\t\t\t\t\tbuffer.getLineEndOffset(\n\t\t\t\t\t\t\tcaretLine + 1) - 1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ttextArea.setCaretPosition(\n\t\t\t\t\t\t\tbuffer.getLineStartOffset(\n\t\t\t\t\t\t\tcaretLine + 1) + offset);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse /* Regular paste */\n\t\t\t{\n\t\t\t\ttextArea.replaceSelection(selection);\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\t\tHistoryModel.getModel(\"clipboard\").addItem(selection);\n\t} //}}}\n\n\t//{{{ getRegister() method\n\t/**\n\t * Returns the specified register.\n\t * @param name The name\n\t */\n\tpublic static Register getRegister(char name)\n\t{\n\t\tif(name != '$' && name != '%')\n\t\t{\n\t\t\tif(!loaded)\n\t\t\t\tloadRegisters();\n\t\t}\n\n\t\tif(registers == null || name >= registers.length)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn registers[name];\n\t} //}}}\n\n\t//{{{ setRegister() method\n\t/**\n\t * Sets the specified register.\n\t * @param name The name\n\t * @param newRegister The new value\n\t */\n\tpublic static void setRegister(char name, Register newRegister)\n\t{\n\t\ttouchRegister(name);\n\n\t\tif(name >= registers.length)\n\t\t{\n\t\t\tRegister[] newRegisters = new Register[\n\t\t\t\tMath.min(1<<16, name<<1)];\n\t\t\tSystem.arraycopy(registers,0,newRegisters,0,\n\t\t\t\tregisters.length);\n\t\t\tregisters = newRegisters;\n\t\t}\n\n\t\tregisters[name] = newRegister;\n\t\tif (listener != null)\n\t\t\tlistener.registerChanged(name);\n\t} //}}}\n\n\t//{{{ setRegister() method\n\t/**\n\t * Sets the specified register.\n\t * @param name The name\n\t * @param value The new value\n\t */\n\tpublic static void setRegister(char name, String value)\n\t{\n\t\ttouchRegister(name);\n\t\tRegister register = getRegister(name);\n\t\tif(register != null)\n\t\t{\n\t\t\tregister.setValue(value);\n\t\t\tif (listener != null)\n\t\t\t\tlistener.registerChanged(name);\n\t\t}\n\t\telse\n\t\t\tsetRegister(name,new StringRegister(value));\n\t} //}}}\n\n\t//{{{ clearRegister() method\n\t/**\n\t * Sets the value of the specified register to <code>null</code>.\n\t * @param name The register name\n\t */\n\tpublic static void clearRegister(char name)\n\t{\n\t\tif(name >= registers.length)\n\t\t\treturn;\n\n\t\tRegister register = registers[name];\n\t\tif(name == '$' || name == '%')\n\t\t\tregister.setValue(\"\");\n\t\telse\n\t\t{\n\t\t\tregisters[name] = null;\n\t\t\tmodified = true;\n\t\t\tif (listener != null)\n\t\t\t\tlistener.registerChanged(name);\n\t\t}\n\t} //}}}\n\n\t//{{{ getRegisters() method\n\t/**\n\t * Returns an array of all available registers. Some of the elements\n\t * of this array might be <code>null</code>.\n\t */\n\tpublic static Register[] getRegisters()\n\t{\n\t\tif(!loaded)\n\t\t\tloadRegisters();\n\t\treturn registers;\n\t} //}}}\n\n\t//{{{ getRegisterNameString() method\n\t/**\n\t * Returns a string of all defined registers, used by the status bar\n\t * (eg, \"a b $ % ^\").\n\t * @since jEdit 4.2pre2\n\t */\n\tpublic static String getRegisterNameString()\n\t{\n\t\tif(!loaded)\n\t\t\tloadRegisters();\n\n\t\tStringBuilder buf = new StringBuilder(registers.length << 1);\n\t\tfor(int i = 0; i < registers.length; i++)\n\t\t{\n\t\t\tif(registers[i] != null)\n\t\t\t{\n\t\t\t\tif(buf.length() != 0)\n\t\t\t\t\tbuf.append(' ');\n\t\t\t\tbuf.append((char)i);\n\t\t\t}\n\t\t}\n\n\t\tif(buf.length() == 0)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn buf.toString();\n\t} //}}}\n\n\t//{{{ saveRegisters() method\n\tpublic static void saveRegisters()\n\t{\n\t\tif(!loaded || !modified)\n\t\t\treturn;\n\n\t\tif (saver != null)\n\t\t{\n\t\t\tsaver.saveRegisters();\n\t\t\tmodified = false;\n\t\t}\n\t} //}}}\n\n\t//{{{ setListener() method\n\tpublic static void setListener(RegistersListener listener)\n\t{\n\t\tRegisters.listener = listener;\n\t} //}}}\n\n\t//{{{ setSaver() method\n\tpublic static void setSaver(RegisterSaver saver)\n\t{\n\t\tRegisters.saver = saver;\n\t} //}}}\n\n\t//{{{ isLoading() method\n\tpublic static boolean isLoading()\n\t{\n\t\treturn loading;\n\t} //}}}\n\n\t//{{{ setLoading() method\n\tpublic static void setLoading(boolean loading)\n\t{\n\t\tRegisters.loading = loading;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate static Register[] registers;\n\tprivate static boolean loaded, loading;\n\tprivate static RegisterSaver saver;\n\tprivate static RegistersListener listener;\n\t/**\n\t * Flag that tell if a register has been modified (except for '%' and '$' registers that aren't\n\t * saved to the xml file).\n\t */\n\tprivate static boolean modified;\n\n\tprivate Registers() {}\n\n\tstatic\n\t{\n\t\tregisters = new Register[256];\n\t\tToolkit toolkit = Toolkit.getDefaultToolkit();\n\t\tregisters['$'] = new ClipboardRegister(\n\t\t\ttoolkit.getSystemClipboard());\n\t\tClipboard selection = toolkit.getSystemSelection();\n\t\tif(selection != null)\n\t\t\tregisters['%'] = new ClipboardRegister(selection);\n\t}\n\n\t//{{{ touchRegister() method\n\tprivate static void touchRegister(char name)\n\t{\n\t\tif(name == '%' || name == '$')\n\t\t\treturn;\n\n\t\tif(!loaded)\n\t\t\tloadRegisters();\n\n\t\tif(!loading)\n\t\t\tmodified = true;\n\t} //}}}\n\n\t//{{{ loadRegisters() method\n\tprivate static void loadRegisters()\n\t{\n\t\tif (saver != null)\n\t\t{\n\t\t\tloaded = true;\n\t\t\tsaver.loadRegisters();\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ Register interface\n\t/**\n\t * A register.\n\t */\n\tpublic interface Register\n\t{\n\t\t/**\n\t\t * Converts to a string.\n\t\t */\n\t\tString toString();\n\n\t\t/**\n\t\t * Sets the register contents.\n\t\t */\n\t\tvoid setValue(String value);\n\t} //}}}\n\n\t//{{{ ClipboardRegister class\n\t/**\n\t * A clipboard register. Register \"$\" should always be an\n\t * instance of this.\n\t */\n\tpublic static class ClipboardRegister implements Register\n\t{\n\t\tClipboard clipboard;\n\n\t\tpublic ClipboardRegister(Clipboard clipboard)\n\t\t{\n\t\t\tthis.clipboard = clipboard;\n\t\t}\n\n\t\t/**\n\t\t * Sets the clipboard contents.\n\t\t */\n\t\tpublic void setValue(String value)\n\t\t{\n\t\t\tStringSelection selection = new StringSelection(value);\n\t\t\tclipboard.setContents(selection,null);\n\t\t}\n\n\t\t/**\n\t\t * Returns the clipboard contents.\n\t\t */\n\t\t@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\n\t\t\t\tif (false)\n\t\t\t\t{\n\t\t\t\t\t/*\n\t\t\t\t\t\tThis is to debug clipboard problems.\n\n\t\t\t\t\t\tApparently, jEdit is unable to copy text from clipbard into the current\n\t\t\t\t\t\ttext buffer if the clipboard was filles using the command\n\t\t\t\t\t\t\techo test | xselection CLIPBOARD -\n\t\t\t\t\t\tunder Linux. However, it seems that Java does not offer any\n\t\t\t\t\t\tdata flavor for this clipboard content (under J2RE 1.5.0_06-b05)\n\t\t\t\t\t\tThus, copying from clipboard seems to be plainly impossible.\n\t\t\t\t\t*/\n\t\t\t\t\tLog.log(Log.DEBUG,this,\"clipboard.getContents(this)=\"+clipboard.getContents(this)+'.');\n\t\t\t\t\tdebugListDataFlavors(clipboard.getContents(this));\n\t\t\t\t}\n\n\t\t\t\tString selection = (String)clipboard\n\t\t\t\t\t.getContents(this).getTransferData(\n\t\t\t\t\tDataFlavor.stringFlavor);\n\n\t\t\t\tboolean trailingEOL = selection.endsWith(\"\\n\")\n\t\t\t\t\t|| selection.endsWith(System.getProperty(\n\t\t\t\t\t\"line.separator\"));\n\n\t\t\t\t// Some Java versions return the clipboard\n\t\t\t\t// contents using the native line separator,\n\t\t\t\t// so have to convert it here\n\t\t\t\tBufferedReader in = new BufferedReader(\n\t\t\t\t\tnew StringReader(selection));\n\t\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\t\tString line;\n\t\t\t\twhile((line = in.readLine()) != null)\n\t\t\t\t{\n\t\t\t\t\t// broken Eclipse workaround!\n\t\t\t\t\t// 24 Febuary 2004\n\t\t\t\t\tif(line.endsWith(\"\\0\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tline = line.substring(0,\n\t\t\t\t\t\t\tline.length() - 1);\n\t\t\t\t\t}\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tbuf.append('\\n');\n\t\t\t\t}\n\t\t\t\t// remove trailing \\n\n\t\t\t\tif(!trailingEOL && buf.length() != 0)\n\t\t\t\t\tbuf.setLength(buf.length() - 1);\n\t\t\t\treturn buf.toString();\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.NOTICE,this,e);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ debugListDataFlavors() method\n\tprotected static void debugListDataFlavors(Transferable transferable)\n\t{\n\t\tDataFlavor[] dataFlavors = transferable.getTransferDataFlavors();\n\n\t\tfor (int i = 0;i<dataFlavors.length;i++)\n\t\t{\n\t\t\tDataFlavor dataFlavor = dataFlavors[i];\n\t\t\tLog.log(Log.DEBUG,Registers.class,\n\t\t\t\t\"debugListDataFlavors(): dataFlavor=\"+\n\t\t\t\tdataFlavor+'.');\n\t\t}\n\n\t\tif (dataFlavors.length == 0)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,Registers.class,\n\t\t\t\t\"debugListDataFlavors(): no dataFlavor supported.\");\n\t\t}\n\t} //}}}\n\n\n\t//{{{ StringRegister class\n\t/**\n\t * Register that stores a string.\n\t */\n\tpublic static class StringRegister implements Register\n\t{\n\t\tprivate String value;\n\n\t\t/**\n\t\t * Creates a new string register.\n\t\t * @param value The contents\n\t\t */\n\t\tpublic StringRegister(String value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}\n\n\t\t/**\n\t\t * Sets the register contents.\n\t\t */\n\t\tpublic void setValue(String value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}\n\n\t\t/**\n\t\t * Converts to a string.\n\t\t */\n\t\t@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn value;\n\t\t}\n\n\t\t/**\n\t\t * Called when this register is no longer available. This\n\t\t * implementation does nothing.\n\t\t */\n\t\tpublic void dispose() {}", "functions": [{"function_name": "copy", "code": "\tpublic static void copy(TextArea textArea, char register)\n\t{\n\t\tString selection = textArea.getSelectedText();\n\t\tif(selection == null)\n\t\t\treturn;\n\n\t\tsetRegister(register,selection);\n\t\tHistoryModel.getModel(\"clipboard\").addItem(selection);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [5, 9], [5, 10], [8, 11], [2, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 5], [10, 5], [11, 8], [12, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "cut", "code": "\tpublic static void cut(TextArea textArea, char register)\n\t{\n\t\tif(textArea.isEditable())\n\t\t{\n\t\t\tString selection = textArea.getSelectedText();\n\t\t\tif(selection == null)\n\t\t\t\treturn;\n\n\t\t\tsetRegister(register,selection);\n\t\t\tHistoryModel.getModel(\"clipboard\").addItem(selection);\n\n\t\t\ttextArea.setSelectedText(\"\");\n\t\t}\n\t\telse\n\t\t\ttextArea.getToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [5, 8], [1, 9], [1, 10], [1, 11], [6, 12], [6, 13], [9, 14], [10, 15], [10, 16], [13, 17], [7, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 5], [9, 1], [10, 1], [11, 1], [12, 6], [13, 6], [14, 9], [15, 10], [16, 10], [17, 13], [18, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "append", "code": "\tpublic static void append(TextArea textArea, char register)\n\t{\n\t\tappend(textArea,register,\"\\n\",false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "append", "code": "\tpublic static void append(TextArea textArea, char register,\n\t\tString separator)\n\t{\n\t\tappend(textArea,register,separator,false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "append", "code": "\tpublic static void append(TextArea textArea, char register,\n\t\tString separator, boolean cut)\n\t{\n\t\tif(cut && !textArea.isEditable())\n\t\t{\n\t\t\ttextArea.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tString selection = textArea.getSelectedText();\n\t\tif(selection == null)\n\t\t\treturn;\n\n\t\tRegister reg = getRegister(register);\n\n\t\tif(reg != null)\n\t\t{\n\t\t\tString registerContents = reg.toString();\n\t\t\tif(registerContents != null)\n\t\t\t{\n\t\t\t\tif(registerContents.endsWith(separator))\n\t\t\t\t\tselection = registerContents + selection;\n\t\t\t\telse\n\t\t\t\t\tselection = registerContents + separator + selection;\n\t\t\t}\n\t\t}\n\n\t\tsetRegister(register,selection);\n\t\tHistoryModel.getModel(\"clipboard\").addItem(selection);\n\n\t\tif(cut)\n\t\t\ttextArea.setSelectedText(\"\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [2, 13], [4, 14], [4, 15], [6, 16], [1, 17], [11, 18], [11, 19], [2, 20], [2, 21], [13, 22], [3, 23], [15, 24], [5, 25], [6, 26], [16, 27], [17, 28], [20, 29], [6, 30], [20, 31], [29, 32], [21, 33], [30, 34], [31, 35], [31, 36], [31, 37], [36, 38], [37, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 2], [14, 4], [15, 4], [16, 6], [17, 1], [18, 11], [19, 11], [20, 2], [21, 2], [22, 13], [23, 3], [24, 15], [25, 5], [26, 6], [27, 16], [28, 17], [29, 20], [30, 6], [31, 20], [32, 29], [33, 21], [34, 30], [35, 31], [36, 31], [37, 31], [38, 36], [39, 37], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "paste", "code": "\tpublic static void paste(TextArea textArea, char register)\n\t{\n\t\tpaste(textArea,register,false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "paste", "code": "\tpublic static void paste(TextArea textArea, char register,\n\t\tboolean vertical)\n\t{\n\t\tif(!textArea.isEditable())\n\t\t{\n\t\t\ttextArea.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tRegister reg = getRegister(register);\n\n\t\tif(reg == null)\n\t\t{\n\t\t\ttextArea.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\n\t\tString selection = reg.toString();\n\t\tif(selection == null)\n\t\t{\n\t\t\ttextArea.getToolkit().beep();\n\t\t\treturn;\n\t\t}\n\t\tJEditBuffer buffer = textArea.getBuffer();\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\n\t\t\t/* vertical paste */\n\t\t\tif(vertical && textArea.getSelectionCount() == 0)\n\t\t\t{\n\t\t\t\tint caret = textArea.getCaretPosition();\n\t\t\t\tint caretLine = textArea.getCaretLine();\n\t\t\t\tSelection.Rect rect = new Selection.Rect(\n\t\t\t\t\tcaretLine,caret,caretLine,caret);\n\t\t\t\ttextArea.setSelectedText(rect,selection);\n\t\t\t\tcaretLine = textArea.getCaretLine();\n\n\t\t\t\tif(caretLine != textArea.getLineCount() - 1)\n\t\t\t\t{\n\n\t\t\t\t\tint startColumn = rect.getStartColumn(\n\t\t\t\t\t\tbuffer);\n\t\t\t\t\tint offset = buffer\n\t\t\t\t\t\t.getOffsetOfVirtualColumn(\n\t\t\t\t\t\tcaretLine + 1,startColumn,null);\n\t\t\t\t\tif(offset == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tbuffer.insertAtColumn(caretLine + 1,startColumn,\"\");\n\t\t\t\t\t\ttextArea.setCaretPosition(\n\t\t\t\t\t\t\tbuffer.getLineEndOffset(\n\t\t\t\t\t\t\tcaretLine + 1) - 1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ttextArea.setCaretPosition(\n\t\t\t\t\t\t\tbuffer.getLineStartOffset(\n\t\t\t\t\t\t\tcaretLine + 1) + offset);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse /* Regular paste */\n\t\t\t{\n\t\t\t\ttextArea.replaceSelection(selection);\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\t\tHistoryModel.getModel(\"clipboard\").addItem(selection);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [3, 13], [5, 14], [7, 15], [11, 16], [11, 17], [1, 18], [12, 19], [1, 20], [2, 21], [3, 22], [13, 23], [4, 24], [5, 25], [14, 26], [6, 27], [7, 28], [12, 29], [12, 30], [12, 31], [12, 32], [19, 33], [3, 34], [5, 35], [7, 36], [12, 37], [29, 38], [12, 39], [12, 40], [33, 41], [33, 42], [34, 43], [35, 44], [36, 45], [29, 46], [29, 47], [29, 48], [38, 49], [39, 50], [30, 51], [31, 52], [32, 53], [46, 54], [49, 55], [49, 56], [54, 57], [47, 58], [48, 59], [46, 60], [46, 61], [46, 62], [58, 63], [58, 64], [60, 65], [61, 66], [62, 67], [62, 68], [64, 69], [65, 70], [66, 71], [66, 72], [68, 73], [70, 74], [72, 75], [74, 76], [75, 77], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 3], [14, 5], [15, 7], [16, 11], [17, 11], [18, 1], [19, 12], [20, 1], [21, 2], [22, 3], [23, 13], [24, 4], [25, 5], [26, 14], [27, 6], [28, 7], [29, 12], [30, 12], [31, 12], [32, 12], [33, 19], [34, 3], [35, 5], [36, 7], [37, 12], [38, 29], [39, 12], [40, 12], [41, 33], [42, 33], [43, 34], [44, 35], [45, 36], [46, 29], [47, 29], [48, 29], [49, 38], [50, 39], [51, 30], [52, 31], [53, 32], [54, 46], [55, 49], [56, 49], [57, 54], [58, 47], [59, 48], [60, 46], [61, 46], [62, 46], [63, 58], [64, 58], [65, 60], [66, 61], [67, 62], [68, 62], [69, 64], [70, 65], [71, 66], [72, 66], [73, 68], [74, 70], [75, 72], [76, 74], [77, 75], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77]]}, {"function_name": "getRegister", "code": "\tpublic static Register getRegister(char name)\n\t{\n\t\tif(name != '$' && name != '%')\n\t\t{\n\t\t\tif(!loaded)\n\t\t\t\tloadRegisters();\n\t\t}\n\n\t\tif(registers == null || name >= registers.length)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn registers[name];", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [7, 12], [7, 13], [10, 14], [12, 15], [13, 16], [11, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 7], [13, 7], [14, 10], [15, 12], [16, 13], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "setRegister", "code": "\tpublic static void setRegister(char name, Register newRegister)\n\t{\n\t\ttouchRegister(name);\n\n\t\tif(name >= registers.length)\n\t\t{\n\t\t\tRegister[] newRegisters = new Register[\n\t\t\t\tMath.min(1<<16, name<<1)];\n\t\t\tSystem.arraycopy(registers,0,newRegisters,0,\n\t\t\t\tregisters.length);\n\t\t\tregisters = newRegisters;\n\t\t}\n\n\t\tregisters[name] = newRegister;\n\t\tif (listener != null)\n\t\t\tlistener.registerChanged(name);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [2, 7], [0, 8], [1, 9], [5, 10], [2, 11], [2, 12], [2, 13], [13, 14], [13, 15], [11, 16], [16, 17], [16, 18], [17, 19], [18, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 2], [8, 0], [9, 1], [10, 5], [11, 2], [12, 2], [13, 2], [14, 13], [15, 13], [16, 11], [17, 16], [18, 16], [19, 17], [20, 18], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "setRegister", "code": "\tpublic static void setRegister(char name, String value)\n\t{\n\t\ttouchRegister(name);\n\t\tRegister register = getRegister(name);\n\t\tif(register != null)\n\t\t{\n\t\t\tregister.setValue(value);\n\t\t\tif (listener != null)\n\t\t\t\tlistener.registerChanged(name);\n\t\t}\n\t\telse\n\t\t\tsetRegister(name,new StringRegister(value));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [1, 8], [5, 9], [2, 10], [7, 11], [8, 12], [1, 13], [8, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 1], [9, 5], [10, 2], [11, 7], [12, 8], [13, 1], [14, 8], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "clearRegister", "code": "\tpublic static void clearRegister(char name)\n\t{\n\t\tif(name >= registers.length)\n\t\t\treturn;\n\n\t\tRegister register = registers[name];\n\t\tif(name == '$' || name == '%')\n\t\t\tregister.setValue(\"\");\n\t\telse\n\t\t{\n\t\t\tregisters[name] = null;\n\t\t\tmodified = true;\n\t\t\tif (listener != null)\n\t\t\t\tlistener.registerChanged(name);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [3, 7], [1, 8], [1, 9], [5, 10], [5, 11], [8, 12], [1, 13], [1, 14], [9, 15], [10, 16], [11, 17], [8, 18], [12, 19], [13, 20], [14, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 3], [8, 1], [9, 1], [10, 5], [11, 5], [12, 8], [13, 1], [14, 1], [15, 9], [16, 10], [17, 11], [18, 8], [19, 12], [20, 13], [21, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getRegisters", "code": "\tpublic static Register[] getRegisters()\n\t{\n\t\tif(!loaded)\n\t\t\tloadRegisters();\n\t\treturn registers;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getRegisterNameString", "code": "\tpublic static String getRegisterNameString()\n\t{\n\t\tif(!loaded)\n\t\t\tloadRegisters();\n\n\t\tStringBuilder buf = new StringBuilder(registers.length << 1);\n\t\tfor(int i = 0; i < registers.length; i++)\n\t\t{\n\t\t\tif(registers[i] != null)\n\t\t\t{\n\t\t\t\tif(buf.length() != 0)\n\t\t\t\t\tbuf.append(' ');\n\t\t\t\tbuf.append((char)i);\n\t\t\t}\n\t\t}\n\n\t\tif(buf.length() == 0)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn buf.toString();", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "IF", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [5, 9], [6, 10], [7, 11], [7, 12], [2, 13], [3, 14], [4, 15], [13, 16], [2, 17], [14, 18], [13, 19], [16, 20], [18, 21], [13, 22], [19, 23], [19, 24], [23, 25], [23, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 5], [10, 6], [11, 7], [12, 7], [13, 2], [14, 3], [15, 4], [16, 13], [17, 2], [18, 14], [19, 13], [20, 16], [21, 18], [22, 13], [23, 19], [24, 19], [25, 23], [26, 23], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "saveRegisters", "code": "\tpublic static void saveRegisters()\n\t{\n\t\tif(!loaded || !modified)\n\t\t\treturn;\n\n\t\tif (saver != null)\n\t\t{\n\t\t\tsaver.saveRegisters();\n\t\t\tmodified = false;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [3, 6], [1, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 3], [7, 1], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setListener", "code": "\tpublic static void setListener(RegistersListener listener)\n\t{\n\t\tRegisters.listener = listener;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSaver", "code": "\tpublic static void setSaver(RegisterSaver saver)\n\t{\n\t\tRegisters.saver = saver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isLoading", "code": "\tpublic static boolean isLoading()\n\t{\n\t\treturn loading;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLoading", "code": "\tpublic static void setLoading(boolean loading)\n\t{\n\t\tRegisters.loading = loading;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "touchRegister", "code": "\tprivate static void touchRegister(char name)\n\t{\n\t\tif(name == '%' || name == '$')\n\t\t\treturn;\n\n\t\tif(!loaded)\n\t\t\tloadRegisters();\n\n\t\tif(!loading)\n\t\t\tmodified = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "PARAM", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [3, 6], [1, 7], [2, 8], [6, 9], [6, 10], [7, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 3], [7, 1], [8, 2], [9, 6], [10, 6], [11, 7], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "loadRegisters", "code": "\tprivate static void loadRegisters()\n\t{\n\t\tif (saver != null)\n\t\t{\n\t\t\tloaded = true;\n\t\t\tsaver.loadRegisters();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [1, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 1], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "debugListDataFlavors", "code": "\tprotected static void debugListDataFlavors(Transferable transferable)\n\t{\n\t\tDataFlavor[] dataFlavors = transferable.getTransferDataFlavors();\n\n\t\tfor (int i = 0;i<dataFlavors.length;i++)\n\t\t{\n\t\t\tDataFlavor dataFlavor = dataFlavors[i];\n\t\t\tLog.log(Log.DEBUG,Registers.class,\n\t\t\t\t\"debugListDataFlavors(): dataFlavor=\"+\n\t\t\t\tdataFlavor+'.');\n\t\t}\n\n\t\tif (dataFlavors.length == 0)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,Registers.class,\n\t\t\t\t\"debugListDataFlavors(): no dataFlavor supported.\");", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [2, 8], [3, 9], [1, 10], [2, 11], [2, 12], [10, 13], [11, 14], [14, 15], [14, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 2], [9, 3], [10, 1], [11, 2], [12, 2], [13, 10], [14, 11], [15, 14], [16, 14], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "Registers", "code": "\tprivate Registers() {}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "camel-1.6-2996", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/interceptor/StreamCachingInterceptor.java", "language": "java", "name": "org.apache.camel.processor.interceptor.StreamCachingInterceptor", "code": "public class StreamCachingInterceptor extends DelegateProcessor implements AsyncProcessor {\n\n    public StreamCachingInterceptor() {\n        super();\n    }\n\n    public StreamCachingInterceptor(Processor processor) {\n        this();\n        setProcessor(processor);\n    }\n\n    @Override\n    public String toString() {\n        return \"StreamCachingInterceptor(\" + processor + \")\";\n    }\n\n    /**\n     * Remove the {@link StreamCachingInterceptor} type of interceptor from the given list of interceptors\n     *\n     * @param interceptors the list of interceptors\n     */\n    public static void noStreamCaching(List<InterceptorType> interceptors) {\n        for (int i = 0; i < interceptors.size(); i++) {\n            InterceptorType interceptor = interceptors.get(i);\n            if (interceptor instanceof InterceptorRef\n                && ((InterceptorRef)interceptor).getInterceptor() instanceof StreamCachingInterceptor) {\n                interceptors.remove(interceptor);\n            }\n        }\n    }\n    \n    @Override\n    public void process(Exchange exchange) throws Exception {\n        AsyncProcessorHelper.process(this, exchange);\n    }\n\n    public boolean process(Exchange exchange, AsyncCallback callback) {\n        try {\n            StreamCache newBody = exchange.getIn().getBody(StreamCache.class);\n            if (newBody != null) {\n                exchange.getIn().setBody(newBody);\n            }\n            MessageHelper.resetStreamCache(exchange.getIn());\n        } catch (NoTypeConversionAvailableException ex) {\n        }\n        return proceed(exchange, callback);\n    } \n\n    public boolean proceed(Exchange exchange, AsyncCallback callback) {\n        if (getProcessor() instanceof AsyncProcessor) {\n            return ((AsyncProcessor) getProcessor()).process(exchange, callback);\n        } else {\n            try {\n                processor.process(exchange);\n            } catch (Throwable e) {\n                exchange.setException(e);\n            }\n            callback.done(true);\n            return true;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"StreamCachingInterceptor(\" + processor + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "noStreamCaching", "code": "    public static void noStreamCaching(List<InterceptorType> interceptors) {\n        for (int i = 0; i < interceptors.size(); i++) {\n            InterceptorType interceptor = interceptors.get(i);\n            if (interceptor instanceof InterceptorRef\n                && ((InterceptorRef)interceptor).getInterceptor() instanceof StreamCachingInterceptor) {\n                interceptors.remove(interceptor);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [1, 8], [7, 9], [7, 10], [5, 11], [4, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 1], [9, 7], [10, 7], [11, 5], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "process", "code": "    @Override\n    public void process(Exchange exchange) throws Exception {\n        AsyncProcessorHelper.process(this, exchange);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "process", "code": "    public boolean process(Exchange exchange, AsyncCallback callback) {\n        try {\n            StreamCache newBody = exchange.getIn().getBody(StreamCache.class);\n            if (newBody != null) {\n                exchange.getIn().setBody(newBody);\n            }\n            MessageHelper.resetStreamCache(exchange.getIn());\n        } catch (NoTypeConversionAvailableException ex) {\n        }\n        return proceed(exchange, callback);", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "CALL", "CATCH", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [2, 9], [7, 10], [9, 11], [10, 12], [8, 13], [7, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 2], [10, 7], [11, 9], [12, 10], [13, 8], [14, 7], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "proceed", "code": "    public boolean proceed(Exchange exchange, AsyncCallback callback) {\n        if (getProcessor() instanceof AsyncProcessor) {\n            return ((AsyncProcessor) getProcessor()).process(exchange, callback);\n        } else {\n            try {\n                processor.process(exchange);\n            } catch (Throwable e) {\n                exchange.setException(e);\n            }\n            callback.done(true);\n            return true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "RETURN", "TRY", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [6, 11], [10, 12], [6, 13], [7, 14], [11, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 6], [12, 10], [13, 6], [14, 7], [15, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "StreamCachingInterceptor", "code": "    public StreamCachingInterceptor() {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "StreamCachingInterceptor", "code": "    public StreamCachingInterceptor(Processor processor) {\n        this();\n        setProcessor(processor);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "ant-1.5-471", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/FileScanner.java", "language": "java", "name": "org.apache.tools.ant.FileScanner", "code": "public interface FileScanner {\n    /**\n     * Adds default exclusions to the current exclusions set.\n     */\n    void addDefaultExcludes();\n    \n    /**\n     * Returns the base directory to be scanned. \n     * This is the directory which is scanned recursively.\n     *\n     * @return the base directory to be scanned\n     */\n    File getBasedir();\n    \n    /**\n     * Returns the names of the directories which matched at least one of the \n     * include patterns and at least one of the exclude patterns.\n     * The names are relative to the base directory.\n     * \n     * @return the names of the directories which matched at least one of the \n     * include patterns and at least one of the exclude patterns.\n     */\n    String[] getExcludedDirectories();\n    \n    /**\n     * Returns the names of the files which matched at least one of the \n     * include patterns and at least one of the exclude patterns.\n     * The names are relative to the base directory.\n     *\n     * @return the names of the files which matched at least one of the \n     *         include patterns and at at least one of the exclude patterns.\n     * \n     */    \n    String[] getExcludedFiles();\n    \n    /**\n     * Returns the names of the directories which matched at least one of the \n     * include patterns and none of the exclude patterns.\n     * The names are relative to the base directory.\n     *\n     * @return the names of the directories which matched at least one of the\n     * include patterns and none of the exclude patterns.\n     */\n    String[] getIncludedDirectories();\n    \n    /**\n     * Returns the names of the files which matched at least one of the \n     * include patterns and none of the exclude patterns.\n     * The names are relative to the base directory.\n     *\n     * @return the names of the files which matched at least one of the\n     *         include patterns and none of the exclude patterns.\n     */\n    String[] getIncludedFiles();\n    \n    /**\n     * Returns the names of the directories which matched none of the include\n     * patterns. The names are relative to the base directory.\n     *\n     * @return the names of the directories which matched none of the include\n     * patterns.\n     */    \n    String[] getNotIncludedDirectories();\n    \n    /**\n     * Returns the names of the files which matched none of the include \n     * patterns. The names are relative to the base directory.\n     *\n     * @return the names of the files which matched none of the include \n     *         patterns.\n     */\n    String[] getNotIncludedFiles();\n    \n    /**\n     * Scans the base directory for files which match at least one include\n     * pattern and don't match any exclude patterns.\n     *\n     * @exception IllegalStateException if the base directory was set \n     *            incorrectly (i.e. if it is <code>null</code>, doesn't exist,\n     *            or isn't a directory).\n     */\n    void scan() throws IllegalStateException;\n    \n    /**\n     * Sets the base directory to be scanned. This is the directory which is\n     * scanned recursively. All '/' and '\\' characters should be replaced by\n     * <code>File.separatorChar</code>, so the separator used need not match\n     * <code>File.separatorChar</code>.\n     *\n     * @param basedir The base directory to scan. \n     *                Must not be <code>null</code>.\n     */\n    void setBasedir(String basedir);\n    \n    /**\n     * Sets the base directory to be scanned. This is the directory which is \n     * scanned recursively.\n     *\n     * @param basedir The base directory for scanning. \n     *                Should not be <code>null</code>.\n     */\n    void setBasedir(File basedir);\n    \n    /**\n     * Sets the list of exclude patterns to use.\n     *\n     * @param excludes A list of exclude patterns. \n     *                 May be <code>null</code>, indicating that no files \n     *                 should be excluded. If a non-<code>null</code> list is \n     *                 given, all elements must be non-<code>null</code>.\n     */    \n    void setExcludes(String[] excludes);\n    \n    /**\n     * Sets the list of include patterns to use.\n     *\n     * @param includes A list of include patterns.\n     *                 May be <code>null</code>, indicating that all files \n     *                 should be included. If a non-<code>null</code>\n     *                 list is given, all elements must be \n     * non-<code>null</code>.\n     */\n    void setIncludes(String[] includes);\n\n    /**\n     * Sets whether or not the file system should be regarded as case sensitive.\n     *\n     * @param isCaseSensitive whether or not the file system should be \n     *                        regarded as a case sensitive one\n     */\n    void setCaseSensitive(boolean isCaseSensitive);", "functions": [{"function_name": "addDefaultExcludes", "code": "    void addDefaultExcludes();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getBasedir", "code": "    File getBasedir();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getExcludedDirectories", "code": "    String[] getExcludedDirectories();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getExcludedFiles", "code": "    String[] getExcludedFiles();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIncludedDirectories", "code": "    String[] getIncludedDirectories();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getIncludedFiles", "code": "    String[] getIncludedFiles();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getNotIncludedDirectories", "code": "    String[] getNotIncludedDirectories();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "getNotIncludedFiles", "code": "    String[] getNotIncludedFiles();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "scan", "code": "    void scan() throws IllegalStateException;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setBasedir", "code": "    void setBasedir(String basedir);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBasedir", "code": "    void setBasedir(File basedir);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExcludes", "code": "    void setExcludes(String[] excludes);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIncludes", "code": "    void setIncludes(String[] includes);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCaseSensitive", "code": "    void setCaseSensitive(boolean isCaseSensitive);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "jedit-4.2-4423", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/gui/ToolBarManager.java", "language": "java", "name": "org.gjt.sp.jedit.gui.ToolBarManager", "code": "public class ToolBarManager\n{\n\t//{{{ ToolBarManager constructor\n\tpublic ToolBarManager(Container top, Container bottom)\n\t{\n\t\tthis.top = top;\n\t\tthis.bottom = bottom;\n\t} //}}}\n\n\t//{{{ addToolBar() method\n\tpublic void addToolBar(int group, int layer, Component toolbar)\n\t{\n\t\tEntry entry = new Entry(layer, toolbar);\n\n\t\tif (group == View.TOP_GROUP)\n\t\t\taddToolBar(top, topToolBars, entry);\n\t\telse if (group == View.BOTTOM_GROUP)\n\t\t\taddToolBar(bottom, bottomToolBars, entry);\n\t\telse\n\t\t\tthrow new InternalError(\"Invalid tool bar group\");\n\t} //}}}\n\n\t//{{{ removeToolBar() method\n\tpublic void removeToolBar(Component toolbar)\n\t{\n\t\tremoveToolBar(top, topToolBars, toolbar);\n\t\tremoveToolBar(bottom, bottomToolBars, toolbar);\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate Container top;\n\tprivate Container bottom;\n\n\tprivate ArrayList topToolBars = new ArrayList();\n\tprivate ArrayList bottomToolBars = new ArrayList();\n\t//}}}\n\n\t//{{{ addToolBar() method\n\tprivate void addToolBar(Container group, ArrayList toolbars,\n\t\tEntry entry)\n\t{\n\t\t// See if we should place this toolbar before any others\n\t\tfor(int i = 0; i < toolbars.size(); i++)\n\t\t{\n\t\t\tif(entry.layer > ((Entry)toolbars.get(i)).layer)\n\t\t\t{\n\t\t\t\ttoolbars.add(i,entry);\n\t\t\t\tgroup.add(entry.toolbar,i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Place the toolbar at the bottom of the group\n\t\ttoolbars.add(entry);\n\t\tgroup.add(entry.toolbar);\n\t} //}}}\n\n\t//{{{ removeToolBar() method\n\tprivate void removeToolBar(Container group, ArrayList toolbars,\n\t\tComponent toolbar)\n\t{\n\t\tfor(int i = 0; i < toolbars.size(); i++)\n\t\t{\n\t\t\tif(toolbar == ((Entry)toolbars.get(i)).toolbar)\n\t\t\t{\n\t\t\t\tgroup.remove(toolbar);\n\t\t\t\ttoolbars.remove(i);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Entry class\n\tstatic class Entry\n\t{\n\t\tint layer;\n\t\tComponent toolbar;\n\n\t\tEntry(int layer, Component toolbar)\n\t\t{\n\t\t\tthis.layer = layer;\n\t\t\tthis.toolbar = toolbar;", "functions": [{"function_name": "addToolBar", "code": "\tpublic void addToolBar(int group, int layer, Component toolbar)\n\t{\n\t\tEntry entry = new Entry(layer, toolbar);\n\n\t\tif (group == View.TOP_GROUP)\n\t\t\taddToolBar(top, topToolBars, entry);\n\t\telse if (group == View.BOTTOM_GROUP)\n\t\t\taddToolBar(bottom, bottomToolBars, entry);\n\t\telse\n\t\t\tthrow new InternalError(\"Invalid tool bar group\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [1, 10], [2, 11], [8, 12], [6, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 1], [11, 2], [12, 8], [13, 6], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "removeToolBar", "code": "\tpublic void removeToolBar(Component toolbar)\n\t{\n\t\tremoveToolBar(top, topToolBars, toolbar);\n\t\tremoveToolBar(bottom, bottomToolBars, toolbar);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addToolBar", "code": "\tprivate void addToolBar(Container group, ArrayList toolbars,\n\t\tEntry entry)\n\t{\n\t\t// See if we should place this toolbar before any others\n\t\tfor(int i = 0; i < toolbars.size(); i++)\n\t\t{\n\t\t\tif(entry.layer > ((Entry)toolbars.get(i)).layer)\n\t\t\t{\n\t\t\t\ttoolbars.add(i,entry);\n\t\t\t\tgroup.add(entry.toolbar,i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Place the toolbar at the bottom of the group\n\t\ttoolbars.add(entry);\n\t\tgroup.add(entry.toolbar);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [1, 11], [8, 12], [8, 13], [8, 14], [10, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 1], [12, 8], [13, 8], [14, 8], [15, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "removeToolBar", "code": "\tprivate void removeToolBar(Container group, ArrayList toolbars,\n\t\tComponent toolbar)\n\t{\n\t\tfor(int i = 0; i < toolbars.size(); i++)\n\t\t{\n\t\t\tif(toolbar == ((Entry)toolbars.get(i)).toolbar)\n\t\t\t{\n\t\t\t\tgroup.remove(toolbar);\n\t\t\t\ttoolbars.remove(i);\n\n\t\t\t\treturn;", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 9], [6, 10], [6, 11], [6, 12], [8, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [9, 1], [10, 6], [11, 6], [12, 6], [13, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "ToolBarManager", "code": "\tpublic ToolBarManager(Container top, Container bottom)\n\t{\n\t\tthis.top = top;\n\t\tthis.bottom = bottom;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.2-1856", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/builder/xml/MessageVariableResolver.java", "language": "java", "name": "org.apache.camel.builder.xml.MessageVariableResolver", "code": "public class MessageVariableResolver implements XPathVariableResolver {\n\n    private static final transient Log LOG = LogFactory.getLog(MessageVariableResolver.class);\n\n    private Exchange exchange;\n    private Map<String, Object> variables = new HashMap<String, Object>();\n\n    public Exchange getExchange() {\n        return exchange;\n    }\n\n    public void setExchange(Exchange exchange) {\n        this.exchange = exchange;\n    }\n\n    public Object resolveVariable(QName name) {\n        String uri = name.getNamespaceURI();\n        String localPart = name.getLocalPart();\n        Object answer = null;\n\n        Message in = exchange.getIn();\n        if (uri == null || uri.length() == 0) {\n            answer = variables.get(localPart);\n            if (answer == null) {\n                Message message = in;\n                if (message != null) {\n                    answer = message.getHeader(localPart);\n                }\n                if (answer == null) {\n                    answer = exchange.getProperty(localPart);\n                }\n            }\n        } else if (uri.equals(SYSTEM_PROPERTIES_NAMESPACE)) {\n            try {\n                answer = System.getProperty(localPart);\n            } catch (Exception e) {\n                LOG\n                    .debug(\"Security exception evaluating system property: \" + localPart + \". Reason: \" + e,\n                           e);\n            }\n        } else if (uri.equals(ENVIRONMENT_VARIABLES)) {\n            answer = System.getenv().get(localPart);\n        } else if (uri.equals(EXCHANGE_PROPERTY)) {\n            answer = exchange.getProperty(localPart);\n        } else if (uri.equals(IN_NAMESPACE)) {\n            answer = in.getHeader(localPart);\n            if (answer == null && localPart.equals(\"body\")) {\n                answer = in.getBody();\n            }\n        } else if (uri.equals(OUT_NAMESPACE)) {\n            Message out = exchange.getOut();\n            answer = out.getHeader(localPart);\n            if (answer == null && localPart.equals(\"body\")) {\n                answer = out.getBody();\n            }\n        }\n\n        return answer;\n    }\n\n    public void addVariable(String localPart, Object value) {\n        variables.put(localPart, value);", "functions": [{"function_name": "getExchange", "code": "    public Exchange getExchange() {\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExchange", "code": "    public void setExchange(Exchange exchange) {\n        this.exchange = exchange;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "resolveVariable", "code": "    public Object resolveVariable(QName name) {\n        String uri = name.getNamespaceURI();\n        String localPart = name.getLocalPart();\n        Object answer = null;\n\n        Message in = exchange.getIn();\n        if (uri == null || uri.length() == 0) {\n            answer = variables.get(localPart);\n            if (answer == null) {\n                Message message = in;\n                if (message != null) {\n                    answer = message.getHeader(localPart);\n                }\n                if (answer == null) {\n                    answer = exchange.getProperty(localPart);\n                }\n            }\n        } else if (uri.equals(SYSTEM_PROPERTIES_NAMESPACE)) {\n            try {\n                answer = System.getProperty(localPart);\n            } catch (Exception e) {\n                LOG\n                    .debug(\"Security exception evaluating system property: \" + localPart + \". Reason: \" + e,\n                           e);\n            }\n        } else if (uri.equals(ENVIRONMENT_VARIABLES)) {\n            answer = System.getenv().get(localPart);\n        } else if (uri.equals(EXCHANGE_PROPERTY)) {\n            answer = exchange.getProperty(localPart);\n        } else if (uri.equals(IN_NAMESPACE)) {\n            answer = in.getHeader(localPart);\n            if (answer == null && localPart.equals(\"body\")) {\n                answer = in.getBody();\n            }\n        } else if (uri.equals(OUT_NAMESPACE)) {\n            Message out = exchange.getOut();\n            answer = out.getHeader(localPart);\n            if (answer == null && localPart.equals(\"body\")) {\n                answer = out.getBody();\n            }\n        }\n\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "IF", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "TRY", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CATCH", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [8, 10], [8, 11], [2, 12], [9, 13], [9, 14], [3, 15], [4, 16], [5, 17], [6, 18], [10, 19], [10, 20], [8, 21], [12, 22], [2, 23], [13, 24], [13, 25], [14, 26], [19, 27], [19, 28], [21, 29], [12, 30], [12, 31], [12, 32], [22, 33], [23, 34], [27, 35], [27, 36], [10, 37], [21, 38], [30, 39], [31, 40], [35, 41], [27, 42], [19, 43], [37, 44], [29, 45], [38, 46], [39, 47], [40, 48], [35, 49], [35, 50], [42, 51], [27, 52], [43, 53], [44, 54], [45, 55], [30, 56], [31, 57], [49, 58], [35, 59], [51, 60], [51, 61], [52, 62], [55, 63], [56, 64], [57, 65], [58, 66], [58, 67], [59, 68], [50, 69], [42, 70], [60, 71], [61, 72], [63, 73], [63, 74], [49, 75], [66, 76], [67, 77], [70, 78], [74, 79], [75, 80], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 8], [11, 8], [12, 2], [13, 9], [14, 9], [15, 3], [16, 4], [17, 5], [18, 6], [19, 10], [20, 10], [21, 8], [22, 12], [23, 2], [24, 13], [25, 13], [26, 14], [27, 19], [28, 19], [29, 21], [30, 12], [31, 12], [32, 12], [33, 22], [34, 23], [35, 27], [36, 27], [37, 10], [38, 21], [39, 30], [40, 31], [41, 35], [42, 27], [43, 19], [44, 37], [45, 29], [46, 38], [47, 39], [48, 40], [49, 35], [50, 35], [51, 42], [52, 27], [53, 43], [54, 44], [55, 45], [56, 30], [57, 31], [58, 49], [59, 35], [60, 51], [61, 51], [62, 52], [63, 55], [64, 56], [65, 57], [66, 58], [67, 58], [68, 59], [69, 50], [70, 42], [71, 60], [72, 61], [73, 63], [74, 63], [75, 49], [76, 66], [77, 67], [78, 70], [79, 74], [80, 75], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80]]}, {"function_name": "addVariable", "code": "    public void addVariable(String localPart, Object value) {\n        variables.put(localPart, value);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "poi-2.5-5685", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/hssf/usermodel/HSSFName.java", "language": "java", "name": "org.apache.poi.hssf.usermodel.HSSFName", "code": "public class HSSFName {\n    private Workbook         book;\n    private NameRecord       name;\n    \n    /** Creates new HSSFName   - called by HSSFWorkbook to create a sheet from\n     * scratch.\n     *\n     * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createName()\n     * @param name the Name Record\n     * @param book - lowlevel Workbook object associated with the sheet.\n     * @param book the Workbook */\n    \n    protected HSSFName(Workbook book, NameRecord name) {\n        this.book = book;\n        this.name = name;\n    }\n    \n    /** Get the sheets name which this named range is referenced to\n     * @return sheet name, which this named range refered to\n     */    \n\n    public String getSheetName() {\n        String result ;\n        short indexToExternSheet = name.getExternSheetNumber();\n        \n        result = book.findSheetNameFromExternSheet(indexToExternSheet);\n        \n        return result;\n    }\n    \n    /** \n     * gets the name of the named range\n     * @return named range name\n     */    \n\n    public String getNameName(){\n        String result = name.getNameText();\n        \n        return result;\n    }\n    \n    /** \n     * sets the name of the named range\n     * @param nameName named range name to set\n     */    \n\n    public void setNameName(String nameName){\n        name.setNameText(nameName);\n        name.setNameTextLength((byte)nameName.length());\n    }\n\n    /** \n     * gets the reference of the named range\n     * @return reference of the named range\n     */    \n\n    public String getReference() {\n        String result;\n        result = name.getAreaReference(book);\n\n        return result;\n    }\n\n    \n\n    /** \n     * sets the sheet name which this named range referenced to\n     * @param sheetName the sheet name of the reference\n     */    \n\n    private void setSheetName(String sheetName){\n        int sheetNumber = book.getSheetIndex(sheetName);\n\n        short externSheetNumber = book.checkExternSheet(sheetNumber);\n        name.setExternSheetNumber(externSheetNumber);\n\n    }\n\n  \n    /** \n     * sets the reference of this named range\n     * @param ref the reference to set\n     */    \n\n    public void setReference(String ref){\n\n        RangeAddress ra = new RangeAddress(ref);\n\n        String sheetName = ra.getSheetName();\n\n        if (ra.hasSheetName()) {\n            setSheetName(sheetName);\n        }\n\n        name.setAreaReference(ref);", "functions": [{"function_name": "getSheetName", "code": "    public String getSheetName() {\n        String result ;\n        short indexToExternSheet = name.getExternSheetNumber();\n        \n        result = book.findSheetNameFromExternSheet(indexToExternSheet);\n        \n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNameName", "code": "    public String getNameName(){\n        String result = name.getNameText();\n        \n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setNameName", "code": "    public void setNameName(String nameName){\n        name.setNameText(nameName);\n        name.setNameTextLength((byte)nameName.length());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getReference", "code": "    public String getReference() {\n        String result;\n        result = name.getAreaReference(book);\n\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setSheetName", "code": "    private void setSheetName(String sheetName){\n        int sheetNumber = book.getSheetIndex(sheetName);\n\n        short externSheetNumber = book.checkExternSheet(sheetNumber);\n        name.setExternSheetNumber(externSheetNumber);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setReference", "code": "    public void setReference(String ref){\n\n        RangeAddress ra = new RangeAddress(ref);\n\n        String sheetName = ra.getSheetName();\n\n        if (ra.hasSheetName()) {\n            setSheetName(sheetName);\n        }\n\n        name.setAreaReference(ref);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [1, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "HSSFName", "code": "    protected HSSFName(Workbook book, NameRecord name) {\n        this.book = book;\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-4.1-4135", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/DefaultInputHandler.java", "language": "java", "name": "org.gjt.sp.jedit.gui.DefaultInputHandler", "code": "public class DefaultInputHandler extends InputHandler\n{\n\t//{{{ DefaultInputHandler constructor\n\t/**\n\t * Creates a new input handler with no key bindings defined.\n\t * @param view The view\n\t */\n\tpublic DefaultInputHandler(View view)\n\t{\n\t\tsuper(view);\n\n\t\tbindings = currentBindings = new Hashtable();\n\t} //}}}\n\n\t//{{{ DefaultInputHandler constructor\n\t/**\n\t * Creates a new input handler with the same set of key bindings\n\t * as the one specified. Note that both input handlers share\n\t * a pointer to exactly the same key binding table; so adding\n\t * a key binding in one will also add it to the other.\n\t * @param copy The input handler to copy key bindings from\n\t * @param view The view\n\t */\n\tpublic DefaultInputHandler(View view, DefaultInputHandler copy)\n\t{\n\t\tsuper(view);\n\n\t\tbindings = currentBindings = copy.bindings;\n\t} //}}}\n\n\t//{{{ addKeyBinding() method\n\t/**\n\t * Adds a key binding to this input handler. The key binding is\n\t * a list of white space separated key strokes of the form\n\t * <i>[modifiers+]key</i> where modifier is C for Control, A for Alt,\n\t * or S for Shift, and key is either a character (a-z) or a field\n\t * name in the KeyEvent class prefixed with VK_ (e.g., BACK_SPACE)\n\t * @param keyBinding The key binding\n\t * @param action The action\n\t */\n\tpublic void addKeyBinding(String keyBinding, EditAction action)\n\t{\n\t        Hashtable current = bindings;\n\n\t\tStringTokenizer st = new StringTokenizer(keyBinding);\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString keyCodeStr = st.nextToken();\n\t\t\tKeyStroke keyStroke = parseKeyStroke(keyCodeStr);\n\t\t\tif(keyStroke == null)\n\t\t\t\treturn;\n\n\t\t\tif(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tObject o = current.get(keyStroke);\n\t\t\t\tif(o instanceof Hashtable)\n\t\t\t\t\tcurrent = (Hashtable)o;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tHashtable hash = new Hashtable();\n\t\t\t\t\thash.put(PREFIX_STR,keyCodeStr);\n\t\t\t\t\to = hash;\n\t\t\t\t\tcurrent.put(keyStroke,o);\n\t\t\t\t\tcurrent = (Hashtable)o;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tcurrent.put(keyStroke,action);\n\t\t}\n\t} //}}}\n\n\t//{{{ removeKeyBinding() method\n\t/**\n\t * Removes a key binding from this input handler. This is not yet\n\t * implemented.\n\t * @param keyBinding The key binding\n\t */\n\tpublic void removeKeyBinding(String keyBinding)\n\t{\n\t\tthrow new InternalError(\"Not yet implemented\");\n\t} //}}}\n\n\t//{{{ removeAllKeyBindings() method\n\t/**\n\t * Removes all key bindings from this input handler.\n\t */\n\tpublic void removeAllKeyBindings()\n\t{\n\t\tbindings.clear();\n\t} //}}}\n\n\t//{{{ getKeyBinding() method\n\t/**\n\t * Returns either an edit action, or a hashtable if the specified key\n\t * is a prefix.\n\t * @param keyBinding The key binding\n\t * @since jEdit 3.2pre5\n\t */\n\tpublic Object getKeyBinding(String keyBinding)\n\t{\n\t\tHashtable current = bindings;\n\t\tStringTokenizer st = new StringTokenizer(keyBinding);\n\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tKeyStroke keyStroke = parseKeyStroke(st.nextToken());\n\t\t\tif(keyStroke == null)\n\t\t\t\treturn null;\n\n\t\t\tif(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tObject o = current.get(keyStroke);\n\t\t\t\tif(o instanceof Hashtable)\n\t\t\t\t\tcurrent = (Hashtable)o;\n\t\t\t\telse\n\t\t\t\t\treturn o;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn current.get(keyStroke);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ isPrefixActive() method\n\t/**\n\t * Returns if a prefix key has been pressed.\n\t */\n\tpublic boolean isPrefixActive()\n\t{\n\t\treturn bindings != currentBindings;\n\t} //}}}\n\n\t//{{{ keyPressed() method\n\t/**\n\t * Handle a key pressed event. This will look up the binding for\n\t * the key stroke and execute it.\n\t */\n\tpublic void keyPressed(KeyEvent evt)\n\t{\n\t\tint keyCode = evt.getKeyCode();\n\t\tint modifiers = evt.getModifiers();\n\n\t\tif(!(evt.isControlDown() || evt.isAltDown() || evt.isMetaDown()))\n\t\t{\n\t\t\t// if modifier active, handle all keys, otherwise\n\t\t\t// only some\n\t\t\tif((keyCode >= KeyEvent.VK_A && keyCode <= KeyEvent.VK_Z)\n\t\t\t\t|| (keyCode >= KeyEvent.VK_0 && keyCode <= KeyEvent.VK_9))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(keyCode == KeyEvent.VK_SPACE)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(readNextChar != null)\n\t\t\t{\n\t\t\t\tif(keyCode == KeyEvent.VK_ESCAPE)\n\t\t\t\t{\n\t\t\t\t\treadNextChar = null;\n\t\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t\t}\n\t\t\t\telse if(!evt.isActionKey()\n\t\t\t\t\t&& keyCode != KeyEvent.VK_TAB\n\t\t\t\t\t&& keyCode != KeyEvent.VK_ENTER)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// ok even with no modifiers\n\t\t\t}\n\t\t}\n\n\t\tKeyStroke keyStroke = KeyStroke.getKeyStroke(keyCode,\n\t\t\tmodifiers);\n\n\t\tObject o = currentBindings.get(keyStroke);\n\t\tif(o == null)\n\t\t{\n\t\t\t// Don't beep if the user presses some\n\t\t\t// key we don't know about unless a\n\t\t\t// prefix is active. Otherwise it will\n\t\t\t// beep when caps lock is pressed, etc.\n\t\t\tif(currentBindings != bindings)\n\t\t\t{\n\t\t\t\tToolkit.getDefaultToolkit().beep();\n\t\t\t\t// F10 should be passed on, but C+e F10\n\t\t\t\t// shouldn't\n\t\t\t\trepeatCount = 0;\n\t\t\t\trepeat = false;\n\t\t\t\tevt.consume();\n\t\t\t\tsetCurrentBindings(bindings);\n\t\t\t}\n\t\t\telse if(modifiers == 0 && (keyCode == KeyEvent.VK_ENTER\n\t\t\t\t|| keyCode == KeyEvent.VK_TAB))\n\t\t\t{\n\t\t\t\tuserInput((char)keyCode);\n\t\t\t\tevt.consume();\n\t\t\t}\n\t\t}\n\n\t\tif(readNextChar != null)\n\t\t{\n\t\t\treadNextChar = null;\n\t\t\tview.getStatus().setMessage(null);\n\t\t}\n\n\t\tif(o instanceof EditAction)\n\t\t{\n\t\t\tsetCurrentBindings(bindings);\n\t\t\tinvokeAction((EditAction)o);\n\t\t\tevt.consume();\n\t\t}\n\t\telse if(o instanceof Hashtable)\n\t\t{\n\t\t\tsetCurrentBindings((Hashtable)o);\n\t\t\tevt.consume();\n\t\t}\n\n\t\tif(o == null)\n\t\t{\n\t\t\tswitch(evt.getKeyCode())\n\t\t\t{\n\t\t\t\tcase KeyEvent.VK_NUMPAD0:   case KeyEvent.VK_NUMPAD1:\n\t\t\t\tcase KeyEvent.VK_NUMPAD2:   case KeyEvent.VK_NUMPAD3:\n\t\t\t\tcase KeyEvent.VK_NUMPAD4:   case KeyEvent.VK_NUMPAD5:\n\t\t\t\tcase KeyEvent.VK_NUMPAD6:   case KeyEvent.VK_NUMPAD7:\n\t\t\t\tcase KeyEvent.VK_NUMPAD8:   case KeyEvent.VK_NUMPAD9:\n\t\t\t\tcase KeyEvent.VK_MULTIPLY:  case KeyEvent.VK_ADD:\n\t\t\t\t/* case KeyEvent.VK_SEPARATOR: */ case KeyEvent.VK_SUBTRACT:\n\t\t\t\tcase KeyEvent.VK_DECIMAL:   case KeyEvent.VK_DIVIDE:\n\t\t\t\t\tKeyEventWorkaround.numericKeypadKey();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ keyTyped() method\n\t/**\n\t * Handle a key typed event. This inserts the key into the text area.\n\t */\n\tpublic void keyTyped(KeyEvent evt)\n\t{\n\t\tchar c = evt.getKeyChar();\n\n\t\t// ignore\n\t\tif(c == '\\b')\n\t\t\treturn;\n\n\t\tKeyStroke keyStroke;\n\n\t\t// this is a hack. a literal space is impossible to\n\t\t// insert in a key binding string, but you can write\n\t\t// SPACE.\n\t\tswitch(c)\n\t\t{\n\t\tcase ' ':\n\t\t\tkeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE,\n\t\t\t\tevt.getModifiers());\n\t\t\tbreak;\n\t\tcase '\\t':\n\t\t\tkeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_TAB,\n\t\t\t\tevt.getModifiers());\n\t\t\tbreak;\n\t\tcase '\\n':\n\t\t\tkeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,\n\t\t\t\tevt.getModifiers());\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tkeyStroke = KeyStroke.getKeyStroke(c);\n\t\t\tbreak;\n\t\t}\n\n\t\tObject o = currentBindings.get(keyStroke);\n\n\t\tif(o instanceof Hashtable)\n\t\t{\n\t\t\tsetCurrentBindings((Hashtable)o);\n\t\t}\n\t\telse if(o instanceof EditAction)\n\t\t{\n\t\t\tsetCurrentBindings(bindings);\n\t\t\tinvokeAction((EditAction)o);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// otherwise, reset to default map and do user input\n\t\t\tsetCurrentBindings(bindings);\n\n\t\t\tif(repeat && Character.isDigit(c))\n\t\t\t{\n\t\t\t\trepeatCount *= 10;\n\t\t\t\trepeatCount += (c - '0');\n\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t}\n\t\t\telse\n\t\t\t\tuserInput(c);\n\t\t}\n\t} //}}}\n\n\t//{{{ setModifierMapping() method\n\t/**\n\t * Changes the mapping between symbolic modifier key names\n\t * (<code>C</code>, <code>A</code>, <code>M</code>, <code>S</code>) and\n\t * Java modifier flags.\n\t *\n\t * @param c The modifier to map the <code>C</code> modifier to\n\t * @param a The modifier to map the <code>A</code> modifier to\n\t * @param m The modifier to map the <code>M</code> modifier to\n\t * @param s The modifier to map the <code>S</code> modifier to\n\t *\n\t * @since jEdit 4.1pre3\n\t */\n\tpublic static void setModifierMapping(int c, int a, int m, int s)\n\t{\n\t\tDefaultInputHandler.c = c;\n\t\tDefaultInputHandler.a = a;\n\t\tDefaultInputHandler.m = m;\n\t\tDefaultInputHandler.s = s;\n\t} //}}}\n\n\t//{{{ getSymbolicModifierName() method\n\t/**\n\t * Returns a the symbolic modifier name for the specified Java modifier\n\t * flag.\n\t *\n\t * @param mod A modifier constant from <code>InputEvent</code>\n\t *\n\t * @since jEdit 4.1pre3\n\t */\n\tpublic static char getSymbolicModifierName(int mod)\n\t{\n\t\t// this relies on the fact that if C is mapped to M, then\n\t\t// M will be mapped to C.\n\t\tif(mod == c)\n\t\t\treturn 'C';\n\t\telse if(mod == a)\n\t\t\treturn 'A';\n\t\telse if(mod == m)\n\t\t\treturn 'M';\n\t\telse if(mod == s)\n\t\t\treturn 'S';\n\t\telse\n\t\t\treturn '\\0';\n\t} //}}}\n\n\t//{{{ getModifierString() method\n\t/**\n\t * Returns a string containing symbolic modifier names set in the\n\t * specified event.\n\t *\n\t * @param evt The event\n\t *\n\t * @since jEdit 4.1pre3\n\t */\n\tpublic static String getModifierString(InputEvent evt)\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tif(evt.isControlDown())\n\t\t\tbuf.append(getSymbolicModifierName(InputEvent.CTRL_MASK));\n\t\tif(evt.isAltDown())\n\t\t\tbuf.append(getSymbolicModifierName(InputEvent.ALT_MASK));\n\t\tif(evt.isMetaDown())\n\t\t\tbuf.append(getSymbolicModifierName(InputEvent.META_MASK));\n\t\tif(evt.isShiftDown())\n\t\t\tbuf.append(getSymbolicModifierName(InputEvent.SHIFT_MASK));\n\t\treturn buf.toString();\n\t} //}}}\n\n\t//{{{ parseKeyStroke() method\n\t/**\n\t * Converts a string to a keystroke. The string should be of the\n\t * form <i>modifiers</i>+<i>shortcut</i> where <i>modifiers</i>\n\t * is any combination of A for Alt, C for Control, S for Shift\n\t * or M for Meta, and <i>shortcut</i> is either a single character,\n\t * or a keycode name from the <code>KeyEvent</code> class, without\n\t * the <code>VK_</code> prefix.\n\t * @param keyStroke A string description of the key stroke\n\t */\n\tpublic static KeyStroke parseKeyStroke(String keyStroke)\n\t{\n\t\tif(keyStroke == null)\n\t\t\treturn null;\n\t\tint modifiers = 0;\n\t\tint index = keyStroke.indexOf('+');\n\t\tif(index != -1)\n\t\t{\n\t\t\tfor(int i = 0; i < index; i++)\n\t\t\t{\n\t\t\t\tswitch(Character.toUpperCase(keyStroke\n\t\t\t\t\t.charAt(i)))\n\t\t\t\t{\n\t\t\t\tcase 'A':\n\t\t\t\t\tmodifiers |= a;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C':\n\t\t\t\t\tmodifiers |= c;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'M':\n\t\t\t\t\tmodifiers |= m;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'S':\n\t\t\t\t\tmodifiers |= s;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString key = keyStroke.substring(index + 1);\n\t\tif(key.length() == 1)\n\t\t{\n\t\t\tchar ch = key.charAt(0);\n\t\t\tif(modifiers == 0)\n\t\t\t\treturn KeyStroke.getKeyStroke(ch);\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn KeyStroke.getKeyStroke(Character.toUpperCase(ch),\n\t\t\t\t\tmodifiers);\n\t\t\t}\n\t\t}\n\t\telse if(key.length() == 0)\n\t\t{\n\t\t\tLog.log(Log.ERROR,DefaultInputHandler.class,\n\t\t\t\t\"Invalid key stroke: \" + keyStroke);\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint ch;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tch = KeyEvent.class.getField(\"VK_\".concat(key))\n\t\t\t\t\t.getInt(null);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,DefaultInputHandler.class,\n\t\t\t\t\t\"Invalid key stroke: \"\n\t\t\t\t\t+ keyStroke);\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\treturn KeyStroke.getKeyStroke(ch,modifiers);\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Class initializer\n\tstatic\n\t{\n\t\tif(OperatingSystem.isMacOS())\n\t\t{\n\t\t\tsetModifierMapping(\n\t\t\t\tInputEvent.META_MASK,\n\t\t\t\tInputEvent.ALT_MASK,\n\t\t\t\tInputEvent.CTRL_MASK,\n\t\t\t\tInputEvent.SHIFT_MASK);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetModifierMapping(\n\t\t\t\tInputEvent.CTRL_MASK,\n\t\t\t\tInputEvent.ALT_MASK,\n\t\t\t\tInputEvent.META_MASK,\n\t\t\t\tInputEvent.SHIFT_MASK);\n\t\t}\n\t} //}}}\n\n\tprivate static int c, a, m, s;\n\n\t// Stores prefix name in bindings hashtable\n\tprivate static Object PREFIX_STR = \"PREFIX_STR\";\n\n\tprivate Hashtable bindings;\n\tprivate Hashtable currentBindings;\n\n\t//{{{ setCurrentBindings() method\n\tprivate void setCurrentBindings(Hashtable bindings)\n\t{\n\t\tString prefixStr = (String)bindings.get(PREFIX_STR);\n\t\tif(prefixStr != null)\n\t\t{\n\t\t\tif(currentBindings != this.bindings)\n\t\t\t{\n\t\t\t\t//XXX this won't work past 2 levels of prefixing\n\t\t\t\tprefixStr = currentBindings.get(PREFIX_STR)\n\t\t\t\t\t+ \" \" + prefixStr;\n\t\t\t}\n\n\t\t\tview.getStatus().setMessage(prefixStr);\n\t\t}\n\t\telse\n\t\t\tview.getStatus().setMessage(null);\n\n\t\tcurrentBindings = bindings;", "functions": [{"function_name": "addKeyBinding", "code": "\tpublic void addKeyBinding(String keyBinding, EditAction action)\n\t{\n\t        Hashtable current = bindings;\n\n\t\tStringTokenizer st = new StringTokenizer(keyBinding);\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tString keyCodeStr = st.nextToken();\n\t\t\tKeyStroke keyStroke = parseKeyStroke(keyCodeStr);\n\t\t\tif(keyStroke == null)\n\t\t\t\treturn;\n\n\t\t\tif(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tObject o = current.get(keyStroke);\n\t\t\t\tif(o instanceof Hashtable)\n\t\t\t\t\tcurrent = (Hashtable)o;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tHashtable hash = new Hashtable();\n\t\t\t\t\thash.put(PREFIX_STR,keyCodeStr);\n\t\t\t\t\to = hash;\n\t\t\t\t\tcurrent.put(keyStroke,o);\n\t\t\t\t\tcurrent = (Hashtable)o;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tcurrent.put(keyStroke,action);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "VAR_DECL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [7, 12], [8, 13], [8, 14], [7, 15], [7, 16], [7, 17], [14, 18], [9, 19], [10, 20], [16, 21], [16, 22], [16, 23], [17, 24], [16, 25], [16, 26], [16, 27], [16, 28], [22, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 7], [13, 8], [14, 8], [15, 7], [16, 7], [17, 7], [18, 14], [19, 9], [20, 10], [21, 16], [22, 16], [23, 16], [24, 17], [25, 16], [26, 16], [27, 16], [28, 16], [29, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "removeKeyBinding", "code": "\tpublic void removeKeyBinding(String keyBinding)\n\t{\n\t\tthrow new InternalError(\"Not yet implemented\");", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "removeAllKeyBindings", "code": "\tpublic void removeAllKeyBindings()\n\t{\n\t\tbindings.clear();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getKeyBinding", "code": "\tpublic Object getKeyBinding(String keyBinding)\n\t{\n\t\tHashtable current = bindings;\n\t\tStringTokenizer st = new StringTokenizer(keyBinding);\n\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tKeyStroke keyStroke = parseKeyStroke(st.nextToken());\n\t\t\tif(keyStroke == null)\n\t\t\t\treturn null;\n\n\t\t\tif(st.hasMoreTokens())\n\t\t\t{\n\t\t\t\tObject o = current.get(keyStroke);\n\t\t\t\tif(o instanceof Hashtable)\n\t\t\t\t\tcurrent = (Hashtable)o;\n\t\t\t\telse\n\t\t\t\t\treturn o;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn current.get(keyStroke);\n\t\t\t}\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [2, 10], [3, 11], [8, 12], [9, 13], [9, 14], [8, 15], [8, 16], [8, 17], [13, 18], [14, 19], [10, 20], [15, 21], [16, 22], [16, 23], [20, 24], [16, 25], [17, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 2], [11, 3], [12, 8], [13, 9], [14, 9], [15, 8], [16, 8], [17, 8], [18, 13], [19, 14], [20, 10], [21, 15], [22, 16], [23, 16], [24, 20], [25, 16], [26, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "isPrefixActive", "code": "\tpublic boolean isPrefixActive()\n\t{\n\t\treturn bindings != currentBindings;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "keyPressed", "code": "\tpublic void keyPressed(KeyEvent evt)\n\t{\n\t\tint keyCode = evt.getKeyCode();\n\t\tint modifiers = evt.getModifiers();\n\n\t\tif(!(evt.isControlDown() || evt.isAltDown() || evt.isMetaDown()))\n\t\t{\n\t\t\t// if modifier active, handle all keys, otherwise\n\t\t\t// only some\n\t\t\tif((keyCode >= KeyEvent.VK_A && keyCode <= KeyEvent.VK_Z)\n\t\t\t\t|| (keyCode >= KeyEvent.VK_0 && keyCode <= KeyEvent.VK_9))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(keyCode == KeyEvent.VK_SPACE)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(readNextChar != null)\n\t\t\t{\n\t\t\t\tif(keyCode == KeyEvent.VK_ESCAPE)\n\t\t\t\t{\n\t\t\t\t\treadNextChar = null;\n\t\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t\t}\n\t\t\t\telse if(!evt.isActionKey()\n\t\t\t\t\t&& keyCode != KeyEvent.VK_TAB\n\t\t\t\t\t&& keyCode != KeyEvent.VK_ENTER)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// ok even with no modifiers\n\t\t\t}\n\t\t}\n\n\t\tKeyStroke keyStroke = KeyStroke.getKeyStroke(keyCode,\n\t\t\tmodifiers);\n\n\t\tObject o = currentBindings.get(keyStroke);\n\t\tif(o == null)\n\t\t{\n\t\t\t// Don't beep if the user presses some\n\t\t\t// key we don't know about unless a\n\t\t\t// prefix is active. Otherwise it will\n\t\t\t// beep when caps lock is pressed, etc.\n\t\t\tif(currentBindings != bindings)\n\t\t\t{\n\t\t\t\tToolkit.getDefaultToolkit().beep();\n\t\t\t\t// F10 should be passed on, but C+e F10\n\t\t\t\t// shouldn't\n\t\t\t\trepeatCount = 0;\n\t\t\t\trepeat = false;\n\t\t\t\tevt.consume();\n\t\t\t\tsetCurrentBindings(bindings);\n\t\t\t}\n\t\t\telse if(modifiers == 0 && (keyCode == KeyEvent.VK_ENTER\n\t\t\t\t|| keyCode == KeyEvent.VK_TAB))\n\t\t\t{\n\t\t\t\tuserInput((char)keyCode);\n\t\t\t\tevt.consume();\n\t\t\t}\n\t\t}\n\n\t\tif(readNextChar != null)\n\t\t{\n\t\t\treadNextChar = null;\n\t\t\tview.getStatus().setMessage(null);\n\t\t}\n\n\t\tif(o instanceof EditAction)\n\t\t{\n\t\t\tsetCurrentBindings(bindings);\n\t\t\tinvokeAction((EditAction)o);\n\t\t\tevt.consume();\n\t\t}\n\t\telse if(o instanceof Hashtable)\n\t\t{\n\t\t\tsetCurrentBindings((Hashtable)o);\n\t\t\tevt.consume();\n\t\t}\n\n\t\tif(o == null)\n\t\t{\n\t\t\tswitch(evt.getKeyCode())\n\t\t\t{\n\t\t\t\tcase KeyEvent.VK_NUMPAD0:   case KeyEvent.VK_NUMPAD1:\n\t\t\t\tcase KeyEvent.VK_NUMPAD2:   case KeyEvent.VK_NUMPAD3:\n\t\t\t\tcase KeyEvent.VK_NUMPAD4:   case KeyEvent.VK_NUMPAD5:\n\t\t\t\tcase KeyEvent.VK_NUMPAD6:   case KeyEvent.VK_NUMPAD7:\n\t\t\t\tcase KeyEvent.VK_NUMPAD8:   case KeyEvent.VK_NUMPAD9:\n\t\t\t\tcase KeyEvent.VK_MULTIPLY:  case KeyEvent.VK_ADD:\n\t\t\t\t/* case KeyEvent.VK_SEPARATOR: */ case KeyEvent.VK_SUBTRACT:\n\t\t\t\tcase KeyEvent.VK_DECIMAL:   case KeyEvent.VK_DIVIDE:\n\t\t\t\t\tKeyEventWorkaround.numericKeypadKey();\n\t\t\t\t\tbreak;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "SWITCH", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "IF", "BINARY_OP", "IF", "BINARY_OP", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [2, 13], [3, 14], [4, 15], [7, 16], [1, 17], [11, 18], [12, 19], [14, 20], [4, 21], [15, 22], [5, 23], [6, 24], [7, 25], [16, 26], [16, 27], [8, 28], [9, 29], [17, 30], [2, 31], [2, 32], [2, 33], [3, 34], [3, 35], [21, 36], [21, 37], [25, 38], [25, 39], [27, 40], [27, 41], [17, 42], [12, 43], [12, 44], [34, 45], [35, 46], [36, 47], [38, 48], [38, 49], [25, 50], [39, 51], [39, 52], [17, 53], [45, 54], [47, 55], [47, 56], [21, 57], [21, 58], [21, 59], [21, 60], [21, 61], [48, 62], [38, 63], [51, 64], [51, 65], [52, 66], [52, 67], [36, 68], [36, 69], [55, 70], [55, 71], [56, 72], [59, 73], [60, 74], [61, 75], [48, 76], [62, 77], [76, 78], [76, 79], [78, 80], [78, 81], [80, 82], [80, 83], [76, 84], [76, 85], [83, 86], [83, 87], [84, 88], [85, 89], [88, 90], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 2], [14, 3], [15, 4], [16, 7], [17, 1], [18, 11], [19, 12], [20, 14], [21, 4], [22, 15], [23, 5], [24, 6], [25, 7], [26, 16], [27, 16], [28, 8], [29, 9], [30, 17], [31, 2], [32, 2], [33, 2], [34, 3], [35, 3], [36, 21], [37, 21], [38, 25], [39, 25], [40, 27], [41, 27], [42, 17], [43, 12], [44, 12], [45, 34], [46, 35], [47, 36], [48, 38], [49, 38], [50, 25], [51, 39], [52, 39], [53, 17], [54, 45], [55, 47], [56, 47], [57, 21], [58, 21], [59, 21], [60, 21], [61, 21], [62, 48], [63, 38], [64, 51], [65, 51], [66, 52], [67, 52], [68, 36], [69, 36], [70, 55], [71, 55], [72, 56], [73, 59], [74, 60], [75, 61], [76, 48], [77, 62], [78, 76], [79, 76], [80, 78], [81, 78], [82, 80], [83, 80], [84, 76], [85, 76], [86, 83], [87, 83], [88, 84], [89, 85], [90, 88], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90]]}, {"function_name": "keyTyped", "code": "\tpublic void keyTyped(KeyEvent evt)\n\t{\n\t\tchar c = evt.getKeyChar();\n\n\t\t// ignore\n\t\tif(c == '\\b')\n\t\t\treturn;\n\n\t\tKeyStroke keyStroke;\n\n\t\t// this is a hack. a literal space is impossible to\n\t\t// insert in a key binding string, but you can write\n\t\t// SPACE.\n\t\tswitch(c)\n\t\t{\n\t\tcase ' ':\n\t\t\tkeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE,\n\t\t\t\tevt.getModifiers());\n\t\t\tbreak;\n\t\tcase '\\t':\n\t\t\tkeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_TAB,\n\t\t\t\tevt.getModifiers());\n\t\t\tbreak;\n\t\tcase '\\n':\n\t\t\tkeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,\n\t\t\t\tevt.getModifiers());\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tkeyStroke = KeyStroke.getKeyStroke(c);\n\t\t\tbreak;\n\t\t}\n\n\t\tObject o = currentBindings.get(keyStroke);\n\n\t\tif(o instanceof Hashtable)\n\t\t{\n\t\t\tsetCurrentBindings((Hashtable)o);\n\t\t}\n\t\telse if(o instanceof EditAction)\n\t\t{\n\t\t\tsetCurrentBindings(bindings);\n\t\t\tinvokeAction((EditAction)o);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// otherwise, reset to default map and do user input\n\t\t\tsetCurrentBindings(bindings);\n\n\t\t\tif(repeat && Character.isDigit(c))\n\t\t\t{\n\t\t\t\trepeatCount *= 10;\n\t\t\t\trepeatCount += (c - '0');\n\t\t\t\tview.getStatus().setMessage(null);\n\t\t\t}\n\t\t\telse\n\t\t\t\tuserInput(c);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "SWITCH", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [5, 10], [5, 11], [8, 12], [2, 13], [3, 14], [3, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [11, 21], [6, 22], [8, 23], [1, 24], [3, 25], [3, 26], [3, 27], [3, 28], [23, 29], [8, 30], [8, 31], [8, 32], [25, 33], [26, 34], [27, 35], [28, 36], [23, 37], [29, 38], [34, 39], [35, 40], [36, 41], [23, 42], [23, 43], [23, 44], [42, 45], [43, 46], [44, 47], [45, 48], [46, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 5], [11, 5], [12, 8], [13, 2], [14, 3], [15, 3], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 11], [22, 6], [23, 8], [24, 1], [25, 3], [26, 3], [27, 3], [28, 3], [29, 23], [30, 8], [31, 8], [32, 8], [33, 25], [34, 26], [35, 27], [36, 28], [37, 23], [38, 29], [39, 34], [40, 35], [41, 36], [42, 23], [43, 23], [44, 23], [45, 42], [46, 43], [47, 44], [48, 45], [49, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "setModifierMapping", "code": "\tpublic static void setModifierMapping(int c, int a, int m, int s)\n\t{\n\t\tDefaultInputHandler.c = c;\n\t\tDefaultInputHandler.a = a;\n\t\tDefaultInputHandler.m = m;\n\t\tDefaultInputHandler.s = s;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSymbolicModifierName", "code": "\tpublic static char getSymbolicModifierName(int mod)\n\t{\n\t\t// this relies on the fact that if C is mapped to M, then\n\t\t// M will be mapped to C.\n\t\tif(mod == c)\n\t\t\treturn 'C';\n\t\telse if(mod == a)\n\t\t\treturn 'A';\n\t\telse if(mod == m)\n\t\t\treturn 'M';\n\t\telse if(mod == s)\n\t\t\treturn 'S';\n\t\telse\n\t\t\treturn '\\0';", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "RETURN", "BINARY_OP", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [3, 8], [4, 9], [6, 10], [6, 11], [6, 12], [7, 13], [10, 14], [10, 15], [10, 16], [11, 17], [14, 18], [15, 19], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 3], [9, 4], [10, 6], [11, 6], [12, 6], [13, 7], [14, 10], [15, 10], [16, 10], [17, 11], [18, 14], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getModifierString", "code": "\tpublic static String getModifierString(InputEvent evt)\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tif(evt.isControlDown())\n\t\t\tbuf.append(getSymbolicModifierName(InputEvent.CTRL_MASK));\n\t\tif(evt.isAltDown())\n\t\t\tbuf.append(getSymbolicModifierName(InputEvent.ALT_MASK));\n\t\tif(evt.isMetaDown())\n\t\t\tbuf.append(getSymbolicModifierName(InputEvent.META_MASK));\n\t\tif(evt.isShiftDown())\n\t\t\tbuf.append(getSymbolicModifierName(InputEvent.SHIFT_MASK));\n\t\treturn buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [3, 10], [4, 11], [5, 12], [2, 13], [3, 14], [4, 15], [5, 16], [6, 17], [13, 18], [14, 19], [15, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 3], [11, 4], [12, 5], [13, 2], [14, 3], [15, 4], [16, 5], [17, 6], [18, 13], [19, 14], [20, 15], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "parseKeyStroke", "code": "\tpublic static KeyStroke parseKeyStroke(String keyStroke)\n\t{\n\t\tif(keyStroke == null)\n\t\t\treturn null;\n\t\tint modifiers = 0;\n\t\tint index = keyStroke.indexOf('+');\n\t\tif(index != -1)\n\t\t{\n\t\t\tfor(int i = 0; i < index; i++)\n\t\t\t{\n\t\t\t\tswitch(Character.toUpperCase(keyStroke\n\t\t\t\t\t.charAt(i)))\n\t\t\t\t{\n\t\t\t\tcase 'A':\n\t\t\t\t\tmodifiers |= a;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C':\n\t\t\t\t\tmodifiers |= c;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'M':\n\t\t\t\t\tmodifiers |= m;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'S':\n\t\t\t\t\tmodifiers |= s;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString key = keyStroke.substring(index + 1);\n\t\tif(key.length() == 1)\n\t\t{\n\t\t\tchar ch = key.charAt(0);\n\t\t\tif(modifiers == 0)\n\t\t\t\treturn KeyStroke.getKeyStroke(ch);\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn KeyStroke.getKeyStroke(Character.toUpperCase(ch),\n\t\t\t\t\tmodifiers);\n\t\t\t}\n\t\t}\n\t\telse if(key.length() == 0)\n\t\t{\n\t\t\tLog.log(Log.ERROR,DefaultInputHandler.class,\n\t\t\t\t\"Invalid key stroke: \" + keyStroke);\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint ch;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tch = KeyEvent.class.getField(\"VK_\".concat(key))\n\t\t\t\t\t.getInt(null);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,DefaultInputHandler.class,\n\t\t\t\t\t\"Invalid key stroke: \"\n\t\t\t\t\t+ keyStroke);\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\treturn KeyStroke.getKeyStroke(ch,modifiers);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LOOP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "TRY", "VAR_DECL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "SWITCH", "RETURN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "BREAK_CONTINUE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [3, 10], [6, 11], [6, 12], [8, 13], [1, 14], [1, 15], [9, 16], [9, 17], [2, 18], [3, 19], [10, 20], [4, 21], [5, 22], [11, 23], [12, 24], [8, 25], [8, 26], [8, 27], [8, 28], [13, 29], [13, 30], [14, 31], [14, 32], [18, 33], [19, 34], [21, 35], [25, 36], [26, 37], [28, 38], [8, 39], [14, 40], [31, 41], [32, 42], [15, 43], [33, 44], [19, 45], [37, 46], [26, 47], [39, 48], [40, 49], [43, 50], [45, 51], [19, 52], [46, 53], [37, 54], [47, 55], [47, 56], [48, 57], [49, 58], [45, 59], [45, 60], [45, 61], [45, 62], [45, 63], [45, 64], [45, 65], [45, 66], [51, 67], [54, 68], [55, 69], [56, 70], [45, 71], [45, 72], [45, 73], [45, 74], [68, 75], [70, 76], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 3], [11, 6], [12, 6], [13, 8], [14, 1], [15, 1], [16, 9], [17, 9], [18, 2], [19, 3], [20, 10], [21, 4], [22, 5], [23, 11], [24, 12], [25, 8], [26, 8], [27, 8], [28, 8], [29, 13], [30, 13], [31, 14], [32, 14], [33, 18], [34, 19], [35, 21], [36, 25], [37, 26], [38, 28], [39, 8], [40, 14], [41, 31], [42, 32], [43, 15], [44, 33], [45, 19], [46, 37], [47, 26], [48, 39], [49, 40], [50, 43], [51, 45], [52, 19], [53, 46], [54, 37], [55, 47], [56, 47], [57, 48], [58, 49], [59, 45], [60, 45], [61, 45], [62, 45], [63, 45], [64, 45], [65, 45], [66, 45], [67, 51], [68, 54], [69, 55], [70, 56], [71, 45], [72, 45], [73, 45], [74, 45], [75, 68], [76, 70], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76]]}, {"function_name": "setCurrentBindings", "code": "\tprivate void setCurrentBindings(Hashtable bindings)\n\t{\n\t\tString prefixStr = (String)bindings.get(PREFIX_STR);\n\t\tif(prefixStr != null)\n\t\t{\n\t\t\tif(currentBindings != this.bindings)\n\t\t\t{\n\t\t\t\t//XXX this won't work past 2 levels of prefixing\n\t\t\t\tprefixStr = currentBindings.get(PREFIX_STR)\n\t\t\t\t\t+ \" \" + prefixStr;\n\t\t\t}\n\n\t\t\tview.getStatus().setMessage(prefixStr);\n\t\t}\n\t\telse\n\t\t\tview.getStatus().setMessage(null);\n\n\t\tcurrentBindings = bindings;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [5, 8], [6, 9], [1, 10], [7, 11], [2, 12], [9, 13], [10, 14], [7, 15], [15, 16], [16, 17], [17, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 5], [9, 6], [10, 1], [11, 7], [12, 2], [13, 9], [14, 10], [15, 7], [16, 15], [17, 16], [18, 17], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "DefaultInputHandler", "code": "\tpublic DefaultInputHandler(View view)\n\t{\n\t\tsuper(view);\n\n\t\tbindings = currentBindings = new Hashtable();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DefaultInputHandler", "code": "\tpublic DefaultInputHandler(View view, DefaultInputHandler copy)\n\t{\n\t\tsuper(view);\n\n\t\tbindings = currentBindings = copy.bindings;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "camel-1.6-2875", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/RuntimeExpressionException.java", "language": "java", "name": "org.apache.camel.RuntimeExpressionException", "code": "public class RuntimeExpressionException extends RuntimeCamelException {\n\n    private static final long serialVersionUID = -8417806626073055262L;\n\n    public RuntimeExpressionException(String message) {\n        super(message);\n    }\n\n    public RuntimeExpressionException(String message, Throwable cause) {\n        super(message, cause);\n    }\n\n    public RuntimeExpressionException(Throwable cause) {\n        super(cause);", "functions": [{"function_name": "RuntimeExpressionException", "code": "    public RuntimeExpressionException(String message) {\n        super(message);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RuntimeExpressionException", "code": "    public RuntimeExpressionException(String message, Throwable cause) {\n        super(message, cause);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "RuntimeExpressionException", "code": "    public RuntimeExpressionException(Throwable cause) {\n        super(cause);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.4-2124", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/file/remote/RemoteFileMessage.java", "language": "java", "name": "org.apache.camel.component.file.remote.RemoteFileMessage", "code": "public class RemoteFileMessage extends DefaultMessage {\n    private OutputStream outputStream;\n    private String fullFileName;\n    private String hostname;\n\n    public RemoteFileMessage() {\n    }\n\n    public RemoteFileMessage(String hostname, String fullFileName, OutputStream outputStream) {\n        this.hostname = hostname;\n        this.fullFileName = fullFileName;\n        this.outputStream = outputStream;\n        setMessageId(hostname + \":\" + fullFileName);\n    }\n\n    public String getHostname() {\n        return hostname;\n    }\n\n    public void setHostname(String hostname) {\n        this.hostname = hostname;\n    }\n\n    public String getFullFileName() {\n        return fullFileName;\n    }\n\n    public void setFullFileName(String fullFileName) {\n        this.fullFileName = fullFileName;\n    }\n\n    public OutputStream getOutputStream() {\n        return outputStream;\n    }\n\n    public void setOutputStream(OutputStream outputStream) {\n        this.outputStream = outputStream;\n    }\n\n    @Override\n    public RemoteFileExchange getExchange() {\n        return (RemoteFileExchange) super.getExchange();\n    }\n\n    @Override\n    protected Object createBody() {\n        if (outputStream != null) {\n            return getExchange().getBinding().extractBodyFromOutputStream(getExchange(), outputStream);\n        }\n        return null;\n    }\n\n    @Override\n    public RemoteFileMessage newInstance() {\n        return new RemoteFileMessage();\n    }\n\n    @Override\n    protected void populateInitialHeaders(Map<String, Object> map) {\n        super.populateInitialHeaders(map);\n        map.put(\"file.remote.host\", hostname);\n        map.put(\"file.remote.name\", fullFileName);", "functions": [{"function_name": "getHostname", "code": "    public String getHostname() {\n        return hostname;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHostname", "code": "    public void setHostname(String hostname) {\n        this.hostname = hostname;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getFullFileName", "code": "    public String getFullFileName() {\n        return fullFileName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFullFileName", "code": "    public void setFullFileName(String fullFileName) {\n        this.fullFileName = fullFileName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getOutputStream", "code": "    public OutputStream getOutputStream() {\n        return outputStream;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOutputStream", "code": "    public void setOutputStream(OutputStream outputStream) {\n        this.outputStream = outputStream;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExchange", "code": "    @Override\n    public RemoteFileExchange getExchange() {\n        return (RemoteFileExchange) super.getExchange();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createBody", "code": "    @Override\n    protected Object createBody() {\n        if (outputStream != null) {\n            return getExchange().getBinding().extractBodyFromOutputStream(getExchange(), outputStream);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [5, 7], [7, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 5], [8, 7], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "newInstance", "code": "    @Override\n    public RemoteFileMessage newInstance() {\n        return new RemoteFileMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "populateInitialHeaders", "code": "    @Override\n    protected void populateInitialHeaders(Map<String, Object> map) {\n        super.populateInitialHeaders(map);\n        map.put(\"file.remote.host\", hostname);\n        map.put(\"file.remote.name\", fullFileName);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "RemoteFileMessage", "code": "    public RemoteFileMessage() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "RemoteFileMessage", "code": "    public RemoteFileMessage(String hostname, String fullFileName, OutputStream outputStream) {\n        this.hostname = hostname;\n        this.fullFileName = fullFileName;\n        this.outputStream = outputStream;\n        setMessageId(hostname + \":\" + fullFileName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [4, 8], [8, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 4], [9, 8], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "xalan-2.4-6521", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/transformer/TransformerIdentityImpl.java", "language": "java", "name": "org.apache.xalan.transformer.TransformerIdentityImpl", "code": "public class TransformerIdentityImpl extends Transformer\n        implements TransformerHandler, DeclHandler\n{\n\n  /**\n   * Constructor TransformerIdentityImpl creates an identity transform.\n   *\n   */\n  public TransformerIdentityImpl()\n  {\n    m_outputFormat = new OutputProperties(Method.XML);\n  }\n\n  /**\n   * Enables the user of the TransformerHandler to set the\n   * to set the Result for the transformation.\n   *\n   * @param result A Result instance, should not be null.\n   *\n   * @throws IllegalArgumentException if result is invalid for some reason.\n   */\n  public void setResult(Result result) throws IllegalArgumentException\n  {\n    if(null == result)\n    m_result = result;\n  }\n\n  /**\n   * Set the base ID (URI or system ID) from where relative\n   * URLs will be resolved.\n   * @param systemID Base URI for the source tree.\n   */\n  public void setSystemId(String systemID)\n  {\n    m_systemID = systemID;\n  }\n\n  /**\n   * Get the base ID (URI or system ID) from where relative\n   * URLs will be resolved.\n   * @return The systemID that was set with {@link #setSystemId}.\n   */\n  public String getSystemId()\n  {\n    return m_systemID;\n  }\n\n  /**\n   * Get the Transformer associated with this handler, which\n   * is needed in order to set parameters and output properties.\n   *\n   * @return non-null reference to the transformer.\n   */\n  public Transformer getTransformer()\n  {\n    return this;\n  }\n\n  /**\n   * Create a result ContentHandler from a Result object, based\n   * on the current OutputProperties.\n   *\n   * @param outputTarget Where the transform result should go,\n   * should not be null.\n   *\n   * @return A valid ContentHandler that will create the\n   * result tree when it is fed SAX events.\n   *\n   * @throws TransformerException\n   */\n  private void createResultContentHandler(Result outputTarget)\n          throws TransformerException\n  {\n\n    if (outputTarget instanceof SAXResult)\n    {\n      SAXResult saxResult = (SAXResult) outputTarget;\n\n      m_resultContentHandler = saxResult.getHandler();\n      m_resultLexicalHandler = saxResult.getLexicalHandler();\n\n      if (m_resultContentHandler instanceof Serializer)\n      {\n\n        m_serializer = (Serializer) m_resultContentHandler;\n      }\n    }\n    else if (outputTarget instanceof DOMResult)\n    {\n      DOMResult domResult = (DOMResult) outputTarget;\n      Node outputNode = domResult.getNode();\n      Document doc;\n      short type;\n\n      if (null != outputNode)\n      {\n        type = outputNode.getNodeType();\n        doc = (Node.DOCUMENT_NODE == type)\n              ? (Document) outputNode : outputNode.getOwnerDocument();\n      }\n      else\n      {\n        try\n        {\n          DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n          dbf.setNamespaceAware(true);\n\n          DocumentBuilder db = dbf.newDocumentBuilder();\n\n          doc = db.newDocument();\n        }\n        catch (ParserConfigurationException pce)\n        {\n          throw new TransformerException(pce);\n        }\n\n        outputNode = doc;\n        type = outputNode.getNodeType();\n\n        ((DOMResult) outputTarget).setNode(outputNode);\n      }\n\n      m_resultContentHandler =\n        (Node.DOCUMENT_FRAGMENT_NODE == type)\n        ? new DOMBuilder(doc, (DocumentFragment) outputNode)\n        : new DOMBuilder(doc, outputNode);\n      m_resultLexicalHandler = (LexicalHandler) m_resultContentHandler;\n    }\n    else if (outputTarget instanceof StreamResult)\n    {\n      StreamResult sresult = (StreamResult) outputTarget;\n      String method = m_outputFormat.getProperty(OutputKeys.METHOD);\n\n      try\n      {\n        Serializer serializer =\n          SerializerFactory.getSerializer(m_outputFormat.getProperties());\n\n        m_serializer = serializer;\n\n        if (null != sresult.getWriter())\n          serializer.setWriter(sresult.getWriter());\n        else if (null != sresult.getOutputStream())\n          serializer.setOutputStream(sresult.getOutputStream());\n        else if (null != sresult.getSystemId())\n        {\n          String fileURL = sresult.getSystemId();\n\n          {\n            if (fileURL.substring(8).indexOf(\":\") >0)\n              fileURL = fileURL.substring(8);\n            else \n              fileURL = fileURL.substring(7);\n          }\n\n          m_outputStream = new java.io.FileOutputStream(fileURL);\n          serializer.setOutputStream(m_outputStream);\n        }\n        else\n\n        m_resultContentHandler = serializer.asContentHandler();\n      }\n      catch (IOException ioe)\n      {\n        throw new TransformerException(ioe);\n      }\n    }\n    else\n    {\n    }\n\n    if (m_resultContentHandler instanceof DTDHandler)\n      m_resultDTDHandler = (DTDHandler) m_resultContentHandler;\n    \n    if (m_resultContentHandler instanceof DeclHandler)\n      m_resultDeclHandler = (DeclHandler) m_resultContentHandler;\n\n    if (m_resultContentHandler instanceof LexicalHandler)\n      m_resultLexicalHandler = (LexicalHandler) m_resultContentHandler;\n  }\n\n  /**\n   * Process the source tree to the output result.\n   * @param source  The input for the source tree.\n   *\n   * @param outputTarget The output target.\n   *\n   * @throws TransformerException If an unrecoverable error occurs\n   * during the course of the transformation.\n   */\n  public void transform(Source source, Result outputTarget)\n          throws TransformerException\n  {\n\n    createResultContentHandler(outputTarget);\n\n    try\n    {\n      if (source instanceof DOMSource)\n      {\n        DOMSource dsource = (DOMSource) source;\n  \n        m_systemID = dsource.getSystemId();\n  \n        Node dNode = dsource.getNode();\n  \n        if (null != dNode)\n        {\n          try\n          {\n            if(dNode.getNodeType() != Node.DOCUMENT_NODE)\n              this.startDocument();\n            try\n            {\n              if(dNode.getNodeType() == Node.ATTRIBUTE_NODE)\n              {\n                String data = dNode.getNodeValue();\n                char[] chars = data.toCharArray();\n                characters(chars, 0, chars.length);\n              }\n              else\n              {\n                TreeWalker walker = new TreeWalker(this, new org.apache.xpath.DOM2Helper(), m_systemID);\n                walker.traverse(dNode);\n              }\n            }\n            finally\n            {\n              if(dNode.getNodeType() != Node.DOCUMENT_NODE)\n                this.endDocument();\n            }\n          }\n          catch (SAXException se)\n          {\n            throw new TransformerException(se);\n          }\n  \n          return;\n        }\n        else\n        {\n          String messageStr = XSLMessages.createMessage(\n            XSLTErrorResources.ER_ILLEGAL_DOMSOURCE_INPUT, null);\n  \n          throw new IllegalArgumentException(messageStr);\n        }\n      }\n  \n      InputSource xmlSource = SAXSource.sourceToInputSource(source);\n  \n      if (null == xmlSource)\n      {\n      }\n  \n      if (null != xmlSource.getSystemId())\n        m_systemID = xmlSource.getSystemId();\n  \n      try\n      {\n        XMLReader reader = null;\n  \n        if (source instanceof SAXSource)\n          reader = ((SAXSource) source).getXMLReader();\n          \n        boolean isUserReader = (reader != null);\n  \n        if (null == reader)\n        {\n  \n          try\n          {\n            javax.xml.parsers.SAXParserFactory factory =\n              javax.xml.parsers.SAXParserFactory.newInstance();\n  \n            factory.setNamespaceAware(true);\n  \n            javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser();\n  \n            reader = jaxpParser.getXMLReader();\n          }\n          catch (javax.xml.parsers.ParserConfigurationException ex)\n          {\n            throw new org.xml.sax.SAXException(ex);\n          }\n          catch (javax.xml.parsers.FactoryConfigurationError ex1)\n          {\n            throw new org.xml.sax.SAXException(ex1.toString());\n          }\n          catch (NoSuchMethodError ex2){}\n          catch (AbstractMethodError ame){}\n        }\n  \n        if (null == reader)\n        {\n          reader = XMLReaderFactory.createXMLReader();\n        }\n  \n        try\n        {\n             \n        }\n        catch (org.xml.sax.SAXException se)\n        {\n  \n        }\n  \n        ContentHandler inputHandler = this;\n  \n        reader.setContentHandler(inputHandler);\n  \n        if (inputHandler instanceof org.xml.sax.DTDHandler)\n          reader.setDTDHandler((org.xml.sax.DTDHandler) inputHandler);\n  \n        try\n        {\n          if (inputHandler instanceof org.xml.sax.ext.LexicalHandler){}\n                               \n          if (inputHandler instanceof org.xml.sax.ext.DeclHandler)\n            reader.setProperty(\n              inputHandler);\n        }\n        catch (org.xml.sax.SAXException se){}\n  \n        try\n        {\n          if (inputHandler instanceof org.xml.sax.ext.LexicalHandler){}\n\t\t  \n          if (inputHandler instanceof org.xml.sax.ext.DeclHandler){}\n        }\n        catch (org.xml.sax.SAXNotRecognizedException snre){}\n  \n        reader.parse(xmlSource);\n      }\n      catch (org.apache.xml.utils.WrappedRuntimeException wre)\n      {\n        Throwable throwable = wre.getException();\n  \n        while (throwable\n               instanceof org.apache.xml.utils.WrappedRuntimeException)\n        {\n          throwable =\n            ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException();\n        }\n  \n        throw new TransformerException(wre.getException());\n      }\n      catch (org.xml.sax.SAXException se)\n      {\n        throw new TransformerException(se);\n      }\n      catch (IOException ioe)\n      {\n        throw new TransformerException(ioe);\n      }\n    }\n    finally\n    {\n      if(null != m_outputStream)\n      {\n        try\n        {\n          m_outputStream.close();\n        }\n        catch(IOException ioe){}\n        m_outputStream = null;\n      }\n    }\n  }\n\n  /**\n   * Add a parameter for the transformation.\n   *\n   * <p>Pass a qualified name as a two-part string, the namespace URI\n   * enclosed in curly braces ({}), followed by the local name. If the\n   * name has a null URL, the String only contain the local name. An\n   * application can safely check for a non-null URI by testing to see if the first\n   * character of the name is a '{' character.</p>\n   * <p>For example, if a URI and local name were obtained from an element\n   * no prefix is used.</p>\n   *\n   * @param name The name of the parameter, which may begin with a namespace URI\n   * in curly braces ({}).\n   * @param value The value object.  This can be any valid Java object. It is\n   * up to the processor to provide the proper object coersion or to simply\n   * pass the object on for use in an extension.\n   */\n  public void setParameter(String name, Object value)\n  {\n\n    if (null == m_params)\n    {\n      m_params = new Hashtable();\n    }\n\n    m_params.put(name, value);\n  }\n\n  /**\n   * Get a parameter that was explicitly set with setParameter\n   * or setParameters.\n   *\n   * <p>This method does not return a default parameter value, which\n   * cannot be determined until the node context is evaluated during\n   * the transformation process.\n   *\n   *\n   * @param name Name of the parameter.\n   * @return A parameter that has been set with setParameter.\n   */\n  public Object getParameter(String name)\n  {\n\n    if (null == m_params)\n      return null;\n\n    return m_params.get(name);\n  }\n\n  /**\n   * Clear all parameters set with setParameter.\n   */\n  public void clearParameters()\n  {\n\n    if (null == m_params)\n      return;\n\n    m_params.clear();\n  }\n\n  /**\n   * Set an object that will be used to resolve URIs used in\n   * document().\n   *\n   * <p>If the resolver argument is null, the URIResolver value will\n   * be cleared, and the default behavior will be used.</p>\n   *\n   * @param resolver An object that implements the URIResolver interface,\n   * or null.\n   */\n  public void setURIResolver(URIResolver resolver)\n  {\n    m_URIResolver = resolver;\n  }\n\n  /**\n   * Get an object that will be used to resolve URIs used in\n   * document(), etc.\n   *\n   * @return An object that implements the URIResolver interface,\n   * or null.\n   */\n  public URIResolver getURIResolver()\n  {\n    return m_URIResolver;\n  }\n\n  /**\n   * Set the output properties for the transformation.  These\n   * properties will override properties set in the Templates\n   * with xsl:output.\n   *\n   * <p>If argument to this function is null, any properties\n   * previously set are removed, and the value will revert to the value\n   * defined in the templates object.</p>\n   *\n   * <p>Pass a qualified property key name as a two-part string, the namespace URI\n   * enclosed in curly braces ({}), followed by the local name. If the\n   * name has a null URL, the String only contain the local name. An\n   * application can safely check for a non-null URI by testing to see if the first\n   * character of the name is a '{' character.</p>\n   * <p>For example, if a URI and local name were obtained from an element\n   * no prefix is used.</p>\n   *\n   * @param oformat A set of output properties that will be\n   * used to override any of the same properties in affect\n   * for the transformation.\n   *\n   * @see javax.xml.transform.OutputKeys\n   * @see java.util.Properties\n   *\n   * @throws IllegalArgumentException if any of the argument keys are not\n   * recognized and are not namespace qualified.\n   */\n  public void setOutputProperties(Properties oformat)\n          throws IllegalArgumentException\n  {\n\n    if (null != oformat)\n    {\n\n      String method = (String) oformat.get(OutputKeys.METHOD);\n\n      if (null != method)\n        m_outputFormat = new OutputProperties(method);\n      else\n        m_outputFormat = new OutputProperties();\n    }\n\n    if (null != oformat)\n    {\n      m_outputFormat.copyFrom(oformat);\n    }\n  }\n\n  /**\n   * Get a copy of the output properties for the transformation.\n   *\n   * <p>The properties returned should contain properties set by the user,\n   * and properties set by the stylesheet, and these properties\n   * XSL Transformations (XSLT) W3C Recommendation</a>.  The properties that\n   * were specifically set by the user or the stylesheet should be in the base\n   * Properties list, while the XSLT default properties that were not\n   * specifically set should be the default Properties list.  Thus,\n   * getOutputProperties().getProperty(String key) will obtain any\n   * property in that was set by {@link #setOutputProperty},\n   * {@link #setOutputProperties}, in the stylesheet, <em>or</em> the default\n   * properties, while\n   * getOutputProperties().get(String key) will only retrieve properties\n   * that were explicitly set by {@link #setOutputProperty},\n   * {@link #setOutputProperties}, or in the stylesheet.</p>\n   *\n   * <p>Note that mutation of the Properties object returned will not\n   * effect the properties that the transformation contains.</p>\n   *\n   * <p>If any of the argument keys are not recognized and are not\n   * namespace qualified, the property will be ignored.  In other words the\n   * behaviour is not orthogonal with setOutputProperties.</p>\n   *\n   * @return A copy of the set of output properties in effect\n   * for the next transformation.\n   *\n   * @see javax.xml.transform.OutputKeys\n   * @see java.util.Properties\n   */\n  public Properties getOutputProperties()\n  {\n    return (Properties) m_outputFormat.getProperties().clone();\n  }\n\n  /**\n   * Set an output property that will be in effect for the\n   * transformation.\n   *\n   * <p>Pass a qualified property name as a two-part string, the namespace URI\n   * enclosed in curly braces ({}), followed by the local name. If the\n   * name has a null URL, the String only contain the local name. An\n   * application can safely check for a non-null URI by testing to see if the first\n   * character of the name is a '{' character.</p>\n   * <p>For example, if a URI and local name were obtained from an element\n   * no prefix is used.</p>\n   *\n   * <p>The Properties object that was passed to {@link #setOutputProperties} won't\n   * be effected by calling this method.</p>\n   *\n   * @param name A non-null String that specifies an output\n   * property name, which may be namespace qualified.\n   * @param value The non-null string value of the output property.\n   *\n   * @throws IllegalArgumentException If the property is not supported, and is\n   * not qualified with a namespace.\n   *\n   * @see javax.xml.transform.OutputKeys\n   */\n  public void setOutputProperty(String name, String value)\n          throws IllegalArgumentException\n  {\n\n    if (!m_outputFormat.isLegalPropertyKey(name))\n\n    m_outputFormat.setProperty(name, value);\n  }\n\n  /**\n   * Get an output property that is in effect for the\n   * transformation.  The property specified may be a property\n   * that was set with setOutputProperty, or it may be a\n   * property specified in the stylesheet.\n   *\n   * @param name A non-null String that specifies an output\n   * property name, which may be namespace qualified.\n   *\n   * @return The string value of the output property, or null\n   * if no property was found.\n   *\n   * @throws IllegalArgumentException If the property is not supported.\n   *\n   * @see javax.xml.transform.OutputKeys\n   */\n  public String getOutputProperty(String name) throws IllegalArgumentException\n  {\n\n    String value = null;\n    OutputProperties props = m_outputFormat;\n\n    value = props.getProperty(name);\n\n    if (null == value)\n    {\n      if (!props.isLegalPropertyKey(name)){}\n    }\n\n    return value;\n  }\n\n  /**\n   * Set the error event listener in effect for the transformation.\n   *\n   * @param listener The new error listener.\n   * @throws IllegalArgumentException if listener is null.\n   */\n  public void setErrorListener(ErrorListener listener)\n          throws IllegalArgumentException\n  {\n    m_errorListener = listener;\n  }\n\n  /**\n   * Get the error event handler in effect for the transformation.\n   *\n   * @return The current error handler, which should never be null.\n   */\n  public ErrorListener getErrorListener()\n  {\n    return m_errorListener;\n  }\n\n\n  /**\n   * Receive notification of a notation declaration.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass if they wish to keep track of the notations\n   * declared in a document.</p>\n   *\n   * @param name The notation name.\n   * @param publicId The notation public identifier, or null if not\n   *                 available.\n   * @param systemId The notation system identifier.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.DTDHandler#notationDecl\n   *\n   * @throws SAXException\n   */\n  public void notationDecl(String name, String publicId, String systemId)\n          throws SAXException\n  {\n    if (null != m_resultDTDHandler)\n      m_resultDTDHandler.notationDecl(name, publicId, systemId);\n  }\n\n  /**\n   * Receive notification of an unparsed entity declaration.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to keep track of the unparsed entities\n   * declared in a document.</p>\n   *\n   * @param name The entity name.\n   * @param publicId The entity public identifier, or null if not\n   *                 available.\n   * @param systemId The entity system identifier.\n   * @param notationName The name of the associated notation.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   *\n   * @throws SAXException\n   */\n  public void unparsedEntityDecl(\n          String name, String publicId, String systemId, String notationName)\n            throws SAXException\n  {\n\n    if (null != m_resultDTDHandler)\n      m_resultDTDHandler.unparsedEntityDecl(name, publicId, systemId,\n                                            notationName);\n  }\n\n\n  /**\n   * Receive a Locator object for document events.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass if they wish to store the locator for use\n   * with other document events.</p>\n   *\n   * @param locator A locator for all SAX document events.\n   * @see org.xml.sax.ContentHandler#setDocumentLocator\n   * @see org.xml.sax.Locator\n   */\n  public void setDocumentLocator(Locator locator)\n  {\n    try\n    {\n      if (null == m_resultContentHandler)\n        createResultContentHandler(m_result);\n    }\n    catch (TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);\n    }\n\n    m_resultContentHandler.setDocumentLocator(locator);\n  }\n\n  /**\n   * Receive notification of the beginning of the document.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the beginning\n   * of a document (such as allocating the root node of a tree or\n   * creating an output file).</p>\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startDocument\n   *\n   * @throws SAXException\n   */\n  public void startDocument() throws SAXException\n  {\n\n    try\n    {\n      if (null == m_resultContentHandler)\n        createResultContentHandler(m_result);\n    }\n    catch (TransformerException te)\n    {\n      throw new SAXException(te.getMessage(), te);\n    }\n\n    m_flushedStartDoc = false;\n    m_foundFirstElement = false;\n  }\n  \n  boolean m_flushedStartDoc = false;\n  \n  protected final void flushStartDoc()\n     throws SAXException\n  {\n    if(!m_flushedStartDoc)\n    {\n      m_resultContentHandler.startDocument();\n      m_flushedStartDoc = true;\n    }\n  }\n\n  /**\n   * Receive notification of the end of the document.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the end\n   * of a document (such as finalising a tree or closing an output\n   * file).</p>\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endDocument\n   *\n   * @throws SAXException\n   */\n  public void endDocument() throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.endDocument();\n  }\n\n  /**\n   * Receive notification of the start of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each Namespace prefix scope (such as storing the prefix mapping).</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @param uri The Namespace URI mapped to the prefix.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startPrefixMapping\n   *\n   * @throws SAXException\n   */\n  public void startPrefixMapping(String prefix, String uri)\n          throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.startPrefixMapping(prefix, uri);\n  }\n\n  /**\n   * Receive notification of the end of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the end of\n   * each prefix mapping.</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endPrefixMapping\n   *\n   * @throws SAXException\n   */\n  public void endPrefixMapping(String prefix) throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.endPrefixMapping(prefix);\n  }\n\n  /**\n   * Receive notification of the start of an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each element (such as allocating a new tree node or writing\n   * output to a file).</p>\n   *\n   * @param uri The Namespace URI, or the empty string if the\n   *        element has no Namespace URI or if Namespace\n   *        processing is not being performed.\n   * @param localName The local name (without prefix), or the\n   *        empty string if Namespace processing is not being\n   *        performed.\n   * @param qName The qualified name (with prefix), or the\n   *        empty string if qualified names are not available.\n   * @param attributes The specified or defaulted attributes.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startElement\n   *\n   * @throws SAXException\n   */\n  public void startElement(\n          String uri, String localName, String qName, Attributes attributes)\n            throws SAXException\n  {\n\n    if (!m_foundFirstElement && null != m_serializer)\n    {\n      m_foundFirstElement = true;\n\n      Serializer newSerializer;\n\n      try\n      {\n        newSerializer = SerializerSwitcher.switchSerializerIfHTML(uri,\n                localName, m_outputFormat.getProperties(), m_serializer);\n      }\n      catch (TransformerException te)\n      {\n        throw new SAXException(te);\n      }\n\n      if (newSerializer != m_serializer)\n      {\n        try\n        {\n          m_resultContentHandler = newSerializer.asContentHandler();\n        }\n        catch(Exception e){\n          throw new SAXException(ioe);\n        }\n\n        if (m_resultContentHandler instanceof DTDHandler)\n          m_resultDTDHandler = (DTDHandler) m_resultContentHandler;\n\n        if (m_resultContentHandler instanceof LexicalHandler)\n          m_resultLexicalHandler = (LexicalHandler) m_resultContentHandler;\n\n        m_serializer = newSerializer;\n      }\n    }\n    flushStartDoc();\n    m_resultContentHandler.startElement(uri, localName, qName, attributes);\n  }\n\n  /**\n   * Receive notification of the end of an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the end of\n   * each element (such as finalising a tree node or writing\n   * output to a file).</p>\n   *\n   * @param uri The Namespace URI, or the empty string if the\n   *        element has no Namespace URI or if Namespace\n   *        processing is not being performed.\n   * @param localName The local name (without prefix), or the\n   *        empty string if Namespace processing is not being\n   *        performed.\n   * @param qName The qualified name (with prefix), or the\n   *        empty string if qualified names are not available.\n   * @param attributes The specified or defaulted attributes.\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endElement\n   *\n   * @throws SAXException\n   */\n  public void endElement(String uri, String localName, String qName)\n          throws SAXException\n  {\n    m_resultContentHandler.endElement(uri, localName, qName);\n  }\n\n  /**\n   * Receive notification of character data inside an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method to take specific actions for each chunk of character data\n   * (such as adding the data to a node or buffer, or printing it to\n   * a file).</p>\n   *\n   * @param ch The characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#characters\n   *\n   * @throws SAXException\n   */\n  public void characters(char ch[], int start, int length) throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.characters(ch, start, length);\n  }\n\n  /**\n   * Receive notification of ignorable whitespace in element content.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method to take specific actions for each chunk of ignorable\n   * whitespace (such as adding data to a node or buffer, or printing\n   * it to a file).</p>\n   *\n   * @param ch The whitespace characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#ignorableWhitespace\n   *\n   * @throws SAXException\n   */\n  public void ignorableWhitespace(char ch[], int start, int length)\n          throws SAXException\n  {\n    m_resultContentHandler.ignorableWhitespace(ch, start, length);\n  }\n\n  /**\n   * Receive notification of a processing instruction.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param target The processing instruction target.\n   * @param data The processing instruction data, or null if\n   *             none is supplied.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   *\n   * @throws SAXException\n   */\n  public void processingInstruction(String target, String data)\n          throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.processingInstruction(target, data);\n  }\n\n  /**\n   * Receive notification of a skipped entity.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param name The name of the skipped entity.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   *\n   * @throws SAXException\n   */\n  public void skippedEntity(String name) throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.skippedEntity(name);\n  }\n\n  /**\n   * Report the start of DTD declarations, if any.\n   *\n   * <p>Any declarations are assumed to be in the internal subset\n   * unless otherwise indicated by a {@link #startEntity startEntity}\n   * event.</p>\n   *\n   * <p>Note that the start/endDTD events will appear within\n   * the start/endDocument events from ContentHandler and\n   * before the first startElement event.</p>\n   *\n   * @param name The document type name.\n   * @param publicId The declared public identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @param systemId The declared system identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @throws SAXException The application may raise an\n   *            exception.\n   * @see #endDTD\n   * @see #startEntity\n   */\n  public void startDTD(String name, String publicId, String systemId)\n          throws SAXException\n  {\n    flushStartDoc();\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.startDTD(name, publicId, systemId);\n  }\n\n  /**\n   * Report the end of DTD declarations.\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #startDTD\n   */\n  public void endDTD() throws SAXException\n  {\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.endDTD();\n  }\n\n  /**\n   * Report the beginning of an entity in content.\n   *\n   * <p><strong>NOTE:</entity> entity references in attribute\n   * values -- and the start and end of the document entity --\n   * are never reported.</p>\n   *\n   * <p>The start and end of the external DTD subset are reported\n   * using the pseudo-name \"[dtd]\".  All other events must be\n   * properly nested within start/end entity events.</p>\n   *\n   * <p>Note that skipped entities will be reported through the\n   * {@link org.xml.sax.ContentHandler#skippedEntity skippedEntity}\n   * event, which is part of the ContentHandler interface.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @throws SAXException The application may raise an exception.\n   * @see #endEntity\n   * @see org.xml.sax.ext.DeclHandler#internalEntityDecl\n   * @see org.xml.sax.ext.DeclHandler#externalEntityDecl\n   */\n  public void startEntity(String name) throws SAXException\n  {\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.startEntity(name);\n  }\n\n  /**\n   * Report the end of an entity.\n   *\n   * @param name The name of the entity that is ending.\n   * @throws SAXException The application may raise an exception.\n   * @see #startEntity\n   */\n  public void endEntity(String name) throws SAXException\n  {\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.endEntity(name);\n  }\n\n  /**\n   * Report the start of a CDATA section.\n   *\n   * <p>The contents of the CDATA section will be reported through\n   * the regular {@link org.xml.sax.ContentHandler#characters\n   * characters} event.</p>\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #endCDATA\n   */\n  public void startCDATA() throws SAXException\n  {\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.startCDATA();\n  }\n\n  /**\n   * Report the end of a CDATA section.\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #startCDATA\n   */\n  public void endCDATA() throws SAXException\n  {\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.endCDATA();\n  }\n\n  /**\n   * Report an XML comment anywhere in the document.\n   *\n   * <p>This callback will be used for comments inside or outside the\n   * document element, including comments in the external DTD\n   * subset (if read).</p>\n   *\n   * @param ch An array holding the characters in the comment.\n   * @param start The starting position in the array.\n   * @param length The number of characters to use from the array.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void comment(char ch[], int start, int length) throws SAXException\n  {\n    flushStartDoc();\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.comment(ch, start, length);\n  }\n  \n  \n  /**\n     * Report an element type declaration.\n     *\n     * <p>The content model will consist of the string \"EMPTY\", the\n     * string \"ANY\", or a parenthesised group, optionally followed\n     * by an occurrence indicator.  The model will be normalized so\n     * that all whitespace is removed,and will include the enclosing\n     * parentheses.</p>\n     *\n     * @param name The element type name.\n     * @param model The content model as a normalized string.\n     * @exception SAXException The application may raise an exception.\n     */\n    public void elementDecl (String name, String model)\n        throws SAXException\n    {\n                        if (null != m_resultDeclHandler)\n                                m_resultDeclHandler.elementDecl(name, model);\n    }\n\n\n    /**\n     * Report an attribute type declaration.\n     *\n     * <p>Only the effective (first) declaration for an attribute will\n     * be reported.  The type will be one of the strings \"CDATA\",\n     * \"ID\", \"IDREF\", \"IDREFS\", \"NMTOKEN\", \"NMTOKENS\", \"ENTITY\",\n     * \"ENTITIES\", or \"NOTATION\", or a parenthesized token group with \n     * the separator \"|\" and all whitespace removed.</p>\n     *\n     * @param eName The name of the associated element.\n     * @param aName The name of the attribute.\n     * @param type A string representing the attribute type.\n     * @param valueDefault A string representing the attribute default\n     *        (\"#IMPLIED\", \"#REQUIRED\", or \"#FIXED\") or null if\n     *        none of these applies.\n     * @param value A string representing the attribute's default value,\n     *        or null if there is none.\n     * @exception SAXException The application may raise an exception.\n     */\n    public void attributeDecl (String eName,\n                                        String aName,\n                                        String type,\n                                        String valueDefault,\n                                        String value)\n        throws SAXException\n    {\n      if (null != m_resultDeclHandler)\n                                m_resultDeclHandler.attributeDecl(eName, aName, type, valueDefault, value);\n    }\n\n\n    /**\n     * Report an internal entity declaration.\n     *\n     * <p>Only the effective (first) declaration for each entity\n     * will be reported.</p>\n     *\n     * @param name The name of the entity.  If it is a parameter\n     *        entity, the name will begin with '%'.\n     * @param value The replacement text of the entity.\n     * @exception SAXException The application may raise an exception.\n     * @see #externalEntityDecl\n     * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n     */\n    public void internalEntityDecl (String name, String value)\n        throws SAXException\n    {\n      if (null != m_resultDeclHandler)\n                                m_resultDeclHandler.internalEntityDecl(name, value); \n    }\n\n\n    /**\n     * Report a parsed external entity declaration.\n     *\n     * <p>Only the effective (first) declaration for each entity\n     * will be reported.</p>\n     *\n     * @param name The name of the entity.  If it is a parameter\n     *        entity, the name will begin with '%'.\n     * @param publicId The declared public identifier of the entity, or\n     *        null if none was declared.\n     * @param systemId The declared system identifier of the entity.\n     * @exception SAXException The application may raise an exception.\n     * @see #internalEntityDecl\n     * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n     */\n    public void externalEntityDecl (String name, String publicId,\n                                             String systemId)\n        throws SAXException\n    {\n      if (null != m_resultDeclHandler)\n                                m_resultDeclHandler.externalEntityDecl(name, publicId, systemId);\n    }\n  \n  /**\n   * This is null unless we own the stream.\n   */\n  private java.io.FileOutputStream m_outputStream = null;\n\n  /** The content handler where result events will be sent. */\n  private ContentHandler m_resultContentHandler;\n\n  /** The lexical handler where result events will be sent. */\n  private LexicalHandler m_resultLexicalHandler;\n\n  /** The DTD handler where result events will be sent. */\n  private DTDHandler m_resultDTDHandler;\n  \n  /** The Decl handler where result events will be sent. */\n  private DeclHandler m_resultDeclHandler;\n\n  /** The Serializer, which may or may not be null. */\n  private Serializer m_serializer;\n\n  /** The Result object. */\n  private Result m_result;\n\n  /**\n   * The system ID, which is unused, but must be returned to fullfill the\n   *  TransformerHandler interface.\n   */\n  private String m_systemID;\n\n  /**\n   * The parameters, which is unused, but must be returned to fullfill the\n   *  Transformer interface.\n   */\n  private Hashtable m_params;\n\n  /** The error listener for TrAX errors and warnings. */\n  private ErrorListener m_errorListener =\n    new org.apache.xml.utils.DefaultErrorHandler();\n\n  /**\n   * The URIResolver, which is unused, but must be returned to fullfill the\n   *  TransformerHandler interface.\n   */\n  URIResolver m_URIResolver;\n\n  /** The output properties. */\n  private OutputProperties m_outputFormat;\n\n  /** Flag to set if we've found the first element, so we can tell if we have \n   *  to check to see if we should create an HTML serializer.      */\n  boolean m_foundFirstElement;", "functions": [{"function_name": "setResult", "code": "  public void setResult(Result result) throws IllegalArgumentException\n  {\n    if(null == result)\n    m_result = result;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setSystemId", "code": "  public void setSystemId(String systemID)\n  {\n    m_systemID = systemID;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSystemId", "code": "  public String getSystemId()\n  {\n    return m_systemID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTransformer", "code": "  public Transformer getTransformer()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createResultContentHandler", "code": "  private void createResultContentHandler(Result outputTarget)\n          throws TransformerException\n  {\n\n    if (outputTarget instanceof SAXResult)\n    {\n      SAXResult saxResult = (SAXResult) outputTarget;\n\n      m_resultContentHandler = saxResult.getHandler();\n      m_resultLexicalHandler = saxResult.getLexicalHandler();\n\n      if (m_resultContentHandler instanceof Serializer)\n      {\n\n        m_serializer = (Serializer) m_resultContentHandler;\n      }\n    }\n    else if (outputTarget instanceof DOMResult)\n    {\n      DOMResult domResult = (DOMResult) outputTarget;\n      Node outputNode = domResult.getNode();\n      Document doc;\n      short type;\n\n      if (null != outputNode)\n      {\n        type = outputNode.getNodeType();\n        doc = (Node.DOCUMENT_NODE == type)\n              ? (Document) outputNode : outputNode.getOwnerDocument();\n      }\n      else\n      {\n        try\n        {\n          DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n          dbf.setNamespaceAware(true);\n\n          DocumentBuilder db = dbf.newDocumentBuilder();\n\n          doc = db.newDocument();\n        }\n        catch (ParserConfigurationException pce)\n        {\n          throw new TransformerException(pce);\n        }\n\n        outputNode = doc;\n        type = outputNode.getNodeType();\n\n        ((DOMResult) outputTarget).setNode(outputNode);\n      }\n\n      m_resultContentHandler =\n        (Node.DOCUMENT_FRAGMENT_NODE == type)\n        ? new DOMBuilder(doc, (DocumentFragment) outputNode)\n        : new DOMBuilder(doc, outputNode);\n      m_resultLexicalHandler = (LexicalHandler) m_resultContentHandler;\n    }\n    else if (outputTarget instanceof StreamResult)\n    {\n      StreamResult sresult = (StreamResult) outputTarget;\n      String method = m_outputFormat.getProperty(OutputKeys.METHOD);\n\n      try\n      {\n        Serializer serializer =\n          SerializerFactory.getSerializer(m_outputFormat.getProperties());\n\n        m_serializer = serializer;\n\n        if (null != sresult.getWriter())\n          serializer.setWriter(sresult.getWriter());\n        else if (null != sresult.getOutputStream())\n          serializer.setOutputStream(sresult.getOutputStream());\n        else if (null != sresult.getSystemId())\n        {\n          String fileURL = sresult.getSystemId();\n\n          {\n            if (fileURL.substring(8).indexOf(\":\") >0)\n              fileURL = fileURL.substring(8);\n            else \n              fileURL = fileURL.substring(7);\n          }\n\n          m_outputStream = new java.io.FileOutputStream(fileURL);\n          serializer.setOutputStream(m_outputStream);\n        }\n        else\n\n        m_resultContentHandler = serializer.asContentHandler();\n      }\n      catch (IOException ioe)\n      {\n        throw new TransformerException(ioe);\n      }\n    }\n    else\n    {\n    }\n\n    if (m_resultContentHandler instanceof DTDHandler)\n      m_resultDTDHandler = (DTDHandler) m_resultContentHandler;\n    \n    if (m_resultContentHandler instanceof DeclHandler)\n      m_resultDeclHandler = (DeclHandler) m_resultContentHandler;\n\n    if (m_resultContentHandler instanceof LexicalHandler)\n      m_resultLexicalHandler = (LexicalHandler) m_resultContentHandler;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BINARY_OP", "ASSIGN", "ASSIGN", "TRY", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CATCH", "IF", "VAR_DECL", "COND_EXPR", "TRY", "LITERAL_ANCHOR", "CALL", "ASSIGN", "THROW_RAISE", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CATCH", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "COND_EXPR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "ASSIGN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "IF", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [4, 10], [1, 11], [2, 12], [3, 13], [9, 14], [9, 15], [4, 16], [4, 17], [14, 18], [9, 19], [9, 20], [9, 21], [9, 22], [9, 23], [16, 24], [4, 25], [4, 26], [14, 27], [14, 28], [14, 29], [9, 30], [9, 31], [19, 32], [25, 33], [26, 34], [27, 35], [27, 36], [27, 37], [31, 38], [19, 39], [32, 40], [22, 41], [16, 42], [35, 43], [36, 44], [36, 45], [27, 46], [28, 47], [38, 48], [38, 49], [38, 50], [19, 51], [19, 52], [39, 53], [39, 54], [39, 55], [19, 56], [19, 57], [43, 58], [44, 59], [44, 60], [36, 61], [45, 62], [45, 63], [37, 64], [51, 65], [53, 66], [39, 67], [39, 68], [56, 69], [57, 70], [59, 71], [44, 72], [60, 73], [60, 74], [61, 75], [64, 76], [66, 77], [67, 78], [54, 79], [68, 80], [55, 81], [69, 82], [69, 83], [59, 84], [59, 85], [71, 86], [71, 87], [72, 88], [84, 89], [59, 90], [59, 91], [59, 92], [91, 93], [92, 94], [85, 95], [92, 96], [92, 97], [94, 98], [94, 99], [96, 100], [97, 101], [99, 102], [99, 103], [100, 104], [101, 105], [103, 106], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 4], [11, 1], [12, 2], [13, 3], [14, 9], [15, 9], [16, 4], [17, 4], [18, 14], [19, 9], [20, 9], [21, 9], [22, 9], [23, 9], [24, 16], [25, 4], [26, 4], [27, 14], [28, 14], [29, 14], [30, 9], [31, 9], [32, 19], [33, 25], [34, 26], [35, 27], [36, 27], [37, 27], [38, 31], [39, 19], [40, 32], [41, 22], [42, 16], [43, 35], [44, 36], [45, 36], [46, 27], [47, 28], [48, 38], [49, 38], [50, 38], [51, 19], [52, 19], [53, 39], [54, 39], [55, 39], [56, 19], [57, 19], [58, 43], [59, 44], [60, 44], [61, 36], [62, 45], [63, 45], [64, 37], [65, 51], [66, 53], [67, 39], [68, 39], [69, 56], [70, 57], [71, 59], [72, 44], [73, 60], [74, 60], [75, 61], [76, 64], [77, 66], [78, 67], [79, 54], [80, 68], [81, 55], [82, 69], [83, 69], [84, 59], [85, 59], [86, 71], [87, 71], [88, 72], [89, 84], [90, 59], [91, 59], [92, 59], [93, 91], [94, 92], [95, 85], [96, 92], [97, 92], [98, 94], [99, 94], [100, 96], [101, 97], [102, 99], [103, 99], [104, 100], [105, 101], [106, 103], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106]]}, {"function_name": "transform", "code": "  public void transform(Source source, Result outputTarget)\n          throws TransformerException\n  {\n\n    createResultContentHandler(outputTarget);\n\n    try\n    {\n      if (source instanceof DOMSource)\n      {\n        DOMSource dsource = (DOMSource) source;\n  \n        m_systemID = dsource.getSystemId();\n  \n        Node dNode = dsource.getNode();\n  \n        if (null != dNode)\n        {\n          try\n          {\n            if(dNode.getNodeType() != Node.DOCUMENT_NODE)\n              this.startDocument();\n            try\n            {\n              if(dNode.getNodeType() == Node.ATTRIBUTE_NODE)\n              {\n                String data = dNode.getNodeValue();\n                char[] chars = data.toCharArray();\n                characters(chars, 0, chars.length);\n              }\n              else\n              {\n                TreeWalker walker = new TreeWalker(this, new org.apache.xpath.DOM2Helper(), m_systemID);\n                walker.traverse(dNode);\n              }\n            }\n            finally\n            {\n              if(dNode.getNodeType() != Node.DOCUMENT_NODE)\n                this.endDocument();\n            }\n          }\n          catch (SAXException se)\n          {\n            throw new TransformerException(se);\n          }\n  \n          return;\n        }\n        else\n        {\n          String messageStr = XSLMessages.createMessage(\n            XSLTErrorResources.ER_ILLEGAL_DOMSOURCE_INPUT, null);\n  \n          throw new IllegalArgumentException(messageStr);\n        }\n      }\n  \n      InputSource xmlSource = SAXSource.sourceToInputSource(source);\n  \n      if (null == xmlSource)\n      {\n      }\n  \n      if (null != xmlSource.getSystemId())\n        m_systemID = xmlSource.getSystemId();\n  \n      try\n      {\n        XMLReader reader = null;\n  \n        if (source instanceof SAXSource)\n          reader = ((SAXSource) source).getXMLReader();\n          \n        boolean isUserReader = (reader != null);\n  \n        if (null == reader)\n        {\n  \n          try\n          {\n            javax.xml.parsers.SAXParserFactory factory =\n              javax.xml.parsers.SAXParserFactory.newInstance();\n  \n            factory.setNamespaceAware(true);\n  \n            javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser();\n  \n            reader = jaxpParser.getXMLReader();\n          }\n          catch (javax.xml.parsers.ParserConfigurationException ex)\n          {\n            throw new org.xml.sax.SAXException(ex);\n          }\n          catch (javax.xml.parsers.FactoryConfigurationError ex1)\n          {\n            throw new org.xml.sax.SAXException(ex1.toString());\n          }\n          catch (NoSuchMethodError ex2){}\n          catch (AbstractMethodError ame){}\n        }\n  \n        if (null == reader)\n        {\n          reader = XMLReaderFactory.createXMLReader();\n        }\n  \n        try\n        {\n             \n        }\n        catch (org.xml.sax.SAXException se)\n        {\n  \n        }\n  \n        ContentHandler inputHandler = this;\n  \n        reader.setContentHandler(inputHandler);\n  \n        if (inputHandler instanceof org.xml.sax.DTDHandler)\n          reader.setDTDHandler((org.xml.sax.DTDHandler) inputHandler);\n  \n        try\n        {\n          if (inputHandler instanceof org.xml.sax.ext.LexicalHandler){}\n                               \n          if (inputHandler instanceof org.xml.sax.ext.DeclHandler)\n            reader.setProperty(\n              inputHandler);\n        }\n        catch (org.xml.sax.SAXException se){}\n  \n        try\n        {\n          if (inputHandler instanceof org.xml.sax.ext.LexicalHandler){}\n\t\t  \n          if (inputHandler instanceof org.xml.sax.ext.DeclHandler){}\n        }\n        catch (org.xml.sax.SAXNotRecognizedException snre){}\n  \n        reader.parse(xmlSource);\n      }\n      catch (org.apache.xml.utils.WrappedRuntimeException wre)\n      {\n        Throwable throwable = wre.getException();\n  \n        while (throwable\n               instanceof org.apache.xml.utils.WrappedRuntimeException)\n        {\n          throwable =\n            ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException();\n        }\n  \n        throw new TransformerException(wre.getException());\n      }\n      catch (org.xml.sax.SAXException se)\n      {\n        throw new TransformerException(se);\n      }\n      catch (IOException ioe)\n      {\n        throw new TransformerException(ioe);\n      }\n    }\n    finally\n    {\n      if(null != m_outputStream)\n      {\n        try\n        {\n          m_outputStream.close();\n        }\n        catch(IOException ioe){}\n        m_outputStream = null;", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "IF", "TRY", "IF", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "CATCH", "CATCH", "CATCH", "TRY", "TRY", "IF", "VAR_DECL", "TRY", "IF", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "THROW_RAISE", "LOOP", "VAR_DECL", "CALL", "CATCH", "IF", "IF", "CATCH", "IF", "IF", "BINARY_OP", "CALL", "CATCH", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "CATCH", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "TRY", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CATCH", "CATCH", "CATCH", "CATCH", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "RETURN", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "THROW_RAISE", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CATCH", "TRY", "IF", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "THROW_RAISE", "IF", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [0, 10], [4, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [6, 25], [7, 26], [9, 27], [4, 28], [11, 29], [12, 30], [13, 31], [14, 32], [14, 33], [14, 34], [5, 35], [15, 36], [15, 37], [15, 38], [16, 39], [16, 40], [16, 41], [17, 42], [5, 43], [19, 44], [20, 45], [21, 46], [23, 47], [6, 48], [25, 49], [25, 50], [26, 51], [8, 52], [9, 53], [9, 54], [9, 55], [4, 56], [28, 57], [30, 58], [31, 59], [32, 60], [33, 61], [37, 62], [38, 63], [40, 64], [41, 65], [17, 66], [45, 67], [21, 68], [46, 69], [22, 70], [23, 71], [24, 72], [48, 73], [53, 74], [9, 75], [56, 76], [28, 77], [60, 78], [34, 79], [40, 80], [20, 81], [68, 82], [68, 83], [68, 84], [68, 85], [68, 86], [68, 87], [70, 88], [53, 89], [53, 90], [53, 91], [53, 92], [74, 93], [54, 94], [75, 95], [33, 96], [81, 97], [84, 98], [85, 99], [68, 100], [68, 101], [89, 102], [92, 103], [92, 104], [92, 105], [98, 106], [99, 107], [100, 108], [86, 109], [101, 110], [87, 111], [90, 112], [103, 113], [104, 114], [104, 115], [105, 116], [106, 117], [112, 118], [113, 119], [114, 120], [115, 121], [116, 122], [120, 123], [115, 124], [115, 125], [115, 126], [121, 127], [105, 128], [114, 129], [115, 130], [115, 131], [124, 132], [131, 133], [125, 134], [126, 135], [132, 136], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 0], [11, 4], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 5], [21, 5], [22, 5], [23, 5], [24, 5], [25, 6], [26, 7], [27, 9], [28, 4], [29, 11], [30, 12], [31, 13], [32, 14], [33, 14], [34, 14], [35, 5], [36, 15], [37, 15], [38, 15], [39, 16], [40, 16], [41, 16], [42, 17], [43, 5], [44, 19], [45, 20], [46, 21], [47, 23], [48, 6], [49, 25], [50, 25], [51, 26], [52, 8], [53, 9], [54, 9], [55, 9], [56, 4], [57, 28], [58, 30], [59, 31], [60, 32], [61, 33], [62, 37], [63, 38], [64, 40], [65, 41], [66, 17], [67, 45], [68, 21], [69, 46], [70, 22], [71, 23], [72, 24], [73, 48], [74, 53], [75, 9], [76, 56], [77, 28], [78, 60], [79, 34], [80, 40], [81, 20], [82, 68], [83, 68], [84, 68], [85, 68], [86, 68], [87, 68], [88, 70], [89, 53], [90, 53], [91, 53], [92, 53], [93, 74], [94, 54], [95, 75], [96, 33], [97, 81], [98, 84], [99, 85], [100, 68], [101, 68], [102, 89], [103, 92], [104, 92], [105, 92], [106, 98], [107, 99], [108, 100], [109, 86], [110, 101], [111, 87], [112, 90], [113, 103], [114, 104], [115, 104], [116, 105], [117, 106], [118, 112], [119, 113], [120, 114], [121, 115], [122, 116], [123, 120], [124, 115], [125, 115], [126, 115], [127, 121], [128, 105], [129, 114], [130, 115], [131, 115], [132, 124], [133, 131], [134, 125], [135, 126], [136, 132], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136]]}, {"function_name": "setParameter", "code": "  public void setParameter(String name, Object value)\n  {\n\n    if (null == m_params)\n    {\n      m_params = new Hashtable();\n    }\n\n    m_params.put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getParameter", "code": "  public Object getParameter(String name)\n  {\n\n    if (null == m_params)\n      return null;\n\n    return m_params.get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "clearParameters", "code": "  public void clearParameters()\n  {\n\n    if (null == m_params)\n      return;\n\n    m_params.clear();", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setURIResolver", "code": "  public void setURIResolver(URIResolver resolver)\n  {\n    m_URIResolver = resolver;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getURIResolver", "code": "  public URIResolver getURIResolver()\n  {\n    return m_URIResolver;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setOutputProperties", "code": "  public void setOutputProperties(Properties oformat)\n          throws IllegalArgumentException\n  {\n\n    if (null != oformat)\n    {\n\n      String method = (String) oformat.get(OutputKeys.METHOD);\n\n      if (null != method)\n        m_outputFormat = new OutputProperties(method);\n      else\n        m_outputFormat = new OutputProperties();\n    }\n\n    if (null != oformat)\n    {\n      m_outputFormat.copyFrom(oformat);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [2, 8], [5, 9], [1, 10], [7, 11], [7, 12], [7, 13], [11, 14], [12, 15], [13, 16], [8, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 2], [9, 5], [10, 1], [11, 7], [12, 7], [13, 7], [14, 11], [15, 12], [16, 13], [17, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getOutputProperties", "code": "  public Properties getOutputProperties()\n  {\n    return (Properties) m_outputFormat.getProperties().clone();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setOutputProperty", "code": "  public void setOutputProperty(String name, String value)\n          throws IllegalArgumentException\n  {\n\n    if (!m_outputFormat.isLegalPropertyKey(name))\n\n    m_outputFormat.setProperty(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getOutputProperty", "code": "  public String getOutputProperty(String name) throws IllegalArgumentException\n  {\n\n    String value = null;\n    OutputProperties props = m_outputFormat;\n\n    value = props.getProperty(name);\n\n    if (null == value)\n    {\n      if (!props.isLegalPropertyKey(name)){}\n    }\n\n    return value;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [2, 8], [6, 9], [7, 10], [4, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 2], [9, 6], [10, 7], [11, 4], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "setErrorListener", "code": "  public void setErrorListener(ErrorListener listener)\n          throws IllegalArgumentException\n  {\n    m_errorListener = listener;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getErrorListener", "code": "  public ErrorListener getErrorListener()\n  {\n    return m_errorListener;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "notationDecl", "code": "  public void notationDecl(String name, String publicId, String systemId)\n          throws SAXException\n  {\n    if (null != m_resultDTDHandler)\n      m_resultDTDHandler.notationDecl(name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "unparsedEntityDecl", "code": "  public void unparsedEntityDecl(\n          String name, String publicId, String systemId, String notationName)\n            throws SAXException\n  {\n\n    if (null != m_resultDTDHandler)\n      m_resultDTDHandler.unparsedEntityDecl(name, publicId, systemId,\n                                            notationName);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator)\n  {\n    try\n    {\n      if (null == m_resultContentHandler)\n        createResultContentHandler(m_result);\n    }\n    catch (TransformerException te)\n    {\n      throw new org.apache.xml.utils.WrappedRuntimeException(te);\n    }\n\n    m_resultContentHandler.setDocumentLocator(locator);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CALL", "CATCH", "IF", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [6, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 6], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "startDocument", "code": "  public void startDocument() throws SAXException\n  {\n\n    try\n    {\n      if (null == m_resultContentHandler)\n        createResultContentHandler(m_result);\n    }\n    catch (TransformerException te)\n    {\n      throw new SAXException(te.getMessage(), te);\n    }\n\n    m_flushedStartDoc = false;\n    m_foundFirstElement = false;", "ast_nodes": ["FUNC_DECL", "TRY", "ASSIGN", "ASSIGN", "CATCH", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [3, 7], [4, 8], [5, 9], [8, 10], [5, 11], [9, 12], [10, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 3], [8, 4], [9, 5], [10, 8], [11, 5], [12, 9], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "flushStartDoc", "code": "  protected final void flushStartDoc()\n     throws SAXException\n  {\n    if(!m_flushedStartDoc)\n    {\n      m_resultContentHandler.startDocument();\n      m_flushedStartDoc = true;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "endDocument", "code": "  public void endDocument() throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.endDocument();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(String prefix, String uri)\n          throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.startPrefixMapping(prefix, uri);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(String prefix) throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.endPrefixMapping(prefix);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startElement", "code": "  public void startElement(\n          String uri, String localName, String qName, Attributes attributes)\n            throws SAXException\n  {\n\n    if (!m_foundFirstElement && null != m_serializer)\n    {\n      m_foundFirstElement = true;\n\n      Serializer newSerializer;\n\n      try\n      {\n        newSerializer = SerializerSwitcher.switchSerializerIfHTML(uri,\n                localName, m_outputFormat.getProperties(), m_serializer);\n      }\n      catch (TransformerException te)\n      {\n        throw new SAXException(te);\n      }\n\n      if (newSerializer != m_serializer)\n      {\n        try\n        {\n          m_resultContentHandler = newSerializer.asContentHandler();\n        }\n        catch(Exception e){\n          throw new SAXException(ioe);\n        }\n\n        if (m_resultContentHandler instanceof DTDHandler)\n          m_resultDTDHandler = (DTDHandler) m_resultContentHandler;\n\n        if (m_resultContentHandler instanceof LexicalHandler)\n          m_resultLexicalHandler = (LexicalHandler) m_resultContentHandler;\n\n        m_serializer = newSerializer;\n      }\n    }\n    flushStartDoc();\n    m_resultContentHandler.startElement(uri, localName, qName, attributes);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "IF", "TRY", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "TRY", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "CATCH", "CALL", "CALL", "ASSIGN", "ASSIGN", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [1, 11], [8, 12], [9, 13], [10, 14], [1, 15], [12, 16], [9, 17], [9, 18], [9, 19], [14, 20], [10, 21], [15, 22], [9, 23], [17, 24], [18, 25], [19, 26], [20, 27], [21, 28], [17, 29], [18, 30], [26, 31], [19, 32], [28, 33], [31, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 1], [12, 8], [13, 9], [14, 10], [15, 1], [16, 12], [17, 9], [18, 9], [19, 9], [20, 14], [21, 10], [22, 15], [23, 9], [24, 17], [25, 18], [26, 19], [27, 20], [28, 21], [29, 17], [30, 18], [31, 26], [32, 19], [33, 28], [34, 31], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "endElement", "code": "  public void endElement(String uri, String localName, String qName)\n          throws SAXException\n  {\n    m_resultContentHandler.endElement(uri, localName, qName);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "characters", "code": "  public void characters(char ch[], int start, int length) throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.characters(ch, start, length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char ch[], int start, int length)\n          throws SAXException\n  {\n    m_resultContentHandler.ignorableWhitespace(ch, start, length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(String target, String data)\n          throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.processingInstruction(target, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(String name) throws SAXException\n  {\n    flushStartDoc();\n    m_resultContentHandler.skippedEntity(name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startDTD", "code": "  public void startDTD(String name, String publicId, String systemId)\n          throws SAXException\n  {\n    flushStartDoc();\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.startDTD(name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "endDTD", "code": "  public void endDTD() throws SAXException\n  {\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.endDTD();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startEntity", "code": "  public void startEntity(String name) throws SAXException\n  {\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.startEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endEntity", "code": "  public void endEntity(String name) throws SAXException\n  {\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.endEntity(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "startCDATA", "code": "  public void startCDATA() throws SAXException\n  {\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.startCDATA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "endCDATA", "code": "  public void endCDATA() throws SAXException\n  {\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.endCDATA();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [1, 0], [2, 1], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "comment", "code": "  public void comment(char ch[], int start, int length) throws SAXException\n  {\n    flushStartDoc();\n    if (null != m_resultLexicalHandler)\n      m_resultLexicalHandler.comment(ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "elementDecl", "code": "    public void elementDecl (String name, String model)\n        throws SAXException\n    {\n                        if (null != m_resultDeclHandler)\n                                m_resultDeclHandler.elementDecl(name, model);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "attributeDecl", "code": "    public void attributeDecl (String eName,\n                                        String aName,\n                                        String type,\n                                        String valueDefault,\n                                        String value)\n        throws SAXException\n    {\n      if (null != m_resultDeclHandler)\n                                m_resultDeclHandler.attributeDecl(eName, aName, type, valueDefault, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "internalEntityDecl", "code": "    public void internalEntityDecl (String name, String value)\n        throws SAXException\n    {\n      if (null != m_resultDeclHandler)\n                                m_resultDeclHandler.internalEntityDecl(name, value); ", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "externalEntityDecl", "code": "    public void externalEntityDecl (String name, String publicId,\n                                             String systemId)\n        throws SAXException\n    {\n      if (null != m_resultDeclHandler)\n                                m_resultDeclHandler.externalEntityDecl(name, publicId, systemId);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "TransformerIdentityImpl", "code": "  public TransformerIdentityImpl()\n  {\n    m_outputFormat = new OutputProperties(Method.XML);", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.7-866", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/Mkdir.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Mkdir", "code": "public class Mkdir extends Task {\n\n    private static final int MKDIR_RETRY_SLEEP_MILLIS = 10;\n    /**\n     * our little directory\n     */\n    private File dir;\n\n    /**\n     * create the directory and all parents\n     * @throws BuildException if dir is somehow invalid, or creation failed.\n     */\n    public void execute() throws BuildException {\n        if (dir == null) {\n            throw new BuildException(\"dir attribute is required\", getLocation());\n        }\n\n        if (dir.isFile()) {\n            throw new BuildException(\"Unable to create directory as a file \"\n                                     + \"already exists with that name: \"\n                                     + dir.getAbsolutePath());\n        }\n\n        if (!dir.exists()) {\n            boolean result = mkdirs(dir);\n            if (!result) {\n                String msg = \"Directory \" + dir.getAbsolutePath()\n                    + \" creation was not successful for an unknown reason\";\n                throw new BuildException(msg, getLocation());\n            }\n            log(\"Created dir: \" + dir.getAbsolutePath());\n        } else {\n            log(\"Skipping \" + dir.getAbsolutePath()\n                + \" because it already exists.\", Project.MSG_VERBOSE);\n        }\n    }\n\n    /**\n     * the directory to create; required.\n     *\n     * @param dir the directory to be made.\n     */\n    public void setDir(File dir) {\n        this.dir = dir;\n    }\n    /**\n     * Attempt to fix possible race condition when creating\n     * directories on WinXP. If the mkdirs does not work,\n     * wait a little and try again.\n     */\n    private boolean mkdirs(File f) {\n        if (!f.mkdirs()) {\n            try {\n                Thread.sleep(MKDIR_RETRY_SLEEP_MILLIS);\n                return f.mkdirs();\n            } catch (InterruptedException ex) {\n                return f.mkdirs();\n            }\n        }\n        return true;", "functions": [{"function_name": "execute", "code": "    public void execute() throws BuildException {\n        if (dir == null) {\n            throw new BuildException(\"dir attribute is required\", getLocation());\n        }\n\n        if (dir.isFile()) {\n            throw new BuildException(\"Unable to create directory as a file \"\n                                     + \"already exists with that name: \"\n                                     + dir.getAbsolutePath());\n        }\n\n        if (!dir.exists()) {\n            boolean result = mkdirs(dir);\n            if (!result) {\n                String msg = \"Directory \" + dir.getAbsolutePath()\n                    + \" creation was not successful for an unknown reason\";\n                throw new BuildException(msg, getLocation());\n            }\n            log(\"Created dir: \" + dir.getAbsolutePath());\n        } else {\n            log(\"Skipping \" + dir.getAbsolutePath()\n                + \" because it already exists.\", Project.MSG_VERBOSE);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "CALL", "CALL", "BINARY_OP", "IF", "VAR_DECL", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [2, 9], [3, 10], [6, 11], [1, 12], [1, 13], [9, 14], [10, 15], [12, 16], [13, 17], [7, 18], [7, 19], [8, 20], [14, 21], [15, 22], [15, 23], [16, 24], [16, 25], [17, 26], [17, 27], [18, 28], [21, 29], [21, 30], [25, 31], [25, 32], [28, 33], [19, 34], [30, 35], [30, 36], [34, 37], [34, 38], [38, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 2], [10, 3], [11, 6], [12, 1], [13, 1], [14, 9], [15, 10], [16, 12], [17, 13], [18, 7], [19, 7], [20, 8], [21, 14], [22, 15], [23, 15], [24, 16], [25, 16], [26, 17], [27, 17], [28, 18], [29, 21], [30, 21], [31, 25], [32, 25], [33, 28], [34, 19], [35, 30], [36, 30], [37, 34], [38, 34], [39, 38], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "setDir", "code": "    public void setDir(File dir) {\n        this.dir = dir;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "mkdirs", "code": "    private boolean mkdirs(File f) {\n        if (!f.mkdirs()) {\n            try {\n                Thread.sleep(MKDIR_RETRY_SLEEP_MILLIS);\n                return f.mkdirs();\n            } catch (InterruptedException ex) {\n                return f.mkdirs();\n            }\n        }\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "CALL", "TRY", "CATCH", "RETURN", "RETURN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [6, 7], [6, 8], [7, 9], [8, 10], [6, 11], [9, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 6], [8, 6], [9, 7], [10, 8], [11, 6], [12, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "xalan-2.4-6401", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xpath/XPath.java", "language": "java", "name": "org.apache.xpath.XPath", "code": "public class XPath implements Serializable, ExpressionOwner\n{\n\n  /** The top of the expression tree. \n   *  @serial */\n  private Expression m_mainExp;\n\n  /**\n   * Get the raw Expression object that this class wraps.\n   *\n   *\n   * @return the raw Expression object, which should not normally be null.\n   */\n  public Expression getExpression()\n  {\n    return m_mainExp;\n  }\n  \n  /**\n   * This function is used to fixup variables from QNames to stack frame \n   * indexes at stylesheet build time.\n   * @param vars List of QNames that correspond to variables.  This list \n   * should be searched backwards for the first qualified name that \n   * corresponds to the variable reference qname.  The position of the \n   * QName in the vector from the start of the vector will be its position \n   * in the stack frame (but variables above the globalsTop value will need \n   * to be offset to the current stack frame).\n   */\n  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_mainExp.fixupVariables(vars, globalsSize);\n  }\n\n  /**\n   * Set the raw expression object for this object.\n   *\n   *\n   * @param exp the raw Expression object, which should not normally be null.\n   */\n  public void setExpression(Expression exp)\n  {\n  \tif(null != m_mainExp)\n    m_mainExp = exp;\n  }\n\n  /**\n   * Get the SourceLocator on the expression object.\n   *\n   *\n   * @return the SourceLocator on the expression object, which may be null.\n   */\n  public SourceLocator getLocator()\n  {\n    return m_mainExp;\n  }\n\n\n  /** The pattern string, mainly kept around for diagnostic purposes.\n   *  @serial  */\n  String m_patternString;\n\n  /**\n   * Return the XPath string associated with this object.\n   *\n   *\n   * @return the XPath string associated with this object.\n   */\n  public String getPatternString()\n  {\n    return m_patternString;\n  }\n\n  /** Represents a select type expression. */\n  public static final int SELECT = 0;\n\n  /** Represents a match type expression.  */\n  public static final int MATCH = 1;\n\n  /**\n   * Construct an XPath object.  \n   *\n   * (Needs review -sc) This method initializes an XPathParser/\n   * Compiler and compiles the expression.\n   * @param exprString The XPath expression.\n   * @param locator The location of the expression, may be null.\n   * @param prefixResolver A prefix resolver to use to resolve prefixes to \n   *                       namespace URIs.\n   * @param type one of {@link #SELECT} or {@link #MATCH}.\n   * @param errorListener The error listener, or null if default should be used.\n   *\n   * @throws javax.xml.transform.TransformerException if syntax or other error.\n   */\n  public XPath(\n          String exprString, SourceLocator locator, PrefixResolver prefixResolver, int type,\n          ErrorListener errorListener)\n            throws javax.xml.transform.TransformerException\n  {      \n    if(null == errorListener)\n      errorListener = new org.apache.xml.utils.DefaultErrorHandler();\n    \n    m_patternString = exprString;\n\n    XPathParser parser = new XPathParser(errorListener, locator);\n    Compiler compiler = new Compiler(errorListener, locator);\n\n    if (SELECT == type)\n      parser.initXPath(compiler, exprString, prefixResolver);\n    else if (MATCH == type)\n      parser.initMatchPattern(compiler, exprString, prefixResolver);\n    else{}\n\n    Expression expr = compiler.compile(0);\n\n    this.setExpression(expr);\n    \n    if((null != locator) && locator instanceof ExpressionNode)\n    {\n    \texpr.exprSetParent((ExpressionNode)locator);\n    }\n\n  }\n  \n  /**\n   * Construct an XPath object.  \n   *\n   * (Needs review -sc) This method initializes an XPathParser/\n   * Compiler and compiles the expression.\n   * @param exprString The XPath expression.\n   * @param locator The location of the expression, may be null.\n   * @param prefixResolver A prefix resolver to use to resolve prefixes to \n   *                       namespace URIs.\n   * @param type one of {@link #SELECT} or {@link #MATCH}.\n   *\n   * @throws javax.xml.transform.TransformerException if syntax or other error.\n   */\n  public XPath(\n          String exprString, SourceLocator locator, PrefixResolver prefixResolver, int type)\n            throws javax.xml.transform.TransformerException\n  {  \n    this(exprString, locator, prefixResolver, type, null);    \n  }\n\n  /**\n   * Construct an XPath object.\n   *\n   * @param expr The Expression object.\n   *\n   * @throws javax.xml.transform.TransformerException if syntax or other error.\n   */\n  public XPath(Expression expr)\n  {  \n    this.setExpression(expr);   \n  }\n  \n  /**\n   * <meta name=\"usage\" content=\"experimental\"/>\n   * Given an expression and a context, evaluate the XPath\n   * and return the result.\n   * \n   * @param xctxt The execution context.\n   * @param contextNode The node that \".\" expresses.\n   * @param namespaceContext The context in which namespaces in the\n   * XPath are supposed to be expanded.\n   *\n   * @return The result of the XPath or null if callbacks are used.\n   * @throws TransformerException thrown if\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(\n          XPathContext xctxt, org.w3c.dom.Node contextNode, \n          PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n    return execute(\n          xctxt, xctxt.getDTMHandleFromNode(contextNode), \n          namespaceContext);\n  }\n  \n\n  /**\n   * <meta name=\"usage\" content=\"experimental\"/>\n   * Given an expression and a context, evaluate the XPath\n   * and return the result.\n   * \n   * @param xctxt The execution context.\n   * @param contextNode The node that \".\" expresses.\n   * @param namespaceContext The context in which namespaces in the\n   * XPath are supposed to be expanded.\n   * \n   * @throws TransformerException thrown if the active ProblemListener decides\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public XObject execute(\n          XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushNamespaceContext(namespaceContext);\n\n    xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n    XObject xobj = null;\n\n    try\n    {\n      xobj = m_mainExp.execute(xctxt);\n    }\n    catch (TransformerException te)\n    {\n      te.setLocator(this.getLocator());\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.error(te);\n      }\n      else\n        throw te;\n    }\n    catch (Exception e)\n    {\n      while (e instanceof org.apache.xml.utils.WrappedRuntimeException)\n      {\n        e = ((org.apache.xml.utils.WrappedRuntimeException) e).getException();\n      }\n\n      String msg = e.getMessage();\n      msg = (msg == null || msg.length()== 0)? \"Unknown error in XPath\" : msg;\n      TransformerException te = new TransformerException(msg,\n              getLocator(), e);\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.fatalError(te);\n      }\n      else\n        throw te;\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n\n      xctxt.popCurrentNodeAndExpression();\n    }\n\n    return xobj;\n  }\n  \n  /**\n   * <meta name=\"usage\" content=\"experimental\"/>\n   * Given an expression and a context, evaluate the XPath\n   * and return the result.\n   * \n   * @param xctxt The execution context.\n   * @param contextNode The node that \".\" expresses.\n   * @param namespaceContext The context in which namespaces in the\n   * XPath are supposed to be expanded.\n   * \n   * @throws TransformerException thrown if the active ProblemListener decides\n   * the error condition is severe enough to halt processing.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public boolean bool(\n          XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushNamespaceContext(namespaceContext);\n\n    xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n    try\n    {\n      return m_mainExp.bool(xctxt);\n    }\n    catch (TransformerException te)\n    {\n      te.setLocator(this.getLocator());\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.error(te);\n      }\n      else\n        throw te;\n    }\n    catch (Exception e)\n    {\n      while (e instanceof org.apache.xml.utils.WrappedRuntimeException)\n      {\n        e = ((org.apache.xml.utils.WrappedRuntimeException) e).getException();\n      }\n\n      String msg = e.getMessage();\n      msg = (msg == null || msg.length()== 0)? \"Unknown error in XPath\" : msg;\n      TransformerException te = new TransformerException(msg,\n              getLocator(), e);\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.fatalError(te);\n      }\n      else\n        throw te;\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n\n      xctxt.popCurrentNodeAndExpression();\n    }\n\n    return false;\n  }\n\n  /** Set to true to get diagnostic messages about the result of \n   *  match pattern testing.  */\n  private static final boolean DEBUG_MATCHES = false;\n\n  /**\n   * Get the match score of the given node.\n   *\n   * @param xctxt XPath runtime context.\n   * @param context The current source tree context node.\n   * \n   * @return score, one of {@link #MATCH_SCORE_NODETEST},\n   * {@link #MATCH_SCORE_NONE}, {@link #MATCH_SCORE_OTHER}, \n   * or {@link #MATCH_SCORE_QNAME}.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  public double getMatchScore(XPathContext xctxt, int context)\n          throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushCurrentNode(context);\n    xctxt.pushCurrentExpressionNode(context);\n\n    try\n    {\n      XObject score = m_mainExp.execute(xctxt);\n\n      if (DEBUG_MATCHES)\n      {\n        DTM dtm = xctxt.getDTM(context);\n        System.out.println(\"score: \" + score.num() + \" for \"\n                           + dtm.getNodeName(context) + \" for xpath \"\n                           + this.getPatternString());\n      }\n\n      return score.num();\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n      xctxt.popCurrentExpressionNode();\n    }\n\n  }\n\n  /**\n   * Install a built-in function.\n   * @param name The unqualified name of the function; not currently used.\n   * @param funcIndex The index of the function in the table.\n   * @param func An Implementation of an XPath Function object.\n   * @return the position of the function in the internal index.\n   */\n  public void installFunction(String name, int funcIndex, Function func)\n  {\n    FunctionTable.installFunction(func, funcIndex);\n  }\n\n  /**\n   * Warn the user of an problem.\n   *\n   * @param xctxt The XPath runtime context.\n   * @param sourceNode Not used.\n   * @param msg An error number that corresponds to one of the numbers found \n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is \n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which \n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to \n   *                              throw an exception.\n   */\n  public void warn(\n          XPathContext xctxt, int sourceNode, int msg, Object[] args)\n            throws javax.xml.transform.TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHWarning(msg, args);\n    ErrorListener ehandler = xctxt.getErrorListener();\n\n    if (null != ehandler)\n    {\n\n      ehandler.warning(new TransformerException(fmsg, (SAXSourceLocator)xctxt.getSAXLocator()));\n    }\n  }\n\n  /**\n   * Tell the user of an assertion error, and probably throw an\n   * exception.\n   *\n   * @param b  If false, a runtime exception will be thrown.\n   * @param msg The assertion message, which should be informative.\n   * \n   * @throws RuntimeException if the b argument is false.\n   */\n  public void assertion(boolean b, String msg)\n  {\n\n    if (!b)\n    {\n      String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ msg });\n\n      throw new RuntimeException(fMsg);\n    }\n  }\n\n  /**\n   * Tell the user of an error, and probably throw an\n   * exception.\n   *\n   * @param xctxt The XPath runtime context.\n   * @param sourceNode Not used.\n   * @param msg An error number that corresponds to one of the numbers found \n   *            in {@link org.apache.xpath.res.XPATHErrorResources}, which is \n   *            a key for a format string.\n   * @param args An array of arguments represented in the format string, which \n   *             may be null.\n   *\n   * @throws TransformerException if the current ErrorListoner determines to \n   *                              throw an exception.\n   */\n  public void error(\n          XPathContext xctxt, int sourceNode, int msg, Object[] args)\n            throws javax.xml.transform.TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHMessage(msg, args);\n    ErrorListener ehandler = xctxt.getErrorListener();\n\n    if (null != ehandler)\n    {\n      ehandler.fatalError(new TransformerException(fmsg,\n                              (SAXSourceLocator)xctxt.getSAXLocator()));\n    }\n    else\n    {\n      SourceLocator slocator = xctxt.getSAXLocator();\n      System.out.println(fmsg + \"; file \" + slocator.getSystemId()\n                         + \"; line \" + slocator.getLineNumber() + \"; column \"\n                         + slocator.getColumnNumber());\n    }\n  }\n  \n  /**\n   * This will traverse the heararchy, calling the visitor for \n   * each member.  If the called visitor method returns \n   * false, the subtree should not be called.\n   * \n   * @param owner The owner of the visitor, where that path may be \n   *              rewritten if needed.\n   * @param visitor The visitor whose appropriate method will be called.\n   */\n  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tm_mainExp.callVisitors(this, visitor);\n  }\n\n  /**\n   * <meta name=\"usage\" content=\"advanced\"/>\n   * The match score if no match is made.\n   */\n  public static final double MATCH_SCORE_NONE = Double.NEGATIVE_INFINITY;\n\n  /**\n   * <meta name=\"usage\" content=\"advanced\"/>\n   * The match score if the pattern has the form\n   * of a QName optionally preceded by an @ character.\n   */\n  public static final double MATCH_SCORE_QNAME = 0.0;\n\n  /**\n   * <meta name=\"usage\" content=\"advanced\"/>\n   * The match score if the pattern pattern has the form NCName:*.\n   */\n  public static final double MATCH_SCORE_NSWILD = -0.25;\n\n  /**\n   * <meta name=\"usage\" content=\"advanced\"/>\n   * The match score if the pattern consists of just a NodeTest.\n   */\n  public static final double MATCH_SCORE_NODETEST = -0.5;\n\n  /**\n   * <meta name=\"usage\" content=\"advanced\"/>\n   * The match score if the pattern consists of something\n   * other than just a NodeTest or just a qname.\n   */\n  public static final double MATCH_SCORE_OTHER = 0.5;", "functions": [{"function_name": "getExpression", "code": "  public Expression getExpression()\n  {\n    return m_mainExp;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "fixupVariables", "code": "  public void fixupVariables(java.util.Vector vars, int globalsSize)\n  {\n    m_mainExp.fixupVariables(vars, globalsSize);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setExpression", "code": "  public void setExpression(Expression exp)\n  {\n  \tif(null != m_mainExp)\n    m_mainExp = exp;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getLocator", "code": "  public SourceLocator getLocator()\n  {\n    return m_mainExp;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPatternString", "code": "  public String getPatternString()\n  {\n    return m_patternString;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "execute", "code": "  public XObject execute(\n          XPathContext xctxt, org.w3c.dom.Node contextNode, \n          PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n    return execute(\n          xctxt, xctxt.getDTMHandleFromNode(contextNode), \n          namespaceContext);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "execute", "code": "  public XObject execute(\n          XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushNamespaceContext(namespaceContext);\n\n    xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n    XObject xobj = null;\n\n    try\n    {\n      xobj = m_mainExp.execute(xctxt);\n    }\n    catch (TransformerException te)\n    {\n      te.setLocator(this.getLocator());\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.error(te);\n      }\n      else\n        throw te;\n    }\n    catch (Exception e)\n    {\n      while (e instanceof org.apache.xml.utils.WrappedRuntimeException)\n      {\n        e = ((org.apache.xml.utils.WrappedRuntimeException) e).getException();\n      }\n\n      String msg = e.getMessage();\n      msg = (msg == null || msg.length()== 0)? \"Unknown error in XPath\" : msg;\n      TransformerException te = new TransformerException(msg,\n              getLocator(), e);\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.fatalError(te);\n      }\n      else\n        throw te;\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n\n      xctxt.popCurrentNodeAndExpression();\n    }\n\n    return xobj;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CATCH", "CATCH", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [0, 9], [0, 10], [2, 11], [2, 12], [7, 13], [7, 14], [7, 15], [7, 16], [7, 17], [8, 18], [8, 19], [2, 20], [3, 21], [13, 22], [13, 23], [7, 24], [17, 25], [18, 26], [18, 27], [8, 28], [20, 29], [14, 30], [15, 31], [24, 32], [16, 33], [19, 34], [13, 35], [31, 36], [32, 37], [32, 38], [17, 39], [18, 40], [28, 41], [38, 42], [38, 43], [42, 44], [42, 45], [43, 46], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 0], [10, 0], [11, 2], [12, 2], [13, 7], [14, 7], [15, 7], [16, 7], [17, 7], [18, 8], [19, 8], [20, 2], [21, 3], [22, 13], [23, 13], [24, 7], [25, 17], [26, 18], [27, 18], [28, 8], [29, 20], [30, 14], [31, 15], [32, 24], [33, 16], [34, 19], [35, 13], [36, 31], [37, 32], [38, 32], [39, 17], [40, 18], [41, 28], [42, 38], [43, 38], [44, 42], [45, 42], [46, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46]]}, {"function_name": "bool", "code": "  public boolean bool(\n          XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)\n            throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushNamespaceContext(namespaceContext);\n\n    xctxt.pushCurrentNodeAndExpression(contextNode, contextNode);\n\n    try\n    {\n      return m_mainExp.bool(xctxt);\n    }\n    catch (TransformerException te)\n    {\n      te.setLocator(this.getLocator());\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.error(te);\n      }\n      else\n        throw te;\n    }\n    catch (Exception e)\n    {\n      while (e instanceof org.apache.xml.utils.WrappedRuntimeException)\n      {\n        e = ((org.apache.xml.utils.WrappedRuntimeException) e).getException();\n      }\n\n      String msg = e.getMessage();\n      msg = (msg == null || msg.length()== 0)? \"Unknown error in XPath\" : msg;\n      TransformerException te = new TransformerException(msg,\n              getLocator(), e);\n      ErrorListener el = xctxt.getErrorListener();\n      if(true){\n        el.fatalError(te);\n      }\n      else\n        throw te;\n    }\n    finally\n    {\n      xctxt.popNamespaceContext();\n\n      xctxt.popCurrentNodeAndExpression();\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CATCH", "CATCH", "RETURN", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [2, 9], [0, 10], [0, 11], [2, 12], [2, 13], [7, 14], [7, 15], [7, 16], [7, 17], [7, 18], [8, 19], [8, 20], [9, 21], [14, 22], [14, 23], [7, 24], [18, 25], [19, 26], [19, 27], [8, 28], [15, 29], [16, 30], [24, 31], [17, 32], [20, 33], [14, 34], [30, 35], [31, 36], [31, 37], [18, 38], [19, 39], [28, 40], [37, 41], [37, 42], [41, 43], [41, 44], [42, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 2], [10, 0], [11, 0], [12, 2], [13, 2], [14, 7], [15, 7], [16, 7], [17, 7], [18, 7], [19, 8], [20, 8], [21, 9], [22, 14], [23, 14], [24, 7], [25, 18], [26, 19], [27, 19], [28, 8], [29, 15], [30, 16], [31, 24], [32, 17], [33, 20], [34, 14], [35, 30], [36, 31], [37, 31], [38, 18], [39, 19], [40, 28], [41, 37], [42, 37], [43, 41], [44, 41], [45, 42], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "getMatchScore", "code": "  public double getMatchScore(XPathContext xctxt, int context)\n          throws javax.xml.transform.TransformerException\n  {\n\n    xctxt.pushCurrentNode(context);\n    xctxt.pushCurrentExpressionNode(context);\n\n    try\n    {\n      XObject score = m_mainExp.execute(xctxt);\n\n      if (DEBUG_MATCHES)\n      {\n        DTM dtm = xctxt.getDTM(context);\n        System.out.println(\"score: \" + score.num() + \" for \"\n                           + dtm.getNodeName(context) + \" for xpath \"\n                           + this.getPatternString());\n      }\n\n      return score.num();\n    }\n    finally\n    {\n      xctxt.popCurrentNode();\n      xctxt.popCurrentExpressionNode();", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [0, 7], [0, 8], [1, 9], [1, 10], [4, 11], [5, 12], [6, 13], [5, 14], [14, 15], [12, 16], [15, 17], [15, 18], [17, 19], [17, 20], [20, 21], [20, 22], [22, 23], [22, 24], [24, 25], [24, 26], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 0], [8, 0], [9, 1], [10, 1], [11, 4], [12, 5], [13, 6], [14, 5], [15, 14], [16, 12], [17, 15], [18, 15], [19, 17], [20, 17], [21, 20], [22, 20], [23, 22], [24, 22], [25, 24], [26, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "installFunction", "code": "  public void installFunction(String name, int funcIndex, Function func)\n  {\n    FunctionTable.installFunction(func, funcIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "warn", "code": "  public void warn(\n          XPathContext xctxt, int sourceNode, int msg, Object[] args)\n            throws javax.xml.transform.TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHWarning(msg, args);\n    ErrorListener ehandler = xctxt.getErrorListener();\n\n    if (null != ehandler)\n    {\n\n      ehandler.warning(new TransformerException(fmsg, (SAXSourceLocator)xctxt.getSAXLocator()));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [8, 9], [2, 10], [3, 11], [1, 12], [12, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 8], [10, 2], [11, 3], [12, 1], [13, 12], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "assertion", "code": "  public void assertion(boolean b, String msg)\n  {\n\n    if (!b)\n    {\n      String fMsg = XSLMessages.createXPATHMessage(\n        XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,\n        new Object[]{ msg });\n\n      throw new RuntimeException(fMsg);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "THROW_RAISE", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "error", "code": "  public void error(\n          XPathContext xctxt, int sourceNode, int msg, Object[] args)\n            throws javax.xml.transform.TransformerException\n  {\n\n    String fmsg = XSLMessages.createXPATHMessage(msg, args);\n    ErrorListener ehandler = xctxt.getErrorListener();\n\n    if (null != ehandler)\n    {\n      ehandler.fatalError(new TransformerException(fmsg,\n                              (SAXSourceLocator)xctxt.getSAXLocator()));\n    }\n    else\n    {\n      SourceLocator slocator = xctxt.getSAXLocator();\n      System.out.println(fmsg + \"; file \" + slocator.getSystemId()\n                         + \"; line \" + slocator.getLineNumber() + \"; column \"\n                         + slocator.getColumnNumber());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [2, 11], [3, 12], [1, 13], [1, 14], [13, 15], [9, 16], [14, 17], [15, 18], [15, 19], [19, 20], [19, 21], [17, 22], [21, 23], [21, 24], [24, 25], [24, 26], [26, 27], [26, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 2], [12, 3], [13, 1], [14, 1], [15, 13], [16, 9], [17, 14], [18, 15], [19, 15], [20, 19], [21, 19], [22, 17], [23, 21], [24, 21], [25, 24], [26, 24], [27, 26], [28, 26], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "callVisitors", "code": "  public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)\n  {\n  \tm_mainExp.callVisitors(this, visitor);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "XPath", "code": "  public XPath(\n          String exprString, SourceLocator locator, PrefixResolver prefixResolver, int type,\n          ErrorListener errorListener)\n            throws javax.xml.transform.TransformerException\n  {      \n    if(null == errorListener)\n      errorListener = new org.apache.xml.utils.DefaultErrorHandler();\n    \n    m_patternString = exprString;\n\n    XPathParser parser = new XPathParser(errorListener, locator);\n    Compiler compiler = new Compiler(errorListener, locator);\n\n    if (SELECT == type)\n      parser.initXPath(compiler, exprString, prefixResolver);\n    else if (MATCH == type)\n      parser.initMatchPattern(compiler, exprString, prefixResolver);\n    else{}\n\n    Expression expr = compiler.compile(0);\n\n    this.setExpression(expr);\n    \n    if((null != locator) && locator instanceof ExpressionNode)\n    {\n    \texpr.exprSetParent((ExpressionNode)locator);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [3, 13], [3, 14], [0, 15], [6, 16], [12, 17], [12, 18], [0, 19], [2, 20], [13, 21], [3, 22], [4, 23], [5, 24], [6, 25], [16, 26], [1, 27], [18, 28], [20, 29], [13, 30], [25, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 3], [14, 3], [15, 0], [16, 6], [17, 12], [18, 12], [19, 0], [20, 2], [21, 13], [22, 3], [23, 4], [24, 5], [25, 6], [26, 16], [27, 1], [28, 18], [29, 20], [30, 13], [31, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "XPath", "code": "  public XPath(\n          String exprString, SourceLocator locator, PrefixResolver prefixResolver, int type)\n            throws javax.xml.transform.TransformerException\n  {  \n    this(exprString, locator, prefixResolver, type, null);    ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "XPath", "code": "  public XPath(Expression expr)\n  {  \n    this.setExpression(expr);   ", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "ant-1.5-388", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/types/selectors/SelectSelector.java", "language": "java", "name": "org.apache.tools.ant.types.selectors.SelectSelector", "code": "public class SelectSelector extends AndSelector {\n\n    /**\n     * Default constructor.\n     */\n    public SelectSelector() {\n    }\n\n    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        if (hasSelectors()) {\n            buf.append(\"{select: \");\n            buf.append(super.toString());\n            buf.append(\"}\");\n        }\n        return buf.toString();\n    }\n\n    /**\n     * Performs the check for circular references and returns the\n     * referenced Selector.\n     */\n    private SelectSelector getRef() {\n        Object o = getCheckedRef(this.getClass(), \"SelectSelector\");\n        return (SelectSelector) o;\n    }\n\n    /**\n     * Indicates whether there are any selectors here.\n     */\n    public boolean hasSelectors() {\n        if (isReference()) {\n            return getRef().hasSelectors();\n        }\n        return super.hasSelectors();\n    }\n\n    /**\n     * Gives the count of the number of selectors in this container\n     */\n    public int selectorCount() {\n        if (isReference()) {\n            return getRef().selectorCount();\n        }\n        return super.selectorCount();\n    }\n\n    /**\n     * Returns the set of selectors as an array.\n     */\n    public FileSelector[] getSelectors(Project p) {\n        if (isReference()) {\n            return getRef().getSelectors(p);\n        }\n        return super.getSelectors(p);\n    }\n\n    /**\n     * Returns an enumerator for accessing the set of selectors.\n     */\n    public Enumeration selectorElements() {\n        if (isReference()) {\n            return getRef().selectorElements();\n        }\n        return super.selectorElements();\n    }\n\n    /**\n     * Add a new selector into this container.\n     *\n     * @param selector the new selector to add\n     * @return the selector that was added\n     */\n    public void appendSelector(FileSelector selector) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        super.appendSelector(selector);\n    }\n\n\n\n    /**\n     * Makes sure that there is only one entry, sets an error message if\n     * not.\n     */\n    public void verifySettings() {\n        if (selectorCount() != 1) {\n            setError(\"One and only one selector is allowed within the \" +\n                    \"<selector> tag\");", "functions": [{"function_name": "toString", "code": "    public String toString() {\n        StringBuffer buf = new StringBuffer();\n        if (hasSelectors()) {\n            buf.append(\"{select: \");\n            buf.append(super.toString());\n            buf.append(\"}\");\n        }\n        return buf.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [2, 7], [2, 8], [2, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 2], [8, 2], [9, 2], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getRef", "code": "    private SelectSelector getRef() {\n        Object o = getCheckedRef(this.getClass(), \"SelectSelector\");\n        return (SelectSelector) o;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 2], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "hasSelectors", "code": "    public boolean hasSelectors() {\n        if (isReference()) {\n            return getRef().hasSelectors();\n        }\n        return super.hasSelectors();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "selectorCount", "code": "    public int selectorCount() {\n        if (isReference()) {\n            return getRef().selectorCount();\n        }\n        return super.selectorCount();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getSelectors", "code": "    public FileSelector[] getSelectors(Project p) {\n        if (isReference()) {\n            return getRef().getSelectors(p);\n        }\n        return super.getSelectors(p);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "selectorElements", "code": "    public Enumeration selectorElements() {\n        if (isReference()) {\n            return getRef().selectorElements();\n        }\n        return super.selectorElements();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "appendSelector", "code": "    public void appendSelector(FileSelector selector) {\n        if (isReference()) {\n            throw noChildrenAllowed();\n        }\n        super.appendSelector(selector);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "verifySettings", "code": "    public void verifySettings() {\n        if (selectorCount() != 1) {\n            setError(\"One and only one selector is allowed within the \" +\n                    \"<selector> tag\");", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 5], [5, 6], [6, 7], [6, 8], [1, 0], [2, 1], [3, 2], [4, 2], [5, 1], [6, 5], [7, 6], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "SelectSelector", "code": "    public SelectSelector() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 0}
{"sample_id": "poi-3.0-6325", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/TextObjectRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.TextObjectRecord", "code": "public class TextObjectRecord\n        extends TextObjectBaseRecord\n{\n    HSSFRichTextString str;\n\n    public TextObjectRecord()\n    {\n    }\n\n    public TextObjectRecord( RecordInputStream in )\n    {\n        super( in );\n        if (str == null)\n        \tstr = new HSSFRichTextString(\"\");\n    }\n\n    protected void fillFields(RecordInputStream in)\n    {\n      super.fillFields(in);\n      if (getTextLength() > 0) {\n      if (in.isContinueNext() && in.remaining() == 0) {\n        in.nextRecord();\n        processRawString(in);\n        } else\n          throw new RecordFormatException(\"Expected Continue record to hold string data for TextObjectRecord\");        \n      }\n      if (getFormattingRunLength() > 0) {\n        if (in.isContinueNext() && in.remaining() == 0) {\n          in.nextRecord();\n          processFontRuns(in);\n        } else throw new RecordFormatException(\"Expected Continue Record to hold font runs for TextObjectRecord\");\n      }\n    }\n\n\n    public int getRecordSize()\n    {\n        int continue1Size = 0;\n        int continue2Size = 0;\n        if (str.length() != 0)\n        {\n            continue1Size = str.length() * 2 + 1 + 4;\n            continue2Size = (str.numFormattingRuns() + 1) * 8 + 4;\n        }\n        return super.getRecordSize() + continue1Size + continue2Size;\n    }\n\n\n\n    public int serialize( int offset, byte[] data )\n    {\n        HSSFRichTextString temp = str;\n        str = new HSSFRichTextString(\"\");\n        int bytesWritten1 = super.serialize( offset, data );\n        str = temp;\n\n        int pos = offset + bytesWritten1;\n        if ( str.getString().equals( \"\" ) == false )\n        {\n            ContinueRecord c1 = createContinue1();\n            ContinueRecord c2 = createContinue2();\n            int bytesWritten2 = c1.serialize( pos, data );\n            pos += bytesWritten2;\n            int bytesWritten3 = c2.serialize( pos, data );\n            pos += bytesWritten3;\n\n            int size = bytesWritten1 + bytesWritten2 + bytesWritten3;\n            if ( size != getRecordSize() )\n                throw new RecordFormatException(size + \" bytes written but getRecordSize() reports \" + getRecordSize());\n            return size;\n        }\n        if ( bytesWritten1 != getRecordSize() )\n            throw new RecordFormatException(bytesWritten1 + \" bytes written but getRecordSize() reports \" + getRecordSize());\n        return bytesWritten1;\n    }\n\n    private ContinueRecord createContinue1()\n    {\n        ContinueRecord c1 = new ContinueRecord();\n        byte[] c1Data = new byte[str.length() * 2 + 1];\n        try\n        {\n            c1Data[0] = 1;\n            System.arraycopy( str.getString().getBytes( \"UTF-16LE\" ), 0, c1Data, 1, str.length() * 2 );\n        }\n        catch ( UnsupportedEncodingException e )\n        {\n            throw new RuntimeException( e.getMessage() );\n        }\n        c1.setData( c1Data );\n        return c1;\n    }\n\n    private ContinueRecord createContinue2()\n    {\n        ContinueRecord c2 = new ContinueRecord();\n        byte[] c2Data = new byte[str.numFormattingRuns() * 8 + 8];\n        int pos = 0;\n        for ( int i = 0; i < str.numFormattingRuns(); i++ )\n        {\n            LittleEndian.putShort( c2Data, pos, (short) str.getIndexOfFormattingRun( i ) );\n            pos += 2;\n            LittleEndian.putShort( c2Data, pos, str.getFontOfFormattingRun( i ) == str.NO_FONT ? 0 : str.getFontOfFormattingRun( i ) );\n            pos += 2;\n        }\n        LittleEndian.putShort( c2Data, pos, (short) str.length() );\n        pos += 2;\n        LittleEndian.putShort( c2Data, pos, (short) 0 );\n        pos += 2;\n\n        c2.setData( c2Data );\n\n        return c2;\n    }\n\n    private void processFontRuns( RecordInputStream in )\n    {\n        while (in.remaining() > 0)\n        {\n            short index = in.readShort();\n            short iFont = in.readShort();\n\n            str.applyFont( index, str.length(), iFont );\n        }\n    }\n\n    private void processRawString( RecordInputStream in )\n    {\n        String s;\n        byte compressByte = in.readByte();\n        boolean isCompressed = compressByte == 0;\n            if ( isCompressed )\n            {\n            s = in.readCompressedUnicode(getTextLength());\n            }\n            else\n            {\n            s = in.readUnicodeLEString(getTextLength());\n        }\n        str = new HSSFRichTextString( s );\n    }\n\n    public HSSFRichTextString getStr()\n    {\n        return str;\n    }\n\n    public void setStr( HSSFRichTextString str )\n    {\n        this.str = str;\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append( \"[TXO]\\n\" );\n        buffer.append( \"    .options              = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getOptions() ) )\n                .append( \" (\" ).append( getOptions() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"         .reserved1                = \" ).append( isReserved1() ).append( '\\n' );\n        buffer.append( \"         .HorizontalTextAlignment     = \" ).append( getHorizontalTextAlignment() ).append( '\\n' );\n        buffer.append( \"         .VerticalTextAlignment     = \" ).append( getVerticalTextAlignment() ).append( '\\n' );\n        buffer.append( \"         .reserved2                = \" ).append( getReserved2() ).append( '\\n' );\n        buffer.append( \"         .textLocked               = \" ).append( isTextLocked() ).append( '\\n' );\n        buffer.append( \"         .reserved3                = \" ).append( getReserved3() ).append( '\\n' );\n        buffer.append( \"    .textOrientation      = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getTextOrientation() ) )\n                .append( \" (\" ).append( getTextOrientation() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved4            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved4() ) )\n                .append( \" (\" ).append( getReserved4() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved5            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved5() ) )\n                .append( \" (\" ).append( getReserved5() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved6            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved6() ) )\n                .append( \" (\" ).append( getReserved6() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .textLength           = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getTextLength() ) )\n                .append( \" (\" ).append( getTextLength() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved7            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved7() ) )\n                .append( \" (\" ).append( getReserved7() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n\n        buffer.append( \"    .string = \" ).append(str).append('\\n');\n\n        buffer.append( \"[/TXO]\\n\" );\n        return buffer.toString();", "functions": [{"function_name": "fillFields", "code": "    protected void fillFields(RecordInputStream in)\n    {\n      super.fillFields(in);\n      if (getTextLength() > 0) {\n      if (in.isContinueNext() && in.remaining() == 0) {\n        in.nextRecord();\n        processRawString(in);\n        } else\n          throw new RecordFormatException(\"Expected Continue record to hold string data for TextObjectRecord\");        \n      }\n      if (getFormattingRunLength() > 0) {\n        if (in.isContinueNext() && in.remaining() == 0) {\n          in.nextRecord();\n          processFontRuns(in);\n        } else throw new RecordFormatException(\"Expected Continue Record to hold font runs for TextObjectRecord\");", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [4, 7], [4, 8], [2, 9], [5, 10], [5, 11], [6, 12], [6, 13], [9, 14], [9, 15], [12, 16], [13, 17], [13, 18], [14, 19], [15, 20], [15, 21], [16, 22], [6, 23], [6, 24], [17, 25], [17, 26], [19, 27], [9, 28], [9, 29], [20, 30], [20, 31], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 4], [8, 4], [9, 2], [10, 5], [11, 5], [12, 6], [13, 6], [14, 9], [15, 9], [16, 12], [17, 13], [18, 13], [19, 14], [20, 15], [21, 15], [22, 16], [23, 6], [24, 6], [25, 17], [26, 17], [27, 19], [28, 9], [29, 9], [30, 20], [31, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        int continue1Size = 0;\n        int continue2Size = 0;\n        if (str.length() != 0)\n        {\n            continue1Size = str.length() * 2 + 1 + 4;\n            continue2Size = (str.numFormattingRuns() + 1) * 8 + 4;\n        }\n        return super.getRecordSize() + continue1Size + continue2Size;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [6, 8], [6, 9], [3, 10], [4, 11], [2, 12], [2, 13], [12, 14], [13, 15], [14, 16], [14, 17], [15, 18], [15, 19], [17, 20], [17, 21], [19, 22], [19, 23], [21, 24], [21, 25], [23, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 6], [9, 6], [10, 3], [11, 4], [12, 2], [13, 2], [14, 12], [15, 13], [16, 14], [17, 14], [18, 15], [19, 15], [20, 17], [21, 17], [22, 19], [23, 19], [24, 21], [25, 21], [26, 23], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data )\n    {\n        HSSFRichTextString temp = str;\n        str = new HSSFRichTextString(\"\");\n        int bytesWritten1 = super.serialize( offset, data );\n        str = temp;\n\n        int pos = offset + bytesWritten1;\n        if ( str.getString().equals( \"\" ) == false )\n        {\n            ContinueRecord c1 = createContinue1();\n            ContinueRecord c2 = createContinue2();\n            int bytesWritten2 = c1.serialize( pos, data );\n            pos += bytesWritten2;\n            int bytesWritten3 = c2.serialize( pos, data );\n            pos += bytesWritten3;\n\n            int size = bytesWritten1 + bytesWritten2 + bytesWritten3;\n            if ( size != getRecordSize() )\n                throw new RecordFormatException(size + \" bytes written but getRecordSize() reports \" + getRecordSize());\n            return size;\n        }\n        if ( bytesWritten1 != getRecordSize() )\n            throw new RecordFormatException(bytesWritten1 + \" bytes written but getRecordSize() reports \" + getRecordSize());\n        return bytesWritten1;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [2, 10], [3, 11], [0, 12], [0, 13], [9, 14], [10, 15], [3, 16], [3, 17], [3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [11, 23], [11, 24], [4, 25], [13, 26], [14, 27], [17, 28], [17, 29], [3, 30], [3, 31], [24, 32], [26, 33], [27, 34], [27, 35], [28, 36], [29, 37], [18, 38], [19, 39], [20, 40], [21, 41], [22, 42], [32, 43], [35, 44], [36, 45], [38, 46], [45, 47], [45, 48], [48, 49], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 2], [11, 3], [12, 0], [13, 0], [14, 9], [15, 10], [16, 3], [17, 3], [18, 3], [19, 3], [20, 3], [21, 3], [22, 3], [23, 11], [24, 11], [25, 4], [26, 13], [27, 14], [28, 17], [29, 17], [30, 3], [31, 3], [32, 24], [33, 26], [34, 27], [35, 27], [36, 28], [37, 29], [38, 18], [39, 19], [40, 20], [41, 21], [42, 22], [43, 32], [44, 35], [45, 36], [46, 38], [47, 45], [48, 45], [49, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49]]}, {"function_name": "createContinue1", "code": "    private ContinueRecord createContinue1()\n    {\n        ContinueRecord c1 = new ContinueRecord();\n        byte[] c1Data = new byte[str.length() * 2 + 1];\n        try\n        {\n            c1Data[0] = 1;\n            System.arraycopy( str.getString().getBytes( \"UTF-16LE\" ), 0, c1Data, 1, str.length() * 2 );\n        }\n        catch ( UnsupportedEncodingException e )\n        {\n            throw new RuntimeException( e.getMessage() );\n        }\n        c1.setData( c1Data );\n        return c1;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "VAR_DECL", "CALL", "CATCH", "THROW_RAISE", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [6, 7], [2, 8], [2, 9], [4, 10], [7, 11], [8, 12], [8, 13], [8, 14], [8, 15], [9, 16], [3, 17], [11, 18], [12, 19], [12, 20], [15, 21], [17, 22], [17, 23], [21, 24], [9, 25], [23, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 6], [8, 2], [9, 2], [10, 4], [11, 7], [12, 8], [13, 8], [14, 8], [15, 8], [16, 9], [17, 3], [18, 11], [19, 12], [20, 12], [21, 15], [22, 17], [23, 17], [24, 21], [25, 9], [26, 23], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "createContinue2", "code": "    private ContinueRecord createContinue2()\n    {\n        ContinueRecord c2 = new ContinueRecord();\n        byte[] c2Data = new byte[str.numFormattingRuns() * 8 + 8];\n        int pos = 0;\n        for ( int i = 0; i < str.numFormattingRuns(); i++ )\n        {\n            LittleEndian.putShort( c2Data, pos, (short) str.getIndexOfFormattingRun( i ) );\n            pos += 2;\n            LittleEndian.putShort( c2Data, pos, str.getFontOfFormattingRun( i ) == str.NO_FONT ? 0 : str.getFontOfFormattingRun( i ) );\n            pos += 2;\n        }\n        LittleEndian.putShort( c2Data, pos, (short) str.length() );\n        pos += 2;\n        LittleEndian.putShort( c2Data, pos, (short) 0 );\n        pos += 2;\n\n        c2.setData( c2Data );\n\n        return c2;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [7, 12], [9, 13], [11, 14], [3, 15], [5, 16], [8, 17], [10, 18], [2, 19], [2, 20], [2, 21], [2, 22], [2, 23], [4, 24], [19, 25], [20, 26], [21, 27], [24, 28], [24, 29], [26, 30], [26, 31], [26, 32], [22, 33], [29, 34], [29, 35], [32, 36], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 7], [13, 9], [14, 11], [15, 3], [16, 5], [17, 8], [18, 10], [19, 2], [20, 2], [21, 2], [22, 2], [23, 2], [24, 4], [25, 19], [26, 20], [27, 21], [28, 24], [29, 24], [30, 26], [31, 26], [32, 26], [33, 22], [34, 29], [35, 29], [36, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36]]}, {"function_name": "processFontRuns", "code": "    private void processFontRuns( RecordInputStream in )\n    {\n        while (in.remaining() > 0)\n        {\n            short index = in.readShort();\n            short iFont = in.readShort();\n\n            str.applyFont( index, str.length(), iFont );", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "BINARY_OP", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [1, 8], [8, 9], [4, 10], [5, 11], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 1], [9, 8], [10, 4], [11, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "processRawString", "code": "    private void processRawString( RecordInputStream in )\n    {\n        String s;\n        byte compressByte = in.readByte();\n        boolean isCompressed = compressByte == 0;\n            if ( isCompressed )\n            {\n            s = in.readCompressedUnicode(getTextLength());\n            }\n            else\n            {\n            s = in.readUnicodeLEString(getTextLength());\n        }\n        str = new HSSFRichTextString( s );", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "CALL", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [6, 7], [2, 8], [3, 9], [1, 10], [1, 11], [8, 12], [10, 13], [11, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 6], [8, 2], [9, 3], [10, 1], [11, 1], [12, 8], [13, 10], [14, 11], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getStr", "code": "    public HSSFRichTextString getStr()\n    {\n        return str;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStr", "code": "    public void setStr( HSSFRichTextString str )\n    {\n        this.str = str;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append( \"[TXO]\\n\" );\n        buffer.append( \"    .options              = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getOptions() ) )\n                .append( \" (\" ).append( getOptions() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"         .reserved1                = \" ).append( isReserved1() ).append( '\\n' );\n        buffer.append( \"         .HorizontalTextAlignment     = \" ).append( getHorizontalTextAlignment() ).append( '\\n' );\n        buffer.append( \"         .VerticalTextAlignment     = \" ).append( getVerticalTextAlignment() ).append( '\\n' );\n        buffer.append( \"         .reserved2                = \" ).append( getReserved2() ).append( '\\n' );\n        buffer.append( \"         .textLocked               = \" ).append( isTextLocked() ).append( '\\n' );\n        buffer.append( \"         .reserved3                = \" ).append( getReserved3() ).append( '\\n' );\n        buffer.append( \"    .textOrientation      = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getTextOrientation() ) )\n                .append( \" (\" ).append( getTextOrientation() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved4            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved4() ) )\n                .append( \" (\" ).append( getReserved4() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved5            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved5() ) )\n                .append( \" (\" ).append( getReserved5() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved6            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved6() ) )\n                .append( \" (\" ).append( getReserved6() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .textLength           = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getTextLength() ) )\n                .append( \" (\" ).append( getTextLength() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n        buffer.append( \"    .reserved7            = \" )\n                .append( \"0x\" ).append( HexDump.toHex( getReserved7() ) )\n                .append( \" (\" ).append( getReserved7() ).append( \" )\" );\n        buffer.append( System.getProperty( \"line.separator\" ) );\n\n        buffer.append( \"    .string = \" ).append(str).append('\\n');\n\n        buffer.append( \"[/TXO]\\n\" );\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [4, 27], [5, 28], [5, 29], [5, 30], [6, 31], [7, 32], [7, 33], [7, 34], [7, 35], [7, 36], [7, 37], [8, 38], [9, 39], [9, 40], [9, 41], [9, 42], [9, 43], [9, 44], [10, 45], [11, 46], [11, 47], [11, 48], [11, 49], [11, 50], [11, 51], [12, 52], [13, 53], [13, 54], [13, 55], [13, 56], [13, 57], [13, 58], [14, 59], [15, 60], [15, 61], [15, 62], [15, 63], [15, 64], [15, 65], [16, 66], [17, 67], [17, 68], [17, 69], [17, 70], [17, 71], [17, 72], [18, 73], [18, 74], [18, 75], [19, 76], [19, 77], [19, 78], [20, 79], [20, 80], [20, 81], [21, 82], [21, 83], [21, 84], [22, 85], [22, 86], [22, 87], [23, 88], [23, 89], [23, 90], [24, 91], [25, 92], [25, 93], [25, 94], [25, 95], [25, 96], [25, 97], [26, 98], [2, 99], [29, 100], [31, 101], [33, 102], [34, 103], [35, 104], [36, 105], [37, 106], [38, 107], [40, 108], [41, 109], [42, 110], [43, 111], [44, 112], [45, 113], [47, 114], [48, 115], [49, 116], [50, 117], [51, 118], [52, 119], [54, 120], [55, 121], [56, 122], [57, 123], [58, 124], [59, 125], [61, 126], [62, 127], [63, 128], [64, 129], [65, 130], [66, 131], [68, 132], [69, 133], [70, 134], [71, 135], [72, 136], [74, 137], [75, 138], [77, 139], [78, 140], [80, 141], [81, 142], [83, 143], [84, 144], [86, 145], [87, 146], [89, 147], [90, 148], [91, 149], [93, 150], [94, 151], [95, 152], [96, 153], [97, 154], [105, 155], [111, 156], [117, 157], [123, 158], [129, 159], [135, 160], [153, 161], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 4], [28, 5], [29, 5], [30, 5], [31, 6], [32, 7], [33, 7], [34, 7], [35, 7], [36, 7], [37, 7], [38, 8], [39, 9], [40, 9], [41, 9], [42, 9], [43, 9], [44, 9], [45, 10], [46, 11], [47, 11], [48, 11], [49, 11], [50, 11], [51, 11], [52, 12], [53, 13], [54, 13], [55, 13], [56, 13], [57, 13], [58, 13], [59, 14], [60, 15], [61, 15], [62, 15], [63, 15], [64, 15], [65, 15], [66, 16], [67, 17], [68, 17], [69, 17], [70, 17], [71, 17], [72, 17], [73, 18], [74, 18], [75, 18], [76, 19], [77, 19], [78, 19], [79, 20], [80, 20], [81, 20], [82, 21], [83, 21], [84, 21], [85, 22], [86, 22], [87, 22], [88, 23], [89, 23], [90, 23], [91, 24], [92, 25], [93, 25], [94, 25], [95, 25], [96, 25], [97, 25], [98, 26], [99, 2], [100, 29], [101, 31], [102, 33], [103, 34], [104, 35], [105, 36], [106, 37], [107, 38], [108, 40], [109, 41], [110, 42], [111, 43], [112, 44], [113, 45], [114, 47], [115, 48], [116, 49], [117, 50], [118, 51], [119, 52], [120, 54], [121, 55], [122, 56], [123, 57], [124, 58], [125, 59], [126, 61], [127, 62], [128, 63], [129, 64], [130, 65], [131, 66], [132, 68], [133, 69], [134, 70], [135, 71], [136, 72], [137, 74], [138, 75], [139, 77], [140, 78], [141, 80], [142, 81], [143, 83], [144, 84], [145, 86], [146, 87], [147, 89], [148, 90], [149, 91], [150, 93], [151, 94], [152, 95], [153, 96], [154, 97], [155, 105], [156, 111], [157, 117], [158, 123], [159, 129], [160, 135], [161, 153], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161]]}, {"function_name": "TextObjectRecord", "code": "    public TextObjectRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "TextObjectRecord", "code": "    public TextObjectRecord( RecordInputStream in )\n    {\n        super( in );\n        if (str == null)\n        \tstr = new HSSFRichTextString(\"\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "xalan-2.5-6835", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/templates/Stylesheet.java", "language": "java", "name": "org.apache.xalan.templates.Stylesheet", "code": "public class Stylesheet extends ElemTemplateElement\n        implements java.io.Serializable /* , Document */\n{\n\n  /**\n   * Constructor for a Stylesheet.\n   * @param parent  The including or importing stylesheet.\n   */\n  public Stylesheet(Stylesheet parent)\n  {\n\n    if (null != parent)\n    {\n      m_stylesheetParent = parent;\n      m_stylesheetRoot = parent.getStylesheetRoot();\n    }\n  }\n\n  /**\n   * Get the owning stylesheet.  This looks up the\n   * inheritance chain until it calls getStylesheet\n   * on a Stylesheet object, which will return itself.\n   *\n   * @return The owning stylesheet, itself.\n   */\n  public Stylesheet getStylesheet()\n  {\n    return this;\n  }\n\n  /**\n   * Tell if this can be cast to a StylesheetComposed, meaning, you\n   * can ask questions from getXXXComposed functions.\n   *\n   * @return False if this is not a StylesheetComposed\n   */\n  public boolean isAggregatedType()\n  {\n    return false;\n  }\n\n  /**\n   * Tell if this is the root of the stylesheet tree.\n   *\n   * @return False is this is not the root of the stylesheet tree.\n   */\n  public boolean isRoot()\n  {\n    return false;\n  }\n\n  /**\n   * Extension to be used when serializing to disk.\n   */\n  public static final String STYLESHEET_EXT = \".lxc\";\n\n  /**\n   * Read the stylesheet from a serialization stream.\n   *\n   * @param stream Input stream to read from\n   *\n   * @throws IOException\n   * @throws TransformerException\n   */\n  private void readObject(ObjectInputStream stream)\n          throws IOException, TransformerException\n  {\n\n    try\n    {\n      stream.defaultReadObject();\n    }\n    catch (ClassNotFoundException cnfe)\n    {\n      throw new TransformerException(cnfe);\n    }\n\n  }\n\n  /**\n   * Write out the given output stream \n   *\n   *\n   * @param stream The output stream to write out\n   *\n   * @throws IOException\n   */\n  private void writeObject(ObjectOutputStream stream) throws IOException\n  {\n\n    stream.defaultWriteObject();\n\n  }\n\n\n  /**\n   * The \"xmlns:xsl\" property.\n   * @serial\n   */\n  private String m_XmlnsXsl;\n\n  /**\n   * Set the \"xmlns:xsl\" property.\n   *\n   * @param v The value to be set for the \"xmlns:xsl\" property.\n   */\n  public void setXmlnsXsl(String v)\n  {\n    m_XmlnsXsl = v;\n  }\n\n  /**\n   * Get the \"xmlns:xsl\" property.\n   *\n   * @return The value of the \"xmlns:xsl\" property.\n   */\n  public String getXmlnsXsl()\n  {\n    return m_XmlnsXsl;\n  }\n\n  /**\n   * The \"extension-element-prefixes\" property, actually contains URIs.\n   * @serial\n   */\n  private StringVector m_ExtensionElementURIs;\n\n  /**\n   * Set the \"extension-element-prefixes\" property.\n   *\n   * @param v The value to be set for the \"extension-element-prefixes\" \n   * property: a vector of extension element URIs.\n   */\n  public void setExtensionElementPrefixes(StringVector v)\n  {\n    m_ExtensionElementURIs = v;\n  }\n\n  /**\n   * Get and \"extension-element-prefix\" property.\n   *\n   * @param i Index of extension element URI in list \n   *\n   * @return The extension element URI at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public String getExtensionElementPrefix(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_ExtensionElementURIs)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return m_ExtensionElementURIs.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"extension-element-prefixes\" Strings.\n   *\n   * @return Number of URIs in the list\n   */\n  public int getExtensionElementPrefixCount()\n  {\n    return (null != m_ExtensionElementURIs)\n           ? m_ExtensionElementURIs.size() : 0;\n  }\n\n  /**\n   * Find out if this contains a given \"extension-element-prefix\" property.\n   *\n   * @param uri URI of extension element to look for\n   *\n   * @return True if the given URI was found in the list \n   */\n  public boolean containsExtensionElementURI(String uri)\n  {\n\n    if (null == m_ExtensionElementURIs)\n      return false;\n\n    return m_ExtensionElementURIs.contains(uri);\n  }\n\n  /**\n   * The \"exclude-result-prefixes\" property.\n   * @serial\n   */\n  private StringVector m_ExcludeResultPrefixs;\n\n  /**\n   * Set the \"exclude-result-prefixes\" property.\n   * The designation of a namespace as an excluded namespace is\n   * effective within the subtree of the stylesheet rooted at\n   * the element bearing the exclude-result-prefixes or\n   * xsl:exclude-result-prefixes attribute; a subtree rooted\n   * at an xsl:stylesheet element does not include any stylesheets\n   * imported or included by children of that xsl:stylesheet element.\n   *\n   * @param v A StringVector of prefixes to exclude \n   */\n  public void setExcludeResultPrefixes(StringVector v)\n  {\n    m_ExcludeResultPrefixs = v;\n  }\n\n  /**\n   * Get an \"exclude-result-prefix\" property.\n   * The designation of a namespace as an excluded namespace is\n   * effective within the subtree of the stylesheet rooted at\n   * the element bearing the exclude-result-prefixes or\n   * xsl:exclude-result-prefixes attribute; a subtree rooted\n   * at an xsl:stylesheet element does not include any stylesheets\n   * imported or included by children of that xsl:stylesheet element.\n   *\n   * @param i Index of prefix to get in list \n   *\n   * @return Prefix to be excluded at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public String getExcludeResultPrefix(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_ExcludeResultPrefixs)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return m_ExcludeResultPrefixs.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"exclude-result-prefixes\" Strings.\n   *\n   * @return The number of prefix strings to be excluded. \n   */\n  public int getExcludeResultPrefixCount()\n  {\n    return (null != m_ExcludeResultPrefixs)\n           ? m_ExcludeResultPrefixs.size() : 0;\n  }\n\n  /**\n   * Get whether or not the passed prefix is contained flagged by\n   * the \"exclude-result-prefixes\" property.\n   *\n   * @param prefix non-null reference to prefix that might be excluded.\n   * @param uri reference to namespace that prefix maps to\n   *\n   * @return true if the prefix should normally be excluded.>\n   */\n  public boolean containsExcludeResultPrefix(String prefix, String uri) \n  {\n\n    if (null == m_ExcludeResultPrefixs || uri == null )\n      return false;\n    \n    for (int i =0; i< m_ExcludeResultPrefixs.size(); i++)\n    {\n      if (uri.equals(getNamespaceForPrefix(m_ExcludeResultPrefixs.elementAt(i))))\n        return true;\n    }\n    \n    return false;\n\n  /*  if (prefix.length() == 0)\n      prefix = Constants.ATTRVAL_DEFAULT_PREFIX;\n\n    return m_ExcludeResultPrefixs.contains(prefix); */\n  }\n\n  /**\n   * The \"id\" property.\n   * @serial\n   */\n  private String m_Id;\n\n  /**\n   * Set the \"id\" property.\n   *\n   * @param v Value for the \"id\" property.\n   */\n  public void setId(String v)\n  {\n    m_Id = v;\n  }\n\n  /**\n   * Get the \"id\" property.\n   *\n   * @return The value of the \"id\" property.\n   */\n  public String getId()\n  {\n    return m_Id;\n  }\n\n  /**\n   * The \"version\" property.\n   * @serial\n   */\n  private String m_Version;\n\n  /**\n   * Set the \"version\" property.\n   *\n   * @param v Value for the \"version\" property.\n   */\n  public void setVersion(String v)\n  {\n    m_Version = v;\n  }\n\n  /**\n   * Get the \"version\" property.\n   *\n   * @return The value of the \"version\" property.\n   */\n  public String getVersion()\n  {\n    return m_Version;\n  }\n\n  /**\n   * The \"xsl:import\" list.\n   * @serial\n   */\n  private Vector m_imports;\n\n  /**\n   * Add a stylesheet to the \"import\" list.\n   *\n   * @param v Stylesheet to add to the import list\n   */\n  public void setImport(StylesheetComposed v)\n  {\n\n    if (null == m_imports)\n      m_imports = new Vector();\n\n    m_imports.addElement(v);\n  }\n\n  /**\n   * Get a stylesheet from the \"import\" list.\n   *\n   * @param i Index of the stylesheet to get\n   *\n   * @return The stylesheet at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public StylesheetComposed getImport(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_imports)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (StylesheetComposed) m_imports.elementAt(i);\n  }\n\n  /**\n   * Get the number of imported stylesheets.\n   *\n   * @return the number of imported stylesheets.\n   */\n  public int getImportCount()\n  {\n    return (null != m_imports) ? m_imports.size() : 0;\n  }\n\n  /**\n   * The \"xsl:include\" properties.\n   * @serial\n   */\n  private Vector m_includes;\n\n  /**\n   * Add a stylesheet to the \"include\" list.\n   *\n   * @param v Stylesheet to add to the \"include\" list  \n   */\n  public void setInclude(Stylesheet v)\n  {\n\n    if (null == m_includes)\n      m_includes = new Vector();\n\n    m_includes.addElement(v);\n  }\n\n  /**\n   * Get the stylesheet at the given in index in \"include\" list\n   *\n   * @param i Index of stylesheet to get\n   *\n   * @return Stylesheet at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public Stylesheet getInclude(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_includes)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (Stylesheet) m_includes.elementAt(i);\n  }\n\n  /**\n   * Get the number of included stylesheets.\n   *\n   * @return the number of included stylesheets.\n   */\n  public int getIncludeCount()\n  {\n    return (null != m_includes) ? m_includes.size() : 0;\n  }\n\n  /**\n   * Table of tables of element decimal-format.\n   * @see DecimalFormatProperties\n   * @serial\n   */\n  Stack m_DecimalFormatDeclarations;\n\n  /**\n   * Process the xsl:decimal-format element.\n   *\n   * @param edf Decimal-format element to push into stack  \n   */\n  public void setDecimalFormat(DecimalFormatProperties edf)\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      m_DecimalFormatDeclarations = new Stack();\n\n    m_DecimalFormatDeclarations.push(edf);\n  }\n\n  /**\n   * Get an \"xsl:decimal-format\" property.\n   * \n   * @see DecimalFormatProperties\n   *\n   * @param name The qualified name of the decimal format property.\n   * @return null if not found, otherwise a DecimalFormatProperties\n   * object, from which you can get a DecimalFormatSymbols object.\n   */\n  public DecimalFormatProperties getDecimalFormat(QName name)\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      return null;\n\n    int n = getDecimalFormatCount();\n\n    for (int i = (n - 1); i >= 0; i++)\n    {\n      DecimalFormatProperties dfp = getDecimalFormat(i);\n\n      if (dfp.getName().equals(name))\n        return dfp;\n    }\n\n    return null;\n  }\n\n  /**\n   * Get an \"xsl:decimal-format\" property.\n   * @see DecimalFormatProperties\n   *\n   * @param i Index of decimal-format property in stack\n   *\n   * @return The decimal-format property at the given index \n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public DecimalFormatProperties getDecimalFormat(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (DecimalFormatProperties) m_DecimalFormatDeclarations.elementAt(i);\n  }\n\n  /**\n   * Get the number of xsl:decimal-format declarations.\n   * @see DecimalFormatProperties\n   *\n   * @return the number of xsl:decimal-format declarations.\n   */\n  public int getDecimalFormatCount()\n  {\n    return (null != m_DecimalFormatDeclarations)\n           ? m_DecimalFormatDeclarations.size() : 0;\n  }\n\n  /**\n   * The \"xsl:strip-space\" properties,\n   * A lookup table of all space stripping elements.\n   * @serial\n   */\n  private Vector m_whitespaceStrippingElements;\n\n  /**\n   * Set the \"xsl:strip-space\" properties.\n   *\n   * @param wsi WhiteSpaceInfo element to add to list \n   */\n  public void setStripSpaces(WhiteSpaceInfo wsi)\n  {\n\n    if (null == m_whitespaceStrippingElements)\n    {\n      m_whitespaceStrippingElements = new Vector();\n    }\n\n    m_whitespaceStrippingElements.addElement(wsi);\n  }\n\n  /**\n   * Get an \"xsl:strip-space\" property.\n   *\n   * @param i Index of WhiteSpaceInfo to get\n   *\n   * @return WhiteSpaceInfo at given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public WhiteSpaceInfo getStripSpace(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_whitespaceStrippingElements)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (WhiteSpaceInfo) m_whitespaceStrippingElements.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:strip-space\" properties.\n   *\n   * @return the number of \"xsl:strip-space\" properties.\n   */\n  public int getStripSpaceCount()\n  {\n    return (null != m_whitespaceStrippingElements)\n           ? m_whitespaceStrippingElements.size() : 0;\n  }\n\n  /**\n   * The \"xsl:preserve-space\" property,\n   * A lookup table of all space preserving elements.\n   * @serial\n   */\n  private Vector m_whitespacePreservingElements;\n\n  /**\n   * Set the \"xsl:preserve-space\" property.\n   *\n   * @param wsi WhiteSpaceInfo element to add to list\n   */\n  public void setPreserveSpaces(WhiteSpaceInfo wsi)\n  {\n\n    if (null == m_whitespacePreservingElements)\n    {\n      m_whitespacePreservingElements = new Vector();\n    }\n\n    m_whitespacePreservingElements.addElement(wsi);\n  }\n\n  /**\n   * Get a \"xsl:preserve-space\" property.\n   *\n   * @param i Index of WhiteSpaceInfo to get\n   *\n   * @return WhiteSpaceInfo at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public WhiteSpaceInfo getPreserveSpace(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_whitespacePreservingElements)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (WhiteSpaceInfo) m_whitespacePreservingElements.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:preserve-space\" properties.\n   *\n   * @return the number of \"xsl:preserve-space\" properties.\n   */\n  public int getPreserveSpaceCount()\n  {\n    return (null != m_whitespacePreservingElements)\n           ? m_whitespacePreservingElements.size() : 0;\n  }\n\n  /**\n   * The \"xsl:output\" properties.  This is a vector of OutputProperties objects.\n   * @serial\n   */\n  private Vector m_output;\n\n  /**\n   * Set the \"xsl:output\" property.\n   *\n   * @param v non-null reference to the OutputProperties object to be \n   *          added to the collection.\n   */\n  public void setOutput(OutputProperties v)\n  {\n    if (null == m_output)\n    {\n      m_output = new Vector();\n    }\n\n    m_output.addElement(v);\n  }\n\n  /**\n   * Get an \"xsl:output\" property.\n   *\n   * @param i Index of OutputFormatExtended to get\n   *\n   * @return non-null reference to an OutputProperties object.\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public OutputProperties getOutput(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_output)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (OutputProperties) m_output.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:output\" properties.\n   *\n   * @return The number of OutputProperties objects contained in this stylesheet.\n   */\n  public int getOutputCount()\n  {\n    return (null != m_output)\n           ? m_output.size() : 0;\n  }\n\n  /**\n   * The \"xsl:key\" property.\n   * @serial\n   */\n  private Vector m_keyDeclarations;\n\n  /**\n   * Set the \"xsl:key\" property.\n   *\n   * @param v KeyDeclaration element to add to the list of key declarations \n   */\n  public void setKey(KeyDeclaration v)\n  {\n\n    if (null == m_keyDeclarations)\n      m_keyDeclarations = new Vector();\n\n    m_keyDeclarations.addElement(v);\n  }\n\n  /**\n   * Get an \"xsl:key\" property.\n   *\n   * @param i Index of KeyDeclaration element to get\n   *\n   * @return KeyDeclaration element at given index in list \n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public KeyDeclaration getKey(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_keyDeclarations)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (KeyDeclaration) m_keyDeclarations.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:key\" properties.\n   *\n   * @return the number of \"xsl:key\" properties.\n   */\n  public int getKeyCount()\n  {\n    return (null != m_keyDeclarations) ? m_keyDeclarations.size() : 0;\n  }\n\n  /**\n   * The \"xsl:attribute-set\" property.\n   * @serial\n   */\n  private Vector m_attributeSets;\n\n  /**\n   * Set the \"xsl:attribute-set\" property.\n   *\n   * @param attrSet ElemAttributeSet to add to the list of attribute sets\n   */\n  public void setAttributeSet(ElemAttributeSet attrSet)\n  {\n\n    if (null == m_attributeSets)\n    {\n      m_attributeSets = new Vector();\n    }\n\n    m_attributeSets.addElement(attrSet);\n  }\n\n  /**\n   * Get an \"xsl:attribute-set\" property.\n   *\n   * @param i Index of ElemAttributeSet to get in list\n   *\n   * @return ElemAttributeSet at the given index\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public ElemAttributeSet getAttributeSet(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_attributeSets)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemAttributeSet) m_attributeSets.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:attribute-set\" properties.\n   *\n   * @return the number of \"xsl:attribute-set\" properties.\n   */\n  public int getAttributeSetCount()\n  {\n    return (null != m_attributeSets) ? m_attributeSets.size() : 0;\n  }\n\n  /**\n   * The \"xsl:variable\" and \"xsl:param\" properties.\n   * @serial\n   */\n  private Vector m_topLevelVariables;\n\n  /**\n   * Set the \"xsl:variable\" property.\n   *\n   * @param v ElemVariable object to add to list of top level variables\n   */\n  public void setVariable(ElemVariable v)\n  {\n\n    if (null == m_topLevelVariables)\n      m_topLevelVariables = new Vector();\n\n    m_topLevelVariables.addElement(v);\n  }\n  \n  /**\n   * Get an \"xsl:variable\" or \"xsl:param\" property.\n   *\n   * @param qname non-null reference to the qualified name of the variable.\n   *\n   * @return The ElemVariable with the given name in the list or null\n   */\n  public ElemVariable getVariableOrParam(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = (ElemVariable) getVariableOrParam(i);\n\n        if (var.getName().equals(qname))\n          return var;\n      }\n    }\n\n    return null;\n  }\n\n\n  /**\n   * Get an \"xsl:variable\" property.\n   *\n   * @param qname Qualified name of the xsl:variable to get \n   *\n   * @return reference to the variable named by qname, or null if not found.\n   */\n  public ElemVariable getVariable(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = getVariableOrParam(i);\n        if((var.getXSLToken() == Constants.ELEMNAME_VARIABLE) &&\n           (var.getName().equals(qname)))\n          return var;\n      }\n    }\n\n    return null;\n  }\n\n  /**\n   * Get an \"xsl:variable\" property.\n   *\n   * @param i Index of variable to get in the list\n   *\n   * @return ElemVariable at the given index in the list \n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public ElemVariable getVariableOrParam(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_topLevelVariables)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemVariable) m_topLevelVariables.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:variable\" properties.\n   *\n   * @return the number of \"xsl:variable\" properties.\n   */\n  public int getVariableOrParamCount()\n  {\n    return (null != m_topLevelVariables) ? m_topLevelVariables.size() : 0;\n  }\n\n  /**\n   * Set an \"xsl:param\" property.\n   *\n   * @param v A non-null ElemParam reference.\n   */\n  public void setParam(ElemParam v)\n  {\n    setVariable(v);\n  }\n\n  /**\n   * Get an \"xsl:param\" property.\n   *\n   * @param qname non-null reference to qualified name of the parameter.\n   *\n   * @return ElemParam with the given name in the list or null\n   */\n  public ElemParam getParam(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = getVariableOrParam(i);\n        if((var.getXSLToken() == Constants.ELEMNAME_PARAMVARIABLE) &&\n           (var.getName().equals(qname)))\n          return (ElemParam)var;\n      }\n    }\n\n    return null;\n  }\n\n  /**\n   * The \"xsl:template\" properties.\n   * @serial\n   */\n  private Vector m_templates;\n\n  /**\n   * Set an \"xsl:template\" property.\n   *\n   * @param v ElemTemplate to add to list of templates\n   */\n  public void setTemplate(ElemTemplate v)\n  {\n\n    if (null == m_templates)\n      m_templates = new Vector();\n\n    m_templates.addElement(v);\n    v.setStylesheet(this);\n  }\n\n  /**\n   * Get an \"xsl:template\" property.\n   *\n   * @param i Index of ElemTemplate in the list to get\n   *\n   * @return ElemTemplate at the given index in the list\n   *\n   * @throws TransformerException\n   */\n  public ElemTemplate getTemplate(int i) throws TransformerException\n  {\n\n    if (null == m_templates)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemTemplate) m_templates.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:template\" properties.\n   *\n   * @return the number of \"xsl:template\" properties.\n   */\n  public int getTemplateCount()\n  {\n    return (null != m_templates) ? m_templates.size() : 0;\n  }\n\n  /**\n   * The \"xsl:namespace-alias\" properties.\n   * @serial\n   */\n  private Vector m_prefix_aliases;\n\n  /**\n   * Set the \"xsl:namespace-alias\" property.\n   *\n   * @param na NamespaceAlias elemeent to add to the list\n   */\n  public void setNamespaceAlias(NamespaceAlias na)\n  {\n\n    if (m_prefix_aliases == null)\n      m_prefix_aliases = new Vector();\n\n    m_prefix_aliases.addElement(na);\n  }\n\n  /**\n   * Get an \"xsl:namespace-alias\" property.\n   *\n   * @param i Index of NamespaceAlias element to get from the list \n   *\n   * @return NamespaceAlias element at the given index in the list\n   *\n   * @throws ArrayIndexOutOfBoundsException\n   */\n  public NamespaceAlias getNamespaceAlias(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_prefix_aliases)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (NamespaceAlias) m_prefix_aliases.elementAt(i);\n  }\n\n  /**\n   * Get the number of \"xsl:namespace-alias\" properties.\n   *\n   * @return the number of \"xsl:namespace-alias\" properties.\n   */\n  public int getNamespaceAliasCount()\n  {\n    return (null != m_prefix_aliases) ? m_prefix_aliases.size() : 0;\n  }\n\n  /**\n   * The \"non-xsl-top-level\" properties.\n   * @serial\n   */\n  private Hashtable m_NonXslTopLevel;\n\n  /**\n   * Set found a non-xslt element.\n   *\n   * @param name Qualified name of the element\n   * @param obj The element object\n   */\n  public void setNonXslTopLevel(QName name, Object obj)\n  {\n\n    if (null == m_NonXslTopLevel)\n      m_NonXslTopLevel = new Hashtable();\n\n    m_NonXslTopLevel.put(name, obj);\n  }\n\n  /**\n   * Get a non-xslt element.\n   *\n   * @param name Qualified name of the element to get\n   *\n   * @return The object associate with the given name \n   */\n  public Object getNonXslTopLevel(QName name)\n  {\n    return (null != m_NonXslTopLevel) ? m_NonXslTopLevel.get(name) : null;\n  }\n\n\n  /**\n   * The base URL of the XSL document.\n   * @serial\n   */\n  private String m_href = null;\n\n  /** The doctype-public element.\n   *  @serial          */\n  private String m_publicId;\n\n  /** The doctype-system element.\n   *  @serial          */\n  private String m_systemId;\n\n  /**\n   * Get the base identifier with which this stylesheet is associated.\n   *\n   * @return the base identifier with which this stylesheet is associated.\n   */\n  public String getHref()\n  {\n    return m_href;\n  }\n\n  /**\n   * Set the base identifier with which this stylesheet is associated.\n   *\n   * @param baseIdent the base identifier with which this stylesheet is associated.\n   */\n  public void setHref(String baseIdent)\n  {\n    m_href = baseIdent;\n  }\n\n  /**\n   * Set the location information for this element.\n   *\n   * @param locator SourceLocator object with location information  \n   */\n  public void setLocaterInfo(SourceLocator locator)\n  {\n\n    if (null != locator)\n    {\n      m_publicId = locator.getPublicId();\n      m_systemId = locator.getSystemId();\n\n      if (null != m_systemId)\n      {\n        try\n        {\n          m_href = SystemIDResolver.getAbsoluteURI(m_systemId, null);\n        }\n        catch (TransformerException se)\n        {\n\n        }\n      }\n\n      super.setLocaterInfo(locator);\n    }\n  }\n\n  /**\n   * The root of the stylesheet, where all the tables common\n   * to all stylesheets are kept.\n   * @serial\n   */\n  private StylesheetRoot m_stylesheetRoot;\n\n  /**\n   * Get the root of the stylesheet, where all the tables common\n   * to all stylesheets are kept.\n   *\n   * @return the root of the stylesheet\n   */\n  public StylesheetRoot getStylesheetRoot()\n  {\n    return m_stylesheetRoot;\n  }\n\n  /**\n   * Set the root of the stylesheet, where all the tables common\n   * to all stylesheets are kept.\n   *\n   * @param v the root of the stylesheet\n   */\n  public void setStylesheetRoot(StylesheetRoot v)\n  {\n    m_stylesheetRoot = v;\n  }\n\n  /**\n   * The parent of the stylesheet.  This will be null if this\n   * is the root stylesheet.\n   * @serial\n   */\n  private Stylesheet m_stylesheetParent;\n\n  /**\n   * Get the parent of the stylesheet.  This will be null if this\n   * is the root stylesheet.\n   *\n   * @return the parent of the stylesheet.\n   */\n  public Stylesheet getStylesheetParent()\n  {\n    return m_stylesheetParent;\n  }\n\n  /**\n   * Set the parent of the stylesheet.  This should be null if this\n   * is the root stylesheet.\n   *\n   * @param v the parent of the stylesheet.\n   */\n  public void setStylesheetParent(Stylesheet v)\n  {\n    m_stylesheetParent = v;\n  }\n\n  /**\n   * Get the owning aggregated stylesheet, or this\n   * stylesheet if it is aggregated.\n   *\n   * @return the owning aggregated stylesheet or itself\n   */\n  public StylesheetComposed getStylesheetComposed()\n  {\n\n    Stylesheet sheet = this;\n\n    while (!sheet.isAggregatedType())\n    {\n      sheet = sheet.getStylesheetParent();\n    }\n\n    return (StylesheetComposed) sheet;\n  }\n\n  /**\n   * Get the type of the node.  We'll pretend we're a Document.\n   *\n   * @return the type of the node: document node.\n   */\n  public short getNodeType()\n  {\n    return DTM.DOCUMENT_NODE;\n  }\n\n  /**\n   * Get an integer representation of the element type.\n   *\n   * @return An integer representation of the element, defined in the\n   *     Constants class.\n   * @see org.apache.xalan.templates.Constants\n   */\n  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_STYLESHEET;\n  }\n\n  /**\n   * Return the node name.\n   *\n   * @return The node name\n   */\n  public String getNodeName()\n  {\n    return Constants.ELEMNAME_STYLESHEET_STRING;\n  }\n\n  /**\n   * Replace an \"xsl:template\" property.\n   * This is a hook for CompilingStylesheetHandler, to allow\n   * us to access a template, compile it, instantiate it,\n   * and replace the original with the compiled instance.\n   * ADDED 9/5/2000 to support compilation experiment\n   *\n   * @param v Compiled template to replace with\n   * @param i Index of template to be replaced\n   *\n   * @throws TransformerException\n   */\n  public void replaceTemplate(ElemTemplate v, int i) throws TransformerException\n  {\n\n    if (null == m_templates)\n      throw new ArrayIndexOutOfBoundsException();\n\n    replaceChild(v, (ElemTemplateElement)m_templates.elementAt(i));\n    m_templates.setElementAt(v, i);\n    v.setStylesheet(this);\n  }\n  \n    /**\n     * Call the children visitors.\n     * @param visitor The visitor whose appropriate method will be called.\n     */\n    protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n    {\n      int s = getImportCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tgetImport(j).callVisitors(visitor);\n      }\n   \n      s = getIncludeCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tgetInclude(j).callVisitors(visitor);\n      }\n\n      s = getOutputCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getOutput(j));\n      }\n\n\n      s = getAttributeSetCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tElemAttributeSet attrSet = getAttributeSet(j);\n        if (visitor.visitTopLevelInstruction(attrSet))\n        {\n          attrSet.callChildVisitors(visitor);\n        }\n      }\n\n      s = getDecimalFormatCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getDecimalFormat(j));\n      }\n\n\n      s = getKeyCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getKey(j));\n      }\n\n\n      s = getNamespaceAliasCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getNamespaceAlias(j));\n      }\n\n\n      s = getTemplateCount();\n      for (int j = 0; j < s; j++)\n      {\n        try\n        {\n          ElemTemplate template = getTemplate(j);\n          if (visitor.visitTopLevelInstruction(template))\n          {\n            template.callChildVisitors(visitor);\n          }\n        }\n        catch (TransformerException te)\n        {\n          throw new org.apache.xml.utils.WrappedRuntimeException(te);\n        }\n      }\n\n\n      s = getVariableOrParamCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tElemVariable var = getVariableOrParam(j);\n        if (visitor.visitTopLevelVariableOrParamDecl(var))\n        {\n          var.callChildVisitors(visitor);\n        }\n      }\n\n\n      s = getStripSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getStripSpace(j));\n      }\n\n      s = getPreserveSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getPreserveSpace(j));\n      }\n      \n      if(null != m_NonXslTopLevel)\n      {\n      \tjava.util.Enumeration enum1 = m_NonXslTopLevel.elements();\n      \twhile(enum1.hasMoreElements())\n      \t{\n      \t  ElemTemplateElement elem = (ElemTemplateElement)enum1.nextElement();\n          if (visitor.visitTopLevelInstruction(elem))\n          {\n            elem.callChildVisitors(visitor);\n          }\n      \t\t\n      \t}\n      }\n    }\n        \n          \n  /**\n   * Accept a visitor and call the appropriate method \n   * for this class.\n   * \n   * @param visitor The visitor whose appropriate method will be called.\n   * @return true if the children of the object should be visited.\n   */\n  protected boolean accept(XSLTVisitor visitor)\n  {\n  \treturn visitor.visitStylesheet(this);", "functions": [{"function_name": "getStylesheet", "code": "  public Stylesheet getStylesheet()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isAggregatedType", "code": "  public boolean isAggregatedType()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isRoot", "code": "  public boolean isRoot()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "readObject", "code": "  private void readObject(ObjectInputStream stream)\n          throws IOException, TransformerException\n  {\n\n    try\n    {\n      stream.defaultReadObject();\n    }\n    catch (ClassNotFoundException cnfe)\n    {\n      throw new TransformerException(cnfe);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "writeObject", "code": "  private void writeObject(ObjectOutputStream stream) throws IOException\n  {\n\n    stream.defaultWriteObject();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setXmlnsXsl", "code": "  public void setXmlnsXsl(String v)\n  {\n    m_XmlnsXsl = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getXmlnsXsl", "code": "  public String getXmlnsXsl()\n  {\n    return m_XmlnsXsl;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setExtensionElementPrefixes", "code": "  public void setExtensionElementPrefixes(StringVector v)\n  {\n    m_ExtensionElementURIs = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExtensionElementPrefix", "code": "  public String getExtensionElementPrefix(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_ExtensionElementURIs)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return m_ExtensionElementURIs.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExtensionElementPrefixCount", "code": "  public int getExtensionElementPrefixCount()\n  {\n    return (null != m_ExtensionElementURIs)\n           ? m_ExtensionElementURIs.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "containsExtensionElementURI", "code": "  public boolean containsExtensionElementURI(String uri)\n  {\n\n    if (null == m_ExtensionElementURIs)\n      return false;\n\n    return m_ExtensionElementURIs.contains(uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "setExcludeResultPrefixes", "code": "  public void setExcludeResultPrefixes(StringVector v)\n  {\n    m_ExcludeResultPrefixs = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExcludeResultPrefix", "code": "  public String getExcludeResultPrefix(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_ExcludeResultPrefixs)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return m_ExcludeResultPrefixs.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getExcludeResultPrefixCount", "code": "  public int getExcludeResultPrefixCount()\n  {\n    return (null != m_ExcludeResultPrefixs)\n           ? m_ExcludeResultPrefixs.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "containsExcludeResultPrefix", "code": "  public boolean containsExcludeResultPrefix(String prefix, String uri) \n  {\n\n    if (null == m_ExcludeResultPrefixs || uri == null )\n      return false;\n    \n    for (int i =0; i< m_ExcludeResultPrefixs.size(); i++)\n    {\n      if (uri.equals(getNamespaceForPrefix(m_ExcludeResultPrefixs.elementAt(i))))\n        return true;\n    }\n    \n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [3, 9], [2, 10], [7, 11], [8, 12], [9, 13], [9, 14], [10, 15], [10, 16], [2, 17], [13, 18], [14, 19], [15, 20], [16, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 3], [10, 2], [11, 7], [12, 8], [13, 9], [14, 9], [15, 10], [16, 10], [17, 2], [18, 13], [19, 14], [20, 15], [21, 16], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "setId", "code": "  public void setId(String v)\n  {\n    m_Id = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getId", "code": "  public String getId()\n  {\n    return m_Id;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setVersion", "code": "  public void setVersion(String v)\n  {\n    m_Version = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getVersion", "code": "  public String getVersion()\n  {\n    return m_Version;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setImport", "code": "  public void setImport(StylesheetComposed v)\n  {\n\n    if (null == m_imports)\n      m_imports = new Vector();\n\n    m_imports.addElement(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getImport", "code": "  public StylesheetComposed getImport(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_imports)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (StylesheetComposed) m_imports.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getImportCount", "code": "  public int getImportCount()\n  {\n    return (null != m_imports) ? m_imports.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setInclude", "code": "  public void setInclude(Stylesheet v)\n  {\n\n    if (null == m_includes)\n      m_includes = new Vector();\n\n    m_includes.addElement(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getInclude", "code": "  public Stylesheet getInclude(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_includes)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (Stylesheet) m_includes.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getIncludeCount", "code": "  public int getIncludeCount()\n  {\n    return (null != m_includes) ? m_includes.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setDecimalFormat", "code": "  public void setDecimalFormat(DecimalFormatProperties edf)\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      m_DecimalFormatDeclarations = new Stack();\n\n    m_DecimalFormatDeclarations.push(edf);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDecimalFormat", "code": "  public DecimalFormatProperties getDecimalFormat(QName name)\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      return null;\n\n    int n = getDecimalFormatCount();\n\n    for (int i = (n - 1); i >= 0; i++)\n    {\n      DecimalFormatProperties dfp = getDecimalFormat(i);\n\n      if (dfp.getName().equals(name))\n        return dfp;\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [4, 8], [4, 9], [2, 10], [2, 11], [7, 12], [3, 13], [8, 14], [9, 15], [10, 16], [10, 17], [2, 18], [17, 19], [11, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 4], [9, 4], [10, 2], [11, 2], [12, 7], [13, 3], [14, 8], [15, 9], [16, 10], [17, 10], [18, 2], [19, 17], [20, 11], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getDecimalFormat", "code": "  public DecimalFormatProperties getDecimalFormat(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_DecimalFormatDeclarations)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (DecimalFormatProperties) m_DecimalFormatDeclarations.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getDecimalFormatCount", "code": "  public int getDecimalFormatCount()\n  {\n    return (null != m_DecimalFormatDeclarations)\n           ? m_DecimalFormatDeclarations.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setStripSpaces", "code": "  public void setStripSpaces(WhiteSpaceInfo wsi)\n  {\n\n    if (null == m_whitespaceStrippingElements)\n    {\n      m_whitespaceStrippingElements = new Vector();\n    }\n\n    m_whitespaceStrippingElements.addElement(wsi);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getStripSpace", "code": "  public WhiteSpaceInfo getStripSpace(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_whitespaceStrippingElements)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (WhiteSpaceInfo) m_whitespaceStrippingElements.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getStripSpaceCount", "code": "  public int getStripSpaceCount()\n  {\n    return (null != m_whitespaceStrippingElements)\n           ? m_whitespaceStrippingElements.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setPreserveSpaces", "code": "  public void setPreserveSpaces(WhiteSpaceInfo wsi)\n  {\n\n    if (null == m_whitespacePreservingElements)\n    {\n      m_whitespacePreservingElements = new Vector();\n    }\n\n    m_whitespacePreservingElements.addElement(wsi);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getPreserveSpace", "code": "  public WhiteSpaceInfo getPreserveSpace(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_whitespacePreservingElements)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (WhiteSpaceInfo) m_whitespacePreservingElements.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getPreserveSpaceCount", "code": "  public int getPreserveSpaceCount()\n  {\n    return (null != m_whitespacePreservingElements)\n           ? m_whitespacePreservingElements.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setOutput", "code": "  public void setOutput(OutputProperties v)\n  {\n    if (null == m_output)\n    {\n      m_output = new Vector();\n    }\n\n    m_output.addElement(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getOutput", "code": "  public OutputProperties getOutput(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_output)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (OutputProperties) m_output.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getOutputCount", "code": "  public int getOutputCount()\n  {\n    return (null != m_output)\n           ? m_output.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setKey", "code": "  public void setKey(KeyDeclaration v)\n  {\n\n    if (null == m_keyDeclarations)\n      m_keyDeclarations = new Vector();\n\n    m_keyDeclarations.addElement(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getKey", "code": "  public KeyDeclaration getKey(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_keyDeclarations)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (KeyDeclaration) m_keyDeclarations.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getKeyCount", "code": "  public int getKeyCount()\n  {\n    return (null != m_keyDeclarations) ? m_keyDeclarations.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setAttributeSet", "code": "  public void setAttributeSet(ElemAttributeSet attrSet)\n  {\n\n    if (null == m_attributeSets)\n    {\n      m_attributeSets = new Vector();\n    }\n\n    m_attributeSets.addElement(attrSet);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getAttributeSet", "code": "  public ElemAttributeSet getAttributeSet(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_attributeSets)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemAttributeSet) m_attributeSets.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getAttributeSetCount", "code": "  public int getAttributeSetCount()\n  {\n    return (null != m_attributeSets) ? m_attributeSets.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setVariable", "code": "  public void setVariable(ElemVariable v)\n  {\n\n    if (null == m_topLevelVariables)\n      m_topLevelVariables = new Vector();\n\n    m_topLevelVariables.addElement(v);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getVariableOrParam", "code": "  public ElemVariable getVariableOrParam(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = (ElemVariable) getVariableOrParam(i);\n\n        if (var.getName().equals(qname))\n          return var;\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [7, 12], [10, 13], [10, 14], [6, 15], [14, 16], [11, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 7], [13, 10], [14, 10], [15, 6], [16, 14], [17, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "getVariable", "code": "  public ElemVariable getVariable(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = getVariableOrParam(i);\n        if((var.getXSLToken() == Constants.ELEMNAME_VARIABLE) &&\n           (var.getName().equals(qname)))\n          return var;\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [7, 12], [10, 13], [10, 14], [6, 15], [14, 16], [14, 17], [11, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 7], [13, 10], [14, 10], [15, 6], [16, 14], [17, 14], [18, 11], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getVariableOrParam", "code": "  public ElemVariable getVariableOrParam(int i) throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_topLevelVariables)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemVariable) m_topLevelVariables.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getVariableOrParamCount", "code": "  public int getVariableOrParamCount()\n  {\n    return (null != m_topLevelVariables) ? m_topLevelVariables.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setParam", "code": "  public void setParam(ElemParam v)\n  {\n    setVariable(v);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getParam", "code": "  public ElemParam getParam(QName qname)\n  {\n\n    if (null != m_topLevelVariables)\n    {\n      int n = getVariableOrParamCount();\n\n      for (int i = 0; i < n; i++)\n      {\n        ElemVariable var = getVariableOrParam(i);\n        if((var.getXSLToken() == Constants.ELEMNAME_PARAMVARIABLE) &&\n           (var.getName().equals(qname)))\n          return (ElemParam)var;\n      }\n    }\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [6, 11], [7, 12], [10, 13], [10, 14], [6, 15], [14, 16], [14, 17], [11, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 6], [12, 7], [13, 10], [14, 10], [15, 6], [16, 14], [17, 14], [18, 11], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "setTemplate", "code": "  public void setTemplate(ElemTemplate v)\n  {\n\n    if (null == m_templates)\n      m_templates = new Vector();\n\n    m_templates.addElement(v);\n    v.setStylesheet(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getTemplate", "code": "  public ElemTemplate getTemplate(int i) throws TransformerException\n  {\n\n    if (null == m_templates)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (ElemTemplate) m_templates.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getTemplateCount", "code": "  public int getTemplateCount()\n  {\n    return (null != m_templates) ? m_templates.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setNamespaceAlias", "code": "  public void setNamespaceAlias(NamespaceAlias na)\n  {\n\n    if (m_prefix_aliases == null)\n      m_prefix_aliases = new Vector();\n\n    m_prefix_aliases.addElement(na);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getNamespaceAlias", "code": "  public NamespaceAlias getNamespaceAlias(int i)\n          throws ArrayIndexOutOfBoundsException\n  {\n\n    if (null == m_prefix_aliases)\n      throw new ArrayIndexOutOfBoundsException();\n\n    return (NamespaceAlias) m_prefix_aliases.elementAt(i);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [1, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 1], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNamespaceAliasCount", "code": "  public int getNamespaceAliasCount()\n  {\n    return (null != m_prefix_aliases) ? m_prefix_aliases.size() : 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setNonXslTopLevel", "code": "  public void setNonXslTopLevel(QName name, Object obj)\n  {\n\n    if (null == m_NonXslTopLevel)\n      m_NonXslTopLevel = new Hashtable();\n\n    m_NonXslTopLevel.put(name, obj);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getNonXslTopLevel", "code": "  public Object getNonXslTopLevel(QName name)\n  {\n    return (null != m_NonXslTopLevel) ? m_NonXslTopLevel.get(name) : null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [3, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 3], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getHref", "code": "  public String getHref()\n  {\n    return m_href;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHref", "code": "  public void setHref(String baseIdent)\n  {\n    m_href = baseIdent;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLocaterInfo", "code": "  public void setLocaterInfo(SourceLocator locator)\n  {\n\n    if (null != locator)\n    {\n      m_publicId = locator.getPublicId();\n      m_systemId = locator.getSystemId();\n\n      if (null != m_systemId)\n      {\n        try\n        {\n          m_href = SystemIDResolver.getAbsoluteURI(m_systemId, null);\n        }\n        catch (TransformerException se)\n        {\n\n        }\n      }\n\n      super.setLocaterInfo(locator);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 7], [1, 8], [4, 9], [6, 10], [7, 11], [8, 12], [9, 13], [9, 14], [14, 15], [15, 16], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 1], [8, 1], [9, 4], [10, 6], [11, 7], [12, 8], [13, 9], [14, 9], [15, 14], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getStylesheetRoot", "code": "  public StylesheetRoot getStylesheetRoot()\n  {\n    return m_stylesheetRoot;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStylesheetRoot", "code": "  public void setStylesheetRoot(StylesheetRoot v)\n  {\n    m_stylesheetRoot = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheetParent", "code": "  public Stylesheet getStylesheetParent()\n  {\n    return m_stylesheetParent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setStylesheetParent", "code": "  public void setStylesheetParent(Stylesheet v)\n  {\n    m_stylesheetParent = v;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStylesheetComposed", "code": "  public StylesheetComposed getStylesheetComposed()\n  {\n\n    Stylesheet sheet = this;\n\n    while (!sheet.isAggregatedType())\n    {\n      sheet = sheet.getStylesheetParent();\n    }\n\n    return (StylesheetComposed) sheet;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getNodeType", "code": "  public short getNodeType()\n  {\n    return DTM.DOCUMENT_NODE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getXSLToken", "code": "  public int getXSLToken()\n  {\n    return Constants.ELEMNAME_STYLESHEET;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeName", "code": "  public String getNodeName()\n  {\n    return Constants.ELEMNAME_STYLESHEET_STRING;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "replaceTemplate", "code": "  public void replaceTemplate(ElemTemplate v, int i) throws TransformerException\n  {\n\n    if (null == m_templates)\n      throw new ArrayIndexOutOfBoundsException();\n\n    replaceChild(v, (ElemTemplateElement)m_templates.elementAt(i));\n    m_templates.setElementAt(v, i);\n    v.setStylesheet(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "callChildVisitors", "code": "    protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)\n    {\n      int s = getImportCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tgetImport(j).callVisitors(visitor);\n      }\n   \n      s = getIncludeCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tgetInclude(j).callVisitors(visitor);\n      }\n\n      s = getOutputCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getOutput(j));\n      }\n\n\n      s = getAttributeSetCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tElemAttributeSet attrSet = getAttributeSet(j);\n        if (visitor.visitTopLevelInstruction(attrSet))\n        {\n          attrSet.callChildVisitors(visitor);\n        }\n      }\n\n      s = getDecimalFormatCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getDecimalFormat(j));\n      }\n\n\n      s = getKeyCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getKey(j));\n      }\n\n\n      s = getNamespaceAliasCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getNamespaceAlias(j));\n      }\n\n\n      s = getTemplateCount();\n      for (int j = 0; j < s; j++)\n      {\n        try\n        {\n          ElemTemplate template = getTemplate(j);\n          if (visitor.visitTopLevelInstruction(template))\n          {\n            template.callChildVisitors(visitor);\n          }\n        }\n        catch (TransformerException te)\n        {\n          throw new org.apache.xml.utils.WrappedRuntimeException(te);\n        }\n      }\n\n\n      s = getVariableOrParamCount();\n      for (int j = 0; j < s; j++)\n      {\n      \tElemVariable var = getVariableOrParam(j);\n        if (visitor.visitTopLevelVariableOrParamDecl(var))\n        {\n          var.callChildVisitors(visitor);\n        }\n      }\n\n\n      s = getStripSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getStripSpace(j));\n      }\n\n      s = getPreserveSpaceCount();\n      for (int j = 0; j < s; j++)\n      {\n        visitor.visitTopLevelInstruction(getPreserveSpace(j));\n      }\n      \n      if(null != m_NonXslTopLevel)\n      {\n      \tjava.util.Enumeration enum1 = m_NonXslTopLevel.elements();\n      \twhile(enum1.hasMoreElements())\n      \t{\n      \t  ElemTemplateElement elem = (ElemTemplateElement)enum1.nextElement();\n          if (visitor.visitTopLevelInstruction(elem))\n          {\n            elem.callChildVisitors(visitor);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "TRY", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CATCH", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [1, 16], [2, 17], [0, 18], [3, 19], [0, 20], [4, 21], [0, 22], [5, 23], [0, 24], [6, 25], [0, 26], [7, 27], [0, 28], [8, 29], [0, 30], [9, 31], [0, 32], [10, 33], [0, 34], [11, 35], [0, 36], [12, 37], [1, 38], [1, 39], [16, 40], [18, 41], [20, 42], [4, 43], [4, 44], [22, 45], [5, 46], [24, 47], [26, 48], [28, 49], [30, 50], [9, 51], [9, 52], [32, 53], [34, 54], [36, 55], [13, 56], [38, 57], [2, 58], [2, 59], [3, 60], [3, 61], [43, 62], [4, 63], [46, 64], [46, 65], [46, 66], [5, 67], [6, 68], [6, 69], [7, 70], [7, 71], [8, 72], [8, 73], [51, 74], [9, 75], [10, 76], [10, 77], [11, 78], [11, 79], [12, 80], [12, 81], [38, 82], [38, 83], [39, 84], [58, 85], [60, 86], [44, 87], [64, 88], [65, 89], [68, 90], [70, 91], [72, 92], [52, 93], [76, 94], [78, 95], [80, 96], [82, 97], [43, 98], [88, 99], [66, 100], [51, 101], [65, 102], [82, 103], [83, 104], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 1], [17, 2], [18, 0], [19, 3], [20, 0], [21, 4], [22, 0], [23, 5], [24, 0], [25, 6], [26, 0], [27, 7], [28, 0], [29, 8], [30, 0], [31, 9], [32, 0], [33, 10], [34, 0], [35, 11], [36, 0], [37, 12], [38, 1], [39, 1], [40, 16], [41, 18], [42, 20], [43, 4], [44, 4], [45, 22], [46, 5], [47, 24], [48, 26], [49, 28], [50, 30], [51, 9], [52, 9], [53, 32], [54, 34], [55, 36], [56, 13], [57, 38], [58, 2], [59, 2], [60, 3], [61, 3], [62, 43], [63, 4], [64, 46], [65, 46], [66, 46], [67, 5], [68, 6], [69, 6], [70, 7], [71, 7], [72, 8], [73, 8], [74, 51], [75, 9], [76, 10], [77, 10], [78, 11], [79, 11], [80, 12], [81, 12], [82, 38], [83, 38], [84, 39], [85, 58], [86, 60], [87, 44], [88, 64], [89, 65], [90, 68], [91, 70], [92, 72], [93, 52], [94, 76], [95, 78], [96, 80], [97, 82], [98, 43], [99, 88], [100, 66], [101, 51], [102, 65], [103, 82], [104, 83], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104]]}, {"function_name": "accept", "code": "  protected boolean accept(XSLTVisitor visitor)\n  {\n  \treturn visitor.visitStylesheet(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "Stylesheet", "code": "  public Stylesheet(Stylesheet parent)\n  {\n\n    if (null != parent)\n    {\n      m_stylesheetParent = parent;\n      m_stylesheetRoot = parent.getStylesheetRoot();", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 1}
{"sample_id": "ant-1.7-1349", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/types/resources/URLResource.java", "language": "java", "name": "org.apache.tools.ant.types.resources.URLResource", "code": "public class URLResource extends Resource {\n    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();\n    private static final int NULL_URL\n        = Resource.getMagicNumber(\"null URL\".getBytes());\n\n    private URL url;\n    private URLConnection conn;\n\n    /**\n     * Default constructor.\n     */\n    public URLResource() {\n    }\n\n    /**\n     * Convenience constructor.\n     * @param u the URL to expose.\n     */\n    public URLResource(URL u) {\n        setURL(u);\n    }\n\n    /**\n     * Convenience constructor.\n     * @param f the File to set as a URL.\n     */\n    public URLResource(File f) {\n        setFile(f);\n    }\n\n    /**\n     * String constructor for Ant attribute introspection.\n     * @param u String representation of this URL.\n     * @see org.apache.tools.ant.IntrospectionHelper\n     */\n    public URLResource(String u) {\n        this(newURL(u));\n    }\n\n    /**\n     * Set the URL for this URLResource.\n     * @param u the URL to expose.\n     */\n    public synchronized void setURL(URL u) {\n        checkAttributesAllowed();\n        url = u;\n    }\n\n    /**\n     * Set the URL from a File.\n     * @param f the File to set as a URL.\n     */\n    public synchronized void setFile(File f) {\n        try {\n            setURL(FILE_UTILS.getFileURL(f));\n        } catch (MalformedURLException e) {\n            throw new BuildException(e);\n        }\n    }\n\n    /**\n     * Get the URL used by this URLResource.\n     * @return a URL object.\n     */\n    public synchronized URL getURL() {\n        if (isReference()) {\n            return ((URLResource) getCheckedRef()).getURL();\n        }\n        return url;\n     }\n\n    /**\n     * Overrides the super version.\n     * @param r the Reference to set.\n     */\n    public synchronized void setRefid(Reference r) {\n        if (url != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);\n    }\n\n    /**\n     * Get the name of this URLResource\n     * (its file component minus the leading separator).\n     * @return the name of this resource.\n     */\n    public synchronized String getName() {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getName();\n        }\n        String name = getURL().getFile();\n        return \"\".equals(name) ? name : name.substring(1);\n    }\n\n    /**\n     * Return this URLResource formatted as a String.\n     * @return a String representation of this URLResource.\n     */\n    public synchronized String toString() {\n        return isReference()\n            ? getCheckedRef().toString() : String.valueOf(getURL());\n    }\n\n    /**\n     * Find out whether the URL exists .\n     * @return true if this resource exists.\n     */\n    public synchronized boolean isExists() {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).isExists();\n        }\n        return isExists(false);\n    }\n\n    /**\n     * Find out whether the URL exists, and close the connection\n     * opened to the URL if closeConnection is true.\n     *\n     * Note that this method does ensure that if:\n     * - the resource exists (if it returns true)\n     * - and if the current object is not a reference\n     * (isReference() returns false)\n     * - and if it was called with closeConnection to false,\n     *\n     * then the connection to the URL (stored in the conn\n     * private field) will be opened, and require to be closed\n     * by the caller.\n     *\n     * @param closeConnection true if the connection should be closed\n     * after the call, false if it should stay open.\n     * @return true if this resource exists.\n     */\n    private synchronized boolean isExists(boolean closeConnection) {\n        if (getURL() == null) {\n            return false;\n        }\n        try {\n            connect();\n            return true;\n        } catch (IOException e) {\n            return false;\n        } finally {\n            if (closeConnection) {\n                close();\n            }\n        }\n    }\n\n\n    /**\n     * Tells the modification time in milliseconds since 01.01.1970 .\n     *\n     * @return 0 if the resource does not exist to mirror the behavior\n     * of {@link java.io.File File}.\n     */\n    public synchronized long getLastModified() {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getLastModified();\n        }\n        if (!isExists(false)) {\n            return 0L;\n        }\n        return conn.getLastModified();\n    }\n\n    /**\n     * Tells if the resource is a directory.\n     * @return boolean whether the resource is a directory.\n     */\n    public synchronized boolean isDirectory() {\n        return isReference()\n            ? ((Resource) getCheckedRef()).isDirectory()\n            : getName().endsWith(\"/\");\n    }\n\n    /**\n     * Get the size of this Resource.\n     * @return the size, as a long, 0 if the Resource does not exist (for\n     *         compatibility with java.io.File), or UNKNOWN_SIZE if not known.\n     */\n    public synchronized long getSize() {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getSize();\n        }\n        if (!isExists(false)) {\n            return 0L;\n        }\n        try {\n            connect();\n            long contentlength = conn.getContentLength();\n            close();\n            return contentlength;\n        } catch (IOException e) {\n            return UNKNOWN_SIZE;\n        }\n    }\n\n    /**\n     * Test whether an Object equals this URLResource.\n     * @param another the other Object to compare.\n     * @return true if the specified Object is equal to this Resource.\n     */\n    public synchronized boolean equals(Object another) {\n        if (this == another) {\n            return true;\n        }\n        if (isReference()) {\n            return getCheckedRef().equals(another);\n        }\n        if (!(another.getClass().equals(getClass()))) {\n            return false;\n        }\n        URLResource otheru = (URLResource) another;\n        return getURL() == null\n            ? otheru.getURL() == null\n            : getURL().equals(otheru.getURL());\n    }\n\n    /**\n     * Get the hash code for this Resource.\n     * @return hash code as int.\n     */\n    public synchronized int hashCode() {\n        if (isReference()) {\n            return getCheckedRef().hashCode();\n        }\n        return MAGIC * ((getURL() == null) ? NULL_URL : getURL().hashCode());\n    }\n\n    /**\n     * Get an InputStream for the Resource.\n     * @return an InputStream containing this Resource's content.\n     * @throws IOException if unable to provide the content of this\n     *         Resource as a stream.\n     * @throws UnsupportedOperationException if InputStreams are not\n     *         supported for this Resource type.\n     */\n    public synchronized InputStream getInputStream() throws IOException {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getInputStream();\n        }\n        connect();\n        try {\n            return conn.getInputStream();\n        } finally {\n            conn = null;\n        }\n    }\n\n    /**\n     * Get an OutputStream for the Resource.\n     * @return an OutputStream to which content can be written.\n     * @throws IOException if unable to provide the content of this\n     *         Resource as a stream.\n     * @throws UnsupportedOperationException if OutputStreams are not\n     *         supported for this Resource type.\n     * @throws IOException if the URL cannot be opened.\n     */\n    public synchronized OutputStream getOutputStream() throws IOException {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getOutputStream();\n        }\n        connect();\n        try {\n            return conn.getOutputStream();\n        } finally {\n            conn = null;\n        }\n    }\n\n    /**\n     * Ensure that we have a connection.\n     * @throws IOException if the connection cannot be established.\n     */\n    protected synchronized void connect() throws IOException {\n        URL u = getURL();\n        if (u == null) {\n            throw new BuildException(\"URL not set\");\n        }\n        if (conn == null) {\n            try {\n                conn = u.openConnection();\n                conn.connect();\n            } catch (IOException e) {\n                log(e.toString(), Project.MSG_ERR);\n                conn = null;\n                throw e;\n            }\n        }\n    }\n\n    /**\n     * Closes the URL connection if:\n     * - it is opened (i.e. the field conn is not null)\n     * - this type of URLConnection supports some sort of close mechanism\n     *\n     * This method ensures the field conn will be null after the call.\n     *\n     */\n    private synchronized void close() {\n        if (conn != null) {\n            try {\n                if (conn instanceof JarURLConnection) {\n                    JarURLConnection juc = (JarURLConnection) conn;\n                    JarFile jf = juc.getJarFile();\n                    jf.close();\n                    jf = null;\n                } else if (conn instanceof HttpURLConnection) {\n                    ((HttpURLConnection) conn).disconnect();\n                }\n            } catch (IOException exc) {\n            } finally {\n                conn = null;\n            }\n        }\n    }\n\n    private static URL newURL(String u) {\n        try {\n            return new URL(u);\n        } catch (MalformedURLException e) {\n            throw new BuildException(e);", "functions": [{"function_name": "setURL", "code": "    public synchronized void setURL(URL u) {\n        checkAttributesAllowed();\n        url = u;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setFile", "code": "    public synchronized void setFile(File f) {\n        try {\n            setURL(FILE_UTILS.getFileURL(f));\n        } catch (MalformedURLException e) {\n            throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "THROW_RAISE", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 1], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getURL", "code": "    public synchronized URL getURL() {\n        if (isReference()) {\n            return ((URLResource) getCheckedRef()).getURL();\n        }\n        return url;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 0], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setRefid", "code": "    public synchronized void setRefid(Reference r) {\n        if (url != null) {\n            throw tooManyAttributes();\n        }\n        super.setRefid(r);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getName", "code": "    public synchronized String getName() {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getName();\n        }\n        String name = getURL().getFile();\n        return \"\".equals(name) ? name : name.substring(1);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [3, 5], [4, 6], [4, 7], [2, 8], [3, 9], [6, 10], [7, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 1], [5, 3], [6, 4], [7, 4], [8, 2], [9, 3], [10, 6], [11, 7], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "toString", "code": "    public synchronized String toString() {\n        return isReference()\n            ? getCheckedRef().toString() : String.valueOf(getURL());", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isExists", "code": "    public synchronized boolean isExists() {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).isExists();\n        }\n        return isExists(false);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isExists", "code": "    private synchronized boolean isExists(boolean closeConnection) {\n        if (getURL() == null) {\n            return false;\n        }\n        try {\n            connect();\n            return true;\n        } catch (IOException e) {\n            return false;\n        } finally {\n            if (closeConnection) {\n                close();", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "IF", "CATCH", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [5, 8], [6, 9], [1, 10], [2, 11], [7, 12], [7, 13], [8, 14], [11, 15], [4, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 5], [9, 6], [10, 1], [11, 2], [12, 7], [13, 7], [14, 8], [15, 11], [16, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getLastModified", "code": "    public synchronized long getLastModified() {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getLastModified();\n        }\n        if (!isExists(false)) {\n            return 0L;\n        }\n        return conn.getLastModified();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [2, 7], [5, 8], [3, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 2], [8, 5], [9, 3], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "isDirectory", "code": "    public synchronized boolean isDirectory() {\n        return isReference()\n            ? ((Resource) getCheckedRef()).isDirectory()\n            : getName().endsWith(\"/\");", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [2, 6], [5, 7], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getSize", "code": "    public synchronized long getSize() {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getSize();\n        }\n        if (!isExists(false)) {\n            return 0L;\n        }\n        try {\n            connect();\n            long contentlength = conn.getContentLength();\n            close();\n            return contentlength;\n        } catch (IOException e) {\n            return UNKNOWN_SIZE;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "CATCH", "RETURN", "VAR_DECL", "CALL", "CALL", "RETURN", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [3, 8], [4, 9], [1, 10], [1, 11], [2, 12], [7, 13], [3, 14], [6, 15], [12, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 3], [9, 4], [10, 1], [11, 1], [12, 2], [13, 7], [14, 3], [15, 6], [16, 12], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "equals", "code": "    public synchronized boolean equals(Object another) {\n        if (this == another) {\n            return true;\n        }\n        if (isReference()) {\n            return getCheckedRef().equals(another);\n        }\n        if (!(another.getClass().equals(getClass()))) {\n            return false;\n        }\n        URLResource otheru = (URLResource) another;\n        return getURL() == null\n            ? otheru.getURL() == null\n            : getURL().equals(otheru.getURL());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "IF", "IF", "PARAM", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [3, 8], [4, 9], [5, 10], [7, 11], [7, 12], [7, 13], [3, 14], [4, 15], [5, 16], [11, 17], [12, 18], [12, 19], [13, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [23, 26], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 3], [9, 4], [10, 5], [11, 7], [12, 7], [13, 7], [14, 3], [15, 4], [16, 5], [17, 11], [18, 12], [19, 12], [20, 13], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26]]}, {"function_name": "hashCode", "code": "    public synchronized int hashCode() {\n        if (isReference()) {\n            return getCheckedRef().hashCode();\n        }\n        return MAGIC * ((getURL() == null) ? NULL_URL : getURL().hashCode());", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "CALL", "COND_EXPR", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [2, 6], [5, 7], [5, 8], [6, 9], [7, 10], [8, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 2], [7, 5], [8, 5], [9, 6], [10, 7], [11, 8], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "getInputStream", "code": "    public synchronized InputStream getInputStream() throws IOException {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getInputStream();\n        }\n        connect();\n        try {\n            return conn.getInputStream();\n        } finally {\n            conn = null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 6], [3, 7], [2, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 1], [7, 3], [8, 2], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getOutputStream", "code": "    public synchronized OutputStream getOutputStream() throws IOException {\n        if (isReference()) {\n            return ((Resource) getCheckedRef()).getOutputStream();\n        }\n        connect();\n        try {\n            return conn.getOutputStream();\n        } finally {\n            conn = null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "RETURN", "CALL", "CALL", "ASSIGN", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [2, 5], [1, 6], [3, 7], [2, 8], [6, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 2], [6, 1], [7, 3], [8, 2], [9, 6], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "connect", "code": "    protected synchronized void connect() throws IOException {\n        URL u = getURL();\n        if (u == null) {\n            throw new BuildException(\"URL not set\");\n        }\n        if (conn == null) {\n            try {\n                conn = u.openConnection();\n                conn.connect();\n            } catch (IOException e) {\n                log(e.toString(), Project.MSG_ERR);\n                conn = null;\n                throw e;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "THROW_RAISE", "CALL", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 6], [4, 7], [2, 8], [5, 9], [3, 10], [6, 11], [8, 12], [11, 13], [6, 14], [6, 15], [12, 16], [11, 17], [11, 18], [15, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 1], [7, 4], [8, 2], [9, 5], [10, 3], [11, 6], [12, 8], [13, 11], [14, 6], [15, 6], [16, 12], [17, 11], [18, 11], [19, 15], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "close", "code": "    private synchronized void close() {\n        if (conn != null) {\n            try {\n                if (conn instanceof JarURLConnection) {\n                    JarURLConnection juc = (JarURLConnection) conn;\n                    JarFile jf = juc.getJarFile();\n                    jf.close();\n                    jf = null;\n                } else if (conn instanceof HttpURLConnection) {\n                    ((HttpURLConnection) conn).disconnect();\n                }\n            } catch (IOException exc) {\n            } finally {\n                conn = null;", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "TRY", "LITERAL_ANCHOR", "CATCH", "IF", "ASSIGN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [3, 5], [3, 6], [3, 7], [6, 8], [6, 9], [7, 10], [8, 11], [6, 12], [6, 13], [6, 14], [6, 15], [14, 16], [12, 17], [1, 0], [2, 1], [3, 1], [4, 2], [5, 3], [6, 3], [7, 3], [8, 6], [9, 6], [10, 7], [11, 8], [12, 6], [13, 6], [14, 6], [15, 6], [16, 14], [17, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "newURL", "code": "    private static URL newURL(String u) {\n        try {\n            return new URL(u);\n        } catch (MalformedURLException e) {\n            throw new BuildException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "URLResource", "code": "    public URLResource() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "URLResource", "code": "    public URLResource(URL u) {\n        setURL(u);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "URLResource", "code": "    public URLResource(File f) {\n        setFile(f);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "URLResource", "code": "    public URLResource(String u) {\n        this(newURL(u));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "poi-3.0-6157", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/hssf/record/formula/StringPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.StringPtg", "code": "public class StringPtg\n    extends Ptg\n{\n    public final static int  SIZE = 9;\n    public final static byte sid  = 0x17;\n    int field_1_length;\n    byte field_2_options;\n    BitField fHighByte = BitFieldFactory.getInstance(0x01);\n    private String            field_3_string;\n\n    private StringPtg() {\n    }\n\n    /** Create a StringPtg from a byte array read from disk */\n    public StringPtg(RecordInputStream in)\n    {\n        field_1_length = in.readByte() & 0xFF;\n        field_2_options = in.readByte();\n        if (fHighByte.isSet(field_2_options)) {\n            field_3_string= in.readUnicodeLEString(field_1_length);\n        }else {\n            field_3_string=in.readCompressedUnicode(field_1_length);\n        }\n\n    }\n\n    /** Create a StringPtg from a string representation of  the number\n     *  Number format is not checked, it is expected to be validated in the parser\n     *   that calls this method.\n     *  @param value : String representation of a floating point number\n     */\n    public StringPtg(String value) {\n        if (value.length() >255) {\n            throw new IllegalArgumentException(\"String literals in formulas cant be bigger than 255 characters ASCII\");\n        }\n        this.field_2_options=0;        \n        field_2_options = (byte)this.fHighByte.setBoolean(field_2_options, StringUtil.hasMultibyte(value));\n        this.field_3_string=value;\n    }\n\n    /*\n    public void setValue(String value)\n    {\n        field_1_value = value;\n    }*/\n\n\n    public String getValue()\n    {\n        return field_3_string;\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n        array[ offset + 1 ] = (byte)field_1_length;\n        array[ offset + 2 ] = field_2_options;\n        if (fHighByte.isSet(field_2_options)) {\n            StringUtil.putUnicodeLE(getValue(),array,offset+3);\n        }else {\n            StringUtil.putCompressedUnicode(getValue(),array,offset+3);\n        }\n    }\n\n    public int getSize()\n    {\n        if (fHighByte.isSet(field_2_options)) {\n            return 2*field_1_length+3;\n        } else {\n            return field_1_length+3;\n        }\n    }\n\n    public String toFormulaString(Workbook book)\n    {\n        return \"\\\"\"+getValue()+\"\\\"\";\n    }\n    public byte getDefaultOperandClass() {\n       return Ptg.CLASS_VALUE;\n   }\n\n   public Object clone() {\n     StringPtg ptg = new StringPtg();\n     ptg.field_1_length = field_1_length;\n     ptg.field_2_options=field_2_options;\n     ptg.field_3_string=field_3_string;\n     return ptg;", "functions": [{"function_name": "getValue", "code": "    public String getValue()\n    {\n        return field_3_string;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n        array[ offset + 1 ] = (byte)field_1_length;\n        array[ offset + 2 ] = field_2_options;\n        if (fHighByte.isSet(field_2_options)) {\n            StringUtil.putUnicodeLE(getValue(),array,offset+3);\n        }else {\n            StringUtil.putCompressedUnicode(getValue(),array,offset+3);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [8, 11], [9, 12], [9, 13], [5, 14], [6, 15], [7, 16], [10, 17], [12, 18], [14, 19], [15, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 8], [12, 9], [13, 9], [14, 5], [15, 6], [16, 7], [17, 10], [18, 12], [19, 14], [20, 15], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        if (fHighByte.isSet(field_2_options)) {\n            return 2*field_1_length+3;\n        } else {\n            return field_1_length+3;", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \"\\\"\"+getValue()+\"\\\"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {\n       return Ptg.CLASS_VALUE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "   public Object clone() {\n     StringPtg ptg = new StringPtg();\n     ptg.field_1_length = field_1_length;\n     ptg.field_2_options=field_2_options;\n     ptg.field_3_string=field_3_string;\n     return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "StringPtg", "code": "    private StringPtg() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "StringPtg", "code": "    public StringPtg(RecordInputStream in)\n    {\n        field_1_length = in.readByte() & 0xFF;\n        field_2_options = in.readByte();\n        if (fHighByte.isSet(field_2_options)) {\n            field_3_string= in.readUnicodeLEString(field_1_length);\n        }else {\n            field_3_string=in.readCompressedUnicode(field_1_length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [4, 6], [5, 7], [1, 8], [1, 9], [7, 10], [7, 11], [8, 12], [9, 13], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 4], [7, 5], [8, 1], [9, 1], [10, 7], [11, 7], [12, 8], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "StringPtg", "code": "    public StringPtg(String value) {\n        if (value.length() >255) {\n            throw new IllegalArgumentException(\"String literals in formulas cant be bigger than 255 characters ASCII\");\n        }\n        this.field_2_options=0;        \n        field_2_options = (byte)this.fHighByte.setBoolean(field_2_options, StringUtil.hasMultibyte(value));\n        this.field_3_string=value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [5, 7], [1, 8], [6, 9], [6, 10], [8, 11], [4, 12], [11, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 5], [8, 1], [9, 6], [10, 6], [11, 8], [12, 4], [13, 11], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "jedit-4.2-4286", "repo": "jedit-4.2", "project": "jedit", "version": "4.2", "file_path": "org/gjt/sp/jedit/search/DirectoryListSet.java", "language": "java", "name": "org.gjt.sp.jedit.search.DirectoryListSet", "code": "public class DirectoryListSet extends BufferListSet\n{\n\t//{{{ DirectoryListSet constructor\n\tpublic DirectoryListSet(String directory, String glob, boolean recurse)\n\t{\n\t\tthis.directory = directory;\n\t\tthis.glob = glob;\n\t\tthis.recurse = recurse;\n\t} //}}}\n\n\t//{{{ getDirectory() method\n\tpublic String getDirectory()\n\t{\n\t\treturn directory;\n\t} //}}}\n\n\t//{{{ setDirectory() method\n\t/**\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void setDirectory(String directory)\n\t{\n\t\tthis.directory = directory;\n\t\tinvalidateCachedList();\n\t} //}}}\n\n\t//{{{ getFileFilter() method\n\tpublic String getFileFilter()\n\t{\n\t\treturn glob;\n\t} //}}}\n\n\t//{{{ setFileFilter() method\n\t/**\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void setFileFilter(String glob)\n\t{\n\t\tthis.glob = glob;\n\t\tinvalidateCachedList();\n\t} //}}}\n\n\t//{{{ isRecursive() method\n\tpublic boolean isRecursive()\n\t{\n\t\treturn recurse;\n\t} //}}}\n\n\t//{{{ setRecursive() method\n\t/**\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void setRecursive(boolean recurse)\n\t{\n\t\tthis.recurse = recurse;\n\t\tinvalidateCachedList();\n\t} //}}}\n\n\t//{{{ getCode() method\n\tpublic String getCode()\n\t{\n\t\treturn \"new DirectoryListSet(\\\"\" + MiscUtilities.charsToEscapes(directory)\n\t\t\t+ \"\\\",\\\"\" + MiscUtilities.charsToEscapes(glob) + \"\\\",\"\n\t\t\t+ recurse + \")\";\n\t} //}}}\n\n\t//{{{ _getFiles() method\n\tprotected String[] _getFiles(final Component comp)\n\t{\n\t\tfinal VFS vfs = VFSManager.getVFSForPath(directory);\n\t\tObject session;\n\t\tif(SwingUtilities.isEventDispatchThread())\n\t\t{\n\t\t\tsession = vfs.createVFSSession(directory,comp);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal Object[] returnValue = new Object[1];\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeAndWait(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\treturnValue[0] = vfs.createVFSSession(directory,comp);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t}\n\n\t\t\tsession = returnValue[0];\n\t\t}\n\n\t\tif(session == null)\n\t\t\treturn null;\n\n\t\ttry\n\t\t{\n\t\t\treturn vfs._listDirectory(session,directory,glob,recurse,comp);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tVFSManager.error(comp,directory,\"ioerror\",new String[]\n\t\t\t\t{ io.toString() });\n\t\t\treturn null;\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate String directory;\n\tprivate String glob;\n\tprivate boolean recurse;", "functions": [{"function_name": "getDirectory", "code": "\tpublic String getDirectory()\n\t{\n\t\treturn directory;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDirectory", "code": "\tpublic void setDirectory(String directory)\n\t{\n\t\tthis.directory = directory;\n\t\tinvalidateCachedList();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFileFilter", "code": "\tpublic String getFileFilter()\n\t{\n\t\treturn glob;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFileFilter", "code": "\tpublic void setFileFilter(String glob)\n\t{\n\t\tthis.glob = glob;\n\t\tinvalidateCachedList();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isRecursive", "code": "\tpublic boolean isRecursive()\n\t{\n\t\treturn recurse;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRecursive", "code": "\tpublic void setRecursive(boolean recurse)\n\t{\n\t\tthis.recurse = recurse;\n\t\tinvalidateCachedList();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getCode", "code": "\tpublic String getCode()\n\t{\n\t\treturn \"new DirectoryListSet(\\\"\" + MiscUtilities.charsToEscapes(directory)\n\t\t\t+ \"\\\",\\\"\" + MiscUtilities.charsToEscapes(glob) + \"\\\",\"\n\t\t\t+ recurse + \")\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [7, 9], [9, 10], [9, 11], [11, 12], [11, 13], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 7], [10, 9], [11, 9], [12, 11], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "_getFiles", "code": "\tprotected String[] _getFiles(final Component comp)\n\t{\n\t\tfinal VFS vfs = VFSManager.getVFSForPath(directory);\n\t\tObject session;\n\t\tif(SwingUtilities.isEventDispatchThread())\n\t\t{\n\t\t\tsession = vfs.createVFSSession(directory,comp);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal Object[] returnValue = new Object[1];\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tSwingUtilities.invokeAndWait(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\treturnValue[0] = vfs.createVFSSession(directory,comp);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\t\t\t}\n\n\t\t\tsession = returnValue[0];\n\t\t}\n\n\t\tif(session == null)\n\t\t\treturn null;\n\n\t\ttry\n\t\t{\n\t\t\treturn vfs._listDirectory(session,directory,glob,recurse,comp);\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\tVFSManager.error(comp,directory,\"ioerror\",new String[]\n\t\t\t\t{ io.toString() });\n\t\t\treturn null;", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "RETURN", "RETURN", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CATCH", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [2, 9], [2, 10], [3, 11], [7, 12], [8, 13], [9, 14], [10, 15], [3, 16], [3, 17], [5, 18], [12, 19], [7, 20], [3, 21], [16, 22], [3, 23], [20, 24], [16, 25], [23, 26], [22, 27], [25, 28], [17, 29], [20, 30], [21, 31], [28, 32], [32, 33], [33, 34], [33, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 2], [10, 2], [11, 3], [12, 7], [13, 8], [14, 9], [15, 10], [16, 3], [17, 3], [18, 5], [19, 12], [20, 7], [21, 3], [22, 16], [23, 3], [24, 20], [25, 16], [26, 23], [27, 22], [28, 25], [29, 17], [30, 20], [31, 21], [32, 28], [33, 32], [34, 33], [35, 33], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "DirectoryListSet", "code": "\tpublic DirectoryListSet(String directory, String glob, boolean recurse)\n\t{\n\t\tthis.directory = directory;\n\t\tthis.glob = glob;\n\t\tthis.recurse = recurse;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "log4j-1.2-5056", "repo": "apache-log4j-1.2.17", "project": "log4j", "version": "1.2", "file_path": "src/main/java/org/apache/log4j/chainsaw/MyTableModel.java", "language": "java", "name": "org.apache.log4j.chainsaw.MyTableModel", "code": "class MyTableModel\n    extends AbstractTableModel\n{\n\n    /** used to log messages **/\n    private static final Logger LOG = Logger.getLogger(MyTableModel.class);\n\n    /** use the compare logging events **/\n    private static final Comparator MY_COMP = new Comparator()\n    {\n        /** @see Comparator **/\n        public int compare(Object aObj1, Object aObj2) {\n            if ((aObj1 == null) && (aObj2 == null)) {\n                return 0; // treat as equal\n            } else if (aObj1 == null) {\n                return -1; // null less than everything\n            } else if (aObj2 == null) {\n                return 1; // think about it. :->\n            }\n\n            // will assume only have LoggingEvent\n            final EventDetails le1 = (EventDetails) aObj1;\n            final EventDetails le2 = (EventDetails) aObj2;\n\n            if (le1.getTimeStamp() < le2.getTimeStamp()) {\n                return 1;\n            }\n            // assume not two events are logged at exactly the same time\n            return -1;\n        }\n        };\n\n    /**\n     * Helper that actually processes incoming events.\n     * @author <a href=\"mailto:oliver@puppycrawl.com\">Oliver Burn</a>\n     */\n    private class Processor\n        implements Runnable\n    {\n        /** loops getting the events **/\n        public void run() {\n            while (true) {\n                try {\n                    Thread.sleep(1000);\n                } catch (InterruptedException e) {\n                    // ignore\n                }\n\n                synchronized (mLock) {\n                    if (mPaused) {\n                        continue;\n                    }\n\n                    boolean toHead = true; // were events added to head\n                    boolean needUpdate = false;\n                    final Iterator it = mPendingEvents.iterator();\n                    while (it.hasNext()) {\n                        final EventDetails event = (EventDetails) it.next();\n                        mAllEvents.add(event);\n                        toHead = toHead && (event == mAllEvents.first());\n                        needUpdate = needUpdate || matchFilter(event);\n                    }\n                    mPendingEvents.clear();\n\n                    if (needUpdate) {\n                        updateFilteredEvents(toHead);\n                    }\n                }\n            }\n\n        }\n    }\n\n\n    /** names of the columns in the table **/\n    private static final String[] COL_NAMES = {\n        \"Time\", \"Priority\", \"Trace\", \"Category\", \"NDC\", \"Message\"};\n\n    /** definition of an empty list **/\n    private static final EventDetails[] EMPTY_LIST =  new EventDetails[] {};\n\n    /** used to format dates **/\n    private static final DateFormat DATE_FORMATTER =\n        DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM);\n\n    /** the lock to control access **/\n    private final Object mLock = new Object();\n    /** set of all logged events - not filtered **/\n    private final SortedSet mAllEvents = new TreeSet(MY_COMP);\n    /** events that are visible after filtering **/\n    private EventDetails[] mFilteredEvents = EMPTY_LIST;\n    /** list of events that are buffered for processing **/\n    private final List mPendingEvents = new ArrayList();\n    /** indicates whether event collection is paused to the UI **/\n    private boolean mPaused = false;\n\n    /** filter for the thread **/\n    private String mThreadFilter = \"\";\n    /** filter for the message **/\n    private String mMessageFilter = \"\";\n    /** filter for the NDC **/\n    private String mNDCFilter = \"\";\n    /** filter for the category **/\n    private String mCategoryFilter = \"\";\n    /** filter for the priority **/\n    private Priority mPriorityFilter = Priority.DEBUG;\n\n\n    /**\n     * Creates a new <code>MyTableModel</code> instance.\n     *\n     */\n    MyTableModel() {\n        final Thread t = new Thread(new Processor());\n        t.setDaemon(true);\n        t.start();\n    }\n\n\n    ////////////////////////////////////////////////////////////////////////////\n    // Table Methods\n    ////////////////////////////////////////////////////////////////////////////\n\n    /** @see javax.swing.table.TableModel **/\n    public int getRowCount() {\n        synchronized (mLock) {\n            return mFilteredEvents.length;\n        }\n    }\n\n    /** @see javax.swing.table.TableModel **/\n    public int getColumnCount() {\n        // does not need to be synchronized\n        return COL_NAMES.length;\n    }\n\n    /** @see javax.swing.table.TableModel **/\n    public String getColumnName(int aCol) {\n        // does not need to be synchronized\n        return COL_NAMES[aCol];\n    }\n\n    /** @see javax.swing.table.TableModel **/\n    public Class getColumnClass(int aCol) {\n        // does not need to be synchronized\n        return (aCol == 2) ? Boolean.class : Object.class;\n    }\n\n    /** @see javax.swing.table.TableModel **/\n    public Object getValueAt(int aRow, int aCol) {\n        synchronized (mLock) {\n            final EventDetails event = mFilteredEvents[aRow];\n\n            if (aCol == 0) {\n                return DATE_FORMATTER.format(new Date(event.getTimeStamp()));\n            } else if (aCol == 1) {\n                return event.getPriority();\n            } else if (aCol == 2) {\n                return (event.getThrowableStrRep() == null)\n                    ? Boolean.FALSE : Boolean.TRUE;\n            } else if (aCol == 3) {\n                return event.getCategoryName();\n            } else if (aCol == 4) {\n                return event.getNDC();\n            }\n            return event.getMessage();\n        }\n    }\n\n    ////////////////////////////////////////////////////////////////////////////\n    // Public Methods\n    ////////////////////////////////////////////////////////////////////////////\n\n    /**\n     * Sets the priority to filter events on. Only events of equal or higher\n     * property are now displayed.\n     *\n     * @param aPriority the priority to filter on\n     */\n    public void setPriorityFilter(Priority aPriority) {\n        synchronized (mLock) {\n            mPriorityFilter = aPriority;\n            updateFilteredEvents(false);\n        }\n    }\n\n    /**\n     * Set the filter for the thread field.\n     *\n     * @param aStr the string to match\n     */\n    public void setThreadFilter(String aStr) {\n        synchronized (mLock) {\n            mThreadFilter = aStr.trim();\n            updateFilteredEvents(false);\n        }\n    }\n\n    /**\n     * Set the filter for the message field.\n     *\n     * @param aStr the string to match\n     */\n    public void setMessageFilter(String aStr) {\n        synchronized (mLock) {\n            mMessageFilter = aStr.trim();\n            updateFilteredEvents(false);\n        }\n    }\n\n    /**\n     * Set the filter for the NDC field.\n     *\n     * @param aStr the string to match\n     */\n    public void setNDCFilter(String aStr) {\n        synchronized (mLock) {\n            mNDCFilter = aStr.trim();\n            updateFilteredEvents(false);\n        }\n    }\n\n    /**\n     * Set the filter for the category field.\n     *\n     * @param aStr the string to match\n     */\n    public void setCategoryFilter(String aStr) {\n        synchronized (mLock) {\n            mCategoryFilter = aStr.trim();\n            updateFilteredEvents(false);\n        }\n    }\n\n    /**\n     * Add an event to the list.\n     *\n     * @param aEvent a <code>EventDetails</code> value\n     */\n    public void addEvent(EventDetails aEvent) {\n        synchronized (mLock) {\n            mPendingEvents.add(aEvent);\n        }\n    }\n\n    /**\n     * Clear the list of all events.\n     */\n    public void clear() {\n        synchronized (mLock) {\n            mAllEvents.clear();\n            mFilteredEvents = new EventDetails[0];\n            mPendingEvents.clear();\n            fireTableDataChanged();\n        }\n    }\n\n    /** Toggle whether collecting events **/\n    public void toggle() {\n        synchronized (mLock) {\n            mPaused = !mPaused;\n        }\n    }\n\n    /** @return whether currently paused collecting events **/\n    public boolean isPaused() {\n        synchronized (mLock) {\n            return mPaused;\n        }\n    }\n\n    /**\n     * Get the throwable information at a specified row in the filtered events.\n     *\n     * @param aRow the row index of the event\n     * @return the throwable information\n     */\n    public EventDetails getEventDetails(int aRow) {\n        synchronized (mLock) {\n            return mFilteredEvents[aRow];\n        }\n    }\n\n    ////////////////////////////////////////////////////////////////////////////\n    // Private methods\n    ////////////////////////////////////////////////////////////////////////////\n\n    /**\n     * Update the filtered events data structure.\n     * @param aInsertedToFront indicates whether events were added to front of\n     *        the events. If true, then the current first event must still exist\n     *        in the list after the filter is applied.\n     */\n    private void updateFilteredEvents(boolean aInsertedToFront) {\n        final long start = System.currentTimeMillis();\n        final List filtered = new ArrayList();\n        final int size = mAllEvents.size();\n        final Iterator it = mAllEvents.iterator();\n\n        while (it.hasNext()) {\n            final EventDetails event = (EventDetails) it.next();\n            if (matchFilter(event)) {\n                filtered.add(event);\n            }\n        }\n\n        final EventDetails lastFirst = (mFilteredEvents.length == 0)\n            ? null\n            : mFilteredEvents[0];\n        mFilteredEvents = (EventDetails[]) filtered.toArray(EMPTY_LIST);\n\n        if (aInsertedToFront && (lastFirst != null)) {\n            final int index = filtered.indexOf(lastFirst);\n            if (index < 1) {\n                LOG.warn(\"In strange state\");\n                fireTableDataChanged();\n            } else {\n                fireTableRowsInserted(0, index - 1);\n            }\n        } else {\n            fireTableDataChanged();\n        }\n\n        final long end = System.currentTimeMillis();\n        LOG.debug(\"Total time [ms]: \" + (end - start)\n                  + \" in update, size: \" + size);\n    }\n\n    /**\n     * Returns whether an event matches the filters.\n     *\n     * @param aEvent the event to check for a match\n     * @return whether the event matches\n     */\n    private boolean matchFilter(EventDetails aEvent) {\n        if (aEvent.getPriority().isGreaterOrEqual(mPriorityFilter) &&\n            (aEvent.getThreadName().indexOf(mThreadFilter) >= 0) &&\n            (aEvent.getCategoryName().indexOf(mCategoryFilter) >= 0) &&\n            ((mNDCFilter.length() == 0) ||\n             ((aEvent.getNDC() != null) &&\n              (aEvent.getNDC().indexOf(mNDCFilter) >= 0))))\n        {\n            final String rm = aEvent.getMessage();\n            if (rm == null) {\n                // only match if we have not filtering in place\n                return (mMessageFilter.length() == 0);\n            } else {\n                return (rm.indexOf(mMessageFilter) >= 0);\n            }\n        }\n\n        return false; // by default not match", "functions": [{"function_name": "getRowCount", "code": "    public int getRowCount() {\n        synchronized (mLock) {\n            return mFilteredEvents.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getColumnCount", "code": "    public int getColumnCount() {\n        // does not need to be synchronized\n        return COL_NAMES.length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getColumnName", "code": "    public String getColumnName(int aCol) {\n        // does not need to be synchronized\n        return COL_NAMES[aCol];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColumnClass", "code": "    public Class getColumnClass(int aCol) {\n        // does not need to be synchronized\n        return (aCol == 2) ? Boolean.class : Object.class;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "COND_EXPR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getValueAt", "code": "    public Object getValueAt(int aRow, int aCol) {\n        synchronized (mLock) {\n            final EventDetails event = mFilteredEvents[aRow];\n\n            if (aCol == 0) {\n                return DATE_FORMATTER.format(new Date(event.getTimeStamp()));\n            } else if (aCol == 1) {\n                return event.getPriority();\n            } else if (aCol == 2) {\n                return (event.getThrowableStrRep() == null)\n                    ? Boolean.FALSE : Boolean.TRUE;\n            } else if (aCol == 3) {\n                return event.getCategoryName();\n            } else if (aCol == 4) {\n                return event.getNDC();\n            }\n            return event.getMessage();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "RETURN", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [4, 8], [7, 9], [7, 10], [4, 11], [8, 12], [9, 13], [9, 14], [7, 15], [10, 16], [11, 17], [13, 18], [13, 19], [9, 20], [14, 21], [15, 22], [17, 23], [18, 24], [13, 25], [19, 26], [20, 27], [23, 28], [18, 29], [24, 30], [25, 31], [27, 32], [29, 33], [32, 34], [32, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 4], [9, 7], [10, 7], [11, 4], [12, 8], [13, 9], [14, 9], [15, 7], [16, 10], [17, 11], [18, 13], [19, 13], [20, 9], [21, 14], [22, 15], [23, 17], [24, 18], [25, 13], [26, 19], [27, 20], [28, 23], [29, 18], [30, 24], [31, 25], [32, 27], [33, 29], [34, 32], [35, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "setPriorityFilter", "code": "    public void setPriorityFilter(Priority aPriority) {\n        synchronized (mLock) {\n            mPriorityFilter = aPriority;\n            updateFilteredEvents(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setThreadFilter", "code": "    public void setThreadFilter(String aStr) {\n        synchronized (mLock) {\n            mThreadFilter = aStr.trim();\n            updateFilteredEvents(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setMessageFilter", "code": "    public void setMessageFilter(String aStr) {\n        synchronized (mLock) {\n            mMessageFilter = aStr.trim();\n            updateFilteredEvents(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setNDCFilter", "code": "    public void setNDCFilter(String aStr) {\n        synchronized (mLock) {\n            mNDCFilter = aStr.trim();\n            updateFilteredEvents(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setCategoryFilter", "code": "    public void setCategoryFilter(String aStr) {\n        synchronized (mLock) {\n            mCategoryFilter = aStr.trim();\n            updateFilteredEvents(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addEvent", "code": "    public void addEvent(EventDetails aEvent) {\n        synchronized (mLock) {\n            mPendingEvents.add(aEvent);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clear", "code": "    public void clear() {\n        synchronized (mLock) {\n            mAllEvents.clear();\n            mFilteredEvents = new EventDetails[0];\n            mPendingEvents.clear();\n            fireTableDataChanged();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "toggle", "code": "    public void toggle() {\n        synchronized (mLock) {\n            mPaused = !mPaused;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isPaused", "code": "    public boolean isPaused() {\n        synchronized (mLock) {\n            return mPaused;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getEventDetails", "code": "    public EventDetails getEventDetails(int aRow) {\n        synchronized (mLock) {\n            return mFilteredEvents[aRow];", "ast_nodes": ["FUNC_DECL", "PARAM", "RETURN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "updateFilteredEvents", "code": "    private void updateFilteredEvents(boolean aInsertedToFront) {\n        final long start = System.currentTimeMillis();\n        final List filtered = new ArrayList();\n        final int size = mAllEvents.size();\n        final Iterator it = mAllEvents.iterator();\n\n        while (it.hasNext()) {\n            final EventDetails event = (EventDetails) it.next();\n            if (matchFilter(event)) {\n                filtered.add(event);\n            }\n        }\n\n        final EventDetails lastFirst = (mFilteredEvents.length == 0)\n            ? null\n            : mFilteredEvents[0];\n        mFilteredEvents = (EventDetails[]) filtered.toArray(EMPTY_LIST);\n\n        if (aInsertedToFront && (lastFirst != null)) {\n            final int index = filtered.indexOf(lastFirst);\n            if (index < 1) {\n                LOG.warn(\"In strange state\");\n                fireTableDataChanged();\n            } else {\n                fireTableRowsInserted(0, index - 1);\n            }\n        } else {\n            fireTableDataChanged();\n        }\n\n        final long end = System.currentTimeMillis();\n        LOG.debug(\"Total time [ms]: \" + (end - start)\n                  + \" in update, size: \" + size);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "COND_EXPR", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [2, 11], [0, 12], [4, 13], [10, 14], [1, 15], [2, 16], [2, 17], [11, 18], [3, 19], [4, 20], [4, 21], [5, 22], [6, 23], [7, 24], [8, 25], [14, 26], [2, 27], [16, 28], [18, 29], [12, 30], [19, 31], [19, 32], [20, 33], [26, 34], [26, 35], [28, 36], [17, 37], [32, 38], [35, 39], [35, 40], [16, 41], [16, 42], [16, 43], [19, 44], [20, 45], [21, 46], [41, 47], [41, 48], [43, 49], [47, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 2], [12, 0], [13, 4], [14, 10], [15, 1], [16, 2], [17, 2], [18, 11], [19, 3], [20, 4], [21, 4], [22, 5], [23, 6], [24, 7], [25, 8], [26, 14], [27, 2], [28, 16], [29, 18], [30, 12], [31, 19], [32, 19], [33, 20], [34, 26], [35, 26], [36, 28], [37, 17], [38, 32], [39, 35], [40, 35], [41, 16], [42, 16], [43, 16], [44, 19], [45, 20], [46, 21], [47, 41], [48, 41], [49, 43], [50, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "matchFilter", "code": "    private boolean matchFilter(EventDetails aEvent) {\n        if (aEvent.getPriority().isGreaterOrEqual(mPriorityFilter) &&\n            (aEvent.getThreadName().indexOf(mThreadFilter) >= 0) &&\n            (aEvent.getCategoryName().indexOf(mCategoryFilter) >= 0) &&\n            ((mNDCFilter.length() == 0) ||\n             ((aEvent.getNDC() != null) &&\n              (aEvent.getNDC().indexOf(mNDCFilter) >= 0))))\n        {\n            final String rm = aEvent.getMessage();\n            if (rm == null) {\n                // only match if we have not filtering in place\n                return (mMessageFilter.length() == 0);\n            } else {\n                return (rm.indexOf(mMessageFilter) >= 0);\n            }\n        }\n\n        return false; // by default not match", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [5, 9], [6, 10], [8, 11], [8, 12], [9, 13], [9, 14], [6, 15], [6, 16], [10, 17], [7, 18], [11, 19], [11, 20], [12, 21], [12, 22], [13, 23], [13, 24], [14, 25], [14, 26], [15, 27], [16, 28], [19, 29], [19, 30], [20, 31], [20, 32], [24, 33], [25, 34], [25, 35], [26, 36], [27, 37], [27, 38], [28, 39], [28, 40], [30, 41], [35, 42], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 5], [10, 6], [11, 8], [12, 8], [13, 9], [14, 9], [15, 6], [16, 6], [17, 10], [18, 7], [19, 11], [20, 11], [21, 12], [22, 12], [23, 13], [24, 13], [25, 14], [26, 14], [27, 15], [28, 16], [29, 19], [30, 19], [31, 20], [32, 20], [33, 24], [34, 25], [35, 25], [36, 26], [37, 27], [38, 27], [39, 28], [40, 28], [41, 30], [42, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "MyTableModel", "code": "    MyTableModel() {\n        final Thread t = new Thread(new Processor());\n        t.setDaemon(true);\n        t.start();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 3], [5, 1], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 1}
{"sample_id": "xalan-2.4-6694", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/res/XSLMessages.java", "language": "java", "name": "org.apache.xalan.res.XSLMessages", "code": "public class XSLMessages\n{\n\n  /** The local object to use.  */\n  private Locale fLocale = Locale.getDefault();\n\n  /** The language specific resource object for Xalan messages.  */\n  private static ResourceBundle XSLTBundle = null;\n\n  /** The language specific resource object for XPath messages.  */\n  private static ResourceBundle XPATHBundle = null;\n\n  /** The class name of the Xalan error message string table.    */\n  private static final String XSLT_ERROR_RESOURCES =\n    \"org.apache.xalan.res.XSLTErrorResources\";\n\n  /** The class name of the XPath error message string table.     */\n  private static final String XPATH_ERROR_RESOURCES =\n    \"org.apache.xpath.res.XPATHErrorResources\";\n\n  /** String to use if a bad message code is used. */\n  private static String BAD_CODE = \"BAD_CODE\";\n\n  /** String to use if the message format operation failed.  */\n  private static String FORMAT_FAILED = \"FORMAT_FAILED\";\n\n  /**\n   * Set the Locale object to use.\n   * \n   * @param locale non-null reference to Locale object.\n   */\n   public void setLocale(Locale locale)\n  {\n    fLocale = locale;\n  }\n\n  /**\n   * Get the Locale object that is being used.\n   * \n   * @return non-null reference to Locale object.\n   */\n  public Locale getLocale()\n  {\n    return fLocale;\n  }\n\n  /**\n   * Creates a message from the specified key and replacement\n   * arguments, localized to the given locale.\n   *\n   * @param errorCode The key for the message text.\n   * @param args      The arguments to be used as replacement text\n   *                  in the message created.\n   *\n   * @return The formatted warning string.\n   */\n  {\n\n    if (XPATHBundle == null)\n      XPATHBundle =\n        loadResourceBundle(XPATH_ERROR_RESOURCES);\n\n    ResourceBundle fResourceBundle = XPATHBundle;\n\n    if (fResourceBundle != null)\n    {\n      String msgKey = XPATHErrorResources.getWarningKey(errorCode);\n\n      return createXPATHMsg(fResourceBundle, msgKey, args);\n    }\n    else\n      return \"Could not load any resource bundles.\";\n  }\n\n  /**\n   * Creates a message from the specified key and replacement\n   * arguments, localized to the given locale.\n   *\n   * @param errorCode The key for the message text.\n   * @param args      The arguments to be used as replacement text\n   *                  in the message created.\n   *\n   * @return The formatted message string.\n   */\n  {\n\n    if (XPATHBundle == null)\n      XPATHBundle =\n        loadResourceBundle(XPATH_ERROR_RESOURCES);\n\n    ResourceBundle fResourceBundle = XPATHBundle;\n\n    if (fResourceBundle != null)\n    {\n      String msgKey = XPATHErrorResources.getMessageKey(errorCode);\n\n      return createXPATHMsg(fResourceBundle, msgKey, args);\n    }\n    else\n      return \"Could not load any resource bundles.\";\n  }\n  \n  /**\n   * Creates a message from the specified key and replacement\n   * arguments, localized to the given locale.\n   *\n   * @param errorCode The key for the message text.\n   * @param args      The arguments to be used as replacement text\n   *                  in the message created.\n   *\n   * @return The formatted message string.\n   */\n  {\n\n    if (XPATHBundle == null)\n      XPATHBundle =\n        loadResourceBundle(XPATH_ERROR_RESOURCES);\n\n    ResourceBundle fResourceBundle = XPATHBundle;\n\n    if (fResourceBundle != null)\n    {\n      return createXPATHMsg(fResourceBundle, msgKey, args);\n    }\n    else\n      return \"Could not load any resource bundles.\";\n  }\n\n\n  /**\n   * Creates a message from the specified key and replacement\n   * arguments, localized to the given locale.\n   *\n   * @param errorCode The key for the message text.\n   *\n   * @param fResourceBundle The resource bundle to use.\n   * @param msgKey  The message key to use.\n   * @param args      The arguments to be used as replacement text\n   *                  in the message created.\n   *\n   * @return The formatted message string.\n   */\n  public static final String createXPATHMsg(ResourceBundle fResourceBundle)\n  {\n\n    String fmsg = null;\n    boolean throwex = false;\n    String msg = null;\n\n    if (msgKey != null)\n      msg = fResourceBundle.getString(msgKey);\n\n    if (msg == null)\n    {\n      msg = fResourceBundle.getString(XPATHErrorResources.BAD_CODE);\n      throwex = true;\n    }\n\n    if (args != null)\n    {\n      try\n      {\n\n        int n = args.length;\n\n        for (int i = 0; i < n; i++)\n        {\n          if (null == args[i])\n            args[i] = \"\";\n        }\n\n        fmsg = java.text.MessageFormat.format(msg, args);\n      }\n      catch (Exception e)\n      {\n        fmsg = fResourceBundle.getString(XPATHErrorResources.FORMAT_FAILED);\n        fmsg += \" \" + msg;\n      }\n    }\n    else\n      fmsg = msg;\n\n    if (throwex)\n    {\n      throw new RuntimeException(fmsg);\n    }\n\n    return fmsg;\n  }\n\n  /**\n   * Creates a message from the specified key and replacement\n   * arguments, localized to the given locale.\n   *\n   * @param errorCode The key for the message text.\n   * @param args      The arguments to be used as replacement text\n   *                  in the message created.\n   *\n   * @return The formatted warning string.\n   */\n  {\n\n    if (XSLTBundle == null)\n      XSLTBundle =\n        loadResourceBundle(XSLT_ERROR_RESOURCES);\n\n    ResourceBundle fResourceBundle = XSLTBundle;\n\n    if (fResourceBundle != null)\n    {\n      String msgKey = XSLTErrorResources.getWarningKey(errorCode);\n\n      return createMsg(fResourceBundle, msgKey, args);\n    }\n    else\n      return \"Could not load any resource bundles.\";\n  }\n  \n  /**\n   * Creates a message from the specified key and replacement\n   * arguments, localized to the given locale.\n   *\n   * @param errorCode The key for the message text.\n   * @param args      The arguments to be used as replacement text\n   *                  in the message created.\n   *\n   * @return The formatted message string.\n   */\n  {\n\n    if (XSLTBundle == null)\n      XSLTBundle =\n        loadResourceBundle(XSLT_ERROR_RESOURCES);\n\n    ResourceBundle fResourceBundle = XSLTBundle;\n\n    if (fResourceBundle != null)\n    {\n      return createMsg(fResourceBundle, msgKey, args);\n    }\n    else\n      return \"Could not load any resource bundles.\";\n  }\n\n  /**\n   * Creates a message from the specified key and replacement\n   * arguments, localized to the given locale.\n   *\n   * @param errorCode The key for the message text.\n   * @param args      The arguments to be used as replacement text\n   *                  in the message created.\n   *\n   * @return The formatted message string.\n   */\n  {\n\n    if (XSLTBundle == null)\n      XSLTBundle =\n        loadResourceBundle(XSLT_ERROR_RESOURCES);\n\n    ResourceBundle fResourceBundle = XSLTBundle;\n\n    if (fResourceBundle != null)\n    {\n      String msgKey = XSLTErrorResources.getMessageKey(errorCode);\n\n      return createMsg(fResourceBundle, msgKey, args);\n    }\n    else\n      return \"Could not load any resource bundles.\";\n  }\n\n  /**\n   * Creates a message from the specified key and replacement\n   * arguments, localized to the given locale.\n   *\n   * @param errorCode The key for the message text.\n   *\n   * @param fResourceBundle The resource bundle to use.\n   * @param msgKey  The message key to use.\n   * @param args      The arguments to be used as replacement text\n   *                  in the message created.\n   *\n   * @return The formatted message string.\n   */\n  public static final String createMsg(ResourceBundle fResourceBundle)\n  {\n\n    String fmsg = null;\n    boolean throwex = false;\n    String msg = null;\n\n    if (msgKey != null)\n      msg = fResourceBundle.getString(msgKey);\n\n    if (msg == null)\n    {\n      msg = fResourceBundle.getString(BAD_CODE);\n      throwex = true;\n    }\n\n    if (args != null)\n    {\n      try\n      {\n\n        int n = args.length;\n\n        for (int i = 0; i < n; i++)\n        {\n          if (null == args[i])\n            args[i] = \"\";\n        }\n\n        fmsg = java.text.MessageFormat.format(msg, args);\n      }\n      catch (Exception e)\n      {\n        fmsg = fResourceBundle.getString(FORMAT_FAILED);\n        fmsg += \" \" + msg;\n      }\n    }\n    else\n      fmsg = msg;\n\n    if (throwex)\n    {\n      throw new RuntimeException(fmsg);\n    }\n\n    return fmsg;\n  }\n\n  /**\n   * Creates a message from the specified key and replacement\n   * arguments, localized to the given locale.\n   *\n   * @param bundleName The name of the resource bundle to be\n   *                  used.\n   * @param errorCode The key for the message text.\n   * @param args      The arguments to be used as replacement text\n   *                  in the message created.\n   *\n   * @return The formatted message string.\n   *\n   * @throws Exception if the message can not be loaded.\n   */\n  public String createMessage(String bundleName, int errorCode, Object args[])\n          throws Exception\n  {\n\n    boolean throwex = false;\n    int majorCode;\n    int minorCode;\n    String fmsg = null;\n    ResourceBundle aResourceBundle = null;\n\n    aResourceBundle = loadResourceBundle(bundleName);\n\n    String msgKey = XSLTErrorResources.getMessageKey(errorCode);\n    String msg = null;\n\n    if (msgKey != null)\n      msg = aResourceBundle.getString(msgKey);\n\n    if (msg == null)\n    {\n      msg = aResourceBundle.getString(BAD_CODE);\n      throwex = true;\n    }\n\n    if (args != null)\n    {\n      try\n      {\n\n        int n = args.length;\n\n        for (int i = 0; i < n; i++)\n        {\n          if (null == args[i])\n            args[i] = \"\";\n        }\n\n        fmsg = java.text.MessageFormat.format(msg, args);\n      }\n      catch (Exception e)\n      {\n        fmsg = aResourceBundle.getString(FORMAT_FAILED);\n        fmsg += \" \" + msg;\n      }\n    }\n    else\n      fmsg = msg;\n\n    if (throwex)\n    {\n      throw new RuntimeException(fmsg);\n    }\n\n    return fmsg;\n  }\n\n  /**\n   * Return a named ResourceBundle for a particular locale.  This method mimics the behavior\n   * of ResourceBundle.getBundle().\n   *\n   * @param res the name of the resource to load.\n   * @param locale the locale to prefer when searching for the bundle\n   *\n   * @param className The class name of the resource bundle.\n   * @return the ResourceBundle\n   * @throws MissingResourceException\n   */\n  public static final ResourceBundle loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n\n    try\n    {\n\n      return ResourceBundle.getBundle(className, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      \n\n        return ResourceBundle.getBundle(\n          XSLT_ERROR_RESOURCES, new Locale(\"en\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\" + className, className, \"\");\n      }\n    \n  }\n\n  /**\n   * Return the resource file suffic for the indicated locale\n   * For most locales, this will be based the language code.  However\n   * for Chinese, we do distinguish between Taiwan and PRC\n   *\n   * @param locale the locale\n   * @return an String suffix which can be appended to a resource name\n   */\n  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "functions": [{"function_name": "setLocale", "code": "   public void setLocale(Locale locale)\n  {\n    fLocale = locale;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocale", "code": "  public Locale getLocale()\n  {\n    return fLocale;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createXPATHMsg", "code": "  public static final String createXPATHMsg(ResourceBundle fResourceBundle)\n  {\n\n    String fmsg = null;\n    boolean throwex = false;\n    String msg = null;\n\n    if (msgKey != null)\n      msg = fResourceBundle.getString(msgKey);\n\n    if (msg == null)\n    {\n      msg = fResourceBundle.getString(XPATHErrorResources.BAD_CODE);\n      throwex = true;\n    }\n\n    if (args != null)\n    {\n      try\n      {\n\n        int n = args.length;\n\n        for (int i = 0; i < n; i++)\n        {\n          if (null == args[i])\n            args[i] = \"\";\n        }\n\n        fmsg = java.text.MessageFormat.format(msg, args);\n      }\n      catch (Exception e)\n      {\n        fmsg = fResourceBundle.getString(XPATHErrorResources.FORMAT_FAILED);\n        fmsg += \" \" + msg;\n      }\n    }\n    else\n      fmsg = msg;\n\n    if (throwex)\n    {\n      throw new RuntimeException(fmsg);\n    }\n\n    return fmsg;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "ASSIGN", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [4, 11], [5, 12], [2, 13], [3, 14], [3, 15], [10, 16], [11, 17], [5, 18], [12, 19], [6, 20], [7, 21], [8, 22], [13, 23], [15, 24], [15, 25], [15, 26], [4, 27], [4, 28], [18, 29], [15, 30], [25, 31], [27, 32], [28, 33], [24, 34], [24, 35], [30, 36], [25, 37], [34, 38], [35, 39], [37, 40], [25, 41], [38, 42], [37, 43], [40, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 4], [12, 5], [13, 2], [14, 3], [15, 3], [16, 10], [17, 11], [18, 5], [19, 12], [20, 6], [21, 7], [22, 8], [23, 13], [24, 15], [25, 15], [26, 15], [27, 4], [28, 4], [29, 18], [30, 15], [31, 25], [32, 27], [33, 28], [34, 24], [35, 24], [36, 30], [37, 25], [38, 34], [39, 35], [40, 37], [41, 25], [42, 38], [43, 37], [44, 40], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "createMsg", "code": "  public static final String createMsg(ResourceBundle fResourceBundle)\n  {\n\n    String fmsg = null;\n    boolean throwex = false;\n    String msg = null;\n\n    if (msgKey != null)\n      msg = fResourceBundle.getString(msgKey);\n\n    if (msg == null)\n    {\n      msg = fResourceBundle.getString(BAD_CODE);\n      throwex = true;\n    }\n\n    if (args != null)\n    {\n      try\n      {\n\n        int n = args.length;\n\n        for (int i = 0; i < n; i++)\n        {\n          if (null == args[i])\n            args[i] = \"\";\n        }\n\n        fmsg = java.text.MessageFormat.format(msg, args);\n      }\n      catch (Exception e)\n      {\n        fmsg = fResourceBundle.getString(FORMAT_FAILED);\n        fmsg += \" \" + msg;\n      }\n    }\n    else\n      fmsg = msg;\n\n    if (throwex)\n    {\n      throw new RuntimeException(fmsg);\n    }\n\n    return fmsg;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "ASSIGN", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [4, 11], [5, 12], [2, 13], [3, 14], [3, 15], [10, 16], [11, 17], [5, 18], [12, 19], [6, 20], [7, 21], [8, 22], [13, 23], [15, 24], [15, 25], [15, 26], [4, 27], [4, 28], [18, 29], [15, 30], [25, 31], [27, 32], [28, 33], [24, 34], [24, 35], [30, 36], [25, 37], [34, 38], [35, 39], [37, 40], [25, 41], [38, 42], [37, 43], [40, 44], [43, 45], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 4], [12, 5], [13, 2], [14, 3], [15, 3], [16, 10], [17, 11], [18, 5], [19, 12], [20, 6], [21, 7], [22, 8], [23, 13], [24, 15], [25, 15], [26, 15], [27, 4], [28, 4], [29, 18], [30, 15], [31, 25], [32, 27], [33, 28], [34, 24], [35, 24], [36, 30], [37, 25], [38, 34], [39, 35], [40, 37], [41, 25], [42, 38], [43, 37], [44, 40], [45, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45]]}, {"function_name": "createMessage", "code": "  public String createMessage(String bundleName, int errorCode, Object args[])\n          throws Exception\n  {\n\n    boolean throwex = false;\n    int majorCode;\n    int minorCode;\n    String fmsg = null;\n    ResourceBundle aResourceBundle = null;\n\n    aResourceBundle = loadResourceBundle(bundleName);\n\n    String msgKey = XSLTErrorResources.getMessageKey(errorCode);\n    String msg = null;\n\n    if (msgKey != null)\n      msg = aResourceBundle.getString(msgKey);\n\n    if (msg == null)\n    {\n      msg = aResourceBundle.getString(BAD_CODE);\n      throwex = true;\n    }\n\n    if (args != null)\n    {\n      try\n      {\n\n        int n = args.length;\n\n        for (int i = 0; i < n; i++)\n        {\n          if (null == args[i])\n            args[i] = \"\";\n        }\n\n        fmsg = java.text.MessageFormat.format(msg, args);\n      }\n      catch (Exception e)\n      {\n        fmsg = aResourceBundle.getString(FORMAT_FAILED);\n        fmsg += \" \" + msg;\n      }\n    }\n    else\n      fmsg = msg;\n\n    if (throwex)\n    {\n      throw new RuntimeException(fmsg);\n    }\n\n    return fmsg;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "THROW_RAISE", "ASSIGN", "TRY", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CATCH", "LOOP", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [3, 16], [4, 17], [5, 18], [0, 19], [2, 20], [3, 21], [3, 22], [16, 23], [17, 24], [5, 25], [18, 26], [6, 27], [7, 28], [19, 29], [8, 30], [9, 31], [12, 32], [20, 33], [22, 34], [22, 35], [22, 36], [4, 37], [4, 38], [25, 39], [22, 40], [35, 41], [37, 42], [38, 43], [34, 44], [34, 45], [40, 46], [35, 47], [44, 48], [45, 49], [47, 50], [35, 51], [48, 52], [47, 53], [50, 54], [53, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 3], [17, 4], [18, 5], [19, 0], [20, 2], [21, 3], [22, 3], [23, 16], [24, 17], [25, 5], [26, 18], [27, 6], [28, 7], [29, 19], [30, 8], [31, 9], [32, 12], [33, 20], [34, 22], [35, 22], [36, 22], [37, 4], [38, 4], [39, 25], [40, 22], [41, 35], [42, 37], [43, 38], [44, 34], [45, 34], [46, 40], [47, 35], [48, 44], [49, 45], [50, 47], [51, 35], [52, 48], [53, 47], [54, 50], [55, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "loadResourceBundle", "code": "  public static final ResourceBundle loadResourceBundle(String className)\n          throws MissingResourceException\n  {\n\n    Locale locale = Locale.getDefault();\n\n    try\n    {\n\n      return ResourceBundle.getBundle(className, locale);\n    }\n    catch (MissingResourceException e)\n    {\n      \n\n        return ResourceBundle.getBundle(\n          XSLT_ERROR_RESOURCES, new Locale(\"en\", \"US\"));\n      }\n      catch (MissingResourceException e2)\n      {\n\n        throw new MissingResourceException(\n          \"Could not load any resource bundles.\" + className, className, \"\");", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "PARAM", "CATCH", "CATCH", "RETURN", "THROW_RAISE", "RETURN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [5, 8], [6, 9], [2, 10], [7, 11], [8, 12], [11, 13], [11, 14], [12, 15], [14, 16], [15, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 5], [9, 6], [10, 2], [11, 7], [12, 8], [13, 11], [14, 11], [15, 12], [16, 14], [17, 15], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getResourceSuffix", "code": "  private static final String getResourceSuffix(Locale locale)\n  {\n\n    String suffix = \"_\" + locale.getLanguage();\n    String country = locale.getCountry();\n\n    if (country.equals(\"TW\"))\n      suffix += \"_\" + country;\n\n    return suffix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [10, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 10], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}], "label": 0}
{"sample_id": "ant-1.7-1195", "repo": "ant-1.7", "project": "ant", "version": "1.7", "file_path": "org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.optional.script.ScriptDef", "code": "public class ScriptDef extends DefBase {\n    /**\n     * script runner helper\n     */\n    private ScriptRunnerHelper helper = new ScriptRunnerHelper();\n    /**\n     * script runner.\n     */\n    /** Used to run the script */\n    private ScriptRunnerBase   runner = null;\n\n    /** the name by which this script will be activated */\n    private String name;\n\n    /** Attributes definitions of this script */\n    private List attributes = new ArrayList();\n\n    /** Nested Element definitions of this script */\n    private List nestedElements = new ArrayList();\n\n    /** The attribute names as a set */\n    private Set attributeSet;\n\n    /** The nested element definitions indexed by their names */\n    private Map nestedElementMap;\n\n    /**\n     * Set the project.\n     * @param project the project that this def belows to.\n     */\n    public void setProject(Project project) {\n        super.setProject(project);\n        helper.setProjectComponent(this);\n        helper.setSetBeans(false);\n    }\n\n    /**\n     * set the name under which this script will be activated in a build\n     * file\n     *\n     * @param name the name of the script\n     */\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    /**\n     * Indicates whether the task supports a given attribute name\n     *\n     * @param attributeName the name of the attribute.\n     *\n     * @return true if the attribute is supported by the script.\n     */\n    public boolean isAttributeSupported(String attributeName) {\n        return attributeSet.contains(attributeName);\n    }\n\n    /**\n     * Class representing an attribute definition\n     */\n    public static class Attribute {\n        /** The attribute name */\n        private String name;\n\n        /**\n         * Set the attribute name\n         *\n         * @param name the attribute name\n         */\n        public void setName(String name) {\n            this.name = name.toLowerCase(Locale.US);\n        }\n    }\n\n    /**\n     * Add an attribute definition to this script.\n     *\n     * @param attribute the attribute definition.\n     */\n    public void addAttribute(Attribute attribute) {\n        attributes.add(attribute);\n    }\n\n    /**\n     * Class to represent a nested element definition\n     */\n    public static class NestedElement {\n        /** The name of the neseted element */\n        private String name;\n\n        /** The Ant type to which this nested element corresponds. */\n        private String type;\n\n        /** The class to be created for this nested element */\n        private String className;\n\n        /**\n         * set the tag name for this nested element\n         *\n         * @param name the name of this nested element\n         */\n        public void setName(String name) {\n            this.name = name.toLowerCase(Locale.US);\n        }\n\n        /**\n         * Set the type of this element. This is the name of an\n         * Ant task or type which is to be used when this element is to be\n         * created. This is an alternative to specifying the class name directly\n         *\n         * @param type the name of an Ant type, or task, to use for this nested\n         * element.\n         */\n        public void setType(String type) {\n            this.type = type;\n        }\n\n        /**\n         * Set the classname of the class to be used for the nested element.\n         * This specifies the class directly and is an alternative to specifying\n         * the Ant type name.\n         *\n         * @param className the name of the class to use for this nested\n         * element.\n         */\n        public void setClassName(String className) {\n            this.className = className;\n        }\n    }\n\n    /**\n     * Add a nested element definition.\n     *\n     * @param nestedElement the nested element definition.\n     */\n    public void addElement(NestedElement nestedElement) {\n        nestedElements.add(nestedElement);\n    }\n\n    /**\n     * Define the script.\n     */\n    public void execute() {\n        if (name == null) {\n            throw new BuildException(\"scriptdef requires a name attribute to \"\n                + \"name the script\");\n        }\n\n        if (helper.getLanguage() == null) {\n            throw new BuildException(\"<scriptdef> requires a language attribute \"\n                + \"to specify the script language\");\n        }\n\n        if (getAntlibClassLoader() != null || hasCpDelegate()) {\n            helper.setClassLoader(createLoader());\n        }\n\n        runner = helper.getScriptRunner();\n\n        attributeSet = new HashSet();\n        for (Iterator i = attributes.iterator(); i.hasNext();) {\n            Attribute attribute = (Attribute) i.next();\n            if (attribute.name == null) {\n                throw new BuildException(\"scriptdef <attribute> elements \"\n                    + \"must specify an attribute name\");\n            }\n\n            if (attributeSet.contains(attribute.name)) {\n                throw new BuildException(\"scriptdef <\" + name + \"> declares \"\n                    + \"the \" + attribute.name + \" attribute more than once\");\n            }\n            attributeSet.add(attribute.name);\n        }\n\n        nestedElementMap = new HashMap();\n        for (Iterator i = nestedElements.iterator(); i.hasNext();) {\n            NestedElement nestedElement = (NestedElement) i.next();\n            if (nestedElement.name == null) {\n                throw new BuildException(\"scriptdef <element> elements \"\n                    + \"must specify an element name\");\n            }\n            if (nestedElementMap.containsKey(nestedElement.name)) {\n                throw new BuildException(\"scriptdef <\" + name + \"> declares \"\n                    + \"the \" + nestedElement.name + \" nested element more \"\n                    + \"than once\");\n            }\n\n            if (nestedElement.className == null\n                && nestedElement.type == null) {\n                throw new BuildException(\"scriptdef <element> elements \"\n                    + \"must specify either a classname or type attribute\");\n            }\n            if (nestedElement.className != null\n                && nestedElement.type != null) {\n                throw new BuildException(\"scriptdef <element> elements \"\n                    + \"must specify only one of the classname and type \"\n                    + \"attributes\");\n            }\n\n\n            nestedElementMap.put(nestedElement.name, nestedElement);\n        }\n\n        Map scriptRepository = lookupScriptRepository();\n        name = ProjectHelper.genComponentName(getURI(), name);\n        scriptRepository.put(name, this);\n        AntTypeDefinition def = new AntTypeDefinition();\n        def.setName(name);\n        def.setClass(ScriptDefBase.class);\n        ComponentHelper.getComponentHelper(\n            getProject()).addDataTypeDefinition(def);\n    }\n\n    /**\n     * Find or create the script repository - it is stored in the project.\n     * This method is synchronized on the project under {@link MagicNames#SCRIPT_REPOSITORY}\n     * @return the current script repository registered as a refrence.\n     */\n    private Map lookupScriptRepository() {\n        Map scriptRepository = null;\n        Project p = getProject();\n        synchronized (p) {\n            scriptRepository =\n                    (Map) p.getReference(MagicNames.SCRIPT_REPOSITORY);\n            if (scriptRepository == null) {\n                scriptRepository = new HashMap();\n                p.addReference(MagicNames.SCRIPT_REPOSITORY,\n                        scriptRepository);\n            }\n        }\n        return scriptRepository;\n    }\n\n    /**\n     * Create a nested element to be configured.\n     *\n     * @param elementName the name of the nested element.\n     * @return object representing the element name.\n     */\n    public Object createNestedElement(String elementName) {\n        NestedElement definition\n            = (NestedElement) nestedElementMap.get(elementName);\n        if (definition == null) {\n            throw new BuildException(\"<\" + name + \"> does not support \"\n                + \"the <\" + elementName + \"> nested element\");\n        }\n\n        Object instance = null;\n        String classname = definition.className;\n        if (classname == null) {\n            instance = getProject().createTask(definition.type);\n            if (instance == null) {\n                instance = getProject().createDataType(definition.type);\n            }\n        } else {\n            /*\n            ClassLoader loader\n                = Thread.currentThread().getContextClassLoader();\n            */\n            ClassLoader loader = createLoader();\n\n            try {\n                instance = ClasspathUtils.newInstance(classname, loader);\n            } catch (BuildException e) {\n                instance = ClasspathUtils.newInstance(classname, ScriptDef.class.getClassLoader());\n            }\n\n            getProject().setProjectReference(instance);\n        }\n\n        if (instance == null) {\n            throw new BuildException(\"<\" + name + \"> is unable to create \"\n                + \"the <\" + elementName + \"> nested element\");\n        }\n        return instance;\n    }\n\n    /**\n     * Execute the script.\n     *\n     * @param attributes collection of attributes\n     * @param elements a list of nested element values.\n     * @deprecated since 1.7.\n     *             Use executeScript(attribute, elements, instance) instead.\n     */\n    public void executeScript(Map attributes, Map elements) {\n        executeScript(attributes, elements, null);\n    }\n\n    /**\n     * Execute the script.\n     * This is called by the script instance to execute the script for this\n     * definition.\n     *\n     * @param attributes collection of attributes\n     * @param elements   a list of nested element values.\n     * @param instance   the script instance; can be null\n     */\n    public void executeScript(Map attributes, Map elements, ScriptDefBase instance) {\n        runner.addBean(\"attributes\", attributes);\n        runner.addBean(\"elements\", elements);\n        runner.addBean(\"project\", getProject());\n        if (instance != null) {\n            runner.addBean(\"self\", instance);\n        }\n        runner.executeScript(\"scriptdef_\" + name);\n    }\n\n    /**\n     * Defines the manager.\n     *\n     * @param manager the scripting manager.\n     */\n    public void setManager(String manager) {\n        helper.setManager(manager);\n    }\n\n    /**\n     * Defines the language (required).\n     *\n     * @param language the scripting language name for the script.\n     */\n    public void setLanguage(String language) {\n        helper.setLanguage(language);\n    }\n\n    /**\n     * Load the script from an external file ; optional.\n     *\n     * @param file the file containing the script source.\n     */\n    public void setSrc(File file) {\n        helper.setSrc(file);\n    }\n\n    /**\n     * Set the script text.\n     *\n     * @param text a component of the script text to be added.\n     */\n    public void addText(String text) {\n        helper.addText(text);\n    }\n\n    /**\n     * Add any source resource.\n     * @since Ant1.7.1\n     * @param resource source of script\n     */\n    public void add(ResourceCollection resource) {\n        helper.add(resource);", "functions": [{"function_name": "setProject", "code": "    public void setProject(Project project) {\n        super.setProject(project);\n        helper.setProjectComponent(this);\n        helper.setSetBeans(false);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isAttributeSupported", "code": "    public boolean isAttributeSupported(String attributeName) {\n        return attributeSet.contains(attributeName);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "addAttribute", "code": "    public void addAttribute(Attribute attribute) {\n        attributes.add(attribute);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addElement", "code": "    public void addElement(NestedElement nestedElement) {\n        nestedElements.add(nestedElement);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public void execute() {\n        if (name == null) {\n            throw new BuildException(\"scriptdef requires a name attribute to \"\n                + \"name the script\");\n        }\n\n        if (helper.getLanguage() == null) {\n            throw new BuildException(\"<scriptdef> requires a language attribute \"\n                + \"to specify the script language\");\n        }\n\n        if (getAntlibClassLoader() != null || hasCpDelegate()) {\n            helper.setClassLoader(createLoader());\n        }\n\n        runner = helper.getScriptRunner();\n\n        attributeSet = new HashSet();\n        for (Iterator i = attributes.iterator(); i.hasNext();) {\n            Attribute attribute = (Attribute) i.next();\n            if (attribute.name == null) {\n                throw new BuildException(\"scriptdef <attribute> elements \"\n                    + \"must specify an attribute name\");\n            }\n\n            if (attributeSet.contains(attribute.name)) {\n                throw new BuildException(\"scriptdef <\" + name + \"> declares \"\n                    + \"the \" + attribute.name + \" attribute more than once\");\n            }\n            attributeSet.add(attribute.name);\n        }\n\n        nestedElementMap = new HashMap();\n        for (Iterator i = nestedElements.iterator(); i.hasNext();) {\n            NestedElement nestedElement = (NestedElement) i.next();\n            if (nestedElement.name == null) {\n                throw new BuildException(\"scriptdef <element> elements \"\n                    + \"must specify an element name\");\n            }\n            if (nestedElementMap.containsKey(nestedElement.name)) {\n                throw new BuildException(\"scriptdef <\" + name + \"> declares \"\n                    + \"the \" + nestedElement.name + \" nested element more \"\n                    + \"than once\");\n            }\n\n            if (nestedElement.className == null\n                && nestedElement.type == null) {\n                throw new BuildException(\"scriptdef <element> elements \"\n                    + \"must specify either a classname or type attribute\");\n            }\n            if (nestedElement.className != null\n                && nestedElement.type != null) {\n                throw new BuildException(\"scriptdef <element> elements \"\n                    + \"must specify only one of the classname and type \"\n                    + \"attributes\");\n            }\n\n\n            nestedElementMap.put(nestedElement.name, nestedElement);\n        }\n\n        Map scriptRepository = lookupScriptRepository();\n        name = ProjectHelper.genComponentName(getURI(), name);\n        scriptRepository.put(name, this);\n        AntTypeDefinition def = new AntTypeDefinition();\n        def.setName(name);\n        def.setClass(ScriptDefBase.class);\n        ComponentHelper.getComponentHelper(\n            getProject()).addDataTypeDefinition(def);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "LOOP", "LOOP", "IF", "IF", "IF", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "IF", "IF", "IF", "VAR_DECL", "CALL", "IF", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "THROW_RAISE", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [3, 13], [0, 14], [4, 15], [0, 16], [0, 17], [5, 18], [6, 19], [7, 20], [8, 21], [8, 22], [1, 23], [12, 24], [2, 25], [3, 26], [3, 27], [3, 28], [3, 29], [3, 30], [14, 31], [4, 32], [4, 33], [4, 34], [16, 35], [17, 36], [18, 37], [18, 38], [6, 39], [19, 40], [19, 41], [7, 42], [20, 43], [24, 44], [3, 45], [26, 46], [27, 47], [28, 48], [29, 49], [3, 50], [4, 51], [32, 52], [33, 53], [4, 54], [5, 55], [38, 56], [38, 57], [39, 58], [42, 59], [26, 60], [46, 61], [46, 62], [27, 63], [47, 64], [47, 65], [28, 66], [29, 67], [49, 68], [32, 69], [33, 70], [53, 71], [55, 72], [58, 73], [59, 74], [60, 75], [61, 76], [62, 77], [63, 78], [64, 79], [65, 80], [66, 81], [67, 82], [30, 83], [69, 84], [70, 85], [34, 86], [73, 87], [73, 88], [74, 89], [74, 90], [75, 91], [78, 92], [81, 93], [82, 94], [84, 95], [85, 96], [91, 97], [91, 98], [92, 99], [92, 100], [93, 101], [93, 102], [94, 103], [94, 104], [95, 105], [95, 106], [96, 107], [96, 108], [98, 109], [98, 110], [102, 111], [102, 112], [106, 113], [112, 114], [113, 115], [113, 116], [114, 117], [114, 118], [116, 119], [116, 120], [118, 121], [118, 122], [120, 123], [122, 124], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 3], [14, 0], [15, 4], [16, 0], [17, 0], [18, 5], [19, 6], [20, 7], [21, 8], [22, 8], [23, 1], [24, 12], [25, 2], [26, 3], [27, 3], [28, 3], [29, 3], [30, 3], [31, 14], [32, 4], [33, 4], [34, 4], [35, 16], [36, 17], [37, 18], [38, 18], [39, 6], [40, 19], [41, 19], [42, 7], [43, 20], [44, 24], [45, 3], [46, 26], [47, 27], [48, 28], [49, 29], [50, 3], [51, 4], [52, 32], [53, 33], [54, 4], [55, 5], [56, 38], [57, 38], [58, 39], [59, 42], [60, 26], [61, 46], [62, 46], [63, 27], [64, 47], [65, 47], [66, 28], [67, 29], [68, 49], [69, 32], [70, 33], [71, 53], [72, 55], [73, 58], [74, 59], [75, 60], [76, 61], [77, 62], [78, 63], [79, 64], [80, 65], [81, 66], [82, 67], [83, 30], [84, 69], [85, 70], [86, 34], [87, 73], [88, 73], [89, 74], [90, 74], [91, 75], [92, 78], [93, 81], [94, 82], [95, 84], [96, 85], [97, 91], [98, 91], [99, 92], [100, 92], [101, 93], [102, 93], [103, 94], [104, 94], [105, 95], [106, 95], [107, 96], [108, 96], [109, 98], [110, 98], [111, 102], [112, 102], [113, 106], [114, 112], [115, 113], [116, 113], [117, 114], [118, 114], [119, 116], [120, 116], [121, 118], [122, 118], [123, 120], [124, 122], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124]]}, {"function_name": "lookupScriptRepository", "code": "    private Map lookupScriptRepository() {\n        Map scriptRepository = null;\n        Project p = getProject();\n        synchronized (p) {\n            scriptRepository =\n                    (Map) p.getReference(MagicNames.SCRIPT_REPOSITORY);\n            if (scriptRepository == null) {\n                scriptRepository = new HashMap();\n                p.addReference(MagicNames.SCRIPT_REPOSITORY,\n                        scriptRepository);\n            }\n        }\n        return scriptRepository;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "IF", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [0, 6], [2, 7], [3, 8], [5, 9], [4, 10], [4, 11], [6, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [6, 0], [7, 2], [8, 3], [9, 5], [10, 4], [11, 4], [12, 6], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "createNestedElement", "code": "    public Object createNestedElement(String elementName) {\n        NestedElement definition\n            = (NestedElement) nestedElementMap.get(elementName);\n        if (definition == null) {\n            throw new BuildException(\"<\" + name + \"> does not support \"\n                + \"the <\" + elementName + \"> nested element\");\n        }\n\n        Object instance = null;\n        String classname = definition.className;\n        if (classname == null) {\n            instance = getProject().createTask(definition.type);\n            if (instance == null) {\n                instance = getProject().createDataType(definition.type);\n            }\n        } else {\n            /*\n            ClassLoader loader\n                = Thread.currentThread().getContextClassLoader();\n            */\n            ClassLoader loader = createLoader();\n\n            try {\n                instance = ClasspathUtils.newInstance(classname, loader);\n            } catch (BuildException e) {\n                instance = ClasspathUtils.newInstance(classname, ScriptDef.class.getClassLoader());\n            }\n\n            getProject().setProjectReference(instance);\n        }\n\n        if (instance == null) {\n            throw new BuildException(\"<\" + name + \"> is unable to create \"\n                + \"the <\" + elementName + \"> nested element\");\n        }\n        return instance;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "TRY", "VAR_DECL", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CATCH", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [3, 10], [6, 11], [2, 12], [9, 13], [3, 14], [3, 15], [3, 16], [10, 17], [5, 18], [6, 19], [11, 20], [12, 21], [3, 22], [14, 23], [16, 24], [3, 25], [19, 26], [7, 27], [21, 28], [22, 29], [14, 30], [15, 31], [24, 32], [25, 33], [26, 34], [28, 35], [28, 36], [23, 37], [30, 38], [16, 39], [33, 40], [34, 41], [34, 42], [36, 43], [37, 44], [39, 45], [42, 46], [43, 47], [43, 48], [44, 49], [45, 50], [46, 51], [46, 52], [48, 53], [48, 54], [52, 55], [52, 56], [54, 57], [56, 58], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 3], [11, 6], [12, 2], [13, 9], [14, 3], [15, 3], [16, 3], [17, 10], [18, 5], [19, 6], [20, 11], [21, 12], [22, 3], [23, 14], [24, 16], [25, 3], [26, 19], [27, 7], [28, 21], [29, 22], [30, 14], [31, 15], [32, 24], [33, 25], [34, 26], [35, 28], [36, 28], [37, 23], [38, 30], [39, 16], [40, 33], [41, 34], [42, 34], [43, 36], [44, 37], [45, 39], [46, 42], [47, 43], [48, 43], [49, 44], [50, 45], [51, 46], [52, 46], [53, 48], [54, 48], [55, 52], [56, 52], [57, 54], [58, 56], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58]]}, {"function_name": "executeScript", "code": "    public void executeScript(Map attributes, Map elements) {\n        executeScript(attributes, elements, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "executeScript", "code": "    public void executeScript(Map attributes, Map elements, ScriptDefBase instance) {\n        runner.addBean(\"attributes\", attributes);\n        runner.addBean(\"elements\", elements);\n        runner.addBean(\"project\", getProject());\n        if (instance != null) {\n            runner.addBean(\"self\", instance);\n        }\n        runner.executeScript(\"scriptdef_\" + name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [0, 9], [5, 10], [6, 11], [7, 12], [7, 13], [8, 14], [9, 15], [10, 16], [1, 17], [17, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 0], [10, 5], [11, 6], [12, 7], [13, 7], [14, 8], [15, 9], [16, 10], [17, 1], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "setManager", "code": "    public void setManager(String manager) {\n        helper.setManager(manager);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setLanguage", "code": "    public void setLanguage(String language) {\n        helper.setLanguage(language);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setSrc", "code": "    public void setSrc(File file) {\n        helper.setSrc(file);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addText", "code": "    public void addText(String text) {\n        helper.addText(text);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "add", "code": "    public void add(ResourceCollection resource) {\n        helper.add(resource);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.4-2044", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/ChoiceProcessor.java", "language": "java", "name": "org.apache.camel.processor.ChoiceProcessor", "code": "public class ChoiceProcessor extends ServiceSupport implements Processor {\n    private List<FilterProcessor> filters = new ArrayList<FilterProcessor>();\n    private Processor otherwise;\n\n    public ChoiceProcessor(List<FilterProcessor> filters, Processor otherwise) {\n        this.filters = filters;\n        this.otherwise = otherwise;\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        for (FilterProcessor filterProcessor : filters) {\n            Predicate<Exchange> predicate = filterProcessor.getPredicate();\n            if (predicate != null && predicate.matches(exchange)) {\n                filterProcessor.processNext(exchange);\n                return;\n            }\n        }\n        if (otherwise != null) {\n            otherwise.process(exchange);\n        }\n    }\n\n    @Override\n    public String toString() {\n        StringBuilder builder = new StringBuilder(\"choice{\");\n        boolean first = true;\n        for (FilterProcessor processor : filters) {\n            if (first) {\n                first = false;\n            } else {\n                builder.append(\", \");\n            }\n            builder.append(\"when \");\n            builder.append(processor.getPredicate().toString());\n            builder.append(\": \");\n            builder.append(processor.getProcessor());\n        }\n        if (otherwise != null) {\n            builder.append(\", otherwise: \");\n            builder.append(otherwise);\n        }\n        builder.append(\"}\");\n        return builder.toString();\n    }\n\n    public List<FilterProcessor> getFilters() {\n        return filters;\n    }\n\n    public Processor getOtherwise() {\n        return otherwise;\n    }\n\n    protected void doStart() throws Exception {\n        ServiceHelper.startServices(filters);\n        ServiceHelper.startServices(otherwise);\n    }\n\n    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(otherwise);\n        ServiceHelper.stopServices(filters);", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        for (FilterProcessor filterProcessor : filters) {\n            Predicate<Exchange> predicate = filterProcessor.getPredicate();\n            if (predicate != null && predicate.matches(exchange)) {\n                filterProcessor.processNext(exchange);\n                return;\n            }\n        }\n        if (otherwise != null) {\n            otherwise.process(exchange);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "BINARY_OP", "RETURN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [2, 6], [2, 7], [1, 8], [6, 9], [6, 10], [9, 11], [9, 12], [7, 13], [6, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 2], [7, 2], [8, 1], [9, 6], [10, 6], [11, 9], [12, 9], [13, 7], [14, 6], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        StringBuilder builder = new StringBuilder(\"choice{\");\n        boolean first = true;\n        for (FilterProcessor processor : filters) {\n            if (first) {\n                first = false;\n            } else {\n                builder.append(\", \");\n            }\n            builder.append(\"when \");\n            builder.append(processor.getPredicate().toString());\n            builder.append(\": \");\n            builder.append(processor.getProcessor());\n        }\n        if (otherwise != null) {\n            builder.append(\", otherwise: \");\n            builder.append(otherwise);\n        }\n        builder.append(\"}\");\n        return builder.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [2, 8], [7, 9], [8, 10], [3, 11], [4, 12], [5, 13], [2, 14], [2, 15], [3, 16], [3, 17], [3, 18], [3, 19], [13, 20], [15, 21], [16, 22], [17, 23], [18, 24], [19, 25], [24, 26], [11, 27], [11, 28], [27, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 2], [9, 7], [10, 8], [11, 3], [12, 4], [13, 5], [14, 2], [15, 2], [16, 3], [17, 3], [18, 3], [19, 3], [20, 13], [21, 15], [22, 16], [23, 17], [24, 18], [25, 19], [26, 24], [27, 11], [28, 11], [29, 27], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "getFilters", "code": "    public List<FilterProcessor> getFilters() {\n        return filters;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOtherwise", "code": "    public Processor getOtherwise() {\n        return otherwise;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {\n        ServiceHelper.startServices(filters);\n        ServiceHelper.startServices(otherwise);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {\n        ServiceHelper.stopServices(otherwise);\n        ServiceHelper.stopServices(filters);", "ast_nodes": ["FUNC_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ChoiceProcessor", "code": "    public ChoiceProcessor(List<FilterProcessor> filters, Processor otherwise) {\n        this.filters = filters;\n        this.otherwise = otherwise;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.4-2534", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/processor/FilterProcessor.java", "language": "java", "name": "org.apache.camel.processor.FilterProcessor", "code": "public class FilterProcessor extends DelegateProcessor {\n    private Predicate<Exchange> predicate;\n\n    public FilterProcessor(Predicate<Exchange> predicate, Processor processor) {\n        super(processor);\n        this.predicate = predicate;\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        if (predicate.matches(exchange)) {\n            super.process(exchange);\n        }\n    }\n\n    @Override\n    public String toString() {\n        return \"Filter[if: \" + predicate + \" do: \" + getProcessor() + \"]\";\n    }\n\n    public Predicate<Exchange> getPredicate() {\n        return predicate;", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        if (predicate.matches(exchange)) {\n            super.process(exchange);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Filter[if: \" + predicate + \" do: \" + getProcessor() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getPredicate", "code": "    public Predicate<Exchange> getPredicate() {\n        return predicate;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FilterProcessor", "code": "    public FilterProcessor(Predicate<Exchange> predicate, Processor processor) {\n        super(processor);\n        this.predicate = predicate;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "poi-1.5-5340", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/hpsf/NoPropertySetStreamException.java", "language": "java", "name": "org.apache.poi.hpsf.NoPropertySetStreamException", "code": "public class NoPropertySetStreamException extends HPSFException\n{\n\n    public NoPropertySetStreamException()\n    {\n        super();\n    }\n\n    public NoPropertySetStreamException(final String msg)\n    {\n        super(msg);\n    }\n\n    public NoPropertySetStreamException(final Throwable reason)\n    {\n        super(reason);\n    }\n\n    public NoPropertySetStreamException(final String msg,\n                                        final Throwable reason)\n    {\n        super(msg, reason);", "functions": [{"function_name": "NoPropertySetStreamException", "code": "    public NoPropertySetStreamException()\n    {\n        super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "NoPropertySetStreamException", "code": "    public NoPropertySetStreamException(final String msg)\n    {\n        super(msg);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "NoPropertySetStreamException", "code": "    public NoPropertySetStreamException(final Throwable reason)\n    {\n        super(reason);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "NoPropertySetStreamException", "code": "    public NoPropertySetStreamException(final String msg,\n                                        final Throwable reason)\n    {\n        super(msg, reason);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.7-8381", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xalan/xsltc/compiler/Import.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.Import", "code": "final class Import extends TopLevelElement {\n\n    private Stylesheet _imported = null;\n\n    public Stylesheet getImportedStylesheet() {\n\treturn _imported;\n    }\n\n    public void parseContents(final Parser parser) {\n\tfinal XSLTC xsltc = parser.getXSLTC();\n\tfinal Stylesheet context = parser.getCurrentStylesheet();\n\n\ttry {\n\t    String docToLoad = getAttribute(\"href\");\n\t    if (context.checkForLoop(docToLoad)) {\n\t\tfinal ErrorMsg msg = new ErrorMsg(ErrorMsg.CIRCULAR_INCLUDE_ERR,\n                                                  docToLoad, this);\n\t\tparser.reportError(Constants.FATAL, msg);\n\t\treturn;\n\t    }\n\n\t    InputSource input = null;\n\t    XMLReader reader = null;\n\t    String currLoadedDoc = context.getSystemId();\n\t    SourceLoader loader = context.getSourceLoader();\n            \n\t    if (loader != null) {\n\t\tinput = loader.loadSource(docToLoad, currLoadedDoc, xsltc);\n                if (input != null) {\n                    docToLoad = input.getSystemId();\n                    reader = xsltc.getXMLReader();\n                }\n\t    }\n\n            if (input == null) {\n                docToLoad = SystemIDResolver.getAbsoluteURI(docToLoad, currLoadedDoc);\n                input = new InputSource(docToLoad);\n\t    }\n\n\t    if (input == null) {\n\t\tfinal ErrorMsg msg = \n\t\t    new ErrorMsg(ErrorMsg.FILE_NOT_FOUND_ERR, docToLoad, this);\n\t\tparser.reportError(Constants.FATAL, msg);\n\t\treturn;\n\t    }\n            \n\t    final SyntaxTreeNode root;\n            if (reader != null) {\n                root = parser.parse(reader,input);\n            }\n            else {\n                root = parser.parse(input);\n            }\n\n\t    if (root == null) return;\n\t    _imported = parser.makeStylesheet(root);\n\t    if (_imported == null) return;\n\n\t    _imported.setSourceLoader(loader);\n\t    _imported.setSystemId(docToLoad);\n\t    _imported.setParentStylesheet(context);\n\t    _imported.setImportingStylesheet(context);\n        _imported.setTemplateInlining(context.getTemplateInlining());\n\n\t    final int currPrecedence = parser.getCurrentImportPrecedence();\n\t    final int nextPrecedence = parser.getNextImportPrecedence();\n\t    _imported.setImportPrecedence(currPrecedence);\n\t    context.setImportPrecedence(nextPrecedence);\n\t    parser.setCurrentStylesheet(_imported);\n\t    _imported.parseContents(parser);\n\n\t    final Enumeration elements = _imported.elements();\n\t    final Stylesheet topStylesheet = parser.getTopLevelStylesheet();\n\t    while (elements.hasMoreElements()) {\n\t\tfinal Object element = elements.nextElement();\n\t\tif (element instanceof TopLevelElement) {\n\t\t    if (element instanceof Variable) {\n\t\t\ttopStylesheet.addVariable((Variable) element);\n\t\t    }\n\t\t    else if (element instanceof Param) {\n\t\t\ttopStylesheet.addParam((Param) element);\n\t\t    }\n\t\t    else {\n\t\t\ttopStylesheet.addElement((TopLevelElement) element);\n\t\t    }\n\t\t}\n\t    }\n\t}\n\tcatch (Exception e) {\n\t    e.printStackTrace();\n\t}\n\tfinally {\n\t    parser.setCurrentStylesheet(context);\n\t}\n    }\n    \n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn Type.Void;\n    }\n    \n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {", "functions": [{"function_name": "getImportedStylesheet", "code": "    public Stylesheet getImportedStylesheet() {\n\treturn _imported;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "parseContents", "code": "    public void parseContents(final Parser parser) {\n\tfinal XSLTC xsltc = parser.getXSLTC();\n\tfinal Stylesheet context = parser.getCurrentStylesheet();\n\n\ttry {\n\t    String docToLoad = getAttribute(\"href\");\n\t    if (context.checkForLoop(docToLoad)) {\n\t\tfinal ErrorMsg msg = new ErrorMsg(ErrorMsg.CIRCULAR_INCLUDE_ERR,\n                                                  docToLoad, this);\n\t\tparser.reportError(Constants.FATAL, msg);\n\t\treturn;\n\t    }\n\n\t    InputSource input = null;\n\t    XMLReader reader = null;\n\t    String currLoadedDoc = context.getSystemId();\n\t    SourceLoader loader = context.getSourceLoader();\n            \n\t    if (loader != null) {\n\t\tinput = loader.loadSource(docToLoad, currLoadedDoc, xsltc);\n                if (input != null) {\n                    docToLoad = input.getSystemId();\n                    reader = xsltc.getXMLReader();\n                }\n\t    }\n\n            if (input == null) {\n                docToLoad = SystemIDResolver.getAbsoluteURI(docToLoad, currLoadedDoc);\n                input = new InputSource(docToLoad);\n\t    }\n\n\t    if (input == null) {\n\t\tfinal ErrorMsg msg = \n\t\t    new ErrorMsg(ErrorMsg.FILE_NOT_FOUND_ERR, docToLoad, this);\n\t\tparser.reportError(Constants.FATAL, msg);\n\t\treturn;\n\t    }\n            \n\t    final SyntaxTreeNode root;\n            if (reader != null) {\n                root = parser.parse(reader,input);\n            }\n            else {\n                root = parser.parse(input);\n            }\n\n\t    if (root == null) return;\n\t    _imported = parser.makeStylesheet(root);\n\t    if (_imported == null) return;\n\n\t    _imported.setSourceLoader(loader);\n\t    _imported.setSystemId(docToLoad);\n\t    _imported.setParentStylesheet(context);\n\t    _imported.setImportingStylesheet(context);\n        _imported.setTemplateInlining(context.getTemplateInlining());\n\n\t    final int currPrecedence = parser.getCurrentImportPrecedence();\n\t    final int nextPrecedence = parser.getNextImportPrecedence();\n\t    _imported.setImportPrecedence(currPrecedence);\n\t    context.setImportPrecedence(nextPrecedence);\n\t    parser.setCurrentStylesheet(_imported);\n\t    _imported.parseContents(parser);\n\n\t    final Enumeration elements = _imported.elements();\n\t    final Stylesheet topStylesheet = parser.getTopLevelStylesheet();\n\t    while (elements.hasMoreElements()) {\n\t\tfinal Object element = elements.nextElement();\n\t\tif (element instanceof TopLevelElement) {\n\t\t    if (element instanceof Variable) {\n\t\t\ttopStylesheet.addVariable((Variable) element);\n\t\t    }\n\t\t    else if (element instanceof Param) {\n\t\t\ttopStylesheet.addParam((Param) element);\n\t\t    }\n\t\t    else {\n\t\t\ttopStylesheet.addElement((TopLevelElement) element);\n\t\t    }\n\t\t}\n\t    }\n\t}\n\tcatch (Exception e) {\n\t    e.printStackTrace();\n\t}\n\tfinally {\n\t    parser.setCurrentStylesheet(context);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "BINARY_OP", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [6, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [11, 35], [11, 36], [1, 37], [12, 38], [12, 39], [13, 40], [15, 41], [16, 42], [17, 43], [22, 44], [2, 45], [3, 46], [5, 47], [6, 48], [6, 49], [7, 50], [8, 51], [9, 52], [10, 53], [30, 54], [36, 55], [37, 56], [39, 57], [40, 58], [15, 59], [15, 60], [41, 61], [42, 62], [17, 63], [43, 64], [18, 65], [19, 66], [20, 67], [21, 68], [22, 69], [22, 70], [23, 71], [48, 72], [13, 73], [13, 74], [15, 75], [16, 76], [16, 77], [63, 78], [17, 79], [22, 80], [71, 81], [48, 82], [49, 83], [73, 84], [74, 85], [60, 86], [76, 87], [77, 88], [78, 89], [79, 90], [70, 91], [82, 92], [82, 93], [63, 94], [63, 95], [92, 96], [94, 97], [95, 98], [82, 99], [92, 100], [92, 101], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 6], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 11], [36, 11], [37, 1], [38, 12], [39, 12], [40, 13], [41, 15], [42, 16], [43, 17], [44, 22], [45, 2], [46, 3], [47, 5], [48, 6], [49, 6], [50, 7], [51, 8], [52, 9], [53, 10], [54, 30], [55, 36], [56, 37], [57, 39], [58, 40], [59, 15], [60, 15], [61, 41], [62, 42], [63, 17], [64, 43], [65, 18], [66, 19], [67, 20], [68, 21], [69, 22], [70, 22], [71, 23], [72, 48], [73, 13], [74, 13], [75, 15], [76, 16], [77, 16], [78, 63], [79, 17], [80, 22], [81, 71], [82, 48], [83, 49], [84, 73], [85, 74], [86, 60], [87, 76], [88, 77], [89, 78], [90, 79], [91, 70], [92, 82], [93, 82], [94, 63], [95, 63], [96, 92], [97, 94], [98, 95], [99, 82], [100, 92], [101, 92], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\treturn Type.Void;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "camel-1.6-3248", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/osgi/CamelNamespaceHandler.java", "language": "java", "name": "org.apache.camel.osgi.CamelNamespaceHandler", "code": "public class CamelNamespaceHandler extends org.apache.camel.spring.handler.CamelNamespaceHandler {\n\n    public void init() {\n        super.init();\n        registerParser(\"camelContext\", new CamelContextBeanDefinitionParser(CamelContextFactoryBean.class));\n    }\n\n    protected JAXBContext createJaxbContext() throws JAXBException {\n        StringBuilder packages = new StringBuilder();\n        for (Class cl : getJaxbPackages()) {\n            if (packages.length() > 0) {\n                packages.append(\":\");\n            }\n            packages.append(cl.getName().substring(0, cl.getName().lastIndexOf('.')));\n        }\n        return JAXBContext.newInstance(packages.toString(), getClass().getClassLoader());\n    }\n\n    protected Set<Class> getJaxbPackages() {\n        Set<Class> classes = new HashSet<Class>();\n        classes.add(org.apache.camel.osgi.CamelContextFactoryBean.class);\n        classes.add(org.apache.camel.spring.CamelContextFactoryBean.class);\n        classes.add(org.apache.camel.model.RouteType.class);\n        classes.add(org.apache.camel.model.config.StreamResequencerConfig.class);\n        classes.add(org.apache.camel.model.dataformat.DataFormatType.class);\n        classes.add(org.apache.camel.model.language.ExpressionType.class);\n        classes.add(org.apache.camel.model.loadbalancer.LoadBalancerType.class);\n        return classes;", "functions": [{"function_name": "init", "code": "    public void init() {\n        super.init();\n        registerParser(\"camelContext\", new CamelContextBeanDefinitionParser(CamelContextFactoryBean.class));", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 0], [2, 1], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createJaxbContext", "code": "    protected JAXBContext createJaxbContext() throws JAXBException {\n        StringBuilder packages = new StringBuilder();\n        for (Class cl : getJaxbPackages()) {\n            if (packages.length() > 0) {\n                packages.append(\":\");\n            }\n            packages.append(cl.getName().substring(0, cl.getName().lastIndexOf('.')));\n        }\n        return JAXBContext.newInstance(packages.toString(), getClass().getClassLoader());", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [2, 7], [2, 8], [3, 9], [5, 10], [2, 11], [7, 12], [11, 13], [12, 14], [12, 15], [13, 16], [7, 17], [16, 18], [16, 19], [17, 20], [18, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 2], [8, 2], [9, 3], [10, 5], [11, 2], [12, 7], [13, 11], [14, 12], [15, 12], [16, 13], [17, 7], [18, 16], [19, 16], [20, 17], [21, 18], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getJaxbPackages", "code": "    protected Set<Class> getJaxbPackages() {\n        Set<Class> classes = new HashSet<Class>();\n        classes.add(org.apache.camel.osgi.CamelContextFactoryBean.class);\n        classes.add(org.apache.camel.spring.CamelContextFactoryBean.class);\n        classes.add(org.apache.camel.model.RouteType.class);\n        classes.add(org.apache.camel.model.config.StreamResequencerConfig.class);\n        classes.add(org.apache.camel.model.dataformat.DataFormatType.class);\n        classes.add(org.apache.camel.model.language.ExpressionType.class);\n        classes.add(org.apache.camel.model.loadbalancer.LoadBalancerType.class);\n        return classes;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [2, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "camel-1.4-2265", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/bam/model/ProcessDefinition.java", "language": "java", "name": "org.apache.camel.bam.model.ProcessDefinition", "code": "@Entity\n@UniqueConstraint(columnNames = {\"name\" })\npublic class ProcessDefinition extends EntitySupport {\n    private static final transient Log LOG = LogFactory.getLog(ProcessDefinition.class);\n    private String name;\n\n    @Override\n    @Id\n    @GeneratedValue\n    public Long getId() {\n        return super.getId();\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public static ProcessDefinition getRefreshedProcessDefinition(JpaTemplate template, ProcessDefinition definition) {\n\n        ObjectHelper.notNull(definition, \"definition\");\n        Long id = definition.getId();\n        if (id == null) {\n            LOG.warn(\"No primary key is available!\");\n            return findOrCreateProcessDefinition(template, definition.getName());\n        }\n        definition = template.find(ProcessDefinition.class, id);\n        return definition;\n    }\n\n    public static ProcessDefinition findOrCreateProcessDefinition(JpaTemplate template, String processName) {\n        List<ProcessDefinition> list = template.find(\"select x from \" + ProcessDefinition.class.getName() + \" x where x.name = ?1\", processName);\n        if (!list.isEmpty()) {\n            return list.get(0);\n        } else {\n            ProcessDefinition answer = new ProcessDefinition();\n            answer.setName(processName);\n            template.persist(answer);\n            return answer;", "functions": [{"function_name": "getId", "code": "    @Override\n    @Id\n    @GeneratedValue\n    public Long getId() {\n        return super.getId();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "    public String getName() {\n        return name;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setName", "code": "    public void setName(String name) {\n        this.name = name;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRefreshedProcessDefinition", "code": "    public static ProcessDefinition getRefreshedProcessDefinition(JpaTemplate template, ProcessDefinition definition) {\n\n        ObjectHelper.notNull(definition, \"definition\");\n        Long id = definition.getId();\n        if (id == null) {\n            LOG.warn(\"No primary key is available!\");\n            return findOrCreateProcessDefinition(template, definition.getName());\n        }\n        definition = template.find(ProcessDefinition.class, id);\n        return definition;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [6, 9], [2, 10], [7, 11], [3, 12], [8, 13], [10, 14], [2, 15], [14, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 6], [10, 2], [11, 7], [12, 3], [13, 8], [14, 10], [15, 2], [16, 14], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "findOrCreateProcessDefinition", "code": "    public static ProcessDefinition findOrCreateProcessDefinition(JpaTemplate template, String processName) {\n        List<ProcessDefinition> list = template.find(\"select x from \" + ProcessDefinition.class.getName() + \" x where x.name = ?1\", processName);\n        if (!list.isEmpty()) {\n            return list.get(0);\n        } else {\n            ProcessDefinition answer = new ProcessDefinition();\n            answer.setName(processName);\n            template.persist(answer);\n            return answer;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "RETURN", "VAR_DECL", "RETURN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [2, 9], [1, 10], [1, 11], [8, 12], [9, 13], [7, 14], [12, 15], [13, 16], [13, 17], [17, 18], [17, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 2], [10, 1], [11, 1], [12, 8], [13, 9], [14, 7], [15, 12], [16, 13], [17, 13], [18, 17], [19, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}], "label": 0}
{"sample_id": "jedit-4.1-4143", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/gui/FloatingWindowContainer.java", "language": "java", "name": "org.gjt.sp.jedit.gui.FloatingWindowContainer", "code": "public class FloatingWindowContainer extends JFrame implements DockableWindowContainer\n{\n\t//{{{ FloatingWindowContainer constructor\n\tpublic FloatingWindowContainer(DockableWindowManager dockableWindowManager)\n\t{\n\t\tthis.dockableWindowManager = dockableWindowManager;\n\t\tsetIconImage(GUIUtilities.getPluginIcon());\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t} //}}}\n\n\t//{{{ register() method\n\tpublic void register(DockableWindowManager.Entry entry)\n\t{\n\t\tthis.entry = entry;\n\t\tsetTitle(entry.title);\n\n\t\tgetContentPane().add(BorderLayout.CENTER,entry.win);\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,entry.factory.name);\n\t\tshow();\n\t} //}}}\n\n\t//{{{ add() method\n\tpublic void add(DockableWindowManager.Entry entry)\n\t{\n\t} //}}}\n\n\t//{{{ save() method\n\tpublic void save(DockableWindowManager.Entry entry)\n\t{\n\t\tGUIUtilities.saveGeometry(this,entry.factory.name);\n\t} //}}}\n\n\t//{{{ remove() method\n\tpublic void remove(DockableWindowManager.Entry entry)\n\t{\n\t\tsuper.dispose();\n\t} //}}}\n\n\t//{{{ show() method\n\tpublic void show(final DockableWindowManager.Entry entry)\n\t{\n\t\ttoFront();\n\t\trequestFocus();\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tentry.win.requestDefaultFocus();\n\t\t\t}\n\t\t});\n\t} //}}}\n\n\t//{{{ isVisible() method\n\tpublic boolean isVisible(DockableWindowManager.Entry entry)\n\t{\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ dispose() method\n\tpublic void dispose()\n\t{\n\t\tsave(entry);\n\t\tentry.container = null;\n\t\tentry.win = null;\n\t\tsuper.dispose();\n\t} //}}}\n\n\t//{{{ getMinimumSize() method\n\tpublic Dimension getMinimumSize()\n\t{\n\t\treturn new Dimension(0,0);\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate DockableWindowManager dockableWindowManager;\n\tprivate DockableWindowManager.Entry entry;", "functions": [{"function_name": "register", "code": "\tpublic void register(DockableWindowManager.Entry entry)\n\t{\n\t\tthis.entry = entry;\n\t\tsetTitle(entry.title);\n\n\t\tgetContentPane().add(BorderLayout.CENTER,entry.win);\n\n\t\tpack();\n\t\tGUIUtilities.loadGeometry(this,entry.factory.name);\n\t\tshow();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [5, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "add", "code": "\tpublic void add(DockableWindowManager.Entry entry)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "save", "code": "\tpublic void save(DockableWindowManager.Entry entry)\n\t{\n\t\tGUIUtilities.saveGeometry(this,entry.factory.name);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "remove", "code": "\tpublic void remove(DockableWindowManager.Entry entry)\n\t{\n\t\tsuper.dispose();", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "show", "code": "\tpublic void show(final DockableWindowManager.Entry entry)\n\t{\n\t\ttoFront();\n\t\trequestFocus();\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tentry.win.requestDefaultFocus();", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL", "FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "isVisible", "code": "\tpublic boolean isVisible(DockableWindowManager.Entry entry)\n\t{\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispose", "code": "\tpublic void dispose()\n\t{\n\t\tsave(entry);\n\t\tentry.container = null;\n\t\tentry.win = null;\n\t\tsuper.dispose();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getMinimumSize", "code": "\tpublic Dimension getMinimumSize()\n\t{\n\t\treturn new Dimension(0,0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "FloatingWindowContainer", "code": "\tpublic FloatingWindowContainer(DockableWindowManager dockableWindowManager)\n\t{\n\t\tthis.dockableWindowManager = dockableWindowManager;\n\t\tsetIconImage(GUIUtilities.getPluginIcon());\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "poi-2.0-5449", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/PaneRecord.java", "language": "java", "name": "org.apache.poi.hssf.record.PaneRecord", "code": "public class PaneRecord\n    extends Record\n{\n    public final static short      sid                             = 0x41;\n    private  short      field_1_x;\n    private  short      field_2_y;\n    private  short      field_3_topRow;\n    private  short      field_4_leftColumn;\n    private  short      field_5_activePane;\n    public final static short       ACTIVE_PANE_LOWER_RIGHT        = 0;\n    public final static short       ACTIVE_PANE_UPPER_RIGHT        = 1;\n    public final static short       ACTIVE_PANE_LOWER_LEFT         = 2;\n    public final static short       ACTIVE_PANE_UPER_LEFT          = 3;\n\n\n    public PaneRecord()\n    {\n\n    }\n\n    /**\n     * Constructs a Pane record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x41 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     */\n\n    public PaneRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);\n    \n    }\n\n    /**\n     * Constructs a Pane record and sets its fields appropriately.\n     *\n     * @param id    id must be 0x41 or an exception\n     *              will be throw upon validation\n     * @param size  size the size of the data area of the record\n     * @param data  data of the record (should not contain sid/len)\n     * @param offset of the record's data\n     */\n\n    public PaneRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);\n    \n    }\n\n    /**\n     * Checks the sid matches the expected side for this record\n     *\n     * @param id   the expected sid.\n     */\n    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Pane record\");\n        }\n    }\n\n    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_x                      = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_y                      = LittleEndian.getShort(data, pos + 0x2 + offset);\n        field_3_topRow                 = LittleEndian.getShort(data, pos + 0x4 + offset);\n        field_4_leftColumn             = LittleEndian.getShort(data, pos + 0x6 + offset);\n        field_5_activePane             = LittleEndian.getShort(data, pos + 0x8 + offset);\n\n    }\n\n    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PANE]\\n\");\n        buffer.append(\"    .x                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getX ()))\n            .append(\" (\").append( getX() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .y                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getY ()))\n            .append(\" (\").append( getY() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .topRow               = \")\n            .append(\"0x\").append(HexDump.toHex(  getTopRow ()))\n            .append(\" (\").append( getTopRow() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .leftColumn           = \")\n            .append(\"0x\").append(HexDump.toHex(  getLeftColumn ()))\n            .append(\" (\").append( getLeftColumn() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .activePane           = \")\n            .append(\"0x\").append(HexDump.toHex(  getActivePane ()))\n            .append(\" (\").append( getActivePane() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/PANE]\\n\");\n        return buffer.toString();\n    }\n\n    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_x);\n        LittleEndian.putShort(data, 6 + offset + pos, field_2_y);\n        LittleEndian.putShort(data, 8 + offset + pos, field_3_topRow);\n        LittleEndian.putShort(data, 10 + offset + pos, field_4_leftColumn);\n        LittleEndian.putShort(data, 12 + offset + pos, field_5_activePane);\n\n        return getRecordSize();\n    }\n\n    /**\n     * Size of record (exluding 4 byte header)\n     */\n    public int getRecordSize()\n    {\n        return 4  + 2 + 2 + 2 + 2 + 2;\n    }\n\n    public short getSid()\n    {\n        return this.sid;\n    }\n\n    public Object clone() {\n        PaneRecord rec = new PaneRecord();\n    \n        rec.field_1_x = field_1_x;\n        rec.field_2_y = field_2_y;\n        rec.field_3_topRow = field_3_topRow;\n        rec.field_4_leftColumn = field_4_leftColumn;\n        rec.field_5_activePane = field_5_activePane;\n        return rec;\n    }\n\n\n\n\n    /**\n     * Get the x field for the Pane record.\n     */\n    public short getX()\n    {\n        return field_1_x;\n    }\n\n    /**\n     * Set the x field for the Pane record.\n     */\n    public void setX(short field_1_x)\n    {\n        this.field_1_x = field_1_x;\n    }\n\n    /**\n     * Get the y field for the Pane record.\n     */\n    public short getY()\n    {\n        return field_2_y;\n    }\n\n    /**\n     * Set the y field for the Pane record.\n     */\n    public void setY(short field_2_y)\n    {\n        this.field_2_y = field_2_y;\n    }\n\n    /**\n     * Get the top row field for the Pane record.\n     */\n    public short getTopRow()\n    {\n        return field_3_topRow;\n    }\n\n    /**\n     * Set the top row field for the Pane record.\n     */\n    public void setTopRow(short field_3_topRow)\n    {\n        this.field_3_topRow = field_3_topRow;\n    }\n\n    /**\n     * Get the left column field for the Pane record.\n     */\n    public short getLeftColumn()\n    {\n        return field_4_leftColumn;\n    }\n\n    /**\n     * Set the left column field for the Pane record.\n     */\n    public void setLeftColumn(short field_4_leftColumn)\n    {\n        this.field_4_leftColumn = field_4_leftColumn;\n    }\n\n    /**\n     * Get the active pane field for the Pane record.\n     *\n     * @return  One of \n     *        ACTIVE_PANE_LOWER_RIGHT\n     *        ACTIVE_PANE_UPPER_RIGHT\n     *        ACTIVE_PANE_LOWER_LEFT\n     *        ACTIVE_PANE_UPER_LEFT\n     */\n    public short getActivePane()\n    {\n        return field_5_activePane;\n    }\n\n    /**\n     * Set the active pane field for the Pane record.\n     *\n     * @param field_5_activePane\n     *        One of \n     *        ACTIVE_PANE_LOWER_RIGHT\n     *        ACTIVE_PANE_UPPER_RIGHT\n     *        ACTIVE_PANE_LOWER_LEFT\n     *        ACTIVE_PANE_UPER_LEFT\n     */\n    public void setActivePane(short field_5_activePane)\n    {\n        this.field_5_activePane = field_5_activePane;", "functions": [{"function_name": "validateSid", "code": "    protected void validateSid(short id)\n    {\n        if (id != sid)\n        {\n            throw new RecordFormatException(\"Not a Pane record\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "fillFields", "code": "    protected void fillFields(byte [] data, short size, int offset)\n    {\n\n        int pos = 0;\n        field_1_x                      = LittleEndian.getShort(data, pos + 0x0 + offset);\n        field_2_y                      = LittleEndian.getShort(data, pos + 0x2 + offset);\n        field_3_topRow                 = LittleEndian.getShort(data, pos + 0x4 + offset);\n        field_4_leftColumn             = LittleEndian.getShort(data, pos + 0x6 + offset);\n        field_5_activePane             = LittleEndian.getShort(data, pos + 0x8 + offset);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [5, 10], [6, 11], [7, 12], [8, 13], [9, 14], [1, 15], [10, 16], [11, 17], [12, 18], [13, 19], [14, 20], [16, 21], [17, 22], [18, 23], [19, 24], [20, 25], [21, 26], [22, 27], [23, 28], [24, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 5], [11, 6], [12, 7], [13, 8], [14, 9], [15, 1], [16, 10], [17, 11], [18, 12], [19, 13], [20, 14], [21, 16], [22, 17], [23, 18], [24, 19], [25, 20], [26, 21], [27, 22], [28, 23], [29, 24], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        StringBuffer buffer = new StringBuffer();\n\n        buffer.append(\"[PANE]\\n\");\n        buffer.append(\"    .x                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getX ()))\n            .append(\" (\").append( getX() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .y                    = \")\n            .append(\"0x\").append(HexDump.toHex(  getY ()))\n            .append(\" (\").append( getY() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .topRow               = \")\n            .append(\"0x\").append(HexDump.toHex(  getTopRow ()))\n            .append(\" (\").append( getTopRow() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .leftColumn           = \")\n            .append(\"0x\").append(HexDump.toHex(  getLeftColumn ()))\n            .append(\" (\").append( getLeftColumn() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n        buffer.append(\"    .activePane           = \")\n            .append(\"0x\").append(HexDump.toHex(  getActivePane ()))\n            .append(\" (\").append( getActivePane() ).append(\" )\");\n        buffer.append(System.getProperty(\"line.separator\")); \n\n        buffer.append(\"[/PANE]\\n\");\n        return buffer.toString();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [4, 16], [5, 17], [6, 18], [6, 19], [6, 20], [6, 21], [6, 22], [6, 23], [7, 24], [8, 25], [8, 26], [8, 27], [8, 28], [8, 29], [8, 30], [9, 31], [10, 32], [10, 33], [10, 34], [10, 35], [10, 36], [10, 37], [11, 38], [12, 39], [12, 40], [12, 41], [12, 42], [12, 43], [12, 44], [13, 45], [14, 46], [14, 47], [14, 48], [14, 49], [14, 50], [14, 51], [15, 52], [2, 53], [17, 54], [19, 55], [20, 56], [21, 57], [22, 58], [23, 59], [24, 60], [26, 61], [27, 62], [28, 63], [29, 64], [30, 65], [31, 66], [33, 67], [34, 68], [35, 69], [36, 70], [37, 71], [38, 72], [40, 73], [41, 74], [42, 75], [43, 76], [44, 77], [45, 78], [47, 79], [48, 80], [49, 81], [50, 82], [51, 83], [58, 84], [64, 85], [70, 86], [76, 87], [82, 88], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 4], [17, 5], [18, 6], [19, 6], [20, 6], [21, 6], [22, 6], [23, 6], [24, 7], [25, 8], [26, 8], [27, 8], [28, 8], [29, 8], [30, 8], [31, 9], [32, 10], [33, 10], [34, 10], [35, 10], [36, 10], [37, 10], [38, 11], [39, 12], [40, 12], [41, 12], [42, 12], [43, 12], [44, 12], [45, 13], [46, 14], [47, 14], [48, 14], [49, 14], [50, 14], [51, 14], [52, 15], [53, 2], [54, 17], [55, 19], [56, 20], [57, 21], [58, 22], [59, 23], [60, 24], [61, 26], [62, 27], [63, 28], [64, 29], [65, 30], [66, 31], [67, 33], [68, 34], [69, 35], [70, 36], [71, 37], [72, 38], [73, 40], [74, 41], [75, 42], [76, 43], [77, 44], [78, 45], [79, 47], [80, 48], [81, 49], [82, 50], [83, 51], [84, 58], [85, 64], [86, 70], [87, 76], [88, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "serialize", "code": "    public int serialize(int offset, byte[] data)\n    {\n        int pos = 0;\n\n        LittleEndian.putShort(data, 0 + offset, sid);\n        LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));\n\n        LittleEndian.putShort(data, 4 + offset + pos, field_1_x);\n        LittleEndian.putShort(data, 6 + offset + pos, field_2_y);\n        LittleEndian.putShort(data, 8 + offset + pos, field_3_topRow);\n        LittleEndian.putShort(data, 10 + offset + pos, field_4_leftColumn);\n        LittleEndian.putShort(data, 12 + offset + pos, field_5_activePane);\n\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [6, 13], [7, 14], [8, 15], [9, 16], [10, 17], [11, 18], [12, 19], [2, 20], [13, 21], [14, 22], [15, 23], [16, 24], [17, 25], [11, 26], [18, 27], [19, 28], [21, 29], [22, 30], [23, 31], [24, 32], [25, 33], [26, 34], [26, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 6], [14, 7], [15, 8], [16, 9], [17, 10], [18, 11], [19, 12], [20, 2], [21, 13], [22, 14], [23, 15], [24, 16], [25, 17], [26, 11], [27, 18], [28, 19], [29, 21], [30, 22], [31, 23], [32, 24], [33, 25], [34, 26], [35, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 4  + 2 + 2 + 2 + 2 + 2;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [10, 11], [10, 12], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [11, 10], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getSid", "code": "    public short getSid()\n    {\n        return this.sid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n        PaneRecord rec = new PaneRecord();\n    \n        rec.field_1_x = field_1_x;\n        rec.field_2_y = field_2_y;\n        rec.field_3_topRow = field_3_topRow;\n        rec.field_4_leftColumn = field_4_leftColumn;\n        rec.field_5_activePane = field_5_activePane;\n        return rec;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getX", "code": "    public short getX()\n    {\n        return field_1_x;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setX", "code": "    public void setX(short field_1_x)\n    {\n        this.field_1_x = field_1_x;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getY", "code": "    public short getY()\n    {\n        return field_2_y;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setY", "code": "    public void setY(short field_2_y)\n    {\n        this.field_2_y = field_2_y;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTopRow", "code": "    public short getTopRow()\n    {\n        return field_3_topRow;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTopRow", "code": "    public void setTopRow(short field_3_topRow)\n    {\n        this.field_3_topRow = field_3_topRow;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLeftColumn", "code": "    public short getLeftColumn()\n    {\n        return field_4_leftColumn;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setLeftColumn", "code": "    public void setLeftColumn(short field_4_leftColumn)\n    {\n        this.field_4_leftColumn = field_4_leftColumn;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActivePane", "code": "    public short getActivePane()\n    {\n        return field_5_activePane;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setActivePane", "code": "    public void setActivePane(short field_5_activePane)\n    {\n        this.field_5_activePane = field_5_activePane;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "PaneRecord", "code": "    public PaneRecord()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "PaneRecord", "code": "    public PaneRecord(short id, short size, byte [] data)\n    {\n        super(id, size, data);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "PaneRecord", "code": "    public PaneRecord(short id, short size, byte [] data, int offset)\n    {\n        super(id, size, data, offset);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "poi-3.0-6083", "repo": "poi-3.0", "project": "poi", "version": "3.0", "file_path": "org/apache/poi/ddf/EscherSplitMenuColorsRecord.java", "language": "java", "name": "org.apache.poi.ddf.EscherSplitMenuColorsRecord", "code": "public class EscherSplitMenuColorsRecord\n    extends EscherRecord\n{\n    public static final short RECORD_ID = (short) 0xF11E;\n    public static final String RECORD_DESCRIPTION = \"MsofbtSplitMenuColors\";\n\n    private int field_1_color1;\n    private int field_2_color2;\n    private int field_3_color3;\n    private int field_4_color4;\n\n    /**\n     * This method deserializes the record from a byte array.\n     *\n     * @param data          The byte array containing the escher record information\n     * @param offset        The starting offset into <code>data</code>.\n     * @param recordFactory May be null since this is not a container record.\n     * @return The number of bytes read from the byte array.\n     */\n    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        int pos            = offset + 8;\n        int size           = 0;\n        field_1_color1 =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_2_color2 =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_3_color3 =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_4_color4 =  LittleEndian.getInt( data, pos + size );size+=4;\n        bytesRemaining -= size;\n        if (bytesRemaining != 0)\n            throw new RecordFormatException(\"Expecting no remaining data but got \" + bytesRemaining + \" byte(s).\");\n        return 8 + size + bytesRemaining;\n    }\n\n    /**\n     * This method serializes this escher record into a byte array.\n     *\n     * @param offset   The offset into <code>data</code> to start writing the record data to.\n     * @param data     The byte array to serialize to.\n     * @param listener A listener to retrieve start and end callbacks.  Use a <code>NullEscherSerailizationListener</code> to ignore these events.\n     * @return The number of bytes written.\n     *\n     * @see NullEscherSerializationListener\n     */\n    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        int pos = offset;\n        LittleEndian.putShort( data, pos, getOptions() );     pos += 2;\n        LittleEndian.putShort( data, pos, getRecordId() );    pos += 2;\n        int remainingBytes =  getRecordSize() - 8;\n\n        LittleEndian.putInt( data, pos, remainingBytes );          pos += 4;\n        LittleEndian.putInt( data, pos, field_1_color1 );          pos += 4;\n        LittleEndian.putInt( data, pos, field_2_color2 );          pos += 4;\n        LittleEndian.putInt( data, pos, field_3_color3 );          pos += 4;\n        LittleEndian.putInt( data, pos, field_4_color4 );          pos += 4;\n        listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );\n        return getRecordSize();\n    }\n\n    /**\n     * Returns the number of bytes that are required to serialize this record.\n     *\n     * @return Number of bytes\n     */\n    public int getRecordSize()\n    {\n        return 8 + 4 * 4;\n    }\n\n    /**\n     * @return  the 16 bit identifer for this record.\n     */\n    public short getRecordId()\n    {\n        return RECORD_ID;\n    }\n\n    /**\n     * The short name for this record\n     */\n    public String getRecordName()\n    {\n        return \"SplitMenuColors\";\n    }\n\n    /**\n     * @return  a string representation of this record.\n     */\n    public String toString()\n    {\n        String nl = System.getProperty(\"line.separator\");\n\n        return getClass().getName() + \":\" + nl +\n                \"  RecordId: 0x\" + HexDump.toHex(RECORD_ID) + nl +\n                \"  Options: 0x\" + HexDump.toHex(getOptions()) + nl +\n                \"  Color1: 0x\" + HexDump.toHex(field_1_color1) + nl +\n                \"  Color2: 0x\" + HexDump.toHex(field_2_color2) + nl +\n                \"  Color3: 0x\" + HexDump.toHex(field_3_color3) + nl +\n                \"  Color4: 0x\" + HexDump.toHex(field_4_color4) + nl +\n                \"\";\n\n    }\n\n    public int getColor1()\n    {\n        return field_1_color1;\n    }\n\n    public void setColor1( int field_1_color1 )\n    {\n        this.field_1_color1 = field_1_color1;\n    }\n\n    public int getColor2()\n    {\n        return field_2_color2;\n    }\n\n    public void setColor2( int field_2_color2 )\n    {\n        this.field_2_color2 = field_2_color2;\n    }\n\n    public int getColor3()\n    {\n        return field_3_color3;\n    }\n\n    public void setColor3( int field_3_color3 )\n    {\n        this.field_3_color3 = field_3_color3;\n    }\n\n    public int getColor4()\n    {\n        return field_4_color4;\n    }\n\n    public void setColor4( int field_4_color4 )\n    {\n        this.field_4_color4 = field_4_color4;", "functions": [{"function_name": "fillFields", "code": "    public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )\n    {\n        int bytesRemaining = readHeader( data, offset );\n        int pos            = offset + 8;\n        int size           = 0;\n        field_1_color1 =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_2_color2 =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_3_color3 =  LittleEndian.getInt( data, pos + size );size+=4;\n        field_4_color4 =  LittleEndian.getInt( data, pos + size );size+=4;\n        bytesRemaining -= size;\n        if (bytesRemaining != 0)\n            throw new RecordFormatException(\"Expecting no remaining data but got \" + bytesRemaining + \" byte(s).\");\n        return 8 + size + bytesRemaining;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [2, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [9, 21], [10, 22], [11, 23], [13, 24], [14, 25], [15, 26], [16, 27], [17, 28], [18, 29], [19, 30], [20, 31], [3, 32], [4, 33], [5, 34], [21, 35], [22, 36], [25, 37], [27, 38], [29, 39], [31, 40], [33, 41], [36, 42], [36, 43], [43, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 2], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 9], [22, 10], [23, 11], [24, 13], [25, 14], [26, 15], [27, 16], [28, 17], [29, 18], [30, 19], [31, 20], [32, 3], [33, 4], [34, 5], [35, 21], [36, 22], [37, 25], [38, 27], [39, 29], [40, 31], [41, 33], [42, 36], [43, 36], [44, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "serialize", "code": "    public int serialize( int offset, byte[] data, EscherSerializationListener listener )\n    {\n        listener.beforeRecordSerialize( offset, getRecordId(), this );\n\n        int pos = offset;\n        LittleEndian.putShort( data, pos, getOptions() );     pos += 2;\n        LittleEndian.putShort( data, pos, getRecordId() );    pos += 2;\n        int remainingBytes =  getRecordSize() - 8;\n\n        LittleEndian.putInt( data, pos, remainingBytes );          pos += 4;\n        LittleEndian.putInt( data, pos, field_1_color1 );          pos += 4;\n        LittleEndian.putInt( data, pos, field_2_color2 );          pos += 4;\n        LittleEndian.putInt( data, pos, field_3_color3 );          pos += 4;\n        LittleEndian.putInt( data, pos, field_4_color4 );          pos += 4;\n        listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );\n        return getRecordSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [8, 24], [8, 25], [9, 26], [11, 27], [13, 28], [15, 29], [17, 30], [2, 31], [19, 32], [20, 33], [21, 34], [22, 35], [23, 36], [31, 37], [31, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 8], [25, 8], [26, 9], [27, 11], [28, 13], [29, 15], [30, 17], [31, 2], [32, 19], [33, 20], [34, 21], [35, 22], [36, 23], [37, 31], [38, 31], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "getRecordSize", "code": "    public int getRecordSize()\n    {\n        return 8 + 4 * 4;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "getRecordId", "code": "    public short getRecordId()\n    {\n        return RECORD_ID;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getRecordName", "code": "    public String getRecordName()\n    {\n        return \"SplitMenuColors\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "toString", "code": "    public String toString()\n    {\n        String nl = System.getProperty(\"line.separator\");\n\n        return getClass().getName() + \":\" + nl +\n                \"  RecordId: 0x\" + HexDump.toHex(RECORD_ID) + nl +\n                \"  Options: 0x\" + HexDump.toHex(getOptions()) + nl +\n                \"  Color1: 0x\" + HexDump.toHex(field_1_color1) + nl +\n                \"  Color2: 0x\" + HexDump.toHex(field_2_color2) + nl +\n                \"  Color3: 0x\" + HexDump.toHex(field_3_color3) + nl +\n                \"  Color4: 0x\" + HexDump.toHex(field_4_color4) + nl +\n                \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [5, 7], [6, 8], [7, 9], [7, 10], [10, 11], [10, 12], [12, 13], [13, 14], [13, 15], [15, 16], [15, 17], [17, 18], [18, 19], [18, 20], [20, 21], [20, 22], [22, 23], [23, 24], [23, 25], [25, 26], [25, 27], [27, 28], [28, 29], [28, 30], [29, 31], [30, 32], [30, 33], [33, 34], [34, 35], [34, 36], [36, 37], [36, 38], [38, 39], [39, 40], [39, 41], [41, 42], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 5], [8, 6], [9, 7], [10, 7], [11, 10], [12, 10], [13, 12], [14, 13], [15, 13], [16, 15], [17, 15], [18, 17], [19, 18], [20, 18], [21, 20], [22, 20], [23, 22], [24, 23], [25, 23], [26, 25], [27, 25], [28, 27], [29, 28], [30, 28], [31, 29], [32, 30], [33, 30], [34, 33], [35, 34], [36, 34], [37, 36], [38, 36], [39, 38], [40, 39], [41, 39], [42, 41], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42]]}, {"function_name": "getColor1", "code": "    public int getColor1()\n    {\n        return field_1_color1;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setColor1", "code": "    public void setColor1( int field_1_color1 )\n    {\n        this.field_1_color1 = field_1_color1;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColor2", "code": "    public int getColor2()\n    {\n        return field_2_color2;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setColor2", "code": "    public void setColor2( int field_2_color2 )\n    {\n        this.field_2_color2 = field_2_color2;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColor3", "code": "    public int getColor3()\n    {\n        return field_3_color3;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setColor3", "code": "    public void setColor3( int field_3_color3 )\n    {\n        this.field_3_color3 = field_3_color3;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getColor4", "code": "    public int getColor4()\n    {\n        return field_4_color4;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setColor4", "code": "    public void setColor4( int field_4_color4 )\n    {\n        this.field_4_color4 = field_4_color4;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "jedit-4.3-4712", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/JEditActionSet.java", "language": "java", "name": "org.gjt.sp.jedit.JEditActionSet", "code": "public abstract class JEditActionSet<E extends JEditAbstractEditAction> implements InputHandlerProvider\n{\n\t//{{{ JEditActionSet constructor\n\t/**\n\t * Creates a new action set.\n\t * @since jEdit 4.3pre13\n\t */\n\tpublic JEditActionSet()\n\t{\n\t\tactions = new Hashtable<String, Object>();\n\t\tloaded = true;\n\t} //}}}\n\t\n\t//{{{ JEditActionSet constructor\n\t/**\n\t * Creates a new action set.\n\t * @param cachedActionNames The list of cached action names\n\t * @param uri The actions.xml URI\n\t * @since jEdit 4.3pre13\n\t */\n\tpublic JEditActionSet(String[] cachedActionNames, URL uri)\n\t{\n\t\tthis();\n\t\tthis.uri = uri;\n\t\tif(cachedActionNames != null)\n\t\t{\n\t\t\tfor(int i = 0; i < cachedActionNames.length; i++)\n\t\t\t{\n\t\t\t\tactions.put(cachedActionNames[i],placeholder);\n\t\t\t}\n\t\t}\n\t\tloaded = false;\n\t} //}}}\n\n\t//{{{ addAction() method\n\t/**\n\t * Adds an action to the action set.\n\t * @param action The action\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic void addAction(E action)\n\t{\n\t\tactions.put(action.getName(),action);\n\t\tif(context != null)\n\t\t{\n\t\t\tcontext.actionNames = null;\n\t\t\tcontext.actionHash.put(action.getName(),this);\n\t\t}\n\t} //}}}\n\n\t//{{{ removeAction() method\n\t/**\n\t * Removes an action from the action set.\n\t * @param name The action name\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic void removeAction(String name)\n\t{\n\t\tactions.remove(name);\n\t\tif(context != null)\n\t\t{\n\t\t\tcontext.actionNames = null;\n\t\t\tcontext.actionHash.remove(name);\n\t\t}\n\t} //}}}\n\n\t//{{{ removeAllActions() method\n\t/**\n\t * Removes all actions from the action set.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic void removeAllActions()\n\t{\n\t\tif(context != null)\n\t\t{\n\t\t\tcontext.actionNames = null;\n\t\t\tString[] actions = getActionNames();\n\t\t\tfor(int i = 0; i < actions.length; i++)\n\t\t\t{\n\t\t\t\tcontext.actionHash.remove(actions[i]);\n\t\t\t}\n\t\t}\n\t\tthis.actions.clear();\n\t} //}}}\n\n\t//{{{ getAction() method\n\t/**\n\t * Returns an action with the specified name.<p>\n\t *\n\t * <b>Deferred loading:</b> this will load the action set if necessary.\n\t *\n\t * @param name The action name\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic E getAction(String name)\n\t{\n\t\tObject obj = actions.get(name);\n\t\tif(obj == placeholder)\n\t\t{\n\t\t\tload();\n\t\t\tobj = actions.get(name);\n\t\t\tif(obj == placeholder)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,this,\"Outdated cache\");\n\t\t\t\tobj = null;\n\t\t\t}\n\t\t}\n\n\t\treturn (E) obj;\n\t} //}}}\n\n\t//{{{ getActionCount() method\n\t/**\n\t * Returns the number of actions in the set.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic int getActionCount()\n\t{\n\t\treturn actions.size();\n\t} //}}}\n\n\t//{{{ getActionNames() method\n\t/**\n\t * Returns an array of all action names in this action set.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic String[] getActionNames()\n\t{\n\t\tString[] retVal = new String[actions.size()];\n\t\tEnumeration e = actions.keys();\n\t\tint i = 0;\n\t\twhile(e.hasMoreElements())\n\t\t{\n\t\t\tretVal[i++] = (String)e.nextElement();\n\t\t}\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ getCacheableActionNames() method\n\t/**\n\t * Returns an array of all action names in this action set that should\n\t * be cached; namely, <code>BeanShellAction</code>s.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic String[] getCacheableActionNames()\n\t{\n\t\tLinkedList<String> retVal = new LinkedList<String>();\n\t\tEnumeration e = actions.elements();\n\t\twhile(e.hasMoreElements())\n\t\t{\n\t\t\tObject obj = e.nextElement();\n\t\t\tif(obj == placeholder)\n\t\t\t{\n\t\t\t\t// ??? this should only be called with\n\t\t\t\t// fully loaded action set\n\t\t\t\tLog.log(Log.WARNING,this,\"Action set not up \"\n\t\t\t\t\t+ \"to date\");\n\t\t\t}\n\t\t\telse if(obj instanceof JEditBeanShellAction)\n\t\t\t\tretVal.add(((JEditBeanShellAction)obj).getName());\n\t\t}\n\t\treturn retVal.toArray(new String[retVal.size()]);\n\t} //}}}\n\t\n\t//{{{ getArray() method\n\t/**\n\t * Returns an empty array E[].\n\t * I know it is bad, if you find a method to instantiate a generic Array,\n\t * tell me\n\t * @param size the size of the array\n\t * @return the empty array\n\t */\n\tprotected abstract E[] getArray(int size);\t\t\n\t//}}}\n\n\t//{{{ getActions() method\n\t/**\n\t * Returns an array of all actions in this action set.<p>\n\t *\n\t * <b>Deferred loading:</b> this will load the action set if necessary.\n\t *\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic E[] getActions()\n\t{\n\t\tload();\n\t\tE[] retVal = getArray(actions.size());\n\t\tEnumeration e = actions.elements();\n\t\tint i = 0;\n\t\twhile(e.hasMoreElements())\n\t\t{\n\t\t\tretVal[i++] = (E) e.nextElement();\n\t\t}\n\t\treturn retVal;\n\t} //}}}\n\n\t//{{{ contains() method\n\t/**\n\t * Returns if this action set contains the specified action.\n\t * @param action The action\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic boolean contains(String action)\n\t{\n\t\tboolean retval = actions.containsKey(action);\n\t\treturn retval;\n//\t\treturn actions.containsKey(action);\n\t} //}}}\n\n\t//{{{ size() method\n\t/**\n\t * Returns the number of actions in this action set.\n\t * @since jEdit 4.2pre2\n\t */\n\tpublic int size()\n\t{\n\t\treturn actions.size();\n\t} //}}}\n\n\t//{{{ load() method\n\t/**\n\t * Forces the action set to be loaded. Plugins and macros should not\n\t * call this method.\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void load()\n\t{\n\t\tif(loaded)\n\t\t\treturn;\n\n\t\tloaded = true;\n\t\t//actions.clear();\n\n\t\tif (uri == null)\n\t\t\treturn;\n\t\ttry\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"Loading actions from \" + uri);\n\t\t\tActionListHandler ah = new ActionListHandler(uri.toString(),this);\n\t\t\tif ( XMLUtilities.parseXML(uri.openStream(), ah))\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, this, \"Unable to parse: \" + uri);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,uri,e);\n\t\t}\n\t} //}}}\n\t\n\t//{{{ createBeanShellAction() method\n\t/**\n\t * This method should be implemented to return an action that will execute\n\t * the given code\n\t * @since 4.3pre13\n\t */\n\tprotected abstract JEditAbstractEditAction createBeanShellAction(String actionName,\n\t\t\t\t\t\t\t\t\t   String code,\n\t\t\t\t\t\t\t\t\t   String selected,\n\t\t\t\t\t\t\t\t\t   boolean noRepeat,\n\t\t\t\t\t\t\t\t\t   boolean noRecord,\n\t\t\t\t\t\t\t\t\t   boolean noRememberLast);\n\t//}}}\n\t\n\t//{{{ initKeyBindings() method\n\t/**\n\t * Initializes the action set's key bindings.\n\t * jEdit calls this method for all registered action sets when the\n\t * user changes key bindings in the <b>Global Options</b> dialog box.<p>\n\t *\n\t * Note if your plugin adds a custom action set to jEdit's collection,\n\t * it must also call this method on the action set after adding it.\n\t *\n\t * @since jEdit 4.2pre1\n\t */\n\tpublic void initKeyBindings()\n\t{\n\t\tAbstractInputHandler inputHandler = getInputHandler();\n\n\t\tIterator<Map.Entry<String,Object>> iter = actions.entrySet().iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tMap.Entry<String,Object> entry = iter.next();\n\t\t\tString name = entry.getKey();\n\n\t\t\tString shortcut1 = getProperty(name + \".shortcut\");\n\t\t\tif(shortcut1 != null)\n\t\t\t\tinputHandler.addKeyBinding(shortcut1,name);\n\n\t\t\tString shortcut2 = getProperty(name + \".shortcut2\");\n\t\t\tif(shortcut2 != null)\n\t\t\t\tinputHandler.addKeyBinding(shortcut2,name);\n\t\t}\n\t} //}}}\n\t\n\t//{{{ getProperty() method\n\t/**\n\t * Returns a property for the given name.\n\t * In jEdit it will returns a jEdit.getProperty(name), but it can\n\t * return something else for a standalone textarea.\n\t * @param name the property name\n\t * @return the property value\n\t * @since 4.3pre13\n\t */\n\tprotected abstract String getProperty(String name);\n\t//}}}\n\n\t//{{{ Package-private members\n\tJEditActionContext context;\n\n\t//{{{ getActionNames() method\n\tvoid getActionNames(List<String> vec)\n\t{\n\t\tEnumeration<String> e = actions.keys();\n\t\twhile(e.hasMoreElements())\n\t\t\tvec.add(e.nextElement());\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Private members\n\tprotected Hashtable<String,Object> actions;\n\tprotected URL uri;\n\tprotected boolean loaded;\n\n\tprotected static final Object placeholder = new Object();", "functions": [{"function_name": "addAction", "code": "\tpublic void addAction(E action)\n\t{\n\t\tactions.put(action.getName(),action);\n\t\tif(context != null)\n\t\t{\n\t\t\tcontext.actionNames = null;\n\t\t\tcontext.actionHash.put(action.getName(),this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 7], [1, 8], [7, 9], [8, 10], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [7, 1], [8, 1], [9, 7], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "removeAction", "code": "\tpublic void removeAction(String name)\n\t{\n\t\tactions.remove(name);\n\t\tif(context != null)\n\t\t{\n\t\t\tcontext.actionNames = null;\n\t\t\tcontext.actionHash.remove(name);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [1, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 1], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "removeAllActions", "code": "\tpublic void removeAllActions()\n\t{\n\t\tif(context != null)\n\t\t{\n\t\t\tcontext.actionNames = null;\n\t\t\tString[] actions = getActionNames();\n\t\t\tfor(int i = 0; i < actions.length; i++)\n\t\t\t{\n\t\t\t\tcontext.actionHash.remove(actions[i]);\n\t\t\t}\n\t\t}\n\t\tthis.actions.clear();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "LOOP", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [1, 5], [2, 6], [4, 7], [1, 8], [5, 9], [8, 10], [4, 11], [4, 12], [1, 0], [2, 1], [3, 0], [4, 1], [5, 1], [6, 2], [7, 4], [8, 1], [9, 5], [10, 8], [11, 4], [12, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getAction", "code": "\tpublic E getAction(String name)\n\t{\n\t\tObject obj = actions.get(name);\n\t\tif(obj == placeholder)\n\t\t{\n\t\t\tload();\n\t\t\tobj = actions.get(name);\n\t\t\tif(obj == placeholder)\n\t\t\t{\n\t\t\t\tLog.log(Log.WARNING,this,\"Outdated cache\");\n\t\t\t\tobj = null;\n\t\t\t}\n\t\t}\n\n\t\treturn (E) obj;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [6, 8], [2, 9], [2, 10], [9, 11], [6, 12], [6, 13], [12, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 6], [9, 2], [10, 2], [11, 9], [12, 6], [13, 6], [14, 12], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getActionCount", "code": "\tpublic int getActionCount()\n\t{\n\t\treturn actions.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getActionNames", "code": "\tpublic String[] getActionNames()\n\t{\n\t\tString[] retVal = new String[actions.size()];\n\t\tEnumeration e = actions.keys();\n\t\tint i = 0;\n\t\twhile(e.hasMoreElements())\n\t\t{\n\t\t\tretVal[i++] = (String)e.nextElement();\n\t\t}\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [2, 9], [5, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 2], [10, 5], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "getCacheableActionNames", "code": "\tpublic String[] getCacheableActionNames()\n\t{\n\t\tLinkedList<String> retVal = new LinkedList<String>();\n\t\tEnumeration e = actions.elements();\n\t\twhile(e.hasMoreElements())\n\t\t{\n\t\t\tObject obj = e.nextElement();\n\t\t\tif(obj == placeholder)\n\t\t\t{\n\t\t\t\t// ??? this should only be called with\n\t\t\t\t// fully loaded action set\n\t\t\t\tLog.log(Log.WARNING,this,\"Action set not up \"\n\t\t\t\t\t+ \"to date\");\n\t\t\t}\n\t\t\telse if(obj instanceof JEditBeanShellAction)\n\t\t\t\tretVal.add(((JEditBeanShellAction)obj).getName());\n\t\t}\n\t\treturn retVal.toArray(new String[retVal.size()]);", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [3, 9], [4, 10], [5, 11], [7, 12], [7, 13], [12, 14], [8, 15], [12, 16], [7, 17], [17, 18], [18, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 3], [10, 4], [11, 5], [12, 7], [13, 7], [14, 12], [15, 8], [16, 12], [17, 7], [18, 17], [19, 18], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getArray", "code": "\tprotected abstract E[] getArray(int size);\t\t", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getActions", "code": "\tpublic E[] getActions()\n\t{\n\t\tload();\n\t\tE[] retVal = getArray(actions.size());\n\t\tEnumeration e = actions.elements();\n\t\tint i = 0;\n\t\twhile(e.hasMoreElements())\n\t\t{\n\t\t\tretVal[i++] = (E) e.nextElement();\n\t\t}\n\t\treturn retVal;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [0, 7], [3, 8], [4, 9], [5, 10], [2, 11], [10, 12], [11, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 0], [8, 3], [9, 4], [10, 5], [11, 2], [12, 10], [13, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "contains", "code": "\tpublic boolean contains(String action)\n\t{\n\t\tboolean retval = actions.containsKey(action);\n\t\treturn retval;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "size", "code": "\tpublic int size()\n\t{\n\t\treturn actions.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "load", "code": "\tpublic void load()\n\t{\n\t\tif(loaded)\n\t\t\treturn;\n\n\t\tloaded = true;\n\t\t//actions.clear();\n\n\t\tif (uri == null)\n\t\t\treturn;\n\t\ttry\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,\"Loading actions from \" + uri);\n\t\t\tActionListHandler ah = new ActionListHandler(uri.toString(),this);\n\t\t\tif ( XMLUtilities.parseXML(uri.openStream(), ah))\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, this, \"Unable to parse: \" + uri);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,uri,e);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "IF", "CATCH", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [2, 7], [2, 8], [0, 9], [3, 10], [5, 11], [1, 12], [8, 13], [9, 14], [4, 15], [11, 16], [6, 17], [12, 18], [5, 19], [17, 20], [18, 21], [19, 22], [22, 23], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 2], [8, 2], [9, 0], [10, 3], [11, 5], [12, 1], [13, 8], [14, 9], [15, 4], [16, 11], [17, 6], [18, 12], [19, 5], [20, 17], [21, 18], [22, 19], [23, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "createBeanShellAction", "code": "\tprotected abstract JEditAbstractEditAction createBeanShellAction(String actionName,\n\t\t\t\t\t\t\t\t\t   String code,\n\t\t\t\t\t\t\t\t\t   String selected,\n\t\t\t\t\t\t\t\t\t   boolean noRepeat,\n\t\t\t\t\t\t\t\t\t   boolean noRecord,\n\t\t\t\t\t\t\t\t\t   boolean noRememberLast);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "initKeyBindings", "code": "\tpublic void initKeyBindings()\n\t{\n\t\tAbstractInputHandler inputHandler = getInputHandler();\n\n\t\tIterator<Map.Entry<String,Object>> iter = actions.entrySet().iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tMap.Entry<String,Object> entry = iter.next();\n\t\t\tString name = entry.getKey();\n\n\t\t\tString shortcut1 = getProperty(name + \".shortcut\");\n\t\t\tif(shortcut1 != null)\n\t\t\t\tinputHandler.addKeyBinding(shortcut1,name);\n\n\t\t\tString shortcut2 = getProperty(name + \".shortcut2\");\n\t\t\tif(shortcut2 != null)\n\t\t\t\tinputHandler.addKeyBinding(shortcut2,name);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [5, 13], [7, 14], [11, 15], [5, 16], [13, 17], [6, 18], [7, 19], [14, 20], [8, 21], [9, 22], [10, 23], [18, 24], [21, 25], [24, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 5], [14, 7], [15, 11], [16, 5], [17, 13], [18, 6], [19, 7], [20, 14], [21, 8], [22, 9], [23, 10], [24, 18], [25, 21], [26, 24], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "getProperty", "code": "\tprotected abstract String getProperty(String name);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getActionNames", "code": "\tvoid getActionNames(List<String> vec)\n\t{\n\t\tEnumeration<String> e = actions.keys();\n\t\twhile(e.hasMoreElements())\n\t\t\tvec.add(e.nextElement());", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "JEditActionSet", "code": "\tpublic JEditActionSet()\n\t{\n\t\tactions = new Hashtable<String, Object>();\n\t\tloaded = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "JEditActionSet", "code": "\tpublic JEditActionSet(String[] cachedActionNames, URL uri)\n\t{\n\t\tthis();\n\t\tthis.uri = uri;\n\t\tif(cachedActionNames != null)\n\t\t{\n\t\t\tfor(int i = 0; i < cachedActionNames.length; i++)\n\t\t\t{\n\t\t\t\tactions.put(cachedActionNames[i],placeholder);\n\t\t\t}\n\t\t}\n\t\tloaded = false;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LOOP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [4, 7], [1, 8], [5, 9], [8, 10], [8, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 4], [8, 1], [9, 5], [10, 8], [11, 8], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "xalan-2.7-8205", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xpath/objects/XNull.java", "language": "java", "name": "org.apache.xpath.objects.XNull", "code": "public class XNull extends XNodeSet\n{\n    static final long serialVersionUID = -6841683711458983005L;\n\n  /**\n   * Create an XObject.\n   */\n  public XNull()\n  {\n    super();\n  }\n\n  /**\n   * Tell what kind of class this is.\n   *\n   * @return type CLASS_NULL\n   */\n  public int getType()\n  {\n    return CLASS_NULL;\n  }\n\n  /**\n   * Given a request type, return the equivalent string.\n   * For diagnostic purposes.\n   *\n   * @return type string \"#CLASS_NULL\"\n   */\n  public String getTypeString()\n  {\n    return \"#CLASS_NULL\";\n  }\n\n  /**\n   * Cast result object to a number.\n   * \n   * @return 0.0\n   */\n\n  public double num()\n  {\n    return 0.0;\n  }\n\n  /**\n   * Cast result object to a boolean.\n   *\n   * @return false\n   */\n  public boolean bool()\n  {\n    return false;\n  }\n\n  /**\n   * Cast result object to a string.\n   *\n   * @return empty string \"\"\n   */\n  public String str()\n  {\n    return \"\";\n  }\n\n  /**\n   * Cast result object to a result tree fragment.\n   *\n   * @param support XPath context to use for the conversion\n   *\n   * @return The object as a result tree fragment.\n   */\n  public int rtf(XPathContext support)\n  {\n    return DTM.NULL;\n  }\n\n\n  /**\n   * Tell if two objects are functionally equal.\n   *\n   * @param obj2 Object to compare this to\n   *\n   * @return True if the given object is of type CLASS_NULL\n   */\n  public boolean equals(XObject obj2)\n  {\n    return obj2.getType() == CLASS_NULL;", "functions": [{"function_name": "getType", "code": "  public int getType()\n  {\n    return CLASS_NULL;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getTypeString", "code": "  public String getTypeString()\n  {\n    return \"#CLASS_NULL\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "num", "code": "  public double num()\n  {\n    return 0.0;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "bool", "code": "  public boolean bool()\n  {\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "str", "code": "  public String str()\n  {\n    return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "rtf", "code": "  public int rtf(XPathContext support)\n  {\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "equals", "code": "  public boolean equals(XObject obj2)\n  {\n    return obj2.getType() == CLASS_NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "XNull", "code": "  public XNull()\n  {\n    super();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "camel-1.0-1462", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/view/RouteDotGenerator.java", "language": "java", "name": "org.apache.camel.view.RouteDotGenerator", "code": "public class RouteDotGenerator {\n    private static final transient Log log = LogFactory.getLog(RouteDotGenerator.class);\n    private String file = \"CamelRoutes.dot\";\n\n    public String getFile() {\n        return file;\n    }\n\n    /**\n     * Sets the destination file name to create the destination diagram\n     */\n    public void setFile(String file) {\n        this.file = file;\n    }\n\n    public void drawRoutes(CamelContext context) throws IOException {\n        PrintWriter writer = new PrintWriter(new FileWriter(file));\n        generateFile(writer, context);\n    }\n\n    protected void generateFile(PrintWriter writer, CamelContext context) {\n        writer.println(\"digraph \\\"Camel Routes\\\" {\");\n        writer.println();\n        writer.println(\"label=\\\"Camel Container: \" + context + \"\\\"];\");\n        writer.println();\n        writer.println(\"node [style = \\\"rounded,filled\\\", fillcolor = yellow, fontname=\\\"Helvetica-Oblique\\\"];\");\n        writer.println();\n        printRoutes(writer, context.getRoutes());\n    }\n\n    protected void printRoutes(PrintWriter writer, List<Route> routes) {\n        for (Route r : routes) {\n            Endpoint end = r.getEndpoint();\n            writer.print(end.getEndpointUri());\n            writer.print(\" -> \");\n            writer.print(r);\n            writer.print(\" -> \");\n            if (r instanceof EventDrivenConsumerRoute) {\n                EventDrivenConsumerRoute consumerRoute = (EventDrivenConsumerRoute) r;\n                Processor p = consumerRoute.getProcessor();\n                writer.println(p);", "functions": [{"function_name": "getFile", "code": "    public String getFile() {\n        return file;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFile", "code": "    public void setFile(String file) {\n        this.file = file;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "drawRoutes", "code": "    public void drawRoutes(CamelContext context) throws IOException {\n        PrintWriter writer = new PrintWriter(new FileWriter(file));\n        generateFile(writer, context);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "generateFile", "code": "    protected void generateFile(PrintWriter writer, CamelContext context) {\n        writer.println(\"digraph \\\"Camel Routes\\\" {\");\n        writer.println();\n        writer.println(\"label=\\\"Camel Container: \" + context + \"\\\"];\");\n        writer.println();\n        writer.println(\"node [style = \\\"rounded,filled\\\", fillcolor = yellow, fontname=\\\"Helvetica-Oblique\\\"];\");\n        writer.println();\n        printRoutes(writer, context.getRoutes());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [5, 11], [7, 12], [9, 13], [12, 14], [12, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 5], [12, 7], [13, 9], [14, 12], [15, 12], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "printRoutes", "code": "    protected void printRoutes(PrintWriter writer, List<Route> routes) {\n        for (Route r : routes) {\n            Endpoint end = r.getEndpoint();\n            writer.print(end.getEndpointUri());\n            writer.print(\" -> \");\n            writer.print(r);\n            writer.print(\" -> \");\n            if (r instanceof EventDrivenConsumerRoute) {\n                EventDrivenConsumerRoute consumerRoute = (EventDrivenConsumerRoute) r;\n                Processor p = consumerRoute.getProcessor();\n                writer.println(p);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "IF", "VAR_DECL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [1, 7], [1, 8], [1, 9], [1, 10], [4, 11], [4, 12], [7, 13], [9, 14], [10, 15], [5, 16], [4, 17], [11, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 1], [8, 1], [9, 1], [10, 1], [11, 4], [12, 4], [13, 7], [14, 9], [15, 10], [16, 5], [17, 4], [18, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}], "label": 0}
{"sample_id": "xalan-2.6-7877", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/dom/DupFilterIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.DupFilterIterator", "code": "public final class DupFilterIterator extends DTMAxisIteratorBase {\n\n    /**\n     * Reference to source iterator.\n     */\n    private DTMAxisIterator _source;\n\n    /**\n     * Array to cache all nodes from source.\n     */\n    private IntegerArray _nodes = new IntegerArray();\n\n    /**\n     * Index in _nodes array to current node.\n     */\n    private int _current = 0;\n\n    /**\n     * Cardinality of _nodes array.\n     */\n    private int _nodesSize = 0; \n\n    /**\n     * Last value returned by next().\n     */\n    private int _lastNext = END;\n\n    /**\n     * Temporary variable to store _lastNext.\n     */\n    private int _markedLastNext = END;\n\n    public DupFilterIterator(DTMAxisIterator source) {\n\t_source = source;\n\n\tif (source instanceof KeyIndex) {\n\t    setStartNode(DTMDefaultBase.ROOTNODE);\n\t}\n    }\n    \n    /**\n     * Set the start node for this iterator\n     * @param node The start node\n     * @return A reference to this node iterator\n     */\n    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    if (_source instanceof KeyIndex\n                    && _startNode == DTMDefaultBase.ROOTNODE) {\n\t\treturn this;\n\t    }\n\n\t    if (node != _startNode) {\n\t\t_source.setStartNode(_startNode = node);\n\n\t\t_nodes.clear();\n\t\twhile ((node = _source.next()) != END) {\n\t\t    _nodes.add(node);\n\t\t}\n\t\t_nodes.sort();\n\t\t_nodesSize = _nodes.cardinality();\n\t\t_current = 0;\n\t\t_lastNext = END;\n\t\tresetPosition();\n\t    }\n\t}\n\treturn this;\n    }\n\n    public int next() {\n\twhile (_current < _nodesSize) {\n\t    final int next = _nodes.at(_current++);\n\t    if (next != _lastNext) {\n\t\treturn returnNode(_lastNext = next);\n\t    }\n\t}\n\treturn END;\n    }\n\n    public DTMAxisIterator cloneIterator() {\n\ttry {\n\t    final DupFilterIterator clone =\n\t\t(DupFilterIterator) super.clone();\n\t    clone._nodes = (IntegerArray) _nodes.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;\n\t}\n    }\n\n    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);\n    }\n   \n    public void setMark() {\n\t_markedNode = _current;\n    }\n\n    public void gotoMark() {\n\t_current = _markedNode;\n    }\n\n    public DTMAxisIterator reset() {\n\t_current = 0;\n\t_lastNext = END;\n\treturn resetPosition();", "functions": [{"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    if (_source instanceof KeyIndex\n                    && _startNode == DTMDefaultBase.ROOTNODE) {\n\t\treturn this;\n\t    }\n\n\t    if (node != _startNode) {\n\t\t_source.setStartNode(_startNode = node);\n\n\t\t_nodes.clear();\n\t\twhile ((node = _source.next()) != END) {\n\t\t    _nodes.add(node);\n\t\t}\n\t\t_nodes.sort();\n\t\t_nodesSize = _nodes.cardinality();\n\t\t_current = 0;\n\t\t_lastNext = END;\n\t\tresetPosition();\n\t    }\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "IF", "IF", "BINARY_OP", "BINARY_OP", "LOOP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [4, 8], [5, 9], [7, 10], [7, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 16], [8, 17], [4, 18], [4, 19], [14, 20], [15, 21], [17, 22], [19, 23], [8, 24], [22, 25], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 4], [9, 5], [10, 7], [11, 7], [12, 4], [13, 4], [14, 4], [15, 4], [16, 4], [17, 8], [18, 4], [19, 4], [20, 14], [21, 15], [22, 17], [23, 19], [24, 8], [25, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "next", "code": "    public int next() {\n\twhile (_current < _nodesSize) {\n\t    final int next = _nodes.at(_current++);\n\t    if (next != _lastNext) {\n\t\treturn returnNode(_lastNext = next);\n\t    }\n\t}\n\treturn END;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "BINARY_OP", "IF", "VAR_DECL", "BINARY_OP", "RETURN", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [2, 5], [4, 6], [4, 7], [5, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 2], [4, 2], [5, 2], [6, 4], [7, 4], [8, 5], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "cloneIterator", "code": "    public DTMAxisIterator cloneIterator() {\n\ttry {\n\t    final DupFilterIterator clone =\n\t\t(DupFilterIterator) super.clone();\n\t    clone._nodes = (IntegerArray) _nodes.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "RETURN", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [1, 9], [5, 10], [2, 11], [7, 12], [8, 13], [11, 14], [9, 15], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 1], [10, 5], [11, 2], [12, 7], [13, 8], [14, 11], [15, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setRestartable", "code": "    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_markedNode = _current;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_current = _markedNode;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n\t_current = 0;\n\t_lastNext = END;\n\treturn resetPosition();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 1], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DupFilterIterator", "code": "    public DupFilterIterator(DTMAxisIterator source) {\n\t_source = source;\n\n\tif (source instanceof KeyIndex) {\n\t    setStartNode(DTMDefaultBase.ROOTNODE);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "jedit-4.3-4556", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/search/SearchBar.java", "language": "java", "name": "org.gjt.sp.jedit.search.SearchBar", "code": "public class SearchBar extends JToolBar\n{\n\t//{{{ SearchBar constructor\n\tpublic SearchBar(final View view, boolean temp)\n\t{\n\t\tthis.view = view;\n\n\t\tsetLayout(new BoxLayout(this,BoxLayout.X_AXIS));\n\n\t\tsetFloatable(false);\n\t\tadd(Box.createHorizontalStrut(2));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"view.search.find\"));\n\t\tadd(label);\n\t\t\n\t\tadd(Box.createHorizontalStrut(12));\n\t\t\n\t\tadd(find = new HistoryTextField(\"find\"));\n\t\tfind.setSelectAllOnFocus(true);\n\n\t\tSyntaxStyle style = GUIUtilities.parseStyle(jEdit.getProperty(\"view.style.invalid\"), \"Dialog\", 12);\n\t\terrorBackground = style.getBackgroundColor();\n\t\terrorForeground = style.getForegroundColor();\n\t\tdefaultBackground = find.getBackground();\n\t\tdefaultForeground = find.getForeground();\n\t\tDimension max = find.getPreferredSize();\n\t\tmax.width = Integer.MAX_VALUE;\n\t\tfind.setMaximumSize(max);\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tfind.addKeyListener(new KeyHandler());\n\t\tfind.addActionListener(actionHandler);\n\t\tfind.getDocument().addDocumentListener(new DocumentHandler());\n\n\t\tInsets margin = new Insets(1,1,1,1);\n\n\t\taddSeparator(new Dimension(12, 12));\n\t\t\n\t\tadd(ignoreCase = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.case\")));\n\t\tignoreCase.addActionListener(actionHandler);\n\t\tignoreCase.setMargin(margin);\n\t\tignoreCase.setOpaque(false);\n\t\tignoreCase.setRequestFocusEnabled(false);\n\t\tadd(Box.createHorizontalStrut(2));\n\t\t\n\t\tadd(regexp = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.regexp\")));\n\t\tregexp.addActionListener(actionHandler);\n\t\tregexp.setMargin(margin);\n\t\tregexp.setOpaque(false);\n\t\tregexp.setRequestFocusEnabled(false);\n\t\tadd(Box.createHorizontalStrut(2));\n\t\t\n\t\tadd(hyperSearch = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.hypersearch\")));\n\t\thyperSearch.addActionListener(actionHandler);\n\t\thyperSearch.setMargin(margin);\n\t\thyperSearch.setOpaque(false);\n\t\thyperSearch.setRequestFocusEnabled(false);\n\n\t\tupdate();\n\n\t\t//{{{ Create the timer used by incremental search\n\t\ttimer = new Timer(0,new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tif(!incrementalSearch(searchStart,searchReverse))\n\t\t\t\t{\n\t\t\t\t\tif(!incrementalSearch(\n\t\t\t\t\t\t(searchReverse\n\t\t\t\t\t\t? view.getBuffer().getLength()\n\t\t\t\t\t\t: 0),searchReverse))\n\t\t\t\t\t{\n\t\t\t\t\t\t// not found at all.\n\t\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\t\t\"view.status.search-not-found\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}); //}}}\n\n\t\t// if 'temp' is true, hide search bar after user is done with it\n\t\tthis.isRemovable = temp;\n\n\t\tsetCloseButtonVisibility();\n\t} //}}}\n\n\t//{{{ getField() method\n\tpublic HistoryTextField getField()\n\t{\n\t\treturn find;\n\t} //}}}\n\n\t//{{{ setHyperSearch() method\n\tpublic void setHyperSearch(boolean hyperSearch)\n\t{\n\t\tjEdit.setBooleanProperty(\"view.search.hypersearch.toggle\",hyperSearch);\n\t\tthis.hyperSearch.setSelected(hyperSearch);\n\t} //}}}\n\n\t//{{{ update() method\n\tpublic void update()\n\t{\n\t\tignoreCase.setSelected(SearchAndReplace.getIgnoreCase());\n\t\tregexp.setSelected(SearchAndReplace.getRegexp());\n\t\thyperSearch.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.search.hypersearch.toggle\"));\n\t} //}}}\n\n\t//{{{ propertiesChanged() method\n\tpublic void propertiesChanged()\n\t{\n\t\t// Option may have been changed\n\t\tisRemovable = !(jEdit.getBooleanProperty(\"view.showSearchbar\"));\n\t\t\n\t\tLog.log(Log.DEBUG, this, \"in SearchBar.propertiesChanged(), isRemovable = \" + isRemovable);\n\t\t\n\t\tsetCloseButtonVisibility();\n\t\t\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Instance variables\n\tprivate View view;\n\tprivate HistoryTextField find;\n\tprivate JCheckBox ignoreCase, regexp, hyperSearch;\n\tprivate Timer timer;\n\tprivate boolean wasError;\n\tprivate Color defaultBackground;\n\tprivate Color defaultForeground;\n\tprivate Color errorForeground;\n\tprivate Color errorBackground;\n\t// close button only there if 'isRemovable' is true\n\tprivate RolloverButton close;\n\n\tprivate int searchStart;\n\tprivate boolean searchReverse;\n\tprivate boolean isRemovable;\n\t//}}}\n\n\t//{{{ find() method\n\tprivate void find(boolean reverse)\n\t{\n\t\ttimer.stop();\n\n\t\tString text = find.getText();\n\t\t//{{{ If nothing entered, show search and replace dialog box\n\t\tif(text.length() == 0)\n\t\t{\n\t\t\tjEdit.setBooleanProperty(\"search.hypersearch.toggle\",\n\t\t\t\thyperSearch.isSelected());\n\t\t\tSearchDialog.showSearchDialog(view,null,SearchDialog.CURRENT_BUFFER);\n\t\t} //}}}\n\t\t//{{{ HyperSearch\n\t\telse if(hyperSearch.isSelected())\n\t\t{\n\t\t\tif(isRemovable)\n\t\t\t{\n\t\t\t\tview.removeToolBar(SearchBar.this);\n\t\t\t}\n\t\t\telse\n\t\t\t\tfind.setText(null);\n\n\t\t\tSearchAndReplace.setSearchString(text);\n\t\t\tSearchAndReplace.setSearchFileSet(new CurrentBufferSet());\n\t\t\tSearchAndReplace.hyperSearch(view);\n\t\t} //}}}\n\t\t//{{{ Incremental search\n\t\telse\n\t\t{\n\t\t\t// on enter, start search from end\n\t\t\t// of current match to find next one\n\t\t\tint start;\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\ttextArea.getCaretPosition());\n\t\t\tif(s == null)\n\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\telse if(reverse)\n\t\t\t\tstart = s.getStart();\n\t\t\telse\n\t\t\t\tstart = s.getEnd();\n\n\t\t\tif(!incrementalSearch(start,reverse))\n\t\t\t{\n\t\t\t\t// not found. start from\n\t\t\t\t// beginning\n\t\t\t\tif(!incrementalSearch(reverse\n\t\t\t\t\t? view.getBuffer().getLength()\n\t\t\t\t\t: 0,reverse))\n\t\t\t\t{\n\t\t\t\t\t// not found at all.\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\t\"view.status.search-not-found\"));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// inform user search restarted\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\"view.status.auto-wrap\"));\n\t\t\t\t\t// beep if beep property set\n\t\t\t\t\tif(jEdit.getBooleanProperty(\"search.beepOnSearchAutoWrap\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tgetToolkit().beep();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ incrementalSearch() method\n\tprivate boolean incrementalSearch(int start, boolean reverse)\n\t{\n\t\t/* For example, if the current fileset is a directory,\n\t\t * C+g will find the next match within that fileset.\n\t\t * This can be annoying if you have just done an\n\t\t * incremental search and want the next occurrence\n\t\t * in the current buffer. */\n\t\tSearchAndReplace.setSearchFileSet(new CurrentBufferSet());\n\t\tSearchAndReplace.setSearchString(find.getText());\n\t\tSearchAndReplace.setReverseSearch(reverse);\n\n\t\tboolean ret = false;\n\t\ttry\n\t\t{\n\t\t\tif(SearchAndReplace.find(view,view.getBuffer(),start,false,reverse))\n\t\t\t\tret = true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,e);\n\n\t\t\t// invalid regexp, ignore\n\t\t\t// return true to avoid annoying beeping while\n\t\t\t// typing a re\n\t\t\tret = true;\n\t\t}\n\t\tif (ret)\n\t\t{\n\t\t\tif (wasError)\n\t\t\t{\n\t\t\t\tfind.setForeground(defaultForeground);\n\t\t\t\tfind.setBackground(defaultBackground);\n\t\t\t\twasError = false;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (!wasError)\n\t\t\t{\n\t\t\t\tfind.setForeground(errorForeground);\n\t\t\t\tfind.setBackground(errorBackground);\n\t\t\t\twasError = true;\n\t\t\t}\n\t\t}\n\n\n\t\treturn ret;\n\t} //}}}\n\n\t//{{{ timerIncrementalSearch() method\n\tprivate void timerIncrementalSearch(int start, boolean reverse)\n\t{\n\t\tsearchStart = start;\n\t\tsearchReverse = reverse;\n\n\t\ttimer.stop();\n\t\ttimer.setRepeats(false);\n\t\ttimer.setInitialDelay(150);\n\t\ttimer.start();\n\t} //}}}\n\t\n\t//{{{ setCloseButtonVisibility() method\n\tprivate void setCloseButtonVisibility()\n\t{\n\t\tif(isRemovable)\n\t\t{\n\t\t\tif(close == null)\n\t\t\t{\n\t\t\t\tclose = new RolloverButton(GUIUtilities.loadIcon(\"closebox.gif\"));\n\t\t\t\tclose.addActionListener(new ActionHandler());\n\t\t\t\tclose.setToolTipText(jEdit.getProperty(\n\t\t\t\t\t\"view.search.close-tooltip\"));\n\t\t\t}\n\t\t\tadd(close);\n\t\t}\n\t\telse if(close != null)\n\t\t\tremove(close);\n\t}\n\t//}}}\n\n\t//}}}\n\n\t//{{{ Inner classes\n\n\t//{{{ ActionHandler class\n\tclass ActionHandler implements ActionListener\n\t{\n\t\t//{{{ actionPerformed() method\n\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tObject source = evt.getSource();\n\t\t\tif(source == find)\n\t\t\t\tfind(false);\n\t\t\telse if(source == hyperSearch)\n\t\t\t{\n\t\t\t\tjEdit.setBooleanProperty(\"view.search.hypersearch.toggle\",\n\t\t\t\t\thyperSearch.isSelected());\n\t\t\t\tupdate();\n\t\t\t}\n\t\t\telse if(source == ignoreCase)\n\t\t\t{\n\t\t\t\tSearchAndReplace.setIgnoreCase(ignoreCase\n\t\t\t\t\t.isSelected());\n\t\t\t}\n\t\t\telse if(source == regexp)\n\t\t\t{\n\t\t\t\tSearchAndReplace.setRegexp(regexp\n\t\t\t\t\t.isSelected());\n\t\t\t}\n\t\t\telse if(source == close)\n\t\t\t{\n\t\t\t\tview.removeToolBar(SearchBar.this);\n\t\t\t\tview.getEditPane().focusOnTextArea();\n\t\t\t}\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ DocumentHandler class\n\tclass DocumentHandler implements DocumentListener\n\t{\n\t\t//{{{ insertUpdate() method\n\t\tpublic void insertUpdate(DocumentEvent evt)\n\t\t{\n\t\t\t// on insert, start search from beginning of\n\t\t\t// current match. This will continue to highlight\n\t\t\t// the current match until another match is found\n\t\t\tif(!hyperSearch.isSelected())\n\t\t\t{\n\t\t\t\tint start;\n\t\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\t\ttextArea.getCaretPosition());\n\t\t\t\tif(s == null)\n\t\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\t\telse\n\t\t\t\t\tstart = s.getStart();\n\n\t\t\t\ttimerIncrementalSearch(start,false);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ removeUpdate() method\n\t\tpublic void removeUpdate(DocumentEvent evt)\n\t\t{\n\t\t\t// on backspace, restart from beginning\n\t\t\tif(!hyperSearch.isSelected())\n\t\t\t{\n\t\t\t\tString text = find.getText();\n\t\t\t\tif(text.length() != 0)\n\t\t\t\t{\n\t\t\t\t\t// don't beep if not found.\n\t\t\t\t\t// subsequent beeps are very\n\t\t\t\t\t// annoying when backspacing an\n\t\t\t\t\t// invalid search string.\n\t\t\t\t\tif(regexp.isSelected())\n\t\t\t\t\t{\n\t\t\t\t\t\t// reverse regexp search\n\t\t\t\t\t\t// not supported yet, so\n\t\t\t\t\t\t// 'simulate' with restart\n\t\t\t\t\t\ttimerIncrementalSearch(0,false);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tint start;\n\t\t\t\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\t\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\t\t\t\ttextArea.getCaretPosition());\n\t\t\t\t\t\tif(s == null)\n\t\t\t\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tstart = s.getStart();\n\t\t\t\t\t\ttimerIncrementalSearch(start,true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ changedUpdate() method\n\t\tpublic void changedUpdate(DocumentEvent evt) {}\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ KeyHandler class\n\tclass KeyHandler extends KeyAdapter\n\t{\n\t\tpublic void keyPressed(KeyEvent evt)\n\t\t{\n\t\t\tswitch(evt.getKeyCode())\n\t\t\t{\n\t\t\tcase KeyEvent.VK_ESCAPE:\n\t\t\t\tif(isRemovable)\n\t\t\t\t{\n\t\t\t\t\tview.removeToolBar(SearchBar.this);\n\t\t\t\t}\n\t\t\t\tevt.consume();\n\t\t\t\tview.getEditPane().focusOnTextArea();\n\t\t\t\tbreak;\n\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\tif(evt.isShiftDown())\n\t\t\t\t{\n\t\t\t\t\tevt.consume();\n\t\t\t\t\tfind(true);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ FocusHandler class\n\tclass FocusHandler extends FocusAdapter\n\t{\n\t\tpublic void focusLost(FocusEvent e)\n\t\t{\n\t\t\tgetField().addCurrentToHistory();", "functions": [{"function_name": "getField", "code": "\tpublic HistoryTextField getField()\n\t{\n\t\treturn find;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHyperSearch", "code": "\tpublic void setHyperSearch(boolean hyperSearch)\n\t{\n\t\tjEdit.setBooleanProperty(\"view.search.hypersearch.toggle\",hyperSearch);\n\t\tthis.hyperSearch.setSelected(hyperSearch);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "update", "code": "\tpublic void update()\n\t{\n\t\tignoreCase.setSelected(SearchAndReplace.getIgnoreCase());\n\t\tregexp.setSelected(SearchAndReplace.getRegexp());\n\t\thyperSearch.setSelected(jEdit.getBooleanProperty(\n\t\t\t\"view.search.hypersearch.toggle\"));", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [3, 6], [4, 7], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 3], [7, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "propertiesChanged", "code": "\tpublic void propertiesChanged()\n\t{\n\t\t// Option may have been changed\n\t\tisRemovable = !(jEdit.getBooleanProperty(\"view.showSearchbar\"));\n\t\t\n\t\tLog.log(Log.DEBUG, this, \"in SearchBar.propertiesChanged(), isRemovable = \" + isRemovable);\n\t\t\n\t\tsetCloseButtonVisibility();", "ast_nodes": ["FUNC_DECL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "find", "code": "\tprivate void find(boolean reverse)\n\t{\n\t\ttimer.stop();\n\n\t\tString text = find.getText();\n\t\t//{{{ If nothing entered, show search and replace dialog box\n\t\tif(text.length() == 0)\n\t\t{\n\t\t\tjEdit.setBooleanProperty(\"search.hypersearch.toggle\",\n\t\t\t\thyperSearch.isSelected());\n\t\t\tSearchDialog.showSearchDialog(view,null,SearchDialog.CURRENT_BUFFER);\n\t\t} //}}}\n\t\t//{{{ HyperSearch\n\t\telse if(hyperSearch.isSelected())\n\t\t{\n\t\t\tif(isRemovable)\n\t\t\t{\n\t\t\t\tview.removeToolBar(SearchBar.this);\n\t\t\t}\n\t\t\telse\n\t\t\t\tfind.setText(null);\n\n\t\t\tSearchAndReplace.setSearchString(text);\n\t\t\tSearchAndReplace.setSearchFileSet(new CurrentBufferSet());\n\t\t\tSearchAndReplace.hyperSearch(view);\n\t\t} //}}}\n\t\t//{{{ Incremental search\n\t\telse\n\t\t{\n\t\t\t// on enter, start search from end\n\t\t\t// of current match to find next one\n\t\t\tint start;\n\t\t\tJEditTextArea textArea = view.getTextArea();\n\t\t\tSelection s = textArea.getSelectionAtOffset(\n\t\t\t\ttextArea.getCaretPosition());\n\t\t\tif(s == null)\n\t\t\t\tstart = textArea.getCaretPosition();\n\t\t\telse if(reverse)\n\t\t\t\tstart = s.getStart();\n\t\t\telse\n\t\t\t\tstart = s.getEnd();\n\n\t\t\tif(!incrementalSearch(start,reverse))\n\t\t\t{\n\t\t\t\t// not found. start from\n\t\t\t\t// beginning\n\t\t\t\tif(!incrementalSearch(reverse\n\t\t\t\t\t? view.getBuffer().getLength()\n\t\t\t\t\t: 0,reverse))\n\t\t\t\t{\n\t\t\t\t\t// not found at all.\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\t\"view.status.search-not-found\"));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// inform user search restarted\n\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\tjEdit.getProperty(\"view.status.auto-wrap\"));\n\t\t\t\t\t// beep if beep property set\n\t\t\t\t\tif(jEdit.getBooleanProperty(\"search.beepOnSearchAutoWrap\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tgetToolkit().beep();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [0, 6], [4, 7], [5, 8], [5, 9], [2, 10], [4, 11], [4, 12], [4, 13], [4, 14], [4, 15], [4, 16], [1, 17], [1, 18], [11, 19], [12, 20], [12, 21], [4, 22], [4, 23], [4, 24], [17, 25], [18, 26], [18, 27], [11, 28], [12, 29], [21, 30], [13, 31], [14, 32], [23, 33], [16, 34], [28, 35], [20, 36], [20, 37], [29, 38], [31, 39], [34, 40], [16, 41], [28, 42], [35, 43], [36, 44], [37, 45], [42, 46], [28, 47], [28, 48], [43, 49], [43, 50], [46, 51], [47, 52], [48, 53], [50, 54], [42, 55], [52, 56], [53, 57], [55, 58], [56, 59], [57, 60], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 0], [7, 4], [8, 5], [9, 5], [10, 2], [11, 4], [12, 4], [13, 4], [14, 4], [15, 4], [16, 4], [17, 1], [18, 1], [19, 11], [20, 12], [21, 12], [22, 4], [23, 4], [24, 4], [25, 17], [26, 18], [27, 18], [28, 11], [29, 12], [30, 21], [31, 13], [32, 14], [33, 23], [34, 16], [35, 28], [36, 20], [37, 20], [38, 29], [39, 31], [40, 34], [41, 16], [42, 28], [43, 35], [44, 36], [45, 37], [46, 42], [47, 28], [48, 28], [49, 43], [50, 43], [51, 46], [52, 47], [53, 48], [54, 50], [55, 42], [56, 52], [57, 53], [58, 55], [59, 56], [60, 57], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60]]}, {"function_name": "incrementalSearch", "code": "\tprivate boolean incrementalSearch(int start, boolean reverse)\n\t{\n\t\t/* For example, if the current fileset is a directory,\n\t\t * C+g will find the next match within that fileset.\n\t\t * This can be annoying if you have just done an\n\t\t * incremental search and want the next occurrence\n\t\t * in the current buffer. */\n\t\tSearchAndReplace.setSearchFileSet(new CurrentBufferSet());\n\t\tSearchAndReplace.setSearchString(find.getText());\n\t\tSearchAndReplace.setReverseSearch(reverse);\n\n\t\tboolean ret = false;\n\t\ttry\n\t\t{\n\t\t\tif(SearchAndReplace.find(view,view.getBuffer(),start,false,reverse))\n\t\t\t\tret = true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.DEBUG,this,e);\n\n\t\t\t// invalid regexp, ignore\n\t\t\t// return true to avoid annoying beeping while\n\t\t\t// typing a re\n\t\t\tret = true;\n\t\t}\n\t\tif (ret)\n\t\t{\n\t\t\tif (wasError)\n\t\t\t{\n\t\t\t\tfind.setForeground(defaultForeground);\n\t\t\t\tfind.setBackground(defaultBackground);\n\t\t\t\twasError = false;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (!wasError)\n\t\t\t{\n\t\t\t\tfind.setForeground(errorForeground);\n\t\t\t\tfind.setBackground(errorBackground);\n\t\t\t\twasError = true;\n\t\t\t}\n\t\t}\n\n\n\t\treturn ret;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "TRY", "VAR_DECL", "PARAM", "PARAM", "CATCH", "IF", "CALL", "CALL", "CALL", "IF", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [3, 7], [3, 8], [0, 9], [0, 10], [0, 11], [2, 12], [2, 13], [8, 14], [4, 15], [10, 16], [11, 17], [7, 18], [7, 19], [8, 20], [14, 21], [14, 22], [18, 23], [20, 24], [12, 25], [12, 26], [12, 27], [13, 28], [13, 29], [13, 30], [25, 31], [28, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 3], [8, 3], [9, 0], [10, 0], [11, 0], [12, 2], [13, 2], [14, 8], [15, 4], [16, 10], [17, 11], [18, 7], [19, 7], [20, 8], [21, 14], [22, 14], [23, 18], [24, 20], [25, 12], [26, 12], [27, 12], [28, 13], [29, 13], [30, 13], [31, 25], [32, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "timerIncrementalSearch", "code": "\tprivate void timerIncrementalSearch(int start, boolean reverse)\n\t{\n\t\tsearchStart = start;\n\t\tsearchReverse = reverse;\n\n\t\ttimer.stop();\n\t\ttimer.setRepeats(false);\n\t\ttimer.setInitialDelay(150);\n\t\ttimer.start();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setCloseButtonVisibility", "code": "\tprivate void setCloseButtonVisibility()\n\t{\n\t\tif(isRemovable)\n\t\t{\n\t\t\tif(close == null)\n\t\t\t{\n\t\t\t\tclose = new RolloverButton(GUIUtilities.loadIcon(\"closebox.gif\"));\n\t\t\t\tclose.addActionListener(new ActionHandler());\n\t\t\t\tclose.setToolTipText(jEdit.getProperty(\n\t\t\t\t\t\"view.search.close-tooltip\"));\n\t\t\t}\n\t\t\tadd(close);\n\t\t}\n\t\telse if(close != null)\n\t\t\tremove(close);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [2, 5], [3, 6], [1, 7], [4, 8], [8, 9], [4, 10], [4, 11], [4, 12], [10, 13], [11, 14], [12, 15], [13, 16], [15, 17], [17, 18], [1, 0], [2, 1], [3, 2], [4, 1], [5, 2], [6, 3], [7, 1], [8, 4], [9, 8], [10, 4], [11, 4], [12, 4], [13, 10], [14, 11], [15, 12], [16, 13], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "SearchBar", "code": "\tpublic SearchBar(final View view, boolean temp)\n\t{\n\t\tthis.view = view;\n\n\t\tsetLayout(new BoxLayout(this,BoxLayout.X_AXIS));\n\n\t\tsetFloatable(false);\n\t\tadd(Box.createHorizontalStrut(2));\n\n\t\tJLabel label = new JLabel(jEdit.getProperty(\"view.search.find\"));\n\t\tadd(label);\n\t\t\n\t\tadd(Box.createHorizontalStrut(12));\n\t\t\n\t\tadd(find = new HistoryTextField(\"find\"));\n\t\tfind.setSelectAllOnFocus(true);\n\n\t\tSyntaxStyle style = GUIUtilities.parseStyle(jEdit.getProperty(\"view.style.invalid\"), \"Dialog\", 12);\n\t\terrorBackground = style.getBackgroundColor();\n\t\terrorForeground = style.getForegroundColor();\n\t\tdefaultBackground = find.getBackground();\n\t\tdefaultForeground = find.getForeground();\n\t\tDimension max = find.getPreferredSize();\n\t\tmax.width = Integer.MAX_VALUE;\n\t\tfind.setMaximumSize(max);\n\t\tActionHandler actionHandler = new ActionHandler();\n\t\tfind.addKeyListener(new KeyHandler());\n\t\tfind.addActionListener(actionHandler);\n\t\tfind.getDocument().addDocumentListener(new DocumentHandler());\n\n\t\tInsets margin = new Insets(1,1,1,1);\n\n\t\taddSeparator(new Dimension(12, 12));\n\t\t\n\t\tadd(ignoreCase = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.case\")));\n\t\tignoreCase.addActionListener(actionHandler);\n\t\tignoreCase.setMargin(margin);\n\t\tignoreCase.setOpaque(false);\n\t\tignoreCase.setRequestFocusEnabled(false);\n\t\tadd(Box.createHorizontalStrut(2));\n\t\t\n\t\tadd(regexp = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.regexp\")));\n\t\tregexp.addActionListener(actionHandler);\n\t\tregexp.setMargin(margin);\n\t\tregexp.setOpaque(false);\n\t\tregexp.setRequestFocusEnabled(false);\n\t\tadd(Box.createHorizontalStrut(2));\n\t\t\n\t\tadd(hyperSearch = new JCheckBox(jEdit.getProperty(\n\t\t\t\"search.hypersearch\")));\n\t\thyperSearch.addActionListener(actionHandler);\n\t\thyperSearch.setMargin(margin);\n\t\thyperSearch.setOpaque(false);\n\t\thyperSearch.setRequestFocusEnabled(false);\n\n\t\tupdate();\n\n\t\t//{{{ Create the timer used by incremental search\n\t\ttimer = new Timer(0,new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent evt)\n\t\t\t{\n\t\t\t\tif(!incrementalSearch(searchStart,searchReverse))\n\t\t\t\t{\n\t\t\t\t\tif(!incrementalSearch(\n\t\t\t\t\t\t(searchReverse\n\t\t\t\t\t\t? view.getBuffer().getLength()\n\t\t\t\t\t\t: 0),searchReverse))\n\t\t\t\t\t{\n\t\t\t\t\t\t// not found at all.\n\t\t\t\t\t\tview.getStatus().setMessageAndClear(\n\t\t\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\t\t\"view.status.search-not-found\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}); //}}}\n\n\t\t// if 'temp' is true, hide search bar after user is done with it\n\t\tthis.isRemovable = temp;\n\n\t\tsetCloseButtonVisibility();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "FUNC_DECL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25], [0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37], [0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [10, 47], [12, 48], [13, 49], [16, 50], [17, 51], [18, 52], [19, 53], [22, 54], [23, 55], [24, 56], [25, 57], [28, 58], [29, 59], [1, 60], [30, 61], [32, 62], [2, 63], [3, 64], [35, 65], [36, 66], [37, 67], [38, 68], [4, 69], [39, 70], [40, 71], [41, 72], [5, 73], [43, 74], [44, 75], [45, 76], [47, 77], [47, 78], [50, 79], [51, 80], [54, 81], [55, 82], [58, 83], [59, 84], [59, 85], [60, 86], [60, 87], [60, 88], [60, 89], [61, 90], [69, 91], [69, 92], [69, 93], [71, 94], [72, 95], [73, 96], [74, 97], [77, 98], [79, 99], [81, 100], [83, 101], [93, 102], [94, 103], [96, 104], [98, 105], [98, 106], [99, 107], [100, 108], [101, 109], [105, 110], [105, 111], [111, 112], [112, 113], [111, 114], [113, 115], [113, 116], [114, 117], [116, 118], [117, 119], [119, 120], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 0], [23, 0], [24, 0], [25, 0], [26, 0], [27, 0], [28, 0], [29, 0], [30, 0], [31, 0], [32, 0], [33, 0], [34, 0], [35, 0], [36, 0], [37, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 0], [46, 0], [47, 10], [48, 12], [49, 13], [50, 16], [51, 17], [52, 18], [53, 19], [54, 22], [55, 23], [56, 24], [57, 25], [58, 28], [59, 29], [60, 1], [61, 30], [62, 32], [63, 2], [64, 3], [65, 35], [66, 36], [67, 37], [68, 38], [69, 4], [70, 39], [71, 40], [72, 41], [73, 5], [74, 43], [75, 44], [76, 45], [77, 47], [78, 47], [79, 50], [80, 51], [81, 54], [82, 55], [83, 58], [84, 59], [85, 59], [86, 60], [87, 60], [88, 60], [89, 60], [90, 61], [91, 69], [92, 69], [93, 69], [94, 71], [95, 72], [96, 73], [97, 74], [98, 77], [99, 79], [100, 81], [101, 83], [102, 93], [103, 94], [104, 96], [105, 98], [106, 98], [107, 99], [108, 100], [109, 101], [110, 105], [111, 105], [112, 111], [113, 112], [114, 111], [115, 113], [116, 113], [117, 114], [118, 116], [119, 117], [120, 119], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120]]}], "label": 0}
{"sample_id": "jedit-4.0-3970", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "org/gjt/sp/jedit/pluginmgr/Roster.java", "language": "java", "name": "org.gjt.sp.jedit.pluginmgr.Roster", "code": "class Roster\n{\n\t//{{{ Roster constructor\n\tRoster()\n\t{\n\t\toperations = new Vector();\n\t} //}}}\n\n\t//{{{ addOperation() method\n\tvoid addOperation(Operation op)\n\t{\n\t\tfor(int i = 0; i < operations.size(); i++)\n\t\t{\n\t\t\tif(operations.elementAt(i).equals(op))\n\t\t\t\treturn;\n\t\t}\n\n\t\toperations.addElement(op);\n\t} //}}}\n\n\t//{{{ getOperationCount() method\n\tint getOperationCount()\n\t{\n\t\treturn operations.size();\n\t} //}}}\n\n\t//{{{ isEmpty() method\n\tboolean isEmpty()\n\t{\n\t\treturn operations.size() == 0;\n\t} //}}}\n\n\t//{{{ performOperations() method\n\tboolean performOperations(PluginManagerProgress progress)\n\t{\n\t\tfor(int i = 0; i < operations.size(); i++)\n\t\t{\n\t\t\tOperation op = (Operation)operations.elementAt(i);\n\t\t\tif(op.perform(progress))\n\t\t\t\tprogress.done(true);\n\t\t\telse\n\t\t\t{\n\t\t\t\tprogress.done(false);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif(Thread.interrupted())\n\t\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate Vector operations;\n\n\tstatic interface Operation\n\t{\n\t\tboolean perform(PluginManagerProgress progress);\n\t\tboolean equals(Object o);\n\t} //}}}\n\n\t//{{{ Remove class\n\tstatic class Remove implements Operation\n\t{\n\t\tRemove(String plugin)\n\t\t{\n\t\t\tthis.plugin = plugin;\n\t\t}\n\n\t\tpublic boolean perform(PluginManagerProgress progress)\n\t\t{\n\t\t\tprogress.removing(MiscUtilities.getFileName(plugin));\n\n\t\t\t// close JAR file\n\t\t\tEditPlugin.JAR jar = jEdit.getPluginJAR(plugin);\n\t\t\tif(jar != null)\n\t\t\t\tjar.getClassLoader().closeZipFile();\n\n\t\t\t// move JAR first\n\t\t\tFile jarFile = new File(plugin);\n\t\t\tFile srcFile = new File(plugin.substring(0,plugin.length() - 4));\n\n\t\t\tboolean ok = true;\n\t\t\tok &= deleteRecursively(jarFile);\n\n\t\t\tif(srcFile.exists())\n\t\t\t\tok &= deleteRecursively(srcFile);\n\n\t\t\tString[] args = { plugin };\n\t\t\tif(!ok)\n\t\t\t\tGUIUtilities.error(progress,\"plugin-manager.remove-failed\",args);\n\t\t\treturn ok;\n\t\t}\n\n\t\tpublic boolean equals(Object o)\n\t\t{\n\t\t\tif(o instanceof Remove\n\t\t\t\t&& ((Remove)o).plugin.equals(plugin))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\n\t\t// private members\n\t\tprivate String plugin;\n\n\t\tprivate boolean deleteRecursively(File file)\n\t\t{\n\t\t\tLog.log(Log.NOTICE,this,\"Deleting \" + file + \" recursively\");\n\n\t\t\tboolean ok = true;\n\n\t\t\tif(file.isDirectory())\n\t\t\t{\n\t\t\t\tString path = file.getPath();\n\t\t\t\tString[] children = file.list();\n\t\t\t\tfor(int i = 0; i < children.length; i++)\n\t\t\t\t{\n\t\t\t\t\tok &= deleteRecursively(new File(path,children[i]));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tok &= file.delete();\n\n\t\t\treturn ok;\n\t\t}\n\t} //}}}\n\n\t//{{{ Install class\n\tstatic class Install implements Operation\n\t{\n\t\tInstall(String url, String installDirectory)\n\t\t{\n\t\t\t// catch those hooligans passing null urls\n\t\t\tif(url == null)\n\t\t\t\tthrow new NullPointerException();\n\n\t\t\tthis.url = url;\n\t\t\tthis.installDirectory = installDirectory;\n\t\t}\n\n\t\tpublic boolean perform(final PluginManagerProgress progress)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString fileName = MiscUtilities.getFileName(url);\n\t\t\t\tprogress.downloading(fileName);\n\t\t\t\tString path = download(progress,fileName,url);\n\t\t\t\tif(path == null)\n\t\t\t\t{\n\t\t\t\t\t// interrupted download\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tprogress.installing(fileName);\n\t\t\t\tinstall(progress,path,installDirectory);\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch(InterruptedIOException iio)\n\t\t\t{\n\t\t\t\t// do nothing, user clicked 'Stop'\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tcatch(final IOException io)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,io);\n\n\t\t\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tString[] args = { io.getMessage() };\n\t\t\t\t\t\tGUIUtilities.error(null,\"ioerror\",args);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR,this,e);\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean equals(Object o)\n\t\t{\n\t\t\tif(o instanceof Install\n\t\t\t\t&& ((Install)o).url.equals(url))\n\t\t\t{\n\t\t\t\t/* even if installDirectory is different */\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\n\t\t// private members\n\t\tprivate String url;\n\t\tprivate String installDirectory;\n\n\t\tprivate String download(PluginManagerProgress progress,\n\t\t\tString fileName, String url) throws Exception\n\t\t{\n\t\t\tURLConnection conn = new URL(url).openConnection();\n\t\t\tprogress.setMaximum(Math.max(0,conn.getContentLength()));\n\n\t\t\tString path = MiscUtilities.constructPath(getDownloadDir(),fileName);\n\n\t\t\tif(!copy(progress,conn.getInputStream(),\n\t\t\t\tnew FileOutputStream(path),true,true))\n\t\t\t\treturn null;\n\n\t\t\treturn path;\n\t\t}\n\n\t\tprivate boolean install(PluginManagerProgress progress,\n\t\t\tString path, String dir) throws Exception\n\t\t{\n\t\t\tprogress.setMaximum(1);\n\n\t\t\tZipFile zipFile = new ZipFile(path);\n\t\t\tEnumeration enum1 = zipFile.entries();\n\t\t\twhile(enum1.hasMoreElements())\n\t\t\t{\n\t\t\t\tZipEntry entry = (ZipEntry)enum1.nextElement();\n\t\t\t\tString name = entry.getName().replace('/',File.separatorChar);\n\t\t\t\tFile file = new File(dir,name);\n\t\t\t\tif(entry.isDirectory())\n\t\t\t\t\tfile.mkdirs();\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tnew File(file.getParent()).mkdirs();\n\t\t\t\t\tcopy(progress,zipFile.getInputStream(entry),\n\t\t\t\t\t\tnew FileOutputStream(file),false,false);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tnew File(path).delete();\n\n\t\t\tprogress.setValue(1);\n\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate boolean copy(PluginManagerProgress progress,\n\t\t\tInputStream in, OutputStream out, boolean canStop,\n\t\t\tboolean doProgress) throws Exception\n\t\t{\n\t\t\tin = new BufferedInputStream(in);\n\t\t\tout = new BufferedOutputStream(out);\n\n\t\t\tbyte[] buf = new byte[4096];\n\t\t\tint copied = 0;\nloop:\t\t\tfor(;;)\n\t\t\t{\n\t\t\t\tint count = in.read(buf,0,buf.length);\n\t\t\t\tif(count == -1)\n\t\t\t\t\tbreak loop;\n\n\t\t\t\tif(doProgress)\n\t\t\t\t{\n\t\t\t\t\tcopied += count;\n\t\t\t\t\tprogress.setValue(copied);\n\t\t\t\t}\n\n\t\t\t\tout.write(buf,0,count);\n\t\t\t\tif(canStop && Thread.interrupted())\n\t\t\t\t{\n\t\t\t\t\tin.close();\n\t\t\t\t\tout.close();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tin.close();\n\t\t\tout.close();\n\t\t\treturn true;\n\t\t}\n\n\t\tstatic File downloadDir;\n\n\t\tstatic String getDownloadDir()\n\t\t{\n\t\t\tif(downloadDir == null)\n\t\t\t{\n\t\t\t\tString settings = jEdit.getSettingsDirectory();\n\t\t\t\tif(settings == null)\n\t\t\t\t\tsettings = System.getProperty(\"user.home\");\n\t\t\t\tdownloadDir = new File(MiscUtilities.constructPath(\n\t\t\t\t\tsettings,\"PluginManager.download\"));\n\t\t\t\tdownloadDir.mkdirs();\n\t\t\t}\n\n\t\t\treturn downloadDir.getPath();", "functions": [{"function_name": "addOperation", "code": "\tvoid addOperation(Operation op)\n\t{\n\t\tfor(int i = 0; i < operations.size(); i++)\n\t\t{\n\t\t\tif(operations.elementAt(i).equals(op))\n\t\t\t\treturn;\n\t\t}\n\n\t\toperations.addElement(op);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL", "BINARY_OP", "IF", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [5, 7], [5, 8], [1, 9], [8, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 5], [8, 5], [9, 1], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getOperationCount", "code": "\tint getOperationCount()\n\t{\n\t\treturn operations.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isEmpty", "code": "\tboolean isEmpty()\n\t{\n\t\treturn operations.size() == 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "performOperations", "code": "\tboolean performOperations(PluginManagerProgress progress)\n\t{\n\t\tfor(int i = 0; i < operations.size(); i++)\n\t\t{\n\t\t\tOperation op = (Operation)operations.elementAt(i);\n\t\t\tif(op.perform(progress))\n\t\t\t\tprogress.done(true);\n\t\t\telse\n\t\t\t{\n\t\t\t\tprogress.done(false);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif(Thread.interrupted())\n\t\t\t\treturn false;\n\t\t}\n\n\t\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [2, 8], [5, 9], [6, 10], [6, 11], [7, 12], [2, 13], [10, 14], [7, 15], [7, 16], [15, 17], [7, 18], [16, 19], [8, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 2], [9, 5], [10, 6], [11, 6], [12, 7], [13, 2], [14, 10], [15, 7], [16, 7], [17, 15], [18, 7], [19, 16], [20, 8], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "Roster", "code": "\tRoster()\n\t{\n\t\toperations = new Vector();", "ast_nodes": ["FUNC_DECL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "poi-1.5-5154", "repo": "poi-1.5", "project": "poi", "version": "1.5", "file_path": "org/apache/poi/poifs/storage/SmallDocumentBlock.java", "language": "java", "name": "org.apache.poi.poifs.storage.SmallDocumentBlock", "code": "public class SmallDocumentBlock\n    implements BlockWritable, ListManagedBlock\n{\n    private byte[]            _data;\n    private static final byte _default_fill         = ( byte ) 0xff;\n    private static final int  _block_size           = 64;\n    private static final int  _blocks_per_big_block =\n        POIFSConstants.BIG_BLOCK_SIZE / _block_size;\n\n    private SmallDocumentBlock(final byte [] data, final int index)\n    {\n        this();\n        System.arraycopy(data, index * _block_size, _data, 0, _block_size);\n    }\n\n    private SmallDocumentBlock()\n    {\n        _data = new byte[ _block_size ];\n    }\n\n    /**\n     * convert a single long array into an array of SmallDocumentBlock\n     * instances\n     *\n     * @param array the byte array to be converted\n     * @param size the intended size of the array (which may be smaller)\n     *\n     * @return an array of SmallDocumentBlock instances, filled from\n     *         the array\n     */\n\n    public static SmallDocumentBlock [] convert(final byte [] array,\n                                                final int size)\n    {\n        SmallDocumentBlock[] rval   =\n            new SmallDocumentBlock[ (size + _block_size - 1) / _block_size ];\n        int                  offset = 0;\n\n        for (int k = 0; k < rval.length; k++)\n        {\n            rval[ k ] = new SmallDocumentBlock();\n            if (offset < array.length)\n            {\n                int length = Math.min(_block_size, array.length - offset);\n\n                System.arraycopy(array, offset, rval[ k ]._data, 0, length);\n                if (length != _block_size)\n                {\n                    Arrays.fill(rval[ k ]._data, length, _block_size,\n                                _default_fill);\n                }\n            }\n            else\n            {\n                Arrays.fill(rval[ k ]._data, _default_fill);\n            }\n            offset += _block_size;\n        }\n        return rval;\n    }\n\n    /**\n     * fill out a List of SmallDocumentBlocks so that it fully occupies\n     * a set of big blocks\n     *\n     * @param blocks the List to be filled out\n     *\n     * @return number of big blocks the list encompasses\n     */\n\n    public static int fill(final List blocks)\n    {\n        int count           = blocks.size();\n        int big_block_count = (count + _blocks_per_big_block - 1)\n                              / _blocks_per_big_block;\n        int full_count      = big_block_count * _blocks_per_big_block;\n\n        for (; count < full_count; count++)\n        {\n            blocks.add(makeEmptySmallDocumentBlock());\n        }\n        return big_block_count;\n    }\n\n    /**\n     * Factory for creating SmallDocumentBlocks from DocumentBlocks\n     *\n     * @param store the original DocumentBlocks\n     * @param size the total document size\n     *\n     * @return an array of new SmallDocumentBlocks instances\n     *\n     * @exception IOException on errors reading from the DocumentBlocks\n     * @exception ArrayIndexOutOfBoundsException if, somehow, the store\n     *            contains less data than size indicates\n     */\n\n    public static SmallDocumentBlock [] convert(final BlockWritable [] store,\n                                                final int size)\n        throws IOException, ArrayIndexOutOfBoundsException\n    {\n        ByteArrayOutputStream stream = new ByteArrayOutputStream();\n\n        for (int j = 0; j < store.length; j++)\n        {\n            store[ j ].writeBlocks(stream);\n        }\n        byte[]               data = stream.toByteArray();\n        SmallDocumentBlock[] rval =\n            new SmallDocumentBlock[ convertToBlockCount(size) ];\n\n        for (int index = 0; index < rval.length; index++)\n        {\n            rval[ index ] = new SmallDocumentBlock(data, index);\n        }\n        return rval;\n    }\n\n    /**\n     * create a list of SmallDocumentBlock's from raw data\n     *\n     * @param blocks the raw data containing the SmallDocumentBlock\n     *               data\n     *\n     * @return a List of SmallDocumentBlock's extracted from the input\n     *\n     * @exception IOException\n     */\n\n    public static List extract(ListManagedBlock [] blocks)\n        throws IOException\n    {\n        List sdbs = new ArrayList();\n\n        for (int j = 0; j < blocks.length; j++)\n        {\n            byte[] data = blocks[ j ].getData();\n\n            for (int k = 0; k < _blocks_per_big_block; k++)\n            {\n                sdbs.add(new SmallDocumentBlock(data, k));\n            }\n        }\n        return sdbs;\n    }\n\n    /**\n     * read data from an array of SmallDocumentBlocks\n     *\n     * @param blocks the blocks to read from\n     * @param buffer the buffer to write the data into\n     * @param offset the offset into the array of blocks to read from\n     */\n\n    public static void read(final BlockWritable [] blocks,\n                            final byte [] buffer, final int offset)\n    {\n        int firstBlockIndex  = offset / _block_size;\n        int firstBlockOffset = offset % _block_size;\n        int lastBlockIndex   = (offset + buffer.length - 1) / _block_size;\n\n        if (firstBlockIndex == lastBlockIndex)\n        {\n            System.arraycopy(\n                (( SmallDocumentBlock ) blocks[ firstBlockIndex ])._data,\n                firstBlockOffset, buffer, 0, buffer.length);\n        }\n        else\n        {\n            int buffer_offset = 0;\n\n            System.arraycopy(\n                (( SmallDocumentBlock ) blocks[ firstBlockIndex ])._data,\n                firstBlockOffset, buffer, buffer_offset,\n                _block_size - firstBlockOffset);\n            buffer_offset += _block_size - firstBlockOffset;\n            for (int j = firstBlockIndex + 1; j < lastBlockIndex; j++)\n            {\n                System.arraycopy((( SmallDocumentBlock ) blocks[ j ])._data,\n                                 0, buffer, buffer_offset, _block_size);\n                buffer_offset += _block_size;\n            }\n            System.arraycopy(\n                (( SmallDocumentBlock ) blocks[ lastBlockIndex ])._data, 0,\n                buffer, buffer_offset, buffer.length - buffer_offset);\n        }\n    }\n\n    /**\n     * Calculate the storage size of a set of SmallDocumentBlocks\n     *\n     * @param size number of SmallDocumentBlocks\n     *\n     * @return total size\n     */\n\n    public static int calcSize(int size)\n    {\n        return size * _block_size;\n    }\n\n    private static SmallDocumentBlock makeEmptySmallDocumentBlock()\n    {\n        SmallDocumentBlock block = new SmallDocumentBlock();\n\n        Arrays.fill(block._data, _default_fill);\n        return block;\n    }\n\n    private static int convertToBlockCount(final int size)\n    {\n        return (size + _block_size - 1) / _block_size;\n    }\n\n    /* ********** START implementation of BlockWritable ********** */\n\n    /**\n     * Write the storage to an OutputStream\n     *\n     * @param stream the OutputStream to which the stored data should\n     *               be written\n     *\n     * @exception IOException on problems writing to the specified\n     *            stream\n     */\n\n    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        stream.write(_data);\n    }\n\n    /* **********  END  implementation of BlockWritable ********** */\n    /* ********** START implementation of ListManagedBlock ********** */\n\n    /**\n     * Get the data from the block\n     *\n     * @return the block's data as a byte array\n     *\n     * @exception IOException if there is no data\n     */\n\n    public byte [] getData()\n        throws IOException\n    {\n        return _data;", "functions": [{"function_name": "convert", "code": "    public static SmallDocumentBlock [] convert(final byte [] array,\n                                                final int size)\n    {\n        SmallDocumentBlock[] rval   =\n            new SmallDocumentBlock[ (size + _block_size - 1) / _block_size ];\n        int                  offset = 0;\n\n        for (int k = 0; k < rval.length; k++)\n        {\n            rval[ k ] = new SmallDocumentBlock();\n            if (offset < array.length)\n            {\n                int length = Math.min(_block_size, array.length - offset);\n\n                System.arraycopy(array, offset, rval[ k ]._data, 0, length);\n                if (length != _block_size)\n                {\n                    Arrays.fill(rval[ k ]._data, length, _block_size,\n                                _default_fill);\n                }\n            }\n            else\n            {\n                Arrays.fill(rval[ k ]._data, _default_fill);\n            }\n            offset += _block_size;\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [3, 9], [2, 10], [8, 11], [2, 12], [2, 13], [4, 14], [8, 15], [8, 16], [12, 17], [14, 18], [8, 19], [15, 20], [8, 21], [18, 22], [18, 23], [21, 24], [16, 25], [15, 26], [25, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 3], [10, 2], [11, 8], [12, 2], [13, 2], [14, 4], [15, 8], [16, 8], [17, 12], [18, 14], [19, 8], [20, 15], [21, 8], [22, 18], [23, 18], [24, 21], [25, 16], [26, 15], [27, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "fill", "code": "    public static int fill(final List blocks)\n    {\n        int count           = blocks.size();\n        int big_block_count = (count + _blocks_per_big_block - 1)\n                              / _blocks_per_big_block;\n        int full_count      = big_block_count * _blocks_per_big_block;\n\n        for (; count < full_count; count++)\n        {\n            blocks.add(makeEmptySmallDocumentBlock());\n        }\n        return big_block_count;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [3, 8], [4, 9], [5, 10], [2, 11], [9, 12], [11, 13], [12, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 3], [9, 4], [10, 5], [11, 2], [12, 9], [13, 11], [14, 12], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "convert", "code": "    public static SmallDocumentBlock [] convert(final BlockWritable [] store,\n                                                final int size)\n        throws IOException, ArrayIndexOutOfBoundsException\n    {\n        ByteArrayOutputStream stream = new ByteArrayOutputStream();\n\n        for (int j = 0; j < store.length; j++)\n        {\n            store[ j ].writeBlocks(stream);\n        }\n        byte[]               data = stream.toByteArray();\n        SmallDocumentBlock[] rval =\n            new SmallDocumentBlock[ convertToBlockCount(size) ];\n\n        for (int index = 0; index < rval.length; index++)\n        {\n            rval[ index ] = new SmallDocumentBlock(data, index);\n        }\n        return rval;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [5, 10], [4, 11], [6, 12], [2, 13], [2, 14], [3, 15], [5, 16], [13, 17], [5, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 5], [11, 4], [12, 6], [13, 2], [14, 2], [15, 3], [16, 5], [17, 13], [18, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "extract", "code": "    public static List extract(ListManagedBlock [] blocks)\n        throws IOException\n    {\n        List sdbs = new ArrayList();\n\n        for (int j = 0; j < blocks.length; j++)\n        {\n            byte[] data = blocks[ j ].getData();\n\n            for (int k = 0; k < _blocks_per_big_block; k++)\n            {\n                sdbs.add(new SmallDocumentBlock(data, k));\n            }\n        }\n        return sdbs;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [2, 7], [3, 8], [6, 9], [2, 10], [6, 11], [6, 12], [7, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 2], [8, 3], [9, 6], [10, 2], [11, 6], [12, 6], [13, 7], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "read", "code": "    public static void read(final BlockWritable [] blocks,\n                            final byte [] buffer, final int offset)\n    {\n        int firstBlockIndex  = offset / _block_size;\n        int firstBlockOffset = offset % _block_size;\n        int lastBlockIndex   = (offset + buffer.length - 1) / _block_size;\n\n        if (firstBlockIndex == lastBlockIndex)\n        {\n            System.arraycopy(\n                (( SmallDocumentBlock ) blocks[ firstBlockIndex ])._data,\n                firstBlockOffset, buffer, 0, buffer.length);\n        }\n        else\n        {\n            int buffer_offset = 0;\n\n            System.arraycopy(\n                (( SmallDocumentBlock ) blocks[ firstBlockIndex ])._data,\n                firstBlockOffset, buffer, buffer_offset,\n                _block_size - firstBlockOffset);\n            buffer_offset += _block_size - firstBlockOffset;\n            for (int j = firstBlockIndex + 1; j < lastBlockIndex; j++)\n            {\n                System.arraycopy((( SmallDocumentBlock ) blocks[ j ])._data,\n                                 0, buffer, buffer_offset, _block_size);\n                buffer_offset += _block_size;\n            }\n            System.arraycopy(\n                (( SmallDocumentBlock ) blocks[ lastBlockIndex ])._data, 0,\n                buffer, buffer_offset, buffer.length - buffer_offset);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LOOP", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [3, 12], [4, 13], [1, 14], [9, 15], [1, 16], [1, 17], [1, 18], [11, 19], [14, 20], [14, 21], [16, 22], [17, 23], [10, 24], [18, 25], [19, 26], [19, 27], [9, 28], [9, 29], [9, 30], [29, 31], [30, 32], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 3], [13, 4], [14, 1], [15, 9], [16, 1], [17, 1], [18, 1], [19, 11], [20, 14], [21, 14], [22, 16], [23, 17], [24, 10], [25, 18], [26, 19], [27, 19], [28, 9], [29, 9], [30, 9], [31, 29], [32, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "calcSize", "code": "    public static int calcSize(int size)\n    {\n        return size * _block_size;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "makeEmptySmallDocumentBlock", "code": "    private static SmallDocumentBlock makeEmptySmallDocumentBlock()\n    {\n        SmallDocumentBlock block = new SmallDocumentBlock();\n\n        Arrays.fill(block._data, _default_fill);\n        return block;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "convertToBlockCount", "code": "    private static int convertToBlockCount(final int size)\n    {\n        return (size + _block_size - 1) / _block_size;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "writeBlocks", "code": "    public void writeBlocks(final OutputStream stream)\n        throws IOException\n    {\n        stream.write(_data);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getData", "code": "    public byte [] getData()\n        throws IOException\n    {\n        return _data;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "SmallDocumentBlock", "code": "    private SmallDocumentBlock(final byte [] data, final int index)\n    {\n        this();\n        System.arraycopy(data, index * _block_size, _data, 0, _block_size);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "SmallDocumentBlock", "code": "    private SmallDocumentBlock()\n    {\n        _data = new byte[ _block_size ];", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "xalan-2.5-6945", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/trax/XSLTCSource.java", "language": "java", "name": "org.apache.xalan.xsltc.trax.XSLTCSource", "code": "public final class XSLTCSource implements Source {\n\n    private String     _systemId = null;\n    private DOM        _dom      = null;\n\n    private final static String LEXICAL_HANDLER_PROPERTY = '';\n\n    /**\n     * Create a new XSLTC-specific DOM source\n     * @param size The estimated node-count for this DOM. A good guess here\n     * speeds up the DOM build process.\n     */\n    public XSLTCSource(int size) \n    {\n      XSLTCDTMManager dtmManager =\n                XSLTCDTMManager.newInstance();\n      int dtmPos = dtmManager.getFirstFreeDTMID();\n      int documentID = dtmPos << DTMManager.IDENT_DTM_NODE_BITS;\n      _dom = (DOM)new SAXImpl(dtmManager, this, documentID, null,\n                              null, false, size, true);\n      dtmManager.addDTM((DTM)_dom, dtmPos);\n    }\n\n    /**\n     * Create a new XSLTC-specific DOM source\n     */\n    public XSLTCSource() \n    {\n      XSLTCDTMManager dtmManager =\n                XSLTCDTMManager.newInstance();\n      int dtmPos = dtmManager.getFirstFreeDTMID();\n      int documentID = dtmPos << DTMManager.IDENT_DTM_NODE_BITS;\n      _dom = (DOM)new SAXImpl(dtmManager, this, documentID, null,\n                              null, false, true);\n      dtmManager.addDTM((DTM)_dom, dtmPos);\n    }\n\n    /**\n     * Implements javax.xml.transform.Source.setSystemId()\n     * Set the system identifier for this Source. \n     * This Source can get its input either directly from a file (in this case\n     * it will instanciate and use a JAXP parser) or it can receive it through\n     * ContentHandler/LexicalHandler interfaces.\n     * @param systemId The system Id for this Source\n     */\n    public void setSystemId(String systemId) {\n\tif ((new File(systemId)).exists())\n\t    _systemId = \"file:\"+systemId;\n\telse\n\t    _systemId = systemId;\n\n        ((SAXImpl)_dom).setDocumentURI(_systemId);\n    }\n\n    /**\n     * Implements javax.xml.transform.Source.getSystemId()\n     * Get the system identifier that was set with setSystemId.\n     * @return The system identifier that was set with setSystemId,\n     *         or null if setSystemId was not called.\n     */\n    public String getSystemId() {\n\treturn(_systemId);\n    }\n\n    /**\n     * Build the internal XSLTC-specific DOM.\n     * @param reader An XMLReader that will pass the XML contents to the DOM\n     * @param systemId Specifies the input file\n     * @throws SAXException\n     */\n    public void build(XMLReader reader, String systemId) throws SAXException {\n\ttry {\n\t    if ((systemId == null) && (_systemId == null)) {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.XSLTC_SOURCE_ERR);\n\t\tthrow new SAXException(err.toString());\n\t    }\n\n\t    if (systemId == null) systemId = _systemId;\n\t    setSystemId(systemId);\n\n\t    InputSource input = new InputSource(systemId);\n\n\t    DOMBuilder builder;\n            builder = ((SAXImpl)_dom).getBuilder();\n\n\t    reader.setContentHandler(builder);\n\t    reader.setDTDHandler(builder);\n\t    try {\n\t\treader.setProperty(LEXICAL_HANDLER_PROPERTY, builder);\n\t    }\n\t    catch (SAXException e) {\n\t    }\n\n\t    reader.parse(input);\n\t}\n\tcatch (IOException e) {\n\t    throw new SAXException(e);\n\t}\n    }\n\n    /**\n     * Build the internal XSLTC-specific DOM.\n     * @param systemId Specifies the input file\n     * @throws SAXException\n     */\n    public void build(String systemId) throws SAXException {\n\ttry {\n\t    final SAXParserFactory factory = SAXParserFactory.newInstance();\n\t    final SAXParser parser = factory.newSAXParser();\n\t    final XMLReader reader = parser.getXMLReader();\n\n\t    build(reader, systemId);\n\t}\n\tcatch (ParserConfigurationException e) {\n\t    throw new SAXException(e);\n\t}\n    }\n\n    /**\n     * Build the internal XSLTC-specific DOM.\n     * @param reader An XMLReader that will pass the XML contents to the DOM\n     * @throws SAXException\n     */\n    public void build(XMLReader reader) throws SAXException {\n\tbuild(reader, _systemId);\n    }\n\n    /**\n     * Build the internal XSLTC-specific DOM.\n     * The setSystemId() must be called prior to this method.\n     * @throws SAXException\n     */\n    public void build() throws SAXException {\n\tbuild(_systemId);\n    }    \n\n    /**\n     * Returns the internal DOM that is encapsulated in this Source\n     */\n    protected DOM getDOM() {\n\treturn(_dom);", "functions": [{"function_name": "setSystemId", "code": "    public void setSystemId(String systemId) {\n\tif ((new File(systemId)).exists())\n\t    _systemId = \"file:\"+systemId;\n\telse\n\t    _systemId = systemId;\n\n        ((SAXImpl)_dom).setDocumentURI(_systemId);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getSystemId", "code": "    public String getSystemId() {\n\treturn(_systemId);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "build", "code": "    public void build(XMLReader reader, String systemId) throws SAXException {\n\ttry {\n\t    if ((systemId == null) && (_systemId == null)) {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.XSLTC_SOURCE_ERR);\n\t\tthrow new SAXException(err.toString());\n\t    }\n\n\t    if (systemId == null) systemId = _systemId;\n\t    setSystemId(systemId);\n\n\t    InputSource input = new InputSource(systemId);\n\n\t    DOMBuilder builder;\n            builder = ((SAXImpl)_dom).getBuilder();\n\n\t    reader.setContentHandler(builder);\n\t    reader.setDTDHandler(builder);\n\t    try {\n\t\treader.setProperty(LEXICAL_HANDLER_PROPERTY, builder);\n\t    }\n\t    catch (SAXException e) {\n\t    }\n\n\t    reader.parse(input);\n\t}\n\tcatch (IOException e) {\n\t    throw new SAXException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "THROW_RAISE", "CALL", "CATCH", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "THROW_RAISE", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [4, 10], [1, 11], [5, 12], [1, 13], [1, 14], [1, 15], [1, 16], [8, 17], [9, 18], [10, 19], [5, 20], [7, 21], [8, 22], [17, 23], [9, 24], [9, 25], [18, 26], [18, 27], [24, 28], [26, 29], [27, 30], [28, 31], [25, 32], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 4], [11, 1], [12, 5], [13, 1], [14, 1], [15, 1], [16, 1], [17, 8], [18, 9], [19, 10], [20, 5], [21, 7], [22, 8], [23, 17], [24, 9], [25, 9], [26, 18], [27, 18], [28, 24], [29, 26], [30, 27], [31, 28], [32, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32]]}, {"function_name": "build", "code": "    public void build(String systemId) throws SAXException {\n\ttry {\n\t    final SAXParserFactory factory = SAXParserFactory.newInstance();\n\t    final SAXParser parser = factory.newSAXParser();\n\t    final XMLReader reader = parser.getXMLReader();\n\n\t    build(reader, systemId);\n\t}\n\tcatch (ParserConfigurationException e) {\n\t    throw new SAXException(e);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [3, 7], [1, 8], [7, 9], [4, 10], [5, 11], [6, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 3], [8, 1], [9, 7], [10, 4], [11, 5], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "build", "code": "    public void build(XMLReader reader) throws SAXException {\n\tbuild(reader, _systemId);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "build", "code": "    public void build() throws SAXException {\n\tbuild(_systemId);", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDOM", "code": "    protected DOM getDOM() {\n\treturn(_dom);", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "XSLTCSource", "code": "    public XSLTCSource(int size) \n    {\n      XSLTCDTMManager dtmManager =\n                XSLTCDTMManager.newInstance();\n      int dtmPos = dtmManager.getFirstFreeDTMID();\n      int documentID = dtmPos << DTMManager.IDENT_DTM_NODE_BITS;\n      _dom = (DOM)new SAXImpl(dtmManager, this, documentID, null,\n                              null, false, size, true);\n      dtmManager.addDTM((DTM)_dom, dtmPos);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [6, 10], [10, 11], [10, 12], [10, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 6], [11, 10], [12, 10], [13, 10], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "XSLTCSource", "code": "    public XSLTCSource() \n    {\n      XSLTCDTMManager dtmManager =\n                XSLTCDTMManager.newInstance();\n      int dtmPos = dtmManager.getFirstFreeDTMID();\n      int documentID = dtmPos << DTMManager.IDENT_DTM_NODE_BITS;\n      _dom = (DOM)new SAXImpl(dtmManager, this, documentID, null,\n                              null, false, true);\n      dtmManager.addDTM((DTM)_dom, dtmPos);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [5, 9], [9, 10], [9, 11], [9, 12], [9, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 5], [10, 9], [11, 9], [12, 9], [13, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 1}
{"sample_id": "jedit-4.3-4871", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/bsh/commands/dir.java", "language": "java", "name": "org.gjt.sp.jedit.bsh.commands.dir", "code": "public class dir \n{\n\tstatic final String [] months = { \"Jan\", \"Feb\", \"Mar\", \"Apr\", \n\t\t\"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\" };\n\n\tpublic static String usage() {\n\t\treturn \"usage: dir( String dir )\\n       dir()\";\n\t}\n\n\t/**\n\t\tImplement dir() command.\n\t*/\n\tpublic static void invoke( Interpreter env, CallStack callstack ) \n\t{\n\t\tString dir = \".\";\n\t\tinvoke( env, callstack, dir );\n\t}\n\n\t/**\n\t\tImplement dir( String directory ) command.\n\t*/\n\tpublic static void invoke( \n\t\tInterpreter env, CallStack callstack, String dir ) \n\t{\n\t\tFile file;\n\t\ttry {\n\t\t\tfile =  env.pathToFile( dir );\n\t\t} catch (IOException e ) {\n\t\t\tenv.println(\"error reading path: \"+e);\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !file.exists() || !file.canRead() ) {\n\t\t\tenv.println( \"Can't read \" + file );\n\t\t\treturn;\n\t\t}\n\t\tif ( !file.isDirectory() )  {\n\t\t\tenv.println(\"'\"+dir+\"' is not a directory\");\n\t\t}\n\n\t\tString [] files = file.list();\n\t\tfiles = StringUtil.bubbleSort(files);\n\n\t\tfor( int i=0; i< files.length; i++ ) {\n\t\t\tFile f = new File( dir + File.separator + files[i] );\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append( f.canRead() ? \"r\": \"-\" );\n\t\t\tsb.append( f.canWrite() ? \"w\": \"-\" );\n\t\t\tsb.append( \"_\" );\n\t\t\tsb.append( \" \");\n\n\t\t\tDate d = new Date(f.lastModified());\n\t\t\tGregorianCalendar c = new GregorianCalendar();\n\t\t\tc.setTime(d);\n\t\t\tint day\t= c.get(Calendar.DAY_OF_MONTH);\n\t\t\tsb.append( months[ c.get(Calendar.MONTH) ] + \" \" + day );\n\t\t\tif ( day < 10 ) \n\t\t\t\tsb.append(\" \");\n\n\t\t\tsb.append(\" \");\n\n\t\t\t// hack to get fixed length 'length' field\n\t\t\tint fieldlen = 8;\n\t\t\tStringBuilder len = new StringBuilder();\n\t\t\tfor(int j=0; j<fieldlen; j++)\n\t\t\t\tlen.append(\" \");\n\t\t\tlen.insert(0, f.length());\n\t\t\tlen.setLength(fieldlen);\n\t\t\t// hack to move the spaces to the front\n\t\t\tint si = len.toString().indexOf(\" \");\n\t\t\tif ( si != -1 ) {\n\t\t\t\tString pad = len.toString().substring(si);\n\t\t\t\tlen.setLength(si);\n\t\t\t\tlen.insert(0, pad);\n\t\t\t}\n\t\t\t\n\t\t\tsb.append( len.toString() );\n\n\t\t\tsb.append( \" \" + f.getName() );\n\t\t\tif ( f.isDirectory() ) \n\t\t\t\tsb.append(\"/\");\n\n\t\t\tenv.println( sb.toString() );", "functions": [{"function_name": "usage", "code": "\tpublic static String usage() {\n\t\treturn \"usage: dir( String dir )\\n       dir()\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "invoke", "code": "\tpublic static void invoke( Interpreter env, CallStack callstack ) \n\t{\n\t\tString dir = \".\";\n\t\tinvoke( env, callstack, dir );", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "invoke", "code": "\tpublic static void invoke( \n\t\tInterpreter env, CallStack callstack, String dir ) \n\t{\n\t\tFile file;\n\t\ttry {\n\t\t\tfile =  env.pathToFile( dir );\n\t\t} catch (IOException e ) {\n\t\t\tenv.println(\"error reading path: \"+e);\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !file.exists() || !file.canRead() ) {\n\t\t\tenv.println( \"Can't read \" + file );\n\t\t\treturn;\n\t\t}\n\t\tif ( !file.isDirectory() )  {\n\t\t\tenv.println(\"'\"+dir+\"' is not a directory\");\n\t\t}\n\n\t\tString [] files = file.list();\n\t\tfiles = StringUtil.bubbleSort(files);\n\n\t\tfor( int i=0; i< files.length; i++ ) {\n\t\t\tFile f = new File( dir + File.separator + files[i] );\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append( f.canRead() ? \"r\": \"-\" );\n\t\t\tsb.append( f.canWrite() ? \"w\": \"-\" );\n\t\t\tsb.append( \"_\" );\n\t\t\tsb.append( \" \");\n\n\t\t\tDate d = new Date(f.lastModified());\n\t\t\tGregorianCalendar c = new GregorianCalendar();\n\t\t\tc.setTime(d);\n\t\t\tint day\t= c.get(Calendar.DAY_OF_MONTH);\n\t\t\tsb.append( months[ c.get(Calendar.MONTH) ] + \" \" + day );\n\t\t\tif ( day < 10 ) \n\t\t\t\tsb.append(\" \");\n\n\t\t\tsb.append(\" \");\n\n\t\t\t// hack to get fixed length 'length' field\n\t\t\tint fieldlen = 8;\n\t\t\tStringBuilder len = new StringBuilder();\n\t\t\tfor(int j=0; j<fieldlen; j++)\n\t\t\t\tlen.append(\" \");\n\t\t\tlen.insert(0, f.length());\n\t\t\tlen.setLength(fieldlen);\n\t\t\t// hack to move the spaces to the front\n\t\t\tint si = len.toString().indexOf(\" \");\n\t\t\tif ( si != -1 ) {\n\t\t\t\tString pad = len.toString().substring(si);\n\t\t\t\tlen.setLength(si);\n\t\t\t\tlen.insert(0, pad);\n\t\t\t}\n\t\t\t\n\t\t\tsb.append( len.toString() );\n\n\t\t\tsb.append( \" \" + f.getName() );\n\t\t\tif ( f.isDirectory() ) \n\t\t\t\tsb.append(\"/\");\n\n\t\t\tenv.println( sb.toString() );", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "IF", "IF", "TRY", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CATCH", "IF", "IF", "VAR_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "CALL", "CALL", "RETURN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [3, 12], [4, 13], [5, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [11, 27], [2, 28], [4, 29], [13, 30], [13, 31], [14, 32], [5, 33], [1, 34], [15, 35], [1, 36], [1, 37], [16, 38], [1, 39], [1, 40], [18, 41], [1, 42], [21, 43], [1, 44], [1, 45], [1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [3, 51], [4, 52], [14, 53], [33, 54], [34, 55], [15, 56], [36, 57], [37, 58], [16, 59], [38, 60], [17, 61], [40, 62], [40, 63], [18, 64], [19, 65], [20, 66], [42, 67], [21, 68], [43, 69], [44, 70], [22, 71], [23, 72], [24, 73], [46, 74], [47, 75], [48, 76], [49, 77], [25, 78], [26, 79], [51, 80], [52, 81], [53, 82], [56, 83], [57, 84], [57, 85], [16, 86], [16, 87], [61, 88], [64, 89], [18, 90], [68, 91], [70, 92], [73, 93], [76, 94], [76, 95], [76, 96], [77, 97], [77, 98], [77, 99], [79, 100], [80, 101], [80, 102], [81, 103], [82, 104], [86, 105], [59, 106], [88, 107], [92, 108], [100, 109], [102, 110], [106, 111], [92, 112], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 3], [13, 4], [14, 5], [15, 1], [16, 1], [17, 1], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 1], [25, 1], [26, 1], [27, 11], [28, 2], [29, 4], [30, 13], [31, 13], [32, 14], [33, 5], [34, 1], [35, 15], [36, 1], [37, 1], [38, 16], [39, 1], [40, 1], [41, 18], [42, 1], [43, 21], [44, 1], [45, 1], [46, 1], [47, 1], [48, 1], [49, 1], [50, 1], [51, 3], [52, 4], [53, 14], [54, 33], [55, 34], [56, 15], [57, 36], [58, 37], [59, 16], [60, 38], [61, 17], [62, 40], [63, 40], [64, 18], [65, 19], [66, 20], [67, 42], [68, 21], [69, 43], [70, 44], [71, 22], [72, 23], [73, 24], [74, 46], [75, 47], [76, 48], [77, 49], [78, 25], [79, 26], [80, 51], [81, 52], [82, 53], [83, 56], [84, 57], [85, 57], [86, 16], [87, 16], [88, 61], [89, 64], [90, 18], [91, 68], [92, 70], [93, 73], [94, 76], [95, 76], [96, 76], [97, 77], [98, 77], [99, 77], [100, 79], [101, 80], [102, 80], [103, 81], [104, 82], [105, 86], [106, 59], [107, 88], [108, 92], [109, 100], [110, 102], [111, 106], [112, 92], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112]]}], "label": 0}
{"sample_id": "camel-1.6-3077", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/processor/RedeliveryPolicy.java", "language": "java", "name": "org.apache.camel.processor.RedeliveryPolicy", "code": "public class RedeliveryPolicy extends DelayPolicy {\n    protected static transient Random randomNumberGenerator;\n    private static final transient Log LOG = LogFactory.getLog(RedeliveryPolicy.class);\n\n    protected int maximumRedeliveries = 5;\n    protected long maximumRedeliveryDelay = 60 * 1000L;\n    protected double backOffMultiplier = 2;\n    protected boolean useExponentialBackOff;\n    protected double collisionAvoidanceFactor = 0.15d;\n    protected boolean useCollisionAvoidance;\n    protected LoggingLevel retriesExhaustedLogLevel = LoggingLevel.ERROR;\n    protected LoggingLevel retryAttemptedLogLevel = LoggingLevel.ERROR;\n\n    public RedeliveryPolicy() {\n    }\n\n    @Override\n    public String toString() {\n        return \"RedeliveryPolicy[maximumRedeliveries=\" + maximumRedeliveries\n            + \", initialRedeliveryDelay=\" + delay\n            + \", maximumRedeliveryDelay=\" + maximumRedeliveryDelay\n            + \", retriesExhaustedLogLevel=\" + retriesExhaustedLogLevel\n            + \", retryAttemptedLogLevel=\" + retryAttemptedLogLevel\n            + \", useExponentialBackOff=\"  + useExponentialBackOff\n            + \", backOffMultiplier=\" + backOffMultiplier\n            + \", useCollisionAvoidance=\" + useCollisionAvoidance\n            + \", collisionAvoidanceFactor=\" + collisionAvoidanceFactor + \"]\";\n    }\n\n    public RedeliveryPolicy copy() {\n        try {\n            return (RedeliveryPolicy)clone();\n        } catch (CloneNotSupportedException e) {\n            throw new RuntimeException(\"Could not clone: \" + e, e);\n        }\n    }\n\n    /**\n     * Returns true if the policy decides that the message exchange should be\n     * redelivered\n     */\n    public boolean shouldRedeliver(int redeliveryCounter) {\n        if (getMaximumRedeliveries() < 0) {\n            return true;\n        }\n        return redeliveryCounter <= getMaximumRedeliveries();\n    }\n\n\n    /**\n     * Calculates the new redelivery delay based on the last one then sleeps for the necessary amount of time\n     */\n    public long sleep(long redeliveryDelay) {\n        redeliveryDelay = getRedeliveryDelay(redeliveryDelay);\n\n        if (redeliveryDelay > 0) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Sleeping for: \" + redeliveryDelay + \" millis until attempting redelivery\");\n            }\n            try {\n                Thread.sleep(redeliveryDelay);\n            } catch (InterruptedException e) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Thread interrupted: \" + e, e);\n                }\n            }\n        }\n        return redeliveryDelay;\n    }\n\n\n    public long getRedeliveryDelay(long previousDelay) {\n        long redeliveryDelay;\n\n        if (previousDelay == 0) {\n            redeliveryDelay = delay;\n        } else if (useExponentialBackOff && backOffMultiplier > 1) {\n            redeliveryDelay = Math.round(backOffMultiplier * previousDelay);\n        } else {\n            redeliveryDelay = previousDelay;\n        }\n\n        if (useCollisionAvoidance) {\n\n            /*\n             * First random determines +/-, second random determines how far to\n             * go in that direction. -cgs\n             */\n            Random random = getRandomNumberGenerator();\n            double variance = (random.nextBoolean() ? collisionAvoidanceFactor : -collisionAvoidanceFactor)\n                              * random.nextDouble();\n            redeliveryDelay += redeliveryDelay * variance;\n        }\n\n        if (maximumRedeliveryDelay > 0 && redeliveryDelay > maximumRedeliveryDelay) {\n            redeliveryDelay = maximumRedeliveryDelay;\n        }\n\n        return redeliveryDelay;\n    }\n\n\n\n    /**\n     * Sets the maximum number of times a message exchange will be redelivered\n     */\n    public RedeliveryPolicy maximumRedeliveries(int maximumRedeliveries) {\n        setMaximumRedeliveries(maximumRedeliveries);\n        return this;\n    }\n\n    /**\n     * Sets the initial redelivery delay in milliseconds on the first redelivery\n     *\n     * @deprecated use delay. Will be removed in Camel 2.0.\n     */\n    public RedeliveryPolicy initialRedeliveryDelay(long initialRedeliveryDelay) {\n        setDelay(initialRedeliveryDelay);\n        return this;\n    }\n\n    /**\n     * Enables collision avoidance which adds some randomization to the backoff\n     * timings to reduce contention probability\n     */\n    public RedeliveryPolicy useCollisionAvoidance() {\n        setUseCollisionAvoidance(true);\n        return this;\n    }\n\n    /**\n     * Enables exponential backoff using the {@link #getBackOffMultiplier()} to\n     * increase the time between retries\n     */\n    public RedeliveryPolicy useExponentialBackOff() {\n        setUseExponentialBackOff(true);\n        return this;\n    }\n\n    /**\n     * Enables exponential backoff and sets the multiplier used to increase the\n     * delay between redeliveries\n     */\n    public RedeliveryPolicy backOffMultiplier(double multiplier) {\n        useExponentialBackOff();\n        setBackOffMultiplier(multiplier);\n        return this;\n    }\n\n    /**\n     * Enables collision avoidance and sets the percentage used\n     */\n    public RedeliveryPolicy collisionAvoidancePercent(double collisionAvoidancePercent) {\n        useCollisionAvoidance();\n        setCollisionAvoidancePercent(collisionAvoidancePercent);\n        return this;\n    }\n\n    /**\n     * Sets the maximum redelivery delay if using exponential back off.\n     * Use -1 if you wish to have no maximum\n     */\n    public RedeliveryPolicy maximumRedeliveryDelay(long maximumRedeliveryDelay) {\n        setMaximumRedeliveryDelay(maximumRedeliveryDelay);\n        return this;\n    }\n\n    /**\n     * Sets the logging level to use for log messages when retries have been exhausted.\n     */\n    public RedeliveryPolicy retriesExhaustedLogLevel(LoggingLevel retriesExhaustedLogLevel) {\n        setRetriesExhaustedLogLevel(retriesExhaustedLogLevel);\n        return this;\n    }    \n\n    /**\n     * Sets the logging level to use for log messages when retries are attempted.\n     */    \n    public RedeliveryPolicy retryAttemptedLogLevel(LoggingLevel retryAttemptedLogLevel) {\n        setRetryAttemptedLogLevel(retryAttemptedLogLevel);\n        return this;\n    }    \n    \n    public double getBackOffMultiplier() {\n        return backOffMultiplier;\n    }\n\n    /**\n     * Sets the multiplier used to increase the delay between redeliveries if\n     * {@link #setUseExponentialBackOff(boolean)} is enabled\n     */\n    public void setBackOffMultiplier(double backOffMultiplier) {\n        this.backOffMultiplier = backOffMultiplier;\n    }\n\n    public short getCollisionAvoidancePercent() {\n        return (short)Math.round(collisionAvoidanceFactor * 100);\n    }\n\n    /**\n     * Sets the percentage used for collision avoidance if enabled via\n     * {@link #setUseCollisionAvoidance(boolean)}\n     */\n    public void setCollisionAvoidancePercent(double collisionAvoidancePercent) {\n        this.collisionAvoidanceFactor = collisionAvoidancePercent * 0.01d;\n    }\n\n    public double getCollisionAvoidanceFactor() {\n        return collisionAvoidanceFactor;\n    }\n\n    /**\n     * Sets the factor used for collision avoidance if enabled via\n     * {@link #setUseCollisionAvoidance(boolean)}\n     */\n    public void setCollisionAvoidanceFactor(double collisionAvoidanceFactor) {\n        this.collisionAvoidanceFactor = collisionAvoidanceFactor;\n    }\n\n    /**\n     * @deprecated  use delay instead. Will be removed in Camel 2.0.\n     */\n    public long getInitialRedeliveryDelay() {\n        return getDelay();\n    }\n\n    /**\n     * Sets the initial redelivery delay in milliseconds on the first redelivery\n     *\n     * @deprecated use delay instead. Will be removed in Camel 2.0.\n     */\n    public void setInitialRedeliveryDelay(long initialRedeliveryDelay) {\n        setDelay(initialRedeliveryDelay);\n    }\n\n    public int getMaximumRedeliveries() {\n        return maximumRedeliveries;\n    }\n\n    /**\n     * Sets the maximum number of times a message exchange will be redelivered.\n     * Setting a negative value will retry forever.\n     */\n    public void setMaximumRedeliveries(int maximumRedeliveries) {\n        this.maximumRedeliveries = maximumRedeliveries;\n    }\n\n    public long getMaximumRedeliveryDelay() {\n        return maximumRedeliveryDelay;\n    }\n\n    /**\n     * Sets the maximum redelivery delay if using exponential back off.\n     * Use -1 if you wish to have no maximum\n     */\n    public void setMaximumRedeliveryDelay(long maximumRedeliveryDelay) {\n        this.maximumRedeliveryDelay = maximumRedeliveryDelay;\n    }\n\n    public boolean isUseCollisionAvoidance() {\n        return useCollisionAvoidance;\n    }\n\n    /**\n     * Enables/disables collision avoidance which adds some randomization to the\n     * backoff timings to reduce contention probability\n     */\n    public void setUseCollisionAvoidance(boolean useCollisionAvoidance) {\n        this.useCollisionAvoidance = useCollisionAvoidance;\n    }\n\n    public boolean isUseExponentialBackOff() {\n        return useExponentialBackOff;\n    }\n\n    /**\n     * Enables/disables exponential backoff using the\n     * {@link #getBackOffMultiplier()} to increase the time between retries\n     */\n    public void setUseExponentialBackOff(boolean useExponentialBackOff) {\n        this.useExponentialBackOff = useExponentialBackOff;\n    }\n\n    protected static synchronized Random getRandomNumberGenerator() {\n        if (randomNumberGenerator == null) {\n            randomNumberGenerator = new Random();\n        }\n        return randomNumberGenerator;\n    }\n\n    /**\n     * Sets the logging level to use for log messages when retries have been exhausted.\n     */    \n    public void setRetriesExhaustedLogLevel(LoggingLevel retriesExhaustedLogLevel) {\n        this.retriesExhaustedLogLevel = retriesExhaustedLogLevel;        \n    }\n    \n    public LoggingLevel getRetriesExhaustedLogLevel() {\n        return retriesExhaustedLogLevel;\n    }\n\n    /**\n     * Sets the logging level to use for log messages when retries are attempted.\n     */    \n    public void setRetryAttemptedLogLevel(LoggingLevel retryAttemptedLogLevel) {\n        this.retryAttemptedLogLevel = retryAttemptedLogLevel;\n    }\n\n    public LoggingLevel getRetryAttemptedLogLevel() {\n        return retryAttemptedLogLevel;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"RedeliveryPolicy[maximumRedeliveries=\" + maximumRedeliveries\n            + \", initialRedeliveryDelay=\" + delay\n            + \", maximumRedeliveryDelay=\" + maximumRedeliveryDelay\n            + \", retriesExhaustedLogLevel=\" + retriesExhaustedLogLevel\n            + \", retryAttemptedLogLevel=\" + retryAttemptedLogLevel\n            + \", useExponentialBackOff=\"  + useExponentialBackOff\n            + \", backOffMultiplier=\" + backOffMultiplier\n            + \", useCollisionAvoidance=\" + useCollisionAvoidance\n            + \", collisionAvoidanceFactor=\" + collisionAvoidanceFactor + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [5, 6], [5, 7], [7, 8], [8, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [14, 15], [14, 16], [16, 17], [17, 18], [17, 19], [19, 20], [20, 21], [20, 22], [22, 23], [23, 24], [23, 25], [25, 26], [26, 27], [26, 28], [28, 29], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 5], [7, 5], [8, 7], [9, 8], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [15, 14], [16, 14], [17, 16], [18, 17], [19, 17], [20, 19], [21, 20], [22, 20], [23, 22], [24, 23], [25, 23], [26, 25], [27, 26], [28, 26], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "copy", "code": "    public RedeliveryPolicy copy() {\n        try {\n            return (RedeliveryPolicy)clone();\n        } catch (CloneNotSupportedException e) {\n            throw new RuntimeException(\"Could not clone: \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "THROW_RAISE", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [2, 4], [4, 5], [3, 6], [5, 7], [7, 8], [1, 0], [2, 1], [3, 1], [4, 2], [5, 4], [6, 3], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "shouldRedeliver", "code": "    public boolean shouldRedeliver(int redeliveryCounter) {\n        if (getMaximumRedeliveries() < 0) {\n            return true;\n        }\n        return redeliveryCounter <= getMaximumRedeliveries();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [2, 7], [5, 8], [5, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 2], [8, 5], [9, 5], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "sleep", "code": "    public long sleep(long redeliveryDelay) {\n        redeliveryDelay = getRedeliveryDelay(redeliveryDelay);\n\n        if (redeliveryDelay > 0) {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Sleeping for: \" + redeliveryDelay + \" millis until attempting redelivery\");\n            }\n            try {\n                Thread.sleep(redeliveryDelay);\n            } catch (InterruptedException e) {\n                if (LOG.isDebugEnabled()) {\n                    LOG.debug(\"Thread interrupted: \" + e, e);\n                }\n            }\n        }\n        return redeliveryDelay;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "ASSIGN", "TRY", "IF", "LITERAL_ANCHOR", "CALL", "CATCH", "CALL", "IF", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [2, 6], [2, 7], [4, 8], [5, 9], [6, 10], [7, 11], [10, 12], [6, 13], [12, 14], [7, 15], [15, 16], [12, 17], [16, 18], [16, 19], [17, 20], [19, 21], [20, 22], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 2], [7, 2], [8, 4], [9, 5], [10, 6], [11, 7], [12, 10], [13, 6], [14, 12], [15, 7], [16, 15], [17, 12], [18, 16], [19, 16], [20, 17], [21, 19], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "getRedeliveryDelay", "code": "    public long getRedeliveryDelay(long previousDelay) {\n        long redeliveryDelay;\n\n        if (previousDelay == 0) {\n            redeliveryDelay = delay;\n        } else if (useExponentialBackOff && backOffMultiplier > 1) {\n            redeliveryDelay = Math.round(backOffMultiplier * previousDelay);\n        } else {\n            redeliveryDelay = previousDelay;\n        }\n\n        if (useCollisionAvoidance) {\n\n            /*\n             * First random determines +/-, second random determines how far to\n             * go in that direction. -cgs\n             */\n            Random random = getRandomNumberGenerator();\n            double variance = (random.nextBoolean() ? collisionAvoidanceFactor : -collisionAvoidanceFactor)\n                              * random.nextDouble();\n            redeliveryDelay += redeliveryDelay * variance;\n        }\n\n        if (maximumRedeliveryDelay > 0 && redeliveryDelay > maximumRedeliveryDelay) {\n            redeliveryDelay = maximumRedeliveryDelay;\n        }\n\n        return redeliveryDelay;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [4, 9], [7, 10], [7, 11], [3, 12], [3, 13], [8, 14], [9, 15], [2, 16], [11, 17], [3, 18], [14, 19], [4, 20], [18, 21], [12, 22], [13, 23], [8, 24], [8, 25], [19, 26], [22, 27], [22, 28], [25, 29], [28, 30], [29, 31], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 4], [10, 7], [11, 7], [12, 3], [13, 3], [14, 8], [15, 9], [16, 2], [17, 11], [18, 3], [19, 14], [20, 4], [21, 18], [22, 12], [23, 13], [24, 8], [25, 8], [26, 19], [27, 22], [28, 22], [29, 25], [30, 28], [31, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31]]}, {"function_name": "maximumRedeliveries", "code": "    public RedeliveryPolicy maximumRedeliveries(int maximumRedeliveries) {\n        setMaximumRedeliveries(maximumRedeliveries);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "initialRedeliveryDelay", "code": "    public RedeliveryPolicy initialRedeliveryDelay(long initialRedeliveryDelay) {\n        setDelay(initialRedeliveryDelay);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "useCollisionAvoidance", "code": "    public RedeliveryPolicy useCollisionAvoidance() {\n        setUseCollisionAvoidance(true);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "useExponentialBackOff", "code": "    public RedeliveryPolicy useExponentialBackOff() {\n        setUseExponentialBackOff(true);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "backOffMultiplier", "code": "    public RedeliveryPolicy backOffMultiplier(double multiplier) {\n        useExponentialBackOff();\n        setBackOffMultiplier(multiplier);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "collisionAvoidancePercent", "code": "    public RedeliveryPolicy collisionAvoidancePercent(double collisionAvoidancePercent) {\n        useCollisionAvoidance();\n        setCollisionAvoidancePercent(collisionAvoidancePercent);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "maximumRedeliveryDelay", "code": "    public RedeliveryPolicy maximumRedeliveryDelay(long maximumRedeliveryDelay) {\n        setMaximumRedeliveryDelay(maximumRedeliveryDelay);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "retriesExhaustedLogLevel", "code": "    public RedeliveryPolicy retriesExhaustedLogLevel(LoggingLevel retriesExhaustedLogLevel) {\n        setRetriesExhaustedLogLevel(retriesExhaustedLogLevel);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "retryAttemptedLogLevel", "code": "    public RedeliveryPolicy retryAttemptedLogLevel(LoggingLevel retryAttemptedLogLevel) {\n        setRetryAttemptedLogLevel(retryAttemptedLogLevel);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getBackOffMultiplier", "code": "    public double getBackOffMultiplier() {\n        return backOffMultiplier;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setBackOffMultiplier", "code": "    public void setBackOffMultiplier(double backOffMultiplier) {\n        this.backOffMultiplier = backOffMultiplier;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getCollisionAvoidancePercent", "code": "    public short getCollisionAvoidancePercent() {\n        return (short)Math.round(collisionAvoidanceFactor * 100);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [3, 4], [1, 0], [2, 1], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "setCollisionAvoidancePercent", "code": "    public void setCollisionAvoidancePercent(double collisionAvoidancePercent) {\n        this.collisionAvoidanceFactor = collisionAvoidancePercent * 0.01d;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [1, 0], [2, 0], [3, 2], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getCollisionAvoidanceFactor", "code": "    public double getCollisionAvoidanceFactor() {\n        return collisionAvoidanceFactor;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCollisionAvoidanceFactor", "code": "    public void setCollisionAvoidanceFactor(double collisionAvoidanceFactor) {\n        this.collisionAvoidanceFactor = collisionAvoidanceFactor;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getInitialRedeliveryDelay", "code": "    public long getInitialRedeliveryDelay() {\n        return getDelay();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setInitialRedeliveryDelay", "code": "    public void setInitialRedeliveryDelay(long initialRedeliveryDelay) {\n        setDelay(initialRedeliveryDelay);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaximumRedeliveries", "code": "    public int getMaximumRedeliveries() {\n        return maximumRedeliveries;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMaximumRedeliveries", "code": "    public void setMaximumRedeliveries(int maximumRedeliveries) {\n        this.maximumRedeliveries = maximumRedeliveries;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getMaximumRedeliveryDelay", "code": "    public long getMaximumRedeliveryDelay() {\n        return maximumRedeliveryDelay;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setMaximumRedeliveryDelay", "code": "    public void setMaximumRedeliveryDelay(long maximumRedeliveryDelay) {\n        this.maximumRedeliveryDelay = maximumRedeliveryDelay;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isUseCollisionAvoidance", "code": "    public boolean isUseCollisionAvoidance() {\n        return useCollisionAvoidance;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUseCollisionAvoidance", "code": "    public void setUseCollisionAvoidance(boolean useCollisionAvoidance) {\n        this.useCollisionAvoidance = useCollisionAvoidance;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isUseExponentialBackOff", "code": "    public boolean isUseExponentialBackOff() {\n        return useExponentialBackOff;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUseExponentialBackOff", "code": "    public void setUseExponentialBackOff(boolean useExponentialBackOff) {\n        this.useExponentialBackOff = useExponentialBackOff;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRandomNumberGenerator", "code": "    protected static synchronized Random getRandomNumberGenerator() {\n        if (randomNumberGenerator == null) {\n            randomNumberGenerator = new Random();\n        }\n        return randomNumberGenerator;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setRetriesExhaustedLogLevel", "code": "    public void setRetriesExhaustedLogLevel(LoggingLevel retriesExhaustedLogLevel) {\n        this.retriesExhaustedLogLevel = retriesExhaustedLogLevel;        ", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRetriesExhaustedLogLevel", "code": "    public LoggingLevel getRetriesExhaustedLogLevel() {\n        return retriesExhaustedLogLevel;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRetryAttemptedLogLevel", "code": "    public void setRetryAttemptedLogLevel(LoggingLevel retryAttemptedLogLevel) {\n        this.retryAttemptedLogLevel = retryAttemptedLogLevel;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRetryAttemptedLogLevel", "code": "    public LoggingLevel getRetryAttemptedLogLevel() {\n        return retryAttemptedLogLevel;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RedeliveryPolicy", "code": "    public RedeliveryPolicy() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "jedit-4.0-3903", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "gnu/regexp/RETokenOneOf.java", "language": "java", "name": "gnu.regexp.RETokenOneOf", "code": "final class RETokenOneOf extends REToken {\n  private Vector options;\n  private boolean negative;\n\n  // This constructor is used for convenience when we know the set beforehand,\n  // e.g. \\d --> new RETokenOneOf(\"0123456789\",false, ..)\n  //      \\D --> new RETokenOneOf(\"0123456789\",true, ..)\n\n  RETokenOneOf(int subIndex, String optionsStr, boolean negative, boolean insens) {\n    super(subIndex);\n    options = new Vector();\n    this.negative = negative;\n    for (int i = 0; i < optionsStr.length(); i++)\n      options.addElement(new RETokenChar(subIndex,optionsStr.charAt(i),insens));\n  }\n\n  RETokenOneOf(int subIndex, Vector options, boolean negative) {\n    super(subIndex);\n    this.options = options;\n    this.negative = negative;\n  }\n\n  int getMinimumLength() {\n    int min = Integer.MAX_VALUE;\n    int x;\n    for (int i=0; i < options.size(); i++) {\n      if ((x = ((REToken) options.elementAt(i)).getMinimumLength()) < min)\n\tmin = x;\n    }\n    return min;\n  }\n\n    boolean match(CharIndexed input, REMatch mymatch) {\n    if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) \n      return false;\n\n    REMatch newMatch = null;\n    REMatch last = null;\n    REToken tk;\n    boolean isMatch;\n    for (int i=0; i < options.size(); i++) {\n\ttk = (REToken) options.elementAt(i);\n\tREMatch tryMatch = (REMatch) mymatch.clone();\n\tif (tk.match(input, tryMatch)) { // match was successful\n\t    if (negative) return false;\n\n\t    if (next(input, tryMatch)) {\n\t\t// Add tryMatch to list of possibilities.\n\t\tif (last == null) {\n\t\t    newMatch = tryMatch;\n\t\t    last = tryMatch;\n\t\t} else {\n\t\t    last.next = tryMatch;\n\t\t    last = tryMatch;\n\t\t}\n\t    } // next succeeds\n\t} // is a match\n    } // try next option\n\n    if (newMatch != null) {\n\tif (negative) {\n\t    return false;\n\t} else {\n\t    // set contents of mymatch equal to newMatch\n\n\t    // try each one that matched\n\t    mymatch.assignFrom(newMatch);\n\t    return true;\n\t}\n    } else {\n\tif (negative) {\n\t    ++mymatch.index;\n\t    return next(input, mymatch);\n\t} else {\n\t    return false;\n\t}\n    }\n\n    // index+1 works for [^abc] lists, not for generic lookahead (--> index)\n  }\n\n  void dump(StringBuffer os) {\n    os.append(negative ? \"[^\" : \"(?:\");\n    for (int i = 0; i < options.size(); i++) {\n      if (!negative && (i > 0)) os.append('|');\n      ((REToken) options.elementAt(i)).dumpAll(os);\n    }\n    os.append(negative ? ']' : ')');", "functions": [{"function_name": "getMinimumLength", "code": "  int getMinimumLength() {\n    int min = Integer.MAX_VALUE;\n    int x;\n    for (int i=0; i < options.size(); i++) {\n      if ((x = ((REToken) options.elementAt(i)).getMinimumLength()) < min)\n\tmin = x;\n    }\n    return min;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "BINARY_OP", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [5, 7], [6, 8], [2, 9], [6, 10], [8, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 5], [8, 6], [9, 2], [10, 6], [11, 8], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n    if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) \n      return false;\n\n    REMatch newMatch = null;\n    REMatch last = null;\n    REToken tk;\n    boolean isMatch;\n    for (int i=0; i < options.size(); i++) {\n\ttk = (REToken) options.elementAt(i);\n\tREMatch tryMatch = (REMatch) mymatch.clone();\n\tif (tk.match(input, tryMatch)) { // match was successful\n\t    if (negative) return false;\n\n\t    if (next(input, tryMatch)) {\n\t\t// Add tryMatch to list of possibilities.\n\t\tif (last == null) {\n\t\t    newMatch = tryMatch;\n\t\t    last = tryMatch;\n\t\t} else {\n\t\t    last.next = tryMatch;\n\t\t    last = tryMatch;\n\t\t}\n\t    } // next succeeds\n\t} // is a match\n    } // try next option\n\n    if (newMatch != null) {\n\tif (negative) {\n\t    return false;\n\t} else {\n\t    // set contents of mymatch equal to newMatch\n\n\t    // try each one that matched\n\t    mymatch.assignFrom(newMatch);\n\t    return true;\n\t}\n    } else {\n\tif (negative) {\n\t    ++mymatch.index;\n\t    return next(input, mymatch);\n\t} else {\n\t    return false;", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "RETURN", "RETURN", "RETURN", "RETURN", "IF", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "CALL", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [2, 11], [7, 12], [7, 13], [1, 14], [1, 15], [10, 16], [2, 17], [2, 18], [11, 19], [5, 20], [6, 21], [12, 22], [13, 23], [17, 24], [2, 25], [2, 26], [23, 27], [14, 28], [14, 29], [15, 30], [15, 31], [17, 32], [17, 33], [28, 34], [29, 35], [30, 36], [15, 37], [31, 38], [32, 39], [33, 40], [18, 41], [25, 42], [32, 43], [40, 44], [43, 45], [45, 46], [43, 47], [43, 48], [43, 49], [43, 50], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 2], [12, 7], [13, 7], [14, 1], [15, 1], [16, 10], [17, 2], [18, 2], [19, 11], [20, 5], [21, 6], [22, 12], [23, 13], [24, 17], [25, 2], [26, 2], [27, 23], [28, 14], [29, 14], [30, 15], [31, 15], [32, 17], [33, 17], [34, 28], [35, 29], [36, 30], [37, 15], [38, 31], [39, 32], [40, 33], [41, 18], [42, 25], [43, 32], [44, 40], [45, 43], [46, 45], [47, 43], [48, 43], [49, 43], [50, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50]]}, {"function_name": "dump", "code": "  void dump(StringBuffer os) {\n    os.append(negative ? \"[^\" : \"(?:\");\n    for (int i = 0; i < options.size(); i++) {\n      if (!negative && (i > 0)) os.append('|');\n      ((REToken) options.elementAt(i)).dumpAll(os);\n    }\n    os.append(negative ? ']' : ')');", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "CALL", "BINARY_OP", "CALL", "COND_EXPR", "IF", "CALL", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [3, 6], [1, 7], [4, 8], [5, 9], [6, 10], [6, 11], [7, 12], [1, 13], [9, 14], [9, 15], [1, 16], [7, 17], [12, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 3], [7, 1], [8, 4], [9, 5], [10, 6], [11, 6], [12, 7], [13, 1], [14, 9], [15, 9], [16, 1], [17, 7], [18, 12], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "RETokenOneOf", "code": "  RETokenOneOf(int subIndex, String optionsStr, boolean negative, boolean insens) {\n    super(subIndex);\n    options = new Vector();\n    this.negative = negative;\n    for (int i = 0; i < optionsStr.length(); i++)\n      options.addElement(new RETokenChar(subIndex,optionsStr.charAt(i),insens));", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [1, 9], [6, 10], [8, 11], [9, 12], [1, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 1], [10, 6], [11, 8], [12, 9], [13, 1], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "RETokenOneOf", "code": "  RETokenOneOf(int subIndex, Vector options, boolean negative) {\n    super(subIndex);\n    this.options = options;\n    this.negative = negative;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 0}
{"sample_id": "xalan-2.7-8389", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/ref/EmptyIterator.java", "language": "java", "name": "org.apache.xml.dtm.ref.EmptyIterator", "code": "public final class EmptyIterator implements DTMAxisIterator\n{\n  private static final EmptyIterator INSTANCE =  new EmptyIterator();\n  \n  public static DTMAxisIterator  getInstance() {return INSTANCE;}\n  \n  private EmptyIterator(){}\n  \n  public final  int  next(){ return END; }  \n  \n  public final DTMAxisIterator reset(){ return this; }\n\n  public final int getLast(){ return 0; }\n\n  public final int getPosition(){ return 1; }\n\n  public final void setMark(){}\n\n  public final void gotoMark(){}\n\n  public final DTMAxisIterator setStartNode(int node){ return this; }\n\n  public final int getStartNode(){ return END; } \n  \n  public final boolean isReverse(){return false;} \n  \n  public final DTMAxisIterator cloneIterator(){ return this; }\n  \n  public final void setRestartable(boolean isRestartable) {}\n  \n  public final int getNodeByPosition(int position){ return END; } ", "functions": [{"function_name": "getInstance", "code": "  public static DTMAxisIterator  getInstance() {return INSTANCE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "next", "code": "  public final  int  next(){ return END; }  ", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "reset", "code": "  public final DTMAxisIterator reset(){ return this; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getLast", "code": "  public final int getLast(){ return 0; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPosition", "code": "  public final int getPosition(){ return 1; }", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setMark", "code": "  public final void setMark(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "gotoMark", "code": "  public final void gotoMark(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setStartNode", "code": "  public final DTMAxisIterator setStartNode(int node){ return this; }", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getStartNode", "code": "  public final int getStartNode(){ return END; } ", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isReverse", "code": "  public final boolean isReverse(){return false;} ", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "cloneIterator", "code": "  public final DTMAxisIterator cloneIterator(){ return this; }", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRestartable", "code": "  public final void setRestartable(boolean isRestartable) {}", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNodeByPosition", "code": "  public final int getNodeByPosition(int position){ return END; } ", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "EmptyIterator", "code": "  private EmptyIterator(){}", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}], "label": 1}
{"sample_id": "xalan-2.4-6522", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/util/MatchGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.MatchGenerator", "code": "public final class MatchGenerator extends MethodGenerator {\n    private static int CURRENT_INDEX = 1;\n\n    private int _iteratorIndex = INVALID_INDEX;\n\n    private final Instruction _iloadCurrent;\n    private final Instruction _istoreCurrent;\n    private Instruction _aloadDom;\n    \n    public MatchGenerator(int access_flags, Type return_type, \n\t\t\t  Type[] arg_types, String[] arg_names, \n\t\t\t  String method_name, String class_name,\n\t\t\t  InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_iloadCurrent = new ILOAD(CURRENT_INDEX);\n\t_istoreCurrent = new ISTORE(CURRENT_INDEX);\n    }\n\n    public Instruction loadCurrentNode() {\n\treturn _iloadCurrent;\n    }\n\n    public Instruction storeCurrentNode() {\n\treturn _istoreCurrent;\n    }\n    \n    public int getHandlerIndex() {\n    }\n\n    /**\n     * Get index of the register where the DOM is stored.\n     */\n    public Instruction loadDOM() {\n\treturn _aloadDom;\n    }\n\n    /**\n     * Set index where the reference to the DOM is stored.\n     */\n    public void setDomIndex(int domIndex) {\n\t_aloadDom = new ALOAD(domIndex);\n    }\n\n    /**\n     * Get index of the register where the current iterator is stored.\n     */\n    public int getIteratorIndex() {\n\treturn _iteratorIndex;\n    }\n\n    /**\n     * Set index of the register where the current iterator is stored.\n     */\n    public void setIteratorIndex(int iteratorIndex) {\n\t_iteratorIndex = iteratorIndex;\n    }\n\n    public int getLocalIndex(String name) {\n\tif (name.equals(\"current\")) {\n\t    return CURRENT_INDEX;\n\t}\n\treturn super.getLocalIndex(name);", "functions": [{"function_name": "loadCurrentNode", "code": "    public Instruction loadCurrentNode() {\n\treturn _iloadCurrent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "storeCurrentNode", "code": "    public Instruction storeCurrentNode() {\n\treturn _istoreCurrent;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getHandlerIndex", "code": "    public int getHandlerIndex() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "loadDOM", "code": "    public Instruction loadDOM() {\n\treturn _aloadDom;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDomIndex", "code": "    public void setDomIndex(int domIndex) {\n\t_aloadDom = new ALOAD(domIndex);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getIteratorIndex", "code": "    public int getIteratorIndex() {\n\treturn _iteratorIndex;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setIteratorIndex", "code": "    public void setIteratorIndex(int iteratorIndex) {\n\t_iteratorIndex = iteratorIndex;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getLocalIndex", "code": "    public int getLocalIndex(String name) {\n\tif (name.equals(\"current\")) {\n\t    return CURRENT_INDEX;\n\t}\n\treturn super.getLocalIndex(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "MatchGenerator", "code": "    public MatchGenerator(int access_flags, Type return_type, \n\t\t\t  Type[] arg_types, String[] arg_names, \n\t\t\t  String method_name, String class_name,\n\t\t\t  InstructionList il, ConstantPoolGen cp) {\n\tsuper(access_flags, return_type, arg_types, arg_names, method_name, \n\t      class_name, il, cp);\n\t\n\t_iloadCurrent = new ILOAD(CURRENT_INDEX);\n\t_istoreCurrent = new ISTORE(CURRENT_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [9, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 9], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}], "label": 0}
{"sample_id": "camel-1.2-1935", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/jms/JmsPollingConsumer.java", "language": "java", "name": "org.apache.camel.component.jms.JmsPollingConsumer", "code": "public class JmsPollingConsumer extends PollingConsumerSupport<JmsExchange> {\n    private JmsOperations template;\n\n    public JmsPollingConsumer(JmsEndpoint endpoint, JmsOperations template) {\n        super(endpoint);\n        this.template = template;\n    }\n\n    @Override\n    public JmsEndpoint getEndpoint() {\n        return (JmsEndpoint)super.getEndpoint();\n    }\n\n    public JmsExchange receiveNoWait() {\n        return receive(0);\n    }\n\n    public JmsExchange receive() {\n        return receive(-1);\n    }\n\n    public JmsExchange receive(long timeout) {\n        setReceiveTimeout(timeout);\n        Message message = template.receive();\n        if (message != null) {\n            return getEndpoint().createExchange(message);\n        }\n        return null;\n    }\n\n    protected void doStart() throws Exception {\n    }\n\n    protected void doStop() throws Exception {\n    }\n\n    protected void setReceiveTimeout(long timeout) {\n        if (template instanceof JmsTemplate) {\n            JmsTemplate jmsTemplate = (JmsTemplate)template;\n            jmsTemplate.setReceiveTimeout(timeout);\n        } else if (template instanceof JmsTemplate102) {\n            JmsTemplate102 jmsTemplate102 = (JmsTemplate102)template;\n            jmsTemplate102.setReceiveTimeout(timeout);\n        } else {\n            throw new IllegalArgumentException(\"Cannot set the receiveTimeout property on unknown JmsOperations type: \" + template);", "functions": [{"function_name": "getEndpoint", "code": "    @Override\n    public JmsEndpoint getEndpoint() {\n        return (JmsEndpoint)super.getEndpoint();", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "receiveNoWait", "code": "    public JmsExchange receiveNoWait() {\n        return receive(0);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "receive", "code": "    public JmsExchange receive() {\n        return receive(-1);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "receive", "code": "    public JmsExchange receive(long timeout) {\n        setReceiveTimeout(timeout);\n        Message message = template.receive();\n        if (message != null) {\n            return getEndpoint().createExchange(message);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [0, 7], [2, 8], [6, 9], [3, 10], [8, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 0], [8, 2], [9, 6], [10, 3], [11, 8], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "doStart", "code": "    protected void doStart() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "doStop", "code": "    protected void doStop() throws Exception {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "setReceiveTimeout", "code": "    protected void setReceiveTimeout(long timeout) {\n        if (template instanceof JmsTemplate) {\n            JmsTemplate jmsTemplate = (JmsTemplate)template;\n            jmsTemplate.setReceiveTimeout(timeout);\n        } else if (template instanceof JmsTemplate102) {\n            JmsTemplate102 jmsTemplate102 = (JmsTemplate102)template;\n            jmsTemplate102.setReceiveTimeout(timeout);\n        } else {\n            throw new IllegalArgumentException(\"Cannot set the receiveTimeout property on unknown JmsOperations type: \" + template);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "VAR_DECL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [3, 7], [3, 8], [1, 9], [7, 10], [3, 11], [10, 12], [12, 13], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 3], [8, 3], [9, 1], [10, 7], [11, 3], [12, 10], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "JmsPollingConsumer", "code": "    public JmsPollingConsumer(JmsEndpoint endpoint, JmsOperations template) {\n        super(endpoint);\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "camel-1.4-2415", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/impl/DefaultExchange.java", "language": "java", "name": "org.apache.camel.impl.DefaultExchange", "code": "public class DefaultExchange implements Exchange {\n\n    private static final UuidGenerator DEFAULT_ID_GENERATOR = new UuidGenerator();\n    protected final CamelContext context;\n    private Map<String, Object> properties;\n    private Message in;\n    private Message out;\n    private Message fault;\n    private Throwable exception;\n    private String exchangeId;\n    private UnitOfWork unitOfWork;\n    private ExchangePattern pattern;\n\n    public DefaultExchange(CamelContext context) {\n        this(context, ExchangePattern.InOnly);\n    }\n\n    public DefaultExchange(CamelContext context, ExchangePattern pattern) {\n        this.context = context;\n        this.pattern = pattern;\n    }\n\n    public DefaultExchange(DefaultExchange parent) {\n        this(parent.getContext(), parent.getPattern());\n        this.unitOfWork = parent.getUnitOfWork();\n    }\n\n    @Override\n    public String toString() {\n        return \"Exchange[\" + in + \"]\";\n    }\n\n    public Exchange copy() {\n        Exchange exchange = newInstance();\n        exchange.copyFrom(this);\n        return exchange;\n    }\n\n    public void copyFrom(Exchange exchange) {\n        if (exchange == this) {\n            return;\n        }\n        setProperties(safeCopy(exchange.getProperties()));\n\n        safeCopy(getIn(), exchange, exchange.getIn());\n        Message copyOut = exchange.getOut(false);\n        if (copyOut != null) {\n            safeCopy(getOut(true), exchange, copyOut);\n        }\n        Message copyFault = exchange.getFault(false);\n        if (copyFault != null) {\n            safeCopy(getFault(true), exchange, copyFault);\n        }\n        setException(exchange.getException());\n\n        unitOfWork = exchange.getUnitOfWork();\n        pattern = exchange.getPattern();\n    }\n\n    private static void safeCopy(Message message, Exchange exchange, Message that) {\n        if (message != null) {\n            message.copyFrom(that);\n        }\n    }\n\n    private static Map<String, Object> safeCopy(Map<String, Object> properties) {\n        if (properties == null) {\n            return null;\n        }\n        return new HashMap<String, Object>(properties);\n    }\n\n    private static Message safeCopy(Exchange exchange, Message message) {\n        if (message == null) {\n            return null;\n        }\n        Message answer = message.copy();\n        if (answer instanceof MessageSupport) {\n            MessageSupport messageSupport = (MessageSupport) answer;\n            messageSupport.setExchange(exchange);\n        }\n        return answer;\n    }\n\n    public Exchange newInstance() {\n        return new DefaultExchange(this);\n    }\n\n    public CamelContext getContext() {\n        return context;\n    }\n\n    public Object getProperty(String name) {\n        if (properties != null) {\n            return properties.get(name);\n        }\n        return null;\n    }\n\n    public <T> T getProperty(String name, Class<T> type) {\n        Object value = getProperty(name);\n\n        ExchangeProperty<?> property = ExchangeProperty.getByName(name);\n        if (property != null) {\n            validateExchangePropertyIsExpectedType(property, type, value);\n        }\n\n        return getContext().getTypeConverter().convertTo(type, value);\n    }\n\n    public void setProperty(String name, Object value) {\n        ExchangeProperty<?> property = ExchangeProperty.getByName(name);\n\n        if (property != null) {\n            Class type = value.getClass();\n            validateExchangePropertyIsExpectedType(property, type, value);\n        }\n\n        getProperties().put(name, value);\n    }\n\n    private <T> void validateExchangePropertyIsExpectedType(ExchangeProperty<?> property, Class<T> type, Object value) {\n        if (value != null && property != null && !property.type().isAssignableFrom(type)) {\n            throw new RuntimeCamelException(\"Type cast exception while getting an \"\n                    + \"Exchange Property value '\" + value.toString()\n                    + \"' on Exchange \" + this\n                    + \" for a well known Exchange Property with these traits: \" + property);\n        }\n    }\n\n    public Object removeProperty(String name) {\n        return getProperties().remove(name);\n    }\n\n    public Map<String, Object> getProperties() {\n        if (properties == null) {\n            properties = new HashMap<String, Object>();\n        }\n        return properties;\n    }\n\n    public void setProperties(Map<String, Object> properties) {\n        this.properties = properties;\n    }\n\n    public Message getIn() {\n        if (in == null) {\n            in = createInMessage();\n            configureMessage(in);\n        }\n        return in;\n    }\n\n    public void setIn(Message in) {\n        this.in = in;\n        configureMessage(in);\n    }\n\n    public Message getOut() {\n        return getOut(true);\n    }\n\n    public Message getOut(boolean lazyCreate) {\n        if (out == null && lazyCreate) {\n            out = createOutMessage();\n            configureMessage(out);\n        }\n        return out;\n    }\n\n    public void setOut(Message out) {\n        this.out = out;\n        configureMessage(out);\n    }\n\n    public Throwable getException() {\n        return exception;\n    }\n\n    public void setException(Throwable exception) {\n        this.exception = exception;\n    }\n\n    public ExchangePattern getPattern() {\n        return pattern;\n    }\n\n    public void setPattern(ExchangePattern pattern) {\n        this.pattern = pattern;\n    }\n\n    public void throwException() throws Exception {\n        if (exception == null) {\n            return;\n        }\n        if (exception instanceof RuntimeException) {\n            throw (RuntimeException)exception;\n        }\n        if (exception instanceof Exception) {\n            throw (Exception)exception;\n        }\n        throw new RuntimeCamelException(exception);\n    }\n\n    public Message getFault() {\n        return getFault(true);\n    }\n\n    public Message getFault(boolean lazyCreate) {\n        if (fault == null && lazyCreate) {\n            fault = createFaultMessage();\n            configureMessage(fault);\n        }\n        return fault;\n    }\n\n    public void setFault(Message fault) {\n        this.fault = fault;\n        configureMessage(fault);\n    }\n\n    public String getExchangeId() {\n        if (exchangeId == null) {\n            exchangeId = DefaultExchange.DEFAULT_ID_GENERATOR.generateId();\n        }\n        return exchangeId;\n    }\n\n    public void setExchangeId(String id) {\n        this.exchangeId = id;\n    }\n\n    public boolean isFailed() {\n        Message faultMessage = getFault(false);\n        if (faultMessage != null) {\n            Object faultBody = faultMessage.getBody();\n            if (faultBody != null) {\n                return true;\n            }\n        }\n        return getException() != null;\n    }\n\n    public boolean isTransacted() {\n        ExchangeProperty<?> property = ExchangeProperty.get(\"transacted\");\n        return property != null && property.get(this) == Boolean.TRUE;\n    }\n\n    public UnitOfWork getUnitOfWork() {\n        return unitOfWork;\n    }\n\n    public void setUnitOfWork(UnitOfWork unitOfWork) {\n        this.unitOfWork = unitOfWork;\n    }\n\n    /**\n     * Factory method used to lazily create the IN message\n     */\n    protected Message createInMessage() {\n        return new DefaultMessage();\n    }\n\n    /**\n     * Factory method to lazily create the OUT message\n     */\n    protected Message createOutMessage() {\n        return new DefaultMessage();\n    }\n\n    /**\n     * Factory method to lazily create the FAULT message\n     */\n    protected Message createFaultMessage() {\n        return new DefaultMessage();\n    }\n\n    /**\n     * Configures the message after it has been set on the exchange\n     */\n    protected void configureMessage(Message message) {\n        if (message instanceof MessageSupport) {\n            MessageSupport messageSupport = (MessageSupport)message;\n            messageSupport.setExchange(this);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Exchange[\" + in + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "copy", "code": "    public Exchange copy() {\n        Exchange exchange = newInstance();\n        exchange.copyFrom(this);\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "copyFrom", "code": "    public void copyFrom(Exchange exchange) {\n        if (exchange == this) {\n            return;\n        }\n        setProperties(safeCopy(exchange.getProperties()));\n\n        safeCopy(getIn(), exchange, exchange.getIn());\n        Message copyOut = exchange.getOut(false);\n        if (copyOut != null) {\n            safeCopy(getOut(true), exchange, copyOut);\n        }\n        Message copyFault = exchange.getFault(false);\n        if (copyFault != null) {\n            safeCopy(getFault(true), exchange, copyFault);\n        }\n        setException(exchange.getException());\n\n        unitOfWork = exchange.getUnitOfWork();\n        pattern = exchange.getPattern();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [3, 11], [0, 12], [0, 13], [5, 14], [7, 15], [8, 16], [9, 17], [10, 18], [2, 19], [11, 20], [4, 21], [12, 22], [12, 23], [13, 24], [5, 25], [1, 26], [19, 27], [3, 28], [21, 29], [24, 30], [26, 31], [28, 32], [31, 33], [32, 34], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 3], [12, 0], [13, 0], [14, 5], [15, 7], [16, 8], [17, 9], [18, 10], [19, 2], [20, 11], [21, 4], [22, 12], [23, 12], [24, 13], [25, 5], [26, 1], [27, 19], [28, 3], [29, 21], [30, 24], [31, 26], [32, 28], [33, 31], [34, 32], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34]]}, {"function_name": "safeCopy", "code": "    private static void safeCopy(Message message, Exchange exchange, Message that) {\n        if (message != null) {\n            message.copyFrom(that);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "safeCopy", "code": "    private static Map<String, Object> safeCopy(Map<String, Object> properties) {\n        if (properties == null) {\n            return null;\n        }\n        return new HashMap<String, Object>(properties);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "safeCopy", "code": "    private static Message safeCopy(Exchange exchange, Message message) {\n        if (message == null) {\n            return null;\n        }\n        Message answer = message.copy();\n        if (answer instanceof MessageSupport) {\n            MessageSupport messageSupport = (MessageSupport) answer;\n            messageSupport.setExchange(exchange);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "VAR_DECL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [4, 8], [2, 9], [3, 10], [4, 11], [8, 12], [2, 13], [11, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 4], [9, 2], [10, 3], [11, 4], [12, 8], [13, 2], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "newInstance", "code": "    public Exchange newInstance() {\n        return new DefaultExchange(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getContext", "code": "    public CamelContext getContext() {\n        return context;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getProperty", "code": "    public Object getProperty(String name) {\n        if (properties != null) {\n            return properties.get(name);\n        }\n        return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [5, 7], [6, 8], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 5], [8, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getProperty", "code": "    public <T> T getProperty(String name, Class<T> type) {\n        Object value = getProperty(name);\n\n        ExchangeProperty<?> property = ExchangeProperty.getByName(name);\n        if (property != null) {\n            validateExchangePropertyIsExpectedType(property, type, value);\n        }\n\n        return getContext().getTypeConverter().convertTo(type, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [7, 9], [7, 10], [8, 11], [3, 12], [4, 13], [2, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 7], [10, 7], [11, 8], [12, 3], [13, 4], [14, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setProperty", "code": "    public void setProperty(String name, Object value) {\n        ExchangeProperty<?> property = ExchangeProperty.getByName(name);\n\n        if (property != null) {\n            Class type = value.getClass();\n            validateExchangePropertyIsExpectedType(property, type, value);\n        }\n\n        getProperties().put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [5, 7], [1, 8], [6, 9], [2, 10], [1, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 5], [8, 1], [9, 6], [10, 2], [11, 1], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "validateExchangePropertyIsExpectedType", "code": "    private <T> void validateExchangePropertyIsExpectedType(ExchangeProperty<?> property, Class<T> type, Object value) {\n        if (value != null && property != null && !property.type().isAssignableFrom(type)) {\n            throw new RuntimeCamelException(\"Type cast exception while getting an \"\n                    + \"Exchange Property value '\" + value.toString()\n                    + \"' on Exchange \" + this\n                    + \" for a well known Exchange Property with these traits: \" + property);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "THROW_RAISE", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [6, 9], [7, 10], [8, 11], [8, 12], [9, 13], [11, 14], [12, 15], [13, 16], [16, 17], [16, 18], [18, 19], [19, 20], [19, 21], [21, 22], [21, 23], [23, 24], [23, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 6], [10, 7], [11, 8], [12, 8], [13, 9], [14, 11], [15, 12], [16, 13], [17, 16], [18, 16], [19, 18], [20, 19], [21, 19], [22, 21], [23, 21], [24, 23], [25, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "removeProperty", "code": "    public Object removeProperty(String name) {\n        return getProperties().remove(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getProperties", "code": "    public Map<String, Object> getProperties() {\n        if (properties == null) {\n            properties = new HashMap<String, Object>();\n        }\n        return properties;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setProperties", "code": "    public void setProperties(Map<String, Object> properties) {\n        this.properties = properties;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getIn", "code": "    public Message getIn() {\n        if (in == null) {\n            in = createInMessage();\n            configureMessage(in);\n        }\n        return in;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setIn", "code": "    public void setIn(Message in) {\n        this.in = in;\n        configureMessage(in);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getOut", "code": "    public Message getOut() {\n        return getOut(true);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getOut", "code": "    public Message getOut(boolean lazyCreate) {\n        if (out == null && lazyCreate) {\n            out = createOutMessage();\n            configureMessage(out);\n        }\n        return out;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setOut", "code": "    public void setOut(Message out) {\n        this.out = out;\n        configureMessage(out);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getException", "code": "    public Throwable getException() {\n        return exception;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setException", "code": "    public void setException(Throwable exception) {\n        this.exception = exception;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPattern", "code": "    public ExchangePattern getPattern() {\n        return pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setPattern", "code": "    public void setPattern(ExchangePattern pattern) {\n        this.pattern = pattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "throwException", "code": "    public void throwException() throws Exception {\n        if (exception == null) {\n            return;\n        }\n        if (exception instanceof RuntimeException) {\n            throw (RuntimeException)exception;\n        }\n        if (exception instanceof Exception) {\n            throw (Exception)exception;\n        }\n        throw new RuntimeCamelException(exception);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "IF", "IF", "IF", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [2, 9], [3, 10], [4, 11], [8, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 3], [8, 4], [9, 2], [10, 3], [11, 4], [12, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getFault", "code": "    public Message getFault() {\n        return getFault(true);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getFault", "code": "    public Message getFault(boolean lazyCreate) {\n        if (fault == null && lazyCreate) {\n            fault = createFaultMessage();\n            configureMessage(fault);\n        }\n        return fault;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [2, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 2], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setFault", "code": "    public void setFault(Message fault) {\n        this.fault = fault;\n        configureMessage(fault);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getExchangeId", "code": "    public String getExchangeId() {\n        if (exchangeId == null) {\n            exchangeId = DefaultExchange.DEFAULT_ID_GENERATOR.generateId();\n        }\n        return exchangeId;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExchangeId", "code": "    public void setExchangeId(String id) {\n        this.exchangeId = id;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isFailed", "code": "    public boolean isFailed() {\n        Message faultMessage = getFault(false);\n        if (faultMessage != null) {\n            Object faultBody = faultMessage.getBody();\n            if (faultBody != null) {\n                return true;\n            }\n        }\n        return getException() != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [4, 6], [4, 7], [2, 8], [2, 9], [5, 10], [3, 11], [8, 12], [11, 13], [8, 14], [12, 15], [9, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 4], [7, 4], [8, 2], [9, 2], [10, 5], [11, 3], [12, 8], [13, 11], [14, 8], [15, 12], [16, 9], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "isTransacted", "code": "    public boolean isTransacted() {\n        ExchangeProperty<?> property = ExchangeProperty.get(\"transacted\");\n        return property != null && property.get(this) == Boolean.TRUE;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [2, 6], [4, 7], [5, 8], [6, 9], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 2], [7, 4], [8, 5], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "getUnitOfWork", "code": "    public UnitOfWork getUnitOfWork() {\n        return unitOfWork;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUnitOfWork", "code": "    public void setUnitOfWork(UnitOfWork unitOfWork) {\n        this.unitOfWork = unitOfWork;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createInMessage", "code": "    protected Message createInMessage() {\n        return new DefaultMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createOutMessage", "code": "    protected Message createOutMessage() {\n        return new DefaultMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createFaultMessage", "code": "    protected Message createFaultMessage() {\n        return new DefaultMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "configureMessage", "code": "    protected void configureMessage(Message message) {\n        if (message instanceof MessageSupport) {\n            MessageSupport messageSupport = (MessageSupport)message;\n            messageSupport.setExchange(this);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "DefaultExchange", "code": "    public DefaultExchange(CamelContext context) {\n        this(context, ExchangePattern.InOnly);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "DefaultExchange", "code": "    public DefaultExchange(CamelContext context, ExchangePattern pattern) {\n        this.context = context;\n        this.pattern = pattern;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "DefaultExchange", "code": "    public DefaultExchange(DefaultExchange parent) {\n        this(parent.getContext(), parent.getPattern());\n        this.unitOfWork = parent.getUnitOfWork();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}], "label": 1}
{"sample_id": "poi-2.0-5454", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/formula/UnknownPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.UnknownPtg", "code": "public class UnknownPtg\n    extends Ptg\n{\n    private short size;\n\n    /** Creates new UnknownPtg */\n\n    public UnknownPtg()\n    {\n    }\n\n    public UnknownPtg(byte [] data, int offset)\n    {\n\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n    }\n\n    public int getSize()\n    {\n        return size;\n    }\n\n    public String toFormulaString(Workbook book)\n    {\n        return \"UNKNOWN\";\n    }\n    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}\n\n    public Object clone() {\n      return new UnknownPtg();", "functions": [{"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return size;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \"UNKNOWN\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "    public Object clone() {\n      return new UnknownPtg();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "UnknownPtg", "code": "    public UnknownPtg()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "UnknownPtg", "code": "    public UnknownPtg(byte [] data, int offset)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.0-1446", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/impl/ScheduledPollConsumer.java", "language": "java", "name": "org.apache.camel.impl.ScheduledPollConsumer", "code": "public abstract class ScheduledPollConsumer<E extends Exchange> extends DefaultConsumer<E> implements Runnable {\n    private static final transient Log log = LogFactory.getLog(ScheduledPollConsumer.class);\n    \n    private final ScheduledExecutorService executor;\n    private long initialDelay = 1000;\n    private long delay = 500;\n    private TimeUnit timeUnit = TimeUnit.MILLISECONDS;\n    private boolean useFixedDelay;\n    private ScheduledFuture<?> future;\n\n    public ScheduledPollConsumer(DefaultEndpoint<E> endpoint, Processor processor) {\n        this(endpoint, processor, endpoint.getExecutorService());\n    }\n\n    public ScheduledPollConsumer(Endpoint<E> endpoint, Processor processor, ScheduledExecutorService executor) {\n        super(endpoint, processor);\n        this.executor = executor;\n        if (executor == null) {\n            throw new IllegalArgumentException(\"A non null ScheduledExecutorService must be provided.\");\n        }\n    }\n\n    /**\n     * Invoked whenever we should be polled\n     */\n    public void run() {\n        log.debug(\"Starting to poll\");\n        try {\n            poll();\n        }\n        catch (Exception e) {\n            log.warn(\"Caught: \" + e, e);\n        }\n    }\n\n    public long getInitialDelay() {\n        return initialDelay;\n    }\n\n    public void setInitialDelay(long initialDelay) {\n        this.initialDelay = initialDelay;\n    }\n\n    public long getDelay() {\n        return delay;\n    }\n\n    public void setDelay(long delay) {\n        this.delay = delay;\n    }\n\n    public TimeUnit getTimeUnit() {\n        return timeUnit;\n    }\n\n    public void setTimeUnit(TimeUnit timeUnit) {\n        this.timeUnit = timeUnit;\n    }\n\n    public boolean isUseFixedDelay() {\n        return useFixedDelay;\n    }\n\n    public void setUseFixedDelay(boolean useFixedDelay) {\n        this.useFixedDelay = useFixedDelay;\n    }\n\n\n    /**\n     * The polling method which is invoked periodically to poll this consumer\n     *\n     * @throws Exception\n     */\n    protected abstract void poll() throws Exception;\n\n    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        if (isUseFixedDelay()) {\n            future = executor.scheduleWithFixedDelay(this, getInitialDelay(), getDelay(), getTimeUnit());\n        }\n        else {\n            future = executor.scheduleAtFixedRate(this, getInitialDelay(), getDelay(), getTimeUnit());\n        }\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        if (future != null) {\n            future.cancel(false);\n        }\n        super.doStop();", "functions": [{"function_name": "run", "code": "    public void run() {\n        log.debug(\"Starting to poll\");\n        try {\n            poll();\n        }\n        catch (Exception e) {\n            log.warn(\"Caught: \" + e, e);", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 4], [3, 5], [2, 6], [6, 7], [7, 8], [1, 0], [2, 1], [3, 0], [4, 1], [5, 3], [6, 2], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getInitialDelay", "code": "    public long getInitialDelay() {\n        return initialDelay;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setInitialDelay", "code": "    public void setInitialDelay(long initialDelay) {\n        this.initialDelay = initialDelay;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getDelay", "code": "    public long getDelay() {\n        return delay;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setDelay", "code": "    public void setDelay(long delay) {\n        this.delay = delay;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTimeUnit", "code": "    public TimeUnit getTimeUnit() {\n        return timeUnit;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTimeUnit", "code": "    public void setTimeUnit(TimeUnit timeUnit) {\n        this.timeUnit = timeUnit;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isUseFixedDelay", "code": "    public boolean isUseFixedDelay() {\n        return useFixedDelay;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUseFixedDelay", "code": "    public void setUseFixedDelay(boolean useFixedDelay) {\n        this.useFixedDelay = useFixedDelay;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "poll", "code": "    protected abstract void poll() throws Exception;", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        super.doStart();\n        if (isUseFixedDelay()) {\n            future = executor.scheduleWithFixedDelay(this, getInitialDelay(), getDelay(), getTimeUnit());\n        }\n        else {\n            future = executor.scheduleAtFixedRate(this, getInitialDelay(), getDelay(), getTimeUnit());", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [5, 8], [5, 9], [6, 10], [6, 11], [6, 12], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 5], [9, 5], [10, 6], [11, 6], [12, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        if (future != null) {\n            future.cancel(false);\n        }\n        super.doStop();", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 1], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "ScheduledPollConsumer", "code": "    public ScheduledPollConsumer(DefaultEndpoint<E> endpoint, Processor processor) {\n        this(endpoint, processor, endpoint.getExecutorService());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ScheduledPollConsumer", "code": "    public ScheduledPollConsumer(Endpoint<E> endpoint, Processor processor, ScheduledExecutorService executor) {\n        super(endpoint, processor);\n        this.executor = executor;\n        if (executor == null) {\n            throw new IllegalArgumentException(\"A non null ScheduledExecutorService must be provided.\");", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [5, 8], [7, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 5], [9, 7], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}], "label": 0}
{"sample_id": "jedit-4.1-4019", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/Macros.java", "language": "java", "name": "org.gjt.sp.jedit.Macros", "code": "public class Macros\n{\n\t//{{{ showRunScriptDialog() method\n\t/**\n\t * Prompts for one or more files to run as macros\n\t * @param view The view\n\t * @since jEdit 4.0pre7\n\t */\n\tpublic static void showRunScriptDialog(View view)\n\t{\n\t\tString[] paths = GUIUtilities.showVFSFileDialog(view,\n\t\t\tnull,JFileChooser.OPEN_DIALOG,true);\n\t\tif(paths != null)\n\t\t{\n\t\t\tBuffer buffer = view.getBuffer();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\nfile_loop:\t\t\tfor(int i = 0; i < paths.length; i++)\n\t\t\t\t\trunScript(view,paths[i],false);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ runScript() method\n\t/**\n\t * Runs the specified script.\n\t * Unlike the {@link BeanShell#runScript(View,String,Reader,boolean)}\n\t * method, this method can run scripts supported\n\t * by any registered macro handler.\n\t * @param view The view\n\t * @param path The VFS path of the script\n\t * @param ignoreUnknown If true, then unknown file types will be\n\t * ignored; otherwise, a warning message will be printed and they will\n\t * be evaluated as BeanShell scripts.\n\t *\n\t * @since jEdit 4.1pre2\n\t */\n\tpublic static void runScript(View view, String path, boolean ignoreUnknown)\n\t{\n\t\tHandler handler = getHandlerForPathName(path);\n\t\tif(handler != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMacro newMacro = handler.createMacro(\n\t\t\t\t\tMiscUtilities.getFileName(path), path);\n\t\t\t\tnewMacro.invoke(view);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, Macros.class, e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// only executed if above loop falls\n\t\t// through, ie there is no handler for\n\t\t// this file\n\t\tif(ignoreUnknown)\n\t\t{\n\t\t\tLog.log(Log.NOTICE,Macros.class,path +\n\t\t\t\t\": Cannot find a suitable macro handler\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tLog.log(Log.ERROR,Macros.class,path +\n\t\t\t\t\": Cannot find a suitable macro handler, \"\n\t\t\t\t+ \"assuming BeanShell\");\n\t\t\tgetHandler(\"beanshell\").createMacro(\n\t\t\t\tpath,path).invoke(view);\n\t\t}\n\t} //}}}\n\n\t//{{{ message() method\n\t/**\n\t * Utility method that can be used to display a message dialog in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param message The message\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void message(Component comp, String message)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,message,\n\t\t\tjEdit.getProperty(\"macro-message.title\"),\n\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t} //}}}\n\n\t//{{{ error() method\n\t/**\n\t * Utility method that can be used to display an error dialog in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param message The message\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void error(Component comp, String message)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,message,\n\t\t\tjEdit.getProperty(\"macro-message.title\"),\n\t\t\tJOptionPane.ERROR_MESSAGE);\n\t} //}}}\n\n\t//{{{ input() method\n\t/**\n\t * Utility method that can be used to prompt for input in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param prompt The prompt string\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static String input(Component comp, String prompt)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn input(comp,prompt,null);\n\t} //}}}\n\n\t//{{{ input() method\n\t/**\n\t * Utility method that can be used to prompt for input in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param prompt The prompt string\n\t * @since jEdit 3.1final\n\t */\n\tpublic static String input(Component comp, String prompt, String defaultValue)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn (String)JOptionPane.showInputDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-input.title\"),\n\t\t\tJOptionPane.QUESTION_MESSAGE,null,null,defaultValue);\n\t} //}}}\n\n\t//{{{ confirm() method\n\t/**\n\t * Utility method that can be used to ask for confirmation in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param prompt The prompt string\n\t * @param buttons The buttons to display - for example,\n\t * JOptionPane.YES_NO_CANCEL_OPTION\n\t * @since jEdit 4.0pre2\n\t */\n\tpublic static int confirm(Component comp, String prompt, int buttons)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn JOptionPane.showConfirmDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-confirm.title\"),buttons,\n\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t} //}}}\n\n\t//{{{ confirm() method\n\t/**\n\t * Utility method that can be used to ask for confirmation in a macro.\n\t * @param comp The component to show the dialog on behalf of, this\n\t * will usually be a view instance\n\t * @param prompt The prompt string\n\t * @param buttons The buttons to display - for example,\n\t * JOptionPane.YES_NO_CANCEL_OPTION\n\t * @param type The dialog type - for example,\n\t * JOptionPane.WARNING_MESSAGE\n\t */\n\tpublic static int confirm(Component comp, String prompt, int buttons, int type)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn JOptionPane.showConfirmDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-confirm.title\"),buttons,type);\n\t} //}}}\n\n\t//{{{ loadMacros() method\n\t/**\n\t * Rebuilds the macros list, and sends a MacrosChanged message\n\t * (views update their Macros menu upon receiving it)\n\t * @since jEdit 2.2pre4\n\t */\n\tpublic static void loadMacros()\n\t{\n\t\tmacroActionSet.removeAllActions();\n\t\tmacroHierarchy.removeAllElements();\n\t\tmacroHash.clear();\n\n\t\tif(jEdit.getJEditHome() != null)\n\t\t{\n\t\t\tsystemMacroPath = MiscUtilities.constructPath(\n\t\t\t\tjEdit.getJEditHome(),\"macros\");\n\t\t\tloadMacros(macroHierarchy,\"\",new File(systemMacroPath));\n\t\t}\n\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings != null)\n\t\t{\n\t\t\tuserMacroPath = MiscUtilities.constructPath(\n\t\t\t\tsettings,\"macros\");\n\t\t\tloadMacros(macroHierarchy,\"\",new File(userMacroPath));\n\t\t}\n\n\t\tEditBus.send(new MacrosChanged(null));\n\t} //}}}\n\n\t//{{{ registerHandler() method\n\t/**\n\t * Adds a macro handler to the handlers list\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic static void registerHandler(Handler handler)\n\t{\n\t\tif (getHandler(handler.getName()) != null)\n\t\t{\n\t\t\tLog.log(Log.ERROR, Macros.class, \"Cannot register more than one macro handler with the same name\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.log(Log.DEBUG,Macros.class,\"Registered \" + handler.getName()\n\t\t\t+ \" macro handler\");\n\t\tmacroHandlers.add(handler);\n\t} //}}}\n\n\t//{{{ getHandlers() method\n\t/**\n\t * Returns an array containing the list of registered macro handlers\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic static Handler[] getHandlers()\n\t{\n\t\tHandler[] handlers = new Handler[macroHandlers.size()];\n\t\treturn (Handler[])macroHandlers.toArray(handlers);\n\t} //}}}\n\n\t//{{{ getHandlerForFileName() method\n\t/**\n\t * Returns the macro handler suitable for running the specified file\n\t * name, or null if there is no suitable handler.\n\t * @since jEdit 4.1pre3\n\t */\n\tpublic static Handler getHandlerForPathName(String pathName)\n\t{\n\t\tfor (int i = 0; i < macroHandlers.size(); i++)\n\t\t{\n\t\t\tHandler handler = (Handler)macroHandlers.get(i);\n\t\t\tif (handler.accept(pathName))\n\t\t\t\treturn handler;\n\t\t}\n\n\t\treturn null;\n\t} //}}}\n\n\t//{{{ getHandler() method\n\t/**\n\t * Returns the macro handler with the specified name, or null if\n\t * there is no registered handler with that name.\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic static Handler getHandler(String name)\n\t{\n\t\tHandler handler = null;\n\t\tfor (int i = 0; i < macroHandlers.size(); i++)\n\t\t{\n\t\t\thandler = (Handler)macroHandlers.get(i);\n\t\t\tif (handler.getName().equals(name)) return handler;\n\t\t}\n\n\t\treturn null;\n\t}\n\t//}}}\n\n\t//{{{ getMacroHierarchy() method\n\t/**\n\t * Returns a vector hierarchy with all known macros in it.\n\t * Each element of this vector is either a macro name string,\n\t * or another vector. If it is a vector, the first element is a\n\t * string label, the rest are again, either macro name strings\n\t * or vectors.\n\t * @since jEdit 2.6pre1\n\t */\n\tpublic static Vector getMacroHierarchy()\n\t{\n\t\treturn macroHierarchy;\n\t} //}}}\n\n\t//{{{ getMacroActionSet() method\n\t/**\n\t * Returns an action set with all known macros in it.\n\t * @since jEdit 4.0pre1\n\t */\n\tpublic static ActionSet getMacroActionSet()\n\t{\n\t\treturn macroActionSet;\n\t} //}}}\n\n\t//{{{ getMacro() method\n\t/**\n\t * Returns the macro with the specified name.\n\t * @param macro The macro's name\n\t * @since jEdit 2.6pre1\n\t */\n\tpublic static Macro getMacro(String macro)\n\t{\n\t\treturn (Macro)macroHash.get(macro);\n\t} //}}}\n\n\t//{{{ Macro class\n\t/**\n\t * Encapsulates the macro's label, name and path.\n\t * @since jEdit 2.2pre4\n\t */\n\tpublic static class Macro extends EditAction\n\t{\n\t\t//{{{ Macro constructor\n\t\tpublic Macro(Handler handler, String name, String label, String path)\n\t\t{\n\t\t\t// in case macro file name has a space in it.\n\t\t\t// spaces break the view.toolBar property, for instance,\n\t\t\t// since it uses spaces to delimit action names.\n\t\t\tsuper(name.replace(' ','_'));\n\t\t\tthis.handler = handler;\n\t\t\tthis.label = label;\n\t\t\tthis.path = path;\n\t\t} //}}}\n\n\t\t//{{{ getHandler() method\n\t\tpublic Handler getHandler()\n\t\t{\n\t\t\treturn handler;\n\t\t}\n\t\t//}}}\n\n\t\t//{{{ getLabel() method\n\t\tpublic String getLabel()\n\t\t{\n\t\t\treturn label;\n\t\t} //}}}\n\n\t\t//{{{ getMouseOverText() method\n\t\tpublic String getMouseOverText()\n\t\t{\n\t\t\treturn handler.getLabel() + \" - \" + path;\n\t\t} //}}}\n\n\t\t//{{{ getPath() method\n\t\tpublic String getPath()\n\t\t{\n\t\t\treturn path;\n\t\t} //}}}\n\n\t\t//{{{ invoke() method\n\t\tpublic void invoke(View view)\n\t\t{\n\t\t\tlastMacro = this;\n\n\t\t\tif(view == null)\n\t\t\t\thandler.runMacro(null,this);\n\t\t\telse\n\t\t\t{\n\t\t\t\tBuffer buffer = view.getBuffer();\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tbuffer.beginCompoundEdit();\n\t\t\t\t\thandler.runMacro(view,this);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tbuffer.endCompoundEdit();\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ getCode() method\n\t\tpublic String getCode()\n\t\t{\n\t\t\treturn \"Macros.getMacro(\\\"\" + getName() + \"\\\").invoke(view);\";\n\t\t} //}}}\n\n\t\t//{{{ macroNameToLabel() method\n\t\tpublic static String macroNameToLabel(String macroName)\n\t\t{\n\t\t\tint index = macroName.lastIndexOf('/');\n\t\t\treturn macroName.substring(index + 1).replace('_', ' ');\n\t\t}\n\t\t//}}}\n\n\t\t//{{{ Private members\n\t\tprivate Handler handler;\n\t\tprivate String path;\n\t\tprivate String label;\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ recordTemporaryMacro() method\n\t/**\n\t * Starts recording a temporary macro.\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void recordTemporaryMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",new String[0]);\n\t\t\treturn;\n\t\t}\n\t\tif(view.getMacroRecorder() != null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"already-recording\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tBuffer buffer = jEdit.openFile(null,settings + File.separator\n\t\t\t+ \"macros\",\"Temporary_Macro.bsh\",true,null);\n\n\t\tif(buffer == null)\n\t\t\treturn;\n\n\t\tbuffer.remove(0,buffer.getLength());\n\t\tbuffer.insert(0,jEdit.getProperty(\"macro.temp.header\"));\n\n\t\trecordMacro(view,buffer,true);\n\t} //}}}\n\n\t//{{{ recordMacro() method\n\t/**\n\t * Starts recording a macro.\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void recordMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tif(view.getMacroRecorder() != null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"already-recording\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tString name = GUIUtilities.input(view,\"record\",null);\n\t\tif(name == null)\n\t\t\treturn;\n\n\t\tname = name.replace(' ','_');\n\n\t\tBuffer buffer = jEdit.openFile(null,null,\n\t\t\tMiscUtilities.constructPath(settings,\"macros\",\n\t\t\tname + \".bsh\"),true,null);\n\n\t\tif(buffer == null)\n\t\t\treturn;\n\n\t\tbuffer.remove(0,buffer.getLength());\n\t\tbuffer.insert(0,jEdit.getProperty(\"macro.header\"));\n\n\t\trecordMacro(view,buffer,false);\n\t} //}}}\n\n\t//{{{ stopRecording() method\n\t/**\n\t * Stops a recording currently in progress.\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void stopRecording(View view)\n\t{\n\t\tRecorder recorder = view.getMacroRecorder();\n\n\t\tif(recorder == null)\n\t\t\tGUIUtilities.error(view,\"macro-not-recording\",null);\n\t\telse\n\t\t{\n\t\t\tview.setMacroRecorder(null);\n\t\t\tif(!recorder.temporary)\n\t\t\t\tview.setBuffer(recorder.buffer);\n\t\t\trecorder.dispose();\n\t\t}\n\t} //}}}\n\n\t//{{{ runTemporaryMacro() method\n\t/**\n\t * Runs the temporary macro.\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void runTemporaryMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tString path = MiscUtilities.constructPath(\n\t\t\tjEdit.getSettingsDirectory(),\"macros\",\n\t\t\t\"Temporary_Macro.bsh\");\n\n\t\tHandler handler = getHandler(\"beanshell\");\n\t\tMacro temp = handler.createMacro(path,path);\n\n\t\tBuffer buffer = view.getBuffer();\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\t\t\ttemp.invoke(view);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\t/* I already wrote a comment expaining this in\n\t\t\t * Macro.invoke(). */\n\t\t\tif(buffer.insideCompoundEdit())\n\t\t\t\tbuffer.endCompoundEdit();\n\t\t}\n\t} //}}}\n\n\t//{{{ runLastMacro() method\n\t/**\n\t * Runs the most recently run or recorded macro.\n\t * @param view The view\n\t * @since jEdit 2.7pre2\n\t */\n\tpublic static void runLastMacro(View view)\n\t{\n\t\tif(lastMacro == null)\n\t\t\tview.getToolkit().beep();\n\t\telse\n\t\t\tlastMacro.invoke(view);\n\t} //}}}\n\n\t//{{{ Private members\n\n\t//{{{ Static variables\n\tprivate static String systemMacroPath;\n\tprivate static String userMacroPath;\n\n\tprivate static ArrayList macroHandlers;\n\n\tprivate static ActionSet macroActionSet;\n\tprivate static Vector macroHierarchy;\n\tprivate static Hashtable macroHash;\n\tprivate static Macro lastMacro;\n\t//}}}\n\n\t//{{{ Class initializer\n\tstatic\n\t{\n\t\tmacroHandlers = new ArrayList();\n\t\tregisterHandler(new BeanShellHandler());\n\t\tmacroActionSet = new ActionSet(jEdit.getProperty(\"action-set.macros\"));\n\t\tjEdit.addActionSet(macroActionSet);\n\t\tmacroHierarchy = new Vector();\n\t\tmacroHash = new Hashtable();\n\t} //}}}\n\n\t//{{{ loadMacros() method\n\tprivate static void loadMacros(Vector vector, String path, File directory)\n\t{\n\t\tFile[] macroFiles = directory.listFiles();\n\t\tif(macroFiles == null || macroFiles.length == 0)\n\t\t\treturn;\n\n\t\tfor(int i = 0; i < macroFiles.length; i++)\n\t\t{\n\t\t\tFile file = macroFiles[i];\n\t\t\tString fileName = file.getName();\n\t\t\tif(file.isHidden())\n\t\t\t{\n\t\t\t\t/* do nothing! */\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(file.isDirectory())\n\t\t\t{\n\t\t\t\tString submenuName = fileName.replace('_',' ');\n\t\t\t\tVector submenu = null;\n\t\t\t\t//{{{ try to merge with an existing menu first\n\t\t\t\tfor(int j = 0; j < vector.size(); j++)\n\t\t\t\t{\n\t\t\t\t\tObject obj = vector.get(j);\n\t\t\t\t\tif(obj instanceof Vector)\n\t\t\t\t\t{\n\t\t\t\t\t\tVector vec = (Vector)obj;\n\t\t\t\t\t\tif(((String)vec.get(0)).equals(submenuName))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsubmenu = vec;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} //}}}\n\t\t\t\tif(submenu == null)\n\t\t\t\t{\n\t\t\t\t\tsubmenu = new Vector();\n\t\t\t\t\tsubmenu.addElement(submenuName);\n\t\t\t\t\tvector.addElement(submenu);\n\t\t\t\t}\n\n\t\t\t\tloadMacros(submenu,path + fileName + '/',file);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tHandler handler = getHandlerForPathName(file.getPath());\n\n\t\t\t\tif(handler == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tMacro newMacro = handler.createMacro(\n\t\t\t\t\t\tpath + fileName, file.getPath());\n\t\t\t\t\tvector.addElement(newMacro);\n\t\t\t\t\tmacroActionSet.addAction(newMacro);\n\t\t\t\t\tmacroHash.put(newMacro.getName(),newMacro);\n\t\t\t\t}\n\t\t\t\tcatch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR, Macros.class, e);\n\t\t\t\t\tmacroHandlers.remove(handler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} //}}}\n\n\t//{{{ recordMacro() method\n\t/**\n\t * Starts recording a macro.\n\t * @param view The view\n\t * @param buffer The buffer to record to\n\t * @param temporary True if this is a temporary macro\n\t * @since jEdit 3.0pre5\n\t */\n\tprivate static void recordMacro(View view, Buffer buffer, boolean temporary)\n\t{\n\t\tHandler handler = getHandler(\"beanshell\");\n\t\tString path = buffer.getPath();\n\t\tlastMacro = handler.createMacro(path,path);\n\n\t\tview.setMacroRecorder(new Recorder(view,buffer,temporary));\n\n\t\t// setting the message to 'null' causes the status bar to check\n\t\t// if a recording is in progress\n\t\tview.getStatus().setMessage(null);\n\t} //}}}\n\n\t//}}}\n\n\t//{{{ Recorder class\n\t/**\n\t * Handles macro recording.\n\t */\n\tpublic static class Recorder implements EBComponent\n\t{\n\t\tView view;\n\t\tBuffer buffer;\n\t\tboolean temporary;\n\n\t\tboolean lastWasInput;\n\n\t\t//{{{ Recorder constructor\n\t\tpublic Recorder(View view, Buffer buffer, boolean temporary)\n\t\t{\n\t\t\tthis.view = view;\n\t\t\tthis.buffer = buffer;\n\t\t\tthis.temporary = temporary;\n\t\t\tEditBus.addToBus(this);\n\t\t} //}}}\n\n\t\t//{{{ record() method\n\t\tpublic void record(String code)\n\t\t{\n\t\t\tif(lastWasInput)\n\t\t\t{\n\t\t\t\tlastWasInput = false;\n\t\t\t\tappend(\"\\\");\");\n\t\t\t}\n\n\t\t\tappend(\"\\n\");\n\t\t\tappend(code);\n\t\t} //}}}\n\n\t\t//{{{ record() method\n\t\tpublic void record(int repeat, String code)\n\t\t{\n\t\t\tif(repeat == 1)\n\t\t\t\trecord(code);\n\t\t\telse\n\t\t\t{\n\t\t\t\trecord(\"for(int i = 1; i <= \" + repeat + \"; i++)\\n\"\n\t\t\t\t\t+ \"{\\n\"\n\t\t\t\t\t+ code + \"\\n\"\n\t\t\t\t\t+ \"}\");\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ record() method\n\t\tpublic void record(int repeat, char ch)\n\t\t{\n\t\t\t// record \\n and \\t on lines specially so that auto indent\n\t\t\t// can take place\n\t\t\tif(ch == '\\n')\n\t\t\t\trecord(repeat,\"textArea.userInput(\\'\\\\n\\');\");\n\t\t\telse if(ch == '\\t')\n\t\t\t\trecord(repeat,\"textArea.userInput(\\'\\\\t\\');\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\t\tfor(int i = 0; i < repeat; i++)\n\t\t\t\t\tbuf.append(ch);\n\t\t\t\tString charStr = MiscUtilities.charsToEscapes(buf.toString());\n\n\t\t\t\tif(lastWasInput)\n\t\t\t\t\tappend(charStr);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tappend(\"\\ntextArea.setSelectedText(\\\"\" + charStr);\n\t\t\t\t\tlastWasInput = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ handleMessage() method\n\t\tpublic void handleMessage(EBMessage msg)\n\t\t{\n\t\t\tif(msg instanceof BufferUpdate)\n\t\t\t{\n\t\t\t\tBufferUpdate bmsg = (BufferUpdate)msg;\n\t\t\t\tif(bmsg.getWhat() == BufferUpdate.CLOSED)\n\t\t\t\t{\n\t\t\t\t\tif(bmsg.getBuffer() == buffer)\n\t\t\t\t\t\tstopRecording(view);\n\t\t\t\t}\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ append() method\n\t\tprivate void append(String str)\n\t\t{\n\t\t\tbuffer.insert(buffer.getLength(),str);\n\t\t} //}}}\n\n\t\t//{{{ dispose() method\n\t\tprivate void dispose()\n\t\t{\n\t\t\tif(lastWasInput)\n\t\t\t{\n\t\t\t\tlastWasInput = false;\n\t\t\t\tappend(\"\\\");\");\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < buffer.getLineCount(); i++)\n\t\t\t{\n\t\t\t\tbuffer.indentLine(i,true,true);\n\t\t\t}\n\n\t\t\tEditBus.removeFromBus(this);\n\n\t\t\t// setting the message to 'null' causes the status bar to\n\t\t\t// check if a recording is in progress\n\t\t\tview.getStatus().setMessage(null);\n\t\t} //}}}\n\t} //}}}\n\n\t//{{{ Handler class\n\t/**\n\t * Encapsulates creating and invoking macros in arbitrary scripting languages\n\t * @since jEdit 4.0pre6\n\t */\n\tpublic static abstract class Handler\n\t{\n\t\t//{{{ getName() method\n\t\tpublic String getName()\n\t\t{\n\t\t\treturn name;\n\t\t} //}}}\n\n\t\t//{{{ getLabel() method\n\t\tpublic String getLabel()\n\t\t{\n\t\t\treturn label;\n\t\t} //}}}\n\n\t\t//{{{ accept() method\n\t\tpublic boolean accept(String path)\n\t\t{\n\t\t\treturn filter.isMatch(MiscUtilities.getFileName(path));\n\t\t} //}}}\n\n\t\t//{{{ createMacro() method\n\t\tpublic abstract Macro createMacro(String macroName, String path);\n\t\t//}}}\n\n\t\t//{{{ runMacro() method\n\t\t/**\n\t\t * Runs the specified macro.\n\t\t * @param view The view - may be null.\n\t\t * @param macro The macro.\n\t\t */\n\t\tpublic abstract void runMacro(View view, Macro macro);\n\t\t//}}}\n\n\t\t//{{{ runMacro() method\n\t\t/**\n\t\t * Runs the specified macro. This method is optional; it is\n\t\t * called if the specified macro is a startup script. The\n\t\t * default behavior is to simply call {@link #runMacro(View,Macros.Macro)}.\n\t\t *\n\t\t * @param view The view - may be null.\n\t\t * @param macro The macro.\n\t\t * @param ownNamespace  A hint indicating whenever functions and\n\t\t * variables defined in the script are to be self-contained, or\n\t\t * made available to other scripts. The macro handler may ignore\n\t\t * this parameter.\n\t\t * @since jEdit 4.1pre3\n\t\t */\n\t\tpublic void runMacro(View view, Macro macro, boolean ownNamespace)\n\t\t{\n\t\t\trunMacro(view,macro);\n\t\t} //}}}\n\n\t\t//{{{ Handler constructor\n\t\tprotected Handler(String name)\n\t\t{\n\t\t\tthis.name = name;\n\t\t\tlabel = jEdit.getProperty(\"macro-handler.\"\n\t\t\t\t+ name + \".label\", name);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfilter = new RE(MiscUtilities.globToRE(\n\t\t\t\t\tjEdit.getProperty(\n\t\t\t\t\t\"macro-handler.\" + name + \".glob\")));\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tthrow new InternalError(\"Missing or invalid glob for handler \" + name);\n\t\t\t}\n\t\t} //}}}\n\n\t\t//{{{ Private members\n\t\tprivate String name;\n\t\tprivate String label;\n\t\tprivate RE filter;\n\t\t//}}}\n\t} //}}}\n\n\t//{{{ BeanShellHandler class\n\tstatic class BeanShellHandler extends Handler\n\t{\n\t\t//{{{ BeanShellHandler constructor\n\t\tBeanShellHandler()\n\t\t{\n\t\t\tsuper(\"beanshell\");\n\t\t} //}}}\n\n\t\t//{{{ createMacro() method\n\t\tpublic Macro createMacro(String macroName, String path)\n\t\t{\n\t\t\t// Remove '.bsh'\n\t\t\tmacroName = macroName.substring(0, macroName.length() - 4);\n\n\t\t\treturn new Macro(this, macroName,\n\t\t\t\tMacro.macroNameToLabel(macroName), path);\n\t\t} //}}}\n\n\t\t//{{{ runMacro() method\n\t\tpublic void runMacro(View view, Macro macro)\n\t\t{\n\t\t\tBeanShell.runScript(view,macro.getPath(),null,true);\n\t\t} //}}}\n\n\t\t//{{{ runMacro() method\n\t\tpublic void runMacro(View view, Macro macro, boolean ownNamespace)\n\t\t{\n\t\t\tBeanShell.runScript(view,macro.getPath(),null,ownNamespace);", "functions": [{"function_name": "showRunScriptDialog", "code": "\tpublic static void showRunScriptDialog(View view)\n\t{\n\t\tString[] paths = GUIUtilities.showVFSFileDialog(view,\n\t\t\tnull,JFileChooser.OPEN_DIALOG,true);\n\t\tif(paths != null)\n\t\t{\n\t\t\tBuffer buffer = view.getBuffer();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbuffer.beginCompoundEdit();\n\nfile_loop:\t\t\tfor(int i = 0; i < paths.length; i++)\n\t\t\t\t\trunScript(view,paths[i],false);\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "TRY", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "LOOP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [5, 9], [8, 10], [8, 11], [5, 12], [9, 13], [5, 14], [6, 15], [9, 16], [16, 17], [9, 18], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 5], [10, 8], [11, 8], [12, 5], [13, 9], [14, 5], [15, 6], [16, 9], [17, 16], [18, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "runScript", "code": "\tpublic static void runScript(View view, String path, boolean ignoreUnknown)\n\t{\n\t\tHandler handler = getHandlerForPathName(path);\n\t\tif(handler != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMacro newMacro = handler.createMacro(\n\t\t\t\t\tMiscUtilities.getFileName(path), path);\n\t\t\t\tnewMacro.invoke(view);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tLog.log(Log.ERROR, Macros.class, e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// only executed if above loop falls\n\t\t// through, ie there is no handler for\n\t\t// this file\n\t\tif(ignoreUnknown)\n\t\t{\n\t\t\tLog.log(Log.NOTICE,Macros.class,path +\n\t\t\t\t\": Cannot find a suitable macro handler\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tLog.log(Log.ERROR,Macros.class,path +\n\t\t\t\t\": Cannot find a suitable macro handler, \"\n\t\t\t\t+ \"assuming BeanShell\");\n\t\t\tgetHandler(\"beanshell\").createMacro(\n\t\t\t\tpath,path).invoke(view);", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [2, 9], [7, 10], [3, 11], [1, 12], [1, 13], [1, 14], [9, 15], [9, 16], [12, 17], [12, 18], [12, 19], [13, 20], [14, 21], [15, 22], [9, 23], [20, 24], [20, 25], [21, 26], [15, 27], [16, 28], [25, 29], [28, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 2], [10, 7], [11, 3], [12, 1], [13, 1], [14, 1], [15, 9], [16, 9], [17, 12], [18, 12], [19, 12], [20, 13], [21, 14], [22, 15], [23, 9], [24, 20], [25, 20], [26, 21], [27, 15], [28, 16], [29, 25], [30, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "message", "code": "\tpublic static void message(Component comp, String message)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,message,\n\t\t\tjEdit.getProperty(\"macro-message.title\"),\n\t\t\tJOptionPane.INFORMATION_MESSAGE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "error", "code": "\tpublic static void error(Component comp, String message)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\tJOptionPane.showMessageDialog(comp,message,\n\t\t\tjEdit.getProperty(\"macro-message.title\"),\n\t\t\tJOptionPane.ERROR_MESSAGE);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [3, 5], [5, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 3], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "input", "code": "\tpublic static String input(Component comp, String prompt)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn input(comp,prompt,null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "input", "code": "\tpublic static String input(Component comp, String prompt, String defaultValue)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn (String)JOptionPane.showInputDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-input.title\"),\n\t\t\tJOptionPane.QUESTION_MESSAGE,null,null,defaultValue);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [6, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "confirm", "code": "\tpublic static int confirm(Component comp, String prompt, int buttons)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn JOptionPane.showConfirmDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-confirm.title\"),buttons,\n\t\t\tJOptionPane.QUESTION_MESSAGE);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [5, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 5], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "confirm", "code": "\tpublic static int confirm(Component comp, String prompt, int buttons, int type)\n\t{\n\t\tGUIUtilities.hideSplashScreen();\n\n\t\treturn JOptionPane.showConfirmDialog(comp,prompt,\n\t\t\tjEdit.getProperty(\"macro-confirm.title\"),buttons,type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [6, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 6], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "loadMacros", "code": "\tpublic static void loadMacros()\n\t{\n\t\tmacroActionSet.removeAllActions();\n\t\tmacroHierarchy.removeAllElements();\n\t\tmacroHash.clear();\n\n\t\tif(jEdit.getJEditHome() != null)\n\t\t{\n\t\t\tsystemMacroPath = MiscUtilities.constructPath(\n\t\t\t\tjEdit.getJEditHome(),\"macros\");\n\t\t\tloadMacros(macroHierarchy,\"\",new File(systemMacroPath));\n\t\t}\n\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings != null)\n\t\t{\n\t\t\tuserMacroPath = MiscUtilities.constructPath(\n\t\t\t\tsettings,\"macros\");\n\t\t\tloadMacros(macroHierarchy,\"\",new File(userMacroPath));\n\t\t}\n\n\t\tEditBus.send(new MacrosChanged(null));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [0, 7], [0, 8], [0, 9], [4, 10], [5, 11], [2, 12], [6, 13], [6, 14], [10, 15], [1, 16], [1, 17], [3, 18], [3, 19], [16, 20], [16, 21], [17, 22], [18, 23], [18, 24], [19, 25], [22, 26], [25, 27], [25, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 0], [8, 0], [9, 0], [10, 4], [11, 5], [12, 2], [13, 6], [14, 6], [15, 10], [16, 1], [17, 1], [18, 3], [19, 3], [20, 16], [21, 16], [22, 17], [23, 18], [24, 18], [25, 19], [26, 22], [27, 25], [28, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "registerHandler", "code": "\tpublic static void registerHandler(Handler handler)\n\t{\n\t\tif (getHandler(handler.getName()) != null)\n\t\t{\n\t\t\tLog.log(Log.ERROR, Macros.class, \"Cannot register more than one macro handler with the same name\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.log(Log.DEBUG,Macros.class,\"Registered \" + handler.getName()\n\t\t\t+ \" macro handler\");\n\t\tmacroHandlers.add(handler);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [5, 8], [5, 9], [6, 10], [6, 11], [1, 12], [9, 13], [11, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 5], [9, 5], [10, 6], [11, 6], [12, 1], [13, 9], [14, 11], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getHandlers", "code": "\tpublic static Handler[] getHandlers()\n\t{\n\t\tHandler[] handlers = new Handler[macroHandlers.size()];\n\t\treturn (Handler[])macroHandlers.toArray(handlers);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getHandlerForPathName", "code": "\tpublic static Handler getHandlerForPathName(String pathName)\n\t{\n\t\tfor (int i = 0; i < macroHandlers.size(); i++)\n\t\t{\n\t\t\tHandler handler = (Handler)macroHandlers.get(i);\n\t\t\tif (handler.accept(pathName))\n\t\t\t\treturn handler;\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [2, 7], [5, 8], [6, 9], [6, 10], [2, 11], [7, 12], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 2], [8, 5], [9, 6], [10, 6], [11, 2], [12, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "getHandler", "code": "\tpublic static Handler getHandler(String name)\n\t{\n\t\tHandler handler = null;\n\t\tfor (int i = 0; i < macroHandlers.size(); i++)\n\t\t{\n\t\t\thandler = (Handler)macroHandlers.get(i);\n\t\t\tif (handler.getName().equals(name)) return handler;\n\t\t}\n\n\t\treturn null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "RETURN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [6, 8], [3, 9], [7, 10], [7, 11], [2, 12], [2, 13], [11, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 6], [9, 3], [10, 7], [11, 7], [12, 2], [13, 2], [14, 11], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "getMacroHierarchy", "code": "\tpublic static Vector getMacroHierarchy()\n\t{\n\t\treturn macroHierarchy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMacroActionSet", "code": "\tpublic static ActionSet getMacroActionSet()\n\t{\n\t\treturn macroActionSet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMacro", "code": "\tpublic static Macro getMacro(String macro)\n\t{\n\t\treturn (Macro)macroHash.get(macro);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "recordTemporaryMacro", "code": "\tpublic static void recordTemporaryMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",new String[0]);\n\t\t\treturn;\n\t\t}\n\t\tif(view.getMacroRecorder() != null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"already-recording\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tBuffer buffer = jEdit.openFile(null,settings + File.separator\n\t\t\t+ \"macros\",\"Temporary_Macro.bsh\",true,null);\n\n\t\tif(buffer == null)\n\t\t\treturn;\n\n\t\tbuffer.remove(0,buffer.getLength());\n\t\tbuffer.insert(0,jEdit.getProperty(\"macro.temp.header\"));\n\n\t\trecordMacro(view,buffer,true);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [1, 11], [3, 12], [4, 13], [7, 14], [8, 15], [8, 16], [9, 17], [9, 18], [11, 19], [2, 20], [3, 21], [12, 22], [12, 23], [4, 24], [13, 25], [5, 26], [15, 27], [20, 28], [20, 29], [20, 30], [20, 31], [20, 32], [3, 33], [4, 34], [31, 35], [31, 36], [33, 37], [34, 38], [33, 39], [34, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 1], [12, 3], [13, 4], [14, 7], [15, 8], [16, 8], [17, 9], [18, 9], [19, 11], [20, 2], [21, 3], [22, 12], [23, 12], [24, 4], [25, 13], [26, 5], [27, 15], [28, 20], [29, 20], [30, 20], [31, 20], [32, 20], [33, 3], [34, 4], [35, 31], [36, 31], [37, 33], [38, 34], [39, 33], [40, 34], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "recordMacro", "code": "\tpublic static void recordMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tif(view.getMacroRecorder() != null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"already-recording\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tString name = GUIUtilities.input(view,\"record\",null);\n\t\tif(name == null)\n\t\t\treturn;\n\n\t\tname = name.replace(' ','_');\n\n\t\tBuffer buffer = jEdit.openFile(null,null,\n\t\t\tMiscUtilities.constructPath(settings,\"macros\",\n\t\t\tname + \".bsh\"),true,null);\n\n\t\tif(buffer == null)\n\t\t\treturn;\n\n\t\tbuffer.remove(0,buffer.getLength());\n\t\tbuffer.insert(0,jEdit.getProperty(\"macro.header\"));\n\n\t\trecordMacro(view,buffer,false);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 12], [1, 13], [0, 14], [3, 15], [3, 16], [5, 17], [6, 18], [9, 19], [10, 20], [10, 21], [11, 22], [11, 23], [13, 24], [2, 25], [14, 26], [16, 27], [4, 28], [5, 29], [17, 30], [17, 31], [6, 32], [18, 33], [7, 34], [20, 35], [25, 36], [25, 37], [25, 38], [25, 39], [25, 40], [26, 41], [26, 42], [28, 43], [28, 44], [5, 45], [6, 46], [38, 47], [38, 48], [45, 49], [46, 50], [47, 51], [45, 52], [46, 53], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 1], [13, 1], [14, 0], [15, 3], [16, 3], [17, 5], [18, 6], [19, 9], [20, 10], [21, 10], [22, 11], [23, 11], [24, 13], [25, 2], [26, 14], [27, 16], [28, 4], [29, 5], [30, 17], [31, 17], [32, 6], [33, 18], [34, 7], [35, 20], [36, 25], [37, 25], [38, 25], [39, 25], [40, 25], [41, 26], [42, 26], [43, 28], [44, 28], [45, 5], [46, 6], [47, 38], [48, 38], [49, 45], [50, 46], [51, 47], [52, 45], [53, 46], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53]]}, {"function_name": "stopRecording", "code": "\tpublic static void stopRecording(View view)\n\t{\n\t\tRecorder recorder = view.getMacroRecorder();\n\n\t\tif(recorder == null)\n\t\t\tGUIUtilities.error(view,\"macro-not-recording\",null);\n\t\telse\n\t\t{\n\t\t\tview.setMacroRecorder(null);\n\t\t\tif(!recorder.temporary)\n\t\t\t\tview.setBuffer(recorder.buffer);\n\t\t\trecorder.dispose();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [2, 8], [1, 9], [1, 10], [6, 11], [6, 12], [5, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 2], [9, 1], [10, 1], [11, 6], [12, 6], [13, 5], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "runTemporaryMacro", "code": "\tpublic static void runTemporaryMacro(View view)\n\t{\n\t\tString settings = jEdit.getSettingsDirectory();\n\n\t\tif(settings == null)\n\t\t{\n\t\t\tGUIUtilities.error(view,\"no-settings\",new String[0]);\n\t\t\treturn;\n\t\t}\n\n\t\tString path = MiscUtilities.constructPath(\n\t\t\tjEdit.getSettingsDirectory(),\"macros\",\n\t\t\t\"Temporary_Macro.bsh\");\n\n\t\tHandler handler = getHandler(\"beanshell\");\n\t\tMacro temp = handler.createMacro(path,path);\n\n\t\tBuffer buffer = view.getBuffer();\n\n\t\ttry\n\t\t{\n\t\t\tbuffer.beginCompoundEdit();\n\t\t\ttemp.invoke(view);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\t/* I already wrote a comment expaining this in\n\t\t\t * Macro.invoke(). */\n\t\t\tif(buffer.insideCompoundEdit())\n\t\t\t\tbuffer.endCompoundEdit();", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [6, 10], [9, 11], [1, 12], [1, 13], [2, 14], [3, 15], [4, 16], [5, 17], [6, 18], [10, 19], [7, 20], [9, 21], [16, 22], [17, 23], [17, 24], [17, 25], [6, 26], [26, 27], [26, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 6], [11, 9], [12, 1], [13, 1], [14, 2], [15, 3], [16, 4], [17, 5], [18, 6], [19, 10], [20, 7], [21, 9], [22, 16], [23, 17], [24, 17], [25, 17], [26, 6], [27, 26], [28, 26], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "runLastMacro", "code": "\tpublic static void runLastMacro(View view)\n\t{\n\t\tif(lastMacro == null)\n\t\t\tview.getToolkit().beep();\n\t\telse\n\t\t\tlastMacro.invoke(view);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "loadMacros", "code": "\tprivate static void loadMacros(Vector vector, String path, File directory)\n\t{\n\t\tFile[] macroFiles = directory.listFiles();\n\t\tif(macroFiles == null || macroFiles.length == 0)\n\t\t\treturn;\n\n\t\tfor(int i = 0; i < macroFiles.length; i++)\n\t\t{\n\t\t\tFile file = macroFiles[i];\n\t\t\tString fileName = file.getName();\n\t\t\tif(file.isHidden())\n\t\t\t{\n\t\t\t\t/* do nothing! */\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(file.isDirectory())\n\t\t\t{\n\t\t\t\tString submenuName = fileName.replace('_',' ');\n\t\t\t\tVector submenu = null;\n\t\t\t\t//{{{ try to merge with an existing menu first\n\t\t\t\tfor(int j = 0; j < vector.size(); j++)\n\t\t\t\t{\n\t\t\t\t\tObject obj = vector.get(j);\n\t\t\t\t\tif(obj instanceof Vector)\n\t\t\t\t\t{\n\t\t\t\t\t\tVector vec = (Vector)obj;\n\t\t\t\t\t\tif(((String)vec.get(0)).equals(submenuName))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsubmenu = vec;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} //}}}\n\t\t\t\tif(submenu == null)\n\t\t\t\t{\n\t\t\t\t\tsubmenu = new Vector();\n\t\t\t\t\tsubmenu.addElement(submenuName);\n\t\t\t\t\tvector.addElement(submenu);\n\t\t\t\t}\n\n\t\t\t\tloadMacros(submenu,path + fileName + '/',file);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tHandler handler = getHandlerForPathName(file.getPath());\n\n\t\t\t\tif(handler == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tMacro newMacro = handler.createMacro(\n\t\t\t\t\t\tpath + fileName, file.getPath());\n\t\t\t\t\tvector.addElement(newMacro);\n\t\t\t\t\tmacroActionSet.addAction(newMacro);\n\t\t\t\t\tmacroHash.put(newMacro.getName(),newMacro);\n\t\t\t\t}\n\t\t\t\tcatch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR, Macros.class, e);\n\t\t\t\t\tmacroHandlers.remove(handler);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "BINARY_OP", "CALL", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BREAK_CONTINUE", "CALL", "TRY", "IF", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "CATCH", "VAR_DECL", "BREAK_CONTINUE", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "BREAK_CONTINUE", "CALL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [1, 10], [1, 11], [1, 12], [9, 13], [9, 14], [3, 15], [10, 16], [10, 17], [1, 18], [13, 19], [14, 20], [16, 21], [10, 22], [11, 23], [16, 24], [16, 25], [16, 26], [16, 27], [16, 28], [16, 29], [16, 30], [24, 31], [24, 32], [25, 33], [25, 34], [16, 35], [27, 36], [28, 37], [24, 38], [24, 39], [24, 40], [34, 41], [26, 42], [35, 43], [36, 44], [28, 45], [28, 46], [37, 47], [29, 48], [30, 49], [31, 50], [31, 51], [38, 52], [32, 53], [42, 54], [43, 55], [43, 56], [27, 57], [27, 58], [27, 59], [45, 60], [28, 61], [49, 62], [49, 63], [53, 64], [53, 65], [59, 66], [45, 67], [45, 68], [46, 69], [67, 70], [67, 71], [67, 72], [71, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 1], [11, 1], [12, 1], [13, 9], [14, 9], [15, 3], [16, 10], [17, 10], [18, 1], [19, 13], [20, 14], [21, 16], [22, 10], [23, 11], [24, 16], [25, 16], [26, 16], [27, 16], [28, 16], [29, 16], [30, 16], [31, 24], [32, 24], [33, 25], [34, 25], [35, 16], [36, 27], [37, 28], [38, 24], [39, 24], [40, 24], [41, 34], [42, 26], [43, 35], [44, 36], [45, 28], [46, 28], [47, 37], [48, 29], [49, 30], [50, 31], [51, 31], [52, 38], [53, 32], [54, 42], [55, 43], [56, 43], [57, 27], [58, 27], [59, 27], [60, 45], [61, 28], [62, 49], [63, 49], [64, 53], [65, 53], [66, 59], [67, 45], [68, 45], [69, 46], [70, 67], [71, 67], [72, 67], [73, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "recordMacro", "code": "\tprivate static void recordMacro(View view, Buffer buffer, boolean temporary)\n\t{\n\t\tHandler handler = getHandler(\"beanshell\");\n\t\tString path = buffer.getPath();\n\t\tlastMacro = handler.createMacro(path,path);\n\n\t\tview.setMacroRecorder(new Recorder(view,buffer,temporary));\n\n\t\t// setting the message to 'null' causes the status bar to check\n\t\t// if a recording is in progress\n\t\tview.getStatus().setMessage(null);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [6, 9], [7, 10], [8, 11], [1, 12], [2, 13], [9, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 6], [10, 7], [11, 8], [12, 1], [13, 2], [14, 9], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}], "label": 1}
{"sample_id": "xalan-2.5-7263", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xml/utils/ElemDesc.java", "language": "java", "name": "org.apache.xml.utils.ElemDesc", "code": "class ElemDesc\n{\n\n  /** Table of attributes for the element */\n  Hashtable m_attrs = null;\n\n  /** Element's flags, describing the role this element plays during\n   * formatting of the document. This is used as a bitvector; more than one flag\n   * may be set at a time, bitwise-ORed together. Mnemonic and bits\n   * have been assigned to the flag values. NOTE: Some bits are\n   * currently assigned multiple mnemonics; it is the caller's\n   * responsibility to disambiguate these if necessary. */\n  int m_flags;\n\n  /** Defines mnemonic and bit-value for the EMPTY flag */\n  static final int EMPTY = (1 << 1);\n\n  /** Defines mnemonic and bit-value for the FLOW flag  */\n  static final int FLOW = (1 << 2);\n\n  /** Defines mnemonic and bit-value for the BLOCK flag          */\n  static final int BLOCK = (1 << 3);\n\n  /** Defines mnemonic and bit-value for the BLOCKFORM  flag         */\n  static final int BLOCKFORM = (1 << 4);\n\n  /** Defines mnemonic and bit-value for the BLOCKFORMFIELDSET flag          */\n  static final int BLOCKFORMFIELDSET = (1 << 5);\n\n  /** Defines mnemonic and bit-value for the CDATA flag         */\n  static final int CDATA = (1 << 6);\n\n  /** Defines mnemonic and bit-value for the PCDATA flag          */\n  static final int PCDATA = (1 << 7);\n\n  /** Defines mnemonic and bit-value for the RAW flag         */\n  static final int RAW = (1 << 8);\n\n  /** Defines mnemonic and bit-value for the INLINE flag          */\n  static final int INLINE = (1 << 9);\n\n  /** Defines mnemonic and bit-value for the INLINEA flag          */\n  static final int INLINEA = (1 << 10);\n\n  /** Defines mnemonic and bit-value for the INLINELABEL flag          */\n  static final int INLINELABEL = (1 << 11);\n\n  /** Defines mnemonic and bit-value for the FONTSTYLE flag          */\n  static final int FONTSTYLE = (1 << 12);\n\n  /** Defines mnemonic and bit-value for the PHRASE flag          */\n  static final int PHRASE = (1 << 13);\n\n  /** Defines mnemonic and bit-value for the FORMCTRL flag         */\n  static final int FORMCTRL = (1 << 14);\n\n  /** Defines mnemonic and bit-value for the SPECIAL flag         */\n  static final int SPECIAL = (1 << 15);\n\n  /** Defines mnemonic and bit-value for the ASPECIAL flag         */\n  static final int ASPECIAL = (1 << 16);\n\n  /** Defines mnemonic and bit-value for the HEADMISC flag         */\n  static final int HEADMISC = (1 << 17);\n\n  /** Defines mnemonic and bit-value for the HEAD flag         */\n  static final int HEAD = (1 << 18);\n\n  /** Defines mnemonic and bit-value for the LIST flag         */\n  static final int LIST = (1 << 19);\n\n  /** Defines mnemonic and bit-value for the PREFORMATTED flag         */\n  static final int PREFORMATTED = (1 << 20);\n\n  /** Defines mnemonic and bit-value for the WHITESPACESENSITIVE flag         */\n  static final int WHITESPACESENSITIVE = (1 << 21);\n\n  /** Defines mnemonic and bit-value for the ATTRURL flag         */\n  static final int ATTRURL = (1 << 1);\n\n  /** Defines mnemonic and bit-value for the ATTREMPTY flag         */\n  static final int ATTREMPTY = (1 << 2);\n\n  /**\n   * Construct an ElementDescription with an initial set of flags.\n   *\n   * @param flags Element flags\n   * @see m_flags\n   */\n  ElemDesc(int flags)\n  {\n    m_flags = flags;\n  }\n\n  /**\n   * \"is (this element described by these flags)\".\n   * \n   * This might more properly be called areFlagsSet(). It accepts an\n   * integer (being used as a bitvector) and checks whether all the \n   * corresponding bits are set in our internal flags. Note that this\n   * test is performed as a bitwise AND, not an equality test, so a\n   * 0 bit in the input means \"don't test\", not \"must be set false\".\n   *\n   * @param flags Vector of flags to compare against this element's flags\n   *\n   * @return true if the flags set in the parameter are also set in the\n   * element's stored flags.\n   * \n   * @see m_flags\n   * @see isAttrFlagSet\n   */\n  boolean is(int flags)\n  {\n    return (m_flags & flags) != 0;\n  }\n\n  /**\n   * Set a new attribute for this element \n   *\n   *\n   * @param name Attribute name\n   * @param flags Attibute flags\n   */\n  void setAttr(String name, int flags)\n  {\n\n    if (null == m_attrs)\n      m_attrs = new Hashtable();\n\n    m_attrs.put(name, new Integer(flags));\n  }\n\n  /**\n   * Find out if a flag is set in a given attribute of this element \n   *\n   *\n   * @param name Attribute name\n   * @param flags Flag to check\n   *\n   * @return True if the flag is set in the attribute. Returns false\n   * if the attribute is not found \n   * @see m_flags\n   */\n  boolean isAttrFlagSet(String name, int flags)\n  {\n\n    if (null != m_attrs)\n    {\n      Integer _flags = (Integer) m_attrs.get(name);\n\n      if (null != _flags)\n      {\n        return (_flags.intValue() & flags) != 0;\n      }\n    }\n\n    return false;", "functions": [{"function_name": "is", "code": "  boolean is(int flags)\n  {\n    return (m_flags & flags) != 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setAttr", "code": "  void setAttr(String name, int flags)\n  {\n\n    if (null == m_attrs)\n      m_attrs = new Hashtable();\n\n    m_attrs.put(name, new Integer(flags));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [4, 6], [1, 7], [5, 8], [7, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 4], [7, 1], [8, 5], [9, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "isAttrFlagSet", "code": "  boolean isAttrFlagSet(String name, int flags)\n  {\n\n    if (null != m_attrs)\n    {\n      Integer _flags = (Integer) m_attrs.get(name);\n\n      if (null != _flags)\n      {\n        return (_flags.intValue() & flags) != 0;\n      }\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [2, 7], [2, 8], [6, 9], [7, 10], [7, 11], [10, 12], [11, 13], [8, 14], [13, 15], [13, 16], [16, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 2], [8, 2], [9, 6], [10, 7], [11, 7], [12, 10], [13, 11], [14, 8], [15, 13], [16, 13], [17, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "ElemDesc", "code": "  ElemDesc(int flags)\n  {\n    m_flags = flags;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 1}
{"sample_id": "xalan-2.6-7680", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xml/dtm/ref/sax2dtm/SAX2DTM.java", "language": "java", "name": "org.apache.xml.dtm.ref.sax2dtm.SAX2DTM", "code": "public class SAX2DTM extends DTMDefaultBaseIterators\n        implements EntityResolver, DTDHandler, ContentHandler, ErrorHandler,\n                   DeclHandler, LexicalHandler\n{\n  /** Set true to monitor SAX events and similar diagnostic info. */\n  private static final boolean DEBUG = false;\n\n  /**\n   * If we're building the model incrementally on demand, we need to\n   * be able to tell the source when to send us more data.\n   *\n   * Note that if this has not been set, and you attempt to read ahead\n   * of the current build point, we'll probably throw a null-pointer\n   * exception. We could try to wait-and-retry instead, as a very poor\n   * fallback, but that has all the known problems with multithreading\n   * on multiprocessors and we Don't Want to Go There.\n   *\n   * @see setIncrementalSAXSource\n   */\n  private IncrementalSAXSource m_incrementalSAXSource = null;\n\n  /**\n   * All the character content, including attribute values, are stored in\n   * this buffer.\n   *\n   * %REVIEW% Should this have an option of being shared across DTMs?\n   * Sequentially only; not threadsafe... Currently, I think not.\n   *\n   * %REVIEW% Initial size was pushed way down to reduce weight of RTFs.\n   * pending reduction in number of RTF DTMs. Now that we're sharing a DTM\n   * between RTFs, and tail-pruning... consider going back to the larger/faster.\n   *\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  protected FastStringBuffer m_chars;\n\n  /** This vector holds offset and length data.\n   */\n  protected SuballocatedIntVector m_data;\n\n  /** The parent stack, needed only for construction.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected IntStack m_parents;\n\n  /** The current previous node, needed only for construction time.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected int m_previous = 0;\n\n  /** Namespace support, only relevent at construction time.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected java.util.Vector m_prefixMappings =\n    new java.util.Vector();\n\n  /** Namespace support, only relevent at construction time.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected IntStack m_contextIndexes;\n\n  /** Type of next characters() event within text block in prgress. */\n  transient protected int m_textType = DTM.TEXT_NODE;\n\n  /**\n   * Type of coalesced text block. See logic in the characters()\n   * method.\n   */\n  transient protected int m_coalescedTextType = DTM.TEXT_NODE;\n\n  /** The SAX Document locator */\n  transient protected Locator m_locator = null;\n\n  /** The SAX Document system-id */\n  transient private String m_systemId = null;\n\n  /** We are inside the DTD.  This is used for ignoring comments.  */\n  transient protected boolean m_insideDTD = false;\n\n  /** Tree Walker for dispatchToEvents. */\n  protected DTMTreeWalker m_walker = new DTMTreeWalker();\n\n  /** pool of string values that come as strings. */\n  protected DTMStringPool m_valuesOrPrefixes;\n\n  /** End document has been reached.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  protected boolean m_endDocumentOccured = false;\n\n  /** Data or qualified name values, one array element for each node. */\n  protected SuballocatedIntVector m_dataOrQName;\n\n  /**\n   * This table holds the ID string to node associations, for\n   * XML IDs.\n   */\n  protected Hashtable m_idAttributes = new Hashtable();\n\n  /**\n   * fixed dom-style names.\n   */\n\n  /**\n   * Vector of entities.  Each record is composed of four Strings:\n   *  publicId, systemID, notationName, and name.\n   */\n  private Vector m_entities = null;\n\n  /** m_entities public ID offset. */\n  private static final int ENTITY_FIELD_PUBLICID = 0;\n\n  /** m_entities system ID offset. */\n  private static final int ENTITY_FIELD_SYSTEMID = 1;\n\n  /** m_entities notation name offset. */\n  private static final int ENTITY_FIELD_NOTATIONNAME = 2;\n\n  /** m_entities name offset. */\n  private static final int ENTITY_FIELD_NAME = 3;\n\n  /** Number of entries per record for m_entities. */\n  private static final int ENTITY_FIELDS_PER = 4;\n\n  /**\n   * The starting offset within m_chars for the text or\n   * CDATA_SECTION node currently being acumulated,\n   * or -1 if there is no text node in progress\n   */\n  protected int m_textPendingStart = -1;\n\n  /**\n   * Describes whether information about document source location\n   * should be maintained or not.\n   * \n   * Made protected for access by SAX2RTFDTM.\n   */\n  protected boolean m_useSourceLocationProperty = false;\n\n  /**\n   * Describes whether information about document source location\n   * should be maintained or not. This static flag is set by TransformerFactoryImpl.\n   */\n  protected static boolean m_source_location = false;\n\n   /** Made protected for access by SAX2RTFDTM.\n   */\n  protected StringVector m_sourceSystemId;\n   /** Made protected for access by SAX2RTFDTM.\n   */\n  protected IntVector m_sourceLine;\n   /** Made protected for access by SAX2RTFDTM.\n   */\n  protected IntVector m_sourceColumn;\n  \n  /**\n   * Construct a SAX2DTM object using the default block size.\n   *\n   * @param mgr The DTMManager who owns this DTM.\n   * @param source the JAXP 1.1 Source object for this DTM.\n   * @param dtmIdentity The DTM identity ID for this DTM.\n   * @param whiteSpaceFilter The white space filter for this DTM, which may\n   *                         be null.\n   * @param xstringfactory XMLString factory for creating character content.\n   * @param doIndexing true if the caller considers it worth it to use\n   *                   indexing schemes.\n   */\n  public SAX2DTM(DTMManager mgr, Source source, int dtmIdentity,\n                 DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing)\n  {\n\n    this(mgr, source, dtmIdentity, whiteSpaceFilter,\n          xstringfactory, doIndexing, DEFAULT_BLOCKSIZE, true, false);\n  }\n  \n  /**\n   * Construct a SAX2DTM object ready to be constructed from SAX2\n   * ContentHandler events.\n   *\n   * @param mgr The DTMManager who owns this DTM.\n   * @param source the JAXP 1.1 Source object for this DTM.\n   * @param dtmIdentity The DTM identity ID for this DTM.\n   * @param whiteSpaceFilter The white space filter for this DTM, which may\n   *                         be null.\n   * @param xstringfactory XMLString factory for creating character content.\n   * @param doIndexing true if the caller considers it worth it to use\n   *                   indexing schemes.\n   * @param blocksize The block size of the DTM.\n   * @param usePrevsib true if we want to build the previous sibling node array.\n   * @param newNameTable true if we want to use a new ExpandedNameTable for this DTM.\n   */\n  public SAX2DTM(DTMManager mgr, Source source, int dtmIdentity,\n                 DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing,\n                 int blocksize,\n                 boolean usePrevsib,\n                 boolean newNameTable)\n  {\n\n    super(mgr, source, dtmIdentity, whiteSpaceFilter,\n          xstringfactory, doIndexing, blocksize, usePrevsib, newNameTable);\n\n    if (blocksize <= 64) \n    {\n      m_data = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS_SMALL);\n      m_dataOrQName = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS_SMALL);\n      m_valuesOrPrefixes = new DTMStringPool(16);\n      m_chars = new FastStringBuffer(7, 10);\n      m_contextIndexes = new IntStack(4);\n      m_parents = new IntStack(4);\n    }\n    else\n    {\n      m_data = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS);\n      m_dataOrQName = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS);\n      m_valuesOrPrefixes = new DTMStringPool();\n      m_chars = new FastStringBuffer(10, 13);\n      m_contextIndexes = new IntStack();\n      m_parents = new IntStack();\n    }\n         \n\n\n    \n    m_useSourceLocationProperty = m_source_location;\n    m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector() : null;\n \tm_sourceLine = (m_useSourceLocationProperty) ?  new IntVector() : null;\n    m_sourceColumn = (m_useSourceLocationProperty) ?  new IntVector() : null; \n  }\n\n  /**\n   * Set whether information about document source location\n   * should be maintained or not. \n   */\n  public static void setUseSourceLocation(boolean useSourceLocation)\n  {\n    m_source_location = useSourceLocation;\n  }\n\n  /**\n   * Get the data or qualified name for the given node identity.\n   *\n   * @param identity The node identity.\n   *\n   * @return The data or qualified name, or DTM.NULL.\n   */\n  protected int _dataOrQName(int identity)\n  {\n\n    if (identity < m_size)\n      return m_dataOrQName.elementAt(identity);\n\n    while (true)\n    {\n      boolean isMore = nextNode();\n\n      if (!isMore)\n        return NULL;\n      else if (identity < m_size)\n        return m_dataOrQName.elementAt(identity);\n    }\n  }\n\n  /**\n   * Ask the CoRoutine parser to doTerminate and clear the reference.\n   */\n  public void clearCoRoutine()\n  {\n    clearCoRoutine(true);\n  }\n\n  /**\n   * Ask the CoRoutine parser to doTerminate and clear the reference. If\n   * the CoRoutine parser has already been cleared, this will have no effect.\n   *\n   * @param callDoTerminate true of doTerminate should be called on the\n   * coRoutine parser.\n   */\n  public void clearCoRoutine(boolean callDoTerminate)\n  {\n\n    if (null != m_incrementalSAXSource)\n    {\n      if (callDoTerminate)\n        m_incrementalSAXSource.deliverMoreNodes(false);\n\n      m_incrementalSAXSource = null;\n    }\n  }\n\n  /**\n   * Bind a IncrementalSAXSource to this DTM. If we discover we need nodes\n   * that have not yet been built, we will ask this object to send us more\n   * events, and it will manage interactions with its data sources.\n   *\n   * Note that we do not actually build the IncrementalSAXSource, since we don't\n   * know what source it's reading from, what thread that source will run in,\n   * or when it will run.\n   *\n   * @param incrementalSAXSource The parser that we want to recieve events from\n   * on demand.\n   * @param appCoRID The CoRoutine ID for the application.\n   */\n  public void setIncrementalSAXSource(IncrementalSAXSource incrementalSAXSource)\n  {\n\n    m_incrementalSAXSource = incrementalSAXSource;\n\n    incrementalSAXSource.setContentHandler(this);\n    incrementalSAXSource.setLexicalHandler(this);\n    incrementalSAXSource.setDTDHandler(this);\n\n  }\n\n  /**\n   * getContentHandler returns \"our SAX builder\" -- the thing that\n   * someone else should send SAX events to in order to extend this\n   * DTM model.\n   *\n   * %REVIEW% Should this return null if constrution already done/begun?\n   *\n   * @return null if this model doesn't respond to SAX events,\n   * \"this\" if the DTM object has a built-in SAX ContentHandler,\n   * the IncrementalSAXSource if we're bound to one and should receive\n   * the SAX stream via it for incremental build purposes...\n   */\n  public ContentHandler getContentHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (ContentHandler) m_incrementalSAXSource;\n    else\n      return this;\n  }\n\n  /**\n   * Return this DTM's lexical handler.\n   *\n   * %REVIEW% Should this return null if constrution already done/begun?\n   *\n   * @return null if this model doesn't respond to lexical SAX events,\n   * \"this\" if the DTM object has a built-in SAX ContentHandler,\n   * the IncrementalSAXSource if we're bound to one and should receive\n   * the SAX stream via it for incremental build purposes...\n   */\n  public LexicalHandler getLexicalHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (LexicalHandler) m_incrementalSAXSource;\n    else\n      return this;\n  }\n\n  /**\n   * Return this DTM's EntityResolver.\n   *\n   * @return null if this model doesn't respond to SAX entity ref events.\n   */\n  public EntityResolver getEntityResolver()\n  {\n    return this;\n  }\n\n  /**\n   * Return this DTM's DTDHandler.\n   *\n   * @return null if this model doesn't respond to SAX dtd events.\n   */\n  public DTDHandler getDTDHandler()\n  {\n    return this;\n  }\n\n  /**\n   * Return this DTM's ErrorHandler.\n   *\n   * @return null if this model doesn't respond to SAX error events.\n   */\n  public ErrorHandler getErrorHandler()\n  {\n    return this;\n  }\n\n  /**\n   * Return this DTM's DeclHandler.\n   *\n   * @return null if this model doesn't respond to SAX Decl events.\n   */\n  public DeclHandler getDeclHandler()\n  {\n    return this;\n  }\n\n  /**\n   * @return true iff we're building this model incrementally (eg\n   * we're partnered with a IncrementalSAXSource) and thus require that the\n   * transformation and the parse run simultaneously. Guidance to the\n   * DTMManager.\n   */\n  public boolean needsTwoThreads()\n  {\n    return null != m_incrementalSAXSource;\n  }\n\n  /**\n   * Directly call the\n   * characters method on the passed ContentHandler for the\n   * for the definition of a node's string-value). Multiple calls to the\n   * ContentHandler's characters methods may well occur for a single call to\n   * this method.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   * @param normalize true if the content should be normalized according to\n   * the rules for the XPath\n   * function.\n   *\n   * @throws SAXException\n   */\n  public void dispatchCharactersEvents(int nodeHandle, ContentHandler ch,\n                                       boolean normalize)\n          throws SAXException\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    \n    if (identity == DTM.NULL)\n      return;\n    \n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = m_dataOrQName.elementAt(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      if(normalize)\n        m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n      else\n        m_chars.sendSAXcharacters(ch, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int startNode = identity;\n\n        identity = firstChild;\n\n        do {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        } while (DTM.NULL != identity && (_parent(identity) >= startNode));\n\n        if (length > 0)\n        {\n          if(normalize)\n            m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n          else\n            m_chars.sendSAXcharacters(ch, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n\n        String str = m_valuesOrPrefixes.indexToString(dataIndex);\n\n          if(normalize)\n            FastStringBuffer.sendNormalizedSAXcharacters(str.toCharArray(),\n                                                         0, str.length(), ch);\n          else\n            ch.characters(str.toCharArray(), 0, str.length());\n      }\n    }\n  }\n\n\n  /**\n   * Given a node handle, return its DOM-style node name. This will\n   * include names such as #text or #document.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   * %REVIEW% Document when empty string is possible...\n   * %REVIEW-COMMENT% It should never be empty, should it?\n   */\n  public String getNodeName(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);\n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                     \n\n    if (0 == namespaceID)\n    {\n      int type = getNodeType(nodeHandle);\n\n      if (type == DTM.NAMESPACE_NODE)\n      {\n        if (null == m_expandedNameTable.getLocalName(expandedTypeID))\n          return \"xmlns\";\n        else\n          return \"xmlns:\" + m_expandedNameTable.getLocalName(expandedTypeID);\n      }\n      else if (0 == m_expandedNameTable.getLocalNameID(expandedTypeID))\n      {\n        return m_fixednames[type];\n      }\n      else\n        return m_expandedNameTable.getLocalName(expandedTypeID);\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);\n    }\n  }\n\n  /**\n   * Given a node handle, return the XPath node name.  This should be\n   * the name as described by the XPath data model, NOT the DOM-style\n   * name.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   */\n  public String getNodeNameX(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);    \n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                      \n\n    if (0 == namespaceID)\n    {\n      String name = m_expandedNameTable.getLocalName(expandedTypeID);\n\n      if (name == null)\n        return \"\";\n      else\n        return name;\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);\n    }\n  }\n\n  /**\n   *     5. [specified] A flag indicating whether this attribute was actually\n   *        specified in the start-tag of its element, or was defaulted from the\n   *        DTD.\n   *\n   * @param the attribute handle\n   *\n   * @param attributeHandle Must be a valid handle to an attribute node.\n   * @return <code>true</code> if the attribute was specified;\n   *         <code>false</code> if it was defaulted.\n   */\n  public boolean isAttributeSpecified(int attributeHandle)\n  {\n\n  }\n\n  /**\n   *   A document type declaration information item has the following properties:\n   *\n   *     1. [system identifier] The system identifier of the external subset, if\n   *        it exists. Otherwise this property has no value.\n   *\n   * @return the system identifier String object, or null if there is none.\n   */\n  public String getDocumentTypeDeclarationSystemIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;\n  }\n\n  /**\n   * Get the next node identity value in the list, and call the iterator\n   * if it hasn't been added yet.\n   *\n   * @param identity The node identity (index).\n   * @return identity+1, or DTM.NULL.\n   */\n  protected int getNextNodeIdentity(int identity)\n  {\n\n    identity += 1;\n\n    while (identity >= m_size)\n    {\n      if (null == m_incrementalSAXSource)\n        return DTM.NULL;\n\n      nextNode();\n    }\n\n    return identity;\n  }\n\n  /**\n   * Directly create SAX parser events from a subtree.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n\n    DTMTreeWalker treeWalker = m_walker;\n    ContentHandler prevCH = treeWalker.getcontentHandler();\n\n    if (null != prevCH)\n    {\n      treeWalker = new DTMTreeWalker();\n    }\n\n    treeWalker.setcontentHandler(ch);\n    treeWalker.setDTM(this);\n\n    try\n    {\n      treeWalker.traverse(nodeHandle);\n    }\n    finally\n    {\n      treeWalker.setcontentHandler(null);\n    }\n  }\n\n  /**\n   * Get the number of nodes that have been added.\n   *\n   * @return The number of that are currently in the tree.\n   */\n  public int getNumberOfNodes()\n  {\n    return m_size;\n  }\n\n  /**\n   * This method should try and build one or more nodes in the table.\n   *\n   * @return The true if a next node is found or false if\n   *         there are no more nodes.\n   */\n  protected boolean nextNode()\n  {\n\n    if (null == m_incrementalSAXSource)\n      return false;\n\n    if (m_endDocumentOccured)\n    {\n      clearCoRoutine();\n\n      return false;\n    }\n\n    Object gotMore = m_incrementalSAXSource.deliverMoreNodes(true);\n\n    if (!(gotMore instanceof Boolean))\n    {\n      if(gotMore instanceof RuntimeException)\n      {\n        throw (RuntimeException)gotMore;\n      }\n      else if(gotMore instanceof Exception)\n      {\n        throw new WrappedRuntimeException((Exception)gotMore);\n      }\n      clearCoRoutine();\n\n      return false;\n\n    }\n\n    if (gotMore != Boolean.TRUE)\n    {\n\n\n    }\n\n    return true;\n  }\n\n  /**\n   * Bottleneck determination of text type.\n   *\n   * @param type oneof DTM.XXX_NODE.\n   *\n   * @return true if this is a text or cdata section.\n   */\n  private final boolean isTextType(int type)\n  {\n    return (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type);\n  }\n\n\n  /**\n   * Construct the node map from the node.\n   *\n   * @param type raw type ID, one of DTM.XXX_NODE.\n   * @param expandedTypeID The expended type ID.\n   * @param parentIndex The current parent index.\n   * @param previousSibling The previous sibling index.\n   * @param dataOrPrefix index into m_data table, or string handle.\n   * @param canHaveFirstChild true if the node can have a first child, false\n   *                          if it is atomic.\n   *\n   * @return The index identity of the node that was added.\n   */\n  protected int addNode(int type, int expandedTypeID,\n                        int parentIndex, int previousSibling,\n                        int dataOrPrefix, boolean canHaveFirstChild)\n  {\n    int nodeIndex = m_size++;\n\n    if(m_dtmIdent.size() == (nodeIndex>>>DTMManager.IDENT_DTM_NODE_BITS))\n    {\n      addNewDTMID(nodeIndex);\n    }\n\n    m_firstch.addElement(canHaveFirstChild ? NOTPROCESSED : DTM.NULL);\n    m_nextsib.addElement(NOTPROCESSED);\n    m_parent.addElement(parentIndex);\n    m_exptype.addElement(expandedTypeID);\n    m_dataOrQName.addElement(dataOrPrefix);\n\n    if (m_prevsib != null) {\n      m_prevsib.addElement(previousSibling);\n    }\n\n    if (DTM.NULL != previousSibling) {\n      m_nextsib.setElementAt(nodeIndex,previousSibling);\n    }\n\n    if (m_locator != null && m_useSourceLocationProperty) {\n      setSourceLocation();\n    }\n\n\n    switch(type)\n    {\n    case DTM.NAMESPACE_NODE:\n      declareNamespaceInContext(parentIndex,nodeIndex);\n      break;\n    case DTM.ATTRIBUTE_NODE:\n      break;\n    default:\n      if (DTM.NULL == previousSibling && DTM.NULL != parentIndex) {\n        m_firstch.setElementAt(nodeIndex,parentIndex);\n      }\n      break;\n    }\n\n    return nodeIndex;\n  }\n\n  /**\n   * Get a new DTM ID beginning at the specified node index.\n   * @param  nodeIndex The node identity at which the new DTM ID will begin\n   * addressing.\n   */\n  protected void addNewDTMID(int nodeIndex) {\n    try\n    {\n      if(m_mgr==null)\n        throw new ClassCastException();\n                              \n      DTMManagerDefault mgrD=(DTMManagerDefault)m_mgr;\n      int id=mgrD.getFirstFreeDTMID();\n      mgrD.addDTM(this,id,nodeIndex);\n      m_dtmIdent.addElement(id<<DTMManager.IDENT_DTM_NODE_BITS);\n    }\n    catch(ClassCastException e)\n    {\n    }\n  }\n\n  /**\n    * Migrate a DTM built with an old DTMManager to a new DTMManager.\n    * After the migration, the new DTMManager will treat the DTM as\n    * one that is built by itself.\n    * This is used to support DTM sharing between multiple transformations.\n    * @param manager the DTMManager\n    */\n  public void migrateTo(DTMManager manager) {\n    super.migrateTo(manager);\n    \n    int numDTMs = m_dtmIdent.size();\n    int dtmId = m_mgrDefault.getFirstFreeDTMID();\n    int nodeIndex = 0;\n    for (int i = 0; i < numDTMs; i++)\n    {     \n      m_dtmIdent.setElementAt(dtmId << DTMManager.IDENT_DTM_NODE_BITS, i);\n      m_mgrDefault.addDTM(this, dtmId, nodeIndex);\n      dtmId++;\n      nodeIndex += (1 << DTMManager.IDENT_DTM_NODE_BITS);\n    }\n  }\n\n  /**\n   * Store the source location of the current node.  This method must be called\n   * as every node is added to the DTM or for no node.\n   */\n  protected void setSourceLocation() {\n    m_sourceSystemId.addElement(m_locator.getSystemId());\n    m_sourceLine.addElement(m_locator.getLineNumber());\n    m_sourceColumn.addElement(m_locator.getColumnNumber());\n\n    if (m_sourceSystemId.size() != m_size) {\n        System.err.println(\"CODING ERROR in Source Location: \" + m_size\n                           + \" != \"\n                            + m_sourceSystemId.size());\n        System.exit(1);\n    }\n  }\n\n  /**\n   * Given a node handle, return its node value. This is mostly\n   * as defined by the DOM, but may ignore some conveniences.\n   * <p>\n   *\n   * @param nodeHandle The node id.\n   * @return String Value of this node, or null if not\n   * meaningful for this node type.\n   */\n  public String getNodeValue(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_chars.getString(offset, length);\n    }\n    else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type\n             || DTM.DOCUMENT_NODE == type)\n    {\n      return null;\n    }\n    else\n    {\n      int dataIndex = _dataOrQName(identity);\n\n      if (dataIndex < 0)\n      {\n        dataIndex = -dataIndex;\n        dataIndex = m_data.elementAt(dataIndex + 1);\n      }\n\n      return m_valuesOrPrefixes.indexToString(dataIndex);\n    }\n  }\n\n  /**\n   * Given a node handle, return its XPath-style localname.\n   * (As defined in Namespaces, this is the portion of the name after any\n   * colon character).\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Local name of this node.\n   */\n  public String getLocalName(int nodeHandle)\n  {\n    return m_expandedNameTable.getLocalName(_exptype(makeNodeIdentity(nodeHandle)));\n  }\n\n  /**\n   * The getUnparsedEntityURI function returns the URI of the unparsed\n   * entity with the specified name in the same document as the context\n   * node (see [3.3 Unparsed Entities]). It returns the empty string if\n   * there is no such entity.\n   * <p>\n   * XML processors may choose to use the System Identifier (if one\n   * is provided) to resolve the entity, rather than the URI in the\n   * Public Identifier. The details are dependent on the processor, and\n   * we would have to support some form of plug-in resolver to handle\n   * this properly. Currently, we simply return the System Identifier if\n   * present, and hope that it a usable URI or that our caller can\n   * map it to one.\n   * TODO: Resolve Public Identifiers... or consider changing function name.\n   * <p>\n   * If we find a relative URI\n   * reference, XML expects it to be resolved in terms of the base URI\n   * of the document. The DOM doesn't do that for us, and it isn't\n   * entirely clear whether that should be done here; currently that's\n   * pushed up to a higher level of our application. (Note that DOM Level\n   * 1 didn't store the document's base URI.)\n   * TODO: Consider resolving Relative URIs.\n   * <p>\n   * (The DOM's statement that \"An XML processor may choose to\n   * completely expand entities before the structure model is passed\n   * to the DOM\" refers only to parsed entities, not unparsed, and hence\n   * doesn't affect this function.)\n   *\n   * @param name A string containing the Entity Name of the unparsed\n   * entity.\n   *\n   * @return String containing the URI of the Unparsed Entity, or an\n   * empty string if no such entity exists.\n   */\n  public String getUnparsedEntityURI(String name)\n  {\n\n    String url = \"\";\n\n    if (null == m_entities)\n      return url;\n\n    int n = m_entities.size();\n\n    for (int i = 0; i < n; i += ENTITY_FIELDS_PER)\n    {\n      String ename = (String) m_entities.elementAt(i + ENTITY_FIELD_NAME);\n\n      if (null != ename && ename.equals(name))\n      {\n        String nname = (String) m_entities.elementAt(i\n                         + ENTITY_FIELD_NOTATIONNAME);\n\n        if (null != nname)\n        {\n\n          url = (String) m_entities.elementAt(i + ENTITY_FIELD_SYSTEMID);\n\n          if (null == url)\n          {\n            url = (String) m_entities.elementAt(i + ENTITY_FIELD_PUBLICID);\n          }\n        }\n\n        break;\n      }\n    }\n\n    return url;\n  }\n\n  /**\n   * Given a namespace handle, return the prefix that the namespace decl is\n   * mapping.\n   * Given a node handle, return the prefix used to map to the namespace.\n   *\n   * <p> %REVIEW% Are you sure you want \"\" for no prefix?  </p>\n   * <p> %REVIEW-COMMENT% I think so... not totally sure. -sb  </p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String prefix of this node's name, or \"\" if no explicit\n   * namespace prefix was given.\n   */\n  public String getPrefix(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (0 == prefixIndex)\n        return \"\";\n      else\n      {\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n    else if (DTM.ATTRIBUTE_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (prefixIndex < 0)\n      {\n        prefixIndex = m_data.elementAt(-prefixIndex);\n\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n\n    return \"\";\n  }\n\n  /**\n   * Retrieves an attribute node by by qualified name and namespace URI.\n   *\n   * @param nodeHandle int Handle of the node upon which to look up this attribute..\n   * @param namespaceURI The namespace URI of the attribute to\n   *   retrieve, or null.\n   * @param name The local name of the attribute to\n   *   retrieve.\n   * @return The attribute node handle with the specified name (\n   *   <code>nodeName</code>) or <code>DTM.NULL</code> if there is no such\n   *   attribute.\n   */\n  public int getAttributeNode(int nodeHandle, String namespaceURI,\n                              String name)\n  {\n\n    for (int attrH = getFirstAttribute(nodeHandle); DTM.NULL != attrH;\n            attrH = getNextAttribute(attrH))\n    {\n      String attrNS = getNamespaceURI(attrH);\n      String attrName = getLocalName(attrH);\n      boolean nsMatch = namespaceURI == attrNS\n                        || (namespaceURI != null\n                            && namespaceURI.equals(attrNS));\n\n      if (nsMatch && name.equals(attrName))\n        return attrH;\n    }\n\n    return DTM.NULL;\n  }\n\n  /**\n   * Return the public identifier of the external subset,\n   * normalized as described in 4.2.2 External Entities [XML]. If there is\n   * no external subset or if it has no public identifier, this property\n   * has no value.\n   *\n   * @param the document type declaration handle\n   *\n   * @return the public identifier String object, or null if there is none.\n   */\n  public String getDocumentTypeDeclarationPublicIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;\n  }\n\n  /**\n   * Given a node handle, return its DOM-style namespace URI\n   * (As defined in Namespaces, this is the declared URI which this node's\n   * prefix -- or default in lieu thereof -- was mapped to.)\n   *\n   * <p>%REVIEW% Null or \"\"? -sb</p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String URI value of this node's namespace, or null if no\n   * namespace was resolved.\n   */\n  public String getNamespaceURI(int nodeHandle)\n  {\n\n    return m_expandedNameTable.getNamespace(_exptype(makeNodeIdentity(nodeHandle)));\n  }\n\n  /**\n   * Get the string-value of a node as a String object\n   * for the definition of a node's string-value).\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return A string object that represents the string-value of the given node.\n   */\n  public XMLString getStringValue(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    int type;\n      type = DTM.NULL;\n    \n      type= _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_xstrf.newstr(m_chars, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int startNode = identity;\n\n        identity = firstChild;\n\n        do {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        } while (DTM.NULL != identity && (_parent(identity) >= startNode));\n\n        if (length > 0)\n        {\n          return m_xstrf.newstr(m_chars, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n        return m_xstrf.newstr(m_valuesOrPrefixes.indexToString(dataIndex));\n      }\n    }\n\n    return m_xstrf.emptystr();\n  }\n  \n  /**\n   * Determine if the string-value of a node is whitespace\n   *\n   * @param nodeHandle The node Handle.\n   *\n   * @return Return true if the given node is whitespace.\n   */\n  public boolean isWhitespace(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    int type;\n      type = DTM.NULL;\n    \n      type= _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_chars.isWhitespace(offset, length);\n    }\n    return false;\n  }\n\n  /**\n   * Returns the <code>Element</code> whose <code>ID</code> is given by\n   * <code>elementId</code>. If no such element exists, returns\n   * <code>DTM.NULL</code>. Behavior is not defined if more than one element\n   * has this <code>ID</code>. Attributes (including those\n   * with the name \"ID\") are not of type ID unless so defined by DTD/Schema\n   * information available to the DTM implementation.\n   * Implementations that do not know whether attributes are of type ID or\n   * not are expected to return <code>DTM.NULL</code>.\n   *\n   * <p>%REVIEW% Presumably IDs are still scoped to a single document,\n   * and this operation searches only within a single document, right?\n   * Wouldn't want collisions between DTMs in the same process.</p>\n   *\n   * @param elementId The unique <code>id</code> value for an element.\n   * @return The handle of the matching element.\n   */\n  public int getElementById(String elementId)\n  {\n\n    Integer intObj;\n    boolean isMore = true;\n\n    do\n    {\n      intObj = (Integer) m_idAttributes.get(elementId);\n\n      if (null != intObj)\n        return makeNodeHandle(intObj.intValue());\n\n      if (!isMore || m_endDocumentOccured)\n        break;\n\n      isMore = nextNode();\n    }\n    while (null == intObj);\n\n    return DTM.NULL;\n  }\n\n  /**\n   * Get a prefix either from the qname or from the uri mapping, or just make\n   * one up!\n   *\n   * @param qname The qualified name, which may be null.\n   * @param uri The namespace URI, which may be null.\n   *\n   * @return The prefix if there is one, or null.\n   */\n  public String getPrefix(String qname, String uri)\n  {\n\n    String prefix;\n    int uriIndex = -1;\n\n    if (null != uri && uri.length() > 0)\n    {\n\n      do\n      {\n        uriIndex = m_prefixMappings.indexOf(uri, ++uriIndex);\n      } while ( (uriIndex & 0x01) == 0);\n\n      if (uriIndex >= 0)\n      {\n        prefix = (String) m_prefixMappings.elementAt(uriIndex - 1);\n      }\n      else if (null != qname)\n      {\n        int indexOfNSSep = qname.indexOf(':');\n\n        if (qname.equals(\"xmlns\"))\n          prefix = \"\";\n        else if (qname.startsWith(\"xmlns:\"))\n          prefix = qname.substring(indexOfNSSep + 1);\n        else\n          prefix = (indexOfNSSep > 0)\n                   ? qname.substring(0, indexOfNSSep) : null;\n      }\n      else\n      {\n        prefix = null;\n      }\n    }\n    else if (null != qname)\n    {\n      int indexOfNSSep = qname.indexOf(':');\n\n      if (indexOfNSSep > 0)\n      {\n        if (qname.startsWith(\"xmlns:\"))\n          prefix = qname.substring(indexOfNSSep + 1);\n        else\n          prefix = qname.substring(0, indexOfNSSep);\t\n      }\n      else\n      {\n      \tif (qname.equals(\"xmlns\"))\n      \t  prefix = \"\";\n      \telse\n      \t  prefix = null;\n      }\n    }\n    else\n    {\n      prefix = null;\n    }\n\n    return prefix;\n  }\n  \n  /**\n   * Get a prefix either from the uri mapping, or just make\n   * one up!\n   *\n   * @param uri The namespace URI, which may be null.\n   *\n   * @return The prefix if there is one, or null.\n   */\n  public int getIdForNamespace(String uri)\n  {\n\n     return m_valuesOrPrefixes.stringToIndex(uri);\n    \n  }\n\n    /**\n   * Get a prefix either from the qname or from the uri mapping, or just make\n   * one up!\n   *\n   * @param qname The qualified name, which may be null.\n   * @param uri The namespace URI, which may be null.\n   *\n   * @return The prefix if there is one, or null.\n   */\n  public String getNamespaceURI(String prefix)\n  {\n\n    String uri = \"\";\n    int prefixIndex = m_contextIndexes.peek() - 1 ;\n\n    if(null == prefix)\n      prefix = \"\";\n\n      do\n      {\n        prefixIndex = m_prefixMappings.indexOf(prefix, ++prefixIndex);\n      } while ( (prefixIndex >= 0) && (prefixIndex & 0x01) == 0x01);\n\n      if (prefixIndex > -1)\n      {\n        uri = (String) m_prefixMappings.elementAt(prefixIndex + 1);\n      }\n\n\n    return uri;\n  }\n\n  /**\n   * Set an ID string to node association in the ID table.\n   *\n   * @param id The ID string.\n   * @param elem The associated element handle.\n   */\n  public void setIDAttribute(String id, int elem)\n  {\n    m_idAttributes.put(id, new Integer(elem));\n  }\n\n  /**\n   * Check whether accumulated text should be stripped; if not,\n   * append the appropriate flavor of text/cdata node.\n   */\n  protected void charactersFlush()\n  {\n\n    {\n      int length = m_chars.size() - m_textPendingStart;\n      boolean doStrip = false;\n\n      if (getShouldStripWhitespace())\n      {\n        doStrip = m_chars.isWhitespace(m_textPendingStart, length);\n      }\n\n      if (doStrip){}\n      else\n      {\n        int exName = m_expandedNameTable.getExpandedTypeID(DTM.TEXT_NODE);\n        int dataIndex = m_data.size();\n\n        m_previous = addNode(m_coalescedTextType, exName,\n                             m_parents.peek(), m_previous, dataIndex, false);\n\n        m_data.addElement(m_textPendingStart);\n        m_data.addElement(length);\n      }\n\n      m_textPendingStart = -1;\n      m_textType = m_coalescedTextType = DTM.TEXT_NODE;\n    }\n  }\n\n\n  /**\n   * Resolve an external entity.\n   *\n   * <p>Always return null, so that the parser will use the system\n   * identifier provided in the XML document.  This method implements\n   * the SAX default behaviour: application writers can override it\n   * in a subclass to do special translations such as catalog lookups\n   * or URI redirection.</p>\n   *\n   * @param publicId The public identifer, or null if none is\n   *                 available.\n   * @param systemId The system identifier provided in the XML\n   *                 document.\n   * @return The new input source, or null to require the\n   *         default behaviour.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.EntityResolver#resolveEntity\n   *\n   * @throws SAXException\n   */\n  public InputSource resolveEntity(String publicId, String systemId)\n          throws SAXException\n  {\n    return null;\n  }\n\n\n  /**\n   * Receive notification of a notation declaration.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass if they wish to keep track of the notations\n   * declared in a document.</p>\n   *\n   * @param name The notation name.\n   * @param publicId The notation public identifier, or null if not\n   *                 available.\n   * @param systemId The notation system identifier.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.DTDHandler#notationDecl\n   *\n   * @throws SAXException\n   */\n  public void notationDecl(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of an unparsed entity declaration.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to keep track of the unparsed entities\n   * declared in a document.</p>\n   *\n   * @param name The entity name.\n   * @param publicId The entity public identifier, or null if not\n   *                 available.\n   * @param systemId The entity system identifier.\n   * @param notationName The name of the associated notation.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   *\n   * @throws SAXException\n   */\n  public void unparsedEntityDecl(\n          String name, String publicId, String systemId, String notationName)\n            throws SAXException\n  {\n\n    if (null == m_entities)\n    {\n      m_entities = new Vector();\n    }\n\n    try\n    {\n      systemId = SystemIDResolver.getAbsoluteURI(systemId,\n                                                 getDocumentBaseURI());\n    }\n    catch (Exception e)\n    {\n      throw new org.xml.sax.SAXException(e);\n    }\n\n    m_entities.addElement(publicId);\n\n    m_entities.addElement(systemId);\n\n    m_entities.addElement(notationName);\n\n    m_entities.addElement(name);\n  }\n\n\n  /**\n   * Receive a Locator object for document events.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass if they wish to store the locator for use\n   * with other document events.</p>\n   *\n   * @param locator A locator for all SAX document events.\n   * @see org.xml.sax.ContentHandler#setDocumentLocator\n   * @see org.xml.sax.Locator\n   */\n  public void setDocumentLocator(Locator locator)\n  {\n    m_locator = locator;\n    m_systemId = locator.getSystemId();\n  }\n\n  /**\n   * Receive notification of the beginning of the document.\n   *\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startDocument\n   */\n  public void startDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"startDocument\");\n\n\t\t\n    int doc = addNode(DTM.DOCUMENT_NODE,\n                      m_expandedNameTable.getExpandedTypeID(DTM.DOCUMENT_NODE),\n                      DTM.NULL, DTM.NULL, 0, true);\n\n    m_parents.push(doc);\n    m_previous = DTM.NULL;\n\n  }\n\n  /**\n   * Receive notification of the end of the document.\n   *\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endDocument\n   */\n  public void endDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endDocument\");\n\n\t\tcharactersFlush();\n\n    m_nextsib.setElementAt(NULL,0);\n\n    if (m_firstch.elementAt(0) == NOTPROCESSED)\n      m_firstch.setElementAt(NULL,0);\n\n    if (DTM.NULL != m_previous)\n      m_nextsib.setElementAt(DTM.NULL,m_previous);\n\n    m_parents = null;\n    m_prefixMappings = null;\n    m_contextIndexes = null;\n\n    m_endDocumentOccured = true;\n    \n    m_locator = null;\n  }\n\n  /**\n   * Receive notification of the start of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each Namespace prefix scope (such as storing the prefix mapping).</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @param uri The Namespace URI mapped to the prefix.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startPrefixMapping\n   */\n  public void startPrefixMapping(String prefix, String uri)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"startPrefixMapping: prefix: \" + prefix + \", uri: \"\n                         + uri);\n\n    if(null == prefix)\n      prefix = \"\";\n  }\n\n  /**\n   * Receive notification of the end of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the end of\n   * each prefix mapping.</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endPrefixMapping\n   */\n  public void endPrefixMapping(String prefix) throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endPrefixMapping: prefix: \" + prefix);\n\n    if(null == prefix)\n      prefix = \"\";\n\n    int index = m_contextIndexes.peek() - 1;\n\n    do\n    {\n      index = m_prefixMappings.indexOf(prefix, ++index);\n    } while ( (index >= 0) && ((index & 0x01) == 0x01) );\n\n\n    if (index > -1)\n    {\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index);\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index + 1);\n    }\n\n  }\n\n  /**\n   * Check if a declaration has already been made for a given prefix.\n   *\n   * @param prefix non-null prefix string.\n   *\n   * @return true if the declaration has already been declared in the\n   *         current context.\n   */\n  protected boolean declAlreadyDeclared(String prefix)\n  {\n\n    int startDecls = m_contextIndexes.peek();\n    java.util.Vector prefixMappings = m_prefixMappings;\n    int nDecls = prefixMappings.size();\n\n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      String prefixDecl = (String) prefixMappings.elementAt(i);\n\n      if (prefixDecl == null)\n        continue;\n\n      if (prefixDecl.equals(prefix))\n        return true;\n    }\n\n    return false;\n  }\n\n\tboolean m_pastFirstElement=false;\n\n  /**\n   * Receive notification of the start of an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each element (such as allocating a new tree node or writing\n   * output to a file).</p>\n   *\n   * @param name The element type name.\n   *\n   * @param uri The Namespace URI, or the empty string if the\n   *        element has no Namespace URI or if Namespace\n   *        processing is not being performed.\n   * @param localName The local name (without prefix), or the\n   *        empty string if Namespace processing is not being\n   *        performed.\n   * @param qName The qualified name (with prefix), or the\n   *        empty string if qualified names are not available.\n   * @param attributes The specified or defaulted attributes.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startElement\n   */\n  public void startElement(\n          String uri, String localName, String qName, Attributes attributes)\n            throws SAXException\n  {\n   if (DEBUG)\n\t {\n      System.out.println(\"startElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName+\", atts: \" + attributes);\n\n\t\t\tboolean DEBUG_ATTRS=true;\n\t\t\tif(DEBUG_ATTRS & attributes!=null)\n\t\t\t{\n\t\t\t\tint n = attributes.getLength();\n\t\t\t\tif(n==0)\n\t\t\t\t\tSystem.out.println(\"\\tempty attribute list\");\n\t\t\t\telse for (int i = 0; i < n; i++)\n\t\t\t\t\tSystem.out.println(\"\\t attr: uri: \" + attributes.getURI(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", localname: \" + attributes.getLocalName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", qname: \" + attributes.getQName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", type: \" + attributes.getType(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", value: \" + attributes.getValue(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t}\n\t }\n\t\t\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(uri, localName, DTM.ELEMENT_NODE);\n    String prefix = getPrefix(qName, uri);\n    int prefixIndex = (null != prefix)\n                      ? m_valuesOrPrefixes.stringToIndex(qName) : 0;\n\n    int elemNode = addNode(DTM.ELEMENT_NODE, exName,\n                           m_parents.peek(), m_previous, prefixIndex, true);\n\n    if(m_indexing)\n      indexNode(exName, elemNode);\n    \n\n    m_parents.push(elemNode);\n\n    int startDecls = m_contextIndexes.peek();\n    int nDecls = m_prefixMappings.size();\n    int prev = DTM.NULL;\n\n    if(!m_pastFirstElement)\n    {\n      prefix=\"xml\";\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n      m_pastFirstElement=true;\n    }\n\n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      prefix = (String) m_prefixMappings.elementAt(i);\n\n      if (prefix == null)\n        continue;\n\n      String declURL = (String) m_prefixMappings.elementAt(i + 1);\n\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n    }\n\n    int n = attributes.getLength();\n\n    for (int i = 0; i < n; i++)\n    {\n      String attrUri = attributes.getURI(i);\n      String attrQName = attributes.getQName(i);\n      String valString = attributes.getValue(i);\n\n      prefix = getPrefix(attrQName, attrUri);\n\n      int nodeType;\n      \n       String attrLocalName = attributes.getLocalName(i);\n\n      if ((null != attrQName)\n              && (attrQName.equals(\"xmlns\")\n                  || attrQName.startsWith(\"xmlns:\")))\n      {\n        if (declAlreadyDeclared(prefix))\n\n        nodeType = DTM.NAMESPACE_NODE;\n      }\n      else\n      {\n        nodeType = DTM.ATTRIBUTE_NODE;\n\n        if (attributes.getType(i).equalsIgnoreCase(\"ID\"))\n          setIDAttribute(valString, elemNode);\n      }\n\n      if(null == valString)\n        valString = \"\";\n\n      int val = m_valuesOrPrefixes.stringToIndex(valString);\n\n      if (null != prefix)\n      {\n\n        prefixIndex = m_valuesOrPrefixes.stringToIndex(attrQName);\n\n        int dataIndex = m_data.size();\n\n        m_data.addElement(prefixIndex);\n        m_data.addElement(val);\n\n        val = -dataIndex;\n      }\n\n      exName = m_expandedNameTable.getExpandedTypeID(attrUri, attrLocalName, nodeType);\n      prev = addNode(nodeType, exName, elemNode, prev, val,\n                     false);\n    }\n\n    if (DTM.NULL != prev)\n      m_nextsib.setElementAt(DTM.NULL,prev);\n\n    if (null != m_wsfilter)\n    {\n      short wsv = m_wsfilter.getShouldStripSpace(makeNodeHandle(elemNode), this);\n      boolean shouldStrip = (DTMWSFilter.INHERIT == wsv)\n                            ? getShouldStripWhitespace()\n                            : (DTMWSFilter.STRIP == wsv);\n\n      pushShouldStripWhitespace(shouldStrip);\n    }\n\n    m_previous = DTM.NULL;\n\n  }\n\n  /**\n   * Receive notification of the end of an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the end of\n   * each element (such as finalising a tree node or writing\n   * output to a file).</p>\n   *\n   * @param name The element type name.\n   * @param attributes The specified or defaulted attributes.\n   *\n   * @param uri The Namespace URI, or the empty string if the\n   *        element has no Namespace URI or if Namespace\n   *        processing is not being performed.\n   * @param localName The local name (without prefix), or the\n   *        empty string if Namespace processing is not being\n   *        performed.\n   * @param qName The qualified XML 1.0 name (with prefix), or the\n   *        empty string if qualified names are not available.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endElement\n   */\n  public void endElement(String uri, String localName, String qName)\n          throws SAXException\n  {\n   if (DEBUG)\n      System.out.println(\"endElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName);\n\n    charactersFlush();\n\n    m_contextIndexes.quickPop(1);\n\n    int topContextIndex = m_contextIndexes.peek();\n    if (topContextIndex != m_prefixMappings.size()) {\n      m_prefixMappings.setSize(topContextIndex);\n    }\n\n    int lastNode = m_previous;\n\n    m_previous = m_parents.pop();\n\n    if (DTM.NULL == lastNode)\n      m_firstch.setElementAt(DTM.NULL,m_previous);\n    else\n      m_nextsib.setElementAt(DTM.NULL,lastNode);\n\n    popShouldStripWhitespace();\n  }\n\n  /**\n   * Receive notification of character data inside an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method to take specific actions for each chunk of character data\n   * (such as adding the data to a node or buffer, or printing it to\n   * a file).</p>\n   *\n   * @param ch The characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#characters\n   */\n  public void characters(char ch[], int start, int length) throws SAXException\n  {\n    if(true){\n      m_textPendingStart = m_chars.size();\n      m_coalescedTextType = m_textType;\n    }\n    else if (m_textType == DTM.TEXT_NODE)\n    {\n      m_coalescedTextType = DTM.TEXT_NODE;\n    }\n\n    m_chars.append(ch, start, length);\n  }\n\n  /**\n   * Receive notification of ignorable whitespace in element content.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method to take specific actions for each chunk of ignorable\n   * whitespace (such as adding data to a node or buffer, or printing\n   * it to a file).</p>\n   *\n   * @param ch The whitespace characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#ignorableWhitespace\n   */\n  public void ignorableWhitespace(char ch[], int start, int length)\n          throws SAXException\n  {\n\n    characters(ch, start, length);\n  }\n\n  /**\n   * Receive notification of a processing instruction.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param target The processing instruction target.\n   * @param data The processing instruction data, or null if\n   *             none is supplied.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   */\n  public void processingInstruction(String target, String data)\n          throws SAXException\n  {\n    if (DEBUG)\n\t\t System.out.println(\"processingInstruction: target: \" + target +\", data: \"+data);\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(null, target,\n                                         DTM.PROCESSING_INSTRUCTION_NODE);\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(data);\n\n    m_previous = addNode(DTM.PROCESSING_INSTRUCTION_NODE, exName,\n                         m_parents.peek(), m_previous,\n                         dataIndex, false);\n  }\n\n  /**\n   * Receive notification of a skipped entity.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param name The name of the skipped entity.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   */\n  public void skippedEntity(String name) throws SAXException\n  {\n\n  }\n\n\n  /**\n   * Receive notification of a parser warning.\n   *\n   * <p>The default implementation does nothing.  Application writers\n   * may override this method in a subclass to take specific actions\n   * for each warning, such as inserting the message in a log file or\n   * printing it to the console.</p>\n   *\n   * @param e The warning information encoded as an exception.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ErrorHandler#warning\n   * @see org.xml.sax.SAXParseException\n   */\n  public void warning(SAXParseException e) throws SAXException\n  {\n\n    System.err.println(e.getMessage());\n  }\n\n  /**\n   * Receive notification of a recoverable parser error.\n   *\n   * <p>The default implementation does nothing.  Application writers\n   * may override this method in a subclass to take specific actions\n   * for each error, such as inserting the message in a log file or\n   * printing it to the console.</p>\n   *\n   * @param e The warning information encoded as an exception.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ErrorHandler#warning\n   * @see org.xml.sax.SAXParseException\n   */\n  public void error(SAXParseException e) throws SAXException\n  {\n    throw e;\n  }\n\n  /**\n   * Report a fatal XML parsing error.\n   *\n   * <p>The default implementation throws a SAXParseException.\n   * Application writers may override this method in a subclass if\n   * they need to take specific actions for each fatal error (such as\n   * collecting all of the errors into a single report): in any case,\n   * the application must stop all regular processing when this\n   * method is invoked, since the document is no longer reliable, and\n   * the parser may no longer report parsing events.</p>\n   *\n   * @param e The error information encoded as an exception.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ErrorHandler#fatalError\n   * @see org.xml.sax.SAXParseException\n   */\n  public void fatalError(SAXParseException e) throws SAXException\n  {\n    throw e;\n  }\n\n\n  /**\n   * Report an element type declaration.\n   *\n   * <p>The content model will consist of the string \"EMPTY\", the\n   * string \"ANY\", or a parenthesised group, optionally followed\n   * by an occurrence indicator.  The model will be normalized so\n   * that all whitespace is removed,and will include the enclosing\n   * parentheses.</p>\n   *\n   * @param name The element type name.\n   * @param model The content model as a normalized string.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void elementDecl(String name, String model) throws SAXException\n  {\n\n  }\n\n  /**\n   * Report an attribute type declaration.\n   *\n   * <p>Only the effective (first) declaration for an attribute will\n   * be reported.  The type will be one of the strings \"CDATA\",\n   * \"ID\", \"IDREF\", \"IDREFS\", \"NMTOKEN\", \"NMTOKENS\", \"ENTITY\",\n   * \"ENTITIES\", or \"NOTATION\", or a parenthesized token group with\n   * the separator \"|\" and all whitespace removed.</p>\n   *\n   * @param eName The name of the associated element.\n   * @param aName The name of the attribute.\n   * @param type A string representing the attribute type.\n   * @param valueDefault A string representing the attribute default\n   *        (\"#IMPLIED\", \"#REQUIRED\", or \"#FIXED\") or null if\n   *        none of these applies.\n   * @param value A string representing the attribute's default value,\n   *        or null if there is none.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void attributeDecl(\n          String eName, String aName, String type, String valueDefault, String value)\n            throws SAXException\n  {\n\n  }\n\n  /**\n   * Report an internal entity declaration.\n   *\n   * <p>Only the effective (first) declaration for each entity\n   * will be reported.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @param value The replacement text of the entity.\n   * @throws SAXException The application may raise an exception.\n   * @see #externalEntityDecl\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void internalEntityDecl(String name, String value)\n          throws SAXException\n  {\n\n  }\n\n  /**\n   * Report a parsed external entity declaration.\n   *\n   * <p>Only the effective (first) declaration for each entity\n   * will be reported.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @param publicId The declared public identifier of the entity, or\n   *        null if none was declared.\n   * @param systemId The declared system identifier of the entity.\n   * @throws SAXException The application may raise an exception.\n   * @see #internalEntityDecl\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void externalEntityDecl(\n          String name, String publicId, String systemId) throws SAXException\n  {\n\n  }\n\n\n  /**\n   * Report the start of DTD declarations, if any.\n   *\n   * <p>Any declarations are assumed to be in the internal subset\n   * unless otherwise indicated by a {@link #startEntity startEntity}\n   * event.</p>\n   *\n   * <p>Note that the start/endDTD events will appear within\n   * the start/endDocument events from ContentHandler and\n   * before the first startElement event.</p>\n   *\n   * @param name The document type name.\n   * @param publicId The declared public identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @param systemId The declared system identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @throws SAXException The application may raise an\n   *            exception.\n   * @see #endDTD\n   * @see #startEntity\n   */\n  public void startDTD(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n    m_insideDTD = true;\n  }\n\n  /**\n   * Report the end of DTD declarations.\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #startDTD\n   */\n  public void endDTD() throws SAXException\n  {\n\n    m_insideDTD = false;\n  }\n\n  /**\n   * Report the beginning of an entity in content.\n   *\n   * <p><strong>NOTE:</entity> entity references in attribute\n   * values -- and the start and end of the document entity --\n   * are never reported.</p>\n   *\n   * <p>The start and end of the external DTD subset are reported\n   * using the pseudo-name \"[dtd]\".  All other events must be\n   * properly nested within start/end entity events.</p>\n   *\n   * <p>Note that skipped entities will be reported through the\n   * {@link org.xml.sax.ContentHandler#skippedEntity skippedEntity}\n   * event, which is part of the ContentHandler interface.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @throws SAXException The application may raise an exception.\n   * @see #endEntity\n   * @see org.xml.sax.ext.DeclHandler#internalEntityDecl\n   * @see org.xml.sax.ext.DeclHandler#externalEntityDecl\n   */\n  public void startEntity(String name) throws SAXException\n  {\n\n  }\n\n  /**\n   * Report the end of an entity.\n   *\n   * @param name The name of the entity that is ending.\n   * @throws SAXException The application may raise an exception.\n   * @see #startEntity\n   */\n  public void endEntity(String name) throws SAXException\n  {\n\n  }\n\n  /**\n   * Report the start of a CDATA section.\n   *\n   * <p>The contents of the CDATA section will be reported through\n   * the regular {@link org.xml.sax.ContentHandler#characters\n   * characters} event.</p>\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #endCDATA\n   */\n  public void startCDATA() throws SAXException\n  {\n    m_textType = DTM.CDATA_SECTION_NODE;\n  }\n\n  /**\n   * Report the end of a CDATA section.\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #startCDATA\n   */\n  public void endCDATA() throws SAXException\n  {\n    m_textType = DTM.TEXT_NODE;\n  }\n\n  /**\n   * Report an XML comment anywhere in the document.\n   *\n   * <p>This callback will be used for comments inside or outside the\n   * document element, including comments in the external DTD\n   * subset (if read).</p>\n   *\n   * @param ch An array holding the characters in the comment.\n   * @param start The starting position in the array.\n   * @param length The number of characters to use from the array.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void comment(char ch[], int start, int length) throws SAXException\n  {\n\n      return;\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(DTM.COMMENT_NODE);\n\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(new String(ch, start,\n                      length));\n\n\n    m_previous = addNode(DTM.COMMENT_NODE, exName,\n                         m_parents.peek(), m_previous, dataIndex, false);\n  }\n\n  /**\n   * Set a run time property for this DTM instance.\n   * \n   * %REVIEW% Now that we no longer use this method to support\n   * getSourceLocatorFor, can we remove it?\n   *\n   * @param property a <code>String</code> value\n   * @param value an <code>Object</code> value\n   */\n  public void setProperty(String property, Object value)\n  {\n  }\n\n  /** Retrieve the SourceLocator associated with a specific node.\n   * This is only meaningful if the XalanProperties.SOURCE_LOCATION flag was\n   * set True using setProperty; if it was never set, or was set false, we\n   * will return null. \n   * \n   * (We _could_ return a locator with the document's base URI and bogus \n   * line/column information. Trying that; see the else clause.)\n   * */\n  public SourceLocator getSourceLocatorFor(int node)\n  {\n    if (m_useSourceLocationProperty)\n    {\n\n      node = makeNodeIdentity(node);\n      \n\n      return new NodeLocator(null,\n                             m_sourceSystemId.elementAt(node),\n                             m_sourceLine.elementAt(node),\n                             m_sourceColumn.elementAt(node));\n    }\n    else if(m_locator!=null)\n    {\n    \treturn new NodeLocator(null,m_locator.getSystemId(),-1,-1);\n    }\n    else if(m_systemId!=null)\n    {\n    \treturn new NodeLocator(null,m_systemId,-1,-1);\n    }\n    return null;", "functions": [{"function_name": "setUseSourceLocation", "code": "  public static void setUseSourceLocation(boolean useSourceLocation)\n  {\n    m_source_location = useSourceLocation;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "_dataOrQName", "code": "  protected int _dataOrQName(int identity)\n  {\n\n    if (identity < m_size)\n      return m_dataOrQName.elementAt(identity);\n\n    while (true)\n    {\n      boolean isMore = nextNode();\n\n      if (!isMore)\n        return NULL;\n      else if (identity < m_size)\n        return m_dataOrQName.elementAt(identity);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [5, 9], [7, 10], [7, 11], [10, 12], [10, 13], [8, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 5], [10, 7], [11, 7], [12, 10], [13, 10], [14, 8], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "clearCoRoutine", "code": "  public void clearCoRoutine()\n  {\n    clearCoRoutine(true);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clearCoRoutine", "code": "  public void clearCoRoutine(boolean callDoTerminate)\n  {\n\n    if (null != m_incrementalSAXSource)\n    {\n      if (callDoTerminate)\n        m_incrementalSAXSource.deliverMoreNodes(false);\n\n      m_incrementalSAXSource = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [6, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 6], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setIncrementalSAXSource", "code": "  public void setIncrementalSAXSource(IncrementalSAXSource incrementalSAXSource)\n  {\n\n    m_incrementalSAXSource = incrementalSAXSource;\n\n    incrementalSAXSource.setContentHandler(this);\n    incrementalSAXSource.setLexicalHandler(this);\n    incrementalSAXSource.setDTDHandler(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getContentHandler", "code": "  public ContentHandler getContentHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (ContentHandler) m_incrementalSAXSource;\n    else\n      return this;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 0], [2, 1], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLexicalHandler", "code": "  public LexicalHandler getLexicalHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (LexicalHandler) m_incrementalSAXSource;\n    else\n      return this;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 0], [2, 1], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getEntityResolver", "code": "  public EntityResolver getEntityResolver()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDTDHandler", "code": "  public DTDHandler getDTDHandler()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getErrorHandler", "code": "  public ErrorHandler getErrorHandler()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDeclHandler", "code": "  public DeclHandler getDeclHandler()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "needsTwoThreads", "code": "  public boolean needsTwoThreads()\n  {\n    return null != m_incrementalSAXSource;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispatchCharactersEvents", "code": "  public void dispatchCharactersEvents(int nodeHandle, ContentHandler ch,\n                                       boolean normalize)\n          throws SAXException\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    \n    if (identity == DTM.NULL)\n      return;\n    \n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = m_dataOrQName.elementAt(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      if(normalize)\n        m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n      else\n        m_chars.sendSAXcharacters(ch, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int startNode = identity;\n\n        identity = firstChild;\n\n        do {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        } while (DTM.NULL != identity && (_parent(identity) >= startNode));\n\n        if (length > 0)\n        {\n          if(normalize)\n            m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n          else\n            m_chars.sendSAXcharacters(ch, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n\n        String str = m_valuesOrPrefixes.indexToString(dataIndex);\n\n          if(normalize)\n            FastStringBuffer.sendNormalizedSAXcharacters(str.toCharArray(),\n                                                         0, str.length(), ch);\n          else\n            ch.characters(str.toCharArray(), 0, str.length());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [3, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [2, 17], [4, 18], [11, 19], [11, 20], [19, 21], [11, 22], [11, 23], [11, 24], [11, 25], [11, 26], [12, 27], [13, 28], [13, 29], [14, 30], [15, 31], [16, 32], [19, 33], [19, 34], [19, 35], [19, 36], [22, 37], [23, 38], [11, 39], [30, 40], [35, 41], [22, 42], [37, 43], [23, 44], [38, 45], [38, 46], [25, 47], [26, 48], [40, 49], [33, 50], [33, 51], [34, 52], [41, 53], [36, 54], [23, 55], [44, 56], [23, 57], [45, 58], [50, 59], [50, 60], [50, 61], [51, 62], [51, 63], [51, 64], [35, 65], [35, 66], [42, 67], [42, 68], [55, 69], [44, 70], [44, 71], [57, 72], [65, 73], [44, 74], [70, 75], [73, 76], [74, 77], [75, 78], [71, 79], [76, 80], [77, 81], [70, 82], [81, 83], [82, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 3], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 2], [18, 4], [19, 11], [20, 11], [21, 19], [22, 11], [23, 11], [24, 11], [25, 11], [26, 11], [27, 12], [28, 13], [29, 13], [30, 14], [31, 15], [32, 16], [33, 19], [34, 19], [35, 19], [36, 19], [37, 22], [38, 23], [39, 11], [40, 30], [41, 35], [42, 22], [43, 37], [44, 23], [45, 38], [46, 38], [47, 25], [48, 26], [49, 40], [50, 33], [51, 33], [52, 34], [53, 41], [54, 36], [55, 23], [56, 44], [57, 23], [58, 45], [59, 50], [60, 50], [61, 50], [62, 51], [63, 51], [64, 51], [65, 35], [66, 35], [67, 42], [68, 42], [69, 55], [70, 44], [71, 44], [72, 57], [73, 65], [74, 44], [75, 70], [76, 73], [77, 74], [78, 75], [79, 71], [80, 76], [81, 77], [82, 70], [83, 81], [84, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "getNodeName", "code": "  public String getNodeName(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);\n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                     \n\n    if (0 == namespaceID)\n    {\n      int type = getNodeType(nodeHandle);\n\n      if (type == DTM.NAMESPACE_NODE)\n      {\n        if (null == m_expandedNameTable.getLocalName(expandedTypeID))\n          return \"xmlns\";\n        else\n          return \"xmlns:\" + m_expandedNameTable.getLocalName(expandedTypeID);\n      }\n      else if (0 == m_expandedNameTable.getLocalNameID(expandedTypeID))\n      {\n        return m_fixednames[type];\n      }\n      else\n        return m_expandedNameTable.getLocalName(expandedTypeID);\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [2, 12], [3, 13], [6, 14], [7, 15], [9, 16], [9, 17], [15, 18], [8, 19], [16, 20], [16, 21], [9, 22], [10, 23], [7, 24], [7, 25], [19, 26], [20, 27], [16, 28], [21, 29], [21, 30], [22, 31], [22, 32], [22, 33], [24, 34], [31, 35], [32, 36], [33, 37], [33, 38], [35, 39], [35, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 2], [13, 3], [14, 6], [15, 7], [16, 9], [17, 9], [18, 15], [19, 8], [20, 16], [21, 16], [22, 9], [23, 10], [24, 7], [25, 7], [26, 19], [27, 20], [28, 16], [29, 21], [30, 21], [31, 22], [32, 22], [33, 22], [34, 24], [35, 31], [36, 32], [37, 33], [38, 33], [39, 35], [40, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "getNodeNameX", "code": "  public String getNodeNameX(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);    \n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                      \n\n    if (0 == namespaceID)\n    {\n      String name = m_expandedNameTable.getLocalName(expandedTypeID);\n\n      if (name == null)\n        return \"\";\n      else\n        return name;\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [2, 12], [3, 13], [6, 14], [7, 15], [9, 16], [9, 17], [9, 18], [15, 19], [8, 20], [17, 21], [18, 22], [10, 23], [7, 24], [7, 25], [20, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 2], [13, 3], [14, 6], [15, 7], [16, 9], [17, 9], [18, 9], [19, 15], [20, 8], [21, 17], [22, 18], [23, 10], [24, 7], [25, 7], [26, 20], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "isAttributeSpecified", "code": "  public boolean isAttributeSpecified(int attributeHandle)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentTypeDeclarationSystemIdentifier", "code": "  public String getDocumentTypeDeclarationSystemIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNextNodeIdentity", "code": "  protected int getNextNodeIdentity(int identity)\n  {\n\n    identity += 1;\n\n    while (identity >= m_size)\n    {\n      if (null == m_incrementalSAXSource)\n        return DTM.NULL;\n\n      nextNode();\n    }\n\n    return identity;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [2, 6], [5, 7], [2, 8], [6, 9], [6, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 2], [7, 5], [8, 2], [9, 6], [10, 6], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "dispatchToEvents", "code": "  public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n\n    DTMTreeWalker treeWalker = m_walker;\n    ContentHandler prevCH = treeWalker.getcontentHandler();\n\n    if (null != prevCH)\n    {\n      treeWalker = new DTMTreeWalker();\n    }\n\n    treeWalker.setcontentHandler(ch);\n    treeWalker.setDTM(this);\n\n    try\n    {\n      treeWalker.traverse(nodeHandle);\n    }\n    finally\n    {\n      treeWalker.setcontentHandler(null);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 10], [1, 11], [9, 12], [3, 13], [10, 14], [2, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 1], [11, 1], [12, 9], [13, 3], [14, 10], [15, 2], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getNumberOfNodes", "code": "  public int getNumberOfNodes()\n  {\n    return m_size;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "nextNode", "code": "  protected boolean nextNode()\n  {\n\n    if (null == m_incrementalSAXSource)\n      return false;\n\n    if (m_endDocumentOccured)\n    {\n      clearCoRoutine();\n\n      return false;\n    }\n\n    Object gotMore = m_incrementalSAXSource.deliverMoreNodes(true);\n\n    if (!(gotMore instanceof Boolean))\n    {\n      if(gotMore instanceof RuntimeException)\n      {\n        throw (RuntimeException)gotMore;\n      }\n      else if(gotMore instanceof Exception)\n      {\n        throw new WrappedRuntimeException((Exception)gotMore);\n      }\n      clearCoRoutine();\n\n      return false;\n\n    }\n\n    if (gotMore != Boolean.TRUE)\n    {\n\n\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [6, 10], [6, 11], [3, 12], [3, 13], [4, 14], [5, 15], [10, 16], [11, 17], [12, 18], [3, 19], [13, 20], [13, 21], [14, 22], [15, 23], [5, 24], [20, 25], [13, 26], [20, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 6], [11, 6], [12, 3], [13, 3], [14, 4], [15, 5], [16, 10], [17, 11], [18, 12], [19, 3], [20, 13], [21, 13], [22, 14], [23, 15], [24, 5], [25, 20], [26, 13], [27, 20], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "isTextType", "code": "  private final boolean isTextType(int type)\n  {\n    return (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addNode", "code": "  protected int addNode(int type, int expandedTypeID,\n                        int parentIndex, int previousSibling,\n                        int dataOrPrefix, boolean canHaveFirstChild)\n  {\n    int nodeIndex = m_size++;\n\n    if(m_dtmIdent.size() == (nodeIndex>>>DTMManager.IDENT_DTM_NODE_BITS))\n    {\n      addNewDTMID(nodeIndex);\n    }\n\n    m_firstch.addElement(canHaveFirstChild ? NOTPROCESSED : DTM.NULL);\n    m_nextsib.addElement(NOTPROCESSED);\n    m_parent.addElement(parentIndex);\n    m_exptype.addElement(expandedTypeID);\n    m_dataOrQName.addElement(dataOrPrefix);\n\n    if (m_prevsib != null) {\n      m_prevsib.addElement(previousSibling);\n    }\n\n    if (DTM.NULL != previousSibling) {\n      m_nextsib.setElementAt(nodeIndex,previousSibling);\n    }\n\n    if (m_locator != null && m_useSourceLocationProperty) {\n      setSourceLocation();\n    }\n\n\n    switch(type)\n    {\n    case DTM.NAMESPACE_NODE:\n      declareNamespaceInContext(parentIndex,nodeIndex);\n      break;\n    case DTM.ATTRIBUTE_NODE:\n      break;\n    default:\n      if (DTM.NULL == previousSibling && DTM.NULL != parentIndex) {\n        m_firstch.setElementAt(nodeIndex,parentIndex);\n      }\n      break;\n    }\n\n    return nodeIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [4, 15], [5, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [6, 22], [2, 23], [2, 24], [2, 25], [2, 26], [14, 27], [16, 28], [21, 29], [22, 30], [22, 31], [24, 32], [2, 33], [3, 34], [27, 35], [4, 36], [5, 37], [6, 38], [32, 39], [32, 40], [24, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 4], [16, 5], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 6], [23, 2], [24, 2], [25, 2], [26, 2], [27, 14], [28, 16], [29, 21], [30, 22], [31, 22], [32, 24], [33, 2], [34, 3], [35, 27], [36, 4], [37, 5], [38, 6], [39, 32], [40, 32], [41, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "addNewDTMID", "code": "  protected void addNewDTMID(int nodeIndex) {\n    try\n    {\n      if(m_mgr==null)\n        throw new ClassCastException();\n                              \n      DTMManagerDefault mgrD=(DTMManagerDefault)m_mgr;\n      int id=mgrD.getFirstFreeDTMID();\n      mgrD.addDTM(this,id,nodeIndex);\n      m_dtmIdent.addElement(id<<DTMManager.IDENT_DTM_NODE_BITS);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [6, 9], [6, 10], [7, 11], [4, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 6], [10, 6], [11, 7], [12, 4], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "migrateTo", "code": "  public void migrateTo(DTMManager manager) {\n    super.migrateTo(manager);\n    \n    int numDTMs = m_dtmIdent.size();\n    int dtmId = m_mgrDefault.getFirstFreeDTMID();\n    int nodeIndex = 0;\n    for (int i = 0; i < numDTMs; i++)\n    {     \n      m_dtmIdent.setElementAt(dtmId << DTMManager.IDENT_DTM_NODE_BITS, i);\n      m_mgrDefault.addDTM(this, dtmId, nodeIndex);\n      dtmId++;\n      nodeIndex += (1 << DTMManager.IDENT_DTM_NODE_BITS);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [1, 10], [1, 11], [1, 12], [1, 13], [10, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 1], [11, 1], [12, 1], [13, 1], [14, 10], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setSourceLocation", "code": "  protected void setSourceLocation() {\n    m_sourceSystemId.addElement(m_locator.getSystemId());\n    m_sourceLine.addElement(m_locator.getLineNumber());\n    m_sourceColumn.addElement(m_locator.getColumnNumber());\n\n    if (m_sourceSystemId.size() != m_size) {\n        System.err.println(\"CODING ERROR in Source Location: \" + m_size\n                           + \" != \"\n                            + m_sourceSystemId.size());\n        System.exit(1);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [0, 5], [2, 6], [3, 7], [4, 8], [5, 9], [1, 10], [1, 11], [10, 12], [11, 13], [13, 14], [13, 15], [15, 16], [15, 17], [17, 18], [1, 0], [2, 1], [3, 0], [4, 0], [5, 0], [6, 2], [7, 3], [8, 4], [9, 5], [10, 1], [11, 1], [12, 10], [13, 11], [14, 13], [15, 13], [16, 15], [17, 15], [18, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "getNodeValue", "code": "  public String getNodeValue(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_chars.getString(offset, length);\n    }\n    else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type\n             || DTM.DOCUMENT_NODE == type)\n    {\n      return null;\n    }\n    else\n    {\n      int dataIndex = _dataOrQName(identity);\n\n      if (dataIndex < 0)\n      {\n        dataIndex = -dataIndex;\n        dataIndex = m_data.elementAt(dataIndex + 1);\n      }\n\n      return m_valuesOrPrefixes.indexToString(dataIndex);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CALL", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [3, 13], [5, 14], [5, 15], [5, 16], [5, 17], [7, 18], [7, 19], [8, 20], [14, 21], [15, 22], [17, 23], [19, 24], [19, 25], [9, 26], [10, 27], [11, 28], [22, 29], [16, 30], [26, 31], [15, 32], [15, 33], [31, 34], [32, 35], [35, 36], [36, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 3], [14, 5], [15, 5], [16, 5], [17, 5], [18, 7], [19, 7], [20, 8], [21, 14], [22, 15], [23, 17], [24, 19], [25, 19], [26, 9], [27, 10], [28, 11], [29, 22], [30, 16], [31, 26], [32, 15], [33, 15], [34, 31], [35, 32], [36, 35], [37, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "getLocalName", "code": "  public String getLocalName(int nodeHandle)\n  {\n    return m_expandedNameTable.getLocalName(_exptype(makeNodeIdentity(nodeHandle)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getUnparsedEntityURI", "code": "  public String getUnparsedEntityURI(String name)\n  {\n\n    String url = \"\";\n\n    if (null == m_entities)\n      return url;\n\n    int n = m_entities.size();\n\n    for (int i = 0; i < n; i += ENTITY_FIELDS_PER)\n    {\n      String ename = (String) m_entities.elementAt(i + ENTITY_FIELD_NAME);\n\n      if (null != ename && ename.equals(name))\n      {\n        String nname = (String) m_entities.elementAt(i\n                         + ENTITY_FIELD_NOTATIONNAME);\n\n        if (null != nname)\n        {\n\n          url = (String) m_entities.elementAt(i + ENTITY_FIELD_SYSTEMID);\n\n          if (null == url)\n          {\n            url = (String) m_entities.elementAt(i + ENTITY_FIELD_PUBLICID);\n          }\n        }\n\n        break;\n      }\n    }\n\n    return url;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [4, 9], [4, 10], [2, 11], [2, 12], [3, 13], [10, 14], [5, 15], [11, 16], [2, 17], [11, 18], [11, 19], [11, 20], [16, 21], [16, 22], [19, 23], [22, 24], [12, 25], [19, 26], [23, 27], [25, 28], [26, 29], [19, 30], [20, 31], [29, 32], [31, 33], [26, 34], [30, 35], [35, 36], [34, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 4], [10, 4], [11, 2], [12, 2], [13, 3], [14, 10], [15, 5], [16, 11], [17, 2], [18, 11], [19, 11], [20, 11], [21, 16], [22, 16], [23, 19], [24, 22], [25, 12], [26, 19], [27, 23], [28, 25], [29, 26], [30, 19], [31, 20], [32, 29], [33, 31], [34, 26], [35, 30], [36, 35], [37, 34], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "getPrefix", "code": "  public String getPrefix(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (0 == prefixIndex)\n        return \"\";\n      else\n      {\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n    else if (DTM.ATTRIBUTE_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (prefixIndex < 0)\n      {\n        prefixIndex = m_data.elementAt(-prefixIndex);\n\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n\n    return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [2, 10], [2, 11], [3, 12], [4, 13], [7, 14], [7, 15], [10, 16], [10, 17], [14, 18], [10, 19], [10, 20], [16, 21], [17, 22], [11, 23], [14, 24], [14, 25], [18, 26], [15, 27], [19, 28], [24, 29], [14, 30], [28, 31], [20, 32], [29, 33], [25, 34], [30, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 2], [11, 2], [12, 3], [13, 4], [14, 7], [15, 7], [16, 10], [17, 10], [18, 14], [19, 10], [20, 10], [21, 16], [22, 17], [23, 11], [24, 14], [25, 14], [26, 18], [27, 15], [28, 19], [29, 24], [30, 14], [31, 28], [32, 20], [33, 29], [34, 25], [35, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getAttributeNode", "code": "  public int getAttributeNode(int nodeHandle, String namespaceURI,\n                              String name)\n  {\n\n    for (int attrH = getFirstAttribute(nodeHandle); DTM.NULL != attrH;\n            attrH = getNextAttribute(attrH))\n    {\n      String attrNS = getNamespaceURI(attrH);\n      String attrName = getLocalName(attrH);\n      boolean nsMatch = namespaceURI == attrNS\n                        || (namespaceURI != null\n                            && namespaceURI.equals(attrNS));\n\n      if (nsMatch && name.equals(attrName))\n        return attrH;\n    }\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [8, 13], [8, 14], [2, 15], [14, 16], [9, 17], [10, 18], [11, 19], [17, 20], [17, 21], [20, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 8], [14, 8], [15, 2], [16, 14], [17, 9], [18, 10], [19, 11], [20, 17], [21, 17], [22, 20], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getDocumentTypeDeclarationPublicIdentifier", "code": "  public String getDocumentTypeDeclarationPublicIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamespaceURI", "code": "  public String getNamespaceURI(int nodeHandle)\n  {\n\n    return m_expandedNameTable.getNamespace(_exptype(makeNodeIdentity(nodeHandle)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getStringValue", "code": "  public XMLString getStringValue(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    int type;\n      type = DTM.NULL;\n    \n      type= _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_xstrf.newstr(m_chars, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int startNode = identity;\n\n        identity = firstChild;\n\n        do {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        } while (DTM.NULL != identity && (_parent(identity) >= startNode));\n\n        if (length > 0)\n        {\n          return m_xstrf.newstr(m_chars, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n        return m_xstrf.newstr(m_valuesOrPrefixes.indexToString(dataIndex));\n      }\n    }\n\n    return m_xstrf.emptystr();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [8, 16], [4, 17], [10, 18], [10, 19], [12, 20], [18, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [11, 27], [13, 28], [14, 29], [15, 30], [18, 31], [18, 32], [18, 33], [22, 34], [23, 35], [10, 36], [28, 37], [31, 38], [32, 39], [22, 40], [34, 41], [23, 42], [35, 43], [35, 44], [25, 45], [26, 46], [37, 47], [38, 48], [39, 49], [33, 50], [40, 51], [23, 52], [42, 53], [23, 54], [43, 55], [32, 56], [32, 57], [52, 58], [42, 59], [42, 60], [54, 61], [56, 62], [42, 63], [59, 64], [62, 65], [63, 66], [64, 67], [60, 68], [65, 69], [66, 70], [59, 71], [70, 72], [71, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 8], [17, 4], [18, 10], [19, 10], [20, 12], [21, 18], [22, 10], [23, 10], [24, 10], [25, 10], [26, 10], [27, 11], [28, 13], [29, 14], [30, 15], [31, 18], [32, 18], [33, 18], [34, 22], [35, 23], [36, 10], [37, 28], [38, 31], [39, 32], [40, 22], [41, 34], [42, 23], [43, 35], [44, 35], [45, 25], [46, 26], [47, 37], [48, 38], [49, 39], [50, 33], [51, 40], [52, 23], [53, 42], [54, 23], [55, 43], [56, 32], [57, 32], [58, 52], [59, 42], [60, 42], [61, 54], [62, 56], [63, 42], [64, 59], [65, 62], [66, 63], [67, 64], [68, 60], [69, 65], [70, 66], [71, 59], [72, 70], [73, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "isWhitespace", "code": "  public boolean isWhitespace(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    int type;\n      type = DTM.NULL;\n    \n      type= _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_chars.isWhitespace(offset, length);\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [2, 10], [2, 11], [2, 12], [2, 13], [8, 14], [4, 15], [10, 16], [11, 17], [12, 18], [13, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 2], [11, 2], [12, 2], [13, 2], [14, 8], [15, 4], [16, 10], [17, 11], [18, 12], [19, 13], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getElementById", "code": "  public int getElementById(String elementId)\n  {\n\n    Integer intObj;\n    boolean isMore = true;\n\n    do\n    {\n      intObj = (Integer) m_idAttributes.get(elementId);\n\n      if (null != intObj)\n        return makeNodeHandle(intObj.intValue());\n\n      if (!isMore || m_endDocumentOccured)\n        break;\n\n      isMore = nextNode();\n    }\n    while (null == intObj);\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [2, 11], [7, 12], [7, 13], [8, 14], [8, 15], [2, 16], [11, 17], [14, 18], [15, 19], [18, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 2], [12, 7], [13, 7], [14, 8], [15, 8], [16, 2], [17, 11], [18, 14], [19, 15], [20, 18], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getPrefix", "code": "  public String getPrefix(String qname, String uri)\n  {\n\n    String prefix;\n    int uriIndex = -1;\n\n    if (null != uri && uri.length() > 0)\n    {\n\n      do\n      {\n        uriIndex = m_prefixMappings.indexOf(uri, ++uriIndex);\n      } while ( (uriIndex & 0x01) == 0);\n\n      if (uriIndex >= 0)\n      {\n        prefix = (String) m_prefixMappings.elementAt(uriIndex - 1);\n      }\n      else if (null != qname)\n      {\n        int indexOfNSSep = qname.indexOf(':');\n\n        if (qname.equals(\"xmlns\"))\n          prefix = \"\";\n        else if (qname.startsWith(\"xmlns:\"))\n          prefix = qname.substring(indexOfNSSep + 1);\n        else\n          prefix = (indexOfNSSep > 0)\n                   ? qname.substring(0, indexOfNSSep) : null;\n      }\n      else\n      {\n        prefix = null;\n      }\n    }\n    else if (null != qname)\n    {\n      int indexOfNSSep = qname.indexOf(':');\n\n      if (indexOfNSSep > 0)\n      {\n        if (qname.startsWith(\"xmlns:\"))\n          prefix = qname.substring(indexOfNSSep + 1);\n        else\n          prefix = qname.substring(0, indexOfNSSep);\t\n      }\n      else\n      {\n      \tif (qname.equals(\"xmlns\"))\n      \t  prefix = \"\";\n      \telse\n      \t  prefix = null;\n      }\n    }\n    else\n    {\n      prefix = null;\n    }\n\n    return prefix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [2, 10], [2, 11], [8, 12], [8, 13], [3, 14], [7, 15], [7, 16], [9, 17], [10, 18], [10, 19], [11, 20], [12, 21], [12, 22], [13, 23], [7, 24], [15, 25], [18, 26], [19, 27], [20, 28], [20, 29], [24, 30], [15, 31], [15, 32], [25, 33], [16, 34], [18, 35], [18, 36], [26, 37], [10, 38], [11, 39], [29, 40], [31, 41], [32, 42], [34, 43], [18, 44], [35, 45], [35, 46], [39, 47], [31, 48], [31, 49], [41, 50], [32, 51], [32, 52], [42, 53], [44, 54], [45, 55], [35, 56], [46, 57], [36, 58], [38, 59], [48, 60], [49, 61], [51, 62], [52, 63], [45, 64], [45, 65], [55, 66], [56, 67], [58, 68], [59, 69], [62, 70], [63, 71], [64, 72], [65, 73], [69, 74], [71, 75], [72, 76], [72, 77], [72, 78], [73, 79], [77, 80], [78, 81], [79, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 2], [11, 2], [12, 8], [13, 8], [14, 3], [15, 7], [16, 7], [17, 9], [18, 10], [19, 10], [20, 11], [21, 12], [22, 12], [23, 13], [24, 7], [25, 15], [26, 18], [27, 19], [28, 20], [29, 20], [30, 24], [31, 15], [32, 15], [33, 25], [34, 16], [35, 18], [36, 18], [37, 26], [38, 10], [39, 11], [40, 29], [41, 31], [42, 32], [43, 34], [44, 18], [45, 35], [46, 35], [47, 39], [48, 31], [49, 31], [50, 41], [51, 32], [52, 32], [53, 42], [54, 44], [55, 45], [56, 35], [57, 46], [58, 36], [59, 38], [60, 48], [61, 49], [62, 51], [63, 52], [64, 45], [65, 45], [66, 55], [67, 56], [68, 58], [69, 59], [70, 62], [71, 63], [72, 64], [73, 65], [74, 69], [75, 71], [76, 72], [77, 72], [78, 72], [79, 73], [80, 77], [81, 78], [82, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "getIdForNamespace", "code": "  public int getIdForNamespace(String uri)\n  {\n\n     return m_valuesOrPrefixes.stringToIndex(uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNamespaceURI", "code": "  public String getNamespaceURI(String prefix)\n  {\n\n    String uri = \"\";\n    int prefixIndex = m_contextIndexes.peek() - 1 ;\n\n    if(null == prefix)\n      prefix = \"\";\n\n      do\n      {\n        prefixIndex = m_prefixMappings.indexOf(prefix, ++prefixIndex);\n      } while ( (prefixIndex >= 0) && (prefixIndex & 0x01) == 0x01);\n\n      if (prefixIndex > -1)\n      {\n        uri = (String) m_prefixMappings.elementAt(prefixIndex + 1);\n      }\n\n\n    return uri;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [8, 11], [9, 12], [9, 13], [4, 14], [10, 15], [5, 16], [6, 17], [2, 18], [3, 19], [12, 20], [12, 21], [13, 22], [14, 23], [16, 24], [16, 25], [19, 26], [21, 27], [18, 28], [28, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 8], [12, 9], [13, 9], [14, 4], [15, 10], [16, 5], [17, 6], [18, 2], [19, 3], [20, 12], [21, 12], [22, 13], [23, 14], [24, 16], [25, 16], [26, 19], [27, 21], [28, 18], [29, 28], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "setIDAttribute", "code": "  public void setIDAttribute(String id, int elem)\n  {\n    m_idAttributes.put(id, new Integer(elem));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "charactersFlush", "code": "  protected void charactersFlush()\n  {\n\n    {\n      int length = m_chars.size() - m_textPendingStart;\n      boolean doStrip = false;\n\n      if (getShouldStripWhitespace())\n      {\n        doStrip = m_chars.isWhitespace(m_textPendingStart, length);\n      }\n\n      if (doStrip){}\n      else\n      {\n        int exName = m_expandedNameTable.getExpandedTypeID(DTM.TEXT_NODE);\n        int dataIndex = m_data.size();\n\n        m_previous = addNode(m_coalescedTextType, exName,\n                             m_parents.peek(), m_previous, dataIndex, false);\n\n        m_data.addElement(m_textPendingStart);\n        m_data.addElement(length);\n      }\n\n      m_textPendingStart = -1;\n      m_textType = m_coalescedTextType = DTM.TEXT_NODE;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [5, 8], [6, 9], [1, 10], [1, 11], [3, 12], [4, 13], [1, 14], [1, 15], [1, 16], [2, 17], [13, 18], [16, 19], [10, 20], [11, 21], [17, 22], [19, 23], [19, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 5], [9, 6], [10, 1], [11, 1], [12, 3], [13, 4], [14, 1], [15, 1], [16, 1], [17, 2], [18, 13], [19, 16], [20, 10], [21, 11], [22, 17], [23, 19], [24, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "resolveEntity", "code": "  public InputSource resolveEntity(String publicId, String systemId)\n          throws SAXException\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "notationDecl", "code": "  public void notationDecl(String name, String publicId, String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "unparsedEntityDecl", "code": "  public void unparsedEntityDecl(\n          String name, String publicId, String systemId, String notationName)\n            throws SAXException\n  {\n\n    if (null == m_entities)\n    {\n      m_entities = new Vector();\n    }\n\n    try\n    {\n      systemId = SystemIDResolver.getAbsoluteURI(systemId,\n                                                 getDocumentBaseURI());\n    }\n    catch (Exception e)\n    {\n      throw new org.xml.sax.SAXException(e);\n    }\n\n    m_entities.addElement(publicId);\n\n    m_entities.addElement(systemId);\n\n    m_entities.addElement(notationName);\n\n    m_entities.addElement(name);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CATCH", "BINARY_OP", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [11, 13], [1, 14], [12, 15], [13, 16], [14, 17], [2, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 11], [14, 1], [15, 12], [16, 13], [17, 14], [18, 2], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator)\n  {\n    m_locator = locator;\n    m_systemId = locator.getSystemId();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startDocument", "code": "  public void startDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"startDocument\");\n\n\t\t\n    int doc = addNode(DTM.DOCUMENT_NODE,\n                      m_expandedNameTable.getExpandedTypeID(DTM.DOCUMENT_NODE),\n                      DTM.NULL, DTM.NULL, 0, true);\n\n    m_parents.push(doc);\n    m_previous = DTM.NULL;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [5, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 5], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "endDocument", "code": "  public void endDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endDocument\");\n\n\t\tcharactersFlush();\n\n    m_nextsib.setElementAt(NULL,0);\n\n    if (m_firstch.elementAt(0) == NOTPROCESSED)\n      m_firstch.setElementAt(NULL,0);\n\n    if (DTM.NULL != m_previous)\n      m_nextsib.setElementAt(DTM.NULL,m_previous);\n\n    m_parents = null;\n    m_prefixMappings = null;\n    m_contextIndexes = null;\n\n    m_endDocumentOccured = true;\n    \n    m_locator = null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [0, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [1, 18], [2, 19], [10, 20], [11, 21], [3, 22], [19, 23], [20, 24], [22, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 0], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 1], [19, 2], [20, 10], [21, 11], [22, 3], [23, 19], [24, 20], [25, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(String prefix, String uri)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"startPrefixMapping: prefix: \" + prefix + \", uri: \"\n                         + uri);\n\n    if(null == prefix)\n      prefix = \"\";", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [6, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 6], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(String prefix) throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endPrefixMapping: prefix: \" + prefix);\n\n    if(null == prefix)\n      prefix = \"\";\n\n    int index = m_contextIndexes.peek() - 1;\n\n    do\n    {\n      index = m_prefixMappings.indexOf(prefix, ++index);\n    } while ( (index >= 0) && ((index & 0x01) == 0x01) );\n\n\n    if (index > -1)\n    {\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index);\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index + 1);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [7, 10], [8, 11], [8, 12], [3, 13], [4, 14], [9, 15], [5, 16], [1, 17], [1, 18], [2, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [16, 26], [17, 27], [17, 28], [18, 29], [19, 30], [21, 31], [26, 32], [27, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 7], [11, 8], [12, 8], [13, 3], [14, 4], [15, 9], [16, 5], [17, 1], [18, 1], [19, 2], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 16], [27, 17], [28, 17], [29, 18], [30, 19], [31, 21], [32, 26], [33, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "declAlreadyDeclared", "code": "  protected boolean declAlreadyDeclared(String prefix)\n  {\n\n    int startDecls = m_contextIndexes.peek();\n    java.util.Vector prefixMappings = m_prefixMappings;\n    int nDecls = prefixMappings.size();\n\n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      String prefixDecl = (String) prefixMappings.elementAt(i);\n\n      if (prefixDecl == null)\n        continue;\n\n      if (prefixDecl.equals(prefix))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [8, 13], [3, 14], [5, 15], [10, 16], [10, 17], [11, 18], [11, 19], [16, 20], [19, 21], [12, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 8], [14, 3], [15, 5], [16, 10], [17, 10], [18, 11], [19, 11], [20, 16], [21, 19], [22, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "startElement", "code": "  public void startElement(\n          String uri, String localName, String qName, Attributes attributes)\n            throws SAXException\n  {\n   if (DEBUG)\n\t {\n      System.out.println(\"startElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName+\", atts: \" + attributes);\n\n\t\t\tboolean DEBUG_ATTRS=true;\n\t\t\tif(DEBUG_ATTRS & attributes!=null)\n\t\t\t{\n\t\t\t\tint n = attributes.getLength();\n\t\t\t\tif(n==0)\n\t\t\t\t\tSystem.out.println(\"\\tempty attribute list\");\n\t\t\t\telse for (int i = 0; i < n; i++)\n\t\t\t\t\tSystem.out.println(\"\\t attr: uri: \" + attributes.getURI(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", localname: \" + attributes.getLocalName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", qname: \" + attributes.getQName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", type: \" + attributes.getType(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", value: \" + attributes.getValue(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t}\n\t }\n\t\t\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(uri, localName, DTM.ELEMENT_NODE);\n    String prefix = getPrefix(qName, uri);\n    int prefixIndex = (null != prefix)\n                      ? m_valuesOrPrefixes.stringToIndex(qName) : 0;\n\n    int elemNode = addNode(DTM.ELEMENT_NODE, exName,\n                           m_parents.peek(), m_previous, prefixIndex, true);\n\n    if(m_indexing)\n      indexNode(exName, elemNode);\n    \n\n    m_parents.push(elemNode);\n\n    int startDecls = m_contextIndexes.peek();\n    int nDecls = m_prefixMappings.size();\n    int prev = DTM.NULL;\n\n    if(!m_pastFirstElement)\n    {\n      prefix=\"xml\";\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n      m_pastFirstElement=true;\n    }\n\n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      prefix = (String) m_prefixMappings.elementAt(i);\n\n      if (prefix == null)\n        continue;\n\n      String declURL = (String) m_prefixMappings.elementAt(i + 1);\n\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n    }\n\n    int n = attributes.getLength();\n\n    for (int i = 0; i < n; i++)\n    {\n      String attrUri = attributes.getURI(i);\n      String attrQName = attributes.getQName(i);\n      String valString = attributes.getValue(i);\n\n      prefix = getPrefix(attrQName, attrUri);\n\n      int nodeType;\n      \n       String attrLocalName = attributes.getLocalName(i);\n\n      if ((null != attrQName)\n              && (attrQName.equals(\"xmlns\")\n                  || attrQName.startsWith(\"xmlns:\")))\n      {\n        if (declAlreadyDeclared(prefix))\n\n        nodeType = DTM.NAMESPACE_NODE;\n      }\n      else\n      {\n        nodeType = DTM.ATTRIBUTE_NODE;\n\n        if (attributes.getType(i).equalsIgnoreCase(\"ID\"))\n          setIDAttribute(valString, elemNode);\n      }\n\n      if(null == valString)\n        valString = \"\";\n\n      int val = m_valuesOrPrefixes.stringToIndex(valString);\n\n      if (null != prefix)\n      {\n\n        prefixIndex = m_valuesOrPrefixes.stringToIndex(attrQName);\n\n        int dataIndex = m_data.size();\n\n        m_data.addElement(prefixIndex);\n        m_data.addElement(val);\n\n        val = -dataIndex;\n      }\n\n      exName = m_expandedNameTable.getExpandedTypeID(attrUri, attrLocalName, nodeType);\n      prev = addNode(nodeType, exName, elemNode, prev, val,\n                     false);\n    }\n\n    if (DTM.NULL != prev)\n      m_nextsib.setElementAt(DTM.NULL,prev);\n\n    if (null != m_wsfilter)\n    {\n      short wsv = m_wsfilter.getShouldStripSpace(makeNodeHandle(elemNode), this);\n      boolean shouldStrip = (DTMWSFilter.INHERIT == wsv)\n                            ? getShouldStripWhitespace()\n                            : (DTMWSFilter.STRIP == wsv);\n\n      pushShouldStripWhitespace(shouldStrip);\n    }\n\n    m_previous = DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [2, 22], [3, 23], [5, 24], [5, 25], [0, 26], [0, 27], [1, 28], [1, 29], [21, 30], [2, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [3, 40], [4, 41], [5, 42], [5, 43], [5, 44], [24, 45], [6, 46], [8, 47], [9, 48], [10, 49], [11, 50], [12, 51], [13, 52], [14, 53], [15, 54], [15, 55], [1, 56], [3, 57], [3, 58], [32, 59], [34, 60], [35, 61], [3, 62], [3, 63], [5, 64], [5, 65], [44, 66], [44, 67], [5, 68], [6, 69], [6, 70], [6, 71], [6, 72], [50, 73], [50, 74], [51, 75], [51, 76], [51, 77], [54, 78], [15, 79], [28, 80], [29, 81], [57, 82], [58, 83], [32, 84], [59, 85], [33, 86], [34, 87], [60, 88], [35, 89], [35, 90], [61, 91], [61, 92], [36, 93], [62, 94], [38, 95], [39, 96], [40, 97], [64, 98], [42, 99], [65, 100], [67, 101], [69, 102], [70, 103], [46, 104], [71, 105], [72, 106], [77, 107], [54, 108], [54, 109], [78, 110], [55, 111], [79, 112], [80, 113], [80, 114], [80, 115], [81, 116], [82, 117], [32, 118], [32, 119], [32, 120], [32, 121], [87, 122], [89, 123], [35, 124], [90, 125], [91, 126], [91, 127], [92, 128], [98, 129], [100, 130], [43, 131], [68, 132], [103, 133], [105, 134], [108, 135], [108, 136], [110, 137], [112, 138], [84, 139], [121, 140], [89, 141], [123, 142], [90, 143], [126, 144], [127, 145], [131, 146], [135, 147], [108, 148], [136, 149], [109, 150], [138, 151], [138, 152], [142, 153], [146, 154], [135, 155], [148, 156], [152, 157], [155, 158], [135, 159], [157, 160], [157, 161], [158, 162], [158, 163], [161, 164], [163, 165], [163, 166], [164, 167], [164, 168], [166, 169], [166, 170], [168, 171], [170, 172], [170, 173], [173, 174], [173, 175], [175, 176], [175, 177], [177, 178], [177, 179], [179, 180], [179, 181], [181, 182], [181, 183], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 2], [23, 3], [24, 5], [25, 5], [26, 0], [27, 0], [28, 1], [29, 1], [30, 21], [31, 2], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 3], [41, 4], [42, 5], [43, 5], [44, 5], [45, 24], [46, 6], [47, 8], [48, 9], [49, 10], [50, 11], [51, 12], [52, 13], [53, 14], [54, 15], [55, 15], [56, 1], [57, 3], [58, 3], [59, 32], [60, 34], [61, 35], [62, 3], [63, 3], [64, 5], [65, 5], [66, 44], [67, 44], [68, 5], [69, 6], [70, 6], [71, 6], [72, 6], [73, 50], [74, 50], [75, 51], [76, 51], [77, 51], [78, 54], [79, 15], [80, 28], [81, 29], [82, 57], [83, 58], [84, 32], [85, 59], [86, 33], [87, 34], [88, 60], [89, 35], [90, 35], [91, 61], [92, 61], [93, 36], [94, 62], [95, 38], [96, 39], [97, 40], [98, 64], [99, 42], [100, 65], [101, 67], [102, 69], [103, 70], [104, 46], [105, 71], [106, 72], [107, 77], [108, 54], [109, 54], [110, 78], [111, 55], [112, 79], [113, 80], [114, 80], [115, 80], [116, 81], [117, 82], [118, 32], [119, 32], [120, 32], [121, 32], [122, 87], [123, 89], [124, 35], [125, 90], [126, 91], [127, 91], [128, 92], [129, 98], [130, 100], [131, 43], [132, 68], [133, 103], [134, 105], [135, 108], [136, 108], [137, 110], [138, 112], [139, 84], [140, 121], [141, 89], [142, 123], [143, 90], [144, 126], [145, 127], [146, 131], [147, 135], [148, 108], [149, 136], [150, 109], [151, 138], [152, 138], [153, 142], [154, 146], [155, 135], [156, 148], [157, 152], [158, 155], [159, 135], [160, 157], [161, 157], [162, 158], [163, 158], [164, 161], [165, 163], [166, 163], [167, 164], [168, 164], [169, 166], [170, 166], [171, 168], [172, 170], [173, 170], [174, 173], [175, 173], [176, 175], [177, 175], [178, 177], [179, 177], [180, 179], [181, 179], [182, 181], [183, 181], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183]]}, {"function_name": "endElement", "code": "  public void endElement(String uri, String localName, String qName)\n          throws SAXException\n  {\n   if (DEBUG)\n      System.out.println(\"endElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName);\n\n    charactersFlush();\n\n    m_contextIndexes.quickPop(1);\n\n    int topContextIndex = m_contextIndexes.peek();\n    if (topContextIndex != m_prefixMappings.size()) {\n      m_prefixMappings.setSize(topContextIndex);\n    }\n\n    int lastNode = m_previous;\n\n    m_previous = m_parents.pop();\n\n    if (DTM.NULL == lastNode)\n      m_firstch.setElementAt(DTM.NULL,m_previous);\n    else\n      m_nextsib.setElementAt(DTM.NULL,lastNode);\n\n    popShouldStripWhitespace();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [3, 12], [0, 13], [0, 14], [1, 15], [1, 16], [11, 17], [12, 18], [4, 19], [13, 20], [5, 21], [3, 22], [21, 23], [23, 24], [24, 25], [24, 26], [26, 27], [27, 28], [27, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 3], [13, 0], [14, 0], [15, 1], [16, 1], [17, 11], [18, 12], [19, 4], [20, 13], [21, 5], [22, 3], [23, 21], [24, 23], [25, 24], [26, 24], [27, 26], [28, 27], [29, 27], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "characters", "code": "  public void characters(char ch[], int start, int length) throws SAXException\n  {\n    if(true){\n      m_textPendingStart = m_chars.size();\n      m_coalescedTextType = m_textType;\n    }\n    else if (m_textType == DTM.TEXT_NODE)\n    {\n      m_coalescedTextType = DTM.TEXT_NODE;\n    }\n\n    m_chars.append(ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [1, 9], [1, 10], [6, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 1], [10, 1], [11, 6], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char ch[], int start, int length)\n          throws SAXException\n  {\n\n    characters(ch, start, length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(String target, String data)\n          throws SAXException\n  {\n    if (DEBUG)\n\t\t System.out.println(\"processingInstruction: target: \" + target +\", data: \"+data);\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(null, target,\n                                         DTM.PROCESSING_INSTRUCTION_NODE);\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(data);\n\n    m_previous = addNode(DTM.PROCESSING_INSTRUCTION_NODE, exName,\n                         m_parents.peek(), m_previous,\n                         dataIndex, false);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [1, 9], [2, 10], [3, 11], [8, 12], [8, 13], [10, 14], [11, 15], [15, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 1], [10, 2], [11, 3], [12, 8], [13, 8], [14, 10], [15, 11], [16, 15], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(String name) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "warning", "code": "  public void warning(SAXParseException e) throws SAXException\n  {\n\n    System.err.println(e.getMessage());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "error", "code": "  public void error(SAXParseException e) throws SAXException\n  {\n    throw e;", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "fatalError", "code": "  public void fatalError(SAXParseException e) throws SAXException\n  {\n    throw e;", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "elementDecl", "code": "  public void elementDecl(String name, String model) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "attributeDecl", "code": "  public void attributeDecl(\n          String eName, String aName, String type, String valueDefault, String value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "internalEntityDecl", "code": "  public void internalEntityDecl(String name, String value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "externalEntityDecl", "code": "  public void externalEntityDecl(\n          String name, String publicId, String systemId) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startDTD", "code": "  public void startDTD(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n    m_insideDTD = true;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endDTD", "code": "  public void endDTD() throws SAXException\n  {\n\n    m_insideDTD = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startEntity", "code": "  public void startEntity(String name) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endEntity", "code": "  public void endEntity(String name) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startCDATA", "code": "  public void startCDATA() throws SAXException\n  {\n    m_textType = DTM.CDATA_SECTION_NODE;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endCDATA", "code": "  public void endCDATA() throws SAXException\n  {\n    m_textType = DTM.TEXT_NODE;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "comment", "code": "  public void comment(char ch[], int start, int length) throws SAXException\n  {\n\n      return;\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(DTM.COMMENT_NODE);\n\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(new String(ch, start,\n                      length));\n\n\n    m_previous = addNode(DTM.COMMENT_NODE, exName,\n                         m_parents.peek(), m_previous, dataIndex, false);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [7, 9], [1, 10], [2, 11], [9, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 7], [10, 1], [11, 2], [12, 9], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setProperty", "code": "  public void setProperty(String property, Object value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSourceLocatorFor", "code": "  public SourceLocator getSourceLocatorFor(int node)\n  {\n    if (m_useSourceLocationProperty)\n    {\n\n      node = makeNodeIdentity(node);\n      \n\n      return new NodeLocator(null,\n                             m_sourceSystemId.elementAt(node),\n                             m_sourceLine.elementAt(node),\n                             m_sourceColumn.elementAt(node));\n    }\n    else if(m_locator!=null)\n    {\n    \treturn new NodeLocator(null,m_locator.getSystemId(),-1,-1);\n    }\n    else if(m_systemId!=null)\n    {\n    \treturn new NodeLocator(null,m_systemId,-1,-1);\n    }\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [5, 7], [2, 8], [6, 9], [5, 10], [7, 11], [8, 12], [2, 13], [6, 14], [9, 15], [10, 16], [12, 17], [12, 18], [12, 19], [12, 20], [13, 21], [14, 22], [16, 23], [16, 24], [16, 25], [16, 26], [22, 27], [22, 28], [22, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 5], [8, 2], [9, 6], [10, 5], [11, 7], [12, 8], [13, 2], [14, 6], [15, 9], [16, 10], [17, 12], [18, 12], [19, 12], [20, 12], [21, 13], [22, 14], [23, 16], [24, 16], [25, 16], [26, 16], [27, 22], [28, 22], [29, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "SAX2DTM", "code": "  public SAX2DTM(DTMManager mgr, Source source, int dtmIdentity,\n                 DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing)\n  {\n\n    this(mgr, source, dtmIdentity, whiteSpaceFilter,\n          xstringfactory, doIndexing, DEFAULT_BLOCKSIZE, true, false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "SAX2DTM", "code": "  public SAX2DTM(DTMManager mgr, Source source, int dtmIdentity,\n                 DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing,\n                 int blocksize,\n                 boolean usePrevsib,\n                 boolean newNameTable)\n  {\n\n    super(mgr, source, dtmIdentity, whiteSpaceFilter,\n          xstringfactory, doIndexing, blocksize, usePrevsib, newNameTable);\n\n    if (blocksize <= 64) \n    {\n      m_data = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS_SMALL);\n      m_dataOrQName = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS_SMALL);\n      m_valuesOrPrefixes = new DTMStringPool(16);\n      m_chars = new FastStringBuffer(7, 10);\n      m_contextIndexes = new IntStack(4);\n      m_parents = new IntStack(4);\n    }\n    else\n    {\n      m_data = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS);\n      m_dataOrQName = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS);\n      m_valuesOrPrefixes = new DTMStringPool();\n      m_chars = new FastStringBuffer(10, 13);\n      m_contextIndexes = new IntStack();\n      m_parents = new IntStack();\n    }\n         \n\n\n    \n    m_useSourceLocationProperty = m_source_location;\n    m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector() : null;\n \tm_sourceLine = (m_useSourceLocationProperty) ?  new IntVector() : null;\n    m_sourceColumn = (m_useSourceLocationProperty) ?  new IntVector() : null; ", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "COND_EXPR", "COND_EXPR", "COND_EXPR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [11, 16], [12, 17], [13, 18], [15, 19], [16, 20], [16, 21], [17, 22], [17, 23], [18, 24], [18, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [26, 38], [27, 39], [28, 40], [29, 41], [30, 42], [31, 43], [32, 44], [33, 45], [34, 46], [35, 47], [36, 48], [37, 49], [40, 50], [40, 51], [44, 52], [45, 53], [46, 54], [46, 55], [47, 56], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 11], [17, 12], [18, 13], [19, 15], [20, 16], [21, 16], [22, 17], [23, 17], [24, 18], [25, 18], [26, 1], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 26], [39, 27], [40, 28], [41, 29], [42, 30], [43, 31], [44, 32], [45, 33], [46, 34], [47, 35], [48, 36], [49, 37], [50, 40], [51, 40], [52, 44], [53, 45], [54, 46], [55, 46], [56, 47], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}], "label": 1}
{"sample_id": "xalan-2.4-6673", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/serialize/SerializerToHTML.java", "language": "java", "name": "org.apache.xalan.serialize.SerializerToHTML", "code": "public class SerializerToHTML extends SerializerToXML\n{\n\n  /** State stack to keep track of if the current element has output \n   *  escaping disabled. */\n  protected BoolStack m_isRawStack = new BoolStack();\n\n  /** True if the current element is a block element.  (seems like \n   *  this needs to be a stack. -sb). */\n  private boolean m_inBlockElem = false;\n\n  /**\n   * Map that tells which XML characters should have special treatment, and it\n   *  provides character to entity name lookup.\n   */\n  protected static CharInfo m_htmlcharInfo =\n    new CharInfo(CharInfo.HTML_ENTITIES_RESOURCE);\n\n  /** A digital search trie for fast, case insensitive lookup of ElemDesc objects. */\n  static Trie m_elementFlags = new Trie();\n\n  static\n  {\n\n    m_elementFlags.put(\"BASEFONT\", new ElemDesc(0 | ElemDesc.EMPTY));\n    m_elementFlags.put(\"FRAME\",\n                       new ElemDesc(0 | ElemDesc.EMPTY | ElemDesc.BLOCK));\n    m_elementFlags.put(\"FRAMESET\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"NOFRAMES\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"ISINDEX\",\n                       new ElemDesc(0 | ElemDesc.EMPTY | ElemDesc.BLOCK));\n    m_elementFlags.put(\"APPLET\",\n                       new ElemDesc(0 | ElemDesc.WHITESPACESENSITIVE));\n    m_elementFlags.put(\"CENTER\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"DIR\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"MENU\", new ElemDesc(0 | ElemDesc.BLOCK));\n\n    m_elementFlags.put(\"TT\", new ElemDesc(0 | ElemDesc.FONTSTYLE));\n    m_elementFlags.put(\"I\", new ElemDesc(0 | ElemDesc.FONTSTYLE));\n    m_elementFlags.put(\"B\", new ElemDesc(0 | ElemDesc.FONTSTYLE));\n    m_elementFlags.put(\"BIG\", new ElemDesc(0 | ElemDesc.FONTSTYLE));\n    m_elementFlags.put(\"SMALL\", new ElemDesc(0 | ElemDesc.FONTSTYLE));\n    m_elementFlags.put(\"EM\", new ElemDesc(0 | ElemDesc.PHRASE));\n    m_elementFlags.put(\"STRONG\", new ElemDesc(0 | ElemDesc.PHRASE));\n    m_elementFlags.put(\"DFN\", new ElemDesc(0 | ElemDesc.PHRASE));\n    m_elementFlags.put(\"CODE\", new ElemDesc(0 | ElemDesc.PHRASE));\n    m_elementFlags.put(\"SAMP\", new ElemDesc(0 | ElemDesc.PHRASE));\n    m_elementFlags.put(\"KBD\", new ElemDesc(0 | ElemDesc.PHRASE));\n    m_elementFlags.put(\"VAR\", new ElemDesc(0 | ElemDesc.PHRASE));\n    m_elementFlags.put(\"CITE\", new ElemDesc(0 | ElemDesc.PHRASE));\n    m_elementFlags.put(\"ABBR\", new ElemDesc(0 | ElemDesc.PHRASE));\n    m_elementFlags.put(\"ACRONYM\", new ElemDesc(0 | ElemDesc.PHRASE));\n    m_elementFlags.put(\"SUP\",\n                       new ElemDesc(0 | ElemDesc.SPECIAL\n                                    | ElemDesc.ASPECIAL));\n    m_elementFlags.put(\"SUB\",\n                       new ElemDesc(0 | ElemDesc.SPECIAL\n                                    | ElemDesc.ASPECIAL));\n    m_elementFlags.put(\"SPAN\",\n                       new ElemDesc(0 | ElemDesc.SPECIAL\n                                    | ElemDesc.ASPECIAL));\n    m_elementFlags.put(\"BDO\",\n                       new ElemDesc(0 | ElemDesc.SPECIAL\n                                    | ElemDesc.ASPECIAL));\n    m_elementFlags.put(\"BR\",\n                       new ElemDesc(0 | ElemDesc.SPECIAL | ElemDesc.ASPECIAL\n                                    | ElemDesc.EMPTY | ElemDesc.BLOCK));\n    m_elementFlags.put(\"BODY\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"ADDRESS\",\n                       new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                    | ElemDesc.BLOCKFORMFIELDSET));\n    m_elementFlags.put(\"DIV\",\n                       new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                    | ElemDesc.BLOCKFORMFIELDSET));\n    m_elementFlags.put(\"A\", new ElemDesc(0 | ElemDesc.SPECIAL));\n    m_elementFlags.put(\"MAP\",\n                       new ElemDesc(0 | ElemDesc.SPECIAL | ElemDesc.ASPECIAL\n                                    | ElemDesc.BLOCK));\n    m_elementFlags.put(\"AREA\",\n                       new ElemDesc(0 | ElemDesc.EMPTY | ElemDesc.BLOCK));\n    m_elementFlags.put(\"LINK\",\n                       new ElemDesc(0 | ElemDesc.HEADMISC | ElemDesc.EMPTY\n                                    | ElemDesc.BLOCK));\n    m_elementFlags.put(\"IMG\",\n                       new ElemDesc(0 | ElemDesc.SPECIAL | ElemDesc.ASPECIAL\n                                    | ElemDesc.EMPTY\n                                    | ElemDesc.WHITESPACESENSITIVE));\n    m_elementFlags.put(\"OBJECT\",\n                       new ElemDesc(0 | ElemDesc.SPECIAL | ElemDesc.ASPECIAL\n                                    | ElemDesc.HEADMISC\n                                    | ElemDesc.WHITESPACESENSITIVE));\n    m_elementFlags.put(\"PARAM\", new ElemDesc(0 | ElemDesc.EMPTY));\n    m_elementFlags.put(\"HR\",\n                       new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                    | ElemDesc.BLOCKFORMFIELDSET\n                                    | ElemDesc.EMPTY));\n    m_elementFlags.put(\"P\",\n                       new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                    | ElemDesc.BLOCKFORMFIELDSET));\n    m_elementFlags.put(\"H1\",\n                       new ElemDesc(0 | ElemDesc.HEAD | ElemDesc.BLOCK));\n    m_elementFlags.put(\"H2\",\n                       new ElemDesc(0 | ElemDesc.HEAD | ElemDesc.BLOCK));\n    m_elementFlags.put(\"H3\",\n                       new ElemDesc(0 | ElemDesc.HEAD | ElemDesc.BLOCK));\n    m_elementFlags.put(\"H4\",\n                       new ElemDesc(0 | ElemDesc.HEAD | ElemDesc.BLOCK));\n    m_elementFlags.put(\"H5\",\n                       new ElemDesc(0 | ElemDesc.HEAD | ElemDesc.BLOCK));\n    m_elementFlags.put(\"H6\",\n                       new ElemDesc(0 | ElemDesc.HEAD | ElemDesc.BLOCK));\n    m_elementFlags.put(\"PRE\",\n                       new ElemDesc(0 | ElemDesc.PREFORMATTED\n                                    | ElemDesc.BLOCK));\n    m_elementFlags.put(\"Q\",\n                       new ElemDesc(0 | ElemDesc.SPECIAL\n                                    | ElemDesc.ASPECIAL));\n    m_elementFlags.put(\"BLOCKQUOTE\",\n                       new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                    | ElemDesc.BLOCKFORMFIELDSET));\n    m_elementFlags.put(\"INS\", new ElemDesc(0));\n    m_elementFlags.put(\"DEL\", new ElemDesc(0));\n    m_elementFlags.put(\"DL\",\n                       new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                    | ElemDesc.BLOCKFORMFIELDSET));\n    m_elementFlags.put(\"DT\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"DD\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"OL\",\n                       new ElemDesc(0 | ElemDesc.LIST | ElemDesc.BLOCK));\n    m_elementFlags.put(\"UL\",\n                       new ElemDesc(0 | ElemDesc.LIST | ElemDesc.BLOCK));\n    m_elementFlags.put(\"LI\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"FORM\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"LABEL\", new ElemDesc(0 | ElemDesc.FORMCTRL));\n    m_elementFlags.put(\"INPUT\",\n                       new ElemDesc(0 | ElemDesc.FORMCTRL\n                                    | ElemDesc.INLINELABEL | ElemDesc.EMPTY));\n    m_elementFlags.put(\"SELECT\",\n                       new ElemDesc(0 | ElemDesc.FORMCTRL\n                                    | ElemDesc.INLINELABEL));\n    m_elementFlags.put(\"OPTGROUP\", new ElemDesc(0));\n    m_elementFlags.put(\"OPTION\", new ElemDesc(0));\n    m_elementFlags.put(\"TEXTAREA\",\n                       new ElemDesc(0 | ElemDesc.FORMCTRL\n                                    | ElemDesc.INLINELABEL));\n    m_elementFlags.put(\"FIELDSET\",\n                       new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM));\n    m_elementFlags.put(\"LEGEND\", new ElemDesc(0));\n    m_elementFlags.put(\"BUTTON\",\n                       new ElemDesc(0 | ElemDesc.FORMCTRL\n                                    | ElemDesc.INLINELABEL));\n    m_elementFlags.put(\"TABLE\",\n                       new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                    | ElemDesc.BLOCKFORMFIELDSET));\n    m_elementFlags.put(\"CAPTION\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"THEAD\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"TFOOT\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"TBODY\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"COLGROUP\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"COL\",\n                       new ElemDesc(0 | ElemDesc.EMPTY | ElemDesc.BLOCK));\n    m_elementFlags.put(\"TR\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"TH\", new ElemDesc(0));\n    m_elementFlags.put(\"TD\", new ElemDesc(0));\n    m_elementFlags.put(\"HEAD\",\n                       new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.HEADELEM));\n    m_elementFlags.put(\"TITLE\", new ElemDesc(0 | ElemDesc.BLOCK));\n    m_elementFlags.put(\"BASE\",\n                       new ElemDesc(0 | ElemDesc.EMPTY | ElemDesc.BLOCK));\n    m_elementFlags.put(\"META\",\n                       new ElemDesc(0 | ElemDesc.HEADMISC | ElemDesc.EMPTY\n                                    | ElemDesc.BLOCK));\n    m_elementFlags.put(\"STYLE\",\n                       new ElemDesc(0 | ElemDesc.HEADMISC | ElemDesc.RAW\n                                    | ElemDesc.BLOCK));\n    m_elementFlags.put(\"SCRIPT\",\n                       new ElemDesc(0 | ElemDesc.SPECIAL | ElemDesc.ASPECIAL\n                                    | ElemDesc.HEADMISC | ElemDesc.RAW));\n    m_elementFlags.put(\"NOSCRIPT\",\n                       new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                    | ElemDesc.BLOCKFORMFIELDSET));\n    m_elementFlags.put(\"HTML\", new ElemDesc(0 | ElemDesc.BLOCK));\n\n    m_elementFlags.put(\"FONT\", new ElemDesc(0 | ElemDesc.FONTSTYLE));\n\n    m_elementFlags.put(\"S\", new ElemDesc(0 | ElemDesc.FONTSTYLE));\n    m_elementFlags.put(\"STRIKE\", new ElemDesc(0 | ElemDesc.FONTSTYLE));\n\n    m_elementFlags.put(\"U\", new ElemDesc(0 | ElemDesc.FONTSTYLE));\n\n    m_elementFlags.put(\"NOBR\", new ElemDesc(0 | ElemDesc.FONTSTYLE));\n    \n     m_elementFlags.put(\"IFRAME\",\n                                        new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                                                     | ElemDesc.BLOCKFORMFIELDSET));\n     m_elementFlags.put(\"LAYER\",\n                                        new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                                                     | ElemDesc.BLOCKFORMFIELDSET));\n     m_elementFlags.put(\"ILAYER\",\n                                        new ElemDesc(0 | ElemDesc.BLOCK | ElemDesc.BLOCKFORM\n                                                                     | ElemDesc.BLOCKFORMFIELDSET));\n  \n    ElemDesc elemDesc;\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"AREA\");\n\n    elemDesc.setAttr(\"HREF\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"NOHREF\", ElemDesc.ATTREMPTY);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"BASE\");\n\n    elemDesc.setAttr(\"HREF\", ElemDesc.ATTRURL);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"BLOCKQUOTE\");\n\n    elemDesc.setAttr(\"CITE\", ElemDesc.ATTRURL);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"Q\");\n\n    elemDesc.setAttr(\"CITE\", ElemDesc.ATTRURL);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"INS\");\n\n    elemDesc.setAttr(\"CITE\", ElemDesc.ATTRURL);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"DEL\");\n\n    elemDesc.setAttr(\"CITE\", ElemDesc.ATTRURL);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"A\");\n\n    elemDesc.setAttr(\"HREF\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"NAME\", ElemDesc.ATTRURL);\n    \n    elemDesc = (ElemDesc) m_elementFlags.get(\"LINK\");\n    elemDesc.setAttr(\"HREF\", ElemDesc.ATTRURL);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"INPUT\");\n\n    elemDesc.setAttr(\"SRC\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"USEMAP\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"CHECKED\", ElemDesc.ATTREMPTY);\n    elemDesc.setAttr(\"DISABLED\", ElemDesc.ATTREMPTY);\n    elemDesc.setAttr(\"ISMAP\", ElemDesc.ATTREMPTY);\n    elemDesc.setAttr(\"READONLY\", ElemDesc.ATTREMPTY);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"SELECT\");\n\n    elemDesc.setAttr(\"DISABLED\", ElemDesc.ATTREMPTY);\n    elemDesc.setAttr(\"MULTIPLE\", ElemDesc.ATTREMPTY);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"OPTGROUP\");\n\n    elemDesc.setAttr(\"DISABLED\", ElemDesc.ATTREMPTY);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"OPTION\");\n\n    elemDesc.setAttr(\"SELECTED\", ElemDesc.ATTREMPTY);\n    elemDesc.setAttr(\"DISABLED\", ElemDesc.ATTREMPTY);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"TEXTAREA\");\n\n    elemDesc.setAttr(\"DISABLED\", ElemDesc.ATTREMPTY);\n    elemDesc.setAttr(\"READONLY\", ElemDesc.ATTREMPTY);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"BUTTON\");\n\n    elemDesc.setAttr(\"DISABLED\", ElemDesc.ATTREMPTY);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"SCRIPT\");\n\n    elemDesc.setAttr(\"SRC\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"FOR\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"DEFER\", ElemDesc.ATTREMPTY);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"IMG\");\n\n    elemDesc.setAttr(\"SRC\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"LONGDESC\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"USEMAP\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"ISMAP\", ElemDesc.ATTREMPTY);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"OBJECT\");\n\n    elemDesc.setAttr(\"CLASSID\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"CODEBASE\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"DATA\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"ARCHIVE\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"USEMAP\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"DECLARE\", ElemDesc.ATTREMPTY);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"FORM\");\n\n    elemDesc.setAttr(\"ACTION\", ElemDesc.ATTRURL);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"HEAD\");\n\n    elemDesc.setAttr(\"PROFILE\", ElemDesc.ATTRURL);\n\n    elemDesc = (ElemDesc) m_elementFlags.get(\"FRAME\");\n\n    elemDesc.setAttr(\"SRC\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"LONGDESC\", ElemDesc.ATTRURL);\n \n    elemDesc = (ElemDesc) m_elementFlags.get(\"IFRAME\");\n \n    elemDesc.setAttr(\"SRC\", ElemDesc.ATTRURL);\n    elemDesc.setAttr(\"LONGDESC\", ElemDesc.ATTRURL);\n \n    elemDesc = (ElemDesc) m_elementFlags.get(\"LAYER\");\n \n    elemDesc.setAttr(\"SRC\", ElemDesc.ATTRURL);\n \n    elemDesc = (ElemDesc) m_elementFlags.get(\"ILAYER\");\n \n    elemDesc.setAttr(\"SRC\", ElemDesc.ATTRURL);\n \n    elemDesc = (ElemDesc) m_elementFlags.get(\"DIV\");\n\n    elemDesc.setAttr(\"SRC\", ElemDesc.ATTRURL);\n  }\n\n  /**\n   * Dummy element for elements not found.\n   */\n  static private ElemDesc m_dummy = new ElemDesc(0 | ElemDesc.BLOCK);\n\n  /** True if URLs should be specially escaped with the %xx form. */\n  private boolean m_specialEscapeURLs = true;\n\n  /** True if the META tag should be omitted. */\n  private boolean m_omitMetaTag = false;\n\n  /**\n   * Tells if the formatter should use special URL escaping.\n   *\n   * @param bool True if URLs should be specially escaped with the %xx form.\n   */\n  public void setSpecialEscapeURLs(boolean bool)\n  {\n    m_specialEscapeURLs = bool;\n  }\n\n  /**\n   * Tells if the formatter should omit the META tag.\n   *\n   * @param bool True if the META tag should be omitted.\n   */\n  public void setOmitMetaTag(boolean bool)\n  {\n    m_omitMetaTag = bool;\n  }\n\n  /**\n   * Specifies an output format for this serializer. It the\n   * serializer has already been associated with an output format,\n   * it will switch to the new format. This method should not be\n   * called while the serializer is in the process of serializing\n   * a document.\n   *\n   * @param format The output format to use\n   */\n  public void setOutputFormat(Properties format)\n  {\n\n    m_specialEscapeURLs =\n      OutputProperties.getBooleanProperty(OutputProperties.S_USE_URL_ESCAPING,\n                                          format);\n\n    m_omitMetaTag =\n      OutputProperties.getBooleanProperty(OutputProperties.S_OMIT_META_TAG,\n                                          format);\n                            \n    super.setOutputFormat(format);\n  }\n\n  /**\n   * Tells if the formatter should use special URL escaping.\n   *\n   * @return True if URLs should be specially escaped with the %xx form.\n   */\n  public boolean getSpecialEscapeURLs()\n  {\n    return m_specialEscapeURLs;\n  }\n\n  /**\n   * Tells if the formatter should omit the META tag.\n   *\n   * @return True if the META tag should be omitted.\n   */\n  public boolean getOmitMetaTag()\n  {\n    return m_omitMetaTag;\n  }\n\n  /**\n   * Get a description of the given element.\n   *\n   * @param name non-null name of element, case insensitive.\n   *\n   * @return non-null reference to ElemDesc, which may be m_dummy if no \n   *         element description matches the given name.\n   */\n  ElemDesc getElemDesc(String name)\n  {\n\n    if (null != name)\n    {\n      Object obj = m_elementFlags.get(name);\n\n      if (null != obj)\n        return (ElemDesc) obj;\n    }\n\n    return m_dummy;\n  }\n\n  /**\n   * Default constructor.\n   */\n  public SerializerToHTML()\n  {\n\n    super();\n    m_charInfo = m_htmlcharInfo;\n  }\n\n  /** The name of the current element. */\n  private String m_currentElementName = null;\n\n  /**\n   * Receive notification of the beginning of a document.\n   *\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void startDocument() throws org.xml.sax.SAXException\n  {\n\n    m_needToOutputDocTypeDecl = true;\n    m_startNewLine = false;\n    m_shouldNotWriteXMLHeader = true;\n\n    if (true == m_needToOutputDocTypeDecl)\n    {\n      if ((null != m_doctypeSystem) || (null != m_doctypePublic))\n      {\n        accum(\"<!DOCTYPE HTML\");\n\n        if (null != m_doctypePublic)\n        {\n          accum(\" PUBLIC \\\"\");\n          accum(m_doctypePublic);\n          accum(\"\\\"\");\n        }\n\n        if (null != m_doctypeSystem)\n        {\n          if (null == m_doctypePublic)\n            accum(\" SYSTEM \\\"\");\n          else\n            accum(\" \\\"\");\n\n          accum(m_doctypeSystem);\n          accum(\"\\\"\");\n        }\n\n        accum(\">\");\n        outputLineSep();\n      }\n    }\n\n    m_needToOutputDocTypeDecl = false;\n  }\n\n  /**\n   *  Receive notification of the beginning of an element.\n   *\n   *\n   *  @param namespaceURI\n   *  @param localName\n   *  @param name The element type name.\n   *  @param atts The attributes attached to the element, if any.\n   *  @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *             wrapping another exception.\n   *  @see #endElement\n   *  @see org.xml.sax.AttributeList\n   */\n  public void startElement(\n          String namespaceURI, String localName, String name, Attributes atts)\n            throws org.xml.sax.SAXException\n  {\n\n    if (null != namespaceURI && namespaceURI.length() > 0)\n    {\n      super.startElement(namespaceURI, localName, name, atts);\n\n      return;\n    }\n\n    boolean savedDoIndent = m_doIndent;\n    boolean noLineBreak;\n\n    writeParentTagEnd();\n    pushState(\n      namespaceURI, localName,\n      m_cdataSectionNames, m_cdataSectionStates);\n\n    ElemDesc elemDesc = getElemDesc(name);\n\n    boolean isBlockElement = elemDesc.is(ElemDesc.BLOCK);\n    boolean isHeadElement = elemDesc.is(ElemDesc.HEADELEM);\n\n    if (m_ispreserve)\n      m_ispreserve = false;\n    else if (m_doIndent && (null != m_currentElementName)\n             && (!m_inBlockElem || isBlockElement)\n\n    /* && !isWhiteSpaceSensitive */\n    )\n    {\n      m_startNewLine = true;\n\n      indent(m_currentIndent);\n    }\n\n    m_inBlockElem = !isBlockElement;\n\n    m_isRawStack.push(elemDesc.is(ElemDesc.RAW));\n\n    m_currentElementName = name;\n\n    this.accum('<');\n    this.accum(name);\n\n    int nAttrs = atts.getLength();\n\n    for (int i = 0; i < nAttrs; i++)\n    {\n      processAttribute(atts.getQName(i), elemDesc, atts.getValue(i));\n    }\n\n    openElementForChildren();\n\n    m_currentIndent += this.m_indentAmount;\n    m_isprevtext = false;\n    m_doIndent = savedDoIndent;\n\n    if (isHeadElement)\n    {\n      writeParentTagEnd();\n\n      if (!m_omitMetaTag)\n      {\n        if (m_doIndent)\n          indent(m_currentIndent);\n\n        accum(\n          \"<META http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=\");\n\n        String encoding = Encodings.getMimeEncoding(m_encoding);\n\n        accum(encoding);\n        accum('\"');\n        accum('>');\n      }\n    }\n  }\n\n  /**\n   *  Receive notification of the end of an element.\n   *\n   *\n   *  @param namespaceURI\n   *  @param localName\n   *  @param name The element type name\n   *  @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *             wrapping another exception.\n   */\n  public void endElement(String namespaceURI, String localName, String name)\n          throws org.xml.sax.SAXException\n  {\n    if (null != namespaceURI && namespaceURI.length() > 0)\n    {\n      super.endElement(namespaceURI, localName, name);\n\n      return;\n    }\n\n    m_currentIndent -= this.m_indentAmount;\n\n    boolean hasChildNodes = childNodesWereAdded();\n\n    m_isRawStack.pop();\n\n    ElemDesc elemDesc = getElemDesc(name);\n\n    boolean isBlockElement = elemDesc.is(ElemDesc.BLOCK);\n    boolean shouldIndent = false;\n\n    if (m_ispreserve)\n    {\n      m_ispreserve = false;\n    }\n    else if (m_doIndent && (!m_inBlockElem || isBlockElement))\n    {\n      m_startNewLine = true;\n      shouldIndent = true;\n\n    }\n\n    m_inBlockElem = !isBlockElement;\n\n    if (hasChildNodes)\n    {\n      if (shouldIndent)\n        indent(m_currentIndent);\n\n      this.accum(\"</\");\n      this.accum(name);\n      this.accum('>');\n\n      m_currentElementName = name;\n    }\n    else\n    {\n      if (!elemDesc.is(ElemDesc.EMPTY))\n      {\n        this.accum('>');\n\n\n        this.accum('<');\n        this.accum('/');\n        this.accum(name);\n        this.accum('>');\n      }\n      else\n      {\n        this.accum('>');\n      }\n    }\n\n    if (elemDesc.is(ElemDesc.WHITESPACESENSITIVE))\n      m_ispreserve = true;\n\n    if (hasChildNodes)\n    {\n      if (!m_preserves.isEmpty())\n        m_preserves.pop();\n    }\n\n    m_isprevtext = false;\n\n    m_cdataSectionStates.pop();\n  }\n\n  /**\n   * Process an attribute.\n   * @param   name   The name of the attribute.\n   * @param elemDesc non-null reference to the owning element description.\n   * @param   value   The value of the attribute.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  protected void processAttribute(\n          String name, ElemDesc elemDesc, String value)\n            throws org.xml.sax.SAXException\n  {\n\n    this.accum(' ');\n\n    if (((value.length() == 0) || value.equalsIgnoreCase(name))\n            && elemDesc.isAttrFlagSet(name, ElemDesc.ATTREMPTY))\n    {\n      this.accum(name);\n    }\n    else\n    {\n      this.accum(name);\n      this.accum('=');\n\n      this.accum('\\\"');\n      if (elemDesc.isAttrFlagSet(name, ElemDesc.ATTRURL))\n        writeAttrURI(value, m_specialEscapeURLs);\n      else\n        writeAttrString(value, this.m_encoding);\n      this.accum('\\\"');\n\n    }\n  }\n  \n  /**\n   * Tell if a character is an ASCII digit.\n   */\n   private boolean isASCIIDigit(char c)\n   {\n      return (c >= '0' && c <= '9');\n   }\n   \n /**\n  * Make an integer into an HH hex value.\n  * Does no checking on the size of the input, since this \n  * is only meant to be used locally by writeAttrURI.\n  * \n  * @param i must be a value less than 255.\n  * \n  * @return should be a two character string.\n  */\n  private String makeHHString(int i)\n  {\n    String s = Integer.toHexString(i).toUpperCase();\n    if(s.length() == 1)\n    {\n      s = \"0\"+s;\n    }\n    return s;\n  }\n    \n  /**\n  * Dmitri Ilyin: Makes sure if the String is HH encoded sign.\n  * @param str must be 2 characters long\n  *\n  * @return true or false\n  */\n  private boolean isHHSign(String str) \n  {\n    boolean sign = true;  \n    try {\n      char r = (char)Integer.parseInt(str,16);\n    } catch (NumberFormatException e) {\n      sign = false;  \n    }\n    return sign;\n  }\n  \n  /**\n   * Write the specified <var>string</var> after substituting non ASCII characters,\n   * with <CODE>%HH</CODE>, where HH is the hex of the byte value.\n   *\n   * @param   string      String to convert to XML format.\n   * @param doURLEscaping True if we should try to encode as \n   *\n   * @throws org.xml.sax.SAXException if a bad surrogate pair is detected.\n   */\n  public void writeAttrURI(String string, boolean doURLEscaping)\n          throws org.xml.sax.SAXException\n  {\n\n    char[] stringArray = string.toCharArray();\n    int len = stringArray.length;\n        \n    for (int i = 0; i < len; i++)\n    {\n      char ch = stringArray[i];\n\n      if ((ch < 32) || (ch > 126))\n      {\n        if (doURLEscaping)\n        {\n          \n          if(ch <= 0x7F)\n          {\n            accum('%');\n            accum(makeHHString(ch));          \n          }\n          else if(ch <= 0x7FF)\n          {\n            int high = (ch >> 6) | 0xC0;  \n            accum('%');\n            accum(makeHHString(high));\n            accum('%');\n            accum(makeHHString(low));\n          }\n          else if(true){\n            \n            int highSurrogate = ((int) ch) & 0x03FF;\n            \n            int wwww = ((highSurrogate & 0x03C0) >> 6);\n            int uuuuu = wwww+1;  \n            \n            int zzzz = (highSurrogate & 0x003C) >> 2;\n            \n            int yyyyyy = ((highSurrogate & 0x0003) << 4) & 0x30;\n            \n            ch = stringArray[++i];\n            \n            int lowSurrogate = ((int) ch) & 0x03FF;\n            \n            yyyyyy = yyyyyy | ((lowSurrogate & 0x03C0) >> 6);\n            \n            int xxxxxx = (lowSurrogate & 0x003F);\n            \n            int byte2 = 0x80 | (((uuuuu & 0x03) << 4) & 0x30) | zzzz;\n            int byte3 = 0x80 | yyyyyy;\n            int byte4 = 0x80 | xxxxxx;\n            \n            accum('%');\n            accum(makeHHString(byte1));\n            accum('%');\n            accum(makeHHString(byte2));\n            accum('%');\n            accum(makeHHString(byte3));\n            accum('%');\n            accum(makeHHString(byte4));\n          }\n          else \n          {\n            accum('%');\n            accum(makeHHString(high));\n            accum('%');\n            accum(makeHHString(middle));\n            accum('%');\n            accum(makeHHString(low));\n          }\n\n        }\n        else if (canConvert(ch))\n        {\n          accum(ch);\n        }\n        else\n        {\n          accum(\"&#\");\n          accum(Integer.toString(ch));\n          accum(';');\n        }\n      }\n      else if('%' == ch)\n      {\n          \n          \n        \n       /* if ( ((i+2) < len) && isHHSign(new String(stringArray,i+1,2)) )\n        {\n          accum(ch);\n        }\n        else\n        {\n          if (doURLEscaping)\n          {\n           accum('%');\n           accum(makeHHString(ch));\n          }\n          else*/\n            accum(ch);\n               \n      } \n      else if (ch == '\"')\n      {\n        if (doURLEscaping)\n          accum(\"%22\");\n        \n      }\n      else\n      {\n        accum(ch);\n      }\n    }\n              \n  }\n\n  /**\n   * Writes the specified <var>string</var> after substituting <VAR>specials</VAR>,\n   * and UTF-16 surrogates for character references <CODE>&amp;#xnn</CODE>.\n   *\n   * @param   string      String to convert to XML format.\n   * @param   encoding    CURRENTLY NOT IMPLEMENTED.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void writeAttrString(String string, String encoding)\n          throws org.xml.sax.SAXException\n  {\n\n    final char chars[] = string.toCharArray();\n    final int strLen = chars.length;\n\n    for (int i = 0; i < strLen; i++)\n    {\n      char ch = chars[i];\n\n      if (canConvert(ch) && (!m_charInfo.isSpecial(ch)))\n      {\n        accum(ch);\n      }\n      else if ('<' == ch || '>' == ch)\n      {\n      }\n      else if (('&' == ch) && ((i + 1) < strLen) && ('{' == chars[i + 1]))\n      {\n      }\n      else\n      {\n        int pos = accumDefaultEntity(ch, i, chars, strLen, false);\n\n        if (i != pos)\n        {\n          i = pos - 1;\n        }\n        else\n        {\n          if (isUTF16Surrogate(ch))\n          {\n            try\n            {\n              i = writeUTF16Surrogate(ch, chars, i, strLen);\n            }\n            catch(IOException ioe)\n            {\n              throw new SAXException(ioe);\n            }\n          }\n\n\n          /*\n          else if ((ch < m_maxCharacter) && (m_maxCharacter == 0xFFFF)\n          && (ch != 160))\n          {\n          }\n          else\n          */\n          String entityName = m_charInfo.getEntityNameForChar(ch);\n\n          if (null != entityName)\n          {\n            accum('&');\n            accum(entityName);\n            accum(';');\n          }\n          else if (canConvert(ch))\n          {\n          }\n          else\n          {\n            accum(\"&#\");\n            accum(Integer.toString(ch));\n            accum(';');\n          }\n        }\n      }\n    }\n  }\n\n  /**\n   * Copy an entity into the accumulation buffer.\n   *\n   * @param s The name of the entity.\n   * @param pos unused.\n   *\n   * @return The pos argument.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  private int copyEntityIntoBuf(String s, int pos)\n          throws org.xml.sax.SAXException\n  {\n\n    int l = s.length();\n\n    accum('&');\n\n    for (int i = 0; i < l; i++)\n    {\n      accum(s.charAt(i));\n    }\n\n    accum(';');\n\n    return pos;\n  }\n\n  /**\n   * Receive notification of character data.\n   *\n   * <p>The Parser will call this method to report each chunk of\n   * character data.  SAX parsers may return all contiguous character\n   * data in a single chunk, or they may split it into several\n   * chunks; however, all of the characters in any single event\n   * must come from the same external entity, so that the Locator\n   * provides useful information.</p>\n   *\n   * <p>The application must not attempt to read from the array\n   * outside of the specified range.</p>\n   *\n   * <p>Note that some parsers will report whitespace using the\n   * ignorableWhitespace() method rather than this one (validating\n   * parsers must do so).</p>\n   *\n   * @param chars The characters from the XML document.\n   * @param start The start position in the array.\n   * @param length The number of characters to read from the array.\n   * @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see #ignorableWhitespace\n   * @see org.xml.sax.Locator\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void characters(char chars[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (m_isRawStack.peekOrFalse())\n    {\n      try\n      {\n        writeParentTagEnd();\n\n        m_ispreserve = true;\n\n        if (shouldIndent())\n          indent(m_currentIndent);\n\n        writeNormalizedChars(chars, start, length, false);\n\n        return;\n      }\n      catch (IOException ioe)\n      {\n        throw new org.xml.sax.SAXException(\n          XSLMessages.createXPATHMessage());\n      }\n    }\n    else\n    {\n      super.characters(chars, start, length);\n    }\n  }\n\n  /**\n   *  Receive notification of cdata.\n   *\n   *  <p>The Parser will call this method to report each chunk of\n   *  character data.  SAX parsers may return all contiguous character\n   *  data in a single chunk, or they may split it into several\n   *  chunks; however, all of the characters in any single event\n   *  must come from the same external entity, so that the Locator\n   *  provides useful information.</p>\n   *\n   *  <p>The application must not attempt to read from the array\n   *  outside of the specified range.</p>\n   *\n   *  <p>Note that some parsers will report whitespace using the\n   *  ignorableWhitespace() method rather than this one (validating\n   *  parsers must do so).</p>\n   *\n   *  @param ch The characters from the XML document.\n   *  @param start The start position in the array.\n   *  @param length The number of characters to read from the array.\n   *  @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *             wrapping another exception.\n   *  @see #ignorableWhitespace\n   *  @see org.xml.sax.Locator\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void cdata(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if ((null != m_currentElementName)\n            && (m_currentElementName.equalsIgnoreCase(\"SCRIPT\")\n                || m_currentElementName.equalsIgnoreCase(\"STYLE\")))\n    {\n      try\n      {\n        writeParentTagEnd();\n\n        m_ispreserve = true;\n\n        if (shouldIndent())\n          indent(m_currentIndent);\n\n        writeNormalizedChars(ch, start, length, true);\n      }\n      catch (IOException ioe)\n      {\n        throw new org.xml.sax.SAXException(\n          XSLMessages.createXPATHMessage());\n      }\n    }\n\n    /*\n    {\n      try\n      {\n        writeParentTagEnd();\n        m_ispreserve = true;\n        if (shouldIndent())\n          indent(m_currentIndent);\n        this.accum(ch, start, length);\n      }\n      catch(IOException ioe)\n      {\n      }\n    }\n    */\n    else\n    {\n      super.cdata(ch, start, length);\n    }\n  }\n\n  /**\n   *  Receive notification of a processing instruction.\n   *\n   *  @param target The processing instruction target.\n   *  @param data The processing instruction data, or null if\n   *         none was supplied.\n   *  @throws org.xml.sax.SAXException Any SAX exception, possibly\n   *             wrapping another exception.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void processingInstruction(String target, String data)\n          throws org.xml.sax.SAXException\n  {\n\n    if (target.equals(Result.PI_DISABLE_OUTPUT_ESCAPING))\n    {\n      startNonEscaping();\n    }\n    else if (target.equals(Result.PI_ENABLE_OUTPUT_ESCAPING))\n    {\n      endNonEscaping();\n    }\n    else\n    {\n      writeParentTagEnd();\n\n      if (shouldIndent())\n        indent(m_currentIndent);\n\n      this.accum(\"<?\" + target);\n\n      if (data.length() > 0 &&!Character.isSpaceChar(data.charAt(0)))\n        this.accum(\" \");\n\n      \n      if (m_elemStack.isEmpty())\n         outputLineSep();\n\n      m_startNewLine = true;\n    }\n  }\n\n  /**\n   * Receive notivication of a entityReference.\n   *\n   * @param name non-null reference to entity name string.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void entityReference(String name) throws org.xml.sax.SAXException\n  {\n\n    this.accum(\"&\");\n    this.accum(name);\n    this.accum(\";\");", "functions": [{"function_name": "setSpecialEscapeURLs", "code": "  public void setSpecialEscapeURLs(boolean bool)\n  {\n    m_specialEscapeURLs = bool;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOmitMetaTag", "code": "  public void setOmitMetaTag(boolean bool)\n  {\n    m_omitMetaTag = bool;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setOutputFormat", "code": "  public void setOutputFormat(Properties format)\n  {\n\n    m_specialEscapeURLs =\n      OutputProperties.getBooleanProperty(OutputProperties.S_USE_URL_ESCAPING,\n                                          format);\n\n    m_omitMetaTag =\n      OutputProperties.getBooleanProperty(OutputProperties.S_OMIT_META_TAG,\n                                          format);\n                            \n    super.setOutputFormat(format);", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getSpecialEscapeURLs", "code": "  public boolean getSpecialEscapeURLs()\n  {\n    return m_specialEscapeURLs;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getOmitMetaTag", "code": "  public boolean getOmitMetaTag()\n  {\n    return m_omitMetaTag;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getElemDesc", "code": "  ElemDesc getElemDesc(String name)\n  {\n\n    if (null != name)\n    {\n      Object obj = m_elementFlags.get(name);\n\n      if (null != obj)\n        return (ElemDesc) obj;\n    }\n\n    return m_dummy;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [4, 7], [5, 8], [5, 9], [9, 10], [6, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 4], [8, 5], [9, 5], [10, 9], [11, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "startDocument", "code": "  public void startDocument() throws org.xml.sax.SAXException\n  {\n\n    m_needToOutputDocTypeDecl = true;\n    m_startNewLine = false;\n    m_shouldNotWriteXMLHeader = true;\n\n    if (true == m_needToOutputDocTypeDecl)\n    {\n      if ((null != m_doctypeSystem) || (null != m_doctypePublic))\n      {\n        accum(\"<!DOCTYPE HTML\");\n\n        if (null != m_doctypePublic)\n        {\n          accum(\" PUBLIC \\\"\");\n          accum(m_doctypePublic);\n          accum(\"\\\"\");\n        }\n\n        if (null != m_doctypeSystem)\n        {\n          if (null == m_doctypePublic)\n            accum(\" SYSTEM \\\"\");\n          else\n            accum(\" \\\"\");\n\n          accum(m_doctypeSystem);\n          accum(\"\\\"\");\n        }\n\n        accum(\">\");\n        outputLineSep();\n      }\n    }\n\n    m_needToOutputDocTypeDecl = false;", "ast_nodes": ["FUNC_DECL", "IF", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [2, 7], [1, 8], [3, 9], [4, 10], [5, 11], [6, 12], [8, 13], [8, 14], [8, 15], [13, 16], [13, 17], [8, 18], [8, 19], [14, 20], [15, 21], [8, 22], [16, 23], [17, 24], [19, 25], [14, 26], [20, 27], [21, 28], [22, 29], [14, 30], [14, 31], [26, 32], [15, 33], [15, 34], [15, 35], [30, 36], [26, 37], [26, 38], [32, 39], [33, 40], [35, 41], [37, 42], [38, 43], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 2], [8, 1], [9, 3], [10, 4], [11, 5], [12, 6], [13, 8], [14, 8], [15, 8], [16, 13], [17, 13], [18, 8], [19, 8], [20, 14], [21, 15], [22, 8], [23, 16], [24, 17], [25, 19], [26, 14], [27, 20], [28, 21], [29, 22], [30, 14], [31, 14], [32, 26], [33, 15], [34, 15], [35, 15], [36, 30], [37, 26], [38, 26], [39, 32], [40, 33], [41, 35], [42, 37], [43, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43]]}, {"function_name": "startElement", "code": "  public void startElement(\n          String namespaceURI, String localName, String name, Attributes atts)\n            throws org.xml.sax.SAXException\n  {\n\n    if (null != namespaceURI && namespaceURI.length() > 0)\n    {\n      super.startElement(namespaceURI, localName, name, atts);\n\n      return;\n    }\n\n    boolean savedDoIndent = m_doIndent;\n    boolean noLineBreak;\n\n    writeParentTagEnd();\n    pushState(\n      namespaceURI, localName,\n      m_cdataSectionNames, m_cdataSectionStates);\n\n    ElemDesc elemDesc = getElemDesc(name);\n\n    boolean isBlockElement = elemDesc.is(ElemDesc.BLOCK);\n    boolean isHeadElement = elemDesc.is(ElemDesc.HEADELEM);\n\n    if (m_ispreserve)\n      m_ispreserve = false;\n    else if (m_doIndent && (null != m_currentElementName)\n             && (!m_inBlockElem || isBlockElement)\n\n    /* && !isWhiteSpaceSensitive */\n    )\n    {\n      m_startNewLine = true;\n\n      indent(m_currentIndent);\n    }\n\n    m_inBlockElem = !isBlockElement;\n\n    m_isRawStack.push(elemDesc.is(ElemDesc.RAW));\n\n    m_currentElementName = name;\n\n    this.accum('<');\n    this.accum(name);\n\n    int nAttrs = atts.getLength();\n\n    for (int i = 0; i < nAttrs; i++)\n    {\n      processAttribute(atts.getQName(i), elemDesc, atts.getValue(i));\n    }\n\n    openElementForChildren();\n\n    m_currentIndent += this.m_indentAmount;\n    m_isprevtext = false;\n    m_doIndent = savedDoIndent;\n\n    if (isHeadElement)\n    {\n      writeParentTagEnd();\n\n      if (!m_omitMetaTag)\n      {\n        if (m_doIndent)\n          indent(m_currentIndent);\n\n        accum(\n          \"<META http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=\");\n\n        String encoding = Encodings.getMimeEncoding(m_encoding);\n\n        accum(encoding);\n        accum('\"');\n        accum('>');", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "ASSIGN", "CALL", "ASSIGN", "IF", "CALL", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "VAR_DECL", "IF", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [2, 19], [0, 20], [0, 21], [0, 22], [4, 23], [0, 24], [0, 25], [10, 26], [1, 27], [16, 28], [3, 29], [0, 30], [0, 31], [21, 32], [23, 33], [4, 34], [5, 35], [6, 36], [7, 37], [10, 38], [26, 39], [26, 40], [1, 41], [2, 42], [2, 43], [31, 44], [33, 45], [33, 46], [34, 47], [39, 48], [39, 49], [40, 50], [27, 51], [27, 52], [42, 53], [42, 54], [23, 55], [23, 56], [46, 57], [27, 58], [27, 59], [27, 60], [27, 61], [56, 62], [57, 63], [58, 64], [59, 65], [51, 66], [61, 67], [52, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 2], [20, 0], [21, 0], [22, 0], [23, 4], [24, 0], [25, 0], [26, 10], [27, 1], [28, 16], [29, 3], [30, 0], [31, 0], [32, 21], [33, 23], [34, 4], [35, 5], [36, 6], [37, 7], [38, 10], [39, 26], [40, 26], [41, 1], [42, 2], [43, 2], [44, 31], [45, 33], [46, 33], [47, 34], [48, 39], [49, 39], [50, 40], [51, 27], [52, 27], [53, 42], [54, 42], [55, 23], [56, 23], [57, 46], [58, 27], [59, 27], [60, 27], [61, 27], [62, 56], [63, 57], [64, 58], [65, 59], [66, 51], [67, 61], [68, 52], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "endElement", "code": "  public void endElement(String namespaceURI, String localName, String name)\n          throws org.xml.sax.SAXException\n  {\n    if (null != namespaceURI && namespaceURI.length() > 0)\n    {\n      super.endElement(namespaceURI, localName, name);\n\n      return;\n    }\n\n    m_currentIndent -= this.m_indentAmount;\n\n    boolean hasChildNodes = childNodesWereAdded();\n\n    m_isRawStack.pop();\n\n    ElemDesc elemDesc = getElemDesc(name);\n\n    boolean isBlockElement = elemDesc.is(ElemDesc.BLOCK);\n    boolean shouldIndent = false;\n\n    if (m_ispreserve)\n    {\n      m_ispreserve = false;\n    }\n    else if (m_doIndent && (!m_inBlockElem || isBlockElement))\n    {\n      m_startNewLine = true;\n      shouldIndent = true;\n\n    }\n\n    m_inBlockElem = !isBlockElement;\n\n    if (hasChildNodes)\n    {\n      if (shouldIndent)\n        indent(m_currentIndent);\n\n      this.accum(\"</\");\n      this.accum(name);\n      this.accum('>');\n\n      m_currentElementName = name;\n    }\n    else\n    {\n      if (!elemDesc.is(ElemDesc.EMPTY))\n      {\n        this.accum('>');\n\n\n        this.accum('<');\n        this.accum('/');\n        this.accum(name);\n        this.accum('>');\n      }\n      else\n      {\n        this.accum('>');\n      }\n    }\n\n    if (elemDesc.is(ElemDesc.WHITESPACESENSITIVE))\n      m_ispreserve = true;\n\n    if (hasChildNodes)\n    {\n      if (!m_preserves.isEmpty())\n        m_preserves.pop();\n    }\n\n    m_isprevtext = false;\n\n    m_cdataSectionStates.pop();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "ASSIGN", "CALL", "ASSIGN", "IF", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "IF", "ASSIGN", "IF", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [2, 15], [0, 16], [4, 17], [0, 18], [0, 19], [9, 20], [14, 21], [1, 22], [2, 23], [3, 24], [3, 25], [17, 26], [5, 27], [6, 28], [7, 29], [8, 30], [9, 31], [20, 32], [20, 33], [22, 34], [23, 35], [24, 36], [3, 37], [26, 38], [4, 39], [32, 40], [32, 41], [33, 42], [22, 43], [3, 44], [3, 45], [3, 46], [25, 47], [17, 48], [17, 49], [39, 50], [44, 51], [46, 52], [48, 53], [49, 54], [24, 55], [24, 56], [24, 57], [24, 58], [24, 59], [24, 60], [55, 61], [56, 62], [58, 63], [59, 64], [60, 65], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 2], [16, 0], [17, 4], [18, 0], [19, 0], [20, 9], [21, 14], [22, 1], [23, 2], [24, 3], [25, 3], [26, 17], [27, 5], [28, 6], [29, 7], [30, 8], [31, 9], [32, 20], [33, 20], [34, 22], [35, 23], [36, 24], [37, 3], [38, 26], [39, 4], [40, 32], [41, 32], [42, 33], [43, 22], [44, 3], [45, 3], [46, 3], [47, 25], [48, 17], [49, 17], [50, 39], [51, 44], [52, 46], [53, 48], [54, 49], [55, 24], [56, 24], [57, 24], [58, 24], [59, 24], [60, 24], [61, 55], [62, 56], [63, 58], [64, 59], [65, 60], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65]]}, {"function_name": "processAttribute", "code": "  protected void processAttribute(\n          String name, ElemDesc elemDesc, String value)\n            throws org.xml.sax.SAXException\n  {\n\n    this.accum(' ');\n\n    if (((value.length() == 0) || value.equalsIgnoreCase(name))\n            && elemDesc.isAttrFlagSet(name, ElemDesc.ATTREMPTY))\n    {\n      this.accum(name);\n    }\n    else\n    {\n      this.accum(name);\n      this.accum('=');\n\n      this.accum('\\\"');\n      if (elemDesc.isAttrFlagSet(name, ElemDesc.ATTRURL))\n        writeAttrURI(value, m_specialEscapeURLs);\n      else\n        writeAttrString(value, this.m_encoding);\n      this.accum('\\\"');", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "IF", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [0, 9], [6, 10], [8, 11], [8, 12], [9, 13], [1, 14], [6, 15], [6, 16], [1, 17], [1, 18], [1, 19], [1, 20], [12, 21], [12, 22], [14, 23], [17, 24], [18, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 0], [10, 6], [11, 8], [12, 8], [13, 9], [14, 1], [15, 6], [16, 6], [17, 1], [18, 1], [19, 1], [20, 1], [21, 12], [22, 12], [23, 14], [24, 17], [25, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "isASCIIDigit", "code": "   private boolean isASCIIDigit(char c)\n   {\n      return (c >= '0' && c <= '9');", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 4], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "makeHHString", "code": "  private String makeHHString(int i)\n  {\n    String s = Integer.toHexString(i).toUpperCase();\n    if(s.length() == 1)\n    {\n      s = \"0\"+s;\n    }\n    return s;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [5, 6], [5, 7], [3, 8], [2, 9], [8, 10], [9, 11], [11, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 5], [7, 5], [8, 3], [9, 2], [10, 8], [11, 9], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "isHHSign", "code": "  private boolean isHHSign(String str) \n  {\n    boolean sign = true;  \n    try {\n      char r = (char)Integer.parseInt(str,16);\n    } catch (NumberFormatException e) {\n      sign = false;  \n    }\n    return sign;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "VAR_DECL", "PARAM", "CATCH", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [2, 6], [3, 7], [5, 8], [8, 9], [6, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 2], [7, 3], [8, 5], [9, 8], [10, 6], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "writeAttrURI", "code": "  public void writeAttrURI(String string, boolean doURLEscaping)\n          throws org.xml.sax.SAXException\n  {\n\n    char[] stringArray = string.toCharArray();\n    int len = stringArray.length;\n        \n    for (int i = 0; i < len; i++)\n    {\n      char ch = stringArray[i];\n\n      if ((ch < 32) || (ch > 126))\n      {\n        if (doURLEscaping)\n        {\n          \n          if(ch <= 0x7F)\n          {\n            accum('%');\n            accum(makeHHString(ch));          \n          }\n          else if(ch <= 0x7FF)\n          {\n            int high = (ch >> 6) | 0xC0;  \n            accum('%');\n            accum(makeHHString(high));\n            accum('%');\n            accum(makeHHString(low));\n          }\n          else if(true){\n            \n            int highSurrogate = ((int) ch) & 0x03FF;\n            \n            int wwww = ((highSurrogate & 0x03C0) >> 6);\n            int uuuuu = wwww+1;  \n            \n            int zzzz = (highSurrogate & 0x003C) >> 2;\n            \n            int yyyyyy = ((highSurrogate & 0x0003) << 4) & 0x30;\n            \n            ch = stringArray[++i];\n            \n            int lowSurrogate = ((int) ch) & 0x03FF;\n            \n            yyyyyy = yyyyyy | ((lowSurrogate & 0x03C0) >> 6);\n            \n            int xxxxxx = (lowSurrogate & 0x003F);\n            \n            int byte2 = 0x80 | (((uuuuu & 0x03) << 4) & 0x30) | zzzz;\n            int byte3 = 0x80 | yyyyyy;\n            int byte4 = 0x80 | xxxxxx;\n            \n            accum('%');\n            accum(makeHHString(byte1));\n            accum('%');\n            accum(makeHHString(byte2));\n            accum('%');\n            accum(makeHHString(byte3));\n            accum('%');\n            accum(makeHHString(byte4));\n          }\n          else \n          {\n            accum('%');\n            accum(makeHHString(high));\n            accum('%');\n            accum(makeHHString(middle));\n            accum('%');\n            accum(makeHHString(low));\n          }\n\n        }\n        else if (canConvert(ch))\n        {\n          accum(ch);\n        }\n        else\n        {\n          accum(\"&#\");\n          accum(Integer.toString(ch));\n          accum(';');\n        }\n      }\n      else if('%' == ch)\n      {\n          \n          \n        \n       /* if ( ((i+2) < len) && isHHSign(new String(stringArray,i+1,2)) )\n        {\n          accum(ch);\n        }\n        else\n        {\n          if (doURLEscaping)\n          {\n           accum('%');\n           accum(makeHHString(ch));\n          }\n          else*/\n            accum(ch);\n               \n      } \n      else if (ch == '\"')\n      {\n        if (doURLEscaping)\n          accum(\"%22\");\n        \n      }\n      else\n      {\n        accum(ch);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "CALL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [3, 9], [7, 10], [7, 11], [1, 12], [10, 13], [10, 14], [7, 15], [11, 16], [11, 17], [13, 18], [14, 19], [15, 20], [16, 21], [17, 22], [13, 23], [18, 24], [10, 25], [20, 26], [15, 27], [13, 28], [27, 29], [27, 30], [23, 31], [20, 32], [20, 33], [20, 34], [20, 35], [29, 36], [29, 37], [30, 38], [31, 39], [32, 40], [33, 41], [34, 42], [36, 43], [29, 44], [37, 45], [27, 46], [27, 47], [36, 48], [36, 49], [36, 50], [36, 51], [36, 52], [36, 53], [36, 54], [36, 55], [36, 56], [36, 57], [29, 58], [29, 59], [29, 60], [29, 61], [46, 62], [47, 63], [36, 64], [36, 65], [36, 66], [36, 67], [36, 68], [36, 69], [36, 70], [36, 71], [36, 72], [36, 73], [36, 74], [36, 75], [36, 76], [36, 77], [36, 78], [36, 79], [58, 80], [59, 81], [60, 82], [61, 83], [44, 84], [64, 85], [65, 86], [66, 87], [67, 88], [68, 89], [69, 90], [70, 91], [71, 92], [72, 93], [73, 94], [74, 95], [75, 96], [76, 97], [77, 98], [48, 99], [49, 100], [50, 101], [51, 102], [78, 103], [52, 104], [53, 105], [54, 106], [55, 107], [56, 108], [57, 109], [84, 110], [84, 111], [99, 112], [100, 113], [101, 114], [102, 115], [103, 116], [104, 117], [105, 118], [105, 119], [106, 120], [106, 121], [107, 122], [108, 123], [108, 124], [109, 125], [111, 126], [114, 127], [114, 128], [116, 129], [116, 130], [119, 131], [119, 132], [121, 133], [124, 134], [127, 135], [127, 136], [130, 137], [132, 138], [136, 139], [136, 140], [140, 141], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 3], [10, 7], [11, 7], [12, 1], [13, 10], [14, 10], [15, 7], [16, 11], [17, 11], [18, 13], [19, 14], [20, 15], [21, 16], [22, 17], [23, 13], [24, 18], [25, 10], [26, 20], [27, 15], [28, 13], [29, 27], [30, 27], [31, 23], [32, 20], [33, 20], [34, 20], [35, 20], [36, 29], [37, 29], [38, 30], [39, 31], [40, 32], [41, 33], [42, 34], [43, 36], [44, 29], [45, 37], [46, 27], [47, 27], [48, 36], [49, 36], [50, 36], [51, 36], [52, 36], [53, 36], [54, 36], [55, 36], [56, 36], [57, 36], [58, 29], [59, 29], [60, 29], [61, 29], [62, 46], [63, 47], [64, 36], [65, 36], [66, 36], [67, 36], [68, 36], [69, 36], [70, 36], [71, 36], [72, 36], [73, 36], [74, 36], [75, 36], [76, 36], [77, 36], [78, 36], [79, 36], [80, 58], [81, 59], [82, 60], [83, 61], [84, 44], [85, 64], [86, 65], [87, 66], [88, 67], [89, 68], [90, 69], [91, 70], [92, 71], [93, 72], [94, 73], [95, 74], [96, 75], [97, 76], [98, 77], [99, 48], [100, 49], [101, 50], [102, 51], [103, 78], [104, 52], [105, 53], [106, 54], [107, 55], [108, 56], [109, 57], [110, 84], [111, 84], [112, 99], [113, 100], [114, 101], [115, 102], [116, 103], [117, 104], [118, 105], [119, 105], [120, 106], [121, 106], [122, 107], [123, 108], [124, 108], [125, 109], [126, 111], [127, 114], [128, 114], [129, 116], [130, 116], [131, 119], [132, 119], [133, 121], [134, 124], [135, 127], [136, 127], [137, 130], [138, 132], [139, 136], [140, 136], [141, 140], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141]]}, {"function_name": "writeAttrString", "code": "  public void writeAttrString(String string, String encoding)\n          throws org.xml.sax.SAXException\n  {\n\n    final char chars[] = string.toCharArray();\n    final int strLen = chars.length;\n\n    for (int i = 0; i < strLen; i++)\n    {\n      char ch = chars[i];\n\n      if (canConvert(ch) && (!m_charInfo.isSpecial(ch)))\n      {\n        accum(ch);\n      }\n      else if ('<' == ch || '>' == ch)\n      {\n      }\n      else if (('&' == ch) && ((i + 1) < strLen) && ('{' == chars[i + 1]))\n      {\n      }\n      else\n      {\n        int pos = accumDefaultEntity(ch, i, chars, strLen, false);\n\n        if (i != pos)\n        {\n          i = pos - 1;\n        }\n        else\n        {\n          if (isUTF16Surrogate(ch))\n          {\n            try\n            {\n              i = writeUTF16Surrogate(ch, chars, i, strLen);\n            }\n            catch(IOException ioe)\n            {\n              throw new SAXException(ioe);\n            }\n          }\n\n\n          /*\n          else if ((ch < m_maxCharacter) && (m_maxCharacter == 0xFFFF)\n          && (ch != 160))\n          {\n          }\n          else\n          */\n          String entityName = m_charInfo.getEntityNameForChar(ch);\n\n          if (null != entityName)\n          {\n            accum('&');\n            accum(entityName);\n            accum(';');\n          }\n          else if (canConvert(ch))\n          {\n          }\n          else\n          {\n            accum(\"&#\");\n            accum(Integer.toString(ch));\n            accum(';');", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "IF", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "TRY", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CATCH", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [3, 9], [7, 10], [7, 11], [1, 12], [10, 13], [10, 14], [11, 15], [11, 16], [13, 17], [14, 18], [14, 19], [7, 20], [13, 21], [13, 22], [17, 23], [17, 24], [18, 25], [19, 26], [21, 27], [23, 28], [24, 29], [24, 30], [21, 31], [21, 32], [21, 33], [22, 34], [29, 35], [30, 36], [31, 37], [31, 38], [33, 39], [21, 40], [34, 41], [23, 42], [35, 43], [37, 44], [38, 45], [32, 46], [33, 47], [40, 48], [42, 49], [31, 50], [31, 51], [31, 52], [47, 53], [48, 54], [37, 55], [37, 56], [37, 57], [50, 58], [52, 59], [53, 60], [47, 61], [55, 62], [56, 63], [57, 64], [60, 65], [61, 66], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 3], [10, 7], [11, 7], [12, 1], [13, 10], [14, 10], [15, 11], [16, 11], [17, 13], [18, 14], [19, 14], [20, 7], [21, 13], [22, 13], [23, 17], [24, 17], [25, 18], [26, 19], [27, 21], [28, 23], [29, 24], [30, 24], [31, 21], [32, 21], [33, 21], [34, 22], [35, 29], [36, 30], [37, 31], [38, 31], [39, 33], [40, 21], [41, 34], [42, 23], [43, 35], [44, 37], [45, 38], [46, 32], [47, 33], [48, 40], [49, 42], [50, 31], [51, 31], [52, 31], [53, 47], [54, 48], [55, 37], [56, 37], [57, 37], [58, 50], [59, 52], [60, 53], [61, 47], [62, 55], [63, 56], [64, 57], [65, 60], [66, 61], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66]]}, {"function_name": "copyEntityIntoBuf", "code": "  private int copyEntityIntoBuf(String s, int pos)\n          throws org.xml.sax.SAXException\n  {\n\n    int l = s.length();\n\n    accum('&');\n\n    for (int i = 0; i < l; i++)\n    {\n      accum(s.charAt(i));\n    }\n\n    accum(';');\n\n    return pos;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "PARAM", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [0, 8], [6, 9], [8, 10], [3, 11], [2, 12], [2, 13], [12, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 0], [9, 6], [10, 8], [11, 3], [12, 2], [13, 2], [14, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "characters", "code": "  public void characters(char chars[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if (m_isRawStack.peekOrFalse())\n    {\n      try\n      {\n        writeParentTagEnd();\n\n        m_ispreserve = true;\n\n        if (shouldIndent())\n          indent(m_currentIndent);\n\n        writeNormalizedChars(chars, start, length, false);\n\n        return;\n      }\n      catch (IOException ioe)\n      {\n        throw new org.xml.sax.SAXException(\n          XSLMessages.createXPATHMessage());\n      }\n    }\n    else\n    {\n      super.characters(chars, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "TRY", "CATCH", "RETURN", "IF", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [6, 7], [6, 8], [6, 9], [7, 10], [6, 11], [9, 12], [6, 13], [6, 14], [10, 15], [11, 16], [9, 17], [13, 18], [15, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 6], [8, 6], [9, 6], [10, 7], [11, 6], [12, 9], [13, 6], [14, 6], [15, 10], [16, 11], [17, 9], [18, 13], [19, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "cdata", "code": "  public void cdata(char ch[], int start, int length)\n          throws org.xml.sax.SAXException\n  {\n\n    if ((null != m_currentElementName)\n            && (m_currentElementName.equalsIgnoreCase(\"SCRIPT\")\n                || m_currentElementName.equalsIgnoreCase(\"STYLE\")))\n    {\n      try\n      {\n        writeParentTagEnd();\n\n        m_ispreserve = true;\n\n        if (shouldIndent())\n          indent(m_currentIndent);\n\n        writeNormalizedChars(ch, start, length, true);\n      }\n      catch (IOException ioe)\n      {\n        throw new org.xml.sax.SAXException(\n          XSLMessages.createXPATHMessage());\n      }\n    }\n\n    /*\n    {\n      try\n      {\n        writeParentTagEnd();\n        m_ispreserve = true;\n        if (shouldIndent())\n          indent(m_currentIndent);\n        this.accum(ch, start, length);\n      }\n      catch(IOException ioe)\n      {\n      }\n    }\n    */\n    else\n    {\n      super.cdata(ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "TRY", "BINARY_OP", "BINARY_OP", "CATCH", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [5, 8], [6, 9], [6, 10], [7, 11], [7, 12], [8, 13], [9, 14], [6, 15], [10, 16], [6, 17], [6, 18], [11, 19], [12, 20], [14, 21], [15, 22], [10, 23], [17, 24], [21, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 5], [9, 6], [10, 6], [11, 7], [12, 7], [13, 8], [14, 9], [15, 6], [16, 10], [17, 6], [18, 6], [19, 11], [20, 12], [21, 14], [22, 15], [23, 10], [24, 17], [25, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(String target, String data)\n          throws org.xml.sax.SAXException\n  {\n\n    if (target.equals(Result.PI_DISABLE_OUTPUT_ESCAPING))\n    {\n      startNonEscaping();\n    }\n    else if (target.equals(Result.PI_ENABLE_OUTPUT_ESCAPING))\n    {\n      endNonEscaping();\n    }\n    else\n    {\n      writeParentTagEnd();\n\n      if (shouldIndent())\n        indent(m_currentIndent);\n\n      this.accum(\"<?\" + target);\n\n      if (data.length() > 0 &&!Character.isSpaceChar(data.charAt(0)))\n        this.accum(\" \");\n\n      \n      if (m_elemStack.isEmpty())\n         outputLineSep();\n\n      m_startNewLine = true;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "CALL", "CALL", "IF", "IF", "IF", "CALL", "ASSIGN", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [4, 7], [4, 8], [4, 9], [1, 10], [4, 11], [7, 12], [8, 13], [9, 14], [4, 15], [4, 16], [11, 17], [7, 18], [13, 19], [13, 20], [4, 21], [9, 22], [8, 23], [19, 24], [20, 25], [20, 26], [21, 27], [23, 28], [24, 29], [27, 30], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 4], [8, 4], [9, 4], [10, 1], [11, 4], [12, 7], [13, 8], [14, 9], [15, 4], [16, 4], [17, 11], [18, 7], [19, 13], [20, 13], [21, 4], [22, 9], [23, 8], [24, 19], [25, 20], [26, 20], [27, 21], [28, 23], [29, 24], [30, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "entityReference", "code": "  public void entityReference(String name) throws org.xml.sax.SAXException\n  {\n\n    this.accum(\"&\");\n    this.accum(name);\n    this.accum(\";\");", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [4, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "SerializerToHTML", "code": "  public SerializerToHTML()\n  {\n\n    super();\n    m_charInfo = m_htmlcharInfo;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}], "label": 0}
{"sample_id": "camel-1.4-2300", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/component/http/HttpEndpoint.java", "language": "java", "name": "org.apache.camel.component.http.HttpEndpoint", "code": "public class HttpEndpoint extends DefaultPollingEndpoint<HttpExchange> {\n\n    private HttpBinding binding;\n    private HttpComponent component;\n    private URI httpUri;\n    private HttpClientParams clientParams;\n    private HttpClientConfigurer httpClientConfigurer;\n    private HttpConnectionManager httpConnectionManager;\n\n    public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, HttpConnectionManager httpConnectionManager) throws URISyntaxException {\n        this(endPointURI, component, httpURI, new HttpClientParams(), httpConnectionManager, null);\n    }\n\n    public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, HttpClientParams clientParams,\n                        HttpConnectionManager httpConnectionManager, HttpClientConfigurer clientConfigurer) throws URISyntaxException {\n        super(endPointURI, component);\n        this.component = component;\n        this.httpUri = httpURI;\n        this.clientParams = clientParams;\n        this.httpClientConfigurer = clientConfigurer;\n        this.httpConnectionManager = httpConnectionManager;\n    }\n\n    public Producer<HttpExchange> createProducer() throws Exception {\n        return new HttpProducer(this);\n    }\n\n    @Override\n    public PollingConsumer<HttpExchange> createPollingConsumer() throws Exception {\n        return new HttpPollingConsumer(this);\n    }\n\n    public HttpExchange createExchange(ExchangePattern pattern) {\n        return new HttpExchange(this, pattern);\n    }\n\n    public HttpExchange createExchange(HttpServletRequest request, HttpServletResponse response) {\n        return new HttpExchange(this, request, response);\n    }\n\n    /**\n     * Factory method used by producers and consumers to create a new {@link HttpClient} instance\n     */\n    public HttpClient createHttpClient() {\n        HttpClient answer = new HttpClient(getClientParams());\n        answer.setHttpConnectionManager(httpConnectionManager);\n        HttpClientConfigurer configurer = getHttpClientConfigurer();\n        if (configurer != null) {\n            configurer.configureHttpClient(answer);\n        }\n        return answer;\n    }\n\n    public void connect(HttpConsumer consumer) throws Exception {\n        component.connect(consumer);\n    }\n\n    public void disconnect(HttpConsumer consumer) throws Exception {\n        component.disconnect(consumer);\n    }\n\n\n\n\n    /**\n     * Provide access to the client parameters used on new {@link HttpClient} instances\n     * used by producers or consumers of this endpoint.\n     */\n    public HttpClientParams getClientParams() {\n        return clientParams;\n    }\n\n    /**\n     * Provide access to the client parameters used on new {@link HttpClient} instances\n     * used by producers or consumers of this endpoint.\n     *\n     * @param clientParams\n     */\n    public void setClientParams(HttpClientParams clientParams) {\n        this.clientParams = clientParams;\n    }\n\n    public HttpClientConfigurer getHttpClientConfigurer() {\n        return httpClientConfigurer;\n    }\n\n    /**\n     * Register a custom configuration strategy for new {@link HttpClient} instances\n     * created by producers or consumers such as to configure authentication mechanisms etc\n     *\n     * @param httpClientConfigurer the strategy for configuring new {@link HttpClient} instances\n     */\n    public void setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer) {\n        this.httpClientConfigurer = httpClientConfigurer;\n    }\n\n    public HttpBinding getBinding() {\n        if (binding == null) {\n            binding = new HttpBinding();\n        }\n        return binding;\n    }\n\n    public void setBinding(HttpBinding binding) {\n        this.binding = binding;\n    }\n\n    public boolean isSingleton() {\n        return true;\n    }\n\n    public String getPath() {\n        return httpUri.getPath();\n    }\n\n    public int getPort() {\n        if (httpUri.getPort() == -1) {\n            if (\"https\".equals(getProtocol())) {\n                return 443;\n            } else {\n                return 80;\n            }\n        }\n        return httpUri.getPort();\n    }\n\n    public String getProtocol() {\n        return httpUri.getScheme();\n    }\n\n    public URI getHttpUri() {\n        return httpUri;", "functions": [{"function_name": "createProducer", "code": "    public Producer<HttpExchange> createProducer() throws Exception {\n        return new HttpProducer(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createPollingConsumer", "code": "    @Override\n    public PollingConsumer<HttpExchange> createPollingConsumer() throws Exception {\n        return new HttpPollingConsumer(this);", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createExchange", "code": "    public HttpExchange createExchange(ExchangePattern pattern) {\n        return new HttpExchange(this, pattern);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "createExchange", "code": "    public HttpExchange createExchange(HttpServletRequest request, HttpServletResponse response) {\n        return new HttpExchange(this, request, response);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "createHttpClient", "code": "    public HttpClient createHttpClient() {\n        HttpClient answer = new HttpClient(getClientParams());\n        answer.setHttpConnectionManager(httpConnectionManager);\n        HttpClientConfigurer configurer = getHttpClientConfigurer();\n        if (configurer != null) {\n            configurer.configureHttpClient(answer);\n        }\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [2, 5], [0, 6], [5, 7], [3, 8], [4, 9], [2, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 2], [6, 0], [7, 5], [8, 3], [9, 4], [10, 2], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "connect", "code": "    public void connect(HttpConsumer consumer) throws Exception {\n        component.connect(consumer);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "disconnect", "code": "    public void disconnect(HttpConsumer consumer) throws Exception {\n        component.disconnect(consumer);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getClientParams", "code": "    public HttpClientParams getClientParams() {\n        return clientParams;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setClientParams", "code": "    public void setClientParams(HttpClientParams clientParams) {\n        this.clientParams = clientParams;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHttpClientConfigurer", "code": "    public HttpClientConfigurer getHttpClientConfigurer() {\n        return httpClientConfigurer;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHttpClientConfigurer", "code": "    public void setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer) {\n        this.httpClientConfigurer = httpClientConfigurer;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getBinding", "code": "    public HttpBinding getBinding() {\n        if (binding == null) {\n            binding = new HttpBinding();\n        }\n        return binding;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setBinding", "code": "    public void setBinding(HttpBinding binding) {\n        this.binding = binding;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isSingleton", "code": "    public boolean isSingleton() {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPath", "code": "    public String getPath() {\n        return httpUri.getPath();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getPort", "code": "    public int getPort() {\n        if (httpUri.getPort() == -1) {\n            if (\"https\".equals(getProtocol())) {\n                return 443;\n            } else {\n                return 80;\n            }\n        }\n        return httpUri.getPort();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "RETURN", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [4, 6], [4, 7], [5, 8], [5, 9], [5, 10], [8, 11], [9, 12], [10, 13], [11, 14], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 4], [7, 4], [8, 5], [9, 5], [10, 5], [11, 8], [12, 9], [13, 10], [14, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "getProtocol", "code": "    public String getProtocol() {\n        return httpUri.getScheme();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHttpUri", "code": "    public URI getHttpUri() {\n        return httpUri;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HttpEndpoint", "code": "    public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, HttpConnectionManager httpConnectionManager) throws URISyntaxException {\n        this(endPointURI, component, httpURI, new HttpClientParams(), httpConnectionManager, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "HttpEndpoint", "code": "    public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, HttpClientParams clientParams,\n                        HttpConnectionManager httpConnectionManager, HttpClientConfigurer clientConfigurer) throws URISyntaxException {\n        super(endPointURI, component);\n        this.component = component;\n        this.httpUri = httpURI;\n        this.clientParams = clientParams;\n        this.httpClientConfigurer = clientConfigurer;\n        this.httpConnectionManager = httpConnectionManager;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "poi-2.5-5953", "repo": "poi-2.5", "project": "poi", "version": "2.5", "file_path": "org/apache/poi/poifs/filesystem/DocumentNode.java", "language": "java", "name": "org.apache.poi.poifs.filesystem.DocumentNode", "code": "public class DocumentNode\n    extends EntryNode\n    implements DocumentEntry, POIFSViewable\n{\n\n    private POIFSDocument _document;\n\n    /**\n     * create a DocumentNode. This method is not public by design; it\n     * is intended strictly for the internal use of this package\n     *\n     * @param property the DocumentProperty for this DocumentEntry\n     * @param parent the parent of this entry\n     */\n\n    DocumentNode(final DocumentProperty property, final DirectoryNode parent)\n    {\n        super(property, parent);\n        _document = property.getDocument();\n    }\n\n    /**\n     * get the POIFSDocument\n     *\n     * @return the internal POIFSDocument\n     */\n\n    POIFSDocument getDocument()\n    {\n        return _document;\n    }\n\n    /* ********** START implementation of DocumentEntry ********** */\n\n    /**\n     * get the zize of the document, in bytes\n     *\n     * @return size in bytes\n     */\n\n    public int getSize()\n    {\n        return getProperty().getSize();\n    }\n\n    /* **********  END  implementation of DocumentEntry ********** */\n    /* ********** START implementation of Entry ********** */\n\n    /**\n     * is this a DocumentEntry?\n     *\n     * @return true if the Entry is a DocumentEntry, else false\n     */\n\n    public boolean isDocumentEntry()\n    {\n        return true;\n    }\n\n    /* **********  END  implementation of Entry ********** */\n    /* ********** START extension of Entry ********** */\n\n    /**\n     * extensions use this method to verify internal rules regarding\n     * deletion of the underlying store.\n     *\n     * @return true if it's ok to delete the underlying store, else\n     *         false\n     */\n\n    protected boolean isDeleteOK()\n    {\n        return true;\n    }\n\n    /* **********  END  extension of Entry ********** */\n    /* ********** START begin implementation of POIFSViewable ********** */\n\n    /**\n     * Get an array of objects, some of which may implement\n     * POIFSViewable\n     *\n     * @return an array of Object; may not be null, but may be empty\n     */\n\n    public Object [] getViewableArray()\n    {\n        return new Object[ 0 ];\n    }\n\n    /**\n     * Get an Iterator of objects, some of which may implement\n     * POIFSViewable\n     *\n     * @return an Iterator; may not be null, but may have an empty\n     * back end store\n     */\n\n    public Iterator getViewableIterator()\n    {\n        List components = new ArrayList();\n\n        components.add(getProperty());\n        components.add(_document);\n        return components.iterator();\n    }\n\n    /**\n     * Give viewers a hint as to whether to call getViewableArray or\n     * getViewableIterator\n     *\n     * @return true if a viewer should call getViewableArray, false if\n     *         a viewer should call getViewableIterator\n     */\n\n    public boolean preferArray()\n    {\n        return false;\n    }\n\n    /**\n     * Provides a short description of the object, to be used when a\n     * POIFSViewable object has not provided its contents.\n     *\n     * @return short description\n     */\n\n    public String getShortDescription()\n    {\n        return getName();", "functions": [{"function_name": "getDocument", "code": "    POIFSDocument getDocument()\n    {\n        return _document;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        return getProperty().getSize();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "isDocumentEntry", "code": "    public boolean isDocumentEntry()\n    {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isDeleteOK", "code": "    protected boolean isDeleteOK()\n    {\n        return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getViewableArray", "code": "    public Object [] getViewableArray()\n    {\n        return new Object[ 0 ];", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getViewableIterator", "code": "    public Iterator getViewableIterator()\n    {\n        List components = new ArrayList();\n\n        components.add(getProperty());\n        components.add(_document);\n        return components.iterator();", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [5, 6], [2, 7], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 5], [7, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "preferArray", "code": "    public boolean preferArray()\n    {\n        return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getShortDescription", "code": "    public String getShortDescription()\n    {\n        return getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "DocumentNode", "code": "    DocumentNode(final DocumentProperty property, final DirectoryNode parent)\n    {\n        super(property, parent);\n        _document = property.getDocument();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.0-3900", "repo": "jedit-4.0", "project": "jedit", "version": "4.0", "file_path": "gnu/regexp/RETokenRepeated.java", "language": "java", "name": "gnu.regexp.RETokenRepeated", "code": "final class RETokenRepeated extends REToken {\n    private REToken token;\n    private int min,max;\n    private boolean stingy;\n    \n    RETokenRepeated(int subIndex, REToken token, int min, int max) {\n\tsuper(subIndex);\n\tthis.token = token;\n\tthis.min = min;\n\tthis.max = max;\n    }\n\n    /** Sets the minimal matching mode to true. */\n    void makeStingy() {\n\tstingy = true;\n    }\n    \n    /** Queries if this token has minimal matching enabled. */\n    boolean isStingy() {\n\treturn stingy;\n    }\n    \n    /**\n     * The minimum length of a repeated token is the minimum length\n     * of the token multiplied by the minimum number of times it must\n     * match.\n     */\n    int getMinimumLength() {\n\treturn (min * token.getMinimumLength());\n    }\n\n    // We do need to save every possible point, but the number of clone()\n    // invocations here is really a killer for performance on non-stingy\n    // repeat operators.  I'm open to suggestions...\n\n    // Hypothetical question: can you have a RE that matches 1 times,\n    // 3 times, 5 times, but not 2 times or 4 times?  Does having\n    // the subexpression back-reference operator allow that?\n\n    boolean match(CharIndexed input, REMatch mymatch) {\n\t// number of times we've matched so far\n\tint numRepeats = 0; \n\t\n\t// Possible positions for the next repeat to match at\n\tREMatch newMatch = mymatch;\n\tREMatch last = null;\n\tREMatch current;\n\n\t// Add the '0-repeats' index\n\t// positions.elementAt(z) == position [] in input after <<z>> matches\n\tVector positions = new Vector();\n\tpositions.addElement(newMatch);\n\t\n\t// Declare variables used in loop\n\tREMatch doables;\n\tREMatch doablesLast;\n\tREMatch recurrent;\n\n\tdo {\n\t    // Check for stingy match for each possibility.\n\t    if (stingy && (numRepeats >= min)) {\n\t\tREMatch result = matchRest(input, newMatch);\n\t\tif (result != null) {\n\t\t    mymatch.assignFrom(result);\n\t\t    return true;\n\t\t}\n\t    }\n\n\t    doables = null;\n\t    doablesLast = null;\n\n\t    // try next repeat at all possible positions\n\t    for (current = newMatch; current != null; current = current.next) {\n\t\trecurrent = (REMatch) current.clone();\n\t\tif (token.match(input, recurrent)) {\n\t\t    // add all items in current to doables array\n\t\t    if (doables == null) {\n\t\t\tdoables = recurrent;\n\t\t\tdoablesLast = recurrent;\n\t\t    } else {\n\t\t\t// Order these from longest to shortest\n\t\t\t// Start by assuming longest (more repeats)\n\t\t\tdoablesLast.next = recurrent;\n\t\t    }\n\t\t    // Find new doablesLast\n\t\t    while (doablesLast.next != null) {\n\t\t\tdoablesLast = doablesLast.next;\n\t\t    }\n\t\t}\n\t    }\n\t    // if none of the possibilities worked out, break out of do/while\n\t    if (doables == null) break;\n\t    \n\t    // reassign where the next repeat can match\n\t    newMatch = doables;\n\t    \n\t    // increment how many repeats we've successfully found\n\t    ++numRepeats;\n\t    \n\t    positions.addElement(newMatch);\n\t} while (numRepeats < max);\n\t\n\t// If there aren't enough repeats, then fail\n\tif (numRepeats < min) return false;\n\t\n\t// We're greedy, but ease off until a true match is found \n\tint posIndex = positions.size();\n\t\n\t// At this point we've either got too many or just the right amount.\n\t// See if this numRepeats works with the rest of the regexp.\n\tREMatch allResults = null;\n\tREMatch allResultsLast = null;\n\n\tREMatch results = null;\n\twhile (--posIndex >= min) {\n\t    newMatch = (REMatch) positions.elementAt(posIndex);\n\t    results = matchRest(input, newMatch);\n\t    if (results != null) {\n\t\tif (allResults == null) {\n\t\t    allResults = results;\n\t\t    allResultsLast = results;\n\t\t} else {\n\t\t    // Order these from longest to shortest\n\t\t    // Start by assuming longest (more repeats)\n\t\t    allResultsLast.next = results;\n\t\t}\n\t\t// Find new doablesLast\n\t\twhile (allResultsLast.next != null) {\n\t\t    allResultsLast = allResultsLast.next;\n\t\t}\n\t    }\n\t    // else did not match rest of the tokens, try again on smaller sample\n\t}\n\tif (allResults != null) {\n\t    mymatch.assignFrom(allResults); // does this get all?\n\t    return true;\n\t}\n\t// If we fall out, no matches.\n\treturn false;\n    }\n\n    private REMatch matchRest(CharIndexed input, final REMatch newMatch) {\n\tREMatch current, single;\n\tREMatch doneIndex = null;\n\tREMatch doneIndexLast = null;\n\t// Test all possible matches for this number of repeats\n\tfor (current = newMatch; current != null; current = current.next) {\n\t    // clone() separates a single match from the chain\n\t    single = (REMatch) current.clone();\n\t    if (next(input, single)) {\n\t\t// chain results to doneIndex\n\t\tif (doneIndex == null) {\n\t\t    doneIndex = single;\n\t\t    doneIndexLast = single;\n\t\t} else {\n\t\t    doneIndexLast.next = single;\n\t\t}\n\t\t// Find new doneIndexLast\n\t\twhile (doneIndexLast.next != null) {\n\t\t    doneIndexLast = doneIndexLast.next;\n\t\t}\n\t    }\n\t}\n\treturn doneIndex;\n    }\n\n    void dump(StringBuffer os) {\n\tos.append(\"(?:\");\n\ttoken.dumpAll(os);\n\tos.append(')');\n\tif ((max == Integer.MAX_VALUE) && (min <= 1))\n\t    os.append( (min == 0) ? '*' : '+' );\n\telse if ((min == 0) && (max == 1))\n\t    os.append('?');\n\telse {\n\t    os.append('{').append(min);\n\t    if (max > min) {\n\t\tos.append(',');\n\t\tif (max != Integer.MAX_VALUE) os.append(max);\n\t    }\n\t    os.append('}');\n\t}\n\tif (stingy) os.append('?');", "functions": [{"function_name": "makeStingy", "code": "    void makeStingy() {\n\tstingy = true;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "isStingy", "code": "    boolean isStingy() {\n\treturn stingy;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getMinimumLength", "code": "    int getMinimumLength() {\n\treturn (min * token.getMinimumLength());", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "match", "code": "    boolean match(CharIndexed input, REMatch mymatch) {\n\t// number of times we've matched so far\n\tint numRepeats = 0; \n\t\n\t// Possible positions for the next repeat to match at\n\tREMatch newMatch = mymatch;\n\tREMatch last = null;\n\tREMatch current;\n\n\t// Add the '0-repeats' index\n\t// positions.elementAt(z) == position [] in input after <<z>> matches\n\tVector positions = new Vector();\n\tpositions.addElement(newMatch);\n\t\n\t// Declare variables used in loop\n\tREMatch doables;\n\tREMatch doablesLast;\n\tREMatch recurrent;\n\n\tdo {\n\t    // Check for stingy match for each possibility.\n\t    if (stingy && (numRepeats >= min)) {\n\t\tREMatch result = matchRest(input, newMatch);\n\t\tif (result != null) {\n\t\t    mymatch.assignFrom(result);\n\t\t    return true;\n\t\t}\n\t    }\n\n\t    doables = null;\n\t    doablesLast = null;\n\n\t    // try next repeat at all possible positions\n\t    for (current = newMatch; current != null; current = current.next) {\n\t\trecurrent = (REMatch) current.clone();\n\t\tif (token.match(input, recurrent)) {\n\t\t    // add all items in current to doables array\n\t\t    if (doables == null) {\n\t\t\tdoables = recurrent;\n\t\t\tdoablesLast = recurrent;\n\t\t    } else {\n\t\t\t// Order these from longest to shortest\n\t\t\t// Start by assuming longest (more repeats)\n\t\t\tdoablesLast.next = recurrent;\n\t\t    }\n\t\t    // Find new doablesLast\n\t\t    while (doablesLast.next != null) {\n\t\t\tdoablesLast = doablesLast.next;\n\t\t    }\n\t\t}\n\t    }\n\t    // if none of the possibilities worked out, break out of do/while\n\t    if (doables == null) break;\n\t    \n\t    // reassign where the next repeat can match\n\t    newMatch = doables;\n\t    \n\t    // increment how many repeats we've successfully found\n\t    ++numRepeats;\n\t    \n\t    positions.addElement(newMatch);\n\t} while (numRepeats < max);\n\t\n\t// If there aren't enough repeats, then fail\n\tif (numRepeats < min) return false;\n\t\n\t// We're greedy, but ease off until a true match is found \n\tint posIndex = positions.size();\n\t\n\t// At this point we've either got too many or just the right amount.\n\t// See if this numRepeats works with the rest of the regexp.\n\tREMatch allResults = null;\n\tREMatch allResultsLast = null;\n\n\tREMatch results = null;\n\twhile (--posIndex >= min) {\n\t    newMatch = (REMatch) positions.elementAt(posIndex);\n\t    results = matchRest(input, newMatch);\n\t    if (results != null) {\n\t\tif (allResults == null) {\n\t\t    allResults = results;\n\t\t    allResultsLast = results;\n\t\t} else {\n\t\t    // Order these from longest to shortest\n\t\t    // Start by assuming longest (more repeats)\n\t\t    allResultsLast.next = results;\n\t\t}\n\t\t// Find new doablesLast\n\t\twhile (allResultsLast.next != null) {\n\t\t    allResultsLast = allResultsLast.next;\n\t\t}\n\t    }\n\t    // else did not match rest of the tokens, try again on smaller sample\n\t}\n\tif (allResults != null) {\n\t    mymatch.assignFrom(allResults); // does this get all?\n\t    return true;\n\t}\n\t// If we fall out, no matches.\n\treturn false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "RETURN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LOOP", "IF", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LOOP", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "IF", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [1, 20], [2, 21], [3, 22], [8, 23], [8, 24], [9, 25], [0, 26], [2, 27], [21, 28], [3, 29], [4, 30], [5, 31], [6, 32], [7, 33], [23, 34], [9, 35], [9, 36], [9, 37], [13, 38], [15, 39], [17, 40], [27, 41], [2, 42], [29, 43], [3, 44], [3, 45], [9, 46], [9, 47], [35, 48], [35, 49], [36, 50], [36, 51], [36, 52], [9, 53], [9, 54], [37, 55], [29, 56], [29, 57], [43, 58], [44, 59], [49, 60], [36, 61], [51, 62], [53, 63], [54, 64], [37, 65], [37, 66], [55, 67], [56, 68], [57, 69], [45, 70], [61, 71], [36, 72], [65, 73], [68, 74], [69, 75], [61, 76], [61, 77], [65, 78], [73, 79], [66, 80], [56, 81], [57, 82], [57, 83], [57, 84], [76, 85], [77, 86], [72, 87], [78, 88], [65, 89], [85, 90], [86, 91], [76, 92], [77, 93], [77, 94], [77, 95], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 1], [21, 2], [22, 3], [23, 8], [24, 8], [25, 9], [26, 0], [27, 2], [28, 21], [29, 3], [30, 4], [31, 5], [32, 6], [33, 7], [34, 23], [35, 9], [36, 9], [37, 9], [38, 13], [39, 15], [40, 17], [41, 27], [42, 2], [43, 29], [44, 3], [45, 3], [46, 9], [47, 9], [48, 35], [49, 35], [50, 36], [51, 36], [52, 36], [53, 9], [54, 9], [55, 37], [56, 29], [57, 29], [58, 43], [59, 44], [60, 49], [61, 36], [62, 51], [63, 53], [64, 54], [65, 37], [66, 37], [67, 55], [68, 56], [69, 57], [70, 45], [71, 61], [72, 36], [73, 65], [74, 68], [75, 69], [76, 61], [77, 61], [78, 65], [79, 73], [80, 66], [81, 56], [82, 57], [83, 57], [84, 57], [85, 76], [86, 77], [87, 72], [88, 78], [89, 65], [90, 85], [91, 86], [92, 76], [93, 77], [94, 77], [95, 77], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95]]}, {"function_name": "matchRest", "code": "    private REMatch matchRest(CharIndexed input, final REMatch newMatch) {\n\tREMatch current, single;\n\tREMatch doneIndex = null;\n\tREMatch doneIndexLast = null;\n\t// Test all possible matches for this number of repeats\n\tfor (current = newMatch; current != null; current = current.next) {\n\t    // clone() separates a single match from the chain\n\t    single = (REMatch) current.clone();\n\t    if (next(input, single)) {\n\t\t// chain results to doneIndex\n\t\tif (doneIndex == null) {\n\t\t    doneIndex = single;\n\t\t    doneIndexLast = single;\n\t\t} else {\n\t\t    doneIndexLast.next = single;\n\t\t}\n\t\t// Find new doneIndexLast\n\t\twhile (doneIndexLast.next != null) {\n\t\t    doneIndexLast = doneIndexLast.next;\n\t\t}\n\t    }\n\t}\n\treturn doneIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LOOP", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [2, 9], [2, 10], [2, 11], [9, 12], [3, 13], [4, 14], [11, 15], [2, 16], [11, 17], [11, 18], [17, 19], [18, 20], [16, 21], [19, 22], [20, 23], [17, 24], [18, 25], [18, 26], [18, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 2], [10, 2], [11, 2], [12, 9], [13, 3], [14, 4], [15, 11], [16, 2], [17, 11], [18, 11], [19, 17], [20, 18], [21, 16], [22, 19], [23, 20], [24, 17], [25, 18], [26, 18], [27, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "dump", "code": "    void dump(StringBuffer os) {\n\tos.append(\"(?:\");\n\ttoken.dumpAll(os);\n\tos.append(')');\n\tif ((max == Integer.MAX_VALUE) && (min <= 1))\n\t    os.append( (min == 0) ? '*' : '+' );\n\telse if ((min == 0) && (max == 1))\n\t    os.append('?');\n\telse {\n\t    os.append('{').append(min);\n\t    if (max > min) {\n\t\tos.append(',');\n\t\tif (max != Integer.MAX_VALUE) os.append(max);\n\t    }\n\t    os.append('}');\n\t}\n\tif (stingy) os.append('?');", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "BINARY_OP", "BINARY_OP", "COND_EXPR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [0, 6], [0, 7], [0, 8], [1, 9], [4, 10], [2, 11], [5, 12], [5, 13], [6, 14], [8, 15], [9, 16], [4, 17], [4, 18], [10, 19], [10, 20], [11, 21], [12, 22], [4, 23], [17, 24], [4, 25], [18, 26], [19, 27], [20, 28], [21, 29], [21, 30], [21, 31], [23, 32], [17, 33], [25, 34], [25, 35], [31, 36], [33, 37], [17, 38], [33, 39], [38, 40], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 0], [7, 0], [8, 0], [9, 1], [10, 4], [11, 2], [12, 5], [13, 5], [14, 6], [15, 8], [16, 9], [17, 4], [18, 4], [19, 10], [20, 10], [21, 11], [22, 12], [23, 4], [24, 17], [25, 4], [26, 18], [27, 19], [28, 20], [29, 21], [30, 21], [31, 21], [32, 23], [33, 17], [34, 25], [35, 25], [36, 31], [37, 33], [38, 17], [39, 33], [40, 38], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "RETokenRepeated", "code": "    RETokenRepeated(int subIndex, REToken token, int min, int max) {\n\tsuper(subIndex);\n\tthis.token = token;\n\tthis.min = min;\n\tthis.max = max;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}], "label": 0}
{"sample_id": "camel-1.2-2010", "repo": "camel-1.2", "project": "camel", "version": "1.2", "file_path": "org/apache/camel/component/mina/MinaProducer.java", "language": "java", "name": "org.apache.camel.component.mina.MinaProducer", "code": "public class MinaProducer extends DefaultProducer {\n    private static final transient Log LOG = LogFactory.getLog(MinaProducer.class);\n    private static final long MAX_WAIT_RESPONSE = 10000;\n    private IoSession session;\n    private MinaEndpoint endpoint;\n    private CountDownLatch latch;\n\n    public MinaProducer(MinaEndpoint endpoint) {\n        super(endpoint);\n        this.endpoint = endpoint;\n    }\n\n    public void process(Exchange exchange) throws Exception{\n        if (session == null) {\n            throw new IllegalStateException(\"Not started yet!\");\n        }\n        if (!session.isConnected()){\n            doStart();\n        }\n        Object body = exchange.getIn().getBody();\n        if (body == null) {\n            LOG.warn(\"No payload for exchange: \" + exchange);\n        } else {\n            if (ExchangeHelper.isOutCapable(exchange)){\n                if (LOG.isDebugEnabled()){\n                    LOG.debug(\"Writing body : \"+body);\n                }\n                latch = new CountDownLatch(1);\n                WriteFuture future = session.write(body);\n                future.join();\n                if (!future.isWritten()){\n                    throw new RuntimeException(\"Timed out waiting for response: \"+exchange);\n                }\n                latch.await(MAX_WAIT_RESPONSE, TimeUnit.MILLISECONDS);\n                if (latch.getCount()==1){\n                    throw new RuntimeException(\"No response from server within \"+MAX_WAIT_RESPONSE+\" millisecs\");\n                }\n                ResponseHandler handler = (ResponseHandler) session.getHandler();\n                if (handler.getCause() != null){\n                    throw new Exception(\"Response Handler had an exception\", handler.getCause());\n                }else{\n                    if (LOG.isDebugEnabled()){\n                        LOG.debug(\"Handler message: \"+handler.getMessage());\n                    }\n                    exchange.getOut().setBody(handler.getMessage());\n                }\n            }else{\n                session.write(body);\n            }\n        }\n    }\n\n    @Override\n    protected void doStart() throws Exception {\n        SocketAddress address = endpoint.getAddress();\n        IoConnector connector = endpoint.getConnector();\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Creating connector to address: \" + address + \" using connector: \" + connector);\n        }\n        IoHandler ioHandler = new ResponseHandler(endpoint);\n        ConnectFuture future = connector.connect(address, ioHandler, endpoint.getConfig());\n        future.join();\n        session = future.getSession();\n    }\n\n    @Override\n    protected void doStop() throws Exception {\n        if (session != null) {\n            session.close().join(2000);\n        }\n    }\n    /**\n     * Handles response from session writes\n     * \n     * @author <a href=\"mailto:karajdaar@gmail.com\">nsandhu</a>\n     *\n     */\n    private final class ResponseHandler extends IoHandlerAdapter {\n        private MinaEndpoint endpoint;\n        private Object message;\n        private Throwable cause;\n        /**\n         * @param endpoint\n         */\n        private ResponseHandler(MinaEndpoint endpoint) {\n            this.endpoint = endpoint;\n        }\n\n        @Override\n        public void messageReceived(IoSession ioSession, Object message) throws Exception {\n            if (LOG.isDebugEnabled()) {\n                LOG.debug(\"Message received: \"+message);\n            }\n            cause = null;\n            this.message = message;\n            latch.countDown();\n        }\n\n        @Override\n        public void exceptionCaught(IoSession ioSession, Throwable cause) {\n            LOG.error(\"Exception on receiving message from address: \"+this.endpoint.getAddress()\n                        + \" using connector: \"+this.endpoint.getConnector(), cause);\n            this.message = null;\n            this.cause = cause;\n            ioSession.close();\n            latch.countDown();\n        }\n        \n        public Throwable getCause() {\n            return this.cause;\n        }\n\n        public Object getMessage() {\n            return this.message;", "functions": [{"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception{\n        if (session == null) {\n            throw new IllegalStateException(\"Not started yet!\");\n        }\n        if (!session.isConnected()){\n            doStart();\n        }\n        Object body = exchange.getIn().getBody();\n        if (body == null) {\n            LOG.warn(\"No payload for exchange: \" + exchange);\n        } else {\n            if (ExchangeHelper.isOutCapable(exchange)){\n                if (LOG.isDebugEnabled()){\n                    LOG.debug(\"Writing body : \"+body);\n                }\n                latch = new CountDownLatch(1);\n                WriteFuture future = session.write(body);\n                future.join();\n                if (!future.isWritten()){\n                    throw new RuntimeException(\"Timed out waiting for response: \"+exchange);\n                }\n                latch.await(MAX_WAIT_RESPONSE, TimeUnit.MILLISECONDS);\n                if (latch.getCount()==1){\n                    throw new RuntimeException(\"No response from server within \"+MAX_WAIT_RESPONSE+\" millisecs\");\n                }\n                ResponseHandler handler = (ResponseHandler) session.getHandler();\n                if (handler.getCause() != null){\n                    throw new Exception(\"Response Handler had an exception\", handler.getCause());\n                }else{\n                    if (LOG.isDebugEnabled()){\n                        LOG.debug(\"Handler message: \"+handler.getMessage());\n                    }\n                    exchange.getOut().setBody(handler.getMessage());\n                }\n            }else{\n                session.write(body);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR", "IF", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [3, 7], [4, 8], [1, 9], [6, 10], [2, 11], [4, 12], [8, 13], [9, 14], [1, 15], [11, 16], [3, 17], [12, 18], [9, 19], [9, 20], [9, 21], [9, 22], [9, 23], [9, 24], [15, 25], [18, 26], [9, 27], [19, 28], [21, 29], [9, 30], [22, 31], [9, 32], [9, 33], [24, 34], [25, 35], [19, 36], [19, 37], [28, 38], [28, 39], [21, 40], [29, 41], [29, 42], [22, 43], [23, 44], [33, 45], [19, 46], [36, 47], [37, 48], [20, 49], [40, 50], [43, 51], [45, 52], [24, 53], [46, 54], [48, 55], [48, 56], [50, 57], [51, 58], [53, 59], [54, 60], [36, 61], [57, 62], [57, 63], [58, 64], [59, 65], [61, 66], [63, 67], [66, 68], [66, 69], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 3], [8, 4], [9, 1], [10, 6], [11, 2], [12, 4], [13, 8], [14, 9], [15, 1], [16, 11], [17, 3], [18, 12], [19, 9], [20, 9], [21, 9], [22, 9], [23, 9], [24, 9], [25, 15], [26, 18], [27, 9], [28, 19], [29, 21], [30, 9], [31, 22], [32, 9], [33, 9], [34, 24], [35, 25], [36, 19], [37, 19], [38, 28], [39, 28], [40, 21], [41, 29], [42, 29], [43, 22], [44, 23], [45, 33], [46, 19], [47, 36], [48, 37], [49, 20], [50, 40], [51, 43], [52, 45], [53, 24], [54, 46], [55, 48], [56, 48], [57, 50], [58, 51], [59, 53], [60, 54], [61, 36], [62, 57], [63, 57], [64, 58], [65, 59], [66, 61], [67, 63], [68, 66], [69, 66], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69]]}, {"function_name": "doStart", "code": "    @Override\n    protected void doStart() throws Exception {\n        SocketAddress address = endpoint.getAddress();\n        IoConnector connector = endpoint.getConnector();\n        if (LOG.isDebugEnabled()) {\n            LOG.debug(\"Creating connector to address: \" + address + \" using connector: \" + connector);\n        }\n        IoHandler ioHandler = new ResponseHandler(endpoint);\n        ConnectFuture future = connector.connect(address, ioHandler, endpoint.getConfig());\n        future.join();\n        session = future.getSession();", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [6, 9], [1, 10], [2, 11], [4, 12], [5, 13], [10, 14], [3, 15], [15, 16], [16, 17], [17, 18], [17, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 6], [10, 1], [11, 2], [12, 4], [13, 5], [14, 10], [15, 3], [16, 15], [17, 16], [18, 17], [19, 17], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "doStop", "code": "    @Override\n    protected void doStop() throws Exception {\n        if (session != null) {\n            session.close().join(2000);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 4], [4, 5], [5, 6], [1, 0], [2, 1], [3, 2], [4, 1], [5, 4], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "MinaProducer", "code": "    public MinaProducer(MinaEndpoint endpoint) {\n        super(endpoint);\n        this.endpoint = endpoint;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.4-6580", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/dtm/DTMAxisTraverser.java", "language": "java", "name": "org.apache.xml.dtm.DTMAxisTraverser", "code": "public abstract class DTMAxisTraverser\n{\n\n  /**\n   * By the nature of the stateless traversal, the context node can not be\n   * returned or the iteration will go into an infinate loop.  So to traverse \n   * an axis, the first function must be used to get the first node.\n   *\n   * <p>This method needs to be overloaded only by those axis that process\n   * the self node. <\\p>\n   *\n   * @param context The context node of this traversal. This is the point\n   * that the traversal starts from.\n   * @return the first node in the traversal.\n   */\n  public int first(int context)\n  {\n    return next(context, context);\n  }\n\n  /**\n   * By the nature of the stateless traversal, the context node can not be\n   * returned or the iteration will go into an infinate loop.  So to traverse \n   * an axis, the first function must be used to get the first node.\n   *\n   * <p>This method needs to be overloaded only by those axis that process\n   * the self node. <\\p>\n   *\n   * @param context The context node of this traversal. This is the point\n   * of origin for the traversal -- its \"root node\" or starting point.\n   * @param extendedTypeID The extended type ID that must match.\n   *\n   * @return the first node in the traversal.\n   */\n  public int first(int context, int extendedTypeID)\n  {\n    return next(context, context, extendedTypeID);\n  }\n\n  /**\n   * Traverse to the next node after the current node.\n   *\n   * @param context The context node of this traversal. This is the point\n   * of origin for the traversal -- its \"root node\" or starting point.\n   * @param current The current node of the traversal. This is the last known\n   * location in the traversal, typically the node-handle returned by the\n   * previous traversal step. For the first traversal step, context\n   * should be set equal to current. Note that in order to test whether\n   * context is in the set, you must use the first() method instead.\n   *\n   * @return the next node in the iteration, or DTM.NULL.\n   * @see first(int)\n   */\n  public abstract int next(int context, int current);\n\n  /**\n   * Traverse to the next node after the current node that is matched\n   * by the extended type ID.\n   *\n   * @param context The context node of this traversal. This is the point\n   * of origin for the traversal -- its \"root node\" or starting point.\n   * @param current The current node of the traversal. This is the last known\n   * location in the traversal, typically the node-handle returned by the\n   * previous traversal step. For the first traversal step, context\n   * should be set equal to current. Note that in order to test whether\n   * context is in the set, you must use the first() method instead.\n   * @param extendedTypeID The extended type ID that must match.\n   *\n   * @return the next node in the iteration, or DTM.NULL.\n   * @see first(int,int)\n   */\n  public abstract int next(int context, int current, int extendedTypeID);", "functions": [{"function_name": "first", "code": "  public int first(int context)\n  {\n    return next(context, context);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "first", "code": "  public int first(int context, int extendedTypeID)\n  {\n    return next(context, context, extendedTypeID);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "next", "code": "  public abstract int next(int context, int current);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "next", "code": "  public abstract int next(int context, int current, int extendedTypeID);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 0}
{"sample_id": "xalan-2.5-7107", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/compiler/util/FilterGenerator.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.util.FilterGenerator", "code": "public final class FilterGenerator extends ClassGenerator {\n    private final Instruction _aloadTranslet;\n\n    public FilterGenerator(String className, String superClassName,\n\t\t\t   String fileName,\n\t\t\t   int accessFlags, String[] interfaces,\n\t\t\t   Stylesheet stylesheet) {\n\tsuper(className, superClassName, fileName,\n\t      accessFlags, interfaces, stylesheet);\n\t\n\t_aloadTranslet = new ALOAD(TRANSLET_INDEX);\n    }\n\n    /**\n     * The index of the translet pointer within the execution of\n     * the test method.\n     */\n    public final Instruction loadTranslet() {\n\treturn _aloadTranslet;\n    }\n    \n    /**\n     * Returns <tt>true</tt> since this class is external to the\n     * translet.\n     */\n    public boolean isExternal() {\n\treturn true;", "functions": [{"function_name": "loadTranslet", "code": "    public final Instruction loadTranslet() {\n\treturn _aloadTranslet;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isExternal", "code": "    public boolean isExternal() {\n\treturn true;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "FilterGenerator", "code": "    public FilterGenerator(String className, String superClassName,\n\t\t\t   String fileName,\n\t\t\t   int accessFlags, String[] interfaces,\n\t\t\t   Stylesheet stylesheet) {\n\tsuper(className, superClassName, fileName,\n\t      accessFlags, interfaces, stylesheet);\n\t\n\t_aloadTranslet = new ALOAD(TRANSLET_INDEX);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "jedit-3.2-3629", "repo": "jedit-3.2", "project": "jedit", "version": "3.2", "file_path": "org/gjt/sp/jedit/search/HyperSearchResult.java", "language": "java", "name": "org.gjt.sp.jedit.search.HyperSearchResult", "code": "public class HyperSearchResult\n{\n\tpublic String path;\n\tpublic Buffer buffer;\n\tpublic int line;\n\tpublic Position linePos;\n\tpublic String str; // cached for speed\n\n\tpublic HyperSearchResult(Buffer buffer, int line)\n\t{\n\t\tpath = buffer.getPath();\n\t\tthis.line = line;\n\n\t\tif(!buffer.isTemporary())\n\t\t\tbufferOpened(buffer);\n\n\t\tstr = (line + 1) + \": \" + getLine(buffer,\n\t\t\tbuffer.getDefaultRootElement()\n\t\t\t.getElement(line));\n\t}\n\n\tString getLine(Buffer buffer, Element elem)\n\t{\n\t\tif(elem == null)\n\t\t\treturn \"\";\n\t\ttry\n\t\t{\n\t\t\treturn buffer.getText(elem.getStartOffset(),\n\t\t\t\telem.getEndOffset() -\n\t\t\t\telem.getStartOffset() - 1)\n\t\t\t\t.replace('\\t',' ');\n\t\t}\n\t\tcatch(BadLocationException bl)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,bl);\n\t\t\treturn \"\";\n\t\t}\n\t}\n\n\tpublic void bufferOpened(Buffer buffer)\n\t{\n\t\tthis.buffer = buffer;\n\t\tElement map = buffer.getDefaultRootElement();\n\t\tElement elem = map.getElement(line);\n\t\tif(elem == null)\n\t\t\telem = map.getElement(map.getElementCount()-1);\n\t\ttry\n\t\t{\n\t\t\tlinePos = buffer.createPosition(elem.getStartOffset());\n\t\t}\n\t\tcatch(BadLocationException bl)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,bl);\n\t\t}\n\t}\n\n\tpublic void bufferClosed()\n\t{\n\t\tbuffer = null;\n\t\tlinePos = null;\n\t}\n\n\tpublic Buffer getBuffer()\n\t{\n\t\tif(buffer == null)\n\t\t\tbuffer = jEdit.openFile(null,path);\n\t\treturn buffer;\n\t}\n\n\tpublic String toString()\n\t{\n\t\treturn str;", "functions": [{"function_name": "getLine", "code": "\tString getLine(Buffer buffer, Element elem)\n\t{\n\t\tif(elem == null)\n\t\t\treturn \"\";\n\t\ttry\n\t\t{\n\t\t\treturn buffer.getText(elem.getStartOffset(),\n\t\t\t\telem.getEndOffset() -\n\t\t\t\telem.getStartOffset() - 1)\n\t\t\t\t.replace('\\t',' ');\n\t\t}\n\t\tcatch(BadLocationException bl)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,bl);\n\t\t\treturn \"\";", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "CATCH", "RETURN", "RETURN", "BINARY_OP", "RETURN", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [2, 7], [2, 8], [5, 9], [6, 10], [7, 11], [8, 12], [9, 13], [5, 14], [10, 15], [10, 16], [10, 17], [15, 18], [15, 19], [17, 20], [17, 21], [19, 22], [19, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 2], [8, 2], [9, 5], [10, 6], [11, 7], [12, 8], [13, 9], [14, 5], [15, 10], [16, 10], [17, 10], [18, 15], [19, 15], [20, 17], [21, 17], [22, 19], [23, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "bufferOpened", "code": "\tpublic void bufferOpened(Buffer buffer)\n\t{\n\t\tthis.buffer = buffer;\n\t\tElement map = buffer.getDefaultRootElement();\n\t\tElement elem = map.getElement(line);\n\t\tif(elem == null)\n\t\t\telem = map.getElement(map.getElementCount()-1);\n\t\ttry\n\t\t{\n\t\t\tlinePos = buffer.createPosition(elem.getStartOffset());\n\t\t}\n\t\tcatch(BadLocationException bl)\n\t\t{\n\t\t\tLog.log(Log.ERROR,this,bl);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CATCH", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [1, 9], [2, 10], [7, 11], [3, 12], [4, 13], [6, 14], [9, 15], [10, 16], [15, 17], [16, 18], [18, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 1], [10, 2], [11, 7], [12, 3], [13, 4], [14, 6], [15, 9], [16, 10], [17, 15], [18, 16], [19, 18], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "bufferClosed", "code": "\tpublic void bufferClosed()\n\t{\n\t\tbuffer = null;\n\t\tlinePos = null;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [1, 0], [2, 0], [3, 1], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getBuffer", "code": "\tpublic Buffer getBuffer()\n\t{\n\t\tif(buffer == null)\n\t\t\tbuffer = jEdit.openFile(null,path);\n\t\treturn buffer;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [2, 3], [2, 4], [3, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 2], [4, 2], [5, 3], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "toString", "code": "\tpublic String toString()\n\t{\n\t\treturn str;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "HyperSearchResult", "code": "\tpublic HyperSearchResult(Buffer buffer, int line)\n\t{\n\t\tpath = buffer.getPath();\n\t\tthis.line = line;\n\n\t\tif(!buffer.isTemporary())\n\t\t\tbufferOpened(buffer);\n\n\t\tstr = (line + 1) + \": \" + getLine(buffer,\n\t\t\tbuffer.getDefaultRootElement()\n\t\t\t.getElement(line));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [0, 7], [4, 8], [1, 9], [7, 10], [8, 11], [8, 12], [11, 13], [12, 14], [12, 15], [13, 16], [15, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 0], [8, 4], [9, 1], [10, 7], [11, 8], [12, 8], [13, 11], [14, 12], [15, 12], [16, 13], [17, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 1}
{"sample_id": "jedit-4.3-4619", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/JEditKillRing.java", "language": "java", "name": "org.gjt.sp.jedit.JEditKillRing", "code": "class JEditKillRing extends KillRing\n{\n\t//{{{ Constructor\n\tJEditKillRing()\n\t{\n\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tkillringXML = new SettingsXML(settingsDirectory, \"killring\");\n\t\t}\n\t} //}}}\n\n\t//{{{ load() method\n\t@Override\n\tpublic void load()\n\t{\n\t\tif(killringXML == null)\n\t\t\treturn;\n\n\t\tif(!killringXML.fileExists())\n\t\t\treturn;\n\n\t\tLog.log(Log.MESSAGE,KillRing.class,\"Loading \" + killringXML);\n\n\t\tKillRingHandler handler = new KillRingHandler();\n\t\ttry\n\t\t{\n\t\t\tkillringXML.load(handler);\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\tLog.log(Log.ERROR, this, ioe);\n\t\t}\n\t\treset(handler.list);\n\t} //}}}\n\n\t//{{{ save() method\n\t@Override\n\tpublic void save()\n\t{\n\t\tif(killringXML == null)\n\t\t\treturn;\n\n\t\tif(killringXML.hasChangedOnDisk())\n\t\t{\n\t\t\tLog.log(Log.WARNING,KillRing.class,killringXML\n\t\t\t\t+ \" changed on disk; will not save killring\"\n\t\t\t\t+ \" files\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.log(Log.MESSAGE,KillRing.class,\"Saving \" + killringXML);\n\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\tSettingsXML.Saver out = null;\n\n\t\ttry\n\t\t{\n\t\t\tout = killringXML.openSaver();\n\t\t\tout.writeXMLDeclaration(\"1.1\");\n\n\t\t\tout.write(\"<!DOCTYPE KILLRING SYSTEM \\\"killring.dtd\\\">\");\n\t\t\tout.write(lineSep);\n\t\t\tout.write(\"<KILLRING>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tint size = getSize();\n\t\t\tfor(int i = size - 1; i >=0; i--)\n\t\t\t{\n\t\t\t\tout.write(\"<ENTRY>\");\n\t\t\t\tout.write(XMLUtilities.charsToEntities(\n\t\t\t\t\tgetElementAt(i).toString(),true));\n\t\t\t\tout.write(\"</ENTRY>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t}\n\n\t\t\tout.write(\"</KILLRING>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tout.finish();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,KillRing.class,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(out);\n\t\t}\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate SettingsXML killringXML;\n\n\t//{{{ KillRingHandler class\n\tprivate static class KillRingHandler extends DefaultHandler\n\t{\n\t\tpublic List<String> list = new LinkedList<String>();\n\n\t\t@Override\n\t\tpublic InputSource resolveEntity(String publicId, String systemId)\n\t\t{\n\t\t\treturn XMLUtilities.findEntity(systemId, \"killring.dtd\", getClass());\n\t\t}\n\n\t\t@Override\n\t\tpublic void startElement(String uri, String localName,\n\t\t\t\t\t String qName, Attributes attrs)\n\t\t{\n\t\t\tinEntry = qName.equals(\"ENTRY\");\n\t\t}\n\n\t\t@Override\n\t\tpublic void endElement(String uri, String localName, String name)\n\t\t{\n\t\t\tif(name.equals(\"ENTRY\"))\n\t\t\t{\n\t\t\t\tlist.add(charData.toString());\n\t\t\t\tinEntry = false;\n\t\t\t\tcharData.setLength(0);\n\t\t\t}\n\t\t}\n\n\t\t@Override\n\t\tpublic void characters(char[] ch, int start, int length)\n\t\t{\n\t\t\tif (inEntry)\n\t\t\t\tcharData.append(ch, start, length);\n\t\t}\n\n\t\t@Override\n\t\tpublic void processingInstruction(String target, String data)\n\t\t{\n\t\t\tif (\"illegal-xml-character\".equals(target))\n\t\t\t{\n\t\t\t\tchar ch;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tch = (char)Integer.parseInt(data.trim());\n\t\t\t\t}\n\t\t\t\tcatch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tLog.log(Log.ERROR, this,\n\t\t\t\t\t\t\"Failed to get character from PI\"\n\t\t\t\t\t\t\t+ \"\\\"\" + target + \"\\\"\"\n\t\t\t\t\t\t\t+ \" with \\\"\" + data + \"\\\"\"\n\t\t\t\t\t\t\t+ \": \" + e);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tcharacters(new char[] {ch}, 0, 1);\n\t\t\t}\n\t\t}\n\n\t\tprivate final StringBuilder charData = new StringBuilder();\n\t\tprivate boolean inEntry;", "functions": [{"function_name": "load", "code": "\t@Override\n\tpublic void load()\n\t{\n\t\tif(killringXML == null)\n\t\t\treturn;\n\n\t\tif(!killringXML.fileExists())\n\t\t\treturn;\n\n\t\tLog.log(Log.MESSAGE,KillRing.class,\"Loading \" + killringXML);\n\n\t\tKillRingHandler handler = new KillRingHandler();\n\t\ttry\n\t\t{\n\t\t\tkillringXML.load(handler);\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\tLog.log(Log.ERROR, this, ioe);\n\t\t}\n\t\treset(handler.list);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "IF", "IF", "CALL", "CATCH", "CALL", "RETURN", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [3, 8], [3, 9], [4, 10], [4, 11], [1, 12], [2, 13], [7, 14], [11, 15], [6, 16], [14, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 3], [9, 3], [10, 4], [11, 4], [12, 1], [13, 2], [14, 7], [15, 11], [16, 6], [17, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "save", "code": "\t@Override\n\tpublic void save()\n\t{\n\t\tif(killringXML == null)\n\t\t\treturn;\n\n\t\tif(killringXML.hasChangedOnDisk())\n\t\t{\n\t\t\tLog.log(Log.WARNING,KillRing.class,killringXML\n\t\t\t\t+ \" changed on disk; will not save killring\"\n\t\t\t\t+ \" files\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.log(Log.MESSAGE,KillRing.class,\"Saving \" + killringXML);\n\n\t\tString lineSep = System.getProperty(\"line.separator\");\n\n\t\tSettingsXML.Saver out = null;\n\n\t\ttry\n\t\t{\n\t\t\tout = killringXML.openSaver();\n\t\t\tout.writeXMLDeclaration(\"1.1\");\n\n\t\t\tout.write(\"<!DOCTYPE KILLRING SYSTEM \\\"killring.dtd\\\">\");\n\t\t\tout.write(lineSep);\n\t\t\tout.write(\"<KILLRING>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tint size = getSize();\n\t\t\tfor(int i = size - 1; i >=0; i--)\n\t\t\t{\n\t\t\t\tout.write(\"<ENTRY>\");\n\t\t\t\tout.write(XMLUtilities.charsToEntities(\n\t\t\t\t\tgetElementAt(i).toString(),true));\n\t\t\t\tout.write(\"</ENTRY>\");\n\t\t\t\tout.write(lineSep);\n\t\t\t}\n\n\t\t\tout.write(\"</KILLRING>\");\n\t\t\tout.write(lineSep);\n\n\t\t\tout.finish();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.log(Log.ERROR,KillRing.class,e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tIOUtilities.closeQuietly(out);", "ast_nodes": ["FUNC_DECL", "TRY", "VAR_DECL", "VAR_DECL", "IF", "IF", "CATCH", "LOOP", "VAR_DECL", "CALL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [1, 8], [0, 9], [4, 10], [5, 11], [5, 12], [1, 13], [1, 14], [1, 15], [1, 16], [7, 17], [1, 18], [1, 19], [1, 20], [1, 21], [1, 22], [1, 23], [2, 24], [3, 25], [9, 26], [4, 27], [12, 28], [6, 29], [16, 30], [17, 31], [8, 32], [19, 33], [21, 34], [22, 35], [23, 36], [25, 37], [26, 38], [4, 39], [7, 40], [7, 41], [7, 42], [7, 43], [7, 44], [39, 45], [41, 46], [42, 47], [43, 48], [44, 49], [45, 50], [45, 51], [47, 52], [47, 53], [51, 54], [53, 55], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 1], [9, 0], [10, 4], [11, 5], [12, 5], [13, 1], [14, 1], [15, 1], [16, 1], [17, 7], [18, 1], [19, 1], [20, 1], [21, 1], [22, 1], [23, 1], [24, 2], [25, 3], [26, 9], [27, 4], [28, 12], [29, 6], [30, 16], [31, 17], [32, 8], [33, 19], [34, 21], [35, 22], [36, 23], [37, 25], [38, 26], [39, 4], [40, 7], [41, 7], [42, 7], [43, 7], [44, 7], [45, 39], [46, 41], [47, 42], [48, 43], [49, 44], [50, 45], [51, 45], [52, 47], [53, 47], [54, 51], [55, 53], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55]]}, {"function_name": "JEditKillRing", "code": "\tJEditKillRing()\n\t{\n\t\tString settingsDirectory = jEdit.getSettingsDirectory();\n\t\tif(settingsDirectory != null)\n\t\t{\n\t\t\tkillringXML = new SettingsXML(settingsDirectory, \"killring\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [2, 5], [1, 6], [6, 7], [7, 8], [1, 0], [2, 0], [3, 1], [4, 3], [5, 2], [6, 1], [7, 6], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}], "label": 0}
{"sample_id": "ant-1.4-135", "repo": "ant-1.4", "project": "ant", "version": "1.4", "file_path": "org/apache/tools/ant/taskdefs/Execute.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.Execute", "code": "public class Execute {\n\n    /** Invalid exit code. **/\n    public final static int INVALID = Integer.MAX_VALUE;\n\n    private String[] cmdl = null;\n    private String[] env = null;\n    private int exitValue = INVALID;\n    private ExecuteStreamHandler streamHandler;\n    private ExecuteWatchdog watchdog;\n    private File workingDirectory = null;\n    private Project project = null;\n    private boolean newEnvironment = false;\n\n    /** Controls whether the VM is used to launch commands, where possible */\n    private boolean useVMLauncher = true;    \n    \n    private static String antWorkingDirectory = System.getProperty(\"user.dir\");\n    private static CommandLauncher vmLauncher = null;\n    private static CommandLauncher shellLauncher = null;\n    private static Vector procEnvironment = null;\n\n    /** \n     * Builds a command launcher for the OS and JVM we are running under\n     */\n    static {\n        try {\n            vmLauncher = new Java13CommandLauncher();\n        }\n        catch ( NoSuchMethodException exc ) {\n        }\n\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        if ( osname.indexOf(\"mac os\") >= 0 ) {\n            shellLauncher = new MacCommandLauncher(new CommandLauncher());\n        }\n        else if ( osname.indexOf(\"os/2\") >= 0 ) {\n            shellLauncher = new WinNTCommandLauncher(new CommandLauncher());\n        }\n        else if ( osname.indexOf(\"windows\") >= 0 ) {\n            CommandLauncher baseLauncher;\n            if ( System.getProperty(\"java.version\").startsWith(\"1.1\") ) {\n                baseLauncher = new Java11CommandLauncher();\n            }\n            else {\n                baseLauncher = new CommandLauncher();\n            }\n\n            if ( osname.indexOf(\"nt\") >= 0 || osname.indexOf(\"2000\") >= 0 ) {\n                shellLauncher = new WinNTCommandLauncher(baseLauncher);\n            }\n            else {\n                shellLauncher = new ScriptCommandLauncher(\"bin/antRun.bat\", baseLauncher);\n            }\n        }\n        else {\n            shellLauncher = new ScriptCommandLauncher(\"bin/antRun\", new CommandLauncher());\n        }\n    }\n\n    /**\n     * Find the list of environment variables for this process.\n     */\n    public static synchronized Vector getProcEnvironment() {\n        if (procEnvironment != null) return procEnvironment;\n\n        procEnvironment = new Vector();\n        try {\n            ByteArrayOutputStream out = new ByteArrayOutputStream();\n            Execute exe = new Execute(new PumpStreamHandler(out));\n            exe.setCommandline(getProcEnvCommand());\n            exe.setNewenvironment(true);\n            int retval = exe.execute();\n            if ( retval != 0 ) {\n            }\n\n            BufferedReader in = \n                new BufferedReader(new StringReader(out.toString()));\n            String var = null;\n            String line, lineSep = System.getProperty(\"line.separator\");\n            while ((line = in.readLine()) != null) {\n                if (line.indexOf('=') == -1) {\n                    if (var == null) {\n                        var = lineSep + line;\n                    }\n                    else {\n                        var += lineSep + line;\n                    }\n                }\n                else {\n                    if (var != null) {\n                        procEnvironment.addElement(var);\n                    }\n                    var = line;\n                }\n            }\n            procEnvironment.addElement(var);\n        } \n        catch (java.io.IOException exc) {\n            exc.printStackTrace();\n        }\n        return procEnvironment;\n    }\n\n    private static String[] getProcEnvCommand() {\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        if ( osname.indexOf(\"mac os\") >= 0 ) {\n            try {\n                String version = System.getProperty(\"os.version\");\n                int majorVersion = \n                    Integer.parseInt(version.substring(0, version.indexOf('.')));\n\n                if (majorVersion >= 10) {\n                    String[] cmd = {\"/usr/bin/env\"};\n                    return cmd;\n                }\n            } catch (NumberFormatException e) {\n            }\n            String[] cmd = null;\n            return cmd;\n        }\n        else if ( osname.indexOf(\"os/2\") >= 0 ) {\n            String[] cmd = {\"cmd\", \"/c\", \"set\" };\n            return cmd;\n        }\n        else if ( osname.indexOf(\"indows\") >= 0 ) {\n            if ( osname.indexOf(\"nt\") >= 0 || osname.indexOf(\"2000\") >= 0 ) {\n                String[] cmd = {\"cmd\", \"/c\", \"set\" };\n                return cmd;\n            }\n            else {\n                String[] cmd = {\"command.com\", \"/c\", \"set\" };\n                return cmd;\n            }\n        }\n        else {\n            String[] cmd = {\"/usr/bin/env\"};\n            return cmd;\n        }\n    }\n\n    /**\n     * Creates a new execute object using <code>PumpStreamHandler</code> for\n     * stream handling.\n     */\n    public Execute() {\n        this(new PumpStreamHandler(), null);\n    }\n\n\n    /**\n     * Creates a new execute object.\n     *\n     * @param streamHandler the stream handler used to handle the input and\n     *        output streams of the subprocess.\n     */\n    public Execute(ExecuteStreamHandler streamHandler) {\n        this(streamHandler, null);\n    }\n\n    /**\n     * Creates a new execute object.\n     *\n     * @param streamHandler the stream handler used to handle the input and\n     *        output streams of the subprocess.\n     * @param watchdog a watchdog for the subprocess or <code>null</code> to\n     *        to disable a timeout for the subprocess.\n     */\n    public Execute(ExecuteStreamHandler streamHandler, ExecuteWatchdog watchdog) {\n        this.streamHandler = streamHandler;\n        this.watchdog = watchdog;\n    }\n\n\n    /**\n     * Returns the commandline used to create a subprocess.\n     *\n     * @return the commandline used to create a subprocess\n     */\n    public String[] getCommandline() {\n        return cmdl;\n    }\n\n\n    /**\n     * Sets the commandline of the subprocess to launch.\n     *\n     * @param commandline the commandline of the subprocess to launch\n     */\n    public void setCommandline(String[] commandline) {\n        cmdl = commandline;\n    }\n\n    /**\n     * Set whether to propagate the default environment or not.\n     *\n     * @param newenv whether to propagate the process environment.\n     */\n    public void setNewenvironment(boolean newenv) {\n        newEnvironment = newenv;\n    }\n\n    /**\n     * Returns the environment used to create a subprocess.\n     *\n     * @return the environment used to create a subprocess\n     */\n    public String[] getEnvironment() {\n        if (env == null || newEnvironment) return env;\n        return patchEnvironment();\n    }\n\n\n    /**\n     * Sets the environment variables for the subprocess to launch.\n     *\n     * @param commandline array of Strings, each element of which has\n     * an environment variable settings in format <em>key=value</em> \n     */\n    public void setEnvironment(String[] env) {\n        this.env = env;\n    }\n\n    /**\n     * Sets the working directory of the process to execute.\n     *\n     * <p>This is emulated using the antRun scripts unless the OS is\n     * Windows NT in which case a cmd.exe is spawned,\n     * or MRJ and setting user.dir works, or JDK 1.3 and there is\n     * official support in java.lang.Runtime.\n     *\n     * @param wd the working directory of the process.\n     */\n    public void setWorkingDirectory(File wd) {\n        if (wd == null || wd.getAbsolutePath().equals(antWorkingDirectory))\n            workingDirectory = null;\n        else\n            workingDirectory = wd;\n    }\n\n    /**\n     * Set the name of the antRun script using the project's value.\n     *\n     * @param project the current project.\n     */\n    public void setAntRun(Project project) throws BuildException {\n        this.project = project;\n    }\n\n    /**\n     * Launch this execution through the VM, where possible, rather than through\n     * the OS's shell. In some cases and operating systems using the shell will \n     * allow the shell to perform additional processing such as associating an \n     * executable with a script, etc\n     *\n     * @param vmLauncher true if exec should launch through thge VM, \n     *                   false if the shell should be used to launch the command.\n     */\n    public void setVMLauncher(boolean useVMLauncher) {\n        this.useVMLauncher = useVMLauncher;\n    }\n    \n    /**\n     * Runs a process defined by the command line and returns its exit status.\n     *\n     * @return the exit status of the subprocess or <code>INVALID</code>\n     * @exception java.io.IOExcpetion The exception is thrown, if launching\n     *            of the subprocess failed\n     */\n    public int execute() throws IOException {\n        CommandLauncher launcher = vmLauncher != null ? vmLauncher : shellLauncher;\n        if (!useVMLauncher) {\n            launcher = shellLauncher;\n        }\n        \n        final Process process = launcher.exec(project, getCommandline(), getEnvironment(), workingDirectory);\n        try {\n            streamHandler.setProcessInputStream(process.getOutputStream());\n            streamHandler.setProcessOutputStream(process.getInputStream());\n            streamHandler.setProcessErrorStream(process.getErrorStream());\n        } catch (IOException e) {\n            process.destroy();\n            throw e;\n        }\n        streamHandler.start();\n        if (watchdog != null) watchdog.start(process);\n        waitFor(process);\n        if (watchdog != null) watchdog.stop();\n        streamHandler.stop();\n        if (watchdog != null) watchdog.checkException();\n        return getExitValue();\n    }\n\n    protected void waitFor(Process process) {\n        try {\n            process.waitFor();\n            setExitValue(process.exitValue());\n        } catch (InterruptedException e) {}\n    }\n\n    protected void setExitValue(int value) {\n        exitValue = value;\n    }\n\n    public int getExitValue() {\n        return exitValue;\n    }\n\n    /**\n     * Patch the current environment with the new values from the user.\n     * @return the patched environment\n     */\n    private String[] patchEnvironment() {\n        Vector osEnv = (Vector) getProcEnvironment().clone();\n        for (int i = 0; i < env.length; i++) {\n            int pos = env[i].indexOf('=');\n            String key = env[i].substring(0, pos+1);\n            int size = osEnv.size();\n            for (int j = 0; j < size; j++) {\n                if (((String)osEnv.elementAt(j)).startsWith(key)) {\n                    osEnv.removeElementAt(j);\n                    break;\n                }\n            }\n            osEnv.addElement(env[i]);\n        }\n        String[] result = new String[osEnv.size()];\n        osEnv.copyInto(result);\n        return result;\n    }\n\n    /**\n     * A utility method that runs an external command.  Writes the output and\n     * error streams of the command to the project log.\n     *\n     * @param task      The task that the command is part of.  Used for logging\n     * @param cmdline   The command to execute.\n     *\n     * @throws BuildException if the command does not return 0.\n     */\n    public static void runCommand(Task task, String[] cmdline) throws BuildException\n    {\n        try {\n            task.log(Commandline.toString(cmdline), Project.MSG_VERBOSE);\n            Execute exe = new Execute(new LogStreamHandler(task, \n                                                           Project.MSG_INFO,\n                                                           Project.MSG_ERR));\n            exe.setAntRun(task.getProject());\n            exe.setCommandline(cmdline);\n            int retval = exe.execute();\n            if ( retval != 0 ) {\n                throw new BuildException(cmdline[0] + \" failed with return code \" + retval, task.getLocation());\n            }\n        } \n        catch (java.io.IOException exc) {\n            throw new BuildException(\"Could not launch \" + cmdline[0] + \": \" + exc, task.getLocation());\n        }\n    }\n\n    /**\n     * A command launcher for a particular JVM/OS platform.  This class is\n     * a general purpose command launcher which can only launch commands in\n     * the current working directory.\n     */\n    private static class CommandLauncher\n    {\n        /** \n         * Launches the given command in a new process.\n         *\n         * @param project       The project that the command is part of\n         * @param cmd           The command to execute\n         * @param env           The environment for the new process.  If null,\n         *                      the environment of the current proccess is used.\n         */\n        public Process exec(Project project, String[] cmd, String[] env) throws IOException\n        {\n            if (project != null) {\n                project.log(\"Execute:CommandLauncher: \" +\n                            Commandline.toString(cmd), Project.MSG_DEBUG);\n            }                            \n            return Runtime.getRuntime().exec(cmd, env);\n        }\n\n        /** \n         * Launches the given command in a new process, in the given working\n         * directory.\n         *\n         * @param project       The project that the command is part of\n         * @param cmd           The command to execute\n         * @param env           The environment for the new process.  If null,\n         *                      the environment of the current proccess is used.\n         * @param workingDir    The directory to start the command in.  If null,\n         *                      the current directory is used\n         */\n        public Process exec(Project project, String[] cmd, String[] env, File workingDir) throws IOException\n        {\n            if ( workingDir == null ) {\n                return exec(project, cmd, env);\n            }\n            throw new IOException(\"Cannot execute a process in different directory under this JVM\");\n        }\n    }\n\n    /**\n     * A command launcher for JDK/JRE 1.1 under Windows.  Fixes quoting problems\n     * in Runtime.exec().  Can only launch commands in the current working\n     * directory\n     */\n    private static class Java11CommandLauncher extends CommandLauncher\n    {\n        /**\n         * Launches the given command in a new process.  Needs to quote\n         * arguments\n         */\n        public Process exec(Project project, String[] cmd, String[] env) throws IOException \n        {\n            String[] newcmd = new String[cmd.length];\n            for ( int i = 0; i < cmd.length; i++ ) {\n                newcmd[i] = Commandline.quoteArgument(cmd[i]);\n            }\n            if (project != null) {\n                project.log(\"Execute:Java11CommandLauncher: \" +\n                            Commandline.toString(newcmd), Project.MSG_DEBUG);\n            }                            \n            return Runtime.getRuntime().exec(newcmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for JDK/JRE 1.3 (and higher).  Uses the built-in\n     * Runtime.exec() command\n     */\n    private static class Java13CommandLauncher extends CommandLauncher\n    {\n        public Java13CommandLauncher() throws NoSuchMethodException\n        {\n            _execWithCWD = Runtime.class.getMethod(\"exec\", new Class[] {String[].class, String[].class, File.class});\n        }\n\n        /** \n         * Launches the given command in a new process, in the given working\n         * directory\n         */\n        public Process exec(Project project, String[] cmd, String[] env, File workingDir) \n            throws IOException\n        {\n            try {\n                if (project != null) {\n                    project.log(\"Execute:Java13CommandLauncher: \" +\n                                Commandline.toString(cmd), Project.MSG_DEBUG);\n                }                                \n                Object[] arguments = { cmd, env, workingDir };\n                return (Process)_execWithCWD.invoke(Runtime.getRuntime(), arguments);\n            } \n            catch (InvocationTargetException exc) {\n                Throwable realexc = exc.getTargetException();\n                if ( realexc instanceof ThreadDeath ) {\n                    throw (ThreadDeath)realexc;\n                } \n                else if ( realexc instanceof IOException ) {\n                    throw (IOException)realexc;\n                } \n                else {\n                    throw new BuildException(\"Unable to execute command\", realexc);\n                }\n            } \n            catch (Exception exc) {\n                throw new BuildException(\"Unable to execute command\", exc);\n            }\n        }\n        \n        private Method _execWithCWD;\n    }\n    \n    /**\n     * A command launcher that proxies another command launcher.  \n     *\n     * Sub-classes override exec(args, env, workdir)\n     */\n    private static class CommandLauncherProxy extends CommandLauncher\n    {\n        CommandLauncherProxy(CommandLauncher launcher)\n        {\n            _launcher = launcher;\n        }\n\n        /** \n         * Launches the given command in a new process.  Delegates this\n         * method to the proxied launcher\n         */\n        public Process exec(Project project, String[] cmd, String[] env) throws IOException\n        {\n            return _launcher.exec(project, cmd, env);\n        }\n\n        private CommandLauncher _launcher;\n    }\n\n    /**\n     * A command launcher for Windows 2000/NT that uses 'cmd.exe' when\n     * launching commands in directories other than the current working\n     * directory.\n     */\n    private static class WinNTCommandLauncher extends CommandLauncherProxy\n    {\n        WinNTCommandLauncher(CommandLauncher launcher)\n        {\n            super(launcher);\n        }\n\n        /** \n         * Launches the given command in a new process, in the given working\n         * directory.\n         */\n        public Process exec(Project project, String[] cmd, String[] env, File workingDir) throws IOException\n        {\n            File commandDir = workingDir;\n            if ( workingDir == null ) {\n                if ( project != null ) {\n                    commandDir = project.getBaseDir();\n                } else {\n                    return exec(project, cmd, env);\n                }\n            }\n\n            final int preCmdLength = 6;\n            String[] newcmd = new String[cmd.length + preCmdLength];\n            newcmd[0] = \"cmd\";\n            newcmd[1] = \"/c\";\n            newcmd[2] = \"cd\";\n            newcmd[3] = \"/d\";\n            newcmd[4] = commandDir.getAbsolutePath();\n            newcmd[5] = \"&&\";\n            System.arraycopy(cmd, 0, newcmd, preCmdLength, cmd.length);\n\n            return exec(project, newcmd, env);\n        }\n    }\n\n    /**\n     * A command launcher for Mac that uses a dodgy mechanism to change\n     * working directory before launching commands.\n     */\n    private static class MacCommandLauncher extends CommandLauncherProxy\n    {\n        MacCommandLauncher(CommandLauncher launcher)\n        {\n            super(launcher);\n        }\n\n        /** \n         * Launches the given command in a new process, in the given working\n         * directory\n         */\n        public Process exec(Project project, String[] cmd, String[] env, File workingDir) throws IOException\n        {\n            if ( workingDir == null ) {\n                return exec(project, cmd, env);\n            }\n\n            System.getProperties().put(\"user.dir\", workingDir.getAbsolutePath());\n            try {\n                return exec(project, cmd, env);\n            } \n            finally {\n                System.getProperties().put(\"user.dir\", antWorkingDirectory);\n            }\n        }\n    }\n\n    /**\n     * A command launcher that uses an auxiliary script to launch commands\n     * in directories other than the current working directory.\n     */\n    private static class ScriptCommandLauncher extends CommandLauncherProxy\n    {\n        ScriptCommandLauncher(String script, CommandLauncher launcher)\n        {\n            super(launcher);\n            _script = script;\n        }\n\n        /** \n         * Launches the given command in a new process, in the given working\n         * directory\n         */\n        public Process exec(Project project, String[] cmd, String[] env, File workingDir) throws IOException\n        {\n            if ( project == null ) {\n                if ( workingDir == null ) {\n                    return exec(project, cmd, env);\n                }\n                throw new IOException(\"Cannot locate antRun script: No project provided\");\n            }\n            \n            String antHome = project.getProperty(\"ant.home\");\n            if ( antHome == null ) {\n                throw new IOException(\"Cannot locate antRun script: Property 'ant.home' not found\");\n            }\n            String antRun = project.resolveFile(antHome + File.separator + _script).toString();\n\n            File commandDir = workingDir;\n            if ( workingDir == null && project != null ) {\n                commandDir = project.getBaseDir();\n            }\n\n            String[] newcmd = new String[cmd.length + 2];\n            newcmd[0] = antRun;\n            newcmd[1] = commandDir.getAbsolutePath();\n            System.arraycopy(cmd, 0, newcmd, 2, cmd.length);\n            \n            return exec(project, newcmd, env);\n        }\n\n        private String _script;", "functions": [{"function_name": "getProcEnvironment", "code": "    public static synchronized Vector getProcEnvironment() {\n        if (procEnvironment != null) return procEnvironment;\n\n        procEnvironment = new Vector();\n        try {\n            ByteArrayOutputStream out = new ByteArrayOutputStream();\n            Execute exe = new Execute(new PumpStreamHandler(out));\n            exe.setCommandline(getProcEnvCommand());\n            exe.setNewenvironment(true);\n            int retval = exe.execute();\n            if ( retval != 0 ) {\n            }\n\n            BufferedReader in = \n                new BufferedReader(new StringReader(out.toString()));\n            String var = null;\n            String line, lineSep = System.getProperty(\"line.separator\");\n            while ((line = in.readLine()) != null) {\n                if (line.indexOf('=') == -1) {\n                    if (var == null) {\n                        var = lineSep + line;\n                    }\n                    else {\n                        var += lineSep + line;\n                    }\n                }\n                else {\n                    if (var != null) {\n                        procEnvironment.addElement(var);\n                    }\n                    var = line;\n                }\n            }\n            procEnvironment.addElement(var);\n        } \n        catch (java.io.IOException exc) {\n            exc.printStackTrace();\n        }\n        return procEnvironment;", "ast_nodes": ["FUNC_DECL", "RETURN", "TRY", "IF", "CATCH", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "ASSIGN", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "ASSIGN", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "IF", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [0, 13], [3, 14], [3, 15], [2, 16], [5, 17], [9, 18], [2, 19], [2, 20], [13, 21], [15, 22], [4, 23], [5, 24], [17, 25], [17, 26], [6, 27], [7, 28], [8, 29], [18, 30], [10, 31], [19, 32], [20, 33], [11, 34], [12, 35], [24, 36], [26, 37], [27, 38], [29, 39], [34, 40], [24, 41], [24, 42], [36, 43], [36, 44], [39, 45], [24, 46], [41, 47], [42, 48], [44, 49], [47, 50], [48, 51], [41, 52], [42, 53], [42, 54], [53, 55], [54, 56], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 0], [14, 3], [15, 3], [16, 2], [17, 5], [18, 9], [19, 2], [20, 2], [21, 13], [22, 15], [23, 4], [24, 5], [25, 17], [26, 17], [27, 6], [28, 7], [29, 8], [30, 18], [31, 10], [32, 19], [33, 20], [34, 11], [35, 12], [36, 24], [37, 26], [38, 27], [39, 29], [40, 34], [41, 24], [42, 24], [43, 36], [44, 36], [45, 39], [46, 24], [47, 41], [48, 42], [49, 44], [50, 47], [51, 48], [52, 41], [53, 42], [54, 42], [55, 53], [56, 54], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56]]}, {"function_name": "getProcEnvCommand", "code": "    private static String[] getProcEnvCommand() {\n        String osname = System.getProperty(\"os.name\").toLowerCase();\n        if ( osname.indexOf(\"mac os\") >= 0 ) {\n            try {\n                String version = System.getProperty(\"os.version\");\n                int majorVersion = \n                    Integer.parseInt(version.substring(0, version.indexOf('.')));\n\n                if (majorVersion >= 10) {\n                    String[] cmd = {\"/usr/bin/env\"};\n                    return cmd;\n                }\n            } catch (NumberFormatException e) {\n            }\n            String[] cmd = null;\n            return cmd;\n        }\n        else if ( osname.indexOf(\"os/2\") >= 0 ) {\n            String[] cmd = {\"cmd\", \"/c\", \"set\" };\n            return cmd;\n        }\n        else if ( osname.indexOf(\"indows\") >= 0 ) {\n            if ( osname.indexOf(\"nt\") >= 0 || osname.indexOf(\"2000\") >= 0 ) {\n                String[] cmd = {\"cmd\", \"/c\", \"set\" };\n                return cmd;\n            }\n            else {\n                String[] cmd = {\"command.com\", \"/c\", \"set\" };\n                return cmd;\n            }\n        }\n        else {\n            String[] cmd = {\"/usr/bin/env\"};\n            return cmd;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "BINARY_OP", "IF", "BINARY_OP", "RETURN", "VAR_DECL", "TRY", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "VAR_DECL", "RETURN", "VAR_DECL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [3, 6], [1, 7], [1, 8], [1, 9], [4, 10], [4, 11], [2, 12], [5, 13], [3, 14], [3, 15], [6, 16], [6, 17], [9, 18], [9, 19], [9, 20], [9, 21], [11, 22], [12, 23], [12, 24], [5, 25], [5, 26], [5, 27], [13, 28], [13, 29], [17, 30], [8, 31], [19, 32], [27, 33], [29, 34], [19, 35], [19, 36], [32, 37], [20, 38], [21, 39], [27, 40], [27, 41], [27, 42], [27, 43], [33, 44], [33, 45], [15, 46], [15, 47], [15, 48], [38, 49], [39, 50], [26, 51], [44, 52], [44, 53], [45, 54], [45, 55], [49, 56], [49, 57], [53, 58], [55, 59], [36, 60], [56, 61], [41, 62], [41, 63], [41, 64], [43, 65], [43, 66], [43, 67], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 3], [7, 1], [8, 1], [9, 1], [10, 4], [11, 4], [12, 2], [13, 5], [14, 3], [15, 3], [16, 6], [17, 6], [18, 9], [19, 9], [20, 9], [21, 9], [22, 11], [23, 12], [24, 12], [25, 5], [26, 5], [27, 5], [28, 13], [29, 13], [30, 17], [31, 8], [32, 19], [33, 27], [34, 29], [35, 19], [36, 19], [37, 32], [38, 20], [39, 21], [40, 27], [41, 27], [42, 27], [43, 27], [44, 33], [45, 33], [46, 15], [47, 15], [48, 15], [49, 38], [50, 39], [51, 26], [52, 44], [53, 44], [54, 45], [55, 45], [56, 49], [57, 49], [58, 53], [59, 55], [60, 36], [61, 56], [62, 41], [63, 41], [64, 41], [65, 43], [66, 43], [67, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67]]}, {"function_name": "getCommandline", "code": "    public String[] getCommandline() {\n        return cmdl;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setCommandline", "code": "    public void setCommandline(String[] commandline) {\n        cmdl = commandline;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setNewenvironment", "code": "    public void setNewenvironment(boolean newenv) {\n        newEnvironment = newenv;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getEnvironment", "code": "    public String[] getEnvironment() {\n        if (env == null || newEnvironment) return env;\n        return patchEnvironment();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [2, 5], [5, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 2], [6, 5], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setEnvironment", "code": "    public void setEnvironment(String[] env) {\n        this.env = env;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setWorkingDirectory", "code": "    public void setWorkingDirectory(File wd) {\n        if (wd == null || wd.getAbsolutePath().equals(antWorkingDirectory))\n            workingDirectory = null;\n        else\n            workingDirectory = wd;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [3, 7], [5, 8], [6, 9], [7, 10], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 3], [8, 5], [9, 6], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setAntRun", "code": "    public void setAntRun(Project project) throws BuildException {\n        this.project = project;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setVMLauncher", "code": "    public void setVMLauncher(boolean useVMLauncher) {\n        this.useVMLauncher = useVMLauncher;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "execute", "code": "    public int execute() throws IOException {\n        CommandLauncher launcher = vmLauncher != null ? vmLauncher : shellLauncher;\n        if (!useVMLauncher) {\n            launcher = shellLauncher;\n        }\n        \n        final Process process = launcher.exec(project, getCommandline(), getEnvironment(), workingDirectory);\n        try {\n            streamHandler.setProcessInputStream(process.getOutputStream());\n            streamHandler.setProcessOutputStream(process.getInputStream());\n            streamHandler.setProcessErrorStream(process.getErrorStream());\n        } catch (IOException e) {\n            process.destroy();\n            throw e;\n        }\n        streamHandler.start();\n        if (watchdog != null) watchdog.start(process);\n        waitFor(process);\n        if (watchdog != null) watchdog.stop();\n        streamHandler.stop();\n        if (watchdog != null) watchdog.checkException();\n        return getExitValue();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "IF", "TRY", "VAR_DECL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CATCH", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [3, 12], [0, 13], [4, 14], [0, 15], [5, 16], [2, 17], [10, 18], [3, 19], [12, 20], [4, 21], [14, 22], [16, 23], [5, 24], [5, 25], [5, 26], [6, 27], [8, 28], [16, 29], [24, 30], [25, 31], [26, 32], [27, 33], [27, 34], [7, 35], [28, 36], [36, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 3], [13, 0], [14, 4], [15, 0], [16, 5], [17, 2], [18, 10], [19, 3], [20, 12], [21, 4], [22, 14], [23, 16], [24, 5], [25, 5], [26, 5], [27, 6], [28, 8], [29, 16], [30, 24], [31, 25], [32, 26], [33, 27], [34, 27], [35, 7], [36, 28], [37, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "waitFor", "code": "    protected void waitFor(Process process) {\n        try {\n            process.waitFor();\n            setExitValue(process.exitValue());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setExitValue", "code": "    protected void setExitValue(int value) {\n        exitValue = value;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExitValue", "code": "    public int getExitValue() {\n        return exitValue;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "patchEnvironment", "code": "    private String[] patchEnvironment() {\n        Vector osEnv = (Vector) getProcEnvironment().clone();\n        for (int i = 0; i < env.length; i++) {\n            int pos = env[i].indexOf('=');\n            String key = env[i].substring(0, pos+1);\n            int size = osEnv.size();\n            for (int j = 0; j < size; j++) {\n                if (((String)osEnv.elementAt(j)).startsWith(key)) {\n                    osEnv.removeElementAt(j);\n                    break;\n                }\n            }\n            osEnv.addElement(env[i]);\n        }\n        String[] result = new String[osEnv.size()];\n        osEnv.copyInto(result);\n        return result;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "LOOP", "VAR_DECL", "CALL", "BINARY_OP", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BREAK_CONTINUE", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [3, 7], [3, 8], [3, 9], [3, 10], [2, 11], [3, 12], [7, 13], [3, 14], [4, 15], [7, 16], [8, 17], [15, 18], [7, 19], [9, 20], [10, 21], [16, 22], [16, 23], [20, 24], [20, 25], [21, 26], [16, 27], [24, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 3], [8, 3], [9, 3], [10, 3], [11, 2], [12, 3], [13, 7], [14, 3], [15, 4], [16, 7], [17, 8], [18, 15], [19, 7], [20, 9], [21, 10], [22, 16], [23, 16], [24, 20], [25, 20], [26, 21], [27, 16], [28, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "runCommand", "code": "    public static void runCommand(Task task, String[] cmdline) throws BuildException\n    {\n        try {\n            task.log(Commandline.toString(cmdline), Project.MSG_VERBOSE);\n            Execute exe = new Execute(new LogStreamHandler(task, \n                                                           Project.MSG_INFO,\n                                                           Project.MSG_ERR));\n            exe.setAntRun(task.getProject());\n            exe.setCommandline(cmdline);\n            int retval = exe.execute();\n            if ( retval != 0 ) {\n                throw new BuildException(cmdline[0] + \" failed with return code \" + retval, task.getLocation());\n            }\n        } \n        catch (java.io.IOException exc) {\n            throw new BuildException(\"Could not launch \" + cmdline[0] + \": \" + exc, task.getLocation());", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "PARAM", "CATCH", "IF", "VAR_DECL", "VAR_DECL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [1, 7], [4, 8], [5, 9], [1, 10], [1, 11], [1, 12], [8, 13], [5, 14], [9, 15], [6, 16], [11, 17], [7, 18], [12, 19], [13, 20], [13, 21], [14, 22], [18, 23], [21, 24], [22, 25], [22, 26], [24, 27], [24, 28], [26, 29], [28, 30], [29, 31], [28, 32], [29, 33], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 1], [8, 4], [9, 5], [10, 1], [11, 1], [12, 1], [13, 8], [14, 5], [15, 9], [16, 6], [17, 11], [18, 7], [19, 12], [20, 13], [21, 13], [22, 14], [23, 18], [24, 21], [25, 22], [26, 22], [27, 24], [28, 24], [29, 26], [30, 28], [31, 29], [32, 28], [33, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "Execute", "code": "    public Execute() {\n        this(new PumpStreamHandler(), null);", "ast_nodes": ["FUNC_DECL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Execute", "code": "    public Execute(ExecuteStreamHandler streamHandler) {\n        this(streamHandler, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "Execute", "code": "    public Execute(ExecuteStreamHandler streamHandler, ExecuteWatchdog watchdog) {\n        this.streamHandler = streamHandler;\n        this.watchdog = watchdog;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 1}
{"sample_id": "jedit-4.1-4170", "repo": "jedit-4.1", "project": "jedit", "version": "4.1", "file_path": "org/gjt/sp/jedit/buffer/ContentManager.java", "language": "java", "name": "org.gjt.sp.jedit.buffer.ContentManager", "code": "public class ContentManager\n{\n\t//{{{ ContentManager constructor\n\tpublic ContentManager()\n\t{\n\t\ttext = new char[1024];\n\t} //}}}\n\n\t//{{{ getLength() method\n\tpublic final int getLength()\n\t{\n\t\treturn length;\n\t} //}}}\n\n\t//{{{ getText() method\n\tpublic String getText(int start, int len)\n\t{\n\t\tif(start >= gapStart)\n\t\t\treturn new String(text,start + gapEnd - gapStart,len);\n\t\telse if(start + len <= gapStart)\n\t\t\treturn new String(text,start,len);\n\t\telse\n\t\t{\n\t\t\treturn new String(text,start,gapStart - start)\n\t\t\t\t.concat(new String(text,gapEnd,start + len - gapStart));\n\t\t}\n\t} //}}}\n\n\t//{{{ getText() method\n\tpublic void getText(int start, int len, Segment seg)\n\t{\n\t\tif(start >= gapStart)\n\t\t{\n\t\t\tseg.array = text;\n\t\t\tseg.offset = start + gapEnd - gapStart;\n\t\t\tseg.count = len;\n\t\t}\n\t\telse if(start + len <= gapStart)\n\t\t{\n\t\t\tseg.array = text;\n\t\t\tseg.offset = start;\n\t\t\tseg.count = len;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tseg.array = new char[len];\n\n\t\t\t// copy text before gap\n\t\t\tSystem.arraycopy(text,start,seg.array,0,gapStart - start);\n\n\t\t\t// copy text after gap\n\t\t\tSystem.arraycopy(text,gapEnd,seg.array,gapStart - start,\n\t\t\t\tlen + start - gapStart);\n\n\t\t\tseg.offset = 0;\n\t\t\tseg.count = len;\n\t\t}\n\t} //}}}\n\n\t//{{{ insert() method\n\tpublic void insert(int start, String str)\n\t{\n\t\tint len = str.length();\n\t\tmoveGapStart(start);\n\t\tif(gapEnd - gapStart < len)\n\t\t{\n\t\t\tensureCapacity(length + len + 1024);\n\t\t\tmoveGapEnd(start + len + 1024);\n\t\t}\n\n\t\tstr.getChars(0,len,text,start);\n\t\tgapStart += len;\n\t\tlength += len;\n\t} //}}}\n\n\t//{{{ insert() method\n\tpublic void insert(int start, Segment seg)\n\t{\n\t\tmoveGapStart(start);\n\t\tif(gapEnd - gapStart < seg.count)\n\t\t{\n\t\t\tensureCapacity(length + seg.count + 1024);\n\t\t\tmoveGapEnd(start + seg.count + 1024);\n\t\t}\n\n\t\tSystem.arraycopy(seg.array,seg.offset,text,start,seg.count);\n\t\tgapStart += seg.count;\n\t\tlength += seg.count;\n\t} //}}}\n\n\t//{{{ _setContent() method\n\tpublic void _setContent(char[] text, int length)\n\t{\n\t\tthis.text = text;\n\t\tthis.gapStart = this.gapEnd = 0;\n\t\tthis.length = length;\n\t} //}}}\n\n\t//{{{ remove() method\n\tpublic void remove(int start, int len)\n\t{\n\t\tmoveGapStart(start);\n\t\tgapEnd += len;\n\t\tlength -= len;\n\t} //}}}\n\n\t//{{{ Private members\n\tprivate char[] text;\n\tprivate int gapStart;\n\tprivate int gapEnd;\n\tprivate int length;\n\n\t//{{{ moveGapStart() method\n\tprivate void moveGapStart(int newStart)\n\t{\n\t\tint newEnd = gapEnd + (newStart - gapStart);\n\n\t\tif(newStart == gapStart)\n\t\t{\n\t\t\t// nothing to do\n\t\t}\n\t\telse if(newStart > gapStart)\n\t\t{\n\t\t\tSystem.arraycopy(text,gapEnd,text,gapStart,\n\t\t\t\tnewStart - gapStart);\n\t\t}\n\t\telse if(newStart < gapStart)\n\t\t{\n\t\t\tSystem.arraycopy(text,newStart,text,newEnd,\n\t\t\t\tgapStart - newStart);\n\t\t}\n\n\t\tgapStart = newStart;\n\t\tgapEnd = newEnd;\n\t} //}}}\n\n\t//{{{ moveGapEnd() method\n\tprivate void moveGapEnd(int newEnd)\n\t{\n\t\tSystem.arraycopy(text,gapEnd,text,newEnd,length - gapStart);\n\t\tgapEnd = newEnd;\n\t} //}}}\n\n\t//{{{ ensureCapacity() method\n\tprivate void ensureCapacity(int capacity)\n\t{\n\t\tif(capacity >= text.length)\n\t\t{\n\t\t\tchar[] textN = new char[capacity * 2];\n\t\t\tSystem.arraycopy(text,0,textN,0,length + (gapEnd - gapStart));\n\t\t\ttext = textN;", "functions": [{"function_name": "getLength", "code": "\tpublic final int getLength()\n\t{\n\t\treturn length;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getText", "code": "\tpublic String getText(int start, int len)\n\t{\n\t\tif(start >= gapStart)\n\t\t\treturn new String(text,start + gapEnd - gapStart,len);\n\t\telse if(start + len <= gapStart)\n\t\t\treturn new String(text,start,len);\n\t\telse\n\t\t{\n\t\t\treturn new String(text,start,gapStart - start)\n\t\t\t\t.concat(new String(text,gapEnd,start + len - gapStart));", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "IF", "RETURN", "BINARY_OP", "RETURN", "BINARY_OP", "CALL", "RETURN", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [1, 6], [4, 7], [4, 8], [5, 9], [4, 10], [7, 11], [8, 12], [9, 13], [10, 14], [13, 15], [14, 16], [14, 17], [17, 18], [18, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 1], [7, 4], [8, 4], [9, 5], [10, 4], [11, 7], [12, 8], [13, 9], [14, 10], [15, 13], [16, 14], [17, 14], [18, 17], [19, 18], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "getText", "code": "\tpublic void getText(int start, int len, Segment seg)\n\t{\n\t\tif(start >= gapStart)\n\t\t{\n\t\t\tseg.array = text;\n\t\t\tseg.offset = start + gapEnd - gapStart;\n\t\t\tseg.count = len;\n\t\t}\n\t\telse if(start + len <= gapStart)\n\t\t{\n\t\t\tseg.array = text;\n\t\t\tseg.offset = start;\n\t\t\tseg.count = len;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tseg.array = new char[len];\n\n\t\t\t// copy text before gap\n\t\t\tSystem.arraycopy(text,start,seg.array,0,gapStart - start);\n\n\t\t\t// copy text after gap\n\t\t\tSystem.arraycopy(text,gapEnd,seg.array,gapStart - start,\n\t\t\t\tlen + start - gapStart);\n\n\t\t\tseg.offset = 0;\n\t\t\tseg.count = len;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [7, 8], [1, 9], [1, 10], [1, 11], [5, 12], [5, 13], [5, 14], [5, 15], [5, 16], [5, 17], [5, 18], [5, 19], [10, 20], [13, 21], [14, 22], [14, 23], [15, 24], [15, 25], [20, 26], [22, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 7], [9, 1], [10, 1], [11, 1], [12, 5], [13, 5], [14, 5], [15, 5], [16, 5], [17, 5], [18, 5], [19, 5], [20, 10], [21, 13], [22, 14], [23, 14], [24, 15], [25, 15], [26, 20], [27, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "insert", "code": "\tpublic void insert(int start, String str)\n\t{\n\t\tint len = str.length();\n\t\tmoveGapStart(start);\n\t\tif(gapEnd - gapStart < len)\n\t\t{\n\t\t\tensureCapacity(length + len + 1024);\n\t\t\tmoveGapEnd(start + len + 1024);\n\t\t}\n\n\t\tstr.getChars(0,len,text,start);\n\t\tgapStart += len;\n\t\tlength += len;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [7, 10], [8, 11], [2, 12], [1, 13], [1, 14], [13, 15], [14, 16], [15, 17], [15, 18], [16, 19], [16, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 7], [11, 8], [12, 2], [13, 1], [14, 1], [15, 13], [16, 14], [17, 15], [18, 15], [19, 16], [20, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "insert", "code": "\tpublic void insert(int start, Segment seg)\n\t{\n\t\tmoveGapStart(start);\n\t\tif(gapEnd - gapStart < seg.count)\n\t\t{\n\t\t\tensureCapacity(length + seg.count + 1024);\n\t\t\tmoveGapEnd(start + seg.count + 1024);\n\t\t}\n\n\t\tSystem.arraycopy(seg.array,seg.offset,text,start,seg.count);\n\t\tgapStart += seg.count;\n\t\tlength += seg.count;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [0, 8], [7, 9], [1, 10], [1, 11], [10, 12], [11, 13], [12, 14], [12, 15], [13, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 0], [9, 7], [10, 1], [11, 1], [12, 10], [13, 11], [14, 12], [15, 12], [16, 13], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}, {"function_name": "_setContent", "code": "\tpublic void _setContent(char[] text, int length)\n\t{\n\t\tthis.text = text;\n\t\tthis.gapStart = this.gapEnd = 0;\n\t\tthis.length = length;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [4, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 4], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "remove", "code": "\tpublic void remove(int start, int len)\n\t{\n\t\tmoveGapStart(start);\n\t\tgapEnd += len;\n\t\tlength -= len;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "moveGapStart", "code": "\tprivate void moveGapStart(int newStart)\n\t{\n\t\tint newEnd = gapEnd + (newStart - gapStart);\n\n\t\tif(newStart == gapStart)\n\t\t{\n\t\t\t// nothing to do\n\t\t}\n\t\telse if(newStart > gapStart)\n\t\t{\n\t\t\tSystem.arraycopy(text,gapEnd,text,gapStart,\n\t\t\t\tnewStart - gapStart);\n\t\t}\n\t\telse if(newStart < gapStart)\n\t\t{\n\t\t\tSystem.arraycopy(text,newStart,text,newEnd,\n\t\t\t\tgapStart - newStart);\n\t\t}\n\n\t\tgapStart = newStart;\n\t\tgapEnd = newEnd;", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "ASSIGN", "IF", "BINARY_OP", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [6, 9], [2, 10], [8, 11], [10, 12], [6, 13], [8, 14], [13, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 6], [10, 2], [11, 8], [12, 10], [13, 6], [14, 8], [15, 13], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "moveGapEnd", "code": "\tprivate void moveGapEnd(int newEnd)\n\t{\n\t\tSystem.arraycopy(text,gapEnd,text,newEnd,length - gapStart);\n\t\tgapEnd = newEnd;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "ensureCapacity", "code": "\tprivate void ensureCapacity(int capacity)\n\t{\n\t\tif(capacity >= text.length)\n\t\t{\n\t\t\tchar[] textN = new char[capacity * 2];\n\t\t\tSystem.arraycopy(text,0,textN,0,length + (gapEnd - gapStart));\n\t\t\ttext = textN;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "VAR_DECL", "ASSIGN", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [6, 7], [6, 8], [6, 9], [7, 10], [4, 11], [11, 12], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 6], [8, 6], [9, 6], [10, 7], [11, 4], [12, 11], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "ContentManager", "code": "\tpublic ContentManager()\n\t{\n\t\ttext = new char[1024];", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7570", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xpath/axes/BasicTestIterator.java", "language": "java", "name": "org.apache.xpath.axes.BasicTestIterator", "code": "public abstract class BasicTestIterator extends LocPathIterator\n{\n  /**\n   * Create a LocPathIterator object.\n   *\n   * @param nscontext The namespace context for this iterator,\n   * should be OK if null.\n   */\n  protected BasicTestIterator()\n  {\n  }\n\n\n  /**\n   * Create a LocPathIterator object.\n   *\n   * @param nscontext The namespace context for this iterator,\n   * should be OK if null.\n   */\n  protected BasicTestIterator(PrefixResolver nscontext)\n  {\n\n    super(nscontext);\n  }\n\n  /**\n   * Create a LocPathIterator object, including creation\n   * of step walkers from the opcode list, and call back\n   * into the Compiler to create predicate expressions.\n   *\n   * @param compiler The Compiler which is creating\n   * this expression.\n   * @param opPos The position of this iterator in the\n   * opcode list from the compiler.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected BasicTestIterator(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis, false);\n    \n    int firstStepPos = compiler.getFirstChildPos(opPos);\n    int whatToShow = compiler.getWhatToShow(firstStepPos);\n\n    if ((0 == (whatToShow\n               & (DTMFilter.SHOW_ATTRIBUTE \n               | DTMFilter.SHOW_NAMESPACE \n               | DTMFilter.SHOW_ELEMENT\n               | DTMFilter.SHOW_PROCESSING_INSTRUCTION))) \n               || (whatToShow == DTMFilter.SHOW_ALL))\n      initNodeTest(whatToShow);\n    else\n    {\n      initNodeTest(whatToShow, compiler.getStepNS(firstStepPos),\n                              compiler.getStepLocalName(firstStepPos));\n    }\n    initPredicateInfo(compiler, firstStepPos);\n  }\n\n  /**\n   * Create a LocPathIterator object, including creation\n   * of step walkers from the opcode list, and call back\n   * into the Compiler to create predicate expressions.\n   *\n   * @param compiler The Compiler which is creating\n   * this expression.\n   * @param opPos The position of this iterator in the\n   * opcode list from the compiler.\n   * @param shouldLoadWalkers True if walkers should be\n   * loaded, or false if this is a derived iterator and\n   * it doesn't wish to load child walkers.\n   *\n   * @throws javax.xml.transform.TransformerException\n   */\n  protected BasicTestIterator(\n          Compiler compiler, int opPos, int analysis, boolean shouldLoadWalkers)\n            throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis, shouldLoadWalkers);\n  }\n\n\t\n  /**\n   * Get the next node via getNextXXX.  Bottlenecked for derived class override.\n   * @return The next node on the axis, or DTM.NULL.\n   */\n  protected abstract int getNextNode();\n\n  /**\n   *  Returns the next node in the set and advances the position of the\n   * iterator in the set. After a NodeIterator is created, the first call\n   * to nextNode() returns the first node in the set.\n   *\n   * @return  The next <code>Node</code> in the set being iterated over, or\n   *   <code>null</code> if there are no more members in that set.\n   */\n  public int nextNode()\n  {      \n  \tif(m_foundLast)\n  \t{\n  \t\tm_lastFetched = DTM.NULL;\n  \t\treturn DTM.NULL;\n  \t}\n  \t\t\n    if(DTM.NULL == m_lastFetched)\n    {\n      resetProximityPositions();\n    }\n\n    int next;\n    \n    org.apache.xpath.VariableStack vars;\n    int savedStart;\n    if (-1 != m_stackFrame)\n    {\n      vars = m_execContext.getVarStack();\n\n      savedStart = vars.getStackFrame();\n\n      vars.setStackFrame(m_stackFrame);\n    }\n    else\n    {\n      vars = null;\n      savedStart = 0;\n    }\n    \n    try\n    {\n      do\n      {\n        next = getNextNode();\n  \n        if (DTM.NULL != next)\n        {\n          if(DTMIterator.FILTER_ACCEPT == acceptNode(next))\n            break;\n          else\n            continue;\n        }\n        else\n          break;\n      }\n      while (next != DTM.NULL);\n  \n      if (DTM.NULL != next)\n      {\n      \tm_pos++;\n        return next;\n      }\n      else\n      {\n        m_foundLast = true;\n  \n        return DTM.NULL;\n      }\n    }\n    finally\n    {\n      if (-1 != m_stackFrame)\n      {\n        vars.setStackFrame(savedStart);\n      }\n    }\n  }\n  \n  /**\n   *  Get a cloned Iterator that is reset to the beginning\n   *  of the query.\n   * \n   *  @return A cloned NodeIterator set of the start of the query.\n   * \n   *  @throws CloneNotSupportedException\n   */\n  public DTMIterator cloneWithReset() throws CloneNotSupportedException\n  {\n\n    ChildTestIterator clone = (ChildTestIterator) super.cloneWithReset();\n\n    clone.resetProximityPositions();\n\n    return clone;", "functions": [{"function_name": "getNextNode", "code": "  protected abstract int getNextNode();", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "nextNode", "code": "  public int nextNode()\n  {      \n  \tif(m_foundLast)\n  \t{\n  \t\tm_lastFetched = DTM.NULL;\n  \t\treturn DTM.NULL;\n  \t}\n  \t\t\n    if(DTM.NULL == m_lastFetched)\n    {\n      resetProximityPositions();\n    }\n\n    int next;\n    \n    org.apache.xpath.VariableStack vars;\n    int savedStart;\n    if (-1 != m_stackFrame)\n    {\n      vars = m_execContext.getVarStack();\n\n      savedStart = vars.getStackFrame();\n\n      vars.setStackFrame(m_stackFrame);\n    }\n    else\n    {\n      vars = null;\n      savedStart = 0;\n    }\n    \n    try\n    {\n      do\n      {\n        next = getNextNode();\n  \n        if (DTM.NULL != next)\n        {\n          if(DTMIterator.FILTER_ACCEPT == acceptNode(next))\n            break;\n          else\n            continue;\n        }\n        else\n          break;\n      }\n      while (next != DTM.NULL);\n  \n      if (DTM.NULL != next)\n      {\n      \tm_pos++;\n        return next;\n      }\n      else\n      {\n        m_foundLast = true;\n  \n        return DTM.NULL;\n      }\n    }\n    finally\n    {\n      if (-1 != m_stackFrame)\n      {\n        vars.setStackFrame(savedStart);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "IF", "LOOP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "RETURN", "LITERAL_ANCHOR", "RETURN", "RETURN", "IF", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "IF", "CALL", "BREAK_CONTINUE", "BREAK_CONTINUE", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [1, 10], [2, 11], [6, 12], [8, 13], [9, 14], [10, 15], [11, 16], [7, 17], [13, 18], [9, 19], [9, 20], [10, 21], [2, 22], [2, 23], [2, 24], [2, 25], [2, 26], [6, 27], [7, 28], [8, 29], [9, 30], [21, 31], [21, 32], [10, 33], [22, 34], [23, 35], [25, 36], [26, 37], [30, 38], [21, 39], [33, 40], [39, 41], [39, 42], [39, 43], [43, 44], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 1], [11, 2], [12, 6], [13, 8], [14, 9], [15, 10], [16, 11], [17, 7], [18, 13], [19, 9], [20, 9], [21, 10], [22, 2], [23, 2], [24, 2], [25, 2], [26, 2], [27, 6], [28, 7], [29, 8], [30, 9], [31, 21], [32, 21], [33, 10], [34, 22], [35, 23], [36, 25], [37, 26], [38, 30], [39, 21], [40, 33], [41, 39], [42, 39], [43, 39], [44, 43], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44]]}, {"function_name": "cloneWithReset", "code": "  public DTMIterator cloneWithReset() throws CloneNotSupportedException\n  {\n\n    ChildTestIterator clone = (ChildTestIterator) super.cloneWithReset();\n\n    clone.resetProximityPositions();\n\n    return clone;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "BasicTestIterator", "code": "  protected BasicTestIterator()", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "BasicTestIterator", "code": "  protected BasicTestIterator(PrefixResolver nscontext)\n  {\n\n    super(nscontext);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "BasicTestIterator", "code": "  protected BasicTestIterator(Compiler compiler, int opPos, int analysis)\n          throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis, false);\n    \n    int firstStepPos = compiler.getFirstChildPos(opPos);\n    int whatToShow = compiler.getWhatToShow(firstStepPos);\n\n    if ((0 == (whatToShow\n               & (DTMFilter.SHOW_ATTRIBUTE \n               | DTMFilter.SHOW_NAMESPACE \n               | DTMFilter.SHOW_ELEMENT\n               | DTMFilter.SHOW_PROCESSING_INSTRUCTION))) \n               || (whatToShow == DTMFilter.SHOW_ALL))\n      initNodeTest(whatToShow);\n    else\n    {\n      initNodeTest(whatToShow, compiler.getStepNS(firstStepPos),\n                              compiler.getStepLocalName(firstStepPos));\n    }\n    initPredicateInfo(compiler, firstStepPos);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [0, 9], [1, 10], [8, 11], [8, 12], [2, 13], [3, 14], [1, 15], [12, 16], [12, 17], [15, 18], [15, 19], [16, 20], [20, 21], [21, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 0], [10, 1], [11, 8], [12, 8], [13, 2], [14, 3], [15, 1], [16, 12], [17, 12], [18, 15], [19, 15], [20, 16], [21, 20], [22, 21], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "BasicTestIterator", "code": "  protected BasicTestIterator(\n          Compiler compiler, int opPos, int analysis, boolean shouldLoadWalkers)\n            throws javax.xml.transform.TransformerException\n  {\n    super(compiler, opPos, analysis, shouldLoadWalkers);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "camel-1.4-2451", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/builder/xml/XsltBuilder.java", "language": "java", "name": "org.apache.camel.builder.xml.XsltBuilder", "code": "public class XsltBuilder implements Processor {\n    private Map<String, Object> parameters = new HashMap<String, Object>();\n    private XmlConverter converter = new XmlConverter();\n    private Templates template;\n    private ResultHandlerFactory resultHandlerFactory = new StringResultHandlerFactory();\n    private boolean failOnNullBody = true;\n\n    public XsltBuilder() {\n    }\n\n    public XsltBuilder(Templates templates) {\n        this.template = templates;\n    }\n\n    @Override\n    public String toString() {\n        return \"XSLT[\" + template + \"]\";\n    }\n\n    public void process(Exchange exchange) throws Exception {\n        if (getTemplate() == null) {\n            throw new IllegalArgumentException(\"No template configured!\");\n        }\n        Transformer transformer = getTemplate().newTransformer();\n        configureTransformer(transformer, exchange);\n        Source source = getSource(exchange);\n        ResultHandler resultHandler = resultHandlerFactory.createResult();\n        Result result = resultHandler.getResult();\n\n        Message out = exchange.getOut(true);\n        out.copyFrom(exchange.getIn());\n\n        transformer.transform(source, result);\n        resultHandler.setBody(out);\n    }\n\n\n    /**\n     * Creates an XSLT processor using the given templates instance\n     */\n    public static XsltBuilder xslt(Templates templates) {\n        return new XsltBuilder(templates);\n    }\n\n    /**\n     * Creates an XSLT processor using the given XSLT source\n     */\n    public static XsltBuilder xslt(Source xslt) throws TransformerConfigurationException {\n        notNull(xslt, \"xslt\");\n        XsltBuilder answer = new XsltBuilder();\n        answer.setTransformerSource(xslt);\n        return answer;\n    }\n\n    /**\n     * Creates an XSLT processor using the given XSLT source\n     */\n    public static XsltBuilder xslt(File xslt) throws TransformerConfigurationException {\n        notNull(xslt, \"xslt\");\n        return xslt(new StreamSource(xslt));\n    }\n\n    /**\n     * Creates an XSLT processor using the given XSLT source\n     */\n    public static XsltBuilder xslt(URL xslt) throws TransformerConfigurationException, IOException {\n        notNull(xslt, \"xslt\");\n        return xslt(xslt.openStream());\n    }\n\n    /**\n     * Creates an XSLT processor using the given XSLT source\n     */\n    public static XsltBuilder xslt(InputStream xslt) throws TransformerConfigurationException, IOException {\n        notNull(xslt, \"xslt\");\n        return xslt(new StreamSource(xslt));\n    }\n\n    /**\n     * Sets the output as being a byte[]\n     */\n    public XsltBuilder outputBytes() {\n        setResultHandlerFactory(new StreamResultHandlerFactory());\n        return this;\n    }\n\n    /**\n     * Sets the output as being a String\n     */\n    public XsltBuilder outputString() {\n        setResultHandlerFactory(new StringResultHandlerFactory());\n        return this;\n    }\n\n    /**\n     * Sets the output as being a DOM\n     */\n    public XsltBuilder outputDOM() {\n        setResultHandlerFactory(new DomResultHandlerFactory());\n        return this;\n    }\n\n    public XsltBuilder parameter(String name, Object value) {\n        parameters.put(name, value);\n        return this;\n    }\n\n\n    public Map<String, Object> getParameters() {\n        return parameters;\n    }\n\n    public void setParameters(Map<String, Object> parameters) {\n        this.parameters = parameters;\n    }\n\n    public void setTemplate(Templates template) {\n        this.template = template;\n    }\n    \n    public Templates getTemplate() {\n        return template;\n    }\n\n    public boolean isFailOnNullBody() {\n        return failOnNullBody;\n    }\n\n    public void setFailOnNullBody(boolean failOnNullBody) {\n        this.failOnNullBody = failOnNullBody;\n    }\n\n    public ResultHandlerFactory getResultHandlerFactory() {\n        return resultHandlerFactory;\n    }\n\n    public void setResultHandlerFactory(ResultHandlerFactory resultHandlerFactory) {\n        this.resultHandlerFactory = resultHandlerFactory;\n    }\n\n    /**\n     * Sets the XSLT transformer from a Source\n     *\n     * @param source  the source\n     * @throws TransformerConfigurationException is thrown if creating a XSLT transformer failed.\n     */\n    public void setTransformerSource(Source source) throws TransformerConfigurationException {\n        Templates templates = converter.getTransformerFactory().newTemplates(source);\n        if (templates != null) {\n            setTemplate(templates);\n        } else {\n            throw new TransformerConfigurationException(\"Error creating XSLT template. \"\n                    + \"This is most likely be caused by an XML parse error. \"\n                    + \"Please verify your XSLT file configured.\");\n        }\n    }\n\n    /**\n     * Sets the XSLT transformer from a File\n     */\n    public void setTransformerFile(File xslt) throws TransformerConfigurationException {\n        setTransformerSource(new StreamSource(xslt));\n    }\n\n    /**\n     * Sets the XSLT transformer from a URL\n     */\n    public void setTransformerURL(URL url) throws TransformerConfigurationException, IOException {\n        notNull(url, \"url\");\n        setTransformerInputStream(url.openStream());\n    }\n\n    /**\n     * Sets the XSLT transformer from the given input stream\n     */\n    public void setTransformerInputStream(InputStream in) throws TransformerConfigurationException, IOException {\n        notNull(in, \"in\");\n        setTransformerSource(new StreamSource(in));\n    }\n\n    public XmlConverter getConverter() {\n        return converter;\n    }\n\n    public void setConverter(XmlConverter converter) {\n        this.converter = converter;\n    }\n\n\n    /**\n     * Converts the inbound body to a {@link Source}\n     */\n    protected Source getSource(Exchange exchange) {\n        Message in = exchange.getIn();\n        Source source = in.getBody(Source.class);\n        if (source == null) {\n            if (isFailOnNullBody()) {\n                throw new ExpectedBodyTypeException(exchange, Source.class);\n            } else {\n                try {\n                    source = converter.toSource(converter.createDocument());\n                } catch (ParserConfigurationException e) {\n                    throw new RuntimeTransformException(e);\n                }\n            }\n        }\n        return source;\n    }\n\n    /**\n     * Configures the transformer with exchange specific parameters\n     */\n    protected void configureTransformer(Transformer transformer, Exchange exchange) {\n        transformer.clearParameters();\n\n        addParameters(transformer, exchange.getProperties());\n        addParameters(transformer, exchange.getIn().getHeaders());\n        addParameters(transformer, getParameters());\n\n        transformer.setParameter(\"exchange\", exchange);\n        transformer.setParameter(\"in\", exchange.getIn());\n        transformer.setParameter(\"out\", exchange.getOut());\n    }\n\n    protected void addParameters(Transformer transformer, Map<String, Object> map) {\n        Set<Map.Entry<String, Object>> propertyEntries = map.entrySet();\n        for (Map.Entry<String, Object> entry : propertyEntries) {\n            String key = entry.getKey();\n            Object value = entry.getValue();\n            if (value != null) {\n                transformer.setParameter(key, value);", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"XSLT[\" + template + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "process", "code": "    public void process(Exchange exchange) throws Exception {\n        if (getTemplate() == null) {\n            throw new IllegalArgumentException(\"No template configured!\");\n        }\n        Transformer transformer = getTemplate().newTransformer();\n        configureTransformer(transformer, exchange);\n        Source source = getSource(exchange);\n        ResultHandler resultHandler = resultHandlerFactory.createResult();\n        Result result = resultHandler.getResult();\n\n        Message out = exchange.getOut(true);\n        out.copyFrom(exchange.getIn());\n\n        transformer.transform(source, result);\n        resultHandler.setBody(out);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [6, 12], [10, 13], [1, 14], [2, 15], [3, 16], [4, 17], [5, 18], [6, 19], [12, 20], [12, 21], [14, 22], [18, 23], [19, 24], [24, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 6], [13, 10], [14, 1], [15, 2], [16, 3], [17, 4], [18, 5], [19, 6], [20, 12], [21, 12], [22, 14], [23, 18], [24, 19], [25, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "xslt", "code": "    public static XsltBuilder xslt(Templates templates) {\n        return new XsltBuilder(templates);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "xslt", "code": "    public static XsltBuilder xslt(Source xslt) throws TransformerConfigurationException {\n        notNull(xslt, \"xslt\");\n        XsltBuilder answer = new XsltBuilder();\n        answer.setTransformerSource(xslt);\n        return answer;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [5, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "xslt", "code": "    public static XsltBuilder xslt(File xslt) throws TransformerConfigurationException {\n        notNull(xslt, \"xslt\");\n        return xslt(new StreamSource(xslt));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "xslt", "code": "    public static XsltBuilder xslt(URL xslt) throws TransformerConfigurationException, IOException {\n        notNull(xslt, \"xslt\");\n        return xslt(xslt.openStream());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "xslt", "code": "    public static XsltBuilder xslt(InputStream xslt) throws TransformerConfigurationException, IOException {\n        notNull(xslt, \"xslt\");\n        return xslt(new StreamSource(xslt));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [3, 5], [4, 6], [1, 0], [2, 0], [3, 1], [4, 0], [5, 3], [6, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "outputBytes", "code": "    public XsltBuilder outputBytes() {\n        setResultHandlerFactory(new StreamResultHandlerFactory());\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "outputString", "code": "    public XsltBuilder outputString() {\n        setResultHandlerFactory(new StringResultHandlerFactory());\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "outputDOM", "code": "    public XsltBuilder outputDOM() {\n        setResultHandlerFactory(new DomResultHandlerFactory());\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "parameter", "code": "    public XsltBuilder parameter(String name, Object value) {\n        parameters.put(name, value);\n        return this;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getParameters", "code": "    public Map<String, Object> getParameters() {\n        return parameters;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setParameters", "code": "    public void setParameters(Map<String, Object> parameters) {\n        this.parameters = parameters;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTemplate", "code": "    public void setTemplate(Templates template) {\n        this.template = template;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getTemplate", "code": "    public Templates getTemplate() {\n        return template;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "isFailOnNullBody", "code": "    public boolean isFailOnNullBody() {\n        return failOnNullBody;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setFailOnNullBody", "code": "    public void setFailOnNullBody(boolean failOnNullBody) {\n        this.failOnNullBody = failOnNullBody;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getResultHandlerFactory", "code": "    public ResultHandlerFactory getResultHandlerFactory() {\n        return resultHandlerFactory;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setResultHandlerFactory", "code": "    public void setResultHandlerFactory(ResultHandlerFactory resultHandlerFactory) {\n        this.resultHandlerFactory = resultHandlerFactory;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "setTransformerSource", "code": "    public void setTransformerSource(Source source) throws TransformerConfigurationException {\n        Templates templates = converter.getTransformerFactory().newTemplates(source);\n        if (templates != null) {\n            setTemplate(templates);\n        } else {\n            throw new TransformerConfigurationException(\"Error creating XSLT template. \"\n                    + \"This is most likely be caused by an XML parse error. \"\n                    + \"Please verify your XSLT file configured.\");", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "PARAM", "BINARY_OP", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 5], [4, 6], [2, 7], [5, 8], [1, 9], [7, 10], [8, 11], [11, 12], [11, 13], [13, 14], [13, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 1], [6, 4], [7, 2], [8, 5], [9, 1], [10, 7], [11, 8], [12, 11], [13, 11], [14, 13], [15, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "setTransformerFile", "code": "    public void setTransformerFile(File xslt) throws TransformerConfigurationException {\n        setTransformerSource(new StreamSource(xslt));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "setTransformerURL", "code": "    public void setTransformerURL(URL url) throws TransformerConfigurationException, IOException {\n        notNull(url, \"url\");\n        setTransformerInputStream(url.openStream());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "setTransformerInputStream", "code": "    public void setTransformerInputStream(InputStream in) throws TransformerConfigurationException, IOException {\n        notNull(in, \"in\");\n        setTransformerSource(new StreamSource(in));", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [3, 5], [1, 0], [2, 0], [3, 0], [4, 2], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getConverter", "code": "    public XmlConverter getConverter() {\n        return converter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setConverter", "code": "    public void setConverter(XmlConverter converter) {\n        this.converter = converter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSource", "code": "    protected Source getSource(Exchange exchange) {\n        Message in = exchange.getIn();\n        Source source = in.getBody(Source.class);\n        if (source == null) {\n            if (isFailOnNullBody()) {\n                throw new ExpectedBodyTypeException(exchange, Source.class);\n            } else {\n                try {\n                    source = converter.toSource(converter.createDocument());\n                } catch (ParserConfigurationException e) {\n                    throw new RuntimeTransformException(e);\n                }\n            }\n        }\n        return source;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "TRY", "THROW_RAISE", "CATCH", "CALL", "THROW_RAISE", "ASSIGN", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [6, 8], [3, 9], [4, 10], [7, 11], [7, 12], [7, 13], [12, 14], [13, 15], [14, 16], [12, 17], [16, 18], [17, 19], [19, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 6], [9, 3], [10, 4], [11, 7], [12, 7], [13, 7], [14, 12], [15, 13], [16, 14], [17, 12], [18, 16], [19, 17], [20, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "configureTransformer", "code": "    protected void configureTransformer(Transformer transformer, Exchange exchange) {\n        transformer.clearParameters();\n\n        addParameters(transformer, exchange.getProperties());\n        addParameters(transformer, exchange.getIn().getHeaders());\n        addParameters(transformer, getParameters());\n\n        transformer.setParameter(\"exchange\", exchange);\n        transformer.setParameter(\"in\", exchange.getIn());\n        transformer.setParameter(\"out\", exchange.getOut());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [3, 10], [3, 11], [4, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 3], [11, 3], [12, 4], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "addParameters", "code": "    protected void addParameters(Transformer transformer, Map<String, Object> map) {\n        Set<Map.Entry<String, Object>> propertyEntries = map.entrySet();\n        for (Map.Entry<String, Object> entry : propertyEntries) {\n            String key = entry.getKey();\n            Object value = entry.getValue();\n            if (value != null) {\n                transformer.setParameter(key, value);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "PARAM", "PARAM", "IF", "VAR_DECL", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [2, 8], [5, 9], [9, 10], [6, 11], [7, 12], [5, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 2], [9, 5], [10, 9], [11, 6], [12, 7], [13, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "XsltBuilder", "code": "    public XsltBuilder() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "XsltBuilder", "code": "    public XsltBuilder(Templates templates) {\n        this.template = templates;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.6-7508", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/xsltc/compiler/ApplyTemplates.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.ApplyTemplates", "code": "final class ApplyTemplates extends Instruction {\n    private Expression _select;\n    private Type       _type = null;\n    private QName      _modeName;\n    private String     _functionName;\n\t\n    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"ApplyTemplates\");\n\tindent(indent + IndentIncrement);\n\tUtil.println(\"select \" + _select.toString());\n\tif (_modeName != null) {\n\t    indent(indent + IndentIncrement);\n\t    Util.println(\"mode \" + _modeName);\n\t}\n    }\n\n    public boolean hasWithParams() {\n\treturn hasContents();\n    }\n\n    public void parseContents(Parser parser) {\n\tfinal String select = getAttribute(\"select\");\n\tfinal String mode   = getAttribute(\"mode\");\n\t\n\tif (select.length() > 0) {\n\t    _select = parser.parseExpression(this, \"select\", null);\n\n\t}\n\t\n\tif (mode.length() > 0) {\n            if (!XMLChar.isValidQName(mode)) {\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, mode, this);\n                parser.reportError(Constants.ERROR, err);           \n            }\t\t\n\t    _modeName = parser.getQNameIgnoreDefaultNs(mode);\n\t}\n\t\n\t_functionName =\n\t    parser.getTopLevelStylesheet().getMode(_modeName).functionName();\n    }\n\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_select != null) {\n\t    _type = _select.typeCheck(stable);\n\t    if (_type instanceof NodeType || _type instanceof ReferenceType) {\n\t\t_select = new CastExpr(_select, Type.NodeSet);\n\t\t_type = Type.NodeSet;\n\t    }\n\t    if (_type instanceof NodeSetType||_type instanceof ResultTreeType) {\n\t\treturn Type.Void;\n\t    }\n\t    throw new TypeCheckError(this);\n\t}\n\telse {\n\t    return Type.Void;\n\t}\n    }\n\n    /**\n     * Translate call-template. A parameter frame is pushed only if\n     * some template in the stylesheet uses parameters. \n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tboolean setStartNodeCalled = false;\n\tfinal Stylesheet stylesheet = classGen.getStylesheet();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int current = methodGen.getLocalIndex(\"current\");\n\n\tfinal Vector sortObjects = new Vector();\n\tfinal Enumeration children = elements();\n\twhile (children.hasMoreElements()) {\n\t    final Object child = children.nextElement();\n\t    if (child instanceof Sort) {\n\t\tsortObjects.addElement(child);\n\t    }\n\t}\n\n\tif (stylesheet.hasLocalParams() || hasContents()) {\n\t    il.append(classGen.loadTranslet());\n\t    final int pushFrame = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t   PUSH_PARAM_FRAME,\n\t\t\t\t\t\t   PUSH_PARAM_FRAME_SIG);\n\t    il.append(new INVOKEVIRTUAL(pushFrame));\n\t    translateContents(classGen, methodGen);\n\t}\n\n\n\til.append(classGen.loadTranslet());\n\n\tif ((_type != null) && (_type instanceof ResultTreeType)) {\n\t    if (sortObjects.size() > 0) {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.RESULT_TREE_SORT_ERR,this);\n\t\tgetParser().reportError(WARNING, err);\n\t    }\n\t    _select.translate(classGen, methodGen);\t\n\t    _type.translateTo(classGen, methodGen, Type.NodeSet);\n\t}\n\telse {\n\t    il.append(methodGen.loadDOM());\n\n\t    if (sortObjects.size() > 0) {\n\t\tSort.translateSortIterator(classGen, methodGen,\n\t\t\t\t\t   _select, sortObjects);\n\t\tint setStartNode = cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t\t\t     SET_START_NODE,\n\t\t\t\t\t\t\t     \"(I)\"+\n\t\t\t\t\t\t\t     NODE_ITERATOR_SIG);\n\t\til.append(methodGen.loadCurrentNode());\n\t\til.append(new INVOKEINTERFACE(setStartNode,2));\n\t\tsetStartNodeCalled = true;\t\n\t    }\n\t    else {\n\t\tif (_select == null)\n\t\t    Mode.compileGetChildren(classGen, methodGen, current);\n\t\telse\n\t\t    _select.translate(classGen, methodGen);\n\t    }\n\t}\n\n\tif (_select != null && !setStartNodeCalled) {\n\t    _select.startIterator(classGen, methodGen);\n\t}\n\n\tfinal String className = classGen.getStylesheet().getClassName();\n\til.append(methodGen.loadHandler());\n\tfinal String applyTemplatesSig = classGen.getApplyTemplatesSig();\n\tfinal int applyTemplates = cpg.addMethodref(className,\n\t\t\t\t\t\t    _functionName,\n\t\t\t\t\t\t    applyTemplatesSig);\n\til.append(new INVOKEVIRTUAL(applyTemplates));\n\t\n\tif (stylesheet.hasLocalParams() || hasContents()) {\n\t    il.append(classGen.loadTranslet());\n\t    final int popFrame = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t  POP_PARAM_FRAME,\n\t\t\t\t\t\t  POP_PARAM_FRAME_SIG);\n\t    il.append(new INVOKEVIRTUAL(popFrame));", "functions": [{"function_name": "display", "code": "    public void display(int indent) {\n\tindent(indent);\n\tUtil.println(\"ApplyTemplates\");\n\tindent(indent + IndentIncrement);\n\tUtil.println(\"select \" + _select.toString());\n\tif (_modeName != null) {\n\t    indent(indent + IndentIncrement);\n\t    Util.println(\"mode \" + _modeName);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [0, 4], [0, 5], [0, 6], [0, 7], [3, 8], [4, 9], [5, 10], [6, 11], [1, 12], [1, 13], [9, 14], [9, 15], [12, 16], [13, 17], [16, 18], [1, 0], [2, 0], [3, 1], [4, 0], [5, 0], [6, 0], [7, 0], [8, 3], [9, 4], [10, 5], [11, 6], [12, 1], [13, 1], [14, 9], [15, 9], [16, 12], [17, 13], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "hasWithParams", "code": "    public boolean hasWithParams() {\n\treturn hasContents();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "parseContents", "code": "    public void parseContents(Parser parser) {\n\tfinal String select = getAttribute(\"select\");\n\tfinal String mode   = getAttribute(\"mode\");\n\t\n\tif (select.length() > 0) {\n\t    _select = parser.parseExpression(this, \"select\", null);\n\n\t}\n\t\n\tif (mode.length() > 0) {\n            if (!XMLChar.isValidQName(mode)) {\n                ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, mode, this);\n                parser.reportError(Constants.ERROR, err);           \n            }\t\t\n\t    _modeName = parser.getQNameIgnoreDefaultNs(mode);\n\t}\n\t\n\t_functionName =\n\t    parser.getTopLevelStylesheet().getMode(_modeName).functionName();", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "IF", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "VAR_DECL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [6, 9], [1, 10], [7, 11], [7, 12], [8, 13], [8, 14], [3, 15], [4, 16], [9, 17], [9, 18], [1, 19], [10, 20], [2, 21], [15, 22], [16, 23], [19, 24], [10, 25], [21, 26], [10, 27], [26, 28], [26, 29], [25, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 6], [10, 1], [11, 7], [12, 7], [13, 8], [14, 8], [15, 3], [16, 4], [17, 9], [18, 9], [19, 1], [20, 10], [21, 2], [22, 15], [23, 16], [24, 19], [25, 10], [26, 21], [27, 10], [28, 26], [29, 26], [30, 25], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (_select != null) {\n\t    _type = _select.typeCheck(stable);\n\t    if (_type instanceof NodeType || _type instanceof ReferenceType) {\n\t\t_select = new CastExpr(_select, Type.NodeSet);\n\t\t_type = Type.NodeSet;\n\t    }\n\t    if (_type instanceof NodeSetType||_type instanceof ResultTreeType) {\n\t\treturn Type.Void;\n\t    }\n\t    throw new TypeCheckError(this);\n\t}\n\telse {\n\t    return Type.Void;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "THROW_RAISE", "IF", "IF", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [3, 8], [5, 9], [6, 10], [7, 11], [1, 12], [6, 13], [10, 14], [10, 15], [11, 16], [11, 17], [12, 18], [7, 19], [7, 20], [20, 21], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 3], [9, 5], [10, 6], [11, 7], [12, 1], [13, 6], [14, 10], [15, 10], [16, 11], [17, 11], [18, 12], [19, 7], [20, 7], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tboolean setStartNodeCalled = false;\n\tfinal Stylesheet stylesheet = classGen.getStylesheet();\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal InstructionList il = methodGen.getInstructionList();\n\tfinal int current = methodGen.getLocalIndex(\"current\");\n\n\tfinal Vector sortObjects = new Vector();\n\tfinal Enumeration children = elements();\n\twhile (children.hasMoreElements()) {\n\t    final Object child = children.nextElement();\n\t    if (child instanceof Sort) {\n\t\tsortObjects.addElement(child);\n\t    }\n\t}\n\n\tif (stylesheet.hasLocalParams() || hasContents()) {\n\t    il.append(classGen.loadTranslet());\n\t    final int pushFrame = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t   PUSH_PARAM_FRAME,\n\t\t\t\t\t\t   PUSH_PARAM_FRAME_SIG);\n\t    il.append(new INVOKEVIRTUAL(pushFrame));\n\t    translateContents(classGen, methodGen);\n\t}\n\n\n\til.append(classGen.loadTranslet());\n\n\tif ((_type != null) && (_type instanceof ResultTreeType)) {\n\t    if (sortObjects.size() > 0) {\n\t\tErrorMsg err = new ErrorMsg(ErrorMsg.RESULT_TREE_SORT_ERR,this);\n\t\tgetParser().reportError(WARNING, err);\n\t    }\n\t    _select.translate(classGen, methodGen);\t\n\t    _type.translateTo(classGen, methodGen, Type.NodeSet);\n\t}\n\telse {\n\t    il.append(methodGen.loadDOM());\n\n\t    if (sortObjects.size() > 0) {\n\t\tSort.translateSortIterator(classGen, methodGen,\n\t\t\t\t\t   _select, sortObjects);\n\t\tint setStartNode = cpg.addInterfaceMethodref(NODE_ITERATOR,\n\t\t\t\t\t\t\t     SET_START_NODE,\n\t\t\t\t\t\t\t     \"(I)\"+\n\t\t\t\t\t\t\t     NODE_ITERATOR_SIG);\n\t\til.append(methodGen.loadCurrentNode());\n\t\til.append(new INVOKEINTERFACE(setStartNode,2));\n\t\tsetStartNodeCalled = true;\t\n\t    }\n\t    else {\n\t\tif (_select == null)\n\t\t    Mode.compileGetChildren(classGen, methodGen, current);\n\t\telse\n\t\t    _select.translate(classGen, methodGen);\n\t    }\n\t}\n\n\tif (_select != null && !setStartNodeCalled) {\n\t    _select.startIterator(classGen, methodGen);\n\t}\n\n\tfinal String className = classGen.getStylesheet().getClassName();\n\til.append(methodGen.loadHandler());\n\tfinal String applyTemplatesSig = classGen.getApplyTemplatesSig();\n\tfinal int applyTemplates = cpg.addMethodref(className,\n\t\t\t\t\t\t    _functionName,\n\t\t\t\t\t\t    applyTemplatesSig);\n\til.append(new INVOKEVIRTUAL(applyTemplates));\n\t\n\tif (stylesheet.hasLocalParams() || hasContents()) {\n\t    il.append(classGen.loadTranslet());\n\t    final int popFrame = cpg.addMethodref(TRANSLET_CLASS,\n\t\t\t\t\t\t  POP_PARAM_FRAME,\n\t\t\t\t\t\t  POP_PARAM_FRAME_SIG);\n\t    il.append(new INVOKEVIRTUAL(popFrame));", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "IF", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 18], [0, 19], [0, 20], [5, 21], [6, 22], [0, 23], [7, 24], [8, 25], [1, 26], [18, 27], [18, 28], [19, 29], [2, 30], [3, 31], [20, 32], [4, 33], [21, 34], [6, 35], [6, 36], [22, 37], [22, 38], [23, 39], [7, 40], [24, 41], [24, 42], [8, 43], [8, 44], [9, 45], [10, 46], [11, 47], [12, 48], [13, 49], [14, 50], [15, 51], [1, 52], [1, 53], [33, 54], [5, 55], [34, 56], [35, 57], [6, 58], [6, 59], [6, 60], [36, 61], [38, 62], [7, 63], [7, 64], [7, 65], [43, 66], [47, 67], [52, 68], [26, 69], [53, 70], [35, 71], [35, 72], [57, 73], [57, 74], [58, 75], [36, 76], [61, 77], [61, 78], [64, 79], [40, 80], [65, 81], [44, 82], [71, 83], [35, 84], [35, 85], [35, 86], [35, 87], [36, 88], [43, 89], [71, 90], [71, 91], [83, 92], [84, 93], [85, 94], [86, 95], [72, 96], [88, 97], [76, 98], [94, 99], [96, 100], [100, 101], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 1], [19, 0], [20, 0], [21, 5], [22, 6], [23, 0], [24, 7], [25, 8], [26, 1], [27, 18], [28, 18], [29, 19], [30, 2], [31, 3], [32, 20], [33, 4], [34, 21], [35, 6], [36, 6], [37, 22], [38, 22], [39, 23], [40, 7], [41, 24], [42, 24], [43, 8], [44, 8], [45, 9], [46, 10], [47, 11], [48, 12], [49, 13], [50, 14], [51, 15], [52, 1], [53, 1], [54, 33], [55, 5], [56, 34], [57, 35], [58, 6], [59, 6], [60, 6], [61, 36], [62, 38], [63, 7], [64, 7], [65, 7], [66, 43], [67, 47], [68, 52], [69, 26], [70, 53], [71, 35], [72, 35], [73, 57], [74, 57], [75, 58], [76, 36], [77, 61], [78, 61], [79, 64], [80, 40], [81, 65], [82, 44], [83, 71], [84, 35], [85, 35], [86, 35], [87, 35], [88, 36], [89, 43], [90, 71], [91, 71], [92, 83], [93, 84], [94, 85], [95, 86], [96, 72], [97, 88], [98, 76], [99, 94], [100, 96], [101, 100], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101]]}], "label": 1}
{"sample_id": "xalan-2.4-6424", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xml/dtm/ref/sax2dtm/SAX2DTM.java", "language": "java", "name": "org.apache.xml.dtm.ref.sax2dtm.SAX2DTM", "code": "public class SAX2DTM extends DTMDefaultBaseIterators\n        implements EntityResolver, DTDHandler, ContentHandler, ErrorHandler,\n                   DeclHandler, LexicalHandler\n{\n  /** Set true to monitor SAX events and similar diagnostic info. */\n  private static final boolean DEBUG = false;\n\n  /**\n   * If we're building the model incrementally on demand, we need to\n   * be able to tell the source when to send us more data.\n   *\n   * Note that if this has not been set, and you attempt to read ahead\n   * of the current build point, we'll probably throw a null-pointer\n   * exception. We could try to wait-and-retry instead, as a very poor\n   * fallback, but that has all the known problems with multithreading\n   * on multiprocessors and we Don't Want to Go There.\n   *\n   * @see setIncrementalSAXSource\n   */\n  private IncrementalSAXSource m_incrementalSAXSource = null;\n\n  /**\n   * All the character content, including attribute values, are stored in\n   * this buffer.\n   *\n   * %REVIEW% Should this have an option of being shared across DTMs?\n   * Sequentially only; not threadsafe... Currently, I think not.\n   *\n   * %REVIEW% Initial size was pushed way down to reduce weight of RTFs.\n   * pending reduction in number of RTF DTMs. Now that we're sharing a DTM\n   * between RTFs, and tail-pruning... consider going back to the larger/faster.\n   *\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  protected FastStringBuffer m_chars = new FastStringBuffer(5, 13);\n\n  /** This vector holds offset and length data.\n   */\n  protected SuballocatedIntVector m_data;\n\n  /** The parent stack, needed only for construction.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected IntStack m_parents = new IntStack();\n\n  /** The current previous node, needed only for construction time.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected int m_previous = 0;\n\n  /** Namespace support, only relevent at construction time.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected java.util.Vector m_prefixMappings =\n    new java.util.Vector();\n\n  /** Namespace support, only relevent at construction time.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected IntStack m_contextIndexes = new IntStack();\n\n  /** Type of next characters() event within text block in prgress. */\n  transient private int m_textType = DTM.TEXT_NODE;\n\n  /**\n   * Type of coalesced text block. See logic in the characters()\n   * method.\n   */\n  transient private int m_coalescedTextType = DTM.TEXT_NODE;\n\n  /** The SAX Document locator */\n  transient private Locator m_locator = null;\n\n  /** We are inside the DTD.  This is used for ignoring comments.  */\n  transient private boolean m_insideDTD = false;\n\n  /** Tree Walker for dispatchToEvents. */\n  protected DTMTreeWalker m_walker = new DTMTreeWalker();\n\n  /** pool of string values that come as strings. */\n  private DTMStringPool m_valuesOrPrefixes = new DTMStringPool();\n\n  /** End document has been reached.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  protected boolean m_endDocumentOccured = false;\n\n  /** Data or qualified name values, one array element for each node. */\n  protected SuballocatedIntVector m_dataOrQName;\n\n  /**\n   * This table holds the ID string to node associations, for\n   * XML IDs.\n   */\n  protected Hashtable m_idAttributes = new Hashtable();\n\n  /**\n   * fixed dom-style names.\n   */\n\n  /**\n   * Vector of entities.  Each record is composed of four Strings:\n   *  publicId, systemID, notationName, and name.\n   */\n  private Vector m_entities = null;\n\n  /** m_entities public ID offset. */\n  private static final int ENTITY_FIELD_PUBLICID = 0;\n\n  /** m_entities system ID offset. */\n  private static final int ENTITY_FIELD_SYSTEMID = 1;\n\n  /** m_entities notation name offset. */\n  private static final int ENTITY_FIELD_NOTATIONNAME = 2;\n\n  /** m_entities name offset. */\n  private static final int ENTITY_FIELD_NAME = 3;\n\n  /** Number of entries per record for m_entities. */\n  private static final int ENTITY_FIELDS_PER = 4;\n\n  /**\n   * The starting offset within m_chars for the text or\n   * CDATA_SECTION node currently being acumulated,\n   * or -1 if there is no text node in progress\n   */\n  private int m_textPendingStart = -1;\n\n  /**\n   * Describes whether information about document source location\n   * should be maintained or not.\n   * \n   * Made protected for access by SAX2RTFDTM.\n   */\n  protected boolean m_useSourceLocationProperty = false;\n\n   /** Made protected for access by SAX2RTFDTM.\n   */\n  protected StringVector m_sourceSystemId;\n   /** Made protected for access by SAX2RTFDTM.\n   */\n  protected IntVector m_sourceLine;\n   /** Made protected for access by SAX2RTFDTM.\n   */\n  protected IntVector m_sourceColumn;\n  \n  /**\n   * Construct a SAX2DTM object ready to be constructed from SAX2\n   * ContentHandler events.\n   *\n   * @param mgr The DTMManager who owns this DTM.\n   * @param source the JAXP 1.1 Source object for this DTM.\n   * @param dtmIdentity The DTM identity ID for this DTM.\n   * @param whiteSpaceFilter The white space filter for this DTM, which may\n   *                         be null.\n   * @param xstringfactory XMLString factory for creating character content.\n   * @param doIndexing true if the caller considers it worth it to use \n   *                   indexing schemes.\n   */\n  public SAX2DTM(DTMManager mgr, Source source, int dtmIdentity,\n                 DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing)\n  {\n\n    super(mgr, source, dtmIdentity, whiteSpaceFilter, \n          xstringfactory, doIndexing);\n          \n    m_data = new SuballocatedIntVector(32, 1024);\n\n\n    m_dataOrQName = new SuballocatedIntVector(m_initialblocksize);\n    \n    m_useSourceLocationProperty=org.apache.xalan.processor.TransformerFactoryImpl.m_source_location;\n    m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector() : null;\n \tm_sourceLine = (m_useSourceLocationProperty) ?  new IntVector() : null;\n    m_sourceColumn = (m_useSourceLocationProperty) ?  new IntVector() : null; \n  }\n\n  /**\n   * Get the data or qualified name for the given node identity.\n   *\n   * @param identity The node identity.\n   *\n   * @return The data or qualified name, or DTM.NULL.\n   */\n  protected int _dataOrQName(int identity)\n  {\n\n    if (identity < m_size)\n      return m_dataOrQName.elementAt(identity);\n\n    while (true)\n    {\n      boolean isMore = nextNode();\n\n      if (!isMore)\n        return NULL;\n      else if (identity < m_size)\n        return m_dataOrQName.elementAt(identity);\n    }\n  }\n\n  /**\n   * Ask the CoRoutine parser to doTerminate and clear the reference.\n   */\n  public void clearCoRoutine()\n  {\n    clearCoRoutine(true);\n  }\n\n  /**\n   * Ask the CoRoutine parser to doTerminate and clear the reference. If\n   * the CoRoutine parser has already been cleared, this will have no effect.\n   *\n   * @param callDoTerminate true of doTerminate should be called on the\n   * coRoutine parser.\n   */\n  public void clearCoRoutine(boolean callDoTerminate)\n  {\n\n    if (null != m_incrementalSAXSource)\n    {\n      if (callDoTerminate)\n        m_incrementalSAXSource.deliverMoreNodes(false);\n\n      m_incrementalSAXSource = null;\n    }\n  }\n\n  /**\n   * Bind a IncrementalSAXSource to this DTM. If we discover we need nodes\n   * that have not yet been built, we will ask this object to send us more\n   * events, and it will manage interactions with its data sources.\n   *\n   * Note that we do not actually build the IncrementalSAXSource, since we don't\n   * know what source it's reading from, what thread that source will run in,\n   * or when it will run.\n   *\n   * @param incrementalSAXSource The parser that we want to recieve events from\n   * on demand.\n   * @param appCoRID The CoRoutine ID for the application.\n   */\n  public void setIncrementalSAXSource(IncrementalSAXSource incrementalSAXSource)\n  {\n\n    m_incrementalSAXSource = incrementalSAXSource;\n\n    incrementalSAXSource.setContentHandler(this);\n    incrementalSAXSource.setLexicalHandler(this);\n    incrementalSAXSource.setDTDHandler(this);\n\n  }\n\n  /**\n   * getContentHandler returns \"our SAX builder\" -- the thing that\n   * someone else should send SAX events to in order to extend this\n   * DTM model.\n   *\n   * %REVIEW% Should this return null if constrution already done/begun?\n   *\n   * @return null if this model doesn't respond to SAX events,\n   * \"this\" if the DTM object has a built-in SAX ContentHandler,\n   * the IncrementalSAXSource if we're bound to one and should receive\n   * the SAX stream via it for incremental build purposes...\n   */\n  public ContentHandler getContentHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (ContentHandler) m_incrementalSAXSource;\n    else\n      return this;\n  }\n\n  /**\n   * Return this DTM's lexical handler.\n   *\n   * %REVIEW% Should this return null if constrution already done/begun?\n   *\n   * @return null if this model doesn't respond to lexical SAX events,\n   * \"this\" if the DTM object has a built-in SAX ContentHandler,\n   * the IncrementalSAXSource if we're bound to one and should receive\n   * the SAX stream via it for incremental build purposes...\n   */\n  public LexicalHandler getLexicalHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (LexicalHandler) m_incrementalSAXSource;\n    else\n      return this;\n  }\n\n  /**\n   * Return this DTM's EntityResolver.\n   *\n   * @return null if this model doesn't respond to SAX entity ref events.\n   */\n  public EntityResolver getEntityResolver()\n  {\n    return this;\n  }\n\n  /**\n   * Return this DTM's DTDHandler.\n   *\n   * @return null if this model doesn't respond to SAX dtd events.\n   */\n  public DTDHandler getDTDHandler()\n  {\n    return this;\n  }\n\n  /**\n   * Return this DTM's ErrorHandler.\n   *\n   * @return null if this model doesn't respond to SAX error events.\n   */\n  public ErrorHandler getErrorHandler()\n  {\n    return this;\n  }\n\n  /**\n   * Return this DTM's DeclHandler.\n   *\n   * @return null if this model doesn't respond to SAX Decl events.\n   */\n  public DeclHandler getDeclHandler()\n  {\n    return this;\n  }\n\n  /**\n   * @return true iff we're building this model incrementally (eg\n   * we're partnered with a IncrementalSAXSource) and thus require that the\n   * transformation and the parse run simultaneously. Guidance to the\n   * DTMManager.\n   */\n  public boolean needsTwoThreads()\n  {\n    return null != m_incrementalSAXSource;\n  }\n\n  /**\n   * Directly call the\n   * characters method on the passed ContentHandler for the\n   * for the definition of a node's string-value). Multiple calls to the\n   * ContentHandler's characters methods may well occur for a single call to\n   * this method.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   * @param normalize true if the content should be normalized according to \n   * the rules for the XPath\n   * function.\n   *\n   * @throws SAXException\n   */\n  public void dispatchCharactersEvents(int nodeHandle, ContentHandler ch, \n                                       boolean normalize)\n          throws SAXException\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = m_dataOrQName.elementAt(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n      \n      if(normalize)\n        m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n      else\n        m_chars.sendSAXcharacters(ch, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int level = _level(identity);\n\n        identity = firstChild;\n\n        while (DTM.NULL != identity && (_level(identity) > level))\n        {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        }\n\n        if (length > 0)\n        {\n          if(normalize)\n            m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n          else\n            m_chars.sendSAXcharacters(ch, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n\n        String str = m_valuesOrPrefixes.indexToString(dataIndex);\n\n          if(normalize)\n            FastStringBuffer.sendNormalizedSAXcharacters(str.toCharArray(), \n                                                         0, str.length(), ch);\n          else\n            ch.characters(str.toCharArray(), 0, str.length());\n      }\n    }\n  }\n\n\n  /**\n   * Given a node handle, return its DOM-style node name. This will\n   * include names such as #text or #document.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   * %REVIEW% Document when empty string is possible...\n   * %REVIEW-COMMENT% It should never be empty, should it?\n   */\n  public String getNodeName(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);\n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                     \n\n    if (0 == namespaceID)\n    {\n      int type = getNodeType(nodeHandle);\n\n      if (type == DTM.NAMESPACE_NODE)\n      {\n        if (null == m_expandedNameTable.getLocalName(expandedTypeID))\n          return \"xmlns\";\n        else\n          return \"xmlns:\" + m_expandedNameTable.getLocalName(expandedTypeID);\n      }\n      else if (0 == m_expandedNameTable.getLocalNameID(expandedTypeID))\n      {\n        return m_fixednames[type];\n      }\n      else\n        return m_expandedNameTable.getLocalName(expandedTypeID);\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);\n    }\n  }\n\n  /**\n   * Given a node handle, return the XPath node name.  This should be\n   * the name as described by the XPath data model, NOT the DOM-style\n   * name.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   */\n  public String getNodeNameX(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);    \n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                      \n\n    if (0 == namespaceID)\n    {\n      String name = m_expandedNameTable.getLocalName(expandedTypeID);\n\n      if (name == null)\n        return \"\";\n      else\n        return name;\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);\n    }\n  }\n\n  /**\n   *     5. [specified] A flag indicating whether this attribute was actually\n   *        specified in the start-tag of its element, or was defaulted from the\n   *        DTD.\n   *\n   * @param the attribute handle\n   *\n   * @param attributeHandle Must be a valid handle to an attribute node.\n   * @return <code>true</code> if the attribute was specified;\n   *         <code>false</code> if it was defaulted.\n   */\n  public boolean isAttributeSpecified(int attributeHandle)\n  {\n\n  }\n\n  /**\n   *   A document type declaration information item has the following properties:\n   *\n   *     1. [system identifier] The system identifier of the external subset, if\n   *        it exists. Otherwise this property has no value.\n   *\n   * @return the system identifier String object, or null if there is none.\n   */\n  public String getDocumentTypeDeclarationSystemIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;\n  }\n\n  /**\n   * Get the next node identity value in the list, and call the iterator\n   * if it hasn't been added yet.\n   *\n   * @param identity The node identity (index).\n   * @return identity+1, or DTM.NULL.\n   */\n  protected int getNextNodeIdentity(int identity)\n  {\n\n    identity += 1;\n\n    while (identity >= m_size)\n    {\n      if (null == m_incrementalSAXSource)\n        return DTM.NULL;\n\n      nextNode();\n    }\n\n    return identity;\n  }\n\n  /**\n   * Directly create SAX parser events from a subtree.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n\n    DTMTreeWalker treeWalker = m_walker;\n    ContentHandler prevCH = treeWalker.getcontentHandler();\n\n    if (null != prevCH)\n    {\n      treeWalker = new DTMTreeWalker();\n    }\n\n    treeWalker.setcontentHandler(ch);\n    treeWalker.setDTM(this);\n\n    try\n    {\n      treeWalker.traverse(nodeHandle);\n    }\n    finally\n    {\n      treeWalker.setcontentHandler(null);\n    }\n  }\n\n  /**\n   * Get the number of nodes that have been added.\n   *\n   * @return The number of that are currently in the tree.\n   */\n  protected int getNumberOfNodes()\n  {\n    return m_size;\n  }\n\n  /**\n   * This method should try and build one or more nodes in the table.\n   *\n   * @return The true if a next node is found or false if\n   *         there are no more nodes.\n   */\n  protected boolean nextNode()\n  {\n\n    if (null == m_incrementalSAXSource)\n      return false;\n\n    if (m_endDocumentOccured)\n    {\n      clearCoRoutine();\n\n      return false;\n    }\n\n    Object gotMore = m_incrementalSAXSource.deliverMoreNodes(true);\n\n    if (!(gotMore instanceof Boolean))\n    {\n      if(gotMore instanceof RuntimeException)\n      {\n        throw (RuntimeException)gotMore;\n      }\n      else if(gotMore instanceof Exception)\n      {\n        throw new WrappedRuntimeException((Exception)gotMore);\n      }\n      clearCoRoutine();\n\n      return false;\n\n    }\n\n    if (gotMore != Boolean.TRUE)\n    {\n\n\n    }\n\n    return true;\n  }\n\n  /**\n   * Bottleneck determination of text type.\n   *\n   * @param type oneof DTM.XXX_NODE.\n   *\n   * @return true if this is a text or cdata section.\n   */\n  private final boolean isTextType(int type)\n  {\n    return (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type);\n  }\n\n\n  /**\n   * Construct the node map from the node.\n   *\n   * @param type raw type ID, one of DTM.XXX_NODE.\n   * @param expandedTypeID The expended type ID.\n   * @param parentIndex The current parent index.\n   * @param previousSibling The previous sibling index.\n   * @param dataOrPrefix index into m_data table, or string handle.\n   * @param canHaveFirstChild true if the node can have a first child, false\n   *                          if it is atomic.\n   *\n   * @return The index identity of the node that was added.\n   */\n  protected int addNode(int type, int expandedTypeID,\n                        int parentIndex, int previousSibling,\n                        int dataOrPrefix, boolean canHaveFirstChild)\n  {\n    int nodeIndex = m_size++;\n\n    if(m_dtmIdent.size() == (nodeIndex>>>DTMManager.IDENT_DTM_NODE_BITS))\n    {\n      try\n      {\n        if(m_mgr==null)\n          throw new ClassCastException();\n                                \n        DTMManagerDefault mgrD=(DTMManagerDefault)m_mgr;\n        int id=mgrD.getFirstFreeDTMID();\n        mgrD.addDTM(this,id,nodeIndex);\n        m_dtmIdent.addElement(id<<DTMManager.IDENT_DTM_NODE_BITS);\n      }\n      catch(ClassCastException e)\n      {\n      }\n    }\n\n    m_firstch.addElement(canHaveFirstChild ? NOTPROCESSED : DTM.NULL);\n    m_nextsib.addElement(NOTPROCESSED);\n    m_prevsib.addElement(previousSibling);\n    m_parent.addElement(parentIndex);\n    m_exptype.addElement(expandedTypeID);\n    m_dataOrQName.addElement(dataOrPrefix);    \n\n\tif (m_useSourceLocationProperty && m_locator != null) \n\t{\n\t\tm_sourceSystemId.addElement(m_locator.getSystemId());\n\t\tm_sourceLine.addElement(m_locator.getLineNumber());\n\t\tm_sourceColumn.addElement(m_locator.getColumnNumber());\n\n\t\tif (m_sourceSystemId.size() != m_size) \n\t\t{\n\t\t\tSystem.err.println(\"CODING ERROR in Source Location: \" + m_size\n\t\t\t\t+ \" != \"\n\t\t\t\t+ m_sourceSystemId.size());\n\t\t\tSystem.exit(1);\n\t\t}\n\t}\n\n\n    if (DTM.NULL != previousSibling)\n      m_nextsib.setElementAt(nodeIndex,previousSibling);\n\n\n    switch(type)\n    {\n    case DTM.NAMESPACE_NODE:\n      declareNamespaceInContext(parentIndex,nodeIndex);\n      break;\n    case DTM.ATTRIBUTE_NODE:\n      break;\n    default:\n      if (DTM.NULL != parentIndex &&\n\t  NOTPROCESSED == m_firstch.elementAt(parentIndex))\n        m_firstch.setElementAt(nodeIndex,parentIndex);\n      break;\n    }\n\n    return nodeIndex;\n  }\n\n  /**\n   * Given a node handle, return its node value. This is mostly\n   * as defined by the DOM, but may ignore some conveniences.\n   * <p>\n   *\n   * @param nodeHandle The node id.\n   * @return String Value of this node, or null if not\n   * meaningful for this node type.\n   */\n  public String getNodeValue(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_chars.getString(offset, length);\n    }\n    else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type\n             || DTM.DOCUMENT_NODE == type)\n    {\n      return null;\n    }\n    else\n    {\n      int dataIndex = _dataOrQName(identity);\n\n      if (dataIndex < 0)\n      {\n        dataIndex = -dataIndex;\n        dataIndex = m_data.elementAt(dataIndex + 1);\n      }\n\n      return m_valuesOrPrefixes.indexToString(dataIndex);\n    }\n  }\n\n  /**\n   * Given a node handle, return its XPath-style localname.\n   * (As defined in Namespaces, this is the portion of the name after any\n   * colon character).\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Local name of this node.\n   */\n  public String getLocalName(int nodeHandle)\n  {\n    return m_expandedNameTable.getLocalName(_exptype(makeNodeIdentity(nodeHandle)));\n  }\n\n  /**\n   * The getUnparsedEntityURI function returns the URI of the unparsed\n   * entity with the specified name in the same document as the context\n   * node (see [3.3 Unparsed Entities]). It returns the empty string if\n   * there is no such entity.\n   * <p>\n   * XML processors may choose to use the System Identifier (if one\n   * is provided) to resolve the entity, rather than the URI in the\n   * Public Identifier. The details are dependent on the processor, and\n   * we would have to support some form of plug-in resolver to handle\n   * this properly. Currently, we simply return the System Identifier if\n   * present, and hope that it a usable URI or that our caller can\n   * map it to one.\n   * TODO: Resolve Public Identifiers... or consider changing function name.\n   * <p>\n   * If we find a relative URI\n   * reference, XML expects it to be resolved in terms of the base URI\n   * of the document. The DOM doesn't do that for us, and it isn't\n   * entirely clear whether that should be done here; currently that's\n   * pushed up to a higher level of our application. (Note that DOM Level\n   * 1 didn't store the document's base URI.)\n   * TODO: Consider resolving Relative URIs.\n   * <p>\n   * (The DOM's statement that \"An XML processor may choose to\n   * completely expand entities before the structure model is passed\n   * to the DOM\" refers only to parsed entities, not unparsed, and hence\n   * doesn't affect this function.)\n   *\n   * @param name A string containing the Entity Name of the unparsed\n   * entity.\n   *\n   * @return String containing the URI of the Unparsed Entity, or an\n   * empty string if no such entity exists.\n   */\n  public String getUnparsedEntityURI(String name)\n  {\n\n    String url = \"\";\n\n    if (null == m_entities)\n      return url;\n\n    int n = m_entities.size();\n\n    for (int i = 0; i < n; i += ENTITY_FIELDS_PER)\n    {\n      String ename = (String) m_entities.elementAt(i + ENTITY_FIELD_NAME);\n\n      if (null != ename && ename.equals(name))\n      {\n        String nname = (String) m_entities.elementAt(i\n                         + ENTITY_FIELD_NOTATIONNAME);\n\n        if (null != nname)\n        {\n\n          url = (String) m_entities.elementAt(i + ENTITY_FIELD_SYSTEMID);\n\n          if (null == url)\n          {\n            url = (String) m_entities.elementAt(i + ENTITY_FIELD_PUBLICID);\n          }\n        }\n\n        break;\n      }\n    }\n\n    return url;\n  }\n\n  /**\n   * Given a namespace handle, return the prefix that the namespace decl is\n   * mapping.\n   * Given a node handle, return the prefix used to map to the namespace.\n   *\n   * <p> %REVIEW% Are you sure you want \"\" for no prefix?  </p>\n   * <p> %REVIEW-COMMENT% I think so... not totally sure. -sb  </p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String prefix of this node's name, or \"\" if no explicit\n   * namespace prefix was given.\n   */\n  public String getPrefix(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (0 == prefixIndex)\n        return \"\";\n      else\n      {\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n    else if (DTM.ATTRIBUTE_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (prefixIndex < 0)\n      {\n        prefixIndex = m_data.elementAt(-prefixIndex);\n\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n\n    return \"\";\n  }\n\n  /**\n   * Retrieves an attribute node by by qualified name and namespace URI.\n   *\n   * @param nodeHandle int Handle of the node upon which to look up this attribute..\n   * @param namespaceURI The namespace URI of the attribute to\n   *   retrieve, or null.\n   * @param name The local name of the attribute to\n   *   retrieve.\n   * @return The attribute node handle with the specified name (\n   *   <code>nodeName</code>) or <code>DTM.NULL</code> if there is no such\n   *   attribute.\n   */\n  public int getAttributeNode(int nodeHandle, String namespaceURI,\n                              String name)\n  {\n\n    for (int attrH = getFirstAttribute(nodeHandle); DTM.NULL != attrH;\n            attrH = getNextAttribute(attrH))\n    {\n      String attrNS = getNamespaceURI(attrH);\n      String attrName = getLocalName(attrH);\n      boolean nsMatch = namespaceURI == attrNS\n                        || (namespaceURI != null\n                            && namespaceURI.equals(attrNS));\n\n      if (nsMatch && name.equals(attrName))\n        return attrH;\n    }\n\n    return DTM.NULL;\n  }\n\n  /**\n   * Return the public identifier of the external subset,\n   * normalized as described in 4.2.2 External Entities [XML]. If there is\n   * no external subset or if it has no public identifier, this property\n   * has no value.\n   *\n   * @param the document type declaration handle\n   *\n   * @return the public identifier String object, or null if there is none.\n   */\n  public String getDocumentTypeDeclarationPublicIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;\n  }\n\n  /**\n   * Given a node handle, return its DOM-style namespace URI\n   * (As defined in Namespaces, this is the declared URI which this node's\n   * prefix -- or default in lieu thereof -- was mapped to.)\n   *\n   * <p>%REVIEW% Null or \"\"? -sb</p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String URI value of this node's namespace, or null if no\n   * namespace was resolved.\n   */\n  public String getNamespaceURI(int nodeHandle)\n  {\n\n    return m_expandedNameTable.getNamespace(_exptype(makeNodeIdentity(nodeHandle)));\n  }\n\n  /**\n   * Get the string-value of a node as a String object\n   * for the definition of a node's string-value).\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return A string object that represents the string-value of the given node.\n   */\n  public XMLString getStringValue(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    int type;\n      type = DTM.NULL;\n    \n      type= _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_xstrf.newstr(m_chars, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int level = _level(identity);\n\n        identity = firstChild;\n\n        while (DTM.NULL != identity && (_level(identity) > level))\n        {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        }\n\n        if (length > 0)\n        {\n          return m_xstrf.newstr(m_chars, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n        return m_xstrf.newstr(m_valuesOrPrefixes.indexToString(dataIndex));\n      }\n    }\n\n    return m_xstrf.emptystr();\n  }\n\n  /**\n   * Returns the <code>Element</code> whose <code>ID</code> is given by\n   * <code>elementId</code>. If no such element exists, returns\n   * <code>DTM.NULL</code>. Behavior is not defined if more than one element\n   * has this <code>ID</code>. Attributes (including those\n   * with the name \"ID\") are not of type ID unless so defined by DTD/Schema\n   * information available to the DTM implementation.\n   * Implementations that do not know whether attributes are of type ID or\n   * not are expected to return <code>DTM.NULL</code>.\n   *\n   * <p>%REVIEW% Presumably IDs are still scoped to a single document,\n   * and this operation searches only within a single document, right?\n   * Wouldn't want collisions between DTMs in the same process.</p>\n   *\n   * @param elementId The unique <code>id</code> value for an element.\n   * @return The handle of the matching element.\n   */\n  public int getElementById(String elementId)\n  {\n\n    Integer intObj;\n    boolean isMore = true;\n\n    do\n    {\n      intObj = (Integer) m_idAttributes.get(elementId);\n\n      if (null != intObj)\n        return makeNodeHandle(intObj.intValue());\n\n      if (!isMore || m_endDocumentOccured)\n        break;\n\n      isMore = nextNode();\n    }\n    while (null == intObj);\n\n    return DTM.NULL;\n  }\n\n  /**\n   * Get a prefix either from the qname or from the uri mapping, or just make\n   * one up!\n   *\n   * @param qname The qualified name, which may be null.\n   * @param uri The namespace URI, which may be null.\n   *\n   * @return The prefix if there is one, or null.\n   */\n  private String getPrefix(String qname, String uri)\n  {\n\n    String prefix;\n    int uriIndex = -1;\n\n    if (null != uri && uri.length() > 0)\n    {\n\n      do\n      {\n        uriIndex = m_prefixMappings.indexOf(uri, ++uriIndex);\n      } while ( (uriIndex & 0x01) == 0);\n\n      if (uriIndex >= 0)\n      {\n        prefix = (String) m_prefixMappings.elementAt(uriIndex - 1);\n      }\n      else if (null != qname)\n      {\n        int indexOfNSSep = qname.indexOf(':');\n\n        if (qname.equals(\"xmlns\"))\n          prefix = \"\";\n        else if (qname.startsWith(\"xmlns:\"))\n          prefix = qname.substring(indexOfNSSep + 1);\n        else\n          prefix = (indexOfNSSep > 0)\n                   ? qname.substring(0, indexOfNSSep) : null;\n      }\n      else\n      {\n      }\n    }\n    else if (null != qname)\n    {\n      int indexOfNSSep = qname.indexOf(':');\n\n      if (qname.equals(\"xmlns\"))\n        prefix = \"\";\n      else if (qname.startsWith(\"xmlns:\"))\n        prefix = qname.substring(indexOfNSSep + 1);\n      else\n        prefix = (indexOfNSSep > 0) ? qname.substring(0, indexOfNSSep) : null;\n    }\n    else\n    {\n      prefix = null;\n    }\n\n    return prefix;\n  }\n\n  /**\n   * Set an ID string to node association in the ID table.\n   *\n   * @param id The ID string.\n   * @param elem The associated element handle.\n   */\n  public void setIDAttribute(String id, int elem)\n  {\n    m_idAttributes.put(id, new Integer(elem));\n  }\n\n  /**\n   * Check whether accumulated text should be stripped; if not,\n   * append the appropriate flavor of text/cdata node.\n   */\n  protected void charactersFlush()\n  {\n\n    {\n      int length = m_chars.size() - m_textPendingStart;\n      boolean doStrip = false;\n\n      if (getShouldStripWhitespace())\n      {\n        doStrip = m_chars.isWhitespace(m_textPendingStart, length);\n      }\n\n      if (doStrip){}\n      else\n      {\n        int exName = m_expandedNameTable.getExpandedTypeID(DTM.TEXT_NODE);\n        int dataIndex = m_data.size();\n\n        m_previous = addNode(m_coalescedTextType, exName,\n                             m_parents.peek(), m_previous, dataIndex, false);\n\n        m_data.addElement(m_textPendingStart);\n        m_data.addElement(length);\n      }\n\n      m_textPendingStart = -1;\n      m_textType = m_coalescedTextType = DTM.TEXT_NODE;\n    }\n  }\n\n\n  /**\n   * Resolve an external entity.\n   *\n   * <p>Always return null, so that the parser will use the system\n   * identifier provided in the XML document.  This method implements\n   * the SAX default behaviour: application writers can override it\n   * in a subclass to do special translations such as catalog lookups\n   * or URI redirection.</p>\n   *\n   * @param publicId The public identifer, or null if none is\n   *                 available.\n   * @param systemId The system identifier provided in the XML\n   *                 document.\n   * @return The new input source, or null to require the\n   *         default behaviour.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.EntityResolver#resolveEntity\n   *\n   * @throws SAXException\n   */\n  public InputSource resolveEntity(String publicId, String systemId)\n          throws SAXException\n  {\n    return null;\n  }\n\n\n  /**\n   * Receive notification of a notation declaration.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass if they wish to keep track of the notations\n   * declared in a document.</p>\n   *\n   * @param name The notation name.\n   * @param publicId The notation public identifier, or null if not\n   *                 available.\n   * @param systemId The notation system identifier.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.DTDHandler#notationDecl\n   *\n   * @throws SAXException\n   */\n  public void notationDecl(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of an unparsed entity declaration.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to keep track of the unparsed entities\n   * declared in a document.</p>\n   *\n   * @param name The entity name.\n   * @param publicId The entity public identifier, or null if not\n   *                 available.\n   * @param systemId The entity system identifier.\n   * @param notationName The name of the associated notation.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   *\n   * @throws SAXException\n   */\n  public void unparsedEntityDecl(\n          String name, String publicId, String systemId, String notationName)\n            throws SAXException\n  {\n\n    if (null == m_entities)\n    {\n      m_entities = new Vector();\n    }\n\n    try\n    {\n      systemId = SystemIDResolver.getAbsoluteURI(systemId,\n                                                 getDocumentBaseURI());\n    }\n    catch (Exception e)\n    {\n      throw new org.xml.sax.SAXException(e);\n    }\n\n    m_entities.addElement(publicId);\n\n    m_entities.addElement(systemId);\n\n    m_entities.addElement(notationName);\n\n    m_entities.addElement(name);\n  }\n\n\n  /**\n   * Receive a Locator object for document events.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass if they wish to store the locator for use\n   * with other document events.</p>\n   *\n   * @param locator A locator for all SAX document events.\n   * @see org.xml.sax.ContentHandler#setDocumentLocator\n   * @see org.xml.sax.Locator\n   */\n  public void setDocumentLocator(Locator locator)\n  {\n    m_locator = locator;\n  }\n\n  /**\n   * Receive notification of the beginning of the document.\n   *\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startDocument\n   */\n  public void startDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"startDocument\");\n\n\t\t\n    int doc = addNode(DTM.DOCUMENT_NODE,\n                      m_expandedNameTable.getExpandedTypeID(DTM.DOCUMENT_NODE),\n                      DTM.NULL, DTM.NULL, 0, true);\n\t\t\n    m_parents.push(doc);\n    m_previous = DTM.NULL;\n\t\t\t\t\n  }\n\n  /**\n   * Receive notification of the end of the document.\n   *\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endDocument\n   */\n  public void endDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endDocument\");\n\n\t\tcharactersFlush();\n\n    m_nextsib.setElementAt(NULL,0);\n\n    if (m_firstch.elementAt(0) == NOTPROCESSED)\n      m_firstch.setElementAt(NULL,0);\n\n    if (DTM.NULL != m_previous)\n      m_nextsib.setElementAt(DTM.NULL,m_previous);\n\n    m_parents = null;\n    m_prefixMappings = null;\n    m_contextIndexes = null;\n\n    m_endDocumentOccured = true;\n  }\n\n  /**\n   * Receive notification of the start of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each Namespace prefix scope (such as storing the prefix mapping).</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @param uri The Namespace URI mapped to the prefix.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startPrefixMapping\n   */\n  public void startPrefixMapping(String prefix, String uri)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"startPrefixMapping: prefix: \" + prefix + \", uri: \"\n                         + uri);\n\n    if(null == prefix)\n      prefix = \"\";\n  }\n\n  /**\n   * Receive notification of the end of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the end of\n   * each prefix mapping.</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endPrefixMapping\n   */\n  public void endPrefixMapping(String prefix) throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endPrefixMapping: prefix: \" + prefix);\n\n    if(null == prefix)\n      prefix = \"\";\n\n    int index = m_contextIndexes.peek() - 1;\n\n    do\n    {\n      index = m_prefixMappings.indexOf(prefix, ++index);\n    } while ( (index >= 0) && ((index & 0x01) == 0x01) );\n\n\n    if (index > -1)\n    {\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index);\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index + 1);\n    }\n\n  }\n\n  /**\n   * Check if a declaration has already been made for a given prefix.\n   *\n   * @param prefix non-null prefix string.\n   *\n   * @return true if the declaration has already been declared in the\n   *         current context.\n   */\n  protected boolean declAlreadyDeclared(String prefix)\n  {\n\n    int startDecls = m_contextIndexes.peek();\n    java.util.Vector prefixMappings = m_prefixMappings;\n    int nDecls = prefixMappings.size();\n\n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      String prefixDecl = (String) prefixMappings.elementAt(i);\n\n      if (prefixDecl == null)\n        continue;\n\n      if (prefixDecl.equals(prefix))\n        return true;\n    }\n\n    return false;\n  }\n\t\n\tboolean m_pastFirstElement=false;\n\n  /**\n   * Receive notification of the start of an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each element (such as allocating a new tree node or writing\n   * output to a file).</p>\n   *\n   * @param name The element type name.\n   *\n   * @param uri The Namespace URI, or the empty string if the\n   *        element has no Namespace URI or if Namespace\n   *        processing is not being performed.\n   * @param localName The local name (without prefix), or the\n   *        empty string if Namespace processing is not being\n   *        performed.\n   * @param qName The qualified name (with prefix), or the\n   *        empty string if qualified names are not available.\n   * @param attributes The specified or defaulted attributes.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startElement\n   */\n  public void startElement(\n          String uri, String localName, String qName, Attributes attributes)\n            throws SAXException\n  {\n   if (DEBUG)\n\t {\n      System.out.println(\"startElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName+\", atts: \" + attributes);\n\n\t\t\tboolean DEBUG_ATTRS=true;\n\t\t\tif(DEBUG_ATTRS & attributes!=null)\n\t\t\t{\n\t\t\t\tint n = attributes.getLength();\n\t\t\t\tif(n==0)\n\t\t\t\t\tSystem.out.println(\"\\tempty attribute list\");\n\t\t\t\telse for (int i = 0; i < n; i++)\n\t\t\t\t\tSystem.out.println(\"\\t attr: uri: \" + attributes.getURI(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", localname: \" + attributes.getLocalName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", qname: \" + attributes.getQName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", type: \" + attributes.getType(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", value: \" + attributes.getValue(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t}\n\t }\n\t\t\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(uri, localName, DTM.ELEMENT_NODE);\n    String prefix = getPrefix(qName, uri);\n    int prefixIndex = (null != prefix)\n                      ? m_valuesOrPrefixes.stringToIndex(qName) : 0;\n    int elemNode = addNode(DTM.ELEMENT_NODE, exName,\n                           m_parents.peek(), m_previous, prefixIndex, true);\n\n    if(m_indexing)\n      indexNode(exName, elemNode);\n    \n    m_parents.push(elemNode);\n\n    int startDecls = m_contextIndexes.peek();\n    int nDecls = m_prefixMappings.size();\n    int prev = DTM.NULL;\n\n    if(!m_pastFirstElement)\n    {\n      prefix=\"xml\";\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n      m_pastFirstElement=true;\n    }\n                        \n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      prefix = (String) m_prefixMappings.elementAt(i);\n\n      if (prefix == null)\n        continue;\n\n      String declURL = (String) m_prefixMappings.elementAt(i + 1);\n\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n    }\n\n    int n = attributes.getLength();\n\n    for (int i = 0; i < n; i++)\n    {\n      String attrUri = attributes.getURI(i);\n      String attrQName = attributes.getQName(i);\n      String valString = attributes.getValue(i);\n\n      prefix = getPrefix(attrQName, attrUri);\n\n      int nodeType;\n\n      if ((null != attrQName)\n              && (attrQName.equals(\"xmlns\")\n                  || attrQName.startsWith(\"xmlns:\")))\n      {\n        if (declAlreadyDeclared(prefix))\n\n        nodeType = DTM.NAMESPACE_NODE;\n      }\n      else\n      {\n        nodeType = DTM.ATTRIBUTE_NODE;\n\n        if (attributes.getType(i).equalsIgnoreCase(\"ID\"))\n          setIDAttribute(valString, elemNode);\n      }\n      \n      if(null == valString)\n        valString = \"\";\n\n      int val = m_valuesOrPrefixes.stringToIndex(valString);\n      String attrLocalName = attributes.getLocalName(i);\n\n      if (null != prefix)\n      {\n        \n        prefixIndex = m_valuesOrPrefixes.stringToIndex(attrQName);\n\n        int dataIndex = m_data.size();\n\n        m_data.addElement(prefixIndex);\n        m_data.addElement(val);\n\n        val = -dataIndex;\n      }\n\n      exName = m_expandedNameTable.getExpandedTypeID(attrUri, attrLocalName, nodeType);\n      prev = addNode(nodeType, exName, elemNode, prev, val,\n                     false);\n    }\n\n    if (DTM.NULL != prev)\n      m_nextsib.setElementAt(DTM.NULL,prev);\n\n    if (null != m_wsfilter)\n    {\n      short wsv = m_wsfilter.getShouldStripSpace(makeNodeHandle(elemNode), this);\n      boolean shouldStrip = (DTMWSFilter.INHERIT == wsv)\n                            ? getShouldStripWhitespace()\n                            : (DTMWSFilter.STRIP == wsv);\n\n      pushShouldStripWhitespace(shouldStrip);\n    }\n\n    m_previous = DTM.NULL;\n\n  }\n\n  /**\n   * Receive notification of the end of an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the end of\n   * each element (such as finalising a tree node or writing\n   * output to a file).</p>\n   *\n   * @param name The element type name.\n   * @param attributes The specified or defaulted attributes.\n   *\n   * @param uri The Namespace URI, or the empty string if the\n   *        element has no Namespace URI or if Namespace\n   *        processing is not being performed.\n   * @param localName The local name (without prefix), or the\n   *        empty string if Namespace processing is not being\n   *        performed.\n   * @param qName The qualified XML 1.0 name (with prefix), or the\n   *        empty string if qualified names are not available.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endElement\n   */\n  public void endElement(String uri, String localName, String qName)\n          throws SAXException\n  {\n   if (DEBUG)\n      System.out.println(\"endElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName);\n\n    charactersFlush();\n\n    m_prefixMappings.setSize(m_contextIndexes.pop());\n\n    m_prefixMappings.setSize(m_contextIndexes.pop());\n\n    int lastNode = m_previous;\n\n    m_previous = m_parents.pop();\n\n    if (NOTPROCESSED == m_firstch.elementAt(m_previous))\n      m_firstch.setElementAt(DTM.NULL,m_previous);\n    else if (DTM.NULL != lastNode)\n      m_nextsib.setElementAt(DTM.NULL,lastNode);\n\n    popShouldStripWhitespace();\n  }\n\n  /**\n   * Receive notification of character data inside an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method to take specific actions for each chunk of character data\n   * (such as adding the data to a node or buffer, or printing it to\n   * a file).</p>\n   *\n   * @param ch The characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#characters\n   */\n  public void characters(char ch[], int start, int length) throws SAXException\n  {\n    {\n      m_textPendingStart = m_chars.size();\n      m_coalescedTextType = m_textType;\n    }\n\n    m_chars.append(ch, start, length);\n\n    if (m_textType == DTM.TEXT_NODE)\n      m_coalescedTextType = DTM.TEXT_NODE;\n  }\n\n  /**\n   * Receive notification of ignorable whitespace in element content.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method to take specific actions for each chunk of ignorable\n   * whitespace (such as adding data to a node or buffer, or printing\n   * it to a file).</p>\n   *\n   * @param ch The whitespace characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#ignorableWhitespace\n   */\n  public void ignorableWhitespace(char ch[], int start, int length)\n          throws SAXException\n  {\n    characters(ch, start, length);\n  }\n\n  /**\n   * Receive notification of a processing instruction.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param target The processing instruction target.\n   * @param data The processing instruction data, or null if\n   *             none is supplied.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   */\n  public void processingInstruction(String target, String data)\n          throws SAXException\n  {\n    if (DEBUG)\n\t\t System.out.println(\"processingInstruction: target: \" + target +\", data: \"+data);\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(null, target,\n                                         DTM.PROCESSING_INSTRUCTION_NODE);\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(data);\n\n    m_previous = addNode(DTM.PROCESSING_INSTRUCTION_NODE, exName,\n                         m_parents.peek(), m_previous,\n                         dataIndex, false);\n  }\n\n  /**\n   * Receive notification of a skipped entity.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param name The name of the skipped entity.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   */\n  public void skippedEntity(String name) throws SAXException\n  {\n\n  }\n\n\n  /**\n   * Receive notification of a parser warning.\n   *\n   * <p>The default implementation does nothing.  Application writers\n   * may override this method in a subclass to take specific actions\n   * for each warning, such as inserting the message in a log file or\n   * printing it to the console.</p>\n   *\n   * @param e The warning information encoded as an exception.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ErrorHandler#warning\n   * @see org.xml.sax.SAXParseException\n   */\n  public void warning(SAXParseException e) throws SAXException\n  {\n\n    System.err.println(e.getMessage());\n  }\n\n  /**\n   * Receive notification of a recoverable parser error.\n   *\n   * <p>The default implementation does nothing.  Application writers\n   * may override this method in a subclass to take specific actions\n   * for each error, such as inserting the message in a log file or\n   * printing it to the console.</p>\n   *\n   * @param e The warning information encoded as an exception.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ErrorHandler#warning\n   * @see org.xml.sax.SAXParseException\n   */\n  public void error(SAXParseException e) throws SAXException\n  {\n    throw e;\n  }\n\n  /**\n   * Report a fatal XML parsing error.\n   *\n   * <p>The default implementation throws a SAXParseException.\n   * Application writers may override this method in a subclass if\n   * they need to take specific actions for each fatal error (such as\n   * collecting all of the errors into a single report): in any case,\n   * the application must stop all regular processing when this\n   * method is invoked, since the document is no longer reliable, and\n   * the parser may no longer report parsing events.</p>\n   *\n   * @param e The error information encoded as an exception.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ErrorHandler#fatalError\n   * @see org.xml.sax.SAXParseException\n   */\n  public void fatalError(SAXParseException e) throws SAXException\n  {\n    throw e;\n  }\n\n\n  /**\n   * Report an element type declaration.\n   *\n   * <p>The content model will consist of the string \"EMPTY\", the\n   * string \"ANY\", or a parenthesised group, optionally followed\n   * by an occurrence indicator.  The model will be normalized so\n   * that all whitespace is removed,and will include the enclosing\n   * parentheses.</p>\n   *\n   * @param name The element type name.\n   * @param model The content model as a normalized string.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void elementDecl(String name, String model) throws SAXException\n  {\n\n  }\n\n  /**\n   * Report an attribute type declaration.\n   *\n   * <p>Only the effective (first) declaration for an attribute will\n   * be reported.  The type will be one of the strings \"CDATA\",\n   * \"ID\", \"IDREF\", \"IDREFS\", \"NMTOKEN\", \"NMTOKENS\", \"ENTITY\",\n   * \"ENTITIES\", or \"NOTATION\", or a parenthesized token group with\n   * the separator \"|\" and all whitespace removed.</p>\n   *\n   * @param eName The name of the associated element.\n   * @param aName The name of the attribute.\n   * @param type A string representing the attribute type.\n   * @param valueDefault A string representing the attribute default\n   *        (\"#IMPLIED\", \"#REQUIRED\", or \"#FIXED\") or null if\n   *        none of these applies.\n   * @param value A string representing the attribute's default value,\n   *        or null if there is none.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void attributeDecl(\n          String eName, String aName, String type, String valueDefault, String value)\n            throws SAXException\n  {\n\n  }\n\n  /**\n   * Report an internal entity declaration.\n   *\n   * <p>Only the effective (first) declaration for each entity\n   * will be reported.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @param value The replacement text of the entity.\n   * @throws SAXException The application may raise an exception.\n   * @see #externalEntityDecl\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void internalEntityDecl(String name, String value)\n          throws SAXException\n  {\n\n  }\n\n  /**\n   * Report a parsed external entity declaration.\n   *\n   * <p>Only the effective (first) declaration for each entity\n   * will be reported.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @param publicId The declared public identifier of the entity, or\n   *        null if none was declared.\n   * @param systemId The declared system identifier of the entity.\n   * @throws SAXException The application may raise an exception.\n   * @see #internalEntityDecl\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void externalEntityDecl(\n          String name, String publicId, String systemId) throws SAXException\n  {\n\n  }\n\n\n  /**\n   * Report the start of DTD declarations, if any.\n   *\n   * <p>Any declarations are assumed to be in the internal subset\n   * unless otherwise indicated by a {@link #startEntity startEntity}\n   * event.</p>\n   *\n   * <p>Note that the start/endDTD events will appear within\n   * the start/endDocument events from ContentHandler and\n   * before the first startElement event.</p>\n   *\n   * @param name The document type name.\n   * @param publicId The declared public identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @param systemId The declared system identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @throws SAXException The application may raise an\n   *            exception.\n   * @see #endDTD\n   * @see #startEntity\n   */\n  public void startDTD(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n    m_insideDTD = true;\n  }\n\n  /**\n   * Report the end of DTD declarations.\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #startDTD\n   */\n  public void endDTD() throws SAXException\n  {\n\n    m_insideDTD = false;\n  }\n\n  /**\n   * Report the beginning of an entity in content.\n   *\n   * <p><strong>NOTE:</entity> entity references in attribute\n   * values -- and the start and end of the document entity --\n   * are never reported.</p>\n   *\n   * <p>The start and end of the external DTD subset are reported\n   * using the pseudo-name \"[dtd]\".  All other events must be\n   * properly nested within start/end entity events.</p>\n   *\n   * <p>Note that skipped entities will be reported through the\n   * {@link org.xml.sax.ContentHandler#skippedEntity skippedEntity}\n   * event, which is part of the ContentHandler interface.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @throws SAXException The application may raise an exception.\n   * @see #endEntity\n   * @see org.xml.sax.ext.DeclHandler#internalEntityDecl\n   * @see org.xml.sax.ext.DeclHandler#externalEntityDecl\n   */\n  public void startEntity(String name) throws SAXException\n  {\n\n  }\n\n  /**\n   * Report the end of an entity.\n   *\n   * @param name The name of the entity that is ending.\n   * @throws SAXException The application may raise an exception.\n   * @see #startEntity\n   */\n  public void endEntity(String name) throws SAXException\n  {\n\n  }\n\n  /**\n   * Report the start of a CDATA section.\n   *\n   * <p>The contents of the CDATA section will be reported through\n   * the regular {@link org.xml.sax.ContentHandler#characters\n   * characters} event.</p>\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #endCDATA\n   */\n  public void startCDATA() throws SAXException\n  {\n    m_textType = DTM.CDATA_SECTION_NODE;\n  }\n\n  /**\n   * Report the end of a CDATA section.\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #startCDATA\n   */\n  public void endCDATA() throws SAXException\n  {\n    m_textType = DTM.TEXT_NODE;\n  }\n\n  /**\n   * Report an XML comment anywhere in the document.\n   *\n   * <p>This callback will be used for comments inside or outside the\n   * document element, including comments in the external DTD\n   * subset (if read).</p>\n   *\n   * @param ch An array holding the characters in the comment.\n   * @param start The starting position in the array.\n   * @param length The number of characters to use from the array.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void comment(char ch[], int start, int length) throws SAXException\n  {\n\n      return;\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(DTM.COMMENT_NODE);\n\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(new String(ch, start,\n                      length));\n\n    m_previous = addNode(DTM.COMMENT_NODE, exName, \n                         m_parents.peek(), m_previous, dataIndex, false);\n  }\n\n  /**\n   * Set a run time property for this DTM instance.\n   * \n   * %REVIEW% Now that we no longer use this method to support\n   * getSourceLocatorFor, can we remove it?\n   *\n   * @param property a <code>String</code> value\n   * @param value an <code>Object</code> value\n   */\n  public void setProperty(String property, Object value)\n  {\n  }\n\n  /** Retrieve the SourceLocator associated with a specific node.\n   * This is only meaningful if the XalanProperties.SOURCE_LOCATION flag was\n   * set True using setProperty; if it was never set, or was set false, we\n   * will return null. \n   * \n   * (We _could_ return a locator with the document's base URI and bogus \n   * line/column information. Trying that; see the else clause.)\n   * */\n  public SourceLocator getSourceLocatorFor(int node)\n  {\n    if (m_useSourceLocationProperty)\n    {\n      node = makeNodeIdentity(node);\n      \n      return new NodeLocator(null,\n                             m_sourceSystemId.elementAt(node),\n                             m_sourceLine.elementAt(node),\n                             m_sourceColumn.elementAt(node));\n    }\n    else if(m_locator!=null)\n    {\n    \treturn new NodeLocator(null,m_locator.getSystemId(),-1,-1);\n    }\n    return null;", "functions": [{"function_name": "_dataOrQName", "code": "  protected int _dataOrQName(int identity)\n  {\n\n    if (identity < m_size)\n      return m_dataOrQName.elementAt(identity);\n\n    while (true)\n    {\n      boolean isMore = nextNode();\n\n      if (!isMore)\n        return NULL;\n      else if (identity < m_size)\n        return m_dataOrQName.elementAt(identity);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [5, 9], [7, 10], [7, 11], [10, 12], [10, 13], [8, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 5], [10, 7], [11, 7], [12, 10], [13, 10], [14, 8], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "clearCoRoutine", "code": "  public void clearCoRoutine()\n  {\n    clearCoRoutine(true);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clearCoRoutine", "code": "  public void clearCoRoutine(boolean callDoTerminate)\n  {\n\n    if (null != m_incrementalSAXSource)\n    {\n      if (callDoTerminate)\n        m_incrementalSAXSource.deliverMoreNodes(false);\n\n      m_incrementalSAXSource = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [6, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 6], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setIncrementalSAXSource", "code": "  public void setIncrementalSAXSource(IncrementalSAXSource incrementalSAXSource)\n  {\n\n    m_incrementalSAXSource = incrementalSAXSource;\n\n    incrementalSAXSource.setContentHandler(this);\n    incrementalSAXSource.setLexicalHandler(this);\n    incrementalSAXSource.setDTDHandler(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getContentHandler", "code": "  public ContentHandler getContentHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (ContentHandler) m_incrementalSAXSource;\n    else\n      return this;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 0], [2, 1], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLexicalHandler", "code": "  public LexicalHandler getLexicalHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (LexicalHandler) m_incrementalSAXSource;\n    else\n      return this;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 0], [2, 1], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getEntityResolver", "code": "  public EntityResolver getEntityResolver()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDTDHandler", "code": "  public DTDHandler getDTDHandler()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getErrorHandler", "code": "  public ErrorHandler getErrorHandler()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDeclHandler", "code": "  public DeclHandler getDeclHandler()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "needsTwoThreads", "code": "  public boolean needsTwoThreads()\n  {\n    return null != m_incrementalSAXSource;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispatchCharactersEvents", "code": "  public void dispatchCharactersEvents(int nodeHandle, ContentHandler ch, \n                                       boolean normalize)\n          throws SAXException\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = m_dataOrQName.elementAt(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n      \n      if(normalize)\n        m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n      else\n        m_chars.sendSAXcharacters(ch, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int level = _level(identity);\n\n        identity = firstChild;\n\n        while (DTM.NULL != identity && (_level(identity) > level))\n        {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        }\n\n        if (length > 0)\n        {\n          if(normalize)\n            m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n          else\n            m_chars.sendSAXcharacters(ch, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n\n        String str = m_valuesOrPrefixes.indexToString(dataIndex);\n\n          if(normalize)\n            FastStringBuffer.sendNormalizedSAXcharacters(str.toCharArray(), \n                                                         0, str.length(), ch);\n          else\n            ch.characters(str.toCharArray(), 0, str.length());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [2, 14], [3, 15], [8, 16], [8, 17], [16, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [9, 24], [10, 25], [10, 26], [11, 27], [12, 28], [13, 29], [16, 30], [16, 31], [16, 32], [16, 33], [19, 34], [20, 35], [8, 36], [27, 37], [32, 38], [19, 39], [34, 40], [20, 41], [35, 42], [35, 43], [21, 44], [22, 45], [23, 46], [37, 47], [30, 48], [30, 49], [31, 50], [38, 51], [33, 52], [20, 53], [41, 54], [20, 55], [42, 56], [48, 57], [48, 58], [48, 59], [49, 60], [49, 61], [49, 62], [32, 63], [32, 64], [39, 65], [39, 66], [53, 67], [41, 68], [41, 69], [55, 70], [63, 71], [41, 72], [68, 73], [71, 74], [72, 75], [73, 76], [69, 77], [74, 78], [75, 79], [68, 80], [79, 81], [80, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 1], [9, 1], [10, 1], [11, 1], [12, 1], [13, 1], [14, 2], [15, 3], [16, 8], [17, 8], [18, 16], [19, 8], [20, 8], [21, 8], [22, 8], [23, 8], [24, 9], [25, 10], [26, 10], [27, 11], [28, 12], [29, 13], [30, 16], [31, 16], [32, 16], [33, 16], [34, 19], [35, 20], [36, 8], [37, 27], [38, 32], [39, 19], [40, 34], [41, 20], [42, 35], [43, 35], [44, 21], [45, 22], [46, 23], [47, 37], [48, 30], [49, 30], [50, 31], [51, 38], [52, 33], [53, 20], [54, 41], [55, 20], [56, 42], [57, 48], [58, 48], [59, 48], [60, 49], [61, 49], [62, 49], [63, 32], [64, 32], [65, 39], [66, 39], [67, 53], [68, 41], [69, 41], [70, 55], [71, 63], [72, 41], [73, 68], [74, 71], [75, 72], [76, 73], [77, 69], [78, 74], [79, 75], [80, 68], [81, 79], [82, 80], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "getNodeName", "code": "  public String getNodeName(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);\n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                     \n\n    if (0 == namespaceID)\n    {\n      int type = getNodeType(nodeHandle);\n\n      if (type == DTM.NAMESPACE_NODE)\n      {\n        if (null == m_expandedNameTable.getLocalName(expandedTypeID))\n          return \"xmlns\";\n        else\n          return \"xmlns:\" + m_expandedNameTable.getLocalName(expandedTypeID);\n      }\n      else if (0 == m_expandedNameTable.getLocalNameID(expandedTypeID))\n      {\n        return m_fixednames[type];\n      }\n      else\n        return m_expandedNameTable.getLocalName(expandedTypeID);\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [2, 12], [3, 13], [6, 14], [7, 15], [9, 16], [9, 17], [15, 18], [8, 19], [16, 20], [16, 21], [9, 22], [10, 23], [7, 24], [7, 25], [19, 26], [20, 27], [16, 28], [21, 29], [21, 30], [22, 31], [22, 32], [22, 33], [24, 34], [31, 35], [32, 36], [33, 37], [33, 38], [35, 39], [35, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 2], [13, 3], [14, 6], [15, 7], [16, 9], [17, 9], [18, 15], [19, 8], [20, 16], [21, 16], [22, 9], [23, 10], [24, 7], [25, 7], [26, 19], [27, 20], [28, 16], [29, 21], [30, 21], [31, 22], [32, 22], [33, 22], [34, 24], [35, 31], [36, 32], [37, 33], [38, 33], [39, 35], [40, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "getNodeNameX", "code": "  public String getNodeNameX(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);    \n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                      \n\n    if (0 == namespaceID)\n    {\n      String name = m_expandedNameTable.getLocalName(expandedTypeID);\n\n      if (name == null)\n        return \"\";\n      else\n        return name;\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [2, 12], [3, 13], [6, 14], [7, 15], [9, 16], [9, 17], [9, 18], [15, 19], [8, 20], [17, 21], [18, 22], [10, 23], [7, 24], [7, 25], [20, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 2], [13, 3], [14, 6], [15, 7], [16, 9], [17, 9], [18, 9], [19, 15], [20, 8], [21, 17], [22, 18], [23, 10], [24, 7], [25, 7], [26, 20], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "isAttributeSpecified", "code": "  public boolean isAttributeSpecified(int attributeHandle)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentTypeDeclarationSystemIdentifier", "code": "  public String getDocumentTypeDeclarationSystemIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNextNodeIdentity", "code": "  protected int getNextNodeIdentity(int identity)\n  {\n\n    identity += 1;\n\n    while (identity >= m_size)\n    {\n      if (null == m_incrementalSAXSource)\n        return DTM.NULL;\n\n      nextNode();\n    }\n\n    return identity;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [2, 6], [5, 7], [2, 8], [6, 9], [6, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 2], [7, 5], [8, 2], [9, 6], [10, 6], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "dispatchToEvents", "code": "  public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n\n    DTMTreeWalker treeWalker = m_walker;\n    ContentHandler prevCH = treeWalker.getcontentHandler();\n\n    if (null != prevCH)\n    {\n      treeWalker = new DTMTreeWalker();\n    }\n\n    treeWalker.setcontentHandler(ch);\n    treeWalker.setDTM(this);\n\n    try\n    {\n      treeWalker.traverse(nodeHandle);\n    }\n    finally\n    {\n      treeWalker.setcontentHandler(null);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 10], [1, 11], [9, 12], [3, 13], [10, 14], [2, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 1], [11, 1], [12, 9], [13, 3], [14, 10], [15, 2], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getNumberOfNodes", "code": "  protected int getNumberOfNodes()\n  {\n    return m_size;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "nextNode", "code": "  protected boolean nextNode()\n  {\n\n    if (null == m_incrementalSAXSource)\n      return false;\n\n    if (m_endDocumentOccured)\n    {\n      clearCoRoutine();\n\n      return false;\n    }\n\n    Object gotMore = m_incrementalSAXSource.deliverMoreNodes(true);\n\n    if (!(gotMore instanceof Boolean))\n    {\n      if(gotMore instanceof RuntimeException)\n      {\n        throw (RuntimeException)gotMore;\n      }\n      else if(gotMore instanceof Exception)\n      {\n        throw new WrappedRuntimeException((Exception)gotMore);\n      }\n      clearCoRoutine();\n\n      return false;\n\n    }\n\n    if (gotMore != Boolean.TRUE)\n    {\n\n\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [6, 10], [6, 11], [3, 12], [3, 13], [4, 14], [5, 15], [10, 16], [11, 17], [12, 18], [3, 19], [13, 20], [13, 21], [14, 22], [15, 23], [5, 24], [20, 25], [13, 26], [20, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 6], [11, 6], [12, 3], [13, 3], [14, 4], [15, 5], [16, 10], [17, 11], [18, 12], [19, 3], [20, 13], [21, 13], [22, 14], [23, 15], [24, 5], [25, 20], [26, 13], [27, 20], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "isTextType", "code": "  private final boolean isTextType(int type)\n  {\n    return (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addNode", "code": "  protected int addNode(int type, int expandedTypeID,\n                        int parentIndex, int previousSibling,\n                        int dataOrPrefix, boolean canHaveFirstChild)\n  {\n    int nodeIndex = m_size++;\n\n    if(m_dtmIdent.size() == (nodeIndex>>>DTMManager.IDENT_DTM_NODE_BITS))\n    {\n      try\n      {\n        if(m_mgr==null)\n          throw new ClassCastException();\n                                \n        DTMManagerDefault mgrD=(DTMManagerDefault)m_mgr;\n        int id=mgrD.getFirstFreeDTMID();\n        mgrD.addDTM(this,id,nodeIndex);\n        m_dtmIdent.addElement(id<<DTMManager.IDENT_DTM_NODE_BITS);\n      }\n      catch(ClassCastException e)\n      {\n      }\n    }\n\n    m_firstch.addElement(canHaveFirstChild ? NOTPROCESSED : DTM.NULL);\n    m_nextsib.addElement(NOTPROCESSED);\n    m_prevsib.addElement(previousSibling);\n    m_parent.addElement(parentIndex);\n    m_exptype.addElement(expandedTypeID);\n    m_dataOrQName.addElement(dataOrPrefix);    \n\n\tif (m_useSourceLocationProperty && m_locator != null) \n\t{\n\t\tm_sourceSystemId.addElement(m_locator.getSystemId());\n\t\tm_sourceLine.addElement(m_locator.getLineNumber());\n\t\tm_sourceColumn.addElement(m_locator.getColumnNumber());\n\n\t\tif (m_sourceSystemId.size() != m_size) \n\t\t{\n\t\t\tSystem.err.println(\"CODING ERROR in Source Location: \" + m_size\n\t\t\t\t+ \" != \"\n\t\t\t\t+ m_sourceSystemId.size());\n\t\t\tSystem.exit(1);\n\t\t}\n\t}\n\n\n    if (DTM.NULL != previousSibling)\n      m_nextsib.setElementAt(nodeIndex,previousSibling);\n\n\n    switch(type)\n    {\n    case DTM.NAMESPACE_NODE:\n      declareNamespaceInContext(parentIndex,nodeIndex);\n      break;\n    case DTM.ATTRIBUTE_NODE:\n      break;\n    default:\n      if (DTM.NULL != parentIndex &&\n\t  NOTPROCESSED == m_firstch.elementAt(parentIndex))\n        m_firstch.setElementAt(nodeIndex,parentIndex);\n      break;\n    }\n\n    return nodeIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "CALL", "IF", "BINARY_OP", "COND_EXPR", "TRY", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CATCH", "VAR_DECL", "VAR_DECL", "IF", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [3, 13], [4, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [5, 21], [2, 22], [2, 23], [2, 24], [2, 25], [3, 26], [4, 27], [14, 28], [20, 29], [5, 30], [21, 31], [21, 32], [23, 33], [2, 34], [27, 35], [4, 36], [4, 37], [4, 38], [28, 39], [30, 40], [30, 41], [30, 42], [30, 43], [23, 44], [33, 45], [33, 46], [35, 47], [36, 48], [37, 49], [38, 50], [30, 51], [30, 52], [43, 53], [43, 54], [45, 55], [27, 56], [27, 57], [51, 58], [41, 59], [53, 60], [54, 61], [56, 62], [57, 63], [63, 64], [63, 65], [65, 66], [65, 67], [67, 68], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 3], [14, 4], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 5], [22, 2], [23, 2], [24, 2], [25, 2], [26, 3], [27, 4], [28, 14], [29, 20], [30, 5], [31, 21], [32, 21], [33, 23], [34, 2], [35, 27], [36, 4], [37, 4], [38, 4], [39, 28], [40, 30], [41, 30], [42, 30], [43, 30], [44, 23], [45, 33], [46, 33], [47, 35], [48, 36], [49, 37], [50, 38], [51, 30], [52, 30], [53, 43], [54, 43], [55, 45], [56, 27], [57, 27], [58, 51], [59, 41], [60, 53], [61, 54], [62, 56], [63, 57], [64, 63], [65, 63], [66, 65], [67, 65], [68, 67], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68]]}, {"function_name": "getNodeValue", "code": "  public String getNodeValue(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_chars.getString(offset, length);\n    }\n    else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type\n             || DTM.DOCUMENT_NODE == type)\n    {\n      return null;\n    }\n    else\n    {\n      int dataIndex = _dataOrQName(identity);\n\n      if (dataIndex < 0)\n      {\n        dataIndex = -dataIndex;\n        dataIndex = m_data.elementAt(dataIndex + 1);\n      }\n\n      return m_valuesOrPrefixes.indexToString(dataIndex);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CALL", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [3, 13], [5, 14], [5, 15], [5, 16], [5, 17], [7, 18], [7, 19], [8, 20], [14, 21], [15, 22], [17, 23], [19, 24], [19, 25], [9, 26], [10, 27], [11, 28], [22, 29], [16, 30], [26, 31], [15, 32], [15, 33], [31, 34], [32, 35], [35, 36], [36, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 3], [14, 5], [15, 5], [16, 5], [17, 5], [18, 7], [19, 7], [20, 8], [21, 14], [22, 15], [23, 17], [24, 19], [25, 19], [26, 9], [27, 10], [28, 11], [29, 22], [30, 16], [31, 26], [32, 15], [33, 15], [34, 31], [35, 32], [36, 35], [37, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "getLocalName", "code": "  public String getLocalName(int nodeHandle)\n  {\n    return m_expandedNameTable.getLocalName(_exptype(makeNodeIdentity(nodeHandle)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getUnparsedEntityURI", "code": "  public String getUnparsedEntityURI(String name)\n  {\n\n    String url = \"\";\n\n    if (null == m_entities)\n      return url;\n\n    int n = m_entities.size();\n\n    for (int i = 0; i < n; i += ENTITY_FIELDS_PER)\n    {\n      String ename = (String) m_entities.elementAt(i + ENTITY_FIELD_NAME);\n\n      if (null != ename && ename.equals(name))\n      {\n        String nname = (String) m_entities.elementAt(i\n                         + ENTITY_FIELD_NOTATIONNAME);\n\n        if (null != nname)\n        {\n\n          url = (String) m_entities.elementAt(i + ENTITY_FIELD_SYSTEMID);\n\n          if (null == url)\n          {\n            url = (String) m_entities.elementAt(i + ENTITY_FIELD_PUBLICID);\n          }\n        }\n\n        break;\n      }\n    }\n\n    return url;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [4, 9], [4, 10], [2, 11], [2, 12], [3, 13], [10, 14], [5, 15], [11, 16], [2, 17], [11, 18], [11, 19], [11, 20], [16, 21], [16, 22], [19, 23], [22, 24], [12, 25], [19, 26], [23, 27], [25, 28], [26, 29], [19, 30], [20, 31], [29, 32], [31, 33], [26, 34], [30, 35], [35, 36], [34, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 4], [10, 4], [11, 2], [12, 2], [13, 3], [14, 10], [15, 5], [16, 11], [17, 2], [18, 11], [19, 11], [20, 11], [21, 16], [22, 16], [23, 19], [24, 22], [25, 12], [26, 19], [27, 23], [28, 25], [29, 26], [30, 19], [31, 20], [32, 29], [33, 31], [34, 26], [35, 30], [36, 35], [37, 34], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "getPrefix", "code": "  public String getPrefix(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (0 == prefixIndex)\n        return \"\";\n      else\n      {\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n    else if (DTM.ATTRIBUTE_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (prefixIndex < 0)\n      {\n        prefixIndex = m_data.elementAt(-prefixIndex);\n\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n\n    return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [2, 10], [2, 11], [3, 12], [4, 13], [7, 14], [7, 15], [10, 16], [10, 17], [14, 18], [10, 19], [10, 20], [16, 21], [17, 22], [11, 23], [14, 24], [14, 25], [18, 26], [15, 27], [19, 28], [24, 29], [14, 30], [28, 31], [20, 32], [29, 33], [25, 34], [30, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 2], [11, 2], [12, 3], [13, 4], [14, 7], [15, 7], [16, 10], [17, 10], [18, 14], [19, 10], [20, 10], [21, 16], [22, 17], [23, 11], [24, 14], [25, 14], [26, 18], [27, 15], [28, 19], [29, 24], [30, 14], [31, 28], [32, 20], [33, 29], [34, 25], [35, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getAttributeNode", "code": "  public int getAttributeNode(int nodeHandle, String namespaceURI,\n                              String name)\n  {\n\n    for (int attrH = getFirstAttribute(nodeHandle); DTM.NULL != attrH;\n            attrH = getNextAttribute(attrH))\n    {\n      String attrNS = getNamespaceURI(attrH);\n      String attrName = getLocalName(attrH);\n      boolean nsMatch = namespaceURI == attrNS\n                        || (namespaceURI != null\n                            && namespaceURI.equals(attrNS));\n\n      if (nsMatch && name.equals(attrName))\n        return attrH;\n    }\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [8, 13], [8, 14], [2, 15], [14, 16], [9, 17], [10, 18], [11, 19], [17, 20], [17, 21], [20, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 8], [14, 8], [15, 2], [16, 14], [17, 9], [18, 10], [19, 11], [20, 17], [21, 17], [22, 20], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getDocumentTypeDeclarationPublicIdentifier", "code": "  public String getDocumentTypeDeclarationPublicIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamespaceURI", "code": "  public String getNamespaceURI(int nodeHandle)\n  {\n\n    return m_expandedNameTable.getNamespace(_exptype(makeNodeIdentity(nodeHandle)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getStringValue", "code": "  public XMLString getStringValue(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    int type;\n      type = DTM.NULL;\n    \n      type= _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_xstrf.newstr(m_chars, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int level = _level(identity);\n\n        identity = firstChild;\n\n        while (DTM.NULL != identity && (_level(identity) > level))\n        {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        }\n\n        if (length > 0)\n        {\n          return m_xstrf.newstr(m_chars, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n        return m_xstrf.newstr(m_valuesOrPrefixes.indexToString(dataIndex));\n      }\n    }\n\n    return m_xstrf.emptystr();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [8, 16], [4, 17], [10, 18], [10, 19], [12, 20], [18, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [11, 27], [13, 28], [14, 29], [15, 30], [18, 31], [18, 32], [18, 33], [22, 34], [23, 35], [10, 36], [28, 37], [31, 38], [32, 39], [22, 40], [34, 41], [23, 42], [35, 43], [35, 44], [24, 45], [25, 46], [26, 47], [37, 48], [38, 49], [39, 50], [33, 51], [40, 52], [23, 53], [42, 54], [23, 55], [43, 56], [32, 57], [32, 58], [53, 59], [42, 60], [42, 61], [55, 62], [57, 63], [42, 64], [60, 65], [63, 66], [64, 67], [65, 68], [61, 69], [66, 70], [67, 71], [60, 72], [71, 73], [72, 74], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 8], [17, 4], [18, 10], [19, 10], [20, 12], [21, 18], [22, 10], [23, 10], [24, 10], [25, 10], [26, 10], [27, 11], [28, 13], [29, 14], [30, 15], [31, 18], [32, 18], [33, 18], [34, 22], [35, 23], [36, 10], [37, 28], [38, 31], [39, 32], [40, 22], [41, 34], [42, 23], [43, 35], [44, 35], [45, 24], [46, 25], [47, 26], [48, 37], [49, 38], [50, 39], [51, 33], [52, 40], [53, 23], [54, 42], [55, 23], [56, 43], [57, 32], [58, 32], [59, 53], [60, 42], [61, 42], [62, 55], [63, 57], [64, 42], [65, 60], [66, 63], [67, 64], [68, 65], [69, 61], [70, 66], [71, 67], [72, 60], [73, 71], [74, 72], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74]]}, {"function_name": "getElementById", "code": "  public int getElementById(String elementId)\n  {\n\n    Integer intObj;\n    boolean isMore = true;\n\n    do\n    {\n      intObj = (Integer) m_idAttributes.get(elementId);\n\n      if (null != intObj)\n        return makeNodeHandle(intObj.intValue());\n\n      if (!isMore || m_endDocumentOccured)\n        break;\n\n      isMore = nextNode();\n    }\n    while (null == intObj);\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [2, 11], [7, 12], [7, 13], [8, 14], [8, 15], [2, 16], [11, 17], [14, 18], [15, 19], [18, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 2], [12, 7], [13, 7], [14, 8], [15, 8], [16, 2], [17, 11], [18, 14], [19, 15], [20, 18], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getPrefix", "code": "  private String getPrefix(String qname, String uri)\n  {\n\n    String prefix;\n    int uriIndex = -1;\n\n    if (null != uri && uri.length() > 0)\n    {\n\n      do\n      {\n        uriIndex = m_prefixMappings.indexOf(uri, ++uriIndex);\n      } while ( (uriIndex & 0x01) == 0);\n\n      if (uriIndex >= 0)\n      {\n        prefix = (String) m_prefixMappings.elementAt(uriIndex - 1);\n      }\n      else if (null != qname)\n      {\n        int indexOfNSSep = qname.indexOf(':');\n\n        if (qname.equals(\"xmlns\"))\n          prefix = \"\";\n        else if (qname.startsWith(\"xmlns:\"))\n          prefix = qname.substring(indexOfNSSep + 1);\n        else\n          prefix = (indexOfNSSep > 0)\n                   ? qname.substring(0, indexOfNSSep) : null;\n      }\n      else\n      {\n      }\n    }\n    else if (null != qname)\n    {\n      int indexOfNSSep = qname.indexOf(':');\n\n      if (qname.equals(\"xmlns\"))\n        prefix = \"\";\n      else if (qname.startsWith(\"xmlns:\"))\n        prefix = qname.substring(indexOfNSSep + 1);\n      else\n        prefix = (indexOfNSSep > 0) ? qname.substring(0, indexOfNSSep) : null;\n    }\n    else\n    {\n      prefix = null;\n    }\n\n    return prefix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [2, 10], [2, 11], [8, 12], [8, 13], [3, 14], [7, 15], [7, 16], [9, 17], [10, 18], [10, 19], [11, 20], [12, 21], [12, 22], [13, 23], [7, 24], [15, 25], [15, 26], [18, 27], [19, 28], [20, 29], [20, 30], [24, 31], [25, 32], [15, 33], [26, 34], [16, 35], [18, 36], [18, 37], [27, 38], [10, 39], [11, 40], [30, 41], [25, 42], [25, 43], [32, 44], [33, 45], [35, 46], [36, 47], [36, 48], [40, 49], [42, 50], [43, 51], [47, 52], [36, 53], [48, 54], [37, 55], [39, 56], [50, 57], [50, 58], [50, 59], [51, 60], [47, 61], [47, 62], [52, 63], [53, 64], [55, 65], [56, 66], [58, 67], [59, 68], [60, 69], [61, 70], [62, 71], [66, 72], [70, 73], [70, 74], [70, 75], [71, 76], [74, 77], [75, 78], [76, 79], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 2], [11, 2], [12, 8], [13, 8], [14, 3], [15, 7], [16, 7], [17, 9], [18, 10], [19, 10], [20, 11], [21, 12], [22, 12], [23, 13], [24, 7], [25, 15], [26, 15], [27, 18], [28, 19], [29, 20], [30, 20], [31, 24], [32, 25], [33, 15], [34, 26], [35, 16], [36, 18], [37, 18], [38, 27], [39, 10], [40, 11], [41, 30], [42, 25], [43, 25], [44, 32], [45, 33], [46, 35], [47, 36], [48, 36], [49, 40], [50, 42], [51, 43], [52, 47], [53, 36], [54, 48], [55, 37], [56, 39], [57, 50], [58, 50], [59, 50], [60, 51], [61, 47], [62, 47], [63, 52], [64, 53], [65, 55], [66, 56], [67, 58], [68, 59], [69, 60], [70, 61], [71, 62], [72, 66], [73, 70], [74, 70], [75, 70], [76, 71], [77, 74], [78, 75], [79, 76], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79]]}, {"function_name": "setIDAttribute", "code": "  public void setIDAttribute(String id, int elem)\n  {\n    m_idAttributes.put(id, new Integer(elem));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "charactersFlush", "code": "  protected void charactersFlush()\n  {\n\n    {\n      int length = m_chars.size() - m_textPendingStart;\n      boolean doStrip = false;\n\n      if (getShouldStripWhitespace())\n      {\n        doStrip = m_chars.isWhitespace(m_textPendingStart, length);\n      }\n\n      if (doStrip){}\n      else\n      {\n        int exName = m_expandedNameTable.getExpandedTypeID(DTM.TEXT_NODE);\n        int dataIndex = m_data.size();\n\n        m_previous = addNode(m_coalescedTextType, exName,\n                             m_parents.peek(), m_previous, dataIndex, false);\n\n        m_data.addElement(m_textPendingStart);\n        m_data.addElement(length);\n      }\n\n      m_textPendingStart = -1;\n      m_textType = m_coalescedTextType = DTM.TEXT_NODE;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [5, 8], [6, 9], [1, 10], [1, 11], [3, 12], [4, 13], [1, 14], [1, 15], [1, 16], [2, 17], [13, 18], [16, 19], [10, 20], [11, 21], [17, 22], [19, 23], [19, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 5], [9, 6], [10, 1], [11, 1], [12, 3], [13, 4], [14, 1], [15, 1], [16, 1], [17, 2], [18, 13], [19, 16], [20, 10], [21, 11], [22, 17], [23, 19], [24, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "resolveEntity", "code": "  public InputSource resolveEntity(String publicId, String systemId)\n          throws SAXException\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "notationDecl", "code": "  public void notationDecl(String name, String publicId, String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "unparsedEntityDecl", "code": "  public void unparsedEntityDecl(\n          String name, String publicId, String systemId, String notationName)\n            throws SAXException\n  {\n\n    if (null == m_entities)\n    {\n      m_entities = new Vector();\n    }\n\n    try\n    {\n      systemId = SystemIDResolver.getAbsoluteURI(systemId,\n                                                 getDocumentBaseURI());\n    }\n    catch (Exception e)\n    {\n      throw new org.xml.sax.SAXException(e);\n    }\n\n    m_entities.addElement(publicId);\n\n    m_entities.addElement(systemId);\n\n    m_entities.addElement(notationName);\n\n    m_entities.addElement(name);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CATCH", "BINARY_OP", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [11, 13], [1, 14], [12, 15], [13, 16], [14, 17], [2, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 11], [14, 1], [15, 12], [16, 13], [17, 14], [18, 2], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator)\n  {\n    m_locator = locator;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startDocument", "code": "  public void startDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"startDocument\");\n\n\t\t\n    int doc = addNode(DTM.DOCUMENT_NODE,\n                      m_expandedNameTable.getExpandedTypeID(DTM.DOCUMENT_NODE),\n                      DTM.NULL, DTM.NULL, 0, true);\n\t\t\n    m_parents.push(doc);\n    m_previous = DTM.NULL;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [5, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 5], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "endDocument", "code": "  public void endDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endDocument\");\n\n\t\tcharactersFlush();\n\n    m_nextsib.setElementAt(NULL,0);\n\n    if (m_firstch.elementAt(0) == NOTPROCESSED)\n      m_firstch.setElementAt(NULL,0);\n\n    if (DTM.NULL != m_previous)\n      m_nextsib.setElementAt(DTM.NULL,m_previous);\n\n    m_parents = null;\n    m_prefixMappings = null;\n    m_contextIndexes = null;\n\n    m_endDocumentOccured = true;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [2, 9], [0, 10], [0, 11], [4, 12], [5, 13], [6, 14], [7, 15], [1, 16], [2, 17], [9, 18], [10, 19], [3, 20], [17, 21], [18, 22], [20, 23], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 2], [10, 0], [11, 0], [12, 4], [13, 5], [14, 6], [15, 7], [16, 1], [17, 2], [18, 9], [19, 10], [20, 3], [21, 17], [22, 18], [23, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(String prefix, String uri)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"startPrefixMapping: prefix: \" + prefix + \", uri: \"\n                         + uri);\n\n    if(null == prefix)\n      prefix = \"\";", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [6, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 6], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(String prefix) throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endPrefixMapping: prefix: \" + prefix);\n\n    if(null == prefix)\n      prefix = \"\";\n\n    int index = m_contextIndexes.peek() - 1;\n\n    do\n    {\n      index = m_prefixMappings.indexOf(prefix, ++index);\n    } while ( (index >= 0) && ((index & 0x01) == 0x01) );\n\n\n    if (index > -1)\n    {\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index);\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index + 1);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [7, 10], [8, 11], [8, 12], [3, 13], [4, 14], [9, 15], [5, 16], [1, 17], [1, 18], [2, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [16, 26], [17, 27], [17, 28], [18, 29], [19, 30], [21, 31], [26, 32], [27, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 7], [11, 8], [12, 8], [13, 3], [14, 4], [15, 9], [16, 5], [17, 1], [18, 1], [19, 2], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 16], [27, 17], [28, 17], [29, 18], [30, 19], [31, 21], [32, 26], [33, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "declAlreadyDeclared", "code": "  protected boolean declAlreadyDeclared(String prefix)\n  {\n\n    int startDecls = m_contextIndexes.peek();\n    java.util.Vector prefixMappings = m_prefixMappings;\n    int nDecls = prefixMappings.size();\n\n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      String prefixDecl = (String) prefixMappings.elementAt(i);\n\n      if (prefixDecl == null)\n        continue;\n\n      if (prefixDecl.equals(prefix))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [8, 13], [3, 14], [5, 15], [10, 16], [10, 17], [11, 18], [11, 19], [16, 20], [19, 21], [12, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 8], [14, 3], [15, 5], [16, 10], [17, 10], [18, 11], [19, 11], [20, 16], [21, 19], [22, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "startElement", "code": "  public void startElement(\n          String uri, String localName, String qName, Attributes attributes)\n            throws SAXException\n  {\n   if (DEBUG)\n\t {\n      System.out.println(\"startElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName+\", atts: \" + attributes);\n\n\t\t\tboolean DEBUG_ATTRS=true;\n\t\t\tif(DEBUG_ATTRS & attributes!=null)\n\t\t\t{\n\t\t\t\tint n = attributes.getLength();\n\t\t\t\tif(n==0)\n\t\t\t\t\tSystem.out.println(\"\\tempty attribute list\");\n\t\t\t\telse for (int i = 0; i < n; i++)\n\t\t\t\t\tSystem.out.println(\"\\t attr: uri: \" + attributes.getURI(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", localname: \" + attributes.getLocalName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", qname: \" + attributes.getQName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", type: \" + attributes.getType(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", value: \" + attributes.getValue(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t}\n\t }\n\t\t\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(uri, localName, DTM.ELEMENT_NODE);\n    String prefix = getPrefix(qName, uri);\n    int prefixIndex = (null != prefix)\n                      ? m_valuesOrPrefixes.stringToIndex(qName) : 0;\n    int elemNode = addNode(DTM.ELEMENT_NODE, exName,\n                           m_parents.peek(), m_previous, prefixIndex, true);\n\n    if(m_indexing)\n      indexNode(exName, elemNode);\n    \n    m_parents.push(elemNode);\n\n    int startDecls = m_contextIndexes.peek();\n    int nDecls = m_prefixMappings.size();\n    int prev = DTM.NULL;\n\n    if(!m_pastFirstElement)\n    {\n      prefix=\"xml\";\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n      m_pastFirstElement=true;\n    }\n                        \n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      prefix = (String) m_prefixMappings.elementAt(i);\n\n      if (prefix == null)\n        continue;\n\n      String declURL = (String) m_prefixMappings.elementAt(i + 1);\n\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n    }\n\n    int n = attributes.getLength();\n\n    for (int i = 0; i < n; i++)\n    {\n      String attrUri = attributes.getURI(i);\n      String attrQName = attributes.getQName(i);\n      String valString = attributes.getValue(i);\n\n      prefix = getPrefix(attrQName, attrUri);\n\n      int nodeType;\n\n      if ((null != attrQName)\n              && (attrQName.equals(\"xmlns\")\n                  || attrQName.startsWith(\"xmlns:\")))\n      {\n        if (declAlreadyDeclared(prefix))\n\n        nodeType = DTM.NAMESPACE_NODE;\n      }\n      else\n      {\n        nodeType = DTM.ATTRIBUTE_NODE;\n\n        if (attributes.getType(i).equalsIgnoreCase(\"ID\"))\n          setIDAttribute(valString, elemNode);\n      }\n      \n      if(null == valString)\n        valString = \"\";\n\n      int val = m_valuesOrPrefixes.stringToIndex(valString);\n      String attrLocalName = attributes.getLocalName(i);\n\n      if (null != prefix)\n      {\n        \n        prefixIndex = m_valuesOrPrefixes.stringToIndex(attrQName);\n\n        int dataIndex = m_data.size();\n\n        m_data.addElement(prefixIndex);\n        m_data.addElement(val);\n\n        val = -dataIndex;\n      }\n\n      exName = m_expandedNameTable.getExpandedTypeID(attrUri, attrLocalName, nodeType);\n      prev = addNode(nodeType, exName, elemNode, prev, val,\n                     false);\n    }\n\n    if (DTM.NULL != prev)\n      m_nextsib.setElementAt(DTM.NULL,prev);\n\n    if (null != m_wsfilter)\n    {\n      short wsv = m_wsfilter.getShouldStripSpace(makeNodeHandle(elemNode), this);\n      boolean shouldStrip = (DTMWSFilter.INHERIT == wsv)\n                            ? getShouldStripWhitespace()\n                            : (DTMWSFilter.STRIP == wsv);\n\n      pushShouldStripWhitespace(shouldStrip);\n    }\n\n    m_previous = DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [2, 22], [3, 23], [5, 24], [5, 25], [0, 26], [0, 27], [1, 28], [1, 29], [21, 30], [2, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [3, 40], [4, 41], [5, 42], [5, 43], [5, 44], [24, 45], [6, 46], [8, 47], [9, 48], [10, 49], [11, 50], [12, 51], [13, 52], [14, 53], [15, 54], [15, 55], [1, 56], [3, 57], [3, 58], [32, 59], [35, 60], [36, 61], [3, 62], [3, 63], [5, 64], [5, 65], [44, 66], [44, 67], [5, 68], [6, 69], [6, 70], [6, 71], [6, 72], [50, 73], [50, 74], [51, 75], [51, 76], [51, 77], [54, 78], [15, 79], [28, 80], [29, 81], [57, 82], [58, 83], [32, 84], [59, 85], [33, 86], [34, 87], [35, 88], [60, 89], [36, 90], [36, 91], [61, 92], [61, 93], [62, 94], [38, 95], [39, 96], [40, 97], [64, 98], [42, 99], [65, 100], [67, 101], [69, 102], [70, 103], [46, 104], [71, 105], [72, 106], [77, 107], [54, 108], [54, 109], [78, 110], [55, 111], [79, 112], [80, 113], [80, 114], [80, 115], [81, 116], [82, 117], [32, 118], [32, 119], [32, 120], [32, 121], [88, 122], [90, 123], [36, 124], [91, 125], [92, 126], [92, 127], [93, 128], [98, 129], [100, 130], [43, 131], [68, 132], [103, 133], [105, 134], [108, 135], [108, 136], [110, 137], [112, 138], [84, 139], [121, 140], [90, 141], [123, 142], [91, 143], [126, 144], [127, 145], [131, 146], [135, 147], [108, 148], [136, 149], [109, 150], [138, 151], [138, 152], [142, 153], [146, 154], [135, 155], [148, 156], [152, 157], [155, 158], [135, 159], [157, 160], [157, 161], [158, 162], [158, 163], [161, 164], [163, 165], [163, 166], [164, 167], [164, 168], [166, 169], [166, 170], [168, 171], [170, 172], [170, 173], [173, 174], [173, 175], [175, 176], [175, 177], [177, 178], [177, 179], [179, 180], [179, 181], [181, 182], [181, 183], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 2], [23, 3], [24, 5], [25, 5], [26, 0], [27, 0], [28, 1], [29, 1], [30, 21], [31, 2], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 3], [41, 4], [42, 5], [43, 5], [44, 5], [45, 24], [46, 6], [47, 8], [48, 9], [49, 10], [50, 11], [51, 12], [52, 13], [53, 14], [54, 15], [55, 15], [56, 1], [57, 3], [58, 3], [59, 32], [60, 35], [61, 36], [62, 3], [63, 3], [64, 5], [65, 5], [66, 44], [67, 44], [68, 5], [69, 6], [70, 6], [71, 6], [72, 6], [73, 50], [74, 50], [75, 51], [76, 51], [77, 51], [78, 54], [79, 15], [80, 28], [81, 29], [82, 57], [83, 58], [84, 32], [85, 59], [86, 33], [87, 34], [88, 35], [89, 60], [90, 36], [91, 36], [92, 61], [93, 61], [94, 62], [95, 38], [96, 39], [97, 40], [98, 64], [99, 42], [100, 65], [101, 67], [102, 69], [103, 70], [104, 46], [105, 71], [106, 72], [107, 77], [108, 54], [109, 54], [110, 78], [111, 55], [112, 79], [113, 80], [114, 80], [115, 80], [116, 81], [117, 82], [118, 32], [119, 32], [120, 32], [121, 32], [122, 88], [123, 90], [124, 36], [125, 91], [126, 92], [127, 92], [128, 93], [129, 98], [130, 100], [131, 43], [132, 68], [133, 103], [134, 105], [135, 108], [136, 108], [137, 110], [138, 112], [139, 84], [140, 121], [141, 90], [142, 123], [143, 91], [144, 126], [145, 127], [146, 131], [147, 135], [148, 108], [149, 136], [150, 109], [151, 138], [152, 138], [153, 142], [154, 146], [155, 135], [156, 148], [157, 152], [158, 155], [159, 135], [160, 157], [161, 157], [162, 158], [163, 158], [164, 161], [165, 163], [166, 163], [167, 164], [168, 164], [169, 166], [170, 166], [171, 168], [172, 170], [173, 170], [174, 173], [175, 173], [176, 175], [177, 175], [178, 177], [179, 177], [180, 179], [181, 179], [182, 181], [183, 181], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183]]}, {"function_name": "endElement", "code": "  public void endElement(String uri, String localName, String qName)\n          throws SAXException\n  {\n   if (DEBUG)\n      System.out.println(\"endElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName);\n\n    charactersFlush();\n\n    m_prefixMappings.setSize(m_contextIndexes.pop());\n\n    m_prefixMappings.setSize(m_contextIndexes.pop());\n\n    int lastNode = m_previous;\n\n    m_previous = m_parents.pop();\n\n    if (NOTPROCESSED == m_firstch.elementAt(m_previous))\n      m_firstch.setElementAt(DTM.NULL,m_previous);\n    else if (DTM.NULL != lastNode)\n      m_nextsib.setElementAt(DTM.NULL,lastNode);\n\n    popShouldStripWhitespace();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "IF", "BINARY_OP", "ASSIGN", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [0, 10], [0, 11], [0, 12], [0, 13], [8, 14], [1, 15], [9, 16], [10, 17], [11, 18], [12, 19], [3, 20], [8, 21], [20, 22], [22, 23], [23, 24], [23, 25], [25, 26], [26, 27], [26, 28], [28, 29], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 0], [11, 0], [12, 0], [13, 0], [14, 8], [15, 1], [16, 9], [17, 10], [18, 11], [19, 12], [20, 3], [21, 8], [22, 20], [23, 22], [24, 23], [25, 23], [26, 25], [27, 26], [28, 26], [29, 28], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "characters", "code": "  public void characters(char ch[], int start, int length) throws SAXException\n  {\n    {\n      m_textPendingStart = m_chars.size();\n      m_coalescedTextType = m_textType;\n    }\n\n    m_chars.append(ch, start, length);\n\n    if (m_textType == DTM.TEXT_NODE)\n      m_coalescedTextType = DTM.TEXT_NODE;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [1, 7], [0, 8], [0, 9], [9, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 1], [8, 0], [9, 0], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char ch[], int start, int length)\n          throws SAXException\n  {\n    characters(ch, start, length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(String target, String data)\n          throws SAXException\n  {\n    if (DEBUG)\n\t\t System.out.println(\"processingInstruction: target: \" + target +\", data: \"+data);\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(null, target,\n                                         DTM.PROCESSING_INSTRUCTION_NODE);\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(data);\n\n    m_previous = addNode(DTM.PROCESSING_INSTRUCTION_NODE, exName,\n                         m_parents.peek(), m_previous,\n                         dataIndex, false);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [1, 9], [2, 10], [3, 11], [8, 12], [8, 13], [10, 14], [11, 15], [15, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 1], [10, 2], [11, 3], [12, 8], [13, 8], [14, 10], [15, 11], [16, 15], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(String name) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "warning", "code": "  public void warning(SAXParseException e) throws SAXException\n  {\n\n    System.err.println(e.getMessage());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "error", "code": "  public void error(SAXParseException e) throws SAXException\n  {\n    throw e;", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "fatalError", "code": "  public void fatalError(SAXParseException e) throws SAXException\n  {\n    throw e;", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "elementDecl", "code": "  public void elementDecl(String name, String model) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "attributeDecl", "code": "  public void attributeDecl(\n          String eName, String aName, String type, String valueDefault, String value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "internalEntityDecl", "code": "  public void internalEntityDecl(String name, String value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "externalEntityDecl", "code": "  public void externalEntityDecl(\n          String name, String publicId, String systemId) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startDTD", "code": "  public void startDTD(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n    m_insideDTD = true;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endDTD", "code": "  public void endDTD() throws SAXException\n  {\n\n    m_insideDTD = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startEntity", "code": "  public void startEntity(String name) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endEntity", "code": "  public void endEntity(String name) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startCDATA", "code": "  public void startCDATA() throws SAXException\n  {\n    m_textType = DTM.CDATA_SECTION_NODE;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endCDATA", "code": "  public void endCDATA() throws SAXException\n  {\n    m_textType = DTM.TEXT_NODE;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "comment", "code": "  public void comment(char ch[], int start, int length) throws SAXException\n  {\n\n      return;\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(DTM.COMMENT_NODE);\n\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(new String(ch, start,\n                      length));\n\n    m_previous = addNode(DTM.COMMENT_NODE, exName, \n                         m_parents.peek(), m_previous, dataIndex, false);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [7, 9], [1, 10], [2, 11], [9, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 7], [10, 1], [11, 2], [12, 9], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setProperty", "code": "  public void setProperty(String property, Object value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSourceLocatorFor", "code": "  public SourceLocator getSourceLocatorFor(int node)\n  {\n    if (m_useSourceLocationProperty)\n    {\n      node = makeNodeIdentity(node);\n      \n      return new NodeLocator(null,\n                             m_sourceSystemId.elementAt(node),\n                             m_sourceLine.elementAt(node),\n                             m_sourceColumn.elementAt(node));\n    }\n    else if(m_locator!=null)\n    {\n    \treturn new NodeLocator(null,m_locator.getSystemId(),-1,-1);\n    }\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [2, 7], [5, 8], [6, 9], [7, 10], [2, 11], [8, 12], [10, 13], [10, 14], [10, 15], [10, 16], [11, 17], [12, 18], [12, 19], [12, 20], [12, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 2], [8, 5], [9, 6], [10, 7], [11, 2], [12, 8], [13, 10], [14, 10], [15, 10], [16, 10], [17, 11], [18, 12], [19, 12], [20, 12], [21, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "SAX2DTM", "code": "  public SAX2DTM(DTMManager mgr, Source source, int dtmIdentity,\n                 DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing)\n  {\n\n    super(mgr, source, dtmIdentity, whiteSpaceFilter, \n          xstringfactory, doIndexing);\n          \n    m_data = new SuballocatedIntVector(32, 1024);\n\n\n    m_dataOrQName = new SuballocatedIntVector(m_initialblocksize);\n    \n    m_useSourceLocationProperty=org.apache.xalan.processor.TransformerFactoryImpl.m_source_location;\n    m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector() : null;\n \tm_sourceLine = (m_useSourceLocationProperty) ?  new IntVector() : null;\n    m_sourceColumn = (m_useSourceLocationProperty) ?  new IntVector() : null; ", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "COND_EXPR", "COND_EXPR", "COND_EXPR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [7, 13], [8, 14], [9, 15], [11, 16], [12, 17], [13, 18], [13, 19], [14, 20], [14, 21], [15, 22], [15, 23], [17, 24], [17, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 7], [14, 8], [15, 9], [16, 11], [17, 12], [18, 13], [19, 13], [20, 14], [21, 14], [22, 15], [23, 15], [24, 17], [25, 17], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}], "label": 1}
{"sample_id": "xalan-2.7-8225", "repo": "xalan-2.7", "project": "xalan", "version": "2.7", "file_path": "org/apache/xml/dtm/ref/sax2dtm/SAX2DTM.java", "language": "java", "name": "org.apache.xml.dtm.ref.sax2dtm.SAX2DTM", "code": "public class SAX2DTM extends DTMDefaultBaseIterators\n        implements EntityResolver, DTDHandler, ContentHandler, ErrorHandler,\n                   DeclHandler, LexicalHandler\n{\n  /** Set true to monitor SAX events and similar diagnostic info. */\n  private static final boolean DEBUG = false;\n\n  /**\n   * If we're building the model incrementally on demand, we need to\n   * be able to tell the source when to send us more data.\n   *\n   * Note that if this has not been set, and you attempt to read ahead\n   * of the current build point, we'll probably throw a null-pointer\n   * exception. We could try to wait-and-retry instead, as a very poor\n   * fallback, but that has all the known problems with multithreading\n   * on multiprocessors and we Don't Want to Go There.\n   *\n   * @see setIncrementalSAXSource\n   */\n  private IncrementalSAXSource m_incrementalSAXSource = null;\n\n  /**\n   * All the character content, including attribute values, are stored in\n   * this buffer.\n   *\n   * %REVIEW% Should this have an option of being shared across DTMs?\n   * Sequentially only; not threadsafe... Currently, I think not.\n   *\n   * %REVIEW% Initial size was pushed way down to reduce weight of RTFs.\n   * pending reduction in number of RTF DTMs. Now that we're sharing a DTM\n   * between RTFs, and tail-pruning... consider going back to the larger/faster.\n   *\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  protected FastStringBuffer m_chars;\n\n  /** This vector holds offset and length data.\n   */\n  protected SuballocatedIntVector m_data;\n\n  /** The parent stack, needed only for construction.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected IntStack m_parents;\n\n  /** The current previous node, needed only for construction time.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected int m_previous = 0;\n\n  /** Namespace support, only relevent at construction time.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected java.util.Vector m_prefixMappings =\n    new java.util.Vector();\n\n  /** Namespace support, only relevent at construction time.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  transient protected IntStack m_contextIndexes;\n\n  /** Type of next characters() event within text block in prgress. */\n  transient protected int m_textType = DTM.TEXT_NODE;\n\n  /**\n   * Type of coalesced text block. See logic in the characters()\n   * method.\n   */\n  transient protected int m_coalescedTextType = DTM.TEXT_NODE;\n\n  /** The SAX Document locator */\n  transient protected Locator m_locator = null;\n\n  /** The SAX Document system-id */\n  transient private String m_systemId = null;\n\n  /** We are inside the DTD.  This is used for ignoring comments.  */\n  transient protected boolean m_insideDTD = false;\n\n  /** Tree Walker for dispatchToEvents. */\n  protected DTMTreeWalker m_walker = new DTMTreeWalker();\n\n  /** pool of string values that come as strings. */\n  protected DTMStringPool m_valuesOrPrefixes;\n\n  /** End document has been reached.\n   * Made protected rather than private so SAX2RTFDTM can access it.\n   */\n  protected boolean m_endDocumentOccured = false;\n\n  /** Data or qualified name values, one array element for each node. */\n  protected SuballocatedIntVector m_dataOrQName;\n\n  /**\n   * This table holds the ID string to node associations, for\n   * XML IDs.\n   */\n  protected Hashtable m_idAttributes = new Hashtable();\n\n  /**\n   * fixed dom-style names.\n   */\n  private static final String[] m_fixednames = { null }; \n\n  /**\n   * Vector of entities.  Each record is composed of four Strings:\n   *  publicId, systemID, notationName, and name.\n   */\n  private Vector m_entities = null;\n\n  /** m_entities public ID offset. */\n  private static final int ENTITY_FIELD_PUBLICID = 0;\n\n  /** m_entities system ID offset. */\n  private static final int ENTITY_FIELD_SYSTEMID = 1;\n\n  /** m_entities notation name offset. */\n  private static final int ENTITY_FIELD_NOTATIONNAME = 2;\n\n  /** m_entities name offset. */\n  private static final int ENTITY_FIELD_NAME = 3;\n\n  /** Number of entries per record for m_entities. */\n  private static final int ENTITY_FIELDS_PER = 4;\n\n  /**\n   * The starting offset within m_chars for the text or\n   * CDATA_SECTION node currently being acumulated,\n   * or -1 if there is no text node in progress\n   */\n  protected int m_textPendingStart = -1;\n\n  /**\n   * Describes whether information about document source location\n   * should be maintained or not.\n   * \n   * Made protected for access by SAX2RTFDTM.\n   */\n  protected boolean m_useSourceLocationProperty = false;\n\n   /** Made protected for access by SAX2RTFDTM.\n   */\n  protected StringVector m_sourceSystemId;\n   /** Made protected for access by SAX2RTFDTM.\n   */\n  protected IntVector m_sourceLine;\n   /** Made protected for access by SAX2RTFDTM.\n   */\n  protected IntVector m_sourceColumn;\n  \n  /**\n   * Construct a SAX2DTM object using the default block size.\n   *\n   * @param mgr The DTMManager who owns this DTM.\n   * @param source the JAXP 1.1 Source object for this DTM.\n   * @param dtmIdentity The DTM identity ID for this DTM.\n   * @param whiteSpaceFilter The white space filter for this DTM, which may\n   *                         be null.\n   * @param xstringfactory XMLString factory for creating character content.\n   * @param doIndexing true if the caller considers it worth it to use\n   *                   indexing schemes.\n   */\n  public SAX2DTM(DTMManager mgr, Source source, int dtmIdentity,\n                 DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing)\n  {\n\n    this(mgr, source, dtmIdentity, whiteSpaceFilter,\n          xstringfactory, doIndexing, DEFAULT_BLOCKSIZE, true, false);\n  }\n  \n  /**\n   * Construct a SAX2DTM object ready to be constructed from SAX2\n   * ContentHandler events.\n   *\n   * @param mgr The DTMManager who owns this DTM.\n   * @param source the JAXP 1.1 Source object for this DTM.\n   * @param dtmIdentity The DTM identity ID for this DTM.\n   * @param whiteSpaceFilter The white space filter for this DTM, which may\n   *                         be null.\n   * @param xstringfactory XMLString factory for creating character content.\n   * @param doIndexing true if the caller considers it worth it to use\n   *                   indexing schemes.\n   * @param blocksize The block size of the DTM.\n   * @param usePrevsib true if we want to build the previous sibling node array.\n   * @param newNameTable true if we want to use a new ExpandedNameTable for this DTM.\n   */\n  public SAX2DTM(DTMManager mgr, Source source, int dtmIdentity,\n                 DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing,\n                 int blocksize,\n                 boolean usePrevsib,\n                 boolean newNameTable)\n  {\n\n    super(mgr, source, dtmIdentity, whiteSpaceFilter,\n          xstringfactory, doIndexing, blocksize, usePrevsib, newNameTable);\n\n    if (blocksize <= 64) \n    {\n      m_data = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS_SMALL);\n      m_dataOrQName = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS_SMALL);\n      m_valuesOrPrefixes = new DTMStringPool(16);\n      m_chars = new FastStringBuffer(7, 10);\n      m_contextIndexes = new IntStack(4);\n      m_parents = new IntStack(4);\n    }\n    else\n    {\n      m_data = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS);\n      m_dataOrQName = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS);\n      m_valuesOrPrefixes = new DTMStringPool();\n      m_chars = new FastStringBuffer(10, 13);\n      m_contextIndexes = new IntStack();\n      m_parents = new IntStack();\n    }\n         \n\n\n    \n    m_useSourceLocationProperty = mgr.getSource_location();\n    m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector() : null;\n \tm_sourceLine = (m_useSourceLocationProperty) ?  new IntVector() : null;\n    m_sourceColumn = (m_useSourceLocationProperty) ?  new IntVector() : null; \n  }\n\n  /**\n   * Set whether information about document source location\n   * should be maintained or not. \n   */\n  public void setUseSourceLocation(boolean useSourceLocation)\n  {\n    m_useSourceLocationProperty = useSourceLocation;\n  }\n\n  /**\n   * Get the data or qualified name for the given node identity.\n   *\n   * @param identity The node identity.\n   *\n   * @return The data or qualified name, or DTM.NULL.\n   */\n  protected int _dataOrQName(int identity)\n  {\n\n    if (identity < m_size)\n      return m_dataOrQName.elementAt(identity);\n\n    while (true)\n    {\n      boolean isMore = nextNode();\n\n      if (!isMore)\n        return NULL;\n      else if (identity < m_size)\n        return m_dataOrQName.elementAt(identity);\n    }\n  }\n\n  /**\n   * Ask the CoRoutine parser to doTerminate and clear the reference.\n   */\n  public void clearCoRoutine()\n  {\n    clearCoRoutine(true);\n  }\n\n  /**\n   * Ask the CoRoutine parser to doTerminate and clear the reference. If\n   * the CoRoutine parser has already been cleared, this will have no effect.\n   *\n   * @param callDoTerminate true of doTerminate should be called on the\n   * coRoutine parser.\n   */\n  public void clearCoRoutine(boolean callDoTerminate)\n  {\n\n    if (null != m_incrementalSAXSource)\n    {\n      if (callDoTerminate)\n        m_incrementalSAXSource.deliverMoreNodes(false);\n\n      m_incrementalSAXSource = null;\n    }\n  }\n\n  /**\n   * Bind a IncrementalSAXSource to this DTM. If we discover we need nodes\n   * that have not yet been built, we will ask this object to send us more\n   * events, and it will manage interactions with its data sources.\n   *\n   * Note that we do not actually build the IncrementalSAXSource, since we don't\n   * know what source it's reading from, what thread that source will run in,\n   * or when it will run.\n   *\n   * @param incrementalSAXSource The parser that we want to recieve events from\n   * on demand.\n   */\n  public void setIncrementalSAXSource(IncrementalSAXSource incrementalSAXSource)\n  {\n\n    m_incrementalSAXSource = incrementalSAXSource;\n\n    incrementalSAXSource.setContentHandler(this);\n    incrementalSAXSource.setLexicalHandler(this);\n    incrementalSAXSource.setDTDHandler(this);\n\n  }\n\n  /**\n   * getContentHandler returns \"our SAX builder\" -- the thing that\n   * someone else should send SAX events to in order to extend this\n   * DTM model.\n   *\n   * %REVIEW% Should this return null if constrution already done/begun?\n   *\n   * @return null if this model doesn't respond to SAX events,\n   * \"this\" if the DTM object has a built-in SAX ContentHandler,\n   * the IncrementalSAXSource if we're bound to one and should receive\n   * the SAX stream via it for incremental build purposes...\n   */\n  public ContentHandler getContentHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (ContentHandler) m_incrementalSAXSource;\n    else\n      return this;\n  }\n\n  /**\n   * Return this DTM's lexical handler.\n   *\n   * %REVIEW% Should this return null if constrution already done/begun?\n   *\n   * @return null if this model doesn't respond to lexical SAX events,\n   * \"this\" if the DTM object has a built-in SAX ContentHandler,\n   * the IncrementalSAXSource if we're bound to one and should receive\n   * the SAX stream via it for incremental build purposes...\n   */\n  public LexicalHandler getLexicalHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (LexicalHandler) m_incrementalSAXSource;\n    else\n      return this;\n  }\n\n  /**\n   * Return this DTM's EntityResolver.\n   *\n   * @return null if this model doesn't respond to SAX entity ref events.\n   */\n  public EntityResolver getEntityResolver()\n  {\n    return this;\n  }\n\n  /**\n   * Return this DTM's DTDHandler.\n   *\n   * @return null if this model doesn't respond to SAX dtd events.\n   */\n  public DTDHandler getDTDHandler()\n  {\n    return this;\n  }\n\n  /**\n   * Return this DTM's ErrorHandler.\n   *\n   * @return null if this model doesn't respond to SAX error events.\n   */\n  public ErrorHandler getErrorHandler()\n  {\n    return this;\n  }\n\n  /**\n   * Return this DTM's DeclHandler.\n   *\n   * @return null if this model doesn't respond to SAX Decl events.\n   */\n  public DeclHandler getDeclHandler()\n  {\n    return this;\n  }\n\n  /**\n   * @return true iff we're building this model incrementally (eg\n   * we're partnered with a IncrementalSAXSource) and thus require that the\n   * transformation and the parse run simultaneously. Guidance to the\n   * DTMManager.\n   */\n  public boolean needsTwoThreads()\n  {\n    return null != m_incrementalSAXSource;\n  }\n\n  /**\n   * Directly call the\n   * characters method on the passed ContentHandler for the\n   * for the definition of a node's string-value). Multiple calls to the\n   * ContentHandler's characters methods may well occur for a single call to\n   * this method.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   * @param normalize true if the content should be normalized according to\n   * the rules for the XPath\n   * function.\n   *\n   * @throws SAXException\n   */\n  public void dispatchCharactersEvents(int nodeHandle, ContentHandler ch,\n                                       boolean normalize)\n          throws SAXException\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    \n    if (identity == DTM.NULL)\n      return;\n    \n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = m_dataOrQName.elementAt(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      if(normalize)\n        m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n      else\n        m_chars.sendSAXcharacters(ch, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int startNode = identity;\n\n        identity = firstChild;\n\n        do {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        } while (DTM.NULL != identity && (_parent(identity) >= startNode));\n\n        if (length > 0)\n        {\n          if(normalize)\n            m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n          else\n            m_chars.sendSAXcharacters(ch, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n\n        String str = m_valuesOrPrefixes.indexToString(dataIndex);\n\n          if(normalize)\n            FastStringBuffer.sendNormalizedSAXcharacters(str.toCharArray(),\n                                                         0, str.length(), ch);\n          else\n            ch.characters(str.toCharArray(), 0, str.length());\n      }\n    }\n  }\n\n\n  /**\n   * Given a node handle, return its DOM-style node name. This will\n   * include names such as #text or #document.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   * %REVIEW% Document when empty string is possible...\n   * %REVIEW-COMMENT% It should never be empty, should it?\n   */\n  public String getNodeName(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);\n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                     \n\n    if (0 == namespaceID)\n    {\n      int type = getNodeType(nodeHandle);\n\n      if (type == DTM.NAMESPACE_NODE)\n      {\n        if (null == m_expandedNameTable.getLocalName(expandedTypeID))\n          return \"xmlns\";\n        else\n          return \"xmlns:\" + m_expandedNameTable.getLocalName(expandedTypeID);\n      }\n      else if (0 == m_expandedNameTable.getLocalNameID(expandedTypeID))\n      {\n        return m_fixednames[type];\n      }\n      else\n        return m_expandedNameTable.getLocalName(expandedTypeID);\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);\n    }\n  }\n\n  /**\n   * Given a node handle, return the XPath node name.  This should be\n   * the name as described by the XPath data model, NOT the DOM-style\n   * name.\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Name of this node, which may be an empty string.\n   */\n  public String getNodeNameX(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);    \n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                      \n\n    if (0 == namespaceID)\n    {\n      String name = m_expandedNameTable.getLocalName(expandedTypeID);\n\n      if (name == null)\n        return \"\";\n      else\n        return name;\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);\n    }\n  }\n\n  /**\n   *     5. [specified] A flag indicating whether this attribute was actually\n   *        specified in the start-tag of its element, or was defaulted from the\n   *        DTD.\n   *\n   * @param attributeHandle Must be a valid handle to an attribute node.\n   * @return <code>true</code> if the attribute was specified;\n   *         <code>false</code> if it was defaulted.\n   */\n  public boolean isAttributeSpecified(int attributeHandle)\n  {\n\n  }\n\n  /**\n   *   A document type declaration information item has the following properties:\n   *\n   *     1. [system identifier] The system identifier of the external subset, if\n   *        it exists. Otherwise this property has no value.\n   *\n   * @return the system identifier String object, or null if there is none.\n   */\n  public String getDocumentTypeDeclarationSystemIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;\n  }\n\n  /**\n   * Get the next node identity value in the list, and call the iterator\n   * if it hasn't been added yet.\n   *\n   * @param identity The node identity (index).\n   * @return identity+1, or DTM.NULL.\n   */\n  protected int getNextNodeIdentity(int identity)\n  {\n\n    identity += 1;\n\n    while (identity >= m_size)\n    {\n      if (null == m_incrementalSAXSource)\n        return DTM.NULL;\n\n      nextNode();\n    }\n\n    return identity;\n  }\n\n  /**\n   * Directly create SAX parser events from a subtree.\n   *\n   * @param nodeHandle The node ID.\n   * @param ch A non-null reference to a ContentHandler.\n   *\n   * @throws org.xml.sax.SAXException\n   */\n  public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n\n    DTMTreeWalker treeWalker = m_walker;\n    ContentHandler prevCH = treeWalker.getcontentHandler();\n\n    if (null != prevCH)\n    {\n      treeWalker = new DTMTreeWalker();\n    }\n\n    treeWalker.setcontentHandler(ch);\n    treeWalker.setDTM(this);\n\n    try\n    {\n      treeWalker.traverse(nodeHandle);\n    }\n    finally\n    {\n      treeWalker.setcontentHandler(null);\n    }\n  }\n\n  /**\n   * Get the number of nodes that have been added.\n   *\n   * @return The number of that are currently in the tree.\n   */\n  public int getNumberOfNodes()\n  {\n    return m_size;\n  }\n\n  /**\n   * This method should try and build one or more nodes in the table.\n   *\n   * @return The true if a next node is found or false if\n   *         there are no more nodes.\n   */\n  protected boolean nextNode()\n  {\n\n    if (null == m_incrementalSAXSource)\n      return false;\n\n    if (m_endDocumentOccured)\n    {\n      clearCoRoutine();\n\n      return false;\n    }\n\n    Object gotMore = m_incrementalSAXSource.deliverMoreNodes(true);\n\n    if (!(gotMore instanceof Boolean))\n    {\n      if(gotMore instanceof RuntimeException)\n      {\n        throw (RuntimeException)gotMore;\n      }\n      else if(gotMore instanceof Exception)\n      {\n        throw new WrappedRuntimeException((Exception)gotMore);\n      }\n      clearCoRoutine();\n\n      return false;\n\n    }\n\n    if (gotMore != Boolean.TRUE)\n    {\n\n\n    }\n\n    return true;\n  }\n\n  /**\n   * Bottleneck determination of text type.\n   *\n   * @param type oneof DTM.XXX_NODE.\n   *\n   * @return true if this is a text or cdata section.\n   */\n  private final boolean isTextType(int type)\n  {\n    return (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type);\n  }\n\n\n  /**\n   * Construct the node map from the node.\n   *\n   * @param type raw type ID, one of DTM.XXX_NODE.\n   * @param expandedTypeID The expended type ID.\n   * @param parentIndex The current parent index.\n   * @param previousSibling The previous sibling index.\n   * @param dataOrPrefix index into m_data table, or string handle.\n   * @param canHaveFirstChild true if the node can have a first child, false\n   *                          if it is atomic.\n   *\n   * @return The index identity of the node that was added.\n   */\n  protected int addNode(int type, int expandedTypeID,\n                        int parentIndex, int previousSibling,\n                        int dataOrPrefix, boolean canHaveFirstChild)\n  {\n    int nodeIndex = m_size++;\n\n    if(m_dtmIdent.size() == (nodeIndex>>>DTMManager.IDENT_DTM_NODE_BITS))\n    {\n      addNewDTMID(nodeIndex);\n    }\n\n    m_firstch.addElement(canHaveFirstChild ? NOTPROCESSED : DTM.NULL);\n    m_nextsib.addElement(NOTPROCESSED);\n    m_parent.addElement(parentIndex);\n    m_exptype.addElement(expandedTypeID);\n    m_dataOrQName.addElement(dataOrPrefix);\n\n    if (m_prevsib != null) {\n      m_prevsib.addElement(previousSibling);\n    }\n\n    if (DTM.NULL != previousSibling) {\n      m_nextsib.setElementAt(nodeIndex,previousSibling);\n    }\n\n    if (m_locator != null && m_useSourceLocationProperty) {\n      setSourceLocation();\n    }\n\n\n    switch(type)\n    {\n    case DTM.NAMESPACE_NODE:\n      declareNamespaceInContext(parentIndex,nodeIndex);\n      break;\n    case DTM.ATTRIBUTE_NODE:\n      break;\n    default:\n      if (DTM.NULL == previousSibling && DTM.NULL != parentIndex) {\n        m_firstch.setElementAt(nodeIndex,parentIndex);\n      }\n      break;\n    }\n\n    return nodeIndex;\n  }\n\n  /**\n   * Get a new DTM ID beginning at the specified node index.\n   * @param  nodeIndex The node identity at which the new DTM ID will begin\n   * addressing.\n   */\n  protected void addNewDTMID(int nodeIndex) {\n    try\n    {\n      if(m_mgr==null)\n        throw new ClassCastException();\n                              \n      DTMManagerDefault mgrD=(DTMManagerDefault)m_mgr;\n      int id=mgrD.getFirstFreeDTMID();\n      mgrD.addDTM(this,id,nodeIndex);\n      m_dtmIdent.addElement(id<<DTMManager.IDENT_DTM_NODE_BITS);\n    }\n    catch(ClassCastException e)\n    {\n    }\n  }\n\n  /**\n    * Migrate a DTM built with an old DTMManager to a new DTMManager.\n    * After the migration, the new DTMManager will treat the DTM as\n    * one that is built by itself.\n    * This is used to support DTM sharing between multiple transformations.\n    * @param manager the DTMManager\n    */\n  public void migrateTo(DTMManager manager) {\n    super.migrateTo(manager);\n    \n    int numDTMs = m_dtmIdent.size();\n    int dtmId = m_mgrDefault.getFirstFreeDTMID();\n    int nodeIndex = 0;\n    for (int i = 0; i < numDTMs; i++)\n    {     \n      m_dtmIdent.setElementAt(dtmId << DTMManager.IDENT_DTM_NODE_BITS, i);\n      m_mgrDefault.addDTM(this, dtmId, nodeIndex);\n      dtmId++;\n      nodeIndex += (1 << DTMManager.IDENT_DTM_NODE_BITS);\n    }\n  }\n\n  /**\n   * Store the source location of the current node.  This method must be called\n   * as every node is added to the DTM or for no node.\n   */\n  protected void setSourceLocation() {\n    m_sourceSystemId.addElement(m_locator.getSystemId());\n    m_sourceLine.addElement(m_locator.getLineNumber());\n    m_sourceColumn.addElement(m_locator.getColumnNumber());\n\n    if (m_sourceSystemId.size() != m_size) {\n        String msg = \"CODING ERROR in Source Location: \" + m_size + \" != \"\n                    + m_sourceSystemId.size();\n        System.err.println(msg);\n        throw new RuntimeException(msg);\n    }\n  }\n\n  /**\n   * Given a node handle, return its node value. This is mostly\n   * as defined by the DOM, but may ignore some conveniences.\n   * <p>\n   *\n   * @param nodeHandle The node id.\n   * @return String Value of this node, or null if not\n   * meaningful for this node type.\n   */\n  public String getNodeValue(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_chars.getString(offset, length);\n    }\n    else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type\n             || DTM.DOCUMENT_NODE == type)\n    {\n      return null;\n    }\n    else\n    {\n      int dataIndex = _dataOrQName(identity);\n\n      if (dataIndex < 0)\n      {\n        dataIndex = -dataIndex;\n        dataIndex = m_data.elementAt(dataIndex + 1);\n      }\n\n      return m_valuesOrPrefixes.indexToString(dataIndex);\n    }\n  }\n\n  /**\n   * Given a node handle, return its XPath-style localname.\n   * (As defined in Namespaces, this is the portion of the name after any\n   * colon character).\n   *\n   * @param nodeHandle the id of the node.\n   * @return String Local name of this node.\n   */\n  public String getLocalName(int nodeHandle)\n  {\n    return m_expandedNameTable.getLocalName(_exptype(makeNodeIdentity(nodeHandle)));\n  }\n\n  /**\n   * The getUnparsedEntityURI function returns the URI of the unparsed\n   * entity with the specified name in the same document as the context\n   * node (see [3.3 Unparsed Entities]). It returns the empty string if\n   * there is no such entity.\n   * <p>\n   * XML processors may choose to use the System Identifier (if one\n   * is provided) to resolve the entity, rather than the URI in the\n   * Public Identifier. The details are dependent on the processor, and\n   * we would have to support some form of plug-in resolver to handle\n   * this properly. Currently, we simply return the System Identifier if\n   * present, and hope that it a usable URI or that our caller can\n   * map it to one.\n   * TODO: Resolve Public Identifiers... or consider changing function name.\n   * <p>\n   * If we find a relative URI\n   * reference, XML expects it to be resolved in terms of the base URI\n   * of the document. The DOM doesn't do that for us, and it isn't\n   * entirely clear whether that should be done here; currently that's\n   * pushed up to a higher level of our application. (Note that DOM Level\n   * 1 didn't store the document's base URI.)\n   * TODO: Consider resolving Relative URIs.\n   * <p>\n   * (The DOM's statement that \"An XML processor may choose to\n   * completely expand entities before the structure model is passed\n   * to the DOM\" refers only to parsed entities, not unparsed, and hence\n   * doesn't affect this function.)\n   *\n   * @param name A string containing the Entity Name of the unparsed\n   * entity.\n   *\n   * @return String containing the URI of the Unparsed Entity, or an\n   * empty string if no such entity exists.\n   */\n  public String getUnparsedEntityURI(String name)\n  {\n\n    String url = \"\";\n\n    if (null == m_entities)\n      return url;\n\n    int n = m_entities.size();\n\n    for (int i = 0; i < n; i += ENTITY_FIELDS_PER)\n    {\n      String ename = (String) m_entities.elementAt(i + ENTITY_FIELD_NAME);\n\n      if (null != ename && ename.equals(name))\n      {\n        String nname = (String) m_entities.elementAt(i\n                         + ENTITY_FIELD_NOTATIONNAME);\n\n        if (null != nname)\n        {\n\n          url = (String) m_entities.elementAt(i + ENTITY_FIELD_SYSTEMID);\n\n          if (null == url)\n          {\n            url = (String) m_entities.elementAt(i + ENTITY_FIELD_PUBLICID);\n          }\n        }\n\n        break;\n      }\n    }\n\n    return url;\n  }\n\n  /**\n   * Given a namespace handle, return the prefix that the namespace decl is\n   * mapping.\n   * Given a node handle, return the prefix used to map to the namespace.\n   *\n   * <p> %REVIEW% Are you sure you want \"\" for no prefix?  </p>\n   * <p> %REVIEW-COMMENT% I think so... not totally sure. -sb  </p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String prefix of this node's name, or \"\" if no explicit\n   * namespace prefix was given.\n   */\n  public String getPrefix(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (0 == prefixIndex)\n        return \"\";\n      else\n      {\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n    else if (DTM.ATTRIBUTE_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (prefixIndex < 0)\n      {\n        prefixIndex = m_data.elementAt(-prefixIndex);\n\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n\n    return \"\";\n  }\n\n  /**\n   * Retrieves an attribute node by by qualified name and namespace URI.\n   *\n   * @param nodeHandle int Handle of the node upon which to look up this attribute..\n   * @param namespaceURI The namespace URI of the attribute to\n   *   retrieve, or null.\n   * @param name The local name of the attribute to\n   *   retrieve.\n   * @return The attribute node handle with the specified name (\n   *   <code>nodeName</code>) or <code>DTM.NULL</code> if there is no such\n   *   attribute.\n   */\n  public int getAttributeNode(int nodeHandle, String namespaceURI,\n                              String name)\n  {\n\n    for (int attrH = getFirstAttribute(nodeHandle); DTM.NULL != attrH;\n            attrH = getNextAttribute(attrH))\n    {\n      String attrNS = getNamespaceURI(attrH);\n      String attrName = getLocalName(attrH);\n      boolean nsMatch = namespaceURI == attrNS\n                        || (namespaceURI != null\n                            && namespaceURI.equals(attrNS));\n\n      if (nsMatch && name.equals(attrName))\n        return attrH;\n    }\n\n    return DTM.NULL;\n  }\n\n  /**\n   * Return the public identifier of the external subset,\n   * normalized as described in 4.2.2 External Entities [XML]. If there is\n   * no external subset or if it has no public identifier, this property\n   * has no value.\n   *\n   * @return the public identifier String object, or null if there is none.\n   */\n  public String getDocumentTypeDeclarationPublicIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;\n  }\n\n  /**\n   * Given a node handle, return its DOM-style namespace URI\n   * (As defined in Namespaces, this is the declared URI which this node's\n   * prefix -- or default in lieu thereof -- was mapped to.)\n   *\n   * <p>%REVIEW% Null or \"\"? -sb</p>\n   *\n   * @param nodeHandle the id of the node.\n   * @return String URI value of this node's namespace, or null if no\n   * namespace was resolved.\n   */\n  public String getNamespaceURI(int nodeHandle)\n  {\n\n    return m_expandedNameTable.getNamespace(_exptype(makeNodeIdentity(nodeHandle)));\n  }\n\n  /**\n   * Get the string-value of a node as a String object\n   * for the definition of a node's string-value).\n   *\n   * @param nodeHandle The node ID.\n   *\n   * @return A string object that represents the string-value of the given node.\n   */\n  public XMLString getStringValue(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    int type;\n      type = DTM.NULL;\n    \n      type= _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_xstrf.newstr(m_chars, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int startNode = identity;\n\n        identity = firstChild;\n\n        do {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        } while (DTM.NULL != identity && (_parent(identity) >= startNode));\n\n        if (length > 0)\n        {\n          return m_xstrf.newstr(m_chars, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n        return m_xstrf.newstr(m_valuesOrPrefixes.indexToString(dataIndex));\n      }\n    }\n\n    return m_xstrf.emptystr();\n  }\n  \n  /**\n   * Determine if the string-value of a node is whitespace\n   *\n   * @param nodeHandle The node Handle.\n   *\n   * @return Return true if the given node is whitespace.\n   */\n  public boolean isWhitespace(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    int type;\n      type = DTM.NULL;\n    \n      type= _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_chars.isWhitespace(offset, length);\n    }\n    return false;\n  }\n\n  /**\n   * Returns the <code>Element</code> whose <code>ID</code> is given by\n   * <code>elementId</code>. If no such element exists, returns\n   * <code>DTM.NULL</code>. Behavior is not defined if more than one element\n   * has this <code>ID</code>. Attributes (including those\n   * with the name \"ID\") are not of type ID unless so defined by DTD/Schema\n   * information available to the DTM implementation.\n   * Implementations that do not know whether attributes are of type ID or\n   * not are expected to return <code>DTM.NULL</code>.\n   *\n   * <p>%REVIEW% Presumably IDs are still scoped to a single document,\n   * and this operation searches only within a single document, right?\n   * Wouldn't want collisions between DTMs in the same process.</p>\n   *\n   * @param elementId The unique <code>id</code> value for an element.\n   * @return The handle of the matching element.\n   */\n  public int getElementById(String elementId)\n  {\n\n    Integer intObj;\n    boolean isMore = true;\n\n    do\n    {\n      intObj = (Integer) m_idAttributes.get(elementId);\n\n      if (null != intObj)\n        return makeNodeHandle(intObj.intValue());\n\n      if (!isMore || m_endDocumentOccured)\n        break;\n\n      isMore = nextNode();\n    }\n    while (null == intObj);\n\n    return DTM.NULL;\n  }\n\n  /**\n   * Get a prefix either from the qname or from the uri mapping, or just make\n   * one up!\n   *\n   * @param qname The qualified name, which may be null.\n   * @param uri The namespace URI, which may be null.\n   *\n   * @return The prefix if there is one, or null.\n   */\n  public String getPrefix(String qname, String uri)\n  {\n\n    String prefix;\n    int uriIndex = -1;\n\n    if (null != uri && uri.length() > 0)\n    {\n\n      do\n      {\n        uriIndex = m_prefixMappings.indexOf(uri, ++uriIndex);\n      } while ( (uriIndex & 0x01) == 0);\n\n      if (uriIndex >= 0)\n      {\n        prefix = (String) m_prefixMappings.elementAt(uriIndex - 1);\n      }\n      else if (null != qname)\n      {\n        int indexOfNSSep = qname.indexOf(':');\n\n        if (qname.equals(\"xmlns\"))\n          prefix = \"\";\n        else if (qname.startsWith(\"xmlns:\"))\n          prefix = qname.substring(indexOfNSSep + 1);\n        else\n          prefix = (indexOfNSSep > 0)\n                   ? qname.substring(0, indexOfNSSep) : null;\n      }\n      else\n      {\n        prefix = null;\n      }\n    }\n    else if (null != qname)\n    {\n      int indexOfNSSep = qname.indexOf(':');\n\n      if (indexOfNSSep > 0)\n      {\n        if (qname.startsWith(\"xmlns:\"))\n          prefix = qname.substring(indexOfNSSep + 1);\n        else\n          prefix = qname.substring(0, indexOfNSSep);\t\n      }\n      else\n      {\n      \tif (qname.equals(\"xmlns\"))\n      \t  prefix = \"\";\n      \telse\n      \t  prefix = null;\n      }\n    }\n    else\n    {\n      prefix = null;\n    }\n\n    return prefix;\n  }\n  \n  /**\n   * Get a prefix either from the uri mapping, or just make\n   * one up!\n   *\n   * @param uri The namespace URI, which may be null.\n   *\n   * @return The prefix if there is one, or null.\n   */\n  public int getIdForNamespace(String uri)\n  {\n\n     return m_valuesOrPrefixes.stringToIndex(uri);\n    \n  }\n\n    /**\n   * Get a prefix either from the qname or from the uri mapping, or just make\n   * one up!\n   *\n   * @return The prefix if there is one, or null.\n   */\n  public String getNamespaceURI(String prefix)\n  {\n\n    String uri = \"\";\n    int prefixIndex = m_contextIndexes.peek() - 1 ;\n\n    if(null == prefix)\n      prefix = \"\";\n\n      do\n      {\n        prefixIndex = m_prefixMappings.indexOf(prefix, ++prefixIndex);\n      } while ( (prefixIndex >= 0) && (prefixIndex & 0x01) == 0x01);\n\n      if (prefixIndex > -1)\n      {\n        uri = (String) m_prefixMappings.elementAt(prefixIndex + 1);\n      }\n\n\n    return uri;\n  }\n\n  /**\n   * Set an ID string to node association in the ID table.\n   *\n   * @param id The ID string.\n   * @param elem The associated element handle.\n   */\n  public void setIDAttribute(String id, int elem)\n  {\n    m_idAttributes.put(id, new Integer(elem));\n  }\n\n  /**\n   * Check whether accumulated text should be stripped; if not,\n   * append the appropriate flavor of text/cdata node.\n   */\n  protected void charactersFlush()\n  {\n\n    {\n      int length = m_chars.size() - m_textPendingStart;\n      boolean doStrip = false;\n\n      if (getShouldStripWhitespace())\n      {\n        doStrip = m_chars.isWhitespace(m_textPendingStart, length);\n      }\n\n      if (doStrip) {\n      } else {\n        if (length > 0) {\n          int exName = m_expandedNameTable.getExpandedTypeID(DTM.TEXT_NODE);\n          int dataIndex = m_data.size();\n\n          m_previous = addNode(m_coalescedTextType, exName,\n                               m_parents.peek(), m_previous, dataIndex, false);\n\n          m_data.addElement(m_textPendingStart);\n          m_data.addElement(length);\n        }\n      }\n\n      m_textPendingStart = -1;\n      m_textType = m_coalescedTextType = DTM.TEXT_NODE;\n    }\n  }\n\n\n  /**\n   * Resolve an external entity.\n   *\n   * <p>Always return null, so that the parser will use the system\n   * identifier provided in the XML document.  This method implements\n   * the SAX default behaviour: application writers can override it\n   * in a subclass to do special translations such as catalog lookups\n   * or URI redirection.</p>\n   *\n   * @param publicId The public identifer, or null if none is\n   *                 available.\n   * @param systemId The system identifier provided in the XML\n   *                 document.\n   * @return The new input source, or null to require the\n   *         default behaviour.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.EntityResolver#resolveEntity\n   *\n   * @throws SAXException\n   */\n  public InputSource resolveEntity(String publicId, String systemId)\n          throws SAXException\n  {\n    return null;\n  }\n\n\n  /**\n   * Receive notification of a notation declaration.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass if they wish to keep track of the notations\n   * declared in a document.</p>\n   *\n   * @param name The notation name.\n   * @param publicId The notation public identifier, or null if not\n   *                 available.\n   * @param systemId The notation system identifier.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.DTDHandler#notationDecl\n   *\n   * @throws SAXException\n   */\n  public void notationDecl(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n  }\n\n  /**\n   * Receive notification of an unparsed entity declaration.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to keep track of the unparsed entities\n   * declared in a document.</p>\n   *\n   * @param name The entity name.\n   * @param publicId The entity public identifier, or null if not\n   *                 available.\n   * @param systemId The entity system identifier.\n   * @param notationName The name of the associated notation.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   *\n   * @throws SAXException\n   */\n  public void unparsedEntityDecl(\n          String name, String publicId, String systemId, String notationName)\n            throws SAXException\n  {\n\n    if (null == m_entities)\n    {\n      m_entities = new Vector();\n    }\n\n    try\n    {\n      systemId = SystemIDResolver.getAbsoluteURI(systemId,\n                                                 getDocumentBaseURI());\n    }\n    catch (Exception e)\n    {\n      throw new org.xml.sax.SAXException(e);\n    }\n\n    m_entities.addElement(publicId);\n\n    m_entities.addElement(systemId);\n\n    m_entities.addElement(notationName);\n\n    m_entities.addElement(name);\n  }\n\n\n  /**\n   * Receive a Locator object for document events.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass if they wish to store the locator for use\n   * with other document events.</p>\n   *\n   * @param locator A locator for all SAX document events.\n   * @see org.xml.sax.ContentHandler#setDocumentLocator\n   * @see org.xml.sax.Locator\n   */\n  public void setDocumentLocator(Locator locator)\n  {\n    m_locator = locator;\n    m_systemId = locator.getSystemId();\n  }\n\n  /**\n   * Receive notification of the beginning of the document.\n   *\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startDocument\n   */\n  public void startDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"startDocument\");\n\n\t\t\n    int doc = addNode(DTM.DOCUMENT_NODE,\n                      m_expandedNameTable.getExpandedTypeID(DTM.DOCUMENT_NODE),\n                      DTM.NULL, DTM.NULL, 0, true);\n\n    m_parents.push(doc);\n    m_previous = DTM.NULL;\n\n  }\n\n  /**\n   * Receive notification of the end of the document.\n   *\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endDocument\n   */\n  public void endDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endDocument\");\n\n\t\tcharactersFlush();\n\n    m_nextsib.setElementAt(NULL,0);\n\n    if (m_firstch.elementAt(0) == NOTPROCESSED)\n      m_firstch.setElementAt(NULL,0);\n\n    if (DTM.NULL != m_previous)\n      m_nextsib.setElementAt(DTM.NULL,m_previous);\n\n    m_parents = null;\n    m_prefixMappings = null;\n    m_contextIndexes = null;\n\n    m_endDocumentOccured = true;\n    \n    m_locator = null;\n  }\n\n  /**\n   * Receive notification of the start of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each Namespace prefix scope (such as storing the prefix mapping).</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @param uri The Namespace URI mapped to the prefix.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startPrefixMapping\n   */\n  public void startPrefixMapping(String prefix, String uri)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"startPrefixMapping: prefix: \" + prefix + \", uri: \"\n                         + uri);\n\n    if(null == prefix)\n      prefix = \"\";\n  }\n\n  /**\n   * Receive notification of the end of a Namespace mapping.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the end of\n   * each prefix mapping.</p>\n   *\n   * @param prefix The Namespace prefix being declared.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endPrefixMapping\n   */\n  public void endPrefixMapping(String prefix) throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endPrefixMapping: prefix: \" + prefix);\n\n    if(null == prefix)\n      prefix = \"\";\n\n    int index = m_contextIndexes.peek() - 1;\n\n    do\n    {\n      index = m_prefixMappings.indexOf(prefix, ++index);\n    } while ( (index >= 0) && ((index & 0x01) == 0x01) );\n\n\n    if (index > -1)\n    {\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index);\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index + 1);\n    }\n\n  }\n\n  /**\n   * Check if a declaration has already been made for a given prefix.\n   *\n   * @param prefix non-null prefix string.\n   *\n   * @return true if the declaration has already been declared in the\n   *         current context.\n   */\n  protected boolean declAlreadyDeclared(String prefix)\n  {\n\n    int startDecls = m_contextIndexes.peek();\n    java.util.Vector prefixMappings = m_prefixMappings;\n    int nDecls = prefixMappings.size();\n\n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      String prefixDecl = (String) prefixMappings.elementAt(i);\n\n      if (prefixDecl == null)\n        continue;\n\n      if (prefixDecl.equals(prefix))\n        return true;\n    }\n\n    return false;\n  }\n\n\tboolean m_pastFirstElement=false;\n\n  /**\n   * Receive notification of the start of an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the start of\n   * each element (such as allocating a new tree node or writing\n   * output to a file).</p>\n   *\n   * @param uri The Namespace URI, or the empty string if the\n   *        element has no Namespace URI or if Namespace\n   *        processing is not being performed.\n   * @param localName The local name (without prefix), or the\n   *        empty string if Namespace processing is not being\n   *        performed.\n   * @param qName The qualified name (with prefix), or the\n   *        empty string if qualified names are not available.\n   * @param attributes The specified or defaulted attributes.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#startElement\n   */\n  public void startElement(\n          String uri, String localName, String qName, Attributes attributes)\n            throws SAXException\n  {\n   if (DEBUG)\n\t {\n      System.out.println(\"startElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName+\", atts: \" + attributes);\n\n\t\t\tboolean DEBUG_ATTRS=true;\n\t\t\tif(DEBUG_ATTRS & attributes!=null)\n\t\t\t{\n\t\t\t\tint n = attributes.getLength();\n\t\t\t\tif(n==0)\n\t\t\t\t\tSystem.out.println(\"\\tempty attribute list\");\n\t\t\t\telse for (int i = 0; i < n; i++)\n\t\t\t\t\tSystem.out.println(\"\\t attr: uri: \" + attributes.getURI(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", localname: \" + attributes.getLocalName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", qname: \" + attributes.getQName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", type: \" + attributes.getType(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", value: \" + attributes.getValue(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t}\n\t }\n\t\t\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(uri, localName, DTM.ELEMENT_NODE);\n    String prefix = getPrefix(qName, uri);\n    int prefixIndex = (null != prefix)\n                      ? m_valuesOrPrefixes.stringToIndex(qName) : 0;\n\n    int elemNode = addNode(DTM.ELEMENT_NODE, exName,\n                           m_parents.peek(), m_previous, prefixIndex, true);\n\n    if(m_indexing)\n      indexNode(exName, elemNode);\n    \n\n    m_parents.push(elemNode);\n\n    int startDecls = m_contextIndexes.peek();\n    int nDecls = m_prefixMappings.size();\n    int prev = DTM.NULL;\n\n    if(!m_pastFirstElement)\n    {\n      prefix=\"xml\";\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n      m_pastFirstElement=true;\n    }\n\n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      prefix = (String) m_prefixMappings.elementAt(i);\n\n      if (prefix == null)\n        continue;\n\n      String declURL = (String) m_prefixMappings.elementAt(i + 1);\n\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n    }\n\n    int n = attributes.getLength();\n\n    for (int i = 0; i < n; i++)\n    {\n      String attrUri = attributes.getURI(i);\n      String attrQName = attributes.getQName(i);\n      String valString = attributes.getValue(i);\n\n      prefix = getPrefix(attrQName, attrUri);\n\n      int nodeType;\n      \n       String attrLocalName = attributes.getLocalName(i);\n\n      if ((null != attrQName)\n              && (attrQName.equals(\"xmlns\")\n                  || attrQName.startsWith(\"xmlns:\")))\n      {\n        if (declAlreadyDeclared(prefix))\n\n        nodeType = DTM.NAMESPACE_NODE;\n      }\n      else\n      {\n        nodeType = DTM.ATTRIBUTE_NODE;\n\n        if (attributes.getType(i).equalsIgnoreCase(\"ID\"))\n          setIDAttribute(valString, elemNode);\n      }\n\n      if(null == valString)\n        valString = \"\";\n\n      int val = m_valuesOrPrefixes.stringToIndex(valString);\n\n      if (null != prefix)\n      {\n\n        prefixIndex = m_valuesOrPrefixes.stringToIndex(attrQName);\n\n        int dataIndex = m_data.size();\n\n        m_data.addElement(prefixIndex);\n        m_data.addElement(val);\n\n        val = -dataIndex;\n      }\n\n      exName = m_expandedNameTable.getExpandedTypeID(attrUri, attrLocalName, nodeType);\n      prev = addNode(nodeType, exName, elemNode, prev, val,\n                     false);\n    }\n\n    if (DTM.NULL != prev)\n      m_nextsib.setElementAt(DTM.NULL,prev);\n\n    if (null != m_wsfilter)\n    {\n      short wsv = m_wsfilter.getShouldStripSpace(makeNodeHandle(elemNode), this);\n      boolean shouldStrip = (DTMWSFilter.INHERIT == wsv)\n                            ? getShouldStripWhitespace()\n                            : (DTMWSFilter.STRIP == wsv);\n\n      pushShouldStripWhitespace(shouldStrip);\n    }\n\n    m_previous = DTM.NULL;\n\n  }\n\n  /**\n   * Receive notification of the end of an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions at the end of\n   * each element (such as finalising a tree node or writing\n   * output to a file).</p>\n   *\n   * @param uri The Namespace URI, or the empty string if the\n   *        element has no Namespace URI or if Namespace\n   *        processing is not being performed.\n   * @param localName The local name (without prefix), or the\n   *        empty string if Namespace processing is not being\n   *        performed.\n   * @param qName The qualified XML 1.0 name (with prefix), or the\n   *        empty string if qualified names are not available.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#endElement\n   */\n  public void endElement(String uri, String localName, String qName)\n          throws SAXException\n  {\n   if (DEBUG)\n      System.out.println(\"endElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName);\n\n    charactersFlush();\n\n    m_contextIndexes.quickPop(1);\n\n    int topContextIndex = m_contextIndexes.peek();\n    if (topContextIndex != m_prefixMappings.size()) {\n      m_prefixMappings.setSize(topContextIndex);\n    }\n\n    int lastNode = m_previous;\n\n    m_previous = m_parents.pop();\n\n    if (DTM.NULL == lastNode)\n      m_firstch.setElementAt(DTM.NULL,m_previous);\n    else\n      m_nextsib.setElementAt(DTM.NULL,lastNode);\n\n    popShouldStripWhitespace();\n  }\n\n  /**\n   * Receive notification of character data inside an element.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method to take specific actions for each chunk of character data\n   * (such as adding the data to a node or buffer, or printing it to\n   * a file).</p>\n   *\n   * @param ch The characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#characters\n   */\n  public void characters(char ch[], int start, int length) throws SAXException\n  {\n    if(true){\n      m_textPendingStart = m_chars.size();\n      m_coalescedTextType = m_textType;\n    }\n    else if (m_textType == DTM.TEXT_NODE)\n    {\n      m_coalescedTextType = DTM.TEXT_NODE;\n    }\n\n    m_chars.append(ch, start, length);\n  }\n\n  /**\n   * Receive notification of ignorable whitespace in element content.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method to take specific actions for each chunk of ignorable\n   * whitespace (such as adding data to a node or buffer, or printing\n   * it to a file).</p>\n   *\n   * @param ch The whitespace characters.\n   * @param start The start position in the character array.\n   * @param length The number of characters to use from the\n   *               character array.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#ignorableWhitespace\n   */\n  public void ignorableWhitespace(char ch[], int start, int length)\n          throws SAXException\n  {\n\n    characters(ch, start, length);\n  }\n\n  /**\n   * Receive notification of a processing instruction.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param target The processing instruction target.\n   * @param data The processing instruction data, or null if\n   *             none is supplied.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   */\n  public void processingInstruction(String target, String data)\n          throws SAXException\n  {\n    if (DEBUG)\n\t\t System.out.println(\"processingInstruction: target: \" + target +\", data: \"+data);\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(null, target,\n                                         DTM.PROCESSING_INSTRUCTION_NODE);\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(data);\n\n    m_previous = addNode(DTM.PROCESSING_INSTRUCTION_NODE, exName,\n                         m_parents.peek(), m_previous,\n                         dataIndex, false);\n  }\n\n  /**\n   * Receive notification of a skipped entity.\n   *\n   * <p>By default, do nothing.  Application writers may override this\n   * method in a subclass to take specific actions for each\n   * processing instruction, such as setting status variables or\n   * invoking other methods.</p>\n   *\n   * @param name The name of the skipped entity.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ContentHandler#processingInstruction\n   */\n  public void skippedEntity(String name) throws SAXException\n  {\n\n  }\n\n\n  /**\n   * Receive notification of a parser warning.\n   *\n   * <p>The default implementation does nothing.  Application writers\n   * may override this method in a subclass to take specific actions\n   * for each warning, such as inserting the message in a log file or\n   * printing it to the console.</p>\n   *\n   * @param e The warning information encoded as an exception.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ErrorHandler#warning\n   * @see org.xml.sax.SAXParseException\n   */\n  public void warning(SAXParseException e) throws SAXException\n  {\n\n    System.err.println(e.getMessage());\n  }\n\n  /**\n   * Receive notification of a recoverable parser error.\n   *\n   * <p>The default implementation does nothing.  Application writers\n   * may override this method in a subclass to take specific actions\n   * for each error, such as inserting the message in a log file or\n   * printing it to the console.</p>\n   *\n   * @param e The warning information encoded as an exception.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ErrorHandler#warning\n   * @see org.xml.sax.SAXParseException\n   */\n  public void error(SAXParseException e) throws SAXException\n  {\n    throw e;\n  }\n\n  /**\n   * Report a fatal XML parsing error.\n   *\n   * <p>The default implementation throws a SAXParseException.\n   * Application writers may override this method in a subclass if\n   * they need to take specific actions for each fatal error (such as\n   * collecting all of the errors into a single report): in any case,\n   * the application must stop all regular processing when this\n   * method is invoked, since the document is no longer reliable, and\n   * the parser may no longer report parsing events.</p>\n   *\n   * @param e The error information encoded as an exception.\n   * @throws SAXException Any SAX exception, possibly\n   *            wrapping another exception.\n   * @see org.xml.sax.ErrorHandler#fatalError\n   * @see org.xml.sax.SAXParseException\n   */\n  public void fatalError(SAXParseException e) throws SAXException\n  {\n    throw e;\n  }\n\n\n  /**\n   * Report an element type declaration.\n   *\n   * <p>The content model will consist of the string \"EMPTY\", the\n   * string \"ANY\", or a parenthesised group, optionally followed\n   * by an occurrence indicator.  The model will be normalized so\n   * that all whitespace is removed,and will include the enclosing\n   * parentheses.</p>\n   *\n   * @param name The element type name.\n   * @param model The content model as a normalized string.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void elementDecl(String name, String model) throws SAXException\n  {\n\n  }\n\n  /**\n   * Report an attribute type declaration.\n   *\n   * <p>Only the effective (first) declaration for an attribute will\n   * be reported.  The type will be one of the strings \"CDATA\",\n   * \"ID\", \"IDREF\", \"IDREFS\", \"NMTOKEN\", \"NMTOKENS\", \"ENTITY\",\n   * \"ENTITIES\", or \"NOTATION\", or a parenthesized token group with\n   * the separator \"|\" and all whitespace removed.</p>\n   *\n   * @param eName The name of the associated element.\n   * @param aName The name of the attribute.\n   * @param type A string representing the attribute type.\n   * @param valueDefault A string representing the attribute default\n   *        (\"#IMPLIED\", \"#REQUIRED\", or \"#FIXED\") or null if\n   *        none of these applies.\n   * @param value A string representing the attribute's default value,\n   *        or null if there is none.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void attributeDecl(\n          String eName, String aName, String type, String valueDefault, String value)\n            throws SAXException\n  {\n\n  }\n\n  /**\n   * Report an internal entity declaration.\n   *\n   * <p>Only the effective (first) declaration for each entity\n   * will be reported.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @param value The replacement text of the entity.\n   * @throws SAXException The application may raise an exception.\n   * @see #externalEntityDecl\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void internalEntityDecl(String name, String value)\n          throws SAXException\n  {\n\n  }\n\n  /**\n   * Report a parsed external entity declaration.\n   *\n   * <p>Only the effective (first) declaration for each entity\n   * will be reported.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @param publicId The declared public identifier of the entity, or\n   *        null if none was declared.\n   * @param systemId The declared system identifier of the entity.\n   * @throws SAXException The application may raise an exception.\n   * @see #internalEntityDecl\n   * @see org.xml.sax.DTDHandler#unparsedEntityDecl\n   */\n  public void externalEntityDecl(\n          String name, String publicId, String systemId) throws SAXException\n  {\n\n  }\n\n\n  /**\n   * Report the start of DTD declarations, if any.\n   *\n   * <p>Any declarations are assumed to be in the internal subset\n   * unless otherwise indicated by a {@link #startEntity startEntity}\n   * event.</p>\n   *\n   * <p>Note that the start/endDTD events will appear within\n   * the start/endDocument events from ContentHandler and\n   * before the first startElement event.</p>\n   *\n   * @param name The document type name.\n   * @param publicId The declared public identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @param systemId The declared system identifier for the\n   *        external DTD subset, or null if none was declared.\n   * @throws SAXException The application may raise an\n   *            exception.\n   * @see #endDTD\n   * @see #startEntity\n   */\n  public void startDTD(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n    m_insideDTD = true;\n  }\n\n  /**\n   * Report the end of DTD declarations.\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #startDTD\n   */\n  public void endDTD() throws SAXException\n  {\n\n    m_insideDTD = false;\n  }\n\n  /**\n   * Report the beginning of an entity in content.\n   *\n   * <p><strong>NOTE:</entity> entity references in attribute\n   * values -- and the start and end of the document entity --\n   * are never reported.</p>\n   *\n   * <p>The start and end of the external DTD subset are reported\n   * using the pseudo-name \"[dtd]\".  All other events must be\n   * properly nested within start/end entity events.</p>\n   *\n   * <p>Note that skipped entities will be reported through the\n   * {@link org.xml.sax.ContentHandler#skippedEntity skippedEntity}\n   * event, which is part of the ContentHandler interface.</p>\n   *\n   * @param name The name of the entity.  If it is a parameter\n   *        entity, the name will begin with '%'.\n   * @throws SAXException The application may raise an exception.\n   * @see #endEntity\n   * @see org.xml.sax.ext.DeclHandler#internalEntityDecl\n   * @see org.xml.sax.ext.DeclHandler#externalEntityDecl\n   */\n  public void startEntity(String name) throws SAXException\n  {\n\n  }\n\n  /**\n   * Report the end of an entity.\n   *\n   * @param name The name of the entity that is ending.\n   * @throws SAXException The application may raise an exception.\n   * @see #startEntity\n   */\n  public void endEntity(String name) throws SAXException\n  {\n\n  }\n\n  /**\n   * Report the start of a CDATA section.\n   *\n   * <p>The contents of the CDATA section will be reported through\n   * the regular {@link org.xml.sax.ContentHandler#characters\n   * characters} event.</p>\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #endCDATA\n   */\n  public void startCDATA() throws SAXException\n  {\n    m_textType = DTM.CDATA_SECTION_NODE;\n  }\n\n  /**\n   * Report the end of a CDATA section.\n   *\n   * @throws SAXException The application may raise an exception.\n   * @see #startCDATA\n   */\n  public void endCDATA() throws SAXException\n  {\n    m_textType = DTM.TEXT_NODE;\n  }\n\n  /**\n   * Report an XML comment anywhere in the document.\n   *\n   * <p>This callback will be used for comments inside or outside the\n   * document element, including comments in the external DTD\n   * subset (if read).</p>\n   *\n   * @param ch An array holding the characters in the comment.\n   * @param start The starting position in the array.\n   * @param length The number of characters to use from the array.\n   * @throws SAXException The application may raise an exception.\n   */\n  public void comment(char ch[], int start, int length) throws SAXException\n  {\n\n      return;\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(DTM.COMMENT_NODE);\n\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(new String(ch, start,\n                      length));\n\n\n    m_previous = addNode(DTM.COMMENT_NODE, exName,\n                         m_parents.peek(), m_previous, dataIndex, false);\n  }\n\n  /**\n   * Set a run time property for this DTM instance.\n   * \n   * %REVIEW% Now that we no longer use this method to support\n   * getSourceLocatorFor, can we remove it?\n   *\n   * @param property a <code>String</code> value\n   * @param value an <code>Object</code> value\n   */\n  public void setProperty(String property, Object value)\n  {\n  }\n\n  /** Retrieve the SourceLocator associated with a specific node.\n   * This is only meaningful if the XalanProperties.SOURCE_LOCATION flag was\n   * set True using setProperty; if it was never set, or was set false, we\n   * will return null. \n   * \n   * (We _could_ return a locator with the document's base URI and bogus \n   * line/column information. Trying that; see the else clause.)\n   * */\n  public SourceLocator getSourceLocatorFor(int node)\n  {\n    if (m_useSourceLocationProperty)\n    {\n\n      node = makeNodeIdentity(node);\n      \n\n      return new NodeLocator(null,\n                             m_sourceSystemId.elementAt(node),\n                             m_sourceLine.elementAt(node),\n                             m_sourceColumn.elementAt(node));\n    }\n    else if(m_locator!=null)\n    {\n    \treturn new NodeLocator(null,m_locator.getSystemId(),-1,-1);\n    }\n    else if(m_systemId!=null)\n    {\n    \treturn new NodeLocator(null,m_systemId,-1,-1);\n    }\n    return null;\n  }\n  \n  public String getFixedNames(int type){\n    return m_fixednames[type];", "functions": [{"function_name": "setUseSourceLocation", "code": "  public void setUseSourceLocation(boolean useSourceLocation)\n  {\n    m_useSourceLocationProperty = useSourceLocation;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "_dataOrQName", "code": "  protected int _dataOrQName(int identity)\n  {\n\n    if (identity < m_size)\n      return m_dataOrQName.elementAt(identity);\n\n    while (true)\n    {\n      boolean isMore = nextNode();\n\n      if (!isMore)\n        return NULL;\n      else if (identity < m_size)\n        return m_dataOrQName.elementAt(identity);", "ast_nodes": ["FUNC_DECL", "LOOP", "IF", "PARAM", "LITERAL_ANCHOR", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "IF", "RETURN", "RETURN", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [2, 6], [1, 7], [1, 8], [5, 9], [7, 10], [7, 11], [10, 12], [10, 13], [8, 14], [12, 15], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 2], [7, 1], [8, 1], [9, 5], [10, 7], [11, 7], [12, 10], [13, 10], [14, 8], [15, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15]]}, {"function_name": "clearCoRoutine", "code": "  public void clearCoRoutine()\n  {\n    clearCoRoutine(true);", "ast_nodes": ["FUNC_DECL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "clearCoRoutine", "code": "  public void clearCoRoutine(boolean callDoTerminate)\n  {\n\n    if (null != m_incrementalSAXSource)\n    {\n      if (callDoTerminate)\n        m_incrementalSAXSource.deliverMoreNodes(false);\n\n      m_incrementalSAXSource = null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "IF", "LITERAL_ANCHOR", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [3, 5], [1, 6], [6, 7], [4, 8], [8, 9], [1, 0], [2, 0], [3, 1], [4, 1], [5, 3], [6, 1], [7, 6], [8, 4], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "setIncrementalSAXSource", "code": "  public void setIncrementalSAXSource(IncrementalSAXSource incrementalSAXSource)\n  {\n\n    m_incrementalSAXSource = incrementalSAXSource;\n\n    incrementalSAXSource.setContentHandler(this);\n    incrementalSAXSource.setLexicalHandler(this);\n    incrementalSAXSource.setDTDHandler(this);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getContentHandler", "code": "  public ContentHandler getContentHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (ContentHandler) m_incrementalSAXSource;\n    else\n      return this;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 0], [2, 1], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getLexicalHandler", "code": "  public LexicalHandler getLexicalHandler()\n  {\n\n    if (m_incrementalSAXSource instanceof IncrementalSAXSource_Filter)\n      return (LexicalHandler) m_incrementalSAXSource;\n    else\n      return this;", "ast_nodes": ["FUNC_DECL", "IF", "RETURN", "RETURN", "BINARY_OP"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 0], [2, 1], [3, 1], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getEntityResolver", "code": "  public EntityResolver getEntityResolver()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDTDHandler", "code": "  public DTDHandler getDTDHandler()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getErrorHandler", "code": "  public ErrorHandler getErrorHandler()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDeclHandler", "code": "  public DeclHandler getDeclHandler()\n  {\n    return this;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "needsTwoThreads", "code": "  public boolean needsTwoThreads()\n  {\n    return null != m_incrementalSAXSource;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "dispatchCharactersEvents", "code": "  public void dispatchCharactersEvents(int nodeHandle, ContentHandler ch,\n                                       boolean normalize)\n          throws SAXException\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    \n    if (identity == DTM.NULL)\n      return;\n    \n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = m_dataOrQName.elementAt(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      if(normalize)\n        m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n      else\n        m_chars.sendSAXcharacters(ch, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int startNode = identity;\n\n        identity = firstChild;\n\n        do {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        } while (DTM.NULL != identity && (_parent(identity) >= startNode));\n\n        if (length > 0)\n        {\n          if(normalize)\n            m_chars.sendNormalizedSAXcharacters(ch, offset, length);\n          else\n            m_chars.sendSAXcharacters(ch, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n\n        String str = m_valuesOrPrefixes.indexToString(dataIndex);\n\n          if(normalize)\n            FastStringBuffer.sendNormalizedSAXcharacters(str.toCharArray(),\n                                                         0, str.length(), ch);\n          else\n            ch.characters(str.toCharArray(), 0, str.length());", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "CALL", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "BINARY_OP", "IF", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [1, 8], [3, 9], [3, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [2, 17], [4, 18], [11, 19], [11, 20], [19, 21], [11, 22], [11, 23], [11, 24], [11, 25], [11, 26], [12, 27], [13, 28], [13, 29], [14, 30], [15, 31], [16, 32], [19, 33], [19, 34], [19, 35], [19, 36], [22, 37], [23, 38], [11, 39], [30, 40], [35, 41], [22, 42], [37, 43], [23, 44], [38, 45], [38, 46], [25, 47], [26, 48], [40, 49], [33, 50], [33, 51], [34, 52], [41, 53], [36, 54], [23, 55], [44, 56], [23, 57], [45, 58], [50, 59], [50, 60], [50, 61], [51, 62], [51, 63], [51, 64], [35, 65], [35, 66], [42, 67], [42, 68], [55, 69], [44, 70], [44, 71], [57, 72], [65, 73], [44, 74], [70, 75], [73, 76], [74, 77], [75, 78], [71, 79], [76, 80], [77, 81], [70, 82], [81, 83], [82, 84], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 1], [9, 3], [10, 3], [11, 1], [12, 1], [13, 1], [14, 1], [15, 1], [16, 1], [17, 2], [18, 4], [19, 11], [20, 11], [21, 19], [22, 11], [23, 11], [24, 11], [25, 11], [26, 11], [27, 12], [28, 13], [29, 13], [30, 14], [31, 15], [32, 16], [33, 19], [34, 19], [35, 19], [36, 19], [37, 22], [38, 23], [39, 11], [40, 30], [41, 35], [42, 22], [43, 37], [44, 23], [45, 38], [46, 38], [47, 25], [48, 26], [49, 40], [50, 33], [51, 33], [52, 34], [53, 41], [54, 36], [55, 23], [56, 44], [57, 23], [58, 45], [59, 50], [60, 50], [61, 50], [62, 51], [63, 51], [64, 51], [65, 35], [66, 35], [67, 42], [68, 42], [69, 55], [70, 44], [71, 44], [72, 57], [73, 65], [74, 44], [75, 70], [76, 73], [77, 74], [78, 75], [79, 71], [80, 76], [81, 77], [82, 70], [83, 81], [84, 82], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84]]}, {"function_name": "getNodeName", "code": "  public String getNodeName(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);\n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                     \n\n    if (0 == namespaceID)\n    {\n      int type = getNodeType(nodeHandle);\n\n      if (type == DTM.NAMESPACE_NODE)\n      {\n        if (null == m_expandedNameTable.getLocalName(expandedTypeID))\n          return \"xmlns\";\n        else\n          return \"xmlns:\" + m_expandedNameTable.getLocalName(expandedTypeID);\n      }\n      else if (0 == m_expandedNameTable.getLocalNameID(expandedTypeID))\n      {\n        return m_fixednames[type];\n      }\n      else\n        return m_expandedNameTable.getLocalName(expandedTypeID);\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "IF", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "IF", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "RETURN", "RETURN", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [2, 12], [3, 13], [6, 14], [7, 15], [9, 16], [9, 17], [15, 18], [8, 19], [16, 20], [16, 21], [9, 22], [10, 23], [7, 24], [7, 25], [19, 26], [20, 27], [16, 28], [21, 29], [21, 30], [22, 31], [22, 32], [22, 33], [24, 34], [31, 35], [32, 36], [33, 37], [33, 38], [35, 39], [35, 40], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 2], [13, 3], [14, 6], [15, 7], [16, 9], [17, 9], [18, 15], [19, 8], [20, 16], [21, 16], [22, 9], [23, 10], [24, 7], [25, 7], [26, 19], [27, 20], [28, 16], [29, 21], [30, 21], [31, 22], [32, 22], [33, 22], [34, 24], [35, 31], [36, 32], [37, 33], [38, 33], [39, 35], [40, 35], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40]]}, {"function_name": "getNodeNameX", "code": "  public String getNodeNameX(int nodeHandle)\n  {\n\n    int expandedTypeID = getExpandedTypeID(nodeHandle);    \n    int namespaceID = m_expandedNameTable.getNamespaceID(expandedTypeID);                      \n\n    if (0 == namespaceID)\n    {\n      String name = m_expandedNameTable.getLocalName(expandedTypeID);\n\n      if (name == null)\n        return \"\";\n      else\n        return name;\n    }\n    else\n    {\n      int qnameIndex = m_dataOrQName.elementAt(makeNodeIdentity(nodeHandle));\n\n      if (qnameIndex < 0)\n      {\n        qnameIndex = -qnameIndex;\n        qnameIndex = m_data.elementAt(qnameIndex);\n      }\n\n      return m_valuesOrPrefixes.indexToString(qnameIndex);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "RETURN", "IF", "VAR_DECL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "RETURN", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [5, 11], [2, 12], [3, 13], [6, 14], [7, 15], [9, 16], [9, 17], [9, 18], [15, 19], [8, 20], [17, 21], [18, 22], [10, 23], [7, 24], [7, 25], [20, 26], [24, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1], [10, 1], [11, 5], [12, 2], [13, 3], [14, 6], [15, 7], [16, 9], [17, 9], [18, 9], [19, 15], [20, 8], [21, 17], [22, 18], [23, 10], [24, 7], [25, 7], [26, 20], [27, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "isAttributeSpecified", "code": "  public boolean isAttributeSpecified(int attributeHandle)", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocumentTypeDeclarationSystemIdentifier", "code": "  public String getDocumentTypeDeclarationSystemIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNextNodeIdentity", "code": "  protected int getNextNodeIdentity(int identity)\n  {\n\n    identity += 1;\n\n    while (identity >= m_size)\n    {\n      if (null == m_incrementalSAXSource)\n        return DTM.NULL;\n\n      nextNode();\n    }\n\n    return identity;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "BINARY_OP", "ASSIGN", "IF", "LITERAL_ANCHOR", "CALL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [0, 5], [2, 6], [5, 7], [2, 8], [6, 9], [6, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 0], [6, 2], [7, 5], [8, 2], [9, 6], [10, 6], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "dispatchToEvents", "code": "  public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch)\n          throws org.xml.sax.SAXException\n  {\n\n    DTMTreeWalker treeWalker = m_walker;\n    ContentHandler prevCH = treeWalker.getcontentHandler();\n\n    if (null != prevCH)\n    {\n      treeWalker = new DTMTreeWalker();\n    }\n\n    treeWalker.setcontentHandler(ch);\n    treeWalker.setDTM(this);\n\n    try\n    {\n      treeWalker.traverse(nodeHandle);\n    }\n    finally\n    {\n      treeWalker.setcontentHandler(null);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [2, 9], [1, 10], [1, 11], [9, 12], [3, 13], [10, 14], [2, 15], [15, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 2], [10, 1], [11, 1], [12, 9], [13, 3], [14, 10], [15, 2], [16, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "getNumberOfNodes", "code": "  public int getNumberOfNodes()\n  {\n    return m_size;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "nextNode", "code": "  protected boolean nextNode()\n  {\n\n    if (null == m_incrementalSAXSource)\n      return false;\n\n    if (m_endDocumentOccured)\n    {\n      clearCoRoutine();\n\n      return false;\n    }\n\n    Object gotMore = m_incrementalSAXSource.deliverMoreNodes(true);\n\n    if (!(gotMore instanceof Boolean))\n    {\n      if(gotMore instanceof RuntimeException)\n      {\n        throw (RuntimeException)gotMore;\n      }\n      else if(gotMore instanceof Exception)\n      {\n        throw new WrappedRuntimeException((Exception)gotMore);\n      }\n      clearCoRoutine();\n\n      return false;\n\n    }\n\n    if (gotMore != Boolean.TRUE)\n    {\n\n\n    }\n\n    return true;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "IF", "VAR_DECL", "IF", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "IF", "CALL", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "IF", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "THROW_RAISE", "THROW_RAISE", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [3, 9], [6, 10], [6, 11], [3, 12], [3, 13], [4, 14], [5, 15], [10, 16], [11, 17], [12, 18], [3, 19], [13, 20], [13, 21], [14, 22], [15, 23], [5, 24], [20, 25], [13, 26], [20, 27], [27, 28], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 3], [10, 6], [11, 6], [12, 3], [13, 3], [14, 4], [15, 5], [16, 10], [17, 11], [18, 12], [19, 3], [20, 13], [21, 13], [22, 14], [23, 15], [24, 5], [25, 20], [26, 13], [27, 20], [28, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28]]}, {"function_name": "isTextType", "code": "  private final boolean isTextType(int type)\n  {\n    return (DTM.TEXT_NODE == type || DTM.CDATA_SECTION_NODE == type);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "addNode", "code": "  protected int addNode(int type, int expandedTypeID,\n                        int parentIndex, int previousSibling,\n                        int dataOrPrefix, boolean canHaveFirstChild)\n  {\n    int nodeIndex = m_size++;\n\n    if(m_dtmIdent.size() == (nodeIndex>>>DTMManager.IDENT_DTM_NODE_BITS))\n    {\n      addNewDTMID(nodeIndex);\n    }\n\n    m_firstch.addElement(canHaveFirstChild ? NOTPROCESSED : DTM.NULL);\n    m_nextsib.addElement(NOTPROCESSED);\n    m_parent.addElement(parentIndex);\n    m_exptype.addElement(expandedTypeID);\n    m_dataOrQName.addElement(dataOrPrefix);\n\n    if (m_prevsib != null) {\n      m_prevsib.addElement(previousSibling);\n    }\n\n    if (DTM.NULL != previousSibling) {\n      m_nextsib.setElementAt(nodeIndex,previousSibling);\n    }\n\n    if (m_locator != null && m_useSourceLocationProperty) {\n      setSourceLocation();\n    }\n\n\n    switch(type)\n    {\n    case DTM.NAMESPACE_NODE:\n      declareNamespaceInContext(parentIndex,nodeIndex);\n      break;\n    case DTM.ATTRIBUTE_NODE:\n      break;\n    default:\n      if (DTM.NULL == previousSibling && DTM.NULL != parentIndex) {\n        m_firstch.setElementAt(nodeIndex,parentIndex);\n      }\n      break;\n    }\n\n    return nodeIndex;", "ast_nodes": ["FUNC_DECL", "RETURN", "SWITCH", "IF", "IF", "IF", "IF", "VAR_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "BREAK_CONTINUE", "IF", "BREAK_CONTINUE", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [3, 14], [4, 15], [5, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [6, 22], [2, 23], [2, 24], [2, 25], [2, 26], [14, 27], [16, 28], [21, 29], [22, 30], [22, 31], [24, 32], [2, 33], [3, 34], [27, 35], [4, 36], [5, 37], [6, 38], [32, 39], [32, 40], [24, 41], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 3], [15, 4], [16, 5], [17, 0], [18, 0], [19, 0], [20, 0], [21, 0], [22, 6], [23, 2], [24, 2], [25, 2], [26, 2], [27, 14], [28, 16], [29, 21], [30, 22], [31, 22], [32, 24], [33, 2], [34, 3], [35, 27], [36, 4], [37, 5], [38, 6], [39, 32], [40, 32], [41, 24], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41]]}, {"function_name": "addNewDTMID", "code": "  protected void addNewDTMID(int nodeIndex) {\n    try\n    {\n      if(m_mgr==null)\n        throw new ClassCastException();\n                              \n      DTMManagerDefault mgrD=(DTMManagerDefault)m_mgr;\n      int id=mgrD.getFirstFreeDTMID();\n      mgrD.addDTM(this,id,nodeIndex);\n      m_dtmIdent.addElement(id<<DTMManager.IDENT_DTM_NODE_BITS);", "ast_nodes": ["FUNC_DECL", "TRY", "PARAM", "CATCH", "VAR_DECL", "VAR_DECL", "IF", "CALL", "CALL", "THROW_RAISE", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [6, 9], [6, 10], [7, 11], [4, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 6], [10, 6], [11, 7], [12, 4], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "migrateTo", "code": "  public void migrateTo(DTMManager manager) {\n    super.migrateTo(manager);\n    \n    int numDTMs = m_dtmIdent.size();\n    int dtmId = m_mgrDefault.getFirstFreeDTMID();\n    int nodeIndex = 0;\n    for (int i = 0; i < numDTMs; i++)\n    {     \n      m_dtmIdent.setElementAt(dtmId << DTMManager.IDENT_DTM_NODE_BITS, i);\n      m_mgrDefault.addDTM(this, dtmId, nodeIndex);\n      dtmId++;\n      nodeIndex += (1 << DTMManager.IDENT_DTM_NODE_BITS);", "ast_nodes": ["FUNC_DECL", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [3, 8], [4, 9], [1, 10], [1, 11], [1, 12], [1, 13], [10, 14], [12, 15], [14, 16], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 3], [9, 4], [10, 1], [11, 1], [12, 1], [13, 1], [14, 10], [15, 12], [16, 14], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "setSourceLocation", "code": "  protected void setSourceLocation() {\n    m_sourceSystemId.addElement(m_locator.getSystemId());\n    m_sourceLine.addElement(m_locator.getLineNumber());\n    m_sourceColumn.addElement(m_locator.getColumnNumber());\n\n    if (m_sourceSystemId.size() != m_size) {\n        String msg = \"CODING ERROR in Source Location: \" + m_size + \" != \"\n                    + m_sourceSystemId.size();\n        System.err.println(msg);\n        throw new RuntimeException(msg);", "ast_nodes": ["FUNC_DECL", "IF", "BINARY_OP", "CALL", "CALL", "CALL", "THROW_RAISE", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [2, 8], [3, 9], [4, 10], [5, 11], [6, 12], [1, 13], [7, 14], [14, 15], [14, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 1], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 2], [9, 3], [10, 4], [11, 5], [12, 6], [13, 1], [14, 7], [15, 14], [16, 14], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "getNodeValue", "code": "  public String getNodeValue(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_chars.getString(offset, length);\n    }\n    else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type\n             || DTM.DOCUMENT_NODE == type)\n    {\n      return null;\n    }\n    else\n    {\n      int dataIndex = _dataOrQName(identity);\n\n      if (dataIndex < 0)\n      {\n        dataIndex = -dataIndex;\n        dataIndex = m_data.elementAt(dataIndex + 1);\n      }\n\n      return m_valuesOrPrefixes.indexToString(dataIndex);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "IF", "CALL", "BINARY_OP", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [1, 8], [1, 9], [1, 10], [1, 11], [2, 12], [3, 13], [5, 14], [5, 15], [5, 16], [5, 17], [7, 18], [7, 19], [8, 20], [14, 21], [15, 22], [17, 23], [19, 24], [19, 25], [9, 26], [10, 27], [11, 28], [22, 29], [16, 30], [26, 31], [15, 32], [15, 33], [31, 34], [32, 35], [35, 36], [36, 37], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 1], [9, 1], [10, 1], [11, 1], [12, 2], [13, 3], [14, 5], [15, 5], [16, 5], [17, 5], [18, 7], [19, 7], [20, 8], [21, 14], [22, 15], [23, 17], [24, 19], [25, 19], [26, 9], [27, 10], [28, 11], [29, 22], [30, 16], [31, 26], [32, 15], [33, 15], [34, 31], [35, 32], [36, 35], [37, 36], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37]]}, {"function_name": "getLocalName", "code": "  public String getLocalName(int nodeHandle)\n  {\n    return m_expandedNameTable.getLocalName(_exptype(makeNodeIdentity(nodeHandle)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getUnparsedEntityURI", "code": "  public String getUnparsedEntityURI(String name)\n  {\n\n    String url = \"\";\n\n    if (null == m_entities)\n      return url;\n\n    int n = m_entities.size();\n\n    for (int i = 0; i < n; i += ENTITY_FIELDS_PER)\n    {\n      String ename = (String) m_entities.elementAt(i + ENTITY_FIELD_NAME);\n\n      if (null != ename && ename.equals(name))\n      {\n        String nname = (String) m_entities.elementAt(i\n                         + ENTITY_FIELD_NOTATIONNAME);\n\n        if (null != nname)\n        {\n\n          url = (String) m_entities.elementAt(i + ENTITY_FIELD_SYSTEMID);\n\n          if (null == url)\n          {\n            url = (String) m_entities.elementAt(i + ENTITY_FIELD_PUBLICID);\n          }\n        }\n\n        break;\n      }\n    }\n\n    return url;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "ASSIGN", "BINARY_OP", "RETURN", "BINARY_OP", "IF", "VAR_DECL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BREAK_CONTINUE", "IF", "VAR_DECL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "CALL", "BINARY_OP", "CALL", "BINARY_OP"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [4, 9], [4, 10], [2, 11], [2, 12], [3, 13], [10, 14], [5, 15], [11, 16], [2, 17], [11, 18], [11, 19], [11, 20], [16, 21], [16, 22], [19, 23], [22, 24], [12, 25], [19, 26], [23, 27], [25, 28], [26, 29], [19, 30], [20, 31], [29, 32], [31, 33], [26, 34], [30, 35], [35, 36], [34, 37], [37, 38], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 4], [10, 4], [11, 2], [12, 2], [13, 3], [14, 10], [15, 5], [16, 11], [17, 2], [18, 11], [19, 11], [20, 11], [21, 16], [22, 16], [23, 19], [24, 22], [25, 12], [26, 19], [27, 23], [28, 25], [29, 26], [30, 19], [31, 20], [32, 29], [33, 31], [34, 26], [35, 30], [36, 35], [37, 34], [38, 37], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38]]}, {"function_name": "getPrefix", "code": "  public String getPrefix(int nodeHandle)\n  {\n\n    int identity = makeNodeIdentity(nodeHandle);\n    int type = _type(identity);\n\n    if (DTM.ELEMENT_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (0 == prefixIndex)\n        return \"\";\n      else\n      {\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n    else if (DTM.ATTRIBUTE_NODE == type)\n    {\n      int prefixIndex = _dataOrQName(identity);\n\n      if (prefixIndex < 0)\n      {\n        prefixIndex = m_data.elementAt(-prefixIndex);\n\n        String qname = m_valuesOrPrefixes.indexToString(prefixIndex);\n\n        return getPrefix(qname, null);\n      }\n    }\n\n    return \"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "IF", "VAR_DECL", "CALL", "CALL", "IF", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "RETURN", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [2, 8], [7, 9], [2, 10], [2, 11], [3, 12], [4, 13], [7, 14], [7, 15], [10, 16], [10, 17], [14, 18], [10, 19], [10, 20], [16, 21], [17, 22], [11, 23], [14, 24], [14, 25], [18, 26], [15, 27], [19, 28], [24, 29], [14, 30], [28, 31], [20, 32], [29, 33], [25, 34], [30, 35], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 2], [9, 7], [10, 2], [11, 2], [12, 3], [13, 4], [14, 7], [15, 7], [16, 10], [17, 10], [18, 14], [19, 10], [20, 10], [21, 16], [22, 17], [23, 11], [24, 14], [25, 14], [26, 18], [27, 15], [28, 19], [29, 24], [30, 14], [31, 28], [32, 20], [33, 29], [34, 25], [35, 30], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35]]}, {"function_name": "getAttributeNode", "code": "  public int getAttributeNode(int nodeHandle, String namespaceURI,\n                              String name)\n  {\n\n    for (int attrH = getFirstAttribute(nodeHandle); DTM.NULL != attrH;\n            attrH = getNextAttribute(attrH))\n    {\n      String attrNS = getNamespaceURI(attrH);\n      String attrName = getLocalName(attrH);\n      boolean nsMatch = namespaceURI == attrNS\n                        || (namespaceURI != null\n                            && namespaceURI.equals(attrNS));\n\n      if (nsMatch && name.equals(attrName))\n        return attrH;\n    }\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "RETURN", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 10], [2, 11], [6, 12], [8, 13], [8, 14], [2, 15], [14, 16], [9, 17], [10, 18], [11, 19], [17, 20], [17, 21], [20, 22], [20, 23], [23, 24], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 2], [10, 2], [11, 2], [12, 6], [13, 8], [14, 8], [15, 2], [16, 14], [17, 9], [18, 10], [19, 11], [20, 17], [21, 17], [22, 20], [23, 20], [24, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24]]}, {"function_name": "getDocumentTypeDeclarationPublicIdentifier", "code": "  public String getDocumentTypeDeclarationPublicIdentifier()\n  {\n\n    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */\n\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getNamespaceURI", "code": "  public String getNamespaceURI(int nodeHandle)\n  {\n\n    return m_expandedNameTable.getNamespace(_exptype(makeNodeIdentity(nodeHandle)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [4, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getStringValue", "code": "  public XMLString getStringValue(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    int type;\n      type = DTM.NULL;\n    \n      type= _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_xstrf.newstr(m_chars, offset, length);\n    }\n    else\n    {\n      int firstChild = _firstch(identity);\n\n      if (DTM.NULL != firstChild)\n      {\n        int offset = -1;\n        int length = 0;\n        int startNode = identity;\n\n        identity = firstChild;\n\n        do {\n          type = _type(identity);\n\n          if (isTextType(type))\n          {\n            int dataIndex = _dataOrQName(identity);\n\n            if (-1 == offset)\n            {\n              offset = m_data.elementAt(dataIndex);\n            }\n\n            length += m_data.elementAt(dataIndex + 1);\n          }\n\n          identity = getNextNodeIdentity(identity);\n        } while (DTM.NULL != identity && (_parent(identity) >= startNode));\n\n        if (length > 0)\n        {\n          return m_xstrf.newstr(m_chars, offset, length);\n        }\n      }\n      else if(type != DTM.ELEMENT_NODE)\n      {\n        int dataIndex = _dataOrQName(identity);\n\n        if (dataIndex < 0)\n        {\n          dataIndex = -dataIndex;\n          dataIndex = m_data.elementAt(dataIndex + 1);\n        }\n        return m_xstrf.newstr(m_valuesOrPrefixes.indexToString(dataIndex));\n      }\n    }\n\n    return m_xstrf.emptystr();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "CALL", "CALL", "ASSIGN", "ASSIGN", "IF", "VAR_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "IF", "BINARY_OP", "CALL", "BINARY_OP", "IF", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "RETURN", "IF", "VAR_DECL", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "ASSIGN", "CALL", "ASSIGN", "ASSIGN", "CALL", "IF", "VAR_DECL", "CALL", "CALL", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [2, 10], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [8, 16], [4, 17], [10, 18], [10, 19], [12, 20], [18, 21], [10, 22], [10, 23], [10, 24], [10, 25], [10, 26], [11, 27], [13, 28], [14, 29], [15, 30], [18, 31], [18, 32], [18, 33], [22, 34], [23, 35], [10, 36], [28, 37], [31, 38], [32, 39], [22, 40], [34, 41], [23, 42], [35, 43], [35, 44], [25, 45], [26, 46], [37, 47], [38, 48], [39, 49], [33, 50], [40, 51], [23, 52], [42, 53], [23, 54], [43, 55], [32, 56], [32, 57], [52, 58], [42, 59], [42, 60], [54, 61], [56, 62], [42, 63], [59, 64], [62, 65], [63, 66], [64, 67], [60, 68], [65, 69], [66, 70], [59, 71], [70, 72], [71, 73], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 2], [11, 2], [12, 2], [13, 2], [14, 2], [15, 2], [16, 8], [17, 4], [18, 10], [19, 10], [20, 12], [21, 18], [22, 10], [23, 10], [24, 10], [25, 10], [26, 10], [27, 11], [28, 13], [29, 14], [30, 15], [31, 18], [32, 18], [33, 18], [34, 22], [35, 23], [36, 10], [37, 28], [38, 31], [39, 32], [40, 22], [41, 34], [42, 23], [43, 35], [44, 35], [45, 25], [46, 26], [47, 37], [48, 38], [49, 39], [50, 33], [51, 40], [52, 23], [53, 42], [54, 23], [55, 43], [56, 32], [57, 32], [58, 52], [59, 42], [60, 42], [61, 54], [62, 56], [63, 42], [64, 59], [65, 62], [66, 63], [67, 64], [68, 60], [69, 65], [70, 66], [71, 59], [72, 70], [73, 71], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73]]}, {"function_name": "isWhitespace", "code": "  public boolean isWhitespace(int nodeHandle)\n  {\n    int identity = makeNodeIdentity(nodeHandle);\n    int type;\n      type = DTM.NULL;\n    \n      type= _type(identity);\n\n    if (isTextType(type))\n    {\n      int dataIndex = _dataOrQName(identity);\n      int offset = m_data.elementAt(dataIndex);\n      int length = m_data.elementAt(dataIndex + 1);\n\n      return m_chars.isWhitespace(offset, length);\n    }\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [2, 7], [0, 8], [0, 9], [2, 10], [2, 11], [2, 12], [2, 13], [8, 14], [4, 15], [10, 16], [11, 17], [12, 18], [13, 19], [17, 20], [20, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 2], [8, 0], [9, 0], [10, 2], [11, 2], [12, 2], [13, 2], [14, 8], [15, 4], [16, 10], [17, 11], [18, 12], [19, 13], [20, 17], [21, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getElementById", "code": "  public int getElementById(String elementId)\n  {\n\n    Integer intObj;\n    boolean isMore = true;\n\n    do\n    {\n      intObj = (Integer) m_idAttributes.get(elementId);\n\n      if (null != intObj)\n        return makeNodeHandle(intObj.intValue());\n\n      if (!isMore || m_endDocumentOccured)\n        break;\n\n      isMore = nextNode();\n    }\n    while (null == intObj);\n\n    return DTM.NULL;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "IF", "IF", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "RETURN", "BINARY_OP", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [2, 7], [2, 8], [6, 9], [3, 10], [2, 11], [7, 12], [7, 13], [8, 14], [8, 15], [2, 16], [11, 17], [14, 18], [15, 19], [18, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [7, 2], [8, 2], [9, 6], [10, 3], [11, 2], [12, 7], [13, 7], [14, 8], [15, 8], [16, 2], [17, 11], [18, 14], [19, 15], [20, 18], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getPrefix", "code": "  public String getPrefix(String qname, String uri)\n  {\n\n    String prefix;\n    int uriIndex = -1;\n\n    if (null != uri && uri.length() > 0)\n    {\n\n      do\n      {\n        uriIndex = m_prefixMappings.indexOf(uri, ++uriIndex);\n      } while ( (uriIndex & 0x01) == 0);\n\n      if (uriIndex >= 0)\n      {\n        prefix = (String) m_prefixMappings.elementAt(uriIndex - 1);\n      }\n      else if (null != qname)\n      {\n        int indexOfNSSep = qname.indexOf(':');\n\n        if (qname.equals(\"xmlns\"))\n          prefix = \"\";\n        else if (qname.startsWith(\"xmlns:\"))\n          prefix = qname.substring(indexOfNSSep + 1);\n        else\n          prefix = (indexOfNSSep > 0)\n                   ? qname.substring(0, indexOfNSSep) : null;\n      }\n      else\n      {\n        prefix = null;\n      }\n    }\n    else if (null != qname)\n    {\n      int indexOfNSSep = qname.indexOf(':');\n\n      if (indexOfNSSep > 0)\n      {\n        if (qname.startsWith(\"xmlns:\"))\n          prefix = qname.substring(indexOfNSSep + 1);\n        else\n          prefix = qname.substring(0, indexOfNSSep);\t\n      }\n      else\n      {\n      \tif (qname.equals(\"xmlns\"))\n      \t  prefix = \"\";\n      \telse\n      \t  prefix = null;\n      }\n    }\n    else\n    {\n      prefix = null;\n    }\n\n    return prefix;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "IF", "BINARY_OP", "BINARY_OP", "IF", "LOOP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "IF", "VAR_DECL", "LITERAL_ANCHOR", "IF", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "IF", "IF", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "ASSIGN", "IF", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [2, 8], [7, 9], [2, 10], [2, 11], [8, 12], [8, 13], [3, 14], [7, 15], [7, 16], [9, 17], [10, 18], [10, 19], [11, 20], [12, 21], [12, 22], [13, 23], [7, 24], [15, 25], [18, 26], [19, 27], [20, 28], [20, 29], [24, 30], [15, 31], [15, 32], [25, 33], [16, 34], [18, 35], [18, 36], [26, 37], [10, 38], [11, 39], [29, 40], [31, 41], [32, 42], [34, 43], [18, 44], [35, 45], [35, 46], [39, 47], [31, 48], [31, 49], [41, 50], [32, 51], [32, 52], [42, 53], [44, 54], [45, 55], [35, 56], [46, 57], [36, 58], [38, 59], [48, 60], [49, 61], [51, 62], [52, 63], [45, 64], [45, 65], [55, 66], [56, 67], [58, 68], [59, 69], [62, 70], [63, 71], [64, 72], [65, 73], [69, 74], [71, 75], [72, 76], [72, 77], [72, 78], [73, 79], [77, 80], [78, 81], [79, 82], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 2], [9, 7], [10, 2], [11, 2], [12, 8], [13, 8], [14, 3], [15, 7], [16, 7], [17, 9], [18, 10], [19, 10], [20, 11], [21, 12], [22, 12], [23, 13], [24, 7], [25, 15], [26, 18], [27, 19], [28, 20], [29, 20], [30, 24], [31, 15], [32, 15], [33, 25], [34, 16], [35, 18], [36, 18], [37, 26], [38, 10], [39, 11], [40, 29], [41, 31], [42, 32], [43, 34], [44, 18], [45, 35], [46, 35], [47, 39], [48, 31], [49, 31], [50, 41], [51, 32], [52, 32], [53, 42], [54, 44], [55, 45], [56, 35], [57, 46], [58, 36], [59, 38], [60, 48], [61, 49], [62, 51], [63, 52], [64, 45], [65, 45], [66, 55], [67, 56], [68, 58], [69, 59], [70, 62], [71, 63], [72, 64], [73, 65], [74, 69], [75, 71], [76, 72], [77, 72], [78, 72], [79, 73], [80, 77], [81, 78], [82, 79], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82]]}, {"function_name": "getIdForNamespace", "code": "  public int getIdForNamespace(String uri)\n  {\n\n     return m_valuesOrPrefixes.stringToIndex(uri);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 0], [2, 0], [3, 1], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getNamespaceURI", "code": "  public String getNamespaceURI(String prefix)\n  {\n\n    String uri = \"\";\n    int prefixIndex = m_contextIndexes.peek() - 1 ;\n\n    if(null == prefix)\n      prefix = \"\";\n\n      do\n      {\n        prefixIndex = m_prefixMappings.indexOf(prefix, ++prefixIndex);\n      } while ( (prefixIndex >= 0) && (prefixIndex & 0x01) == 0x01);\n\n      if (prefixIndex > -1)\n      {\n        uri = (String) m_prefixMappings.elementAt(prefixIndex + 1);\n      }\n\n\n    return uri;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [2, 8], [3, 9], [4, 10], [8, 11], [9, 12], [9, 13], [4, 14], [10, 15], [5, 16], [6, 17], [2, 18], [3, 19], [12, 20], [12, 21], [13, 22], [14, 23], [16, 24], [16, 25], [19, 26], [21, 27], [18, 28], [28, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 2], [9, 3], [10, 4], [11, 8], [12, 9], [13, 9], [14, 4], [15, 10], [16, 5], [17, 6], [18, 2], [19, 3], [20, 12], [21, 12], [22, 13], [23, 14], [24, 16], [25, 16], [26, 19], [27, 21], [28, 18], [29, 28], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "setIDAttribute", "code": "  public void setIDAttribute(String id, int elem)\n  {\n    m_idAttributes.put(id, new Integer(elem));", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "charactersFlush", "code": "  protected void charactersFlush()\n  {\n\n    {\n      int length = m_chars.size() - m_textPendingStart;\n      boolean doStrip = false;\n\n      if (getShouldStripWhitespace())\n      {\n        doStrip = m_chars.isWhitespace(m_textPendingStart, length);\n      }\n\n      if (doStrip) {\n      } else {\n        if (length > 0) {\n          int exName = m_expandedNameTable.getExpandedTypeID(DTM.TEXT_NODE);\n          int dataIndex = m_data.size();\n\n          m_previous = addNode(m_coalescedTextType, exName,\n                               m_parents.peek(), m_previous, dataIndex, false);\n\n          m_data.addElement(m_textPendingStart);\n          m_data.addElement(length);\n        }\n      }\n\n      m_textPendingStart = -1;\n      m_textType = m_coalescedTextType = DTM.TEXT_NODE;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "ASSIGN", "ASSIGN", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "ASSIGN", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [2, 7], [5, 8], [6, 9], [1, 10], [3, 11], [4, 12], [10, 13], [2, 14], [12, 15], [10, 16], [10, 17], [13, 18], [14, 19], [10, 20], [10, 21], [10, 22], [22, 23], [16, 24], [17, 25], [23, 26], [23, 27], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 2], [8, 5], [9, 6], [10, 1], [11, 3], [12, 4], [13, 10], [14, 2], [15, 12], [16, 10], [17, 10], [18, 13], [19, 14], [20, 10], [21, 10], [22, 10], [23, 22], [24, 16], [25, 17], [26, 23], [27, 23], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27]]}, {"function_name": "resolveEntity", "code": "  public InputSource resolveEntity(String publicId, String systemId)\n          throws SAXException\n  {\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [1, 0], [2, 0], [3, 0], [4, 1], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "notationDecl", "code": "  public void notationDecl(String name, String publicId, String systemId)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "unparsedEntityDecl", "code": "  public void unparsedEntityDecl(\n          String name, String publicId, String systemId, String notationName)\n            throws SAXException\n  {\n\n    if (null == m_entities)\n    {\n      m_entities = new Vector();\n    }\n\n    try\n    {\n      systemId = SystemIDResolver.getAbsoluteURI(systemId,\n                                                 getDocumentBaseURI());\n    }\n    catch (Exception e)\n    {\n      throw new org.xml.sax.SAXException(e);\n    }\n\n    m_entities.addElement(publicId);\n\n    m_entities.addElement(systemId);\n\n    m_entities.addElement(notationName);\n\n    m_entities.addElement(name);", "ast_nodes": ["FUNC_DECL", "TRY", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CATCH", "BINARY_OP", "THROW_RAISE", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [1, 11], [2, 12], [11, 13], [1, 14], [12, 15], [13, 16], [14, 17], [2, 18], [17, 19], [18, 20], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 1], [12, 2], [13, 11], [14, 1], [15, 12], [16, 13], [17, 14], [18, 2], [19, 17], [20, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]}, {"function_name": "setDocumentLocator", "code": "  public void setDocumentLocator(Locator locator)\n  {\n    m_locator = locator;\n    m_systemId = locator.getSystemId();", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "startDocument", "code": "  public void startDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"startDocument\");\n\n\t\t\n    int doc = addNode(DTM.DOCUMENT_NODE,\n                      m_expandedNameTable.getExpandedTypeID(DTM.DOCUMENT_NODE),\n                      DTM.NULL, DTM.NULL, 0, true);\n\n    m_parents.push(doc);\n    m_previous = DTM.NULL;", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "IF", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [5, 7], [5, 8], [5, 9], [6, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 5], [8, 5], [9, 5], [10, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "endDocument", "code": "  public void endDocument() throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endDocument\");\n\n\t\tcharactersFlush();\n\n    m_nextsib.setElementAt(NULL,0);\n\n    if (m_firstch.elementAt(0) == NOTPROCESSED)\n      m_firstch.setElementAt(NULL,0);\n\n    if (DTM.NULL != m_previous)\n      m_nextsib.setElementAt(DTM.NULL,m_previous);\n\n    m_parents = null;\n    m_prefixMappings = null;\n    m_contextIndexes = null;\n\n    m_endDocumentOccured = true;\n    \n    m_locator = null;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "IF", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 9], [2, 10], [0, 11], [0, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [1, 18], [2, 19], [10, 20], [11, 21], [3, 22], [19, 23], [20, 24], [22, 25], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 1], [10, 2], [11, 0], [12, 0], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 1], [19, 2], [20, 10], [21, 11], [22, 3], [23, 19], [24, 20], [25, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25]]}, {"function_name": "startPrefixMapping", "code": "  public void startPrefixMapping(String prefix, String uri)\n          throws SAXException\n  {\n\n    if (DEBUG)\n      System.out.println(\"startPrefixMapping: prefix: \" + prefix + \", uri: \"\n                         + uri);\n\n    if(null == prefix)\n      prefix = \"\";", "ast_nodes": ["FUNC_DECL", "IF", "IF", "PARAM", "PARAM", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [1, 6], [5, 7], [2, 8], [6, 9], [8, 10], [10, 11], [11, 12], [11, 13], [13, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 1], [7, 5], [8, 2], [9, 6], [10, 8], [11, 10], [12, 11], [13, 11], [14, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "endPrefixMapping", "code": "  public void endPrefixMapping(String prefix) throws SAXException\n  {\n    if (DEBUG)\n      System.out.println(\"endPrefixMapping: prefix: \" + prefix);\n\n    if(null == prefix)\n      prefix = \"\";\n\n    int index = m_contextIndexes.peek() - 1;\n\n    do\n    {\n      index = m_prefixMappings.indexOf(prefix, ++index);\n    } while ( (index >= 0) && ((index & 0x01) == 0x01) );\n\n\n    if (index > -1)\n    {\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index);\n      m_prefixMappings.setElementAt(\"%@$#^@#\", index + 1);", "ast_nodes": ["FUNC_DECL", "IF", "LOOP", "VAR_DECL", "IF", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [4, 9], [7, 10], [8, 11], [8, 12], [3, 13], [4, 14], [9, 15], [5, 16], [1, 17], [1, 18], [2, 19], [11, 20], [11, 21], [12, 22], [13, 23], [13, 24], [14, 25], [16, 26], [17, 27], [17, 28], [18, 29], [19, 30], [21, 31], [26, 32], [27, 33], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 4], [10, 7], [11, 8], [12, 8], [13, 3], [14, 4], [15, 9], [16, 5], [17, 1], [18, 1], [19, 2], [20, 11], [21, 11], [22, 12], [23, 13], [24, 13], [25, 14], [26, 16], [27, 17], [28, 17], [29, 18], [30, 19], [31, 21], [32, 26], [33, 27], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33]]}, {"function_name": "declAlreadyDeclared", "code": "  protected boolean declAlreadyDeclared(String prefix)\n  {\n\n    int startDecls = m_contextIndexes.peek();\n    java.util.Vector prefixMappings = m_prefixMappings;\n    int nDecls = prefixMappings.size();\n\n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      String prefixDecl = (String) prefixMappings.elementAt(i);\n\n      if (prefixDecl == null)\n        continue;\n\n      if (prefixDecl.equals(prefix))\n        return true;\n    }\n\n    return false;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "ASSIGN", "BINARY_OP", "IF", "IF", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "CALL", "RETURN", "CALL", "BREAK_CONTINUE", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [2, 8], [2, 9], [2, 10], [2, 11], [2, 12], [8, 13], [3, 14], [5, 15], [10, 16], [10, 17], [11, 18], [11, 19], [16, 20], [19, 21], [12, 22], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 2], [9, 2], [10, 2], [11, 2], [12, 2], [13, 8], [14, 3], [15, 5], [16, 10], [17, 10], [18, 11], [19, 11], [20, 16], [21, 19], [22, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "startElement", "code": "  public void startElement(\n          String uri, String localName, String qName, Attributes attributes)\n            throws SAXException\n  {\n   if (DEBUG)\n\t {\n      System.out.println(\"startElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName+\", atts: \" + attributes);\n\n\t\t\tboolean DEBUG_ATTRS=true;\n\t\t\tif(DEBUG_ATTRS & attributes!=null)\n\t\t\t{\n\t\t\t\tint n = attributes.getLength();\n\t\t\t\tif(n==0)\n\t\t\t\t\tSystem.out.println(\"\\tempty attribute list\");\n\t\t\t\telse for (int i = 0; i < n; i++)\n\t\t\t\t\tSystem.out.println(\"\\t attr: uri: \" + attributes.getURI(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", localname: \" + attributes.getLocalName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", qname: \" + attributes.getQName(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", type: \" + attributes.getType(i) +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \", value: \" + attributes.getValue(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\t}\n\t }\n\t\t\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(uri, localName, DTM.ELEMENT_NODE);\n    String prefix = getPrefix(qName, uri);\n    int prefixIndex = (null != prefix)\n                      ? m_valuesOrPrefixes.stringToIndex(qName) : 0;\n\n    int elemNode = addNode(DTM.ELEMENT_NODE, exName,\n                           m_parents.peek(), m_previous, prefixIndex, true);\n\n    if(m_indexing)\n      indexNode(exName, elemNode);\n    \n\n    m_parents.push(elemNode);\n\n    int startDecls = m_contextIndexes.peek();\n    int nDecls = m_prefixMappings.size();\n    int prev = DTM.NULL;\n\n    if(!m_pastFirstElement)\n    {\n      prefix=\"xml\";\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n      m_pastFirstElement=true;\n    }\n\n    for (int i = startDecls; i < nDecls; i += 2)\n    {\n      prefix = (String) m_prefixMappings.elementAt(i);\n\n      if (prefix == null)\n        continue;\n\n      String declURL = (String) m_prefixMappings.elementAt(i + 1);\n\n      exName = m_expandedNameTable.getExpandedTypeID(null, prefix, DTM.NAMESPACE_NODE);\n\n      int val = m_valuesOrPrefixes.stringToIndex(declURL);\n\n      prev = addNode(DTM.NAMESPACE_NODE, exName, elemNode,\n                     prev, val, false);\n    }\n\n    int n = attributes.getLength();\n\n    for (int i = 0; i < n; i++)\n    {\n      String attrUri = attributes.getURI(i);\n      String attrQName = attributes.getQName(i);\n      String valString = attributes.getValue(i);\n\n      prefix = getPrefix(attrQName, attrUri);\n\n      int nodeType;\n      \n       String attrLocalName = attributes.getLocalName(i);\n\n      if ((null != attrQName)\n              && (attrQName.equals(\"xmlns\")\n                  || attrQName.startsWith(\"xmlns:\")))\n      {\n        if (declAlreadyDeclared(prefix))\n\n        nodeType = DTM.NAMESPACE_NODE;\n      }\n      else\n      {\n        nodeType = DTM.ATTRIBUTE_NODE;\n\n        if (attributes.getType(i).equalsIgnoreCase(\"ID\"))\n          setIDAttribute(valString, elemNode);\n      }\n\n      if(null == valString)\n        valString = \"\";\n\n      int val = m_valuesOrPrefixes.stringToIndex(valString);\n\n      if (null != prefix)\n      {\n\n        prefixIndex = m_valuesOrPrefixes.stringToIndex(attrQName);\n\n        int dataIndex = m_data.size();\n\n        m_data.addElement(prefixIndex);\n        m_data.addElement(val);\n\n        val = -dataIndex;\n      }\n\n      exName = m_expandedNameTable.getExpandedTypeID(attrUri, attrLocalName, nodeType);\n      prev = addNode(nodeType, exName, elemNode, prev, val,\n                     false);\n    }\n\n    if (DTM.NULL != prev)\n      m_nextsib.setElementAt(DTM.NULL,prev);\n\n    if (null != m_wsfilter)\n    {\n      short wsv = m_wsfilter.getShouldStripSpace(makeNodeHandle(elemNode), this);\n      boolean shouldStrip = (DTMWSFilter.INHERIT == wsv)\n                            ? getShouldStripWhitespace()\n                            : (DTMWSFilter.STRIP == wsv);\n\n      pushShouldStripWhitespace(shouldStrip);\n    }\n\n    m_previous = DTM.NULL;", "ast_nodes": ["FUNC_DECL", "IF", "IF", "LOOP", "VAR_DECL", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "VAR_DECL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "IF", "VAR_DECL", "IF", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "CALL", "VAR_DECL", "VAR_DECL", "IF", "LITERAL_ANCHOR", "VAR_DECL", "CALL", "CALL", "CALL", "CALL", "COND_EXPR", "CALL", "CALL", "IF", "VAR_DECL", "CALL", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "ASSIGN", "LITERAL_ANCHOR", "ASSIGN", "ASSIGN", "BREAK_CONTINUE", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "VAR_DECL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "IF", "VAR_DECL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LOOP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [1, 21], [2, 22], [3, 23], [5, 24], [5, 25], [0, 26], [0, 27], [1, 28], [1, 29], [21, 30], [2, 31], [3, 32], [3, 33], [3, 34], [3, 35], [3, 36], [3, 37], [3, 38], [3, 39], [3, 40], [4, 41], [5, 42], [5, 43], [5, 44], [24, 45], [6, 46], [8, 47], [9, 48], [10, 49], [11, 50], [12, 51], [13, 52], [14, 53], [15, 54], [15, 55], [1, 56], [3, 57], [3, 58], [32, 59], [34, 60], [35, 61], [3, 62], [3, 63], [5, 64], [5, 65], [44, 66], [44, 67], [5, 68], [6, 69], [6, 70], [6, 71], [6, 72], [50, 73], [50, 74], [51, 75], [51, 76], [51, 77], [54, 78], [15, 79], [28, 80], [29, 81], [57, 82], [58, 83], [32, 84], [59, 85], [33, 86], [34, 87], [60, 88], [35, 89], [35, 90], [61, 91], [61, 92], [36, 93], [62, 94], [38, 95], [39, 96], [40, 97], [64, 98], [42, 99], [65, 100], [67, 101], [69, 102], [70, 103], [46, 104], [71, 105], [72, 106], [77, 107], [54, 108], [54, 109], [78, 110], [55, 111], [79, 112], [80, 113], [80, 114], [80, 115], [81, 116], [82, 117], [32, 118], [32, 119], [32, 120], [32, 121], [87, 122], [89, 123], [35, 124], [90, 125], [91, 126], [91, 127], [92, 128], [98, 129], [100, 130], [43, 131], [68, 132], [103, 133], [105, 134], [108, 135], [108, 136], [110, 137], [112, 138], [84, 139], [121, 140], [89, 141], [123, 142], [90, 143], [126, 144], [127, 145], [131, 146], [135, 147], [108, 148], [136, 149], [109, 150], [138, 151], [138, 152], [142, 153], [146, 154], [135, 155], [148, 156], [152, 157], [155, 158], [135, 159], [157, 160], [157, 161], [158, 162], [158, 163], [161, 164], [163, 165], [163, 166], [164, 167], [164, 168], [166, 169], [166, 170], [168, 171], [170, 172], [170, 173], [173, 174], [173, 175], [175, 176], [175, 177], [177, 178], [177, 179], [179, 180], [179, 181], [181, 182], [181, 183], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 0], [16, 0], [17, 0], [18, 0], [19, 0], [20, 0], [21, 1], [22, 2], [23, 3], [24, 5], [25, 5], [26, 0], [27, 0], [28, 1], [29, 1], [30, 21], [31, 2], [32, 3], [33, 3], [34, 3], [35, 3], [36, 3], [37, 3], [38, 3], [39, 3], [40, 3], [41, 4], [42, 5], [43, 5], [44, 5], [45, 24], [46, 6], [47, 8], [48, 9], [49, 10], [50, 11], [51, 12], [52, 13], [53, 14], [54, 15], [55, 15], [56, 1], [57, 3], [58, 3], [59, 32], [60, 34], [61, 35], [62, 3], [63, 3], [64, 5], [65, 5], [66, 44], [67, 44], [68, 5], [69, 6], [70, 6], [71, 6], [72, 6], [73, 50], [74, 50], [75, 51], [76, 51], [77, 51], [78, 54], [79, 15], [80, 28], [81, 29], [82, 57], [83, 58], [84, 32], [85, 59], [86, 33], [87, 34], [88, 60], [89, 35], [90, 35], [91, 61], [92, 61], [93, 36], [94, 62], [95, 38], [96, 39], [97, 40], [98, 64], [99, 42], [100, 65], [101, 67], [102, 69], [103, 70], [104, 46], [105, 71], [106, 72], [107, 77], [108, 54], [109, 54], [110, 78], [111, 55], [112, 79], [113, 80], [114, 80], [115, 80], [116, 81], [117, 82], [118, 32], [119, 32], [120, 32], [121, 32], [122, 87], [123, 89], [124, 35], [125, 90], [126, 91], [127, 91], [128, 92], [129, 98], [130, 100], [131, 43], [132, 68], [133, 103], [134, 105], [135, 108], [136, 108], [137, 110], [138, 112], [139, 84], [140, 121], [141, 89], [142, 123], [143, 90], [144, 126], [145, 127], [146, 131], [147, 135], [148, 108], [149, 136], [150, 109], [151, 138], [152, 138], [153, 142], [154, 146], [155, 135], [156, 148], [157, 152], [158, 155], [159, 135], [160, 157], [161, 157], [162, 158], [163, 158], [164, 161], [165, 163], [166, 163], [167, 164], [168, 164], [169, 166], [170, 166], [171, 168], [172, 170], [173, 170], [174, 173], [175, 173], [176, 175], [177, 175], [178, 177], [179, 177], [180, 179], [181, 179], [182, 181], [183, 181], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183]]}, {"function_name": "endElement", "code": "  public void endElement(String uri, String localName, String qName)\n          throws SAXException\n  {\n   if (DEBUG)\n      System.out.println(\"endElement: uri: \" + uri + \", localname: \"\n\t\t\t\t\t\t\t\t\t\t\t\t + localName + \", qname: \"+qName);\n\n    charactersFlush();\n\n    m_contextIndexes.quickPop(1);\n\n    int topContextIndex = m_contextIndexes.peek();\n    if (topContextIndex != m_prefixMappings.size()) {\n      m_prefixMappings.setSize(topContextIndex);\n    }\n\n    int lastNode = m_previous;\n\n    m_previous = m_parents.pop();\n\n    if (DTM.NULL == lastNode)\n      m_firstch.setElementAt(DTM.NULL,m_previous);\n    else\n      m_nextsib.setElementAt(DTM.NULL,lastNode);\n\n    popShouldStripWhitespace();", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "IF", "VAR_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "BINARY_OP", "ASSIGN", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [1, 10], [0, 11], [3, 12], [0, 13], [0, 14], [1, 15], [1, 16], [11, 17], [12, 18], [4, 19], [13, 20], [5, 21], [3, 22], [21, 23], [23, 24], [24, 25], [24, 26], [26, 27], [27, 28], [27, 29], [29, 30], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 1], [11, 0], [12, 3], [13, 0], [14, 0], [15, 1], [16, 1], [17, 11], [18, 12], [19, 4], [20, 13], [21, 5], [22, 3], [23, 21], [24, 23], [25, 24], [26, 24], [27, 26], [28, 27], [29, 27], [30, 29], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30]]}, {"function_name": "characters", "code": "  public void characters(char ch[], int start, int length) throws SAXException\n  {\n    if(true){\n      m_textPendingStart = m_chars.size();\n      m_coalescedTextType = m_textType;\n    }\n    else if (m_textType == DTM.TEXT_NODE)\n    {\n      m_coalescedTextType = DTM.TEXT_NODE;\n    }\n\n    m_chars.append(ch, start, length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "CALL", "IF", "LITERAL_ANCHOR", "BINARY_OP", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [1, 7], [6, 8], [1, 9], [1, 10], [6, 11], [10, 12], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 1], [8, 6], [9, 1], [10, 1], [11, 6], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "ignorableWhitespace", "code": "  public void ignorableWhitespace(char ch[], int start, int length)\n          throws SAXException\n  {\n\n    characters(ch, start, length);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "processingInstruction", "code": "  public void processingInstruction(String target, String data)\n          throws SAXException\n  {\n    if (DEBUG)\n\t\t System.out.println(\"processingInstruction: target: \" + target +\", data: \"+data);\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(null, target,\n                                         DTM.PROCESSING_INSTRUCTION_NODE);\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(data);\n\n    m_previous = addNode(DTM.PROCESSING_INSTRUCTION_NODE, exName,\n                         m_parents.peek(), m_previous,\n                         dataIndex, false);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "IF", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [6, 8], [1, 9], [2, 10], [3, 11], [8, 12], [8, 13], [10, 14], [11, 15], [15, 16], [16, 17], [16, 18], [18, 19], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 6], [9, 1], [10, 2], [11, 3], [12, 8], [13, 8], [14, 10], [15, 11], [16, 15], [17, 16], [18, 16], [19, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19]]}, {"function_name": "skippedEntity", "code": "  public void skippedEntity(String name) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "warning", "code": "  public void warning(SAXParseException e) throws SAXException\n  {\n\n    System.err.println(e.getMessage());", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [1, 0], [2, 0], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "error", "code": "  public void error(SAXParseException e) throws SAXException\n  {\n    throw e;", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "fatalError", "code": "  public void fatalError(SAXParseException e) throws SAXException\n  {\n    throw e;", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "elementDecl", "code": "  public void elementDecl(String name, String model) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "attributeDecl", "code": "  public void attributeDecl(\n          String eName, String aName, String type, String valueDefault, String value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "internalEntityDecl", "code": "  public void internalEntityDecl(String name, String value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "externalEntityDecl", "code": "  public void externalEntityDecl(\n          String name, String publicId, String systemId) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "startDTD", "code": "  public void startDTD(String name, String publicId, String systemId)\n          throws SAXException\n  {\n\n    m_insideDTD = true;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [4, 5], [1, 0], [2, 0], [3, 0], [4, 0], [5, 4], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "endDTD", "code": "  public void endDTD() throws SAXException\n  {\n\n    m_insideDTD = false;", "ast_nodes": ["FUNC_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "startEntity", "code": "  public void startEntity(String name) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endEntity", "code": "  public void endEntity(String name) throws SAXException", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "startCDATA", "code": "  public void startCDATA() throws SAXException\n  {\n    m_textType = DTM.CDATA_SECTION_NODE;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "endCDATA", "code": "  public void endCDATA() throws SAXException\n  {\n    m_textType = DTM.TEXT_NODE;", "ast_nodes": ["FUNC_DECL", "ASSIGN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "comment", "code": "  public void comment(char ch[], int start, int length) throws SAXException\n  {\n\n      return;\n\n    charactersFlush();\n\n    int exName = m_expandedNameTable.getExpandedTypeID(DTM.COMMENT_NODE);\n\n    int dataIndex = m_valuesOrPrefixes.stringToIndex(new String(ch, start,\n                      length));\n\n\n    m_previous = addNode(DTM.COMMENT_NODE, exName,\n                         m_parents.peek(), m_previous, dataIndex, false);", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [7, 9], [1, 10], [2, 11], [9, 12], [9, 13], [10, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 7], [10, 1], [11, 2], [12, 9], [13, 9], [14, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "setProperty", "code": "  public void setProperty(String property, Object value)", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getSourceLocatorFor", "code": "  public SourceLocator getSourceLocatorFor(int node)\n  {\n    if (m_useSourceLocationProperty)\n    {\n\n      node = makeNodeIdentity(node);\n      \n\n      return new NodeLocator(null,\n                             m_sourceSystemId.elementAt(node),\n                             m_sourceLine.elementAt(node),\n                             m_sourceColumn.elementAt(node));\n    }\n    else if(m_locator!=null)\n    {\n    \treturn new NodeLocator(null,m_locator.getSystemId(),-1,-1);\n    }\n    else if(m_systemId!=null)\n    {\n    \treturn new NodeLocator(null,m_systemId,-1,-1);\n    }\n    return null;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "LITERAL_ANCHOR", "IF", "IF", "BINARY_OP", "RETURN", "BINARY_OP", "RETURN", "LITERAL_ANCHOR", "CALL", "ASSIGN", "RETURN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [2, 5], [5, 6], [5, 7], [2, 8], [6, 9], [5, 10], [7, 11], [8, 12], [2, 13], [6, 14], [9, 15], [10, 16], [12, 17], [12, 18], [12, 19], [12, 20], [13, 21], [14, 22], [16, 23], [16, 24], [16, 25], [16, 26], [22, 27], [22, 28], [22, 29], [1, 0], [2, 0], [3, 0], [4, 1], [5, 2], [6, 5], [7, 5], [8, 2], [9, 6], [10, 5], [11, 7], [12, 8], [13, 2], [14, 6], [15, 9], [16, 10], [17, 12], [18, 12], [19, 12], [20, 12], [21, 13], [22, 14], [23, 16], [24, 16], [25, 16], [26, 16], [27, 22], [28, 22], [29, 22], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29]]}, {"function_name": "getFixedNames", "code": "  public String getFixedNames(int type){\n    return m_fixednames[type];", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "SAX2DTM", "code": "  public SAX2DTM(DTMManager mgr, Source source, int dtmIdentity,\n                 DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing)\n  {\n\n    this(mgr, source, dtmIdentity, whiteSpaceFilter,\n          xstringfactory, doIndexing, DEFAULT_BLOCKSIZE, true, false);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "SAX2DTM", "code": "  public SAX2DTM(DTMManager mgr, Source source, int dtmIdentity,\n                 DTMWSFilter whiteSpaceFilter,\n                 XMLStringFactory xstringfactory,\n                 boolean doIndexing,\n                 int blocksize,\n                 boolean usePrevsib,\n                 boolean newNameTable)\n  {\n\n    super(mgr, source, dtmIdentity, whiteSpaceFilter,\n          xstringfactory, doIndexing, blocksize, usePrevsib, newNameTable);\n\n    if (blocksize <= 64) \n    {\n      m_data = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS_SMALL);\n      m_dataOrQName = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS_SMALL);\n      m_valuesOrPrefixes = new DTMStringPool(16);\n      m_chars = new FastStringBuffer(7, 10);\n      m_contextIndexes = new IntStack(4);\n      m_parents = new IntStack(4);\n    }\n    else\n    {\n      m_data = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS);\n      m_dataOrQName = new SuballocatedIntVector(blocksize, DEFAULT_NUMBLOCKS);\n      m_valuesOrPrefixes = new DTMStringPool();\n      m_chars = new FastStringBuffer(10, 13);\n      m_contextIndexes = new IntStack();\n      m_parents = new IntStack();\n    }\n         \n\n\n    \n    m_useSourceLocationProperty = mgr.getSource_location();\n    m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector() : null;\n \tm_sourceLine = (m_useSourceLocationProperty) ?  new IntVector() : null;\n    m_sourceColumn = (m_useSourceLocationProperty) ?  new IntVector() : null; ", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "COND_EXPR", "COND_EXPR", "COND_EXPR", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [1, 15], [11, 16], [12, 17], [13, 18], [14, 19], [15, 20], [16, 21], [16, 22], [17, 23], [17, 24], [18, 25], [18, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33], [1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [27, 39], [28, 40], [29, 41], [30, 42], [31, 43], [32, 44], [33, 45], [34, 46], [35, 47], [36, 48], [37, 49], [38, 50], [41, 51], [41, 52], [45, 53], [46, 54], [47, 55], [47, 56], [48, 57], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 0], [14, 0], [15, 1], [16, 11], [17, 12], [18, 13], [19, 14], [20, 15], [21, 16], [22, 16], [23, 17], [24, 17], [25, 18], [26, 18], [27, 1], [28, 1], [29, 1], [30, 1], [31, 1], [32, 1], [33, 1], [34, 1], [35, 1], [36, 1], [37, 1], [38, 1], [39, 27], [40, 28], [41, 29], [42, 30], [43, 31], [44, 32], [45, 33], [46, 34], [47, 35], [48, 36], [49, 37], [50, 38], [51, 41], [52, 41], [53, 45], [54, 46], [55, 47], [56, 47], [57, 48], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57]]}], "label": 1}
{"sample_id": "xalan-2.4-6818", "repo": "xalan-2.4", "project": "xalan", "version": "2.4", "file_path": "org/apache/xalan/xsltc/compiler/ElementAvailableCall.java", "language": "java", "name": "org.apache.xalan.xsltc.compiler.ElementAvailableCall", "code": "final class ElementAvailableCall extends FunctionCall {\n\n    public ElementAvailableCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);\n    }\n\n    /**\n     * Force the argument to this function to be a literal string.\n     */\n    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (argument() instanceof LiteralExpr) {\n\t    return _type = Type.Boolean;\n\t}\n\tErrorMsg err = new ErrorMsg(ErrorMsg.NEED_LITERAL_ERR,\n\t\t\t\t    \"element-available\", this);\n\tthrow new TypeCheckError(err);\n    }\n\n    /**\n     * Returns an object representing the compile-time evaluation \n     * of an expression. We are only using this for function-available\n     * and element-available at this time.\n     */\n    public Object evaluateAtCompileTime() {\n\treturn getResult() ? Boolean.TRUE : Boolean.FALSE;\n    }\n\n    /**\n     * Returns the result that this function will return\n     */\n    public boolean getResult() {\n\ttry {\n\t    final LiteralExpr arg = (LiteralExpr) argument();\n\t    final String qname = arg.getValue();\n\t    final int index = qname.indexOf(':');\n\t    final String localName = (index > 0) ? \n\t\tqname.substring(index + 1) : qname;\n\t    return getParser().elementSupported(arg.getNamespace(), \n\t\t\t\t\t        localName);\n\t}\n\tcatch (ClassCastException e) {\n\t    return false;\n\t}\n    }\n\n    /**\n     * Calls to 'element-available' are resolved at compile time since \n     * the namespaces declared in the stylsheet are not available at run\n     * time. Consequently, arguments to this function must be literals.\n     */\n    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal boolean result = getResult();\n\tmethodGen.getInstructionList().append(new PUSH(cpg, result));", "functions": [{"function_name": "typeCheck", "code": "    public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n\tif (argument() instanceof LiteralExpr) {\n\t    return _type = Type.Boolean;\n\t}\n\tErrorMsg err = new ErrorMsg(ErrorMsg.NEED_LITERAL_ERR,\n\t\t\t\t    \"element-available\", this);\n\tthrow new TypeCheckError(err);", "ast_nodes": ["FUNC_DECL", "THROW_RAISE", "VAR_DECL", "IF", "PARAM", "CALL", "BINARY_OP", "CALL", "RETURN", "CALL", "LITERAL_ANCHOR", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [2, 7], [3, 8], [6, 9], [7, 10], [8, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 2], [8, 3], [9, 6], [10, 7], [11, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "evaluateAtCompileTime", "code": "    public Object evaluateAtCompileTime() {\n\treturn getResult() ? Boolean.TRUE : Boolean.FALSE;", "ast_nodes": ["FUNC_DECL", "RETURN", "COND_EXPR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getResult", "code": "    public boolean getResult() {\n\ttry {\n\t    final LiteralExpr arg = (LiteralExpr) argument();\n\t    final String qname = arg.getValue();\n\t    final int index = qname.indexOf(':');\n\t    final String localName = (index > 0) ? \n\t\tqname.substring(index + 1) : qname;\n\t    return getParser().elementSupported(arg.getNamespace(), \n\t\t\t\t\t        localName);\n\t}\n\tcatch (ClassCastException e) {\n\t    return false;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "RETURN", "CALL", "LITERAL_ANCHOR", "CALL", "COND_EXPR", "CALL", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 8], [3, 9], [8, 10], [9, 11], [4, 12], [5, 13], [6, 14], [11, 15], [12, 16], [12, 17], [13, 18], [7, 19], [16, 20], [17, 21], [20, 22], [1, 0], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 2], [9, 3], [10, 8], [11, 9], [12, 4], [13, 5], [14, 6], [15, 11], [16, 12], [17, 12], [18, 13], [19, 7], [20, 16], [21, 17], [22, 20], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22]]}, {"function_name": "translate", "code": "    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {\n\tfinal ConstantPoolGen cpg = classGen.getConstantPool();\n\tfinal boolean result = getResult();\n\tmethodGen.getInstructionList().append(new PUSH(cpg, result));", "ast_nodes": ["FUNC_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [1, 7], [2, 8], [6, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 1], [8, 2], [9, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "ElementAvailableCall", "code": "    public ElementAvailableCall(QName fname, Vector arguments) {\n\tsuper(fname, arguments);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "camel-1.0-1472", "repo": "camel-1.0", "project": "camel", "version": "1.0", "file_path": "org/apache/camel/ExpectedBodyTypeException.java", "language": "java", "name": "org.apache.camel.ExpectedBodyTypeException", "code": "public class ExpectedBodyTypeException extends RuntimeCamelException {\n    private final Exchange exchange;\n    private final Class expectedBodyType;\n\n    public ExpectedBodyTypeException(Exchange exchange, Class expectedBodyType) {\n        super(\"Could not extract IN message body as type: \" + expectedBodyType + \" body is: \" + exchange.getIn().getBody());\n        this.exchange = exchange;\n        this.expectedBodyType = expectedBodyType;\n    }\n\n    public Exchange getExchange() {\n        return exchange;\n    }\n\n    public Class getExpectedBodyType() {\n        return expectedBodyType;", "functions": [{"function_name": "getExchange", "code": "    public Exchange getExchange() {\n        return exchange;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getExpectedBodyType", "code": "    public Class getExpectedBodyType() {\n        return expectedBodyType;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "ExpectedBodyTypeException", "code": "    public ExpectedBodyTypeException(Exchange exchange, Class expectedBodyType) {\n        super(\"Could not extract IN message body as type: \" + expectedBodyType + \" body is: \" + exchange.getIn().getBody());\n        this.exchange = exchange;\n        this.expectedBodyType = expectedBodyType;", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [5, 6], [5, 7], [6, 8], [7, 9], [7, 10], [10, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 5], [7, 5], [8, 6], [9, 7], [10, 7], [11, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "camel-1.6-3075", "repo": "camel-1.6", "project": "camel", "version": "1.6", "file_path": "org/apache/camel/impl/DefaultMessage.java", "language": "java", "name": "org.apache.camel.impl.DefaultMessage", "code": "public class DefaultMessage extends MessageSupport {\n    private Map<String, Object> headers;\n    private Map<String, DataHandler> attachments;\n\n    @Override\n    public String toString() {\n        return \"Message: \" + getBody();\n    }\n\n    public Object getHeader(String name) {\n        return getHeaders().get(name);\n    }\n\n    public <T> T getHeader(String name, Class<T> type) {\n        Object value = getHeader(name);\n        Exchange e = getExchange();\n        return e.getContext().getTypeConverter().convertTo(type, e, value);\n    }\n\n    public void setHeader(String name, Object value) {\n        if (headers == null) {\n            headers = createHeaders();\n        }\n        headers.put(name, value);\n    }\n\n    public Object removeHeader(String name) {\n        if (headers != null) {\n            return headers.remove(name);\n        } else {\n            return null;\n        }\n    }\n\n    public Map<String, Object> getHeaders() {\n        if (headers == null) {\n            headers = createHeaders();\n        }\n        return headers;\n    }\n\n    public void setHeaders(Map<String, Object> headers) {\n        this.headers = headers;\n    }\n\n    public DefaultMessage newInstance() {\n        return new DefaultMessage();\n    }\n\n    /**\n     * A factory method to lazily create the headers to make it easy to create\n     * efficient Message implementations which only construct and populate the\n     * Map on demand\n     *\n     * @return return a newly constructed Map possibly containing headers from\n     *         the underlying inbound transport\n     */\n    protected Map<String, Object> createHeaders() {\n        HashMap<String, Object> map = new HashMap<String, Object>();\n        populateInitialHeaders(map);\n        return map;\n    }\n\n    /**\n     * A strategy method populate the initial set of headers on an inbound\n     * message from an underlying binding\n     *\n     * @param map is the empty header map to populate\n     */\n    protected void populateInitialHeaders(Map<String, Object> map) {\n    }\n\n    /**\n     * A factory method to lazily create the attachments to make it easy to\n     * create efficient Message implementations which only construct and\n     * populate the Map on demand\n     *\n     * @return return a newly constructed Map\n     */\n    protected Map<String, DataHandler> createAttachments() {\n        HashMap<String, DataHandler> map = new HashMap<String, DataHandler>();\n        populateInitialAttachments(map);\n        return map;\n    }\n\n    /**\n     * A strategy method populate the initial set of attachments on an inbound\n     * message from an underlying binding\n     *\n     * @param map is the empty attachment map to populate\n     */\n    protected void populateInitialAttachments(Map<String, DataHandler> map) {\n    }\n\n    public void addAttachment(String id, DataHandler content) {\n        if (attachments == null) {\n            attachments = createAttachments();\n        }\n        attachments.put(id, content);\n    }\n\n    public DataHandler getAttachment(String id) {\n        return getAttachments().get(id);\n    }\n\n    public Set<String> getAttachmentNames() {\n        if (attachments == null) {\n            attachments = createAttachments();\n        }\n        return attachments.keySet();\n    }\n\n    public void removeAttachment(String id) {\n        if (attachments != null && attachments.containsKey(id)) {\n            attachments.remove(id);\n        }\n    }\n\n    public Map<String, DataHandler> getAttachments() {\n        if (attachments == null) {\n            attachments = createAttachments();\n        }\n        return attachments;\n    }\n\n    public void setAttachments(Map<String, DataHandler> attachments) {\n        this.attachments = attachments;\n    }\n\n    public boolean hasAttachments() {\n        if (attachments == null) {\n            attachments = createAttachments();\n        }\n        return this.attachments != null && this.attachments.size() > 0;\n    }\n\n    /**\n     * Returns true if the headers have been mutated in some way\n     */\n    protected boolean hasPopulatedHeaders() {\n        return headers != null;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"Message: \" + getBody();", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [1, 0], [2, 1], [3, 2], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getHeader", "code": "    public Object getHeader(String name) {\n        return getHeaders().get(name);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getHeader", "code": "    public <T> T getHeader(String name, Class<T> type) {\n        Object value = getHeader(name);\n        Exchange e = getExchange();\n        return e.getContext().getTypeConverter().convertTo(type, e, value);", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "VAR_DECL", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [2, 9], [3, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 2], [10, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "setHeader", "code": "    public void setHeader(String name, Object value) {\n        if (headers == null) {\n            headers = createHeaders();\n        }\n        headers.put(name, value);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "removeHeader", "code": "    public Object removeHeader(String name) {\n        if (headers != null) {\n            return headers.remove(name);\n        } else {\n            return null;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "RETURN", "RETURN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [1, 4], [1, 5], [3, 6], [4, 7], [5, 8], [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 3], [7, 4], [8, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getHeaders", "code": "    public Map<String, Object> getHeaders() {\n        if (headers == null) {\n            headers = createHeaders();\n        }\n        return headers;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setHeaders", "code": "    public void setHeaders(Map<String, Object> headers) {\n        this.headers = headers;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "newInstance", "code": "    public DefaultMessage newInstance() {\n        return new DefaultMessage();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createHeaders", "code": "    protected Map<String, Object> createHeaders() {\n        HashMap<String, Object> map = new HashMap<String, Object>();\n        populateInitialHeaders(map);\n        return map;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "populateInitialHeaders", "code": "    protected void populateInitialHeaders(Map<String, Object> map) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "createAttachments", "code": "    protected Map<String, DataHandler> createAttachments() {\n        HashMap<String, DataHandler> map = new HashMap<String, DataHandler>();\n        populateInitialAttachments(map);\n        return map;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [1, 0], [2, 0], [3, 0], [4, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "populateInitialAttachments", "code": "    protected void populateInitialAttachments(Map<String, DataHandler> map) {", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "addAttachment", "code": "    public void addAttachment(String id, DataHandler content) {\n        if (attachments == null) {\n            attachments = createAttachments();\n        }\n        attachments.put(id, content);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [5, 6], [1, 7], [7, 8], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 5], [7, 1], [8, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8]]}, {"function_name": "getAttachment", "code": "    public DataHandler getAttachment(String id) {\n        return getAttachments().get(id);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getAttachmentNames", "code": "    public Set<String> getAttachmentNames() {\n        if (attachments == null) {\n            attachments = createAttachments();\n        }\n        return attachments.keySet();", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 1], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "removeAttachment", "code": "    public void removeAttachment(String id) {\n        if (attachments != null && attachments.containsKey(id)) {\n            attachments.remove(id);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 1], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getAttachments", "code": "    public Map<String, DataHandler> getAttachments() {\n        if (attachments == null) {\n            attachments = createAttachments();\n        }\n        return attachments;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "LITERAL_ANCHOR", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [2, 3], [3, 4], [2, 5], [5, 6], [1, 0], [2, 0], [3, 2], [4, 3], [5, 2], [6, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "setAttachments", "code": "    public void setAttachments(Map<String, DataHandler> attachments) {\n        this.attachments = attachments;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "hasAttachments", "code": "    public boolean hasAttachments() {\n        if (attachments == null) {\n            attachments = createAttachments();\n        }\n        return this.attachments != null && this.attachments.size() > 0;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "ASSIGN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [2, 4], [3, 5], [3, 6], [4, 7], [5, 8], [6, 9], [2, 10], [5, 11], [10, 12], [1, 0], [2, 0], [3, 1], [4, 2], [5, 3], [6, 3], [7, 4], [8, 5], [9, 6], [10, 2], [11, 5], [12, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12]]}, {"function_name": "hasPopulatedHeaders", "code": "    protected boolean hasPopulatedHeaders() {\n        return headers != null;", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}], "label": 1}
{"sample_id": "camel-1.4-2521", "repo": "camel-1.4", "project": "camel", "version": "1.4", "file_path": "org/apache/camel/model/RoutingSlipType.java", "language": "java", "name": "org.apache.camel.model.RoutingSlipType", "code": "@XmlRootElement(name = \"routingSlip\")\n@XmlAccessorType(XmlAccessType.FIELD)\npublic class RoutingSlipType extends ProcessorType<ProcessorType> {\n    public static final String ROUTING_SLIP_HEADER = \"routingSlipHeader\";\n    public static final String DEFAULT_DELIMITER = \",\";\n\n    @XmlAttribute\n    private String headerName;\n    @XmlAttribute\n    private String uriDelimiter;\n\n    public RoutingSlipType() {\n        this(ROUTING_SLIP_HEADER, DEFAULT_DELIMITER);\n    }\n\n    public RoutingSlipType(String headerName) {\n        this(headerName, DEFAULT_DELIMITER);\n    }\n\n    public RoutingSlipType(String headerName, String uriDelimiter) {\n        setHeaderName(headerName);\n        setUriDelimiter(uriDelimiter);\n    }\n\n    @Override\n    public String toString() {\n        return \"RoutingSlip[ headerName=\" + getHeaderName() + \" uriDelimiter=\" + getUriDelimiter() + \"]\";\n    }\n\n    @Override\n    public String getShortName() {\n        return \"routingSlip\";\n    }\n\n    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        return new RoutingSlip(getHeaderName(), getUriDelimiter());\n    }\n\n    @Override\n    public List<ProcessorType<?>> getOutputs() {\n        return Collections.EMPTY_LIST;\n    }\n\n    public void setHeaderName(String headerName) {\n        this.headerName = headerName;\n    }\n\n    public String getHeaderName() {\n        return this.headerName;\n    }\n\n    public void setUriDelimiter(String uriDelimiter) {\n        this.uriDelimiter = uriDelimiter;\n    }\n\n    public String getUriDelimiter() {\n        return uriDelimiter;", "functions": [{"function_name": "toString", "code": "    @Override\n    public String toString() {\n        return \"RoutingSlip[ headerName=\" + getHeaderName() + \" uriDelimiter=\" + getUriDelimiter() + \"]\";", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [4, 5], [4, 6], [6, 7], [6, 8], [8, 9], [8, 10], [1, 0], [2, 1], [3, 2], [4, 2], [5, 4], [6, 4], [7, 6], [8, 6], [9, 8], [10, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "getShortName", "code": "    @Override\n    public String getShortName() {\n        return \"routingSlip\";", "ast_nodes": ["FUNC_DECL", "RETURN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "createProcessor", "code": "    @Override\n    public Processor createProcessor(RouteContext routeContext) throws Exception {\n        return new RoutingSlip(getHeaderName(), getUriDelimiter());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]}, {"function_name": "getOutputs", "code": "    @Override\n    public List<ProcessorType<?>> getOutputs() {\n        return Collections.EMPTY_LIST;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setHeaderName", "code": "    public void setHeaderName(String headerName) {\n        this.headerName = headerName;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getHeaderName", "code": "    public String getHeaderName() {\n        return this.headerName;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setUriDelimiter", "code": "    public void setUriDelimiter(String uriDelimiter) {\n        this.uriDelimiter = uriDelimiter;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getUriDelimiter", "code": "    public String getUriDelimiter() {\n        return uriDelimiter;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RoutingSlipType", "code": "    public RoutingSlipType() {\n        this(ROUTING_SLIP_HEADER, DEFAULT_DELIMITER);", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "RoutingSlipType", "code": "    public RoutingSlipType(String headerName) {\n        this(headerName, DEFAULT_DELIMITER);", "ast_nodes": ["FUNC_DECL", "PARAM"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "RoutingSlipType", "code": "    public RoutingSlipType(String headerName, String uriDelimiter) {\n        setHeaderName(headerName);\n        setUriDelimiter(uriDelimiter);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 0], [2, 0], [3, 0], [4, 0], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}], "label": 0}
{"sample_id": "jedit-4.3-4535", "repo": "jedit-4.3", "project": "jedit", "version": "4.3", "file_path": "org/gjt/sp/jedit/gui/ListModelEditor.java", "language": "java", "name": "org.gjt.sp.jedit.gui.ListModelEditor", "code": "public class ListModelEditor\n{\n\n\tpublic void open(DefaultListModel listModel)\n\t{\n\t\tfinal DefaultTableModel tableModel = createTableModel(listModel);\n\t\tfinal JTable table = new JTable(tableModel);\n\t\ttable\n\t\t    .setToolTipText(\"Move: PgUp/PgDown; Edit: Double-Click or Insert/Delete\");\n\n\t\ttable.addKeyListener(new KeyAdapter()\n\t\t{\n\t\t\tpublic void keyPressed(KeyEvent e)\n\t\t\t{\n\t\t\t\tint[] selRows = table.getSelectedRows();\n\t\t\t\tif (selRows.length == 0)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint firstSelectedRow = selRows[0];\n\t\t\t\tint key = e.getKeyCode();\n\t\t\t\tListSelectionModel selectionModel = table.getSelectionModel();\n\t\t\t\tswitch (key)\n\t\t\t\t{\n\t\t\t\t\tcase KeyEvent.VK_DELETE:\n\t\t\t\t\t\tfor (int i = selRows.length - 1; i >= 0; i--)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttableModel.removeRow(selRows[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (firstSelectedRow >= 0\n\t\t\t\t\t\t    && firstSelectedRow < tableModel.getRowCount())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tselectionModel.addSelectionInterval(firstSelectedRow,\n\t\t\t\t\t\t\t    firstSelectedRow);\n\t\t\t\t\t\t}\n\t\t\t\t\t\te.consume();// avoid beep\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KeyEvent.VK_INSERT:\n\t\t\t\t\t\ttableModel.insertRow(firstSelectedRow + 1, new String[] { \"\" });\n\t\t\t\t\t\te.consume(); // Dont edit cell\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KeyEvent.VK_PAGE_UP:\n\t\t\t\t\tcase KeyEvent.VK_PAGE_DOWN:\n\t\t\t\t\t\tboolean isUp = key == KeyEvent.VK_PAGE_UP;\n\t\t\t\t\t\tint direction = isUp ? -1 : 1;\n\t\t\t\t\t\tint min = selectionModel.getMinSelectionIndex() + direction;\n\t\t\t\t\t\tint max = selectionModel.getMaxSelectionIndex() + direction;\n\t\t\t\t\t\tif (min < 0 || max >= tableModel.getRowCount())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn; // avoid ArrayIndexOutOfBoundsException\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 0; i < selRows.length; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint row = selRows[isUp ? i : (selRows.length - 1 - i)];\n\t\t\t\t\t\t\tint to = row + direction;\n\t\t\t\t\t\t\tselectionModel.removeSelectionInterval(row, row);\n\t\t\t\t\t\t\tselectionModel.addSelectionInterval(to, to);\n\t\t\t\t\t\t\ttableModel.moveRow(row, row, to);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tint result = JOptionPane.showConfirmDialog(null, table, \"Change \"\n\t\t    + jEdit.getProperty(\"history.caption\"), JOptionPane.OK_CANCEL_OPTION);\n\t\tif (result == JOptionPane.OK_OPTION)\n\t\t{\n\t\t\tupdatelistModel(listModel, tableModel);\n\t\t}\n\t}\n\n\tprivate DefaultTableModel createTableModel(DefaultListModel listModel)\n\t{\n\t\tObject[][] tableRowData = new String[listModel.size()][1];\n\t\tfor (int i = 0; i < listModel.size(); i++)\n\t\t{\n\t\t\ttableRowData[i][0] = listModel.get(i);\n\t\t}\n\t\treturn new DefaultTableModel(tableRowData, new String[] { \"\" });\n\t}\n\n\tprivate void updatelistModel(DefaultListModel listModel,\n\t    DefaultTableModel tableModel)\n\t{\n\t\tlistModel.removeAllElements();\n\t\tfor (int i = 0; i < tableModel.getRowCount(); i++)\n\t\t{\n\t\t\tObject cellText = tableModel.getValueAt(i, 0);\n\t\t\tif (cellText != null && !cellText.equals(\"\"))\n\t\t\t{\n\t\t\t\tlistModel.addElement(cellText);", "functions": [{"function_name": "open", "code": "\tpublic void open(DefaultListModel listModel)\n\t{\n\t\tfinal DefaultTableModel tableModel = createTableModel(listModel);\n\t\tfinal JTable table = new JTable(tableModel);\n\t\ttable\n\t\t    .setToolTipText(\"Move: PgUp/PgDown; Edit: Double-Click or Insert/Delete\");\n\n\t\ttable.addKeyListener(new KeyAdapter()\n\t\t{\n\t\t\tpublic void keyPressed(KeyEvent e)\n\t\t\t{\n\t\t\t\tint[] selRows = table.getSelectedRows();\n\t\t\t\tif (selRows.length == 0)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint firstSelectedRow = selRows[0];\n\t\t\t\tint key = e.getKeyCode();\n\t\t\t\tListSelectionModel selectionModel = table.getSelectionModel();\n\t\t\t\tswitch (key)\n\t\t\t\t{\n\t\t\t\t\tcase KeyEvent.VK_DELETE:\n\t\t\t\t\t\tfor (int i = selRows.length - 1; i >= 0; i--)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttableModel.removeRow(selRows[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (firstSelectedRow >= 0\n\t\t\t\t\t\t    && firstSelectedRow < tableModel.getRowCount())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tselectionModel.addSelectionInterval(firstSelectedRow,\n\t\t\t\t\t\t\t    firstSelectedRow);\n\t\t\t\t\t\t}\n\t\t\t\t\t\te.consume();// avoid beep\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KeyEvent.VK_INSERT:\n\t\t\t\t\t\ttableModel.insertRow(firstSelectedRow + 1, new String[] { \"\" });\n\t\t\t\t\t\te.consume(); // Dont edit cell\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KeyEvent.VK_PAGE_UP:\n\t\t\t\t\tcase KeyEvent.VK_PAGE_DOWN:\n\t\t\t\t\t\tboolean isUp = key == KeyEvent.VK_PAGE_UP;\n\t\t\t\t\t\tint direction = isUp ? -1 : 1;\n\t\t\t\t\t\tint min = selectionModel.getMinSelectionIndex() + direction;\n\t\t\t\t\t\tint max = selectionModel.getMaxSelectionIndex() + direction;\n\t\t\t\t\t\tif (min < 0 || max >= tableModel.getRowCount())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn; // avoid ArrayIndexOutOfBoundsException\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 0; i < selRows.length; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint row = selRows[isUp ? i : (selRows.length - 1 - i)];\n\t\t\t\t\t\t\tint to = row + direction;\n\t\t\t\t\t\t\tselectionModel.removeSelectionInterval(row, row);\n\t\t\t\t\t\t\tselectionModel.addSelectionInterval(to, to);\n\t\t\t\t\t\t\ttableModel.moveRow(row, row, to);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tint result = JOptionPane.showConfirmDialog(null, table, \"Change \"\n\t\t    + jEdit.getProperty(\"history.caption\"), JOptionPane.OK_CANCEL_OPTION);\n\t\tif (result == JOptionPane.OK_OPTION)\n\t\t{\n\t\t\tupdatelistModel(listModel, tableModel);", "ast_nodes": ["FUNC_DECL", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "PARAM", "BINARY_OP", "CALL", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "FUNC_DECL", "CALL", "LITERAL_ANCHOR", "SWITCH", "VAR_DECL", "VAR_DECL", "VAR_DECL", "IF", "VAR_DECL", "PARAM", "LITERAL_ANCHOR", "BINARY_OP", "BREAK_CONTINUE", "LOOP", "IF", "VAR_DECL", "VAR_DECL", "VAR_DECL", "VAR_DECL", "BREAK_CONTINUE", "BREAK_CONTINUE", "IF", "LOOP", "CALL", "CALL", "RETURN", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "CALL", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "VAR_DECL", "VAR_DECL", "RETURN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [0, 7], [0, 8], [2, 9], [7, 10], [8, 11], [3, 12], [4, 13], [1, 14], [9, 15], [9, 16], [10, 17], [15, 18], [15, 19], [17, 20], [17, 21], [17, 22], [17, 23], [17, 24], [17, 25], [17, 26], [18, 27], [24, 28], [20, 29], [20, 30], [20, 31], [20, 32], [20, 33], [20, 34], [20, 35], [20, 36], [20, 37], [20, 38], [20, 39], [21, 40], [22, 41], [24, 42], [28, 43], [25, 44], [30, 45], [31, 46], [20, 47], [20, 48], [20, 49], [38, 50], [39, 51], [30, 52], [30, 53], [31, 54], [46, 55], [46, 56], [32, 57], [33, 58], [34, 59], [35, 60], [48, 61], [50, 62], [50, 63], [51, 64], [23, 65], [30, 66], [30, 67], [30, 68], [30, 69], [55, 70], [56, 71], [57, 72], [58, 73], [59, 74], [59, 75], [61, 76], [38, 77], [62, 78], [63, 79], [39, 80], [39, 81], [52, 82], [48, 83], [81, 84], [53, 85], [85, 86], [86, 87], [87, 88], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 0], [8, 0], [9, 2], [10, 7], [11, 8], [12, 3], [13, 4], [14, 1], [15, 9], [16, 9], [17, 10], [18, 15], [19, 15], [20, 17], [21, 17], [22, 17], [23, 17], [24, 17], [25, 17], [26, 17], [27, 18], [28, 24], [29, 20], [30, 20], [31, 20], [32, 20], [33, 20], [34, 20], [35, 20], [36, 20], [37, 20], [38, 20], [39, 20], [40, 21], [41, 22], [42, 24], [43, 28], [44, 25], [45, 30], [46, 31], [47, 20], [48, 20], [49, 20], [50, 38], [51, 39], [52, 30], [53, 30], [54, 31], [55, 46], [56, 46], [57, 32], [58, 33], [59, 34], [60, 35], [61, 48], [62, 50], [63, 50], [64, 51], [65, 23], [66, 30], [67, 30], [68, 30], [69, 30], [70, 55], [71, 56], [72, 57], [73, 58], [74, 59], [75, 59], [76, 61], [77, 38], [78, 62], [79, 63], [80, 39], [81, 39], [82, 52], [83, 48], [84, 81], [85, 53], [86, 85], [87, 86], [88, 87], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88]]}, {"function_name": "createTableModel", "code": "\tprivate DefaultTableModel createTableModel(DefaultListModel listModel)\n\t{\n\t\tObject[][] tableRowData = new String[listModel.size()][1];\n\t\tfor (int i = 0; i < listModel.size(); i++)\n\t\t{\n\t\t\ttableRowData[i][0] = listModel.get(i);\n\t\t}\n\t\treturn new DefaultTableModel(tableRowData, new String[] { \"\" });", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "PARAM", "CALL", "BINARY_OP", "CALL", "ASSIGN", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [2, 6], [6, 7], [2, 8], [2, 9], [3, 10], [3, 11], [5, 12], [8, 13], [8, 14], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 2], [7, 6], [8, 2], [9, 2], [10, 3], [11, 3], [12, 5], [13, 8], [14, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14]]}, {"function_name": "updatelistModel", "code": "\tprivate void updatelistModel(DefaultListModel listModel,\n\t    DefaultTableModel tableModel)\n\t{\n\t\tlistModel.removeAllElements();\n\t\tfor (int i = 0; i < tableModel.getRowCount(); i++)\n\t\t{\n\t\t\tObject cellText = tableModel.getValueAt(i, 0);\n\t\t\tif (cellText != null && !cellText.equals(\"\"))\n\t\t\t{\n\t\t\t\tlistModel.addElement(cellText);", "ast_nodes": ["FUNC_DECL", "LOOP", "PARAM", "PARAM", "BINARY_OP", "CALL", "IF", "VAR_DECL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "BINARY_OP", "CALL", "CALL", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [1, 6], [1, 7], [4, 8], [6, 9], [1, 10], [9, 11], [9, 12], [7, 13], [6, 14], [11, 15], [12, 16], [13, 17], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 1], [7, 1], [8, 4], [9, 6], [10, 1], [11, 9], [12, 9], [13, 7], [14, 6], [15, 11], [16, 12], [17, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17]]}], "label": 0}
{"sample_id": "poi-2.0-5376", "repo": "poi-2.0", "project": "poi", "version": "2.0", "file_path": "org/apache/poi/hssf/record/formula/StringPtg.java", "language": "java", "name": "org.apache.poi.hssf.record.formula.StringPtg", "code": "public class StringPtg\n    extends Ptg\n{\n    public final static int  SIZE = 9;\n    public final static byte sid  = 0x17;\n    byte field_1_length;\n    byte field_2_options;\n    BitField fHighByte = new BitField(0x01);\n    private String            field_3_string;\n\n    private StringPtg() {\n    }\n\n    /** Create a StringPtg from a byte array read from disk */\n    public StringPtg(byte [] data, int offset)\n    {\n        offset++;\n        field_1_length = data[offset];\n        field_2_options = data[offset+1];\n        if (fHighByte.isSet(field_2_options)) {\n            field_3_string= StringUtil.getFromUnicode(data,offset+2,field_1_length);\n        }else {\n            field_3_string=StringUtil.getFromCompressedUnicode(data,offset+2,field_1_length);\n        }\n\t\t\t\t \n    }\n\n    /** Create a StringPtg from a string representation of  the number\n     *  Number format is not checked, it is expected to be validated in the parser\n     *   that calls this method.\n     *  @param value : String representation of a floating point number\n     */\n    public StringPtg(String value) {\n        if (value.length() >255) {\n            throw new IllegalArgumentException(\"String literals in formulas cant be bigger than 255 characters ASCII\");\n        }\n        this.field_2_options=0;\n        this.fHighByte.setBoolean(field_2_options, false);\n        this.field_3_string=value;\n    }\n\n    /*\n    public void setValue(String value)\n    {\n        field_1_value = value;\n    }*/\n\n\n    public String getValue()\n    {\n        return field_3_string;\n    }\n\n    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n        array[ offset + 1 ] = field_1_length;\n        array[ offset + 2 ] = field_2_options;\n        if (fHighByte.isSet(field_2_options)) {\n            StringUtil.putUncompressedUnicode(getValue(),array,offset+3);\n        }else {\n            StringUtil.putCompressedUnicode(getValue(),array,offset+3);\n        }\n    }\n\n    public int getSize()\n    {\n        if (fHighByte.isSet(field_2_options)) {\n            return 2*field_1_length+3;\n        }else {\n            return field_1_length+3;\n        }\n    }\n\n    public String toFormulaString(Workbook book)\n    {\n        return \"\\\"\"+getValue()+\"\\\"\";\n    }\n    public byte getDefaultOperandClass() {\n       return Ptg.CLASS_VALUE;\n   }\n\n   public Object clone() {\n     StringPtg ptg = new StringPtg();\n     ptg.field_1_length = field_1_length;\n     ptg.field_2_options=field_2_options;\n     ptg.field_3_string=field_3_string;\n     return ptg;", "functions": [{"function_name": "getValue", "code": "    public String getValue()\n    {\n        return field_3_string;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "writeBytes", "code": "    public void writeBytes(byte [] array, int offset)\n    {\n        array[ offset + 0 ] = sid;\n        array[ offset + 1 ] = field_1_length;\n        array[ offset + 2 ] = field_2_options;\n        if (fHighByte.isSet(field_2_options)) {\n            StringUtil.putUncompressedUnicode(getValue(),array,offset+3);\n        }else {\n            StringUtil.putCompressedUnicode(getValue(),array,offset+3);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [0, 7], [1, 8], [1, 9], [8, 10], [8, 11], [9, 12], [9, 13], [5, 14], [6, 15], [7, 16], [10, 17], [12, 18], [14, 19], [15, 20], [16, 21], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 0], [8, 1], [9, 1], [10, 8], [11, 8], [12, 9], [13, 9], [14, 5], [15, 6], [16, 7], [17, 10], [18, 12], [19, 14], [20, 15], [21, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getSize", "code": "    public int getSize()\n    {\n        if (fHighByte.isSet(field_2_options)) {\n            return 2*field_1_length+3;\n        }else {\n            return field_1_length+3;", "ast_nodes": ["FUNC_DECL", "IF", "CALL", "RETURN", "RETURN", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "BINARY_OP", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [3, 5], [4, 6], [5, 7], [6, 8], [6, 9], [9, 10], [1, 0], [2, 1], [3, 1], [4, 1], [5, 3], [6, 4], [7, 5], [8, 6], [9, 6], [10, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "toFormulaString", "code": "    public String toFormulaString(Workbook book)\n    {\n        return \"\\\"\"+getValue()+\"\\\"\";", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [3, 5], [5, 6], [5, 7], [1, 0], [2, 0], [3, 1], [4, 3], [5, 3], [6, 5], [7, 5], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "getDefaultOperandClass", "code": "    public byte getDefaultOperandClass() {\n       return Ptg.CLASS_VALUE;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "clone", "code": "   public Object clone() {\n     StringPtg ptg = new StringPtg();\n     ptg.field_1_length = field_1_length;\n     ptg.field_2_options=field_2_options;\n     ptg.field_3_string=field_3_string;\n     return ptg;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [2, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 2], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}, {"function_name": "StringPtg", "code": "    private StringPtg() {", "ast_nodes": ["FUNC_DECL"], "ast_edges": [[0, 0]]}, {"function_name": "StringPtg", "code": "    public StringPtg(byte [] data, int offset)\n    {\n        offset++;\n        field_1_length = data[offset];\n        field_2_options = data[offset+1];\n        if (fHighByte.isSet(field_2_options)) {\n            field_3_string= StringUtil.getFromUnicode(data,offset+2,field_1_length);\n        }else {\n            field_3_string=StringUtil.getFromCompressedUnicode(data,offset+2,field_1_length);", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "PARAM", "CALL", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [0, 5], [0, 6], [1, 7], [1, 8], [7, 9], [8, 10], [5, 11], [9, 12], [10, 13], [11, 14], [12, 15], [13, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 0], [6, 0], [7, 1], [8, 1], [9, 7], [10, 8], [11, 5], [12, 9], [13, 10], [14, 11], [15, 12], [16, 13], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "StringPtg", "code": "    public StringPtg(String value) {\n        if (value.length() >255) {\n            throw new IllegalArgumentException(\"String literals in formulas cant be bigger than 255 characters ASCII\");\n        }\n        this.field_2_options=0;\n        this.fHighByte.setBoolean(field_2_options, false);\n        this.field_3_string=value;", "ast_nodes": ["FUNC_DECL", "IF", "PARAM", "ASSIGN", "ASSIGN", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "THROW_RAISE", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [0, 6], [4, 7], [1, 8], [5, 9], [5, 10], [6, 11], [8, 12], [12, 13], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 0], [7, 4], [8, 1], [9, 5], [10, 5], [11, 6], [12, 8], [13, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}], "label": 0}
{"sample_id": "ant-1.5-322", "repo": "ant-1.5", "project": "ant", "version": "1.5", "file_path": "org/apache/tools/ant/taskdefs/condition/ConditionBase.java", "language": "java", "name": "org.apache.tools.ant.taskdefs.condition.ConditionBase", "code": "public abstract class ConditionBase extends ProjectComponent {\n    private Vector conditions = new Vector();\n\n    /**\n     * Count the conditions.\n     *\n     * @since 1.1\n     */\n    protected int countConditions() {\n        return conditions.size();\n    }\n\n    /**\n     * Iterate through all conditions.\n     *\n     * @since 1.1\n     */\n    protected final Enumeration getConditions() {\n        return conditions.elements();\n    }\n\n    /**\n     * Add an &lt;available&gt; condition.\n     *\n     * @since 1.1\n     */\n    public void addAvailable(Available a) {conditions.addElement(a);}\n\n    /**\n     * Add an &lt;checksum&gt; condition.\n     *\n     * @since 1.4, Ant 1.5\n     */\n    public void addChecksum(Checksum c) {conditions.addElement(c);}\n\n    /**\n     * Add an &lt;uptodate&gt; condition.\n     *\n     * @since 1.1\n     */\n    public void addUptodate(UpToDate u) {conditions.addElement(u);}\n\n    /**\n     * Add an &lt;not&gt; condition \"container\".\n     *\n     * @since 1.1\n     */\n    public void addNot(Not n) {conditions.addElement(n);}\n\n    /**\n     * Add an &lt;and&gt; condition \"container\".\n     *\n     * @since 1.1\n     */\n    public void addAnd(And a) {conditions.addElement(a);}\n\n    /**\n     * Add an &lt;or&gt; condition \"container\".\n     *\n     * @since 1.1\n     */\n    public void addOr(Or o) {conditions.addElement(o);}\n\n    /**\n     * Add an &lt;equals&gt; condition.\n     *\n     * @since 1.1\n     */\n    public void addEquals(Equals e) {conditions.addElement(e);}\n\n    /**\n     * Add an &lt;os&gt; condition.\n     *\n     * @since 1.1\n     */\n    public void addOs(Os o) {conditions.addElement(o);}\n\n    /**\n     * Add an &lt;isset&gt; condition.\n     *\n     * @since Ant 1.5\n     */\n    public void addIsSet(IsSet i) {conditions.addElement(i);}\n\n    /**\n     * Add an &lt;http&gt; condition.\n     *\n     * @since Ant 1.5\n     */\n    public void addHttp(Http h) {conditions.addElement(h);}\n\n    /**\n     * Add a &lt;socket&gt; condition.\n     *\n     * @since Ant 1.5\n     */\n    public void addSocket(Socket s) {conditions.addElement(s);}\n\n    /**\n     * Add a &lt;filesmatch&gt; condition.\n     *\n     * @since Ant 1.5\n     */\n    public void addFilesMatch(FilesMatch test) {conditions.addElement(test);}\n    \n    /**\n     * Add a &lt;contains&gt; condition.\n     *\n     * @since Ant 1.5\n     */\n    public void addContains(Contains test) {conditions.addElement(test);}\n\n    /**\n     * Add a &lt;istrue&gt; condition.\n     *\n     * @since Ant 1.5\n     */\n    public void addIsTrue(IsTrue test) {conditions.addElement(test);}\n\n    /**\n     * Add a &lt;isfalse&gt; condition.\n     *\n     * @since Ant 1.5\n     */\n    public void addIsFalse(IsFalse test) {conditions.addElement(test);}", "functions": [{"function_name": "countConditions", "code": "    protected int countConditions() {\n        return conditions.size();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getConditions", "code": "    protected final Enumeration getConditions() {\n        return conditions.elements();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addAvailable", "code": "    public void addAvailable(Available a) {conditions.addElement(a);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addChecksum", "code": "    public void addChecksum(Checksum c) {conditions.addElement(c);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addUptodate", "code": "    public void addUptodate(UpToDate u) {conditions.addElement(u);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addNot", "code": "    public void addNot(Not n) {conditions.addElement(n);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addAnd", "code": "    public void addAnd(And a) {conditions.addElement(a);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addOr", "code": "    public void addOr(Or o) {conditions.addElement(o);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addEquals", "code": "    public void addEquals(Equals e) {conditions.addElement(e);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addOs", "code": "    public void addOs(Os o) {conditions.addElement(o);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addIsSet", "code": "    public void addIsSet(IsSet i) {conditions.addElement(i);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addHttp", "code": "    public void addHttp(Http h) {conditions.addElement(h);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addSocket", "code": "    public void addSocket(Socket s) {conditions.addElement(s);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addFilesMatch", "code": "    public void addFilesMatch(FilesMatch test) {conditions.addElement(test);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addContains", "code": "    public void addContains(Contains test) {conditions.addElement(test);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addIsTrue", "code": "    public void addIsTrue(IsTrue test) {conditions.addElement(test);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "addIsFalse", "code": "    public void addIsFalse(IsFalse test) {conditions.addElement(test);}", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}], "label": 0}
{"sample_id": "xalan-2.5-7248", "repo": "xalan-2.5", "project": "xalan", "version": "2.5", "file_path": "org/apache/xalan/xsltc/dom/FilterIterator.java", "language": "java", "name": "org.apache.xalan.xsltc.dom.FilterIterator", "code": "public final class FilterIterator extends DTMAxisIteratorBase {\n\n    /**\n     * Reference to source iterator.\n     */\n    private DTMAxisIterator _source;\n\n    /**\n     * Reference to a filter object that to be applied to each node.\n     */\n    private final DTMFilter _filter;\n\n    /**\n     * A flag indicating if position is reversed.\n     */\n    private final boolean _isReverse;\n\t\n    public FilterIterator(DTMAxisIterator source, DTMFilter filter) {\n\t_source = source;\n\t_filter = filter;\n\t_isReverse = source.isReverse();\n    }\n\n    public boolean isReverse() {\n\treturn _isReverse;\n    }\n\n\n    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);\n    }\n\n    public DTMAxisIterator cloneIterator() {\n\n\ttry {\n\t    final FilterIterator clone = (FilterIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;\n\t}\n    }\n    \n    public DTMAxisIterator reset() {\n\t_source.reset();\n\treturn resetPosition();\n    }\n    \n    public int next() {\n\tint node;\n\twhile ((node = _source.next()) != END) {\n\t    if (_filter.acceptNode(node, DTMFilter.SHOW_ALL) == DTMIterator.FILTER_ACCEPT) {\n\t\treturn returnNode(node);\n\t    }\n\t}\n\treturn END;\n    }\n\n    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(_startNode = node); \n\t    return resetPosition();\n\t}\n\treturn this;\n    }\n\n    public void setMark() {\n\t_source.setMark();\n    }\n\n    public void gotoMark() {\n\t_source.gotoMark();", "functions": [{"function_name": "isReverse", "code": "    public boolean isReverse() {\n\treturn _isReverse;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setRestartable", "code": "    public void setRestartable(boolean isRestartable) {\n\t_isRestartable = isRestartable;\n\t_source.setRestartable(isRestartable);", "ast_nodes": ["FUNC_DECL", "PARAM", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "cloneIterator", "code": "    public DTMAxisIterator cloneIterator() {\n\n\ttry {\n\t    final FilterIterator clone = (FilterIterator) super.clone();\n\t    clone._source = _source.cloneIterator();\n\t    clone._isRestartable = false;\n\t    return clone.reset();\n\t}\n\tcatch (CloneNotSupportedException e) {\n\t    BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,\n\t\t\t\t      e.toString());\n\t    return null;", "ast_nodes": ["FUNC_DECL", "TRY", "CATCH", "RETURN", "VAR_DECL", "RETURN", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 3], [1, 4], [2, 5], [3, 6], [1, 7], [1, 8], [5, 9], [2, 10], [7, 11], [8, 12], [10, 13], [1, 0], [2, 1], [3, 1], [4, 1], [5, 2], [6, 3], [7, 1], [8, 1], [9, 5], [10, 2], [11, 7], [12, 8], [13, 10], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13]]}, {"function_name": "reset", "code": "    public DTMAxisIterator reset() {\n\t_source.reset();\n\treturn resetPosition();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [0, 3], [1, 0], [2, 1], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "next", "code": "    public int next() {\n\tint node;\n\twhile ((node = _source.next()) != END) {\n\t    if (_filter.acceptNode(node, DTMFilter.SHOW_ALL) == DTMIterator.FILTER_ACCEPT) {\n\t\treturn returnNode(node);\n\t    }\n\t}\n\treturn END;", "ast_nodes": ["FUNC_DECL", "RETURN", "LOOP", "VAR_DECL", "BINARY_OP", "IF", "ASSIGN", "BINARY_OP", "CALL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [2, 5], [4, 6], [5, 7], [6, 8], [5, 9], [7, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 2], [5, 2], [6, 4], [7, 5], [8, 6], [9, 5], [10, 7], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}, {"function_name": "setStartNode", "code": "    public DTMAxisIterator setStartNode(int node) {\n\tif (_isRestartable) {\n\t    _source.setStartNode(_startNode = node); \n\t    return resetPosition();\n\t}\n\treturn this;", "ast_nodes": ["FUNC_DECL", "RETURN", "IF", "PARAM", "RETURN", "CALL", "CALL", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [0, 3], [2, 4], [4, 5], [2, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 2], [5, 4], [6, 2], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "setMark", "code": "    public void setMark() {\n\t_source.setMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "gotoMark", "code": "    public void gotoMark() {\n\t_source.gotoMark();", "ast_nodes": ["FUNC_DECL", "CALL"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "FilterIterator", "code": "    public FilterIterator(DTMAxisIterator source, DTMFilter filter) {\n\t_source = source;\n\t_filter = filter;\n\t_isReverse = source.isReverse();", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]]}], "label": 0}
{"sample_id": "xalan-2.6-7402", "repo": "xalan-2.6", "project": "xalan", "version": "2.6", "file_path": "org/apache/xalan/templates/TemplateSubPatternAssociation.java", "language": "java", "name": "org.apache.xalan.templates.TemplateSubPatternAssociation", "code": "class TemplateSubPatternAssociation implements Serializable, Cloneable\n{\n\n  /** Step pattern           */\n  StepPattern m_stepPattern;\n\n  /** Template pattern          */\n  private String m_pattern;\n\n  /** The template element         */\n  private ElemTemplate m_template;\n\n  /** Next pattern         */\n  private TemplateSubPatternAssociation m_next = null;\n\n  /** Flag indicating whether this is wild card pattern          */\n  private boolean m_wild;\n\n  /** Target string for this match pattern           */\n  private String m_targetString;\n\n  /**\n   * Construct a match pattern from a pattern and template.\n   * @param template The node that contains the template for this pattern.\n   * @param pattern An executable XSLT StepPattern.\n   * @param pat For now a Nodelist that contains old-style element patterns.\n   */\n  TemplateSubPatternAssociation(ElemTemplate template, StepPattern pattern, String pat)\n  {\n\n    m_pattern = pat;\n    m_template = template;\n    m_stepPattern = pattern;\n    m_targetString = m_stepPattern.getTargetString();\n    m_wild = m_targetString.equals(\"*\");\n  }\n\n  /**\n   * Clone this object.\n   *\n   * @return The cloned object.\n   *\n   * @throws CloneNotSupportedException\n   */\n  public Object clone() throws CloneNotSupportedException\n  {\n\n    TemplateSubPatternAssociation tspa =\n      (TemplateSubPatternAssociation) super.clone();\n\n    tspa.m_next = null;\n\n    return tspa;\n  }\n\n  /**\n   * Get the target string of the pattern.  For instance, if the pattern is\n   * \"foo/baz/boo[@daba]\", this string will be \"boo\".\n   *\n   * @return The \"target\" string.\n   */\n  public final String getTargetString()\n  {\n    return m_targetString;\n  }\n\n  /**\n   * Set Target String for this template pattern  \n   *\n   *\n   * @param key Target string to set\n   */\n  public void setTargetString(String key)\n  {\n    m_targetString = key;\n  }\n\n  /**\n   * Tell if two modes match according to the rules of XSLT.\n   *\n   * @param m1 mode to match\n   *\n   * @return True if the given mode matches this template's mode\n   */\n  boolean matchMode(QName m1)\n  {\n    return matchModes(m1, m_template.getMode());\n  }\n\n  /**\n   * Tell if two modes match according to the rules of XSLT.\n   *\n   * @param m1 First mode to match\n   * @param m2 Second mode to match\n   *\n   * @return True if the two given modes match\n   */\n  private boolean matchModes(QName m1, QName m2)\n  {\n    return (((null == m1) && (null == m2))\n            || ((null != m1) && (null != m2) && m1.equals(m2)));\n  }\n\n  /**\n   * Return the mode associated with the template.\n   *\n   *\n   * @param xctxt XPath context to use with this template\n   * @param targetNode Target node\n   * @return The mode associated with the template.\n   *\n   * @throws TransformerException\n   */\n  public boolean matches(XPathContext xctxt, int targetNode, QName mode)\n          throws TransformerException\n  {\n\n    double score = m_stepPattern.getMatchScore(xctxt, targetNode);\n\n    return (XPath.MATCH_SCORE_NONE != score)\n           && matchModes(mode, m_template.getMode());\n  }\n\n  /**\n   * Tell if the pattern for this association is a wildcard.\n   *\n   * @return true if this pattern is considered to be a wild match.\n   */\n  public final boolean isWild()\n  {\n    return m_wild;\n  }\n\n  /**\n   * Get associated XSLT StepPattern.\n   *\n   * @return An executable StepPattern object, never null.\n   *\n   */\n  public final StepPattern getStepPattern()\n  {\n    return m_stepPattern;\n  }\n\n  /**\n   * Get the pattern string for diagnostic purposes.\n   *\n   * @return The pattern string for diagnostic purposes.\n   *\n   */\n  public final String getPattern()\n  {\n    return m_pattern;\n  }\n\n  /**\n   * Return the position of the template in document\n   * order in the stylesheet.\n   *\n   * @return The position of the template in the overall template order.\n   */\n  public int getDocOrderPos()\n  {\n    return m_template.getUid();\n  }\n\n  /**\n   * Return the import level associated with the stylesheet into which  \n   * this template is composed.\n   *\n   * @return The import level of this template.\n   */\n  public final int getImportLevel()\n  {\n    return m_template.getStylesheetComposed().getImportCountComposed();\n  }\n\n  /**\n   * Get the assocated xsl:template.\n   *\n   * @return An ElemTemplate, never null.\n   *\n   */\n  public final ElemTemplate getTemplate()\n  {\n    return m_template;\n  }\n\n  /**\n   * Get the next association.\n   *\n   * @return A valid TemplateSubPatternAssociation, or null.\n   */\n  public final TemplateSubPatternAssociation getNext()\n  {\n    return m_next;\n  }\n\n  /**\n   * Set the next element on this association\n   * list, which should be equal or less in priority to\n   * this association, and, if equal priority, should occur\n   * before this template in document order.\n   *\n   * @param mp The next association to score if this one fails.\n   *\n   */\n  public void setNext(TemplateSubPatternAssociation mp)\n  {\n    m_next = mp;", "functions": [{"function_name": "clone", "code": "  public Object clone() throws CloneNotSupportedException\n  {\n\n    TemplateSubPatternAssociation tspa =\n      (TemplateSubPatternAssociation) super.clone();\n\n    tspa.m_next = null;\n\n    return tspa;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [3, 4], [1, 0], [2, 0], [3, 0], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "getTargetString", "code": "  public final String getTargetString()\n  {\n    return m_targetString;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setTargetString", "code": "  public void setTargetString(String key)\n  {\n    m_targetString = key;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "matchMode", "code": "  boolean matchMode(QName m1)\n  {\n    return matchModes(m1, m_template.getMode());", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [1, 3], [3, 4], [1, 0], [2, 0], [3, 1], [4, 3], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]}, {"function_name": "matchModes", "code": "  private boolean matchModes(QName m1, QName m2)\n  {\n    return (((null == m1) && (null == m2))\n            || ((null != m1) && (null != m2) && m1.equals(m2)));", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "BINARY_OP", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 4], [4, 5], [4, 6], [5, 7], [5, 8], [6, 9], [6, 10], [8, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [1, 0], [2, 0], [3, 0], [4, 1], [5, 4], [6, 4], [7, 5], [8, 5], [9, 6], [10, 6], [11, 8], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16]]}, {"function_name": "matches", "code": "  public boolean matches(XPathContext xctxt, int targetNode, QName mode)\n          throws TransformerException\n  {\n\n    double score = m_stepPattern.getMatchScore(xctxt, targetNode);\n\n    return (XPath.MATCH_SCORE_NONE != score)\n           && matchModes(mode, m_template.getMode());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "PARAM", "PARAM", "PARAM", "BINARY_OP", "CALL", "BINARY_OP", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [6, 8], [2, 9], [7, 10], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [8, 6], [9, 2], [10, 7], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10]]}, {"function_name": "isWild", "code": "  public final boolean isWild()\n  {\n    return m_wild;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getStepPattern", "code": "  public final StepPattern getStepPattern()\n  {\n    return m_stepPattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getPattern", "code": "  public final String getPattern()\n  {\n    return m_pattern;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getDocOrderPos", "code": "  public int getDocOrderPos()\n  {\n    return m_template.getUid();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getImportLevel", "code": "  public final int getImportLevel()\n  {\n    return m_template.getStylesheetComposed().getImportCountComposed();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [1, 0], [2, 1], [3, 2], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "getTemplate", "code": "  public final ElemTemplate getTemplate()\n  {\n    return m_template;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getNext", "code": "  public final TemplateSubPatternAssociation getNext()\n  {\n    return m_next;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "setNext", "code": "  public void setNext(TemplateSubPatternAssociation mp)\n  {\n    m_next = mp;", "ast_nodes": ["FUNC_DECL", "PARAM", "ASSIGN"], "ast_edges": [[0, 1], [0, 2], [1, 0], [2, 0], [0, 0], [1, 1], [2, 2]]}, {"function_name": "TemplateSubPatternAssociation", "code": "  TemplateSubPatternAssociation(ElemTemplate template, StepPattern pattern, String pat)\n  {\n\n    m_pattern = pat;\n    m_template = template;\n    m_stepPattern = pattern;\n    m_targetString = m_stepPattern.getTargetString();\n    m_wild = m_targetString.equals(\"*\");", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "ASSIGN", "CALL", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [4, 9], [5, 10], [9, 11], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 4], [10, 5], [11, 9], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]}], "label": 0}
{"sample_id": "ivy-2.0-3335", "repo": "apache-ivy-2.0.0", "project": "ivy", "version": "2.0", "file_path": "src/java/org/apache/ivy/core/module/id/ArtifactRevisionId.java", "language": "java", "name": "org.apache.ivy.core.module.id.ArtifactRevisionId", "code": "public class ArtifactRevisionId extends UnmodifiableExtendableItem {\n    public static ArtifactRevisionId newInstance(ModuleRevisionId mrid, String name, String type,\n            String ext) {\n        return newInstance(mrid, name, type, ext, null);\n    }\n\n    public static ArtifactRevisionId newInstance(ModuleRevisionId mrid, String name, String type,\n            String ext, Map extraAttributes) {\n        return new ArtifactRevisionId(new ArtifactId(mrid.getModuleId(), name, type, ext), mrid,\n            extraAttributes);\n    }\n\n    private ArtifactId artifactId;\n\n    private ModuleRevisionId mrid;\n\n    public ArtifactRevisionId(ArtifactId artifactId, ModuleRevisionId mrid) {\n        this(artifactId, mrid, null);\n    }\n\n    public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {\n        super(null, extraAttributes);\n        artifactId = artfId;\n        mrid = mdlRevId;\n\n        setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()\n                .getOrganisation());\n        setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());\n        setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());\n        setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());\n        setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());\n        setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());\n    }\n\n    public boolean equals(Object obj) {\n        if (!(obj instanceof ArtifactRevisionId)) {\n            return false;\n        }\n        ArtifactRevisionId arid = (ArtifactRevisionId) obj;\n        return getArtifactId().equals(arid.getArtifactId())\n                && getModuleRevisionId().equals(arid.getModuleRevisionId())\n                && getQualifiedExtraAttributes().equals(arid.getQualifiedExtraAttributes());\n    }\n\n    public int hashCode() {\n        // WARN: uniqueness needs to be relatively strong here\n        //CheckStyle:MagicNumber| OFF\n        int hash = 17;\n        hash += getArtifactId().hashCode() * 37;\n        hash += getModuleRevisionId().hashCode() * 37;\n        hash += getQualifiedExtraAttributes().hashCode() * 37;\n        //CheckStyle:MagicNumber| ON\n        \n        return hash;\n    }\n\n    public String toString() {\n        return getModuleRevisionId()\n                + \"!\" + getName() + \".\" + getExt() \n                + (getType().equals(getExt()) ? \"\" : \"(\" + getType() + \")\");\n    }\n\n    /**\n     * @return Returns the artifactId.\n     */\n    public ArtifactId getArtifactId() {\n        return artifactId;\n    }\n\n    public ModuleRevisionId getModuleRevisionId() {\n        return mrid;\n    }\n\n    public String getName() {\n        return artifactId.getName();\n    }\n\n    public String getType() {\n        return artifactId.getType();\n    }\n\n    public String getExt() {\n        return artifactId.getExt();\n    }\n\n    /**\n     * @return Returns the revision.\n     */\n    public String getRevision() {\n        return mrid.getRevision();", "functions": [{"function_name": "newInstance", "code": "    public static ArtifactRevisionId newInstance(ModuleRevisionId mrid, String name, String type,\n            String ext) {\n        return newInstance(mrid, name, type, ext, null);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 6], [6, 7], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 1], [7, 6], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]}, {"function_name": "newInstance", "code": "    public static ArtifactRevisionId newInstance(ModuleRevisionId mrid, String name, String type,\n            String ext, Map extraAttributes) {\n        return new ArtifactRevisionId(new ArtifactId(mrid.getModuleId(), name, type, ext), mrid,\n            extraAttributes);", "ast_nodes": ["FUNC_DECL", "RETURN", "PARAM", "PARAM", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [1, 7], [7, 8], [8, 9], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 1], [8, 7], [9, 8], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]}, {"function_name": "equals", "code": "    public boolean equals(Object obj) {\n        if (!(obj instanceof ArtifactRevisionId)) {\n            return false;\n        }\n        ArtifactRevisionId arid = (ArtifactRevisionId) obj;\n        return getArtifactId().equals(arid.getArtifactId())\n                && getModuleRevisionId().equals(arid.getModuleRevisionId())\n                && getQualifiedExtraAttributes().equals(arid.getQualifiedExtraAttributes());", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "IF", "PARAM", "BINARY_OP", "BINARY_OP", "CALL", "BINARY_OP", "RETURN", "CALL", "CALL", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [1, 5], [3, 6], [5, 7], [5, 8], [3, 9], [7, 10], [8, 11], [8, 12], [9, 13], [10, 14], [11, 15], [12, 16], [15, 17], [16, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [6, 3], [7, 5], [8, 5], [9, 3], [10, 7], [11, 8], [12, 8], [13, 9], [14, 10], [15, 11], [16, 12], [17, 15], [18, 16], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "hashCode", "code": "    public int hashCode() {\n        // WARN: uniqueness needs to be relatively strong here\n        //CheckStyle:MagicNumber| OFF\n        int hash = 17;\n        hash += getArtifactId().hashCode() * 37;\n        hash += getModuleRevisionId().hashCode() * 37;\n        hash += getQualifiedExtraAttributes().hashCode() * 37;\n        //CheckStyle:MagicNumber| ON\n        \n        return hash;", "ast_nodes": ["FUNC_DECL", "RETURN", "VAR_DECL", "ASSIGN", "ASSIGN", "ASSIGN", "BINARY_OP", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [3, 6], [4, 7], [5, 8], [2, 9], [6, 10], [6, 11], [7, 12], [7, 13], [8, 14], [8, 15], [11, 16], [13, 17], [15, 18], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 3], [7, 4], [8, 5], [9, 2], [10, 6], [11, 6], [12, 7], [13, 7], [14, 8], [15, 8], [16, 11], [17, 13], [18, 15], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18]]}, {"function_name": "toString", "code": "    public String toString() {\n        return getModuleRevisionId()\n                + \"!\" + getName() + \".\" + getExt() \n                + (getType().equals(getExt()) ? \"\" : \"(\" + getType() + \")\");", "ast_nodes": ["FUNC_DECL", "RETURN", "BINARY_OP", "COND_EXPR", "BINARY_OP", "BINARY_OP", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "BINARY_OP", "CALL", "LITERAL_ANCHOR", "CALL", "CALL", "BINARY_OP", "LITERAL_ANCHOR", "CALL"], "ast_edges": [[0, 1], [1, 2], [2, 3], [2, 4], [3, 5], [3, 6], [3, 7], [4, 8], [4, 9], [5, 10], [5, 11], [7, 12], [9, 13], [9, 14], [11, 15], [11, 16], [12, 17], [14, 18], [14, 19], [19, 20], [19, 21], [1, 0], [2, 1], [3, 2], [4, 2], [5, 3], [6, 3], [7, 3], [8, 4], [9, 4], [10, 5], [11, 5], [12, 7], [13, 9], [14, 9], [15, 11], [16, 11], [17, 12], [18, 14], [19, 14], [20, 19], [21, 19], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}, {"function_name": "getArtifactId", "code": "    public ArtifactId getArtifactId() {\n        return artifactId;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getModuleRevisionId", "code": "    public ModuleRevisionId getModuleRevisionId() {\n        return mrid;", "ast_nodes": ["FUNC_DECL", "RETURN"], "ast_edges": [[0, 1], [1, 0], [0, 0], [1, 1]]}, {"function_name": "getName", "code": "    public String getName() {\n        return artifactId.getName();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getType", "code": "    public String getType() {\n        return artifactId.getType();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getExt", "code": "    public String getExt() {\n        return artifactId.getExt();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "getRevision", "code": "    public String getRevision() {\n        return mrid.getRevision();", "ast_nodes": ["FUNC_DECL", "RETURN", "CALL"], "ast_edges": [[0, 1], [1, 2], [1, 0], [2, 1], [0, 0], [1, 1], [2, 2]]}, {"function_name": "ArtifactRevisionId", "code": "    public ArtifactRevisionId(ArtifactId artifactId, ModuleRevisionId mrid) {\n        this(artifactId, mrid, null);", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "LITERAL_ANCHOR"], "ast_edges": [[0, 1], [0, 2], [0, 3], [1, 0], [2, 0], [3, 0], [0, 0], [1, 1], [2, 2], [3, 3]]}, {"function_name": "ArtifactRevisionId", "code": "    public ArtifactRevisionId(ArtifactId artfId, ModuleRevisionId mdlRevId, Map extraAttributes) {\n        super(null, extraAttributes);\n        artifactId = artfId;\n        mrid = mdlRevId;\n\n        setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, getModuleRevisionId()\n                .getOrganisation());\n        setStandardAttribute(IvyPatternHelper.MODULE_KEY, getModuleRevisionId().getName());\n        setStandardAttribute(IvyPatternHelper.REVISION_KEY, getModuleRevisionId().getRevision());\n        setStandardAttribute(IvyPatternHelper.ARTIFACT_KEY, getName());\n        setStandardAttribute(IvyPatternHelper.TYPE_KEY, getType());\n        setStandardAttribute(IvyPatternHelper.EXT_KEY, getExt());", "ast_nodes": ["FUNC_DECL", "PARAM", "PARAM", "PARAM", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "ASSIGN", "ASSIGN", "LITERAL_ANCHOR", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL", "CALL"], "ast_edges": [[0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [4, 13], [5, 14], [6, 15], [7, 16], [8, 17], [9, 18], [16, 19], [17, 20], [18, 21], [1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [8, 0], [9, 0], [10, 0], [11, 0], [12, 0], [13, 4], [14, 5], [15, 6], [16, 7], [17, 8], [18, 9], [19, 16], [20, 17], [21, 18], [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21]]}], "label": 0}
